@creative-web-solution/front-library 7.1.45 → 7.1.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 7.1.46
4
+
5
+ * [Slider]: Fix bullet pager
6
+
3
7
  ## 7.1.45
4
8
 
5
9
  * [Slider]: Fix type
@@ -399,19 +399,19 @@ export default class SliderControls {
399
399
  }
400
400
 
401
401
 
402
- #updateBullets = ( targetSlide: Slide, currentSlide?: Slide ): void => {
402
+ #updateBullets = ( targetSlide: FLib.Slider.SlideProperties, currentSlide?: FLib.Slider.SlideProperties ): void => {
403
403
  if ( !this.#$bullets ) {
404
404
  return;
405
405
  }
406
406
 
407
- if ( currentSlide && this.#$bullets[ currentSlide.index ] ) {
408
- const $BULLET = this.#$bullets[ currentSlide.index ] as HTMLElement;
407
+ if ( currentSlide && this.#$bullets[ currentSlide.pageIndex ] ) {
408
+ const $BULLET = this.#$bullets[ currentSlide.pageIndex ] as HTMLElement;
409
409
  $BULLET.setAttribute( 'aria-selected', 'false' );
410
410
  $BULLET.setAttribute( 'tabindex', '-1' );
411
411
  }
412
412
 
413
- if ( targetSlide && this.#$bullets[ targetSlide.index ] ) {
414
- const $BULLET = this.#$bullets[ targetSlide.index ] as HTMLElement;
413
+ if ( targetSlide && this.#$bullets[ targetSlide.pageIndex ] ) {
414
+ const $BULLET = this.#$bullets[ targetSlide.pageIndex ] as HTMLElement;
415
415
  $BULLET.setAttribute( 'aria-selected', 'true' );
416
416
  $BULLET.setAttribute( 'tabindex', '0' );
417
417
  }
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Front Library
2
2
 
3
- @version: 7.1.45
3
+ @version: 7.1.46
4
4
 
5
5
 
6
6
  ## Use
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@creative-web-solution/front-library",
3
3
  "title": "Frontend library",
4
4
  "description": "Frontend functions and modules",
5
- "version": "7.1.45",
5
+ "version": "7.1.46",
6
6
  "homepage": "https://github.com/creative-web-solution/front-library",
7
7
  "author": "Creative Web Solution <contact@cws-studio.com> (https://www.cws-studio.com)",
8
8
  "keywords": [],