@plaidev/karte-action-sdk 1.0.31 → 1.0.34
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 +8 -7
- package/dist/index.es.js +107 -99
- package/package.json +2 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ declare const PropTypes: readonly [
|
|
|
36
36
|
"Length",
|
|
37
37
|
"Color",
|
|
38
38
|
"Alignment",
|
|
39
|
+
"State",
|
|
39
40
|
"Style"
|
|
40
41
|
];
|
|
41
42
|
type PropType = typeof PropTypes[number];
|
|
@@ -159,15 +160,15 @@ declare const ModalMarginTranslations: {
|
|
|
159
160
|
};
|
|
160
161
|
};
|
|
161
162
|
type ModalMargin = {
|
|
162
|
-
left
|
|
163
|
-
right
|
|
164
|
-
top
|
|
165
|
-
bottom
|
|
163
|
+
left?: string;
|
|
164
|
+
right?: string;
|
|
165
|
+
top?: string;
|
|
166
|
+
bottom?: string;
|
|
166
167
|
};
|
|
167
168
|
type ModalPlacement = {
|
|
168
|
-
position
|
|
169
|
-
margin
|
|
170
|
-
backgroundOverlay
|
|
169
|
+
position?: ModalPosition;
|
|
170
|
+
margin?: ModalMargin;
|
|
171
|
+
backgroundOverlay?: boolean;
|
|
171
172
|
};
|
|
172
173
|
declare const DefaultModalPlacement: ModalPlacement;
|
|
173
174
|
type LongText = string;
|
package/dist/index.es.js
CHANGED
|
@@ -67,7 +67,7 @@ const getPositionStyle = (position) => {
|
|
|
67
67
|
.trimStart();
|
|
68
68
|
};
|
|
69
69
|
const getMarginStyle = (margin) => {
|
|
70
|
-
return `margin: ${margin
|
|
70
|
+
return `margin: ${margin?.top ?? 0} ${margin?.right ?? 0} ${margin?.bottom ?? 0} ${margin?.left ?? 0};`;
|
|
71
71
|
};
|
|
72
72
|
function onScroll(fn, rate) {
|
|
73
73
|
const target = document.querySelector('body');
|
|
@@ -178,6 +178,7 @@ const PropTypes = [
|
|
|
178
178
|
'Length',
|
|
179
179
|
'Color',
|
|
180
180
|
'Alignment',
|
|
181
|
+
'State',
|
|
181
182
|
'Style',
|
|
182
183
|
];
|
|
183
184
|
const MediaQueries = {
|
|
@@ -301,7 +302,7 @@ const DefaultModalPlacement = {
|
|
|
301
302
|
top: '0px',
|
|
302
303
|
bottom: '0px',
|
|
303
304
|
},
|
|
304
|
-
backgroundOverlay:
|
|
305
|
+
backgroundOverlay: false,
|
|
305
306
|
};
|
|
306
307
|
const LengthUnits = ['px', 'em', 'rem', 'vw', 'fr', '%'];
|
|
307
308
|
const Justifies = ['flex-start', 'center', 'flex-end'];
|
|
@@ -887,7 +888,7 @@ function create_if_block(ctx) {
|
|
|
887
888
|
svg = svg_element("svg");
|
|
888
889
|
path = svg_element("path");
|
|
889
890
|
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");
|
|
890
|
-
attr(path, "fill", /*closeButtonColor*/ ctx[
|
|
891
|
+
attr(path, "fill", /*closeButtonColor*/ ctx[3]);
|
|
891
892
|
attr(path, "fill-opacity", "0.8");
|
|
892
893
|
attr(svg, "width", "100%");
|
|
893
894
|
attr(svg, "height", "100%");
|
|
@@ -908,8 +909,8 @@ function create_if_block(ctx) {
|
|
|
908
909
|
}
|
|
909
910
|
},
|
|
910
911
|
p(ctx, dirty) {
|
|
911
|
-
if (dirty & /*closeButtonColor*/
|
|
912
|
-
attr(path, "fill", /*closeButtonColor*/ ctx[
|
|
912
|
+
if (dirty & /*closeButtonColor*/ 8) {
|
|
913
|
+
attr(path, "fill", /*closeButtonColor*/ ctx[3]);
|
|
913
914
|
}
|
|
914
915
|
|
|
915
916
|
if (dirty & /*$maximumZindex, _closeStyle*/ 528 && button_style_value !== (button_style_value = "z-index:" + (/*$maximumZindex*/ ctx[9] + 1) + "; " + /*_closeStyle*/ ctx[4] + "")) {
|
|
@@ -930,7 +931,7 @@ function create_default_slot$1(ctx) {
|
|
|
930
931
|
let t;
|
|
931
932
|
let div_style_value;
|
|
932
933
|
let current;
|
|
933
|
-
let if_block = /*closable*/ ctx[
|
|
934
|
+
let if_block = /*closable*/ ctx[2] && create_if_block(ctx);
|
|
934
935
|
const default_slot_template = /*#slots*/ ctx[17].default;
|
|
935
936
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[19], null);
|
|
936
937
|
|
|
@@ -943,7 +944,7 @@ function create_default_slot$1(ctx) {
|
|
|
943
944
|
attr(div, "class", "modal svelte-1bxl6mz");
|
|
944
945
|
attr(div, "role", "dialog");
|
|
945
946
|
attr(div, "aria-modal", "true");
|
|
946
|
-
attr(div, "style", div_style_value = "" + /*pos*/ ctx[7] + " " + /*marginStyle*/ ctx[6] + " " + /*_style*/ ctx[
|
|
947
|
+
attr(div, "style", div_style_value = "" + /*pos*/ ctx[7] + " " + /*marginStyle*/ ctx[6] + " " + /*_style*/ ctx[1] + "");
|
|
947
948
|
},
|
|
948
949
|
m(target, anchor) {
|
|
949
950
|
insert(target, div, anchor);
|
|
@@ -958,7 +959,7 @@ function create_default_slot$1(ctx) {
|
|
|
958
959
|
current = true;
|
|
959
960
|
},
|
|
960
961
|
p(ctx, dirty) {
|
|
961
|
-
if (/*closable*/ ctx[
|
|
962
|
+
if (/*closable*/ ctx[2]) {
|
|
962
963
|
if (if_block) {
|
|
963
964
|
if_block.p(ctx, dirty);
|
|
964
965
|
} else {
|
|
@@ -986,7 +987,7 @@ function create_default_slot$1(ctx) {
|
|
|
986
987
|
}
|
|
987
988
|
}
|
|
988
989
|
|
|
989
|
-
if (!current || dirty & /*pos, marginStyle, _style*/
|
|
990
|
+
if (!current || dirty & /*pos, marginStyle, _style*/ 194 && div_style_value !== (div_style_value = "" + /*pos*/ ctx[7] + " " + /*marginStyle*/ ctx[6] + " " + /*_style*/ ctx[1] + "")) {
|
|
990
991
|
attr(div, "style", div_style_value);
|
|
991
992
|
}
|
|
992
993
|
},
|
|
@@ -1026,7 +1027,7 @@ function create_fragment$8(ctx) {
|
|
|
1026
1027
|
|
|
1027
1028
|
animation_1 = new Animation({
|
|
1028
1029
|
props: {
|
|
1029
|
-
animation: /*animation*/ ctx[
|
|
1030
|
+
animation: /*animation*/ ctx[0],
|
|
1030
1031
|
$$slots: { default: [create_default_slot$1] },
|
|
1031
1032
|
$$scope: { ctx }
|
|
1032
1033
|
}
|
|
@@ -1054,9 +1055,9 @@ function create_fragment$8(ctx) {
|
|
|
1054
1055
|
if (dirty & /*backgroundOverray*/ 256) backgroundoverray_changes.backgroundOverray = /*backgroundOverray*/ ctx[8];
|
|
1055
1056
|
backgroundoverray.$set(backgroundoverray_changes);
|
|
1056
1057
|
const animation_1_changes = {};
|
|
1057
|
-
if (dirty & /*animation*/
|
|
1058
|
+
if (dirty & /*animation*/ 1) animation_1_changes.animation = /*animation*/ ctx[0];
|
|
1058
1059
|
|
|
1059
|
-
if (dirty & /*$$scope, pos, marginStyle, _style, modal, $maximumZindex, _closeStyle, closeButtonColor, closable*/
|
|
1060
|
+
if (dirty & /*$$scope, pos, marginStyle, _style, modal, $maximumZindex, _closeStyle, closeButtonColor, closable*/ 525054) {
|
|
1060
1061
|
animation_1_changes.$$scope = { dirty, ctx };
|
|
1061
1062
|
}
|
|
1062
1063
|
|
|
@@ -1092,13 +1093,13 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
1092
1093
|
let $maximumZindex;
|
|
1093
1094
|
component_subscribe($$self, maximumZindex, $$value => $$invalidate(9, $maximumZindex = $$value));
|
|
1094
1095
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
1096
|
+
let { placement = DefaultModalPlacement } = $$props;
|
|
1097
|
+
let { animation = 'none' } = $$props;
|
|
1098
|
+
let { _style = '' } = $$props;
|
|
1095
1099
|
let { closable = true } = $$props;
|
|
1096
1100
|
let { closeButtonColor = '#000000' } = $$props;
|
|
1097
1101
|
let { eventName = '' } = $$props;
|
|
1098
1102
|
let { eventValue = null } = $$props;
|
|
1099
|
-
let { animation = 'none' } = $$props;
|
|
1100
|
-
let { placement = DefaultModalPlacement } = $$props;
|
|
1101
|
-
let { _style = '' } = $$props;
|
|
1102
1103
|
let { _closeStyle = '' } = $$props;
|
|
1103
1104
|
|
|
1104
1105
|
/**
|
|
@@ -1126,27 +1127,33 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
1126
1127
|
}
|
|
1127
1128
|
|
|
1128
1129
|
$$self.$$set = $$props => {
|
|
1129
|
-
if ('
|
|
1130
|
-
if ('
|
|
1131
|
-
if ('
|
|
1132
|
-
if ('
|
|
1133
|
-
if ('
|
|
1134
|
-
if ('
|
|
1135
|
-
if ('
|
|
1130
|
+
if ('placement' in $$props) $$invalidate(12, placement = $$props.placement);
|
|
1131
|
+
if ('animation' in $$props) $$invalidate(0, animation = $$props.animation);
|
|
1132
|
+
if ('_style' in $$props) $$invalidate(1, _style = $$props._style);
|
|
1133
|
+
if ('closable' in $$props) $$invalidate(2, closable = $$props.closable);
|
|
1134
|
+
if ('closeButtonColor' in $$props) $$invalidate(3, closeButtonColor = $$props.closeButtonColor);
|
|
1135
|
+
if ('eventName' in $$props) $$invalidate(13, eventName = $$props.eventName);
|
|
1136
|
+
if ('eventValue' in $$props) $$invalidate(14, eventValue = $$props.eventValue);
|
|
1136
1137
|
if ('_closeStyle' in $$props) $$invalidate(4, _closeStyle = $$props._closeStyle);
|
|
1137
1138
|
if ('$$scope' in $$props) $$invalidate(19, $$scope = $$props.$$scope);
|
|
1138
1139
|
};
|
|
1139
1140
|
|
|
1140
1141
|
$$self.$$.update = () => {
|
|
1141
|
-
if ($$self.$$.dirty & /*placement*/
|
|
1142
|
-
$$invalidate(8, backgroundOverray = placement.backgroundOverlay
|
|
1142
|
+
if ($$self.$$.dirty & /*placement*/ 4096) {
|
|
1143
|
+
$$invalidate(8, backgroundOverray = placement && placement.backgroundOverlay != null
|
|
1144
|
+
? placement.backgroundOverlay
|
|
1145
|
+
: DefaultModalPlacement.backgroundOverlay);
|
|
1143
1146
|
}
|
|
1144
1147
|
|
|
1145
|
-
if ($$self.$$.dirty & /*placement*/
|
|
1146
|
-
$$invalidate(16, overwritePosition = isPreview()
|
|
1148
|
+
if ($$self.$$.dirty & /*placement*/ 4096) {
|
|
1149
|
+
$$invalidate(16, overwritePosition = isPreview()
|
|
1150
|
+
? 'center'
|
|
1151
|
+
: placement && placement.position != null
|
|
1152
|
+
? placement.position
|
|
1153
|
+
: DefaultModalPlacement.position);
|
|
1147
1154
|
}
|
|
1148
1155
|
|
|
1149
|
-
if ($$self.$$.dirty & /*placement*/
|
|
1156
|
+
if ($$self.$$.dirty & /*placement*/ 4096) {
|
|
1150
1157
|
$$invalidate(15, overwriteMargin = isPreview()
|
|
1151
1158
|
? {
|
|
1152
1159
|
left: '0px',
|
|
@@ -1154,7 +1161,9 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
1154
1161
|
top: '0px',
|
|
1155
1162
|
bottom: '0px'
|
|
1156
1163
|
}
|
|
1157
|
-
: placement.margin
|
|
1164
|
+
: placement && placement.margin != null
|
|
1165
|
+
? placement.margin
|
|
1166
|
+
: DefaultModalPlacement.margin);
|
|
1158
1167
|
}
|
|
1159
1168
|
|
|
1160
1169
|
if ($$self.$$.dirty & /*overwritePosition*/ 65536) {
|
|
@@ -1167,10 +1176,10 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
1167
1176
|
};
|
|
1168
1177
|
|
|
1169
1178
|
return [
|
|
1170
|
-
closable,
|
|
1171
|
-
closeButtonColor,
|
|
1172
1179
|
animation,
|
|
1173
1180
|
_style,
|
|
1181
|
+
closable,
|
|
1182
|
+
closeButtonColor,
|
|
1174
1183
|
_closeStyle,
|
|
1175
1184
|
modal,
|
|
1176
1185
|
marginStyle,
|
|
@@ -1179,9 +1188,9 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
1179
1188
|
$maximumZindex,
|
|
1180
1189
|
close,
|
|
1181
1190
|
handle_keydown,
|
|
1191
|
+
placement,
|
|
1182
1192
|
eventName,
|
|
1183
1193
|
eventValue,
|
|
1184
|
-
placement,
|
|
1185
1194
|
overwriteMargin,
|
|
1186
1195
|
overwritePosition,
|
|
1187
1196
|
slots,
|
|
@@ -1201,13 +1210,13 @@ class Modal extends SvelteComponent {
|
|
|
1201
1210
|
create_fragment$8,
|
|
1202
1211
|
safe_not_equal,
|
|
1203
1212
|
{
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1213
|
+
placement: 12,
|
|
1214
|
+
animation: 0,
|
|
1215
|
+
_style: 1,
|
|
1216
|
+
closable: 2,
|
|
1217
|
+
closeButtonColor: 3,
|
|
1218
|
+
eventName: 13,
|
|
1219
|
+
eventValue: 14,
|
|
1211
1220
|
_closeStyle: 4
|
|
1212
1221
|
},
|
|
1213
1222
|
add_css$6
|
|
@@ -1380,19 +1389,19 @@ function create_default_slot_2(ctx) {
|
|
|
1380
1389
|
};
|
|
1381
1390
|
}
|
|
1382
1391
|
|
|
1383
|
-
// (85:2) <Modal {closable} {closeButtonColor} {_closeStyle} _style={_modalStyle} on:close={close} >
|
|
1392
|
+
// (85:2) <Modal {eventName} {eventValue} {closable} {closeButtonColor} {_closeStyle} _style={_modalStyle} on:close={close} >
|
|
1384
1393
|
function create_default_slot_1(ctx) {
|
|
1385
1394
|
let grid;
|
|
1386
1395
|
let current;
|
|
1387
1396
|
|
|
1388
1397
|
grid = new Grid({
|
|
1389
1398
|
props: {
|
|
1390
|
-
width: /*width*/ ctx[
|
|
1391
|
-
height: /*height*/ ctx[
|
|
1392
|
-
rows: /*rows*/ ctx[
|
|
1393
|
-
columns: /*columns*/ ctx[
|
|
1394
|
-
gap: /*gap*/ ctx[
|
|
1395
|
-
background: /*background*/ ctx[
|
|
1399
|
+
width: /*width*/ ctx[7],
|
|
1400
|
+
height: /*height*/ ctx[8],
|
|
1401
|
+
rows: /*rows*/ ctx[9],
|
|
1402
|
+
columns: /*columns*/ ctx[10],
|
|
1403
|
+
gap: /*gap*/ ctx[11],
|
|
1404
|
+
background: /*background*/ ctx[12],
|
|
1396
1405
|
$$slots: { default: [create_default_slot_2] },
|
|
1397
1406
|
$$scope: { ctx }
|
|
1398
1407
|
}
|
|
@@ -1408,12 +1417,12 @@ function create_default_slot_1(ctx) {
|
|
|
1408
1417
|
},
|
|
1409
1418
|
p(ctx, dirty) {
|
|
1410
1419
|
const grid_changes = {};
|
|
1411
|
-
if (dirty & /*width*/
|
|
1412
|
-
if (dirty & /*height*/
|
|
1413
|
-
if (dirty & /*rows*/
|
|
1414
|
-
if (dirty & /*columns*/
|
|
1415
|
-
if (dirty & /*gap*/
|
|
1416
|
-
if (dirty & /*background*/
|
|
1420
|
+
if (dirty & /*width*/ 128) grid_changes.width = /*width*/ ctx[7];
|
|
1421
|
+
if (dirty & /*height*/ 256) grid_changes.height = /*height*/ ctx[8];
|
|
1422
|
+
if (dirty & /*rows*/ 512) grid_changes.rows = /*rows*/ ctx[9];
|
|
1423
|
+
if (dirty & /*columns*/ 1024) grid_changes.columns = /*columns*/ ctx[10];
|
|
1424
|
+
if (dirty & /*gap*/ 2048) grid_changes.gap = /*gap*/ ctx[11];
|
|
1425
|
+
if (dirty & /*background*/ 4096) grid_changes.background = /*background*/ ctx[12];
|
|
1417
1426
|
|
|
1418
1427
|
if (dirty & /*$$scope*/ 131072) {
|
|
1419
1428
|
grid_changes.$$scope = { dirty, ctx };
|
|
@@ -1443,16 +1452,18 @@ function create_default_slot(ctx) {
|
|
|
1443
1452
|
|
|
1444
1453
|
modal = new Modal({
|
|
1445
1454
|
props: {
|
|
1455
|
+
eventName: /*eventName*/ ctx[4],
|
|
1456
|
+
eventValue: /*eventValue*/ ctx[5],
|
|
1446
1457
|
closable: /*closable*/ ctx[2],
|
|
1447
1458
|
closeButtonColor: /*closeButtonColor*/ ctx[3],
|
|
1448
|
-
_closeStyle: /*_closeStyle*/ ctx[
|
|
1459
|
+
_closeStyle: /*_closeStyle*/ ctx[6],
|
|
1449
1460
|
_style: /*_modalStyle*/ ctx[1],
|
|
1450
1461
|
$$slots: { default: [create_default_slot_1] },
|
|
1451
1462
|
$$scope: { ctx }
|
|
1452
1463
|
}
|
|
1453
1464
|
});
|
|
1454
1465
|
|
|
1455
|
-
modal.$on("close", /*close*/ ctx[
|
|
1466
|
+
modal.$on("close", /*close*/ ctx[13]);
|
|
1456
1467
|
|
|
1457
1468
|
return {
|
|
1458
1469
|
c() {
|
|
@@ -1464,12 +1475,14 @@ function create_default_slot(ctx) {
|
|
|
1464
1475
|
},
|
|
1465
1476
|
p(ctx, dirty) {
|
|
1466
1477
|
const modal_changes = {};
|
|
1478
|
+
if (dirty & /*eventName*/ 16) modal_changes.eventName = /*eventName*/ ctx[4];
|
|
1479
|
+
if (dirty & /*eventValue*/ 32) modal_changes.eventValue = /*eventValue*/ ctx[5];
|
|
1467
1480
|
if (dirty & /*closable*/ 4) modal_changes.closable = /*closable*/ ctx[2];
|
|
1468
1481
|
if (dirty & /*closeButtonColor*/ 8) modal_changes.closeButtonColor = /*closeButtonColor*/ ctx[3];
|
|
1469
|
-
if (dirty & /*_closeStyle*/
|
|
1482
|
+
if (dirty & /*_closeStyle*/ 64) modal_changes._closeStyle = /*_closeStyle*/ ctx[6];
|
|
1470
1483
|
if (dirty & /*_modalStyle*/ 2) modal_changes._style = /*_modalStyle*/ ctx[1];
|
|
1471
1484
|
|
|
1472
|
-
if (dirty & /*$$scope, width, height, rows, columns, gap, background*/
|
|
1485
|
+
if (dirty & /*$$scope, width, height, rows, columns, gap, background*/ 139136) {
|
|
1473
1486
|
modal_changes.$$scope = { dirty, ctx };
|
|
1474
1487
|
}
|
|
1475
1488
|
|
|
@@ -1514,7 +1527,7 @@ function create_fragment$6(ctx) {
|
|
|
1514
1527
|
const stateitem_changes = {};
|
|
1515
1528
|
if (dirty & /*path*/ 1) stateitem_changes.path = /*path*/ ctx[0];
|
|
1516
1529
|
|
|
1517
|
-
if (dirty & /*$$scope, closable, closeButtonColor, _closeStyle, _modalStyle, width, height, rows, columns, gap, background*/
|
|
1530
|
+
if (dirty & /*$$scope, eventName, eventValue, closable, closeButtonColor, _closeStyle, _modalStyle, width, height, rows, columns, gap, background*/ 139262) {
|
|
1518
1531
|
stateitem_changes.$$scope = { dirty, ctx };
|
|
1519
1532
|
}
|
|
1520
1533
|
|
|
@@ -1564,20 +1577,20 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
1564
1577
|
|
|
1565
1578
|
$$self.$$set = $$props => {
|
|
1566
1579
|
if ('path' in $$props) $$invalidate(0, path = $$props.path);
|
|
1567
|
-
if ('placement' in $$props) $$invalidate(
|
|
1568
|
-
if ('animation' in $$props) $$invalidate(
|
|
1580
|
+
if ('placement' in $$props) $$invalidate(14, placement = $$props.placement);
|
|
1581
|
+
if ('animation' in $$props) $$invalidate(15, animation = $$props.animation);
|
|
1569
1582
|
if ('_modalStyle' in $$props) $$invalidate(1, _modalStyle = $$props._modalStyle);
|
|
1570
1583
|
if ('closable' in $$props) $$invalidate(2, closable = $$props.closable);
|
|
1571
1584
|
if ('closeButtonColor' in $$props) $$invalidate(3, closeButtonColor = $$props.closeButtonColor);
|
|
1572
|
-
if ('eventName' in $$props) $$invalidate(
|
|
1573
|
-
if ('eventValue' in $$props) $$invalidate(
|
|
1574
|
-
if ('_closeStyle' in $$props) $$invalidate(
|
|
1575
|
-
if ('width' in $$props) $$invalidate(
|
|
1576
|
-
if ('height' in $$props) $$invalidate(
|
|
1577
|
-
if ('rows' in $$props) $$invalidate(
|
|
1578
|
-
if ('columns' in $$props) $$invalidate(
|
|
1579
|
-
if ('gap' in $$props) $$invalidate(
|
|
1580
|
-
if ('background' in $$props) $$invalidate(
|
|
1585
|
+
if ('eventName' in $$props) $$invalidate(4, eventName = $$props.eventName);
|
|
1586
|
+
if ('eventValue' in $$props) $$invalidate(5, eventValue = $$props.eventValue);
|
|
1587
|
+
if ('_closeStyle' in $$props) $$invalidate(6, _closeStyle = $$props._closeStyle);
|
|
1588
|
+
if ('width' in $$props) $$invalidate(7, width = $$props.width);
|
|
1589
|
+
if ('height' in $$props) $$invalidate(8, height = $$props.height);
|
|
1590
|
+
if ('rows' in $$props) $$invalidate(9, rows = $$props.rows);
|
|
1591
|
+
if ('columns' in $$props) $$invalidate(10, columns = $$props.columns);
|
|
1592
|
+
if ('gap' in $$props) $$invalidate(11, gap = $$props.gap);
|
|
1593
|
+
if ('background' in $$props) $$invalidate(12, background = $$props.background);
|
|
1581
1594
|
if ('$$scope' in $$props) $$invalidate(17, $$scope = $$props.$$scope);
|
|
1582
1595
|
};
|
|
1583
1596
|
|
|
@@ -1586,6 +1599,8 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
1586
1599
|
_modalStyle,
|
|
1587
1600
|
closable,
|
|
1588
1601
|
closeButtonColor,
|
|
1602
|
+
eventName,
|
|
1603
|
+
eventValue,
|
|
1589
1604
|
_closeStyle,
|
|
1590
1605
|
width,
|
|
1591
1606
|
height,
|
|
@@ -1596,8 +1611,6 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
1596
1611
|
close,
|
|
1597
1612
|
placement,
|
|
1598
1613
|
animation,
|
|
1599
|
-
eventName,
|
|
1600
|
-
eventValue,
|
|
1601
1614
|
slots,
|
|
1602
1615
|
$$scope
|
|
1603
1616
|
];
|
|
@@ -1609,20 +1622,20 @@ class GridModalState extends SvelteComponent {
|
|
|
1609
1622
|
|
|
1610
1623
|
init(this, options, instance$6, create_fragment$6, safe_not_equal, {
|
|
1611
1624
|
path: 0,
|
|
1612
|
-
placement:
|
|
1613
|
-
animation:
|
|
1625
|
+
placement: 14,
|
|
1626
|
+
animation: 15,
|
|
1614
1627
|
_modalStyle: 1,
|
|
1615
1628
|
closable: 2,
|
|
1616
1629
|
closeButtonColor: 3,
|
|
1617
|
-
eventName:
|
|
1618
|
-
eventValue:
|
|
1619
|
-
_closeStyle:
|
|
1620
|
-
width:
|
|
1621
|
-
height:
|
|
1622
|
-
rows:
|
|
1623
|
-
columns:
|
|
1624
|
-
gap:
|
|
1625
|
-
background:
|
|
1630
|
+
eventName: 4,
|
|
1631
|
+
eventValue: 5,
|
|
1632
|
+
_closeStyle: 6,
|
|
1633
|
+
width: 7,
|
|
1634
|
+
height: 8,
|
|
1635
|
+
rows: 9,
|
|
1636
|
+
columns: 10,
|
|
1637
|
+
gap: 11,
|
|
1638
|
+
background: 12
|
|
1626
1639
|
});
|
|
1627
1640
|
}
|
|
1628
1641
|
}
|
|
@@ -2085,38 +2098,36 @@ function create_fragment$1(ctx) {
|
|
|
2085
2098
|
}
|
|
2086
2099
|
|
|
2087
2100
|
function instance$1($$self, $$props, $$invalidate) {
|
|
2088
|
-
let { text = '
|
|
2101
|
+
let { text = 'ボタンラベル' } = $$props;
|
|
2089
2102
|
|
|
2090
2103
|
/**
|
|
2091
2104
|
* {
|
|
2092
|
-
* "title": {"ja": "
|
|
2093
|
-
* "folder": {"ja": "
|
|
2105
|
+
* "title": {"ja": "イベントタイプ", "en": "Event Type"},
|
|
2106
|
+
* "folder": {"ja": "クリックイベント", "en": "Click Event"}
|
|
2094
2107
|
* }
|
|
2095
2108
|
*/
|
|
2096
2109
|
const dispatch = createEventDispatcher();
|
|
2097
2110
|
|
|
2098
2111
|
const click = () => {
|
|
2099
2112
|
if (eventName) {
|
|
2100
|
-
send_event(eventName
|
|
2113
|
+
send_event(eventName);
|
|
2101
2114
|
}
|
|
2102
2115
|
|
|
2103
2116
|
dispatch('click');
|
|
2104
2117
|
};
|
|
2105
2118
|
|
|
2106
2119
|
let { eventName = '' } = $$props;
|
|
2107
|
-
let { eventValue = null } = $$props;
|
|
2108
2120
|
let { _buttonStyle = 'color:#ffffff; font-size:14px; font-weight:bold; justify-content:center; align-items:center; padding:1px 6px 1px 6px;' } = $$props;
|
|
2109
2121
|
let { _style = 'background-color: #000000; border-radius:4px;' } = $$props;
|
|
2110
2122
|
|
|
2111
2123
|
$$self.$$set = $$props => {
|
|
2112
2124
|
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
|
2113
2125
|
if ('eventName' in $$props) $$invalidate(4, eventName = $$props.eventName);
|
|
2114
|
-
if ('eventValue' in $$props) $$invalidate(5, eventValue = $$props.eventValue);
|
|
2115
2126
|
if ('_buttonStyle' in $$props) $$invalidate(1, _buttonStyle = $$props._buttonStyle);
|
|
2116
2127
|
if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
|
|
2117
2128
|
};
|
|
2118
2129
|
|
|
2119
|
-
return [text, _buttonStyle, _style, click, eventName
|
|
2130
|
+
return [text, _buttonStyle, _style, click, eventName];
|
|
2120
2131
|
}
|
|
2121
2132
|
|
|
2122
2133
|
class TextButtonBlock extends SvelteComponent {
|
|
@@ -2132,7 +2143,6 @@ class TextButtonBlock extends SvelteComponent {
|
|
|
2132
2143
|
{
|
|
2133
2144
|
text: 0,
|
|
2134
2145
|
eventName: 4,
|
|
2135
|
-
eventValue: 5,
|
|
2136
2146
|
_buttonStyle: 1,
|
|
2137
2147
|
_style: 2
|
|
2138
2148
|
},
|
|
@@ -2205,36 +2215,35 @@ function create_fragment(ctx) {
|
|
|
2205
2215
|
}
|
|
2206
2216
|
|
|
2207
2217
|
function instance($$self, $$props, $$invalidate) {
|
|
2208
|
-
let { src = '' } = $$props;
|
|
2209
|
-
let { alt = '' } = $$props;
|
|
2210
|
-
let { eventName = '' } = $$props;
|
|
2211
|
-
let { eventValue = null } = $$props;
|
|
2212
|
-
let { _imageStyle = 'object-fit: contain;' } = $$props;
|
|
2213
|
-
let { _style = '' } = $$props;
|
|
2218
|
+
let { src = 'https://admin.karte.io/action-editor2/public/images/no_image_en.svg' } = $$props;
|
|
2219
|
+
let { alt = 'No Image' } = $$props;
|
|
2214
2220
|
|
|
2215
2221
|
/**
|
|
2216
|
-
* {"title": {"ja": "
|
|
2222
|
+
* {"title": {"ja": "イベントタイプ", "en": "Event Type"}, "folder": {"ja": "クリックイベント", "en": "Click Event"}}
|
|
2217
2223
|
*/
|
|
2218
2224
|
const dispatch = createEventDispatcher();
|
|
2219
2225
|
|
|
2220
2226
|
const click = () => {
|
|
2221
2227
|
if (eventName) {
|
|
2222
|
-
send_event(eventName
|
|
2228
|
+
send_event(eventName);
|
|
2223
2229
|
}
|
|
2224
2230
|
|
|
2225
2231
|
dispatch('click');
|
|
2226
2232
|
};
|
|
2227
2233
|
|
|
2234
|
+
let { eventName = '' } = $$props;
|
|
2235
|
+
let { _imageStyle = 'object-fit: contain;' } = $$props;
|
|
2236
|
+
let { _style = '' } = $$props;
|
|
2237
|
+
|
|
2228
2238
|
$$self.$$set = $$props => {
|
|
2229
2239
|
if ('src' in $$props) $$invalidate(0, src = $$props.src);
|
|
2230
2240
|
if ('alt' in $$props) $$invalidate(1, alt = $$props.alt);
|
|
2231
2241
|
if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
|
|
2232
|
-
if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
|
|
2233
2242
|
if ('_imageStyle' in $$props) $$invalidate(2, _imageStyle = $$props._imageStyle);
|
|
2234
2243
|
if ('_style' in $$props) $$invalidate(3, _style = $$props._style);
|
|
2235
2244
|
};
|
|
2236
2245
|
|
|
2237
|
-
return [src, alt, _imageStyle, _style, click, eventName
|
|
2246
|
+
return [src, alt, _imageStyle, _style, click, eventName];
|
|
2238
2247
|
}
|
|
2239
2248
|
|
|
2240
2249
|
class ImageBlock extends SvelteComponent {
|
|
@@ -2251,7 +2260,6 @@ class ImageBlock extends SvelteComponent {
|
|
|
2251
2260
|
src: 0,
|
|
2252
2261
|
alt: 1,
|
|
2253
2262
|
eventName: 5,
|
|
2254
|
-
eventValue: 6,
|
|
2255
2263
|
_imageStyle: 2,
|
|
2256
2264
|
_style: 3
|
|
2257
2265
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plaidev/karte-action-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"author": "Plaid Inc.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"test:watch": "vitest test",
|
|
76
76
|
"test:ui": "vitest test --ui",
|
|
77
77
|
"test:e2e": "vitest run spec",
|
|
78
|
+
"test:update": "vitest -u",
|
|
78
79
|
"coverage": "vitest run test --coverage"
|
|
79
80
|
},
|
|
80
81
|
"publishConfig": {
|