@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/components/Carousel.vue.d.ts +2 -2
- package/dist/components/Slider.vue.d.ts +89 -0
- package/dist/components/Slider.vue.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +1727 -1248
- package/dist/index.mjs +1728 -1249
- package/dist/style.css +94 -23
- package/package.json +1 -1
- package/src/components/{Carousel2.vue → Slider.vue} +6 -8
- package/src/components/index.ts +2 -2
package/dist/style.css
CHANGED
|
@@ -726,33 +726,75 @@ to {
|
|
|
726
726
|
padding: 0;
|
|
727
727
|
}
|
|
728
728
|
|
|
729
|
-
.
|
|
730
|
-
|
|
731
|
-
|
|
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
|
-
.
|
|
734
|
-
|
|
735
|
-
|
|
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
|
-
.
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
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
|
-
.
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
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
|
-
.
|
|
754
|
-
|
|
755
|
-
|
|
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
|
@@ -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 {
|
package/src/components/index.ts
CHANGED
|
@@ -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 './
|
|
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'
|