aboutsummaryrefslogtreecommitdiff
path: root/js/src/carousel.js
AgeCommit message (Collapse)AuthorFilesLines
2021-02-16util: change `isRTL` to a function (#32446)XhmikosR1-4/+4
This allows the bundler to tree-shake the function.
2021-02-12Fix event handler removal in dropdown/carousel dispose (#33000)Kyle Tsang1-1/+2
* Fix event handler removal in carousel dispose * Fix event handler removal in dropdown dispose * Test event handlers in scrollspy dispose * Test event handlers in toast dispose * Test event handlers in tooltip dispose Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Rohit Sharma <[email protected]>
2021-02-10Release v5.0.0-beta2 (#32467)v5.0.0-beta2XhmikosR1-1/+1
* Bump version to 5.0.0-beta2 * Dist
2021-01-28Just find the active indicatorRohit Sharma1-5/+3
2021-01-28Make carousel indicators actual buttonsPatrick H. Lauke1-8/+12
2020-12-14fix(carousel): switch prev/next directions in RTLGaël Poupard1-4/+21
2020-12-11carousel: switch to string constants (#32393)XhmikosR1-6/+4
2020-12-11Use the ternary operator in a few more places (#32303)XhmikosR1-13/+3
2020-12-10Remove `TRANSITION_END` from utils (#32394)XhmikosR1-2/+1
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-08Refactor components to use a utility function to define jQuery plugins (#32285)alpadev1-15/+2
* 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-07Prepare v5.0.0-beta1.XhmikosR1-1/+1
2020-12-04feat(RTL): implement RTLGaël Poupard1-4/+4
Using RTLCSS directives, renaming things to use logical names and following best practices.
2020-12-02Unbreak lines. (#32304)XhmikosR1-2/+2
2020-11-29Remove setData from construtors (#32264)Rohit Sharma1-1/+0
2020-11-29Move `VERSION` to BaseComponent (#32254)Rohit Sharma1-5/+0
2020-11-29add dispose in base componentJohann-S1-2/+1
2020-11-29create a base componentJohann-S1-6/+8
2020-11-14Switch to Number propertiesXhmikosR1-1/+1
2020-11-14Add `bs` in data attributesRohit Sharma1-4/+4
- Add `bs` in data APIs everywhere - Update unit tests
2020-11-11Prepare v5.0.0-alpha3 (#32122)v5.0.0-alpha3XhmikosR1-2/+2
2020-11-01Streamline jQuery comment. (#32016)XhmikosR1-1/+1
2020-11-01Fix TypeError when Bootstrap is included in `head` (#32024)Sascha1-11/+14
* 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-09-29Prepare v5.0.0-alpha2. (#31748)v5.0.0-alpha2XhmikosR1-2/+2
2020-07-12Unbreak lines.XhmikosR1-23/+18
2020-06-16Rename "master" to "main". (#31050)XhmikosR1-1/+1
2020-05-13Bump version to 5.0.0-alpha1 (#29925)XhmikosR1-2/+2
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-17Replace event.which with event.key and event.buttonTanguy Krotoff1-5/+5
2020-04-09Pass multiple classes to `classList.add` / `classList.remove` (#30537)XhmikosR1-5/+2
This is supported by our currently supported browsers.
2020-03-29Remove `MSPointerEvent` and `ms-touch-action` in tests (#30463)XhmikosR1-1/+1
2020-03-25fix: remove make array util function (#30430)Johann-S1-4/+4
2020-03-18Switch to strings constants.XhmikosR1-93/+85
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 23.61 kB 22.61 kB -1.00 kB (-4.23 %) bootstrap.min.js 17.04 kB 16.08 kB -0.96 kB (-5.63 %)
2019-10-03return to the original file structure to avoid breaking modularityJohann-S1-0/+637
2019-07-23rewrite carousel unit testsJohann-S1-645/+0
2019-05-08Rename `eventHandler` and `selectorEngine` files.XhmikosR1-2/+2
2019-03-27Reset carousel touch delta x to prevent click transformation in swipe (#28558)Johann-S1-0/+2
2019-03-11Comply to the new rules.XhmikosR1-107/+110
2019-02-26move util in a util folder with the sanitizerJohann-S1-13/+23
2019-02-20Use `Util.makeArray()`.XhmikosR1-2/+2
2019-02-20chore(update): bump to 4.1.3Johann-S1-2/+10
2019-02-20fix(plugins): save instance in constructorJohann-S1-1/+1
2019-02-20fix(carousel): on load page create a carouselJohann-S1-1/+1
2019-02-20fix(manipulator): increase coverage for manipulatorJohann-S1-2/+2
2019-02-20fix(data): do not use data object in our unit testsJohann-S1-1/+4
2019-02-20remove old references to jquery and some fixesJohann-S1-3/+3
2019-02-20upgrade to v4 stableJohann-S1-6/+11
2019-02-20fix one forgets of using jQuery in Carousel and TooltipJohann-S1-28/+33
2019-02-20Rewritten modal without jquery (#23955)Alessandro Chitolina1-1/+1
* Trigger jquery events if available in event handler * Rewritten modal without jquery
2019-02-20Rewrite carousel without jqueryJohann-S1-85/+87