@plaidev/karte-action-sdk 1.1.255 → 1.1.256
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.js +89 -71
- package/dist/index.es.js +89 -72
- package/meta/karte-action-sdk.api.json +2240 -403
- package/package.json +4 -4
package/dist/hydrate/index.es.js
CHANGED
|
@@ -12072,11 +12072,19 @@ const useClickable = ({ eventValue = {}, eventName = '', onClick, element = 'div
|
|
|
12072
12072
|
|
|
12073
12073
|
const useInjectCustomizeCss = (props) => {
|
|
12074
12074
|
function injectCss() {
|
|
12075
|
+
const modalElement = document.querySelector(`.${KARTE_MODAL_ROOT}`);
|
|
12075
12076
|
const style = document.createElement('style');
|
|
12076
12077
|
style.textContent = props.customizeCss;
|
|
12077
|
-
|
|
12078
|
+
if (modalElement?.shadowRoot) {
|
|
12079
|
+
modalElement.shadowRoot.appendChild(style);
|
|
12080
|
+
}
|
|
12081
|
+
else {
|
|
12082
|
+
document.head.appendChild(style);
|
|
12083
|
+
}
|
|
12078
12084
|
return () => {
|
|
12079
|
-
|
|
12085
|
+
modalElement?.shadowRoot
|
|
12086
|
+
? modalElement.shadowRoot.removeChild(style)
|
|
12087
|
+
: document.head.removeChild(style);
|
|
12080
12088
|
};
|
|
12081
12089
|
}
|
|
12082
12090
|
onMount$1(() => {
|
|
@@ -16217,10 +16225,10 @@ class CloseButton extends SvelteComponent {
|
|
|
16217
16225
|
/* src/components-flex/image/Image.svelte generated by Svelte v3.53.1 */
|
|
16218
16226
|
|
|
16219
16227
|
function add_css$7(target) {
|
|
16220
|
-
append_styles(target, "svelte-
|
|
16228
|
+
append_styles(target, "svelte-1n4oa5l", ".image.svelte-1n4oa5l{max-width:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.image-object.svelte-1n4oa5l{width:100%;overflow:hidden}.image-img.svelte-1n4oa5l{vertical-align:top;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}");
|
|
16221
16229
|
}
|
|
16222
16230
|
|
|
16223
|
-
// (19:0) <svelte:element
|
|
16231
|
+
// (19:0) <svelte:element this={element} {...attributes} class="image" {style} data-layer-id={layerId} on:click={handleClick} >
|
|
16224
16232
|
function create_dynamic_element$2(ctx) {
|
|
16225
16233
|
let svelte_element;
|
|
16226
16234
|
let object;
|
|
@@ -16268,9 +16276,9 @@ function create_dynamic_element$2(ctx) {
|
|
|
16268
16276
|
h() {
|
|
16269
16277
|
if (!src_url_equal(img.src, img_src_value = /*props*/ ctx[0].image)) attr(img, "src", img_src_value);
|
|
16270
16278
|
attr(img, "alt", img_alt_value = /*props*/ ctx[0].alt);
|
|
16271
|
-
attr(img, "class", "image-img svelte-
|
|
16279
|
+
attr(img, "class", "image-img svelte-1n4oa5l");
|
|
16272
16280
|
attr(object, "style", /*objectStyle*/ ctx[2]);
|
|
16273
|
-
attr(object, "class", "image-object svelte-
|
|
16281
|
+
attr(object, "class", "image-object svelte-1n4oa5l");
|
|
16274
16282
|
|
|
16275
16283
|
if ((/-/).test(/*element*/ ctx[5])) {
|
|
16276
16284
|
set_custom_element_data_map(svelte_element, svelte_element_data);
|
|
@@ -16278,7 +16286,7 @@ function create_dynamic_element$2(ctx) {
|
|
|
16278
16286
|
set_attributes(svelte_element, svelte_element_data);
|
|
16279
16287
|
}
|
|
16280
16288
|
|
|
16281
|
-
toggle_class(svelte_element, "svelte-
|
|
16289
|
+
toggle_class(svelte_element, "svelte-1n4oa5l", true);
|
|
16282
16290
|
},
|
|
16283
16291
|
m(target, anchor) {
|
|
16284
16292
|
insert_hydration(target, svelte_element, anchor);
|
|
@@ -16316,7 +16324,7 @@ function create_dynamic_element$2(ctx) {
|
|
|
16316
16324
|
set_attributes(svelte_element, svelte_element_data);
|
|
16317
16325
|
}
|
|
16318
16326
|
|
|
16319
|
-
toggle_class(svelte_element, "svelte-
|
|
16327
|
+
toggle_class(svelte_element, "svelte-1n4oa5l", true);
|
|
16320
16328
|
},
|
|
16321
16329
|
d(detaching) {
|
|
16322
16330
|
if (detaching) detach(svelte_element);
|
|
@@ -17803,19 +17811,19 @@ function add_css$1(target) {
|
|
|
17803
17811
|
append_styles(target, "svelte-15b58xm", "*{box-sizing:border-box}.modal.svelte-15b58xm{position:fixed;z-index:2147483647;display:flex}.modal.svelte-15b58xm > .button{flex:auto;display:flex}@media screen and (min-width: 641px){.modal-bp.svelte-15b58xm{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-15b58xm{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}}");
|
|
17804
17812
|
}
|
|
17805
17813
|
|
|
17806
|
-
// (
|
|
17814
|
+
// (220:0) {:else}
|
|
17807
17815
|
function create_else_block(ctx) {
|
|
17808
17816
|
let backgroundoverlay;
|
|
17809
17817
|
let current;
|
|
17810
17818
|
|
|
17811
17819
|
backgroundoverlay = new BackgroundOverlay({
|
|
17812
17820
|
props: {
|
|
17813
|
-
backgroundOverlay: /*backgroundOverlay*/ ctx[
|
|
17821
|
+
backgroundOverlay: /*backgroundOverlay*/ ctx[4]
|
|
17814
17822
|
}
|
|
17815
17823
|
});
|
|
17816
17824
|
|
|
17817
17825
|
backgroundoverlay.$on("click", function () {
|
|
17818
|
-
if (is_function(/*backgroundClick*/ ctx[
|
|
17826
|
+
if (is_function(/*backgroundClick*/ ctx[12])) /*backgroundClick*/ ctx[12].apply(this, arguments);
|
|
17819
17827
|
});
|
|
17820
17828
|
|
|
17821
17829
|
return {
|
|
@@ -17832,7 +17840,7 @@ function create_else_block(ctx) {
|
|
|
17832
17840
|
p(new_ctx, dirty) {
|
|
17833
17841
|
ctx = new_ctx;
|
|
17834
17842
|
const backgroundoverlay_changes = {};
|
|
17835
|
-
if (dirty & /*backgroundOverlay*/
|
|
17843
|
+
if (dirty & /*backgroundOverlay*/ 16) backgroundoverlay_changes.backgroundOverlay = /*backgroundOverlay*/ ctx[4];
|
|
17836
17844
|
backgroundoverlay.$set(backgroundoverlay_changes);
|
|
17837
17845
|
},
|
|
17838
17846
|
i(local) {
|
|
@@ -17850,7 +17858,7 @@ function create_else_block(ctx) {
|
|
|
17850
17858
|
};
|
|
17851
17859
|
}
|
|
17852
17860
|
|
|
17853
|
-
// (
|
|
17861
|
+
// (209:24)
|
|
17854
17862
|
function create_if_block_2(ctx) {
|
|
17855
17863
|
let backgroundoverlay0;
|
|
17856
17864
|
let t;
|
|
@@ -17860,23 +17868,23 @@ function create_if_block_2(ctx) {
|
|
|
17860
17868
|
backgroundoverlay0 = new BackgroundOverlay({
|
|
17861
17869
|
props: {
|
|
17862
17870
|
class: "background-bp-pc",
|
|
17863
|
-
backgroundOverlay: /*backgroundOverlayPC*/ ctx[
|
|
17871
|
+
backgroundOverlay: /*backgroundOverlayPC*/ ctx[5]
|
|
17864
17872
|
}
|
|
17865
17873
|
});
|
|
17866
17874
|
|
|
17867
17875
|
backgroundoverlay0.$on("click", function () {
|
|
17868
|
-
if (is_function(/*backgroundClickPC*/ ctx[
|
|
17876
|
+
if (is_function(/*backgroundClickPC*/ ctx[11])) /*backgroundClickPC*/ ctx[11].apply(this, arguments);
|
|
17869
17877
|
});
|
|
17870
17878
|
|
|
17871
17879
|
backgroundoverlay1 = new BackgroundOverlay({
|
|
17872
17880
|
props: {
|
|
17873
17881
|
class: "background-bp-sp ",
|
|
17874
|
-
backgroundOverlay: /*backgroundOverlaySP*/ ctx[
|
|
17882
|
+
backgroundOverlay: /*backgroundOverlaySP*/ ctx[6]
|
|
17875
17883
|
}
|
|
17876
17884
|
});
|
|
17877
17885
|
|
|
17878
17886
|
backgroundoverlay1.$on("click", function () {
|
|
17879
|
-
if (is_function(/*backgroundClickSP*/ ctx[
|
|
17887
|
+
if (is_function(/*backgroundClickSP*/ ctx[10])) /*backgroundClickSP*/ ctx[10].apply(this, arguments);
|
|
17880
17888
|
});
|
|
17881
17889
|
|
|
17882
17890
|
return {
|
|
@@ -17899,10 +17907,10 @@ function create_if_block_2(ctx) {
|
|
|
17899
17907
|
p(new_ctx, dirty) {
|
|
17900
17908
|
ctx = new_ctx;
|
|
17901
17909
|
const backgroundoverlay0_changes = {};
|
|
17902
|
-
if (dirty & /*backgroundOverlayPC*/
|
|
17910
|
+
if (dirty & /*backgroundOverlayPC*/ 32) backgroundoverlay0_changes.backgroundOverlay = /*backgroundOverlayPC*/ ctx[5];
|
|
17903
17911
|
backgroundoverlay0.$set(backgroundoverlay0_changes);
|
|
17904
17912
|
const backgroundoverlay1_changes = {};
|
|
17905
|
-
if (dirty & /*backgroundOverlaySP*/
|
|
17913
|
+
if (dirty & /*backgroundOverlaySP*/ 64) backgroundoverlay1_changes.backgroundOverlay = /*backgroundOverlaySP*/ ctx[6];
|
|
17906
17914
|
backgroundoverlay1.$set(backgroundoverlay1_changes);
|
|
17907
17915
|
},
|
|
17908
17916
|
i(local) {
|
|
@@ -17924,7 +17932,7 @@ function create_if_block_2(ctx) {
|
|
|
17924
17932
|
};
|
|
17925
17933
|
}
|
|
17926
17934
|
|
|
17927
|
-
// (
|
|
17935
|
+
// (207:0) {#if isPreview()}
|
|
17928
17936
|
function create_if_block_1(ctx) {
|
|
17929
17937
|
return {
|
|
17930
17938
|
c: noop,
|
|
@@ -17937,14 +17945,14 @@ function create_if_block_1(ctx) {
|
|
|
17937
17945
|
};
|
|
17938
17946
|
}
|
|
17939
17947
|
|
|
17940
|
-
// (
|
|
17948
|
+
// (223:0) {#if visible}
|
|
17941
17949
|
function create_if_block(ctx) {
|
|
17942
17950
|
let div;
|
|
17943
17951
|
let div_class_value;
|
|
17944
17952
|
let div_intro;
|
|
17945
17953
|
let current;
|
|
17946
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
17947
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
17954
|
+
const default_slot_template = /*#slots*/ ctx[24].default;
|
|
17955
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[23], null);
|
|
17948
17956
|
|
|
17949
17957
|
return {
|
|
17950
17958
|
c() {
|
|
@@ -17957,6 +17965,7 @@ function create_if_block(ctx) {
|
|
|
17957
17965
|
class: true,
|
|
17958
17966
|
role: true,
|
|
17959
17967
|
"aria-modal": true,
|
|
17968
|
+
"data-layer-id": true,
|
|
17960
17969
|
style: true
|
|
17961
17970
|
});
|
|
17962
17971
|
|
|
@@ -17969,7 +17978,8 @@ function create_if_block(ctx) {
|
|
|
17969
17978
|
attr(div, "class", div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-15b58xm"));
|
|
17970
17979
|
attr(div, "role", "dialog");
|
|
17971
17980
|
attr(div, "aria-modal", "true");
|
|
17972
|
-
attr(div, "
|
|
17981
|
+
attr(div, "data-layer-id", /*layerId*/ ctx[2]);
|
|
17982
|
+
attr(div, "style", Array.from(/*modalStyles*/ ctx[13]).join(';'));
|
|
17973
17983
|
},
|
|
17974
17984
|
m(target, anchor) {
|
|
17975
17985
|
insert_hydration(target, div, anchor);
|
|
@@ -17978,22 +17988,22 @@ function create_if_block(ctx) {
|
|
|
17978
17988
|
default_slot.m(div, null);
|
|
17979
17989
|
}
|
|
17980
17990
|
|
|
17981
|
-
/*div_binding*/ ctx[
|
|
17991
|
+
/*div_binding*/ ctx[25](div);
|
|
17982
17992
|
current = true;
|
|
17983
17993
|
},
|
|
17984
17994
|
p(new_ctx, dirty) {
|
|
17985
17995
|
ctx = new_ctx;
|
|
17986
17996
|
|
|
17987
17997
|
if (default_slot) {
|
|
17988
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
17998
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 8388608)) {
|
|
17989
17999
|
update_slot_base(
|
|
17990
18000
|
default_slot,
|
|
17991
18001
|
default_slot_template,
|
|
17992
18002
|
ctx,
|
|
17993
|
-
/*$$scope*/ ctx[
|
|
18003
|
+
/*$$scope*/ ctx[23],
|
|
17994
18004
|
!current
|
|
17995
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
17996
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
18005
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[23])
|
|
18006
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[23], dirty, null),
|
|
17997
18007
|
null
|
|
17998
18008
|
);
|
|
17999
18009
|
}
|
|
@@ -18002,6 +18012,10 @@ function create_if_block(ctx) {
|
|
|
18002
18012
|
if (!current || dirty & /*useBreakPoint*/ 1 && div_class_value !== (div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-15b58xm"))) {
|
|
18003
18013
|
attr(div, "class", div_class_value);
|
|
18004
18014
|
}
|
|
18015
|
+
|
|
18016
|
+
if (!current || dirty & /*layerId*/ 4) {
|
|
18017
|
+
attr(div, "data-layer-id", /*layerId*/ ctx[2]);
|
|
18018
|
+
}
|
|
18005
18019
|
},
|
|
18006
18020
|
i(local) {
|
|
18007
18021
|
if (current) return;
|
|
@@ -18010,7 +18024,7 @@ function create_if_block(ctx) {
|
|
|
18010
18024
|
if (!div_intro) {
|
|
18011
18025
|
add_render_callback(() => {
|
|
18012
18026
|
div_intro = create_in_transition(div, customAnimation, {
|
|
18013
|
-
transforms: /*transforms*/ ctx[
|
|
18027
|
+
transforms: /*transforms*/ ctx[3],
|
|
18014
18028
|
animationStyle: /*animation*/ ctx[1]
|
|
18015
18029
|
});
|
|
18016
18030
|
|
|
@@ -18027,7 +18041,7 @@ function create_if_block(ctx) {
|
|
|
18027
18041
|
d(detaching) {
|
|
18028
18042
|
if (detaching) detach(div);
|
|
18029
18043
|
if (default_slot) default_slot.d(detaching);
|
|
18030
|
-
/*div_binding*/ ctx[
|
|
18044
|
+
/*div_binding*/ ctx[25](null);
|
|
18031
18045
|
}
|
|
18032
18046
|
};
|
|
18033
18047
|
}
|
|
@@ -18053,7 +18067,7 @@ function create_fragment$1(ctx) {
|
|
|
18053
18067
|
|
|
18054
18068
|
current_block_type_index = select_block_type(ctx);
|
|
18055
18069
|
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
18056
|
-
let if_block1 = /*visible*/ ctx[
|
|
18070
|
+
let if_block1 = /*visible*/ ctx[8] && create_if_block(ctx);
|
|
18057
18071
|
|
|
18058
18072
|
return {
|
|
18059
18073
|
c() {
|
|
@@ -18077,7 +18091,7 @@ function create_fragment$1(ctx) {
|
|
|
18077
18091
|
|
|
18078
18092
|
if (!mounted) {
|
|
18079
18093
|
dispose = listen(window, "keydown", function () {
|
|
18080
|
-
if (is_function(/*handle_keydown*/ ctx[
|
|
18094
|
+
if (is_function(/*handle_keydown*/ ctx[9])) /*handle_keydown*/ ctx[9].apply(this, arguments);
|
|
18081
18095
|
});
|
|
18082
18096
|
|
|
18083
18097
|
mounted = true;
|
|
@@ -18111,11 +18125,11 @@ function create_fragment$1(ctx) {
|
|
|
18111
18125
|
if_block0.m(t.parentNode, t);
|
|
18112
18126
|
}
|
|
18113
18127
|
|
|
18114
|
-
if (/*visible*/ ctx[
|
|
18128
|
+
if (/*visible*/ ctx[8]) {
|
|
18115
18129
|
if (if_block1) {
|
|
18116
18130
|
if_block1.p(ctx, dirty);
|
|
18117
18131
|
|
|
18118
|
-
if (dirty & /*visible*/
|
|
18132
|
+
if (dirty & /*visible*/ 256) {
|
|
18119
18133
|
transition_in(if_block1, 1);
|
|
18120
18134
|
}
|
|
18121
18135
|
} else {
|
|
@@ -18171,6 +18185,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
18171
18185
|
let { animation = 'none' } = $$props;
|
|
18172
18186
|
let { closeEventName = '' } = $$props;
|
|
18173
18187
|
let { closeEventValue = null } = $$props;
|
|
18188
|
+
let { layerId = '' } = $$props;
|
|
18174
18189
|
|
|
18175
18190
|
// モーダル背景の設定
|
|
18176
18191
|
placement && placement.backgroundOverlay !== undefined;
|
|
@@ -18189,7 +18204,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
18189
18204
|
let modal;
|
|
18190
18205
|
|
|
18191
18206
|
onMount$1(() => {
|
|
18192
|
-
$$invalidate(
|
|
18207
|
+
$$invalidate(8, visible = true);
|
|
18193
18208
|
});
|
|
18194
18209
|
|
|
18195
18210
|
onDestroy$1(() => setPreviousFocus());
|
|
@@ -18197,24 +18212,25 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
18197
18212
|
function div_binding($$value) {
|
|
18198
18213
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
18199
18214
|
modal = $$value;
|
|
18200
|
-
$$invalidate(
|
|
18215
|
+
$$invalidate(7, modal);
|
|
18201
18216
|
});
|
|
18202
18217
|
}
|
|
18203
18218
|
|
|
18204
18219
|
$$self.$$set = $$props => {
|
|
18205
18220
|
if ('useBreakPoint' in $$props) $$invalidate(0, useBreakPoint = $$props.useBreakPoint);
|
|
18206
|
-
if ('placement' in $$props) $$invalidate(
|
|
18207
|
-
if ('breakPoint' in $$props) $$invalidate(
|
|
18208
|
-
if ('elasticity' in $$props) $$invalidate(
|
|
18221
|
+
if ('placement' in $$props) $$invalidate(14, placement = $$props.placement);
|
|
18222
|
+
if ('breakPoint' in $$props) $$invalidate(15, breakPoint = $$props.breakPoint);
|
|
18223
|
+
if ('elasticity' in $$props) $$invalidate(16, elasticity = $$props.elasticity);
|
|
18209
18224
|
if ('animation' in $$props) $$invalidate(1, animation = $$props.animation);
|
|
18210
|
-
if ('closeEventName' in $$props) $$invalidate(
|
|
18211
|
-
if ('closeEventValue' in $$props) $$invalidate(
|
|
18212
|
-
if ('
|
|
18225
|
+
if ('closeEventName' in $$props) $$invalidate(17, closeEventName = $$props.closeEventName);
|
|
18226
|
+
if ('closeEventValue' in $$props) $$invalidate(18, closeEventValue = $$props.closeEventValue);
|
|
18227
|
+
if ('layerId' in $$props) $$invalidate(2, layerId = $$props.layerId);
|
|
18228
|
+
if ('$$scope' in $$props) $$invalidate(23, $$scope = $$props.$$scope);
|
|
18213
18229
|
};
|
|
18214
18230
|
|
|
18215
18231
|
$$self.$$.update = () => {
|
|
18216
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue*/
|
|
18217
|
-
$$invalidate(
|
|
18232
|
+
if ($$self.$$.dirty & /*closeEventName, closeEventValue*/ 393216) {
|
|
18233
|
+
$$invalidate(22, close = () => {
|
|
18218
18234
|
const onClose = { operation: 'closeApp', args: ['button'] };
|
|
18219
18235
|
|
|
18220
18236
|
if (closeEventName) {
|
|
@@ -18225,42 +18241,42 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
18225
18241
|
});
|
|
18226
18242
|
}
|
|
18227
18243
|
|
|
18228
|
-
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/
|
|
18244
|
+
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/ 49153) {
|
|
18229
18245
|
{
|
|
18230
18246
|
|
|
18231
18247
|
if (useBreakPoint) {
|
|
18232
18248
|
const pc = breakPoint?.PC?.placement?.backgroundOverlay;
|
|
18233
|
-
$$invalidate(
|
|
18249
|
+
$$invalidate(5, backgroundOverlayPC = pc ?? false);
|
|
18234
18250
|
const sp = breakPoint?.SP?.placement?.backgroundOverlay;
|
|
18235
|
-
$$invalidate(
|
|
18251
|
+
$$invalidate(6, backgroundOverlaySP = sp ?? false);
|
|
18236
18252
|
}
|
|
18237
18253
|
}
|
|
18238
18254
|
}
|
|
18239
18255
|
|
|
18240
|
-
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/
|
|
18256
|
+
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/ 49153) {
|
|
18241
18257
|
{
|
|
18242
18258
|
if (placement && placement.backgroundClick) {
|
|
18243
|
-
$$invalidate(
|
|
18259
|
+
$$invalidate(19, backgroundClickFunction = placement.backgroundClick);
|
|
18244
18260
|
}
|
|
18245
18261
|
|
|
18246
18262
|
if (useBreakPoint) {
|
|
18247
18263
|
const pc = breakPoint?.PC?.placement?.backgroundClick;
|
|
18248
18264
|
|
|
18249
18265
|
if (pc) {
|
|
18250
|
-
$$invalidate(
|
|
18266
|
+
$$invalidate(20, backgroundClickFunctionPC = pc);
|
|
18251
18267
|
}
|
|
18252
18268
|
|
|
18253
18269
|
const sp = breakPoint?.SP?.placement?.backgroundClick;
|
|
18254
18270
|
|
|
18255
18271
|
if (sp) {
|
|
18256
|
-
$$invalidate(
|
|
18272
|
+
$$invalidate(21, backgroundClickFunctionSP = sp);
|
|
18257
18273
|
}
|
|
18258
18274
|
}
|
|
18259
18275
|
}
|
|
18260
18276
|
}
|
|
18261
18277
|
|
|
18262
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/
|
|
18263
|
-
$$invalidate(
|
|
18278
|
+
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/ 917504) {
|
|
18279
|
+
$$invalidate(12, backgroundClick = () => {
|
|
18264
18280
|
if (closeEventName) {
|
|
18265
18281
|
send_event(closeEventName, closeEventValue);
|
|
18266
18282
|
}
|
|
@@ -18269,8 +18285,8 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
18269
18285
|
});
|
|
18270
18286
|
}
|
|
18271
18287
|
|
|
18272
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunctionPC*/
|
|
18273
|
-
$$invalidate(
|
|
18288
|
+
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunctionPC*/ 1441792) {
|
|
18289
|
+
$$invalidate(11, backgroundClickPC = () => {
|
|
18274
18290
|
if (closeEventName) {
|
|
18275
18291
|
send_event(closeEventName, closeEventValue);
|
|
18276
18292
|
}
|
|
@@ -18279,8 +18295,8 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
18279
18295
|
});
|
|
18280
18296
|
}
|
|
18281
18297
|
|
|
18282
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunctionSP*/
|
|
18283
|
-
$$invalidate(
|
|
18298
|
+
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunctionSP*/ 2490368) {
|
|
18299
|
+
$$invalidate(10, backgroundClickSP = () => {
|
|
18284
18300
|
if (closeEventName) {
|
|
18285
18301
|
send_event(closeEventName, closeEventValue);
|
|
18286
18302
|
}
|
|
@@ -18289,7 +18305,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
18289
18305
|
});
|
|
18290
18306
|
}
|
|
18291
18307
|
|
|
18292
|
-
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint, transforms*/
|
|
18308
|
+
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint, transforms*/ 49161) {
|
|
18293
18309
|
// 表示位置のスタイルとアニメーションの動きを設定
|
|
18294
18310
|
{
|
|
18295
18311
|
// 表示位置のスタイルの設定
|
|
@@ -18301,7 +18317,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
18301
18317
|
modalStyles.add(positionStyle);
|
|
18302
18318
|
}
|
|
18303
18319
|
|
|
18304
|
-
$$invalidate(
|
|
18320
|
+
$$invalidate(3, transforms = []);
|
|
18305
18321
|
|
|
18306
18322
|
DEVICE_IDS.forEach(deviceId => {
|
|
18307
18323
|
|
|
@@ -18319,7 +18335,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
18319
18335
|
}
|
|
18320
18336
|
}
|
|
18321
18337
|
|
|
18322
|
-
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/
|
|
18338
|
+
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/ 49153) {
|
|
18323
18339
|
// 表示位置の調整のスタイルを設定
|
|
18324
18340
|
{
|
|
18325
18341
|
let margin = DefaultModalPlacement.margin;
|
|
@@ -18343,7 +18359,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
18343
18359
|
}
|
|
18344
18360
|
}
|
|
18345
18361
|
|
|
18346
|
-
if ($$self.$$.dirty & /*elasticity, useBreakPoint, breakPoint*/
|
|
18362
|
+
if ($$self.$$.dirty & /*elasticity, useBreakPoint, breakPoint*/ 98305) {
|
|
18347
18363
|
// 拡大方法のスタイルを設定
|
|
18348
18364
|
{
|
|
18349
18365
|
let elasticStyle = ElasticityStyle['none' ];
|
|
@@ -18365,19 +18381,20 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
18365
18381
|
}
|
|
18366
18382
|
}
|
|
18367
18383
|
|
|
18368
|
-
if ($$self.$$.dirty & /*close*/
|
|
18369
|
-
$$invalidate(
|
|
18384
|
+
if ($$self.$$.dirty & /*close*/ 4194304) {
|
|
18385
|
+
$$invalidate(9, handle_keydown = handleKeydown({ Escape: close }));
|
|
18370
18386
|
}
|
|
18371
18387
|
};
|
|
18372
18388
|
|
|
18373
|
-
$$invalidate(
|
|
18389
|
+
$$invalidate(7, modal = null);
|
|
18374
18390
|
|
|
18375
18391
|
// svelteコンポーネントのアニメーションを発火させるためにマウント時にvisibleをtrueにする。
|
|
18376
|
-
$$invalidate(
|
|
18392
|
+
$$invalidate(8, visible = false);
|
|
18377
18393
|
|
|
18378
18394
|
return [
|
|
18379
18395
|
useBreakPoint,
|
|
18380
18396
|
animation,
|
|
18397
|
+
layerId,
|
|
18381
18398
|
transforms,
|
|
18382
18399
|
backgroundOverlay,
|
|
18383
18400
|
backgroundOverlayPC,
|
|
@@ -18416,12 +18433,13 @@ class Modal extends SvelteComponent {
|
|
|
18416
18433
|
safe_not_equal,
|
|
18417
18434
|
{
|
|
18418
18435
|
useBreakPoint: 0,
|
|
18419
|
-
placement:
|
|
18420
|
-
breakPoint:
|
|
18421
|
-
elasticity:
|
|
18436
|
+
placement: 14,
|
|
18437
|
+
breakPoint: 15,
|
|
18438
|
+
elasticity: 16,
|
|
18422
18439
|
animation: 1,
|
|
18423
|
-
closeEventName:
|
|
18424
|
-
closeEventValue:
|
|
18440
|
+
closeEventName: 17,
|
|
18441
|
+
closeEventValue: 18,
|
|
18442
|
+
layerId: 2
|
|
18425
18443
|
},
|
|
18426
18444
|
add_css$1
|
|
18427
18445
|
);
|