@plaidev/karte-action-sdk 1.0.32 → 1.0.35

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.
@@ -277,11 +277,13 @@ declare const collection: (config: {
277
277
  };
278
278
  export { state, closed, maximumZindex, initialize, finalize, send_event, isPreview, setMiximumZindex, none, moveTo, linkTo, closeApp, _default, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getMarginStyle, onScroll, onTime, hasSuffix, toBr, randStr, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, AnimationStyleTranslations, ModalPositions, ModalPosition, ModalPositionTranslations, ModalMarginTranslations, ModalMargin, ModalPlacement, DefaultModalPlacement, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, Repeats, Repeat, BackgroundSizes, BackgroundSize, Style, StateName, hideOnScroll, hideOnTime, showOnScroll, showOnTime, ensureModalRoot, h, createFog, EmbedLogic, embed, collection };
279
279
  export { default as State } from './components/State.svelte';
280
+ export { default as StateItem } from './components/StateItem.svelte';
281
+ export { default as Modal } from './components/Modal.svelte';
280
282
  export { default as GridModalState } from './components/GridModalState.svelte';
283
+ export { default as Grid } from './components/Grid.svelte';
281
284
  export { default as GridItem } from './components/GridItem.svelte';
282
285
  export { default as Flex } from './components/Flex.svelte';
283
286
  export { default as FlexItem } from './components/FlexItem.svelte';
284
- export { default as Modal } from './components/Modal.svelte';
285
287
  export { default as TextBlock } from './components/TextBlock.svelte';
286
288
  export { default as TextButtonBlock } from './components/TextButtonBlock.svelte';
287
289
  export { default as ImageBlock } from './components/ImageBlock.svelte';
package/dist/index.es.js CHANGED
@@ -302,7 +302,7 @@ const DefaultModalPlacement = {
302
302
  top: '0px',
303
303
  bottom: '0px',
304
304
  },
305
- backgroundOverlay: true,
305
+ backgroundOverlay: false,
306
306
  };
307
307
  const LengthUnits = ['px', 'em', 'rem', 'vw', 'fr', '%'];
308
308
  const Justifies = ['flex-start', 'center', 'flex-end'];
@@ -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
- // (84:4) {#if closable}
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[10]);
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
- // (72:0) <Animation {animation}>
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[17].default;
936
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[19], null);
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[18](div);
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*/ 524288)) {
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[19],
988
+ /*$$scope*/ ctx[22],
982
989
  !current
983
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[19])
984
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[19], dirty, null),
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[18](null);
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[10]);
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[11]);
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*/ 525054) {
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 dispatch = createEventDispatcher();
1125
+ const dispatchClose = createEventDispatcher();
1109
1126
 
1110
1127
  const close = () => {
1111
- if (eventName) {
1112
- send_event(eventName, eventValue);
1128
+ if (closeEventName) {
1129
+ send_event(closeEventName, closeEventValue);
1113
1130
  }
1114
1131
 
1115
- dispatch('close');
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 ('placement' in $$props) $$invalidate(12, placement = $$props.placement);
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 ('eventName' in $$props) $$invalidate(13, eventName = $$props.eventName);
1136
- if ('eventValue' in $$props) $$invalidate(14, eventValue = $$props.eventValue);
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(19, $$scope = $$props.$$scope);
1161
+ if ('$$scope' in $$props) $$invalidate(22, $$scope = $$props.$$scope);
1139
1162
  };
1140
1163
 
1141
1164
  $$self.$$.update = () => {
1142
- if ($$self.$$.dirty & /*placement*/ 4096) {
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*/ 4096) {
1149
- $$invalidate(16, overwritePosition = isPreview()
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*/ 4096) {
1157
- $$invalidate(15, overwriteMargin = isPreview()
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*/ 65536) {
1192
+ if ($$self.$$.dirty & /*overwritePosition*/ 524288) {
1170
1193
  $$invalidate(7, pos = getPositionStyle(overwritePosition));
1171
1194
  }
1172
1195
 
1173
- if ($$self.$$.dirty & /*overwriteMargin*/ 32768) {
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
- eventName,
1193
- eventValue,
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
- placement: 12,
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
- eventName: 13,
1219
- eventValue: 14,
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[16].default;
1348
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[17], null);
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*/ 131072)) {
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[17],
1396
+ /*$$scope*/ ctx[20],
1369
1397
  !current
1370
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[17])
1371
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[17], dirty, null),
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
- // (85:2) <Modal {eventName} {eventValue} {closable} {closeButtonColor} {_closeStyle} _style={_modalStyle} on:close={close} >
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[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],
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*/ 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];
1426
-
1427
- if (dirty & /*$$scope*/ 131072) {
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
- // (84:0) <StateItem {path}>
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
- eventName: /*eventName*/ ctx[4],
1456
- eventValue: /*eventValue*/ ctx[5],
1457
- closable: /*closable*/ ctx[2],
1458
- closeButtonColor: /*closeButtonColor*/ ctx[3],
1459
- _closeStyle: /*_closeStyle*/ ctx[6],
1460
- _style: /*_modalStyle*/ ctx[1],
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("close", /*close*/ ctx[13]);
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 & /*eventName*/ 16) modal_changes.eventName = /*eventName*/ ctx[4];
1479
- if (dirty & /*eventValue*/ 32) modal_changes.eventValue = /*eventValue*/ ctx[5];
1480
- if (dirty & /*closable*/ 4) modal_changes.closable = /*closable*/ ctx[2];
1481
- if (dirty & /*closeButtonColor*/ 8) modal_changes.closeButtonColor = /*closeButtonColor*/ ctx[3];
1482
- if (dirty & /*_closeStyle*/ 64) modal_changes._closeStyle = /*_closeStyle*/ ctx[6];
1483
- if (dirty & /*_modalStyle*/ 2) modal_changes._style = /*_modalStyle*/ ctx[1];
1484
-
1485
- if (dirty & /*$$scope, width, height, rows, columns, gap, background*/ 139136) {
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, eventName, eventValue, closable, closeButtonColor, _closeStyle, _modalStyle, width, height, rows, columns, gap, background*/ 139262) {
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
- let { eventName = '' } = $$props;
1560
- let { eventValue = null } = $$props;
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 ('placement' in $$props) $$invalidate(14, placement = $$props.placement);
1581
- if ('animation' in $$props) $$invalidate(15, animation = $$props.animation);
1582
- if ('_modalStyle' in $$props) $$invalidate(1, _modalStyle = $$props._modalStyle);
1583
- if ('closable' in $$props) $$invalidate(2, closable = $$props.closable);
1584
- if ('closeButtonColor' in $$props) $$invalidate(3, closeButtonColor = $$props.closeButtonColor);
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);
1594
- if ('$$scope' in $$props) $$invalidate(17, $$scope = $$props.$$scope);
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
- eventName,
1603
- eventValue,
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
- placement: 14,
1626
- animation: 15,
1627
- _modalStyle: 1,
1628
- closable: 2,
1629
- closeButtonColor: 3,
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
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
  }
@@ -2268,4 +2331,4 @@ class ImageBlock extends SvelteComponent {
2268
2331
  }
2269
2332
  }
2270
2333
 
2271
- export { Alignments, AnimationStyleTranslations, AnimationStyles, BackgroundSizes, DefaultModalPlacement, Directions, Flex, FlexItem, GridItem, GridModalState, ImageBlock, Justifies, LengthUnits, MediaQueries, Modal, ModalMarginTranslations, ModalPositionTranslations, ModalPositions, ObjectFits, PropTypes, Repeats, State, TextBlock, TextButtonBlock, closeApp, closed, collection, createFog, embed, ensureModalRoot, finalize, getMarginStyle, getPositionStyle, h, handleFocus, handleKeydown, hasSuffix, hideOnScroll, hideOnTime, initialize, isPreview, linkTo, maximumZindex, moveTo, none, onScroll, onTime, randStr, send_event, setMiximumZindex, setPreviousFocus, showOnScroll, showOnTime, state, toBr };
2334
+ export { Alignments, AnimationStyleTranslations, AnimationStyles, BackgroundSizes, DefaultModalPlacement, Directions, Flex, FlexItem, Grid, GridItem, GridModalState, ImageBlock, Justifies, LengthUnits, MediaQueries, Modal, ModalMarginTranslations, ModalPositionTranslations, ModalPositions, ObjectFits, PropTypes, Repeats, State, StateItem, TextBlock, TextButtonBlock, closeApp, closed, collection, createFog, embed, ensureModalRoot, finalize, getMarginStyle, getPositionStyle, h, handleFocus, handleKeydown, hasSuffix, hideOnScroll, hideOnTime, initialize, isPreview, linkTo, maximumZindex, moveTo, none, onScroll, onTime, randStr, send_event, setMiximumZindex, setPreviousFocus, showOnScroll, showOnTime, state, toBr };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.0.32",
3
+ "version": "1.0.35",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",