@plaidev/karte-action-sdk 1.0.25 → 1.0.28
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 +23 -9
- package/dist/index.es.js +466 -176
- package/package.json +24 -7
package/dist/index.es.d.ts
CHANGED
|
@@ -140,13 +140,6 @@ declare const ModalPositionTranslations: {
|
|
|
140
140
|
en: string;
|
|
141
141
|
};
|
|
142
142
|
};
|
|
143
|
-
type ModalMarginSides = "left" | "right" | "top" | "bottom";
|
|
144
|
-
type ModalMargin<T extends ModalMarginSides = ModalMarginSides> = {
|
|
145
|
-
side: T;
|
|
146
|
-
length: string;
|
|
147
|
-
};
|
|
148
|
-
type ModalMarginX = ModalMargin<"left" | "right">;
|
|
149
|
-
type ModalMarginY = ModalMargin<"top" | "bottom">;
|
|
150
143
|
declare const ModalMarginTranslations: {
|
|
151
144
|
left: {
|
|
152
145
|
ja: string;
|
|
@@ -165,6 +158,18 @@ declare const ModalMarginTranslations: {
|
|
|
165
158
|
en: string;
|
|
166
159
|
};
|
|
167
160
|
};
|
|
161
|
+
type ModalMargin = {
|
|
162
|
+
left: string;
|
|
163
|
+
right: string;
|
|
164
|
+
top: string;
|
|
165
|
+
bottom: string;
|
|
166
|
+
};
|
|
167
|
+
type ModalPlacement = {
|
|
168
|
+
position: ModalPosition;
|
|
169
|
+
margin: ModalMargin;
|
|
170
|
+
backgroundOverlay: boolean;
|
|
171
|
+
};
|
|
172
|
+
declare const DefaultModalPlacement: ModalPlacement;
|
|
168
173
|
type LongText = string;
|
|
169
174
|
type Url = string;
|
|
170
175
|
type Image = string;
|
|
@@ -204,6 +209,12 @@ declare const Repeats: readonly [
|
|
|
204
209
|
"no-repeat"
|
|
205
210
|
];
|
|
206
211
|
type Repeat = typeof Repeats[number];
|
|
212
|
+
declare const BackgroundSizes: readonly [
|
|
213
|
+
"cover",
|
|
214
|
+
"contain",
|
|
215
|
+
"auto"
|
|
216
|
+
];
|
|
217
|
+
type BackgroundSize = typeof BackgroundSizes[number];
|
|
207
218
|
type Style = string;
|
|
208
219
|
type StateName = string;
|
|
209
220
|
declare const handleFocus: (node: HTMLElement | null) => (e: any) => void;
|
|
@@ -212,17 +223,20 @@ declare const handleKeydown: (handlers: {
|
|
|
212
223
|
[eventName: string]: (e: any) => void;
|
|
213
224
|
}) => (e: any) => void;
|
|
214
225
|
declare const getPositionStyle: (position: ModalPosition) => string;
|
|
215
|
-
declare const getMarginStyle: (
|
|
226
|
+
declare const getMarginStyle: (margin: ModalMargin) => string;
|
|
216
227
|
declare function onScroll(fn: Function, rate: number): () => void;
|
|
217
228
|
declare function onTime(fn: Function, time: number): () => void;
|
|
218
229
|
declare function hasSuffix<Suffix extends "px" | "em" | "rem" | "%" | "fr" | "vw" | "vh" | "">(value: string, suffix: Suffix): value is `${number}${Suffix}`;
|
|
219
230
|
declare function toBr(text: string): string;
|
|
220
231
|
declare function randStr(digit?: number): string;
|
|
221
232
|
declare const _default: "dummy";
|
|
222
|
-
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,
|
|
233
|
+
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 };
|
|
223
234
|
export { default as State } from './State.svelte';
|
|
224
235
|
export { default as GridModalState } from './GridModalState.svelte';
|
|
225
236
|
export { default as GridItem } from './GridItem.svelte';
|
|
226
237
|
export { default as Flex } from './components/Flex.svelte';
|
|
227
238
|
export { default as FlexItem } from './components/FlexItem.svelte';
|
|
228
239
|
export { default as Modal } from './components/Modal.svelte';
|
|
240
|
+
export { default as TextBlock } from './components/TextBlock.svelte';
|
|
241
|
+
export { default as TextButtonBlock } from './components/TextButtonBlock.svelte';
|
|
242
|
+
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, element, attr, listen,
|
|
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, svg_element, binding_callbacks, src_url_equal } from 'svelte/internal';
|
|
3
3
|
import { createEventDispatcher, onDestroy, onMount, setContext, getContext } from 'svelte';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -66,16 +66,7 @@ const getPositionStyle = (position) => {
|
|
|
66
66
|
}, '')
|
|
67
67
|
.trimStart();
|
|
68
68
|
};
|
|
69
|
-
const getMarginStyle = (
|
|
70
|
-
const margin = {
|
|
71
|
-
left: '0',
|
|
72
|
-
right: '0',
|
|
73
|
-
top: '0',
|
|
74
|
-
bottom: '0',
|
|
75
|
-
};
|
|
76
|
-
modalMargins.forEach(modalMargin => {
|
|
77
|
-
margin[modalMargin.side] = modalMargin.length;
|
|
78
|
-
});
|
|
69
|
+
const getMarginStyle = (margin) => {
|
|
79
70
|
return `margin: ${margin.top} ${margin.right} ${margin.bottom} ${margin.left};`;
|
|
80
71
|
};
|
|
81
72
|
function onScroll(fn, rate) {
|
|
@@ -286,44 +277,55 @@ const ModalPositionTranslations = {
|
|
|
286
277
|
};
|
|
287
278
|
const ModalMarginTranslations = {
|
|
288
279
|
left: {
|
|
289
|
-
ja: '
|
|
280
|
+
ja: '左側からの距離',
|
|
290
281
|
en: 'Left',
|
|
291
282
|
},
|
|
292
283
|
right: {
|
|
293
|
-
ja: '
|
|
284
|
+
ja: '右側からの距離',
|
|
294
285
|
en: 'Right',
|
|
295
286
|
},
|
|
296
287
|
top: {
|
|
297
|
-
ja: '
|
|
288
|
+
ja: '上側からの距離',
|
|
298
289
|
en: 'Top',
|
|
299
290
|
},
|
|
300
291
|
bottom: {
|
|
301
|
-
ja: '
|
|
292
|
+
ja: '下側からの距離',
|
|
302
293
|
en: 'Bottom',
|
|
303
294
|
},
|
|
304
295
|
};
|
|
296
|
+
const DefaultModalPlacement = {
|
|
297
|
+
position: 'center',
|
|
298
|
+
margin: {
|
|
299
|
+
left: '0px',
|
|
300
|
+
right: '0px',
|
|
301
|
+
top: '0px',
|
|
302
|
+
bottom: '0px',
|
|
303
|
+
},
|
|
304
|
+
backgroundOverlay: true,
|
|
305
|
+
};
|
|
305
306
|
const LengthUnits = ['px', 'em', 'rem', 'vw', 'fr', '%'];
|
|
306
307
|
const Justifies = ['flex-start', 'center', 'flex-end'];
|
|
307
308
|
const Alignments = ['flex-start', 'center', 'flex-end'];
|
|
308
309
|
const ObjectFits = ['fill', 'contain', 'cover'];
|
|
309
310
|
const Repeats = ['repeat', 'space', 'round', 'no-repeat'];
|
|
311
|
+
const BackgroundSizes = ['cover', 'contain', 'auto'];
|
|
310
312
|
|
|
311
313
|
/* src/components/Normalize.svelte generated by Svelte v3.44.1 */
|
|
312
314
|
|
|
313
|
-
function add_css$
|
|
315
|
+
function add_css$9(target) {
|
|
314
316
|
append_styles(target, "svelte-zmz1k7", "@import 'https://cdn.skypack.dev/normalize.css';");
|
|
315
317
|
}
|
|
316
318
|
|
|
317
319
|
class Normalize extends SvelteComponent {
|
|
318
320
|
constructor(options) {
|
|
319
321
|
super();
|
|
320
|
-
init(this, options, null, null, safe_not_equal, {}, add_css$
|
|
322
|
+
init(this, options, null, null, safe_not_equal, {}, add_css$9);
|
|
321
323
|
}
|
|
322
324
|
}
|
|
323
325
|
|
|
324
326
|
/* src/State.svelte generated by Svelte v3.44.1 */
|
|
325
327
|
|
|
326
|
-
function create_fragment$
|
|
328
|
+
function create_fragment$c(ctx) {
|
|
327
329
|
let normalize;
|
|
328
330
|
let t;
|
|
329
331
|
let current;
|
|
@@ -382,7 +384,7 @@ function create_fragment$9(ctx) {
|
|
|
382
384
|
};
|
|
383
385
|
}
|
|
384
386
|
|
|
385
|
-
function instance$
|
|
387
|
+
function instance$c($$self, $$props, $$invalidate) {
|
|
386
388
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
387
389
|
|
|
388
390
|
$$self.$$set = $$props => {
|
|
@@ -395,7 +397,7 @@ function instance$9($$self, $$props, $$invalidate) {
|
|
|
395
397
|
class State extends SvelteComponent {
|
|
396
398
|
constructor(options) {
|
|
397
399
|
super();
|
|
398
|
-
init(this, options, instance$
|
|
400
|
+
init(this, options, instance$c, create_fragment$c, safe_not_equal, {});
|
|
399
401
|
}
|
|
400
402
|
}
|
|
401
403
|
|
|
@@ -448,7 +450,7 @@ function create_if_block$2(ctx) {
|
|
|
448
450
|
};
|
|
449
451
|
}
|
|
450
452
|
|
|
451
|
-
function create_fragment$
|
|
453
|
+
function create_fragment$b(ctx) {
|
|
452
454
|
let if_block_anchor;
|
|
453
455
|
let current;
|
|
454
456
|
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$2(ctx);
|
|
@@ -503,7 +505,7 @@ function create_fragment$8(ctx) {
|
|
|
503
505
|
};
|
|
504
506
|
}
|
|
505
507
|
|
|
506
|
-
function instance$
|
|
508
|
+
function instance$b($$self, $$props, $$invalidate) {
|
|
507
509
|
let $state;
|
|
508
510
|
component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
|
|
509
511
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
@@ -520,13 +522,13 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
520
522
|
class StateItem extends SvelteComponent {
|
|
521
523
|
constructor(options) {
|
|
522
524
|
super();
|
|
523
|
-
init(this, options, instance$
|
|
525
|
+
init(this, options, instance$b, create_fragment$b, safe_not_equal, { path: 0 });
|
|
524
526
|
}
|
|
525
527
|
}
|
|
526
528
|
|
|
527
529
|
/* src/components/BackgroundOverray.svelte generated by Svelte v3.44.1 */
|
|
528
530
|
|
|
529
|
-
function add_css$
|
|
531
|
+
function add_css$8(target) {
|
|
530
532
|
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)}");
|
|
531
533
|
}
|
|
532
534
|
|
|
@@ -558,7 +560,7 @@ function create_if_block$1(ctx) {
|
|
|
558
560
|
};
|
|
559
561
|
}
|
|
560
562
|
|
|
561
|
-
function create_fragment$
|
|
563
|
+
function create_fragment$a(ctx) {
|
|
562
564
|
let if_block_anchor;
|
|
563
565
|
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$1(ctx);
|
|
564
566
|
|
|
@@ -594,7 +596,7 @@ function create_fragment$7(ctx) {
|
|
|
594
596
|
};
|
|
595
597
|
}
|
|
596
598
|
|
|
597
|
-
function instance$
|
|
599
|
+
function instance$a($$self, $$props, $$invalidate) {
|
|
598
600
|
let { backgroundOverray = false } = $$props;
|
|
599
601
|
const dispatch = createEventDispatcher();
|
|
600
602
|
const click_handler = () => dispatch('click');
|
|
@@ -609,17 +611,17 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
609
611
|
class BackgroundOverray extends SvelteComponent {
|
|
610
612
|
constructor(options) {
|
|
611
613
|
super();
|
|
612
|
-
init(this, options, instance$
|
|
614
|
+
init(this, options, instance$a, create_fragment$a, safe_not_equal, { backgroundOverray: 0 }, add_css$8);
|
|
613
615
|
}
|
|
614
616
|
}
|
|
615
617
|
|
|
616
618
|
/* src/components/Animation.svelte generated by Svelte v3.44.1 */
|
|
617
619
|
|
|
618
|
-
function add_css$
|
|
620
|
+
function add_css$7(target) {
|
|
619
621
|
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}");
|
|
620
622
|
}
|
|
621
623
|
|
|
622
|
-
function create_fragment$
|
|
624
|
+
function create_fragment$9(ctx) {
|
|
623
625
|
let div;
|
|
624
626
|
let current;
|
|
625
627
|
const default_slot_template = /*#slots*/ ctx[3].default;
|
|
@@ -672,7 +674,7 @@ function create_fragment$6(ctx) {
|
|
|
672
674
|
};
|
|
673
675
|
}
|
|
674
676
|
|
|
675
|
-
function instance$
|
|
677
|
+
function instance$9($$self, $$props, $$invalidate) {
|
|
676
678
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
677
679
|
let { animation = 'none' } = $$props;
|
|
678
680
|
const overwriteAnimation = isPreview() ? 'none' : animation;
|
|
@@ -688,17 +690,17 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
688
690
|
class Animation extends SvelteComponent {
|
|
689
691
|
constructor(options) {
|
|
690
692
|
super();
|
|
691
|
-
init(this, options, instance$
|
|
693
|
+
init(this, options, instance$9, create_fragment$9, safe_not_equal, { animation: 1 }, add_css$7);
|
|
692
694
|
}
|
|
693
695
|
}
|
|
694
696
|
|
|
695
697
|
/* src/components/Modal.svelte generated by Svelte v3.44.1 */
|
|
696
698
|
|
|
697
|
-
function add_css$
|
|
699
|
+
function add_css$6(target) {
|
|
698
700
|
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)}");
|
|
699
701
|
}
|
|
700
702
|
|
|
701
|
-
// (
|
|
703
|
+
// (79:2) {#if closable}
|
|
702
704
|
function create_if_block(ctx) {
|
|
703
705
|
let button;
|
|
704
706
|
let svg;
|
|
@@ -750,7 +752,7 @@ function create_if_block(ctx) {
|
|
|
750
752
|
};
|
|
751
753
|
}
|
|
752
754
|
|
|
753
|
-
function create_fragment$
|
|
755
|
+
function create_fragment$8(ctx) {
|
|
754
756
|
let div;
|
|
755
757
|
let t;
|
|
756
758
|
let div_style_value;
|
|
@@ -758,8 +760,8 @@ function create_fragment$5(ctx) {
|
|
|
758
760
|
let mounted;
|
|
759
761
|
let dispose;
|
|
760
762
|
let if_block = /*closable*/ ctx[0] && create_if_block(ctx);
|
|
761
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
762
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
763
|
+
const default_slot_template = /*#slots*/ ctx[15].default;
|
|
764
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[14], null);
|
|
763
765
|
|
|
764
766
|
return {
|
|
765
767
|
c() {
|
|
@@ -770,7 +772,7 @@ function create_fragment$5(ctx) {
|
|
|
770
772
|
attr(div, "class", "modal svelte-1bxl6mz");
|
|
771
773
|
attr(div, "role", "dialog");
|
|
772
774
|
attr(div, "aria-modal", "true");
|
|
773
|
-
attr(div, "style", div_style_value = "" + /*pos*/ ctx[6] + " " + /*
|
|
775
|
+
attr(div, "style", div_style_value = "" + /*pos*/ ctx[6] + " " + /*marginStyle*/ ctx[5] + " " + /*_style*/ ctx[2] + "");
|
|
774
776
|
},
|
|
775
777
|
m(target, anchor) {
|
|
776
778
|
insert(target, div, anchor);
|
|
@@ -781,7 +783,7 @@ function create_fragment$5(ctx) {
|
|
|
781
783
|
default_slot.m(div, null);
|
|
782
784
|
}
|
|
783
785
|
|
|
784
|
-
/*div_binding*/ ctx[
|
|
786
|
+
/*div_binding*/ ctx[16](div);
|
|
785
787
|
current = true;
|
|
786
788
|
|
|
787
789
|
if (!mounted) {
|
|
@@ -804,21 +806,21 @@ function create_fragment$5(ctx) {
|
|
|
804
806
|
}
|
|
805
807
|
|
|
806
808
|
if (default_slot) {
|
|
807
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
809
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 16384)) {
|
|
808
810
|
update_slot_base(
|
|
809
811
|
default_slot,
|
|
810
812
|
default_slot_template,
|
|
811
813
|
ctx,
|
|
812
|
-
/*$$scope*/ ctx[
|
|
814
|
+
/*$$scope*/ ctx[14],
|
|
813
815
|
!current
|
|
814
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
815
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
816
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[14])
|
|
817
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[14], dirty, null),
|
|
816
818
|
null
|
|
817
819
|
);
|
|
818
820
|
}
|
|
819
821
|
}
|
|
820
822
|
|
|
821
|
-
if (!current || dirty & /*pos,
|
|
823
|
+
if (!current || dirty & /*pos, marginStyle, _style*/ 100 && div_style_value !== (div_style_value = "" + /*pos*/ ctx[6] + " " + /*marginStyle*/ ctx[5] + " " + /*_style*/ ctx[2] + "")) {
|
|
822
824
|
attr(div, "style", div_style_value);
|
|
823
825
|
}
|
|
824
826
|
},
|
|
@@ -835,16 +837,16 @@ function create_fragment$5(ctx) {
|
|
|
835
837
|
if (detaching) detach(div);
|
|
836
838
|
if (if_block) if_block.d();
|
|
837
839
|
if (default_slot) default_slot.d(detaching);
|
|
838
|
-
/*div_binding*/ ctx[
|
|
840
|
+
/*div_binding*/ ctx[16](null);
|
|
839
841
|
mounted = false;
|
|
840
842
|
dispose();
|
|
841
843
|
}
|
|
842
844
|
};
|
|
843
845
|
}
|
|
844
846
|
|
|
845
|
-
function instance$
|
|
847
|
+
function instance$8($$self, $$props, $$invalidate) {
|
|
846
848
|
let pos;
|
|
847
|
-
let
|
|
849
|
+
let marginStyle;
|
|
848
850
|
let $maximumZindex;
|
|
849
851
|
component_subscribe($$self, maximumZindex, $$value => $$invalidate(7, $maximumZindex = $$value));
|
|
850
852
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
@@ -854,8 +856,23 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
854
856
|
let { eventValue = null } = $$props;
|
|
855
857
|
let { position = 'center' } = $$props;
|
|
856
858
|
const overwritePosition = isPreview() ? 'center' : position;
|
|
857
|
-
|
|
858
|
-
let {
|
|
859
|
+
|
|
860
|
+
let { margin = {
|
|
861
|
+
left: '0px',
|
|
862
|
+
right: '0px',
|
|
863
|
+
top: '0px',
|
|
864
|
+
bottom: '0px'
|
|
865
|
+
} } = $$props;
|
|
866
|
+
|
|
867
|
+
const overwriteMargin = isPreview()
|
|
868
|
+
? {
|
|
869
|
+
left: '0px',
|
|
870
|
+
right: '0px',
|
|
871
|
+
top: '0px',
|
|
872
|
+
bottom: '0px'
|
|
873
|
+
}
|
|
874
|
+
: margin;
|
|
875
|
+
|
|
859
876
|
let { _style = '' } = $$props;
|
|
860
877
|
let { _closeStyle = '' } = $$props;
|
|
861
878
|
|
|
@@ -889,20 +906,14 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
889
906
|
if ('eventName' in $$props) $$invalidate(10, eventName = $$props.eventName);
|
|
890
907
|
if ('eventValue' in $$props) $$invalidate(11, eventValue = $$props.eventValue);
|
|
891
908
|
if ('position' in $$props) $$invalidate(12, position = $$props.position);
|
|
892
|
-
if ('
|
|
893
|
-
if ('modalMarginY' in $$props) $$invalidate(14, modalMarginY = $$props.modalMarginY);
|
|
909
|
+
if ('margin' in $$props) $$invalidate(13, margin = $$props.margin);
|
|
894
910
|
if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
|
|
895
911
|
if ('_closeStyle' in $$props) $$invalidate(3, _closeStyle = $$props._closeStyle);
|
|
896
|
-
if ('$$scope' in $$props) $$invalidate(
|
|
897
|
-
};
|
|
898
|
-
|
|
899
|
-
$$self.$$.update = () => {
|
|
900
|
-
if ($$self.$$.dirty & /*modalMarginX, modalMarginY*/ 24576) {
|
|
901
|
-
$$invalidate(5, margin = getMarginStyle([modalMarginX, modalMarginY]));
|
|
902
|
-
}
|
|
912
|
+
if ('$$scope' in $$props) $$invalidate(14, $$scope = $$props.$$scope);
|
|
903
913
|
};
|
|
904
914
|
|
|
905
915
|
$$invalidate(6, pos = getPositionStyle(overwritePosition));
|
|
916
|
+
$$invalidate(5, marginStyle = getMarginStyle(overwriteMargin));
|
|
906
917
|
|
|
907
918
|
return [
|
|
908
919
|
closable,
|
|
@@ -910,7 +921,7 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
910
921
|
_style,
|
|
911
922
|
_closeStyle,
|
|
912
923
|
modal,
|
|
913
|
-
|
|
924
|
+
marginStyle,
|
|
914
925
|
pos,
|
|
915
926
|
$maximumZindex,
|
|
916
927
|
close,
|
|
@@ -918,8 +929,7 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
918
929
|
eventName,
|
|
919
930
|
eventValue,
|
|
920
931
|
position,
|
|
921
|
-
|
|
922
|
-
modalMarginY,
|
|
932
|
+
margin,
|
|
923
933
|
$$scope,
|
|
924
934
|
slots,
|
|
925
935
|
div_binding
|
|
@@ -933,8 +943,8 @@ class Modal extends SvelteComponent {
|
|
|
933
943
|
init(
|
|
934
944
|
this,
|
|
935
945
|
options,
|
|
936
|
-
instance$
|
|
937
|
-
create_fragment$
|
|
946
|
+
instance$8,
|
|
947
|
+
create_fragment$8,
|
|
938
948
|
safe_not_equal,
|
|
939
949
|
{
|
|
940
950
|
closable: 0,
|
|
@@ -942,19 +952,18 @@ class Modal extends SvelteComponent {
|
|
|
942
952
|
eventName: 10,
|
|
943
953
|
eventValue: 11,
|
|
944
954
|
position: 12,
|
|
945
|
-
|
|
946
|
-
modalMarginY: 14,
|
|
955
|
+
margin: 13,
|
|
947
956
|
_style: 2,
|
|
948
957
|
_closeStyle: 3
|
|
949
958
|
},
|
|
950
|
-
add_css$
|
|
959
|
+
add_css$6
|
|
951
960
|
);
|
|
952
961
|
}
|
|
953
962
|
}
|
|
954
963
|
|
|
955
964
|
/* src/components/Grid.svelte generated by Svelte v3.44.1 */
|
|
956
965
|
|
|
957
|
-
function create_fragment$
|
|
966
|
+
function create_fragment$7(ctx) {
|
|
958
967
|
let div;
|
|
959
968
|
let current;
|
|
960
969
|
const default_slot_template = /*#slots*/ ctx[8].default;
|
|
@@ -1012,7 +1021,7 @@ function create_fragment$4(ctx) {
|
|
|
1012
1021
|
};
|
|
1013
1022
|
}
|
|
1014
1023
|
|
|
1015
|
-
function instance$
|
|
1024
|
+
function instance$7($$self, $$props, $$invalidate) {
|
|
1016
1025
|
let _style;
|
|
1017
1026
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
1018
1027
|
let { width = '512px' } = $$props;
|
|
@@ -1057,7 +1066,7 @@ class Grid extends SvelteComponent {
|
|
|
1057
1066
|
constructor(options) {
|
|
1058
1067
|
super();
|
|
1059
1068
|
|
|
1060
|
-
init(this, options, instance$
|
|
1069
|
+
init(this, options, instance$7, create_fragment$7, safe_not_equal, {
|
|
1061
1070
|
width: 1,
|
|
1062
1071
|
height: 2,
|
|
1063
1072
|
rows: 3,
|
|
@@ -1072,8 +1081,8 @@ class Grid extends SvelteComponent {
|
|
|
1072
1081
|
|
|
1073
1082
|
function create_default_slot_3(ctx) {
|
|
1074
1083
|
let current;
|
|
1075
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
1076
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
1084
|
+
const default_slot_template = /*#slots*/ ctx[21].default;
|
|
1085
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[22], null);
|
|
1077
1086
|
|
|
1078
1087
|
return {
|
|
1079
1088
|
c() {
|
|
@@ -1088,15 +1097,15 @@ function create_default_slot_3(ctx) {
|
|
|
1088
1097
|
},
|
|
1089
1098
|
p(ctx, dirty) {
|
|
1090
1099
|
if (default_slot) {
|
|
1091
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
1100
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 4194304)) {
|
|
1092
1101
|
update_slot_base(
|
|
1093
1102
|
default_slot,
|
|
1094
1103
|
default_slot_template,
|
|
1095
1104
|
ctx,
|
|
1096
|
-
/*$$scope*/ ctx[
|
|
1105
|
+
/*$$scope*/ ctx[22],
|
|
1097
1106
|
!current
|
|
1098
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
1099
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
1107
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[22])
|
|
1108
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[22], dirty, null),
|
|
1100
1109
|
null
|
|
1101
1110
|
);
|
|
1102
1111
|
}
|
|
@@ -1117,19 +1126,19 @@ function create_default_slot_3(ctx) {
|
|
|
1117
1126
|
};
|
|
1118
1127
|
}
|
|
1119
1128
|
|
|
1120
|
-
// (104:4) <Modal {closable} {closeButtonColor} {_closeStyle}
|
|
1129
|
+
// (104:4) <Modal {closable} {closeButtonColor} {_closeStyle} position={_position} {margin} _style={_modalStyle} on:close={close} >
|
|
1121
1130
|
function create_default_slot_2(ctx) {
|
|
1122
1131
|
let grid;
|
|
1123
1132
|
let current;
|
|
1124
1133
|
|
|
1125
1134
|
grid = new Grid({
|
|
1126
1135
|
props: {
|
|
1127
|
-
width: /*width*/ ctx[
|
|
1128
|
-
height: /*height*/ ctx[
|
|
1129
|
-
rows: /*rows*/ ctx[
|
|
1130
|
-
columns: /*columns*/ ctx[
|
|
1131
|
-
gap: /*gap*/ ctx[
|
|
1132
|
-
background: /*background*/ ctx[
|
|
1136
|
+
width: /*width*/ ctx[6],
|
|
1137
|
+
height: /*height*/ ctx[7],
|
|
1138
|
+
rows: /*rows*/ ctx[8],
|
|
1139
|
+
columns: /*columns*/ ctx[9],
|
|
1140
|
+
gap: /*gap*/ ctx[10],
|
|
1141
|
+
background: /*background*/ ctx[11],
|
|
1133
1142
|
$$slots: { default: [create_default_slot_3] },
|
|
1134
1143
|
$$scope: { ctx }
|
|
1135
1144
|
}
|
|
@@ -1145,14 +1154,14 @@ function create_default_slot_2(ctx) {
|
|
|
1145
1154
|
},
|
|
1146
1155
|
p(ctx, dirty) {
|
|
1147
1156
|
const grid_changes = {};
|
|
1148
|
-
if (dirty & /*width*/
|
|
1149
|
-
if (dirty & /*height*/
|
|
1150
|
-
if (dirty & /*rows*/
|
|
1151
|
-
if (dirty & /*columns*/
|
|
1152
|
-
if (dirty & /*gap*/
|
|
1153
|
-
if (dirty & /*background*/
|
|
1154
|
-
|
|
1155
|
-
if (dirty & /*$$scope*/
|
|
1157
|
+
if (dirty & /*width*/ 64) grid_changes.width = /*width*/ ctx[6];
|
|
1158
|
+
if (dirty & /*height*/ 128) grid_changes.height = /*height*/ ctx[7];
|
|
1159
|
+
if (dirty & /*rows*/ 256) grid_changes.rows = /*rows*/ ctx[8];
|
|
1160
|
+
if (dirty & /*columns*/ 512) grid_changes.columns = /*columns*/ ctx[9];
|
|
1161
|
+
if (dirty & /*gap*/ 1024) grid_changes.gap = /*gap*/ ctx[10];
|
|
1162
|
+
if (dirty & /*background*/ 2048) grid_changes.background = /*background*/ ctx[11];
|
|
1163
|
+
|
|
1164
|
+
if (dirty & /*$$scope*/ 4194304) {
|
|
1156
1165
|
grid_changes.$$scope = { dirty, ctx };
|
|
1157
1166
|
}
|
|
1158
1167
|
|
|
@@ -1180,19 +1189,18 @@ function create_default_slot_1(ctx) {
|
|
|
1180
1189
|
|
|
1181
1190
|
modal = new Modal({
|
|
1182
1191
|
props: {
|
|
1183
|
-
closable: /*closable*/ ctx[
|
|
1184
|
-
closeButtonColor: /*closeButtonColor*/ ctx[
|
|
1185
|
-
_closeStyle: /*_closeStyle*/ ctx[
|
|
1186
|
-
position: /*
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
_style: /*_modalStyle*/ ctx[5],
|
|
1192
|
+
closable: /*closable*/ ctx[3],
|
|
1193
|
+
closeButtonColor: /*closeButtonColor*/ ctx[4],
|
|
1194
|
+
_closeStyle: /*_closeStyle*/ ctx[5],
|
|
1195
|
+
position: /*_position*/ ctx[13],
|
|
1196
|
+
margin: /*margin*/ ctx[14],
|
|
1197
|
+
_style: /*_modalStyle*/ ctx[2],
|
|
1190
1198
|
$$slots: { default: [create_default_slot_2] },
|
|
1191
1199
|
$$scope: { ctx }
|
|
1192
1200
|
}
|
|
1193
1201
|
});
|
|
1194
1202
|
|
|
1195
|
-
modal.$on("close", /*close*/ ctx[
|
|
1203
|
+
modal.$on("close", /*close*/ ctx[12]);
|
|
1196
1204
|
|
|
1197
1205
|
return {
|
|
1198
1206
|
c() {
|
|
@@ -1204,15 +1212,12 @@ function create_default_slot_1(ctx) {
|
|
|
1204
1212
|
},
|
|
1205
1213
|
p(ctx, dirty) {
|
|
1206
1214
|
const modal_changes = {};
|
|
1207
|
-
if (dirty & /*closable*/
|
|
1208
|
-
if (dirty & /*closeButtonColor*/
|
|
1209
|
-
if (dirty & /*_closeStyle*/
|
|
1210
|
-
if (dirty & /*
|
|
1211
|
-
|
|
1212
|
-
if (dirty &
|
|
1213
|
-
if (dirty & /*_modalStyle*/ 32) modal_changes._style = /*_modalStyle*/ ctx[5];
|
|
1214
|
-
|
|
1215
|
-
if (dirty & /*$$scope, width, height, rows, columns, gap, background*/ 1113088) {
|
|
1215
|
+
if (dirty & /*closable*/ 8) modal_changes.closable = /*closable*/ ctx[3];
|
|
1216
|
+
if (dirty & /*closeButtonColor*/ 16) modal_changes.closeButtonColor = /*closeButtonColor*/ ctx[4];
|
|
1217
|
+
if (dirty & /*_closeStyle*/ 32) modal_changes._closeStyle = /*_closeStyle*/ ctx[5];
|
|
1218
|
+
if (dirty & /*_modalStyle*/ 4) modal_changes._style = /*_modalStyle*/ ctx[2];
|
|
1219
|
+
|
|
1220
|
+
if (dirty & /*$$scope, width, height, rows, columns, gap, background*/ 4198336) {
|
|
1216
1221
|
modal_changes.$$scope = { dirty, ctx };
|
|
1217
1222
|
}
|
|
1218
1223
|
|
|
@@ -1242,15 +1247,15 @@ function create_default_slot(ctx) {
|
|
|
1242
1247
|
|
|
1243
1248
|
backgroundoverray = new BackgroundOverray({
|
|
1244
1249
|
props: {
|
|
1245
|
-
backgroundOverray: /*
|
|
1250
|
+
backgroundOverray: /*_backgroundOverray*/ ctx[15]
|
|
1246
1251
|
}
|
|
1247
1252
|
});
|
|
1248
1253
|
|
|
1249
|
-
backgroundoverray.$on("click", /*close*/ ctx[
|
|
1254
|
+
backgroundoverray.$on("click", /*close*/ ctx[12]);
|
|
1250
1255
|
|
|
1251
1256
|
animation_1 = new Animation({
|
|
1252
1257
|
props: {
|
|
1253
|
-
animation: /*animation*/ ctx[
|
|
1258
|
+
animation: /*animation*/ ctx[1],
|
|
1254
1259
|
$$slots: { default: [create_default_slot_1] },
|
|
1255
1260
|
$$scope: { ctx }
|
|
1256
1261
|
}
|
|
@@ -1269,13 +1274,10 @@ function create_default_slot(ctx) {
|
|
|
1269
1274
|
current = true;
|
|
1270
1275
|
},
|
|
1271
1276
|
p(ctx, dirty) {
|
|
1272
|
-
const backgroundoverray_changes = {};
|
|
1273
|
-
if (dirty & /*backgroundOverray*/ 128) backgroundoverray_changes.backgroundOverray = /*backgroundOverray*/ ctx[7];
|
|
1274
|
-
backgroundoverray.$set(backgroundoverray_changes);
|
|
1275
1277
|
const animation_1_changes = {};
|
|
1276
|
-
if (dirty & /*animation*/
|
|
1278
|
+
if (dirty & /*animation*/ 2) animation_1_changes.animation = /*animation*/ ctx[1];
|
|
1277
1279
|
|
|
1278
|
-
if (dirty & /*$$scope, closable, closeButtonColor, _closeStyle,
|
|
1280
|
+
if (dirty & /*$$scope, closable, closeButtonColor, _closeStyle, _modalStyle, width, height, rows, columns, gap, background*/ 4198396) {
|
|
1279
1281
|
animation_1_changes.$$scope = { dirty, ctx };
|
|
1280
1282
|
}
|
|
1281
1283
|
|
|
@@ -1300,7 +1302,7 @@ function create_default_slot(ctx) {
|
|
|
1300
1302
|
};
|
|
1301
1303
|
}
|
|
1302
1304
|
|
|
1303
|
-
function create_fragment$
|
|
1305
|
+
function create_fragment$6(ctx) {
|
|
1304
1306
|
let stateitem;
|
|
1305
1307
|
let current;
|
|
1306
1308
|
|
|
@@ -1324,7 +1326,7 @@ function create_fragment$3(ctx) {
|
|
|
1324
1326
|
const stateitem_changes = {};
|
|
1325
1327
|
if (dirty & /*path*/ 1) stateitem_changes.path = /*path*/ ctx[0];
|
|
1326
1328
|
|
|
1327
|
-
if (dirty & /*$$scope, animation, closable, closeButtonColor, _closeStyle,
|
|
1329
|
+
if (dirty & /*$$scope, animation, closable, closeButtonColor, _closeStyle, _modalStyle, width, height, rows, columns, gap, background*/ 4198398) {
|
|
1328
1330
|
stateitem_changes.$$scope = { dirty, ctx };
|
|
1329
1331
|
}
|
|
1330
1332
|
|
|
@@ -1345,12 +1347,11 @@ function create_fragment$3(ctx) {
|
|
|
1345
1347
|
};
|
|
1346
1348
|
}
|
|
1347
1349
|
|
|
1348
|
-
function instance$
|
|
1350
|
+
function instance$6($$self, $$props, $$invalidate) {
|
|
1349
1351
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
1350
1352
|
let { path } = $$props;
|
|
1353
|
+
let { placement = DefaultModalPlacement } = $$props;
|
|
1351
1354
|
let { position = 'center' } = $$props;
|
|
1352
|
-
let { modalMarginX = { side: 'left', length: '0' } } = $$props;
|
|
1353
|
-
let { modalMarginY = { side: 'top', length: '0' } } = $$props;
|
|
1354
1355
|
let { animation = 'none' } = $$props;
|
|
1355
1356
|
let { _modalStyle = '' } = $$props;
|
|
1356
1357
|
let { closable = true } = $$props;
|
|
@@ -1379,37 +1380,36 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
1379
1380
|
dispatch('close');
|
|
1380
1381
|
};
|
|
1381
1382
|
|
|
1383
|
+
const _position = placement.position ?? position;
|
|
1384
|
+
const margin = placement.margin;
|
|
1385
|
+
const _backgroundOverray = placement.backgroundOverlay ?? backgroundOverray;
|
|
1386
|
+
|
|
1382
1387
|
$$self.$$set = $$props => {
|
|
1383
1388
|
if ('path' in $$props) $$invalidate(0, path = $$props.path);
|
|
1384
|
-
if ('
|
|
1385
|
-
if ('
|
|
1386
|
-
if ('
|
|
1387
|
-
if ('
|
|
1388
|
-
if ('
|
|
1389
|
-
if ('
|
|
1390
|
-
if ('
|
|
1391
|
-
if ('
|
|
1392
|
-
if ('
|
|
1393
|
-
if ('
|
|
1394
|
-
if ('
|
|
1395
|
-
if ('
|
|
1396
|
-
if ('
|
|
1397
|
-
if ('
|
|
1398
|
-
if ('
|
|
1399
|
-
if ('
|
|
1400
|
-
if ('
|
|
1401
|
-
if ('$$scope' in $$props) $$invalidate(20, $$scope = $$props.$$scope);
|
|
1389
|
+
if ('placement' in $$props) $$invalidate(16, placement = $$props.placement);
|
|
1390
|
+
if ('position' in $$props) $$invalidate(17, position = $$props.position);
|
|
1391
|
+
if ('animation' in $$props) $$invalidate(1, animation = $$props.animation);
|
|
1392
|
+
if ('_modalStyle' in $$props) $$invalidate(2, _modalStyle = $$props._modalStyle);
|
|
1393
|
+
if ('closable' in $$props) $$invalidate(3, closable = $$props.closable);
|
|
1394
|
+
if ('backgroundOverray' in $$props) $$invalidate(18, backgroundOverray = $$props.backgroundOverray);
|
|
1395
|
+
if ('closeButtonColor' in $$props) $$invalidate(4, closeButtonColor = $$props.closeButtonColor);
|
|
1396
|
+
if ('eventName' in $$props) $$invalidate(19, eventName = $$props.eventName);
|
|
1397
|
+
if ('eventValue' in $$props) $$invalidate(20, eventValue = $$props.eventValue);
|
|
1398
|
+
if ('_closeStyle' in $$props) $$invalidate(5, _closeStyle = $$props._closeStyle);
|
|
1399
|
+
if ('width' in $$props) $$invalidate(6, width = $$props.width);
|
|
1400
|
+
if ('height' in $$props) $$invalidate(7, height = $$props.height);
|
|
1401
|
+
if ('rows' in $$props) $$invalidate(8, rows = $$props.rows);
|
|
1402
|
+
if ('columns' in $$props) $$invalidate(9, columns = $$props.columns);
|
|
1403
|
+
if ('gap' in $$props) $$invalidate(10, gap = $$props.gap);
|
|
1404
|
+
if ('background' in $$props) $$invalidate(11, background = $$props.background);
|
|
1405
|
+
if ('$$scope' in $$props) $$invalidate(22, $$scope = $$props.$$scope);
|
|
1402
1406
|
};
|
|
1403
1407
|
|
|
1404
1408
|
return [
|
|
1405
1409
|
path,
|
|
1406
|
-
position,
|
|
1407
|
-
modalMarginX,
|
|
1408
|
-
modalMarginY,
|
|
1409
1410
|
animation,
|
|
1410
1411
|
_modalStyle,
|
|
1411
1412
|
closable,
|
|
1412
|
-
backgroundOverray,
|
|
1413
1413
|
closeButtonColor,
|
|
1414
1414
|
_closeStyle,
|
|
1415
1415
|
width,
|
|
@@ -1419,6 +1419,12 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
1419
1419
|
gap,
|
|
1420
1420
|
background,
|
|
1421
1421
|
close,
|
|
1422
|
+
_position,
|
|
1423
|
+
margin,
|
|
1424
|
+
_backgroundOverray,
|
|
1425
|
+
placement,
|
|
1426
|
+
position,
|
|
1427
|
+
backgroundOverray,
|
|
1422
1428
|
eventName,
|
|
1423
1429
|
eventValue,
|
|
1424
1430
|
slots,
|
|
@@ -1430,36 +1436,35 @@ class GridModalState extends SvelteComponent {
|
|
|
1430
1436
|
constructor(options) {
|
|
1431
1437
|
super();
|
|
1432
1438
|
|
|
1433
|
-
init(this, options, instance$
|
|
1439
|
+
init(this, options, instance$6, create_fragment$6, safe_not_equal, {
|
|
1434
1440
|
path: 0,
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
background: 15
|
|
1441
|
+
placement: 16,
|
|
1442
|
+
position: 17,
|
|
1443
|
+
animation: 1,
|
|
1444
|
+
_modalStyle: 2,
|
|
1445
|
+
closable: 3,
|
|
1446
|
+
backgroundOverray: 18,
|
|
1447
|
+
closeButtonColor: 4,
|
|
1448
|
+
eventName: 19,
|
|
1449
|
+
eventValue: 20,
|
|
1450
|
+
_closeStyle: 5,
|
|
1451
|
+
width: 6,
|
|
1452
|
+
height: 7,
|
|
1453
|
+
rows: 8,
|
|
1454
|
+
columns: 9,
|
|
1455
|
+
gap: 10,
|
|
1456
|
+
background: 11
|
|
1452
1457
|
});
|
|
1453
1458
|
}
|
|
1454
1459
|
}
|
|
1455
1460
|
|
|
1456
1461
|
/* src/GridItem.svelte generated by Svelte v3.44.1 */
|
|
1457
1462
|
|
|
1458
|
-
function add_css$
|
|
1463
|
+
function add_css$5(target) {
|
|
1459
1464
|
append_styles(target, "svelte-g0rfgr", ".grid-item.svelte-g0rfgr{word-break:break-all}");
|
|
1460
1465
|
}
|
|
1461
1466
|
|
|
1462
|
-
function create_fragment$
|
|
1467
|
+
function create_fragment$5(ctx) {
|
|
1463
1468
|
let div;
|
|
1464
1469
|
let current;
|
|
1465
1470
|
const default_slot_template = /*#slots*/ ctx[8].default;
|
|
@@ -1517,7 +1522,7 @@ function create_fragment$2(ctx) {
|
|
|
1517
1522
|
};
|
|
1518
1523
|
}
|
|
1519
1524
|
|
|
1520
|
-
function instance$
|
|
1525
|
+
function instance$5($$self, $$props, $$invalidate) {
|
|
1521
1526
|
let _style;
|
|
1522
1527
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
1523
1528
|
let { x1 } = $$props;
|
|
@@ -1563,8 +1568,8 @@ class GridItem extends SvelteComponent {
|
|
|
1563
1568
|
init(
|
|
1564
1569
|
this,
|
|
1565
1570
|
options,
|
|
1566
|
-
instance$
|
|
1567
|
-
create_fragment$
|
|
1571
|
+
instance$5,
|
|
1572
|
+
create_fragment$5,
|
|
1568
1573
|
safe_not_equal,
|
|
1569
1574
|
{
|
|
1570
1575
|
x1: 1,
|
|
@@ -1574,18 +1579,18 @@ class GridItem extends SvelteComponent {
|
|
|
1574
1579
|
z: 5,
|
|
1575
1580
|
background: 6
|
|
1576
1581
|
},
|
|
1577
|
-
add_css$
|
|
1582
|
+
add_css$5
|
|
1578
1583
|
);
|
|
1579
1584
|
}
|
|
1580
1585
|
}
|
|
1581
1586
|
|
|
1582
1587
|
/* src/components/Flex.svelte generated by Svelte v3.44.1 */
|
|
1583
1588
|
|
|
1584
|
-
function add_css$
|
|
1589
|
+
function add_css$4(target) {
|
|
1585
1590
|
append_styles(target, "svelte-1e71ejc", ".flex.svelte-1e71ejc{display:flex}");
|
|
1586
1591
|
}
|
|
1587
1592
|
|
|
1588
|
-
function create_fragment$
|
|
1593
|
+
function create_fragment$4(ctx) {
|
|
1589
1594
|
let div;
|
|
1590
1595
|
let div_style_value;
|
|
1591
1596
|
let current;
|
|
@@ -1650,7 +1655,7 @@ function getFlexContext() {
|
|
|
1650
1655
|
return getContext(FlexContextKey);
|
|
1651
1656
|
}
|
|
1652
1657
|
|
|
1653
|
-
function instance$
|
|
1658
|
+
function instance$4($$self, $$props, $$invalidate) {
|
|
1654
1659
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
1655
1660
|
let { direction = 'row' } = $$props;
|
|
1656
1661
|
let { width = '100%' } = $$props;
|
|
@@ -1676,8 +1681,8 @@ class Flex extends SvelteComponent {
|
|
|
1676
1681
|
init(
|
|
1677
1682
|
this,
|
|
1678
1683
|
options,
|
|
1679
|
-
instance$
|
|
1680
|
-
create_fragment$
|
|
1684
|
+
instance$4,
|
|
1685
|
+
create_fragment$4,
|
|
1681
1686
|
safe_not_equal,
|
|
1682
1687
|
{
|
|
1683
1688
|
direction: 0,
|
|
@@ -1685,18 +1690,18 @@ class Flex extends SvelteComponent {
|
|
|
1685
1690
|
height: 2,
|
|
1686
1691
|
_style: 3
|
|
1687
1692
|
},
|
|
1688
|
-
add_css$
|
|
1693
|
+
add_css$4
|
|
1689
1694
|
);
|
|
1690
1695
|
}
|
|
1691
1696
|
}
|
|
1692
1697
|
|
|
1693
1698
|
/* src/components/FlexItem.svelte generated by Svelte v3.44.1 */
|
|
1694
1699
|
|
|
1695
|
-
function add_css(target) {
|
|
1700
|
+
function add_css$3(target) {
|
|
1696
1701
|
append_styles(target, "svelte-1p0bk1x", ".flex-item.svelte-1p0bk1x{max-width:100%;max-height:100%;position:relative;isolation:isolate}");
|
|
1697
1702
|
}
|
|
1698
1703
|
|
|
1699
|
-
function create_fragment(ctx) {
|
|
1704
|
+
function create_fragment$3(ctx) {
|
|
1700
1705
|
let div;
|
|
1701
1706
|
let current;
|
|
1702
1707
|
const default_slot_template = /*#slots*/ ctx[4].default;
|
|
@@ -1754,7 +1759,7 @@ function create_fragment(ctx) {
|
|
|
1754
1759
|
};
|
|
1755
1760
|
}
|
|
1756
1761
|
|
|
1757
|
-
function instance($$self, $$props, $$invalidate) {
|
|
1762
|
+
function instance$3($$self, $$props, $$invalidate) {
|
|
1758
1763
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
1759
1764
|
let { length } = $$props;
|
|
1760
1765
|
let { _style = '' } = $$props;
|
|
@@ -1797,8 +1802,293 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
1797
1802
|
class FlexItem extends SvelteComponent {
|
|
1798
1803
|
constructor(options) {
|
|
1799
1804
|
super();
|
|
1800
|
-
init(this, options, instance, create_fragment, safe_not_equal, { length: 1, _style: 2 }, add_css);
|
|
1805
|
+
init(this, options, instance$3, create_fragment$3, safe_not_equal, { length: 1, _style: 2 }, add_css$3);
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
/* src/components/TextBlock.svelte generated by Svelte v3.44.1 */
|
|
1810
|
+
|
|
1811
|
+
function add_css$2(target) {
|
|
1812
|
+
append_styles(target, "svelte-1xf20ux", ".text-block.svelte-1xf20ux{display:flex;width:100%;height:100%;box-sizing:border-box}.text-block-inner.svelte-1xf20ux{width:100%}");
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
function create_fragment$2(ctx) {
|
|
1816
|
+
let div1;
|
|
1817
|
+
let div0;
|
|
1818
|
+
let raw_value = toBr(/*text*/ ctx[0]) + "";
|
|
1819
|
+
|
|
1820
|
+
return {
|
|
1821
|
+
c() {
|
|
1822
|
+
div1 = element("div");
|
|
1823
|
+
div0 = element("div");
|
|
1824
|
+
attr(div0, "class", "text-block-inner svelte-1xf20ux");
|
|
1825
|
+
attr(div1, "class", "text-block svelte-1xf20ux");
|
|
1826
|
+
attr(div1, "style", /*_style*/ ctx[1]);
|
|
1827
|
+
},
|
|
1828
|
+
m(target, anchor) {
|
|
1829
|
+
insert(target, div1, anchor);
|
|
1830
|
+
append(div1, div0);
|
|
1831
|
+
div0.innerHTML = raw_value;
|
|
1832
|
+
},
|
|
1833
|
+
p(ctx, [dirty]) {
|
|
1834
|
+
if (dirty & /*text*/ 1 && raw_value !== (raw_value = toBr(/*text*/ ctx[0]) + "")) div0.innerHTML = raw_value;
|
|
1835
|
+
if (dirty & /*_style*/ 2) {
|
|
1836
|
+
attr(div1, "style", /*_style*/ ctx[1]);
|
|
1837
|
+
}
|
|
1838
|
+
},
|
|
1839
|
+
i: noop,
|
|
1840
|
+
o: noop,
|
|
1841
|
+
d(detaching) {
|
|
1842
|
+
if (detaching) detach(div1);
|
|
1843
|
+
}
|
|
1844
|
+
};
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
function instance$2($$self, $$props, $$invalidate) {
|
|
1848
|
+
let { text = 'サンプルSample' } = $$props;
|
|
1849
|
+
let { _style = 'font-size:12px;' } = $$props;
|
|
1850
|
+
|
|
1851
|
+
$$self.$$set = $$props => {
|
|
1852
|
+
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
|
1853
|
+
if ('_style' in $$props) $$invalidate(1, _style = $$props._style);
|
|
1854
|
+
};
|
|
1855
|
+
|
|
1856
|
+
return [text, _style];
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
class TextBlock extends SvelteComponent {
|
|
1860
|
+
constructor(options) {
|
|
1861
|
+
super();
|
|
1862
|
+
init(this, options, instance$2, create_fragment$2, safe_not_equal, { text: 0, _style: 1 }, add_css$2);
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
/* src/components/TextButtonBlock.svelte generated by Svelte v3.44.1 */
|
|
1867
|
+
|
|
1868
|
+
function add_css$1(target) {
|
|
1869
|
+
append_styles(target, "svelte-1t5i3za", ".text-button-block.svelte-1t5i3za{width:100%;height:100%}.text-button.svelte-1t5i3za{display:flex;justify-content:center;align-items:center;width:100%;height:100%;background-color:transparent;border:none;box-shadow:transparent;box-sizing:border-box;cursor:pointer;transition:box-shadow 0.2s}.text-button.svelte-1t5i3za:active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button.svelte-1t5i3za:hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
function create_fragment$1(ctx) {
|
|
1873
|
+
let div;
|
|
1874
|
+
let button;
|
|
1875
|
+
let raw_value = toBr(/*text*/ ctx[0]) + "";
|
|
1876
|
+
let mounted;
|
|
1877
|
+
let dispose;
|
|
1878
|
+
|
|
1879
|
+
return {
|
|
1880
|
+
c() {
|
|
1881
|
+
div = element("div");
|
|
1882
|
+
button = element("button");
|
|
1883
|
+
attr(button, "class", "text-button svelte-1t5i3za");
|
|
1884
|
+
attr(button, "style", /*_buttonStyle*/ ctx[1]);
|
|
1885
|
+
attr(div, "class", "text-button-block svelte-1t5i3za");
|
|
1886
|
+
attr(div, "style", /*_style*/ ctx[2]);
|
|
1887
|
+
},
|
|
1888
|
+
m(target, anchor) {
|
|
1889
|
+
insert(target, div, anchor);
|
|
1890
|
+
append(div, button);
|
|
1891
|
+
button.innerHTML = raw_value;
|
|
1892
|
+
|
|
1893
|
+
if (!mounted) {
|
|
1894
|
+
dispose = listen(button, "click", /*click*/ ctx[3]);
|
|
1895
|
+
mounted = true;
|
|
1896
|
+
}
|
|
1897
|
+
},
|
|
1898
|
+
p(ctx, [dirty]) {
|
|
1899
|
+
if (dirty & /*text*/ 1 && raw_value !== (raw_value = toBr(/*text*/ ctx[0]) + "")) button.innerHTML = raw_value;
|
|
1900
|
+
if (dirty & /*_buttonStyle*/ 2) {
|
|
1901
|
+
attr(button, "style", /*_buttonStyle*/ ctx[1]);
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
if (dirty & /*_style*/ 4) {
|
|
1905
|
+
attr(div, "style", /*_style*/ ctx[2]);
|
|
1906
|
+
}
|
|
1907
|
+
},
|
|
1908
|
+
i: noop,
|
|
1909
|
+
o: noop,
|
|
1910
|
+
d(detaching) {
|
|
1911
|
+
if (detaching) detach(div);
|
|
1912
|
+
mounted = false;
|
|
1913
|
+
dispose();
|
|
1914
|
+
}
|
|
1915
|
+
};
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
function instance$1($$self, $$props, $$invalidate) {
|
|
1919
|
+
let { text = 'クリック' } = $$props;
|
|
1920
|
+
|
|
1921
|
+
/**
|
|
1922
|
+
* {
|
|
1923
|
+
* "title": {"ja": "クリック", "en": "Click"},
|
|
1924
|
+
* "folder": {"ja": "クリック時の動作", "en": "Behavior when clicking"}
|
|
1925
|
+
* }
|
|
1926
|
+
*/
|
|
1927
|
+
const dispatch = createEventDispatcher();
|
|
1928
|
+
|
|
1929
|
+
const click = () => {
|
|
1930
|
+
if (eventName) {
|
|
1931
|
+
send_event(eventName, eventValue);
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
dispatch('click');
|
|
1935
|
+
};
|
|
1936
|
+
|
|
1937
|
+
let { eventName = '' } = $$props;
|
|
1938
|
+
let { eventValue = null } = $$props;
|
|
1939
|
+
let { _buttonStyle = 'color:#ffffff; font-size:14px; font-weight:bold; justify-content:center; align-items:center; padding:1px 6px 1px 6px;' } = $$props;
|
|
1940
|
+
let { _style = 'background-color: #000000; border-radius:4px;' } = $$props;
|
|
1941
|
+
|
|
1942
|
+
$$self.$$set = $$props => {
|
|
1943
|
+
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
|
1944
|
+
if ('eventName' in $$props) $$invalidate(4, eventName = $$props.eventName);
|
|
1945
|
+
if ('eventValue' in $$props) $$invalidate(5, eventValue = $$props.eventValue);
|
|
1946
|
+
if ('_buttonStyle' in $$props) $$invalidate(1, _buttonStyle = $$props._buttonStyle);
|
|
1947
|
+
if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
|
|
1948
|
+
};
|
|
1949
|
+
|
|
1950
|
+
return [text, _buttonStyle, _style, click, eventName, eventValue];
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
class TextButtonBlock extends SvelteComponent {
|
|
1954
|
+
constructor(options) {
|
|
1955
|
+
super();
|
|
1956
|
+
|
|
1957
|
+
init(
|
|
1958
|
+
this,
|
|
1959
|
+
options,
|
|
1960
|
+
instance$1,
|
|
1961
|
+
create_fragment$1,
|
|
1962
|
+
safe_not_equal,
|
|
1963
|
+
{
|
|
1964
|
+
text: 0,
|
|
1965
|
+
eventName: 4,
|
|
1966
|
+
eventValue: 5,
|
|
1967
|
+
_buttonStyle: 1,
|
|
1968
|
+
_style: 2
|
|
1969
|
+
},
|
|
1970
|
+
add_css$1
|
|
1971
|
+
);
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
/* src/components/ImageBlock.svelte generated by Svelte v3.44.1 */
|
|
1976
|
+
|
|
1977
|
+
function add_css(target) {
|
|
1978
|
+
append_styles(target, "svelte-95tcq4", ".image-block.svelte-95tcq4{display:flex;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;overflow:hidden;box-sizing:border-box}.image.svelte-95tcq4{width:100%;height:100%}");
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
function create_fragment(ctx) {
|
|
1982
|
+
let div;
|
|
1983
|
+
let img;
|
|
1984
|
+
let img_src_value;
|
|
1985
|
+
let mounted;
|
|
1986
|
+
let dispose;
|
|
1987
|
+
|
|
1988
|
+
return {
|
|
1989
|
+
c() {
|
|
1990
|
+
div = element("div");
|
|
1991
|
+
img = element("img");
|
|
1992
|
+
attr(img, "class", "image svelte-95tcq4");
|
|
1993
|
+
attr(img, "loading", "lazy");
|
|
1994
|
+
attr(img, "width", "auto");
|
|
1995
|
+
attr(img, "height", "auto");
|
|
1996
|
+
attr(img, "style", /*_imageStyle*/ ctx[2]);
|
|
1997
|
+
if (!src_url_equal(img.src, img_src_value = /*src*/ ctx[0])) attr(img, "src", img_src_value);
|
|
1998
|
+
attr(img, "alt", /*alt*/ ctx[1]);
|
|
1999
|
+
attr(div, "class", "image-block svelte-95tcq4");
|
|
2000
|
+
attr(div, "style", /*_style*/ ctx[3]);
|
|
2001
|
+
},
|
|
2002
|
+
m(target, anchor) {
|
|
2003
|
+
insert(target, div, anchor);
|
|
2004
|
+
append(div, img);
|
|
2005
|
+
|
|
2006
|
+
if (!mounted) {
|
|
2007
|
+
dispose = listen(div, "click", /*click*/ ctx[4]);
|
|
2008
|
+
mounted = true;
|
|
2009
|
+
}
|
|
2010
|
+
},
|
|
2011
|
+
p(ctx, [dirty]) {
|
|
2012
|
+
if (dirty & /*_imageStyle*/ 4) {
|
|
2013
|
+
attr(img, "style", /*_imageStyle*/ ctx[2]);
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
if (dirty & /*src*/ 1 && !src_url_equal(img.src, img_src_value = /*src*/ ctx[0])) {
|
|
2017
|
+
attr(img, "src", img_src_value);
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
if (dirty & /*alt*/ 2) {
|
|
2021
|
+
attr(img, "alt", /*alt*/ ctx[1]);
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
if (dirty & /*_style*/ 8) {
|
|
2025
|
+
attr(div, "style", /*_style*/ ctx[3]);
|
|
2026
|
+
}
|
|
2027
|
+
},
|
|
2028
|
+
i: noop,
|
|
2029
|
+
o: noop,
|
|
2030
|
+
d(detaching) {
|
|
2031
|
+
if (detaching) detach(div);
|
|
2032
|
+
mounted = false;
|
|
2033
|
+
dispose();
|
|
2034
|
+
}
|
|
2035
|
+
};
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
function instance($$self, $$props, $$invalidate) {
|
|
2039
|
+
let { src = '' } = $$props;
|
|
2040
|
+
let { alt = '' } = $$props;
|
|
2041
|
+
let { eventName = '' } = $$props;
|
|
2042
|
+
let { eventValue = null } = $$props;
|
|
2043
|
+
let { _imageStyle = 'object-fit: contain;' } = $$props;
|
|
2044
|
+
let { _style = '' } = $$props;
|
|
2045
|
+
|
|
2046
|
+
/**
|
|
2047
|
+
* {"title": {"ja": "クリック", "en": "Click"}}
|
|
2048
|
+
*/
|
|
2049
|
+
const dispatch = createEventDispatcher();
|
|
2050
|
+
|
|
2051
|
+
const click = () => {
|
|
2052
|
+
if (eventName) {
|
|
2053
|
+
send_event(eventName, eventValue);
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
dispatch('click');
|
|
2057
|
+
};
|
|
2058
|
+
|
|
2059
|
+
$$self.$$set = $$props => {
|
|
2060
|
+
if ('src' in $$props) $$invalidate(0, src = $$props.src);
|
|
2061
|
+
if ('alt' in $$props) $$invalidate(1, alt = $$props.alt);
|
|
2062
|
+
if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
|
|
2063
|
+
if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
|
|
2064
|
+
if ('_imageStyle' in $$props) $$invalidate(2, _imageStyle = $$props._imageStyle);
|
|
2065
|
+
if ('_style' in $$props) $$invalidate(3, _style = $$props._style);
|
|
2066
|
+
};
|
|
2067
|
+
|
|
2068
|
+
return [src, alt, _imageStyle, _style, click, eventName, eventValue];
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
class ImageBlock extends SvelteComponent {
|
|
2072
|
+
constructor(options) {
|
|
2073
|
+
super();
|
|
2074
|
+
|
|
2075
|
+
init(
|
|
2076
|
+
this,
|
|
2077
|
+
options,
|
|
2078
|
+
instance,
|
|
2079
|
+
create_fragment,
|
|
2080
|
+
safe_not_equal,
|
|
2081
|
+
{
|
|
2082
|
+
src: 0,
|
|
2083
|
+
alt: 1,
|
|
2084
|
+
eventName: 5,
|
|
2085
|
+
eventValue: 6,
|
|
2086
|
+
_imageStyle: 2,
|
|
2087
|
+
_style: 3
|
|
2088
|
+
},
|
|
2089
|
+
add_css
|
|
2090
|
+
);
|
|
1801
2091
|
}
|
|
1802
2092
|
}
|
|
1803
2093
|
|
|
1804
|
-
export { Alignments, AnimationStyleTranslations, AnimationStyles, Directions, Flex, FlexItem, GridItem, GridModalState, Justifies, LengthUnits, MediaQueries, Modal, ModalMarginTranslations, ModalPositionTranslations, ModalPositions, ObjectFits, PropTypes, Repeats, State, closeApp, closed, finalize, getMarginStyle, getPositionStyle, handleFocus, handleKeydown, hasSuffix, initialize, isPreview, linkTo, maximumZindex, moveTo, none, onScroll, onTime, randStr, send_event, setMiximumZindex, setPreviousFocus, state, toBr };
|
|
2094
|
+
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, finalize, getMarginStyle, getPositionStyle, handleFocus, handleKeydown, hasSuffix, initialize, isPreview, linkTo, maximumZindex, moveTo, none, onScroll, onTime, randStr, send_event, setMiximumZindex, setPreviousFocus, 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.28",
|
|
4
4
|
"author": "Plaid Inc.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
"LICENSE"
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@plaidev/action-compiler": "^0.4.
|
|
26
|
+
"@plaidev/action-compiler": "^0.4.180",
|
|
27
|
+
"@plaidev/sender-types": "^0.4.140",
|
|
28
|
+
"@rollup/plugin-alias": "^3.1.9",
|
|
27
29
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
28
30
|
"@rollup/plugin-json": "^4.1.0",
|
|
29
31
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
@@ -31,17 +33,26 @@
|
|
|
31
33
|
"@sveltejs/vite-plugin-svelte": "1.0.0-next.37",
|
|
32
34
|
"@testing-library/svelte": "^3.1.3",
|
|
33
35
|
"@tsconfig/svelte": "^2.0.1",
|
|
36
|
+
"@types/serve-static": "^1.13.10",
|
|
34
37
|
"@vitest/ui": "latest",
|
|
38
|
+
"c8": "^7.12.0",
|
|
35
39
|
"happy-dom": "^6.0.3",
|
|
36
|
-
"
|
|
40
|
+
"isomorphic-fetch": "3.0.0",
|
|
41
|
+
"jiti": "^1.14.0",
|
|
42
|
+
"listhen": "^0.2.13",
|
|
37
43
|
"node-fetch": "2.6.7",
|
|
44
|
+
"picocolors": "^1.0.0",
|
|
45
|
+
"playwright": "^1.23.4",
|
|
38
46
|
"rimraf": "^3.0.2",
|
|
39
47
|
"rollup": "^2.75.7",
|
|
40
48
|
"rollup-plugin-http-resolve": "4.0.1-alpha.0",
|
|
41
49
|
"rollup-plugin-livereload": "^2.0.0",
|
|
42
50
|
"rollup-plugin-serve": "^2.0.0",
|
|
43
51
|
"rollup-plugin-svelte": "^7.1.0",
|
|
52
|
+
"rollup-plugin-terser": "7.0.2",
|
|
44
53
|
"rollup-plugin-ts": "^2.0.7",
|
|
54
|
+
"serve": "^14.0.1",
|
|
55
|
+
"serve-static": "^1.15.0",
|
|
45
56
|
"svelte": "3.44.1",
|
|
46
57
|
"svelte-check": "^2.2.7",
|
|
47
58
|
"svelte-preprocess": "4.9.8",
|
|
@@ -51,13 +62,19 @@
|
|
|
51
62
|
},
|
|
52
63
|
"scripts": {
|
|
53
64
|
"dev": "jiti ./scripts/preview.ts",
|
|
65
|
+
"setup:default": "jiti ./scripts/default.ts",
|
|
66
|
+
"setup:template": "jiti ./scripts/template.ts",
|
|
67
|
+
"setup:concat": "jiti ./scripts/concat.ts",
|
|
68
|
+
"setup:compile": "jiti ./scripts/compile.ts",
|
|
69
|
+
"prepare": "npm run setup:default && npm run setup:template && npm run setup:concat",
|
|
54
70
|
"build": "rollup -c",
|
|
55
71
|
"build:watch": "rollup -c -w",
|
|
56
72
|
"check": "svelte-check --tsconfig ./tsconfig.json",
|
|
57
|
-
"test": "vitest run",
|
|
58
|
-
"test:watch": "vitest",
|
|
59
|
-
"test:ui": "vitest --ui",
|
|
60
|
-
"
|
|
73
|
+
"test": "vitest run test",
|
|
74
|
+
"test:watch": "vitest test",
|
|
75
|
+
"test:ui": "vitest test --ui",
|
|
76
|
+
"test:e2e": "vitest run spec",
|
|
77
|
+
"coverage": "vitest run test --coverage"
|
|
61
78
|
},
|
|
62
79
|
"publishConfig": {
|
|
63
80
|
"access": "public"
|