XhmikosR
ae43f0c48b
Tweak and re-organize ESLint config ( #38369 )
...
* Tweak and re-organize ESLint config
* merge individual configs to the root config
* enable more eslint-plugin-import rules
* lint markdown files
* Lint
2023-03-29 13:49:30 -04:00
GeoSot
ab049cd4a0
Remove version comment from JavaScript src files ( #38294 )
2023-03-22 09:12:33 +02:00
XhmikosR
cf9454caa0
Release v5.3.0-alpha1 ( #37661 )
...
* Bump version to 5.3.0-alpha1
* Dist
* Add docs versions updates
* Update note in homepage hero
Co-authored-by: Mark Otto <markdotto@gmail.com>
2022-12-24 18:37:22 +02:00
XhmikosR
8f6de23682
Merge branch 'main' into prepare-523
2022-11-22 09:51:29 +02:00
XhmikosR
39589472f7
Bump version to 5.2.3
2022-11-21 20:15:33 +02:00
GeoSot
e81e7cda90
Move getElementFromSelector
& getSelectorFromElement
to SelectorEngine ( #36027 )
...
* Move `getElementFromSelector` & getSelectorFromElement` inside selector-engine.js, in order to use SelectorEngine methods, avoiding raw querySelector usage
* add `getMultipleElementsFromSelector` helper
Co-authored-by: Julien Déramond <juderamond@gmail.com>
2022-11-06 20:31:43 +02:00
GeoSot
aa9d32dd15
Use explicit imports in our javascript source files ( #36854 )
2022-10-26 08:26:51 +03:00
XhmikosR
961d5ff984
Release v5.2.2 ( #37236 )
...
* Bump version to v5.2.2
* Dist
2022-10-03 10:44:02 +03:00
XhmikosR
23e50829f9
Release v5.2.1 ( #37098 )
...
* Bump version to v5.2.1.
* Dist
2022-09-07 18:31:39 +03:00
XhmikosR
edf9c40956
Release v5.2.0 ( #36768 )
...
* Bump version to 5.2.0
* Dist
* Update masthead.html
2022-07-19 18:43:58 +03:00
GeoSot
fc24f8788f
Carousel: Remove redundant reference to interval=false
from docs ( #36545 )
...
* docs: remove redundant reference to `interval=false`
* docs: remove redundant reference to `interval=false` from tests
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2022-06-14 16:17:28 +03:00
louismaxime.piton
c137d11aa2
Re-ordering js default objects
2022-06-01 19:24:45 -07:00
Mark Otto
f7e8ca91e0
Prepare v5.2.0-beta1
2022-05-13 19:44:01 +03:00
GeoSot
554736834d
Carousel: Fix not used option (ride
), simplify cycle
method ( #35983 )
...
* Fix not used option (`ride`) (according to docs), continuing of #35753 a247fe9
* separate concept of `programmatical cycle` vs `maybe cycle after click` functionality
2022-04-21 22:42:17 +03:00
GeoSot
6e904341c9
Carousel: change class check as it can only exist if carousel is sliding
...
Also, fix the corresponding test
2022-03-10 15:22:14 +02:00
GeoSot
3673933fe7
Carousel: rename private property
2022-03-10 15:22:14 +02:00
GeoSot
ec0e1c220e
Carousel: add comment for future fixes
2022-03-10 15:22:14 +02:00
GeoSot
88da704eed
Carousel: omit redundant checks as we are always transforming the right values
2022-03-10 15:22:14 +02:00
GeoSot
28f150d720
Carousel: omit config merging in jQueryInterface after we create the instance
...
This is already done inside `getOrCreateInstance` method
2022-03-10 15:22:14 +02:00
GeoSot
7e5a8016ba
Carousel: return early in _slide
method
2022-03-09 17:25:47 +02:00
GeoSot
d4e87d28cd
Carousel: small refactoring, remove unnecessary checks
2022-03-09 17:25:47 +02:00
GeoSot
dd93551914
Carousel: refactor using inline function and move variables to the proper place
2022-03-09 17:25:47 +02:00
GeoSot
699402bee5
Carousel: refactor _slide
method te accept only order as first argument
2022-03-09 17:25:47 +02:00
GeoSot
fcc2c80976
Carousel: add a getItems
helper
2022-03-09 17:25:47 +02:00
GeoSot
b7cce49dbc
Carousel: use combined selector and drop variable used once
2022-03-09 17:25:47 +02:00
GeoSot
a8142497c7
Carousel: reorder variables and refactor method to use it inline
2022-03-09 17:25:47 +02:00
GeoSot
e77ae50311
Carousel: cleanup jQueryInterface
...
Drop chained else ifs and unused variable.
Since we were checking for `typeof config === 'string'` in both places, action was never `_config.slide`.
2022-03-09 17:25:47 +02:00
GeoSot
c644f09d88
Carousel: simplify carousel items selection
...
We already know that carousel's parent is the carousel element, so we can use it explicitly
2022-03-01 16:56:33 +02:00
GeoSot
eb8d5b43ce
Carousel: move carouselInterface
inside jqueryInterface
2022-03-01 16:56:33 +02:00
GeoSot
13042d25ca
Carousel: move logic of dataApiClickHandler
2022-03-01 16:56:33 +02:00
GeoSot
631cec4f70
Carousel: refactor dataApiKeyHandler to avoid use of carouselInterface
2022-03-01 16:56:33 +02:00
GeoSot
642d756eea
Carousel: remove one more call to ActiveIndex
2022-02-19 14:52:36 +02:00
GeoSot
d52f6c9de1
Carousel: change argument to _setActiveIndicatorElement
, from element to index
2022-02-19 14:52:36 +02:00
GeoSot
928bdcadc5
Carousel: make direct triggering of slid event, instead of using a callback
2022-02-19 14:52:36 +02:00
GeoSot
d97125475b
Carousel: merge slide functionality, regardless of whether it is animated or not
2022-02-19 14:52:36 +02:00
GeoSot
a247fe9b27
Carousel: simplify initialization on document load, using getOrCreateInstance
2022-02-19 14:52:36 +02:00
GeoSot
ccba6a3589
Carousel: remove redundant config merge on dataApiClickHandler
, as it is done by default in the constructor
2022-02-19 14:52:36 +02:00
XhmikosR
558002f3dc
Return early in more places
2022-01-29 13:25:30 +02:00
XhmikosR
62d86c07f8
Rename variables
2022-01-29 13:25:30 +02:00
GeoSot
0d4213bde3
Carousel: move repeated code to a method
2021-12-21 17:37:24 +02:00
GeoSot
b8ee68cfa0
Carousel: remove always true visibilityState
check
...
According to https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilityState `visibilityState` is always a string, so the check was always true
2021-12-21 17:37:24 +02:00
GeoSot
ff4bf4a458
Carousel: move carousel default interval to _getConfig()
and simplify it
2021-12-21 17:37:24 +02:00
GeoSot
6f79721c82
Carousel: return early and drop a loop.
...
We can achieve the same thing by querying the specific selector directly
2021-12-21 17:37:24 +02:00
GeoSot
d60f146507
Carousel: add a helper to get the active element
2021-12-21 17:37:24 +02:00
GeoSot
886b940796
Extract Component config functionality to a separate class ( #33872 )
...
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-12-10 18:18:18 +02:00
XhmikosR
e8f702666f
JS: minor refactoring ( #35183 )
...
* add missing comments
* shorten block comments
* reorder constants
* reorder public/private methods
* sort exports alphabetically in util/index.js
* fix a couple of typos
2021-10-13 15:19:28 +03:00
GeoSot
8ec6c94522
Extract Carousel's swipe functionality to a separate Class ( #32999 )
2021-10-11 17:04:43 +03:00
XhmikosR
c44d64ed71
Merge remote-tracking branch 'remotes/origin/v513'
2021-10-09 18:28:28 +03:00
XhmikosR
1a6fdfae6b
Bump version to 5.1.3.
2021-10-09 09:43:19 +03:00
XhmikosR
666fe596bf
Enable unicorn/no-array-for-each
rule
2021-10-05 19:52:11 +03:00