@plaidev/karte-action-sdk 1.1.268-29089896.0dceea5e → 1.1.268-29092453.64ab24dc
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/hydrate/index.es.d.ts +4 -4
- package/dist/hydrate/index.es.js +100 -81
- package/dist/index.es.d.ts +4 -4
- package/dist/index.es.js +100 -81
- package/dist/svelte5/hydrate/index.es.d.ts +4 -4
- package/dist/svelte5/hydrate/index.es.js +38 -30
- package/dist/svelte5/index.es.d.ts +4 -4
- package/dist/svelte5/index.es.js +38 -30
- package/dist/svelte5/index.front2.es.js +38 -30
- package/package.json +2 -2
@@ -2886,10 +2886,10 @@ type CountDownValueProps = LayerTextProps & {
|
|
2886
2886
|
type: CountDownValueType;
|
2887
2887
|
};
|
2888
2888
|
type CountDownValues = {
|
2889
|
-
day:
|
2890
|
-
hour:
|
2891
|
-
min:
|
2892
|
-
sec:
|
2889
|
+
day: number;
|
2890
|
+
hour: number;
|
2891
|
+
min: number;
|
2892
|
+
sec: number;
|
2893
2893
|
};
|
2894
2894
|
type ClipboardProps = CommonProps & {
|
2895
2895
|
content?: string;
|
package/dist/hydrate/index.es.js
CHANGED
@@ -17452,17 +17452,17 @@ const LAYOUT_JUSTIFY = ['flex-start', 'center', 'flex-end', 'space-between'];
|
|
17452
17452
|
/* src/components-flex/slider/Slider.svelte generated by Svelte v3.53.1 */
|
17453
17453
|
|
17454
17454
|
function add_css$f(target) {
|
17455
|
-
append_styles(target, "svelte-
|
17455
|
+
append_styles(target, "svelte-wwv1o", ".slider.svelte-wwv1o{width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y}.slider-container.svelte-wwv1o{width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y}.slider-list.svelte-wwv1o{-webkit-user-drag:none;margin:0;padding:0;list-style:none;will-change:transform}");
|
17456
17456
|
}
|
17457
17457
|
|
17458
17458
|
function get_each_context$1(ctx, list, i) {
|
17459
17459
|
const child_ctx = ctx.slice();
|
17460
|
-
child_ctx[
|
17461
|
-
child_ctx[
|
17460
|
+
child_ctx[36] = list[i];
|
17461
|
+
child_ctx[38] = i;
|
17462
17462
|
return child_ctx;
|
17463
17463
|
}
|
17464
17464
|
|
17465
|
-
// (
|
17465
|
+
// (192:4) {#each indicators ?? [] as indicator, i}
|
17466
17466
|
function create_each_block$1(ctx) {
|
17467
17467
|
let button;
|
17468
17468
|
let i_1;
|
@@ -17472,7 +17472,7 @@ function create_each_block$1(ctx) {
|
|
17472
17472
|
let dispose;
|
17473
17473
|
|
17474
17474
|
function click_handler() {
|
17475
|
-
return /*click_handler*/ ctx[
|
17475
|
+
return /*click_handler*/ ctx[22](/*i*/ ctx[38]);
|
17476
17476
|
}
|
17477
17477
|
|
17478
17478
|
return {
|
@@ -17493,9 +17493,9 @@ function create_each_block$1(ctx) {
|
|
17493
17493
|
},
|
17494
17494
|
h() {
|
17495
17495
|
attr(i_1, "style", i_1_style_value = objToStyle({
|
17496
|
-
.../*indicatorItemStyle*/ ctx[
|
17496
|
+
.../*indicatorItemStyle*/ ctx[4],
|
17497
17497
|
...{
|
17498
|
-
background: /*indicator*/ ctx[
|
17498
|
+
background: /*indicator*/ ctx[36].isActive ? '#555555' : '#AAAAAA'
|
17499
17499
|
}
|
17500
17500
|
}));
|
17501
17501
|
|
@@ -17518,10 +17518,10 @@ function create_each_block$1(ctx) {
|
|
17518
17518
|
p(new_ctx, dirty) {
|
17519
17519
|
ctx = new_ctx;
|
17520
17520
|
|
17521
|
-
if (dirty[0] & /*indicatorItemStyle, indicators*/
|
17522
|
-
.../*indicatorItemStyle*/ ctx[
|
17521
|
+
if (dirty[0] & /*indicatorItemStyle, indicators*/ 144 && i_1_style_value !== (i_1_style_value = objToStyle({
|
17522
|
+
.../*indicatorItemStyle*/ ctx[4],
|
17523
17523
|
...{
|
17524
|
-
background: /*indicator*/ ctx[
|
17524
|
+
background: /*indicator*/ ctx[36].isActive ? '#555555' : '#AAAAAA'
|
17525
17525
|
}
|
17526
17526
|
}))) {
|
17527
17527
|
attr(i_1, "style", i_1_style_value);
|
@@ -17545,9 +17545,9 @@ function create_fragment$j(ctx) {
|
|
17545
17545
|
let current;
|
17546
17546
|
let mounted;
|
17547
17547
|
let dispose;
|
17548
|
-
const default_slot_template = /*#slots*/ ctx[
|
17549
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
17550
|
-
let each_value = /*indicators*/ ctx[
|
17548
|
+
const default_slot_template = /*#slots*/ ctx[19].default;
|
17549
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[18], null);
|
17550
|
+
let each_value = /*indicators*/ ctx[7] ?? [];
|
17551
17551
|
let each_blocks = [];
|
17552
17552
|
|
17553
17553
|
for (let i = 0; i < each_value.length; i += 1) {
|
@@ -17592,12 +17592,12 @@ function create_fragment$j(ctx) {
|
|
17592
17592
|
this.h();
|
17593
17593
|
},
|
17594
17594
|
h() {
|
17595
|
-
attr(ul, "class", "slider-list svelte-
|
17596
|
-
attr(ul, "style", ul_style_value = [/*containerStyle*/ ctx[
|
17597
|
-
attr(div0, "class", "slider-container svelte-
|
17598
|
-
attr(div1, "style", /*indicatorListStyle*/ ctx[
|
17595
|
+
attr(ul, "class", "slider-list svelte-wwv1o");
|
17596
|
+
attr(ul, "style", ul_style_value = [/*containerStyle*/ ctx[6], /*overrideStyle*/ ctx[1]].join(' '));
|
17597
|
+
attr(div0, "class", "slider-container svelte-wwv1o");
|
17598
|
+
attr(div1, "style", /*indicatorListStyle*/ ctx[5]);
|
17599
17599
|
attr(div2, "data-layer-id", /*layerId*/ ctx[0]);
|
17600
|
-
attr(div2, "class", "slider svelte-
|
17600
|
+
attr(div2, "class", "slider svelte-wwv1o");
|
17601
17601
|
},
|
17602
17602
|
m(target, anchor) {
|
17603
17603
|
insert_hydration(target, div2, anchor);
|
@@ -17608,7 +17608,8 @@ function create_fragment$j(ctx) {
|
|
17608
17608
|
default_slot.m(ul, null);
|
17609
17609
|
}
|
17610
17610
|
|
17611
|
-
/*ul_binding*/ ctx[
|
17611
|
+
/*ul_binding*/ ctx[20](ul);
|
17612
|
+
/*div0_binding*/ ctx[21](div0);
|
17612
17613
|
append_hydration(div2, t);
|
17613
17614
|
append_hydration(div2, div1);
|
17614
17615
|
|
@@ -17620,8 +17621,8 @@ function create_fragment$j(ctx) {
|
|
17620
17621
|
|
17621
17622
|
if (!mounted) {
|
17622
17623
|
dispose = [
|
17623
|
-
listen(div0, "mousedown", /*handleMousedown*/ ctx[
|
17624
|
-
listen(div0, "touchstart", /*handleTouchstart*/ ctx[
|
17624
|
+
listen(div0, "mousedown", /*handleMousedown*/ ctx[10]),
|
17625
|
+
listen(div0, "touchstart", /*handleTouchstart*/ ctx[9])
|
17625
17626
|
];
|
17626
17627
|
|
17627
17628
|
mounted = true;
|
@@ -17629,26 +17630,26 @@ function create_fragment$j(ctx) {
|
|
17629
17630
|
},
|
17630
17631
|
p(ctx, dirty) {
|
17631
17632
|
if (default_slot) {
|
17632
|
-
if (default_slot.p && (!current || dirty[0] & /*$$scope*/
|
17633
|
+
if (default_slot.p && (!current || dirty[0] & /*$$scope*/ 262144)) {
|
17633
17634
|
update_slot_base(
|
17634
17635
|
default_slot,
|
17635
17636
|
default_slot_template,
|
17636
17637
|
ctx,
|
17637
|
-
/*$$scope*/ ctx[
|
17638
|
+
/*$$scope*/ ctx[18],
|
17638
17639
|
!current
|
17639
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
17640
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
17640
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[18])
|
17641
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[18], dirty, null),
|
17641
17642
|
null
|
17642
17643
|
);
|
17643
17644
|
}
|
17644
17645
|
}
|
17645
17646
|
|
17646
|
-
if (!current || dirty[0] & /*containerStyle, overrideStyle*/
|
17647
|
+
if (!current || dirty[0] & /*containerStyle, overrideStyle*/ 66 && ul_style_value !== (ul_style_value = [/*containerStyle*/ ctx[6], /*overrideStyle*/ ctx[1]].join(' '))) {
|
17647
17648
|
attr(ul, "style", ul_style_value);
|
17648
17649
|
}
|
17649
17650
|
|
17650
|
-
if (dirty[0] & /*handleClickIndicator, indicatorItemStyle, indicators*/
|
17651
|
-
each_value = /*indicators*/ ctx[
|
17651
|
+
if (dirty[0] & /*handleClickIndicator, indicatorItemStyle, indicators*/ 400) {
|
17652
|
+
each_value = /*indicators*/ ctx[7] ?? [];
|
17652
17653
|
let i;
|
17653
17654
|
|
17654
17655
|
for (i = 0; i < each_value.length; i += 1) {
|
@@ -17670,8 +17671,8 @@ function create_fragment$j(ctx) {
|
|
17670
17671
|
each_blocks.length = each_value.length;
|
17671
17672
|
}
|
17672
17673
|
|
17673
|
-
if (!current || dirty[0] & /*indicatorListStyle*/
|
17674
|
-
attr(div1, "style", /*indicatorListStyle*/ ctx[
|
17674
|
+
if (!current || dirty[0] & /*indicatorListStyle*/ 32) {
|
17675
|
+
attr(div1, "style", /*indicatorListStyle*/ ctx[5]);
|
17675
17676
|
}
|
17676
17677
|
|
17677
17678
|
if (!current || dirty[0] & /*layerId*/ 1) {
|
@@ -17690,7 +17691,8 @@ function create_fragment$j(ctx) {
|
|
17690
17691
|
d(detaching) {
|
17691
17692
|
if (detaching) detach(div2);
|
17692
17693
|
if (default_slot) default_slot.d(detaching);
|
17693
|
-
/*ul_binding*/ ctx[
|
17694
|
+
/*ul_binding*/ ctx[20](null);
|
17695
|
+
/*div0_binding*/ ctx[21](null);
|
17694
17696
|
destroy_each(each_blocks, detaching);
|
17695
17697
|
mounted = false;
|
17696
17698
|
run_all(dispose);
|
@@ -17698,6 +17700,8 @@ function create_fragment$j(ctx) {
|
|
17698
17700
|
};
|
17699
17701
|
}
|
17700
17702
|
|
17703
|
+
const THROTTLE = 16;
|
17704
|
+
|
17701
17705
|
function instance$j($$self, $$props, $$invalidate) {
|
17702
17706
|
let indicators;
|
17703
17707
|
let itemWidthPercentage;
|
@@ -17710,6 +17714,7 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17710
17714
|
let { props } = $$props;
|
17711
17715
|
let { overrideStyle } = $$props;
|
17712
17716
|
useInjectCustomizeCss(props);
|
17717
|
+
let containerElement;
|
17713
17718
|
let slotElement;
|
17714
17719
|
let currentIndex = 0;
|
17715
17720
|
let isDragging = false;
|
@@ -17717,7 +17722,7 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17717
17722
|
let movedX = null;
|
17718
17723
|
let childCount = 0;
|
17719
17724
|
let transformX;
|
17720
|
-
|
17725
|
+
let lastFrame = 0;
|
17721
17726
|
|
17722
17727
|
const computeTransformX = (index, itemCount, movedX, itemWidthPercentage, gap) => {
|
17723
17728
|
if (index === 0) return;
|
@@ -17733,54 +17738,64 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17733
17738
|
}
|
17734
17739
|
|
17735
17740
|
const moved = movedX ? ` + ${-movedX}px` : '';
|
17736
|
-
return `
|
17741
|
+
return `translate3d(calc(-${result}% - ${gap * index}px${moved}), 0, 0)`;
|
17737
17742
|
};
|
17738
17743
|
|
17739
17744
|
const handleClickIndicator = index => {
|
17740
|
-
$$invalidate(
|
17745
|
+
$$invalidate(12, currentIndex = index);
|
17741
17746
|
};
|
17742
17747
|
|
17743
17748
|
const setChildCount = () => {
|
17744
17749
|
const count = slotElement?.children?.length ?? 0;
|
17745
17750
|
|
17746
17751
|
if (count !== childCount) {
|
17747
|
-
$$invalidate(
|
17752
|
+
$$invalidate(14, childCount = slotElement?.children?.length ?? 0);
|
17748
17753
|
}
|
17749
17754
|
};
|
17750
17755
|
|
17751
17756
|
const toNext = () => {
|
17752
|
-
console.log('toNext');
|
17753
|
-
|
17754
17757
|
if (currentIndex < childCount - 1) {
|
17755
|
-
$$invalidate(
|
17758
|
+
$$invalidate(12, currentIndex = currentIndex + 1);
|
17756
17759
|
} else if (props.loop) {
|
17757
|
-
$$invalidate(
|
17760
|
+
$$invalidate(12, currentIndex = 0);
|
17758
17761
|
}
|
17759
17762
|
};
|
17760
17763
|
|
17761
17764
|
const toPrev = () => {
|
17762
17765
|
if (currentIndex > 0) {
|
17763
|
-
$$invalidate(
|
17766
|
+
$$invalidate(12, currentIndex = currentIndex - 1);
|
17764
17767
|
} else if (props.loop) {
|
17765
|
-
$$invalidate(
|
17768
|
+
$$invalidate(12, currentIndex = childCount - 1);
|
17766
17769
|
}
|
17767
17770
|
};
|
17768
17771
|
|
17769
17772
|
const handleClick = e => {
|
17770
|
-
|
17773
|
+
const isParentContainer = el => {
|
17774
|
+
if (!el) return false;
|
17775
|
+
return el === containerElement || isParentContainer(el.parentElement);
|
17776
|
+
};
|
17777
|
+
|
17778
|
+
if (isParentContainer(e.target) && isDragging) {
|
17771
17779
|
e.preventDefault();
|
17772
17780
|
e.stopPropagation();
|
17773
17781
|
}
|
17774
17782
|
};
|
17775
17783
|
|
17776
|
-
const
|
17777
|
-
$$invalidate(
|
17784
|
+
const move = moved => {
|
17785
|
+
$$invalidate(13, movedX = moved);
|
17778
17786
|
|
17779
|
-
if (
|
17787
|
+
if ((moved > 10 || moved < -10) && !isDragging) {
|
17780
17788
|
isDragging = true;
|
17781
17789
|
}
|
17782
17790
|
};
|
17783
17791
|
|
17792
|
+
const handleTouchmove = e => {
|
17793
|
+
const now = performance.now();
|
17794
|
+
if (now - lastFrame < THROTTLE) return;
|
17795
|
+
move(startX - e.touches[0].clientX);
|
17796
|
+
lastFrame = now;
|
17797
|
+
};
|
17798
|
+
|
17784
17799
|
const handleTouchend = () => {
|
17785
17800
|
if (movedX >= 32) {
|
17786
17801
|
toNext();
|
@@ -17788,7 +17803,7 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17788
17803
|
toPrev();
|
17789
17804
|
}
|
17790
17805
|
|
17791
|
-
$$invalidate(
|
17806
|
+
$$invalidate(13, movedX = null);
|
17792
17807
|
document.removeEventListener('touchmove', handleTouchmove);
|
17793
17808
|
document.removeEventListener('touchend', handleTouchend);
|
17794
17809
|
document.removeEventListener('click', handleClick);
|
@@ -17798,16 +17813,12 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17798
17813
|
startX = e.touches[0].clientX;
|
17799
17814
|
isDragging = false;
|
17800
17815
|
document.addEventListener('touchmove', handleTouchmove, { passive: true });
|
17801
|
-
document.addEventListener('touchend', handleTouchend, { passive:
|
17802
|
-
document.addEventListener('click', handleClick
|
17816
|
+
document.addEventListener('touchend', handleTouchend, { passive: false });
|
17817
|
+
document.addEventListener('click', handleClick);
|
17803
17818
|
};
|
17804
17819
|
|
17805
17820
|
const handleMousemove = e => {
|
17806
|
-
|
17807
|
-
|
17808
|
-
if (movedX > 10 || movedX < -10) {
|
17809
|
-
isDragging = true;
|
17810
|
-
}
|
17821
|
+
move(startX - e.clientX);
|
17811
17822
|
};
|
17812
17823
|
|
17813
17824
|
const handleMouseup = e => {
|
@@ -17817,10 +17828,9 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17817
17828
|
toPrev();
|
17818
17829
|
}
|
17819
17830
|
|
17820
|
-
$$invalidate(
|
17831
|
+
$$invalidate(13, movedX = null);
|
17821
17832
|
|
17822
17833
|
if (isDragging) {
|
17823
|
-
// e.preventDefault()
|
17824
17834
|
e.stopPropagation();
|
17825
17835
|
}
|
17826
17836
|
|
@@ -17851,7 +17861,6 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17851
17861
|
}
|
17852
17862
|
|
17853
17863
|
return () => {
|
17854
|
-
// clearInterval(childCountTimer)
|
17855
17864
|
if (autoSlideTimer) clearInterval(autoSlideTimer);
|
17856
17865
|
};
|
17857
17866
|
});
|
@@ -17863,36 +17872,43 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17863
17872
|
});
|
17864
17873
|
}
|
17865
17874
|
|
17875
|
+
function div0_binding($$value) {
|
17876
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
17877
|
+
containerElement = $$value;
|
17878
|
+
$$invalidate(3, containerElement);
|
17879
|
+
});
|
17880
|
+
}
|
17881
|
+
|
17866
17882
|
const click_handler = i => handleClickIndicator(i);
|
17867
17883
|
|
17868
17884
|
$$self.$$set = $$props => {
|
17869
17885
|
if ('layerId' in $$props) $$invalidate(0, layerId = $$props.layerId);
|
17870
|
-
if ('props' in $$props) $$invalidate(
|
17886
|
+
if ('props' in $$props) $$invalidate(11, props = $$props.props);
|
17871
17887
|
if ('overrideStyle' in $$props) $$invalidate(1, overrideStyle = $$props.overrideStyle);
|
17872
|
-
if ('$$scope' in $$props) $$invalidate(
|
17888
|
+
if ('$$scope' in $$props) $$invalidate(18, $$scope = $$props.$$scope);
|
17873
17889
|
};
|
17874
17890
|
|
17875
17891
|
$$self.$$.update = () => {
|
17876
17892
|
if ($$self.$$.dirty[0] & /*slotElement*/ 4) {
|
17877
17893
|
if (slotElement) {
|
17878
|
-
$$invalidate(
|
17894
|
+
$$invalidate(14, childCount = slotElement.children.length);
|
17879
17895
|
}
|
17880
17896
|
}
|
17881
17897
|
|
17882
|
-
if ($$self.$$.dirty[0] & /*childCount, currentIndex*/
|
17883
|
-
$$invalidate(
|
17898
|
+
if ($$self.$$.dirty[0] & /*childCount, currentIndex*/ 20480) {
|
17899
|
+
$$invalidate(7, indicators = [...Array(childCount)].map((_, i) => ({ index: i, isActive: i === currentIndex })));
|
17884
17900
|
}
|
17885
17901
|
|
17886
|
-
if ($$self.$$.dirty[0] & /*props*/
|
17887
|
-
$$invalidate(
|
17902
|
+
if ($$self.$$.dirty[0] & /*props*/ 2048) {
|
17903
|
+
$$invalidate(17, itemWidthPercentage = props.itemWidthPercentage ?? 100);
|
17888
17904
|
}
|
17889
17905
|
|
17890
|
-
if ($$self.$$.dirty[0] & /*currentIndex, childCount, movedX, itemWidthPercentage, props*/
|
17891
|
-
$$invalidate(
|
17906
|
+
if ($$self.$$.dirty[0] & /*currentIndex, childCount, movedX, itemWidthPercentage, props*/ 161792) {
|
17907
|
+
$$invalidate(15, transformX = computeTransformX(currentIndex, childCount, movedX, itemWidthPercentage, props.gap ?? 0));
|
17892
17908
|
}
|
17893
17909
|
|
17894
|
-
if ($$self.$$.dirty[0] & /*props, itemWidthPercentage, movedX*/
|
17895
|
-
$$invalidate(
|
17910
|
+
if ($$self.$$.dirty[0] & /*props, itemWidthPercentage, movedX*/ 141312) {
|
17911
|
+
$$invalidate(16, baseContainerStyle = {
|
17896
17912
|
display: 'grid',
|
17897
17913
|
// marginInline: `-${props.gap}px`,
|
17898
17914
|
gap: `${props.gap}px`,
|
@@ -17905,34 +17921,36 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17905
17921
|
});
|
17906
17922
|
}
|
17907
17923
|
|
17908
|
-
if ($$self.$$.dirty[0] & /*baseContainerStyle, transformX*/
|
17909
|
-
$$invalidate(
|
17924
|
+
if ($$self.$$.dirty[0] & /*baseContainerStyle, transformX*/ 98304) {
|
17925
|
+
$$invalidate(6, containerStyle = objToStyle({
|
17910
17926
|
...baseContainerStyle,
|
17911
17927
|
transform: transformX
|
17912
17928
|
}));
|
17913
17929
|
}
|
17914
17930
|
};
|
17915
17931
|
|
17916
|
-
$$invalidate(
|
17932
|
+
$$invalidate(5, indicatorListStyle = objToStyle({
|
17917
17933
|
display: 'flex',
|
17918
17934
|
justifyContent: 'center',
|
17919
17935
|
gap: '4px',
|
17920
17936
|
marginTop: '12px'
|
17921
17937
|
}));
|
17922
17938
|
|
17923
|
-
$$invalidate(
|
17939
|
+
$$invalidate(4, indicatorItemStyle = {
|
17924
17940
|
width: '8px',
|
17925
17941
|
height: '8px',
|
17926
17942
|
borderRadius: '100%',
|
17927
17943
|
display: 'block',
|
17928
17944
|
background: '#AAAAAA',
|
17929
|
-
border: 0
|
17945
|
+
border: 0,
|
17946
|
+
cursor: 'pointer'
|
17930
17947
|
});
|
17931
17948
|
|
17932
17949
|
return [
|
17933
17950
|
layerId,
|
17934
17951
|
overrideStyle,
|
17935
17952
|
slotElement,
|
17953
|
+
containerElement,
|
17936
17954
|
indicatorItemStyle,
|
17937
17955
|
indicatorListStyle,
|
17938
17956
|
containerStyle,
|
@@ -17950,6 +17968,7 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17950
17968
|
$$scope,
|
17951
17969
|
slots,
|
17952
17970
|
ul_binding,
|
17971
|
+
div0_binding,
|
17953
17972
|
click_handler
|
17954
17973
|
];
|
17955
17974
|
}
|
@@ -17957,7 +17976,7 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17957
17976
|
class Slider extends SvelteComponent {
|
17958
17977
|
constructor(options) {
|
17959
17978
|
super();
|
17960
|
-
init(this, options, instance$j, create_fragment$j, safe_not_equal, { layerId: 0, props:
|
17979
|
+
init(this, options, instance$j, create_fragment$j, safe_not_equal, { layerId: 0, props: 11, overrideStyle: 1 }, add_css$f, [-1, -1]);
|
17961
17980
|
}
|
17962
17981
|
}
|
17963
17982
|
|
@@ -20887,10 +20906,10 @@ function formatTimeDiff(ms) {
|
|
20887
20906
|
const diffSec = Math.floor(ms / 1000) % 60;
|
20888
20907
|
|
20889
20908
|
return {
|
20890
|
-
day: diffDay
|
20891
|
-
hour: diffHour
|
20892
|
-
min: diffMin
|
20893
|
-
sec: diffSec
|
20909
|
+
day: diffDay,
|
20910
|
+
hour: diffHour,
|
20911
|
+
min: diffMin,
|
20912
|
+
sec: diffSec
|
20894
20913
|
};
|
20895
20914
|
}
|
20896
20915
|
|
@@ -21110,13 +21129,13 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
21110
21129
|
const { day, hour, min, sec } = $countdownStore;
|
21111
21130
|
|
21112
21131
|
switch (props.type) {
|
21113
|
-
case
|
21132
|
+
case 'day':
|
21114
21133
|
return day?.toString().padStart(2, '0') ?? '';
|
21115
|
-
case
|
21134
|
+
case 'hour':
|
21116
21135
|
return hour?.toString().padStart(2, '0') ?? '';
|
21117
|
-
case
|
21136
|
+
case 'minute':
|
21118
21137
|
return min?.toString().padStart(2, '0') ?? '';
|
21119
|
-
case
|
21138
|
+
case 'second':
|
21120
21139
|
return sec?.toString().padStart(2, '0') ?? '';
|
21121
21140
|
default:
|
21122
21141
|
return '';
|
package/dist/index.es.d.ts
CHANGED
@@ -2886,10 +2886,10 @@ type CountDownValueProps = LayerTextProps & {
|
|
2886
2886
|
type: CountDownValueType;
|
2887
2887
|
};
|
2888
2888
|
type CountDownValues = {
|
2889
|
-
day:
|
2890
|
-
hour:
|
2891
|
-
min:
|
2892
|
-
sec:
|
2889
|
+
day: number;
|
2890
|
+
hour: number;
|
2891
|
+
min: number;
|
2892
|
+
sec: number;
|
2893
2893
|
};
|
2894
2894
|
type ClipboardProps = CommonProps & {
|
2895
2895
|
content?: string;
|