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/util
AgeCommit message (Collapse)Author
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-06-02Re-ordering js default objectslouismaxime.piton
2022-05-13Prepare v5.2.0-beta1Mark Otto
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-01-29Rename variablesXhmikosR
2022-01-29backdrop.js: cache `_getElement` callsXhmikosR
2022-01-29Remove a few unneeded variablesXhmikosR
2022-01-13Fix: `isVisible` function behavior in case of a `<details>` element, on ↵Ryan Berliner
chrome 97 (#35682)
2021-12-10Extract Component config functionality to a separate class (#33872)GeoSot
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-12-10util/index.js: minor refactoring (#35510)XhmikosR
* rename variables * remove an unused variable * be more explicit * reuse variable
2021-12-09Scrollbar - remove margin/padding properties properly (#35388)GeoSot
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-12-09ScrollBar.js. Minor refactoring and add test (#35492)GeoSot
2021-11-25Add a template factory helper to handle all template cases (#34519)GeoSot
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-10-13JS: minor refactoring (#35183)XhmikosR
* 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-12Swipe: add test to ensure that it ignores `pinch` events (#35161)GeoSot
2021-10-11Extract Carousel's swipe functionality to a separate Class (#32999)GeoSot
2021-10-09Merge remote-tracking branch 'remotes/origin/v513'XhmikosR
2021-10-09Bump version to 5.1.3.v5.1.3XhmikosR
2021-10-07Sanitizer: fix logic and add a test. (#35133)XhmikosR
This was broken in 2596c97 inadvertently. Added a test so that we don't hit this in the future.
2021-10-06util/sanitizer.js: use `Array.every()` (#35120)XhmikosR
2021-10-05Enable `unicorn/numeric-separators-style` rule.XhmikosR
This is taken care of by babel via @babel/plugin-proposal-numeric-separator
2021-10-05Enable `unicorn/no-array-for-each` ruleXhmikosR
2021-10-05Enable `unicorn/no-for-loop` ruleXhmikosR
2021-10-05Enable `unicorn/prefer-prototype-methods` ruleXhmikosR
2021-10-05Release v5.1.2 (#35114)v5.1.2XhmikosR
2021-09-29sanitizer: add `sms` in the `SAFE_URL_PATTERN` (#35074)XhmikosR
2021-09-15Minor refactoring (#34980)XhmikosR
Rename variables and remove a temporary one
2021-09-08Remove remaining "master" branch references (#34932)Julien Déramond
2021-09-07Release v5.1.1 (#34869)v5.1.1XhmikosR
* Prepare v5.1.1. * Dist
2021-08-04Prepare v5.1.0. (#34674)v5.1.0XhmikosR
2021-07-30Enable a few eslint-config-xo rules (#34620)XhmikosR
* unicorn/prefer-dom-node-append * unicorn/prefer-dom-node-remove
2021-07-28Use a streamlined way to trigger component dismiss (#34170)GeoSot
* use a streamlined way to trigger component dismiss * add documentation Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-07-27Add shift-tab keyboard support for dialogs (modal & Offcanvas components) ↵Ryan Berliner
(#33865) * consolidate dialog focus trap logic * add shift-tab support to focustrap * remove redundant null check of trap element Co-authored-by: GeoSot <geo.sotis@gmail.com> * remove area support forom focusableChildren * fix no expectations warning in focustrap tests Co-authored-by: GeoSot <geo.sotis@gmail.com> Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-07-21Remove whitespace at beginning of util/index.js (#34545)Ryan Berliner
2021-07-20Fix `Util.reflow` function and add documentation (#34543)GeoSot
* add documentation to reflow function * refactor to void as it should be Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-07-14util.js: remove `Selector.findOne()` dependency (#34441)GeoSot
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-06-25Variablize backdrop for modal and offcanvasMark Otto
2021-06-22Release v5.0.2 (#34276)v5.0.2XhmikosR
* Bump version to v5.0.2. * Dist
2021-06-22Register only one `DOMContentLoaded` event listener in `onDOMContentLoaded` ↵alpadev
(#34158) * refactor: reuse one DOMContentLoaded event listener in onDOMContentLoaded function Instead of adding an event listener everytime the utility function is called, cache the callbacks and execute them all at once. * refactor: drop iife for onDOMContentLoaded Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-06-06Refactor scrollbar.js to be used as a Class (#33947)GeoSot
2021-06-03Fix handling of transitionend events dispatched by nested elements(#33845)alpadev
Fix handling of transitionend events dispatched by nested elements Properly handle events from nested elements Change `emulateTransitionEnd` to `executeAfterTransition` &&
2021-05-31Changing Backdrop rootElement to default to a string (#34092)Ryan Weaver
The current config can cause the "body" to become stale. Specifically, if the entire body element is swapped out for a new body element, then the backdrop will continue to append itself to the original body element, since it's stored in memory as a reference on this object. This also no longer allows an explicit null to be passed to Backdrop's rootElement This still accomplishes the laziness of "not finding the rootElement until the Backdrop is created" to avoid problems of the JavaScript being included inside <head> (so, before body is available).
2021-05-25Change `element.parentNode.removeChild(element)` to `element.remove()` (#34071)GeoSot
2021-05-22Automatically select an item in the dropdown when using arrow keys (#34052)alpadev
2021-05-22Fix bug where backdrop calls method on null if it is already removed from ↵Ryan Weaver
the body (#34014) Co-authored-by: Rohit Sharma <rohit2sharma95@gmail.com>
2021-05-20Refactor `isVisible` helper, fixing false positives from deep nesting or ↵Ryan Berliner
alternate means (#33960)
2021-05-20Add Tests on scrollbar.js & better handling if a style property doesn't ↵GeoSot
exists (#33948) * scrollbar.js: add some tests transfer test from modal.spec. to scrollbar.spec proper handling if style property doesn't exist
2021-05-19Add `getNextActiveElement` helper function to utils, replacing custom ↵GeoSot
implementation through components (#33608)
2021-05-13Release v5.0.1 (#33972)v5.0.1XhmikosR
* Bump version to 5.0.1. * Dist