@plaidev/karte-action-sdk 1.0.30 → 1.0.33
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 +14 -11
- package/dist/index.es.js +263 -258
- 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;
|
|
@@ -275,12 +276,14 @@ declare const collection: (config: {
|
|
|
275
276
|
set(key: string, value: string, cb: (err: Error | null) => void): void;
|
|
276
277
|
};
|
|
277
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 };
|
|
278
|
-
export { default as State } from './State.svelte';
|
|
279
|
-
export { default as
|
|
280
|
-
export { default as
|
|
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';
|
|
282
|
+
export { default as GridModalState } from './components/GridModalState.svelte';
|
|
283
|
+
export { default as Grid } from './components/Grid.svelte';
|
|
284
|
+
export { default as GridItem } from './components/GridItem.svelte';
|
|
281
285
|
export { default as Flex } from './components/Flex.svelte';
|
|
282
286
|
export { default as FlexItem } from './components/FlexItem.svelte';
|
|
283
|
-
export { default as Modal } from './components/Modal.svelte';
|
|
284
287
|
export { default as TextBlock } from './components/TextBlock.svelte';
|
|
285
288
|
export { default as TextButtonBlock } from './components/TextButtonBlock.svelte';
|
|
286
289
|
export { default as ImageBlock } from './components/ImageBlock.svelte';
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { writable, get } from 'svelte/store';
|
|
2
|
-
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, noop, element, attr, listen, null_to_empty, append,
|
|
2
|
+
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, noop, element, attr, listen, null_to_empty, append, binding_callbacks, svg_element, src_url_equal } from 'svelte/internal';
|
|
3
3
|
import { createEventDispatcher, onDestroy, onMount, setContext, getContext } from 'svelte';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -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 = {
|
|
@@ -482,7 +483,7 @@ function request(url, data, cb) {
|
|
|
482
483
|
xhr.send(JSON.stringify({ ...data }));
|
|
483
484
|
}
|
|
484
485
|
|
|
485
|
-
/* src/components/Normalize.svelte generated by Svelte v3.44.1 */
|
|
486
|
+
/* src/components/elements/Normalize.svelte generated by Svelte v3.44.1 */
|
|
486
487
|
|
|
487
488
|
function add_css$9(target) {
|
|
488
489
|
append_styles(target, "svelte-zmz1k7", "@import 'https://cdn.skypack.dev/normalize.css';");
|
|
@@ -495,7 +496,7 @@ class Normalize extends SvelteComponent {
|
|
|
495
496
|
}
|
|
496
497
|
}
|
|
497
498
|
|
|
498
|
-
/* src/State.svelte generated by Svelte v3.44.1 */
|
|
499
|
+
/* src/components/State.svelte generated by Svelte v3.44.1 */
|
|
499
500
|
|
|
500
501
|
function create_fragment$c(ctx) {
|
|
501
502
|
let normalize;
|
|
@@ -698,7 +699,7 @@ class StateItem extends SvelteComponent {
|
|
|
698
699
|
}
|
|
699
700
|
}
|
|
700
701
|
|
|
701
|
-
/* src/components/BackgroundOverray.svelte generated by Svelte v3.44.1 */
|
|
702
|
+
/* src/components/elements/BackgroundOverray.svelte generated by Svelte v3.44.1 */
|
|
702
703
|
|
|
703
704
|
function add_css$8(target) {
|
|
704
705
|
append_styles(target, "svelte-1h4b6e3", ".background.svelte-1h4b6e3{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3)}");
|
|
@@ -787,7 +788,7 @@ class BackgroundOverray extends SvelteComponent {
|
|
|
787
788
|
}
|
|
788
789
|
}
|
|
789
790
|
|
|
790
|
-
/* src/components/Animation.svelte generated by Svelte v3.44.1 */
|
|
791
|
+
/* src/components/elements/Animation.svelte generated by Svelte v3.44.1 */
|
|
791
792
|
|
|
792
793
|
function add_css$7(target) {
|
|
793
794
|
append_styles(target, "svelte-sa0cac", "@keyframes svelte-sa0cac-fade{0%{opacity:0}100%{opacity:1}}.fade.svelte-sa0cac{animation-name:svelte-sa0cac-fade;animation-duration:1s}@keyframes svelte-sa0cac-bounce{0%{opacity:0;transform:scale(0.3)}50%{opacity:1;transform:scale(1.05)}70%{transform:scale(0.9)}100%{transform:scale(1)}}.bounce.svelte-sa0cac{animation-name:svelte-sa0cac-bounce;animation-duration:1s}@keyframes svelte-sa0cac-slide-down{0%{transform:translate3d(0, -100%, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-down.svelte-sa0cac{animation-name:svelte-sa0cac-slide-down;animation-duration:1s;animation-delay:0.1s}@keyframes svelte-sa0cac-slide-up{0%{transform:translate3d(0, 100%, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-up.svelte-sa0cac{animation-name:svelte-sa0cac-slide-up;animation-duration:1s;animation-delay:0.1s}@keyframes svelte-sa0cac-slide-left{0%{transform:translate3d(100%, 0, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-left.svelte-sa0cac{animation-name:svelte-sa0cac-slide-left;animation-duration:1s;animation-delay:0.1s}@keyframes svelte-sa0cac-slide-right{0%{transform:translate3d(-100%, 0, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-right.svelte-sa0cac{animation-name:svelte-sa0cac-slide-right;animation-duration:1s;animation-delay:0.1s}");
|
|
@@ -872,7 +873,7 @@ function add_css$6(target) {
|
|
|
872
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)}");
|
|
873
874
|
}
|
|
874
875
|
|
|
875
|
-
// (
|
|
876
|
+
// (84:4) {#if closable}
|
|
876
877
|
function create_if_block(ctx) {
|
|
877
878
|
let button;
|
|
878
879
|
let svg;
|
|
@@ -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%");
|
|
@@ -895,7 +896,7 @@ function create_if_block(ctx) {
|
|
|
895
896
|
attr(svg, "fill", "none");
|
|
896
897
|
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
897
898
|
attr(button, "class", "close svelte-1bxl6mz");
|
|
898
|
-
attr(button, "style", button_style_value = "z-index:" + (/*$maximumZindex*/ ctx[
|
|
899
|
+
attr(button, "style", button_style_value = "z-index:" + (/*$maximumZindex*/ ctx[9] + 1) + "; " + /*_closeStyle*/ ctx[4] + "");
|
|
899
900
|
},
|
|
900
901
|
m(target, anchor) {
|
|
901
902
|
insert(target, button, anchor);
|
|
@@ -903,16 +904,16 @@ function create_if_block(ctx) {
|
|
|
903
904
|
append(svg, path);
|
|
904
905
|
|
|
905
906
|
if (!mounted) {
|
|
906
|
-
dispose = listen(button, "click", /*close*/ ctx[
|
|
907
|
+
dispose = listen(button, "click", /*close*/ ctx[10]);
|
|
907
908
|
mounted = true;
|
|
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
|
-
if (dirty & /*$maximumZindex, _closeStyle*/
|
|
916
|
+
if (dirty & /*$maximumZindex, _closeStyle*/ 528 && button_style_value !== (button_style_value = "z-index:" + (/*$maximumZindex*/ ctx[9] + 1) + "; " + /*_closeStyle*/ ctx[4] + "")) {
|
|
916
917
|
attr(button, "style", button_style_value);
|
|
917
918
|
}
|
|
918
919
|
},
|
|
@@ -924,16 +925,15 @@ function create_if_block(ctx) {
|
|
|
924
925
|
};
|
|
925
926
|
}
|
|
926
927
|
|
|
927
|
-
|
|
928
|
+
// (72:0) <Animation {animation}>
|
|
929
|
+
function create_default_slot$1(ctx) {
|
|
928
930
|
let div;
|
|
929
931
|
let t;
|
|
930
932
|
let div_style_value;
|
|
931
933
|
let current;
|
|
932
|
-
let
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
const default_slot_template = /*#slots*/ ctx[15].default;
|
|
936
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[14], null);
|
|
934
|
+
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
937
|
|
|
938
938
|
return {
|
|
939
939
|
c() {
|
|
@@ -944,7 +944,7 @@ function create_fragment$8(ctx) {
|
|
|
944
944
|
attr(div, "class", "modal svelte-1bxl6mz");
|
|
945
945
|
attr(div, "role", "dialog");
|
|
946
946
|
attr(div, "aria-modal", "true");
|
|
947
|
-
attr(div, "style", div_style_value = "" + /*pos*/ ctx[
|
|
947
|
+
attr(div, "style", div_style_value = "" + /*pos*/ ctx[7] + " " + /*marginStyle*/ ctx[6] + " " + /*_style*/ ctx[1] + "");
|
|
948
948
|
},
|
|
949
949
|
m(target, anchor) {
|
|
950
950
|
insert(target, div, anchor);
|
|
@@ -955,16 +955,11 @@ function create_fragment$8(ctx) {
|
|
|
955
955
|
default_slot.m(div, null);
|
|
956
956
|
}
|
|
957
957
|
|
|
958
|
-
/*div_binding*/ ctx[
|
|
958
|
+
/*div_binding*/ ctx[18](div);
|
|
959
959
|
current = true;
|
|
960
|
-
|
|
961
|
-
if (!mounted) {
|
|
962
|
-
dispose = listen(window, "keydown", /*handle_keydown*/ ctx[9]);
|
|
963
|
-
mounted = true;
|
|
964
|
-
}
|
|
965
960
|
},
|
|
966
|
-
p(ctx,
|
|
967
|
-
if (/*closable*/ ctx[
|
|
961
|
+
p(ctx, dirty) {
|
|
962
|
+
if (/*closable*/ ctx[2]) {
|
|
968
963
|
if (if_block) {
|
|
969
964
|
if_block.p(ctx, dirty);
|
|
970
965
|
} else {
|
|
@@ -978,21 +973,21 @@ function create_fragment$8(ctx) {
|
|
|
978
973
|
}
|
|
979
974
|
|
|
980
975
|
if (default_slot) {
|
|
981
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
976
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 524288)) {
|
|
982
977
|
update_slot_base(
|
|
983
978
|
default_slot,
|
|
984
979
|
default_slot_template,
|
|
985
980
|
ctx,
|
|
986
|
-
/*$$scope*/ ctx[
|
|
981
|
+
/*$$scope*/ ctx[19],
|
|
987
982
|
!current
|
|
988
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
989
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
983
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[19])
|
|
984
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[19], dirty, null),
|
|
990
985
|
null
|
|
991
986
|
);
|
|
992
987
|
}
|
|
993
988
|
}
|
|
994
989
|
|
|
995
|
-
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] + "")) {
|
|
996
991
|
attr(div, "style", div_style_value);
|
|
997
992
|
}
|
|
998
993
|
},
|
|
@@ -1009,7 +1004,80 @@ function create_fragment$8(ctx) {
|
|
|
1009
1004
|
if (detaching) detach(div);
|
|
1010
1005
|
if (if_block) if_block.d();
|
|
1011
1006
|
if (default_slot) default_slot.d(detaching);
|
|
1012
|
-
/*div_binding*/ ctx[
|
|
1007
|
+
/*div_binding*/ ctx[18](null);
|
|
1008
|
+
}
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
function create_fragment$8(ctx) {
|
|
1013
|
+
let backgroundoverray;
|
|
1014
|
+
let t;
|
|
1015
|
+
let animation_1;
|
|
1016
|
+
let current;
|
|
1017
|
+
let mounted;
|
|
1018
|
+
let dispose;
|
|
1019
|
+
|
|
1020
|
+
backgroundoverray = new BackgroundOverray({
|
|
1021
|
+
props: {
|
|
1022
|
+
backgroundOverray: /*backgroundOverray*/ ctx[8]
|
|
1023
|
+
}
|
|
1024
|
+
});
|
|
1025
|
+
|
|
1026
|
+
backgroundoverray.$on("click", /*close*/ ctx[10]);
|
|
1027
|
+
|
|
1028
|
+
animation_1 = new Animation({
|
|
1029
|
+
props: {
|
|
1030
|
+
animation: /*animation*/ ctx[0],
|
|
1031
|
+
$$slots: { default: [create_default_slot$1] },
|
|
1032
|
+
$$scope: { ctx }
|
|
1033
|
+
}
|
|
1034
|
+
});
|
|
1035
|
+
|
|
1036
|
+
return {
|
|
1037
|
+
c() {
|
|
1038
|
+
create_component(backgroundoverray.$$.fragment);
|
|
1039
|
+
t = space();
|
|
1040
|
+
create_component(animation_1.$$.fragment);
|
|
1041
|
+
},
|
|
1042
|
+
m(target, anchor) {
|
|
1043
|
+
mount_component(backgroundoverray, target, anchor);
|
|
1044
|
+
insert(target, t, anchor);
|
|
1045
|
+
mount_component(animation_1, target, anchor);
|
|
1046
|
+
current = true;
|
|
1047
|
+
|
|
1048
|
+
if (!mounted) {
|
|
1049
|
+
dispose = listen(window, "keydown", /*handle_keydown*/ ctx[11]);
|
|
1050
|
+
mounted = true;
|
|
1051
|
+
}
|
|
1052
|
+
},
|
|
1053
|
+
p(ctx, [dirty]) {
|
|
1054
|
+
const backgroundoverray_changes = {};
|
|
1055
|
+
if (dirty & /*backgroundOverray*/ 256) backgroundoverray_changes.backgroundOverray = /*backgroundOverray*/ ctx[8];
|
|
1056
|
+
backgroundoverray.$set(backgroundoverray_changes);
|
|
1057
|
+
const animation_1_changes = {};
|
|
1058
|
+
if (dirty & /*animation*/ 1) animation_1_changes.animation = /*animation*/ ctx[0];
|
|
1059
|
+
|
|
1060
|
+
if (dirty & /*$$scope, pos, marginStyle, _style, modal, $maximumZindex, _closeStyle, closeButtonColor, closable*/ 525054) {
|
|
1061
|
+
animation_1_changes.$$scope = { dirty, ctx };
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
animation_1.$set(animation_1_changes);
|
|
1065
|
+
},
|
|
1066
|
+
i(local) {
|
|
1067
|
+
if (current) return;
|
|
1068
|
+
transition_in(backgroundoverray.$$.fragment, local);
|
|
1069
|
+
transition_in(animation_1.$$.fragment, local);
|
|
1070
|
+
current = true;
|
|
1071
|
+
},
|
|
1072
|
+
o(local) {
|
|
1073
|
+
transition_out(backgroundoverray.$$.fragment, local);
|
|
1074
|
+
transition_out(animation_1.$$.fragment, local);
|
|
1075
|
+
current = false;
|
|
1076
|
+
},
|
|
1077
|
+
d(detaching) {
|
|
1078
|
+
destroy_component(backgroundoverray, detaching);
|
|
1079
|
+
if (detaching) detach(t);
|
|
1080
|
+
destroy_component(animation_1, detaching);
|
|
1013
1081
|
mounted = false;
|
|
1014
1082
|
dispose();
|
|
1015
1083
|
}
|
|
@@ -1017,35 +1085,21 @@ function create_fragment$8(ctx) {
|
|
|
1017
1085
|
}
|
|
1018
1086
|
|
|
1019
1087
|
function instance$8($$self, $$props, $$invalidate) {
|
|
1088
|
+
let backgroundOverray;
|
|
1089
|
+
let overwritePosition;
|
|
1090
|
+
let overwriteMargin;
|
|
1020
1091
|
let pos;
|
|
1021
1092
|
let marginStyle;
|
|
1022
1093
|
let $maximumZindex;
|
|
1023
|
-
component_subscribe($$self, maximumZindex, $$value => $$invalidate(
|
|
1094
|
+
component_subscribe($$self, maximumZindex, $$value => $$invalidate(9, $maximumZindex = $$value));
|
|
1024
1095
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
1096
|
+
let { placement = DefaultModalPlacement } = $$props;
|
|
1097
|
+
let { animation = 'none' } = $$props;
|
|
1098
|
+
let { _style = '' } = $$props;
|
|
1025
1099
|
let { closable = true } = $$props;
|
|
1026
1100
|
let { closeButtonColor = '#000000' } = $$props;
|
|
1027
1101
|
let { eventName = '' } = $$props;
|
|
1028
1102
|
let { eventValue = null } = $$props;
|
|
1029
|
-
let { position = 'center' } = $$props;
|
|
1030
|
-
const overwritePosition = isPreview() ? 'center' : position;
|
|
1031
|
-
|
|
1032
|
-
let { margin = {
|
|
1033
|
-
left: '0px',
|
|
1034
|
-
right: '0px',
|
|
1035
|
-
top: '0px',
|
|
1036
|
-
bottom: '0px'
|
|
1037
|
-
} } = $$props;
|
|
1038
|
-
|
|
1039
|
-
const overwriteMargin = isPreview()
|
|
1040
|
-
? {
|
|
1041
|
-
left: '0px',
|
|
1042
|
-
right: '0px',
|
|
1043
|
-
top: '0px',
|
|
1044
|
-
bottom: '0px'
|
|
1045
|
-
}
|
|
1046
|
-
: margin;
|
|
1047
|
-
|
|
1048
|
-
let { _style = '' } = $$props;
|
|
1049
1103
|
let { _closeStyle = '' } = $$props;
|
|
1050
1104
|
|
|
1051
1105
|
/**
|
|
@@ -1068,43 +1122,80 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
1068
1122
|
function div_binding($$value) {
|
|
1069
1123
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
1070
1124
|
modal = $$value;
|
|
1071
|
-
$$invalidate(
|
|
1125
|
+
$$invalidate(5, modal);
|
|
1072
1126
|
});
|
|
1073
1127
|
}
|
|
1074
1128
|
|
|
1075
1129
|
$$self.$$set = $$props => {
|
|
1076
|
-
if ('
|
|
1077
|
-
if ('
|
|
1078
|
-
if ('
|
|
1079
|
-
if ('
|
|
1080
|
-
if ('
|
|
1081
|
-
if ('
|
|
1082
|
-
if ('
|
|
1083
|
-
if ('_closeStyle' in $$props) $$invalidate(
|
|
1084
|
-
if ('$$scope' in $$props) $$invalidate(
|
|
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);
|
|
1137
|
+
if ('_closeStyle' in $$props) $$invalidate(4, _closeStyle = $$props._closeStyle);
|
|
1138
|
+
if ('$$scope' in $$props) $$invalidate(19, $$scope = $$props.$$scope);
|
|
1085
1139
|
};
|
|
1086
1140
|
|
|
1087
|
-
$$
|
|
1088
|
-
|
|
1141
|
+
$$self.$$.update = () => {
|
|
1142
|
+
if ($$self.$$.dirty & /*placement*/ 4096) {
|
|
1143
|
+
$$invalidate(8, backgroundOverray = placement && placement.backgroundOverlay != null
|
|
1144
|
+
? placement.backgroundOverlay
|
|
1145
|
+
: DefaultModalPlacement.backgroundOverlay);
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
if ($$self.$$.dirty & /*placement*/ 4096) {
|
|
1149
|
+
$$invalidate(16, overwritePosition = isPreview()
|
|
1150
|
+
? 'center'
|
|
1151
|
+
: placement && placement.position != null
|
|
1152
|
+
? placement.position
|
|
1153
|
+
: DefaultModalPlacement.position);
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
if ($$self.$$.dirty & /*placement*/ 4096) {
|
|
1157
|
+
$$invalidate(15, overwriteMargin = isPreview()
|
|
1158
|
+
? {
|
|
1159
|
+
left: '0px',
|
|
1160
|
+
right: '0px',
|
|
1161
|
+
top: '0px',
|
|
1162
|
+
bottom: '0px'
|
|
1163
|
+
}
|
|
1164
|
+
: placement && placement.margin != null
|
|
1165
|
+
? placement.margin
|
|
1166
|
+
: DefaultModalPlacement.margin);
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
if ($$self.$$.dirty & /*overwritePosition*/ 65536) {
|
|
1170
|
+
$$invalidate(7, pos = getPositionStyle(overwritePosition));
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
if ($$self.$$.dirty & /*overwriteMargin*/ 32768) {
|
|
1174
|
+
$$invalidate(6, marginStyle = getMarginStyle(overwriteMargin));
|
|
1175
|
+
}
|
|
1176
|
+
};
|
|
1089
1177
|
|
|
1090
1178
|
return [
|
|
1179
|
+
animation,
|
|
1180
|
+
_style,
|
|
1091
1181
|
closable,
|
|
1092
1182
|
closeButtonColor,
|
|
1093
|
-
_style,
|
|
1094
1183
|
_closeStyle,
|
|
1095
1184
|
modal,
|
|
1096
1185
|
marginStyle,
|
|
1097
1186
|
pos,
|
|
1187
|
+
backgroundOverray,
|
|
1098
1188
|
$maximumZindex,
|
|
1099
1189
|
close,
|
|
1100
1190
|
handle_keydown,
|
|
1191
|
+
placement,
|
|
1101
1192
|
eventName,
|
|
1102
1193
|
eventValue,
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
$$scope,
|
|
1194
|
+
overwriteMargin,
|
|
1195
|
+
overwritePosition,
|
|
1106
1196
|
slots,
|
|
1107
|
-
div_binding
|
|
1197
|
+
div_binding,
|
|
1198
|
+
$$scope
|
|
1108
1199
|
];
|
|
1109
1200
|
}
|
|
1110
1201
|
|
|
@@ -1119,14 +1210,14 @@ class Modal extends SvelteComponent {
|
|
|
1119
1210
|
create_fragment$8,
|
|
1120
1211
|
safe_not_equal,
|
|
1121
1212
|
{
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
_closeStyle:
|
|
1213
|
+
placement: 12,
|
|
1214
|
+
animation: 0,
|
|
1215
|
+
_style: 1,
|
|
1216
|
+
closable: 2,
|
|
1217
|
+
closeButtonColor: 3,
|
|
1218
|
+
eventName: 13,
|
|
1219
|
+
eventValue: 14,
|
|
1220
|
+
_closeStyle: 4
|
|
1130
1221
|
},
|
|
1131
1222
|
add_css$6
|
|
1132
1223
|
);
|
|
@@ -1249,12 +1340,12 @@ class Grid extends SvelteComponent {
|
|
|
1249
1340
|
}
|
|
1250
1341
|
}
|
|
1251
1342
|
|
|
1252
|
-
/* src/GridModalState.svelte generated by Svelte v3.44.1 */
|
|
1343
|
+
/* src/components/GridModalState.svelte generated by Svelte v3.44.1 */
|
|
1253
1344
|
|
|
1254
|
-
function
|
|
1345
|
+
function create_default_slot_2(ctx) {
|
|
1255
1346
|
let current;
|
|
1256
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
1257
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
1347
|
+
const default_slot_template = /*#slots*/ ctx[16].default;
|
|
1348
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[17], null);
|
|
1258
1349
|
|
|
1259
1350
|
return {
|
|
1260
1351
|
c() {
|
|
@@ -1269,15 +1360,15 @@ function create_default_slot_3(ctx) {
|
|
|
1269
1360
|
},
|
|
1270
1361
|
p(ctx, dirty) {
|
|
1271
1362
|
if (default_slot) {
|
|
1272
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
1363
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 131072)) {
|
|
1273
1364
|
update_slot_base(
|
|
1274
1365
|
default_slot,
|
|
1275
1366
|
default_slot_template,
|
|
1276
1367
|
ctx,
|
|
1277
|
-
/*$$scope*/ ctx[
|
|
1368
|
+
/*$$scope*/ ctx[17],
|
|
1278
1369
|
!current
|
|
1279
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
1280
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
1370
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[17])
|
|
1371
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[17], dirty, null),
|
|
1281
1372
|
null
|
|
1282
1373
|
);
|
|
1283
1374
|
}
|
|
@@ -1298,20 +1389,20 @@ function create_default_slot_3(ctx) {
|
|
|
1298
1389
|
};
|
|
1299
1390
|
}
|
|
1300
1391
|
|
|
1301
|
-
// (
|
|
1302
|
-
function
|
|
1392
|
+
// (85:2) <Modal {eventName} {eventValue} {closable} {closeButtonColor} {_closeStyle} _style={_modalStyle} on:close={close} >
|
|
1393
|
+
function create_default_slot_1(ctx) {
|
|
1303
1394
|
let grid;
|
|
1304
1395
|
let current;
|
|
1305
1396
|
|
|
1306
1397
|
grid = new Grid({
|
|
1307
1398
|
props: {
|
|
1308
|
-
width: /*width*/ ctx[
|
|
1309
|
-
height: /*height*/ ctx[
|
|
1310
|
-
rows: /*rows*/ ctx[
|
|
1311
|
-
columns: /*columns*/ ctx[
|
|
1312
|
-
gap: /*gap*/ ctx[
|
|
1313
|
-
background: /*background*/ ctx[
|
|
1314
|
-
$$slots: { default: [
|
|
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],
|
|
1405
|
+
$$slots: { default: [create_default_slot_2] },
|
|
1315
1406
|
$$scope: { ctx }
|
|
1316
1407
|
}
|
|
1317
1408
|
});
|
|
@@ -1326,14 +1417,14 @@ function create_default_slot_2(ctx) {
|
|
|
1326
1417
|
},
|
|
1327
1418
|
p(ctx, dirty) {
|
|
1328
1419
|
const grid_changes = {};
|
|
1329
|
-
if (dirty & /*width*/
|
|
1330
|
-
if (dirty & /*height*/
|
|
1331
|
-
if (dirty & /*rows*/
|
|
1332
|
-
if (dirty & /*columns*/
|
|
1333
|
-
if (dirty & /*gap*/
|
|
1334
|
-
if (dirty & /*background*/
|
|
1335
|
-
|
|
1336
|
-
if (dirty & /*$$scope*/
|
|
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) {
|
|
1337
1428
|
grid_changes.$$scope = { dirty, ctx };
|
|
1338
1429
|
}
|
|
1339
1430
|
|
|
@@ -1354,25 +1445,25 @@ function create_default_slot_2(ctx) {
|
|
|
1354
1445
|
};
|
|
1355
1446
|
}
|
|
1356
1447
|
|
|
1357
|
-
// (
|
|
1358
|
-
function
|
|
1448
|
+
// (84:0) <StateItem {path}>
|
|
1449
|
+
function create_default_slot(ctx) {
|
|
1359
1450
|
let modal;
|
|
1360
1451
|
let current;
|
|
1361
1452
|
|
|
1362
1453
|
modal = new Modal({
|
|
1363
1454
|
props: {
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
_style: /*_modalStyle*/ ctx[
|
|
1370
|
-
$$slots: { default: [
|
|
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],
|
|
1461
|
+
$$slots: { default: [create_default_slot_1] },
|
|
1371
1462
|
$$scope: { ctx }
|
|
1372
1463
|
}
|
|
1373
1464
|
});
|
|
1374
1465
|
|
|
1375
|
-
modal.$on("close", /*close*/ ctx[
|
|
1466
|
+
modal.$on("close", /*close*/ ctx[13]);
|
|
1376
1467
|
|
|
1377
1468
|
return {
|
|
1378
1469
|
c() {
|
|
@@ -1384,12 +1475,14 @@ function create_default_slot_1(ctx) {
|
|
|
1384
1475
|
},
|
|
1385
1476
|
p(ctx, dirty) {
|
|
1386
1477
|
const modal_changes = {};
|
|
1387
|
-
if (dirty & /*
|
|
1388
|
-
if (dirty & /*
|
|
1389
|
-
if (dirty & /*
|
|
1390
|
-
if (dirty & /*
|
|
1391
|
-
|
|
1392
|
-
if (dirty &
|
|
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) {
|
|
1393
1486
|
modal_changes.$$scope = { dirty, ctx };
|
|
1394
1487
|
}
|
|
1395
1488
|
|
|
@@ -1410,70 +1503,6 @@ function create_default_slot_1(ctx) {
|
|
|
1410
1503
|
};
|
|
1411
1504
|
}
|
|
1412
1505
|
|
|
1413
|
-
// (101:0) <StateItem {path}>
|
|
1414
|
-
function create_default_slot(ctx) {
|
|
1415
|
-
let backgroundoverray;
|
|
1416
|
-
let t;
|
|
1417
|
-
let animation_1;
|
|
1418
|
-
let current;
|
|
1419
|
-
|
|
1420
|
-
backgroundoverray = new BackgroundOverray({
|
|
1421
|
-
props: {
|
|
1422
|
-
backgroundOverray: /*_backgroundOverray*/ ctx[15]
|
|
1423
|
-
}
|
|
1424
|
-
});
|
|
1425
|
-
|
|
1426
|
-
backgroundoverray.$on("click", /*close*/ ctx[12]);
|
|
1427
|
-
|
|
1428
|
-
animation_1 = new Animation({
|
|
1429
|
-
props: {
|
|
1430
|
-
animation: /*animation*/ ctx[1],
|
|
1431
|
-
$$slots: { default: [create_default_slot_1] },
|
|
1432
|
-
$$scope: { ctx }
|
|
1433
|
-
}
|
|
1434
|
-
});
|
|
1435
|
-
|
|
1436
|
-
return {
|
|
1437
|
-
c() {
|
|
1438
|
-
create_component(backgroundoverray.$$.fragment);
|
|
1439
|
-
t = space();
|
|
1440
|
-
create_component(animation_1.$$.fragment);
|
|
1441
|
-
},
|
|
1442
|
-
m(target, anchor) {
|
|
1443
|
-
mount_component(backgroundoverray, target, anchor);
|
|
1444
|
-
insert(target, t, anchor);
|
|
1445
|
-
mount_component(animation_1, target, anchor);
|
|
1446
|
-
current = true;
|
|
1447
|
-
},
|
|
1448
|
-
p(ctx, dirty) {
|
|
1449
|
-
const animation_1_changes = {};
|
|
1450
|
-
if (dirty & /*animation*/ 2) animation_1_changes.animation = /*animation*/ ctx[1];
|
|
1451
|
-
|
|
1452
|
-
if (dirty & /*$$scope, closable, closeButtonColor, _closeStyle, _modalStyle, width, height, rows, columns, gap, background*/ 4198396) {
|
|
1453
|
-
animation_1_changes.$$scope = { dirty, ctx };
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
animation_1.$set(animation_1_changes);
|
|
1457
|
-
},
|
|
1458
|
-
i(local) {
|
|
1459
|
-
if (current) return;
|
|
1460
|
-
transition_in(backgroundoverray.$$.fragment, local);
|
|
1461
|
-
transition_in(animation_1.$$.fragment, local);
|
|
1462
|
-
current = true;
|
|
1463
|
-
},
|
|
1464
|
-
o(local) {
|
|
1465
|
-
transition_out(backgroundoverray.$$.fragment, local);
|
|
1466
|
-
transition_out(animation_1.$$.fragment, local);
|
|
1467
|
-
current = false;
|
|
1468
|
-
},
|
|
1469
|
-
d(detaching) {
|
|
1470
|
-
destroy_component(backgroundoverray, detaching);
|
|
1471
|
-
if (detaching) detach(t);
|
|
1472
|
-
destroy_component(animation_1, detaching);
|
|
1473
|
-
}
|
|
1474
|
-
};
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
1506
|
function create_fragment$6(ctx) {
|
|
1478
1507
|
let stateitem;
|
|
1479
1508
|
let current;
|
|
@@ -1498,7 +1527,7 @@ function create_fragment$6(ctx) {
|
|
|
1498
1527
|
const stateitem_changes = {};
|
|
1499
1528
|
if (dirty & /*path*/ 1) stateitem_changes.path = /*path*/ ctx[0];
|
|
1500
1529
|
|
|
1501
|
-
if (dirty & /*$$scope,
|
|
1530
|
+
if (dirty & /*$$scope, eventName, eventValue, closable, closeButtonColor, _closeStyle, _modalStyle, width, height, rows, columns, gap, background*/ 139262) {
|
|
1502
1531
|
stateitem_changes.$$scope = { dirty, ctx };
|
|
1503
1532
|
}
|
|
1504
1533
|
|
|
@@ -1523,11 +1552,9 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
1523
1552
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
1524
1553
|
let { path } = $$props;
|
|
1525
1554
|
let { placement = DefaultModalPlacement } = $$props;
|
|
1526
|
-
let { position = 'center' } = $$props;
|
|
1527
1555
|
let { animation = 'none' } = $$props;
|
|
1528
1556
|
let { _modalStyle = '' } = $$props;
|
|
1529
1557
|
let { closable = true } = $$props;
|
|
1530
|
-
let { backgroundOverray = false } = $$props;
|
|
1531
1558
|
let { closeButtonColor = '#000000' } = $$props;
|
|
1532
1559
|
let { eventName = '' } = $$props;
|
|
1533
1560
|
let { eventValue = null } = $$props;
|
|
@@ -1545,44 +1572,35 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
1545
1572
|
const dispatch = createEventDispatcher();
|
|
1546
1573
|
|
|
1547
1574
|
const close = () => {
|
|
1548
|
-
if (eventName) {
|
|
1549
|
-
send_event(eventName, eventValue);
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
1575
|
dispatch('close');
|
|
1553
1576
|
};
|
|
1554
1577
|
|
|
1555
|
-
const _position = placement.position ?? position;
|
|
1556
|
-
const margin = placement.margin;
|
|
1557
|
-
const _backgroundOverray = placement.backgroundOverlay ?? backgroundOverray;
|
|
1558
|
-
|
|
1559
1578
|
$$self.$$set = $$props => {
|
|
1560
1579
|
if ('path' in $$props) $$invalidate(0, path = $$props.path);
|
|
1561
|
-
if ('placement' in $$props) $$invalidate(
|
|
1562
|
-
if ('
|
|
1563
|
-
if ('
|
|
1564
|
-
if ('
|
|
1565
|
-
if ('
|
|
1566
|
-
if ('
|
|
1567
|
-
if ('
|
|
1568
|
-
if ('
|
|
1569
|
-
if ('
|
|
1570
|
-
if ('
|
|
1571
|
-
if ('
|
|
1572
|
-
if ('
|
|
1573
|
-
if ('
|
|
1574
|
-
if ('
|
|
1575
|
-
if ('
|
|
1576
|
-
if ('background' in $$props) $$invalidate(11, background = $$props.background);
|
|
1577
|
-
if ('$$scope' in $$props) $$invalidate(22, $$scope = $$props.$$scope);
|
|
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);
|
|
1578
1595
|
};
|
|
1579
1596
|
|
|
1580
1597
|
return [
|
|
1581
1598
|
path,
|
|
1582
|
-
animation,
|
|
1583
1599
|
_modalStyle,
|
|
1584
1600
|
closable,
|
|
1585
1601
|
closeButtonColor,
|
|
1602
|
+
eventName,
|
|
1603
|
+
eventValue,
|
|
1586
1604
|
_closeStyle,
|
|
1587
1605
|
width,
|
|
1588
1606
|
height,
|
|
@@ -1591,14 +1609,8 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
1591
1609
|
gap,
|
|
1592
1610
|
background,
|
|
1593
1611
|
close,
|
|
1594
|
-
_position,
|
|
1595
|
-
margin,
|
|
1596
|
-
_backgroundOverray,
|
|
1597
1612
|
placement,
|
|
1598
|
-
|
|
1599
|
-
backgroundOverray,
|
|
1600
|
-
eventName,
|
|
1601
|
-
eventValue,
|
|
1613
|
+
animation,
|
|
1602
1614
|
slots,
|
|
1603
1615
|
$$scope
|
|
1604
1616
|
];
|
|
@@ -1610,27 +1622,25 @@ class GridModalState extends SvelteComponent {
|
|
|
1610
1622
|
|
|
1611
1623
|
init(this, options, instance$6, create_fragment$6, safe_not_equal, {
|
|
1612
1624
|
path: 0,
|
|
1613
|
-
placement:
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
gap: 10,
|
|
1628
|
-
background: 11
|
|
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
|
|
1629
1639
|
});
|
|
1630
1640
|
}
|
|
1631
1641
|
}
|
|
1632
1642
|
|
|
1633
|
-
/* src/GridItem.svelte generated by Svelte v3.44.1 */
|
|
1643
|
+
/* src/components/GridItem.svelte generated by Svelte v3.44.1 */
|
|
1634
1644
|
|
|
1635
1645
|
function add_css$5(target) {
|
|
1636
1646
|
append_styles(target, "svelte-g0rfgr", ".grid-item.svelte-g0rfgr{word-break:break-all}");
|
|
@@ -2088,38 +2098,36 @@ function create_fragment$1(ctx) {
|
|
|
2088
2098
|
}
|
|
2089
2099
|
|
|
2090
2100
|
function instance$1($$self, $$props, $$invalidate) {
|
|
2091
|
-
let { text = '
|
|
2101
|
+
let { text = 'ボタンラベル' } = $$props;
|
|
2092
2102
|
|
|
2093
2103
|
/**
|
|
2094
2104
|
* {
|
|
2095
|
-
* "title": {"ja": "
|
|
2096
|
-
* "folder": {"ja": "
|
|
2105
|
+
* "title": {"ja": "イベントタイプ", "en": "Event Type"},
|
|
2106
|
+
* "folder": {"ja": "クリックイベント", "en": "Click Event"}
|
|
2097
2107
|
* }
|
|
2098
2108
|
*/
|
|
2099
2109
|
const dispatch = createEventDispatcher();
|
|
2100
2110
|
|
|
2101
2111
|
const click = () => {
|
|
2102
2112
|
if (eventName) {
|
|
2103
|
-
send_event(eventName
|
|
2113
|
+
send_event(eventName);
|
|
2104
2114
|
}
|
|
2105
2115
|
|
|
2106
2116
|
dispatch('click');
|
|
2107
2117
|
};
|
|
2108
2118
|
|
|
2109
2119
|
let { eventName = '' } = $$props;
|
|
2110
|
-
let { eventValue = null } = $$props;
|
|
2111
2120
|
let { _buttonStyle = 'color:#ffffff; font-size:14px; font-weight:bold; justify-content:center; align-items:center; padding:1px 6px 1px 6px;' } = $$props;
|
|
2112
2121
|
let { _style = 'background-color: #000000; border-radius:4px;' } = $$props;
|
|
2113
2122
|
|
|
2114
2123
|
$$self.$$set = $$props => {
|
|
2115
2124
|
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
|
2116
2125
|
if ('eventName' in $$props) $$invalidate(4, eventName = $$props.eventName);
|
|
2117
|
-
if ('eventValue' in $$props) $$invalidate(5, eventValue = $$props.eventValue);
|
|
2118
2126
|
if ('_buttonStyle' in $$props) $$invalidate(1, _buttonStyle = $$props._buttonStyle);
|
|
2119
2127
|
if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
|
|
2120
2128
|
};
|
|
2121
2129
|
|
|
2122
|
-
return [text, _buttonStyle, _style, click, eventName
|
|
2130
|
+
return [text, _buttonStyle, _style, click, eventName];
|
|
2123
2131
|
}
|
|
2124
2132
|
|
|
2125
2133
|
class TextButtonBlock extends SvelteComponent {
|
|
@@ -2135,7 +2143,6 @@ class TextButtonBlock extends SvelteComponent {
|
|
|
2135
2143
|
{
|
|
2136
2144
|
text: 0,
|
|
2137
2145
|
eventName: 4,
|
|
2138
|
-
eventValue: 5,
|
|
2139
2146
|
_buttonStyle: 1,
|
|
2140
2147
|
_style: 2
|
|
2141
2148
|
},
|
|
@@ -2208,36 +2215,35 @@ function create_fragment(ctx) {
|
|
|
2208
2215
|
}
|
|
2209
2216
|
|
|
2210
2217
|
function instance($$self, $$props, $$invalidate) {
|
|
2211
|
-
let { src = '' } = $$props;
|
|
2212
|
-
let { alt = '' } = $$props;
|
|
2213
|
-
let { eventName = '' } = $$props;
|
|
2214
|
-
let { eventValue = null } = $$props;
|
|
2215
|
-
let { _imageStyle = 'object-fit: contain;' } = $$props;
|
|
2216
|
-
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;
|
|
2217
2220
|
|
|
2218
2221
|
/**
|
|
2219
|
-
* {"title": {"ja": "
|
|
2222
|
+
* {"title": {"ja": "イベントタイプ", "en": "Event Type"}, "folder": {"ja": "クリックイベント", "en": "Click Event"}}
|
|
2220
2223
|
*/
|
|
2221
2224
|
const dispatch = createEventDispatcher();
|
|
2222
2225
|
|
|
2223
2226
|
const click = () => {
|
|
2224
2227
|
if (eventName) {
|
|
2225
|
-
send_event(eventName
|
|
2228
|
+
send_event(eventName);
|
|
2226
2229
|
}
|
|
2227
2230
|
|
|
2228
2231
|
dispatch('click');
|
|
2229
2232
|
};
|
|
2230
2233
|
|
|
2234
|
+
let { eventName = '' } = $$props;
|
|
2235
|
+
let { _imageStyle = 'object-fit: contain;' } = $$props;
|
|
2236
|
+
let { _style = '' } = $$props;
|
|
2237
|
+
|
|
2231
2238
|
$$self.$$set = $$props => {
|
|
2232
2239
|
if ('src' in $$props) $$invalidate(0, src = $$props.src);
|
|
2233
2240
|
if ('alt' in $$props) $$invalidate(1, alt = $$props.alt);
|
|
2234
2241
|
if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
|
|
2235
|
-
if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
|
|
2236
2242
|
if ('_imageStyle' in $$props) $$invalidate(2, _imageStyle = $$props._imageStyle);
|
|
2237
2243
|
if ('_style' in $$props) $$invalidate(3, _style = $$props._style);
|
|
2238
2244
|
};
|
|
2239
2245
|
|
|
2240
|
-
return [src, alt, _imageStyle, _style, click, eventName
|
|
2246
|
+
return [src, alt, _imageStyle, _style, click, eventName];
|
|
2241
2247
|
}
|
|
2242
2248
|
|
|
2243
2249
|
class ImageBlock extends SvelteComponent {
|
|
@@ -2254,7 +2260,6 @@ class ImageBlock extends SvelteComponent {
|
|
|
2254
2260
|
src: 0,
|
|
2255
2261
|
alt: 1,
|
|
2256
2262
|
eventName: 5,
|
|
2257
|
-
eventValue: 6,
|
|
2258
2263
|
_imageStyle: 2,
|
|
2259
2264
|
_style: 3
|
|
2260
2265
|
},
|
|
@@ -2263,4 +2268,4 @@ class ImageBlock extends SvelteComponent {
|
|
|
2263
2268
|
}
|
|
2264
2269
|
}
|
|
2265
2270
|
|
|
2266
|
-
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 };
|
|
2271
|
+
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.
|
|
3
|
+
"version": "1.0.33",
|
|
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": {
|