@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/index.es.js
CHANGED
|
@@ -11418,11 +11418,19 @@ const useClickable = ({ eventValue = {}, eventName = '', onClick, element = 'div
|
|
|
11418
11418
|
|
|
11419
11419
|
const useInjectCustomizeCss = (props) => {
|
|
11420
11420
|
function injectCss() {
|
|
11421
|
+
const modalElement = document.querySelector(`.${KARTE_MODAL_ROOT}`);
|
|
11421
11422
|
const style = document.createElement('style');
|
|
11422
11423
|
style.textContent = props.customizeCss;
|
|
11423
|
-
|
|
11424
|
+
if (modalElement?.shadowRoot) {
|
|
11425
|
+
modalElement.shadowRoot.appendChild(style);
|
|
11426
|
+
}
|
|
11427
|
+
else {
|
|
11428
|
+
document.head.appendChild(style);
|
|
11429
|
+
}
|
|
11424
11430
|
return () => {
|
|
11425
|
-
|
|
11431
|
+
modalElement?.shadowRoot
|
|
11432
|
+
? modalElement.shadowRoot.removeChild(style)
|
|
11433
|
+
: document.head.removeChild(style);
|
|
11426
11434
|
};
|
|
11427
11435
|
}
|
|
11428
11436
|
onMount$1(() => {
|
|
@@ -15012,10 +15020,10 @@ class CloseButton extends SvelteComponent {
|
|
|
15012
15020
|
/* src/components-flex/image/Image.svelte generated by Svelte v3.53.1 */
|
|
15013
15021
|
|
|
15014
15022
|
function add_css$7(target) {
|
|
15015
|
-
append_styles(target, "svelte-
|
|
15023
|
+
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}");
|
|
15016
15024
|
}
|
|
15017
15025
|
|
|
15018
|
-
// (19:0) <svelte:element
|
|
15026
|
+
// (19:0) <svelte:element this={element} {...attributes} class="image" {style} data-layer-id={layerId} on:click={handleClick} >
|
|
15019
15027
|
function create_dynamic_element$2(ctx) {
|
|
15020
15028
|
let svelte_element;
|
|
15021
15029
|
let object;
|
|
@@ -15045,9 +15053,9 @@ function create_dynamic_element$2(ctx) {
|
|
|
15045
15053
|
img = element("img");
|
|
15046
15054
|
if (!src_url_equal(img.src, img_src_value = /*props*/ ctx[0].image)) attr(img, "src", img_src_value);
|
|
15047
15055
|
attr(img, "alt", img_alt_value = /*props*/ ctx[0].alt);
|
|
15048
|
-
attr(img, "class", "image-img svelte-
|
|
15056
|
+
attr(img, "class", "image-img svelte-1n4oa5l");
|
|
15049
15057
|
attr(object, "style", /*objectStyle*/ ctx[2]);
|
|
15050
|
-
attr(object, "class", "image-object svelte-
|
|
15058
|
+
attr(object, "class", "image-object svelte-1n4oa5l");
|
|
15051
15059
|
|
|
15052
15060
|
if ((/-/).test(/*element*/ ctx[5])) {
|
|
15053
15061
|
set_custom_element_data_map(svelte_element, svelte_element_data);
|
|
@@ -15055,7 +15063,7 @@ function create_dynamic_element$2(ctx) {
|
|
|
15055
15063
|
set_attributes(svelte_element, svelte_element_data);
|
|
15056
15064
|
}
|
|
15057
15065
|
|
|
15058
|
-
toggle_class(svelte_element, "svelte-
|
|
15066
|
+
toggle_class(svelte_element, "svelte-1n4oa5l", true);
|
|
15059
15067
|
},
|
|
15060
15068
|
m(target, anchor) {
|
|
15061
15069
|
insert(target, svelte_element, anchor);
|
|
@@ -15093,7 +15101,7 @@ function create_dynamic_element$2(ctx) {
|
|
|
15093
15101
|
set_attributes(svelte_element, svelte_element_data);
|
|
15094
15102
|
}
|
|
15095
15103
|
|
|
15096
|
-
toggle_class(svelte_element, "svelte-
|
|
15104
|
+
toggle_class(svelte_element, "svelte-1n4oa5l", true);
|
|
15097
15105
|
},
|
|
15098
15106
|
d(detaching) {
|
|
15099
15107
|
if (detaching) detach(svelte_element);
|
|
@@ -16474,19 +16482,19 @@ function add_css$1(target) {
|
|
|
16474
16482
|
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}}");
|
|
16475
16483
|
}
|
|
16476
16484
|
|
|
16477
|
-
// (
|
|
16485
|
+
// (220:0) {:else}
|
|
16478
16486
|
function create_else_block(ctx) {
|
|
16479
16487
|
let backgroundoverlay;
|
|
16480
16488
|
let current;
|
|
16481
16489
|
|
|
16482
16490
|
backgroundoverlay = new BackgroundOverlay({
|
|
16483
16491
|
props: {
|
|
16484
|
-
backgroundOverlay: /*backgroundOverlay*/ ctx[
|
|
16492
|
+
backgroundOverlay: /*backgroundOverlay*/ ctx[4]
|
|
16485
16493
|
}
|
|
16486
16494
|
});
|
|
16487
16495
|
|
|
16488
16496
|
backgroundoverlay.$on("click", function () {
|
|
16489
|
-
if (is_function(/*backgroundClick*/ ctx[
|
|
16497
|
+
if (is_function(/*backgroundClick*/ ctx[12])) /*backgroundClick*/ ctx[12].apply(this, arguments);
|
|
16490
16498
|
});
|
|
16491
16499
|
|
|
16492
16500
|
return {
|
|
@@ -16500,7 +16508,7 @@ function create_else_block(ctx) {
|
|
|
16500
16508
|
p(new_ctx, dirty) {
|
|
16501
16509
|
ctx = new_ctx;
|
|
16502
16510
|
const backgroundoverlay_changes = {};
|
|
16503
|
-
if (dirty & /*backgroundOverlay*/
|
|
16511
|
+
if (dirty & /*backgroundOverlay*/ 16) backgroundoverlay_changes.backgroundOverlay = /*backgroundOverlay*/ ctx[4];
|
|
16504
16512
|
backgroundoverlay.$set(backgroundoverlay_changes);
|
|
16505
16513
|
},
|
|
16506
16514
|
i(local) {
|
|
@@ -16518,7 +16526,7 @@ function create_else_block(ctx) {
|
|
|
16518
16526
|
};
|
|
16519
16527
|
}
|
|
16520
16528
|
|
|
16521
|
-
// (
|
|
16529
|
+
// (209:24)
|
|
16522
16530
|
function create_if_block_2(ctx) {
|
|
16523
16531
|
let backgroundoverlay0;
|
|
16524
16532
|
let t;
|
|
@@ -16528,23 +16536,23 @@ function create_if_block_2(ctx) {
|
|
|
16528
16536
|
backgroundoverlay0 = new BackgroundOverlay({
|
|
16529
16537
|
props: {
|
|
16530
16538
|
class: "background-bp-pc",
|
|
16531
|
-
backgroundOverlay: /*backgroundOverlayPC*/ ctx[
|
|
16539
|
+
backgroundOverlay: /*backgroundOverlayPC*/ ctx[5]
|
|
16532
16540
|
}
|
|
16533
16541
|
});
|
|
16534
16542
|
|
|
16535
16543
|
backgroundoverlay0.$on("click", function () {
|
|
16536
|
-
if (is_function(/*backgroundClickPC*/ ctx[
|
|
16544
|
+
if (is_function(/*backgroundClickPC*/ ctx[11])) /*backgroundClickPC*/ ctx[11].apply(this, arguments);
|
|
16537
16545
|
});
|
|
16538
16546
|
|
|
16539
16547
|
backgroundoverlay1 = new BackgroundOverlay({
|
|
16540
16548
|
props: {
|
|
16541
16549
|
class: "background-bp-sp ",
|
|
16542
|
-
backgroundOverlay: /*backgroundOverlaySP*/ ctx[
|
|
16550
|
+
backgroundOverlay: /*backgroundOverlaySP*/ ctx[6]
|
|
16543
16551
|
}
|
|
16544
16552
|
});
|
|
16545
16553
|
|
|
16546
16554
|
backgroundoverlay1.$on("click", function () {
|
|
16547
|
-
if (is_function(/*backgroundClickSP*/ ctx[
|
|
16555
|
+
if (is_function(/*backgroundClickSP*/ ctx[10])) /*backgroundClickSP*/ ctx[10].apply(this, arguments);
|
|
16548
16556
|
});
|
|
16549
16557
|
|
|
16550
16558
|
return {
|
|
@@ -16562,10 +16570,10 @@ function create_if_block_2(ctx) {
|
|
|
16562
16570
|
p(new_ctx, dirty) {
|
|
16563
16571
|
ctx = new_ctx;
|
|
16564
16572
|
const backgroundoverlay0_changes = {};
|
|
16565
|
-
if (dirty & /*backgroundOverlayPC*/
|
|
16573
|
+
if (dirty & /*backgroundOverlayPC*/ 32) backgroundoverlay0_changes.backgroundOverlay = /*backgroundOverlayPC*/ ctx[5];
|
|
16566
16574
|
backgroundoverlay0.$set(backgroundoverlay0_changes);
|
|
16567
16575
|
const backgroundoverlay1_changes = {};
|
|
16568
|
-
if (dirty & /*backgroundOverlaySP*/
|
|
16576
|
+
if (dirty & /*backgroundOverlaySP*/ 64) backgroundoverlay1_changes.backgroundOverlay = /*backgroundOverlaySP*/ ctx[6];
|
|
16569
16577
|
backgroundoverlay1.$set(backgroundoverlay1_changes);
|
|
16570
16578
|
},
|
|
16571
16579
|
i(local) {
|
|
@@ -16587,7 +16595,7 @@ function create_if_block_2(ctx) {
|
|
|
16587
16595
|
};
|
|
16588
16596
|
}
|
|
16589
16597
|
|
|
16590
|
-
// (
|
|
16598
|
+
// (207:0) {#if isPreview()}
|
|
16591
16599
|
function create_if_block_1(ctx) {
|
|
16592
16600
|
return {
|
|
16593
16601
|
c: noop,
|
|
@@ -16599,14 +16607,14 @@ function create_if_block_1(ctx) {
|
|
|
16599
16607
|
};
|
|
16600
16608
|
}
|
|
16601
16609
|
|
|
16602
|
-
// (
|
|
16610
|
+
// (223:0) {#if visible}
|
|
16603
16611
|
function create_if_block(ctx) {
|
|
16604
16612
|
let div;
|
|
16605
16613
|
let div_class_value;
|
|
16606
16614
|
let div_intro;
|
|
16607
16615
|
let current;
|
|
16608
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
16609
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
16616
|
+
const default_slot_template = /*#slots*/ ctx[24].default;
|
|
16617
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[23], null);
|
|
16610
16618
|
|
|
16611
16619
|
return {
|
|
16612
16620
|
c() {
|
|
@@ -16615,7 +16623,8 @@ function create_if_block(ctx) {
|
|
|
16615
16623
|
attr(div, "class", div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-15b58xm"));
|
|
16616
16624
|
attr(div, "role", "dialog");
|
|
16617
16625
|
attr(div, "aria-modal", "true");
|
|
16618
|
-
attr(div, "
|
|
16626
|
+
attr(div, "data-layer-id", /*layerId*/ ctx[2]);
|
|
16627
|
+
attr(div, "style", Array.from(/*modalStyles*/ ctx[13]).join(';'));
|
|
16619
16628
|
},
|
|
16620
16629
|
m(target, anchor) {
|
|
16621
16630
|
insert(target, div, anchor);
|
|
@@ -16624,22 +16633,22 @@ function create_if_block(ctx) {
|
|
|
16624
16633
|
default_slot.m(div, null);
|
|
16625
16634
|
}
|
|
16626
16635
|
|
|
16627
|
-
/*div_binding*/ ctx[
|
|
16636
|
+
/*div_binding*/ ctx[25](div);
|
|
16628
16637
|
current = true;
|
|
16629
16638
|
},
|
|
16630
16639
|
p(new_ctx, dirty) {
|
|
16631
16640
|
ctx = new_ctx;
|
|
16632
16641
|
|
|
16633
16642
|
if (default_slot) {
|
|
16634
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
16643
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 8388608)) {
|
|
16635
16644
|
update_slot_base(
|
|
16636
16645
|
default_slot,
|
|
16637
16646
|
default_slot_template,
|
|
16638
16647
|
ctx,
|
|
16639
|
-
/*$$scope*/ ctx[
|
|
16648
|
+
/*$$scope*/ ctx[23],
|
|
16640
16649
|
!current
|
|
16641
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
16642
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
16650
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[23])
|
|
16651
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[23], dirty, null),
|
|
16643
16652
|
null
|
|
16644
16653
|
);
|
|
16645
16654
|
}
|
|
@@ -16648,6 +16657,10 @@ function create_if_block(ctx) {
|
|
|
16648
16657
|
if (!current || dirty & /*useBreakPoint*/ 1 && div_class_value !== (div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-15b58xm"))) {
|
|
16649
16658
|
attr(div, "class", div_class_value);
|
|
16650
16659
|
}
|
|
16660
|
+
|
|
16661
|
+
if (!current || dirty & /*layerId*/ 4) {
|
|
16662
|
+
attr(div, "data-layer-id", /*layerId*/ ctx[2]);
|
|
16663
|
+
}
|
|
16651
16664
|
},
|
|
16652
16665
|
i(local) {
|
|
16653
16666
|
if (current) return;
|
|
@@ -16656,7 +16669,7 @@ function create_if_block(ctx) {
|
|
|
16656
16669
|
if (!div_intro) {
|
|
16657
16670
|
add_render_callback(() => {
|
|
16658
16671
|
div_intro = create_in_transition(div, customAnimation, {
|
|
16659
|
-
transforms: /*transforms*/ ctx[
|
|
16672
|
+
transforms: /*transforms*/ ctx[3],
|
|
16660
16673
|
animationStyle: /*animation*/ ctx[1]
|
|
16661
16674
|
});
|
|
16662
16675
|
|
|
@@ -16673,7 +16686,7 @@ function create_if_block(ctx) {
|
|
|
16673
16686
|
d(detaching) {
|
|
16674
16687
|
if (detaching) detach(div);
|
|
16675
16688
|
if (default_slot) default_slot.d(detaching);
|
|
16676
|
-
/*div_binding*/ ctx[
|
|
16689
|
+
/*div_binding*/ ctx[25](null);
|
|
16677
16690
|
}
|
|
16678
16691
|
};
|
|
16679
16692
|
}
|
|
@@ -16699,7 +16712,7 @@ function create_fragment$1(ctx) {
|
|
|
16699
16712
|
|
|
16700
16713
|
current_block_type_index = select_block_type(ctx);
|
|
16701
16714
|
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
16702
|
-
let if_block1 = /*visible*/ ctx[
|
|
16715
|
+
let if_block1 = /*visible*/ ctx[8] && create_if_block(ctx);
|
|
16703
16716
|
|
|
16704
16717
|
return {
|
|
16705
16718
|
c() {
|
|
@@ -16717,7 +16730,7 @@ function create_fragment$1(ctx) {
|
|
|
16717
16730
|
|
|
16718
16731
|
if (!mounted) {
|
|
16719
16732
|
dispose = listen(window, "keydown", function () {
|
|
16720
|
-
if (is_function(/*handle_keydown*/ ctx[
|
|
16733
|
+
if (is_function(/*handle_keydown*/ ctx[9])) /*handle_keydown*/ ctx[9].apply(this, arguments);
|
|
16721
16734
|
});
|
|
16722
16735
|
|
|
16723
16736
|
mounted = true;
|
|
@@ -16751,11 +16764,11 @@ function create_fragment$1(ctx) {
|
|
|
16751
16764
|
if_block0.m(t.parentNode, t);
|
|
16752
16765
|
}
|
|
16753
16766
|
|
|
16754
|
-
if (/*visible*/ ctx[
|
|
16767
|
+
if (/*visible*/ ctx[8]) {
|
|
16755
16768
|
if (if_block1) {
|
|
16756
16769
|
if_block1.p(ctx, dirty);
|
|
16757
16770
|
|
|
16758
|
-
if (dirty & /*visible*/
|
|
16771
|
+
if (dirty & /*visible*/ 256) {
|
|
16759
16772
|
transition_in(if_block1, 1);
|
|
16760
16773
|
}
|
|
16761
16774
|
} else {
|
|
@@ -16811,6 +16824,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
16811
16824
|
let { animation = 'none' } = $$props;
|
|
16812
16825
|
let { closeEventName = '' } = $$props;
|
|
16813
16826
|
let { closeEventValue = null } = $$props;
|
|
16827
|
+
let { layerId = '' } = $$props;
|
|
16814
16828
|
|
|
16815
16829
|
// モーダル背景の設定
|
|
16816
16830
|
const isExistBackgroundOverlayValue = placement && placement.backgroundOverlay !== undefined;
|
|
@@ -16829,7 +16843,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
16829
16843
|
let modal;
|
|
16830
16844
|
|
|
16831
16845
|
onMount$1(() => {
|
|
16832
|
-
$$invalidate(
|
|
16846
|
+
$$invalidate(8, visible = true);
|
|
16833
16847
|
});
|
|
16834
16848
|
|
|
16835
16849
|
onDestroy$1(() => setPreviousFocus());
|
|
@@ -16837,24 +16851,25 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
16837
16851
|
function div_binding($$value) {
|
|
16838
16852
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
16839
16853
|
modal = $$value;
|
|
16840
|
-
$$invalidate(
|
|
16854
|
+
$$invalidate(7, modal);
|
|
16841
16855
|
});
|
|
16842
16856
|
}
|
|
16843
16857
|
|
|
16844
16858
|
$$self.$$set = $$props => {
|
|
16845
16859
|
if ('useBreakPoint' in $$props) $$invalidate(0, useBreakPoint = $$props.useBreakPoint);
|
|
16846
|
-
if ('placement' in $$props) $$invalidate(
|
|
16847
|
-
if ('breakPoint' in $$props) $$invalidate(
|
|
16848
|
-
if ('elasticity' in $$props) $$invalidate(
|
|
16860
|
+
if ('placement' in $$props) $$invalidate(14, placement = $$props.placement);
|
|
16861
|
+
if ('breakPoint' in $$props) $$invalidate(15, breakPoint = $$props.breakPoint);
|
|
16862
|
+
if ('elasticity' in $$props) $$invalidate(16, elasticity = $$props.elasticity);
|
|
16849
16863
|
if ('animation' in $$props) $$invalidate(1, animation = $$props.animation);
|
|
16850
|
-
if ('closeEventName' in $$props) $$invalidate(
|
|
16851
|
-
if ('closeEventValue' in $$props) $$invalidate(
|
|
16852
|
-
if ('
|
|
16864
|
+
if ('closeEventName' in $$props) $$invalidate(17, closeEventName = $$props.closeEventName);
|
|
16865
|
+
if ('closeEventValue' in $$props) $$invalidate(18, closeEventValue = $$props.closeEventValue);
|
|
16866
|
+
if ('layerId' in $$props) $$invalidate(2, layerId = $$props.layerId);
|
|
16867
|
+
if ('$$scope' in $$props) $$invalidate(23, $$scope = $$props.$$scope);
|
|
16853
16868
|
};
|
|
16854
16869
|
|
|
16855
16870
|
$$self.$$.update = () => {
|
|
16856
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue*/
|
|
16857
|
-
$$invalidate(
|
|
16871
|
+
if ($$self.$$.dirty & /*closeEventName, closeEventValue*/ 393216) {
|
|
16872
|
+
$$invalidate(22, close = () => {
|
|
16858
16873
|
const onClose = { operation: 'closeApp', args: ['button'] };
|
|
16859
16874
|
|
|
16860
16875
|
if (closeEventName) {
|
|
@@ -16865,45 +16880,45 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
16865
16880
|
});
|
|
16866
16881
|
}
|
|
16867
16882
|
|
|
16868
|
-
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/
|
|
16883
|
+
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/ 49153) {
|
|
16869
16884
|
{
|
|
16870
16885
|
if (isExistBackgroundOverlayValue) {
|
|
16871
|
-
$$invalidate(
|
|
16886
|
+
$$invalidate(4, backgroundOverlay = placement.backgroundOverlay);
|
|
16872
16887
|
}
|
|
16873
16888
|
|
|
16874
16889
|
if (useBreakPoint) {
|
|
16875
16890
|
const pc = breakPoint?.PC?.placement?.backgroundOverlay;
|
|
16876
|
-
$$invalidate(
|
|
16891
|
+
$$invalidate(5, backgroundOverlayPC = pc ?? false);
|
|
16877
16892
|
const sp = breakPoint?.SP?.placement?.backgroundOverlay;
|
|
16878
|
-
$$invalidate(
|
|
16893
|
+
$$invalidate(6, backgroundOverlaySP = sp ?? false);
|
|
16879
16894
|
}
|
|
16880
16895
|
}
|
|
16881
16896
|
}
|
|
16882
16897
|
|
|
16883
|
-
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/
|
|
16898
|
+
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/ 49153) {
|
|
16884
16899
|
{
|
|
16885
16900
|
if (placement && placement.backgroundClick) {
|
|
16886
|
-
$$invalidate(
|
|
16901
|
+
$$invalidate(19, backgroundClickFunction = placement.backgroundClick);
|
|
16887
16902
|
}
|
|
16888
16903
|
|
|
16889
16904
|
if (useBreakPoint) {
|
|
16890
16905
|
const pc = breakPoint?.PC?.placement?.backgroundClick;
|
|
16891
16906
|
|
|
16892
16907
|
if (pc) {
|
|
16893
|
-
$$invalidate(
|
|
16908
|
+
$$invalidate(20, backgroundClickFunctionPC = pc);
|
|
16894
16909
|
}
|
|
16895
16910
|
|
|
16896
16911
|
const sp = breakPoint?.SP?.placement?.backgroundClick;
|
|
16897
16912
|
|
|
16898
16913
|
if (sp) {
|
|
16899
|
-
$$invalidate(
|
|
16914
|
+
$$invalidate(21, backgroundClickFunctionSP = sp);
|
|
16900
16915
|
}
|
|
16901
16916
|
}
|
|
16902
16917
|
}
|
|
16903
16918
|
}
|
|
16904
16919
|
|
|
16905
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/
|
|
16906
|
-
$$invalidate(
|
|
16920
|
+
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/ 917504) {
|
|
16921
|
+
$$invalidate(12, backgroundClick = () => {
|
|
16907
16922
|
if (closeEventName) {
|
|
16908
16923
|
send_event(closeEventName, closeEventValue);
|
|
16909
16924
|
}
|
|
@@ -16912,8 +16927,8 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
16912
16927
|
});
|
|
16913
16928
|
}
|
|
16914
16929
|
|
|
16915
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunctionPC*/
|
|
16916
|
-
$$invalidate(
|
|
16930
|
+
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunctionPC*/ 1441792) {
|
|
16931
|
+
$$invalidate(11, backgroundClickPC = () => {
|
|
16917
16932
|
if (closeEventName) {
|
|
16918
16933
|
send_event(closeEventName, closeEventValue);
|
|
16919
16934
|
}
|
|
@@ -16922,8 +16937,8 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
16922
16937
|
});
|
|
16923
16938
|
}
|
|
16924
16939
|
|
|
16925
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunctionSP*/
|
|
16926
|
-
$$invalidate(
|
|
16940
|
+
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunctionSP*/ 2490368) {
|
|
16941
|
+
$$invalidate(10, backgroundClickSP = () => {
|
|
16927
16942
|
if (closeEventName) {
|
|
16928
16943
|
send_event(closeEventName, closeEventValue);
|
|
16929
16944
|
}
|
|
@@ -16932,7 +16947,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
16932
16947
|
});
|
|
16933
16948
|
}
|
|
16934
16949
|
|
|
16935
|
-
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint, transforms*/
|
|
16950
|
+
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint, transforms*/ 49161) {
|
|
16936
16951
|
// 表示位置のスタイルとアニメーションの動きを設定
|
|
16937
16952
|
{
|
|
16938
16953
|
// 表示位置のスタイルの設定
|
|
@@ -16948,7 +16963,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
16948
16963
|
modalStyles.add(positionStyle);
|
|
16949
16964
|
}
|
|
16950
16965
|
|
|
16951
|
-
$$invalidate(
|
|
16966
|
+
$$invalidate(3, transforms = []);
|
|
16952
16967
|
|
|
16953
16968
|
DEVICE_IDS.forEach(deviceId => {
|
|
16954
16969
|
if (useBreakPoint) {
|
|
@@ -16976,7 +16991,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
16976
16991
|
}
|
|
16977
16992
|
}
|
|
16978
16993
|
|
|
16979
|
-
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/
|
|
16994
|
+
if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/ 49153) {
|
|
16980
16995
|
// 表示位置の調整のスタイルを設定
|
|
16981
16996
|
{
|
|
16982
16997
|
let margin = DefaultModalPlacement.margin;
|
|
@@ -17008,7 +17023,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
17008
17023
|
}
|
|
17009
17024
|
}
|
|
17010
17025
|
|
|
17011
|
-
if ($$self.$$.dirty & /*elasticity, useBreakPoint, breakPoint*/
|
|
17026
|
+
if ($$self.$$.dirty & /*elasticity, useBreakPoint, breakPoint*/ 98305) {
|
|
17012
17027
|
// 拡大方法のスタイルを設定
|
|
17013
17028
|
{
|
|
17014
17029
|
let elasticStyle = ElasticityStyle[elasticity];
|
|
@@ -17034,19 +17049,20 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
17034
17049
|
}
|
|
17035
17050
|
}
|
|
17036
17051
|
|
|
17037
|
-
if ($$self.$$.dirty & /*close*/
|
|
17038
|
-
$$invalidate(
|
|
17052
|
+
if ($$self.$$.dirty & /*close*/ 4194304) {
|
|
17053
|
+
$$invalidate(9, handle_keydown = handleKeydown({ Escape: close }));
|
|
17039
17054
|
}
|
|
17040
17055
|
};
|
|
17041
17056
|
|
|
17042
|
-
$$invalidate(
|
|
17057
|
+
$$invalidate(7, modal = null);
|
|
17043
17058
|
|
|
17044
17059
|
// svelteコンポーネントのアニメーションを発火させるためにマウント時にvisibleをtrueにする。
|
|
17045
|
-
$$invalidate(
|
|
17060
|
+
$$invalidate(8, visible = false);
|
|
17046
17061
|
|
|
17047
17062
|
return [
|
|
17048
17063
|
useBreakPoint,
|
|
17049
17064
|
animation,
|
|
17065
|
+
layerId,
|
|
17050
17066
|
transforms,
|
|
17051
17067
|
backgroundOverlay,
|
|
17052
17068
|
backgroundOverlayPC,
|
|
@@ -17085,12 +17101,13 @@ class Modal extends SvelteComponent {
|
|
|
17085
17101
|
safe_not_equal,
|
|
17086
17102
|
{
|
|
17087
17103
|
useBreakPoint: 0,
|
|
17088
|
-
placement:
|
|
17089
|
-
breakPoint:
|
|
17090
|
-
elasticity:
|
|
17104
|
+
placement: 14,
|
|
17105
|
+
breakPoint: 15,
|
|
17106
|
+
elasticity: 16,
|
|
17091
17107
|
animation: 1,
|
|
17092
|
-
closeEventName:
|
|
17093
|
-
closeEventValue:
|
|
17108
|
+
closeEventName: 17,
|
|
17109
|
+
closeEventValue: 18,
|
|
17110
|
+
layerId: 2
|
|
17094
17111
|
},
|
|
17095
17112
|
add_css$1
|
|
17096
17113
|
);
|