aboutsummaryrefslogtreecommitdiff
path: root/js/src/dom
AgeCommit message (Collapse)AuthorFilesLines
2024-07-29Update devDependencies and regenerate package-lock.json (#40673)XhmikosR1-1/+1
* @babel/preset-env ^7.24.8 → ^7.25.0 * eslint-plugin-unicorn ^54.0.0 → ^55.0.0 * hugo-bin ^0.126.0 → ^0.127.0 * postcss ^8.4.39 → ^8.4.40 * rollup ^4.19.0 → ^4.19.1 * rtlcss ^4.1.1 → ^4.2.0
2024-02-18Selector Engine: fix multiple IDs (#39201)GeoSot1-2/+2
* fix: regression of #38989 * Add unit test in selector-engine.spec.js --------- Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2023-09-13Fix collapse multiple ids target (#38989)Louis-Maxime Piton1-2/+2
2023-03-29Tweak and re-organize ESLint config (#38369)XhmikosR1-1/+1
* Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint
2023-03-28event-handler: switch to const (#38362)XhmikosR1-2/+1
2023-03-22Remove version comment from JavaScript src files (#38294)GeoSot4-4/+4
2022-12-24Release v5.3.0-alpha1 (#37661)XhmikosR4-4/+4
* Bump version to 5.3.0-alpha1 * Dist * Add docs versions updates * Update note in homepage hero Co-authored-by: Mark Otto <[email protected]>
2022-11-22Merge branch 'main' into prepare-523XhmikosR2-11/+52
2022-11-21Bump version to 5.2.3XhmikosR4-4/+4
2022-11-13Use `Object.entries` in more places (#37482)XhmikosR1-4/+2
2022-11-12hydrateObj: use default param (#37483)XhmikosR1-2/+2
2022-11-07ref: refactor `getSelector` not to be exported (#37438)GeoSot1-32/+27
2022-11-07Properly escape IDs in getSelector() to handle weird IDs (#35565) (#35566)Pierre Souchay1-1/+2
2022-11-06Move `getElementFromSelector` & `getSelectorFromElement` to SelectorEngine ↵GeoSot1-0/+47
(#36027) * Move `getElementFromSelector` & getSelectorFromElement` inside selector-engine.js, in order to use SelectorEngine methods, avoiding raw querySelector usage * add `getMultipleElementsFromSelector` helper Co-authored-by: Julien Déramond <[email protected]>
2022-10-26Use explicit imports in our javascript source files (#36854)GeoSot2-2/+2
2022-10-03Release v5.2.2 (#37236)XhmikosR4-4/+4
* Bump version to v5.2.2 * Dist
2022-09-07Release v5.2.1 (#37098)XhmikosR4-4/+4
* Bump version to v5.2.1. * Dist
2022-07-19Release v5.2.0 (#36768)XhmikosR4-4/+4
* Bump version to 5.2.0 * Dist * Update masthead.html
2022-06-30Fix interoperability issue regarding Event properties (#36386)Aleksander Machniak1-7/+12
* Fix interoperability issue regarding Event properties - make possible to re-set read-only event properties - use hydrateObj() to set delegateTarget property Fixes #36207 Co-authored-by: GeoSot <[email protected]> Co-authored-by: Julien Déramond <[email protected]>
2022-06-14fix: fix possible bug on event handler. (#36561)GeoSot1-1/+1
some browsers validate the empty object as `true`, so is safer to use an explicit check
2022-05-16Assorted Event handler patches (#36171)GeoSot1-47/+42
* EventHandler: rename functions & variables * EventHandler: export event hydration to function * EventHandler: rename variable * EventHandler: simplify checks and make use of one variable Move check of falsie delegated-selector, caused by tooltip.js * EventHandler: more renaming * Update event-handler.js * bump bunldewatch Co-authored-by: XhmikosR <[email protected]>
2022-05-13Prepare v5.2.0-beta1Mark Otto4-4/+4
2022-04-25EventHandler: change check method for custom events, avoiding regexGeoSot1-2/+2
2022-04-21Manipulator: Add JSON parse support (#35077)GeoSot1-2/+10
Support parsing JSON from each component's main element using the `data-bs-config` attribute. The `bs-config` attribute will be reserved and omitted during `getDataAttributes` parsing. With this commit, every component, will create its config object, using: * defaults * data-bs-config * the rest of data attributes * configuration object given during instance initialization Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2022-04-13Revamp Scrollspy using Intersection observer (#33421)GeoSot1-16/+0
* Revamp scrollspy to use IntersectionObserver * Add smooth scroll support * Update scrollspy.js/md * move functionality to method * Update scrollspy.js * Add SmoothScroll to docs example * Refactor Using `Maps` and smaller methods * Update scrollspy.md/js * Update scrollspy.spec.js * Support backwards compatibility * minor optimizations * Merge activation functionality * Update scrollspy.md * Update scrollspy.js * Rewording some of the documentation changes * Update scrollspy.js * Update scrollspy.md * tweaking calculation functionality & drop text that suggests, to deactivate target when wrapper is not visible * tweak calculation * Fix lint * Support scrollspy in body & tests * change doc example to a more valid solution Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Patrick H. Lauke <[email protected]>
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-01-30Dropdown: get dropdown's parent in one placeGeoSot1-1/+1
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-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 placesXhmikosR1-6/+8
2022-01-29event-handler.js: use `for...of`XhmikosR1-2/+2
2022-01-29Rename variablesXhmikosR2-27/+27
2022-01-29Remove a few unneeded variablesXhmikosR1-5/+2
2021-10-13JS: minor refactoring (#35183)XhmikosR3-20/+4
* add missing comments * shorten block comments * reorder constants * reorder public/private methods * sort exports alphabetically in util/index.js * fix a couple of typos
2021-10-09Merge remote-tracking branch 'remotes/origin/v513'XhmikosR4-4/+4
2021-10-09Bump version to 5.1.3.XhmikosR4-4/+4
2021-10-05Enable `unicorn/no-array-for-each` ruleXhmikosR2-15/+14
2021-10-05Enable `unicorn/no-for-loop` ruleXhmikosR1-2/+2
2021-10-05Release v5.1.2 (#35114)XhmikosR4-4/+4
2021-09-07Release v5.1.1 (#34869)v5.1.1XhmikosR4-4/+4
* Prepare v5.1.1. * Dist
2021-08-30Update eslint-plugin-unicorn to v35.0.0XhmikosR1-1/+0
2021-08-04Prepare v5.1.0. (#34674)v5.1.0XhmikosR4-4/+4
2021-07-28Fix `Manipulator.offset()` (#33603)alpadev1-2/+2
* test: add more test cases for Manipulator.offset() * fix: Manipulator.offset() is using obsolete properties to get scroll position Co-authored-by: XhmikosR <[email protected]> Co-authored-by: GeoSot <[email protected]>
2021-07-27Add shift-tab keyboard support for dialogs (modal & Offcanvas components) ↵Ryan Berliner1-0/+17
(#33865) * consolidate dialog focus trap logic * add shift-tab support to focustrap * remove redundant null check of trap element Co-authored-by: GeoSot <[email protected]> * remove area support forom focusableChildren * fix no expectations warning in focustrap tests Co-authored-by: GeoSot <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-06-22Release v5.0.2 (#34276)v5.0.2XhmikosR4-4/+4
* Bump version to v5.0.2. * Dist
2021-05-13Release v5.0.1 (#33972)v5.0.1XhmikosR4-4/+4
* Bump version to 5.0.1. * Dist