@plaidev/karte-action-sdk 1.1.112 → 1.1.113-27923240.51ac14b8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.d.ts +931 -267
- package/dist/hydrate/index.es.js +678 -292
- package/dist/index.es.d.ts +931 -267
- package/dist/index.es.js +651 -292
- package/dist/templates.js +1 -0
- package/package.json +6 -1
package/dist/index.es.js
CHANGED
@@ -4,9 +4,12 @@ import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, crea
|
|
4
4
|
import { setContext, getContext, createEventDispatcher, onMount, onDestroy as onDestroy$1 } from 'svelte';
|
5
5
|
|
6
6
|
/**
|
7
|
-
*
|
7
|
+
* @internal
|
8
|
+
*/
|
9
|
+
const NOOP = (_args) => { }; // eslint-disable-line @typescript-eslint/no-unused-vars
|
10
|
+
/**
|
11
|
+
* @internal
|
8
12
|
*/
|
9
|
-
const NOOP = (_args) => { };
|
10
13
|
const isPreview = () => {
|
11
14
|
return false;
|
12
15
|
};
|
@@ -83,12 +86,12 @@ const getMarginStyle = (margin) => {
|
|
83
86
|
return `margin: ${margin?.top ?? 0} ${margin?.right ?? 0} ${margin?.bottom ?? 0} ${margin?.left ?? 0};`;
|
84
87
|
};
|
85
88
|
/**
|
86
|
-
*
|
89
|
+
* スクロール率が達したときに呼び出すコールバックを登録します
|
87
90
|
*
|
88
|
-
* @param rate -
|
89
|
-
* @param fn -
|
91
|
+
* @param rate - スクロール率。この値は viewport でのスクロールのパーセンテージ
|
92
|
+
* @param fn - スクロール率が達したときに呼び出されるコールバック関数
|
90
93
|
*
|
91
|
-
* @returns
|
94
|
+
* @returns スクロール率によって呼び出されるコールバックを停止する関数を返します
|
92
95
|
*/
|
93
96
|
function onScroll(rate, fn) {
|
94
97
|
const rates = Array.isArray(rate) ? rate : [rate];
|
@@ -169,12 +172,12 @@ function onScroll(rate, fn) {
|
|
169
172
|
};
|
170
173
|
}
|
171
174
|
/**
|
172
|
-
*
|
175
|
+
* 指定した時間の経過後に呼び出すコールバックを登録します
|
173
176
|
*
|
174
|
-
* @param time -
|
175
|
-
* @param fn -
|
177
|
+
* @param time - コールバックを呼び出すまでの時間。単位はミリセカンド(ms)
|
178
|
+
* @param fn - 指定した時間が経過後に呼び出されるコールバック関数
|
176
179
|
*
|
177
|
-
* @returns
|
180
|
+
* @returns コールバックを呼び出すためのタイマーを停止する関数を返します
|
178
181
|
*/
|
179
182
|
function onTime(time, fn) {
|
180
183
|
const timeoutHandler = setTimeout(fn, time);
|
@@ -191,7 +194,9 @@ function randStr(digit = 8) {
|
|
191
194
|
}
|
192
195
|
|
193
196
|
/**
|
194
|
-
*
|
197
|
+
* get store state value
|
198
|
+
*
|
199
|
+
* @deprecated 非推奨
|
195
200
|
*/
|
196
201
|
const getStoreState = get;
|
197
202
|
/**
|
@@ -200,15 +205,18 @@ const getStoreState = get;
|
|
200
205
|
const actionSetting = writable({ autoStart: true });
|
201
206
|
/**
|
202
207
|
* {@link getActionSetting} function to get action setting.
|
203
|
-
*
|
208
|
+
*
|
209
|
+
* @returns Current action setting
|
204
210
|
*/
|
205
211
|
function getActionSetting() {
|
206
212
|
return get(actionSetting);
|
207
213
|
}
|
208
214
|
/**
|
209
215
|
* {@link setActionSetting} function to "update" action setting
|
210
|
-
*
|
211
|
-
* @
|
216
|
+
*
|
217
|
+
* @param setting - Updated action setting
|
218
|
+
*
|
219
|
+
* @returns New action setting
|
212
220
|
*/
|
213
221
|
function setActionSetting(setting) {
|
214
222
|
actionSetting.update(current => {
|
@@ -231,7 +239,8 @@ function resetActionSetting() {
|
|
231
239
|
const system = writable({});
|
232
240
|
/**
|
233
241
|
* {@link getSystem} function to get KARTE system config.
|
234
|
-
*
|
242
|
+
*
|
243
|
+
* @returns Current karte system config
|
235
244
|
*/
|
236
245
|
function getSystem() {
|
237
246
|
return get(system);
|
@@ -259,7 +268,8 @@ function setState$1(stateId, force = false) {
|
|
259
268
|
}
|
260
269
|
/**
|
261
270
|
* {@link getState} function to get current state ID.
|
262
|
-
*
|
271
|
+
*
|
272
|
+
* @returns Current state ID
|
263
273
|
*/
|
264
274
|
function getState$1() {
|
265
275
|
return get(state);
|
@@ -270,7 +280,8 @@ function getState$1() {
|
|
270
280
|
const states = writable([]);
|
271
281
|
/**
|
272
282
|
* {@link getStates} function to add new state ID to list of state IDs.
|
273
|
-
*
|
283
|
+
*
|
284
|
+
* @param stateId - New state ID
|
274
285
|
*/
|
275
286
|
function addState(stateId) {
|
276
287
|
states.update(current => {
|
@@ -280,7 +291,8 @@ function addState(stateId) {
|
|
280
291
|
}
|
281
292
|
/**
|
282
293
|
* {@link getStates} function to get a list of all state IDs.
|
283
|
-
*
|
294
|
+
*
|
295
|
+
* @returns All state IDs
|
284
296
|
*/
|
285
297
|
function getStates() {
|
286
298
|
return get(states);
|
@@ -291,7 +303,8 @@ function getStates() {
|
|
291
303
|
const opened = writable(true);
|
292
304
|
/**
|
293
305
|
* {@link isOpened} function to check if action is opened.
|
294
|
-
*
|
306
|
+
*
|
307
|
+
* @returns Flag if action is opend / true: Opend, false: Not opened
|
295
308
|
*/
|
296
309
|
function isOpened() {
|
297
310
|
return get(opened);
|
@@ -305,13 +318,15 @@ function setOpened(on) {
|
|
305
318
|
/**
|
306
319
|
* Store to handle visibility of action
|
307
320
|
*
|
308
|
-
* @deprecated
|
321
|
+
* @deprecated 非推奨
|
309
322
|
*/
|
310
323
|
const closed = writable(false); // deprecated
|
311
324
|
/**
|
312
325
|
* {@link isClosed} function to check if action is clsoed.
|
313
|
-
*
|
314
|
-
* @
|
326
|
+
*
|
327
|
+
* @returns Flag if action is closed / true: Closed, false: Not closed
|
328
|
+
*
|
329
|
+
* @deprecated 非推奨
|
315
330
|
*/
|
316
331
|
function isClosed() {
|
317
332
|
return get(closed);
|
@@ -319,7 +334,7 @@ function isClosed() {
|
|
319
334
|
/**
|
320
335
|
* {@link setClosed} function to set if action is closed.
|
321
336
|
*
|
322
|
-
* @deprecated
|
337
|
+
* @deprecated 非推奨
|
323
338
|
*/
|
324
339
|
function setClosed(on) {
|
325
340
|
closed.set(on);
|
@@ -329,7 +344,7 @@ function setClosed(on) {
|
|
329
344
|
*/
|
330
345
|
const maximumZindex = writable(0);
|
331
346
|
/**
|
332
|
-
*
|
347
|
+
* Set maximum z-index.
|
333
348
|
*/
|
334
349
|
const setMaximumZindex = (zindex) => {
|
335
350
|
if (!zindex || zindex < get(maximumZindex))
|
@@ -344,7 +359,8 @@ const setMaximumZindex = (zindex) => {
|
|
344
359
|
const internalHandlers = writable({});
|
345
360
|
/**
|
346
361
|
* {@link getInternalHandlers} function to get internal event handlers.
|
347
|
-
*
|
362
|
+
*
|
363
|
+
* @returns Current internal handlers
|
348
364
|
*/
|
349
365
|
function getInternalHandlers() {
|
350
366
|
return get(internalHandlers);
|
@@ -357,8 +373,10 @@ function setInternalHandlers(handlers) {
|
|
357
373
|
}
|
358
374
|
/**
|
359
375
|
* {@link updateInternalHandlers} function to update internal event handlers.
|
360
|
-
*
|
361
|
-
* @
|
376
|
+
*
|
377
|
+
* @param handlers - Updated internal event handlers
|
378
|
+
*
|
379
|
+
* @returns New internal handlers
|
362
380
|
*/
|
363
381
|
function updateInternalHandlers(handlers) {
|
364
382
|
internalHandlers.update(current => {
|
@@ -374,22 +392,26 @@ function updateInternalHandlers(handlers) {
|
|
374
392
|
const customHandlers = writable({});
|
375
393
|
/**
|
376
394
|
* {@link getCustomHandlers} function to get custom event handlers.
|
377
|
-
*
|
395
|
+
*
|
396
|
+
* @returns Current custom event handlers
|
378
397
|
*/
|
379
398
|
function getCustomHandlers() {
|
380
399
|
return get(customHandlers);
|
381
400
|
}
|
382
401
|
/**
|
383
402
|
* {@link setCustomHandlers} function to set custom event handlers.
|
384
|
-
*
|
403
|
+
*
|
404
|
+
* @param handlers - New custom event handlers
|
385
405
|
*/
|
386
406
|
function setCustomHandlers(handlers) {
|
387
407
|
customHandlers.set(handlers);
|
388
408
|
}
|
389
409
|
/**
|
390
410
|
* {@link updateCustomHandlers} function to update custom event handlers.
|
391
|
-
*
|
392
|
-
* @
|
411
|
+
*
|
412
|
+
* @param handlers - Updated custom event handlers
|
413
|
+
*
|
414
|
+
* @returns New custom event handlers
|
393
415
|
*/
|
394
416
|
function updateCustomHandlers(handlers) {
|
395
417
|
customHandlers.update(current => {
|
@@ -403,7 +425,8 @@ function updateCustomHandlers(handlers) {
|
|
403
425
|
const destroyed = writable(false);
|
404
426
|
/**
|
405
427
|
* {@link isDestroyed} function to check if action is destroyed.
|
406
|
-
*
|
428
|
+
*
|
429
|
+
* @returns Flag if action is destoryed / true: Destroyed, false: Not Destroyed
|
407
430
|
*/
|
408
431
|
function isDestroyed() {
|
409
432
|
return get(destroyed);
|
@@ -419,7 +442,8 @@ function setDestroyed(on) {
|
|
419
442
|
const stopped = writable(false);
|
420
443
|
/**
|
421
444
|
* {@link isStopped} function to check if action is stopped.
|
422
|
-
*
|
445
|
+
*
|
446
|
+
* @returns Flag if action is stopped / true: Stopped, false: Not stopped
|
423
447
|
*/
|
424
448
|
function isStopped() {
|
425
449
|
return get(stopped);
|
@@ -438,22 +462,26 @@ function setStopped(on) {
|
|
438
462
|
const customVariables = writable({});
|
439
463
|
/**
|
440
464
|
* {@link getCustomVariables} function to get custom variables.
|
441
|
-
*
|
465
|
+
*
|
466
|
+
* @returns Current custom variables
|
442
467
|
*/
|
443
468
|
function getCustomVariables() {
|
444
469
|
return get(customVariables);
|
445
470
|
}
|
446
471
|
/**
|
447
472
|
* {@link setCustomVariables} function to set custom variables.
|
448
|
-
*
|
473
|
+
*
|
474
|
+
* @param variables - New custom variables
|
449
475
|
*/
|
450
476
|
function setCustomVariables(variables) {
|
451
477
|
customVariables.set(variables);
|
452
478
|
}
|
453
479
|
/**
|
454
480
|
* {@link updateCustomVariables} function to update custom variables.
|
455
|
-
*
|
456
|
-
* @
|
481
|
+
*
|
482
|
+
* @param variables - Updated custom variables
|
483
|
+
*
|
484
|
+
* @returns New custom variables
|
457
485
|
*/
|
458
486
|
function updateCustomVariables(variables) {
|
459
487
|
customVariables.update(current => {
|
@@ -595,9 +623,11 @@ const EASING = {
|
|
595
623
|
};
|
596
624
|
/**
|
597
625
|
* The function to activate svelte animation.
|
626
|
+
*
|
627
|
+
* @param node - A target node of animation. This argument is passed by svelte, by default.
|
628
|
+
* @param customAnimationOptions - A custom animation option object
|
629
|
+
*
|
598
630
|
* @see {@link https://svelte.dev/docs#template-syntax-element-directives-transition-fn-custom-transition-functions| Custom transition functions} for detail documentation
|
599
|
-
* @param {Element} node A target node of animation. This argument is passed by svelte, by default.
|
600
|
-
* @param {CustomAnimationOptions} customAnimationOptions A custom animation option object
|
601
631
|
*/
|
602
632
|
function customAnimation(node, { transform, animationStyle, delay = 0, duration = 1000 }) {
|
603
633
|
const [x, y] = transform;
|
@@ -611,7 +641,7 @@ function customAnimation(node, { transform, animationStyle, delay = 0, duration
|
|
611
641
|
/**
|
612
642
|
* {@link loadGlobalScript} load JavaScript that does not support ESM.
|
613
643
|
*
|
614
|
-
* @param
|
644
|
+
* @param src - Link of JavaScript file
|
615
645
|
*/
|
616
646
|
async function loadGlobalScript(src) {
|
617
647
|
return new Promise((resolve, reject) => {
|
@@ -625,7 +655,7 @@ async function loadGlobalScript(src) {
|
|
625
655
|
/**
|
626
656
|
* {@link applyGlobalCss} apply global CSS to WEB page.
|
627
657
|
*
|
628
|
-
* @param
|
658
|
+
* @param css - CSS
|
629
659
|
*/
|
630
660
|
async function applyGlobalCss(css) {
|
631
661
|
return new Promise((resolve, reject) => {
|
@@ -639,7 +669,7 @@ async function applyGlobalCss(css) {
|
|
639
669
|
/**
|
640
670
|
* {@link loadGlobalStyle} load global style to WEB page.
|
641
671
|
*
|
642
|
-
* @param
|
672
|
+
* @param href - Link of style file
|
643
673
|
*/
|
644
674
|
async function loadGlobalStyle(href) {
|
645
675
|
return new Promise((resolve, reject) => {
|
@@ -654,8 +684,10 @@ async function loadGlobalStyle(href) {
|
|
654
684
|
/**
|
655
685
|
* {@link hashCode} generate hash with FNV-1a hash
|
656
686
|
*
|
657
|
-
* @param
|
658
|
-
*
|
687
|
+
* @param s - Inputed string
|
688
|
+
*
|
689
|
+
* @returns Hashed string
|
690
|
+
*
|
659
691
|
* @see https://stackoverflow.com/a/22429679
|
660
692
|
*/
|
661
693
|
function hashCode(s) {
|
@@ -670,15 +702,17 @@ function hashCode(s) {
|
|
670
702
|
/**
|
671
703
|
* {@link setAutoStart} function to set auto start flag.
|
672
704
|
*
|
673
|
-
*
|
705
|
+
* @param on - true: auto start, false: not auto start
|
674
706
|
*
|
675
|
-
* @deprecated
|
676
|
-
* @param {boolean} on
|
707
|
+
* @deprecated 非推奨。`setActionConfig({ autoStart: false })` を使ってください。
|
677
708
|
*/
|
678
709
|
const setAutoStart = (on = true) => {
|
679
710
|
setStopped(!on);
|
680
711
|
};
|
681
712
|
|
713
|
+
/**
|
714
|
+
* @internal
|
715
|
+
*/
|
682
716
|
const PropTypes = [
|
683
717
|
'BooleanKeyword',
|
684
718
|
'NumberKeyword',
|
@@ -700,12 +734,21 @@ const PropTypes = [
|
|
700
734
|
'ModalPlacement',
|
701
735
|
'OnClick',
|
702
736
|
];
|
737
|
+
/**
|
738
|
+
* @internal
|
739
|
+
*/
|
703
740
|
const MediaQueries = {
|
704
741
|
PC: '(\\s*min-width\\s*:\\s*1025px\\s*)',
|
705
742
|
Tablet: '(\\s*min-width\\s*:\\s*897px)\\s+and\\s+(\\s*max-width\\s*:\\s*1024px\\s*)',
|
706
743
|
Mobile: '(\\s*max-width\\s*:\\s*896px\\s*)',
|
707
744
|
};
|
745
|
+
/**
|
746
|
+
* @internal
|
747
|
+
*/
|
708
748
|
const Directions = ['row', 'column'];
|
749
|
+
/**
|
750
|
+
* @internal
|
751
|
+
*/
|
709
752
|
const AnimationStyles = [
|
710
753
|
'none',
|
711
754
|
'fade',
|
@@ -715,6 +758,9 @@ const AnimationStyles = [
|
|
715
758
|
'slide-left',
|
716
759
|
'slide-right',
|
717
760
|
];
|
761
|
+
/**
|
762
|
+
* @internal
|
763
|
+
*/
|
718
764
|
const ModalPositions = [
|
719
765
|
'top-left',
|
720
766
|
'top-center',
|
@@ -727,6 +773,9 @@ const ModalPositions = [
|
|
727
773
|
'bottom-right',
|
728
774
|
'none',
|
729
775
|
];
|
776
|
+
/**
|
777
|
+
* @internal
|
778
|
+
*/
|
730
779
|
const DefaultModalPlacement = {
|
731
780
|
position: 'center',
|
732
781
|
margin: {
|
@@ -738,13 +787,25 @@ const DefaultModalPlacement = {
|
|
738
787
|
backgroundOverlay: false,
|
739
788
|
backgroundClick: { operation: 'closeApp', args: ['overlay'] },
|
740
789
|
};
|
790
|
+
/**
|
791
|
+
* @internal
|
792
|
+
*/
|
741
793
|
const Elasticities = ['none', 'vertical', 'horizontal'];
|
794
|
+
/**
|
795
|
+
* @internal
|
796
|
+
*/
|
742
797
|
const ElasticityStyle = {
|
743
798
|
none: '',
|
744
799
|
vertical: 'height: 100%',
|
745
800
|
horizontal: 'width: 100%',
|
746
801
|
};
|
802
|
+
/**
|
803
|
+
* @internal
|
804
|
+
*/
|
747
805
|
const TextDirections = ['horizontal', 'vertical'];
|
806
|
+
/**
|
807
|
+
* @internal
|
808
|
+
*/
|
748
809
|
const OnClickOperationOptions = [
|
749
810
|
{
|
750
811
|
operation: 'none',
|
@@ -791,41 +852,133 @@ const OnClickOperationOptions = [
|
|
791
852
|
],
|
792
853
|
},
|
793
854
|
];
|
855
|
+
/**
|
856
|
+
* @internal
|
857
|
+
*/
|
858
|
+
const FormOperationOptions = [
|
859
|
+
{
|
860
|
+
operation: 'submit',
|
861
|
+
args: [
|
862
|
+
{
|
863
|
+
type: 'TransitState',
|
864
|
+
default: '/',
|
865
|
+
},
|
866
|
+
],
|
867
|
+
},
|
868
|
+
{
|
869
|
+
operation: 'next',
|
870
|
+
args: [
|
871
|
+
{
|
872
|
+
type: 'TransitState',
|
873
|
+
default: '/',
|
874
|
+
},
|
875
|
+
],
|
876
|
+
},
|
877
|
+
{
|
878
|
+
operation: 'prev',
|
879
|
+
args: [
|
880
|
+
{
|
881
|
+
type: 'TransitState',
|
882
|
+
default: '/',
|
883
|
+
},
|
884
|
+
],
|
885
|
+
},
|
886
|
+
];
|
887
|
+
/**
|
888
|
+
* @internal
|
889
|
+
*/
|
794
890
|
const LengthUnits = ['px', 'em', 'rem', 'vw', 'fr', '%'];
|
891
|
+
/**
|
892
|
+
* @internal
|
893
|
+
*/
|
795
894
|
const Justifies = ['flex-start', 'center', 'flex-end'];
|
895
|
+
/**
|
896
|
+
* @internal
|
897
|
+
*/
|
796
898
|
const Alignments = ['flex-start', 'center', 'flex-end'];
|
899
|
+
/**
|
900
|
+
* @internal
|
901
|
+
*/
|
797
902
|
const ObjectFits = ['fill', 'contain', 'cover'];
|
903
|
+
/**
|
904
|
+
* @internal
|
905
|
+
*/
|
798
906
|
const ClipPaths = ['none', 'circle(closest-side)'];
|
907
|
+
/**
|
908
|
+
* @internal
|
909
|
+
*/
|
799
910
|
const Repeats = ['repeat', 'space', 'round', 'no-repeat'];
|
911
|
+
/**
|
912
|
+
* @internal
|
913
|
+
*/
|
800
914
|
const BackgroundSizes = ['cover', 'contain', 'auto'];
|
915
|
+
/**
|
916
|
+
* @internal
|
917
|
+
*/
|
801
918
|
const Cursors = ['default', 'pointer'];
|
919
|
+
/**
|
920
|
+
* @internal
|
921
|
+
*/
|
802
922
|
const Overflows = ['visible', 'auto', 'hidden'];
|
923
|
+
/**
|
924
|
+
* @internal
|
925
|
+
*/
|
803
926
|
const WritingModes = ['horizontal-tb', 'vertical-lr'];
|
927
|
+
/**
|
928
|
+
* @internal
|
929
|
+
*/
|
804
930
|
const ListSeparatorTypes = ['none', 'border', 'gap'];
|
931
|
+
/**
|
932
|
+
* @internal
|
933
|
+
*/
|
805
934
|
const DefaultListSeparatorNone = {
|
806
935
|
type: 'none',
|
807
936
|
};
|
937
|
+
/**
|
938
|
+
* @internal
|
939
|
+
*/
|
808
940
|
const DefaultListSeparatorBorder = {
|
809
941
|
type: 'border',
|
810
942
|
borderStyle: 'solid',
|
811
943
|
borderWidth: '1px',
|
812
944
|
borderColor: 'rgba(0, 0, 0, 0.06)',
|
813
945
|
};
|
946
|
+
/**
|
947
|
+
* @internal
|
948
|
+
*/
|
814
949
|
const DefaultListSeparatorGap = {
|
815
950
|
type: 'gap',
|
816
951
|
gap: '8px',
|
817
952
|
};
|
953
|
+
/**
|
954
|
+
* @internal
|
955
|
+
*/
|
818
956
|
const DefaultListSeparator = DefaultListSeparatorBorder;
|
957
|
+
/**
|
958
|
+
* @internal
|
959
|
+
*/
|
819
960
|
const ListBackgroundTypes = ['none', 'stripe'];
|
961
|
+
/**
|
962
|
+
* @internal
|
963
|
+
*/
|
820
964
|
const DefaultListBackgroundNone = {
|
821
965
|
type: 'none',
|
822
966
|
};
|
967
|
+
/**
|
968
|
+
* @internal
|
969
|
+
*/
|
823
970
|
const DefaultListBackgroundStripe = {
|
824
971
|
type: 'stripe',
|
825
972
|
background1: 'rgba(0, 0, 0, 0.06)',
|
826
973
|
background2: '#fff',
|
827
974
|
};
|
975
|
+
/**
|
976
|
+
* @internal
|
977
|
+
*/
|
828
978
|
const DefaultListBackground = DefaultListBackgroundNone;
|
979
|
+
/**
|
980
|
+
* @internal
|
981
|
+
*/
|
829
982
|
const ListDirections = ['vertical', 'horizontal'];
|
830
983
|
|
831
984
|
function doPresent({ direction, deltaRate }, downFn, upFn, condition = false) {
|
@@ -838,33 +991,36 @@ function doPresent({ direction, deltaRate }, downFn, upFn, condition = false) {
|
|
838
991
|
return true;
|
839
992
|
}
|
840
993
|
/**
|
841
|
-
*
|
994
|
+
* スクロールに応じてアクションを非表示にするトリガー関数
|
842
995
|
*
|
843
|
-
* @
|
844
|
-
*
|
845
|
-
*
|
996
|
+
* @remarks
|
997
|
+
* スクロール率が `hide_on_scroll_rate` に達したときに `hide` 関数を呼び出します。
|
998
|
+
* `show_on_scroll_reenter` が `true` で、かつ `hide_on_scroll_rate` またはその値以下の場合、アクションに対して `show` 関数が呼び出されます。
|
846
999
|
*
|
847
|
-
* @
|
848
|
-
*
|
849
|
-
*
|
1000
|
+
* @param props - アクションのプロパティ。プロパティには `hide_on_scroll`、`hide_on_scroll_rate` そして `show_on_scroll_reenter` が必要です。
|
1001
|
+
* @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
1002
|
+
* @param show - アクションを再び表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
850
1003
|
*
|
851
|
-
* @returns
|
1004
|
+
* @returns
|
1005
|
+
* スクロールが開始された場合は、クリーンアップする関数を返します。そうでない場合は `null` を返します。
|
852
1006
|
*/
|
853
|
-
function hideOnScroll(
|
1007
|
+
function hideOnScroll(props, hide = NOOP, show = NOOP) {
|
1008
|
+
const { hide_on_scroll, hide_on_scroll_rate, show_on_scroll_reenter } = props;
|
854
1009
|
return hide_on_scroll && hide_on_scroll_rate
|
855
1010
|
? onScroll(hide_on_scroll_rate / 100, ctx => doPresent(ctx, hide, show, show_on_scroll_reenter))
|
856
1011
|
: null;
|
857
1012
|
}
|
858
1013
|
/**
|
859
|
-
*
|
1014
|
+
* 時間に応じてアクションを非表示にするトリガー関数
|
860
1015
|
*
|
861
|
-
* @
|
862
|
-
*
|
1016
|
+
* @remarks
|
1017
|
+
* 時間のカウントが `hide_on_time_count` に達したときに `hide` 関数を呼び出します。
|
863
1018
|
*
|
864
|
-
* @
|
865
|
-
*
|
1019
|
+
* @param props - アクションのプロパティ。プロパティには `hide_on_time` そして `hide_on_time_count` が必要です。
|
1020
|
+
* @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
866
1021
|
*
|
867
|
-
* @returns
|
1022
|
+
* @returns
|
1023
|
+
* タイマーが開始された場合、タイマーをクリーンアップする関数を返します。それ以外は `null` を返します。
|
868
1024
|
*/
|
869
1025
|
function hideOnTime(props, hide = NOOP) {
|
870
1026
|
return props.hide_on_time && props.hide_on_time_count
|
@@ -872,33 +1028,36 @@ function hideOnTime(props, hide = NOOP) {
|
|
872
1028
|
: null;
|
873
1029
|
}
|
874
1030
|
/**
|
875
|
-
*
|
1031
|
+
* スクロールに応じてアクションを表示するトリガー関数
|
876
1032
|
*
|
877
|
-
* @
|
878
|
-
*
|
879
|
-
*
|
1033
|
+
* @remarks
|
1034
|
+
* スクロール率が `show_on_scroll_rate` に達したときに `show` 関数を呼び出します。
|
1035
|
+
* `hide_on_scroll_releave` が `true` で、かつ `show_on_scroll_rate` 以下の場合は、アクションに対して `hide` 関数が呼び出されます。
|
880
1036
|
*
|
881
|
-
* @
|
882
|
-
*
|
883
|
-
*
|
1037
|
+
* @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate` そして `hide_on_scroll_releave` が必要です。
|
1038
|
+
* @param show - アクションを表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
1039
|
+
* @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
884
1040
|
*
|
885
|
-
* @returns
|
1041
|
+
* @returns
|
1042
|
+
* スクロールが開始されている場合は、クリーンアップ関数を返します。そうでない場合は `null` を返します
|
886
1043
|
*/
|
887
|
-
function showOnScroll(
|
1044
|
+
function showOnScroll(props, show = NOOP, hide = NOOP) {
|
1045
|
+
const { show_on_scroll, show_on_scroll_rate, hide_on_scroll_releave } = props;
|
888
1046
|
return show_on_scroll && show_on_scroll_rate
|
889
1047
|
? onScroll(show_on_scroll_rate / 100, ctx => doPresent(ctx, show, hide, hide_on_scroll_releave))
|
890
1048
|
: null;
|
891
1049
|
}
|
892
1050
|
/**
|
893
|
-
*
|
1051
|
+
* 時間に応じてアクションを表示するトリガー関数
|
894
1052
|
*
|
895
|
-
* @param props -
|
896
|
-
* @param show -
|
1053
|
+
* @param props - アクションのプロパティ。プロパティには `show_on_time` そして `show_on_time_count` が必要です。
|
1054
|
+
* @param show - アクションを表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
897
1055
|
*
|
898
|
-
* @
|
899
|
-
*
|
1056
|
+
* @remarks
|
1057
|
+
* 時間のカウントが `show_on_time_count` に達したときに `show` 関数を呼び出します。
|
900
1058
|
*
|
901
|
-
* @returns
|
1059
|
+
* @returns
|
1060
|
+
* タイマーが開始された場合、タイマーをクリーンアップする関数を返します。それ以外は `null` を返します。
|
902
1061
|
*/
|
903
1062
|
function showOnTime(props, show = NOOP) {
|
904
1063
|
return props.show_on_time && props.show_on_time_count
|
@@ -957,12 +1116,14 @@ function checkAndDo(checkFn, fn, ...conditionFns) {
|
|
957
1116
|
}
|
958
1117
|
|
959
1118
|
/**
|
960
|
-
*
|
1119
|
+
* KARTE アクションを作成する
|
961
1120
|
*
|
962
|
-
* @param App -
|
963
|
-
* @param options -
|
1121
|
+
* @param App - Svelte コンポーネントのエントリポイント
|
1122
|
+
* @param options - {@link ActionOptions | オプション}
|
964
1123
|
*
|
965
|
-
* @
|
1124
|
+
* @returns KARTE アクションを破棄する関数
|
1125
|
+
*
|
1126
|
+
* @public
|
966
1127
|
*/
|
967
1128
|
function create(App, options = {
|
968
1129
|
send: () => { },
|
@@ -1105,6 +1266,8 @@ function create(App, options = {
|
|
1105
1266
|
}
|
1106
1267
|
/**
|
1107
1268
|
* Dispatch the event to destroy KARTE action
|
1269
|
+
*
|
1270
|
+
* @internal
|
1108
1271
|
*/
|
1109
1272
|
function dispatchDestroyEvent() {
|
1110
1273
|
const event = new CustomEvent(ACTION_DESTROY_EVENT);
|
@@ -1157,16 +1320,13 @@ function ensureActionRoot(useShadow = true) {
|
|
1157
1320
|
}
|
1158
1321
|
}
|
1159
1322
|
/**
|
1160
|
-
*
|
1323
|
+
* アクションが作成 (create) される前にフックする
|
1161
1324
|
*
|
1162
|
-
* @param
|
1163
|
-
|
1164
|
-
|
1165
|
-
/**
|
1166
|
-
* @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
|
1167
|
-
* @returns {void|Promise<void>}
|
1325
|
+
* @param fn - 呼び出されるフック関数
|
1326
|
+
*
|
1327
|
+
* @public
|
1168
1328
|
*/
|
1169
|
-
fn) {
|
1329
|
+
function onCreate(fn) {
|
1170
1330
|
let { onCreateHandlers } = getInternalHandlers();
|
1171
1331
|
if (!onCreateHandlers) {
|
1172
1332
|
onCreateHandlers = [];
|
@@ -1175,16 +1335,13 @@ fn) {
|
|
1175
1335
|
updateInternalHandlers({ onCreateHandlers });
|
1176
1336
|
}
|
1177
1337
|
/**
|
1178
|
-
*
|
1338
|
+
* アクションが表示 (show) された後にフックする
|
1179
1339
|
*
|
1180
|
-
* @param
|
1181
|
-
|
1182
|
-
|
1183
|
-
/**
|
1184
|
-
* @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
|
1185
|
-
* @returns {void|Promise<void>}
|
1340
|
+
* @param fn - 呼び出されるフック関数
|
1341
|
+
*
|
1342
|
+
* @public
|
1186
1343
|
*/
|
1187
|
-
fn) {
|
1344
|
+
function onShow(fn) {
|
1188
1345
|
let { onShowHandlers } = getInternalHandlers();
|
1189
1346
|
if (!onShowHandlers) {
|
1190
1347
|
onShowHandlers = [];
|
@@ -1193,17 +1350,13 @@ fn) {
|
|
1193
1350
|
updateInternalHandlers({ onShowHandlers });
|
1194
1351
|
}
|
1195
1352
|
/**
|
1196
|
-
*
|
1353
|
+
* アクションがクローズ (close) される前にフックする
|
1197
1354
|
*
|
1198
|
-
* @param
|
1199
|
-
*
|
1200
|
-
|
1201
|
-
function onClose(
|
1202
|
-
/**
|
1203
|
-
* @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
|
1204
|
-
* @returns {void|Promise<void>}
|
1355
|
+
* @param fn - 呼び出されるフック関数
|
1356
|
+
*
|
1357
|
+
* @public
|
1205
1358
|
*/
|
1206
|
-
fn) {
|
1359
|
+
function onClose(fn) {
|
1207
1360
|
let { onCloseHandlers } = getInternalHandlers();
|
1208
1361
|
if (!onCloseHandlers) {
|
1209
1362
|
onCloseHandlers = [];
|
@@ -1212,16 +1365,13 @@ fn) {
|
|
1212
1365
|
updateInternalHandlers({ onCloseHandlers });
|
1213
1366
|
}
|
1214
1367
|
/**
|
1215
|
-
*
|
1368
|
+
* アクションが破棄 (destroy) される前にフックする
|
1216
1369
|
*
|
1217
|
-
* @param
|
1218
|
-
|
1219
|
-
|
1220
|
-
/**
|
1221
|
-
* @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
|
1222
|
-
* @returns {void|Promise<void>}
|
1370
|
+
* @param fn - 呼び出されるフック関数
|
1371
|
+
*
|
1372
|
+
* @public
|
1223
1373
|
*/
|
1224
|
-
fn) {
|
1374
|
+
function onDestroy(fn) {
|
1225
1375
|
let { onDestoryHandlers } = getInternalHandlers();
|
1226
1376
|
if (!onDestoryHandlers) {
|
1227
1377
|
onDestoryHandlers = [];
|
@@ -1230,17 +1380,13 @@ fn) {
|
|
1230
1380
|
updateInternalHandlers({ onDestoryHandlers });
|
1231
1381
|
}
|
1232
1382
|
/**
|
1233
|
-
*
|
1383
|
+
* アクションのステートが変更された (changeState) 後にフックする
|
1234
1384
|
*
|
1235
|
-
* @param
|
1236
|
-
|
1237
|
-
|
1238
|
-
/**
|
1239
|
-
* @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
|
1240
|
-
* @param {string} newState New state of KARTE action
|
1241
|
-
* @returns {void|Promise<void>}
|
1385
|
+
* @param fn - 呼び出されるフック関数
|
1386
|
+
*
|
1387
|
+
* @public
|
1242
1388
|
*/
|
1243
|
-
fn) {
|
1389
|
+
function onChangeState(fn) {
|
1244
1390
|
let { onChangeStateHandlers } = getInternalHandlers();
|
1245
1391
|
if (!onChangeStateHandlers) {
|
1246
1392
|
onChangeStateHandlers = [];
|
@@ -1265,7 +1411,9 @@ const h = (type, props, ...children) => {
|
|
1265
1411
|
return el;
|
1266
1412
|
};
|
1267
1413
|
/**
|
1268
|
-
*
|
1414
|
+
* create a fog element
|
1415
|
+
*
|
1416
|
+
* @deprecated 非推奨
|
1269
1417
|
*/
|
1270
1418
|
function createFog({ color = '#000', opacity = '50%', zIndex = 999, onclick, }) {
|
1271
1419
|
const root = ensureModalRoot(false);
|
@@ -1319,9 +1467,11 @@ function getActionShadowRoot() {
|
|
1319
1467
|
return root.shadowRoot;
|
1320
1468
|
}
|
1321
1469
|
/**
|
1322
|
-
*
|
1470
|
+
* KARTE アクションに CSS を適用する
|
1471
|
+
*
|
1472
|
+
* @param css - 適用する CSS
|
1323
1473
|
*
|
1324
|
-
* @
|
1474
|
+
* @returns 適用された style 要素を返す Promise
|
1325
1475
|
*/
|
1326
1476
|
async function applyCss(css) {
|
1327
1477
|
return new Promise((resolve, reject) => {
|
@@ -1359,9 +1509,9 @@ async function fixFontFaceIssue(href, cssRules) {
|
|
1359
1509
|
return [rules.join('\n'), fixedRules.join('\n')];
|
1360
1510
|
}
|
1361
1511
|
/**
|
1362
|
-
*
|
1512
|
+
* KARTE アクションにグローバルなスタイルをロードする
|
1363
1513
|
*
|
1364
|
-
* @param
|
1514
|
+
* @param href - style ファイルのリンク先 URL
|
1365
1515
|
*/
|
1366
1516
|
async function loadStyle(href) {
|
1367
1517
|
const sr = getActionShadowRoot();
|
@@ -1401,12 +1551,13 @@ const show = showAction; // deprecated
|
|
1401
1551
|
const close = closeAction; // deprecated
|
1402
1552
|
/**
|
1403
1553
|
* Create an application instance
|
1404
|
-
* @deprecated
|
1405
1554
|
*
|
1406
1555
|
* @param App - An entry point of svelte component.
|
1407
1556
|
* @param options - An {@link AppOptions | options}
|
1408
1557
|
*
|
1409
|
-
* @
|
1558
|
+
* @returns A function to close the modal
|
1559
|
+
*
|
1560
|
+
* @deprecated 非推奨
|
1410
1561
|
*/
|
1411
1562
|
function createApp(App, options = {
|
1412
1563
|
send: () => { },
|
@@ -1529,8 +1680,10 @@ onDestroy(() => {
|
|
1529
1680
|
/**
|
1530
1681
|
* 変数を設定する
|
1531
1682
|
*
|
1532
|
-
* @param
|
1533
|
-
* @param
|
1683
|
+
* @param name - 変数名
|
1684
|
+
* @param value - 変数値
|
1685
|
+
*
|
1686
|
+
* @public
|
1534
1687
|
*/
|
1535
1688
|
function setVal(name, value) {
|
1536
1689
|
customVariables.update(current => {
|
@@ -1546,19 +1699,23 @@ function setVal(name, value) {
|
|
1546
1699
|
/**
|
1547
1700
|
* 変数を取得する
|
1548
1701
|
*
|
1549
|
-
* @param
|
1702
|
+
* @param name - 変数名
|
1550
1703
|
*
|
1551
|
-
* @returns
|
1704
|
+
* @returns 変数値
|
1705
|
+
*
|
1706
|
+
* @public
|
1552
1707
|
*/
|
1553
1708
|
function getVal(name) {
|
1554
1709
|
const cv = getCustomVariables();
|
1555
1710
|
return cv[name];
|
1556
1711
|
}
|
1557
1712
|
/**
|
1558
|
-
*
|
1713
|
+
* 変数が変更されたときに実行されるコールバック関数を設定する
|
1714
|
+
*
|
1715
|
+
* @param name - 変数名
|
1716
|
+
* @param callback - コールバック関数
|
1559
1717
|
*
|
1560
|
-
* @
|
1561
|
-
* @param {ChangeValCallback} callback コールバック
|
1718
|
+
* @public
|
1562
1719
|
*/
|
1563
1720
|
function onChangeVal(name, callback) {
|
1564
1721
|
if (!valCallbacks[name]) {
|
@@ -1567,10 +1724,12 @@ function onChangeVal(name, callback) {
|
|
1567
1724
|
valCallbacks[name].push(callback);
|
1568
1725
|
}
|
1569
1726
|
/**
|
1570
|
-
* WEB
|
1727
|
+
* WEBのイベントが発生したときに実行されるコールバック関数を設定する
|
1571
1728
|
*
|
1572
|
-
* @param
|
1573
|
-
* @param
|
1729
|
+
* @param name - WEBのイベント名
|
1730
|
+
* @param callback - コールバック関数
|
1731
|
+
*
|
1732
|
+
* @public
|
1574
1733
|
*/
|
1575
1734
|
function method(name, callback) {
|
1576
1735
|
window.addEventListener(name, callback);
|
@@ -1580,10 +1739,12 @@ function method(name, callback) {
|
|
1580
1739
|
eventCallbacks[name].push(callback);
|
1581
1740
|
}
|
1582
1741
|
/**
|
1583
|
-
* Widget
|
1742
|
+
* Widgetのイベントが発生したときに実行されるコールバック関数を設定する
|
1743
|
+
*
|
1744
|
+
* @param name - Widgetのイベント名
|
1745
|
+
* @param callback - コールバック関数
|
1584
1746
|
*
|
1585
|
-
* @
|
1586
|
-
* @param {EventCallback} callback コールバック
|
1747
|
+
* @public
|
1587
1748
|
*/
|
1588
1749
|
function on(name, callback) {
|
1589
1750
|
let onCallback;
|
@@ -1619,7 +1780,9 @@ function on(name, callback) {
|
|
1619
1780
|
/**
|
1620
1781
|
* 現在のステートを設定する
|
1621
1782
|
*
|
1622
|
-
* @param
|
1783
|
+
* @param stateId - ステートID
|
1784
|
+
*
|
1785
|
+
* @public
|
1623
1786
|
*/
|
1624
1787
|
function setState(stateId) {
|
1625
1788
|
const stateIds = getStates();
|
@@ -1630,7 +1793,9 @@ function setState(stateId) {
|
|
1630
1793
|
/**
|
1631
1794
|
* 現在のステートを取得する
|
1632
1795
|
*
|
1633
|
-
* @
|
1796
|
+
* @returns ステートID
|
1797
|
+
*
|
1798
|
+
* @public
|
1634
1799
|
*/
|
1635
1800
|
function getState() {
|
1636
1801
|
return getState$1();
|
@@ -1638,8 +1803,10 @@ function getState() {
|
|
1638
1803
|
/**
|
1639
1804
|
* ページ内の変数を設定する
|
1640
1805
|
*
|
1641
|
-
* @param
|
1642
|
-
* @param
|
1806
|
+
* @param key - 変数のキー
|
1807
|
+
* @param value - 変数値
|
1808
|
+
*
|
1809
|
+
* @public
|
1643
1810
|
*/
|
1644
1811
|
function setMemoryStore(key, value) {
|
1645
1812
|
memoryStore[key] = value;
|
@@ -1647,8 +1814,11 @@ function setMemoryStore(key, value) {
|
|
1647
1814
|
/**
|
1648
1815
|
* ページ内の変数を取定する
|
1649
1816
|
*
|
1650
|
-
* @param
|
1651
|
-
*
|
1817
|
+
* @param key - 変数のキー
|
1818
|
+
*
|
1819
|
+
* @returns 変数
|
1820
|
+
*
|
1821
|
+
* @public
|
1652
1822
|
*/
|
1653
1823
|
function getMemoryStore(key) {
|
1654
1824
|
return memoryStore[key];
|
@@ -1656,8 +1826,10 @@ function getMemoryStore(key) {
|
|
1656
1826
|
/**
|
1657
1827
|
* ページをまたぐ変数を設定する
|
1658
1828
|
*
|
1659
|
-
* @param
|
1660
|
-
* @param
|
1829
|
+
* @param key - 変数のキー
|
1830
|
+
* @param value - 変数値
|
1831
|
+
*
|
1832
|
+
* @public
|
1661
1833
|
*/
|
1662
1834
|
function setLocalStore(key, value, options = { expire: false }) {
|
1663
1835
|
const item = {
|
@@ -1672,8 +1844,11 @@ function setLocalStore(key, value, options = { expire: false }) {
|
|
1672
1844
|
/**
|
1673
1845
|
* ページをまたぐ変数を取得設定する
|
1674
1846
|
*
|
1675
|
-
* @param
|
1676
|
-
*
|
1847
|
+
* @param key - 変数のキー
|
1848
|
+
*
|
1849
|
+
* @returns 変数
|
1850
|
+
*
|
1851
|
+
* @public
|
1677
1852
|
*/
|
1678
1853
|
function getLocalStore(key) {
|
1679
1854
|
const lsKey = STORE_LS_KEY_PREFIX + key;
|
@@ -1705,8 +1880,9 @@ const storage = {
|
|
1705
1880
|
/**
|
1706
1881
|
* アクションテーブルを操作するオブジェクト
|
1707
1882
|
*
|
1708
|
-
* @param
|
1709
|
-
*
|
1883
|
+
* @param table - アクションテーブル名
|
1884
|
+
*
|
1885
|
+
* @public
|
1710
1886
|
*/
|
1711
1887
|
function collection(table) {
|
1712
1888
|
const systemConfig = getSystem();
|
@@ -1731,20 +1907,20 @@ var widget = /*#__PURE__*/Object.freeze({
|
|
1731
1907
|
|
1732
1908
|
/* src/components/Normalize.svelte generated by Svelte v3.53.1 */
|
1733
1909
|
|
1734
|
-
function add_css$
|
1910
|
+
function add_css$n(target) {
|
1735
1911
|
append_styles(target, "svelte-tr4qnr", "@import 'https://esm.sh/normalize.css';");
|
1736
1912
|
}
|
1737
1913
|
|
1738
1914
|
class Normalize extends SvelteComponent {
|
1739
1915
|
constructor(options) {
|
1740
1916
|
super();
|
1741
|
-
init(this, options, null, null, safe_not_equal, {}, add_css$
|
1917
|
+
init(this, options, null, null, safe_not_equal, {}, add_css$n);
|
1742
1918
|
}
|
1743
1919
|
}
|
1744
1920
|
|
1745
1921
|
/* src/components/State.svelte generated by Svelte v3.53.1 */
|
1746
1922
|
|
1747
|
-
function create_fragment$
|
1923
|
+
function create_fragment$r(ctx) {
|
1748
1924
|
let normalize;
|
1749
1925
|
let t;
|
1750
1926
|
let current;
|
@@ -1803,7 +1979,7 @@ function create_fragment$q(ctx) {
|
|
1803
1979
|
};
|
1804
1980
|
}
|
1805
1981
|
|
1806
|
-
function instance$
|
1982
|
+
function instance$r($$self, $$props, $$invalidate) {
|
1807
1983
|
let { $$slots: slots = {}, $$scope } = $$props;
|
1808
1984
|
|
1809
1985
|
$$self.$$set = $$props => {
|
@@ -1816,13 +1992,13 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
1816
1992
|
class State extends SvelteComponent {
|
1817
1993
|
constructor(options) {
|
1818
1994
|
super();
|
1819
|
-
init(this, options, instance$
|
1995
|
+
init(this, options, instance$r, create_fragment$r, safe_not_equal, {});
|
1820
1996
|
}
|
1821
1997
|
}
|
1822
1998
|
|
1823
1999
|
/* src/components/StateItem.svelte generated by Svelte v3.53.1 */
|
1824
2000
|
|
1825
|
-
function add_css$
|
2001
|
+
function add_css$m(target) {
|
1826
2002
|
append_styles(target, "svelte-2qb6dm", ".state-item.svelte-2qb6dm{position:absolute;display:none}");
|
1827
2003
|
}
|
1828
2004
|
|
@@ -1889,7 +2065,7 @@ function create_if_block$4(ctx) {
|
|
1889
2065
|
};
|
1890
2066
|
}
|
1891
2067
|
|
1892
|
-
function create_fragment$
|
2068
|
+
function create_fragment$q(ctx) {
|
1893
2069
|
let if_block_anchor;
|
1894
2070
|
let current;
|
1895
2071
|
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$4(ctx);
|
@@ -1950,7 +2126,7 @@ function getStateItemContext() {
|
|
1950
2126
|
return getContext(STATE_ITEM_CONTEXT_KEY);
|
1951
2127
|
}
|
1952
2128
|
|
1953
|
-
function instance$
|
2129
|
+
function instance$q($$self, $$props, $$invalidate) {
|
1954
2130
|
let $state;
|
1955
2131
|
component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
|
1956
2132
|
let { $$slots: slots = {}, $$scope } = $$props;
|
@@ -1976,13 +2152,13 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
1976
2152
|
class StateItem extends SvelteComponent {
|
1977
2153
|
constructor(options) {
|
1978
2154
|
super();
|
1979
|
-
init(this, options, instance$
|
2155
|
+
init(this, options, instance$q, create_fragment$q, safe_not_equal, { path: 0 }, add_css$m);
|
1980
2156
|
}
|
1981
2157
|
}
|
1982
2158
|
|
1983
2159
|
/* src/components/BackgroundOverray.svelte generated by Svelte v3.53.1 */
|
1984
2160
|
|
1985
|
-
function add_css$
|
2161
|
+
function add_css$l(target) {
|
1986
2162
|
append_styles(target, "svelte-1d4fta", ".background.svelte-1d4fta{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
|
1987
2163
|
}
|
1988
2164
|
|
@@ -2014,7 +2190,7 @@ function create_if_block$3(ctx) {
|
|
2014
2190
|
};
|
2015
2191
|
}
|
2016
2192
|
|
2017
|
-
function create_fragment$
|
2193
|
+
function create_fragment$p(ctx) {
|
2018
2194
|
let if_block_anchor;
|
2019
2195
|
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$3(ctx);
|
2020
2196
|
|
@@ -2050,7 +2226,7 @@ function create_fragment$o(ctx) {
|
|
2050
2226
|
};
|
2051
2227
|
}
|
2052
2228
|
|
2053
|
-
function instance$
|
2229
|
+
function instance$p($$self, $$props, $$invalidate) {
|
2054
2230
|
let { backgroundOverray = false } = $$props;
|
2055
2231
|
const dispatch = createEventDispatcher();
|
2056
2232
|
const click_handler = () => dispatch('click');
|
@@ -2065,13 +2241,13 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
2065
2241
|
class BackgroundOverray extends SvelteComponent {
|
2066
2242
|
constructor(options) {
|
2067
2243
|
super();
|
2068
|
-
init(this, options, instance$
|
2244
|
+
init(this, options, instance$p, create_fragment$p, safe_not_equal, { backgroundOverray: 0 }, add_css$l);
|
2069
2245
|
}
|
2070
2246
|
}
|
2071
2247
|
|
2072
2248
|
/* src/components/Modal.svelte generated by Svelte v3.53.1 */
|
2073
2249
|
|
2074
|
-
function add_css$
|
2250
|
+
function add_css$k(target) {
|
2075
2251
|
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}");
|
2076
2252
|
}
|
2077
2253
|
|
@@ -2252,7 +2428,7 @@ function create_if_block_1(ctx) {
|
|
2252
2428
|
};
|
2253
2429
|
}
|
2254
2430
|
|
2255
|
-
function create_fragment$
|
2431
|
+
function create_fragment$o(ctx) {
|
2256
2432
|
let backgroundoverray;
|
2257
2433
|
let t;
|
2258
2434
|
let if_block_anchor;
|
@@ -2345,7 +2521,7 @@ function create_fragment$n(ctx) {
|
|
2345
2521
|
};
|
2346
2522
|
}
|
2347
2523
|
|
2348
|
-
function instance$
|
2524
|
+
function instance$o($$self, $$props, $$invalidate) {
|
2349
2525
|
let click;
|
2350
2526
|
let close;
|
2351
2527
|
let closable;
|
@@ -2533,8 +2709,8 @@ class Modal extends SvelteComponent {
|
|
2533
2709
|
init(
|
2534
2710
|
this,
|
2535
2711
|
options,
|
2536
|
-
instance$
|
2537
|
-
create_fragment$
|
2712
|
+
instance$o,
|
2713
|
+
create_fragment$o,
|
2538
2714
|
safe_not_equal,
|
2539
2715
|
{
|
2540
2716
|
onClick: 17,
|
@@ -2550,14 +2726,14 @@ class Modal extends SvelteComponent {
|
|
2550
2726
|
closeButtonColor: 2,
|
2551
2727
|
_closeStyle: 3
|
2552
2728
|
},
|
2553
|
-
add_css$
|
2729
|
+
add_css$k
|
2554
2730
|
);
|
2555
2731
|
}
|
2556
2732
|
}
|
2557
2733
|
|
2558
2734
|
/* src/components/Grid.svelte generated by Svelte v3.53.1 */
|
2559
2735
|
|
2560
|
-
function create_fragment$
|
2736
|
+
function create_fragment$n(ctx) {
|
2561
2737
|
let div;
|
2562
2738
|
let current;
|
2563
2739
|
const default_slot_template = /*#slots*/ ctx[8].default;
|
@@ -2615,7 +2791,7 @@ function create_fragment$m(ctx) {
|
|
2615
2791
|
};
|
2616
2792
|
}
|
2617
2793
|
|
2618
|
-
function instance$
|
2794
|
+
function instance$n($$self, $$props, $$invalidate) {
|
2619
2795
|
let _style;
|
2620
2796
|
let { $$slots: slots = {}, $$scope } = $$props;
|
2621
2797
|
let { width = '512px' } = $$props;
|
@@ -2660,7 +2836,7 @@ class Grid extends SvelteComponent {
|
|
2660
2836
|
constructor(options) {
|
2661
2837
|
super();
|
2662
2838
|
|
2663
|
-
init(this, options, instance$
|
2839
|
+
init(this, options, instance$n, create_fragment$n, safe_not_equal, {
|
2664
2840
|
width: 1,
|
2665
2841
|
height: 2,
|
2666
2842
|
rows: 3,
|
@@ -2842,7 +3018,7 @@ function create_default_slot(ctx) {
|
|
2842
3018
|
};
|
2843
3019
|
}
|
2844
3020
|
|
2845
|
-
function create_fragment$
|
3021
|
+
function create_fragment$m(ctx) {
|
2846
3022
|
let stateitem;
|
2847
3023
|
let current;
|
2848
3024
|
|
@@ -2887,7 +3063,7 @@ function create_fragment$l(ctx) {
|
|
2887
3063
|
};
|
2888
3064
|
}
|
2889
3065
|
|
2890
|
-
function instance$
|
3066
|
+
function instance$m($$self, $$props, $$invalidate) {
|
2891
3067
|
let { $$slots: slots = {}, $$scope } = $$props;
|
2892
3068
|
let { path } = $$props;
|
2893
3069
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
@@ -2958,7 +3134,7 @@ class GridModalState extends SvelteComponent {
|
|
2958
3134
|
constructor(options) {
|
2959
3135
|
super();
|
2960
3136
|
|
2961
|
-
init(this, options, instance$
|
3137
|
+
init(this, options, instance$m, create_fragment$m, safe_not_equal, {
|
2962
3138
|
path: 0,
|
2963
3139
|
onClick: 1,
|
2964
3140
|
clickEventName: 2,
|
@@ -2983,11 +3159,11 @@ class GridModalState extends SvelteComponent {
|
|
2983
3159
|
|
2984
3160
|
/* src/components/GridItem.svelte generated by Svelte v3.53.1 */
|
2985
3161
|
|
2986
|
-
function add_css$
|
3162
|
+
function add_css$j(target) {
|
2987
3163
|
append_styles(target, "svelte-n7kdl3", ".grid-item.svelte-n7kdl3{word-break:break-all;position:relative}.grid-item-inner.svelte-n7kdl3{position:absolute;inset:0}");
|
2988
3164
|
}
|
2989
3165
|
|
2990
|
-
function create_fragment$
|
3166
|
+
function create_fragment$l(ctx) {
|
2991
3167
|
let div1;
|
2992
3168
|
let div0;
|
2993
3169
|
let current;
|
@@ -3050,7 +3226,7 @@ function create_fragment$k(ctx) {
|
|
3050
3226
|
};
|
3051
3227
|
}
|
3052
3228
|
|
3053
|
-
function instance$
|
3229
|
+
function instance$l($$self, $$props, $$invalidate) {
|
3054
3230
|
let _style;
|
3055
3231
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3056
3232
|
let { x1 } = $$props;
|
@@ -3103,8 +3279,8 @@ class GridItem extends SvelteComponent {
|
|
3103
3279
|
init(
|
3104
3280
|
this,
|
3105
3281
|
options,
|
3106
|
-
instance$
|
3107
|
-
create_fragment$
|
3282
|
+
instance$l,
|
3283
|
+
create_fragment$l,
|
3108
3284
|
safe_not_equal,
|
3109
3285
|
{
|
3110
3286
|
x1: 2,
|
@@ -3114,18 +3290,18 @@ class GridItem extends SvelteComponent {
|
|
3114
3290
|
z: 6,
|
3115
3291
|
background: 7
|
3116
3292
|
},
|
3117
|
-
add_css$
|
3293
|
+
add_css$j
|
3118
3294
|
);
|
3119
3295
|
}
|
3120
3296
|
}
|
3121
3297
|
|
3122
3298
|
/* src/components/Flex.svelte generated by Svelte v3.53.1 */
|
3123
3299
|
|
3124
|
-
function add_css$
|
3300
|
+
function add_css$i(target) {
|
3125
3301
|
append_styles(target, "svelte-1e71ejc", ".flex.svelte-1e71ejc{display:flex}");
|
3126
3302
|
}
|
3127
3303
|
|
3128
|
-
function create_fragment$
|
3304
|
+
function create_fragment$k(ctx) {
|
3129
3305
|
let div;
|
3130
3306
|
let div_style_value;
|
3131
3307
|
let current;
|
@@ -3190,7 +3366,7 @@ function getFlexContext() {
|
|
3190
3366
|
return getContext(FlexContextKey);
|
3191
3367
|
}
|
3192
3368
|
|
3193
|
-
function instance$
|
3369
|
+
function instance$k($$self, $$props, $$invalidate) {
|
3194
3370
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3195
3371
|
let { direction = 'row' } = $$props;
|
3196
3372
|
let { width = '100%' } = $$props;
|
@@ -3216,8 +3392,8 @@ class Flex extends SvelteComponent {
|
|
3216
3392
|
init(
|
3217
3393
|
this,
|
3218
3394
|
options,
|
3219
|
-
instance$
|
3220
|
-
create_fragment$
|
3395
|
+
instance$k,
|
3396
|
+
create_fragment$k,
|
3221
3397
|
safe_not_equal,
|
3222
3398
|
{
|
3223
3399
|
direction: 0,
|
@@ -3225,18 +3401,18 @@ class Flex extends SvelteComponent {
|
|
3225
3401
|
height: 2,
|
3226
3402
|
_style: 3
|
3227
3403
|
},
|
3228
|
-
add_css$
|
3404
|
+
add_css$i
|
3229
3405
|
);
|
3230
3406
|
}
|
3231
3407
|
}
|
3232
3408
|
|
3233
3409
|
/* src/components/FlexItem.svelte generated by Svelte v3.53.1 */
|
3234
3410
|
|
3235
|
-
function add_css$
|
3411
|
+
function add_css$h(target) {
|
3236
3412
|
append_styles(target, "svelte-1p0bk1x", ".flex-item.svelte-1p0bk1x{max-width:100%;max-height:100%;position:relative;isolation:isolate}");
|
3237
3413
|
}
|
3238
3414
|
|
3239
|
-
function create_fragment$
|
3415
|
+
function create_fragment$j(ctx) {
|
3240
3416
|
let div;
|
3241
3417
|
let current;
|
3242
3418
|
const default_slot_template = /*#slots*/ ctx[4].default;
|
@@ -3294,7 +3470,7 @@ function create_fragment$i(ctx) {
|
|
3294
3470
|
};
|
3295
3471
|
}
|
3296
3472
|
|
3297
|
-
function instance$
|
3473
|
+
function instance$j($$self, $$props, $$invalidate) {
|
3298
3474
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3299
3475
|
let { length } = $$props;
|
3300
3476
|
let { _style = '' } = $$props;
|
@@ -3337,13 +3513,13 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
3337
3513
|
class FlexItem extends SvelteComponent {
|
3338
3514
|
constructor(options) {
|
3339
3515
|
super();
|
3340
|
-
init(this, options, instance$
|
3516
|
+
init(this, options, instance$j, create_fragment$j, safe_not_equal, { length: 1, _style: 2 }, add_css$h);
|
3341
3517
|
}
|
3342
3518
|
}
|
3343
3519
|
|
3344
3520
|
/* src/components/RenderText.svelte generated by Svelte v3.53.1 */
|
3345
3521
|
|
3346
|
-
function get_each_context$
|
3522
|
+
function get_each_context$3(ctx, list, i) {
|
3347
3523
|
const child_ctx = ctx.slice();
|
3348
3524
|
child_ctx[2] = list[i];
|
3349
3525
|
return child_ctx;
|
@@ -3389,7 +3565,7 @@ function create_if_block$1(ctx) {
|
|
3389
3565
|
}
|
3390
3566
|
|
3391
3567
|
// (9:0) {#each items as item}
|
3392
|
-
function create_each_block$
|
3568
|
+
function create_each_block$3(ctx) {
|
3393
3569
|
let show_if;
|
3394
3570
|
let if_block_anchor;
|
3395
3571
|
|
@@ -3432,13 +3608,13 @@ function create_each_block$2(ctx) {
|
|
3432
3608
|
};
|
3433
3609
|
}
|
3434
3610
|
|
3435
|
-
function create_fragment$
|
3611
|
+
function create_fragment$i(ctx) {
|
3436
3612
|
let each_1_anchor;
|
3437
3613
|
let each_value = /*items*/ ctx[0];
|
3438
3614
|
let each_blocks = [];
|
3439
3615
|
|
3440
3616
|
for (let i = 0; i < each_value.length; i += 1) {
|
3441
|
-
each_blocks[i] = create_each_block$
|
3617
|
+
each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
|
3442
3618
|
}
|
3443
3619
|
|
3444
3620
|
return {
|
@@ -3462,12 +3638,12 @@ function create_fragment$h(ctx) {
|
|
3462
3638
|
let i;
|
3463
3639
|
|
3464
3640
|
for (i = 0; i < each_value.length; i += 1) {
|
3465
|
-
const child_ctx = get_each_context$
|
3641
|
+
const child_ctx = get_each_context$3(ctx, each_value, i);
|
3466
3642
|
|
3467
3643
|
if (each_blocks[i]) {
|
3468
3644
|
each_blocks[i].p(child_ctx, dirty);
|
3469
3645
|
} else {
|
3470
|
-
each_blocks[i] = create_each_block$
|
3646
|
+
each_blocks[i] = create_each_block$3(child_ctx);
|
3471
3647
|
each_blocks[i].c();
|
3472
3648
|
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
3473
3649
|
}
|
@@ -3491,7 +3667,7 @@ function create_fragment$h(ctx) {
|
|
3491
3667
|
|
3492
3668
|
const regexp = /(\r?\n)/;
|
3493
3669
|
|
3494
|
-
function instance$
|
3670
|
+
function instance$i($$self, $$props, $$invalidate) {
|
3495
3671
|
let items;
|
3496
3672
|
let { text = 'サンプルSample' } = $$props;
|
3497
3673
|
|
@@ -3511,17 +3687,17 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
3511
3687
|
class RenderText extends SvelteComponent {
|
3512
3688
|
constructor(options) {
|
3513
3689
|
super();
|
3514
|
-
init(this, options, instance$
|
3690
|
+
init(this, options, instance$i, create_fragment$i, safe_not_equal, { text: 1 });
|
3515
3691
|
}
|
3516
3692
|
}
|
3517
3693
|
|
3518
3694
|
/* src/components/TextElement.svelte generated by Svelte v3.53.1 */
|
3519
3695
|
|
3520
|
-
function add_css$
|
3696
|
+
function add_css$g(target) {
|
3521
3697
|
append_styles(target, "svelte-9en2jg", ".text-element.svelte-9en2jg.svelte-9en2jg{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;overflow:auto}.text-element-inner.svelte-9en2jg.svelte-9en2jg{width:100%;height:auto}.text-direction-vertical.svelte-9en2jg.svelte-9en2jg{writing-mode:vertical-rl}.text-direction-vertical.svelte-9en2jg .text-element-inner.svelte-9en2jg{width:auto;height:100%}");
|
3522
3698
|
}
|
3523
3699
|
|
3524
|
-
function create_fragment$
|
3700
|
+
function create_fragment$h(ctx) {
|
3525
3701
|
let div1;
|
3526
3702
|
let div0;
|
3527
3703
|
let rendertext;
|
@@ -3573,7 +3749,7 @@ function create_fragment$g(ctx) {
|
|
3573
3749
|
};
|
3574
3750
|
}
|
3575
3751
|
|
3576
|
-
function instance$
|
3752
|
+
function instance$h($$self, $$props, $$invalidate) {
|
3577
3753
|
let style;
|
3578
3754
|
let { text = 'サンプルSample' } = $$props;
|
3579
3755
|
let { _textStyle = 'font-size:12px;' } = $$props;
|
@@ -3603,8 +3779,8 @@ class TextElement extends SvelteComponent {
|
|
3603
3779
|
init(
|
3604
3780
|
this,
|
3605
3781
|
options,
|
3606
|
-
instance$
|
3607
|
-
create_fragment$
|
3782
|
+
instance$h,
|
3783
|
+
create_fragment$h,
|
3608
3784
|
safe_not_equal,
|
3609
3785
|
{
|
3610
3786
|
text: 0,
|
@@ -3612,18 +3788,18 @@ class TextElement extends SvelteComponent {
|
|
3612
3788
|
textDirection: 1,
|
3613
3789
|
_style: 4
|
3614
3790
|
},
|
3615
|
-
add_css$
|
3791
|
+
add_css$g
|
3616
3792
|
);
|
3617
3793
|
}
|
3618
3794
|
}
|
3619
3795
|
|
3620
3796
|
/* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
|
3621
3797
|
|
3622
|
-
function add_css$
|
3798
|
+
function add_css$f(target) {
|
3623
3799
|
append_styles(target, "svelte-tx5xf5", ".text-button-element.svelte-tx5xf5{width:100%;height:100%}.text-button.svelte-tx5xf5{display:flex;justify-content:center;align-items:center;width:100%;height:100%;background-color:transparent;border:none;box-shadow:transparent;box-sizing:border-box;cursor:pointer;transition:box-shadow 0.2s;white-space:pre-wrap;overflow:hidden}.text-button.svelte-tx5xf5:active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button.svelte-tx5xf5:hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
|
3624
3800
|
}
|
3625
3801
|
|
3626
|
-
function create_fragment$
|
3802
|
+
function create_fragment$g(ctx) {
|
3627
3803
|
let div;
|
3628
3804
|
let button;
|
3629
3805
|
let rendertext;
|
@@ -3684,7 +3860,7 @@ function create_fragment$f(ctx) {
|
|
3684
3860
|
};
|
3685
3861
|
}
|
3686
3862
|
|
3687
|
-
function instance$
|
3863
|
+
function instance$g($$self, $$props, $$invalidate) {
|
3688
3864
|
let { text = 'ボタンラベル' } = $$props;
|
3689
3865
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
3690
3866
|
|
@@ -3718,8 +3894,8 @@ class TextButtonElement extends SvelteComponent {
|
|
3718
3894
|
init(
|
3719
3895
|
this,
|
3720
3896
|
options,
|
3721
|
-
instance$
|
3722
|
-
create_fragment$
|
3897
|
+
instance$g,
|
3898
|
+
create_fragment$g,
|
3723
3899
|
safe_not_equal,
|
3724
3900
|
{
|
3725
3901
|
text: 0,
|
@@ -3728,18 +3904,18 @@ class TextButtonElement extends SvelteComponent {
|
|
3728
3904
|
_buttonStyle: 1,
|
3729
3905
|
_style: 2
|
3730
3906
|
},
|
3731
|
-
add_css$
|
3907
|
+
add_css$f
|
3732
3908
|
);
|
3733
3909
|
}
|
3734
3910
|
}
|
3735
3911
|
|
3736
3912
|
/* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
|
3737
3913
|
|
3738
|
-
function add_css$
|
3914
|
+
function add_css$e(target) {
|
3739
3915
|
append_styles(target, "svelte-t8kpqw", ".image-element.svelte-t8kpqw{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;overflow:hidden}.image.svelte-t8kpqw{width:100%;height:100%}.transport.svelte-t8kpqw:hover,.transport.svelte-t8kpqw:focus{opacity:0.75;box-shadow:0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.16)}");
|
3740
3916
|
}
|
3741
3917
|
|
3742
|
-
function create_fragment$
|
3918
|
+
function create_fragment$f(ctx) {
|
3743
3919
|
let div;
|
3744
3920
|
let img;
|
3745
3921
|
let img_src_value;
|
@@ -3801,7 +3977,7 @@ function create_fragment$e(ctx) {
|
|
3801
3977
|
};
|
3802
3978
|
}
|
3803
3979
|
|
3804
|
-
function instance$
|
3980
|
+
function instance$f($$self, $$props, $$invalidate) {
|
3805
3981
|
let { src = 'https://admin.karte.io/action-editor2/public/images/no_image_en.svg' } = $$props;
|
3806
3982
|
let { alt = 'No Image' } = $$props;
|
3807
3983
|
let { transport = false } = $$props;
|
@@ -3839,8 +4015,8 @@ class ImageElement extends SvelteComponent {
|
|
3839
4015
|
init(
|
3840
4016
|
this,
|
3841
4017
|
options,
|
3842
|
-
instance$
|
3843
|
-
create_fragment$
|
4018
|
+
instance$f,
|
4019
|
+
create_fragment$f,
|
3844
4020
|
safe_not_equal,
|
3845
4021
|
{
|
3846
4022
|
src: 0,
|
@@ -3851,18 +4027,18 @@ class ImageElement extends SvelteComponent {
|
|
3851
4027
|
_imageStyle: 3,
|
3852
4028
|
_style: 4
|
3853
4029
|
},
|
3854
|
-
add_css$
|
4030
|
+
add_css$e
|
3855
4031
|
);
|
3856
4032
|
}
|
3857
4033
|
}
|
3858
4034
|
|
3859
4035
|
/* src/components/List.svelte generated by Svelte v3.53.1 */
|
3860
4036
|
|
3861
|
-
function add_css$
|
4037
|
+
function add_css$d(target) {
|
3862
4038
|
append_styles(target, "svelte-dfqtyx", ".list.svelte-dfqtyx{display:flex;width:100%;height:100%;overflow:hidden}");
|
3863
4039
|
}
|
3864
4040
|
|
3865
|
-
function create_fragment$
|
4041
|
+
function create_fragment$e(ctx) {
|
3866
4042
|
let div;
|
3867
4043
|
let current;
|
3868
4044
|
const default_slot_template = /*#slots*/ ctx[6].default;
|
@@ -3922,7 +4098,7 @@ function create_fragment$d(ctx) {
|
|
3922
4098
|
|
3923
4099
|
const LIST_CONTEXT_KEY = Symbol();
|
3924
4100
|
|
3925
|
-
function instance$
|
4101
|
+
function instance$e($$self, $$props, $$invalidate) {
|
3926
4102
|
let style;
|
3927
4103
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3928
4104
|
let { direction = 'vertical' } = $$props;
|
@@ -3989,8 +4165,8 @@ class List extends SvelteComponent {
|
|
3989
4165
|
init(
|
3990
4166
|
this,
|
3991
4167
|
options,
|
3992
|
-
instance$
|
3993
|
-
create_fragment$
|
4168
|
+
instance$e,
|
4169
|
+
create_fragment$e,
|
3994
4170
|
safe_not_equal,
|
3995
4171
|
{
|
3996
4172
|
direction: 1,
|
@@ -3998,18 +4174,18 @@ class List extends SvelteComponent {
|
|
3998
4174
|
background: 3,
|
3999
4175
|
_style: 4
|
4000
4176
|
},
|
4001
|
-
add_css$
|
4177
|
+
add_css$d
|
4002
4178
|
);
|
4003
4179
|
}
|
4004
4180
|
}
|
4005
4181
|
|
4006
4182
|
/* src/components/ListItem.svelte generated by Svelte v3.53.1 */
|
4007
4183
|
|
4008
|
-
function add_css$
|
4184
|
+
function add_css$c(target) {
|
4009
4185
|
append_styles(target, "svelte-h5j4xe", ".list-item.svelte-h5j4xe{flex:auto;box-sizing:border-box;min-width:0;min-height:0;position:relative}.list-item-inner.svelte-h5j4xe{position:absolute;inset:0}");
|
4010
4186
|
}
|
4011
4187
|
|
4012
|
-
function create_fragment$
|
4188
|
+
function create_fragment$d(ctx) {
|
4013
4189
|
let div1;
|
4014
4190
|
let div0;
|
4015
4191
|
let current;
|
@@ -4090,7 +4266,7 @@ function create_fragment$c(ctx) {
|
|
4090
4266
|
};
|
4091
4267
|
}
|
4092
4268
|
|
4093
|
-
function instance$
|
4269
|
+
function instance$d($$self, $$props, $$invalidate) {
|
4094
4270
|
let click;
|
4095
4271
|
let listItemStyle;
|
4096
4272
|
let { $$slots: slots = {}, $$scope } = $$props;
|
@@ -4180,17 +4356,17 @@ function instance$c($$self, $$props, $$invalidate) {
|
|
4180
4356
|
class ListItem extends SvelteComponent {
|
4181
4357
|
constructor(options) {
|
4182
4358
|
super();
|
4183
|
-
init(this, options, instance$
|
4359
|
+
init(this, options, instance$d, create_fragment$d, safe_not_equal, { onClick: 3, clickEventName: 4, _style: 0 }, add_css$c);
|
4184
4360
|
}
|
4185
4361
|
}
|
4186
4362
|
|
4187
4363
|
/* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
|
4188
4364
|
|
4189
|
-
function add_css$
|
4365
|
+
function add_css$b(target) {
|
4190
4366
|
append_styles(target, "svelte-k86zna", ".embed.svelte-k86zna{position:relative;box-shadow:0 1px rgba(0, 0, 0, 0.06);padding-top:56.25%;overflow:hidden}.embed.svelte-k86zna iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
|
4191
4367
|
}
|
4192
4368
|
|
4193
|
-
function create_fragment$
|
4369
|
+
function create_fragment$c(ctx) {
|
4194
4370
|
let div;
|
4195
4371
|
|
4196
4372
|
return {
|
@@ -4217,7 +4393,7 @@ function create_fragment$b(ctx) {
|
|
4217
4393
|
};
|
4218
4394
|
}
|
4219
4395
|
|
4220
|
-
function instance$
|
4396
|
+
function instance$c($$self, $$props, $$invalidate) {
|
4221
4397
|
let { code } = $$props;
|
4222
4398
|
let { _style = '' } = $$props;
|
4223
4399
|
|
@@ -4232,17 +4408,17 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
4232
4408
|
class EmbedElement extends SvelteComponent {
|
4233
4409
|
constructor(options) {
|
4234
4410
|
super();
|
4235
|
-
init(this, options, instance$
|
4411
|
+
init(this, options, instance$c, create_fragment$c, safe_not_equal, { code: 0, _style: 1 }, add_css$b);
|
4236
4412
|
}
|
4237
4413
|
}
|
4238
4414
|
|
4239
4415
|
/* src/components/MovieYouTubeElement.svelte generated by Svelte v3.53.1 */
|
4240
4416
|
|
4241
|
-
function add_css$
|
4417
|
+
function add_css$a(target) {
|
4242
4418
|
append_styles(target, "svelte-k86zna", ".embed.svelte-k86zna{position:relative;box-shadow:0 1px rgba(0, 0, 0, 0.06);padding-top:56.25%;overflow:hidden}.embed.svelte-k86zna iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
|
4243
4419
|
}
|
4244
4420
|
|
4245
|
-
function create_fragment$
|
4421
|
+
function create_fragment$b(ctx) {
|
4246
4422
|
let div1;
|
4247
4423
|
let div0;
|
4248
4424
|
|
@@ -4273,7 +4449,7 @@ function create_fragment$a(ctx) {
|
|
4273
4449
|
};
|
4274
4450
|
}
|
4275
4451
|
|
4276
|
-
function instance$
|
4452
|
+
function instance$b($$self, $$props, $$invalidate) {
|
4277
4453
|
let $system;
|
4278
4454
|
component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
|
4279
4455
|
let { videoId } = $$props;
|
@@ -4452,8 +4628,8 @@ class MovieYouTubeElement extends SvelteComponent {
|
|
4452
4628
|
init(
|
4453
4629
|
this,
|
4454
4630
|
options,
|
4455
|
-
instance$
|
4456
|
-
create_fragment$
|
4631
|
+
instance$b,
|
4632
|
+
create_fragment$b,
|
4457
4633
|
safe_not_equal,
|
4458
4634
|
{
|
4459
4635
|
videoId: 2,
|
@@ -4463,18 +4639,18 @@ class MovieYouTubeElement extends SvelteComponent {
|
|
4463
4639
|
mute: 6,
|
4464
4640
|
_style: 0
|
4465
4641
|
},
|
4466
|
-
add_css$
|
4642
|
+
add_css$a
|
4467
4643
|
);
|
4468
4644
|
}
|
4469
4645
|
}
|
4470
4646
|
|
4471
4647
|
/* src/components/MovieVimeoElement.svelte generated by Svelte v3.53.1 */
|
4472
4648
|
|
4473
|
-
function add_css$
|
4649
|
+
function add_css$9(target) {
|
4474
4650
|
append_styles(target, "svelte-5l33p2", ".embed.svelte-5l33p2{position:relative;box-shadow:0 1px rgba(0, 0, 0, 0.06);padding-top:56.25%;overflow:hidden}.embed.svelte-5l33p2 iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
|
4475
4651
|
}
|
4476
4652
|
|
4477
|
-
function create_fragment$
|
4653
|
+
function create_fragment$a(ctx) {
|
4478
4654
|
let div1;
|
4479
4655
|
let div0;
|
4480
4656
|
|
@@ -4505,7 +4681,7 @@ function create_fragment$9(ctx) {
|
|
4505
4681
|
};
|
4506
4682
|
}
|
4507
4683
|
|
4508
|
-
function instance$
|
4684
|
+
function instance$a($$self, $$props, $$invalidate) {
|
4509
4685
|
let $system;
|
4510
4686
|
component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
|
4511
4687
|
let { videoId } = $$props;
|
@@ -4648,8 +4824,8 @@ class MovieVimeoElement extends SvelteComponent {
|
|
4648
4824
|
init(
|
4649
4825
|
this,
|
4650
4826
|
options,
|
4651
|
-
instance$
|
4652
|
-
create_fragment$
|
4827
|
+
instance$a,
|
4828
|
+
create_fragment$a,
|
4653
4829
|
safe_not_equal,
|
4654
4830
|
{
|
4655
4831
|
videoId: 2,
|
@@ -4659,7 +4835,7 @@ class MovieVimeoElement extends SvelteComponent {
|
|
4659
4835
|
mute: 6,
|
4660
4836
|
_style: 0
|
4661
4837
|
},
|
4662
|
-
add_css$
|
4838
|
+
add_css$9
|
4663
4839
|
);
|
4664
4840
|
}
|
4665
4841
|
}
|
@@ -4701,7 +4877,7 @@ function registerInput({ name, statePath, validator = () => true, initialValue,
|
|
4701
4877
|
function deleteValues(statePath) {
|
4702
4878
|
formData.update(prev => {
|
4703
4879
|
const targetNames = Object.entries(prev)
|
4704
|
-
.filter(([_, { statePath: s }]) => s === statePath)
|
4880
|
+
.filter(([_, { statePath: s }]) => s === statePath) // eslint-disable-line @typescript-eslint/no-unused-vars
|
4705
4881
|
.map(([name]) => name);
|
4706
4882
|
targetNames.forEach(name => {
|
4707
4883
|
delete prev[name];
|
@@ -4713,8 +4889,8 @@ const getValuesAreValidReader = statePath => ({
|
|
4713
4889
|
subscribe(callback) {
|
4714
4890
|
return formData.subscribe(formData => {
|
4715
4891
|
const valuesAreValid = Object.entries(formData)
|
4716
|
-
.filter(([_, { statePath: s }]) => s === statePath)
|
4717
|
-
.every(([_, { isValid }]) => isValid);
|
4892
|
+
.filter(([_, { statePath: s }]) => s === statePath) // eslint-disable-line @typescript-eslint/no-unused-vars
|
4893
|
+
.every(([_, { isValid }]) => isValid); // eslint-disable-line @typescript-eslint/no-unused-vars
|
4718
4894
|
callback(valuesAreValid);
|
4719
4895
|
});
|
4720
4896
|
},
|
@@ -4756,11 +4932,11 @@ function submit() {
|
|
4756
4932
|
|
4757
4933
|
/* src/components/FormTextarea.svelte generated by Svelte v3.53.1 */
|
4758
4934
|
|
4759
|
-
function add_css$
|
4935
|
+
function add_css$8(target) {
|
4760
4936
|
append_styles(target, "svelte-kyay3k", ".textarea-wrapper.svelte-kyay3k{display:flex;align-items:center;width:100%;height:100%}.textarea.svelte-kyay3k{width:100%;resize:none}");
|
4761
4937
|
}
|
4762
4938
|
|
4763
|
-
function create_fragment$
|
4939
|
+
function create_fragment$9(ctx) {
|
4764
4940
|
let div;
|
4765
4941
|
let textarea;
|
4766
4942
|
let mounted;
|
@@ -4813,7 +4989,7 @@ function create_fragment$8(ctx) {
|
|
4813
4989
|
};
|
4814
4990
|
}
|
4815
4991
|
|
4816
|
-
function instance$
|
4992
|
+
function instance$9($$self, $$props, $$invalidate) {
|
4817
4993
|
let $value;
|
4818
4994
|
let { name = '' } = $$props;
|
4819
4995
|
let { required = true } = $$props;
|
@@ -4854,8 +5030,8 @@ class FormTextarea extends SvelteComponent {
|
|
4854
5030
|
init(
|
4855
5031
|
this,
|
4856
5032
|
options,
|
4857
|
-
instance$
|
4858
|
-
create_fragment$
|
5033
|
+
instance$9,
|
5034
|
+
create_fragment$9,
|
4859
5035
|
safe_not_equal,
|
4860
5036
|
{
|
4861
5037
|
name: 6,
|
@@ -4863,14 +5039,14 @@ class FormTextarea extends SvelteComponent {
|
|
4863
5039
|
rows: 1,
|
4864
5040
|
placeholder: 2
|
4865
5041
|
},
|
4866
|
-
add_css$
|
5042
|
+
add_css$8
|
4867
5043
|
);
|
4868
5044
|
}
|
4869
5045
|
}
|
4870
5046
|
|
4871
5047
|
/* src/components/FormButton.svelte generated by Svelte v3.53.1 */
|
4872
5048
|
|
4873
|
-
function create_fragment$
|
5049
|
+
function create_fragment$8(ctx) {
|
4874
5050
|
let input;
|
4875
5051
|
let mounted;
|
4876
5052
|
let dispose;
|
@@ -4911,21 +5087,21 @@ function create_fragment$7(ctx) {
|
|
4911
5087
|
};
|
4912
5088
|
}
|
4913
5089
|
|
4914
|
-
function instance$
|
5090
|
+
function instance$8($$self, $$props, $$invalidate) {
|
4915
5091
|
let disabled;
|
4916
5092
|
let $valuesAreValid;
|
4917
5093
|
let { text = '' } = $$props;
|
4918
|
-
let {
|
5094
|
+
let { onClick = { operation: 'submit', args: ['/'] } } = $$props;
|
4919
5095
|
const { path: statePath } = getStateItemContext();
|
4920
5096
|
|
4921
5097
|
function handleClick() {
|
4922
|
-
switch (
|
5098
|
+
switch (onClick.operation) {
|
4923
5099
|
case 'submit':
|
4924
5100
|
{
|
4925
5101
|
if ($valuesAreValid) {
|
4926
5102
|
submit();
|
4927
|
-
const stateId =
|
4928
|
-
setState$1(stateId
|
5103
|
+
const stateId = onClick.args[0];
|
5104
|
+
setState$1(stateId);
|
4929
5105
|
}
|
4930
5106
|
|
4931
5107
|
break;
|
@@ -4933,8 +5109,8 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
4933
5109
|
case 'next':
|
4934
5110
|
{
|
4935
5111
|
if ($valuesAreValid) {
|
4936
|
-
const stateId =
|
4937
|
-
setState$1(stateId
|
5112
|
+
const stateId = onClick.args[0];
|
5113
|
+
setState$1(stateId);
|
4938
5114
|
}
|
4939
5115
|
|
4940
5116
|
break;
|
@@ -4942,8 +5118,8 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
4942
5118
|
case 'prev':
|
4943
5119
|
{
|
4944
5120
|
deleteValues(statePath);
|
4945
|
-
const stateId =
|
4946
|
-
setState$1(stateId
|
5121
|
+
const stateId = onClick.args[0];
|
5122
|
+
setState$1(stateId);
|
4947
5123
|
break;
|
4948
5124
|
}
|
4949
5125
|
}
|
@@ -4954,35 +5130,35 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
4954
5130
|
|
4955
5131
|
$$self.$$set = $$props => {
|
4956
5132
|
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
4957
|
-
if ('
|
5133
|
+
if ('onClick' in $$props) $$invalidate(4, onClick = $$props.onClick);
|
4958
5134
|
};
|
4959
5135
|
|
4960
5136
|
$$self.$$.update = () => {
|
4961
|
-
if ($$self.$$.dirty & /*
|
5137
|
+
if ($$self.$$.dirty & /*onClick, $valuesAreValid*/ 48) {
|
4962
5138
|
$$invalidate(1, disabled = (() => {
|
4963
|
-
const enabled =
|
5139
|
+
const enabled = onClick.operation === 'prev' || $valuesAreValid;
|
4964
5140
|
return !enabled;
|
4965
5141
|
})());
|
4966
5142
|
}
|
4967
5143
|
};
|
4968
5144
|
|
4969
|
-
return [text, disabled, handleClick, valuesAreValid,
|
5145
|
+
return [text, disabled, handleClick, valuesAreValid, onClick, $valuesAreValid];
|
4970
5146
|
}
|
4971
5147
|
|
4972
5148
|
class FormButton extends SvelteComponent {
|
4973
5149
|
constructor(options) {
|
4974
5150
|
super();
|
4975
|
-
init(this, options, instance$
|
5151
|
+
init(this, options, instance$8, create_fragment$8, safe_not_equal, { text: 0, onClick: 4 });
|
4976
5152
|
}
|
4977
5153
|
}
|
4978
5154
|
|
4979
5155
|
/* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
|
4980
5156
|
|
4981
|
-
function add_css$
|
5157
|
+
function add_css$7(target) {
|
4982
5158
|
append_styles(target, "svelte-1ajmbw1", ".radio-buttons.svelte-1ajmbw1{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
|
4983
5159
|
}
|
4984
5160
|
|
4985
|
-
function get_each_context$
|
5161
|
+
function get_each_context$2(ctx, list, i) {
|
4986
5162
|
const child_ctx = ctx.slice();
|
4987
5163
|
child_ctx[7] = list[i];
|
4988
5164
|
child_ctx[9] = i;
|
@@ -4990,7 +5166,7 @@ function get_each_context$1(ctx, list, i) {
|
|
4990
5166
|
}
|
4991
5167
|
|
4992
5168
|
// (23:2) {#each _options as option, i}
|
4993
|
-
function create_each_block$
|
5169
|
+
function create_each_block$2(ctx) {
|
4994
5170
|
let label;
|
4995
5171
|
let input;
|
4996
5172
|
let t0;
|
@@ -5044,13 +5220,13 @@ function create_each_block$1(ctx) {
|
|
5044
5220
|
};
|
5045
5221
|
}
|
5046
5222
|
|
5047
|
-
function create_fragment$
|
5223
|
+
function create_fragment$7(ctx) {
|
5048
5224
|
let div;
|
5049
5225
|
let each_value = /*_options*/ ctx[1];
|
5050
5226
|
let each_blocks = [];
|
5051
5227
|
|
5052
5228
|
for (let i = 0; i < each_value.length; i += 1) {
|
5053
|
-
each_blocks[i] = create_each_block$
|
5229
|
+
each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
|
5054
5230
|
}
|
5055
5231
|
|
5056
5232
|
return {
|
@@ -5076,12 +5252,12 @@ function create_fragment$6(ctx) {
|
|
5076
5252
|
let i;
|
5077
5253
|
|
5078
5254
|
for (i = 0; i < each_value.length; i += 1) {
|
5079
|
-
const child_ctx = get_each_context$
|
5255
|
+
const child_ctx = get_each_context$2(ctx, each_value, i);
|
5080
5256
|
|
5081
5257
|
if (each_blocks[i]) {
|
5082
5258
|
each_blocks[i].p(child_ctx, dirty);
|
5083
5259
|
} else {
|
5084
|
-
each_blocks[i] = create_each_block$
|
5260
|
+
each_blocks[i] = create_each_block$2(child_ctx);
|
5085
5261
|
each_blocks[i].c();
|
5086
5262
|
each_blocks[i].m(div, null);
|
5087
5263
|
}
|
@@ -5103,11 +5279,11 @@ function create_fragment$6(ctx) {
|
|
5103
5279
|
};
|
5104
5280
|
}
|
5105
5281
|
|
5106
|
-
function instance$
|
5282
|
+
function instance$7($$self, $$props, $$invalidate) {
|
5107
5283
|
let _options;
|
5108
5284
|
let $value;
|
5109
5285
|
let { name = '' } = $$props;
|
5110
|
-
let { options = '
|
5286
|
+
let { options = 'ラジオボタン1,ラジオボタン2,ラジオボタン3' } = $$props;
|
5111
5287
|
const { path: statePath } = getStateItemContext();
|
5112
5288
|
|
5113
5289
|
const value = registerInput({
|
@@ -5144,17 +5320,17 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
5144
5320
|
class FormRadioButtons extends SvelteComponent {
|
5145
5321
|
constructor(options) {
|
5146
5322
|
super();
|
5147
|
-
init(this, options, instance$
|
5323
|
+
init(this, options, instance$7, create_fragment$7, safe_not_equal, { name: 0, options: 5 }, add_css$7);
|
5148
5324
|
}
|
5149
5325
|
}
|
5150
5326
|
|
5151
5327
|
/* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
|
5152
5328
|
|
5153
|
-
function add_css$
|
5329
|
+
function add_css$6(target) {
|
5154
5330
|
append_styles(target, "svelte-1ajmbw1", ".radio-buttons.svelte-1ajmbw1{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
|
5155
5331
|
}
|
5156
5332
|
|
5157
|
-
function get_each_context(ctx, list, i) {
|
5333
|
+
function get_each_context$1(ctx, list, i) {
|
5158
5334
|
const child_ctx = ctx.slice();
|
5159
5335
|
child_ctx[6] = list[i];
|
5160
5336
|
child_ctx[8] = i;
|
@@ -5201,7 +5377,7 @@ function create_if_block(ctx) {
|
|
5201
5377
|
}
|
5202
5378
|
|
5203
5379
|
// (24:4) {#each _options as option, i}
|
5204
|
-
function create_each_block(ctx) {
|
5380
|
+
function create_each_block$1(ctx) {
|
5205
5381
|
let option;
|
5206
5382
|
let t;
|
5207
5383
|
let option_value_value;
|
@@ -5252,7 +5428,7 @@ function create_each_block(ctx) {
|
|
5252
5428
|
};
|
5253
5429
|
}
|
5254
5430
|
|
5255
|
-
function create_fragment$
|
5431
|
+
function create_fragment$6(ctx) {
|
5256
5432
|
let div;
|
5257
5433
|
let select;
|
5258
5434
|
let mounted;
|
@@ -5261,7 +5437,7 @@ function create_fragment$5(ctx) {
|
|
5261
5437
|
let each_blocks = [];
|
5262
5438
|
|
5263
5439
|
for (let i = 0; i < each_value.length; i += 1) {
|
5264
|
-
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
5440
|
+
each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
|
5265
5441
|
}
|
5266
5442
|
|
5267
5443
|
return {
|
@@ -5294,12 +5470,12 @@ function create_fragment$5(ctx) {
|
|
5294
5470
|
let i;
|
5295
5471
|
|
5296
5472
|
for (i = 0; i < each_value.length; i += 1) {
|
5297
|
-
const child_ctx = get_each_context(ctx, each_value, i);
|
5473
|
+
const child_ctx = get_each_context$1(ctx, each_value, i);
|
5298
5474
|
|
5299
5475
|
if (each_blocks[i]) {
|
5300
5476
|
each_blocks[i].p(child_ctx, dirty);
|
5301
5477
|
} else {
|
5302
|
-
each_blocks[i] = create_each_block(child_ctx);
|
5478
|
+
each_blocks[i] = create_each_block$1(child_ctx);
|
5303
5479
|
each_blocks[i].c();
|
5304
5480
|
each_blocks[i].m(select, null);
|
5305
5481
|
}
|
@@ -5323,7 +5499,7 @@ function create_fragment$5(ctx) {
|
|
5323
5499
|
};
|
5324
5500
|
}
|
5325
5501
|
|
5326
|
-
function instance$
|
5502
|
+
function instance$6($$self, $$props, $$invalidate) {
|
5327
5503
|
let _options;
|
5328
5504
|
let { name = '' } = $$props;
|
5329
5505
|
let { options = 'プルダウン1,プルダウン2,プルダウン3' } = $$props;
|
@@ -5360,7 +5536,190 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
5360
5536
|
class FormSelect extends SvelteComponent {
|
5361
5537
|
constructor(options) {
|
5362
5538
|
super();
|
5363
|
-
init(this, options, instance$
|
5539
|
+
init(this, options, instance$6, create_fragment$6, safe_not_equal, { name: 2, options: 3 }, add_css$6);
|
5540
|
+
}
|
5541
|
+
}
|
5542
|
+
|
5543
|
+
/* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
|
5544
|
+
|
5545
|
+
function add_css$5(target) {
|
5546
|
+
append_styles(target, "svelte-3uhiw4", ".check-boxes.svelte-3uhiw4{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
|
5547
|
+
}
|
5548
|
+
|
5549
|
+
function get_each_context(ctx, list, i) {
|
5550
|
+
const child_ctx = ctx.slice();
|
5551
|
+
child_ctx[8] = list[i];
|
5552
|
+
child_ctx[10] = i;
|
5553
|
+
return child_ctx;
|
5554
|
+
}
|
5555
|
+
|
5556
|
+
// (30:2) {#each _options as option, i}
|
5557
|
+
function create_each_block(ctx) {
|
5558
|
+
let label;
|
5559
|
+
let input;
|
5560
|
+
let t0;
|
5561
|
+
let t1_value = /*option*/ ctx[8] + "";
|
5562
|
+
let t1;
|
5563
|
+
let t2;
|
5564
|
+
let mounted;
|
5565
|
+
let dispose;
|
5566
|
+
|
5567
|
+
return {
|
5568
|
+
c() {
|
5569
|
+
label = element("label");
|
5570
|
+
input = element("input");
|
5571
|
+
t0 = space();
|
5572
|
+
t1 = text(t1_value);
|
5573
|
+
t2 = space();
|
5574
|
+
attr(input, "type", "checkbox");
|
5575
|
+
attr(input, "name", /*name*/ ctx[0]);
|
5576
|
+
input.value = /*$value*/ ctx[2];
|
5577
|
+
},
|
5578
|
+
m(target, anchor) {
|
5579
|
+
insert(target, label, anchor);
|
5580
|
+
append(label, input);
|
5581
|
+
append(label, t0);
|
5582
|
+
append(label, t1);
|
5583
|
+
append(label, t2);
|
5584
|
+
|
5585
|
+
if (!mounted) {
|
5586
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[4](/*i*/ ctx[10]));
|
5587
|
+
mounted = true;
|
5588
|
+
}
|
5589
|
+
},
|
5590
|
+
p(new_ctx, dirty) {
|
5591
|
+
ctx = new_ctx;
|
5592
|
+
|
5593
|
+
if (dirty & /*name*/ 1) {
|
5594
|
+
attr(input, "name", /*name*/ ctx[0]);
|
5595
|
+
}
|
5596
|
+
|
5597
|
+
if (dirty & /*$value*/ 4) {
|
5598
|
+
input.value = /*$value*/ ctx[2];
|
5599
|
+
}
|
5600
|
+
|
5601
|
+
if (dirty & /*_options*/ 2 && t1_value !== (t1_value = /*option*/ ctx[8] + "")) set_data(t1, t1_value);
|
5602
|
+
},
|
5603
|
+
d(detaching) {
|
5604
|
+
if (detaching) detach(label);
|
5605
|
+
mounted = false;
|
5606
|
+
dispose();
|
5607
|
+
}
|
5608
|
+
};
|
5609
|
+
}
|
5610
|
+
|
5611
|
+
function create_fragment$5(ctx) {
|
5612
|
+
let div;
|
5613
|
+
let each_value = /*_options*/ ctx[1];
|
5614
|
+
let each_blocks = [];
|
5615
|
+
|
5616
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
5617
|
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
5618
|
+
}
|
5619
|
+
|
5620
|
+
return {
|
5621
|
+
c() {
|
5622
|
+
div = element("div");
|
5623
|
+
|
5624
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
5625
|
+
each_blocks[i].c();
|
5626
|
+
}
|
5627
|
+
|
5628
|
+
attr(div, "class", "check-boxes svelte-3uhiw4");
|
5629
|
+
},
|
5630
|
+
m(target, anchor) {
|
5631
|
+
insert(target, div, anchor);
|
5632
|
+
|
5633
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
5634
|
+
each_blocks[i].m(div, null);
|
5635
|
+
}
|
5636
|
+
},
|
5637
|
+
p(ctx, [dirty]) {
|
5638
|
+
if (dirty & /*_options, name, $value, handleChange*/ 23) {
|
5639
|
+
each_value = /*_options*/ ctx[1];
|
5640
|
+
let i;
|
5641
|
+
|
5642
|
+
for (i = 0; i < each_value.length; i += 1) {
|
5643
|
+
const child_ctx = get_each_context(ctx, each_value, i);
|
5644
|
+
|
5645
|
+
if (each_blocks[i]) {
|
5646
|
+
each_blocks[i].p(child_ctx, dirty);
|
5647
|
+
} else {
|
5648
|
+
each_blocks[i] = create_each_block(child_ctx);
|
5649
|
+
each_blocks[i].c();
|
5650
|
+
each_blocks[i].m(div, null);
|
5651
|
+
}
|
5652
|
+
}
|
5653
|
+
|
5654
|
+
for (; i < each_blocks.length; i += 1) {
|
5655
|
+
each_blocks[i].d(1);
|
5656
|
+
}
|
5657
|
+
|
5658
|
+
each_blocks.length = each_value.length;
|
5659
|
+
}
|
5660
|
+
},
|
5661
|
+
i: noop,
|
5662
|
+
o: noop,
|
5663
|
+
d(detaching) {
|
5664
|
+
if (detaching) detach(div);
|
5665
|
+
destroy_each(each_blocks, detaching);
|
5666
|
+
}
|
5667
|
+
};
|
5668
|
+
}
|
5669
|
+
|
5670
|
+
function instance$5($$self, $$props, $$invalidate) {
|
5671
|
+
let _options;
|
5672
|
+
let isCheckedArray;
|
5673
|
+
let $value;
|
5674
|
+
let { name = '' } = $$props;
|
5675
|
+
let { options = 'チェックボックス1,チェックボックス2,チェックボックス3' } = $$props;
|
5676
|
+
const { path: statePath } = getStateItemContext();
|
5677
|
+
|
5678
|
+
const value = registerInput({
|
5679
|
+
name,
|
5680
|
+
statePath,
|
5681
|
+
initialValue: [],
|
5682
|
+
validator(value) {
|
5683
|
+
return value.length > 0;
|
5684
|
+
}
|
5685
|
+
});
|
5686
|
+
|
5687
|
+
component_subscribe($$self, value, value => $$invalidate(2, $value = value));
|
5688
|
+
|
5689
|
+
const handleChange = index => event => {
|
5690
|
+
if (isCheckedArray[index] !== event.target.checked) {
|
5691
|
+
isCheckedArray[index] = event.target.checked;
|
5692
|
+
isCheckedArray = [...isCheckedArray];
|
5693
|
+
const updated = _options.filter((option, i) => isCheckedArray[i]);
|
5694
|
+
value.set(updated);
|
5695
|
+
}
|
5696
|
+
};
|
5697
|
+
|
5698
|
+
$$self.$$set = $$props => {
|
5699
|
+
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
5700
|
+
if ('options' in $$props) $$invalidate(5, options = $$props.options);
|
5701
|
+
};
|
5702
|
+
|
5703
|
+
$$self.$$.update = () => {
|
5704
|
+
if ($$self.$$.dirty & /*options*/ 32) {
|
5705
|
+
$$invalidate(1, _options = options.split(','));
|
5706
|
+
}
|
5707
|
+
|
5708
|
+
if ($$self.$$.dirty & /*$value, _options*/ 6) {
|
5709
|
+
isCheckedArray = (() => {
|
5710
|
+
const checkedSet = new Set($value);
|
5711
|
+
return _options.map(option => checkedSet.has(option));
|
5712
|
+
})();
|
5713
|
+
}
|
5714
|
+
};
|
5715
|
+
|
5716
|
+
return [name, _options, $value, value, handleChange, options];
|
5717
|
+
}
|
5718
|
+
|
5719
|
+
class FormCheckBoxes extends SvelteComponent {
|
5720
|
+
constructor(options) {
|
5721
|
+
super();
|
5722
|
+
init(this, options, instance$5, create_fragment$5, safe_not_equal, { name: 0, options: 5 }, add_css$5);
|
5364
5723
|
}
|
5365
5724
|
}
|
5366
5725
|
|
@@ -6250,4 +6609,4 @@ class ImageBlock extends SvelteComponent {
|
|
6250
6609
|
}
|
6251
6610
|
}
|
6252
6611
|
|
6253
|
-
export { ACTION_CHANGE_STATE_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_SHOW_EVENT, ALL_ACTION_ID, ALL_ACTION_SHORTEN_ID, Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexItem, FormButton, FormRadioButtons, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_ACTION_RID, KARTE_ACTION_ROOT, KARTE_ACTION_SHORTEN_ID, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, NOOP, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slider, SliderItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, actionId, actionSetting, addState, applyCss, applyGlobalCss, close, closeAction, closeApp, closed, collection$1 as collection, create, createApp, createFog, customAnimation, customHandlers, customVariables, destroy, destroyed, dispatchDestroyEvent, embed, ensureActionRoot, ensureModalRoot, execOnClickOperation, finalize, formData, getActionSetting, getActionShadowRoot, getCustomHandlers, getCustomVariables, getInternalHandlers, getMarginStyle, getPositionStyle, getState$1 as getState, getStates, getStoreState, getSystem, getTransform, h, handleFocus, handleKeydown, handleState, hasSuffix, hashCode, haveFunction, hideOnScroll, hideOnTime, initialize, internalHandlers, isClosed, isDestroyed, isOpened, isPreview, isStopped, linkTo, loadGlobalScript, loadGlobalStyle, loadStyle, maximumZindex, moveTo, none, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, randStr, resetActionSetting, runScript, send_event, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setDestroyed, setInternalHandlers, setMaximumZindex, setOpened, setPreviousFocus, setState$1 as setState, setStopped, setSystem, show, showAction, showModal, showOnScroll, showOnTime, state, states, stopped, system, toBr, updateCustomHandlers, updateCustomVariables, updateInternalHandlers, widget };
|
6612
|
+
export { ACTION_CHANGE_STATE_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_SHOW_EVENT, ALL_ACTION_ID, ALL_ACTION_SHORTEN_ID, Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexItem, FormButton, FormCheckBoxes, FormOperationOptions, FormRadioButtons, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_ACTION_RID, KARTE_ACTION_ROOT, KARTE_ACTION_SHORTEN_ID, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, NOOP, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slider, SliderItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, actionId, actionSetting, addState, applyCss, applyGlobalCss, close, closeAction, closeApp, closed, collection$1 as collection, create, createApp, createFog, customAnimation, customHandlers, customVariables, destroy, destroyed, dispatchDestroyEvent, embed, ensureActionRoot, ensureModalRoot, execOnClickOperation, finalize, formData, getActionSetting, getActionShadowRoot, getCustomHandlers, getCustomVariables, getInternalHandlers, getMarginStyle, getPositionStyle, getState$1 as getState, getStates, getStoreState, getSystem, getTransform, h, handleFocus, handleKeydown, handleState, hasSuffix, hashCode, haveFunction, hideOnScroll, hideOnTime, initialize, internalHandlers, isClosed, isDestroyed, isOpened, isPreview, isStopped, linkTo, loadGlobalScript, loadGlobalStyle, loadStyle, maximumZindex, moveTo, none, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, randStr, resetActionSetting, runScript, send_event, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setDestroyed, setInternalHandlers, setMaximumZindex, setOpened, setPreviousFocus, setState$1 as setState, setStopped, setSystem, show, showAction, showModal, showOnScroll, showOnTime, state, states, stopped, system, toBr, updateCustomHandlers, updateCustomVariables, updateInternalHandlers, widget };
|