@tabler/core 1.0.0-beta11 → 1.0.0-beta12

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 (112) hide show
  1. package/README.md +33 -10
  2. package/dist/css/demo.css +251 -379
  3. package/dist/css/demo.min.css +3 -3
  4. package/dist/css/demo.rtl.css +251 -379
  5. package/dist/css/demo.rtl.min.css +3 -3
  6. package/dist/css/tabler-flags.css +266 -529
  7. package/dist/css/tabler-flags.min.css +3 -3
  8. package/dist/css/tabler-flags.rtl.css +266 -529
  9. package/dist/css/tabler-flags.rtl.min.css +3 -3
  10. package/dist/css/tabler-payments.css +127 -252
  11. package/dist/css/tabler-payments.min.css +2 -2
  12. package/dist/css/tabler-payments.rtl.css +127 -252
  13. package/dist/css/tabler-payments.rtl.min.css +2 -2
  14. package/dist/css/tabler-vendors.css +480 -679
  15. package/dist/css/tabler-vendors.min.css +3 -3
  16. package/dist/css/tabler-vendors.rtl.css +480 -679
  17. package/dist/css/tabler-vendors.rtl.min.css +3 -3
  18. package/dist/css/tabler.css +10041 -14881
  19. package/dist/css/tabler.min.css +4 -4
  20. package/dist/css/tabler.rtl.css +10041 -14880
  21. package/dist/css/tabler.rtl.min.css +4 -4
  22. package/dist/js/demo-theme.js +32 -0
  23. package/dist/js/demo-theme.min.js +9 -0
  24. package/dist/js/demo.js +2 -12
  25. package/dist/js/demo.min.js +3 -3
  26. package/dist/js/tabler.esm.js +90 -61
  27. package/dist/js/tabler.esm.min.js +9 -3
  28. package/dist/js/tabler.js +112 -61
  29. package/dist/js/tabler.min.js +9 -3
  30. package/dist/libs/apexcharts/dist/apexcharts.amd.js +1 -1
  31. package/dist/libs/apexcharts/dist/apexcharts.common.js +3 -3
  32. package/dist/libs/apexcharts/dist/apexcharts.esm.js +3 -3
  33. package/dist/libs/apexcharts/dist/apexcharts.js +27 -8
  34. package/dist/libs/apexcharts/dist/apexcharts.min.js +3 -3
  35. package/dist/libs/bootstrap/dist/js/bootstrap.bundle.js +131 -107
  36. package/dist/libs/bootstrap/dist/js/bootstrap.bundle.js.map +1 -1
  37. package/dist/libs/bootstrap/dist/js/bootstrap.bundle.min.js +2 -2
  38. package/dist/libs/bootstrap/dist/js/bootstrap.bundle.min.js.map +1 -1
  39. package/dist/libs/bootstrap/dist/js/bootstrap.esm.js +70 -57
  40. package/dist/libs/bootstrap/dist/js/bootstrap.esm.js.map +1 -1
  41. package/dist/libs/bootstrap/dist/js/bootstrap.esm.min.js +2 -2
  42. package/dist/libs/bootstrap/dist/js/bootstrap.esm.min.js.map +1 -1
  43. package/dist/libs/bootstrap/dist/js/bootstrap.js +71 -58
  44. package/dist/libs/bootstrap/dist/js/bootstrap.js.map +1 -1
  45. package/dist/libs/bootstrap/dist/js/bootstrap.min.js +2 -2
  46. package/dist/libs/bootstrap/dist/js/bootstrap.min.js.map +1 -1
  47. package/dist/libs/jsvectormap/dist/js/jsvectormap.js +1061 -1066
  48. package/dist/libs/jsvectormap/dist/js/jsvectormap.min.js +1 -1
  49. package/dist/libs/nouislider/dist/nouislider.d.ts +1 -1
  50. package/package.json +68 -22
  51. package/src/js/demo-theme.js +25 -0
  52. package/src/js/demo.js +0 -17
  53. package/src/js/src/tabler.js +17 -0
  54. package/src/js/tabler.js +2 -0
  55. package/src/scss/_core.scss +1 -0
  56. package/src/scss/_mixins-override.scss +26 -26
  57. package/src/scss/_utilities.scss +2 -2
  58. package/src/scss/_variables.scss +207 -89
  59. package/src/scss/demo/_examples.scss +2 -2
  60. package/src/scss/demo/_highlight.scss +3 -3
  61. package/src/scss/demo.scss +4 -4
  62. package/src/scss/fonts/_webfonts.scss +0 -50
  63. package/src/scss/layout/_core.scss +2 -23
  64. package/src/scss/layout/_dark.scss +8 -6
  65. package/src/scss/layout/_footer.scss +2 -2
  66. package/src/scss/layout/_navbar.scss +7 -5
  67. package/src/scss/layout/_page.scss +8 -6
  68. package/src/scss/layout/_root.scss +37 -0
  69. package/src/scss/mixins/_functions.scss +2 -2
  70. package/src/scss/mixins/_mixins.scss +3 -2
  71. package/src/scss/ui/_accordion.scss +1 -1
  72. package/src/scss/ui/_alerts.scss +1 -1
  73. package/src/scss/ui/_avatars.scss +5 -5
  74. package/src/scss/ui/_badges.scss +2 -2
  75. package/src/scss/ui/_buttons.scss +25 -17
  76. package/src/scss/ui/_calendars.scss +8 -8
  77. package/src/scss/ui/_cards.scss +28 -31
  78. package/src/scss/ui/_carousel.scss +1 -1
  79. package/src/scss/ui/_chips.scss +0 -0
  80. package/src/scss/ui/_empty.scss +3 -3
  81. package/src/scss/ui/_flags.scss +2 -2
  82. package/src/scss/ui/_forms.scss +7 -7
  83. package/src/scss/ui/_grid.scss +8 -9
  84. package/src/scss/ui/_icons.scss +64 -4
  85. package/src/scss/ui/_legend.scss +8 -4
  86. package/src/scss/ui/_lists.scss +16 -13
  87. package/src/scss/ui/_markdown.scss +2 -3
  88. package/src/scss/ui/_modals.scss +1 -1
  89. package/src/scss/ui/_nav.scss +7 -7
  90. package/src/scss/ui/_offcanvas.scss +2 -2
  91. package/src/scss/ui/_pagination.scss +10 -6
  92. package/src/scss/ui/_placeholder.scss +1 -1
  93. package/src/scss/ui/_progress.scss +45 -6
  94. package/src/scss/ui/_ribbons.scss +5 -5
  95. package/src/scss/ui/_status.scss +2 -2
  96. package/src/scss/ui/_steps.scss +2 -2
  97. package/src/scss/ui/_tables.scss +26 -5
  98. package/src/scss/ui/_toasts.scss +0 -1
  99. package/src/scss/ui/_type.scss +45 -30
  100. package/src/scss/ui/forms/_form-check.scss +26 -1
  101. package/src/scss/ui/forms/_form-colorinput.scss +2 -2
  102. package/src/scss/ui/forms/_form-icon.scss +1 -1
  103. package/src/scss/ui/forms/_form-imagecheck.scss +4 -4
  104. package/src/scss/ui/forms/_form-selectgroup.scss +7 -7
  105. package/src/scss/ui/typo/_hr.scss +2 -3
  106. package/src/scss/utils/_colors.scss +14 -5
  107. package/src/scss/vendor/_dropzone.scss +1 -1
  108. package/src/scss/vendor/_jsvectormap.scss +7 -7
  109. package/src/scss/vendor/_litepicker.scss +11 -11
  110. package/src/scss/vendor/_plyr.scss +1 -1
  111. package/src/scss/vendor/_tinymce.scss +3 -3
  112. package/src/scss/vendor/_tom-select.scss +2 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v5.2.0 (https://getbootstrap.com/)
2
+ * Bootstrap v5.2.1 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
5
  */
@@ -7,7 +7,7 @@ import * as Popper from '@popperjs/core';
7
7
 
8
8
  /**
9
9
  * --------------------------------------------------------------------------
10
- * Bootstrap (v5.2.0): util/index.js
10
+ * Bootstrap (v5.2.1): util/index.js
11
11
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
12
12
  * --------------------------------------------------------------------------
13
13
  */
@@ -322,7 +322,7 @@ const getNextActiveElement = (list, activeElement, shouldGetNext, isCycleAllowed
322
322
 
323
323
  /**
324
324
  * --------------------------------------------------------------------------
325
- * Bootstrap (v5.2.0): dom/event-handler.js
325
+ * Bootstrap (v5.2.1): dom/event-handler.js
326
326
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
327
327
  * --------------------------------------------------------------------------
328
328
  */
@@ -591,7 +591,7 @@ function hydrateObj(obj, meta) {
591
591
 
592
592
  /**
593
593
  * --------------------------------------------------------------------------
594
- * Bootstrap (v5.2.0): dom/data.js
594
+ * Bootstrap (v5.2.1): dom/data.js
595
595
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
596
596
  * --------------------------------------------------------------------------
597
597
  */
@@ -643,7 +643,7 @@ const Data = {
643
643
 
644
644
  /**
645
645
  * --------------------------------------------------------------------------
646
- * Bootstrap (v5.2.0): dom/manipulator.js
646
+ * Bootstrap (v5.2.1): dom/manipulator.js
647
647
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
648
648
  * --------------------------------------------------------------------------
649
649
  */
@@ -713,7 +713,7 @@ const Manipulator = {
713
713
 
714
714
  /**
715
715
  * --------------------------------------------------------------------------
716
- * Bootstrap (v5.2.0): util/config.js
716
+ * Bootstrap (v5.2.1): util/config.js
717
717
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
718
718
  * --------------------------------------------------------------------------
719
719
  */
@@ -774,7 +774,7 @@ class Config {
774
774
 
775
775
  /**
776
776
  * --------------------------------------------------------------------------
777
- * Bootstrap (v5.2.0): base-component.js
777
+ * Bootstrap (v5.2.1): base-component.js
778
778
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
779
779
  * --------------------------------------------------------------------------
780
780
  */
@@ -782,7 +782,7 @@ class Config {
782
782
  * Constants
783
783
  */
784
784
 
785
- const VERSION = '5.2.0';
785
+ const VERSION = '5.2.1';
786
786
  /**
787
787
  * Class definition
788
788
  */
@@ -853,7 +853,7 @@ class BaseComponent extends Config {
853
853
 
854
854
  /**
855
855
  * --------------------------------------------------------------------------
856
- * Bootstrap (v5.2.0): util/component-functions.js
856
+ * Bootstrap (v5.2.1): util/component-functions.js
857
857
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
858
858
  * --------------------------------------------------------------------------
859
859
  */
@@ -879,7 +879,7 @@ const enableDismissTrigger = (component, method = 'hide') => {
879
879
 
880
880
  /**
881
881
  * --------------------------------------------------------------------------
882
- * Bootstrap (v5.2.0): alert.js
882
+ * Bootstrap (v5.2.1): alert.js
883
883
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
884
884
  * --------------------------------------------------------------------------
885
885
  */
@@ -959,7 +959,7 @@ defineJQueryPlugin(Alert);
959
959
 
960
960
  /**
961
961
  * --------------------------------------------------------------------------
962
- * Bootstrap (v5.2.0): button.js
962
+ * Bootstrap (v5.2.1): button.js
963
963
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
964
964
  * --------------------------------------------------------------------------
965
965
  */
@@ -1021,7 +1021,7 @@ defineJQueryPlugin(Button);
1021
1021
 
1022
1022
  /**
1023
1023
  * --------------------------------------------------------------------------
1024
- * Bootstrap (v5.2.0): dom/selector-engine.js
1024
+ * Bootstrap (v5.2.1): dom/selector-engine.js
1025
1025
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1026
1026
  * --------------------------------------------------------------------------
1027
1027
  */
@@ -1092,7 +1092,7 @@ const SelectorEngine = {
1092
1092
 
1093
1093
  /**
1094
1094
  * --------------------------------------------------------------------------
1095
- * Bootstrap (v5.2.0): util/swipe.js
1095
+ * Bootstrap (v5.2.1): util/swipe.js
1096
1096
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1097
1097
  * --------------------------------------------------------------------------
1098
1098
  */
@@ -1228,7 +1228,7 @@ class Swipe extends Config {
1228
1228
 
1229
1229
  /**
1230
1230
  * --------------------------------------------------------------------------
1231
- * Bootstrap (v5.2.0): carousel.js
1231
+ * Bootstrap (v5.2.1): carousel.js
1232
1232
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1233
1233
  * --------------------------------------------------------------------------
1234
1234
  */
@@ -1676,7 +1676,7 @@ defineJQueryPlugin(Carousel);
1676
1676
 
1677
1677
  /**
1678
1678
  * --------------------------------------------------------------------------
1679
- * Bootstrap (v5.2.0): collapse.js
1679
+ * Bootstrap (v5.2.1): collapse.js
1680
1680
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1681
1681
  * --------------------------------------------------------------------------
1682
1682
  */
@@ -1966,7 +1966,7 @@ defineJQueryPlugin(Collapse);
1966
1966
 
1967
1967
  /**
1968
1968
  * --------------------------------------------------------------------------
1969
- * Bootstrap (v5.2.0): dropdown.js
1969
+ * Bootstrap (v5.2.1): dropdown.js
1970
1970
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1971
1971
  * --------------------------------------------------------------------------
1972
1972
  */
@@ -2036,8 +2036,9 @@ class Dropdown extends BaseComponent {
2036
2036
  super(element, config);
2037
2037
  this._popper = null;
2038
2038
  this._parent = this._element.parentNode; // dropdown wrapper
2039
+ // todo: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.2/forms/input-group/
2039
2040
 
2040
- this._menu = SelectorEngine.findOne(SELECTOR_MENU, this._parent);
2041
+ this._menu = SelectorEngine.next(this._element, SELECTOR_MENU)[0] || SelectorEngine.prev(this._element, SELECTOR_MENU)[0];
2041
2042
  this._inNavbar = this._detectNavbar();
2042
2043
  } // Getters
2043
2044
 
@@ -2353,8 +2354,9 @@ class Dropdown extends BaseComponent {
2353
2354
  return;
2354
2355
  }
2355
2356
 
2356
- event.preventDefault();
2357
- const getToggleButton = SelectorEngine.findOne(SELECTOR_DATA_TOGGLE$3, event.delegateTarget.parentNode);
2357
+ event.preventDefault(); // todo: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.2/forms/input-group/
2358
+
2359
+ const getToggleButton = this.matches(SELECTOR_DATA_TOGGLE$3) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$3)[0] || SelectorEngine.next(this, SELECTOR_DATA_TOGGLE$3)[0];
2358
2360
  const instance = Dropdown.getOrCreateInstance(getToggleButton);
2359
2361
 
2360
2362
  if (isUpOrDownEvent) {
@@ -2396,7 +2398,7 @@ defineJQueryPlugin(Dropdown);
2396
2398
 
2397
2399
  /**
2398
2400
  * --------------------------------------------------------------------------
2399
- * Bootstrap (v5.2.0): util/scrollBar.js
2401
+ * Bootstrap (v5.2.1): util/scrollBar.js
2400
2402
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2401
2403
  * --------------------------------------------------------------------------
2402
2404
  */
@@ -2515,7 +2517,7 @@ class ScrollBarHelper {
2515
2517
 
2516
2518
  /**
2517
2519
  * --------------------------------------------------------------------------
2518
- * Bootstrap (v5.2.0): util/backdrop.js
2520
+ * Bootstrap (v5.2.1): util/backdrop.js
2519
2521
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2520
2522
  * --------------------------------------------------------------------------
2521
2523
  */
@@ -2661,7 +2663,7 @@ class Backdrop extends Config {
2661
2663
 
2662
2664
  /**
2663
2665
  * --------------------------------------------------------------------------
2664
- * Bootstrap (v5.2.0): util/focustrap.js
2666
+ * Bootstrap (v5.2.1): util/focustrap.js
2665
2667
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2666
2668
  * --------------------------------------------------------------------------
2667
2669
  */
@@ -2770,7 +2772,7 @@ class FocusTrap extends Config {
2770
2772
 
2771
2773
  /**
2772
2774
  * --------------------------------------------------------------------------
2773
- * Bootstrap (v5.2.0): modal.js
2775
+ * Bootstrap (v5.2.1): modal.js
2774
2776
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2775
2777
  * --------------------------------------------------------------------------
2776
2778
  */
@@ -2789,6 +2791,7 @@ const EVENT_HIDDEN$4 = `hidden${EVENT_KEY$4}`;
2789
2791
  const EVENT_SHOW$4 = `show${EVENT_KEY$4}`;
2790
2792
  const EVENT_SHOWN$4 = `shown${EVENT_KEY$4}`;
2791
2793
  const EVENT_RESIZE$1 = `resize${EVENT_KEY$4}`;
2794
+ const EVENT_CLICK_DISMISS = `click.dismiss${EVENT_KEY$4}`;
2792
2795
  const EVENT_MOUSEDOWN_DISMISS = `mousedown.dismiss${EVENT_KEY$4}`;
2793
2796
  const EVENT_KEYDOWN_DISMISS$1 = `keydown.dismiss${EVENT_KEY$4}`;
2794
2797
  const EVENT_CLICK_DATA_API$2 = `click${EVENT_KEY$4}${DATA_API_KEY$2}`;
@@ -2981,20 +2984,22 @@ class Modal extends BaseComponent {
2981
2984
  }
2982
2985
  });
2983
2986
  EventHandler.on(this._element, EVENT_MOUSEDOWN_DISMISS, event => {
2984
- if (event.target !== event.currentTarget) {
2985
- // click is inside modal-dialog
2986
- return;
2987
- }
2987
+ EventHandler.one(this._element, EVENT_CLICK_DISMISS, event2 => {
2988
+ // a bad trick to segregate clicks that may start inside dialog but end outside, and avoid listen to scrollbar clicks
2989
+ if (this._dialog.contains(event.target) || this._dialog.contains(event2.target)) {
2990
+ return;
2991
+ }
2988
2992
 
2989
- if (this._config.backdrop === 'static') {
2990
- this._triggerBackdropTransition();
2993
+ if (this._config.backdrop === 'static') {
2994
+ this._triggerBackdropTransition();
2991
2995
 
2992
- return;
2993
- }
2996
+ return;
2997
+ }
2994
2998
 
2995
- if (this._config.backdrop) {
2996
- this.hide();
2997
- }
2999
+ if (this._config.backdrop) {
3000
+ this.hide();
3001
+ }
3002
+ });
2998
3003
  });
2999
3004
  }
3000
3005
 
@@ -3143,7 +3148,7 @@ defineJQueryPlugin(Modal);
3143
3148
 
3144
3149
  /**
3145
3150
  * --------------------------------------------------------------------------
3146
- * Bootstrap (v5.2.0): offcanvas.js
3151
+ * Bootstrap (v5.2.1): offcanvas.js
3147
3152
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3148
3153
  * --------------------------------------------------------------------------
3149
3154
  */
@@ -3417,7 +3422,7 @@ defineJQueryPlugin(Offcanvas);
3417
3422
 
3418
3423
  /**
3419
3424
  * --------------------------------------------------------------------------
3420
- * Bootstrap (v5.2.0): util/sanitizer.js
3425
+ * Bootstrap (v5.2.1): util/sanitizer.js
3421
3426
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3422
3427
  * --------------------------------------------------------------------------
3423
3428
  */
@@ -3522,7 +3527,7 @@ function sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {
3522
3527
 
3523
3528
  /**
3524
3529
  * --------------------------------------------------------------------------
3525
- * Bootstrap (v5.2.0): util/template-factory.js
3530
+ * Bootstrap (v5.2.1): util/template-factory.js
3526
3531
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3527
3532
  * --------------------------------------------------------------------------
3528
3533
  */
@@ -3680,7 +3685,7 @@ class TemplateFactory extends Config {
3680
3685
 
3681
3686
  /**
3682
3687
  * --------------------------------------------------------------------------
3683
- * Bootstrap (v5.2.0): tooltip.js
3688
+ * Bootstrap (v5.2.1): tooltip.js
3684
3689
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3685
3690
  * --------------------------------------------------------------------------
3686
3691
  */
@@ -3769,7 +3774,7 @@ class Tooltip extends BaseComponent {
3769
3774
 
3770
3775
  this._isEnabled = true;
3771
3776
  this._timeout = 0;
3772
- this._isHovered = false;
3777
+ this._isHovered = null;
3773
3778
  this._activeTrigger = {};
3774
3779
  this._popper = null;
3775
3780
  this._templateFactory = null;
@@ -3842,6 +3847,10 @@ class Tooltip extends BaseComponent {
3842
3847
  this.tip.remove();
3843
3848
  }
3844
3849
 
3850
+ if (this._config.originalTitle) {
3851
+ this._element.setAttribute('title', this._config.originalTitle);
3852
+ }
3853
+
3845
3854
  this._disposePopper();
3846
3855
 
3847
3856
  super.dispose();
@@ -3902,13 +3911,13 @@ class Tooltip extends BaseComponent {
3902
3911
  }
3903
3912
 
3904
3913
  const complete = () => {
3905
- const previousHoverState = this._isHovered;
3906
- this._isHovered = false;
3907
3914
  EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOWN$2));
3908
3915
 
3909
- if (previousHoverState) {
3916
+ if (this._isHovered === false) {
3910
3917
  this._leave();
3911
3918
  }
3919
+
3920
+ this._isHovered = false;
3912
3921
  };
3913
3922
 
3914
3923
  this._queueCallback(complete, this.tip, this._isAnimated());
@@ -3939,7 +3948,7 @@ class Tooltip extends BaseComponent {
3939
3948
  this._activeTrigger[TRIGGER_CLICK] = false;
3940
3949
  this._activeTrigger[TRIGGER_FOCUS] = false;
3941
3950
  this._activeTrigger[TRIGGER_HOVER] = false;
3942
- this._isHovered = false;
3951
+ this._isHovered = null; // it is a trick to support manual triggering
3943
3952
 
3944
3953
  const complete = () => {
3945
3954
  if (this._isWithActiveTrigger()) {
@@ -4302,7 +4311,7 @@ defineJQueryPlugin(Tooltip);
4302
4311
 
4303
4312
  /**
4304
4313
  * --------------------------------------------------------------------------
4305
- * Bootstrap (v5.2.0): popover.js
4314
+ * Bootstrap (v5.2.1): popover.js
4306
4315
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4307
4316
  * --------------------------------------------------------------------------
4308
4317
  */
@@ -4385,7 +4394,7 @@ defineJQueryPlugin(Popover);
4385
4394
 
4386
4395
  /**
4387
4396
  * --------------------------------------------------------------------------
4388
- * Bootstrap (v5.2.0): scrollspy.js
4397
+ * Bootstrap (v5.2.1): scrollspy.js
4389
4398
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4390
4399
  * --------------------------------------------------------------------------
4391
4400
  */
@@ -4416,14 +4425,16 @@ const Default$1 = {
4416
4425
  // TODO: v6 @deprecated, keep it for backwards compatibility reasons
4417
4426
  rootMargin: '0px 0px -25%',
4418
4427
  smoothScroll: false,
4419
- target: null
4428
+ target: null,
4429
+ threshold: [0.1, 0.5, 1]
4420
4430
  };
4421
4431
  const DefaultType$1 = {
4422
4432
  offset: '(number|null)',
4423
4433
  // TODO v6 @deprecated, keep it for backwards compatibility reasons
4424
4434
  rootMargin: 'string',
4425
4435
  smoothScroll: 'boolean',
4426
- target: 'element'
4436
+ target: 'element',
4437
+ threshold: 'array'
4427
4438
  };
4428
4439
  /**
4429
4440
  * Class definition
@@ -4484,7 +4495,14 @@ class ScrollSpy extends BaseComponent {
4484
4495
 
4485
4496
  _configAfterMerge(config) {
4486
4497
  // TODO: on v6 target should be given explicitly & remove the {target: 'ss-target'} case
4487
- config.target = getElement(config.target) || document.body;
4498
+ config.target = getElement(config.target) || document.body; // TODO: v6 Only for backwards compatibility reasons. Use rootMargin only
4499
+
4500
+ config.rootMargin = config.offset ? `${config.offset}px 0px -30%` : config.rootMargin;
4501
+
4502
+ if (typeof config.threshold === 'string') {
4503
+ config.threshold = config.threshold.split(',').map(value => Number.parseFloat(value));
4504
+ }
4505
+
4488
4506
  return config;
4489
4507
  }
4490
4508
 
@@ -4520,8 +4538,8 @@ class ScrollSpy extends BaseComponent {
4520
4538
  _getNewObserver() {
4521
4539
  const options = {
4522
4540
  root: this._rootElement,
4523
- threshold: [0.1, 0.5, 1],
4524
- rootMargin: this._getRootMargin()
4541
+ threshold: this._config.threshold,
4542
+ rootMargin: this._config.rootMargin
4525
4543
  };
4526
4544
  return new IntersectionObserver(entries => this._observerCallback(entries), options);
4527
4545
  } // The logic of selection
@@ -4566,11 +4584,6 @@ class ScrollSpy extends BaseComponent {
4566
4584
  activate(entry);
4567
4585
  }
4568
4586
  }
4569
- } // TODO: v6 Only for backwards compatibility reasons. Use rootMargin only
4570
-
4571
-
4572
- _getRootMargin() {
4573
- return this._config.offset ? `${this._config.offset}px 0px -30%` : this._config.rootMargin;
4574
4587
  }
4575
4588
 
4576
4589
  _initializeTargetsAndObservables() {
@@ -4672,7 +4685,7 @@ defineJQueryPlugin(ScrollSpy);
4672
4685
 
4673
4686
  /**
4674
4687
  * --------------------------------------------------------------------------
4675
- * Bootstrap (v5.2.0): tab.js
4688
+ * Bootstrap (v5.2.1): tab.js
4676
4689
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4677
4690
  * --------------------------------------------------------------------------
4678
4691
  */
@@ -4985,7 +4998,7 @@ defineJQueryPlugin(Tab);
4985
4998
 
4986
4999
  /**
4987
5000
  * --------------------------------------------------------------------------
4988
- * Bootstrap (v5.2.0): toast.js
5001
+ * Bootstrap (v5.2.1): toast.js
4989
5002
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4990
5003
  * --------------------------------------------------------------------------
4991
5004
  */