@plaidev/karte-action-sdk 1.1.102 → 1.1.103-27909115.90a8e84c
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 +69 -29
- package/dist/hydrate/index.es.js +803 -151
- package/dist/index.es.d.ts +69 -29
- package/dist/index.es.js +740 -149
- package/dist/templates.js +4 -0
- package/package.json +11 -2
package/dist/hydrate/index.es.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { writable, get } from 'svelte/store';
|
2
2
|
import 'svelte/easing';
|
3
|
-
import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, claim_component, claim_space, mount_component, insert_hydration, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, claim_element, children, attr, noop, listen, is_function, append_hydration, add_render_callback, create_in_transition, svg_element, claim_svg_element, binding_callbacks, destroy_each, text, claim_text, set_data, src_url_equal, null_to_empty } from 'svelte/internal';
|
3
|
+
import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, claim_component, claim_space, mount_component, insert_hydration, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, claim_element, children, attr, noop, listen, is_function, append_hydration, add_render_callback, create_in_transition, svg_element, claim_svg_element, binding_callbacks, destroy_each, text, claim_text, set_data, 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
|
/**
|
@@ -214,13 +214,16 @@ function setActionSetting(setting) {
|
|
214
214
|
actionSetting.update(current => {
|
215
215
|
return { ...current, ...setting };
|
216
216
|
});
|
217
|
-
|
217
|
+
const current = getActionSetting();
|
218
|
+
setStopped(!current.autoStart);
|
219
|
+
return current;
|
218
220
|
}
|
219
221
|
/**
|
220
222
|
* {@link resetActionSetting} function to reset action setting
|
221
223
|
*/
|
222
224
|
function resetActionSetting() {
|
223
225
|
actionSetting.set({ autoStart: true });
|
226
|
+
setStopped();
|
224
227
|
}
|
225
228
|
/**
|
226
229
|
* Store to read KARTE system config
|
@@ -425,7 +428,9 @@ function isStopped() {
|
|
425
428
|
* {@link setStopped} function to set if action is stopped.
|
426
429
|
*/
|
427
430
|
function setStopped(on) {
|
428
|
-
|
431
|
+
{
|
432
|
+
stopped.set(false);
|
433
|
+
}
|
429
434
|
}
|
430
435
|
/**
|
431
436
|
* Store to handle custom variables
|
@@ -470,13 +475,16 @@ const handleState = (event) => {
|
|
470
475
|
}
|
471
476
|
};
|
472
477
|
const initialize = (setting) => {
|
473
|
-
|
478
|
+
const newSetting = setActionSetting(setting);
|
479
|
+
if (newSetting.initialState) {
|
474
480
|
const force = true;
|
475
481
|
setState$1(setting?.initialState, force);
|
476
482
|
}
|
483
|
+
if (newSetting.autoStart) {
|
484
|
+
setStopped(!newSetting.autoStart);
|
485
|
+
}
|
477
486
|
setOpened(true);
|
478
487
|
setClosed(false); // deprecated
|
479
|
-
setActionSetting(setting);
|
480
488
|
return () => finalize();
|
481
489
|
};
|
482
490
|
const finalize = () => {
|
@@ -612,7 +620,7 @@ function hashCode(s) {
|
|
612
620
|
* @param {boolean} on
|
613
621
|
*/
|
614
622
|
const setAutoStart = (on = true) => {
|
615
|
-
setStopped(
|
623
|
+
setStopped();
|
616
624
|
};
|
617
625
|
|
618
626
|
const PropTypes = [
|
@@ -673,6 +681,12 @@ const DefaultModalPlacement = {
|
|
673
681
|
backgroundOverlay: false,
|
674
682
|
backgroundClick: { operation: 'closeApp', args: ['overlay'] },
|
675
683
|
};
|
684
|
+
const Elasticities = ['none', 'vertical', 'horizontal'];
|
685
|
+
const ElasticityStyle = {
|
686
|
+
none: '',
|
687
|
+
vertical: 'width: 100%',
|
688
|
+
horizontal: 'height: 100%',
|
689
|
+
};
|
676
690
|
const OnClickOperationOptions = [
|
677
691
|
{
|
678
692
|
operation: 'none',
|
@@ -863,6 +877,7 @@ function create(App, options = {
|
|
863
877
|
shortenId: data.shorten_id || null,
|
864
878
|
campaignId: data.campaign_id || null,
|
865
879
|
});
|
880
|
+
setInternalHandlers({});
|
866
881
|
if (options.onCreate) {
|
867
882
|
onCreate(options.onCreate);
|
868
883
|
}
|
@@ -1587,35 +1602,35 @@ function collection(table) {
|
|
1587
1602
|
|
1588
1603
|
var widget = /*#__PURE__*/Object.freeze({
|
1589
1604
|
__proto__: null,
|
1590
|
-
|
1591
|
-
|
1592
|
-
setVal: setVal,
|
1605
|
+
collection: collection,
|
1606
|
+
getState: getState,
|
1593
1607
|
getVal: getVal,
|
1594
|
-
|
1608
|
+
hide: closeAction,
|
1595
1609
|
method: method,
|
1596
1610
|
on: on,
|
1611
|
+
onChangeVal: onChangeVal,
|
1597
1612
|
setState: setState,
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1613
|
+
setVal: setVal,
|
1614
|
+
show: showAction,
|
1615
|
+
storage: storage
|
1601
1616
|
});
|
1602
1617
|
|
1603
1618
|
/* src/components/Normalize.svelte generated by Svelte v3.53.1 */
|
1604
1619
|
|
1605
|
-
function add_css$
|
1620
|
+
function add_css$i(target) {
|
1606
1621
|
append_styles(target, "svelte-tr4qnr", "@import 'https://esm.sh/normalize.css';");
|
1607
1622
|
}
|
1608
1623
|
|
1609
1624
|
class Normalize extends SvelteComponent {
|
1610
1625
|
constructor(options) {
|
1611
1626
|
super();
|
1612
|
-
init(this, options, null, null, safe_not_equal, {}, add_css$
|
1627
|
+
init(this, options, null, null, safe_not_equal, {}, add_css$i);
|
1613
1628
|
}
|
1614
1629
|
}
|
1615
1630
|
|
1616
1631
|
/* src/components/State.svelte generated by Svelte v3.53.1 */
|
1617
1632
|
|
1618
|
-
function create_fragment$
|
1633
|
+
function create_fragment$m(ctx) {
|
1619
1634
|
let normalize;
|
1620
1635
|
let t;
|
1621
1636
|
let current;
|
@@ -1679,7 +1694,7 @@ function create_fragment$i(ctx) {
|
|
1679
1694
|
};
|
1680
1695
|
}
|
1681
1696
|
|
1682
|
-
function instance$
|
1697
|
+
function instance$m($$self, $$props, $$invalidate) {
|
1683
1698
|
let { $$slots: slots = {}, $$scope } = $$props;
|
1684
1699
|
|
1685
1700
|
$$self.$$set = $$props => {
|
@@ -1692,13 +1707,13 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
1692
1707
|
class State extends SvelteComponent {
|
1693
1708
|
constructor(options) {
|
1694
1709
|
super();
|
1695
|
-
init(this, options, instance$
|
1710
|
+
init(this, options, instance$m, create_fragment$m, safe_not_equal, {});
|
1696
1711
|
}
|
1697
1712
|
}
|
1698
1713
|
|
1699
1714
|
/* src/components/StateItem.svelte generated by Svelte v3.53.1 */
|
1700
1715
|
|
1701
|
-
function add_css$
|
1716
|
+
function add_css$h(target) {
|
1702
1717
|
append_styles(target, "svelte-2qb6dm", ".state-item.svelte-2qb6dm{position:absolute;display:none}");
|
1703
1718
|
}
|
1704
1719
|
|
@@ -1775,7 +1790,7 @@ function create_if_block$3(ctx) {
|
|
1775
1790
|
};
|
1776
1791
|
}
|
1777
1792
|
|
1778
|
-
function create_fragment$
|
1793
|
+
function create_fragment$l(ctx) {
|
1779
1794
|
let if_block_anchor;
|
1780
1795
|
let current;
|
1781
1796
|
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$3(ctx);
|
@@ -1834,7 +1849,7 @@ function create_fragment$h(ctx) {
|
|
1834
1849
|
};
|
1835
1850
|
}
|
1836
1851
|
|
1837
|
-
function instance$
|
1852
|
+
function instance$l($$self, $$props, $$invalidate) {
|
1838
1853
|
let $state;
|
1839
1854
|
component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
|
1840
1855
|
let { $$slots: slots = {}, $$scope } = $$props;
|
@@ -1859,13 +1874,13 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
1859
1874
|
class StateItem extends SvelteComponent {
|
1860
1875
|
constructor(options) {
|
1861
1876
|
super();
|
1862
|
-
init(this, options, instance$
|
1877
|
+
init(this, options, instance$l, create_fragment$l, safe_not_equal, { path: 0 }, add_css$h);
|
1863
1878
|
}
|
1864
1879
|
}
|
1865
1880
|
|
1866
1881
|
/* src/components/BackgroundOverray.svelte generated by Svelte v3.53.1 */
|
1867
1882
|
|
1868
|
-
function add_css$
|
1883
|
+
function add_css$g(target) {
|
1869
1884
|
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}");
|
1870
1885
|
}
|
1871
1886
|
|
@@ -1905,7 +1920,7 @@ function create_if_block$2(ctx) {
|
|
1905
1920
|
};
|
1906
1921
|
}
|
1907
1922
|
|
1908
|
-
function create_fragment$
|
1923
|
+
function create_fragment$k(ctx) {
|
1909
1924
|
let if_block_anchor;
|
1910
1925
|
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$2(ctx);
|
1911
1926
|
|
@@ -1945,7 +1960,7 @@ function create_fragment$g(ctx) {
|
|
1945
1960
|
};
|
1946
1961
|
}
|
1947
1962
|
|
1948
|
-
function instance$
|
1963
|
+
function instance$k($$self, $$props, $$invalidate) {
|
1949
1964
|
let { backgroundOverray = false } = $$props;
|
1950
1965
|
const dispatch = createEventDispatcher();
|
1951
1966
|
const click_handler = () => dispatch('click');
|
@@ -1960,17 +1975,17 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
1960
1975
|
class BackgroundOverray extends SvelteComponent {
|
1961
1976
|
constructor(options) {
|
1962
1977
|
super();
|
1963
|
-
init(this, options, instance$
|
1978
|
+
init(this, options, instance$k, create_fragment$k, safe_not_equal, { backgroundOverray: 0 }, add_css$g);
|
1964
1979
|
}
|
1965
1980
|
}
|
1966
1981
|
|
1967
1982
|
/* src/components/Modal.svelte generated by Svelte v3.53.1 */
|
1968
1983
|
|
1969
|
-
function add_css$
|
1970
|
-
append_styles(target, "svelte-
|
1984
|
+
function add_css$f(target) {
|
1985
|
+
append_styles(target, "svelte-12dkw0q", ".modal.svelte-12dkw0q{position:fixed;box-sizing:border-box;z-index:2147483647}.close.svelte-12dkw0q{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-12dkw0q:hover{transform:rotate(90deg)}.modal-content.svelte-12dkw0q{display:flex;justify-content:center;align-items:center}");
|
1971
1986
|
}
|
1972
1987
|
|
1973
|
-
// (
|
1988
|
+
// (136:0) {#if visible}
|
1974
1989
|
function create_if_block$1(ctx) {
|
1975
1990
|
let div1;
|
1976
1991
|
let t;
|
@@ -1980,9 +1995,9 @@ function create_if_block$1(ctx) {
|
|
1980
1995
|
let current;
|
1981
1996
|
let mounted;
|
1982
1997
|
let dispose;
|
1983
|
-
let if_block = /*closable*/ ctx[
|
1984
|
-
const default_slot_template = /*#slots*/ ctx[
|
1985
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
1998
|
+
let if_block = /*closable*/ ctx[14] && create_if_block_1(ctx);
|
1999
|
+
const default_slot_template = /*#slots*/ ctx[29].default;
|
2000
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[28], null);
|
1986
2001
|
|
1987
2002
|
return {
|
1988
2003
|
c() {
|
@@ -2004,7 +2019,7 @@ function create_if_block$1(ctx) {
|
|
2004
2019
|
var div1_nodes = children(div1);
|
2005
2020
|
if (if_block) if_block.l(div1_nodes);
|
2006
2021
|
t = claim_space(div1_nodes);
|
2007
|
-
div0 = claim_element(div1_nodes, "DIV", { style: true });
|
2022
|
+
div0 = claim_element(div1_nodes, "DIV", { class: true, style: true });
|
2008
2023
|
var div0_nodes = children(div0);
|
2009
2024
|
if (default_slot) default_slot.l(div0_nodes);
|
2010
2025
|
div0_nodes.forEach(detach);
|
@@ -2012,11 +2027,12 @@ function create_if_block$1(ctx) {
|
|
2012
2027
|
this.h();
|
2013
2028
|
},
|
2014
2029
|
h() {
|
2030
|
+
attr(div0, "class", "modal-content svelte-12dkw0q");
|
2015
2031
|
attr(div0, "style", /*_style*/ ctx[1]);
|
2016
|
-
attr(div1, "class", "modal svelte-
|
2032
|
+
attr(div1, "class", "modal svelte-12dkw0q");
|
2017
2033
|
attr(div1, "role", "dialog");
|
2018
2034
|
attr(div1, "aria-modal", "true");
|
2019
|
-
attr(div1, "style", div1_style_value = "" + /*pos*/ ctx[10] + " " + /*marginStyle*/ ctx[8] + "");
|
2035
|
+
attr(div1, "style", div1_style_value = "" + /*pos*/ ctx[10] + " " + /*marginStyle*/ ctx[8] + " " + ElasticityStyle[/*overwriteElasticity*/ ctx[11]] + "");
|
2020
2036
|
},
|
2021
2037
|
m(target, anchor) {
|
2022
2038
|
insert_hydration(target, div1, anchor);
|
@@ -2028,12 +2044,12 @@ function create_if_block$1(ctx) {
|
|
2028
2044
|
default_slot.m(div0, null);
|
2029
2045
|
}
|
2030
2046
|
|
2031
|
-
/*div1_binding*/ ctx[
|
2047
|
+
/*div1_binding*/ ctx[30](div1);
|
2032
2048
|
current = true;
|
2033
2049
|
|
2034
2050
|
if (!mounted) {
|
2035
2051
|
dispose = listen(div1, "click", function () {
|
2036
|
-
if (is_function(/*click*/ ctx[
|
2052
|
+
if (is_function(/*click*/ ctx[15])) /*click*/ ctx[15].apply(this, arguments);
|
2037
2053
|
});
|
2038
2054
|
|
2039
2055
|
mounted = true;
|
@@ -2042,7 +2058,7 @@ function create_if_block$1(ctx) {
|
|
2042
2058
|
p(new_ctx, dirty) {
|
2043
2059
|
ctx = new_ctx;
|
2044
2060
|
|
2045
|
-
if (/*closable*/ ctx[
|
2061
|
+
if (/*closable*/ ctx[14]) {
|
2046
2062
|
if (if_block) {
|
2047
2063
|
if_block.p(ctx, dirty);
|
2048
2064
|
} else {
|
@@ -2056,15 +2072,15 @@ function create_if_block$1(ctx) {
|
|
2056
2072
|
}
|
2057
2073
|
|
2058
2074
|
if (default_slot) {
|
2059
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
2075
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 268435456)) {
|
2060
2076
|
update_slot_base(
|
2061
2077
|
default_slot,
|
2062
2078
|
default_slot_template,
|
2063
2079
|
ctx,
|
2064
|
-
/*$$scope*/ ctx[
|
2080
|
+
/*$$scope*/ ctx[28],
|
2065
2081
|
!current
|
2066
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
2067
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
2082
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[28])
|
2083
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[28], dirty, null),
|
2068
2084
|
null
|
2069
2085
|
);
|
2070
2086
|
}
|
@@ -2074,7 +2090,7 @@ function create_if_block$1(ctx) {
|
|
2074
2090
|
attr(div0, "style", /*_style*/ ctx[1]);
|
2075
2091
|
}
|
2076
2092
|
|
2077
|
-
if (!current || dirty & /*pos, marginStyle*/
|
2093
|
+
if (!current || dirty & /*pos, marginStyle, overwriteElasticity*/ 3328 && div1_style_value !== (div1_style_value = "" + /*pos*/ ctx[10] + " " + /*marginStyle*/ ctx[8] + " " + ElasticityStyle[/*overwriteElasticity*/ ctx[11]] + "")) {
|
2078
2094
|
attr(div1, "style", div1_style_value);
|
2079
2095
|
}
|
2080
2096
|
},
|
@@ -2103,14 +2119,14 @@ function create_if_block$1(ctx) {
|
|
2103
2119
|
if (detaching) detach(div1);
|
2104
2120
|
if (if_block) if_block.d();
|
2105
2121
|
if (default_slot) default_slot.d(detaching);
|
2106
|
-
/*div1_binding*/ ctx[
|
2122
|
+
/*div1_binding*/ ctx[30](null);
|
2107
2123
|
mounted = false;
|
2108
2124
|
dispose();
|
2109
2125
|
}
|
2110
2126
|
};
|
2111
2127
|
}
|
2112
2128
|
|
2113
|
-
// (
|
2129
|
+
// (153:4) {#if closable}
|
2114
2130
|
function create_if_block_1(ctx) {
|
2115
2131
|
let button;
|
2116
2132
|
let svg;
|
@@ -2160,8 +2176,8 @@ function create_if_block_1(ctx) {
|
|
2160
2176
|
attr(svg, "viewBox", "0 0 9 10");
|
2161
2177
|
attr(svg, "fill", "none");
|
2162
2178
|
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
2163
|
-
attr(button, "class", "close svelte-
|
2164
|
-
attr(button, "style", button_style_value = "z-index:" + (/*$maximumZindex*/ ctx[
|
2179
|
+
attr(button, "class", "close svelte-12dkw0q");
|
2180
|
+
attr(button, "style", button_style_value = "z-index:" + (/*$maximumZindex*/ ctx[16] + 1) + "; " + /*_closeStyle*/ ctx[3] + "");
|
2165
2181
|
},
|
2166
2182
|
m(target, anchor) {
|
2167
2183
|
insert_hydration(target, button, anchor);
|
@@ -2183,7 +2199,7 @@ function create_if_block_1(ctx) {
|
|
2183
2199
|
attr(path, "fill", /*closeButtonColor*/ ctx[2]);
|
2184
2200
|
}
|
2185
2201
|
|
2186
|
-
if (dirty & /*$maximumZindex, _closeStyle*/
|
2202
|
+
if (dirty & /*$maximumZindex, _closeStyle*/ 65544 && button_style_value !== (button_style_value = "z-index:" + (/*$maximumZindex*/ ctx[16] + 1) + "; " + /*_closeStyle*/ ctx[3] + "")) {
|
2187
2203
|
attr(button, "style", button_style_value);
|
2188
2204
|
}
|
2189
2205
|
},
|
@@ -2195,7 +2211,7 @@ function create_if_block_1(ctx) {
|
|
2195
2211
|
};
|
2196
2212
|
}
|
2197
2213
|
|
2198
|
-
function create_fragment$
|
2214
|
+
function create_fragment$j(ctx) {
|
2199
2215
|
let backgroundoverray;
|
2200
2216
|
let t;
|
2201
2217
|
let if_block_anchor;
|
@@ -2205,12 +2221,12 @@ function create_fragment$f(ctx) {
|
|
2205
2221
|
|
2206
2222
|
backgroundoverray = new BackgroundOverray({
|
2207
2223
|
props: {
|
2208
|
-
backgroundOverray: /*backgroundOverray*/ ctx[
|
2224
|
+
backgroundOverray: /*backgroundOverray*/ ctx[13]
|
2209
2225
|
}
|
2210
2226
|
});
|
2211
2227
|
|
2212
2228
|
backgroundoverray.$on("click", function () {
|
2213
|
-
if (is_function(/*backgroundClick*/ ctx[
|
2229
|
+
if (is_function(/*backgroundClick*/ ctx[12])) /*backgroundClick*/ ctx[12].apply(this, arguments);
|
2214
2230
|
});
|
2215
2231
|
|
2216
2232
|
let if_block = /*visible*/ ctx[6] && create_if_block$1(ctx);
|
@@ -2246,7 +2262,7 @@ function create_fragment$f(ctx) {
|
|
2246
2262
|
p(new_ctx, [dirty]) {
|
2247
2263
|
ctx = new_ctx;
|
2248
2264
|
const backgroundoverray_changes = {};
|
2249
|
-
if (dirty & /*backgroundOverray*/
|
2265
|
+
if (dirty & /*backgroundOverray*/ 8192) backgroundoverray_changes.backgroundOverray = /*backgroundOverray*/ ctx[13];
|
2250
2266
|
backgroundoverray.$set(backgroundoverray_changes);
|
2251
2267
|
|
2252
2268
|
if (/*visible*/ ctx[6]) {
|
@@ -2294,7 +2310,7 @@ function create_fragment$f(ctx) {
|
|
2294
2310
|
};
|
2295
2311
|
}
|
2296
2312
|
|
2297
|
-
function instance$
|
2313
|
+
function instance$j($$self, $$props, $$invalidate) {
|
2298
2314
|
let click;
|
2299
2315
|
let close;
|
2300
2316
|
let closable;
|
@@ -2303,19 +2319,21 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
2303
2319
|
let backgroundClick;
|
2304
2320
|
let overwritePosition;
|
2305
2321
|
let overwriteMargin;
|
2322
|
+
let overwriteElasticity;
|
2306
2323
|
let pos;
|
2307
2324
|
let transform;
|
2308
2325
|
let marginStyle;
|
2309
2326
|
let handle_keydown;
|
2310
2327
|
let visible;
|
2311
2328
|
let $maximumZindex;
|
2312
|
-
component_subscribe($$self, maximumZindex, $$value => $$invalidate(
|
2329
|
+
component_subscribe($$self, maximumZindex, $$value => $$invalidate(16, $maximumZindex = $$value));
|
2313
2330
|
let { $$slots: slots = {}, $$scope } = $$props;
|
2314
2331
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
2315
2332
|
let { clickEventName = '' } = $$props;
|
2316
2333
|
let { clickEventValue = null } = $$props;
|
2317
2334
|
let { placement = DefaultModalPlacement } = $$props;
|
2318
2335
|
let { animation = 'none' } = $$props;
|
2336
|
+
let { elasticity = 'none' } = $$props;
|
2319
2337
|
let { _style = '' } = $$props;
|
2320
2338
|
let { onClose = { operation: 'closeApp', args: [] } } = $$props;
|
2321
2339
|
let { closeButtonColor = '#000000' } = $$props;
|
@@ -2338,23 +2356,24 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
2338
2356
|
}
|
2339
2357
|
|
2340
2358
|
$$self.$$set = $$props => {
|
2341
|
-
if ('onClick' in $$props) $$invalidate(
|
2342
|
-
if ('clickEventName' in $$props) $$invalidate(
|
2343
|
-
if ('clickEventValue' in $$props) $$invalidate(
|
2344
|
-
if ('placement' in $$props) $$invalidate(
|
2359
|
+
if ('onClick' in $$props) $$invalidate(17, onClick = $$props.onClick);
|
2360
|
+
if ('clickEventName' in $$props) $$invalidate(18, clickEventName = $$props.clickEventName);
|
2361
|
+
if ('clickEventValue' in $$props) $$invalidate(19, clickEventValue = $$props.clickEventValue);
|
2362
|
+
if ('placement' in $$props) $$invalidate(20, placement = $$props.placement);
|
2345
2363
|
if ('animation' in $$props) $$invalidate(0, animation = $$props.animation);
|
2364
|
+
if ('elasticity' in $$props) $$invalidate(21, elasticity = $$props.elasticity);
|
2346
2365
|
if ('_style' in $$props) $$invalidate(1, _style = $$props._style);
|
2347
|
-
if ('onClose' in $$props) $$invalidate(
|
2366
|
+
if ('onClose' in $$props) $$invalidate(22, onClose = $$props.onClose);
|
2348
2367
|
if ('closeButtonColor' in $$props) $$invalidate(2, closeButtonColor = $$props.closeButtonColor);
|
2349
|
-
if ('closeEventName' in $$props) $$invalidate(
|
2350
|
-
if ('closeEventValue' in $$props) $$invalidate(
|
2368
|
+
if ('closeEventName' in $$props) $$invalidate(23, closeEventName = $$props.closeEventName);
|
2369
|
+
if ('closeEventValue' in $$props) $$invalidate(24, closeEventValue = $$props.closeEventValue);
|
2351
2370
|
if ('_closeStyle' in $$props) $$invalidate(3, _closeStyle = $$props._closeStyle);
|
2352
|
-
if ('$$scope' in $$props) $$invalidate(
|
2371
|
+
if ('$$scope' in $$props) $$invalidate(28, $$scope = $$props.$$scope);
|
2353
2372
|
};
|
2354
2373
|
|
2355
2374
|
$$self.$$.update = () => {
|
2356
|
-
if ($$self.$$.dirty & /*clickEventName, clickEventValue, onClick*/
|
2357
|
-
$$invalidate(
|
2375
|
+
if ($$self.$$.dirty & /*clickEventName, clickEventValue, onClick*/ 917504) {
|
2376
|
+
$$invalidate(15, click = () => {
|
2358
2377
|
if (clickEventName) {
|
2359
2378
|
send_event(clickEventName, clickEventValue);
|
2360
2379
|
}
|
@@ -2363,7 +2382,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
2363
2382
|
});
|
2364
2383
|
}
|
2365
2384
|
|
2366
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, onClose*/
|
2385
|
+
if ($$self.$$.dirty & /*closeEventName, closeEventValue, onClose*/ 29360128) {
|
2367
2386
|
$$invalidate(5, close = () => {
|
2368
2387
|
if (closeEventName) {
|
2369
2388
|
send_event(closeEventName, closeEventValue);
|
@@ -2373,24 +2392,24 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
2373
2392
|
});
|
2374
2393
|
}
|
2375
2394
|
|
2376
|
-
if ($$self.$$.dirty & /*onClose*/
|
2377
|
-
$$invalidate(
|
2395
|
+
if ($$self.$$.dirty & /*onClose*/ 4194304) {
|
2396
|
+
$$invalidate(14, closable = haveFunction(onClose));
|
2378
2397
|
}
|
2379
2398
|
|
2380
|
-
if ($$self.$$.dirty & /*placement*/
|
2381
|
-
$$invalidate(
|
2399
|
+
if ($$self.$$.dirty & /*placement*/ 1048576) {
|
2400
|
+
$$invalidate(13, backgroundOverray = placement && placement.backgroundOverlay != null
|
2382
2401
|
? placement.backgroundOverlay
|
2383
2402
|
: DefaultModalPlacement.backgroundOverlay);
|
2384
2403
|
}
|
2385
2404
|
|
2386
|
-
if ($$self.$$.dirty & /*placement*/
|
2387
|
-
$$invalidate(
|
2405
|
+
if ($$self.$$.dirty & /*placement*/ 1048576) {
|
2406
|
+
$$invalidate(27, backgroundClickFunction = placement && placement.backgroundClick != null
|
2388
2407
|
? placement.backgroundClick
|
2389
2408
|
: DefaultModalPlacement.backgroundClick);
|
2390
2409
|
}
|
2391
2410
|
|
2392
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/
|
2393
|
-
$$invalidate(
|
2411
|
+
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/ 159383552) {
|
2412
|
+
$$invalidate(12, backgroundClick = () => {
|
2394
2413
|
if (closeEventName) {
|
2395
2414
|
send_event(closeEventName, closeEventValue);
|
2396
2415
|
}
|
@@ -2399,13 +2418,13 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
2399
2418
|
});
|
2400
2419
|
}
|
2401
2420
|
|
2402
|
-
if ($$self.$$.dirty & /*placement*/
|
2403
|
-
$$invalidate(
|
2421
|
+
if ($$self.$$.dirty & /*placement*/ 1048576) {
|
2422
|
+
$$invalidate(26, overwritePosition = 'center'
|
2404
2423
|
);
|
2405
2424
|
}
|
2406
2425
|
|
2407
|
-
if ($$self.$$.dirty & /*placement*/
|
2408
|
-
$$invalidate(
|
2426
|
+
if ($$self.$$.dirty & /*placement*/ 1048576) {
|
2427
|
+
$$invalidate(25, overwriteMargin = {
|
2409
2428
|
left: '0px',
|
2410
2429
|
right: '0px',
|
2411
2430
|
top: '0px',
|
@@ -2414,15 +2433,19 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
2414
2433
|
);
|
2415
2434
|
}
|
2416
2435
|
|
2417
|
-
if ($$self.$$.dirty & /*
|
2436
|
+
if ($$self.$$.dirty & /*elasticity*/ 2097152) {
|
2437
|
+
$$invalidate(11, overwriteElasticity = 'none' );
|
2438
|
+
}
|
2439
|
+
|
2440
|
+
if ($$self.$$.dirty & /*overwritePosition*/ 67108864) {
|
2418
2441
|
$$invalidate(10, pos = getPositionStyle(overwritePosition));
|
2419
2442
|
}
|
2420
2443
|
|
2421
|
-
if ($$self.$$.dirty & /*overwritePosition*/
|
2444
|
+
if ($$self.$$.dirty & /*overwritePosition*/ 67108864) {
|
2422
2445
|
$$invalidate(9, transform = getTransform(overwritePosition));
|
2423
2446
|
}
|
2424
2447
|
|
2425
|
-
if ($$self.$$.dirty & /*overwriteMargin*/
|
2448
|
+
if ($$self.$$.dirty & /*overwriteMargin*/ 33554432) {
|
2426
2449
|
$$invalidate(8, marginStyle = getMarginStyle(overwriteMargin));
|
2427
2450
|
}
|
2428
2451
|
|
@@ -2448,6 +2471,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
2448
2471
|
marginStyle,
|
2449
2472
|
transform,
|
2450
2473
|
pos,
|
2474
|
+
overwriteElasticity,
|
2451
2475
|
backgroundClick,
|
2452
2476
|
backgroundOverray,
|
2453
2477
|
closable,
|
@@ -2457,6 +2481,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
2457
2481
|
clickEventName,
|
2458
2482
|
clickEventValue,
|
2459
2483
|
placement,
|
2484
|
+
elasticity,
|
2460
2485
|
onClose,
|
2461
2486
|
closeEventName,
|
2462
2487
|
closeEventValue,
|
@@ -2476,30 +2501,31 @@ class Modal extends SvelteComponent {
|
|
2476
2501
|
init(
|
2477
2502
|
this,
|
2478
2503
|
options,
|
2479
|
-
instance$
|
2480
|
-
create_fragment$
|
2504
|
+
instance$j,
|
2505
|
+
create_fragment$j,
|
2481
2506
|
safe_not_equal,
|
2482
2507
|
{
|
2483
|
-
onClick:
|
2484
|
-
clickEventName:
|
2485
|
-
clickEventValue:
|
2486
|
-
placement:
|
2508
|
+
onClick: 17,
|
2509
|
+
clickEventName: 18,
|
2510
|
+
clickEventValue: 19,
|
2511
|
+
placement: 20,
|
2487
2512
|
animation: 0,
|
2513
|
+
elasticity: 21,
|
2488
2514
|
_style: 1,
|
2489
|
-
onClose:
|
2515
|
+
onClose: 22,
|
2490
2516
|
closeButtonColor: 2,
|
2491
|
-
closeEventName:
|
2492
|
-
closeEventValue:
|
2517
|
+
closeEventName: 23,
|
2518
|
+
closeEventValue: 24,
|
2493
2519
|
_closeStyle: 3
|
2494
2520
|
},
|
2495
|
-
add_css$
|
2521
|
+
add_css$f
|
2496
2522
|
);
|
2497
2523
|
}
|
2498
2524
|
}
|
2499
2525
|
|
2500
2526
|
/* src/components/Grid.svelte generated by Svelte v3.53.1 */
|
2501
2527
|
|
2502
|
-
function create_fragment$
|
2528
|
+
function create_fragment$i(ctx) {
|
2503
2529
|
let div;
|
2504
2530
|
let current;
|
2505
2531
|
const default_slot_template = /*#slots*/ ctx[8].default;
|
@@ -2567,7 +2593,7 @@ function create_fragment$e(ctx) {
|
|
2567
2593
|
};
|
2568
2594
|
}
|
2569
2595
|
|
2570
|
-
function instance$
|
2596
|
+
function instance$i($$self, $$props, $$invalidate) {
|
2571
2597
|
let _style;
|
2572
2598
|
let { $$slots: slots = {}, $$scope } = $$props;
|
2573
2599
|
let { width = '512px' } = $$props;
|
@@ -2612,7 +2638,7 @@ class Grid extends SvelteComponent {
|
|
2612
2638
|
constructor(options) {
|
2613
2639
|
super();
|
2614
2640
|
|
2615
|
-
init(this, options, instance$
|
2641
|
+
init(this, options, instance$i, create_fragment$i, safe_not_equal, {
|
2616
2642
|
width: 1,
|
2617
2643
|
height: 2,
|
2618
2644
|
rows: 3,
|
@@ -2803,7 +2829,7 @@ function create_default_slot(ctx) {
|
|
2803
2829
|
};
|
2804
2830
|
}
|
2805
2831
|
|
2806
|
-
function create_fragment$
|
2832
|
+
function create_fragment$h(ctx) {
|
2807
2833
|
let stateitem;
|
2808
2834
|
let current;
|
2809
2835
|
|
@@ -2851,7 +2877,7 @@ function create_fragment$d(ctx) {
|
|
2851
2877
|
};
|
2852
2878
|
}
|
2853
2879
|
|
2854
|
-
function instance$
|
2880
|
+
function instance$h($$self, $$props, $$invalidate) {
|
2855
2881
|
let { $$slots: slots = {}, $$scope } = $$props;
|
2856
2882
|
let { path } = $$props;
|
2857
2883
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
@@ -2922,7 +2948,7 @@ class GridModalState extends SvelteComponent {
|
|
2922
2948
|
constructor(options) {
|
2923
2949
|
super();
|
2924
2950
|
|
2925
|
-
init(this, options, instance$
|
2951
|
+
init(this, options, instance$h, create_fragment$h, safe_not_equal, {
|
2926
2952
|
path: 0,
|
2927
2953
|
onClick: 1,
|
2928
2954
|
clickEventName: 2,
|
@@ -2947,11 +2973,11 @@ class GridModalState extends SvelteComponent {
|
|
2947
2973
|
|
2948
2974
|
/* src/components/GridItem.svelte generated by Svelte v3.53.1 */
|
2949
2975
|
|
2950
|
-
function add_css$
|
2976
|
+
function add_css$e(target) {
|
2951
2977
|
append_styles(target, "svelte-n7kdl3", ".grid-item.svelte-n7kdl3{word-break:break-all;position:relative}.grid-item-inner.svelte-n7kdl3{position:absolute;inset:0}");
|
2952
2978
|
}
|
2953
2979
|
|
2954
|
-
function create_fragment$
|
2980
|
+
function create_fragment$g(ctx) {
|
2955
2981
|
let div1;
|
2956
2982
|
let div0;
|
2957
2983
|
let current;
|
@@ -3032,7 +3058,7 @@ function create_fragment$c(ctx) {
|
|
3032
3058
|
};
|
3033
3059
|
}
|
3034
3060
|
|
3035
|
-
function instance$
|
3061
|
+
function instance$g($$self, $$props, $$invalidate) {
|
3036
3062
|
let _style;
|
3037
3063
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3038
3064
|
let { x1 } = $$props;
|
@@ -3085,8 +3111,8 @@ class GridItem extends SvelteComponent {
|
|
3085
3111
|
init(
|
3086
3112
|
this,
|
3087
3113
|
options,
|
3088
|
-
instance$
|
3089
|
-
create_fragment$
|
3114
|
+
instance$g,
|
3115
|
+
create_fragment$g,
|
3090
3116
|
safe_not_equal,
|
3091
3117
|
{
|
3092
3118
|
x1: 2,
|
@@ -3096,18 +3122,18 @@ class GridItem extends SvelteComponent {
|
|
3096
3122
|
z: 6,
|
3097
3123
|
background: 7
|
3098
3124
|
},
|
3099
|
-
add_css$
|
3125
|
+
add_css$e
|
3100
3126
|
);
|
3101
3127
|
}
|
3102
3128
|
}
|
3103
3129
|
|
3104
3130
|
/* src/components/Flex.svelte generated by Svelte v3.53.1 */
|
3105
3131
|
|
3106
|
-
function add_css$
|
3132
|
+
function add_css$d(target) {
|
3107
3133
|
append_styles(target, "svelte-1e71ejc", ".flex.svelte-1e71ejc{display:flex}");
|
3108
3134
|
}
|
3109
3135
|
|
3110
|
-
function create_fragment$
|
3136
|
+
function create_fragment$f(ctx) {
|
3111
3137
|
let div;
|
3112
3138
|
let div_style_value;
|
3113
3139
|
let current;
|
@@ -3182,7 +3208,7 @@ function getFlexContext() {
|
|
3182
3208
|
return getContext(FlexContextKey);
|
3183
3209
|
}
|
3184
3210
|
|
3185
|
-
function instance$
|
3211
|
+
function instance$f($$self, $$props, $$invalidate) {
|
3186
3212
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3187
3213
|
let { direction = 'row' } = $$props;
|
3188
3214
|
let { width = '100%' } = $$props;
|
@@ -3208,8 +3234,8 @@ class Flex extends SvelteComponent {
|
|
3208
3234
|
init(
|
3209
3235
|
this,
|
3210
3236
|
options,
|
3211
|
-
instance$
|
3212
|
-
create_fragment$
|
3237
|
+
instance$f,
|
3238
|
+
create_fragment$f,
|
3213
3239
|
safe_not_equal,
|
3214
3240
|
{
|
3215
3241
|
direction: 0,
|
@@ -3217,18 +3243,18 @@ class Flex extends SvelteComponent {
|
|
3217
3243
|
height: 2,
|
3218
3244
|
_style: 3
|
3219
3245
|
},
|
3220
|
-
add_css$
|
3246
|
+
add_css$d
|
3221
3247
|
);
|
3222
3248
|
}
|
3223
3249
|
}
|
3224
3250
|
|
3225
3251
|
/* src/components/FlexItem.svelte generated by Svelte v3.53.1 */
|
3226
3252
|
|
3227
|
-
function add_css$
|
3253
|
+
function add_css$c(target) {
|
3228
3254
|
append_styles(target, "svelte-1p0bk1x", ".flex-item.svelte-1p0bk1x{max-width:100%;max-height:100%;position:relative;isolation:isolate}");
|
3229
3255
|
}
|
3230
3256
|
|
3231
|
-
function create_fragment$
|
3257
|
+
function create_fragment$e(ctx) {
|
3232
3258
|
let div;
|
3233
3259
|
let current;
|
3234
3260
|
const default_slot_template = /*#slots*/ ctx[4].default;
|
@@ -3296,7 +3322,7 @@ function create_fragment$a(ctx) {
|
|
3296
3322
|
};
|
3297
3323
|
}
|
3298
3324
|
|
3299
|
-
function instance$
|
3325
|
+
function instance$e($$self, $$props, $$invalidate) {
|
3300
3326
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3301
3327
|
let { length } = $$props;
|
3302
3328
|
let { _style = '' } = $$props;
|
@@ -3339,13 +3365,13 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
3339
3365
|
class FlexItem extends SvelteComponent {
|
3340
3366
|
constructor(options) {
|
3341
3367
|
super();
|
3342
|
-
init(this, options, instance$
|
3368
|
+
init(this, options, instance$e, create_fragment$e, safe_not_equal, { length: 1, _style: 2 }, add_css$c);
|
3343
3369
|
}
|
3344
3370
|
}
|
3345
3371
|
|
3346
3372
|
/* src/components/RenderText.svelte generated by Svelte v3.53.1 */
|
3347
3373
|
|
3348
|
-
function get_each_context(ctx, list, i) {
|
3374
|
+
function get_each_context$1(ctx, list, i) {
|
3349
3375
|
const child_ctx = ctx.slice();
|
3350
3376
|
child_ctx[2] = list[i];
|
3351
3377
|
return child_ctx;
|
@@ -3397,7 +3423,7 @@ function create_if_block(ctx) {
|
|
3397
3423
|
}
|
3398
3424
|
|
3399
3425
|
// (9:0) {#each items as item}
|
3400
|
-
function create_each_block(ctx) {
|
3426
|
+
function create_each_block$1(ctx) {
|
3401
3427
|
let show_if;
|
3402
3428
|
let if_block_anchor;
|
3403
3429
|
|
@@ -3444,13 +3470,13 @@ function create_each_block(ctx) {
|
|
3444
3470
|
};
|
3445
3471
|
}
|
3446
3472
|
|
3447
|
-
function create_fragment$
|
3473
|
+
function create_fragment$d(ctx) {
|
3448
3474
|
let each_1_anchor;
|
3449
3475
|
let each_value = /*items*/ ctx[0];
|
3450
3476
|
let each_blocks = [];
|
3451
3477
|
|
3452
3478
|
for (let i = 0; i < each_value.length; i += 1) {
|
3453
|
-
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
3479
|
+
each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
|
3454
3480
|
}
|
3455
3481
|
|
3456
3482
|
return {
|
@@ -3481,12 +3507,12 @@ function create_fragment$9(ctx) {
|
|
3481
3507
|
let i;
|
3482
3508
|
|
3483
3509
|
for (i = 0; i < each_value.length; i += 1) {
|
3484
|
-
const child_ctx = get_each_context(ctx, each_value, i);
|
3510
|
+
const child_ctx = get_each_context$1(ctx, each_value, i);
|
3485
3511
|
|
3486
3512
|
if (each_blocks[i]) {
|
3487
3513
|
each_blocks[i].p(child_ctx, dirty);
|
3488
3514
|
} else {
|
3489
|
-
each_blocks[i] = create_each_block(child_ctx);
|
3515
|
+
each_blocks[i] = create_each_block$1(child_ctx);
|
3490
3516
|
each_blocks[i].c();
|
3491
3517
|
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
3492
3518
|
}
|
@@ -3510,7 +3536,7 @@ function create_fragment$9(ctx) {
|
|
3510
3536
|
|
3511
3537
|
const regexp = /(\r?\n)/;
|
3512
3538
|
|
3513
|
-
function instance$
|
3539
|
+
function instance$d($$self, $$props, $$invalidate) {
|
3514
3540
|
let items;
|
3515
3541
|
let { text = 'サンプルSample' } = $$props;
|
3516
3542
|
|
@@ -3530,17 +3556,17 @@ function instance$9($$self, $$props, $$invalidate) {
|
|
3530
3556
|
class RenderText extends SvelteComponent {
|
3531
3557
|
constructor(options) {
|
3532
3558
|
super();
|
3533
|
-
init(this, options, instance$
|
3559
|
+
init(this, options, instance$d, create_fragment$d, safe_not_equal, { text: 1 });
|
3534
3560
|
}
|
3535
3561
|
}
|
3536
3562
|
|
3537
3563
|
/* src/components/TextElement.svelte generated by Svelte v3.53.1 */
|
3538
3564
|
|
3539
|
-
function add_css$
|
3565
|
+
function add_css$b(target) {
|
3540
3566
|
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%}");
|
3541
3567
|
}
|
3542
3568
|
|
3543
|
-
function create_fragment$
|
3569
|
+
function create_fragment$c(ctx) {
|
3544
3570
|
let div1;
|
3545
3571
|
let div0;
|
3546
3572
|
let rendertext;
|
@@ -3600,7 +3626,7 @@ function create_fragment$8(ctx) {
|
|
3600
3626
|
};
|
3601
3627
|
}
|
3602
3628
|
|
3603
|
-
function instance$
|
3629
|
+
function instance$c($$self, $$props, $$invalidate) {
|
3604
3630
|
let style;
|
3605
3631
|
let { text = 'サンプルSample' } = $$props;
|
3606
3632
|
let { _textStyle = 'font-size:12px;' } = $$props;
|
@@ -3624,17 +3650,17 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
3624
3650
|
class TextElement extends SvelteComponent {
|
3625
3651
|
constructor(options) {
|
3626
3652
|
super();
|
3627
|
-
init(this, options, instance$
|
3653
|
+
init(this, options, instance$c, create_fragment$c, safe_not_equal, { text: 0, _textStyle: 2, _style: 3 }, add_css$b);
|
3628
3654
|
}
|
3629
3655
|
}
|
3630
3656
|
|
3631
3657
|
/* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
|
3632
3658
|
|
3633
|
-
function add_css$
|
3659
|
+
function add_css$a(target) {
|
3634
3660
|
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)}");
|
3635
3661
|
}
|
3636
3662
|
|
3637
|
-
function create_fragment$
|
3663
|
+
function create_fragment$b(ctx) {
|
3638
3664
|
let div;
|
3639
3665
|
let button;
|
3640
3666
|
let rendertext;
|
@@ -3708,7 +3734,7 @@ function create_fragment$7(ctx) {
|
|
3708
3734
|
};
|
3709
3735
|
}
|
3710
3736
|
|
3711
|
-
function instance$
|
3737
|
+
function instance$b($$self, $$props, $$invalidate) {
|
3712
3738
|
let { text = 'ボタンラベル' } = $$props;
|
3713
3739
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
3714
3740
|
|
@@ -3742,8 +3768,8 @@ class TextButtonElement extends SvelteComponent {
|
|
3742
3768
|
init(
|
3743
3769
|
this,
|
3744
3770
|
options,
|
3745
|
-
instance$
|
3746
|
-
create_fragment$
|
3771
|
+
instance$b,
|
3772
|
+
create_fragment$b,
|
3747
3773
|
safe_not_equal,
|
3748
3774
|
{
|
3749
3775
|
text: 0,
|
@@ -3752,18 +3778,18 @@ class TextButtonElement extends SvelteComponent {
|
|
3752
3778
|
_buttonStyle: 1,
|
3753
3779
|
_style: 2
|
3754
3780
|
},
|
3755
|
-
add_css$
|
3781
|
+
add_css$a
|
3756
3782
|
);
|
3757
3783
|
}
|
3758
3784
|
}
|
3759
3785
|
|
3760
3786
|
/* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
|
3761
3787
|
|
3762
|
-
function add_css$
|
3788
|
+
function add_css$9(target) {
|
3763
3789
|
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)}");
|
3764
3790
|
}
|
3765
3791
|
|
3766
|
-
function create_fragment$
|
3792
|
+
function create_fragment$a(ctx) {
|
3767
3793
|
let div;
|
3768
3794
|
let img;
|
3769
3795
|
let img_src_value;
|
@@ -3845,7 +3871,7 @@ function create_fragment$6(ctx) {
|
|
3845
3871
|
};
|
3846
3872
|
}
|
3847
3873
|
|
3848
|
-
function instance$
|
3874
|
+
function instance$a($$self, $$props, $$invalidate) {
|
3849
3875
|
let { src = 'https://admin.karte.io/action-editor2/public/images/no_image_en.svg' } = $$props;
|
3850
3876
|
let { alt = 'No Image' } = $$props;
|
3851
3877
|
let { transport = false } = $$props;
|
@@ -3883,8 +3909,8 @@ class ImageElement extends SvelteComponent {
|
|
3883
3909
|
init(
|
3884
3910
|
this,
|
3885
3911
|
options,
|
3886
|
-
instance$
|
3887
|
-
create_fragment$
|
3912
|
+
instance$a,
|
3913
|
+
create_fragment$a,
|
3888
3914
|
safe_not_equal,
|
3889
3915
|
{
|
3890
3916
|
src: 0,
|
@@ -3895,18 +3921,18 @@ class ImageElement extends SvelteComponent {
|
|
3895
3921
|
_imageStyle: 3,
|
3896
3922
|
_style: 4
|
3897
3923
|
},
|
3898
|
-
add_css$
|
3924
|
+
add_css$9
|
3899
3925
|
);
|
3900
3926
|
}
|
3901
3927
|
}
|
3902
3928
|
|
3903
3929
|
/* src/components/List.svelte generated by Svelte v3.53.1 */
|
3904
3930
|
|
3905
|
-
function add_css$
|
3931
|
+
function add_css$8(target) {
|
3906
3932
|
append_styles(target, "svelte-dfqtyx", ".list.svelte-dfqtyx{display:flex;width:100%;height:100%;overflow:hidden}");
|
3907
3933
|
}
|
3908
3934
|
|
3909
|
-
function create_fragment$
|
3935
|
+
function create_fragment$9(ctx) {
|
3910
3936
|
let div;
|
3911
3937
|
let current;
|
3912
3938
|
const default_slot_template = /*#slots*/ ctx[6].default;
|
@@ -3976,7 +4002,7 @@ function create_fragment$5(ctx) {
|
|
3976
4002
|
|
3977
4003
|
const LIST_CONTEXT_KEY = Symbol();
|
3978
4004
|
|
3979
|
-
function instance$
|
4005
|
+
function instance$9($$self, $$props, $$invalidate) {
|
3980
4006
|
let style;
|
3981
4007
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3982
4008
|
let { direction = 'vertical' } = $$props;
|
@@ -4043,8 +4069,8 @@ class List extends SvelteComponent {
|
|
4043
4069
|
init(
|
4044
4070
|
this,
|
4045
4071
|
options,
|
4046
|
-
instance$
|
4047
|
-
create_fragment$
|
4072
|
+
instance$9,
|
4073
|
+
create_fragment$9,
|
4048
4074
|
safe_not_equal,
|
4049
4075
|
{
|
4050
4076
|
direction: 1,
|
@@ -4052,18 +4078,18 @@ class List extends SvelteComponent {
|
|
4052
4078
|
background: 3,
|
4053
4079
|
_style: 4
|
4054
4080
|
},
|
4055
|
-
add_css$
|
4081
|
+
add_css$8
|
4056
4082
|
);
|
4057
4083
|
}
|
4058
4084
|
}
|
4059
4085
|
|
4060
4086
|
/* src/components/ListItem.svelte generated by Svelte v3.53.1 */
|
4061
4087
|
|
4062
|
-
function add_css$
|
4088
|
+
function add_css$7(target) {
|
4063
4089
|
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}");
|
4064
4090
|
}
|
4065
4091
|
|
4066
|
-
function create_fragment$
|
4092
|
+
function create_fragment$8(ctx) {
|
4067
4093
|
let div1;
|
4068
4094
|
let div0;
|
4069
4095
|
let current;
|
@@ -4157,7 +4183,7 @@ function create_fragment$4(ctx) {
|
|
4157
4183
|
};
|
4158
4184
|
}
|
4159
4185
|
|
4160
|
-
function instance$
|
4186
|
+
function instance$8($$self, $$props, $$invalidate) {
|
4161
4187
|
let click;
|
4162
4188
|
let listItemStyle;
|
4163
4189
|
let { $$slots: slots = {}, $$scope } = $$props;
|
@@ -4247,17 +4273,17 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
4247
4273
|
class ListItem extends SvelteComponent {
|
4248
4274
|
constructor(options) {
|
4249
4275
|
super();
|
4250
|
-
init(this, options, instance$
|
4276
|
+
init(this, options, instance$8, create_fragment$8, safe_not_equal, { onClick: 3, clickEventName: 4, _style: 0 }, add_css$7);
|
4251
4277
|
}
|
4252
4278
|
}
|
4253
4279
|
|
4254
4280
|
/* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
|
4255
4281
|
|
4256
|
-
function add_css$
|
4282
|
+
function add_css$6(target) {
|
4257
4283
|
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%}");
|
4258
4284
|
}
|
4259
4285
|
|
4260
|
-
function create_fragment$
|
4286
|
+
function create_fragment$7(ctx) {
|
4261
4287
|
let div;
|
4262
4288
|
|
4263
4289
|
return {
|
@@ -4293,7 +4319,7 @@ function create_fragment$3(ctx) {
|
|
4293
4319
|
};
|
4294
4320
|
}
|
4295
4321
|
|
4296
|
-
function instance$
|
4322
|
+
function instance$7($$self, $$props, $$invalidate) {
|
4297
4323
|
let { code } = $$props;
|
4298
4324
|
let { _style = '' } = $$props;
|
4299
4325
|
|
@@ -4308,7 +4334,633 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
4308
4334
|
class EmbedElement extends SvelteComponent {
|
4309
4335
|
constructor(options) {
|
4310
4336
|
super();
|
4311
|
-
init(this, options, instance$
|
4337
|
+
init(this, options, instance$7, create_fragment$7, safe_not_equal, { code: 0, _style: 1 }, add_css$6);
|
4338
|
+
}
|
4339
|
+
}
|
4340
|
+
|
4341
|
+
/* src/components/Form.svelte generated by Svelte v3.53.1 */
|
4342
|
+
|
4343
|
+
function add_css$5(target) {
|
4344
|
+
append_styles(target, "svelte-1il0aow", ".form.svelte-1il0aow{width:100%;height:100%}");
|
4345
|
+
}
|
4346
|
+
|
4347
|
+
function create_fragment$6(ctx) {
|
4348
|
+
let div;
|
4349
|
+
let current;
|
4350
|
+
const default_slot_template = /*#slots*/ ctx[4].default;
|
4351
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[3], null);
|
4352
|
+
|
4353
|
+
return {
|
4354
|
+
c() {
|
4355
|
+
div = element("div");
|
4356
|
+
if (default_slot) default_slot.c();
|
4357
|
+
this.h();
|
4358
|
+
},
|
4359
|
+
l(nodes) {
|
4360
|
+
div = claim_element(nodes, "DIV", { class: true });
|
4361
|
+
var div_nodes = children(div);
|
4362
|
+
if (default_slot) default_slot.l(div_nodes);
|
4363
|
+
div_nodes.forEach(detach);
|
4364
|
+
this.h();
|
4365
|
+
},
|
4366
|
+
h() {
|
4367
|
+
attr(div, "class", "form svelte-1il0aow");
|
4368
|
+
},
|
4369
|
+
m(target, anchor) {
|
4370
|
+
insert_hydration(target, div, anchor);
|
4371
|
+
|
4372
|
+
if (default_slot) {
|
4373
|
+
default_slot.m(div, null);
|
4374
|
+
}
|
4375
|
+
|
4376
|
+
current = true;
|
4377
|
+
},
|
4378
|
+
p(ctx, [dirty]) {
|
4379
|
+
if (default_slot) {
|
4380
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 8)) {
|
4381
|
+
update_slot_base(
|
4382
|
+
default_slot,
|
4383
|
+
default_slot_template,
|
4384
|
+
ctx,
|
4385
|
+
/*$$scope*/ ctx[3],
|
4386
|
+
!current
|
4387
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[3])
|
4388
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[3], dirty, null),
|
4389
|
+
null
|
4390
|
+
);
|
4391
|
+
}
|
4392
|
+
}
|
4393
|
+
},
|
4394
|
+
i(local) {
|
4395
|
+
if (current) return;
|
4396
|
+
transition_in(default_slot, local);
|
4397
|
+
current = true;
|
4398
|
+
},
|
4399
|
+
o(local) {
|
4400
|
+
transition_out(default_slot, local);
|
4401
|
+
current = false;
|
4402
|
+
},
|
4403
|
+
d(detaching) {
|
4404
|
+
if (detaching) detach(div);
|
4405
|
+
if (default_slot) default_slot.d(detaching);
|
4406
|
+
}
|
4407
|
+
};
|
4408
|
+
}
|
4409
|
+
|
4410
|
+
const FORM_CONTEXT_KEY = Symbol();
|
4411
|
+
|
4412
|
+
function getValue($formData, name) {
|
4413
|
+
return $formData._data[name];
|
4414
|
+
}
|
4415
|
+
|
4416
|
+
function updateValue(data, name, update) {
|
4417
|
+
data.update(prev => {
|
4418
|
+
const { value, isValid } = update(prev._data[name]);
|
4419
|
+
prev._data[name] = value;
|
4420
|
+
prev._isValidMap[name] = isValid;
|
4421
|
+
return { ...prev };
|
4422
|
+
});
|
4423
|
+
}
|
4424
|
+
|
4425
|
+
function checkIfDataAreValid($formData) {
|
4426
|
+
const dataAreValid = Object.entries($formData._data).reduce(
|
4427
|
+
(dataAreValid, [name]) => {
|
4428
|
+
return dataAreValid && ($formData._isValidMap[name] ?? true);
|
4429
|
+
},
|
4430
|
+
true
|
4431
|
+
);
|
4432
|
+
|
4433
|
+
return dataAreValid;
|
4434
|
+
}
|
4435
|
+
|
4436
|
+
const createFormDataAccessor = formId => {
|
4437
|
+
const variableKey = `_form_${formId}`;
|
4438
|
+
|
4439
|
+
const update = updater => {
|
4440
|
+
customVariables.update(prev => {
|
4441
|
+
const updatedFormData = updater(prev[variableKey] ?? {});
|
4442
|
+
return { ...prev, [variableKey]: updatedFormData };
|
4443
|
+
});
|
4444
|
+
};
|
4445
|
+
|
4446
|
+
const subscribe = run => {
|
4447
|
+
return customVariables.subscribe(value => {
|
4448
|
+
const formData = value[variableKey] ?? {};
|
4449
|
+
run(formData);
|
4450
|
+
});
|
4451
|
+
};
|
4452
|
+
|
4453
|
+
const set = value => {
|
4454
|
+
customVariables.update(prev => {
|
4455
|
+
return { ...prev, [variableKey]: value };
|
4456
|
+
});
|
4457
|
+
};
|
4458
|
+
|
4459
|
+
return { update, set, subscribe };
|
4460
|
+
};
|
4461
|
+
|
4462
|
+
function instance$6($$self, $$props, $$invalidate) {
|
4463
|
+
let $formData;
|
4464
|
+
let $formComponentData;
|
4465
|
+
let { $$slots: slots = {}, $$scope } = $$props;
|
4466
|
+
let { formId = 'form0' } = $$props;
|
4467
|
+
const formComponentData = writable({ _data: {}, _isValidMap: {} });
|
4468
|
+
component_subscribe($$self, formComponentData, value => $$invalidate(6, $formComponentData = value));
|
4469
|
+
|
4470
|
+
setContext(FORM_CONTEXT_KEY, {
|
4471
|
+
formComponentData,
|
4472
|
+
submit: ({ stateId }) => {
|
4473
|
+
if (checkIfDataAreValid($formComponentData)) {
|
4474
|
+
formData.update(prev => ({ ...prev, ...$formComponentData._data }));
|
4475
|
+
console.log('will send', $formData);
|
4476
|
+
setState$1(stateId, true);
|
4477
|
+
}
|
4478
|
+
},
|
4479
|
+
next: ({ stateId }) => {
|
4480
|
+
if (checkIfDataAreValid($formComponentData)) {
|
4481
|
+
formData.update(prev => ({ ...prev, ...$formComponentData._data }));
|
4482
|
+
setState$1(stateId, true);
|
4483
|
+
console.log('formData after next()', $formData);
|
4484
|
+
}
|
4485
|
+
},
|
4486
|
+
prev: ({ stateId }) => {
|
4487
|
+
formData.update(prev => {
|
4488
|
+
Object.keys($formComponentData._data).forEach(name => {
|
4489
|
+
delete prev[name];
|
4490
|
+
});
|
4491
|
+
|
4492
|
+
return { ...prev };
|
4493
|
+
});
|
4494
|
+
|
4495
|
+
setState$1(stateId, true);
|
4496
|
+
console.log('formData after prev()', $formData);
|
4497
|
+
}
|
4498
|
+
});
|
4499
|
+
|
4500
|
+
const formData = createFormDataAccessor(formId);
|
4501
|
+
component_subscribe($$self, formData, value => $$invalidate(5, $formData = value));
|
4502
|
+
|
4503
|
+
$$self.$$set = $$props => {
|
4504
|
+
if ('formId' in $$props) $$invalidate(2, formId = $$props.formId);
|
4505
|
+
if ('$$scope' in $$props) $$invalidate(3, $$scope = $$props.$$scope);
|
4506
|
+
};
|
4507
|
+
|
4508
|
+
return [formComponentData, formData, formId, $$scope, slots];
|
4509
|
+
}
|
4510
|
+
|
4511
|
+
class Form extends SvelteComponent {
|
4512
|
+
constructor(options) {
|
4513
|
+
super();
|
4514
|
+
init(this, options, instance$6, create_fragment$6, safe_not_equal, { formId: 2 }, add_css$5);
|
4515
|
+
}
|
4516
|
+
}
|
4517
|
+
|
4518
|
+
/* src/components/FormTextarea.svelte generated by Svelte v3.53.1 */
|
4519
|
+
|
4520
|
+
function add_css$4(target) {
|
4521
|
+
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}");
|
4522
|
+
}
|
4523
|
+
|
4524
|
+
function create_fragment$5(ctx) {
|
4525
|
+
let div;
|
4526
|
+
let textarea;
|
4527
|
+
let mounted;
|
4528
|
+
let dispose;
|
4529
|
+
|
4530
|
+
return {
|
4531
|
+
c() {
|
4532
|
+
div = element("div");
|
4533
|
+
textarea = element("textarea");
|
4534
|
+
this.h();
|
4535
|
+
},
|
4536
|
+
l(nodes) {
|
4537
|
+
div = claim_element(nodes, "DIV", { class: true });
|
4538
|
+
var div_nodes = children(div);
|
4539
|
+
|
4540
|
+
textarea = claim_element(div_nodes, "TEXTAREA", {
|
4541
|
+
class: true,
|
4542
|
+
rows: true,
|
4543
|
+
placeholder: true
|
4544
|
+
});
|
4545
|
+
|
4546
|
+
children(textarea).forEach(detach);
|
4547
|
+
div_nodes.forEach(detach);
|
4548
|
+
this.h();
|
4549
|
+
},
|
4550
|
+
h() {
|
4551
|
+
attr(textarea, "class", "textarea svelte-kyay3k");
|
4552
|
+
textarea.value = /*value*/ ctx[3];
|
4553
|
+
textarea.required = /*required*/ ctx[0];
|
4554
|
+
attr(textarea, "rows", /*rows*/ ctx[1]);
|
4555
|
+
attr(textarea, "placeholder", /*placeholder*/ ctx[2]);
|
4556
|
+
attr(div, "class", "textarea-wrapper svelte-kyay3k");
|
4557
|
+
},
|
4558
|
+
m(target, anchor) {
|
4559
|
+
insert_hydration(target, div, anchor);
|
4560
|
+
append_hydration(div, textarea);
|
4561
|
+
|
4562
|
+
if (!mounted) {
|
4563
|
+
dispose = listen(textarea, "input", /*handleInput*/ ctx[5]);
|
4564
|
+
mounted = true;
|
4565
|
+
}
|
4566
|
+
},
|
4567
|
+
p(ctx, [dirty]) {
|
4568
|
+
if (dirty & /*value*/ 8) {
|
4569
|
+
textarea.value = /*value*/ ctx[3];
|
4570
|
+
}
|
4571
|
+
|
4572
|
+
if (dirty & /*required*/ 1) {
|
4573
|
+
textarea.required = /*required*/ ctx[0];
|
4574
|
+
}
|
4575
|
+
|
4576
|
+
if (dirty & /*rows*/ 2) {
|
4577
|
+
attr(textarea, "rows", /*rows*/ ctx[1]);
|
4578
|
+
}
|
4579
|
+
|
4580
|
+
if (dirty & /*placeholder*/ 4) {
|
4581
|
+
attr(textarea, "placeholder", /*placeholder*/ ctx[2]);
|
4582
|
+
}
|
4583
|
+
},
|
4584
|
+
i: noop,
|
4585
|
+
o: noop,
|
4586
|
+
d(detaching) {
|
4587
|
+
if (detaching) detach(div);
|
4588
|
+
mounted = false;
|
4589
|
+
dispose();
|
4590
|
+
}
|
4591
|
+
};
|
4592
|
+
}
|
4593
|
+
|
4594
|
+
function instance$5($$self, $$props, $$invalidate) {
|
4595
|
+
let value;
|
4596
|
+
let $formComponentData;
|
4597
|
+
let { name = '' } = $$props;
|
4598
|
+
let { required = true } = $$props;
|
4599
|
+
let { rows = 2 } = $$props;
|
4600
|
+
let { placeholder = '' } = $$props;
|
4601
|
+
const { formComponentData } = getContext(FORM_CONTEXT_KEY);
|
4602
|
+
component_subscribe($$self, formComponentData, value => $$invalidate(7, $formComponentData = value));
|
4603
|
+
|
4604
|
+
function setValue(value) {
|
4605
|
+
updateValue(formComponentData, name, () => ({
|
4606
|
+
value,
|
4607
|
+
isValid: required ? !!value : true
|
4608
|
+
}));
|
4609
|
+
}
|
4610
|
+
|
4611
|
+
function handleInput(event) {
|
4612
|
+
const value = event.target.value;
|
4613
|
+
setValue(value);
|
4614
|
+
}
|
4615
|
+
|
4616
|
+
setValue(value);
|
4617
|
+
|
4618
|
+
$$self.$$set = $$props => {
|
4619
|
+
if ('name' in $$props) $$invalidate(6, name = $$props.name);
|
4620
|
+
if ('required' in $$props) $$invalidate(0, required = $$props.required);
|
4621
|
+
if ('rows' in $$props) $$invalidate(1, rows = $$props.rows);
|
4622
|
+
if ('placeholder' in $$props) $$invalidate(2, placeholder = $$props.placeholder);
|
4623
|
+
};
|
4624
|
+
|
4625
|
+
$$self.$$.update = () => {
|
4626
|
+
if ($$self.$$.dirty & /*$formComponentData, name*/ 192) {
|
4627
|
+
$$invalidate(3, value = getValue($formComponentData, name) ?? '');
|
4628
|
+
}
|
4629
|
+
};
|
4630
|
+
|
4631
|
+
return [
|
4632
|
+
required,
|
4633
|
+
rows,
|
4634
|
+
placeholder,
|
4635
|
+
value,
|
4636
|
+
formComponentData,
|
4637
|
+
handleInput,
|
4638
|
+
name,
|
4639
|
+
$formComponentData
|
4640
|
+
];
|
4641
|
+
}
|
4642
|
+
|
4643
|
+
class FormTextarea extends SvelteComponent {
|
4644
|
+
constructor(options) {
|
4645
|
+
super();
|
4646
|
+
|
4647
|
+
init(
|
4648
|
+
this,
|
4649
|
+
options,
|
4650
|
+
instance$5,
|
4651
|
+
create_fragment$5,
|
4652
|
+
safe_not_equal,
|
4653
|
+
{
|
4654
|
+
name: 6,
|
4655
|
+
required: 0,
|
4656
|
+
rows: 1,
|
4657
|
+
placeholder: 2
|
4658
|
+
},
|
4659
|
+
add_css$4
|
4660
|
+
);
|
4661
|
+
}
|
4662
|
+
}
|
4663
|
+
|
4664
|
+
/* src/components/FormButton.svelte generated by Svelte v3.53.1 */
|
4665
|
+
|
4666
|
+
function create_fragment$4(ctx) {
|
4667
|
+
let input;
|
4668
|
+
let mounted;
|
4669
|
+
let dispose;
|
4670
|
+
|
4671
|
+
return {
|
4672
|
+
c() {
|
4673
|
+
input = element("input");
|
4674
|
+
this.h();
|
4675
|
+
},
|
4676
|
+
l(nodes) {
|
4677
|
+
input = claim_element(nodes, "INPUT", { type: true, style: true });
|
4678
|
+
this.h();
|
4679
|
+
},
|
4680
|
+
h() {
|
4681
|
+
attr(input, "type", "button");
|
4682
|
+
set_style(input, "width", "100%");
|
4683
|
+
set_style(input, "height", "100%");
|
4684
|
+
input.value = /*text*/ ctx[0];
|
4685
|
+
input.disabled = /*disabled*/ ctx[1];
|
4686
|
+
},
|
4687
|
+
m(target, anchor) {
|
4688
|
+
insert_hydration(target, input, anchor);
|
4689
|
+
|
4690
|
+
if (!mounted) {
|
4691
|
+
dispose = listen(input, "click", /*handleClick*/ ctx[3]);
|
4692
|
+
mounted = true;
|
4693
|
+
}
|
4694
|
+
},
|
4695
|
+
p(ctx, [dirty]) {
|
4696
|
+
if (dirty & /*text*/ 1) {
|
4697
|
+
input.value = /*text*/ ctx[0];
|
4698
|
+
}
|
4699
|
+
|
4700
|
+
if (dirty & /*disabled*/ 2) {
|
4701
|
+
input.disabled = /*disabled*/ ctx[1];
|
4702
|
+
}
|
4703
|
+
},
|
4704
|
+
i: noop,
|
4705
|
+
o: noop,
|
4706
|
+
d(detaching) {
|
4707
|
+
if (detaching) detach(input);
|
4708
|
+
mounted = false;
|
4709
|
+
dispose();
|
4710
|
+
}
|
4711
|
+
};
|
4712
|
+
}
|
4713
|
+
|
4714
|
+
function instance$4($$self, $$props, $$invalidate) {
|
4715
|
+
let disabled;
|
4716
|
+
let $formComponentData;
|
4717
|
+
let { text = '' } = $$props;
|
4718
|
+
let { type = { type: 'submit' } } = $$props;
|
4719
|
+
const { formComponentData, submit, next, prev } = getContext(FORM_CONTEXT_KEY);
|
4720
|
+
component_subscribe($$self, formComponentData, value => $$invalidate(5, $formComponentData = value));
|
4721
|
+
|
4722
|
+
function handleClick() {
|
4723
|
+
switch (type.type) {
|
4724
|
+
case 'submit':
|
4725
|
+
{
|
4726
|
+
const stateId = type.stateId;
|
4727
|
+
submit({ stateId });
|
4728
|
+
break;
|
4729
|
+
}
|
4730
|
+
case 'next':
|
4731
|
+
{
|
4732
|
+
const stateId = type.stateId;
|
4733
|
+
next({ stateId });
|
4734
|
+
break;
|
4735
|
+
}
|
4736
|
+
case 'prev':
|
4737
|
+
{
|
4738
|
+
const stateId = type.stateId;
|
4739
|
+
prev({ stateId });
|
4740
|
+
break;
|
4741
|
+
}
|
4742
|
+
}
|
4743
|
+
}
|
4744
|
+
|
4745
|
+
$$self.$$set = $$props => {
|
4746
|
+
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
4747
|
+
if ('type' in $$props) $$invalidate(4, type = $$props.type);
|
4748
|
+
};
|
4749
|
+
|
4750
|
+
$$self.$$.update = () => {
|
4751
|
+
if ($$self.$$.dirty & /*type, $formComponentData*/ 48) {
|
4752
|
+
$$invalidate(1, disabled = (() => {
|
4753
|
+
if (type.type === 'prev') return false;
|
4754
|
+
|
4755
|
+
const dataAreValid = Object.entries($formComponentData._data).reduce(
|
4756
|
+
(dataAreValid, [name]) => {
|
4757
|
+
return dataAreValid && ($formComponentData._isValidMap[name] ?? true);
|
4758
|
+
},
|
4759
|
+
true
|
4760
|
+
);
|
4761
|
+
|
4762
|
+
return !dataAreValid;
|
4763
|
+
})());
|
4764
|
+
}
|
4765
|
+
};
|
4766
|
+
|
4767
|
+
return [text, disabled, formComponentData, handleClick, type, $formComponentData];
|
4768
|
+
}
|
4769
|
+
|
4770
|
+
class FormButton extends SvelteComponent {
|
4771
|
+
constructor(options) {
|
4772
|
+
super();
|
4773
|
+
init(this, options, instance$4, create_fragment$4, safe_not_equal, { text: 0, type: 4 });
|
4774
|
+
}
|
4775
|
+
}
|
4776
|
+
|
4777
|
+
/* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
|
4778
|
+
|
4779
|
+
function add_css$3(target) {
|
4780
|
+
append_styles(target, "svelte-1ajmbw1", ".radio-buttons.svelte-1ajmbw1{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
|
4781
|
+
}
|
4782
|
+
|
4783
|
+
function get_each_context(ctx, list, i) {
|
4784
|
+
const child_ctx = ctx.slice();
|
4785
|
+
child_ctx[5] = list[i];
|
4786
|
+
child_ctx[7] = i;
|
4787
|
+
return child_ctx;
|
4788
|
+
}
|
4789
|
+
|
4790
|
+
// (16:2) {#each _options as option, i}
|
4791
|
+
function create_each_block(ctx) {
|
4792
|
+
let label;
|
4793
|
+
let input;
|
4794
|
+
let input_value_value;
|
4795
|
+
let t0;
|
4796
|
+
let t1_value = /*option*/ ctx[5] + "";
|
4797
|
+
let t1;
|
4798
|
+
let t2;
|
4799
|
+
let mounted;
|
4800
|
+
let dispose;
|
4801
|
+
|
4802
|
+
return {
|
4803
|
+
c() {
|
4804
|
+
label = element("label");
|
4805
|
+
input = element("input");
|
4806
|
+
t0 = space();
|
4807
|
+
t1 = text(t1_value);
|
4808
|
+
t2 = space();
|
4809
|
+
this.h();
|
4810
|
+
},
|
4811
|
+
l(nodes) {
|
4812
|
+
label = claim_element(nodes, "LABEL", {});
|
4813
|
+
var label_nodes = children(label);
|
4814
|
+
input = claim_element(label_nodes, "INPUT", { type: true, name: true });
|
4815
|
+
t0 = claim_space(label_nodes);
|
4816
|
+
t1 = claim_text(label_nodes, t1_value);
|
4817
|
+
t2 = claim_space(label_nodes);
|
4818
|
+
label_nodes.forEach(detach);
|
4819
|
+
this.h();
|
4820
|
+
},
|
4821
|
+
h() {
|
4822
|
+
attr(input, "type", "radio");
|
4823
|
+
attr(input, "name", /*name*/ ctx[0]);
|
4824
|
+
input.value = input_value_value = /*option*/ ctx[5];
|
4825
|
+
},
|
4826
|
+
m(target, anchor) {
|
4827
|
+
insert_hydration(target, label, anchor);
|
4828
|
+
append_hydration(label, input);
|
4829
|
+
append_hydration(label, t0);
|
4830
|
+
append_hydration(label, t1);
|
4831
|
+
append_hydration(label, t2);
|
4832
|
+
|
4833
|
+
if (!mounted) {
|
4834
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[2](/*i*/ ctx[7]));
|
4835
|
+
mounted = true;
|
4836
|
+
}
|
4837
|
+
},
|
4838
|
+
p(new_ctx, dirty) {
|
4839
|
+
ctx = new_ctx;
|
4840
|
+
|
4841
|
+
if (dirty & /*name*/ 1) {
|
4842
|
+
attr(input, "name", /*name*/ ctx[0]);
|
4843
|
+
}
|
4844
|
+
|
4845
|
+
if (dirty & /*_options*/ 2 && input_value_value !== (input_value_value = /*option*/ ctx[5])) {
|
4846
|
+
input.value = input_value_value;
|
4847
|
+
}
|
4848
|
+
|
4849
|
+
if (dirty & /*_options*/ 2 && t1_value !== (t1_value = /*option*/ ctx[5] + "")) set_data(t1, t1_value);
|
4850
|
+
},
|
4851
|
+
d(detaching) {
|
4852
|
+
if (detaching) detach(label);
|
4853
|
+
mounted = false;
|
4854
|
+
dispose();
|
4855
|
+
}
|
4856
|
+
};
|
4857
|
+
}
|
4858
|
+
|
4859
|
+
function create_fragment$3(ctx) {
|
4860
|
+
let div;
|
4861
|
+
let each_value = /*_options*/ ctx[1];
|
4862
|
+
let each_blocks = [];
|
4863
|
+
|
4864
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
4865
|
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
4866
|
+
}
|
4867
|
+
|
4868
|
+
return {
|
4869
|
+
c() {
|
4870
|
+
div = element("div");
|
4871
|
+
|
4872
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
4873
|
+
each_blocks[i].c();
|
4874
|
+
}
|
4875
|
+
|
4876
|
+
this.h();
|
4877
|
+
},
|
4878
|
+
l(nodes) {
|
4879
|
+
div = claim_element(nodes, "DIV", { class: true });
|
4880
|
+
var div_nodes = children(div);
|
4881
|
+
|
4882
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
4883
|
+
each_blocks[i].l(div_nodes);
|
4884
|
+
}
|
4885
|
+
|
4886
|
+
div_nodes.forEach(detach);
|
4887
|
+
this.h();
|
4888
|
+
},
|
4889
|
+
h() {
|
4890
|
+
attr(div, "class", "radio-buttons svelte-1ajmbw1");
|
4891
|
+
},
|
4892
|
+
m(target, anchor) {
|
4893
|
+
insert_hydration(target, div, anchor);
|
4894
|
+
|
4895
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
4896
|
+
each_blocks[i].m(div, null);
|
4897
|
+
}
|
4898
|
+
},
|
4899
|
+
p(ctx, [dirty]) {
|
4900
|
+
if (dirty & /*_options, name, handleChange*/ 7) {
|
4901
|
+
each_value = /*_options*/ ctx[1];
|
4902
|
+
let i;
|
4903
|
+
|
4904
|
+
for (i = 0; i < each_value.length; i += 1) {
|
4905
|
+
const child_ctx = get_each_context(ctx, each_value, i);
|
4906
|
+
|
4907
|
+
if (each_blocks[i]) {
|
4908
|
+
each_blocks[i].p(child_ctx, dirty);
|
4909
|
+
} else {
|
4910
|
+
each_blocks[i] = create_each_block(child_ctx);
|
4911
|
+
each_blocks[i].c();
|
4912
|
+
each_blocks[i].m(div, null);
|
4913
|
+
}
|
4914
|
+
}
|
4915
|
+
|
4916
|
+
for (; i < each_blocks.length; i += 1) {
|
4917
|
+
each_blocks[i].d(1);
|
4918
|
+
}
|
4919
|
+
|
4920
|
+
each_blocks.length = each_value.length;
|
4921
|
+
}
|
4922
|
+
},
|
4923
|
+
i: noop,
|
4924
|
+
o: noop,
|
4925
|
+
d(detaching) {
|
4926
|
+
if (detaching) detach(div);
|
4927
|
+
destroy_each(each_blocks, detaching);
|
4928
|
+
}
|
4929
|
+
};
|
4930
|
+
}
|
4931
|
+
|
4932
|
+
function instance$3($$self, $$props, $$invalidate) {
|
4933
|
+
let _options;
|
4934
|
+
let { name = '' } = $$props;
|
4935
|
+
let { options = '人参,レタス,キャベツ' } = $$props;
|
4936
|
+
const { formComponentData } = getContext(FORM_CONTEXT_KEY);
|
4937
|
+
|
4938
|
+
const handleChange = index => event => {
|
4939
|
+
if (event.target.checked) {
|
4940
|
+
updateValue(formComponentData, name, () => ({ value: _options[index], isValid: true }));
|
4941
|
+
}
|
4942
|
+
};
|
4943
|
+
|
4944
|
+
updateValue(formComponentData, name, () => ({ value: '', isValid: false }));
|
4945
|
+
|
4946
|
+
$$self.$$set = $$props => {
|
4947
|
+
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
4948
|
+
if ('options' in $$props) $$invalidate(3, options = $$props.options);
|
4949
|
+
};
|
4950
|
+
|
4951
|
+
$$self.$$.update = () => {
|
4952
|
+
if ($$self.$$.dirty & /*options*/ 8) {
|
4953
|
+
$$invalidate(1, _options = options.split(','));
|
4954
|
+
}
|
4955
|
+
};
|
4956
|
+
|
4957
|
+
return [name, _options, handleChange, options];
|
4958
|
+
}
|
4959
|
+
|
4960
|
+
class FormRadioButtons extends SvelteComponent {
|
4961
|
+
constructor(options) {
|
4962
|
+
super();
|
4963
|
+
init(this, options, instance$3, create_fragment$3, safe_not_equal, { name: 0, options: 3 }, add_css$3);
|
4312
4964
|
}
|
4313
4965
|
}
|
4314
4966
|
|
@@ -4678,4 +5330,4 @@ class ImageBlock extends SvelteComponent {
|
|
4678
5330
|
}
|
4679
5331
|
}
|
4680
5332
|
|
4681
|
-
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 };
|
5333
|
+
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, Elasticities, ElasticityStyle, 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 };
|