@plaidev/karte-action-sdk 1.0.34 → 1.0.37
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/index.es.d.ts +3 -3
- package/dist/index.es.js +228 -150
- package/package.json +1 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -165,12 +165,12 @@ type ModalMargin = {
|
|
|
165
165
|
top?: string;
|
|
166
166
|
bottom?: string;
|
|
167
167
|
};
|
|
168
|
-
type ModalPlacement = {
|
|
168
|
+
type ModalPlacement<M = ModalMargin> = {
|
|
169
169
|
position?: ModalPosition;
|
|
170
|
-
margin?:
|
|
170
|
+
margin?: M;
|
|
171
171
|
backgroundOverlay?: boolean;
|
|
172
172
|
};
|
|
173
|
-
declare const DefaultModalPlacement: ModalPlacement
|
|
173
|
+
declare const DefaultModalPlacement: Required<ModalPlacement<Required<ModalMargin>>>;
|
|
174
174
|
type LongText = string;
|
|
175
175
|
type Url = string;
|
|
176
176
|
type Image = string;
|
package/dist/index.es.js
CHANGED
|
@@ -873,7 +873,7 @@ function add_css$6(target) {
|
|
|
873
873
|
append_styles(target, "svelte-1bxl6mz", ".modal.svelte-1bxl6mz{position:fixed;box-sizing:border-box;z-index:2147483647}.close.svelte-1bxl6mz{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-1bxl6mz:hover{transform:rotate(90deg)}");
|
|
874
874
|
}
|
|
875
875
|
|
|
876
|
-
// (
|
|
876
|
+
// (116:4) {#if closable}
|
|
877
877
|
function create_if_block(ctx) {
|
|
878
878
|
let button;
|
|
879
879
|
let svg;
|
|
@@ -904,7 +904,7 @@ function create_if_block(ctx) {
|
|
|
904
904
|
append(svg, path);
|
|
905
905
|
|
|
906
906
|
if (!mounted) {
|
|
907
|
-
dispose = listen(button, "click", /*close*/ ctx[
|
|
907
|
+
dispose = listen(button, "click", /*close*/ ctx[11]);
|
|
908
908
|
mounted = true;
|
|
909
909
|
}
|
|
910
910
|
},
|
|
@@ -925,15 +925,17 @@ function create_if_block(ctx) {
|
|
|
925
925
|
};
|
|
926
926
|
}
|
|
927
927
|
|
|
928
|
-
// (
|
|
928
|
+
// (103:0) <Animation {animation}>
|
|
929
929
|
function create_default_slot$1(ctx) {
|
|
930
930
|
let div;
|
|
931
931
|
let t;
|
|
932
932
|
let div_style_value;
|
|
933
933
|
let current;
|
|
934
|
+
let mounted;
|
|
935
|
+
let dispose;
|
|
934
936
|
let if_block = /*closable*/ ctx[2] && create_if_block(ctx);
|
|
935
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
936
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
937
|
+
const default_slot_template = /*#slots*/ ctx[20].default;
|
|
938
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[22], null);
|
|
937
939
|
|
|
938
940
|
return {
|
|
939
941
|
c() {
|
|
@@ -955,8 +957,13 @@ function create_default_slot$1(ctx) {
|
|
|
955
957
|
default_slot.m(div, null);
|
|
956
958
|
}
|
|
957
959
|
|
|
958
|
-
/*div_binding*/ ctx[
|
|
960
|
+
/*div_binding*/ ctx[21](div);
|
|
959
961
|
current = true;
|
|
962
|
+
|
|
963
|
+
if (!mounted) {
|
|
964
|
+
dispose = listen(div, "click", /*click*/ ctx[10]);
|
|
965
|
+
mounted = true;
|
|
966
|
+
}
|
|
960
967
|
},
|
|
961
968
|
p(ctx, dirty) {
|
|
962
969
|
if (/*closable*/ ctx[2]) {
|
|
@@ -973,15 +980,15 @@ function create_default_slot$1(ctx) {
|
|
|
973
980
|
}
|
|
974
981
|
|
|
975
982
|
if (default_slot) {
|
|
976
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
983
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 4194304)) {
|
|
977
984
|
update_slot_base(
|
|
978
985
|
default_slot,
|
|
979
986
|
default_slot_template,
|
|
980
987
|
ctx,
|
|
981
|
-
/*$$scope*/ ctx[
|
|
988
|
+
/*$$scope*/ ctx[22],
|
|
982
989
|
!current
|
|
983
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
984
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
990
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[22])
|
|
991
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[22], dirty, null),
|
|
985
992
|
null
|
|
986
993
|
);
|
|
987
994
|
}
|
|
@@ -1004,7 +1011,9 @@ function create_default_slot$1(ctx) {
|
|
|
1004
1011
|
if (detaching) detach(div);
|
|
1005
1012
|
if (if_block) if_block.d();
|
|
1006
1013
|
if (default_slot) default_slot.d(detaching);
|
|
1007
|
-
/*div_binding*/ ctx[
|
|
1014
|
+
/*div_binding*/ ctx[21](null);
|
|
1015
|
+
mounted = false;
|
|
1016
|
+
dispose();
|
|
1008
1017
|
}
|
|
1009
1018
|
};
|
|
1010
1019
|
}
|
|
@@ -1023,7 +1032,7 @@ function create_fragment$8(ctx) {
|
|
|
1023
1032
|
}
|
|
1024
1033
|
});
|
|
1025
1034
|
|
|
1026
|
-
backgroundoverray.$on("click", /*close*/ ctx[
|
|
1035
|
+
backgroundoverray.$on("click", /*close*/ ctx[11]);
|
|
1027
1036
|
|
|
1028
1037
|
animation_1 = new Animation({
|
|
1029
1038
|
props: {
|
|
@@ -1046,7 +1055,7 @@ function create_fragment$8(ctx) {
|
|
|
1046
1055
|
current = true;
|
|
1047
1056
|
|
|
1048
1057
|
if (!mounted) {
|
|
1049
|
-
dispose = listen(window, "keydown", /*handle_keydown*/ ctx[
|
|
1058
|
+
dispose = listen(window, "keydown", /*handle_keydown*/ ctx[12]);
|
|
1050
1059
|
mounted = true;
|
|
1051
1060
|
}
|
|
1052
1061
|
},
|
|
@@ -1057,7 +1066,7 @@ function create_fragment$8(ctx) {
|
|
|
1057
1066
|
const animation_1_changes = {};
|
|
1058
1067
|
if (dirty & /*animation*/ 1) animation_1_changes.animation = /*animation*/ ctx[0];
|
|
1059
1068
|
|
|
1060
|
-
if (dirty & /*$$scope, pos, marginStyle, _style, modal, $maximumZindex, _closeStyle, closeButtonColor, closable*/
|
|
1069
|
+
if (dirty & /*$$scope, pos, marginStyle, _style, modal, $maximumZindex, _closeStyle, closeButtonColor, closable*/ 4195070) {
|
|
1061
1070
|
animation_1_changes.$$scope = { dirty, ctx };
|
|
1062
1071
|
}
|
|
1063
1072
|
|
|
@@ -1093,28 +1102,40 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
1093
1102
|
let $maximumZindex;
|
|
1094
1103
|
component_subscribe($$self, maximumZindex, $$value => $$invalidate(9, $maximumZindex = $$value));
|
|
1095
1104
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
1105
|
+
const dispatchClick = createEventDispatcher();
|
|
1106
|
+
|
|
1107
|
+
const click = () => {
|
|
1108
|
+
if (clickEventName) {
|
|
1109
|
+
send_event(clickEventName, clickEventValue);
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
dispatchClick('click');
|
|
1113
|
+
};
|
|
1114
|
+
|
|
1115
|
+
let { clickEventName = '' } = $$props;
|
|
1116
|
+
let { clickEventValue = null } = $$props;
|
|
1096
1117
|
let { placement = DefaultModalPlacement } = $$props;
|
|
1097
1118
|
let { animation = 'none' } = $$props;
|
|
1098
1119
|
let { _style = '' } = $$props;
|
|
1099
1120
|
let { closable = true } = $$props;
|
|
1100
|
-
let { closeButtonColor = '#000000' } = $$props;
|
|
1101
|
-
let { eventName = '' } = $$props;
|
|
1102
|
-
let { eventValue = null } = $$props;
|
|
1103
|
-
let { _closeStyle = '' } = $$props;
|
|
1104
1121
|
|
|
1105
1122
|
/**
|
|
1106
|
-
* {"title": {"ja": "閉じるボタン", "en": "Close Button"}}
|
|
1123
|
+
* {"title": {"ja": "イベントタイプ", "en": "Event Type"}, "folder": {"ja": "閉じるボタン", "en": "Close Button"}}
|
|
1107
1124
|
*/
|
|
1108
|
-
const
|
|
1125
|
+
const dispatchClose = createEventDispatcher();
|
|
1109
1126
|
|
|
1110
1127
|
const close = () => {
|
|
1111
|
-
if (
|
|
1112
|
-
send_event(
|
|
1128
|
+
if (closeEventName) {
|
|
1129
|
+
send_event(closeEventName, closeEventValue);
|
|
1113
1130
|
}
|
|
1114
1131
|
|
|
1115
|
-
|
|
1132
|
+
dispatchClose('close');
|
|
1116
1133
|
};
|
|
1117
1134
|
|
|
1135
|
+
let { closeButtonColor = '#000000' } = $$props;
|
|
1136
|
+
let { closeEventName = '' } = $$props;
|
|
1137
|
+
let { closeEventValue = null } = $$props;
|
|
1138
|
+
let { _closeStyle = '' } = $$props;
|
|
1118
1139
|
let modal = null;
|
|
1119
1140
|
const handle_keydown = handleKeydown({ Escape: close, Tab: handleFocus(modal) });
|
|
1120
1141
|
onDestroy(() => setPreviousFocus());
|
|
@@ -1127,34 +1148,36 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
1127
1148
|
}
|
|
1128
1149
|
|
|
1129
1150
|
$$self.$$set = $$props => {
|
|
1130
|
-
if ('
|
|
1151
|
+
if ('clickEventName' in $$props) $$invalidate(13, clickEventName = $$props.clickEventName);
|
|
1152
|
+
if ('clickEventValue' in $$props) $$invalidate(14, clickEventValue = $$props.clickEventValue);
|
|
1153
|
+
if ('placement' in $$props) $$invalidate(15, placement = $$props.placement);
|
|
1131
1154
|
if ('animation' in $$props) $$invalidate(0, animation = $$props.animation);
|
|
1132
1155
|
if ('_style' in $$props) $$invalidate(1, _style = $$props._style);
|
|
1133
1156
|
if ('closable' in $$props) $$invalidate(2, closable = $$props.closable);
|
|
1134
1157
|
if ('closeButtonColor' in $$props) $$invalidate(3, closeButtonColor = $$props.closeButtonColor);
|
|
1135
|
-
if ('
|
|
1136
|
-
if ('
|
|
1158
|
+
if ('closeEventName' in $$props) $$invalidate(16, closeEventName = $$props.closeEventName);
|
|
1159
|
+
if ('closeEventValue' in $$props) $$invalidate(17, closeEventValue = $$props.closeEventValue);
|
|
1137
1160
|
if ('_closeStyle' in $$props) $$invalidate(4, _closeStyle = $$props._closeStyle);
|
|
1138
|
-
if ('$$scope' in $$props) $$invalidate(
|
|
1161
|
+
if ('$$scope' in $$props) $$invalidate(22, $$scope = $$props.$$scope);
|
|
1139
1162
|
};
|
|
1140
1163
|
|
|
1141
1164
|
$$self.$$.update = () => {
|
|
1142
|
-
if ($$self.$$.dirty & /*placement*/
|
|
1165
|
+
if ($$self.$$.dirty & /*placement*/ 32768) {
|
|
1143
1166
|
$$invalidate(8, backgroundOverray = placement && placement.backgroundOverlay != null
|
|
1144
1167
|
? placement.backgroundOverlay
|
|
1145
1168
|
: DefaultModalPlacement.backgroundOverlay);
|
|
1146
1169
|
}
|
|
1147
1170
|
|
|
1148
|
-
if ($$self.$$.dirty & /*placement*/
|
|
1149
|
-
$$invalidate(
|
|
1171
|
+
if ($$self.$$.dirty & /*placement*/ 32768) {
|
|
1172
|
+
$$invalidate(19, overwritePosition = isPreview()
|
|
1150
1173
|
? 'center'
|
|
1151
1174
|
: placement && placement.position != null
|
|
1152
1175
|
? placement.position
|
|
1153
1176
|
: DefaultModalPlacement.position);
|
|
1154
1177
|
}
|
|
1155
1178
|
|
|
1156
|
-
if ($$self.$$.dirty & /*placement*/
|
|
1157
|
-
$$invalidate(
|
|
1179
|
+
if ($$self.$$.dirty & /*placement*/ 32768) {
|
|
1180
|
+
$$invalidate(18, overwriteMargin = isPreview()
|
|
1158
1181
|
? {
|
|
1159
1182
|
left: '0px',
|
|
1160
1183
|
right: '0px',
|
|
@@ -1166,11 +1189,11 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
1166
1189
|
: DefaultModalPlacement.margin);
|
|
1167
1190
|
}
|
|
1168
1191
|
|
|
1169
|
-
if ($$self.$$.dirty & /*overwritePosition*/
|
|
1192
|
+
if ($$self.$$.dirty & /*overwritePosition*/ 524288) {
|
|
1170
1193
|
$$invalidate(7, pos = getPositionStyle(overwritePosition));
|
|
1171
1194
|
}
|
|
1172
1195
|
|
|
1173
|
-
if ($$self.$$.dirty & /*overwriteMargin*/
|
|
1196
|
+
if ($$self.$$.dirty & /*overwriteMargin*/ 262144) {
|
|
1174
1197
|
$$invalidate(6, marginStyle = getMarginStyle(overwriteMargin));
|
|
1175
1198
|
}
|
|
1176
1199
|
};
|
|
@@ -1186,11 +1209,14 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
1186
1209
|
pos,
|
|
1187
1210
|
backgroundOverray,
|
|
1188
1211
|
$maximumZindex,
|
|
1212
|
+
click,
|
|
1189
1213
|
close,
|
|
1190
1214
|
handle_keydown,
|
|
1215
|
+
clickEventName,
|
|
1216
|
+
clickEventValue,
|
|
1191
1217
|
placement,
|
|
1192
|
-
|
|
1193
|
-
|
|
1218
|
+
closeEventName,
|
|
1219
|
+
closeEventValue,
|
|
1194
1220
|
overwriteMargin,
|
|
1195
1221
|
overwritePosition,
|
|
1196
1222
|
slots,
|
|
@@ -1210,13 +1236,15 @@ class Modal extends SvelteComponent {
|
|
|
1210
1236
|
create_fragment$8,
|
|
1211
1237
|
safe_not_equal,
|
|
1212
1238
|
{
|
|
1213
|
-
|
|
1239
|
+
clickEventName: 13,
|
|
1240
|
+
clickEventValue: 14,
|
|
1241
|
+
placement: 15,
|
|
1214
1242
|
animation: 0,
|
|
1215
1243
|
_style: 1,
|
|
1216
1244
|
closable: 2,
|
|
1217
1245
|
closeButtonColor: 3,
|
|
1218
|
-
|
|
1219
|
-
|
|
1246
|
+
closeEventName: 16,
|
|
1247
|
+
closeEventValue: 17,
|
|
1220
1248
|
_closeStyle: 4
|
|
1221
1249
|
},
|
|
1222
1250
|
add_css$6
|
|
@@ -1344,8 +1372,8 @@ class Grid extends SvelteComponent {
|
|
|
1344
1372
|
|
|
1345
1373
|
function create_default_slot_2(ctx) {
|
|
1346
1374
|
let current;
|
|
1347
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
1348
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
1375
|
+
const default_slot_template = /*#slots*/ ctx[19].default;
|
|
1376
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[20], null);
|
|
1349
1377
|
|
|
1350
1378
|
return {
|
|
1351
1379
|
c() {
|
|
@@ -1360,15 +1388,15 @@ function create_default_slot_2(ctx) {
|
|
|
1360
1388
|
},
|
|
1361
1389
|
p(ctx, dirty) {
|
|
1362
1390
|
if (default_slot) {
|
|
1363
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
1391
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 1048576)) {
|
|
1364
1392
|
update_slot_base(
|
|
1365
1393
|
default_slot,
|
|
1366
1394
|
default_slot_template,
|
|
1367
1395
|
ctx,
|
|
1368
|
-
/*$$scope*/ ctx[
|
|
1396
|
+
/*$$scope*/ ctx[20],
|
|
1369
1397
|
!current
|
|
1370
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
1371
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
1398
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[20])
|
|
1399
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[20], dirty, null),
|
|
1372
1400
|
null
|
|
1373
1401
|
);
|
|
1374
1402
|
}
|
|
@@ -1389,19 +1417,19 @@ function create_default_slot_2(ctx) {
|
|
|
1389
1417
|
};
|
|
1390
1418
|
}
|
|
1391
1419
|
|
|
1392
|
-
// (
|
|
1420
|
+
// (115:2) <Modal {placement} {animation} {closable} {closeButtonColor} {_closeStyle} _style={_modalStyle} {clickEventName} {clickEventValue} on:click={click} {closeEventName} {closeEventValue} on:close={close} >
|
|
1393
1421
|
function create_default_slot_1(ctx) {
|
|
1394
1422
|
let grid;
|
|
1395
1423
|
let current;
|
|
1396
1424
|
|
|
1397
1425
|
grid = new Grid({
|
|
1398
1426
|
props: {
|
|
1399
|
-
width: /*width*/ ctx[
|
|
1400
|
-
height: /*height*/ ctx[
|
|
1401
|
-
rows: /*rows*/ ctx[
|
|
1402
|
-
columns: /*columns*/ ctx[
|
|
1403
|
-
gap: /*gap*/ ctx[
|
|
1404
|
-
background: /*background*/ ctx[
|
|
1427
|
+
width: /*width*/ ctx[11],
|
|
1428
|
+
height: /*height*/ ctx[12],
|
|
1429
|
+
rows: /*rows*/ ctx[13],
|
|
1430
|
+
columns: /*columns*/ ctx[14],
|
|
1431
|
+
gap: /*gap*/ ctx[15],
|
|
1432
|
+
background: /*background*/ ctx[16],
|
|
1405
1433
|
$$slots: { default: [create_default_slot_2] },
|
|
1406
1434
|
$$scope: { ctx }
|
|
1407
1435
|
}
|
|
@@ -1417,14 +1445,14 @@ function create_default_slot_1(ctx) {
|
|
|
1417
1445
|
},
|
|
1418
1446
|
p(ctx, dirty) {
|
|
1419
1447
|
const grid_changes = {};
|
|
1420
|
-
if (dirty & /*width*/
|
|
1421
|
-
if (dirty & /*height*/
|
|
1422
|
-
if (dirty & /*rows*/
|
|
1423
|
-
if (dirty & /*columns*/
|
|
1424
|
-
if (dirty & /*gap*/
|
|
1425
|
-
if (dirty & /*background*/
|
|
1426
|
-
|
|
1427
|
-
if (dirty & /*$$scope*/
|
|
1448
|
+
if (dirty & /*width*/ 2048) grid_changes.width = /*width*/ ctx[11];
|
|
1449
|
+
if (dirty & /*height*/ 4096) grid_changes.height = /*height*/ ctx[12];
|
|
1450
|
+
if (dirty & /*rows*/ 8192) grid_changes.rows = /*rows*/ ctx[13];
|
|
1451
|
+
if (dirty & /*columns*/ 16384) grid_changes.columns = /*columns*/ ctx[14];
|
|
1452
|
+
if (dirty & /*gap*/ 32768) grid_changes.gap = /*gap*/ ctx[15];
|
|
1453
|
+
if (dirty & /*background*/ 65536) grid_changes.background = /*background*/ ctx[16];
|
|
1454
|
+
|
|
1455
|
+
if (dirty & /*$$scope*/ 1048576) {
|
|
1428
1456
|
grid_changes.$$scope = { dirty, ctx };
|
|
1429
1457
|
}
|
|
1430
1458
|
|
|
@@ -1445,25 +1473,30 @@ function create_default_slot_1(ctx) {
|
|
|
1445
1473
|
};
|
|
1446
1474
|
}
|
|
1447
1475
|
|
|
1448
|
-
// (
|
|
1476
|
+
// (114:0) <StateItem {path}>
|
|
1449
1477
|
function create_default_slot(ctx) {
|
|
1450
1478
|
let modal;
|
|
1451
1479
|
let current;
|
|
1452
1480
|
|
|
1453
1481
|
modal = new Modal({
|
|
1454
1482
|
props: {
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
closable: /*closable*/ ctx[
|
|
1458
|
-
closeButtonColor: /*closeButtonColor*/ ctx[
|
|
1459
|
-
_closeStyle: /*_closeStyle*/ ctx[
|
|
1460
|
-
_style: /*_modalStyle*/ ctx[
|
|
1483
|
+
placement: /*placement*/ ctx[3],
|
|
1484
|
+
animation: /*animation*/ ctx[4],
|
|
1485
|
+
closable: /*closable*/ ctx[6],
|
|
1486
|
+
closeButtonColor: /*closeButtonColor*/ ctx[7],
|
|
1487
|
+
_closeStyle: /*_closeStyle*/ ctx[10],
|
|
1488
|
+
_style: /*_modalStyle*/ ctx[5],
|
|
1489
|
+
clickEventName: /*clickEventName*/ ctx[1],
|
|
1490
|
+
clickEventValue: /*clickEventValue*/ ctx[2],
|
|
1491
|
+
closeEventName: /*closeEventName*/ ctx[8],
|
|
1492
|
+
closeEventValue: /*closeEventValue*/ ctx[9],
|
|
1461
1493
|
$$slots: { default: [create_default_slot_1] },
|
|
1462
1494
|
$$scope: { ctx }
|
|
1463
1495
|
}
|
|
1464
1496
|
});
|
|
1465
1497
|
|
|
1466
|
-
modal.$on("
|
|
1498
|
+
modal.$on("click", /*click*/ ctx[17]);
|
|
1499
|
+
modal.$on("close", /*close*/ ctx[18]);
|
|
1467
1500
|
|
|
1468
1501
|
return {
|
|
1469
1502
|
c() {
|
|
@@ -1475,14 +1508,18 @@ function create_default_slot(ctx) {
|
|
|
1475
1508
|
},
|
|
1476
1509
|
p(ctx, dirty) {
|
|
1477
1510
|
const modal_changes = {};
|
|
1478
|
-
if (dirty & /*
|
|
1479
|
-
if (dirty & /*
|
|
1480
|
-
if (dirty & /*closable*/
|
|
1481
|
-
if (dirty & /*closeButtonColor*/
|
|
1482
|
-
if (dirty & /*_closeStyle*/
|
|
1483
|
-
if (dirty & /*_modalStyle*/
|
|
1484
|
-
|
|
1485
|
-
if (dirty &
|
|
1511
|
+
if (dirty & /*placement*/ 8) modal_changes.placement = /*placement*/ ctx[3];
|
|
1512
|
+
if (dirty & /*animation*/ 16) modal_changes.animation = /*animation*/ ctx[4];
|
|
1513
|
+
if (dirty & /*closable*/ 64) modal_changes.closable = /*closable*/ ctx[6];
|
|
1514
|
+
if (dirty & /*closeButtonColor*/ 128) modal_changes.closeButtonColor = /*closeButtonColor*/ ctx[7];
|
|
1515
|
+
if (dirty & /*_closeStyle*/ 1024) modal_changes._closeStyle = /*_closeStyle*/ ctx[10];
|
|
1516
|
+
if (dirty & /*_modalStyle*/ 32) modal_changes._style = /*_modalStyle*/ ctx[5];
|
|
1517
|
+
if (dirty & /*clickEventName*/ 2) modal_changes.clickEventName = /*clickEventName*/ ctx[1];
|
|
1518
|
+
if (dirty & /*clickEventValue*/ 4) modal_changes.clickEventValue = /*clickEventValue*/ ctx[2];
|
|
1519
|
+
if (dirty & /*closeEventName*/ 256) modal_changes.closeEventName = /*closeEventName*/ ctx[8];
|
|
1520
|
+
if (dirty & /*closeEventValue*/ 512) modal_changes.closeEventValue = /*closeEventValue*/ ctx[9];
|
|
1521
|
+
|
|
1522
|
+
if (dirty & /*$$scope, width, height, rows, columns, gap, background*/ 1177600) {
|
|
1486
1523
|
modal_changes.$$scope = { dirty, ctx };
|
|
1487
1524
|
}
|
|
1488
1525
|
|
|
@@ -1527,7 +1564,7 @@ function create_fragment$6(ctx) {
|
|
|
1527
1564
|
const stateitem_changes = {};
|
|
1528
1565
|
if (dirty & /*path*/ 1) stateitem_changes.path = /*path*/ ctx[0];
|
|
1529
1566
|
|
|
1530
|
-
if (dirty & /*$$scope,
|
|
1567
|
+
if (dirty & /*$$scope, placement, animation, closable, closeButtonColor, _closeStyle, _modalStyle, clickEventName, clickEventValue, closeEventName, closeEventValue, width, height, rows, columns, gap, background*/ 1179646) {
|
|
1531
1568
|
stateitem_changes.$$scope = { dirty, ctx };
|
|
1532
1569
|
}
|
|
1533
1570
|
|
|
@@ -1551,13 +1588,41 @@ function create_fragment$6(ctx) {
|
|
|
1551
1588
|
function instance$6($$self, $$props, $$invalidate) {
|
|
1552
1589
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
1553
1590
|
let { path } = $$props;
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* {
|
|
1594
|
+
* "title": {"ja": "クリック", "en": "Click"},
|
|
1595
|
+
* "folder": {"ja": "全体のクリックイベント", "en": "Whole Click Event"}
|
|
1596
|
+
* }
|
|
1597
|
+
*/
|
|
1598
|
+
const dispatchClick = createEventDispatcher();
|
|
1599
|
+
|
|
1600
|
+
const click = () => {
|
|
1601
|
+
dispatchClick('click');
|
|
1602
|
+
};
|
|
1603
|
+
|
|
1604
|
+
let { clickEventName = '' } = $$props;
|
|
1605
|
+
let { clickEventValue = null } = $$props;
|
|
1554
1606
|
let { placement = DefaultModalPlacement } = $$props;
|
|
1555
1607
|
let { animation = 'none' } = $$props;
|
|
1556
1608
|
let { _modalStyle = '' } = $$props;
|
|
1557
1609
|
let { closable = true } = $$props;
|
|
1558
1610
|
let { closeButtonColor = '#000000' } = $$props;
|
|
1559
|
-
|
|
1560
|
-
|
|
1611
|
+
|
|
1612
|
+
/**
|
|
1613
|
+
* {
|
|
1614
|
+
* "title": {"ja": "クリック", "en": "Click"},
|
|
1615
|
+
* "folder": {"ja": "閉じるボタン", "en": "Close Button"}
|
|
1616
|
+
* }
|
|
1617
|
+
*/
|
|
1618
|
+
const dispatchClose = createEventDispatcher();
|
|
1619
|
+
|
|
1620
|
+
const close = () => {
|
|
1621
|
+
dispatchClose('close');
|
|
1622
|
+
};
|
|
1623
|
+
|
|
1624
|
+
let { closeEventName = '' } = $$props;
|
|
1625
|
+
let { closeEventValue = null } = $$props;
|
|
1561
1626
|
let { _closeStyle = '' } = $$props;
|
|
1562
1627
|
let { width = '512px' } = $$props;
|
|
1563
1628
|
let { height = '256px' } = $$props;
|
|
@@ -1566,41 +1631,38 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
1566
1631
|
let { gap = '0px' } = $$props;
|
|
1567
1632
|
let { background = 'transparent' } = $$props;
|
|
1568
1633
|
|
|
1569
|
-
/**
|
|
1570
|
-
* {"title": {"ja": "閉じるボタン", "en": "Close Button"}}
|
|
1571
|
-
*/
|
|
1572
|
-
const dispatch = createEventDispatcher();
|
|
1573
|
-
|
|
1574
|
-
const close = () => {
|
|
1575
|
-
dispatch('close');
|
|
1576
|
-
};
|
|
1577
|
-
|
|
1578
1634
|
$$self.$$set = $$props => {
|
|
1579
1635
|
if ('path' in $$props) $$invalidate(0, path = $$props.path);
|
|
1580
|
-
if ('
|
|
1581
|
-
if ('
|
|
1582
|
-
if ('
|
|
1583
|
-
if ('
|
|
1584
|
-
if ('
|
|
1585
|
-
if ('
|
|
1586
|
-
if ('
|
|
1587
|
-
if ('
|
|
1588
|
-
if ('
|
|
1589
|
-
if ('
|
|
1590
|
-
if ('
|
|
1591
|
-
if ('
|
|
1592
|
-
if ('
|
|
1593
|
-
if ('
|
|
1594
|
-
if ('
|
|
1636
|
+
if ('clickEventName' in $$props) $$invalidate(1, clickEventName = $$props.clickEventName);
|
|
1637
|
+
if ('clickEventValue' in $$props) $$invalidate(2, clickEventValue = $$props.clickEventValue);
|
|
1638
|
+
if ('placement' in $$props) $$invalidate(3, placement = $$props.placement);
|
|
1639
|
+
if ('animation' in $$props) $$invalidate(4, animation = $$props.animation);
|
|
1640
|
+
if ('_modalStyle' in $$props) $$invalidate(5, _modalStyle = $$props._modalStyle);
|
|
1641
|
+
if ('closable' in $$props) $$invalidate(6, closable = $$props.closable);
|
|
1642
|
+
if ('closeButtonColor' in $$props) $$invalidate(7, closeButtonColor = $$props.closeButtonColor);
|
|
1643
|
+
if ('closeEventName' in $$props) $$invalidate(8, closeEventName = $$props.closeEventName);
|
|
1644
|
+
if ('closeEventValue' in $$props) $$invalidate(9, closeEventValue = $$props.closeEventValue);
|
|
1645
|
+
if ('_closeStyle' in $$props) $$invalidate(10, _closeStyle = $$props._closeStyle);
|
|
1646
|
+
if ('width' in $$props) $$invalidate(11, width = $$props.width);
|
|
1647
|
+
if ('height' in $$props) $$invalidate(12, height = $$props.height);
|
|
1648
|
+
if ('rows' in $$props) $$invalidate(13, rows = $$props.rows);
|
|
1649
|
+
if ('columns' in $$props) $$invalidate(14, columns = $$props.columns);
|
|
1650
|
+
if ('gap' in $$props) $$invalidate(15, gap = $$props.gap);
|
|
1651
|
+
if ('background' in $$props) $$invalidate(16, background = $$props.background);
|
|
1652
|
+
if ('$$scope' in $$props) $$invalidate(20, $$scope = $$props.$$scope);
|
|
1595
1653
|
};
|
|
1596
1654
|
|
|
1597
1655
|
return [
|
|
1598
1656
|
path,
|
|
1657
|
+
clickEventName,
|
|
1658
|
+
clickEventValue,
|
|
1659
|
+
placement,
|
|
1660
|
+
animation,
|
|
1599
1661
|
_modalStyle,
|
|
1600
1662
|
closable,
|
|
1601
1663
|
closeButtonColor,
|
|
1602
|
-
|
|
1603
|
-
|
|
1664
|
+
closeEventName,
|
|
1665
|
+
closeEventValue,
|
|
1604
1666
|
_closeStyle,
|
|
1605
1667
|
width,
|
|
1606
1668
|
height,
|
|
@@ -1608,9 +1670,8 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
1608
1670
|
columns,
|
|
1609
1671
|
gap,
|
|
1610
1672
|
background,
|
|
1673
|
+
click,
|
|
1611
1674
|
close,
|
|
1612
|
-
placement,
|
|
1613
|
-
animation,
|
|
1614
1675
|
slots,
|
|
1615
1676
|
$$scope
|
|
1616
1677
|
];
|
|
@@ -1622,20 +1683,22 @@ class GridModalState extends SvelteComponent {
|
|
|
1622
1683
|
|
|
1623
1684
|
init(this, options, instance$6, create_fragment$6, safe_not_equal, {
|
|
1624
1685
|
path: 0,
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1686
|
+
clickEventName: 1,
|
|
1687
|
+
clickEventValue: 2,
|
|
1688
|
+
placement: 3,
|
|
1689
|
+
animation: 4,
|
|
1690
|
+
_modalStyle: 5,
|
|
1691
|
+
closable: 6,
|
|
1692
|
+
closeButtonColor: 7,
|
|
1693
|
+
closeEventName: 8,
|
|
1694
|
+
closeEventValue: 9,
|
|
1695
|
+
_closeStyle: 10,
|
|
1696
|
+
width: 11,
|
|
1697
|
+
height: 12,
|
|
1698
|
+
rows: 13,
|
|
1699
|
+
columns: 14,
|
|
1700
|
+
gap: 15,
|
|
1701
|
+
background: 16
|
|
1639
1702
|
});
|
|
1640
1703
|
}
|
|
1641
1704
|
}
|
|
@@ -1643,7 +1706,7 @@ class GridModalState extends SvelteComponent {
|
|
|
1643
1706
|
/* src/components/GridItem.svelte generated by Svelte v3.44.1 */
|
|
1644
1707
|
|
|
1645
1708
|
function add_css$5(target) {
|
|
1646
|
-
append_styles(target, "svelte-
|
|
1709
|
+
append_styles(target, "svelte-1pachgk", ".grid-item.svelte-1pachgk{word-break:break-all;overflow:hidden}");
|
|
1647
1710
|
}
|
|
1648
1711
|
|
|
1649
1712
|
function create_fragment$5(ctx) {
|
|
@@ -1656,7 +1719,7 @@ function create_fragment$5(ctx) {
|
|
|
1656
1719
|
c() {
|
|
1657
1720
|
div = element("div");
|
|
1658
1721
|
if (default_slot) default_slot.c();
|
|
1659
|
-
attr(div, "class", "grid-item svelte-
|
|
1722
|
+
attr(div, "class", "grid-item svelte-1pachgk");
|
|
1660
1723
|
attr(div, "style", /*_style*/ ctx[0]);
|
|
1661
1724
|
},
|
|
1662
1725
|
m(target, anchor) {
|
|
@@ -1991,7 +2054,7 @@ class FlexItem extends SvelteComponent {
|
|
|
1991
2054
|
/* src/components/TextBlock.svelte generated by Svelte v3.44.1 */
|
|
1992
2055
|
|
|
1993
2056
|
function add_css$2(target) {
|
|
1994
|
-
append_styles(target, "svelte-
|
|
2057
|
+
append_styles(target, "svelte-sxonpr", ".text-block.svelte-sxonpr{display:flex;width:100%;height:100%;box-sizing:border-box}.text-block-inner.svelte-sxonpr{display:flex;width:100%;height:100%}");
|
|
1995
2058
|
}
|
|
1996
2059
|
|
|
1997
2060
|
function create_fragment$2(ctx) {
|
|
@@ -2003,9 +2066,10 @@ function create_fragment$2(ctx) {
|
|
|
2003
2066
|
c() {
|
|
2004
2067
|
div1 = element("div");
|
|
2005
2068
|
div0 = element("div");
|
|
2006
|
-
attr(div0, "class", "text-block-inner svelte-
|
|
2007
|
-
attr(
|
|
2008
|
-
attr(div1, "
|
|
2069
|
+
attr(div0, "class", "text-block-inner svelte-sxonpr");
|
|
2070
|
+
attr(div0, "style", /*_textStyle*/ ctx[1]);
|
|
2071
|
+
attr(div1, "class", "text-block svelte-sxonpr");
|
|
2072
|
+
attr(div1, "style", /*_style*/ ctx[2]);
|
|
2009
2073
|
},
|
|
2010
2074
|
m(target, anchor) {
|
|
2011
2075
|
insert(target, div1, anchor);
|
|
@@ -2014,8 +2078,12 @@ function create_fragment$2(ctx) {
|
|
|
2014
2078
|
},
|
|
2015
2079
|
p(ctx, [dirty]) {
|
|
2016
2080
|
if (dirty & /*text*/ 1 && raw_value !== (raw_value = toBr(/*text*/ ctx[0]) + "")) div0.innerHTML = raw_value;
|
|
2017
|
-
if (dirty & /*
|
|
2018
|
-
attr(
|
|
2081
|
+
if (dirty & /*_textStyle*/ 2) {
|
|
2082
|
+
attr(div0, "style", /*_textStyle*/ ctx[1]);
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
if (dirty & /*_style*/ 4) {
|
|
2086
|
+
attr(div1, "style", /*_style*/ ctx[2]);
|
|
2019
2087
|
}
|
|
2020
2088
|
},
|
|
2021
2089
|
i: noop,
|
|
@@ -2028,20 +2096,22 @@ function create_fragment$2(ctx) {
|
|
|
2028
2096
|
|
|
2029
2097
|
function instance$2($$self, $$props, $$invalidate) {
|
|
2030
2098
|
let { text = 'サンプルSample' } = $$props;
|
|
2031
|
-
let {
|
|
2099
|
+
let { _textStyle = 'font-size:12px;' } = $$props;
|
|
2100
|
+
let { _style = '' } = $$props;
|
|
2032
2101
|
|
|
2033
2102
|
$$self.$$set = $$props => {
|
|
2034
2103
|
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
|
2035
|
-
if ('
|
|
2104
|
+
if ('_textStyle' in $$props) $$invalidate(1, _textStyle = $$props._textStyle);
|
|
2105
|
+
if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
|
|
2036
2106
|
};
|
|
2037
2107
|
|
|
2038
|
-
return [text, _style];
|
|
2108
|
+
return [text, _textStyle, _style];
|
|
2039
2109
|
}
|
|
2040
2110
|
|
|
2041
2111
|
class TextBlock extends SvelteComponent {
|
|
2042
2112
|
constructor(options) {
|
|
2043
2113
|
super();
|
|
2044
|
-
init(this, options, instance$2, create_fragment$2, safe_not_equal, { text: 0,
|
|
2114
|
+
init(this, options, instance$2, create_fragment$2, safe_not_equal, { text: 0, _textStyle: 1, _style: 2 }, add_css$2);
|
|
2045
2115
|
}
|
|
2046
2116
|
}
|
|
2047
2117
|
|
|
@@ -2154,13 +2224,14 @@ class TextButtonBlock extends SvelteComponent {
|
|
|
2154
2224
|
/* src/components/ImageBlock.svelte generated by Svelte v3.44.1 */
|
|
2155
2225
|
|
|
2156
2226
|
function add_css(target) {
|
|
2157
|
-
append_styles(target, "svelte-
|
|
2227
|
+
append_styles(target, "svelte-ci8ktf", ".image-block.svelte-ci8ktf{display:flex;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;overflow:hidden;box-sizing:border-box}.image.svelte-ci8ktf{width:100%;height:100%}.transport.svelte-ci8ktf:hover,.transport.svelte-ci8ktf:focus{opacity:.75;box-shadow:0 5px 16px rgba(0,0,0,.1), 0 8px 28px rgba(0,0,0,.16)}");
|
|
2158
2228
|
}
|
|
2159
2229
|
|
|
2160
2230
|
function create_fragment(ctx) {
|
|
2161
2231
|
let div;
|
|
2162
2232
|
let img;
|
|
2163
2233
|
let img_src_value;
|
|
2234
|
+
let div_class_value;
|
|
2164
2235
|
let mounted;
|
|
2165
2236
|
let dispose;
|
|
2166
2237
|
|
|
@@ -2168,28 +2239,28 @@ function create_fragment(ctx) {
|
|
|
2168
2239
|
c() {
|
|
2169
2240
|
div = element("div");
|
|
2170
2241
|
img = element("img");
|
|
2171
|
-
attr(img, "class", "image svelte-
|
|
2242
|
+
attr(img, "class", "image svelte-ci8ktf");
|
|
2172
2243
|
attr(img, "loading", "lazy");
|
|
2173
2244
|
attr(img, "width", "auto");
|
|
2174
2245
|
attr(img, "height", "auto");
|
|
2175
|
-
attr(img, "style", /*_imageStyle*/ ctx[
|
|
2246
|
+
attr(img, "style", /*_imageStyle*/ ctx[3]);
|
|
2176
2247
|
if (!src_url_equal(img.src, img_src_value = /*src*/ ctx[0])) attr(img, "src", img_src_value);
|
|
2177
2248
|
attr(img, "alt", /*alt*/ ctx[1]);
|
|
2178
|
-
attr(div, "class", "image-block svelte-
|
|
2179
|
-
attr(div, "style", /*_style*/ ctx[
|
|
2249
|
+
attr(div, "class", div_class_value = "" + (null_to_empty("image-block" + (/*transport*/ ctx[2] ? " transport" : "")) + " svelte-ci8ktf"));
|
|
2250
|
+
attr(div, "style", /*_style*/ ctx[4]);
|
|
2180
2251
|
},
|
|
2181
2252
|
m(target, anchor) {
|
|
2182
2253
|
insert(target, div, anchor);
|
|
2183
2254
|
append(div, img);
|
|
2184
2255
|
|
|
2185
2256
|
if (!mounted) {
|
|
2186
|
-
dispose = listen(div, "click", /*click*/ ctx[
|
|
2257
|
+
dispose = listen(div, "click", /*click*/ ctx[5]);
|
|
2187
2258
|
mounted = true;
|
|
2188
2259
|
}
|
|
2189
2260
|
},
|
|
2190
2261
|
p(ctx, [dirty]) {
|
|
2191
|
-
if (dirty & /*_imageStyle*/
|
|
2192
|
-
attr(img, "style", /*_imageStyle*/ ctx[
|
|
2262
|
+
if (dirty & /*_imageStyle*/ 8) {
|
|
2263
|
+
attr(img, "style", /*_imageStyle*/ ctx[3]);
|
|
2193
2264
|
}
|
|
2194
2265
|
|
|
2195
2266
|
if (dirty & /*src*/ 1 && !src_url_equal(img.src, img_src_value = /*src*/ ctx[0])) {
|
|
@@ -2200,8 +2271,12 @@ function create_fragment(ctx) {
|
|
|
2200
2271
|
attr(img, "alt", /*alt*/ ctx[1]);
|
|
2201
2272
|
}
|
|
2202
2273
|
|
|
2203
|
-
if (dirty & /*
|
|
2204
|
-
attr(div, "
|
|
2274
|
+
if (dirty & /*transport*/ 4 && div_class_value !== (div_class_value = "" + (null_to_empty("image-block" + (/*transport*/ ctx[2] ? " transport" : "")) + " svelte-ci8ktf"))) {
|
|
2275
|
+
attr(div, "class", div_class_value);
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
if (dirty & /*_style*/ 16) {
|
|
2279
|
+
attr(div, "style", /*_style*/ ctx[4]);
|
|
2205
2280
|
}
|
|
2206
2281
|
},
|
|
2207
2282
|
i: noop,
|
|
@@ -2217,6 +2292,7 @@ function create_fragment(ctx) {
|
|
|
2217
2292
|
function instance($$self, $$props, $$invalidate) {
|
|
2218
2293
|
let { src = 'https://admin.karte.io/action-editor2/public/images/no_image_en.svg' } = $$props;
|
|
2219
2294
|
let { alt = 'No Image' } = $$props;
|
|
2295
|
+
let { transport = false } = $$props;
|
|
2220
2296
|
|
|
2221
2297
|
/**
|
|
2222
2298
|
* {"title": {"ja": "イベントタイプ", "en": "Event Type"}, "folder": {"ja": "クリックイベント", "en": "Click Event"}}
|
|
@@ -2238,12 +2314,13 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
2238
2314
|
$$self.$$set = $$props => {
|
|
2239
2315
|
if ('src' in $$props) $$invalidate(0, src = $$props.src);
|
|
2240
2316
|
if ('alt' in $$props) $$invalidate(1, alt = $$props.alt);
|
|
2241
|
-
if ('
|
|
2242
|
-
if ('
|
|
2243
|
-
if ('
|
|
2317
|
+
if ('transport' in $$props) $$invalidate(2, transport = $$props.transport);
|
|
2318
|
+
if ('eventName' in $$props) $$invalidate(6, eventName = $$props.eventName);
|
|
2319
|
+
if ('_imageStyle' in $$props) $$invalidate(3, _imageStyle = $$props._imageStyle);
|
|
2320
|
+
if ('_style' in $$props) $$invalidate(4, _style = $$props._style);
|
|
2244
2321
|
};
|
|
2245
2322
|
|
|
2246
|
-
return [src, alt, _imageStyle, _style, click, eventName];
|
|
2323
|
+
return [src, alt, transport, _imageStyle, _style, click, eventName];
|
|
2247
2324
|
}
|
|
2248
2325
|
|
|
2249
2326
|
class ImageBlock extends SvelteComponent {
|
|
@@ -2259,9 +2336,10 @@ class ImageBlock extends SvelteComponent {
|
|
|
2259
2336
|
{
|
|
2260
2337
|
src: 0,
|
|
2261
2338
|
alt: 1,
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2339
|
+
transport: 2,
|
|
2340
|
+
eventName: 6,
|
|
2341
|
+
_imageStyle: 3,
|
|
2342
|
+
_style: 4
|
|
2265
2343
|
},
|
|
2266
2344
|
add_css
|
|
2267
2345
|
);
|