Compare commits
667 commits
feat/data-
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d8bc95c92 | ||
|
|
63880e0e8c | ||
|
|
8c1444f00a | ||
|
|
949fa30152 | ||
|
|
f7d3870567 | ||
|
|
157a27d43d | ||
|
|
1b46601ce8 | ||
|
|
80c0d4deab | ||
|
|
f95004f654 | ||
|
|
c9cd741aff | ||
|
|
e34481b6eb | ||
|
|
d21fb9b627 | ||
|
|
20a9d491a2 | ||
|
|
041de9d5ed | ||
|
|
1cdbf532af | ||
|
|
82e5fe2d8c | ||
|
|
cad88abdb0 | ||
|
|
05249c8c04 | ||
|
|
408b2558dc | ||
|
|
f43133ac41 | ||
|
|
ed5ddca5ba | ||
|
|
69afafe811 | ||
|
|
bf1e913f05 | ||
|
|
0bcaa068f2 | ||
|
|
78c5b503f9 | ||
|
|
d62d18f172 | ||
|
|
a2ae2c364f | ||
|
|
7e6d7b8f81 | ||
|
|
ee8546da18 | ||
|
|
3b773e4265 | ||
|
|
80557b3ac0 | ||
|
|
70175db429 | ||
|
|
d9adaae5b0 | ||
|
|
480e7e61b6 | ||
|
|
f2c504397e | ||
|
|
cefdcf6954 | ||
|
|
417372677f | ||
|
|
fee72a1dbc | ||
|
|
dbd53b8475 | ||
|
|
3c934ddcef | ||
|
|
e635a49536 | ||
|
|
acec356c81 | ||
|
|
d1a62b47c3 | ||
|
|
88d35b725b | ||
|
|
eb45005047 | ||
|
|
265605bba0 | ||
|
|
dfe1b156d1 | ||
|
|
fd48a8732f | ||
|
|
97a3ef357d | ||
|
|
baa8d3702f | ||
|
|
e1e6f5684e | ||
|
|
d5b6971814 | ||
|
|
8f33f7865d | ||
|
|
1bfe4780d4 | ||
|
|
e27bd176bf | ||
|
|
fdd76d6d0c | ||
|
|
c6240401f5 | ||
|
|
ae3fa0e679 | ||
|
|
5672401b15 | ||
|
|
9d95e11eda | ||
|
|
99b3470e82 | ||
|
|
b05145c951 | ||
|
|
122b2bdd48 | ||
|
|
0fc072649e | ||
|
|
93a4c0fbf7 | ||
|
|
a48a29a7a5 | ||
|
|
bcf69163cd | ||
|
|
8e426a32bc | ||
|
|
f50b867be8 | ||
|
|
c1197ad37f | ||
|
|
9b7bb7b568 | ||
|
|
59cd71631e | ||
|
|
2d46e47464 | ||
|
|
44667d89fa | ||
|
|
86802f701c | ||
|
|
e468917731 | ||
|
|
d140f50b35 | ||
|
|
561c0d8cde | ||
|
|
58ab1c2cd5 | ||
|
|
66f323af70 | ||
|
|
517446069a | ||
|
|
f07106e604 | ||
|
|
ef0bc661cf | ||
|
|
df763d6457 | ||
|
|
8984255158 | ||
|
|
b424650ab5 | ||
|
|
f12657b39f | ||
|
|
29e4eb91c1 | ||
|
|
269efc8dc9 | ||
|
|
4e7c9e56fc | ||
|
|
cc3a5cf79a | ||
|
|
65f1bf027a | ||
|
|
479043f255 | ||
|
|
0c195f690a | ||
|
|
c2f67d72e8 | ||
|
|
eae52b1cb0 | ||
|
|
9b6c815148 | ||
|
|
e8d14b302e | ||
|
|
c3e8a0ef2a | ||
|
|
e1f561b53c | ||
|
|
e2324731de | ||
|
|
a3ead0786a | ||
|
|
042a4a255f | ||
|
|
793c79d14b | ||
|
|
25326a0114 | ||
|
|
a60d8c0d58 | ||
|
|
071f914fa1 | ||
|
|
a31ea592d6 | ||
|
|
fe3658672c | ||
|
|
ebce95dc60 | ||
|
|
b85ca045e0 | ||
|
|
e967ecf900 | ||
|
|
f2b39d620c | ||
|
|
78389b2acf | ||
|
|
b2477cc70c | ||
|
|
764e5298de | ||
|
|
93ab072027 | ||
|
|
62eb5a3232 | ||
|
|
81042ff467 | ||
|
|
d154f0df7f | ||
|
|
d28d74f58c | ||
|
|
e534aa2b9f | ||
|
|
f2169e6dc3 | ||
|
|
4535b09c46 | ||
|
|
1edec546cb | ||
|
|
7e47b7ecc9 | ||
|
|
c34385eb01 | ||
|
|
4341c34261 | ||
|
|
ecb38f6ac2 | ||
|
|
6f0545b61b | ||
|
|
c75a56d550 | ||
|
|
9651ebf3c7 | ||
|
|
6f9c38f65e | ||
|
|
8fed098ef9 | ||
|
|
aa2df26b55 | ||
|
|
f132400865 | ||
|
|
0f12f58711 | ||
|
|
0ca5addea4 | ||
|
|
41bc0e26d2 | ||
|
|
77771cdf00 | ||
|
|
290b295173 | ||
|
|
d29680b3cb | ||
|
|
b1290ff189 | ||
|
|
a4d9bc0431 | ||
|
|
f8b5faff45 | ||
|
|
d3946e7646 | ||
|
|
85208ae557 | ||
|
|
07b60d2c3e | ||
|
|
d15a0247ce | ||
|
|
33b275c04b | ||
|
|
5538ffb292 | ||
|
|
ab49e362a7 | ||
|
|
63f3d939ea | ||
|
|
bc4272531b | ||
|
|
8dc85c657e | ||
|
|
9312442338 | ||
|
|
6a27618d21 | ||
|
|
4eea630d16 | ||
|
|
d8f247392d | ||
|
|
4447157446 | ||
|
|
861227887e | ||
|
|
87e56de066 | ||
|
|
adec91e8fc | ||
|
|
6c32de8711 | ||
|
|
adfdf7160b | ||
|
|
5f89ea3a0f | ||
|
|
6c069b6976 | ||
|
|
5b0dcf8ffe | ||
|
|
1f2e600304 | ||
|
|
321ee7a1ad | ||
|
|
85acd96e31 | ||
|
|
0a141dae94 | ||
|
|
53d861c814 | ||
|
|
082723f3f4 | ||
|
|
153f6c72ce | ||
|
|
3ef8483c5d | ||
|
|
eb618393e3 | ||
|
|
edfa103444 | ||
|
|
aaff11a0b3 | ||
|
|
9488978fb5 | ||
|
|
71ecc3323f | ||
|
|
cfe31592d7 | ||
|
|
cfd00b5eeb | ||
|
|
bb369ca813 | ||
|
|
9a4692d4e3 | ||
|
|
701c6c6e77 | ||
|
|
f05d64225d | ||
|
|
bf3c4d0b68 | ||
|
|
5e3219a9bb | ||
|
|
08eb92204e | ||
|
|
3b015ed34e | ||
|
|
ff130b17dc | ||
|
|
c27ff64c96 | ||
|
|
f08cef3cf4 | ||
|
|
5954cc11c4 | ||
|
|
c800bb0a13 | ||
|
|
f75e471f00 | ||
|
|
819ab1f21d | ||
|
|
efc95a804e | ||
|
|
a37afee738 | ||
|
|
78474bfa15 | ||
|
|
83e0a888bd | ||
|
|
c3689ac073 | ||
|
|
03ed3e0b3b | ||
|
|
dd992c7226 | ||
|
|
adc857f617 | ||
|
|
b0372bb658 | ||
|
|
af57444405 | ||
|
|
ff25a75320 | ||
|
|
948f834347 | ||
|
|
04674f88b0 | ||
|
|
4999c3dbbc | ||
|
|
f6a8733741 | ||
|
|
9eb9d02084 | ||
|
|
51a208f119 | ||
|
|
9f6b342dc7 | ||
|
|
c63aebc86b | ||
|
|
81ac002a02 | ||
|
|
c348ad4a94 | ||
|
|
d61f506a5f | ||
|
|
7ff881c532 | ||
|
|
d8ff27721b | ||
|
|
767db7b746 | ||
|
|
7c7f08b5e0 | ||
|
|
8f8787725b | ||
|
|
fdc40f5053 | ||
|
|
ee2bcdec3d | ||
|
|
3e823e0b75 | ||
|
|
21737ed530 | ||
|
|
d365831bce | ||
|
|
f4457bca02 | ||
|
|
358c36d4b5 | ||
|
|
0839cbf04d | ||
|
|
2630b05eb3 | ||
|
|
a96b118f04 | ||
|
|
6637154beb | ||
|
|
50d8921670 | ||
|
|
3fcfd606f2 | ||
|
|
6b071116f3 | ||
|
|
268da84f16 | ||
|
|
2185803964 | ||
|
|
8f3c8a922a | ||
|
|
65d6c8a731 | ||
|
|
64a864075c | ||
|
|
7fec0ec3d7 | ||
|
|
ecbc7189b6 | ||
|
|
5501df0c29 | ||
|
|
5ec6400bd0 | ||
|
|
de8dbd72d8 | ||
|
|
39b9879aa2 | ||
|
|
2d4f1b272c | ||
|
|
2b0b3091a0 | ||
|
|
1955ffc01e | ||
|
|
5cda50e5bd | ||
|
|
9f211231b0 | ||
|
|
bec6eef971 | ||
|
|
4c9597ef7e | ||
|
|
933b6510ca | ||
|
|
ff405475a2 | ||
|
|
2746df251a | ||
|
|
0d6c89de95 | ||
|
|
60c79b28aa | ||
|
|
b5a64ce60f | ||
|
|
6316565fa9 | ||
|
|
12f510861b | ||
|
|
eaf616c653 | ||
|
|
53ec604eb1 | ||
|
|
6d7bc54d22 | ||
|
|
2e758f64cf | ||
|
|
b9f7668cf6 | ||
|
|
470e99ed5f | ||
|
|
44fef1677b | ||
|
|
4f8b243ac1 | ||
|
|
f39666b61c | ||
|
|
e530118117 | ||
|
|
a7f04e9595 | ||
|
|
b38110aa7d | ||
|
|
ccee9d5de7 | ||
|
|
418f17ee2b | ||
|
|
fe961c192d | ||
|
|
1fddb48aff | ||
|
|
55f2192a39 | ||
|
|
483b6413e9 | ||
|
|
5d14d41531 | ||
|
|
d5b405ea9a | ||
|
|
8a54cf598a | ||
|
|
7d64031c87 | ||
|
|
384eccbfaf | ||
|
|
7ad8967367 | ||
|
|
3612a1e463 | ||
|
|
bc4da38c8b | ||
|
|
bdf534df59 | ||
|
|
2ab98a43f0 | ||
|
|
b316e38d6a | ||
|
|
df6eb9335b | ||
|
|
1569575860 | ||
|
|
3576edd75a | ||
|
|
b777d8c0f0 | ||
|
|
d4c3dc5351 | ||
|
|
411fc649f2 | ||
|
|
1d86fcee7b | ||
|
|
e347441f88 | ||
|
|
f091c0d1e0 | ||
|
|
c0d1ed57a3 | ||
|
|
fb3a57b7ba | ||
|
|
5bd7aa365c | ||
|
|
649e525c62 | ||
|
|
67847b0aab | ||
|
|
4ed742e4db | ||
|
|
270f7be9d2 | ||
|
|
afd5eea2a7 | ||
|
|
95df642ac9 | ||
|
|
bb6daab961 | ||
|
|
82ac087c4d | ||
|
|
4c1f807142 | ||
|
|
d6a72c4e1b | ||
|
|
3df4dd15e4 | ||
|
|
6a37612540 | ||
|
|
f20335b6c1 | ||
|
|
82f2416132 | ||
|
|
c1bb1acf54 | ||
|
|
09a09387f4 | ||
|
|
f989f8fb3a | ||
|
|
13572a6867 | ||
|
|
e8f1709adf | ||
|
|
0766a09605 | ||
|
|
5e270a13d1 | ||
|
|
3b985977c9 | ||
|
|
366b841f4f | ||
|
|
230a41f1d7 | ||
|
|
b864973a94 | ||
|
|
ccac6a6219 | ||
|
|
3b64580949 | ||
|
|
6682bba82d | ||
|
|
c9f8fa45fb | ||
|
|
e2697b0573 | ||
|
|
71010cb1e9 | ||
|
|
e0b8fcdf89 | ||
|
|
59692ce862 | ||
|
|
421e2482e2 | ||
|
|
c21506d499 | ||
|
|
3a5f9f5cf0 | ||
|
|
cb45642918 | ||
|
|
6fea79b67c | ||
|
|
e6f8428b28 | ||
|
|
d1dcc1e5e6 | ||
|
|
4d1ee3b0a7 | ||
|
|
831fbd271f | ||
|
|
b63066d630 | ||
|
|
9cedf5b81e | ||
|
|
241f910dc5 | ||
|
|
a108e2bbf8 | ||
|
|
6fc35e3231 | ||
|
|
ec05adee6d | ||
|
|
87b367bdcf | ||
|
|
c196d21e7f | ||
|
|
a6156ede32 | ||
|
|
e993ca76e0 | ||
|
|
5076170d76 | ||
|
|
370e9ab19e | ||
|
|
c749da0b9f | ||
|
|
c31aef49d9 | ||
|
|
94d7f6e5a9 | ||
|
|
ed1d867dd8 | ||
|
|
2bd5ba147b | ||
|
|
b1c7d1d3a3 | ||
|
|
b2be299f63 | ||
|
|
f236667483 | ||
|
|
3e2f9ab237 | ||
|
|
582f52e9e1 | ||
|
|
1baa73591b | ||
|
|
21daef7216 | ||
|
|
089dca2330 | ||
|
|
310fe17657 | ||
|
|
899e573794 | ||
|
|
642f40db25 | ||
|
|
0a61269da8 | ||
|
|
e5fa708491 | ||
|
|
6df0cfecd1 | ||
|
|
568c1d19d3 | ||
|
|
313f762d03 | ||
|
|
3e2c3298da | ||
|
|
eb91c2ec2a | ||
|
|
6c1df1b788 | ||
|
|
478ff53ad1 | ||
|
|
646a706764 | ||
|
|
1b6caf69c2 | ||
|
|
ed3097d145 | ||
|
|
594efec0f1 | ||
|
|
0b5fc69a4e | ||
|
|
5a3f273b60 | ||
|
|
afc0e83ecc | ||
|
|
341bd5aa46 | ||
|
|
ebd9eb105a | ||
|
|
4fca7ddd73 | ||
|
|
480561c64b | ||
|
|
9cc24cf549 | ||
|
|
c85e863536 | ||
|
|
6b25abfdcc | ||
|
|
e6618a6ebb | ||
|
|
48177c946f | ||
|
|
ed2f43e1b9 | ||
|
|
ece40bcd11 | ||
|
|
e0a3b7ef0d | ||
|
|
116deb27c5 | ||
|
|
9589d9c54a | ||
|
|
28f18f84a7 | ||
|
|
5ee5792579 | ||
|
|
c486b1f77f | ||
|
|
608767dfea | ||
|
|
54a53964d1 | ||
|
|
667309f11d | ||
|
|
8dfec110c7 | ||
|
|
332c04e918 | ||
|
|
ca6e0ecd67 | ||
|
|
fcf9bbe941 | ||
|
|
defbbfc4b8 | ||
|
|
fb30989ee2 | ||
|
|
836a4c0bd6 | ||
|
|
0205a016b1 | ||
|
|
776afb8e9e | ||
|
|
f3cfc8e7ec | ||
|
|
4c3c552f93 | ||
|
|
b81f1309c7 | ||
|
|
adc2b676e5 | ||
|
|
5babcdb2ac | ||
|
|
cdc12165a9 | ||
|
|
5c6925385e | ||
|
|
c8523d71e7 | ||
|
|
d6bf562501 | ||
|
|
0c1651ee9d | ||
|
|
00dd55269a | ||
|
|
ce1db01af0 | ||
|
|
e4be0640ee | ||
|
|
c5966de273 | ||
|
|
dd5ad8fb52 | ||
|
|
6105ebfe8d | ||
|
|
3cf51c6ac9 | ||
|
|
7e195a8d22 | ||
|
|
905b1b11b3 | ||
|
|
0cb880c7fb | ||
|
|
319954d369 | ||
|
|
cda9278f49 | ||
|
|
cef7e4d6e8 | ||
|
|
42ae96f26d | ||
|
|
476bd883ad | ||
|
|
b083c9639f | ||
|
|
d862a9f276 | ||
|
|
187213305d | ||
|
|
4238a04de3 | ||
|
|
661577173d | ||
|
|
ec812dcf80 | ||
|
|
c30b6df54b | ||
|
|
e03c37f75e | ||
|
|
09da023591 | ||
|
|
79087c8685 | ||
|
|
2db73037c6 | ||
|
|
8d453b3a03 | ||
|
|
6f3a7b1bcf | ||
|
|
668ff4e62e | ||
|
|
331566bc85 | ||
|
|
c24acf8d2c | ||
|
|
e268e1c481 | ||
|
|
1b0db5944b | ||
|
|
d4ea73fef1 | ||
|
|
b060c9e3d2 | ||
|
|
6c2abf3a1e | ||
|
|
74279460c2 | ||
|
|
ca22578848 | ||
|
|
caef121404 | ||
|
|
f951be36a1 | ||
|
|
979c66b674 | ||
|
|
adc70c7130 | ||
|
|
585b3ec532 | ||
|
|
43b4252a34 | ||
|
|
a690a67c7c | ||
|
|
54ac2c7b05 | ||
|
|
9f60659d1d | ||
|
|
73e5640405 | ||
|
|
3b8c17029f | ||
|
|
fe38a85839 | ||
|
|
18f8601d29 | ||
|
|
5280771883 | ||
|
|
c0fe38364a | ||
|
|
e838accbc4 | ||
|
|
be6a150bbf | ||
|
|
fae9aef3db | ||
|
|
67f33a06c7 | ||
|
|
4778deac02 | ||
|
|
57fc28a854 | ||
|
|
95f81f8331 | ||
|
|
1e69503a73 | ||
|
|
1af79bbc52 | ||
|
|
99777662c6 | ||
|
|
fe77208a01 | ||
|
|
6b1cdd0990 | ||
|
|
5706ce38eb | ||
|
|
bb794bf904 | ||
|
|
7bbfd439c9 | ||
|
|
4e9a29e47a | ||
|
|
26c1fbe839 | ||
|
|
b5fb84a91d | ||
|
|
fec511da02 | ||
|
|
390ce245cc | ||
|
|
655ce50cfe | ||
|
|
2924ba2e15 | ||
|
|
1c07693b1f | ||
|
|
4d6dd31379 | ||
|
|
400b8a6754 | ||
|
|
800952cef0 | ||
|
|
512242943c | ||
|
|
e3b7880abf | ||
|
|
85d00e6d85 | ||
|
|
7571fe73b6 | ||
|
|
94c0f12329 | ||
|
|
65d130fbd8 | ||
|
|
849fea5a1e | ||
|
|
5f5f1cbcff | ||
|
|
4491fb091f | ||
|
|
5c25ea647b | ||
|
|
c34b167711 | ||
|
|
3786accc9a | ||
|
|
d9222ad1fa | ||
|
|
08516e4318 | ||
|
|
b2d7d29f6d | ||
|
|
28a92234e5 | ||
|
|
cbe4daff6f | ||
|
|
e6ce3989ed | ||
|
|
fe31971552 | ||
|
|
b7b470683f | ||
|
|
d9318796fe | ||
|
|
1b4bb95033 | ||
|
|
ea5d555139 | ||
|
|
135c78a043 | ||
|
|
001b4f0d6b | ||
|
|
23803d3de7 | ||
|
|
eb23b98fb5 | ||
|
|
42a0f8f007 | ||
|
|
6455c2e8aa | ||
|
|
2a249557f1 | ||
|
|
f3e81f8cae | ||
|
|
d79ffeceea | ||
|
|
d01ff18a1f | ||
|
|
7bc79dacc1 | ||
|
|
706dabb915 | ||
|
|
06e6ef28fe | ||
|
|
5b37d03ff9 | ||
|
|
fb9bf54d2c | ||
|
|
7134f6aa38 | ||
|
|
0e007e697e | ||
|
|
7326232b0e | ||
|
|
1503aa18d1 | ||
|
|
613a5e47f3 | ||
|
|
c3ea1f60d3 | ||
|
|
398e3f1f5f | ||
|
|
04261d41b8 | ||
|
|
59896e40de | ||
|
|
c0be67abb1 | ||
|
|
e30ba84679 | ||
|
|
a8b8f631cf | ||
|
|
bd84a6da4e | ||
|
|
9c7784549e | ||
|
|
09c525085d | ||
|
|
38a3055e0e | ||
|
|
730a020140 | ||
|
|
7058f89286 | ||
|
|
b547ef4a85 | ||
|
|
394812b61d | ||
|
|
64f4e22a78 | ||
|
|
df7bbf6f7b | ||
|
|
a15083fe91 | ||
|
|
73b39dfb79 | ||
|
|
d4f12f699a | ||
|
|
537eb79662 | ||
|
|
98e9411a3c | ||
|
|
ed9c481ef4 | ||
|
|
d0a87ef784 | ||
|
|
cf704cd36d | ||
|
|
180a0dc2e2 | ||
|
|
e91056d178 | ||
|
|
b842ddeb90 | ||
|
|
a3f27c67e8 | ||
|
|
a5fd5bcf81 | ||
|
|
adf4567386 | ||
|
|
b6b672c00b | ||
|
|
e8566e10c7 | ||
|
|
9181c84f0f | ||
|
|
2c9067516c | ||
|
|
4888794c22 | ||
|
|
1ed78c21e5 | ||
|
|
6a4a5ea947 | ||
|
|
9264ccc054 | ||
|
|
49d75ea86e | ||
|
|
ac282c7b93 | ||
|
|
2d2b6759b6 | ||
|
|
5be7fe001e | ||
|
|
76ad4aa083 | ||
|
|
ebad168f42 | ||
|
|
5512dde203 | ||
|
|
393efaf795 | ||
|
|
a21f605299 | ||
|
|
2a3e487dba | ||
|
|
16adcf2de9 | ||
|
|
2bceb3e79d | ||
|
|
23c3806864 | ||
|
|
cdea25584d | ||
|
|
8aab8b7c8a | ||
|
|
29e10266f0 | ||
|
|
5ae2748f8c | ||
|
|
852723d898 | ||
|
|
9cdf4a40ee | ||
|
|
577ff0c96b | ||
|
|
c7bc7a31bb | ||
|
|
2ec2e138c9 | ||
|
|
cc76849d0d | ||
|
|
9fcc572d59 | ||
|
|
cb1eee16f0 | ||
|
|
9e372b121a | ||
|
|
c52b7d5475 | ||
|
|
aa5be4c20c | ||
|
|
8d89e0a14d | ||
|
|
2d43e6476c | ||
|
|
6914efe8dd | ||
|
|
b345746bb6 | ||
|
|
6d86b140f9 | ||
|
|
a67231ae1c | ||
|
|
0eb120eea0 | ||
|
|
b97fcd3289 | ||
|
|
f15af45c6e | ||
|
|
91c11d6465 | ||
|
|
37ef4e4b5e | ||
|
|
eeb73e0ccf | ||
|
|
19b5908b05 | ||
|
|
2b4db023cd | ||
|
|
f6348f6c89 | ||
|
|
6acdfdbfa0 | ||
|
|
6eaa36fb6f | ||
|
|
69b3c46483 | ||
|
|
9d2cd1b9b8 | ||
|
|
7657c1e37d | ||
|
|
4702f0cdd4 | ||
|
|
3a79335a0b | ||
|
|
49934b2bba | ||
|
|
7b144760b5 | ||
|
|
3210ab4f64 | ||
|
|
bd72dfc41d | ||
|
|
29bba35a7b | ||
|
|
828366de89 | ||
|
|
277915299f | ||
|
|
7cedb8eeae | ||
|
|
10690dd317 | ||
|
|
0a6cf9036c | ||
|
|
386f9e327e | ||
|
|
dca5ad0288 | ||
|
|
f6ca8f1efb | ||
|
|
da9c7d12ab | ||
|
|
daa45824d5 | ||
|
|
6cd3159caa | ||
|
|
965eaca1c7 | ||
|
|
6c00c51d97 | ||
|
|
02cbbdbc47 | ||
|
|
b7f0e321e2 | ||
|
|
46634b4ce1 | ||
|
|
9e7eb83f59 | ||
|
|
78e95c801a | ||
|
|
f7cf44d3a0 | ||
|
|
490acf60ca |
450 changed files with 48825 additions and 20145 deletions
|
|
@ -1,11 +1,14 @@
|
||||||
# https://github.com/browserslist/browserslist#readme
|
# https://github.com/browserslist/browserslist#readme
|
||||||
|
|
||||||
>= 1%
|
>= 0.5%
|
||||||
last 1 major version
|
last 2 major versions
|
||||||
not dead
|
not dead
|
||||||
Chrome >= 60
|
Chrome >= 60
|
||||||
Firefox >= 60
|
Firefox >= 60
|
||||||
Edge >= 16
|
# needed since Legacy Edge still has usage; 79 was the first Chromium Edge version
|
||||||
|
# should be removed in the future when its usage drops or when it's moved to dead browsers
|
||||||
|
not Edge < 79
|
||||||
|
Firefox ESR
|
||||||
iOS >= 10
|
iOS >= 10
|
||||||
Safari >= 10
|
Safari >= 10
|
||||||
Android >= 6
|
Android >= 6
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/css/bootstrap-reboot.css",
|
"path": "./dist/css/bootstrap-reboot.css",
|
||||||
"maxSize": "2 kB"
|
"maxSize": "2.25 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/css/bootstrap-reboot.min.css",
|
"path": "./dist/css/bootstrap-reboot.min.css",
|
||||||
|
|
@ -18,11 +18,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/css/bootstrap-utilities.css",
|
"path": "./dist/css/bootstrap-utilities.css",
|
||||||
"maxSize": "7 kB"
|
"maxSize": "7.5 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/css/bootstrap-utilities.min.css",
|
"path": "./dist/css/bootstrap-utilities.min.css",
|
||||||
"maxSize": "6 kB"
|
"maxSize": "6.75 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/css/bootstrap.css",
|
"path": "./dist/css/bootstrap.css",
|
||||||
|
|
@ -30,31 +30,31 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/css/bootstrap.min.css",
|
"path": "./dist/css/bootstrap.min.css",
|
||||||
"maxSize": "21 kB"
|
"maxSize": "22 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/js/bootstrap.bundle.js",
|
"path": "./dist/js/bootstrap.bundle.js",
|
||||||
"maxSize": "51 kB"
|
"maxSize": "41 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/js/bootstrap.bundle.min.js",
|
"path": "./dist/js/bootstrap.bundle.min.js",
|
||||||
"maxSize": "22.5 kB"
|
"maxSize": "21.5 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/js/bootstrap.esm.js",
|
"path": "./dist/js/bootstrap.esm.js",
|
||||||
"maxSize": "28 kB"
|
"maxSize": "27 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/js/bootstrap.esm.min.js",
|
"path": "./dist/js/bootstrap.esm.min.js",
|
||||||
"maxSize": "19 kB"
|
"maxSize": "18 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/js/bootstrap.js",
|
"path": "./dist/js/bootstrap.js",
|
||||||
"maxSize": "29 kB"
|
"maxSize": "28 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/js/bootstrap.min.js",
|
"path": "./dist/js/bootstrap.min.js",
|
||||||
"maxSize": "16 kB"
|
"maxSize": "15.5 kB"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ci": {
|
"ci": {
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,3 @@
|
||||||
/_gh_pages/
|
/_gh_pages/
|
||||||
/js/coverage/
|
/js/coverage/
|
||||||
/site/static/sw.js
|
/site/static/sw.js
|
||||||
/package.js
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,12 @@
|
||||||
"error",
|
"error",
|
||||||
"always-multiline"
|
"always-multiline"
|
||||||
],
|
],
|
||||||
"new-cap": "off",
|
"new-cap": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"properties": false
|
||||||
|
}
|
||||||
|
],
|
||||||
"no-console": "error",
|
"no-console": "error",
|
||||||
"object-curly-spacing": [
|
"object-curly-spacing": [
|
||||||
"error",
|
"error",
|
||||||
|
|
@ -38,20 +43,16 @@
|
||||||
],
|
],
|
||||||
"unicorn/consistent-function-scoping": "off",
|
"unicorn/consistent-function-scoping": "off",
|
||||||
"unicorn/explicit-length-check": "off",
|
"unicorn/explicit-length-check": "off",
|
||||||
"unicorn/import-index": "off",
|
"unicorn/no-array-callback-reference": "off",
|
||||||
"unicorn/no-fn-reference-in-iterator": "off",
|
|
||||||
"unicorn/no-for-loop": "off",
|
"unicorn/no-for-loop": "off",
|
||||||
"unicorn/no-null": "off",
|
"unicorn/no-null": "off",
|
||||||
"unicorn/no-unused-properties": "error",
|
"unicorn/no-unused-properties": "error",
|
||||||
"unicorn/no-useless-undefined": "off",
|
"unicorn/no-useless-undefined": "off",
|
||||||
"unicorn/prefer-dataset": "off",
|
"unicorn/prefer-dom-node-append": "off",
|
||||||
"unicorn/prefer-includes": "off",
|
"unicorn/prefer-dom-node-dataset": "off",
|
||||||
"unicorn/prefer-node-append": "off",
|
"unicorn/prefer-dom-node-remove": "off",
|
||||||
"unicorn/prefer-node-remove": "off",
|
|
||||||
"unicorn/prefer-number-properties": "off",
|
|
||||||
"unicorn/prefer-optional-catch-binding": "off",
|
"unicorn/prefer-optional-catch-binding": "off",
|
||||||
"unicorn/prefer-query-selector": "off",
|
"unicorn/prefer-query-selector": "off",
|
||||||
"unicorn/prefer-set-has": "off",
|
|
||||||
"unicorn/prevent-abbreviations": "off"
|
"unicorn/prevent-abbreviations": "off"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
26
.github/CONTRIBUTING.md
vendored
26
.github/CONTRIBUTING.md
vendored
|
|
@ -101,12 +101,12 @@ Example:
|
||||||
|
|
||||||
Sometimes bugs reported to us are actually caused by bugs in the browser(s) themselves, not bugs in Bootstrap per se.
|
Sometimes bugs reported to us are actually caused by bugs in the browser(s) themselves, not bugs in Bootstrap per se.
|
||||||
|
|
||||||
| Vendor(s) | Browser(s) | Rendering engine | Bug reporting website(s) | Notes |
|
| Vendor(s) | Browser(s) | Rendering engine | Bug reporting website(s) | Notes |
|
||||||
| ------------- | ---------------------------- | ---------------- | ------------------------------------------------------------------------------------- | -------------------------------------------------------- |
|
| ------------- | ---------------------------- | ---------------- | ------------------------------------------------------ | -------------------------------------------------------- |
|
||||||
| Mozilla | Firefox | Gecko | https://bugzilla.mozilla.org/enter_bug.cgi | "Core" is normally the right product option to choose. |
|
| Mozilla | Firefox | Gecko | https://bugzilla.mozilla.org/enter_bug.cgi | "Core" is normally the right product option to choose. |
|
||||||
| Apple | Safari | WebKit | https://bugs.webkit.org/enter_bug.cgi?product=WebKit <br> https://bugreport.apple.com/ | In Apple's bug reporter, choose "Safari" as the product. |
|
| Apple | Safari | WebKit | https://bugs.webkit.org/enter_bug.cgi?product=WebKit | In Apple's bug reporter, choose "Safari" as the product. |
|
||||||
| Google, Opera | Chrome, Chromium, Opera v15+ | Blink | https://bugs.chromium.org/p/chromium/issues/list | Click the "New issue" button. |
|
| Google, Opera | Chrome, Chromium, Opera v15+ | Blink | https://bugs.chromium.org/p/chromium/issues/list | Click the "New issue" button. |
|
||||||
| Microsoft | Edge | EdgeHTML | https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/ | |
|
| Microsoft | Edge | Blink | https://developer.microsoft.com/en-us/microsoft-edge/ | Go to "Help > Send Feedback" from the browser |
|
||||||
|
|
||||||
|
|
||||||
## Feature requests
|
## Feature requests
|
||||||
|
|
@ -123,18 +123,20 @@ Good pull requests—patches, improvements, new features—are a fantastic
|
||||||
help. They should remain focused in scope and avoid containing unrelated
|
help. They should remain focused in scope and avoid containing unrelated
|
||||||
commits.
|
commits.
|
||||||
|
|
||||||
**Please ask first** before embarking on any significant pull request (e.g.
|
**Please ask first** before embarking on any **significant** pull request (e.g.
|
||||||
implementing features, refactoring code, porting to a different language),
|
implementing features, refactoring code, porting to a different language),
|
||||||
otherwise you risk spending a lot of time working on something that the
|
otherwise you risk spending a lot of time working on something that the
|
||||||
project's developers might not want to merge into the project.
|
project's developers might not want to merge into the project. For trivial
|
||||||
|
things, or things that don't require a lot of your time, you can go ahead and
|
||||||
|
make a PR.
|
||||||
|
|
||||||
Please adhere to the [coding guidelines](#code-guidelines) used throughout the
|
Please adhere to the [coding guidelines](#code-guidelines) used throughout the
|
||||||
project (indentation, accurate comments, etc.) and any other requirements
|
project (indentation, accurate comments, etc.) and any other requirements
|
||||||
(such as test coverage).
|
(such as test coverage).
|
||||||
|
|
||||||
**Do not edit `bootstrap.css`, or `bootstrap.js`
|
**Do not edit `bootstrap.css` or `bootstrap.js`, and do not commit
|
||||||
directly!** Those files are automatically generated. You should edit the
|
any dist files (`dist/` or `js/dist`).** Those files are automatically generated by our build tools. You should
|
||||||
source files in [`/bootstrap/scss/`](https://github.com/twbs/bootstrap/tree/main/scss)
|
edit the source files in [`/bootstrap/scss/`](https://github.com/twbs/bootstrap/tree/main/scss)
|
||||||
and/or [`/bootstrap/js/src/`](https://github.com/twbs/bootstrap/tree/main/js/src) instead.
|
and/or [`/bootstrap/js/src/`](https://github.com/twbs/bootstrap/tree/main/js/src) instead.
|
||||||
|
|
||||||
Similarly, when contributing to Bootstrap's documentation, you should edit the
|
Similarly, when contributing to Bootstrap's documentation, you should edit the
|
||||||
|
|
@ -215,7 +217,7 @@ includes code changes) and under the terms of the
|
||||||
[Adhere to the Code Guide.](https://codeguide.co/#css)
|
[Adhere to the Code Guide.](https://codeguide.co/#css)
|
||||||
|
|
||||||
- When feasible, default color palettes should comply with [WCAG color contrast guidelines](https://www.w3.org/TR/WCAG20/#visual-audio-contrast).
|
- When feasible, default color palettes should comply with [WCAG color contrast guidelines](https://www.w3.org/TR/WCAG20/#visual-audio-contrast).
|
||||||
- Except in rare cases, don't remove default `:focus` styles (via e.g. `outline: none;`) without providing alternative styles. See [this A11Y Project post](https://a11yproject.com/posts/never-remove-css-outlines/) for more details.
|
- Except in rare cases, don't remove default `:focus` styles (via e.g. `outline: none;`) without providing alternative styles. See [this A11Y Project post](https://www.a11yproject.com/posts/2013-01-25-never-remove-css-outlines/) for more details.
|
||||||
|
|
||||||
### JS
|
### JS
|
||||||
|
|
||||||
|
|
|
||||||
7
.github/dependabot.yml
vendored
7
.github/dependabot.yml
vendored
|
|
@ -15,3 +15,10 @@ updates:
|
||||||
- v5
|
- v5
|
||||||
versioning-strategy: increase
|
versioning-strategy: increase
|
||||||
rebase-strategy: disabled
|
rebase-strategy: disabled
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: tuesday
|
||||||
|
time: "12:00"
|
||||||
|
timezone: Europe/Athens
|
||||||
|
|
|
||||||
14
.github/release-drafter.yml
vendored
14
.github/release-drafter.yml
vendored
|
|
@ -4,6 +4,9 @@ prerelease: true
|
||||||
exclude-labels:
|
exclude-labels:
|
||||||
- 'skip-changelog'
|
- 'skip-changelog'
|
||||||
categories:
|
categories:
|
||||||
|
- title: '❗ Breaking Changes'
|
||||||
|
labels:
|
||||||
|
- 'breaking-change'
|
||||||
- title: '🚀 Features'
|
- title: '🚀 Features'
|
||||||
labels:
|
labels:
|
||||||
- 'new-feature'
|
- 'new-feature'
|
||||||
|
|
@ -14,6 +17,9 @@ categories:
|
||||||
- 'fix'
|
- 'fix'
|
||||||
- 'bugfix'
|
- 'bugfix'
|
||||||
- 'bug'
|
- 'bug'
|
||||||
|
- title: '⚡ Performance Improvements'
|
||||||
|
labels:
|
||||||
|
- 'performance'
|
||||||
- title: '🎨 CSS'
|
- title: '🎨 CSS'
|
||||||
labels:
|
labels:
|
||||||
- 'css'
|
- 'css'
|
||||||
|
|
@ -26,11 +32,19 @@ categories:
|
||||||
- title: '🌎 Accessibility'
|
- title: '🌎 Accessibility'
|
||||||
labels:
|
labels:
|
||||||
- 'accessibility'
|
- 'accessibility'
|
||||||
|
- title: '🔧 Utility API'
|
||||||
|
labels:
|
||||||
|
- 'utility API'
|
||||||
|
- 'utilities'
|
||||||
|
- title: '🏭 Tests'
|
||||||
|
labels:
|
||||||
|
- 'tests'
|
||||||
- title: '🧰 Misc'
|
- title: '🧰 Misc'
|
||||||
labels:
|
labels:
|
||||||
- 'build'
|
- 'build'
|
||||||
- 'meta'
|
- 'meta'
|
||||||
- 'chore'
|
- 'chore'
|
||||||
|
- 'CI'
|
||||||
- title: '📦 Dependencies'
|
- title: '📦 Dependencies'
|
||||||
labels:
|
labels:
|
||||||
- 'dependencies'
|
- 'dependencies'
|
||||||
|
|
|
||||||
20
.github/workflows/browserstack.yml
vendored
20
.github/workflows/browserstack.yml
vendored
|
|
@ -1,20 +1,24 @@
|
||||||
name: BrowserStack
|
name: BrowserStack
|
||||||
on: [push]
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
FORCE_COLOR: 2
|
||||||
NODE: 12.x
|
NODE: 14
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
browserstack:
|
browserstack:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'twbs/bootstrap'
|
if: github.repository == 'twbs/bootstrap' && (!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]'))
|
||||||
|
timeout-minutes: 30
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set Node.js version
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE }}"
|
node-version: "${{ env.NODE }}"
|
||||||
|
|
||||||
|
|
@ -24,8 +28,8 @@ jobs:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-
|
${{ runner.os }}-node-v${{ env.NODE }}-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
|
||||||
20
.github/workflows/bundlewatch.yml
vendored
20
.github/workflows/bundlewatch.yml
vendored
|
|
@ -1,8 +1,14 @@
|
||||||
name: Bundlewatch
|
name: Bundlewatch
|
||||||
on: [push, pull_request]
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- "dependabot/**"
|
||||||
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
FORCE_COLOR: 2
|
||||||
NODE: 12.x
|
NODE: 14
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bundlewatch:
|
bundlewatch:
|
||||||
|
|
@ -12,8 +18,8 @@ jobs:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set Node.js version
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE }}"
|
node-version: "${{ env.NODE }}"
|
||||||
|
|
||||||
|
|
@ -23,8 +29,8 @@ jobs:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-
|
${{ runner.os }}-node-v${{ env.NODE }}-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
|
||||||
19
.github/workflows/codeql.yml
vendored
19
.github/workflows/codeql.yml
vendored
|
|
@ -1,22 +1,33 @@
|
||||||
name: "Code Scanning - Action"
|
name: "CodeQL"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- v4-dev
|
||||||
|
- "!dependabot/**"
|
||||||
|
pull_request:
|
||||||
|
# The branches below must be a subset of the branches above
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- v4-dev
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * 0"
|
- cron: "0 2 * * 5"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
CodeQL-Build:
|
analyze:
|
||||||
|
name: Analyze
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v1
|
uses: github/codeql-action/init@v1
|
||||||
with:
|
with:
|
||||||
languages: javascript
|
languages: "javascript"
|
||||||
|
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v1
|
uses: github/codeql-action/autobuild@v1
|
||||||
|
|
|
||||||
20
.github/workflows/css.yml
vendored
20
.github/workflows/css.yml
vendored
|
|
@ -1,8 +1,14 @@
|
||||||
name: CSS
|
name: CSS
|
||||||
on: [push, pull_request]
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- "dependabot/**"
|
||||||
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
FORCE_COLOR: 2
|
||||||
NODE: 12.x
|
NODE: 14
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
css:
|
css:
|
||||||
|
|
@ -12,8 +18,8 @@ jobs:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set Node.js version
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE }}"
|
node-version: "${{ env.NODE }}"
|
||||||
|
|
||||||
|
|
@ -23,8 +29,8 @@ jobs:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-
|
${{ runner.os }}-node-v${{ env.NODE }}-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
|
||||||
24
.github/workflows/dart-sass.yml
vendored
24
.github/workflows/dart-sass.yml
vendored
|
|
@ -1,24 +0,0 @@
|
||||||
name: CSS (Dart Sass)
|
|
||||||
on: [push, pull_request]
|
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
NODE: 12.x
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
css:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Clone repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set Node.js version
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: "${{ env.NODE }}"
|
|
||||||
|
|
||||||
- name: Build CSS with Dart Sass
|
|
||||||
run: |
|
|
||||||
npx --package sass@latest sass --version
|
|
||||||
npx --package sass@latest sass --style expanded --source-map --embed-sources --no-error-css scss/:dist-sass/css/
|
|
||||||
ls -Al dist-sass/css
|
|
||||||
20
.github/workflows/docs.yml
vendored
20
.github/workflows/docs.yml
vendored
|
|
@ -1,8 +1,14 @@
|
||||||
name: Docs
|
name: Docs
|
||||||
on: [push, pull_request]
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- "dependabot/**"
|
||||||
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
FORCE_COLOR: 2
|
||||||
NODE: 12.x
|
NODE: 14
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docs:
|
docs:
|
||||||
|
|
@ -12,8 +18,8 @@ jobs:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set Node.js version
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE }}"
|
node-version: "${{ env.NODE }}"
|
||||||
|
|
||||||
|
|
@ -25,8 +31,8 @@ jobs:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-
|
${{ runner.os }}-node-v${{ env.NODE }}-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
|
||||||
22
.github/workflows/js.yml
vendored
22
.github/workflows/js.yml
vendored
|
|
@ -1,7 +1,13 @@
|
||||||
name: JS Tests
|
name: JS Tests
|
||||||
on: [push, pull_request]
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- "dependabot/**"
|
||||||
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
FORCE_COLOR: 2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
|
|
@ -11,14 +17,14 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
node: [10, 12]
|
node: [10, 12, 14]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set Node.js version
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
|
|
||||||
|
|
@ -28,8 +34,8 @@ jobs:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}}
|
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
${{ runner.OS }}-node-v${{ matrix.node }}-
|
${{ runner.os }}-node-v${{ matrix.node }}-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
@ -42,7 +48,7 @@ jobs:
|
||||||
|
|
||||||
- name: Run Coveralls
|
- name: Run Coveralls
|
||||||
uses: coverallsapp/github-action@master
|
uses: coverallsapp/github-action@master
|
||||||
if: matrix.node == 12
|
if: matrix.node == 14
|
||||||
with:
|
with:
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
path-to-lcov: "./js/coverage/lcov.info"
|
path-to-lcov: "./js/coverage/lcov.info"
|
||||||
|
|
|
||||||
20
.github/workflows/lint.yml
vendored
20
.github/workflows/lint.yml
vendored
|
|
@ -1,8 +1,14 @@
|
||||||
name: Lint
|
name: Lint
|
||||||
on: [push, pull_request]
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- "dependabot/**"
|
||||||
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
FORCE_COLOR: 2
|
||||||
NODE: 12.x
|
NODE: 14
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
|
@ -12,8 +18,8 @@ jobs:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set Node.js version
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE }}"
|
node-version: "${{ env.NODE }}"
|
||||||
|
|
||||||
|
|
@ -23,8 +29,8 @@ jobs:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
${{ runner.OS }}-node-v${{ env.NODE }}-
|
${{ runner.os }}-node-v${{ env.NODE }}-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
|
||||||
30
.github/workflows/node-sass.yml
vendored
Normal file
30
.github/workflows/node-sass.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
name: CSS (node-sass)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- "dependabot/**"
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
env:
|
||||||
|
FORCE_COLOR: 2
|
||||||
|
NODE: 14
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
css:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Clone repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: "${{ env.NODE }}"
|
||||||
|
|
||||||
|
- name: Build CSS with node-sass
|
||||||
|
run: |
|
||||||
|
npx --package node-sass@latest node-sass --version
|
||||||
|
npx --package node-sass@latest node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/ -o dist-sass/css/
|
||||||
|
ls -Al dist-sass/css
|
||||||
14
.gitignore
vendored
14
.gitignore
vendored
|
|
@ -1,19 +1,8 @@
|
||||||
# Ignore docs files
|
# Ignore docs files
|
||||||
/_gh_pages/
|
/_gh_pages/
|
||||||
# This is the old Jekyll docs dist folder;
|
|
||||||
# keeping it here so that when we switch branches it doesn't show up
|
|
||||||
/site/docs/**/dist/
|
|
||||||
# Jekyll's cache folder; keeping it for the same reason as above
|
|
||||||
/site/.jekyll-cache/
|
|
||||||
# Hugo resources folder
|
# Hugo resources folder
|
||||||
/resources/
|
/resources/
|
||||||
|
|
||||||
# Ignore ruby/bundler files;
|
|
||||||
# keeping them here so that when we switch branches they don't show up
|
|
||||||
/.bundle/
|
|
||||||
/vendor/
|
|
||||||
/.ruby-version
|
|
||||||
|
|
||||||
# Numerous always-ignore extensions
|
# Numerous always-ignore extensions
|
||||||
*.diff
|
*.diff
|
||||||
*.err
|
*.err
|
||||||
|
|
@ -39,6 +28,9 @@
|
||||||
*.sublime-workspace
|
*.sublime-workspace
|
||||||
nbproject
|
nbproject
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
/.vscode/
|
||||||
|
# Local Netlify folder
|
||||||
|
.netlify
|
||||||
|
|
||||||
# Komodo
|
# Komodo
|
||||||
.komodotools
|
.komodotools
|
||||||
|
|
|
||||||
15
.stylelintrc
15
.stylelintrc
|
|
@ -3,7 +3,16 @@
|
||||||
"stylelint-config-twbs-bootstrap/scss"
|
"stylelint-config-twbs-bootstrap/scss"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"property-blacklist": [
|
"declaration-property-value-disallowed-list": {
|
||||||
|
"border": "none",
|
||||||
|
"outline": "none"
|
||||||
|
},
|
||||||
|
"function-disallowed-list": [
|
||||||
|
"calc",
|
||||||
|
"lighten",
|
||||||
|
"darken"
|
||||||
|
],
|
||||||
|
"property-disallowed-list": [
|
||||||
"border-radius",
|
"border-radius",
|
||||||
"border-top-left-radius",
|
"border-top-left-radius",
|
||||||
"border-top-right-radius",
|
"border-top-right-radius",
|
||||||
|
|
@ -11,12 +20,12 @@
|
||||||
"border-bottom-left-radius",
|
"border-bottom-left-radius",
|
||||||
"transition"
|
"transition"
|
||||||
],
|
],
|
||||||
"function-blacklist": ["calc"],
|
|
||||||
"scss/dollar-variable-default": [
|
"scss/dollar-variable-default": [
|
||||||
true,
|
true,
|
||||||
{
|
{
|
||||||
"ignore": "local"
|
"ignore": "local"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"scss/selector-no-union-class-name": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,4 @@ Project maintainers who do not follow or enforce the Code of Conduct in good fai
|
||||||
|
|
||||||
## Attribution
|
## Attribution
|
||||||
|
|
||||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct.html][version]
|
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), version 1.4, available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct/>
|
||||||
|
|
||||||
[homepage]: https://www.contributor-covenant.org/
|
|
||||||
[version]: https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
|
||||||
|
|
|
||||||
4
LICENSE
4
LICENSE
|
|
@ -1,7 +1,7 @@
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2011-2020 Twitter, Inc.
|
Copyright (c) 2011-2021 Twitter, Inc.
|
||||||
Copyright (c) 2011-2020 The Bootstrap Authors
|
Copyright (c) 2011-2021 The Bootstrap Authors
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
|
||||||
103
README.md
103
README.md
|
|
@ -1,6 +1,6 @@
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://v5.getbootstrap.com/">
|
<a href="https://getbootstrap.com/">
|
||||||
<img src="https://v5.getbootstrap.com/docs/5.0/assets/brand/bootstrap-logo-shadow.png" alt="Bootstrap logo" width="200" height="165">
|
<img src="https://getbootstrap.com/docs/5.0/assets/brand/bootstrap-logo-shadow.png" alt="Bootstrap logo" width="200" height="165">
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<p align="center">
|
<p align="center">
|
||||||
Sleek, intuitive, and powerful front-end framework for faster and easier web development.
|
Sleek, intuitive, and powerful front-end framework for faster and easier web development.
|
||||||
<br>
|
<br>
|
||||||
<a href="https://v5.getbootstrap.com/docs/5.0/"><strong>Explore Bootstrap docs »</strong></a>
|
<a href="https://getbootstrap.com/docs/5.0/"><strong>Explore Bootstrap docs »</strong></a>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<a href="https://github.com/twbs/bootstrap/issues/new?template=bug_report.md">Report bug</a>
|
<a href="https://github.com/twbs/bootstrap/issues/new?template=bug_report.md">Report bug</a>
|
||||||
|
|
@ -46,14 +46,14 @@ Our default branch is for development of our upcoming Bootstrap 5 release. Head
|
||||||
|
|
||||||
Several quick start options are available:
|
Several quick start options are available:
|
||||||
|
|
||||||
- [Download the latest release.](https://github.com/twbs/bootstrap/archive/v5.0.0.zip)
|
- [Download the latest release](https://github.com/twbs/bootstrap/archive/v5.0.0-beta1.zip)
|
||||||
- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`
|
- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`
|
||||||
- Install with [npm](https://www.npmjs.com/): `npm install bootstrap@next`
|
- Install with [npm](https://www.npmjs.com/): `npm install bootstrap@next`
|
||||||
- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@next`
|
- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@next`
|
||||||
- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:5.0.0`
|
- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:5.0.0-beta1`
|
||||||
- Install with [NuGet](https://www.nuget.org/): CSS: `Install-Package bootstrap` Sass: `Install-Package bootstrap.sass`
|
- Install with [NuGet](https://www.nuget.org/): CSS: `Install-Package bootstrap` Sass: `Install-Package bootstrap.sass`
|
||||||
|
|
||||||
Read the [Getting started page](https://v5.getbootstrap.com/docs/5.0/getting-started/introduction/) for information on the framework contents, templates and examples, and more.
|
Read the [Getting started page](https://getbootstrap.com/docs/5.0/getting-started/introduction/) for information on the framework contents, templates and examples, and more.
|
||||||
|
|
||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
|
@ -68,8 +68,10 @@ Read the [Getting started page](https://v5.getbootstrap.com/docs/5.0/getting-sta
|
||||||
[](https://david-dm.org/twbs/bootstrap?type=peer)
|
[](https://david-dm.org/twbs/bootstrap?type=peer)
|
||||||
[](https://david-dm.org/twbs/bootstrap?type=dev)
|
[](https://david-dm.org/twbs/bootstrap?type=dev)
|
||||||
[](https://coveralls.io/github/twbs/bootstrap?branch=main)
|
[](https://coveralls.io/github/twbs/bootstrap?branch=main)
|
||||||
[](https://github.com/twbs/bootstrap/tree/main/dist/css/bootstrap.min.css)
|
[](https://github.com/twbs/bootstrap/blob/main/dist/css/bootstrap.min.css)
|
||||||
[](https://github.com/twbs/bootstrap/tree/main/dist/js/bootstrap.min.js)
|
[](https://github.com/twbs/bootstrap/blob/main/dist/css/bootstrap.min.css)
|
||||||
|
[](https://github.com/twbs/bootstrap/blob/main/dist/js/bootstrap.min.js)
|
||||||
|
[](https://github.com/twbs/bootstrap/blob/main/dist/js/bootstrap.min.js)
|
||||||
[](https://www.browserstack.com/automate/public-build/SkxZcStBeExEdVJqQ2hWYnlWckpkNmNEY213SFp6WHFETWk2bGFuY3pCbz0tLXhqbHJsVlZhQnRBdEpod3NLSDMzaHc9PQ==--3d0b75245708616eb93113221beece33e680b229)
|
[](https://www.browserstack.com/automate/public-build/SkxZcStBeExEdVJqQ2hWYnlWckpkNmNEY213SFp6WHFETWk2bGFuY3pCbz0tLXhqbHJsVlZhQnRBdEpod3NLSDMzaHc9PQ==--3d0b75245708616eb93113221beece33e680b229)
|
||||||
[](#backers)
|
[](#backers)
|
||||||
[](#sponsors)
|
[](#sponsors)
|
||||||
|
|
@ -81,37 +83,52 @@ Within the download you'll find the following directories and files, logically g
|
||||||
|
|
||||||
```text
|
```text
|
||||||
bootstrap/
|
bootstrap/
|
||||||
└── dist/
|
├── css/
|
||||||
├── css/
|
│ ├── bootstrap-grid.css
|
||||||
│ ├── bootstrap-grid.css
|
│ ├── bootstrap-grid.css.map
|
||||||
│ ├── bootstrap-grid.css.map
|
│ ├── bootstrap-grid.min.css
|
||||||
│ ├── bootstrap-grid.min.css
|
│ ├── bootstrap-grid.min.css.map
|
||||||
│ ├── bootstrap-grid.min.css.map
|
│ ├── bootstrap-grid.rtl.css
|
||||||
│ ├── bootstrap-reboot.css
|
│ ├── bootstrap-grid.rtl.css.map
|
||||||
│ ├── bootstrap-reboot.css.map
|
│ ├── bootstrap-grid.rtl.min.css
|
||||||
│ ├── bootstrap-reboot.min.css
|
│ ├── bootstrap-grid.rtl.min.css.map
|
||||||
│ ├── bootstrap-reboot.min.css.map
|
│ ├── bootstrap-reboot.css
|
||||||
│ ├── bootstrap-utilities.css
|
│ ├── bootstrap-reboot.css.map
|
||||||
│ ├── bootstrap-utilities.css.map
|
│ ├── bootstrap-reboot.min.css
|
||||||
│ ├── bootstrap-utilities.min.css
|
│ ├── bootstrap-reboot.min.css.map
|
||||||
│ ├── bootstrap-utilities.min.css.map
|
│ ├── bootstrap-reboot.rtl.css
|
||||||
│ ├── bootstrap.css
|
│ ├── bootstrap-reboot.rtl.css.map
|
||||||
│ ├── bootstrap.css.map
|
│ ├── bootstrap-reboot.rtl.min.css
|
||||||
│ ├── bootstrap.min.css
|
│ ├── bootstrap-reboot.rtl.min.css.map
|
||||||
│ └── bootstrap.min.css.map
|
│ ├── bootstrap-utilities.css
|
||||||
└── js/
|
│ ├── bootstrap-utilities.css.map
|
||||||
├── bootstrap.bundle.js
|
│ ├── bootstrap-utilities.min.css
|
||||||
├── bootstrap.bundle.js.map
|
│ ├── bootstrap-utilities.min.css.map
|
||||||
├── bootstrap.bundle.min.js
|
│ ├── bootstrap-utilities.rtl.css
|
||||||
├── bootstrap.bundle.min.js.map
|
│ ├── bootstrap-utilities.rtl.css.map
|
||||||
├── bootstrap.esm.js
|
│ ├── bootstrap-utilities.rtl.min.css
|
||||||
├── bootstrap.esm.js.map
|
│ ├── bootstrap-utilities.rtl.min.css.map
|
||||||
├── bootstrap.esm.min.js
|
│ ├── bootstrap.css
|
||||||
├── bootstrap.esm.min.js.map
|
│ ├── bootstrap.css.map
|
||||||
├── bootstrap.js
|
│ ├── bootstrap.min.css
|
||||||
├── bootstrap.js.map
|
│ ├── bootstrap.min.css.map
|
||||||
├── bootstrap.min.js
|
│ ├── bootstrap.rtl.css
|
||||||
└── bootstrap.min.js.map
|
│ ├── bootstrap.rtl.css.map
|
||||||
|
│ ├── bootstrap.rtl.min.css
|
||||||
|
│ └── bootstrap.rtl.min.css.map
|
||||||
|
└── js/
|
||||||
|
├── bootstrap.bundle.js
|
||||||
|
├── bootstrap.bundle.js.map
|
||||||
|
├── bootstrap.bundle.min.js
|
||||||
|
├── bootstrap.bundle.min.js.map
|
||||||
|
├── bootstrap.esm.js
|
||||||
|
├── bootstrap.esm.js.map
|
||||||
|
├── bootstrap.esm.min.js
|
||||||
|
├── bootstrap.esm.min.js.map
|
||||||
|
├── bootstrap.js
|
||||||
|
├── bootstrap.js.map
|
||||||
|
├── bootstrap.min.js
|
||||||
|
└── bootstrap.min.js.map
|
||||||
```
|
```
|
||||||
|
|
||||||
We provide compiled CSS and JS (`bootstrap.*`), as well as compiled and minified CSS and JS (`bootstrap.min.*`). [source maps](https://developers.google.com/web/tools/chrome-devtools/javascript/source-maps) (`bootstrap.*.map`) are available for use with certain browsers' developer tools. Bundled JS files (`bootstrap.bundle.js` and minified `bootstrap.bundle.min.js`) include [Popper](https://popper.js.org/).
|
We provide compiled CSS and JS (`bootstrap.*`), as well as compiled and minified CSS and JS (`bootstrap.min.*`). [source maps](https://developers.google.com/web/tools/chrome-devtools/javascript/source-maps) (`bootstrap.*.map`) are available for use with certain browsers' developer tools. Bundled JS files (`bootstrap.bundle.js` and minified `bootstrap.bundle.min.js`) include [Popper](https://popper.js.org/).
|
||||||
|
|
@ -124,9 +141,9 @@ Have a bug or a feature request? Please first read the [issue guidelines](https:
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
Bootstrap's documentation, included in this repo in the root directory, is built with [Hugo](https://gohugo.io/) and publicly hosted on GitHub Pages at <https://v5.getbootstrap.com/>. The docs may also be run locally.
|
Bootstrap's documentation, included in this repo in the root directory, is built with [Hugo](https://gohugo.io/) and publicly hosted on GitHub Pages at <https://getbootstrap.com/>. The docs may also be run locally.
|
||||||
|
|
||||||
Documentation search is powered by [Algolia's DocSearch](https://community.algolia.com/docsearch/). Working on our search? Be sure to set `debug: true` in `site/assets/js/src/search.js` file.
|
Documentation search is powered by [Algolia's DocSearch](https://community.algolia.com/docsearch/). Working on our search? Be sure to set `debug: true` in `site/assets/js/search.js`.
|
||||||
|
|
||||||
### Running documentation locally
|
### Running documentation locally
|
||||||
|
|
||||||
|
|
@ -139,7 +156,7 @@ Learn more about using Hugo by reading its [documentation](https://gohugo.io/doc
|
||||||
|
|
||||||
### Documentation for previous releases
|
### Documentation for previous releases
|
||||||
|
|
||||||
You can find all our previous releases docs on <https://v5.getbootstrap.com/docs/versions/>.
|
You can find all our previous releases docs on <https://getbootstrap.com/docs/versions/>.
|
||||||
|
|
||||||
[Previous releases](https://github.com/twbs/bootstrap/releases) and their documentation are also available for download.
|
[Previous releases](https://github.com/twbs/bootstrap/releases) and their documentation are also available for download.
|
||||||
|
|
||||||
|
|
@ -219,4 +236,4 @@ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com
|
||||||
|
|
||||||
## Copyright and license
|
## Copyright and license
|
||||||
|
|
||||||
Code and documentation copyright 2011–2020 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors) and [Twitter, Inc.](https://twitter.com) Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
|
Code and documentation copyright 2011–2021 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors) and [Twitter, Inc.](https://twitter.com) Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Script to build our plugins to use them separately.
|
* Script to build our plugins to use them separately.
|
||||||
* Copyright 2020 The Bootstrap Authors
|
* Copyright 2020-2021 The Bootstrap Authors
|
||||||
* Copyright 2020 Twitter, Inc.
|
* Copyright 2020-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -14,21 +14,22 @@ const rollup = require('rollup')
|
||||||
const { babel } = require('@rollup/plugin-babel')
|
const { babel } = require('@rollup/plugin-babel')
|
||||||
const banner = require('./banner.js')
|
const banner = require('./banner.js')
|
||||||
|
|
||||||
|
const rootPath = path.resolve(__dirname, '../js/dist/')
|
||||||
const plugins = [
|
const plugins = [
|
||||||
babel({
|
babel({
|
||||||
// Only transpile our source code
|
// Only transpile our source code
|
||||||
exclude: 'node_modules/**',
|
exclude: 'node_modules/**',
|
||||||
// Inline the required helpers in each file
|
// Include the helpers in each file, at most one copy of each
|
||||||
babelHelpers: 'inline'
|
babelHelpers: 'bundled'
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
const bsPlugins = {
|
const bsPlugins = {
|
||||||
Data: path.resolve(__dirname, '../js/src/dom/data.js'),
|
Data: path.resolve(__dirname, '../js/src/dom/data.js'),
|
||||||
EventHandler: path.resolve(__dirname, '../js/src/dom/event-handler.js'),
|
EventHandler: path.resolve(__dirname, '../js/src/dom/event-handler.js'),
|
||||||
Manipulator: path.resolve(__dirname, '../js/src/dom/manipulator.js'),
|
Manipulator: path.resolve(__dirname, '../js/src/dom/manipulator.js'),
|
||||||
Polyfill: path.resolve(__dirname, '../js/src/dom/polyfill.js'),
|
|
||||||
SelectorEngine: path.resolve(__dirname, '../js/src/dom/selector-engine.js'),
|
SelectorEngine: path.resolve(__dirname, '../js/src/dom/selector-engine.js'),
|
||||||
Alert: path.resolve(__dirname, '../js/src/alert.js'),
|
Alert: path.resolve(__dirname, '../js/src/alert.js'),
|
||||||
|
Base: path.resolve(__dirname, '../js/src/base-component.js'),
|
||||||
Button: path.resolve(__dirname, '../js/src/button.js'),
|
Button: path.resolve(__dirname, '../js/src/button.js'),
|
||||||
Carousel: path.resolve(__dirname, '../js/src/carousel.js'),
|
Carousel: path.resolve(__dirname, '../js/src/carousel.js'),
|
||||||
Collapse: path.resolve(__dirname, '../js/src/collapse.js'),
|
Collapse: path.resolve(__dirname, '../js/src/collapse.js'),
|
||||||
|
|
@ -40,16 +41,17 @@ const bsPlugins = {
|
||||||
Toast: path.resolve(__dirname, '../js/src/toast.js'),
|
Toast: path.resolve(__dirname, '../js/src/toast.js'),
|
||||||
Tooltip: path.resolve(__dirname, '../js/src/tooltip.js')
|
Tooltip: path.resolve(__dirname, '../js/src/tooltip.js')
|
||||||
}
|
}
|
||||||
const rootPath = path.resolve(__dirname, '../js/dist/')
|
|
||||||
|
|
||||||
const defaultPluginConfig = {
|
const defaultPluginConfig = {
|
||||||
external: [
|
external: [
|
||||||
bsPlugins.Data,
|
bsPlugins.Data,
|
||||||
|
bsPlugins.Base,
|
||||||
bsPlugins.EventHandler,
|
bsPlugins.EventHandler,
|
||||||
bsPlugins.SelectorEngine
|
bsPlugins.SelectorEngine
|
||||||
],
|
],
|
||||||
globals: {
|
globals: {
|
||||||
[bsPlugins.Data]: 'Data',
|
[bsPlugins.Data]: 'Data',
|
||||||
|
[bsPlugins.Base]: 'Base',
|
||||||
[bsPlugins.EventHandler]: 'EventHandler',
|
[bsPlugins.EventHandler]: 'EventHandler',
|
||||||
[bsPlugins.SelectorEngine]: 'SelectorEngine'
|
[bsPlugins.SelectorEngine]: 'SelectorEngine'
|
||||||
}
|
}
|
||||||
|
|
@ -60,16 +62,12 @@ const getConfigByPluginKey = pluginKey => {
|
||||||
pluginKey === 'Data' ||
|
pluginKey === 'Data' ||
|
||||||
pluginKey === 'Manipulator' ||
|
pluginKey === 'Manipulator' ||
|
||||||
pluginKey === 'EventHandler' ||
|
pluginKey === 'EventHandler' ||
|
||||||
pluginKey === 'Polyfill' ||
|
|
||||||
pluginKey === 'SelectorEngine' ||
|
pluginKey === 'SelectorEngine' ||
|
||||||
pluginKey === 'Util' ||
|
pluginKey === 'Util' ||
|
||||||
pluginKey === 'Sanitizer'
|
pluginKey === 'Sanitizer'
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
external: [bsPlugins.Polyfill],
|
external: []
|
||||||
globals: {
|
|
||||||
[bsPlugins.Polyfill]: 'Polyfill'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -78,6 +76,7 @@ const getConfigByPluginKey = pluginKey => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
pluginKey === 'Base' ||
|
||||||
pluginKey === 'Button' ||
|
pluginKey === 'Button' ||
|
||||||
pluginKey === 'Carousel' ||
|
pluginKey === 'Carousel' ||
|
||||||
pluginKey === 'Collapse' ||
|
pluginKey === 'Collapse' ||
|
||||||
|
|
@ -92,9 +91,9 @@ const getConfigByPluginKey = pluginKey => {
|
||||||
|
|
||||||
if (pluginKey === 'Dropdown' || pluginKey === 'Tooltip') {
|
if (pluginKey === 'Dropdown' || pluginKey === 'Tooltip') {
|
||||||
const config = Object.assign(defaultPluginConfig)
|
const config = Object.assign(defaultPluginConfig)
|
||||||
config.external.push(bsPlugins.Manipulator, 'popper.js')
|
config.external.push(bsPlugins.Manipulator, '@popperjs/core')
|
||||||
config.globals[bsPlugins.Manipulator] = 'Manipulator'
|
config.globals[bsPlugins.Manipulator] = 'Manipulator'
|
||||||
config.globals['popper.js'] = 'Popper'
|
config.globals['@popperjs/core'] = 'Popper'
|
||||||
return config
|
return config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -117,11 +116,13 @@ const getConfigByPluginKey = pluginKey => {
|
||||||
return {
|
return {
|
||||||
external: [
|
external: [
|
||||||
bsPlugins.Data,
|
bsPlugins.Data,
|
||||||
|
bsPlugins.Base,
|
||||||
bsPlugins.EventHandler,
|
bsPlugins.EventHandler,
|
||||||
bsPlugins.Manipulator
|
bsPlugins.Manipulator
|
||||||
],
|
],
|
||||||
globals: {
|
globals: {
|
||||||
[bsPlugins.Data]: 'Data',
|
[bsPlugins.Data]: 'Data',
|
||||||
|
[bsPlugins.Base]: 'Base',
|
||||||
[bsPlugins.EventHandler]: 'EventHandler',
|
[bsPlugins.EventHandler]: 'EventHandler',
|
||||||
[bsPlugins.Manipulator]: 'Manipulator'
|
[bsPlugins.Manipulator]: 'Manipulator'
|
||||||
}
|
}
|
||||||
|
|
@ -129,18 +130,17 @@ const getConfigByPluginKey = pluginKey => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const utilObjects = [
|
const utilObjects = new Set([
|
||||||
'Util',
|
'Util',
|
||||||
'Sanitizer'
|
'Sanitizer'
|
||||||
]
|
])
|
||||||
|
|
||||||
const domObjects = [
|
const domObjects = new Set([
|
||||||
'Data',
|
'Data',
|
||||||
'EventHandler',
|
'EventHandler',
|
||||||
'Manipulator',
|
'Manipulator',
|
||||||
'Polyfill',
|
|
||||||
'SelectorEngine'
|
'SelectorEngine'
|
||||||
]
|
])
|
||||||
|
|
||||||
const build = async plugin => {
|
const build = async plugin => {
|
||||||
console.log(`Building ${plugin} plugin...`)
|
console.log(`Building ${plugin} plugin...`)
|
||||||
|
|
@ -149,11 +149,11 @@ const build = async plugin => {
|
||||||
const pluginFilename = path.basename(bsPlugins[plugin])
|
const pluginFilename = path.basename(bsPlugins[plugin])
|
||||||
let pluginPath = rootPath
|
let pluginPath = rootPath
|
||||||
|
|
||||||
if (utilObjects.includes(plugin)) {
|
if (utilObjects.has(plugin)) {
|
||||||
pluginPath = `${rootPath}/util/`
|
pluginPath = `${rootPath}/util/`
|
||||||
}
|
}
|
||||||
|
|
||||||
if (domObjects.includes(plugin)) {
|
if (domObjects.has(plugin)) {
|
||||||
pluginPath = `${rootPath}/dom/`
|
pluginPath = `${rootPath}/dom/`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Script to update version number references in the project.
|
* Script to update version number references in the project.
|
||||||
* Copyright 2017-2020 The Bootstrap Authors
|
* Copyright 2017-2021 The Bootstrap Authors
|
||||||
* Copyright 2017-2020 Twitter, Inc.
|
* Copyright 2017-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
* Remember to use the same vendor files as the CDN ones,
|
* Remember to use the same vendor files as the CDN ones,
|
||||||
* otherwise the hashes won't match!
|
* otherwise the hashes won't match!
|
||||||
*
|
*
|
||||||
* Copyright 2017-2020 The Bootstrap Authors
|
* Copyright 2017-2021 The Bootstrap Authors
|
||||||
* Copyright 2017-2020 Twitter, Inc.
|
* Copyright 2017-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -29,6 +29,10 @@ const files = [
|
||||||
file: 'dist/css/bootstrap.min.css',
|
file: 'dist/css/bootstrap.min.css',
|
||||||
configPropertyName: 'css_hash'
|
configPropertyName: 'css_hash'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
file: 'dist/css/bootstrap.rtl.min.css',
|
||||||
|
configPropertyName: 'css_rtl_hash'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
file: 'dist/js/bootstrap.min.js',
|
file: 'dist/js/bootstrap.min.js',
|
||||||
configPropertyName: 'js_hash'
|
configPropertyName: 'js_hash'
|
||||||
|
|
@ -38,7 +42,7 @@ const files = [
|
||||||
configPropertyName: 'js_bundle_hash'
|
configPropertyName: 'js_bundle_hash'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: 'node_modules/popper.js/dist/umd/popper.min.js',
|
file: 'node_modules/@popperjs/core/dist/umd/popper.min.js',
|
||||||
configPropertyName: 'popper_hash'
|
configPropertyName: 'popper_hash'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
@ -55,6 +59,6 @@ files.forEach(file => {
|
||||||
|
|
||||||
console.log(`${file.configPropertyName}: ${integrity}`)
|
console.log(`${file.configPropertyName}: ${integrity}`)
|
||||||
|
|
||||||
sh.sed('-i', new RegExp(`(\\s${file.configPropertyName}:\\s+"|')(\\S+)("|')`), `$1${integrity}$3`, configFile)
|
sh.sed('-i', new RegExp(`^(\\s+${file.configPropertyName}:\\s+["'])\\S*(["'])`), `$1${integrity}$2`, configFile)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,19 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
module.exports = ctx => ({
|
module.exports = ctx => {
|
||||||
map: ctx.file.dirname.includes('examples') ?
|
return {
|
||||||
false :
|
map: ctx.file.dirname.includes('examples') ?
|
||||||
{
|
false :
|
||||||
inline: false,
|
{
|
||||||
annotation: true,
|
inline: false,
|
||||||
sourcesContent: true
|
annotation: true,
|
||||||
},
|
sourcesContent: true
|
||||||
plugins: {
|
},
|
||||||
autoprefixer: {
|
plugins: {
|
||||||
cascade: false
|
autoprefixer: {
|
||||||
|
cascade: false
|
||||||
|
},
|
||||||
|
rtlcss: ctx.env === 'RTL' ? {} : false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,32 +2,33 @@
|
||||||
|
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const { babel } = require('@rollup/plugin-babel')
|
const { babel } = require('@rollup/plugin-babel')
|
||||||
const resolve = require('@rollup/plugin-node-resolve')
|
const { nodeResolve } = require('@rollup/plugin-node-resolve')
|
||||||
|
const replace = require('@rollup/plugin-replace')
|
||||||
const banner = require('./banner.js')
|
const banner = require('./banner.js')
|
||||||
|
|
||||||
const BUNDLE = process.env.BUNDLE === 'true'
|
const BUNDLE = process.env.BUNDLE === 'true'
|
||||||
const ESM = process.env.ESM === 'true'
|
const ESM = process.env.ESM === 'true'
|
||||||
|
|
||||||
let fileDest = `bootstrap${ESM ? '.esm' : ''}`
|
let fileDest = `bootstrap${ESM ? '.esm' : ''}`
|
||||||
const external = ['popper.js']
|
const external = ['@popperjs/core']
|
||||||
const plugins = [
|
const plugins = [
|
||||||
babel({
|
babel({
|
||||||
// Only transpile our source code
|
// Only transpile our source code
|
||||||
exclude: 'node_modules/**',
|
exclude: 'node_modules/**',
|
||||||
// Include the helpers in the bundle, at most one copy of each
|
// Include the helpers in the bundle, at most one copy of each
|
||||||
babelHelpers: 'bundled'
|
babelHelpers: 'bundled'
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
const globals = {
|
const globals = {
|
||||||
'popper.js': 'Popper'
|
'@popperjs/core': 'Popper'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BUNDLE) {
|
if (BUNDLE) {
|
||||||
fileDest += '.bundle'
|
fileDest += '.bundle'
|
||||||
// Remove last entry in external array to bundle Popper
|
// Remove last entry in external array to bundle Popper
|
||||||
external.pop()
|
external.pop()
|
||||||
delete globals['popper.js']
|
delete globals['@popperjs/core']
|
||||||
plugins.push(resolve())
|
plugins.push(replace({ 'process.env.NODE_ENV': '"production"' }), nodeResolve())
|
||||||
}
|
}
|
||||||
|
|
||||||
const rollupConfig = {
|
const rollupConfig = {
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Script to run vnu-jar if Java is available.
|
* Script to run vnu-jar if Java is available.
|
||||||
* Copyright 2017-2020 The Bootstrap Authors
|
* Copyright 2017-2021 The Bootstrap Authors
|
||||||
* Copyright 2017-2020 Twitter, Inc.
|
* Copyright 2017-2021 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
/*!
|
/*!
|
||||||
* Script to create the built examples zip archive;
|
* Script to create the built examples zip archive;
|
||||||
* requires the `zip` command to be present!
|
* requires the `zip` command to be present!
|
||||||
* Copyright 2020 The Bootstrap Authors
|
* Copyright 2020-2021 The Bootstrap Authors
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -12,36 +12,67 @@
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const sh = require('shelljs')
|
const sh = require('shelljs')
|
||||||
|
|
||||||
const { version, version_short: versionShort } = require('../package.json')
|
const pkg = require('../package.json')
|
||||||
|
|
||||||
const folderName = `bootstrap-${version}-examples`
|
const versionShort = pkg.config.version_short
|
||||||
|
const distFolder = `bootstrap-${pkg.version}-examples`
|
||||||
|
const rootDocsDir = '_gh_pages'
|
||||||
|
const docsDir = `${rootDocsDir}/docs/${versionShort}/`
|
||||||
|
|
||||||
|
// these are the files we need in the examples
|
||||||
|
const cssFiles = [
|
||||||
|
'bootstrap.min.css',
|
||||||
|
'bootstrap.min.css.map',
|
||||||
|
'bootstrap.rtl.min.css',
|
||||||
|
'bootstrap.rtl.min.css.map'
|
||||||
|
]
|
||||||
|
const jsFiles = [
|
||||||
|
'bootstrap.bundle.min.js',
|
||||||
|
'bootstrap.bundle.min.js.map'
|
||||||
|
]
|
||||||
|
const imgFiles = [
|
||||||
|
'bootstrap-logo.svg',
|
||||||
|
'bootstrap-logo-white.svg'
|
||||||
|
]
|
||||||
|
|
||||||
sh.config.fatal = true
|
sh.config.fatal = true
|
||||||
|
|
||||||
if (!sh.test('-d', '_gh_pages')) {
|
if (!sh.test('-d', rootDocsDir)) {
|
||||||
throw new Error('The "_gh_pages" folder does not exist, did you forget building the docs?')
|
throw new Error(`The "${rootDocsDir}" folder does not exist, did you forget building the docs?`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// switch to the root dir
|
// switch to the root dir
|
||||||
sh.cd(path.join(__dirname, '..'))
|
sh.cd(path.join(__dirname, '..'))
|
||||||
|
|
||||||
// remove any previously created folder with the same name
|
// remove any previously created folder/zip with the same name
|
||||||
sh.rm('-rf', folderName)
|
sh.rm('-rf', [distFolder, `${distFolder}.zip`])
|
||||||
// create any folders so that `cp` works
|
|
||||||
sh.mkdir('-p', folderName)
|
|
||||||
sh.mkdir('-p', `${folderName}/assets/brand/`)
|
|
||||||
|
|
||||||
sh.cp('-Rf', `_gh_pages/docs/${versionShort}/examples/*`, folderName)
|
// create any folders so that `cp` works
|
||||||
sh.cp('-Rf', `_gh_pages/docs/${versionShort}/dist/`, `${folderName}/assets/`)
|
sh.mkdir('-p', [
|
||||||
// also copy the two brand images we use in the examples
|
distFolder,
|
||||||
sh.cp('-f', [
|
`${distFolder}/assets/brand/`,
|
||||||
`_gh_pages/docs/${versionShort}/assets/brand/bootstrap-outline.svg`,
|
`${distFolder}/assets/dist/css/`,
|
||||||
`_gh_pages/docs/${versionShort}/assets/brand/bootstrap-solid.svg`
|
`${distFolder}/assets/dist/js/`
|
||||||
], `${folderName}/assets/brand/`)
|
])
|
||||||
sh.rm(`${folderName}/index.html`)
|
|
||||||
|
sh.cp('-Rf', `${docsDir}/examples/*`, distFolder)
|
||||||
|
|
||||||
|
cssFiles.forEach(file => {
|
||||||
|
sh.cp('-f', `${docsDir}/dist/css/${file}`, `${distFolder}/assets/dist/css/`)
|
||||||
|
})
|
||||||
|
|
||||||
|
jsFiles.forEach(file => {
|
||||||
|
sh.cp('-f', `${docsDir}/dist/js/${file}`, `${distFolder}/assets/dist/js/`)
|
||||||
|
})
|
||||||
|
|
||||||
|
imgFiles.forEach(file => {
|
||||||
|
sh.cp('-f', `${docsDir}/assets/brand/${file}`, `${distFolder}/assets/brand/`)
|
||||||
|
})
|
||||||
|
|
||||||
|
sh.rm(`${distFolder}/index.html`)
|
||||||
|
|
||||||
// get all examples' HTML files
|
// get all examples' HTML files
|
||||||
sh.find(`${folderName}/**/*.html`).forEach(file => {
|
sh.find(`${distFolder}/**/*.html`).forEach(file => {
|
||||||
const fileContents = sh.cat(file)
|
const fileContents = sh.cat(file)
|
||||||
.toString()
|
.toString()
|
||||||
.replace(new RegExp(`"/docs/${versionShort}/`, 'g'), '"../')
|
.replace(new RegExp(`"/docs/${versionShort}/`, 'g'), '"../')
|
||||||
|
|
@ -53,7 +84,7 @@ sh.find(`${folderName}/**/*.html`).forEach(file => {
|
||||||
})
|
})
|
||||||
|
|
||||||
// create the zip file
|
// create the zip file
|
||||||
sh.exec(`zip -r9 "${folderName}.zip" "${folderName}"`, { fatal: true })
|
sh.exec(`zip -r9 "${distFolder}.zip" "${distFolder}"`)
|
||||||
|
|
||||||
// remove the folder we created
|
// remove the folder we created
|
||||||
sh.rm('-rf', folderName)
|
sh.rm('-rf', distFolder)
|
||||||
|
|
|
||||||
33
config.yml
33
config.yml
|
|
@ -1,6 +1,6 @@
|
||||||
languageCode: "en"
|
languageCode: "en"
|
||||||
title: "Bootstrap"
|
title: "Bootstrap"
|
||||||
baseURL: "https://v5.getbootstrap.com"
|
baseURL: "https://getbootstrap.com"
|
||||||
enableInlineShortcodes: true
|
enableInlineShortcodes: true
|
||||||
|
|
||||||
markup:
|
markup:
|
||||||
|
|
@ -47,32 +47,33 @@ params:
|
||||||
social_image_path: /docs/5.0/assets/brand/bootstrap-social.png
|
social_image_path: /docs/5.0/assets/brand/bootstrap-social.png
|
||||||
social_logo_path: /docs/5.0/assets/brand/bootstrap-social-logo.png
|
social_logo_path: /docs/5.0/assets/brand/bootstrap-social-logo.png
|
||||||
|
|
||||||
current_version: "5.0.0-alpha1"
|
current_version: "5.0.0-beta1"
|
||||||
current_ruby_version: "5.0.0-alpha1"
|
current_ruby_version: "5.0.0.beta1"
|
||||||
docs_version: "5.0"
|
docs_version: "5.0"
|
||||||
rfs_version: "9.0.2"
|
rfs_version: "9.0.3"
|
||||||
github_org: "https://github.com/twbs"
|
github_org: "https://github.com/twbs"
|
||||||
repo: "https://github.com/twbs/bootstrap"
|
repo: "https://github.com/twbs/bootstrap"
|
||||||
twitter: "getbootstrap"
|
twitter: "getbootstrap"
|
||||||
slack: "https://bootstrap-slack.herokuapp.com/"
|
slack: "https://bootstrap-slack.herokuapp.com/"
|
||||||
opencollective: "https://opencollective.com/bootstrap"
|
opencollective: "https://opencollective.com/bootstrap"
|
||||||
blog: "https://blog.getbootstrap.com/"
|
blog: "https://blog.getbootstrap.com/"
|
||||||
expo: "https://expo.getbootstrap.com/"
|
|
||||||
themes: "https://themes.getbootstrap.com/"
|
themes: "https://themes.getbootstrap.com/"
|
||||||
icons: "https://icons.getbootstrap.com/"
|
icons: "https://icons.getbootstrap.com/"
|
||||||
|
|
||||||
download:
|
download:
|
||||||
source: "https://github.com/twbs/bootstrap/archive/v5.0.0-alpha1.zip"
|
source: "https://github.com/twbs/bootstrap/archive/v5.0.0-beta1.zip"
|
||||||
dist: "https://github.com/twbs/bootstrap/releases/download/v5.0.0-alpha1/bootstrap-5.0.0-alpha1-dist.zip"
|
dist: "https://github.com/twbs/bootstrap/releases/download/v5.0.0-beta1/bootstrap-5.0.0-beta1-dist.zip"
|
||||||
dist_examples: "https://github.com/twbs/bootstrap/releases/download/v5.0.0-alpha1/bootstrap-5.0.0-alpha1-examples.zip"
|
dist_examples: "https://github.com/twbs/bootstrap/releases/download/v5.0.0-beta1/bootstrap-5.0.0-beta1-examples.zip"
|
||||||
|
|
||||||
cdn:
|
cdn:
|
||||||
# See https://www.srihash.org for info on how to generate the hashes
|
# See https://www.srihash.org for info on how to generate the hashes
|
||||||
css: "https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css"
|
css: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css"
|
||||||
css_hash: "sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I"
|
css_hash: "sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1"
|
||||||
js: "https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js"
|
css_rtl: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.rtl.min.css"
|
||||||
js_hash: "sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/"
|
css_rtl_hash: "sha384-mUkCBeyHPdg0tqB6JDd+65Gpw5h/l8DKcCTV2D2UpaMMFd7Jo8A+mDAosaWgFBPl"
|
||||||
js_bundle: "https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.bundle.min.js"
|
js: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.min.js"
|
||||||
js_bundle_hash: "sha384-DBjhmceckmzwrnMMrjI7BvG2FmRuxQVaTfFYHgfnrdfqMhxKt445b7j3KBQLolRl"
|
js_hash: "sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj"
|
||||||
popper: "https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
|
js_bundle: "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js"
|
||||||
popper_hash: "sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
|
js_bundle_hash: "sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW"
|
||||||
|
popper: "https://cdn.jsdelivr.net/npm/@popperjs/core@2.6.0/dist/umd/popper.min.js"
|
||||||
|
popper_hash: "sha384-KsvD1yqQ1/1+IA7gi3P0tyJcT3vR+NdBTt13hSJ2lnve8agRGXTTyNaBYmCR/Nwi"
|
||||||
|
|
|
||||||
1795
dist/css/bootstrap-grid.css
vendored
1795
dist/css/bootstrap-grid.css
vendored
File diff suppressed because it is too large
Load diff
2
dist/css/bootstrap-grid.css.map
vendored
2
dist/css/bootstrap-grid.css.map
vendored
File diff suppressed because one or more lines are too long
4
dist/css/bootstrap-grid.min.css
vendored
4
dist/css/bootstrap-grid.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-grid.min.css.map
vendored
2
dist/css/bootstrap-grid.min.css.map
vendored
File diff suppressed because one or more lines are too long
4996
dist/css/bootstrap-grid.rtl.css
vendored
Normal file
4996
dist/css/bootstrap-grid.rtl.css
vendored
Normal file
File diff suppressed because it is too large
Load diff
1
dist/css/bootstrap-grid.rtl.css.map
vendored
Normal file
1
dist/css/bootstrap-grid.rtl.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
7
dist/css/bootstrap-grid.rtl.min.css
vendored
Normal file
7
dist/css/bootstrap-grid.rtl.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/css/bootstrap-grid.rtl.min.css.map
vendored
Normal file
1
dist/css/bootstrap-grid.rtl.min.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
75
dist/css/bootstrap-reboot.css
vendored
75
dist/css/bootstrap-reboot.css
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap Reboot v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap Reboot v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
|
@ -11,9 +11,15 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
|
:root {
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
|
|
@ -39,7 +45,7 @@ hr:not([size]) {
|
||||||
height: 1px;
|
height: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h6, h5, h4, h3, h2, h1 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|
@ -49,7 +55,6 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
h1 {
|
h1 {
|
||||||
font-size: calc(1.375rem + 1.5vw);
|
font-size: calc(1.375rem + 1.5vw);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2.5rem;
|
font-size: 2.5rem;
|
||||||
|
|
@ -59,7 +64,6 @@ h1 {
|
||||||
h2 {
|
h2 {
|
||||||
font-size: calc(1.325rem + 0.9vw);
|
font-size: calc(1.325rem + 0.9vw);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
|
|
@ -69,7 +73,6 @@ h2 {
|
||||||
h3 {
|
h3 {
|
||||||
font-size: calc(1.3rem + 0.6vw);
|
font-size: calc(1.3rem + 0.6vw);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 1.75rem;
|
font-size: 1.75rem;
|
||||||
|
|
@ -79,7 +82,6 @@ h3 {
|
||||||
h4 {
|
h4 {
|
||||||
font-size: calc(1.275rem + 0.3vw);
|
font-size: calc(1.275rem + 0.3vw);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
h4 {
|
h4 {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
|
|
@ -100,7 +102,7 @@ p {
|
||||||
}
|
}
|
||||||
|
|
||||||
abbr[title],
|
abbr[title],
|
||||||
abbr[data-original-title] {
|
abbr[data-bs-original-title] {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
-webkit-text-decoration: underline dotted;
|
-webkit-text-decoration: underline dotted;
|
||||||
text-decoration: underline dotted;
|
text-decoration: underline dotted;
|
||||||
|
|
@ -139,7 +141,7 @@ dt {
|
||||||
}
|
}
|
||||||
|
|
||||||
dd {
|
dd {
|
||||||
margin-bottom: .5rem;
|
margin-bottom: 0.5rem;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -170,20 +172,19 @@ sup {
|
||||||
}
|
}
|
||||||
|
|
||||||
sub {
|
sub {
|
||||||
bottom: -.25em;
|
bottom: -0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
sup {
|
sup {
|
||||||
top: -.5em;
|
top: -0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #0d6efd;
|
color: #0d6efd;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #024dbc;
|
color: #0a58ca;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:not([href]):not([class]), a:not([href]):not([class]):hover {
|
a:not([href]):not([class]), a:not([href]):not([class]):hover {
|
||||||
|
|
@ -197,6 +198,8 @@ kbd,
|
||||||
samp {
|
samp {
|
||||||
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
|
direction: ltr /* rtl:ignore */;
|
||||||
|
unicode-bidi: bidi-override;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
|
|
@ -205,9 +208,7 @@ pre {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
font-size: 0.875em;
|
font-size: 0.875em;
|
||||||
-ms-overflow-style: scrollbar;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pre code {
|
pre code {
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
|
@ -219,7 +220,6 @@ code {
|
||||||
color: #d63384;
|
color: #d63384;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
a > code {
|
a > code {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
@ -231,7 +231,6 @@ kbd {
|
||||||
background-color: #212529;
|
background-color: #212529;
|
||||||
border-radius: 0.2rem;
|
border-radius: 0.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
kbd kbd {
|
kbd kbd {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
|
|
@ -284,8 +283,8 @@ button {
|
||||||
}
|
}
|
||||||
|
|
||||||
button:focus {
|
button:focus {
|
||||||
outline: 1px dotted;
|
outline: dotted 1px;
|
||||||
outline: 5px auto -webkit-focus-ring-color;
|
outline: -webkit-focus-ring-color auto 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
|
|
@ -299,17 +298,12 @@ textarea {
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
button,
|
|
||||||
input {
|
|
||||||
overflow: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
button,
|
button,
|
||||||
select {
|
select {
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
[role="button"] {
|
[role=button] {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -322,16 +316,15 @@ select {
|
||||||
}
|
}
|
||||||
|
|
||||||
button,
|
button,
|
||||||
[type="button"],
|
[type=button],
|
||||||
[type="reset"],
|
[type=reset],
|
||||||
[type="submit"] {
|
[type=submit] {
|
||||||
-webkit-appearance: button;
|
-webkit-appearance: button;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:not(:disabled),
|
button:not(:disabled),
|
||||||
[type="button"]:not(:disabled),
|
[type=button]:not(:disabled),
|
||||||
[type="reset"]:not(:disabled),
|
[type=reset]:not(:disabled),
|
||||||
[type="submit"]:not(:disabled) {
|
[type=submit]:not(:disabled) {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -358,15 +351,12 @@ legend {
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
font-size: calc(1.275rem + 0.3vw);
|
font-size: calc(1.275rem + 0.3vw);
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
white-space: normal;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
legend {
|
legend {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
legend + * {
|
legend + * {
|
||||||
clear: left;
|
clear: left;
|
||||||
}
|
}
|
||||||
|
|
@ -385,11 +375,19 @@ legend + * {
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
[type="search"] {
|
[type=search] {
|
||||||
outline-offset: -2px;
|
outline-offset: -2px;
|
||||||
-webkit-appearance: textfield;
|
-webkit-appearance: textfield;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* rtl:raw:
|
||||||
|
[type="tel"],
|
||||||
|
[type="url"],
|
||||||
|
[type="email"],
|
||||||
|
[type="number"] {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
|
*/
|
||||||
::-webkit-search-decoration {
|
::-webkit-search-decoration {
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
}
|
}
|
||||||
|
|
@ -398,6 +396,10 @@ legend + * {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::file-selector-button {
|
||||||
|
font: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
::-webkit-file-upload-button {
|
::-webkit-file-upload-button {
|
||||||
font: inherit;
|
font: inherit;
|
||||||
-webkit-appearance: button;
|
-webkit-appearance: button;
|
||||||
|
|
@ -423,4 +425,5 @@ progress {
|
||||||
[hidden] {
|
[hidden] {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*# sourceMappingURL=bootstrap-reboot.css.map */
|
/*# sourceMappingURL=bootstrap-reboot.css.map */
|
||||||
2
dist/css/bootstrap-reboot.css.map
vendored
2
dist/css/bootstrap-reboot.css.map
vendored
File diff suppressed because one or more lines are too long
4
dist/css/bootstrap-reboot.min.css
vendored
4
dist/css/bootstrap-reboot.min.css
vendored
|
|
@ -1,8 +1,8 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap Reboot v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap Reboot v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
* Copyright 2011-2020 Twitter, Inc.
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||||
*/*,::after,::before{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:.25}hr:not([size]){height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:.875em}mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#024dbc}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em;-ms-overflow-style:scrollbar}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}[list]::-webkit-calendar-picker-indicator{display:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit;white-space:normal}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}
|
*/*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:.25}hr:not([size]){height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-bs-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:.875em}mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#0a58ca}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;direction:ltr;unicode-bidi:bidi-override}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus{outline:dotted 1px;outline:-webkit-focus-ring-color auto 5px}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}[list]::-webkit-calendar-picker-indicator{display:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}
|
||||||
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
|
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
|
||||||
2
dist/css/bootstrap-reboot.min.css.map
vendored
2
dist/css/bootstrap-reboot.min.css.map
vendored
File diff suppressed because one or more lines are too long
426
dist/css/bootstrap-reboot.rtl.css
vendored
Normal file
426
dist/css/bootstrap-reboot.rtl.css
vendored
Normal file
|
|
@ -0,0 +1,426 @@
|
||||||
|
/*!
|
||||||
|
* Bootstrap Reboot v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||||
|
*/
|
||||||
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
|
:root {
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 1.5;
|
||||||
|
color: #212529;
|
||||||
|
background-color: #fff;
|
||||||
|
-webkit-text-size-adjust: 100%;
|
||||||
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
[tabindex="-1"]:focus:not(:focus-visible) {
|
||||||
|
outline: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
margin: 1rem 0;
|
||||||
|
color: inherit;
|
||||||
|
background-color: currentColor;
|
||||||
|
border: 0;
|
||||||
|
opacity: 0.25;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr:not([size]) {
|
||||||
|
height: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h6, h5, h4, h3, h2, h1 {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: calc(1.375rem + 1.5vw);
|
||||||
|
}
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
h1 {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: calc(1.325rem + 0.9vw);
|
||||||
|
}
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
h2 {
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: calc(1.3rem + 0.6vw);
|
||||||
|
}
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
h3 {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-size: calc(1.275rem + 0.3vw);
|
||||||
|
}
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
h4 {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h5 {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h6 {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
abbr[title],
|
||||||
|
abbr[data-bs-original-title] {
|
||||||
|
text-decoration: underline;
|
||||||
|
-webkit-text-decoration: underline dotted;
|
||||||
|
text-decoration: underline dotted;
|
||||||
|
cursor: help;
|
||||||
|
-webkit-text-decoration-skip-ink: none;
|
||||||
|
text-decoration-skip-ink: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
address {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
font-style: normal;
|
||||||
|
line-height: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
ol,
|
||||||
|
ul {
|
||||||
|
padding-right: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
ol,
|
||||||
|
ul,
|
||||||
|
dl {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
ol ol,
|
||||||
|
ul ul,
|
||||||
|
ol ul,
|
||||||
|
ul ol {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
dt {
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
dd {
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
margin: 0 0 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
b,
|
||||||
|
strong {
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
small {
|
||||||
|
font-size: 0.875em;
|
||||||
|
}
|
||||||
|
|
||||||
|
mark {
|
||||||
|
padding: 0.2em;
|
||||||
|
background-color: #fcf8e3;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub,
|
||||||
|
sup {
|
||||||
|
position: relative;
|
||||||
|
font-size: 0.75em;
|
||||||
|
line-height: 0;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub {
|
||||||
|
bottom: -0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
sup {
|
||||||
|
top: -0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #0d6efd;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
a:hover {
|
||||||
|
color: #0a58ca;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:not([href]):not([class]), a:not([href]):not([class]):hover {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre,
|
||||||
|
code,
|
||||||
|
kbd,
|
||||||
|
samp {
|
||||||
|
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||||
|
font-size: 1em;
|
||||||
|
direction: ltr ;
|
||||||
|
unicode-bidi: bidi-override;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
display: block;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
overflow: auto;
|
||||||
|
font-size: 0.875em;
|
||||||
|
}
|
||||||
|
pre code {
|
||||||
|
font-size: inherit;
|
||||||
|
color: inherit;
|
||||||
|
word-break: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
font-size: 0.875em;
|
||||||
|
color: #d63384;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
a > code {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
kbd {
|
||||||
|
padding: 0.2rem 0.4rem;
|
||||||
|
font-size: 0.875em;
|
||||||
|
color: #fff;
|
||||||
|
background-color: #212529;
|
||||||
|
border-radius: 0.2rem;
|
||||||
|
}
|
||||||
|
kbd kbd {
|
||||||
|
padding: 0;
|
||||||
|
font-size: 1em;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
figure {
|
||||||
|
margin: 0 0 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
img,
|
||||||
|
svg {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
caption-side: bottom;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
caption {
|
||||||
|
padding-top: 0.5rem;
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
color: #6c757d;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
text-align: inherit;
|
||||||
|
text-align: -webkit-match-parent;
|
||||||
|
}
|
||||||
|
|
||||||
|
thead,
|
||||||
|
tbody,
|
||||||
|
tfoot,
|
||||||
|
tr,
|
||||||
|
td,
|
||||||
|
th {
|
||||||
|
border-color: inherit;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:focus {
|
||||||
|
outline: dotted 1px;
|
||||||
|
outline: -webkit-focus-ring-color auto 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input,
|
||||||
|
button,
|
||||||
|
select,
|
||||||
|
optgroup,
|
||||||
|
textarea {
|
||||||
|
margin: 0;
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: inherit;
|
||||||
|
line-height: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
button,
|
||||||
|
select {
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
[role=button] {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
word-wrap: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
[list]::-webkit-calendar-picker-indicator {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
button,
|
||||||
|
[type=button],
|
||||||
|
[type=reset],
|
||||||
|
[type=submit] {
|
||||||
|
-webkit-appearance: button;
|
||||||
|
}
|
||||||
|
button:not(:disabled),
|
||||||
|
[type=button]:not(:disabled),
|
||||||
|
[type=reset]:not(:disabled),
|
||||||
|
[type=submit]:not(:disabled) {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-moz-focus-inner {
|
||||||
|
padding: 0;
|
||||||
|
border-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
resize: vertical;
|
||||||
|
}
|
||||||
|
|
||||||
|
fieldset {
|
||||||
|
min-width: 0;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
legend {
|
||||||
|
float: right;
|
||||||
|
width: 100%;
|
||||||
|
padding: 0;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
font-size: calc(1.275rem + 0.3vw);
|
||||||
|
line-height: inherit;
|
||||||
|
}
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
legend {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
legend + * {
|
||||||
|
clear: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-datetime-edit-fields-wrapper,
|
||||||
|
::-webkit-datetime-edit-text,
|
||||||
|
::-webkit-datetime-edit-minute,
|
||||||
|
::-webkit-datetime-edit-hour-field,
|
||||||
|
::-webkit-datetime-edit-day-field,
|
||||||
|
::-webkit-datetime-edit-month-field,
|
||||||
|
::-webkit-datetime-edit-year-field {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-inner-spin-button {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
[type=search] {
|
||||||
|
outline-offset: -2px;
|
||||||
|
-webkit-appearance: textfield;
|
||||||
|
}
|
||||||
|
|
||||||
|
[type="tel"],
|
||||||
|
[type="url"],
|
||||||
|
[type="email"],
|
||||||
|
[type="number"] {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
|
::-webkit-search-decoration {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-color-swatch-wrapper {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
::file-selector-button {
|
||||||
|
font: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-file-upload-button {
|
||||||
|
font: inherit;
|
||||||
|
-webkit-appearance: button;
|
||||||
|
}
|
||||||
|
|
||||||
|
output {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
iframe {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
summary {
|
||||||
|
display: list-item;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
progress {
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
|
[hidden] {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
/*# sourceMappingURL=bootstrap-reboot.rtl.css.map */
|
||||||
1
dist/css/bootstrap-reboot.rtl.css.map
vendored
Normal file
1
dist/css/bootstrap-reboot.rtl.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
8
dist/css/bootstrap-reboot.rtl.min.css
vendored
Normal file
8
dist/css/bootstrap-reboot.rtl.min.css
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
/*!
|
||||||
|
* Bootstrap Reboot v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
|
* Copyright 2011-2020 The Bootstrap Authors
|
||||||
|
* Copyright 2011-2020 Twitter, Inc.
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||||
|
*/*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:.25}hr:not([size]){height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-bs-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-right:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-right:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:.875em}mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#0a58ca}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;direction:ltr;unicode-bidi:bidi-override}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:right}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus{outline:dotted 1px;outline:-webkit-focus-ring-color auto 5px}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}[list]::-webkit-calendar-picker-indicator{display:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:right;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:right}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}[type=email],[type=number],[type=tel],[type=url]{direction:ltr}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}
|
||||||
|
/*# sourceMappingURL=bootstrap-reboot.rtl.min.css.map */
|
||||||
1
dist/css/bootstrap-reboot.rtl.min.css.map
vendored
Normal file
1
dist/css/bootstrap-reboot.rtl.min.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1586
dist/css/bootstrap-utilities.css
vendored
1586
dist/css/bootstrap-utilities.css
vendored
File diff suppressed because it is too large
Load diff
2
dist/css/bootstrap-utilities.css.map
vendored
2
dist/css/bootstrap-utilities.css.map
vendored
File diff suppressed because one or more lines are too long
4
dist/css/bootstrap-utilities.min.css
vendored
4
dist/css/bootstrap-utilities.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-utilities.min.css.map
vendored
2
dist/css/bootstrap-utilities.min.css.map
vendored
File diff suppressed because one or more lines are too long
4608
dist/css/bootstrap-utilities.rtl.css
vendored
Normal file
4608
dist/css/bootstrap-utilities.rtl.css
vendored
Normal file
File diff suppressed because it is too large
Load diff
1
dist/css/bootstrap-utilities.rtl.css.map
vendored
Normal file
1
dist/css/bootstrap-utilities.rtl.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
7
dist/css/bootstrap-utilities.rtl.min.css
vendored
Normal file
7
dist/css/bootstrap-utilities.rtl.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/css/bootstrap-utilities.rtl.min.css.map
vendored
Normal file
1
dist/css/bootstrap-utilities.rtl.min.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
6
dist/css/bootstrap.min.css
vendored
6
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css.map
vendored
2
dist/css/bootstrap.min.css.map
vendored
File diff suppressed because one or more lines are too long
10693
dist/css/bootstrap.rtl.css
vendored
Normal file
10693
dist/css/bootstrap.rtl.css
vendored
Normal file
File diff suppressed because it is too large
Load diff
1
dist/css/bootstrap.rtl.css.map
vendored
Normal file
1
dist/css/bootstrap.rtl.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
7
dist/css/bootstrap.rtl.min.css
vendored
Normal file
7
dist/css/bootstrap.rtl.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/css/bootstrap.rtl.min.css.map
vendored
Normal file
1
dist/css/bootstrap.rtl.min.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
5859
dist/js/bootstrap.bundle.js
vendored
5859
dist/js/bootstrap.bundle.js
vendored
File diff suppressed because it is too large
Load diff
2
dist/js/bootstrap.bundle.js.map
vendored
2
dist/js/bootstrap.bundle.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/js/bootstrap.bundle.min.js
vendored
4
dist/js/bootstrap.bundle.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.bundle.min.js.map
vendored
2
dist/js/bootstrap.bundle.min.js.map
vendored
File diff suppressed because one or more lines are too long
1829
dist/js/bootstrap.esm.js
vendored
1829
dist/js/bootstrap.esm.js
vendored
File diff suppressed because it is too large
Load diff
2
dist/js/bootstrap.esm.js.map
vendored
2
dist/js/bootstrap.esm.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/js/bootstrap.esm.min.js
vendored
4
dist/js/bootstrap.esm.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.esm.min.js.map
vendored
2
dist/js/bootstrap.esm.min.js.map
vendored
File diff suppressed because one or more lines are too long
1860
dist/js/bootstrap.js
1860
dist/js/bootstrap.js
File diff suppressed because it is too large
Load diff
2
dist/js/bootstrap.js.map
vendored
2
dist/js/bootstrap.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/js/bootstrap.min.js
vendored
4
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/bootstrap.min.js.map
vendored
2
dist/js/bootstrap.min.js.map
vendored
File diff suppressed because one or more lines are too long
156
js/dist/alert.js
vendored
156
js/dist/alert.js
vendored
|
|
@ -1,20 +1,22 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap alert.js v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap alert.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler'], factory) :
|
||||||
(global = global || self, global.Alert = factory(global.Data, global.EventHandler));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Alert = factory(global.Data, global.EventHandler));
|
||||||
}(this, (function (Data, EventHandler) { 'use strict';
|
}(this, (function (Data, EventHandler) { 'use strict';
|
||||||
|
|
||||||
Data = Data && Object.prototype.hasOwnProperty.call(Data, 'default') ? Data['default'] : Data;
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
EventHandler = EventHandler && Object.prototype.hasOwnProperty.call(EventHandler, 'default') ? EventHandler['default'] : EventHandler;
|
|
||||||
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha1): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -22,7 +24,7 @@
|
||||||
var TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
var TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||||
|
|
||||||
var getSelector = function getSelector(element) {
|
var getSelector = function getSelector(element) {
|
||||||
var selector = element.getAttribute('data-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href');
|
||||||
|
|
@ -47,8 +49,8 @@
|
||||||
transitionDuration = _window$getComputedSt.transitionDuration,
|
transitionDuration = _window$getComputedSt.transitionDuration,
|
||||||
transitionDelay = _window$getComputedSt.transitionDelay;
|
transitionDelay = _window$getComputedSt.transitionDelay;
|
||||||
|
|
||||||
var floatTransitionDuration = parseFloat(transitionDuration);
|
var floatTransitionDuration = Number.parseFloat(transitionDuration);
|
||||||
var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
var floatTransitionDelay = Number.parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
||||||
|
|
||||||
if (!floatTransitionDuration && !floatTransitionDelay) {
|
if (!floatTransitionDuration && !floatTransitionDelay) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -57,7 +59,7 @@
|
||||||
|
|
||||||
transitionDuration = transitionDuration.split(',')[0];
|
transitionDuration = transitionDuration.split(',')[0];
|
||||||
transitionDelay = transitionDelay.split(',')[0];
|
transitionDelay = transitionDelay.split(',')[0];
|
||||||
return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
|
return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
|
||||||
};
|
};
|
||||||
|
|
||||||
var triggerTransitionEnd = function triggerTransitionEnd(element) {
|
var triggerTransitionEnd = function triggerTransitionEnd(element) {
|
||||||
|
|
@ -86,13 +88,23 @@
|
||||||
var _window = window,
|
var _window = window,
|
||||||
jQuery = _window.jQuery;
|
jQuery = _window.jQuery;
|
||||||
|
|
||||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
|
||||||
return jQuery;
|
return jQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var onDOMContentLoaded = function onDOMContentLoaded(callback) {
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', callback);
|
||||||
|
} else {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||||
|
|
@ -102,12 +114,57 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
|
function BaseComponent(element) {
|
||||||
|
if (!element) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this._element = element;
|
||||||
|
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
var _proto = BaseComponent.prototype;
|
||||||
|
|
||||||
|
_proto.dispose = function dispose() {
|
||||||
|
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
||||||
|
this._element = null;
|
||||||
|
}
|
||||||
|
/** Static */
|
||||||
|
;
|
||||||
|
|
||||||
|
BaseComponent.getInstance = function getInstance(element) {
|
||||||
|
return Data__default['default'].getData(element, this.DATA_KEY);
|
||||||
|
};
|
||||||
|
|
||||||
|
_createClass(BaseComponent, null, [{
|
||||||
|
key: "VERSION",
|
||||||
|
get: function get() {
|
||||||
|
return VERSION;
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
|
||||||
|
return BaseComponent;
|
||||||
|
}();
|
||||||
|
|
||||||
|
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||||
|
/**
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
* Constants
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
var NAME = 'alert';
|
var NAME = 'alert';
|
||||||
var VERSION = '5.0.0-alpha1';
|
|
||||||
var DATA_KEY = 'bs.alert';
|
var DATA_KEY = 'bs.alert';
|
||||||
var EVENT_KEY = "." + DATA_KEY;
|
var EVENT_KEY = "." + DATA_KEY;
|
||||||
var DATA_API_KEY = '.data-api';
|
var DATA_API_KEY = '.data-api';
|
||||||
var SELECTOR_DISMISS = '[data-dismiss="alert"]';
|
var SELECTOR_DISMISS = '[data-bs-dismiss="alert"]';
|
||||||
var EVENT_CLOSE = "close" + EVENT_KEY;
|
var EVENT_CLOSE = "close" + EVENT_KEY;
|
||||||
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
var EVENT_CLOSED = "closed" + EVENT_KEY;
|
||||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||||
|
|
@ -120,25 +177,18 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Alert = /*#__PURE__*/function () {
|
var Alert = /*#__PURE__*/function (_BaseComponent) {
|
||||||
function Alert(element) {
|
_inheritsLoose(Alert, _BaseComponent);
|
||||||
this._element = element;
|
|
||||||
|
|
||||||
if (this._element) {
|
|
||||||
Data.setData(element, DATA_KEY, this);
|
|
||||||
}
|
|
||||||
} // Getters
|
|
||||||
|
|
||||||
|
function Alert() {
|
||||||
|
return _BaseComponent.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
|
||||||
var _proto = Alert.prototype;
|
var _proto = Alert.prototype;
|
||||||
|
|
||||||
// Public
|
// Public
|
||||||
_proto.close = function close(element) {
|
_proto.close = function close(element) {
|
||||||
var rootElement = this._element;
|
var rootElement = element ? this._getRootElement(element) : this._element;
|
||||||
|
|
||||||
if (element) {
|
|
||||||
rootElement = this._getRootElement(element);
|
|
||||||
}
|
|
||||||
|
|
||||||
var customEvent = this._triggerCloseEvent(rootElement);
|
var customEvent = this._triggerCloseEvent(rootElement);
|
||||||
|
|
||||||
|
|
@ -147,11 +197,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
this._removeElement(rootElement);
|
this._removeElement(rootElement);
|
||||||
};
|
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
|
||||||
Data.removeData(this._element, DATA_KEY);
|
|
||||||
this._element = null;
|
|
||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -160,7 +205,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
|
||||||
return EventHandler.trigger(element, EVENT_CLOSE);
|
return EventHandler__default['default'].trigger(element, EVENT_CLOSE);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._removeElement = function _removeElement(element) {
|
_proto._removeElement = function _removeElement(element) {
|
||||||
|
|
@ -175,7 +220,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var transitionDuration = getTransitionDurationFromElement(element);
|
var transitionDuration = getTransitionDurationFromElement(element);
|
||||||
EventHandler.one(element, TRANSITION_END, function () {
|
EventHandler__default['default'].one(element, TRANSITION_END, function () {
|
||||||
return _this._destroyElement(element);
|
return _this._destroyElement(element);
|
||||||
});
|
});
|
||||||
emulateTransitionEnd(element, transitionDuration);
|
emulateTransitionEnd(element, transitionDuration);
|
||||||
|
|
@ -186,13 +231,13 @@
|
||||||
element.parentNode.removeChild(element);
|
element.parentNode.removeChild(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
EventHandler.trigger(element, EVENT_CLOSED);
|
EventHandler__default['default'].trigger(element, EVENT_CLOSED);
|
||||||
} // Static
|
} // Static
|
||||||
;
|
;
|
||||||
|
|
||||||
Alert.jQueryInterface = function jQueryInterface(config) {
|
Alert.jQueryInterface = function jQueryInterface(config) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var data = Data.getData(this, DATA_KEY);
|
var data = Data__default['default'].getData(this, DATA_KEY);
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
data = new Alert(this);
|
data = new Alert(this);
|
||||||
|
|
@ -214,19 +259,16 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
Alert.getInstance = function getInstance(element) {
|
_createClass$1(Alert, null, [{
|
||||||
return Data.getData(element, DATA_KEY);
|
key: "DATA_KEY",
|
||||||
};
|
// Getters
|
||||||
|
|
||||||
_createClass(Alert, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return VERSION;
|
return DATA_KEY;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Alert;
|
return Alert;
|
||||||
}();
|
}(BaseComponent);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
|
|
@ -234,27 +276,29 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert.handleDismiss(new Alert()));
|
EventHandler__default['default'].on(document, EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert.handleDismiss(new Alert()));
|
||||||
var $ = getjQuery();
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* jQuery
|
* jQuery
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* add .alert to jQuery only if jQuery is present
|
* add .Alert to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* istanbul ignore if */
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
if ($) {
|
if ($) {
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||||
$.fn[NAME] = Alert.jQueryInterface;
|
$.fn[NAME] = Alert.jQueryInterface;
|
||||||
$.fn[NAME].Constructor = Alert;
|
$.fn[NAME].Constructor = Alert;
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
$.fn[NAME].noConflict = function () {
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||||
return Alert.jQueryInterface;
|
return Alert.jQueryInterface;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return Alert;
|
return Alert;
|
||||||
|
|
||||||
|
|
|
||||||
2
js/dist/alert.js.map
vendored
2
js/dist/alert.js.map
vendored
File diff suppressed because one or more lines are too long
135
js/dist/button.js
vendored
135
js/dist/button.js
vendored
|
|
@ -1,20 +1,22 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap button.js v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap button.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler'], factory) :
|
||||||
(global = global || self, global.Button = factory(global.Data, global.EventHandler));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Button = factory(global.Data, global.EventHandler));
|
||||||
}(this, (function (Data, EventHandler) { 'use strict';
|
}(this, (function (Data, EventHandler) { 'use strict';
|
||||||
|
|
||||||
Data = Data && Object.prototype.hasOwnProperty.call(Data, 'default') ? Data['default'] : Data;
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
EventHandler = EventHandler && Object.prototype.hasOwnProperty.call(EventHandler, 'default') ? EventHandler['default'] : EventHandler;
|
|
||||||
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha1): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -23,13 +25,23 @@
|
||||||
var _window = window,
|
var _window = window,
|
||||||
jQuery = _window.jQuery;
|
jQuery = _window.jQuery;
|
||||||
|
|
||||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
|
||||||
return jQuery;
|
return jQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var onDOMContentLoaded = function onDOMContentLoaded(callback) {
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', callback);
|
||||||
|
} else {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||||
|
|
@ -39,13 +51,58 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
|
function BaseComponent(element) {
|
||||||
|
if (!element) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this._element = element;
|
||||||
|
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
var _proto = BaseComponent.prototype;
|
||||||
|
|
||||||
|
_proto.dispose = function dispose() {
|
||||||
|
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
||||||
|
this._element = null;
|
||||||
|
}
|
||||||
|
/** Static */
|
||||||
|
;
|
||||||
|
|
||||||
|
BaseComponent.getInstance = function getInstance(element) {
|
||||||
|
return Data__default['default'].getData(element, this.DATA_KEY);
|
||||||
|
};
|
||||||
|
|
||||||
|
_createClass(BaseComponent, null, [{
|
||||||
|
key: "VERSION",
|
||||||
|
get: function get() {
|
||||||
|
return VERSION;
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
|
||||||
|
return BaseComponent;
|
||||||
|
}();
|
||||||
|
|
||||||
|
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||||
|
/**
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
* Constants
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
var NAME = 'button';
|
var NAME = 'button';
|
||||||
var VERSION = '5.0.0-alpha1';
|
|
||||||
var DATA_KEY = 'bs.button';
|
var DATA_KEY = 'bs.button';
|
||||||
var EVENT_KEY = "." + DATA_KEY;
|
var EVENT_KEY = "." + DATA_KEY;
|
||||||
var DATA_API_KEY = '.data-api';
|
var DATA_API_KEY = '.data-api';
|
||||||
var CLASS_NAME_ACTIVE = 'active';
|
var CLASS_NAME_ACTIVE = 'active';
|
||||||
var SELECTOR_DATA_TOGGLE = '[data-toggle="button"]';
|
var SELECTOR_DATA_TOGGLE = '[data-bs-toggle="button"]';
|
||||||
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
|
@ -53,12 +110,12 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Button = /*#__PURE__*/function () {
|
var Button = /*#__PURE__*/function (_BaseComponent) {
|
||||||
function Button(element) {
|
_inheritsLoose(Button, _BaseComponent);
|
||||||
this._element = element;
|
|
||||||
Data.setData(element, DATA_KEY, this);
|
|
||||||
} // Getters
|
|
||||||
|
|
||||||
|
function Button() {
|
||||||
|
return _BaseComponent.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
|
||||||
var _proto = Button.prototype;
|
var _proto = Button.prototype;
|
||||||
|
|
||||||
|
|
@ -66,17 +123,12 @@
|
||||||
_proto.toggle = function toggle() {
|
_proto.toggle = function toggle() {
|
||||||
// Toggle class and sync the `aria-pressed` attribute with the return value of the `.toggle()` method
|
// Toggle class and sync the `aria-pressed` attribute with the return value of the `.toggle()` method
|
||||||
this._element.setAttribute('aria-pressed', this._element.classList.toggle(CLASS_NAME_ACTIVE));
|
this._element.setAttribute('aria-pressed', this._element.classList.toggle(CLASS_NAME_ACTIVE));
|
||||||
};
|
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
|
||||||
Data.removeData(this._element, DATA_KEY);
|
|
||||||
this._element = null;
|
|
||||||
} // Static
|
} // Static
|
||||||
;
|
;
|
||||||
|
|
||||||
Button.jQueryInterface = function jQueryInterface(config) {
|
Button.jQueryInterface = function jQueryInterface(config) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var data = Data.getData(this, DATA_KEY);
|
var data = Data__default['default'].getData(this, DATA_KEY);
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
data = new Button(this);
|
data = new Button(this);
|
||||||
|
|
@ -88,19 +140,16 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
Button.getInstance = function getInstance(element) {
|
_createClass$1(Button, null, [{
|
||||||
return Data.getData(element, DATA_KEY);
|
key: "DATA_KEY",
|
||||||
};
|
// Getters
|
||||||
|
|
||||||
_createClass(Button, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return VERSION;
|
return DATA_KEY;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Button;
|
return Button;
|
||||||
}();
|
}(BaseComponent);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
|
|
@ -108,10 +157,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
EventHandler__default['default'].on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var button = event.target.closest(SELECTOR_DATA_TOGGLE);
|
var button = event.target.closest(SELECTOR_DATA_TOGGLE);
|
||||||
var data = Data.getData(button, DATA_KEY);
|
var data = Data__default['default'].getData(button, DATA_KEY);
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
data = new Button(button);
|
data = new Button(button);
|
||||||
|
|
@ -119,26 +168,28 @@
|
||||||
|
|
||||||
data.toggle();
|
data.toggle();
|
||||||
});
|
});
|
||||||
var $ = getjQuery();
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* jQuery
|
* jQuery
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* add .button to jQuery only if jQuery is present
|
* add .Button to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* istanbul ignore if */
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
if ($) {
|
if ($) {
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||||
$.fn[NAME] = Button.jQueryInterface;
|
$.fn[NAME] = Button.jQueryInterface;
|
||||||
$.fn[NAME].Constructor = Button;
|
$.fn[NAME].Constructor = Button;
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
$.fn[NAME].noConflict = function () {
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||||
return Button.jQueryInterface;
|
return Button.jQueryInterface;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return Button;
|
return Button;
|
||||||
|
|
||||||
|
|
|
||||||
2
js/dist/button.js.map
vendored
2
js/dist/button.js.map
vendored
File diff suppressed because one or more lines are too long
333
js/dist/carousel.js
vendored
333
js/dist/carousel.js
vendored
|
|
@ -1,22 +1,24 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap carousel.js v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap carousel.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/manipulator.js', './dom/selector-engine.js'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine'], factory) :
|
||||||
(global = global || self, global.Carousel = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Carousel = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
||||||
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
||||||
|
|
||||||
Data = Data && Object.prototype.hasOwnProperty.call(Data, 'default') ? Data['default'] : Data;
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
EventHandler = EventHandler && Object.prototype.hasOwnProperty.call(EventHandler, 'default') ? EventHandler['default'] : EventHandler;
|
|
||||||
Manipulator = Manipulator && Object.prototype.hasOwnProperty.call(Manipulator, 'default') ? Manipulator['default'] : Manipulator;
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
SelectorEngine = SelectorEngine && Object.prototype.hasOwnProperty.call(SelectorEngine, 'default') ? SelectorEngine['default'] : SelectorEngine;
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
||||||
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha1): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -32,7 +34,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
var getSelector = function getSelector(element) {
|
var getSelector = function getSelector(element) {
|
||||||
var selector = element.getAttribute('data-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href');
|
||||||
|
|
@ -57,8 +59,8 @@
|
||||||
transitionDuration = _window$getComputedSt.transitionDuration,
|
transitionDuration = _window$getComputedSt.transitionDuration,
|
||||||
transitionDelay = _window$getComputedSt.transitionDelay;
|
transitionDelay = _window$getComputedSt.transitionDelay;
|
||||||
|
|
||||||
var floatTransitionDuration = parseFloat(transitionDuration);
|
var floatTransitionDuration = Number.parseFloat(transitionDuration);
|
||||||
var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
var floatTransitionDelay = Number.parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
||||||
|
|
||||||
if (!floatTransitionDuration && !floatTransitionDelay) {
|
if (!floatTransitionDuration && !floatTransitionDelay) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -67,7 +69,7 @@
|
||||||
|
|
||||||
transitionDuration = transitionDuration.split(',')[0];
|
transitionDuration = transitionDuration.split(',')[0];
|
||||||
transitionDelay = transitionDelay.split(',')[0];
|
transitionDelay = transitionDelay.split(',')[0];
|
||||||
return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
|
return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
|
||||||
};
|
};
|
||||||
|
|
||||||
var triggerTransitionEnd = function triggerTransitionEnd(element) {
|
var triggerTransitionEnd = function triggerTransitionEnd(element) {
|
||||||
|
|
@ -130,18 +132,22 @@
|
||||||
var _window = window,
|
var _window = window,
|
||||||
jQuery = _window.jQuery;
|
jQuery = _window.jQuery;
|
||||||
|
|
||||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
|
||||||
return jQuery;
|
return jQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
var onDOMContentLoaded = function onDOMContentLoaded(callback) {
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', callback);
|
||||||
|
} else {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
|
@ -152,8 +158,55 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
|
function BaseComponent(element) {
|
||||||
|
if (!element) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this._element = element;
|
||||||
|
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
var _proto = BaseComponent.prototype;
|
||||||
|
|
||||||
|
_proto.dispose = function dispose() {
|
||||||
|
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
||||||
|
this._element = null;
|
||||||
|
}
|
||||||
|
/** Static */
|
||||||
|
;
|
||||||
|
|
||||||
|
BaseComponent.getInstance = function getInstance(element) {
|
||||||
|
return Data__default['default'].getData(element, this.DATA_KEY);
|
||||||
|
};
|
||||||
|
|
||||||
|
_createClass(BaseComponent, null, [{
|
||||||
|
key: "VERSION",
|
||||||
|
get: function get() {
|
||||||
|
return VERSION;
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
|
||||||
|
return BaseComponent;
|
||||||
|
}();
|
||||||
|
|
||||||
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||||
|
|
||||||
|
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||||
|
/**
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
* Constants
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
var NAME = 'carousel';
|
var NAME = 'carousel';
|
||||||
var VERSION = '5.0.0-alpha1';
|
|
||||||
var DATA_KEY = 'bs.carousel';
|
var DATA_KEY = 'bs.carousel';
|
||||||
var EVENT_KEY = "." + DATA_KEY;
|
var EVENT_KEY = "." + DATA_KEY;
|
||||||
var DATA_API_KEY = '.data-api';
|
var DATA_API_KEY = '.data-api';
|
||||||
|
|
@ -198,8 +251,8 @@
|
||||||
var CLASS_NAME_CAROUSEL = 'carousel';
|
var CLASS_NAME_CAROUSEL = 'carousel';
|
||||||
var CLASS_NAME_ACTIVE = 'active';
|
var CLASS_NAME_ACTIVE = 'active';
|
||||||
var CLASS_NAME_SLIDE = 'slide';
|
var CLASS_NAME_SLIDE = 'slide';
|
||||||
var CLASS_NAME_RIGHT = 'carousel-item-right';
|
var CLASS_NAME_END = 'carousel-item-end';
|
||||||
var CLASS_NAME_LEFT = 'carousel-item-left';
|
var CLASS_NAME_START = 'carousel-item-start';
|
||||||
var CLASS_NAME_NEXT = 'carousel-item-next';
|
var CLASS_NAME_NEXT = 'carousel-item-next';
|
||||||
var CLASS_NAME_PREV = 'carousel-item-prev';
|
var CLASS_NAME_PREV = 'carousel-item-prev';
|
||||||
var CLASS_NAME_POINTER_EVENT = 'pointer-event';
|
var CLASS_NAME_POINTER_EVENT = 'pointer-event';
|
||||||
|
|
@ -209,8 +262,8 @@
|
||||||
var SELECTOR_ITEM_IMG = '.carousel-item img';
|
var SELECTOR_ITEM_IMG = '.carousel-item img';
|
||||||
var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
|
var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
|
||||||
var SELECTOR_INDICATORS = '.carousel-indicators';
|
var SELECTOR_INDICATORS = '.carousel-indicators';
|
||||||
var SELECTOR_DATA_SLIDE = '[data-slide], [data-slide-to]';
|
var SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]';
|
||||||
var SELECTOR_DATA_RIDE = '[data-ride="carousel"]';
|
var SELECTOR_DATA_RIDE = '[data-bs-ride="carousel"]';
|
||||||
var PointerType = {
|
var PointerType = {
|
||||||
TOUCH: 'touch',
|
TOUCH: 'touch',
|
||||||
PEN: 'pen'
|
PEN: 'pen'
|
||||||
|
|
@ -221,25 +274,29 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Carousel = /*#__PURE__*/function () {
|
var Carousel = /*#__PURE__*/function (_BaseComponent) {
|
||||||
|
_inheritsLoose(Carousel, _BaseComponent);
|
||||||
|
|
||||||
function Carousel(element, config) {
|
function Carousel(element, config) {
|
||||||
this._items = null;
|
var _this;
|
||||||
this._interval = null;
|
|
||||||
this._activeElement = null;
|
|
||||||
this._isPaused = false;
|
|
||||||
this._isSliding = false;
|
|
||||||
this.touchTimeout = null;
|
|
||||||
this.touchStartX = 0;
|
|
||||||
this.touchDeltaX = 0;
|
|
||||||
this._config = this._getConfig(config);
|
|
||||||
this._element = element;
|
|
||||||
this._indicatorsElement = SelectorEngine.findOne(SELECTOR_INDICATORS, this._element);
|
|
||||||
this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;
|
|
||||||
this._pointerEvent = Boolean(window.PointerEvent);
|
|
||||||
|
|
||||||
this._addEventListeners();
|
_this = _BaseComponent.call(this, element) || this;
|
||||||
|
_this._items = null;
|
||||||
|
_this._interval = null;
|
||||||
|
_this._activeElement = null;
|
||||||
|
_this._isPaused = false;
|
||||||
|
_this._isSliding = false;
|
||||||
|
_this.touchTimeout = null;
|
||||||
|
_this.touchStartX = 0;
|
||||||
|
_this.touchDeltaX = 0;
|
||||||
|
_this._config = _this._getConfig(config);
|
||||||
|
_this._indicatorsElement = SelectorEngine__default['default'].findOne(SELECTOR_INDICATORS, _this._element);
|
||||||
|
_this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;
|
||||||
|
_this._pointerEvent = Boolean(window.PointerEvent);
|
||||||
|
|
||||||
Data.setData(element, DATA_KEY, this);
|
_this._addEventListeners();
|
||||||
|
|
||||||
|
return _this;
|
||||||
} // Getters
|
} // Getters
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -271,7 +328,7 @@
|
||||||
this._isPaused = true;
|
this._isPaused = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SelectorEngine.findOne(SELECTOR_NEXT_PREV, this._element)) {
|
if (SelectorEngine__default['default'].findOne(SELECTOR_NEXT_PREV, this._element)) {
|
||||||
triggerTransitionEnd(this._element);
|
triggerTransitionEnd(this._element);
|
||||||
this.cycle(true);
|
this.cycle(true);
|
||||||
}
|
}
|
||||||
|
|
@ -291,14 +348,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._config && this._config.interval && !this._isPaused) {
|
if (this._config && this._config.interval && !this._isPaused) {
|
||||||
|
this._updateInterval();
|
||||||
|
|
||||||
this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval);
|
this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.to = function to(index) {
|
_proto.to = function to(index) {
|
||||||
var _this = this;
|
var _this2 = this;
|
||||||
|
|
||||||
this._activeElement = SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element);
|
this._activeElement = SelectorEngine__default['default'].findOne(SELECTOR_ACTIVE_ITEM, this._element);
|
||||||
|
|
||||||
var activeIndex = this._getItemIndex(this._activeElement);
|
var activeIndex = this._getItemIndex(this._activeElement);
|
||||||
|
|
||||||
|
|
@ -307,8 +366,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._isSliding) {
|
if (this._isSliding) {
|
||||||
EventHandler.one(this._element, EVENT_SLID, function () {
|
EventHandler__default['default'].one(this._element, EVENT_SLID, function () {
|
||||||
return _this.to(index);
|
return _this2.to(index);
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -325,11 +384,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
_proto.dispose = function dispose() {
|
||||||
EventHandler.off(this._element, EVENT_KEY);
|
_BaseComponent.prototype.dispose.call(this);
|
||||||
Data.removeData(this._element, DATA_KEY);
|
|
||||||
|
EventHandler__default['default'].off(this._element, EVENT_KEY);
|
||||||
this._items = null;
|
this._items = null;
|
||||||
this._config = null;
|
this._config = null;
|
||||||
this._element = null;
|
|
||||||
this._interval = null;
|
this._interval = null;
|
||||||
this._isPaused = null;
|
this._isPaused = null;
|
||||||
this._isSliding = null;
|
this._isSliding = null;
|
||||||
|
|
@ -339,7 +398,7 @@
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto._getConfig = function _getConfig(config) {
|
_proto._getConfig = function _getConfig(config) {
|
||||||
config = _objectSpread(_objectSpread({}, Default), config);
|
config = _extends({}, Default, config);
|
||||||
typeCheckConfig(NAME, config, DefaultType);
|
typeCheckConfig(NAME, config, DefaultType);
|
||||||
return config;
|
return config;
|
||||||
};
|
};
|
||||||
|
|
@ -365,20 +424,20 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._addEventListeners = function _addEventListeners() {
|
_proto._addEventListeners = function _addEventListeners() {
|
||||||
var _this2 = this;
|
var _this3 = this;
|
||||||
|
|
||||||
if (this._config.keyboard) {
|
if (this._config.keyboard) {
|
||||||
EventHandler.on(this._element, EVENT_KEYDOWN, function (event) {
|
EventHandler__default['default'].on(this._element, EVENT_KEYDOWN, function (event) {
|
||||||
return _this2._keydown(event);
|
return _this3._keydown(event);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._config.pause === 'hover') {
|
if (this._config.pause === 'hover') {
|
||||||
EventHandler.on(this._element, EVENT_MOUSEENTER, function (event) {
|
EventHandler__default['default'].on(this._element, EVENT_MOUSEENTER, function (event) {
|
||||||
return _this2.pause(event);
|
return _this3.pause(event);
|
||||||
});
|
});
|
||||||
EventHandler.on(this._element, EVENT_MOUSELEAVE, function (event) {
|
EventHandler__default['default'].on(this._element, EVENT_MOUSELEAVE, function (event) {
|
||||||
return _this2.cycle(event);
|
return _this3.cycle(event);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -388,33 +447,33 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._addTouchEventListeners = function _addTouchEventListeners() {
|
_proto._addTouchEventListeners = function _addTouchEventListeners() {
|
||||||
var _this3 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
var start = function start(event) {
|
var start = function start(event) {
|
||||||
if (_this3._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
|
if (_this4._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
|
||||||
_this3.touchStartX = event.clientX;
|
_this4.touchStartX = event.clientX;
|
||||||
} else if (!_this3._pointerEvent) {
|
} else if (!_this4._pointerEvent) {
|
||||||
_this3.touchStartX = event.touches[0].clientX;
|
_this4.touchStartX = event.touches[0].clientX;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var move = function move(event) {
|
var move = function move(event) {
|
||||||
// ensure swiping with one touch and not pinching
|
// ensure swiping with one touch and not pinching
|
||||||
if (event.touches && event.touches.length > 1) {
|
if (event.touches && event.touches.length > 1) {
|
||||||
_this3.touchDeltaX = 0;
|
_this4.touchDeltaX = 0;
|
||||||
} else {
|
} else {
|
||||||
_this3.touchDeltaX = event.touches[0].clientX - _this3.touchStartX;
|
_this4.touchDeltaX = event.touches[0].clientX - _this4.touchStartX;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var end = function end(event) {
|
var end = function end(event) {
|
||||||
if (_this3._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
|
if (_this4._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
|
||||||
_this3.touchDeltaX = event.clientX - _this3.touchStartX;
|
_this4.touchDeltaX = event.clientX - _this4.touchStartX;
|
||||||
}
|
}
|
||||||
|
|
||||||
_this3._handleSwipe();
|
_this4._handleSwipe();
|
||||||
|
|
||||||
if (_this3._config.pause === 'hover') {
|
if (_this4._config.pause === 'hover') {
|
||||||
// If it's a touch-enabled device, mouseenter/leave are fired as
|
// If it's a touch-enabled device, mouseenter/leave are fired as
|
||||||
// part of the mouse compatibility events on first tap - the carousel
|
// part of the mouse compatibility events on first tap - the carousel
|
||||||
// would stop cycling until user tapped out of it;
|
// would stop cycling until user tapped out of it;
|
||||||
|
|
@ -422,41 +481,41 @@
|
||||||
// (as if it's the second time we tap on it, mouseenter compat event
|
// (as if it's the second time we tap on it, mouseenter compat event
|
||||||
// is NOT fired) and after a timeout (to allow for mouse compatibility
|
// is NOT fired) and after a timeout (to allow for mouse compatibility
|
||||||
// events to fire) we explicitly restart cycling
|
// events to fire) we explicitly restart cycling
|
||||||
_this3.pause();
|
_this4.pause();
|
||||||
|
|
||||||
if (_this3.touchTimeout) {
|
if (_this4.touchTimeout) {
|
||||||
clearTimeout(_this3.touchTimeout);
|
clearTimeout(_this4.touchTimeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
_this3.touchTimeout = setTimeout(function (event) {
|
_this4.touchTimeout = setTimeout(function (event) {
|
||||||
return _this3.cycle(event);
|
return _this4.cycle(event);
|
||||||
}, TOUCHEVENT_COMPAT_WAIT + _this3._config.interval);
|
}, TOUCHEVENT_COMPAT_WAIT + _this4._config.interval);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
SelectorEngine.find(SELECTOR_ITEM_IMG, this._element).forEach(function (itemImg) {
|
SelectorEngine__default['default'].find(SELECTOR_ITEM_IMG, this._element).forEach(function (itemImg) {
|
||||||
EventHandler.on(itemImg, EVENT_DRAG_START, function (e) {
|
EventHandler__default['default'].on(itemImg, EVENT_DRAG_START, function (e) {
|
||||||
return e.preventDefault();
|
return e.preventDefault();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this._pointerEvent) {
|
if (this._pointerEvent) {
|
||||||
EventHandler.on(this._element, EVENT_POINTERDOWN, function (event) {
|
EventHandler__default['default'].on(this._element, EVENT_POINTERDOWN, function (event) {
|
||||||
return start(event);
|
return start(event);
|
||||||
});
|
});
|
||||||
EventHandler.on(this._element, EVENT_POINTERUP, function (event) {
|
EventHandler__default['default'].on(this._element, EVENT_POINTERUP, function (event) {
|
||||||
return end(event);
|
return end(event);
|
||||||
});
|
});
|
||||||
|
|
||||||
this._element.classList.add(CLASS_NAME_POINTER_EVENT);
|
this._element.classList.add(CLASS_NAME_POINTER_EVENT);
|
||||||
} else {
|
} else {
|
||||||
EventHandler.on(this._element, EVENT_TOUCHSTART, function (event) {
|
EventHandler__default['default'].on(this._element, EVENT_TOUCHSTART, function (event) {
|
||||||
return start(event);
|
return start(event);
|
||||||
});
|
});
|
||||||
EventHandler.on(this._element, EVENT_TOUCHMOVE, function (event) {
|
EventHandler__default['default'].on(this._element, EVENT_TOUCHMOVE, function (event) {
|
||||||
return move(event);
|
return move(event);
|
||||||
});
|
});
|
||||||
EventHandler.on(this._element, EVENT_TOUCHEND, function (event) {
|
EventHandler__default['default'].on(this._element, EVENT_TOUCHEND, function (event) {
|
||||||
return end(event);
|
return end(event);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -481,7 +540,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getItemIndex = function _getItemIndex(element) {
|
_proto._getItemIndex = function _getItemIndex(element) {
|
||||||
this._items = element && element.parentNode ? SelectorEngine.find(SELECTOR_ITEM, element.parentNode) : [];
|
this._items = element && element.parentNode ? SelectorEngine__default['default'].find(SELECTOR_ITEM, element.parentNode) : [];
|
||||||
return this._items.indexOf(element);
|
return this._items.indexOf(element);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -506,9 +565,9 @@
|
||||||
_proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {
|
_proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {
|
||||||
var targetIndex = this._getItemIndex(relatedTarget);
|
var targetIndex = this._getItemIndex(relatedTarget);
|
||||||
|
|
||||||
var fromIndex = this._getItemIndex(SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element));
|
var fromIndex = this._getItemIndex(SelectorEngine__default['default'].findOne(SELECTOR_ACTIVE_ITEM, this._element));
|
||||||
|
|
||||||
return EventHandler.trigger(this._element, EVENT_SLIDE, {
|
return EventHandler__default['default'].trigger(this._element, EVENT_SLIDE, {
|
||||||
relatedTarget: relatedTarget,
|
relatedTarget: relatedTarget,
|
||||||
direction: eventDirectionName,
|
direction: eventDirectionName,
|
||||||
from: fromIndex,
|
from: fromIndex,
|
||||||
|
|
@ -518,7 +577,7 @@
|
||||||
|
|
||||||
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
|
||||||
if (this._indicatorsElement) {
|
if (this._indicatorsElement) {
|
||||||
var indicators = SelectorEngine.find(SELECTOR_ACTIVE, this._indicatorsElement);
|
var indicators = SelectorEngine__default['default'].find(SELECTOR_ACTIVE, this._indicatorsElement);
|
||||||
|
|
||||||
for (var i = 0; i < indicators.length; i++) {
|
for (var i = 0; i < indicators.length; i++) {
|
||||||
indicators[i].classList.remove(CLASS_NAME_ACTIVE);
|
indicators[i].classList.remove(CLASS_NAME_ACTIVE);
|
||||||
|
|
@ -532,10 +591,27 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._slide = function _slide(direction, element) {
|
_proto._updateInterval = function _updateInterval() {
|
||||||
var _this4 = this;
|
var element = this._activeElement || SelectorEngine__default['default'].findOne(SELECTOR_ACTIVE_ITEM, this._element);
|
||||||
|
|
||||||
var activeElement = SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element);
|
if (!element) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var elementInterval = Number.parseInt(element.getAttribute('data-bs-interval'), 10);
|
||||||
|
|
||||||
|
if (elementInterval) {
|
||||||
|
this._config.defaultInterval = this._config.defaultInterval || this._config.interval;
|
||||||
|
this._config.interval = elementInterval;
|
||||||
|
} else {
|
||||||
|
this._config.interval = this._config.defaultInterval || this._config.interval;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto._slide = function _slide(direction, element) {
|
||||||
|
var _this5 = this;
|
||||||
|
|
||||||
|
var activeElement = SelectorEngine__default['default'].findOne(SELECTOR_ACTIVE_ITEM, this._element);
|
||||||
|
|
||||||
var activeElementIndex = this._getItemIndex(activeElement);
|
var activeElementIndex = this._getItemIndex(activeElement);
|
||||||
|
|
||||||
|
|
@ -549,11 +625,11 @@
|
||||||
var eventDirectionName;
|
var eventDirectionName;
|
||||||
|
|
||||||
if (direction === DIRECTION_NEXT) {
|
if (direction === DIRECTION_NEXT) {
|
||||||
directionalClassName = CLASS_NAME_LEFT;
|
directionalClassName = CLASS_NAME_START;
|
||||||
orderClassName = CLASS_NAME_NEXT;
|
orderClassName = CLASS_NAME_NEXT;
|
||||||
eventDirectionName = DIRECTION_LEFT;
|
eventDirectionName = DIRECTION_LEFT;
|
||||||
} else {
|
} else {
|
||||||
directionalClassName = CLASS_NAME_RIGHT;
|
directionalClassName = CLASS_NAME_END;
|
||||||
orderClassName = CLASS_NAME_PREV;
|
orderClassName = CLASS_NAME_PREV;
|
||||||
eventDirectionName = DIRECTION_RIGHT;
|
eventDirectionName = DIRECTION_RIGHT;
|
||||||
}
|
}
|
||||||
|
|
@ -582,28 +658,21 @@
|
||||||
|
|
||||||
this._setActiveIndicatorElement(nextElement);
|
this._setActiveIndicatorElement(nextElement);
|
||||||
|
|
||||||
|
this._activeElement = nextElement;
|
||||||
|
|
||||||
if (this._element.classList.contains(CLASS_NAME_SLIDE)) {
|
if (this._element.classList.contains(CLASS_NAME_SLIDE)) {
|
||||||
nextElement.classList.add(orderClassName);
|
nextElement.classList.add(orderClassName);
|
||||||
reflow(nextElement);
|
reflow(nextElement);
|
||||||
activeElement.classList.add(directionalClassName);
|
activeElement.classList.add(directionalClassName);
|
||||||
nextElement.classList.add(directionalClassName);
|
nextElement.classList.add(directionalClassName);
|
||||||
var nextElementInterval = parseInt(nextElement.getAttribute('data-interval'), 10);
|
|
||||||
|
|
||||||
if (nextElementInterval) {
|
|
||||||
this._config.defaultInterval = this._config.defaultInterval || this._config.interval;
|
|
||||||
this._config.interval = nextElementInterval;
|
|
||||||
} else {
|
|
||||||
this._config.interval = this._config.defaultInterval || this._config.interval;
|
|
||||||
}
|
|
||||||
|
|
||||||
var transitionDuration = getTransitionDurationFromElement(activeElement);
|
var transitionDuration = getTransitionDurationFromElement(activeElement);
|
||||||
EventHandler.one(activeElement, TRANSITION_END, function () {
|
EventHandler__default['default'].one(activeElement, TRANSITION_END, function () {
|
||||||
nextElement.classList.remove(directionalClassName, orderClassName);
|
nextElement.classList.remove(directionalClassName, orderClassName);
|
||||||
nextElement.classList.add(CLASS_NAME_ACTIVE);
|
nextElement.classList.add(CLASS_NAME_ACTIVE);
|
||||||
activeElement.classList.remove(CLASS_NAME_ACTIVE, orderClassName, directionalClassName);
|
activeElement.classList.remove(CLASS_NAME_ACTIVE, orderClassName, directionalClassName);
|
||||||
_this4._isSliding = false;
|
_this5._isSliding = false;
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
EventHandler.trigger(_this4._element, EVENT_SLID, {
|
EventHandler__default['default'].trigger(_this5._element, EVENT_SLID, {
|
||||||
relatedTarget: nextElement,
|
relatedTarget: nextElement,
|
||||||
direction: eventDirectionName,
|
direction: eventDirectionName,
|
||||||
from: activeElementIndex,
|
from: activeElementIndex,
|
||||||
|
|
@ -616,7 +685,7 @@
|
||||||
activeElement.classList.remove(CLASS_NAME_ACTIVE);
|
activeElement.classList.remove(CLASS_NAME_ACTIVE);
|
||||||
nextElement.classList.add(CLASS_NAME_ACTIVE);
|
nextElement.classList.add(CLASS_NAME_ACTIVE);
|
||||||
this._isSliding = false;
|
this._isSliding = false;
|
||||||
EventHandler.trigger(this._element, EVENT_SLID, {
|
EventHandler__default['default'].trigger(this._element, EVENT_SLID, {
|
||||||
relatedTarget: nextElement,
|
relatedTarget: nextElement,
|
||||||
direction: eventDirectionName,
|
direction: eventDirectionName,
|
||||||
from: activeElementIndex,
|
from: activeElementIndex,
|
||||||
|
|
@ -631,12 +700,12 @@
|
||||||
;
|
;
|
||||||
|
|
||||||
Carousel.carouselInterface = function carouselInterface(element, config) {
|
Carousel.carouselInterface = function carouselInterface(element, config) {
|
||||||
var data = Data.getData(element, DATA_KEY);
|
var data = Data__default['default'].getData(element, DATA_KEY);
|
||||||
|
|
||||||
var _config = _objectSpread(_objectSpread({}, Default), Manipulator.getDataAttributes(element));
|
var _config = _extends({}, Default, Manipulator__default['default'].getDataAttributes(element));
|
||||||
|
|
||||||
if (typeof config === 'object') {
|
if (typeof config === 'object') {
|
||||||
_config = _objectSpread(_objectSpread({}, _config), config);
|
_config = _extends({}, _config, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
var action = typeof config === 'string' ? config : _config.slide;
|
var action = typeof config === 'string' ? config : _config.slide;
|
||||||
|
|
@ -672,9 +741,9 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var config = _objectSpread(_objectSpread({}, Manipulator.getDataAttributes(target)), Manipulator.getDataAttributes(this));
|
var config = _extends({}, Manipulator__default['default'].getDataAttributes(target), Manipulator__default['default'].getDataAttributes(this));
|
||||||
|
|
||||||
var slideIndex = this.getAttribute('data-slide-to');
|
var slideIndex = this.getAttribute('data-bs-slide-to');
|
||||||
|
|
||||||
if (slideIndex) {
|
if (slideIndex) {
|
||||||
config.interval = false;
|
config.interval = false;
|
||||||
|
|
@ -683,30 +752,26 @@
|
||||||
Carousel.carouselInterface(target, config);
|
Carousel.carouselInterface(target, config);
|
||||||
|
|
||||||
if (slideIndex) {
|
if (slideIndex) {
|
||||||
Data.getData(target, DATA_KEY).to(slideIndex);
|
Data__default['default'].getData(target, DATA_KEY).to(slideIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
};
|
};
|
||||||
|
|
||||||
Carousel.getInstance = function getInstance(element) {
|
_createClass$1(Carousel, null, [{
|
||||||
return Data.getData(element, DATA_KEY);
|
|
||||||
};
|
|
||||||
|
|
||||||
_createClass(Carousel, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
key: "Default",
|
key: "Default",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return Default;
|
return Default;
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: "DATA_KEY",
|
||||||
|
get: function get() {
|
||||||
|
return DATA_KEY;
|
||||||
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Carousel;
|
return Carousel;
|
||||||
}();
|
}(BaseComponent);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
|
|
@ -714,34 +779,36 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_SLIDE, Carousel.dataApiClickHandler);
|
EventHandler__default['default'].on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_SLIDE, Carousel.dataApiClickHandler);
|
||||||
EventHandler.on(window, EVENT_LOAD_DATA_API, function () {
|
EventHandler__default['default'].on(window, EVENT_LOAD_DATA_API, function () {
|
||||||
var carousels = SelectorEngine.find(SELECTOR_DATA_RIDE);
|
var carousels = SelectorEngine__default['default'].find(SELECTOR_DATA_RIDE);
|
||||||
|
|
||||||
for (var i = 0, len = carousels.length; i < len; i++) {
|
for (var i = 0, len = carousels.length; i < len; i++) {
|
||||||
Carousel.carouselInterface(carousels[i], Data.getData(carousels[i], DATA_KEY));
|
Carousel.carouselInterface(carousels[i], Data__default['default'].getData(carousels[i], DATA_KEY));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var $ = getjQuery();
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* jQuery
|
* jQuery
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* add .carousel to jQuery only if jQuery is present
|
* add .Carousel to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* istanbul ignore if */
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
if ($) {
|
if ($) {
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||||
$.fn[NAME] = Carousel.jQueryInterface;
|
$.fn[NAME] = Carousel.jQueryInterface;
|
||||||
$.fn[NAME].Constructor = Carousel;
|
$.fn[NAME].Constructor = Carousel;
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
$.fn[NAME].noConflict = function () {
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||||
return Carousel.jQueryInterface;
|
return Carousel.jQueryInterface;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return Carousel;
|
return Carousel;
|
||||||
|
|
||||||
|
|
|
||||||
2
js/dist/carousel.js.map
vendored
2
js/dist/carousel.js.map
vendored
File diff suppressed because one or more lines are too long
272
js/dist/collapse.js
vendored
272
js/dist/collapse.js
vendored
|
|
@ -1,22 +1,24 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap collapse.js v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap collapse.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/manipulator.js', './dom/selector-engine.js'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine'], factory) :
|
||||||
(global = global || self, global.Collapse = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Collapse = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
||||||
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
||||||
|
|
||||||
Data = Data && Object.prototype.hasOwnProperty.call(Data, 'default') ? Data['default'] : Data;
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
EventHandler = EventHandler && Object.prototype.hasOwnProperty.call(EventHandler, 'default') ? EventHandler['default'] : EventHandler;
|
|
||||||
Manipulator = Manipulator && Object.prototype.hasOwnProperty.call(Manipulator, 'default') ? Manipulator['default'] : Manipulator;
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
SelectorEngine = SelectorEngine && Object.prototype.hasOwnProperty.call(SelectorEngine, 'default') ? SelectorEngine['default'] : SelectorEngine;
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
||||||
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha1): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -32,7 +34,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
var getSelector = function getSelector(element) {
|
var getSelector = function getSelector(element) {
|
||||||
var selector = element.getAttribute('data-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href');
|
||||||
|
|
@ -67,8 +69,8 @@
|
||||||
transitionDuration = _window$getComputedSt.transitionDuration,
|
transitionDuration = _window$getComputedSt.transitionDuration,
|
||||||
transitionDelay = _window$getComputedSt.transitionDelay;
|
transitionDelay = _window$getComputedSt.transitionDelay;
|
||||||
|
|
||||||
var floatTransitionDuration = parseFloat(transitionDuration);
|
var floatTransitionDuration = Number.parseFloat(transitionDuration);
|
||||||
var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
var floatTransitionDelay = Number.parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
||||||
|
|
||||||
if (!floatTransitionDuration && !floatTransitionDelay) {
|
if (!floatTransitionDuration && !floatTransitionDelay) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -77,7 +79,7 @@
|
||||||
|
|
||||||
transitionDuration = transitionDuration.split(',')[0];
|
transitionDuration = transitionDuration.split(',')[0];
|
||||||
transitionDelay = transitionDelay.split(',')[0];
|
transitionDelay = transitionDelay.split(',')[0];
|
||||||
return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
|
return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
|
||||||
};
|
};
|
||||||
|
|
||||||
var triggerTransitionEnd = function triggerTransitionEnd(element) {
|
var triggerTransitionEnd = function triggerTransitionEnd(element) {
|
||||||
|
|
@ -126,18 +128,22 @@
|
||||||
var _window = window,
|
var _window = window,
|
||||||
jQuery = _window.jQuery;
|
jQuery = _window.jQuery;
|
||||||
|
|
||||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
|
||||||
return jQuery;
|
return jQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
var onDOMContentLoaded = function onDOMContentLoaded(callback) {
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', callback);
|
||||||
|
} else {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
|
@ -148,8 +154,55 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
|
function BaseComponent(element) {
|
||||||
|
if (!element) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this._element = element;
|
||||||
|
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
var _proto = BaseComponent.prototype;
|
||||||
|
|
||||||
|
_proto.dispose = function dispose() {
|
||||||
|
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
||||||
|
this._element = null;
|
||||||
|
}
|
||||||
|
/** Static */
|
||||||
|
;
|
||||||
|
|
||||||
|
BaseComponent.getInstance = function getInstance(element) {
|
||||||
|
return Data__default['default'].getData(element, this.DATA_KEY);
|
||||||
|
};
|
||||||
|
|
||||||
|
_createClass(BaseComponent, null, [{
|
||||||
|
key: "VERSION",
|
||||||
|
get: function get() {
|
||||||
|
return VERSION;
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
|
||||||
|
return BaseComponent;
|
||||||
|
}();
|
||||||
|
|
||||||
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||||
|
|
||||||
|
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||||
|
/**
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
* Constants
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
var NAME = 'collapse';
|
var NAME = 'collapse';
|
||||||
var VERSION = '5.0.0-alpha1';
|
|
||||||
var DATA_KEY = 'bs.collapse';
|
var DATA_KEY = 'bs.collapse';
|
||||||
var EVENT_KEY = "." + DATA_KEY;
|
var EVENT_KEY = "." + DATA_KEY;
|
||||||
var DATA_API_KEY = '.data-api';
|
var DATA_API_KEY = '.data-api';
|
||||||
|
|
@ -173,46 +226,50 @@
|
||||||
var WIDTH = 'width';
|
var WIDTH = 'width';
|
||||||
var HEIGHT = 'height';
|
var HEIGHT = 'height';
|
||||||
var SELECTOR_ACTIVES = '.show, .collapsing';
|
var SELECTOR_ACTIVES = '.show, .collapsing';
|
||||||
var SELECTOR_DATA_TOGGLE = '[data-toggle="collapse"]';
|
var SELECTOR_DATA_TOGGLE = '[data-bs-toggle="collapse"]';
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Class Definition
|
* Class Definition
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Collapse = /*#__PURE__*/function () {
|
var Collapse = /*#__PURE__*/function (_BaseComponent) {
|
||||||
|
_inheritsLoose(Collapse, _BaseComponent);
|
||||||
|
|
||||||
function Collapse(element, config) {
|
function Collapse(element, config) {
|
||||||
this._isTransitioning = false;
|
var _this;
|
||||||
this._element = element;
|
|
||||||
this._config = this._getConfig(config);
|
_this = _BaseComponent.call(this, element) || this;
|
||||||
this._triggerArray = SelectorEngine.find(SELECTOR_DATA_TOGGLE + "[href=\"#" + element.id + "\"]," + (SELECTOR_DATA_TOGGLE + "[data-target=\"#" + element.id + "\"]"));
|
_this._isTransitioning = false;
|
||||||
var toggleList = SelectorEngine.find(SELECTOR_DATA_TOGGLE);
|
_this._config = _this._getConfig(config);
|
||||||
|
_this._triggerArray = SelectorEngine__default['default'].find(SELECTOR_DATA_TOGGLE + "[href=\"#" + element.id + "\"]," + (SELECTOR_DATA_TOGGLE + "[data-bs-target=\"#" + element.id + "\"]"));
|
||||||
|
var toggleList = SelectorEngine__default['default'].find(SELECTOR_DATA_TOGGLE);
|
||||||
|
|
||||||
for (var i = 0, len = toggleList.length; i < len; i++) {
|
for (var i = 0, len = toggleList.length; i < len; i++) {
|
||||||
var elem = toggleList[i];
|
var elem = toggleList[i];
|
||||||
var selector = getSelectorFromElement(elem);
|
var selector = getSelectorFromElement(elem);
|
||||||
var filterElement = SelectorEngine.find(selector).filter(function (foundElem) {
|
var filterElement = SelectorEngine__default['default'].find(selector).filter(function (foundElem) {
|
||||||
return foundElem === element;
|
return foundElem === element;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (selector !== null && filterElement.length) {
|
if (selector !== null && filterElement.length) {
|
||||||
this._selector = selector;
|
_this._selector = selector;
|
||||||
|
|
||||||
this._triggerArray.push(elem);
|
_this._triggerArray.push(elem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this._parent = this._config.parent ? this._getParent() : null;
|
_this._parent = _this._config.parent ? _this._getParent() : null;
|
||||||
|
|
||||||
if (!this._config.parent) {
|
if (!_this._config.parent) {
|
||||||
this._addAriaAndCollapsedClass(this._element, this._triggerArray);
|
_this._addAriaAndCollapsedClass(_this._element, _this._triggerArray);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._config.toggle) {
|
if (_this._config.toggle) {
|
||||||
this.toggle();
|
_this.toggle();
|
||||||
}
|
}
|
||||||
|
|
||||||
Data.setData(element, DATA_KEY, this);
|
return _this;
|
||||||
} // Getters
|
} // Getters
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -228,7 +285,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.show = function show() {
|
_proto.show = function show() {
|
||||||
var _this = this;
|
var _this2 = this;
|
||||||
|
|
||||||
if (this._isTransitioning || this._element.classList.contains(CLASS_NAME_SHOW)) {
|
if (this._isTransitioning || this._element.classList.contains(CLASS_NAME_SHOW)) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -238,9 +295,9 @@
|
||||||
var activesData;
|
var activesData;
|
||||||
|
|
||||||
if (this._parent) {
|
if (this._parent) {
|
||||||
actives = SelectorEngine.find(SELECTOR_ACTIVES, this._parent).filter(function (elem) {
|
actives = SelectorEngine__default['default'].find(SELECTOR_ACTIVES, this._parent).filter(function (elem) {
|
||||||
if (typeof _this._config.parent === 'string') {
|
if (typeof _this2._config.parent === 'string') {
|
||||||
return elem.getAttribute('data-parent') === _this._config.parent;
|
return elem.getAttribute('data-bs-parent') === _this2._config.parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
return elem.classList.contains(CLASS_NAME_COLLAPSE);
|
return elem.classList.contains(CLASS_NAME_COLLAPSE);
|
||||||
|
|
@ -251,20 +308,20 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var container = SelectorEngine.findOne(this._selector);
|
var container = SelectorEngine__default['default'].findOne(this._selector);
|
||||||
|
|
||||||
if (actives) {
|
if (actives) {
|
||||||
var tempActiveData = actives.filter(function (elem) {
|
var tempActiveData = actives.find(function (elem) {
|
||||||
return container !== elem;
|
return container !== elem;
|
||||||
});
|
});
|
||||||
activesData = tempActiveData[0] ? Data.getData(tempActiveData[0], DATA_KEY) : null;
|
activesData = tempActiveData ? Data__default['default'].getData(tempActiveData, DATA_KEY) : null;
|
||||||
|
|
||||||
if (activesData && activesData._isTransitioning) {
|
if (activesData && activesData._isTransitioning) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var startEvent = EventHandler.trigger(this._element, EVENT_SHOW);
|
var startEvent = EventHandler__default['default'].trigger(this._element, EVENT_SHOW);
|
||||||
|
|
||||||
if (startEvent.defaultPrevented) {
|
if (startEvent.defaultPrevented) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -277,7 +334,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!activesData) {
|
if (!activesData) {
|
||||||
Data.setData(elemActive, DATA_KEY, null);
|
Data__default['default'].setData(elemActive, DATA_KEY, null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -300,33 +357,33 @@
|
||||||
this.setTransitioning(true);
|
this.setTransitioning(true);
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
_this._element.classList.remove(CLASS_NAME_COLLAPSING);
|
_this2._element.classList.remove(CLASS_NAME_COLLAPSING);
|
||||||
|
|
||||||
_this._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW);
|
_this2._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW);
|
||||||
|
|
||||||
_this._element.style[dimension] = '';
|
_this2._element.style[dimension] = '';
|
||||||
|
|
||||||
_this.setTransitioning(false);
|
_this2.setTransitioning(false);
|
||||||
|
|
||||||
EventHandler.trigger(_this._element, EVENT_SHOWN);
|
EventHandler__default['default'].trigger(_this2._element, EVENT_SHOWN);
|
||||||
};
|
};
|
||||||
|
|
||||||
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
|
||||||
var scrollSize = "scroll" + capitalizedDimension;
|
var scrollSize = "scroll" + capitalizedDimension;
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, complete);
|
EventHandler__default['default'].one(this._element, TRANSITION_END, complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
this._element.style[dimension] = this._element[scrollSize] + "px";
|
this._element.style[dimension] = this._element[scrollSize] + "px";
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
var _this2 = this;
|
var _this3 = this;
|
||||||
|
|
||||||
if (this._isTransitioning || !this._element.classList.contains(CLASS_NAME_SHOW)) {
|
if (this._isTransitioning || !this._element.classList.contains(CLASS_NAME_SHOW)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var startEvent = EventHandler.trigger(this._element, EVENT_HIDE);
|
var startEvent = EventHandler__default['default'].trigger(this._element, EVENT_HIDE);
|
||||||
|
|
||||||
if (startEvent.defaultPrevented) {
|
if (startEvent.defaultPrevented) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -358,18 +415,18 @@
|
||||||
this.setTransitioning(true);
|
this.setTransitioning(true);
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
_this2.setTransitioning(false);
|
_this3.setTransitioning(false);
|
||||||
|
|
||||||
_this2._element.classList.remove(CLASS_NAME_COLLAPSING);
|
_this3._element.classList.remove(CLASS_NAME_COLLAPSING);
|
||||||
|
|
||||||
_this2._element.classList.add(CLASS_NAME_COLLAPSE);
|
_this3._element.classList.add(CLASS_NAME_COLLAPSE);
|
||||||
|
|
||||||
EventHandler.trigger(_this2._element, EVENT_HIDDEN);
|
EventHandler__default['default'].trigger(_this3._element, EVENT_HIDDEN);
|
||||||
};
|
};
|
||||||
|
|
||||||
this._element.style[dimension] = '';
|
this._element.style[dimension] = '';
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, complete);
|
EventHandler__default['default'].one(this._element, TRANSITION_END, complete);
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -378,17 +435,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
_proto.dispose = function dispose() {
|
||||||
Data.removeData(this._element, DATA_KEY);
|
_BaseComponent.prototype.dispose.call(this);
|
||||||
|
|
||||||
this._config = null;
|
this._config = null;
|
||||||
this._parent = null;
|
this._parent = null;
|
||||||
this._element = null;
|
|
||||||
this._triggerArray = null;
|
this._triggerArray = null;
|
||||||
this._isTransitioning = null;
|
this._isTransitioning = null;
|
||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto._getConfig = function _getConfig(config) {
|
_proto._getConfig = function _getConfig(config) {
|
||||||
config = _objectSpread(_objectSpread({}, Default), config);
|
config = _extends({}, Default, config);
|
||||||
config.toggle = Boolean(config.toggle); // Coerce string values
|
config.toggle = Boolean(config.toggle); // Coerce string values
|
||||||
|
|
||||||
typeCheckConfig(NAME, config, DefaultType);
|
typeCheckConfig(NAME, config, DefaultType);
|
||||||
|
|
@ -396,13 +453,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getDimension = function _getDimension() {
|
_proto._getDimension = function _getDimension() {
|
||||||
var hasWidth = this._element.classList.contains(WIDTH);
|
return this._element.classList.contains(WIDTH) ? WIDTH : HEIGHT;
|
||||||
|
|
||||||
return hasWidth ? WIDTH : HEIGHT;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getParent = function _getParent() {
|
_proto._getParent = function _getParent() {
|
||||||
var _this3 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
var parent = this._config.parent;
|
var parent = this._config.parent;
|
||||||
|
|
||||||
|
|
@ -412,41 +467,40 @@
|
||||||
parent = parent[0];
|
parent = parent[0];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
parent = SelectorEngine.findOne(parent);
|
parent = SelectorEngine__default['default'].findOne(parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
var selector = SELECTOR_DATA_TOGGLE + "[data-parent=\"" + parent + "\"]";
|
var selector = SELECTOR_DATA_TOGGLE + "[data-bs-parent=\"" + parent + "\"]";
|
||||||
SelectorEngine.find(selector, parent).forEach(function (element) {
|
SelectorEngine__default['default'].find(selector, parent).forEach(function (element) {
|
||||||
var selected = getElementFromSelector(element);
|
var selected = getElementFromSelector(element);
|
||||||
|
|
||||||
_this3._addAriaAndCollapsedClass(selected, [element]);
|
_this4._addAriaAndCollapsedClass(selected, [element]);
|
||||||
});
|
});
|
||||||
return parent;
|
return parent;
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
|
_proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
|
||||||
if (element) {
|
if (!element || !triggerArray.length) {
|
||||||
var isOpen = element.classList.contains(CLASS_NAME_SHOW);
|
return;
|
||||||
|
|
||||||
if (triggerArray.length) {
|
|
||||||
triggerArray.forEach(function (elem) {
|
|
||||||
if (isOpen) {
|
|
||||||
elem.classList.remove(CLASS_NAME_COLLAPSED);
|
|
||||||
} else {
|
|
||||||
elem.classList.add(CLASS_NAME_COLLAPSED);
|
|
||||||
}
|
|
||||||
|
|
||||||
elem.setAttribute('aria-expanded', isOpen);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var isOpen = element.classList.contains(CLASS_NAME_SHOW);
|
||||||
|
triggerArray.forEach(function (elem) {
|
||||||
|
if (isOpen) {
|
||||||
|
elem.classList.remove(CLASS_NAME_COLLAPSED);
|
||||||
|
} else {
|
||||||
|
elem.classList.add(CLASS_NAME_COLLAPSED);
|
||||||
|
}
|
||||||
|
|
||||||
|
elem.setAttribute('aria-expanded', isOpen);
|
||||||
|
});
|
||||||
} // Static
|
} // Static
|
||||||
;
|
;
|
||||||
|
|
||||||
Collapse.collapseInterface = function collapseInterface(element, config) {
|
Collapse.collapseInterface = function collapseInterface(element, config) {
|
||||||
var data = Data.getData(element, DATA_KEY);
|
var data = Data__default['default'].getData(element, DATA_KEY);
|
||||||
|
|
||||||
var _config = _objectSpread(_objectSpread(_objectSpread({}, Default), Manipulator.getDataAttributes(element)), typeof config === 'object' && config ? config : {});
|
var _config = _extends({}, Default, Manipulator__default['default'].getDataAttributes(element), typeof config === 'object' && config ? config : {});
|
||||||
|
|
||||||
if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) {
|
if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) {
|
||||||
_config.toggle = false;
|
_config.toggle = false;
|
||||||
|
|
@ -471,24 +525,20 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
Collapse.getInstance = function getInstance(element) {
|
_createClass$1(Collapse, null, [{
|
||||||
return Data.getData(element, DATA_KEY);
|
|
||||||
};
|
|
||||||
|
|
||||||
_createClass(Collapse, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
key: "Default",
|
key: "Default",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return Default;
|
return Default;
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: "DATA_KEY",
|
||||||
|
get: function get() {
|
||||||
|
return DATA_KEY;
|
||||||
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Collapse;
|
return Collapse;
|
||||||
}();
|
}(BaseComponent);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
|
|
@ -496,17 +546,17 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
EventHandler__default['default'].on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||||
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
|
||||||
if (event.target.tagName === 'A') {
|
if (event.target.tagName === 'A') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
var triggerData = Manipulator.getDataAttributes(this);
|
var triggerData = Manipulator__default['default'].getDataAttributes(this);
|
||||||
var selector = getSelectorFromElement(this);
|
var selector = getSelectorFromElement(this);
|
||||||
var selectorElements = SelectorEngine.find(selector);
|
var selectorElements = SelectorEngine__default['default'].find(selector);
|
||||||
selectorElements.forEach(function (element) {
|
selectorElements.forEach(function (element) {
|
||||||
var data = Data.getData(element, DATA_KEY);
|
var data = Data__default['default'].getData(element, DATA_KEY);
|
||||||
var config;
|
var config;
|
||||||
|
|
||||||
if (data) {
|
if (data) {
|
||||||
|
|
@ -524,26 +574,28 @@
|
||||||
Collapse.collapseInterface(element, config);
|
Collapse.collapseInterface(element, config);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
var $ = getjQuery();
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* jQuery
|
* jQuery
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* add .collapse to jQuery only if jQuery is present
|
* add .Collapse to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* istanbul ignore if */
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
if ($) {
|
if ($) {
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||||
$.fn[NAME] = Collapse.jQueryInterface;
|
$.fn[NAME] = Collapse.jQueryInterface;
|
||||||
$.fn[NAME].Constructor = Collapse;
|
$.fn[NAME].Constructor = Collapse;
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
$.fn[NAME].noConflict = function () {
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||||
return Collapse.jQueryInterface;
|
return Collapse.jQueryInterface;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return Collapse;
|
return Collapse;
|
||||||
|
|
||||||
|
|
|
||||||
2
js/dist/collapse.js.map
vendored
2
js/dist/collapse.js.map
vendored
File diff suppressed because one or more lines are too long
22
js/dist/dom/data.js
vendored
22
js/dist/dom/data.js
vendored
|
|
@ -1,17 +1,17 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap data.js v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap data.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||||
typeof define === 'function' && define.amd ? define(factory) :
|
typeof define === 'function' && define.amd ? define(factory) :
|
||||||
(global = global || self, global.Data = factory());
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Data = factory());
|
||||||
}(this, (function () { 'use strict';
|
}(this, (function () { 'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha1): dom/data.js
|
* Bootstrap (v5.0.0-beta1): dom/data.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -26,22 +26,22 @@
|
||||||
var id = 1;
|
var id = 1;
|
||||||
return {
|
return {
|
||||||
set: function set(element, key, data) {
|
set: function set(element, key, data) {
|
||||||
if (typeof element.key === 'undefined') {
|
if (typeof element.bsKey === 'undefined') {
|
||||||
element.key = {
|
element.bsKey = {
|
||||||
key: key,
|
key: key,
|
||||||
id: id
|
id: id
|
||||||
};
|
};
|
||||||
id++;
|
id++;
|
||||||
}
|
}
|
||||||
|
|
||||||
storeData[element.key.id] = data;
|
storeData[element.bsKey.id] = data;
|
||||||
},
|
},
|
||||||
get: function get(element, key) {
|
get: function get(element, key) {
|
||||||
if (!element || typeof element.key === 'undefined') {
|
if (!element || typeof element.bsKey === 'undefined') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
var keyProperties = element.key;
|
var keyProperties = element.bsKey;
|
||||||
|
|
||||||
if (keyProperties.key === key) {
|
if (keyProperties.key === key) {
|
||||||
return storeData[keyProperties.id];
|
return storeData[keyProperties.id];
|
||||||
|
|
@ -50,15 +50,15 @@
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
delete: function _delete(element, key) {
|
delete: function _delete(element, key) {
|
||||||
if (typeof element.key === 'undefined') {
|
if (typeof element.bsKey === 'undefined') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var keyProperties = element.key;
|
var keyProperties = element.bsKey;
|
||||||
|
|
||||||
if (keyProperties.key === key) {
|
if (keyProperties.key === key) {
|
||||||
delete storeData[keyProperties.id];
|
delete storeData[keyProperties.id];
|
||||||
delete element.key;
|
delete element.bsKey;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
2
js/dist/dom/data.js.map
vendored
2
js/dist/dom/data.js.map
vendored
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"data.js","sources":["../../src/dom/data.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-alpha1): dom/data.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst mapData = (() => {\n const storeData = {}\n let id = 1\n return {\n set(element, key, data) {\n if (typeof element.key === 'undefined') {\n element.key = {\n key,\n id\n }\n id++\n }\n\n storeData[element.key.id] = data\n },\n get(element, key) {\n if (!element || typeof element.key === 'undefined') {\n return null\n }\n\n const keyProperties = element.key\n if (keyProperties.key === key) {\n return storeData[keyProperties.id]\n }\n\n return null\n },\n delete(element, key) {\n if (typeof element.key === 'undefined') {\n return\n }\n\n const keyProperties = element.key\n if (keyProperties.key === key) {\n delete storeData[keyProperties.id]\n delete element.key\n }\n }\n }\n})()\n\nconst Data = {\n setData(instance, key, data) {\n mapData.set(instance, key, data)\n },\n getData(instance, key) {\n return mapData.get(instance, key)\n },\n removeData(instance, key) {\n mapData.delete(instance, key)\n }\n}\n\nexport default Data\n"],"names":["mapData","storeData","id","set","element","key","data","get","keyProperties","delete","Data","setData","instance","getData","removeData"],"mappings":";;;;;;;;;;;EAAA;;;;;;;EAOA;;;;;EAMA,IAAMA,OAAO,GAAI,YAAM;EACrB,MAAMC,SAAS,GAAG,EAAlB;EACA,MAAIC,EAAE,GAAG,CAAT;EACA,SAAO;EACLC,IAAAA,GADK,eACDC,OADC,EACQC,GADR,EACaC,IADb,EACmB;EACtB,UAAI,OAAOF,OAAO,CAACC,GAAf,KAAuB,WAA3B,EAAwC;EACtCD,QAAAA,OAAO,CAACC,GAAR,GAAc;EACZA,UAAAA,GAAG,EAAHA,GADY;EAEZH,UAAAA,EAAE,EAAFA;EAFY,SAAd;EAIAA,QAAAA,EAAE;EACH;;EAEDD,MAAAA,SAAS,CAACG,OAAO,CAACC,GAAR,CAAYH,EAAb,CAAT,GAA4BI,IAA5B;EACD,KAXI;EAYLC,IAAAA,GAZK,eAYDH,OAZC,EAYQC,GAZR,EAYa;EAChB,UAAI,CAACD,OAAD,IAAY,OAAOA,OAAO,CAACC,GAAf,KAAuB,WAAvC,EAAoD;EAClD,eAAO,IAAP;EACD;;EAED,UAAMG,aAAa,GAAGJ,OAAO,CAACC,GAA9B;;EACA,UAAIG,aAAa,CAACH,GAAd,KAAsBA,GAA1B,EAA+B;EAC7B,eAAOJ,SAAS,CAACO,aAAa,CAACN,EAAf,CAAhB;EACD;;EAED,aAAO,IAAP;EACD,KAvBI;EAwBLO,IAAAA,MAxBK,mBAwBEL,OAxBF,EAwBWC,GAxBX,EAwBgB;EACnB,UAAI,OAAOD,OAAO,CAACC,GAAf,KAAuB,WAA3B,EAAwC;EACtC;EACD;;EAED,UAAMG,aAAa,GAAGJ,OAAO,CAACC,GAA9B;;EACA,UAAIG,aAAa,CAACH,GAAd,KAAsBA,GAA1B,EAA+B;EAC7B,eAAOJ,SAAS,CAACO,aAAa,CAACN,EAAf,CAAhB;EACA,eAAOE,OAAO,CAACC,GAAf;EACD;EACF;EAlCI,GAAP;EAoCD,CAvCe,EAAhB;;MAyCMK,IAAI,GAAG;EACXC,EAAAA,OADW,mBACHC,QADG,EACOP,GADP,EACYC,IADZ,EACkB;EAC3BN,IAAAA,OAAO,CAACG,GAAR,CAAYS,QAAZ,EAAsBP,GAAtB,EAA2BC,IAA3B;EACD,GAHU;EAIXO,EAAAA,OAJW,mBAIHD,QAJG,EAIOP,GAJP,EAIY;EACrB,WAAOL,OAAO,CAACO,GAAR,CAAYK,QAAZ,EAAsBP,GAAtB,CAAP;EACD,GANU;EAOXS,EAAAA,UAPW,sBAOAF,QAPA,EAOUP,GAPV,EAOe;EACxBL,IAAAA,OAAO,CAACS,MAAR,CAAeG,QAAf,EAAyBP,GAAzB;EACD;EATU;;;;;;;;"}
|
{"version":3,"file":"data.js","sources":["../../src/dom/data.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta1): dom/data.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst mapData = (() => {\n const storeData = {}\n let id = 1\n return {\n set(element, key, data) {\n if (typeof element.bsKey === 'undefined') {\n element.bsKey = {\n key,\n id\n }\n id++\n }\n\n storeData[element.bsKey.id] = data\n },\n get(element, key) {\n if (!element || typeof element.bsKey === 'undefined') {\n return null\n }\n\n const keyProperties = element.bsKey\n if (keyProperties.key === key) {\n return storeData[keyProperties.id]\n }\n\n return null\n },\n delete(element, key) {\n if (typeof element.bsKey === 'undefined') {\n return\n }\n\n const keyProperties = element.bsKey\n if (keyProperties.key === key) {\n delete storeData[keyProperties.id]\n delete element.bsKey\n }\n }\n }\n})()\n\nconst Data = {\n setData(instance, key, data) {\n mapData.set(instance, key, data)\n },\n getData(instance, key) {\n return mapData.get(instance, key)\n },\n removeData(instance, key) {\n mapData.delete(instance, key)\n }\n}\n\nexport default Data\n"],"names":["mapData","storeData","id","set","element","key","data","bsKey","get","keyProperties","delete","Data","setData","instance","getData","removeData"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EAEA,IAAMA,OAAO,GAAI,YAAM;EACrB,MAAMC,SAAS,GAAG,EAAlB;EACA,MAAIC,EAAE,GAAG,CAAT;EACA,SAAO;EACLC,IAAAA,GADK,eACDC,OADC,EACQC,GADR,EACaC,IADb,EACmB;EACtB,UAAI,OAAOF,OAAO,CAACG,KAAf,KAAyB,WAA7B,EAA0C;EACxCH,QAAAA,OAAO,CAACG,KAAR,GAAgB;EACdF,UAAAA,GAAG,EAAHA,GADc;EAEdH,UAAAA,EAAE,EAAFA;EAFc,SAAhB;EAIAA,QAAAA,EAAE;EACH;;EAEDD,MAAAA,SAAS,CAACG,OAAO,CAACG,KAAR,CAAcL,EAAf,CAAT,GAA8BI,IAA9B;EACD,KAXI;EAYLE,IAAAA,GAZK,eAYDJ,OAZC,EAYQC,GAZR,EAYa;EAChB,UAAI,CAACD,OAAD,IAAY,OAAOA,OAAO,CAACG,KAAf,KAAyB,WAAzC,EAAsD;EACpD,eAAO,IAAP;EACD;;EAED,UAAME,aAAa,GAAGL,OAAO,CAACG,KAA9B;;EACA,UAAIE,aAAa,CAACJ,GAAd,KAAsBA,GAA1B,EAA+B;EAC7B,eAAOJ,SAAS,CAACQ,aAAa,CAACP,EAAf,CAAhB;EACD;;EAED,aAAO,IAAP;EACD,KAvBI;EAwBLQ,IAAAA,MAxBK,mBAwBEN,OAxBF,EAwBWC,GAxBX,EAwBgB;EACnB,UAAI,OAAOD,OAAO,CAACG,KAAf,KAAyB,WAA7B,EAA0C;EACxC;EACD;;EAED,UAAME,aAAa,GAAGL,OAAO,CAACG,KAA9B;;EACA,UAAIE,aAAa,CAACJ,GAAd,KAAsBA,GAA1B,EAA+B;EAC7B,eAAOJ,SAAS,CAACQ,aAAa,CAACP,EAAf,CAAhB;EACA,eAAOE,OAAO,CAACG,KAAf;EACD;EACF;EAlCI,GAAP;EAoCD,CAvCe,EAAhB;;MAyCMI,IAAI,GAAG;EACXC,EAAAA,OADW,mBACHC,QADG,EACOR,GADP,EACYC,IADZ,EACkB;EAC3BN,IAAAA,OAAO,CAACG,GAAR,CAAYU,QAAZ,EAAsBR,GAAtB,EAA2BC,IAA3B;EACD,GAHU;EAIXQ,EAAAA,OAJW,mBAIHD,QAJG,EAIOR,GAJP,EAIY;EACrB,WAAOL,OAAO,CAACQ,GAAR,CAAYK,QAAZ,EAAsBR,GAAtB,CAAP;EACD,GANU;EAOXU,EAAAA,UAPW,sBAOAF,QAPA,EAOUR,GAPV,EAOe;EACxBL,IAAAA,OAAO,CAACU,MAAR,CAAeG,QAAf,EAAyBR,GAAzB;EACD;EATU;;;;;;;;"}
|
||||||
46
js/dist/dom/event-handler.js
vendored
46
js/dist/dom/event-handler.js
vendored
|
|
@ -1,17 +1,17 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap event-handler.js v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap event-handler.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./polyfill.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||||
typeof define === 'function' && define.amd ? define(['./polyfill.js'], factory) :
|
typeof define === 'function' && define.amd ? define(factory) :
|
||||||
(global = global || self, global.EventHandler = factory(global.Polyfill));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.EventHandler = factory());
|
||||||
}(this, (function (polyfill_js) { 'use strict';
|
}(this, (function () { 'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha1): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -20,16 +20,18 @@
|
||||||
var _window = window,
|
var _window = window,
|
||||||
jQuery = _window.jQuery;
|
jQuery = _window.jQuery;
|
||||||
|
|
||||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
|
||||||
return jQuery;
|
return jQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha1): dom/event-handler.js
|
* Bootstrap (v5.0.0-beta1): dom/event-handler.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -39,7 +41,6 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var $ = getjQuery();
|
|
||||||
var namespaceRegex = /[^.]*(?=\..*)\.|.*/;
|
var namespaceRegex = /[^.]*(?=\..*)\.|.*/;
|
||||||
var stripNameRegex = /\..*/;
|
var stripNameRegex = /\..*/;
|
||||||
var stripUidRegex = /::\d+$/;
|
var stripUidRegex = /::\d+$/;
|
||||||
|
|
@ -50,7 +51,7 @@
|
||||||
mouseenter: 'mouseover',
|
mouseenter: 'mouseover',
|
||||||
mouseleave: 'mouseout'
|
mouseleave: 'mouseout'
|
||||||
};
|
};
|
||||||
var nativeEvents = ['click', 'dblclick', 'mouseup', 'mousedown', 'contextmenu', 'mousewheel', 'DOMMouseScroll', 'mouseover', 'mouseout', 'mousemove', 'selectstart', 'selectend', 'keydown', 'keypress', 'keyup', 'orientationchange', 'touchstart', 'touchmove', 'touchend', 'touchcancel', 'pointerdown', 'pointermove', 'pointerup', 'pointerleave', 'pointercancel', 'gesturestart', 'gesturechange', 'gestureend', 'focus', 'blur', 'change', 'reset', 'select', 'submit', 'focusin', 'focusout', 'load', 'unload', 'beforeunload', 'resize', 'move', 'DOMContentLoaded', 'readystatechange', 'error', 'abort', 'scroll'];
|
var nativeEvents = new Set(['click', 'dblclick', 'mouseup', 'mousedown', 'contextmenu', 'mousewheel', 'DOMMouseScroll', 'mouseover', 'mouseout', 'mousemove', 'selectstart', 'selectend', 'keydown', 'keypress', 'keyup', 'orientationchange', 'touchstart', 'touchmove', 'touchend', 'touchcancel', 'pointerdown', 'pointermove', 'pointerup', 'pointerleave', 'pointercancel', 'gesturestart', 'gesturechange', 'gestureend', 'focus', 'blur', 'change', 'reset', 'select', 'submit', 'focusin', 'focusout', 'load', 'unload', 'beforeunload', 'resize', 'move', 'DOMContentLoaded', 'readystatechange', 'error', 'abort', 'scroll']);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Private methods
|
* Private methods
|
||||||
|
|
@ -70,6 +71,8 @@
|
||||||
|
|
||||||
function bootstrapHandler(element, fn) {
|
function bootstrapHandler(element, fn) {
|
||||||
return function handler(event) {
|
return function handler(event) {
|
||||||
|
event.delegateTarget = element;
|
||||||
|
|
||||||
if (handler.oneOff) {
|
if (handler.oneOff) {
|
||||||
EventHandler.off(element, event.type, fn);
|
EventHandler.off(element, event.type, fn);
|
||||||
}
|
}
|
||||||
|
|
@ -85,6 +88,8 @@
|
||||||
for (var target = event.target; target && target !== this; target = target.parentNode) {
|
for (var target = event.target; target && target !== this; target = target.parentNode) {
|
||||||
for (var i = domElements.length; i--;) {
|
for (var i = domElements.length; i--;) {
|
||||||
if (domElements[i] === target) {
|
if (domElements[i] === target) {
|
||||||
|
event.delegateTarget = target;
|
||||||
|
|
||||||
if (handler.oneOff) {
|
if (handler.oneOff) {
|
||||||
EventHandler.off(element, event.type, fn);
|
EventHandler.off(element, event.type, fn);
|
||||||
}
|
}
|
||||||
|
|
@ -128,7 +133,7 @@
|
||||||
typeEvent = custom;
|
typeEvent = custom;
|
||||||
}
|
}
|
||||||
|
|
||||||
var isNative = nativeEvents.indexOf(typeEvent) > -1;
|
var isNative = nativeEvents.has(typeEvent);
|
||||||
|
|
||||||
if (!isNative) {
|
if (!isNative) {
|
||||||
typeEvent = originalTypeEvent;
|
typeEvent = originalTypeEvent;
|
||||||
|
|
@ -185,7 +190,7 @@
|
||||||
function removeNamespacedHandlers(element, events, typeEvent, namespace) {
|
function removeNamespacedHandlers(element, events, typeEvent, namespace) {
|
||||||
var storeElementEvent = events[typeEvent] || {};
|
var storeElementEvent = events[typeEvent] || {};
|
||||||
Object.keys(storeElementEvent).forEach(function (handlerKey) {
|
Object.keys(storeElementEvent).forEach(function (handlerKey) {
|
||||||
if (handlerKey.indexOf(namespace) > -1) {
|
if (handlerKey.includes(namespace)) {
|
||||||
var event = storeElementEvent[handlerKey];
|
var event = storeElementEvent[handlerKey];
|
||||||
removeHandler(element, events, typeEvent, event.originalHandler, event.delegationSelector);
|
removeHandler(element, events, typeEvent, event.originalHandler, event.delegationSelector);
|
||||||
}
|
}
|
||||||
|
|
@ -211,7 +216,7 @@
|
||||||
|
|
||||||
var inNamespace = typeEvent !== originalTypeEvent;
|
var inNamespace = typeEvent !== originalTypeEvent;
|
||||||
var events = getEvent(element);
|
var events = getEvent(element);
|
||||||
var isNamespace = originalTypeEvent.charAt(0) === '.';
|
var isNamespace = originalTypeEvent.startsWith('.');
|
||||||
|
|
||||||
if (typeof originalHandler !== 'undefined') {
|
if (typeof originalHandler !== 'undefined') {
|
||||||
// Simplest case: handler is passed, remove that listener ONLY.
|
// Simplest case: handler is passed, remove that listener ONLY.
|
||||||
|
|
@ -233,7 +238,7 @@
|
||||||
Object.keys(storeElementEvent).forEach(function (keyHandlers) {
|
Object.keys(storeElementEvent).forEach(function (keyHandlers) {
|
||||||
var handlerKey = keyHandlers.replace(stripUidRegex, '');
|
var handlerKey = keyHandlers.replace(stripUidRegex, '');
|
||||||
|
|
||||||
if (!inNamespace || originalTypeEvent.indexOf(handlerKey) > -1) {
|
if (!inNamespace || originalTypeEvent.includes(handlerKey)) {
|
||||||
var event = storeElementEvent[keyHandlers];
|
var event = storeElementEvent[keyHandlers];
|
||||||
removeHandler(element, events, typeEvent, event.originalHandler, event.delegationSelector);
|
removeHandler(element, events, typeEvent, event.originalHandler, event.delegationSelector);
|
||||||
}
|
}
|
||||||
|
|
@ -244,9 +249,10 @@
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var $ = getjQuery();
|
||||||
var typeEvent = event.replace(stripNameRegex, '');
|
var typeEvent = event.replace(stripNameRegex, '');
|
||||||
var inNamespace = event !== typeEvent;
|
var inNamespace = event !== typeEvent;
|
||||||
var isNative = nativeEvents.indexOf(typeEvent) > -1;
|
var isNative = nativeEvents.has(typeEvent);
|
||||||
var jQueryEvent;
|
var jQueryEvent;
|
||||||
var bubbles = true;
|
var bubbles = true;
|
||||||
var nativeDispatch = true;
|
var nativeDispatch = true;
|
||||||
|
|
@ -269,7 +275,7 @@
|
||||||
bubbles: bubbles,
|
bubbles: bubbles,
|
||||||
cancelable: true
|
cancelable: true
|
||||||
});
|
});
|
||||||
} // merge custom informations in our event
|
} // merge custom information in our event
|
||||||
|
|
||||||
|
|
||||||
if (typeof args !== 'undefined') {
|
if (typeof args !== 'undefined') {
|
||||||
|
|
@ -284,14 +290,6 @@
|
||||||
|
|
||||||
if (defaultPrevented) {
|
if (defaultPrevented) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
|
|
||||||
if (!polyfill_js.defaultPreventedPreservedOnDispatch) {
|
|
||||||
Object.defineProperty(evt, 'defaultPrevented', {
|
|
||||||
get: function get() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nativeDispatch) {
|
if (nativeDispatch) {
|
||||||
|
|
|
||||||
2
js/dist/dom/event-handler.js.map
vendored
2
js/dist/dom/event-handler.js.map
vendored
File diff suppressed because one or more lines are too long
40
js/dist/dom/manipulator.js
vendored
40
js/dist/dom/manipulator.js
vendored
|
|
@ -1,23 +1,17 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap manipulator.js v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap manipulator.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||||
typeof define === 'function' && define.amd ? define(factory) :
|
typeof define === 'function' && define.amd ? define(factory) :
|
||||||
(global = global || self, global.Manipulator = factory());
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Manipulator = factory());
|
||||||
}(this, (function () { 'use strict';
|
}(this, (function () { 'use strict';
|
||||||
|
|
||||||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
||||||
|
|
||||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
||||||
|
|
||||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha1): dom/manipulator.js
|
* Bootstrap (v5.0.0-beta1): dom/manipulator.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -49,25 +43,28 @@
|
||||||
|
|
||||||
var Manipulator = {
|
var Manipulator = {
|
||||||
setDataAttribute: function setDataAttribute(element, key, value) {
|
setDataAttribute: function setDataAttribute(element, key, value) {
|
||||||
element.setAttribute("data-" + normalizeDataKey(key), value);
|
element.setAttribute("data-bs-" + normalizeDataKey(key), value);
|
||||||
},
|
},
|
||||||
removeDataAttribute: function removeDataAttribute(element, key) {
|
removeDataAttribute: function removeDataAttribute(element, key) {
|
||||||
element.removeAttribute("data-" + normalizeDataKey(key));
|
element.removeAttribute("data-bs-" + normalizeDataKey(key));
|
||||||
},
|
},
|
||||||
getDataAttributes: function getDataAttributes(element) {
|
getDataAttributes: function getDataAttributes(element) {
|
||||||
if (!element) {
|
if (!element) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
var attributes = _objectSpread({}, element.dataset);
|
var attributes = {};
|
||||||
|
Object.keys(element.dataset).filter(function (key) {
|
||||||
Object.keys(attributes).forEach(function (key) {
|
return key.startsWith('bs');
|
||||||
attributes[key] = normalizeData(attributes[key]);
|
}).forEach(function (key) {
|
||||||
|
var pureKey = key.replace(/^bs/, '');
|
||||||
|
pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length);
|
||||||
|
attributes[pureKey] = normalizeData(element.dataset[key]);
|
||||||
});
|
});
|
||||||
return attributes;
|
return attributes;
|
||||||
},
|
},
|
||||||
getDataAttribute: function getDataAttribute(element, key) {
|
getDataAttribute: function getDataAttribute(element, key) {
|
||||||
return normalizeData(element.getAttribute("data-" + normalizeDataKey(key)));
|
return normalizeData(element.getAttribute("data-bs-" + normalizeDataKey(key)));
|
||||||
},
|
},
|
||||||
offset: function offset(element) {
|
offset: function offset(element) {
|
||||||
var rect = element.getBoundingClientRect();
|
var rect = element.getBoundingClientRect();
|
||||||
|
|
@ -81,17 +78,6 @@
|
||||||
top: element.offsetTop,
|
top: element.offsetTop,
|
||||||
left: element.offsetLeft
|
left: element.offsetLeft
|
||||||
};
|
};
|
||||||
},
|
|
||||||
toggleClass: function toggleClass(element, className) {
|
|
||||||
if (!element) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (element.classList.contains(className)) {
|
|
||||||
element.classList.remove(className);
|
|
||||||
} else {
|
|
||||||
element.classList.add(className);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
2
js/dist/dom/manipulator.js.map
vendored
2
js/dist/dom/manipulator.js.map
vendored
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"manipulator.js","sources":["../../src/dom/manipulator.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-alpha1): dom/manipulator.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nfunction normalizeData(val) {\n if (val === 'true') {\n return true\n }\n\n if (val === 'false') {\n return false\n }\n\n if (val === Number(val).toString()) {\n return Number(val)\n }\n\n if (val === '' || val === 'null') {\n return null\n }\n\n return val\n}\n\nfunction normalizeDataKey(key) {\n return key.replace(/[A-Z]/g, chr => `-${chr.toLowerCase()}`)\n}\n\nconst Manipulator = {\n setDataAttribute(element, key, value) {\n element.setAttribute(`data-${normalizeDataKey(key)}`, value)\n },\n\n removeDataAttribute(element, key) {\n element.removeAttribute(`data-${normalizeDataKey(key)}`)\n },\n\n getDataAttributes(element) {\n if (!element) {\n return {}\n }\n\n const attributes = {\n ...element.dataset\n }\n\n Object.keys(attributes).forEach(key => {\n attributes[key] = normalizeData(attributes[key])\n })\n\n return attributes\n },\n\n getDataAttribute(element, key) {\n return normalizeData(element.getAttribute(`data-${normalizeDataKey(key)}`))\n },\n\n offset(element) {\n const rect = element.getBoundingClientRect()\n\n return {\n top: rect.top + document.body.scrollTop,\n left: rect.left + document.body.scrollLeft\n }\n },\n\n position(element) {\n return {\n top: element.offsetTop,\n left: element.offsetLeft\n }\n },\n\n toggleClass(element, className) {\n if (!element) {\n return\n }\n\n if (element.classList.contains(className)) {\n element.classList.remove(className)\n } else {\n element.classList.add(className)\n }\n }\n}\n\nexport default Manipulator\n"],"names":["normalizeData","val","Number","toString","normalizeDataKey","key","replace","chr","toLowerCase","Manipulator","setDataAttribute","element","value","setAttribute","removeDataAttribute","removeAttribute","getDataAttributes","attributes","dataset","Object","keys","forEach","getDataAttribute","getAttribute","offset","rect","getBoundingClientRect","top","document","body","scrollTop","left","scrollLeft","position","offsetTop","offsetLeft","toggleClass","className","classList","contains","remove","add"],"mappings":";;;;;;;;;;;;;;;;;EAAA;;;;;;EAOA,SAASA,aAAT,CAAuBC,GAAvB,EAA4B;EAC1B,MAAIA,GAAG,KAAK,MAAZ,EAAoB;EAClB,WAAO,IAAP;EACD;;EAED,MAAIA,GAAG,KAAK,OAAZ,EAAqB;EACnB,WAAO,KAAP;EACD;;EAED,MAAIA,GAAG,KAAKC,MAAM,CAACD,GAAD,CAAN,CAAYE,QAAZ,EAAZ,EAAoC;EAClC,WAAOD,MAAM,CAACD,GAAD,CAAb;EACD;;EAED,MAAIA,GAAG,KAAK,EAAR,IAAcA,GAAG,KAAK,MAA1B,EAAkC;EAChC,WAAO,IAAP;EACD;;EAED,SAAOA,GAAP;EACD;;EAED,SAASG,gBAAT,CAA0BC,GAA1B,EAA+B;EAC7B,SAAOA,GAAG,CAACC,OAAJ,CAAY,QAAZ,EAAsB,UAAAC,GAAG;EAAA,iBAAQA,GAAG,CAACC,WAAJ,EAAR;EAAA,GAAzB,CAAP;EACD;;MAEKC,WAAW,GAAG;EAClBC,EAAAA,gBADkB,4BACDC,OADC,EACQN,GADR,EACaO,KADb,EACoB;EACpCD,IAAAA,OAAO,CAACE,YAAR,WAA6BT,gBAAgB,CAACC,GAAD,CAA7C,EAAsDO,KAAtD;EACD,GAHiB;EAKlBE,EAAAA,mBALkB,+BAKEH,OALF,EAKWN,GALX,EAKgB;EAChCM,IAAAA,OAAO,CAACI,eAAR,WAAgCX,gBAAgB,CAACC,GAAD,CAAhD;EACD,GAPiB;EASlBW,EAAAA,iBATkB,6BASAL,OATA,EASS;EACzB,QAAI,CAACA,OAAL,EAAc;EACZ,aAAO,EAAP;EACD;;EAED,QAAMM,UAAU,qBACXN,OAAO,CAACO,OADG,CAAhB;;EAIAC,IAAAA,MAAM,CAACC,IAAP,CAAYH,UAAZ,EAAwBI,OAAxB,CAAgC,UAAAhB,GAAG,EAAI;EACrCY,MAAAA,UAAU,CAACZ,GAAD,CAAV,GAAkBL,aAAa,CAACiB,UAAU,CAACZ,GAAD,CAAX,CAA/B;EACD,KAFD;EAIA,WAAOY,UAAP;EACD,GAvBiB;EAyBlBK,EAAAA,gBAzBkB,4BAyBDX,OAzBC,EAyBQN,GAzBR,EAyBa;EAC7B,WAAOL,aAAa,CAACW,OAAO,CAACY,YAAR,WAA6BnB,gBAAgB,CAACC,GAAD,CAA7C,CAAD,CAApB;EACD,GA3BiB;EA6BlBmB,EAAAA,MA7BkB,kBA6BXb,OA7BW,EA6BF;EACd,QAAMc,IAAI,GAAGd,OAAO,CAACe,qBAAR,EAAb;EAEA,WAAO;EACLC,MAAAA,GAAG,EAAEF,IAAI,CAACE,GAAL,GAAWC,QAAQ,CAACC,IAAT,CAAcC,SADzB;EAELC,MAAAA,IAAI,EAAEN,IAAI,CAACM,IAAL,GAAYH,QAAQ,CAACC,IAAT,CAAcG;EAF3B,KAAP;EAID,GApCiB;EAsClBC,EAAAA,QAtCkB,oBAsCTtB,OAtCS,EAsCA;EAChB,WAAO;EACLgB,MAAAA,GAAG,EAAEhB,OAAO,CAACuB,SADR;EAELH,MAAAA,IAAI,EAAEpB,OAAO,CAACwB;EAFT,KAAP;EAID,GA3CiB;EA6ClBC,EAAAA,WA7CkB,uBA6CNzB,OA7CM,EA6CG0B,SA7CH,EA6Cc;EAC9B,QAAI,CAAC1B,OAAL,EAAc;EACZ;EACD;;EAED,QAAIA,OAAO,CAAC2B,SAAR,CAAkBC,QAAlB,CAA2BF,SAA3B,CAAJ,EAA2C;EACzC1B,MAAAA,OAAO,CAAC2B,SAAR,CAAkBE,MAAlB,CAAyBH,SAAzB;EACD,KAFD,MAEO;EACL1B,MAAAA,OAAO,CAAC2B,SAAR,CAAkBG,GAAlB,CAAsBJ,SAAtB;EACD;EACF;EAvDiB;;;;;;;;"}
|
{"version":3,"file":"manipulator.js","sources":["../../src/dom/manipulator.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta1): dom/manipulator.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nfunction normalizeData(val) {\n if (val === 'true') {\n return true\n }\n\n if (val === 'false') {\n return false\n }\n\n if (val === Number(val).toString()) {\n return Number(val)\n }\n\n if (val === '' || val === 'null') {\n return null\n }\n\n return val\n}\n\nfunction normalizeDataKey(key) {\n return key.replace(/[A-Z]/g, chr => `-${chr.toLowerCase()}`)\n}\n\nconst Manipulator = {\n setDataAttribute(element, key, value) {\n element.setAttribute(`data-bs-${normalizeDataKey(key)}`, value)\n },\n\n removeDataAttribute(element, key) {\n element.removeAttribute(`data-bs-${normalizeDataKey(key)}`)\n },\n\n getDataAttributes(element) {\n if (!element) {\n return {}\n }\n\n const attributes = {}\n\n Object.keys(element.dataset)\n .filter(key => key.startsWith('bs'))\n .forEach(key => {\n let pureKey = key.replace(/^bs/, '')\n pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length)\n attributes[pureKey] = normalizeData(element.dataset[key])\n })\n\n return attributes\n },\n\n getDataAttribute(element, key) {\n return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`))\n },\n\n offset(element) {\n const rect = element.getBoundingClientRect()\n\n return {\n top: rect.top + document.body.scrollTop,\n left: rect.left + document.body.scrollLeft\n }\n },\n\n position(element) {\n return {\n top: element.offsetTop,\n left: element.offsetLeft\n }\n }\n}\n\nexport default Manipulator\n"],"names":["normalizeData","val","Number","toString","normalizeDataKey","key","replace","chr","toLowerCase","Manipulator","setDataAttribute","element","value","setAttribute","removeDataAttribute","removeAttribute","getDataAttributes","attributes","Object","keys","dataset","filter","startsWith","forEach","pureKey","charAt","slice","length","getDataAttribute","getAttribute","offset","rect","getBoundingClientRect","top","document","body","scrollTop","left","scrollLeft","position","offsetTop","offsetLeft"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;EAEA,SAASA,aAAT,CAAuBC,GAAvB,EAA4B;EAC1B,MAAIA,GAAG,KAAK,MAAZ,EAAoB;EAClB,WAAO,IAAP;EACD;;EAED,MAAIA,GAAG,KAAK,OAAZ,EAAqB;EACnB,WAAO,KAAP;EACD;;EAED,MAAIA,GAAG,KAAKC,MAAM,CAACD,GAAD,CAAN,CAAYE,QAAZ,EAAZ,EAAoC;EAClC,WAAOD,MAAM,CAACD,GAAD,CAAb;EACD;;EAED,MAAIA,GAAG,KAAK,EAAR,IAAcA,GAAG,KAAK,MAA1B,EAAkC;EAChC,WAAO,IAAP;EACD;;EAED,SAAOA,GAAP;EACD;;EAED,SAASG,gBAAT,CAA0BC,GAA1B,EAA+B;EAC7B,SAAOA,GAAG,CAACC,OAAJ,CAAY,QAAZ,EAAsB,UAAAC,GAAG;EAAA,iBAAQA,GAAG,CAACC,WAAJ,EAAR;EAAA,GAAzB,CAAP;EACD;;MAEKC,WAAW,GAAG;EAClBC,EAAAA,gBADkB,4BACDC,OADC,EACQN,GADR,EACaO,KADb,EACoB;EACpCD,IAAAA,OAAO,CAACE,YAAR,cAAgCT,gBAAgB,CAACC,GAAD,CAAhD,EAAyDO,KAAzD;EACD,GAHiB;EAKlBE,EAAAA,mBALkB,+BAKEH,OALF,EAKWN,GALX,EAKgB;EAChCM,IAAAA,OAAO,CAACI,eAAR,cAAmCX,gBAAgB,CAACC,GAAD,CAAnD;EACD,GAPiB;EASlBW,EAAAA,iBATkB,6BASAL,OATA,EASS;EACzB,QAAI,CAACA,OAAL,EAAc;EACZ,aAAO,EAAP;EACD;;EAED,QAAMM,UAAU,GAAG,EAAnB;EAEAC,IAAAA,MAAM,CAACC,IAAP,CAAYR,OAAO,CAACS,OAApB,EACGC,MADH,CACU,UAAAhB,GAAG;EAAA,aAAIA,GAAG,CAACiB,UAAJ,CAAe,IAAf,CAAJ;EAAA,KADb,EAEGC,OAFH,CAEW,UAAAlB,GAAG,EAAI;EACd,UAAImB,OAAO,GAAGnB,GAAG,CAACC,OAAJ,CAAY,KAAZ,EAAmB,EAAnB,CAAd;EACAkB,MAAAA,OAAO,GAAGA,OAAO,CAACC,MAAR,CAAe,CAAf,EAAkBjB,WAAlB,KAAkCgB,OAAO,CAACE,KAAR,CAAc,CAAd,EAAiBF,OAAO,CAACG,MAAzB,CAA5C;EACAV,MAAAA,UAAU,CAACO,OAAD,CAAV,GAAsBxB,aAAa,CAACW,OAAO,CAACS,OAAR,CAAgBf,GAAhB,CAAD,CAAnC;EACD,KANH;EAQA,WAAOY,UAAP;EACD,GAzBiB;EA2BlBW,EAAAA,gBA3BkB,4BA2BDjB,OA3BC,EA2BQN,GA3BR,EA2Ba;EAC7B,WAAOL,aAAa,CAACW,OAAO,CAACkB,YAAR,cAAgCzB,gBAAgB,CAACC,GAAD,CAAhD,CAAD,CAApB;EACD,GA7BiB;EA+BlByB,EAAAA,MA/BkB,kBA+BXnB,OA/BW,EA+BF;EACd,QAAMoB,IAAI,GAAGpB,OAAO,CAACqB,qBAAR,EAAb;EAEA,WAAO;EACLC,MAAAA,GAAG,EAAEF,IAAI,CAACE,GAAL,GAAWC,QAAQ,CAACC,IAAT,CAAcC,SADzB;EAELC,MAAAA,IAAI,EAAEN,IAAI,CAACM,IAAL,GAAYH,QAAQ,CAACC,IAAT,CAAcG;EAF3B,KAAP;EAID,GAtCiB;EAwClBC,EAAAA,QAxCkB,oBAwCT5B,OAxCS,EAwCA;EAChB,WAAO;EACLsB,MAAAA,GAAG,EAAEtB,OAAO,CAAC6B,SADR;EAELH,MAAAA,IAAI,EAAE1B,OAAO,CAAC8B;EAFT,KAAP;EAID;EA7CiB;;;;;;;;"}
|
||||||
111
js/dist/dom/polyfill.js
vendored
111
js/dist/dom/polyfill.js
vendored
|
|
@ -1,111 +0,0 @@
|
||||||
/*!
|
|
||||||
* Bootstrap polyfill.js v5.0.0-alpha1 (https://getbootstrap.com/)
|
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
||||||
*/
|
|
||||||
(function (global, factory) {
|
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
||||||
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
||||||
(global = global || self, factory(global.Polyfill = {}));
|
|
||||||
}(this, (function (exports) { 'use strict';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* --------------------------------------------------------------------------
|
|
||||||
* Bootstrap (v5.0.0-alpha1): util/index.js
|
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
||||||
* --------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
var MAX_UID = 1000000;
|
|
||||||
/**
|
|
||||||
* --------------------------------------------------------------------------
|
|
||||||
* Public Util Api
|
|
||||||
* --------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
var getUID = function getUID(prefix) {
|
|
||||||
do {
|
|
||||||
prefix += Math.floor(Math.random() * MAX_UID);
|
|
||||||
} while (document.getElementById(prefix));
|
|
||||||
|
|
||||||
return prefix;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* istanbul ignore file */
|
|
||||||
exports.find = Element.prototype.querySelectorAll;
|
|
||||||
exports.findOne = Element.prototype.querySelector; // MSEdge resets defaultPrevented flag upon dispatchEvent call if at least one listener is attached
|
|
||||||
|
|
||||||
var defaultPreventedPreservedOnDispatch = function () {
|
|
||||||
var e = new CustomEvent('Bootstrap', {
|
|
||||||
cancelable: true
|
|
||||||
});
|
|
||||||
var element = document.createElement('div');
|
|
||||||
element.addEventListener('Bootstrap', function () {
|
|
||||||
return null;
|
|
||||||
});
|
|
||||||
e.preventDefault();
|
|
||||||
element.dispatchEvent(e);
|
|
||||||
return e.defaultPrevented;
|
|
||||||
}();
|
|
||||||
|
|
||||||
var scopeSelectorRegex = /:scope\b/;
|
|
||||||
|
|
||||||
var supportScopeQuery = function () {
|
|
||||||
var element = document.createElement('div');
|
|
||||||
|
|
||||||
try {
|
|
||||||
element.querySelectorAll(':scope *');
|
|
||||||
} catch (_) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}();
|
|
||||||
|
|
||||||
if (!supportScopeQuery) {
|
|
||||||
exports.find = function find(selector) {
|
|
||||||
if (!scopeSelectorRegex.test(selector)) {
|
|
||||||
return this.querySelectorAll(selector);
|
|
||||||
}
|
|
||||||
|
|
||||||
var hasId = Boolean(this.id);
|
|
||||||
|
|
||||||
if (!hasId) {
|
|
||||||
this.id = getUID('scope');
|
|
||||||
}
|
|
||||||
|
|
||||||
var nodeList = null;
|
|
||||||
|
|
||||||
try {
|
|
||||||
selector = selector.replace(scopeSelectorRegex, "#" + this.id);
|
|
||||||
nodeList = this.querySelectorAll(selector);
|
|
||||||
} finally {
|
|
||||||
if (!hasId) {
|
|
||||||
this.removeAttribute('id');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return nodeList;
|
|
||||||
};
|
|
||||||
|
|
||||||
exports.findOne = function findOne(selector) {
|
|
||||||
if (!scopeSelectorRegex.test(selector)) {
|
|
||||||
return this.querySelector(selector);
|
|
||||||
}
|
|
||||||
|
|
||||||
var matches = exports.find.call(this, selector);
|
|
||||||
|
|
||||||
if (typeof matches[0] !== 'undefined') {
|
|
||||||
return matches[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
exports.defaultPreventedPreservedOnDispatch = defaultPreventedPreservedOnDispatch;
|
|
||||||
|
|
||||||
Object.defineProperty(exports, '__esModule', { value: true });
|
|
||||||
|
|
||||||
})));
|
|
||||||
//# sourceMappingURL=polyfill.js.map
|
|
||||||
1
js/dist/dom/polyfill.js.map
vendored
1
js/dist/dom/polyfill.js.map
vendored
File diff suppressed because one or more lines are too long
18
js/dist/dom/selector-engine.js
vendored
18
js/dist/dom/selector-engine.js
vendored
|
|
@ -1,26 +1,26 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap selector-engine.js v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap selector-engine.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./polyfill.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||||
typeof define === 'function' && define.amd ? define(['./polyfill.js'], factory) :
|
typeof define === 'function' && define.amd ? define(factory) :
|
||||||
(global = global || self, global.SelectorEngine = factory(global.Polyfill));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.SelectorEngine = factory());
|
||||||
}(this, (function (polyfill_js) { 'use strict';
|
}(this, (function () { 'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha1): dom/selector-engine.js
|
* Bootstrap (v5.0.0-beta1): dom/selector-engine.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Constants
|
* Constants
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var NODE_TEXT = 3;
|
var NODE_TEXT = 3;
|
||||||
var SelectorEngine = {
|
var SelectorEngine = {
|
||||||
matches: function matches(element, selector) {
|
matches: function matches(element, selector) {
|
||||||
|
|
@ -33,14 +33,14 @@
|
||||||
element = document.documentElement;
|
element = document.documentElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (_ref = []).concat.apply(_ref, polyfill_js.find.call(element, selector));
|
return (_ref = []).concat.apply(_ref, Element.prototype.querySelectorAll.call(element, selector));
|
||||||
},
|
},
|
||||||
findOne: function findOne(selector, element) {
|
findOne: function findOne(selector, element) {
|
||||||
if (element === void 0) {
|
if (element === void 0) {
|
||||||
element = document.documentElement;
|
element = document.documentElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
return polyfill_js.findOne.call(element, selector);
|
return Element.prototype.querySelector.call(element, selector);
|
||||||
},
|
},
|
||||||
children: function children(element, selector) {
|
children: function children(element, selector) {
|
||||||
var _ref2;
|
var _ref2;
|
||||||
|
|
|
||||||
2
js/dist/dom/selector-engine.js.map
vendored
2
js/dist/dom/selector-engine.js.map
vendored
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"selector-engine.js","sources":["../../src/dom/selector-engine.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-alpha1): dom/selector-engine.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport { find as findFn, findOne } from './polyfill'\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NODE_TEXT = 3\n\nconst SelectorEngine = {\n matches(element, selector) {\n return element.matches(selector)\n },\n\n find(selector, element = document.documentElement) {\n return [].concat(...findFn.call(element, selector))\n },\n\n findOne(selector, element = document.documentElement) {\n return findOne.call(element, selector)\n },\n\n children(element, selector) {\n const children = [].concat(...element.children)\n\n return children.filter(child => child.matches(selector))\n },\n\n parents(element, selector) {\n const parents = []\n\n let ancestor = element.parentNode\n\n while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {\n if (this.matches(ancestor, selector)) {\n parents.push(ancestor)\n }\n\n ancestor = ancestor.parentNode\n }\n\n return parents\n },\n\n prev(element, selector) {\n let previous = element.previousElementSibling\n\n while (previous) {\n if (previous.matches(selector)) {\n return [previous]\n }\n\n previous = previous.previousElementSibling\n }\n\n return []\n },\n\n next(element, selector) {\n let next = element.nextElementSibling\n\n while (next) {\n if (this.matches(next, selector)) {\n return [next]\n }\n\n next = next.nextElementSibling\n }\n\n return []\n }\n}\n\nexport default SelectorEngine\n"],"names":["NODE_TEXT","SelectorEngine","matches","element","selector","find","document","documentElement","concat","findFn","call","findOne","children","filter","child","parents","ancestor","parentNode","nodeType","Node","ELEMENT_NODE","push","prev","previous","previousElementSibling","next","nextElementSibling"],"mappings":";;;;;;;;;;;EAAA;;;;;;EASA;;;;;;EAMA,IAAMA,SAAS,GAAG,CAAlB;MAEMC,cAAc,GAAG;EACrBC,EAAAA,OADqB,mBACbC,OADa,EACJC,QADI,EACM;EACzB,WAAOD,OAAO,CAACD,OAAR,CAAgBE,QAAhB,CAAP;EACD,GAHoB;EAKrBC,EAAAA,IALqB,gBAKhBD,QALgB,EAKND,OALM,EAK8B;EAAA;;EAAA,QAApCA,OAAoC;EAApCA,MAAAA,OAAoC,GAA1BG,QAAQ,CAACC,eAAiB;EAAA;;EACjD,WAAO,YAAGC,MAAH,aAAaC,gBAAM,CAACC,IAAP,CAAYP,OAAZ,EAAqBC,QAArB,CAAb,CAAP;EACD,GAPoB;EASrBO,EAAAA,OATqB,mBASbP,QATa,EASHD,OATG,EASiC;EAAA,QAApCA,OAAoC;EAApCA,MAAAA,OAAoC,GAA1BG,QAAQ,CAACC,eAAiB;EAAA;;EACpD,WAAOI,mBAAO,CAACD,IAAR,CAAaP,OAAb,EAAsBC,QAAtB,CAAP;EACD,GAXoB;EAarBQ,EAAAA,QAbqB,oBAaZT,OAbY,EAaHC,QAbG,EAaO;EAAA;;EAC1B,QAAMQ,QAAQ,GAAG,aAAGJ,MAAH,cAAaL,OAAO,CAACS,QAArB,CAAjB;;EAEA,WAAOA,QAAQ,CAACC,MAAT,CAAgB,UAAAC,KAAK;EAAA,aAAIA,KAAK,CAACZ,OAAN,CAAcE,QAAd,CAAJ;EAAA,KAArB,CAAP;EACD,GAjBoB;EAmBrBW,EAAAA,OAnBqB,mBAmBbZ,OAnBa,EAmBJC,QAnBI,EAmBM;EACzB,QAAMW,OAAO,GAAG,EAAhB;EAEA,QAAIC,QAAQ,GAAGb,OAAO,CAACc,UAAvB;;EAEA,WAAOD,QAAQ,IAAIA,QAAQ,CAACE,QAAT,KAAsBC,IAAI,CAACC,YAAvC,IAAuDJ,QAAQ,CAACE,QAAT,KAAsBlB,SAApF,EAA+F;EAC7F,UAAI,KAAKE,OAAL,CAAac,QAAb,EAAuBZ,QAAvB,CAAJ,EAAsC;EACpCW,QAAAA,OAAO,CAACM,IAAR,CAAaL,QAAb;EACD;;EAEDA,MAAAA,QAAQ,GAAGA,QAAQ,CAACC,UAApB;EACD;;EAED,WAAOF,OAAP;EACD,GAjCoB;EAmCrBO,EAAAA,IAnCqB,gBAmChBnB,OAnCgB,EAmCPC,QAnCO,EAmCG;EACtB,QAAImB,QAAQ,GAAGpB,OAAO,CAACqB,sBAAvB;;EAEA,WAAOD,QAAP,EAAiB;EACf,UAAIA,QAAQ,CAACrB,OAAT,CAAiBE,QAAjB,CAAJ,EAAgC;EAC9B,eAAO,CAACmB,QAAD,CAAP;EACD;;EAEDA,MAAAA,QAAQ,GAAGA,QAAQ,CAACC,sBAApB;EACD;;EAED,WAAO,EAAP;EACD,GA/CoB;EAiDrBC,EAAAA,IAjDqB,gBAiDhBtB,OAjDgB,EAiDPC,QAjDO,EAiDG;EACtB,QAAIqB,IAAI,GAAGtB,OAAO,CAACuB,kBAAnB;;EAEA,WAAOD,IAAP,EAAa;EACX,UAAI,KAAKvB,OAAL,CAAauB,IAAb,EAAmBrB,QAAnB,CAAJ,EAAkC;EAChC,eAAO,CAACqB,IAAD,CAAP;EACD;;EAEDA,MAAAA,IAAI,GAAGA,IAAI,CAACC,kBAAZ;EACD;;EAED,WAAO,EAAP;EACD;EA7DoB;;;;;;;;"}
|
{"version":3,"file":"selector-engine.js","sources":["../../src/dom/selector-engine.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta1): dom/selector-engine.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NODE_TEXT = 3\n\nconst SelectorEngine = {\n matches(element, selector) {\n return element.matches(selector)\n },\n\n find(selector, element = document.documentElement) {\n return [].concat(...Element.prototype.querySelectorAll.call(element, selector))\n },\n\n findOne(selector, element = document.documentElement) {\n return Element.prototype.querySelector.call(element, selector)\n },\n\n children(element, selector) {\n const children = [].concat(...element.children)\n\n return children.filter(child => child.matches(selector))\n },\n\n parents(element, selector) {\n const parents = []\n\n let ancestor = element.parentNode\n\n while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {\n if (this.matches(ancestor, selector)) {\n parents.push(ancestor)\n }\n\n ancestor = ancestor.parentNode\n }\n\n return parents\n },\n\n prev(element, selector) {\n let previous = element.previousElementSibling\n\n while (previous) {\n if (previous.matches(selector)) {\n return [previous]\n }\n\n previous = previous.previousElementSibling\n }\n\n return []\n },\n\n next(element, selector) {\n let next = element.nextElementSibling\n\n while (next) {\n if (this.matches(next, selector)) {\n return [next]\n }\n\n next = next.nextElementSibling\n }\n\n return []\n }\n}\n\nexport default SelectorEngine\n"],"names":["NODE_TEXT","SelectorEngine","matches","element","selector","find","document","documentElement","concat","Element","prototype","querySelectorAll","call","findOne","querySelector","children","filter","child","parents","ancestor","parentNode","nodeType","Node","ELEMENT_NODE","push","prev","previous","previousElementSibling","next","nextElementSibling"],"mappings":";;;;;;;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EAEA,IAAMA,SAAS,GAAG,CAAlB;MAEMC,cAAc,GAAG;EACrBC,EAAAA,OADqB,mBACbC,OADa,EACJC,QADI,EACM;EACzB,WAAOD,OAAO,CAACD,OAAR,CAAgBE,QAAhB,CAAP;EACD,GAHoB;EAKrBC,EAAAA,IALqB,gBAKhBD,QALgB,EAKND,OALM,EAK8B;EAAA;;EAAA,QAApCA,OAAoC;EAApCA,MAAAA,OAAoC,GAA1BG,QAAQ,CAACC,eAAiB;EAAA;;EACjD,WAAO,YAAGC,MAAH,aAAaC,OAAO,CAACC,SAAR,CAAkBC,gBAAlB,CAAmCC,IAAnC,CAAwCT,OAAxC,EAAiDC,QAAjD,CAAb,CAAP;EACD,GAPoB;EASrBS,EAAAA,OATqB,mBASbT,QATa,EASHD,OATG,EASiC;EAAA,QAApCA,OAAoC;EAApCA,MAAAA,OAAoC,GAA1BG,QAAQ,CAACC,eAAiB;EAAA;;EACpD,WAAOE,OAAO,CAACC,SAAR,CAAkBI,aAAlB,CAAgCF,IAAhC,CAAqCT,OAArC,EAA8CC,QAA9C,CAAP;EACD,GAXoB;EAarBW,EAAAA,QAbqB,oBAaZZ,OAbY,EAaHC,QAbG,EAaO;EAAA;;EAC1B,QAAMW,QAAQ,GAAG,aAAGP,MAAH,cAAaL,OAAO,CAACY,QAArB,CAAjB;;EAEA,WAAOA,QAAQ,CAACC,MAAT,CAAgB,UAAAC,KAAK;EAAA,aAAIA,KAAK,CAACf,OAAN,CAAcE,QAAd,CAAJ;EAAA,KAArB,CAAP;EACD,GAjBoB;EAmBrBc,EAAAA,OAnBqB,mBAmBbf,OAnBa,EAmBJC,QAnBI,EAmBM;EACzB,QAAMc,OAAO,GAAG,EAAhB;EAEA,QAAIC,QAAQ,GAAGhB,OAAO,CAACiB,UAAvB;;EAEA,WAAOD,QAAQ,IAAIA,QAAQ,CAACE,QAAT,KAAsBC,IAAI,CAACC,YAAvC,IAAuDJ,QAAQ,CAACE,QAAT,KAAsBrB,SAApF,EAA+F;EAC7F,UAAI,KAAKE,OAAL,CAAaiB,QAAb,EAAuBf,QAAvB,CAAJ,EAAsC;EACpCc,QAAAA,OAAO,CAACM,IAAR,CAAaL,QAAb;EACD;;EAEDA,MAAAA,QAAQ,GAAGA,QAAQ,CAACC,UAApB;EACD;;EAED,WAAOF,OAAP;EACD,GAjCoB;EAmCrBO,EAAAA,IAnCqB,gBAmChBtB,OAnCgB,EAmCPC,QAnCO,EAmCG;EACtB,QAAIsB,QAAQ,GAAGvB,OAAO,CAACwB,sBAAvB;;EAEA,WAAOD,QAAP,EAAiB;EACf,UAAIA,QAAQ,CAACxB,OAAT,CAAiBE,QAAjB,CAAJ,EAAgC;EAC9B,eAAO,CAACsB,QAAD,CAAP;EACD;;EAEDA,MAAAA,QAAQ,GAAGA,QAAQ,CAACC,sBAApB;EACD;;EAED,WAAO,EAAP;EACD,GA/CoB;EAiDrBC,EAAAA,IAjDqB,gBAiDhBzB,OAjDgB,EAiDPC,QAjDO,EAiDG;EACtB,QAAIwB,IAAI,GAAGzB,OAAO,CAAC0B,kBAAnB;;EAEA,WAAOD,IAAP,EAAa;EACX,UAAI,KAAK1B,OAAL,CAAa0B,IAAb,EAAmBxB,QAAnB,CAAJ,EAAkC;EAChC,eAAO,CAACwB,IAAD,CAAP;EACD;;EAEDA,MAAAA,IAAI,GAAGA,IAAI,CAACC,kBAAZ;EACD;;EAED,WAAO,EAAP;EACD;EA7DoB;;;;;;;;"}
|
||||||
355
js/dist/dropdown.js
vendored
355
js/dist/dropdown.js
vendored
|
|
@ -1,23 +1,45 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap dropdown.js v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap dropdown.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('popper.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@popperjs/core'), require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/manipulator.js', 'popper.js', './dom/selector-engine.js'], factory) :
|
typeof define === 'function' && define.amd ? define(['@popperjs/core', './dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine'], factory) :
|
||||||
(global = global || self, global.Dropdown = factory(global.Data, global.EventHandler, global.Manipulator, global.Popper, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Dropdown = factory(global.Popper, global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
||||||
}(this, (function (Data, EventHandler, Manipulator, Popper, SelectorEngine) { 'use strict';
|
}(this, (function (Popper, Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
||||||
|
|
||||||
Data = Data && Object.prototype.hasOwnProperty.call(Data, 'default') ? Data['default'] : Data;
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
EventHandler = EventHandler && Object.prototype.hasOwnProperty.call(EventHandler, 'default') ? EventHandler['default'] : EventHandler;
|
|
||||||
Manipulator = Manipulator && Object.prototype.hasOwnProperty.call(Manipulator, 'default') ? Manipulator['default'] : Manipulator;
|
function _interopNamespace(e) {
|
||||||
Popper = Popper && Object.prototype.hasOwnProperty.call(Popper, 'default') ? Popper['default'] : Popper;
|
if (e && e.__esModule) return e;
|
||||||
SelectorEngine = SelectorEngine && Object.prototype.hasOwnProperty.call(SelectorEngine, 'default') ? SelectorEngine['default'] : SelectorEngine;
|
var n = Object.create(null);
|
||||||
|
if (e) {
|
||||||
|
Object.keys(e).forEach(function (k) {
|
||||||
|
if (k !== 'default') {
|
||||||
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
||||||
|
Object.defineProperty(n, k, d.get ? d : {
|
||||||
|
enumerable: true,
|
||||||
|
get: function () {
|
||||||
|
return e[k];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
n['default'] = e;
|
||||||
|
return Object.freeze(n);
|
||||||
|
}
|
||||||
|
|
||||||
|
var Popper__namespace = /*#__PURE__*/_interopNamespace(Popper);
|
||||||
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
||||||
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha1): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -31,7 +53,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
var getSelector = function getSelector(element) {
|
var getSelector = function getSelector(element) {
|
||||||
var selector = element.getAttribute('data-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href');
|
||||||
|
|
@ -84,18 +106,22 @@
|
||||||
var _window = window,
|
var _window = window,
|
||||||
jQuery = _window.jQuery;
|
jQuery = _window.jQuery;
|
||||||
|
|
||||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
|
||||||
return jQuery;
|
return jQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
var onDOMContentLoaded = function onDOMContentLoaded(callback) {
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', callback);
|
||||||
|
} else {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
|
@ -106,8 +132,55 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
|
function BaseComponent(element) {
|
||||||
|
if (!element) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this._element = element;
|
||||||
|
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
var _proto = BaseComponent.prototype;
|
||||||
|
|
||||||
|
_proto.dispose = function dispose() {
|
||||||
|
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
||||||
|
this._element = null;
|
||||||
|
}
|
||||||
|
/** Static */
|
||||||
|
;
|
||||||
|
|
||||||
|
BaseComponent.getInstance = function getInstance(element) {
|
||||||
|
return Data__default['default'].getData(element, this.DATA_KEY);
|
||||||
|
};
|
||||||
|
|
||||||
|
_createClass(BaseComponent, null, [{
|
||||||
|
key: "VERSION",
|
||||||
|
get: function get() {
|
||||||
|
return VERSION;
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
|
||||||
|
return BaseComponent;
|
||||||
|
}();
|
||||||
|
|
||||||
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||||
|
|
||||||
|
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||||
|
/**
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
* Constants
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
var NAME = 'dropdown';
|
var NAME = 'dropdown';
|
||||||
var VERSION = '5.0.0-alpha1';
|
|
||||||
var DATA_KEY = 'bs.dropdown';
|
var DATA_KEY = 'bs.dropdown';
|
||||||
var EVENT_KEY = "." + DATA_KEY;
|
var EVENT_KEY = "." + DATA_KEY;
|
||||||
var DATA_API_KEY = '.data-api';
|
var DATA_API_KEY = '.data-api';
|
||||||
|
|
@ -130,26 +203,24 @@
|
||||||
var CLASS_NAME_DISABLED = 'disabled';
|
var CLASS_NAME_DISABLED = 'disabled';
|
||||||
var CLASS_NAME_SHOW = 'show';
|
var CLASS_NAME_SHOW = 'show';
|
||||||
var CLASS_NAME_DROPUP = 'dropup';
|
var CLASS_NAME_DROPUP = 'dropup';
|
||||||
var CLASS_NAME_DROPRIGHT = 'dropright';
|
var CLASS_NAME_DROPEND = 'dropend';
|
||||||
var CLASS_NAME_DROPLEFT = 'dropleft';
|
var CLASS_NAME_DROPSTART = 'dropstart';
|
||||||
var CLASS_NAME_MENURIGHT = 'dropdown-menu-right';
|
|
||||||
var CLASS_NAME_NAVBAR = 'navbar';
|
var CLASS_NAME_NAVBAR = 'navbar';
|
||||||
var CLASS_NAME_POSITION_STATIC = 'position-static';
|
var SELECTOR_DATA_TOGGLE = '[data-bs-toggle="dropdown"]';
|
||||||
var SELECTOR_DATA_TOGGLE = '[data-toggle="dropdown"]';
|
|
||||||
var SELECTOR_FORM_CHILD = '.dropdown form';
|
var SELECTOR_FORM_CHILD = '.dropdown form';
|
||||||
var SELECTOR_MENU = '.dropdown-menu';
|
var SELECTOR_MENU = '.dropdown-menu';
|
||||||
var SELECTOR_NAVBAR_NAV = '.navbar-nav';
|
var SELECTOR_NAVBAR_NAV = '.navbar-nav';
|
||||||
var SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';
|
var SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';
|
||||||
var PLACEMENT_TOP = 'top-start';
|
var PLACEMENT_TOP = isRTL ? 'top-end' : 'top-start';
|
||||||
var PLACEMENT_TOPEND = 'top-end';
|
var PLACEMENT_TOPEND = isRTL ? 'top-start' : 'top-end';
|
||||||
var PLACEMENT_BOTTOM = 'bottom-start';
|
var PLACEMENT_BOTTOM = isRTL ? 'bottom-end' : 'bottom-start';
|
||||||
var PLACEMENT_BOTTOMEND = 'bottom-end';
|
var PLACEMENT_BOTTOMEND = isRTL ? 'bottom-start' : 'bottom-end';
|
||||||
var PLACEMENT_RIGHT = 'right-start';
|
var PLACEMENT_RIGHT = isRTL ? 'left-start' : 'right-start';
|
||||||
var PLACEMENT_LEFT = 'left-start';
|
var PLACEMENT_LEFT = isRTL ? 'right-start' : 'left-start';
|
||||||
var Default = {
|
var Default = {
|
||||||
offset: 0,
|
offset: 0,
|
||||||
flip: true,
|
flip: true,
|
||||||
boundary: 'scrollParent',
|
boundary: 'clippingParents',
|
||||||
reference: 'toggle',
|
reference: 'toggle',
|
||||||
display: 'dynamic',
|
display: 'dynamic',
|
||||||
popperConfig: null
|
popperConfig: null
|
||||||
|
|
@ -168,17 +239,21 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Dropdown = /*#__PURE__*/function () {
|
var Dropdown = /*#__PURE__*/function (_BaseComponent) {
|
||||||
|
_inheritsLoose(Dropdown, _BaseComponent);
|
||||||
|
|
||||||
function Dropdown(element, config) {
|
function Dropdown(element, config) {
|
||||||
this._element = element;
|
var _this;
|
||||||
this._popper = null;
|
|
||||||
this._config = this._getConfig(config);
|
|
||||||
this._menu = this._getMenuElement();
|
|
||||||
this._inNavbar = this._detectNavbar();
|
|
||||||
|
|
||||||
this._addEventListeners();
|
_this = _BaseComponent.call(this, element) || this;
|
||||||
|
_this._popper = null;
|
||||||
|
_this._config = _this._getConfig(config);
|
||||||
|
_this._menu = _this._getMenuElement();
|
||||||
|
_this._inNavbar = _this._detectNavbar();
|
||||||
|
|
||||||
Data.setData(element, DATA_KEY, this);
|
_this._addEventListeners();
|
||||||
|
|
||||||
|
return _this;
|
||||||
} // Getters
|
} // Getters
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -210,16 +285,16 @@
|
||||||
var relatedTarget = {
|
var relatedTarget = {
|
||||||
relatedTarget: this._element
|
relatedTarget: this._element
|
||||||
};
|
};
|
||||||
var showEvent = EventHandler.trigger(this._element, EVENT_SHOW, relatedTarget);
|
var showEvent = EventHandler__default['default'].trigger(this._element, EVENT_SHOW, relatedTarget);
|
||||||
|
|
||||||
if (showEvent.defaultPrevented) {
|
if (showEvent.defaultPrevented) {
|
||||||
return;
|
return;
|
||||||
} // Disable totally Popper.js for Dropdown in Navbar
|
} // Totally disable Popper for Dropdowns in Navbar
|
||||||
|
|
||||||
|
|
||||||
if (!this._inNavbar) {
|
if (!this._inNavbar) {
|
||||||
if (typeof Popper === 'undefined') {
|
if (typeof Popper__namespace === 'undefined') {
|
||||||
throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org)');
|
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
|
||||||
}
|
}
|
||||||
|
|
||||||
var referenceElement = this._element;
|
var referenceElement = this._element;
|
||||||
|
|
@ -232,16 +307,9 @@
|
||||||
if (typeof this._config.reference.jquery !== 'undefined') {
|
if (typeof this._config.reference.jquery !== 'undefined') {
|
||||||
referenceElement = this._config.reference[0];
|
referenceElement = this._config.reference[0];
|
||||||
}
|
}
|
||||||
} // If boundary is not `scrollParent`, then set position to `static`
|
|
||||||
// to allow the menu to "escape" the scroll parent's boundaries
|
|
||||||
// https://github.com/twbs/bootstrap/issues/24251
|
|
||||||
|
|
||||||
|
|
||||||
if (this._config.boundary !== 'scrollParent') {
|
|
||||||
parent.classList.add(CLASS_NAME_POSITION_STATIC);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig());
|
this._popper = Popper.createPopper(referenceElement, this._menu, this._getPopperConfig());
|
||||||
} // If this is a touch-enabled device we add extra
|
} // If this is a touch-enabled device we add extra
|
||||||
// empty mouseover listeners to the body's immediate children;
|
// empty mouseover listeners to the body's immediate children;
|
||||||
// only needed because of broken event delegation on iOS
|
// only needed because of broken event delegation on iOS
|
||||||
|
|
@ -252,7 +320,7 @@
|
||||||
var _ref;
|
var _ref;
|
||||||
|
|
||||||
(_ref = []).concat.apply(_ref, document.body.children).forEach(function (elem) {
|
(_ref = []).concat.apply(_ref, document.body.children).forEach(function (elem) {
|
||||||
return EventHandler.on(elem, 'mouseover', null, noop());
|
return EventHandler__default['default'].on(elem, 'mouseover', null, noop());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -260,9 +328,11 @@
|
||||||
|
|
||||||
this._element.setAttribute('aria-expanded', true);
|
this._element.setAttribute('aria-expanded', true);
|
||||||
|
|
||||||
Manipulator.toggleClass(this._menu, CLASS_NAME_SHOW);
|
this._menu.classList.toggle(CLASS_NAME_SHOW);
|
||||||
Manipulator.toggleClass(this._element, CLASS_NAME_SHOW);
|
|
||||||
EventHandler.trigger(parent, EVENT_SHOWN, relatedTarget);
|
this._element.classList.toggle(CLASS_NAME_SHOW);
|
||||||
|
|
||||||
|
EventHandler__default['default'].trigger(parent, EVENT_SHOWN, relatedTarget);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.hide = function hide() {
|
_proto.hide = function hide() {
|
||||||
|
|
@ -274,7 +344,7 @@
|
||||||
var relatedTarget = {
|
var relatedTarget = {
|
||||||
relatedTarget: this._element
|
relatedTarget: this._element
|
||||||
};
|
};
|
||||||
var hideEvent = EventHandler.trigger(parent, EVENT_HIDE, relatedTarget);
|
var hideEvent = EventHandler__default['default'].trigger(parent, EVENT_HIDE, relatedTarget);
|
||||||
|
|
||||||
if (hideEvent.defaultPrevented) {
|
if (hideEvent.defaultPrevented) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -284,15 +354,17 @@
|
||||||
this._popper.destroy();
|
this._popper.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
Manipulator.toggleClass(this._menu, CLASS_NAME_SHOW);
|
this._menu.classList.toggle(CLASS_NAME_SHOW);
|
||||||
Manipulator.toggleClass(this._element, CLASS_NAME_SHOW);
|
|
||||||
EventHandler.trigger(parent, EVENT_HIDDEN, relatedTarget);
|
this._element.classList.toggle(CLASS_NAME_SHOW);
|
||||||
|
|
||||||
|
EventHandler__default['default'].trigger(parent, EVENT_HIDDEN, relatedTarget);
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
_proto.dispose = function dispose() {
|
||||||
Data.removeData(this._element, DATA_KEY);
|
_BaseComponent.prototype.dispose.call(this);
|
||||||
EventHandler.off(this._element, EVENT_KEY);
|
|
||||||
this._element = null;
|
EventHandler__default['default'].off(this._element, EVENT_KEY);
|
||||||
this._menu = null;
|
this._menu = null;
|
||||||
|
|
||||||
if (this._popper) {
|
if (this._popper) {
|
||||||
|
|
@ -306,100 +378,82 @@
|
||||||
this._inNavbar = this._detectNavbar();
|
this._inNavbar = this._detectNavbar();
|
||||||
|
|
||||||
if (this._popper) {
|
if (this._popper) {
|
||||||
this._popper.scheduleUpdate();
|
this._popper.update();
|
||||||
}
|
}
|
||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto._addEventListeners = function _addEventListeners() {
|
_proto._addEventListeners = function _addEventListeners() {
|
||||||
var _this = this;
|
var _this2 = this;
|
||||||
|
|
||||||
EventHandler.on(this._element, EVENT_CLICK, function (event) {
|
EventHandler__default['default'].on(this._element, EVENT_CLICK, function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
_this.toggle();
|
_this2.toggle();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getConfig = function _getConfig(config) {
|
_proto._getConfig = function _getConfig(config) {
|
||||||
config = _objectSpread(_objectSpread(_objectSpread({}, this.constructor.Default), Manipulator.getDataAttributes(this._element)), config);
|
config = _extends({}, this.constructor.Default, Manipulator__default['default'].getDataAttributes(this._element), config);
|
||||||
typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
typeCheckConfig(NAME, config, this.constructor.DefaultType);
|
||||||
return config;
|
return config;
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getMenuElement = function _getMenuElement() {
|
_proto._getMenuElement = function _getMenuElement() {
|
||||||
return SelectorEngine.next(this._element, SELECTOR_MENU)[0];
|
return SelectorEngine__default['default'].next(this._element, SELECTOR_MENU)[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getPlacement = function _getPlacement() {
|
_proto._getPlacement = function _getPlacement() {
|
||||||
var parentDropdown = this._element.parentNode;
|
var parentDropdown = this._element.parentNode;
|
||||||
var placement = PLACEMENT_BOTTOM; // Handle dropup
|
|
||||||
|
|
||||||
if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {
|
if (parentDropdown.classList.contains(CLASS_NAME_DROPEND)) {
|
||||||
placement = PLACEMENT_TOP;
|
return PLACEMENT_RIGHT;
|
||||||
|
|
||||||
if (this._menu.classList.contains(CLASS_NAME_MENURIGHT)) {
|
|
||||||
placement = PLACEMENT_TOPEND;
|
|
||||||
}
|
|
||||||
} else if (parentDropdown.classList.contains(CLASS_NAME_DROPRIGHT)) {
|
|
||||||
placement = PLACEMENT_RIGHT;
|
|
||||||
} else if (parentDropdown.classList.contains(CLASS_NAME_DROPLEFT)) {
|
|
||||||
placement = PLACEMENT_LEFT;
|
|
||||||
} else if (this._menu.classList.contains(CLASS_NAME_MENURIGHT)) {
|
|
||||||
placement = PLACEMENT_BOTTOMEND;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return placement;
|
if (parentDropdown.classList.contains(CLASS_NAME_DROPSTART)) {
|
||||||
|
return PLACEMENT_LEFT;
|
||||||
|
} // We need to trim the value because custom properties can also include spaces
|
||||||
|
|
||||||
|
|
||||||
|
var isEnd = getComputedStyle(this._menu).getPropertyValue('--bs-position').trim() === 'end';
|
||||||
|
|
||||||
|
if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {
|
||||||
|
return isEnd ? PLACEMENT_TOPEND : PLACEMENT_TOP;
|
||||||
|
}
|
||||||
|
|
||||||
|
return isEnd ? PLACEMENT_BOTTOMEND : PLACEMENT_BOTTOM;
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._detectNavbar = function _detectNavbar() {
|
_proto._detectNavbar = function _detectNavbar() {
|
||||||
return Boolean(this._element.closest("." + CLASS_NAME_NAVBAR));
|
return this._element.closest("." + CLASS_NAME_NAVBAR) !== null;
|
||||||
};
|
|
||||||
|
|
||||||
_proto._getOffset = function _getOffset() {
|
|
||||||
var _this2 = this;
|
|
||||||
|
|
||||||
var offset = {};
|
|
||||||
|
|
||||||
if (typeof this._config.offset === 'function') {
|
|
||||||
offset.fn = function (data) {
|
|
||||||
data.offsets = _objectSpread(_objectSpread({}, data.offsets), _this2._config.offset(data.offsets, _this2._element) || {});
|
|
||||||
return data;
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
offset.offset = this._config.offset;
|
|
||||||
}
|
|
||||||
|
|
||||||
return offset;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._getPopperConfig = function _getPopperConfig() {
|
_proto._getPopperConfig = function _getPopperConfig() {
|
||||||
var popperConfig = {
|
var popperConfig = {
|
||||||
placement: this._getPlacement(),
|
placement: this._getPlacement(),
|
||||||
modifiers: {
|
modifiers: [{
|
||||||
offset: this._getOffset(),
|
name: 'preventOverflow',
|
||||||
flip: {
|
options: {
|
||||||
enabled: this._config.flip
|
altBoundary: this._config.flip,
|
||||||
},
|
rootBoundary: this._config.boundary
|
||||||
preventOverflow: {
|
|
||||||
boundariesElement: this._config.boundary
|
|
||||||
}
|
}
|
||||||
}
|
}]
|
||||||
}; // Disable Popper.js if we have a static display
|
}; // Disable Popper if we have a static display
|
||||||
|
|
||||||
if (this._config.display === 'static') {
|
if (this._config.display === 'static') {
|
||||||
popperConfig.modifiers.applyStyle = {
|
popperConfig.modifiers = [{
|
||||||
|
name: 'applyStyles',
|
||||||
enabled: false
|
enabled: false
|
||||||
};
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
return _objectSpread(_objectSpread({}, popperConfig), this._config.popperConfig);
|
return _extends({}, popperConfig, this._config.popperConfig);
|
||||||
} // Static
|
} // Static
|
||||||
;
|
;
|
||||||
|
|
||||||
Dropdown.dropdownInterface = function dropdownInterface(element, config) {
|
Dropdown.dropdownInterface = function dropdownInterface(element, config) {
|
||||||
var data = Data.getData(element, DATA_KEY);
|
var data = Data__default['default'].getData(element, DATA_KEY);
|
||||||
|
|
||||||
var _config = typeof config === 'object' ? config : null;
|
var _config = typeof config === 'object' ? config : null;
|
||||||
|
|
||||||
|
|
@ -427,11 +481,11 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var toggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE);
|
var toggles = SelectorEngine__default['default'].find(SELECTOR_DATA_TOGGLE);
|
||||||
|
|
||||||
for (var i = 0, len = toggles.length; i < len; i++) {
|
for (var i = 0, len = toggles.length; i < len; i++) {
|
||||||
var parent = Dropdown.getParentFromElement(toggles[i]);
|
var parent = Dropdown.getParentFromElement(toggles[i]);
|
||||||
var context = Data.getData(toggles[i], DATA_KEY);
|
var context = Data__default['default'].getData(toggles[i], DATA_KEY);
|
||||||
var relatedTarget = {
|
var relatedTarget = {
|
||||||
relatedTarget: toggles[i]
|
relatedTarget: toggles[i]
|
||||||
};
|
};
|
||||||
|
|
@ -454,7 +508,7 @@
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var hideEvent = EventHandler.trigger(parent, EVENT_HIDE, relatedTarget);
|
var hideEvent = EventHandler__default['default'].trigger(parent, EVENT_HIDE, relatedTarget);
|
||||||
|
|
||||||
if (hideEvent.defaultPrevented) {
|
if (hideEvent.defaultPrevented) {
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -466,7 +520,7 @@
|
||||||
var _ref2;
|
var _ref2;
|
||||||
|
|
||||||
(_ref2 = []).concat.apply(_ref2, document.body.children).forEach(function (elem) {
|
(_ref2 = []).concat.apply(_ref2, document.body.children).forEach(function (elem) {
|
||||||
return EventHandler.off(elem, 'mouseover', null, noop());
|
return EventHandler__default['default'].off(elem, 'mouseover', null, noop());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -478,7 +532,7 @@
|
||||||
|
|
||||||
dropdownMenu.classList.remove(CLASS_NAME_SHOW);
|
dropdownMenu.classList.remove(CLASS_NAME_SHOW);
|
||||||
toggles[i].classList.remove(CLASS_NAME_SHOW);
|
toggles[i].classList.remove(CLASS_NAME_SHOW);
|
||||||
EventHandler.trigger(parent, EVENT_HIDDEN, relatedTarget);
|
EventHandler__default['default'].trigger(parent, EVENT_HIDDEN, relatedTarget);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -509,7 +563,7 @@
|
||||||
var isActive = this.classList.contains(CLASS_NAME_SHOW);
|
var isActive = this.classList.contains(CLASS_NAME_SHOW);
|
||||||
|
|
||||||
if (event.key === ESCAPE_KEY) {
|
if (event.key === ESCAPE_KEY) {
|
||||||
var button = this.matches(SELECTOR_DATA_TOGGLE) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE)[0];
|
var button = this.matches(SELECTOR_DATA_TOGGLE) ? this : SelectorEngine__default['default'].prev(this, SELECTOR_DATA_TOGGLE)[0];
|
||||||
button.focus();
|
button.focus();
|
||||||
Dropdown.clearMenus();
|
Dropdown.clearMenus();
|
||||||
return;
|
return;
|
||||||
|
|
@ -520,21 +574,20 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var items = SelectorEngine.find(SELECTOR_VISIBLE_ITEMS, parent).filter(isVisible);
|
var items = SelectorEngine__default['default'].find(SELECTOR_VISIBLE_ITEMS, parent).filter(isVisible);
|
||||||
|
|
||||||
if (!items.length) {
|
if (!items.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var index = items.indexOf(event.target);
|
var index = items.indexOf(event.target); // Up
|
||||||
|
|
||||||
if (event.key === ARROW_UP_KEY && index > 0) {
|
if (event.key === ARROW_UP_KEY && index > 0) {
|
||||||
// Up
|
|
||||||
index--;
|
index--;
|
||||||
}
|
} // Down
|
||||||
|
|
||||||
|
|
||||||
if (event.key === ARROW_DOWN_KEY && index < items.length - 1) {
|
if (event.key === ARROW_DOWN_KEY && index < items.length - 1) {
|
||||||
// Down
|
|
||||||
index++;
|
index++;
|
||||||
} // index is -1 if the first keydown is an ArrowUp
|
} // index is -1 if the first keydown is an ArrowUp
|
||||||
|
|
||||||
|
|
@ -543,16 +596,7 @@
|
||||||
items[index].focus();
|
items[index].focus();
|
||||||
};
|
};
|
||||||
|
|
||||||
Dropdown.getInstance = function getInstance(element) {
|
_createClass$1(Dropdown, null, [{
|
||||||
return Data.getData(element, DATA_KEY);
|
|
||||||
};
|
|
||||||
|
|
||||||
_createClass(Dropdown, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
key: "Default",
|
key: "Default",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return Default;
|
return Default;
|
||||||
|
|
@ -562,10 +606,15 @@
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return DefaultType;
|
return DefaultType;
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: "DATA_KEY",
|
||||||
|
get: function get() {
|
||||||
|
return DATA_KEY;
|
||||||
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Dropdown;
|
return Dropdown;
|
||||||
}();
|
}(BaseComponent);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
|
|
@ -573,38 +622,40 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
EventHandler.on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE, Dropdown.dataApiKeydownHandler);
|
EventHandler__default['default'].on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE, Dropdown.dataApiKeydownHandler);
|
||||||
EventHandler.on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown.dataApiKeydownHandler);
|
EventHandler__default['default'].on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown.dataApiKeydownHandler);
|
||||||
EventHandler.on(document, EVENT_CLICK_DATA_API, Dropdown.clearMenus);
|
EventHandler__default['default'].on(document, EVENT_CLICK_DATA_API, Dropdown.clearMenus);
|
||||||
EventHandler.on(document, EVENT_KEYUP_DATA_API, Dropdown.clearMenus);
|
EventHandler__default['default'].on(document, EVENT_KEYUP_DATA_API, Dropdown.clearMenus);
|
||||||
EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
EventHandler__default['default'].on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
Dropdown.dropdownInterface(this, 'toggle');
|
Dropdown.dropdownInterface(this, 'toggle');
|
||||||
});
|
});
|
||||||
EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_FORM_CHILD, function (e) {
|
EventHandler__default['default'].on(document, EVENT_CLICK_DATA_API, SELECTOR_FORM_CHILD, function (e) {
|
||||||
return e.stopPropagation();
|
return e.stopPropagation();
|
||||||
});
|
});
|
||||||
var $ = getjQuery();
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* jQuery
|
* jQuery
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* add .dropdown to jQuery only if jQuery is present
|
* add .Dropdown to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* istanbul ignore if */
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
if ($) {
|
if ($) {
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||||
$.fn[NAME] = Dropdown.jQueryInterface;
|
$.fn[NAME] = Dropdown.jQueryInterface;
|
||||||
$.fn[NAME].Constructor = Dropdown;
|
$.fn[NAME].Constructor = Dropdown;
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
$.fn[NAME].noConflict = function () {
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||||
return Dropdown.jQueryInterface;
|
return Dropdown.jQueryInterface;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return Dropdown;
|
return Dropdown;
|
||||||
|
|
||||||
|
|
|
||||||
2
js/dist/dropdown.js.map
vendored
2
js/dist/dropdown.js.map
vendored
File diff suppressed because one or more lines are too long
392
js/dist/modal.js
vendored
392
js/dist/modal.js
vendored
|
|
@ -1,22 +1,24 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap modal.js v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap modal.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/manipulator.js', './dom/selector-engine.js'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine'], factory) :
|
||||||
(global = global || self, global.Modal = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Modal = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
||||||
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
||||||
|
|
||||||
Data = Data && Object.prototype.hasOwnProperty.call(Data, 'default') ? Data['default'] : Data;
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
EventHandler = EventHandler && Object.prototype.hasOwnProperty.call(EventHandler, 'default') ? EventHandler['default'] : EventHandler;
|
|
||||||
Manipulator = Manipulator && Object.prototype.hasOwnProperty.call(Manipulator, 'default') ? Manipulator['default'] : Manipulator;
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
SelectorEngine = SelectorEngine && Object.prototype.hasOwnProperty.call(SelectorEngine, 'default') ? SelectorEngine['default'] : SelectorEngine;
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
||||||
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha1): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -32,7 +34,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
var getSelector = function getSelector(element) {
|
var getSelector = function getSelector(element) {
|
||||||
var selector = element.getAttribute('data-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href');
|
||||||
|
|
@ -57,8 +59,8 @@
|
||||||
transitionDuration = _window$getComputedSt.transitionDuration,
|
transitionDuration = _window$getComputedSt.transitionDuration,
|
||||||
transitionDelay = _window$getComputedSt.transitionDelay;
|
transitionDelay = _window$getComputedSt.transitionDelay;
|
||||||
|
|
||||||
var floatTransitionDuration = parseFloat(transitionDuration);
|
var floatTransitionDuration = Number.parseFloat(transitionDuration);
|
||||||
var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
var floatTransitionDelay = Number.parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
||||||
|
|
||||||
if (!floatTransitionDuration && !floatTransitionDelay) {
|
if (!floatTransitionDuration && !floatTransitionDelay) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -67,7 +69,7 @@
|
||||||
|
|
||||||
transitionDuration = transitionDuration.split(',')[0];
|
transitionDuration = transitionDuration.split(',')[0];
|
||||||
transitionDelay = transitionDelay.split(',')[0];
|
transitionDelay = transitionDelay.split(',')[0];
|
||||||
return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
|
return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
|
||||||
};
|
};
|
||||||
|
|
||||||
var triggerTransitionEnd = function triggerTransitionEnd(element) {
|
var triggerTransitionEnd = function triggerTransitionEnd(element) {
|
||||||
|
|
@ -130,18 +132,22 @@
|
||||||
var _window = window,
|
var _window = window,
|
||||||
jQuery = _window.jQuery;
|
jQuery = _window.jQuery;
|
||||||
|
|
||||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
|
||||||
return jQuery;
|
return jQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
var onDOMContentLoaded = function onDOMContentLoaded(callback) {
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', callback);
|
||||||
|
} else {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
|
@ -152,8 +158,55 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
|
function BaseComponent(element) {
|
||||||
|
if (!element) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this._element = element;
|
||||||
|
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
var _proto = BaseComponent.prototype;
|
||||||
|
|
||||||
|
_proto.dispose = function dispose() {
|
||||||
|
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
||||||
|
this._element = null;
|
||||||
|
}
|
||||||
|
/** Static */
|
||||||
|
;
|
||||||
|
|
||||||
|
BaseComponent.getInstance = function getInstance(element) {
|
||||||
|
return Data__default['default'].getData(element, this.DATA_KEY);
|
||||||
|
};
|
||||||
|
|
||||||
|
_createClass(BaseComponent, null, [{
|
||||||
|
key: "VERSION",
|
||||||
|
get: function get() {
|
||||||
|
return VERSION;
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
|
||||||
|
return BaseComponent;
|
||||||
|
}();
|
||||||
|
|
||||||
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||||
|
|
||||||
|
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||||
|
/**
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
* Constants
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
var NAME = 'modal';
|
var NAME = 'modal';
|
||||||
var VERSION = '5.0.0-alpha1';
|
|
||||||
var DATA_KEY = 'bs.modal';
|
var DATA_KEY = 'bs.modal';
|
||||||
var EVENT_KEY = "." + DATA_KEY;
|
var EVENT_KEY = "." + DATA_KEY;
|
||||||
var DATA_API_KEY = '.data-api';
|
var DATA_API_KEY = '.data-api';
|
||||||
|
|
@ -161,14 +214,12 @@
|
||||||
var Default = {
|
var Default = {
|
||||||
backdrop: true,
|
backdrop: true,
|
||||||
keyboard: true,
|
keyboard: true,
|
||||||
focus: true,
|
focus: true
|
||||||
show: true
|
|
||||||
};
|
};
|
||||||
var DefaultType = {
|
var DefaultType = {
|
||||||
backdrop: '(boolean|string)',
|
backdrop: '(boolean|string)',
|
||||||
keyboard: 'boolean',
|
keyboard: 'boolean',
|
||||||
focus: 'boolean',
|
focus: 'boolean'
|
||||||
show: 'boolean'
|
|
||||||
};
|
};
|
||||||
var EVENT_HIDE = "hide" + EVENT_KEY;
|
var EVENT_HIDE = "hide" + EVENT_KEY;
|
||||||
var EVENT_HIDE_PREVENTED = "hidePrevented" + EVENT_KEY;
|
var EVENT_HIDE_PREVENTED = "hidePrevented" + EVENT_KEY;
|
||||||
|
|
@ -190,8 +241,8 @@
|
||||||
var CLASS_NAME_STATIC = 'modal-static';
|
var CLASS_NAME_STATIC = 'modal-static';
|
||||||
var SELECTOR_DIALOG = '.modal-dialog';
|
var SELECTOR_DIALOG = '.modal-dialog';
|
||||||
var SELECTOR_MODAL_BODY = '.modal-body';
|
var SELECTOR_MODAL_BODY = '.modal-body';
|
||||||
var SELECTOR_DATA_TOGGLE = '[data-toggle="modal"]';
|
var SELECTOR_DATA_TOGGLE = '[data-bs-toggle="modal"]';
|
||||||
var SELECTOR_DATA_DISMISS = '[data-dismiss="modal"]';
|
var SELECTOR_DATA_DISMISS = '[data-bs-dismiss="modal"]';
|
||||||
var SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
|
var SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
|
||||||
var SELECTOR_STICKY_CONTENT = '.sticky-top';
|
var SELECTOR_STICKY_CONTENT = '.sticky-top';
|
||||||
/**
|
/**
|
||||||
|
|
@ -200,18 +251,22 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Modal = /*#__PURE__*/function () {
|
var Modal = /*#__PURE__*/function (_BaseComponent) {
|
||||||
|
_inheritsLoose(Modal, _BaseComponent);
|
||||||
|
|
||||||
function Modal(element, config) {
|
function Modal(element, config) {
|
||||||
this._config = this._getConfig(config);
|
var _this;
|
||||||
this._element = element;
|
|
||||||
this._dialog = SelectorEngine.findOne(SELECTOR_DIALOG, element);
|
_this = _BaseComponent.call(this, element) || this;
|
||||||
this._backdrop = null;
|
_this._config = _this._getConfig(config);
|
||||||
this._isShown = false;
|
_this._dialog = SelectorEngine__default['default'].findOne(SELECTOR_DIALOG, element);
|
||||||
this._isBodyOverflowing = false;
|
_this._backdrop = null;
|
||||||
this._ignoreBackdropClick = false;
|
_this._isShown = false;
|
||||||
this._isTransitioning = false;
|
_this._isBodyOverflowing = false;
|
||||||
this._scrollbarWidth = 0;
|
_this._ignoreBackdropClick = false;
|
||||||
Data.setData(element, DATA_KEY, this);
|
_this._isTransitioning = false;
|
||||||
|
_this._scrollbarWidth = 0;
|
||||||
|
return _this;
|
||||||
} // Getters
|
} // Getters
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -223,7 +278,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.show = function show(relatedTarget) {
|
_proto.show = function show(relatedTarget) {
|
||||||
var _this = this;
|
var _this2 = this;
|
||||||
|
|
||||||
if (this._isShown || this._isTransitioning) {
|
if (this._isShown || this._isTransitioning) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -233,7 +288,7 @@
|
||||||
this._isTransitioning = true;
|
this._isTransitioning = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
var showEvent = EventHandler.trigger(this._element, EVENT_SHOW, {
|
var showEvent = EventHandler__default['default'].trigger(this._element, EVENT_SHOW, {
|
||||||
relatedTarget: relatedTarget
|
relatedTarget: relatedTarget
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -253,24 +308,24 @@
|
||||||
|
|
||||||
this._setResizeEvent();
|
this._setResizeEvent();
|
||||||
|
|
||||||
EventHandler.on(this._element, EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) {
|
EventHandler__default['default'].on(this._element, EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) {
|
||||||
return _this.hide(event);
|
return _this2.hide(event);
|
||||||
});
|
});
|
||||||
EventHandler.on(this._dialog, EVENT_MOUSEDOWN_DISMISS, function () {
|
EventHandler__default['default'].on(this._dialog, EVENT_MOUSEDOWN_DISMISS, function () {
|
||||||
EventHandler.one(_this._element, EVENT_MOUSEUP_DISMISS, function (event) {
|
EventHandler__default['default'].one(_this2._element, EVENT_MOUSEUP_DISMISS, function (event) {
|
||||||
if (event.target === _this._element) {
|
if (event.target === _this2._element) {
|
||||||
_this._ignoreBackdropClick = true;
|
_this2._ignoreBackdropClick = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
this._showBackdrop(function () {
|
this._showBackdrop(function () {
|
||||||
return _this._showElement(relatedTarget);
|
return _this2._showElement(relatedTarget);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.hide = function hide(event) {
|
_proto.hide = function hide(event) {
|
||||||
var _this2 = this;
|
var _this3 = this;
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
@ -280,7 +335,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var hideEvent = EventHandler.trigger(this._element, EVENT_HIDE);
|
var hideEvent = EventHandler__default['default'].trigger(this._element, EVENT_HIDE);
|
||||||
|
|
||||||
if (hideEvent.defaultPrevented) {
|
if (hideEvent.defaultPrevented) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -298,17 +353,17 @@
|
||||||
|
|
||||||
this._setResizeEvent();
|
this._setResizeEvent();
|
||||||
|
|
||||||
EventHandler.off(document, EVENT_FOCUSIN);
|
EventHandler__default['default'].off(document, EVENT_FOCUSIN);
|
||||||
|
|
||||||
this._element.classList.remove(CLASS_NAME_SHOW);
|
this._element.classList.remove(CLASS_NAME_SHOW);
|
||||||
|
|
||||||
EventHandler.off(this._element, EVENT_CLICK_DISMISS);
|
EventHandler__default['default'].off(this._element, EVENT_CLICK_DISMISS);
|
||||||
EventHandler.off(this._dialog, EVENT_MOUSEDOWN_DISMISS);
|
EventHandler__default['default'].off(this._dialog, EVENT_MOUSEDOWN_DISMISS);
|
||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._element);
|
var transitionDuration = getTransitionDurationFromElement(this._element);
|
||||||
EventHandler.one(this._element, TRANSITION_END, function (event) {
|
EventHandler__default['default'].one(this._element, TRANSITION_END, function (event) {
|
||||||
return _this2._hideModal(event);
|
return _this3._hideModal(event);
|
||||||
});
|
});
|
||||||
emulateTransitionEnd(this._element, transitionDuration);
|
emulateTransitionEnd(this._element, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -318,18 +373,19 @@
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
_proto.dispose = function dispose() {
|
||||||
[window, this._element, this._dialog].forEach(function (htmlElement) {
|
[window, this._element, this._dialog].forEach(function (htmlElement) {
|
||||||
return EventHandler.off(htmlElement, EVENT_KEY);
|
return EventHandler__default['default'].off(htmlElement, EVENT_KEY);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
_BaseComponent.prototype.dispose.call(this);
|
||||||
/**
|
/**
|
||||||
* `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API`
|
* `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API`
|
||||||
* Do not move `document` in `htmlElements` array
|
* Do not move `document` in `htmlElements` array
|
||||||
* It will remove `EVENT_CLICK_DATA_API` event that should remain
|
* It will remove `EVENT_CLICK_DATA_API` event that should remain
|
||||||
*/
|
*/
|
||||||
|
|
||||||
EventHandler.off(document, EVENT_FOCUSIN);
|
|
||||||
Data.removeData(this._element, DATA_KEY);
|
EventHandler__default['default'].off(document, EVENT_FOCUSIN);
|
||||||
this._config = null;
|
this._config = null;
|
||||||
this._element = null;
|
|
||||||
this._dialog = null;
|
this._dialog = null;
|
||||||
this._backdrop = null;
|
this._backdrop = null;
|
||||||
this._isShown = null;
|
this._isShown = null;
|
||||||
|
|
@ -345,17 +401,17 @@
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto._getConfig = function _getConfig(config) {
|
_proto._getConfig = function _getConfig(config) {
|
||||||
config = _objectSpread(_objectSpread({}, Default), config);
|
config = _extends({}, Default, config);
|
||||||
typeCheckConfig(NAME, config, DefaultType);
|
typeCheckConfig(NAME, config, DefaultType);
|
||||||
return config;
|
return config;
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._showElement = function _showElement(relatedTarget) {
|
_proto._showElement = function _showElement(relatedTarget) {
|
||||||
var _this3 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
var transition = this._element.classList.contains(CLASS_NAME_FADE);
|
var transition = this._element.classList.contains(CLASS_NAME_FADE);
|
||||||
|
|
||||||
var modalBody = SelectorEngine.findOne(SELECTOR_MODAL_BODY, this._dialog);
|
var modalBody = SelectorEngine__default['default'].findOne(SELECTOR_MODAL_BODY, this._dialog);
|
||||||
|
|
||||||
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
|
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
|
||||||
// Don't move modal's DOM position
|
// Don't move modal's DOM position
|
||||||
|
|
@ -387,19 +443,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var transitionComplete = function transitionComplete() {
|
var transitionComplete = function transitionComplete() {
|
||||||
if (_this3._config.focus) {
|
if (_this4._config.focus) {
|
||||||
_this3._element.focus();
|
_this4._element.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
_this3._isTransitioning = false;
|
_this4._isTransitioning = false;
|
||||||
EventHandler.trigger(_this3._element, EVENT_SHOWN, {
|
EventHandler__default['default'].trigger(_this4._element, EVENT_SHOWN, {
|
||||||
relatedTarget: relatedTarget
|
relatedTarget: relatedTarget
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(this._dialog);
|
var transitionDuration = getTransitionDurationFromElement(this._dialog);
|
||||||
EventHandler.one(this._dialog, TRANSITION_END, transitionComplete);
|
EventHandler__default['default'].one(this._dialog, TRANSITION_END, transitionComplete);
|
||||||
emulateTransitionEnd(this._dialog, transitionDuration);
|
emulateTransitionEnd(this._dialog, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
transitionComplete();
|
transitionComplete();
|
||||||
|
|
@ -407,49 +463,49 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._enforceFocus = function _enforceFocus() {
|
_proto._enforceFocus = function _enforceFocus() {
|
||||||
var _this4 = this;
|
var _this5 = this;
|
||||||
|
|
||||||
EventHandler.off(document, EVENT_FOCUSIN); // guard against infinite focus loop
|
EventHandler__default['default'].off(document, EVENT_FOCUSIN); // guard against infinite focus loop
|
||||||
|
|
||||||
EventHandler.on(document, EVENT_FOCUSIN, function (event) {
|
EventHandler__default['default'].on(document, EVENT_FOCUSIN, function (event) {
|
||||||
if (document !== event.target && _this4._element !== event.target && !_this4._element.contains(event.target)) {
|
if (document !== event.target && _this5._element !== event.target && !_this5._element.contains(event.target)) {
|
||||||
_this4._element.focus();
|
_this5._element.focus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._setEscapeEvent = function _setEscapeEvent() {
|
_proto._setEscapeEvent = function _setEscapeEvent() {
|
||||||
var _this5 = this;
|
var _this6 = this;
|
||||||
|
|
||||||
if (this._isShown) {
|
if (this._isShown) {
|
||||||
EventHandler.on(this._element, EVENT_KEYDOWN_DISMISS, function (event) {
|
EventHandler__default['default'].on(this._element, EVENT_KEYDOWN_DISMISS, function (event) {
|
||||||
if (_this5._config.keyboard && event.key === ESCAPE_KEY) {
|
if (_this6._config.keyboard && event.key === ESCAPE_KEY) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
_this5.hide();
|
_this6.hide();
|
||||||
} else if (!_this5._config.keyboard && event.key === ESCAPE_KEY) {
|
} else if (!_this6._config.keyboard && event.key === ESCAPE_KEY) {
|
||||||
_this5._triggerBackdropTransition();
|
_this6._triggerBackdropTransition();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
EventHandler.off(this._element, EVENT_KEYDOWN_DISMISS);
|
EventHandler__default['default'].off(this._element, EVENT_KEYDOWN_DISMISS);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._setResizeEvent = function _setResizeEvent() {
|
_proto._setResizeEvent = function _setResizeEvent() {
|
||||||
var _this6 = this;
|
var _this7 = this;
|
||||||
|
|
||||||
if (this._isShown) {
|
if (this._isShown) {
|
||||||
EventHandler.on(window, EVENT_RESIZE, function () {
|
EventHandler__default['default'].on(window, EVENT_RESIZE, function () {
|
||||||
return _this6._adjustDialog();
|
return _this7._adjustDialog();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
EventHandler.off(window, EVENT_RESIZE);
|
EventHandler__default['default'].off(window, EVENT_RESIZE);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._hideModal = function _hideModal() {
|
_proto._hideModal = function _hideModal() {
|
||||||
var _this7 = this;
|
var _this8 = this;
|
||||||
|
|
||||||
this._element.style.display = 'none';
|
this._element.style.display = 'none';
|
||||||
|
|
||||||
|
|
@ -464,11 +520,11 @@
|
||||||
this._showBackdrop(function () {
|
this._showBackdrop(function () {
|
||||||
document.body.classList.remove(CLASS_NAME_OPEN);
|
document.body.classList.remove(CLASS_NAME_OPEN);
|
||||||
|
|
||||||
_this7._resetAdjustments();
|
_this8._resetAdjustments();
|
||||||
|
|
||||||
_this7._resetScrollbar();
|
_this8._resetScrollbar();
|
||||||
|
|
||||||
EventHandler.trigger(_this7._element, EVENT_HIDDEN);
|
EventHandler__default['default'].trigger(_this8._element, EVENT_HIDDEN);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -479,7 +535,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._showBackdrop = function _showBackdrop(callback) {
|
_proto._showBackdrop = function _showBackdrop(callback) {
|
||||||
var _this8 = this;
|
var _this9 = this;
|
||||||
|
|
||||||
var animate = this._element.classList.contains(CLASS_NAME_FADE) ? CLASS_NAME_FADE : '';
|
var animate = this._element.classList.contains(CLASS_NAME_FADE) ? CLASS_NAME_FADE : '';
|
||||||
|
|
||||||
|
|
@ -492,9 +548,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
document.body.appendChild(this._backdrop);
|
document.body.appendChild(this._backdrop);
|
||||||
EventHandler.on(this._element, EVENT_CLICK_DISMISS, function (event) {
|
EventHandler__default['default'].on(this._element, EVENT_CLICK_DISMISS, function (event) {
|
||||||
if (_this8._ignoreBackdropClick) {
|
if (_this9._ignoreBackdropClick) {
|
||||||
_this8._ignoreBackdropClick = false;
|
_this9._ignoreBackdropClick = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -502,7 +558,11 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_this8._triggerBackdropTransition();
|
if (_this9._config.backdrop === 'static') {
|
||||||
|
_this9._triggerBackdropTransition();
|
||||||
|
} else {
|
||||||
|
_this9.hide();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (animate) {
|
if (animate) {
|
||||||
|
|
@ -517,13 +577,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
var backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
||||||
EventHandler.one(this._backdrop, TRANSITION_END, callback);
|
EventHandler__default['default'].one(this._backdrop, TRANSITION_END, callback);
|
||||||
emulateTransitionEnd(this._backdrop, backdropTransitionDuration);
|
emulateTransitionEnd(this._backdrop, backdropTransitionDuration);
|
||||||
} else if (!this._isShown && this._backdrop) {
|
} else if (!this._isShown && this._backdrop) {
|
||||||
this._backdrop.classList.remove(CLASS_NAME_SHOW);
|
this._backdrop.classList.remove(CLASS_NAME_SHOW);
|
||||||
|
|
||||||
var callbackRemove = function callbackRemove() {
|
var callbackRemove = function callbackRemove() {
|
||||||
_this8._removeBackdrop();
|
_this9._removeBackdrop();
|
||||||
|
|
||||||
callback();
|
callback();
|
||||||
};
|
};
|
||||||
|
|
@ -531,7 +591,7 @@
|
||||||
if (this._element.classList.contains(CLASS_NAME_FADE)) {
|
if (this._element.classList.contains(CLASS_NAME_FADE)) {
|
||||||
var _backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
var _backdropTransitionDuration = getTransitionDurationFromElement(this._backdrop);
|
||||||
|
|
||||||
EventHandler.one(this._backdrop, TRANSITION_END, callbackRemove);
|
EventHandler__default['default'].one(this._backdrop, TRANSITION_END, callbackRemove);
|
||||||
emulateTransitionEnd(this._backdrop, _backdropTransitionDuration);
|
emulateTransitionEnd(this._backdrop, _backdropTransitionDuration);
|
||||||
} else {
|
} else {
|
||||||
callbackRemove();
|
callbackRemove();
|
||||||
|
|
@ -542,27 +602,37 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._triggerBackdropTransition = function _triggerBackdropTransition() {
|
_proto._triggerBackdropTransition = function _triggerBackdropTransition() {
|
||||||
var _this9 = this;
|
var _this10 = this;
|
||||||
|
|
||||||
if (this._config.backdrop === 'static') {
|
var hideEvent = EventHandler__default['default'].trigger(this._element, EVENT_HIDE_PREVENTED);
|
||||||
var hideEvent = EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);
|
|
||||||
|
|
||||||
if (hideEvent.defaultPrevented) {
|
if (hideEvent.defaultPrevented) {
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
this._element.classList.add(CLASS_NAME_STATIC);
|
|
||||||
|
|
||||||
var modalTransitionDuration = getTransitionDurationFromElement(this._element);
|
|
||||||
EventHandler.one(this._element, TRANSITION_END, function () {
|
|
||||||
_this9._element.classList.remove(CLASS_NAME_STATIC);
|
|
||||||
});
|
|
||||||
emulateTransitionEnd(this._element, modalTransitionDuration);
|
|
||||||
|
|
||||||
this._element.focus();
|
|
||||||
} else {
|
|
||||||
this.hide();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
|
||||||
|
|
||||||
|
if (!isModalOverflowing) {
|
||||||
|
this._element.style.overflowY = 'hidden';
|
||||||
|
}
|
||||||
|
|
||||||
|
this._element.classList.add(CLASS_NAME_STATIC);
|
||||||
|
|
||||||
|
var modalTransitionDuration = getTransitionDurationFromElement(this._dialog);
|
||||||
|
EventHandler__default['default'].off(this._element, TRANSITION_END);
|
||||||
|
EventHandler__default['default'].one(this._element, TRANSITION_END, function () {
|
||||||
|
_this10._element.classList.remove(CLASS_NAME_STATIC);
|
||||||
|
|
||||||
|
if (!isModalOverflowing) {
|
||||||
|
EventHandler__default['default'].one(_this10._element, TRANSITION_END, function () {
|
||||||
|
_this10._element.style.overflowY = '';
|
||||||
|
});
|
||||||
|
emulateTransitionEnd(_this10._element, modalTransitionDuration);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
emulateTransitionEnd(this._element, modalTransitionDuration);
|
||||||
|
|
||||||
|
this._element.focus();
|
||||||
} // ----------------------------------------------------------------------
|
} // ----------------------------------------------------------------------
|
||||||
// the following methods are used to handle overflowing modals
|
// the following methods are used to handle overflowing modals
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|
@ -571,11 +641,11 @@
|
||||||
_proto._adjustDialog = function _adjustDialog() {
|
_proto._adjustDialog = function _adjustDialog() {
|
||||||
var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
|
var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
|
||||||
|
|
||||||
if (!this._isBodyOverflowing && isModalOverflowing) {
|
if (!this._isBodyOverflowing && isModalOverflowing && !isRTL || this._isBodyOverflowing && !isModalOverflowing && isRTL) {
|
||||||
this._element.style.paddingLeft = this._scrollbarWidth + "px";
|
this._element.style.paddingLeft = this._scrollbarWidth + "px";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._isBodyOverflowing && !isModalOverflowing) {
|
if (this._isBodyOverflowing && !isModalOverflowing && !isRTL || !this._isBodyOverflowing && isModalOverflowing && isRTL) {
|
||||||
this._element.style.paddingRight = this._scrollbarWidth + "px";
|
this._element.style.paddingRight = this._scrollbarWidth + "px";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -592,30 +662,30 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._setScrollbar = function _setScrollbar() {
|
_proto._setScrollbar = function _setScrollbar() {
|
||||||
var _this10 = this;
|
var _this11 = this;
|
||||||
|
|
||||||
if (this._isBodyOverflowing) {
|
if (this._isBodyOverflowing) {
|
||||||
// Note: DOMNode.style.paddingRight returns the actual value or '' if not set
|
// Note: DOMNode.style.paddingRight returns the actual value or '' if not set
|
||||||
// while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
|
// while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
|
||||||
// Adjust fixed content padding
|
// Adjust fixed content padding
|
||||||
SelectorEngine.find(SELECTOR_FIXED_CONTENT).forEach(function (element) {
|
SelectorEngine__default['default'].find(SELECTOR_FIXED_CONTENT).forEach(function (element) {
|
||||||
var actualPadding = element.style.paddingRight;
|
var actualPadding = element.style.paddingRight;
|
||||||
var calculatedPadding = window.getComputedStyle(element)['padding-right'];
|
var calculatedPadding = window.getComputedStyle(element)['padding-right'];
|
||||||
Manipulator.setDataAttribute(element, 'padding-right', actualPadding);
|
Manipulator__default['default'].setDataAttribute(element, 'padding-right', actualPadding);
|
||||||
element.style.paddingRight = parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px";
|
element.style.paddingRight = Number.parseFloat(calculatedPadding) + _this11._scrollbarWidth + "px";
|
||||||
}); // Adjust sticky content margin
|
}); // Adjust sticky content margin
|
||||||
|
|
||||||
SelectorEngine.find(SELECTOR_STICKY_CONTENT).forEach(function (element) {
|
SelectorEngine__default['default'].find(SELECTOR_STICKY_CONTENT).forEach(function (element) {
|
||||||
var actualMargin = element.style.marginRight;
|
var actualMargin = element.style.marginRight;
|
||||||
var calculatedMargin = window.getComputedStyle(element)['margin-right'];
|
var calculatedMargin = window.getComputedStyle(element)['margin-right'];
|
||||||
Manipulator.setDataAttribute(element, 'margin-right', actualMargin);
|
Manipulator__default['default'].setDataAttribute(element, 'margin-right', actualMargin);
|
||||||
element.style.marginRight = parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px";
|
element.style.marginRight = Number.parseFloat(calculatedMargin) - _this11._scrollbarWidth + "px";
|
||||||
}); // Adjust body padding
|
}); // Adjust body padding
|
||||||
|
|
||||||
var actualPadding = document.body.style.paddingRight;
|
var actualPadding = document.body.style.paddingRight;
|
||||||
var calculatedPadding = window.getComputedStyle(document.body)['padding-right'];
|
var calculatedPadding = window.getComputedStyle(document.body)['padding-right'];
|
||||||
Manipulator.setDataAttribute(document.body, 'padding-right', actualPadding);
|
Manipulator__default['default'].setDataAttribute(document.body, 'padding-right', actualPadding);
|
||||||
document.body.style.paddingRight = parseFloat(calculatedPadding) + this._scrollbarWidth + "px";
|
document.body.style.paddingRight = Number.parseFloat(calculatedPadding) + this._scrollbarWidth + "px";
|
||||||
}
|
}
|
||||||
|
|
||||||
document.body.classList.add(CLASS_NAME_OPEN);
|
document.body.classList.add(CLASS_NAME_OPEN);
|
||||||
|
|
@ -623,30 +693,30 @@
|
||||||
|
|
||||||
_proto._resetScrollbar = function _resetScrollbar() {
|
_proto._resetScrollbar = function _resetScrollbar() {
|
||||||
// Restore fixed content padding
|
// Restore fixed content padding
|
||||||
SelectorEngine.find(SELECTOR_FIXED_CONTENT).forEach(function (element) {
|
SelectorEngine__default['default'].find(SELECTOR_FIXED_CONTENT).forEach(function (element) {
|
||||||
var padding = Manipulator.getDataAttribute(element, 'padding-right');
|
var padding = Manipulator__default['default'].getDataAttribute(element, 'padding-right');
|
||||||
|
|
||||||
if (typeof padding !== 'undefined') {
|
if (typeof padding !== 'undefined') {
|
||||||
Manipulator.removeDataAttribute(element, 'padding-right');
|
Manipulator__default['default'].removeDataAttribute(element, 'padding-right');
|
||||||
element.style.paddingRight = padding;
|
element.style.paddingRight = padding;
|
||||||
}
|
}
|
||||||
}); // Restore sticky content and navbar-toggler margin
|
}); // Restore sticky content and navbar-toggler margin
|
||||||
|
|
||||||
SelectorEngine.find("" + SELECTOR_STICKY_CONTENT).forEach(function (element) {
|
SelectorEngine__default['default'].find("" + SELECTOR_STICKY_CONTENT).forEach(function (element) {
|
||||||
var margin = Manipulator.getDataAttribute(element, 'margin-right');
|
var margin = Manipulator__default['default'].getDataAttribute(element, 'margin-right');
|
||||||
|
|
||||||
if (typeof margin !== 'undefined') {
|
if (typeof margin !== 'undefined') {
|
||||||
Manipulator.removeDataAttribute(element, 'margin-right');
|
Manipulator__default['default'].removeDataAttribute(element, 'margin-right');
|
||||||
element.style.marginRight = margin;
|
element.style.marginRight = margin;
|
||||||
}
|
}
|
||||||
}); // Restore body padding
|
}); // Restore body padding
|
||||||
|
|
||||||
var padding = Manipulator.getDataAttribute(document.body, 'padding-right');
|
var padding = Manipulator__default['default'].getDataAttribute(document.body, 'padding-right');
|
||||||
|
|
||||||
if (typeof padding === 'undefined') {
|
if (typeof padding === 'undefined') {
|
||||||
document.body.style.paddingRight = '';
|
document.body.style.paddingRight = '';
|
||||||
} else {
|
} else {
|
||||||
Manipulator.removeDataAttribute(document.body, 'padding-right');
|
Manipulator__default['default'].removeDataAttribute(document.body, 'padding-right');
|
||||||
document.body.style.paddingRight = padding;
|
document.body.style.paddingRight = padding;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -664,9 +734,9 @@
|
||||||
|
|
||||||
Modal.jQueryInterface = function jQueryInterface(config, relatedTarget) {
|
Modal.jQueryInterface = function jQueryInterface(config, relatedTarget) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var data = Data.getData(this, DATA_KEY);
|
var data = Data__default['default'].getData(this, DATA_KEY);
|
||||||
|
|
||||||
var _config = _objectSpread(_objectSpread(_objectSpread({}, Default), Manipulator.getDataAttributes(this)), typeof config === 'object' && config ? config : {});
|
var _config = _extends({}, Default, Manipulator__default['default'].getDataAttributes(this), typeof config === 'object' && config ? config : {});
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
data = new Modal(this, _config);
|
data = new Modal(this, _config);
|
||||||
|
|
@ -678,30 +748,24 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
data[config](relatedTarget);
|
data[config](relatedTarget);
|
||||||
} else if (_config.show) {
|
|
||||||
data.show(relatedTarget);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
Modal.getInstance = function getInstance(element) {
|
_createClass$1(Modal, null, [{
|
||||||
return Data.getData(element, DATA_KEY);
|
|
||||||
};
|
|
||||||
|
|
||||||
_createClass(Modal, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
key: "Default",
|
key: "Default",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return Default;
|
return Default;
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: "DATA_KEY",
|
||||||
|
get: function get() {
|
||||||
|
return DATA_KEY;
|
||||||
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Modal;
|
return Modal;
|
||||||
}();
|
}(BaseComponent);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
|
|
@ -709,8 +773,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
EventHandler__default['default'].on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||||
var _this11 = this;
|
var _this12 = this;
|
||||||
|
|
||||||
var target = getElementFromSelector(this);
|
var target = getElementFromSelector(this);
|
||||||
|
|
||||||
|
|
@ -718,48 +782,50 @@
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
EventHandler.one(target, EVENT_SHOW, function (showEvent) {
|
EventHandler__default['default'].one(target, EVENT_SHOW, function (showEvent) {
|
||||||
if (showEvent.defaultPrevented) {
|
if (showEvent.defaultPrevented) {
|
||||||
// only register focus restorer if modal will actually get shown
|
// only register focus restorer if modal will actually get shown
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
EventHandler.one(target, EVENT_HIDDEN, function () {
|
EventHandler__default['default'].one(target, EVENT_HIDDEN, function () {
|
||||||
if (isVisible(_this11)) {
|
if (isVisible(_this12)) {
|
||||||
_this11.focus();
|
_this12.focus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
var data = Data.getData(target, DATA_KEY);
|
var data = Data__default['default'].getData(target, DATA_KEY);
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
var config = _objectSpread(_objectSpread({}, Manipulator.getDataAttributes(target)), Manipulator.getDataAttributes(this));
|
var config = _extends({}, Manipulator__default['default'].getDataAttributes(target), Manipulator__default['default'].getDataAttributes(this));
|
||||||
|
|
||||||
data = new Modal(target, config);
|
data = new Modal(target, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
data.show(this);
|
data.show(this);
|
||||||
});
|
});
|
||||||
var $ = getjQuery();
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* jQuery
|
* jQuery
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* add .modal to jQuery only if jQuery is present
|
* add .Modal to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* istanbul ignore if */
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
if ($) {
|
if ($) {
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||||
$.fn[NAME] = Modal.jQueryInterface;
|
$.fn[NAME] = Modal.jQueryInterface;
|
||||||
$.fn[NAME].Constructor = Modal;
|
$.fn[NAME].Constructor = Modal;
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
$.fn[NAME].noConflict = function () {
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||||
return Modal.jQueryInterface;
|
return Modal.jQueryInterface;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return Modal;
|
return Modal;
|
||||||
|
|
||||||
|
|
|
||||||
2
js/dist/modal.js.map
vendored
2
js/dist/modal.js.map
vendored
File diff suppressed because one or more lines are too long
101
js/dist/popover.js
vendored
101
js/dist/popover.js
vendored
|
|
@ -1,21 +1,23 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap popover.js v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap popover.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/selector-engine.js'), require('./tooltip.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/selector-engine.js'), require('./tooltip.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/selector-engine.js', './tooltip.js'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/selector-engine', './tooltip'], factory) :
|
||||||
(global = global || self, global.Popover = factory(global.Data, global.SelectorEngine, global.Tooltip));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Popover = factory(global.Data, global.SelectorEngine, global.Tooltip));
|
||||||
}(this, (function (Data, SelectorEngine, Tooltip) { 'use strict';
|
}(this, (function (Data, SelectorEngine, Tooltip) { 'use strict';
|
||||||
|
|
||||||
Data = Data && Object.prototype.hasOwnProperty.call(Data, 'default') ? Data['default'] : Data;
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
SelectorEngine = SelectorEngine && Object.prototype.hasOwnProperty.call(SelectorEngine, 'default') ? SelectorEngine['default'] : SelectorEngine;
|
|
||||||
Tooltip = Tooltip && Object.prototype.hasOwnProperty.call(Tooltip, 'default') ? Tooltip['default'] : Tooltip;
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha1): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -24,24 +26,30 @@
|
||||||
var _window = window,
|
var _window = window,
|
||||||
jQuery = _window.jQuery;
|
jQuery = _window.jQuery;
|
||||||
|
|
||||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
|
||||||
return jQuery;
|
return jQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var onDOMContentLoaded = function onDOMContentLoaded(callback) {
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', callback);
|
||||||
|
} else {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||||
|
|
||||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||||
|
|
||||||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||||
|
|
||||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
||||||
|
|
||||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Constants
|
* Constants
|
||||||
|
|
@ -49,20 +57,19 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var NAME = 'popover';
|
var NAME = 'popover';
|
||||||
var VERSION = '5.0.0-alpha1';
|
|
||||||
var DATA_KEY = 'bs.popover';
|
var DATA_KEY = 'bs.popover';
|
||||||
var EVENT_KEY = "." + DATA_KEY;
|
var EVENT_KEY = "." + DATA_KEY;
|
||||||
var CLASS_PREFIX = 'bs-popover';
|
var CLASS_PREFIX = 'bs-popover';
|
||||||
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
|
||||||
|
|
||||||
var Default = _objectSpread(_objectSpread({}, Tooltip.Default), {}, {
|
var Default = _extends({}, Tooltip__default['default'].Default, {
|
||||||
placement: 'right',
|
placement: 'right',
|
||||||
trigger: 'click',
|
trigger: 'click',
|
||||||
content: '',
|
content: '',
|
||||||
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
|
template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div>' + '</div>'
|
||||||
});
|
});
|
||||||
|
|
||||||
var DefaultType = _objectSpread(_objectSpread({}, Tooltip.DefaultType), {}, {
|
var DefaultType = _extends({}, Tooltip__default['default'].DefaultType, {
|
||||||
content: '(string|element|function)'
|
content: '(string|element|function)'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -105,25 +112,25 @@
|
||||||
_proto.setContent = function setContent() {
|
_proto.setContent = function setContent() {
|
||||||
var tip = this.getTipElement(); // we use append for html objects to maintain js events
|
var tip = this.getTipElement(); // we use append for html objects to maintain js events
|
||||||
|
|
||||||
this.setElementContent(SelectorEngine.findOne(SELECTOR_TITLE, tip), this.getTitle());
|
this.setElementContent(SelectorEngine__default['default'].findOne(SELECTOR_TITLE, tip), this.getTitle());
|
||||||
|
|
||||||
var content = this._getContent();
|
var content = this._getContent();
|
||||||
|
|
||||||
if (typeof content === 'function') {
|
if (typeof content === 'function') {
|
||||||
content = content.call(this.element);
|
content = content.call(this._element);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setElementContent(SelectorEngine.findOne(SELECTOR_CONTENT, tip), content);
|
this.setElementContent(SelectorEngine__default['default'].findOne(SELECTOR_CONTENT, tip), content);
|
||||||
tip.classList.remove(CLASS_NAME_FADE, CLASS_NAME_SHOW);
|
tip.classList.remove(CLASS_NAME_FADE, CLASS_NAME_SHOW);
|
||||||
};
|
|
||||||
|
|
||||||
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
|
||||||
this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
|
|
||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
||||||
|
_proto._addAttachmentClass = function _addAttachmentClass(attachment) {
|
||||||
|
this.getTipElement().classList.add(CLASS_PREFIX + "-" + this.updateAttachment(attachment));
|
||||||
|
};
|
||||||
|
|
||||||
_proto._getContent = function _getContent() {
|
_proto._getContent = function _getContent() {
|
||||||
return this.element.getAttribute('data-content') || this.config.content;
|
return this._element.getAttribute('data-bs-content') || this.config.content;
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._cleanTipClass = function _cleanTipClass() {
|
_proto._cleanTipClass = function _cleanTipClass() {
|
||||||
|
|
@ -142,7 +149,7 @@
|
||||||
|
|
||||||
Popover.jQueryInterface = function jQueryInterface(config) {
|
Popover.jQueryInterface = function jQueryInterface(config) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var data = Data.getData(this, DATA_KEY);
|
var data = Data__default['default'].getData(this, DATA_KEY);
|
||||||
|
|
||||||
var _config = typeof config === 'object' ? config : null;
|
var _config = typeof config === 'object' ? config : null;
|
||||||
|
|
||||||
|
|
@ -152,7 +159,7 @@
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
data = new Popover(this, _config);
|
data = new Popover(this, _config);
|
||||||
Data.setData(this, DATA_KEY, data);
|
Data__default['default'].setData(this, DATA_KEY, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
|
|
@ -165,18 +172,9 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
Popover.getInstance = function getInstance(element) {
|
|
||||||
return Data.getData(element, DATA_KEY);
|
|
||||||
};
|
|
||||||
|
|
||||||
_createClass(Popover, null, [{
|
_createClass(Popover, null, [{
|
||||||
key: "VERSION",
|
|
||||||
// Getters
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
key: "Default",
|
key: "Default",
|
||||||
|
// Getters
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return Default;
|
return Default;
|
||||||
}
|
}
|
||||||
|
|
@ -208,27 +206,30 @@
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Popover;
|
return Popover;
|
||||||
}(Tooltip);
|
}(Tooltip__default['default']);
|
||||||
|
|
||||||
var $ = getjQuery();
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* jQuery
|
* jQuery
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
* add .Popover to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* istanbul ignore if */
|
|
||||||
|
|
||||||
if ($) {
|
onDOMContentLoaded(function () {
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
var $ = getjQuery();
|
||||||
$.fn[NAME] = Popover.jQueryInterface;
|
/* istanbul ignore if */
|
||||||
$.fn[NAME].Constructor = Popover;
|
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
if ($) {
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||||
return Popover.jQueryInterface;
|
$.fn[NAME] = Popover.jQueryInterface;
|
||||||
};
|
$.fn[NAME].Constructor = Popover;
|
||||||
}
|
|
||||||
|
$.fn[NAME].noConflict = function () {
|
||||||
|
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||||
|
return Popover.jQueryInterface;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return Popover;
|
return Popover;
|
||||||
|
|
||||||
|
|
|
||||||
2
js/dist/popover.js.map
vendored
2
js/dist/popover.js.map
vendored
File diff suppressed because one or more lines are too long
205
js/dist/scrollspy.js
vendored
205
js/dist/scrollspy.js
vendored
|
|
@ -1,22 +1,24 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap scrollspy.js v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap scrollspy.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/manipulator.js'), require('./dom/selector-engine.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/manipulator.js', './dom/selector-engine.js'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/manipulator', './dom/selector-engine'], factory) :
|
||||||
(global = global || self, global.ScrollSpy = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.ScrollSpy = factory(global.Data, global.EventHandler, global.Manipulator, global.SelectorEngine));
|
||||||
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
}(this, (function (Data, EventHandler, Manipulator, SelectorEngine) { 'use strict';
|
||||||
|
|
||||||
Data = Data && Object.prototype.hasOwnProperty.call(Data, 'default') ? Data['default'] : Data;
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
EventHandler = EventHandler && Object.prototype.hasOwnProperty.call(EventHandler, 'default') ? EventHandler['default'] : EventHandler;
|
|
||||||
Manipulator = Manipulator && Object.prototype.hasOwnProperty.call(Manipulator, 'default') ? Manipulator['default'] : Manipulator;
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
SelectorEngine = SelectorEngine && Object.prototype.hasOwnProperty.call(SelectorEngine, 'default') ? SelectorEngine['default'] : SelectorEngine;
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
|
var Manipulator__default = /*#__PURE__*/_interopDefaultLegacy(Manipulator);
|
||||||
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha1): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -45,7 +47,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
var getSelector = function getSelector(element) {
|
var getSelector = function getSelector(element) {
|
||||||
var selector = element.getAttribute('data-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href');
|
||||||
|
|
@ -85,18 +87,22 @@
|
||||||
var _window = window,
|
var _window = window,
|
||||||
jQuery = _window.jQuery;
|
jQuery = _window.jQuery;
|
||||||
|
|
||||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
|
||||||
return jQuery;
|
return jQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
var onDOMContentLoaded = function onDOMContentLoaded(callback) {
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', callback);
|
||||||
|
} else {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
|
@ -107,8 +113,55 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
|
function BaseComponent(element) {
|
||||||
|
if (!element) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this._element = element;
|
||||||
|
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
var _proto = BaseComponent.prototype;
|
||||||
|
|
||||||
|
_proto.dispose = function dispose() {
|
||||||
|
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
||||||
|
this._element = null;
|
||||||
|
}
|
||||||
|
/** Static */
|
||||||
|
;
|
||||||
|
|
||||||
|
BaseComponent.getInstance = function getInstance(element) {
|
||||||
|
return Data__default['default'].getData(element, this.DATA_KEY);
|
||||||
|
};
|
||||||
|
|
||||||
|
_createClass(BaseComponent, null, [{
|
||||||
|
key: "VERSION",
|
||||||
|
get: function get() {
|
||||||
|
return VERSION;
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
|
||||||
|
return BaseComponent;
|
||||||
|
}();
|
||||||
|
|
||||||
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||||
|
|
||||||
|
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||||
|
/**
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
* Constants
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
var NAME = 'scrollspy';
|
var NAME = 'scrollspy';
|
||||||
var VERSION = '5.0.0-alpha1';
|
|
||||||
var DATA_KEY = 'bs.scrollspy';
|
var DATA_KEY = 'bs.scrollspy';
|
||||||
var EVENT_KEY = "." + DATA_KEY;
|
var EVENT_KEY = "." + DATA_KEY;
|
||||||
var DATA_API_KEY = '.data-api';
|
var DATA_API_KEY = '.data-api';
|
||||||
|
|
@ -127,7 +180,7 @@
|
||||||
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY + DATA_API_KEY;
|
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY + DATA_API_KEY;
|
||||||
var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
|
var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
|
||||||
var CLASS_NAME_ACTIVE = 'active';
|
var CLASS_NAME_ACTIVE = 'active';
|
||||||
var SELECTOR_DATA_SPY = '[data-spy="scroll"]';
|
var SELECTOR_DATA_SPY = '[data-bs-spy="scroll"]';
|
||||||
var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
|
var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
|
||||||
var SELECTOR_NAV_LINKS = '.nav-link';
|
var SELECTOR_NAV_LINKS = '.nav-link';
|
||||||
var SELECTOR_NAV_ITEMS = '.nav-item';
|
var SELECTOR_NAV_ITEMS = '.nav-item';
|
||||||
|
|
@ -142,26 +195,29 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var ScrollSpy = /*#__PURE__*/function () {
|
var ScrollSpy = /*#__PURE__*/function (_BaseComponent) {
|
||||||
function ScrollSpy(element, config) {
|
_inheritsLoose(ScrollSpy, _BaseComponent);
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
this._element = element;
|
function ScrollSpy(element, config) {
|
||||||
this._scrollElement = element.tagName === 'BODY' ? window : element;
|
var _this;
|
||||||
this._config = this._getConfig(config);
|
|
||||||
this._selector = this._config.target + " " + SELECTOR_NAV_LINKS + "," + (this._config.target + " " + SELECTOR_LIST_ITEMS + ",") + (this._config.target + " ." + CLASS_NAME_DROPDOWN_ITEM);
|
_this = _BaseComponent.call(this, element) || this;
|
||||||
this._offsets = [];
|
_this._scrollElement = element.tagName === 'BODY' ? window : element;
|
||||||
this._targets = [];
|
_this._config = _this._getConfig(config);
|
||||||
this._activeTarget = null;
|
_this._selector = _this._config.target + " " + SELECTOR_NAV_LINKS + ", " + _this._config.target + " " + SELECTOR_LIST_ITEMS + ", " + _this._config.target + " ." + CLASS_NAME_DROPDOWN_ITEM;
|
||||||
this._scrollHeight = 0;
|
_this._offsets = [];
|
||||||
EventHandler.on(this._scrollElement, EVENT_SCROLL, function (event) {
|
_this._targets = [];
|
||||||
|
_this._activeTarget = null;
|
||||||
|
_this._scrollHeight = 0;
|
||||||
|
EventHandler__default['default'].on(_this._scrollElement, EVENT_SCROLL, function (event) {
|
||||||
return _this._process(event);
|
return _this._process(event);
|
||||||
});
|
});
|
||||||
this.refresh();
|
|
||||||
|
|
||||||
this._process();
|
_this.refresh();
|
||||||
|
|
||||||
Data.setData(element, DATA_KEY, this);
|
_this._process();
|
||||||
|
|
||||||
|
return _this;
|
||||||
} // Getters
|
} // Getters
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -177,20 +233,16 @@
|
||||||
this._offsets = [];
|
this._offsets = [];
|
||||||
this._targets = [];
|
this._targets = [];
|
||||||
this._scrollHeight = this._getScrollHeight();
|
this._scrollHeight = this._getScrollHeight();
|
||||||
var targets = SelectorEngine.find(this._selector);
|
var targets = SelectorEngine__default['default'].find(this._selector);
|
||||||
targets.map(function (element) {
|
targets.map(function (element) {
|
||||||
var target;
|
|
||||||
var targetSelector = getSelectorFromElement(element);
|
var targetSelector = getSelectorFromElement(element);
|
||||||
|
var target = targetSelector ? SelectorEngine__default['default'].findOne(targetSelector) : null;
|
||||||
if (targetSelector) {
|
|
||||||
target = SelectorEngine.findOne(targetSelector);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (target) {
|
if (target) {
|
||||||
var targetBCR = target.getBoundingClientRect();
|
var targetBCR = target.getBoundingClientRect();
|
||||||
|
|
||||||
if (targetBCR.width || targetBCR.height) {
|
if (targetBCR.width || targetBCR.height) {
|
||||||
return [Manipulator[offsetMethod](target).top + offsetBase, targetSelector];
|
return [Manipulator__default['default'][offsetMethod](target).top + offsetBase, targetSelector];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -207,9 +259,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
_proto.dispose = function dispose() {
|
||||||
Data.removeData(this._element, DATA_KEY);
|
_BaseComponent.prototype.dispose.call(this);
|
||||||
EventHandler.off(this._scrollElement, EVENT_KEY);
|
|
||||||
this._element = null;
|
EventHandler__default['default'].off(this._scrollElement, EVENT_KEY);
|
||||||
this._scrollElement = null;
|
this._scrollElement = null;
|
||||||
this._config = null;
|
this._config = null;
|
||||||
this._selector = null;
|
this._selector = null;
|
||||||
|
|
@ -221,7 +273,7 @@
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto._getConfig = function _getConfig(config) {
|
_proto._getConfig = function _getConfig(config) {
|
||||||
config = _objectSpread(_objectSpread({}, Default), typeof config === 'object' && config ? config : {});
|
config = _extends({}, Default, typeof config === 'object' && config ? config : {});
|
||||||
|
|
||||||
if (typeof config.target !== 'string' && isElement(config.target)) {
|
if (typeof config.target !== 'string' && isElement(config.target)) {
|
||||||
var id = config.target.id;
|
var id = config.target.id;
|
||||||
|
|
@ -294,39 +346,39 @@
|
||||||
this._clear();
|
this._clear();
|
||||||
|
|
||||||
var queries = this._selector.split(',').map(function (selector) {
|
var queries = this._selector.split(',').map(function (selector) {
|
||||||
return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
|
return selector + "[data-bs-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
|
||||||
});
|
});
|
||||||
|
|
||||||
var link = SelectorEngine.findOne(queries.join(','));
|
var link = SelectorEngine__default['default'].findOne(queries.join(','));
|
||||||
|
|
||||||
if (link.classList.contains(CLASS_NAME_DROPDOWN_ITEM)) {
|
if (link.classList.contains(CLASS_NAME_DROPDOWN_ITEM)) {
|
||||||
SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE, link.closest(SELECTOR_DROPDOWN)).classList.add(CLASS_NAME_ACTIVE);
|
SelectorEngine__default['default'].findOne(SELECTOR_DROPDOWN_TOGGLE, link.closest(SELECTOR_DROPDOWN)).classList.add(CLASS_NAME_ACTIVE);
|
||||||
link.classList.add(CLASS_NAME_ACTIVE);
|
link.classList.add(CLASS_NAME_ACTIVE);
|
||||||
} else {
|
} else {
|
||||||
// Set triggered link as active
|
// Set triggered link as active
|
||||||
link.classList.add(CLASS_NAME_ACTIVE);
|
link.classList.add(CLASS_NAME_ACTIVE);
|
||||||
SelectorEngine.parents(link, SELECTOR_NAV_LIST_GROUP).forEach(function (listGroup) {
|
SelectorEngine__default['default'].parents(link, SELECTOR_NAV_LIST_GROUP).forEach(function (listGroup) {
|
||||||
// Set triggered links parents as active
|
// Set triggered links parents as active
|
||||||
// With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
|
// With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
|
||||||
SelectorEngine.prev(listGroup, SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).forEach(function (item) {
|
SelectorEngine__default['default'].prev(listGroup, SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).forEach(function (item) {
|
||||||
return item.classList.add(CLASS_NAME_ACTIVE);
|
return item.classList.add(CLASS_NAME_ACTIVE);
|
||||||
}); // Handle special case when .nav-link is inside .nav-item
|
}); // Handle special case when .nav-link is inside .nav-item
|
||||||
|
|
||||||
SelectorEngine.prev(listGroup, SELECTOR_NAV_ITEMS).forEach(function (navItem) {
|
SelectorEngine__default['default'].prev(listGroup, SELECTOR_NAV_ITEMS).forEach(function (navItem) {
|
||||||
SelectorEngine.children(navItem, SELECTOR_NAV_LINKS).forEach(function (item) {
|
SelectorEngine__default['default'].children(navItem, SELECTOR_NAV_LINKS).forEach(function (item) {
|
||||||
return item.classList.add(CLASS_NAME_ACTIVE);
|
return item.classList.add(CLASS_NAME_ACTIVE);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
EventHandler.trigger(this._scrollElement, EVENT_ACTIVATE, {
|
EventHandler__default['default'].trigger(this._scrollElement, EVENT_ACTIVATE, {
|
||||||
relatedTarget: target
|
relatedTarget: target
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_proto._clear = function _clear() {
|
_proto._clear = function _clear() {
|
||||||
SelectorEngine.find(this._selector).filter(function (node) {
|
SelectorEngine__default['default'].find(this._selector).filter(function (node) {
|
||||||
return node.classList.contains(CLASS_NAME_ACTIVE);
|
return node.classList.contains(CLASS_NAME_ACTIVE);
|
||||||
}).forEach(function (node) {
|
}).forEach(function (node) {
|
||||||
return node.classList.remove(CLASS_NAME_ACTIVE);
|
return node.classList.remove(CLASS_NAME_ACTIVE);
|
||||||
|
|
@ -336,7 +388,7 @@
|
||||||
|
|
||||||
ScrollSpy.jQueryInterface = function jQueryInterface(config) {
|
ScrollSpy.jQueryInterface = function jQueryInterface(config) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var data = Data.getData(this, DATA_KEY);
|
var data = Data__default['default'].getData(this, DATA_KEY);
|
||||||
|
|
||||||
var _config = typeof config === 'object' && config;
|
var _config = typeof config === 'object' && config;
|
||||||
|
|
||||||
|
|
@ -354,24 +406,20 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
ScrollSpy.getInstance = function getInstance(element) {
|
_createClass$1(ScrollSpy, null, [{
|
||||||
return Data.getData(element, DATA_KEY);
|
|
||||||
};
|
|
||||||
|
|
||||||
_createClass(ScrollSpy, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
|
||||||
return VERSION;
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
key: "Default",
|
key: "Default",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return Default;
|
return Default;
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: "DATA_KEY",
|
||||||
|
get: function get() {
|
||||||
|
return DATA_KEY;
|
||||||
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
return ScrollSpy;
|
return ScrollSpy;
|
||||||
}();
|
}(BaseComponent);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
|
|
@ -379,30 +427,33 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
EventHandler.on(window, EVENT_LOAD_DATA_API, function () {
|
EventHandler__default['default'].on(window, EVENT_LOAD_DATA_API, function () {
|
||||||
SelectorEngine.find(SELECTOR_DATA_SPY).forEach(function (spy) {
|
SelectorEngine__default['default'].find(SELECTOR_DATA_SPY).forEach(function (spy) {
|
||||||
return new ScrollSpy(spy, Manipulator.getDataAttributes(spy));
|
return new ScrollSpy(spy, Manipulator__default['default'].getDataAttributes(spy));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
var $ = getjQuery();
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* jQuery
|
* jQuery
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
* add .ScrollSpy to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* istanbul ignore if */
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
if ($) {
|
if ($) {
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||||
$.fn[NAME] = ScrollSpy.jQueryInterface;
|
$.fn[NAME] = ScrollSpy.jQueryInterface;
|
||||||
$.fn[NAME].Constructor = ScrollSpy;
|
$.fn[NAME].Constructor = ScrollSpy;
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
$.fn[NAME].noConflict = function () {
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||||
return ScrollSpy.jQueryInterface;
|
return ScrollSpy.jQueryInterface;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return ScrollSpy;
|
return ScrollSpy;
|
||||||
|
|
||||||
|
|
|
||||||
2
js/dist/scrollspy.js.map
vendored
2
js/dist/scrollspy.js.map
vendored
File diff suppressed because one or more lines are too long
163
js/dist/tab.js
vendored
163
js/dist/tab.js
vendored
|
|
@ -1,21 +1,23 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap tab.js v5.0.0-alpha1 (https://getbootstrap.com/)
|
* Bootstrap tab.js v5.0.0-beta1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
*/
|
*/
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/selector-engine.js')) :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js'), require('./dom/selector-engine.js')) :
|
||||||
typeof define === 'function' && define.amd ? define(['./dom/data.js', './dom/event-handler.js', './dom/selector-engine.js'], factory) :
|
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler', './dom/selector-engine'], factory) :
|
||||||
(global = global || self, global.Tab = factory(global.Data, global.EventHandler, global.SelectorEngine));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tab = factory(global.Data, global.EventHandler, global.SelectorEngine));
|
||||||
}(this, (function (Data, EventHandler, SelectorEngine) { 'use strict';
|
}(this, (function (Data, EventHandler, SelectorEngine) { 'use strict';
|
||||||
|
|
||||||
Data = Data && Object.prototype.hasOwnProperty.call(Data, 'default') ? Data['default'] : Data;
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||||
EventHandler = EventHandler && Object.prototype.hasOwnProperty.call(EventHandler, 'default') ? EventHandler['default'] : EventHandler;
|
|
||||||
SelectorEngine = SelectorEngine && Object.prototype.hasOwnProperty.call(SelectorEngine, 'default') ? SelectorEngine['default'] : SelectorEngine;
|
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
|
||||||
|
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
|
||||||
|
var SelectorEngine__default = /*#__PURE__*/_interopDefaultLegacy(SelectorEngine);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
* Bootstrap (v5.0.0-alpha1): util/index.js
|
* Bootstrap (v5.0.0-beta1): util/index.js
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -23,7 +25,7 @@
|
||||||
var TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
var TRANSITION_END = 'transitionend'; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
||||||
|
|
||||||
var getSelector = function getSelector(element) {
|
var getSelector = function getSelector(element) {
|
||||||
var selector = element.getAttribute('data-target');
|
var selector = element.getAttribute('data-bs-target');
|
||||||
|
|
||||||
if (!selector || selector === '#') {
|
if (!selector || selector === '#') {
|
||||||
var hrefAttr = element.getAttribute('href');
|
var hrefAttr = element.getAttribute('href');
|
||||||
|
|
@ -48,8 +50,8 @@
|
||||||
transitionDuration = _window$getComputedSt.transitionDuration,
|
transitionDuration = _window$getComputedSt.transitionDuration,
|
||||||
transitionDelay = _window$getComputedSt.transitionDelay;
|
transitionDelay = _window$getComputedSt.transitionDelay;
|
||||||
|
|
||||||
var floatTransitionDuration = parseFloat(transitionDuration);
|
var floatTransitionDuration = Number.parseFloat(transitionDuration);
|
||||||
var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
var floatTransitionDelay = Number.parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
|
||||||
|
|
||||||
if (!floatTransitionDuration && !floatTransitionDelay) {
|
if (!floatTransitionDuration && !floatTransitionDelay) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -58,7 +60,7 @@
|
||||||
|
|
||||||
transitionDuration = transitionDuration.split(',')[0];
|
transitionDuration = transitionDuration.split(',')[0];
|
||||||
transitionDelay = transitionDelay.split(',')[0];
|
transitionDelay = transitionDelay.split(',')[0];
|
||||||
return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
|
return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
|
||||||
};
|
};
|
||||||
|
|
||||||
var triggerTransitionEnd = function triggerTransitionEnd(element) {
|
var triggerTransitionEnd = function triggerTransitionEnd(element) {
|
||||||
|
|
@ -91,13 +93,23 @@
|
||||||
var _window = window,
|
var _window = window,
|
||||||
jQuery = _window.jQuery;
|
jQuery = _window.jQuery;
|
||||||
|
|
||||||
if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
|
if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
|
||||||
return jQuery;
|
return jQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var onDOMContentLoaded = function onDOMContentLoaded(callback) {
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', callback);
|
||||||
|
} else {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var isRTL = document.documentElement.dir === 'rtl';
|
||||||
|
|
||||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||||
|
|
@ -107,8 +119,53 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var VERSION = '5.0.0-beta1';
|
||||||
|
|
||||||
|
var BaseComponent = /*#__PURE__*/function () {
|
||||||
|
function BaseComponent(element) {
|
||||||
|
if (!element) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this._element = element;
|
||||||
|
Data__default['default'].setData(element, this.constructor.DATA_KEY, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
var _proto = BaseComponent.prototype;
|
||||||
|
|
||||||
|
_proto.dispose = function dispose() {
|
||||||
|
Data__default['default'].removeData(this._element, this.constructor.DATA_KEY);
|
||||||
|
this._element = null;
|
||||||
|
}
|
||||||
|
/** Static */
|
||||||
|
;
|
||||||
|
|
||||||
|
BaseComponent.getInstance = function getInstance(element) {
|
||||||
|
return Data__default['default'].getData(element, this.DATA_KEY);
|
||||||
|
};
|
||||||
|
|
||||||
|
_createClass(BaseComponent, null, [{
|
||||||
|
key: "VERSION",
|
||||||
|
get: function get() {
|
||||||
|
return VERSION;
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
|
||||||
|
return BaseComponent;
|
||||||
|
}();
|
||||||
|
|
||||||
|
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||||
|
|
||||||
|
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
||||||
|
|
||||||
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||||
|
/**
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
* Constants
|
||||||
|
* ------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
var NAME = 'tab';
|
var NAME = 'tab';
|
||||||
var VERSION = '5.0.0-alpha1';
|
|
||||||
var DATA_KEY = 'bs.tab';
|
var DATA_KEY = 'bs.tab';
|
||||||
var EVENT_KEY = "." + DATA_KEY;
|
var EVENT_KEY = "." + DATA_KEY;
|
||||||
var DATA_API_KEY = '.data-api';
|
var DATA_API_KEY = '.data-api';
|
||||||
|
|
@ -126,7 +183,7 @@
|
||||||
var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
|
var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
|
||||||
var SELECTOR_ACTIVE = '.active';
|
var SELECTOR_ACTIVE = '.active';
|
||||||
var SELECTOR_ACTIVE_UL = ':scope > li > .active';
|
var SELECTOR_ACTIVE_UL = ':scope > li > .active';
|
||||||
var SELECTOR_DATA_TOGGLE = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]';
|
var SELECTOR_DATA_TOGGLE = '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]';
|
||||||
var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
|
var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
|
||||||
var SELECTOR_DROPDOWN_ACTIVE_CHILD = ':scope > .dropdown-menu .active';
|
var SELECTOR_DROPDOWN_ACTIVE_CHILD = ':scope > .dropdown-menu .active';
|
||||||
/**
|
/**
|
||||||
|
|
@ -135,12 +192,12 @@
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Tab = /*#__PURE__*/function () {
|
var Tab = /*#__PURE__*/function (_BaseComponent) {
|
||||||
function Tab(element) {
|
_inheritsLoose(Tab, _BaseComponent);
|
||||||
this._element = element;
|
|
||||||
Data.setData(this._element, DATA_KEY, this);
|
|
||||||
} // Getters
|
|
||||||
|
|
||||||
|
function Tab() {
|
||||||
|
return _BaseComponent.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
|
||||||
var _proto = Tab.prototype;
|
var _proto = Tab.prototype;
|
||||||
|
|
||||||
|
|
@ -159,19 +216,19 @@
|
||||||
|
|
||||||
if (listElement) {
|
if (listElement) {
|
||||||
var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE;
|
var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE;
|
||||||
previous = SelectorEngine.find(itemSelector, listElement);
|
previous = SelectorEngine__default['default'].find(itemSelector, listElement);
|
||||||
previous = previous[previous.length - 1];
|
previous = previous[previous.length - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
var hideEvent = null;
|
var hideEvent = null;
|
||||||
|
|
||||||
if (previous) {
|
if (previous) {
|
||||||
hideEvent = EventHandler.trigger(previous, EVENT_HIDE, {
|
hideEvent = EventHandler__default['default'].trigger(previous, EVENT_HIDE, {
|
||||||
relatedTarget: this._element
|
relatedTarget: this._element
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var showEvent = EventHandler.trigger(this._element, EVENT_SHOW, {
|
var showEvent = EventHandler__default['default'].trigger(this._element, EVENT_SHOW, {
|
||||||
relatedTarget: previous
|
relatedTarget: previous
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -182,10 +239,10 @@
|
||||||
this._activate(this._element, listElement);
|
this._activate(this._element, listElement);
|
||||||
|
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
EventHandler.trigger(previous, EVENT_HIDDEN, {
|
EventHandler__default['default'].trigger(previous, EVENT_HIDDEN, {
|
||||||
relatedTarget: _this._element
|
relatedTarget: _this._element
|
||||||
});
|
});
|
||||||
EventHandler.trigger(_this._element, EVENT_SHOWN, {
|
EventHandler__default['default'].trigger(_this._element, EVENT_SHOWN, {
|
||||||
relatedTarget: previous
|
relatedTarget: previous
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
@ -195,18 +252,13 @@
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
_proto.dispose = function dispose() {
|
|
||||||
Data.removeData(this._element, DATA_KEY);
|
|
||||||
this._element = null;
|
|
||||||
} // Private
|
} // Private
|
||||||
;
|
;
|
||||||
|
|
||||||
_proto._activate = function _activate(element, container, callback) {
|
_proto._activate = function _activate(element, container, callback) {
|
||||||
var _this2 = this;
|
var _this2 = this;
|
||||||
|
|
||||||
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? SelectorEngine.find(SELECTOR_ACTIVE_UL, container) : SelectorEngine.children(container, SELECTOR_ACTIVE);
|
var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? SelectorEngine__default['default'].find(SELECTOR_ACTIVE_UL, container) : SelectorEngine__default['default'].children(container, SELECTOR_ACTIVE);
|
||||||
var active = activeElements[0];
|
var active = activeElements[0];
|
||||||
var isTransitioning = callback && active && active.classList.contains(CLASS_NAME_FADE);
|
var isTransitioning = callback && active && active.classList.contains(CLASS_NAME_FADE);
|
||||||
|
|
||||||
|
|
@ -217,7 +269,7 @@
|
||||||
if (active && isTransitioning) {
|
if (active && isTransitioning) {
|
||||||
var transitionDuration = getTransitionDurationFromElement(active);
|
var transitionDuration = getTransitionDurationFromElement(active);
|
||||||
active.classList.remove(CLASS_NAME_SHOW);
|
active.classList.remove(CLASS_NAME_SHOW);
|
||||||
EventHandler.one(active, TRANSITION_END, complete);
|
EventHandler__default['default'].one(active, TRANSITION_END, complete);
|
||||||
emulateTransitionEnd(active, transitionDuration);
|
emulateTransitionEnd(active, transitionDuration);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
|
|
@ -227,7 +279,7 @@
|
||||||
_proto._transitionComplete = function _transitionComplete(element, active, callback) {
|
_proto._transitionComplete = function _transitionComplete(element, active, callback) {
|
||||||
if (active) {
|
if (active) {
|
||||||
active.classList.remove(CLASS_NAME_ACTIVE);
|
active.classList.remove(CLASS_NAME_ACTIVE);
|
||||||
var dropdownChild = SelectorEngine.findOne(SELECTOR_DROPDOWN_ACTIVE_CHILD, active.parentNode);
|
var dropdownChild = SelectorEngine__default['default'].findOne(SELECTOR_DROPDOWN_ACTIVE_CHILD, active.parentNode);
|
||||||
|
|
||||||
if (dropdownChild) {
|
if (dropdownChild) {
|
||||||
dropdownChild.classList.remove(CLASS_NAME_ACTIVE);
|
dropdownChild.classList.remove(CLASS_NAME_ACTIVE);
|
||||||
|
|
@ -254,7 +306,7 @@
|
||||||
var dropdownElement = element.closest(SELECTOR_DROPDOWN);
|
var dropdownElement = element.closest(SELECTOR_DROPDOWN);
|
||||||
|
|
||||||
if (dropdownElement) {
|
if (dropdownElement) {
|
||||||
SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE).forEach(function (dropdown) {
|
SelectorEngine__default['default'].find(SELECTOR_DROPDOWN_TOGGLE).forEach(function (dropdown) {
|
||||||
return dropdown.classList.add(CLASS_NAME_ACTIVE);
|
return dropdown.classList.add(CLASS_NAME_ACTIVE);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -270,7 +322,7 @@
|
||||||
|
|
||||||
Tab.jQueryInterface = function jQueryInterface(config) {
|
Tab.jQueryInterface = function jQueryInterface(config) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var data = Data.getData(this, DATA_KEY) || new Tab(this);
|
var data = Data__default['default'].getData(this, DATA_KEY) || new Tab(this);
|
||||||
|
|
||||||
if (typeof config === 'string') {
|
if (typeof config === 'string') {
|
||||||
if (typeof data[config] === 'undefined') {
|
if (typeof data[config] === 'undefined') {
|
||||||
|
|
@ -282,19 +334,16 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
Tab.getInstance = function getInstance(element) {
|
_createClass$1(Tab, null, [{
|
||||||
return Data.getData(element, DATA_KEY);
|
key: "DATA_KEY",
|
||||||
};
|
// Getters
|
||||||
|
|
||||||
_createClass(Tab, null, [{
|
|
||||||
key: "VERSION",
|
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return VERSION;
|
return DATA_KEY;
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Tab;
|
return Tab;
|
||||||
}();
|
}(BaseComponent);
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* Data Api implementation
|
* Data Api implementation
|
||||||
|
|
@ -302,31 +351,33 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
EventHandler__default['default'].on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var data = Data.getData(this, DATA_KEY) || new Tab(this);
|
var data = Data__default['default'].getData(this, DATA_KEY) || new Tab(this);
|
||||||
data.show();
|
data.show();
|
||||||
});
|
});
|
||||||
var $ = getjQuery();
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* jQuery
|
* jQuery
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* add .tab to jQuery only if jQuery is present
|
* add .Tab to jQuery only if jQuery is present
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* istanbul ignore if */
|
onDOMContentLoaded(function () {
|
||||||
|
var $ = getjQuery();
|
||||||
|
/* istanbul ignore if */
|
||||||
|
|
||||||
if ($) {
|
if ($) {
|
||||||
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
var JQUERY_NO_CONFLICT = $.fn[NAME];
|
||||||
$.fn[NAME] = Tab.jQueryInterface;
|
$.fn[NAME] = Tab.jQueryInterface;
|
||||||
$.fn[NAME].Constructor = Tab;
|
$.fn[NAME].Constructor = Tab;
|
||||||
|
|
||||||
$.fn[NAME].noConflict = function () {
|
$.fn[NAME].noConflict = function () {
|
||||||
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
$.fn[NAME] = JQUERY_NO_CONFLICT;
|
||||||
return Tab.jQueryInterface;
|
return Tab.jQueryInterface;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return Tab;
|
return Tab;
|
||||||
|
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue