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
AgeCommit message (Collapse)Author
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-19No propagating escape event in an open dropdown.louismaxime.piton
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 testsMark Otto
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.
2022-02-19Dropdown: use a better selector to avoid triggering click if button is ↵GeoSot
disabled (#35866)
2022-02-19Dropdown: use a combined selector to filter foreign not shown instances ↵GeoSot
iteration (#35766)
2022-02-19tests: revisit all tests using Promise.reject instead of throwing an error ↵GeoSot
(#35765)
2022-02-19Make event name helper and use it on tooltip & popover to reduce dist sizes ↵GeoSot
(#35856) * feat: create eventName getter function in baseComponent * refactor: use `eventName` getter on tooltip & popover
2022-02-19Carousel: remove one more call to ActiveIndexGeoSot
2022-02-19Carousel: change argument to `_setActiveIndicatorElement`, from element to indexGeoSot
2022-02-19Carousel: make direct triggering of slid event, instead of using a callbackGeoSot
2022-02-19Carousel: merge slide functionality, regardless of whether it is animated or notGeoSot
2022-02-19Carousel: simplify initialization on document load, using `getOrCreateInstance`GeoSot
2022-02-19Carousel: remove redundant config merge on `dataApiClickHandler`, as it is ↵GeoSot
done by default in the `constructor`
2022-02-15Update devDependencies (#35841)XhmikosR
* Update devDependencies * @babel/core ^7.17.0 → ^7.17.2 * @rollup/plugin-replace ^3.0.1 → ^3.1.0 * eslint ^8.8.0 → ^8.9.0 * eslint-config-xo ^0.39.0 → ^0.40.0 * hugo-bin ^0.80.1 → ^0.80.2 * karma ^6.3.15 → ^6.3.16 * rollup ^2.67.1 → ^2.67.2 * Fix new ESLint errors
2022-02-09Remove remaining `.navbar-light` classes (#35814)Julien Déramond
* Fix typo in CSS variables documentation * Drop remaining .navbar-light classes
2022-02-07Optimize jQueryInterface in Collapse (#35689)Anton
extracts config initialization from cycle
2022-02-01event-handler.js: remove unneeded return statementXhmikosR
2022-02-01Event-handler: use `Array.find` instead of `for`GeoSot
2022-02-01Event-handler: initialize variable properlyGeoSot
2022-02-01Fix Popover test that randomly fails on BrowserStack (#35757)GeoSot
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2022-02-01Dropdown: use destructured variables in `dataApyKeydownHandler`GeoSot
2022-02-01Dropdown: dropdown doesn't document `data-bs-target` option & `parentNode` ↵GeoSot
is ALWAYS the wrapper for toggle & menu
2022-02-01Dropdown: merge instance identification in `dataApiKeydownHandler`GeoSot
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 stateGeoSot
2022-01-30Dropdown: get dropdown's parent in one placeGeoSot