@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/hydrate/index.es.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { writable, get } from 'svelte/store';
|
2
2
|
import 'svelte/easing';
|
3
|
-
import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, claim_component, claim_space, mount_component, insert_hydration, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, claim_element, children, attr, noop, listen, is_function, append_hydration, add_render_callback, create_in_transition, svg_element, claim_svg_element, binding_callbacks, destroy_each, text, claim_text, set_data, null_to_empty, src_url_equal
|
3
|
+
import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, claim_component, claim_space, mount_component, insert_hydration, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, claim_element, children, attr, noop, listen, is_function, append_hydration, add_render_callback, create_in_transition, svg_element, claim_svg_element, binding_callbacks, destroy_each, text, claim_text, set_data, 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 */
|
@@ -1216,6 +1216,21 @@ const DefaultSlideNavigationButton = {
|
|
1216
1216
|
color: '#ddd',
|
1217
1217
|
colorActive: '#666',
|
1218
1218
|
};
|
1219
|
+
/** @internal */
|
1220
|
+
const DefaultFormButtonStyle = {
|
1221
|
+
size: '16px',
|
1222
|
+
colorActive: '#2aab9f',
|
1223
|
+
colorInactive: 'rgba(0, 16, 14, 0.06)',
|
1224
|
+
};
|
1225
|
+
/** @internal */
|
1226
|
+
const DefaultFormSelectStyle = {
|
1227
|
+
colorArrow: '#333',
|
1228
|
+
colorFocused: '#2aab9f',
|
1229
|
+
};
|
1230
|
+
/** @internal */
|
1231
|
+
const FormRatingButtonTypes = ['star', 'face'];
|
1232
|
+
/** @internal */
|
1233
|
+
const DefaultFormRatingButtonType = 'star';
|
1219
1234
|
|
1220
1235
|
/**
|
1221
1236
|
* アクションが作成 (create) される前にフックする関数
|
@@ -4005,56 +4020,144 @@ class RenderText extends SvelteComponent {
|
|
4005
4020
|
/* src/components/TextElement.svelte generated by Svelte v3.53.1 */
|
4006
4021
|
|
4007
4022
|
function add_css$h(target) {
|
4008
|
-
append_styles(target, "svelte-
|
4023
|
+
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}");
|
4024
|
+
}
|
4025
|
+
|
4026
|
+
// (56:2) {#if enableCopy}
|
4027
|
+
function create_if_block$3(ctx) {
|
4028
|
+
let div0;
|
4029
|
+
let t0;
|
4030
|
+
let t1;
|
4031
|
+
let div1;
|
4032
|
+
let t2;
|
4033
|
+
|
4034
|
+
return {
|
4035
|
+
c() {
|
4036
|
+
div0 = element("div");
|
4037
|
+
t0 = text("コピーしました");
|
4038
|
+
t1 = space();
|
4039
|
+
div1 = element("div");
|
4040
|
+
t2 = text("コピーできませんでした");
|
4041
|
+
this.h();
|
4042
|
+
},
|
4043
|
+
l(nodes) {
|
4044
|
+
div0 = claim_element(nodes, "DIV", { class: true });
|
4045
|
+
var div0_nodes = children(div0);
|
4046
|
+
t0 = claim_text(div0_nodes, "コピーしました");
|
4047
|
+
div0_nodes.forEach(detach);
|
4048
|
+
t1 = claim_space(nodes);
|
4049
|
+
div1 = claim_element(nodes, "DIV", { class: true });
|
4050
|
+
var div1_nodes = children(div1);
|
4051
|
+
t2 = claim_text(div1_nodes, "コピーできませんでした");
|
4052
|
+
div1_nodes.forEach(detach);
|
4053
|
+
this.h();
|
4054
|
+
},
|
4055
|
+
h() {
|
4056
|
+
attr(div0, "class", "tooltip svelte-13cs3g2");
|
4057
|
+
attr(div1, "class", "tooltip tooltip-error svelte-13cs3g2");
|
4058
|
+
},
|
4059
|
+
m(target, anchor) {
|
4060
|
+
insert_hydration(target, div0, anchor);
|
4061
|
+
append_hydration(div0, t0);
|
4062
|
+
/*div0_binding*/ ctx[9](div0);
|
4063
|
+
insert_hydration(target, t1, anchor);
|
4064
|
+
insert_hydration(target, div1, anchor);
|
4065
|
+
append_hydration(div1, t2);
|
4066
|
+
/*div1_binding*/ ctx[10](div1);
|
4067
|
+
},
|
4068
|
+
p: noop,
|
4069
|
+
d(detaching) {
|
4070
|
+
if (detaching) detach(div0);
|
4071
|
+
/*div0_binding*/ ctx[9](null);
|
4072
|
+
if (detaching) detach(t1);
|
4073
|
+
if (detaching) detach(div1);
|
4074
|
+
/*div1_binding*/ ctx[10](null);
|
4075
|
+
}
|
4076
|
+
};
|
4009
4077
|
}
|
4010
4078
|
|
4011
4079
|
function create_fragment$h(ctx) {
|
4080
|
+
let div2;
|
4012
4081
|
let div1;
|
4013
4082
|
let div0;
|
4014
4083
|
let rendertext;
|
4015
4084
|
let div1_class_value;
|
4085
|
+
let t;
|
4016
4086
|
let current;
|
4087
|
+
let mounted;
|
4088
|
+
let dispose;
|
4017
4089
|
rendertext = new RenderText({ props: { text: /*text*/ ctx[0] } });
|
4090
|
+
let if_block = /*enableCopy*/ ctx[1] && create_if_block$3(ctx);
|
4018
4091
|
|
4019
4092
|
return {
|
4020
4093
|
c() {
|
4094
|
+
div2 = element("div");
|
4021
4095
|
div1 = element("div");
|
4022
4096
|
div0 = element("div");
|
4023
4097
|
create_component(rendertext.$$.fragment);
|
4098
|
+
t = space();
|
4099
|
+
if (if_block) if_block.c();
|
4024
4100
|
this.h();
|
4025
4101
|
},
|
4026
4102
|
l(nodes) {
|
4027
|
-
|
4103
|
+
div2 = claim_element(nodes, "DIV", { class: true });
|
4104
|
+
var div2_nodes = children(div2);
|
4105
|
+
div1 = claim_element(div2_nodes, "DIV", { class: true, style: true });
|
4028
4106
|
var div1_nodes = children(div1);
|
4029
4107
|
div0 = claim_element(div1_nodes, "DIV", { class: true });
|
4030
4108
|
var div0_nodes = children(div0);
|
4031
4109
|
claim_component(rendertext.$$.fragment, div0_nodes);
|
4032
4110
|
div0_nodes.forEach(detach);
|
4033
4111
|
div1_nodes.forEach(detach);
|
4112
|
+
t = claim_space(div2_nodes);
|
4113
|
+
if (if_block) if_block.l(div2_nodes);
|
4114
|
+
div2_nodes.forEach(detach);
|
4034
4115
|
this.h();
|
4035
4116
|
},
|
4036
4117
|
h() {
|
4037
|
-
attr(div0, "class", "text-element-inner svelte-
|
4038
|
-
attr(div1, "class", div1_class_value = "" + (null_to_empty(`text-element text-direction-${/*textDirection*/ ctx[
|
4039
|
-
attr(div1, "style", /*style*/ ctx[
|
4118
|
+
attr(div0, "class", "text-element-inner svelte-13cs3g2");
|
4119
|
+
attr(div1, "class", div1_class_value = "" + (null_to_empty(`text-element text-direction-${/*textDirection*/ ctx[2]}`) + " svelte-13cs3g2"));
|
4120
|
+
attr(div1, "style", /*style*/ ctx[5]);
|
4121
|
+
attr(div2, "class", "text-element-wrapper svelte-13cs3g2");
|
4040
4122
|
},
|
4041
4123
|
m(target, anchor) {
|
4042
|
-
insert_hydration(target,
|
4124
|
+
insert_hydration(target, div2, anchor);
|
4125
|
+
append_hydration(div2, div1);
|
4043
4126
|
append_hydration(div1, div0);
|
4044
4127
|
mount_component(rendertext, div0, null);
|
4128
|
+
append_hydration(div2, t);
|
4129
|
+
if (if_block) if_block.m(div2, null);
|
4045
4130
|
current = true;
|
4131
|
+
|
4132
|
+
if (!mounted) {
|
4133
|
+
dispose = listen(div1, "click", /*click*/ ctx[6]);
|
4134
|
+
mounted = true;
|
4135
|
+
}
|
4046
4136
|
},
|
4047
4137
|
p(ctx, [dirty]) {
|
4048
4138
|
const rendertext_changes = {};
|
4049
4139
|
if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
|
4050
4140
|
rendertext.$set(rendertext_changes);
|
4051
4141
|
|
4052
|
-
if (!current || dirty & /*textDirection*/
|
4142
|
+
if (!current || dirty & /*textDirection*/ 4 && div1_class_value !== (div1_class_value = "" + (null_to_empty(`text-element text-direction-${/*textDirection*/ ctx[2]}`) + " svelte-13cs3g2"))) {
|
4053
4143
|
attr(div1, "class", div1_class_value);
|
4054
4144
|
}
|
4055
4145
|
|
4056
|
-
if (!current || dirty & /*style*/
|
4057
|
-
attr(div1, "style", /*style*/ ctx[
|
4146
|
+
if (!current || dirty & /*style*/ 32) {
|
4147
|
+
attr(div1, "style", /*style*/ ctx[5]);
|
4148
|
+
}
|
4149
|
+
|
4150
|
+
if (/*enableCopy*/ ctx[1]) {
|
4151
|
+
if (if_block) {
|
4152
|
+
if_block.p(ctx, dirty);
|
4153
|
+
} else {
|
4154
|
+
if_block = create_if_block$3(ctx);
|
4155
|
+
if_block.c();
|
4156
|
+
if_block.m(div2, null);
|
4157
|
+
}
|
4158
|
+
} else if (if_block) {
|
4159
|
+
if_block.d(1);
|
4160
|
+
if_block = null;
|
4058
4161
|
}
|
4059
4162
|
},
|
4060
4163
|
i(local) {
|
@@ -4067,8 +4170,11 @@ function create_fragment$h(ctx) {
|
|
4067
4170
|
current = false;
|
4068
4171
|
},
|
4069
4172
|
d(detaching) {
|
4070
|
-
if (detaching) detach(
|
4173
|
+
if (detaching) detach(div2);
|
4071
4174
|
destroy_component(rendertext);
|
4175
|
+
if (if_block) if_block.d();
|
4176
|
+
mounted = false;
|
4177
|
+
dispose();
|
4072
4178
|
}
|
4073
4179
|
};
|
4074
4180
|
}
|
@@ -4076,24 +4182,74 @@ function create_fragment$h(ctx) {
|
|
4076
4182
|
function instance$h($$self, $$props, $$invalidate) {
|
4077
4183
|
let style;
|
4078
4184
|
let { text = 'サンプルSample' } = $$props;
|
4185
|
+
let { enableCopy = false } = $$props;
|
4186
|
+
let tooltipEl;
|
4187
|
+
let tooltipErrorEl;
|
4188
|
+
|
4189
|
+
const click = async () => {
|
4190
|
+
if (enableCopy) {
|
4191
|
+
try {
|
4192
|
+
await navigator.clipboard.writeText(text);
|
4193
|
+
tooltipEl.classList.add('show');
|
4194
|
+
} catch(err) {
|
4195
|
+
tooltipErrorEl.classList.add('show');
|
4196
|
+
}
|
4197
|
+
|
4198
|
+
setTimeout(
|
4199
|
+
() => {
|
4200
|
+
tooltipEl.classList.remove('show');
|
4201
|
+
tooltipErrorEl.classList.remove('show');
|
4202
|
+
},
|
4203
|
+
1000
|
4204
|
+
);
|
4205
|
+
}
|
4206
|
+
};
|
4207
|
+
|
4079
4208
|
let { _textStyle = 'font-size:12px;' } = $$props;
|
4080
4209
|
let { textDirection = 'horizontal' } = $$props;
|
4081
4210
|
let { _style = '' } = $$props;
|
4082
4211
|
|
4212
|
+
function div0_binding($$value) {
|
4213
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
4214
|
+
tooltipEl = $$value;
|
4215
|
+
$$invalidate(3, tooltipEl);
|
4216
|
+
});
|
4217
|
+
}
|
4218
|
+
|
4219
|
+
function div1_binding($$value) {
|
4220
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
4221
|
+
tooltipErrorEl = $$value;
|
4222
|
+
$$invalidate(4, tooltipErrorEl);
|
4223
|
+
});
|
4224
|
+
}
|
4225
|
+
|
4083
4226
|
$$self.$$set = $$props => {
|
4084
4227
|
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
4085
|
-
if ('
|
4086
|
-
if ('
|
4087
|
-
if ('
|
4228
|
+
if ('enableCopy' in $$props) $$invalidate(1, enableCopy = $$props.enableCopy);
|
4229
|
+
if ('_textStyle' in $$props) $$invalidate(7, _textStyle = $$props._textStyle);
|
4230
|
+
if ('textDirection' in $$props) $$invalidate(2, textDirection = $$props.textDirection);
|
4231
|
+
if ('_style' in $$props) $$invalidate(8, _style = $$props._style);
|
4088
4232
|
};
|
4089
4233
|
|
4090
4234
|
$$self.$$.update = () => {
|
4091
|
-
if ($$self.$$.dirty & /*_textStyle, _style*/
|
4092
|
-
$$invalidate(
|
4235
|
+
if ($$self.$$.dirty & /*_textStyle, _style*/ 384) {
|
4236
|
+
$$invalidate(5, style = [..._textStyle.split(';'), ..._style.split(';')].join(';'));
|
4093
4237
|
}
|
4094
4238
|
};
|
4095
4239
|
|
4096
|
-
return [
|
4240
|
+
return [
|
4241
|
+
text,
|
4242
|
+
enableCopy,
|
4243
|
+
textDirection,
|
4244
|
+
tooltipEl,
|
4245
|
+
tooltipErrorEl,
|
4246
|
+
style,
|
4247
|
+
click,
|
4248
|
+
_textStyle,
|
4249
|
+
_style,
|
4250
|
+
div0_binding,
|
4251
|
+
div1_binding
|
4252
|
+
];
|
4097
4253
|
}
|
4098
4254
|
|
4099
4255
|
class TextElement extends SvelteComponent {
|
@@ -4108,9 +4264,10 @@ class TextElement extends SvelteComponent {
|
|
4108
4264
|
safe_not_equal,
|
4109
4265
|
{
|
4110
4266
|
text: 0,
|
4111
|
-
|
4112
|
-
|
4113
|
-
|
4267
|
+
enableCopy: 1,
|
4268
|
+
_textStyle: 7,
|
4269
|
+
textDirection: 2,
|
4270
|
+
_style: 8
|
4114
4271
|
},
|
4115
4272
|
add_css$h
|
4116
4273
|
);
|
@@ -5431,17 +5588,17 @@ class FormTextarea extends SvelteComponent {
|
|
5431
5588
|
/* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
|
5432
5589
|
|
5433
5590
|
function add_css$8(target) {
|
5434
|
-
append_styles(target, "svelte-
|
5591
|
+
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}");
|
5435
5592
|
}
|
5436
5593
|
|
5437
5594
|
function get_each_context$4(ctx, list, i) {
|
5438
5595
|
const child_ctx = ctx.slice();
|
5439
|
-
child_ctx[
|
5440
|
-
child_ctx[
|
5596
|
+
child_ctx[11] = list[i];
|
5597
|
+
child_ctx[13] = i;
|
5441
5598
|
return child_ctx;
|
5442
5599
|
}
|
5443
5600
|
|
5444
|
-
// (
|
5601
|
+
// (49:2) {#each _options as option, i}
|
5445
5602
|
function create_each_block$4(ctx) {
|
5446
5603
|
let label;
|
5447
5604
|
let input;
|
@@ -5449,7 +5606,7 @@ function create_each_block$4(ctx) {
|
|
5449
5606
|
let input_checked_value;
|
5450
5607
|
let t0;
|
5451
5608
|
let span;
|
5452
|
-
let t1_value = /*option*/ ctx[
|
5609
|
+
let t1_value = /*option*/ ctx[11] + "";
|
5453
5610
|
let t1;
|
5454
5611
|
let t2;
|
5455
5612
|
let mounted;
|
@@ -5468,9 +5625,16 @@ function create_each_block$4(ctx) {
|
|
5468
5625
|
l(nodes) {
|
5469
5626
|
label = claim_element(nodes, "LABEL", { class: true });
|
5470
5627
|
var label_nodes = children(label);
|
5471
|
-
|
5628
|
+
|
5629
|
+
input = claim_element(label_nodes, "INPUT", {
|
5630
|
+
type: true,
|
5631
|
+
class: true,
|
5632
|
+
style: true,
|
5633
|
+
name: true
|
5634
|
+
});
|
5635
|
+
|
5472
5636
|
t0 = claim_space(label_nodes);
|
5473
|
-
span = claim_element(label_nodes, "SPAN", { class: true });
|
5637
|
+
span = claim_element(label_nodes, "SPAN", { class: true, style: true });
|
5474
5638
|
var span_nodes = children(span);
|
5475
5639
|
t1 = claim_text(span_nodes, t1_value);
|
5476
5640
|
span_nodes.forEach(detach);
|
@@ -5480,12 +5644,14 @@ function create_each_block$4(ctx) {
|
|
5480
5644
|
},
|
5481
5645
|
h() {
|
5482
5646
|
attr(input, "type", "radio");
|
5483
|
-
attr(input, "class", "radio-button-input svelte-
|
5647
|
+
attr(input, "class", "radio-button-input svelte-1k9zlui");
|
5648
|
+
attr(input, "style", /*_buttonStyle*/ ctx[4]);
|
5484
5649
|
attr(input, "name", /*name*/ ctx[0]);
|
5485
|
-
input.value = input_value_value = /*option*/ ctx[
|
5486
|
-
input.checked = input_checked_value = /*option*/ ctx[
|
5487
|
-
attr(span, "class", "radio-button-text svelte-
|
5488
|
-
attr(
|
5650
|
+
input.value = input_value_value = /*option*/ ctx[11];
|
5651
|
+
input.checked = input_checked_value = /*option*/ ctx[11] === /*_value*/ ctx[2];
|
5652
|
+
attr(span, "class", "radio-button-text svelte-1k9zlui");
|
5653
|
+
attr(span, "style", /*textStyle*/ ctx[1]);
|
5654
|
+
attr(label, "class", "radio-button svelte-1k9zlui");
|
5489
5655
|
},
|
5490
5656
|
m(target, anchor) {
|
5491
5657
|
insert_hydration(target, label, anchor);
|
@@ -5496,26 +5662,34 @@ function create_each_block$4(ctx) {
|
|
5496
5662
|
append_hydration(label, t2);
|
5497
5663
|
|
5498
5664
|
if (!mounted) {
|
5499
|
-
dispose = listen(input, "change", /*handleChange*/ ctx[
|
5665
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[6](/*i*/ ctx[13]));
|
5500
5666
|
mounted = true;
|
5501
5667
|
}
|
5502
5668
|
},
|
5503
5669
|
p(new_ctx, dirty) {
|
5504
5670
|
ctx = new_ctx;
|
5505
5671
|
|
5672
|
+
if (dirty & /*_buttonStyle*/ 16) {
|
5673
|
+
attr(input, "style", /*_buttonStyle*/ ctx[4]);
|
5674
|
+
}
|
5675
|
+
|
5506
5676
|
if (dirty & /*name*/ 1) {
|
5507
5677
|
attr(input, "name", /*name*/ ctx[0]);
|
5508
5678
|
}
|
5509
5679
|
|
5510
|
-
if (dirty & /*_options*/
|
5680
|
+
if (dirty & /*_options*/ 8 && input_value_value !== (input_value_value = /*option*/ ctx[11])) {
|
5511
5681
|
input.value = input_value_value;
|
5512
5682
|
}
|
5513
5683
|
|
5514
|
-
if (dirty & /*_options, _value*/
|
5684
|
+
if (dirty & /*_options, _value*/ 12 && input_checked_value !== (input_checked_value = /*option*/ ctx[11] === /*_value*/ ctx[2])) {
|
5515
5685
|
input.checked = input_checked_value;
|
5516
5686
|
}
|
5517
5687
|
|
5518
|
-
if (dirty & /*_options*/
|
5688
|
+
if (dirty & /*_options*/ 8 && t1_value !== (t1_value = /*option*/ ctx[11] + "")) set_data(t1, t1_value);
|
5689
|
+
|
5690
|
+
if (dirty & /*textStyle*/ 2) {
|
5691
|
+
attr(span, "style", /*textStyle*/ ctx[1]);
|
5692
|
+
}
|
5519
5693
|
},
|
5520
5694
|
d(detaching) {
|
5521
5695
|
if (detaching) detach(label);
|
@@ -5527,7 +5701,7 @@ function create_each_block$4(ctx) {
|
|
5527
5701
|
|
5528
5702
|
function create_fragment$8(ctx) {
|
5529
5703
|
let div;
|
5530
|
-
let each_value = /*_options*/ ctx[
|
5704
|
+
let each_value = /*_options*/ ctx[3];
|
5531
5705
|
let each_blocks = [];
|
5532
5706
|
|
5533
5707
|
for (let i = 0; i < each_value.length; i += 1) {
|
@@ -5556,7 +5730,7 @@ function create_fragment$8(ctx) {
|
|
5556
5730
|
this.h();
|
5557
5731
|
},
|
5558
5732
|
h() {
|
5559
|
-
attr(div, "class", "radio-buttons svelte-
|
5733
|
+
attr(div, "class", "radio-buttons svelte-1k9zlui");
|
5560
5734
|
},
|
5561
5735
|
m(target, anchor) {
|
5562
5736
|
insert_hydration(target, div, anchor);
|
@@ -5566,8 +5740,8 @@ function create_fragment$8(ctx) {
|
|
5566
5740
|
}
|
5567
5741
|
},
|
5568
5742
|
p(ctx, [dirty]) {
|
5569
|
-
if (dirty & /*_options, name, _value, handleChange*/
|
5570
|
-
each_value = /*_options*/ ctx[
|
5743
|
+
if (dirty & /*textStyle, _options, _buttonStyle, name, _value, handleChange*/ 95) {
|
5744
|
+
each_value = /*_options*/ ctx[3];
|
5571
5745
|
let i;
|
5572
5746
|
|
5573
5747
|
for (i = 0; i < each_value.length; i += 1) {
|
@@ -5600,10 +5774,19 @@ function create_fragment$8(ctx) {
|
|
5600
5774
|
|
5601
5775
|
function instance$8($$self, $$props, $$invalidate) {
|
5602
5776
|
let _options;
|
5777
|
+
let _buttonStyle;
|
5603
5778
|
let _value;
|
5604
5779
|
let $value;
|
5605
5780
|
let { name = '' } = $$props;
|
5606
5781
|
let { options = 'ラジオボタン1,ラジオボタン2,ラジオボタン3' } = $$props;
|
5782
|
+
let { textStyle = 'color: #333; font-size: 12px;' } = $$props;
|
5783
|
+
|
5784
|
+
let { buttonStyle = {
|
5785
|
+
size: '16px',
|
5786
|
+
colorActive: '#2aab9f',
|
5787
|
+
colorInactive: 'rgba(0, 16, 14, 0.06)'
|
5788
|
+
} } = $$props;
|
5789
|
+
|
5607
5790
|
const { path: statePath } = getStateItemContext();
|
5608
5791
|
|
5609
5792
|
const value = registerInput({
|
@@ -5615,7 +5798,7 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
5615
5798
|
}
|
5616
5799
|
});
|
5617
5800
|
|
5618
|
-
component_subscribe($$self, value, value => $$invalidate(
|
5801
|
+
component_subscribe($$self, value, value => $$invalidate(9, $value = value));
|
5619
5802
|
|
5620
5803
|
const handleChange = index => event => {
|
5621
5804
|
if (event.target.checked) {
|
@@ -5625,43 +5808,74 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
5625
5808
|
|
5626
5809
|
$$self.$$set = $$props => {
|
5627
5810
|
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
5628
|
-
if ('options' in $$props) $$invalidate(
|
5811
|
+
if ('options' in $$props) $$invalidate(7, options = $$props.options);
|
5812
|
+
if ('textStyle' in $$props) $$invalidate(1, textStyle = $$props.textStyle);
|
5813
|
+
if ('buttonStyle' in $$props) $$invalidate(8, buttonStyle = $$props.buttonStyle);
|
5629
5814
|
};
|
5630
5815
|
|
5631
5816
|
$$self.$$.update = () => {
|
5632
|
-
if ($$self.$$.dirty & /*options*/
|
5633
|
-
$$invalidate(
|
5817
|
+
if ($$self.$$.dirty & /*options*/ 128) {
|
5818
|
+
$$invalidate(3, _options = options.split(','));
|
5634
5819
|
}
|
5635
5820
|
|
5636
|
-
if ($$self.$$.dirty &
|
5637
|
-
$$invalidate(
|
5821
|
+
if ($$self.$$.dirty & /*buttonStyle*/ 256) {
|
5822
|
+
$$invalidate(4, _buttonStyle = `--size: ${buttonStyle.size}; --color-active: ${buttonStyle.colorActive}; --color-inactive: ${buttonStyle.colorInactive}`);
|
5823
|
+
}
|
5824
|
+
|
5825
|
+
if ($$self.$$.dirty & /*$value*/ 512) {
|
5826
|
+
$$invalidate(2, _value = $value[0]);
|
5638
5827
|
}
|
5639
5828
|
};
|
5640
5829
|
|
5641
|
-
return [
|
5830
|
+
return [
|
5831
|
+
name,
|
5832
|
+
textStyle,
|
5833
|
+
_value,
|
5834
|
+
_options,
|
5835
|
+
_buttonStyle,
|
5836
|
+
value,
|
5837
|
+
handleChange,
|
5838
|
+
options,
|
5839
|
+
buttonStyle,
|
5840
|
+
$value
|
5841
|
+
];
|
5642
5842
|
}
|
5643
5843
|
|
5644
5844
|
class FormRadioButtons extends SvelteComponent {
|
5645
5845
|
constructor(options) {
|
5646
5846
|
super();
|
5647
|
-
|
5847
|
+
|
5848
|
+
init(
|
5849
|
+
this,
|
5850
|
+
options,
|
5851
|
+
instance$8,
|
5852
|
+
create_fragment$8,
|
5853
|
+
safe_not_equal,
|
5854
|
+
{
|
5855
|
+
name: 0,
|
5856
|
+
options: 7,
|
5857
|
+
textStyle: 1,
|
5858
|
+
buttonStyle: 8
|
5859
|
+
},
|
5860
|
+
add_css$8
|
5861
|
+
);
|
5648
5862
|
}
|
5649
5863
|
}
|
5650
5864
|
|
5651
5865
|
/* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
|
5652
5866
|
|
5653
5867
|
function add_css$7(target) {
|
5654
|
-
append_styles(target, "svelte-
|
5868
|
+
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}");
|
5655
5869
|
}
|
5656
5870
|
|
5657
5871
|
function get_each_context$3(ctx, list, i) {
|
5658
5872
|
const child_ctx = ctx.slice();
|
5659
|
-
child_ctx[
|
5660
|
-
child_ctx[
|
5873
|
+
child_ctx[9] = list[i];
|
5874
|
+
child_ctx[11] = i;
|
5661
5875
|
return child_ctx;
|
5662
5876
|
}
|
5663
5877
|
|
5664
|
-
// (
|
5878
|
+
// (47:10) {:else}
|
5665
5879
|
function create_else_block(ctx) {
|
5666
5880
|
let t;
|
5667
5881
|
|
@@ -5682,9 +5896,9 @@ function create_else_block(ctx) {
|
|
5682
5896
|
};
|
5683
5897
|
}
|
5684
5898
|
|
5685
|
-
// (
|
5686
|
-
function create_if_block$
|
5687
|
-
let t_value = /*option*/ ctx[
|
5899
|
+
// (45:10) {#if option}
|
5900
|
+
function create_if_block$2(ctx) {
|
5901
|
+
let t_value = /*option*/ ctx[9] + "";
|
5688
5902
|
let t;
|
5689
5903
|
|
5690
5904
|
return {
|
@@ -5698,7 +5912,7 @@ function create_if_block$3(ctx) {
|
|
5698
5912
|
insert_hydration(target, t, anchor);
|
5699
5913
|
},
|
5700
5914
|
p(ctx, dirty) {
|
5701
|
-
if (dirty & /*_options*/
|
5915
|
+
if (dirty & /*_options*/ 4 && t_value !== (t_value = /*option*/ ctx[9] + "")) set_data(t, t_value);
|
5702
5916
|
},
|
5703
5917
|
d(detaching) {
|
5704
5918
|
if (detaching) detach(t);
|
@@ -5706,14 +5920,14 @@ function create_if_block$3(ctx) {
|
|
5706
5920
|
};
|
5707
5921
|
}
|
5708
5922
|
|
5709
|
-
// (
|
5923
|
+
// (43:6) {#each _options as option, i}
|
5710
5924
|
function create_each_block$3(ctx) {
|
5711
5925
|
let option;
|
5712
5926
|
let t;
|
5713
5927
|
let option_value_value;
|
5714
5928
|
|
5715
5929
|
function select_block_type(ctx, dirty) {
|
5716
|
-
if (/*option*/ ctx[
|
5930
|
+
if (/*option*/ ctx[9]) return create_if_block$2;
|
5717
5931
|
return create_else_block;
|
5718
5932
|
}
|
5719
5933
|
|
@@ -5736,7 +5950,7 @@ function create_each_block$3(ctx) {
|
|
5736
5950
|
this.h();
|
5737
5951
|
},
|
5738
5952
|
h() {
|
5739
|
-
option.__value = option_value_value = /*option*/ ctx[
|
5953
|
+
option.__value = option_value_value = /*option*/ ctx[9];
|
5740
5954
|
option.value = option.__value;
|
5741
5955
|
},
|
5742
5956
|
m(target, anchor) {
|
@@ -5757,7 +5971,7 @@ function create_each_block$3(ctx) {
|
|
5757
5971
|
}
|
5758
5972
|
}
|
5759
5973
|
|
5760
|
-
if (dirty & /*_options*/
|
5974
|
+
if (dirty & /*_options*/ 4 && option_value_value !== (option_value_value = /*option*/ ctx[9])) {
|
5761
5975
|
option.__value = option_value_value;
|
5762
5976
|
option.value = option.__value;
|
5763
5977
|
}
|
@@ -5777,7 +5991,7 @@ function create_fragment$7(ctx) {
|
|
5777
5991
|
let div0;
|
5778
5992
|
let mounted;
|
5779
5993
|
let dispose;
|
5780
|
-
let each_value = /*_options*/ ctx[
|
5994
|
+
let each_value = /*_options*/ ctx[2];
|
5781
5995
|
let each_blocks = [];
|
5782
5996
|
|
5783
5997
|
for (let i = 0; i < each_value.length; i += 1) {
|
@@ -5801,9 +6015,9 @@ function create_fragment$7(ctx) {
|
|
5801
6015
|
l(nodes) {
|
5802
6016
|
div2 = claim_element(nodes, "DIV", { class: true });
|
5803
6017
|
var div2_nodes = children(div2);
|
5804
|
-
div1 = claim_element(div2_nodes, "DIV", { class: true });
|
6018
|
+
div1 = claim_element(div2_nodes, "DIV", { class: true, style: true });
|
5805
6019
|
var div1_nodes = children(div1);
|
5806
|
-
select = claim_element(div1_nodes, "SELECT", { class: true });
|
6020
|
+
select = claim_element(div1_nodes, "SELECT", { class: true, style: true });
|
5807
6021
|
var select_nodes = children(select);
|
5808
6022
|
|
5809
6023
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
@@ -5819,10 +6033,12 @@ function create_fragment$7(ctx) {
|
|
5819
6033
|
this.h();
|
5820
6034
|
},
|
5821
6035
|
h() {
|
5822
|
-
attr(select, "class", "select-select svelte-
|
5823
|
-
attr(
|
6036
|
+
attr(select, "class", "select-select svelte-1c94amx");
|
6037
|
+
attr(select, "style", /*_style*/ ctx[0]);
|
6038
|
+
attr(div0, "class", "select-icon svelte-1c94amx");
|
5824
6039
|
attr(div1, "class", "select");
|
5825
|
-
attr(
|
6040
|
+
attr(div1, "style", /*styleVariables*/ ctx[1]);
|
6041
|
+
attr(div2, "class", "select-wrapper svelte-1c94amx");
|
5826
6042
|
},
|
5827
6043
|
m(target, anchor) {
|
5828
6044
|
insert_hydration(target, div2, anchor);
|
@@ -5837,13 +6053,13 @@ function create_fragment$7(ctx) {
|
|
5837
6053
|
append_hydration(div1, div0);
|
5838
6054
|
|
5839
6055
|
if (!mounted) {
|
5840
|
-
dispose = listen(select, "change", /*handleChange*/ ctx[
|
6056
|
+
dispose = listen(select, "change", /*handleChange*/ ctx[3]);
|
5841
6057
|
mounted = true;
|
5842
6058
|
}
|
5843
6059
|
},
|
5844
6060
|
p(ctx, [dirty]) {
|
5845
|
-
if (dirty & /*_options*/
|
5846
|
-
each_value = /*_options*/ ctx[
|
6061
|
+
if (dirty & /*_options*/ 4) {
|
6062
|
+
each_value = /*_options*/ ctx[2];
|
5847
6063
|
let i;
|
5848
6064
|
|
5849
6065
|
for (i = 0; i < each_value.length; i += 1) {
|
@@ -5864,6 +6080,14 @@ function create_fragment$7(ctx) {
|
|
5864
6080
|
|
5865
6081
|
each_blocks.length = each_value.length;
|
5866
6082
|
}
|
6083
|
+
|
6084
|
+
if (dirty & /*_style*/ 1) {
|
6085
|
+
attr(select, "style", /*_style*/ ctx[0]);
|
6086
|
+
}
|
6087
|
+
|
6088
|
+
if (dirty & /*styleVariables*/ 2) {
|
6089
|
+
attr(div1, "style", /*styleVariables*/ ctx[1]);
|
6090
|
+
}
|
5867
6091
|
},
|
5868
6092
|
i: noop,
|
5869
6093
|
o: noop,
|
@@ -5878,8 +6102,16 @@ function create_fragment$7(ctx) {
|
|
5878
6102
|
|
5879
6103
|
function instance$7($$self, $$props, $$invalidate) {
|
5880
6104
|
let _options;
|
6105
|
+
let styleVariables;
|
5881
6106
|
let { name = '' } = $$props;
|
5882
6107
|
let { options = 'プルダウン1,プルダウン2,プルダウン3' } = $$props;
|
6108
|
+
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;
|
6109
|
+
|
6110
|
+
let { selectStyle = {
|
6111
|
+
colorArrow: '#333',
|
6112
|
+
colorFocused: '#2aab9f'
|
6113
|
+
} } = $$props;
|
6114
|
+
|
5883
6115
|
const { path: statePath } = getStateItemContext();
|
5884
6116
|
|
5885
6117
|
const value = registerInput({
|
@@ -5897,102 +6129,85 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
5897
6129
|
}
|
5898
6130
|
|
5899
6131
|
$$self.$$set = $$props => {
|
5900
|
-
if ('name' in $$props) $$invalidate(
|
5901
|
-
if ('options' in $$props) $$invalidate(
|
6132
|
+
if ('name' in $$props) $$invalidate(4, name = $$props.name);
|
6133
|
+
if ('options' in $$props) $$invalidate(5, options = $$props.options);
|
6134
|
+
if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
|
6135
|
+
if ('selectStyle' in $$props) $$invalidate(6, selectStyle = $$props.selectStyle);
|
5902
6136
|
};
|
5903
6137
|
|
5904
6138
|
$$self.$$.update = () => {
|
5905
|
-
if ($$self.$$.dirty & /*options*/
|
5906
|
-
$$invalidate(
|
6139
|
+
if ($$self.$$.dirty & /*options*/ 32) {
|
6140
|
+
$$invalidate(2, _options = ['', ...options.split(',')]);
|
6141
|
+
}
|
6142
|
+
|
6143
|
+
if ($$self.$$.dirty & /*selectStyle*/ 64) {
|
6144
|
+
$$invalidate(1, styleVariables = `--color-arrow: ${selectStyle.colorArrow}; --color-focused: ${selectStyle.colorFocused}`);
|
5907
6145
|
}
|
5908
6146
|
};
|
5909
6147
|
|
5910
|
-
return [_options, handleChange, name, options];
|
6148
|
+
return [_style, styleVariables, _options, handleChange, name, options, selectStyle];
|
5911
6149
|
}
|
5912
6150
|
|
5913
6151
|
class FormSelect extends SvelteComponent {
|
5914
6152
|
constructor(options) {
|
5915
6153
|
super();
|
5916
|
-
|
6154
|
+
|
6155
|
+
init(
|
6156
|
+
this,
|
6157
|
+
options,
|
6158
|
+
instance$7,
|
6159
|
+
create_fragment$7,
|
6160
|
+
safe_not_equal,
|
6161
|
+
{
|
6162
|
+
name: 4,
|
6163
|
+
options: 5,
|
6164
|
+
_style: 0,
|
6165
|
+
selectStyle: 6
|
6166
|
+
},
|
6167
|
+
add_css$7
|
6168
|
+
);
|
5917
6169
|
}
|
5918
6170
|
}
|
5919
6171
|
|
5920
6172
|
/* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
|
5921
6173
|
|
5922
6174
|
function add_css$6(target) {
|
5923
|
-
append_styles(target, "svelte-
|
6175
|
+
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}");
|
5924
6176
|
}
|
5925
6177
|
|
5926
6178
|
function get_each_context$2(ctx, list, i) {
|
5927
6179
|
const child_ctx = ctx.slice();
|
5928
|
-
child_ctx[
|
5929
|
-
child_ctx[
|
6180
|
+
child_ctx[11] = list[i];
|
6181
|
+
child_ctx[13] = i;
|
5930
6182
|
return child_ctx;
|
5931
6183
|
}
|
5932
6184
|
|
5933
|
-
// (
|
5934
|
-
function create_if_block$2(ctx) {
|
5935
|
-
let span1;
|
5936
|
-
let span0;
|
5937
|
-
|
5938
|
-
return {
|
5939
|
-
c() {
|
5940
|
-
span1 = element("span");
|
5941
|
-
span0 = element("span");
|
5942
|
-
this.h();
|
5943
|
-
},
|
5944
|
-
l(nodes) {
|
5945
|
-
span1 = claim_element(nodes, "SPAN", { class: true, style: true });
|
5946
|
-
var span1_nodes = children(span1);
|
5947
|
-
span0 = claim_element(span1_nodes, "SPAN", { class: true, style: true });
|
5948
|
-
children(span0).forEach(detach);
|
5949
|
-
span1_nodes.forEach(detach);
|
5950
|
-
this.h();
|
5951
|
-
},
|
5952
|
-
h() {
|
5953
|
-
attr(span0, "class", "check-box-icon-inner svelte-1g004f9");
|
5954
|
-
set_style(span0, "border-color", "#fff");
|
5955
|
-
attr(span1, "class", "check-box-icon svelte-1g004f9");
|
5956
|
-
set_style(span1, "width", "0.9em");
|
5957
|
-
set_style(span1, "height", "0.9em");
|
5958
|
-
},
|
5959
|
-
m(target, anchor) {
|
5960
|
-
insert_hydration(target, span1, anchor);
|
5961
|
-
append_hydration(span1, span0);
|
5962
|
-
},
|
5963
|
-
d(detaching) {
|
5964
|
-
if (detaching) detach(span1);
|
5965
|
-
}
|
5966
|
-
};
|
5967
|
-
}
|
5968
|
-
|
5969
|
-
// (30:2) {#each _options as option, i}
|
6185
|
+
// (55:2) {#each _options as option, i}
|
5970
6186
|
function create_each_block$2(ctx) {
|
5971
6187
|
let label;
|
5972
6188
|
let input;
|
5973
6189
|
let input_checked_value;
|
5974
6190
|
let t0;
|
6191
|
+
let span1;
|
5975
6192
|
let span0;
|
5976
|
-
let
|
5977
|
-
let span0_style_value;
|
6193
|
+
let span1_class_value;
|
5978
6194
|
let t1;
|
5979
|
-
let
|
5980
|
-
let t2_value = /*option*/ ctx[
|
6195
|
+
let span2;
|
6196
|
+
let t2_value = /*option*/ ctx[11] + "";
|
5981
6197
|
let t2;
|
5982
6198
|
let t3;
|
5983
6199
|
let mounted;
|
5984
6200
|
let dispose;
|
5985
|
-
let if_block = /*isCheckedArray*/ ctx[2][/*i*/ ctx[10]] && create_if_block$2();
|
5986
6201
|
|
5987
6202
|
return {
|
5988
6203
|
c() {
|
5989
6204
|
label = element("label");
|
5990
6205
|
input = element("input");
|
5991
6206
|
t0 = space();
|
6207
|
+
span1 = element("span");
|
5992
6208
|
span0 = element("span");
|
5993
|
-
if (if_block) if_block.c();
|
5994
6209
|
t1 = space();
|
5995
|
-
|
6210
|
+
span2 = element("span");
|
5996
6211
|
t2 = text(t2_value);
|
5997
6212
|
t3 = space();
|
5998
6213
|
this.h();
|
@@ -6002,49 +6217,50 @@ function create_each_block$2(ctx) {
|
|
6002
6217
|
var label_nodes = children(label);
|
6003
6218
|
input = claim_element(label_nodes, "INPUT", { class: true, type: true, name: true });
|
6004
6219
|
t0 = claim_space(label_nodes);
|
6005
|
-
|
6220
|
+
span1 = claim_element(label_nodes, "SPAN", { class: true, style: true });
|
6221
|
+
var span1_nodes = children(span1);
|
6222
|
+
span0 = claim_element(span1_nodes, "SPAN", { class: true });
|
6006
6223
|
var span0_nodes = children(span0);
|
6007
|
-
if (if_block) if_block.l(span0_nodes);
|
6008
6224
|
span0_nodes.forEach(detach);
|
6009
|
-
t1 = claim_space(label_nodes);
|
6010
|
-
span1 = claim_element(label_nodes, "SPAN", { class: true });
|
6011
|
-
var span1_nodes = children(span1);
|
6012
|
-
t2 = claim_text(span1_nodes, t2_value);
|
6013
6225
|
span1_nodes.forEach(detach);
|
6226
|
+
t1 = claim_space(label_nodes);
|
6227
|
+
span2 = claim_element(label_nodes, "SPAN", { class: true, style: true });
|
6228
|
+
var span2_nodes = children(span2);
|
6229
|
+
t2 = claim_text(span2_nodes, t2_value);
|
6230
|
+
span2_nodes.forEach(detach);
|
6014
6231
|
t3 = claim_space(label_nodes);
|
6015
6232
|
label_nodes.forEach(detach);
|
6016
6233
|
this.h();
|
6017
6234
|
},
|
6018
6235
|
h() {
|
6019
|
-
attr(input, "class", "check-box-input svelte-
|
6236
|
+
attr(input, "class", "check-box-input svelte-15x08a");
|
6020
6237
|
attr(input, "type", "checkbox");
|
6021
6238
|
attr(input, "name", /*name*/ ctx[0]);
|
6022
|
-
input.checked = input_checked_value = /*isCheckedArray*/ ctx[
|
6239
|
+
input.checked = input_checked_value = /*isCheckedArray*/ ctx[3][/*i*/ ctx[13]];
|
6240
|
+
attr(span0, "class", "check-box-icon svelte-15x08a");
|
6023
6241
|
|
6024
|
-
attr(
|
6242
|
+
attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[3][/*i*/ ctx[13]]
|
6025
6243
|
? ' _checked'
|
6026
|
-
: ''}`) + " svelte-
|
6244
|
+
: ''}`) + " svelte-15x08a"));
|
6027
6245
|
|
6028
|
-
attr(
|
6029
|
-
|
6030
|
-
|
6031
|
-
|
6032
|
-
attr(span1, "class", "check-box-text svelte-1g004f9");
|
6033
|
-
attr(label, "class", "check-box svelte-1g004f9");
|
6246
|
+
attr(span1, "style", /*_buttonStyle*/ ctx[4]);
|
6247
|
+
attr(span2, "class", "check-box-text svelte-15x08a");
|
6248
|
+
attr(span2, "style", /*textStyle*/ ctx[1]);
|
6249
|
+
attr(label, "class", "check-box svelte-15x08a");
|
6034
6250
|
},
|
6035
6251
|
m(target, anchor) {
|
6036
6252
|
insert_hydration(target, label, anchor);
|
6037
6253
|
append_hydration(label, input);
|
6038
6254
|
append_hydration(label, t0);
|
6039
|
-
append_hydration(label, span0);
|
6040
|
-
if (if_block) if_block.m(span0, null);
|
6041
|
-
append_hydration(label, t1);
|
6042
6255
|
append_hydration(label, span1);
|
6043
|
-
append_hydration(span1,
|
6256
|
+
append_hydration(span1, span0);
|
6257
|
+
append_hydration(label, t1);
|
6258
|
+
append_hydration(label, span2);
|
6259
|
+
append_hydration(span2, t2);
|
6044
6260
|
append_hydration(label, t3);
|
6045
6261
|
|
6046
6262
|
if (!mounted) {
|
6047
|
-
dispose = listen(input, "change", /*handleChange*/ ctx[
|
6263
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[6](/*i*/ ctx[13]));
|
6048
6264
|
mounted = true;
|
6049
6265
|
}
|
6050
6266
|
},
|
@@ -6055,38 +6271,28 @@ function create_each_block$2(ctx) {
|
|
6055
6271
|
attr(input, "name", /*name*/ ctx[0]);
|
6056
6272
|
}
|
6057
6273
|
|
6058
|
-
if (dirty & /*isCheckedArray*/
|
6274
|
+
if (dirty & /*isCheckedArray*/ 8 && input_checked_value !== (input_checked_value = /*isCheckedArray*/ ctx[3][/*i*/ ctx[13]])) {
|
6059
6275
|
input.checked = input_checked_value;
|
6060
6276
|
}
|
6061
6277
|
|
6062
|
-
if (/*isCheckedArray*/ ctx[
|
6063
|
-
if (if_block) ; else {
|
6064
|
-
if_block = create_if_block$2();
|
6065
|
-
if_block.c();
|
6066
|
-
if_block.m(span0, null);
|
6067
|
-
}
|
6068
|
-
} else if (if_block) {
|
6069
|
-
if_block.d(1);
|
6070
|
-
if_block = null;
|
6071
|
-
}
|
6072
|
-
|
6073
|
-
if (dirty & /*isCheckedArray*/ 4 && span0_class_value !== (span0_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]
|
6278
|
+
if (dirty & /*isCheckedArray*/ 8 && span1_class_value !== (span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[3][/*i*/ ctx[13]]
|
6074
6279
|
? ' _checked'
|
6075
|
-
: ''}`) + " svelte-
|
6076
|
-
attr(
|
6280
|
+
: ''}`) + " svelte-15x08a"))) {
|
6281
|
+
attr(span1, "class", span1_class_value);
|
6077
6282
|
}
|
6078
6283
|
|
6079
|
-
if (dirty & /*
|
6080
|
-
|
6081
|
-
: ''}`)) {
|
6082
|
-
attr(span0, "style", span0_style_value);
|
6284
|
+
if (dirty & /*_buttonStyle*/ 16) {
|
6285
|
+
attr(span1, "style", /*_buttonStyle*/ ctx[4]);
|
6083
6286
|
}
|
6084
6287
|
|
6085
|
-
if (dirty & /*_options*/
|
6288
|
+
if (dirty & /*_options*/ 4 && t2_value !== (t2_value = /*option*/ ctx[11] + "")) set_data(t2, t2_value);
|
6289
|
+
|
6290
|
+
if (dirty & /*textStyle*/ 2) {
|
6291
|
+
attr(span2, "style", /*textStyle*/ ctx[1]);
|
6292
|
+
}
|
6086
6293
|
},
|
6087
6294
|
d(detaching) {
|
6088
6295
|
if (detaching) detach(label);
|
6089
|
-
if (if_block) if_block.d();
|
6090
6296
|
mounted = false;
|
6091
6297
|
dispose();
|
6092
6298
|
}
|
@@ -6095,7 +6301,7 @@ function create_each_block$2(ctx) {
|
|
6095
6301
|
|
6096
6302
|
function create_fragment$6(ctx) {
|
6097
6303
|
let div;
|
6098
|
-
let each_value = /*_options*/ ctx[
|
6304
|
+
let each_value = /*_options*/ ctx[2];
|
6099
6305
|
let each_blocks = [];
|
6100
6306
|
|
6101
6307
|
for (let i = 0; i < each_value.length; i += 1) {
|
@@ -6124,7 +6330,7 @@ function create_fragment$6(ctx) {
|
|
6124
6330
|
this.h();
|
6125
6331
|
},
|
6126
6332
|
h() {
|
6127
|
-
attr(div, "class", "check-boxes svelte-
|
6333
|
+
attr(div, "class", "check-boxes svelte-15x08a");
|
6128
6334
|
},
|
6129
6335
|
m(target, anchor) {
|
6130
6336
|
insert_hydration(target, div, anchor);
|
@@ -6134,8 +6340,8 @@ function create_fragment$6(ctx) {
|
|
6134
6340
|
}
|
6135
6341
|
},
|
6136
6342
|
p(ctx, [dirty]) {
|
6137
|
-
if (dirty & /*_options, isCheckedArray, name, handleChange*/
|
6138
|
-
each_value = /*_options*/ ctx[
|
6343
|
+
if (dirty & /*textStyle, _options, isCheckedArray, _buttonStyle, name, handleChange*/ 95) {
|
6344
|
+
each_value = /*_options*/ ctx[2];
|
6139
6345
|
let i;
|
6140
6346
|
|
6141
6347
|
for (i = 0; i < each_value.length; i += 1) {
|
@@ -6168,10 +6374,19 @@ function create_fragment$6(ctx) {
|
|
6168
6374
|
|
6169
6375
|
function instance$6($$self, $$props, $$invalidate) {
|
6170
6376
|
let _options;
|
6377
|
+
let _buttonStyle;
|
6171
6378
|
let isCheckedArray;
|
6172
6379
|
let $value;
|
6173
6380
|
let { name = '' } = $$props;
|
6174
6381
|
let { options = 'チェックボックス1,チェックボックス2,チェックボックス3' } = $$props;
|
6382
|
+
let { textStyle = 'color: #333; font-size: 12px;' } = $$props;
|
6383
|
+
|
6384
|
+
let { buttonStyle = {
|
6385
|
+
size: '16px',
|
6386
|
+
colorActive: '#2aab9f',
|
6387
|
+
colorInactive: 'rgba(0, 16, 14, 0.06)'
|
6388
|
+
} } = $$props;
|
6389
|
+
|
6175
6390
|
const { path: statePath } = getStateItemContext();
|
6176
6391
|
|
6177
6392
|
const value = registerInput({
|
@@ -6183,12 +6398,12 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
6183
6398
|
}
|
6184
6399
|
});
|
6185
6400
|
|
6186
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6401
|
+
component_subscribe($$self, value, value => $$invalidate(9, $value = value));
|
6187
6402
|
|
6188
6403
|
const handleChange = index => event => {
|
6189
6404
|
if (isCheckedArray[index] !== event.target.checked) {
|
6190
|
-
$$invalidate(
|
6191
|
-
$$invalidate(
|
6405
|
+
$$invalidate(3, isCheckedArray[index] = event.target.checked, isCheckedArray);
|
6406
|
+
$$invalidate(3, isCheckedArray = [...isCheckedArray]);
|
6192
6407
|
const updated = _options.filter((option, i) => isCheckedArray[i]);
|
6193
6408
|
value.set(updated);
|
6194
6409
|
}
|
@@ -6196,45 +6411,76 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
6196
6411
|
|
6197
6412
|
$$self.$$set = $$props => {
|
6198
6413
|
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
6199
|
-
if ('options' in $$props) $$invalidate(
|
6414
|
+
if ('options' in $$props) $$invalidate(7, options = $$props.options);
|
6415
|
+
if ('textStyle' in $$props) $$invalidate(1, textStyle = $$props.textStyle);
|
6416
|
+
if ('buttonStyle' in $$props) $$invalidate(8, buttonStyle = $$props.buttonStyle);
|
6200
6417
|
};
|
6201
6418
|
|
6202
6419
|
$$self.$$.update = () => {
|
6203
|
-
if ($$self.$$.dirty & /*options*/
|
6204
|
-
$$invalidate(
|
6420
|
+
if ($$self.$$.dirty & /*options*/ 128) {
|
6421
|
+
$$invalidate(2, _options = options.split(','));
|
6422
|
+
}
|
6423
|
+
|
6424
|
+
if ($$self.$$.dirty & /*buttonStyle*/ 256) {
|
6425
|
+
$$invalidate(4, _buttonStyle = `--size: ${buttonStyle.size}; --color-active: ${buttonStyle.colorActive}; --color-inactive: ${buttonStyle.colorInactive}`);
|
6205
6426
|
}
|
6206
6427
|
|
6207
|
-
if ($$self.$$.dirty & /*$value, _options*/
|
6208
|
-
$$invalidate(
|
6428
|
+
if ($$self.$$.dirty & /*$value, _options*/ 516) {
|
6429
|
+
$$invalidate(3, isCheckedArray = (() => {
|
6209
6430
|
const checkedSet = new Set($value);
|
6210
6431
|
return _options.map(option => checkedSet.has(option));
|
6211
6432
|
})());
|
6212
6433
|
}
|
6213
6434
|
};
|
6214
6435
|
|
6215
|
-
return [
|
6436
|
+
return [
|
6437
|
+
name,
|
6438
|
+
textStyle,
|
6439
|
+
_options,
|
6440
|
+
isCheckedArray,
|
6441
|
+
_buttonStyle,
|
6442
|
+
value,
|
6443
|
+
handleChange,
|
6444
|
+
options,
|
6445
|
+
buttonStyle,
|
6446
|
+
$value
|
6447
|
+
];
|
6216
6448
|
}
|
6217
6449
|
|
6218
6450
|
class FormCheckBoxes extends SvelteComponent {
|
6219
6451
|
constructor(options) {
|
6220
6452
|
super();
|
6221
|
-
|
6453
|
+
|
6454
|
+
init(
|
6455
|
+
this,
|
6456
|
+
options,
|
6457
|
+
instance$6,
|
6458
|
+
create_fragment$6,
|
6459
|
+
safe_not_equal,
|
6460
|
+
{
|
6461
|
+
name: 0,
|
6462
|
+
options: 7,
|
6463
|
+
textStyle: 1,
|
6464
|
+
buttonStyle: 8
|
6465
|
+
},
|
6466
|
+
add_css$6
|
6467
|
+
);
|
6222
6468
|
}
|
6223
6469
|
}
|
6224
6470
|
|
6225
6471
|
/* src/components/FormRatingButtons.svelte generated by Svelte v3.53.1 */
|
6226
6472
|
|
6227
6473
|
function add_css$5(target) {
|
6228
|
-
append_styles(target, "svelte-
|
6474
|
+
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)}");
|
6229
6475
|
}
|
6230
6476
|
|
6231
6477
|
function get_each_context$1(ctx, list, i) {
|
6232
6478
|
const child_ctx = ctx.slice();
|
6233
|
-
child_ctx[
|
6479
|
+
child_ctx[10] = list[i];
|
6234
6480
|
return child_ctx;
|
6235
6481
|
}
|
6236
6482
|
|
6237
|
-
// (
|
6483
|
+
// (54:30)
|
6238
6484
|
function create_if_block_1$1(ctx) {
|
6239
6485
|
let div;
|
6240
6486
|
let svg;
|
@@ -6253,7 +6499,7 @@ function create_if_block_1$1(ctx) {
|
|
6253
6499
|
this.h();
|
6254
6500
|
},
|
6255
6501
|
l(nodes) {
|
6256
|
-
div = claim_element(nodes, "DIV", { class: true });
|
6502
|
+
div = claim_element(nodes, "DIV", { class: true, style: true });
|
6257
6503
|
var div_nodes = children(div);
|
6258
6504
|
|
6259
6505
|
svg = claim_svg_element(div_nodes, "svg", {
|
@@ -6274,14 +6520,15 @@ function create_if_block_1$1(ctx) {
|
|
6274
6520
|
this.h();
|
6275
6521
|
},
|
6276
6522
|
h() {
|
6277
|
-
attr(path, "d", /*LIKERT_FACE_SVG_DATA*/ ctx[
|
6523
|
+
attr(path, "d", /*LIKERT_FACE_SVG_DATA*/ ctx[5][/*i*/ ctx[10]]);
|
6278
6524
|
attr(svg, "width", "24");
|
6279
6525
|
attr(svg, "height", "24");
|
6280
6526
|
attr(svg, "viewBox", "0 0 24 24");
|
6281
6527
|
attr(svg, "fill", "none");
|
6282
6528
|
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
6283
|
-
attr(svg, "class", "svelte-
|
6284
|
-
attr(div, "class", div_class_value = "rating-button" + (/*i*/ ctx[
|
6529
|
+
attr(svg, "class", "svelte-1ysi4uv");
|
6530
|
+
attr(div, "class", div_class_value = "rating-button" + (/*i*/ ctx[10] === /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv");
|
6531
|
+
attr(div, "style", /*_buttonStyle*/ ctx[1]);
|
6285
6532
|
},
|
6286
6533
|
m(target, anchor) {
|
6287
6534
|
insert_hydration(target, div, anchor);
|
@@ -6290,16 +6537,20 @@ function create_if_block_1$1(ctx) {
|
|
6290
6537
|
append_hydration(div, t);
|
6291
6538
|
|
6292
6539
|
if (!mounted) {
|
6293
|
-
dispose = listen(div, "click", /*handleClick*/ ctx[
|
6540
|
+
dispose = listen(div, "click", /*handleClick*/ ctx[4](/*i*/ ctx[10]));
|
6294
6541
|
mounted = true;
|
6295
6542
|
}
|
6296
6543
|
},
|
6297
6544
|
p(new_ctx, dirty) {
|
6298
6545
|
ctx = new_ctx;
|
6299
6546
|
|
6300
|
-
if (dirty & /*_value*/
|
6547
|
+
if (dirty & /*_value*/ 4 && div_class_value !== (div_class_value = "rating-button" + (/*i*/ ctx[10] === /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv")) {
|
6301
6548
|
attr(div, "class", div_class_value);
|
6302
6549
|
}
|
6550
|
+
|
6551
|
+
if (dirty & /*_buttonStyle*/ 2) {
|
6552
|
+
attr(div, "style", /*_buttonStyle*/ ctx[1]);
|
6553
|
+
}
|
6303
6554
|
},
|
6304
6555
|
d(detaching) {
|
6305
6556
|
if (detaching) detach(div);
|
@@ -6309,7 +6560,7 @@ function create_if_block_1$1(ctx) {
|
|
6309
6560
|
};
|
6310
6561
|
}
|
6311
6562
|
|
6312
|
-
// (
|
6563
|
+
// (48:4) {#if type === 'star'}
|
6313
6564
|
function create_if_block$1(ctx) {
|
6314
6565
|
let div;
|
6315
6566
|
let svg;
|
@@ -6328,7 +6579,7 @@ function create_if_block$1(ctx) {
|
|
6328
6579
|
this.h();
|
6329
6580
|
},
|
6330
6581
|
l(nodes) {
|
6331
|
-
div = claim_element(nodes, "DIV", { class: true });
|
6582
|
+
div = claim_element(nodes, "DIV", { class: true, style: true });
|
6332
6583
|
var div_nodes = children(div);
|
6333
6584
|
|
6334
6585
|
svg = claim_svg_element(div_nodes, "svg", {
|
@@ -6355,8 +6606,9 @@ function create_if_block$1(ctx) {
|
|
6355
6606
|
attr(svg, "viewBox", "0 0 24 24");
|
6356
6607
|
attr(svg, "fill", "none");
|
6357
6608
|
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
6358
|
-
attr(svg, "class", "svelte-
|
6359
|
-
attr(div, "class", div_class_value = "rating-button" + (/*i*/ ctx[
|
6609
|
+
attr(svg, "class", "svelte-1ysi4uv");
|
6610
|
+
attr(div, "class", div_class_value = "rating-button" + (/*i*/ ctx[10] <= /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv");
|
6611
|
+
attr(div, "style", /*_buttonStyle*/ ctx[1]);
|
6360
6612
|
},
|
6361
6613
|
m(target, anchor) {
|
6362
6614
|
insert_hydration(target, div, anchor);
|
@@ -6365,16 +6617,20 @@ function create_if_block$1(ctx) {
|
|
6365
6617
|
append_hydration(div, t);
|
6366
6618
|
|
6367
6619
|
if (!mounted) {
|
6368
|
-
dispose = listen(div, "click", /*handleClick*/ ctx[
|
6620
|
+
dispose = listen(div, "click", /*handleClick*/ ctx[4](/*i*/ ctx[10]));
|
6369
6621
|
mounted = true;
|
6370
6622
|
}
|
6371
6623
|
},
|
6372
6624
|
p(new_ctx, dirty) {
|
6373
6625
|
ctx = new_ctx;
|
6374
6626
|
|
6375
|
-
if (dirty & /*_value*/
|
6627
|
+
if (dirty & /*_value*/ 4 && div_class_value !== (div_class_value = "rating-button" + (/*i*/ ctx[10] <= /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv")) {
|
6376
6628
|
attr(div, "class", div_class_value);
|
6377
6629
|
}
|
6630
|
+
|
6631
|
+
if (dirty & /*_buttonStyle*/ 2) {
|
6632
|
+
attr(div, "style", /*_buttonStyle*/ ctx[1]);
|
6633
|
+
}
|
6378
6634
|
},
|
6379
6635
|
d(detaching) {
|
6380
6636
|
if (detaching) detach(div);
|
@@ -6384,7 +6640,7 @@ function create_if_block$1(ctx) {
|
|
6384
6640
|
};
|
6385
6641
|
}
|
6386
6642
|
|
6387
|
-
// (
|
6643
|
+
// (47:2) {#each [...Array(5).keys()].map(i => i + 1) as i}
|
6388
6644
|
function create_each_block$1(ctx) {
|
6389
6645
|
let if_block_anchor;
|
6390
6646
|
|
@@ -6463,7 +6719,7 @@ function create_fragment$5(ctx) {
|
|
6463
6719
|
this.h();
|
6464
6720
|
},
|
6465
6721
|
h() {
|
6466
|
-
attr(div, "class", "rating-buttons svelte-
|
6722
|
+
attr(div, "class", "rating-buttons svelte-1ysi4uv");
|
6467
6723
|
},
|
6468
6724
|
m(target, anchor) {
|
6469
6725
|
insert_hydration(target, div, anchor);
|
@@ -6473,7 +6729,7 @@ function create_fragment$5(ctx) {
|
|
6473
6729
|
}
|
6474
6730
|
},
|
6475
6731
|
p(ctx, [dirty]) {
|
6476
|
-
if (dirty & /*Array, _value, handleClick, type, LIKERT_FACE_SVG_DATA*/
|
6732
|
+
if (dirty & /*Array, _value, _buttonStyle, handleClick, type, LIKERT_FACE_SVG_DATA*/ 55) {
|
6477
6733
|
each_value = [...Array(5).keys()].map(func);
|
6478
6734
|
let i;
|
6479
6735
|
|
@@ -6509,9 +6765,17 @@ const func = i => i + 1;
|
|
6509
6765
|
|
6510
6766
|
function instance$5($$self, $$props, $$invalidate) {
|
6511
6767
|
let _value;
|
6768
|
+
let _buttonStyle;
|
6512
6769
|
let $value;
|
6513
6770
|
let { name = '' } = $$props;
|
6514
|
-
let { type = '
|
6771
|
+
let { type = 'star' } = $$props;
|
6772
|
+
|
6773
|
+
let { buttonStyle = {
|
6774
|
+
size: '24px',
|
6775
|
+
colorActive: '#2aab9f',
|
6776
|
+
colorInactive: 'rgba(0, 16, 14, 0.2)'
|
6777
|
+
} } = $$props;
|
6778
|
+
|
6515
6779
|
const { path: statePath } = getStateItemContext();
|
6516
6780
|
|
6517
6781
|
const value = registerInput({
|
@@ -6523,7 +6787,7 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
6523
6787
|
}
|
6524
6788
|
});
|
6525
6789
|
|
6526
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6790
|
+
component_subscribe($$self, value, value => $$invalidate(8, $value = value));
|
6527
6791
|
|
6528
6792
|
const handleClick = index => event => {
|
6529
6793
|
value.set([String(index)]);
|
@@ -6539,23 +6803,38 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
6539
6803
|
};
|
6540
6804
|
|
6541
6805
|
$$self.$$set = $$props => {
|
6542
|
-
if ('name' in $$props) $$invalidate(
|
6806
|
+
if ('name' in $$props) $$invalidate(6, name = $$props.name);
|
6543
6807
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
6808
|
+
if ('buttonStyle' in $$props) $$invalidate(7, buttonStyle = $$props.buttonStyle);
|
6544
6809
|
};
|
6545
6810
|
|
6546
6811
|
$$self.$$.update = () => {
|
6547
|
-
if ($$self.$$.dirty & /*$value*/
|
6548
|
-
$$invalidate(
|
6812
|
+
if ($$self.$$.dirty & /*$value*/ 256) {
|
6813
|
+
$$invalidate(2, _value = Number($value[0] ?? -1));
|
6814
|
+
}
|
6815
|
+
|
6816
|
+
if ($$self.$$.dirty & /*buttonStyle*/ 128) {
|
6817
|
+
$$invalidate(1, _buttonStyle = `--size: ${buttonStyle.size}; --color-active: ${buttonStyle.colorActive}; --color-inactive: ${buttonStyle.colorInactive}`);
|
6549
6818
|
}
|
6550
6819
|
};
|
6551
6820
|
|
6552
|
-
return [
|
6821
|
+
return [
|
6822
|
+
type,
|
6823
|
+
_buttonStyle,
|
6824
|
+
_value,
|
6825
|
+
value,
|
6826
|
+
handleClick,
|
6827
|
+
LIKERT_FACE_SVG_DATA,
|
6828
|
+
name,
|
6829
|
+
buttonStyle,
|
6830
|
+
$value
|
6831
|
+
];
|
6553
6832
|
}
|
6554
6833
|
|
6555
6834
|
class FormRatingButtons extends SvelteComponent {
|
6556
6835
|
constructor(options) {
|
6557
6836
|
super();
|
6558
|
-
init(this, options, instance$5, create_fragment$5, safe_not_equal, { name:
|
6837
|
+
init(this, options, instance$5, create_fragment$5, safe_not_equal, { name: 6, type: 0, buttonStyle: 7 }, add_css$5);
|
6559
6838
|
}
|
6560
6839
|
}
|
6561
6840
|
|
@@ -7913,4 +8192,4 @@ class ImageBlock extends SvelteComponent {
|
|
7913
8192
|
}
|
7914
8193
|
}
|
7915
8194
|
|
7916
|
-
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 };
|
8195
|
+
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 };
|