@plaidev/karte-action-sdk 1.1.120 → 1.1.121-27933307.3ec68f65
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 +67 -1
- package/dist/hydrate/index.es.js +483 -204
- package/dist/index.es.d.ts +67 -1
- package/dist/index.es.js +437 -176
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { writable, get } from 'svelte/store';
|
2
2
|
import { linear, elasticOut, cubicOut } from 'svelte/easing';
|
3
|
-
import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, mount_component, insert, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, attr, noop, listen, is_function, append, add_render_callback, create_in_transition, svg_element, binding_callbacks, destroy_each, text, set_data, null_to_empty, src_url_equal
|
3
|
+
import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, mount_component, insert, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, attr, noop, listen, is_function, append, add_render_callback, create_in_transition, svg_element, binding_callbacks, destroy_each, text, set_data, null_to_empty, src_url_equal } from 'svelte/internal';
|
4
4
|
import { setContext, getContext, createEventDispatcher, onMount, onDestroy as onDestroy$1 } from 'svelte';
|
5
5
|
|
6
6
|
/** @internal */
|
@@ -1320,6 +1320,21 @@ const DefaultSlideNavigationButton = {
|
|
1320
1320
|
color: '#ddd',
|
1321
1321
|
colorActive: '#666',
|
1322
1322
|
};
|
1323
|
+
/** @internal */
|
1324
|
+
const DefaultFormButtonStyle = {
|
1325
|
+
size: '16px',
|
1326
|
+
colorActive: '#2aab9f',
|
1327
|
+
colorInactive: 'rgba(0, 16, 14, 0.06)',
|
1328
|
+
};
|
1329
|
+
/** @internal */
|
1330
|
+
const DefaultFormSelectStyle = {
|
1331
|
+
colorArrow: '#333',
|
1332
|
+
colorFocused: '#2aab9f',
|
1333
|
+
};
|
1334
|
+
/** @internal */
|
1335
|
+
const FormRatingButtonTypes = ['star', 'face'];
|
1336
|
+
/** @internal */
|
1337
|
+
const DefaultFormRatingButtonType = 'star';
|
1323
1338
|
|
1324
1339
|
/**
|
1325
1340
|
* アクションが作成 (create) される前にフックする関数
|
@@ -3954,43 +3969,107 @@ class RenderText extends SvelteComponent {
|
|
3954
3969
|
/* src/components/TextElement.svelte generated by Svelte v3.53.1 */
|
3955
3970
|
|
3956
3971
|
function add_css$h(target) {
|
3957
|
-
append_styles(target, "svelte-
|
3972
|
+
append_styles(target, "svelte-13cs3g2", ".text-element-wrapper.svelte-13cs3g2.svelte-13cs3g2{position:relative;height:100%}.text-element.svelte-13cs3g2.svelte-13cs3g2{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;overflow:auto}.text-element-inner.svelte-13cs3g2.svelte-13cs3g2{width:100%;height:auto}.text-direction-vertical.svelte-13cs3g2.svelte-13cs3g2{writing-mode:vertical-rl}.text-direction-vertical.svelte-13cs3g2 .text-element-inner.svelte-13cs3g2{width:auto;height:100%}.tooltip.svelte-13cs3g2.svelte-13cs3g2{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-13cs3g2.svelte-13cs3g2:before{content:'';position:absolute;top:-13px;left:50%;margin-left:-7px;border:7px solid transparent;border-bottom:7px solid #3d4948}.tooltip.show.svelte-13cs3g2.svelte-13cs3g2{display:block}.tooltip-error.svelte-13cs3g2.svelte-13cs3g2{background-color:#c00}.tooltip-error.svelte-13cs3g2.svelte-13cs3g2:before{border-bottom:7px solid #c00}");
|
3973
|
+
}
|
3974
|
+
|
3975
|
+
// (56:2) {#if enableCopy}
|
3976
|
+
function create_if_block$3(ctx) {
|
3977
|
+
let div0;
|
3978
|
+
let t1;
|
3979
|
+
let div1;
|
3980
|
+
|
3981
|
+
return {
|
3982
|
+
c() {
|
3983
|
+
div0 = element("div");
|
3984
|
+
div0.textContent = "コピーしました";
|
3985
|
+
t1 = space();
|
3986
|
+
div1 = element("div");
|
3987
|
+
div1.textContent = "コピーできませんでした";
|
3988
|
+
attr(div0, "class", "tooltip svelte-13cs3g2");
|
3989
|
+
attr(div1, "class", "tooltip tooltip-error svelte-13cs3g2");
|
3990
|
+
},
|
3991
|
+
m(target, anchor) {
|
3992
|
+
insert(target, div0, anchor);
|
3993
|
+
/*div0_binding*/ ctx[9](div0);
|
3994
|
+
insert(target, t1, anchor);
|
3995
|
+
insert(target, div1, anchor);
|
3996
|
+
/*div1_binding*/ ctx[10](div1);
|
3997
|
+
},
|
3998
|
+
p: noop,
|
3999
|
+
d(detaching) {
|
4000
|
+
if (detaching) detach(div0);
|
4001
|
+
/*div0_binding*/ ctx[9](null);
|
4002
|
+
if (detaching) detach(t1);
|
4003
|
+
if (detaching) detach(div1);
|
4004
|
+
/*div1_binding*/ ctx[10](null);
|
4005
|
+
}
|
4006
|
+
};
|
3958
4007
|
}
|
3959
4008
|
|
3960
4009
|
function create_fragment$h(ctx) {
|
4010
|
+
let div2;
|
3961
4011
|
let div1;
|
3962
4012
|
let div0;
|
3963
4013
|
let rendertext;
|
3964
4014
|
let div1_class_value;
|
4015
|
+
let t;
|
3965
4016
|
let current;
|
4017
|
+
let mounted;
|
4018
|
+
let dispose;
|
3966
4019
|
rendertext = new RenderText({ props: { text: /*text*/ ctx[0] } });
|
4020
|
+
let if_block = /*enableCopy*/ ctx[1] && create_if_block$3(ctx);
|
3967
4021
|
|
3968
4022
|
return {
|
3969
4023
|
c() {
|
4024
|
+
div2 = element("div");
|
3970
4025
|
div1 = element("div");
|
3971
4026
|
div0 = element("div");
|
3972
4027
|
create_component(rendertext.$$.fragment);
|
3973
|
-
|
3974
|
-
|
3975
|
-
attr(
|
4028
|
+
t = space();
|
4029
|
+
if (if_block) if_block.c();
|
4030
|
+
attr(div0, "class", "text-element-inner svelte-13cs3g2");
|
4031
|
+
attr(div1, "class", div1_class_value = "" + (null_to_empty(`text-element text-direction-${/*textDirection*/ ctx[2]}`) + " svelte-13cs3g2"));
|
4032
|
+
attr(div1, "style", /*style*/ ctx[5]);
|
4033
|
+
attr(div2, "class", "text-element-wrapper svelte-13cs3g2");
|
3976
4034
|
},
|
3977
4035
|
m(target, anchor) {
|
3978
|
-
insert(target,
|
4036
|
+
insert(target, div2, anchor);
|
4037
|
+
append(div2, div1);
|
3979
4038
|
append(div1, div0);
|
3980
4039
|
mount_component(rendertext, div0, null);
|
4040
|
+
append(div2, t);
|
4041
|
+
if (if_block) if_block.m(div2, null);
|
3981
4042
|
current = true;
|
4043
|
+
|
4044
|
+
if (!mounted) {
|
4045
|
+
dispose = listen(div1, "click", /*click*/ ctx[6]);
|
4046
|
+
mounted = true;
|
4047
|
+
}
|
3982
4048
|
},
|
3983
4049
|
p(ctx, [dirty]) {
|
3984
4050
|
const rendertext_changes = {};
|
3985
4051
|
if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
|
3986
4052
|
rendertext.$set(rendertext_changes);
|
3987
4053
|
|
3988
|
-
if (!current || dirty & /*textDirection*/
|
4054
|
+
if (!current || dirty & /*textDirection*/ 4 && div1_class_value !== (div1_class_value = "" + (null_to_empty(`text-element text-direction-${/*textDirection*/ ctx[2]}`) + " svelte-13cs3g2"))) {
|
3989
4055
|
attr(div1, "class", div1_class_value);
|
3990
4056
|
}
|
3991
4057
|
|
3992
|
-
if (!current || dirty & /*style*/
|
3993
|
-
attr(div1, "style", /*style*/ ctx[
|
4058
|
+
if (!current || dirty & /*style*/ 32) {
|
4059
|
+
attr(div1, "style", /*style*/ ctx[5]);
|
4060
|
+
}
|
4061
|
+
|
4062
|
+
if (/*enableCopy*/ ctx[1]) {
|
4063
|
+
if (if_block) {
|
4064
|
+
if_block.p(ctx, dirty);
|
4065
|
+
} else {
|
4066
|
+
if_block = create_if_block$3(ctx);
|
4067
|
+
if_block.c();
|
4068
|
+
if_block.m(div2, null);
|
4069
|
+
}
|
4070
|
+
} else if (if_block) {
|
4071
|
+
if_block.d(1);
|
4072
|
+
if_block = null;
|
3994
4073
|
}
|
3995
4074
|
},
|
3996
4075
|
i(local) {
|
@@ -4003,8 +4082,11 @@ function create_fragment$h(ctx) {
|
|
4003
4082
|
current = false;
|
4004
4083
|
},
|
4005
4084
|
d(detaching) {
|
4006
|
-
if (detaching) detach(
|
4085
|
+
if (detaching) detach(div2);
|
4007
4086
|
destroy_component(rendertext);
|
4087
|
+
if (if_block) if_block.d();
|
4088
|
+
mounted = false;
|
4089
|
+
dispose();
|
4008
4090
|
}
|
4009
4091
|
};
|
4010
4092
|
}
|
@@ -4012,24 +4094,74 @@ function create_fragment$h(ctx) {
|
|
4012
4094
|
function instance$h($$self, $$props, $$invalidate) {
|
4013
4095
|
let style;
|
4014
4096
|
let { text = 'サンプルSample' } = $$props;
|
4097
|
+
let { enableCopy = false } = $$props;
|
4098
|
+
let tooltipEl;
|
4099
|
+
let tooltipErrorEl;
|
4100
|
+
|
4101
|
+
const click = async () => {
|
4102
|
+
if (enableCopy) {
|
4103
|
+
try {
|
4104
|
+
await navigator.clipboard.writeText(text);
|
4105
|
+
tooltipEl.classList.add('show');
|
4106
|
+
} catch(err) {
|
4107
|
+
tooltipErrorEl.classList.add('show');
|
4108
|
+
}
|
4109
|
+
|
4110
|
+
setTimeout(
|
4111
|
+
() => {
|
4112
|
+
tooltipEl.classList.remove('show');
|
4113
|
+
tooltipErrorEl.classList.remove('show');
|
4114
|
+
},
|
4115
|
+
1000
|
4116
|
+
);
|
4117
|
+
}
|
4118
|
+
};
|
4119
|
+
|
4015
4120
|
let { _textStyle = 'font-size:12px;' } = $$props;
|
4016
4121
|
let { textDirection = 'horizontal' } = $$props;
|
4017
4122
|
let { _style = '' } = $$props;
|
4018
4123
|
|
4124
|
+
function div0_binding($$value) {
|
4125
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
4126
|
+
tooltipEl = $$value;
|
4127
|
+
$$invalidate(3, tooltipEl);
|
4128
|
+
});
|
4129
|
+
}
|
4130
|
+
|
4131
|
+
function div1_binding($$value) {
|
4132
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
4133
|
+
tooltipErrorEl = $$value;
|
4134
|
+
$$invalidate(4, tooltipErrorEl);
|
4135
|
+
});
|
4136
|
+
}
|
4137
|
+
|
4019
4138
|
$$self.$$set = $$props => {
|
4020
4139
|
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
4021
|
-
if ('
|
4022
|
-
if ('
|
4023
|
-
if ('
|
4140
|
+
if ('enableCopy' in $$props) $$invalidate(1, enableCopy = $$props.enableCopy);
|
4141
|
+
if ('_textStyle' in $$props) $$invalidate(7, _textStyle = $$props._textStyle);
|
4142
|
+
if ('textDirection' in $$props) $$invalidate(2, textDirection = $$props.textDirection);
|
4143
|
+
if ('_style' in $$props) $$invalidate(8, _style = $$props._style);
|
4024
4144
|
};
|
4025
4145
|
|
4026
4146
|
$$self.$$.update = () => {
|
4027
|
-
if ($$self.$$.dirty & /*_textStyle, _style*/
|
4028
|
-
$$invalidate(
|
4147
|
+
if ($$self.$$.dirty & /*_textStyle, _style*/ 384) {
|
4148
|
+
$$invalidate(5, style = [..._textStyle.split(';'), ..._style.split(';')].join(';'));
|
4029
4149
|
}
|
4030
4150
|
};
|
4031
4151
|
|
4032
|
-
return [
|
4152
|
+
return [
|
4153
|
+
text,
|
4154
|
+
enableCopy,
|
4155
|
+
textDirection,
|
4156
|
+
tooltipEl,
|
4157
|
+
tooltipErrorEl,
|
4158
|
+
style,
|
4159
|
+
click,
|
4160
|
+
_textStyle,
|
4161
|
+
_style,
|
4162
|
+
div0_binding,
|
4163
|
+
div1_binding
|
4164
|
+
];
|
4033
4165
|
}
|
4034
4166
|
|
4035
4167
|
class TextElement extends SvelteComponent {
|
@@ -4044,9 +4176,10 @@ class TextElement extends SvelteComponent {
|
|
4044
4176
|
safe_not_equal,
|
4045
4177
|
{
|
4046
4178
|
text: 0,
|
4047
|
-
|
4048
|
-
|
4049
|
-
|
4179
|
+
enableCopy: 1,
|
4180
|
+
_textStyle: 7,
|
4181
|
+
textDirection: 2,
|
4182
|
+
_style: 8
|
4050
4183
|
},
|
4051
4184
|
add_css$h
|
4052
4185
|
);
|
@@ -5263,17 +5396,17 @@ class FormTextarea extends SvelteComponent {
|
|
5263
5396
|
/* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
|
5264
5397
|
|
5265
5398
|
function add_css$8(target) {
|
5266
|
-
append_styles(target, "svelte-
|
5399
|
+
append_styles(target, "svelte-1k9zlui", ".radio-buttons.svelte-1k9zlui{display:flex;justify-content:space-evenly;flex-direction:column;width:100%;height:100%}.radio-button.svelte-1k9zlui{cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-1k9zlui{appearance:none;margin:0;width:var(--size);height:var(--size);box-sizing:border-box;border-radius:var(--size);position:relative;background-color:var(--color-inactive);cursor:pointer}.radio-button-input.svelte-1k9zlui:checked{border:solid calc(var(--size) / 3) var(--color-active);background-color:#fff;box-shadow:0px 1px 8px 2px rgba(18,160,160,.08),0px 1px 4px -1px rgba(18,160,160,.24)}.radio-button-text.svelte-1k9zlui{margin-left:0.5em}");
|
5267
5400
|
}
|
5268
5401
|
|
5269
5402
|
function get_each_context$4(ctx, list, i) {
|
5270
5403
|
const child_ctx = ctx.slice();
|
5271
|
-
child_ctx[
|
5272
|
-
child_ctx[
|
5404
|
+
child_ctx[11] = list[i];
|
5405
|
+
child_ctx[13] = i;
|
5273
5406
|
return child_ctx;
|
5274
5407
|
}
|
5275
5408
|
|
5276
|
-
// (
|
5409
|
+
// (49:2) {#each _options as option, i}
|
5277
5410
|
function create_each_block$4(ctx) {
|
5278
5411
|
let label;
|
5279
5412
|
let input;
|
@@ -5281,7 +5414,7 @@ function create_each_block$4(ctx) {
|
|
5281
5414
|
let input_checked_value;
|
5282
5415
|
let t0;
|
5283
5416
|
let span;
|
5284
|
-
let t1_value = /*option*/ ctx[
|
5417
|
+
let t1_value = /*option*/ ctx[11] + "";
|
5285
5418
|
let t1;
|
5286
5419
|
let t2;
|
5287
5420
|
let mounted;
|
@@ -5296,12 +5429,14 @@ function create_each_block$4(ctx) {
|
|
5296
5429
|
t1 = text(t1_value);
|
5297
5430
|
t2 = space();
|
5298
5431
|
attr(input, "type", "radio");
|
5299
|
-
attr(input, "class", "radio-button-input svelte-
|
5432
|
+
attr(input, "class", "radio-button-input svelte-1k9zlui");
|
5433
|
+
attr(input, "style", /*_buttonStyle*/ ctx[4]);
|
5300
5434
|
attr(input, "name", /*name*/ ctx[0]);
|
5301
|
-
input.value = input_value_value = /*option*/ ctx[
|
5302
|
-
input.checked = input_checked_value = /*option*/ ctx[
|
5303
|
-
attr(span, "class", "radio-button-text svelte-
|
5304
|
-
attr(
|
5435
|
+
input.value = input_value_value = /*option*/ ctx[11];
|
5436
|
+
input.checked = input_checked_value = /*option*/ ctx[11] === /*_value*/ ctx[2];
|
5437
|
+
attr(span, "class", "radio-button-text svelte-1k9zlui");
|
5438
|
+
attr(span, "style", /*textStyle*/ ctx[1]);
|
5439
|
+
attr(label, "class", "radio-button svelte-1k9zlui");
|
5305
5440
|
},
|
5306
5441
|
m(target, anchor) {
|
5307
5442
|
insert(target, label, anchor);
|
@@ -5312,26 +5447,34 @@ function create_each_block$4(ctx) {
|
|
5312
5447
|
append(label, t2);
|
5313
5448
|
|
5314
5449
|
if (!mounted) {
|
5315
|
-
dispose = listen(input, "change", /*handleChange*/ ctx[
|
5450
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[6](/*i*/ ctx[13]));
|
5316
5451
|
mounted = true;
|
5317
5452
|
}
|
5318
5453
|
},
|
5319
5454
|
p(new_ctx, dirty) {
|
5320
5455
|
ctx = new_ctx;
|
5321
5456
|
|
5457
|
+
if (dirty & /*_buttonStyle*/ 16) {
|
5458
|
+
attr(input, "style", /*_buttonStyle*/ ctx[4]);
|
5459
|
+
}
|
5460
|
+
|
5322
5461
|
if (dirty & /*name*/ 1) {
|
5323
5462
|
attr(input, "name", /*name*/ ctx[0]);
|
5324
5463
|
}
|
5325
5464
|
|
5326
|
-
if (dirty & /*_options*/
|
5465
|
+
if (dirty & /*_options*/ 8 && input_value_value !== (input_value_value = /*option*/ ctx[11])) {
|
5327
5466
|
input.value = input_value_value;
|
5328
5467
|
}
|
5329
5468
|
|
5330
|
-
if (dirty & /*_options, _value*/
|
5469
|
+
if (dirty & /*_options, _value*/ 12 && input_checked_value !== (input_checked_value = /*option*/ ctx[11] === /*_value*/ ctx[2])) {
|
5331
5470
|
input.checked = input_checked_value;
|
5332
5471
|
}
|
5333
5472
|
|
5334
|
-
if (dirty & /*_options*/
|
5473
|
+
if (dirty & /*_options*/ 8 && t1_value !== (t1_value = /*option*/ ctx[11] + "")) set_data(t1, t1_value);
|
5474
|
+
|
5475
|
+
if (dirty & /*textStyle*/ 2) {
|
5476
|
+
attr(span, "style", /*textStyle*/ ctx[1]);
|
5477
|
+
}
|
5335
5478
|
},
|
5336
5479
|
d(detaching) {
|
5337
5480
|
if (detaching) detach(label);
|
@@ -5343,7 +5486,7 @@ function create_each_block$4(ctx) {
|
|
5343
5486
|
|
5344
5487
|
function create_fragment$8(ctx) {
|
5345
5488
|
let div;
|
5346
|
-
let each_value = /*_options*/ ctx[
|
5489
|
+
let each_value = /*_options*/ ctx[3];
|
5347
5490
|
let each_blocks = [];
|
5348
5491
|
|
5349
5492
|
for (let i = 0; i < each_value.length; i += 1) {
|
@@ -5358,7 +5501,7 @@ function create_fragment$8(ctx) {
|
|
5358
5501
|
each_blocks[i].c();
|
5359
5502
|
}
|
5360
5503
|
|
5361
|
-
attr(div, "class", "radio-buttons svelte-
|
5504
|
+
attr(div, "class", "radio-buttons svelte-1k9zlui");
|
5362
5505
|
},
|
5363
5506
|
m(target, anchor) {
|
5364
5507
|
insert(target, div, anchor);
|
@@ -5368,8 +5511,8 @@ function create_fragment$8(ctx) {
|
|
5368
5511
|
}
|
5369
5512
|
},
|
5370
5513
|
p(ctx, [dirty]) {
|
5371
|
-
if (dirty & /*_options, name, _value, handleChange*/
|
5372
|
-
each_value = /*_options*/ ctx[
|
5514
|
+
if (dirty & /*textStyle, _options, _buttonStyle, name, _value, handleChange*/ 95) {
|
5515
|
+
each_value = /*_options*/ ctx[3];
|
5373
5516
|
let i;
|
5374
5517
|
|
5375
5518
|
for (i = 0; i < each_value.length; i += 1) {
|
@@ -5402,10 +5545,19 @@ function create_fragment$8(ctx) {
|
|
5402
5545
|
|
5403
5546
|
function instance$8($$self, $$props, $$invalidate) {
|
5404
5547
|
let _options;
|
5548
|
+
let _buttonStyle;
|
5405
5549
|
let _value;
|
5406
5550
|
let $value;
|
5407
5551
|
let { name = '' } = $$props;
|
5408
5552
|
let { options = 'ラジオボタン1,ラジオボタン2,ラジオボタン3' } = $$props;
|
5553
|
+
let { textStyle = 'color: #333; font-size: 12px;' } = $$props;
|
5554
|
+
|
5555
|
+
let { buttonStyle = {
|
5556
|
+
size: '16px',
|
5557
|
+
colorActive: '#2aab9f',
|
5558
|
+
colorInactive: 'rgba(0, 16, 14, 0.06)'
|
5559
|
+
} } = $$props;
|
5560
|
+
|
5409
5561
|
const { path: statePath } = getStateItemContext();
|
5410
5562
|
|
5411
5563
|
const value = registerInput({
|
@@ -5417,7 +5569,7 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
5417
5569
|
}
|
5418
5570
|
});
|
5419
5571
|
|
5420
|
-
component_subscribe($$self, value, value => $$invalidate(
|
5572
|
+
component_subscribe($$self, value, value => $$invalidate(9, $value = value));
|
5421
5573
|
|
5422
5574
|
const handleChange = index => event => {
|
5423
5575
|
if (event.target.checked) {
|
@@ -5427,43 +5579,74 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
5427
5579
|
|
5428
5580
|
$$self.$$set = $$props => {
|
5429
5581
|
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
5430
|
-
if ('options' in $$props) $$invalidate(
|
5582
|
+
if ('options' in $$props) $$invalidate(7, options = $$props.options);
|
5583
|
+
if ('textStyle' in $$props) $$invalidate(1, textStyle = $$props.textStyle);
|
5584
|
+
if ('buttonStyle' in $$props) $$invalidate(8, buttonStyle = $$props.buttonStyle);
|
5431
5585
|
};
|
5432
5586
|
|
5433
5587
|
$$self.$$.update = () => {
|
5434
|
-
if ($$self.$$.dirty & /*options*/
|
5435
|
-
$$invalidate(
|
5588
|
+
if ($$self.$$.dirty & /*options*/ 128) {
|
5589
|
+
$$invalidate(3, _options = options.split(','));
|
5590
|
+
}
|
5591
|
+
|
5592
|
+
if ($$self.$$.dirty & /*buttonStyle*/ 256) {
|
5593
|
+
$$invalidate(4, _buttonStyle = `--size: ${buttonStyle.size}; --color-active: ${buttonStyle.colorActive}; --color-inactive: ${buttonStyle.colorInactive}`);
|
5436
5594
|
}
|
5437
5595
|
|
5438
|
-
if ($$self.$$.dirty & /*$value*/
|
5439
|
-
$$invalidate(
|
5596
|
+
if ($$self.$$.dirty & /*$value*/ 512) {
|
5597
|
+
$$invalidate(2, _value = $value[0]);
|
5440
5598
|
}
|
5441
5599
|
};
|
5442
5600
|
|
5443
|
-
return [
|
5601
|
+
return [
|
5602
|
+
name,
|
5603
|
+
textStyle,
|
5604
|
+
_value,
|
5605
|
+
_options,
|
5606
|
+
_buttonStyle,
|
5607
|
+
value,
|
5608
|
+
handleChange,
|
5609
|
+
options,
|
5610
|
+
buttonStyle,
|
5611
|
+
$value
|
5612
|
+
];
|
5444
5613
|
}
|
5445
5614
|
|
5446
5615
|
class FormRadioButtons extends SvelteComponent {
|
5447
5616
|
constructor(options) {
|
5448
5617
|
super();
|
5449
|
-
|
5618
|
+
|
5619
|
+
init(
|
5620
|
+
this,
|
5621
|
+
options,
|
5622
|
+
instance$8,
|
5623
|
+
create_fragment$8,
|
5624
|
+
safe_not_equal,
|
5625
|
+
{
|
5626
|
+
name: 0,
|
5627
|
+
options: 7,
|
5628
|
+
textStyle: 1,
|
5629
|
+
buttonStyle: 8
|
5630
|
+
},
|
5631
|
+
add_css$8
|
5632
|
+
);
|
5450
5633
|
}
|
5451
5634
|
}
|
5452
5635
|
|
5453
5636
|
/* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
|
5454
5637
|
|
5455
5638
|
function add_css$7(target) {
|
5456
|
-
append_styles(target, "svelte-
|
5639
|
+
append_styles(target, "svelte-1c94amx", ".select-wrapper.svelte-1c94amx{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%;position:relative\n}.select-select.svelte-1c94amx{position:relative;appearance:none;width:100%}.select-select.svelte-1c94amx:focus{outline:none;border-color:var(--color-focused) !important}.select-icon.svelte-1c94amx{position:absolute;width:0.5em;height:0.5em;top:calc(50% - 0.2em);right:0.8em;box-sizing:border-box;border-right:solid 2px var(--color-arrow);border-top:solid 2px var(--color-arrow);transform:translateY(-35.4%) rotate(135deg);pointer-events:none}");
|
5457
5640
|
}
|
5458
5641
|
|
5459
5642
|
function get_each_context$3(ctx, list, i) {
|
5460
5643
|
const child_ctx = ctx.slice();
|
5461
|
-
child_ctx[
|
5462
|
-
child_ctx[
|
5644
|
+
child_ctx[9] = list[i];
|
5645
|
+
child_ctx[11] = i;
|
5463
5646
|
return child_ctx;
|
5464
5647
|
}
|
5465
5648
|
|
5466
|
-
// (
|
5649
|
+
// (47:10) {:else}
|
5467
5650
|
function create_else_block(ctx) {
|
5468
5651
|
let t;
|
5469
5652
|
|
@@ -5481,9 +5664,9 @@ function create_else_block(ctx) {
|
|
5481
5664
|
};
|
5482
5665
|
}
|
5483
5666
|
|
5484
|
-
// (
|
5485
|
-
function create_if_block$
|
5486
|
-
let t_value = /*option*/ ctx[
|
5667
|
+
// (45:10) {#if option}
|
5668
|
+
function create_if_block$2(ctx) {
|
5669
|
+
let t_value = /*option*/ ctx[9] + "";
|
5487
5670
|
let t;
|
5488
5671
|
|
5489
5672
|
return {
|
@@ -5494,7 +5677,7 @@ function create_if_block$3(ctx) {
|
|
5494
5677
|
insert(target, t, anchor);
|
5495
5678
|
},
|
5496
5679
|
p(ctx, dirty) {
|
5497
|
-
if (dirty & /*_options*/
|
5680
|
+
if (dirty & /*_options*/ 4 && t_value !== (t_value = /*option*/ ctx[9] + "")) set_data(t, t_value);
|
5498
5681
|
},
|
5499
5682
|
d(detaching) {
|
5500
5683
|
if (detaching) detach(t);
|
@@ -5502,14 +5685,14 @@ function create_if_block$3(ctx) {
|
|
5502
5685
|
};
|
5503
5686
|
}
|
5504
5687
|
|
5505
|
-
// (
|
5688
|
+
// (43:6) {#each _options as option, i}
|
5506
5689
|
function create_each_block$3(ctx) {
|
5507
5690
|
let option;
|
5508
5691
|
let t;
|
5509
5692
|
let option_value_value;
|
5510
5693
|
|
5511
5694
|
function select_block_type(ctx, dirty) {
|
5512
|
-
if (/*option*/ ctx[
|
5695
|
+
if (/*option*/ ctx[9]) return create_if_block$2;
|
5513
5696
|
return create_else_block;
|
5514
5697
|
}
|
5515
5698
|
|
@@ -5521,7 +5704,7 @@ function create_each_block$3(ctx) {
|
|
5521
5704
|
option = element("option");
|
5522
5705
|
if_block.c();
|
5523
5706
|
t = space();
|
5524
|
-
option.__value = option_value_value = /*option*/ ctx[
|
5707
|
+
option.__value = option_value_value = /*option*/ ctx[9];
|
5525
5708
|
option.value = option.__value;
|
5526
5709
|
},
|
5527
5710
|
m(target, anchor) {
|
@@ -5542,7 +5725,7 @@ function create_each_block$3(ctx) {
|
|
5542
5725
|
}
|
5543
5726
|
}
|
5544
5727
|
|
5545
|
-
if (dirty & /*_options*/
|
5728
|
+
if (dirty & /*_options*/ 4 && option_value_value !== (option_value_value = /*option*/ ctx[9])) {
|
5546
5729
|
option.__value = option_value_value;
|
5547
5730
|
option.value = option.__value;
|
5548
5731
|
}
|
@@ -5562,7 +5745,7 @@ function create_fragment$7(ctx) {
|
|
5562
5745
|
let div0;
|
5563
5746
|
let mounted;
|
5564
5747
|
let dispose;
|
5565
|
-
let each_value = /*_options*/ ctx[
|
5748
|
+
let each_value = /*_options*/ ctx[2];
|
5566
5749
|
let each_blocks = [];
|
5567
5750
|
|
5568
5751
|
for (let i = 0; i < each_value.length; i += 1) {
|
@@ -5581,10 +5764,12 @@ function create_fragment$7(ctx) {
|
|
5581
5764
|
|
5582
5765
|
t = space();
|
5583
5766
|
div0 = element("div");
|
5584
|
-
attr(select, "class", "select-select svelte-
|
5585
|
-
attr(
|
5767
|
+
attr(select, "class", "select-select svelte-1c94amx");
|
5768
|
+
attr(select, "style", /*_style*/ ctx[0]);
|
5769
|
+
attr(div0, "class", "select-icon svelte-1c94amx");
|
5586
5770
|
attr(div1, "class", "select");
|
5587
|
-
attr(
|
5771
|
+
attr(div1, "style", /*styleVariables*/ ctx[1]);
|
5772
|
+
attr(div2, "class", "select-wrapper svelte-1c94amx");
|
5588
5773
|
},
|
5589
5774
|
m(target, anchor) {
|
5590
5775
|
insert(target, div2, anchor);
|
@@ -5599,13 +5784,13 @@ function create_fragment$7(ctx) {
|
|
5599
5784
|
append(div1, div0);
|
5600
5785
|
|
5601
5786
|
if (!mounted) {
|
5602
|
-
dispose = listen(select, "change", /*handleChange*/ ctx[
|
5787
|
+
dispose = listen(select, "change", /*handleChange*/ ctx[3]);
|
5603
5788
|
mounted = true;
|
5604
5789
|
}
|
5605
5790
|
},
|
5606
5791
|
p(ctx, [dirty]) {
|
5607
|
-
if (dirty & /*_options*/
|
5608
|
-
each_value = /*_options*/ ctx[
|
5792
|
+
if (dirty & /*_options*/ 4) {
|
5793
|
+
each_value = /*_options*/ ctx[2];
|
5609
5794
|
let i;
|
5610
5795
|
|
5611
5796
|
for (i = 0; i < each_value.length; i += 1) {
|
@@ -5626,6 +5811,14 @@ function create_fragment$7(ctx) {
|
|
5626
5811
|
|
5627
5812
|
each_blocks.length = each_value.length;
|
5628
5813
|
}
|
5814
|
+
|
5815
|
+
if (dirty & /*_style*/ 1) {
|
5816
|
+
attr(select, "style", /*_style*/ ctx[0]);
|
5817
|
+
}
|
5818
|
+
|
5819
|
+
if (dirty & /*styleVariables*/ 2) {
|
5820
|
+
attr(div1, "style", /*styleVariables*/ ctx[1]);
|
5821
|
+
}
|
5629
5822
|
},
|
5630
5823
|
i: noop,
|
5631
5824
|
o: noop,
|
@@ -5640,8 +5833,16 @@ function create_fragment$7(ctx) {
|
|
5640
5833
|
|
5641
5834
|
function instance$7($$self, $$props, $$invalidate) {
|
5642
5835
|
let _options;
|
5836
|
+
let styleVariables;
|
5643
5837
|
let { name = '' } = $$props;
|
5644
5838
|
let { options = 'プルダウン1,プルダウン2,プルダウン3' } = $$props;
|
5839
|
+
let { _style = 'color: #333; cursor: pointer; background-color: #fff; border: solid 2px #ccc; border-radius: 6px; font-size: 12px; padding: 10px 30px 10px 10px;' } = $$props;
|
5840
|
+
|
5841
|
+
let { selectStyle = {
|
5842
|
+
colorArrow: '#333',
|
5843
|
+
colorFocused: '#2aab9f'
|
5844
|
+
} } = $$props;
|
5845
|
+
|
5645
5846
|
const { path: statePath } = getStateItemContext();
|
5646
5847
|
|
5647
5848
|
const value = registerInput({
|
@@ -5659,118 +5860,115 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
5659
5860
|
}
|
5660
5861
|
|
5661
5862
|
$$self.$$set = $$props => {
|
5662
|
-
if ('name' in $$props) $$invalidate(
|
5663
|
-
if ('options' in $$props) $$invalidate(
|
5863
|
+
if ('name' in $$props) $$invalidate(4, name = $$props.name);
|
5864
|
+
if ('options' in $$props) $$invalidate(5, options = $$props.options);
|
5865
|
+
if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
|
5866
|
+
if ('selectStyle' in $$props) $$invalidate(6, selectStyle = $$props.selectStyle);
|
5664
5867
|
};
|
5665
5868
|
|
5666
5869
|
$$self.$$.update = () => {
|
5667
|
-
if ($$self.$$.dirty & /*options*/
|
5668
|
-
$$invalidate(
|
5870
|
+
if ($$self.$$.dirty & /*options*/ 32) {
|
5871
|
+
$$invalidate(2, _options = ['', ...options.split(',')]);
|
5872
|
+
}
|
5873
|
+
|
5874
|
+
if ($$self.$$.dirty & /*selectStyle*/ 64) {
|
5875
|
+
$$invalidate(1, styleVariables = `--color-arrow: ${selectStyle.colorArrow}; --color-focused: ${selectStyle.colorFocused}`);
|
5669
5876
|
}
|
5670
5877
|
};
|
5671
5878
|
|
5672
|
-
return [_options, handleChange, name, options];
|
5879
|
+
return [_style, styleVariables, _options, handleChange, name, options, selectStyle];
|
5673
5880
|
}
|
5674
5881
|
|
5675
5882
|
class FormSelect extends SvelteComponent {
|
5676
5883
|
constructor(options) {
|
5677
5884
|
super();
|
5678
|
-
|
5885
|
+
|
5886
|
+
init(
|
5887
|
+
this,
|
5888
|
+
options,
|
5889
|
+
instance$7,
|
5890
|
+
create_fragment$7,
|
5891
|
+
safe_not_equal,
|
5892
|
+
{
|
5893
|
+
name: 4,
|
5894
|
+
options: 5,
|
5895
|
+
_style: 0,
|
5896
|
+
selectStyle: 6
|
5897
|
+
},
|
5898
|
+
add_css$7
|
5899
|
+
);
|
5679
5900
|
}
|
5680
5901
|
}
|
5681
5902
|
|
5682
5903
|
/* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
|
5683
5904
|
|
5684
5905
|
function add_css$6(target) {
|
5685
|
-
append_styles(target, "svelte-
|
5906
|
+
append_styles(target, "svelte-15x08a", ".check-boxes.svelte-15x08a.svelte-15x08a{display:flex;justify-content:space-evenly;flex-direction:column;width:100%;height:100%}.check-box.svelte-15x08a.svelte-15x08a{display:flex;align-items:center;position:relative;cursor:pointer}.check-box-input.svelte-15x08a.svelte-15x08a{width:0;height:0;margin:0}.check-box-check.svelte-15x08a.svelte-15x08a{display:inline-flex;background-color:var(--color-active);width:var(--size);height:var(--size);border-radius:calc(var(--size) / 4);justify-content:center;align-items:center}.check-box-icon.svelte-15x08a.svelte-15x08a{display:inline-block;--icon-size:calc(var(--size) * 3 / 4);width:var(--icon-size);height:var(--icon-size)}.check-box-icon.svelte-15x08a.svelte-15x08a:after{content:'';display:block;box-sizing:border-box;width:45%;height:91%;transform:translate(60%, -8%) rotate(45deg);border-style:none solid solid none;border-width:2px;border-color:#fff}.check-box-check.svelte-15x08a.svelte-15x08a:not(._checked){background-color:var(--color-inactive)}.check-box-check.svelte-15x08a:not(._checked) .check-box-icon.svelte-15x08a{display:none}.check-box-text.svelte-15x08a.svelte-15x08a{margin-left:0.5em}");
|
5686
5907
|
}
|
5687
5908
|
|
5688
5909
|
function get_each_context$2(ctx, list, i) {
|
5689
5910
|
const child_ctx = ctx.slice();
|
5690
|
-
child_ctx[
|
5691
|
-
child_ctx[
|
5911
|
+
child_ctx[11] = list[i];
|
5912
|
+
child_ctx[13] = i;
|
5692
5913
|
return child_ctx;
|
5693
5914
|
}
|
5694
5915
|
|
5695
|
-
// (
|
5696
|
-
function create_if_block$2(ctx) {
|
5697
|
-
let span1;
|
5698
|
-
|
5699
|
-
return {
|
5700
|
-
c() {
|
5701
|
-
span1 = element("span");
|
5702
|
-
span1.innerHTML = `<span class="check-box-icon-inner svelte-1g004f9" style="border-color: #fff"></span>`;
|
5703
|
-
attr(span1, "class", "check-box-icon svelte-1g004f9");
|
5704
|
-
set_style(span1, "width", "0.9em");
|
5705
|
-
set_style(span1, "height", "0.9em");
|
5706
|
-
},
|
5707
|
-
m(target, anchor) {
|
5708
|
-
insert(target, span1, anchor);
|
5709
|
-
},
|
5710
|
-
d(detaching) {
|
5711
|
-
if (detaching) detach(span1);
|
5712
|
-
}
|
5713
|
-
};
|
5714
|
-
}
|
5715
|
-
|
5716
|
-
// (30:2) {#each _options as option, i}
|
5916
|
+
// (55:2) {#each _options as option, i}
|
5717
5917
|
function create_each_block$2(ctx) {
|
5718
5918
|
let label;
|
5719
5919
|
let input;
|
5720
5920
|
let input_checked_value;
|
5721
5921
|
let t0;
|
5922
|
+
let span1;
|
5722
5923
|
let span0;
|
5723
|
-
let
|
5724
|
-
let span0_style_value;
|
5924
|
+
let span1_class_value;
|
5725
5925
|
let t1;
|
5726
|
-
let
|
5727
|
-
let t2_value = /*option*/ ctx[
|
5926
|
+
let span2;
|
5927
|
+
let t2_value = /*option*/ ctx[11] + "";
|
5728
5928
|
let t2;
|
5729
5929
|
let t3;
|
5730
5930
|
let mounted;
|
5731
5931
|
let dispose;
|
5732
|
-
let if_block = /*isCheckedArray*/ ctx[2][/*i*/ ctx[10]] && create_if_block$2();
|
5733
5932
|
|
5734
5933
|
return {
|
5735
5934
|
c() {
|
5736
5935
|
label = element("label");
|
5737
5936
|
input = element("input");
|
5738
5937
|
t0 = space();
|
5938
|
+
span1 = element("span");
|
5739
5939
|
span0 = element("span");
|
5740
|
-
if (if_block) if_block.c();
|
5741
5940
|
t1 = space();
|
5742
|
-
|
5941
|
+
span2 = element("span");
|
5743
5942
|
t2 = text(t2_value);
|
5744
5943
|
t3 = space();
|
5745
|
-
attr(input, "class", "check-box-input svelte-
|
5944
|
+
attr(input, "class", "check-box-input svelte-15x08a");
|
5746
5945
|
attr(input, "type", "checkbox");
|
5747
5946
|
attr(input, "name", /*name*/ ctx[0]);
|
5748
|
-
input.checked = input_checked_value = /*isCheckedArray*/ ctx[
|
5947
|
+
input.checked = input_checked_value = /*isCheckedArray*/ ctx[3][/*i*/ ctx[13]];
|
5948
|
+
attr(span0, "class", "check-box-icon svelte-15x08a");
|
5749
5949
|
|
5750
|
-
attr(
|
5950
|
+
attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[3][/*i*/ ctx[13]]
|
5751
5951
|
? ' _checked'
|
5752
|
-
: ''}`) + " svelte-
|
5952
|
+
: ''}`) + " svelte-15x08a"));
|
5753
5953
|
|
5754
|
-
attr(
|
5755
|
-
|
5756
|
-
|
5757
|
-
|
5758
|
-
attr(span1, "class", "check-box-text svelte-1g004f9");
|
5759
|
-
attr(label, "class", "check-box svelte-1g004f9");
|
5954
|
+
attr(span1, "style", /*_buttonStyle*/ ctx[4]);
|
5955
|
+
attr(span2, "class", "check-box-text svelte-15x08a");
|
5956
|
+
attr(span2, "style", /*textStyle*/ ctx[1]);
|
5957
|
+
attr(label, "class", "check-box svelte-15x08a");
|
5760
5958
|
},
|
5761
5959
|
m(target, anchor) {
|
5762
5960
|
insert(target, label, anchor);
|
5763
5961
|
append(label, input);
|
5764
5962
|
append(label, t0);
|
5765
|
-
append(label, span0);
|
5766
|
-
if (if_block) if_block.m(span0, null);
|
5767
|
-
append(label, t1);
|
5768
5963
|
append(label, span1);
|
5769
|
-
append(span1,
|
5964
|
+
append(span1, span0);
|
5965
|
+
append(label, t1);
|
5966
|
+
append(label, span2);
|
5967
|
+
append(span2, t2);
|
5770
5968
|
append(label, t3);
|
5771
5969
|
|
5772
5970
|
if (!mounted) {
|
5773
|
-
dispose = listen(input, "change", /*handleChange*/ ctx[
|
5971
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[6](/*i*/ ctx[13]));
|
5774
5972
|
mounted = true;
|
5775
5973
|
}
|
5776
5974
|
},
|
@@ -5781,38 +5979,28 @@ function create_each_block$2(ctx) {
|
|
5781
5979
|
attr(input, "name", /*name*/ ctx[0]);
|
5782
5980
|
}
|
5783
5981
|
|
5784
|
-
if (dirty & /*isCheckedArray*/
|
5982
|
+
if (dirty & /*isCheckedArray*/ 8 && input_checked_value !== (input_checked_value = /*isCheckedArray*/ ctx[3][/*i*/ ctx[13]])) {
|
5785
5983
|
input.checked = input_checked_value;
|
5786
5984
|
}
|
5787
5985
|
|
5788
|
-
if (/*isCheckedArray*/ ctx[
|
5789
|
-
if (if_block) ; else {
|
5790
|
-
if_block = create_if_block$2();
|
5791
|
-
if_block.c();
|
5792
|
-
if_block.m(span0, null);
|
5793
|
-
}
|
5794
|
-
} else if (if_block) {
|
5795
|
-
if_block.d(1);
|
5796
|
-
if_block = null;
|
5797
|
-
}
|
5798
|
-
|
5799
|
-
if (dirty & /*isCheckedArray*/ 4 && span0_class_value !== (span0_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]
|
5986
|
+
if (dirty & /*isCheckedArray*/ 8 && span1_class_value !== (span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[3][/*i*/ ctx[13]]
|
5800
5987
|
? ' _checked'
|
5801
|
-
: ''}`) + " svelte-
|
5802
|
-
attr(
|
5988
|
+
: ''}`) + " svelte-15x08a"))) {
|
5989
|
+
attr(span1, "class", span1_class_value);
|
5803
5990
|
}
|
5804
5991
|
|
5805
|
-
if (dirty & /*
|
5806
|
-
|
5807
|
-
: ''}`)) {
|
5808
|
-
attr(span0, "style", span0_style_value);
|
5992
|
+
if (dirty & /*_buttonStyle*/ 16) {
|
5993
|
+
attr(span1, "style", /*_buttonStyle*/ ctx[4]);
|
5809
5994
|
}
|
5810
5995
|
|
5811
|
-
if (dirty & /*_options*/
|
5996
|
+
if (dirty & /*_options*/ 4 && t2_value !== (t2_value = /*option*/ ctx[11] + "")) set_data(t2, t2_value);
|
5997
|
+
|
5998
|
+
if (dirty & /*textStyle*/ 2) {
|
5999
|
+
attr(span2, "style", /*textStyle*/ ctx[1]);
|
6000
|
+
}
|
5812
6001
|
},
|
5813
6002
|
d(detaching) {
|
5814
6003
|
if (detaching) detach(label);
|
5815
|
-
if (if_block) if_block.d();
|
5816
6004
|
mounted = false;
|
5817
6005
|
dispose();
|
5818
6006
|
}
|
@@ -5821,7 +6009,7 @@ function create_each_block$2(ctx) {
|
|
5821
6009
|
|
5822
6010
|
function create_fragment$6(ctx) {
|
5823
6011
|
let div;
|
5824
|
-
let each_value = /*_options*/ ctx[
|
6012
|
+
let each_value = /*_options*/ ctx[2];
|
5825
6013
|
let each_blocks = [];
|
5826
6014
|
|
5827
6015
|
for (let i = 0; i < each_value.length; i += 1) {
|
@@ -5836,7 +6024,7 @@ function create_fragment$6(ctx) {
|
|
5836
6024
|
each_blocks[i].c();
|
5837
6025
|
}
|
5838
6026
|
|
5839
|
-
attr(div, "class", "check-boxes svelte-
|
6027
|
+
attr(div, "class", "check-boxes svelte-15x08a");
|
5840
6028
|
},
|
5841
6029
|
m(target, anchor) {
|
5842
6030
|
insert(target, div, anchor);
|
@@ -5846,8 +6034,8 @@ function create_fragment$6(ctx) {
|
|
5846
6034
|
}
|
5847
6035
|
},
|
5848
6036
|
p(ctx, [dirty]) {
|
5849
|
-
if (dirty & /*_options, isCheckedArray, name, handleChange*/
|
5850
|
-
each_value = /*_options*/ ctx[
|
6037
|
+
if (dirty & /*textStyle, _options, isCheckedArray, _buttonStyle, name, handleChange*/ 95) {
|
6038
|
+
each_value = /*_options*/ ctx[2];
|
5851
6039
|
let i;
|
5852
6040
|
|
5853
6041
|
for (i = 0; i < each_value.length; i += 1) {
|
@@ -5880,10 +6068,19 @@ function create_fragment$6(ctx) {
|
|
5880
6068
|
|
5881
6069
|
function instance$6($$self, $$props, $$invalidate) {
|
5882
6070
|
let _options;
|
6071
|
+
let _buttonStyle;
|
5883
6072
|
let isCheckedArray;
|
5884
6073
|
let $value;
|
5885
6074
|
let { name = '' } = $$props;
|
5886
6075
|
let { options = 'チェックボックス1,チェックボックス2,チェックボックス3' } = $$props;
|
6076
|
+
let { textStyle = 'color: #333; font-size: 12px;' } = $$props;
|
6077
|
+
|
6078
|
+
let { buttonStyle = {
|
6079
|
+
size: '16px',
|
6080
|
+
colorActive: '#2aab9f',
|
6081
|
+
colorInactive: 'rgba(0, 16, 14, 0.06)'
|
6082
|
+
} } = $$props;
|
6083
|
+
|
5887
6084
|
const { path: statePath } = getStateItemContext();
|
5888
6085
|
|
5889
6086
|
const value = registerInput({
|
@@ -5895,12 +6092,12 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
5895
6092
|
}
|
5896
6093
|
});
|
5897
6094
|
|
5898
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6095
|
+
component_subscribe($$self, value, value => $$invalidate(9, $value = value));
|
5899
6096
|
|
5900
6097
|
const handleChange = index => event => {
|
5901
6098
|
if (isCheckedArray[index] !== event.target.checked) {
|
5902
|
-
$$invalidate(
|
5903
|
-
$$invalidate(
|
6099
|
+
$$invalidate(3, isCheckedArray[index] = event.target.checked, isCheckedArray);
|
6100
|
+
$$invalidate(3, isCheckedArray = [...isCheckedArray]);
|
5904
6101
|
const updated = _options.filter((option, i) => isCheckedArray[i]);
|
5905
6102
|
value.set(updated);
|
5906
6103
|
}
|
@@ -5908,45 +6105,76 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
5908
6105
|
|
5909
6106
|
$$self.$$set = $$props => {
|
5910
6107
|
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
5911
|
-
if ('options' in $$props) $$invalidate(
|
6108
|
+
if ('options' in $$props) $$invalidate(7, options = $$props.options);
|
6109
|
+
if ('textStyle' in $$props) $$invalidate(1, textStyle = $$props.textStyle);
|
6110
|
+
if ('buttonStyle' in $$props) $$invalidate(8, buttonStyle = $$props.buttonStyle);
|
5912
6111
|
};
|
5913
6112
|
|
5914
6113
|
$$self.$$.update = () => {
|
5915
|
-
if ($$self.$$.dirty & /*options*/
|
5916
|
-
$$invalidate(
|
6114
|
+
if ($$self.$$.dirty & /*options*/ 128) {
|
6115
|
+
$$invalidate(2, _options = options.split(','));
|
5917
6116
|
}
|
5918
6117
|
|
5919
|
-
if ($$self.$$.dirty &
|
5920
|
-
$$invalidate(
|
6118
|
+
if ($$self.$$.dirty & /*buttonStyle*/ 256) {
|
6119
|
+
$$invalidate(4, _buttonStyle = `--size: ${buttonStyle.size}; --color-active: ${buttonStyle.colorActive}; --color-inactive: ${buttonStyle.colorInactive}`);
|
6120
|
+
}
|
6121
|
+
|
6122
|
+
if ($$self.$$.dirty & /*$value, _options*/ 516) {
|
6123
|
+
$$invalidate(3, isCheckedArray = (() => {
|
5921
6124
|
const checkedSet = new Set($value);
|
5922
6125
|
return _options.map(option => checkedSet.has(option));
|
5923
6126
|
})());
|
5924
6127
|
}
|
5925
6128
|
};
|
5926
6129
|
|
5927
|
-
return [
|
6130
|
+
return [
|
6131
|
+
name,
|
6132
|
+
textStyle,
|
6133
|
+
_options,
|
6134
|
+
isCheckedArray,
|
6135
|
+
_buttonStyle,
|
6136
|
+
value,
|
6137
|
+
handleChange,
|
6138
|
+
options,
|
6139
|
+
buttonStyle,
|
6140
|
+
$value
|
6141
|
+
];
|
5928
6142
|
}
|
5929
6143
|
|
5930
6144
|
class FormCheckBoxes extends SvelteComponent {
|
5931
6145
|
constructor(options) {
|
5932
6146
|
super();
|
5933
|
-
|
6147
|
+
|
6148
|
+
init(
|
6149
|
+
this,
|
6150
|
+
options,
|
6151
|
+
instance$6,
|
6152
|
+
create_fragment$6,
|
6153
|
+
safe_not_equal,
|
6154
|
+
{
|
6155
|
+
name: 0,
|
6156
|
+
options: 7,
|
6157
|
+
textStyle: 1,
|
6158
|
+
buttonStyle: 8
|
6159
|
+
},
|
6160
|
+
add_css$6
|
6161
|
+
);
|
5934
6162
|
}
|
5935
6163
|
}
|
5936
6164
|
|
5937
6165
|
/* src/components/FormRatingButtons.svelte generated by Svelte v3.53.1 */
|
5938
6166
|
|
5939
6167
|
function add_css$5(target) {
|
5940
|
-
append_styles(target, "svelte-
|
6168
|
+
append_styles(target, "svelte-1ysi4uv", ".rating-buttons.svelte-1ysi4uv.svelte-1ysi4uv{display:flex;justify-content:space-around;align-items:center;width:100%;height:100%}.rating-button.svelte-1ysi4uv.svelte-1ysi4uv{cursor:pointer;display:flex}.rating-button.svelte-1ysi4uv.svelte-1ysi4uv:not(._selected):hover{opacity:0.5}.rating-button.svelte-1ysi4uv svg.svelte-1ysi4uv{fill:var(--color-inactive);width:var(--size);height:var(--size)}.rating-button._selected.svelte-1ysi4uv svg.svelte-1ysi4uv{fill:var(--color-active)}");
|
5941
6169
|
}
|
5942
6170
|
|
5943
6171
|
function get_each_context$1(ctx, list, i) {
|
5944
6172
|
const child_ctx = ctx.slice();
|
5945
|
-
child_ctx[
|
6173
|
+
child_ctx[10] = list[i];
|
5946
6174
|
return child_ctx;
|
5947
6175
|
}
|
5948
6176
|
|
5949
|
-
// (
|
6177
|
+
// (54:30)
|
5950
6178
|
function create_if_block_1$1(ctx) {
|
5951
6179
|
let div;
|
5952
6180
|
let svg;
|
@@ -5962,14 +6190,15 @@ function create_if_block_1$1(ctx) {
|
|
5962
6190
|
svg = svg_element("svg");
|
5963
6191
|
path = svg_element("path");
|
5964
6192
|
t = space();
|
5965
|
-
attr(path, "d", /*LIKERT_FACE_SVG_DATA*/ ctx[
|
6193
|
+
attr(path, "d", /*LIKERT_FACE_SVG_DATA*/ ctx[5][/*i*/ ctx[10]]);
|
5966
6194
|
attr(svg, "width", "24");
|
5967
6195
|
attr(svg, "height", "24");
|
5968
6196
|
attr(svg, "viewBox", "0 0 24 24");
|
5969
6197
|
attr(svg, "fill", "none");
|
5970
6198
|
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
5971
|
-
attr(svg, "class", "svelte-
|
5972
|
-
attr(div, "class", div_class_value = "rating-button" + (/*i*/ ctx[
|
6199
|
+
attr(svg, "class", "svelte-1ysi4uv");
|
6200
|
+
attr(div, "class", div_class_value = "rating-button" + (/*i*/ ctx[10] === /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv");
|
6201
|
+
attr(div, "style", /*_buttonStyle*/ ctx[1]);
|
5973
6202
|
},
|
5974
6203
|
m(target, anchor) {
|
5975
6204
|
insert(target, div, anchor);
|
@@ -5978,16 +6207,20 @@ function create_if_block_1$1(ctx) {
|
|
5978
6207
|
append(div, t);
|
5979
6208
|
|
5980
6209
|
if (!mounted) {
|
5981
|
-
dispose = listen(div, "click", /*handleClick*/ ctx[
|
6210
|
+
dispose = listen(div, "click", /*handleClick*/ ctx[4](/*i*/ ctx[10]));
|
5982
6211
|
mounted = true;
|
5983
6212
|
}
|
5984
6213
|
},
|
5985
6214
|
p(new_ctx, dirty) {
|
5986
6215
|
ctx = new_ctx;
|
5987
6216
|
|
5988
|
-
if (dirty & /*_value*/
|
6217
|
+
if (dirty & /*_value*/ 4 && div_class_value !== (div_class_value = "rating-button" + (/*i*/ ctx[10] === /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv")) {
|
5989
6218
|
attr(div, "class", div_class_value);
|
5990
6219
|
}
|
6220
|
+
|
6221
|
+
if (dirty & /*_buttonStyle*/ 2) {
|
6222
|
+
attr(div, "style", /*_buttonStyle*/ ctx[1]);
|
6223
|
+
}
|
5991
6224
|
},
|
5992
6225
|
d(detaching) {
|
5993
6226
|
if (detaching) detach(div);
|
@@ -5997,7 +6230,7 @@ function create_if_block_1$1(ctx) {
|
|
5997
6230
|
};
|
5998
6231
|
}
|
5999
6232
|
|
6000
|
-
// (
|
6233
|
+
// (48:4) {#if type === 'star'}
|
6001
6234
|
function create_if_block$1(ctx) {
|
6002
6235
|
let div;
|
6003
6236
|
let svg;
|
@@ -6019,8 +6252,9 @@ function create_if_block$1(ctx) {
|
|
6019
6252
|
attr(svg, "viewBox", "0 0 24 24");
|
6020
6253
|
attr(svg, "fill", "none");
|
6021
6254
|
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
6022
|
-
attr(svg, "class", "svelte-
|
6023
|
-
attr(div, "class", div_class_value = "rating-button" + (/*i*/ ctx[
|
6255
|
+
attr(svg, "class", "svelte-1ysi4uv");
|
6256
|
+
attr(div, "class", div_class_value = "rating-button" + (/*i*/ ctx[10] <= /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv");
|
6257
|
+
attr(div, "style", /*_buttonStyle*/ ctx[1]);
|
6024
6258
|
},
|
6025
6259
|
m(target, anchor) {
|
6026
6260
|
insert(target, div, anchor);
|
@@ -6029,16 +6263,20 @@ function create_if_block$1(ctx) {
|
|
6029
6263
|
append(div, t);
|
6030
6264
|
|
6031
6265
|
if (!mounted) {
|
6032
|
-
dispose = listen(div, "click", /*handleClick*/ ctx[
|
6266
|
+
dispose = listen(div, "click", /*handleClick*/ ctx[4](/*i*/ ctx[10]));
|
6033
6267
|
mounted = true;
|
6034
6268
|
}
|
6035
6269
|
},
|
6036
6270
|
p(new_ctx, dirty) {
|
6037
6271
|
ctx = new_ctx;
|
6038
6272
|
|
6039
|
-
if (dirty & /*_value*/
|
6273
|
+
if (dirty & /*_value*/ 4 && div_class_value !== (div_class_value = "rating-button" + (/*i*/ ctx[10] <= /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv")) {
|
6040
6274
|
attr(div, "class", div_class_value);
|
6041
6275
|
}
|
6276
|
+
|
6277
|
+
if (dirty & /*_buttonStyle*/ 2) {
|
6278
|
+
attr(div, "style", /*_buttonStyle*/ ctx[1]);
|
6279
|
+
}
|
6042
6280
|
},
|
6043
6281
|
d(detaching) {
|
6044
6282
|
if (detaching) detach(div);
|
@@ -6048,7 +6286,7 @@ function create_if_block$1(ctx) {
|
|
6048
6286
|
};
|
6049
6287
|
}
|
6050
6288
|
|
6051
|
-
// (
|
6289
|
+
// (47:2) {#each [...Array(5).keys()].map(i => i + 1) as i}
|
6052
6290
|
function create_each_block$1(ctx) {
|
6053
6291
|
let if_block_anchor;
|
6054
6292
|
|
@@ -6109,7 +6347,7 @@ function create_fragment$5(ctx) {
|
|
6109
6347
|
each_blocks[i].c();
|
6110
6348
|
}
|
6111
6349
|
|
6112
|
-
attr(div, "class", "rating-buttons svelte-
|
6350
|
+
attr(div, "class", "rating-buttons svelte-1ysi4uv");
|
6113
6351
|
},
|
6114
6352
|
m(target, anchor) {
|
6115
6353
|
insert(target, div, anchor);
|
@@ -6119,7 +6357,7 @@ function create_fragment$5(ctx) {
|
|
6119
6357
|
}
|
6120
6358
|
},
|
6121
6359
|
p(ctx, [dirty]) {
|
6122
|
-
if (dirty & /*Array, _value, handleClick, type, LIKERT_FACE_SVG_DATA*/
|
6360
|
+
if (dirty & /*Array, _value, _buttonStyle, handleClick, type, LIKERT_FACE_SVG_DATA*/ 55) {
|
6123
6361
|
each_value = [...Array(5).keys()].map(func);
|
6124
6362
|
let i;
|
6125
6363
|
|
@@ -6155,9 +6393,17 @@ const func = i => i + 1;
|
|
6155
6393
|
|
6156
6394
|
function instance$5($$self, $$props, $$invalidate) {
|
6157
6395
|
let _value;
|
6396
|
+
let _buttonStyle;
|
6158
6397
|
let $value;
|
6159
6398
|
let { name = '' } = $$props;
|
6160
|
-
let { type = '
|
6399
|
+
let { type = 'star' } = $$props;
|
6400
|
+
|
6401
|
+
let { buttonStyle = {
|
6402
|
+
size: '24px',
|
6403
|
+
colorActive: '#2aab9f',
|
6404
|
+
colorInactive: 'rgba(0, 16, 14, 0.2)'
|
6405
|
+
} } = $$props;
|
6406
|
+
|
6161
6407
|
const { path: statePath } = getStateItemContext();
|
6162
6408
|
|
6163
6409
|
const value = registerInput({
|
@@ -6169,7 +6415,7 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
6169
6415
|
}
|
6170
6416
|
});
|
6171
6417
|
|
6172
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6418
|
+
component_subscribe($$self, value, value => $$invalidate(8, $value = value));
|
6173
6419
|
|
6174
6420
|
const handleClick = index => event => {
|
6175
6421
|
value.set([String(index)]);
|
@@ -6185,23 +6431,38 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
6185
6431
|
};
|
6186
6432
|
|
6187
6433
|
$$self.$$set = $$props => {
|
6188
|
-
if ('name' in $$props) $$invalidate(
|
6434
|
+
if ('name' in $$props) $$invalidate(6, name = $$props.name);
|
6189
6435
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
6436
|
+
if ('buttonStyle' in $$props) $$invalidate(7, buttonStyle = $$props.buttonStyle);
|
6190
6437
|
};
|
6191
6438
|
|
6192
6439
|
$$self.$$.update = () => {
|
6193
|
-
if ($$self.$$.dirty & /*$value*/
|
6194
|
-
$$invalidate(
|
6440
|
+
if ($$self.$$.dirty & /*$value*/ 256) {
|
6441
|
+
$$invalidate(2, _value = Number($value[0] ?? -1));
|
6442
|
+
}
|
6443
|
+
|
6444
|
+
if ($$self.$$.dirty & /*buttonStyle*/ 128) {
|
6445
|
+
$$invalidate(1, _buttonStyle = `--size: ${buttonStyle.size}; --color-active: ${buttonStyle.colorActive}; --color-inactive: ${buttonStyle.colorInactive}`);
|
6195
6446
|
}
|
6196
6447
|
};
|
6197
6448
|
|
6198
|
-
return [
|
6449
|
+
return [
|
6450
|
+
type,
|
6451
|
+
_buttonStyle,
|
6452
|
+
_value,
|
6453
|
+
value,
|
6454
|
+
handleClick,
|
6455
|
+
LIKERT_FACE_SVG_DATA,
|
6456
|
+
name,
|
6457
|
+
buttonStyle,
|
6458
|
+
$value
|
6459
|
+
];
|
6199
6460
|
}
|
6200
6461
|
|
6201
6462
|
class FormRatingButtons extends SvelteComponent {
|
6202
6463
|
constructor(options) {
|
6203
6464
|
super();
|
6204
|
-
init(this, options, instance$5, create_fragment$5, safe_not_equal, { name:
|
6465
|
+
init(this, options, instance$5, create_fragment$5, safe_not_equal, { name: 6, type: 0, buttonStyle: 7 }, add_css$5);
|
6205
6466
|
}
|
6206
6467
|
}
|
6207
6468
|
|
@@ -7431,4 +7692,4 @@ class ImageBlock extends SvelteComponent {
|
|
7431
7692
|
}
|
7432
7693
|
}
|
7433
7694
|
|
7434
|
-
export { Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtons, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, 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, applyCss, applyGlobalCss, close, closeAction, closed, collection$1 as collection, create, createApp, createFog, customHandlers, customVariables, destroy, destroyed, ensureModalRoot, finalize, formData, getActionShadowRoot, getCustomHandlers, getCustomVariables, getState$1 as getState, getStates, getStoreState, getSystem, hideOnScroll, hideOnTime, initialize, isClosed, isOpened, loadGlobalScript, loadGlobalStyle, loadStyle, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setState$1 as setState, show, showAction, showModal, showOnScroll, showOnTime, state, stopped, updateCustomHandlers, updateCustomVariables, widget };
|
7695
|
+
export { Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultFormButtonStyle, DefaultFormRatingButtonType, DefaultFormSelectStyle, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtonTypes, FormRatingButtons, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, 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, applyCss, applyGlobalCss, close, closeAction, closed, collection$1 as collection, create, createApp, createFog, customHandlers, customVariables, destroy, destroyed, ensureModalRoot, finalize, formData, getActionShadowRoot, getCustomHandlers, getCustomVariables, getState$1 as getState, getStates, getStoreState, getSystem, hideOnScroll, hideOnTime, initialize, isClosed, isOpened, loadGlobalScript, loadGlobalStyle, loadStyle, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setState$1 as setState, show, showAction, showModal, showOnScroll, showOnTime, state, stopped, updateCustomHandlers, updateCustomVariables, widget };
|