@plaidev/karte-action-sdk 1.1.178 → 1.1.179-28041798.8342584c
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 +6 -5
- package/dist/hydrate/index.es.js +354 -214
- package/dist/index.es.d.ts +6 -5
- package/dist/index.es.js +337 -199
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { writable, get } from 'svelte/store';
|
2
2
|
import { onMount as onMount$1, onDestroy as onDestroy$1, beforeUpdate as beforeUpdate$1, afterUpdate as afterUpdate$1, tick as tick$1, setContext, getContext, createEventDispatcher } from 'svelte';
|
3
|
-
import { SvelteComponent, init, safe_not_equal,
|
3
|
+
import { SvelteComponent, init, safe_not_equal, element, claim_element, children, detach, insert_hydration, noop, component_subscribe, attr, create_slot, create_component, space, claim_component, claim_space, mount_component, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, append_styles, empty, group_outros, check_outros, listen, null_to_empty, is_function, add_render_callback, create_in_transition, binding_callbacks, set_style, svg_element, claim_svg_element, append_hydration, destroy_each, text, claim_text, set_data, src_url_equal, HtmlTagHydration, claim_html_tag, construct_svelte_component, subscribe } from 'svelte/internal';
|
4
4
|
import 'svelte/easing';
|
5
5
|
|
6
6
|
/** @internal */
|
@@ -26,7 +26,7 @@ const ALL_ACTION_SHORTEN_ID = 'KARTE_ALL_ACTION_SHORTEN_ID';
|
|
26
26
|
const KARTE_MODAL_ROOT = 'karte-modal-root';
|
27
27
|
|
28
28
|
/**
|
29
|
-
*
|
29
|
+
* ポップアップ(モーダル)のコンポーネントで利用するPropの定義
|
30
30
|
*/
|
31
31
|
/** @internal */
|
32
32
|
const PropTypes = [
|
@@ -162,7 +162,10 @@ const OnClickOperationOptions = [
|
|
162
162
|
/** @internal */
|
163
163
|
const LengthUnits = ['px', 'em', 'rem', 'vw', 'fr', '%'];
|
164
164
|
/** @internal */
|
165
|
+
const SYSTEM_FONT = 'sans-serif, serif, monospace, system-ui';
|
166
|
+
/** @internal */
|
165
167
|
const Fonts = [
|
168
|
+
SYSTEM_FONT,
|
166
169
|
'Noto Sans JP',
|
167
170
|
'M PLUS Rounded 1c',
|
168
171
|
'M PLUS 1p',
|
@@ -340,10 +343,6 @@ const getMarginStyle = (margin) => {
|
|
340
343
|
return `margin: ${margin?.top ?? 0} ${margin?.right ?? 0} ${margin?.bottom ?? 0} ${margin?.left ?? 0};`;
|
341
344
|
};
|
342
345
|
/** @internal */
|
343
|
-
const parseStyle = (style) => {
|
344
|
-
return Object.fromEntries(style.split(';').map(attr => attr.split(':').map(str => str.trim())));
|
345
|
-
};
|
346
|
-
/** @internal */
|
347
346
|
const stringifyStyleObj = (styleObj) => {
|
348
347
|
return Object.entries(styleObj)
|
349
348
|
.map(([key, value]) => `${key}:${value}`)
|
@@ -455,11 +454,31 @@ function onTime(time, fn) {
|
|
455
454
|
function hasSuffix(value, suffix) {
|
456
455
|
return new RegExp(`[0-9]${suffix}$`).test(value);
|
457
456
|
}
|
458
|
-
/**
|
459
|
-
|
460
|
-
|
457
|
+
/**
|
458
|
+
* Goolge Fonts用のURLを生成
|
459
|
+
*
|
460
|
+
* @param fonts - フォント名の配列
|
461
|
+
* @param texts - 使用するテキストの配列
|
462
|
+
*
|
463
|
+
* @remarks
|
464
|
+
* textsを指定した場合フォントサイズが削減される
|
465
|
+
*
|
466
|
+
* @internal
|
467
|
+
*/
|
468
|
+
function makeGoogleFontUrl(fonts, texts) {
|
469
|
+
const params = [];
|
470
|
+
params.push('display=swap');
|
471
|
+
if (texts) {
|
472
|
+
texts.forEach(text => params.push(`text=${text}`));
|
473
|
+
}
|
474
|
+
fonts.forEach(font => params.push(`family=${font.replace(/['"]/g, '').replace(/ /g, '+')}`));
|
475
|
+
return `https://fonts.googleapis.com/css2?${params.join('&')}`;
|
461
476
|
}
|
462
|
-
/**
|
477
|
+
/**
|
478
|
+
* HTML要素を生成
|
479
|
+
*
|
480
|
+
* @internal
|
481
|
+
*/
|
463
482
|
const h = (type, props, ...children) => {
|
464
483
|
const el = document.createElement(type);
|
465
484
|
for (const key of Object.keys(props)) {
|
@@ -476,6 +495,16 @@ const h = (type, props, ...children) => {
|
|
476
495
|
}
|
477
496
|
return el;
|
478
497
|
};
|
498
|
+
/**
|
499
|
+
* 非推奨
|
500
|
+
*
|
501
|
+
* @deprecated 非推奨
|
502
|
+
*
|
503
|
+
* @internal
|
504
|
+
*/
|
505
|
+
function getGoogleFontsParam() {
|
506
|
+
return 'family=' + Fonts.map(font => font.replace(/ /g, '+')).join('&family=');
|
507
|
+
}
|
479
508
|
|
480
509
|
/**
|
481
510
|
* Store to handle action setting
|
@@ -673,6 +702,28 @@ const setMaximumZindex = (zindex) => {
|
|
673
702
|
return;
|
674
703
|
maximumZindex.set(zindex);
|
675
704
|
};
|
705
|
+
/**
|
706
|
+
* Store to handle font-family of CSS
|
707
|
+
*
|
708
|
+
* @internal
|
709
|
+
*/
|
710
|
+
const fonts = writable([]);
|
711
|
+
/**
|
712
|
+
* Add font-family
|
713
|
+
*
|
714
|
+
* @internal
|
715
|
+
*/
|
716
|
+
const addFont = (font) => {
|
717
|
+
if (font === SYSTEM_FONT) {
|
718
|
+
return;
|
719
|
+
}
|
720
|
+
fonts.update(current => {
|
721
|
+
if (!current.includes(font)) {
|
722
|
+
current.push(font);
|
723
|
+
}
|
724
|
+
return current;
|
725
|
+
});
|
726
|
+
};
|
676
727
|
/**
|
677
728
|
* Store to handle internal event handlers
|
678
729
|
*
|
@@ -1615,9 +1666,13 @@ async function loadGlobalScript(src) {
|
|
1615
1666
|
*/
|
1616
1667
|
async function applyGlobalCss(css) {
|
1617
1668
|
return new Promise((resolve, reject) => {
|
1669
|
+
const action = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
|
1670
|
+
if (!action) {
|
1671
|
+
return;
|
1672
|
+
}
|
1618
1673
|
const style = document.createElement('style');
|
1619
1674
|
style.textContent = css;
|
1620
|
-
|
1675
|
+
action.appendChild(style);
|
1621
1676
|
style.addEventListener('load', () => resolve(style));
|
1622
1677
|
style.addEventListener('error', () => reject(style));
|
1623
1678
|
});
|
@@ -1631,10 +1686,15 @@ async function applyGlobalCss(css) {
|
|
1631
1686
|
*/
|
1632
1687
|
async function loadGlobalStyle(href) {
|
1633
1688
|
return new Promise((resolve, reject) => {
|
1689
|
+
const action = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
|
1690
|
+
if (!action) {
|
1691
|
+
return;
|
1692
|
+
}
|
1634
1693
|
const link = document.createElement('link');
|
1635
1694
|
link.rel = 'stylesheet';
|
1636
1695
|
link.href = href;
|
1637
|
-
|
1696
|
+
link.type = 'text/css';
|
1697
|
+
action.appendChild(link);
|
1638
1698
|
link.addEventListener('load', () => resolve(link));
|
1639
1699
|
link.addEventListener('error', () => reject(link));
|
1640
1700
|
});
|
@@ -2124,21 +2184,140 @@ const LAYOUT_COMPONENT_NAMES = [
|
|
2124
2184
|
'StateItem',
|
2125
2185
|
];
|
2126
2186
|
|
2187
|
+
/* src/components/Header.svelte generated by Svelte v3.53.1 */
|
2188
|
+
|
2189
|
+
function create_if_block$9(ctx) {
|
2190
|
+
let link;
|
2191
|
+
|
2192
|
+
return {
|
2193
|
+
c() {
|
2194
|
+
link = element("link");
|
2195
|
+
this.h();
|
2196
|
+
},
|
2197
|
+
l(nodes) {
|
2198
|
+
link = claim_element(nodes, "LINK", { href: true, type: true, rel: true });
|
2199
|
+
this.h();
|
2200
|
+
},
|
2201
|
+
h() {
|
2202
|
+
attr(link, "href", /*googleFontUrl*/ ctx[0]);
|
2203
|
+
attr(link, "type", "text/css");
|
2204
|
+
attr(link, "rel", "stylesheet");
|
2205
|
+
},
|
2206
|
+
m(target, anchor) {
|
2207
|
+
insert_hydration(target, link, anchor);
|
2208
|
+
},
|
2209
|
+
p(ctx, dirty) {
|
2210
|
+
if (dirty & /*googleFontUrl*/ 1) {
|
2211
|
+
attr(link, "href", /*googleFontUrl*/ ctx[0]);
|
2212
|
+
}
|
2213
|
+
},
|
2214
|
+
d(detaching) {
|
2215
|
+
if (detaching) detach(link);
|
2216
|
+
}
|
2217
|
+
};
|
2218
|
+
}
|
2219
|
+
|
2220
|
+
function create_fragment$y(ctx) {
|
2221
|
+
let head;
|
2222
|
+
let if_block = /*googleFontUrl*/ ctx[0] && create_if_block$9(ctx);
|
2223
|
+
|
2224
|
+
return {
|
2225
|
+
c() {
|
2226
|
+
head = element("head");
|
2227
|
+
if (if_block) if_block.c();
|
2228
|
+
},
|
2229
|
+
l(nodes) {
|
2230
|
+
head = claim_element(nodes, "HEAD", {});
|
2231
|
+
var head_nodes = children(head);
|
2232
|
+
if (if_block) if_block.l(head_nodes);
|
2233
|
+
head_nodes.forEach(detach);
|
2234
|
+
},
|
2235
|
+
m(target, anchor) {
|
2236
|
+
insert_hydration(target, head, anchor);
|
2237
|
+
if (if_block) if_block.m(head, null);
|
2238
|
+
},
|
2239
|
+
p(ctx, [dirty]) {
|
2240
|
+
if (/*googleFontUrl*/ ctx[0]) {
|
2241
|
+
if (if_block) {
|
2242
|
+
if_block.p(ctx, dirty);
|
2243
|
+
} else {
|
2244
|
+
if_block = create_if_block$9(ctx);
|
2245
|
+
if_block.c();
|
2246
|
+
if_block.m(head, null);
|
2247
|
+
}
|
2248
|
+
} else if (if_block) {
|
2249
|
+
if_block.d(1);
|
2250
|
+
if_block = null;
|
2251
|
+
}
|
2252
|
+
},
|
2253
|
+
i: noop,
|
2254
|
+
o: noop,
|
2255
|
+
d(detaching) {
|
2256
|
+
if (detaching) detach(head);
|
2257
|
+
if (if_block) if_block.d();
|
2258
|
+
}
|
2259
|
+
};
|
2260
|
+
}
|
2261
|
+
|
2262
|
+
function instance$y($$self, $$props, $$invalidate) {
|
2263
|
+
let $fonts;
|
2264
|
+
component_subscribe($$self, fonts, $$value => $$invalidate(1, $fonts = $$value));
|
2265
|
+
let googleFontUrl = '';
|
2266
|
+
|
2267
|
+
$$self.$$.update = () => {
|
2268
|
+
if ($$self.$$.dirty & /*$fonts*/ 2) {
|
2269
|
+
{
|
2270
|
+
{
|
2271
|
+
// フォントのロードが遅れてエディタのプレビューがガタつく対策
|
2272
|
+
$$invalidate(0, googleFontUrl = makeGoogleFontUrl(Fonts.filter(font => font !== SYSTEM_FONT)));
|
2273
|
+
}
|
2274
|
+
}
|
2275
|
+
}
|
2276
|
+
|
2277
|
+
if ($$self.$$.dirty & /*googleFontUrl*/ 1) {
|
2278
|
+
{
|
2279
|
+
if (googleFontUrl) {
|
2280
|
+
loadGlobalStyle(googleFontUrl);
|
2281
|
+
}
|
2282
|
+
}
|
2283
|
+
}
|
2284
|
+
};
|
2285
|
+
|
2286
|
+
return [googleFontUrl, $fonts];
|
2287
|
+
}
|
2288
|
+
|
2289
|
+
class Header extends SvelteComponent {
|
2290
|
+
constructor(options) {
|
2291
|
+
super();
|
2292
|
+
init(this, options, instance$y, create_fragment$y, safe_not_equal, {});
|
2293
|
+
}
|
2294
|
+
}
|
2295
|
+
|
2127
2296
|
/* src/components/State.svelte generated by Svelte v3.53.1 */
|
2128
2297
|
|
2129
2298
|
function create_fragment$x(ctx) {
|
2299
|
+
let header;
|
2300
|
+
let t;
|
2130
2301
|
let current;
|
2302
|
+
header = new Header({});
|
2131
2303
|
const default_slot_template = /*#slots*/ ctx[1].default;
|
2132
2304
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[0], null);
|
2133
2305
|
|
2134
2306
|
return {
|
2135
2307
|
c() {
|
2308
|
+
create_component(header.$$.fragment);
|
2309
|
+
t = space();
|
2136
2310
|
if (default_slot) default_slot.c();
|
2137
2311
|
},
|
2138
2312
|
l(nodes) {
|
2313
|
+
claim_component(header.$$.fragment, nodes);
|
2314
|
+
t = claim_space(nodes);
|
2139
2315
|
if (default_slot) default_slot.l(nodes);
|
2140
2316
|
},
|
2141
2317
|
m(target, anchor) {
|
2318
|
+
mount_component(header, target, anchor);
|
2319
|
+
insert_hydration(target, t, anchor);
|
2320
|
+
|
2142
2321
|
if (default_slot) {
|
2143
2322
|
default_slot.m(target, anchor);
|
2144
2323
|
}
|
@@ -2163,14 +2342,18 @@ function create_fragment$x(ctx) {
|
|
2163
2342
|
},
|
2164
2343
|
i(local) {
|
2165
2344
|
if (current) return;
|
2345
|
+
transition_in(header.$$.fragment, local);
|
2166
2346
|
transition_in(default_slot, local);
|
2167
2347
|
current = true;
|
2168
2348
|
},
|
2169
2349
|
o(local) {
|
2350
|
+
transition_out(header.$$.fragment, local);
|
2170
2351
|
transition_out(default_slot, local);
|
2171
2352
|
current = false;
|
2172
2353
|
},
|
2173
2354
|
d(detaching) {
|
2355
|
+
destroy_component(header, detaching);
|
2356
|
+
if (detaching) detach(t);
|
2174
2357
|
if (default_slot) default_slot.d(detaching);
|
2175
2358
|
}
|
2176
2359
|
};
|
@@ -4260,7 +4443,7 @@ function add_css$o(target) {
|
|
4260
4443
|
append_styles(target, "svelte-600oh0", ".text-element-wrapper.svelte-600oh0.svelte-600oh0{position:relative;height:100%}.text-element.svelte-600oh0.svelte-600oh0{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;overflow:auto;margin:0px;padding:0px}.text-link-element.svelte-600oh0.svelte-600oh0{text-decoration:none;color:inherit}.text-element-inner.svelte-600oh0.svelte-600oh0{width:100%;height:auto}.text-direction-vertical.svelte-600oh0.svelte-600oh0{writing-mode:vertical-rl}.text-direction-vertical.svelte-600oh0 .text-element-inner.svelte-600oh0{width:auto;height:100%}.tooltip.svelte-600oh0.svelte-600oh0{display:none;position:absolute;bottom:-40px;left:50%;transform:translateX(-50%);color:#fff;background-color:#3d4948;white-space:nowrap;padding:4px 8px 4px 8px;border-radius:4px;font-size:12px;z-index:2147483647}.tooltip.svelte-600oh0.svelte-600oh0:before{content:'';position:absolute;top:-13px;left:50%;margin-left:-7px;border:7px solid transparent;border-bottom:7px solid #3d4948}.tooltip.show.svelte-600oh0.svelte-600oh0{display:block}.tooltip-error.svelte-600oh0.svelte-600oh0{background-color:#c00}.tooltip-error.svelte-600oh0.svelte-600oh0:before{border-bottom:7px solid #c00}");
|
4261
4444
|
}
|
4262
4445
|
|
4263
|
-
// (
|
4446
|
+
// (86:2) {:else}
|
4264
4447
|
function create_else_block$1(ctx) {
|
4265
4448
|
let div1;
|
4266
4449
|
let div0;
|
@@ -4326,7 +4509,7 @@ function create_else_block$1(ctx) {
|
|
4326
4509
|
};
|
4327
4510
|
}
|
4328
4511
|
|
4329
|
-
// (
|
4512
|
+
// (77:2) {#if enableCopy}
|
4330
4513
|
function create_if_block$3(ctx) {
|
4331
4514
|
let a;
|
4332
4515
|
let div0;
|
@@ -4391,11 +4574,11 @@ function create_if_block$3(ctx) {
|
|
4391
4574
|
insert_hydration(target, t0, anchor);
|
4392
4575
|
insert_hydration(target, div1, anchor);
|
4393
4576
|
append_hydration(div1, t1);
|
4394
|
-
/*div1_binding*/ ctx[
|
4577
|
+
/*div1_binding*/ ctx[11](div1);
|
4395
4578
|
insert_hydration(target, t2, anchor);
|
4396
4579
|
insert_hydration(target, div2, anchor);
|
4397
4580
|
append_hydration(div2, t3);
|
4398
|
-
/*div2_binding*/ ctx[
|
4581
|
+
/*div2_binding*/ ctx[12](div2);
|
4399
4582
|
current = true;
|
4400
4583
|
|
4401
4584
|
if (!mounted) {
|
@@ -4430,10 +4613,10 @@ function create_if_block$3(ctx) {
|
|
4430
4613
|
destroy_component(rendertext);
|
4431
4614
|
if (detaching) detach(t0);
|
4432
4615
|
if (detaching) detach(div1);
|
4433
|
-
/*div1_binding*/ ctx[
|
4616
|
+
/*div1_binding*/ ctx[11](null);
|
4434
4617
|
if (detaching) detach(t2);
|
4435
4618
|
if (detaching) detach(div2);
|
4436
|
-
/*div2_binding*/ ctx[
|
4619
|
+
/*div2_binding*/ ctx[12](null);
|
4437
4620
|
mounted = false;
|
4438
4621
|
dispose();
|
4439
4622
|
}
|
@@ -4442,9 +4625,6 @@ function create_if_block$3(ctx) {
|
|
4442
4625
|
|
4443
4626
|
function create_fragment$p(ctx) {
|
4444
4627
|
let div;
|
4445
|
-
let link;
|
4446
|
-
let link_href_value;
|
4447
|
-
let t;
|
4448
4628
|
let current_block_type_index;
|
4449
4629
|
let if_block;
|
4450
4630
|
let current;
|
@@ -4462,37 +4642,25 @@ function create_fragment$p(ctx) {
|
|
4462
4642
|
return {
|
4463
4643
|
c() {
|
4464
4644
|
div = element("div");
|
4465
|
-
link = element("link");
|
4466
|
-
t = space();
|
4467
4645
|
if_block.c();
|
4468
4646
|
this.h();
|
4469
4647
|
},
|
4470
4648
|
l(nodes) {
|
4471
4649
|
div = claim_element(nodes, "DIV", { class: true });
|
4472
4650
|
var div_nodes = children(div);
|
4473
|
-
link = claim_element(div_nodes, "LINK", { href: true, rel: true });
|
4474
|
-
t = claim_space(div_nodes);
|
4475
4651
|
if_block.l(div_nodes);
|
4476
4652
|
div_nodes.forEach(detach);
|
4477
4653
|
this.h();
|
4478
4654
|
},
|
4479
4655
|
h() {
|
4480
|
-
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`);
|
4481
|
-
attr(link, "rel", "stylesheet");
|
4482
4656
|
attr(div, "class", "text-element-wrapper svelte-600oh0");
|
4483
4657
|
},
|
4484
4658
|
m(target, anchor) {
|
4485
4659
|
insert_hydration(target, div, anchor);
|
4486
|
-
append_hydration(div, link);
|
4487
|
-
append_hydration(div, t);
|
4488
4660
|
if_blocks[current_block_type_index].m(div, null);
|
4489
4661
|
current = true;
|
4490
4662
|
},
|
4491
4663
|
p(ctx, [dirty]) {
|
4492
|
-
if (!current || dirty & /*text*/ 1 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`)) {
|
4493
|
-
attr(link, "href", link_href_value);
|
4494
|
-
}
|
4495
|
-
|
4496
4664
|
let previous_block_index = current_block_type_index;
|
4497
4665
|
current_block_type_index = select_block_type(ctx);
|
4498
4666
|
|
@@ -4538,6 +4706,7 @@ function create_fragment$p(ctx) {
|
|
4538
4706
|
function instance$p($$self, $$props, $$invalidate) {
|
4539
4707
|
let style;
|
4540
4708
|
let { text = 'サンプルSample' } = $$props;
|
4709
|
+
let { font = SYSTEM_FONT } = $$props;
|
4541
4710
|
let { _textStyle = 'font-size:12px; line-height: 1.5;' } = $$props;
|
4542
4711
|
let { textDirection = 'horizontal' } = $$props;
|
4543
4712
|
let { _style = '' } = $$props;
|
@@ -4587,16 +4756,21 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
4587
4756
|
|
4588
4757
|
$$self.$$set = $$props => {
|
4589
4758
|
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
4590
|
-
if ('
|
4759
|
+
if ('font' in $$props) $$invalidate(7, font = $$props.font);
|
4760
|
+
if ('_textStyle' in $$props) $$invalidate(8, _textStyle = $$props._textStyle);
|
4591
4761
|
if ('textDirection' in $$props) $$invalidate(1, textDirection = $$props.textDirection);
|
4592
|
-
if ('_style' in $$props) $$invalidate(
|
4762
|
+
if ('_style' in $$props) $$invalidate(9, _style = $$props._style);
|
4593
4763
|
if ('enableCopy' in $$props) $$invalidate(2, enableCopy = $$props.enableCopy);
|
4594
|
-
if ('eventName' in $$props) $$invalidate(
|
4764
|
+
if ('eventName' in $$props) $$invalidate(10, eventName = $$props.eventName);
|
4595
4765
|
};
|
4596
4766
|
|
4597
4767
|
$$self.$$.update = () => {
|
4598
|
-
if ($$self.$$.dirty & /*
|
4599
|
-
|
4768
|
+
if ($$self.$$.dirty & /*font*/ 128) {
|
4769
|
+
addFont(font);
|
4770
|
+
}
|
4771
|
+
|
4772
|
+
if ($$self.$$.dirty & /*_textStyle, _style, font*/ 896) {
|
4773
|
+
$$invalidate(5, style = [..._textStyle.split(';'), ..._style.split(';'), `font-family:${font}`].filter(prop => prop).join(';'));
|
4600
4774
|
}
|
4601
4775
|
};
|
4602
4776
|
|
@@ -4608,6 +4782,7 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
4608
4782
|
tooltipErrorEl,
|
4609
4783
|
style,
|
4610
4784
|
onCopy,
|
4785
|
+
font,
|
4611
4786
|
_textStyle,
|
4612
4787
|
_style,
|
4613
4788
|
eventName,
|
@@ -4628,11 +4803,12 @@ class TextElement extends SvelteComponent {
|
|
4628
4803
|
safe_not_equal,
|
4629
4804
|
{
|
4630
4805
|
text: 0,
|
4631
|
-
|
4806
|
+
font: 7,
|
4807
|
+
_textStyle: 8,
|
4632
4808
|
textDirection: 1,
|
4633
|
-
_style:
|
4809
|
+
_style: 9,
|
4634
4810
|
enableCopy: 2,
|
4635
|
-
eventName:
|
4811
|
+
eventName: 10
|
4636
4812
|
},
|
4637
4813
|
add_css$o
|
4638
4814
|
);
|
@@ -5999,12 +6175,12 @@ function add_css$f(target) {
|
|
5999
6175
|
|
6000
6176
|
function get_each_context$5(ctx, list, i) {
|
6001
6177
|
const child_ctx = ctx.slice();
|
6002
|
-
child_ctx[
|
6003
|
-
child_ctx[
|
6178
|
+
child_ctx[16] = list[i];
|
6179
|
+
child_ctx[18] = i;
|
6004
6180
|
return child_ctx;
|
6005
6181
|
}
|
6006
6182
|
|
6007
|
-
// (
|
6183
|
+
// (98:2) {#each _options as option, i}
|
6008
6184
|
function create_each_block$5(ctx) {
|
6009
6185
|
let label;
|
6010
6186
|
let input;
|
@@ -6012,7 +6188,7 @@ function create_each_block$5(ctx) {
|
|
6012
6188
|
let input_checked_value;
|
6013
6189
|
let t0;
|
6014
6190
|
let span;
|
6015
|
-
let t1_value = /*option*/ ctx[
|
6191
|
+
let t1_value = /*option*/ ctx[16] + "";
|
6016
6192
|
let t1;
|
6017
6193
|
let t2;
|
6018
6194
|
let mounted;
|
@@ -6053,8 +6229,8 @@ function create_each_block$5(ctx) {
|
|
6053
6229
|
attr(input, "class", "radio-button-input svelte-17s08g");
|
6054
6230
|
attr(input, "style", /*buttonStyle*/ ctx[5]);
|
6055
6231
|
attr(input, "name", /*name*/ ctx[0]);
|
6056
|
-
input.value = input_value_value = /*option*/ ctx[
|
6057
|
-
input.checked = input_checked_value = /*option*/ ctx[
|
6232
|
+
input.value = input_value_value = /*option*/ ctx[16];
|
6233
|
+
input.checked = input_checked_value = /*option*/ ctx[16] === /*_value*/ ctx[3];
|
6058
6234
|
attr(span, "class", "radio-button-text svelte-17s08g");
|
6059
6235
|
attr(span, "style", /*_textStyle*/ ctx[2]);
|
6060
6236
|
attr(label, "class", "radio-button svelte-17s08g");
|
@@ -6068,7 +6244,7 @@ function create_each_block$5(ctx) {
|
|
6068
6244
|
append_hydration(label, t2);
|
6069
6245
|
|
6070
6246
|
if (!mounted) {
|
6071
|
-
dispose = listen(input, "change", /*handleChange*/ ctx[7](/*i*/ ctx[
|
6247
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[7](/*i*/ ctx[18]));
|
6072
6248
|
mounted = true;
|
6073
6249
|
}
|
6074
6250
|
},
|
@@ -6083,15 +6259,15 @@ function create_each_block$5(ctx) {
|
|
6083
6259
|
attr(input, "name", /*name*/ ctx[0]);
|
6084
6260
|
}
|
6085
6261
|
|
6086
|
-
if (dirty & /*_options*/ 16 && input_value_value !== (input_value_value = /*option*/ ctx[
|
6262
|
+
if (dirty & /*_options*/ 16 && input_value_value !== (input_value_value = /*option*/ ctx[16])) {
|
6087
6263
|
input.value = input_value_value;
|
6088
6264
|
}
|
6089
6265
|
|
6090
|
-
if (dirty & /*_options, _value*/ 24 && input_checked_value !== (input_checked_value = /*option*/ ctx[
|
6266
|
+
if (dirty & /*_options, _value*/ 24 && input_checked_value !== (input_checked_value = /*option*/ ctx[16] === /*_value*/ ctx[3])) {
|
6091
6267
|
input.checked = input_checked_value;
|
6092
6268
|
}
|
6093
6269
|
|
6094
|
-
if (dirty & /*_options*/ 16 && t1_value !== (t1_value = /*option*/ ctx[
|
6270
|
+
if (dirty & /*_options*/ 16 && t1_value !== (t1_value = /*option*/ ctx[16] + "")) set_data(t1, t1_value);
|
6095
6271
|
|
6096
6272
|
if (dirty & /*_textStyle*/ 4) {
|
6097
6273
|
attr(span, "style", /*_textStyle*/ ctx[2]);
|
@@ -6107,9 +6283,6 @@ function create_each_block$5(ctx) {
|
|
6107
6283
|
|
6108
6284
|
function create_fragment$g(ctx) {
|
6109
6285
|
let div;
|
6110
|
-
let link;
|
6111
|
-
let link_href_value;
|
6112
|
-
let t;
|
6113
6286
|
let each_value = /*_options*/ ctx[4];
|
6114
6287
|
let each_blocks = [];
|
6115
6288
|
|
@@ -6120,8 +6293,6 @@ function create_fragment$g(ctx) {
|
|
6120
6293
|
return {
|
6121
6294
|
c() {
|
6122
6295
|
div = element("div");
|
6123
|
-
link = element("link");
|
6124
|
-
t = space();
|
6125
6296
|
|
6126
6297
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6127
6298
|
each_blocks[i].c();
|
@@ -6132,8 +6303,6 @@ function create_fragment$g(ctx) {
|
|
6132
6303
|
l(nodes) {
|
6133
6304
|
div = claim_element(nodes, "DIV", { class: true, style: true });
|
6134
6305
|
var div_nodes = children(div);
|
6135
|
-
link = claim_element(div_nodes, "LINK", { href: true, rel: true });
|
6136
|
-
t = claim_space(div_nodes);
|
6137
6306
|
|
6138
6307
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6139
6308
|
each_blocks[i].l(div_nodes);
|
@@ -6143,25 +6312,17 @@ function create_fragment$g(ctx) {
|
|
6143
6312
|
this.h();
|
6144
6313
|
},
|
6145
6314
|
h() {
|
6146
|
-
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*_options*/ ctx[4].join('')}`);
|
6147
|
-
attr(link, "rel", "stylesheet");
|
6148
6315
|
attr(div, "class", "radio-buttons svelte-17s08g");
|
6149
6316
|
attr(div, "style", /*_layoutStyle*/ ctx[1]);
|
6150
6317
|
},
|
6151
6318
|
m(target, anchor) {
|
6152
6319
|
insert_hydration(target, div, anchor);
|
6153
|
-
append_hydration(div, link);
|
6154
|
-
append_hydration(div, t);
|
6155
6320
|
|
6156
6321
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6157
6322
|
each_blocks[i].m(div, null);
|
6158
6323
|
}
|
6159
6324
|
},
|
6160
6325
|
p(ctx, [dirty]) {
|
6161
|
-
if (dirty & /*_options*/ 16 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*_options*/ ctx[4].join('')}`)) {
|
6162
|
-
attr(link, "href", link_href_value);
|
6163
|
-
}
|
6164
|
-
|
6165
6326
|
if (dirty & /*_textStyle, _options, buttonStyle, name, _value, handleChange*/ 189) {
|
6166
6327
|
each_value = /*_options*/ ctx[4];
|
6167
6328
|
let i;
|
@@ -6207,6 +6368,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6207
6368
|
let { options = 'ラジオボタン1,ラジオボタン2,ラジオボタン3' } = $$props;
|
6208
6369
|
let { required = false } = $$props;
|
6209
6370
|
let { _layoutStyle = 'flex-direction: column; gap: 0px;' } = $$props;
|
6371
|
+
let { font = SYSTEM_FONT } = $$props;
|
6210
6372
|
let { _textStyle = 'color: #333; font-size: 12px; line-height:1.5;' } = $$props;
|
6211
6373
|
let { buttonSize = '16px' } = $$props;
|
6212
6374
|
let { buttonColor = { main: '#f0f1f1', sub: '#f0f1f1' } } = $$props;
|
@@ -6223,7 +6385,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6223
6385
|
}
|
6224
6386
|
});
|
6225
6387
|
|
6226
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6388
|
+
component_subscribe($$self, value, value => $$invalidate(14, $value = value));
|
6227
6389
|
|
6228
6390
|
const handleChange = index => event => {
|
6229
6391
|
if (event.target.checked) {
|
@@ -6236,18 +6398,23 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6236
6398
|
if ('options' in $$props) $$invalidate(8, options = $$props.options);
|
6237
6399
|
if ('required' in $$props) $$invalidate(9, required = $$props.required);
|
6238
6400
|
if ('_layoutStyle' in $$props) $$invalidate(1, _layoutStyle = $$props._layoutStyle);
|
6401
|
+
if ('font' in $$props) $$invalidate(10, font = $$props.font);
|
6239
6402
|
if ('_textStyle' in $$props) $$invalidate(2, _textStyle = $$props._textStyle);
|
6240
|
-
if ('buttonSize' in $$props) $$invalidate(
|
6241
|
-
if ('buttonColor' in $$props) $$invalidate(
|
6242
|
-
if ('buttonColorActive' in $$props) $$invalidate(
|
6403
|
+
if ('buttonSize' in $$props) $$invalidate(11, buttonSize = $$props.buttonSize);
|
6404
|
+
if ('buttonColor' in $$props) $$invalidate(12, buttonColor = $$props.buttonColor);
|
6405
|
+
if ('buttonColorActive' in $$props) $$invalidate(13, buttonColorActive = $$props.buttonColorActive);
|
6243
6406
|
};
|
6244
6407
|
|
6245
6408
|
$$self.$$.update = () => {
|
6409
|
+
if ($$self.$$.dirty & /*font*/ 1024) {
|
6410
|
+
addFont(font);
|
6411
|
+
}
|
6412
|
+
|
6246
6413
|
if ($$self.$$.dirty & /*options*/ 256) {
|
6247
6414
|
$$invalidate(4, _options = options.split(','));
|
6248
6415
|
}
|
6249
6416
|
|
6250
|
-
if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/
|
6417
|
+
if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/ 14336) {
|
6251
6418
|
$$invalidate(5, buttonStyle = (() => {
|
6252
6419
|
return stringifyStyleObj({
|
6253
6420
|
'--color-main': buttonColor.main,
|
@@ -6259,7 +6426,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6259
6426
|
})());
|
6260
6427
|
}
|
6261
6428
|
|
6262
|
-
if ($$self.$$.dirty & /*$value*/
|
6429
|
+
if ($$self.$$.dirty & /*$value*/ 16384) {
|
6263
6430
|
$$invalidate(3, _value = $value[0]);
|
6264
6431
|
}
|
6265
6432
|
};
|
@@ -6275,6 +6442,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
6275
6442
|
handleChange,
|
6276
6443
|
options,
|
6277
6444
|
required,
|
6445
|
+
font,
|
6278
6446
|
buttonSize,
|
6279
6447
|
buttonColor,
|
6280
6448
|
buttonColorActive,
|
@@ -6297,10 +6465,11 @@ class FormRadioButtons extends SvelteComponent {
|
|
6297
6465
|
options: 8,
|
6298
6466
|
required: 9,
|
6299
6467
|
_layoutStyle: 1,
|
6468
|
+
font: 10,
|
6300
6469
|
_textStyle: 2,
|
6301
|
-
buttonSize:
|
6302
|
-
buttonColor:
|
6303
|
-
buttonColorActive:
|
6470
|
+
buttonSize: 11,
|
6471
|
+
buttonColor: 12,
|
6472
|
+
buttonColorActive: 13
|
6304
6473
|
},
|
6305
6474
|
add_css$f
|
6306
6475
|
);
|
@@ -6315,12 +6484,12 @@ function add_css$e(target) {
|
|
6315
6484
|
|
6316
6485
|
function get_each_context$4(ctx, list, i) {
|
6317
6486
|
const child_ctx = ctx.slice();
|
6318
|
-
child_ctx[
|
6319
|
-
child_ctx[
|
6487
|
+
child_ctx[19] = list[i];
|
6488
|
+
child_ctx[21] = i;
|
6320
6489
|
return child_ctx;
|
6321
6490
|
}
|
6322
6491
|
|
6323
|
-
// (
|
6492
|
+
// (108:10) {:else}
|
6324
6493
|
function create_else_block(ctx) {
|
6325
6494
|
let t;
|
6326
6495
|
|
@@ -6343,9 +6512,9 @@ function create_else_block(ctx) {
|
|
6343
6512
|
};
|
6344
6513
|
}
|
6345
6514
|
|
6346
|
-
// (
|
6515
|
+
// (106:10) {#if option}
|
6347
6516
|
function create_if_block$2(ctx) {
|
6348
|
-
let t_value = /*option*/ ctx[
|
6517
|
+
let t_value = /*option*/ ctx[19] + "";
|
6349
6518
|
let t;
|
6350
6519
|
|
6351
6520
|
return {
|
@@ -6359,7 +6528,7 @@ function create_if_block$2(ctx) {
|
|
6359
6528
|
insert_hydration(target, t, anchor);
|
6360
6529
|
},
|
6361
6530
|
p(ctx, dirty) {
|
6362
|
-
if (dirty & /*_options*/ 16 && t_value !== (t_value = /*option*/ ctx[
|
6531
|
+
if (dirty & /*_options*/ 16 && t_value !== (t_value = /*option*/ ctx[19] + "")) set_data(t, t_value);
|
6363
6532
|
},
|
6364
6533
|
d(detaching) {
|
6365
6534
|
if (detaching) detach(t);
|
@@ -6367,7 +6536,7 @@ function create_if_block$2(ctx) {
|
|
6367
6536
|
};
|
6368
6537
|
}
|
6369
6538
|
|
6370
|
-
// (
|
6539
|
+
// (104:6) {#each _options as option, i}
|
6371
6540
|
function create_each_block$4(ctx) {
|
6372
6541
|
let option;
|
6373
6542
|
let t;
|
@@ -6375,7 +6544,7 @@ function create_each_block$4(ctx) {
|
|
6375
6544
|
let option_selected_value;
|
6376
6545
|
|
6377
6546
|
function select_block_type(ctx, dirty) {
|
6378
|
-
if (/*option*/ ctx[
|
6547
|
+
if (/*option*/ ctx[19]) return create_if_block$2;
|
6379
6548
|
return create_else_block;
|
6380
6549
|
}
|
6381
6550
|
|
@@ -6398,9 +6567,9 @@ function create_each_block$4(ctx) {
|
|
6398
6567
|
this.h();
|
6399
6568
|
},
|
6400
6569
|
h() {
|
6401
|
-
option.__value = option_value_value = /*option*/ ctx[
|
6570
|
+
option.__value = option_value_value = /*option*/ ctx[19];
|
6402
6571
|
option.value = option.__value;
|
6403
|
-
option.selected = option_selected_value = /*option*/ ctx[
|
6572
|
+
option.selected = option_selected_value = /*option*/ ctx[19] === /*_value*/ ctx[1];
|
6404
6573
|
},
|
6405
6574
|
m(target, anchor) {
|
6406
6575
|
insert_hydration(target, option, anchor);
|
@@ -6420,12 +6589,12 @@ function create_each_block$4(ctx) {
|
|
6420
6589
|
}
|
6421
6590
|
}
|
6422
6591
|
|
6423
|
-
if (dirty & /*_options*/ 16 && option_value_value !== (option_value_value = /*option*/ ctx[
|
6592
|
+
if (dirty & /*_options*/ 16 && option_value_value !== (option_value_value = /*option*/ ctx[19])) {
|
6424
6593
|
option.__value = option_value_value;
|
6425
6594
|
option.value = option.__value;
|
6426
6595
|
}
|
6427
6596
|
|
6428
|
-
if (dirty & /*_options, _value*/ 18 && option_selected_value !== (option_selected_value = /*option*/ ctx[
|
6597
|
+
if (dirty & /*_options, _value*/ 18 && option_selected_value !== (option_selected_value = /*option*/ ctx[19] === /*_value*/ ctx[1])) {
|
6429
6598
|
option.selected = option_selected_value;
|
6430
6599
|
}
|
6431
6600
|
},
|
@@ -6438,11 +6607,8 @@ function create_each_block$4(ctx) {
|
|
6438
6607
|
|
6439
6608
|
function create_fragment$f(ctx) {
|
6440
6609
|
let div1;
|
6441
|
-
let link;
|
6442
|
-
let link_href_value;
|
6443
|
-
let t0;
|
6444
6610
|
let select;
|
6445
|
-
let
|
6611
|
+
let t;
|
6446
6612
|
let div0;
|
6447
6613
|
let mounted;
|
6448
6614
|
let dispose;
|
@@ -6456,23 +6622,19 @@ function create_fragment$f(ctx) {
|
|
6456
6622
|
return {
|
6457
6623
|
c() {
|
6458
6624
|
div1 = element("div");
|
6459
|
-
link = element("link");
|
6460
|
-
t0 = space();
|
6461
6625
|
select = element("select");
|
6462
6626
|
|
6463
6627
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6464
6628
|
each_blocks[i].c();
|
6465
6629
|
}
|
6466
6630
|
|
6467
|
-
|
6631
|
+
t = space();
|
6468
6632
|
div0 = element("div");
|
6469
6633
|
this.h();
|
6470
6634
|
},
|
6471
6635
|
l(nodes) {
|
6472
6636
|
div1 = claim_element(nodes, "DIV", { class: true, style: true });
|
6473
6637
|
var div1_nodes = children(div1);
|
6474
|
-
link = claim_element(div1_nodes, "LINK", { href: true, rel: true });
|
6475
|
-
t0 = claim_space(div1_nodes);
|
6476
6638
|
select = claim_element(div1_nodes, "SELECT", { class: true, style: true });
|
6477
6639
|
var select_nodes = children(select);
|
6478
6640
|
|
@@ -6481,15 +6643,13 @@ function create_fragment$f(ctx) {
|
|
6481
6643
|
}
|
6482
6644
|
|
6483
6645
|
select_nodes.forEach(detach);
|
6484
|
-
|
6646
|
+
t = claim_space(div1_nodes);
|
6485
6647
|
div0 = claim_element(div1_nodes, "DIV", { class: true });
|
6486
6648
|
children(div0).forEach(detach);
|
6487
6649
|
div1_nodes.forEach(detach);
|
6488
6650
|
this.h();
|
6489
6651
|
},
|
6490
6652
|
h() {
|
6491
|
-
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${[/*placeholder*/ ctx[0], .../*_options*/ ctx[4]].join('')}`);
|
6492
|
-
attr(link, "rel", "stylesheet");
|
6493
6653
|
attr(select, "class", "select-select svelte-1n4ag74");
|
6494
6654
|
attr(select, "style", /*style*/ ctx[3]);
|
6495
6655
|
attr(div0, "class", "select-icon svelte-1n4ag74");
|
@@ -6498,15 +6658,13 @@ function create_fragment$f(ctx) {
|
|
6498
6658
|
},
|
6499
6659
|
m(target, anchor) {
|
6500
6660
|
insert_hydration(target, div1, anchor);
|
6501
|
-
append_hydration(div1, link);
|
6502
|
-
append_hydration(div1, t0);
|
6503
6661
|
append_hydration(div1, select);
|
6504
6662
|
|
6505
6663
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6506
6664
|
each_blocks[i].m(select, null);
|
6507
6665
|
}
|
6508
6666
|
|
6509
|
-
append_hydration(div1,
|
6667
|
+
append_hydration(div1, t);
|
6510
6668
|
append_hydration(div1, div0);
|
6511
6669
|
|
6512
6670
|
if (!mounted) {
|
@@ -6515,10 +6673,6 @@ function create_fragment$f(ctx) {
|
|
6515
6673
|
}
|
6516
6674
|
},
|
6517
6675
|
p(ctx, [dirty]) {
|
6518
|
-
if (dirty & /*placeholder, _options*/ 17 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${[/*placeholder*/ ctx[0], .../*_options*/ ctx[4]].join('')}`)) {
|
6519
|
-
attr(link, "href", link_href_value);
|
6520
|
-
}
|
6521
|
-
|
6522
6676
|
if (dirty & /*_options, _value, placeholder*/ 19) {
|
6523
6677
|
each_value = /*_options*/ ctx[4];
|
6524
6678
|
let i;
|
@@ -6573,6 +6727,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
6573
6727
|
let { required = false } = $$props;
|
6574
6728
|
let { _style = 'cursor: pointer; background-color: #fff; border: solid 2px #ccc; border-radius: 6px; padding: 0 0 0 10px;' } = $$props;
|
6575
6729
|
let { _focusStyle = 'border-width: 2px; border-color: #2aab9f; border-style: solid' } = $$props;
|
6730
|
+
let { font = SYSTEM_FONT } = $$props;
|
6576
6731
|
let { _textStyle = 'font-size: 12px; line-height:1.5;' } = $$props;
|
6577
6732
|
let { _placeholderStyle = 'color: #ccc;' } = $$props;
|
6578
6733
|
let { iconColor = 'rgba(0, 16, 14, 0.8)' } = $$props;
|
@@ -6589,7 +6744,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
6589
6744
|
}
|
6590
6745
|
});
|
6591
6746
|
|
6592
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6747
|
+
component_subscribe($$self, value, value => $$invalidate(17, $value = value));
|
6593
6748
|
|
6594
6749
|
function handleChange(event) {
|
6595
6750
|
const updated = event.target.value ? [event.target.value] : [];
|
@@ -6603,22 +6758,27 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
6603
6758
|
if ('required' in $$props) $$invalidate(9, required = $$props.required);
|
6604
6759
|
if ('_style' in $$props) $$invalidate(10, _style = $$props._style);
|
6605
6760
|
if ('_focusStyle' in $$props) $$invalidate(11, _focusStyle = $$props._focusStyle);
|
6606
|
-
if ('
|
6607
|
-
if ('
|
6608
|
-
if ('
|
6609
|
-
if ('
|
6761
|
+
if ('font' in $$props) $$invalidate(12, font = $$props.font);
|
6762
|
+
if ('_textStyle' in $$props) $$invalidate(13, _textStyle = $$props._textStyle);
|
6763
|
+
if ('_placeholderStyle' in $$props) $$invalidate(14, _placeholderStyle = $$props._placeholderStyle);
|
6764
|
+
if ('iconColor' in $$props) $$invalidate(15, iconColor = $$props.iconColor);
|
6765
|
+
if ('iconSize' in $$props) $$invalidate(16, iconSize = $$props.iconSize);
|
6610
6766
|
};
|
6611
6767
|
|
6612
6768
|
$$self.$$.update = () => {
|
6769
|
+
if ($$self.$$.dirty & /*font*/ 4096) {
|
6770
|
+
addFont(font);
|
6771
|
+
}
|
6772
|
+
|
6613
6773
|
if ($$self.$$.dirty & /*options*/ 256) {
|
6614
6774
|
$$invalidate(4, _options = ['', ...options.split(',')]);
|
6615
6775
|
}
|
6616
6776
|
|
6617
|
-
if ($$self.$$.dirty & /*$value*/
|
6777
|
+
if ($$self.$$.dirty & /*$value*/ 131072) {
|
6618
6778
|
$$invalidate(1, _value = $value[0]);
|
6619
6779
|
}
|
6620
6780
|
|
6621
|
-
if ($$self.$$.dirty & /*_style, _textStyle, _value, _placeholderStyle*/
|
6781
|
+
if ($$self.$$.dirty & /*_style, _textStyle, _value, _placeholderStyle*/ 25602) {
|
6622
6782
|
$$invalidate(3, style = [
|
6623
6783
|
..._style.split(';'),
|
6624
6784
|
..._textStyle.split(';'),
|
@@ -6626,7 +6786,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
6626
6786
|
].join(';'));
|
6627
6787
|
}
|
6628
6788
|
|
6629
|
-
if ($$self.$$.dirty & /*_focusStyle, _placeholderStyle, iconColor, iconSize*/
|
6789
|
+
if ($$self.$$.dirty & /*_focusStyle, _placeholderStyle, iconColor, iconSize*/ 116736) {
|
6630
6790
|
$$invalidate(2, styleVariables = (() => {
|
6631
6791
|
const variables = {};
|
6632
6792
|
const focusStyleObj = parseStyle(_focusStyle);
|
@@ -6655,6 +6815,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
6655
6815
|
required,
|
6656
6816
|
_style,
|
6657
6817
|
_focusStyle,
|
6818
|
+
font,
|
6658
6819
|
_textStyle,
|
6659
6820
|
_placeholderStyle,
|
6660
6821
|
iconColor,
|
@@ -6680,10 +6841,11 @@ class FormSelect extends SvelteComponent {
|
|
6680
6841
|
required: 9,
|
6681
6842
|
_style: 10,
|
6682
6843
|
_focusStyle: 11,
|
6683
|
-
|
6684
|
-
|
6685
|
-
|
6686
|
-
|
6844
|
+
font: 12,
|
6845
|
+
_textStyle: 13,
|
6846
|
+
_placeholderStyle: 14,
|
6847
|
+
iconColor: 15,
|
6848
|
+
iconSize: 16
|
6687
6849
|
},
|
6688
6850
|
add_css$e
|
6689
6851
|
);
|
@@ -6698,12 +6860,12 @@ function add_css$d(target) {
|
|
6698
6860
|
|
6699
6861
|
function get_each_context$3(ctx, list, i) {
|
6700
6862
|
const child_ctx = ctx.slice();
|
6701
|
-
child_ctx[
|
6702
|
-
child_ctx[
|
6863
|
+
child_ctx[17] = list[i];
|
6864
|
+
child_ctx[19] = i;
|
6703
6865
|
return child_ctx;
|
6704
6866
|
}
|
6705
6867
|
|
6706
|
-
// (
|
6868
|
+
// (105:2) {#each _options as option, i}
|
6707
6869
|
function create_each_block$3(ctx) {
|
6708
6870
|
let label;
|
6709
6871
|
let input;
|
@@ -6714,7 +6876,7 @@ function create_each_block$3(ctx) {
|
|
6714
6876
|
let span1_class_value;
|
6715
6877
|
let t1;
|
6716
6878
|
let span2;
|
6717
|
-
let t2_value = /*option*/ ctx[
|
6879
|
+
let t2_value = /*option*/ ctx[17] + "";
|
6718
6880
|
let t2;
|
6719
6881
|
let t3;
|
6720
6882
|
let mounted;
|
@@ -6757,10 +6919,10 @@ function create_each_block$3(ctx) {
|
|
6757
6919
|
attr(input, "class", "check-box-input svelte-o1ztcf");
|
6758
6920
|
attr(input, "type", "checkbox");
|
6759
6921
|
attr(input, "name", /*name*/ ctx[0]);
|
6760
|
-
input.checked = input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[
|
6922
|
+
input.checked = input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[19]];
|
6761
6923
|
attr(span0, "class", "check-box-icon svelte-o1ztcf");
|
6762
6924
|
|
6763
|
-
attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[
|
6925
|
+
attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[19]]
|
6764
6926
|
? ' _checked'
|
6765
6927
|
: ''}`) + " svelte-o1ztcf"));
|
6766
6928
|
|
@@ -6781,7 +6943,7 @@ function create_each_block$3(ctx) {
|
|
6781
6943
|
append_hydration(label, t3);
|
6782
6944
|
|
6783
6945
|
if (!mounted) {
|
6784
|
-
dispose = listen(input, "change", /*handleChange*/ ctx[7](/*i*/ ctx[
|
6946
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[7](/*i*/ ctx[19]));
|
6785
6947
|
mounted = true;
|
6786
6948
|
}
|
6787
6949
|
},
|
@@ -6792,11 +6954,11 @@ function create_each_block$3(ctx) {
|
|
6792
6954
|
attr(input, "name", /*name*/ ctx[0]);
|
6793
6955
|
}
|
6794
6956
|
|
6795
|
-
if (dirty & /*isCheckedArray*/ 16 && input_checked_value !== (input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[
|
6957
|
+
if (dirty & /*isCheckedArray*/ 16 && input_checked_value !== (input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[19]])) {
|
6796
6958
|
input.checked = input_checked_value;
|
6797
6959
|
}
|
6798
6960
|
|
6799
|
-
if (dirty & /*isCheckedArray*/ 16 && span1_class_value !== (span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[
|
6961
|
+
if (dirty & /*isCheckedArray*/ 16 && span1_class_value !== (span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[19]]
|
6800
6962
|
? ' _checked'
|
6801
6963
|
: ''}`) + " svelte-o1ztcf"))) {
|
6802
6964
|
attr(span1, "class", span1_class_value);
|
@@ -6806,7 +6968,7 @@ function create_each_block$3(ctx) {
|
|
6806
6968
|
attr(span1, "style", /*styleVariables*/ ctx[5]);
|
6807
6969
|
}
|
6808
6970
|
|
6809
|
-
if (dirty & /*_options*/ 8 && t2_value !== (t2_value = /*option*/ ctx[
|
6971
|
+
if (dirty & /*_options*/ 8 && t2_value !== (t2_value = /*option*/ ctx[17] + "")) set_data(t2, t2_value);
|
6810
6972
|
|
6811
6973
|
if (dirty & /*_textStyle*/ 4) {
|
6812
6974
|
attr(span2, "style", /*_textStyle*/ ctx[2]);
|
@@ -6822,9 +6984,6 @@ function create_each_block$3(ctx) {
|
|
6822
6984
|
|
6823
6985
|
function create_fragment$e(ctx) {
|
6824
6986
|
let div;
|
6825
|
-
let link;
|
6826
|
-
let link_href_value;
|
6827
|
-
let t;
|
6828
6987
|
let each_value = /*_options*/ ctx[3];
|
6829
6988
|
let each_blocks = [];
|
6830
6989
|
|
@@ -6835,8 +6994,6 @@ function create_fragment$e(ctx) {
|
|
6835
6994
|
return {
|
6836
6995
|
c() {
|
6837
6996
|
div = element("div");
|
6838
|
-
link = element("link");
|
6839
|
-
t = space();
|
6840
6997
|
|
6841
6998
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6842
6999
|
each_blocks[i].c();
|
@@ -6847,8 +7004,6 @@ function create_fragment$e(ctx) {
|
|
6847
7004
|
l(nodes) {
|
6848
7005
|
div = claim_element(nodes, "DIV", { class: true, style: true });
|
6849
7006
|
var div_nodes = children(div);
|
6850
|
-
link = claim_element(div_nodes, "LINK", { href: true, rel: true });
|
6851
|
-
t = claim_space(div_nodes);
|
6852
7007
|
|
6853
7008
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6854
7009
|
each_blocks[i].l(div_nodes);
|
@@ -6858,25 +7013,17 @@ function create_fragment$e(ctx) {
|
|
6858
7013
|
this.h();
|
6859
7014
|
},
|
6860
7015
|
h() {
|
6861
|
-
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*_options*/ ctx[3].join('')}`);
|
6862
|
-
attr(link, "rel", "stylesheet");
|
6863
7016
|
attr(div, "class", "check-boxes svelte-o1ztcf");
|
6864
7017
|
attr(div, "style", /*_layoutStyle*/ ctx[1]);
|
6865
7018
|
},
|
6866
7019
|
m(target, anchor) {
|
6867
7020
|
insert_hydration(target, div, anchor);
|
6868
|
-
append_hydration(div, link);
|
6869
|
-
append_hydration(div, t);
|
6870
7021
|
|
6871
7022
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6872
7023
|
each_blocks[i].m(div, null);
|
6873
7024
|
}
|
6874
7025
|
},
|
6875
7026
|
p(ctx, [dirty]) {
|
6876
|
-
if (dirty & /*_options*/ 8 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*_options*/ ctx[3].join('')}`)) {
|
6877
|
-
attr(link, "href", link_href_value);
|
6878
|
-
}
|
6879
|
-
|
6880
7027
|
if (dirty & /*_textStyle, _options, isCheckedArray, styleVariables, name, handleChange*/ 189) {
|
6881
7028
|
each_value = /*_options*/ ctx[3];
|
6882
7029
|
let i;
|
@@ -6922,7 +7069,9 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
6922
7069
|
let { options = 'チェックボックス1,チェックボックス2,チェックボックス3' } = $$props;
|
6923
7070
|
let { required = false } = $$props;
|
6924
7071
|
let { _layoutStyle = 'flex-direction: column; gap: 0px;' } = $$props;
|
6925
|
-
let {
|
7072
|
+
let { font = SYSTEM_FONT } = $$props;
|
7073
|
+
const fontCss = font ? 'font-family:' + font : '';
|
7074
|
+
let { _textStyle = `color:#333; font-size:12px; line-height:1.5; ${fontCss}` } = $$props;
|
6926
7075
|
let { buttonSize = '16px' } = $$props;
|
6927
7076
|
let { buttonColor = { main: '#f0f1f1', sub: '#f0f1f1' } } = $$props;
|
6928
7077
|
let { buttonColorActive = { main: '#2aab9f', sub: '#fff' } } = $$props;
|
@@ -6938,7 +7087,7 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
6938
7087
|
}
|
6939
7088
|
});
|
6940
7089
|
|
6941
|
-
component_subscribe($$self, value, value => $$invalidate(
|
7090
|
+
component_subscribe($$self, value, value => $$invalidate(14, $value = value));
|
6942
7091
|
|
6943
7092
|
const handleChange = index => event => {
|
6944
7093
|
if (isCheckedArray[index] !== event.target.checked) {
|
@@ -6954,18 +7103,23 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
6954
7103
|
if ('options' in $$props) $$invalidate(8, options = $$props.options);
|
6955
7104
|
if ('required' in $$props) $$invalidate(9, required = $$props.required);
|
6956
7105
|
if ('_layoutStyle' in $$props) $$invalidate(1, _layoutStyle = $$props._layoutStyle);
|
7106
|
+
if ('font' in $$props) $$invalidate(10, font = $$props.font);
|
6957
7107
|
if ('_textStyle' in $$props) $$invalidate(2, _textStyle = $$props._textStyle);
|
6958
|
-
if ('buttonSize' in $$props) $$invalidate(
|
6959
|
-
if ('buttonColor' in $$props) $$invalidate(
|
6960
|
-
if ('buttonColorActive' in $$props) $$invalidate(
|
7108
|
+
if ('buttonSize' in $$props) $$invalidate(11, buttonSize = $$props.buttonSize);
|
7109
|
+
if ('buttonColor' in $$props) $$invalidate(12, buttonColor = $$props.buttonColor);
|
7110
|
+
if ('buttonColorActive' in $$props) $$invalidate(13, buttonColorActive = $$props.buttonColorActive);
|
6961
7111
|
};
|
6962
7112
|
|
6963
7113
|
$$self.$$.update = () => {
|
7114
|
+
if ($$self.$$.dirty & /*font*/ 1024) {
|
7115
|
+
addFont(font);
|
7116
|
+
}
|
7117
|
+
|
6964
7118
|
if ($$self.$$.dirty & /*options*/ 256) {
|
6965
7119
|
$$invalidate(3, _options = options.split(','));
|
6966
7120
|
}
|
6967
7121
|
|
6968
|
-
if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/
|
7122
|
+
if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/ 14336) {
|
6969
7123
|
$$invalidate(5, styleVariables = (() => {
|
6970
7124
|
return stringifyStyleObj({
|
6971
7125
|
'--color-main': buttonColor.main,
|
@@ -6977,7 +7131,7 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
6977
7131
|
})());
|
6978
7132
|
}
|
6979
7133
|
|
6980
|
-
if ($$self.$$.dirty & /*$value, _options*/
|
7134
|
+
if ($$self.$$.dirty & /*$value, _options*/ 16392) {
|
6981
7135
|
$$invalidate(4, isCheckedArray = (() => {
|
6982
7136
|
const checkedSet = new Set($value);
|
6983
7137
|
return _options.map(option => checkedSet.has(option));
|
@@ -6996,6 +7150,7 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
6996
7150
|
handleChange,
|
6997
7151
|
options,
|
6998
7152
|
required,
|
7153
|
+
font,
|
6999
7154
|
buttonSize,
|
7000
7155
|
buttonColor,
|
7001
7156
|
buttonColorActive,
|
@@ -7018,10 +7173,11 @@ class FormCheckBoxes extends SvelteComponent {
|
|
7018
7173
|
options: 8,
|
7019
7174
|
required: 9,
|
7020
7175
|
_layoutStyle: 1,
|
7176
|
+
font: 10,
|
7021
7177
|
_textStyle: 2,
|
7022
|
-
buttonSize:
|
7023
|
-
buttonColor:
|
7024
|
-
buttonColorActive:
|
7178
|
+
buttonSize: 11,
|
7179
|
+
buttonColor: 12,
|
7180
|
+
buttonColorActive: 13
|
7025
7181
|
},
|
7026
7182
|
add_css$d
|
7027
7183
|
);
|
@@ -7036,14 +7192,14 @@ function add_css$c(target) {
|
|
7036
7192
|
|
7037
7193
|
function get_each_context$2(ctx, list, i) {
|
7038
7194
|
const child_ctx = ctx.slice();
|
7039
|
-
child_ctx[
|
7195
|
+
child_ctx[12] = list[i];
|
7040
7196
|
return child_ctx;
|
7041
7197
|
}
|
7042
7198
|
|
7043
|
-
// (
|
7199
|
+
// (60:2) {#each [...Array(count).keys()].map(i => i + 1) as i}
|
7044
7200
|
function create_each_block$2(ctx) {
|
7045
7201
|
let div;
|
7046
|
-
let t0_value = /*i*/ ctx[
|
7202
|
+
let t0_value = /*i*/ ctx[12] + "";
|
7047
7203
|
let t0;
|
7048
7204
|
let t1;
|
7049
7205
|
let div_style_value;
|
@@ -7067,7 +7223,7 @@ function create_each_block$2(ctx) {
|
|
7067
7223
|
},
|
7068
7224
|
h() {
|
7069
7225
|
attr(div, "class", "rating-button svelte-176k37j");
|
7070
|
-
attr(div, "style", div_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[
|
7226
|
+
attr(div, "style", div_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[12] === /*_value*/ ctx[1]));
|
7071
7227
|
},
|
7072
7228
|
m(target, anchor) {
|
7073
7229
|
insert_hydration(target, div, anchor);
|
@@ -7076,7 +7232,7 @@ function create_each_block$2(ctx) {
|
|
7076
7232
|
|
7077
7233
|
if (!mounted) {
|
7078
7234
|
dispose = listen(div, "click", function () {
|
7079
|
-
if (is_function(/*handleClick*/ ctx[3](/*i*/ ctx[
|
7235
|
+
if (is_function(/*handleClick*/ ctx[3](/*i*/ ctx[12]))) /*handleClick*/ ctx[3](/*i*/ ctx[12]).apply(this, arguments);
|
7080
7236
|
});
|
7081
7237
|
|
7082
7238
|
mounted = true;
|
@@ -7084,9 +7240,9 @@ function create_each_block$2(ctx) {
|
|
7084
7240
|
},
|
7085
7241
|
p(new_ctx, dirty) {
|
7086
7242
|
ctx = new_ctx;
|
7087
|
-
if (dirty & /*count*/ 1 && t0_value !== (t0_value = /*i*/ ctx[
|
7243
|
+
if (dirty & /*count*/ 1 && t0_value !== (t0_value = /*i*/ ctx[12] + "")) set_data(t0, t0_value);
|
7088
7244
|
|
7089
|
-
if (dirty & /*count, _value*/ 3 && div_style_value !== (div_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[
|
7245
|
+
if (dirty & /*count, _value*/ 3 && div_style_value !== (div_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[12] === /*_value*/ ctx[1]))) {
|
7090
7246
|
attr(div, "style", div_style_value);
|
7091
7247
|
}
|
7092
7248
|
},
|
@@ -7100,8 +7256,6 @@ function create_each_block$2(ctx) {
|
|
7100
7256
|
|
7101
7257
|
function create_fragment$d(ctx) {
|
7102
7258
|
let div;
|
7103
|
-
let link;
|
7104
|
-
let t;
|
7105
7259
|
let each_value = [...Array(/*count*/ ctx[0]).keys()].map(func$1);
|
7106
7260
|
let each_blocks = [];
|
7107
7261
|
|
@@ -7112,8 +7266,6 @@ function create_fragment$d(ctx) {
|
|
7112
7266
|
return {
|
7113
7267
|
c() {
|
7114
7268
|
div = element("div");
|
7115
|
-
link = element("link");
|
7116
|
-
t = space();
|
7117
7269
|
|
7118
7270
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
7119
7271
|
each_blocks[i].c();
|
@@ -7124,8 +7276,6 @@ function create_fragment$d(ctx) {
|
|
7124
7276
|
l(nodes) {
|
7125
7277
|
div = claim_element(nodes, "DIV", { class: true });
|
7126
7278
|
var div_nodes = children(div);
|
7127
|
-
link = claim_element(div_nodes, "LINK", { href: true, rel: true });
|
7128
|
-
t = claim_space(div_nodes);
|
7129
7279
|
|
7130
7280
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
7131
7281
|
each_blocks[i].l(div_nodes);
|
@@ -7135,14 +7285,10 @@ function create_fragment$d(ctx) {
|
|
7135
7285
|
this.h();
|
7136
7286
|
},
|
7137
7287
|
h() {
|
7138
|
-
attr(link, "href", `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=0123456789`);
|
7139
|
-
attr(link, "rel", "stylesheet");
|
7140
7288
|
attr(div, "class", "rating-buttons svelte-176k37j");
|
7141
7289
|
},
|
7142
7290
|
m(target, anchor) {
|
7143
7291
|
insert_hydration(target, div, anchor);
|
7144
|
-
append_hydration(div, link);
|
7145
|
-
append_hydration(div, t);
|
7146
7292
|
|
7147
7293
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
7148
7294
|
each_blocks[i].m(div, null);
|
@@ -7189,6 +7335,7 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
7189
7335
|
let { name = '' } = $$props;
|
7190
7336
|
let { required = false } = $$props;
|
7191
7337
|
let { count = 5 } = $$props;
|
7338
|
+
let { font = SYSTEM_FONT } = $$props;
|
7192
7339
|
let { buttonStyle = 'width: 32px; height: 32px; font-size: 12px; font-weight: bold; border-radius: 17px; color: #333; background-color: rgba(0, 16, 14, 0.06); box-shadow: 0px 0px 16px 0px rgba(0, 16, 14, 0);' } = $$props;
|
7193
7340
|
let { buttonActiveStyle = 'color: #333; background-color: #2aab9f; box-shadow: 0px 8px 16px 0px rgba(0, 16, 14, 0.3);' } = $$props;
|
7194
7341
|
const { path: statePath } = getStateItemContext();
|
@@ -7203,7 +7350,7 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
7203
7350
|
}
|
7204
7351
|
});
|
7205
7352
|
|
7206
|
-
component_subscribe($$self, value, value => $$invalidate(
|
7353
|
+
component_subscribe($$self, value, value => $$invalidate(10, $value = value));
|
7207
7354
|
|
7208
7355
|
const handleClick = index => event => {
|
7209
7356
|
value.set([String(index)]);
|
@@ -7219,12 +7366,17 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
7219
7366
|
if ('name' in $$props) $$invalidate(5, name = $$props.name);
|
7220
7367
|
if ('required' in $$props) $$invalidate(6, required = $$props.required);
|
7221
7368
|
if ('count' in $$props) $$invalidate(0, count = $$props.count);
|
7222
|
-
if ('
|
7223
|
-
if ('
|
7369
|
+
if ('font' in $$props) $$invalidate(7, font = $$props.font);
|
7370
|
+
if ('buttonStyle' in $$props) $$invalidate(8, buttonStyle = $$props.buttonStyle);
|
7371
|
+
if ('buttonActiveStyle' in $$props) $$invalidate(9, buttonActiveStyle = $$props.buttonActiveStyle);
|
7224
7372
|
};
|
7225
7373
|
|
7226
7374
|
$$self.$$.update = () => {
|
7227
|
-
if ($$self.$$.dirty &
|
7375
|
+
if ($$self.$$.dirty & /*font*/ 128) {
|
7376
|
+
addFont(font);
|
7377
|
+
}
|
7378
|
+
|
7379
|
+
if ($$self.$$.dirty & /*$value*/ 1024) {
|
7228
7380
|
$$invalidate(1, _value = Number($value[0] ?? -1));
|
7229
7381
|
}
|
7230
7382
|
};
|
@@ -7237,6 +7389,7 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
7237
7389
|
getTextButtonStyle,
|
7238
7390
|
name,
|
7239
7391
|
required,
|
7392
|
+
font,
|
7240
7393
|
buttonStyle,
|
7241
7394
|
buttonActiveStyle,
|
7242
7395
|
$value
|
@@ -7257,8 +7410,9 @@ class FormRatingButtonsNumber extends SvelteComponent {
|
|
7257
7410
|
name: 5,
|
7258
7411
|
required: 6,
|
7259
7412
|
count: 0,
|
7260
|
-
|
7261
|
-
|
7413
|
+
font: 7,
|
7414
|
+
buttonStyle: 8,
|
7415
|
+
buttonActiveStyle: 9
|
7262
7416
|
},
|
7263
7417
|
add_css$c
|
7264
7418
|
);
|
@@ -9740,9 +9894,6 @@ function add_css$2(target) {
|
|
9740
9894
|
|
9741
9895
|
function create_fragment$2(ctx) {
|
9742
9896
|
let div1;
|
9743
|
-
let link;
|
9744
|
-
let link_href_value;
|
9745
|
-
let t;
|
9746
9897
|
let div0;
|
9747
9898
|
let rendertext;
|
9748
9899
|
let div1_class_value;
|
@@ -9752,8 +9903,6 @@ function create_fragment$2(ctx) {
|
|
9752
9903
|
return {
|
9753
9904
|
c() {
|
9754
9905
|
div1 = element("div");
|
9755
|
-
link = element("link");
|
9756
|
-
t = space();
|
9757
9906
|
div0 = element("div");
|
9758
9907
|
create_component(rendertext.$$.fragment);
|
9759
9908
|
this.h();
|
@@ -9761,8 +9910,6 @@ function create_fragment$2(ctx) {
|
|
9761
9910
|
l(nodes) {
|
9762
9911
|
div1 = claim_element(nodes, "DIV", { class: true, style: true });
|
9763
9912
|
var div1_nodes = children(div1);
|
9764
|
-
link = claim_element(div1_nodes, "LINK", { href: true, rel: true });
|
9765
|
-
t = claim_space(div1_nodes);
|
9766
9913
|
div0 = claim_element(div1_nodes, "DIV", { class: true });
|
9767
9914
|
var div0_nodes = children(div0);
|
9768
9915
|
claim_component(rendertext.$$.fragment, div0_nodes);
|
@@ -9771,25 +9918,17 @@ function create_fragment$2(ctx) {
|
|
9771
9918
|
this.h();
|
9772
9919
|
},
|
9773
9920
|
h() {
|
9774
|
-
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`);
|
9775
|
-
attr(link, "rel", "stylesheet");
|
9776
9921
|
attr(div0, "class", "text-block-inner svelte-11rpuv5");
|
9777
9922
|
attr(div1, "class", div1_class_value = "" + (null_to_empty(`text-block text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-11rpuv5"));
|
9778
9923
|
attr(div1, "style", /*style*/ ctx[2]);
|
9779
9924
|
},
|
9780
9925
|
m(target, anchor) {
|
9781
9926
|
insert_hydration(target, div1, anchor);
|
9782
|
-
append_hydration(div1, link);
|
9783
|
-
append_hydration(div1, t);
|
9784
9927
|
append_hydration(div1, div0);
|
9785
9928
|
mount_component(rendertext, div0, null);
|
9786
9929
|
current = true;
|
9787
9930
|
},
|
9788
9931
|
p(ctx, [dirty]) {
|
9789
|
-
if (!current || dirty & /*text*/ 1 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`)) {
|
9790
|
-
attr(link, "href", link_href_value);
|
9791
|
-
}
|
9792
|
-
|
9793
9932
|
const rendertext_changes = {};
|
9794
9933
|
if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
|
9795
9934
|
rendertext.$set(rendertext_changes);
|
@@ -9821,24 +9960,30 @@ function create_fragment$2(ctx) {
|
|
9821
9960
|
function instance$2($$self, $$props, $$invalidate) {
|
9822
9961
|
let style;
|
9823
9962
|
let { text = 'サンプルSample' } = $$props;
|
9963
|
+
let { font = SYSTEM_FONT } = $$props;
|
9824
9964
|
let { _textStyle = 'font-size:12px; line-height:1.5;' } = $$props;
|
9825
9965
|
let { textDirection = 'horizontal' } = $$props;
|
9826
9966
|
let { _style = '' } = $$props;
|
9827
9967
|
|
9828
9968
|
$$self.$$set = $$props => {
|
9829
9969
|
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
9830
|
-
if ('
|
9970
|
+
if ('font' in $$props) $$invalidate(3, font = $$props.font);
|
9971
|
+
if ('_textStyle' in $$props) $$invalidate(4, _textStyle = $$props._textStyle);
|
9831
9972
|
if ('textDirection' in $$props) $$invalidate(1, textDirection = $$props.textDirection);
|
9832
|
-
if ('_style' in $$props) $$invalidate(
|
9973
|
+
if ('_style' in $$props) $$invalidate(5, _style = $$props._style);
|
9833
9974
|
};
|
9834
9975
|
|
9835
9976
|
$$self.$$.update = () => {
|
9836
|
-
if ($$self.$$.dirty & /*
|
9977
|
+
if ($$self.$$.dirty & /*font*/ 8) {
|
9978
|
+
addFont(font);
|
9979
|
+
}
|
9980
|
+
|
9981
|
+
if ($$self.$$.dirty & /*_textStyle, _style*/ 48) {
|
9837
9982
|
$$invalidate(2, style = [..._textStyle.split(';'), ..._style.split(';')].join(';'));
|
9838
9983
|
}
|
9839
9984
|
};
|
9840
9985
|
|
9841
|
-
return [text, textDirection, style, _textStyle, _style];
|
9986
|
+
return [text, textDirection, style, font, _textStyle, _style];
|
9842
9987
|
}
|
9843
9988
|
|
9844
9989
|
class TextBlock extends SvelteComponent {
|
@@ -9853,9 +9998,10 @@ class TextBlock extends SvelteComponent {
|
|
9853
9998
|
safe_not_equal,
|
9854
9999
|
{
|
9855
10000
|
text: 0,
|
9856
|
-
|
10001
|
+
font: 3,
|
10002
|
+
_textStyle: 4,
|
9857
10003
|
textDirection: 1,
|
9858
|
-
_style:
|
10004
|
+
_style: 5
|
9859
10005
|
},
|
9860
10006
|
add_css$2
|
9861
10007
|
);
|
@@ -9870,9 +10016,6 @@ function add_css$1(target) {
|
|
9870
10016
|
|
9871
10017
|
function create_fragment$1(ctx) {
|
9872
10018
|
let div;
|
9873
|
-
let link;
|
9874
|
-
let link_href_value;
|
9875
|
-
let t;
|
9876
10019
|
let button;
|
9877
10020
|
let rendertext;
|
9878
10021
|
let current;
|
@@ -9883,8 +10026,6 @@ function create_fragment$1(ctx) {
|
|
9883
10026
|
return {
|
9884
10027
|
c() {
|
9885
10028
|
div = element("div");
|
9886
|
-
link = element("link");
|
9887
|
-
t = space();
|
9888
10029
|
button = element("button");
|
9889
10030
|
create_component(rendertext.$$.fragment);
|
9890
10031
|
this.h();
|
@@ -9892,8 +10033,6 @@ function create_fragment$1(ctx) {
|
|
9892
10033
|
l(nodes) {
|
9893
10034
|
div = claim_element(nodes, "DIV", { class: true, style: true });
|
9894
10035
|
var div_nodes = children(div);
|
9895
|
-
link = claim_element(div_nodes, "LINK", { href: true, rel: true });
|
9896
|
-
t = claim_space(div_nodes);
|
9897
10036
|
button = claim_element(div_nodes, "BUTTON", { class: true, style: true });
|
9898
10037
|
var button_nodes = children(button);
|
9899
10038
|
claim_component(rendertext.$$.fragment, button_nodes);
|
@@ -9902,8 +10041,6 @@ function create_fragment$1(ctx) {
|
|
9902
10041
|
this.h();
|
9903
10042
|
},
|
9904
10043
|
h() {
|
9905
|
-
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`);
|
9906
|
-
attr(link, "rel", "stylesheet");
|
9907
10044
|
attr(button, "class", "text-button svelte-1t5i3za");
|
9908
10045
|
attr(button, "style", /*_buttonStyle*/ ctx[1]);
|
9909
10046
|
attr(div, "class", "text-button-block svelte-1t5i3za");
|
@@ -9911,8 +10048,6 @@ function create_fragment$1(ctx) {
|
|
9911
10048
|
},
|
9912
10049
|
m(target, anchor) {
|
9913
10050
|
insert_hydration(target, div, anchor);
|
9914
|
-
append_hydration(div, link);
|
9915
|
-
append_hydration(div, t);
|
9916
10051
|
append_hydration(div, button);
|
9917
10052
|
mount_component(rendertext, button, null);
|
9918
10053
|
current = true;
|
@@ -9923,10 +10058,6 @@ function create_fragment$1(ctx) {
|
|
9923
10058
|
}
|
9924
10059
|
},
|
9925
10060
|
p(ctx, [dirty]) {
|
9926
|
-
if (!current || dirty & /*text*/ 1 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`)) {
|
9927
|
-
attr(link, "href", link_href_value);
|
9928
|
-
}
|
9929
|
-
|
9930
10061
|
const rendertext_changes = {};
|
9931
10062
|
if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
|
9932
10063
|
rendertext.$set(rendertext_changes);
|
@@ -9970,6 +10101,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
9970
10101
|
};
|
9971
10102
|
|
9972
10103
|
let { eventName = '' } = $$props;
|
10104
|
+
let { font = SYSTEM_FONT } = $$props;
|
9973
10105
|
let { _buttonStyle = 'color:#ffffff; font-size:14px; font-weight:bold; justify-content:center; align-items:center; padding:1px 6px 1px 6px; line-height:1.5;' } = $$props;
|
9974
10106
|
let { _style = 'background-color: #000000; border-radius:4px;' } = $$props;
|
9975
10107
|
|
@@ -9977,11 +10109,18 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
9977
10109
|
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
9978
10110
|
if ('onClick' in $$props) $$invalidate(4, onClick = $$props.onClick);
|
9979
10111
|
if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
|
10112
|
+
if ('font' in $$props) $$invalidate(6, font = $$props.font);
|
9980
10113
|
if ('_buttonStyle' in $$props) $$invalidate(1, _buttonStyle = $$props._buttonStyle);
|
9981
10114
|
if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
|
9982
10115
|
};
|
9983
10116
|
|
9984
|
-
|
10117
|
+
$$self.$$.update = () => {
|
10118
|
+
if ($$self.$$.dirty & /*font*/ 64) {
|
10119
|
+
addFont(font);
|
10120
|
+
}
|
10121
|
+
};
|
10122
|
+
|
10123
|
+
return [text, _buttonStyle, _style, click, onClick, eventName, font];
|
9985
10124
|
}
|
9986
10125
|
|
9987
10126
|
class TextButtonBlock extends SvelteComponent {
|
@@ -9998,6 +10137,7 @@ class TextButtonBlock extends SvelteComponent {
|
|
9998
10137
|
text: 0,
|
9999
10138
|
onClick: 4,
|
10000
10139
|
eventName: 5,
|
10140
|
+
font: 6,
|
10001
10141
|
_buttonStyle: 1,
|
10002
10142
|
_style: 2
|
10003
10143
|
},
|
@@ -10149,4 +10289,4 @@ class ImageBlock extends SvelteComponent {
|
|
10149
10289
|
}
|
10150
10290
|
}
|
10151
10291
|
|
10152
|
-
export { ACTION_HOOK_LABEL, Alignments, AnimationStyles, BackgroundSizes, Box, ClipPaths, CodeElement, Countdown, Cursors, DefaultEdgePosition, DefaultFormButtonColor, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexDirections, FlexItem, Fonts, FormCheckBoxes, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYOUT_COMPONENT_NAMES, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestory, onDestroy, onMount, onScroll, onShow, onTime, resetEventHandlers, resetVariables, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, variables, widget };
|
10292
|
+
export { ACTION_HOOK_LABEL, Alignments, AnimationStyles, BackgroundSizes, Box, ClipPaths, CodeElement, Countdown, Cursors, DefaultEdgePosition, DefaultFormButtonColor, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexDirections, FlexItem, Fonts, FormCheckBoxes, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYOUT_COMPONENT_NAMES, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestory, onDestroy, onMount, onScroll, onShow, onTime, resetEventHandlers, resetVariables, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, variables, widget };
|