@plaidev/karte-action-sdk 1.1.235 → 1.1.237
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.js +153 -92
- package/dist/index.es.js +154 -93
- package/meta/karte-action-sdk.api.json +2248 -411
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -14044,7 +14044,7 @@ class Icon extends SvelteComponent {
|
|
14044
14044
|
/* src/components-flex/button/Button.svelte generated by Svelte v3.53.1 */
|
14045
14045
|
|
14046
14046
|
function add_css$6(target) {
|
14047
|
-
append_styles(target, "svelte-
|
14047
|
+
append_styles(target, "svelte-15m50q3", ".button.svelte-15m50q3{display:inline-flex;align-content:center;justify-content:center;gap:0.65em;cursor:pointer;outline:0;transition:background-color 0.12s, border-color 0.12s, color 0.12s}.button-icon.svelte-15m50q3{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
|
14048
14048
|
}
|
14049
14049
|
|
14050
14050
|
// (127:2) {#if (props.isIcon && props.iconVariant)}
|
@@ -14077,7 +14077,7 @@ function create_if_block$2(ctx) {
|
|
14077
14077
|
this.h();
|
14078
14078
|
},
|
14079
14079
|
h() {
|
14080
|
-
attr(div, "class", "
|
14080
|
+
attr(div, "class", "button-icon svelte-15m50q3");
|
14081
14081
|
},
|
14082
14082
|
m(target, anchor) {
|
14083
14083
|
insert_hydration(target, div, anchor);
|
@@ -14151,7 +14151,7 @@ function create_fragment$6(ctx) {
|
|
14151
14151
|
h() {
|
14152
14152
|
attr(button, "data-layer-id", /*layerId*/ ctx[1]);
|
14153
14153
|
attr(button, "style", /*style*/ ctx[2]);
|
14154
|
-
attr(button, "class", "
|
14154
|
+
attr(button, "class", "button svelte-15m50q3");
|
14155
14155
|
},
|
14156
14156
|
m(target, anchor) {
|
14157
14157
|
insert_hydration(target, button, anchor);
|
@@ -14399,13 +14399,28 @@ const BUTTON_ICON_ANGLE = {
|
|
14399
14399
|
/* src/components-flex/close-button/CloseButton.svelte generated by Svelte v3.53.1 */
|
14400
14400
|
|
14401
14401
|
function add_css$5(target) {
|
14402
|
-
append_styles(target, "svelte-
|
14402
|
+
append_styles(target, "svelte-103rmqy", ".close-button.svelte-103rmqy{display:inline-flex;align-items:center;justify-content:center;border-radius:100%;background:none;cursor:pointer;border:0;outline:0;transition:background-color 0.12s,\n border-color 0.12s,\n color 0.12s}");
|
14403
14403
|
}
|
14404
14404
|
|
14405
14405
|
function create_fragment$5(ctx) {
|
14406
14406
|
let button;
|
14407
14407
|
let svg;
|
14408
14408
|
let path;
|
14409
|
+
let mounted;
|
14410
|
+
let dispose;
|
14411
|
+
|
14412
|
+
let button_levels = [
|
14413
|
+
{ "data-layer-id": /*layerId*/ ctx[0] },
|
14414
|
+
{ class: "close-button" },
|
14415
|
+
{ style: /*style*/ ctx[1] },
|
14416
|
+
dataAttrStopPropagation('click')
|
14417
|
+
];
|
14418
|
+
|
14419
|
+
let button_data = {};
|
14420
|
+
|
14421
|
+
for (let i = 0; i < button_levels.length; i += 1) {
|
14422
|
+
button_data = assign(button_data, button_levels[i]);
|
14423
|
+
}
|
14409
14424
|
|
14410
14425
|
return {
|
14411
14426
|
c() {
|
@@ -14444,45 +14459,68 @@ function create_fragment$5(ctx) {
|
|
14444
14459
|
set_style(svg, "height", "75%");
|
14445
14460
|
attr(svg, "viewBox", "0 0 50 50");
|
14446
14461
|
attr(svg, "fill", "#666666");
|
14447
|
-
|
14448
|
-
|
14449
|
-
attr(button, "style", /*style*/ ctx[1]);
|
14462
|
+
set_attributes(button, button_data);
|
14463
|
+
toggle_class(button, "svelte-103rmqy", true);
|
14450
14464
|
},
|
14451
14465
|
m(target, anchor) {
|
14452
14466
|
insert_hydration(target, button, anchor);
|
14453
14467
|
append_hydration(button, svg);
|
14454
14468
|
append_hydration(svg, path);
|
14469
|
+
if (button.autofocus) button.focus();
|
14470
|
+
|
14471
|
+
if (!mounted) {
|
14472
|
+
dispose = listen(button, "click", prevent_default(checkStopPropagation('click', /*handleClick*/ ctx[2])));
|
14473
|
+
mounted = true;
|
14474
|
+
}
|
14455
14475
|
},
|
14456
14476
|
p(ctx, [dirty]) {
|
14457
|
-
|
14458
|
-
|
14459
|
-
|
14477
|
+
set_attributes(button, button_data = get_spread_update(button_levels, [
|
14478
|
+
dirty & /*layerId*/ 1 && { "data-layer-id": /*layerId*/ ctx[0] },
|
14479
|
+
{ class: "close-button" },
|
14480
|
+
dirty & /*style*/ 2 && { style: /*style*/ ctx[1] },
|
14481
|
+
dataAttrStopPropagation('click')
|
14482
|
+
]));
|
14460
14483
|
|
14461
|
-
|
14462
|
-
attr(button, "style", /*style*/ ctx[1]);
|
14463
|
-
}
|
14484
|
+
toggle_class(button, "svelte-103rmqy", true);
|
14464
14485
|
},
|
14465
14486
|
i: noop,
|
14466
14487
|
o: noop,
|
14467
14488
|
d(detaching) {
|
14468
14489
|
if (detaching) detach(button);
|
14490
|
+
mounted = false;
|
14491
|
+
dispose();
|
14469
14492
|
}
|
14470
14493
|
};
|
14471
14494
|
}
|
14472
14495
|
|
14473
14496
|
function instance$5($$self, $$props, $$invalidate) {
|
14474
14497
|
let style;
|
14498
|
+
let { onClick = { operation: 'closeApp', args: ['button'] } } = $$props;
|
14475
14499
|
let { props = {} } = $$props;
|
14476
14500
|
let { layerId = '' } = $$props;
|
14501
|
+
let { eventName = '' } = $$props;
|
14502
|
+
let { eventValue = undefined } = $$props;
|
14503
|
+
|
14504
|
+
function handleClick() {
|
14505
|
+
if (eventName) {
|
14506
|
+
send_event(eventName, eventValue);
|
14507
|
+
}
|
14508
|
+
|
14509
|
+
execOnClickOperation(onClick);
|
14510
|
+
}
|
14511
|
+
|
14477
14512
|
const size = props.size ?? 24;
|
14478
14513
|
|
14479
14514
|
$$self.$$set = $$props => {
|
14480
|
-
if ('
|
14515
|
+
if ('onClick' in $$props) $$invalidate(3, onClick = $$props.onClick);
|
14516
|
+
if ('props' in $$props) $$invalidate(4, props = $$props.props);
|
14481
14517
|
if ('layerId' in $$props) $$invalidate(0, layerId = $$props.layerId);
|
14518
|
+
if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
|
14519
|
+
if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
|
14482
14520
|
};
|
14483
14521
|
|
14484
14522
|
$$self.$$.update = () => {
|
14485
|
-
if ($$self.$$.dirty & /*props*/
|
14523
|
+
if ($$self.$$.dirty & /*props*/ 16) {
|
14486
14524
|
$$invalidate(1, style = objToStyle({
|
14487
14525
|
width: `${size}px`,
|
14488
14526
|
height: `${size}px`,
|
@@ -14492,13 +14530,28 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
14492
14530
|
}
|
14493
14531
|
};
|
14494
14532
|
|
14495
|
-
return [layerId, style, props];
|
14533
|
+
return [layerId, style, handleClick, onClick, props, eventName, eventValue];
|
14496
14534
|
}
|
14497
14535
|
|
14498
14536
|
class CloseButton extends SvelteComponent {
|
14499
14537
|
constructor(options) {
|
14500
14538
|
super();
|
14501
|
-
|
14539
|
+
|
14540
|
+
init(
|
14541
|
+
this,
|
14542
|
+
options,
|
14543
|
+
instance$5,
|
14544
|
+
create_fragment$5,
|
14545
|
+
safe_not_equal,
|
14546
|
+
{
|
14547
|
+
onClick: 3,
|
14548
|
+
props: 4,
|
14549
|
+
layerId: 0,
|
14550
|
+
eventName: 5,
|
14551
|
+
eventValue: 6
|
14552
|
+
},
|
14553
|
+
add_css$5
|
14554
|
+
);
|
14502
14555
|
}
|
14503
14556
|
}
|
14504
14557
|
|
@@ -14983,7 +15036,7 @@ class BackgroundOverlay extends SvelteComponent {
|
|
14983
15036
|
/* src/components-flex/modal/Modal.svelte generated by Svelte v3.53.1 */
|
14984
15037
|
|
14985
15038
|
function add_css(target) {
|
14986
|
-
append_styles(target, "svelte-
|
15039
|
+
append_styles(target, "svelte-f7e8di", ".modal.svelte-f7e8di{position:fixed;box-sizing:border-box;z-index:2147483647;display:flex}.modal.svelte-f7e8di > .button{flex:auto;display:flex}.close.svelte-f7e8di{position:absolute;top:8px;right:8px}.close.svelte-f7e8di > .button{position:absolute;display:flex;justify-content:center;align-items:center;background-color:transparent;border:none;cursor:pointer;padding:0;transition:all 0.25s}.close.svelte-f7e8di > .button:hover{transform:rotate(90deg)}@media screen and (min-width: 641px){.modal-bp.svelte-f7e8di{height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important}.background-bp-pc{display:block}.background-bp-sp{display:none}}@media screen and (max-width: 640px){.modal-bp.svelte-f7e8di{height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
|
14987
15040
|
}
|
14988
15041
|
|
14989
15042
|
// (264:0) {:else}
|
@@ -14993,12 +15046,12 @@ function create_else_block(ctx) {
|
|
14993
15046
|
|
14994
15047
|
backgroundoverlay = new BackgroundOverlay({
|
14995
15048
|
props: {
|
14996
|
-
backgroundOverlay: /*backgroundOverlay*/ ctx[
|
15049
|
+
backgroundOverlay: /*backgroundOverlay*/ ctx[7]
|
14997
15050
|
}
|
14998
15051
|
});
|
14999
15052
|
|
15000
15053
|
backgroundoverlay.$on("click", function () {
|
15001
|
-
if (is_function(/*backgroundClick*/ ctx[
|
15054
|
+
if (is_function(/*backgroundClick*/ ctx[15])) /*backgroundClick*/ ctx[15].apply(this, arguments);
|
15002
15055
|
});
|
15003
15056
|
|
15004
15057
|
return {
|
@@ -15015,7 +15068,7 @@ function create_else_block(ctx) {
|
|
15015
15068
|
p(new_ctx, dirty) {
|
15016
15069
|
ctx = new_ctx;
|
15017
15070
|
const backgroundoverlay_changes = {};
|
15018
|
-
if (dirty[0] & /*backgroundOverlay*/
|
15071
|
+
if (dirty[0] & /*backgroundOverlay*/ 128) backgroundoverlay_changes.backgroundOverlay = /*backgroundOverlay*/ ctx[7];
|
15019
15072
|
backgroundoverlay.$set(backgroundoverlay_changes);
|
15020
15073
|
},
|
15021
15074
|
i(local) {
|
@@ -15042,24 +15095,24 @@ function create_if_block_3(ctx) {
|
|
15042
15095
|
|
15043
15096
|
backgroundoverlay0 = new BackgroundOverlay({
|
15044
15097
|
props: {
|
15045
|
-
class: "
|
15046
|
-
backgroundOverlay: /*backgroundOverlayPC*/ ctx[
|
15098
|
+
class: "background-bp-pc",
|
15099
|
+
backgroundOverlay: /*backgroundOverlayPC*/ ctx[8]
|
15047
15100
|
}
|
15048
15101
|
});
|
15049
15102
|
|
15050
15103
|
backgroundoverlay0.$on("click", function () {
|
15051
|
-
if (is_function(/*backgroundClickPC*/ ctx[
|
15104
|
+
if (is_function(/*backgroundClickPC*/ ctx[14])) /*backgroundClickPC*/ ctx[14].apply(this, arguments);
|
15052
15105
|
});
|
15053
15106
|
|
15054
15107
|
backgroundoverlay1 = new BackgroundOverlay({
|
15055
15108
|
props: {
|
15056
|
-
class: "
|
15057
|
-
backgroundOverlay: /*backgroundOverlaySP*/ ctx[
|
15109
|
+
class: "background-bp-sp ",
|
15110
|
+
backgroundOverlay: /*backgroundOverlaySP*/ ctx[9]
|
15058
15111
|
}
|
15059
15112
|
});
|
15060
15113
|
|
15061
15114
|
backgroundoverlay1.$on("click", function () {
|
15062
|
-
if (is_function(/*backgroundClickSP*/ ctx[
|
15115
|
+
if (is_function(/*backgroundClickSP*/ ctx[13])) /*backgroundClickSP*/ ctx[13].apply(this, arguments);
|
15063
15116
|
});
|
15064
15117
|
|
15065
15118
|
return {
|
@@ -15082,10 +15135,10 @@ function create_if_block_3(ctx) {
|
|
15082
15135
|
p(new_ctx, dirty) {
|
15083
15136
|
ctx = new_ctx;
|
15084
15137
|
const backgroundoverlay0_changes = {};
|
15085
|
-
if (dirty[0] & /*backgroundOverlayPC*/
|
15138
|
+
if (dirty[0] & /*backgroundOverlayPC*/ 256) backgroundoverlay0_changes.backgroundOverlay = /*backgroundOverlayPC*/ ctx[8];
|
15086
15139
|
backgroundoverlay0.$set(backgroundoverlay0_changes);
|
15087
15140
|
const backgroundoverlay1_changes = {};
|
15088
|
-
if (dirty[0] & /*backgroundOverlaySP*/
|
15141
|
+
if (dirty[0] & /*backgroundOverlaySP*/ 512) backgroundoverlay1_changes.backgroundOverlay = /*backgroundOverlaySP*/ ctx[9];
|
15089
15142
|
backgroundoverlay1.$set(backgroundoverlay1_changes);
|
15090
15143
|
},
|
15091
15144
|
i(local) {
|
@@ -15128,7 +15181,7 @@ function create_if_block(ctx) {
|
|
15128
15181
|
let div1_class_value;
|
15129
15182
|
let div1_intro;
|
15130
15183
|
let current;
|
15131
|
-
let if_block = /*closable*/ ctx[
|
15184
|
+
let if_block = /*closable*/ ctx[16] && create_if_block_1(ctx);
|
15132
15185
|
const default_slot_template = /*#slots*/ ctx[30].default;
|
15133
15186
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[29], null);
|
15134
15187
|
|
@@ -15160,10 +15213,10 @@ function create_if_block(ctx) {
|
|
15160
15213
|
this.h();
|
15161
15214
|
},
|
15162
15215
|
h() {
|
15163
|
-
attr(div1, "class", div1_class_value = "" + (null_to_empty(['
|
15216
|
+
attr(div1, "class", div1_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-f7e8di"));
|
15164
15217
|
attr(div1, "role", "dialog");
|
15165
15218
|
attr(div1, "aria-modal", "true");
|
15166
|
-
attr(div1, "style", Array.from(/*modalStyles*/ ctx[
|
15219
|
+
attr(div1, "style", Array.from(/*modalStyles*/ ctx[18]).join(';'));
|
15167
15220
|
},
|
15168
15221
|
m(target, anchor) {
|
15169
15222
|
insert_hydration(target, div1, anchor);
|
@@ -15181,11 +15234,11 @@ function create_if_block(ctx) {
|
|
15181
15234
|
p(new_ctx, dirty) {
|
15182
15235
|
ctx = new_ctx;
|
15183
15236
|
|
15184
|
-
if (/*closable*/ ctx[
|
15237
|
+
if (/*closable*/ ctx[16]) {
|
15185
15238
|
if (if_block) {
|
15186
15239
|
if_block.p(ctx, dirty);
|
15187
15240
|
|
15188
|
-
if (dirty[0] & /*closable*/
|
15241
|
+
if (dirty[0] & /*closable*/ 65536) {
|
15189
15242
|
transition_in(if_block, 1);
|
15190
15243
|
}
|
15191
15244
|
} else {
|
@@ -15219,7 +15272,7 @@ function create_if_block(ctx) {
|
|
15219
15272
|
}
|
15220
15273
|
}
|
15221
15274
|
|
15222
|
-
if (!current || dirty[0] & /*useBreakPoint*/ 1 && div1_class_value !== (div1_class_value = "" + (null_to_empty(['
|
15275
|
+
if (!current || dirty[0] & /*useBreakPoint*/ 1 && div1_class_value !== (div1_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-f7e8di"))) {
|
15223
15276
|
attr(div1, "class", div1_class_value);
|
15224
15277
|
}
|
15225
15278
|
},
|
@@ -15231,7 +15284,7 @@ function create_if_block(ctx) {
|
|
15231
15284
|
if (!div1_intro) {
|
15232
15285
|
add_render_callback(() => {
|
15233
15286
|
div1_intro = create_in_transition(div1, customAnimation, {
|
15234
|
-
transforms: /*transforms*/ ctx[
|
15287
|
+
transforms: /*transforms*/ ctx[6],
|
15235
15288
|
animationStyle: /*animation*/ ctx[1]
|
15236
15289
|
});
|
15237
15290
|
|
@@ -15262,7 +15315,12 @@ function create_if_block_1(ctx) {
|
|
15262
15315
|
let current;
|
15263
15316
|
|
15264
15317
|
closebutton = new CloseButton({
|
15265
|
-
props: {
|
15318
|
+
props: {
|
15319
|
+
onClick: /*onClose*/ ctx[2],
|
15320
|
+
eventName: /*closeEventName*/ ctx[3],
|
15321
|
+
eventValue: /*closeEventValue*/ ctx[4],
|
15322
|
+
props: /*closeButtonProps*/ ctx[5]
|
15323
|
+
}
|
15266
15324
|
});
|
15267
15325
|
|
15268
15326
|
return {
|
@@ -15279,8 +15337,8 @@ function create_if_block_1(ctx) {
|
|
15279
15337
|
this.h();
|
15280
15338
|
},
|
15281
15339
|
h() {
|
15282
|
-
attr(div, "class", "
|
15283
|
-
set_style(div, "z-index", /*$maximumZindex*/ ctx[
|
15340
|
+
attr(div, "class", "close svelte-f7e8di");
|
15341
|
+
set_style(div, "z-index", /*$maximumZindex*/ ctx[17] + 1);
|
15284
15342
|
},
|
15285
15343
|
m(target, anchor) {
|
15286
15344
|
insert_hydration(target, div, anchor);
|
@@ -15289,11 +15347,14 @@ function create_if_block_1(ctx) {
|
|
15289
15347
|
},
|
15290
15348
|
p(ctx, dirty) {
|
15291
15349
|
const closebutton_changes = {};
|
15292
|
-
if (dirty[0] & /*
|
15350
|
+
if (dirty[0] & /*onClose*/ 4) closebutton_changes.onClick = /*onClose*/ ctx[2];
|
15351
|
+
if (dirty[0] & /*closeEventName*/ 8) closebutton_changes.eventName = /*closeEventName*/ ctx[3];
|
15352
|
+
if (dirty[0] & /*closeEventValue*/ 16) closebutton_changes.eventValue = /*closeEventValue*/ ctx[4];
|
15353
|
+
if (dirty[0] & /*closeButtonProps*/ 32) closebutton_changes.props = /*closeButtonProps*/ ctx[5];
|
15293
15354
|
closebutton.$set(closebutton_changes);
|
15294
15355
|
|
15295
|
-
if (!current || dirty[0] & /*$maximumZindex*/
|
15296
|
-
set_style(div, "z-index", /*$maximumZindex*/ ctx[
|
15356
|
+
if (!current || dirty[0] & /*$maximumZindex*/ 131072) {
|
15357
|
+
set_style(div, "z-index", /*$maximumZindex*/ ctx[17] + 1);
|
15297
15358
|
}
|
15298
15359
|
},
|
15299
15360
|
i(local) {
|
@@ -15333,7 +15394,7 @@ function create_fragment(ctx) {
|
|
15333
15394
|
|
15334
15395
|
current_block_type_index = select_block_type(ctx);
|
15335
15396
|
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
15336
|
-
let if_block1 = /*visible*/ ctx[
|
15397
|
+
let if_block1 = /*visible*/ ctx[11] && create_if_block(ctx);
|
15337
15398
|
|
15338
15399
|
return {
|
15339
15400
|
c() {
|
@@ -15357,7 +15418,7 @@ function create_fragment(ctx) {
|
|
15357
15418
|
|
15358
15419
|
if (!mounted) {
|
15359
15420
|
dispose = listen(window, "keydown", function () {
|
15360
|
-
if (is_function(/*handle_keydown*/ ctx[
|
15421
|
+
if (is_function(/*handle_keydown*/ ctx[12])) /*handle_keydown*/ ctx[12].apply(this, arguments);
|
15361
15422
|
});
|
15362
15423
|
|
15363
15424
|
mounted = true;
|
@@ -15391,11 +15452,11 @@ function create_fragment(ctx) {
|
|
15391
15452
|
if_block0.m(t.parentNode, t);
|
15392
15453
|
}
|
15393
15454
|
|
15394
|
-
if (/*visible*/ ctx[
|
15455
|
+
if (/*visible*/ ctx[11]) {
|
15395
15456
|
if (if_block1) {
|
15396
15457
|
if_block1.p(ctx, dirty);
|
15397
15458
|
|
15398
|
-
if (dirty[0] & /*visible*/
|
15459
|
+
if (dirty[0] & /*visible*/ 2048) {
|
15399
15460
|
transition_in(if_block1, 1);
|
15400
15461
|
}
|
15401
15462
|
} else {
|
@@ -15445,7 +15506,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
15445
15506
|
let handle_keydown;
|
15446
15507
|
let visible;
|
15447
15508
|
let $maximumZindex;
|
15448
|
-
component_subscribe($$self, maximumZindex, $$value => $$invalidate(
|
15509
|
+
component_subscribe($$self, maximumZindex, $$value => $$invalidate(17, $maximumZindex = $$value));
|
15449
15510
|
let { $$slots: slots = {}, $$scope } = $$props;
|
15450
15511
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
15451
15512
|
let { clickEventName = '' } = $$props;
|
@@ -15476,7 +15537,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
15476
15537
|
let modal;
|
15477
15538
|
|
15478
15539
|
onMount$1(() => {
|
15479
|
-
$$invalidate(
|
15540
|
+
$$invalidate(11, visible = true);
|
15480
15541
|
});
|
15481
15542
|
|
15482
15543
|
onDestroy$1(() => setPreviousFocus());
|
@@ -15484,28 +15545,28 @@ function instance($$self, $$props, $$invalidate) {
|
|
15484
15545
|
function div1_binding($$value) {
|
15485
15546
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
15486
15547
|
modal = $$value;
|
15487
|
-
$$invalidate(
|
15548
|
+
$$invalidate(10, modal);
|
15488
15549
|
});
|
15489
15550
|
}
|
15490
15551
|
|
15491
15552
|
$$self.$$set = $$props => {
|
15492
|
-
if ('onClick' in $$props) $$invalidate(
|
15493
|
-
if ('clickEventName' in $$props) $$invalidate(
|
15494
|
-
if ('clickEventValue' in $$props) $$invalidate(
|
15553
|
+
if ('onClick' in $$props) $$invalidate(19, onClick = $$props.onClick);
|
15554
|
+
if ('clickEventName' in $$props) $$invalidate(20, clickEventName = $$props.clickEventName);
|
15555
|
+
if ('clickEventValue' in $$props) $$invalidate(21, clickEventValue = $$props.clickEventValue);
|
15495
15556
|
if ('useBreakPoint' in $$props) $$invalidate(0, useBreakPoint = $$props.useBreakPoint);
|
15496
|
-
if ('placement' in $$props) $$invalidate(
|
15497
|
-
if ('breakPoint' in $$props) $$invalidate(
|
15498
|
-
if ('elasticity' in $$props) $$invalidate(
|
15557
|
+
if ('placement' in $$props) $$invalidate(22, placement = $$props.placement);
|
15558
|
+
if ('breakPoint' in $$props) $$invalidate(23, breakPoint = $$props.breakPoint);
|
15559
|
+
if ('elasticity' in $$props) $$invalidate(24, elasticity = $$props.elasticity);
|
15499
15560
|
if ('animation' in $$props) $$invalidate(1, animation = $$props.animation);
|
15500
|
-
if ('onClose' in $$props) $$invalidate(
|
15501
|
-
if ('closeEventName' in $$props) $$invalidate(
|
15502
|
-
if ('closeEventValue' in $$props) $$invalidate(
|
15503
|
-
if ('closeButtonProps' in $$props) $$invalidate(
|
15561
|
+
if ('onClose' in $$props) $$invalidate(2, onClose = $$props.onClose);
|
15562
|
+
if ('closeEventName' in $$props) $$invalidate(3, closeEventName = $$props.closeEventName);
|
15563
|
+
if ('closeEventValue' in $$props) $$invalidate(4, closeEventValue = $$props.closeEventValue);
|
15564
|
+
if ('closeButtonProps' in $$props) $$invalidate(5, closeButtonProps = $$props.closeButtonProps);
|
15504
15565
|
if ('$$scope' in $$props) $$invalidate(29, $$scope = $$props.$$scope);
|
15505
15566
|
};
|
15506
15567
|
|
15507
15568
|
$$self.$$.update = () => {
|
15508
|
-
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, onClose*/
|
15569
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, onClose*/ 28) {
|
15509
15570
|
$$invalidate(28, close = () => {
|
15510
15571
|
if (closeEventName) {
|
15511
15572
|
send_event(closeEventName, closeEventValue);
|
@@ -15515,23 +15576,23 @@ function instance($$self, $$props, $$invalidate) {
|
|
15515
15576
|
});
|
15516
15577
|
}
|
15517
15578
|
|
15518
|
-
if ($$self.$$.dirty[0] & /*onClose*/
|
15519
|
-
$$invalidate(
|
15579
|
+
if ($$self.$$.dirty[0] & /*onClose*/ 4) {
|
15580
|
+
$$invalidate(16, closable = haveFunction(onClose));
|
15520
15581
|
}
|
15521
15582
|
|
15522
|
-
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/
|
15583
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 12582913) {
|
15523
15584
|
{
|
15524
15585
|
|
15525
15586
|
if (useBreakPoint) {
|
15526
15587
|
const pc = breakPoint?.PC?.placement?.backgroundOverlay;
|
15527
|
-
$$invalidate(
|
15588
|
+
$$invalidate(8, backgroundOverlayPC = pc ?? false);
|
15528
15589
|
const sp = breakPoint?.SP?.placement?.backgroundOverlay;
|
15529
|
-
$$invalidate(
|
15590
|
+
$$invalidate(9, backgroundOverlaySP = sp ?? false);
|
15530
15591
|
}
|
15531
15592
|
}
|
15532
15593
|
}
|
15533
15594
|
|
15534
|
-
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/
|
15595
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 12582913) {
|
15535
15596
|
{
|
15536
15597
|
if (placement && placement.backgroundClick) {
|
15537
15598
|
$$invalidate(25, backgroundClickFunction = placement.backgroundClick);
|
@@ -15553,8 +15614,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
15553
15614
|
}
|
15554
15615
|
}
|
15555
15616
|
|
15556
|
-
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunction*/
|
15557
|
-
$$invalidate(
|
15617
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunction*/ 33554456) {
|
15618
|
+
$$invalidate(15, backgroundClick = () => {
|
15558
15619
|
if (closeEventName) {
|
15559
15620
|
send_event(closeEventName, closeEventValue);
|
15560
15621
|
}
|
@@ -15563,8 +15624,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
15563
15624
|
});
|
15564
15625
|
}
|
15565
15626
|
|
15566
|
-
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunctionPC*/
|
15567
|
-
$$invalidate(
|
15627
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunctionPC*/ 67108888) {
|
15628
|
+
$$invalidate(14, backgroundClickPC = () => {
|
15568
15629
|
if (closeEventName) {
|
15569
15630
|
send_event(closeEventName, closeEventValue);
|
15570
15631
|
}
|
@@ -15573,8 +15634,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
15573
15634
|
});
|
15574
15635
|
}
|
15575
15636
|
|
15576
|
-
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunctionSP*/
|
15577
|
-
$$invalidate(
|
15637
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunctionSP*/ 134217752) {
|
15638
|
+
$$invalidate(13, backgroundClickSP = () => {
|
15578
15639
|
if (closeEventName) {
|
15579
15640
|
send_event(closeEventName, closeEventValue);
|
15580
15641
|
}
|
@@ -15583,7 +15644,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
15583
15644
|
});
|
15584
15645
|
}
|
15585
15646
|
|
15586
|
-
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint, transforms*/
|
15647
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint, transforms*/ 12582977) {
|
15587
15648
|
// 表示位置のスタイルとアニメーションの動きを設定
|
15588
15649
|
{
|
15589
15650
|
// 表示位置のスタイルの設定
|
@@ -15595,7 +15656,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
15595
15656
|
modalStyles.add(positionStyle);
|
15596
15657
|
}
|
15597
15658
|
|
15598
|
-
$$invalidate(
|
15659
|
+
$$invalidate(6, transforms = []);
|
15599
15660
|
|
15600
15661
|
DEVICE_IDS.forEach(deviceId => {
|
15601
15662
|
|
@@ -15613,7 +15674,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
15613
15674
|
}
|
15614
15675
|
}
|
15615
15676
|
|
15616
|
-
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/
|
15677
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 12582913) {
|
15617
15678
|
// 表示位置の調整のスタイルを設定
|
15618
15679
|
{
|
15619
15680
|
let margin = DefaultModalPlacement.margin;
|
@@ -15637,7 +15698,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
15637
15698
|
}
|
15638
15699
|
}
|
15639
15700
|
|
15640
|
-
if ($$self.$$.dirty[0] & /*elasticity, useBreakPoint, breakPoint*/
|
15701
|
+
if ($$self.$$.dirty[0] & /*elasticity, useBreakPoint, breakPoint*/ 25165825) {
|
15641
15702
|
// 拡大方法のスタイルを設定
|
15642
15703
|
{
|
15643
15704
|
let elasticStyle = ElasticityStyle['none' ];
|
@@ -15660,18 +15721,21 @@ function instance($$self, $$props, $$invalidate) {
|
|
15660
15721
|
}
|
15661
15722
|
|
15662
15723
|
if ($$self.$$.dirty[0] & /*close*/ 268435456) {
|
15663
|
-
$$invalidate(
|
15724
|
+
$$invalidate(12, handle_keydown = handleKeydown({ Escape: close }));
|
15664
15725
|
}
|
15665
15726
|
};
|
15666
15727
|
|
15667
|
-
$$invalidate(
|
15728
|
+
$$invalidate(10, modal = null);
|
15668
15729
|
|
15669
15730
|
// svelteコンポーネントのアニメーションを発火させるためにマウント時にvisibleをtrueにする。
|
15670
|
-
$$invalidate(
|
15731
|
+
$$invalidate(11, visible = false);
|
15671
15732
|
|
15672
15733
|
return [
|
15673
15734
|
useBreakPoint,
|
15674
15735
|
animation,
|
15736
|
+
onClose,
|
15737
|
+
closeEventName,
|
15738
|
+
closeEventValue,
|
15675
15739
|
closeButtonProps,
|
15676
15740
|
transforms,
|
15677
15741
|
backgroundOverlay,
|
@@ -15692,9 +15756,6 @@ function instance($$self, $$props, $$invalidate) {
|
|
15692
15756
|
placement,
|
15693
15757
|
breakPoint,
|
15694
15758
|
elasticity,
|
15695
|
-
onClose,
|
15696
|
-
closeEventName,
|
15697
|
-
closeEventValue,
|
15698
15759
|
backgroundClickFunction,
|
15699
15760
|
backgroundClickFunctionPC,
|
15700
15761
|
backgroundClickFunctionSP,
|
@@ -15716,18 +15777,18 @@ class Modal extends SvelteComponent {
|
|
15716
15777
|
create_fragment,
|
15717
15778
|
safe_not_equal,
|
15718
15779
|
{
|
15719
|
-
onClick:
|
15720
|
-
clickEventName:
|
15721
|
-
clickEventValue:
|
15780
|
+
onClick: 19,
|
15781
|
+
clickEventName: 20,
|
15782
|
+
clickEventValue: 21,
|
15722
15783
|
useBreakPoint: 0,
|
15723
|
-
placement:
|
15724
|
-
breakPoint:
|
15725
|
-
elasticity:
|
15784
|
+
placement: 22,
|
15785
|
+
breakPoint: 23,
|
15786
|
+
elasticity: 24,
|
15726
15787
|
animation: 1,
|
15727
|
-
onClose:
|
15728
|
-
closeEventName:
|
15729
|
-
closeEventValue:
|
15730
|
-
closeButtonProps:
|
15788
|
+
onClose: 2,
|
15789
|
+
closeEventName: 3,
|
15790
|
+
closeEventValue: 4,
|
15791
|
+
closeButtonProps: 5
|
15731
15792
|
},
|
15732
15793
|
add_css,
|
15733
15794
|
[-1, -1]
|