@tabler/core 1.0.0-beta17 → 1.0.0-beta19
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/README.md +23 -7
- package/dist/.DS_Store +0 -0
- package/dist/css/demo.css +13 -43
- package/dist/css/demo.min.css +3 -3
- package/dist/css/demo.rtl.css +13 -43
- package/dist/css/demo.rtl.min.css +3 -3
- package/dist/css/tabler-flags.css +5 -3
- package/dist/css/tabler-flags.min.css +3 -3
- package/dist/css/tabler-flags.rtl.css +5 -3
- package/dist/css/tabler-flags.rtl.min.css +3 -3
- package/dist/css/tabler-payments.css +12 -2
- package/dist/css/tabler-payments.min.css +3 -3
- package/dist/css/tabler-payments.rtl.css +12 -2
- package/dist/css/tabler-payments.rtl.min.css +3 -3
- package/dist/css/tabler-social.css +10 -0
- package/dist/css/tabler-social.min.css +8 -0
- package/dist/css/tabler-social.rtl.css +10 -0
- package/dist/css/tabler-social.rtl.min.css +8 -0
- package/dist/css/tabler-vendors.css +114 -38
- package/dist/css/tabler-vendors.min.css +3 -3
- package/dist/css/tabler-vendors.rtl.css +114 -38
- package/dist/css/tabler-vendors.rtl.min.css +3 -3
- package/dist/css/tabler.css +3831 -2185
- package/dist/css/tabler.min.css +7 -3
- package/dist/css/tabler.rtl.css +3831 -2186
- package/dist/css/tabler.rtl.min.css +7 -3
- package/dist/img/payments/epayco-dark.svg +1 -0
- package/dist/img/payments/epayco.svg +1 -0
- package/dist/js/demo-theme.js +9 -6
- package/dist/js/demo-theme.min.js +3 -3
- package/dist/js/demo.js +16 -16
- package/dist/js/demo.min.js +2 -2
- package/dist/js/tabler.esm.js +2115 -2970
- package/dist/js/tabler.esm.min.js +6 -6
- package/dist/js/tabler.js +2115 -2970
- package/dist/js/tabler.min.js +6 -6
- package/dist/libs/apexcharts/dist/apexcharts.amd.js +1 -1
- package/dist/libs/apexcharts/dist/apexcharts.common.js +5 -5
- package/dist/libs/apexcharts/dist/apexcharts.esm.js +5 -5
- package/dist/libs/apexcharts/dist/apexcharts.js +3010 -2741
- package/dist/libs/apexcharts/dist/apexcharts.min.js +5 -5
- package/dist/libs/bootstrap/dist/js/bootstrap.bundle.js +228 -228
- package/dist/libs/bootstrap/dist/js/bootstrap.bundle.js.map +1 -1
- package/dist/libs/bootstrap/dist/js/bootstrap.bundle.min.js +3 -3
- package/dist/libs/bootstrap/dist/js/bootstrap.bundle.min.js.map +1 -1
- package/dist/libs/bootstrap/dist/js/bootstrap.esm.js +196 -195
- package/dist/libs/bootstrap/dist/js/bootstrap.esm.js.map +1 -1
- package/dist/libs/bootstrap/dist/js/bootstrap.esm.min.js +3 -3
- package/dist/libs/bootstrap/dist/js/bootstrap.esm.min.js.map +1 -1
- package/dist/libs/bootstrap/dist/js/bootstrap.js +197 -196
- package/dist/libs/bootstrap/dist/js/bootstrap.js.map +1 -1
- package/dist/libs/bootstrap/dist/js/bootstrap.min.js +3 -3
- package/dist/libs/bootstrap/dist/js/bootstrap.min.js.map +1 -1
- package/dist/libs/countup.js/dist/countUp.d.ts +8 -3
- package/dist/libs/countup.js/dist/countUp.js +26 -8
- package/dist/libs/countup.js/dist/countUp.min.js +1 -1
- package/dist/libs/countup.js/dist/countUp.umd.js +1 -293
- package/dist/libs/countup.js/dist/requestAnimationFrame.polyfill.js +26 -0
- package/dist/libs/fslightbox/README.md +39 -33
- package/dist/libs/fslightbox/index.js +1 -1
- package/dist/libs/fslightbox/package.json +10 -44
- package/dist/libs/jsvectormap/dist/js/jsvectormap.js +517 -857
- package/dist/libs/jsvectormap/dist/js/jsvectormap.min.js +1 -1
- package/dist/libs/nouislider/dist/nouislider.d.ts +2 -0
- package/dist/libs/nouislider/dist/nouislider.js +28 -0
- package/dist/libs/nouislider/dist/nouislider.min.js +1 -1
- package/dist/libs/nouislider/dist/nouislider.min.mjs +1 -1
- package/dist/libs/nouislider/dist/nouislider.mjs +28 -0
- package/dist/libs/plyr/dist/plyr.css +1 -1
- package/dist/libs/plyr/dist/plyr.js +289 -229
- package/dist/libs/plyr/dist/plyr.min.js +1 -1
- package/dist/libs/plyr/dist/plyr.min.js.map +1 -1
- package/dist/libs/plyr/dist/plyr.min.mjs +1 -1
- package/dist/libs/plyr/dist/plyr.min.mjs.map +1 -1
- package/dist/libs/plyr/dist/plyr.mjs +289 -229
- package/dist/libs/plyr/dist/plyr.polyfilled.js +289 -229
- package/dist/libs/plyr/dist/plyr.polyfilled.min.js +1 -1
- package/dist/libs/plyr/dist/plyr.polyfilled.min.js.map +1 -1
- package/dist/libs/plyr/dist/plyr.polyfilled.min.mjs +1 -1
- package/dist/libs/plyr/dist/plyr.polyfilled.min.mjs.map +1 -1
- package/dist/libs/plyr/dist/plyr.polyfilled.mjs +289 -229
- package/dist/libs/star-rating.js/dist/star-rating.cjs.js +481 -0
- package/dist/libs/star-rating.js/dist/star-rating.css +220 -0
- package/dist/libs/star-rating.js/dist/star-rating.esm.js +479 -0
- package/dist/libs/star-rating.js/dist/star-rating.esm.min.js +1 -0
- package/dist/libs/star-rating.js/dist/star-rating.js +491 -0
- package/dist/libs/star-rating.js/dist/star-rating.min.css +8 -0
- package/dist/libs/star-rating.js/dist/star-rating.min.js +8 -0
- package/dist/libs/tinymce/CHANGELOG.md +112 -0
- package/dist/libs/tinymce/composer.json +1 -1
- package/dist/libs/tinymce/icons/default/icons.js +4 -0
- package/dist/libs/tinymce/icons/default/icons.min.js +1 -1
- package/dist/libs/tinymce/models/dom/model.js +79 -23
- package/dist/libs/tinymce/models/dom/model.min.js +2 -2
- package/dist/libs/tinymce/package.json +1 -1
- package/dist/libs/tinymce/plugins/advlist/plugin.js +34 -28
- package/dist/libs/tinymce/plugins/advlist/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/anchor/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/anchor/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/autolink/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/autolink/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/autoresize/plugin.js +46 -11
- package/dist/libs/tinymce/plugins/autoresize/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/autosave/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/autosave/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/charmap/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/charmap/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/code/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/code/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/codesample/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/codesample/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/directionality/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/directionality/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/emoticons/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/emoticons/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/fullscreen/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/fullscreen/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/help/plugin.js +12 -4
- package/dist/libs/tinymce/plugins/help/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/image/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/image/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/importcss/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/importcss/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/insertdatetime/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/insertdatetime/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/link/plugin.js +21 -7
- package/dist/libs/tinymce/plugins/link/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/lists/plugin.js +132 -50
- package/dist/libs/tinymce/plugins/lists/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/media/plugin.js +7 -2
- package/dist/libs/tinymce/plugins/media/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/nonbreaking/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/nonbreaking/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/pagebreak/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/pagebreak/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/preview/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/preview/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/quickbars/plugin.js +21 -13
- package/dist/libs/tinymce/plugins/quickbars/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/save/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/save/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/searchreplace/plugin.js +56 -43
- package/dist/libs/tinymce/plugins/searchreplace/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/table/plugin.js +73 -55
- package/dist/libs/tinymce/plugins/table/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/template/plugin.js +17 -14
- package/dist/libs/tinymce/plugins/template/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/visualblocks/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/visualblocks/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/visualchars/plugin.js +58 -7
- package/dist/libs/tinymce/plugins/visualchars/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/wordcount/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/wordcount/plugin.min.js +1 -1
- package/dist/libs/tinymce/skins/ui/oxide/skin.css +454 -6
- package/dist/libs/tinymce/skins/ui/oxide/skin.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/oxide-dark/skin.css +454 -6
- package/dist/libs/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/tinymce-5/skin.css +455 -6
- package/dist/libs/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/skin.css +454 -5
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
- package/dist/libs/tinymce/themes/silver/theme.js +4374 -3074
- package/dist/libs/tinymce/themes/silver/theme.min.js +2 -2
- package/dist/libs/tinymce/tinymce.d.ts +305 -236
- package/dist/libs/tinymce/tinymce.js +1957 -1597
- package/dist/libs/tinymce/tinymce.min.js +2 -2
- package/package.json +63 -42
- package/src/js/demo-theme.js +13 -10
- package/src/js/demo.js +18 -15
- package/src/js/tabler.esm.js +7 -8
- package/src/js/tabler.js +12 -12
- package/src/scss/_bootstrap-components.scss +33 -33
- package/src/scss/_bootstrap-config.scss +6 -6
- package/src/scss/_bootstrap-override.scss +8 -12
- package/src/scss/_config.scss +2 -1
- package/src/scss/_core.scss +1 -1
- package/src/scss/_debug.scss +41 -30
- package/src/scss/_utilities.scss +21 -19
- package/src/scss/_variables-dark.scss +17 -0
- package/src/scss/_variables.scss +233 -169
- package/src/scss/demo/_examples.scss +0 -16
- package/src/scss/demo.scss +36 -25
- package/src/scss/layout/_core.scss +0 -1
- package/src/scss/layout/_dark.scss +47 -162
- package/src/scss/layout/_navbar.scss +19 -99
- package/src/scss/layout/_page.scss +9 -6
- package/src/scss/layout/_root.scss +21 -7
- package/src/scss/mixins/_functions.scss +2 -6
- package/src/scss/mixins/_mixins.scss +0 -32
- package/src/scss/tabler-social.scss +1 -0
- package/src/scss/tabler-vendors.scss +1 -0
- package/src/scss/tabler.scss +0 -1
- package/src/scss/ui/_avatars.scss +1 -1
- package/src/scss/ui/_buttons.scss +1 -1
- package/src/scss/ui/_dropdowns.scss +1 -3
- package/src/scss/ui/_grid.scss +2 -18
- package/src/scss/ui/_payments.scss +1 -1
- package/src/scss/ui/_status.scss +0 -10
- package/src/scss/ui/_tables.scss +12 -26
- package/src/scss/ui/_timeline.scss +3 -3
- package/src/scss/utils/_colors.scss +6 -2
- package/src/scss/vendor/_apexcharts.scss +16 -0
- package/src/scss/vendor/_jsvectormap.scss +1 -1
- package/src/scss/vendor/_nouislider.scss +1 -1
- package/src/scss/vendor/_stars-rating.scss +20 -0
- package/src/scss/vendor/_tinymce.scss +5 -7
- package/src/scss/vendor/_tom-select.scss +43 -2
- package/dist/libs/countup.js/dist/countUp.withPolyfill.min.js +0 -1
- package/dist/libs/fslightbox/jest-setup.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap v5.3.0-
|
|
3
|
-
* Copyright 2011-
|
|
2
|
+
* Bootstrap v5.3.0-alpha3 (https://getbootstrap.com/)
|
|
3
|
+
* Copyright 2011-2023 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
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -30,7 +30,55 @@
|
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* --------------------------------------------------------------------------
|
|
33
|
-
* Bootstrap
|
|
33
|
+
* Bootstrap dom/data.js
|
|
34
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
35
|
+
* --------------------------------------------------------------------------
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Constants
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
const elementMap = new Map();
|
|
43
|
+
const Data = {
|
|
44
|
+
set(element, key, instance) {
|
|
45
|
+
if (!elementMap.has(element)) {
|
|
46
|
+
elementMap.set(element, new Map());
|
|
47
|
+
}
|
|
48
|
+
const instanceMap = elementMap.get(element);
|
|
49
|
+
|
|
50
|
+
// make it clear we only want one instance per element
|
|
51
|
+
// can be removed later when multiple key/instances are fine to be used
|
|
52
|
+
if (!instanceMap.has(key) && instanceMap.size !== 0) {
|
|
53
|
+
// eslint-disable-next-line no-console
|
|
54
|
+
console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
instanceMap.set(key, instance);
|
|
58
|
+
},
|
|
59
|
+
get(element, key) {
|
|
60
|
+
if (elementMap.has(element)) {
|
|
61
|
+
return elementMap.get(element).get(key) || null;
|
|
62
|
+
}
|
|
63
|
+
return null;
|
|
64
|
+
},
|
|
65
|
+
remove(element, key) {
|
|
66
|
+
if (!elementMap.has(element)) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
const instanceMap = elementMap.get(element);
|
|
70
|
+
instanceMap.delete(key);
|
|
71
|
+
|
|
72
|
+
// free up element references if there are no instances left for an element
|
|
73
|
+
if (instanceMap.size === 0) {
|
|
74
|
+
elementMap.delete(element);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* --------------------------------------------------------------------------
|
|
81
|
+
* Bootstrap util/index.js
|
|
34
82
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
35
83
|
* --------------------------------------------------------------------------
|
|
36
84
|
*/
|
|
@@ -277,7 +325,7 @@
|
|
|
277
325
|
|
|
278
326
|
/**
|
|
279
327
|
* --------------------------------------------------------------------------
|
|
280
|
-
* Bootstrap
|
|
328
|
+
* Bootstrap dom/event-handler.js
|
|
281
329
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
282
330
|
* --------------------------------------------------------------------------
|
|
283
331
|
*/
|
|
@@ -347,7 +395,7 @@
|
|
|
347
395
|
}
|
|
348
396
|
function normalizeParameters(originalTypeEvent, handler, delegationFunction) {
|
|
349
397
|
const isDelegated = typeof handler === 'string';
|
|
350
|
-
//
|
|
398
|
+
// TODO: tooltip passes `false` instead of selector, so we need to check
|
|
351
399
|
const callable = isDelegated ? delegationFunction : handler || delegationFunction;
|
|
352
400
|
let typeEvent = getTypeEvent(originalTypeEvent);
|
|
353
401
|
if (!nativeEvents.has(typeEvent)) {
|
|
@@ -464,11 +512,10 @@
|
|
|
464
512
|
nativeDispatch = !jQueryEvent.isImmediatePropagationStopped();
|
|
465
513
|
defaultPrevented = jQueryEvent.isDefaultPrevented();
|
|
466
514
|
}
|
|
467
|
-
|
|
515
|
+
const evt = hydrateObj(new Event(event, {
|
|
468
516
|
bubbles,
|
|
469
517
|
cancelable: true
|
|
470
|
-
});
|
|
471
|
-
evt = hydrateObj(evt, args);
|
|
518
|
+
}), args);
|
|
472
519
|
if (defaultPrevented) {
|
|
473
520
|
evt.preventDefault();
|
|
474
521
|
}
|
|
@@ -499,55 +546,7 @@
|
|
|
499
546
|
|
|
500
547
|
/**
|
|
501
548
|
* --------------------------------------------------------------------------
|
|
502
|
-
* Bootstrap
|
|
503
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
504
|
-
* --------------------------------------------------------------------------
|
|
505
|
-
*/
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* Constants
|
|
509
|
-
*/
|
|
510
|
-
|
|
511
|
-
const elementMap = new Map();
|
|
512
|
-
const Data = {
|
|
513
|
-
set(element, key, instance) {
|
|
514
|
-
if (!elementMap.has(element)) {
|
|
515
|
-
elementMap.set(element, new Map());
|
|
516
|
-
}
|
|
517
|
-
const instanceMap = elementMap.get(element);
|
|
518
|
-
|
|
519
|
-
// make it clear we only want one instance per element
|
|
520
|
-
// can be removed later when multiple key/instances are fine to be used
|
|
521
|
-
if (!instanceMap.has(key) && instanceMap.size !== 0) {
|
|
522
|
-
// eslint-disable-next-line no-console
|
|
523
|
-
console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`);
|
|
524
|
-
return;
|
|
525
|
-
}
|
|
526
|
-
instanceMap.set(key, instance);
|
|
527
|
-
},
|
|
528
|
-
get(element, key) {
|
|
529
|
-
if (elementMap.has(element)) {
|
|
530
|
-
return elementMap.get(element).get(key) || null;
|
|
531
|
-
}
|
|
532
|
-
return null;
|
|
533
|
-
},
|
|
534
|
-
remove(element, key) {
|
|
535
|
-
if (!elementMap.has(element)) {
|
|
536
|
-
return;
|
|
537
|
-
}
|
|
538
|
-
const instanceMap = elementMap.get(element);
|
|
539
|
-
instanceMap.delete(key);
|
|
540
|
-
|
|
541
|
-
// free up element references if there are no instances left for an element
|
|
542
|
-
if (instanceMap.size === 0) {
|
|
543
|
-
elementMap.delete(element);
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
|
-
|
|
548
|
-
/**
|
|
549
|
-
* --------------------------------------------------------------------------
|
|
550
|
-
* Bootstrap (v5.3.0-alpha1): dom/manipulator.js
|
|
549
|
+
* Bootstrap dom/manipulator.js
|
|
551
550
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
552
551
|
* --------------------------------------------------------------------------
|
|
553
552
|
*/
|
|
@@ -604,7 +603,7 @@
|
|
|
604
603
|
|
|
605
604
|
/**
|
|
606
605
|
* --------------------------------------------------------------------------
|
|
607
|
-
* Bootstrap
|
|
606
|
+
* Bootstrap util/config.js
|
|
608
607
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
609
608
|
* --------------------------------------------------------------------------
|
|
610
609
|
*/
|
|
@@ -656,7 +655,7 @@
|
|
|
656
655
|
|
|
657
656
|
/**
|
|
658
657
|
* --------------------------------------------------------------------------
|
|
659
|
-
* Bootstrap
|
|
658
|
+
* Bootstrap base-component.js
|
|
660
659
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
661
660
|
* --------------------------------------------------------------------------
|
|
662
661
|
*/
|
|
@@ -665,7 +664,7 @@
|
|
|
665
664
|
* Constants
|
|
666
665
|
*/
|
|
667
666
|
|
|
668
|
-
const VERSION = '5.3.0-
|
|
667
|
+
const VERSION = '5.3.0-alpha2';
|
|
669
668
|
|
|
670
669
|
/**
|
|
671
670
|
* Class definition
|
|
@@ -724,7 +723,7 @@
|
|
|
724
723
|
|
|
725
724
|
/**
|
|
726
725
|
* --------------------------------------------------------------------------
|
|
727
|
-
* Bootstrap
|
|
726
|
+
* Bootstrap dom/selector-engine.js
|
|
728
727
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
729
728
|
* --------------------------------------------------------------------------
|
|
730
729
|
*/
|
|
@@ -812,7 +811,7 @@
|
|
|
812
811
|
|
|
813
812
|
/**
|
|
814
813
|
* --------------------------------------------------------------------------
|
|
815
|
-
* Bootstrap
|
|
814
|
+
* Bootstrap util/component-functions.js
|
|
816
815
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
817
816
|
* --------------------------------------------------------------------------
|
|
818
817
|
*/
|
|
@@ -836,7 +835,7 @@
|
|
|
836
835
|
|
|
837
836
|
/**
|
|
838
837
|
* --------------------------------------------------------------------------
|
|
839
|
-
* Bootstrap
|
|
838
|
+
* Bootstrap alert.js
|
|
840
839
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
841
840
|
* --------------------------------------------------------------------------
|
|
842
841
|
*/
|
|
@@ -910,7 +909,7 @@
|
|
|
910
909
|
|
|
911
910
|
/**
|
|
912
911
|
* --------------------------------------------------------------------------
|
|
913
|
-
* Bootstrap
|
|
912
|
+
* Bootstrap button.js
|
|
914
913
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
915
914
|
* --------------------------------------------------------------------------
|
|
916
915
|
*/
|
|
@@ -973,7 +972,7 @@
|
|
|
973
972
|
|
|
974
973
|
/**
|
|
975
974
|
* --------------------------------------------------------------------------
|
|
976
|
-
* Bootstrap
|
|
975
|
+
* Bootstrap util/swipe.js
|
|
977
976
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
978
977
|
* --------------------------------------------------------------------------
|
|
979
978
|
*/
|
|
@@ -1092,7 +1091,7 @@
|
|
|
1092
1091
|
|
|
1093
1092
|
/**
|
|
1094
1093
|
* --------------------------------------------------------------------------
|
|
1095
|
-
* Bootstrap
|
|
1094
|
+
* Bootstrap carousel.js
|
|
1096
1095
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
1097
1096
|
* --------------------------------------------------------------------------
|
|
1098
1097
|
*/
|
|
@@ -1352,7 +1351,7 @@
|
|
|
1352
1351
|
}
|
|
1353
1352
|
if (!activeElement || !nextElement) {
|
|
1354
1353
|
// Some weirdness is happening, so we bail
|
|
1355
|
-
//
|
|
1354
|
+
// TODO: change tests that use empty divs to avoid this check
|
|
1356
1355
|
return;
|
|
1357
1356
|
}
|
|
1358
1357
|
const isCycling = Boolean(this._interval);
|
|
@@ -1464,7 +1463,7 @@
|
|
|
1464
1463
|
|
|
1465
1464
|
/**
|
|
1466
1465
|
* --------------------------------------------------------------------------
|
|
1467
|
-
* Bootstrap
|
|
1466
|
+
* Bootstrap collapse.js
|
|
1468
1467
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
1469
1468
|
* --------------------------------------------------------------------------
|
|
1470
1469
|
*/
|
|
@@ -1697,7 +1696,7 @@
|
|
|
1697
1696
|
|
|
1698
1697
|
/**
|
|
1699
1698
|
* --------------------------------------------------------------------------
|
|
1700
|
-
* Bootstrap
|
|
1699
|
+
* Bootstrap dropdown.js
|
|
1701
1700
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
1702
1701
|
* --------------------------------------------------------------------------
|
|
1703
1702
|
*/
|
|
@@ -1769,7 +1768,7 @@
|
|
|
1769
1768
|
super(element, config);
|
|
1770
1769
|
this._popper = null;
|
|
1771
1770
|
this._parent = this._element.parentNode; // dropdown wrapper
|
|
1772
|
-
//
|
|
1771
|
+
// TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/
|
|
1773
1772
|
this._menu = SelectorEngine.next(this._element, SELECTOR_MENU)[0] || SelectorEngine.prev(this._element, SELECTOR_MENU)[0] || SelectorEngine.findOne(SELECTOR_MENU, this._parent);
|
|
1774
1773
|
this._inNavbar = this._detectNavbar();
|
|
1775
1774
|
}
|
|
@@ -1943,7 +1942,7 @@
|
|
|
1943
1942
|
|
|
1944
1943
|
// Disable Popper if we have a static display or Dropdown is in Navbar
|
|
1945
1944
|
if (this._inNavbar || this._config.display === 'static') {
|
|
1946
|
-
Manipulator.setDataAttribute(this._menu, 'popper', 'static'); //
|
|
1945
|
+
Manipulator.setDataAttribute(this._menu, 'popper', 'static'); // TODO: v6 remove
|
|
1947
1946
|
defaultBsPopperConfig.modifiers = [{
|
|
1948
1947
|
name: 'applyStyles',
|
|
1949
1948
|
enabled: false
|
|
@@ -2025,7 +2024,7 @@
|
|
|
2025
2024
|
}
|
|
2026
2025
|
event.preventDefault();
|
|
2027
2026
|
|
|
2028
|
-
//
|
|
2027
|
+
// TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/
|
|
2029
2028
|
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] || SelectorEngine.findOne(SELECTOR_DATA_TOGGLE$3, event.delegateTarget.parentNode);
|
|
2030
2029
|
const instance = Dropdown.getOrCreateInstance(getToggleButton);
|
|
2031
2030
|
if (isUpOrDownEvent) {
|
|
@@ -2064,104 +2063,7 @@
|
|
|
2064
2063
|
|
|
2065
2064
|
/**
|
|
2066
2065
|
* --------------------------------------------------------------------------
|
|
2067
|
-
* Bootstrap
|
|
2068
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2069
|
-
* --------------------------------------------------------------------------
|
|
2070
|
-
*/
|
|
2071
|
-
|
|
2072
|
-
/**
|
|
2073
|
-
* Constants
|
|
2074
|
-
*/
|
|
2075
|
-
|
|
2076
|
-
const SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
|
|
2077
|
-
const SELECTOR_STICKY_CONTENT = '.sticky-top';
|
|
2078
|
-
const PROPERTY_PADDING = 'padding-right';
|
|
2079
|
-
const PROPERTY_MARGIN = 'margin-right';
|
|
2080
|
-
|
|
2081
|
-
/**
|
|
2082
|
-
* Class definition
|
|
2083
|
-
*/
|
|
2084
|
-
|
|
2085
|
-
class ScrollBarHelper {
|
|
2086
|
-
constructor() {
|
|
2087
|
-
this._element = document.body;
|
|
2088
|
-
}
|
|
2089
|
-
|
|
2090
|
-
// Public
|
|
2091
|
-
getWidth() {
|
|
2092
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
|
|
2093
|
-
const documentWidth = document.documentElement.clientWidth;
|
|
2094
|
-
return Math.abs(window.innerWidth - documentWidth);
|
|
2095
|
-
}
|
|
2096
|
-
hide() {
|
|
2097
|
-
const width = this.getWidth();
|
|
2098
|
-
this._disableOverFlow();
|
|
2099
|
-
// give padding to element to balance the hidden scrollbar width
|
|
2100
|
-
this._setElementAttributes(this._element, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
|
|
2101
|
-
// trick: We adjust positive paddingRight and negative marginRight to sticky-top elements to keep showing fullwidth
|
|
2102
|
-
this._setElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
|
|
2103
|
-
this._setElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN, calculatedValue => calculatedValue - width);
|
|
2104
|
-
}
|
|
2105
|
-
reset() {
|
|
2106
|
-
this._resetElementAttributes(this._element, 'overflow');
|
|
2107
|
-
this._resetElementAttributes(this._element, PROPERTY_PADDING);
|
|
2108
|
-
this._resetElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING);
|
|
2109
|
-
this._resetElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN);
|
|
2110
|
-
}
|
|
2111
|
-
isOverflowing() {
|
|
2112
|
-
return this.getWidth() > 0;
|
|
2113
|
-
}
|
|
2114
|
-
|
|
2115
|
-
// Private
|
|
2116
|
-
_disableOverFlow() {
|
|
2117
|
-
this._saveInitialAttribute(this._element, 'overflow');
|
|
2118
|
-
this._element.style.overflow = 'hidden';
|
|
2119
|
-
}
|
|
2120
|
-
_setElementAttributes(selector, styleProperty, callback) {
|
|
2121
|
-
const scrollbarWidth = this.getWidth();
|
|
2122
|
-
const manipulationCallBack = element => {
|
|
2123
|
-
if (element !== this._element && window.innerWidth > element.clientWidth + scrollbarWidth) {
|
|
2124
|
-
return;
|
|
2125
|
-
}
|
|
2126
|
-
this._saveInitialAttribute(element, styleProperty);
|
|
2127
|
-
const calculatedValue = window.getComputedStyle(element).getPropertyValue(styleProperty);
|
|
2128
|
-
element.style.setProperty(styleProperty, `${callback(Number.parseFloat(calculatedValue))}px`);
|
|
2129
|
-
};
|
|
2130
|
-
this._applyManipulationCallback(selector, manipulationCallBack);
|
|
2131
|
-
}
|
|
2132
|
-
_saveInitialAttribute(element, styleProperty) {
|
|
2133
|
-
const actualValue = element.style.getPropertyValue(styleProperty);
|
|
2134
|
-
if (actualValue) {
|
|
2135
|
-
Manipulator.setDataAttribute(element, styleProperty, actualValue);
|
|
2136
|
-
}
|
|
2137
|
-
}
|
|
2138
|
-
_resetElementAttributes(selector, styleProperty) {
|
|
2139
|
-
const manipulationCallBack = element => {
|
|
2140
|
-
const value = Manipulator.getDataAttribute(element, styleProperty);
|
|
2141
|
-
// We only want to remove the property if the value is `null`; the value can also be zero
|
|
2142
|
-
if (value === null) {
|
|
2143
|
-
element.style.removeProperty(styleProperty);
|
|
2144
|
-
return;
|
|
2145
|
-
}
|
|
2146
|
-
Manipulator.removeDataAttribute(element, styleProperty);
|
|
2147
|
-
element.style.setProperty(styleProperty, value);
|
|
2148
|
-
};
|
|
2149
|
-
this._applyManipulationCallback(selector, manipulationCallBack);
|
|
2150
|
-
}
|
|
2151
|
-
_applyManipulationCallback(selector, callBack) {
|
|
2152
|
-
if (isElement(selector)) {
|
|
2153
|
-
callBack(selector);
|
|
2154
|
-
return;
|
|
2155
|
-
}
|
|
2156
|
-
for (const sel of SelectorEngine.find(selector, this._element)) {
|
|
2157
|
-
callBack(sel);
|
|
2158
|
-
}
|
|
2159
|
-
}
|
|
2160
|
-
}
|
|
2161
|
-
|
|
2162
|
-
/**
|
|
2163
|
-
* --------------------------------------------------------------------------
|
|
2164
|
-
* Bootstrap (v5.3.0-alpha1): util/backdrop.js
|
|
2066
|
+
* Bootstrap util/backdrop.js
|
|
2165
2067
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2166
2068
|
* --------------------------------------------------------------------------
|
|
2167
2069
|
*/
|
|
@@ -2285,7 +2187,7 @@
|
|
|
2285
2187
|
|
|
2286
2188
|
/**
|
|
2287
2189
|
* --------------------------------------------------------------------------
|
|
2288
|
-
* Bootstrap
|
|
2190
|
+
* Bootstrap util/focustrap.js
|
|
2289
2191
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2290
2192
|
* --------------------------------------------------------------------------
|
|
2291
2193
|
*/
|
|
@@ -2383,7 +2285,104 @@
|
|
|
2383
2285
|
|
|
2384
2286
|
/**
|
|
2385
2287
|
* --------------------------------------------------------------------------
|
|
2386
|
-
* Bootstrap
|
|
2288
|
+
* Bootstrap util/scrollBar.js
|
|
2289
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2290
|
+
* --------------------------------------------------------------------------
|
|
2291
|
+
*/
|
|
2292
|
+
|
|
2293
|
+
/**
|
|
2294
|
+
* Constants
|
|
2295
|
+
*/
|
|
2296
|
+
|
|
2297
|
+
const SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
|
|
2298
|
+
const SELECTOR_STICKY_CONTENT = '.sticky-top';
|
|
2299
|
+
const PROPERTY_PADDING = 'padding-right';
|
|
2300
|
+
const PROPERTY_MARGIN = 'margin-right';
|
|
2301
|
+
|
|
2302
|
+
/**
|
|
2303
|
+
* Class definition
|
|
2304
|
+
*/
|
|
2305
|
+
|
|
2306
|
+
class ScrollBarHelper {
|
|
2307
|
+
constructor() {
|
|
2308
|
+
this._element = document.body;
|
|
2309
|
+
}
|
|
2310
|
+
|
|
2311
|
+
// Public
|
|
2312
|
+
getWidth() {
|
|
2313
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
|
|
2314
|
+
const documentWidth = document.documentElement.clientWidth;
|
|
2315
|
+
return Math.abs(window.innerWidth - documentWidth);
|
|
2316
|
+
}
|
|
2317
|
+
hide() {
|
|
2318
|
+
const width = this.getWidth();
|
|
2319
|
+
this._disableOverFlow();
|
|
2320
|
+
// give padding to element to balance the hidden scrollbar width
|
|
2321
|
+
this._setElementAttributes(this._element, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
|
|
2322
|
+
// trick: We adjust positive paddingRight and negative marginRight to sticky-top elements to keep showing fullwidth
|
|
2323
|
+
this._setElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
|
|
2324
|
+
this._setElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN, calculatedValue => calculatedValue - width);
|
|
2325
|
+
}
|
|
2326
|
+
reset() {
|
|
2327
|
+
this._resetElementAttributes(this._element, 'overflow');
|
|
2328
|
+
this._resetElementAttributes(this._element, PROPERTY_PADDING);
|
|
2329
|
+
this._resetElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING);
|
|
2330
|
+
this._resetElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN);
|
|
2331
|
+
}
|
|
2332
|
+
isOverflowing() {
|
|
2333
|
+
return this.getWidth() > 0;
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
// Private
|
|
2337
|
+
_disableOverFlow() {
|
|
2338
|
+
this._saveInitialAttribute(this._element, 'overflow');
|
|
2339
|
+
this._element.style.overflow = 'hidden';
|
|
2340
|
+
}
|
|
2341
|
+
_setElementAttributes(selector, styleProperty, callback) {
|
|
2342
|
+
const scrollbarWidth = this.getWidth();
|
|
2343
|
+
const manipulationCallBack = element => {
|
|
2344
|
+
if (element !== this._element && window.innerWidth > element.clientWidth + scrollbarWidth) {
|
|
2345
|
+
return;
|
|
2346
|
+
}
|
|
2347
|
+
this._saveInitialAttribute(element, styleProperty);
|
|
2348
|
+
const calculatedValue = window.getComputedStyle(element).getPropertyValue(styleProperty);
|
|
2349
|
+
element.style.setProperty(styleProperty, `${callback(Number.parseFloat(calculatedValue))}px`);
|
|
2350
|
+
};
|
|
2351
|
+
this._applyManipulationCallback(selector, manipulationCallBack);
|
|
2352
|
+
}
|
|
2353
|
+
_saveInitialAttribute(element, styleProperty) {
|
|
2354
|
+
const actualValue = element.style.getPropertyValue(styleProperty);
|
|
2355
|
+
if (actualValue) {
|
|
2356
|
+
Manipulator.setDataAttribute(element, styleProperty, actualValue);
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
_resetElementAttributes(selector, styleProperty) {
|
|
2360
|
+
const manipulationCallBack = element => {
|
|
2361
|
+
const value = Manipulator.getDataAttribute(element, styleProperty);
|
|
2362
|
+
// We only want to remove the property if the value is `null`; the value can also be zero
|
|
2363
|
+
if (value === null) {
|
|
2364
|
+
element.style.removeProperty(styleProperty);
|
|
2365
|
+
return;
|
|
2366
|
+
}
|
|
2367
|
+
Manipulator.removeDataAttribute(element, styleProperty);
|
|
2368
|
+
element.style.setProperty(styleProperty, value);
|
|
2369
|
+
};
|
|
2370
|
+
this._applyManipulationCallback(selector, manipulationCallBack);
|
|
2371
|
+
}
|
|
2372
|
+
_applyManipulationCallback(selector, callBack) {
|
|
2373
|
+
if (isElement(selector)) {
|
|
2374
|
+
callBack(selector);
|
|
2375
|
+
return;
|
|
2376
|
+
}
|
|
2377
|
+
for (const sel of SelectorEngine.find(selector, this._element)) {
|
|
2378
|
+
callBack(sel);
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
/**
|
|
2384
|
+
* --------------------------------------------------------------------------
|
|
2385
|
+
* Bootstrap modal.js
|
|
2387
2386
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2388
2387
|
* --------------------------------------------------------------------------
|
|
2389
2388
|
*/
|
|
@@ -2489,9 +2488,8 @@
|
|
|
2489
2488
|
this._queueCallback(() => this._hideModal(), this._element, this._isAnimated());
|
|
2490
2489
|
}
|
|
2491
2490
|
dispose() {
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
}
|
|
2491
|
+
EventHandler.off(window, EVENT_KEY$4);
|
|
2492
|
+
EventHandler.off(this._dialog, EVENT_KEY$4);
|
|
2495
2493
|
this._backdrop.dispose();
|
|
2496
2494
|
this._focustrap.deactivate();
|
|
2497
2495
|
super.dispose();
|
|
@@ -2546,7 +2544,6 @@
|
|
|
2546
2544
|
return;
|
|
2547
2545
|
}
|
|
2548
2546
|
if (this._config.keyboard) {
|
|
2549
|
-
event.preventDefault();
|
|
2550
2547
|
this.hide();
|
|
2551
2548
|
return;
|
|
2552
2549
|
}
|
|
@@ -2689,7 +2686,7 @@
|
|
|
2689
2686
|
|
|
2690
2687
|
/**
|
|
2691
2688
|
* --------------------------------------------------------------------------
|
|
2692
|
-
* Bootstrap
|
|
2689
|
+
* Bootstrap offcanvas.js
|
|
2693
2690
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2694
2691
|
* --------------------------------------------------------------------------
|
|
2695
2692
|
*/
|
|
@@ -2847,11 +2844,11 @@
|
|
|
2847
2844
|
if (event.key !== ESCAPE_KEY) {
|
|
2848
2845
|
return;
|
|
2849
2846
|
}
|
|
2850
|
-
if (
|
|
2851
|
-
|
|
2847
|
+
if (this._config.keyboard) {
|
|
2848
|
+
this.hide();
|
|
2852
2849
|
return;
|
|
2853
2850
|
}
|
|
2854
|
-
this.
|
|
2851
|
+
EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);
|
|
2855
2852
|
});
|
|
2856
2853
|
}
|
|
2857
2854
|
|
|
@@ -2919,13 +2916,12 @@
|
|
|
2919
2916
|
|
|
2920
2917
|
/**
|
|
2921
2918
|
* --------------------------------------------------------------------------
|
|
2922
|
-
* Bootstrap
|
|
2919
|
+
* Bootstrap util/sanitizer.js
|
|
2923
2920
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
2924
2921
|
* --------------------------------------------------------------------------
|
|
2925
2922
|
*/
|
|
2926
2923
|
|
|
2927
2924
|
const uriAttributes = new Set(['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']);
|
|
2928
|
-
const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
|
|
2929
2925
|
|
|
2930
2926
|
/**
|
|
2931
2927
|
* A pattern that recognizes a commonly useful subset of URLs that are safe.
|
|
@@ -2952,6 +2948,9 @@
|
|
|
2952
2948
|
// Check if a regular expression validates the attribute.
|
|
2953
2949
|
return allowedAttributeList.filter(attributeRegex => attributeRegex instanceof RegExp).some(regex => regex.test(attributeName));
|
|
2954
2950
|
};
|
|
2951
|
+
|
|
2952
|
+
// js-docs-start allow-list
|
|
2953
|
+
const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
|
|
2955
2954
|
const DefaultAllowlist = {
|
|
2956
2955
|
// Global attributes allowed on any supplied element below.
|
|
2957
2956
|
'*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],
|
|
@@ -2985,6 +2984,8 @@
|
|
|
2985
2984
|
u: [],
|
|
2986
2985
|
ul: []
|
|
2987
2986
|
};
|
|
2987
|
+
// js-docs-end allow-list
|
|
2988
|
+
|
|
2988
2989
|
function sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {
|
|
2989
2990
|
if (!unsafeHtml.length) {
|
|
2990
2991
|
return unsafeHtml;
|
|
@@ -3014,7 +3015,7 @@
|
|
|
3014
3015
|
|
|
3015
3016
|
/**
|
|
3016
3017
|
* --------------------------------------------------------------------------
|
|
3017
|
-
* Bootstrap
|
|
3018
|
+
* Bootstrap util/template-factory.js
|
|
3018
3019
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
3019
3020
|
* --------------------------------------------------------------------------
|
|
3020
3021
|
*/
|
|
@@ -3149,7 +3150,7 @@
|
|
|
3149
3150
|
|
|
3150
3151
|
/**
|
|
3151
3152
|
* --------------------------------------------------------------------------
|
|
3152
|
-
* Bootstrap
|
|
3153
|
+
* Bootstrap tooltip.js
|
|
3153
3154
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
3154
3155
|
* --------------------------------------------------------------------------
|
|
3155
3156
|
*/
|
|
@@ -3196,7 +3197,7 @@
|
|
|
3196
3197
|
delay: 0,
|
|
3197
3198
|
fallbackPlacements: ['top', 'right', 'bottom', 'left'],
|
|
3198
3199
|
html: false,
|
|
3199
|
-
offset: [0,
|
|
3200
|
+
offset: [0, 6],
|
|
3200
3201
|
placement: 'top',
|
|
3201
3202
|
popperConfig: null,
|
|
3202
3203
|
sanitize: true,
|
|
@@ -3309,7 +3310,7 @@
|
|
|
3309
3310
|
return;
|
|
3310
3311
|
}
|
|
3311
3312
|
|
|
3312
|
-
//
|
|
3313
|
+
// TODO: v6 remove this or make it optional
|
|
3313
3314
|
this._disposePopper();
|
|
3314
3315
|
const tip = this._getTipElement();
|
|
3315
3316
|
this._element.setAttribute('aria-describedby', tip.getAttribute('id'));
|
|
@@ -3395,12 +3396,12 @@
|
|
|
3395
3396
|
_createTipElement(content) {
|
|
3396
3397
|
const tip = this._getTemplateFactory(content).toHtml();
|
|
3397
3398
|
|
|
3398
|
-
//
|
|
3399
|
+
// TODO: remove this check in v6
|
|
3399
3400
|
if (!tip) {
|
|
3400
3401
|
return null;
|
|
3401
3402
|
}
|
|
3402
3403
|
tip.classList.remove(CLASS_NAME_FADE$2, CLASS_NAME_SHOW$2);
|
|
3403
|
-
//
|
|
3404
|
+
// TODO: v6 the following can be achieved with CSS only
|
|
3404
3405
|
tip.classList.add(`bs-${this.constructor.NAME}-auto`);
|
|
3405
3406
|
const tipId = getUID(this.constructor.NAME).toString();
|
|
3406
3407
|
tip.setAttribute('id', tipId);
|
|
@@ -3660,7 +3661,7 @@
|
|
|
3660
3661
|
|
|
3661
3662
|
/**
|
|
3662
3663
|
* --------------------------------------------------------------------------
|
|
3663
|
-
* Bootstrap
|
|
3664
|
+
* Bootstrap popover.js
|
|
3664
3665
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
3665
3666
|
* --------------------------------------------------------------------------
|
|
3666
3667
|
*/
|
|
@@ -3740,7 +3741,7 @@
|
|
|
3740
3741
|
|
|
3741
3742
|
/**
|
|
3742
3743
|
* --------------------------------------------------------------------------
|
|
3743
|
-
* Bootstrap
|
|
3744
|
+
* Bootstrap scrollspy.js
|
|
3744
3745
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
3745
3746
|
* --------------------------------------------------------------------------
|
|
3746
3747
|
*/
|
|
@@ -3999,7 +4000,7 @@
|
|
|
3999
4000
|
|
|
4000
4001
|
/**
|
|
4001
4002
|
* --------------------------------------------------------------------------
|
|
4002
|
-
* Bootstrap
|
|
4003
|
+
* Bootstrap tab.js
|
|
4003
4004
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
4004
4005
|
* --------------------------------------------------------------------------
|
|
4005
4006
|
*/
|
|
@@ -4032,7 +4033,7 @@
|
|
|
4032
4033
|
const SELECTOR_TAB_PANEL = '.list-group, .nav, [role="tablist"]';
|
|
4033
4034
|
const SELECTOR_OUTER = '.nav-item, .list-group-item';
|
|
4034
4035
|
const SELECTOR_INNER = `.nav-link${NOT_SELECTOR_DROPDOWN_TOGGLE}, .list-group-item${NOT_SELECTOR_DROPDOWN_TOGGLE}, [role="tab"]${NOT_SELECTOR_DROPDOWN_TOGGLE}`;
|
|
4035
|
-
const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]'; //
|
|
4036
|
+
const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]'; // TODO: could only be `tab` in v6
|
|
4036
4037
|
const SELECTOR_INNER_ELEM = `${SELECTOR_INNER}, ${SELECTOR_DATA_TOGGLE}`;
|
|
4037
4038
|
const SELECTOR_DATA_TOGGLE_ACTIVE = `.${CLASS_NAME_ACTIVE}[data-bs-toggle="tab"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="pill"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="list"]`;
|
|
4038
4039
|
|
|
@@ -4046,7 +4047,7 @@
|
|
|
4046
4047
|
this._parent = this._element.closest(SELECTOR_TAB_PANEL);
|
|
4047
4048
|
if (!this._parent) {
|
|
4048
4049
|
return;
|
|
4049
|
-
//
|
|
4050
|
+
// TODO: should throw exception in v6
|
|
4050
4051
|
// throw new TypeError(`${element.outerHTML} has not a valid parent ${SELECTOR_INNER_ELEM}`)
|
|
4051
4052
|
}
|
|
4052
4053
|
|
|
@@ -4178,7 +4179,7 @@
|
|
|
4178
4179
|
}
|
|
4179
4180
|
this._setAttributeIfNotExists(target, 'role', 'tabpanel');
|
|
4180
4181
|
if (child.id) {
|
|
4181
|
-
this._setAttributeIfNotExists(target, 'aria-labelledby',
|
|
4182
|
+
this._setAttributeIfNotExists(target, 'aria-labelledby', `${child.id}`);
|
|
4182
4183
|
}
|
|
4183
4184
|
}
|
|
4184
4185
|
_toggleDropDown(element, open) {
|
|
@@ -4260,7 +4261,7 @@
|
|
|
4260
4261
|
|
|
4261
4262
|
/**
|
|
4262
4263
|
* --------------------------------------------------------------------------
|
|
4263
|
-
* Bootstrap
|
|
4264
|
+
* Bootstrap toast.js
|
|
4264
4265
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
4265
4266
|
* --------------------------------------------------------------------------
|
|
4266
4267
|
*/
|
|
@@ -4443,7 +4444,7 @@
|
|
|
4443
4444
|
|
|
4444
4445
|
/**
|
|
4445
4446
|
* --------------------------------------------------------------------------
|
|
4446
|
-
* Bootstrap
|
|
4447
|
+
* Bootstrap index.umd.js
|
|
4447
4448
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
4448
4449
|
* --------------------------------------------------------------------------
|
|
4449
4450
|
*/
|