@tabler/core 1.0.0-beta17 → 1.0.0-beta18
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 +97 -38
- package/dist/css/tabler-vendors.min.css +3 -3
- package/dist/css/tabler-vendors.rtl.css +97 -38
- package/dist/css/tabler-vendors.rtl.min.css +3 -3
- package/dist/css/tabler.css +3827 -2186
- package/dist/css/tabler.min.css +7 -3
- package/dist/css/tabler.rtl.css +3827 -2187
- 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/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 +56 -41
- 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 +232 -168
- 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 +82 -93
- 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.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 +0 -16
- package/src/scss/ui/_payments.scss +1 -1
- package/src/scss/ui/_status.scss +0 -10
- package/src/scss/ui/_tables.scss +0 -15
- 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/_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) {
|
|
@@ -11,7 +11,55 @@
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* --------------------------------------------------------------------------
|
|
14
|
-
* Bootstrap
|
|
14
|
+
* Bootstrap dom/data.js
|
|
15
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
16
|
+
* --------------------------------------------------------------------------
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Constants
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
const elementMap = new Map();
|
|
24
|
+
const Data = {
|
|
25
|
+
set(element, key, instance) {
|
|
26
|
+
if (!elementMap.has(element)) {
|
|
27
|
+
elementMap.set(element, new Map());
|
|
28
|
+
}
|
|
29
|
+
const instanceMap = elementMap.get(element);
|
|
30
|
+
|
|
31
|
+
// make it clear we only want one instance per element
|
|
32
|
+
// can be removed later when multiple key/instances are fine to be used
|
|
33
|
+
if (!instanceMap.has(key) && instanceMap.size !== 0) {
|
|
34
|
+
// eslint-disable-next-line no-console
|
|
35
|
+
console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
instanceMap.set(key, instance);
|
|
39
|
+
},
|
|
40
|
+
get(element, key) {
|
|
41
|
+
if (elementMap.has(element)) {
|
|
42
|
+
return elementMap.get(element).get(key) || null;
|
|
43
|
+
}
|
|
44
|
+
return null;
|
|
45
|
+
},
|
|
46
|
+
remove(element, key) {
|
|
47
|
+
if (!elementMap.has(element)) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const instanceMap = elementMap.get(element);
|
|
51
|
+
instanceMap.delete(key);
|
|
52
|
+
|
|
53
|
+
// free up element references if there are no instances left for an element
|
|
54
|
+
if (instanceMap.size === 0) {
|
|
55
|
+
elementMap.delete(element);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* --------------------------------------------------------------------------
|
|
62
|
+
* Bootstrap util/index.js
|
|
15
63
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
16
64
|
* --------------------------------------------------------------------------
|
|
17
65
|
*/
|
|
@@ -258,7 +306,7 @@
|
|
|
258
306
|
|
|
259
307
|
/**
|
|
260
308
|
* --------------------------------------------------------------------------
|
|
261
|
-
* Bootstrap
|
|
309
|
+
* Bootstrap dom/event-handler.js
|
|
262
310
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
263
311
|
* --------------------------------------------------------------------------
|
|
264
312
|
*/
|
|
@@ -328,7 +376,7 @@
|
|
|
328
376
|
}
|
|
329
377
|
function normalizeParameters(originalTypeEvent, handler, delegationFunction) {
|
|
330
378
|
const isDelegated = typeof handler === 'string';
|
|
331
|
-
//
|
|
379
|
+
// TODO: tooltip passes `false` instead of selector, so we need to check
|
|
332
380
|
const callable = isDelegated ? delegationFunction : handler || delegationFunction;
|
|
333
381
|
let typeEvent = getTypeEvent(originalTypeEvent);
|
|
334
382
|
if (!nativeEvents.has(typeEvent)) {
|
|
@@ -445,11 +493,10 @@
|
|
|
445
493
|
nativeDispatch = !jQueryEvent.isImmediatePropagationStopped();
|
|
446
494
|
defaultPrevented = jQueryEvent.isDefaultPrevented();
|
|
447
495
|
}
|
|
448
|
-
|
|
496
|
+
const evt = hydrateObj(new Event(event, {
|
|
449
497
|
bubbles,
|
|
450
498
|
cancelable: true
|
|
451
|
-
});
|
|
452
|
-
evt = hydrateObj(evt, args);
|
|
499
|
+
}), args);
|
|
453
500
|
if (defaultPrevented) {
|
|
454
501
|
evt.preventDefault();
|
|
455
502
|
}
|
|
@@ -480,55 +527,7 @@
|
|
|
480
527
|
|
|
481
528
|
/**
|
|
482
529
|
* --------------------------------------------------------------------------
|
|
483
|
-
* Bootstrap
|
|
484
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
485
|
-
* --------------------------------------------------------------------------
|
|
486
|
-
*/
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* Constants
|
|
490
|
-
*/
|
|
491
|
-
|
|
492
|
-
const elementMap = new Map();
|
|
493
|
-
const Data = {
|
|
494
|
-
set(element, key, instance) {
|
|
495
|
-
if (!elementMap.has(element)) {
|
|
496
|
-
elementMap.set(element, new Map());
|
|
497
|
-
}
|
|
498
|
-
const instanceMap = elementMap.get(element);
|
|
499
|
-
|
|
500
|
-
// make it clear we only want one instance per element
|
|
501
|
-
// can be removed later when multiple key/instances are fine to be used
|
|
502
|
-
if (!instanceMap.has(key) && instanceMap.size !== 0) {
|
|
503
|
-
// eslint-disable-next-line no-console
|
|
504
|
-
console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`);
|
|
505
|
-
return;
|
|
506
|
-
}
|
|
507
|
-
instanceMap.set(key, instance);
|
|
508
|
-
},
|
|
509
|
-
get(element, key) {
|
|
510
|
-
if (elementMap.has(element)) {
|
|
511
|
-
return elementMap.get(element).get(key) || null;
|
|
512
|
-
}
|
|
513
|
-
return null;
|
|
514
|
-
},
|
|
515
|
-
remove(element, key) {
|
|
516
|
-
if (!elementMap.has(element)) {
|
|
517
|
-
return;
|
|
518
|
-
}
|
|
519
|
-
const instanceMap = elementMap.get(element);
|
|
520
|
-
instanceMap.delete(key);
|
|
521
|
-
|
|
522
|
-
// free up element references if there are no instances left for an element
|
|
523
|
-
if (instanceMap.size === 0) {
|
|
524
|
-
elementMap.delete(element);
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* --------------------------------------------------------------------------
|
|
531
|
-
* Bootstrap (v5.3.0-alpha1): dom/manipulator.js
|
|
530
|
+
* Bootstrap dom/manipulator.js
|
|
532
531
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
533
532
|
* --------------------------------------------------------------------------
|
|
534
533
|
*/
|
|
@@ -585,7 +584,7 @@
|
|
|
585
584
|
|
|
586
585
|
/**
|
|
587
586
|
* --------------------------------------------------------------------------
|
|
588
|
-
* Bootstrap
|
|
587
|
+
* Bootstrap util/config.js
|
|
589
588
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
590
589
|
* --------------------------------------------------------------------------
|
|
591
590
|
*/
|
|
@@ -637,7 +636,7 @@
|
|
|
637
636
|
|
|
638
637
|
/**
|
|
639
638
|
* --------------------------------------------------------------------------
|
|
640
|
-
* Bootstrap
|
|
639
|
+
* Bootstrap base-component.js
|
|
641
640
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
642
641
|
* --------------------------------------------------------------------------
|
|
643
642
|
*/
|
|
@@ -646,7 +645,7 @@
|
|
|
646
645
|
* Constants
|
|
647
646
|
*/
|
|
648
647
|
|
|
649
|
-
const VERSION = '5.3.0-
|
|
648
|
+
const VERSION = '5.3.0-alpha2';
|
|
650
649
|
|
|
651
650
|
/**
|
|
652
651
|
* Class definition
|
|
@@ -705,7 +704,7 @@
|
|
|
705
704
|
|
|
706
705
|
/**
|
|
707
706
|
* --------------------------------------------------------------------------
|
|
708
|
-
* Bootstrap
|
|
707
|
+
* Bootstrap dom/selector-engine.js
|
|
709
708
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
710
709
|
* --------------------------------------------------------------------------
|
|
711
710
|
*/
|
|
@@ -793,7 +792,7 @@
|
|
|
793
792
|
|
|
794
793
|
/**
|
|
795
794
|
* --------------------------------------------------------------------------
|
|
796
|
-
* Bootstrap
|
|
795
|
+
* Bootstrap util/component-functions.js
|
|
797
796
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
798
797
|
* --------------------------------------------------------------------------
|
|
799
798
|
*/
|
|
@@ -817,7 +816,7 @@
|
|
|
817
816
|
|
|
818
817
|
/**
|
|
819
818
|
* --------------------------------------------------------------------------
|
|
820
|
-
* Bootstrap
|
|
819
|
+
* Bootstrap alert.js
|
|
821
820
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
822
821
|
* --------------------------------------------------------------------------
|
|
823
822
|
*/
|
|
@@ -891,7 +890,7 @@
|
|
|
891
890
|
|
|
892
891
|
/**
|
|
893
892
|
* --------------------------------------------------------------------------
|
|
894
|
-
* Bootstrap
|
|
893
|
+
* Bootstrap button.js
|
|
895
894
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
896
895
|
* --------------------------------------------------------------------------
|
|
897
896
|
*/
|
|
@@ -954,7 +953,7 @@
|
|
|
954
953
|
|
|
955
954
|
/**
|
|
956
955
|
* --------------------------------------------------------------------------
|
|
957
|
-
* Bootstrap
|
|
956
|
+
* Bootstrap util/swipe.js
|
|
958
957
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
959
958
|
* --------------------------------------------------------------------------
|
|
960
959
|
*/
|
|
@@ -1073,7 +1072,7 @@
|
|
|
1073
1072
|
|
|
1074
1073
|
/**
|
|
1075
1074
|
* --------------------------------------------------------------------------
|
|
1076
|
-
* Bootstrap
|
|
1075
|
+
* Bootstrap carousel.js
|
|
1077
1076
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
1078
1077
|
* --------------------------------------------------------------------------
|
|
1079
1078
|
*/
|
|
@@ -1333,7 +1332,7 @@
|
|
|
1333
1332
|
}
|
|
1334
1333
|
if (!activeElement || !nextElement) {
|
|
1335
1334
|
// Some weirdness is happening, so we bail
|
|
1336
|
-
//
|
|
1335
|
+
// TODO: change tests that use empty divs to avoid this check
|
|
1337
1336
|
return;
|
|
1338
1337
|
}
|
|
1339
1338
|
const isCycling = Boolean(this._interval);
|
|
@@ -1445,7 +1444,7 @@
|
|
|
1445
1444
|
|
|
1446
1445
|
/**
|
|
1447
1446
|
* --------------------------------------------------------------------------
|
|
1448
|
-
* Bootstrap
|
|
1447
|
+
* Bootstrap collapse.js
|
|
1449
1448
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
1450
1449
|
* --------------------------------------------------------------------------
|
|
1451
1450
|
*/
|
|
@@ -1839,7 +1838,7 @@
|
|
|
1839
1838
|
function getUAString() {
|
|
1840
1839
|
var uaData = navigator.userAgentData;
|
|
1841
1840
|
|
|
1842
|
-
if (uaData != null && uaData.brands) {
|
|
1841
|
+
if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
|
|
1843
1842
|
return uaData.brands.map(function (item) {
|
|
1844
1843
|
return item.brand + "/" + item.version;
|
|
1845
1844
|
}).join(' ');
|
|
@@ -2158,10 +2157,9 @@
|
|
|
2158
2157
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2159
2158
|
// cleanly divide the values into the appropriate subpixels.
|
|
2160
2159
|
|
|
2161
|
-
function roundOffsetsByDPR(_ref) {
|
|
2160
|
+
function roundOffsetsByDPR(_ref, win) {
|
|
2162
2161
|
var x = _ref.x,
|
|
2163
2162
|
y = _ref.y;
|
|
2164
|
-
var win = window;
|
|
2165
2163
|
var dpr = win.devicePixelRatio || 1;
|
|
2166
2164
|
return {
|
|
2167
2165
|
x: round(x * dpr) / dpr || 0,
|
|
@@ -2244,7 +2242,7 @@
|
|
|
2244
2242
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
2245
2243
|
x: x,
|
|
2246
2244
|
y: y
|
|
2247
|
-
}) : {
|
|
2245
|
+
}, getWindow(popper)) : {
|
|
2248
2246
|
x: x,
|
|
2249
2247
|
y: y
|
|
2250
2248
|
};
|
|
@@ -3482,49 +3480,49 @@
|
|
|
3482
3480
|
|
|
3483
3481
|
const Popper = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
3484
3482
|
__proto__: null,
|
|
3485
|
-
popperGenerator,
|
|
3486
|
-
detectOverflow,
|
|
3487
|
-
createPopperBase: createPopper$2,
|
|
3488
|
-
createPopper,
|
|
3489
|
-
createPopperLite: createPopper$1,
|
|
3490
|
-
top,
|
|
3491
|
-
bottom,
|
|
3492
|
-
right,
|
|
3493
|
-
left,
|
|
3494
|
-
auto,
|
|
3495
|
-
basePlacements,
|
|
3496
|
-
start,
|
|
3497
|
-
end,
|
|
3498
|
-
clippingParents,
|
|
3499
|
-
viewport,
|
|
3500
|
-
popper,
|
|
3501
|
-
reference,
|
|
3502
|
-
variationPlacements,
|
|
3503
|
-
placements,
|
|
3504
|
-
beforeRead,
|
|
3505
|
-
read,
|
|
3506
|
-
afterRead,
|
|
3507
|
-
beforeMain,
|
|
3508
|
-
main,
|
|
3509
3483
|
afterMain,
|
|
3510
|
-
|
|
3511
|
-
write,
|
|
3484
|
+
afterRead,
|
|
3512
3485
|
afterWrite,
|
|
3513
|
-
modifierPhases,
|
|
3514
3486
|
applyStyles: applyStyles$1,
|
|
3515
3487
|
arrow: arrow$1,
|
|
3488
|
+
auto,
|
|
3489
|
+
basePlacements,
|
|
3490
|
+
beforeMain,
|
|
3491
|
+
beforeRead,
|
|
3492
|
+
beforeWrite,
|
|
3493
|
+
bottom,
|
|
3494
|
+
clippingParents,
|
|
3516
3495
|
computeStyles: computeStyles$1,
|
|
3496
|
+
createPopper,
|
|
3497
|
+
createPopperBase: createPopper$2,
|
|
3498
|
+
createPopperLite: createPopper$1,
|
|
3499
|
+
detectOverflow,
|
|
3500
|
+
end,
|
|
3517
3501
|
eventListeners,
|
|
3518
3502
|
flip: flip$1,
|
|
3519
3503
|
hide: hide$1,
|
|
3504
|
+
left,
|
|
3505
|
+
main,
|
|
3506
|
+
modifierPhases,
|
|
3520
3507
|
offset: offset$1,
|
|
3508
|
+
placements,
|
|
3509
|
+
popper,
|
|
3510
|
+
popperGenerator,
|
|
3521
3511
|
popperOffsets: popperOffsets$1,
|
|
3522
|
-
preventOverflow: preventOverflow$1
|
|
3512
|
+
preventOverflow: preventOverflow$1,
|
|
3513
|
+
read,
|
|
3514
|
+
reference,
|
|
3515
|
+
right,
|
|
3516
|
+
start,
|
|
3517
|
+
top,
|
|
3518
|
+
variationPlacements,
|
|
3519
|
+
viewport,
|
|
3520
|
+
write
|
|
3523
3521
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
3524
3522
|
|
|
3525
3523
|
/**
|
|
3526
3524
|
* --------------------------------------------------------------------------
|
|
3527
|
-
* Bootstrap
|
|
3525
|
+
* Bootstrap dropdown.js
|
|
3528
3526
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
3529
3527
|
* --------------------------------------------------------------------------
|
|
3530
3528
|
*/
|
|
@@ -3596,7 +3594,7 @@
|
|
|
3596
3594
|
super(element, config);
|
|
3597
3595
|
this._popper = null;
|
|
3598
3596
|
this._parent = this._element.parentNode; // dropdown wrapper
|
|
3599
|
-
//
|
|
3597
|
+
// TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/
|
|
3600
3598
|
this._menu = SelectorEngine.next(this._element, SELECTOR_MENU)[0] || SelectorEngine.prev(this._element, SELECTOR_MENU)[0] || SelectorEngine.findOne(SELECTOR_MENU, this._parent);
|
|
3601
3599
|
this._inNavbar = this._detectNavbar();
|
|
3602
3600
|
}
|
|
@@ -3770,7 +3768,7 @@
|
|
|
3770
3768
|
|
|
3771
3769
|
// Disable Popper if we have a static display or Dropdown is in Navbar
|
|
3772
3770
|
if (this._inNavbar || this._config.display === 'static') {
|
|
3773
|
-
Manipulator.setDataAttribute(this._menu, 'popper', 'static'); //
|
|
3771
|
+
Manipulator.setDataAttribute(this._menu, 'popper', 'static'); // TODO: v6 remove
|
|
3774
3772
|
defaultBsPopperConfig.modifiers = [{
|
|
3775
3773
|
name: 'applyStyles',
|
|
3776
3774
|
enabled: false
|
|
@@ -3852,7 +3850,7 @@
|
|
|
3852
3850
|
}
|
|
3853
3851
|
event.preventDefault();
|
|
3854
3852
|
|
|
3855
|
-
//
|
|
3853
|
+
// TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/
|
|
3856
3854
|
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);
|
|
3857
3855
|
const instance = Dropdown.getOrCreateInstance(getToggleButton);
|
|
3858
3856
|
if (isUpOrDownEvent) {
|
|
@@ -3891,104 +3889,7 @@
|
|
|
3891
3889
|
|
|
3892
3890
|
/**
|
|
3893
3891
|
* --------------------------------------------------------------------------
|
|
3894
|
-
* Bootstrap
|
|
3895
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
3896
|
-
* --------------------------------------------------------------------------
|
|
3897
|
-
*/
|
|
3898
|
-
|
|
3899
|
-
/**
|
|
3900
|
-
* Constants
|
|
3901
|
-
*/
|
|
3902
|
-
|
|
3903
|
-
const SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
|
|
3904
|
-
const SELECTOR_STICKY_CONTENT = '.sticky-top';
|
|
3905
|
-
const PROPERTY_PADDING = 'padding-right';
|
|
3906
|
-
const PROPERTY_MARGIN = 'margin-right';
|
|
3907
|
-
|
|
3908
|
-
/**
|
|
3909
|
-
* Class definition
|
|
3910
|
-
*/
|
|
3911
|
-
|
|
3912
|
-
class ScrollBarHelper {
|
|
3913
|
-
constructor() {
|
|
3914
|
-
this._element = document.body;
|
|
3915
|
-
}
|
|
3916
|
-
|
|
3917
|
-
// Public
|
|
3918
|
-
getWidth() {
|
|
3919
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
|
|
3920
|
-
const documentWidth = document.documentElement.clientWidth;
|
|
3921
|
-
return Math.abs(window.innerWidth - documentWidth);
|
|
3922
|
-
}
|
|
3923
|
-
hide() {
|
|
3924
|
-
const width = this.getWidth();
|
|
3925
|
-
this._disableOverFlow();
|
|
3926
|
-
// give padding to element to balance the hidden scrollbar width
|
|
3927
|
-
this._setElementAttributes(this._element, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
|
|
3928
|
-
// trick: We adjust positive paddingRight and negative marginRight to sticky-top elements to keep showing fullwidth
|
|
3929
|
-
this._setElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
|
|
3930
|
-
this._setElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN, calculatedValue => calculatedValue - width);
|
|
3931
|
-
}
|
|
3932
|
-
reset() {
|
|
3933
|
-
this._resetElementAttributes(this._element, 'overflow');
|
|
3934
|
-
this._resetElementAttributes(this._element, PROPERTY_PADDING);
|
|
3935
|
-
this._resetElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING);
|
|
3936
|
-
this._resetElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN);
|
|
3937
|
-
}
|
|
3938
|
-
isOverflowing() {
|
|
3939
|
-
return this.getWidth() > 0;
|
|
3940
|
-
}
|
|
3941
|
-
|
|
3942
|
-
// Private
|
|
3943
|
-
_disableOverFlow() {
|
|
3944
|
-
this._saveInitialAttribute(this._element, 'overflow');
|
|
3945
|
-
this._element.style.overflow = 'hidden';
|
|
3946
|
-
}
|
|
3947
|
-
_setElementAttributes(selector, styleProperty, callback) {
|
|
3948
|
-
const scrollbarWidth = this.getWidth();
|
|
3949
|
-
const manipulationCallBack = element => {
|
|
3950
|
-
if (element !== this._element && window.innerWidth > element.clientWidth + scrollbarWidth) {
|
|
3951
|
-
return;
|
|
3952
|
-
}
|
|
3953
|
-
this._saveInitialAttribute(element, styleProperty);
|
|
3954
|
-
const calculatedValue = window.getComputedStyle(element).getPropertyValue(styleProperty);
|
|
3955
|
-
element.style.setProperty(styleProperty, `${callback(Number.parseFloat(calculatedValue))}px`);
|
|
3956
|
-
};
|
|
3957
|
-
this._applyManipulationCallback(selector, manipulationCallBack);
|
|
3958
|
-
}
|
|
3959
|
-
_saveInitialAttribute(element, styleProperty) {
|
|
3960
|
-
const actualValue = element.style.getPropertyValue(styleProperty);
|
|
3961
|
-
if (actualValue) {
|
|
3962
|
-
Manipulator.setDataAttribute(element, styleProperty, actualValue);
|
|
3963
|
-
}
|
|
3964
|
-
}
|
|
3965
|
-
_resetElementAttributes(selector, styleProperty) {
|
|
3966
|
-
const manipulationCallBack = element => {
|
|
3967
|
-
const value = Manipulator.getDataAttribute(element, styleProperty);
|
|
3968
|
-
// We only want to remove the property if the value is `null`; the value can also be zero
|
|
3969
|
-
if (value === null) {
|
|
3970
|
-
element.style.removeProperty(styleProperty);
|
|
3971
|
-
return;
|
|
3972
|
-
}
|
|
3973
|
-
Manipulator.removeDataAttribute(element, styleProperty);
|
|
3974
|
-
element.style.setProperty(styleProperty, value);
|
|
3975
|
-
};
|
|
3976
|
-
this._applyManipulationCallback(selector, manipulationCallBack);
|
|
3977
|
-
}
|
|
3978
|
-
_applyManipulationCallback(selector, callBack) {
|
|
3979
|
-
if (isElement$1(selector)) {
|
|
3980
|
-
callBack(selector);
|
|
3981
|
-
return;
|
|
3982
|
-
}
|
|
3983
|
-
for (const sel of SelectorEngine.find(selector, this._element)) {
|
|
3984
|
-
callBack(sel);
|
|
3985
|
-
}
|
|
3986
|
-
}
|
|
3987
|
-
}
|
|
3988
|
-
|
|
3989
|
-
/**
|
|
3990
|
-
* --------------------------------------------------------------------------
|
|
3991
|
-
* Bootstrap (v5.3.0-alpha1): util/backdrop.js
|
|
3892
|
+
* Bootstrap util/backdrop.js
|
|
3992
3893
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
3993
3894
|
* --------------------------------------------------------------------------
|
|
3994
3895
|
*/
|
|
@@ -4112,7 +4013,7 @@
|
|
|
4112
4013
|
|
|
4113
4014
|
/**
|
|
4114
4015
|
* --------------------------------------------------------------------------
|
|
4115
|
-
* Bootstrap
|
|
4016
|
+
* Bootstrap util/focustrap.js
|
|
4116
4017
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
4117
4018
|
* --------------------------------------------------------------------------
|
|
4118
4019
|
*/
|
|
@@ -4210,7 +4111,104 @@
|
|
|
4210
4111
|
|
|
4211
4112
|
/**
|
|
4212
4113
|
* --------------------------------------------------------------------------
|
|
4213
|
-
* Bootstrap
|
|
4114
|
+
* Bootstrap util/scrollBar.js
|
|
4115
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
4116
|
+
* --------------------------------------------------------------------------
|
|
4117
|
+
*/
|
|
4118
|
+
|
|
4119
|
+
/**
|
|
4120
|
+
* Constants
|
|
4121
|
+
*/
|
|
4122
|
+
|
|
4123
|
+
const SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
|
|
4124
|
+
const SELECTOR_STICKY_CONTENT = '.sticky-top';
|
|
4125
|
+
const PROPERTY_PADDING = 'padding-right';
|
|
4126
|
+
const PROPERTY_MARGIN = 'margin-right';
|
|
4127
|
+
|
|
4128
|
+
/**
|
|
4129
|
+
* Class definition
|
|
4130
|
+
*/
|
|
4131
|
+
|
|
4132
|
+
class ScrollBarHelper {
|
|
4133
|
+
constructor() {
|
|
4134
|
+
this._element = document.body;
|
|
4135
|
+
}
|
|
4136
|
+
|
|
4137
|
+
// Public
|
|
4138
|
+
getWidth() {
|
|
4139
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
|
|
4140
|
+
const documentWidth = document.documentElement.clientWidth;
|
|
4141
|
+
return Math.abs(window.innerWidth - documentWidth);
|
|
4142
|
+
}
|
|
4143
|
+
hide() {
|
|
4144
|
+
const width = this.getWidth();
|
|
4145
|
+
this._disableOverFlow();
|
|
4146
|
+
// give padding to element to balance the hidden scrollbar width
|
|
4147
|
+
this._setElementAttributes(this._element, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
|
|
4148
|
+
// trick: We adjust positive paddingRight and negative marginRight to sticky-top elements to keep showing fullwidth
|
|
4149
|
+
this._setElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
|
|
4150
|
+
this._setElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN, calculatedValue => calculatedValue - width);
|
|
4151
|
+
}
|
|
4152
|
+
reset() {
|
|
4153
|
+
this._resetElementAttributes(this._element, 'overflow');
|
|
4154
|
+
this._resetElementAttributes(this._element, PROPERTY_PADDING);
|
|
4155
|
+
this._resetElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING);
|
|
4156
|
+
this._resetElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN);
|
|
4157
|
+
}
|
|
4158
|
+
isOverflowing() {
|
|
4159
|
+
return this.getWidth() > 0;
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4162
|
+
// Private
|
|
4163
|
+
_disableOverFlow() {
|
|
4164
|
+
this._saveInitialAttribute(this._element, 'overflow');
|
|
4165
|
+
this._element.style.overflow = 'hidden';
|
|
4166
|
+
}
|
|
4167
|
+
_setElementAttributes(selector, styleProperty, callback) {
|
|
4168
|
+
const scrollbarWidth = this.getWidth();
|
|
4169
|
+
const manipulationCallBack = element => {
|
|
4170
|
+
if (element !== this._element && window.innerWidth > element.clientWidth + scrollbarWidth) {
|
|
4171
|
+
return;
|
|
4172
|
+
}
|
|
4173
|
+
this._saveInitialAttribute(element, styleProperty);
|
|
4174
|
+
const calculatedValue = window.getComputedStyle(element).getPropertyValue(styleProperty);
|
|
4175
|
+
element.style.setProperty(styleProperty, `${callback(Number.parseFloat(calculatedValue))}px`);
|
|
4176
|
+
};
|
|
4177
|
+
this._applyManipulationCallback(selector, manipulationCallBack);
|
|
4178
|
+
}
|
|
4179
|
+
_saveInitialAttribute(element, styleProperty) {
|
|
4180
|
+
const actualValue = element.style.getPropertyValue(styleProperty);
|
|
4181
|
+
if (actualValue) {
|
|
4182
|
+
Manipulator.setDataAttribute(element, styleProperty, actualValue);
|
|
4183
|
+
}
|
|
4184
|
+
}
|
|
4185
|
+
_resetElementAttributes(selector, styleProperty) {
|
|
4186
|
+
const manipulationCallBack = element => {
|
|
4187
|
+
const value = Manipulator.getDataAttribute(element, styleProperty);
|
|
4188
|
+
// We only want to remove the property if the value is `null`; the value can also be zero
|
|
4189
|
+
if (value === null) {
|
|
4190
|
+
element.style.removeProperty(styleProperty);
|
|
4191
|
+
return;
|
|
4192
|
+
}
|
|
4193
|
+
Manipulator.removeDataAttribute(element, styleProperty);
|
|
4194
|
+
element.style.setProperty(styleProperty, value);
|
|
4195
|
+
};
|
|
4196
|
+
this._applyManipulationCallback(selector, manipulationCallBack);
|
|
4197
|
+
}
|
|
4198
|
+
_applyManipulationCallback(selector, callBack) {
|
|
4199
|
+
if (isElement$1(selector)) {
|
|
4200
|
+
callBack(selector);
|
|
4201
|
+
return;
|
|
4202
|
+
}
|
|
4203
|
+
for (const sel of SelectorEngine.find(selector, this._element)) {
|
|
4204
|
+
callBack(sel);
|
|
4205
|
+
}
|
|
4206
|
+
}
|
|
4207
|
+
}
|
|
4208
|
+
|
|
4209
|
+
/**
|
|
4210
|
+
* --------------------------------------------------------------------------
|
|
4211
|
+
* Bootstrap modal.js
|
|
4214
4212
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
4215
4213
|
* --------------------------------------------------------------------------
|
|
4216
4214
|
*/
|
|
@@ -4316,9 +4314,8 @@
|
|
|
4316
4314
|
this._queueCallback(() => this._hideModal(), this._element, this._isAnimated());
|
|
4317
4315
|
}
|
|
4318
4316
|
dispose() {
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
}
|
|
4317
|
+
EventHandler.off(window, EVENT_KEY$4);
|
|
4318
|
+
EventHandler.off(this._dialog, EVENT_KEY$4);
|
|
4322
4319
|
this._backdrop.dispose();
|
|
4323
4320
|
this._focustrap.deactivate();
|
|
4324
4321
|
super.dispose();
|
|
@@ -4373,7 +4370,6 @@
|
|
|
4373
4370
|
return;
|
|
4374
4371
|
}
|
|
4375
4372
|
if (this._config.keyboard) {
|
|
4376
|
-
event.preventDefault();
|
|
4377
4373
|
this.hide();
|
|
4378
4374
|
return;
|
|
4379
4375
|
}
|
|
@@ -4516,7 +4512,7 @@
|
|
|
4516
4512
|
|
|
4517
4513
|
/**
|
|
4518
4514
|
* --------------------------------------------------------------------------
|
|
4519
|
-
* Bootstrap
|
|
4515
|
+
* Bootstrap offcanvas.js
|
|
4520
4516
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
4521
4517
|
* --------------------------------------------------------------------------
|
|
4522
4518
|
*/
|
|
@@ -4674,11 +4670,11 @@
|
|
|
4674
4670
|
if (event.key !== ESCAPE_KEY) {
|
|
4675
4671
|
return;
|
|
4676
4672
|
}
|
|
4677
|
-
if (
|
|
4678
|
-
|
|
4673
|
+
if (this._config.keyboard) {
|
|
4674
|
+
this.hide();
|
|
4679
4675
|
return;
|
|
4680
4676
|
}
|
|
4681
|
-
this.
|
|
4677
|
+
EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);
|
|
4682
4678
|
});
|
|
4683
4679
|
}
|
|
4684
4680
|
|
|
@@ -4746,13 +4742,12 @@
|
|
|
4746
4742
|
|
|
4747
4743
|
/**
|
|
4748
4744
|
* --------------------------------------------------------------------------
|
|
4749
|
-
* Bootstrap
|
|
4745
|
+
* Bootstrap util/sanitizer.js
|
|
4750
4746
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
4751
4747
|
* --------------------------------------------------------------------------
|
|
4752
4748
|
*/
|
|
4753
4749
|
|
|
4754
4750
|
const uriAttributes = new Set(['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']);
|
|
4755
|
-
const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
|
|
4756
4751
|
|
|
4757
4752
|
/**
|
|
4758
4753
|
* A pattern that recognizes a commonly useful subset of URLs that are safe.
|
|
@@ -4779,6 +4774,9 @@
|
|
|
4779
4774
|
// Check if a regular expression validates the attribute.
|
|
4780
4775
|
return allowedAttributeList.filter(attributeRegex => attributeRegex instanceof RegExp).some(regex => regex.test(attributeName));
|
|
4781
4776
|
};
|
|
4777
|
+
|
|
4778
|
+
// js-docs-start allow-list
|
|
4779
|
+
const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
|
|
4782
4780
|
const DefaultAllowlist = {
|
|
4783
4781
|
// Global attributes allowed on any supplied element below.
|
|
4784
4782
|
'*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],
|
|
@@ -4812,6 +4810,8 @@
|
|
|
4812
4810
|
u: [],
|
|
4813
4811
|
ul: []
|
|
4814
4812
|
};
|
|
4813
|
+
// js-docs-end allow-list
|
|
4814
|
+
|
|
4815
4815
|
function sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {
|
|
4816
4816
|
if (!unsafeHtml.length) {
|
|
4817
4817
|
return unsafeHtml;
|
|
@@ -4841,7 +4841,7 @@
|
|
|
4841
4841
|
|
|
4842
4842
|
/**
|
|
4843
4843
|
* --------------------------------------------------------------------------
|
|
4844
|
-
* Bootstrap
|
|
4844
|
+
* Bootstrap util/template-factory.js
|
|
4845
4845
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
4846
4846
|
* --------------------------------------------------------------------------
|
|
4847
4847
|
*/
|
|
@@ -4976,7 +4976,7 @@
|
|
|
4976
4976
|
|
|
4977
4977
|
/**
|
|
4978
4978
|
* --------------------------------------------------------------------------
|
|
4979
|
-
* Bootstrap
|
|
4979
|
+
* Bootstrap tooltip.js
|
|
4980
4980
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
4981
4981
|
* --------------------------------------------------------------------------
|
|
4982
4982
|
*/
|
|
@@ -5023,7 +5023,7 @@
|
|
|
5023
5023
|
delay: 0,
|
|
5024
5024
|
fallbackPlacements: ['top', 'right', 'bottom', 'left'],
|
|
5025
5025
|
html: false,
|
|
5026
|
-
offset: [0,
|
|
5026
|
+
offset: [0, 6],
|
|
5027
5027
|
placement: 'top',
|
|
5028
5028
|
popperConfig: null,
|
|
5029
5029
|
sanitize: true,
|
|
@@ -5136,7 +5136,7 @@
|
|
|
5136
5136
|
return;
|
|
5137
5137
|
}
|
|
5138
5138
|
|
|
5139
|
-
//
|
|
5139
|
+
// TODO: v6 remove this or make it optional
|
|
5140
5140
|
this._disposePopper();
|
|
5141
5141
|
const tip = this._getTipElement();
|
|
5142
5142
|
this._element.setAttribute('aria-describedby', tip.getAttribute('id'));
|
|
@@ -5222,12 +5222,12 @@
|
|
|
5222
5222
|
_createTipElement(content) {
|
|
5223
5223
|
const tip = this._getTemplateFactory(content).toHtml();
|
|
5224
5224
|
|
|
5225
|
-
//
|
|
5225
|
+
// TODO: remove this check in v6
|
|
5226
5226
|
if (!tip) {
|
|
5227
5227
|
return null;
|
|
5228
5228
|
}
|
|
5229
5229
|
tip.classList.remove(CLASS_NAME_FADE$2, CLASS_NAME_SHOW$2);
|
|
5230
|
-
//
|
|
5230
|
+
// TODO: v6 the following can be achieved with CSS only
|
|
5231
5231
|
tip.classList.add(`bs-${this.constructor.NAME}-auto`);
|
|
5232
5232
|
const tipId = getUID(this.constructor.NAME).toString();
|
|
5233
5233
|
tip.setAttribute('id', tipId);
|
|
@@ -5487,7 +5487,7 @@
|
|
|
5487
5487
|
|
|
5488
5488
|
/**
|
|
5489
5489
|
* --------------------------------------------------------------------------
|
|
5490
|
-
* Bootstrap
|
|
5490
|
+
* Bootstrap popover.js
|
|
5491
5491
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
5492
5492
|
* --------------------------------------------------------------------------
|
|
5493
5493
|
*/
|
|
@@ -5567,7 +5567,7 @@
|
|
|
5567
5567
|
|
|
5568
5568
|
/**
|
|
5569
5569
|
* --------------------------------------------------------------------------
|
|
5570
|
-
* Bootstrap
|
|
5570
|
+
* Bootstrap scrollspy.js
|
|
5571
5571
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
5572
5572
|
* --------------------------------------------------------------------------
|
|
5573
5573
|
*/
|
|
@@ -5826,7 +5826,7 @@
|
|
|
5826
5826
|
|
|
5827
5827
|
/**
|
|
5828
5828
|
* --------------------------------------------------------------------------
|
|
5829
|
-
* Bootstrap
|
|
5829
|
+
* Bootstrap tab.js
|
|
5830
5830
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
5831
5831
|
* --------------------------------------------------------------------------
|
|
5832
5832
|
*/
|
|
@@ -5859,7 +5859,7 @@
|
|
|
5859
5859
|
const SELECTOR_TAB_PANEL = '.list-group, .nav, [role="tablist"]';
|
|
5860
5860
|
const SELECTOR_OUTER = '.nav-item, .list-group-item';
|
|
5861
5861
|
const SELECTOR_INNER = `.nav-link${NOT_SELECTOR_DROPDOWN_TOGGLE}, .list-group-item${NOT_SELECTOR_DROPDOWN_TOGGLE}, [role="tab"]${NOT_SELECTOR_DROPDOWN_TOGGLE}`;
|
|
5862
|
-
const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]'; //
|
|
5862
|
+
const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]'; // TODO: could only be `tab` in v6
|
|
5863
5863
|
const SELECTOR_INNER_ELEM = `${SELECTOR_INNER}, ${SELECTOR_DATA_TOGGLE}`;
|
|
5864
5864
|
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"]`;
|
|
5865
5865
|
|
|
@@ -5873,7 +5873,7 @@
|
|
|
5873
5873
|
this._parent = this._element.closest(SELECTOR_TAB_PANEL);
|
|
5874
5874
|
if (!this._parent) {
|
|
5875
5875
|
return;
|
|
5876
|
-
//
|
|
5876
|
+
// TODO: should throw exception in v6
|
|
5877
5877
|
// throw new TypeError(`${element.outerHTML} has not a valid parent ${SELECTOR_INNER_ELEM}`)
|
|
5878
5878
|
}
|
|
5879
5879
|
|
|
@@ -6005,7 +6005,7 @@
|
|
|
6005
6005
|
}
|
|
6006
6006
|
this._setAttributeIfNotExists(target, 'role', 'tabpanel');
|
|
6007
6007
|
if (child.id) {
|
|
6008
|
-
this._setAttributeIfNotExists(target, 'aria-labelledby',
|
|
6008
|
+
this._setAttributeIfNotExists(target, 'aria-labelledby', `${child.id}`);
|
|
6009
6009
|
}
|
|
6010
6010
|
}
|
|
6011
6011
|
_toggleDropDown(element, open) {
|
|
@@ -6087,7 +6087,7 @@
|
|
|
6087
6087
|
|
|
6088
6088
|
/**
|
|
6089
6089
|
* --------------------------------------------------------------------------
|
|
6090
|
-
* Bootstrap
|
|
6090
|
+
* Bootstrap toast.js
|
|
6091
6091
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
6092
6092
|
* --------------------------------------------------------------------------
|
|
6093
6093
|
*/
|
|
@@ -6270,7 +6270,7 @@
|
|
|
6270
6270
|
|
|
6271
6271
|
/**
|
|
6272
6272
|
* --------------------------------------------------------------------------
|
|
6273
|
-
* Bootstrap
|
|
6273
|
+
* Bootstrap index.umd.js
|
|
6274
6274
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
6275
6275
|
* --------------------------------------------------------------------------
|
|
6276
6276
|
*/
|