@bagelink/vue 1.2.71 → 1.2.75

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/dist/style.css CHANGED
@@ -726,33 +726,75 @@ to {
726
726
  padding: 0;
727
727
  }
728
728
 
729
- .carousel-wrapper[data-v-6de4176c] {
730
- position: relative;
731
- width: 100%;
729
+ .BglCarousel[data-v-406c405d] {
730
+ position: relative;
731
+ width: 100%;
732
+ overflow: hidden;
733
+ touch-action: pan-y pinch-zoom; /* Allow vertical scrolling */
732
734
  }
733
- .carousel-container[data-v-6de4176c] {
734
- margin: 0 auto;
735
- overflow: hidden;
735
+ .bgl-slider[data-v-406c405d] {
736
+ display: flex;
737
+ position: relative;
738
+ width: 100%;
739
+ touch-action: pan-y pinch-zoom; /* Allow vertical scrolling */
740
+ will-change: transform;
741
+ transform: translateX(0);
742
+ gap: 1%;
743
+ transition: none;
744
+ -webkit-user-select: none;
745
+ user-select: none;
736
746
  }
737
- .carousel-dots[data-v-6de4176c] {
738
- display: flex;
739
- justify-content: center;
740
- gap: 8px;
741
- margin-top: 16px;
747
+ .bgl-slider[data-v-406c405d] > * {
748
+ flex: 0 0 calc((100% - (var(--item-count) - 1) * 1%) / var(--item-count));
749
+ width: calc((100% - (var(--item-count) - 1) * 1%) / var(--item-count));
750
+ min-width: calc((100% - (var(--item-count) - 1) * 1%) / var(--item-count));
751
+ position: relative;
752
+ overflow: hidden;
742
753
  }
743
- .carousel-dot[data-v-6de4176c] {
744
- width: 12px;
745
- height: 12px;
746
- border-radius: 50px;
747
- background-color: #ccc;
748
- border: none;
749
- padding: 0;
750
- cursor: pointer;
751
- transition: all 0.3s ease-in-out;
754
+ .bgl-slider.slides-1[data-v-406c405d] > * {
755
+ flex: 0 0 100%;
756
+ width: 100%;
757
+ min-width: 100%;
752
758
  }
753
- .carousel-dot.active[data-v-6de4176c] {
754
- background-color: #333;
755
- width: 26px;
759
+ .dragging .bgl-slider[data-v-406c405d] > * {
760
+ pointer-events: none;
761
+ user-select: none;
762
+ }
763
+ .autoHeight[data-v-406c405d] {
764
+ transition: height ease 0.7s;
765
+ }
766
+ .dots[data-v-406c405d] {
767
+ display: flex;
768
+ justify-content: center;
769
+ align-items: center;
770
+ width: 100%;
771
+ margin-top: 1rem;
772
+ gap: 8px;
773
+ }
774
+ .dot[data-v-406c405d] {
775
+ height: 10px;
776
+ width: 10px;
777
+ border-radius: 50%;
778
+ background-color: var(--bgl-black);
779
+ opacity: 0.4;
780
+ transition: opacity 0.3s ease;
781
+ cursor: pointer;
782
+ }
783
+ .dot[data-v-406c405d]:hover {
784
+ opacity: 0.6;
785
+ }
786
+ .dot.current[data-v-406c405d] {
787
+ opacity: 0.8;
788
+ }
789
+ .navigation-buttons[data-v-406c405d] {
790
+ display: flex;
791
+ justify-content: center;
792
+ align-items: center;
793
+ gap: 1rem;
794
+ margin-top: 1rem;
795
+ }
796
+ .navigation-buttons.rtl[data-v-406c405d] {
797
+ flex-direction: row-reverse;
756
798
  }
757
799
 
758
800
  .chart-line {
@@ -4356,6 +4398,35 @@ body:has(.bg-dark.is-active) {
4356
4398
  background: transparent;
4357
4399
  }
4358
4400
 
4401
+ .carousel-wrapper[data-v-705b9c93] {
4402
+ position: relative;
4403
+ width: 100%;
4404
+ }
4405
+ .carousel-container[data-v-705b9c93] {
4406
+ margin: 0 auto;
4407
+ overflow: hidden;
4408
+ }
4409
+ .carousel-dots[data-v-705b9c93] {
4410
+ display: flex;
4411
+ justify-content: center;
4412
+ gap: 8px;
4413
+ margin-top: 16px;
4414
+ }
4415
+ .carousel-dot[data-v-705b9c93] {
4416
+ width: 12px;
4417
+ height: 12px;
4418
+ border-radius: 50px;
4419
+ background-color: #ccc;
4420
+ border: none;
4421
+ padding: 0;
4422
+ cursor: pointer;
4423
+ transition: all 0.3s ease-in-out;
4424
+ }
4425
+ .carousel-dot.active[data-v-705b9c93] {
4426
+ background-color: #333;
4427
+ width: 26px;
4428
+ }
4429
+
4359
4430
  .stickyTop[data-v-857ccb8b]{
4360
4431
  position: sticky;
4361
4432
  top: -0.125rem;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.2.71",
4
+ "version": "1.2.75",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -377,10 +377,6 @@ function slideToCurrent(enableTransitionFlag?: boolean): void {
377
377
  }
378
378
 
379
379
  function prev(howManySlides: number = 1): void {
380
- if (innerElements.value.length <= perPage.value) {
381
- return
382
- }
383
-
384
380
  const beforeChange = currentSlide.value
385
381
 
386
382
  if (config.value.loop) {
@@ -411,13 +407,12 @@ function prev(howManySlides: number = 1): void {
411
407
  slideToCurrent(config.value.loop)
412
408
  config.value.onChange()
413
409
  }
410
+ if (config.value.autoplay !== 'disabled') {
411
+ startAutoplay()
412
+ }
414
413
  }
415
414
 
416
415
  function next(howManySlides: number = 1): void {
417
- if (innerElements.value.length <= perPage.value) {
418
- return
419
- }
420
-
421
416
  const beforeChange = currentSlide.value
422
417
 
423
418
  if (config.value.loop) {
@@ -448,6 +443,9 @@ function next(howManySlides: number = 1): void {
448
443
  slideToCurrent(config.value.loop)
449
444
  config.value.onChange()
450
445
  }
446
+ if (config.value.autoplay !== 'disabled') {
447
+ startAutoplay()
448
+ }
451
449
  }
452
450
 
453
451
  function goTo(index: number): void {
@@ -8,8 +8,7 @@ export { default as BglVideo } from './BglVideo.vue'
8
8
  export { default as Btn } from './Btn.vue'
9
9
  export { default as Calendar } from './calendar/Index.vue'
10
10
  export { default as Card } from './Card.vue'
11
- export { default as Carousel } from './Carousel2.vue'
12
- // export { default as Carousel } from './Carousel.vue'
11
+ export { default as Carousel } from './Carousel.vue'
13
12
  export * from './dashboard'
14
13
  export { default as DataPreview } from './DataPreview.vue'
15
14
  export { default as DataTable } from './dataTable/DataTable.vue'
@@ -35,6 +34,7 @@ export { default as NavBar } from './NavBar.vue'
35
34
  export { default as PageTitle } from './PageTitle.vue'
36
35
  export { default as Pill } from './Pill.vue'
37
36
  export { default as RouterWrapper } from './RouterWrapper.vue'
37
+ export { default as Slider } from './Slider.vue'
38
38
  export { default as Spreadsheet } from './Spreadsheet/Index.vue'
39
39
  export { default as Title } from './Title.vue'
40
40
  export { default as ToolBar } from './ToolBar.vue'