aboutsummaryrefslogtreecommitdiff
path: root/js/src
AgeCommit message (Collapse)AuthorFilesLines
2022-12-24Release v5.3.0-alpha1 (#37661)XhmikosR26-29/+29
* 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-523XhmikosR23-171/+174
2022-11-21Bump version to 5.2.3XhmikosR26-27/+27
2022-11-21fix tooltip/popper disposal inconsistencies (#37235)GeoSot1-16/+8
2022-11-13Use `Object.entries` in more places (#37482)XhmikosR3-9/+6
2022-11-12ESLint: enable prefer-template rule (#37484)XhmikosR1-1/+1
2022-11-12hydrateObj: use default param (#37483)XhmikosR1-2/+2
2022-11-11fix: change `replaceAll` usage introduced in #35566 (#37473)GeoSot1-1/+1
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 Souchay2-2/+18
2022-11-06Move `getElementFromSelector` & `getSelectorFromElement` to SelectorEngine ↵GeoSot8-64/+62
(#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)GeoSot22-84/+84
2022-10-07Boost `execute` function, being able to handle arguments (#36652)GeoSot4-13/+10
2022-10-06fix tooltip/popper disposal inconsistencies (#37235)GeoSot1-16/+8
2022-10-03Release v5.2.2 (#37236)XhmikosR26-27/+27
* Bump version to v5.2.2 * Dist
2022-10-02Ensure Tab keyboard functionality after #37146 (#37200)GeoSot1-0/+1
* fix: keyboard functionality * test: add tests * Add some focus spies in 2 other unit tests Co-authored-by: Julien Déramond <[email protected]>
2022-10-02Update devDependencies (#37238)XhmikosR1-3/+8
* Update devDependencies * @babel/cli ^7.18.10 → ^7.19.3 * @babel/core ^7.19.1 → ^7.19.3 * @babel/preset-env ^7.19.1 → ^7.19.3 * eslint-plugin-unicorn ^43.0.2 → ^44.0.0 * hugo-bin ^0.92.1 → ^0.92.2 * lockfile-lint ^4.9.3 → ^4.9.5 * postcss ^8.4.16 → ^8.4.17 * stylelint ^14.12.1 → ^14.13.0 * vnu-jar 21.10.12 → 22.9.29 * toast.js: fix new lint errors
2022-09-27Dropdown: fix case with invalid markup (#37190)GeoSot1-2/+9
This fixes a backward incompatible change in v5.2.1 where `.drodown-toggle` isn't present in the markup.
2022-09-22Fix active class toggling of tabs within dropdown (#37151)Carson Sievert1-2/+0
* Close #36947: fix active class toggling tabs within dropdown
2022-09-20Drop tabs auto-focus (#37146)GeoSot1-1/+0
* fix: drop tabs auto-focus
2022-09-15Fix modal event listeners (#37128)Jérémie Broutier1-2/+2
* Fix modal event listeners (#37126) Co-authored-by: GeoSot <[email protected]>
2022-09-14fix: add trick to support tooltip selector usage on dynamic created tooltips ↵GeoSot1-31/+18
that utilize `title` attribute (#36914)
2022-09-07Release v5.2.1 (#37098)XhmikosR26-27/+27
* Bump version to v5.2.1. * Dist
2022-09-07Fix modal event-listeners during dismiss click (#36863)GeoSot1-12/+16
ref: #36855
2022-09-07Fix tooltip manual toggling (#37086)GeoSot1-6/+5
partial regression of SHA: 9b9372e8ddd60413f3d9a582bd5481586d119d8d
2022-09-02fix(dropdowns): Fix multiple dropdowns when they are inside the same tag ↵Louis-Maxime Piton1-2/+4
(#37011)
2022-07-28ScrollSpy: make the threshold option configurable (#36750)GeoSot1-9/+13
* feat(ScrollSpy): make the threshold option configurable
2022-07-27Re-set tooltip title, on disposal (#36751)GeoSot1-0/+4
fix(reg): Re-set tooltip title, on disposal
2022-07-19Release v5.2.0 (#36768)XhmikosR26-27/+27
* Bump version to 5.2.0 * Dist * Update masthead.html
2022-07-18Fix typos in code (#36763)Marc Wrobel2-3/+3
Shoutout is correct but has been replaced by its more common form : Shout-out (https://www.merriam-webster.com/dictionary/shout-out).
2022-07-14Offcanvas: activate focustrap when backdrop is enabled (#36717)GeoSot1-1/+1
* fix(offcanvas): activate focustrap when backdrop is enabled * Adding tabindex='-1' for both offcanvases in the docs * Remove useless aria-expanded='false' in togglers * Update js/tests/unit/offcanvas.spec.js Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: Patrick H. Lauke <[email protected]>
2022-07-11Fix on #35679 (#36668)Louis-Maxime Piton1-2/+0
* Fix * .
2022-07-06Handle non-empty whitespace `textContent` in Tooltip trigger (#36588)Nathan Walters1-1/+1
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-27Force tooltip and popover to recreate content every time it opens (#35679)GeoSot1-14/+14
2022-06-27ref(tab): remove show from panels dependent-less they have `.fade` class or ↵GeoSot1-12/+4
not (simplify checks) (#36622)
2022-06-21fix: change dismiss handler, listening to key down, instead of click (#36401)GeoSot1-2/+2
2022-06-14Carousel: Remove redundant reference to `interval=false` from docs (#36545)GeoSot1-1/+1
* docs: remove redundant reference to `interval=false` * docs: remove redundant reference to `interval=false` from tests Co-authored-by: XhmikosR <[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-06-08Scrollspy: enable smooth-scroll behavior (#36528)GeoSot1-1/+1
2022-06-01Re-ordering js default objectslouismaxime.piton10-69/+69
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 Otto26-27/+27
2022-05-12Revert backdrop utilization, handling clicks over modal (#36324)GeoSot1-15/+18
* refactor(Modal.js): stop using backdrop class to handle clicks over modal * Revert #35554 and backdrop callback usage Explanation: In order to bypass `.modal`, was applied a css rule `pointer-events:none` which caused the side effect, and user couldn't scroll "long content modals" * Update .bundlewatch.config.json Co-authored-by: Mark Otto <[email protected]>
2022-05-06Toast: provide `isShown` method (#36272)GeoSot1-2/+6
* feat(Toast): provide `isShown` method * Update site/content/docs/5.1/components/toasts.md Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: Julien Déramond <[email protected]>
2022-05-05Handle disabled focused tabs with tab JavaScript plugin (#36169)Julien Déramond1-2/+5
* Handle disabled tabs * Fix after feedback * Update js/src/tab.js Co-authored-by: GeoSot <[email protected]> * Update js/src/tab.js Co-authored-by: GeoSot <[email protected]> * Commit suggestions via GitHub broke the thing * Add some unit tests * Remove temp doc modification * Add tests for left arrow * Add disabled tabs in JavaScript Behavior section * Compact 4 tests to 2 tests * Compact 4 tests to 2 tests * Add 'disabled' attribute for all buttons * Change the disabled pane position only for the vertical version * Change ids for the confusing first example in JavaScript behavior * Use disabled attribute instead of the class for buttons in tabs Co-authored-by: GeoSot <[email protected]>
2022-04-25EventHandler: change check method for custom events, avoiding regexGeoSot1-2/+2
2022-04-21Carousel: Fix not used option (`ride`), simplify `cycle` method (#35983)GeoSot1-37/+35
* Fix not used option (`ride`) (according to docs), continuing of #35753 a247fe9 * separate concept of `programmatical cycle` vs `maybe cycle after click` functionality
2022-04-21Manipulator: Add JSON parse support (#35077)GeoSot2-2/+13
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-17v5.2.0 design refresh, plus responsive offcanvas classes (#35736)Mark Otto1-0/+9
* Add responsive offcanvas classes - Updates navbar-expand classes to de-dupe some styles—these shouldn't interfere now. - Adds some JS to the offcanvas component to help with responsiveness Co-Authored-By: GeoSot <[email protected]> * Redesign homepage, docs, and examples Homepage: - New Bootstrap purple navbar - Redesigned masthead - Rewrote and redesigned homepage content - Replace Copy text with icons like Bootstrap Icons site across all ClipboardJS instances - Fixed padding issues in site footer - Match homepage button styles to examples page, use gap instead of tons of responsive margin utils Docs: - New navbar, no more subnav. Migrated search and version picker into the main navbar and refreshed the design of it all, including the responsive toggles. - New sidebar navigation is always expanded, and now features Bootstrap Icons alongside section headings - Sidebar navigation autoscrolls to active link for better usability - Subnav and navbar padding issues ironed out - Enhanced the version picker in anticipation of v5.2: we can now link right to the same page in the previous version. - Redesign callouts to add more color to our pages - Collapse table of contents on mobile - Cleanup and redesign button styles with CSS variables - Update design for subnav version dropdown - Update highlight and example to be full-width until md - Improve the Added In badges - Turn the ToC into a well on mobile - Redesign code snippets to better house two action buttons Examples: - Redesign Examples page layout - Add new example for responsive offcanvases in navbars * Convert offcanvas to CSS vars * Feat: add resize handler to Offcanvas.js. If we could use as default the `.offcanvas` class without modifiers, we then, could add a simplified selector The selector itself, ignores the .offcanvas class as it doesn't have any responsive behavior The `aria-modal` addon is to protect us, selection backdrop elements * Separate examples code, Add some selectors, fix stackblitz btn Co-authored-by: GeoSot <[email protected]>