@plaidev/karte-action-sdk 1.1.113 → 1.1.114-27923606.791a6dfe
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.d.ts +73 -1
- package/dist/hydrate/index.es.js +462 -124
- package/dist/index.es.d.ts +73 -1
- package/dist/index.es.js +416 -106
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -928,6 +928,19 @@ const DefaultListBackground = DefaultListBackgroundNone;
|
|
928
928
|
* @internal
|
929
929
|
*/
|
930
930
|
const ListDirections = ['vertical', 'horizontal'];
|
931
|
+
const DefaultSliderButton = {
|
932
|
+
type: 'icon',
|
933
|
+
icon: 'chevron-left',
|
934
|
+
color: '#999',
|
935
|
+
fill: '#999',
|
936
|
+
size: '20px',
|
937
|
+
};
|
938
|
+
const DefaultSliderNavigationButton = {
|
939
|
+
type: 'circle',
|
940
|
+
size: '8px',
|
941
|
+
color: '#ddd',
|
942
|
+
colorActive: '#666',
|
943
|
+
};
|
931
944
|
|
932
945
|
function doPresent({ direction, deltaRate }, downFn, upFn, condition = false) {
|
933
946
|
if (direction === 'down' && deltaRate > 0) {
|
@@ -3555,7 +3568,7 @@ class FlexItem extends SvelteComponent {
|
|
3555
3568
|
|
3556
3569
|
/* src/components/RenderText.svelte generated by Svelte v3.53.1 */
|
3557
3570
|
|
3558
|
-
function get_each_context$
|
3571
|
+
function get_each_context$4(ctx, list, i) {
|
3559
3572
|
const child_ctx = ctx.slice();
|
3560
3573
|
child_ctx[2] = list[i];
|
3561
3574
|
return child_ctx;
|
@@ -3607,7 +3620,7 @@ function create_if_block$1(ctx) {
|
|
3607
3620
|
}
|
3608
3621
|
|
3609
3622
|
// (9:0) {#each items as item}
|
3610
|
-
function create_each_block$
|
3623
|
+
function create_each_block$4(ctx) {
|
3611
3624
|
let show_if;
|
3612
3625
|
let if_block_anchor;
|
3613
3626
|
|
@@ -3660,7 +3673,7 @@ function create_fragment$i(ctx) {
|
|
3660
3673
|
let each_blocks = [];
|
3661
3674
|
|
3662
3675
|
for (let i = 0; i < each_value.length; i += 1) {
|
3663
|
-
each_blocks[i] = create_each_block$
|
3676
|
+
each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
|
3664
3677
|
}
|
3665
3678
|
|
3666
3679
|
return {
|
@@ -3691,12 +3704,12 @@ function create_fragment$i(ctx) {
|
|
3691
3704
|
let i;
|
3692
3705
|
|
3693
3706
|
for (i = 0; i < each_value.length; i += 1) {
|
3694
|
-
const child_ctx = get_each_context$
|
3707
|
+
const child_ctx = get_each_context$4(ctx, each_value, i);
|
3695
3708
|
|
3696
3709
|
if (each_blocks[i]) {
|
3697
3710
|
each_blocks[i].p(child_ctx, dirty);
|
3698
3711
|
} else {
|
3699
|
-
each_blocks[i] = create_each_block$
|
3712
|
+
each_blocks[i] = create_each_block$4(child_ctx);
|
3700
3713
|
each_blocks[i].c();
|
3701
3714
|
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
3702
3715
|
}
|
@@ -5340,7 +5353,7 @@ function add_css$7(target) {
|
|
5340
5353
|
append_styles(target, "svelte-1ajmbw1", ".radio-buttons.svelte-1ajmbw1{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
|
5341
5354
|
}
|
5342
5355
|
|
5343
|
-
function get_each_context$
|
5356
|
+
function get_each_context$3(ctx, list, i) {
|
5344
5357
|
const child_ctx = ctx.slice();
|
5345
5358
|
child_ctx[7] = list[i];
|
5346
5359
|
child_ctx[9] = i;
|
@@ -5348,7 +5361,7 @@ function get_each_context$2(ctx, list, i) {
|
|
5348
5361
|
}
|
5349
5362
|
|
5350
5363
|
// (23:2) {#each _options as option, i}
|
5351
|
-
function create_each_block$
|
5364
|
+
function create_each_block$3(ctx) {
|
5352
5365
|
let label;
|
5353
5366
|
let input;
|
5354
5367
|
let t0;
|
@@ -5421,7 +5434,7 @@ function create_fragment$7(ctx) {
|
|
5421
5434
|
let each_blocks = [];
|
5422
5435
|
|
5423
5436
|
for (let i = 0; i < each_value.length; i += 1) {
|
5424
|
-
each_blocks[i] = create_each_block$
|
5437
|
+
each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
|
5425
5438
|
}
|
5426
5439
|
|
5427
5440
|
return {
|
@@ -5461,12 +5474,12 @@ function create_fragment$7(ctx) {
|
|
5461
5474
|
let i;
|
5462
5475
|
|
5463
5476
|
for (i = 0; i < each_value.length; i += 1) {
|
5464
|
-
const child_ctx = get_each_context$
|
5477
|
+
const child_ctx = get_each_context$3(ctx, each_value, i);
|
5465
5478
|
|
5466
5479
|
if (each_blocks[i]) {
|
5467
5480
|
each_blocks[i].p(child_ctx, dirty);
|
5468
5481
|
} else {
|
5469
|
-
each_blocks[i] = create_each_block$
|
5482
|
+
each_blocks[i] = create_each_block$3(child_ctx);
|
5470
5483
|
each_blocks[i].c();
|
5471
5484
|
each_blocks[i].m(div, null);
|
5472
5485
|
}
|
@@ -5539,7 +5552,7 @@ function add_css$6(target) {
|
|
5539
5552
|
append_styles(target, "svelte-1ajmbw1", ".radio-buttons.svelte-1ajmbw1{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
|
5540
5553
|
}
|
5541
5554
|
|
5542
|
-
function get_each_context$
|
5555
|
+
function get_each_context$2(ctx, list, i) {
|
5543
5556
|
const child_ctx = ctx.slice();
|
5544
5557
|
child_ctx[6] = list[i];
|
5545
5558
|
child_ctx[8] = i;
|
@@ -5592,7 +5605,7 @@ function create_if_block(ctx) {
|
|
5592
5605
|
}
|
5593
5606
|
|
5594
5607
|
// (24:4) {#each _options as option, i}
|
5595
|
-
function create_each_block$
|
5608
|
+
function create_each_block$2(ctx) {
|
5596
5609
|
let option;
|
5597
5610
|
let t;
|
5598
5611
|
let option_value_value;
|
@@ -5663,7 +5676,7 @@ function create_fragment$6(ctx) {
|
|
5663
5676
|
let each_blocks = [];
|
5664
5677
|
|
5665
5678
|
for (let i = 0; i < each_value.length; i += 1) {
|
5666
|
-
each_blocks[i] = create_each_block$
|
5679
|
+
each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
|
5667
5680
|
}
|
5668
5681
|
|
5669
5682
|
return {
|
@@ -5713,12 +5726,12 @@ function create_fragment$6(ctx) {
|
|
5713
5726
|
let i;
|
5714
5727
|
|
5715
5728
|
for (i = 0; i < each_value.length; i += 1) {
|
5716
|
-
const child_ctx = get_each_context$
|
5729
|
+
const child_ctx = get_each_context$2(ctx, each_value, i);
|
5717
5730
|
|
5718
5731
|
if (each_blocks[i]) {
|
5719
5732
|
each_blocks[i].p(child_ctx, dirty);
|
5720
5733
|
} else {
|
5721
|
-
each_blocks[i] = create_each_block$
|
5734
|
+
each_blocks[i] = create_each_block$2(child_ctx);
|
5722
5735
|
each_blocks[i].c();
|
5723
5736
|
each_blocks[i].m(select, null);
|
5724
5737
|
}
|
@@ -5789,7 +5802,7 @@ function add_css$5(target) {
|
|
5789
5802
|
append_styles(target, "svelte-3uhiw4", ".check-boxes.svelte-3uhiw4{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
|
5790
5803
|
}
|
5791
5804
|
|
5792
|
-
function get_each_context(ctx, list, i) {
|
5805
|
+
function get_each_context$1(ctx, list, i) {
|
5793
5806
|
const child_ctx = ctx.slice();
|
5794
5807
|
child_ctx[8] = list[i];
|
5795
5808
|
child_ctx[10] = i;
|
@@ -5797,7 +5810,7 @@ function get_each_context(ctx, list, i) {
|
|
5797
5810
|
}
|
5798
5811
|
|
5799
5812
|
// (30:2) {#each _options as option, i}
|
5800
|
-
function create_each_block(ctx) {
|
5813
|
+
function create_each_block$1(ctx) {
|
5801
5814
|
let label;
|
5802
5815
|
let input;
|
5803
5816
|
let t0;
|
@@ -5870,7 +5883,7 @@ function create_fragment$5(ctx) {
|
|
5870
5883
|
let each_blocks = [];
|
5871
5884
|
|
5872
5885
|
for (let i = 0; i < each_value.length; i += 1) {
|
5873
|
-
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
5886
|
+
each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
|
5874
5887
|
}
|
5875
5888
|
|
5876
5889
|
return {
|
@@ -5910,12 +5923,12 @@ function create_fragment$5(ctx) {
|
|
5910
5923
|
let i;
|
5911
5924
|
|
5912
5925
|
for (i = 0; i < each_value.length; i += 1) {
|
5913
|
-
const child_ctx = get_each_context(ctx, each_value, i);
|
5926
|
+
const child_ctx = get_each_context$1(ctx, each_value, i);
|
5914
5927
|
|
5915
5928
|
if (each_blocks[i]) {
|
5916
5929
|
each_blocks[i].p(child_ctx, dirty);
|
5917
5930
|
} else {
|
5918
|
-
each_blocks[i] = create_each_block(child_ctx);
|
5931
|
+
each_blocks[i] = create_each_block$1(child_ctx);
|
5919
5932
|
each_blocks[i].c();
|
5920
5933
|
each_blocks[i].m(div, null);
|
5921
5934
|
}
|
@@ -5996,94 +6009,220 @@ class FormCheckBoxes extends SvelteComponent {
|
|
5996
6009
|
/* src/components/Slider.svelte generated by Svelte v3.53.1 */
|
5997
6010
|
|
5998
6011
|
function add_css$4(target) {
|
5999
|
-
append_styles(target, "svelte-
|
6012
|
+
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%}");
|
6013
|
+
}
|
6014
|
+
|
6015
|
+
function get_each_context(ctx, list, i) {
|
6016
|
+
const child_ctx = ctx.slice();
|
6017
|
+
child_ctx[50] = list[i];
|
6018
|
+
child_ctx[52] = i;
|
6019
|
+
return child_ctx;
|
6020
|
+
}
|
6021
|
+
|
6022
|
+
// (327:4) {#each items as _, i}
|
6023
|
+
function create_each_block(ctx) {
|
6024
|
+
let div1;
|
6025
|
+
let div0;
|
6026
|
+
let div0_style_value;
|
6027
|
+
let t;
|
6028
|
+
let mounted;
|
6029
|
+
let dispose;
|
6030
|
+
|
6031
|
+
function click_handler() {
|
6032
|
+
return /*click_handler*/ ctx[26](/*i*/ ctx[52]);
|
6033
|
+
}
|
6034
|
+
|
6035
|
+
return {
|
6036
|
+
c() {
|
6037
|
+
div1 = element("div");
|
6038
|
+
div0 = element("div");
|
6039
|
+
t = space();
|
6040
|
+
this.h();
|
6041
|
+
},
|
6042
|
+
l(nodes) {
|
6043
|
+
div1 = claim_element(nodes, "DIV", { class: true, style: true });
|
6044
|
+
var div1_nodes = children(div1);
|
6045
|
+
div0 = claim_element(div1_nodes, "DIV", { class: true, style: true });
|
6046
|
+
children(div0).forEach(detach);
|
6047
|
+
t = claim_space(div1_nodes);
|
6048
|
+
div1_nodes.forEach(detach);
|
6049
|
+
this.h();
|
6050
|
+
},
|
6051
|
+
h() {
|
6052
|
+
attr(div0, "class", "navigation-item-inner circle svelte-105wdod");
|
6053
|
+
attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[6](/*i*/ ctx[52]));
|
6054
|
+
attr(div1, "class", "navigation-item svelte-105wdod");
|
6055
|
+
attr(div1, "style", /*navigationItemStyle*/ ctx[7]);
|
6056
|
+
},
|
6057
|
+
m(target, anchor) {
|
6058
|
+
insert_hydration(target, div1, anchor);
|
6059
|
+
append_hydration(div1, div0);
|
6060
|
+
append_hydration(div1, t);
|
6061
|
+
|
6062
|
+
if (!mounted) {
|
6063
|
+
dispose = listen(div1, "click", click_handler);
|
6064
|
+
mounted = true;
|
6065
|
+
}
|
6066
|
+
},
|
6067
|
+
p(new_ctx, dirty) {
|
6068
|
+
ctx = new_ctx;
|
6069
|
+
|
6070
|
+
if (dirty[0] & /*getNavigationItemInnerStyle*/ 64 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[6](/*i*/ ctx[52]))) {
|
6071
|
+
attr(div0, "style", div0_style_value);
|
6072
|
+
}
|
6073
|
+
|
6074
|
+
if (dirty[0] & /*navigationItemStyle*/ 128) {
|
6075
|
+
attr(div1, "style", /*navigationItemStyle*/ ctx[7]);
|
6076
|
+
}
|
6077
|
+
},
|
6078
|
+
d(detaching) {
|
6079
|
+
if (detaching) detach(div1);
|
6080
|
+
mounted = false;
|
6081
|
+
dispose();
|
6082
|
+
}
|
6083
|
+
};
|
6000
6084
|
}
|
6001
6085
|
|
6002
6086
|
function create_fragment$4(ctx) {
|
6003
|
-
let
|
6087
|
+
let div9;
|
6004
6088
|
let div1;
|
6005
6089
|
let div0;
|
6006
6090
|
let div0_class_value;
|
6007
6091
|
let t0;
|
6092
|
+
let div4;
|
6093
|
+
let div3;
|
6008
6094
|
let div2;
|
6009
6095
|
let t1;
|
6096
|
+
let div7;
|
6097
|
+
let div6;
|
6098
|
+
let div5;
|
6010
6099
|
let t2;
|
6011
|
-
let
|
6012
|
-
let t3;
|
6100
|
+
let div8;
|
6013
6101
|
let current;
|
6014
6102
|
let mounted;
|
6015
6103
|
let dispose;
|
6016
|
-
const default_slot_template = /*#slots*/ ctx[
|
6017
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
6104
|
+
const default_slot_template = /*#slots*/ ctx[23].default;
|
6105
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[22], null);
|
6106
|
+
let each_value = /*items*/ ctx[3];
|
6107
|
+
let each_blocks = [];
|
6108
|
+
|
6109
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
6110
|
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
6111
|
+
}
|
6018
6112
|
|
6019
6113
|
return {
|
6020
6114
|
c() {
|
6021
|
-
|
6115
|
+
div9 = element("div");
|
6022
6116
|
div1 = element("div");
|
6023
6117
|
div0 = element("div");
|
6024
6118
|
if (default_slot) default_slot.c();
|
6025
6119
|
t0 = space();
|
6120
|
+
div4 = element("div");
|
6121
|
+
div3 = element("div");
|
6026
6122
|
div2 = element("div");
|
6027
|
-
t1 =
|
6123
|
+
t1 = space();
|
6124
|
+
div7 = element("div");
|
6125
|
+
div6 = element("div");
|
6126
|
+
div5 = element("div");
|
6028
6127
|
t2 = space();
|
6029
|
-
|
6030
|
-
|
6128
|
+
div8 = element("div");
|
6129
|
+
|
6130
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
6131
|
+
each_blocks[i].c();
|
6132
|
+
}
|
6133
|
+
|
6031
6134
|
this.h();
|
6032
6135
|
},
|
6033
6136
|
l(nodes) {
|
6034
|
-
|
6035
|
-
var
|
6036
|
-
div1 = claim_element(
|
6137
|
+
div9 = claim_element(nodes, "DIV", { class: true });
|
6138
|
+
var div9_nodes = children(div9);
|
6139
|
+
div1 = claim_element(div9_nodes, "DIV", { class: true });
|
6037
6140
|
var div1_nodes = children(div1);
|
6038
6141
|
div0 = claim_element(div1_nodes, "DIV", { class: true, style: true });
|
6039
6142
|
var div0_nodes = children(div0);
|
6040
6143
|
if (default_slot) default_slot.l(div0_nodes);
|
6041
6144
|
div0_nodes.forEach(detach);
|
6042
6145
|
div1_nodes.forEach(detach);
|
6043
|
-
t0 = claim_space(
|
6044
|
-
|
6045
|
-
var
|
6046
|
-
|
6047
|
-
div2_nodes.forEach(detach);
|
6048
|
-
t2 = claim_space(div4_nodes);
|
6049
|
-
div3 = claim_element(div4_nodes, "DIV", { class: true });
|
6146
|
+
t0 = claim_space(div9_nodes);
|
6147
|
+
div4 = claim_element(div9_nodes, "DIV", { class: true });
|
6148
|
+
var div4_nodes = children(div4);
|
6149
|
+
div3 = claim_element(div4_nodes, "DIV", { class: true, style: true });
|
6050
6150
|
var div3_nodes = children(div3);
|
6051
|
-
|
6151
|
+
div2 = claim_element(div3_nodes, "DIV", { class: true, style: true });
|
6152
|
+
children(div2).forEach(detach);
|
6052
6153
|
div3_nodes.forEach(detach);
|
6053
6154
|
div4_nodes.forEach(detach);
|
6155
|
+
t1 = claim_space(div9_nodes);
|
6156
|
+
div7 = claim_element(div9_nodes, "DIV", { class: true });
|
6157
|
+
var div7_nodes = children(div7);
|
6158
|
+
div6 = claim_element(div7_nodes, "DIV", { class: true, style: true });
|
6159
|
+
var div6_nodes = children(div6);
|
6160
|
+
div5 = claim_element(div6_nodes, "DIV", { class: true, style: true });
|
6161
|
+
children(div5).forEach(detach);
|
6162
|
+
div6_nodes.forEach(detach);
|
6163
|
+
div7_nodes.forEach(detach);
|
6164
|
+
t2 = claim_space(div9_nodes);
|
6165
|
+
div8 = claim_element(div9_nodes, "DIV", { class: true, style: true });
|
6166
|
+
var div8_nodes = children(div8);
|
6167
|
+
|
6168
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
6169
|
+
each_blocks[i].l(div8_nodes);
|
6170
|
+
}
|
6171
|
+
|
6172
|
+
div8_nodes.forEach(detach);
|
6173
|
+
div9_nodes.forEach(detach);
|
6054
6174
|
this.h();
|
6055
6175
|
},
|
6056
6176
|
h() {
|
6057
|
-
attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[
|
6058
|
-
attr(div0, "style", /*slideStyle*/ ctx[
|
6059
|
-
attr(div1, "class", "container svelte-
|
6060
|
-
attr(div2, "class", "prev-
|
6061
|
-
attr(
|
6062
|
-
attr(
|
6177
|
+
attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[10]) + " svelte-105wdod"));
|
6178
|
+
attr(div0, "style", /*slideStyle*/ ctx[11]);
|
6179
|
+
attr(div1, "class", "container svelte-105wdod");
|
6180
|
+
attr(div2, "class", "prev-icon svelte-105wdod");
|
6181
|
+
attr(div2, "style", /*prevIconStyle*/ ctx[9]);
|
6182
|
+
attr(div3, "class", "button-container svelte-105wdod");
|
6183
|
+
attr(div3, "style", /*prevButtonContainerStyle*/ ctx[0]);
|
6184
|
+
attr(div4, "class", "prev-button svelte-105wdod");
|
6185
|
+
attr(div5, "class", "next-icon svelte-105wdod");
|
6186
|
+
attr(div5, "style", /*nextIconStyle*/ ctx[8]);
|
6187
|
+
attr(div6, "class", "button-container svelte-105wdod");
|
6188
|
+
attr(div6, "style", /*nextButtonContainerStyle*/ ctx[1]);
|
6189
|
+
attr(div7, "class", "next-button svelte-105wdod");
|
6190
|
+
attr(div8, "class", "navigation svelte-105wdod");
|
6191
|
+
attr(div8, "style", /*navigationStyle*/ ctx[2]);
|
6192
|
+
attr(div9, "class", "root svelte-105wdod");
|
6063
6193
|
},
|
6064
6194
|
m(target, anchor) {
|
6065
|
-
insert_hydration(target,
|
6066
|
-
append_hydration(
|
6195
|
+
insert_hydration(target, div9, anchor);
|
6196
|
+
append_hydration(div9, div1);
|
6067
6197
|
append_hydration(div1, div0);
|
6068
6198
|
|
6069
6199
|
if (default_slot) {
|
6070
6200
|
default_slot.m(div0, null);
|
6071
6201
|
}
|
6072
6202
|
|
6073
|
-
/*div0_binding*/ ctx[
|
6074
|
-
/*div1_binding*/ ctx[
|
6075
|
-
append_hydration(
|
6076
|
-
append_hydration(
|
6077
|
-
append_hydration(div2, t1);
|
6078
|
-
append_hydration(div4, t2);
|
6203
|
+
/*div0_binding*/ ctx[24](div0);
|
6204
|
+
/*div1_binding*/ ctx[25](div1);
|
6205
|
+
append_hydration(div9, t0);
|
6206
|
+
append_hydration(div9, div4);
|
6079
6207
|
append_hydration(div4, div3);
|
6080
|
-
append_hydration(div3,
|
6208
|
+
append_hydration(div3, div2);
|
6209
|
+
append_hydration(div9, t1);
|
6210
|
+
append_hydration(div9, div7);
|
6211
|
+
append_hydration(div7, div6);
|
6212
|
+
append_hydration(div6, div5);
|
6213
|
+
append_hydration(div9, t2);
|
6214
|
+
append_hydration(div9, div8);
|
6215
|
+
|
6216
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
6217
|
+
each_blocks[i].m(div8, null);
|
6218
|
+
}
|
6219
|
+
|
6081
6220
|
current = true;
|
6082
6221
|
|
6083
6222
|
if (!mounted) {
|
6084
6223
|
dispose = [
|
6085
|
-
listen(
|
6086
|
-
listen(
|
6224
|
+
listen(div4, "click", /*prev*/ ctx[12]),
|
6225
|
+
listen(div7, "click", /*next*/ ctx[13])
|
6087
6226
|
];
|
6088
6227
|
|
6089
6228
|
mounted = true;
|
@@ -6091,26 +6230,69 @@ function create_fragment$4(ctx) {
|
|
6091
6230
|
},
|
6092
6231
|
p(ctx, dirty) {
|
6093
6232
|
if (default_slot) {
|
6094
|
-
if (default_slot.p && (!current || dirty[0] & /*$$scope*/
|
6233
|
+
if (default_slot.p && (!current || dirty[0] & /*$$scope*/ 4194304)) {
|
6095
6234
|
update_slot_base(
|
6096
6235
|
default_slot,
|
6097
6236
|
default_slot_template,
|
6098
6237
|
ctx,
|
6099
|
-
/*$$scope*/ ctx[
|
6238
|
+
/*$$scope*/ ctx[22],
|
6100
6239
|
!current
|
6101
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
6102
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
6240
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[22])
|
6241
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[22], dirty, null),
|
6103
6242
|
null
|
6104
6243
|
);
|
6105
6244
|
}
|
6106
6245
|
}
|
6107
6246
|
|
6108
|
-
if (!current || dirty[0] & /*slideClass*/
|
6247
|
+
if (!current || dirty[0] & /*slideClass*/ 1024 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[10]) + " svelte-105wdod"))) {
|
6109
6248
|
attr(div0, "class", div0_class_value);
|
6110
6249
|
}
|
6111
6250
|
|
6112
|
-
if (!current || dirty[0] & /*slideStyle*/
|
6113
|
-
attr(div0, "style", /*slideStyle*/ ctx[
|
6251
|
+
if (!current || dirty[0] & /*slideStyle*/ 2048) {
|
6252
|
+
attr(div0, "style", /*slideStyle*/ ctx[11]);
|
6253
|
+
}
|
6254
|
+
|
6255
|
+
if (!current || dirty[0] & /*prevIconStyle*/ 512) {
|
6256
|
+
attr(div2, "style", /*prevIconStyle*/ ctx[9]);
|
6257
|
+
}
|
6258
|
+
|
6259
|
+
if (!current || dirty[0] & /*prevButtonContainerStyle*/ 1) {
|
6260
|
+
attr(div3, "style", /*prevButtonContainerStyle*/ ctx[0]);
|
6261
|
+
}
|
6262
|
+
|
6263
|
+
if (!current || dirty[0] & /*nextIconStyle*/ 256) {
|
6264
|
+
attr(div5, "style", /*nextIconStyle*/ ctx[8]);
|
6265
|
+
}
|
6266
|
+
|
6267
|
+
if (!current || dirty[0] & /*nextButtonContainerStyle*/ 2) {
|
6268
|
+
attr(div6, "style", /*nextButtonContainerStyle*/ ctx[1]);
|
6269
|
+
}
|
6270
|
+
|
6271
|
+
if (dirty[0] & /*navigationItemStyle, set, getNavigationItemInnerStyle, items*/ 16584) {
|
6272
|
+
each_value = /*items*/ ctx[3];
|
6273
|
+
let i;
|
6274
|
+
|
6275
|
+
for (i = 0; i < each_value.length; i += 1) {
|
6276
|
+
const child_ctx = get_each_context(ctx, each_value, i);
|
6277
|
+
|
6278
|
+
if (each_blocks[i]) {
|
6279
|
+
each_blocks[i].p(child_ctx, dirty);
|
6280
|
+
} else {
|
6281
|
+
each_blocks[i] = create_each_block(child_ctx);
|
6282
|
+
each_blocks[i].c();
|
6283
|
+
each_blocks[i].m(div8, null);
|
6284
|
+
}
|
6285
|
+
}
|
6286
|
+
|
6287
|
+
for (; i < each_blocks.length; i += 1) {
|
6288
|
+
each_blocks[i].d(1);
|
6289
|
+
}
|
6290
|
+
|
6291
|
+
each_blocks.length = each_value.length;
|
6292
|
+
}
|
6293
|
+
|
6294
|
+
if (!current || dirty[0] & /*navigationStyle*/ 4) {
|
6295
|
+
attr(div8, "style", /*navigationStyle*/ ctx[2]);
|
6114
6296
|
}
|
6115
6297
|
},
|
6116
6298
|
i(local) {
|
@@ -6123,10 +6305,11 @@ function create_fragment$4(ctx) {
|
|
6123
6305
|
current = false;
|
6124
6306
|
},
|
6125
6307
|
d(detaching) {
|
6126
|
-
if (detaching) detach(
|
6308
|
+
if (detaching) detach(div9);
|
6127
6309
|
if (default_slot) default_slot.d(detaching);
|
6128
|
-
/*div0_binding*/ ctx[
|
6129
|
-
/*div1_binding*/ ctx[
|
6310
|
+
/*div0_binding*/ ctx[24](null);
|
6311
|
+
/*div1_binding*/ ctx[25](null);
|
6312
|
+
destroy_each(each_blocks, detaching);
|
6130
6313
|
mounted = false;
|
6131
6314
|
run_all(dispose);
|
6132
6315
|
}
|
@@ -6149,18 +6332,52 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
6149
6332
|
let slideStyle;
|
6150
6333
|
let slideClass;
|
6151
6334
|
let _loop;
|
6335
|
+
let prevIconStyle;
|
6336
|
+
let nextIconStyle;
|
6337
|
+
let navigationItemStyle;
|
6338
|
+
let getNavigationItemInnerStyle;
|
6152
6339
|
let { $$slots: slots = {}, $$scope } = $$props;
|
6340
|
+
let { loop = false } = $$props;
|
6341
|
+
|
6342
|
+
let { prevButton = {
|
6343
|
+
type: 'icon',
|
6344
|
+
icon: 'chevron-left',
|
6345
|
+
color: '#666',
|
6346
|
+
fill: '#666',
|
6347
|
+
size: '20px'
|
6348
|
+
} } = $$props;
|
6349
|
+
|
6350
|
+
let { prevButtonContainerStyle = 'height: 48px; width: 24px; margin: 0 0 0 8px;' } = $$props;
|
6351
|
+
|
6352
|
+
let { nextButton = {
|
6353
|
+
type: 'icon',
|
6354
|
+
icon: 'chevron-right',
|
6355
|
+
color: '#666',
|
6356
|
+
fill: '#666',
|
6357
|
+
size: '20px'
|
6358
|
+
} } = $$props;
|
6359
|
+
|
6360
|
+
let { nextButtonContainerStyle = 'height: 48px; width: 24px; margin: 0 8px 0 0;' } = $$props;
|
6361
|
+
|
6362
|
+
let { navigationButton = {
|
6363
|
+
type: 'circle',
|
6364
|
+
size: '8px',
|
6365
|
+
color: '#ddd',
|
6366
|
+
colorActive: '#666'
|
6367
|
+
} } = $$props;
|
6368
|
+
|
6369
|
+
let { navigationStyle = 'margin: 0 0 8px 0' } = $$props;
|
6153
6370
|
let items = [];
|
6154
6371
|
const dispatch = createEventDispatcher();
|
6155
6372
|
|
6156
6373
|
setContext('SLIDE', {
|
6157
6374
|
registerItem: ({ onBeforeSlide, onMount, onResize }) => {
|
6158
6375
|
const id = new Date().getTime().toString();
|
6159
|
-
$$invalidate(
|
6376
|
+
$$invalidate(3, items = [...items, { id, onBeforeSlide, onMount, onResize }]);
|
6160
6377
|
return id;
|
6161
6378
|
},
|
6162
6379
|
unregisterItem: id => {
|
6163
|
-
$$invalidate(
|
6380
|
+
$$invalidate(3, items = items.filter(item => item.id !== id));
|
6164
6381
|
}
|
6165
6382
|
});
|
6166
6383
|
|
@@ -6187,7 +6404,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
6187
6404
|
onBeforeSlide({ shiftCount, index, length: items.length });
|
6188
6405
|
});
|
6189
6406
|
|
6190
|
-
$$invalidate(
|
6407
|
+
$$invalidate(20, slidePosition = slidePosition + containerWidth * (calcPositionIndex(shiftCount, currentSlideId, items.length) - calcPositionIndex(previousShiftCount, currentSlideId, items.length)));
|
6191
6408
|
previousShiftCount = shiftCount;
|
6192
6409
|
resolve();
|
6193
6410
|
});
|
@@ -6198,8 +6415,8 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
6198
6415
|
if (transitioning) {
|
6199
6416
|
const slideRect = slideElement.getBoundingClientRect();
|
6200
6417
|
const containerRect = containerElement.getBoundingClientRect();
|
6201
|
-
$$invalidate(
|
6202
|
-
$$invalidate(
|
6418
|
+
$$invalidate(21, transitioning = false);
|
6419
|
+
$$invalidate(20, slidePosition = slideRect.x - containerRect.x);
|
6203
6420
|
}
|
6204
6421
|
}
|
6205
6422
|
|
@@ -6219,10 +6436,10 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
6219
6436
|
}
|
6220
6437
|
}
|
6221
6438
|
|
6222
|
-
$$invalidate(
|
6223
|
-
$$invalidate(
|
6439
|
+
$$invalidate(21, transitioning = true);
|
6440
|
+
$$invalidate(20, slidePosition = containerWidth * calcPositionIndex(shiftCount, slideIndex, items.length));
|
6224
6441
|
dispatch('change', { nextIndex: slideIndex });
|
6225
|
-
currentSlideId = slideIndex;
|
6442
|
+
$$invalidate(19, currentSlideId = slideIndex);
|
6226
6443
|
});
|
6227
6444
|
}
|
6228
6445
|
|
@@ -6244,7 +6461,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
6244
6461
|
const updatedSlidePosition = slidePosition + dx;
|
6245
6462
|
|
6246
6463
|
window.requestAnimationFrame(() => {
|
6247
|
-
$$invalidate(
|
6464
|
+
$$invalidate(20, slidePosition = updatedSlidePosition);
|
6248
6465
|
});
|
6249
6466
|
}
|
6250
6467
|
|
@@ -6252,6 +6469,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
6252
6469
|
}
|
6253
6470
|
|
6254
6471
|
function handleResize() {
|
6472
|
+
if (!containerElement) return;
|
6255
6473
|
containerWidth = containerElement.clientWidth;
|
6256
6474
|
|
6257
6475
|
items.forEach((item, index) => {
|
@@ -6263,7 +6481,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
6263
6481
|
});
|
6264
6482
|
});
|
6265
6483
|
|
6266
|
-
$$invalidate(
|
6484
|
+
$$invalidate(20, slidePosition = containerWidth * calcPositionIndex(shiftCount, currentSlideId, items.length));
|
6267
6485
|
}
|
6268
6486
|
|
6269
6487
|
function handleMoveEnd() {
|
@@ -6316,7 +6534,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
6316
6534
|
}
|
6317
6535
|
|
6318
6536
|
function handleTransitionEnd() {
|
6319
|
-
$$invalidate(
|
6537
|
+
$$invalidate(21, transitioning = false);
|
6320
6538
|
fixSlidePosition();
|
6321
6539
|
}
|
6322
6540
|
|
@@ -6327,7 +6545,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
6327
6545
|
item.onMount({ containerElement });
|
6328
6546
|
});
|
6329
6547
|
|
6330
|
-
currentSlideId = 0;
|
6548
|
+
$$invalidate(19, currentSlideId = 0);
|
6331
6549
|
|
6332
6550
|
if (_loop) {
|
6333
6551
|
await fixSlidePosition();
|
@@ -6376,122 +6594,213 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
6376
6594
|
setIndex(currentSlideId + 1);
|
6377
6595
|
}
|
6378
6596
|
|
6379
|
-
|
6597
|
+
async function set(index) {
|
6598
|
+
await fixSlidePosition();
|
6599
|
+
setIndex(index);
|
6600
|
+
}
|
6380
6601
|
|
6381
6602
|
function div0_binding($$value) {
|
6382
6603
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
6383
6604
|
slideElement = $$value;
|
6384
|
-
$$invalidate(
|
6605
|
+
$$invalidate(5, slideElement);
|
6385
6606
|
});
|
6386
6607
|
}
|
6387
6608
|
|
6388
6609
|
function div1_binding($$value) {
|
6389
6610
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
6390
6611
|
containerElement = $$value;
|
6391
|
-
$$invalidate(
|
6612
|
+
$$invalidate(4, containerElement);
|
6392
6613
|
});
|
6393
6614
|
}
|
6394
6615
|
|
6616
|
+
const click_handler = i => set(i);
|
6617
|
+
|
6395
6618
|
$$self.$$set = $$props => {
|
6396
|
-
if ('loop' in $$props) $$invalidate(
|
6397
|
-
if ('
|
6619
|
+
if ('loop' in $$props) $$invalidate(15, loop = $$props.loop);
|
6620
|
+
if ('prevButton' in $$props) $$invalidate(16, prevButton = $$props.prevButton);
|
6621
|
+
if ('prevButtonContainerStyle' in $$props) $$invalidate(0, prevButtonContainerStyle = $$props.prevButtonContainerStyle);
|
6622
|
+
if ('nextButton' in $$props) $$invalidate(17, nextButton = $$props.nextButton);
|
6623
|
+
if ('nextButtonContainerStyle' in $$props) $$invalidate(1, nextButtonContainerStyle = $$props.nextButtonContainerStyle);
|
6624
|
+
if ('navigationButton' in $$props) $$invalidate(18, navigationButton = $$props.navigationButton);
|
6625
|
+
if ('navigationStyle' in $$props) $$invalidate(2, navigationStyle = $$props.navigationStyle);
|
6626
|
+
if ('$$scope' in $$props) $$invalidate(22, $$scope = $$props.$$scope);
|
6398
6627
|
};
|
6399
6628
|
|
6400
6629
|
$$self.$$.update = () => {
|
6401
|
-
if ($$self.$$.dirty[0] & /*slidePosition*/
|
6402
|
-
$$invalidate(
|
6630
|
+
if ($$self.$$.dirty[0] & /*slidePosition*/ 1048576) {
|
6631
|
+
$$invalidate(11, slideStyle = slidePosition != null ? `left: ${slidePosition}px;` : '');
|
6403
6632
|
}
|
6404
6633
|
|
6405
|
-
if ($$self.$$.dirty[0] & /*transitioning*/
|
6406
|
-
$$invalidate(
|
6634
|
+
if ($$self.$$.dirty[0] & /*transitioning*/ 2097152) {
|
6635
|
+
$$invalidate(10, slideClass = ['slide', transitioning ? 'transition' : ''].join(' '));
|
6407
6636
|
}
|
6408
6637
|
|
6409
|
-
if ($$self.$$.dirty[0] & /*items, loop*/
|
6638
|
+
if ($$self.$$.dirty[0] & /*items, loop*/ 32776) {
|
6410
6639
|
_loop = items.length >= 3 ? loop : false;
|
6411
6640
|
}
|
6641
|
+
|
6642
|
+
if ($$self.$$.dirty[0] & /*prevButton*/ 65536) {
|
6643
|
+
$$invalidate(9, prevIconStyle = prevButton.type === 'icon'
|
6644
|
+
? `width: ${prevButton.size}; height: ${prevButton.size}; border-color: ${prevButton.color};`
|
6645
|
+
: '');
|
6646
|
+
}
|
6647
|
+
|
6648
|
+
if ($$self.$$.dirty[0] & /*nextButton*/ 131072) {
|
6649
|
+
$$invalidate(8, nextIconStyle = nextButton.type === 'icon'
|
6650
|
+
? `width: ${nextButton.size}; height: ${nextButton.size}; border-color: ${nextButton.color};`
|
6651
|
+
: '');
|
6652
|
+
}
|
6653
|
+
|
6654
|
+
if ($$self.$$.dirty[0] & /*navigationButton*/ 262144) {
|
6655
|
+
$$invalidate(7, navigationItemStyle = `padding: calc(${navigationButton.size} / 2);`);
|
6656
|
+
}
|
6657
|
+
|
6658
|
+
if ($$self.$$.dirty[0] & /*navigationButton, currentSlideId*/ 786432) {
|
6659
|
+
$$invalidate(6, getNavigationItemInnerStyle = i => `
|
6660
|
+
width: ${navigationButton.size};
|
6661
|
+
height: ${navigationButton.size};
|
6662
|
+
background-color: ${i === currentSlideId
|
6663
|
+
? navigationButton.colorActive
|
6664
|
+
: navigationButton.color};`);
|
6665
|
+
}
|
6412
6666
|
};
|
6413
6667
|
|
6414
6668
|
return [
|
6669
|
+
prevButtonContainerStyle,
|
6670
|
+
nextButtonContainerStyle,
|
6671
|
+
navigationStyle,
|
6672
|
+
items,
|
6415
6673
|
containerElement,
|
6416
6674
|
slideElement,
|
6675
|
+
getNavigationItemInnerStyle,
|
6676
|
+
navigationItemStyle,
|
6677
|
+
nextIconStyle,
|
6678
|
+
prevIconStyle,
|
6417
6679
|
slideClass,
|
6418
6680
|
slideStyle,
|
6419
6681
|
prev,
|
6420
6682
|
next,
|
6683
|
+
set,
|
6421
6684
|
loop,
|
6422
|
-
|
6685
|
+
prevButton,
|
6686
|
+
nextButton,
|
6687
|
+
navigationButton,
|
6688
|
+
currentSlideId,
|
6423
6689
|
slidePosition,
|
6424
6690
|
transitioning,
|
6425
6691
|
$$scope,
|
6426
6692
|
slots,
|
6427
6693
|
div0_binding,
|
6428
|
-
div1_binding
|
6694
|
+
div1_binding,
|
6695
|
+
click_handler
|
6429
6696
|
];
|
6430
6697
|
}
|
6431
6698
|
|
6432
6699
|
class Slider extends SvelteComponent {
|
6433
6700
|
constructor(options) {
|
6434
6701
|
super();
|
6435
|
-
|
6702
|
+
|
6703
|
+
init(
|
6704
|
+
this,
|
6705
|
+
options,
|
6706
|
+
instance$4,
|
6707
|
+
create_fragment$4,
|
6708
|
+
safe_not_equal,
|
6709
|
+
{
|
6710
|
+
loop: 15,
|
6711
|
+
prevButton: 16,
|
6712
|
+
prevButtonContainerStyle: 0,
|
6713
|
+
nextButton: 17,
|
6714
|
+
nextButtonContainerStyle: 1,
|
6715
|
+
navigationButton: 18,
|
6716
|
+
navigationStyle: 2
|
6717
|
+
},
|
6718
|
+
add_css$4,
|
6719
|
+
[-1, -1]
|
6720
|
+
);
|
6436
6721
|
}
|
6437
6722
|
}
|
6438
6723
|
|
6439
6724
|
/* src/components/SliderItem.svelte generated by Svelte v3.53.1 */
|
6440
6725
|
|
6441
6726
|
function add_css$3(target) {
|
6442
|
-
append_styles(target, "svelte-
|
6727
|
+
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}");
|
6443
6728
|
}
|
6444
6729
|
|
6445
6730
|
function create_fragment$3(ctx) {
|
6446
|
-
let
|
6731
|
+
let div1;
|
6732
|
+
let div0;
|
6447
6733
|
let current;
|
6448
|
-
|
6449
|
-
|
6734
|
+
let mounted;
|
6735
|
+
let dispose;
|
6736
|
+
const default_slot_template = /*#slots*/ ctx[8].default;
|
6737
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[7], null);
|
6450
6738
|
|
6451
6739
|
return {
|
6452
6740
|
c() {
|
6453
|
-
|
6741
|
+
div1 = element("div");
|
6742
|
+
div0 = element("div");
|
6454
6743
|
if (default_slot) default_slot.c();
|
6455
6744
|
this.h();
|
6456
6745
|
},
|
6457
6746
|
l(nodes) {
|
6458
|
-
|
6459
|
-
var
|
6460
|
-
|
6461
|
-
|
6747
|
+
div1 = claim_element(nodes, "DIV", { class: true, style: true });
|
6748
|
+
var div1_nodes = children(div1);
|
6749
|
+
div0 = claim_element(div1_nodes, "DIV", { class: true, style: true });
|
6750
|
+
var div0_nodes = children(div0);
|
6751
|
+
if (default_slot) default_slot.l(div0_nodes);
|
6752
|
+
div0_nodes.forEach(detach);
|
6753
|
+
div1_nodes.forEach(detach);
|
6462
6754
|
this.h();
|
6463
6755
|
},
|
6464
6756
|
h() {
|
6465
|
-
attr(
|
6466
|
-
attr(
|
6757
|
+
attr(div0, "class", "item-inner svelte-xzo1un");
|
6758
|
+
attr(div0, "style", /*_style*/ ctx[0]);
|
6759
|
+
attr(div1, "class", "item svelte-xzo1un");
|
6760
|
+
attr(div1, "style", /*itemStyle*/ ctx[1]);
|
6467
6761
|
},
|
6468
6762
|
m(target, anchor) {
|
6469
|
-
insert_hydration(target,
|
6763
|
+
insert_hydration(target, div1, anchor);
|
6764
|
+
append_hydration(div1, div0);
|
6470
6765
|
|
6471
6766
|
if (default_slot) {
|
6472
|
-
default_slot.m(
|
6767
|
+
default_slot.m(div0, null);
|
6473
6768
|
}
|
6474
6769
|
|
6475
6770
|
current = true;
|
6771
|
+
|
6772
|
+
if (!mounted) {
|
6773
|
+
dispose = listen(div1, "click", function () {
|
6774
|
+
if (is_function(/*click*/ ctx[2])) /*click*/ ctx[2].apply(this, arguments);
|
6775
|
+
});
|
6776
|
+
|
6777
|
+
mounted = true;
|
6778
|
+
}
|
6476
6779
|
},
|
6477
|
-
p(
|
6780
|
+
p(new_ctx, [dirty]) {
|
6781
|
+
ctx = new_ctx;
|
6782
|
+
|
6478
6783
|
if (default_slot) {
|
6479
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
6784
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 128)) {
|
6480
6785
|
update_slot_base(
|
6481
6786
|
default_slot,
|
6482
6787
|
default_slot_template,
|
6483
6788
|
ctx,
|
6484
|
-
/*$$scope*/ ctx[
|
6789
|
+
/*$$scope*/ ctx[7],
|
6485
6790
|
!current
|
6486
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
6487
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
6791
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[7])
|
6792
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[7], dirty, null),
|
6488
6793
|
null
|
6489
6794
|
);
|
6490
6795
|
}
|
6491
6796
|
}
|
6492
6797
|
|
6493
|
-
if (!current || dirty & /*
|
6494
|
-
attr(
|
6798
|
+
if (!current || dirty & /*_style*/ 1) {
|
6799
|
+
attr(div0, "style", /*_style*/ ctx[0]);
|
6800
|
+
}
|
6801
|
+
|
6802
|
+
if (!current || dirty & /*itemStyle*/ 2) {
|
6803
|
+
attr(div1, "style", /*itemStyle*/ ctx[1]);
|
6495
6804
|
}
|
6496
6805
|
},
|
6497
6806
|
i(local) {
|
@@ -6504,24 +6813,27 @@ function create_fragment$3(ctx) {
|
|
6504
6813
|
current = false;
|
6505
6814
|
},
|
6506
6815
|
d(detaching) {
|
6507
|
-
if (detaching) detach(
|
6816
|
+
if (detaching) detach(div1);
|
6508
6817
|
if (default_slot) default_slot.d(detaching);
|
6818
|
+
mounted = false;
|
6819
|
+
dispose();
|
6509
6820
|
}
|
6510
6821
|
};
|
6511
6822
|
}
|
6512
6823
|
|
6513
6824
|
function instance$3($$self, $$props, $$invalidate) {
|
6825
|
+
let click;
|
6514
6826
|
let itemStyle;
|
6515
6827
|
let { $$slots: slots = {}, $$scope } = $$props;
|
6516
6828
|
const { registerItem, unregisterItem } = getContext('SLIDE');
|
6517
6829
|
|
6518
6830
|
const id = registerItem({
|
6519
6831
|
onMount({ containerElement }) {
|
6520
|
-
$$invalidate(
|
6832
|
+
$$invalidate(5, itemWidth = containerElement.clientWidth);
|
6521
6833
|
},
|
6522
6834
|
// TODO: onBeforeSlideと重複するロジックをまとめる
|
6523
6835
|
onResize({ containerElement, shiftCount, index, length }) {
|
6524
|
-
$$invalidate(
|
6836
|
+
$$invalidate(5, itemWidth = containerElement.clientWidth);
|
6525
6837
|
let fixedShiftCount;
|
6526
6838
|
|
6527
6839
|
if (index - shiftCount < 0) {
|
@@ -6532,7 +6844,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
6532
6844
|
fixedShiftCount = shiftCount;
|
6533
6845
|
}
|
6534
6846
|
|
6535
|
-
$$invalidate(
|
6847
|
+
$$invalidate(6, itemTransform = -fixedShiftCount * (itemWidth ?? 0));
|
6536
6848
|
},
|
6537
6849
|
onBeforeSlide({ shiftCount, index, length }) {
|
6538
6850
|
let fixedShiftCount;
|
@@ -6545,7 +6857,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
6545
6857
|
fixedShiftCount = shiftCount;
|
6546
6858
|
}
|
6547
6859
|
|
6548
|
-
$$invalidate(
|
6860
|
+
$$invalidate(6, itemTransform = -fixedShiftCount * (itemWidth ?? 0));
|
6549
6861
|
}
|
6550
6862
|
});
|
6551
6863
|
|
@@ -6553,28 +6865,54 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
6553
6865
|
unregisterItem(id);
|
6554
6866
|
});
|
6555
6867
|
|
6868
|
+
let { onClick = { operation: 'none', args: [] } } = $$props;
|
6869
|
+
let { clickEventName = '' } = $$props;
|
6870
|
+
let { _style = 'cursor: ' } = $$props;
|
6556
6871
|
let itemWidth = null;
|
6557
6872
|
let itemTransform = 0;
|
6558
6873
|
|
6559
6874
|
$$self.$$set = $$props => {
|
6560
|
-
if ('
|
6875
|
+
if ('onClick' in $$props) $$invalidate(3, onClick = $$props.onClick);
|
6876
|
+
if ('clickEventName' in $$props) $$invalidate(4, clickEventName = $$props.clickEventName);
|
6877
|
+
if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
|
6878
|
+
if ('$$scope' in $$props) $$invalidate(7, $$scope = $$props.$$scope);
|
6561
6879
|
};
|
6562
6880
|
|
6563
6881
|
$$self.$$.update = () => {
|
6564
|
-
if ($$self.$$.dirty & /*
|
6565
|
-
$$invalidate(
|
6882
|
+
if ($$self.$$.dirty & /*clickEventName, onClick*/ 24) {
|
6883
|
+
$$invalidate(2, click = () => {
|
6884
|
+
if (clickEventName) {
|
6885
|
+
send_event(clickEventName);
|
6886
|
+
}
|
6887
|
+
|
6888
|
+
execOnClickOperation(onClick);
|
6889
|
+
});
|
6890
|
+
}
|
6891
|
+
|
6892
|
+
if ($$self.$$.dirty & /*itemWidth, itemTransform*/ 96) {
|
6893
|
+
$$invalidate(1, itemStyle = itemWidth != null
|
6566
6894
|
? `width: ${itemWidth}px; transform: translateX(${itemTransform}px);`
|
6567
6895
|
: '');
|
6568
6896
|
}
|
6569
6897
|
};
|
6570
6898
|
|
6571
|
-
return [
|
6899
|
+
return [
|
6900
|
+
_style,
|
6901
|
+
itemStyle,
|
6902
|
+
click,
|
6903
|
+
onClick,
|
6904
|
+
clickEventName,
|
6905
|
+
itemWidth,
|
6906
|
+
itemTransform,
|
6907
|
+
$$scope,
|
6908
|
+
slots
|
6909
|
+
];
|
6572
6910
|
}
|
6573
6911
|
|
6574
6912
|
class SliderItem extends SvelteComponent {
|
6575
6913
|
constructor(options) {
|
6576
6914
|
super();
|
6577
|
-
init(this, options, instance$3, create_fragment$3, safe_not_equal, {}, add_css$3);
|
6915
|
+
init(this, options, instance$3, create_fragment$3, safe_not_equal, { onClick: 3, clickEventName: 4, _style: 0 }, add_css$3);
|
6578
6916
|
}
|
6579
6917
|
}
|
6580
6918
|
|
@@ -6965,4 +7303,4 @@ class ImageBlock extends SvelteComponent {
|
|
6965
7303
|
}
|
6966
7304
|
}
|
6967
7305
|
|
6968
|
-
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, 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, Slider, SliderItem, 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 };
|
7306
|
+
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, DefaultSliderButton, DefaultSliderNavigationButton, 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, Slider, SliderItem, 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 };
|