@plaidev/karte-action-sdk 1.1.102-27907506.fdeccea7 → 1.1.102-27907779.4c21459a
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/hydrate/index.es.d.ts +4 -0
- package/dist/hydrate/index.es.js +707 -81
- package/dist/index.es.d.ts +4 -0
- package/dist/index.es.js +646 -81
- package/dist/templates.js +4 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { writable, get } from 'svelte/store';
|
2
2
|
import { linear, elasticOut, cubicOut } from 'svelte/easing';
|
3
|
-
import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, mount_component, insert, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, attr, noop, listen, is_function, append, add_render_callback, create_in_transition, svg_element, binding_callbacks, destroy_each, text, set_data, src_url_equal, null_to_empty } from 'svelte/internal';
|
3
|
+
import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, mount_component, insert, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, attr, noop, listen, is_function, append, add_render_callback, create_in_transition, svg_element, binding_callbacks, destroy_each, text, set_data, src_url_equal, null_to_empty, set_style } from 'svelte/internal';
|
4
4
|
import { createEventDispatcher, onMount, onDestroy as onDestroy$1, setContext, getContext } from 'svelte';
|
5
5
|
|
6
6
|
/**
|
@@ -1724,20 +1724,20 @@ var widget = /*#__PURE__*/Object.freeze({
|
|
1724
1724
|
|
1725
1725
|
/* src/components/Normalize.svelte generated by Svelte v3.53.1 */
|
1726
1726
|
|
1727
|
-
function add_css$
|
1727
|
+
function add_css$i(target) {
|
1728
1728
|
append_styles(target, "svelte-tr4qnr", "@import 'https://esm.sh/normalize.css';");
|
1729
1729
|
}
|
1730
1730
|
|
1731
1731
|
class Normalize extends SvelteComponent {
|
1732
1732
|
constructor(options) {
|
1733
1733
|
super();
|
1734
|
-
init(this, options, null, null, safe_not_equal, {}, add_css$
|
1734
|
+
init(this, options, null, null, safe_not_equal, {}, add_css$i);
|
1735
1735
|
}
|
1736
1736
|
}
|
1737
1737
|
|
1738
1738
|
/* src/components/State.svelte generated by Svelte v3.53.1 */
|
1739
1739
|
|
1740
|
-
function create_fragment$
|
1740
|
+
function create_fragment$m(ctx) {
|
1741
1741
|
let normalize;
|
1742
1742
|
let t;
|
1743
1743
|
let current;
|
@@ -1796,7 +1796,7 @@ function create_fragment$i(ctx) {
|
|
1796
1796
|
};
|
1797
1797
|
}
|
1798
1798
|
|
1799
|
-
function instance$
|
1799
|
+
function instance$m($$self, $$props, $$invalidate) {
|
1800
1800
|
let { $$slots: slots = {}, $$scope } = $$props;
|
1801
1801
|
|
1802
1802
|
$$self.$$set = $$props => {
|
@@ -1809,13 +1809,13 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
1809
1809
|
class State extends SvelteComponent {
|
1810
1810
|
constructor(options) {
|
1811
1811
|
super();
|
1812
|
-
init(this, options, instance$
|
1812
|
+
init(this, options, instance$m, create_fragment$m, safe_not_equal, {});
|
1813
1813
|
}
|
1814
1814
|
}
|
1815
1815
|
|
1816
1816
|
/* src/components/StateItem.svelte generated by Svelte v3.53.1 */
|
1817
1817
|
|
1818
|
-
function add_css$
|
1818
|
+
function add_css$h(target) {
|
1819
1819
|
append_styles(target, "svelte-2qb6dm", ".state-item.svelte-2qb6dm{position:absolute;display:none}");
|
1820
1820
|
}
|
1821
1821
|
|
@@ -1882,7 +1882,7 @@ function create_if_block$3(ctx) {
|
|
1882
1882
|
};
|
1883
1883
|
}
|
1884
1884
|
|
1885
|
-
function create_fragment$
|
1885
|
+
function create_fragment$l(ctx) {
|
1886
1886
|
let if_block_anchor;
|
1887
1887
|
let current;
|
1888
1888
|
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$3(ctx);
|
@@ -1937,7 +1937,7 @@ function create_fragment$h(ctx) {
|
|
1937
1937
|
};
|
1938
1938
|
}
|
1939
1939
|
|
1940
|
-
function instance$
|
1940
|
+
function instance$l($$self, $$props, $$invalidate) {
|
1941
1941
|
let $state;
|
1942
1942
|
component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
|
1943
1943
|
let { $$slots: slots = {}, $$scope } = $$props;
|
@@ -1962,13 +1962,13 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
1962
1962
|
class StateItem extends SvelteComponent {
|
1963
1963
|
constructor(options) {
|
1964
1964
|
super();
|
1965
|
-
init(this, options, instance$
|
1965
|
+
init(this, options, instance$l, create_fragment$l, safe_not_equal, { path: 0 }, add_css$h);
|
1966
1966
|
}
|
1967
1967
|
}
|
1968
1968
|
|
1969
1969
|
/* src/components/BackgroundOverray.svelte generated by Svelte v3.53.1 */
|
1970
1970
|
|
1971
|
-
function add_css$
|
1971
|
+
function add_css$g(target) {
|
1972
1972
|
append_styles(target, "svelte-1d4fta", ".background.svelte-1d4fta{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
|
1973
1973
|
}
|
1974
1974
|
|
@@ -2000,7 +2000,7 @@ function create_if_block$2(ctx) {
|
|
2000
2000
|
};
|
2001
2001
|
}
|
2002
2002
|
|
2003
|
-
function create_fragment$
|
2003
|
+
function create_fragment$k(ctx) {
|
2004
2004
|
let if_block_anchor;
|
2005
2005
|
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$2(ctx);
|
2006
2006
|
|
@@ -2036,7 +2036,7 @@ function create_fragment$g(ctx) {
|
|
2036
2036
|
};
|
2037
2037
|
}
|
2038
2038
|
|
2039
|
-
function instance$
|
2039
|
+
function instance$k($$self, $$props, $$invalidate) {
|
2040
2040
|
let { backgroundOverray = false } = $$props;
|
2041
2041
|
const dispatch = createEventDispatcher();
|
2042
2042
|
const click_handler = () => dispatch('click');
|
@@ -2051,13 +2051,13 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
2051
2051
|
class BackgroundOverray extends SvelteComponent {
|
2052
2052
|
constructor(options) {
|
2053
2053
|
super();
|
2054
|
-
init(this, options, instance$
|
2054
|
+
init(this, options, instance$k, create_fragment$k, safe_not_equal, { backgroundOverray: 0 }, add_css$g);
|
2055
2055
|
}
|
2056
2056
|
}
|
2057
2057
|
|
2058
2058
|
/* src/components/Modal.svelte generated by Svelte v3.53.1 */
|
2059
2059
|
|
2060
|
-
function add_css$
|
2060
|
+
function add_css$f(target) {
|
2061
2061
|
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)}");
|
2062
2062
|
}
|
2063
2063
|
|
@@ -2237,7 +2237,7 @@ function create_if_block_1(ctx) {
|
|
2237
2237
|
};
|
2238
2238
|
}
|
2239
2239
|
|
2240
|
-
function create_fragment$
|
2240
|
+
function create_fragment$j(ctx) {
|
2241
2241
|
let backgroundoverray;
|
2242
2242
|
let t;
|
2243
2243
|
let if_block_anchor;
|
@@ -2330,7 +2330,7 @@ function create_fragment$f(ctx) {
|
|
2330
2330
|
};
|
2331
2331
|
}
|
2332
2332
|
|
2333
|
-
function instance$
|
2333
|
+
function instance$j($$self, $$props, $$invalidate) {
|
2334
2334
|
let click;
|
2335
2335
|
let close;
|
2336
2336
|
let closable;
|
@@ -2509,8 +2509,8 @@ class Modal extends SvelteComponent {
|
|
2509
2509
|
init(
|
2510
2510
|
this,
|
2511
2511
|
options,
|
2512
|
-
instance$
|
2513
|
-
create_fragment$
|
2512
|
+
instance$j,
|
2513
|
+
create_fragment$j,
|
2514
2514
|
safe_not_equal,
|
2515
2515
|
{
|
2516
2516
|
onClick: 16,
|
@@ -2525,14 +2525,14 @@ class Modal extends SvelteComponent {
|
|
2525
2525
|
closeEventValue: 22,
|
2526
2526
|
_closeStyle: 3
|
2527
2527
|
},
|
2528
|
-
add_css$
|
2528
|
+
add_css$f
|
2529
2529
|
);
|
2530
2530
|
}
|
2531
2531
|
}
|
2532
2532
|
|
2533
2533
|
/* src/components/Grid.svelte generated by Svelte v3.53.1 */
|
2534
2534
|
|
2535
|
-
function create_fragment$
|
2535
|
+
function create_fragment$i(ctx) {
|
2536
2536
|
let div;
|
2537
2537
|
let current;
|
2538
2538
|
const default_slot_template = /*#slots*/ ctx[8].default;
|
@@ -2590,7 +2590,7 @@ function create_fragment$e(ctx) {
|
|
2590
2590
|
};
|
2591
2591
|
}
|
2592
2592
|
|
2593
|
-
function instance$
|
2593
|
+
function instance$i($$self, $$props, $$invalidate) {
|
2594
2594
|
let _style;
|
2595
2595
|
let { $$slots: slots = {}, $$scope } = $$props;
|
2596
2596
|
let { width = '512px' } = $$props;
|
@@ -2635,7 +2635,7 @@ class Grid extends SvelteComponent {
|
|
2635
2635
|
constructor(options) {
|
2636
2636
|
super();
|
2637
2637
|
|
2638
|
-
init(this, options, instance$
|
2638
|
+
init(this, options, instance$i, create_fragment$i, safe_not_equal, {
|
2639
2639
|
width: 1,
|
2640
2640
|
height: 2,
|
2641
2641
|
rows: 3,
|
@@ -2817,7 +2817,7 @@ function create_default_slot(ctx) {
|
|
2817
2817
|
};
|
2818
2818
|
}
|
2819
2819
|
|
2820
|
-
function create_fragment$
|
2820
|
+
function create_fragment$h(ctx) {
|
2821
2821
|
let stateitem;
|
2822
2822
|
let current;
|
2823
2823
|
|
@@ -2862,7 +2862,7 @@ function create_fragment$d(ctx) {
|
|
2862
2862
|
};
|
2863
2863
|
}
|
2864
2864
|
|
2865
|
-
function instance$
|
2865
|
+
function instance$h($$self, $$props, $$invalidate) {
|
2866
2866
|
let { $$slots: slots = {}, $$scope } = $$props;
|
2867
2867
|
let { path } = $$props;
|
2868
2868
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
@@ -2933,7 +2933,7 @@ class GridModalState extends SvelteComponent {
|
|
2933
2933
|
constructor(options) {
|
2934
2934
|
super();
|
2935
2935
|
|
2936
|
-
init(this, options, instance$
|
2936
|
+
init(this, options, instance$h, create_fragment$h, safe_not_equal, {
|
2937
2937
|
path: 0,
|
2938
2938
|
onClick: 1,
|
2939
2939
|
clickEventName: 2,
|
@@ -2958,11 +2958,11 @@ class GridModalState extends SvelteComponent {
|
|
2958
2958
|
|
2959
2959
|
/* src/components/GridItem.svelte generated by Svelte v3.53.1 */
|
2960
2960
|
|
2961
|
-
function add_css$
|
2961
|
+
function add_css$e(target) {
|
2962
2962
|
append_styles(target, "svelte-n7kdl3", ".grid-item.svelte-n7kdl3{word-break:break-all;position:relative}.grid-item-inner.svelte-n7kdl3{position:absolute;inset:0}");
|
2963
2963
|
}
|
2964
2964
|
|
2965
|
-
function create_fragment$
|
2965
|
+
function create_fragment$g(ctx) {
|
2966
2966
|
let div1;
|
2967
2967
|
let div0;
|
2968
2968
|
let current;
|
@@ -3025,7 +3025,7 @@ function create_fragment$c(ctx) {
|
|
3025
3025
|
};
|
3026
3026
|
}
|
3027
3027
|
|
3028
|
-
function instance$
|
3028
|
+
function instance$g($$self, $$props, $$invalidate) {
|
3029
3029
|
let _style;
|
3030
3030
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3031
3031
|
let { x1 } = $$props;
|
@@ -3078,8 +3078,8 @@ class GridItem extends SvelteComponent {
|
|
3078
3078
|
init(
|
3079
3079
|
this,
|
3080
3080
|
options,
|
3081
|
-
instance$
|
3082
|
-
create_fragment$
|
3081
|
+
instance$g,
|
3082
|
+
create_fragment$g,
|
3083
3083
|
safe_not_equal,
|
3084
3084
|
{
|
3085
3085
|
x1: 2,
|
@@ -3089,18 +3089,18 @@ class GridItem extends SvelteComponent {
|
|
3089
3089
|
z: 6,
|
3090
3090
|
background: 7
|
3091
3091
|
},
|
3092
|
-
add_css$
|
3092
|
+
add_css$e
|
3093
3093
|
);
|
3094
3094
|
}
|
3095
3095
|
}
|
3096
3096
|
|
3097
3097
|
/* src/components/Flex.svelte generated by Svelte v3.53.1 */
|
3098
3098
|
|
3099
|
-
function add_css$
|
3099
|
+
function add_css$d(target) {
|
3100
3100
|
append_styles(target, "svelte-1e71ejc", ".flex.svelte-1e71ejc{display:flex}");
|
3101
3101
|
}
|
3102
3102
|
|
3103
|
-
function create_fragment$
|
3103
|
+
function create_fragment$f(ctx) {
|
3104
3104
|
let div;
|
3105
3105
|
let div_style_value;
|
3106
3106
|
let current;
|
@@ -3165,7 +3165,7 @@ function getFlexContext() {
|
|
3165
3165
|
return getContext(FlexContextKey);
|
3166
3166
|
}
|
3167
3167
|
|
3168
|
-
function instance$
|
3168
|
+
function instance$f($$self, $$props, $$invalidate) {
|
3169
3169
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3170
3170
|
let { direction = 'row' } = $$props;
|
3171
3171
|
let { width = '100%' } = $$props;
|
@@ -3191,8 +3191,8 @@ class Flex extends SvelteComponent {
|
|
3191
3191
|
init(
|
3192
3192
|
this,
|
3193
3193
|
options,
|
3194
|
-
instance$
|
3195
|
-
create_fragment$
|
3194
|
+
instance$f,
|
3195
|
+
create_fragment$f,
|
3196
3196
|
safe_not_equal,
|
3197
3197
|
{
|
3198
3198
|
direction: 0,
|
@@ -3200,18 +3200,18 @@ class Flex extends SvelteComponent {
|
|
3200
3200
|
height: 2,
|
3201
3201
|
_style: 3
|
3202
3202
|
},
|
3203
|
-
add_css$
|
3203
|
+
add_css$d
|
3204
3204
|
);
|
3205
3205
|
}
|
3206
3206
|
}
|
3207
3207
|
|
3208
3208
|
/* src/components/FlexItem.svelte generated by Svelte v3.53.1 */
|
3209
3209
|
|
3210
|
-
function add_css$
|
3210
|
+
function add_css$c(target) {
|
3211
3211
|
append_styles(target, "svelte-1p0bk1x", ".flex-item.svelte-1p0bk1x{max-width:100%;max-height:100%;position:relative;isolation:isolate}");
|
3212
3212
|
}
|
3213
3213
|
|
3214
|
-
function create_fragment$
|
3214
|
+
function create_fragment$e(ctx) {
|
3215
3215
|
let div;
|
3216
3216
|
let current;
|
3217
3217
|
const default_slot_template = /*#slots*/ ctx[4].default;
|
@@ -3269,7 +3269,7 @@ function create_fragment$a(ctx) {
|
|
3269
3269
|
};
|
3270
3270
|
}
|
3271
3271
|
|
3272
|
-
function instance$
|
3272
|
+
function instance$e($$self, $$props, $$invalidate) {
|
3273
3273
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3274
3274
|
let { length } = $$props;
|
3275
3275
|
let { _style = '' } = $$props;
|
@@ -3312,13 +3312,13 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
3312
3312
|
class FlexItem extends SvelteComponent {
|
3313
3313
|
constructor(options) {
|
3314
3314
|
super();
|
3315
|
-
init(this, options, instance$
|
3315
|
+
init(this, options, instance$e, create_fragment$e, safe_not_equal, { length: 1, _style: 2 }, add_css$c);
|
3316
3316
|
}
|
3317
3317
|
}
|
3318
3318
|
|
3319
3319
|
/* src/components/RenderText.svelte generated by Svelte v3.53.1 */
|
3320
3320
|
|
3321
|
-
function get_each_context(ctx, list, i) {
|
3321
|
+
function get_each_context$1(ctx, list, i) {
|
3322
3322
|
const child_ctx = ctx.slice();
|
3323
3323
|
child_ctx[2] = list[i];
|
3324
3324
|
return child_ctx;
|
@@ -3364,7 +3364,7 @@ function create_if_block(ctx) {
|
|
3364
3364
|
}
|
3365
3365
|
|
3366
3366
|
// (9:0) {#each items as item}
|
3367
|
-
function create_each_block(ctx) {
|
3367
|
+
function create_each_block$1(ctx) {
|
3368
3368
|
let show_if;
|
3369
3369
|
let if_block_anchor;
|
3370
3370
|
|
@@ -3407,13 +3407,13 @@ function create_each_block(ctx) {
|
|
3407
3407
|
};
|
3408
3408
|
}
|
3409
3409
|
|
3410
|
-
function create_fragment$
|
3410
|
+
function create_fragment$d(ctx) {
|
3411
3411
|
let each_1_anchor;
|
3412
3412
|
let each_value = /*items*/ ctx[0];
|
3413
3413
|
let each_blocks = [];
|
3414
3414
|
|
3415
3415
|
for (let i = 0; i < each_value.length; i += 1) {
|
3416
|
-
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
3416
|
+
each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
|
3417
3417
|
}
|
3418
3418
|
|
3419
3419
|
return {
|
@@ -3437,12 +3437,12 @@ function create_fragment$9(ctx) {
|
|
3437
3437
|
let i;
|
3438
3438
|
|
3439
3439
|
for (i = 0; i < each_value.length; i += 1) {
|
3440
|
-
const child_ctx = get_each_context(ctx, each_value, i);
|
3440
|
+
const child_ctx = get_each_context$1(ctx, each_value, i);
|
3441
3441
|
|
3442
3442
|
if (each_blocks[i]) {
|
3443
3443
|
each_blocks[i].p(child_ctx, dirty);
|
3444
3444
|
} else {
|
3445
|
-
each_blocks[i] = create_each_block(child_ctx);
|
3445
|
+
each_blocks[i] = create_each_block$1(child_ctx);
|
3446
3446
|
each_blocks[i].c();
|
3447
3447
|
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
3448
3448
|
}
|
@@ -3466,7 +3466,7 @@ function create_fragment$9(ctx) {
|
|
3466
3466
|
|
3467
3467
|
const regexp = /(\r?\n)/;
|
3468
3468
|
|
3469
|
-
function instance$
|
3469
|
+
function instance$d($$self, $$props, $$invalidate) {
|
3470
3470
|
let items;
|
3471
3471
|
let { text = 'サンプルSample' } = $$props;
|
3472
3472
|
|
@@ -3486,17 +3486,17 @@ function instance$9($$self, $$props, $$invalidate) {
|
|
3486
3486
|
class RenderText extends SvelteComponent {
|
3487
3487
|
constructor(options) {
|
3488
3488
|
super();
|
3489
|
-
init(this, options, instance$
|
3489
|
+
init(this, options, instance$d, create_fragment$d, safe_not_equal, { text: 1 });
|
3490
3490
|
}
|
3491
3491
|
}
|
3492
3492
|
|
3493
3493
|
/* src/components/TextElement.svelte generated by Svelte v3.53.1 */
|
3494
3494
|
|
3495
|
-
function add_css$
|
3495
|
+
function add_css$b(target) {
|
3496
3496
|
append_styles(target, "svelte-ww7ebs", ".text-element.svelte-ww7ebs{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;overflow:auto}.text-element-inner.svelte-ww7ebs{width:100%}");
|
3497
3497
|
}
|
3498
3498
|
|
3499
|
-
function create_fragment$
|
3499
|
+
function create_fragment$c(ctx) {
|
3500
3500
|
let div1;
|
3501
3501
|
let div0;
|
3502
3502
|
let rendertext;
|
@@ -3543,7 +3543,7 @@ function create_fragment$8(ctx) {
|
|
3543
3543
|
};
|
3544
3544
|
}
|
3545
3545
|
|
3546
|
-
function instance$
|
3546
|
+
function instance$c($$self, $$props, $$invalidate) {
|
3547
3547
|
let style;
|
3548
3548
|
let { text = 'サンプルSample' } = $$props;
|
3549
3549
|
let { _textStyle = 'font-size:12px;' } = $$props;
|
@@ -3567,17 +3567,17 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
3567
3567
|
class TextElement extends SvelteComponent {
|
3568
3568
|
constructor(options) {
|
3569
3569
|
super();
|
3570
|
-
init(this, options, instance$
|
3570
|
+
init(this, options, instance$c, create_fragment$c, safe_not_equal, { text: 0, _textStyle: 2, _style: 3 }, add_css$b);
|
3571
3571
|
}
|
3572
3572
|
}
|
3573
3573
|
|
3574
3574
|
/* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
|
3575
3575
|
|
3576
|
-
function add_css$
|
3576
|
+
function add_css$a(target) {
|
3577
3577
|
append_styles(target, "svelte-tx5xf5", ".text-button-element.svelte-tx5xf5{width:100%;height:100%}.text-button.svelte-tx5xf5{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;white-space:pre-wrap;overflow:hidden}.text-button.svelte-tx5xf5:active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button.svelte-tx5xf5:hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
|
3578
3578
|
}
|
3579
3579
|
|
3580
|
-
function create_fragment$
|
3580
|
+
function create_fragment$b(ctx) {
|
3581
3581
|
let div;
|
3582
3582
|
let button;
|
3583
3583
|
let rendertext;
|
@@ -3638,7 +3638,7 @@ function create_fragment$7(ctx) {
|
|
3638
3638
|
};
|
3639
3639
|
}
|
3640
3640
|
|
3641
|
-
function instance$
|
3641
|
+
function instance$b($$self, $$props, $$invalidate) {
|
3642
3642
|
let { text = 'ボタンラベル' } = $$props;
|
3643
3643
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
3644
3644
|
|
@@ -3672,8 +3672,8 @@ class TextButtonElement extends SvelteComponent {
|
|
3672
3672
|
init(
|
3673
3673
|
this,
|
3674
3674
|
options,
|
3675
|
-
instance$
|
3676
|
-
create_fragment$
|
3675
|
+
instance$b,
|
3676
|
+
create_fragment$b,
|
3677
3677
|
safe_not_equal,
|
3678
3678
|
{
|
3679
3679
|
text: 0,
|
@@ -3682,18 +3682,18 @@ class TextButtonElement extends SvelteComponent {
|
|
3682
3682
|
_buttonStyle: 1,
|
3683
3683
|
_style: 2
|
3684
3684
|
},
|
3685
|
-
add_css$
|
3685
|
+
add_css$a
|
3686
3686
|
);
|
3687
3687
|
}
|
3688
3688
|
}
|
3689
3689
|
|
3690
3690
|
/* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
|
3691
3691
|
|
3692
|
-
function add_css$
|
3692
|
+
function add_css$9(target) {
|
3693
3693
|
append_styles(target, "svelte-t8kpqw", ".image-element.svelte-t8kpqw{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;overflow:hidden}.image.svelte-t8kpqw{width:100%;height:100%}.transport.svelte-t8kpqw:hover,.transport.svelte-t8kpqw:focus{opacity:0.75;box-shadow:0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.16)}");
|
3694
3694
|
}
|
3695
3695
|
|
3696
|
-
function create_fragment$
|
3696
|
+
function create_fragment$a(ctx) {
|
3697
3697
|
let div;
|
3698
3698
|
let img;
|
3699
3699
|
let img_src_value;
|
@@ -3755,7 +3755,7 @@ function create_fragment$6(ctx) {
|
|
3755
3755
|
};
|
3756
3756
|
}
|
3757
3757
|
|
3758
|
-
function instance$
|
3758
|
+
function instance$a($$self, $$props, $$invalidate) {
|
3759
3759
|
let { src = 'https://admin.karte.io/action-editor2/public/images/no_image_en.svg' } = $$props;
|
3760
3760
|
let { alt = 'No Image' } = $$props;
|
3761
3761
|
let { transport = false } = $$props;
|
@@ -3793,8 +3793,8 @@ class ImageElement extends SvelteComponent {
|
|
3793
3793
|
init(
|
3794
3794
|
this,
|
3795
3795
|
options,
|
3796
|
-
instance$
|
3797
|
-
create_fragment$
|
3796
|
+
instance$a,
|
3797
|
+
create_fragment$a,
|
3798
3798
|
safe_not_equal,
|
3799
3799
|
{
|
3800
3800
|
src: 0,
|
@@ -3805,18 +3805,18 @@ class ImageElement extends SvelteComponent {
|
|
3805
3805
|
_imageStyle: 3,
|
3806
3806
|
_style: 4
|
3807
3807
|
},
|
3808
|
-
add_css$
|
3808
|
+
add_css$9
|
3809
3809
|
);
|
3810
3810
|
}
|
3811
3811
|
}
|
3812
3812
|
|
3813
3813
|
/* src/components/List.svelte generated by Svelte v3.53.1 */
|
3814
3814
|
|
3815
|
-
function add_css$
|
3815
|
+
function add_css$8(target) {
|
3816
3816
|
append_styles(target, "svelte-dfqtyx", ".list.svelte-dfqtyx{display:flex;width:100%;height:100%;overflow:hidden}");
|
3817
3817
|
}
|
3818
3818
|
|
3819
|
-
function create_fragment$
|
3819
|
+
function create_fragment$9(ctx) {
|
3820
3820
|
let div;
|
3821
3821
|
let current;
|
3822
3822
|
const default_slot_template = /*#slots*/ ctx[6].default;
|
@@ -3876,7 +3876,7 @@ function create_fragment$5(ctx) {
|
|
3876
3876
|
|
3877
3877
|
const LIST_CONTEXT_KEY = Symbol();
|
3878
3878
|
|
3879
|
-
function instance$
|
3879
|
+
function instance$9($$self, $$props, $$invalidate) {
|
3880
3880
|
let style;
|
3881
3881
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3882
3882
|
let { direction = 'vertical' } = $$props;
|
@@ -3943,8 +3943,8 @@ class List extends SvelteComponent {
|
|
3943
3943
|
init(
|
3944
3944
|
this,
|
3945
3945
|
options,
|
3946
|
-
instance$
|
3947
|
-
create_fragment$
|
3946
|
+
instance$9,
|
3947
|
+
create_fragment$9,
|
3948
3948
|
safe_not_equal,
|
3949
3949
|
{
|
3950
3950
|
direction: 1,
|
@@ -3952,18 +3952,18 @@ class List extends SvelteComponent {
|
|
3952
3952
|
background: 3,
|
3953
3953
|
_style: 4
|
3954
3954
|
},
|
3955
|
-
add_css$
|
3955
|
+
add_css$8
|
3956
3956
|
);
|
3957
3957
|
}
|
3958
3958
|
}
|
3959
3959
|
|
3960
3960
|
/* src/components/ListItem.svelte generated by Svelte v3.53.1 */
|
3961
3961
|
|
3962
|
-
function add_css$
|
3962
|
+
function add_css$7(target) {
|
3963
3963
|
append_styles(target, "svelte-h5j4xe", ".list-item.svelte-h5j4xe{flex:auto;box-sizing:border-box;min-width:0;min-height:0;position:relative}.list-item-inner.svelte-h5j4xe{position:absolute;inset:0}");
|
3964
3964
|
}
|
3965
3965
|
|
3966
|
-
function create_fragment$
|
3966
|
+
function create_fragment$8(ctx) {
|
3967
3967
|
let div1;
|
3968
3968
|
let div0;
|
3969
3969
|
let current;
|
@@ -4044,7 +4044,7 @@ function create_fragment$4(ctx) {
|
|
4044
4044
|
};
|
4045
4045
|
}
|
4046
4046
|
|
4047
|
-
function instance$
|
4047
|
+
function instance$8($$self, $$props, $$invalidate) {
|
4048
4048
|
let click;
|
4049
4049
|
let listItemStyle;
|
4050
4050
|
let { $$slots: slots = {}, $$scope } = $$props;
|
@@ -4134,17 +4134,17 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
4134
4134
|
class ListItem extends SvelteComponent {
|
4135
4135
|
constructor(options) {
|
4136
4136
|
super();
|
4137
|
-
init(this, options, instance$
|
4137
|
+
init(this, options, instance$8, create_fragment$8, safe_not_equal, { onClick: 3, clickEventName: 4, _style: 0 }, add_css$7);
|
4138
4138
|
}
|
4139
4139
|
}
|
4140
4140
|
|
4141
4141
|
/* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
|
4142
4142
|
|
4143
|
-
function add_css$
|
4143
|
+
function add_css$6(target) {
|
4144
4144
|
append_styles(target, "svelte-k86zna", ".embed.svelte-k86zna{position:relative;box-shadow:0 1px rgba(0, 0, 0, 0.06);padding-top:56.25%;overflow:hidden}.embed.svelte-k86zna iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
|
4145
4145
|
}
|
4146
4146
|
|
4147
|
-
function create_fragment$
|
4147
|
+
function create_fragment$7(ctx) {
|
4148
4148
|
let div;
|
4149
4149
|
|
4150
4150
|
return {
|
@@ -4171,7 +4171,7 @@ function create_fragment$3(ctx) {
|
|
4171
4171
|
};
|
4172
4172
|
}
|
4173
4173
|
|
4174
|
-
function instance$
|
4174
|
+
function instance$7($$self, $$props, $$invalidate) {
|
4175
4175
|
let { code } = $$props;
|
4176
4176
|
let { _style = '' } = $$props;
|
4177
4177
|
|
@@ -4186,7 +4186,572 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
4186
4186
|
class EmbedElement extends SvelteComponent {
|
4187
4187
|
constructor(options) {
|
4188
4188
|
super();
|
4189
|
-
init(this, options, instance$
|
4189
|
+
init(this, options, instance$7, create_fragment$7, safe_not_equal, { code: 0, _style: 1 }, add_css$6);
|
4190
|
+
}
|
4191
|
+
}
|
4192
|
+
|
4193
|
+
/* src/components/Form.svelte generated by Svelte v3.53.1 */
|
4194
|
+
|
4195
|
+
function add_css$5(target) {
|
4196
|
+
append_styles(target, "svelte-1il0aow", ".form.svelte-1il0aow{width:100%;height:100%}");
|
4197
|
+
}
|
4198
|
+
|
4199
|
+
function create_fragment$6(ctx) {
|
4200
|
+
let div;
|
4201
|
+
let current;
|
4202
|
+
const default_slot_template = /*#slots*/ ctx[4].default;
|
4203
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[3], null);
|
4204
|
+
|
4205
|
+
return {
|
4206
|
+
c() {
|
4207
|
+
div = element("div");
|
4208
|
+
if (default_slot) default_slot.c();
|
4209
|
+
attr(div, "class", "form svelte-1il0aow");
|
4210
|
+
},
|
4211
|
+
m(target, anchor) {
|
4212
|
+
insert(target, div, anchor);
|
4213
|
+
|
4214
|
+
if (default_slot) {
|
4215
|
+
default_slot.m(div, null);
|
4216
|
+
}
|
4217
|
+
|
4218
|
+
current = true;
|
4219
|
+
},
|
4220
|
+
p(ctx, [dirty]) {
|
4221
|
+
if (default_slot) {
|
4222
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 8)) {
|
4223
|
+
update_slot_base(
|
4224
|
+
default_slot,
|
4225
|
+
default_slot_template,
|
4226
|
+
ctx,
|
4227
|
+
/*$$scope*/ ctx[3],
|
4228
|
+
!current
|
4229
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[3])
|
4230
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[3], dirty, null),
|
4231
|
+
null
|
4232
|
+
);
|
4233
|
+
}
|
4234
|
+
}
|
4235
|
+
},
|
4236
|
+
i(local) {
|
4237
|
+
if (current) return;
|
4238
|
+
transition_in(default_slot, local);
|
4239
|
+
current = true;
|
4240
|
+
},
|
4241
|
+
o(local) {
|
4242
|
+
transition_out(default_slot, local);
|
4243
|
+
current = false;
|
4244
|
+
},
|
4245
|
+
d(detaching) {
|
4246
|
+
if (detaching) detach(div);
|
4247
|
+
if (default_slot) default_slot.d(detaching);
|
4248
|
+
}
|
4249
|
+
};
|
4250
|
+
}
|
4251
|
+
|
4252
|
+
const FORM_CONTEXT_KEY = Symbol();
|
4253
|
+
|
4254
|
+
function getValue($formData, name) {
|
4255
|
+
return $formData._data[name];
|
4256
|
+
}
|
4257
|
+
|
4258
|
+
function updateValue(data, name, update) {
|
4259
|
+
data.update(prev => {
|
4260
|
+
const { value, isValid } = update(prev._data[name]);
|
4261
|
+
prev._data[name] = value;
|
4262
|
+
prev._isValidMap[name] = isValid;
|
4263
|
+
return { ...prev };
|
4264
|
+
});
|
4265
|
+
}
|
4266
|
+
|
4267
|
+
function checkIfDataAreValid($formData) {
|
4268
|
+
const dataAreValid = Object.entries($formData._data).reduce(
|
4269
|
+
(dataAreValid, [name]) => {
|
4270
|
+
return dataAreValid && ($formData._isValidMap[name] ?? true);
|
4271
|
+
},
|
4272
|
+
true
|
4273
|
+
);
|
4274
|
+
|
4275
|
+
return dataAreValid;
|
4276
|
+
}
|
4277
|
+
|
4278
|
+
const createFormDataAccessor = formId => {
|
4279
|
+
const variableKey = `_form_${formId}`;
|
4280
|
+
|
4281
|
+
const update = updater => {
|
4282
|
+
customVariables.update(prev => {
|
4283
|
+
const updatedFormData = updater(prev[variableKey] ?? {});
|
4284
|
+
return { ...prev, [variableKey]: updatedFormData };
|
4285
|
+
});
|
4286
|
+
};
|
4287
|
+
|
4288
|
+
const subscribe = run => {
|
4289
|
+
return customVariables.subscribe(value => {
|
4290
|
+
const formData = value[variableKey] ?? {};
|
4291
|
+
run(formData);
|
4292
|
+
});
|
4293
|
+
};
|
4294
|
+
|
4295
|
+
const set = value => {
|
4296
|
+
customVariables.update(prev => {
|
4297
|
+
return { ...prev, [variableKey]: value };
|
4298
|
+
});
|
4299
|
+
};
|
4300
|
+
|
4301
|
+
return { update, set, subscribe };
|
4302
|
+
};
|
4303
|
+
|
4304
|
+
function instance$6($$self, $$props, $$invalidate) {
|
4305
|
+
let $formData;
|
4306
|
+
let $formComponentData;
|
4307
|
+
let { $$slots: slots = {}, $$scope } = $$props;
|
4308
|
+
let { formId = 'form0' } = $$props;
|
4309
|
+
const formComponentData = writable({ _data: {}, _isValidMap: {} });
|
4310
|
+
component_subscribe($$self, formComponentData, value => $$invalidate(6, $formComponentData = value));
|
4311
|
+
|
4312
|
+
setContext(FORM_CONTEXT_KEY, {
|
4313
|
+
formComponentData,
|
4314
|
+
submit: ({ stateId }) => {
|
4315
|
+
if (checkIfDataAreValid($formComponentData)) {
|
4316
|
+
formData.update(prev => ({ ...prev, ...$formComponentData._data }));
|
4317
|
+
console.log('will send', $formData);
|
4318
|
+
setState$1(stateId, true);
|
4319
|
+
}
|
4320
|
+
},
|
4321
|
+
next: ({ stateId }) => {
|
4322
|
+
if (checkIfDataAreValid($formComponentData)) {
|
4323
|
+
formData.update(prev => ({ ...prev, ...$formComponentData._data }));
|
4324
|
+
setState$1(stateId, true);
|
4325
|
+
console.log('formData after next()', $formData);
|
4326
|
+
}
|
4327
|
+
},
|
4328
|
+
prev: ({ stateId }) => {
|
4329
|
+
formData.update(prev => {
|
4330
|
+
Object.keys($formComponentData._data).forEach(name => {
|
4331
|
+
delete prev[name];
|
4332
|
+
});
|
4333
|
+
|
4334
|
+
return { ...prev };
|
4335
|
+
});
|
4336
|
+
|
4337
|
+
setState$1(stateId, true);
|
4338
|
+
console.log('formData after prev()', $formData);
|
4339
|
+
}
|
4340
|
+
});
|
4341
|
+
|
4342
|
+
const formData = createFormDataAccessor(formId);
|
4343
|
+
component_subscribe($$self, formData, value => $$invalidate(5, $formData = value));
|
4344
|
+
|
4345
|
+
$$self.$$set = $$props => {
|
4346
|
+
if ('formId' in $$props) $$invalidate(2, formId = $$props.formId);
|
4347
|
+
if ('$$scope' in $$props) $$invalidate(3, $$scope = $$props.$$scope);
|
4348
|
+
};
|
4349
|
+
|
4350
|
+
return [formComponentData, formData, formId, $$scope, slots];
|
4351
|
+
}
|
4352
|
+
|
4353
|
+
class Form extends SvelteComponent {
|
4354
|
+
constructor(options) {
|
4355
|
+
super();
|
4356
|
+
init(this, options, instance$6, create_fragment$6, safe_not_equal, { formId: 2 }, add_css$5);
|
4357
|
+
}
|
4358
|
+
}
|
4359
|
+
|
4360
|
+
/* src/components/FormTextarea.svelte generated by Svelte v3.53.1 */
|
4361
|
+
|
4362
|
+
function add_css$4(target) {
|
4363
|
+
append_styles(target, "svelte-kyay3k", ".textarea-wrapper.svelte-kyay3k{display:flex;align-items:center;width:100%;height:100%}.textarea.svelte-kyay3k{width:100%;resize:none}");
|
4364
|
+
}
|
4365
|
+
|
4366
|
+
function create_fragment$5(ctx) {
|
4367
|
+
let div;
|
4368
|
+
let textarea;
|
4369
|
+
let mounted;
|
4370
|
+
let dispose;
|
4371
|
+
|
4372
|
+
return {
|
4373
|
+
c() {
|
4374
|
+
div = element("div");
|
4375
|
+
textarea = element("textarea");
|
4376
|
+
attr(textarea, "class", "textarea svelte-kyay3k");
|
4377
|
+
textarea.value = /*value*/ ctx[3];
|
4378
|
+
textarea.required = /*required*/ ctx[0];
|
4379
|
+
attr(textarea, "rows", /*rows*/ ctx[1]);
|
4380
|
+
attr(textarea, "placeholder", /*placeholder*/ ctx[2]);
|
4381
|
+
attr(div, "class", "textarea-wrapper svelte-kyay3k");
|
4382
|
+
},
|
4383
|
+
m(target, anchor) {
|
4384
|
+
insert(target, div, anchor);
|
4385
|
+
append(div, textarea);
|
4386
|
+
|
4387
|
+
if (!mounted) {
|
4388
|
+
dispose = listen(textarea, "input", /*handleInput*/ ctx[5]);
|
4389
|
+
mounted = true;
|
4390
|
+
}
|
4391
|
+
},
|
4392
|
+
p(ctx, [dirty]) {
|
4393
|
+
if (dirty & /*value*/ 8) {
|
4394
|
+
textarea.value = /*value*/ ctx[3];
|
4395
|
+
}
|
4396
|
+
|
4397
|
+
if (dirty & /*required*/ 1) {
|
4398
|
+
textarea.required = /*required*/ ctx[0];
|
4399
|
+
}
|
4400
|
+
|
4401
|
+
if (dirty & /*rows*/ 2) {
|
4402
|
+
attr(textarea, "rows", /*rows*/ ctx[1]);
|
4403
|
+
}
|
4404
|
+
|
4405
|
+
if (dirty & /*placeholder*/ 4) {
|
4406
|
+
attr(textarea, "placeholder", /*placeholder*/ ctx[2]);
|
4407
|
+
}
|
4408
|
+
},
|
4409
|
+
i: noop,
|
4410
|
+
o: noop,
|
4411
|
+
d(detaching) {
|
4412
|
+
if (detaching) detach(div);
|
4413
|
+
mounted = false;
|
4414
|
+
dispose();
|
4415
|
+
}
|
4416
|
+
};
|
4417
|
+
}
|
4418
|
+
|
4419
|
+
function instance$5($$self, $$props, $$invalidate) {
|
4420
|
+
let value;
|
4421
|
+
let $formComponentData;
|
4422
|
+
let { name = '' } = $$props;
|
4423
|
+
let { required = true } = $$props;
|
4424
|
+
let { rows = 2 } = $$props;
|
4425
|
+
let { placeholder = '' } = $$props;
|
4426
|
+
const { formComponentData } = getContext(FORM_CONTEXT_KEY);
|
4427
|
+
component_subscribe($$self, formComponentData, value => $$invalidate(7, $formComponentData = value));
|
4428
|
+
|
4429
|
+
function setValue(value) {
|
4430
|
+
updateValue(formComponentData, name, () => ({
|
4431
|
+
value,
|
4432
|
+
isValid: required ? !!value : true
|
4433
|
+
}));
|
4434
|
+
}
|
4435
|
+
|
4436
|
+
function handleInput(event) {
|
4437
|
+
const value = event.target.value;
|
4438
|
+
setValue(value);
|
4439
|
+
}
|
4440
|
+
|
4441
|
+
setValue(value);
|
4442
|
+
|
4443
|
+
$$self.$$set = $$props => {
|
4444
|
+
if ('name' in $$props) $$invalidate(6, name = $$props.name);
|
4445
|
+
if ('required' in $$props) $$invalidate(0, required = $$props.required);
|
4446
|
+
if ('rows' in $$props) $$invalidate(1, rows = $$props.rows);
|
4447
|
+
if ('placeholder' in $$props) $$invalidate(2, placeholder = $$props.placeholder);
|
4448
|
+
};
|
4449
|
+
|
4450
|
+
$$self.$$.update = () => {
|
4451
|
+
if ($$self.$$.dirty & /*$formComponentData, name*/ 192) {
|
4452
|
+
$$invalidate(3, value = getValue($formComponentData, name) ?? '');
|
4453
|
+
}
|
4454
|
+
};
|
4455
|
+
|
4456
|
+
return [
|
4457
|
+
required,
|
4458
|
+
rows,
|
4459
|
+
placeholder,
|
4460
|
+
value,
|
4461
|
+
formComponentData,
|
4462
|
+
handleInput,
|
4463
|
+
name,
|
4464
|
+
$formComponentData
|
4465
|
+
];
|
4466
|
+
}
|
4467
|
+
|
4468
|
+
class FormTextarea extends SvelteComponent {
|
4469
|
+
constructor(options) {
|
4470
|
+
super();
|
4471
|
+
|
4472
|
+
init(
|
4473
|
+
this,
|
4474
|
+
options,
|
4475
|
+
instance$5,
|
4476
|
+
create_fragment$5,
|
4477
|
+
safe_not_equal,
|
4478
|
+
{
|
4479
|
+
name: 6,
|
4480
|
+
required: 0,
|
4481
|
+
rows: 1,
|
4482
|
+
placeholder: 2
|
4483
|
+
},
|
4484
|
+
add_css$4
|
4485
|
+
);
|
4486
|
+
}
|
4487
|
+
}
|
4488
|
+
|
4489
|
+
/* src/components/FormButton.svelte generated by Svelte v3.53.1 */
|
4490
|
+
|
4491
|
+
function create_fragment$4(ctx) {
|
4492
|
+
let input;
|
4493
|
+
let mounted;
|
4494
|
+
let dispose;
|
4495
|
+
|
4496
|
+
return {
|
4497
|
+
c() {
|
4498
|
+
input = element("input");
|
4499
|
+
attr(input, "type", "button");
|
4500
|
+
set_style(input, "width", "100%");
|
4501
|
+
set_style(input, "height", "100%");
|
4502
|
+
input.value = /*text*/ ctx[0];
|
4503
|
+
input.disabled = /*disabled*/ ctx[1];
|
4504
|
+
},
|
4505
|
+
m(target, anchor) {
|
4506
|
+
insert(target, input, anchor);
|
4507
|
+
|
4508
|
+
if (!mounted) {
|
4509
|
+
dispose = listen(input, "click", /*handleClick*/ ctx[3]);
|
4510
|
+
mounted = true;
|
4511
|
+
}
|
4512
|
+
},
|
4513
|
+
p(ctx, [dirty]) {
|
4514
|
+
if (dirty & /*text*/ 1) {
|
4515
|
+
input.value = /*text*/ ctx[0];
|
4516
|
+
}
|
4517
|
+
|
4518
|
+
if (dirty & /*disabled*/ 2) {
|
4519
|
+
input.disabled = /*disabled*/ ctx[1];
|
4520
|
+
}
|
4521
|
+
},
|
4522
|
+
i: noop,
|
4523
|
+
o: noop,
|
4524
|
+
d(detaching) {
|
4525
|
+
if (detaching) detach(input);
|
4526
|
+
mounted = false;
|
4527
|
+
dispose();
|
4528
|
+
}
|
4529
|
+
};
|
4530
|
+
}
|
4531
|
+
|
4532
|
+
function instance$4($$self, $$props, $$invalidate) {
|
4533
|
+
let disabled;
|
4534
|
+
let $formComponentData;
|
4535
|
+
let { text = '' } = $$props;
|
4536
|
+
let { type = { type: 'submit' } } = $$props;
|
4537
|
+
const { formComponentData, submit, next, prev } = getContext(FORM_CONTEXT_KEY);
|
4538
|
+
component_subscribe($$self, formComponentData, value => $$invalidate(5, $formComponentData = value));
|
4539
|
+
|
4540
|
+
function handleClick() {
|
4541
|
+
switch (type.type) {
|
4542
|
+
case 'submit':
|
4543
|
+
{
|
4544
|
+
const stateId = type.stateId;
|
4545
|
+
submit({ stateId });
|
4546
|
+
break;
|
4547
|
+
}
|
4548
|
+
case 'next':
|
4549
|
+
{
|
4550
|
+
const stateId = type.stateId;
|
4551
|
+
next({ stateId });
|
4552
|
+
break;
|
4553
|
+
}
|
4554
|
+
case 'prev':
|
4555
|
+
{
|
4556
|
+
const stateId = type.stateId;
|
4557
|
+
prev({ stateId });
|
4558
|
+
break;
|
4559
|
+
}
|
4560
|
+
}
|
4561
|
+
}
|
4562
|
+
|
4563
|
+
$$self.$$set = $$props => {
|
4564
|
+
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
4565
|
+
if ('type' in $$props) $$invalidate(4, type = $$props.type);
|
4566
|
+
};
|
4567
|
+
|
4568
|
+
$$self.$$.update = () => {
|
4569
|
+
if ($$self.$$.dirty & /*type, $formComponentData*/ 48) {
|
4570
|
+
$$invalidate(1, disabled = (() => {
|
4571
|
+
if (type.type === 'prev') return false;
|
4572
|
+
|
4573
|
+
const dataAreValid = Object.entries($formComponentData._data).reduce(
|
4574
|
+
(dataAreValid, [name]) => {
|
4575
|
+
return dataAreValid && ($formComponentData._isValidMap[name] ?? true);
|
4576
|
+
},
|
4577
|
+
true
|
4578
|
+
);
|
4579
|
+
|
4580
|
+
return !dataAreValid;
|
4581
|
+
})());
|
4582
|
+
}
|
4583
|
+
};
|
4584
|
+
|
4585
|
+
return [text, disabled, formComponentData, handleClick, type, $formComponentData];
|
4586
|
+
}
|
4587
|
+
|
4588
|
+
class FormButton extends SvelteComponent {
|
4589
|
+
constructor(options) {
|
4590
|
+
super();
|
4591
|
+
init(this, options, instance$4, create_fragment$4, safe_not_equal, { text: 0, type: 4 });
|
4592
|
+
}
|
4593
|
+
}
|
4594
|
+
|
4595
|
+
/* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
|
4596
|
+
|
4597
|
+
function add_css$3(target) {
|
4598
|
+
append_styles(target, "svelte-1ajmbw1", ".radio-buttons.svelte-1ajmbw1{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
|
4599
|
+
}
|
4600
|
+
|
4601
|
+
function get_each_context(ctx, list, i) {
|
4602
|
+
const child_ctx = ctx.slice();
|
4603
|
+
child_ctx[5] = list[i];
|
4604
|
+
child_ctx[7] = i;
|
4605
|
+
return child_ctx;
|
4606
|
+
}
|
4607
|
+
|
4608
|
+
// (16:2) {#each _options as option, i}
|
4609
|
+
function create_each_block(ctx) {
|
4610
|
+
let label;
|
4611
|
+
let input;
|
4612
|
+
let input_value_value;
|
4613
|
+
let t0;
|
4614
|
+
let t1_value = /*option*/ ctx[5] + "";
|
4615
|
+
let t1;
|
4616
|
+
let t2;
|
4617
|
+
let mounted;
|
4618
|
+
let dispose;
|
4619
|
+
|
4620
|
+
return {
|
4621
|
+
c() {
|
4622
|
+
label = element("label");
|
4623
|
+
input = element("input");
|
4624
|
+
t0 = space();
|
4625
|
+
t1 = text(t1_value);
|
4626
|
+
t2 = space();
|
4627
|
+
attr(input, "type", "radio");
|
4628
|
+
attr(input, "name", /*name*/ ctx[0]);
|
4629
|
+
input.value = input_value_value = /*option*/ ctx[5];
|
4630
|
+
},
|
4631
|
+
m(target, anchor) {
|
4632
|
+
insert(target, label, anchor);
|
4633
|
+
append(label, input);
|
4634
|
+
append(label, t0);
|
4635
|
+
append(label, t1);
|
4636
|
+
append(label, t2);
|
4637
|
+
|
4638
|
+
if (!mounted) {
|
4639
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[2](/*i*/ ctx[7]));
|
4640
|
+
mounted = true;
|
4641
|
+
}
|
4642
|
+
},
|
4643
|
+
p(new_ctx, dirty) {
|
4644
|
+
ctx = new_ctx;
|
4645
|
+
|
4646
|
+
if (dirty & /*name*/ 1) {
|
4647
|
+
attr(input, "name", /*name*/ ctx[0]);
|
4648
|
+
}
|
4649
|
+
|
4650
|
+
if (dirty & /*_options*/ 2 && input_value_value !== (input_value_value = /*option*/ ctx[5])) {
|
4651
|
+
input.value = input_value_value;
|
4652
|
+
}
|
4653
|
+
|
4654
|
+
if (dirty & /*_options*/ 2 && t1_value !== (t1_value = /*option*/ ctx[5] + "")) set_data(t1, t1_value);
|
4655
|
+
},
|
4656
|
+
d(detaching) {
|
4657
|
+
if (detaching) detach(label);
|
4658
|
+
mounted = false;
|
4659
|
+
dispose();
|
4660
|
+
}
|
4661
|
+
};
|
4662
|
+
}
|
4663
|
+
|
4664
|
+
function create_fragment$3(ctx) {
|
4665
|
+
let div;
|
4666
|
+
let each_value = /*_options*/ ctx[1];
|
4667
|
+
let each_blocks = [];
|
4668
|
+
|
4669
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
4670
|
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
4671
|
+
}
|
4672
|
+
|
4673
|
+
return {
|
4674
|
+
c() {
|
4675
|
+
div = element("div");
|
4676
|
+
|
4677
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
4678
|
+
each_blocks[i].c();
|
4679
|
+
}
|
4680
|
+
|
4681
|
+
attr(div, "class", "radio-buttons svelte-1ajmbw1");
|
4682
|
+
},
|
4683
|
+
m(target, anchor) {
|
4684
|
+
insert(target, div, anchor);
|
4685
|
+
|
4686
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
4687
|
+
each_blocks[i].m(div, null);
|
4688
|
+
}
|
4689
|
+
},
|
4690
|
+
p(ctx, [dirty]) {
|
4691
|
+
if (dirty & /*_options, name, handleChange*/ 7) {
|
4692
|
+
each_value = /*_options*/ ctx[1];
|
4693
|
+
let i;
|
4694
|
+
|
4695
|
+
for (i = 0; i < each_value.length; i += 1) {
|
4696
|
+
const child_ctx = get_each_context(ctx, each_value, i);
|
4697
|
+
|
4698
|
+
if (each_blocks[i]) {
|
4699
|
+
each_blocks[i].p(child_ctx, dirty);
|
4700
|
+
} else {
|
4701
|
+
each_blocks[i] = create_each_block(child_ctx);
|
4702
|
+
each_blocks[i].c();
|
4703
|
+
each_blocks[i].m(div, null);
|
4704
|
+
}
|
4705
|
+
}
|
4706
|
+
|
4707
|
+
for (; i < each_blocks.length; i += 1) {
|
4708
|
+
each_blocks[i].d(1);
|
4709
|
+
}
|
4710
|
+
|
4711
|
+
each_blocks.length = each_value.length;
|
4712
|
+
}
|
4713
|
+
},
|
4714
|
+
i: noop,
|
4715
|
+
o: noop,
|
4716
|
+
d(detaching) {
|
4717
|
+
if (detaching) detach(div);
|
4718
|
+
destroy_each(each_blocks, detaching);
|
4719
|
+
}
|
4720
|
+
};
|
4721
|
+
}
|
4722
|
+
|
4723
|
+
function instance$3($$self, $$props, $$invalidate) {
|
4724
|
+
let _options;
|
4725
|
+
let { name = '' } = $$props;
|
4726
|
+
let { options = '人参,レタス,キャベツ' } = $$props;
|
4727
|
+
const { formComponentData } = getContext(FORM_CONTEXT_KEY);
|
4728
|
+
|
4729
|
+
const handleChange = index => event => {
|
4730
|
+
if (event.target.checked) {
|
4731
|
+
updateValue(formComponentData, name, () => ({ value: _options[index], isValid: true }));
|
4732
|
+
}
|
4733
|
+
};
|
4734
|
+
|
4735
|
+
updateValue(formComponentData, name, () => ({ value: '', isValid: false }));
|
4736
|
+
|
4737
|
+
$$self.$$set = $$props => {
|
4738
|
+
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
4739
|
+
if ('options' in $$props) $$invalidate(3, options = $$props.options);
|
4740
|
+
};
|
4741
|
+
|
4742
|
+
$$self.$$.update = () => {
|
4743
|
+
if ($$self.$$.dirty & /*options*/ 8) {
|
4744
|
+
$$invalidate(1, _options = options.split(','));
|
4745
|
+
}
|
4746
|
+
};
|
4747
|
+
|
4748
|
+
return [name, _options, handleChange, options];
|
4749
|
+
}
|
4750
|
+
|
4751
|
+
class FormRadioButtons extends SvelteComponent {
|
4752
|
+
constructor(options) {
|
4753
|
+
super();
|
4754
|
+
init(this, options, instance$3, create_fragment$3, safe_not_equal, { name: 0, options: 3 }, add_css$3);
|
4190
4755
|
}
|
4191
4756
|
}
|
4192
4757
|
|
@@ -4510,4 +5075,4 @@ class ImageBlock extends SvelteComponent {
|
|
4510
5075
|
}
|
4511
5076
|
}
|
4512
5077
|
|
4513
|
-
export { ACTION_CHANGE_STATE_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_SHOW_EVENT, ALL_ACTION_ID, ALL_ACTION_SHORTEN_ID, Alignments, AnimationStyles, BackgroundSizes, Cursors, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, Directions, EmbedElement, Flex, FlexItem, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_ACTION_RID, KARTE_ACTION_ROOT, KARTE_ACTION_SHORTEN_ID, KARTE_MODAL_ROOT, LengthUnits, List, ListItem, MediaQueries, Modal, ModalPositions, NOOP, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextElement, actionId, actionSetting, addState, applyCss, applyGlobalCss, close, closeAction, closeApp, closed, collection$1 as collection, create, createApp, createFog, customAnimation, customHandlers, customVariables, destroy, destroyed, dispatchDestroyEvent, embed, ensureActionRoot, ensureModalRoot, execOnClickOperation, finalize, getActionSetting, getActionShadowRoot, getCustomHandlers, getCustomVariables, getInternalHandlers, getMarginStyle, getPositionStyle, getState$1 as getState, getStates, getStoreState, getSystem, getTransform, h, handleFocus, handleKeydown, handleState, hasSuffix, hashCode, haveFunction, hideOnScroll, hideOnTime, initialize, internalHandlers, isClosed, isDestroyed, isOpened, isPreview, isStopped, linkTo, loadGlobalScript, loadGlobalStyle, loadStyle, maximumZindex, moveTo, none, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, randStr, resetActionSetting, runScript, send_event, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setDestroyed, setInternalHandlers, setMaximumZindex, setOpened, setPreviousFocus, setState$1 as setState, setStopped, setSystem, show, showAction, showModal, showOnScroll, showOnTime, state, states, stopped, system, toBr, updateCustomHandlers, updateCustomVariables, updateInternalHandlers, widget };
|
5078
|
+
export { ACTION_CHANGE_STATE_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_SHOW_EVENT, ALL_ACTION_ID, ALL_ACTION_SHORTEN_ID, Alignments, AnimationStyles, BackgroundSizes, Cursors, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, Directions, EmbedElement, Flex, FlexItem, Form, FormButton, FormRadioButtons, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_ACTION_RID, KARTE_ACTION_ROOT, KARTE_ACTION_SHORTEN_ID, KARTE_MODAL_ROOT, LengthUnits, List, ListItem, MediaQueries, Modal, ModalPositions, NOOP, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextElement, actionId, actionSetting, addState, applyCss, applyGlobalCss, close, closeAction, closeApp, closed, collection$1 as collection, create, createApp, createFog, customAnimation, customHandlers, customVariables, destroy, destroyed, dispatchDestroyEvent, embed, ensureActionRoot, ensureModalRoot, execOnClickOperation, finalize, getActionSetting, getActionShadowRoot, getCustomHandlers, getCustomVariables, getInternalHandlers, getMarginStyle, getPositionStyle, getState$1 as getState, getStates, getStoreState, getSystem, getTransform, h, handleFocus, handleKeydown, handleState, hasSuffix, hashCode, haveFunction, hideOnScroll, hideOnTime, initialize, internalHandlers, isClosed, isDestroyed, isOpened, isPreview, isStopped, linkTo, loadGlobalScript, loadGlobalStyle, loadStyle, maximumZindex, moveTo, none, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, randStr, resetActionSetting, runScript, send_event, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setDestroyed, setInternalHandlers, setMaximumZindex, setOpened, setPreviousFocus, setState$1 as setState, setStopped, setSystem, show, showAction, showModal, showOnScroll, showOnTime, state, states, stopped, system, toBr, updateCustomHandlers, updateCustomVariables, updateInternalHandlers, widget };
|