@plaidev/karte-action-sdk 1.1.116-27927874.783c1fe4 → 1.1.116-27929049.d4f5759c
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 +23 -23
- package/dist/hydrate/index.es.js +281 -224
- package/dist/index.es.d.ts +23 -23
- package/dist/index.es.js +241 -198
- package/dist/templates.js +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { writable, get } from 'svelte/store';
|
|
2
2
|
import { linear, elasticOut, cubicOut } from 'svelte/easing';
|
|
3
|
-
import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, mount_component, insert, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, attr, noop, listen, is_function, append, add_render_callback, create_in_transition, svg_element, binding_callbacks, destroy_each, text, set_data, null_to_empty, src_url_equal, set_style
|
|
3
|
+
import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, mount_component, insert, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, attr, noop, listen, is_function, append, add_render_callback, create_in_transition, svg_element, binding_callbacks, destroy_each, text, set_data, null_to_empty, src_url_equal, set_style } from 'svelte/internal';
|
|
4
4
|
import { setContext, getContext, createEventDispatcher, onMount, onDestroy as onDestroy$1 } from 'svelte';
|
|
5
5
|
|
|
6
6
|
/** @internal */
|
|
@@ -1195,14 +1195,14 @@ const DefaultListBackgroundStripe = {
|
|
|
1195
1195
|
const DefaultListBackground = DefaultListBackgroundNone;
|
|
1196
1196
|
/** @internal */
|
|
1197
1197
|
const ListDirections = ['vertical', 'horizontal'];
|
|
1198
|
-
const
|
|
1198
|
+
const DefaultSlideButton = {
|
|
1199
1199
|
type: 'icon',
|
|
1200
1200
|
icon: 'chevron-left',
|
|
1201
1201
|
color: '#999',
|
|
1202
1202
|
fill: '#999',
|
|
1203
1203
|
size: '20px',
|
|
1204
1204
|
};
|
|
1205
|
-
const
|
|
1205
|
+
const DefaultSlideNavigationButton = {
|
|
1206
1206
|
type: 'circle',
|
|
1207
1207
|
size: '8px',
|
|
1208
1208
|
color: '#ddd',
|
|
@@ -2171,7 +2171,7 @@ function add_css$m(target) {
|
|
|
2171
2171
|
}
|
|
2172
2172
|
|
|
2173
2173
|
// (23:0) {#if $state === path}
|
|
2174
|
-
function create_if_block$
|
|
2174
|
+
function create_if_block$5(ctx) {
|
|
2175
2175
|
let div;
|
|
2176
2176
|
let t;
|
|
2177
2177
|
let current;
|
|
@@ -2236,7 +2236,7 @@ function create_if_block$4(ctx) {
|
|
|
2236
2236
|
function create_fragment$q(ctx) {
|
|
2237
2237
|
let if_block_anchor;
|
|
2238
2238
|
let current;
|
|
2239
|
-
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$
|
|
2239
|
+
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$5(ctx);
|
|
2240
2240
|
|
|
2241
2241
|
return {
|
|
2242
2242
|
c() {
|
|
@@ -2257,7 +2257,7 @@ function create_fragment$q(ctx) {
|
|
|
2257
2257
|
transition_in(if_block, 1);
|
|
2258
2258
|
}
|
|
2259
2259
|
} else {
|
|
2260
|
-
if_block = create_if_block$
|
|
2260
|
+
if_block = create_if_block$5(ctx);
|
|
2261
2261
|
if_block.c();
|
|
2262
2262
|
transition_in(if_block, 1);
|
|
2263
2263
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -2331,7 +2331,7 @@ function add_css$l(target) {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
|
|
2333
2333
|
// (9:0) {#if backgroundOverray}
|
|
2334
|
-
function create_if_block$
|
|
2334
|
+
function create_if_block$4(ctx) {
|
|
2335
2335
|
let div;
|
|
2336
2336
|
let mounted;
|
|
2337
2337
|
let dispose;
|
|
@@ -2360,7 +2360,7 @@ function create_if_block$3(ctx) {
|
|
|
2360
2360
|
|
|
2361
2361
|
function create_fragment$p(ctx) {
|
|
2362
2362
|
let if_block_anchor;
|
|
2363
|
-
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$
|
|
2363
|
+
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$4(ctx);
|
|
2364
2364
|
|
|
2365
2365
|
return {
|
|
2366
2366
|
c() {
|
|
@@ -2376,7 +2376,7 @@ function create_fragment$p(ctx) {
|
|
|
2376
2376
|
if (if_block) {
|
|
2377
2377
|
if_block.p(ctx, dirty);
|
|
2378
2378
|
} else {
|
|
2379
|
-
if_block = create_if_block$
|
|
2379
|
+
if_block = create_if_block$4(ctx);
|
|
2380
2380
|
if_block.c();
|
|
2381
2381
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
2382
2382
|
}
|
|
@@ -2420,7 +2420,7 @@ function add_css$k(target) {
|
|
|
2420
2420
|
}
|
|
2421
2421
|
|
|
2422
2422
|
// (142:0) {#if visible}
|
|
2423
|
-
function create_if_block$
|
|
2423
|
+
function create_if_block$3(ctx) {
|
|
2424
2424
|
let div1;
|
|
2425
2425
|
let t;
|
|
2426
2426
|
let div0;
|
|
@@ -2429,7 +2429,7 @@ function create_if_block$2(ctx) {
|
|
|
2429
2429
|
let current;
|
|
2430
2430
|
let mounted;
|
|
2431
2431
|
let dispose;
|
|
2432
|
-
let if_block = /*closable*/ ctx[14] && create_if_block_1(ctx);
|
|
2432
|
+
let if_block = /*closable*/ ctx[14] && create_if_block_1$1(ctx);
|
|
2433
2433
|
const default_slot_template = /*#slots*/ ctx[29].default;
|
|
2434
2434
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[28], null);
|
|
2435
2435
|
|
|
@@ -2475,7 +2475,7 @@ function create_if_block$2(ctx) {
|
|
|
2475
2475
|
if (if_block) {
|
|
2476
2476
|
if_block.p(ctx, dirty);
|
|
2477
2477
|
} else {
|
|
2478
|
-
if_block = create_if_block_1(ctx);
|
|
2478
|
+
if_block = create_if_block_1$1(ctx);
|
|
2479
2479
|
if_block.c();
|
|
2480
2480
|
if_block.m(div1, t);
|
|
2481
2481
|
}
|
|
@@ -2540,7 +2540,7 @@ function create_if_block$2(ctx) {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
|
|
2542
2542
|
// (159:4) {#if closable}
|
|
2543
|
-
function create_if_block_1(ctx) {
|
|
2543
|
+
function create_if_block_1$1(ctx) {
|
|
2544
2544
|
let button;
|
|
2545
2545
|
let svg;
|
|
2546
2546
|
let path;
|
|
@@ -2614,7 +2614,7 @@ function create_fragment$o(ctx) {
|
|
|
2614
2614
|
if (is_function(/*backgroundClick*/ ctx[12])) /*backgroundClick*/ ctx[12].apply(this, arguments);
|
|
2615
2615
|
});
|
|
2616
2616
|
|
|
2617
|
-
let if_block = /*visible*/ ctx[6] && create_if_block$
|
|
2617
|
+
let if_block = /*visible*/ ctx[6] && create_if_block$3(ctx);
|
|
2618
2618
|
|
|
2619
2619
|
return {
|
|
2620
2620
|
c() {
|
|
@@ -2652,7 +2652,7 @@ function create_fragment$o(ctx) {
|
|
|
2652
2652
|
transition_in(if_block, 1);
|
|
2653
2653
|
}
|
|
2654
2654
|
} else {
|
|
2655
|
-
if_block = create_if_block$
|
|
2655
|
+
if_block = create_if_block$3(ctx);
|
|
2656
2656
|
if_block.c();
|
|
2657
2657
|
transition_in(if_block, 1);
|
|
2658
2658
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -3715,7 +3715,7 @@ function create_else_block$1(ctx) {
|
|
|
3715
3715
|
}
|
|
3716
3716
|
|
|
3717
3717
|
// (10:2) {#if item.match(regexp)}
|
|
3718
|
-
function create_if_block$
|
|
3718
|
+
function create_if_block$2(ctx) {
|
|
3719
3719
|
let br;
|
|
3720
3720
|
|
|
3721
3721
|
return {
|
|
@@ -3740,7 +3740,7 @@ function create_each_block$4(ctx) {
|
|
|
3740
3740
|
function select_block_type(ctx, dirty) {
|
|
3741
3741
|
if (dirty & /*items*/ 1) show_if = null;
|
|
3742
3742
|
if (show_if == null) show_if = !!/*item*/ ctx[2].match(regexp);
|
|
3743
|
-
if (show_if) return create_if_block$
|
|
3743
|
+
if (show_if) return create_if_block$2;
|
|
3744
3744
|
return create_else_block$1;
|
|
3745
3745
|
}
|
|
3746
3746
|
|
|
@@ -5528,7 +5528,7 @@ function create_else_block(ctx) {
|
|
|
5528
5528
|
}
|
|
5529
5529
|
|
|
5530
5530
|
// (26:8) {#if option}
|
|
5531
|
-
function create_if_block(ctx) {
|
|
5531
|
+
function create_if_block$1(ctx) {
|
|
5532
5532
|
let t_value = /*option*/ ctx[6] + "";
|
|
5533
5533
|
let t;
|
|
5534
5534
|
|
|
@@ -5555,7 +5555,7 @@ function create_each_block$2(ctx) {
|
|
|
5555
5555
|
let option_value_value;
|
|
5556
5556
|
|
|
5557
5557
|
function select_block_type(ctx, dirty) {
|
|
5558
|
-
if (/*option*/ ctx[6]) return create_if_block;
|
|
5558
|
+
if (/*option*/ ctx[6]) return create_if_block$1;
|
|
5559
5559
|
return create_else_block;
|
|
5560
5560
|
}
|
|
5561
5561
|
|
|
@@ -5895,7 +5895,7 @@ class FormCheckBoxes extends SvelteComponent {
|
|
|
5895
5895
|
}
|
|
5896
5896
|
}
|
|
5897
5897
|
|
|
5898
|
-
/* src/components/
|
|
5898
|
+
/* src/components/Slide.svelte generated by Svelte v3.53.1 */
|
|
5899
5899
|
|
|
5900
5900
|
function add_css$4(target) {
|
|
5901
5901
|
append_styles(target, "svelte-105wdod", ".root.svelte-105wdod{width:100%;height:100%;position:relative}.container.svelte-105wdod{width:100%;height:100%;position:relative;overflow:hidden}.slide.svelte-105wdod{height:100%;position:absolute;display:flex}.transition.svelte-105wdod{transition:left 0.2s cubic-bezier(.04,.67,.53,.96)}.item.svelte-105wdod{height:100%;flex:none}.prev-button.svelte-105wdod,.next-button.svelte-105wdod{top:50%;height:0;position:absolute;display:flex;overflow:visible;align-items:center}.prev-button.svelte-105wdod{left:0}.next-button.svelte-105wdod{right:0}.button-container.svelte-105wdod{display:flex;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box}.prev-icon.svelte-105wdod{width:20px;height:20px;box-sizing:border-box;border-right:solid 3px #000;border-top:solid 3px #000;transform:translateX(35.4%) rotate(-135deg)}.next-icon.svelte-105wdod{width:20px;height:20px;box-sizing:border-box;border-right:solid 3px #000;border-top:solid 3px #000;transform:translateX(-35.4%) rotate(45deg)}.navigation.svelte-105wdod{position:absolute;width:0;left:50%;bottom:0;display:flex;justify-content:center;overflow:visible}.navigation-item.svelte-105wdod{flex-shrink:0;cursor:pointer}.navigation-item-inner.circle.svelte-105wdod{border-radius:51%}");
|
|
@@ -5903,12 +5903,104 @@ function add_css$4(target) {
|
|
|
5903
5903
|
|
|
5904
5904
|
function get_each_context(ctx, list, i) {
|
|
5905
5905
|
const child_ctx = ctx.slice();
|
|
5906
|
-
child_ctx[
|
|
5907
|
-
child_ctx[
|
|
5906
|
+
child_ctx[52] = list[i];
|
|
5907
|
+
child_ctx[54] = i;
|
|
5908
5908
|
return child_ctx;
|
|
5909
5909
|
}
|
|
5910
5910
|
|
|
5911
|
-
// (
|
|
5911
|
+
// (315:2) {#if isVisiblePrevButton}
|
|
5912
|
+
function create_if_block_1(ctx) {
|
|
5913
|
+
let div2;
|
|
5914
|
+
let div1;
|
|
5915
|
+
let div0;
|
|
5916
|
+
let mounted;
|
|
5917
|
+
let dispose;
|
|
5918
|
+
|
|
5919
|
+
return {
|
|
5920
|
+
c() {
|
|
5921
|
+
div2 = element("div");
|
|
5922
|
+
div1 = element("div");
|
|
5923
|
+
div0 = element("div");
|
|
5924
|
+
attr(div0, "class", "prev-icon svelte-105wdod");
|
|
5925
|
+
attr(div0, "style", /*prevIconStyle*/ ctx[9]);
|
|
5926
|
+
attr(div1, "class", "button-container svelte-105wdod");
|
|
5927
|
+
attr(div1, "style", /*prevButtonContainerStyle*/ ctx[0]);
|
|
5928
|
+
attr(div2, "class", "prev-button svelte-105wdod");
|
|
5929
|
+
},
|
|
5930
|
+
m(target, anchor) {
|
|
5931
|
+
insert(target, div2, anchor);
|
|
5932
|
+
append(div2, div1);
|
|
5933
|
+
append(div1, div0);
|
|
5934
|
+
|
|
5935
|
+
if (!mounted) {
|
|
5936
|
+
dispose = listen(div2, "click", /*prev*/ ctx[14]);
|
|
5937
|
+
mounted = true;
|
|
5938
|
+
}
|
|
5939
|
+
},
|
|
5940
|
+
p(ctx, dirty) {
|
|
5941
|
+
if (dirty[0] & /*prevIconStyle*/ 512) {
|
|
5942
|
+
attr(div0, "style", /*prevIconStyle*/ ctx[9]);
|
|
5943
|
+
}
|
|
5944
|
+
|
|
5945
|
+
if (dirty[0] & /*prevButtonContainerStyle*/ 1) {
|
|
5946
|
+
attr(div1, "style", /*prevButtonContainerStyle*/ ctx[0]);
|
|
5947
|
+
}
|
|
5948
|
+
},
|
|
5949
|
+
d(detaching) {
|
|
5950
|
+
if (detaching) detach(div2);
|
|
5951
|
+
mounted = false;
|
|
5952
|
+
dispose();
|
|
5953
|
+
}
|
|
5954
|
+
};
|
|
5955
|
+
}
|
|
5956
|
+
|
|
5957
|
+
// (322:2) {#if isVisibleNextButton}
|
|
5958
|
+
function create_if_block(ctx) {
|
|
5959
|
+
let div2;
|
|
5960
|
+
let div1;
|
|
5961
|
+
let div0;
|
|
5962
|
+
let mounted;
|
|
5963
|
+
let dispose;
|
|
5964
|
+
|
|
5965
|
+
return {
|
|
5966
|
+
c() {
|
|
5967
|
+
div2 = element("div");
|
|
5968
|
+
div1 = element("div");
|
|
5969
|
+
div0 = element("div");
|
|
5970
|
+
attr(div0, "class", "next-icon svelte-105wdod");
|
|
5971
|
+
attr(div0, "style", /*nextIconStyle*/ ctx[8]);
|
|
5972
|
+
attr(div1, "class", "button-container svelte-105wdod");
|
|
5973
|
+
attr(div1, "style", /*nextButtonContainerStyle*/ ctx[1]);
|
|
5974
|
+
attr(div2, "class", "next-button svelte-105wdod");
|
|
5975
|
+
},
|
|
5976
|
+
m(target, anchor) {
|
|
5977
|
+
insert(target, div2, anchor);
|
|
5978
|
+
append(div2, div1);
|
|
5979
|
+
append(div1, div0);
|
|
5980
|
+
|
|
5981
|
+
if (!mounted) {
|
|
5982
|
+
dispose = listen(div2, "click", /*next*/ ctx[15]);
|
|
5983
|
+
mounted = true;
|
|
5984
|
+
}
|
|
5985
|
+
},
|
|
5986
|
+
p(ctx, dirty) {
|
|
5987
|
+
if (dirty[0] & /*nextIconStyle*/ 256) {
|
|
5988
|
+
attr(div0, "style", /*nextIconStyle*/ ctx[8]);
|
|
5989
|
+
}
|
|
5990
|
+
|
|
5991
|
+
if (dirty[0] & /*nextButtonContainerStyle*/ 2) {
|
|
5992
|
+
attr(div1, "style", /*nextButtonContainerStyle*/ ctx[1]);
|
|
5993
|
+
}
|
|
5994
|
+
},
|
|
5995
|
+
d(detaching) {
|
|
5996
|
+
if (detaching) detach(div2);
|
|
5997
|
+
mounted = false;
|
|
5998
|
+
dispose();
|
|
5999
|
+
}
|
|
6000
|
+
};
|
|
6001
|
+
}
|
|
6002
|
+
|
|
6003
|
+
// (333:4) {#each items as _, i}
|
|
5912
6004
|
function create_each_block(ctx) {
|
|
5913
6005
|
let div1;
|
|
5914
6006
|
let div0;
|
|
@@ -5918,7 +6010,7 @@ function create_each_block(ctx) {
|
|
|
5918
6010
|
let dispose;
|
|
5919
6011
|
|
|
5920
6012
|
function click_handler() {
|
|
5921
|
-
return /*click_handler*/ ctx[
|
|
6013
|
+
return /*click_handler*/ ctx[29](/*i*/ ctx[54]);
|
|
5922
6014
|
}
|
|
5923
6015
|
|
|
5924
6016
|
return {
|
|
@@ -5927,7 +6019,7 @@ function create_each_block(ctx) {
|
|
|
5927
6019
|
div0 = element("div");
|
|
5928
6020
|
t = space();
|
|
5929
6021
|
attr(div0, "class", "navigation-item-inner circle svelte-105wdod");
|
|
5930
|
-
attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[6](/*i*/ ctx[
|
|
6022
|
+
attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[6](/*i*/ ctx[54]));
|
|
5931
6023
|
attr(div1, "class", "navigation-item svelte-105wdod");
|
|
5932
6024
|
attr(div1, "style", /*navigationItemStyle*/ ctx[7]);
|
|
5933
6025
|
},
|
|
@@ -5944,7 +6036,7 @@ function create_each_block(ctx) {
|
|
|
5944
6036
|
p(new_ctx, dirty) {
|
|
5945
6037
|
ctx = new_ctx;
|
|
5946
6038
|
|
|
5947
|
-
if (dirty[0] & /*getNavigationItemInnerStyle*/ 64 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[6](/*i*/ ctx[
|
|
6039
|
+
if (dirty[0] & /*getNavigationItemInnerStyle*/ 64 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[6](/*i*/ ctx[54]))) {
|
|
5948
6040
|
attr(div0, "style", div0_style_value);
|
|
5949
6041
|
}
|
|
5950
6042
|
|
|
@@ -5961,25 +6053,19 @@ function create_each_block(ctx) {
|
|
|
5961
6053
|
}
|
|
5962
6054
|
|
|
5963
6055
|
function create_fragment$4(ctx) {
|
|
5964
|
-
let
|
|
6056
|
+
let div3;
|
|
5965
6057
|
let div1;
|
|
5966
6058
|
let div0;
|
|
5967
6059
|
let div0_class_value;
|
|
5968
6060
|
let t0;
|
|
5969
|
-
let div4;
|
|
5970
|
-
let div3;
|
|
5971
|
-
let div2;
|
|
5972
6061
|
let t1;
|
|
5973
|
-
let div7;
|
|
5974
|
-
let div6;
|
|
5975
|
-
let div5;
|
|
5976
6062
|
let t2;
|
|
5977
|
-
let
|
|
6063
|
+
let div2;
|
|
5978
6064
|
let current;
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
6065
|
+
const default_slot_template = /*#slots*/ ctx[26].default;
|
|
6066
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[25], null);
|
|
6067
|
+
let if_block0 = /*isVisiblePrevButton*/ ctx[11] && create_if_block_1(ctx);
|
|
6068
|
+
let if_block1 = /*isVisibleNextButton*/ ctx[10] && create_if_block(ctx);
|
|
5983
6069
|
let each_value = /*items*/ ctx[3];
|
|
5984
6070
|
let each_blocks = [];
|
|
5985
6071
|
|
|
@@ -5989,120 +6075,103 @@ function create_fragment$4(ctx) {
|
|
|
5989
6075
|
|
|
5990
6076
|
return {
|
|
5991
6077
|
c() {
|
|
5992
|
-
|
|
6078
|
+
div3 = element("div");
|
|
5993
6079
|
div1 = element("div");
|
|
5994
6080
|
div0 = element("div");
|
|
5995
6081
|
if (default_slot) default_slot.c();
|
|
5996
6082
|
t0 = space();
|
|
5997
|
-
|
|
5998
|
-
div3 = element("div");
|
|
5999
|
-
div2 = element("div");
|
|
6083
|
+
if (if_block0) if_block0.c();
|
|
6000
6084
|
t1 = space();
|
|
6001
|
-
|
|
6002
|
-
div6 = element("div");
|
|
6003
|
-
div5 = element("div");
|
|
6085
|
+
if (if_block1) if_block1.c();
|
|
6004
6086
|
t2 = space();
|
|
6005
|
-
|
|
6087
|
+
div2 = element("div");
|
|
6006
6088
|
|
|
6007
6089
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6008
6090
|
each_blocks[i].c();
|
|
6009
6091
|
}
|
|
6010
6092
|
|
|
6011
|
-
attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[
|
|
6012
|
-
attr(div0, "style", /*slideStyle*/ ctx[
|
|
6093
|
+
attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[12]) + " svelte-105wdod"));
|
|
6094
|
+
attr(div0, "style", /*slideStyle*/ ctx[13]);
|
|
6013
6095
|
attr(div1, "class", "container svelte-105wdod");
|
|
6014
|
-
attr(div2, "class", "
|
|
6015
|
-
attr(div2, "style", /*
|
|
6016
|
-
attr(div3, "class", "
|
|
6017
|
-
attr(div3, "style", /*prevButtonContainerStyle*/ ctx[0]);
|
|
6018
|
-
attr(div4, "class", "prev-button svelte-105wdod");
|
|
6019
|
-
attr(div5, "class", "next-icon svelte-105wdod");
|
|
6020
|
-
attr(div5, "style", /*nextIconStyle*/ ctx[8]);
|
|
6021
|
-
attr(div6, "class", "button-container svelte-105wdod");
|
|
6022
|
-
attr(div6, "style", /*nextButtonContainerStyle*/ ctx[1]);
|
|
6023
|
-
attr(div7, "class", "next-button svelte-105wdod");
|
|
6024
|
-
attr(div8, "class", "navigation svelte-105wdod");
|
|
6025
|
-
attr(div8, "style", /*navigationStyle*/ ctx[2]);
|
|
6026
|
-
attr(div9, "class", "root svelte-105wdod");
|
|
6096
|
+
attr(div2, "class", "navigation svelte-105wdod");
|
|
6097
|
+
attr(div2, "style", /*navigationStyle*/ ctx[2]);
|
|
6098
|
+
attr(div3, "class", "root svelte-105wdod");
|
|
6027
6099
|
},
|
|
6028
6100
|
m(target, anchor) {
|
|
6029
|
-
insert(target,
|
|
6030
|
-
append(
|
|
6101
|
+
insert(target, div3, anchor);
|
|
6102
|
+
append(div3, div1);
|
|
6031
6103
|
append(div1, div0);
|
|
6032
6104
|
|
|
6033
6105
|
if (default_slot) {
|
|
6034
6106
|
default_slot.m(div0, null);
|
|
6035
6107
|
}
|
|
6036
6108
|
|
|
6037
|
-
/*div0_binding*/ ctx[
|
|
6038
|
-
/*div1_binding*/ ctx[
|
|
6039
|
-
append(
|
|
6040
|
-
|
|
6041
|
-
append(
|
|
6109
|
+
/*div0_binding*/ ctx[27](div0);
|
|
6110
|
+
/*div1_binding*/ ctx[28](div1);
|
|
6111
|
+
append(div3, t0);
|
|
6112
|
+
if (if_block0) if_block0.m(div3, null);
|
|
6113
|
+
append(div3, t1);
|
|
6114
|
+
if (if_block1) if_block1.m(div3, null);
|
|
6115
|
+
append(div3, t2);
|
|
6042
6116
|
append(div3, div2);
|
|
6043
|
-
append(div9, t1);
|
|
6044
|
-
append(div9, div7);
|
|
6045
|
-
append(div7, div6);
|
|
6046
|
-
append(div6, div5);
|
|
6047
|
-
append(div9, t2);
|
|
6048
|
-
append(div9, div8);
|
|
6049
6117
|
|
|
6050
6118
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6051
|
-
each_blocks[i].m(
|
|
6119
|
+
each_blocks[i].m(div2, null);
|
|
6052
6120
|
}
|
|
6053
6121
|
|
|
6054
6122
|
current = true;
|
|
6055
|
-
|
|
6056
|
-
if (!mounted) {
|
|
6057
|
-
dispose = [
|
|
6058
|
-
listen(div4, "click", /*prev*/ ctx[12]),
|
|
6059
|
-
listen(div7, "click", /*next*/ ctx[13])
|
|
6060
|
-
];
|
|
6061
|
-
|
|
6062
|
-
mounted = true;
|
|
6063
|
-
}
|
|
6064
6123
|
},
|
|
6065
6124
|
p(ctx, dirty) {
|
|
6066
6125
|
if (default_slot) {
|
|
6067
|
-
if (default_slot.p && (!current || dirty[0] & /*$$scope*/
|
|
6126
|
+
if (default_slot.p && (!current || dirty[0] & /*$$scope*/ 33554432)) {
|
|
6068
6127
|
update_slot_base(
|
|
6069
6128
|
default_slot,
|
|
6070
6129
|
default_slot_template,
|
|
6071
6130
|
ctx,
|
|
6072
|
-
/*$$scope*/ ctx[
|
|
6131
|
+
/*$$scope*/ ctx[25],
|
|
6073
6132
|
!current
|
|
6074
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
6075
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
6133
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[25])
|
|
6134
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[25], dirty, null),
|
|
6076
6135
|
null
|
|
6077
6136
|
);
|
|
6078
6137
|
}
|
|
6079
6138
|
}
|
|
6080
6139
|
|
|
6081
|
-
if (!current || dirty[0] & /*slideClass*/
|
|
6140
|
+
if (!current || dirty[0] & /*slideClass*/ 4096 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[12]) + " svelte-105wdod"))) {
|
|
6082
6141
|
attr(div0, "class", div0_class_value);
|
|
6083
6142
|
}
|
|
6084
6143
|
|
|
6085
|
-
if (!current || dirty[0] & /*slideStyle*/
|
|
6086
|
-
attr(div0, "style", /*slideStyle*/ ctx[
|
|
6087
|
-
}
|
|
6088
|
-
|
|
6089
|
-
if (!current || dirty[0] & /*prevIconStyle*/ 512) {
|
|
6090
|
-
attr(div2, "style", /*prevIconStyle*/ ctx[9]);
|
|
6091
|
-
}
|
|
6092
|
-
|
|
6093
|
-
if (!current || dirty[0] & /*prevButtonContainerStyle*/ 1) {
|
|
6094
|
-
attr(div3, "style", /*prevButtonContainerStyle*/ ctx[0]);
|
|
6144
|
+
if (!current || dirty[0] & /*slideStyle*/ 8192) {
|
|
6145
|
+
attr(div0, "style", /*slideStyle*/ ctx[13]);
|
|
6095
6146
|
}
|
|
6096
6147
|
|
|
6097
|
-
if (
|
|
6098
|
-
|
|
6148
|
+
if (/*isVisiblePrevButton*/ ctx[11]) {
|
|
6149
|
+
if (if_block0) {
|
|
6150
|
+
if_block0.p(ctx, dirty);
|
|
6151
|
+
} else {
|
|
6152
|
+
if_block0 = create_if_block_1(ctx);
|
|
6153
|
+
if_block0.c();
|
|
6154
|
+
if_block0.m(div3, t1);
|
|
6155
|
+
}
|
|
6156
|
+
} else if (if_block0) {
|
|
6157
|
+
if_block0.d(1);
|
|
6158
|
+
if_block0 = null;
|
|
6099
6159
|
}
|
|
6100
6160
|
|
|
6101
|
-
if (
|
|
6102
|
-
|
|
6161
|
+
if (/*isVisibleNextButton*/ ctx[10]) {
|
|
6162
|
+
if (if_block1) {
|
|
6163
|
+
if_block1.p(ctx, dirty);
|
|
6164
|
+
} else {
|
|
6165
|
+
if_block1 = create_if_block(ctx);
|
|
6166
|
+
if_block1.c();
|
|
6167
|
+
if_block1.m(div3, t2);
|
|
6168
|
+
}
|
|
6169
|
+
} else if (if_block1) {
|
|
6170
|
+
if_block1.d(1);
|
|
6171
|
+
if_block1 = null;
|
|
6103
6172
|
}
|
|
6104
6173
|
|
|
6105
|
-
if (dirty[0] & /*navigationItemStyle, set, getNavigationItemInnerStyle, items*/
|
|
6174
|
+
if (dirty[0] & /*navigationItemStyle, set, getNavigationItemInnerStyle, items*/ 65736) {
|
|
6106
6175
|
each_value = /*items*/ ctx[3];
|
|
6107
6176
|
let i;
|
|
6108
6177
|
|
|
@@ -6114,7 +6183,7 @@ function create_fragment$4(ctx) {
|
|
|
6114
6183
|
} else {
|
|
6115
6184
|
each_blocks[i] = create_each_block(child_ctx);
|
|
6116
6185
|
each_blocks[i].c();
|
|
6117
|
-
each_blocks[i].m(
|
|
6186
|
+
each_blocks[i].m(div2, null);
|
|
6118
6187
|
}
|
|
6119
6188
|
}
|
|
6120
6189
|
|
|
@@ -6126,7 +6195,7 @@ function create_fragment$4(ctx) {
|
|
|
6126
6195
|
}
|
|
6127
6196
|
|
|
6128
6197
|
if (!current || dirty[0] & /*navigationStyle*/ 4) {
|
|
6129
|
-
attr(
|
|
6198
|
+
attr(div2, "style", /*navigationStyle*/ ctx[2]);
|
|
6130
6199
|
}
|
|
6131
6200
|
},
|
|
6132
6201
|
i(local) {
|
|
@@ -6139,13 +6208,13 @@ function create_fragment$4(ctx) {
|
|
|
6139
6208
|
current = false;
|
|
6140
6209
|
},
|
|
6141
6210
|
d(detaching) {
|
|
6142
|
-
if (detaching) detach(
|
|
6211
|
+
if (detaching) detach(div3);
|
|
6143
6212
|
if (default_slot) default_slot.d(detaching);
|
|
6144
|
-
/*div0_binding*/ ctx[
|
|
6145
|
-
/*div1_binding*/ ctx[
|
|
6213
|
+
/*div0_binding*/ ctx[27](null);
|
|
6214
|
+
/*div1_binding*/ ctx[28](null);
|
|
6215
|
+
if (if_block0) if_block0.d();
|
|
6216
|
+
if (if_block1) if_block1.d();
|
|
6146
6217
|
destroy_each(each_blocks, detaching);
|
|
6147
|
-
mounted = false;
|
|
6148
|
-
run_all(dispose);
|
|
6149
6218
|
}
|
|
6150
6219
|
};
|
|
6151
6220
|
}
|
|
@@ -6166,6 +6235,8 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6166
6235
|
let slideStyle;
|
|
6167
6236
|
let slideClass;
|
|
6168
6237
|
let _loop;
|
|
6238
|
+
let isVisiblePrevButton;
|
|
6239
|
+
let isVisibleNextButton;
|
|
6169
6240
|
let prevIconStyle;
|
|
6170
6241
|
let nextIconStyle;
|
|
6171
6242
|
let navigationItemStyle;
|
|
@@ -6238,7 +6309,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6238
6309
|
onBeforeSlide({ shiftCount, index, length: items.length });
|
|
6239
6310
|
});
|
|
6240
6311
|
|
|
6241
|
-
$$invalidate(
|
|
6312
|
+
$$invalidate(22, slidePosition = slidePosition + containerWidth * (calcPositionIndex(shiftCount, currentSlideId, items.length) - calcPositionIndex(previousShiftCount, currentSlideId, items.length)));
|
|
6242
6313
|
previousShiftCount = shiftCount;
|
|
6243
6314
|
resolve();
|
|
6244
6315
|
});
|
|
@@ -6249,8 +6320,8 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6249
6320
|
if (transitioning) {
|
|
6250
6321
|
const slideRect = slideElement.getBoundingClientRect();
|
|
6251
6322
|
const containerRect = containerElement.getBoundingClientRect();
|
|
6252
|
-
$$invalidate(
|
|
6253
|
-
$$invalidate(
|
|
6323
|
+
$$invalidate(23, transitioning = false);
|
|
6324
|
+
$$invalidate(22, slidePosition = slideRect.x - containerRect.x);
|
|
6254
6325
|
}
|
|
6255
6326
|
}
|
|
6256
6327
|
|
|
@@ -6270,10 +6341,10 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6270
6341
|
}
|
|
6271
6342
|
}
|
|
6272
6343
|
|
|
6273
|
-
$$invalidate(
|
|
6274
|
-
$$invalidate(
|
|
6344
|
+
$$invalidate(23, transitioning = true);
|
|
6345
|
+
$$invalidate(22, slidePosition = containerWidth * calcPositionIndex(shiftCount, slideIndex, items.length));
|
|
6275
6346
|
dispatch('change', { nextIndex: slideIndex });
|
|
6276
|
-
$$invalidate(
|
|
6347
|
+
$$invalidate(21, currentSlideId = slideIndex);
|
|
6277
6348
|
});
|
|
6278
6349
|
}
|
|
6279
6350
|
|
|
@@ -6295,7 +6366,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6295
6366
|
const updatedSlidePosition = slidePosition + dx;
|
|
6296
6367
|
|
|
6297
6368
|
window.requestAnimationFrame(() => {
|
|
6298
|
-
$$invalidate(
|
|
6369
|
+
$$invalidate(22, slidePosition = updatedSlidePosition);
|
|
6299
6370
|
});
|
|
6300
6371
|
}
|
|
6301
6372
|
|
|
@@ -6315,7 +6386,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6315
6386
|
});
|
|
6316
6387
|
});
|
|
6317
6388
|
|
|
6318
|
-
$$invalidate(
|
|
6389
|
+
$$invalidate(22, slidePosition = containerWidth * calcPositionIndex(shiftCount, currentSlideId, items.length));
|
|
6319
6390
|
}
|
|
6320
6391
|
|
|
6321
6392
|
function handleMoveEnd() {
|
|
@@ -6368,7 +6439,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6368
6439
|
}
|
|
6369
6440
|
|
|
6370
6441
|
function handleTransitionEnd() {
|
|
6371
|
-
$$invalidate(
|
|
6442
|
+
$$invalidate(23, transitioning = false);
|
|
6372
6443
|
fixSlidePosition();
|
|
6373
6444
|
}
|
|
6374
6445
|
|
|
@@ -6379,7 +6450,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6379
6450
|
item.onMount({ containerElement });
|
|
6380
6451
|
});
|
|
6381
6452
|
|
|
6382
|
-
$$invalidate(
|
|
6453
|
+
$$invalidate(21, currentSlideId = 0);
|
|
6383
6454
|
|
|
6384
6455
|
if (_loop) {
|
|
6385
6456
|
await fixSlidePosition();
|
|
@@ -6450,46 +6521,54 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6450
6521
|
const click_handler = i => set(i);
|
|
6451
6522
|
|
|
6452
6523
|
$$self.$$set = $$props => {
|
|
6453
|
-
if ('loop' in $$props) $$invalidate(
|
|
6454
|
-
if ('prevButton' in $$props) $$invalidate(
|
|
6524
|
+
if ('loop' in $$props) $$invalidate(17, loop = $$props.loop);
|
|
6525
|
+
if ('prevButton' in $$props) $$invalidate(18, prevButton = $$props.prevButton);
|
|
6455
6526
|
if ('prevButtonContainerStyle' in $$props) $$invalidate(0, prevButtonContainerStyle = $$props.prevButtonContainerStyle);
|
|
6456
|
-
if ('nextButton' in $$props) $$invalidate(
|
|
6527
|
+
if ('nextButton' in $$props) $$invalidate(19, nextButton = $$props.nextButton);
|
|
6457
6528
|
if ('nextButtonContainerStyle' in $$props) $$invalidate(1, nextButtonContainerStyle = $$props.nextButtonContainerStyle);
|
|
6458
|
-
if ('navigationButton' in $$props) $$invalidate(
|
|
6529
|
+
if ('navigationButton' in $$props) $$invalidate(20, navigationButton = $$props.navigationButton);
|
|
6459
6530
|
if ('navigationStyle' in $$props) $$invalidate(2, navigationStyle = $$props.navigationStyle);
|
|
6460
|
-
if ('$$scope' in $$props) $$invalidate(
|
|
6531
|
+
if ('$$scope' in $$props) $$invalidate(25, $$scope = $$props.$$scope);
|
|
6461
6532
|
};
|
|
6462
6533
|
|
|
6463
6534
|
$$self.$$.update = () => {
|
|
6464
|
-
if ($$self.$$.dirty[0] & /*slidePosition*/
|
|
6465
|
-
$$invalidate(
|
|
6535
|
+
if ($$self.$$.dirty[0] & /*slidePosition*/ 4194304) {
|
|
6536
|
+
$$invalidate(13, slideStyle = slidePosition != null ? `left: ${slidePosition}px;` : '');
|
|
6537
|
+
}
|
|
6538
|
+
|
|
6539
|
+
if ($$self.$$.dirty[0] & /*transitioning*/ 8388608) {
|
|
6540
|
+
$$invalidate(12, slideClass = ['slide', transitioning ? 'transition' : ''].join(' '));
|
|
6466
6541
|
}
|
|
6467
6542
|
|
|
6468
|
-
if ($$self.$$.dirty[0] & /*
|
|
6469
|
-
$$invalidate(
|
|
6543
|
+
if ($$self.$$.dirty[0] & /*items, loop*/ 131080) {
|
|
6544
|
+
$$invalidate(24, _loop = items.length >= 3 ? loop : false);
|
|
6470
6545
|
}
|
|
6471
6546
|
|
|
6472
|
-
if ($$self.$$.dirty[0] & /*
|
|
6473
|
-
|
|
6547
|
+
if ($$self.$$.dirty[0] & /*_loop, currentSlideId*/ 18874368) {
|
|
6548
|
+
$$invalidate(11, isVisiblePrevButton = _loop || currentSlideId > 0);
|
|
6474
6549
|
}
|
|
6475
6550
|
|
|
6476
|
-
if ($$self.$$.dirty[0] & /*
|
|
6551
|
+
if ($$self.$$.dirty[0] & /*_loop, currentSlideId, items*/ 18874376) {
|
|
6552
|
+
$$invalidate(10, isVisibleNextButton = _loop || currentSlideId < items.length - 1);
|
|
6553
|
+
}
|
|
6554
|
+
|
|
6555
|
+
if ($$self.$$.dirty[0] & /*prevButton*/ 262144) {
|
|
6477
6556
|
$$invalidate(9, prevIconStyle = prevButton.type === 'icon'
|
|
6478
6557
|
? `width: ${prevButton.size}; height: ${prevButton.size}; border-color: ${prevButton.color};`
|
|
6479
6558
|
: '');
|
|
6480
6559
|
}
|
|
6481
6560
|
|
|
6482
|
-
if ($$self.$$.dirty[0] & /*nextButton*/
|
|
6561
|
+
if ($$self.$$.dirty[0] & /*nextButton*/ 524288) {
|
|
6483
6562
|
$$invalidate(8, nextIconStyle = nextButton.type === 'icon'
|
|
6484
6563
|
? `width: ${nextButton.size}; height: ${nextButton.size}; border-color: ${nextButton.color};`
|
|
6485
6564
|
: '');
|
|
6486
6565
|
}
|
|
6487
6566
|
|
|
6488
|
-
if ($$self.$$.dirty[0] & /*navigationButton*/
|
|
6567
|
+
if ($$self.$$.dirty[0] & /*navigationButton*/ 1048576) {
|
|
6489
6568
|
$$invalidate(7, navigationItemStyle = `padding: calc(${navigationButton.size} / 2);`);
|
|
6490
6569
|
}
|
|
6491
6570
|
|
|
6492
|
-
if ($$self.$$.dirty[0] & /*navigationButton, currentSlideId*/
|
|
6571
|
+
if ($$self.$$.dirty[0] & /*navigationButton, currentSlideId*/ 3145728) {
|
|
6493
6572
|
$$invalidate(6, getNavigationItemInnerStyle = i => `
|
|
6494
6573
|
width: ${navigationButton.size};
|
|
6495
6574
|
height: ${navigationButton.size};
|
|
@@ -6510,6 +6589,8 @@ background-color: ${i === currentSlideId
|
|
|
6510
6589
|
navigationItemStyle,
|
|
6511
6590
|
nextIconStyle,
|
|
6512
6591
|
prevIconStyle,
|
|
6592
|
+
isVisibleNextButton,
|
|
6593
|
+
isVisiblePrevButton,
|
|
6513
6594
|
slideClass,
|
|
6514
6595
|
slideStyle,
|
|
6515
6596
|
prev,
|
|
@@ -6522,6 +6603,7 @@ background-color: ${i === currentSlideId
|
|
|
6522
6603
|
currentSlideId,
|
|
6523
6604
|
slidePosition,
|
|
6524
6605
|
transitioning,
|
|
6606
|
+
_loop,
|
|
6525
6607
|
$$scope,
|
|
6526
6608
|
slots,
|
|
6527
6609
|
div0_binding,
|
|
@@ -6530,7 +6612,7 @@ background-color: ${i === currentSlideId
|
|
|
6530
6612
|
];
|
|
6531
6613
|
}
|
|
6532
6614
|
|
|
6533
|
-
class
|
|
6615
|
+
class Slide extends SvelteComponent {
|
|
6534
6616
|
constructor(options) {
|
|
6535
6617
|
super();
|
|
6536
6618
|
|
|
@@ -6541,12 +6623,12 @@ class Slider extends SvelteComponent {
|
|
|
6541
6623
|
create_fragment$4,
|
|
6542
6624
|
safe_not_equal,
|
|
6543
6625
|
{
|
|
6544
|
-
loop:
|
|
6545
|
-
prevButton:
|
|
6626
|
+
loop: 17,
|
|
6627
|
+
prevButton: 18,
|
|
6546
6628
|
prevButtonContainerStyle: 0,
|
|
6547
|
-
nextButton:
|
|
6629
|
+
nextButton: 19,
|
|
6548
6630
|
nextButtonContainerStyle: 1,
|
|
6549
|
-
navigationButton:
|
|
6631
|
+
navigationButton: 20,
|
|
6550
6632
|
navigationStyle: 2
|
|
6551
6633
|
},
|
|
6552
6634
|
add_css$4,
|
|
@@ -6555,7 +6637,7 @@ class Slider extends SvelteComponent {
|
|
|
6555
6637
|
}
|
|
6556
6638
|
}
|
|
6557
6639
|
|
|
6558
|
-
/* src/components/
|
|
6640
|
+
/* src/components/SlideItem.svelte generated by Svelte v3.53.1 */
|
|
6559
6641
|
|
|
6560
6642
|
function add_css$3(target) {
|
|
6561
6643
|
append_styles(target, "svelte-xzo1un", ".item.svelte-xzo1un{height:100%;flex:none;position:relative}.item.svelte-xzo1un img{user-select:none;-webkit-user-drag:none}.item-inner.svelte-xzo1un{position:absolute;inset:0}");
|
|
@@ -6565,10 +6647,8 @@ function create_fragment$3(ctx) {
|
|
|
6565
6647
|
let div1;
|
|
6566
6648
|
let div0;
|
|
6567
6649
|
let current;
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
const default_slot_template = /*#slots*/ ctx[8].default;
|
|
6571
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[7], null);
|
|
6650
|
+
const default_slot_template = /*#slots*/ ctx[5].default;
|
|
6651
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);
|
|
6572
6652
|
|
|
6573
6653
|
return {
|
|
6574
6654
|
c() {
|
|
@@ -6589,28 +6669,18 @@ function create_fragment$3(ctx) {
|
|
|
6589
6669
|
}
|
|
6590
6670
|
|
|
6591
6671
|
current = true;
|
|
6592
|
-
|
|
6593
|
-
if (!mounted) {
|
|
6594
|
-
dispose = listen(div1, "click", function () {
|
|
6595
|
-
if (is_function(/*click*/ ctx[2])) /*click*/ ctx[2].apply(this, arguments);
|
|
6596
|
-
});
|
|
6597
|
-
|
|
6598
|
-
mounted = true;
|
|
6599
|
-
}
|
|
6600
6672
|
},
|
|
6601
|
-
p(
|
|
6602
|
-
ctx = new_ctx;
|
|
6603
|
-
|
|
6673
|
+
p(ctx, [dirty]) {
|
|
6604
6674
|
if (default_slot) {
|
|
6605
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
6675
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 16)) {
|
|
6606
6676
|
update_slot_base(
|
|
6607
6677
|
default_slot,
|
|
6608
6678
|
default_slot_template,
|
|
6609
6679
|
ctx,
|
|
6610
|
-
/*$$scope*/ ctx[
|
|
6680
|
+
/*$$scope*/ ctx[4],
|
|
6611
6681
|
!current
|
|
6612
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
6613
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
6682
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[4])
|
|
6683
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[4], dirty, null),
|
|
6614
6684
|
null
|
|
6615
6685
|
);
|
|
6616
6686
|
}
|
|
@@ -6636,25 +6706,22 @@ function create_fragment$3(ctx) {
|
|
|
6636
6706
|
d(detaching) {
|
|
6637
6707
|
if (detaching) detach(div1);
|
|
6638
6708
|
if (default_slot) default_slot.d(detaching);
|
|
6639
|
-
mounted = false;
|
|
6640
|
-
dispose();
|
|
6641
6709
|
}
|
|
6642
6710
|
};
|
|
6643
6711
|
}
|
|
6644
6712
|
|
|
6645
6713
|
function instance$3($$self, $$props, $$invalidate) {
|
|
6646
|
-
let click;
|
|
6647
6714
|
let itemStyle;
|
|
6648
6715
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
6649
6716
|
const { registerItem, unregisterItem } = getContext('SLIDE');
|
|
6650
6717
|
|
|
6651
6718
|
const id = registerItem({
|
|
6652
6719
|
onMount({ containerElement }) {
|
|
6653
|
-
$$invalidate(
|
|
6720
|
+
$$invalidate(2, itemWidth = containerElement.clientWidth);
|
|
6654
6721
|
},
|
|
6655
6722
|
// TODO: onBeforeSlideと重複するロジックをまとめる
|
|
6656
6723
|
onResize({ containerElement, shiftCount, index, length }) {
|
|
6657
|
-
$$invalidate(
|
|
6724
|
+
$$invalidate(2, itemWidth = containerElement.clientWidth);
|
|
6658
6725
|
let fixedShiftCount;
|
|
6659
6726
|
|
|
6660
6727
|
if (index - shiftCount < 0) {
|
|
@@ -6665,7 +6732,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
6665
6732
|
fixedShiftCount = shiftCount;
|
|
6666
6733
|
}
|
|
6667
6734
|
|
|
6668
|
-
$$invalidate(
|
|
6735
|
+
$$invalidate(3, itemTransform = -fixedShiftCount * (itemWidth ?? 0));
|
|
6669
6736
|
},
|
|
6670
6737
|
onBeforeSlide({ shiftCount, index, length }) {
|
|
6671
6738
|
let fixedShiftCount;
|
|
@@ -6678,7 +6745,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
6678
6745
|
fixedShiftCount = shiftCount;
|
|
6679
6746
|
}
|
|
6680
6747
|
|
|
6681
|
-
$$invalidate(
|
|
6748
|
+
$$invalidate(3, itemTransform = -fixedShiftCount * (itemWidth ?? 0));
|
|
6682
6749
|
}
|
|
6683
6750
|
});
|
|
6684
6751
|
|
|
@@ -6686,54 +6753,30 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
6686
6753
|
unregisterItem(id);
|
|
6687
6754
|
});
|
|
6688
6755
|
|
|
6689
|
-
let { onClick = { operation: 'none', args: [] } } = $$props;
|
|
6690
|
-
let { clickEventName = '' } = $$props;
|
|
6691
6756
|
let { _style = 'cursor: ' } = $$props;
|
|
6692
6757
|
let itemWidth = null;
|
|
6693
6758
|
let itemTransform = 0;
|
|
6694
6759
|
|
|
6695
6760
|
$$self.$$set = $$props => {
|
|
6696
|
-
if ('onClick' in $$props) $$invalidate(3, onClick = $$props.onClick);
|
|
6697
|
-
if ('clickEventName' in $$props) $$invalidate(4, clickEventName = $$props.clickEventName);
|
|
6698
6761
|
if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
|
|
6699
|
-
if ('$$scope' in $$props) $$invalidate(
|
|
6762
|
+
if ('$$scope' in $$props) $$invalidate(4, $$scope = $$props.$$scope);
|
|
6700
6763
|
};
|
|
6701
6764
|
|
|
6702
6765
|
$$self.$$.update = () => {
|
|
6703
|
-
if ($$self.$$.dirty & /*
|
|
6704
|
-
$$invalidate(2, click = () => {
|
|
6705
|
-
if (clickEventName) {
|
|
6706
|
-
send_event(clickEventName);
|
|
6707
|
-
}
|
|
6708
|
-
|
|
6709
|
-
execOnClickOperation(onClick);
|
|
6710
|
-
});
|
|
6711
|
-
}
|
|
6712
|
-
|
|
6713
|
-
if ($$self.$$.dirty & /*itemWidth, itemTransform*/ 96) {
|
|
6766
|
+
if ($$self.$$.dirty & /*itemWidth, itemTransform*/ 12) {
|
|
6714
6767
|
$$invalidate(1, itemStyle = itemWidth != null
|
|
6715
6768
|
? `width: ${itemWidth}px; transform: translateX(${itemTransform}px);`
|
|
6716
6769
|
: '');
|
|
6717
6770
|
}
|
|
6718
6771
|
};
|
|
6719
6772
|
|
|
6720
|
-
return [
|
|
6721
|
-
_style,
|
|
6722
|
-
itemStyle,
|
|
6723
|
-
click,
|
|
6724
|
-
onClick,
|
|
6725
|
-
clickEventName,
|
|
6726
|
-
itemWidth,
|
|
6727
|
-
itemTransform,
|
|
6728
|
-
$$scope,
|
|
6729
|
-
slots
|
|
6730
|
-
];
|
|
6773
|
+
return [_style, itemStyle, itemWidth, itemTransform, $$scope, slots];
|
|
6731
6774
|
}
|
|
6732
6775
|
|
|
6733
|
-
class
|
|
6776
|
+
class SlideItem extends SvelteComponent {
|
|
6734
6777
|
constructor(options) {
|
|
6735
6778
|
super();
|
|
6736
|
-
init(this, options, instance$3, create_fragment$3, safe_not_equal, {
|
|
6779
|
+
init(this, options, instance$3, create_fragment$3, safe_not_equal, { _style: 0 }, add_css$3);
|
|
6737
6780
|
}
|
|
6738
6781
|
}
|
|
6739
6782
|
|
|
@@ -7078,4 +7121,4 @@ class ImageBlock extends SvelteComponent {
|
|
|
7078
7121
|
}
|
|
7079
7122
|
}
|
|
7080
7123
|
|
|
7081
|
-
export { ACTION_CHANGE_STATE_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_SHOW_EVENT, ALL_ACTION_ID, ALL_ACTION_SHORTEN_ID, Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement,
|
|
7124
|
+
export { ACTION_CHANGE_STATE_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_SHOW_EVENT, ALL_ACTION_ID, ALL_ACTION_SHORTEN_ID, Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexItem, FormButton, FormCheckBoxes, FormOperationOptions, FormRadioButtons, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_ACTION_RID, KARTE_ACTION_ROOT, KARTE_ACTION_SHORTEN_ID, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, NOOP, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, actionId, actionSetting, addState, applyCss, applyGlobalCss, close, closeAction, closeApp, closed, collection$1 as collection, create, createApp, createFog, customAnimation, customHandlers, customVariables, destroy, destroyed, dispatchDestroyEvent, embed, ensureActionRoot, ensureModalRoot, execOnClickOperation, finalize, formData, getActionSetting, getActionShadowRoot, getCustomHandlers, getCustomVariables, getInternalHandlers, getMarginStyle, getPositionStyle, getState$1 as getState, getStates, getStoreState, getSystem, getTransform, h, handleFocus, handleKeydown, handleState, hasSuffix, hashCode, haveFunction, hideOnScroll, hideOnTime, initialize, internalHandlers, isClosed, isDestroyed, isOpened, isPreview, isStopped, linkTo, loadGlobalScript, loadGlobalStyle, loadStyle, maximumZindex, moveTo, none, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, randStr, resetActionSetting, runScript, send_event, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setDestroyed, setInternalHandlers, setMaximumZindex, setOpened, setPreviousFocus, setState$1 as setState, setStopped, setSystem, show, showAction, showModal, showOnScroll, showOnTime, state, states, stopped, system, toBr, updateCustomHandlers, updateCustomVariables, updateInternalHandlers, widget };
|