administrate-bootstrap-theme 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -11
  3. data/Rakefile +10 -14
  4. data/app/assets/config/administrate-bootstrap-theme_manifest.js +1 -0
  5. data/{node_modules/bootstrap/dist/js → app/assets/javascripts/administrate-bootstrap-theme/bootstrap}/bootstrap.bundle.js +0 -0
  6. data/app/assets/javascripts/administrate-bootstrap-theme/flatpickr/flatpickr.js +2673 -0
  7. data/app/assets/javascripts/administrate-bootstrap-theme/theme.js +22 -0
  8. data/app/assets/stylesheets/administrate-bootstrap-theme/_base.scss +7 -1
  9. data/app/assets/stylesheets/administrate-bootstrap-theme/_variables.scss +4 -1
  10. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_accordion.scss +0 -0
  11. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_alert.scss +0 -0
  12. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_badge.scss +0 -0
  13. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_breadcrumb.scss +0 -0
  14. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_button-group.scss +0 -0
  15. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_buttons.scss +0 -0
  16. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_card.scss +0 -0
  17. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_carousel.scss +0 -0
  18. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_close.scss +0 -0
  19. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_containers.scss +0 -0
  20. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_dropdown.scss +0 -0
  21. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_forms.scss +0 -0
  22. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_functions.scss +0 -0
  23. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_grid.scss +0 -0
  24. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_helpers.scss +0 -0
  25. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_images.scss +0 -0
  26. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_list-group.scss +0 -0
  27. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_mixins.scss +0 -0
  28. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_modal.scss +0 -0
  29. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_nav.scss +0 -0
  30. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_navbar.scss +0 -0
  31. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_offcanvas.scss +0 -0
  32. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_pagination.scss +0 -0
  33. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_popover.scss +0 -0
  34. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_progress.scss +0 -0
  35. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_reboot.scss +0 -0
  36. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_root.scss +0 -0
  37. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_spinners.scss +0 -0
  38. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_tables.scss +0 -0
  39. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_toasts.scss +0 -0
  40. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_tooltip.scss +0 -0
  41. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_transitions.scss +0 -0
  42. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_type.scss +0 -0
  43. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_utilities.scss +0 -0
  44. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_variables.scss +0 -0
  45. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/bootstrap-grid.scss +0 -0
  46. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/bootstrap-reboot.scss +0 -0
  47. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/bootstrap-utilities.scss +0 -0
  48. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/bootstrap.scss +0 -0
  49. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_floating-labels.scss +0 -0
  50. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_form-check.scss +0 -0
  51. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_form-control.scss +0 -0
  52. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_form-range.scss +0 -0
  53. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_form-select.scss +0 -0
  54. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_form-text.scss +0 -0
  55. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_input-group.scss +0 -0
  56. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_labels.scss +0 -0
  57. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_validation.scss +0 -0
  58. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/helpers/_clearfix.scss +0 -0
  59. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/helpers/_colored-links.scss +0 -0
  60. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/helpers/_position.scss +0 -0
  61. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/helpers/_ratio.scss +0 -0
  62. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/helpers/_stretched-link.scss +0 -0
  63. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/helpers/_text-truncation.scss +0 -0
  64. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/helpers/_visually-hidden.scss +0 -0
  65. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_alert.scss +0 -0
  66. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_border-radius.scss +0 -0
  67. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_box-shadow.scss +0 -0
  68. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_breakpoints.scss +0 -0
  69. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_buttons.scss +0 -0
  70. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_caret.scss +0 -0
  71. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_clearfix.scss +0 -0
  72. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_container.scss +0 -0
  73. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_deprecate.scss +0 -0
  74. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_forms.scss +0 -0
  75. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_gradients.scss +0 -0
  76. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_grid.scss +0 -0
  77. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_image.scss +0 -0
  78. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_list-group.scss +0 -0
  79. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_lists.scss +0 -0
  80. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_pagination.scss +0 -0
  81. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_reset-text.scss +0 -0
  82. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_resize.scss +0 -0
  83. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_table-variants.scss +0 -0
  84. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_text-truncate.scss +0 -0
  85. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_transition.scss +0 -0
  86. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_utilities.scss +0 -0
  87. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_visually-hidden.scss +0 -0
  88. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/utilities/_api.scss +0 -0
  89. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/vendor/_rfs.scss +0 -0
  90. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_content_body.scss +17 -3
  91. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_form.scss +46 -26
  92. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_navigation.scss +1 -5
  93. data/app/assets/stylesheets/administrate-bootstrap-theme/flatpickr/flatpickr.css +791 -0
  94. data/app/assets/stylesheets/administrate-bootstrap-theme/theme.scss +23 -1
  95. data/lib/administrate-bootstrap-theme/version.rb +1 -1
  96. metadata +92 -203
  97. data/node_modules/bootstrap/LICENSE +0 -22
  98. data/node_modules/bootstrap/README.md +0 -239
  99. data/node_modules/bootstrap/dist/css/bootstrap-grid.css +0 -4997
  100. data/node_modules/bootstrap/dist/css/bootstrap-grid.css.map +0 -1
  101. data/node_modules/bootstrap/dist/css/bootstrap-grid.min.css +0 -7
  102. data/node_modules/bootstrap/dist/css/bootstrap-grid.min.css.map +0 -1
  103. data/node_modules/bootstrap/dist/css/bootstrap-grid.rtl.css +0 -4996
  104. data/node_modules/bootstrap/dist/css/bootstrap-grid.rtl.css.map +0 -1
  105. data/node_modules/bootstrap/dist/css/bootstrap-grid.rtl.min.css +0 -7
  106. data/node_modules/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map +0 -1
  107. data/node_modules/bootstrap/dist/css/bootstrap-reboot.css +0 -426
  108. data/node_modules/bootstrap/dist/css/bootstrap-reboot.css.map +0 -1
  109. data/node_modules/bootstrap/dist/css/bootstrap-reboot.min.css +0 -8
  110. data/node_modules/bootstrap/dist/css/bootstrap-reboot.min.css.map +0 -1
  111. data/node_modules/bootstrap/dist/css/bootstrap-reboot.rtl.css +0 -423
  112. data/node_modules/bootstrap/dist/css/bootstrap-reboot.rtl.css.map +0 -1
  113. data/node_modules/bootstrap/dist/css/bootstrap-reboot.rtl.min.css +0 -8
  114. data/node_modules/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map +0 -1
  115. data/node_modules/bootstrap/dist/css/bootstrap-utilities.css +0 -4752
  116. data/node_modules/bootstrap/dist/css/bootstrap-utilities.css.map +0 -1
  117. data/node_modules/bootstrap/dist/css/bootstrap-utilities.min.css +0 -7
  118. data/node_modules/bootstrap/dist/css/bootstrap-utilities.min.css.map +0 -1
  119. data/node_modules/bootstrap/dist/css/bootstrap-utilities.rtl.css +0 -4743
  120. data/node_modules/bootstrap/dist/css/bootstrap-utilities.rtl.css.map +0 -1
  121. data/node_modules/bootstrap/dist/css/bootstrap-utilities.rtl.min.css +0 -7
  122. data/node_modules/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map +0 -1
  123. data/node_modules/bootstrap/dist/css/bootstrap.css +0 -10819
  124. data/node_modules/bootstrap/dist/css/bootstrap.css.map +0 -1
  125. data/node_modules/bootstrap/dist/css/bootstrap.min.css +0 -7
  126. data/node_modules/bootstrap/dist/css/bootstrap.min.css.map +0 -1
  127. data/node_modules/bootstrap/dist/css/bootstrap.rtl.css +0 -10795
  128. data/node_modules/bootstrap/dist/css/bootstrap.rtl.css.map +0 -1
  129. data/node_modules/bootstrap/dist/css/bootstrap.rtl.min.css +0 -7
  130. data/node_modules/bootstrap/dist/css/bootstrap.rtl.min.css.map +0 -1
  131. data/node_modules/bootstrap/dist/js/bootstrap.bundle.js.map +0 -1
  132. data/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js +0 -7
  133. data/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map +0 -1
  134. data/node_modules/bootstrap/dist/js/bootstrap.esm.js +0 -4944
  135. data/node_modules/bootstrap/dist/js/bootstrap.esm.js.map +0 -1
  136. data/node_modules/bootstrap/dist/js/bootstrap.esm.min.js +0 -7
  137. data/node_modules/bootstrap/dist/js/bootstrap.esm.min.js.map +0 -1
  138. data/node_modules/bootstrap/dist/js/bootstrap.js +0 -4993
  139. data/node_modules/bootstrap/dist/js/bootstrap.js.map +0 -1
  140. data/node_modules/bootstrap/dist/js/bootstrap.min.js +0 -7
  141. data/node_modules/bootstrap/dist/js/bootstrap.min.js.map +0 -1
  142. data/node_modules/bootstrap/js/dist/alert.js +0 -264
  143. data/node_modules/bootstrap/js/dist/alert.js.map +0 -1
  144. data/node_modules/bootstrap/js/dist/base-component.js +0 -62
  145. data/node_modules/bootstrap/js/dist/base-component.js.map +0 -1
  146. data/node_modules/bootstrap/js/dist/button.js +0 -146
  147. data/node_modules/bootstrap/js/dist/button.js.map +0 -1
  148. data/node_modules/bootstrap/js/dist/carousel.js +0 -757
  149. data/node_modules/bootstrap/js/dist/carousel.js.map +0 -1
  150. data/node_modules/bootstrap/js/dist/collapse.js +0 -551
  151. data/node_modules/bootstrap/js/dist/collapse.js.map +0 -1
  152. data/node_modules/bootstrap/js/dist/dom/data.js +0 -69
  153. data/node_modules/bootstrap/js/dist/dom/data.js.map +0 -1
  154. data/node_modules/bootstrap/js/dist/dom/event-handler.js +0 -305
  155. data/node_modules/bootstrap/js/dist/dom/event-handler.js.map +0 -1
  156. data/node_modules/bootstrap/js/dist/dom/manipulator.js +0 -89
  157. data/node_modules/bootstrap/js/dist/dom/manipulator.js.map +0 -1
  158. data/node_modules/bootstrap/js/dist/dom/selector-engine.js +0 -86
  159. data/node_modules/bootstrap/js/dist/dom/selector-engine.js.map +0 -1
  160. data/node_modules/bootstrap/js/dist/dropdown.js +0 -662
  161. data/node_modules/bootstrap/js/dist/dropdown.js.map +0 -1
  162. data/node_modules/bootstrap/js/dist/modal.js +0 -752
  163. data/node_modules/bootstrap/js/dist/modal.js.map +0 -1
  164. data/node_modules/bootstrap/js/dist/offcanvas.js +0 -509
  165. data/node_modules/bootstrap/js/dist/offcanvas.js.map +0 -1
  166. data/node_modules/bootstrap/js/dist/popover.js +0 -216
  167. data/node_modules/bootstrap/js/dist/popover.js.map +0 -1
  168. data/node_modules/bootstrap/js/dist/scrollspy.js +0 -400
  169. data/node_modules/bootstrap/js/dist/scrollspy.js.map +0 -1
  170. data/node_modules/bootstrap/js/dist/tab.js +0 -347
  171. data/node_modules/bootstrap/js/dist/tab.js.map +0 -1
  172. data/node_modules/bootstrap/js/dist/toast.js +0 -335
  173. data/node_modules/bootstrap/js/dist/toast.js.map +0 -1
  174. data/node_modules/bootstrap/js/dist/tooltip.js +0 -1055
  175. data/node_modules/bootstrap/js/dist/tooltip.js.map +0 -1
  176. data/node_modules/bootstrap/js/src/alert.js +0 -141
  177. data/node_modules/bootstrap/js/src/base-component.js +0 -46
  178. data/node_modules/bootstrap/js/src/button.js +0 -95
  179. data/node_modules/bootstrap/js/src/carousel.js +0 -624
  180. data/node_modules/bootstrap/js/src/collapse.js +0 -410
  181. data/node_modules/bootstrap/js/src/dom/data.js +0 -57
  182. data/node_modules/bootstrap/js/src/dom/event-handler.js +0 -331
  183. data/node_modules/bootstrap/js/src/dom/manipulator.js +0 -80
  184. data/node_modules/bootstrap/js/src/dom/selector-engine.js +0 -75
  185. data/node_modules/bootstrap/js/src/dropdown.js +0 -543
  186. data/node_modules/bootstrap/js/src/modal.js +0 -582
  187. data/node_modules/bootstrap/js/src/offcanvas.js +0 -279
  188. data/node_modules/bootstrap/js/src/popover.js +0 -171
  189. data/node_modules/bootstrap/js/src/scrollspy.js +0 -319
  190. data/node_modules/bootstrap/js/src/tab.js +0 -220
  191. data/node_modules/bootstrap/js/src/toast.js +0 -219
  192. data/node_modules/bootstrap/js/src/tooltip.js +0 -802
  193. data/node_modules/bootstrap/js/src/util/index.js +0 -253
  194. data/node_modules/bootstrap/js/src/util/sanitizer.js +0 -127
  195. data/node_modules/bootstrap/js/src/util/scrollbar.js +0 -70
  196. data/node_modules/bootstrap/package.json +0 -177
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.js","sources":["../src/util/index.js","../src/util/sanitizer.js","../src/tooltip.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta3): util/index.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst MAX_UID = 1000000\nconst MILLISECONDS_MULTIPLIER = 1000\nconst TRANSITION_END = 'transitionend'\n\n// Shoutout AngusCroll (https://goo.gl/pxwQGp)\nconst toType = obj => {\n if (obj === null || obj === undefined) {\n return `${obj}`\n }\n\n return {}.toString.call(obj).match(/\\s([a-z]+)/i)[1].toLowerCase()\n}\n\n/**\n * --------------------------------------------------------------------------\n * Public Util Api\n * --------------------------------------------------------------------------\n */\n\nconst getUID = prefix => {\n do {\n prefix += Math.floor(Math.random() * MAX_UID)\n } while (document.getElementById(prefix))\n\n return prefix\n}\n\nconst getSelector = element => {\n let selector = element.getAttribute('data-bs-target')\n\n if (!selector || selector === '#') {\n let hrefAttr = element.getAttribute('href')\n\n // The only valid content that could double as a selector are IDs or classes,\n // so everything starting with `#` or `.`. If a \"real\" URL is used as the selector,\n // `document.querySelector` will rightfully complain it is invalid.\n // See https://github.com/twbs/bootstrap/issues/32273\n if (!hrefAttr || (!hrefAttr.includes('#') && !hrefAttr.startsWith('.'))) {\n return null\n }\n\n // Just in case some CMS puts out a full URL with the anchor appended\n if (hrefAttr.includes('#') && !hrefAttr.startsWith('#')) {\n hrefAttr = '#' + hrefAttr.split('#')[1]\n }\n\n selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null\n }\n\n return selector\n}\n\nconst getSelectorFromElement = element => {\n const selector = getSelector(element)\n\n if (selector) {\n return document.querySelector(selector) ? selector : null\n }\n\n return null\n}\n\nconst getElementFromSelector = element => {\n const selector = getSelector(element)\n\n return selector ? document.querySelector(selector) : null\n}\n\nconst getTransitionDurationFromElement = element => {\n if (!element) {\n return 0\n }\n\n // Get transition-duration of the element\n let { transitionDuration, transitionDelay } = window.getComputedStyle(element)\n\n const floatTransitionDuration = Number.parseFloat(transitionDuration)\n const floatTransitionDelay = Number.parseFloat(transitionDelay)\n\n // Return 0 if element or transition duration is not found\n if (!floatTransitionDuration && !floatTransitionDelay) {\n return 0\n }\n\n // If multiple durations are defined, take the first\n transitionDuration = transitionDuration.split(',')[0]\n transitionDelay = transitionDelay.split(',')[0]\n\n return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER\n}\n\nconst triggerTransitionEnd = element => {\n element.dispatchEvent(new Event(TRANSITION_END))\n}\n\nconst isElement = obj => (obj[0] || obj).nodeType\n\nconst emulateTransitionEnd = (element, duration) => {\n let called = false\n const durationPadding = 5\n const emulatedDuration = duration + durationPadding\n\n function listener() {\n called = true\n element.removeEventListener(TRANSITION_END, listener)\n }\n\n element.addEventListener(TRANSITION_END, listener)\n setTimeout(() => {\n if (!called) {\n triggerTransitionEnd(element)\n }\n }, emulatedDuration)\n}\n\nconst typeCheckConfig = (componentName, config, configTypes) => {\n Object.keys(configTypes).forEach(property => {\n const expectedTypes = configTypes[property]\n const value = config[property]\n const valueType = value && isElement(value) ? 'element' : toType(value)\n\n if (!new RegExp(expectedTypes).test(valueType)) {\n throw new TypeError(\n `${componentName.toUpperCase()}: ` +\n `Option \"${property}\" provided type \"${valueType}\" ` +\n `but expected type \"${expectedTypes}\".`\n )\n }\n })\n}\n\nconst isVisible = element => {\n if (!element) {\n return false\n }\n\n if (element.style && element.parentNode && element.parentNode.style) {\n const elementStyle = getComputedStyle(element)\n const parentNodeStyle = getComputedStyle(element.parentNode)\n\n return elementStyle.display !== 'none' &&\n parentNodeStyle.display !== 'none' &&\n elementStyle.visibility !== 'hidden'\n }\n\n return false\n}\n\nconst isDisabled = element => {\n if (!element || element.nodeType !== Node.ELEMENT_NODE) {\n return true\n }\n\n if (element.classList.contains('disabled')) {\n return true\n }\n\n if (typeof element.disabled !== 'undefined') {\n return element.disabled\n }\n\n return element.hasAttribute('disabled') && element.getAttribute('disabled') !== 'false'\n}\n\nconst findShadowRoot = element => {\n if (!document.documentElement.attachShadow) {\n return null\n }\n\n // Can find the shadow root otherwise it'll return the document\n if (typeof element.getRootNode === 'function') {\n const root = element.getRootNode()\n return root instanceof ShadowRoot ? root : null\n }\n\n if (element instanceof ShadowRoot) {\n return element\n }\n\n // when we don't find a shadow root\n if (!element.parentNode) {\n return null\n }\n\n return findShadowRoot(element.parentNode)\n}\n\nconst noop = () => function () {}\n\nconst reflow = element => element.offsetHeight\n\nconst getjQuery = () => {\n const { jQuery } = window\n\n if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {\n return jQuery\n }\n\n return null\n}\n\nconst onDOMContentLoaded = callback => {\n if (document.readyState === 'loading') {\n document.addEventListener('DOMContentLoaded', callback)\n } else {\n callback()\n }\n}\n\nconst isRTL = () => document.documentElement.dir === 'rtl'\n\nconst defineJQueryPlugin = (name, plugin) => {\n onDOMContentLoaded(() => {\n const $ = getjQuery()\n /* istanbul ignore if */\n if ($) {\n const JQUERY_NO_CONFLICT = $.fn[name]\n $.fn[name] = plugin.jQueryInterface\n $.fn[name].Constructor = plugin\n $.fn[name].noConflict = () => {\n $.fn[name] = JQUERY_NO_CONFLICT\n return plugin.jQueryInterface\n }\n }\n })\n}\n\nexport {\n getUID,\n getSelectorFromElement,\n getElementFromSelector,\n getTransitionDurationFromElement,\n triggerTransitionEnd,\n isElement,\n emulateTransitionEnd,\n typeCheckConfig,\n isVisible,\n isDisabled,\n findShadowRoot,\n noop,\n reflow,\n getjQuery,\n onDOMContentLoaded,\n isRTL,\n defineJQueryPlugin\n}\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta3): util/sanitizer.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst uriAttrs = new Set([\n 'background',\n 'cite',\n 'href',\n 'itemtype',\n 'longdesc',\n 'poster',\n 'src',\n 'xlink:href'\n])\n\nconst ARIA_ATTRIBUTE_PATTERN = /^aria-[\\w-]*$/i\n\n/**\n * A pattern that recognizes a commonly useful subset of URLs that are safe.\n *\n * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts\n */\nconst SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i\n\n/**\n * A pattern that matches safe data URLs. Only matches image, video and audio types.\n *\n * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts\n */\nconst DATA_URL_PATTERN = /^data:(?:image\\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\\/(?:mpeg|mp4|ogg|webm)|audio\\/(?:mp3|oga|ogg|opus));base64,[\\d+/a-z]+=*$/i\n\nconst allowedAttribute = (attr, allowedAttributeList) => {\n const attrName = attr.nodeName.toLowerCase()\n\n if (allowedAttributeList.includes(attrName)) {\n if (uriAttrs.has(attrName)) {\n return Boolean(SAFE_URL_PATTERN.test(attr.nodeValue) || DATA_URL_PATTERN.test(attr.nodeValue))\n }\n\n return true\n }\n\n const regExp = allowedAttributeList.filter(attrRegex => attrRegex instanceof RegExp)\n\n // Check if a regular expression validates the attribute.\n for (let i = 0, len = regExp.length; i < len; i++) {\n if (regExp[i].test(attrName)) {\n return true\n }\n }\n\n return false\n}\n\nexport const DefaultAllowlist = {\n // Global attributes allowed on any supplied element below.\n '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],\n a: ['target', 'href', 'title', 'rel'],\n area: [],\n b: [],\n br: [],\n col: [],\n code: [],\n div: [],\n em: [],\n hr: [],\n h1: [],\n h2: [],\n h3: [],\n h4: [],\n h5: [],\n h6: [],\n i: [],\n img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],\n li: [],\n ol: [],\n p: [],\n pre: [],\n s: [],\n small: [],\n span: [],\n sub: [],\n sup: [],\n strong: [],\n u: [],\n ul: []\n}\n\nexport function sanitizeHtml(unsafeHtml, allowList, sanitizeFn) {\n if (!unsafeHtml.length) {\n return unsafeHtml\n }\n\n if (sanitizeFn && typeof sanitizeFn === 'function') {\n return sanitizeFn(unsafeHtml)\n }\n\n const domParser = new window.DOMParser()\n const createdDocument = domParser.parseFromString(unsafeHtml, 'text/html')\n const allowlistKeys = Object.keys(allowList)\n const elements = [].concat(...createdDocument.body.querySelectorAll('*'))\n\n for (let i = 0, len = elements.length; i < len; i++) {\n const el = elements[i]\n const elName = el.nodeName.toLowerCase()\n\n if (!allowlistKeys.includes(elName)) {\n el.parentNode.removeChild(el)\n\n continue\n }\n\n const attributeList = [].concat(...el.attributes)\n const allowedAttributes = [].concat(allowList['*'] || [], allowList[elName] || [])\n\n attributeList.forEach(attr => {\n if (!allowedAttribute(attr, allowedAttributes)) {\n el.removeAttribute(attr.nodeName)\n }\n })\n }\n\n return createdDocument.body.innerHTML\n}\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta3): tooltip.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport * as Popper from '@popperjs/core'\n\nimport {\n defineJQueryPlugin,\n emulateTransitionEnd,\n findShadowRoot,\n getTransitionDurationFromElement,\n getUID,\n isElement,\n isRTL,\n noop,\n typeCheckConfig\n} from './util/index'\nimport {\n DefaultAllowlist,\n sanitizeHtml\n} from './util/sanitizer'\nimport Data from './dom/data'\nimport EventHandler from './dom/event-handler'\nimport Manipulator from './dom/manipulator'\nimport SelectorEngine from './dom/selector-engine'\nimport BaseComponent from './base-component'\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NAME = 'tooltip'\nconst DATA_KEY = 'bs.tooltip'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst CLASS_PREFIX = 'bs-tooltip'\nconst BSCLS_PREFIX_REGEX = new RegExp(`(^|\\\\s)${CLASS_PREFIX}\\\\S+`, 'g')\nconst DISALLOWED_ATTRIBUTES = new Set(['sanitize', 'allowList', 'sanitizeFn'])\n\nconst DefaultType = {\n animation: 'boolean',\n template: 'string',\n title: '(string|element|function)',\n trigger: 'string',\n delay: '(number|object)',\n html: 'boolean',\n selector: '(string|boolean)',\n placement: '(string|function)',\n offset: '(array|string|function)',\n container: '(string|element|boolean)',\n fallbackPlacements: 'array',\n boundary: '(string|element)',\n customClass: '(string|function)',\n sanitize: 'boolean',\n sanitizeFn: '(null|function)',\n allowList: 'object',\n popperConfig: '(null|object|function)'\n}\n\nconst AttachmentMap = {\n AUTO: 'auto',\n TOP: 'top',\n RIGHT: isRTL() ? 'left' : 'right',\n BOTTOM: 'bottom',\n LEFT: isRTL() ? 'right' : 'left'\n}\n\nconst Default = {\n animation: true,\n template: '<div class=\"tooltip\" role=\"tooltip\">' +\n '<div class=\"tooltip-arrow\"></div>' +\n '<div class=\"tooltip-inner\"></div>' +\n '</div>',\n trigger: 'hover focus',\n title: '',\n delay: 0,\n html: false,\n selector: false,\n placement: 'top',\n offset: [0, 0],\n container: false,\n fallbackPlacements: ['top', 'right', 'bottom', 'left'],\n boundary: 'clippingParents',\n customClass: '',\n sanitize: true,\n sanitizeFn: null,\n allowList: DefaultAllowlist,\n popperConfig: null\n}\n\nconst Event = {\n HIDE: `hide${EVENT_KEY}`,\n HIDDEN: `hidden${EVENT_KEY}`,\n SHOW: `show${EVENT_KEY}`,\n SHOWN: `shown${EVENT_KEY}`,\n INSERTED: `inserted${EVENT_KEY}`,\n CLICK: `click${EVENT_KEY}`,\n FOCUSIN: `focusin${EVENT_KEY}`,\n FOCUSOUT: `focusout${EVENT_KEY}`,\n MOUSEENTER: `mouseenter${EVENT_KEY}`,\n MOUSELEAVE: `mouseleave${EVENT_KEY}`\n}\n\nconst CLASS_NAME_FADE = 'fade'\nconst CLASS_NAME_MODAL = 'modal'\nconst CLASS_NAME_SHOW = 'show'\n\nconst HOVER_STATE_SHOW = 'show'\nconst HOVER_STATE_OUT = 'out'\n\nconst SELECTOR_TOOLTIP_INNER = '.tooltip-inner'\n\nconst TRIGGER_HOVER = 'hover'\nconst TRIGGER_FOCUS = 'focus'\nconst TRIGGER_CLICK = 'click'\nconst TRIGGER_MANUAL = 'manual'\n\n/**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\nclass Tooltip extends BaseComponent {\n constructor(element, config) {\n if (typeof Popper === 'undefined') {\n throw new TypeError('Bootstrap\\'s tooltips require Popper (https://popper.js.org)')\n }\n\n super(element)\n\n // private\n this._isEnabled = true\n this._timeout = 0\n this._hoverState = ''\n this._activeTrigger = {}\n this._popper = null\n\n // Protected\n this.config = this._getConfig(config)\n this.tip = null\n\n this._setListeners()\n }\n\n // Getters\n\n static get Default() {\n return Default\n }\n\n static get NAME() {\n return NAME\n }\n\n static get DATA_KEY() {\n return DATA_KEY\n }\n\n static get Event() {\n return Event\n }\n\n static get EVENT_KEY() {\n return EVENT_KEY\n }\n\n static get DefaultType() {\n return DefaultType\n }\n\n // Public\n\n enable() {\n this._isEnabled = true\n }\n\n disable() {\n this._isEnabled = false\n }\n\n toggleEnabled() {\n this._isEnabled = !this._isEnabled\n }\n\n toggle(event) {\n if (!this._isEnabled) {\n return\n }\n\n if (event) {\n const context = this._initializeOnDelegatedTarget(event)\n\n context._activeTrigger.click = !context._activeTrigger.click\n\n if (context._isWithActiveTrigger()) {\n context._enter(null, context)\n } else {\n context._leave(null, context)\n }\n } else {\n if (this.getTipElement().classList.contains(CLASS_NAME_SHOW)) {\n this._leave(null, this)\n return\n }\n\n this._enter(null, this)\n }\n }\n\n dispose() {\n clearTimeout(this._timeout)\n\n EventHandler.off(this._element, this.constructor.EVENT_KEY)\n EventHandler.off(this._element.closest(`.${CLASS_NAME_MODAL}`), 'hide.bs.modal', this._hideModalHandler)\n\n if (this.tip && this.tip.parentNode) {\n this.tip.parentNode.removeChild(this.tip)\n }\n\n this._isEnabled = null\n this._timeout = null\n this._hoverState = null\n this._activeTrigger = null\n if (this._popper) {\n this._popper.destroy()\n }\n\n this._popper = null\n this.config = null\n this.tip = null\n super.dispose()\n }\n\n show() {\n if (this._element.style.display === 'none') {\n throw new Error('Please use show on visible elements')\n }\n\n if (!(this.isWithContent() && this._isEnabled)) {\n return\n }\n\n const showEvent = EventHandler.trigger(this._element, this.constructor.Event.SHOW)\n const shadowRoot = findShadowRoot(this._element)\n const isInTheDom = shadowRoot === null ?\n this._element.ownerDocument.documentElement.contains(this._element) :\n shadowRoot.contains(this._element)\n\n if (showEvent.defaultPrevented || !isInTheDom) {\n return\n }\n\n const tip = this.getTipElement()\n const tipId = getUID(this.constructor.NAME)\n\n tip.setAttribute('id', tipId)\n this._element.setAttribute('aria-describedby', tipId)\n\n this.setContent()\n\n if (this.config.animation) {\n tip.classList.add(CLASS_NAME_FADE)\n }\n\n const placement = typeof this.config.placement === 'function' ?\n this.config.placement.call(this, tip, this._element) :\n this.config.placement\n\n const attachment = this._getAttachment(placement)\n this._addAttachmentClass(attachment)\n\n const container = this._getContainer()\n Data.set(tip, this.constructor.DATA_KEY, this)\n\n if (!this._element.ownerDocument.documentElement.contains(this.tip)) {\n container.appendChild(tip)\n EventHandler.trigger(this._element, this.constructor.Event.INSERTED)\n }\n\n if (this._popper) {\n this._popper.update()\n } else {\n this._popper = Popper.createPopper(this._element, tip, this._getPopperConfig(attachment))\n }\n\n tip.classList.add(CLASS_NAME_SHOW)\n\n const customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass\n if (customClass) {\n tip.classList.add(...customClass.split(' '))\n }\n\n // If this is a touch-enabled device we add extra\n // empty mouseover listeners to the body's immediate children;\n // only needed because of broken event delegation on iOS\n // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n if ('ontouchstart' in document.documentElement) {\n [].concat(...document.body.children).forEach(element => {\n EventHandler.on(element, 'mouseover', noop())\n })\n }\n\n const complete = () => {\n const prevHoverState = this._hoverState\n\n this._hoverState = null\n EventHandler.trigger(this._element, this.constructor.Event.SHOWN)\n\n if (prevHoverState === HOVER_STATE_OUT) {\n this._leave(null, this)\n }\n }\n\n if (this.tip.classList.contains(CLASS_NAME_FADE)) {\n const transitionDuration = getTransitionDurationFromElement(this.tip)\n EventHandler.one(this.tip, 'transitionend', complete)\n emulateTransitionEnd(this.tip, transitionDuration)\n } else {\n complete()\n }\n }\n\n hide() {\n if (!this._popper) {\n return\n }\n\n const tip = this.getTipElement()\n const complete = () => {\n if (this._isWithActiveTrigger()) {\n return\n }\n\n if (this._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {\n tip.parentNode.removeChild(tip)\n }\n\n this._cleanTipClass()\n this._element.removeAttribute('aria-describedby')\n EventHandler.trigger(this._element, this.constructor.Event.HIDDEN)\n\n if (this._popper) {\n this._popper.destroy()\n this._popper = null\n }\n }\n\n const hideEvent = EventHandler.trigger(this._element, this.constructor.Event.HIDE)\n if (hideEvent.defaultPrevented) {\n return\n }\n\n tip.classList.remove(CLASS_NAME_SHOW)\n\n // If this is a touch-enabled device we remove the extra\n // empty mouseover listeners we added for iOS support\n if ('ontouchstart' in document.documentElement) {\n [].concat(...document.body.children)\n .forEach(element => EventHandler.off(element, 'mouseover', noop))\n }\n\n this._activeTrigger[TRIGGER_CLICK] = false\n this._activeTrigger[TRIGGER_FOCUS] = false\n this._activeTrigger[TRIGGER_HOVER] = false\n\n if (this.tip.classList.contains(CLASS_NAME_FADE)) {\n const transitionDuration = getTransitionDurationFromElement(tip)\n\n EventHandler.one(tip, 'transitionend', complete)\n emulateTransitionEnd(tip, transitionDuration)\n } else {\n complete()\n }\n\n this._hoverState = ''\n }\n\n update() {\n if (this._popper !== null) {\n this._popper.update()\n }\n }\n\n // Protected\n\n isWithContent() {\n return Boolean(this.getTitle())\n }\n\n getTipElement() {\n if (this.tip) {\n return this.tip\n }\n\n const element = document.createElement('div')\n element.innerHTML = this.config.template\n\n this.tip = element.children[0]\n return this.tip\n }\n\n setContent() {\n const tip = this.getTipElement()\n this.setElementContent(SelectorEngine.findOne(SELECTOR_TOOLTIP_INNER, tip), this.getTitle())\n tip.classList.remove(CLASS_NAME_FADE, CLASS_NAME_SHOW)\n }\n\n setElementContent(element, content) {\n if (element === null) {\n return\n }\n\n if (typeof content === 'object' && isElement(content)) {\n if (content.jquery) {\n content = content[0]\n }\n\n // content is a DOM node or a jQuery\n if (this.config.html) {\n if (content.parentNode !== element) {\n element.innerHTML = ''\n element.appendChild(content)\n }\n } else {\n element.textContent = content.textContent\n }\n\n return\n }\n\n if (this.config.html) {\n if (this.config.sanitize) {\n content = sanitizeHtml(content, this.config.allowList, this.config.sanitizeFn)\n }\n\n element.innerHTML = content\n } else {\n element.textContent = content\n }\n }\n\n getTitle() {\n let title = this._element.getAttribute('data-bs-original-title')\n\n if (!title) {\n title = typeof this.config.title === 'function' ?\n this.config.title.call(this._element) :\n this.config.title\n }\n\n return title\n }\n\n updateAttachment(attachment) {\n if (attachment === 'right') {\n return 'end'\n }\n\n if (attachment === 'left') {\n return 'start'\n }\n\n return attachment\n }\n\n // Private\n\n _initializeOnDelegatedTarget(event, context) {\n const dataKey = this.constructor.DATA_KEY\n context = context || Data.get(event.delegateTarget, dataKey)\n\n if (!context) {\n context = new this.constructor(event.delegateTarget, this._getDelegateConfig())\n Data.set(event.delegateTarget, dataKey, context)\n }\n\n return context\n }\n\n _getOffset() {\n const { offset } = this.config\n\n if (typeof offset === 'string') {\n return offset.split(',').map(val => Number.parseInt(val, 10))\n }\n\n if (typeof offset === 'function') {\n return popperData => offset(popperData, this._element)\n }\n\n return offset\n }\n\n _getPopperConfig(attachment) {\n const defaultBsPopperConfig = {\n placement: attachment,\n modifiers: [\n {\n name: 'flip',\n options: {\n altBoundary: true,\n fallbackPlacements: this.config.fallbackPlacements\n }\n },\n {\n name: 'offset',\n options: {\n offset: this._getOffset()\n }\n },\n {\n name: 'preventOverflow',\n options: {\n boundary: this.config.boundary\n }\n },\n {\n name: 'arrow',\n options: {\n element: `.${this.constructor.NAME}-arrow`\n }\n },\n {\n name: 'onChange',\n enabled: true,\n phase: 'afterWrite',\n fn: data => this._handlePopperPlacementChange(data)\n }\n ],\n onFirstUpdate: data => {\n if (data.options.placement !== data.placement) {\n this._handlePopperPlacementChange(data)\n }\n }\n }\n\n return {\n ...defaultBsPopperConfig,\n ...(typeof this.config.popperConfig === 'function' ? this.config.popperConfig(defaultBsPopperConfig) : this.config.popperConfig)\n }\n }\n\n _addAttachmentClass(attachment) {\n this.getTipElement().classList.add(`${CLASS_PREFIX}-${this.updateAttachment(attachment)}`)\n }\n\n _getContainer() {\n if (this.config.container === false) {\n return document.body\n }\n\n if (isElement(this.config.container)) {\n return this.config.container\n }\n\n return SelectorEngine.findOne(this.config.container)\n }\n\n _getAttachment(placement) {\n return AttachmentMap[placement.toUpperCase()]\n }\n\n _setListeners() {\n const triggers = this.config.trigger.split(' ')\n\n triggers.forEach(trigger => {\n if (trigger === 'click') {\n EventHandler.on(this._element, this.constructor.Event.CLICK, this.config.selector, event => this.toggle(event))\n } else if (trigger !== TRIGGER_MANUAL) {\n const eventIn = trigger === TRIGGER_HOVER ?\n this.constructor.Event.MOUSEENTER :\n this.constructor.Event.FOCUSIN\n const eventOut = trigger === TRIGGER_HOVER ?\n this.constructor.Event.MOUSELEAVE :\n this.constructor.Event.FOCUSOUT\n\n EventHandler.on(this._element, eventIn, this.config.selector, event => this._enter(event))\n EventHandler.on(this._element, eventOut, this.config.selector, event => this._leave(event))\n }\n })\n\n this._hideModalHandler = () => {\n if (this._element) {\n this.hide()\n }\n }\n\n EventHandler.on(this._element.closest(`.${CLASS_NAME_MODAL}`), 'hide.bs.modal', this._hideModalHandler)\n\n if (this.config.selector) {\n this.config = {\n ...this.config,\n trigger: 'manual',\n selector: ''\n }\n } else {\n this._fixTitle()\n }\n }\n\n _fixTitle() {\n const title = this._element.getAttribute('title')\n const originalTitleType = typeof this._element.getAttribute('data-bs-original-title')\n\n if (title || originalTitleType !== 'string') {\n this._element.setAttribute('data-bs-original-title', title || '')\n if (title && !this._element.getAttribute('aria-label') && !this._element.textContent) {\n this._element.setAttribute('aria-label', title)\n }\n\n this._element.setAttribute('title', '')\n }\n }\n\n _enter(event, context) {\n context = this._initializeOnDelegatedTarget(event, context)\n\n if (event) {\n context._activeTrigger[\n event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER\n ] = true\n }\n\n if (context.getTipElement().classList.contains(CLASS_NAME_SHOW) || context._hoverState === HOVER_STATE_SHOW) {\n context._hoverState = HOVER_STATE_SHOW\n return\n }\n\n clearTimeout(context._timeout)\n\n context._hoverState = HOVER_STATE_SHOW\n\n if (!context.config.delay || !context.config.delay.show) {\n context.show()\n return\n }\n\n context._timeout = setTimeout(() => {\n if (context._hoverState === HOVER_STATE_SHOW) {\n context.show()\n }\n }, context.config.delay.show)\n }\n\n _leave(event, context) {\n context = this._initializeOnDelegatedTarget(event, context)\n\n if (event) {\n context._activeTrigger[\n event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER\n ] = context._element.contains(event.relatedTarget)\n }\n\n if (context._isWithActiveTrigger()) {\n return\n }\n\n clearTimeout(context._timeout)\n\n context._hoverState = HOVER_STATE_OUT\n\n if (!context.config.delay || !context.config.delay.hide) {\n context.hide()\n return\n }\n\n context._timeout = setTimeout(() => {\n if (context._hoverState === HOVER_STATE_OUT) {\n context.hide()\n }\n }, context.config.delay.hide)\n }\n\n _isWithActiveTrigger() {\n for (const trigger in this._activeTrigger) {\n if (this._activeTrigger[trigger]) {\n return true\n }\n }\n\n return false\n }\n\n _getConfig(config) {\n const dataAttributes = Manipulator.getDataAttributes(this._element)\n\n Object.keys(dataAttributes).forEach(dataAttr => {\n if (DISALLOWED_ATTRIBUTES.has(dataAttr)) {\n delete dataAttributes[dataAttr]\n }\n })\n\n if (config && typeof config.container === 'object' && config.container.jquery) {\n config.container = config.container[0]\n }\n\n config = {\n ...this.constructor.Default,\n ...dataAttributes,\n ...(typeof config === 'object' && config ? config : {})\n }\n\n if (typeof config.delay === 'number') {\n config.delay = {\n show: config.delay,\n hide: config.delay\n }\n }\n\n if (typeof config.title === 'number') {\n config.title = config.title.toString()\n }\n\n if (typeof config.content === 'number') {\n config.content = config.content.toString()\n }\n\n typeCheckConfig(NAME, config, this.constructor.DefaultType)\n\n if (config.sanitize) {\n config.template = sanitizeHtml(config.template, config.allowList, config.sanitizeFn)\n }\n\n return config\n }\n\n _getDelegateConfig() {\n const config = {}\n\n if (this.config) {\n for (const key in this.config) {\n if (this.constructor.Default[key] !== this.config[key]) {\n config[key] = this.config[key]\n }\n }\n }\n\n return config\n }\n\n _cleanTipClass() {\n const tip = this.getTipElement()\n const tabClass = tip.getAttribute('class').match(BSCLS_PREFIX_REGEX)\n if (tabClass !== null && tabClass.length > 0) {\n tabClass.map(token => token.trim())\n .forEach(tClass => tip.classList.remove(tClass))\n }\n }\n\n _handlePopperPlacementChange(popperData) {\n const { state } = popperData\n\n if (!state) {\n return\n }\n\n this.tip = state.elements.popper\n this._cleanTipClass()\n this._addAttachmentClass(this._getAttachment(state.placement))\n }\n\n // Static\n\n static jQueryInterface(config) {\n return this.each(function () {\n let data = Data.get(this, DATA_KEY)\n const _config = typeof config === 'object' && config\n\n if (!data && /dispose|hide/.test(config)) {\n return\n }\n\n if (!data) {\n data = new Tooltip(this, _config)\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`)\n }\n\n data[config]()\n }\n })\n }\n}\n\n/**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n * add .Tooltip to jQuery only if jQuery is present\n */\n\ndefineJQueryPlugin(NAME, Tooltip)\n\nexport default Tooltip\n"],"names":["MAX_UID","MILLISECONDS_MULTIPLIER","TRANSITION_END","toType","obj","undefined","toString","call","match","toLowerCase","getUID","prefix","Math","floor","random","document","getElementById","getTransitionDurationFromElement","element","transitionDuration","transitionDelay","window","getComputedStyle","floatTransitionDuration","Number","parseFloat","floatTransitionDelay","split","triggerTransitionEnd","dispatchEvent","Event","isElement","nodeType","emulateTransitionEnd","duration","called","durationPadding","emulatedDuration","listener","removeEventListener","addEventListener","setTimeout","typeCheckConfig","componentName","config","configTypes","Object","keys","forEach","property","expectedTypes","value","valueType","RegExp","test","TypeError","toUpperCase","findShadowRoot","documentElement","attachShadow","getRootNode","root","ShadowRoot","parentNode","noop","getjQuery","jQuery","body","hasAttribute","onDOMContentLoaded","callback","readyState","isRTL","dir","defineJQueryPlugin","name","plugin","$","JQUERY_NO_CONFLICT","fn","jQueryInterface","Constructor","noConflict","uriAttrs","Set","ARIA_ATTRIBUTE_PATTERN","SAFE_URL_PATTERN","DATA_URL_PATTERN","allowedAttribute","attr","allowedAttributeList","attrName","nodeName","includes","has","Boolean","nodeValue","regExp","filter","attrRegex","i","len","length","DefaultAllowlist","a","area","b","br","col","code","div","em","hr","h1","h2","h3","h4","h5","h6","img","li","ol","p","pre","s","small","span","sub","sup","strong","u","ul","sanitizeHtml","unsafeHtml","allowList","sanitizeFn","domParser","DOMParser","createdDocument","parseFromString","allowlistKeys","elements","concat","querySelectorAll","el","elName","removeChild","attributeList","attributes","allowedAttributes","removeAttribute","innerHTML","NAME","DATA_KEY","EVENT_KEY","CLASS_PREFIX","BSCLS_PREFIX_REGEX","DISALLOWED_ATTRIBUTES","DefaultType","animation","template","title","trigger","delay","html","selector","placement","offset","container","fallbackPlacements","boundary","customClass","sanitize","popperConfig","AttachmentMap","AUTO","TOP","RIGHT","BOTTOM","LEFT","Default","HIDE","HIDDEN","SHOW","SHOWN","INSERTED","CLICK","FOCUSIN","FOCUSOUT","MOUSEENTER","MOUSELEAVE","CLASS_NAME_FADE","CLASS_NAME_MODAL","CLASS_NAME_SHOW","HOVER_STATE_SHOW","HOVER_STATE_OUT","SELECTOR_TOOLTIP_INNER","TRIGGER_HOVER","TRIGGER_FOCUS","TRIGGER_CLICK","TRIGGER_MANUAL","Tooltip","BaseComponent","constructor","Popper","_isEnabled","_timeout","_hoverState","_activeTrigger","_popper","_getConfig","tip","_setListeners","enable","disable","toggleEnabled","toggle","event","context","_initializeOnDelegatedTarget","click","_isWithActiveTrigger","_enter","_leave","getTipElement","classList","contains","dispose","clearTimeout","EventHandler","off","_element","closest","_hideModalHandler","destroy","show","style","display","Error","isWithContent","showEvent","shadowRoot","isInTheDom","ownerDocument","defaultPrevented","tipId","setAttribute","setContent","add","attachment","_getAttachment","_addAttachmentClass","_getContainer","Data","set","appendChild","update","createPopper","_getPopperConfig","children","on","complete","prevHoverState","one","hide","_cleanTipClass","hideEvent","remove","getTitle","createElement","setElementContent","SelectorEngine","findOne","content","jquery","textContent","getAttribute","updateAttachment","dataKey","get","delegateTarget","_getDelegateConfig","_getOffset","map","val","parseInt","popperData","defaultBsPopperConfig","modifiers","options","altBoundary","enabled","phase","data","_handlePopperPlacementChange","onFirstUpdate","triggers","eventIn","eventOut","_fixTitle","originalTitleType","type","relatedTarget","dataAttributes","Manipulator","getDataAttributes","dataAttr","key","tabClass","token","trim","tClass","state","popper","each","_config"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;EAEA,MAAMA,OAAO,GAAG,OAAhB;EACA,MAAMC,uBAAuB,GAAG,IAAhC;EACA,MAAMC,cAAc,GAAG,eAAvB;;EAGA,MAAMC,MAAM,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ArB,CADrB;EAED;EACF;;EAEDjB,EAAAA,4BAA4B,CAACR,UAAD,EAAa;EACvC,UAAM;EAAE0B,MAAAA;EAAF,QAAY1B,UAAlB;;EAEA,QAAI,CAAC0B,KAAL,EAAY;EACV;EACD;;EAED,SAAKrG,GAAL,GAAWqG,KAAK,CAAC3K,QAAN,CAAe4K,MAA1B;;EACA,SAAKhD,cAAL;;EACA,SAAKd,mBAAL,CAAyB,KAAKD,cAAL,CAAoB8D,KAAK,CAAClJ,SAA1B,CAAzB;EACD,GA7nBiC;;;EAioBZ,SAAftF,eAAe,CAACpC,MAAD,EAAS;EAC7B,WAAO,KAAK8Q,IAAL,CAAU,YAAY;EAC3B,UAAIrB,IAAI,GAAGxC,wBAAI,CAAC0B,GAAL,CAAS,IAAT,EAAe9H,QAAf,CAAX;;EACA,YAAMkK,OAAO,GAAG,OAAO/Q,MAAP,KAAkB,QAAlB,IAA8BA,MAA9C;;EAEA,UAAI,CAACyP,IAAD,IAAS,eAAe/O,IAAf,CAAoBV,MAApB,CAAb,EAA0C;EACxC;EACD;;EAED,UAAI,CAACyP,IAAL,EAAW;EACTA,QAAAA,IAAI,GAAG,IAAI5F,OAAJ,CAAY,IAAZ,EAAkBkH,OAAlB,CAAP;EACD;;EAED,UAAI,OAAO/Q,MAAP,KAAkB,QAAtB,EAAgC;EAC9B,YAAI,OAAOyP,IAAI,CAACzP,MAAD,CAAX,KAAwB,WAA5B,EAAyC;EACvC,gBAAM,IAAIW,SAAJ,CAAe,oBAAmBX,MAAO,GAAzC,CAAN;EACD;;EAEDyP,QAAAA,IAAI,CAACzP,MAAD,CAAJ;EACD;EACF,KAnBM,CAAP;EAoBD;;EAtpBiC;EAypBpC;EACA;EACA;EACA;EACA;EACA;;;EAEA8B,kBAAkB,CAAC8E,IAAD,EAAOiD,OAAP,CAAlB;;;;;;;;"}
@@ -1,141 +0,0 @@
1
- /**
2
- * --------------------------------------------------------------------------
3
- * Bootstrap (v5.0.0-beta3): alert.js
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
- * --------------------------------------------------------------------------
6
- */
7
-
8
- import {
9
- defineJQueryPlugin,
10
- emulateTransitionEnd,
11
- getElementFromSelector,
12
- getTransitionDurationFromElement
13
- } from './util/index'
14
- import Data from './dom/data'
15
- import EventHandler from './dom/event-handler'
16
- import BaseComponent from './base-component'
17
-
18
- /**
19
- * ------------------------------------------------------------------------
20
- * Constants
21
- * ------------------------------------------------------------------------
22
- */
23
-
24
- const NAME = 'alert'
25
- const DATA_KEY = 'bs.alert'
26
- const EVENT_KEY = `.${DATA_KEY}`
27
- const DATA_API_KEY = '.data-api'
28
-
29
- const SELECTOR_DISMISS = '[data-bs-dismiss="alert"]'
30
-
31
- const EVENT_CLOSE = `close${EVENT_KEY}`
32
- const EVENT_CLOSED = `closed${EVENT_KEY}`
33
- const EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`
34
-
35
- const CLASS_NAME_ALERT = 'alert'
36
- const CLASS_NAME_FADE = 'fade'
37
- const CLASS_NAME_SHOW = 'show'
38
-
39
- /**
40
- * ------------------------------------------------------------------------
41
- * Class Definition
42
- * ------------------------------------------------------------------------
43
- */
44
-
45
- class Alert extends BaseComponent {
46
- // Getters
47
-
48
- static get DATA_KEY() {
49
- return DATA_KEY
50
- }
51
-
52
- // Public
53
-
54
- close(element) {
55
- const rootElement = element ? this._getRootElement(element) : this._element
56
- const customEvent = this._triggerCloseEvent(rootElement)
57
-
58
- if (customEvent === null || customEvent.defaultPrevented) {
59
- return
60
- }
61
-
62
- this._removeElement(rootElement)
63
- }
64
-
65
- // Private
66
-
67
- _getRootElement(element) {
68
- return getElementFromSelector(element) || element.closest(`.${CLASS_NAME_ALERT}`)
69
- }
70
-
71
- _triggerCloseEvent(element) {
72
- return EventHandler.trigger(element, EVENT_CLOSE)
73
- }
74
-
75
- _removeElement(element) {
76
- element.classList.remove(CLASS_NAME_SHOW)
77
-
78
- if (!element.classList.contains(CLASS_NAME_FADE)) {
79
- this._destroyElement(element)
80
- return
81
- }
82
-
83
- const transitionDuration = getTransitionDurationFromElement(element)
84
-
85
- EventHandler.one(element, 'transitionend', () => this._destroyElement(element))
86
- emulateTransitionEnd(element, transitionDuration)
87
- }
88
-
89
- _destroyElement(element) {
90
- if (element.parentNode) {
91
- element.parentNode.removeChild(element)
92
- }
93
-
94
- EventHandler.trigger(element, EVENT_CLOSED)
95
- }
96
-
97
- // Static
98
-
99
- static jQueryInterface(config) {
100
- return this.each(function () {
101
- let data = Data.get(this, DATA_KEY)
102
-
103
- if (!data) {
104
- data = new Alert(this)
105
- }
106
-
107
- if (config === 'close') {
108
- data[config](this)
109
- }
110
- })
111
- }
112
-
113
- static handleDismiss(alertInstance) {
114
- return function (event) {
115
- if (event) {
116
- event.preventDefault()
117
- }
118
-
119
- alertInstance.close(this)
120
- }
121
- }
122
- }
123
-
124
- /**
125
- * ------------------------------------------------------------------------
126
- * Data Api implementation
127
- * ------------------------------------------------------------------------
128
- */
129
-
130
- EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert.handleDismiss(new Alert()))
131
-
132
- /**
133
- * ------------------------------------------------------------------------
134
- * jQuery
135
- * ------------------------------------------------------------------------
136
- * add .Alert to jQuery only if jQuery is present
137
- */
138
-
139
- defineJQueryPlugin(NAME, Alert)
140
-
141
- export default Alert
@@ -1,46 +0,0 @@
1
- /**
2
- * --------------------------------------------------------------------------
3
- * Bootstrap (v5.0.0-beta3): base-component.js
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
- * --------------------------------------------------------------------------
6
- */
7
-
8
- import Data from './dom/data'
9
-
10
- /**
11
- * ------------------------------------------------------------------------
12
- * Constants
13
- * ------------------------------------------------------------------------
14
- */
15
-
16
- const VERSION = '5.0.0-beta3'
17
-
18
- class BaseComponent {
19
- constructor(element) {
20
- element = typeof element === 'string' ? document.querySelector(element) : element
21
-
22
- if (!element) {
23
- return
24
- }
25
-
26
- this._element = element
27
- Data.set(this._element, this.constructor.DATA_KEY, this)
28
- }
29
-
30
- dispose() {
31
- Data.remove(this._element, this.constructor.DATA_KEY)
32
- this._element = null
33
- }
34
-
35
- /** Static */
36
-
37
- static getInstance(element) {
38
- return Data.get(element, this.DATA_KEY)
39
- }
40
-
41
- static get VERSION() {
42
- return VERSION
43
- }
44
- }
45
-
46
- export default BaseComponent
@@ -1,95 +0,0 @@
1
- /**
2
- * --------------------------------------------------------------------------
3
- * Bootstrap (v5.0.0-beta3): button.js
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
- * --------------------------------------------------------------------------
6
- */
7
-
8
- import { defineJQueryPlugin } from './util/index'
9
- import Data from './dom/data'
10
- import EventHandler from './dom/event-handler'
11
- import BaseComponent from './base-component'
12
-
13
- /**
14
- * ------------------------------------------------------------------------
15
- * Constants
16
- * ------------------------------------------------------------------------
17
- */
18
-
19
- const NAME = 'button'
20
- const DATA_KEY = 'bs.button'
21
- const EVENT_KEY = `.${DATA_KEY}`
22
- const DATA_API_KEY = '.data-api'
23
-
24
- const CLASS_NAME_ACTIVE = 'active'
25
-
26
- const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="button"]'
27
-
28
- const EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`
29
-
30
- /**
31
- * ------------------------------------------------------------------------
32
- * Class Definition
33
- * ------------------------------------------------------------------------
34
- */
35
-
36
- class Button extends BaseComponent {
37
- // Getters
38
-
39
- static get DATA_KEY() {
40
- return DATA_KEY
41
- }
42
-
43
- // Public
44
-
45
- toggle() {
46
- // Toggle class and sync the `aria-pressed` attribute with the return value of the `.toggle()` method
47
- this._element.setAttribute('aria-pressed', this._element.classList.toggle(CLASS_NAME_ACTIVE))
48
- }
49
-
50
- // Static
51
-
52
- static jQueryInterface(config) {
53
- return this.each(function () {
54
- let data = Data.get(this, DATA_KEY)
55
-
56
- if (!data) {
57
- data = new Button(this)
58
- }
59
-
60
- if (config === 'toggle') {
61
- data[config]()
62
- }
63
- })
64
- }
65
- }
66
-
67
- /**
68
- * ------------------------------------------------------------------------
69
- * Data Api implementation
70
- * ------------------------------------------------------------------------
71
- */
72
-
73
- EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, event => {
74
- event.preventDefault()
75
-
76
- const button = event.target.closest(SELECTOR_DATA_TOGGLE)
77
-
78
- let data = Data.get(button, DATA_KEY)
79
- if (!data) {
80
- data = new Button(button)
81
- }
82
-
83
- data.toggle()
84
- })
85
-
86
- /**
87
- * ------------------------------------------------------------------------
88
- * jQuery
89
- * ------------------------------------------------------------------------
90
- * add .Button to jQuery only if jQuery is present
91
- */
92
-
93
- defineJQueryPlugin(NAME, Button)
94
-
95
- export default Button
@@ -1,624 +0,0 @@
1
- /**
2
- * --------------------------------------------------------------------------
3
- * Bootstrap (v5.0.0-beta3): carousel.js
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
- * --------------------------------------------------------------------------
6
- */
7
-
8
- import {
9
- defineJQueryPlugin,
10
- emulateTransitionEnd,
11
- getElementFromSelector,
12
- getTransitionDurationFromElement,
13
- isRTL,
14
- isVisible,
15
- reflow,
16
- triggerTransitionEnd,
17
- typeCheckConfig
18
- } from './util/index'
19
- import Data from './dom/data'
20
- import EventHandler from './dom/event-handler'
21
- import Manipulator from './dom/manipulator'
22
- import SelectorEngine from './dom/selector-engine'
23
- import BaseComponent from './base-component'
24
-
25
- /**
26
- * ------------------------------------------------------------------------
27
- * Constants
28
- * ------------------------------------------------------------------------
29
- */
30
-
31
- const NAME = 'carousel'
32
- const DATA_KEY = 'bs.carousel'
33
- const EVENT_KEY = `.${DATA_KEY}`
34
- const DATA_API_KEY = '.data-api'
35
-
36
- const ARROW_LEFT_KEY = 'ArrowLeft'
37
- const ARROW_RIGHT_KEY = 'ArrowRight'
38
- const TOUCHEVENT_COMPAT_WAIT = 500 // Time for mouse compat events to fire after touch
39
- const SWIPE_THRESHOLD = 40
40
-
41
- const Default = {
42
- interval: 5000,
43
- keyboard: true,
44
- slide: false,
45
- pause: 'hover',
46
- wrap: true,
47
- touch: true
48
- }
49
-
50
- const DefaultType = {
51
- interval: '(number|boolean)',
52
- keyboard: 'boolean',
53
- slide: '(boolean|string)',
54
- pause: '(string|boolean)',
55
- wrap: 'boolean',
56
- touch: 'boolean'
57
- }
58
-
59
- const ORDER_NEXT = 'next'
60
- const ORDER_PREV = 'prev'
61
- const DIRECTION_LEFT = 'left'
62
- const DIRECTION_RIGHT = 'right'
63
-
64
- const EVENT_SLIDE = `slide${EVENT_KEY}`
65
- const EVENT_SLID = `slid${EVENT_KEY}`
66
- const EVENT_KEYDOWN = `keydown${EVENT_KEY}`
67
- const EVENT_MOUSEENTER = `mouseenter${EVENT_KEY}`
68
- const EVENT_MOUSELEAVE = `mouseleave${EVENT_KEY}`
69
- const EVENT_TOUCHSTART = `touchstart${EVENT_KEY}`
70
- const EVENT_TOUCHMOVE = `touchmove${EVENT_KEY}`
71
- const EVENT_TOUCHEND = `touchend${EVENT_KEY}`
72
- const EVENT_POINTERDOWN = `pointerdown${EVENT_KEY}`
73
- const EVENT_POINTERUP = `pointerup${EVENT_KEY}`
74
- const EVENT_DRAG_START = `dragstart${EVENT_KEY}`
75
- const EVENT_LOAD_DATA_API = `load${EVENT_KEY}${DATA_API_KEY}`
76
- const EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`
77
-
78
- const CLASS_NAME_CAROUSEL = 'carousel'
79
- const CLASS_NAME_ACTIVE = 'active'
80
- const CLASS_NAME_SLIDE = 'slide'
81
- const CLASS_NAME_END = 'carousel-item-end'
82
- const CLASS_NAME_START = 'carousel-item-start'
83
- const CLASS_NAME_NEXT = 'carousel-item-next'
84
- const CLASS_NAME_PREV = 'carousel-item-prev'
85
- const CLASS_NAME_POINTER_EVENT = 'pointer-event'
86
-
87
- const SELECTOR_ACTIVE = '.active'
88
- const SELECTOR_ACTIVE_ITEM = '.active.carousel-item'
89
- const SELECTOR_ITEM = '.carousel-item'
90
- const SELECTOR_ITEM_IMG = '.carousel-item img'
91
- const SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev'
92
- const SELECTOR_INDICATORS = '.carousel-indicators'
93
- const SELECTOR_INDICATOR = '[data-bs-target]'
94
- const SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]'
95
- const SELECTOR_DATA_RIDE = '[data-bs-ride="carousel"]'
96
-
97
- const POINTER_TYPE_TOUCH = 'touch'
98
- const POINTER_TYPE_PEN = 'pen'
99
-
100
- /**
101
- * ------------------------------------------------------------------------
102
- * Class Definition
103
- * ------------------------------------------------------------------------
104
- */
105
- class Carousel extends BaseComponent {
106
- constructor(element, config) {
107
- super(element)
108
-
109
- this._items = null
110
- this._interval = null
111
- this._activeElement = null
112
- this._isPaused = false
113
- this._isSliding = false
114
- this.touchTimeout = null
115
- this.touchStartX = 0
116
- this.touchDeltaX = 0
117
-
118
- this._config = this._getConfig(config)
119
- this._indicatorsElement = SelectorEngine.findOne(SELECTOR_INDICATORS, this._element)
120
- this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0
121
- this._pointerEvent = Boolean(window.PointerEvent)
122
-
123
- this._addEventListeners()
124
- }
125
-
126
- // Getters
127
-
128
- static get Default() {
129
- return Default
130
- }
131
-
132
- static get DATA_KEY() {
133
- return DATA_KEY
134
- }
135
-
136
- // Public
137
-
138
- next() {
139
- if (!this._isSliding) {
140
- this._slide(ORDER_NEXT)
141
- }
142
- }
143
-
144
- nextWhenVisible() {
145
- // Don't call next when the page isn't visible
146
- // or the carousel or its parent isn't visible
147
- if (!document.hidden && isVisible(this._element)) {
148
- this.next()
149
- }
150
- }
151
-
152
- prev() {
153
- if (!this._isSliding) {
154
- this._slide(ORDER_PREV)
155
- }
156
- }
157
-
158
- pause(event) {
159
- if (!event) {
160
- this._isPaused = true
161
- }
162
-
163
- if (SelectorEngine.findOne(SELECTOR_NEXT_PREV, this._element)) {
164
- triggerTransitionEnd(this._element)
165
- this.cycle(true)
166
- }
167
-
168
- clearInterval(this._interval)
169
- this._interval = null
170
- }
171
-
172
- cycle(event) {
173
- if (!event) {
174
- this._isPaused = false
175
- }
176
-
177
- if (this._interval) {
178
- clearInterval(this._interval)
179
- this._interval = null
180
- }
181
-
182
- if (this._config && this._config.interval && !this._isPaused) {
183
- this._updateInterval()
184
-
185
- this._interval = setInterval(
186
- (document.visibilityState ? this.nextWhenVisible : this.next).bind(this),
187
- this._config.interval
188
- )
189
- }
190
- }
191
-
192
- to(index) {
193
- this._activeElement = SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element)
194
- const activeIndex = this._getItemIndex(this._activeElement)
195
-
196
- if (index > this._items.length - 1 || index < 0) {
197
- return
198
- }
199
-
200
- if (this._isSliding) {
201
- EventHandler.one(this._element, EVENT_SLID, () => this.to(index))
202
- return
203
- }
204
-
205
- if (activeIndex === index) {
206
- this.pause()
207
- this.cycle()
208
- return
209
- }
210
-
211
- const order = index > activeIndex ?
212
- ORDER_NEXT :
213
- ORDER_PREV
214
-
215
- this._slide(order, this._items[index])
216
- }
217
-
218
- dispose() {
219
- EventHandler.off(this._element, EVENT_KEY)
220
-
221
- this._items = null
222
- this._config = null
223
- this._interval = null
224
- this._isPaused = null
225
- this._isSliding = null
226
- this._activeElement = null
227
- this._indicatorsElement = null
228
-
229
- super.dispose()
230
- }
231
-
232
- // Private
233
-
234
- _getConfig(config) {
235
- config = {
236
- ...Default,
237
- ...config
238
- }
239
- typeCheckConfig(NAME, config, DefaultType)
240
- return config
241
- }
242
-
243
- _handleSwipe() {
244
- const absDeltax = Math.abs(this.touchDeltaX)
245
-
246
- if (absDeltax <= SWIPE_THRESHOLD) {
247
- return
248
- }
249
-
250
- const direction = absDeltax / this.touchDeltaX
251
-
252
- this.touchDeltaX = 0
253
-
254
- if (!direction) {
255
- return
256
- }
257
-
258
- this._slide(direction > 0 ? DIRECTION_RIGHT : DIRECTION_LEFT)
259
- }
260
-
261
- _addEventListeners() {
262
- if (this._config.keyboard) {
263
- EventHandler.on(this._element, EVENT_KEYDOWN, event => this._keydown(event))
264
- }
265
-
266
- if (this._config.pause === 'hover') {
267
- EventHandler.on(this._element, EVENT_MOUSEENTER, event => this.pause(event))
268
- EventHandler.on(this._element, EVENT_MOUSELEAVE, event => this.cycle(event))
269
- }
270
-
271
- if (this._config.touch && this._touchSupported) {
272
- this._addTouchEventListeners()
273
- }
274
- }
275
-
276
- _addTouchEventListeners() {
277
- const start = event => {
278
- if (this._pointerEvent && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)) {
279
- this.touchStartX = event.clientX
280
- } else if (!this._pointerEvent) {
281
- this.touchStartX = event.touches[0].clientX
282
- }
283
- }
284
-
285
- const move = event => {
286
- // ensure swiping with one touch and not pinching
287
- this.touchDeltaX = event.touches && event.touches.length > 1 ?
288
- 0 :
289
- event.touches[0].clientX - this.touchStartX
290
- }
291
-
292
- const end = event => {
293
- if (this._pointerEvent && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)) {
294
- this.touchDeltaX = event.clientX - this.touchStartX
295
- }
296
-
297
- this._handleSwipe()
298
- if (this._config.pause === 'hover') {
299
- // If it's a touch-enabled device, mouseenter/leave are fired as
300
- // part of the mouse compatibility events on first tap - the carousel
301
- // would stop cycling until user tapped out of it;
302
- // here, we listen for touchend, explicitly pause the carousel
303
- // (as if it's the second time we tap on it, mouseenter compat event
304
- // is NOT fired) and after a timeout (to allow for mouse compatibility
305
- // events to fire) we explicitly restart cycling
306
-
307
- this.pause()
308
- if (this.touchTimeout) {
309
- clearTimeout(this.touchTimeout)
310
- }
311
-
312
- this.touchTimeout = setTimeout(event => this.cycle(event), TOUCHEVENT_COMPAT_WAIT + this._config.interval)
313
- }
314
- }
315
-
316
- SelectorEngine.find(SELECTOR_ITEM_IMG, this._element).forEach(itemImg => {
317
- EventHandler.on(itemImg, EVENT_DRAG_START, e => e.preventDefault())
318
- })
319
-
320
- if (this._pointerEvent) {
321
- EventHandler.on(this._element, EVENT_POINTERDOWN, event => start(event))
322
- EventHandler.on(this._element, EVENT_POINTERUP, event => end(event))
323
-
324
- this._element.classList.add(CLASS_NAME_POINTER_EVENT)
325
- } else {
326
- EventHandler.on(this._element, EVENT_TOUCHSTART, event => start(event))
327
- EventHandler.on(this._element, EVENT_TOUCHMOVE, event => move(event))
328
- EventHandler.on(this._element, EVENT_TOUCHEND, event => end(event))
329
- }
330
- }
331
-
332
- _keydown(event) {
333
- if (/input|textarea/i.test(event.target.tagName)) {
334
- return
335
- }
336
-
337
- if (event.key === ARROW_LEFT_KEY) {
338
- event.preventDefault()
339
- this._slide(DIRECTION_LEFT)
340
- } else if (event.key === ARROW_RIGHT_KEY) {
341
- event.preventDefault()
342
- this._slide(DIRECTION_RIGHT)
343
- }
344
- }
345
-
346
- _getItemIndex(element) {
347
- this._items = element && element.parentNode ?
348
- SelectorEngine.find(SELECTOR_ITEM, element.parentNode) :
349
- []
350
-
351
- return this._items.indexOf(element)
352
- }
353
-
354
- _getItemByOrder(order, activeElement) {
355
- const isNext = order === ORDER_NEXT
356
- const isPrev = order === ORDER_PREV
357
- const activeIndex = this._getItemIndex(activeElement)
358
- const lastItemIndex = this._items.length - 1
359
- const isGoingToWrap = (isPrev && activeIndex === 0) || (isNext && activeIndex === lastItemIndex)
360
-
361
- if (isGoingToWrap && !this._config.wrap) {
362
- return activeElement
363
- }
364
-
365
- const delta = isPrev ? -1 : 1
366
- const itemIndex = (activeIndex + delta) % this._items.length
367
-
368
- return itemIndex === -1 ?
369
- this._items[this._items.length - 1] :
370
- this._items[itemIndex]
371
- }
372
-
373
- _triggerSlideEvent(relatedTarget, eventDirectionName) {
374
- const targetIndex = this._getItemIndex(relatedTarget)
375
- const fromIndex = this._getItemIndex(SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element))
376
-
377
- return EventHandler.trigger(this._element, EVENT_SLIDE, {
378
- relatedTarget,
379
- direction: eventDirectionName,
380
- from: fromIndex,
381
- to: targetIndex
382
- })
383
- }
384
-
385
- _setActiveIndicatorElement(element) {
386
- if (this._indicatorsElement) {
387
- const activeIndicator = SelectorEngine.findOne(SELECTOR_ACTIVE, this._indicatorsElement)
388
-
389
- activeIndicator.classList.remove(CLASS_NAME_ACTIVE)
390
- activeIndicator.removeAttribute('aria-current')
391
-
392
- const indicators = SelectorEngine.find(SELECTOR_INDICATOR, this._indicatorsElement)
393
-
394
- for (let i = 0; i < indicators.length; i++) {
395
- if (Number.parseInt(indicators[i].getAttribute('data-bs-slide-to'), 10) === this._getItemIndex(element)) {
396
- indicators[i].classList.add(CLASS_NAME_ACTIVE)
397
- indicators[i].setAttribute('aria-current', 'true')
398
- break
399
- }
400
- }
401
- }
402
- }
403
-
404
- _updateInterval() {
405
- const element = this._activeElement || SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element)
406
-
407
- if (!element) {
408
- return
409
- }
410
-
411
- const elementInterval = Number.parseInt(element.getAttribute('data-bs-interval'), 10)
412
-
413
- if (elementInterval) {
414
- this._config.defaultInterval = this._config.defaultInterval || this._config.interval
415
- this._config.interval = elementInterval
416
- } else {
417
- this._config.interval = this._config.defaultInterval || this._config.interval
418
- }
419
- }
420
-
421
- _slide(directionOrOrder, element) {
422
- const order = this._directionToOrder(directionOrOrder)
423
- const activeElement = SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element)
424
- const activeElementIndex = this._getItemIndex(activeElement)
425
- const nextElement = element || this._getItemByOrder(order, activeElement)
426
-
427
- const nextElementIndex = this._getItemIndex(nextElement)
428
- const isCycling = Boolean(this._interval)
429
-
430
- const isNext = order === ORDER_NEXT
431
- const directionalClassName = isNext ? CLASS_NAME_START : CLASS_NAME_END
432
- const orderClassName = isNext ? CLASS_NAME_NEXT : CLASS_NAME_PREV
433
- const eventDirectionName = this._orderToDirection(order)
434
-
435
- if (nextElement && nextElement.classList.contains(CLASS_NAME_ACTIVE)) {
436
- this._isSliding = false
437
- return
438
- }
439
-
440
- const slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName)
441
- if (slideEvent.defaultPrevented) {
442
- return
443
- }
444
-
445
- if (!activeElement || !nextElement) {
446
- // Some weirdness is happening, so we bail
447
- return
448
- }
449
-
450
- this._isSliding = true
451
-
452
- if (isCycling) {
453
- this.pause()
454
- }
455
-
456
- this._setActiveIndicatorElement(nextElement)
457
- this._activeElement = nextElement
458
-
459
- if (this._element.classList.contains(CLASS_NAME_SLIDE)) {
460
- nextElement.classList.add(orderClassName)
461
-
462
- reflow(nextElement)
463
-
464
- activeElement.classList.add(directionalClassName)
465
- nextElement.classList.add(directionalClassName)
466
-
467
- const transitionDuration = getTransitionDurationFromElement(activeElement)
468
-
469
- EventHandler.one(activeElement, 'transitionend', () => {
470
- nextElement.classList.remove(directionalClassName, orderClassName)
471
- nextElement.classList.add(CLASS_NAME_ACTIVE)
472
-
473
- activeElement.classList.remove(CLASS_NAME_ACTIVE, orderClassName, directionalClassName)
474
-
475
- this._isSliding = false
476
-
477
- setTimeout(() => {
478
- EventHandler.trigger(this._element, EVENT_SLID, {
479
- relatedTarget: nextElement,
480
- direction: eventDirectionName,
481
- from: activeElementIndex,
482
- to: nextElementIndex
483
- })
484
- }, 0)
485
- })
486
-
487
- emulateTransitionEnd(activeElement, transitionDuration)
488
- } else {
489
- activeElement.classList.remove(CLASS_NAME_ACTIVE)
490
- nextElement.classList.add(CLASS_NAME_ACTIVE)
491
-
492
- this._isSliding = false
493
- EventHandler.trigger(this._element, EVENT_SLID, {
494
- relatedTarget: nextElement,
495
- direction: eventDirectionName,
496
- from: activeElementIndex,
497
- to: nextElementIndex
498
- })
499
- }
500
-
501
- if (isCycling) {
502
- this.cycle()
503
- }
504
- }
505
-
506
- _directionToOrder(direction) {
507
- if (![DIRECTION_RIGHT, DIRECTION_LEFT].includes(direction)) {
508
- return direction
509
- }
510
-
511
- if (isRTL()) {
512
- return direction === DIRECTION_RIGHT ? ORDER_PREV : ORDER_NEXT
513
- }
514
-
515
- return direction === DIRECTION_RIGHT ? ORDER_NEXT : ORDER_PREV
516
- }
517
-
518
- _orderToDirection(order) {
519
- if (![ORDER_NEXT, ORDER_PREV].includes(order)) {
520
- return order
521
- }
522
-
523
- if (isRTL()) {
524
- return order === ORDER_NEXT ? DIRECTION_LEFT : DIRECTION_RIGHT
525
- }
526
-
527
- return order === ORDER_NEXT ? DIRECTION_RIGHT : DIRECTION_LEFT
528
- }
529
-
530
- // Static
531
-
532
- static carouselInterface(element, config) {
533
- let data = Data.get(element, DATA_KEY)
534
- let _config = {
535
- ...Default,
536
- ...Manipulator.getDataAttributes(element)
537
- }
538
-
539
- if (typeof config === 'object') {
540
- _config = {
541
- ..._config,
542
- ...config
543
- }
544
- }
545
-
546
- const action = typeof config === 'string' ? config : _config.slide
547
-
548
- if (!data) {
549
- data = new Carousel(element, _config)
550
- }
551
-
552
- if (typeof config === 'number') {
553
- data.to(config)
554
- } else if (typeof action === 'string') {
555
- if (typeof data[action] === 'undefined') {
556
- throw new TypeError(`No method named "${action}"`)
557
- }
558
-
559
- data[action]()
560
- } else if (_config.interval && _config.ride) {
561
- data.pause()
562
- data.cycle()
563
- }
564
- }
565
-
566
- static jQueryInterface(config) {
567
- return this.each(function () {
568
- Carousel.carouselInterface(this, config)
569
- })
570
- }
571
-
572
- static dataApiClickHandler(event) {
573
- const target = getElementFromSelector(this)
574
-
575
- if (!target || !target.classList.contains(CLASS_NAME_CAROUSEL)) {
576
- return
577
- }
578
-
579
- const config = {
580
- ...Manipulator.getDataAttributes(target),
581
- ...Manipulator.getDataAttributes(this)
582
- }
583
- const slideIndex = this.getAttribute('data-bs-slide-to')
584
-
585
- if (slideIndex) {
586
- config.interval = false
587
- }
588
-
589
- Carousel.carouselInterface(target, config)
590
-
591
- if (slideIndex) {
592
- Data.get(target, DATA_KEY).to(slideIndex)
593
- }
594
-
595
- event.preventDefault()
596
- }
597
- }
598
-
599
- /**
600
- * ------------------------------------------------------------------------
601
- * Data Api implementation
602
- * ------------------------------------------------------------------------
603
- */
604
-
605
- EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_SLIDE, Carousel.dataApiClickHandler)
606
-
607
- EventHandler.on(window, EVENT_LOAD_DATA_API, () => {
608
- const carousels = SelectorEngine.find(SELECTOR_DATA_RIDE)
609
-
610
- for (let i = 0, len = carousels.length; i < len; i++) {
611
- Carousel.carouselInterface(carousels[i], Data.get(carousels[i], DATA_KEY))
612
- }
613
- })
614
-
615
- /**
616
- * ------------------------------------------------------------------------
617
- * jQuery
618
- * ------------------------------------------------------------------------
619
- * add .Carousel to jQuery only if jQuery is present
620
- */
621
-
622
- defineJQueryPlugin(NAME, Carousel)
623
-
624
- export default Carousel