aboutsummaryrefslogtreecommitdiff
path: root/js/src
AgeCommit message (Collapse)AuthorFilesLines
2020-12-11carousel: switch to string constants (#32393)XhmikosR1-6/+4
2020-12-11Use the ternary operator in a few more places (#32303)XhmikosR2-19/+7
2020-12-10Tooltip - check if tip and its parent node exist in dispose method (#32420)Rohit Sharma1-1/+1
2020-12-10Remove `TRANSITION_END` from utils (#32394)XhmikosR8-24/+16
2020-12-10carousel: switch to `if/else` (#32395)XhmikosR1-10/+6
There are only two conditions, so `if/else` is shorter and has the same effect.
2020-12-09Add fallback behaviourMartijn Cuppens2-1/+8
2020-12-09alert: rename variables for consistency (#32392)XhmikosR1-6/+6
2020-12-09SelectorEngine: drop variable used once (#32391)XhmikosR1-3/+2
2020-12-08Refactor components to use a utility function to define jQuery plugins (#32285)alpadev12-165/+40
* refactor: use an utility function to define jQuery plugins * test: add spec for defineJQueryPlugin utility function * Update .bundlewatch.config.json Co-authored-by: XhmikosR <[email protected]>
2020-12-07Remove `SelectorEngine.matches()`. (#32339)XhmikosR1-6/+2
It's basically unused.
2020-12-07Prepare v5.0.0-beta1.XhmikosR18-19/+19
2020-12-06Be explicit with `element.closest()`'s return valueXhmikosR1-1/+1
2020-12-06Fix conflict with Bootstrap CSSMartijn Cuppens1-15/+15
2020-12-06Update to popper.js v2.xJohann-S2-100/+65
2020-12-04feat(RTL): implement RTLGaƫl Poupard6-24/+42
Using RTLCSS directives, renaming things to use logical names and following best practices.
2020-12-02Unbreak lines. (#32304)XhmikosR9-70/+33
2020-11-30Remove the `show` property from the modal plugin (#32279)Rohit Sharma1-6/+2
Drop the support of show property from the modal plugin. When creating the new modal instance in v5, the `show` property does not work anymore, so instead of fixing the behavior just removing it permanently to keep the consistency between all the plugins. (All other plugins require the `show()` method to be called on the instances to be shown) Co-authored-by: XhmikosR <[email protected]>
2020-11-30tooltip.js: reuse existent variableXhmikosR1-2/+2
2020-11-30Extra check for existence of any `aria-label`Patrick H. Lauke1-2/+2
before overwriting it...
2020-11-30Accessibility update for tooltip.jsMatty Williams1-0/+4
Update to the tooltip.js to add an aria-label attribute that contains the original title of the element, but only if the element doesn't have an existing aria-label attribute. This is to address cases where screen readers are not capturing the aria-describedby attribute that is added when the tooltip is triggered. This should also avoid a race condition between the screen reader and the appearance of the tooltip.
2020-11-29Remove setData from construtors (#32264)Rohit Sharma7-9/+0
2020-11-29remove data key in base componentJohann-S1-4/+0
2020-11-29Move `VERSION` to BaseComponent (#32254)Rohit Sharma12-55/+12
2020-11-29add dispose in base componentJohann-S11-32/+13
2020-11-29create a base componentJohann-S12-113/+133
2020-11-25Ability to add custom class in tooltip/popover (#32217)Rohit Sharma1-0/+7
Porting of #31834 to main. Co-authored-by: XhmikosR <[email protected]>
2020-11-21Be consistent with Popper's name. (#32224)XhmikosR2-4/+4
The npm package is named "popper.js" but the project is named "Popper", so use the latter consistently.
2020-11-20Don't hide modal when keyboard is set to false in modal's configuration (#32179)Rohit Sharma1-26/+26
* Don't hide modal when config.keyboard is false * Update unit test - Modal should not be closed when pressing esc key if keyboard = false and backdrop is 'static' Co-authored-by: XhmikosR <[email protected]>
2020-11-20Make the attribute methods bs specific (#32173)Rohit Sharma2-12/+12
Co-authored-by: XhmikosR <[email protected]>
2020-11-14Use `Array.find` instead of `Array.filter`XhmikosR1-2/+2
2020-11-14Use `String.startsWith`XhmikosR1-1/+1
2020-11-14Switch to `Set#has()`XhmikosR3-9/+9
2020-11-14Switch to Number propertiesXhmikosR3-7/+7
2020-11-14Switch to `String.includes()`XhmikosR3-8/+8
2020-11-14tooltip.js: deduplicate `_fixTitle()` (#32124)XhmikosR1-7/+4
2020-11-14Get only bs prefixed data attributesRohit Sharma1-5/+3
2020-11-14Add `bs` in data attributesRohit Sharma13-35/+39
- Add `bs` in data APIs everywhere - Update unit tests
2020-11-11Prepare v5.0.0-alpha3 (#32122)v5.0.0-alpha3XhmikosR17-28/+28
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-03dropdown.js: simplify code (#32055)XhmikosR1-4/+3
2020-11-01karma: stop excluding polyfill.js from istanbul (#30740)XhmikosR1-2/+0
2020-11-01Streamline jQuery comment. (#32016)XhmikosR11-9/+11
2020-11-01Fix TypeError when Bootstrap is included in `head` (#32024)Sascha13-127/+166
* 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-01Check for data-interval on the first slide of carousel (#31818)Mitchell Bryson1-8/+20
* check for data-interval on the first slide of carousel * add updateInterval method for elements of a carousel * add test for carousel interval being set during cycle * update activeElement as soon as slide has finished (before transition end) * only updateInterval before using it 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)XhmikosR2-16/+4
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-alpha2XhmikosR18-29/+29
2020-09-24fix tooltip hide method when already hidden (#31115)Hiws1-0/+4
Co-authored-by: XhmikosR <[email protected]>
2020-07-12Join template literalsXhmikosR1-3/+1