aboutsummaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)AuthorFilesLines
2022-02-01Dropdown: dropdown doesn't document `data-bs-target` option & `parentNode` ↵GeoSot1-2/+1
is ALWAYS the wrapper for toggle & menu
2022-02-01Dropdown: merge instance identification in `dataApiKeydownHandler`GeoSot2-1/+21
As we use the `dataApiKeydownHandler` only for events that are triggered on `[data-bs-toggle="dropdown"]` or on `.dropdown-menu`, we can ensure that their `parentNode` will ALWAYS be the `.dropdown` wrapper
2022-01-30Dropdown: use only one check for shown stateGeoSot1-4/+4
2022-01-30Dropdown: get dropdown's parent in one placeGeoSot2-13/+8
2022-01-30More tooltip refactoring (#35546)GeoSot1-15/+25
* Tooltip.js: move `shown` check to method * Tooltip.js: move Popper's creation to method * Tooltip.js: merge checks before `hide` * Tooltip.js: minor refactoring on `toggle` method
2022-01-30Change selector-engine.js `parents` method to utilize better js native ↵GeoSot1-9/+4
methods (#35684) Co-authored-by: XhmikosR <[email protected]>
2022-01-30Fix visual tests (#35585)XhmikosR11-86/+23
* Fix visual tests They broke in #34509 * load bundle.js in visual tests Co-authored-by: GeoSot <[email protected]>
2022-01-30Modal.js: remove unnecessary checks from testGeoSot1-4/+0
2022-01-30Modal: handle click event from backdrop callbackGeoSot2-27/+23
2022-01-30tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659)GeoSot20-6132/+6715
Reference: https://jasmine.github.io/tutorials/async 'DEPRECATION: An asynchronous function called its 'done' callback more than once. This is a bug in the spec, beforeAll, beforeEach, afterAll, or afterEach function in question. This will be treated as an error in a future version. See<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> for more information.
2022-01-30Event handler: merge `new Event` with `new CustomEvent`GeoSot1-4/+1
2022-01-30Event handler: replace deprecated `initEvent`GeoSot4-15/+6
2022-01-29SelectorEngine: remove moot spaceXhmikosR1-1/+1
2022-01-29Return early in more placesXhmikosR2-21/+25
2022-01-29dropdown: Move constantXhmikosR1-4/+2
2022-01-29collapse: merge class togglingGeoSot1-6/+1
2022-01-29event-handler.js: use `for...of`XhmikosR1-2/+2
2022-01-29Rename variablesXhmikosR12-107/+107
2022-01-29backdrop.js: cache `_getElement` callsXhmikosR1-4/+6
2022-01-29Remove a few unneeded variablesXhmikosR3-19/+12
2022-01-13Fix: `isVisible` function behavior in case of a `<details>` element, on ↵Ryan Berliner2-1/+56
chrome 97 (#35682)
2022-01-05Remove explicit use of aria-hidden for offcanvas when closed (#35589)Patrick H. Lauke2-13/+60
Remove explicit use of aria-hidden & visibility for offcanvas when closed, handling it with css Co-authored-by: GeoSot <[email protected]> Co-authored-by: Gaël Poupard <[email protected]>
2021-12-21Carousel: move repeated code to a methodGeoSot2-13/+15
2021-12-21Carousel: remove always true `visibilityState` checkGeoSot1-4/+2
According to https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilityState `visibilityState` is always a string, so the check was always true
2021-12-21Carousel: move carousel default interval to `_getConfig()` and simplify itGeoSot1-7/+7
2021-12-21Carousel: return early and drop a loop.GeoSot1-13/+11
We can achieve the same thing by querying the specific selector directly
2021-12-21Carousel: add a helper to get the active elementGeoSot1-4/+8
2021-12-21Popover/Tooltip: Fix vertical alignment on arrow of tip elements (#35527)GeoSot1-1/+10
Regression of #32692 Co-authored-by: XhmikosR <[email protected]>
2021-12-18Fix typo in comment (#35564)Phil E. Taylor1-1/+1
s/moddal/modal
2021-12-15Tooltip: remove extraneous call to _getConfig() (#35540)GeoSot1-2/+1
BaseClass already initializes the config Co-authored-by: XhmikosR <[email protected]>
2021-12-15Popover.js: Accept empty content through `data-bs-content` (#35514)GeoSot2-15/+31
Co-authored-by: XhmikosR <[email protected]>
2021-12-15Scrollspy: minor refactoring (#35512)XhmikosR1-31/+16
* reorder variables * join lines * use `filter(Boolean)` since it's clearer * use `for...of`
2021-12-10Extract Component config functionality to a separate class (#33872)GeoSot18-240/+283
Co-authored-by: XhmikosR <[email protected]>
2021-12-10Tab: minor refactoring (#35511)XhmikosR1-12/+5
* remove unneeded parentheses * move variable
2021-12-10util/index.js: minor refactoring (#35510)XhmikosR1-27/+25
* rename variables * remove an unused variable * be more explicit * reuse variable
2021-12-10Toast: join multiple classList calls (#35507)XhmikosR1-9/+3
2021-12-09Fix tests fixture type (#35501)XhmikosR5-30/+32
Previously we were adding an Array instead of a String
2021-12-09Scrollbar - remove margin/padding properties properly (#35388)GeoSot1-7/+8
Co-authored-by: XhmikosR <[email protected]>
2021-12-09Dropdown: fix toggle focus after dropdown is hidden using the `ESC` button ↵GeoSot2-0/+29
(#35500)
2021-12-09ScrollBar.js. Minor refactoring and add test (#35492)GeoSot2-13/+38
2021-12-07Tooltip: remove title attribute before show & add tests (#35456)GeoSot2-3/+33
2021-12-02Tests: Minor fixes (#35455)Louis-Maxime Piton7-25/+26
2021-12-01Tooltip/Popover: add underscore prefix to protected functionsGeoSot4-48/+48
2021-12-01Tooltip: a simple code-block position changeGeoSot1-16/+16
2021-12-01Tooltip: simplify popper checkGeoSot1-1/+1
2021-12-01Tooltip: refactor `_hoverState` to Boolean to achieve better controlGeoSot1-15/+12
2021-12-01Tooltip: merge timeout functionalityGeoSot1-16/+7
2021-12-01Tooltip: Change `_enter` & `_leave` to work without argumentsGeoSot2-48/+42
2021-12-01Tooltip: Remove redundant `config.delay` checkGeoSot1-2/+2
`config.delay` is always an object after initialization
2021-12-01Tooltip: Remove `Data.set` usage for dynamically created tipGeoSot1-2/+0
This is not used any further, so we were just setting it.