aboutsummaryrefslogtreecommitdiff
path: root/js/src/carousel.js
AgeCommit message (Collapse)AuthorFilesLines
2021-09-10transfer some code blocks, to where we use themgs-carousel-cleanupGeoSot1-27/+17
2021-09-10remove one more call to ActiveIndexGeoSot1-3/+2
2021-09-10simplify slide checkGeoSot1-20/+16
2021-09-10`_setActiveIndicatorElement` simplification to work with indexGeoSot1-3/+3
2021-09-10Reorder importsGeoSot1-1/+1
2021-09-10Simplify items selectionGeoSot1-3/+1
2021-09-10move interface to jqueryInterfaceGeoSot1-28/+24
2021-09-10refactor initialization on document loadGeoSot1-2/+2
2021-09-10transfer logic of `dataApiClickHandler`GeoSot1-27/+23
2021-09-10rename option `slide` to `ride`, as it didn't mirroring docs & cleanup interfaceGeoSot1-7/+13
2021-09-10config merge is redundant, because it is done by defaultGeoSot1-1/+0
2021-09-10interval is an integer, so better avoid booleanGeoSot1-1/+1
2021-09-10remover redundant checkGeoSot1-5/+2
2021-09-10merge duplicated code to methodGeoSot1-7/+9
2021-09-10According to ↵GeoSot1-4/+1
`https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilityState`, `visibilityState` is always string, so the check is redundant
2021-09-10Simplify carousel-items interval updateGeoSot1-7/+3
2021-09-10Save up some iterations timeGeoSot1-13/+11
2021-09-10use helper to get Active elementGeoSot1-4/+8
2021-09-10Use Manipulator to get element DataGeoSot1-3/+3
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