Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/src
AgeCommit message (Collapse)Author
2022-07-28ScrollSpy: make the threshold option configurable (#36750)GeoSot
* feat(ScrollSpy): make the threshold option configurable
2022-07-27Re-set tooltip title, on disposal (#36751)GeoSot
fix(reg): Re-set tooltip title, on disposal
2022-07-19Release v5.2.0 (#36768)v5.2.0XhmikosR
* Bump version to 5.2.0 * Dist * Update masthead.html
2022-07-18Fix typos in code (#36763)Marc Wrobel
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)GeoSot
* 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 <julien.deramond@orange.com> Co-authored-by: Julien Déramond <juderamond@gmail.com> Co-authored-by: Patrick H. Lauke <redux@splintered.co.uk>
2022-07-12Fix on #35679 (#36668)Louis-Maxime Piton
* Fix * .
2022-07-06Handle non-empty whitespace `textContent` in Tooltip trigger (#36588)Nathan Walters
2022-06-30Fix interoperability issue regarding Event properties (#36386)Aleksander Machniak
* 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 <geo.sotis@gmail.com> Co-authored-by: Julien Déramond <julien.deramond@orange.com>
2022-06-27Force tooltip and popover to recreate content every time it opens (#35679)GeoSot
2022-06-27ref(tab): remove show from panels dependent-less they have `.fade` class or ↵GeoSot
not (simplify checks) (#36622)
2022-06-21fix: change dismiss handler, listening to key down, instead of click (#36401)GeoSot
2022-06-14Carousel: Remove redundant reference to `interval=false` from docs (#36545)GeoSot
* docs: remove redundant reference to `interval=false` * docs: remove redundant reference to `interval=false` from tests Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2022-06-14fix: fix possible bug on event handler. (#36561)GeoSot
some browsers validate the empty object as `true`, so is safer to use an explicit check
2022-06-08Scrollspy: enable smooth-scroll behavior (#36528)GeoSot
2022-06-02Re-ordering js default objectslouismaxime.piton
2022-05-16Assorted Event handler patches (#36171)GeoSot
* 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 <xhmikosr@gmail.com>
2022-05-13Prepare v5.2.0-beta1Mark Otto
2022-05-13Revert backdrop utilization, handling clicks over modal (#36324)GeoSot
* 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 <markd.otto@gmail.com>
2022-05-07Toast: provide `isShown` method (#36272)GeoSot
* feat(Toast): provide `isShown` method * Update site/content/docs/5.1/components/toasts.md Co-authored-by: Julien Déramond <julien.deramond@orange.com> Co-authored-by: Julien Déramond <julien.deramond@orange.com>
2022-05-06Handle disabled focused tabs with tab JavaScript plugin (#36169)Julien Déramond
* Handle disabled tabs * Fix after feedback * Update js/src/tab.js Co-authored-by: GeoSot <geo.sotis@gmail.com> * Update js/src/tab.js Co-authored-by: GeoSot <geo.sotis@gmail.com> * 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 <geo.sotis@gmail.com>
2022-04-26EventHandler: change check method for custom events, avoiding regexGeoSot
2022-04-21Carousel: Fix not used option (`ride`), simplify `cycle` method (#35983)GeoSot
* 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)GeoSot
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 <xhmikosr@gmail.com> Co-authored-by: Mark Otto <markd.otto@gmail.com> Co-authored-by: Mark Otto <markdotto@gmail.com>
2022-04-18v5.2.0 design refresh, plus responsive offcanvas classes (#35736)Mark Otto
* 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 <geo.sotis@gmail.com> * 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 <geo.sotis@gmail.com>
2022-04-13Revamp Scrollspy using Intersection observer (#33421)GeoSot
* 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 <xhmikosr@gmail.com> Co-authored-by: Patrick H. Lauke <redux@splintered.co.uk>
2022-04-13Update dropdown.jsGeoSot
minor refactoring
2022-04-07Revamp tabs & follow ARIA 1.1 practices (#33079)GeoSot
* Tab: Revamp tab.js & add support Aria features * Tab: Add tab support, just to keep backwards compatibility. Better to remove it on v6 * Revert "Tab: Add tab support, just to keep backwards compatibility. Better to remove it on v6" * Support arrow down/up functionality * add prevent default to avoid scrolling the page during up/down keys handling * remove panel tabindex handling * Expand documentation text for JS plugin * Rearrange new docs to specifically call out a11y * properly place section Co-authored-by: XhmikosR <xhmikosr@gmail.com> Co-authored-by: Patrick H. Lauke <redux@splintered.co.uk> Co-authored-by: Mark Otto <markdotto@gmail.com>
2022-03-10Carousel: change class check as it can only exist if carousel is slidingGeoSot
Also, fix the corresponding test
2022-03-10Carousel: rename private propertyGeoSot
2022-03-10Carousel: add comment for future fixesGeoSot
2022-03-10Carousel: omit redundant checks as we are always transforming the right valuesGeoSot
2022-03-10Carousel: omit config merging in jQueryInterface after we create the instanceGeoSot
This is already done inside `getOrCreateInstance` method
2022-03-09Carousel: return early in `_slide` methodGeoSot
2022-03-09Carousel: small refactoring, remove unnecessary checksGeoSot
2022-03-09Carousel: refactor using inline function and move variables to the proper placeGeoSot
2022-03-09Carousel: refactor `_slide` method te accept only order as first argumentGeoSot
2022-03-09Carousel: add a `getItems` helperGeoSot
2022-03-09Carousel: use combined selector and drop variable used onceGeoSot
2022-03-09Carousel: reorder variables and refactor method to use it inlineGeoSot
2022-03-09Carousel: cleanup jQueryInterfaceGeoSot
Drop chained else ifs and unused variable. Since we were checking for `typeof config === 'string'` in both places, action was never `_config.slide`.
2022-03-09Fix dropdownslouismaxime.piton
2022-03-02Add static backdrop to offcanvas (#35832)Jann Westermann
* Add static backdrop option, to offcanvas * Trigger prevented event on esc with keyboard=false * Change offcanvas doc , moving backdrop examples to examples section
2022-03-01Modal: refactor listeners to reduce some code noise (#35902)GeoSot
2022-03-01Carousel: simplify carousel items selectionGeoSot
We already know that carousel's parent is the carousel element, so we can use it explicitly
2022-03-01Carousel: move `carouselInterface` inside `jqueryInterface`GeoSot
2022-03-01Carousel: move logic of `dataApiClickHandler`GeoSot
2022-03-01Carousel: refactor dataApiKeyHandler to avoid use of `carouselInterface`GeoSot
2022-03-01Dropdown: Simplify dataKeyApiHandler (#35870)GeoSot
* Dropdown.js: Remove duplicated check for `Not Shown` instance * Dropdown.js: Rearrange `dataApiKeydownHandler` checks * Dropdown: do some fixup inside `dataApiKeydownHandler` * Update dropdown.js Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2022-03-01Add centered dropdown and dropup optionsMark Otto
2022-02-25src/tooltip.js OptimizationДилян Палаузов
Util.findShadowRoot() returns either null or an object. It cannot return falsy, which allows this optimization.