aboutsummaryrefslogtreecommitdiff
path: root/js/src/dom
AgeCommit message (Collapse)AuthorFilesLines
2021-05-05Release v5.0.0 (#33647)v5.0.0XhmikosR4-4/+4
* Bump version to 5.0.0 * Fix npm tag * Dist
2021-04-19Fix regression for handling `mouseenter`/`mouseleave` events introduced by ↵alpadev1-1/+1
#33310 (#33679) * test: update spec for sibling adjacent mouseenter/mouseleave events there is a regression introduced by #33310 - this would have catched that * fix: fixup regression for mouseenter/mouseleave events introduced by #33310 the old logic only worked for parent-child movement since it checked for the relatedTarget to contain the delegateTarget - this should be fixed with this Co-authored-by: XhmikosR <[email protected]>
2021-04-13fix: make EventHandler better handle mouseenter/mouseleave events (#33310)alpadev1-10/+28
* fix: make EventHandler better handle mouseenter/mouseleave events * refactor: simplify custom events regex and move it to a variable
2021-03-23Release v5.0.0-beta3 (#33439)v5.0.0-beta3XhmikosR4-4/+4
2021-03-02refactor: use a Map instead of an Object in dom/data (#32180)alpadev1-45/+35
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Rohit Sharma <[email protected]>
2021-02-10Release v5.0.0-beta2 (#32467)v5.0.0-beta2XhmikosR4-4/+4
* Bump version to 5.0.0-beta2 * Dist
2021-01-14Bump eslint-plugin-unicorn from 25.0.1 to 26.0.1 (#32784)dependabot[bot]1-0/+1
* Bump eslint-plugin-unicorn from 25.0.1 to 26.0.1 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 25.0.1 to 26.0.1. - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v25.0.1...v26.0.1) Signed-off-by: dependabot[bot] <[email protected]> * Updates for `[email protected]` Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR <[email protected]>
2020-12-09SelectorEngine: drop variable used once (#32391)XhmikosR1-3/+2
2020-12-07Remove `SelectorEngine.matches()`. (#32339)XhmikosR1-6/+2
It's basically unused.
2020-12-07Prepare v5.0.0-beta1.XhmikosR4-4/+4
2020-11-20Make the attribute methods bs specific (#32173)Rohit Sharma1-3/+3
Co-authored-by: XhmikosR <[email protected]>
2020-11-14Use `String.startsWith`XhmikosR1-1/+1
2020-11-14Switch to `Set#has()`XhmikosR1-4/+4
2020-11-14Switch to `String.includes()`XhmikosR1-4/+4
2020-11-14Get only bs prefixed data attributesRohit Sharma1-5/+3
2020-11-14Add `bs` in data attributesRohit Sharma1-3/+7
- Add `bs` in data APIs everywhere - Update unit tests
2020-11-11Prepare v5.0.0-alpha3 (#32122)v5.0.0-alpha3XhmikosR4-4/+4
2020-11-05Remove the now unneeded polyfills.XhmikosR2-69/+2
2020-11-05Drop Legacy Edge support.XhmikosR2-23/+1
This allows us to move forward without being held back. Microsoft already replaces the Legacy Edge with the new one on supported Windows versions.
2020-11-01karma: stop excluding polyfill.js from istanbul (#30740)XhmikosR1-2/+0
2020-11-01Fix TypeError when Bootstrap is included in `head` (#32024)Sascha1-1/+1
* extend jquery after domContentLoaded event is fired * add unittest for util onDOMContentLoaded * wait for trigger jquery event after domContentLoaded * remove domcontentready from eventHandler * move istanbul ignore statements to correct line Co-authored-by: XhmikosR <[email protected]>
2020-11-01polyfill.js minor tweaks (#32011)XhmikosR1-7/+3
* rename function to `supportsScopeQuery` * use a ternary in `findOne` function return value
2020-10-05Remove `Manipulator.toggleClass` (#31842)XhmikosR1-12/+0
It's only used in one place so it makes more sense to remove it for the time being.
2020-09-29Prepare v5.0.0-alpha2. (#31748)v5.0.0-alpha2XhmikosR5-5/+5
2020-07-12Unbreak lines.XhmikosR1-0/+2
2020-06-18Fix tooltip when hovering a children element (delegateTarget) (#30928)Tanguy Krotoff1-0/+2
Co-authored-by: XhmikosR <[email protected]>
2020-06-17Unbreak short linesXhmikosR1-27/+23
2020-06-17data: reword storage key in domJohann-S1-8/+8
2020-06-16Rename "master" to "main". (#31050)XhmikosR5-5/+5
2020-05-13Bump version to 5.0.0-alpha1 (#29925)XhmikosR5-5/+5
Also add v4.5.0 in versions and keep README.md pointing to v4.5.0 so that there are no broken stuff.
2020-04-28Drop closest from SelectorEngine (#30653)Martijn Cuppens1-4/+0
Co-authored-by: XhmikosR <[email protected]>
2020-04-17Replace event.delegateTarget with event.targetTanguy Krotoff1-7/+0
No need for fixEvent() anymore
2020-04-17Replace event.which with event.key and event.buttonTanguy Krotoff1-6/+0
2020-03-25fix: remove make array util function (#30430)Johann-S1-5/+4
2020-03-23Use next dropdown menu instead of first of the parentMartijn Cuppens1-0/+14
2020-03-18Remove IE compatibility JS codeJohann-S3-72/+6
2020-03-09`prev()` function fails when non-element nodes are present (#30117)Martijn Cuppens1-7/+5
The `prev()` function doesn't take nodes other than elements into account. Also we could simplify things a lot using the `previousElementSibling` property. This property isn't fully supported in IE, it only works for elements, but since the `element` variable is an element, we can safely use it here. I've also added an additional test. I don't think we had this issue in v4, since we relied on jQuery back then. Ref. https://developer.mozilla.org/en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling
2019-10-31Update normalizeDataKey to match the spec (#29609)Steffen Roßkamp1-1/+1
2019-10-07Update devDependencies. (#29447)XhmikosR2-2/+2
2019-10-03return to the original file structure to avoid breaking modularityJohann-S4-731/+0
2019-08-22Remaining JS linting TODO (#29289)Markus Hatvan1-1/+1
* Enable and fix all occurrences with no-mixed-operators rule * Take care of the max-depth warning in button.js Signed-off-by: mhatvan <[email protected]>
2019-08-02add a way to disable jQuery detectionJohann-S1-2/+3
2019-07-23rewrite unit tests for selector engineJohann-S2-24/+117
2019-07-23rewrite manipulator unit testsAnton Bershanskiy1-0/+158
2019-07-23Switch from QUnit to Jasmine.Johann-S3-1/+461
2019-06-03event-handler.js: use a plain for loop. (#28853)XhmikosR1-4/+6
2019-05-08Rename `eventHandler` and `selectorEngine` files.XhmikosR2-2/+2
2019-04-10Fix xo error: use `for...of`.XhmikosR1-4/+1
2019-03-18Add back support for IE 11Johann-S3-65/+127
2019-03-13Use one-line imports when possible. (#28467)XhmikosR3-9/+3