@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/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, insert, noop, detach, component_subscribe, attr, create_slot, create_component, 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, append, destroy_each, text, set_data, src_url_equal, HtmlTag, construct_svelte_component, subscribe } from 'svelte/internal';
|
4
4
|
import { linear, elasticOut, cubicOut } from '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',
|
@@ -343,10 +346,6 @@ const getMarginStyle = (margin) => {
|
|
343
346
|
return `margin: ${margin?.top ?? 0} ${margin?.right ?? 0} ${margin?.bottom ?? 0} ${margin?.left ?? 0};`;
|
344
347
|
};
|
345
348
|
/** @internal */
|
346
|
-
const parseStyle = (style) => {
|
347
|
-
return Object.fromEntries(style.split(';').map(attr => attr.split(':').map(str => str.trim())));
|
348
|
-
};
|
349
|
-
/** @internal */
|
350
349
|
const stringifyStyleObj = (styleObj) => {
|
351
350
|
return Object.entries(styleObj)
|
352
351
|
.map(([key, value]) => `${key}:${value}`)
|
@@ -462,11 +461,31 @@ function hasSuffix(value, suffix) {
|
|
462
461
|
function randStr(digit = 8) {
|
463
462
|
return Math.random().toString(32).substring(digit);
|
464
463
|
}
|
465
|
-
/**
|
466
|
-
|
467
|
-
|
464
|
+
/**
|
465
|
+
* Goolge Fonts用のURLを生成
|
466
|
+
*
|
467
|
+
* @param fonts - フォント名の配列
|
468
|
+
* @param texts - 使用するテキストの配列
|
469
|
+
*
|
470
|
+
* @remarks
|
471
|
+
* textsを指定した場合フォントサイズが削減される
|
472
|
+
*
|
473
|
+
* @internal
|
474
|
+
*/
|
475
|
+
function makeGoogleFontUrl(fonts, texts) {
|
476
|
+
const params = [];
|
477
|
+
params.push('display=swap');
|
478
|
+
if (texts) {
|
479
|
+
texts.forEach(text => params.push(`text=${text}`));
|
480
|
+
}
|
481
|
+
fonts.forEach(font => params.push(`family=${font.replace(/['"]/g, '').replace(/ /g, '+')}`));
|
482
|
+
return `https://fonts.googleapis.com/css2?${params.join('&')}`;
|
468
483
|
}
|
469
|
-
/**
|
484
|
+
/**
|
485
|
+
* HTML要素を生成
|
486
|
+
*
|
487
|
+
* @internal
|
488
|
+
*/
|
470
489
|
const h = (type, props, ...children) => {
|
471
490
|
const el = document.createElement(type);
|
472
491
|
for (const key of Object.keys(props)) {
|
@@ -483,6 +502,16 @@ const h = (type, props, ...children) => {
|
|
483
502
|
}
|
484
503
|
return el;
|
485
504
|
};
|
505
|
+
/**
|
506
|
+
* 非推奨
|
507
|
+
*
|
508
|
+
* @deprecated 非推奨
|
509
|
+
*
|
510
|
+
* @internal
|
511
|
+
*/
|
512
|
+
function getGoogleFontsParam() {
|
513
|
+
return 'family=' + Fonts.map(font => font.replace(/ /g, '+')).join('&family=');
|
514
|
+
}
|
486
515
|
|
487
516
|
/**
|
488
517
|
* Store to handle action setting
|
@@ -678,6 +707,28 @@ const setMaximumZindex = (zindex) => {
|
|
678
707
|
return;
|
679
708
|
maximumZindex.set(zindex);
|
680
709
|
};
|
710
|
+
/**
|
711
|
+
* Store to handle font-family of CSS
|
712
|
+
*
|
713
|
+
* @internal
|
714
|
+
*/
|
715
|
+
const fonts = writable([]);
|
716
|
+
/**
|
717
|
+
* Add font-family
|
718
|
+
*
|
719
|
+
* @internal
|
720
|
+
*/
|
721
|
+
const addFont = (font) => {
|
722
|
+
if (font === SYSTEM_FONT) {
|
723
|
+
return;
|
724
|
+
}
|
725
|
+
fonts.update(current => {
|
726
|
+
if (!current.includes(font)) {
|
727
|
+
current.push(font);
|
728
|
+
}
|
729
|
+
return current;
|
730
|
+
});
|
731
|
+
};
|
681
732
|
/**
|
682
733
|
* Store to handle internal event handlers
|
683
734
|
*
|
@@ -1677,9 +1728,13 @@ async function loadGlobalScript(src) {
|
|
1677
1728
|
*/
|
1678
1729
|
async function applyGlobalCss(css) {
|
1679
1730
|
return new Promise((resolve, reject) => {
|
1731
|
+
const action = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
|
1732
|
+
if (!action) {
|
1733
|
+
return;
|
1734
|
+
}
|
1680
1735
|
const style = document.createElement('style');
|
1681
1736
|
style.textContent = css;
|
1682
|
-
|
1737
|
+
action.appendChild(style);
|
1683
1738
|
style.addEventListener('load', () => resolve(style));
|
1684
1739
|
style.addEventListener('error', () => reject(style));
|
1685
1740
|
});
|
@@ -1693,10 +1748,15 @@ async function applyGlobalCss(css) {
|
|
1693
1748
|
*/
|
1694
1749
|
async function loadGlobalStyle(href) {
|
1695
1750
|
return new Promise((resolve, reject) => {
|
1751
|
+
const action = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
|
1752
|
+
if (!action) {
|
1753
|
+
return;
|
1754
|
+
}
|
1696
1755
|
const link = document.createElement('link');
|
1697
1756
|
link.rel = 'stylesheet';
|
1698
1757
|
link.href = href;
|
1699
|
-
|
1758
|
+
link.type = 'text/css';
|
1759
|
+
action.appendChild(link);
|
1700
1760
|
link.addEventListener('load', () => resolve(link));
|
1701
1761
|
link.addEventListener('error', () => reject(link));
|
1702
1762
|
});
|
@@ -2186,18 +2246,121 @@ const LAYOUT_COMPONENT_NAMES = [
|
|
2186
2246
|
'StateItem',
|
2187
2247
|
];
|
2188
2248
|
|
2249
|
+
/* src/components/Header.svelte generated by Svelte v3.53.1 */
|
2250
|
+
|
2251
|
+
function create_if_block$9(ctx) {
|
2252
|
+
let link;
|
2253
|
+
|
2254
|
+
return {
|
2255
|
+
c() {
|
2256
|
+
link = element("link");
|
2257
|
+
attr(link, "href", /*googleFontUrl*/ ctx[0]);
|
2258
|
+
attr(link, "type", "text/css");
|
2259
|
+
attr(link, "rel", "stylesheet");
|
2260
|
+
},
|
2261
|
+
m(target, anchor) {
|
2262
|
+
insert(target, link, anchor);
|
2263
|
+
},
|
2264
|
+
p(ctx, dirty) {
|
2265
|
+
if (dirty & /*googleFontUrl*/ 1) {
|
2266
|
+
attr(link, "href", /*googleFontUrl*/ ctx[0]);
|
2267
|
+
}
|
2268
|
+
},
|
2269
|
+
d(detaching) {
|
2270
|
+
if (detaching) detach(link);
|
2271
|
+
}
|
2272
|
+
};
|
2273
|
+
}
|
2274
|
+
|
2275
|
+
function create_fragment$y(ctx) {
|
2276
|
+
let head;
|
2277
|
+
let if_block = /*googleFontUrl*/ ctx[0] && create_if_block$9(ctx);
|
2278
|
+
|
2279
|
+
return {
|
2280
|
+
c() {
|
2281
|
+
head = element("head");
|
2282
|
+
if (if_block) if_block.c();
|
2283
|
+
},
|
2284
|
+
m(target, anchor) {
|
2285
|
+
insert(target, head, anchor);
|
2286
|
+
if (if_block) if_block.m(head, null);
|
2287
|
+
},
|
2288
|
+
p(ctx, [dirty]) {
|
2289
|
+
if (/*googleFontUrl*/ ctx[0]) {
|
2290
|
+
if (if_block) {
|
2291
|
+
if_block.p(ctx, dirty);
|
2292
|
+
} else {
|
2293
|
+
if_block = create_if_block$9(ctx);
|
2294
|
+
if_block.c();
|
2295
|
+
if_block.m(head, null);
|
2296
|
+
}
|
2297
|
+
} else if (if_block) {
|
2298
|
+
if_block.d(1);
|
2299
|
+
if_block = null;
|
2300
|
+
}
|
2301
|
+
},
|
2302
|
+
i: noop,
|
2303
|
+
o: noop,
|
2304
|
+
d(detaching) {
|
2305
|
+
if (detaching) detach(head);
|
2306
|
+
if (if_block) if_block.d();
|
2307
|
+
}
|
2308
|
+
};
|
2309
|
+
}
|
2310
|
+
|
2311
|
+
function instance$y($$self, $$props, $$invalidate) {
|
2312
|
+
let $fonts;
|
2313
|
+
component_subscribe($$self, fonts, $$value => $$invalidate(1, $fonts = $$value));
|
2314
|
+
let googleFontUrl = '';
|
2315
|
+
|
2316
|
+
$$self.$$.update = () => {
|
2317
|
+
if ($$self.$$.dirty & /*$fonts*/ 2) {
|
2318
|
+
{
|
2319
|
+
if ($fonts.length > 0) {
|
2320
|
+
$$invalidate(0, googleFontUrl = makeGoogleFontUrl($fonts));
|
2321
|
+
}
|
2322
|
+
}
|
2323
|
+
}
|
2324
|
+
|
2325
|
+
if ($$self.$$.dirty & /*googleFontUrl*/ 1) {
|
2326
|
+
{
|
2327
|
+
if (googleFontUrl) {
|
2328
|
+
loadGlobalStyle(googleFontUrl);
|
2329
|
+
}
|
2330
|
+
}
|
2331
|
+
}
|
2332
|
+
};
|
2333
|
+
|
2334
|
+
return [googleFontUrl, $fonts];
|
2335
|
+
}
|
2336
|
+
|
2337
|
+
class Header extends SvelteComponent {
|
2338
|
+
constructor(options) {
|
2339
|
+
super();
|
2340
|
+
init(this, options, instance$y, create_fragment$y, safe_not_equal, {});
|
2341
|
+
}
|
2342
|
+
}
|
2343
|
+
|
2189
2344
|
/* src/components/State.svelte generated by Svelte v3.53.1 */
|
2190
2345
|
|
2191
2346
|
function create_fragment$x(ctx) {
|
2347
|
+
let header;
|
2348
|
+
let t;
|
2192
2349
|
let current;
|
2350
|
+
header = new Header({});
|
2193
2351
|
const default_slot_template = /*#slots*/ ctx[1].default;
|
2194
2352
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[0], null);
|
2195
2353
|
|
2196
2354
|
return {
|
2197
2355
|
c() {
|
2356
|
+
create_component(header.$$.fragment);
|
2357
|
+
t = space();
|
2198
2358
|
if (default_slot) default_slot.c();
|
2199
2359
|
},
|
2200
2360
|
m(target, anchor) {
|
2361
|
+
mount_component(header, target, anchor);
|
2362
|
+
insert(target, t, anchor);
|
2363
|
+
|
2201
2364
|
if (default_slot) {
|
2202
2365
|
default_slot.m(target, anchor);
|
2203
2366
|
}
|
@@ -2222,14 +2385,18 @@ function create_fragment$x(ctx) {
|
|
2222
2385
|
},
|
2223
2386
|
i(local) {
|
2224
2387
|
if (current) return;
|
2388
|
+
transition_in(header.$$.fragment, local);
|
2225
2389
|
transition_in(default_slot, local);
|
2226
2390
|
current = true;
|
2227
2391
|
},
|
2228
2392
|
o(local) {
|
2393
|
+
transition_out(header.$$.fragment, local);
|
2229
2394
|
transition_out(default_slot, local);
|
2230
2395
|
current = false;
|
2231
2396
|
},
|
2232
2397
|
d(detaching) {
|
2398
|
+
destroy_component(header, detaching);
|
2399
|
+
if (detaching) detach(t);
|
2233
2400
|
if (default_slot) default_slot.d(detaching);
|
2234
2401
|
}
|
2235
2402
|
};
|
@@ -4173,7 +4340,7 @@ function add_css$o(target) {
|
|
4173
4340
|
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}");
|
4174
4341
|
}
|
4175
4342
|
|
4176
|
-
// (
|
4343
|
+
// (86:2) {:else}
|
4177
4344
|
function create_else_block$1(ctx) {
|
4178
4345
|
let div1;
|
4179
4346
|
let div0;
|
@@ -4226,7 +4393,7 @@ function create_else_block$1(ctx) {
|
|
4226
4393
|
};
|
4227
4394
|
}
|
4228
4395
|
|
4229
|
-
// (
|
4396
|
+
// (77:2) {#if enableCopy}
|
4230
4397
|
function create_if_block$3(ctx) {
|
4231
4398
|
let a;
|
4232
4399
|
let div0;
|
@@ -4265,10 +4432,10 @@ function create_if_block$3(ctx) {
|
|
4265
4432
|
mount_component(rendertext, div0, null);
|
4266
4433
|
insert(target, t0, anchor);
|
4267
4434
|
insert(target, div1, anchor);
|
4268
|
-
/*div1_binding*/ ctx[
|
4435
|
+
/*div1_binding*/ ctx[11](div1);
|
4269
4436
|
insert(target, t2, anchor);
|
4270
4437
|
insert(target, div2, anchor);
|
4271
|
-
/*div2_binding*/ ctx[
|
4438
|
+
/*div2_binding*/ ctx[12](div2);
|
4272
4439
|
current = true;
|
4273
4440
|
|
4274
4441
|
if (!mounted) {
|
@@ -4303,10 +4470,10 @@ function create_if_block$3(ctx) {
|
|
4303
4470
|
destroy_component(rendertext);
|
4304
4471
|
if (detaching) detach(t0);
|
4305
4472
|
if (detaching) detach(div1);
|
4306
|
-
/*div1_binding*/ ctx[
|
4473
|
+
/*div1_binding*/ ctx[11](null);
|
4307
4474
|
if (detaching) detach(t2);
|
4308
4475
|
if (detaching) detach(div2);
|
4309
|
-
/*div2_binding*/ ctx[
|
4476
|
+
/*div2_binding*/ ctx[12](null);
|
4310
4477
|
mounted = false;
|
4311
4478
|
dispose();
|
4312
4479
|
}
|
@@ -4315,9 +4482,6 @@ function create_if_block$3(ctx) {
|
|
4315
4482
|
|
4316
4483
|
function create_fragment$p(ctx) {
|
4317
4484
|
let div;
|
4318
|
-
let link;
|
4319
|
-
let link_href_value;
|
4320
|
-
let t;
|
4321
4485
|
let current_block_type_index;
|
4322
4486
|
let if_block;
|
4323
4487
|
let current;
|
@@ -4335,25 +4499,15 @@ function create_fragment$p(ctx) {
|
|
4335
4499
|
return {
|
4336
4500
|
c() {
|
4337
4501
|
div = element("div");
|
4338
|
-
link = element("link");
|
4339
|
-
t = space();
|
4340
4502
|
if_block.c();
|
4341
|
-
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`);
|
4342
|
-
attr(link, "rel", "stylesheet");
|
4343
4503
|
attr(div, "class", "text-element-wrapper svelte-600oh0");
|
4344
4504
|
},
|
4345
4505
|
m(target, anchor) {
|
4346
4506
|
insert(target, div, anchor);
|
4347
|
-
append(div, link);
|
4348
|
-
append(div, t);
|
4349
4507
|
if_blocks[current_block_type_index].m(div, null);
|
4350
4508
|
current = true;
|
4351
4509
|
},
|
4352
4510
|
p(ctx, [dirty]) {
|
4353
|
-
if (!current || dirty & /*text*/ 1 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`)) {
|
4354
|
-
attr(link, "href", link_href_value);
|
4355
|
-
}
|
4356
|
-
|
4357
4511
|
let previous_block_index = current_block_type_index;
|
4358
4512
|
current_block_type_index = select_block_type(ctx);
|
4359
4513
|
|
@@ -4399,6 +4553,7 @@ function create_fragment$p(ctx) {
|
|
4399
4553
|
function instance$p($$self, $$props, $$invalidate) {
|
4400
4554
|
let style;
|
4401
4555
|
let { text = 'サンプルSample' } = $$props;
|
4556
|
+
let { font = SYSTEM_FONT } = $$props;
|
4402
4557
|
let { _textStyle = 'font-size:12px; line-height: 1.5;' } = $$props;
|
4403
4558
|
let { textDirection = 'horizontal' } = $$props;
|
4404
4559
|
let { _style = '' } = $$props;
|
@@ -4448,16 +4603,21 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
4448
4603
|
|
4449
4604
|
$$self.$$set = $$props => {
|
4450
4605
|
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
4451
|
-
if ('
|
4606
|
+
if ('font' in $$props) $$invalidate(7, font = $$props.font);
|
4607
|
+
if ('_textStyle' in $$props) $$invalidate(8, _textStyle = $$props._textStyle);
|
4452
4608
|
if ('textDirection' in $$props) $$invalidate(1, textDirection = $$props.textDirection);
|
4453
|
-
if ('_style' in $$props) $$invalidate(
|
4609
|
+
if ('_style' in $$props) $$invalidate(9, _style = $$props._style);
|
4454
4610
|
if ('enableCopy' in $$props) $$invalidate(2, enableCopy = $$props.enableCopy);
|
4455
|
-
if ('eventName' in $$props) $$invalidate(
|
4611
|
+
if ('eventName' in $$props) $$invalidate(10, eventName = $$props.eventName);
|
4456
4612
|
};
|
4457
4613
|
|
4458
4614
|
$$self.$$.update = () => {
|
4459
|
-
if ($$self.$$.dirty & /*
|
4460
|
-
|
4615
|
+
if ($$self.$$.dirty & /*font*/ 128) {
|
4616
|
+
addFont(font);
|
4617
|
+
}
|
4618
|
+
|
4619
|
+
if ($$self.$$.dirty & /*_textStyle, _style, font*/ 896) {
|
4620
|
+
$$invalidate(5, style = [..._textStyle.split(';'), ..._style.split(';'), `font-family:${font}`].filter(prop => prop).join(';'));
|
4461
4621
|
}
|
4462
4622
|
};
|
4463
4623
|
|
@@ -4469,6 +4629,7 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
4469
4629
|
tooltipErrorEl,
|
4470
4630
|
style,
|
4471
4631
|
onCopy,
|
4632
|
+
font,
|
4472
4633
|
_textStyle,
|
4473
4634
|
_style,
|
4474
4635
|
eventName,
|
@@ -4489,11 +4650,12 @@ class TextElement extends SvelteComponent {
|
|
4489
4650
|
safe_not_equal,
|
4490
4651
|
{
|
4491
4652
|
text: 0,
|
4492
|
-
|
4653
|
+
font: 7,
|
4654
|
+
_textStyle: 8,
|
4493
4655
|
textDirection: 1,
|
4494
|
-
_style:
|
4656
|
+
_style: 9,
|
4495
4657
|
enableCopy: 2,
|
4496
|
-
eventName:
|
4658
|
+
eventName: 10
|
4497
4659
|
},
|
4498
4660
|
add_css$o
|
4499
4661
|
);
|
@@ -5748,12 +5910,12 @@ function add_css$f(target) {
|
|
5748
5910
|
|
5749
5911
|
function get_each_context$5(ctx, list, i) {
|
5750
5912
|
const child_ctx = ctx.slice();
|
5751
|
-
child_ctx[
|
5752
|
-
child_ctx[
|
5913
|
+
child_ctx[16] = list[i];
|
5914
|
+
child_ctx[18] = i;
|
5753
5915
|
return child_ctx;
|
5754
5916
|
}
|
5755
5917
|
|
5756
|
-
// (
|
5918
|
+
// (98:2) {#each _options as option, i}
|
5757
5919
|
function create_each_block$5(ctx) {
|
5758
5920
|
let label;
|
5759
5921
|
let input;
|
@@ -5761,7 +5923,7 @@ function create_each_block$5(ctx) {
|
|
5761
5923
|
let input_checked_value;
|
5762
5924
|
let t0;
|
5763
5925
|
let span;
|
5764
|
-
let t1_value = /*option*/ ctx[
|
5926
|
+
let t1_value = /*option*/ ctx[16] + "";
|
5765
5927
|
let t1;
|
5766
5928
|
let t2;
|
5767
5929
|
let mounted;
|
@@ -5779,8 +5941,8 @@ function create_each_block$5(ctx) {
|
|
5779
5941
|
attr(input, "class", "radio-button-input svelte-17s08g");
|
5780
5942
|
attr(input, "style", /*buttonStyle*/ ctx[5]);
|
5781
5943
|
attr(input, "name", /*name*/ ctx[0]);
|
5782
|
-
input.value = input_value_value = /*option*/ ctx[
|
5783
|
-
input.checked = input_checked_value = /*option*/ ctx[
|
5944
|
+
input.value = input_value_value = /*option*/ ctx[16];
|
5945
|
+
input.checked = input_checked_value = /*option*/ ctx[16] === /*_value*/ ctx[3];
|
5784
5946
|
attr(span, "class", "radio-button-text svelte-17s08g");
|
5785
5947
|
attr(span, "style", /*_textStyle*/ ctx[2]);
|
5786
5948
|
attr(label, "class", "radio-button svelte-17s08g");
|
@@ -5794,7 +5956,7 @@ function create_each_block$5(ctx) {
|
|
5794
5956
|
append(label, t2);
|
5795
5957
|
|
5796
5958
|
if (!mounted) {
|
5797
|
-
dispose = listen(input, "change", /*handleChange*/ ctx[7](/*i*/ ctx[
|
5959
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[7](/*i*/ ctx[18]));
|
5798
5960
|
mounted = true;
|
5799
5961
|
}
|
5800
5962
|
},
|
@@ -5809,15 +5971,15 @@ function create_each_block$5(ctx) {
|
|
5809
5971
|
attr(input, "name", /*name*/ ctx[0]);
|
5810
5972
|
}
|
5811
5973
|
|
5812
|
-
if (dirty & /*_options*/ 16 && input_value_value !== (input_value_value = /*option*/ ctx[
|
5974
|
+
if (dirty & /*_options*/ 16 && input_value_value !== (input_value_value = /*option*/ ctx[16])) {
|
5813
5975
|
input.value = input_value_value;
|
5814
5976
|
}
|
5815
5977
|
|
5816
|
-
if (dirty & /*_options, _value*/ 24 && input_checked_value !== (input_checked_value = /*option*/ ctx[
|
5978
|
+
if (dirty & /*_options, _value*/ 24 && input_checked_value !== (input_checked_value = /*option*/ ctx[16] === /*_value*/ ctx[3])) {
|
5817
5979
|
input.checked = input_checked_value;
|
5818
5980
|
}
|
5819
5981
|
|
5820
|
-
if (dirty & /*_options*/ 16 && t1_value !== (t1_value = /*option*/ ctx[
|
5982
|
+
if (dirty & /*_options*/ 16 && t1_value !== (t1_value = /*option*/ ctx[16] + "")) set_data(t1, t1_value);
|
5821
5983
|
|
5822
5984
|
if (dirty & /*_textStyle*/ 4) {
|
5823
5985
|
attr(span, "style", /*_textStyle*/ ctx[2]);
|
@@ -5833,9 +5995,6 @@ function create_each_block$5(ctx) {
|
|
5833
5995
|
|
5834
5996
|
function create_fragment$g(ctx) {
|
5835
5997
|
let div;
|
5836
|
-
let link;
|
5837
|
-
let link_href_value;
|
5838
|
-
let t;
|
5839
5998
|
let each_value = /*_options*/ ctx[4];
|
5840
5999
|
let each_blocks = [];
|
5841
6000
|
|
@@ -5846,32 +6005,22 @@ function create_fragment$g(ctx) {
|
|
5846
6005
|
return {
|
5847
6006
|
c() {
|
5848
6007
|
div = element("div");
|
5849
|
-
link = element("link");
|
5850
|
-
t = space();
|
5851
6008
|
|
5852
6009
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
5853
6010
|
each_blocks[i].c();
|
5854
6011
|
}
|
5855
6012
|
|
5856
|
-
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*_options*/ ctx[4].join('')}`);
|
5857
|
-
attr(link, "rel", "stylesheet");
|
5858
6013
|
attr(div, "class", "radio-buttons svelte-17s08g");
|
5859
6014
|
attr(div, "style", /*_layoutStyle*/ ctx[1]);
|
5860
6015
|
},
|
5861
6016
|
m(target, anchor) {
|
5862
6017
|
insert(target, div, anchor);
|
5863
|
-
append(div, link);
|
5864
|
-
append(div, t);
|
5865
6018
|
|
5866
6019
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
5867
6020
|
each_blocks[i].m(div, null);
|
5868
6021
|
}
|
5869
6022
|
},
|
5870
6023
|
p(ctx, [dirty]) {
|
5871
|
-
if (dirty & /*_options*/ 16 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*_options*/ ctx[4].join('')}`)) {
|
5872
|
-
attr(link, "href", link_href_value);
|
5873
|
-
}
|
5874
|
-
|
5875
6024
|
if (dirty & /*_textStyle, _options, buttonStyle, name, _value, handleChange*/ 189) {
|
5876
6025
|
each_value = /*_options*/ ctx[4];
|
5877
6026
|
let i;
|
@@ -5917,6 +6066,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
5917
6066
|
let { options = 'ラジオボタン1,ラジオボタン2,ラジオボタン3' } = $$props;
|
5918
6067
|
let { required = false } = $$props;
|
5919
6068
|
let { _layoutStyle = 'flex-direction: column; gap: 0px;' } = $$props;
|
6069
|
+
let { font = SYSTEM_FONT } = $$props;
|
5920
6070
|
let { _textStyle = 'color: #333; font-size: 12px; line-height:1.5;' } = $$props;
|
5921
6071
|
let { buttonSize = '16px' } = $$props;
|
5922
6072
|
let { buttonColor = { main: '#f0f1f1', sub: '#f0f1f1' } } = $$props;
|
@@ -5933,7 +6083,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
5933
6083
|
}
|
5934
6084
|
});
|
5935
6085
|
|
5936
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6086
|
+
component_subscribe($$self, value, value => $$invalidate(14, $value = value));
|
5937
6087
|
|
5938
6088
|
const handleChange = index => event => {
|
5939
6089
|
if (event.target.checked) {
|
@@ -5946,18 +6096,23 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
5946
6096
|
if ('options' in $$props) $$invalidate(8, options = $$props.options);
|
5947
6097
|
if ('required' in $$props) $$invalidate(9, required = $$props.required);
|
5948
6098
|
if ('_layoutStyle' in $$props) $$invalidate(1, _layoutStyle = $$props._layoutStyle);
|
6099
|
+
if ('font' in $$props) $$invalidate(10, font = $$props.font);
|
5949
6100
|
if ('_textStyle' in $$props) $$invalidate(2, _textStyle = $$props._textStyle);
|
5950
|
-
if ('buttonSize' in $$props) $$invalidate(
|
5951
|
-
if ('buttonColor' in $$props) $$invalidate(
|
5952
|
-
if ('buttonColorActive' in $$props) $$invalidate(
|
6101
|
+
if ('buttonSize' in $$props) $$invalidate(11, buttonSize = $$props.buttonSize);
|
6102
|
+
if ('buttonColor' in $$props) $$invalidate(12, buttonColor = $$props.buttonColor);
|
6103
|
+
if ('buttonColorActive' in $$props) $$invalidate(13, buttonColorActive = $$props.buttonColorActive);
|
5953
6104
|
};
|
5954
6105
|
|
5955
6106
|
$$self.$$.update = () => {
|
6107
|
+
if ($$self.$$.dirty & /*font*/ 1024) {
|
6108
|
+
addFont(font);
|
6109
|
+
}
|
6110
|
+
|
5956
6111
|
if ($$self.$$.dirty & /*options*/ 256) {
|
5957
6112
|
$$invalidate(4, _options = options.split(','));
|
5958
6113
|
}
|
5959
6114
|
|
5960
|
-
if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/
|
6115
|
+
if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/ 14336) {
|
5961
6116
|
$$invalidate(5, buttonStyle = (() => {
|
5962
6117
|
return stringifyStyleObj({
|
5963
6118
|
'--color-main': buttonColor.main,
|
@@ -5969,7 +6124,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
5969
6124
|
})());
|
5970
6125
|
}
|
5971
6126
|
|
5972
|
-
if ($$self.$$.dirty & /*$value*/
|
6127
|
+
if ($$self.$$.dirty & /*$value*/ 16384) {
|
5973
6128
|
$$invalidate(3, _value = $value[0]);
|
5974
6129
|
}
|
5975
6130
|
};
|
@@ -5985,6 +6140,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
5985
6140
|
handleChange,
|
5986
6141
|
options,
|
5987
6142
|
required,
|
6143
|
+
font,
|
5988
6144
|
buttonSize,
|
5989
6145
|
buttonColor,
|
5990
6146
|
buttonColorActive,
|
@@ -6007,10 +6163,11 @@ class FormRadioButtons extends SvelteComponent {
|
|
6007
6163
|
options: 8,
|
6008
6164
|
required: 9,
|
6009
6165
|
_layoutStyle: 1,
|
6166
|
+
font: 10,
|
6010
6167
|
_textStyle: 2,
|
6011
|
-
buttonSize:
|
6012
|
-
buttonColor:
|
6013
|
-
buttonColorActive:
|
6168
|
+
buttonSize: 11,
|
6169
|
+
buttonColor: 12,
|
6170
|
+
buttonColorActive: 13
|
6014
6171
|
},
|
6015
6172
|
add_css$f
|
6016
6173
|
);
|
@@ -6025,12 +6182,12 @@ function add_css$e(target) {
|
|
6025
6182
|
|
6026
6183
|
function get_each_context$4(ctx, list, i) {
|
6027
6184
|
const child_ctx = ctx.slice();
|
6028
|
-
child_ctx[
|
6029
|
-
child_ctx[
|
6185
|
+
child_ctx[19] = list[i];
|
6186
|
+
child_ctx[21] = i;
|
6030
6187
|
return child_ctx;
|
6031
6188
|
}
|
6032
6189
|
|
6033
|
-
// (
|
6190
|
+
// (108:10) {:else}
|
6034
6191
|
function create_else_block(ctx) {
|
6035
6192
|
let t;
|
6036
6193
|
|
@@ -6050,9 +6207,9 @@ function create_else_block(ctx) {
|
|
6050
6207
|
};
|
6051
6208
|
}
|
6052
6209
|
|
6053
|
-
// (
|
6210
|
+
// (106:10) {#if option}
|
6054
6211
|
function create_if_block$2(ctx) {
|
6055
|
-
let t_value = /*option*/ ctx[
|
6212
|
+
let t_value = /*option*/ ctx[19] + "";
|
6056
6213
|
let t;
|
6057
6214
|
|
6058
6215
|
return {
|
@@ -6063,7 +6220,7 @@ function create_if_block$2(ctx) {
|
|
6063
6220
|
insert(target, t, anchor);
|
6064
6221
|
},
|
6065
6222
|
p(ctx, dirty) {
|
6066
|
-
if (dirty & /*_options*/ 16 && t_value !== (t_value = /*option*/ ctx[
|
6223
|
+
if (dirty & /*_options*/ 16 && t_value !== (t_value = /*option*/ ctx[19] + "")) set_data(t, t_value);
|
6067
6224
|
},
|
6068
6225
|
d(detaching) {
|
6069
6226
|
if (detaching) detach(t);
|
@@ -6071,7 +6228,7 @@ function create_if_block$2(ctx) {
|
|
6071
6228
|
};
|
6072
6229
|
}
|
6073
6230
|
|
6074
|
-
// (
|
6231
|
+
// (104:6) {#each _options as option, i}
|
6075
6232
|
function create_each_block$4(ctx) {
|
6076
6233
|
let option;
|
6077
6234
|
let t;
|
@@ -6079,7 +6236,7 @@ function create_each_block$4(ctx) {
|
|
6079
6236
|
let option_selected_value;
|
6080
6237
|
|
6081
6238
|
function select_block_type(ctx, dirty) {
|
6082
|
-
if (/*option*/ ctx[
|
6239
|
+
if (/*option*/ ctx[19]) return create_if_block$2;
|
6083
6240
|
return create_else_block;
|
6084
6241
|
}
|
6085
6242
|
|
@@ -6091,9 +6248,9 @@ function create_each_block$4(ctx) {
|
|
6091
6248
|
option = element("option");
|
6092
6249
|
if_block.c();
|
6093
6250
|
t = space();
|
6094
|
-
option.__value = option_value_value = /*option*/ ctx[
|
6251
|
+
option.__value = option_value_value = /*option*/ ctx[19];
|
6095
6252
|
option.value = option.__value;
|
6096
|
-
option.selected = option_selected_value = /*option*/ ctx[
|
6253
|
+
option.selected = option_selected_value = /*option*/ ctx[19] === /*_value*/ ctx[1];
|
6097
6254
|
},
|
6098
6255
|
m(target, anchor) {
|
6099
6256
|
insert(target, option, anchor);
|
@@ -6113,12 +6270,12 @@ function create_each_block$4(ctx) {
|
|
6113
6270
|
}
|
6114
6271
|
}
|
6115
6272
|
|
6116
|
-
if (dirty & /*_options*/ 16 && option_value_value !== (option_value_value = /*option*/ ctx[
|
6273
|
+
if (dirty & /*_options*/ 16 && option_value_value !== (option_value_value = /*option*/ ctx[19])) {
|
6117
6274
|
option.__value = option_value_value;
|
6118
6275
|
option.value = option.__value;
|
6119
6276
|
}
|
6120
6277
|
|
6121
|
-
if (dirty & /*_options, _value*/ 18 && option_selected_value !== (option_selected_value = /*option*/ ctx[
|
6278
|
+
if (dirty & /*_options, _value*/ 18 && option_selected_value !== (option_selected_value = /*option*/ ctx[19] === /*_value*/ ctx[1])) {
|
6122
6279
|
option.selected = option_selected_value;
|
6123
6280
|
}
|
6124
6281
|
},
|
@@ -6131,11 +6288,8 @@ function create_each_block$4(ctx) {
|
|
6131
6288
|
|
6132
6289
|
function create_fragment$f(ctx) {
|
6133
6290
|
let div1;
|
6134
|
-
let link;
|
6135
|
-
let link_href_value;
|
6136
|
-
let t0;
|
6137
6291
|
let select;
|
6138
|
-
let
|
6292
|
+
let t;
|
6139
6293
|
let div0;
|
6140
6294
|
let mounted;
|
6141
6295
|
let dispose;
|
@@ -6149,18 +6303,14 @@ function create_fragment$f(ctx) {
|
|
6149
6303
|
return {
|
6150
6304
|
c() {
|
6151
6305
|
div1 = element("div");
|
6152
|
-
link = element("link");
|
6153
|
-
t0 = space();
|
6154
6306
|
select = element("select");
|
6155
6307
|
|
6156
6308
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6157
6309
|
each_blocks[i].c();
|
6158
6310
|
}
|
6159
6311
|
|
6160
|
-
|
6312
|
+
t = space();
|
6161
6313
|
div0 = element("div");
|
6162
|
-
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${[/*placeholder*/ ctx[0], .../*_options*/ ctx[4]].join('')}`);
|
6163
|
-
attr(link, "rel", "stylesheet");
|
6164
6314
|
attr(select, "class", "select-select svelte-1n4ag74");
|
6165
6315
|
attr(select, "style", /*style*/ ctx[3]);
|
6166
6316
|
attr(div0, "class", "select-icon svelte-1n4ag74");
|
@@ -6169,15 +6319,13 @@ function create_fragment$f(ctx) {
|
|
6169
6319
|
},
|
6170
6320
|
m(target, anchor) {
|
6171
6321
|
insert(target, div1, anchor);
|
6172
|
-
append(div1, link);
|
6173
|
-
append(div1, t0);
|
6174
6322
|
append(div1, select);
|
6175
6323
|
|
6176
6324
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6177
6325
|
each_blocks[i].m(select, null);
|
6178
6326
|
}
|
6179
6327
|
|
6180
|
-
append(div1,
|
6328
|
+
append(div1, t);
|
6181
6329
|
append(div1, div0);
|
6182
6330
|
|
6183
6331
|
if (!mounted) {
|
@@ -6186,10 +6334,6 @@ function create_fragment$f(ctx) {
|
|
6186
6334
|
}
|
6187
6335
|
},
|
6188
6336
|
p(ctx, [dirty]) {
|
6189
|
-
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('')}`)) {
|
6190
|
-
attr(link, "href", link_href_value);
|
6191
|
-
}
|
6192
|
-
|
6193
6337
|
if (dirty & /*_options, _value, placeholder*/ 19) {
|
6194
6338
|
each_value = /*_options*/ ctx[4];
|
6195
6339
|
let i;
|
@@ -6244,6 +6388,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
6244
6388
|
let { required = false } = $$props;
|
6245
6389
|
let { _style = 'cursor: pointer; background-color: #fff; border: solid 2px #ccc; border-radius: 6px; padding: 0 0 0 10px;' } = $$props;
|
6246
6390
|
let { _focusStyle = 'border-width: 2px; border-color: #2aab9f; border-style: solid' } = $$props;
|
6391
|
+
let { font = SYSTEM_FONT } = $$props;
|
6247
6392
|
let { _textStyle = 'font-size: 12px; line-height:1.5;' } = $$props;
|
6248
6393
|
let { _placeholderStyle = 'color: #ccc;' } = $$props;
|
6249
6394
|
let { iconColor = 'rgba(0, 16, 14, 0.8)' } = $$props;
|
@@ -6260,7 +6405,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
6260
6405
|
}
|
6261
6406
|
});
|
6262
6407
|
|
6263
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6408
|
+
component_subscribe($$self, value, value => $$invalidate(17, $value = value));
|
6264
6409
|
|
6265
6410
|
function handleChange(event) {
|
6266
6411
|
const updated = event.target.value ? [event.target.value] : [];
|
@@ -6274,22 +6419,27 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
6274
6419
|
if ('required' in $$props) $$invalidate(9, required = $$props.required);
|
6275
6420
|
if ('_style' in $$props) $$invalidate(10, _style = $$props._style);
|
6276
6421
|
if ('_focusStyle' in $$props) $$invalidate(11, _focusStyle = $$props._focusStyle);
|
6277
|
-
if ('
|
6278
|
-
if ('
|
6279
|
-
if ('
|
6280
|
-
if ('
|
6422
|
+
if ('font' in $$props) $$invalidate(12, font = $$props.font);
|
6423
|
+
if ('_textStyle' in $$props) $$invalidate(13, _textStyle = $$props._textStyle);
|
6424
|
+
if ('_placeholderStyle' in $$props) $$invalidate(14, _placeholderStyle = $$props._placeholderStyle);
|
6425
|
+
if ('iconColor' in $$props) $$invalidate(15, iconColor = $$props.iconColor);
|
6426
|
+
if ('iconSize' in $$props) $$invalidate(16, iconSize = $$props.iconSize);
|
6281
6427
|
};
|
6282
6428
|
|
6283
6429
|
$$self.$$.update = () => {
|
6430
|
+
if ($$self.$$.dirty & /*font*/ 4096) {
|
6431
|
+
addFont(font);
|
6432
|
+
}
|
6433
|
+
|
6284
6434
|
if ($$self.$$.dirty & /*options*/ 256) {
|
6285
6435
|
$$invalidate(4, _options = ['', ...options.split(',')]);
|
6286
6436
|
}
|
6287
6437
|
|
6288
|
-
if ($$self.$$.dirty & /*$value*/
|
6438
|
+
if ($$self.$$.dirty & /*$value*/ 131072) {
|
6289
6439
|
$$invalidate(1, _value = $value[0]);
|
6290
6440
|
}
|
6291
6441
|
|
6292
|
-
if ($$self.$$.dirty & /*_style, _textStyle, _value, _placeholderStyle*/
|
6442
|
+
if ($$self.$$.dirty & /*_style, _textStyle, _value, _placeholderStyle*/ 25602) {
|
6293
6443
|
$$invalidate(3, style = [
|
6294
6444
|
..._style.split(';'),
|
6295
6445
|
..._textStyle.split(';'),
|
@@ -6297,7 +6447,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
6297
6447
|
].join(';'));
|
6298
6448
|
}
|
6299
6449
|
|
6300
|
-
if ($$self.$$.dirty & /*_focusStyle, _placeholderStyle, iconColor, iconSize*/
|
6450
|
+
if ($$self.$$.dirty & /*_focusStyle, _placeholderStyle, iconColor, iconSize*/ 116736) {
|
6301
6451
|
$$invalidate(2, styleVariables = (() => {
|
6302
6452
|
const variables = {};
|
6303
6453
|
const focusStyleObj = parseStyle(_focusStyle);
|
@@ -6326,6 +6476,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
6326
6476
|
required,
|
6327
6477
|
_style,
|
6328
6478
|
_focusStyle,
|
6479
|
+
font,
|
6329
6480
|
_textStyle,
|
6330
6481
|
_placeholderStyle,
|
6331
6482
|
iconColor,
|
@@ -6351,10 +6502,11 @@ class FormSelect extends SvelteComponent {
|
|
6351
6502
|
required: 9,
|
6352
6503
|
_style: 10,
|
6353
6504
|
_focusStyle: 11,
|
6354
|
-
|
6355
|
-
|
6356
|
-
|
6357
|
-
|
6505
|
+
font: 12,
|
6506
|
+
_textStyle: 13,
|
6507
|
+
_placeholderStyle: 14,
|
6508
|
+
iconColor: 15,
|
6509
|
+
iconSize: 16
|
6358
6510
|
},
|
6359
6511
|
add_css$e
|
6360
6512
|
);
|
@@ -6369,12 +6521,12 @@ function add_css$d(target) {
|
|
6369
6521
|
|
6370
6522
|
function get_each_context$3(ctx, list, i) {
|
6371
6523
|
const child_ctx = ctx.slice();
|
6372
|
-
child_ctx[
|
6373
|
-
child_ctx[
|
6524
|
+
child_ctx[17] = list[i];
|
6525
|
+
child_ctx[19] = i;
|
6374
6526
|
return child_ctx;
|
6375
6527
|
}
|
6376
6528
|
|
6377
|
-
// (
|
6529
|
+
// (105:2) {#each _options as option, i}
|
6378
6530
|
function create_each_block$3(ctx) {
|
6379
6531
|
let label;
|
6380
6532
|
let input;
|
@@ -6385,7 +6537,7 @@ function create_each_block$3(ctx) {
|
|
6385
6537
|
let span1_class_value;
|
6386
6538
|
let t1;
|
6387
6539
|
let span2;
|
6388
|
-
let t2_value = /*option*/ ctx[
|
6540
|
+
let t2_value = /*option*/ ctx[17] + "";
|
6389
6541
|
let t2;
|
6390
6542
|
let t3;
|
6391
6543
|
let mounted;
|
@@ -6405,10 +6557,10 @@ function create_each_block$3(ctx) {
|
|
6405
6557
|
attr(input, "class", "check-box-input svelte-o1ztcf");
|
6406
6558
|
attr(input, "type", "checkbox");
|
6407
6559
|
attr(input, "name", /*name*/ ctx[0]);
|
6408
|
-
input.checked = input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[
|
6560
|
+
input.checked = input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[19]];
|
6409
6561
|
attr(span0, "class", "check-box-icon svelte-o1ztcf");
|
6410
6562
|
|
6411
|
-
attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[
|
6563
|
+
attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[19]]
|
6412
6564
|
? ' _checked'
|
6413
6565
|
: ''}`) + " svelte-o1ztcf"));
|
6414
6566
|
|
@@ -6429,7 +6581,7 @@ function create_each_block$3(ctx) {
|
|
6429
6581
|
append(label, t3);
|
6430
6582
|
|
6431
6583
|
if (!mounted) {
|
6432
|
-
dispose = listen(input, "change", /*handleChange*/ ctx[7](/*i*/ ctx[
|
6584
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[7](/*i*/ ctx[19]));
|
6433
6585
|
mounted = true;
|
6434
6586
|
}
|
6435
6587
|
},
|
@@ -6440,11 +6592,11 @@ function create_each_block$3(ctx) {
|
|
6440
6592
|
attr(input, "name", /*name*/ ctx[0]);
|
6441
6593
|
}
|
6442
6594
|
|
6443
|
-
if (dirty & /*isCheckedArray*/ 16 && input_checked_value !== (input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[
|
6595
|
+
if (dirty & /*isCheckedArray*/ 16 && input_checked_value !== (input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[19]])) {
|
6444
6596
|
input.checked = input_checked_value;
|
6445
6597
|
}
|
6446
6598
|
|
6447
|
-
if (dirty & /*isCheckedArray*/ 16 && span1_class_value !== (span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[
|
6599
|
+
if (dirty & /*isCheckedArray*/ 16 && span1_class_value !== (span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[19]]
|
6448
6600
|
? ' _checked'
|
6449
6601
|
: ''}`) + " svelte-o1ztcf"))) {
|
6450
6602
|
attr(span1, "class", span1_class_value);
|
@@ -6454,7 +6606,7 @@ function create_each_block$3(ctx) {
|
|
6454
6606
|
attr(span1, "style", /*styleVariables*/ ctx[5]);
|
6455
6607
|
}
|
6456
6608
|
|
6457
|
-
if (dirty & /*_options*/ 8 && t2_value !== (t2_value = /*option*/ ctx[
|
6609
|
+
if (dirty & /*_options*/ 8 && t2_value !== (t2_value = /*option*/ ctx[17] + "")) set_data(t2, t2_value);
|
6458
6610
|
|
6459
6611
|
if (dirty & /*_textStyle*/ 4) {
|
6460
6612
|
attr(span2, "style", /*_textStyle*/ ctx[2]);
|
@@ -6470,9 +6622,6 @@ function create_each_block$3(ctx) {
|
|
6470
6622
|
|
6471
6623
|
function create_fragment$e(ctx) {
|
6472
6624
|
let div;
|
6473
|
-
let link;
|
6474
|
-
let link_href_value;
|
6475
|
-
let t;
|
6476
6625
|
let each_value = /*_options*/ ctx[3];
|
6477
6626
|
let each_blocks = [];
|
6478
6627
|
|
@@ -6483,32 +6632,22 @@ function create_fragment$e(ctx) {
|
|
6483
6632
|
return {
|
6484
6633
|
c() {
|
6485
6634
|
div = element("div");
|
6486
|
-
link = element("link");
|
6487
|
-
t = space();
|
6488
6635
|
|
6489
6636
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6490
6637
|
each_blocks[i].c();
|
6491
6638
|
}
|
6492
6639
|
|
6493
|
-
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*_options*/ ctx[3].join('')}`);
|
6494
|
-
attr(link, "rel", "stylesheet");
|
6495
6640
|
attr(div, "class", "check-boxes svelte-o1ztcf");
|
6496
6641
|
attr(div, "style", /*_layoutStyle*/ ctx[1]);
|
6497
6642
|
},
|
6498
6643
|
m(target, anchor) {
|
6499
6644
|
insert(target, div, anchor);
|
6500
|
-
append(div, link);
|
6501
|
-
append(div, t);
|
6502
6645
|
|
6503
6646
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6504
6647
|
each_blocks[i].m(div, null);
|
6505
6648
|
}
|
6506
6649
|
},
|
6507
6650
|
p(ctx, [dirty]) {
|
6508
|
-
if (dirty & /*_options*/ 8 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*_options*/ ctx[3].join('')}`)) {
|
6509
|
-
attr(link, "href", link_href_value);
|
6510
|
-
}
|
6511
|
-
|
6512
6651
|
if (dirty & /*_textStyle, _options, isCheckedArray, styleVariables, name, handleChange*/ 189) {
|
6513
6652
|
each_value = /*_options*/ ctx[3];
|
6514
6653
|
let i;
|
@@ -6554,7 +6693,9 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
6554
6693
|
let { options = 'チェックボックス1,チェックボックス2,チェックボックス3' } = $$props;
|
6555
6694
|
let { required = false } = $$props;
|
6556
6695
|
let { _layoutStyle = 'flex-direction: column; gap: 0px;' } = $$props;
|
6557
|
-
let {
|
6696
|
+
let { font = SYSTEM_FONT } = $$props;
|
6697
|
+
const fontCss = font ? 'font-family:' + font : '';
|
6698
|
+
let { _textStyle = `color:#333; font-size:12px; line-height:1.5; ${fontCss}` } = $$props;
|
6558
6699
|
let { buttonSize = '16px' } = $$props;
|
6559
6700
|
let { buttonColor = { main: '#f0f1f1', sub: '#f0f1f1' } } = $$props;
|
6560
6701
|
let { buttonColorActive = { main: '#2aab9f', sub: '#fff' } } = $$props;
|
@@ -6570,7 +6711,7 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
6570
6711
|
}
|
6571
6712
|
});
|
6572
6713
|
|
6573
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6714
|
+
component_subscribe($$self, value, value => $$invalidate(14, $value = value));
|
6574
6715
|
|
6575
6716
|
const handleChange = index => event => {
|
6576
6717
|
if (isCheckedArray[index] !== event.target.checked) {
|
@@ -6586,18 +6727,23 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
6586
6727
|
if ('options' in $$props) $$invalidate(8, options = $$props.options);
|
6587
6728
|
if ('required' in $$props) $$invalidate(9, required = $$props.required);
|
6588
6729
|
if ('_layoutStyle' in $$props) $$invalidate(1, _layoutStyle = $$props._layoutStyle);
|
6730
|
+
if ('font' in $$props) $$invalidate(10, font = $$props.font);
|
6589
6731
|
if ('_textStyle' in $$props) $$invalidate(2, _textStyle = $$props._textStyle);
|
6590
|
-
if ('buttonSize' in $$props) $$invalidate(
|
6591
|
-
if ('buttonColor' in $$props) $$invalidate(
|
6592
|
-
if ('buttonColorActive' in $$props) $$invalidate(
|
6732
|
+
if ('buttonSize' in $$props) $$invalidate(11, buttonSize = $$props.buttonSize);
|
6733
|
+
if ('buttonColor' in $$props) $$invalidate(12, buttonColor = $$props.buttonColor);
|
6734
|
+
if ('buttonColorActive' in $$props) $$invalidate(13, buttonColorActive = $$props.buttonColorActive);
|
6593
6735
|
};
|
6594
6736
|
|
6595
6737
|
$$self.$$.update = () => {
|
6738
|
+
if ($$self.$$.dirty & /*font*/ 1024) {
|
6739
|
+
addFont(font);
|
6740
|
+
}
|
6741
|
+
|
6596
6742
|
if ($$self.$$.dirty & /*options*/ 256) {
|
6597
6743
|
$$invalidate(3, _options = options.split(','));
|
6598
6744
|
}
|
6599
6745
|
|
6600
|
-
if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/
|
6746
|
+
if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/ 14336) {
|
6601
6747
|
$$invalidate(5, styleVariables = (() => {
|
6602
6748
|
return stringifyStyleObj({
|
6603
6749
|
'--color-main': buttonColor.main,
|
@@ -6609,7 +6755,7 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
6609
6755
|
})());
|
6610
6756
|
}
|
6611
6757
|
|
6612
|
-
if ($$self.$$.dirty & /*$value, _options*/
|
6758
|
+
if ($$self.$$.dirty & /*$value, _options*/ 16392) {
|
6613
6759
|
$$invalidate(4, isCheckedArray = (() => {
|
6614
6760
|
const checkedSet = new Set($value);
|
6615
6761
|
return _options.map(option => checkedSet.has(option));
|
@@ -6628,6 +6774,7 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
6628
6774
|
handleChange,
|
6629
6775
|
options,
|
6630
6776
|
required,
|
6777
|
+
font,
|
6631
6778
|
buttonSize,
|
6632
6779
|
buttonColor,
|
6633
6780
|
buttonColorActive,
|
@@ -6650,10 +6797,11 @@ class FormCheckBoxes extends SvelteComponent {
|
|
6650
6797
|
options: 8,
|
6651
6798
|
required: 9,
|
6652
6799
|
_layoutStyle: 1,
|
6800
|
+
font: 10,
|
6653
6801
|
_textStyle: 2,
|
6654
|
-
buttonSize:
|
6655
|
-
buttonColor:
|
6656
|
-
buttonColorActive:
|
6802
|
+
buttonSize: 11,
|
6803
|
+
buttonColor: 12,
|
6804
|
+
buttonColorActive: 13
|
6657
6805
|
},
|
6658
6806
|
add_css$d
|
6659
6807
|
);
|
@@ -6668,14 +6816,14 @@ function add_css$c(target) {
|
|
6668
6816
|
|
6669
6817
|
function get_each_context$2(ctx, list, i) {
|
6670
6818
|
const child_ctx = ctx.slice();
|
6671
|
-
child_ctx[
|
6819
|
+
child_ctx[12] = list[i];
|
6672
6820
|
return child_ctx;
|
6673
6821
|
}
|
6674
6822
|
|
6675
|
-
// (
|
6823
|
+
// (60:2) {#each [...Array(count).keys()].map(i => i + 1) as i}
|
6676
6824
|
function create_each_block$2(ctx) {
|
6677
6825
|
let div;
|
6678
|
-
let t0_value = /*i*/ ctx[
|
6826
|
+
let t0_value = /*i*/ ctx[12] + "";
|
6679
6827
|
let t0;
|
6680
6828
|
let t1;
|
6681
6829
|
let div_style_value;
|
@@ -6688,7 +6836,7 @@ function create_each_block$2(ctx) {
|
|
6688
6836
|
t0 = text(t0_value);
|
6689
6837
|
t1 = space();
|
6690
6838
|
attr(div, "class", "rating-button svelte-176k37j");
|
6691
|
-
attr(div, "style", div_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[
|
6839
|
+
attr(div, "style", div_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[12] === /*_value*/ ctx[1]));
|
6692
6840
|
},
|
6693
6841
|
m(target, anchor) {
|
6694
6842
|
insert(target, div, anchor);
|
@@ -6697,7 +6845,7 @@ function create_each_block$2(ctx) {
|
|
6697
6845
|
|
6698
6846
|
if (!mounted) {
|
6699
6847
|
dispose = listen(div, "click", function () {
|
6700
|
-
if (is_function(/*handleClick*/ ctx[3](/*i*/ ctx[
|
6848
|
+
if (is_function(/*handleClick*/ ctx[3](/*i*/ ctx[12]))) /*handleClick*/ ctx[3](/*i*/ ctx[12]).apply(this, arguments);
|
6701
6849
|
});
|
6702
6850
|
|
6703
6851
|
mounted = true;
|
@@ -6705,9 +6853,9 @@ function create_each_block$2(ctx) {
|
|
6705
6853
|
},
|
6706
6854
|
p(new_ctx, dirty) {
|
6707
6855
|
ctx = new_ctx;
|
6708
|
-
if (dirty & /*count*/ 1 && t0_value !== (t0_value = /*i*/ ctx[
|
6856
|
+
if (dirty & /*count*/ 1 && t0_value !== (t0_value = /*i*/ ctx[12] + "")) set_data(t0, t0_value);
|
6709
6857
|
|
6710
|
-
if (dirty & /*count, _value*/ 3 && div_style_value !== (div_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[
|
6858
|
+
if (dirty & /*count, _value*/ 3 && div_style_value !== (div_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[12] === /*_value*/ ctx[1]))) {
|
6711
6859
|
attr(div, "style", div_style_value);
|
6712
6860
|
}
|
6713
6861
|
},
|
@@ -6721,8 +6869,6 @@ function create_each_block$2(ctx) {
|
|
6721
6869
|
|
6722
6870
|
function create_fragment$d(ctx) {
|
6723
6871
|
let div;
|
6724
|
-
let link;
|
6725
|
-
let t;
|
6726
6872
|
let each_value = [...Array(/*count*/ ctx[0]).keys()].map(func$1);
|
6727
6873
|
let each_blocks = [];
|
6728
6874
|
|
@@ -6733,21 +6879,15 @@ function create_fragment$d(ctx) {
|
|
6733
6879
|
return {
|
6734
6880
|
c() {
|
6735
6881
|
div = element("div");
|
6736
|
-
link = element("link");
|
6737
|
-
t = space();
|
6738
6882
|
|
6739
6883
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6740
6884
|
each_blocks[i].c();
|
6741
6885
|
}
|
6742
6886
|
|
6743
|
-
attr(link, "href", `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=0123456789`);
|
6744
|
-
attr(link, "rel", "stylesheet");
|
6745
6887
|
attr(div, "class", "rating-buttons svelte-176k37j");
|
6746
6888
|
},
|
6747
6889
|
m(target, anchor) {
|
6748
6890
|
insert(target, div, anchor);
|
6749
|
-
append(div, link);
|
6750
|
-
append(div, t);
|
6751
6891
|
|
6752
6892
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6753
6893
|
each_blocks[i].m(div, null);
|
@@ -6794,6 +6934,7 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
6794
6934
|
let { name = '' } = $$props;
|
6795
6935
|
let { required = false } = $$props;
|
6796
6936
|
let { count = 5 } = $$props;
|
6937
|
+
let { font = SYSTEM_FONT } = $$props;
|
6797
6938
|
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;
|
6798
6939
|
let { buttonActiveStyle = 'color: #333; background-color: #2aab9f; box-shadow: 0px 8px 16px 0px rgba(0, 16, 14, 0.3);' } = $$props;
|
6799
6940
|
const { path: statePath } = getStateItemContext();
|
@@ -6808,7 +6949,7 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
6808
6949
|
}
|
6809
6950
|
});
|
6810
6951
|
|
6811
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6952
|
+
component_subscribe($$self, value, value => $$invalidate(10, $value = value));
|
6812
6953
|
|
6813
6954
|
const handleClick = index => event => {
|
6814
6955
|
value.set([String(index)]);
|
@@ -6824,12 +6965,17 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
6824
6965
|
if ('name' in $$props) $$invalidate(5, name = $$props.name);
|
6825
6966
|
if ('required' in $$props) $$invalidate(6, required = $$props.required);
|
6826
6967
|
if ('count' in $$props) $$invalidate(0, count = $$props.count);
|
6827
|
-
if ('
|
6828
|
-
if ('
|
6968
|
+
if ('font' in $$props) $$invalidate(7, font = $$props.font);
|
6969
|
+
if ('buttonStyle' in $$props) $$invalidate(8, buttonStyle = $$props.buttonStyle);
|
6970
|
+
if ('buttonActiveStyle' in $$props) $$invalidate(9, buttonActiveStyle = $$props.buttonActiveStyle);
|
6829
6971
|
};
|
6830
6972
|
|
6831
6973
|
$$self.$$.update = () => {
|
6832
|
-
if ($$self.$$.dirty &
|
6974
|
+
if ($$self.$$.dirty & /*font*/ 128) {
|
6975
|
+
addFont(font);
|
6976
|
+
}
|
6977
|
+
|
6978
|
+
if ($$self.$$.dirty & /*$value*/ 1024) {
|
6833
6979
|
$$invalidate(1, _value = Number($value[0] ?? -1));
|
6834
6980
|
}
|
6835
6981
|
};
|
@@ -6842,6 +6988,7 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
6842
6988
|
getTextButtonStyle,
|
6843
6989
|
name,
|
6844
6990
|
required,
|
6991
|
+
font,
|
6845
6992
|
buttonStyle,
|
6846
6993
|
buttonActiveStyle,
|
6847
6994
|
$value
|
@@ -6862,8 +7009,9 @@ class FormRatingButtonsNumber extends SvelteComponent {
|
|
6862
7009
|
name: 5,
|
6863
7010
|
required: 6,
|
6864
7011
|
count: 0,
|
6865
|
-
|
6866
|
-
|
7012
|
+
font: 7,
|
7013
|
+
buttonStyle: 8,
|
7014
|
+
buttonActiveStyle: 9
|
6867
7015
|
},
|
6868
7016
|
add_css$c
|
6869
7017
|
);
|
@@ -9144,9 +9292,6 @@ function add_css$2(target) {
|
|
9144
9292
|
|
9145
9293
|
function create_fragment$2(ctx) {
|
9146
9294
|
let div1;
|
9147
|
-
let link;
|
9148
|
-
let link_href_value;
|
9149
|
-
let t;
|
9150
9295
|
let div0;
|
9151
9296
|
let rendertext;
|
9152
9297
|
let div1_class_value;
|
@@ -9156,29 +9301,19 @@ function create_fragment$2(ctx) {
|
|
9156
9301
|
return {
|
9157
9302
|
c() {
|
9158
9303
|
div1 = element("div");
|
9159
|
-
link = element("link");
|
9160
|
-
t = space();
|
9161
9304
|
div0 = element("div");
|
9162
9305
|
create_component(rendertext.$$.fragment);
|
9163
|
-
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`);
|
9164
|
-
attr(link, "rel", "stylesheet");
|
9165
9306
|
attr(div0, "class", "text-block-inner svelte-11rpuv5");
|
9166
9307
|
attr(div1, "class", div1_class_value = "" + (null_to_empty(`text-block text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-11rpuv5"));
|
9167
9308
|
attr(div1, "style", /*style*/ ctx[2]);
|
9168
9309
|
},
|
9169
9310
|
m(target, anchor) {
|
9170
9311
|
insert(target, div1, anchor);
|
9171
|
-
append(div1, link);
|
9172
|
-
append(div1, t);
|
9173
9312
|
append(div1, div0);
|
9174
9313
|
mount_component(rendertext, div0, null);
|
9175
9314
|
current = true;
|
9176
9315
|
},
|
9177
9316
|
p(ctx, [dirty]) {
|
9178
|
-
if (!current || dirty & /*text*/ 1 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`)) {
|
9179
|
-
attr(link, "href", link_href_value);
|
9180
|
-
}
|
9181
|
-
|
9182
9317
|
const rendertext_changes = {};
|
9183
9318
|
if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
|
9184
9319
|
rendertext.$set(rendertext_changes);
|
@@ -9210,24 +9345,30 @@ function create_fragment$2(ctx) {
|
|
9210
9345
|
function instance$2($$self, $$props, $$invalidate) {
|
9211
9346
|
let style;
|
9212
9347
|
let { text = 'サンプルSample' } = $$props;
|
9348
|
+
let { font = SYSTEM_FONT } = $$props;
|
9213
9349
|
let { _textStyle = 'font-size:12px; line-height:1.5;' } = $$props;
|
9214
9350
|
let { textDirection = 'horizontal' } = $$props;
|
9215
9351
|
let { _style = '' } = $$props;
|
9216
9352
|
|
9217
9353
|
$$self.$$set = $$props => {
|
9218
9354
|
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
9219
|
-
if ('
|
9355
|
+
if ('font' in $$props) $$invalidate(3, font = $$props.font);
|
9356
|
+
if ('_textStyle' in $$props) $$invalidate(4, _textStyle = $$props._textStyle);
|
9220
9357
|
if ('textDirection' in $$props) $$invalidate(1, textDirection = $$props.textDirection);
|
9221
|
-
if ('_style' in $$props) $$invalidate(
|
9358
|
+
if ('_style' in $$props) $$invalidate(5, _style = $$props._style);
|
9222
9359
|
};
|
9223
9360
|
|
9224
9361
|
$$self.$$.update = () => {
|
9225
|
-
if ($$self.$$.dirty & /*
|
9362
|
+
if ($$self.$$.dirty & /*font*/ 8) {
|
9363
|
+
addFont(font);
|
9364
|
+
}
|
9365
|
+
|
9366
|
+
if ($$self.$$.dirty & /*_textStyle, _style*/ 48) {
|
9226
9367
|
$$invalidate(2, style = [..._textStyle.split(';'), ..._style.split(';')].join(';'));
|
9227
9368
|
}
|
9228
9369
|
};
|
9229
9370
|
|
9230
|
-
return [text, textDirection, style, _textStyle, _style];
|
9371
|
+
return [text, textDirection, style, font, _textStyle, _style];
|
9231
9372
|
}
|
9232
9373
|
|
9233
9374
|
class TextBlock extends SvelteComponent {
|
@@ -9242,9 +9383,10 @@ class TextBlock extends SvelteComponent {
|
|
9242
9383
|
safe_not_equal,
|
9243
9384
|
{
|
9244
9385
|
text: 0,
|
9245
|
-
|
9386
|
+
font: 3,
|
9387
|
+
_textStyle: 4,
|
9246
9388
|
textDirection: 1,
|
9247
|
-
_style:
|
9389
|
+
_style: 5
|
9248
9390
|
},
|
9249
9391
|
add_css$2
|
9250
9392
|
);
|
@@ -9259,9 +9401,6 @@ function add_css$1(target) {
|
|
9259
9401
|
|
9260
9402
|
function create_fragment$1(ctx) {
|
9261
9403
|
let div;
|
9262
|
-
let link;
|
9263
|
-
let link_href_value;
|
9264
|
-
let t;
|
9265
9404
|
let button;
|
9266
9405
|
let rendertext;
|
9267
9406
|
let current;
|
@@ -9272,12 +9411,8 @@ function create_fragment$1(ctx) {
|
|
9272
9411
|
return {
|
9273
9412
|
c() {
|
9274
9413
|
div = element("div");
|
9275
|
-
link = element("link");
|
9276
|
-
t = space();
|
9277
9414
|
button = element("button");
|
9278
9415
|
create_component(rendertext.$$.fragment);
|
9279
|
-
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`);
|
9280
|
-
attr(link, "rel", "stylesheet");
|
9281
9416
|
attr(button, "class", "text-button svelte-1t5i3za");
|
9282
9417
|
attr(button, "style", /*_buttonStyle*/ ctx[1]);
|
9283
9418
|
attr(div, "class", "text-button-block svelte-1t5i3za");
|
@@ -9285,8 +9420,6 @@ function create_fragment$1(ctx) {
|
|
9285
9420
|
},
|
9286
9421
|
m(target, anchor) {
|
9287
9422
|
insert(target, div, anchor);
|
9288
|
-
append(div, link);
|
9289
|
-
append(div, t);
|
9290
9423
|
append(div, button);
|
9291
9424
|
mount_component(rendertext, button, null);
|
9292
9425
|
current = true;
|
@@ -9297,10 +9430,6 @@ function create_fragment$1(ctx) {
|
|
9297
9430
|
}
|
9298
9431
|
},
|
9299
9432
|
p(ctx, [dirty]) {
|
9300
|
-
if (!current || dirty & /*text*/ 1 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`)) {
|
9301
|
-
attr(link, "href", link_href_value);
|
9302
|
-
}
|
9303
|
-
|
9304
9433
|
const rendertext_changes = {};
|
9305
9434
|
if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
|
9306
9435
|
rendertext.$set(rendertext_changes);
|
@@ -9344,6 +9473,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
9344
9473
|
};
|
9345
9474
|
|
9346
9475
|
let { eventName = '' } = $$props;
|
9476
|
+
let { font = SYSTEM_FONT } = $$props;
|
9347
9477
|
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;
|
9348
9478
|
let { _style = 'background-color: #000000; border-radius:4px;' } = $$props;
|
9349
9479
|
|
@@ -9351,11 +9481,18 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
9351
9481
|
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
9352
9482
|
if ('onClick' in $$props) $$invalidate(4, onClick = $$props.onClick);
|
9353
9483
|
if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
|
9484
|
+
if ('font' in $$props) $$invalidate(6, font = $$props.font);
|
9354
9485
|
if ('_buttonStyle' in $$props) $$invalidate(1, _buttonStyle = $$props._buttonStyle);
|
9355
9486
|
if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
|
9356
9487
|
};
|
9357
9488
|
|
9358
|
-
|
9489
|
+
$$self.$$.update = () => {
|
9490
|
+
if ($$self.$$.dirty & /*font*/ 64) {
|
9491
|
+
addFont(font);
|
9492
|
+
}
|
9493
|
+
};
|
9494
|
+
|
9495
|
+
return [text, _buttonStyle, _style, click, onClick, eventName, font];
|
9359
9496
|
}
|
9360
9497
|
|
9361
9498
|
class TextButtonBlock extends SvelteComponent {
|
@@ -9372,6 +9509,7 @@ class TextButtonBlock extends SvelteComponent {
|
|
9372
9509
|
text: 0,
|
9373
9510
|
onClick: 4,
|
9374
9511
|
eventName: 5,
|
9512
|
+
font: 6,
|
9375
9513
|
_buttonStyle: 1,
|
9376
9514
|
_style: 2
|
9377
9515
|
},
|
@@ -9503,4 +9641,4 @@ class ImageBlock extends SvelteComponent {
|
|
9503
9641
|
}
|
9504
9642
|
}
|
9505
9643
|
|
9506
|
-
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 };
|
9644
|
+
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 };
|