@plaidev/karte-action-sdk 1.1.207-28216182.2d812378 → 1.1.208-28223127.8251d5b4
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.d.ts +21 -4
- package/dist/hydrate/index.es.js +449 -168
- package/dist/index.es.d.ts +21 -4
- package/dist/index.es.js +460 -162
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -15,6 +15,8 @@ const KARTE_ACTION_SHORTEN_ID = 'karte-action-id';
|
|
15
15
|
const ALL_ACTION_ID = 'KARTE_ALL_ACTION_ID';
|
16
16
|
/** @internal */
|
17
17
|
const ALL_ACTION_SHORTEN_ID = 'KARTE_ALL_ACTION_SHORTEN_ID';
|
18
|
+
/** @internal */
|
19
|
+
const DEVICE_IDS = ['PC', 'SP'];
|
18
20
|
// -------- The following codes are deprecated --------
|
19
21
|
/**
|
20
22
|
* 非推奨
|
@@ -96,7 +98,12 @@ const getMarginStyle = (margin) => {
|
|
96
98
|
};
|
97
99
|
/** @internal */
|
98
100
|
const parseStyle = (style) => {
|
99
|
-
return
|
101
|
+
return style
|
102
|
+
? Object.fromEntries(style
|
103
|
+
.split(';')
|
104
|
+
.filter(attr => attr.trim())
|
105
|
+
.map(attr => attr.split(':').map(str => str.trim())))
|
106
|
+
: {};
|
100
107
|
};
|
101
108
|
/** @internal */
|
102
109
|
const stringifyStyleObj = (styleObj) => {
|
@@ -104,6 +111,8 @@ const stringifyStyleObj = (styleObj) => {
|
|
104
111
|
.map(([key, value]) => `${key}:${value}`)
|
105
112
|
.join(';');
|
106
113
|
};
|
114
|
+
/** @internal */
|
115
|
+
const formatObjectKey = ({ obj, prefix, suffix, }) => Object.fromEntries(Object.entries(obj).map(([key, value]) => [`${prefix ?? ''}${key}${suffix ?? ''}`, value]));
|
107
116
|
/**
|
108
117
|
* スクロール率が達したときに呼び出すコールバックを登録します
|
109
118
|
*
|
@@ -329,6 +338,8 @@ const ElasticityStyle = {
|
|
329
338
|
horizontal: 'width: 100%',
|
330
339
|
};
|
331
340
|
/** @internal */
|
341
|
+
const DefaultElasticity = 'none';
|
342
|
+
/** @internal */
|
332
343
|
const TextDirections = ['horizontal', 'vertical'];
|
333
344
|
/** @internal */
|
334
345
|
const OnClickOperationOptions = [
|
@@ -567,6 +578,17 @@ const DefaultFormButtonColor = {
|
|
567
578
|
main: '#2aab9f',
|
568
579
|
sub: '#fff',
|
569
580
|
};
|
581
|
+
/** @internal */
|
582
|
+
const DefaultModalBreakPoint = {
|
583
|
+
PC: {
|
584
|
+
placement: DefaultModalPlacement,
|
585
|
+
elasticity: DefaultElasticity,
|
586
|
+
},
|
587
|
+
SP: {
|
588
|
+
placement: DefaultModalPlacement,
|
589
|
+
elasticity: DefaultElasticity,
|
590
|
+
},
|
591
|
+
};
|
570
592
|
|
571
593
|
/**
|
572
594
|
* Store to handle action setting
|
@@ -3213,7 +3235,7 @@ function add_css$r(target) {
|
|
3213
3235
|
}
|
3214
3236
|
|
3215
3237
|
// (50:0) {:else}
|
3216
|
-
function create_else_block$
|
3238
|
+
function create_else_block$4(ctx) {
|
3217
3239
|
let button;
|
3218
3240
|
let current;
|
3219
3241
|
let mounted;
|
@@ -3308,7 +3330,7 @@ function create_else_block$3(ctx) {
|
|
3308
3330
|
}
|
3309
3331
|
|
3310
3332
|
// (46:39)
|
3311
|
-
function create_if_block_2(ctx) {
|
3333
|
+
function create_if_block_2$1(ctx) {
|
3312
3334
|
let div;
|
3313
3335
|
let current;
|
3314
3336
|
const default_slot_template = /*#slots*/ ctx[9].default;
|
@@ -3564,7 +3586,7 @@ function create_fragment$u(ctx) {
|
|
3564
3586
|
let if_block;
|
3565
3587
|
let if_block_anchor;
|
3566
3588
|
let current;
|
3567
|
-
const if_block_creators = [create_if_block$6, create_if_block_1$2, create_if_block_2, create_else_block$
|
3589
|
+
const if_block_creators = [create_if_block$6, create_if_block_1$2, create_if_block_2$1, create_else_block$4];
|
3568
3590
|
const if_blocks = [];
|
3569
3591
|
|
3570
3592
|
function select_block_type(ctx, dirty) {
|
@@ -3719,14 +3741,148 @@ class Button extends SvelteComponent {
|
|
3719
3741
|
/* src/components/Modal.svelte generated by Svelte v3.53.1 */
|
3720
3742
|
|
3721
3743
|
function add_css$q(target) {
|
3722
|
-
append_styles(target, "svelte-
|
3744
|
+
append_styles(target, "svelte-1j0m3x1", ".modal.svelte-1j0m3x1{position:fixed;box-sizing:border-box;z-index:2147483647;display:flex}.modal.svelte-1j0m3x1 > .button{flex:auto;display:flex}.close.svelte-1j0m3x1{position:absolute;top:0;right:0}.close.svelte-1j0m3x1 > .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-1j0m3x1 > .button:hover{transform:rotate(90deg)}.modal-content.svelte-1j0m3x1{flex:auto;display:flex;justify-content:center;align-items:center;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}@media screen and (min-width: 641px){.modal-bp.svelte-1j0m3x1{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) !important;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-1j0m3x1{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) !important;margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
|
3745
|
+
}
|
3746
|
+
|
3747
|
+
// (265:0) {:else}
|
3748
|
+
function create_else_block$3(ctx) {
|
3749
|
+
let backgroundoverlay;
|
3750
|
+
let current;
|
3751
|
+
|
3752
|
+
backgroundoverlay = new BackgroundOverlay({
|
3753
|
+
props: {
|
3754
|
+
backgroundOverlay: /*backgroundOverlay*/ ctx[11]
|
3755
|
+
}
|
3756
|
+
});
|
3757
|
+
|
3758
|
+
backgroundoverlay.$on("click", function () {
|
3759
|
+
if (is_function(/*backgroundClick*/ ctx[20])) /*backgroundClick*/ ctx[20].apply(this, arguments);
|
3760
|
+
});
|
3761
|
+
|
3762
|
+
return {
|
3763
|
+
c() {
|
3764
|
+
create_component(backgroundoverlay.$$.fragment);
|
3765
|
+
},
|
3766
|
+
l(nodes) {
|
3767
|
+
claim_component(backgroundoverlay.$$.fragment, nodes);
|
3768
|
+
},
|
3769
|
+
m(target, anchor) {
|
3770
|
+
mount_component(backgroundoverlay, target, anchor);
|
3771
|
+
current = true;
|
3772
|
+
},
|
3773
|
+
p(new_ctx, dirty) {
|
3774
|
+
ctx = new_ctx;
|
3775
|
+
const backgroundoverlay_changes = {};
|
3776
|
+
if (dirty[0] & /*backgroundOverlay*/ 2048) backgroundoverlay_changes.backgroundOverlay = /*backgroundOverlay*/ ctx[11];
|
3777
|
+
backgroundoverlay.$set(backgroundoverlay_changes);
|
3778
|
+
},
|
3779
|
+
i(local) {
|
3780
|
+
if (current) return;
|
3781
|
+
transition_in(backgroundoverlay.$$.fragment, local);
|
3782
|
+
current = true;
|
3783
|
+
},
|
3784
|
+
o(local) {
|
3785
|
+
transition_out(backgroundoverlay.$$.fragment, local);
|
3786
|
+
current = false;
|
3787
|
+
},
|
3788
|
+
d(detaching) {
|
3789
|
+
destroy_component(backgroundoverlay, detaching);
|
3790
|
+
}
|
3791
|
+
};
|
3792
|
+
}
|
3793
|
+
|
3794
|
+
// (254:24)
|
3795
|
+
function create_if_block_3(ctx) {
|
3796
|
+
let backgroundoverlay0;
|
3797
|
+
let t;
|
3798
|
+
let backgroundoverlay1;
|
3799
|
+
let current;
|
3800
|
+
|
3801
|
+
backgroundoverlay0 = new BackgroundOverlay({
|
3802
|
+
props: {
|
3803
|
+
class: "background-bp-pc",
|
3804
|
+
backgroundOverlay: /*backgroundOverlayPC*/ ctx[12]
|
3805
|
+
}
|
3806
|
+
});
|
3807
|
+
|
3808
|
+
backgroundoverlay0.$on("click", function () {
|
3809
|
+
if (is_function(/*backgroundClickPC*/ ctx[19])) /*backgroundClickPC*/ ctx[19].apply(this, arguments);
|
3810
|
+
});
|
3811
|
+
|
3812
|
+
backgroundoverlay1 = new BackgroundOverlay({
|
3813
|
+
props: {
|
3814
|
+
class: "background-bp-sp ",
|
3815
|
+
backgroundOverlay: /*backgroundOverlaySP*/ ctx[13]
|
3816
|
+
}
|
3817
|
+
});
|
3818
|
+
|
3819
|
+
backgroundoverlay1.$on("click", function () {
|
3820
|
+
if (is_function(/*backgroundClickSP*/ ctx[18])) /*backgroundClickSP*/ ctx[18].apply(this, arguments);
|
3821
|
+
});
|
3822
|
+
|
3823
|
+
return {
|
3824
|
+
c() {
|
3825
|
+
create_component(backgroundoverlay0.$$.fragment);
|
3826
|
+
t = space();
|
3827
|
+
create_component(backgroundoverlay1.$$.fragment);
|
3828
|
+
},
|
3829
|
+
l(nodes) {
|
3830
|
+
claim_component(backgroundoverlay0.$$.fragment, nodes);
|
3831
|
+
t = claim_space(nodes);
|
3832
|
+
claim_component(backgroundoverlay1.$$.fragment, nodes);
|
3833
|
+
},
|
3834
|
+
m(target, anchor) {
|
3835
|
+
mount_component(backgroundoverlay0, target, anchor);
|
3836
|
+
insert_hydration(target, t, anchor);
|
3837
|
+
mount_component(backgroundoverlay1, target, anchor);
|
3838
|
+
current = true;
|
3839
|
+
},
|
3840
|
+
p(new_ctx, dirty) {
|
3841
|
+
ctx = new_ctx;
|
3842
|
+
const backgroundoverlay0_changes = {};
|
3843
|
+
if (dirty[0] & /*backgroundOverlayPC*/ 4096) backgroundoverlay0_changes.backgroundOverlay = /*backgroundOverlayPC*/ ctx[12];
|
3844
|
+
backgroundoverlay0.$set(backgroundoverlay0_changes);
|
3845
|
+
const backgroundoverlay1_changes = {};
|
3846
|
+
if (dirty[0] & /*backgroundOverlaySP*/ 8192) backgroundoverlay1_changes.backgroundOverlay = /*backgroundOverlaySP*/ ctx[13];
|
3847
|
+
backgroundoverlay1.$set(backgroundoverlay1_changes);
|
3848
|
+
},
|
3849
|
+
i(local) {
|
3850
|
+
if (current) return;
|
3851
|
+
transition_in(backgroundoverlay0.$$.fragment, local);
|
3852
|
+
transition_in(backgroundoverlay1.$$.fragment, local);
|
3853
|
+
current = true;
|
3854
|
+
},
|
3855
|
+
o(local) {
|
3856
|
+
transition_out(backgroundoverlay0.$$.fragment, local);
|
3857
|
+
transition_out(backgroundoverlay1.$$.fragment, local);
|
3858
|
+
current = false;
|
3859
|
+
},
|
3860
|
+
d(detaching) {
|
3861
|
+
destroy_component(backgroundoverlay0, detaching);
|
3862
|
+
if (detaching) detach(t);
|
3863
|
+
destroy_component(backgroundoverlay1, detaching);
|
3864
|
+
}
|
3865
|
+
};
|
3723
3866
|
}
|
3724
3867
|
|
3725
|
-
// (
|
3868
|
+
// (252:0) {#if isPreview()}
|
3869
|
+
function create_if_block_2(ctx) {
|
3870
|
+
return {
|
3871
|
+
c: noop,
|
3872
|
+
l: noop,
|
3873
|
+
m: noop,
|
3874
|
+
p: noop,
|
3875
|
+
i: noop,
|
3876
|
+
o: noop,
|
3877
|
+
d: noop
|
3878
|
+
};
|
3879
|
+
}
|
3880
|
+
|
3881
|
+
// (268:0) {#if visible}
|
3726
3882
|
function create_if_block$5(ctx) {
|
3727
3883
|
let div;
|
3728
3884
|
let button;
|
3729
|
-
let
|
3885
|
+
let div_class_value;
|
3730
3886
|
let div_intro;
|
3731
3887
|
let current;
|
3732
3888
|
|
@@ -3760,32 +3916,32 @@ function create_if_block$5(ctx) {
|
|
3760
3916
|
this.h();
|
3761
3917
|
},
|
3762
3918
|
h() {
|
3763
|
-
attr(div, "class", "modal svelte-
|
3919
|
+
attr(div, "class", div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[3] ? 'modal-bp' : ''].join(' ')) + " svelte-1j0m3x1"));
|
3764
3920
|
attr(div, "role", "dialog");
|
3765
3921
|
attr(div, "aria-modal", "true");
|
3766
|
-
attr(div, "style",
|
3922
|
+
attr(div, "style", Array.from(/*modalStyles*/ ctx[23]).join(';'));
|
3767
3923
|
},
|
3768
3924
|
m(target, anchor) {
|
3769
3925
|
insert_hydration(target, div, anchor);
|
3770
3926
|
mount_component(button, div, null);
|
3771
|
-
/*div_binding*/ ctx[
|
3927
|
+
/*div_binding*/ ctx[32](div);
|
3772
3928
|
current = true;
|
3773
3929
|
},
|
3774
3930
|
p(new_ctx, dirty) {
|
3775
3931
|
ctx = new_ctx;
|
3776
3932
|
const button_changes = {};
|
3777
|
-
if (dirty & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
|
3778
|
-
if (dirty & /*clickEventName*/ 2) button_changes.eventName = /*clickEventName*/ ctx[1];
|
3779
|
-
if (dirty & /*clickEventValue*/ 4) button_changes.eventValue = /*clickEventValue*/ ctx[2];
|
3933
|
+
if (dirty[0] & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
|
3934
|
+
if (dirty[0] & /*clickEventName*/ 2) button_changes.eventName = /*clickEventName*/ ctx[1];
|
3935
|
+
if (dirty[0] & /*clickEventValue*/ 4) button_changes.eventValue = /*clickEventValue*/ ctx[2];
|
3780
3936
|
|
3781
|
-
if (dirty &
|
3937
|
+
if (dirty[0] & /*_style, $maximumZindex, onClose, _closeStyle, closeEventName, closeEventValue, closeButtonColor, closable*/ 6293472 | dirty[1] & /*$$scope*/ 4) {
|
3782
3938
|
button_changes.$$scope = { dirty, ctx };
|
3783
3939
|
}
|
3784
3940
|
|
3785
3941
|
button.$set(button_changes);
|
3786
3942
|
|
3787
|
-
if (!current || dirty & /*
|
3788
|
-
attr(div, "
|
3943
|
+
if (!current || dirty[0] & /*useBreakPoint*/ 8 && div_class_value !== (div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[3] ? 'modal-bp' : ''].join(' ')) + " svelte-1j0m3x1"))) {
|
3944
|
+
attr(div, "class", div_class_value);
|
3789
3945
|
}
|
3790
3946
|
},
|
3791
3947
|
i(local) {
|
@@ -3795,8 +3951,8 @@ function create_if_block$5(ctx) {
|
|
3795
3951
|
if (!div_intro) {
|
3796
3952
|
add_render_callback(() => {
|
3797
3953
|
div_intro = create_in_transition(div, customAnimation, {
|
3798
|
-
transform: /*transform*/ ctx[
|
3799
|
-
animationStyle: /*animation*/ ctx[
|
3954
|
+
transform: /*transform*/ ctx[14],
|
3955
|
+
animationStyle: /*animation*/ ctx[4]
|
3800
3956
|
});
|
3801
3957
|
|
3802
3958
|
div_intro.start();
|
@@ -3812,12 +3968,12 @@ function create_if_block$5(ctx) {
|
|
3812
3968
|
d(detaching) {
|
3813
3969
|
if (detaching) detach(div);
|
3814
3970
|
destroy_component(button);
|
3815
|
-
/*div_binding*/ ctx[
|
3971
|
+
/*div_binding*/ ctx[32](null);
|
3816
3972
|
}
|
3817
3973
|
};
|
3818
3974
|
}
|
3819
3975
|
|
3820
|
-
// (
|
3976
|
+
// (281:6) {#if closable}
|
3821
3977
|
function create_if_block_1$1(ctx) {
|
3822
3978
|
let div;
|
3823
3979
|
let button;
|
@@ -3825,10 +3981,10 @@ function create_if_block_1$1(ctx) {
|
|
3825
3981
|
|
3826
3982
|
button = new Button({
|
3827
3983
|
props: {
|
3828
|
-
onClick: /*onClose*/ ctx[
|
3829
|
-
style: /*_closeStyle*/ ctx[
|
3830
|
-
eventName: /*closeEventName*/ ctx[
|
3831
|
-
eventValue: /*closeEventValue*/ ctx[
|
3984
|
+
onClick: /*onClose*/ ctx[6],
|
3985
|
+
style: /*_closeStyle*/ ctx[10],
|
3986
|
+
eventName: /*closeEventName*/ ctx[7],
|
3987
|
+
eventValue: /*closeEventValue*/ ctx[8],
|
3832
3988
|
$$slots: { default: [create_default_slot_1$1] },
|
3833
3989
|
$$scope: { ctx }
|
3834
3990
|
}
|
@@ -3848,8 +4004,8 @@ function create_if_block_1$1(ctx) {
|
|
3848
4004
|
this.h();
|
3849
4005
|
},
|
3850
4006
|
h() {
|
3851
|
-
attr(div, "class", "close svelte-
|
3852
|
-
set_style(div, "z-index", /*$maximumZindex*/ ctx[
|
4007
|
+
attr(div, "class", "close svelte-1j0m3x1");
|
4008
|
+
set_style(div, "z-index", /*$maximumZindex*/ ctx[22] + 1);
|
3853
4009
|
},
|
3854
4010
|
m(target, anchor) {
|
3855
4011
|
insert_hydration(target, div, anchor);
|
@@ -3858,19 +4014,19 @@ function create_if_block_1$1(ctx) {
|
|
3858
4014
|
},
|
3859
4015
|
p(ctx, dirty) {
|
3860
4016
|
const button_changes = {};
|
3861
|
-
if (dirty & /*onClose*/
|
3862
|
-
if (dirty & /*_closeStyle*/
|
3863
|
-
if (dirty & /*closeEventName*/
|
3864
|
-
if (dirty & /*closeEventValue*/
|
4017
|
+
if (dirty[0] & /*onClose*/ 64) button_changes.onClick = /*onClose*/ ctx[6];
|
4018
|
+
if (dirty[0] & /*_closeStyle*/ 1024) button_changes.style = /*_closeStyle*/ ctx[10];
|
4019
|
+
if (dirty[0] & /*closeEventName*/ 128) button_changes.eventName = /*closeEventName*/ ctx[7];
|
4020
|
+
if (dirty[0] & /*closeEventValue*/ 256) button_changes.eventValue = /*closeEventValue*/ ctx[8];
|
3865
4021
|
|
3866
|
-
if (dirty & /*$$scope
|
4022
|
+
if (dirty[0] & /*closeButtonColor*/ 512 | dirty[1] & /*$$scope*/ 4) {
|
3867
4023
|
button_changes.$$scope = { dirty, ctx };
|
3868
4024
|
}
|
3869
4025
|
|
3870
4026
|
button.$set(button_changes);
|
3871
4027
|
|
3872
|
-
if (!current || dirty & /*$maximumZindex*/
|
3873
|
-
set_style(div, "z-index", /*$maximumZindex*/ ctx[
|
4028
|
+
if (!current || dirty[0] & /*$maximumZindex*/ 4194304) {
|
4029
|
+
set_style(div, "z-index", /*$maximumZindex*/ ctx[22] + 1);
|
3874
4030
|
}
|
3875
4031
|
},
|
3876
4032
|
i(local) {
|
@@ -3889,7 +4045,7 @@ function create_if_block_1$1(ctx) {
|
|
3889
4045
|
};
|
3890
4046
|
}
|
3891
4047
|
|
3892
|
-
// (
|
4048
|
+
// (283:10) <Button onClick={onClose} style={_closeStyle} eventName={closeEventName} eventValue={closeEventValue} >
|
3893
4049
|
function create_default_slot_1$1(ctx) {
|
3894
4050
|
let svg;
|
3895
4051
|
let path;
|
@@ -3923,7 +4079,7 @@ function create_default_slot_1$1(ctx) {
|
|
3923
4079
|
},
|
3924
4080
|
h() {
|
3925
4081
|
attr(path, "d", "M5.78516 4.75L8.73828 1.82422C8.90234 1.66016 8.90234 1.35938 8.73828 1.19531L8.05469 0.511719C7.89062 0.347656 7.58984 0.347656 7.42578 0.511719L4.5 3.46484L1.54688 0.511719C1.38281 0.347656 1.08203 0.347656 0.917969 0.511719L0.234375 1.19531C0.0703125 1.35938 0.0703125 1.66016 0.234375 1.82422L3.1875 4.75L0.234375 7.70312C0.0703125 7.86719 0.0703125 8.16797 0.234375 8.33203L0.917969 9.01562C1.08203 9.17969 1.38281 9.17969 1.54688 9.01562L4.5 6.0625L7.42578 9.01562C7.58984 9.17969 7.89062 9.17969 8.05469 9.01562L8.73828 8.33203C8.90234 8.16797 8.90234 7.86719 8.73828 7.70312L5.78516 4.75Z");
|
3926
|
-
attr(path, "fill", /*closeButtonColor*/ ctx[
|
4082
|
+
attr(path, "fill", /*closeButtonColor*/ ctx[9]);
|
3927
4083
|
attr(path, "fill-opacity", "0.8");
|
3928
4084
|
attr(svg, "width", "100%");
|
3929
4085
|
attr(svg, "height", "100%");
|
@@ -3936,8 +4092,8 @@ function create_default_slot_1$1(ctx) {
|
|
3936
4092
|
append_hydration(svg, path);
|
3937
4093
|
},
|
3938
4094
|
p(ctx, dirty) {
|
3939
|
-
if (dirty & /*closeButtonColor*/
|
3940
|
-
attr(path, "fill", /*closeButtonColor*/ ctx[
|
4095
|
+
if (dirty[0] & /*closeButtonColor*/ 512) {
|
4096
|
+
attr(path, "fill", /*closeButtonColor*/ ctx[9]);
|
3941
4097
|
}
|
3942
4098
|
},
|
3943
4099
|
d(detaching) {
|
@@ -3946,14 +4102,14 @@ function create_default_slot_1$1(ctx) {
|
|
3946
4102
|
};
|
3947
4103
|
}
|
3948
4104
|
|
3949
|
-
// (
|
4105
|
+
// (280:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
|
3950
4106
|
function create_default_slot$6(ctx) {
|
3951
4107
|
let t;
|
3952
4108
|
let div;
|
3953
4109
|
let current;
|
3954
|
-
let if_block = /*closable*/ ctx[
|
3955
|
-
const default_slot_template = /*#slots*/ ctx[
|
3956
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
4110
|
+
let if_block = /*closable*/ ctx[21] && create_if_block_1$1(ctx);
|
4111
|
+
const default_slot_template = /*#slots*/ ctx[31].default;
|
4112
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[33], null);
|
3957
4113
|
|
3958
4114
|
return {
|
3959
4115
|
c() {
|
@@ -3973,8 +4129,8 @@ function create_default_slot$6(ctx) {
|
|
3973
4129
|
this.h();
|
3974
4130
|
},
|
3975
4131
|
h() {
|
3976
|
-
attr(div, "class", "modal-content svelte-
|
3977
|
-
attr(div, "style", /*_style*/ ctx[
|
4132
|
+
attr(div, "class", "modal-content svelte-1j0m3x1");
|
4133
|
+
attr(div, "style", /*_style*/ ctx[5]);
|
3978
4134
|
},
|
3979
4135
|
m(target, anchor) {
|
3980
4136
|
if (if_block) if_block.m(target, anchor);
|
@@ -3988,11 +4144,11 @@ function create_default_slot$6(ctx) {
|
|
3988
4144
|
current = true;
|
3989
4145
|
},
|
3990
4146
|
p(ctx, dirty) {
|
3991
|
-
if (/*closable*/ ctx[
|
4147
|
+
if (/*closable*/ ctx[21]) {
|
3992
4148
|
if (if_block) {
|
3993
4149
|
if_block.p(ctx, dirty);
|
3994
4150
|
|
3995
|
-
if (dirty & /*closable*/
|
4151
|
+
if (dirty[0] & /*closable*/ 2097152) {
|
3996
4152
|
transition_in(if_block, 1);
|
3997
4153
|
}
|
3998
4154
|
} else {
|
@@ -4012,22 +4168,22 @@ function create_default_slot$6(ctx) {
|
|
4012
4168
|
}
|
4013
4169
|
|
4014
4170
|
if (default_slot) {
|
4015
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
4171
|
+
if (default_slot.p && (!current || dirty[1] & /*$$scope*/ 4)) {
|
4016
4172
|
update_slot_base(
|
4017
4173
|
default_slot,
|
4018
4174
|
default_slot_template,
|
4019
4175
|
ctx,
|
4020
|
-
/*$$scope*/ ctx[
|
4176
|
+
/*$$scope*/ ctx[33],
|
4021
4177
|
!current
|
4022
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
4023
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
4178
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[33])
|
4179
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[33], dirty, null),
|
4024
4180
|
null
|
4025
4181
|
);
|
4026
4182
|
}
|
4027
4183
|
}
|
4028
4184
|
|
4029
|
-
if (!current || dirty & /*_style*/
|
4030
|
-
attr(div, "style", /*_style*/ ctx[
|
4185
|
+
if (!current || dirty[0] & /*_style*/ 32) {
|
4186
|
+
attr(div, "style", /*_style*/ ctx[5]);
|
4031
4187
|
}
|
4032
4188
|
},
|
4033
4189
|
i(local) {
|
@@ -4051,77 +4207,102 @@ function create_default_slot$6(ctx) {
|
|
4051
4207
|
}
|
4052
4208
|
|
4053
4209
|
function create_fragment$t(ctx) {
|
4054
|
-
let
|
4210
|
+
let show_if;
|
4211
|
+
let current_block_type_index;
|
4212
|
+
let if_block0;
|
4055
4213
|
let t;
|
4056
|
-
let
|
4214
|
+
let if_block1_anchor;
|
4057
4215
|
let current;
|
4058
4216
|
let mounted;
|
4059
4217
|
let dispose;
|
4218
|
+
const if_block_creators = [create_if_block_2, create_if_block_3, create_else_block$3];
|
4219
|
+
const if_blocks = [];
|
4060
4220
|
|
4061
|
-
|
4062
|
-
|
4063
|
-
|
4064
|
-
|
4065
|
-
|
4066
|
-
|
4067
|
-
backgroundoverlay.$on("click", function () {
|
4068
|
-
if (is_function(/*backgroundClick*/ ctx[18])) /*backgroundClick*/ ctx[18].apply(this, arguments);
|
4069
|
-
});
|
4221
|
+
function select_block_type(ctx, dirty) {
|
4222
|
+
if (show_if == null) show_if = !!isPreview();
|
4223
|
+
if (show_if) return 0;
|
4224
|
+
if (/*useBreakPoint*/ ctx[3]) return 1;
|
4225
|
+
return 2;
|
4226
|
+
}
|
4070
4227
|
|
4071
|
-
|
4228
|
+
current_block_type_index = select_block_type(ctx);
|
4229
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
4230
|
+
let if_block1 = /*visible*/ ctx[16] && create_if_block$5(ctx);
|
4072
4231
|
|
4073
4232
|
return {
|
4074
4233
|
c() {
|
4075
|
-
|
4234
|
+
if_block0.c();
|
4076
4235
|
t = space();
|
4077
|
-
if (
|
4078
|
-
|
4236
|
+
if (if_block1) if_block1.c();
|
4237
|
+
if_block1_anchor = empty();
|
4079
4238
|
},
|
4080
4239
|
l(nodes) {
|
4081
|
-
|
4240
|
+
if_block0.l(nodes);
|
4082
4241
|
t = claim_space(nodes);
|
4083
|
-
if (
|
4084
|
-
|
4242
|
+
if (if_block1) if_block1.l(nodes);
|
4243
|
+
if_block1_anchor = empty();
|
4085
4244
|
},
|
4086
4245
|
m(target, anchor) {
|
4087
|
-
|
4246
|
+
if_blocks[current_block_type_index].m(target, anchor);
|
4088
4247
|
insert_hydration(target, t, anchor);
|
4089
|
-
if (
|
4090
|
-
insert_hydration(target,
|
4248
|
+
if (if_block1) if_block1.m(target, anchor);
|
4249
|
+
insert_hydration(target, if_block1_anchor, anchor);
|
4091
4250
|
current = true;
|
4092
4251
|
|
4093
4252
|
if (!mounted) {
|
4094
4253
|
dispose = listen(window, "keydown", function () {
|
4095
|
-
if (is_function(/*handle_keydown*/ ctx[
|
4254
|
+
if (is_function(/*handle_keydown*/ ctx[17])) /*handle_keydown*/ ctx[17].apply(this, arguments);
|
4096
4255
|
});
|
4097
4256
|
|
4098
4257
|
mounted = true;
|
4099
4258
|
}
|
4100
4259
|
},
|
4101
|
-
p(new_ctx,
|
4260
|
+
p(new_ctx, dirty) {
|
4102
4261
|
ctx = new_ctx;
|
4103
|
-
|
4104
|
-
|
4105
|
-
backgroundoverlay.$set(backgroundoverlay_changes);
|
4262
|
+
let previous_block_index = current_block_type_index;
|
4263
|
+
current_block_type_index = select_block_type(ctx);
|
4106
4264
|
|
4107
|
-
if (
|
4108
|
-
|
4109
|
-
|
4265
|
+
if (current_block_type_index === previous_block_index) {
|
4266
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
4267
|
+
} else {
|
4268
|
+
group_outros();
|
4110
4269
|
|
4111
|
-
|
4112
|
-
|
4270
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
4271
|
+
if_blocks[previous_block_index] = null;
|
4272
|
+
});
|
4273
|
+
|
4274
|
+
check_outros();
|
4275
|
+
if_block0 = if_blocks[current_block_type_index];
|
4276
|
+
|
4277
|
+
if (!if_block0) {
|
4278
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
4279
|
+
if_block0.c();
|
4280
|
+
} else {
|
4281
|
+
if_block0.p(ctx, dirty);
|
4282
|
+
}
|
4283
|
+
|
4284
|
+
transition_in(if_block0, 1);
|
4285
|
+
if_block0.m(t.parentNode, t);
|
4286
|
+
}
|
4287
|
+
|
4288
|
+
if (/*visible*/ ctx[16]) {
|
4289
|
+
if (if_block1) {
|
4290
|
+
if_block1.p(ctx, dirty);
|
4291
|
+
|
4292
|
+
if (dirty[0] & /*visible*/ 65536) {
|
4293
|
+
transition_in(if_block1, 1);
|
4113
4294
|
}
|
4114
4295
|
} else {
|
4115
|
-
|
4116
|
-
|
4117
|
-
transition_in(
|
4118
|
-
|
4296
|
+
if_block1 = create_if_block$5(ctx);
|
4297
|
+
if_block1.c();
|
4298
|
+
transition_in(if_block1, 1);
|
4299
|
+
if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
|
4119
4300
|
}
|
4120
|
-
} else if (
|
4301
|
+
} else if (if_block1) {
|
4121
4302
|
group_outros();
|
4122
4303
|
|
4123
|
-
transition_out(
|
4124
|
-
|
4304
|
+
transition_out(if_block1, 1, 1, () => {
|
4305
|
+
if_block1 = null;
|
4125
4306
|
});
|
4126
4307
|
|
4127
4308
|
check_outros();
|
@@ -4129,20 +4310,20 @@ function create_fragment$t(ctx) {
|
|
4129
4310
|
},
|
4130
4311
|
i(local) {
|
4131
4312
|
if (current) return;
|
4132
|
-
transition_in(
|
4133
|
-
transition_in(
|
4313
|
+
transition_in(if_block0);
|
4314
|
+
transition_in(if_block1);
|
4134
4315
|
current = true;
|
4135
4316
|
},
|
4136
4317
|
o(local) {
|
4137
|
-
transition_out(
|
4138
|
-
transition_out(
|
4318
|
+
transition_out(if_block0);
|
4319
|
+
transition_out(if_block1);
|
4139
4320
|
current = false;
|
4140
4321
|
},
|
4141
4322
|
d(detaching) {
|
4142
|
-
|
4323
|
+
if_blocks[current_block_type_index].d(detaching);
|
4143
4324
|
if (detaching) detach(t);
|
4144
|
-
if (
|
4145
|
-
if (detaching) detach(
|
4325
|
+
if (if_block1) if_block1.d(detaching);
|
4326
|
+
if (detaching) detach(if_block1_anchor);
|
4146
4327
|
mounted = false;
|
4147
4328
|
dispose();
|
4148
4329
|
}
|
@@ -4153,35 +4334,45 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
4153
4334
|
let close;
|
4154
4335
|
let closable;
|
4155
4336
|
let backgroundClick;
|
4156
|
-
let
|
4157
|
-
let
|
4158
|
-
let overwriteElasticity;
|
4159
|
-
let pos;
|
4160
|
-
let transform;
|
4161
|
-
let marginStyle;
|
4337
|
+
let backgroundClickPC;
|
4338
|
+
let backgroundClickSP;
|
4162
4339
|
let handle_keydown;
|
4163
4340
|
let visible;
|
4164
4341
|
let $maximumZindex;
|
4165
|
-
component_subscribe($$self, maximumZindex, $$value => $$invalidate(
|
4342
|
+
component_subscribe($$self, maximumZindex, $$value => $$invalidate(22, $maximumZindex = $$value));
|
4166
4343
|
let { $$slots: slots = {}, $$scope } = $$props;
|
4167
4344
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
4168
4345
|
let { clickEventName = '' } = $$props;
|
4169
4346
|
let { clickEventValue = null } = $$props;
|
4170
|
-
let {
|
4347
|
+
let { useBreakPoint = false } = $$props;
|
4348
|
+
let { placement } = $$props;
|
4349
|
+
let { breakPoint } = $$props;
|
4350
|
+
let { elasticity } = $$props;
|
4171
4351
|
let { animation = 'none' } = $$props;
|
4172
4352
|
let { _style = '' } = $$props;
|
4173
|
-
let { elasticity = 'none' } = $$props;
|
4174
4353
|
let { onClose = { operation: 'closeApp', args: ['button'] } } = $$props;
|
4175
4354
|
let { closeEventName = '' } = $$props;
|
4176
4355
|
let { closeEventValue = null } = $$props;
|
4177
4356
|
let { closeButtonColor = '#000000' } = $$props;
|
4178
4357
|
let { _closeStyle = '' } = $$props;
|
4358
|
+
|
4359
|
+
// モーダル背景の設定
|
4179
4360
|
let backgroundOverlay = DefaultModalPlacement.backgroundOverlay;
|
4361
|
+
|
4362
|
+
let backgroundOverlayPC = DefaultModalPlacement.backgroundOverlay;
|
4363
|
+
let backgroundOverlaySP = DefaultModalPlacement.backgroundOverlay;
|
4364
|
+
|
4365
|
+
// モーダル背景のクリック動作の設定
|
4180
4366
|
let backgroundClickFunction = DefaultModalPlacement.backgroundClick;
|
4367
|
+
|
4368
|
+
let backgroundClickFunctionPC = DefaultModalPlacement.backgroundClick;
|
4369
|
+
let backgroundClickFunctionSP = DefaultModalPlacement.backgroundClick;
|
4370
|
+
let modalStyles = new Set([]);
|
4371
|
+
let transform = getTransform('center');
|
4181
4372
|
let modal;
|
4182
4373
|
|
4183
4374
|
onMount$1(() => {
|
4184
|
-
$$invalidate(
|
4375
|
+
$$invalidate(16, visible = true);
|
4185
4376
|
});
|
4186
4377
|
|
4187
4378
|
onDestroy$1(() => setPreviousFocus());
|
@@ -4189,7 +4380,7 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
4189
4380
|
function div_binding($$value) {
|
4190
4381
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
4191
4382
|
modal = $$value;
|
4192
|
-
$$invalidate(
|
4383
|
+
$$invalidate(15, modal);
|
4193
4384
|
});
|
4194
4385
|
}
|
4195
4386
|
|
@@ -4197,21 +4388,23 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
4197
4388
|
if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
|
4198
4389
|
if ('clickEventName' in $$props) $$invalidate(1, clickEventName = $$props.clickEventName);
|
4199
4390
|
if ('clickEventValue' in $$props) $$invalidate(2, clickEventValue = $$props.clickEventValue);
|
4200
|
-
if ('
|
4201
|
-
if ('
|
4202
|
-
if ('
|
4203
|
-
if ('elasticity' in $$props) $$invalidate(
|
4204
|
-
if ('
|
4205
|
-
if ('
|
4206
|
-
if ('
|
4207
|
-
if ('
|
4208
|
-
if ('
|
4209
|
-
if ('
|
4391
|
+
if ('useBreakPoint' in $$props) $$invalidate(3, useBreakPoint = $$props.useBreakPoint);
|
4392
|
+
if ('placement' in $$props) $$invalidate(24, placement = $$props.placement);
|
4393
|
+
if ('breakPoint' in $$props) $$invalidate(25, breakPoint = $$props.breakPoint);
|
4394
|
+
if ('elasticity' in $$props) $$invalidate(26, elasticity = $$props.elasticity);
|
4395
|
+
if ('animation' in $$props) $$invalidate(4, animation = $$props.animation);
|
4396
|
+
if ('_style' in $$props) $$invalidate(5, _style = $$props._style);
|
4397
|
+
if ('onClose' in $$props) $$invalidate(6, onClose = $$props.onClose);
|
4398
|
+
if ('closeEventName' in $$props) $$invalidate(7, closeEventName = $$props.closeEventName);
|
4399
|
+
if ('closeEventValue' in $$props) $$invalidate(8, closeEventValue = $$props.closeEventValue);
|
4400
|
+
if ('closeButtonColor' in $$props) $$invalidate(9, closeButtonColor = $$props.closeButtonColor);
|
4401
|
+
if ('_closeStyle' in $$props) $$invalidate(10, _closeStyle = $$props._closeStyle);
|
4402
|
+
if ('$$scope' in $$props) $$invalidate(33, $$scope = $$props.$$scope);
|
4210
4403
|
};
|
4211
4404
|
|
4212
4405
|
$$self.$$.update = () => {
|
4213
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, onClose*/
|
4214
|
-
$$invalidate(
|
4406
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, onClose*/ 448) {
|
4407
|
+
$$invalidate(30, close = () => {
|
4215
4408
|
if (closeEventName) {
|
4216
4409
|
send_event(closeEventName, closeEventValue);
|
4217
4410
|
}
|
@@ -4220,28 +4413,46 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
4220
4413
|
});
|
4221
4414
|
}
|
4222
4415
|
|
4223
|
-
if ($$self.$$.dirty & /*onClose*/
|
4224
|
-
$$invalidate(
|
4416
|
+
if ($$self.$$.dirty[0] & /*onClose*/ 64) {
|
4417
|
+
$$invalidate(21, closable = haveFunction(onClose));
|
4225
4418
|
}
|
4226
4419
|
|
4227
|
-
if ($$self.$$.dirty & /*placement*/
|
4420
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 50331656) {
|
4228
4421
|
{
|
4229
|
-
|
4230
|
-
|
4422
|
+
|
4423
|
+
if (useBreakPoint) {
|
4424
|
+
const pc = breakPoint?.PC?.placement?.backgroundOverlay;
|
4425
|
+
$$invalidate(12, backgroundOverlayPC = pc ?? false);
|
4426
|
+
const sp = breakPoint?.SP?.placement?.backgroundOverlay;
|
4427
|
+
$$invalidate(13, backgroundOverlaySP = sp ?? false);
|
4231
4428
|
}
|
4232
4429
|
}
|
4233
4430
|
}
|
4234
4431
|
|
4235
|
-
if ($$self.$$.dirty & /*placement*/
|
4432
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 50331656) {
|
4236
4433
|
{
|
4237
4434
|
if (placement && placement.backgroundClick) {
|
4238
|
-
$$invalidate(
|
4435
|
+
$$invalidate(27, backgroundClickFunction = placement.backgroundClick);
|
4436
|
+
}
|
4437
|
+
|
4438
|
+
if (useBreakPoint) {
|
4439
|
+
const pc = breakPoint?.PC?.placement?.backgroundClick;
|
4440
|
+
|
4441
|
+
if (pc) {
|
4442
|
+
$$invalidate(28, backgroundClickFunctionPC = pc);
|
4443
|
+
}
|
4444
|
+
|
4445
|
+
const sp = breakPoint?.SP?.placement?.backgroundClick;
|
4446
|
+
|
4447
|
+
if (sp) {
|
4448
|
+
$$invalidate(29, backgroundClickFunctionSP = sp);
|
4449
|
+
}
|
4239
4450
|
}
|
4240
4451
|
}
|
4241
4452
|
}
|
4242
4453
|
|
4243
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/
|
4244
|
-
$$invalidate(
|
4454
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunction*/ 134218112) {
|
4455
|
+
$$invalidate(20, backgroundClick = () => {
|
4245
4456
|
if (closeEventName) {
|
4246
4457
|
send_event(closeEventName, closeEventValue);
|
4247
4458
|
}
|
@@ -4250,51 +4461,115 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
4250
4461
|
});
|
4251
4462
|
}
|
4252
4463
|
|
4253
|
-
if ($$self.$$.dirty & /*
|
4254
|
-
$$invalidate(
|
4255
|
-
|
4464
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunctionPC*/ 268435840) {
|
4465
|
+
$$invalidate(19, backgroundClickPC = () => {
|
4466
|
+
if (closeEventName) {
|
4467
|
+
send_event(closeEventName, closeEventValue);
|
4468
|
+
}
|
4469
|
+
|
4470
|
+
execOnClickOperation(backgroundClickFunctionPC);
|
4471
|
+
});
|
4256
4472
|
}
|
4257
4473
|
|
4258
|
-
if ($$self.$$.dirty & /*
|
4259
|
-
$$invalidate(
|
4260
|
-
|
4261
|
-
|
4262
|
-
top: '0px',
|
4263
|
-
bottom: '0px'
|
4474
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunctionSP*/ 536871296) {
|
4475
|
+
$$invalidate(18, backgroundClickSP = () => {
|
4476
|
+
if (closeEventName) {
|
4477
|
+
send_event(closeEventName, closeEventValue);
|
4264
4478
|
}
|
4265
|
-
);
|
4266
|
-
}
|
4267
4479
|
|
4268
|
-
|
4269
|
-
|
4480
|
+
execOnClickOperation(backgroundClickFunctionSP);
|
4481
|
+
});
|
4270
4482
|
}
|
4271
4483
|
|
4272
|
-
if ($$self.$$.dirty & /*
|
4273
|
-
|
4484
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 50331656) {
|
4485
|
+
// 表示位置のスタイルとアニメーションの動きを設定
|
4486
|
+
{
|
4487
|
+
// 表示位置のスタイルの設定
|
4488
|
+
let position = DefaultModalPlacement.position;
|
4489
|
+
|
4490
|
+
let positionStyle = getPositionStyle(position);
|
4491
|
+
|
4492
|
+
if (!useBreakPoint) {
|
4493
|
+
modalStyles.add(positionStyle);
|
4494
|
+
}
|
4495
|
+
|
4496
|
+
DEVICE_IDS.forEach(deviceId => {
|
4497
|
+
|
4498
|
+
const positionVariables = stringifyStyleObj(formatObjectKey({
|
4499
|
+
obj: parseStyle(positionStyle),
|
4500
|
+
prefix: '--modal-bp-',
|
4501
|
+
suffix: `-${deviceId.toLowerCase()}`
|
4502
|
+
}));
|
4503
|
+
|
4504
|
+
modalStyles.add(positionVariables);
|
4505
|
+
});
|
4506
|
+
|
4507
|
+
// アニメーションの動きの設定
|
4508
|
+
$$invalidate(14, transform = getTransform(position));
|
4509
|
+
}
|
4274
4510
|
}
|
4275
4511
|
|
4276
|
-
if ($$self.$$.dirty & /*
|
4277
|
-
|
4512
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 50331656) {
|
4513
|
+
// 表示位置の調整のスタイルを設定
|
4514
|
+
{
|
4515
|
+
let margin = DefaultModalPlacement.margin;
|
4516
|
+
|
4517
|
+
let marginStyle = getMarginStyle(margin);
|
4518
|
+
|
4519
|
+
if (!useBreakPoint) {
|
4520
|
+
modalStyles.add(marginStyle);
|
4521
|
+
}
|
4522
|
+
|
4523
|
+
DEVICE_IDS.forEach(deviceId => {
|
4524
|
+
|
4525
|
+
const marginVariables = stringifyStyleObj(formatObjectKey({
|
4526
|
+
obj: parseStyle(marginStyle),
|
4527
|
+
prefix: '--modal-bp-',
|
4528
|
+
suffix: `-${deviceId.toLowerCase()}`
|
4529
|
+
}));
|
4530
|
+
|
4531
|
+
modalStyles.add(marginVariables);
|
4532
|
+
});
|
4533
|
+
}
|
4278
4534
|
}
|
4279
4535
|
|
4280
|
-
if ($$self.$$.dirty & /*
|
4281
|
-
|
4536
|
+
if ($$self.$$.dirty[0] & /*elasticity, useBreakPoint, breakPoint*/ 100663304) {
|
4537
|
+
// 拡大方法のスタイルを設定
|
4538
|
+
{
|
4539
|
+
let elasticStyle = ElasticityStyle['none' ];
|
4540
|
+
|
4541
|
+
if (!useBreakPoint) {
|
4542
|
+
modalStyles.add(elasticStyle);
|
4543
|
+
}
|
4544
|
+
|
4545
|
+
DEVICE_IDS.forEach(deviceId => {
|
4546
|
+
|
4547
|
+
const elasticityVariables = stringifyStyleObj(formatObjectKey({
|
4548
|
+
obj: parseStyle(elasticStyle),
|
4549
|
+
prefix: '--modal-bp-',
|
4550
|
+
suffix: `-${deviceId.toLowerCase()}`
|
4551
|
+
}));
|
4552
|
+
|
4553
|
+
modalStyles.add(elasticityVariables);
|
4554
|
+
});
|
4555
|
+
}
|
4282
4556
|
}
|
4283
4557
|
|
4284
|
-
if ($$self.$$.dirty & /*close*/
|
4285
|
-
$$invalidate(
|
4558
|
+
if ($$self.$$.dirty[0] & /*close*/ 1073741824) {
|
4559
|
+
$$invalidate(17, handle_keydown = handleKeydown({ Escape: close }));
|
4286
4560
|
}
|
4287
4561
|
};
|
4288
4562
|
|
4289
|
-
$$invalidate(
|
4563
|
+
$$invalidate(15, modal = null);
|
4290
4564
|
|
4291
4565
|
// svelteコンポーネントのアニメーションを発火させるためにマウント時にvisibleをtrueにする。
|
4292
|
-
$$invalidate(
|
4566
|
+
$$invalidate(16, visible = false);
|
4293
4567
|
|
4294
4568
|
return [
|
4295
4569
|
onClick,
|
4296
4570
|
clickEventName,
|
4297
4571
|
clickEventValue,
|
4572
|
+
useBreakPoint,
|
4298
4573
|
animation,
|
4299
4574
|
_style,
|
4300
4575
|
onClose,
|
@@ -4303,22 +4578,25 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
4303
4578
|
closeButtonColor,
|
4304
4579
|
_closeStyle,
|
4305
4580
|
backgroundOverlay,
|
4581
|
+
backgroundOverlayPC,
|
4582
|
+
backgroundOverlaySP,
|
4583
|
+
transform,
|
4306
4584
|
modal,
|
4307
4585
|
visible,
|
4308
4586
|
handle_keydown,
|
4309
|
-
|
4310
|
-
|
4311
|
-
pos,
|
4312
|
-
overwriteElasticity,
|
4587
|
+
backgroundClickSP,
|
4588
|
+
backgroundClickPC,
|
4313
4589
|
backgroundClick,
|
4314
4590
|
closable,
|
4315
4591
|
$maximumZindex,
|
4592
|
+
modalStyles,
|
4316
4593
|
placement,
|
4594
|
+
breakPoint,
|
4317
4595
|
elasticity,
|
4318
4596
|
backgroundClickFunction,
|
4597
|
+
backgroundClickFunctionPC,
|
4598
|
+
backgroundClickFunctionSP,
|
4319
4599
|
close,
|
4320
|
-
overwriteMargin,
|
4321
|
-
overwritePosition,
|
4322
4600
|
slots,
|
4323
4601
|
div_binding,
|
4324
4602
|
$$scope
|
@@ -4339,17 +4617,20 @@ class Modal extends SvelteComponent {
|
|
4339
4617
|
onClick: 0,
|
4340
4618
|
clickEventName: 1,
|
4341
4619
|
clickEventValue: 2,
|
4342
|
-
|
4343
|
-
|
4344
|
-
|
4345
|
-
elasticity:
|
4346
|
-
|
4347
|
-
|
4348
|
-
|
4349
|
-
|
4350
|
-
|
4620
|
+
useBreakPoint: 3,
|
4621
|
+
placement: 24,
|
4622
|
+
breakPoint: 25,
|
4623
|
+
elasticity: 26,
|
4624
|
+
animation: 4,
|
4625
|
+
_style: 5,
|
4626
|
+
onClose: 6,
|
4627
|
+
closeEventName: 7,
|
4628
|
+
closeEventValue: 8,
|
4629
|
+
closeButtonColor: 9,
|
4630
|
+
_closeStyle: 10
|
4351
4631
|
},
|
4352
|
-
add_css$q
|
4632
|
+
add_css$q,
|
4633
|
+
[-1, -1]
|
4353
4634
|
);
|
4354
4635
|
}
|
4355
4636
|
}
|
@@ -10905,4 +11186,4 @@ class ImageBlock extends SvelteComponent {
|
|
10905
11186
|
}
|
10906
11187
|
}
|
10907
11188
|
|
10908
|
-
export { ACTION_HOOK_LABEL, Alignments, AnimationStyles, BackgroundSizes, Box, ClipPaths, CodeElement, Countdown, Cursors, DefaultEdgePosition, DefaultFormButtonColor, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexDirections, FlexItem, Fonts, FormCheckBoxes, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYOUT_COMPONENT_NAMES, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestory, onDestroy, onMount, onScroll, onShow, onTime, resetEventHandlers, resetVariables, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, variables, widget };
|
11189
|
+
export { ACTION_HOOK_LABEL, Alignments, AnimationStyles, BackgroundSizes, Box, ClipPaths, CodeElement, Countdown, Cursors, DefaultEdgePosition, DefaultElasticity, DefaultFormButtonColor, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalBreakPoint, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexDirections, FlexItem, Fonts, FormCheckBoxes, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYOUT_COMPONENT_NAMES, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestory, onDestroy, onMount, onScroll, onShow, onTime, resetEventHandlers, resetVariables, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, variables, widget };
|