@plaidev/karte-action-sdk 1.1.130 → 1.1.131-27959459.4bcace4e
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.d.ts +24 -20
- package/dist/hydrate/index.es.js +224 -372
- package/dist/index.es.d.ts +24 -20
- package/dist/index.es.js +219 -323
- package/dist/templates.cjs.js +1 -1
- package/dist/templates.js +1 -1
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -1395,6 +1395,8 @@ const Justifies = ['flex-start', 'center', 'flex-end'];
|
|
1395
1395
|
/** @internal */
|
1396
1396
|
const Alignments = ['flex-start', 'center', 'flex-end'];
|
1397
1397
|
/** @internal */
|
1398
|
+
const FlexDirections = ['row', 'column'];
|
1399
|
+
/** @internal */
|
1398
1400
|
const ObjectFits = ['fill', 'contain', 'cover'];
|
1399
1401
|
/** @internal */
|
1400
1402
|
const ClipPaths = ['none', 'circle(closest-side)'];
|
@@ -1475,10 +1477,6 @@ const DefaultFormSelectStyle = {
|
|
1475
1477
|
colorArrow: '#333',
|
1476
1478
|
colorFocused: '#2aab9f',
|
1477
1479
|
};
|
1478
|
-
/** @internal */
|
1479
|
-
const FormRatingButtonTypes = ['star', 'face'];
|
1480
|
-
/** @internal */
|
1481
|
-
const DefaultFormRatingButtonType = 'star';
|
1482
1480
|
|
1483
1481
|
const DEFAULT_COLLECTION_ENDPOINT = typeof __FLYER_GEN_COLLECTION_API_ENDPOINT__ === 'string'
|
1484
1482
|
? __FLYER_GEN_COLLECTION_API_ENDPOINT__
|
@@ -2501,7 +2499,7 @@ function add_css$n(target) {
|
|
2501
2499
|
}
|
2502
2500
|
|
2503
2501
|
// (23:0) {#if $state === path}
|
2504
|
-
function create_if_block$
|
2502
|
+
function create_if_block$6(ctx) {
|
2505
2503
|
let div;
|
2506
2504
|
let t;
|
2507
2505
|
let current;
|
@@ -2576,7 +2574,7 @@ function create_if_block$7(ctx) {
|
|
2576
2574
|
function create_fragment$q(ctx) {
|
2577
2575
|
let if_block_anchor;
|
2578
2576
|
let current;
|
2579
|
-
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$
|
2577
|
+
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$6(ctx);
|
2580
2578
|
|
2581
2579
|
return {
|
2582
2580
|
c() {
|
@@ -2601,7 +2599,7 @@ function create_fragment$q(ctx) {
|
|
2601
2599
|
transition_in(if_block, 1);
|
2602
2600
|
}
|
2603
2601
|
} else {
|
2604
|
-
if_block = create_if_block$
|
2602
|
+
if_block = create_if_block$6(ctx);
|
2605
2603
|
if_block.c();
|
2606
2604
|
transition_in(if_block, 1);
|
2607
2605
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
@@ -2675,7 +2673,7 @@ function add_css$m(target) {
|
|
2675
2673
|
}
|
2676
2674
|
|
2677
2675
|
// (9:0) {#if backgroundOverray}
|
2678
|
-
function create_if_block$
|
2676
|
+
function create_if_block$5(ctx) {
|
2679
2677
|
let div;
|
2680
2678
|
let mounted;
|
2681
2679
|
let dispose;
|
@@ -2712,7 +2710,7 @@ function create_if_block$6(ctx) {
|
|
2712
2710
|
|
2713
2711
|
function create_fragment$p(ctx) {
|
2714
2712
|
let if_block_anchor;
|
2715
|
-
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$
|
2713
|
+
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$5(ctx);
|
2716
2714
|
|
2717
2715
|
return {
|
2718
2716
|
c() {
|
@@ -2732,7 +2730,7 @@ function create_fragment$p(ctx) {
|
|
2732
2730
|
if (if_block) {
|
2733
2731
|
if_block.p(ctx, dirty);
|
2734
2732
|
} else {
|
2735
|
-
if_block = create_if_block$
|
2733
|
+
if_block = create_if_block$5(ctx);
|
2736
2734
|
if_block.c();
|
2737
2735
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
2738
2736
|
}
|
@@ -2775,8 +2773,8 @@ function add_css$l(target) {
|
|
2775
2773
|
append_styles(target, "svelte-12dkw0q", ".modal.svelte-12dkw0q{position:fixed;box-sizing:border-box;z-index:2147483647}.close.svelte-12dkw0q{position:absolute;display:flex;justify-content:center;align-items:center;background-color:transparent;border:none;cursor:pointer;padding:0;transition:all 0.25s}.close.svelte-12dkw0q:hover{transform:rotate(90deg)}.modal-content.svelte-12dkw0q{display:flex;justify-content:center;align-items:center}");
|
2776
2774
|
}
|
2777
2775
|
|
2778
|
-
// (
|
2779
|
-
function create_if_block$
|
2776
|
+
// (149:0) {#if visible}
|
2777
|
+
function create_if_block$4(ctx) {
|
2780
2778
|
let div1;
|
2781
2779
|
let t;
|
2782
2780
|
let div0;
|
@@ -2785,7 +2783,7 @@ function create_if_block$5(ctx) {
|
|
2785
2783
|
let current;
|
2786
2784
|
let mounted;
|
2787
2785
|
let dispose;
|
2788
|
-
let if_block = /*closable*/ ctx[14] && create_if_block_1$
|
2786
|
+
let if_block = /*closable*/ ctx[14] && create_if_block_1$1(ctx);
|
2789
2787
|
const default_slot_template = /*#slots*/ ctx[29].default;
|
2790
2788
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[28], null);
|
2791
2789
|
|
@@ -2822,7 +2820,7 @@ function create_if_block$5(ctx) {
|
|
2822
2820
|
attr(div1, "class", "modal svelte-12dkw0q");
|
2823
2821
|
attr(div1, "role", "dialog");
|
2824
2822
|
attr(div1, "aria-modal", "true");
|
2825
|
-
attr(div1, "style", div1_style_value = "" + /*pos*/ ctx[
|
2823
|
+
attr(div1, "style", div1_style_value = "" + /*pos*/ ctx[11] + " " + /*marginStyle*/ ctx[9] + " " + ElasticityStyle[/*overwriteElasticity*/ ctx[12]] + "");
|
2826
2824
|
},
|
2827
2825
|
m(target, anchor) {
|
2828
2826
|
insert_hydration(target, div1, anchor);
|
@@ -2852,7 +2850,7 @@ function create_if_block$5(ctx) {
|
|
2852
2850
|
if (if_block) {
|
2853
2851
|
if_block.p(ctx, dirty);
|
2854
2852
|
} else {
|
2855
|
-
if_block = create_if_block_1$
|
2853
|
+
if_block = create_if_block_1$1(ctx);
|
2856
2854
|
if_block.c();
|
2857
2855
|
if_block.m(div1, t);
|
2858
2856
|
}
|
@@ -2880,7 +2878,7 @@ function create_if_block$5(ctx) {
|
|
2880
2878
|
attr(div0, "style", /*_style*/ ctx[1]);
|
2881
2879
|
}
|
2882
2880
|
|
2883
|
-
if (!current || dirty & /*pos, marginStyle, overwriteElasticity*/
|
2881
|
+
if (!current || dirty & /*pos, marginStyle, overwriteElasticity*/ 6656 && div1_style_value !== (div1_style_value = "" + /*pos*/ ctx[11] + " " + /*marginStyle*/ ctx[9] + " " + ElasticityStyle[/*overwriteElasticity*/ ctx[12]] + "")) {
|
2884
2882
|
attr(div1, "style", div1_style_value);
|
2885
2883
|
}
|
2886
2884
|
},
|
@@ -2891,7 +2889,7 @@ function create_if_block$5(ctx) {
|
|
2891
2889
|
if (!div1_intro) {
|
2892
2890
|
add_render_callback(() => {
|
2893
2891
|
div1_intro = create_in_transition(div1, customAnimation, {
|
2894
|
-
transform: /*transform*/ ctx[
|
2892
|
+
transform: /*transform*/ ctx[10],
|
2895
2893
|
animationStyle: /*animation*/ ctx[0]
|
2896
2894
|
});
|
2897
2895
|
|
@@ -2916,8 +2914,8 @@ function create_if_block$5(ctx) {
|
|
2916
2914
|
};
|
2917
2915
|
}
|
2918
2916
|
|
2919
|
-
// (
|
2920
|
-
function create_if_block_1$
|
2917
|
+
// (166:4) {#if closable}
|
2918
|
+
function create_if_block_1$1(ctx) {
|
2921
2919
|
let button;
|
2922
2920
|
let svg;
|
2923
2921
|
let path;
|
@@ -3011,15 +3009,15 @@ function create_fragment$o(ctx) {
|
|
3011
3009
|
|
3012
3010
|
backgroundoverray = new BackgroundOverray({
|
3013
3011
|
props: {
|
3014
|
-
backgroundOverray: /*backgroundOverray*/ ctx[
|
3012
|
+
backgroundOverray: /*backgroundOverray*/ ctx[6]
|
3015
3013
|
}
|
3016
3014
|
});
|
3017
3015
|
|
3018
3016
|
backgroundoverray.$on("click", function () {
|
3019
|
-
if (is_function(/*backgroundClick*/ ctx[
|
3017
|
+
if (is_function(/*backgroundClick*/ ctx[13])) /*backgroundClick*/ ctx[13].apply(this, arguments);
|
3020
3018
|
});
|
3021
3019
|
|
3022
|
-
let if_block = /*visible*/ ctx[
|
3020
|
+
let if_block = /*visible*/ ctx[7] && create_if_block$4(ctx);
|
3023
3021
|
|
3024
3022
|
return {
|
3025
3023
|
c() {
|
@@ -3043,7 +3041,7 @@ function create_fragment$o(ctx) {
|
|
3043
3041
|
|
3044
3042
|
if (!mounted) {
|
3045
3043
|
dispose = listen(window, "keydown", function () {
|
3046
|
-
if (is_function(/*handle_keydown*/ ctx[
|
3044
|
+
if (is_function(/*handle_keydown*/ ctx[8])) /*handle_keydown*/ ctx[8].apply(this, arguments);
|
3047
3045
|
});
|
3048
3046
|
|
3049
3047
|
mounted = true;
|
@@ -3052,18 +3050,18 @@ function create_fragment$o(ctx) {
|
|
3052
3050
|
p(new_ctx, [dirty]) {
|
3053
3051
|
ctx = new_ctx;
|
3054
3052
|
const backgroundoverray_changes = {};
|
3055
|
-
if (dirty & /*backgroundOverray*/
|
3053
|
+
if (dirty & /*backgroundOverray*/ 64) backgroundoverray_changes.backgroundOverray = /*backgroundOverray*/ ctx[6];
|
3056
3054
|
backgroundoverray.$set(backgroundoverray_changes);
|
3057
3055
|
|
3058
|
-
if (/*visible*/ ctx[
|
3056
|
+
if (/*visible*/ ctx[7]) {
|
3059
3057
|
if (if_block) {
|
3060
3058
|
if_block.p(ctx, dirty);
|
3061
3059
|
|
3062
|
-
if (dirty & /*visible*/
|
3060
|
+
if (dirty & /*visible*/ 128) {
|
3063
3061
|
transition_in(if_block, 1);
|
3064
3062
|
}
|
3065
3063
|
} else {
|
3066
|
-
if_block = create_if_block$
|
3064
|
+
if_block = create_if_block$4(ctx);
|
3067
3065
|
if_block.c();
|
3068
3066
|
transition_in(if_block, 1);
|
3069
3067
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
@@ -3104,8 +3102,6 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
3104
3102
|
let click;
|
3105
3103
|
let close;
|
3106
3104
|
let closable;
|
3107
|
-
let backgroundOverray;
|
3108
|
-
let backgroundClickFunction;
|
3109
3105
|
let backgroundClick;
|
3110
3106
|
let overwritePosition;
|
3111
3107
|
let overwriteMargin;
|
@@ -3130,10 +3126,12 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
3130
3126
|
let { closeEventValue = null } = $$props;
|
3131
3127
|
let { closeButtonColor = '#000000' } = $$props;
|
3132
3128
|
let { _closeStyle = '' } = $$props;
|
3129
|
+
let backgroundOverray = DefaultModalPlacement.backgroundOverlay;
|
3130
|
+
let backgroundClickFunction = DefaultModalPlacement.backgroundClick;
|
3133
3131
|
let modal;
|
3134
3132
|
|
3135
3133
|
onMount(() => {
|
3136
|
-
$$invalidate(
|
3134
|
+
$$invalidate(7, visible = true);
|
3137
3135
|
});
|
3138
3136
|
|
3139
3137
|
onDestroy$1(() => setPreviousFocus());
|
@@ -3187,19 +3185,23 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
3187
3185
|
}
|
3188
3186
|
|
3189
3187
|
if ($$self.$$.dirty & /*placement*/ 1048576) {
|
3190
|
-
|
3191
|
-
|
3192
|
-
|
3188
|
+
{
|
3189
|
+
{
|
3190
|
+
$$invalidate(6, backgroundOverray = false);
|
3191
|
+
}
|
3192
|
+
}
|
3193
3193
|
}
|
3194
3194
|
|
3195
3195
|
if ($$self.$$.dirty & /*placement*/ 1048576) {
|
3196
|
-
|
3197
|
-
|
3198
|
-
|
3196
|
+
{
|
3197
|
+
if (placement && placement.backgroundClick !== null) {
|
3198
|
+
$$invalidate(25, backgroundClickFunction = placement.backgroundClick);
|
3199
|
+
}
|
3200
|
+
}
|
3199
3201
|
}
|
3200
3202
|
|
3201
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/
|
3202
|
-
$$invalidate(
|
3203
|
+
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/ 58720256) {
|
3204
|
+
$$invalidate(13, backgroundClick = () => {
|
3203
3205
|
if (closeEventName) {
|
3204
3206
|
send_event(closeEventName, closeEventValue);
|
3205
3207
|
}
|
@@ -3209,12 +3211,12 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
3209
3211
|
}
|
3210
3212
|
|
3211
3213
|
if ($$self.$$.dirty & /*placement*/ 1048576) {
|
3212
|
-
$$invalidate(
|
3214
|
+
$$invalidate(27, overwritePosition = 'center'
|
3213
3215
|
);
|
3214
3216
|
}
|
3215
3217
|
|
3216
3218
|
if ($$self.$$.dirty & /*placement*/ 1048576) {
|
3217
|
-
$$invalidate(
|
3219
|
+
$$invalidate(26, overwriteMargin = {
|
3218
3220
|
left: '0px',
|
3219
3221
|
right: '0px',
|
3220
3222
|
top: '0px',
|
@@ -3224,30 +3226,30 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
3224
3226
|
}
|
3225
3227
|
|
3226
3228
|
if ($$self.$$.dirty & /*elasticity*/ 2097152) {
|
3227
|
-
$$invalidate(
|
3229
|
+
$$invalidate(12, overwriteElasticity = 'none' );
|
3228
3230
|
}
|
3229
3231
|
|
3230
|
-
if ($$self.$$.dirty & /*overwritePosition*/
|
3231
|
-
$$invalidate(
|
3232
|
+
if ($$self.$$.dirty & /*overwritePosition*/ 134217728) {
|
3233
|
+
$$invalidate(11, pos = getPositionStyle(overwritePosition));
|
3232
3234
|
}
|
3233
3235
|
|
3234
|
-
if ($$self.$$.dirty & /*overwritePosition*/
|
3235
|
-
$$invalidate(
|
3236
|
+
if ($$self.$$.dirty & /*overwritePosition*/ 134217728) {
|
3237
|
+
$$invalidate(10, transform = getTransform(overwritePosition));
|
3236
3238
|
}
|
3237
3239
|
|
3238
|
-
if ($$self.$$.dirty & /*overwriteMargin*/
|
3239
|
-
$$invalidate(
|
3240
|
+
if ($$self.$$.dirty & /*overwriteMargin*/ 67108864) {
|
3241
|
+
$$invalidate(9, marginStyle = getMarginStyle(overwriteMargin));
|
3240
3242
|
}
|
3241
3243
|
|
3242
3244
|
if ($$self.$$.dirty & /*close, modal*/ 48) {
|
3243
|
-
$$invalidate(
|
3245
|
+
$$invalidate(8, handle_keydown = handleKeydown({ Escape: close, Tab: handleFocus(modal) }));
|
3244
3246
|
}
|
3245
3247
|
};
|
3246
3248
|
|
3247
3249
|
$$invalidate(4, modal = null);
|
3248
3250
|
|
3249
3251
|
// svelteコンポーネントのアニメーションを発火させるためにマウント時にvisibleをtrueにする。
|
3250
|
-
$$invalidate(
|
3252
|
+
$$invalidate(7, visible = false);
|
3251
3253
|
|
3252
3254
|
return [
|
3253
3255
|
animation,
|
@@ -3256,6 +3258,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
3256
3258
|
_closeStyle,
|
3257
3259
|
modal,
|
3258
3260
|
close,
|
3261
|
+
backgroundOverray,
|
3259
3262
|
visible,
|
3260
3263
|
handle_keydown,
|
3261
3264
|
marginStyle,
|
@@ -3263,7 +3266,6 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
3263
3266
|
pos,
|
3264
3267
|
overwriteElasticity,
|
3265
3268
|
backgroundClick,
|
3266
|
-
backgroundOverray,
|
3267
3269
|
closable,
|
3268
3270
|
click,
|
3269
3271
|
$maximumZindex,
|
@@ -3275,9 +3277,9 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
3275
3277
|
onClose,
|
3276
3278
|
closeEventName,
|
3277
3279
|
closeEventValue,
|
3280
|
+
backgroundClickFunction,
|
3278
3281
|
overwriteMargin,
|
3279
3282
|
overwritePosition,
|
3280
|
-
backgroundClickFunction,
|
3281
3283
|
$$scope,
|
3282
3284
|
slots,
|
3283
3285
|
div1_binding
|
@@ -4192,7 +4194,7 @@ function create_else_block$1(ctx) {
|
|
4192
4194
|
}
|
4193
4195
|
|
4194
4196
|
// (10:2) {#if item.match(regexp)}
|
4195
|
-
function create_if_block$
|
4197
|
+
function create_if_block$3(ctx) {
|
4196
4198
|
let br;
|
4197
4199
|
|
4198
4200
|
return {
|
@@ -4220,7 +4222,7 @@ function create_each_block$5(ctx) {
|
|
4220
4222
|
function select_block_type(ctx, dirty) {
|
4221
4223
|
if (dirty & /*items*/ 1) show_if = null;
|
4222
4224
|
if (show_if == null) show_if = !!/*item*/ ctx[2].match(regexp);
|
4223
|
-
if (show_if) return create_if_block$
|
4225
|
+
if (show_if) return create_if_block$3;
|
4224
4226
|
return create_else_block$1;
|
4225
4227
|
}
|
4226
4228
|
|
@@ -4357,7 +4359,7 @@ function add_css$h(target) {
|
|
4357
4359
|
}
|
4358
4360
|
|
4359
4361
|
// (56:2) {#if enableCopy}
|
4360
|
-
function create_if_block$
|
4362
|
+
function create_if_block$2(ctx) {
|
4361
4363
|
let div0;
|
4362
4364
|
let t0;
|
4363
4365
|
let t1;
|
@@ -4420,7 +4422,7 @@ function create_fragment$h(ctx) {
|
|
4420
4422
|
let mounted;
|
4421
4423
|
let dispose;
|
4422
4424
|
rendertext = new RenderText({ props: { text: /*text*/ ctx[0] } });
|
4423
|
-
let if_block = /*enableCopy*/ ctx[1] && create_if_block$
|
4425
|
+
let if_block = /*enableCopy*/ ctx[1] && create_if_block$2(ctx);
|
4424
4426
|
|
4425
4427
|
return {
|
4426
4428
|
c() {
|
@@ -4484,7 +4486,7 @@ function create_fragment$h(ctx) {
|
|
4484
4486
|
if (if_block) {
|
4485
4487
|
if_block.p(ctx, dirty);
|
4486
4488
|
} else {
|
4487
|
-
if_block = create_if_block$
|
4489
|
+
if_block = create_if_block$2(ctx);
|
4488
4490
|
if_block.c();
|
4489
4491
|
if_block.m(div2, null);
|
4490
4492
|
}
|
@@ -5921,17 +5923,17 @@ class FormTextarea extends SvelteComponent {
|
|
5921
5923
|
/* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
|
5922
5924
|
|
5923
5925
|
function add_css$8(target) {
|
5924
|
-
append_styles(target, "svelte-
|
5926
|
+
append_styles(target, "svelte-17es5zb", ".radio-buttons.svelte-17es5zb{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%}.radio-button.svelte-17es5zb{cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-17es5zb{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;flex:none}.radio-button-input.svelte-17es5zb: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-17es5zb{margin-left:0.5em}");
|
5925
5927
|
}
|
5926
5928
|
|
5927
5929
|
function get_each_context$4(ctx, list, i) {
|
5928
5930
|
const child_ctx = ctx.slice();
|
5929
|
-
child_ctx[
|
5930
|
-
child_ctx[
|
5931
|
+
child_ctx[13] = list[i];
|
5932
|
+
child_ctx[15] = i;
|
5931
5933
|
return child_ctx;
|
5932
5934
|
}
|
5933
5935
|
|
5934
|
-
// (
|
5936
|
+
// (62:2) {#each _options as option, i}
|
5935
5937
|
function create_each_block$4(ctx) {
|
5936
5938
|
let label;
|
5937
5939
|
let input;
|
@@ -5939,7 +5941,7 @@ function create_each_block$4(ctx) {
|
|
5939
5941
|
let input_checked_value;
|
5940
5942
|
let t0;
|
5941
5943
|
let span;
|
5942
|
-
let t1_value = /*option*/ ctx[
|
5944
|
+
let t1_value = /*option*/ ctx[13] + "";
|
5943
5945
|
let t1;
|
5944
5946
|
let t2;
|
5945
5947
|
let mounted;
|
@@ -5977,14 +5979,14 @@ function create_each_block$4(ctx) {
|
|
5977
5979
|
},
|
5978
5980
|
h() {
|
5979
5981
|
attr(input, "type", "radio");
|
5980
|
-
attr(input, "class", "radio-button-input svelte-
|
5981
|
-
attr(input, "style", /*_buttonStyle*/ ctx[
|
5982
|
+
attr(input, "class", "radio-button-input svelte-17es5zb");
|
5983
|
+
attr(input, "style", /*_buttonStyle*/ ctx[5]);
|
5982
5984
|
attr(input, "name", /*name*/ ctx[0]);
|
5983
|
-
input.value = input_value_value = /*option*/ ctx[
|
5984
|
-
input.checked = input_checked_value = /*option*/ ctx[
|
5985
|
-
attr(span, "class", "radio-button-text svelte-
|
5986
|
-
attr(span, "style", /*textStyle*/ ctx[
|
5987
|
-
attr(label, "class", "radio-button svelte-
|
5985
|
+
input.value = input_value_value = /*option*/ ctx[13];
|
5986
|
+
input.checked = input_checked_value = /*option*/ ctx[13] === /*_value*/ ctx[3];
|
5987
|
+
attr(span, "class", "radio-button-text svelte-17es5zb");
|
5988
|
+
attr(span, "style", /*textStyle*/ ctx[2]);
|
5989
|
+
attr(label, "class", "radio-button svelte-17es5zb");
|
5988
5990
|
},
|
5989
5991
|
m(target, anchor) {
|
5990
5992
|
insert_hydration(target, label, anchor);
|
@@ -5995,33 +5997,33 @@ function create_each_block$4(ctx) {
|
|
5995
5997
|
append_hydration(label, t2);
|
5996
5998
|
|
5997
5999
|
if (!mounted) {
|
5998
|
-
dispose = listen(input, "change", /*handleChange*/ ctx[
|
6000
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[7](/*i*/ ctx[15]));
|
5999
6001
|
mounted = true;
|
6000
6002
|
}
|
6001
6003
|
},
|
6002
6004
|
p(new_ctx, dirty) {
|
6003
6005
|
ctx = new_ctx;
|
6004
6006
|
|
6005
|
-
if (dirty & /*_buttonStyle*/
|
6006
|
-
attr(input, "style", /*_buttonStyle*/ ctx[
|
6007
|
+
if (dirty & /*_buttonStyle*/ 32) {
|
6008
|
+
attr(input, "style", /*_buttonStyle*/ ctx[5]);
|
6007
6009
|
}
|
6008
6010
|
|
6009
6011
|
if (dirty & /*name*/ 1) {
|
6010
6012
|
attr(input, "name", /*name*/ ctx[0]);
|
6011
6013
|
}
|
6012
6014
|
|
6013
|
-
if (dirty & /*_options*/
|
6015
|
+
if (dirty & /*_options*/ 16 && input_value_value !== (input_value_value = /*option*/ ctx[13])) {
|
6014
6016
|
input.value = input_value_value;
|
6015
6017
|
}
|
6016
6018
|
|
6017
|
-
if (dirty & /*_options, _value*/
|
6019
|
+
if (dirty & /*_options, _value*/ 24 && input_checked_value !== (input_checked_value = /*option*/ ctx[13] === /*_value*/ ctx[3])) {
|
6018
6020
|
input.checked = input_checked_value;
|
6019
6021
|
}
|
6020
6022
|
|
6021
|
-
if (dirty & /*_options*/
|
6023
|
+
if (dirty & /*_options*/ 16 && t1_value !== (t1_value = /*option*/ ctx[13] + "")) set_data(t1, t1_value);
|
6022
6024
|
|
6023
|
-
if (dirty & /*textStyle*/
|
6024
|
-
attr(span, "style", /*textStyle*/ ctx[
|
6025
|
+
if (dirty & /*textStyle*/ 4) {
|
6026
|
+
attr(span, "style", /*textStyle*/ ctx[2]);
|
6025
6027
|
}
|
6026
6028
|
},
|
6027
6029
|
d(detaching) {
|
@@ -6034,7 +6036,7 @@ function create_each_block$4(ctx) {
|
|
6034
6036
|
|
6035
6037
|
function create_fragment$8(ctx) {
|
6036
6038
|
let div;
|
6037
|
-
let each_value = /*_options*/ ctx[
|
6039
|
+
let each_value = /*_options*/ ctx[4];
|
6038
6040
|
let each_blocks = [];
|
6039
6041
|
|
6040
6042
|
for (let i = 0; i < each_value.length; i += 1) {
|
@@ -6052,7 +6054,7 @@ function create_fragment$8(ctx) {
|
|
6052
6054
|
this.h();
|
6053
6055
|
},
|
6054
6056
|
l(nodes) {
|
6055
|
-
div = claim_element(nodes, "DIV", { class: true });
|
6057
|
+
div = claim_element(nodes, "DIV", { class: true, style: true });
|
6056
6058
|
var div_nodes = children(div);
|
6057
6059
|
|
6058
6060
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
@@ -6063,7 +6065,8 @@ function create_fragment$8(ctx) {
|
|
6063
6065
|
this.h();
|
6064
6066
|
},
|
6065
6067
|
h() {
|
6066
|
-
attr(div, "class", "radio-buttons svelte-
|
6068
|
+
attr(div, "class", "radio-buttons svelte-17es5zb");
|
6069
|
+
attr(div, "style", /*layoutStyle*/ ctx[1]);
|
6067
6070
|
},
|
6068
6071
|
m(target, anchor) {
|
6069
6072
|
insert_hydration(target, div, anchor);
|
@@ -6073,8 +6076,8 @@ function create_fragment$8(ctx) {
|
|
6073
6076
|
}
|
6074
6077
|
},
|
6075
6078
|
p(ctx, [dirty]) {
|
6076
|
-
if (dirty & /*textStyle, _options, _buttonStyle, name, _value, handleChange*/
|
6077
|
-
each_value = /*_options*/ ctx[
|
6079
|
+
if (dirty & /*textStyle, _options, _buttonStyle, name, _value, handleChange*/ 189) {
|
6080
|
+
each_value = /*_options*/ ctx[4];
|
6078
6081
|
let i;
|
6079
6082
|
|
6080
6083
|
for (i = 0; i < each_value.length; i += 1) {
|
@@ -6095,6 +6098,10 @@ function create_fragment$8(ctx) {
|
|
6095
6098
|
|
6096
6099
|
each_blocks.length = each_value.length;
|
6097
6100
|
}
|
6101
|
+
|
6102
|
+
if (dirty & /*layoutStyle*/ 2) {
|
6103
|
+
attr(div, "style", /*layoutStyle*/ ctx[1]);
|
6104
|
+
}
|
6098
6105
|
},
|
6099
6106
|
i: noop,
|
6100
6107
|
o: noop,
|
@@ -6113,6 +6120,7 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
6113
6120
|
let { name = '' } = $$props;
|
6114
6121
|
let { options = 'ラジオボタン1,ラジオボタン2,ラジオボタン3' } = $$props;
|
6115
6122
|
let { required = false } = $$props;
|
6123
|
+
let { layoutStyle = 'flex-direction: column; gap: 0px;' } = $$props;
|
6116
6124
|
let { textStyle = 'color: #333; font-size: 12px;' } = $$props;
|
6117
6125
|
|
6118
6126
|
let { buttonStyle = {
|
@@ -6133,7 +6141,7 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
6133
6141
|
}
|
6134
6142
|
});
|
6135
6143
|
|
6136
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6144
|
+
component_subscribe($$self, value, value => $$invalidate(11, $value = value));
|
6137
6145
|
|
6138
6146
|
const handleChange = index => event => {
|
6139
6147
|
if (event.target.checked) {
|
@@ -6143,28 +6151,30 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
6143
6151
|
|
6144
6152
|
$$self.$$set = $$props => {
|
6145
6153
|
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
6146
|
-
if ('options' in $$props) $$invalidate(
|
6147
|
-
if ('required' in $$props) $$invalidate(
|
6148
|
-
if ('
|
6149
|
-
if ('
|
6154
|
+
if ('options' in $$props) $$invalidate(8, options = $$props.options);
|
6155
|
+
if ('required' in $$props) $$invalidate(9, required = $$props.required);
|
6156
|
+
if ('layoutStyle' in $$props) $$invalidate(1, layoutStyle = $$props.layoutStyle);
|
6157
|
+
if ('textStyle' in $$props) $$invalidate(2, textStyle = $$props.textStyle);
|
6158
|
+
if ('buttonStyle' in $$props) $$invalidate(10, buttonStyle = $$props.buttonStyle);
|
6150
6159
|
};
|
6151
6160
|
|
6152
6161
|
$$self.$$.update = () => {
|
6153
|
-
if ($$self.$$.dirty & /*options*/
|
6154
|
-
$$invalidate(
|
6162
|
+
if ($$self.$$.dirty & /*options*/ 256) {
|
6163
|
+
$$invalidate(4, _options = options.split(','));
|
6155
6164
|
}
|
6156
6165
|
|
6157
|
-
if ($$self.$$.dirty & /*buttonStyle*/
|
6158
|
-
$$invalidate(
|
6166
|
+
if ($$self.$$.dirty & /*buttonStyle*/ 1024) {
|
6167
|
+
$$invalidate(5, _buttonStyle = `--size: ${buttonStyle.size}; --color-active: ${buttonStyle.colorActive}; --color-inactive: ${buttonStyle.colorInactive}`);
|
6159
6168
|
}
|
6160
6169
|
|
6161
|
-
if ($$self.$$.dirty & /*$value*/
|
6162
|
-
$$invalidate(
|
6170
|
+
if ($$self.$$.dirty & /*$value*/ 2048) {
|
6171
|
+
$$invalidate(3, _value = $value[0]);
|
6163
6172
|
}
|
6164
6173
|
};
|
6165
6174
|
|
6166
6175
|
return [
|
6167
6176
|
name,
|
6177
|
+
layoutStyle,
|
6168
6178
|
textStyle,
|
6169
6179
|
_value,
|
6170
6180
|
_options,
|
@@ -6190,10 +6200,11 @@ class FormRadioButtons extends SvelteComponent {
|
|
6190
6200
|
safe_not_equal,
|
6191
6201
|
{
|
6192
6202
|
name: 0,
|
6193
|
-
options:
|
6194
|
-
required:
|
6195
|
-
|
6196
|
-
|
6203
|
+
options: 8,
|
6204
|
+
required: 9,
|
6205
|
+
layoutStyle: 1,
|
6206
|
+
textStyle: 2,
|
6207
|
+
buttonStyle: 10
|
6197
6208
|
},
|
6198
6209
|
add_css$8
|
6199
6210
|
);
|
@@ -6203,7 +6214,7 @@ class FormRadioButtons extends SvelteComponent {
|
|
6203
6214
|
/* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
|
6204
6215
|
|
6205
6216
|
function add_css$7(target) {
|
6206
|
-
append_styles(target, "svelte-
|
6217
|
+
append_styles(target, "svelte-wy1i8s", ".select.svelte-wy1i8s{width:100%;height:100%}.select-select.svelte-wy1i8s{position:relative;appearance:none;width:100%;height:100%}.select-select.svelte-wy1i8s:focus{outline:none;border-color:var(--color-focused) !important}.select-icon.svelte-wy1i8s{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}");
|
6207
6218
|
}
|
6208
6219
|
|
6209
6220
|
function get_each_context$3(ctx, list, i) {
|
@@ -6213,7 +6224,7 @@ function get_each_context$3(ctx, list, i) {
|
|
6213
6224
|
return child_ctx;
|
6214
6225
|
}
|
6215
6226
|
|
6216
|
-
// (
|
6227
|
+
// (55:10) {:else}
|
6217
6228
|
function create_else_block(ctx) {
|
6218
6229
|
let t;
|
6219
6230
|
|
@@ -6234,8 +6245,8 @@ function create_else_block(ctx) {
|
|
6234
6245
|
};
|
6235
6246
|
}
|
6236
6247
|
|
6237
|
-
// (
|
6238
|
-
function create_if_block$
|
6248
|
+
// (53:10) {#if option}
|
6249
|
+
function create_if_block$1(ctx) {
|
6239
6250
|
let t_value = /*option*/ ctx[10] + "";
|
6240
6251
|
let t;
|
6241
6252
|
|
@@ -6258,14 +6269,14 @@ function create_if_block$2(ctx) {
|
|
6258
6269
|
};
|
6259
6270
|
}
|
6260
6271
|
|
6261
|
-
// (
|
6272
|
+
// (51:6) {#each _options as option, i}
|
6262
6273
|
function create_each_block$3(ctx) {
|
6263
6274
|
let option;
|
6264
6275
|
let t;
|
6265
6276
|
let option_value_value;
|
6266
6277
|
|
6267
6278
|
function select_block_type(ctx, dirty) {
|
6268
|
-
if (/*option*/ ctx[10]) return create_if_block$
|
6279
|
+
if (/*option*/ ctx[10]) return create_if_block$1;
|
6269
6280
|
return create_else_block;
|
6270
6281
|
}
|
6271
6282
|
|
@@ -6322,7 +6333,6 @@ function create_each_block$3(ctx) {
|
|
6322
6333
|
}
|
6323
6334
|
|
6324
6335
|
function create_fragment$7(ctx) {
|
6325
|
-
let div2;
|
6326
6336
|
let div1;
|
6327
6337
|
let select;
|
6328
6338
|
let t;
|
@@ -6338,7 +6348,6 @@ function create_fragment$7(ctx) {
|
|
6338
6348
|
|
6339
6349
|
return {
|
6340
6350
|
c() {
|
6341
|
-
div2 = element("div");
|
6342
6351
|
div1 = element("div");
|
6343
6352
|
select = element("select");
|
6344
6353
|
|
@@ -6351,9 +6360,7 @@ function create_fragment$7(ctx) {
|
|
6351
6360
|
this.h();
|
6352
6361
|
},
|
6353
6362
|
l(nodes) {
|
6354
|
-
|
6355
|
-
var div2_nodes = children(div2);
|
6356
|
-
div1 = claim_element(div2_nodes, "DIV", { class: true, style: true });
|
6363
|
+
div1 = claim_element(nodes, "DIV", { class: true, style: true });
|
6357
6364
|
var div1_nodes = children(div1);
|
6358
6365
|
select = claim_element(div1_nodes, "SELECT", { class: true, style: true });
|
6359
6366
|
var select_nodes = children(select);
|
@@ -6367,20 +6374,17 @@ function create_fragment$7(ctx) {
|
|
6367
6374
|
div0 = claim_element(div1_nodes, "DIV", { class: true });
|
6368
6375
|
children(div0).forEach(detach);
|
6369
6376
|
div1_nodes.forEach(detach);
|
6370
|
-
div2_nodes.forEach(detach);
|
6371
6377
|
this.h();
|
6372
6378
|
},
|
6373
6379
|
h() {
|
6374
|
-
attr(select, "class", "select-select svelte-
|
6380
|
+
attr(select, "class", "select-select svelte-wy1i8s");
|
6375
6381
|
attr(select, "style", /*_style*/ ctx[0]);
|
6376
|
-
attr(div0, "class", "select-icon svelte-
|
6377
|
-
attr(div1, "class", "select");
|
6382
|
+
attr(div0, "class", "select-icon svelte-wy1i8s");
|
6383
|
+
attr(div1, "class", "select svelte-wy1i8s");
|
6378
6384
|
attr(div1, "style", /*styleVariables*/ ctx[1]);
|
6379
|
-
attr(div2, "class", "select-wrapper svelte-1c94amx");
|
6380
6385
|
},
|
6381
6386
|
m(target, anchor) {
|
6382
|
-
insert_hydration(target,
|
6383
|
-
append_hydration(div2, div1);
|
6387
|
+
insert_hydration(target, div1, anchor);
|
6384
6388
|
append_hydration(div1, select);
|
6385
6389
|
|
6386
6390
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
@@ -6430,7 +6434,7 @@ function create_fragment$7(ctx) {
|
|
6430
6434
|
i: noop,
|
6431
6435
|
o: noop,
|
6432
6436
|
d(detaching) {
|
6433
|
-
if (detaching) detach(
|
6437
|
+
if (detaching) detach(div1);
|
6434
6438
|
destroy_each(each_blocks, detaching);
|
6435
6439
|
mounted = false;
|
6436
6440
|
dispose();
|
@@ -6444,7 +6448,7 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
6444
6448
|
let { name = '' } = $$props;
|
6445
6449
|
let { options = 'プルダウン1,プルダウン2,プルダウン3' } = $$props;
|
6446
6450
|
let { required = false } = $$props;
|
6447
|
-
let { _style = 'color: #333; cursor: pointer; background-color: #fff; border: solid 2px #ccc; border-radius: 6px; font-size: 12px; padding:
|
6451
|
+
let { _style = 'color: #333; cursor: pointer; background-color: #fff; border: solid 2px #ccc; border-radius: 6px; font-size: 12px; padding: 0 0 0 10px;' } = $$props;
|
6448
6452
|
|
6449
6453
|
let { selectStyle = {
|
6450
6454
|
colorArrow: '#333',
|
@@ -6523,17 +6527,17 @@ class FormSelect extends SvelteComponent {
|
|
6523
6527
|
/* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
|
6524
6528
|
|
6525
6529
|
function add_css$6(target) {
|
6526
|
-
append_styles(target, "svelte-
|
6530
|
+
append_styles(target, "svelte-y5vmhx", ".check-boxes.svelte-y5vmhx.svelte-y5vmhx{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%}.check-box.svelte-y5vmhx.svelte-y5vmhx{display:flex;align-items:center;position:relative;cursor:pointer}.check-box-input.svelte-y5vmhx.svelte-y5vmhx{width:0;height:0;margin:0}.check-box-check.svelte-y5vmhx.svelte-y5vmhx{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;flex:none}.check-box-icon.svelte-y5vmhx.svelte-y5vmhx{display:inline-block;--icon-size:calc(var(--size) * 3 / 4);width:var(--icon-size);height:var(--icon-size)}.check-box-icon.svelte-y5vmhx.svelte-y5vmhx: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-y5vmhx.svelte-y5vmhx:not(._checked){background-color:var(--color-inactive)}.check-box-check.svelte-y5vmhx:not(._checked) .check-box-icon.svelte-y5vmhx{display:none}.check-box-text.svelte-y5vmhx.svelte-y5vmhx{margin-left:0.5em}");
|
6527
6531
|
}
|
6528
6532
|
|
6529
6533
|
function get_each_context$2(ctx, list, i) {
|
6530
6534
|
const child_ctx = ctx.slice();
|
6531
|
-
child_ctx[
|
6532
|
-
child_ctx[
|
6535
|
+
child_ctx[13] = list[i];
|
6536
|
+
child_ctx[15] = i;
|
6533
6537
|
return child_ctx;
|
6534
6538
|
}
|
6535
6539
|
|
6536
|
-
// (
|
6540
|
+
// (68:2) {#each _options as option, i}
|
6537
6541
|
function create_each_block$2(ctx) {
|
6538
6542
|
let label;
|
6539
6543
|
let input;
|
@@ -6544,7 +6548,7 @@ function create_each_block$2(ctx) {
|
|
6544
6548
|
let span1_class_value;
|
6545
6549
|
let t1;
|
6546
6550
|
let span2;
|
6547
|
-
let t2_value = /*option*/ ctx[
|
6551
|
+
let t2_value = /*option*/ ctx[13] + "";
|
6548
6552
|
let t2;
|
6549
6553
|
let t3;
|
6550
6554
|
let mounted;
|
@@ -6584,20 +6588,20 @@ function create_each_block$2(ctx) {
|
|
6584
6588
|
this.h();
|
6585
6589
|
},
|
6586
6590
|
h() {
|
6587
|
-
attr(input, "class", "check-box-input svelte-
|
6591
|
+
attr(input, "class", "check-box-input svelte-y5vmhx");
|
6588
6592
|
attr(input, "type", "checkbox");
|
6589
6593
|
attr(input, "name", /*name*/ ctx[0]);
|
6590
|
-
input.checked = input_checked_value = /*isCheckedArray*/ ctx[
|
6591
|
-
attr(span0, "class", "check-box-icon svelte-
|
6594
|
+
input.checked = input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[15]];
|
6595
|
+
attr(span0, "class", "check-box-icon svelte-y5vmhx");
|
6592
6596
|
|
6593
|
-
attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[
|
6597
|
+
attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[15]]
|
6594
6598
|
? ' _checked'
|
6595
|
-
: ''}`) + " svelte-
|
6599
|
+
: ''}`) + " svelte-y5vmhx"));
|
6596
6600
|
|
6597
|
-
attr(span1, "style", /*_buttonStyle*/ ctx[
|
6598
|
-
attr(span2, "class", "check-box-text svelte-
|
6599
|
-
attr(span2, "style", /*textStyle*/ ctx[
|
6600
|
-
attr(label, "class", "check-box svelte-
|
6601
|
+
attr(span1, "style", /*_buttonStyle*/ ctx[5]);
|
6602
|
+
attr(span2, "class", "check-box-text svelte-y5vmhx");
|
6603
|
+
attr(span2, "style", /*textStyle*/ ctx[2]);
|
6604
|
+
attr(label, "class", "check-box svelte-y5vmhx");
|
6601
6605
|
},
|
6602
6606
|
m(target, anchor) {
|
6603
6607
|
insert_hydration(target, label, anchor);
|
@@ -6611,7 +6615,7 @@ function create_each_block$2(ctx) {
|
|
6611
6615
|
append_hydration(label, t3);
|
6612
6616
|
|
6613
6617
|
if (!mounted) {
|
6614
|
-
dispose = listen(input, "change", /*handleChange*/ ctx[
|
6618
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[7](/*i*/ ctx[15]));
|
6615
6619
|
mounted = true;
|
6616
6620
|
}
|
6617
6621
|
},
|
@@ -6622,24 +6626,24 @@ function create_each_block$2(ctx) {
|
|
6622
6626
|
attr(input, "name", /*name*/ ctx[0]);
|
6623
6627
|
}
|
6624
6628
|
|
6625
|
-
if (dirty & /*isCheckedArray*/
|
6629
|
+
if (dirty & /*isCheckedArray*/ 16 && input_checked_value !== (input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[15]])) {
|
6626
6630
|
input.checked = input_checked_value;
|
6627
6631
|
}
|
6628
6632
|
|
6629
|
-
if (dirty & /*isCheckedArray*/
|
6633
|
+
if (dirty & /*isCheckedArray*/ 16 && span1_class_value !== (span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[15]]
|
6630
6634
|
? ' _checked'
|
6631
|
-
: ''}`) + " svelte-
|
6635
|
+
: ''}`) + " svelte-y5vmhx"))) {
|
6632
6636
|
attr(span1, "class", span1_class_value);
|
6633
6637
|
}
|
6634
6638
|
|
6635
|
-
if (dirty & /*_buttonStyle*/
|
6636
|
-
attr(span1, "style", /*_buttonStyle*/ ctx[
|
6639
|
+
if (dirty & /*_buttonStyle*/ 32) {
|
6640
|
+
attr(span1, "style", /*_buttonStyle*/ ctx[5]);
|
6637
6641
|
}
|
6638
6642
|
|
6639
|
-
if (dirty & /*_options*/
|
6643
|
+
if (dirty & /*_options*/ 8 && t2_value !== (t2_value = /*option*/ ctx[13] + "")) set_data(t2, t2_value);
|
6640
6644
|
|
6641
|
-
if (dirty & /*textStyle*/
|
6642
|
-
attr(span2, "style", /*textStyle*/ ctx[
|
6645
|
+
if (dirty & /*textStyle*/ 4) {
|
6646
|
+
attr(span2, "style", /*textStyle*/ ctx[2]);
|
6643
6647
|
}
|
6644
6648
|
},
|
6645
6649
|
d(detaching) {
|
@@ -6652,7 +6656,7 @@ function create_each_block$2(ctx) {
|
|
6652
6656
|
|
6653
6657
|
function create_fragment$6(ctx) {
|
6654
6658
|
let div;
|
6655
|
-
let each_value = /*_options*/ ctx[
|
6659
|
+
let each_value = /*_options*/ ctx[3];
|
6656
6660
|
let each_blocks = [];
|
6657
6661
|
|
6658
6662
|
for (let i = 0; i < each_value.length; i += 1) {
|
@@ -6670,7 +6674,7 @@ function create_fragment$6(ctx) {
|
|
6670
6674
|
this.h();
|
6671
6675
|
},
|
6672
6676
|
l(nodes) {
|
6673
|
-
div = claim_element(nodes, "DIV", { class: true });
|
6677
|
+
div = claim_element(nodes, "DIV", { class: true, style: true });
|
6674
6678
|
var div_nodes = children(div);
|
6675
6679
|
|
6676
6680
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
@@ -6681,7 +6685,8 @@ function create_fragment$6(ctx) {
|
|
6681
6685
|
this.h();
|
6682
6686
|
},
|
6683
6687
|
h() {
|
6684
|
-
attr(div, "class", "check-boxes svelte-
|
6688
|
+
attr(div, "class", "check-boxes svelte-y5vmhx");
|
6689
|
+
attr(div, "style", /*layoutStyle*/ ctx[1]);
|
6685
6690
|
},
|
6686
6691
|
m(target, anchor) {
|
6687
6692
|
insert_hydration(target, div, anchor);
|
@@ -6691,8 +6696,8 @@ function create_fragment$6(ctx) {
|
|
6691
6696
|
}
|
6692
6697
|
},
|
6693
6698
|
p(ctx, [dirty]) {
|
6694
|
-
if (dirty & /*textStyle, _options, isCheckedArray, _buttonStyle, name, handleChange*/
|
6695
|
-
each_value = /*_options*/ ctx[
|
6699
|
+
if (dirty & /*textStyle, _options, isCheckedArray, _buttonStyle, name, handleChange*/ 189) {
|
6700
|
+
each_value = /*_options*/ ctx[3];
|
6696
6701
|
let i;
|
6697
6702
|
|
6698
6703
|
for (i = 0; i < each_value.length; i += 1) {
|
@@ -6713,6 +6718,10 @@ function create_fragment$6(ctx) {
|
|
6713
6718
|
|
6714
6719
|
each_blocks.length = each_value.length;
|
6715
6720
|
}
|
6721
|
+
|
6722
|
+
if (dirty & /*layoutStyle*/ 2) {
|
6723
|
+
attr(div, "style", /*layoutStyle*/ ctx[1]);
|
6724
|
+
}
|
6716
6725
|
},
|
6717
6726
|
i: noop,
|
6718
6727
|
o: noop,
|
@@ -6731,6 +6740,7 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
6731
6740
|
let { name = '' } = $$props;
|
6732
6741
|
let { options = 'チェックボックス1,チェックボックス2,チェックボックス3' } = $$props;
|
6733
6742
|
let { required = false } = $$props;
|
6743
|
+
let { layoutStyle = 'flex-direction: column; gap: 0px;' } = $$props;
|
6734
6744
|
let { textStyle = 'color: #333; font-size: 12px;' } = $$props;
|
6735
6745
|
|
6736
6746
|
let { buttonStyle = {
|
@@ -6751,12 +6761,12 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
6751
6761
|
}
|
6752
6762
|
});
|
6753
6763
|
|
6754
|
-
component_subscribe($$self, value, value => $$invalidate(
|
6764
|
+
component_subscribe($$self, value, value => $$invalidate(11, $value = value));
|
6755
6765
|
|
6756
6766
|
const handleChange = index => event => {
|
6757
6767
|
if (isCheckedArray[index] !== event.target.checked) {
|
6758
|
-
$$invalidate(
|
6759
|
-
$$invalidate(
|
6768
|
+
$$invalidate(4, isCheckedArray[index] = event.target.checked, isCheckedArray);
|
6769
|
+
$$invalidate(4, isCheckedArray = [...isCheckedArray]);
|
6760
6770
|
const updated = _options.filter((option, i) => isCheckedArray[i]);
|
6761
6771
|
value.set(updated);
|
6762
6772
|
}
|
@@ -6764,23 +6774,24 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
6764
6774
|
|
6765
6775
|
$$self.$$set = $$props => {
|
6766
6776
|
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
6767
|
-
if ('options' in $$props) $$invalidate(
|
6768
|
-
if ('required' in $$props) $$invalidate(
|
6769
|
-
if ('
|
6770
|
-
if ('
|
6777
|
+
if ('options' in $$props) $$invalidate(8, options = $$props.options);
|
6778
|
+
if ('required' in $$props) $$invalidate(9, required = $$props.required);
|
6779
|
+
if ('layoutStyle' in $$props) $$invalidate(1, layoutStyle = $$props.layoutStyle);
|
6780
|
+
if ('textStyle' in $$props) $$invalidate(2, textStyle = $$props.textStyle);
|
6781
|
+
if ('buttonStyle' in $$props) $$invalidate(10, buttonStyle = $$props.buttonStyle);
|
6771
6782
|
};
|
6772
6783
|
|
6773
6784
|
$$self.$$.update = () => {
|
6774
|
-
if ($$self.$$.dirty & /*options*/
|
6775
|
-
$$invalidate(
|
6785
|
+
if ($$self.$$.dirty & /*options*/ 256) {
|
6786
|
+
$$invalidate(3, _options = options.split(','));
|
6776
6787
|
}
|
6777
6788
|
|
6778
|
-
if ($$self.$$.dirty & /*buttonStyle*/
|
6779
|
-
$$invalidate(
|
6789
|
+
if ($$self.$$.dirty & /*buttonStyle*/ 1024) {
|
6790
|
+
$$invalidate(5, _buttonStyle = `--size: ${buttonStyle.size}; --color-active: ${buttonStyle.colorActive}; --color-inactive: ${buttonStyle.colorInactive}`);
|
6780
6791
|
}
|
6781
6792
|
|
6782
|
-
if ($$self.$$.dirty & /*$value, _options*/
|
6783
|
-
$$invalidate(
|
6793
|
+
if ($$self.$$.dirty & /*$value, _options*/ 2056) {
|
6794
|
+
$$invalidate(4, isCheckedArray = (() => {
|
6784
6795
|
const checkedSet = new Set($value);
|
6785
6796
|
return _options.map(option => checkedSet.has(option));
|
6786
6797
|
})());
|
@@ -6789,6 +6800,7 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
6789
6800
|
|
6790
6801
|
return [
|
6791
6802
|
name,
|
6803
|
+
layoutStyle,
|
6792
6804
|
textStyle,
|
6793
6805
|
_options,
|
6794
6806
|
isCheckedArray,
|
@@ -6814,20 +6826,21 @@ class FormCheckBoxes extends SvelteComponent {
|
|
6814
6826
|
safe_not_equal,
|
6815
6827
|
{
|
6816
6828
|
name: 0,
|
6817
|
-
options:
|
6818
|
-
required:
|
6819
|
-
|
6820
|
-
|
6829
|
+
options: 8,
|
6830
|
+
required: 9,
|
6831
|
+
layoutStyle: 1,
|
6832
|
+
textStyle: 2,
|
6833
|
+
buttonStyle: 10
|
6821
6834
|
},
|
6822
6835
|
add_css$6
|
6823
6836
|
);
|
6824
6837
|
}
|
6825
6838
|
}
|
6826
6839
|
|
6827
|
-
/* src/components/
|
6840
|
+
/* src/components/FormRatingButtonsNumber.svelte generated by Svelte v3.53.1 */
|
6828
6841
|
|
6829
6842
|
function add_css$5(target) {
|
6830
|
-
append_styles(target, "svelte-
|
6843
|
+
append_styles(target, "svelte-176k37j", ".rating-buttons.svelte-176k37j{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.rating-button.svelte-176k37j{cursor:pointer;display:flex;justify-content:center;align-items:center;transition:background-color 0.2s, box-shadow 0.2s}");
|
6831
6844
|
}
|
6832
6845
|
|
6833
6846
|
function get_each_context$1(ctx, list, i) {
|
@@ -6836,156 +6849,54 @@ function get_each_context$1(ctx, list, i) {
|
|
6836
6849
|
return child_ctx;
|
6837
6850
|
}
|
6838
6851
|
|
6839
|
-
// (
|
6840
|
-
function
|
6852
|
+
// (50:2) {#each [...Array(count).keys()].map(i => i + 1) as i}
|
6853
|
+
function create_each_block$1(ctx) {
|
6841
6854
|
let div;
|
6842
|
-
let
|
6843
|
-
let
|
6844
|
-
let
|
6845
|
-
let
|
6855
|
+
let t0_value = /*i*/ ctx[11] + "";
|
6856
|
+
let t0;
|
6857
|
+
let t1;
|
6858
|
+
let div_style_value;
|
6846
6859
|
let mounted;
|
6847
6860
|
let dispose;
|
6848
6861
|
|
6849
6862
|
return {
|
6850
6863
|
c() {
|
6851
6864
|
div = element("div");
|
6852
|
-
|
6853
|
-
|
6854
|
-
t = space();
|
6865
|
+
t0 = text(t0_value);
|
6866
|
+
t1 = space();
|
6855
6867
|
this.h();
|
6856
6868
|
},
|
6857
6869
|
l(nodes) {
|
6858
6870
|
div = claim_element(nodes, "DIV", { class: true, style: true });
|
6859
6871
|
var div_nodes = children(div);
|
6860
|
-
|
6861
|
-
|
6862
|
-
width: true,
|
6863
|
-
height: true,
|
6864
|
-
viewBox: true,
|
6865
|
-
fill: true,
|
6866
|
-
xmlns: true,
|
6867
|
-
class: true
|
6868
|
-
});
|
6869
|
-
|
6870
|
-
var svg_nodes = children(svg);
|
6871
|
-
path = claim_svg_element(svg_nodes, "path", { d: true });
|
6872
|
-
children(path).forEach(detach);
|
6873
|
-
svg_nodes.forEach(detach);
|
6874
|
-
t = claim_space(div_nodes);
|
6872
|
+
t0 = claim_text(div_nodes, t0_value);
|
6873
|
+
t1 = claim_space(div_nodes);
|
6875
6874
|
div_nodes.forEach(detach);
|
6876
6875
|
this.h();
|
6877
6876
|
},
|
6878
6877
|
h() {
|
6879
|
-
attr(
|
6880
|
-
attr(
|
6881
|
-
attr(svg, "height", "24");
|
6882
|
-
attr(svg, "viewBox", "0 0 24 24");
|
6883
|
-
attr(svg, "fill", "none");
|
6884
|
-
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
6885
|
-
attr(svg, "class", "svelte-1ysi4uv");
|
6886
|
-
attr(div, "class", div_class_value = "rating-button" + (/*i*/ ctx[11] === /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv");
|
6887
|
-
attr(div, "style", /*_buttonStyle*/ ctx[1]);
|
6878
|
+
attr(div, "class", "rating-button svelte-176k37j");
|
6879
|
+
attr(div, "style", div_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[11] === /*_value*/ ctx[1]));
|
6888
6880
|
},
|
6889
6881
|
m(target, anchor) {
|
6890
6882
|
insert_hydration(target, div, anchor);
|
6891
|
-
append_hydration(div,
|
6892
|
-
append_hydration(
|
6893
|
-
append_hydration(div, t);
|
6883
|
+
append_hydration(div, t0);
|
6884
|
+
append_hydration(div, t1);
|
6894
6885
|
|
6895
6886
|
if (!mounted) {
|
6896
|
-
dispose = listen(div, "click",
|
6897
|
-
|
6898
|
-
|
6899
|
-
},
|
6900
|
-
p(new_ctx, dirty) {
|
6901
|
-
ctx = new_ctx;
|
6902
|
-
|
6903
|
-
if (dirty & /*_value*/ 4 && div_class_value !== (div_class_value = "rating-button" + (/*i*/ ctx[11] === /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv")) {
|
6904
|
-
attr(div, "class", div_class_value);
|
6905
|
-
}
|
6906
|
-
|
6907
|
-
if (dirty & /*_buttonStyle*/ 2) {
|
6908
|
-
attr(div, "style", /*_buttonStyle*/ ctx[1]);
|
6909
|
-
}
|
6910
|
-
},
|
6911
|
-
d(detaching) {
|
6912
|
-
if (detaching) detach(div);
|
6913
|
-
mounted = false;
|
6914
|
-
dispose();
|
6915
|
-
}
|
6916
|
-
};
|
6917
|
-
}
|
6918
|
-
|
6919
|
-
// (54:4) {#if type === 'star'}
|
6920
|
-
function create_if_block$1(ctx) {
|
6921
|
-
let div;
|
6922
|
-
let svg;
|
6923
|
-
let path;
|
6924
|
-
let t;
|
6925
|
-
let div_class_value;
|
6926
|
-
let mounted;
|
6927
|
-
let dispose;
|
6928
|
-
|
6929
|
-
return {
|
6930
|
-
c() {
|
6931
|
-
div = element("div");
|
6932
|
-
svg = svg_element("svg");
|
6933
|
-
path = svg_element("path");
|
6934
|
-
t = space();
|
6935
|
-
this.h();
|
6936
|
-
},
|
6937
|
-
l(nodes) {
|
6938
|
-
div = claim_element(nodes, "DIV", { class: true, style: true });
|
6939
|
-
var div_nodes = children(div);
|
6940
|
-
|
6941
|
-
svg = claim_svg_element(div_nodes, "svg", {
|
6942
|
-
width: true,
|
6943
|
-
height: true,
|
6944
|
-
viewBox: true,
|
6945
|
-
fill: true,
|
6946
|
-
xmlns: true,
|
6947
|
-
class: true
|
6948
|
-
});
|
6949
|
-
|
6950
|
-
var svg_nodes = children(svg);
|
6951
|
-
path = claim_svg_element(svg_nodes, "path", { d: true });
|
6952
|
-
children(path).forEach(detach);
|
6953
|
-
svg_nodes.forEach(detach);
|
6954
|
-
t = claim_space(div_nodes);
|
6955
|
-
div_nodes.forEach(detach);
|
6956
|
-
this.h();
|
6957
|
-
},
|
6958
|
-
h() {
|
6959
|
-
attr(path, "d", "M11.2184 0.80902L8.42249 6.78134L2.09938 7.72433C0.981006 7.90395 0.550862 9.3409 1.36814 10.1941L5.88464 14.8193L4.80928 21.3304C4.63723 22.498 5.84163 23.396 6.83096 22.8572L12.4658 19.7588L18.0577 22.8572C19.047 23.396 20.2514 22.498 20.0794 21.3304L19.004 14.8193L23.5205 10.1941C24.3378 9.3409 23.9077 7.90395 22.7893 7.72433L16.5092 6.78134L13.6702 0.80902C13.1971 -0.223786 11.7346 -0.268691 11.2184 0.80902Z");
|
6960
|
-
attr(svg, "width", "24");
|
6961
|
-
attr(svg, "height", "24");
|
6962
|
-
attr(svg, "viewBox", "0 0 24 24");
|
6963
|
-
attr(svg, "fill", "none");
|
6964
|
-
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
6965
|
-
attr(svg, "class", "svelte-1ysi4uv");
|
6966
|
-
attr(div, "class", div_class_value = "rating-button" + (/*i*/ ctx[11] <= /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv");
|
6967
|
-
attr(div, "style", /*_buttonStyle*/ ctx[1]);
|
6968
|
-
},
|
6969
|
-
m(target, anchor) {
|
6970
|
-
insert_hydration(target, div, anchor);
|
6971
|
-
append_hydration(div, svg);
|
6972
|
-
append_hydration(svg, path);
|
6973
|
-
append_hydration(div, t);
|
6887
|
+
dispose = listen(div, "click", function () {
|
6888
|
+
if (is_function(/*handleClick*/ ctx[3](/*i*/ ctx[11]))) /*handleClick*/ ctx[3](/*i*/ ctx[11]).apply(this, arguments);
|
6889
|
+
});
|
6974
6890
|
|
6975
|
-
if (!mounted) {
|
6976
|
-
dispose = listen(div, "click", /*handleClick*/ ctx[4](/*i*/ ctx[11]));
|
6977
6891
|
mounted = true;
|
6978
6892
|
}
|
6979
6893
|
},
|
6980
6894
|
p(new_ctx, dirty) {
|
6981
6895
|
ctx = new_ctx;
|
6896
|
+
if (dirty & /*count*/ 1 && t0_value !== (t0_value = /*i*/ ctx[11] + "")) set_data(t0, t0_value);
|
6982
6897
|
|
6983
|
-
if (dirty & /*_value*/
|
6984
|
-
attr(div, "
|
6985
|
-
}
|
6986
|
-
|
6987
|
-
if (dirty & /*_buttonStyle*/ 2) {
|
6988
|
-
attr(div, "style", /*_buttonStyle*/ ctx[1]);
|
6898
|
+
if (dirty & /*count, _value*/ 3 && div_style_value !== (div_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[11] === /*_value*/ ctx[1]))) {
|
6899
|
+
attr(div, "style", div_style_value);
|
6989
6900
|
}
|
6990
6901
|
},
|
6991
6902
|
d(detaching) {
|
@@ -6996,57 +6907,9 @@ function create_if_block$1(ctx) {
|
|
6996
6907
|
};
|
6997
6908
|
}
|
6998
6909
|
|
6999
|
-
// (53:2) {#each [...Array(5).keys()].map(i => i + 1) as i}
|
7000
|
-
function create_each_block$1(ctx) {
|
7001
|
-
let if_block_anchor;
|
7002
|
-
|
7003
|
-
function select_block_type(ctx, dirty) {
|
7004
|
-
if (/*type*/ ctx[0] === 'star') return create_if_block$1;
|
7005
|
-
if (/*type*/ ctx[0] === 'face') return create_if_block_1$1;
|
7006
|
-
}
|
7007
|
-
|
7008
|
-
let current_block_type = select_block_type(ctx);
|
7009
|
-
let if_block = current_block_type && current_block_type(ctx);
|
7010
|
-
|
7011
|
-
return {
|
7012
|
-
c() {
|
7013
|
-
if (if_block) if_block.c();
|
7014
|
-
if_block_anchor = empty();
|
7015
|
-
},
|
7016
|
-
l(nodes) {
|
7017
|
-
if (if_block) if_block.l(nodes);
|
7018
|
-
if_block_anchor = empty();
|
7019
|
-
},
|
7020
|
-
m(target, anchor) {
|
7021
|
-
if (if_block) if_block.m(target, anchor);
|
7022
|
-
insert_hydration(target, if_block_anchor, anchor);
|
7023
|
-
},
|
7024
|
-
p(ctx, dirty) {
|
7025
|
-
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
7026
|
-
if_block.p(ctx, dirty);
|
7027
|
-
} else {
|
7028
|
-
if (if_block) if_block.d(1);
|
7029
|
-
if_block = current_block_type && current_block_type(ctx);
|
7030
|
-
|
7031
|
-
if (if_block) {
|
7032
|
-
if_block.c();
|
7033
|
-
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
7034
|
-
}
|
7035
|
-
}
|
7036
|
-
},
|
7037
|
-
d(detaching) {
|
7038
|
-
if (if_block) {
|
7039
|
-
if_block.d(detaching);
|
7040
|
-
}
|
7041
|
-
|
7042
|
-
if (detaching) detach(if_block_anchor);
|
7043
|
-
}
|
7044
|
-
};
|
7045
|
-
}
|
7046
|
-
|
7047
6910
|
function create_fragment$5(ctx) {
|
7048
6911
|
let div;
|
7049
|
-
let each_value = [...Array(
|
6912
|
+
let each_value = [...Array(/*count*/ ctx[0]).keys()].map(func);
|
7050
6913
|
let each_blocks = [];
|
7051
6914
|
|
7052
6915
|
for (let i = 0; i < each_value.length; i += 1) {
|
@@ -7075,7 +6938,7 @@ function create_fragment$5(ctx) {
|
|
7075
6938
|
this.h();
|
7076
6939
|
},
|
7077
6940
|
h() {
|
7078
|
-
attr(div, "class", "rating-buttons svelte-
|
6941
|
+
attr(div, "class", "rating-buttons svelte-176k37j");
|
7079
6942
|
},
|
7080
6943
|
m(target, anchor) {
|
7081
6944
|
insert_hydration(target, div, anchor);
|
@@ -7085,8 +6948,8 @@ function create_fragment$5(ctx) {
|
|
7085
6948
|
}
|
7086
6949
|
},
|
7087
6950
|
p(ctx, [dirty]) {
|
7088
|
-
if (dirty & /*Array,
|
7089
|
-
each_value = [...Array(
|
6951
|
+
if (dirty & /*getTextButtonStyle, Array, count, _value, handleClick*/ 27) {
|
6952
|
+
each_value = [...Array(/*count*/ ctx[0]).keys()].map(func);
|
7090
6953
|
let i;
|
7091
6954
|
|
7092
6955
|
for (i = 0; i < each_value.length; i += 1) {
|
@@ -7121,18 +6984,12 @@ const func = i => i + 1;
|
|
7121
6984
|
|
7122
6985
|
function instance$5($$self, $$props, $$invalidate) {
|
7123
6986
|
let _value;
|
7124
|
-
let _buttonStyle;
|
7125
6987
|
let $value;
|
7126
6988
|
let { name = '' } = $$props;
|
7127
|
-
let { type = 'star' } = $$props;
|
7128
6989
|
let { required = false } = $$props;
|
7129
|
-
|
7130
|
-
let { buttonStyle =
|
7131
|
-
|
7132
|
-
colorActive: '#2aab9f',
|
7133
|
-
colorInactive: 'rgba(0, 16, 14, 0.2)'
|
7134
|
-
} } = $$props;
|
7135
|
-
|
6990
|
+
let { count = 5 } = $$props;
|
6991
|
+
let { buttonStyle = 'width: 32px; height: 32px; font-size: 12px; font-weight: bold; border-radius: 17px; color: #333; background-color: rgba(0, 16, 14, 0.06); box-shadow: none;' } = $$props;
|
6992
|
+
let { buttonActiveStyle = 'color: #333; background-color: #2aab9f; box-shadow: 0px 0px 0px rgba(0, 16, 14, 0.03), 0px 8px 16px rgba(0, 16, 14, 0.3);' } = $$props;
|
7136
6993
|
const { path: statePath } = getStateItemContext();
|
7137
6994
|
|
7138
6995
|
const value = registerInput({
|
@@ -7151,47 +7008,41 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
7151
7008
|
value.set([String(index)]);
|
7152
7009
|
};
|
7153
7010
|
|
7154
|
-
|
7155
|
-
|
7156
|
-
|
7157
|
-
|
7158
|
-
|
7159
|
-
4: 'M15.75 8.4375C14.5312 8.4375 13.125 9.23438 12.9375 10.4531C12.8438 10.9688 13.4531 11.2969 13.8281 10.9219L14.2969 10.5469C15 9.9375 16.4531 9.9375 17.1562 10.5469L17.625 10.9219C18 11.2969 18.6094 10.9688 18.5156 10.4531C18.3281 9.23438 16.9219 8.4375 15.75 8.4375ZM8.25 11.25C9.04688 11.25 9.75 10.5938 9.75 9.75C9.75 8.95312 9.04688 8.25 8.25 8.25C7.40625 8.25 6.75 8.95312 6.75 9.75C6.75 10.5938 7.40625 11.25 8.25 11.25ZM16.9219 14.2969C15.7031 14.6719 13.9219 14.9062 12 14.9062C10.0312 14.9062 8.25 14.6719 7.03125 14.2969C6.5625 14.1562 6.14062 14.5781 6.1875 15C6.5625 17.25 9.5625 18.75 12 18.75C14.3906 18.75 17.3906 17.25 17.7656 15C17.8125 14.5781 17.3906 14.1562 16.9219 14.2969ZM12 0.375C5.57812 0.375 0.375 5.625 0.375 12C0.375 18.4219 5.57812 23.625 12 23.625C18.375 23.625 23.625 18.4219 23.625 12C23.625 5.625 18.375 0.375 12 0.375ZM12 21.375C6.79688 21.375 2.625 17.2031 2.625 12C2.625 6.84375 6.79688 2.625 12 2.625C17.1562 2.625 21.375 6.84375 21.375 12C21.375 17.2031 17.1562 21.375 12 21.375Z',
|
7160
|
-
5: 'M12 0.375C5.57812 0.375 0.375 5.57812 0.375 12C0.375 18.4219 5.57812 23.625 12 23.625C18.4219 23.625 23.625 18.4219 23.625 12C23.625 5.57812 18.4219 0.375 12 0.375ZM12 21.375C6.79688 21.375 2.625 17.2031 2.625 12C2.625 6.84375 6.79688 2.625 12 2.625C17.1562 2.625 21.375 6.84375 21.375 12C21.375 17.2031 17.1562 21.375 12 21.375ZM16.9219 14.2969C15.7031 14.6719 13.9219 14.9062 12 14.9062C10.0312 14.9062 8.25 14.6719 7.03125 14.2969C6.5625 14.1562 6.14062 14.5312 6.1875 15C6.5625 17.2031 9.5625 18.75 12 18.75C14.4375 18.75 17.3906 17.2031 17.7656 15C17.8125 14.5781 17.3906 14.1562 16.9219 14.2969ZM5.90625 12.375C6.09375 12.5625 6.375 12.6562 6.65625 12.5156L10.4062 10.2656C10.5469 10.1719 10.6875 9.98438 10.6875 9.75C10.6875 9.5625 10.5469 9.375 10.4062 9.28125L6.65625 7.03125C6.42188 6.89062 6.09375 6.9375 5.90625 7.17188C5.76562 7.35938 5.76562 7.6875 5.90625 7.875L7.5 9.75L5.90625 11.6719C5.76562 11.8594 5.76562 12.1875 5.90625 12.375ZM17.2969 12.5156C17.5781 12.6562 17.8594 12.5625 18.0469 12.375C18.1875 12.1875 18.1875 11.8594 18.0469 11.6719L16.4531 9.75L18.0469 7.875C18.2344 7.6875 18.1875 7.35938 18.0469 7.17188C17.8594 6.9375 17.5312 6.89062 17.2969 7.03125L13.5469 9.28125C13.4062 9.375 13.3125 9.5625 13.3125 9.75C13.3125 9.98438 13.4062 10.1719 13.5469 10.2656L17.2969 12.5156Z'
|
7161
|
-
};
|
7011
|
+
function getTextButtonStyle(isActive) {
|
7012
|
+
return isActive
|
7013
|
+
? [...buttonStyle.split(';'), ...buttonActiveStyle.split(';')].join(';')
|
7014
|
+
: buttonStyle;
|
7015
|
+
}
|
7162
7016
|
|
7163
7017
|
$$self.$$set = $$props => {
|
7164
|
-
if ('name' in $$props) $$invalidate(
|
7165
|
-
if ('
|
7166
|
-
if ('
|
7167
|
-
if ('buttonStyle' in $$props) $$invalidate(
|
7018
|
+
if ('name' in $$props) $$invalidate(5, name = $$props.name);
|
7019
|
+
if ('required' in $$props) $$invalidate(6, required = $$props.required);
|
7020
|
+
if ('count' in $$props) $$invalidate(0, count = $$props.count);
|
7021
|
+
if ('buttonStyle' in $$props) $$invalidate(7, buttonStyle = $$props.buttonStyle);
|
7022
|
+
if ('buttonActiveStyle' in $$props) $$invalidate(8, buttonActiveStyle = $$props.buttonActiveStyle);
|
7168
7023
|
};
|
7169
7024
|
|
7170
7025
|
$$self.$$.update = () => {
|
7171
7026
|
if ($$self.$$.dirty & /*$value*/ 512) {
|
7172
|
-
$$invalidate(
|
7173
|
-
}
|
7174
|
-
|
7175
|
-
if ($$self.$$.dirty & /*buttonStyle*/ 256) {
|
7176
|
-
$$invalidate(1, _buttonStyle = `--size: ${buttonStyle.size}; --color-active: ${buttonStyle.colorActive}; --color-inactive: ${buttonStyle.colorInactive}`);
|
7027
|
+
$$invalidate(1, _value = Number($value[0] ?? -1));
|
7177
7028
|
}
|
7178
7029
|
};
|
7179
7030
|
|
7180
7031
|
return [
|
7181
|
-
|
7182
|
-
_buttonStyle,
|
7032
|
+
count,
|
7183
7033
|
_value,
|
7184
7034
|
value,
|
7185
7035
|
handleClick,
|
7186
|
-
|
7036
|
+
getTextButtonStyle,
|
7187
7037
|
name,
|
7188
7038
|
required,
|
7189
7039
|
buttonStyle,
|
7040
|
+
buttonActiveStyle,
|
7190
7041
|
$value
|
7191
7042
|
];
|
7192
7043
|
}
|
7193
7044
|
|
7194
|
-
class
|
7045
|
+
class FormRatingButtonsNumber extends SvelteComponent {
|
7195
7046
|
constructor(options) {
|
7196
7047
|
super();
|
7197
7048
|
|
@@ -7202,10 +7053,11 @@ class FormRatingButtons extends SvelteComponent {
|
|
7202
7053
|
create_fragment$5,
|
7203
7054
|
safe_not_equal,
|
7204
7055
|
{
|
7205
|
-
name:
|
7206
|
-
|
7207
|
-
|
7208
|
-
buttonStyle:
|
7056
|
+
name: 5,
|
7057
|
+
required: 6,
|
7058
|
+
count: 0,
|
7059
|
+
buttonStyle: 7,
|
7060
|
+
buttonActiveStyle: 8
|
7209
7061
|
},
|
7210
7062
|
add_css$5
|
7211
7063
|
);
|
@@ -8630,4 +8482,4 @@ class ImageBlock extends SvelteComponent {
|
|
8630
8482
|
}
|
8631
8483
|
}
|
8632
8484
|
|
8633
|
-
export { ACTION_HOOK_LABEL, Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultEdgePosition, DefaultFormButtonStyle,
|
8485
|
+
export { ACTION_HOOK_LABEL, Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultEdgePosition, DefaultFormButtonStyle, DefaultFormSelectStyle, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexDirections, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtonsNumber, 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, destroyAction, destroyed, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getActionShadowRoot, getCustomHandlers, getCustomVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getStoreState, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isClosed, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, stopped, updateCustomHandlers, updateCustomVariables, updateEventHandlers, updateVariables, variables, widget };
|