@plaidev/karte-action-sdk 1.1.270-29364900.6ab45349e → 1.1.270-29365477.b153dfd00
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.js +10 -27
- package/dist/index.es.js +10 -27
- package/dist/svelte5/hydrate/index.es.js +4 -21
- package/dist/svelte5/index.es.js +4 -21
- package/dist/svelte5/index.front2.es.js +4 -21
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
|
@@ -16709,12 +16709,12 @@ const LAYOUT_JUSTIFY = [
|
|
|
16709
16709
|
//#endregion
|
|
16710
16710
|
//#region src/components-flex/slider/Slider.svelte
|
|
16711
16711
|
function add_css$20(target) {
|
|
16712
|
-
append_styles(target, "svelte-
|
|
16712
|
+
append_styles(target, "svelte-i5qqzj", ".slider.svelte-i5qqzj{width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;margin:0;padding:0}.slider-container.svelte-i5qqzj{width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y}.slider-list.svelte-i5qqzj{-webkit-user-drag:none;margin:0;padding:0;list-style:none;will-change:transform}");
|
|
16713
16713
|
}
|
|
16714
16714
|
function get_each_context$4(ctx, list, i) {
|
|
16715
16715
|
const child_ctx = ctx.slice();
|
|
16716
|
-
child_ctx[
|
|
16717
|
-
child_ctx[
|
|
16716
|
+
child_ctx[37] = list[i];
|
|
16717
|
+
child_ctx[39] = i;
|
|
16718
16718
|
return child_ctx;
|
|
16719
16719
|
}
|
|
16720
16720
|
function create_if_block$12(ctx) {
|
|
@@ -16774,7 +16774,7 @@ function create_each_block$4(ctx) {
|
|
|
16774
16774
|
let mounted;
|
|
16775
16775
|
let dispose;
|
|
16776
16776
|
function click_handler() {
|
|
16777
|
-
return ctx[23](ctx[
|
|
16777
|
+
return ctx[23](ctx[39]);
|
|
16778
16778
|
}
|
|
16779
16779
|
return {
|
|
16780
16780
|
c() {
|
|
@@ -16795,7 +16795,7 @@ function create_each_block$4(ctx) {
|
|
|
16795
16795
|
h() {
|
|
16796
16796
|
attr(i_1, "style", i_1_style_value = objToStyle({
|
|
16797
16797
|
...ctx[5],
|
|
16798
|
-
background: ctx[
|
|
16798
|
+
background: ctx[37].isActive ? "#555555" : "#AAAAAA"
|
|
16799
16799
|
}));
|
|
16800
16800
|
attr(button, "style", objToStyle({
|
|
16801
16801
|
padding: "4px",
|
|
@@ -16816,7 +16816,7 @@ function create_each_block$4(ctx) {
|
|
|
16816
16816
|
ctx = new_ctx;
|
|
16817
16817
|
if (dirty[0] & 288 && i_1_style_value !== (i_1_style_value = objToStyle({
|
|
16818
16818
|
...ctx[5],
|
|
16819
|
-
background: ctx[
|
|
16819
|
+
background: ctx[37].isActive ? "#555555" : "#AAAAAA"
|
|
16820
16820
|
}))) attr(i_1, "style", i_1_style_value);
|
|
16821
16821
|
},
|
|
16822
16822
|
d(detaching) {
|
|
@@ -16873,11 +16873,11 @@ function create_fragment$29(ctx) {
|
|
|
16873
16873
|
this.h();
|
|
16874
16874
|
},
|
|
16875
16875
|
h() {
|
|
16876
|
-
attr(ul, "class", "slider-list svelte-
|
|
16876
|
+
attr(ul, "class", "slider-list svelte-i5qqzj");
|
|
16877
16877
|
attr(ul, "style", ul_style_value = [ctx[7], ctx[2]].join(" "));
|
|
16878
|
-
attr(div0, "class", "slider-container svelte-
|
|
16878
|
+
attr(div0, "class", "slider-container svelte-i5qqzj");
|
|
16879
16879
|
attr(div1, "id", div1_id_value = ctx[1].id);
|
|
16880
|
-
attr(div1, "class", div1_class_value = null_to_empty(["slider", ...ctx[1].classNames ?? []].join(" ")) + " svelte-
|
|
16880
|
+
attr(div1, "class", div1_class_value = null_to_empty(["slider", ...ctx[1].classNames ?? []].join(" ")) + " svelte-i5qqzj");
|
|
16881
16881
|
attr(div1, "data-layer-id", ctx[0]);
|
|
16882
16882
|
},
|
|
16883
16883
|
m(target, anchor) {
|
|
@@ -16911,7 +16911,7 @@ function create_fragment$29(ctx) {
|
|
|
16911
16911
|
if_block = null;
|
|
16912
16912
|
}
|
|
16913
16913
|
if (!current || dirty[0] & 2 && div1_id_value !== (div1_id_value = ctx$1[1].id)) attr(div1, "id", div1_id_value);
|
|
16914
|
-
if (!current || dirty[0] & 2 && div1_class_value !== (div1_class_value = null_to_empty(["slider", ...ctx$1[1].classNames ?? []].join(" ")) + " svelte-
|
|
16914
|
+
if (!current || dirty[0] & 2 && div1_class_value !== (div1_class_value = null_to_empty(["slider", ...ctx$1[1].classNames ?? []].join(" ")) + " svelte-i5qqzj")) attr(div1, "class", div1_class_value);
|
|
16915
16915
|
if (!current || dirty[0] & 1) attr(div1, "data-layer-id", ctx$1[0]);
|
|
16916
16916
|
},
|
|
16917
16917
|
i(local) {
|
|
@@ -16988,20 +16988,9 @@ function instance$29($$self, $$props, $$invalidate) {
|
|
|
16988
16988
|
e.stopPropagation();
|
|
16989
16989
|
}
|
|
16990
16990
|
};
|
|
16991
|
-
const disableChildrenClick = () => {
|
|
16992
|
-
if (slotElement) Array.from(slotElement.children ?? []).forEach((child) => {
|
|
16993
|
-
child.style.pointerEvents = "none";
|
|
16994
|
-
});
|
|
16995
|
-
};
|
|
16996
|
-
const enableChildrenClick = () => {
|
|
16997
|
-
if (slotElement) Array.from(slotElement.children ?? []).forEach((child) => {
|
|
16998
|
-
child.style.pointerEvents = void 0;
|
|
16999
|
-
});
|
|
17000
|
-
};
|
|
17001
16991
|
const move = (moved) => {
|
|
17002
16992
|
$$invalidate(12, movedX = moved);
|
|
17003
16993
|
if ((moved > 10 || moved < -10) && !isDragging) isDragging = true;
|
|
17004
|
-
disableChildrenClick();
|
|
17005
16994
|
};
|
|
17006
16995
|
const handleTouchmove = (e) => {
|
|
17007
16996
|
const now = performance.now();
|
|
@@ -17019,9 +17008,6 @@ function instance$29($$self, $$props, $$invalidate) {
|
|
|
17019
17008
|
document.removeEventListener("touchmove", handleTouchmove);
|
|
17020
17009
|
document.removeEventListener("touchend", handleTouchend);
|
|
17021
17010
|
document.removeEventListener("click", handleClick);
|
|
17022
|
-
setTimeout(() => {
|
|
17023
|
-
enableChildrenClick();
|
|
17024
|
-
}, 100);
|
|
17025
17011
|
};
|
|
17026
17012
|
const handleTouchstart = (e) => {
|
|
17027
17013
|
startX = e.touches[0].clientX;
|
|
@@ -17044,9 +17030,6 @@ function instance$29($$self, $$props, $$invalidate) {
|
|
|
17044
17030
|
document.removeEventListener("mousemove", handleMousemove);
|
|
17045
17031
|
document.removeEventListener("mouseup", handleMouseup);
|
|
17046
17032
|
document.removeEventListener("click", handleClick);
|
|
17047
|
-
setTimeout(() => {
|
|
17048
|
-
enableChildrenClick();
|
|
17049
|
-
}, 100);
|
|
17050
17033
|
};
|
|
17051
17034
|
const handleMousedown = (e) => {
|
|
17052
17035
|
startX = e.clientX;
|
package/dist/index.es.js
CHANGED
|
@@ -14962,12 +14962,12 @@ const LAYOUT_JUSTIFY = [
|
|
|
14962
14962
|
//#endregion
|
|
14963
14963
|
//#region src/components-flex/slider/Slider.svelte
|
|
14964
14964
|
function add_css$20(target) {
|
|
14965
|
-
append_styles(target, "svelte-
|
|
14965
|
+
append_styles(target, "svelte-i5qqzj", ".slider.svelte-i5qqzj{width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;margin:0;padding:0}.slider-container.svelte-i5qqzj{width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y}.slider-list.svelte-i5qqzj{-webkit-user-drag:none;margin:0;padding:0;list-style:none;will-change:transform}");
|
|
14966
14966
|
}
|
|
14967
14967
|
function get_each_context$4(ctx, list, i) {
|
|
14968
14968
|
const child_ctx = ctx.slice();
|
|
14969
|
-
child_ctx[
|
|
14970
|
-
child_ctx[
|
|
14969
|
+
child_ctx[37] = list[i];
|
|
14970
|
+
child_ctx[39] = i;
|
|
14971
14971
|
return child_ctx;
|
|
14972
14972
|
}
|
|
14973
14973
|
function create_if_block$12(ctx) {
|
|
@@ -15017,7 +15017,7 @@ function create_each_block$4(ctx) {
|
|
|
15017
15017
|
let mounted;
|
|
15018
15018
|
let dispose;
|
|
15019
15019
|
function click_handler() {
|
|
15020
|
-
return ctx[23](ctx[
|
|
15020
|
+
return ctx[23](ctx[39]);
|
|
15021
15021
|
}
|
|
15022
15022
|
return {
|
|
15023
15023
|
c() {
|
|
@@ -15026,7 +15026,7 @@ function create_each_block$4(ctx) {
|
|
|
15026
15026
|
t = space();
|
|
15027
15027
|
attr(i_1, "style", i_1_style_value = objToStyle({
|
|
15028
15028
|
...ctx[5],
|
|
15029
|
-
background: ctx[
|
|
15029
|
+
background: ctx[37].isActive ? "#555555" : "#AAAAAA"
|
|
15030
15030
|
}));
|
|
15031
15031
|
attr(button, "style", objToStyle({
|
|
15032
15032
|
padding: "4px",
|
|
@@ -15047,7 +15047,7 @@ function create_each_block$4(ctx) {
|
|
|
15047
15047
|
ctx = new_ctx;
|
|
15048
15048
|
if (dirty[0] & 288 && i_1_style_value !== (i_1_style_value = objToStyle({
|
|
15049
15049
|
...ctx[5],
|
|
15050
|
-
background: ctx[
|
|
15050
|
+
background: ctx[37].isActive ? "#555555" : "#AAAAAA"
|
|
15051
15051
|
}))) attr(i_1, "style", i_1_style_value);
|
|
15052
15052
|
},
|
|
15053
15053
|
d(detaching) {
|
|
@@ -15079,11 +15079,11 @@ function create_fragment$29(ctx) {
|
|
|
15079
15079
|
if (default_slot) default_slot.c();
|
|
15080
15080
|
t = space();
|
|
15081
15081
|
if (if_block) if_block.c();
|
|
15082
|
-
attr(ul, "class", "slider-list svelte-
|
|
15082
|
+
attr(ul, "class", "slider-list svelte-i5qqzj");
|
|
15083
15083
|
attr(ul, "style", ul_style_value = [ctx[7], ctx[2]].join(" "));
|
|
15084
|
-
attr(div0, "class", "slider-container svelte-
|
|
15084
|
+
attr(div0, "class", "slider-container svelte-i5qqzj");
|
|
15085
15085
|
attr(div1, "id", div1_id_value = ctx[1].id);
|
|
15086
|
-
attr(div1, "class", div1_class_value = null_to_empty(["slider", ...ctx[1].classNames ?? []].join(" ")) + " svelte-
|
|
15086
|
+
attr(div1, "class", div1_class_value = null_to_empty(["slider", ...ctx[1].classNames ?? []].join(" ")) + " svelte-i5qqzj");
|
|
15087
15087
|
attr(div1, "data-layer-id", ctx[0]);
|
|
15088
15088
|
},
|
|
15089
15089
|
m(target, anchor) {
|
|
@@ -15117,7 +15117,7 @@ function create_fragment$29(ctx) {
|
|
|
15117
15117
|
if_block = null;
|
|
15118
15118
|
}
|
|
15119
15119
|
if (!current || dirty[0] & 2 && div1_id_value !== (div1_id_value = ctx$1[1].id)) attr(div1, "id", div1_id_value);
|
|
15120
|
-
if (!current || dirty[0] & 2 && div1_class_value !== (div1_class_value = null_to_empty(["slider", ...ctx$1[1].classNames ?? []].join(" ")) + " svelte-
|
|
15120
|
+
if (!current || dirty[0] & 2 && div1_class_value !== (div1_class_value = null_to_empty(["slider", ...ctx$1[1].classNames ?? []].join(" ")) + " svelte-i5qqzj")) attr(div1, "class", div1_class_value);
|
|
15121
15121
|
if (!current || dirty[0] & 1) attr(div1, "data-layer-id", ctx$1[0]);
|
|
15122
15122
|
},
|
|
15123
15123
|
i(local) {
|
|
@@ -15194,20 +15194,9 @@ function instance$29($$self, $$props, $$invalidate) {
|
|
|
15194
15194
|
e.stopPropagation();
|
|
15195
15195
|
}
|
|
15196
15196
|
};
|
|
15197
|
-
const disableChildrenClick = () => {
|
|
15198
|
-
if (slotElement) Array.from(slotElement.children ?? []).forEach((child) => {
|
|
15199
|
-
child.style.pointerEvents = "none";
|
|
15200
|
-
});
|
|
15201
|
-
};
|
|
15202
|
-
const enableChildrenClick = () => {
|
|
15203
|
-
if (slotElement) Array.from(slotElement.children ?? []).forEach((child) => {
|
|
15204
|
-
child.style.pointerEvents = void 0;
|
|
15205
|
-
});
|
|
15206
|
-
};
|
|
15207
15197
|
const move = (moved) => {
|
|
15208
15198
|
$$invalidate(12, movedX = moved);
|
|
15209
15199
|
if ((moved > 10 || moved < -10) && !isDragging) isDragging = true;
|
|
15210
|
-
disableChildrenClick();
|
|
15211
15200
|
};
|
|
15212
15201
|
const handleTouchmove = (e) => {
|
|
15213
15202
|
const now = performance.now();
|
|
@@ -15225,9 +15214,6 @@ function instance$29($$self, $$props, $$invalidate) {
|
|
|
15225
15214
|
document.removeEventListener("touchmove", handleTouchmove);
|
|
15226
15215
|
document.removeEventListener("touchend", handleTouchend);
|
|
15227
15216
|
document.removeEventListener("click", handleClick);
|
|
15228
|
-
setTimeout(() => {
|
|
15229
|
-
enableChildrenClick();
|
|
15230
|
-
}, 100);
|
|
15231
15217
|
};
|
|
15232
15218
|
const handleTouchstart = (e) => {
|
|
15233
15219
|
startX = e.touches[0].clientX;
|
|
@@ -15250,9 +15236,6 @@ function instance$29($$self, $$props, $$invalidate) {
|
|
|
15250
15236
|
document.removeEventListener("mousemove", handleMousemove);
|
|
15251
15237
|
document.removeEventListener("mouseup", handleMouseup);
|
|
15252
15238
|
document.removeEventListener("click", handleClick);
|
|
15253
|
-
setTimeout(() => {
|
|
15254
|
-
enableChildrenClick();
|
|
15255
|
-
}, 100);
|
|
15256
15239
|
};
|
|
15257
15240
|
const handleMousedown = (e) => {
|
|
15258
15241
|
startX = e.clientX;
|
|
@@ -6134,10 +6134,10 @@ const LAYOUT_JUSTIFY = [
|
|
|
6134
6134
|
//#region src/components-flex/slider/Slider.svelte
|
|
6135
6135
|
var root_2$6 = $.template(`<button><i></i></button>`);
|
|
6136
6136
|
var root_1$9 = $.template(`<div></div>`);
|
|
6137
|
-
var root$17 = $.template(`<div><div class="slider-container svelte-
|
|
6137
|
+
var root$17 = $.template(`<div><div class="slider-container svelte-i5qqzj"><ul class="slider-list svelte-i5qqzj"><!></ul></div> <!></div>`);
|
|
6138
6138
|
const $$css$21 = {
|
|
6139
|
-
hash: "svelte-
|
|
6140
|
-
code: ".slider.svelte-
|
|
6139
|
+
hash: "svelte-i5qqzj",
|
|
6140
|
+
code: ".slider.svelte-i5qqzj {width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;margin:0;padding:0;}.slider-container.svelte-i5qqzj {width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;}.slider-list.svelte-i5qqzj {-webkit-user-drag:none;margin:0;padding:0;list-style:none;will-change:transform;}"
|
|
6141
6141
|
};
|
|
6142
6142
|
function Slider($$anchor, $$props) {
|
|
6143
6143
|
$.push($$props, false);
|
|
@@ -6194,20 +6194,9 @@ function Slider($$anchor, $$props) {
|
|
|
6194
6194
|
e.stopPropagation();
|
|
6195
6195
|
}
|
|
6196
6196
|
};
|
|
6197
|
-
const disableChildrenClick = () => {
|
|
6198
|
-
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6199
|
-
child.style.pointerEvents = "none";
|
|
6200
|
-
});
|
|
6201
|
-
};
|
|
6202
|
-
const enableChildrenClick = () => {
|
|
6203
|
-
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6204
|
-
child.style.pointerEvents = void 0;
|
|
6205
|
-
});
|
|
6206
|
-
};
|
|
6207
6197
|
const move = (moved) => {
|
|
6208
6198
|
$.set(movedX, moved);
|
|
6209
6199
|
if ((moved > 10 || moved < -10) && !isDragging) isDragging = true;
|
|
6210
|
-
disableChildrenClick();
|
|
6211
6200
|
};
|
|
6212
6201
|
const handleTouchmove = (e) => {
|
|
6213
6202
|
const now = performance.now();
|
|
@@ -6225,9 +6214,6 @@ function Slider($$anchor, $$props) {
|
|
|
6225
6214
|
document.removeEventListener("touchmove", handleTouchmove);
|
|
6226
6215
|
document.removeEventListener("touchend", handleTouchend);
|
|
6227
6216
|
document.removeEventListener("click", handleClick);
|
|
6228
|
-
setTimeout(() => {
|
|
6229
|
-
enableChildrenClick();
|
|
6230
|
-
}, 100);
|
|
6231
6217
|
};
|
|
6232
6218
|
const handleTouchstart = (e) => {
|
|
6233
6219
|
startX = e.touches[0].clientX;
|
|
@@ -6250,9 +6236,6 @@ function Slider($$anchor, $$props) {
|
|
|
6250
6236
|
document.removeEventListener("mousemove", handleMousemove);
|
|
6251
6237
|
document.removeEventListener("mouseup", handleMouseup);
|
|
6252
6238
|
document.removeEventListener("click", handleClick);
|
|
6253
|
-
setTimeout(() => {
|
|
6254
|
-
enableChildrenClick();
|
|
6255
|
-
}, 100);
|
|
6256
6239
|
};
|
|
6257
6240
|
const handleMousedown = (e) => {
|
|
6258
6241
|
startX = e.clientX;
|
|
@@ -6382,7 +6365,7 @@ function Slider($$anchor, $$props) {
|
|
|
6382
6365
|
$.reset(div);
|
|
6383
6366
|
$.template_effect(($0, $1) => {
|
|
6384
6367
|
$.set_attribute(div, "id", props().id);
|
|
6385
|
-
$.set_class(div, 1, $0, "svelte-
|
|
6368
|
+
$.set_class(div, 1, $0, "svelte-i5qqzj");
|
|
6386
6369
|
$.set_attribute(div, "data-layer-id", layerId());
|
|
6387
6370
|
$.set_style(ul, $1);
|
|
6388
6371
|
}, [() => $.clsx(["slider", ...props().classNames ?? []].join(" ")), () => [$.get(containerStyle), overrideStyle()].join(" ")], $.derived_safe_equal);
|
package/dist/svelte5/index.es.js
CHANGED
|
@@ -6103,10 +6103,10 @@ const LAYOUT_JUSTIFY = [
|
|
|
6103
6103
|
//#region src/components-flex/slider/Slider.svelte
|
|
6104
6104
|
var root_2$6 = $.template(`<button><i></i></button>`);
|
|
6105
6105
|
var root_1$9 = $.template(`<div></div>`);
|
|
6106
|
-
var root$17 = $.template(`<div><div class="slider-container svelte-
|
|
6106
|
+
var root$17 = $.template(`<div><div class="slider-container svelte-i5qqzj"><ul class="slider-list svelte-i5qqzj"><!></ul></div> <!></div>`);
|
|
6107
6107
|
const $$css$21 = {
|
|
6108
|
-
hash: "svelte-
|
|
6109
|
-
code: ".slider.svelte-
|
|
6108
|
+
hash: "svelte-i5qqzj",
|
|
6109
|
+
code: ".slider.svelte-i5qqzj {width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;margin:0;padding:0;}.slider-container.svelte-i5qqzj {width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;}.slider-list.svelte-i5qqzj {-webkit-user-drag:none;margin:0;padding:0;list-style:none;will-change:transform;}"
|
|
6110
6110
|
};
|
|
6111
6111
|
function Slider($$anchor, $$props) {
|
|
6112
6112
|
$.push($$props, false);
|
|
@@ -6163,20 +6163,9 @@ function Slider($$anchor, $$props) {
|
|
|
6163
6163
|
e.stopPropagation();
|
|
6164
6164
|
}
|
|
6165
6165
|
};
|
|
6166
|
-
const disableChildrenClick = () => {
|
|
6167
|
-
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6168
|
-
child.style.pointerEvents = "none";
|
|
6169
|
-
});
|
|
6170
|
-
};
|
|
6171
|
-
const enableChildrenClick = () => {
|
|
6172
|
-
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6173
|
-
child.style.pointerEvents = void 0;
|
|
6174
|
-
});
|
|
6175
|
-
};
|
|
6176
6166
|
const move = (moved) => {
|
|
6177
6167
|
$.set(movedX, moved);
|
|
6178
6168
|
if ((moved > 10 || moved < -10) && !isDragging) isDragging = true;
|
|
6179
|
-
disableChildrenClick();
|
|
6180
6169
|
};
|
|
6181
6170
|
const handleTouchmove = (e) => {
|
|
6182
6171
|
const now = performance.now();
|
|
@@ -6194,9 +6183,6 @@ function Slider($$anchor, $$props) {
|
|
|
6194
6183
|
document.removeEventListener("touchmove", handleTouchmove);
|
|
6195
6184
|
document.removeEventListener("touchend", handleTouchend);
|
|
6196
6185
|
document.removeEventListener("click", handleClick);
|
|
6197
|
-
setTimeout(() => {
|
|
6198
|
-
enableChildrenClick();
|
|
6199
|
-
}, 100);
|
|
6200
6186
|
};
|
|
6201
6187
|
const handleTouchstart = (e) => {
|
|
6202
6188
|
startX = e.touches[0].clientX;
|
|
@@ -6219,9 +6205,6 @@ function Slider($$anchor, $$props) {
|
|
|
6219
6205
|
document.removeEventListener("mousemove", handleMousemove);
|
|
6220
6206
|
document.removeEventListener("mouseup", handleMouseup);
|
|
6221
6207
|
document.removeEventListener("click", handleClick);
|
|
6222
|
-
setTimeout(() => {
|
|
6223
|
-
enableChildrenClick();
|
|
6224
|
-
}, 100);
|
|
6225
6208
|
};
|
|
6226
6209
|
const handleMousedown = (e) => {
|
|
6227
6210
|
startX = e.clientX;
|
|
@@ -6351,7 +6334,7 @@ function Slider($$anchor, $$props) {
|
|
|
6351
6334
|
$.reset(div);
|
|
6352
6335
|
$.template_effect(($0, $1) => {
|
|
6353
6336
|
$.set_attribute(div, "id", props().id);
|
|
6354
|
-
$.set_class(div, 1, $0, "svelte-
|
|
6337
|
+
$.set_class(div, 1, $0, "svelte-i5qqzj");
|
|
6355
6338
|
$.set_attribute(div, "data-layer-id", layerId());
|
|
6356
6339
|
$.set_style(ul, $1);
|
|
6357
6340
|
}, [() => $.clsx(["slider", ...props().classNames ?? []].join(" ")), () => [$.get(containerStyle), overrideStyle()].join(" ")], $.derived_safe_equal);
|
|
@@ -6103,10 +6103,10 @@ const LAYOUT_JUSTIFY = [
|
|
|
6103
6103
|
//#region src/components-flex/slider/Slider.svelte
|
|
6104
6104
|
var root_2$6 = $.template(`<button><i></i></button>`);
|
|
6105
6105
|
var root_1$9 = $.template(`<div></div>`);
|
|
6106
|
-
var root$17 = $.template(`<div><div class="slider-container svelte-
|
|
6106
|
+
var root$17 = $.template(`<div><div class="slider-container svelte-i5qqzj"><ul class="slider-list svelte-i5qqzj"><!></ul></div> <!></div>`);
|
|
6107
6107
|
const $$css$21 = {
|
|
6108
|
-
hash: "svelte-
|
|
6109
|
-
code: ".slider.svelte-
|
|
6108
|
+
hash: "svelte-i5qqzj",
|
|
6109
|
+
code: ".slider.svelte-i5qqzj {width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;margin:0;padding:0;}.slider-container.svelte-i5qqzj {width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;}.slider-list.svelte-i5qqzj {-webkit-user-drag:none;margin:0;padding:0;list-style:none;will-change:transform;}"
|
|
6110
6110
|
};
|
|
6111
6111
|
function Slider($$anchor, $$props) {
|
|
6112
6112
|
$.push($$props, false);
|
|
@@ -6163,20 +6163,9 @@ function Slider($$anchor, $$props) {
|
|
|
6163
6163
|
e.stopPropagation();
|
|
6164
6164
|
}
|
|
6165
6165
|
};
|
|
6166
|
-
const disableChildrenClick = () => {
|
|
6167
|
-
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6168
|
-
child.style.pointerEvents = "none";
|
|
6169
|
-
});
|
|
6170
|
-
};
|
|
6171
|
-
const enableChildrenClick = () => {
|
|
6172
|
-
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6173
|
-
child.style.pointerEvents = void 0;
|
|
6174
|
-
});
|
|
6175
|
-
};
|
|
6176
6166
|
const move = (moved) => {
|
|
6177
6167
|
$.set(movedX, moved);
|
|
6178
6168
|
if ((moved > 10 || moved < -10) && !isDragging) isDragging = true;
|
|
6179
|
-
disableChildrenClick();
|
|
6180
6169
|
};
|
|
6181
6170
|
const handleTouchmove = (e) => {
|
|
6182
6171
|
const now = performance.now();
|
|
@@ -6194,9 +6183,6 @@ function Slider($$anchor, $$props) {
|
|
|
6194
6183
|
document.removeEventListener("touchmove", handleTouchmove);
|
|
6195
6184
|
document.removeEventListener("touchend", handleTouchend);
|
|
6196
6185
|
document.removeEventListener("click", handleClick);
|
|
6197
|
-
setTimeout(() => {
|
|
6198
|
-
enableChildrenClick();
|
|
6199
|
-
}, 100);
|
|
6200
6186
|
};
|
|
6201
6187
|
const handleTouchstart = (e) => {
|
|
6202
6188
|
startX = e.touches[0].clientX;
|
|
@@ -6219,9 +6205,6 @@ function Slider($$anchor, $$props) {
|
|
|
6219
6205
|
document.removeEventListener("mousemove", handleMousemove);
|
|
6220
6206
|
document.removeEventListener("mouseup", handleMouseup);
|
|
6221
6207
|
document.removeEventListener("click", handleClick);
|
|
6222
|
-
setTimeout(() => {
|
|
6223
|
-
enableChildrenClick();
|
|
6224
|
-
}, 100);
|
|
6225
6208
|
};
|
|
6226
6209
|
const handleMousedown = (e) => {
|
|
6227
6210
|
startX = e.clientX;
|
|
@@ -6351,7 +6334,7 @@ function Slider($$anchor, $$props) {
|
|
|
6351
6334
|
$.reset(div);
|
|
6352
6335
|
$.template_effect(($0, $1) => {
|
|
6353
6336
|
$.set_attribute(div, "id", props().id);
|
|
6354
|
-
$.set_class(div, 1, $0, "svelte-
|
|
6337
|
+
$.set_class(div, 1, $0, "svelte-i5qqzj");
|
|
6355
6338
|
$.set_attribute(div, "data-layer-id", layerId());
|
|
6356
6339
|
$.set_style(ul, $1);
|
|
6357
6340
|
}, [() => $.clsx(["slider", ...props().classNames ?? []].join(" ")), () => [$.get(containerStyle), overrideStyle()].join(" ")], $.derived_safe_equal);
|