@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/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
|
*
|
@@ -333,6 +342,8 @@ const ElasticityStyle = {
|
|
333
342
|
horizontal: 'width: 100%',
|
334
343
|
};
|
335
344
|
/** @internal */
|
345
|
+
const DefaultElasticity = 'none';
|
346
|
+
/** @internal */
|
336
347
|
const TextDirections = ['horizontal', 'vertical'];
|
337
348
|
/** @internal */
|
338
349
|
const OnClickOperationOptions = [
|
@@ -571,6 +582,17 @@ const DefaultFormButtonColor = {
|
|
571
582
|
main: '#2aab9f',
|
572
583
|
sub: '#fff',
|
573
584
|
};
|
585
|
+
/** @internal */
|
586
|
+
const DefaultModalBreakPoint = {
|
587
|
+
PC: {
|
588
|
+
placement: DefaultModalPlacement,
|
589
|
+
elasticity: DefaultElasticity,
|
590
|
+
},
|
591
|
+
SP: {
|
592
|
+
placement: DefaultModalPlacement,
|
593
|
+
elasticity: DefaultElasticity,
|
594
|
+
},
|
595
|
+
};
|
574
596
|
|
575
597
|
/**
|
576
598
|
* Store to handle action setting
|
@@ -3272,7 +3294,7 @@ function add_css$r(target) {
|
|
3272
3294
|
}
|
3273
3295
|
|
3274
3296
|
// (50:0) {:else}
|
3275
|
-
function create_else_block$
|
3297
|
+
function create_else_block$4(ctx) {
|
3276
3298
|
let button;
|
3277
3299
|
let current;
|
3278
3300
|
let mounted;
|
@@ -3357,7 +3379,7 @@ function create_else_block$3(ctx) {
|
|
3357
3379
|
}
|
3358
3380
|
|
3359
3381
|
// (46:39)
|
3360
|
-
function create_if_block_2(ctx) {
|
3382
|
+
function create_if_block_2$1(ctx) {
|
3361
3383
|
let div;
|
3362
3384
|
let current;
|
3363
3385
|
const default_slot_template = /*#slots*/ ctx[9].default;
|
@@ -3577,7 +3599,7 @@ function create_fragment$u(ctx) {
|
|
3577
3599
|
let if_block;
|
3578
3600
|
let if_block_anchor;
|
3579
3601
|
let current;
|
3580
|
-
const if_block_creators = [create_if_block$6, create_if_block_1$2, create_if_block_2, create_else_block$
|
3602
|
+
const if_block_creators = [create_if_block$6, create_if_block_1$2, create_if_block_2$1, create_else_block$4];
|
3581
3603
|
const if_blocks = [];
|
3582
3604
|
|
3583
3605
|
function select_block_type(ctx, dirty) {
|
@@ -3728,14 +3750,139 @@ class Button extends SvelteComponent {
|
|
3728
3750
|
/* src/components/Modal.svelte generated by Svelte v3.53.1 */
|
3729
3751
|
|
3730
3752
|
function add_css$q(target) {
|
3731
|
-
append_styles(target, "svelte-
|
3753
|
+
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}}");
|
3732
3754
|
}
|
3733
3755
|
|
3734
|
-
// (
|
3756
|
+
// (265:0) {:else}
|
3757
|
+
function create_else_block$3(ctx) {
|
3758
|
+
let backgroundoverlay;
|
3759
|
+
let current;
|
3760
|
+
|
3761
|
+
backgroundoverlay = new BackgroundOverlay({
|
3762
|
+
props: {
|
3763
|
+
backgroundOverlay: /*backgroundOverlay*/ ctx[11]
|
3764
|
+
}
|
3765
|
+
});
|
3766
|
+
|
3767
|
+
backgroundoverlay.$on("click", function () {
|
3768
|
+
if (is_function(/*backgroundClick*/ ctx[20])) /*backgroundClick*/ ctx[20].apply(this, arguments);
|
3769
|
+
});
|
3770
|
+
|
3771
|
+
return {
|
3772
|
+
c() {
|
3773
|
+
create_component(backgroundoverlay.$$.fragment);
|
3774
|
+
},
|
3775
|
+
m(target, anchor) {
|
3776
|
+
mount_component(backgroundoverlay, target, anchor);
|
3777
|
+
current = true;
|
3778
|
+
},
|
3779
|
+
p(new_ctx, dirty) {
|
3780
|
+
ctx = new_ctx;
|
3781
|
+
const backgroundoverlay_changes = {};
|
3782
|
+
if (dirty[0] & /*backgroundOverlay*/ 2048) backgroundoverlay_changes.backgroundOverlay = /*backgroundOverlay*/ ctx[11];
|
3783
|
+
backgroundoverlay.$set(backgroundoverlay_changes);
|
3784
|
+
},
|
3785
|
+
i(local) {
|
3786
|
+
if (current) return;
|
3787
|
+
transition_in(backgroundoverlay.$$.fragment, local);
|
3788
|
+
current = true;
|
3789
|
+
},
|
3790
|
+
o(local) {
|
3791
|
+
transition_out(backgroundoverlay.$$.fragment, local);
|
3792
|
+
current = false;
|
3793
|
+
},
|
3794
|
+
d(detaching) {
|
3795
|
+
destroy_component(backgroundoverlay, detaching);
|
3796
|
+
}
|
3797
|
+
};
|
3798
|
+
}
|
3799
|
+
|
3800
|
+
// (254:24)
|
3801
|
+
function create_if_block_3(ctx) {
|
3802
|
+
let backgroundoverlay0;
|
3803
|
+
let t;
|
3804
|
+
let backgroundoverlay1;
|
3805
|
+
let current;
|
3806
|
+
|
3807
|
+
backgroundoverlay0 = new BackgroundOverlay({
|
3808
|
+
props: {
|
3809
|
+
class: "background-bp-pc",
|
3810
|
+
backgroundOverlay: /*backgroundOverlayPC*/ ctx[12]
|
3811
|
+
}
|
3812
|
+
});
|
3813
|
+
|
3814
|
+
backgroundoverlay0.$on("click", function () {
|
3815
|
+
if (is_function(/*backgroundClickPC*/ ctx[19])) /*backgroundClickPC*/ ctx[19].apply(this, arguments);
|
3816
|
+
});
|
3817
|
+
|
3818
|
+
backgroundoverlay1 = new BackgroundOverlay({
|
3819
|
+
props: {
|
3820
|
+
class: "background-bp-sp ",
|
3821
|
+
backgroundOverlay: /*backgroundOverlaySP*/ ctx[13]
|
3822
|
+
}
|
3823
|
+
});
|
3824
|
+
|
3825
|
+
backgroundoverlay1.$on("click", function () {
|
3826
|
+
if (is_function(/*backgroundClickSP*/ ctx[18])) /*backgroundClickSP*/ ctx[18].apply(this, arguments);
|
3827
|
+
});
|
3828
|
+
|
3829
|
+
return {
|
3830
|
+
c() {
|
3831
|
+
create_component(backgroundoverlay0.$$.fragment);
|
3832
|
+
t = space();
|
3833
|
+
create_component(backgroundoverlay1.$$.fragment);
|
3834
|
+
},
|
3835
|
+
m(target, anchor) {
|
3836
|
+
mount_component(backgroundoverlay0, target, anchor);
|
3837
|
+
insert(target, t, anchor);
|
3838
|
+
mount_component(backgroundoverlay1, target, anchor);
|
3839
|
+
current = true;
|
3840
|
+
},
|
3841
|
+
p(new_ctx, dirty) {
|
3842
|
+
ctx = new_ctx;
|
3843
|
+
const backgroundoverlay0_changes = {};
|
3844
|
+
if (dirty[0] & /*backgroundOverlayPC*/ 4096) backgroundoverlay0_changes.backgroundOverlay = /*backgroundOverlayPC*/ ctx[12];
|
3845
|
+
backgroundoverlay0.$set(backgroundoverlay0_changes);
|
3846
|
+
const backgroundoverlay1_changes = {};
|
3847
|
+
if (dirty[0] & /*backgroundOverlaySP*/ 8192) backgroundoverlay1_changes.backgroundOverlay = /*backgroundOverlaySP*/ ctx[13];
|
3848
|
+
backgroundoverlay1.$set(backgroundoverlay1_changes);
|
3849
|
+
},
|
3850
|
+
i(local) {
|
3851
|
+
if (current) return;
|
3852
|
+
transition_in(backgroundoverlay0.$$.fragment, local);
|
3853
|
+
transition_in(backgroundoverlay1.$$.fragment, local);
|
3854
|
+
current = true;
|
3855
|
+
},
|
3856
|
+
o(local) {
|
3857
|
+
transition_out(backgroundoverlay0.$$.fragment, local);
|
3858
|
+
transition_out(backgroundoverlay1.$$.fragment, local);
|
3859
|
+
current = false;
|
3860
|
+
},
|
3861
|
+
d(detaching) {
|
3862
|
+
destroy_component(backgroundoverlay0, detaching);
|
3863
|
+
if (detaching) detach(t);
|
3864
|
+
destroy_component(backgroundoverlay1, detaching);
|
3865
|
+
}
|
3866
|
+
};
|
3867
|
+
}
|
3868
|
+
|
3869
|
+
// (252:0) {#if isPreview()}
|
3870
|
+
function create_if_block_2(ctx) {
|
3871
|
+
return {
|
3872
|
+
c: noop,
|
3873
|
+
m: noop,
|
3874
|
+
p: noop,
|
3875
|
+
i: noop,
|
3876
|
+
o: noop,
|
3877
|
+
d: noop
|
3878
|
+
};
|
3879
|
+
}
|
3880
|
+
|
3881
|
+
// (268:0) {#if visible}
|
3735
3882
|
function create_if_block$5(ctx) {
|
3736
3883
|
let div;
|
3737
3884
|
let button;
|
3738
|
-
let
|
3885
|
+
let div_class_value;
|
3739
3886
|
let div_intro;
|
3740
3887
|
let current;
|
3741
3888
|
|
@@ -3753,32 +3900,32 @@ function create_if_block$5(ctx) {
|
|
3753
3900
|
c() {
|
3754
3901
|
div = element("div");
|
3755
3902
|
create_component(button.$$.fragment);
|
3756
|
-
attr(div, "class", "modal svelte-
|
3903
|
+
attr(div, "class", div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[3] ? 'modal-bp' : ''].join(' ')) + " svelte-1j0m3x1"));
|
3757
3904
|
attr(div, "role", "dialog");
|
3758
3905
|
attr(div, "aria-modal", "true");
|
3759
|
-
attr(div, "style",
|
3906
|
+
attr(div, "style", Array.from(/*modalStyles*/ ctx[23]).join(';'));
|
3760
3907
|
},
|
3761
3908
|
m(target, anchor) {
|
3762
3909
|
insert(target, div, anchor);
|
3763
3910
|
mount_component(button, div, null);
|
3764
|
-
/*div_binding*/ ctx[
|
3911
|
+
/*div_binding*/ ctx[32](div);
|
3765
3912
|
current = true;
|
3766
3913
|
},
|
3767
3914
|
p(new_ctx, dirty) {
|
3768
3915
|
ctx = new_ctx;
|
3769
3916
|
const button_changes = {};
|
3770
|
-
if (dirty & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
|
3771
|
-
if (dirty & /*clickEventName*/ 2) button_changes.eventName = /*clickEventName*/ ctx[1];
|
3772
|
-
if (dirty & /*clickEventValue*/ 4) button_changes.eventValue = /*clickEventValue*/ ctx[2];
|
3917
|
+
if (dirty[0] & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
|
3918
|
+
if (dirty[0] & /*clickEventName*/ 2) button_changes.eventName = /*clickEventName*/ ctx[1];
|
3919
|
+
if (dirty[0] & /*clickEventValue*/ 4) button_changes.eventValue = /*clickEventValue*/ ctx[2];
|
3773
3920
|
|
3774
|
-
if (dirty &
|
3921
|
+
if (dirty[0] & /*_style, $maximumZindex, onClose, _closeStyle, closeEventName, closeEventValue, closeButtonColor, closable*/ 6293472 | dirty[1] & /*$$scope*/ 4) {
|
3775
3922
|
button_changes.$$scope = { dirty, ctx };
|
3776
3923
|
}
|
3777
3924
|
|
3778
3925
|
button.$set(button_changes);
|
3779
3926
|
|
3780
|
-
if (!current || dirty & /*
|
3781
|
-
attr(div, "
|
3927
|
+
if (!current || dirty[0] & /*useBreakPoint*/ 8 && div_class_value !== (div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[3] ? 'modal-bp' : ''].join(' ')) + " svelte-1j0m3x1"))) {
|
3928
|
+
attr(div, "class", div_class_value);
|
3782
3929
|
}
|
3783
3930
|
},
|
3784
3931
|
i(local) {
|
@@ -3788,8 +3935,8 @@ function create_if_block$5(ctx) {
|
|
3788
3935
|
if (!div_intro) {
|
3789
3936
|
add_render_callback(() => {
|
3790
3937
|
div_intro = create_in_transition(div, customAnimation, {
|
3791
|
-
transform: /*transform*/ ctx[
|
3792
|
-
animationStyle: /*animation*/ ctx[
|
3938
|
+
transform: /*transform*/ ctx[14],
|
3939
|
+
animationStyle: /*animation*/ ctx[4]
|
3793
3940
|
});
|
3794
3941
|
|
3795
3942
|
div_intro.start();
|
@@ -3805,12 +3952,12 @@ function create_if_block$5(ctx) {
|
|
3805
3952
|
d(detaching) {
|
3806
3953
|
if (detaching) detach(div);
|
3807
3954
|
destroy_component(button);
|
3808
|
-
/*div_binding*/ ctx[
|
3955
|
+
/*div_binding*/ ctx[32](null);
|
3809
3956
|
}
|
3810
3957
|
};
|
3811
3958
|
}
|
3812
3959
|
|
3813
|
-
// (
|
3960
|
+
// (281:6) {#if closable}
|
3814
3961
|
function create_if_block_1$1(ctx) {
|
3815
3962
|
let div;
|
3816
3963
|
let button;
|
@@ -3818,10 +3965,10 @@ function create_if_block_1$1(ctx) {
|
|
3818
3965
|
|
3819
3966
|
button = new Button({
|
3820
3967
|
props: {
|
3821
|
-
onClick: /*onClose*/ ctx[
|
3822
|
-
style: /*_closeStyle*/ ctx[
|
3823
|
-
eventName: /*closeEventName*/ ctx[
|
3824
|
-
eventValue: /*closeEventValue*/ ctx[
|
3968
|
+
onClick: /*onClose*/ ctx[6],
|
3969
|
+
style: /*_closeStyle*/ ctx[10],
|
3970
|
+
eventName: /*closeEventName*/ ctx[7],
|
3971
|
+
eventValue: /*closeEventValue*/ ctx[8],
|
3825
3972
|
$$slots: { default: [create_default_slot_1$1] },
|
3826
3973
|
$$scope: { ctx }
|
3827
3974
|
}
|
@@ -3831,8 +3978,8 @@ function create_if_block_1$1(ctx) {
|
|
3831
3978
|
c() {
|
3832
3979
|
div = element("div");
|
3833
3980
|
create_component(button.$$.fragment);
|
3834
|
-
attr(div, "class", "close svelte-
|
3835
|
-
set_style(div, "z-index", /*$maximumZindex*/ ctx[
|
3981
|
+
attr(div, "class", "close svelte-1j0m3x1");
|
3982
|
+
set_style(div, "z-index", /*$maximumZindex*/ ctx[22] + 1);
|
3836
3983
|
},
|
3837
3984
|
m(target, anchor) {
|
3838
3985
|
insert(target, div, anchor);
|
@@ -3841,19 +3988,19 @@ function create_if_block_1$1(ctx) {
|
|
3841
3988
|
},
|
3842
3989
|
p(ctx, dirty) {
|
3843
3990
|
const button_changes = {};
|
3844
|
-
if (dirty & /*onClose*/
|
3845
|
-
if (dirty & /*_closeStyle*/
|
3846
|
-
if (dirty & /*closeEventName*/
|
3847
|
-
if (dirty & /*closeEventValue*/
|
3991
|
+
if (dirty[0] & /*onClose*/ 64) button_changes.onClick = /*onClose*/ ctx[6];
|
3992
|
+
if (dirty[0] & /*_closeStyle*/ 1024) button_changes.style = /*_closeStyle*/ ctx[10];
|
3993
|
+
if (dirty[0] & /*closeEventName*/ 128) button_changes.eventName = /*closeEventName*/ ctx[7];
|
3994
|
+
if (dirty[0] & /*closeEventValue*/ 256) button_changes.eventValue = /*closeEventValue*/ ctx[8];
|
3848
3995
|
|
3849
|
-
if (dirty & /*$$scope
|
3996
|
+
if (dirty[0] & /*closeButtonColor*/ 512 | dirty[1] & /*$$scope*/ 4) {
|
3850
3997
|
button_changes.$$scope = { dirty, ctx };
|
3851
3998
|
}
|
3852
3999
|
|
3853
4000
|
button.$set(button_changes);
|
3854
4001
|
|
3855
|
-
if (!current || dirty & /*$maximumZindex*/
|
3856
|
-
set_style(div, "z-index", /*$maximumZindex*/ ctx[
|
4002
|
+
if (!current || dirty[0] & /*$maximumZindex*/ 4194304) {
|
4003
|
+
set_style(div, "z-index", /*$maximumZindex*/ ctx[22] + 1);
|
3857
4004
|
}
|
3858
4005
|
},
|
3859
4006
|
i(local) {
|
@@ -3872,7 +4019,7 @@ function create_if_block_1$1(ctx) {
|
|
3872
4019
|
};
|
3873
4020
|
}
|
3874
4021
|
|
3875
|
-
// (
|
4022
|
+
// (283:10) <Button onClick={onClose} style={_closeStyle} eventName={closeEventName} eventValue={closeEventValue} >
|
3876
4023
|
function create_default_slot_1$1(ctx) {
|
3877
4024
|
let svg;
|
3878
4025
|
let path;
|
@@ -3882,7 +4029,7 @@ function create_default_slot_1$1(ctx) {
|
|
3882
4029
|
svg = svg_element("svg");
|
3883
4030
|
path = svg_element("path");
|
3884
4031
|
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");
|
3885
|
-
attr(path, "fill", /*closeButtonColor*/ ctx[
|
4032
|
+
attr(path, "fill", /*closeButtonColor*/ ctx[9]);
|
3886
4033
|
attr(path, "fill-opacity", "0.8");
|
3887
4034
|
attr(svg, "width", "100%");
|
3888
4035
|
attr(svg, "height", "100%");
|
@@ -3895,8 +4042,8 @@ function create_default_slot_1$1(ctx) {
|
|
3895
4042
|
append(svg, path);
|
3896
4043
|
},
|
3897
4044
|
p(ctx, dirty) {
|
3898
|
-
if (dirty & /*closeButtonColor*/
|
3899
|
-
attr(path, "fill", /*closeButtonColor*/ ctx[
|
4045
|
+
if (dirty[0] & /*closeButtonColor*/ 512) {
|
4046
|
+
attr(path, "fill", /*closeButtonColor*/ ctx[9]);
|
3900
4047
|
}
|
3901
4048
|
},
|
3902
4049
|
d(detaching) {
|
@@ -3905,14 +4052,14 @@ function create_default_slot_1$1(ctx) {
|
|
3905
4052
|
};
|
3906
4053
|
}
|
3907
4054
|
|
3908
|
-
// (
|
4055
|
+
// (280:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
|
3909
4056
|
function create_default_slot$6(ctx) {
|
3910
4057
|
let t;
|
3911
4058
|
let div;
|
3912
4059
|
let current;
|
3913
|
-
let if_block = /*closable*/ ctx[
|
3914
|
-
const default_slot_template = /*#slots*/ ctx[
|
3915
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
4060
|
+
let if_block = /*closable*/ ctx[21] && create_if_block_1$1(ctx);
|
4061
|
+
const default_slot_template = /*#slots*/ ctx[31].default;
|
4062
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[33], null);
|
3916
4063
|
|
3917
4064
|
return {
|
3918
4065
|
c() {
|
@@ -3920,8 +4067,8 @@ function create_default_slot$6(ctx) {
|
|
3920
4067
|
t = space();
|
3921
4068
|
div = element("div");
|
3922
4069
|
if (default_slot) default_slot.c();
|
3923
|
-
attr(div, "class", "modal-content svelte-
|
3924
|
-
attr(div, "style", /*_style*/ ctx[
|
4070
|
+
attr(div, "class", "modal-content svelte-1j0m3x1");
|
4071
|
+
attr(div, "style", /*_style*/ ctx[5]);
|
3925
4072
|
},
|
3926
4073
|
m(target, anchor) {
|
3927
4074
|
if (if_block) if_block.m(target, anchor);
|
@@ -3935,11 +4082,11 @@ function create_default_slot$6(ctx) {
|
|
3935
4082
|
current = true;
|
3936
4083
|
},
|
3937
4084
|
p(ctx, dirty) {
|
3938
|
-
if (/*closable*/ ctx[
|
4085
|
+
if (/*closable*/ ctx[21]) {
|
3939
4086
|
if (if_block) {
|
3940
4087
|
if_block.p(ctx, dirty);
|
3941
4088
|
|
3942
|
-
if (dirty & /*closable*/
|
4089
|
+
if (dirty[0] & /*closable*/ 2097152) {
|
3943
4090
|
transition_in(if_block, 1);
|
3944
4091
|
}
|
3945
4092
|
} else {
|
@@ -3959,22 +4106,22 @@ function create_default_slot$6(ctx) {
|
|
3959
4106
|
}
|
3960
4107
|
|
3961
4108
|
if (default_slot) {
|
3962
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
4109
|
+
if (default_slot.p && (!current || dirty[1] & /*$$scope*/ 4)) {
|
3963
4110
|
update_slot_base(
|
3964
4111
|
default_slot,
|
3965
4112
|
default_slot_template,
|
3966
4113
|
ctx,
|
3967
|
-
/*$$scope*/ ctx[
|
4114
|
+
/*$$scope*/ ctx[33],
|
3968
4115
|
!current
|
3969
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
3970
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
4116
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[33])
|
4117
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[33], dirty, null),
|
3971
4118
|
null
|
3972
4119
|
);
|
3973
4120
|
}
|
3974
4121
|
}
|
3975
4122
|
|
3976
|
-
if (!current || dirty & /*_style*/
|
3977
|
-
attr(div, "style", /*_style*/ ctx[
|
4123
|
+
if (!current || dirty[0] & /*_style*/ 32) {
|
4124
|
+
attr(div, "style", /*_style*/ ctx[5]);
|
3978
4125
|
}
|
3979
4126
|
},
|
3980
4127
|
i(local) {
|
@@ -3998,71 +4145,96 @@ function create_default_slot$6(ctx) {
|
|
3998
4145
|
}
|
3999
4146
|
|
4000
4147
|
function create_fragment$t(ctx) {
|
4001
|
-
let
|
4148
|
+
let show_if;
|
4149
|
+
let current_block_type_index;
|
4150
|
+
let if_block0;
|
4002
4151
|
let t;
|
4003
|
-
let
|
4152
|
+
let if_block1_anchor;
|
4004
4153
|
let current;
|
4005
4154
|
let mounted;
|
4006
4155
|
let dispose;
|
4156
|
+
const if_block_creators = [create_if_block_2, create_if_block_3, create_else_block$3];
|
4157
|
+
const if_blocks = [];
|
4007
4158
|
|
4008
|
-
|
4009
|
-
|
4010
|
-
|
4011
|
-
|
4012
|
-
|
4013
|
-
|
4014
|
-
backgroundoverlay.$on("click", function () {
|
4015
|
-
if (is_function(/*backgroundClick*/ ctx[18])) /*backgroundClick*/ ctx[18].apply(this, arguments);
|
4016
|
-
});
|
4159
|
+
function select_block_type(ctx, dirty) {
|
4160
|
+
if (show_if == null) show_if = !!isPreview();
|
4161
|
+
if (show_if) return 0;
|
4162
|
+
if (/*useBreakPoint*/ ctx[3]) return 1;
|
4163
|
+
return 2;
|
4164
|
+
}
|
4017
4165
|
|
4018
|
-
|
4166
|
+
current_block_type_index = select_block_type(ctx);
|
4167
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
4168
|
+
let if_block1 = /*visible*/ ctx[16] && create_if_block$5(ctx);
|
4019
4169
|
|
4020
4170
|
return {
|
4021
4171
|
c() {
|
4022
|
-
|
4172
|
+
if_block0.c();
|
4023
4173
|
t = space();
|
4024
|
-
if (
|
4025
|
-
|
4174
|
+
if (if_block1) if_block1.c();
|
4175
|
+
if_block1_anchor = empty();
|
4026
4176
|
},
|
4027
4177
|
m(target, anchor) {
|
4028
|
-
|
4178
|
+
if_blocks[current_block_type_index].m(target, anchor);
|
4029
4179
|
insert(target, t, anchor);
|
4030
|
-
if (
|
4031
|
-
insert(target,
|
4180
|
+
if (if_block1) if_block1.m(target, anchor);
|
4181
|
+
insert(target, if_block1_anchor, anchor);
|
4032
4182
|
current = true;
|
4033
4183
|
|
4034
4184
|
if (!mounted) {
|
4035
4185
|
dispose = listen(window, "keydown", function () {
|
4036
|
-
if (is_function(/*handle_keydown*/ ctx[
|
4186
|
+
if (is_function(/*handle_keydown*/ ctx[17])) /*handle_keydown*/ ctx[17].apply(this, arguments);
|
4037
4187
|
});
|
4038
4188
|
|
4039
4189
|
mounted = true;
|
4040
4190
|
}
|
4041
4191
|
},
|
4042
|
-
p(new_ctx,
|
4192
|
+
p(new_ctx, dirty) {
|
4043
4193
|
ctx = new_ctx;
|
4044
|
-
|
4045
|
-
|
4046
|
-
backgroundoverlay.$set(backgroundoverlay_changes);
|
4194
|
+
let previous_block_index = current_block_type_index;
|
4195
|
+
current_block_type_index = select_block_type(ctx);
|
4047
4196
|
|
4048
|
-
if (
|
4049
|
-
|
4050
|
-
|
4197
|
+
if (current_block_type_index === previous_block_index) {
|
4198
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
4199
|
+
} else {
|
4200
|
+
group_outros();
|
4051
4201
|
|
4052
|
-
|
4053
|
-
|
4202
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
4203
|
+
if_blocks[previous_block_index] = null;
|
4204
|
+
});
|
4205
|
+
|
4206
|
+
check_outros();
|
4207
|
+
if_block0 = if_blocks[current_block_type_index];
|
4208
|
+
|
4209
|
+
if (!if_block0) {
|
4210
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
4211
|
+
if_block0.c();
|
4212
|
+
} else {
|
4213
|
+
if_block0.p(ctx, dirty);
|
4214
|
+
}
|
4215
|
+
|
4216
|
+
transition_in(if_block0, 1);
|
4217
|
+
if_block0.m(t.parentNode, t);
|
4218
|
+
}
|
4219
|
+
|
4220
|
+
if (/*visible*/ ctx[16]) {
|
4221
|
+
if (if_block1) {
|
4222
|
+
if_block1.p(ctx, dirty);
|
4223
|
+
|
4224
|
+
if (dirty[0] & /*visible*/ 65536) {
|
4225
|
+
transition_in(if_block1, 1);
|
4054
4226
|
}
|
4055
4227
|
} else {
|
4056
|
-
|
4057
|
-
|
4058
|
-
transition_in(
|
4059
|
-
|
4228
|
+
if_block1 = create_if_block$5(ctx);
|
4229
|
+
if_block1.c();
|
4230
|
+
transition_in(if_block1, 1);
|
4231
|
+
if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
|
4060
4232
|
}
|
4061
|
-
} else if (
|
4233
|
+
} else if (if_block1) {
|
4062
4234
|
group_outros();
|
4063
4235
|
|
4064
|
-
transition_out(
|
4065
|
-
|
4236
|
+
transition_out(if_block1, 1, 1, () => {
|
4237
|
+
if_block1 = null;
|
4066
4238
|
});
|
4067
4239
|
|
4068
4240
|
check_outros();
|
@@ -4070,20 +4242,20 @@ function create_fragment$t(ctx) {
|
|
4070
4242
|
},
|
4071
4243
|
i(local) {
|
4072
4244
|
if (current) return;
|
4073
|
-
transition_in(
|
4074
|
-
transition_in(
|
4245
|
+
transition_in(if_block0);
|
4246
|
+
transition_in(if_block1);
|
4075
4247
|
current = true;
|
4076
4248
|
},
|
4077
4249
|
o(local) {
|
4078
|
-
transition_out(
|
4079
|
-
transition_out(
|
4250
|
+
transition_out(if_block0);
|
4251
|
+
transition_out(if_block1);
|
4080
4252
|
current = false;
|
4081
4253
|
},
|
4082
4254
|
d(detaching) {
|
4083
|
-
|
4255
|
+
if_blocks[current_block_type_index].d(detaching);
|
4084
4256
|
if (detaching) detach(t);
|
4085
|
-
if (
|
4086
|
-
if (detaching) detach(
|
4257
|
+
if (if_block1) if_block1.d(detaching);
|
4258
|
+
if (detaching) detach(if_block1_anchor);
|
4087
4259
|
mounted = false;
|
4088
4260
|
dispose();
|
4089
4261
|
}
|
@@ -4094,35 +4266,45 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
4094
4266
|
let close;
|
4095
4267
|
let closable;
|
4096
4268
|
let backgroundClick;
|
4097
|
-
let
|
4098
|
-
let
|
4099
|
-
let overwriteElasticity;
|
4100
|
-
let pos;
|
4101
|
-
let transform;
|
4102
|
-
let marginStyle;
|
4269
|
+
let backgroundClickPC;
|
4270
|
+
let backgroundClickSP;
|
4103
4271
|
let handle_keydown;
|
4104
4272
|
let visible;
|
4105
4273
|
let $maximumZindex;
|
4106
|
-
component_subscribe($$self, maximumZindex, $$value => $$invalidate(
|
4274
|
+
component_subscribe($$self, maximumZindex, $$value => $$invalidate(22, $maximumZindex = $$value));
|
4107
4275
|
let { $$slots: slots = {}, $$scope } = $$props;
|
4108
4276
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
4109
4277
|
let { clickEventName = '' } = $$props;
|
4110
4278
|
let { clickEventValue = null } = $$props;
|
4111
|
-
let {
|
4279
|
+
let { useBreakPoint = false } = $$props;
|
4280
|
+
let { placement } = $$props;
|
4281
|
+
let { breakPoint } = $$props;
|
4282
|
+
let { elasticity } = $$props;
|
4112
4283
|
let { animation = 'none' } = $$props;
|
4113
4284
|
let { _style = '' } = $$props;
|
4114
|
-
let { elasticity = 'none' } = $$props;
|
4115
4285
|
let { onClose = { operation: 'closeApp', args: ['button'] } } = $$props;
|
4116
4286
|
let { closeEventName = '' } = $$props;
|
4117
4287
|
let { closeEventValue = null } = $$props;
|
4118
4288
|
let { closeButtonColor = '#000000' } = $$props;
|
4119
4289
|
let { _closeStyle = '' } = $$props;
|
4290
|
+
|
4291
|
+
// モーダル背景の設定
|
4120
4292
|
let backgroundOverlay = DefaultModalPlacement.backgroundOverlay;
|
4293
|
+
|
4294
|
+
let backgroundOverlayPC = DefaultModalPlacement.backgroundOverlay;
|
4295
|
+
let backgroundOverlaySP = DefaultModalPlacement.backgroundOverlay;
|
4296
|
+
|
4297
|
+
// モーダル背景のクリック動作の設定
|
4121
4298
|
let backgroundClickFunction = DefaultModalPlacement.backgroundClick;
|
4299
|
+
|
4300
|
+
let backgroundClickFunctionPC = DefaultModalPlacement.backgroundClick;
|
4301
|
+
let backgroundClickFunctionSP = DefaultModalPlacement.backgroundClick;
|
4302
|
+
let modalStyles = new Set([]);
|
4303
|
+
let transform = getTransform('center');
|
4122
4304
|
let modal;
|
4123
4305
|
|
4124
4306
|
onMount$1(() => {
|
4125
|
-
$$invalidate(
|
4307
|
+
$$invalidate(16, visible = true);
|
4126
4308
|
});
|
4127
4309
|
|
4128
4310
|
onDestroy$1(() => setPreviousFocus());
|
@@ -4130,7 +4312,7 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
4130
4312
|
function div_binding($$value) {
|
4131
4313
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
4132
4314
|
modal = $$value;
|
4133
|
-
$$invalidate(
|
4315
|
+
$$invalidate(15, modal);
|
4134
4316
|
});
|
4135
4317
|
}
|
4136
4318
|
|
@@ -4138,21 +4320,23 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
4138
4320
|
if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
|
4139
4321
|
if ('clickEventName' in $$props) $$invalidate(1, clickEventName = $$props.clickEventName);
|
4140
4322
|
if ('clickEventValue' in $$props) $$invalidate(2, clickEventValue = $$props.clickEventValue);
|
4141
|
-
if ('
|
4142
|
-
if ('
|
4143
|
-
if ('
|
4144
|
-
if ('elasticity' in $$props) $$invalidate(
|
4145
|
-
if ('
|
4146
|
-
if ('
|
4147
|
-
if ('
|
4148
|
-
if ('
|
4149
|
-
if ('
|
4150
|
-
if ('
|
4323
|
+
if ('useBreakPoint' in $$props) $$invalidate(3, useBreakPoint = $$props.useBreakPoint);
|
4324
|
+
if ('placement' in $$props) $$invalidate(24, placement = $$props.placement);
|
4325
|
+
if ('breakPoint' in $$props) $$invalidate(25, breakPoint = $$props.breakPoint);
|
4326
|
+
if ('elasticity' in $$props) $$invalidate(26, elasticity = $$props.elasticity);
|
4327
|
+
if ('animation' in $$props) $$invalidate(4, animation = $$props.animation);
|
4328
|
+
if ('_style' in $$props) $$invalidate(5, _style = $$props._style);
|
4329
|
+
if ('onClose' in $$props) $$invalidate(6, onClose = $$props.onClose);
|
4330
|
+
if ('closeEventName' in $$props) $$invalidate(7, closeEventName = $$props.closeEventName);
|
4331
|
+
if ('closeEventValue' in $$props) $$invalidate(8, closeEventValue = $$props.closeEventValue);
|
4332
|
+
if ('closeButtonColor' in $$props) $$invalidate(9, closeButtonColor = $$props.closeButtonColor);
|
4333
|
+
if ('_closeStyle' in $$props) $$invalidate(10, _closeStyle = $$props._closeStyle);
|
4334
|
+
if ('$$scope' in $$props) $$invalidate(33, $$scope = $$props.$$scope);
|
4151
4335
|
};
|
4152
4336
|
|
4153
4337
|
$$self.$$.update = () => {
|
4154
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, onClose*/
|
4155
|
-
$$invalidate(
|
4338
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, onClose*/ 448) {
|
4339
|
+
$$invalidate(30, close = () => {
|
4156
4340
|
if (closeEventName) {
|
4157
4341
|
send_event(closeEventName, closeEventValue);
|
4158
4342
|
}
|
@@ -4161,28 +4345,49 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
4161
4345
|
});
|
4162
4346
|
}
|
4163
4347
|
|
4164
|
-
if ($$self.$$.dirty & /*onClose*/
|
4165
|
-
$$invalidate(
|
4348
|
+
if ($$self.$$.dirty[0] & /*onClose*/ 64) {
|
4349
|
+
$$invalidate(21, closable = haveFunction(onClose));
|
4166
4350
|
}
|
4167
4351
|
|
4168
|
-
if ($$self.$$.dirty & /*placement*/
|
4352
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 50331656) {
|
4169
4353
|
{
|
4170
4354
|
if (placement && placement.backgroundOverlay) {
|
4171
|
-
$$invalidate(
|
4355
|
+
$$invalidate(11, backgroundOverlay = placement.backgroundOverlay);
|
4356
|
+
}
|
4357
|
+
|
4358
|
+
if (useBreakPoint) {
|
4359
|
+
const pc = breakPoint?.PC?.placement?.backgroundOverlay;
|
4360
|
+
$$invalidate(12, backgroundOverlayPC = pc ?? false);
|
4361
|
+
const sp = breakPoint?.SP?.placement?.backgroundOverlay;
|
4362
|
+
$$invalidate(13, backgroundOverlaySP = sp ?? false);
|
4172
4363
|
}
|
4173
4364
|
}
|
4174
4365
|
}
|
4175
4366
|
|
4176
|
-
if ($$self.$$.dirty & /*placement*/
|
4367
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 50331656) {
|
4177
4368
|
{
|
4178
4369
|
if (placement && placement.backgroundClick) {
|
4179
|
-
$$invalidate(
|
4370
|
+
$$invalidate(27, backgroundClickFunction = placement.backgroundClick);
|
4371
|
+
}
|
4372
|
+
|
4373
|
+
if (useBreakPoint) {
|
4374
|
+
const pc = breakPoint?.PC?.placement?.backgroundClick;
|
4375
|
+
|
4376
|
+
if (pc) {
|
4377
|
+
$$invalidate(28, backgroundClickFunctionPC = pc);
|
4378
|
+
}
|
4379
|
+
|
4380
|
+
const sp = breakPoint?.SP?.placement?.backgroundClick;
|
4381
|
+
|
4382
|
+
if (sp) {
|
4383
|
+
$$invalidate(29, backgroundClickFunctionSP = sp);
|
4384
|
+
}
|
4180
4385
|
}
|
4181
4386
|
}
|
4182
4387
|
}
|
4183
4388
|
|
4184
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/
|
4185
|
-
$$invalidate(
|
4389
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunction*/ 134218112) {
|
4390
|
+
$$invalidate(20, backgroundClick = () => {
|
4186
4391
|
if (closeEventName) {
|
4187
4392
|
send_event(closeEventName, closeEventValue);
|
4188
4393
|
}
|
@@ -4191,48 +4396,135 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
4191
4396
|
});
|
4192
4397
|
}
|
4193
4398
|
|
4194
|
-
if ($$self.$$.dirty & /*
|
4195
|
-
$$invalidate(
|
4196
|
-
|
4197
|
-
|
4198
|
-
|
4399
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunctionPC*/ 268435840) {
|
4400
|
+
$$invalidate(19, backgroundClickPC = () => {
|
4401
|
+
if (closeEventName) {
|
4402
|
+
send_event(closeEventName, closeEventValue);
|
4403
|
+
}
|
4199
4404
|
|
4200
|
-
|
4201
|
-
|
4202
|
-
? placement.margin
|
4203
|
-
: DefaultModalPlacement.margin);
|
4405
|
+
execOnClickOperation(backgroundClickFunctionPC);
|
4406
|
+
});
|
4204
4407
|
}
|
4205
4408
|
|
4206
|
-
if ($$self.$$.dirty & /*
|
4207
|
-
$$invalidate(
|
4409
|
+
if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunctionSP*/ 536871296) {
|
4410
|
+
$$invalidate(18, backgroundClickSP = () => {
|
4411
|
+
if (closeEventName) {
|
4412
|
+
send_event(closeEventName, closeEventValue);
|
4413
|
+
}
|
4414
|
+
|
4415
|
+
execOnClickOperation(backgroundClickFunctionSP);
|
4416
|
+
});
|
4208
4417
|
}
|
4209
4418
|
|
4210
|
-
if ($$self.$$.dirty & /*
|
4211
|
-
|
4419
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 50331656) {
|
4420
|
+
// 表示位置のスタイルとアニメーションの動きを設定
|
4421
|
+
{
|
4422
|
+
// 表示位置のスタイルの設定
|
4423
|
+
let position = DefaultModalPlacement.position;
|
4424
|
+
|
4425
|
+
if (placement && placement.position !== null) {
|
4426
|
+
position = placement.position;
|
4427
|
+
}
|
4428
|
+
|
4429
|
+
let positionStyle = getPositionStyle(position);
|
4430
|
+
|
4431
|
+
if (!useBreakPoint) {
|
4432
|
+
modalStyles.add(positionStyle);
|
4433
|
+
}
|
4434
|
+
|
4435
|
+
DEVICE_IDS.forEach(deviceId => {
|
4436
|
+
if (useBreakPoint) {
|
4437
|
+
const positionWithBp = breakPoint[deviceId]?.placement?.position;
|
4438
|
+
positionStyle = getPositionStyle(positionWithBp);
|
4439
|
+
}
|
4440
|
+
|
4441
|
+
const positionVariables = stringifyStyleObj(formatObjectKey({
|
4442
|
+
obj: parseStyle(positionStyle),
|
4443
|
+
prefix: '--modal-bp-',
|
4444
|
+
suffix: `-${deviceId.toLowerCase()}`
|
4445
|
+
}));
|
4446
|
+
|
4447
|
+
modalStyles.add(positionVariables);
|
4448
|
+
});
|
4449
|
+
|
4450
|
+
// アニメーションの動きの設定
|
4451
|
+
$$invalidate(14, transform = getTransform(position));
|
4452
|
+
}
|
4212
4453
|
}
|
4213
4454
|
|
4214
|
-
if ($$self.$$.dirty & /*
|
4215
|
-
|
4455
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 50331656) {
|
4456
|
+
// 表示位置の調整のスタイルを設定
|
4457
|
+
{
|
4458
|
+
let margin = DefaultModalPlacement.margin;
|
4459
|
+
|
4460
|
+
if (placement && placement.margin !== null) {
|
4461
|
+
margin = placement.margin;
|
4462
|
+
}
|
4463
|
+
|
4464
|
+
let marginStyle = getMarginStyle(margin);
|
4465
|
+
|
4466
|
+
if (!useBreakPoint) {
|
4467
|
+
modalStyles.add(marginStyle);
|
4468
|
+
}
|
4469
|
+
|
4470
|
+
DEVICE_IDS.forEach(deviceId => {
|
4471
|
+
if (useBreakPoint) {
|
4472
|
+
const marginWithBp = breakPoint[deviceId]?.placement?.margin;
|
4473
|
+
marginStyle = getMarginStyle(marginWithBp);
|
4474
|
+
}
|
4475
|
+
|
4476
|
+
const marginVariables = stringifyStyleObj(formatObjectKey({
|
4477
|
+
obj: parseStyle(marginStyle),
|
4478
|
+
prefix: '--modal-bp-',
|
4479
|
+
suffix: `-${deviceId.toLowerCase()}`
|
4480
|
+
}));
|
4481
|
+
|
4482
|
+
modalStyles.add(marginVariables);
|
4483
|
+
});
|
4484
|
+
}
|
4216
4485
|
}
|
4217
4486
|
|
4218
|
-
if ($$self.$$.dirty & /*
|
4219
|
-
|
4487
|
+
if ($$self.$$.dirty[0] & /*elasticity, useBreakPoint, breakPoint*/ 100663304) {
|
4488
|
+
// 拡大方法のスタイルを設定
|
4489
|
+
{
|
4490
|
+
let elasticStyle = ElasticityStyle[elasticity];
|
4491
|
+
|
4492
|
+
if (!useBreakPoint) {
|
4493
|
+
modalStyles.add(elasticStyle);
|
4494
|
+
}
|
4495
|
+
|
4496
|
+
DEVICE_IDS.forEach(deviceId => {
|
4497
|
+
if (useBreakPoint) {
|
4498
|
+
const elasticityWithBp = breakPoint[deviceId]?.elasticity;
|
4499
|
+
elasticStyle = ElasticityStyle[elasticityWithBp];
|
4500
|
+
}
|
4501
|
+
|
4502
|
+
const elasticityVariables = stringifyStyleObj(formatObjectKey({
|
4503
|
+
obj: parseStyle(elasticStyle),
|
4504
|
+
prefix: '--modal-bp-',
|
4505
|
+
suffix: `-${deviceId.toLowerCase()}`
|
4506
|
+
}));
|
4507
|
+
|
4508
|
+
modalStyles.add(elasticityVariables);
|
4509
|
+
});
|
4510
|
+
}
|
4220
4511
|
}
|
4221
4512
|
|
4222
|
-
if ($$self.$$.dirty & /*close*/
|
4223
|
-
$$invalidate(
|
4513
|
+
if ($$self.$$.dirty[0] & /*close*/ 1073741824) {
|
4514
|
+
$$invalidate(17, handle_keydown = handleKeydown({ Escape: close }));
|
4224
4515
|
}
|
4225
4516
|
};
|
4226
4517
|
|
4227
|
-
$$invalidate(
|
4518
|
+
$$invalidate(15, modal = null);
|
4228
4519
|
|
4229
4520
|
// svelteコンポーネントのアニメーションを発火させるためにマウント時にvisibleをtrueにする。
|
4230
|
-
$$invalidate(
|
4521
|
+
$$invalidate(16, visible = false);
|
4231
4522
|
|
4232
4523
|
return [
|
4233
4524
|
onClick,
|
4234
4525
|
clickEventName,
|
4235
4526
|
clickEventValue,
|
4527
|
+
useBreakPoint,
|
4236
4528
|
animation,
|
4237
4529
|
_style,
|
4238
4530
|
onClose,
|
@@ -4241,22 +4533,25 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
4241
4533
|
closeButtonColor,
|
4242
4534
|
_closeStyle,
|
4243
4535
|
backgroundOverlay,
|
4536
|
+
backgroundOverlayPC,
|
4537
|
+
backgroundOverlaySP,
|
4538
|
+
transform,
|
4244
4539
|
modal,
|
4245
4540
|
visible,
|
4246
4541
|
handle_keydown,
|
4247
|
-
|
4248
|
-
|
4249
|
-
pos,
|
4250
|
-
overwriteElasticity,
|
4542
|
+
backgroundClickSP,
|
4543
|
+
backgroundClickPC,
|
4251
4544
|
backgroundClick,
|
4252
4545
|
closable,
|
4253
4546
|
$maximumZindex,
|
4547
|
+
modalStyles,
|
4254
4548
|
placement,
|
4549
|
+
breakPoint,
|
4255
4550
|
elasticity,
|
4256
4551
|
backgroundClickFunction,
|
4552
|
+
backgroundClickFunctionPC,
|
4553
|
+
backgroundClickFunctionSP,
|
4257
4554
|
close,
|
4258
|
-
overwriteMargin,
|
4259
|
-
overwritePosition,
|
4260
4555
|
slots,
|
4261
4556
|
div_binding,
|
4262
4557
|
$$scope
|
@@ -4277,17 +4572,20 @@ class Modal extends SvelteComponent {
|
|
4277
4572
|
onClick: 0,
|
4278
4573
|
clickEventName: 1,
|
4279
4574
|
clickEventValue: 2,
|
4280
|
-
|
4281
|
-
|
4282
|
-
|
4283
|
-
elasticity:
|
4284
|
-
|
4285
|
-
|
4286
|
-
|
4287
|
-
|
4288
|
-
|
4575
|
+
useBreakPoint: 3,
|
4576
|
+
placement: 24,
|
4577
|
+
breakPoint: 25,
|
4578
|
+
elasticity: 26,
|
4579
|
+
animation: 4,
|
4580
|
+
_style: 5,
|
4581
|
+
onClose: 6,
|
4582
|
+
closeEventName: 7,
|
4583
|
+
closeEventValue: 8,
|
4584
|
+
closeButtonColor: 9,
|
4585
|
+
_closeStyle: 10
|
4289
4586
|
},
|
4290
|
-
add_css$q
|
4587
|
+
add_css$q,
|
4588
|
+
[-1, -1]
|
4291
4589
|
);
|
4292
4590
|
}
|
4293
4591
|
}
|
@@ -10256,4 +10554,4 @@ class ImageBlock extends SvelteComponent {
|
|
10256
10554
|
}
|
10257
10555
|
}
|
10258
10556
|
|
10259
|
-
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 };
|
10557
|
+
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 };
|