@coreui/coreui 4.2.6 → 5.0.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.
- package/LICENSE +1 -2
- package/README.md +1 -1
- package/dist/css/coreui-grid.css +133 -22
- package/dist/css/coreui-grid.css.map +1 -1
- package/dist/css/coreui-grid.min.css +3 -5
- package/dist/css/coreui-grid.min.css.map +1 -1
- package/dist/css/coreui-grid.rtl.css +216 -113
- package/dist/css/coreui-grid.rtl.css.map +1 -1
- package/dist/css/coreui-grid.rtl.min.css +3 -11
- package/dist/css/coreui-grid.rtl.min.css.map +1 -1
- package/dist/css/coreui-reboot.css +151 -36
- package/dist/css/coreui-reboot.css.map +1 -1
- package/dist/css/coreui-reboot.min.css +3 -5
- package/dist/css/coreui-reboot.min.css.map +1 -1
- package/dist/css/coreui-reboot.rtl.css +159 -47
- package/dist/css/coreui-reboot.rtl.css.map +1 -1
- package/dist/css/coreui-reboot.rtl.min.css +3 -11
- package/dist/css/coreui-reboot.rtl.min.css.map +1 -1
- package/dist/css/coreui-utilities.css +1116 -104
- package/dist/css/coreui-utilities.css.map +1 -1
- package/dist/css/coreui-utilities.min.css +3 -5
- package/dist/css/coreui-utilities.min.css.map +1 -1
- package/dist/css/coreui-utilities.rtl.css +1261 -246
- package/dist/css/coreui-utilities.rtl.css.map +1 -1
- package/dist/css/coreui-utilities.rtl.min.css +3 -11
- package/dist/css/coreui-utilities.rtl.min.css.map +1 -1
- package/dist/css/coreui.css +2412 -1220
- package/dist/css/coreui.css.map +1 -1
- package/dist/css/coreui.min.css +3 -5
- package/dist/css/coreui.min.css.map +1 -1
- package/dist/css/coreui.rtl.css +2821 -1574
- package/dist/css/coreui.rtl.css.map +1 -1
- package/dist/css/coreui.rtl.min.css +3 -11
- package/dist/css/coreui.rtl.min.css.map +1 -1
- package/dist/js/coreui.bundle.js +80 -80
- package/dist/js/coreui.bundle.js.map +1 -1
- package/dist/js/coreui.bundle.min.js +4 -4
- package/dist/js/coreui.bundle.min.js.map +1 -1
- package/dist/js/coreui.esm.js +78 -78
- package/dist/js/coreui.esm.js.map +1 -1
- package/dist/js/coreui.esm.min.js +4 -4
- package/dist/js/coreui.esm.min.js.map +1 -1
- package/dist/js/coreui.js +80 -80
- package/dist/js/coreui.js.map +1 -1
- package/dist/js/coreui.min.js +4 -4
- package/dist/js/coreui.min.js.map +1 -1
- package/js/dist/alert.js +5 -5
- package/js/dist/alert.js.map +1 -1
- package/js/dist/base-component.js +6 -6
- package/js/dist/base-component.js.map +1 -1
- package/js/dist/button.js +5 -5
- package/js/dist/button.js.map +1 -1
- package/js/dist/carousel.js +5 -5
- package/js/dist/carousel.js.map +1 -1
- package/js/dist/collapse.js +5 -5
- package/js/dist/collapse.js.map +1 -1
- package/js/dist/dom/data.js +6 -6
- package/js/dist/dom/data.js.map +1 -1
- package/js/dist/dom/event-handler.js +6 -6
- package/js/dist/dom/event-handler.js.map +1 -1
- package/js/dist/dom/manipulator.js +7 -7
- package/js/dist/dom/manipulator.js.map +1 -1
- package/js/dist/dom/selector-engine.js +6 -6
- package/js/dist/dom/selector-engine.js.map +1 -1
- package/js/dist/dropdown.js +7 -7
- package/js/dist/dropdown.js.map +1 -1
- package/js/dist/modal.js +5 -5
- package/js/dist/modal.js.map +1 -1
- package/js/dist/navigation.js +5 -5
- package/js/dist/navigation.js.map +1 -1
- package/js/dist/offcanvas.js +6 -6
- package/js/dist/offcanvas.js.map +1 -1
- package/js/dist/popover.js +5 -5
- package/js/dist/popover.js.map +1 -1
- package/js/dist/scrollspy.js +12 -12
- package/js/dist/scrollspy.js.map +1 -1
- package/js/dist/sidebar.js +5 -5
- package/js/dist/sidebar.js.map +1 -1
- package/js/dist/tab.js +5 -5
- package/js/dist/tab.js.map +1 -1
- package/js/dist/toast.js +5 -5
- package/js/dist/toast.js.map +1 -1
- package/js/dist/tooltip.js +6 -6
- package/js/dist/tooltip.js.map +1 -1
- package/js/dist/util/backdrop.js +6 -6
- package/js/dist/util/backdrop.js.map +1 -1
- package/js/dist/util/component-functions.js +6 -6
- package/js/dist/util/component-functions.js.map +1 -1
- package/js/dist/util/config.js +6 -6
- package/js/dist/util/config.js.map +1 -1
- package/js/dist/util/focustrap.js +6 -6
- package/js/dist/util/focustrap.js.map +1 -1
- package/js/dist/util/index.js +6 -6
- package/js/dist/util/index.js.map +1 -1
- package/js/dist/util/sanitizer.js +6 -6
- package/js/dist/util/sanitizer.js.map +1 -1
- package/js/dist/util/scrollbar.js +6 -6
- package/js/dist/util/scrollbar.js.map +1 -1
- package/js/dist/util/swipe.js +6 -6
- package/js/dist/util/swipe.js.map +1 -1
- package/js/dist/util/template-factory.js +6 -6
- package/js/dist/util/template-factory.js.map +1 -1
- package/js/src/alert.js +2 -2
- package/js/src/base-component.js +3 -3
- package/js/src/button.js +2 -3
- package/js/src/carousel.js +2 -2
- package/js/src/collapse.js +2 -2
- package/js/src/dom/data.js +3 -3
- package/js/src/dom/event-handler.js +3 -3
- package/js/src/dom/manipulator.js +4 -4
- package/js/src/dom/selector-engine.js +3 -3
- package/js/src/dropdown.js +4 -4
- package/js/src/modal.js +2 -2
- package/js/src/navigation.js +2 -2
- package/js/src/offcanvas.js +3 -3
- package/js/src/popover.js +2 -2
- package/js/src/scrollspy.js +6 -6
- package/js/src/sidebar.js +2 -2
- package/js/src/tab.js +2 -2
- package/js/src/toast.js +2 -2
- package/js/src/tooltip.js +3 -3
- package/js/src/util/backdrop.js +3 -3
- package/js/src/util/component-functions.js +3 -3
- package/js/src/util/config.js +3 -3
- package/js/src/util/focustrap.js +3 -3
- package/js/src/util/index.js +3 -3
- package/js/src/util/sanitizer.js +3 -3
- package/js/src/util/scrollbar.js +3 -3
- package/js/src/util/swipe.js +3 -3
- package/js/src/util/template-factory.js +4 -3
- package/package.json +9 -6
- package/scss/_accordion.scss +9 -1
- package/scss/_alert.scss +9 -13
- package/scss/_avatar.scss +4 -4
- package/scss/_badge.scss +1 -10
- package/scss/_breadcrumb.scss +4 -9
- package/scss/_button-group.scss +4 -4
- package/scss/_buttons.scss +70 -15
- package/scss/_callout.scss +2 -2
- package/scss/_card.scss +7 -3
- package/scss/_carousel.scss +17 -7
- package/scss/_close.scss +30 -9
- package/scss/_dropdown.scss +9 -9
- package/scss/_functions.scss +6 -81
- package/scss/_images.scss +3 -3
- package/scss/_list-group.scss +22 -6
- package/scss/_maps.scss +71 -0
- package/scss/_mixins.scss +4 -9
- package/scss/_modal.scss +2 -2
- package/scss/_nav.scss +41 -4
- package/scss/_navbar.scss +14 -3
- package/scss/_offcanvas.scss +12 -10
- package/scss/_pagination.scss +2 -2
- package/scss/_progress.scss +10 -44
- package/scss/_reboot.scss +22 -21
- package/scss/_root.scss +133 -6
- package/scss/_sidebar.scss +11 -0
- package/scss/_tables.scss +1 -5
- package/scss/_toasts.scss +2 -2
- package/scss/_tooltip.scss +10 -10
- package/scss/_type.scss +3 -1
- package/scss/_utilities.scss +160 -53
- package/scss/_variables-dark.scss +109 -0
- package/scss/_variables.scss +402 -538
- package/scss/coreui-grid.scss +4 -8
- package/scss/coreui-reboot.scss +4 -7
- package/scss/coreui-utilities.scss +3 -7
- package/scss/coreui.scss +5 -10
- package/scss/forms/_floating-labels.scss +16 -1
- package/scss/forms/_form-check.scss +30 -53
- package/scss/forms/_form-control.scss +18 -11
- package/scss/forms/_form-range.scss +8 -8
- package/scss/forms/_form-select.scss +24 -14
- package/scss/forms/_form-text.scss +1 -1
- package/scss/forms/_input-group.scss +5 -5
- package/scss/forms/_labels.scss +2 -2
- package/scss/helpers/_colored-links.scss +2 -2
- package/scss/helpers/_ratio.scss +1 -1
- package/scss/helpers/_vr.scss +0 -1
- package/scss/mixins/_alert.scss +4 -1
- package/scss/mixins/_banner.scss +7 -0
- package/scss/mixins/_border-radius.scss +7 -7
- package/scss/mixins/_breakpoints.scss +0 -13
- package/scss/mixins/_buttons.scss +49 -53
- package/scss/mixins/_caret.scss +31 -26
- package/scss/mixins/_color-mode.scss +21 -0
- package/scss/mixins/_forms.scss +15 -14
- package/scss/mixins/_grid.scss +2 -2
- package/scss/mixins/_list-group.scss +22 -11
- package/scss/mixins/_lists.scss +1 -1
- package/scss/mixins/_utilities.scss +29 -14
- package/scss/sidebar/_sidebar-narrow.scss +6 -6
- package/scss/sidebar/_sidebar-nav.scss +4 -4
- package/scss/sidebar/_sidebar.scss +20 -20
- package/scss/tests/mixins/_color-modes.test.scss +69 -0
- package/scss/tests/mixins/_utilities.test.scss +393 -0
- package/scss/tests/utilities/_api.test.scss +75 -0
- package/scss/_header.scss +0 -195
- package/scss/_subheader.scss +0 -72
- package/scss/coreui-grid.rtl.scss +0 -12
- package/scss/coreui-reboot.rtl.scss +0 -12
- package/scss/coreui-utilities.rtl.scss +0 -12
- package/scss/coreui.rtl.scss +0 -12
- package/scss/mixins/_css-vars.scss +0 -87
- package/scss/mixins/_ltr-rtl.scss +0 -87
package/dist/js/coreui.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CoreUI
|
|
3
|
-
* Copyright
|
|
4
|
-
* Licensed under MIT (https://coreui
|
|
2
|
+
* CoreUI v5.0.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
|
import * as Popper from '@popperjs/core';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* --------------------------------------------------------------------------
|
|
10
|
-
* CoreUI (
|
|
11
|
-
* Licensed under MIT (https://
|
|
10
|
+
* CoreUI (v5.0.0-alpha.0): util/index.js
|
|
11
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
12
12
|
*
|
|
13
|
-
* This is a modified version of the Bootstrap's util/index.js
|
|
13
|
+
* This component is a modified version of the Bootstrap's util/index.js
|
|
14
14
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
15
15
|
* --------------------------------------------------------------------------
|
|
16
16
|
*/
|
|
@@ -257,10 +257,10 @@ const getNextActiveElement = (list, activeElement, shouldGetNext, isCycleAllowed
|
|
|
257
257
|
|
|
258
258
|
/**
|
|
259
259
|
* --------------------------------------------------------------------------
|
|
260
|
-
* CoreUI (
|
|
261
|
-
* Licensed under MIT (https://
|
|
260
|
+
* CoreUI (v5.0.0-alpha.0): dom/event-handler.js
|
|
261
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
262
262
|
*
|
|
263
|
-
* This is a modified version of the Bootstrap's dom/event-handler.js
|
|
263
|
+
* This component is a modified version of the Bootstrap's dom/event-handler.js
|
|
264
264
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
265
265
|
* --------------------------------------------------------------------------
|
|
266
266
|
*/
|
|
@@ -482,10 +482,10 @@ function hydrateObj(obj, meta = {}) {
|
|
|
482
482
|
|
|
483
483
|
/**
|
|
484
484
|
* --------------------------------------------------------------------------
|
|
485
|
-
* CoreUI (
|
|
486
|
-
* Licensed under MIT (https://
|
|
485
|
+
* CoreUI (v5.0.0-alpha.0): dom/data.js
|
|
486
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
487
487
|
*
|
|
488
|
-
* This is a modified version of the Bootstrap's dom/data.js
|
|
488
|
+
* This component is a modified version of the Bootstrap's dom/data.js
|
|
489
489
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
490
490
|
* --------------------------------------------------------------------------
|
|
491
491
|
*/
|
|
@@ -533,10 +533,10 @@ const Data = {
|
|
|
533
533
|
|
|
534
534
|
/**
|
|
535
535
|
* --------------------------------------------------------------------------
|
|
536
|
-
* CoreUI (
|
|
537
|
-
* Licensed under MIT (https://
|
|
536
|
+
* CoreUI (v5.0.0-alpha.0): dom/manipulator.js
|
|
537
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
538
538
|
*
|
|
539
|
-
* This is a modified version of the Bootstrap's dom/manipulator.js
|
|
539
|
+
* This component is a modified version of the Bootstrap's dom/manipulator.js
|
|
540
540
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
541
541
|
* --------------------------------------------------------------------------
|
|
542
542
|
*/
|
|
@@ -578,7 +578,7 @@ const Manipulator = {
|
|
|
578
578
|
return {};
|
|
579
579
|
}
|
|
580
580
|
const attributes = {};
|
|
581
|
-
const coreuiKeys = Object.keys(element.dataset).filter(key => key.startsWith('
|
|
581
|
+
const coreuiKeys = Object.keys(element.dataset).filter(key => key.startsWith('coreu') && !key.startsWith('coreuiConfig'));
|
|
582
582
|
for (const key of coreuiKeys) {
|
|
583
583
|
let pureKey = key.replace(/^coreui/, '');
|
|
584
584
|
pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length);
|
|
@@ -593,10 +593,10 @@ const Manipulator = {
|
|
|
593
593
|
|
|
594
594
|
/**
|
|
595
595
|
* --------------------------------------------------------------------------
|
|
596
|
-
* CoreUI (
|
|
597
|
-
* Licensed under MIT (https://
|
|
596
|
+
* CoreUI (v5.0.0-alpha.0): util/config.js
|
|
597
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
598
598
|
*
|
|
599
|
-
* This is a modified version of the Bootstrap's util/config.js
|
|
599
|
+
* This component is a modified version of the Bootstrap's util/config.js
|
|
600
600
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
601
601
|
* --------------------------------------------------------------------------
|
|
602
602
|
*/
|
|
@@ -648,8 +648,8 @@ class Config {
|
|
|
648
648
|
|
|
649
649
|
/**
|
|
650
650
|
* --------------------------------------------------------------------------
|
|
651
|
-
* CoreUI (
|
|
652
|
-
* Licensed under MIT (https://
|
|
651
|
+
* CoreUI (v5.0.0-alpha.0): base-component.js
|
|
652
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
653
653
|
*
|
|
654
654
|
* This component is a modified version of the Bootstrap's base-component.js
|
|
655
655
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
@@ -660,7 +660,7 @@ class Config {
|
|
|
660
660
|
* Constants
|
|
661
661
|
*/
|
|
662
662
|
|
|
663
|
-
const VERSION = '
|
|
663
|
+
const VERSION = '5.0.0-alpha.0';
|
|
664
664
|
|
|
665
665
|
/**
|
|
666
666
|
* Class definition
|
|
@@ -719,10 +719,10 @@ class BaseComponent extends Config {
|
|
|
719
719
|
|
|
720
720
|
/**
|
|
721
721
|
* --------------------------------------------------------------------------
|
|
722
|
-
* CoreUI (
|
|
723
|
-
* Licensed under MIT (https://
|
|
722
|
+
* CoreUI (v5.0.0-alpha.0): dom/selector-engine.js
|
|
723
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
724
724
|
*
|
|
725
|
-
* This is a modified version of the Bootstrap's dom/selector-engine.js
|
|
725
|
+
* This component is a modified version of the Bootstrap's dom/selector-engine.js
|
|
726
726
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
727
727
|
* --------------------------------------------------------------------------
|
|
728
728
|
*/
|
|
@@ -810,10 +810,10 @@ const SelectorEngine = {
|
|
|
810
810
|
|
|
811
811
|
/**
|
|
812
812
|
* --------------------------------------------------------------------------
|
|
813
|
-
* CoreUI (
|
|
814
|
-
* Licensed under MIT (https://
|
|
813
|
+
* CoreUI (v5.0.0-alpha.0): util/component-functions.js
|
|
814
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
815
815
|
*
|
|
816
|
-
* This is a modified version of the Bootstrap's util/component-functions.js
|
|
816
|
+
* This component is a modified version of the Bootstrap's util/component-functions.js
|
|
817
817
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
818
818
|
* --------------------------------------------------------------------------
|
|
819
819
|
*/
|
|
@@ -837,8 +837,8 @@ const enableDismissTrigger = (component, method = 'hide') => {
|
|
|
837
837
|
|
|
838
838
|
/**
|
|
839
839
|
* --------------------------------------------------------------------------
|
|
840
|
-
* CoreUI (
|
|
841
|
-
* Licensed under MIT (https://
|
|
840
|
+
* CoreUI (v5.0.0-alpha.0): alert.js
|
|
841
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
842
842
|
*
|
|
843
843
|
* This component is a modified version of the Bootstrap's alert.js
|
|
844
844
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
@@ -914,8 +914,8 @@ defineJQueryPlugin(Alert);
|
|
|
914
914
|
|
|
915
915
|
/**
|
|
916
916
|
* --------------------------------------------------------------------------
|
|
917
|
-
* CoreUI (
|
|
918
|
-
* Licensed under MIT (https://
|
|
917
|
+
* CoreUI (v5.0.0-alpha.0): button.js
|
|
918
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
919
919
|
*
|
|
920
920
|
* This component is a modified version of the Bootstrap's button.js
|
|
921
921
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
@@ -980,10 +980,10 @@ defineJQueryPlugin(Button);
|
|
|
980
980
|
|
|
981
981
|
/**
|
|
982
982
|
* --------------------------------------------------------------------------
|
|
983
|
-
* CoreUI (
|
|
984
|
-
* Licensed under MIT (https://
|
|
983
|
+
* CoreUI (v5.0.0-alpha.0): util/swipe.js
|
|
984
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
985
985
|
*
|
|
986
|
-
* This is a modified version of the Bootstrap's util/swipe.js
|
|
986
|
+
* This component is a modified version of the Bootstrap's util/swipe.js
|
|
987
987
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
988
988
|
* --------------------------------------------------------------------------
|
|
989
989
|
*/
|
|
@@ -1102,8 +1102,8 @@ class Swipe extends Config {
|
|
|
1102
1102
|
|
|
1103
1103
|
/**
|
|
1104
1104
|
* --------------------------------------------------------------------------
|
|
1105
|
-
* CoreUI (
|
|
1106
|
-
* Licensed under MIT (https://
|
|
1105
|
+
* CoreUI (v5.0.0-alpha.0): carousel.js
|
|
1106
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
1107
1107
|
*
|
|
1108
1108
|
* This component is a modified version of the Bootstrap's carousel.js
|
|
1109
1109
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
@@ -1477,8 +1477,8 @@ defineJQueryPlugin(Carousel);
|
|
|
1477
1477
|
|
|
1478
1478
|
/**
|
|
1479
1479
|
* --------------------------------------------------------------------------
|
|
1480
|
-
* CoreUI (
|
|
1481
|
-
* Licensed under MIT (https://
|
|
1480
|
+
* CoreUI (v5.0.0-alpha.0): collapse.js
|
|
1481
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
1482
1482
|
*
|
|
1483
1483
|
* This component is a modified version of the Bootstrap's collapse.js
|
|
1484
1484
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
@@ -1713,8 +1713,8 @@ defineJQueryPlugin(Collapse);
|
|
|
1713
1713
|
|
|
1714
1714
|
/**
|
|
1715
1715
|
* --------------------------------------------------------------------------
|
|
1716
|
-
* CoreUI (
|
|
1717
|
-
* Licensed under MIT (https://
|
|
1716
|
+
* CoreUI (v5.0.0-alpha.0): dropdown.js
|
|
1717
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
1718
1718
|
*
|
|
1719
1719
|
* This component is a modified version of the Bootstrap's dropdown.js
|
|
1720
1720
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
@@ -1788,7 +1788,7 @@ class Dropdown extends BaseComponent {
|
|
|
1788
1788
|
super(element, config);
|
|
1789
1789
|
this._popper = null;
|
|
1790
1790
|
this._parent = this._element.parentNode; // dropdown wrapper
|
|
1791
|
-
// todo: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.
|
|
1791
|
+
// todo: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/
|
|
1792
1792
|
this._menu = SelectorEngine.next(this._element, SELECTOR_MENU)[0] || SelectorEngine.prev(this._element, SELECTOR_MENU)[0] || SelectorEngine.findOne(SELECTOR_MENU, this._parent);
|
|
1793
1793
|
this._inNavbar = this._detectNavbar();
|
|
1794
1794
|
}
|
|
@@ -2044,7 +2044,7 @@ class Dropdown extends BaseComponent {
|
|
|
2044
2044
|
}
|
|
2045
2045
|
event.preventDefault();
|
|
2046
2046
|
|
|
2047
|
-
// todo: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.
|
|
2047
|
+
// todo: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/
|
|
2048
2048
|
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);
|
|
2049
2049
|
const instance = Dropdown.getOrCreateInstance(getToggleButton);
|
|
2050
2050
|
if (isUpOrDownEvent) {
|
|
@@ -2083,10 +2083,10 @@ defineJQueryPlugin(Dropdown);
|
|
|
2083
2083
|
|
|
2084
2084
|
/**
|
|
2085
2085
|
* --------------------------------------------------------------------------
|
|
2086
|
-
* CoreUI (
|
|
2087
|
-
* Licensed under MIT (https://
|
|
2086
|
+
* CoreUI (v5.0.0-alpha.0): util/scrollBar.js
|
|
2087
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
2088
2088
|
*
|
|
2089
|
-
* This is a modified version of the Bootstrap's
|
|
2089
|
+
* This component is a modified version of the Bootstrap's util/scrollBar.js
|
|
2090
2090
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2091
2091
|
* --------------------------------------------------------------------------
|
|
2092
2092
|
*/
|
|
@@ -2183,10 +2183,10 @@ class ScrollBarHelper {
|
|
|
2183
2183
|
|
|
2184
2184
|
/**
|
|
2185
2185
|
* --------------------------------------------------------------------------
|
|
2186
|
-
* CoreUI (
|
|
2187
|
-
* Licensed under MIT (https://
|
|
2186
|
+
* CoreUI (v5.0.0-alpha.0): util/backdrop.js
|
|
2187
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
2188
2188
|
*
|
|
2189
|
-
* This is a modified version of the Bootstrap's util/backdrop.js
|
|
2189
|
+
* This component is a modified version of the Bootstrap's util/backdrop.js
|
|
2190
2190
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2191
2191
|
* --------------------------------------------------------------------------
|
|
2192
2192
|
*/
|
|
@@ -2310,10 +2310,10 @@ class Backdrop extends Config {
|
|
|
2310
2310
|
|
|
2311
2311
|
/**
|
|
2312
2312
|
* --------------------------------------------------------------------------
|
|
2313
|
-
* CoreUI (
|
|
2314
|
-
* Licensed under MIT (https://
|
|
2313
|
+
* CoreUI (v5.0.0-alpha.0): util/focustrap.js
|
|
2314
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
2315
2315
|
*
|
|
2316
|
-
* This is a modified version of the Bootstrap's util/focustrap.js
|
|
2316
|
+
* This component is a modified version of the Bootstrap's util/focustrap.js
|
|
2317
2317
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2318
2318
|
* --------------------------------------------------------------------------
|
|
2319
2319
|
*/
|
|
@@ -2411,8 +2411,8 @@ class FocusTrap extends Config {
|
|
|
2411
2411
|
|
|
2412
2412
|
/**
|
|
2413
2413
|
* --------------------------------------------------------------------------
|
|
2414
|
-
* CoreUI (
|
|
2415
|
-
* Licensed under MIT (https://
|
|
2414
|
+
* CoreUI (v5.0.0-alpha.0): modal.js
|
|
2415
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
2416
2416
|
*
|
|
2417
2417
|
* This component is a modified version of the Bootstrap's modal.js
|
|
2418
2418
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
@@ -2720,8 +2720,8 @@ defineJQueryPlugin(Modal);
|
|
|
2720
2720
|
|
|
2721
2721
|
/**
|
|
2722
2722
|
* --------------------------------------------------------------------------
|
|
2723
|
-
* CoreUI (
|
|
2724
|
-
* Licensed under MIT (https://
|
|
2723
|
+
* CoreUI (v5.0.0-alpha.0): navigation.js
|
|
2724
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
2725
2725
|
* --------------------------------------------------------------------------
|
|
2726
2726
|
*/
|
|
2727
2727
|
|
|
@@ -2974,11 +2974,11 @@ defineJQueryPlugin(Navigation);
|
|
|
2974
2974
|
|
|
2975
2975
|
/**
|
|
2976
2976
|
* --------------------------------------------------------------------------
|
|
2977
|
-
* CoreUI (
|
|
2978
|
-
* Licensed under MIT (https://
|
|
2977
|
+
* CoreUI (v5.0.0-alpha.0): offcanvas.js
|
|
2978
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
2979
2979
|
*
|
|
2980
2980
|
* This component is a modified version of the Bootstrap's offcanvas.js
|
|
2981
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/
|
|
2981
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2982
2982
|
* --------------------------------------------------------------------------
|
|
2983
2983
|
*/
|
|
2984
2984
|
|
|
@@ -3207,10 +3207,10 @@ defineJQueryPlugin(Offcanvas);
|
|
|
3207
3207
|
|
|
3208
3208
|
/**
|
|
3209
3209
|
* --------------------------------------------------------------------------
|
|
3210
|
-
* CoreUI (
|
|
3211
|
-
* Licensed under MIT (https://
|
|
3210
|
+
* CoreUI (v5.0.0-alpha.0): util/sanitizer.js
|
|
3211
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
3212
3212
|
*
|
|
3213
|
-
* This is a modified version of the Bootstrap's util/sanitizer.js
|
|
3213
|
+
* This component is a modified version of the Bootstrap's util/sanitizer.js
|
|
3214
3214
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
3215
3215
|
* --------------------------------------------------------------------------
|
|
3216
3216
|
*/
|
|
@@ -3305,10 +3305,10 @@ function sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {
|
|
|
3305
3305
|
|
|
3306
3306
|
/**
|
|
3307
3307
|
* --------------------------------------------------------------------------
|
|
3308
|
-
* CoreUI (
|
|
3309
|
-
* Licensed under MIT (https://
|
|
3308
|
+
* CoreUI (v5.0.0-alpha.0): util/template-factory.js
|
|
3309
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
3310
3310
|
*
|
|
3311
|
-
* This is a modified version of the Bootstrap's util/template-factory.js
|
|
3311
|
+
* This component is a modified version of the Bootstrap's util/template-factory.js
|
|
3312
3312
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
3313
3313
|
* --------------------------------------------------------------------------
|
|
3314
3314
|
*/
|
|
@@ -3443,8 +3443,8 @@ class TemplateFactory extends Config {
|
|
|
3443
3443
|
|
|
3444
3444
|
/**
|
|
3445
3445
|
* --------------------------------------------------------------------------
|
|
3446
|
-
* CoreUI (
|
|
3447
|
-
* Licensed under MIT (https://
|
|
3446
|
+
* CoreUI (v5.0.0-alpha.0): tooltip.js
|
|
3447
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
3448
3448
|
*
|
|
3449
3449
|
* This component is a modified version of the Bootstrap's tooltip.js
|
|
3450
3450
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
@@ -3698,7 +3698,7 @@ class Tooltip extends BaseComponent {
|
|
|
3698
3698
|
}
|
|
3699
3699
|
tip.classList.remove(CLASS_NAME_FADE$2, CLASS_NAME_SHOW$3);
|
|
3700
3700
|
// todo: on v6 the following can be achieved with CSS only
|
|
3701
|
-
tip.classList.add(`
|
|
3701
|
+
tip.classList.add(`cui-${this.constructor.NAME}-auto`);
|
|
3702
3702
|
const tipId = getUID(this.constructor.NAME).toString();
|
|
3703
3703
|
tip.setAttribute('id', tipId);
|
|
3704
3704
|
if (this._isAnimated()) {
|
|
@@ -3957,8 +3957,8 @@ defineJQueryPlugin(Tooltip);
|
|
|
3957
3957
|
|
|
3958
3958
|
/**
|
|
3959
3959
|
* --------------------------------------------------------------------------
|
|
3960
|
-
* CoreUI (
|
|
3961
|
-
* Licensed under MIT (https://
|
|
3960
|
+
* CoreUI (v5.0.0-alpha.0): popover.js
|
|
3961
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
3962
3962
|
*
|
|
3963
3963
|
* This component is a modified version of the Bootstrap's popover.js
|
|
3964
3964
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
@@ -4040,8 +4040,8 @@ defineJQueryPlugin(Popover);
|
|
|
4040
4040
|
|
|
4041
4041
|
/**
|
|
4042
4042
|
* --------------------------------------------------------------------------
|
|
4043
|
-
* CoreUI (
|
|
4044
|
-
* Licensed under MIT (https://
|
|
4043
|
+
* CoreUI (v5.0.0-alpha.0): scrollspy.js
|
|
4044
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
4045
4045
|
*
|
|
4046
4046
|
* This component is a modified version of the Bootstrap's scrollspy.js
|
|
4047
4047
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
@@ -4302,8 +4302,8 @@ defineJQueryPlugin(ScrollSpy);
|
|
|
4302
4302
|
|
|
4303
4303
|
/**
|
|
4304
4304
|
* --------------------------------------------------------------------------
|
|
4305
|
-
* CoreUI (
|
|
4306
|
-
* Licensed under MIT (https://
|
|
4305
|
+
* CoreUI (v5.0.0-alpha.0): sidebar.js
|
|
4306
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
4307
4307
|
* --------------------------------------------------------------------------
|
|
4308
4308
|
*/
|
|
4309
4309
|
|
|
@@ -4582,8 +4582,8 @@ defineJQueryPlugin(Sidebar);
|
|
|
4582
4582
|
|
|
4583
4583
|
/**
|
|
4584
4584
|
* --------------------------------------------------------------------------
|
|
4585
|
-
* CoreUI (
|
|
4586
|
-
* Licensed under MIT (https://
|
|
4585
|
+
* CoreUI (v5.0.0-alpha.0): tab.js
|
|
4586
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
4587
4587
|
*
|
|
4588
4588
|
* This component is a modified version of the Bootstrap's tab.js
|
|
4589
4589
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
@@ -4846,8 +4846,8 @@ defineJQueryPlugin(Tab);
|
|
|
4846
4846
|
|
|
4847
4847
|
/**
|
|
4848
4848
|
* --------------------------------------------------------------------------
|
|
4849
|
-
* CoreUI (
|
|
4850
|
-
* Licensed under MIT (https://
|
|
4849
|
+
* CoreUI (v5.0.0-alpha.0): toast.js
|
|
4850
|
+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
|
|
4851
4851
|
*
|
|
4852
4852
|
* This component is a modified version of the Bootstrap's toast.js
|
|
4853
4853
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|