@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/index.es.js
CHANGED
@@ -13052,7 +13052,7 @@ class Icon extends SvelteComponent {
|
|
13052
13052
|
/* src/components-flex/button/Button.svelte generated by Svelte v3.53.1 */
|
13053
13053
|
|
13054
13054
|
function add_css$6(target) {
|
13055
|
-
append_styles(target, "svelte-
|
13055
|
+
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}");
|
13056
13056
|
}
|
13057
13057
|
|
13058
13058
|
// (127:2) {#if (props.isIcon && props.iconVariant)}
|
@@ -13075,7 +13075,7 @@ function create_if_block$2(ctx) {
|
|
13075
13075
|
c() {
|
13076
13076
|
div = element("div");
|
13077
13077
|
create_component(icon.$$.fragment);
|
13078
|
-
attr(div, "class", "
|
13078
|
+
attr(div, "class", "button-icon svelte-15m50q3");
|
13079
13079
|
},
|
13080
13080
|
m(target, anchor) {
|
13081
13081
|
insert(target, div, anchor);
|
@@ -13129,7 +13129,7 @@ function create_fragment$6(ctx) {
|
|
13129
13129
|
t1 = text(t1_value);
|
13130
13130
|
attr(button, "data-layer-id", /*layerId*/ ctx[1]);
|
13131
13131
|
attr(button, "style", /*style*/ ctx[2]);
|
13132
|
-
attr(button, "class", "
|
13132
|
+
attr(button, "class", "button svelte-15m50q3");
|
13133
13133
|
},
|
13134
13134
|
m(target, anchor) {
|
13135
13135
|
insert(target, button, anchor);
|
@@ -13377,13 +13377,28 @@ const BUTTON_ICON_ANGLE = {
|
|
13377
13377
|
/* src/components-flex/close-button/CloseButton.svelte generated by Svelte v3.53.1 */
|
13378
13378
|
|
13379
13379
|
function add_css$5(target) {
|
13380
|
-
append_styles(target, "svelte-
|
13380
|
+
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}");
|
13381
13381
|
}
|
13382
13382
|
|
13383
13383
|
function create_fragment$5(ctx) {
|
13384
13384
|
let button;
|
13385
13385
|
let svg;
|
13386
13386
|
let path;
|
13387
|
+
let mounted;
|
13388
|
+
let dispose;
|
13389
|
+
|
13390
|
+
let button_levels = [
|
13391
|
+
{ "data-layer-id": /*layerId*/ ctx[0] },
|
13392
|
+
{ class: "close-button" },
|
13393
|
+
{ style: /*style*/ ctx[1] },
|
13394
|
+
dataAttrStopPropagation('click')
|
13395
|
+
];
|
13396
|
+
|
13397
|
+
let button_data = {};
|
13398
|
+
|
13399
|
+
for (let i = 0; i < button_levels.length; i += 1) {
|
13400
|
+
button_data = assign(button_data, button_levels[i]);
|
13401
|
+
}
|
13387
13402
|
|
13388
13403
|
return {
|
13389
13404
|
c() {
|
@@ -13396,45 +13411,68 @@ function create_fragment$5(ctx) {
|
|
13396
13411
|
set_style(svg, "height", "75%");
|
13397
13412
|
attr(svg, "viewBox", "0 0 50 50");
|
13398
13413
|
attr(svg, "fill", "#666666");
|
13399
|
-
|
13400
|
-
|
13401
|
-
attr(button, "style", /*style*/ ctx[1]);
|
13414
|
+
set_attributes(button, button_data);
|
13415
|
+
toggle_class(button, "svelte-103rmqy", true);
|
13402
13416
|
},
|
13403
13417
|
m(target, anchor) {
|
13404
13418
|
insert(target, button, anchor);
|
13405
13419
|
append(button, svg);
|
13406
13420
|
append(svg, path);
|
13421
|
+
if (button.autofocus) button.focus();
|
13422
|
+
|
13423
|
+
if (!mounted) {
|
13424
|
+
dispose = listen(button, "click", prevent_default(checkStopPropagation('click', /*handleClick*/ ctx[2])));
|
13425
|
+
mounted = true;
|
13426
|
+
}
|
13407
13427
|
},
|
13408
13428
|
p(ctx, [dirty]) {
|
13409
|
-
|
13410
|
-
|
13411
|
-
|
13429
|
+
set_attributes(button, button_data = get_spread_update(button_levels, [
|
13430
|
+
dirty & /*layerId*/ 1 && { "data-layer-id": /*layerId*/ ctx[0] },
|
13431
|
+
{ class: "close-button" },
|
13432
|
+
dirty & /*style*/ 2 && { style: /*style*/ ctx[1] },
|
13433
|
+
dataAttrStopPropagation('click')
|
13434
|
+
]));
|
13412
13435
|
|
13413
|
-
|
13414
|
-
attr(button, "style", /*style*/ ctx[1]);
|
13415
|
-
}
|
13436
|
+
toggle_class(button, "svelte-103rmqy", true);
|
13416
13437
|
},
|
13417
13438
|
i: noop,
|
13418
13439
|
o: noop,
|
13419
13440
|
d(detaching) {
|
13420
13441
|
if (detaching) detach(button);
|
13442
|
+
mounted = false;
|
13443
|
+
dispose();
|
13421
13444
|
}
|
13422
13445
|
};
|
13423
13446
|
}
|
13424
13447
|
|
13425
13448
|
function instance$5($$self, $$props, $$invalidate) {
|
13426
13449
|
let style;
|
13450
|
+
let { onClick = { operation: 'closeApp', args: ['button'] } } = $$props;
|
13427
13451
|
let { props = {} } = $$props;
|
13428
13452
|
let { layerId = '' } = $$props;
|
13453
|
+
let { eventName = '' } = $$props;
|
13454
|
+
let { eventValue = undefined } = $$props;
|
13455
|
+
|
13456
|
+
function handleClick() {
|
13457
|
+
if (eventName) {
|
13458
|
+
send_event(eventName, eventValue);
|
13459
|
+
}
|
13460
|
+
|
13461
|
+
execOnClickOperation(onClick);
|
13462
|
+
}
|
13463
|
+
|
13429
13464
|
const size = props.size ?? 24;
|
13430
13465
|
|
13431
13466
|
$$self.$$set = $$props => {
|
13432
|
-
if ('
|
13467
|
+
if ('onClick' in $$props) $$invalidate(3, onClick = $$props.onClick);
|
13468
|
+
if ('props' in $$props) $$invalidate(4, props = $$props.props);
|
13433
13469
|
if ('layerId' in $$props) $$invalidate(0, layerId = $$props.layerId);
|
13470
|
+
if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
|
13471
|
+
if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
|
13434
13472
|
};
|
13435
13473
|
|
13436
13474
|
$$self.$$.update = () => {
|
13437
|
-
if ($$self.$$.dirty & /*props*/
|
13475
|
+
if ($$self.$$.dirty & /*props*/ 16) {
|
13438
13476
|
$$invalidate(1, style = objToStyle({
|
13439
13477
|
width: `${size}px`,
|
13440
13478
|
height: `${size}px`,
|
@@ -13444,13 +13482,28 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
13444
13482
|
}
|
13445
13483
|
};
|
13446
13484
|
|
13447
|
-
return [layerId, style, props];
|
13485
|
+
return [layerId, style, handleClick, onClick, props, eventName, eventValue];
|
13448
13486
|
}
|
13449
13487
|
|
13450
13488
|
class CloseButton extends SvelteComponent {
|
13451
13489
|
constructor(options) {
|
13452
13490
|
super();
|
13453
|
-
|
13491
|
+
|
13492
|
+
init(
|
13493
|
+
this,
|
13494
|
+
options,
|
13495
|
+
instance$5,
|
13496
|
+
create_fragment$5,
|
13497
|
+
safe_not_equal,
|
13498
|
+
{
|
13499
|
+
onClick: 3,
|
13500
|
+
props: 4,
|
13501
|
+
layerId: 0,
|
13502
|
+
eventName: 5,
|
13503
|
+
eventValue: 6
|
13504
|
+
},
|
13505
|
+
add_css$5
|
13506
|
+
);
|
13454
13507
|
}
|
13455
13508
|
}
|
13456
13509
|
|
@@ -13876,7 +13929,7 @@ class BackgroundOverlay extends SvelteComponent {
|
|
13876
13929
|
/* src/components-flex/modal/Modal.svelte generated by Svelte v3.53.1 */
|
13877
13930
|
|
13878
13931
|
function add_css(target) {
|
13879
|
-
append_styles(target, "svelte-
|
13932
|
+
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}}");
|
13880
13933
|
}
|
13881
13934
|
|
13882
13935
|
// (264:0) {:else}
|
@@ -13886,12 +13939,12 @@ function create_else_block(ctx) {
|
|
13886
13939
|
|
13887
13940
|
backgroundoverlay = new BackgroundOverlay({
|
13888
13941
|
props: {
|
13889
|
-
backgroundOverlay: /*backgroundOverlay*/ ctx[
|
13942
|
+
backgroundOverlay: /*backgroundOverlay*/ ctx[7]
|
13890
13943
|
}
|
13891
13944
|
});
|
13892
13945
|
|
13893
13946
|
backgroundoverlay.$on("click", function () {
|
13894
|
-
if (is_function(/*backgroundClick*/ ctx[
|
13947
|
+
if (is_function(/*backgroundClick*/ ctx[15])) /*backgroundClick*/ ctx[15].apply(this, arguments);
|
13895
13948
|
});
|
13896
13949
|
|
13897
13950
|
return {
|
@@ -13905,7 +13958,7 @@ function create_else_block(ctx) {
|
|
13905
13958
|
p(new_ctx, dirty) {
|
13906
13959
|
ctx = new_ctx;
|
13907
13960
|
const backgroundoverlay_changes = {};
|
13908
|
-
if (dirty[0] & /*backgroundOverlay*/
|
13961
|
+
if (dirty[0] & /*backgroundOverlay*/ 128) backgroundoverlay_changes.backgroundOverlay = /*backgroundOverlay*/ ctx[7];
|
13909
13962
|
backgroundoverlay.$set(backgroundoverlay_changes);
|
13910
13963
|
},
|
13911
13964
|
i(local) {
|
@@ -13932,24 +13985,24 @@ function create_if_block_3(ctx) {
|
|
13932
13985
|
|
13933
13986
|
backgroundoverlay0 = new BackgroundOverlay({
|
13934
13987
|
props: {
|
13935
|
-
class: "
|
13936
|
-
backgroundOverlay: /*backgroundOverlayPC*/ ctx[
|
13988
|
+
class: "background-bp-pc",
|
13989
|
+
backgroundOverlay: /*backgroundOverlayPC*/ ctx[8]
|
13937
13990
|
}
|
13938
13991
|
});
|
13939
13992
|
|
13940
13993
|
backgroundoverlay0.$on("click", function () {
|
13941
|
-
if (is_function(/*backgroundClickPC*/ ctx[
|
13994
|
+
if (is_function(/*backgroundClickPC*/ ctx[14])) /*backgroundClickPC*/ ctx[14].apply(this, arguments);
|
13942
13995
|
});
|
13943
13996
|
|
13944
13997
|
backgroundoverlay1 = new BackgroundOverlay({
|
13945
13998
|
props: {
|
13946
|
-
class: "
|
13947
|
-
backgroundOverlay: /*backgroundOverlaySP*/ ctx[
|
13999
|
+
class: "background-bp-sp ",
|
14000
|
+
backgroundOverlay: /*backgroundOverlaySP*/ ctx[9]
|
13948
14001
|
}
|
13949
14002
|
});
|
13950
14003
|
|
13951
14004
|
backgroundoverlay1.$on("click", function () {
|
13952
|
-
if (is_function(/*backgroundClickSP*/ ctx[
|
14005
|
+
if (is_function(/*backgroundClickSP*/ ctx[13])) /*backgroundClickSP*/ ctx[13].apply(this, arguments);
|
13953
14006
|
});
|
13954
14007
|
|
13955
14008
|
return {
|
@@ -13967,10 +14020,10 @@ function create_if_block_3(ctx) {
|
|
13967
14020
|
p(new_ctx, dirty) {
|
13968
14021
|
ctx = new_ctx;
|
13969
14022
|
const backgroundoverlay0_changes = {};
|
13970
|
-
if (dirty[0] & /*backgroundOverlayPC*/
|
14023
|
+
if (dirty[0] & /*backgroundOverlayPC*/ 256) backgroundoverlay0_changes.backgroundOverlay = /*backgroundOverlayPC*/ ctx[8];
|
13971
14024
|
backgroundoverlay0.$set(backgroundoverlay0_changes);
|
13972
14025
|
const backgroundoverlay1_changes = {};
|
13973
|
-
if (dirty[0] & /*backgroundOverlaySP*/
|
14026
|
+
if (dirty[0] & /*backgroundOverlaySP*/ 512) backgroundoverlay1_changes.backgroundOverlay = /*backgroundOverlaySP*/ ctx[9];
|
13974
14027
|
backgroundoverlay1.$set(backgroundoverlay1_changes);
|
13975
14028
|
},
|
13976
14029
|
i(local) {
|
@@ -14012,7 +14065,7 @@ function create_if_block(ctx) {
|
|
14012
14065
|
let div1_class_value;
|
14013
14066
|
let div1_intro;
|
14014
14067
|
let current;
|
14015
|
-
let if_block = /*closable*/ ctx[
|
14068
|
+
let if_block = /*closable*/ ctx[16] && create_if_block_1(ctx);
|
14016
14069
|
const default_slot_template = /*#slots*/ ctx[30].default;
|
14017
14070
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[29], null);
|
14018
14071
|
|
@@ -14023,10 +14076,10 @@ function create_if_block(ctx) {
|
|
14023
14076
|
t = space();
|
14024
14077
|
div0 = element("div");
|
14025
14078
|
if (default_slot) default_slot.c();
|
14026
|
-
attr(div1, "class", div1_class_value = "" + (null_to_empty(['
|
14079
|
+
attr(div1, "class", div1_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-f7e8di"));
|
14027
14080
|
attr(div1, "role", "dialog");
|
14028
14081
|
attr(div1, "aria-modal", "true");
|
14029
|
-
attr(div1, "style", Array.from(/*modalStyles*/ ctx[
|
14082
|
+
attr(div1, "style", Array.from(/*modalStyles*/ ctx[18]).join(';'));
|
14030
14083
|
},
|
14031
14084
|
m(target, anchor) {
|
14032
14085
|
insert(target, div1, anchor);
|
@@ -14044,11 +14097,11 @@ function create_if_block(ctx) {
|
|
14044
14097
|
p(new_ctx, dirty) {
|
14045
14098
|
ctx = new_ctx;
|
14046
14099
|
|
14047
|
-
if (/*closable*/ ctx[
|
14100
|
+
if (/*closable*/ ctx[16]) {
|
14048
14101
|
if (if_block) {
|
14049
14102
|
if_block.p(ctx, dirty);
|
14050
14103
|
|
14051
|
-
if (dirty[0] & /*closable*/
|
14104
|
+
if (dirty[0] & /*closable*/ 65536) {
|
14052
14105
|
transition_in(if_block, 1);
|
14053
14106
|
}
|
14054
14107
|
} else {
|
@@ -14082,7 +14135,7 @@ function create_if_block(ctx) {
|
|
14082
14135
|
}
|
14083
14136
|
}
|
14084
14137
|
|
14085
|
-
if (!current || dirty[0] & /*useBreakPoint*/ 1 && div1_class_value !== (div1_class_value = "" + (null_to_empty(['
|
14138
|
+
if (!current || dirty[0] & /*useBreakPoint*/ 1 && div1_class_value !== (div1_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-f7e8di"))) {
|
14086
14139
|
attr(div1, "class", div1_class_value);
|
14087
14140
|
}
|
14088
14141
|
},
|
@@ -14094,7 +14147,7 @@ function create_if_block(ctx) {
|
|
14094
14147
|
if (!div1_intro) {
|
14095
14148
|
add_render_callback(() => {
|
14096
14149
|
div1_intro = create_in_transition(div1, customAnimation, {
|
14097
|
-
transforms: /*transforms*/ ctx[
|
14150
|
+
transforms: /*transforms*/ ctx[6],
|
14098
14151
|
animationStyle: /*animation*/ ctx[1]
|
14099
14152
|
});
|
14100
14153
|
|
@@ -14125,15 +14178,20 @@ function create_if_block_1(ctx) {
|
|
14125
14178
|
let current;
|
14126
14179
|
|
14127
14180
|
closebutton = new CloseButton({
|
14128
|
-
props: {
|
14181
|
+
props: {
|
14182
|
+
onClick: /*onClose*/ ctx[2],
|
14183
|
+
eventName: /*closeEventName*/ ctx[3],
|
14184
|
+
eventValue: /*closeEventValue*/ ctx[4],
|
14185
|
+
props: /*closeButtonProps*/ ctx[5]
|
14186
|
+
}
|
14129
14187
|
});
|
14130
14188
|
|
14131
14189
|
return {
|
14132
14190
|
c() {
|
14133
14191
|
div = element("div");
|
14134
14192
|
create_component(closebutton.$$.fragment);
|
14135
|
-
attr(div, "class", "
|
14136
|
-
set_style(div, "z-index", /*$maximumZindex*/ ctx[
|
14193
|
+
attr(div, "class", "close svelte-f7e8di");
|
14194
|
+
set_style(div, "z-index", /*$maximumZindex*/ ctx[17] + 1);
|
14137
14195
|
},
|
14138
14196
|
m(target, anchor) {
|
14139
14197
|
insert(target, div, anchor);
|
@@ -14142,11 +14200,14 @@ function create_if_block_1(ctx) {
|
|
14142
14200
|
},
|
14143
14201
|
p(ctx, dirty) {
|
14144
14202
|
const closebutton_changes = {};
|
14145
|
-
if (dirty[0] & /*
|
14203
|
+
if (dirty[0] & /*onClose*/ 4) closebutton_changes.onClick = /*onClose*/ ctx[2];
|
14204
|
+
if (dirty[0] & /*closeEventName*/ 8) closebutton_changes.eventName = /*closeEventName*/ ctx[3];
|
14205
|
+
if (dirty[0] & /*closeEventValue*/ 16) closebutton_changes.eventValue = /*closeEventValue*/ ctx[4];
|
14206
|
+
if (dirty[0] & /*closeButtonProps*/ 32) closebutton_changes.props = /*closeButtonProps*/ ctx[5];
|
14146
14207
|
closebutton.$set(closebutton_changes);
|
14147
14208
|
|
14148
|
-
if (!current || dirty[0] & /*$maximumZindex*/
|
14149
|
-
set_style(div, "z-index", /*$maximumZindex*/ ctx[
|
14209
|
+
if (!current || dirty[0] & /*$maximumZindex*/ 131072) {
|
14210
|
+
set_style(div, "z-index", /*$maximumZindex*/ ctx[17] + 1);
|
14150
14211
|
}
|
14151
14212
|
},
|
14152
14213
|
i(local) {
|
@@ -14186,7 +14247,7 @@ function create_fragment(ctx) {
|
|
14186
14247
|
|
14187
14248
|
current_block_type_index = select_block_type(ctx);
|
14188
14249
|
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
14189
|
-
let if_block1 = /*visible*/ ctx[
|
14250
|
+
let if_block1 = /*visible*/ ctx[11] && create_if_block(ctx);
|
14190
14251
|
|
14191
14252
|
return {
|
14192
14253
|
c() {
|
@@ -14204,7 +14265,7 @@ function create_fragment(ctx) {
|
|
14204
14265
|
|
14205
14266
|
if (!mounted) {
|
14206
14267
|
dispose = listen(window, "keydown", function () {
|
14207
|
-
if (is_function(/*handle_keydown*/ ctx[
|
14268
|
+
if (is_function(/*handle_keydown*/ ctx[12])) /*handle_keydown*/ ctx[12].apply(this, arguments);
|
14208
14269
|
});
|
14209
14270
|
|
14210
14271
|
mounted = true;
|
@@ -14238,11 +14299,11 @@ function create_fragment(ctx) {
|
|
14238
14299
|
if_block0.m(t.parentNode, t);
|
14239
14300
|
}
|
14240
14301
|
|
14241
|
-
if (/*visible*/ ctx[
|
14302
|
+
if (/*visible*/ ctx[11]) {
|
14242
14303
|
if (if_block1) {
|
14243
14304
|
if_block1.p(ctx, dirty);
|
14244
14305
|
|
14245
|
-
if (dirty[0] & /*visible*/
|
14306
|
+
if (dirty[0] & /*visible*/ 2048) {
|
14246
14307
|
transition_in(if_block1, 1);
|
14247
14308
|
}
|
14248
14309
|
} else {
|
@@ -14292,7 +14353,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
14292
14353
|
let handle_keydown;
|
14293
14354
|
let visible;
|
14294
14355
|
let $maximumZindex;
|
14295
|
-
component_subscribe($$self, maximumZindex, $$value => $$invalidate(
|
14356
|
+
component_subscribe($$self, maximumZindex, $$value => $$invalidate(17, $maximumZindex = $$value));
|
14296
14357
|
let { $$slots: slots = {}, $$scope } = $$props;
|
14297
14358
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
14298
14359
|
let { clickEventName = '' } = $$props;
|
@@ -14323,7 +14384,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
14323
14384
|
let modal;
|
14324
14385
|
|
14325
14386
|
onMount$1(() => {
|
14326
|
-
$$invalidate(
|
14387
|
+
$$invalidate(11, visible = true);
|
14327
14388
|
});
|
14328
14389
|
|
14329
14390
|
onDestroy$1(() => setPreviousFocus());
|
@@ -14331,28 +14392,28 @@ function instance($$self, $$props, $$invalidate) {
|
|
14331
14392
|
function div1_binding($$value) {
|
14332
14393
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
14333
14394
|
modal = $$value;
|
14334
|
-
$$invalidate(
|
14395
|
+
$$invalidate(10, modal);
|
14335
14396
|
});
|
14336
14397
|
}
|
14337
14398
|
|
14338
14399
|
$$self.$$set = $$props => {
|
14339
|
-
if ('onClick' in $$props) $$invalidate(
|
14340
|
-
if ('clickEventName' in $$props) $$invalidate(
|
14341
|
-
if ('clickEventValue' in $$props) $$invalidate(
|
14400
|
+
if ('onClick' in $$props) $$invalidate(19, onClick = $$props.onClick);
|
14401
|
+
if ('clickEventName' in $$props) $$invalidate(20, clickEventName = $$props.clickEventName);
|
14402
|
+
if ('clickEventValue' in $$props) $$invalidate(21, clickEventValue = $$props.clickEventValue);
|
14342
14403
|
if ('useBreakPoint' in $$props) $$invalidate(0, useBreakPoint = $$props.useBreakPoint);
|
14343
|
-
if ('placement' in $$props) $$invalidate(
|
14344
|
-
if ('breakPoint' in $$props) $$invalidate(
|
14345
|
-
if ('elasticity' in $$props) $$invalidate(
|
14404
|
+
if ('placement' in $$props) $$invalidate(22, placement = $$props.placement);
|
14405
|
+
if ('breakPoint' in $$props) $$invalidate(23, breakPoint = $$props.breakPoint);
|
14406
|
+
if ('elasticity' in $$props) $$invalidate(24, elasticity = $$props.elasticity);
|
14346
14407
|
if ('animation' in $$props) $$invalidate(1, animation = $$props.animation);
|
14347
|
-
if ('onClose' in $$props) $$invalidate(
|
14348
|
-
if ('closeEventName' in $$props) $$invalidate(
|
14349
|
-
if ('closeEventValue' in $$props) $$invalidate(
|
14350
|
-
if ('closeButtonProps' in $$props) $$invalidate(
|
14408
|
+
if ('onClose' in $$props) $$invalidate(2, onClose = $$props.onClose);
|
14409
|
+
if ('closeEventName' in $$props) $$invalidate(3, closeEventName = $$props.closeEventName);
|
14410
|
+
if ('closeEventValue' in $$props) $$invalidate(4, closeEventValue = $$props.closeEventValue);
|
14411
|
+
if ('closeButtonProps' in $$props) $$invalidate(5, closeButtonProps = $$props.closeButtonProps);
|
14351
14412
|
if ('$$scope' in $$props) $$invalidate(29, $$scope = $$props.$$scope);
|
14352
14413
|
};
|
14353
14414
|
|
14354
14415
|
$$self.$$.update = () => {
|
14355
|
-
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, onClose*/
|
14416
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, onClose*/ 28) {
|
14356
14417
|
$$invalidate(28, close = () => {
|
14357
14418
|
if (closeEventName) {
|
14358
14419
|
send_event(closeEventName, closeEventValue);
|
@@ -14362,26 +14423,26 @@ function instance($$self, $$props, $$invalidate) {
|
|
14362
14423
|
});
|
14363
14424
|
}
|
14364
14425
|
|
14365
|
-
if ($$self.$$.dirty[0] & /*onClose*/
|
14366
|
-
$$invalidate(
|
14426
|
+
if ($$self.$$.dirty[0] & /*onClose*/ 4) {
|
14427
|
+
$$invalidate(16, closable = haveFunction(onClose));
|
14367
14428
|
}
|
14368
14429
|
|
14369
|
-
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/
|
14430
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 12582913) {
|
14370
14431
|
{
|
14371
14432
|
if (placement && placement.backgroundOverlay) {
|
14372
|
-
$$invalidate(
|
14433
|
+
$$invalidate(7, backgroundOverlay = placement.backgroundOverlay);
|
14373
14434
|
}
|
14374
14435
|
|
14375
14436
|
if (useBreakPoint) {
|
14376
14437
|
const pc = breakPoint?.PC?.placement?.backgroundOverlay;
|
14377
|
-
$$invalidate(
|
14438
|
+
$$invalidate(8, backgroundOverlayPC = pc ?? false);
|
14378
14439
|
const sp = breakPoint?.SP?.placement?.backgroundOverlay;
|
14379
|
-
$$invalidate(
|
14440
|
+
$$invalidate(9, backgroundOverlaySP = sp ?? false);
|
14380
14441
|
}
|
14381
14442
|
}
|
14382
14443
|
}
|
14383
14444
|
|
14384
|
-
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/
|
14445
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 12582913) {
|
14385
14446
|
{
|
14386
14447
|
if (placement && placement.backgroundClick) {
|
14387
14448
|
$$invalidate(25, backgroundClickFunction = placement.backgroundClick);
|
@@ -14403,8 +14464,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
14403
14464
|
}
|
14404
14465
|
}
|
14405
14466
|
|
14406
|
-
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunction*/
|
14407
|
-
$$invalidate(
|
14467
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunction*/ 33554456) {
|
14468
|
+
$$invalidate(15, backgroundClick = () => {
|
14408
14469
|
if (closeEventName) {
|
14409
14470
|
send_event(closeEventName, closeEventValue);
|
14410
14471
|
}
|
@@ -14413,8 +14474,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
14413
14474
|
});
|
14414
14475
|
}
|
14415
14476
|
|
14416
|
-
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunctionPC*/
|
14417
|
-
$$invalidate(
|
14477
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunctionPC*/ 67108888) {
|
14478
|
+
$$invalidate(14, backgroundClickPC = () => {
|
14418
14479
|
if (closeEventName) {
|
14419
14480
|
send_event(closeEventName, closeEventValue);
|
14420
14481
|
}
|
@@ -14423,8 +14484,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
14423
14484
|
});
|
14424
14485
|
}
|
14425
14486
|
|
14426
|
-
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunctionSP*/
|
14427
|
-
$$invalidate(
|
14487
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunctionSP*/ 134217752) {
|
14488
|
+
$$invalidate(13, backgroundClickSP = () => {
|
14428
14489
|
if (closeEventName) {
|
14429
14490
|
send_event(closeEventName, closeEventValue);
|
14430
14491
|
}
|
@@ -14433,7 +14494,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
14433
14494
|
});
|
14434
14495
|
}
|
14435
14496
|
|
14436
|
-
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint, transforms*/
|
14497
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint, transforms*/ 12582977) {
|
14437
14498
|
// 表示位置のスタイルとアニメーションの動きを設定
|
14438
14499
|
{
|
14439
14500
|
// 表示位置のスタイルの設定
|
@@ -14449,7 +14510,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
14449
14510
|
modalStyles.add(positionStyle);
|
14450
14511
|
}
|
14451
14512
|
|
14452
|
-
$$invalidate(
|
14513
|
+
$$invalidate(6, transforms = []);
|
14453
14514
|
|
14454
14515
|
DEVICE_IDS.forEach(deviceId => {
|
14455
14516
|
if (useBreakPoint) {
|
@@ -14477,7 +14538,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
14477
14538
|
}
|
14478
14539
|
}
|
14479
14540
|
|
14480
|
-
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/
|
14541
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 12582913) {
|
14481
14542
|
// 表示位置の調整のスタイルを設定
|
14482
14543
|
{
|
14483
14544
|
let margin = DefaultModalPlacement.margin;
|
@@ -14509,7 +14570,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
14509
14570
|
}
|
14510
14571
|
}
|
14511
14572
|
|
14512
|
-
if ($$self.$$.dirty[0] & /*elasticity, useBreakPoint, breakPoint*/
|
14573
|
+
if ($$self.$$.dirty[0] & /*elasticity, useBreakPoint, breakPoint*/ 25165825) {
|
14513
14574
|
// 拡大方法のスタイルを設定
|
14514
14575
|
{
|
14515
14576
|
let elasticStyle = ElasticityStyle[elasticity];
|
@@ -14536,18 +14597,21 @@ function instance($$self, $$props, $$invalidate) {
|
|
14536
14597
|
}
|
14537
14598
|
|
14538
14599
|
if ($$self.$$.dirty[0] & /*close*/ 268435456) {
|
14539
|
-
$$invalidate(
|
14600
|
+
$$invalidate(12, handle_keydown = handleKeydown({ Escape: close }));
|
14540
14601
|
}
|
14541
14602
|
};
|
14542
14603
|
|
14543
|
-
$$invalidate(
|
14604
|
+
$$invalidate(10, modal = null);
|
14544
14605
|
|
14545
14606
|
// svelteコンポーネントのアニメーションを発火させるためにマウント時にvisibleをtrueにする。
|
14546
|
-
$$invalidate(
|
14607
|
+
$$invalidate(11, visible = false);
|
14547
14608
|
|
14548
14609
|
return [
|
14549
14610
|
useBreakPoint,
|
14550
14611
|
animation,
|
14612
|
+
onClose,
|
14613
|
+
closeEventName,
|
14614
|
+
closeEventValue,
|
14551
14615
|
closeButtonProps,
|
14552
14616
|
transforms,
|
14553
14617
|
backgroundOverlay,
|
@@ -14568,9 +14632,6 @@ function instance($$self, $$props, $$invalidate) {
|
|
14568
14632
|
placement,
|
14569
14633
|
breakPoint,
|
14570
14634
|
elasticity,
|
14571
|
-
onClose,
|
14572
|
-
closeEventName,
|
14573
|
-
closeEventValue,
|
14574
14635
|
backgroundClickFunction,
|
14575
14636
|
backgroundClickFunctionPC,
|
14576
14637
|
backgroundClickFunctionSP,
|
@@ -14592,18 +14653,18 @@ class Modal extends SvelteComponent {
|
|
14592
14653
|
create_fragment,
|
14593
14654
|
safe_not_equal,
|
14594
14655
|
{
|
14595
|
-
onClick:
|
14596
|
-
clickEventName:
|
14597
|
-
clickEventValue:
|
14656
|
+
onClick: 19,
|
14657
|
+
clickEventName: 20,
|
14658
|
+
clickEventValue: 21,
|
14598
14659
|
useBreakPoint: 0,
|
14599
|
-
placement:
|
14600
|
-
breakPoint:
|
14601
|
-
elasticity:
|
14660
|
+
placement: 22,
|
14661
|
+
breakPoint: 23,
|
14662
|
+
elasticity: 24,
|
14602
14663
|
animation: 1,
|
14603
|
-
onClose:
|
14604
|
-
closeEventName:
|
14605
|
-
closeEventValue:
|
14606
|
-
closeButtonProps:
|
14664
|
+
onClose: 2,
|
14665
|
+
closeEventName: 3,
|
14666
|
+
closeEventValue: 4,
|
14667
|
+
closeButtonProps: 5
|
14607
14668
|
},
|
14608
14669
|
add_css,
|
14609
14670
|
[-1, -1]
|