Rev 1339 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1339 | Rev 1407 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /*! |
1 | /*! |
2 | * Bootstrap v5.3.1 (https://getbootstrap.com/) |
2 | * Bootstrap v5.3.2 (https://getbootstrap.com/) |
3 | * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) |
3 | * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) |
4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) |
4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) |
5 | */ |
5 | */ |
6 | import * as Popper from '@popperjs/core'; |
6 | import * as Popper from '@popperjs/core'; |
7 | 7 | ||
Line 642... | Line 642... | ||
642 | 642 | ||
643 | /** |
643 | /** |
644 | * Constants |
644 | * Constants |
645 | */ |
645 | */ |
646 | 646 | ||
647 | const VERSION = '5.3.1'; |
647 | const VERSION = '5.3.2'; |
648 | 648 | ||
649 | /** |
649 | /** |
650 | * Class definition |
650 | * Class definition |
651 | */ |
651 | */ |
652 | 652 | ||
Line 723... | Line 723... | ||
723 | 723 | ||
724 | // Just in case some CMS puts out a full URL with the anchor appended |
724 | // Just in case some CMS puts out a full URL with the anchor appended |
725 | if (hrefAttribute.includes('#') && !hrefAttribute.startsWith('#')) { |
725 | if (hrefAttribute.includes('#') && !hrefAttribute.startsWith('#')) { |
726 | hrefAttribute = `#${hrefAttribute.split('#')[1]}`; |
726 | hrefAttribute = `#${hrefAttribute.split('#')[1]}`; |
727 | } |
727 | } |
728 | selector = hrefAttribute && hrefAttribute !== '#' ? hrefAttribute.trim() : null; |
728 | selector = hrefAttribute && hrefAttribute !== '#' ? parseSelector(hrefAttribute.trim()) : null; |
729 | } |
729 | } |
730 | return parseSelector(selector); |
730 | return selector; |
731 | }; |
731 | }; |
732 | const SelectorEngine = { |
732 | const SelectorEngine = { |
733 | find(selector, element = document.documentElement) { |
733 | find(selector, element = document.documentElement) { |
734 | return [].concat(...Element.prototype.querySelectorAll.call(element, selector)); |
734 | return [].concat(...Element.prototype.querySelectorAll.call(element, selector)); |
735 | }, |
735 | }, |
Line 4021... | Line 4021... | ||
4021 | const CLASS_NAME_FADE$1 = 'fade'; |
4021 | const CLASS_NAME_FADE$1 = 'fade'; |
4022 | const CLASS_NAME_SHOW$1 = 'show'; |
4022 | const CLASS_NAME_SHOW$1 = 'show'; |
4023 | const CLASS_DROPDOWN = 'dropdown'; |
4023 | const CLASS_DROPDOWN = 'dropdown'; |
4024 | const SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle'; |
4024 | const SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle'; |
4025 | const SELECTOR_DROPDOWN_MENU = '.dropdown-menu'; |
4025 | const SELECTOR_DROPDOWN_MENU = '.dropdown-menu'; |
4026 | const NOT_SELECTOR_DROPDOWN_TOGGLE = ':not(.dropdown-toggle)'; |
4026 | const NOT_SELECTOR_DROPDOWN_TOGGLE = `:not(${SELECTOR_DROPDOWN_TOGGLE})`; |
4027 | const SELECTOR_TAB_PANEL = '.list-group, .nav, [role="tablist"]'; |
4027 | const SELECTOR_TAB_PANEL = '.list-group, .nav, [role="tablist"]'; |
4028 | const SELECTOR_OUTER = '.nav-item, .list-group-item'; |
4028 | const SELECTOR_OUTER = '.nav-item, .list-group-item'; |
4029 | const SELECTOR_INNER = `.nav-link${NOT_SELECTOR_DROPDOWN_TOGGLE}, .list-group-item${NOT_SELECTOR_DROPDOWN_TOGGLE}, [role="tab"]${NOT_SELECTOR_DROPDOWN_TOGGLE}`; |
4029 | const SELECTOR_INNER = `.nav-link${NOT_SELECTOR_DROPDOWN_TOGGLE}, .list-group-item${NOT_SELECTOR_DROPDOWN_TOGGLE}, [role="tab"]${NOT_SELECTOR_DROPDOWN_TOGGLE}`; |
4030 | const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]'; // TODO: could only be `tab` in v6 |
4030 | const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]'; // TODO: could only be `tab` in v6 |
4031 | const SELECTOR_INNER_ELEM = `${SELECTOR_INNER}, ${SELECTOR_DATA_TOGGLE}`; |
4031 | const SELECTOR_INNER_ELEM = `${SELECTOR_INNER}, ${SELECTOR_DATA_TOGGLE}`; |