aboutsummaryrefslogtreecommitdiff
path: root/js/src/carousel.js
AgeCommit message (Collapse)AuthorFilesLines
2021-09-07Release v5.1.1 (#34869)v5.1.1XhmikosR1-1/+1
* Prepare v5.1.1. * Dist
2021-08-10carousel: move common checks to a function (#34621)XhmikosR1-2/+7
2021-08-04Prepare v5.1.0. (#34674)v5.1.0XhmikosR1-1/+1
2021-06-22Release v5.0.2 (#34276)v5.0.2XhmikosR1-1/+1
* Bump version to v5.0.2. * Dist
2021-06-22fix(carousel): arrow keys break animation if carousel sliding (#34307)alpadev1-11/+14
2021-06-16Fix carousel buttons (#34266)alpadev1-1/+8
* test(carousel): add test to check if next/prev button work as intended * fix(carousel): merge passed config with instance config in carouselInterface
2021-06-03Add `getOrCreateInstance` method in base-component (#33276)GeoSot1-20/+6
Co-authored-by: Rohit Sharma <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-05-19Add `getNextActiveElement` helper function to utils, replacing custom ↵GeoSot1-15/+2
implementation through components (#33608)
2021-05-13Release v5.0.1 (#33972)v5.0.1XhmikosR1-1/+1
* Bump version to 5.0.1. * Dist
2021-05-11Extract static `DATA_KEY` & `EVENT_KEY` to base-component (#33635)GeoSot1-3/+3
* Force each plugin that extends base-components to implement a static method `NAME()` * Remove redundant `NAME` argument from 'Utils.defineJQueryPlugin' & fix test
2021-05-11Refactor: move disposing properties into the base class (#33740)GeoSot1-12/+0
Moves more functionality to `base-component`, transferring the responsibility of disposal to parent class. Each component, dusting disposal, sets its protected properties to `null`. So the same can be done in one place for all children components .
2021-05-10Merge js-components 'transitionend' listener callbacks into one methodGeoSot1-21/+14
2021-05-05Release v5.0.0 (#33647)v5.0.0XhmikosR1-1/+1
* Bump version to 5.0.0 * Fix npm tag * Dist
2021-04-11Remove element event listeners through base component (#33429)GeoSot1-2/+0
After some research, I found out that EventHandler saves all the custom events per element using namespace, and is capable of removing handlers using only the element and its namespace (`DATA_KEY`). So, probably is better to utilize the base-component to do the same job.
2021-04-07Fix wrong carousel transformation, direction to order (#33499)GeoSot1-6/+6
2021-03-23Release v5.0.0-beta3 (#33439)v5.0.0-beta3XhmikosR1-1/+1
2021-03-23Bump eslint-plugin-unicorn from 28.0.2 to 29.0.0 (#33435)dependabot[bot]1-5/+3
* Bump eslint-plugin-unicorn from 28.0.2 to 29.0.0 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 28.0.2 to 29.0.0. - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v28.0.2...v29.0.0) Signed-off-by: dependabot[bot] <[email protected]> * Fix lint failure Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR <[email protected]>
2021-03-17Fix carousel RTL and refactor code, fix rtl swipe issues (#32913)GeoSot1-45/+50
* move common code to reusable functions * add/re-factor tests, directionToOrder func * add _orderToDirection tests Co-authored-by: XhmikosR <[email protected]>
2021-03-02refactor: use a Map instead of an Object in dom/data (#32180)alpadev1-3/+3
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Rohit Sharma <[email protected]>
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