prometheus/web/ui/static/vendor/bootstrap-4.1.3/js/bootstrap.js.map

1 line
207 KiB
Plaintext
Raw Normal View History

Update to Bootstrap 4.1.3 (#5192) * web: updated bootstrap3-typeahead file to work with bootstrap 4.0.0 Signed-off-by: Andrew Chiu <[email protected]> * web: Replaced bootstrap-3.3.1 with bootstrap 4.0.0 Signed-off-by: Andrew Chiu <[email protected]> * web: Added bootstrap4-glyphicons as 4.0.0 doesnt include bootstrap3 glyphicons Signed-off-by: Andrew Chiu <[email protected]> * web: updated js jquery to 3.3.1 Signed-off-by: Andrew Chiu <[email protected]> * web: updated _base.html to import new bootstrap 4.0.0, jquery3.3.1 and bootstrap class tags to be 4.0 compatible Signed-off-by: Andrew Chiu <[email protected]> * web: _base.html missed word out in title tag (Server). Signed-off-by: Andrew Chiu <[email protected]> * web: updated alerts.html class names and tags to be bootstrap 4 compatible. Signed-off-by: Andrew Chiu <[email protected]> * web: updated config.html class names and tags to be bootstrap 4 compatible. Signed-off-by: Andrew Chiu <[email protected]> * web: updated flags.html class names and tags to be bootstrap 4 compatible. Signed-off-by: Andrew Chiu <[email protected]> * web: updated service-discovery.html class names and tags to be bootstrap 4 compatible. Signed-off-by: Andrew Chiu <[email protected]> * web: updated status.html class names and tags to be bootstrap 4 compatible. Signed-off-by: Andrew Chiu <[email protected]> * web: updated targets.html class names and tags to be bootstrap 4 compatible. Signed-off-by: Andrew Chiu <[email protected]> * web: updated graph_template.handlebar class names and tags to be bootstrap 4 compatible. Signed-off-by: Andrew Chiu <[email protected]> * web: alerts.css fix for button color inheritance on alerts page. Signed-off-by: Andrew Chiu <[email protected]> * web: graph.css fix for color inheritance. Signed-off-by: Andrew Chiu <[email protected]> * web: prometheus.css updated to fix nav bar. Signed-off-by: Andrew Chiu <[email protected]> * web: previous merge conflict not fixed correctly on _base.html Signed-off-by: Andrew Chiu <[email protected]> * menu.lib and prom.lib imports updated Signed-off-by: ksherryBAE <[email protected]> * bootstrap 4.1.3 imported Signed-off-by: ksherryBAE <[email protected]> * Bootstrap 4.1.3 imported into _base.html Signed-off-by: ksherryBAE <[email protected]> * bootstrap 4.1.3 imported into prom.lib Signed-off-by: ksherryBAE <[email protected]> * menu.lib style adjusted to view sidebar Signed-off-by: ksherryBAE <[email protected]> * Alert colour uplifted to bootstrap 4.1.3 Signed-off-by: ksherryBAE <[email protected]> * Alerts display code reformatted similarly to config Signed-off-by: ksherryBAE <[email protected]> * Consoles pages adjusted to account for new navbar Signed-off-by: ksherryBAE <[email protected]> * LHS Menu fixed in console pages Signed-off-by: ksherryBAE <[email protected]> * Minor changes to prom_console to adjust lhs nav Signed-off-by: ksherryBAE <[email protected]> * Prom.lib and some css updated to fix console graph controls Signed-off-by: ksherryBAE <[email protected]> * Bootstrap 4.0.0 files removed Signed-off-by: ksherryBAE <[email protected]> * Consoles configured so that the graph fits with the new side bar, css files also adjusted Signed-off-by: ksherryBAE <[email protected]> * Import popper.min.js for dropdowns Signed-off-by: ksherryBAE <[email protected]> * Popper.min.js imported locally Signed-off-by: ksherryBAE <[email protected]> * Re-added #4764 and fixed css Signed-off-by: ksherryBAE <[email protected]> * Removed .DS_Store Signed-off-by: ksherryBAE <[email protected]> * Rebuilt assets Signed-off-by: ksherryBAE <[email protected]> * Spaces between buttons and inputs on graph page removed Signed-off-by: ksherryBAE <[email protected]> * fixed spacing in buttons on /targets Signed-off-by: Pritam Bhudia <[email protected]> * Updated vfsdata.go Signed-off-by: Pritam Bhudia <[email protected]> * fixed typeahead issue Signed-off-by: James Ritchie <[email protected]> * added css for dropdown Signed-off-by: James Ritchie <[email protected]> * changed order of css imports Signed-off-by: James Ritchie <[email protected]> * tinkered with CSS changes to make keyboard select and mouseover match Signed-off-by: James Ritchie <[email protected]>
2019-02-07 13:18:09 -08:00
{"version":3,"file":"bootstrap.js","sources":["../../js/src/util.js","../../js/src/alert.js","../../js/src/button.js","../../js/src/carousel.js","../../js/src/collapse.js","../../js/src/dropdown.js","../../js/src/modal.js","../../js/src/tooltip.js","../../js/src/popover.js","../../js/src/scrollspy.js","../../js/src/tab.js","../../js/src/index.js"],"sourcesContent":["import $ from 'jquery'\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.1.3): util.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Util = (($) => {\n /**\n * ------------------------------------------------------------------------\n * Private TransitionEnd Helpers\n * ------------------------------------------------------------------------\n */\n\n const TRANSITION_END = 'transitionend'\n const MAX_UID = 1000000\n const MILLISECONDS_MULTIPLIER = 1000\n\n // Shoutout AngusCroll (https://goo.gl/pxwQGp)\n function toType(obj) {\n return {}.toString.call(obj).match(/\\s([a-z]+)/i)[1].toLowerCase()\n }\n\n function getSpecialTransitionEndEvent() {\n return {\n bindType: TRANSITION_END,\n delegateType: TRANSITION_END,\n handle(event) {\n if ($(event.target).is(this)) {\n return event.handleObj.handler.apply(this, arguments) // eslint-disable-line prefer-rest-params\n }\n return undefined // eslint-disable-line no-undefined\n }\n }\n }\n\n function transitionEndEmulator(duration) {\n let called = false\n\n $(this).one(Util.TRANSITION_END, () => {\n called = true\n })\n\n setTimeout(() => {\n if (!called) {\n Util.triggerTransitionEnd(this)\n }\n }, duration)\n\n return this\n }\n\n function setTransitionEndSupport() {\n $.fn.emulateTransitionEnd = transitionEndEmulator\n $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent()\n }\n\n /**\n * --------------------------------------------------------------------------\n * Public Util Api\n * --------------------------------------------------------------------------\n */\n\n const Util = {\n\n TRANSITION_END: 'bsTransitionEnd',\n\n getUID(prefix) {\n do {\n // eslint-disable-next-line no-bitwise\n prefix += ~~(Math.random() * MAX_UID) // \"~~\" acts like a faster Math.floor() here\n } while (document.getElementById(prefix))\n return prefix\n },\n\n getSelectorFromElement(element) {\n let selector = element.getAttribute('data-target')\n if (!selector || selector === '#') {\n selector = element.getAttribute('href') || ''\n }\n\n try {\n return document.querySelector(selector) ? selector : null\n } catch (err) {\n return null\n }\n },\n\n getTransitionDurationFromElement(element) {\n if (!element) {\n return 0\n }\n\n // Get transition-duration of the element\n let transitionDuration = $(element).css('transition-duration')\n const floatTransitionDuration = parseFloat(transitionDuration)\n\n // Return 0 if element or transition duration is not found\n if (!floatTransitionDuration) {\n return 0\n }\n\n // If multiple durations are defined, take the first\n transitionDuration = transitionDuration.split(',')[0]\n\n return parseFloat(transitionDuration) * MILLISECONDS_MULTIPLIER\n },\n\n reflow(element) {\n return element.offsetHeight\n },\n\n triggerTransitionEnd(element) {\n $(element).trigger(TRANSITION_END)\n },\n\n // TODO: Remove in v5\n supportsTransitionEnd() {\n return Boolean(TRANSITION_END)\n },\n\n isElement(obj) {\n return (obj[0] || obj).nodeType\n },\n\n typeCheckConfig(componentName, config, configTypes) {\n for (const property in configTypes) {\n if (Object.prototype.hasOwnProperty.call(configTypes, property)) {\n const expectedTypes = configTypes[