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-05-24Dynamic tabs: use buttons rather than links (backport to v4) (#33163)Patrick H. Lauke
* Manually backport 32630 Dynamic tabs: use buttons rather than links * Tweak unit test * Tweak unit tests * More tweakage * show() should also bail if `disabled` attribute is set * Tweak tests * Simplify test for relatedTarget * Temporarily remove problematic test (as i can't get local tests to run just noww) * Revert previous * test: fix broken test cases for tab.js * test: fix role=tablist invalid on nav element * test: prefer <div/> over <div></div> * Manually backport 32630 Dynamic tabs: use buttons rather than links * test: fix broken test cases for tab.js * Fixes * Remove and ignore lock file Co-authored-by: alpadev <alpa.muc@gmail.com> Co-authored-by: Mark Otto <markd.otto@gmail.com> Co-authored-by: Mark Otto <markdotto@gmail.com>
2022-04-19Fix lint issuesXhmikosR
2021-10-28Release v4.6.1 (#35272)v4.6.1XhmikosR
* Bump version to v4.6.1 * Dist
2021-10-22Update devDependencies and switch to Node.js 16/npm 8XhmikosR
* @babel/core ^7.15.5 → ^7.15.8 * @babel/preset-env ^7.15.6 → ^7.15.8 * @rollup/plugin-commonjs ^20.0.0 → ^21.0.1 * @rollup/plugin-node-resolve ^13.0.5 → ^13.0.6 * autoprefixer ^10.3.6 → ^10.3.7 * babel-plugin-istanbul ^6.0.0 → ^6.1.1 * clean-css-cli ^5.3.3 → ^5.4.2 * eslint ^7.32.0 → ^8.0.0 * eslint-config-xo ^0.38.0 → ^0.39.0 * eslint-plugin-import ^2.24.2 → ^2.25.1 * eslint-plugin-qunit ^6.2.0 → ^7.0.0 * eslint-plugin-unicorn ^36.0.0 → ^37.0.1 * karma ^6.3.4 → ^6.3.5 * linkinator ^2.14.0 → ^2.14.4 * nodemon ^2.0.13 → ^2.0.14 * postcss ^8.3.8 → ^8.3.11 * postcss-cli ^9.0.0 → ^9.0.1 * rollup ^2.57.0 → ^2.58.0 * stylelint-config-twbs-bootstrap ^2.2.3 → ^2.2.4 * vnu-jar 21.9.2 → 21.10.12
2021-10-22JS: minor refactoringXhmikosR
* shorten block comments * reorder constants
2021-10-22Backport #35074XhmikosR
sanitizer: add `sms` in the `SAFE_URL_PATTERN`
2021-09-15Update devDependenciesXhmikosR
* @babel/cli ^7.14.8 → ^7.15.5 * @babel/core ^7.14.8 → ^7.15.4 * @babel/preset-env ^7.14.8 → ^7.15.6 * @rollup/plugin-commonjs ^19.0.1 → ^20.0.0 * @rollup/plugin-node-resolve ^13.0.2 → ^13.0.4 * autoprefixer ^10.3.1 → ^10.3.4 * clean-css-cli ^5.3.0 → ^5.3.3 * eslint ^7.31.0 → ^7.32.0 * eslint-config-xo ^0.37.0 → ^0.38.0 * eslint-plugin-import ^2.23.4 → ^2.24.2 * eslint-plugin-unicorn ^34.0.1 → ^36.0.0 * hugo-bin ^0.74.0 → ^0.76.1 * qunit ^2.16.0 → ^2.17.1 * postcss ^8.3.5 → ^8.3.6 * rollup ^2.53.3 → ^2.56.3 * vnu-jar 21.6.11 → 21.9.2
2021-07-25fix(modal): change the order we return from show() method (#34087)alpadev
In case of a modal with fading enabled, a prevented show event can cause show to not showing the modal anymore. See #34055 Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-04-28Backport #33634 (#33649)Carson Sievert
Dropdown: support `.dropdown-item` wrapped in `<li>` tags
2021-04-05Update devDependenciesXhmikosR
* @babel/cli ^7.13.0 → ^7.13.14 * @babel/core ^7.13.8 → ^7.13.14 * @babel/preset-env ^7.13.9 → ^7.13.12 * @rollup/plugin-commonjs ^17.1.0 → ^18.0.0 * @rollup/plugin-node-resolve ^11.2.0 → ^11.2.1 * autoprefixer ^10.2.4 → ^10.2.5 * clean-css-cli ^5.2.0 → ^5.2.2 * eslint ^7.21.0 → ^7.23.0 * eslint-plugin-unicorn ^28.0.2 → ^29.0.0 * globby ^11.0.2 → ^11.0.3 * hugo-bin ^0.69.0 → ^0.70.0 * karma ^6.1.1 → ^6.3.2 * postcss ^8.2.6 → ^8.2.9 * qunit ^2.14.0 → ^2.14.1 * rollup ^2.40.0 → ^2.44.0 * stylelint ^13.11.0 → ^13.12.0 Also lock jQuery to v3.5.1 since 3.6.0 has a bug that affects at least our tests
2021-03-02Adjust `SAFE_URL_PATTERN` regex for use with `test` method. (#33153)Nikon the Third
The `test` method on regexes does not behave like `match` on strings for checks if the regex matches when the global modifier (g) is present. Also adds a unit test on tooltips for sanitizing the same template twice. Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-01-27Update devDependencies (#32852)XhmikosR
Pin karma and linkinator due to failures
2021-01-19Release v4.6.0. (#32726)v4.6.0XhmikosR
* Bump version to v4.6.0. * Dist
2020-11-25Partially backport #32217 (#32225)Rohit Sharma
Remove unnecessary `_getCustomClass` method. `customClass` will be in the configuration already, even if it is provided in the data attributes, and jQuery's [`addClass()`](https://api.jquery.com/addclass/) method will handle it, either `this.config.customClass` is a function or a class name (even if it is a blank string). Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-11-24Backport #32224XhmikosR
Be consistent with Popper's name.
2020-11-21Backport #32179 (#32220)Rohit Sharma
Don't hide modal when `config.keyboard` is false
2020-11-20tooltip/popover: add a `customClass` option (#31834)James Remeika
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-11-12Check for data-interval on the first slide of carousel - v4 (#31820)Mitchell Bryson
When starting a cycle for a carousel, it only checks for a default interval, and not an interval defined on the slide element via data props. This adds a check in before creating the interval to move to the next slide. Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-11-01Move js/src/index.js one folder up (#32001)XhmikosR
2020-10-13Prepare v4.5.3. (#31880)v4.5.3XhmikosR
2020-10-02buttons plugin : avoid multiple change event trigger (#31000)Laussel Loïc
- add unit test to count how many events are thrown when widget contains multiple tags inside label - add a parameter to toggle, if click event is provided onto an input then don't trigger another change event already thrown by the browser - simplify the case where toggle interface is called click provide from input itself OR it's a button without label. If label is present, then browser propagate click event from childrens through label and then cause multiple calls to toggle - the test assumes that `.btn` class is always set onto the label if there's one, otherwise need to update this plugin and look for label around the input Test with keyboard, mouse and js click call Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-09-21Add parentheses around multiple spread conditionsXhmikosR
2020-09-21Cache a few variables.XhmikosR
2020-09-21Unbreak lines and remove a TODO commentXhmikosR
2020-09-21ensure `hidePrevented.bs.modal` can be prevented (#31696)Joakim Riedel
2020-09-18Dropdown: fix variable always evaluating to true (#31673)XhmikosR
2020-09-10Comply to the new rulesXhmikosR
2020-08-06Prepare v4.5.2. (#31444)v4.5.2XhmikosR
2020-08-04Prepare v4.5.1. (#31408)v4.5.1XhmikosR
2020-08-03Clear timeout before showing the toast (#31155)Rohit Sharma
* clear timeout before showing the toast * Add unit test * Remove the check for timeout * Check for clearTimeout to have been called Co-authored-by: XhmikosR <xhmikosr@gmail.com> # Conflicts: # js/tests/unit/toast.spec.js
2020-07-06Backport #30326XhmikosR
Prevent overflowing static backdrop modal animation TODO: backport the test too
2020-06-24Update links to point to v4-dev or main branchesXhmikosR
2020-06-10avoid preventing input event onclick (#30992)Laussel Loïc
* instead of stopping event if onclick is triggered on input, call toggle method only if its not on checkbox inside a label * add unit test * add a dedicated test to ensure click event is forward to label Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-06-04Backport #30936XhmikosR
Add role="dialog" in modals via JavaScript
2020-05-12Bump version to 4.5.0.XhmikosR
2020-05-12Avoid bad scrollbar replacement into width valuesGiovanni Mendoza
Refs #30772
2020-05-12Partially revert "Use regex.test() when we want to check for a Boolean. ↵XhmikosR
(#29969)" This partially reverts commit 6c464938039e4fb23af4a35146250da9e1630de4.
2020-05-12collapse.js: combine classesXhmikosR
2020-05-12Minor lint tweaks and rules cleanupXhmikosR
2020-05-12dropdown.js: switch to a ternaryXhmikosR
2020-05-12Remove variables used once.XhmikosR
2020-05-12Join/break a few lines, no functional changesXhmikosR
2020-05-07Revert "Avoid bad scrollbar replacement into width values (#30690)"XhmikosR
This reverts commit 5f00bba6529d53d850a0d24ff0415782c8acebe4.
2020-05-07enforce element check on scrollspy targetJohann-S
2020-05-07scrollspy.js: remove temporary variable (#30724)XhmikosR
2020-05-02Avoid bad scrollbar replacement into width values (#30690)Johann-S
2020-04-17collapse: fix error with jQuery v3.5.0.XhmikosR
2020-04-07Fix event propagation from inactive and disabled dropdowns (#30510) (#30511)luktom
2020-03-31Switch to string constants. (#30490)XhmikosR
This allows the minifier to mangle the constants. It also allows the linter to find unused strings properly. While at it, remove a few unused properties. File Before After Diff -------------------------------------------------------- bootstrap.bundle.min.js 22.09 kB 21.13 kB -0.96 kB (-4.35 %) bootstrap.min.js 15.4 kB 14.46 kB -0.94 kB (-3.86 %)
2020-03-31Backport (#30383)Johann-S
fix: ensure totype always return stringified null when null passed