@plaidev/karte-action-sdk 1.1.120-27932497.7c9501cf → 1.1.120-27933281.c7c47ad7

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.
@@ -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, set_style } from 'svelte/internal';
3
+ import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, claim_component, claim_space, mount_component, insert_hydration, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, claim_element, children, attr, noop, listen, is_function, append_hydration, add_render_callback, create_in_transition, svg_element, claim_svg_element, binding_callbacks, destroy_each, text, claim_text, set_data, 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) される前にフックする関数
@@ -2153,7 +2168,7 @@ function add_css$n(target) {
2153
2168
  }
2154
2169
 
2155
2170
  // (23:0) {#if $state === path}
2156
- function create_if_block$8(ctx) {
2171
+ function create_if_block$7(ctx) {
2157
2172
  let div;
2158
2173
  let t;
2159
2174
  let current;
@@ -2228,7 +2243,7 @@ function create_if_block$8(ctx) {
2228
2243
  function create_fragment$q(ctx) {
2229
2244
  let if_block_anchor;
2230
2245
  let current;
2231
- let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$8(ctx);
2246
+ let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$7(ctx);
2232
2247
 
2233
2248
  return {
2234
2249
  c() {
@@ -2253,7 +2268,7 @@ function create_fragment$q(ctx) {
2253
2268
  transition_in(if_block, 1);
2254
2269
  }
2255
2270
  } else {
2256
- if_block = create_if_block$8(ctx);
2271
+ if_block = create_if_block$7(ctx);
2257
2272
  if_block.c();
2258
2273
  transition_in(if_block, 1);
2259
2274
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -2327,7 +2342,7 @@ function add_css$m(target) {
2327
2342
  }
2328
2343
 
2329
2344
  // (9:0) {#if backgroundOverray}
2330
- function create_if_block$7(ctx) {
2345
+ function create_if_block$6(ctx) {
2331
2346
  let div;
2332
2347
  let mounted;
2333
2348
  let dispose;
@@ -2364,7 +2379,7 @@ function create_if_block$7(ctx) {
2364
2379
 
2365
2380
  function create_fragment$p(ctx) {
2366
2381
  let if_block_anchor;
2367
- let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$7(ctx);
2382
+ let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$6(ctx);
2368
2383
 
2369
2384
  return {
2370
2385
  c() {
@@ -2384,7 +2399,7 @@ function create_fragment$p(ctx) {
2384
2399
  if (if_block) {
2385
2400
  if_block.p(ctx, dirty);
2386
2401
  } else {
2387
- if_block = create_if_block$7(ctx);
2402
+ if_block = create_if_block$6(ctx);
2388
2403
  if_block.c();
2389
2404
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
2390
2405
  }
@@ -2428,7 +2443,7 @@ function add_css$l(target) {
2428
2443
  }
2429
2444
 
2430
2445
  // (142:0) {#if visible}
2431
- function create_if_block$6(ctx) {
2446
+ function create_if_block$5(ctx) {
2432
2447
  let div1;
2433
2448
  let t;
2434
2449
  let div0;
@@ -2671,7 +2686,7 @@ function create_fragment$o(ctx) {
2671
2686
  if (is_function(/*backgroundClick*/ ctx[12])) /*backgroundClick*/ ctx[12].apply(this, arguments);
2672
2687
  });
2673
2688
 
2674
- let if_block = /*visible*/ ctx[6] && create_if_block$6(ctx);
2689
+ let if_block = /*visible*/ ctx[6] && create_if_block$5(ctx);
2675
2690
 
2676
2691
  return {
2677
2692
  c() {
@@ -2715,7 +2730,7 @@ function create_fragment$o(ctx) {
2715
2730
  transition_in(if_block, 1);
2716
2731
  }
2717
2732
  } else {
2718
- if_block = create_if_block$6(ctx);
2733
+ if_block = create_if_block$5(ctx);
2719
2734
  if_block.c();
2720
2735
  transition_in(if_block, 1);
2721
2736
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -3844,7 +3859,7 @@ function create_else_block$1(ctx) {
3844
3859
  }
3845
3860
 
3846
3861
  // (10:2) {#if item.match(regexp)}
3847
- function create_if_block$5(ctx) {
3862
+ function create_if_block$4(ctx) {
3848
3863
  let br;
3849
3864
 
3850
3865
  return {
@@ -3872,7 +3887,7 @@ function create_each_block$5(ctx) {
3872
3887
  function select_block_type(ctx, dirty) {
3873
3888
  if (dirty & /*items*/ 1) show_if = null;
3874
3889
  if (show_if == null) show_if = !!/*item*/ ctx[2].match(regexp);
3875
- if (show_if) return create_if_block$5;
3890
+ if (show_if) return create_if_block$4;
3876
3891
  return create_else_block$1;
3877
3892
  }
3878
3893
 
@@ -4009,7 +4024,7 @@ function add_css$h(target) {
4009
4024
  }
4010
4025
 
4011
4026
  // (56:2) {#if enableCopy}
4012
- function create_if_block$4(ctx) {
4027
+ function create_if_block$3(ctx) {
4013
4028
  let div0;
4014
4029
  let t0;
4015
4030
  let t1;
@@ -4072,7 +4087,7 @@ function create_fragment$h(ctx) {
4072
4087
  let mounted;
4073
4088
  let dispose;
4074
4089
  rendertext = new RenderText({ props: { text: /*text*/ ctx[0] } });
4075
- let if_block = /*enableCopy*/ ctx[1] && create_if_block$4(ctx);
4090
+ let if_block = /*enableCopy*/ ctx[1] && create_if_block$3(ctx);
4076
4091
 
4077
4092
  return {
4078
4093
  c() {
@@ -4136,7 +4151,7 @@ function create_fragment$h(ctx) {
4136
4151
  if (if_block) {
4137
4152
  if_block.p(ctx, dirty);
4138
4153
  } else {
4139
- if_block = create_if_block$4(ctx);
4154
+ if_block = create_if_block$3(ctx);
4140
4155
  if_block.c();
4141
4156
  if_block.m(div2, null);
4142
4157
  }
@@ -5573,17 +5588,17 @@ class FormTextarea extends SvelteComponent {
5573
5588
  /* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
5574
5589
 
5575
5590
  function add_css$8(target) {
5576
- append_styles(target, "svelte-1574x6a", ".radio-buttons.svelte-1574x6a{display:flex;justify-content:space-evenly;flex-direction:column;width:100%;height:100%}.radio-button.svelte-1574x6a{font-size:12px;cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-1574x6a{appearance:none;margin:0;width:1.3em;height:1.3em;box-sizing:border-box;border-radius:0.7em;position:relative;background-color:rgba(0, 16, 14, 0.06);;;cursor:pointer}.radio-button-input.svelte-1574x6a:checked{border:solid 0.4em #2aab9f;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-1574x6a{margin-left:0.4em}");
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}");
5577
5592
  }
5578
5593
 
5579
5594
  function get_each_context$4(ctx, list, i) {
5580
5595
  const child_ctx = ctx.slice();
5581
- child_ctx[8] = list[i];
5582
- child_ctx[10] = i;
5596
+ child_ctx[11] = list[i];
5597
+ child_ctx[13] = i;
5583
5598
  return child_ctx;
5584
5599
  }
5585
5600
 
5586
- // (24:2) {#each _options as option, i}
5601
+ // (49:2) {#each _options as option, i}
5587
5602
  function create_each_block$4(ctx) {
5588
5603
  let label;
5589
5604
  let input;
@@ -5591,7 +5606,7 @@ function create_each_block$4(ctx) {
5591
5606
  let input_checked_value;
5592
5607
  let t0;
5593
5608
  let span;
5594
- let t1_value = /*option*/ ctx[8] + "";
5609
+ let t1_value = /*option*/ ctx[11] + "";
5595
5610
  let t1;
5596
5611
  let t2;
5597
5612
  let mounted;
@@ -5610,9 +5625,16 @@ function create_each_block$4(ctx) {
5610
5625
  l(nodes) {
5611
5626
  label = claim_element(nodes, "LABEL", { class: true });
5612
5627
  var label_nodes = children(label);
5613
- input = claim_element(label_nodes, "INPUT", { type: true, class: true, name: true });
5628
+
5629
+ input = claim_element(label_nodes, "INPUT", {
5630
+ type: true,
5631
+ class: true,
5632
+ style: true,
5633
+ name: true
5634
+ });
5635
+
5614
5636
  t0 = claim_space(label_nodes);
5615
- span = claim_element(label_nodes, "SPAN", { class: true });
5637
+ span = claim_element(label_nodes, "SPAN", { class: true, style: true });
5616
5638
  var span_nodes = children(span);
5617
5639
  t1 = claim_text(span_nodes, t1_value);
5618
5640
  span_nodes.forEach(detach);
@@ -5622,12 +5644,14 @@ function create_each_block$4(ctx) {
5622
5644
  },
5623
5645
  h() {
5624
5646
  attr(input, "type", "radio");
5625
- attr(input, "class", "radio-button-input svelte-1574x6a");
5647
+ attr(input, "class", "radio-button-input svelte-1k9zlui");
5648
+ attr(input, "style", /*_buttonStyle*/ ctx[4]);
5626
5649
  attr(input, "name", /*name*/ ctx[0]);
5627
- input.value = input_value_value = /*option*/ ctx[8];
5628
- input.checked = input_checked_value = /*option*/ ctx[8] === /*_value*/ ctx[1];
5629
- attr(span, "class", "radio-button-text svelte-1574x6a");
5630
- attr(label, "class", "radio-button svelte-1574x6a");
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");
5631
5655
  },
5632
5656
  m(target, anchor) {
5633
5657
  insert_hydration(target, label, anchor);
@@ -5638,26 +5662,34 @@ function create_each_block$4(ctx) {
5638
5662
  append_hydration(label, t2);
5639
5663
 
5640
5664
  if (!mounted) {
5641
- dispose = listen(input, "change", /*handleChange*/ ctx[4](/*i*/ ctx[10]));
5665
+ dispose = listen(input, "change", /*handleChange*/ ctx[6](/*i*/ ctx[13]));
5642
5666
  mounted = true;
5643
5667
  }
5644
5668
  },
5645
5669
  p(new_ctx, dirty) {
5646
5670
  ctx = new_ctx;
5647
5671
 
5672
+ if (dirty & /*_buttonStyle*/ 16) {
5673
+ attr(input, "style", /*_buttonStyle*/ ctx[4]);
5674
+ }
5675
+
5648
5676
  if (dirty & /*name*/ 1) {
5649
5677
  attr(input, "name", /*name*/ ctx[0]);
5650
5678
  }
5651
5679
 
5652
- if (dirty & /*_options*/ 4 && input_value_value !== (input_value_value = /*option*/ ctx[8])) {
5680
+ if (dirty & /*_options*/ 8 && input_value_value !== (input_value_value = /*option*/ ctx[11])) {
5653
5681
  input.value = input_value_value;
5654
5682
  }
5655
5683
 
5656
- if (dirty & /*_options, _value*/ 6 && input_checked_value !== (input_checked_value = /*option*/ ctx[8] === /*_value*/ ctx[1])) {
5684
+ if (dirty & /*_options, _value*/ 12 && input_checked_value !== (input_checked_value = /*option*/ ctx[11] === /*_value*/ ctx[2])) {
5657
5685
  input.checked = input_checked_value;
5658
5686
  }
5659
5687
 
5660
- if (dirty & /*_options*/ 4 && t1_value !== (t1_value = /*option*/ ctx[8] + "")) set_data(t1, t1_value);
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
+ }
5661
5693
  },
5662
5694
  d(detaching) {
5663
5695
  if (detaching) detach(label);
@@ -5669,7 +5701,7 @@ function create_each_block$4(ctx) {
5669
5701
 
5670
5702
  function create_fragment$8(ctx) {
5671
5703
  let div;
5672
- let each_value = /*_options*/ ctx[2];
5704
+ let each_value = /*_options*/ ctx[3];
5673
5705
  let each_blocks = [];
5674
5706
 
5675
5707
  for (let i = 0; i < each_value.length; i += 1) {
@@ -5698,7 +5730,7 @@ function create_fragment$8(ctx) {
5698
5730
  this.h();
5699
5731
  },
5700
5732
  h() {
5701
- attr(div, "class", "radio-buttons svelte-1574x6a");
5733
+ attr(div, "class", "radio-buttons svelte-1k9zlui");
5702
5734
  },
5703
5735
  m(target, anchor) {
5704
5736
  insert_hydration(target, div, anchor);
@@ -5708,8 +5740,8 @@ function create_fragment$8(ctx) {
5708
5740
  }
5709
5741
  },
5710
5742
  p(ctx, [dirty]) {
5711
- if (dirty & /*_options, name, _value, handleChange*/ 23) {
5712
- each_value = /*_options*/ ctx[2];
5743
+ if (dirty & /*textStyle, _options, _buttonStyle, name, _value, handleChange*/ 95) {
5744
+ each_value = /*_options*/ ctx[3];
5713
5745
  let i;
5714
5746
 
5715
5747
  for (i = 0; i < each_value.length; i += 1) {
@@ -5742,10 +5774,19 @@ function create_fragment$8(ctx) {
5742
5774
 
5743
5775
  function instance$8($$self, $$props, $$invalidate) {
5744
5776
  let _options;
5777
+ let _buttonStyle;
5745
5778
  let _value;
5746
5779
  let $value;
5747
5780
  let { name = '' } = $$props;
5748
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
+
5749
5790
  const { path: statePath } = getStateItemContext();
5750
5791
 
5751
5792
  const value = registerInput({
@@ -5757,7 +5798,7 @@ function instance$8($$self, $$props, $$invalidate) {
5757
5798
  }
5758
5799
  });
5759
5800
 
5760
- component_subscribe($$self, value, value => $$invalidate(6, $value = value));
5801
+ component_subscribe($$self, value, value => $$invalidate(9, $value = value));
5761
5802
 
5762
5803
  const handleChange = index => event => {
5763
5804
  if (event.target.checked) {
@@ -5767,43 +5808,74 @@ function instance$8($$self, $$props, $$invalidate) {
5767
5808
 
5768
5809
  $$self.$$set = $$props => {
5769
5810
  if ('name' in $$props) $$invalidate(0, name = $$props.name);
5770
- if ('options' in $$props) $$invalidate(5, options = $$props.options);
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);
5771
5814
  };
5772
5815
 
5773
5816
  $$self.$$.update = () => {
5774
- if ($$self.$$.dirty & /*options*/ 32) {
5775
- $$invalidate(2, _options = options.split(','));
5817
+ if ($$self.$$.dirty & /*options*/ 128) {
5818
+ $$invalidate(3, _options = options.split(','));
5776
5819
  }
5777
5820
 
5778
- if ($$self.$$.dirty & /*$value*/ 64) {
5779
- $$invalidate(1, _value = $value[0]);
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]);
5780
5827
  }
5781
5828
  };
5782
5829
 
5783
- return [name, _value, _options, value, handleChange, options, $value];
5830
+ return [
5831
+ name,
5832
+ textStyle,
5833
+ _value,
5834
+ _options,
5835
+ _buttonStyle,
5836
+ value,
5837
+ handleChange,
5838
+ options,
5839
+ buttonStyle,
5840
+ $value
5841
+ ];
5784
5842
  }
5785
5843
 
5786
5844
  class FormRadioButtons extends SvelteComponent {
5787
5845
  constructor(options) {
5788
5846
  super();
5789
- init(this, options, instance$8, create_fragment$8, safe_not_equal, { name: 0, options: 5 }, add_css$8);
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
+ );
5790
5862
  }
5791
5863
  }
5792
5864
 
5793
5865
  /* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
5794
5866
 
5795
5867
  function add_css$7(target) {
5796
- append_styles(target, "svelte-1esvjlb", ".select-wrapper.svelte-1esvjlb{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%;position:relative\n}.select-select.svelte-1esvjlb{position:relative;font-size:12px;appearance:none;border:solid 2px #ccc;border-radius:6px;padding:0.8em 1.6em 0.8em 0.8em;width:100%}.select-select.svelte-1esvjlb:focus{outline:none;border-color:#2aab9f}.select-icon.svelte-1esvjlb{position:absolute;width:0.5em;height:0.5em;top:calc(50% - 0.2em);right:0.8em;box-sizing:border-box;border-right:solid 2px #666;border-top:solid 2px #666;transform:translateY(-35.4%) rotate(135deg);pointer-events:none}");
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}");
5797
5869
  }
5798
5870
 
5799
5871
  function get_each_context$3(ctx, list, i) {
5800
5872
  const child_ctx = ctx.slice();
5801
- child_ctx[6] = list[i];
5802
- child_ctx[8] = i;
5873
+ child_ctx[9] = list[i];
5874
+ child_ctx[11] = i;
5803
5875
  return child_ctx;
5804
5876
  }
5805
5877
 
5806
- // (29:10) {:else}
5878
+ // (47:10) {:else}
5807
5879
  function create_else_block(ctx) {
5808
5880
  let t;
5809
5881
 
@@ -5824,9 +5896,9 @@ function create_else_block(ctx) {
5824
5896
  };
5825
5897
  }
5826
5898
 
5827
- // (27:10) {#if option}
5828
- function create_if_block$3(ctx) {
5829
- let t_value = /*option*/ ctx[6] + "";
5899
+ // (45:10) {#if option}
5900
+ function create_if_block$2(ctx) {
5901
+ let t_value = /*option*/ ctx[9] + "";
5830
5902
  let t;
5831
5903
 
5832
5904
  return {
@@ -5840,7 +5912,7 @@ function create_if_block$3(ctx) {
5840
5912
  insert_hydration(target, t, anchor);
5841
5913
  },
5842
5914
  p(ctx, dirty) {
5843
- if (dirty & /*_options*/ 1 && t_value !== (t_value = /*option*/ ctx[6] + "")) set_data(t, t_value);
5915
+ if (dirty & /*_options*/ 4 && t_value !== (t_value = /*option*/ ctx[9] + "")) set_data(t, t_value);
5844
5916
  },
5845
5917
  d(detaching) {
5846
5918
  if (detaching) detach(t);
@@ -5848,14 +5920,14 @@ function create_if_block$3(ctx) {
5848
5920
  };
5849
5921
  }
5850
5922
 
5851
- // (25:6) {#each _options as option, i}
5923
+ // (43:6) {#each _options as option, i}
5852
5924
  function create_each_block$3(ctx) {
5853
5925
  let option;
5854
5926
  let t;
5855
5927
  let option_value_value;
5856
5928
 
5857
5929
  function select_block_type(ctx, dirty) {
5858
- if (/*option*/ ctx[6]) return create_if_block$3;
5930
+ if (/*option*/ ctx[9]) return create_if_block$2;
5859
5931
  return create_else_block;
5860
5932
  }
5861
5933
 
@@ -5878,7 +5950,7 @@ function create_each_block$3(ctx) {
5878
5950
  this.h();
5879
5951
  },
5880
5952
  h() {
5881
- option.__value = option_value_value = /*option*/ ctx[6];
5953
+ option.__value = option_value_value = /*option*/ ctx[9];
5882
5954
  option.value = option.__value;
5883
5955
  },
5884
5956
  m(target, anchor) {
@@ -5899,7 +5971,7 @@ function create_each_block$3(ctx) {
5899
5971
  }
5900
5972
  }
5901
5973
 
5902
- if (dirty & /*_options*/ 1 && option_value_value !== (option_value_value = /*option*/ ctx[6])) {
5974
+ if (dirty & /*_options*/ 4 && option_value_value !== (option_value_value = /*option*/ ctx[9])) {
5903
5975
  option.__value = option_value_value;
5904
5976
  option.value = option.__value;
5905
5977
  }
@@ -5919,7 +5991,7 @@ function create_fragment$7(ctx) {
5919
5991
  let div0;
5920
5992
  let mounted;
5921
5993
  let dispose;
5922
- let each_value = /*_options*/ ctx[0];
5994
+ let each_value = /*_options*/ ctx[2];
5923
5995
  let each_blocks = [];
5924
5996
 
5925
5997
  for (let i = 0; i < each_value.length; i += 1) {
@@ -5943,9 +6015,9 @@ function create_fragment$7(ctx) {
5943
6015
  l(nodes) {
5944
6016
  div2 = claim_element(nodes, "DIV", { class: true });
5945
6017
  var div2_nodes = children(div2);
5946
- div1 = claim_element(div2_nodes, "DIV", { class: true });
6018
+ div1 = claim_element(div2_nodes, "DIV", { class: true, style: true });
5947
6019
  var div1_nodes = children(div1);
5948
- select = claim_element(div1_nodes, "SELECT", { class: true });
6020
+ select = claim_element(div1_nodes, "SELECT", { class: true, style: true });
5949
6021
  var select_nodes = children(select);
5950
6022
 
5951
6023
  for (let i = 0; i < each_blocks.length; i += 1) {
@@ -5961,10 +6033,12 @@ function create_fragment$7(ctx) {
5961
6033
  this.h();
5962
6034
  },
5963
6035
  h() {
5964
- attr(select, "class", "select-select svelte-1esvjlb");
5965
- attr(div0, "class", "select-icon svelte-1esvjlb");
6036
+ attr(select, "class", "select-select svelte-1c94amx");
6037
+ attr(select, "style", /*_style*/ ctx[0]);
6038
+ attr(div0, "class", "select-icon svelte-1c94amx");
5966
6039
  attr(div1, "class", "select");
5967
- attr(div2, "class", "select-wrapper svelte-1esvjlb");
6040
+ attr(div1, "style", /*styleVariables*/ ctx[1]);
6041
+ attr(div2, "class", "select-wrapper svelte-1c94amx");
5968
6042
  },
5969
6043
  m(target, anchor) {
5970
6044
  insert_hydration(target, div2, anchor);
@@ -5979,13 +6053,13 @@ function create_fragment$7(ctx) {
5979
6053
  append_hydration(div1, div0);
5980
6054
 
5981
6055
  if (!mounted) {
5982
- dispose = listen(select, "change", /*handleChange*/ ctx[1]);
6056
+ dispose = listen(select, "change", /*handleChange*/ ctx[3]);
5983
6057
  mounted = true;
5984
6058
  }
5985
6059
  },
5986
6060
  p(ctx, [dirty]) {
5987
- if (dirty & /*_options*/ 1) {
5988
- each_value = /*_options*/ ctx[0];
6061
+ if (dirty & /*_options*/ 4) {
6062
+ each_value = /*_options*/ ctx[2];
5989
6063
  let i;
5990
6064
 
5991
6065
  for (i = 0; i < each_value.length; i += 1) {
@@ -6006,6 +6080,14 @@ function create_fragment$7(ctx) {
6006
6080
 
6007
6081
  each_blocks.length = each_value.length;
6008
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
+ }
6009
6091
  },
6010
6092
  i: noop,
6011
6093
  o: noop,
@@ -6020,8 +6102,16 @@ function create_fragment$7(ctx) {
6020
6102
 
6021
6103
  function instance$7($$self, $$props, $$invalidate) {
6022
6104
  let _options;
6105
+ let styleVariables;
6023
6106
  let { name = '' } = $$props;
6024
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
+
6025
6115
  const { path: statePath } = getStateItemContext();
6026
6116
 
6027
6117
  const value = registerInput({
@@ -6039,102 +6129,85 @@ function instance$7($$self, $$props, $$invalidate) {
6039
6129
  }
6040
6130
 
6041
6131
  $$self.$$set = $$props => {
6042
- if ('name' in $$props) $$invalidate(2, name = $$props.name);
6043
- if ('options' in $$props) $$invalidate(3, options = $$props.options);
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);
6044
6136
  };
6045
6137
 
6046
6138
  $$self.$$.update = () => {
6047
- if ($$self.$$.dirty & /*options*/ 8) {
6048
- $$invalidate(0, _options = ['', ...options.split(',')]);
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}`);
6049
6145
  }
6050
6146
  };
6051
6147
 
6052
- return [_options, handleChange, name, options];
6148
+ return [_style, styleVariables, _options, handleChange, name, options, selectStyle];
6053
6149
  }
6054
6150
 
6055
6151
  class FormSelect extends SvelteComponent {
6056
6152
  constructor(options) {
6057
6153
  super();
6058
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { name: 2, options: 3 }, add_css$7);
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
+ );
6059
6169
  }
6060
6170
  }
6061
6171
 
6062
6172
  /* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
6063
6173
 
6064
6174
  function add_css$6(target) {
6065
- append_styles(target, "svelte-1g004f9", ".check-boxes.svelte-1g004f9{display:flex;justify-content:space-evenly;flex-direction:column;width:100%;height:100%}.check-box.svelte-1g004f9{display:flex;align-items:center;font-size:12px;height:1.7em;position:relative;cursor:pointer}.check-box-input.svelte-1g004f9{width:0;height:0;margin:0}.check-box-check.svelte-1g004f9{display:inline-flex;background-color:rgba(0, 16, 14, 0.06);width:1.3em;height:1.3em;border-radius:0.3em;justify-content:center;align-items:center}.check-box-check._checked.svelte-1g004f9{box-shadow:0 4px 8px -2px rgb(0 16 14 / 31%)}.check-box-text.svelte-1g004f9{margin-left:0.5em}.check-box-icon.svelte-1g004f9{display:inline-block;width:12px;height:12px}.check-box-icon-inner.svelte-1g004f9{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:#000}");
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}");
6066
6176
  }
6067
6177
 
6068
6178
  function get_each_context$2(ctx, list, i) {
6069
6179
  const child_ctx = ctx.slice();
6070
- child_ctx[8] = list[i];
6071
- child_ctx[10] = i;
6180
+ child_ctx[11] = list[i];
6181
+ child_ctx[13] = i;
6072
6182
  return child_ctx;
6073
6183
  }
6074
6184
 
6075
- // (34:8) {#if isCheckedArray[i]}
6076
- function create_if_block$2(ctx) {
6077
- let span1;
6078
- let span0;
6079
-
6080
- return {
6081
- c() {
6082
- span1 = element("span");
6083
- span0 = element("span");
6084
- this.h();
6085
- },
6086
- l(nodes) {
6087
- span1 = claim_element(nodes, "SPAN", { class: true, style: true });
6088
- var span1_nodes = children(span1);
6089
- span0 = claim_element(span1_nodes, "SPAN", { class: true, style: true });
6090
- children(span0).forEach(detach);
6091
- span1_nodes.forEach(detach);
6092
- this.h();
6093
- },
6094
- h() {
6095
- attr(span0, "class", "check-box-icon-inner svelte-1g004f9");
6096
- set_style(span0, "border-color", "#fff");
6097
- attr(span1, "class", "check-box-icon svelte-1g004f9");
6098
- set_style(span1, "width", "0.9em");
6099
- set_style(span1, "height", "0.9em");
6100
- },
6101
- m(target, anchor) {
6102
- insert_hydration(target, span1, anchor);
6103
- append_hydration(span1, span0);
6104
- },
6105
- d(detaching) {
6106
- if (detaching) detach(span1);
6107
- }
6108
- };
6109
- }
6110
-
6111
- // (30:2) {#each _options as option, i}
6185
+ // (55:2) {#each _options as option, i}
6112
6186
  function create_each_block$2(ctx) {
6113
6187
  let label;
6114
6188
  let input;
6115
6189
  let input_checked_value;
6116
6190
  let t0;
6191
+ let span1;
6117
6192
  let span0;
6118
- let span0_class_value;
6119
- let span0_style_value;
6193
+ let span1_class_value;
6120
6194
  let t1;
6121
- let span1;
6122
- let t2_value = /*option*/ ctx[8] + "";
6195
+ let span2;
6196
+ let t2_value = /*option*/ ctx[11] + "";
6123
6197
  let t2;
6124
6198
  let t3;
6125
6199
  let mounted;
6126
6200
  let dispose;
6127
- let if_block = /*isCheckedArray*/ ctx[2][/*i*/ ctx[10]] && create_if_block$2();
6128
6201
 
6129
6202
  return {
6130
6203
  c() {
6131
6204
  label = element("label");
6132
6205
  input = element("input");
6133
6206
  t0 = space();
6207
+ span1 = element("span");
6134
6208
  span0 = element("span");
6135
- if (if_block) if_block.c();
6136
6209
  t1 = space();
6137
- span1 = element("span");
6210
+ span2 = element("span");
6138
6211
  t2 = text(t2_value);
6139
6212
  t3 = space();
6140
6213
  this.h();
@@ -6144,49 +6217,50 @@ function create_each_block$2(ctx) {
6144
6217
  var label_nodes = children(label);
6145
6218
  input = claim_element(label_nodes, "INPUT", { class: true, type: true, name: true });
6146
6219
  t0 = claim_space(label_nodes);
6147
- span0 = claim_element(label_nodes, "SPAN", { class: true, style: true });
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 });
6148
6223
  var span0_nodes = children(span0);
6149
- if (if_block) if_block.l(span0_nodes);
6150
6224
  span0_nodes.forEach(detach);
6151
- t1 = claim_space(label_nodes);
6152
- span1 = claim_element(label_nodes, "SPAN", { class: true });
6153
- var span1_nodes = children(span1);
6154
- t2 = claim_text(span1_nodes, t2_value);
6155
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);
6156
6231
  t3 = claim_space(label_nodes);
6157
6232
  label_nodes.forEach(detach);
6158
6233
  this.h();
6159
6234
  },
6160
6235
  h() {
6161
- attr(input, "class", "check-box-input svelte-1g004f9");
6236
+ attr(input, "class", "check-box-input svelte-15x08a");
6162
6237
  attr(input, "type", "checkbox");
6163
6238
  attr(input, "name", /*name*/ ctx[0]);
6164
- input.checked = input_checked_value = /*isCheckedArray*/ ctx[2][/*i*/ ctx[10]];
6239
+ input.checked = input_checked_value = /*isCheckedArray*/ ctx[3][/*i*/ ctx[13]];
6240
+ attr(span0, "class", "check-box-icon svelte-15x08a");
6165
6241
 
6166
- attr(span0, "class", span0_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]
6242
+ attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[3][/*i*/ ctx[13]]
6167
6243
  ? ' _checked'
6168
- : ''}`) + " svelte-1g004f9"));
6169
-
6170
- attr(span0, "style", span0_style_value = `${/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]
6171
- ? 'background-color: #2aab9f;'
6172
- : ''}`);
6244
+ : ''}`) + " svelte-15x08a"));
6173
6245
 
6174
- attr(span1, "class", "check-box-text svelte-1g004f9");
6175
- 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");
6176
6250
  },
6177
6251
  m(target, anchor) {
6178
6252
  insert_hydration(target, label, anchor);
6179
6253
  append_hydration(label, input);
6180
6254
  append_hydration(label, t0);
6181
- append_hydration(label, span0);
6182
- if (if_block) if_block.m(span0, null);
6183
- append_hydration(label, t1);
6184
6255
  append_hydration(label, span1);
6185
- append_hydration(span1, t2);
6256
+ append_hydration(span1, span0);
6257
+ append_hydration(label, t1);
6258
+ append_hydration(label, span2);
6259
+ append_hydration(span2, t2);
6186
6260
  append_hydration(label, t3);
6187
6261
 
6188
6262
  if (!mounted) {
6189
- dispose = listen(input, "change", /*handleChange*/ ctx[4](/*i*/ ctx[10]));
6263
+ dispose = listen(input, "change", /*handleChange*/ ctx[6](/*i*/ ctx[13]));
6190
6264
  mounted = true;
6191
6265
  }
6192
6266
  },
@@ -6197,38 +6271,28 @@ function create_each_block$2(ctx) {
6197
6271
  attr(input, "name", /*name*/ ctx[0]);
6198
6272
  }
6199
6273
 
6200
- if (dirty & /*isCheckedArray*/ 4 && input_checked_value !== (input_checked_value = /*isCheckedArray*/ ctx[2][/*i*/ ctx[10]])) {
6274
+ if (dirty & /*isCheckedArray*/ 8 && input_checked_value !== (input_checked_value = /*isCheckedArray*/ ctx[3][/*i*/ ctx[13]])) {
6201
6275
  input.checked = input_checked_value;
6202
6276
  }
6203
6277
 
6204
- if (/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]) {
6205
- if (if_block) ; else {
6206
- if_block = create_if_block$2();
6207
- if_block.c();
6208
- if_block.m(span0, null);
6209
- }
6210
- } else if (if_block) {
6211
- if_block.d(1);
6212
- if_block = null;
6213
- }
6214
-
6215
- 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]]
6216
6279
  ? ' _checked'
6217
- : ''}`) + " svelte-1g004f9"))) {
6218
- attr(span0, "class", span0_class_value);
6280
+ : ''}`) + " svelte-15x08a"))) {
6281
+ attr(span1, "class", span1_class_value);
6219
6282
  }
6220
6283
 
6221
- if (dirty & /*isCheckedArray*/ 4 && span0_style_value !== (span0_style_value = `${/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]
6222
- ? 'background-color: #2aab9f;'
6223
- : ''}`)) {
6224
- attr(span0, "style", span0_style_value);
6284
+ if (dirty & /*_buttonStyle*/ 16) {
6285
+ attr(span1, "style", /*_buttonStyle*/ ctx[4]);
6225
6286
  }
6226
6287
 
6227
- if (dirty & /*_options*/ 2 && t2_value !== (t2_value = /*option*/ ctx[8] + "")) set_data(t2, t2_value);
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
+ }
6228
6293
  },
6229
6294
  d(detaching) {
6230
6295
  if (detaching) detach(label);
6231
- if (if_block) if_block.d();
6232
6296
  mounted = false;
6233
6297
  dispose();
6234
6298
  }
@@ -6237,7 +6301,7 @@ function create_each_block$2(ctx) {
6237
6301
 
6238
6302
  function create_fragment$6(ctx) {
6239
6303
  let div;
6240
- let each_value = /*_options*/ ctx[1];
6304
+ let each_value = /*_options*/ ctx[2];
6241
6305
  let each_blocks = [];
6242
6306
 
6243
6307
  for (let i = 0; i < each_value.length; i += 1) {
@@ -6266,7 +6330,7 @@ function create_fragment$6(ctx) {
6266
6330
  this.h();
6267
6331
  },
6268
6332
  h() {
6269
- attr(div, "class", "check-boxes svelte-1g004f9");
6333
+ attr(div, "class", "check-boxes svelte-15x08a");
6270
6334
  },
6271
6335
  m(target, anchor) {
6272
6336
  insert_hydration(target, div, anchor);
@@ -6276,8 +6340,8 @@ function create_fragment$6(ctx) {
6276
6340
  }
6277
6341
  },
6278
6342
  p(ctx, [dirty]) {
6279
- if (dirty & /*_options, isCheckedArray, name, handleChange*/ 23) {
6280
- each_value = /*_options*/ ctx[1];
6343
+ if (dirty & /*textStyle, _options, isCheckedArray, _buttonStyle, name, handleChange*/ 95) {
6344
+ each_value = /*_options*/ ctx[2];
6281
6345
  let i;
6282
6346
 
6283
6347
  for (i = 0; i < each_value.length; i += 1) {
@@ -6310,10 +6374,19 @@ function create_fragment$6(ctx) {
6310
6374
 
6311
6375
  function instance$6($$self, $$props, $$invalidate) {
6312
6376
  let _options;
6377
+ let _buttonStyle;
6313
6378
  let isCheckedArray;
6314
6379
  let $value;
6315
6380
  let { name = '' } = $$props;
6316
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
+
6317
6390
  const { path: statePath } = getStateItemContext();
6318
6391
 
6319
6392
  const value = registerInput({
@@ -6325,12 +6398,12 @@ function instance$6($$self, $$props, $$invalidate) {
6325
6398
  }
6326
6399
  });
6327
6400
 
6328
- component_subscribe($$self, value, value => $$invalidate(6, $value = value));
6401
+ component_subscribe($$self, value, value => $$invalidate(9, $value = value));
6329
6402
 
6330
6403
  const handleChange = index => event => {
6331
6404
  if (isCheckedArray[index] !== event.target.checked) {
6332
- $$invalidate(2, isCheckedArray[index] = event.target.checked, isCheckedArray);
6333
- $$invalidate(2, isCheckedArray = [...isCheckedArray]);
6405
+ $$invalidate(3, isCheckedArray[index] = event.target.checked, isCheckedArray);
6406
+ $$invalidate(3, isCheckedArray = [...isCheckedArray]);
6334
6407
  const updated = _options.filter((option, i) => isCheckedArray[i]);
6335
6408
  value.set(updated);
6336
6409
  }
@@ -6338,45 +6411,76 @@ function instance$6($$self, $$props, $$invalidate) {
6338
6411
 
6339
6412
  $$self.$$set = $$props => {
6340
6413
  if ('name' in $$props) $$invalidate(0, name = $$props.name);
6341
- if ('options' in $$props) $$invalidate(5, options = $$props.options);
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);
6342
6417
  };
6343
6418
 
6344
6419
  $$self.$$.update = () => {
6345
- if ($$self.$$.dirty & /*options*/ 32) {
6346
- $$invalidate(1, _options = options.split(','));
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}`);
6347
6426
  }
6348
6427
 
6349
- if ($$self.$$.dirty & /*$value, _options*/ 66) {
6350
- $$invalidate(2, isCheckedArray = (() => {
6428
+ if ($$self.$$.dirty & /*$value, _options*/ 516) {
6429
+ $$invalidate(3, isCheckedArray = (() => {
6351
6430
  const checkedSet = new Set($value);
6352
6431
  return _options.map(option => checkedSet.has(option));
6353
6432
  })());
6354
6433
  }
6355
6434
  };
6356
6435
 
6357
- return [name, _options, isCheckedArray, value, handleChange, options, $value];
6436
+ return [
6437
+ name,
6438
+ textStyle,
6439
+ _options,
6440
+ isCheckedArray,
6441
+ _buttonStyle,
6442
+ value,
6443
+ handleChange,
6444
+ options,
6445
+ buttonStyle,
6446
+ $value
6447
+ ];
6358
6448
  }
6359
6449
 
6360
6450
  class FormCheckBoxes extends SvelteComponent {
6361
6451
  constructor(options) {
6362
6452
  super();
6363
- init(this, options, instance$6, create_fragment$6, safe_not_equal, { name: 0, options: 5 }, add_css$6);
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
+ );
6364
6468
  }
6365
6469
  }
6366
6470
 
6367
6471
  /* src/components/FormRatingButtons.svelte generated by Svelte v3.53.1 */
6368
6472
 
6369
6473
  function add_css$5(target) {
6370
- append_styles(target, "svelte-14cxkfs", ".rating-buttons.svelte-14cxkfs.svelte-14cxkfs{display:flex;justify-content:space-evenly;align-items:center;width:100%;height:100%}.rating-button.svelte-14cxkfs.svelte-14cxkfs{cursor:pointer;display:flex}.rating-button.svelte-14cxkfs svg.svelte-14cxkfs{fill:#ccc}.rating-button._selected.svelte-14cxkfs svg.svelte-14cxkfs{fill:#2aab9f}");
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)}");
6371
6475
  }
6372
6476
 
6373
6477
  function get_each_context$1(ctx, list, i) {
6374
6478
  const child_ctx = ctx.slice();
6375
- child_ctx[8] = list[i];
6479
+ child_ctx[10] = list[i];
6376
6480
  return child_ctx;
6377
6481
  }
6378
6482
 
6379
- // (36:30)
6483
+ // (54:30)
6380
6484
  function create_if_block_1$1(ctx) {
6381
6485
  let div;
6382
6486
  let svg;
@@ -6395,7 +6499,7 @@ function create_if_block_1$1(ctx) {
6395
6499
  this.h();
6396
6500
  },
6397
6501
  l(nodes) {
6398
- div = claim_element(nodes, "DIV", { class: true });
6502
+ div = claim_element(nodes, "DIV", { class: true, style: true });
6399
6503
  var div_nodes = children(div);
6400
6504
 
6401
6505
  svg = claim_svg_element(div_nodes, "svg", {
@@ -6416,14 +6520,15 @@ function create_if_block_1$1(ctx) {
6416
6520
  this.h();
6417
6521
  },
6418
6522
  h() {
6419
- attr(path, "d", /*LIKERT_FACE_SVG_DATA*/ ctx[4][/*i*/ ctx[8]]);
6523
+ attr(path, "d", /*LIKERT_FACE_SVG_DATA*/ ctx[5][/*i*/ ctx[10]]);
6420
6524
  attr(svg, "width", "24");
6421
6525
  attr(svg, "height", "24");
6422
6526
  attr(svg, "viewBox", "0 0 24 24");
6423
6527
  attr(svg, "fill", "none");
6424
6528
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
6425
- attr(svg, "class", "svelte-14cxkfs");
6426
- attr(div, "class", div_class_value = "rating-button" + (/*i*/ ctx[8] === /*_value*/ ctx[1] ? ' _selected' : '') + " svelte-14cxkfs");
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]);
6427
6532
  },
6428
6533
  m(target, anchor) {
6429
6534
  insert_hydration(target, div, anchor);
@@ -6432,16 +6537,20 @@ function create_if_block_1$1(ctx) {
6432
6537
  append_hydration(div, t);
6433
6538
 
6434
6539
  if (!mounted) {
6435
- dispose = listen(div, "click", /*handleClick*/ ctx[3](/*i*/ ctx[8]));
6540
+ dispose = listen(div, "click", /*handleClick*/ ctx[4](/*i*/ ctx[10]));
6436
6541
  mounted = true;
6437
6542
  }
6438
6543
  },
6439
6544
  p(new_ctx, dirty) {
6440
6545
  ctx = new_ctx;
6441
6546
 
6442
- if (dirty & /*_value*/ 2 && div_class_value !== (div_class_value = "rating-button" + (/*i*/ ctx[8] === /*_value*/ ctx[1] ? ' _selected' : '') + " svelte-14cxkfs")) {
6547
+ if (dirty & /*_value*/ 4 && div_class_value !== (div_class_value = "rating-button" + (/*i*/ ctx[10] === /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv")) {
6443
6548
  attr(div, "class", div_class_value);
6444
6549
  }
6550
+
6551
+ if (dirty & /*_buttonStyle*/ 2) {
6552
+ attr(div, "style", /*_buttonStyle*/ ctx[1]);
6553
+ }
6445
6554
  },
6446
6555
  d(detaching) {
6447
6556
  if (detaching) detach(div);
@@ -6451,7 +6560,7 @@ function create_if_block_1$1(ctx) {
6451
6560
  };
6452
6561
  }
6453
6562
 
6454
- // (30:4) {#if type === 'star'}
6563
+ // (48:4) {#if type === 'star'}
6455
6564
  function create_if_block$1(ctx) {
6456
6565
  let div;
6457
6566
  let svg;
@@ -6470,7 +6579,7 @@ function create_if_block$1(ctx) {
6470
6579
  this.h();
6471
6580
  },
6472
6581
  l(nodes) {
6473
- div = claim_element(nodes, "DIV", { class: true });
6582
+ div = claim_element(nodes, "DIV", { class: true, style: true });
6474
6583
  var div_nodes = children(div);
6475
6584
 
6476
6585
  svg = claim_svg_element(div_nodes, "svg", {
@@ -6497,8 +6606,9 @@ function create_if_block$1(ctx) {
6497
6606
  attr(svg, "viewBox", "0 0 24 24");
6498
6607
  attr(svg, "fill", "none");
6499
6608
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
6500
- attr(svg, "class", "svelte-14cxkfs");
6501
- attr(div, "class", div_class_value = "rating-button" + (/*i*/ ctx[8] <= /*_value*/ ctx[1] ? ' _selected' : '') + " svelte-14cxkfs");
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]);
6502
6612
  },
6503
6613
  m(target, anchor) {
6504
6614
  insert_hydration(target, div, anchor);
@@ -6507,16 +6617,20 @@ function create_if_block$1(ctx) {
6507
6617
  append_hydration(div, t);
6508
6618
 
6509
6619
  if (!mounted) {
6510
- dispose = listen(div, "click", /*handleClick*/ ctx[3](/*i*/ ctx[8]));
6620
+ dispose = listen(div, "click", /*handleClick*/ ctx[4](/*i*/ ctx[10]));
6511
6621
  mounted = true;
6512
6622
  }
6513
6623
  },
6514
6624
  p(new_ctx, dirty) {
6515
6625
  ctx = new_ctx;
6516
6626
 
6517
- if (dirty & /*_value*/ 2 && div_class_value !== (div_class_value = "rating-button" + (/*i*/ ctx[8] <= /*_value*/ ctx[1] ? ' _selected' : '') + " svelte-14cxkfs")) {
6627
+ if (dirty & /*_value*/ 4 && div_class_value !== (div_class_value = "rating-button" + (/*i*/ ctx[10] <= /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv")) {
6518
6628
  attr(div, "class", div_class_value);
6519
6629
  }
6630
+
6631
+ if (dirty & /*_buttonStyle*/ 2) {
6632
+ attr(div, "style", /*_buttonStyle*/ ctx[1]);
6633
+ }
6520
6634
  },
6521
6635
  d(detaching) {
6522
6636
  if (detaching) detach(div);
@@ -6526,7 +6640,7 @@ function create_if_block$1(ctx) {
6526
6640
  };
6527
6641
  }
6528
6642
 
6529
- // (29:2) {#each [...Array(5).keys()].map(i => i + 1) as i}
6643
+ // (47:2) {#each [...Array(5).keys()].map(i => i + 1) as i}
6530
6644
  function create_each_block$1(ctx) {
6531
6645
  let if_block_anchor;
6532
6646
 
@@ -6605,7 +6719,7 @@ function create_fragment$5(ctx) {
6605
6719
  this.h();
6606
6720
  },
6607
6721
  h() {
6608
- attr(div, "class", "rating-buttons svelte-14cxkfs");
6722
+ attr(div, "class", "rating-buttons svelte-1ysi4uv");
6609
6723
  },
6610
6724
  m(target, anchor) {
6611
6725
  insert_hydration(target, div, anchor);
@@ -6615,7 +6729,7 @@ function create_fragment$5(ctx) {
6615
6729
  }
6616
6730
  },
6617
6731
  p(ctx, [dirty]) {
6618
- if (dirty & /*Array, _value, handleClick, type, LIKERT_FACE_SVG_DATA*/ 27) {
6732
+ if (dirty & /*Array, _value, _buttonStyle, handleClick, type, LIKERT_FACE_SVG_DATA*/ 55) {
6619
6733
  each_value = [...Array(5).keys()].map(func);
6620
6734
  let i;
6621
6735
 
@@ -6651,9 +6765,17 @@ const func = i => i + 1;
6651
6765
 
6652
6766
  function instance$5($$self, $$props, $$invalidate) {
6653
6767
  let _value;
6768
+ let _buttonStyle;
6654
6769
  let $value;
6655
6770
  let { name = '' } = $$props;
6656
- let { type = 'face' } = $$props;
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
+
6657
6779
  const { path: statePath } = getStateItemContext();
6658
6780
 
6659
6781
  const value = registerInput({
@@ -6665,7 +6787,7 @@ function instance$5($$self, $$props, $$invalidate) {
6665
6787
  }
6666
6788
  });
6667
6789
 
6668
- component_subscribe($$self, value, value => $$invalidate(6, $value = value));
6790
+ component_subscribe($$self, value, value => $$invalidate(8, $value = value));
6669
6791
 
6670
6792
  const handleClick = index => event => {
6671
6793
  value.set([String(index)]);
@@ -6681,23 +6803,38 @@ function instance$5($$self, $$props, $$invalidate) {
6681
6803
  };
6682
6804
 
6683
6805
  $$self.$$set = $$props => {
6684
- if ('name' in $$props) $$invalidate(5, name = $$props.name);
6806
+ if ('name' in $$props) $$invalidate(6, name = $$props.name);
6685
6807
  if ('type' in $$props) $$invalidate(0, type = $$props.type);
6808
+ if ('buttonStyle' in $$props) $$invalidate(7, buttonStyle = $$props.buttonStyle);
6686
6809
  };
6687
6810
 
6688
6811
  $$self.$$.update = () => {
6689
- if ($$self.$$.dirty & /*$value*/ 64) {
6690
- $$invalidate(1, _value = Number($value[0] ?? -1));
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}`);
6691
6818
  }
6692
6819
  };
6693
6820
 
6694
- return [type, _value, value, handleClick, LIKERT_FACE_SVG_DATA, name, $value];
6821
+ return [
6822
+ type,
6823
+ _buttonStyle,
6824
+ _value,
6825
+ value,
6826
+ handleClick,
6827
+ LIKERT_FACE_SVG_DATA,
6828
+ name,
6829
+ buttonStyle,
6830
+ $value
6831
+ ];
6695
6832
  }
6696
6833
 
6697
6834
  class FormRatingButtons extends SvelteComponent {
6698
6835
  constructor(options) {
6699
6836
  super();
6700
- init(this, options, instance$5, create_fragment$5, safe_not_equal, { name: 5, type: 0 }, add_css$5);
6837
+ init(this, options, instance$5, create_fragment$5, safe_not_equal, { name: 6, type: 0, buttonStyle: 7 }, add_css$5);
6701
6838
  }
6702
6839
  }
6703
6840
 
@@ -8055,4 +8192,4 @@ class ImageBlock extends SvelteComponent {
8055
8192
  }
8056
8193
  }
8057
8194
 
8058
- 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 };