@plaidev/karte-action-sdk 1.1.126-27949188.96bb611a → 1.1.126-27950980.e8e536b0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.d.ts +15 -1
- package/dist/hydrate/index.es.js +189 -120
- package/dist/index.es.d.ts +15 -1
- package/dist/index.es.js +173 -110
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -1289,6 +1289,11 @@ const WritingModes = ['horizontal-tb', 'vertical-lr'];
|
|
1289
1289
|
/** @internal */
|
1290
1290
|
const ListSeparatorTypes = ['none', 'border', 'gap'];
|
1291
1291
|
/** @internal */
|
1292
|
+
const DefaultEdgePosition = {
|
1293
|
+
edgeDistance: '8px',
|
1294
|
+
edgeDirectionOffset: '0px',
|
1295
|
+
};
|
1296
|
+
/** @internal */
|
1292
1297
|
const DefaultListSeparatorNone = {
|
1293
1298
|
type: 'none',
|
1294
1299
|
};
|
@@ -7024,137 +7029,153 @@ class FormRatingButtons extends SvelteComponent {
|
|
7024
7029
|
/* src/components/Slide.svelte generated by Svelte v3.53.1 */
|
7025
7030
|
|
7026
7031
|
function add_css$4(target) {
|
7027
|
-
append_styles(target, "svelte-
|
7032
|
+
append_styles(target, "svelte-c7zaph", ".root.svelte-c7zaph{width:100%;height:100%;position:relative}.container.svelte-c7zaph{width:100%;height:100%;position:relative;overflow:hidden}.slide.svelte-c7zaph{height:100%;position:absolute;display:flex}.transition.svelte-c7zaph{transition:left 0.2s cubic-bezier(.04,.67,.53,.96)}.item.svelte-c7zaph{height:100%;flex:none}.prev-button.svelte-c7zaph,.next-button.svelte-c7zaph{top:50%;height:0;position:absolute;display:flex;overflow:visible;align-items:center}.prev-button.svelte-c7zaph{left:0}.next-button.svelte-c7zaph{right:0}.button-container.svelte-c7zaph{display:flex;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box}.navigation.svelte-c7zaph{position:absolute;width:0;left:50%;bottom:0;display:flex;justify-content:center;overflow:visible}.navigation-item.svelte-c7zaph{flex-shrink:0;cursor:pointer}.navigation-item-inner.circle.svelte-c7zaph{border-radius:51%}");
|
7028
7033
|
}
|
7029
7034
|
|
7030
7035
|
function get_each_context(ctx, list, i) {
|
7031
7036
|
const child_ctx = ctx.slice();
|
7032
|
-
child_ctx[
|
7033
|
-
child_ctx[
|
7037
|
+
child_ctx[57] = list[i];
|
7038
|
+
child_ctx[59] = i;
|
7034
7039
|
return child_ctx;
|
7035
7040
|
}
|
7036
7041
|
|
7037
|
-
// (
|
7042
|
+
// (349:2) {#if isVisiblePrevButton}
|
7038
7043
|
function create_if_block_1(ctx) {
|
7039
|
-
let div2;
|
7040
7044
|
let div1;
|
7041
7045
|
let div0;
|
7046
|
+
let svg;
|
7047
|
+
let polygon;
|
7042
7048
|
let mounted;
|
7043
7049
|
let dispose;
|
7044
7050
|
|
7045
7051
|
return {
|
7046
7052
|
c() {
|
7047
|
-
div2 = element("div");
|
7048
7053
|
div1 = element("div");
|
7049
7054
|
div0 = element("div");
|
7055
|
+
svg = svg_element("svg");
|
7056
|
+
polygon = svg_element("polygon");
|
7050
7057
|
this.h();
|
7051
7058
|
},
|
7052
7059
|
l(nodes) {
|
7053
|
-
|
7054
|
-
var div2_nodes = children(div2);
|
7055
|
-
div1 = claim_element(div2_nodes, "DIV", { class: true, style: true });
|
7060
|
+
div1 = claim_element(nodes, "DIV", { class: true });
|
7056
7061
|
var div1_nodes = children(div1);
|
7057
7062
|
div0 = claim_element(div1_nodes, "DIV", { class: true, style: true });
|
7058
|
-
children(div0)
|
7063
|
+
var div0_nodes = children(div0);
|
7064
|
+
svg = claim_svg_element(div0_nodes, "svg", { viewBox: true, xmlns: true, style: true });
|
7065
|
+
var svg_nodes = children(svg);
|
7066
|
+
polygon = claim_svg_element(svg_nodes, "polygon", { points: true });
|
7067
|
+
children(polygon).forEach(detach);
|
7068
|
+
svg_nodes.forEach(detach);
|
7069
|
+
div0_nodes.forEach(detach);
|
7059
7070
|
div1_nodes.forEach(detach);
|
7060
|
-
div2_nodes.forEach(detach);
|
7061
7071
|
this.h();
|
7062
7072
|
},
|
7063
7073
|
h() {
|
7064
|
-
attr(
|
7065
|
-
attr(
|
7066
|
-
attr(
|
7067
|
-
attr(
|
7068
|
-
attr(
|
7074
|
+
attr(polygon, "points", "8,0 10,2 4,8 10,14 8,16 0,8");
|
7075
|
+
attr(svg, "viewBox", "0 0 10 16");
|
7076
|
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
7077
|
+
attr(svg, "style", /*prevIconStyle*/ ctx[9]);
|
7078
|
+
attr(div0, "class", "button-container svelte-c7zaph");
|
7079
|
+
attr(div0, "style", /*_prevButtonContainerStyle*/ ctx[8]);
|
7080
|
+
attr(div1, "class", "prev-button svelte-c7zaph");
|
7069
7081
|
},
|
7070
7082
|
m(target, anchor) {
|
7071
|
-
insert_hydration(target,
|
7072
|
-
append_hydration(div2, div1);
|
7083
|
+
insert_hydration(target, div1, anchor);
|
7073
7084
|
append_hydration(div1, div0);
|
7085
|
+
append_hydration(div0, svg);
|
7086
|
+
append_hydration(svg, polygon);
|
7074
7087
|
|
7075
7088
|
if (!mounted) {
|
7076
|
-
dispose = listen(
|
7089
|
+
dispose = listen(div1, "click", /*prev*/ ctx[14]);
|
7077
7090
|
mounted = true;
|
7078
7091
|
}
|
7079
7092
|
},
|
7080
7093
|
p(ctx, dirty) {
|
7081
7094
|
if (dirty[0] & /*prevIconStyle*/ 512) {
|
7082
|
-
attr(
|
7095
|
+
attr(svg, "style", /*prevIconStyle*/ ctx[9]);
|
7083
7096
|
}
|
7084
7097
|
|
7085
|
-
if (dirty[0] & /*
|
7086
|
-
attr(
|
7098
|
+
if (dirty[0] & /*_prevButtonContainerStyle*/ 256) {
|
7099
|
+
attr(div0, "style", /*_prevButtonContainerStyle*/ ctx[8]);
|
7087
7100
|
}
|
7088
7101
|
},
|
7089
7102
|
d(detaching) {
|
7090
|
-
if (detaching) detach(
|
7103
|
+
if (detaching) detach(div1);
|
7091
7104
|
mounted = false;
|
7092
7105
|
dispose();
|
7093
7106
|
}
|
7094
7107
|
};
|
7095
7108
|
}
|
7096
7109
|
|
7097
|
-
// (
|
7110
|
+
// (358:2) {#if isVisibleNextButton}
|
7098
7111
|
function create_if_block(ctx) {
|
7099
|
-
let div2;
|
7100
7112
|
let div1;
|
7101
7113
|
let div0;
|
7114
|
+
let svg;
|
7115
|
+
let polygon;
|
7102
7116
|
let mounted;
|
7103
7117
|
let dispose;
|
7104
7118
|
|
7105
7119
|
return {
|
7106
7120
|
c() {
|
7107
|
-
div2 = element("div");
|
7108
7121
|
div1 = element("div");
|
7109
7122
|
div0 = element("div");
|
7123
|
+
svg = svg_element("svg");
|
7124
|
+
polygon = svg_element("polygon");
|
7110
7125
|
this.h();
|
7111
7126
|
},
|
7112
7127
|
l(nodes) {
|
7113
|
-
|
7114
|
-
var div2_nodes = children(div2);
|
7115
|
-
div1 = claim_element(div2_nodes, "DIV", { class: true, style: true });
|
7128
|
+
div1 = claim_element(nodes, "DIV", { class: true });
|
7116
7129
|
var div1_nodes = children(div1);
|
7117
7130
|
div0 = claim_element(div1_nodes, "DIV", { class: true, style: true });
|
7118
|
-
children(div0)
|
7131
|
+
var div0_nodes = children(div0);
|
7132
|
+
svg = claim_svg_element(div0_nodes, "svg", { viewBox: true, xmlns: true, style: true });
|
7133
|
+
var svg_nodes = children(svg);
|
7134
|
+
polygon = claim_svg_element(svg_nodes, "polygon", { points: true });
|
7135
|
+
children(polygon).forEach(detach);
|
7136
|
+
svg_nodes.forEach(detach);
|
7137
|
+
div0_nodes.forEach(detach);
|
7119
7138
|
div1_nodes.forEach(detach);
|
7120
|
-
div2_nodes.forEach(detach);
|
7121
7139
|
this.h();
|
7122
7140
|
},
|
7123
7141
|
h() {
|
7124
|
-
attr(
|
7125
|
-
attr(
|
7126
|
-
attr(
|
7127
|
-
attr(
|
7128
|
-
attr(
|
7142
|
+
attr(polygon, "points", "2,0 10,8 2,16 0,14 6,8 0,2");
|
7143
|
+
attr(svg, "viewBox", "0 0 10 16");
|
7144
|
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
7145
|
+
attr(svg, "style", /*nextIconStyle*/ ctx[7]);
|
7146
|
+
attr(div0, "class", "button-container svelte-c7zaph");
|
7147
|
+
attr(div0, "style", /*_nextButtonContainerStyle*/ ctx[6]);
|
7148
|
+
attr(div1, "class", "next-button svelte-c7zaph");
|
7129
7149
|
},
|
7130
7150
|
m(target, anchor) {
|
7131
|
-
insert_hydration(target,
|
7132
|
-
append_hydration(div2, div1);
|
7151
|
+
insert_hydration(target, div1, anchor);
|
7133
7152
|
append_hydration(div1, div0);
|
7153
|
+
append_hydration(div0, svg);
|
7154
|
+
append_hydration(svg, polygon);
|
7134
7155
|
|
7135
7156
|
if (!mounted) {
|
7136
|
-
dispose = listen(
|
7157
|
+
dispose = listen(div1, "click", /*next*/ ctx[15]);
|
7137
7158
|
mounted = true;
|
7138
7159
|
}
|
7139
7160
|
},
|
7140
7161
|
p(ctx, dirty) {
|
7141
|
-
if (dirty[0] & /*nextIconStyle*/
|
7142
|
-
attr(
|
7162
|
+
if (dirty[0] & /*nextIconStyle*/ 128) {
|
7163
|
+
attr(svg, "style", /*nextIconStyle*/ ctx[7]);
|
7143
7164
|
}
|
7144
7165
|
|
7145
|
-
if (dirty[0] & /*
|
7146
|
-
attr(
|
7166
|
+
if (dirty[0] & /*_nextButtonContainerStyle*/ 64) {
|
7167
|
+
attr(div0, "style", /*_nextButtonContainerStyle*/ ctx[6]);
|
7147
7168
|
}
|
7148
7169
|
},
|
7149
7170
|
d(detaching) {
|
7150
|
-
if (detaching) detach(
|
7171
|
+
if (detaching) detach(div1);
|
7151
7172
|
mounted = false;
|
7152
7173
|
dispose();
|
7153
7174
|
}
|
7154
7175
|
};
|
7155
7176
|
}
|
7156
7177
|
|
7157
|
-
// (
|
7178
|
+
// (371:4) {#each items as _, i}
|
7158
7179
|
function create_each_block(ctx) {
|
7159
7180
|
let div1;
|
7160
7181
|
let div0;
|
@@ -7164,7 +7185,7 @@ function create_each_block(ctx) {
|
|
7164
7185
|
let dispose;
|
7165
7186
|
|
7166
7187
|
function click_handler() {
|
7167
|
-
return /*click_handler*/ ctx[
|
7188
|
+
return /*click_handler*/ ctx[34](/*i*/ ctx[59]);
|
7168
7189
|
}
|
7169
7190
|
|
7170
7191
|
return {
|
@@ -7184,10 +7205,10 @@ function create_each_block(ctx) {
|
|
7184
7205
|
this.h();
|
7185
7206
|
},
|
7186
7207
|
h() {
|
7187
|
-
attr(div0, "class", "navigation-item-inner circle svelte-
|
7188
|
-
attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[
|
7189
|
-
attr(div1, "class", "navigation-item svelte-
|
7190
|
-
attr(div1, "style", /*navigationItemStyle*/ ctx[
|
7208
|
+
attr(div0, "class", "navigation-item-inner circle svelte-c7zaph");
|
7209
|
+
attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[4](/*i*/ ctx[59]));
|
7210
|
+
attr(div1, "class", "navigation-item svelte-c7zaph");
|
7211
|
+
attr(div1, "style", /*navigationItemStyle*/ ctx[5]);
|
7191
7212
|
},
|
7192
7213
|
m(target, anchor) {
|
7193
7214
|
insert_hydration(target, div1, anchor);
|
@@ -7202,12 +7223,12 @@ function create_each_block(ctx) {
|
|
7202
7223
|
p(new_ctx, dirty) {
|
7203
7224
|
ctx = new_ctx;
|
7204
7225
|
|
7205
|
-
if (dirty[0] & /*getNavigationItemInnerStyle*/
|
7226
|
+
if (dirty[0] & /*getNavigationItemInnerStyle*/ 16 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[4](/*i*/ ctx[59]))) {
|
7206
7227
|
attr(div0, "style", div0_style_value);
|
7207
7228
|
}
|
7208
7229
|
|
7209
|
-
if (dirty[0] & /*navigationItemStyle*/
|
7210
|
-
attr(div1, "style", /*navigationItemStyle*/ ctx[
|
7230
|
+
if (dirty[0] & /*navigationItemStyle*/ 32) {
|
7231
|
+
attr(div1, "style", /*navigationItemStyle*/ ctx[5]);
|
7211
7232
|
}
|
7212
7233
|
},
|
7213
7234
|
d(detaching) {
|
@@ -7228,11 +7249,11 @@ function create_fragment$4(ctx) {
|
|
7228
7249
|
let t2;
|
7229
7250
|
let div2;
|
7230
7251
|
let current;
|
7231
|
-
const default_slot_template = /*#slots*/ ctx[
|
7232
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
7252
|
+
const default_slot_template = /*#slots*/ ctx[31].default;
|
7253
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[30], null);
|
7233
7254
|
let if_block0 = /*isVisiblePrevButton*/ ctx[11] && create_if_block_1(ctx);
|
7234
7255
|
let if_block1 = /*isVisibleNextButton*/ ctx[10] && create_if_block(ctx);
|
7235
|
-
let each_value = /*items*/ ctx[
|
7256
|
+
let each_value = /*items*/ ctx[0];
|
7236
7257
|
let each_blocks = [];
|
7237
7258
|
|
7238
7259
|
for (let i = 0; i < each_value.length; i += 1) {
|
@@ -7285,12 +7306,12 @@ function create_fragment$4(ctx) {
|
|
7285
7306
|
this.h();
|
7286
7307
|
},
|
7287
7308
|
h() {
|
7288
|
-
attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[12]) + " svelte-
|
7309
|
+
attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[12]) + " svelte-c7zaph"));
|
7289
7310
|
attr(div0, "style", /*slideStyle*/ ctx[13]);
|
7290
|
-
attr(div1, "class", "container svelte-
|
7291
|
-
attr(div2, "class", "navigation svelte-
|
7292
|
-
attr(div2, "style", /*navigationStyle*/ ctx[
|
7293
|
-
attr(div3, "class", "root svelte-
|
7311
|
+
attr(div1, "class", "container svelte-c7zaph");
|
7312
|
+
attr(div2, "class", "navigation svelte-c7zaph");
|
7313
|
+
attr(div2, "style", /*navigationStyle*/ ctx[3]);
|
7314
|
+
attr(div3, "class", "root svelte-c7zaph");
|
7294
7315
|
},
|
7295
7316
|
m(target, anchor) {
|
7296
7317
|
insert_hydration(target, div3, anchor);
|
@@ -7301,8 +7322,8 @@ function create_fragment$4(ctx) {
|
|
7301
7322
|
default_slot.m(div0, null);
|
7302
7323
|
}
|
7303
7324
|
|
7304
|
-
/*div0_binding*/ ctx[
|
7305
|
-
/*div1_binding*/ ctx[
|
7325
|
+
/*div0_binding*/ ctx[32](div0);
|
7326
|
+
/*div1_binding*/ ctx[33](div1);
|
7306
7327
|
append_hydration(div3, t0);
|
7307
7328
|
if (if_block0) if_block0.m(div3, null);
|
7308
7329
|
append_hydration(div3, t1);
|
@@ -7318,21 +7339,21 @@ function create_fragment$4(ctx) {
|
|
7318
7339
|
},
|
7319
7340
|
p(ctx, dirty) {
|
7320
7341
|
if (default_slot) {
|
7321
|
-
if (default_slot.p && (!current || dirty[0] & /*$$scope*/
|
7342
|
+
if (default_slot.p && (!current || dirty[0] & /*$$scope*/ 1073741824)) {
|
7322
7343
|
update_slot_base(
|
7323
7344
|
default_slot,
|
7324
7345
|
default_slot_template,
|
7325
7346
|
ctx,
|
7326
|
-
/*$$scope*/ ctx[
|
7347
|
+
/*$$scope*/ ctx[30],
|
7327
7348
|
!current
|
7328
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
7329
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
7349
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[30])
|
7350
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[30], dirty, null),
|
7330
7351
|
null
|
7331
7352
|
);
|
7332
7353
|
}
|
7333
7354
|
}
|
7334
7355
|
|
7335
|
-
if (!current || dirty[0] & /*slideClass*/ 4096 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[12]) + " svelte-
|
7356
|
+
if (!current || dirty[0] & /*slideClass*/ 4096 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[12]) + " svelte-c7zaph"))) {
|
7336
7357
|
attr(div0, "class", div0_class_value);
|
7337
7358
|
}
|
7338
7359
|
|
@@ -7366,8 +7387,8 @@ function create_fragment$4(ctx) {
|
|
7366
7387
|
if_block1 = null;
|
7367
7388
|
}
|
7368
7389
|
|
7369
|
-
if (dirty[0] & /*navigationItemStyle, set, getNavigationItemInnerStyle, items*/
|
7370
|
-
each_value = /*items*/ ctx[
|
7390
|
+
if (dirty[0] & /*navigationItemStyle, set, getNavigationItemInnerStyle, items*/ 65585) {
|
7391
|
+
each_value = /*items*/ ctx[0];
|
7371
7392
|
let i;
|
7372
7393
|
|
7373
7394
|
for (i = 0; i < each_value.length; i += 1) {
|
@@ -7389,8 +7410,8 @@ function create_fragment$4(ctx) {
|
|
7389
7410
|
each_blocks.length = each_value.length;
|
7390
7411
|
}
|
7391
7412
|
|
7392
|
-
if (!current || dirty[0] & /*navigationStyle*/
|
7393
|
-
attr(div2, "style", /*navigationStyle*/ ctx[
|
7413
|
+
if (!current || dirty[0] & /*navigationStyle*/ 8) {
|
7414
|
+
attr(div2, "style", /*navigationStyle*/ ctx[3]);
|
7394
7415
|
}
|
7395
7416
|
},
|
7396
7417
|
i(local) {
|
@@ -7405,8 +7426,8 @@ function create_fragment$4(ctx) {
|
|
7405
7426
|
d(detaching) {
|
7406
7427
|
if (detaching) detach(div3);
|
7407
7428
|
if (default_slot) default_slot.d(detaching);
|
7408
|
-
/*div0_binding*/ ctx[
|
7409
|
-
/*div1_binding*/ ctx[
|
7429
|
+
/*div0_binding*/ ctx[32](null);
|
7430
|
+
/*div1_binding*/ ctx[33](null);
|
7410
7431
|
if (if_block0) if_block0.d();
|
7411
7432
|
if (if_block1) if_block1.d();
|
7412
7433
|
destroy_each(each_blocks, detaching);
|
@@ -7433,9 +7454,12 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
7433
7454
|
let isVisiblePrevButton;
|
7434
7455
|
let isVisibleNextButton;
|
7435
7456
|
let prevIconStyle;
|
7457
|
+
let _prevButtonContainerStyle;
|
7436
7458
|
let nextIconStyle;
|
7459
|
+
let _nextButtonContainerStyle;
|
7437
7460
|
let navigationItemStyle;
|
7438
7461
|
let getNavigationItemInnerStyle;
|
7462
|
+
let navigationStyle;
|
7439
7463
|
let { $$slots: slots = {}, $$scope } = $$props;
|
7440
7464
|
let { loop = false } = $$props;
|
7441
7465
|
|
@@ -7447,7 +7471,12 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
7447
7471
|
size: '20px'
|
7448
7472
|
} } = $$props;
|
7449
7473
|
|
7450
|
-
let { prevButtonContainerStyle = 'height: 48px; width: 24px;
|
7474
|
+
let { prevButtonContainerStyle = 'height: 48px; width: 24px;' } = $$props;
|
7475
|
+
|
7476
|
+
let { prevButtonEdgePosition = {
|
7477
|
+
edgeDistance: '8px',
|
7478
|
+
edgeDirectionOffset: '0px'
|
7479
|
+
} } = $$props;
|
7451
7480
|
|
7452
7481
|
let { nextButton = {
|
7453
7482
|
type: 'icon',
|
@@ -7457,7 +7486,12 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
7457
7486
|
size: '20px'
|
7458
7487
|
} } = $$props;
|
7459
7488
|
|
7460
|
-
let { nextButtonContainerStyle = 'height: 48px; width: 24px;
|
7489
|
+
let { nextButtonContainerStyle = 'height: 48px; width: 24px;' } = $$props;
|
7490
|
+
|
7491
|
+
let { nextButtonEdgePosition = {
|
7492
|
+
edgeDistance: '8px',
|
7493
|
+
edgeDirectionOffset: '0px'
|
7494
|
+
} } = $$props;
|
7461
7495
|
|
7462
7496
|
let { navigationButton = {
|
7463
7497
|
type: 'circle',
|
@@ -7466,18 +7500,22 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
7466
7500
|
colorActive: '#666'
|
7467
7501
|
} } = $$props;
|
7468
7502
|
|
7469
|
-
let {
|
7503
|
+
let { navigationEdgePosition = {
|
7504
|
+
edgeDistance: '8px',
|
7505
|
+
edgeDirectionOffset: '0px'
|
7506
|
+
} } = $$props;
|
7507
|
+
|
7470
7508
|
let items = [];
|
7471
7509
|
const dispatch = createEventDispatcher();
|
7472
7510
|
|
7473
7511
|
setContext('SLIDE', {
|
7474
7512
|
registerItem: ({ onBeforeSlide, onMount, onResize }) => {
|
7475
7513
|
const id = new Date().getTime().toString();
|
7476
|
-
$$invalidate(
|
7514
|
+
$$invalidate(0, items = [...items, { id, onBeforeSlide, onMount, onResize }]);
|
7477
7515
|
return id;
|
7478
7516
|
},
|
7479
7517
|
unregisterItem: id => {
|
7480
|
-
$$invalidate(
|
7518
|
+
$$invalidate(0, items = items.filter(item => item.id !== id));
|
7481
7519
|
}
|
7482
7520
|
});
|
7483
7521
|
|
@@ -7504,7 +7542,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
7504
7542
|
onBeforeSlide({ shiftCount, index, length: items.length });
|
7505
7543
|
});
|
7506
7544
|
|
7507
|
-
$$invalidate(
|
7545
|
+
$$invalidate(27, slidePosition = slidePosition + containerWidth * (calcPositionIndex(shiftCount, currentSlideId, items.length) - calcPositionIndex(previousShiftCount, currentSlideId, items.length)));
|
7508
7546
|
previousShiftCount = shiftCount;
|
7509
7547
|
resolve();
|
7510
7548
|
});
|
@@ -7515,8 +7553,8 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
7515
7553
|
if (transitioning) {
|
7516
7554
|
const slideRect = slideElement.getBoundingClientRect();
|
7517
7555
|
const containerRect = containerElement.getBoundingClientRect();
|
7518
|
-
$$invalidate(
|
7519
|
-
$$invalidate(
|
7556
|
+
$$invalidate(28, transitioning = false);
|
7557
|
+
$$invalidate(27, slidePosition = slideRect.x - containerRect.x);
|
7520
7558
|
}
|
7521
7559
|
}
|
7522
7560
|
|
@@ -7536,10 +7574,10 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
7536
7574
|
}
|
7537
7575
|
}
|
7538
7576
|
|
7539
|
-
$$invalidate(
|
7540
|
-
$$invalidate(
|
7577
|
+
$$invalidate(28, transitioning = true);
|
7578
|
+
$$invalidate(27, slidePosition = containerWidth * calcPositionIndex(shiftCount, slideIndex, items.length));
|
7541
7579
|
dispatch('change', { nextIndex: slideIndex });
|
7542
|
-
$$invalidate(
|
7580
|
+
$$invalidate(26, currentSlideId = slideIndex);
|
7543
7581
|
});
|
7544
7582
|
}
|
7545
7583
|
|
@@ -7561,7 +7599,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
7561
7599
|
const updatedSlidePosition = slidePosition + dx;
|
7562
7600
|
|
7563
7601
|
window.requestAnimationFrame(() => {
|
7564
|
-
$$invalidate(
|
7602
|
+
$$invalidate(27, slidePosition = updatedSlidePosition);
|
7565
7603
|
});
|
7566
7604
|
}
|
7567
7605
|
|
@@ -7581,7 +7619,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
7581
7619
|
});
|
7582
7620
|
});
|
7583
7621
|
|
7584
|
-
$$invalidate(
|
7622
|
+
$$invalidate(27, slidePosition = containerWidth * calcPositionIndex(shiftCount, currentSlideId, items.length));
|
7585
7623
|
}
|
7586
7624
|
|
7587
7625
|
function handleMoveEnd() {
|
@@ -7634,7 +7672,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
7634
7672
|
}
|
7635
7673
|
|
7636
7674
|
function handleTransitionEnd() {
|
7637
|
-
$$invalidate(
|
7675
|
+
$$invalidate(28, transitioning = false);
|
7638
7676
|
fixSlidePosition();
|
7639
7677
|
}
|
7640
7678
|
|
@@ -7645,7 +7683,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
7645
7683
|
item.onMount({ containerElement });
|
7646
7684
|
});
|
7647
7685
|
|
7648
|
-
$$invalidate(
|
7686
|
+
$$invalidate(26, currentSlideId = 0);
|
7649
7687
|
|
7650
7688
|
if (_loop) {
|
7651
7689
|
await fixSlidePosition();
|
@@ -7702,14 +7740,14 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
7702
7740
|
function div0_binding($$value) {
|
7703
7741
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
7704
7742
|
slideElement = $$value;
|
7705
|
-
$$invalidate(
|
7743
|
+
$$invalidate(2, slideElement);
|
7706
7744
|
});
|
7707
7745
|
}
|
7708
7746
|
|
7709
7747
|
function div1_binding($$value) {
|
7710
7748
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
7711
7749
|
containerElement = $$value;
|
7712
|
-
$$invalidate(
|
7750
|
+
$$invalidate(1, containerElement);
|
7713
7751
|
});
|
7714
7752
|
}
|
7715
7753
|
|
@@ -7718,71 +7756,95 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
7718
7756
|
$$self.$$set = $$props => {
|
7719
7757
|
if ('loop' in $$props) $$invalidate(17, loop = $$props.loop);
|
7720
7758
|
if ('prevButton' in $$props) $$invalidate(18, prevButton = $$props.prevButton);
|
7721
|
-
if ('prevButtonContainerStyle' in $$props) $$invalidate(
|
7722
|
-
if ('
|
7723
|
-
if ('
|
7724
|
-
if ('
|
7725
|
-
if ('
|
7726
|
-
if ('
|
7759
|
+
if ('prevButtonContainerStyle' in $$props) $$invalidate(19, prevButtonContainerStyle = $$props.prevButtonContainerStyle);
|
7760
|
+
if ('prevButtonEdgePosition' in $$props) $$invalidate(20, prevButtonEdgePosition = $$props.prevButtonEdgePosition);
|
7761
|
+
if ('nextButton' in $$props) $$invalidate(21, nextButton = $$props.nextButton);
|
7762
|
+
if ('nextButtonContainerStyle' in $$props) $$invalidate(22, nextButtonContainerStyle = $$props.nextButtonContainerStyle);
|
7763
|
+
if ('nextButtonEdgePosition' in $$props) $$invalidate(23, nextButtonEdgePosition = $$props.nextButtonEdgePosition);
|
7764
|
+
if ('navigationButton' in $$props) $$invalidate(24, navigationButton = $$props.navigationButton);
|
7765
|
+
if ('navigationEdgePosition' in $$props) $$invalidate(25, navigationEdgePosition = $$props.navigationEdgePosition);
|
7766
|
+
if ('$$scope' in $$props) $$invalidate(30, $$scope = $$props.$$scope);
|
7727
7767
|
};
|
7728
7768
|
|
7729
7769
|
$$self.$$.update = () => {
|
7730
|
-
if ($$self.$$.dirty[0] & /*slidePosition*/
|
7770
|
+
if ($$self.$$.dirty[0] & /*slidePosition*/ 134217728) {
|
7731
7771
|
$$invalidate(13, slideStyle = slidePosition != null ? `left: ${slidePosition}px;` : '');
|
7732
7772
|
}
|
7733
7773
|
|
7734
|
-
if ($$self.$$.dirty[0] & /*transitioning*/
|
7774
|
+
if ($$self.$$.dirty[0] & /*transitioning*/ 268435456) {
|
7735
7775
|
$$invalidate(12, slideClass = ['slide', transitioning ? 'transition' : ''].join(' '));
|
7736
7776
|
}
|
7737
7777
|
|
7738
|
-
if ($$self.$$.dirty[0] & /*items, loop*/
|
7739
|
-
$$invalidate(
|
7778
|
+
if ($$self.$$.dirty[0] & /*items, loop*/ 131073) {
|
7779
|
+
$$invalidate(29, _loop = items.length >= 3 ? loop : false);
|
7740
7780
|
}
|
7741
7781
|
|
7742
|
-
if ($$self.$$.dirty[0] & /*_loop, currentSlideId*/
|
7782
|
+
if ($$self.$$.dirty[0] & /*_loop, currentSlideId*/ 603979776) {
|
7743
7783
|
$$invalidate(11, isVisiblePrevButton = _loop || currentSlideId > 0);
|
7744
7784
|
}
|
7745
7785
|
|
7746
|
-
if ($$self.$$.dirty[0] & /*_loop, currentSlideId, items*/
|
7786
|
+
if ($$self.$$.dirty[0] & /*_loop, currentSlideId, items*/ 603979777) {
|
7747
7787
|
$$invalidate(10, isVisibleNextButton = _loop || currentSlideId < items.length - 1);
|
7748
7788
|
}
|
7749
7789
|
|
7750
7790
|
if ($$self.$$.dirty[0] & /*prevButton*/ 262144) {
|
7751
7791
|
$$invalidate(9, prevIconStyle = prevButton.type === 'icon'
|
7752
|
-
? `
|
7792
|
+
? `height: ${prevButton.size}; fill: ${prevButton.color};`
|
7753
7793
|
: '');
|
7754
7794
|
}
|
7755
7795
|
|
7756
|
-
if ($$self.$$.dirty[0] & /*
|
7757
|
-
$$invalidate(8,
|
7758
|
-
|
7796
|
+
if ($$self.$$.dirty[0] & /*prevButtonEdgePosition, prevButtonContainerStyle*/ 1572864) {
|
7797
|
+
$$invalidate(8, _prevButtonContainerStyle = (() => {
|
7798
|
+
const marginLeft = prevButtonEdgePosition.edgeDistance;
|
7799
|
+
const marginTop = prevButtonEdgePosition.edgeDirectionOffset;
|
7800
|
+
const marginString = `margin:${marginTop} 0 0 ${marginLeft}`;
|
7801
|
+
return [...prevButtonContainerStyle.split(';'), marginString].join(';');
|
7802
|
+
})());
|
7803
|
+
}
|
7804
|
+
|
7805
|
+
if ($$self.$$.dirty[0] & /*nextButton*/ 2097152) {
|
7806
|
+
$$invalidate(7, nextIconStyle = nextButton.type === 'icon'
|
7807
|
+
? `height: ${nextButton.size}; fill: ${nextButton.color};`
|
7759
7808
|
: '');
|
7760
7809
|
}
|
7761
7810
|
|
7762
|
-
if ($$self.$$.dirty[0] & /*
|
7763
|
-
$$invalidate(
|
7811
|
+
if ($$self.$$.dirty[0] & /*nextButtonEdgePosition, nextButtonContainerStyle*/ 12582912) {
|
7812
|
+
$$invalidate(6, _nextButtonContainerStyle = (() => {
|
7813
|
+
const marginRight = nextButtonEdgePosition.edgeDistance;
|
7814
|
+
const marginTop = nextButtonEdgePosition.edgeDirectionOffset;
|
7815
|
+
const marginString = `margin:${marginTop} ${marginRight} 0 0`;
|
7816
|
+
return [...nextButtonContainerStyle.split(';'), marginString].join(';');
|
7817
|
+
})());
|
7818
|
+
}
|
7819
|
+
|
7820
|
+
if ($$self.$$.dirty[0] & /*navigationButton*/ 16777216) {
|
7821
|
+
$$invalidate(5, navigationItemStyle = `padding: calc(${navigationButton.size} / 2);`);
|
7764
7822
|
}
|
7765
7823
|
|
7766
|
-
if ($$self.$$.dirty[0] & /*navigationButton, currentSlideId*/
|
7767
|
-
$$invalidate(
|
7824
|
+
if ($$self.$$.dirty[0] & /*navigationButton, currentSlideId*/ 83886080) {
|
7825
|
+
$$invalidate(4, getNavigationItemInnerStyle = i => `
|
7768
7826
|
width: ${navigationButton.size};
|
7769
7827
|
height: ${navigationButton.size};
|
7770
7828
|
background-color: ${i === currentSlideId
|
7771
7829
|
? navigationButton.colorActive
|
7772
7830
|
: navigationButton.color};`);
|
7773
7831
|
}
|
7832
|
+
|
7833
|
+
if ($$self.$$.dirty[0] & /*navigationEdgePosition*/ 33554432) {
|
7834
|
+
$$invalidate(3, navigationStyle = `margin:0 0 ${navigationEdgePosition.edgeDistance} ${navigationEdgePosition.edgeDirectionOffset}`);
|
7835
|
+
}
|
7774
7836
|
};
|
7775
7837
|
|
7776
7838
|
return [
|
7777
|
-
prevButtonContainerStyle,
|
7778
|
-
nextButtonContainerStyle,
|
7779
|
-
navigationStyle,
|
7780
7839
|
items,
|
7781
7840
|
containerElement,
|
7782
7841
|
slideElement,
|
7842
|
+
navigationStyle,
|
7783
7843
|
getNavigationItemInnerStyle,
|
7784
7844
|
navigationItemStyle,
|
7845
|
+
_nextButtonContainerStyle,
|
7785
7846
|
nextIconStyle,
|
7847
|
+
_prevButtonContainerStyle,
|
7786
7848
|
prevIconStyle,
|
7787
7849
|
isVisibleNextButton,
|
7788
7850
|
isVisiblePrevButton,
|
@@ -7793,8 +7855,13 @@ background-color: ${i === currentSlideId
|
|
7793
7855
|
set,
|
7794
7856
|
loop,
|
7795
7857
|
prevButton,
|
7858
|
+
prevButtonContainerStyle,
|
7859
|
+
prevButtonEdgePosition,
|
7796
7860
|
nextButton,
|
7861
|
+
nextButtonContainerStyle,
|
7862
|
+
nextButtonEdgePosition,
|
7797
7863
|
navigationButton,
|
7864
|
+
navigationEdgePosition,
|
7798
7865
|
currentSlideId,
|
7799
7866
|
slidePosition,
|
7800
7867
|
transitioning,
|
@@ -7820,11 +7887,13 @@ class Slide extends SvelteComponent {
|
|
7820
7887
|
{
|
7821
7888
|
loop: 17,
|
7822
7889
|
prevButton: 18,
|
7823
|
-
prevButtonContainerStyle:
|
7824
|
-
|
7825
|
-
|
7826
|
-
|
7827
|
-
|
7890
|
+
prevButtonContainerStyle: 19,
|
7891
|
+
prevButtonEdgePosition: 20,
|
7892
|
+
nextButton: 21,
|
7893
|
+
nextButtonContainerStyle: 22,
|
7894
|
+
nextButtonEdgePosition: 23,
|
7895
|
+
navigationButton: 24,
|
7896
|
+
navigationEdgePosition: 25
|
7828
7897
|
},
|
7829
7898
|
add_css$4,
|
7830
7899
|
[-1, -1]
|
@@ -8375,4 +8444,4 @@ class ImageBlock extends SvelteComponent {
|
|
8375
8444
|
}
|
8376
8445
|
}
|
8377
8446
|
|
8378
|
-
export { Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultFormButtonStyle, DefaultFormRatingButtonType, DefaultFormSelectStyle, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtonTypes, FormRatingButtons, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, applyCss, applyGlobalCss, close, closeAction, closed, collection$1 as collection, create, createApp, createFog, customHandlers, customVariables, destroy, destroyed, ensureModalRoot, finalize, formData, getActionShadowRoot, getCustomHandlers, getCustomVariables, getEvents, getLogs, getState$1 as getState, getStates, getStoreState, getSystem, hideOnScroll, hideOnTime, initialize, isClosed, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setState$1 as setState, show, showAction, showModal, showOnScroll, showOnTime, state, stopped, updateCustomHandlers, updateCustomVariables, widget };
|
8447
|
+
export { Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultEdgePosition, DefaultFormButtonStyle, DefaultFormRatingButtonType, DefaultFormSelectStyle, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtonTypes, FormRatingButtons, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, applyCss, applyGlobalCss, close, closeAction, closed, collection$1 as collection, create, createApp, createFog, customHandlers, customVariables, destroy, destroyed, ensureModalRoot, finalize, formData, getActionShadowRoot, getCustomHandlers, getCustomVariables, getEvents, getLogs, getState$1 as getState, getStates, getStoreState, getSystem, hideOnScroll, hideOnTime, initialize, isClosed, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setState$1 as setState, show, showAction, showModal, showOnScroll, showOnTime, state, stopped, updateCustomHandlers, updateCustomVariables, widget };
|