@plaidev/karte-action-sdk 1.1.113 → 1.1.114-27923606.791a6dfe
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 +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/index.es.js
CHANGED
@@ -980,6 +980,19 @@ const DefaultListBackground = DefaultListBackgroundNone;
|
|
980
980
|
* @internal
|
981
981
|
*/
|
982
982
|
const ListDirections = ['vertical', 'horizontal'];
|
983
|
+
const DefaultSliderButton = {
|
984
|
+
type: 'icon',
|
985
|
+
icon: 'chevron-left',
|
986
|
+
color: '#999',
|
987
|
+
fill: '#999',
|
988
|
+
size: '20px',
|
989
|
+
};
|
990
|
+
const DefaultSliderNavigationButton = {
|
991
|
+
type: 'circle',
|
992
|
+
size: '8px',
|
993
|
+
color: '#ddd',
|
994
|
+
colorActive: '#666',
|
995
|
+
};
|
983
996
|
|
984
997
|
function doPresent({ direction, deltaRate }, downFn, upFn, condition = false) {
|
985
998
|
if (direction === 'down' && deltaRate > 0) {
|
@@ -3519,7 +3532,7 @@ class FlexItem extends SvelteComponent {
|
|
3519
3532
|
|
3520
3533
|
/* src/components/RenderText.svelte generated by Svelte v3.53.1 */
|
3521
3534
|
|
3522
|
-
function get_each_context$
|
3535
|
+
function get_each_context$4(ctx, list, i) {
|
3523
3536
|
const child_ctx = ctx.slice();
|
3524
3537
|
child_ctx[2] = list[i];
|
3525
3538
|
return child_ctx;
|
@@ -3565,7 +3578,7 @@ function create_if_block$1(ctx) {
|
|
3565
3578
|
}
|
3566
3579
|
|
3567
3580
|
// (9:0) {#each items as item}
|
3568
|
-
function create_each_block$
|
3581
|
+
function create_each_block$4(ctx) {
|
3569
3582
|
let show_if;
|
3570
3583
|
let if_block_anchor;
|
3571
3584
|
|
@@ -3614,7 +3627,7 @@ function create_fragment$i(ctx) {
|
|
3614
3627
|
let each_blocks = [];
|
3615
3628
|
|
3616
3629
|
for (let i = 0; i < each_value.length; i += 1) {
|
3617
|
-
each_blocks[i] = create_each_block$
|
3630
|
+
each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
|
3618
3631
|
}
|
3619
3632
|
|
3620
3633
|
return {
|
@@ -3638,12 +3651,12 @@ function create_fragment$i(ctx) {
|
|
3638
3651
|
let i;
|
3639
3652
|
|
3640
3653
|
for (i = 0; i < each_value.length; i += 1) {
|
3641
|
-
const child_ctx = get_each_context$
|
3654
|
+
const child_ctx = get_each_context$4(ctx, each_value, i);
|
3642
3655
|
|
3643
3656
|
if (each_blocks[i]) {
|
3644
3657
|
each_blocks[i].p(child_ctx, dirty);
|
3645
3658
|
} else {
|
3646
|
-
each_blocks[i] = create_each_block$
|
3659
|
+
each_blocks[i] = create_each_block$4(child_ctx);
|
3647
3660
|
each_blocks[i].c();
|
3648
3661
|
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
3649
3662
|
}
|
@@ -5158,7 +5171,7 @@ function add_css$7(target) {
|
|
5158
5171
|
append_styles(target, "svelte-1ajmbw1", ".radio-buttons.svelte-1ajmbw1{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
|
5159
5172
|
}
|
5160
5173
|
|
5161
|
-
function get_each_context$
|
5174
|
+
function get_each_context$3(ctx, list, i) {
|
5162
5175
|
const child_ctx = ctx.slice();
|
5163
5176
|
child_ctx[7] = list[i];
|
5164
5177
|
child_ctx[9] = i;
|
@@ -5166,7 +5179,7 @@ function get_each_context$2(ctx, list, i) {
|
|
5166
5179
|
}
|
5167
5180
|
|
5168
5181
|
// (23:2) {#each _options as option, i}
|
5169
|
-
function create_each_block$
|
5182
|
+
function create_each_block$3(ctx) {
|
5170
5183
|
let label;
|
5171
5184
|
let input;
|
5172
5185
|
let t0;
|
@@ -5226,7 +5239,7 @@ function create_fragment$7(ctx) {
|
|
5226
5239
|
let each_blocks = [];
|
5227
5240
|
|
5228
5241
|
for (let i = 0; i < each_value.length; i += 1) {
|
5229
|
-
each_blocks[i] = create_each_block$
|
5242
|
+
each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
|
5230
5243
|
}
|
5231
5244
|
|
5232
5245
|
return {
|
@@ -5252,12 +5265,12 @@ function create_fragment$7(ctx) {
|
|
5252
5265
|
let i;
|
5253
5266
|
|
5254
5267
|
for (i = 0; i < each_value.length; i += 1) {
|
5255
|
-
const child_ctx = get_each_context$
|
5268
|
+
const child_ctx = get_each_context$3(ctx, each_value, i);
|
5256
5269
|
|
5257
5270
|
if (each_blocks[i]) {
|
5258
5271
|
each_blocks[i].p(child_ctx, dirty);
|
5259
5272
|
} else {
|
5260
|
-
each_blocks[i] = create_each_block$
|
5273
|
+
each_blocks[i] = create_each_block$3(child_ctx);
|
5261
5274
|
each_blocks[i].c();
|
5262
5275
|
each_blocks[i].m(div, null);
|
5263
5276
|
}
|
@@ -5330,7 +5343,7 @@ function add_css$6(target) {
|
|
5330
5343
|
append_styles(target, "svelte-1ajmbw1", ".radio-buttons.svelte-1ajmbw1{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
|
5331
5344
|
}
|
5332
5345
|
|
5333
|
-
function get_each_context$
|
5346
|
+
function get_each_context$2(ctx, list, i) {
|
5334
5347
|
const child_ctx = ctx.slice();
|
5335
5348
|
child_ctx[6] = list[i];
|
5336
5349
|
child_ctx[8] = i;
|
@@ -5377,7 +5390,7 @@ function create_if_block(ctx) {
|
|
5377
5390
|
}
|
5378
5391
|
|
5379
5392
|
// (24:4) {#each _options as option, i}
|
5380
|
-
function create_each_block$
|
5393
|
+
function create_each_block$2(ctx) {
|
5381
5394
|
let option;
|
5382
5395
|
let t;
|
5383
5396
|
let option_value_value;
|
@@ -5437,7 +5450,7 @@ function create_fragment$6(ctx) {
|
|
5437
5450
|
let each_blocks = [];
|
5438
5451
|
|
5439
5452
|
for (let i = 0; i < each_value.length; i += 1) {
|
5440
|
-
each_blocks[i] = create_each_block$
|
5453
|
+
each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
|
5441
5454
|
}
|
5442
5455
|
|
5443
5456
|
return {
|
@@ -5470,12 +5483,12 @@ function create_fragment$6(ctx) {
|
|
5470
5483
|
let i;
|
5471
5484
|
|
5472
5485
|
for (i = 0; i < each_value.length; i += 1) {
|
5473
|
-
const child_ctx = get_each_context$
|
5486
|
+
const child_ctx = get_each_context$2(ctx, each_value, i);
|
5474
5487
|
|
5475
5488
|
if (each_blocks[i]) {
|
5476
5489
|
each_blocks[i].p(child_ctx, dirty);
|
5477
5490
|
} else {
|
5478
|
-
each_blocks[i] = create_each_block$
|
5491
|
+
each_blocks[i] = create_each_block$2(child_ctx);
|
5479
5492
|
each_blocks[i].c();
|
5480
5493
|
each_blocks[i].m(select, null);
|
5481
5494
|
}
|
@@ -5546,7 +5559,7 @@ function add_css$5(target) {
|
|
5546
5559
|
append_styles(target, "svelte-3uhiw4", ".check-boxes.svelte-3uhiw4{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
|
5547
5560
|
}
|
5548
5561
|
|
5549
|
-
function get_each_context(ctx, list, i) {
|
5562
|
+
function get_each_context$1(ctx, list, i) {
|
5550
5563
|
const child_ctx = ctx.slice();
|
5551
5564
|
child_ctx[8] = list[i];
|
5552
5565
|
child_ctx[10] = i;
|
@@ -5554,7 +5567,7 @@ function get_each_context(ctx, list, i) {
|
|
5554
5567
|
}
|
5555
5568
|
|
5556
5569
|
// (30:2) {#each _options as option, i}
|
5557
|
-
function create_each_block(ctx) {
|
5570
|
+
function create_each_block$1(ctx) {
|
5558
5571
|
let label;
|
5559
5572
|
let input;
|
5560
5573
|
let t0;
|
@@ -5614,7 +5627,7 @@ function create_fragment$5(ctx) {
|
|
5614
5627
|
let each_blocks = [];
|
5615
5628
|
|
5616
5629
|
for (let i = 0; i < each_value.length; i += 1) {
|
5617
|
-
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
5630
|
+
each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
|
5618
5631
|
}
|
5619
5632
|
|
5620
5633
|
return {
|
@@ -5640,12 +5653,12 @@ function create_fragment$5(ctx) {
|
|
5640
5653
|
let i;
|
5641
5654
|
|
5642
5655
|
for (i = 0; i < each_value.length; i += 1) {
|
5643
|
-
const child_ctx = get_each_context(ctx, each_value, i);
|
5656
|
+
const child_ctx = get_each_context$1(ctx, each_value, i);
|
5644
5657
|
|
5645
5658
|
if (each_blocks[i]) {
|
5646
5659
|
each_blocks[i].p(child_ctx, dirty);
|
5647
5660
|
} else {
|
5648
|
-
each_blocks[i] = create_each_block(child_ctx);
|
5661
|
+
each_blocks[i] = create_each_block$1(child_ctx);
|
5649
5662
|
each_blocks[i].c();
|
5650
5663
|
each_blocks[i].m(div, null);
|
5651
5664
|
}
|
@@ -5726,64 +5739,165 @@ class FormCheckBoxes extends SvelteComponent {
|
|
5726
5739
|
/* src/components/Slider.svelte generated by Svelte v3.53.1 */
|
5727
5740
|
|
5728
5741
|
function add_css$4(target) {
|
5729
|
-
append_styles(target, "svelte-
|
5742
|
+
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%}");
|
5743
|
+
}
|
5744
|
+
|
5745
|
+
function get_each_context(ctx, list, i) {
|
5746
|
+
const child_ctx = ctx.slice();
|
5747
|
+
child_ctx[50] = list[i];
|
5748
|
+
child_ctx[52] = i;
|
5749
|
+
return child_ctx;
|
5750
|
+
}
|
5751
|
+
|
5752
|
+
// (327:4) {#each items as _, i}
|
5753
|
+
function create_each_block(ctx) {
|
5754
|
+
let div1;
|
5755
|
+
let div0;
|
5756
|
+
let div0_style_value;
|
5757
|
+
let t;
|
5758
|
+
let mounted;
|
5759
|
+
let dispose;
|
5760
|
+
|
5761
|
+
function click_handler() {
|
5762
|
+
return /*click_handler*/ ctx[26](/*i*/ ctx[52]);
|
5763
|
+
}
|
5764
|
+
|
5765
|
+
return {
|
5766
|
+
c() {
|
5767
|
+
div1 = element("div");
|
5768
|
+
div0 = element("div");
|
5769
|
+
t = space();
|
5770
|
+
attr(div0, "class", "navigation-item-inner circle svelte-105wdod");
|
5771
|
+
attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[6](/*i*/ ctx[52]));
|
5772
|
+
attr(div1, "class", "navigation-item svelte-105wdod");
|
5773
|
+
attr(div1, "style", /*navigationItemStyle*/ ctx[7]);
|
5774
|
+
},
|
5775
|
+
m(target, anchor) {
|
5776
|
+
insert(target, div1, anchor);
|
5777
|
+
append(div1, div0);
|
5778
|
+
append(div1, t);
|
5779
|
+
|
5780
|
+
if (!mounted) {
|
5781
|
+
dispose = listen(div1, "click", click_handler);
|
5782
|
+
mounted = true;
|
5783
|
+
}
|
5784
|
+
},
|
5785
|
+
p(new_ctx, dirty) {
|
5786
|
+
ctx = new_ctx;
|
5787
|
+
|
5788
|
+
if (dirty[0] & /*getNavigationItemInnerStyle*/ 64 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[6](/*i*/ ctx[52]))) {
|
5789
|
+
attr(div0, "style", div0_style_value);
|
5790
|
+
}
|
5791
|
+
|
5792
|
+
if (dirty[0] & /*navigationItemStyle*/ 128) {
|
5793
|
+
attr(div1, "style", /*navigationItemStyle*/ ctx[7]);
|
5794
|
+
}
|
5795
|
+
},
|
5796
|
+
d(detaching) {
|
5797
|
+
if (detaching) detach(div1);
|
5798
|
+
mounted = false;
|
5799
|
+
dispose();
|
5800
|
+
}
|
5801
|
+
};
|
5730
5802
|
}
|
5731
5803
|
|
5732
5804
|
function create_fragment$4(ctx) {
|
5733
|
-
let
|
5805
|
+
let div9;
|
5734
5806
|
let div1;
|
5735
5807
|
let div0;
|
5736
5808
|
let div0_class_value;
|
5737
5809
|
let t0;
|
5810
|
+
let div4;
|
5811
|
+
let div3;
|
5738
5812
|
let div2;
|
5813
|
+
let t1;
|
5814
|
+
let div7;
|
5815
|
+
let div6;
|
5816
|
+
let div5;
|
5739
5817
|
let t2;
|
5740
|
-
let
|
5818
|
+
let div8;
|
5741
5819
|
let current;
|
5742
5820
|
let mounted;
|
5743
5821
|
let dispose;
|
5744
|
-
const default_slot_template = /*#slots*/ ctx[
|
5745
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
5822
|
+
const default_slot_template = /*#slots*/ ctx[23].default;
|
5823
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[22], null);
|
5824
|
+
let each_value = /*items*/ ctx[3];
|
5825
|
+
let each_blocks = [];
|
5826
|
+
|
5827
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
5828
|
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
5829
|
+
}
|
5746
5830
|
|
5747
5831
|
return {
|
5748
5832
|
c() {
|
5749
|
-
|
5833
|
+
div9 = element("div");
|
5750
5834
|
div1 = element("div");
|
5751
5835
|
div0 = element("div");
|
5752
5836
|
if (default_slot) default_slot.c();
|
5753
5837
|
t0 = space();
|
5838
|
+
div4 = element("div");
|
5839
|
+
div3 = element("div");
|
5754
5840
|
div2 = element("div");
|
5755
|
-
|
5841
|
+
t1 = space();
|
5842
|
+
div7 = element("div");
|
5843
|
+
div6 = element("div");
|
5844
|
+
div5 = element("div");
|
5756
5845
|
t2 = space();
|
5757
|
-
|
5758
|
-
|
5759
|
-
|
5760
|
-
|
5761
|
-
|
5762
|
-
|
5763
|
-
attr(
|
5764
|
-
attr(
|
5846
|
+
div8 = element("div");
|
5847
|
+
|
5848
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
5849
|
+
each_blocks[i].c();
|
5850
|
+
}
|
5851
|
+
|
5852
|
+
attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[10]) + " svelte-105wdod"));
|
5853
|
+
attr(div0, "style", /*slideStyle*/ ctx[11]);
|
5854
|
+
attr(div1, "class", "container svelte-105wdod");
|
5855
|
+
attr(div2, "class", "prev-icon svelte-105wdod");
|
5856
|
+
attr(div2, "style", /*prevIconStyle*/ ctx[9]);
|
5857
|
+
attr(div3, "class", "button-container svelte-105wdod");
|
5858
|
+
attr(div3, "style", /*prevButtonContainerStyle*/ ctx[0]);
|
5859
|
+
attr(div4, "class", "prev-button svelte-105wdod");
|
5860
|
+
attr(div5, "class", "next-icon svelte-105wdod");
|
5861
|
+
attr(div5, "style", /*nextIconStyle*/ ctx[8]);
|
5862
|
+
attr(div6, "class", "button-container svelte-105wdod");
|
5863
|
+
attr(div6, "style", /*nextButtonContainerStyle*/ ctx[1]);
|
5864
|
+
attr(div7, "class", "next-button svelte-105wdod");
|
5865
|
+
attr(div8, "class", "navigation svelte-105wdod");
|
5866
|
+
attr(div8, "style", /*navigationStyle*/ ctx[2]);
|
5867
|
+
attr(div9, "class", "root svelte-105wdod");
|
5765
5868
|
},
|
5766
5869
|
m(target, anchor) {
|
5767
|
-
insert(target,
|
5768
|
-
append(
|
5870
|
+
insert(target, div9, anchor);
|
5871
|
+
append(div9, div1);
|
5769
5872
|
append(div1, div0);
|
5770
5873
|
|
5771
5874
|
if (default_slot) {
|
5772
5875
|
default_slot.m(div0, null);
|
5773
5876
|
}
|
5774
5877
|
|
5775
|
-
/*div0_binding*/ ctx[
|
5776
|
-
/*div1_binding*/ ctx[
|
5777
|
-
append(
|
5778
|
-
append(
|
5779
|
-
append(div4, t2);
|
5878
|
+
/*div0_binding*/ ctx[24](div0);
|
5879
|
+
/*div1_binding*/ ctx[25](div1);
|
5880
|
+
append(div9, t0);
|
5881
|
+
append(div9, div4);
|
5780
5882
|
append(div4, div3);
|
5883
|
+
append(div3, div2);
|
5884
|
+
append(div9, t1);
|
5885
|
+
append(div9, div7);
|
5886
|
+
append(div7, div6);
|
5887
|
+
append(div6, div5);
|
5888
|
+
append(div9, t2);
|
5889
|
+
append(div9, div8);
|
5890
|
+
|
5891
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
5892
|
+
each_blocks[i].m(div8, null);
|
5893
|
+
}
|
5894
|
+
|
5781
5895
|
current = true;
|
5782
5896
|
|
5783
5897
|
if (!mounted) {
|
5784
5898
|
dispose = [
|
5785
|
-
listen(
|
5786
|
-
listen(
|
5899
|
+
listen(div4, "click", /*prev*/ ctx[12]),
|
5900
|
+
listen(div7, "click", /*next*/ ctx[13])
|
5787
5901
|
];
|
5788
5902
|
|
5789
5903
|
mounted = true;
|
@@ -5791,26 +5905,69 @@ function create_fragment$4(ctx) {
|
|
5791
5905
|
},
|
5792
5906
|
p(ctx, dirty) {
|
5793
5907
|
if (default_slot) {
|
5794
|
-
if (default_slot.p && (!current || dirty[0] & /*$$scope*/
|
5908
|
+
if (default_slot.p && (!current || dirty[0] & /*$$scope*/ 4194304)) {
|
5795
5909
|
update_slot_base(
|
5796
5910
|
default_slot,
|
5797
5911
|
default_slot_template,
|
5798
5912
|
ctx,
|
5799
|
-
/*$$scope*/ ctx[
|
5913
|
+
/*$$scope*/ ctx[22],
|
5800
5914
|
!current
|
5801
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
5802
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
5915
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[22])
|
5916
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[22], dirty, null),
|
5803
5917
|
null
|
5804
5918
|
);
|
5805
5919
|
}
|
5806
5920
|
}
|
5807
5921
|
|
5808
|
-
if (!current || dirty[0] & /*slideClass*/
|
5922
|
+
if (!current || dirty[0] & /*slideClass*/ 1024 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[10]) + " svelte-105wdod"))) {
|
5809
5923
|
attr(div0, "class", div0_class_value);
|
5810
5924
|
}
|
5811
5925
|
|
5812
|
-
if (!current || dirty[0] & /*slideStyle*/
|
5813
|
-
attr(div0, "style", /*slideStyle*/ ctx[
|
5926
|
+
if (!current || dirty[0] & /*slideStyle*/ 2048) {
|
5927
|
+
attr(div0, "style", /*slideStyle*/ ctx[11]);
|
5928
|
+
}
|
5929
|
+
|
5930
|
+
if (!current || dirty[0] & /*prevIconStyle*/ 512) {
|
5931
|
+
attr(div2, "style", /*prevIconStyle*/ ctx[9]);
|
5932
|
+
}
|
5933
|
+
|
5934
|
+
if (!current || dirty[0] & /*prevButtonContainerStyle*/ 1) {
|
5935
|
+
attr(div3, "style", /*prevButtonContainerStyle*/ ctx[0]);
|
5936
|
+
}
|
5937
|
+
|
5938
|
+
if (!current || dirty[0] & /*nextIconStyle*/ 256) {
|
5939
|
+
attr(div5, "style", /*nextIconStyle*/ ctx[8]);
|
5940
|
+
}
|
5941
|
+
|
5942
|
+
if (!current || dirty[0] & /*nextButtonContainerStyle*/ 2) {
|
5943
|
+
attr(div6, "style", /*nextButtonContainerStyle*/ ctx[1]);
|
5944
|
+
}
|
5945
|
+
|
5946
|
+
if (dirty[0] & /*navigationItemStyle, set, getNavigationItemInnerStyle, items*/ 16584) {
|
5947
|
+
each_value = /*items*/ ctx[3];
|
5948
|
+
let i;
|
5949
|
+
|
5950
|
+
for (i = 0; i < each_value.length; i += 1) {
|
5951
|
+
const child_ctx = get_each_context(ctx, each_value, i);
|
5952
|
+
|
5953
|
+
if (each_blocks[i]) {
|
5954
|
+
each_blocks[i].p(child_ctx, dirty);
|
5955
|
+
} else {
|
5956
|
+
each_blocks[i] = create_each_block(child_ctx);
|
5957
|
+
each_blocks[i].c();
|
5958
|
+
each_blocks[i].m(div8, null);
|
5959
|
+
}
|
5960
|
+
}
|
5961
|
+
|
5962
|
+
for (; i < each_blocks.length; i += 1) {
|
5963
|
+
each_blocks[i].d(1);
|
5964
|
+
}
|
5965
|
+
|
5966
|
+
each_blocks.length = each_value.length;
|
5967
|
+
}
|
5968
|
+
|
5969
|
+
if (!current || dirty[0] & /*navigationStyle*/ 4) {
|
5970
|
+
attr(div8, "style", /*navigationStyle*/ ctx[2]);
|
5814
5971
|
}
|
5815
5972
|
},
|
5816
5973
|
i(local) {
|
@@ -5823,10 +5980,11 @@ function create_fragment$4(ctx) {
|
|
5823
5980
|
current = false;
|
5824
5981
|
},
|
5825
5982
|
d(detaching) {
|
5826
|
-
if (detaching) detach(
|
5983
|
+
if (detaching) detach(div9);
|
5827
5984
|
if (default_slot) default_slot.d(detaching);
|
5828
|
-
/*div0_binding*/ ctx[
|
5829
|
-
/*div1_binding*/ ctx[
|
5985
|
+
/*div0_binding*/ ctx[24](null);
|
5986
|
+
/*div1_binding*/ ctx[25](null);
|
5987
|
+
destroy_each(each_blocks, detaching);
|
5830
5988
|
mounted = false;
|
5831
5989
|
run_all(dispose);
|
5832
5990
|
}
|
@@ -5849,18 +6007,52 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
5849
6007
|
let slideStyle;
|
5850
6008
|
let slideClass;
|
5851
6009
|
let _loop;
|
6010
|
+
let prevIconStyle;
|
6011
|
+
let nextIconStyle;
|
6012
|
+
let navigationItemStyle;
|
6013
|
+
let getNavigationItemInnerStyle;
|
5852
6014
|
let { $$slots: slots = {}, $$scope } = $$props;
|
6015
|
+
let { loop = false } = $$props;
|
6016
|
+
|
6017
|
+
let { prevButton = {
|
6018
|
+
type: 'icon',
|
6019
|
+
icon: 'chevron-left',
|
6020
|
+
color: '#666',
|
6021
|
+
fill: '#666',
|
6022
|
+
size: '20px'
|
6023
|
+
} } = $$props;
|
6024
|
+
|
6025
|
+
let { prevButtonContainerStyle = 'height: 48px; width: 24px; margin: 0 0 0 8px;' } = $$props;
|
6026
|
+
|
6027
|
+
let { nextButton = {
|
6028
|
+
type: 'icon',
|
6029
|
+
icon: 'chevron-right',
|
6030
|
+
color: '#666',
|
6031
|
+
fill: '#666',
|
6032
|
+
size: '20px'
|
6033
|
+
} } = $$props;
|
6034
|
+
|
6035
|
+
let { nextButtonContainerStyle = 'height: 48px; width: 24px; margin: 0 8px 0 0;' } = $$props;
|
6036
|
+
|
6037
|
+
let { navigationButton = {
|
6038
|
+
type: 'circle',
|
6039
|
+
size: '8px',
|
6040
|
+
color: '#ddd',
|
6041
|
+
colorActive: '#666'
|
6042
|
+
} } = $$props;
|
6043
|
+
|
6044
|
+
let { navigationStyle = 'margin: 0 0 8px 0' } = $$props;
|
5853
6045
|
let items = [];
|
5854
6046
|
const dispatch = createEventDispatcher();
|
5855
6047
|
|
5856
6048
|
setContext('SLIDE', {
|
5857
6049
|
registerItem: ({ onBeforeSlide, onMount, onResize }) => {
|
5858
6050
|
const id = new Date().getTime().toString();
|
5859
|
-
$$invalidate(
|
6051
|
+
$$invalidate(3, items = [...items, { id, onBeforeSlide, onMount, onResize }]);
|
5860
6052
|
return id;
|
5861
6053
|
},
|
5862
6054
|
unregisterItem: id => {
|
5863
|
-
$$invalidate(
|
6055
|
+
$$invalidate(3, items = items.filter(item => item.id !== id));
|
5864
6056
|
}
|
5865
6057
|
});
|
5866
6058
|
|
@@ -5887,7 +6079,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
5887
6079
|
onBeforeSlide({ shiftCount, index, length: items.length });
|
5888
6080
|
});
|
5889
6081
|
|
5890
|
-
$$invalidate(
|
6082
|
+
$$invalidate(20, slidePosition = slidePosition + containerWidth * (calcPositionIndex(shiftCount, currentSlideId, items.length) - calcPositionIndex(previousShiftCount, currentSlideId, items.length)));
|
5891
6083
|
previousShiftCount = shiftCount;
|
5892
6084
|
resolve();
|
5893
6085
|
});
|
@@ -5898,8 +6090,8 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
5898
6090
|
if (transitioning) {
|
5899
6091
|
const slideRect = slideElement.getBoundingClientRect();
|
5900
6092
|
const containerRect = containerElement.getBoundingClientRect();
|
5901
|
-
$$invalidate(
|
5902
|
-
$$invalidate(
|
6093
|
+
$$invalidate(21, transitioning = false);
|
6094
|
+
$$invalidate(20, slidePosition = slideRect.x - containerRect.x);
|
5903
6095
|
}
|
5904
6096
|
}
|
5905
6097
|
|
@@ -5919,10 +6111,10 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
5919
6111
|
}
|
5920
6112
|
}
|
5921
6113
|
|
5922
|
-
$$invalidate(
|
5923
|
-
$$invalidate(
|
6114
|
+
$$invalidate(21, transitioning = true);
|
6115
|
+
$$invalidate(20, slidePosition = containerWidth * calcPositionIndex(shiftCount, slideIndex, items.length));
|
5924
6116
|
dispatch('change', { nextIndex: slideIndex });
|
5925
|
-
currentSlideId = slideIndex;
|
6117
|
+
$$invalidate(19, currentSlideId = slideIndex);
|
5926
6118
|
});
|
5927
6119
|
}
|
5928
6120
|
|
@@ -5944,7 +6136,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
5944
6136
|
const updatedSlidePosition = slidePosition + dx;
|
5945
6137
|
|
5946
6138
|
window.requestAnimationFrame(() => {
|
5947
|
-
$$invalidate(
|
6139
|
+
$$invalidate(20, slidePosition = updatedSlidePosition);
|
5948
6140
|
});
|
5949
6141
|
}
|
5950
6142
|
|
@@ -5952,6 +6144,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
5952
6144
|
}
|
5953
6145
|
|
5954
6146
|
function handleResize() {
|
6147
|
+
if (!containerElement) return;
|
5955
6148
|
containerWidth = containerElement.clientWidth;
|
5956
6149
|
|
5957
6150
|
items.forEach((item, index) => {
|
@@ -5963,7 +6156,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
5963
6156
|
});
|
5964
6157
|
});
|
5965
6158
|
|
5966
|
-
$$invalidate(
|
6159
|
+
$$invalidate(20, slidePosition = containerWidth * calcPositionIndex(shiftCount, currentSlideId, items.length));
|
5967
6160
|
}
|
5968
6161
|
|
5969
6162
|
function handleMoveEnd() {
|
@@ -6016,7 +6209,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
6016
6209
|
}
|
6017
6210
|
|
6018
6211
|
function handleTransitionEnd() {
|
6019
|
-
$$invalidate(
|
6212
|
+
$$invalidate(21, transitioning = false);
|
6020
6213
|
fixSlidePosition();
|
6021
6214
|
}
|
6022
6215
|
|
@@ -6027,7 +6220,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
6027
6220
|
item.onMount({ containerElement });
|
6028
6221
|
});
|
6029
6222
|
|
6030
|
-
currentSlideId = 0;
|
6223
|
+
$$invalidate(19, currentSlideId = 0);
|
6031
6224
|
|
6032
6225
|
if (_loop) {
|
6033
6226
|
await fixSlidePosition();
|
@@ -6076,112 +6269,200 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
6076
6269
|
setIndex(currentSlideId + 1);
|
6077
6270
|
}
|
6078
6271
|
|
6079
|
-
|
6272
|
+
async function set(index) {
|
6273
|
+
await fixSlidePosition();
|
6274
|
+
setIndex(index);
|
6275
|
+
}
|
6080
6276
|
|
6081
6277
|
function div0_binding($$value) {
|
6082
6278
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
6083
6279
|
slideElement = $$value;
|
6084
|
-
$$invalidate(
|
6280
|
+
$$invalidate(5, slideElement);
|
6085
6281
|
});
|
6086
6282
|
}
|
6087
6283
|
|
6088
6284
|
function div1_binding($$value) {
|
6089
6285
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
6090
6286
|
containerElement = $$value;
|
6091
|
-
$$invalidate(
|
6287
|
+
$$invalidate(4, containerElement);
|
6092
6288
|
});
|
6093
6289
|
}
|
6094
6290
|
|
6291
|
+
const click_handler = i => set(i);
|
6292
|
+
|
6095
6293
|
$$self.$$set = $$props => {
|
6096
|
-
if ('loop' in $$props) $$invalidate(
|
6097
|
-
if ('
|
6294
|
+
if ('loop' in $$props) $$invalidate(15, loop = $$props.loop);
|
6295
|
+
if ('prevButton' in $$props) $$invalidate(16, prevButton = $$props.prevButton);
|
6296
|
+
if ('prevButtonContainerStyle' in $$props) $$invalidate(0, prevButtonContainerStyle = $$props.prevButtonContainerStyle);
|
6297
|
+
if ('nextButton' in $$props) $$invalidate(17, nextButton = $$props.nextButton);
|
6298
|
+
if ('nextButtonContainerStyle' in $$props) $$invalidate(1, nextButtonContainerStyle = $$props.nextButtonContainerStyle);
|
6299
|
+
if ('navigationButton' in $$props) $$invalidate(18, navigationButton = $$props.navigationButton);
|
6300
|
+
if ('navigationStyle' in $$props) $$invalidate(2, navigationStyle = $$props.navigationStyle);
|
6301
|
+
if ('$$scope' in $$props) $$invalidate(22, $$scope = $$props.$$scope);
|
6098
6302
|
};
|
6099
6303
|
|
6100
6304
|
$$self.$$.update = () => {
|
6101
|
-
if ($$self.$$.dirty[0] & /*slidePosition*/
|
6102
|
-
$$invalidate(
|
6305
|
+
if ($$self.$$.dirty[0] & /*slidePosition*/ 1048576) {
|
6306
|
+
$$invalidate(11, slideStyle = slidePosition != null ? `left: ${slidePosition}px;` : '');
|
6103
6307
|
}
|
6104
6308
|
|
6105
|
-
if ($$self.$$.dirty[0] & /*transitioning*/
|
6106
|
-
$$invalidate(
|
6309
|
+
if ($$self.$$.dirty[0] & /*transitioning*/ 2097152) {
|
6310
|
+
$$invalidate(10, slideClass = ['slide', transitioning ? 'transition' : ''].join(' '));
|
6107
6311
|
}
|
6108
6312
|
|
6109
|
-
if ($$self.$$.dirty[0] & /*items, loop*/
|
6313
|
+
if ($$self.$$.dirty[0] & /*items, loop*/ 32776) {
|
6110
6314
|
_loop = items.length >= 3 ? loop : false;
|
6111
6315
|
}
|
6316
|
+
|
6317
|
+
if ($$self.$$.dirty[0] & /*prevButton*/ 65536) {
|
6318
|
+
$$invalidate(9, prevIconStyle = prevButton.type === 'icon'
|
6319
|
+
? `width: ${prevButton.size}; height: ${prevButton.size}; border-color: ${prevButton.color};`
|
6320
|
+
: '');
|
6321
|
+
}
|
6322
|
+
|
6323
|
+
if ($$self.$$.dirty[0] & /*nextButton*/ 131072) {
|
6324
|
+
$$invalidate(8, nextIconStyle = nextButton.type === 'icon'
|
6325
|
+
? `width: ${nextButton.size}; height: ${nextButton.size}; border-color: ${nextButton.color};`
|
6326
|
+
: '');
|
6327
|
+
}
|
6328
|
+
|
6329
|
+
if ($$self.$$.dirty[0] & /*navigationButton*/ 262144) {
|
6330
|
+
$$invalidate(7, navigationItemStyle = `padding: calc(${navigationButton.size} / 2);`);
|
6331
|
+
}
|
6332
|
+
|
6333
|
+
if ($$self.$$.dirty[0] & /*navigationButton, currentSlideId*/ 786432) {
|
6334
|
+
$$invalidate(6, getNavigationItemInnerStyle = i => `
|
6335
|
+
width: ${navigationButton.size};
|
6336
|
+
height: ${navigationButton.size};
|
6337
|
+
background-color: ${i === currentSlideId
|
6338
|
+
? navigationButton.colorActive
|
6339
|
+
: navigationButton.color};`);
|
6340
|
+
}
|
6112
6341
|
};
|
6113
6342
|
|
6114
6343
|
return [
|
6344
|
+
prevButtonContainerStyle,
|
6345
|
+
nextButtonContainerStyle,
|
6346
|
+
navigationStyle,
|
6347
|
+
items,
|
6115
6348
|
containerElement,
|
6116
6349
|
slideElement,
|
6350
|
+
getNavigationItemInnerStyle,
|
6351
|
+
navigationItemStyle,
|
6352
|
+
nextIconStyle,
|
6353
|
+
prevIconStyle,
|
6117
6354
|
slideClass,
|
6118
6355
|
slideStyle,
|
6119
6356
|
prev,
|
6120
6357
|
next,
|
6358
|
+
set,
|
6121
6359
|
loop,
|
6122
|
-
|
6360
|
+
prevButton,
|
6361
|
+
nextButton,
|
6362
|
+
navigationButton,
|
6363
|
+
currentSlideId,
|
6123
6364
|
slidePosition,
|
6124
6365
|
transitioning,
|
6125
6366
|
$$scope,
|
6126
6367
|
slots,
|
6127
6368
|
div0_binding,
|
6128
|
-
div1_binding
|
6369
|
+
div1_binding,
|
6370
|
+
click_handler
|
6129
6371
|
];
|
6130
6372
|
}
|
6131
6373
|
|
6132
6374
|
class Slider extends SvelteComponent {
|
6133
6375
|
constructor(options) {
|
6134
6376
|
super();
|
6135
|
-
|
6377
|
+
|
6378
|
+
init(
|
6379
|
+
this,
|
6380
|
+
options,
|
6381
|
+
instance$4,
|
6382
|
+
create_fragment$4,
|
6383
|
+
safe_not_equal,
|
6384
|
+
{
|
6385
|
+
loop: 15,
|
6386
|
+
prevButton: 16,
|
6387
|
+
prevButtonContainerStyle: 0,
|
6388
|
+
nextButton: 17,
|
6389
|
+
nextButtonContainerStyle: 1,
|
6390
|
+
navigationButton: 18,
|
6391
|
+
navigationStyle: 2
|
6392
|
+
},
|
6393
|
+
add_css$4,
|
6394
|
+
[-1, -1]
|
6395
|
+
);
|
6136
6396
|
}
|
6137
6397
|
}
|
6138
6398
|
|
6139
6399
|
/* src/components/SliderItem.svelte generated by Svelte v3.53.1 */
|
6140
6400
|
|
6141
6401
|
function add_css$3(target) {
|
6142
|
-
append_styles(target, "svelte-
|
6402
|
+
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}");
|
6143
6403
|
}
|
6144
6404
|
|
6145
6405
|
function create_fragment$3(ctx) {
|
6146
|
-
let
|
6406
|
+
let div1;
|
6407
|
+
let div0;
|
6147
6408
|
let current;
|
6148
|
-
|
6149
|
-
|
6409
|
+
let mounted;
|
6410
|
+
let dispose;
|
6411
|
+
const default_slot_template = /*#slots*/ ctx[8].default;
|
6412
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[7], null);
|
6150
6413
|
|
6151
6414
|
return {
|
6152
6415
|
c() {
|
6153
|
-
|
6416
|
+
div1 = element("div");
|
6417
|
+
div0 = element("div");
|
6154
6418
|
if (default_slot) default_slot.c();
|
6155
|
-
attr(
|
6156
|
-
attr(
|
6419
|
+
attr(div0, "class", "item-inner svelte-xzo1un");
|
6420
|
+
attr(div0, "style", /*_style*/ ctx[0]);
|
6421
|
+
attr(div1, "class", "item svelte-xzo1un");
|
6422
|
+
attr(div1, "style", /*itemStyle*/ ctx[1]);
|
6157
6423
|
},
|
6158
6424
|
m(target, anchor) {
|
6159
|
-
insert(target,
|
6425
|
+
insert(target, div1, anchor);
|
6426
|
+
append(div1, div0);
|
6160
6427
|
|
6161
6428
|
if (default_slot) {
|
6162
|
-
default_slot.m(
|
6429
|
+
default_slot.m(div0, null);
|
6163
6430
|
}
|
6164
6431
|
|
6165
6432
|
current = true;
|
6433
|
+
|
6434
|
+
if (!mounted) {
|
6435
|
+
dispose = listen(div1, "click", function () {
|
6436
|
+
if (is_function(/*click*/ ctx[2])) /*click*/ ctx[2].apply(this, arguments);
|
6437
|
+
});
|
6438
|
+
|
6439
|
+
mounted = true;
|
6440
|
+
}
|
6166
6441
|
},
|
6167
|
-
p(
|
6442
|
+
p(new_ctx, [dirty]) {
|
6443
|
+
ctx = new_ctx;
|
6444
|
+
|
6168
6445
|
if (default_slot) {
|
6169
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
6446
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 128)) {
|
6170
6447
|
update_slot_base(
|
6171
6448
|
default_slot,
|
6172
6449
|
default_slot_template,
|
6173
6450
|
ctx,
|
6174
|
-
/*$$scope*/ ctx[
|
6451
|
+
/*$$scope*/ ctx[7],
|
6175
6452
|
!current
|
6176
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
6177
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
6453
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[7])
|
6454
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[7], dirty, null),
|
6178
6455
|
null
|
6179
6456
|
);
|
6180
6457
|
}
|
6181
6458
|
}
|
6182
6459
|
|
6183
|
-
if (!current || dirty & /*
|
6184
|
-
attr(
|
6460
|
+
if (!current || dirty & /*_style*/ 1) {
|
6461
|
+
attr(div0, "style", /*_style*/ ctx[0]);
|
6462
|
+
}
|
6463
|
+
|
6464
|
+
if (!current || dirty & /*itemStyle*/ 2) {
|
6465
|
+
attr(div1, "style", /*itemStyle*/ ctx[1]);
|
6185
6466
|
}
|
6186
6467
|
},
|
6187
6468
|
i(local) {
|
@@ -6194,24 +6475,27 @@ function create_fragment$3(ctx) {
|
|
6194
6475
|
current = false;
|
6195
6476
|
},
|
6196
6477
|
d(detaching) {
|
6197
|
-
if (detaching) detach(
|
6478
|
+
if (detaching) detach(div1);
|
6198
6479
|
if (default_slot) default_slot.d(detaching);
|
6480
|
+
mounted = false;
|
6481
|
+
dispose();
|
6199
6482
|
}
|
6200
6483
|
};
|
6201
6484
|
}
|
6202
6485
|
|
6203
6486
|
function instance$3($$self, $$props, $$invalidate) {
|
6487
|
+
let click;
|
6204
6488
|
let itemStyle;
|
6205
6489
|
let { $$slots: slots = {}, $$scope } = $$props;
|
6206
6490
|
const { registerItem, unregisterItem } = getContext('SLIDE');
|
6207
6491
|
|
6208
6492
|
const id = registerItem({
|
6209
6493
|
onMount({ containerElement }) {
|
6210
|
-
$$invalidate(
|
6494
|
+
$$invalidate(5, itemWidth = containerElement.clientWidth);
|
6211
6495
|
},
|
6212
6496
|
// TODO: onBeforeSlideと重複するロジックをまとめる
|
6213
6497
|
onResize({ containerElement, shiftCount, index, length }) {
|
6214
|
-
$$invalidate(
|
6498
|
+
$$invalidate(5, itemWidth = containerElement.clientWidth);
|
6215
6499
|
let fixedShiftCount;
|
6216
6500
|
|
6217
6501
|
if (index - shiftCount < 0) {
|
@@ -6222,7 +6506,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
6222
6506
|
fixedShiftCount = shiftCount;
|
6223
6507
|
}
|
6224
6508
|
|
6225
|
-
$$invalidate(
|
6509
|
+
$$invalidate(6, itemTransform = -fixedShiftCount * (itemWidth ?? 0));
|
6226
6510
|
},
|
6227
6511
|
onBeforeSlide({ shiftCount, index, length }) {
|
6228
6512
|
let fixedShiftCount;
|
@@ -6235,7 +6519,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
6235
6519
|
fixedShiftCount = shiftCount;
|
6236
6520
|
}
|
6237
6521
|
|
6238
|
-
$$invalidate(
|
6522
|
+
$$invalidate(6, itemTransform = -fixedShiftCount * (itemWidth ?? 0));
|
6239
6523
|
}
|
6240
6524
|
});
|
6241
6525
|
|
@@ -6243,28 +6527,54 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
6243
6527
|
unregisterItem(id);
|
6244
6528
|
});
|
6245
6529
|
|
6530
|
+
let { onClick = { operation: 'none', args: [] } } = $$props;
|
6531
|
+
let { clickEventName = '' } = $$props;
|
6532
|
+
let { _style = 'cursor: ' } = $$props;
|
6246
6533
|
let itemWidth = null;
|
6247
6534
|
let itemTransform = 0;
|
6248
6535
|
|
6249
6536
|
$$self.$$set = $$props => {
|
6250
|
-
if ('
|
6537
|
+
if ('onClick' in $$props) $$invalidate(3, onClick = $$props.onClick);
|
6538
|
+
if ('clickEventName' in $$props) $$invalidate(4, clickEventName = $$props.clickEventName);
|
6539
|
+
if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
|
6540
|
+
if ('$$scope' in $$props) $$invalidate(7, $$scope = $$props.$$scope);
|
6251
6541
|
};
|
6252
6542
|
|
6253
6543
|
$$self.$$.update = () => {
|
6254
|
-
if ($$self.$$.dirty & /*
|
6255
|
-
$$invalidate(
|
6544
|
+
if ($$self.$$.dirty & /*clickEventName, onClick*/ 24) {
|
6545
|
+
$$invalidate(2, click = () => {
|
6546
|
+
if (clickEventName) {
|
6547
|
+
send_event(clickEventName);
|
6548
|
+
}
|
6549
|
+
|
6550
|
+
execOnClickOperation(onClick);
|
6551
|
+
});
|
6552
|
+
}
|
6553
|
+
|
6554
|
+
if ($$self.$$.dirty & /*itemWidth, itemTransform*/ 96) {
|
6555
|
+
$$invalidate(1, itemStyle = itemWidth != null
|
6256
6556
|
? `width: ${itemWidth}px; transform: translateX(${itemTransform}px);`
|
6257
6557
|
: '');
|
6258
6558
|
}
|
6259
6559
|
};
|
6260
6560
|
|
6261
|
-
return [
|
6561
|
+
return [
|
6562
|
+
_style,
|
6563
|
+
itemStyle,
|
6564
|
+
click,
|
6565
|
+
onClick,
|
6566
|
+
clickEventName,
|
6567
|
+
itemWidth,
|
6568
|
+
itemTransform,
|
6569
|
+
$$scope,
|
6570
|
+
slots
|
6571
|
+
];
|
6262
6572
|
}
|
6263
6573
|
|
6264
6574
|
class SliderItem extends SvelteComponent {
|
6265
6575
|
constructor(options) {
|
6266
6576
|
super();
|
6267
|
-
init(this, options, instance$3, create_fragment$3, safe_not_equal, {}, add_css$3);
|
6577
|
+
init(this, options, instance$3, create_fragment$3, safe_not_equal, { onClick: 3, clickEventName: 4, _style: 0 }, add_css$3);
|
6268
6578
|
}
|
6269
6579
|
}
|
6270
6580
|
|
@@ -6609,4 +6919,4 @@ class ImageBlock extends SvelteComponent {
|
|
6609
6919
|
}
|
6610
6920
|
}
|
6611
6921
|
|
6612
|
-
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 };
|
6922
|
+
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 };
|