@coreui/coreui 4.2.5 → 4.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/LICENSE +5 -6
  2. package/README.md +2 -2
  3. package/dist/css/coreui-grid.css +36 -83
  4. package/dist/css/coreui-grid.css.map +1 -1
  5. package/dist/css/coreui-grid.min.css +4 -6
  6. package/dist/css/coreui-grid.min.css.map +1 -1
  7. package/dist/css/coreui-grid.rtl.css +40 -89
  8. package/dist/css/coreui-grid.rtl.css.map +1 -1
  9. package/dist/css/coreui-grid.rtl.min.css +8 -12
  10. package/dist/css/coreui-grid.rtl.min.css.map +1 -1
  11. package/dist/css/coreui-reboot.css +176 -48
  12. package/dist/css/coreui-reboot.css.map +1 -1
  13. package/dist/css/coreui-reboot.min.css +4 -6
  14. package/dist/css/coreui-reboot.min.css.map +1 -1
  15. package/dist/css/coreui-reboot.rtl.css +180 -54
  16. package/dist/css/coreui-reboot.rtl.css.map +1 -1
  17. package/dist/css/coreui-reboot.rtl.min.css +8 -12
  18. package/dist/css/coreui-reboot.rtl.min.css.map +1 -1
  19. package/dist/css/coreui-utilities.css +1328 -95
  20. package/dist/css/coreui-utilities.css.map +1 -1
  21. package/dist/css/coreui-utilities.min.css +4 -6
  22. package/dist/css/coreui-utilities.min.css.map +1 -1
  23. package/dist/css/coreui-utilities.rtl.css +1237 -101
  24. package/dist/css/coreui-utilities.rtl.css.map +1 -1
  25. package/dist/css/coreui-utilities.rtl.min.css +8 -12
  26. package/dist/css/coreui-utilities.rtl.min.css.map +1 -1
  27. package/dist/css/coreui.css +2372 -889
  28. package/dist/css/coreui.css.map +1 -1
  29. package/dist/css/coreui.min.css +4 -6
  30. package/dist/css/coreui.min.css.map +1 -1
  31. package/dist/css/coreui.rtl.css +2295 -902
  32. package/dist/css/coreui.rtl.css.map +1 -1
  33. package/dist/css/coreui.rtl.min.css +8 -12
  34. package/dist/css/coreui.rtl.min.css.map +1 -1
  35. package/dist/js/coreui.bundle.js +289 -264
  36. package/dist/js/coreui.bundle.js.map +1 -1
  37. package/dist/js/coreui.bundle.min.js +4 -4
  38. package/dist/js/coreui.bundle.min.js.map +1 -1
  39. package/dist/js/coreui.esm.js +255 -230
  40. package/dist/js/coreui.esm.js.map +1 -1
  41. package/dist/js/coreui.esm.min.js +4 -4
  42. package/dist/js/coreui.esm.min.js.map +1 -1
  43. package/dist/js/coreui.js +258 -232
  44. package/dist/js/coreui.js.map +1 -1
  45. package/dist/js/coreui.min.js +4 -4
  46. package/dist/js/coreui.min.js.map +1 -1
  47. package/js/dist/alert.js +10 -9
  48. package/js/dist/alert.js.map +1 -1
  49. package/js/dist/base-component.js +11 -10
  50. package/js/dist/base-component.js.map +1 -1
  51. package/js/dist/button.js +10 -9
  52. package/js/dist/button.js.map +1 -1
  53. package/js/dist/carousel.js +11 -10
  54. package/js/dist/carousel.js.map +1 -1
  55. package/js/dist/collapse.js +10 -9
  56. package/js/dist/collapse.js.map +1 -1
  57. package/js/dist/dom/data.js +5 -5
  58. package/js/dist/dom/data.js.map +1 -1
  59. package/js/dist/dom/event-handler.js +9 -9
  60. package/js/dist/dom/event-handler.js.map +1 -1
  61. package/js/dist/dom/manipulator.js +5 -5
  62. package/js/dist/dom/manipulator.js.map +1 -1
  63. package/js/dist/dom/selector-engine.js +6 -5
  64. package/js/dist/dom/selector-engine.js.map +1 -1
  65. package/js/dist/dropdown.js +13 -12
  66. package/js/dist/dropdown.js.map +1 -1
  67. package/js/dist/modal.js +12 -13
  68. package/js/dist/modal.js.map +1 -1
  69. package/js/dist/navigation.js +10 -9
  70. package/js/dist/navigation.js.map +1 -1
  71. package/js/dist/offcanvas.js +13 -12
  72. package/js/dist/offcanvas.js.map +1 -1
  73. package/js/dist/popover.js +10 -9
  74. package/js/dist/popover.js.map +1 -1
  75. package/js/dist/scrollspy.js +14 -13
  76. package/js/dist/scrollspy.js.map +1 -1
  77. package/js/dist/sidebar.js +10 -9
  78. package/js/dist/sidebar.js.map +1 -1
  79. package/js/dist/tab.js +13 -12
  80. package/js/dist/tab.js.map +1 -1
  81. package/js/dist/toast.js +10 -9
  82. package/js/dist/toast.js.map +1 -1
  83. package/js/dist/tooltip.js +14 -13
  84. package/js/dist/tooltip.js.map +1 -1
  85. package/js/dist/util/backdrop.js +10 -9
  86. package/js/dist/util/backdrop.js.map +1 -1
  87. package/js/dist/util/component-functions.js +10 -9
  88. package/js/dist/util/component-functions.js.map +1 -1
  89. package/js/dist/util/config.js +10 -9
  90. package/js/dist/util/config.js.map +1 -1
  91. package/js/dist/util/focustrap.js +6 -5
  92. package/js/dist/util/focustrap.js.map +1 -1
  93. package/js/dist/util/index.js +5 -5
  94. package/js/dist/util/index.js.map +1 -1
  95. package/js/dist/util/sanitizer.js +10 -6
  96. package/js/dist/util/sanitizer.js.map +1 -1
  97. package/js/dist/util/scrollbar.js +10 -9
  98. package/js/dist/util/scrollbar.js.map +1 -1
  99. package/js/dist/util/swipe.js +10 -9
  100. package/js/dist/util/swipe.js.map +1 -1
  101. package/js/dist/util/template-factory.js +10 -9
  102. package/js/dist/util/template-factory.js.map +1 -1
  103. package/js/index.esm.js +21 -0
  104. package/js/index.umd.js +38 -0
  105. package/js/src/alert.js +4 -4
  106. package/js/src/base-component.js +4 -4
  107. package/js/src/button.js +4 -4
  108. package/js/src/carousel.js +7 -7
  109. package/js/src/collapse.js +5 -5
  110. package/js/src/dom/data.js +2 -2
  111. package/js/src/dom/event-handler.js +4 -5
  112. package/js/src/dom/manipulator.js +2 -2
  113. package/js/src/dom/selector-engine.js +2 -2
  114. package/js/src/dropdown.js +9 -9
  115. package/js/src/modal.js +9 -10
  116. package/js/src/navigation.js +4 -4
  117. package/js/src/offcanvas.js +11 -11
  118. package/js/src/popover.js +3 -3
  119. package/js/src/scrollspy.js +6 -6
  120. package/js/src/sidebar.js +5 -5
  121. package/js/src/tab.js +7 -7
  122. package/js/src/toast.js +4 -4
  123. package/js/src/tooltip.js +9 -9
  124. package/js/src/util/backdrop.js +3 -3
  125. package/js/src/util/component-functions.js +3 -3
  126. package/js/src/util/config.js +3 -3
  127. package/js/src/util/focustrap.js +2 -2
  128. package/js/src/util/index.js +2 -2
  129. package/js/src/util/sanitizer.js +6 -4
  130. package/js/src/util/scrollbar.js +3 -3
  131. package/js/src/util/swipe.js +3 -3
  132. package/js/src/util/template-factory.js +4 -4
  133. package/package.json +54 -44
  134. package/scss/_accordion.scss +9 -1
  135. package/scss/_alert.scss +6 -10
  136. package/scss/_badge.scss +2 -1
  137. package/scss/_button-group.scss +4 -4
  138. package/scss/_buttons.scss +23 -1
  139. package/scss/_card.scss +8 -3
  140. package/scss/_carousel.scss +24 -8
  141. package/scss/_close.scss +32 -9
  142. package/scss/_dropdown.scss +3 -3
  143. package/scss/_functions.scss +6 -22
  144. package/scss/_grid.scss +8 -0
  145. package/scss/_helpers.scss +2 -0
  146. package/scss/_list-group.scss +11 -2
  147. package/scss/_maps.scss +125 -0
  148. package/scss/_mixins.scss +1 -4
  149. package/scss/_nav.scss +7 -0
  150. package/scss/_navbar.scss +17 -4
  151. package/scss/_offcanvas.scss +4 -2
  152. package/scss/_pagination.scss +1 -1
  153. package/scss/_progress.scss +10 -1
  154. package/scss/_reboot.scss +2 -3
  155. package/scss/_root.scss +144 -16
  156. package/scss/_tables.scss +18 -15
  157. package/scss/_tooltip.scss +5 -6
  158. package/scss/_type.scss +3 -1
  159. package/scss/_utilities.scss +182 -23
  160. package/scss/_variables-dark.scss +169 -0
  161. package/scss/_variables.scss +357 -340
  162. package/scss/coreui-grid.rtl.scss +2 -7
  163. package/scss/coreui-grid.scss +3 -10
  164. package/scss/coreui-reboot.rtl.scss +2 -7
  165. package/scss/coreui-reboot.scss +4 -7
  166. package/scss/coreui-utilities.rtl.scss +2 -7
  167. package/scss/coreui-utilities.scss +3 -7
  168. package/scss/coreui.rtl.scss +2 -7
  169. package/scss/coreui.scss +3 -7
  170. package/scss/forms/_floating-labels.scss +23 -4
  171. package/scss/forms/_form-check.scss +22 -24
  172. package/scss/forms/_form-control.scss +33 -13
  173. package/scss/forms/_form-range.scss +8 -8
  174. package/scss/forms/_form-select.scss +19 -10
  175. package/scss/forms/_form-text.scss +1 -1
  176. package/scss/forms/_input-group.scss +1 -1
  177. package/scss/forms/_labels.scss +2 -2
  178. package/scss/helpers/_color-bg.scss +12 -2
  179. package/scss/helpers/_colored-links.scss +20 -2
  180. package/scss/helpers/_focus-ring.scss +5 -0
  181. package/scss/helpers/_icon-link.scss +25 -0
  182. package/scss/mixins/_alert.scss +4 -1
  183. package/scss/mixins/_banner.scss +7 -0
  184. package/scss/mixins/_breakpoints.scss +0 -13
  185. package/scss/mixins/_caret.scss +31 -26
  186. package/scss/mixins/_color-mode.scss +21 -0
  187. package/scss/mixins/_forms.scss +8 -7
  188. package/scss/mixins/_grid.scss +1 -1
  189. package/scss/mixins/_list-group.scss +3 -0
  190. package/scss/mixins/_utilities.scss +35 -15
  191. package/scss/mixins/_visually-hidden.scss +5 -1
  192. package/scss/sidebar/_sidebar.scss +10 -2
  193. package/scss/vendor/_rfs.scss +24 -30
  194. package/scss/mixins/_css-vars.scss +0 -87
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * CoreUI [object Object] v4.2.5 (https://coreui.io)
3
- * Copyright 2022 The CoreUI Team (https://github.com/orgs/coreui/people)
4
- * Licensed under MIT (https://coreui.io)
2
+ * CoreUI v4.3.0-alpha.0 (https://coreui.io)
3
+ * Copyright 2023 The CoreUI Team (https://github.com/orgs/coreui/people)
4
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
5
5
  */
6
6
  (function (global, factory) {
7
7
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -11,8 +11,59 @@
11
11
 
12
12
  /**
13
13
  * --------------------------------------------------------------------------
14
- * CoreUI (v4.2.5): tab.js
15
- * Licensed under MIT (https://coreui.io/license)
14
+ * CoreUI dom/data.js
15
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
16
+ *
17
+ * This is a modified version of the Bootstrap's dom/data.js
18
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
19
+ * --------------------------------------------------------------------------
20
+ */
21
+
22
+ /**
23
+ * Constants
24
+ */
25
+
26
+ const elementMap = new Map();
27
+ const Data = {
28
+ set(element, key, instance) {
29
+ if (!elementMap.has(element)) {
30
+ elementMap.set(element, new Map());
31
+ }
32
+ const instanceMap = elementMap.get(element);
33
+
34
+ // make it clear we only want one instance per element
35
+ // can be removed later when multiple key/instances are fine to be used
36
+ if (!instanceMap.has(key) && instanceMap.size !== 0) {
37
+ // eslint-disable-next-line no-console
38
+ console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`);
39
+ return;
40
+ }
41
+ instanceMap.set(key, instance);
42
+ },
43
+ get(element, key) {
44
+ if (elementMap.has(element)) {
45
+ return elementMap.get(element).get(key) || null;
46
+ }
47
+ return null;
48
+ },
49
+ remove(element, key) {
50
+ if (!elementMap.has(element)) {
51
+ return;
52
+ }
53
+ const instanceMap = elementMap.get(element);
54
+ instanceMap.delete(key);
55
+
56
+ // free up element references if there are no instances left for an element
57
+ if (instanceMap.size === 0) {
58
+ elementMap.delete(element);
59
+ }
60
+ }
61
+ };
62
+
63
+ /**
64
+ * --------------------------------------------------------------------------
65
+ * CoreUI util/index.js
66
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
16
67
  *
17
68
  * This is a modified version of the Bootstrap's util/index.js
18
69
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
@@ -261,14 +312,15 @@
261
312
 
262
313
  /**
263
314
  * --------------------------------------------------------------------------
264
- * CoreUI (v4.2.5): dom/selector-engine.js
265
- * Licensed under MIT (https://coreui.io/license)
315
+ * CoreUI dom/event-handler.js
316
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
266
317
  *
267
318
  * This is a modified version of the Bootstrap's dom/event-handler.js
268
319
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
269
320
  * --------------------------------------------------------------------------
270
321
  */
271
322
 
323
+
272
324
  /**
273
325
  * Constants
274
326
  */
@@ -334,7 +386,7 @@
334
386
  }
335
387
  function normalizeParameters(originalTypeEvent, handler, delegationFunction) {
336
388
  const isDelegated = typeof handler === 'string';
337
- // todo: tooltip passes `false` instead of selector, so we need to check
389
+ // TODO: tooltip passes `false` instead of selector, so we need to check
338
390
  const callable = isDelegated ? delegationFunction : handler || delegationFunction;
339
391
  let typeEvent = getTypeEvent(originalTypeEvent);
340
392
  if (!nativeEvents.has(typeEvent)) {
@@ -451,11 +503,10 @@
451
503
  nativeDispatch = !jQueryEvent.isImmediatePropagationStopped();
452
504
  defaultPrevented = jQueryEvent.isDefaultPrevented();
453
505
  }
454
- let evt = new Event(event, {
506
+ const evt = hydrateObj(new Event(event, {
455
507
  bubbles,
456
508
  cancelable: true
457
- });
458
- evt = hydrateObj(evt, args);
509
+ }), args);
459
510
  if (defaultPrevented) {
460
511
  evt.preventDefault();
461
512
  }
@@ -486,59 +537,8 @@
486
537
 
487
538
  /**
488
539
  * --------------------------------------------------------------------------
489
- * CoreUI (v4.2.5): dom/selector-engine.js
490
- * Licensed under MIT (https://coreui.io/license)
491
- *
492
- * This is a modified version of the Bootstrap's dom/data.js
493
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
494
- * --------------------------------------------------------------------------
495
- */
496
-
497
- /**
498
- * Constants
499
- */
500
-
501
- const elementMap = new Map();
502
- const Data = {
503
- set(element, key, instance) {
504
- if (!elementMap.has(element)) {
505
- elementMap.set(element, new Map());
506
- }
507
- const instanceMap = elementMap.get(element);
508
-
509
- // make it clear we only want one instance per element
510
- // can be removed later when multiple key/instances are fine to be used
511
- if (!instanceMap.has(key) && instanceMap.size !== 0) {
512
- // eslint-disable-next-line no-console
513
- console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`);
514
- return;
515
- }
516
- instanceMap.set(key, instance);
517
- },
518
- get(element, key) {
519
- if (elementMap.has(element)) {
520
- return elementMap.get(element).get(key) || null;
521
- }
522
- return null;
523
- },
524
- remove(element, key) {
525
- if (!elementMap.has(element)) {
526
- return;
527
- }
528
- const instanceMap = elementMap.get(element);
529
- instanceMap.delete(key);
530
-
531
- // free up element references if there are no instances left for an element
532
- if (instanceMap.size === 0) {
533
- elementMap.delete(element);
534
- }
535
- }
536
- };
537
-
538
- /**
539
- * --------------------------------------------------------------------------
540
- * CoreUI (v4.2.5): dom/selector-engine.js
541
- * Licensed under MIT (https://coreui.io/license)
540
+ * CoreUI dom/manipulator.js
541
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
542
542
  *
543
543
  * This is a modified version of the Bootstrap's dom/manipulator.js
544
544
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
@@ -597,14 +597,15 @@
597
597
 
598
598
  /**
599
599
  * --------------------------------------------------------------------------
600
- * CoreUI (v4.2.5): tab.js
601
- * Licensed under MIT (https://coreui.io/license)
600
+ * CoreUI util/config.js
601
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
602
602
  *
603
603
  * This is a modified version of the Bootstrap's util/config.js
604
604
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
605
605
  * --------------------------------------------------------------------------
606
606
  */
607
607
 
608
+
608
609
  /**
609
610
  * Class definition
610
611
  */
@@ -652,19 +653,20 @@
652
653
 
653
654
  /**
654
655
  * --------------------------------------------------------------------------
655
- * CoreUI (v4.2.5): alert.js
656
- * Licensed under MIT (https://coreui.io/license)
656
+ * CoreUI base-component.js
657
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
657
658
  *
658
659
  * This component is a modified version of the Bootstrap's base-component.js
659
660
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
660
661
  * --------------------------------------------------------------------------
661
662
  */
662
663
 
664
+
663
665
  /**
664
666
  * Constants
665
667
  */
666
668
 
667
- const VERSION = '4.2.5';
669
+ const VERSION = '4.3.0-alpha.0';
668
670
 
669
671
  /**
670
672
  * Class definition
@@ -723,13 +725,14 @@
723
725
 
724
726
  /**
725
727
  * --------------------------------------------------------------------------
726
- * CoreUI (v4.2.5): dom/selector-engine.js
727
- * Licensed under MIT (https://coreui.io/license)
728
+ * CoreUI dom/selector-engine.js
729
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
728
730
  *
729
731
  * This is a modified version of the Bootstrap's dom/selector-engine.js
730
732
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
731
733
  * --------------------------------------------------------------------------
732
734
  */
735
+
733
736
  const getSelector = element => {
734
737
  let selector = element.getAttribute('data-coreui-target');
735
738
  if (!selector || selector === '#') {
@@ -814,13 +817,14 @@
814
817
 
815
818
  /**
816
819
  * --------------------------------------------------------------------------
817
- * CoreUI (v4.2.5): tab.js
818
- * Licensed under MIT (https://coreui.io/license)
820
+ * CoreUI util/component-functions.js
821
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
819
822
  *
820
823
  * This is a modified version of the Bootstrap's util/component-functions.js
821
824
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
822
825
  * --------------------------------------------------------------------------
823
826
  */
827
+
824
828
  const enableDismissTrigger = (component, method = 'hide') => {
825
829
  const clickEvent = `click.dismiss${component.EVENT_KEY}`;
826
830
  const name = component.NAME;
@@ -841,14 +845,15 @@
841
845
 
842
846
  /**
843
847
  * --------------------------------------------------------------------------
844
- * CoreUI (v4.2.5): alert.js
845
- * Licensed under MIT (https://coreui.io/license)
848
+ * CoreUI alert.js
849
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
846
850
  *
847
851
  * This component is a modified version of the Bootstrap's alert.js
848
852
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
849
853
  * --------------------------------------------------------------------------
850
854
  */
851
855
 
856
+
852
857
  /**
853
858
  * Constants
854
859
  */
@@ -918,14 +923,15 @@
918
923
 
919
924
  /**
920
925
  * --------------------------------------------------------------------------
921
- * CoreUI (v4.2.5): alert.js
922
- * Licensed under MIT (https://coreui.io/license)
926
+ * CoreUI button.js
927
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
923
928
  *
924
929
  * This component is a modified version of the Bootstrap's button.js
925
930
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
926
931
  * --------------------------------------------------------------------------
927
932
  */
928
933
 
934
+
929
935
  /**
930
936
  * Constants
931
937
  */
@@ -984,14 +990,15 @@
984
990
 
985
991
  /**
986
992
  * --------------------------------------------------------------------------
987
- * CoreUI (v4.2.5): tab.js
988
- * Licensed under MIT (https://coreui.io/license)
993
+ * CoreUI util/swipe.js
994
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
989
995
  *
990
996
  * This is a modified version of the Bootstrap's util/swipe.js
991
997
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
992
998
  * --------------------------------------------------------------------------
993
999
  */
994
1000
 
1001
+
995
1002
  /**
996
1003
  * Constants
997
1004
  */
@@ -1106,14 +1113,15 @@
1106
1113
 
1107
1114
  /**
1108
1115
  * --------------------------------------------------------------------------
1109
- * CoreUI (v4.2.5): carousel.js
1110
- * Licensed under MIT (https://coreui.io/license)
1116
+ * CoreUI carousel.js
1117
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
1111
1118
  *
1112
1119
  * This component is a modified version of the Bootstrap's carousel.js
1113
1120
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1114
1121
  * --------------------------------------------------------------------------
1115
1122
  */
1116
1123
 
1124
+
1117
1125
  /**
1118
1126
  * Constants
1119
1127
  */
@@ -1369,7 +1377,7 @@
1369
1377
  }
1370
1378
  if (!activeElement || !nextElement) {
1371
1379
  // Some weirdness is happening, so we bail
1372
- // todo: change tests that use empty divs to avoid this check
1380
+ // TODO: change tests that use empty divs to avoid this check
1373
1381
  return;
1374
1382
  }
1375
1383
  const isCycling = Boolean(this._interval);
@@ -1481,14 +1489,15 @@
1481
1489
 
1482
1490
  /**
1483
1491
  * --------------------------------------------------------------------------
1484
- * CoreUI (v4.2.5): collapse.js
1485
- * Licensed under MIT (https://coreui.io/license)
1492
+ * CoreUI collapse.js
1493
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
1486
1494
  *
1487
1495
  * This component is a modified version of the Bootstrap's collapse.js
1488
1496
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1489
1497
  * --------------------------------------------------------------------------
1490
1498
  */
1491
1499
 
1500
+
1492
1501
  /**
1493
1502
  * Constants
1494
1503
  */
@@ -1878,7 +1887,7 @@
1878
1887
  function getUAString() {
1879
1888
  var uaData = navigator.userAgentData;
1880
1889
 
1881
- if (uaData != null && uaData.brands) {
1890
+ if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
1882
1891
  return uaData.brands.map(function (item) {
1883
1892
  return item.brand + "/" + item.version;
1884
1893
  }).join(' ');
@@ -2197,10 +2206,9 @@
2197
2206
  // Zooming can change the DPR, but it seems to report a value that will
2198
2207
  // cleanly divide the values into the appropriate subpixels.
2199
2208
 
2200
- function roundOffsetsByDPR(_ref) {
2209
+ function roundOffsetsByDPR(_ref, win) {
2201
2210
  var x = _ref.x,
2202
2211
  y = _ref.y;
2203
- var win = window;
2204
2212
  var dpr = win.devicePixelRatio || 1;
2205
2213
  return {
2206
2214
  x: round(x * dpr) / dpr || 0,
@@ -2283,7 +2291,7 @@
2283
2291
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
2284
2292
  x: x,
2285
2293
  y: y
2286
- }) : {
2294
+ }, getWindow(popper)) : {
2287
2295
  x: x,
2288
2296
  y: y
2289
2297
  };
@@ -3521,56 +3529,57 @@
3521
3529
 
3522
3530
  const Popper = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3523
3531
  __proto__: null,
3524
- popperGenerator,
3525
- detectOverflow,
3526
- createPopperBase: createPopper$2,
3527
- createPopper,
3528
- createPopperLite: createPopper$1,
3529
- top,
3530
- bottom,
3531
- right,
3532
- left,
3533
- auto,
3534
- basePlacements,
3535
- start,
3536
- end,
3537
- clippingParents,
3538
- viewport,
3539
- popper,
3540
- reference,
3541
- variationPlacements,
3542
- placements,
3543
- beforeRead,
3544
- read,
3545
- afterRead,
3546
- beforeMain,
3547
- main,
3548
3532
  afterMain,
3549
- beforeWrite,
3550
- write,
3533
+ afterRead,
3551
3534
  afterWrite,
3552
- modifierPhases,
3553
3535
  applyStyles: applyStyles$1,
3554
3536
  arrow: arrow$1,
3537
+ auto,
3538
+ basePlacements,
3539
+ beforeMain,
3540
+ beforeRead,
3541
+ beforeWrite,
3542
+ bottom,
3543
+ clippingParents,
3555
3544
  computeStyles: computeStyles$1,
3545
+ createPopper,
3546
+ createPopperBase: createPopper$2,
3547
+ createPopperLite: createPopper$1,
3548
+ detectOverflow,
3549
+ end,
3556
3550
  eventListeners,
3557
3551
  flip: flip$1,
3558
3552
  hide: hide$1,
3553
+ left,
3554
+ main,
3555
+ modifierPhases,
3559
3556
  offset: offset$1,
3557
+ placements,
3558
+ popper,
3559
+ popperGenerator,
3560
3560
  popperOffsets: popperOffsets$1,
3561
- preventOverflow: preventOverflow$1
3561
+ preventOverflow: preventOverflow$1,
3562
+ read,
3563
+ reference,
3564
+ right,
3565
+ start,
3566
+ top,
3567
+ variationPlacements,
3568
+ viewport,
3569
+ write
3562
3570
  }, Symbol.toStringTag, { value: 'Module' }));
3563
3571
 
3564
3572
  /**
3565
3573
  * --------------------------------------------------------------------------
3566
- * CoreUI (v4.2.5): dropdown.js
3567
- * Licensed under MIT (https://coreui.io/license)
3574
+ * CoreUI dropdown.js
3575
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
3568
3576
  *
3569
3577
  * This component is a modified version of the Bootstrap's dropdown.js
3570
3578
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3571
3579
  * --------------------------------------------------------------------------
3572
3580
  */
3573
3581
 
3582
+
3574
3583
  /**
3575
3584
  * Constants
3576
3585
  */
@@ -3638,7 +3647,7 @@
3638
3647
  super(element, config);
3639
3648
  this._popper = null;
3640
3649
  this._parent = this._element.parentNode; // dropdown wrapper
3641
- // todo: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.2/forms/input-group/
3650
+ // TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/
3642
3651
  this._menu = SelectorEngine.next(this._element, SELECTOR_MENU)[0] || SelectorEngine.prev(this._element, SELECTOR_MENU)[0] || SelectorEngine.findOne(SELECTOR_MENU, this._parent);
3643
3652
  this._inNavbar = this._detectNavbar();
3644
3653
  }
@@ -3812,7 +3821,7 @@
3812
3821
 
3813
3822
  // Disable Popper if we have a static display or Dropdown is in Navbar
3814
3823
  if (this._inNavbar || this._config.display === 'static') {
3815
- Manipulator.setDataAttribute(this._menu, 'popper', 'static'); // todo:v6 remove
3824
+ Manipulator.setDataAttribute(this._menu, 'popper', 'static'); // TODO: v6 remove
3816
3825
  defaultBsPopperConfig.modifiers = [{
3817
3826
  name: 'applyStyles',
3818
3827
  enabled: false
@@ -3894,7 +3903,7 @@
3894
3903
  }
3895
3904
  event.preventDefault();
3896
3905
 
3897
- // todo: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.2/forms/input-group/
3906
+ // TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/
3898
3907
  const getToggleButton = this.matches(SELECTOR_DATA_TOGGLE$4) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$4)[0] || SelectorEngine.next(this, SELECTOR_DATA_TOGGLE$4)[0] || SelectorEngine.findOne(SELECTOR_DATA_TOGGLE$4, event.delegateTarget.parentNode);
3899
3908
  const instance = Dropdown.getOrCreateInstance(getToggleButton);
3900
3909
  if (isUpOrDownEvent) {
@@ -3933,114 +3942,15 @@
3933
3942
 
3934
3943
  /**
3935
3944
  * --------------------------------------------------------------------------
3936
- * CoreUI (v4.2.5): tab.js
3937
- * Licensed under MIT (https://coreui.io/license)
3938
- *
3939
- * This is a modified version of the Bootstrap's util/scrollBar.js
3940
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3941
- * --------------------------------------------------------------------------
3942
- */
3943
-
3944
- /**
3945
- * Constants
3946
- */
3947
-
3948
- const SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
3949
- const SELECTOR_STICKY_CONTENT = '.sticky-top';
3950
- const PROPERTY_PADDING = 'padding-right';
3951
- const PROPERTY_MARGIN = 'margin-right';
3952
-
3953
- /**
3954
- * Class definition
3955
- */
3956
-
3957
- class ScrollBarHelper {
3958
- constructor() {
3959
- this._element = document.body;
3960
- }
3961
-
3962
- // Public
3963
- getWidth() {
3964
- // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
3965
- const documentWidth = document.documentElement.clientWidth;
3966
- return Math.abs(window.innerWidth - documentWidth);
3967
- }
3968
- hide() {
3969
- const width = this.getWidth();
3970
- this._disableOverFlow();
3971
- // give padding to element to balance the hidden scrollbar width
3972
- this._setElementAttributes(this._element, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
3973
- // trick: We adjust positive paddingRight and negative marginRight to sticky-top elements to keep showing fullwidth
3974
- this._setElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
3975
- this._setElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN, calculatedValue => calculatedValue - width);
3976
- }
3977
- reset() {
3978
- this._resetElementAttributes(this._element, 'overflow');
3979
- this._resetElementAttributes(this._element, PROPERTY_PADDING);
3980
- this._resetElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING);
3981
- this._resetElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN);
3982
- }
3983
- isOverflowing() {
3984
- return this.getWidth() > 0;
3985
- }
3986
-
3987
- // Private
3988
- _disableOverFlow() {
3989
- this._saveInitialAttribute(this._element, 'overflow');
3990
- this._element.style.overflow = 'hidden';
3991
- }
3992
- _setElementAttributes(selector, styleProperty, callback) {
3993
- const scrollbarWidth = this.getWidth();
3994
- const manipulationCallBack = element => {
3995
- if (element !== this._element && window.innerWidth > element.clientWidth + scrollbarWidth) {
3996
- return;
3997
- }
3998
- this._saveInitialAttribute(element, styleProperty);
3999
- const calculatedValue = window.getComputedStyle(element).getPropertyValue(styleProperty);
4000
- element.style.setProperty(styleProperty, `${callback(Number.parseFloat(calculatedValue))}px`);
4001
- };
4002
- this._applyManipulationCallback(selector, manipulationCallBack);
4003
- }
4004
- _saveInitialAttribute(element, styleProperty) {
4005
- const actualValue = element.style.getPropertyValue(styleProperty);
4006
- if (actualValue) {
4007
- Manipulator.setDataAttribute(element, styleProperty, actualValue);
4008
- }
4009
- }
4010
- _resetElementAttributes(selector, styleProperty) {
4011
- const manipulationCallBack = element => {
4012
- const value = Manipulator.getDataAttribute(element, styleProperty);
4013
- // We only want to remove the property if the value is `null`; the value can also be zero
4014
- if (value === null) {
4015
- element.style.removeProperty(styleProperty);
4016
- return;
4017
- }
4018
- Manipulator.removeDataAttribute(element, styleProperty);
4019
- element.style.setProperty(styleProperty, value);
4020
- };
4021
- this._applyManipulationCallback(selector, manipulationCallBack);
4022
- }
4023
- _applyManipulationCallback(selector, callBack) {
4024
- if (isElement$1(selector)) {
4025
- callBack(selector);
4026
- return;
4027
- }
4028
- for (const sel of SelectorEngine.find(selector, this._element)) {
4029
- callBack(sel);
4030
- }
4031
- }
4032
- }
4033
-
4034
- /**
4035
- * --------------------------------------------------------------------------
4036
- * CoreUI (v4.2.5): tab.js
4037
- * Licensed under MIT (https://coreui.io/license)
3945
+ * CoreUI util/backdrop.js
3946
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
4038
3947
  *
4039
3948
  * This is a modified version of the Bootstrap's util/backdrop.js
4040
3949
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4041
3950
  * --------------------------------------------------------------------------
4042
3951
  */
4043
3952
 
3953
+
4044
3954
  /**
4045
3955
  * Constants
4046
3956
  */
@@ -4160,14 +4070,15 @@
4160
4070
 
4161
4071
  /**
4162
4072
  * --------------------------------------------------------------------------
4163
- * CoreUI (v4.2.5): tab.js
4164
- * Licensed under MIT (https://coreui.io/license)
4073
+ * CoreUI util/focustrap.js
4074
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
4165
4075
  *
4166
4076
  * This is a modified version of the Bootstrap's util/focustrap.js
4167
4077
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4168
4078
  * --------------------------------------------------------------------------
4169
4079
  */
4170
4080
 
4081
+
4171
4082
  /**
4172
4083
  * Constants
4173
4084
  */
@@ -4261,14 +4172,116 @@
4261
4172
 
4262
4173
  /**
4263
4174
  * --------------------------------------------------------------------------
4264
- * CoreUI (v4.2.5): modal.js
4265
- * Licensed under MIT (https://coreui.io/license)
4175
+ * CoreUI util/scrollBar.js
4176
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
4177
+ *
4178
+ * This is a modified version of the Bootstrap's util/scrollBar.js
4179
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4180
+ * --------------------------------------------------------------------------
4181
+ */
4182
+
4183
+
4184
+ /**
4185
+ * Constants
4186
+ */
4187
+
4188
+ const SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
4189
+ const SELECTOR_STICKY_CONTENT = '.sticky-top';
4190
+ const PROPERTY_PADDING = 'padding-right';
4191
+ const PROPERTY_MARGIN = 'margin-right';
4192
+
4193
+ /**
4194
+ * Class definition
4195
+ */
4196
+
4197
+ class ScrollBarHelper {
4198
+ constructor() {
4199
+ this._element = document.body;
4200
+ }
4201
+
4202
+ // Public
4203
+ getWidth() {
4204
+ // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
4205
+ const documentWidth = document.documentElement.clientWidth;
4206
+ return Math.abs(window.innerWidth - documentWidth);
4207
+ }
4208
+ hide() {
4209
+ const width = this.getWidth();
4210
+ this._disableOverFlow();
4211
+ // give padding to element to balance the hidden scrollbar width
4212
+ this._setElementAttributes(this._element, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
4213
+ // trick: We adjust positive paddingRight and negative marginRight to sticky-top elements to keep showing fullwidth
4214
+ this._setElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
4215
+ this._setElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN, calculatedValue => calculatedValue - width);
4216
+ }
4217
+ reset() {
4218
+ this._resetElementAttributes(this._element, 'overflow');
4219
+ this._resetElementAttributes(this._element, PROPERTY_PADDING);
4220
+ this._resetElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING);
4221
+ this._resetElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN);
4222
+ }
4223
+ isOverflowing() {
4224
+ return this.getWidth() > 0;
4225
+ }
4226
+
4227
+ // Private
4228
+ _disableOverFlow() {
4229
+ this._saveInitialAttribute(this._element, 'overflow');
4230
+ this._element.style.overflow = 'hidden';
4231
+ }
4232
+ _setElementAttributes(selector, styleProperty, callback) {
4233
+ const scrollbarWidth = this.getWidth();
4234
+ const manipulationCallBack = element => {
4235
+ if (element !== this._element && window.innerWidth > element.clientWidth + scrollbarWidth) {
4236
+ return;
4237
+ }
4238
+ this._saveInitialAttribute(element, styleProperty);
4239
+ const calculatedValue = window.getComputedStyle(element).getPropertyValue(styleProperty);
4240
+ element.style.setProperty(styleProperty, `${callback(Number.parseFloat(calculatedValue))}px`);
4241
+ };
4242
+ this._applyManipulationCallback(selector, manipulationCallBack);
4243
+ }
4244
+ _saveInitialAttribute(element, styleProperty) {
4245
+ const actualValue = element.style.getPropertyValue(styleProperty);
4246
+ if (actualValue) {
4247
+ Manipulator.setDataAttribute(element, styleProperty, actualValue);
4248
+ }
4249
+ }
4250
+ _resetElementAttributes(selector, styleProperty) {
4251
+ const manipulationCallBack = element => {
4252
+ const value = Manipulator.getDataAttribute(element, styleProperty);
4253
+ // We only want to remove the property if the value is `null`; the value can also be zero
4254
+ if (value === null) {
4255
+ element.style.removeProperty(styleProperty);
4256
+ return;
4257
+ }
4258
+ Manipulator.removeDataAttribute(element, styleProperty);
4259
+ element.style.setProperty(styleProperty, value);
4260
+ };
4261
+ this._applyManipulationCallback(selector, manipulationCallBack);
4262
+ }
4263
+ _applyManipulationCallback(selector, callBack) {
4264
+ if (isElement$1(selector)) {
4265
+ callBack(selector);
4266
+ return;
4267
+ }
4268
+ for (const sel of SelectorEngine.find(selector, this._element)) {
4269
+ callBack(sel);
4270
+ }
4271
+ }
4272
+ }
4273
+
4274
+ /**
4275
+ * --------------------------------------------------------------------------
4276
+ * CoreUI modal.js
4277
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
4266
4278
  *
4267
4279
  * This component is a modified version of the Bootstrap's modal.js
4268
4280
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4269
4281
  * --------------------------------------------------------------------------
4270
4282
  */
4271
4283
 
4284
+
4272
4285
  /**
4273
4286
  * Constants
4274
4287
  */
@@ -4370,9 +4383,8 @@
4370
4383
  this._queueCallback(() => this._hideModal(), this._element, this._isAnimated());
4371
4384
  }
4372
4385
  dispose() {
4373
- for (const htmlElement of [window, this._dialog]) {
4374
- EventHandler.off(htmlElement, EVENT_KEY$6);
4375
- }
4386
+ EventHandler.off(window, EVENT_KEY$6);
4387
+ EventHandler.off(this._dialog, EVENT_KEY$6);
4376
4388
  this._backdrop.dispose();
4377
4389
  this._focustrap.deactivate();
4378
4390
  super.dispose();
@@ -4427,7 +4439,6 @@
4427
4439
  return;
4428
4440
  }
4429
4441
  if (this._config.keyboard) {
4430
- event.preventDefault();
4431
4442
  this.hide();
4432
4443
  return;
4433
4444
  }
@@ -4570,11 +4581,12 @@
4570
4581
 
4571
4582
  /**
4572
4583
  * --------------------------------------------------------------------------
4573
- * CoreUI (v4.2.5): navigation.js
4574
- * Licensed under MIT (https://coreui.io/license)
4584
+ * CoreUI navigation.js
4585
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
4575
4586
  * --------------------------------------------------------------------------
4576
4587
  */
4577
4588
 
4589
+
4578
4590
  /**
4579
4591
  * ------------------------------------------------------------------------
4580
4592
  * Constants
@@ -4824,14 +4836,15 @@
4824
4836
 
4825
4837
  /**
4826
4838
  * --------------------------------------------------------------------------
4827
- * CoreUI (v4.2.5): dropdown.js
4828
- * Licensed under MIT (https://coreui.io/license)
4839
+ * CoreUI offcanvas.js
4840
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
4829
4841
  *
4830
4842
  * This component is a modified version of the Bootstrap's offcanvas.js
4831
4843
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
4832
4844
  * --------------------------------------------------------------------------
4833
4845
  */
4834
4846
 
4847
+
4835
4848
  /**
4836
4849
  * Constants
4837
4850
  */
@@ -4985,11 +4998,11 @@
4985
4998
  if (event.key !== ESCAPE_KEY) {
4986
4999
  return;
4987
5000
  }
4988
- if (!this._config.keyboard) {
4989
- EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);
5001
+ if (this._config.keyboard) {
5002
+ this.hide();
4990
5003
  return;
4991
5004
  }
4992
- this.hide();
5005
+ EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);
4993
5006
  });
4994
5007
  }
4995
5008
 
@@ -5057,8 +5070,8 @@
5057
5070
 
5058
5071
  /**
5059
5072
  * --------------------------------------------------------------------------
5060
- * CoreUI (v4.2.5): tab.js
5061
- * Licensed under MIT (https://coreui.io/license)
5073
+ * CoreUI util/sanitizer.js
5074
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
5062
5075
  *
5063
5076
  * This is a modified version of the Bootstrap's util/sanitizer.js
5064
5077
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
@@ -5066,7 +5079,6 @@
5066
5079
  */
5067
5080
 
5068
5081
  const uriAttributes = new Set(['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']);
5069
- const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
5070
5082
 
5071
5083
  /**
5072
5084
  * A pattern that recognizes a commonly useful subset of URLs that are safe.
@@ -5093,6 +5105,9 @@
5093
5105
  // Check if a regular expression validates the attribute.
5094
5106
  return allowedAttributeList.filter(attributeRegex => attributeRegex instanceof RegExp).some(regex => regex.test(attributeName));
5095
5107
  };
5108
+
5109
+ // js-docs-start allow-list
5110
+ const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
5096
5111
  const DefaultAllowlist = {
5097
5112
  // Global attributes allowed on any supplied element below.
5098
5113
  '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],
@@ -5126,6 +5141,8 @@
5126
5141
  u: [],
5127
5142
  ul: []
5128
5143
  };
5144
+ // js-docs-end allow-list
5145
+
5129
5146
  function sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {
5130
5147
  if (!unsafeHtml.length) {
5131
5148
  return unsafeHtml;
@@ -5155,14 +5172,15 @@
5155
5172
 
5156
5173
  /**
5157
5174
  * --------------------------------------------------------------------------
5158
- * CoreUI (v4.2.5): tab.js
5159
- * Licensed under MIT (https://coreui.io/license)
5175
+ * CoreUI util/template-factory.js
5176
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
5160
5177
  *
5161
5178
  * This is a modified version of the Bootstrap's util/template-factory.js
5162
5179
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5163
5180
  * --------------------------------------------------------------------------
5164
5181
  */
5165
5182
 
5183
+
5166
5184
  /**
5167
5185
  * Constants
5168
5186
  */
@@ -5293,14 +5311,15 @@
5293
5311
 
5294
5312
  /**
5295
5313
  * --------------------------------------------------------------------------
5296
- * CoreUI (v4.2.5): tooltip.js
5297
- * Licensed under MIT (https://coreui.io/license)
5314
+ * CoreUI tooltip.js
5315
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
5298
5316
  *
5299
5317
  * This component is a modified version of the Bootstrap's tooltip.js
5300
5318
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5301
5319
  * --------------------------------------------------------------------------
5302
5320
  */
5303
5321
 
5322
+
5304
5323
  /**
5305
5324
  * Constants
5306
5325
  */
@@ -5343,7 +5362,7 @@
5343
5362
  delay: 0,
5344
5363
  fallbackPlacements: ['top', 'right', 'bottom', 'left'],
5345
5364
  html: false,
5346
- offset: [0, 0],
5365
+ offset: [0, 6],
5347
5366
  placement: 'top',
5348
5367
  popperConfig: null,
5349
5368
  sanitize: true,
@@ -5456,7 +5475,7 @@
5456
5475
  return;
5457
5476
  }
5458
5477
 
5459
- // todo v6 remove this OR make it optional
5478
+ // TODO: v6 remove this or make it optional
5460
5479
  this._disposePopper();
5461
5480
  const tip = this._getTipElement();
5462
5481
  this._element.setAttribute('aria-describedby', tip.getAttribute('id'));
@@ -5542,12 +5561,12 @@
5542
5561
  _createTipElement(content) {
5543
5562
  const tip = this._getTemplateFactory(content).toHtml();
5544
5563
 
5545
- // todo: remove this check on v6
5564
+ // TODO: remove this check in v6
5546
5565
  if (!tip) {
5547
5566
  return null;
5548
5567
  }
5549
5568
  tip.classList.remove(CLASS_NAME_FADE$2, CLASS_NAME_SHOW$3);
5550
- // todo: on v6 the following can be achieved with CSS only
5569
+ // TODO: v6 the following can be achieved with CSS only
5551
5570
  tip.classList.add(`bs-${this.constructor.NAME}-auto`);
5552
5571
  const tipId = getUID(this.constructor.NAME).toString();
5553
5572
  tip.setAttribute('id', tipId);
@@ -5807,14 +5826,15 @@
5807
5826
 
5808
5827
  /**
5809
5828
  * --------------------------------------------------------------------------
5810
- * CoreUI (v4.2.5): popover.js
5811
- * Licensed under MIT (https://coreui.io/license)
5829
+ * CoreUI popover.js
5830
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
5812
5831
  *
5813
5832
  * This component is a modified version of the Bootstrap's popover.js
5814
5833
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5815
5834
  * --------------------------------------------------------------------------
5816
5835
  */
5817
5836
 
5837
+
5818
5838
  /**
5819
5839
  * Constants
5820
5840
  */
@@ -5890,14 +5910,15 @@
5890
5910
 
5891
5911
  /**
5892
5912
  * --------------------------------------------------------------------------
5893
- * CoreUI (v4.2.5): scrollspy.js
5894
- * Licensed under MIT (https://coreui.io/license)
5913
+ * CoreUI scrollspy.js
5914
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
5895
5915
  *
5896
5916
  * This component is a modified version of the Bootstrap's scrollspy.js
5897
5917
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5898
5918
  * --------------------------------------------------------------------------
5899
5919
  */
5900
5920
 
5921
+
5901
5922
  /**
5902
5923
  * Constants
5903
5924
  */
@@ -6152,11 +6173,12 @@
6152
6173
 
6153
6174
  /**
6154
6175
  * --------------------------------------------------------------------------
6155
- * CoreUI (v4.2.5): sidebar.js
6156
- * Licensed under MIT (https://coreui.io/license)
6176
+ * CoreUI sidebar.js
6177
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
6157
6178
  * --------------------------------------------------------------------------
6158
6179
  */
6159
6180
 
6181
+
6160
6182
  /**
6161
6183
  * ------------------------------------------------------------------------
6162
6184
  * Constants
@@ -6432,14 +6454,15 @@
6432
6454
 
6433
6455
  /**
6434
6456
  * --------------------------------------------------------------------------
6435
- * CoreUI (v4.2.5): tab.js
6436
- * Licensed under MIT (https://coreui.io/license)
6457
+ * CoreUI tab.js
6458
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
6437
6459
  *
6438
6460
  * This component is a modified version of the Bootstrap's tab.js
6439
6461
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
6440
6462
  * --------------------------------------------------------------------------
6441
6463
  */
6442
6464
 
6465
+
6443
6466
  /**
6444
6467
  * Constants
6445
6468
  */
@@ -6468,7 +6491,7 @@
6468
6491
  const SELECTOR_TAB_PANEL = '.list-group, .nav, [role="tablist"]';
6469
6492
  const SELECTOR_OUTER = '.nav-item, .list-group-item';
6470
6493
  const SELECTOR_INNER = `.nav-link${NOT_SELECTOR_DROPDOWN_TOGGLE}, .list-group-item${NOT_SELECTOR_DROPDOWN_TOGGLE}, [role="tab"]${NOT_SELECTOR_DROPDOWN_TOGGLE}`;
6471
- const SELECTOR_DATA_TOGGLE = '[data-coreui-toggle="tab"], [data-coreui-toggle="pill"], [data-coreui-toggle="list"]'; // todo:v6: could be only `tab`
6494
+ const SELECTOR_DATA_TOGGLE = '[data-coreui-toggle="tab"], [data-coreui-toggle="pill"], [data-coreui-toggle="list"]'; // TODO: could only be `tab` in v6
6472
6495
  const SELECTOR_INNER_ELEM = `${SELECTOR_INNER}, ${SELECTOR_DATA_TOGGLE}`;
6473
6496
  const SELECTOR_DATA_TOGGLE_ACTIVE = `.${CLASS_NAME_ACTIVE}[data-coreui-toggle="tab"], .${CLASS_NAME_ACTIVE}[data-coreui-toggle="pill"], .${CLASS_NAME_ACTIVE}[data-coreui-toggle="list"]`;
6474
6497
 
@@ -6482,7 +6505,7 @@
6482
6505
  this._parent = this._element.closest(SELECTOR_TAB_PANEL);
6483
6506
  if (!this._parent) {
6484
6507
  return;
6485
- // todo: should Throw exception on v6
6508
+ // TODO: should throw exception in v6
6486
6509
  // throw new TypeError(`${element.outerHTML} has not a valid parent ${SELECTOR_INNER_ELEM}`)
6487
6510
  }
6488
6511
 
@@ -6614,7 +6637,7 @@
6614
6637
  }
6615
6638
  this._setAttributeIfNotExists(target, 'role', 'tabpanel');
6616
6639
  if (child.id) {
6617
- this._setAttributeIfNotExists(target, 'aria-labelledby', `#${child.id}`);
6640
+ this._setAttributeIfNotExists(target, 'aria-labelledby', `${child.id}`);
6618
6641
  }
6619
6642
  }
6620
6643
  _toggleDropDown(element, open) {
@@ -6696,14 +6719,15 @@
6696
6719
 
6697
6720
  /**
6698
6721
  * --------------------------------------------------------------------------
6699
- * CoreUI (v4.2.5): toast.js
6700
- * Licensed under MIT (https://coreui.io/license)
6722
+ * CoreUI toast.js
6723
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
6701
6724
  *
6702
6725
  * This component is a modified version of the Bootstrap's toast.js
6703
6726
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
6704
6727
  * --------------------------------------------------------------------------
6705
6728
  */
6706
6729
 
6730
+
6707
6731
  /**
6708
6732
  * Constants
6709
6733
  */
@@ -6882,10 +6906,11 @@
6882
6906
 
6883
6907
  /**
6884
6908
  * --------------------------------------------------------------------------
6885
- * CoreUI (v4.2.5): index.esm.js
6886
- * Licensed under MIT (https://coreui.io/license)
6909
+ * CoreUI index.esm.js
6910
+ * Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
6887
6911
  * --------------------------------------------------------------------------
6888
6912
  */
6913
+
6889
6914
  const index_umd = {
6890
6915
  Alert,
6891
6916
  Button,