aboutsummaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)AuthorFilesLines
2022-10-12Docs: standardize usage of `<kbd>`Julien Déramond1-2/+2
2022-10-07Boost `execute` function, being able to handle arguments (#36652)GeoSot5-13/+29
2022-10-06fix tooltip/popper disposal inconsistencies (#37235)GeoSot1-16/+8
2022-10-03Rename some vars in tab unit tests for consistency (#37248)Julien Déramond1-9/+9
2022-10-03Release v5.2.2 (#37236)XhmikosR80-151/+145
* Bump version to v5.2.2 * Dist
2022-10-02Ensure Tab keyboard functionality after #37146 (#37200)GeoSot2-4/+31
* 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-02Use `<h1>` for all `modal-title` examples/uses (#37210)Patrick H. Lauke1-4/+4
* Use `fs-` font sizing classes where needed * Also add info callout about heading hierarchy in modals
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-27Add eslint-plugin-html to lint JS in HTML files (#37186)Julien Déramond5-13/+40
2022-09-27Dropdown: fix case with invalid markup (#37190)GeoSot2-2/+31
This fixes a backward incompatible change in v5.2.1 where `.drodown-toggle` isn't present in the markup.
2022-09-23Tests: add testcase to Tabs, keyboard handler (#37189)GeoSot1-6/+13
2022-09-22Fix active class toggling of tabs within dropdown (#37151)Carson Sievert2-5/+4
* Close #36947: fix active class toggling tabs within dropdown
2022-09-22Use es6 on visual tests (#36915)GeoSot4-51/+30
2022-09-20Drop tabs auto-focus (#37146)GeoSot2-3/+29
* fix: drop tabs auto-focus
2022-09-20Update devDependencies (#37177)XhmikosR1-1/+1
2022-09-15Fix modal event listeners (#37128)Jérémie Broutier2-2/+32
* 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 ↵GeoSot2-45/+58
that utilize `title` attribute (#36914)
2022-09-07Release v5.2.1 (#37098)XhmikosR80-137/+150
* Bump version to v5.2.1. * Dist
2022-09-07Fix modal event-listeners during dismiss click (#36863)GeoSot2-12/+20
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 Piton2-2/+65
(#37011)
2022-07-28ScrollSpy: make the threshold option configurable (#36750)GeoSot2-9/+57
* feat(ScrollSpy): make the threshold option configurable
2022-07-27Re-set tooltip title, on disposal (#36751)GeoSot2-0/+23
fix(reg): Re-set tooltip title, on disposal
2022-07-19Release v5.2.0 (#36768)XhmikosR80-264/+256
* Bump version to 5.2.0 * Dist * Update masthead.html
2022-07-19Fix failing test on EventHandler (#36772)GeoSot1-4/+3
2022-07-18Fix typos in code (#36763)Marc Wrobel3-4/+4
Shoutout is correct but has been replaced by its more common form : Shout-out (https://www.merriam-webster.com/dictionary/shout-out).
2022-07-15Standardization of `spyOn` usage (#36742)Julien Déramond1-3/+3
2022-07-14Offcanvas: activate focustrap when backdrop is enabled (#36717)GeoSot2-2/+24
* 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 Walters2-1/+20
2022-07-04ref(tests): Minor fix to use self-closing input HTML tag (#36667)Julien Déramond3-5/+5
2022-06-30Fix interoperability issue regarding Event properties (#36386)Aleksander Machniak2-7/+49
* 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)GeoSot2-16/+18
2022-06-27ref(tab): remove show from panels dependent-less they have `.fade` class or ↵GeoSot2-14/+6
not (simplify checks) (#36622)
2022-06-21fix: change dismiss handler, listening to key down, instead of click (#36401)GeoSot2-8/+15
2022-06-14Carousel: Remove redundant reference to `interval=false` from docs (#36545)GeoSot2-8/+8
* 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-08Fix typo in dropdown unit testJulien Déramond1-1/+1
2022-06-08Scrollspy: enable smooth-scroll behavior (#36528)GeoSot2-2/+2
2022-06-03Remove confusing unnecessary id/aria-labelledby for dropdown menus (#36487)Patrick H. Lauke2-12/+12
see https://github.com/twbs/bootstrap/discussions/35755 Note that even the APG guide for disclosure widgets doesn't use this optional "nice-to-have" extra bit https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/ (though they do use `aria-controls`, which in most current browser/AT combos is borked though)
2022-06-01Re-ordering js default objectslouismaxime.piton10-69/+69
2022-05-31JS: tests fixes & standardization of spies usage (#36398)Louis-Maxime Piton18-342/+338
* Fix carousel spec typo * Change carousel test name in align with testing method * Make the spies declarations the same everywhere
2022-05-20Docs: quick fixes for HTML (#36395)Louis-Maxime Piton1-1/+1
* Using the new helper in the doc * Remove input from `Tab` access * Change scrollspy code examples * Reordering tables for JS * Fix for parcel file * Center align all the code example texts in layout * Alphabetical reorder the helpers
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-13DistXhmikosR52-4408/+2848
2022-05-13Prepare v5.2.0-beta1Mark Otto28-29/+29
2022-05-12Revert backdrop utilization, handling clicks over modal (#36324)GeoSot2-22/+21
* 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éramond2-2/+71
* 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-30Doc: remove `role="group"` from some split drop* buttonsJulien Déramond1-3/+3