aboutsummaryrefslogtreecommitdiff
path: root/js/src
AgeCommit message (Collapse)AuthorFilesLines
2022-02-25src/tooltip.js OptimizationДилян Палаузов1-3/+1
Util.findShadowRoot() returns either null or an object. It cannot return falsy, which allows this optimization.
2022-02-19Dropdown: use a better selector to avoid triggering click if button is ↵GeoSot1-5/+1
disabled (#35866)
2022-02-19Dropdown: use a combined selector to filter foreign not shown instances ↵GeoSot1-6/+3
iteration (#35766)
2022-02-19Make event name helper and use it on tooltip & popover to reduce dist sizes ↵GeoSot3-56/+26
(#35856) * feat: create eventName getter function in baseComponent * refactor: use `eventName` getter on tooltip & popover
2022-02-19Carousel: remove one more call to ActiveIndexGeoSot1-3/+2
2022-02-19Carousel: change argument to `_setActiveIndicatorElement`, from element to indexGeoSot1-3/+3
2022-02-19Carousel: make direct triggering of slid event, instead of using a callbackGeoSot1-10/+6
2022-02-19Carousel: merge slide functionality, regardless of whether it is animated or notGeoSot1-20/+16
2022-02-19Carousel: simplify initialization on document load, using `getOrCreateInstance`GeoSot1-1/+1
2022-02-19Carousel: remove redundant config merge on `dataApiClickHandler`, as it is ↵GeoSot1-1/+0
done by default in the `constructor`
2022-02-07Optimize jQueryInterface in Collapse (#35689)Anton1-5/+5
extracts config initialization from cycle
2022-02-01event-handler.js: remove unneeded return statementXhmikosR1-3/+0
2022-02-01Event-handler: use `Array.find` instead of `for`GeoSot1-9/+2
2022-02-01Event-handler: initialize variable properlyGeoSot1-2/+2
2022-02-01Dropdown: use destructured variables in `dataApyKeydownHandler`GeoSot1-6/+7
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`GeoSot1-1/+1
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-30Modal: handle click event from backdrop callbackGeoSot1-23/+16
2022-01-30Event handler: merge `new Event` with `new CustomEvent`GeoSot1-4/+1
2022-01-30Event handler: replace deprecated `initEvent`GeoSot1-7/+3
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 variablesXhmikosR10-69/+69
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 Berliner1-1/+20
chrome 97 (#35682)
2022-01-05Remove explicit use of aria-hidden for offcanvas when closed (#35589)Patrick H. Lauke1-7/+7
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 methodGeoSot1-7/+9
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)GeoSot1-1/+1
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)GeoSot16-193/+205
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-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 ↵GeoSot1-0/+1
(#35500)