@plaidev/karte-action-sdk 1.1.139-27967811.a85fab51 → 1.1.139-27968061.3a293fdc

Sign up to get free protection for your applications and to get access to all the features.
@@ -454,14 +454,6 @@ declare const DefaultFormButtonColor: {
454
454
  };
455
455
  /** @internal */
456
456
  type Store<T> = Writable_<T>; // Wrap svelte tools
457
- /**
458
- * get store state value
459
- *
460
- * @deprecated 非推奨
461
- *
462
- * @internal
463
- */
464
- declare const getStoreState: typeof get_;
465
457
  /**
466
458
  * KARTE のシステム設定情報
467
459
  *
@@ -569,12 +561,6 @@ declare function getState(): string;
569
561
  * @public
570
562
  */
571
563
  declare function getStates(): string[];
572
- /**
573
- * Store to handle visibility of action
574
- *
575
- * @internal
576
- */
577
- declare const opened: Store<boolean>;
578
564
  /**
579
565
  * アクションの表示・非表示の状態を取得する
580
566
  *
@@ -583,32 +569,6 @@ declare const opened: Store<boolean>;
583
569
  * @public
584
570
  */
585
571
  declare function isOpened(): boolean;
586
- /**
587
- * Store to handle visibility of action
588
- *
589
- * @deprecated 非推奨
590
- *
591
- * @internal
592
- */
593
- declare const closed: Store<boolean>; // deprecated
594
- /**
595
- * {@link isClosed} function to check if action is clsoed.
596
- *
597
- * @returns Flag if action is closed / true: Closed, false: Not closed
598
- *
599
- * @deprecated 非推奨
600
- *
601
- * @internal
602
- */
603
- declare function isClosed(): boolean;
604
- /**
605
- * {@link setClosed} function to set if action is closed.
606
- *
607
- * @deprecated 非推奨
608
- *
609
- * @internal
610
- */
611
- declare function setClosed(on: boolean): void;
612
572
  /**
613
573
  * Store to handle event handlers
614
574
  *
@@ -645,17 +605,10 @@ declare function setEventHandlers(handlers: {
645
605
  [key: string]: ActionEventHandler;
646
606
  };
647
607
  /**
648
- * Store to handle destruction of action
608
+ * イベントハンドラーをリセットする
649
609
  *
650
- * @internal
651
610
  */
652
- declare const destroyed: Store<boolean>;
653
- /**
654
- * Store to handle stopping action
655
- *
656
- * @internal
657
- */
658
- declare const stopped: Store<boolean>;
611
+ declare function resetEventHandlers(): void;
659
612
  /**
660
613
  * Store to handle variables
661
614
  *
@@ -683,6 +636,11 @@ declare function getVariables(): ActionVariables;
683
636
  * @internal
684
637
  */
685
638
  declare function setVariables(vars: ActionVariables): ActionVariables;
639
+ /**
640
+ * 変数をリセットする
641
+ *
642
+ */
643
+ declare function resetVariables(): void;
686
644
  /** @internal */
687
645
  interface FormData {
688
646
  [name: string]: {
@@ -697,101 +655,6 @@ interface FormData {
697
655
  * @internal
698
656
  */
699
657
  declare const formData: Writable_<FormData>;
700
- // -------- The following codes are deprecated --------
701
- /**
702
- * 非推奨
703
- *
704
- * @deprecated 非推奨
705
- *
706
- * @internal
707
- */
708
- type CustomVariables = {
709
- [key: string]: any;
710
- };
711
- /**
712
- * 非推奨
713
- *
714
- * @deprecated 非推奨
715
- *
716
- * @internal
717
- */
718
- declare const customHandlers: Store<{
719
- [key: string]: ActionEventHandler;
720
- }>;
721
- /**
722
- * 非推奨
723
- *
724
- * @deprecated 非推奨
725
- *
726
- * @internal
727
- */
728
- declare function getCustomHandlers(): {
729
- [key: string]: ActionEventHandler;
730
- };
731
- /**
732
- * 非推奨
733
- *
734
- * @deprecated 非推奨
735
- *
736
- * @internal
737
- */
738
- declare function setCustomHandlers(handlers: {
739
- [key: string]: ActionEventHandler;
740
- }): void;
741
- /**
742
- * 非推奨
743
- *
744
- * @deprecated 非推奨
745
- *
746
- * @internal
747
- */
748
- declare function updateCustomHandlers(handlers: {
749
- [key: string]: ActionEventHandler;
750
- }): {
751
- [key: string]: ActionEventHandler;
752
- };
753
- /**
754
- * 非推奨
755
- *
756
- * @deprecated 非推奨
757
- *
758
- * @internal
759
- */
760
- declare const customVariables: Store<{
761
- [key: string]: any;
762
- }>;
763
- /**
764
- * 非推奨
765
- *
766
- * @deprecated 非推奨
767
- *
768
- * @internal
769
- */
770
- declare function getCustomVariables(): CustomVariables;
771
- /**
772
- * 非推奨
773
- *
774
- * @deprecated 非推奨
775
- *
776
- * @internal
777
- */
778
- declare function setCustomVariables(variables: CustomVariables): void;
779
- /**
780
- * 非推奨
781
- *
782
- * @deprecated 非推奨
783
- *
784
- * @internal
785
- */
786
- declare function updateCustomVariables(variables: CustomVariables): CustomVariables;
787
- /**
788
- * 非推奨
789
- *
790
- * @deprecated 非推奨
791
- *
792
- * @internal
793
- */
794
- declare function setActionSetting(setting: ActionSetting): ActionSetting;
795
658
  /**
796
659
  * 閉じるアクショントリガー
797
660
  *
@@ -1476,14 +1339,6 @@ interface App {
1476
1339
  * @internal
1477
1340
  */
1478
1341
  declare function createApp<Props, Variables, VariablesQuery>(App: typeof SvelteComponentDev, options?: AppOptions<Props, Variables, VariablesQuery>): App;
1479
- /**
1480
- * 非推奨
1481
- *
1482
- * @deprecated 非推奨
1483
- *
1484
- * @internal
1485
- */
1486
- declare function getActionShadowRoot(): ShadowRoot | null;
1487
1342
  /**
1488
1343
  * 非推奨
1489
1344
  *
@@ -2258,6 +2113,11 @@ declare namespace widget {
2258
2113
  }): {
2259
2114
  [key: string]: ActionEventHandler;
2260
2115
  };
2116
+ /**
2117
+ * イベントハンドラーをリセットする
2118
+ *
2119
+ */
2120
+ function resetEventHandlers(): void;
2261
2121
  /**
2262
2122
  * Store to handle destruction of action
2263
2123
  *
@@ -2323,6 +2183,11 @@ declare namespace widget {
2323
2183
  * @internal
2324
2184
  */
2325
2185
  function setVariables(vars: ActionVariables): ActionVariables;
2186
+ /**
2187
+ * 変数をリセットする
2188
+ *
2189
+ */
2190
+ function resetVariables(): void;
2326
2191
  /** @internal */
2327
2192
  interface FormData {
2328
2193
  [name: string]: {
@@ -2337,117 +2202,6 @@ declare namespace widget {
2337
2202
  * @internal
2338
2203
  */
2339
2204
  const formData: Writable_<FormData>;
2340
- // -------- The following codes are deprecated --------
2341
- /**
2342
- * 非推奨
2343
- *
2344
- * @deprecated 非推奨
2345
- *
2346
- * @internal
2347
- */
2348
- type CustomVariables = {
2349
- [key: string]: any;
2350
- };
2351
- /**
2352
- * 非推奨
2353
- *
2354
- * @deprecated 非推奨
2355
- *
2356
- * @internal
2357
- */
2358
- const customHandlers: Store<{
2359
- [key: string]: ActionEventHandler;
2360
- }>;
2361
- /**
2362
- * 非推奨
2363
- *
2364
- * @deprecated 非推奨
2365
- *
2366
- * @internal
2367
- */
2368
- function getCustomHandlers(): {
2369
- [key: string]: ActionEventHandler;
2370
- };
2371
- /**
2372
- * 非推奨
2373
- *
2374
- * @deprecated 非推奨
2375
- *
2376
- * @internal
2377
- */
2378
- function setCustomHandlers(handlers: {
2379
- [key: string]: ActionEventHandler;
2380
- }): void;
2381
- /**
2382
- * 非推奨
2383
- *
2384
- * @deprecated 非推奨
2385
- *
2386
- * @internal
2387
- */
2388
- function updateCustomHandlers(handlers: {
2389
- [key: string]: ActionEventHandler;
2390
- }): {
2391
- [key: string]: ActionEventHandler;
2392
- };
2393
- /**
2394
- * 非推奨
2395
- *
2396
- * @deprecated 非推奨
2397
- *
2398
- * @internal
2399
- */
2400
- const customVariables: Store<{
2401
- [key: string]: any;
2402
- }>;
2403
- /**
2404
- * 非推奨
2405
- *
2406
- * @deprecated 非推奨
2407
- *
2408
- * @internal
2409
- */
2410
- function getCustomVariables(): CustomVariables;
2411
- /**
2412
- * 非推奨
2413
- *
2414
- * @deprecated 非推奨
2415
- *
2416
- * @internal
2417
- */
2418
- function setCustomVariables(variables: CustomVariables): void;
2419
- /**
2420
- * 非推奨
2421
- *
2422
- * @deprecated 非推奨
2423
- *
2424
- * @internal
2425
- */
2426
- function updateCustomVariables(variables: CustomVariables): CustomVariables;
2427
- /**
2428
- * 非推奨
2429
- *
2430
- * @deprecated 非推奨
2431
- *
2432
- * @internal
2433
- */
2434
- function getActionSetting(): ActionSetting;
2435
- /**
2436
- * 非推奨
2437
- *
2438
- * @deprecated 非推奨
2439
- *
2440
- * @internal
2441
- */
2442
- function setActionSetting(setting: ActionSetting): ActionSetting;
2443
- /**
2444
- * 非推奨
2445
- *
2446
- * @deprecated 非推奨
2447
- *
2448
- * @internal
2449
- */
2450
- function resetActionSetting(): void;
2451
2205
  /**
2452
2206
  * 閉じるアクショントリガー
2453
2207
  *
@@ -3209,8 +2963,8 @@ declare namespace widget {
3209
2963
  */
3210
2964
  export { showAction as show, closeAction as hide };
3211
2965
  }
3212
- export { loadGlobalScript, loadGlobalStyle, applyGlobalCss, initialize, finalize, setAutoStart, getState, setState, getStates, isOpened, getVariables, setVariables, getEventHandlers, setEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state, opened, closed, destroyed, stopped, isClosed, setClosed, getStoreState, getCustomVariables, setCustomVariables, updateCustomVariables, getCustomHandlers, setCustomHandlers, updateCustomHandlers, setActionSetting, customHandlers, customVariables, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, FontWeight, Justifies, Justify, Alignments, Alignment, FlexDirections, FlexDirection, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, BoxShadow, Style, TransitState, WritingModes, WritingMode, DateTime, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonColor, DefaultFormButtonColor, create, showAction, closeAction, destroyAction, loadStyle, applyCss, getActionRoot, onCreate, onShow, onClose, onDestroy, onChangeState, showModal, ensureModalRoot, show, close, destroy, createApp, createFog, KARTE_MODAL_ROOT, ACTION_HOOK_LABEL, getActionShadowRoot, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, widget };
3213
- export type { CloseTrigger, ActionVariables, ActionEventHandler, SystemConfig, CustomVariables, OnScrollContext, OnScrollFunction, ScrollDirection, LogLevel, Log, Event, ActionProps, ActionOptions, ActionHook, ActionCloseHook, ActionChangeStateHook, SendFunction, ActionHookLog, CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig };
2966
+ export { loadGlobalScript, loadGlobalStyle, applyGlobalCss, initialize, finalize, setAutoStart, getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, FontWeight, Justifies, Justify, Alignments, Alignment, FlexDirections, FlexDirection, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, BoxShadow, Style, TransitState, WritingModes, WritingMode, DateTime, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonColor, DefaultFormButtonColor, create, showAction, closeAction, destroyAction, loadStyle, applyCss, getActionRoot, onCreate, onShow, onClose, onDestroy, onChangeState, ACTION_HOOK_LABEL, showModal, ensureModalRoot, show, close, destroy, createApp, createFog, KARTE_MODAL_ROOT, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, widget };
2967
+ export type { CloseTrigger, ActionVariables, ActionEventHandler, SystemConfig, OnScrollContext, OnScrollFunction, ScrollDirection, LogLevel, Log, Event, ActionProps, ActionOptions, ActionHook, ActionCloseHook, ActionChangeStateHook, SendFunction, ActionHookLog, CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig };
3214
2968
  export { default as State } from './components/State.svelte';
3215
2969
  export { default as StateItem } from './components/StateItem.svelte';
3216
2970
  export { default as Modal } from './components/Modal.svelte';
@@ -1,5 +1,5 @@
1
- import { writable, get } from 'svelte/store';
2
1
  import 'svelte/easing';
2
+ import { writable, get } from 'svelte/store';
3
3
  import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, claim_component, claim_space, mount_component, insert_hydration, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, claim_element, children, attr, noop, listen, is_function, append_hydration, add_render_callback, create_in_transition, svg_element, claim_svg_element, binding_callbacks, destroy_each, text, claim_text, set_data, null_to_empty, src_url_equal } from 'svelte/internal';
4
4
  import { setContext, getContext, createEventDispatcher, onMount, onDestroy as onDestroy$1 } from 'svelte';
5
5
 
@@ -204,14 +204,6 @@ function hasSuffix(value, suffix) {
204
204
  return new RegExp(`[0-9]${suffix}$`).test(value);
205
205
  }
206
206
 
207
- /**
208
- * get store state value
209
- *
210
- * @deprecated 非推奨
211
- *
212
- * @internal
213
- */
214
- const getStoreState = get;
215
207
  /**
216
208
  * Store to handle action setting
217
209
  *
@@ -248,6 +240,15 @@ function setSetting(setting) {
248
240
  setStopped(!current.autoStart);
249
241
  return current;
250
242
  }
243
+ /**
244
+ * {@link resetSetting} function to reset action setting
245
+ *
246
+ * @internal
247
+ */
248
+ function resetSetting() {
249
+ actionSetting.set({ autoStart: true });
250
+ setStopped();
251
+ }
251
252
  /**
252
253
  * Store to read KARTE system config
253
254
  *
@@ -378,18 +379,6 @@ function setOpened(on) {
378
379
  * @internal
379
380
  */
380
381
  const closed = writable(false); // deprecated
381
- /**
382
- * {@link isClosed} function to check if action is clsoed.
383
- *
384
- * @returns Flag if action is closed / true: Closed, false: Not closed
385
- *
386
- * @deprecated 非推奨
387
- *
388
- * @internal
389
- */
390
- function isClosed() {
391
- return get(closed);
392
- }
393
382
  /**
394
383
  * {@link setClosed} function to set if action is closed.
395
384
  *
@@ -511,6 +500,13 @@ function setEventHandlers(handlers) {
511
500
  });
512
501
  return getEventHandlers();
513
502
  }
503
+ /**
504
+ * イベントハンドラーをリセットする
505
+ *
506
+ */
507
+ function resetEventHandlers() {
508
+ setEventHandlers({});
509
+ }
514
510
  /**
515
511
  * Store to handle destruction of action
516
512
  *
@@ -595,129 +591,18 @@ function setVariables(vars) {
595
591
  return getVariables();
596
592
  }
597
593
  /**
598
- * Store for form data
594
+ * 変数をリセットする
599
595
  *
600
- * @internal
601
596
  */
602
- const formData = writable({});
603
- /**
604
- * 非推奨
605
- *
606
- * @deprecated 非推奨
607
- *
608
- * @internal
609
- */
610
- const customHandlers = writable({});
611
- /**
612
- * 非推奨
613
- *
614
- * @deprecated 非推奨
615
- *
616
- * @internal
617
- */
618
- function getCustomHandlers() {
619
- return get(customHandlers);
597
+ function resetVariables() {
598
+ setVariables({});
620
599
  }
621
600
  /**
622
- * 非推奨
623
- *
624
- * @deprecated 非推奨
625
- *
626
- * @internal
627
- */
628
- function setCustomHandlers(handlers) {
629
- customHandlers.set(handlers);
630
- }
631
- /**
632
- * 非推奨
633
- *
634
- * @deprecated 非推奨
635
- *
636
- * @internal
637
- */
638
- function updateCustomHandlers(handlers) {
639
- customHandlers.update(current => {
640
- return { ...current, ...handlers };
641
- });
642
- return getCustomHandlers();
643
- }
644
- /**
645
- * 非推奨
646
- *
647
- * @deprecated 非推奨
648
- *
649
- * @internal
650
- */
651
- const customVariables = writable({});
652
- /**
653
- * 非推奨
654
- *
655
- * @deprecated 非推奨
656
- *
657
- * @internal
658
- */
659
- function getCustomVariables() {
660
- return get(customVariables);
661
- }
662
- /**
663
- * 非推奨
664
- *
665
- * @deprecated 非推奨
666
- *
667
- * @internal
668
- */
669
- function setCustomVariables(variables) {
670
- customVariables.set(variables);
671
- }
672
- /**
673
- * 非推奨
674
- *
675
- * @deprecated 非推奨
676
- *
677
- * @internal
678
- */
679
- function updateCustomVariables(variables) {
680
- customVariables.update(current => {
681
- return { ...current, ...variables };
682
- });
683
- return getCustomVariables();
684
- }
685
- /**
686
- * 非推奨
687
- *
688
- * @deprecated 非推奨
689
- *
690
- * @internal
691
- */
692
- function getActionSetting() {
693
- return get(actionSetting);
694
- }
695
- /**
696
- * 非推奨
697
- *
698
- * @deprecated 非推奨
699
- *
700
- * @internal
701
- */
702
- function setActionSetting(setting) {
703
- actionSetting.update(current => {
704
- return { ...current, ...setting };
705
- });
706
- const current = getActionSetting();
707
- setStopped(!current.autoStart);
708
- return current;
709
- }
710
- /**
711
- * 非推奨
712
- *
713
- * @deprecated 非推奨
601
+ * Store for form data
714
602
  *
715
603
  * @internal
716
604
  */
717
- function resetActionSetting() {
718
- actionSetting.set({ autoStart: true });
719
- setStopped();
720
- }
605
+ const formData = writable({});
721
606
 
722
607
  function isEmpty(value) {
723
608
  if (Array.isArray(value)) {
@@ -841,7 +726,7 @@ const handleState = (event) => {
841
726
  };
842
727
  /** @internal */
843
728
  const initialize = (setting) => {
844
- const newSetting = setActionSetting(setting);
729
+ const newSetting = setSetting(setting);
845
730
  if (newSetting.initialState) {
846
731
  setState$1(newSetting.initialState);
847
732
  }
@@ -854,11 +739,11 @@ const initialize = (setting) => {
854
739
  };
855
740
  /** @internal */
856
741
  const finalize = () => {
857
- resetActionSetting();
742
+ resetSetting();
858
743
  };
859
744
  /** @internal */
860
745
  const send_event = (event_name, values) => {
861
- const setting = getActionSetting();
746
+ const setting = getSetting();
862
747
  setting?.send?.(event_name, values);
863
748
  };
864
749
  function _moveTo(to) {
@@ -885,7 +770,7 @@ const closeApp = (trigger) => () => {
885
770
  };
886
771
  /** @internal */
887
772
  const runScript = (handlerName) => () => {
888
- const handlers = get(customHandlers);
773
+ const handlers = getEventHandlers();
889
774
  const handler = handlers[handlerName];
890
775
  if (!handler)
891
776
  return;
@@ -2182,7 +2067,7 @@ setWidgetHandlers({
2182
2067
  * @public
2183
2068
  */
2184
2069
  function setVal(name, value) {
2185
- customVariables.update(current => {
2070
+ variables.update(current => {
2186
2071
  if (valCallbacks[name]) {
2187
2072
  valCallbacks[name].forEach(cb => {
2188
2073
  cb({ newVal: value, oldVal: current[name], key: name });
@@ -8814,4 +8699,4 @@ class ImageBlock extends SvelteComponent {
8814
8699
  }
8815
8700
  }
8816
8701
 
8817
- export { ACTION_HOOK_LABEL, Alignments, AnimationStyles, BackgroundSizes, Box, ClipPaths, Countdown, Cursors, DefaultEdgePosition, DefaultFormButtonColor, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexDirections, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, applyCss, applyGlobalCss, close, closeAction, closed, collection$1 as collection, create, createApp, createFog, customHandlers, customVariables, destroy, destroyAction, destroyed, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getActionShadowRoot, getCustomHandlers, getCustomVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getStoreState, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isClosed, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, stopped, updateCustomHandlers, updateCustomVariables, variables, widget };
8702
+ export { ACTION_HOOK_LABEL, Alignments, AnimationStyles, BackgroundSizes, Box, ClipPaths, Countdown, Cursors, DefaultEdgePosition, DefaultFormButtonColor, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexDirections, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, applyCss, applyGlobalCss, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, 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, onDestroy, onScroll, onShow, onTime, resetEventHandlers, resetVariables, setAutoStart, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, variables, widget };
@@ -454,14 +454,6 @@ declare const DefaultFormButtonColor: {
454
454
  };
455
455
  /** @internal */
456
456
  type Store<T> = Writable_<T>; // Wrap svelte tools
457
- /**
458
- * get store state value
459
- *
460
- * @deprecated 非推奨
461
- *
462
- * @internal
463
- */
464
- declare const getStoreState: typeof get_;
465
457
  /**
466
458
  * KARTE のシステム設定情報
467
459
  *
@@ -569,12 +561,6 @@ declare function getState(): string;
569
561
  * @public
570
562
  */
571
563
  declare function getStates(): string[];
572
- /**
573
- * Store to handle visibility of action
574
- *
575
- * @internal
576
- */
577
- declare const opened: Store<boolean>;
578
564
  /**
579
565
  * アクションの表示・非表示の状態を取得する
580
566
  *
@@ -583,32 +569,6 @@ declare const opened: Store<boolean>;
583
569
  * @public
584
570
  */
585
571
  declare function isOpened(): boolean;
586
- /**
587
- * Store to handle visibility of action
588
- *
589
- * @deprecated 非推奨
590
- *
591
- * @internal
592
- */
593
- declare const closed: Store<boolean>; // deprecated
594
- /**
595
- * {@link isClosed} function to check if action is clsoed.
596
- *
597
- * @returns Flag if action is closed / true: Closed, false: Not closed
598
- *
599
- * @deprecated 非推奨
600
- *
601
- * @internal
602
- */
603
- declare function isClosed(): boolean;
604
- /**
605
- * {@link setClosed} function to set if action is closed.
606
- *
607
- * @deprecated 非推奨
608
- *
609
- * @internal
610
- */
611
- declare function setClosed(on: boolean): void;
612
572
  /**
613
573
  * Store to handle event handlers
614
574
  *
@@ -645,17 +605,10 @@ declare function setEventHandlers(handlers: {
645
605
  [key: string]: ActionEventHandler;
646
606
  };
647
607
  /**
648
- * Store to handle destruction of action
608
+ * イベントハンドラーをリセットする
649
609
  *
650
- * @internal
651
610
  */
652
- declare const destroyed: Store<boolean>;
653
- /**
654
- * Store to handle stopping action
655
- *
656
- * @internal
657
- */
658
- declare const stopped: Store<boolean>;
611
+ declare function resetEventHandlers(): void;
659
612
  /**
660
613
  * Store to handle variables
661
614
  *
@@ -683,6 +636,11 @@ declare function getVariables(): ActionVariables;
683
636
  * @internal
684
637
  */
685
638
  declare function setVariables(vars: ActionVariables): ActionVariables;
639
+ /**
640
+ * 変数をリセットする
641
+ *
642
+ */
643
+ declare function resetVariables(): void;
686
644
  /** @internal */
687
645
  interface FormData {
688
646
  [name: string]: {
@@ -697,101 +655,6 @@ interface FormData {
697
655
  * @internal
698
656
  */
699
657
  declare const formData: Writable_<FormData>;
700
- // -------- The following codes are deprecated --------
701
- /**
702
- * 非推奨
703
- *
704
- * @deprecated 非推奨
705
- *
706
- * @internal
707
- */
708
- type CustomVariables = {
709
- [key: string]: any;
710
- };
711
- /**
712
- * 非推奨
713
- *
714
- * @deprecated 非推奨
715
- *
716
- * @internal
717
- */
718
- declare const customHandlers: Store<{
719
- [key: string]: ActionEventHandler;
720
- }>;
721
- /**
722
- * 非推奨
723
- *
724
- * @deprecated 非推奨
725
- *
726
- * @internal
727
- */
728
- declare function getCustomHandlers(): {
729
- [key: string]: ActionEventHandler;
730
- };
731
- /**
732
- * 非推奨
733
- *
734
- * @deprecated 非推奨
735
- *
736
- * @internal
737
- */
738
- declare function setCustomHandlers(handlers: {
739
- [key: string]: ActionEventHandler;
740
- }): void;
741
- /**
742
- * 非推奨
743
- *
744
- * @deprecated 非推奨
745
- *
746
- * @internal
747
- */
748
- declare function updateCustomHandlers(handlers: {
749
- [key: string]: ActionEventHandler;
750
- }): {
751
- [key: string]: ActionEventHandler;
752
- };
753
- /**
754
- * 非推奨
755
- *
756
- * @deprecated 非推奨
757
- *
758
- * @internal
759
- */
760
- declare const customVariables: Store<{
761
- [key: string]: any;
762
- }>;
763
- /**
764
- * 非推奨
765
- *
766
- * @deprecated 非推奨
767
- *
768
- * @internal
769
- */
770
- declare function getCustomVariables(): CustomVariables;
771
- /**
772
- * 非推奨
773
- *
774
- * @deprecated 非推奨
775
- *
776
- * @internal
777
- */
778
- declare function setCustomVariables(variables: CustomVariables): void;
779
- /**
780
- * 非推奨
781
- *
782
- * @deprecated 非推奨
783
- *
784
- * @internal
785
- */
786
- declare function updateCustomVariables(variables: CustomVariables): CustomVariables;
787
- /**
788
- * 非推奨
789
- *
790
- * @deprecated 非推奨
791
- *
792
- * @internal
793
- */
794
- declare function setActionSetting(setting: ActionSetting): ActionSetting;
795
658
  /**
796
659
  * 閉じるアクショントリガー
797
660
  *
@@ -1476,14 +1339,6 @@ interface App {
1476
1339
  * @internal
1477
1340
  */
1478
1341
  declare function createApp<Props, Variables, VariablesQuery>(App: typeof SvelteComponentDev, options?: AppOptions<Props, Variables, VariablesQuery>): App;
1479
- /**
1480
- * 非推奨
1481
- *
1482
- * @deprecated 非推奨
1483
- *
1484
- * @internal
1485
- */
1486
- declare function getActionShadowRoot(): ShadowRoot | null;
1487
1342
  /**
1488
1343
  * 非推奨
1489
1344
  *
@@ -2258,6 +2113,11 @@ declare namespace widget {
2258
2113
  }): {
2259
2114
  [key: string]: ActionEventHandler;
2260
2115
  };
2116
+ /**
2117
+ * イベントハンドラーをリセットする
2118
+ *
2119
+ */
2120
+ function resetEventHandlers(): void;
2261
2121
  /**
2262
2122
  * Store to handle destruction of action
2263
2123
  *
@@ -2323,6 +2183,11 @@ declare namespace widget {
2323
2183
  * @internal
2324
2184
  */
2325
2185
  function setVariables(vars: ActionVariables): ActionVariables;
2186
+ /**
2187
+ * 変数をリセットする
2188
+ *
2189
+ */
2190
+ function resetVariables(): void;
2326
2191
  /** @internal */
2327
2192
  interface FormData {
2328
2193
  [name: string]: {
@@ -2337,117 +2202,6 @@ declare namespace widget {
2337
2202
  * @internal
2338
2203
  */
2339
2204
  const formData: Writable_<FormData>;
2340
- // -------- The following codes are deprecated --------
2341
- /**
2342
- * 非推奨
2343
- *
2344
- * @deprecated 非推奨
2345
- *
2346
- * @internal
2347
- */
2348
- type CustomVariables = {
2349
- [key: string]: any;
2350
- };
2351
- /**
2352
- * 非推奨
2353
- *
2354
- * @deprecated 非推奨
2355
- *
2356
- * @internal
2357
- */
2358
- const customHandlers: Store<{
2359
- [key: string]: ActionEventHandler;
2360
- }>;
2361
- /**
2362
- * 非推奨
2363
- *
2364
- * @deprecated 非推奨
2365
- *
2366
- * @internal
2367
- */
2368
- function getCustomHandlers(): {
2369
- [key: string]: ActionEventHandler;
2370
- };
2371
- /**
2372
- * 非推奨
2373
- *
2374
- * @deprecated 非推奨
2375
- *
2376
- * @internal
2377
- */
2378
- function setCustomHandlers(handlers: {
2379
- [key: string]: ActionEventHandler;
2380
- }): void;
2381
- /**
2382
- * 非推奨
2383
- *
2384
- * @deprecated 非推奨
2385
- *
2386
- * @internal
2387
- */
2388
- function updateCustomHandlers(handlers: {
2389
- [key: string]: ActionEventHandler;
2390
- }): {
2391
- [key: string]: ActionEventHandler;
2392
- };
2393
- /**
2394
- * 非推奨
2395
- *
2396
- * @deprecated 非推奨
2397
- *
2398
- * @internal
2399
- */
2400
- const customVariables: Store<{
2401
- [key: string]: any;
2402
- }>;
2403
- /**
2404
- * 非推奨
2405
- *
2406
- * @deprecated 非推奨
2407
- *
2408
- * @internal
2409
- */
2410
- function getCustomVariables(): CustomVariables;
2411
- /**
2412
- * 非推奨
2413
- *
2414
- * @deprecated 非推奨
2415
- *
2416
- * @internal
2417
- */
2418
- function setCustomVariables(variables: CustomVariables): void;
2419
- /**
2420
- * 非推奨
2421
- *
2422
- * @deprecated 非推奨
2423
- *
2424
- * @internal
2425
- */
2426
- function updateCustomVariables(variables: CustomVariables): CustomVariables;
2427
- /**
2428
- * 非推奨
2429
- *
2430
- * @deprecated 非推奨
2431
- *
2432
- * @internal
2433
- */
2434
- function getActionSetting(): ActionSetting;
2435
- /**
2436
- * 非推奨
2437
- *
2438
- * @deprecated 非推奨
2439
- *
2440
- * @internal
2441
- */
2442
- function setActionSetting(setting: ActionSetting): ActionSetting;
2443
- /**
2444
- * 非推奨
2445
- *
2446
- * @deprecated 非推奨
2447
- *
2448
- * @internal
2449
- */
2450
- function resetActionSetting(): void;
2451
2205
  /**
2452
2206
  * 閉じるアクショントリガー
2453
2207
  *
@@ -3209,8 +2963,8 @@ declare namespace widget {
3209
2963
  */
3210
2964
  export { showAction as show, closeAction as hide };
3211
2965
  }
3212
- export { loadGlobalScript, loadGlobalStyle, applyGlobalCss, initialize, finalize, setAutoStart, getState, setState, getStates, isOpened, getVariables, setVariables, getEventHandlers, setEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state, opened, closed, destroyed, stopped, isClosed, setClosed, getStoreState, getCustomVariables, setCustomVariables, updateCustomVariables, getCustomHandlers, setCustomHandlers, updateCustomHandlers, setActionSetting, customHandlers, customVariables, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, FontWeight, Justifies, Justify, Alignments, Alignment, FlexDirections, FlexDirection, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, BoxShadow, Style, TransitState, WritingModes, WritingMode, DateTime, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonColor, DefaultFormButtonColor, create, showAction, closeAction, destroyAction, loadStyle, applyCss, getActionRoot, onCreate, onShow, onClose, onDestroy, onChangeState, showModal, ensureModalRoot, show, close, destroy, createApp, createFog, KARTE_MODAL_ROOT, ACTION_HOOK_LABEL, getActionShadowRoot, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, widget };
3213
- export type { CloseTrigger, ActionVariables, ActionEventHandler, SystemConfig, CustomVariables, OnScrollContext, OnScrollFunction, ScrollDirection, LogLevel, Log, Event, ActionProps, ActionOptions, ActionHook, ActionCloseHook, ActionChangeStateHook, SendFunction, ActionHookLog, CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig };
2966
+ export { loadGlobalScript, loadGlobalStyle, applyGlobalCss, initialize, finalize, setAutoStart, getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, FontWeight, Justifies, Justify, Alignments, Alignment, FlexDirections, FlexDirection, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, BoxShadow, Style, TransitState, WritingModes, WritingMode, DateTime, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonColor, DefaultFormButtonColor, create, showAction, closeAction, destroyAction, loadStyle, applyCss, getActionRoot, onCreate, onShow, onClose, onDestroy, onChangeState, ACTION_HOOK_LABEL, showModal, ensureModalRoot, show, close, destroy, createApp, createFog, KARTE_MODAL_ROOT, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, widget };
2967
+ export type { CloseTrigger, ActionVariables, ActionEventHandler, SystemConfig, OnScrollContext, OnScrollFunction, ScrollDirection, LogLevel, Log, Event, ActionProps, ActionOptions, ActionHook, ActionCloseHook, ActionChangeStateHook, SendFunction, ActionHookLog, CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig };
3214
2968
  export { default as State } from './components/State.svelte';
3215
2969
  export { default as StateItem } from './components/StateItem.svelte';
3216
2970
  export { default as Modal } from './components/Modal.svelte';
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { writable, get } from 'svelte/store';
2
1
  import { linear, elasticOut, cubicOut } from 'svelte/easing';
2
+ import { writable, get } from 'svelte/store';
3
3
  import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, mount_component, insert, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, attr, noop, listen, is_function, append, add_render_callback, create_in_transition, svg_element, binding_callbacks, destroy_each, text, set_data, null_to_empty, src_url_equal } from 'svelte/internal';
4
4
  import { setContext, getContext, createEventDispatcher, onMount, onDestroy as onDestroy$1 } from 'svelte';
5
5
 
@@ -208,14 +208,6 @@ function randStr(digit = 8) {
208
208
  return Math.random().toString(32).substring(digit);
209
209
  }
210
210
 
211
- /**
212
- * get store state value
213
- *
214
- * @deprecated 非推奨
215
- *
216
- * @internal
217
- */
218
- const getStoreState = get;
219
211
  /**
220
212
  * Store to handle action setting
221
213
  *
@@ -252,6 +244,15 @@ function setSetting(setting) {
252
244
  setStopped(!current.autoStart);
253
245
  return current;
254
246
  }
247
+ /**
248
+ * {@link resetSetting} function to reset action setting
249
+ *
250
+ * @internal
251
+ */
252
+ function resetSetting() {
253
+ actionSetting.set({ autoStart: true });
254
+ setStopped(false);
255
+ }
255
256
  /**
256
257
  * Store to read KARTE system config
257
258
  *
@@ -380,18 +381,6 @@ function setOpened(on) {
380
381
  * @internal
381
382
  */
382
383
  const closed = writable(false); // deprecated
383
- /**
384
- * {@link isClosed} function to check if action is clsoed.
385
- *
386
- * @returns Flag if action is closed / true: Closed, false: Not closed
387
- *
388
- * @deprecated 非推奨
389
- *
390
- * @internal
391
- */
392
- function isClosed() {
393
- return get(closed);
394
- }
395
384
  /**
396
385
  * {@link setClosed} function to set if action is closed.
397
386
  *
@@ -513,6 +502,13 @@ function setEventHandlers(handlers) {
513
502
  });
514
503
  return getEventHandlers();
515
504
  }
505
+ /**
506
+ * イベントハンドラーをリセットする
507
+ *
508
+ */
509
+ function resetEventHandlers() {
510
+ setEventHandlers({});
511
+ }
516
512
  /**
517
513
  * Store to handle destruction of action
518
514
  *
@@ -597,129 +593,18 @@ function setVariables(vars) {
597
593
  return getVariables();
598
594
  }
599
595
  /**
600
- * Store for form data
596
+ * 変数をリセットする
601
597
  *
602
- * @internal
603
598
  */
604
- const formData = writable({});
605
- /**
606
- * 非推奨
607
- *
608
- * @deprecated 非推奨
609
- *
610
- * @internal
611
- */
612
- const customHandlers = writable({});
613
- /**
614
- * 非推奨
615
- *
616
- * @deprecated 非推奨
617
- *
618
- * @internal
619
- */
620
- function getCustomHandlers() {
621
- return get(customHandlers);
599
+ function resetVariables() {
600
+ setVariables({});
622
601
  }
623
602
  /**
624
- * 非推奨
625
- *
626
- * @deprecated 非推奨
627
- *
628
- * @internal
629
- */
630
- function setCustomHandlers(handlers) {
631
- customHandlers.set(handlers);
632
- }
633
- /**
634
- * 非推奨
635
- *
636
- * @deprecated 非推奨
637
- *
638
- * @internal
639
- */
640
- function updateCustomHandlers(handlers) {
641
- customHandlers.update(current => {
642
- return { ...current, ...handlers };
643
- });
644
- return getCustomHandlers();
645
- }
646
- /**
647
- * 非推奨
648
- *
649
- * @deprecated 非推奨
650
- *
651
- * @internal
652
- */
653
- const customVariables = writable({});
654
- /**
655
- * 非推奨
656
- *
657
- * @deprecated 非推奨
658
- *
659
- * @internal
660
- */
661
- function getCustomVariables() {
662
- return get(customVariables);
663
- }
664
- /**
665
- * 非推奨
666
- *
667
- * @deprecated 非推奨
668
- *
669
- * @internal
670
- */
671
- function setCustomVariables(variables) {
672
- customVariables.set(variables);
673
- }
674
- /**
675
- * 非推奨
676
- *
677
- * @deprecated 非推奨
678
- *
679
- * @internal
680
- */
681
- function updateCustomVariables(variables) {
682
- customVariables.update(current => {
683
- return { ...current, ...variables };
684
- });
685
- return getCustomVariables();
686
- }
687
- /**
688
- * 非推奨
689
- *
690
- * @deprecated 非推奨
691
- *
692
- * @internal
693
- */
694
- function getActionSetting() {
695
- return get(actionSetting);
696
- }
697
- /**
698
- * 非推奨
699
- *
700
- * @deprecated 非推奨
701
- *
702
- * @internal
703
- */
704
- function setActionSetting(setting) {
705
- actionSetting.update(current => {
706
- return { ...current, ...setting };
707
- });
708
- const current = getActionSetting();
709
- setStopped(!current.autoStart);
710
- return current;
711
- }
712
- /**
713
- * 非推奨
714
- *
715
- * @deprecated 非推奨
603
+ * Store for form data
716
604
  *
717
605
  * @internal
718
606
  */
719
- function resetActionSetting() {
720
- actionSetting.set({ autoStart: true });
721
- setStopped(false);
722
- }
607
+ const formData = writable({});
723
608
 
724
609
  function isEmpty(value) {
725
610
  if (Array.isArray(value)) {
@@ -839,7 +724,7 @@ const handleState = (event) => {
839
724
  };
840
725
  /** @internal */
841
726
  const initialize = (setting) => {
842
- const newSetting = setActionSetting(setting);
727
+ const newSetting = setSetting(setting);
843
728
  if (newSetting.initialState) {
844
729
  setState$1(newSetting.initialState);
845
730
  }
@@ -852,11 +737,11 @@ const initialize = (setting) => {
852
737
  };
853
738
  /** @internal */
854
739
  const finalize = () => {
855
- resetActionSetting();
740
+ resetSetting();
856
741
  };
857
742
  /** @internal */
858
743
  const send_event = (event_name, values) => {
859
- const setting = getActionSetting();
744
+ const setting = getSetting();
860
745
  setting?.send?.(event_name, values);
861
746
  };
862
747
  function _moveTo(to) {
@@ -883,7 +768,7 @@ const closeApp = (trigger) => () => {
883
768
  };
884
769
  /** @internal */
885
770
  const runScript = (handlerName) => () => {
886
- const handlers = get(customHandlers);
771
+ const handlers = getEventHandlers();
887
772
  const handler = handlers[handlerName];
888
773
  if (!handler)
889
774
  return;
@@ -2273,7 +2158,7 @@ setWidgetHandlers({
2273
2158
  * @public
2274
2159
  */
2275
2160
  function setVal(name, value) {
2276
- customVariables.update(current => {
2161
+ variables.update(current => {
2277
2162
  if (valCallbacks[name]) {
2278
2163
  valCallbacks[name].forEach(cb => {
2279
2164
  cb({ newVal: value, oldVal: current[name], key: name });
@@ -8306,4 +8191,4 @@ class ImageBlock extends SvelteComponent {
8306
8191
  }
8307
8192
  }
8308
8193
 
8309
- export { ACTION_HOOK_LABEL, Alignments, AnimationStyles, BackgroundSizes, Box, ClipPaths, Countdown, Cursors, DefaultEdgePosition, DefaultFormButtonColor, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexDirections, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, applyCss, applyGlobalCss, close, closeAction, closed, collection$1 as collection, create, createApp, createFog, customHandlers, customVariables, destroy, destroyAction, destroyed, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getActionShadowRoot, getCustomHandlers, getCustomVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getStoreState, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isClosed, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, stopped, updateCustomHandlers, updateCustomVariables, variables, widget };
8194
+ export { ACTION_HOOK_LABEL, Alignments, AnimationStyles, BackgroundSizes, Box, ClipPaths, Countdown, Cursors, DefaultEdgePosition, DefaultFormButtonColor, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexDirections, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, applyCss, applyGlobalCss, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, 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, onDestroy, onScroll, onShow, onTime, resetEventHandlers, resetVariables, setAutoStart, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, variables, widget };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.139-27967811.a85fab51",
3
+ "version": "1.1.139-27968061.3a293fdc",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",