@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/hydrate/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 true;
|
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 => {
|
@@ -547,9 +575,11 @@ const haveFunction = (onClickOperation) => {
|
|
547
575
|
};
|
548
576
|
/**
|
549
577
|
* The function to activate svelte animation.
|
578
|
+
*
|
579
|
+
* @param node - A target node of animation. This argument is passed by svelte, by default.
|
580
|
+
* @param customAnimationOptions - A custom animation option object
|
581
|
+
*
|
550
582
|
* @see {@link https://svelte.dev/docs#template-syntax-element-directives-transition-fn-custom-transition-functions| Custom transition functions} for detail documentation
|
551
|
-
* @param {Element} node A target node of animation. This argument is passed by svelte, by default.
|
552
|
-
* @param {CustomAnimationOptions} customAnimationOptions A custom animation option object
|
553
583
|
*/
|
554
584
|
function customAnimation(node, { transform, animationStyle, delay = 0, duration = 1000 }) {
|
555
585
|
{
|
@@ -559,7 +589,7 @@ function customAnimation(node, { transform, animationStyle, delay = 0, duration
|
|
559
589
|
/**
|
560
590
|
* {@link loadGlobalScript} load JavaScript that does not support ESM.
|
561
591
|
*
|
562
|
-
* @param
|
592
|
+
* @param src - Link of JavaScript file
|
563
593
|
*/
|
564
594
|
async function loadGlobalScript(src) {
|
565
595
|
return new Promise((resolve, reject) => {
|
@@ -573,7 +603,7 @@ async function loadGlobalScript(src) {
|
|
573
603
|
/**
|
574
604
|
* {@link applyGlobalCss} apply global CSS to WEB page.
|
575
605
|
*
|
576
|
-
* @param
|
606
|
+
* @param css - CSS
|
577
607
|
*/
|
578
608
|
async function applyGlobalCss(css) {
|
579
609
|
return new Promise((resolve, reject) => {
|
@@ -587,7 +617,7 @@ async function applyGlobalCss(css) {
|
|
587
617
|
/**
|
588
618
|
* {@link loadGlobalStyle} load global style to WEB page.
|
589
619
|
*
|
590
|
-
* @param
|
620
|
+
* @param href - Link of style file
|
591
621
|
*/
|
592
622
|
async function loadGlobalStyle(href) {
|
593
623
|
return new Promise((resolve, reject) => {
|
@@ -602,8 +632,10 @@ async function loadGlobalStyle(href) {
|
|
602
632
|
/**
|
603
633
|
* {@link hashCode} generate hash with FNV-1a hash
|
604
634
|
*
|
605
|
-
* @param
|
606
|
-
*
|
635
|
+
* @param s - Inputed string
|
636
|
+
*
|
637
|
+
* @returns Hashed string
|
638
|
+
*
|
607
639
|
* @see https://stackoverflow.com/a/22429679
|
608
640
|
*/
|
609
641
|
function hashCode(s) {
|
@@ -618,15 +650,17 @@ function hashCode(s) {
|
|
618
650
|
/**
|
619
651
|
* {@link setAutoStart} function to set auto start flag.
|
620
652
|
*
|
621
|
-
*
|
653
|
+
* @param on - true: auto start, false: not auto start
|
622
654
|
*
|
623
|
-
* @deprecated
|
624
|
-
* @param {boolean} on
|
655
|
+
* @deprecated 非推奨。`setActionConfig({ autoStart: false })` を使ってください。
|
625
656
|
*/
|
626
657
|
const setAutoStart = (on = true) => {
|
627
658
|
setStopped();
|
628
659
|
};
|
629
660
|
|
661
|
+
/**
|
662
|
+
* @internal
|
663
|
+
*/
|
630
664
|
const PropTypes = [
|
631
665
|
'BooleanKeyword',
|
632
666
|
'NumberKeyword',
|
@@ -648,12 +682,21 @@ const PropTypes = [
|
|
648
682
|
'ModalPlacement',
|
649
683
|
'OnClick',
|
650
684
|
];
|
685
|
+
/**
|
686
|
+
* @internal
|
687
|
+
*/
|
651
688
|
const MediaQueries = {
|
652
689
|
PC: '(\\s*min-width\\s*:\\s*1025px\\s*)',
|
653
690
|
Tablet: '(\\s*min-width\\s*:\\s*897px)\\s+and\\s+(\\s*max-width\\s*:\\s*1024px\\s*)',
|
654
691
|
Mobile: '(\\s*max-width\\s*:\\s*896px\\s*)',
|
655
692
|
};
|
693
|
+
/**
|
694
|
+
* @internal
|
695
|
+
*/
|
656
696
|
const Directions = ['row', 'column'];
|
697
|
+
/**
|
698
|
+
* @internal
|
699
|
+
*/
|
657
700
|
const AnimationStyles = [
|
658
701
|
'none',
|
659
702
|
'fade',
|
@@ -663,6 +706,9 @@ const AnimationStyles = [
|
|
663
706
|
'slide-left',
|
664
707
|
'slide-right',
|
665
708
|
];
|
709
|
+
/**
|
710
|
+
* @internal
|
711
|
+
*/
|
666
712
|
const ModalPositions = [
|
667
713
|
'top-left',
|
668
714
|
'top-center',
|
@@ -675,6 +721,9 @@ const ModalPositions = [
|
|
675
721
|
'bottom-right',
|
676
722
|
'none',
|
677
723
|
];
|
724
|
+
/**
|
725
|
+
* @internal
|
726
|
+
*/
|
678
727
|
const DefaultModalPlacement = {
|
679
728
|
position: 'center',
|
680
729
|
margin: {
|
@@ -686,13 +735,25 @@ const DefaultModalPlacement = {
|
|
686
735
|
backgroundOverlay: false,
|
687
736
|
backgroundClick: { operation: 'closeApp', args: ['overlay'] },
|
688
737
|
};
|
738
|
+
/**
|
739
|
+
* @internal
|
740
|
+
*/
|
689
741
|
const Elasticities = ['none', 'vertical', 'horizontal'];
|
742
|
+
/**
|
743
|
+
* @internal
|
744
|
+
*/
|
690
745
|
const ElasticityStyle = {
|
691
746
|
none: '',
|
692
747
|
vertical: 'height: 100%',
|
693
748
|
horizontal: 'width: 100%',
|
694
749
|
};
|
750
|
+
/**
|
751
|
+
* @internal
|
752
|
+
*/
|
695
753
|
const TextDirections = ['horizontal', 'vertical'];
|
754
|
+
/**
|
755
|
+
* @internal
|
756
|
+
*/
|
696
757
|
const OnClickOperationOptions = [
|
697
758
|
{
|
698
759
|
operation: 'none',
|
@@ -739,41 +800,133 @@ const OnClickOperationOptions = [
|
|
739
800
|
],
|
740
801
|
},
|
741
802
|
];
|
803
|
+
/**
|
804
|
+
* @internal
|
805
|
+
*/
|
806
|
+
const FormOperationOptions = [
|
807
|
+
{
|
808
|
+
operation: 'submit',
|
809
|
+
args: [
|
810
|
+
{
|
811
|
+
type: 'TransitState',
|
812
|
+
default: '/',
|
813
|
+
},
|
814
|
+
],
|
815
|
+
},
|
816
|
+
{
|
817
|
+
operation: 'next',
|
818
|
+
args: [
|
819
|
+
{
|
820
|
+
type: 'TransitState',
|
821
|
+
default: '/',
|
822
|
+
},
|
823
|
+
],
|
824
|
+
},
|
825
|
+
{
|
826
|
+
operation: 'prev',
|
827
|
+
args: [
|
828
|
+
{
|
829
|
+
type: 'TransitState',
|
830
|
+
default: '/',
|
831
|
+
},
|
832
|
+
],
|
833
|
+
},
|
834
|
+
];
|
835
|
+
/**
|
836
|
+
* @internal
|
837
|
+
*/
|
742
838
|
const LengthUnits = ['px', 'em', 'rem', 'vw', 'fr', '%'];
|
839
|
+
/**
|
840
|
+
* @internal
|
841
|
+
*/
|
743
842
|
const Justifies = ['flex-start', 'center', 'flex-end'];
|
843
|
+
/**
|
844
|
+
* @internal
|
845
|
+
*/
|
744
846
|
const Alignments = ['flex-start', 'center', 'flex-end'];
|
847
|
+
/**
|
848
|
+
* @internal
|
849
|
+
*/
|
745
850
|
const ObjectFits = ['fill', 'contain', 'cover'];
|
851
|
+
/**
|
852
|
+
* @internal
|
853
|
+
*/
|
746
854
|
const ClipPaths = ['none', 'circle(closest-side)'];
|
855
|
+
/**
|
856
|
+
* @internal
|
857
|
+
*/
|
747
858
|
const Repeats = ['repeat', 'space', 'round', 'no-repeat'];
|
859
|
+
/**
|
860
|
+
* @internal
|
861
|
+
*/
|
748
862
|
const BackgroundSizes = ['cover', 'contain', 'auto'];
|
863
|
+
/**
|
864
|
+
* @internal
|
865
|
+
*/
|
749
866
|
const Cursors = ['default', 'pointer'];
|
867
|
+
/**
|
868
|
+
* @internal
|
869
|
+
*/
|
750
870
|
const Overflows = ['visible', 'auto', 'hidden'];
|
871
|
+
/**
|
872
|
+
* @internal
|
873
|
+
*/
|
751
874
|
const WritingModes = ['horizontal-tb', 'vertical-lr'];
|
875
|
+
/**
|
876
|
+
* @internal
|
877
|
+
*/
|
752
878
|
const ListSeparatorTypes = ['none', 'border', 'gap'];
|
879
|
+
/**
|
880
|
+
* @internal
|
881
|
+
*/
|
753
882
|
const DefaultListSeparatorNone = {
|
754
883
|
type: 'none',
|
755
884
|
};
|
885
|
+
/**
|
886
|
+
* @internal
|
887
|
+
*/
|
756
888
|
const DefaultListSeparatorBorder = {
|
757
889
|
type: 'border',
|
758
890
|
borderStyle: 'solid',
|
759
891
|
borderWidth: '1px',
|
760
892
|
borderColor: 'rgba(0, 0, 0, 0.06)',
|
761
893
|
};
|
894
|
+
/**
|
895
|
+
* @internal
|
896
|
+
*/
|
762
897
|
const DefaultListSeparatorGap = {
|
763
898
|
type: 'gap',
|
764
899
|
gap: '8px',
|
765
900
|
};
|
901
|
+
/**
|
902
|
+
* @internal
|
903
|
+
*/
|
766
904
|
const DefaultListSeparator = DefaultListSeparatorBorder;
|
905
|
+
/**
|
906
|
+
* @internal
|
907
|
+
*/
|
767
908
|
const ListBackgroundTypes = ['none', 'stripe'];
|
909
|
+
/**
|
910
|
+
* @internal
|
911
|
+
*/
|
768
912
|
const DefaultListBackgroundNone = {
|
769
913
|
type: 'none',
|
770
914
|
};
|
915
|
+
/**
|
916
|
+
* @internal
|
917
|
+
*/
|
771
918
|
const DefaultListBackgroundStripe = {
|
772
919
|
type: 'stripe',
|
773
920
|
background1: 'rgba(0, 0, 0, 0.06)',
|
774
921
|
background2: '#fff',
|
775
922
|
};
|
923
|
+
/**
|
924
|
+
* @internal
|
925
|
+
*/
|
776
926
|
const DefaultListBackground = DefaultListBackgroundNone;
|
927
|
+
/**
|
928
|
+
* @internal
|
929
|
+
*/
|
777
930
|
const ListDirections = ['vertical', 'horizontal'];
|
778
931
|
|
779
932
|
function doPresent({ direction, deltaRate }, downFn, upFn, condition = false) {
|
@@ -786,33 +939,36 @@ function doPresent({ direction, deltaRate }, downFn, upFn, condition = false) {
|
|
786
939
|
return true;
|
787
940
|
}
|
788
941
|
/**
|
789
|
-
*
|
942
|
+
* スクロールに応じてアクションを非表示にするトリガー関数
|
790
943
|
*
|
791
|
-
* @
|
792
|
-
*
|
793
|
-
*
|
944
|
+
* @remarks
|
945
|
+
* スクロール率が `hide_on_scroll_rate` に達したときに `hide` 関数を呼び出します。
|
946
|
+
* `show_on_scroll_reenter` が `true` で、かつ `hide_on_scroll_rate` またはその値以下の場合、アクションに対して `show` 関数が呼び出されます。
|
794
947
|
*
|
795
|
-
* @
|
796
|
-
*
|
797
|
-
*
|
948
|
+
* @param props - アクションのプロパティ。プロパティには `hide_on_scroll`、`hide_on_scroll_rate` そして `show_on_scroll_reenter` が必要です。
|
949
|
+
* @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
950
|
+
* @param show - アクションを再び表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
798
951
|
*
|
799
|
-
* @returns
|
952
|
+
* @returns
|
953
|
+
* スクロールが開始された場合は、クリーンアップする関数を返します。そうでない場合は `null` を返します。
|
800
954
|
*/
|
801
|
-
function hideOnScroll(
|
955
|
+
function hideOnScroll(props, hide = NOOP, show = NOOP) {
|
956
|
+
const { hide_on_scroll, hide_on_scroll_rate, show_on_scroll_reenter } = props;
|
802
957
|
return hide_on_scroll && hide_on_scroll_rate
|
803
958
|
? onScroll(hide_on_scroll_rate / 100, ctx => doPresent(ctx, hide, show, show_on_scroll_reenter))
|
804
959
|
: null;
|
805
960
|
}
|
806
961
|
/**
|
807
|
-
*
|
962
|
+
* 時間に応じてアクションを非表示にするトリガー関数
|
808
963
|
*
|
809
|
-
* @
|
810
|
-
*
|
964
|
+
* @remarks
|
965
|
+
* 時間のカウントが `hide_on_time_count` に達したときに `hide` 関数を呼び出します。
|
811
966
|
*
|
812
|
-
* @
|
813
|
-
*
|
967
|
+
* @param props - アクションのプロパティ。プロパティには `hide_on_time` そして `hide_on_time_count` が必要です。
|
968
|
+
* @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
814
969
|
*
|
815
|
-
* @returns
|
970
|
+
* @returns
|
971
|
+
* タイマーが開始された場合、タイマーをクリーンアップする関数を返します。それ以外は `null` を返します。
|
816
972
|
*/
|
817
973
|
function hideOnTime(props, hide = NOOP) {
|
818
974
|
return props.hide_on_time && props.hide_on_time_count
|
@@ -820,33 +976,36 @@ function hideOnTime(props, hide = NOOP) {
|
|
820
976
|
: null;
|
821
977
|
}
|
822
978
|
/**
|
823
|
-
*
|
979
|
+
* スクロールに応じてアクションを表示するトリガー関数
|
824
980
|
*
|
825
|
-
* @
|
826
|
-
*
|
827
|
-
*
|
981
|
+
* @remarks
|
982
|
+
* スクロール率が `show_on_scroll_rate` に達したときに `show` 関数を呼び出します。
|
983
|
+
* `hide_on_scroll_releave` が `true` で、かつ `show_on_scroll_rate` 以下の場合は、アクションに対して `hide` 関数が呼び出されます。
|
828
984
|
*
|
829
|
-
* @
|
830
|
-
*
|
831
|
-
*
|
985
|
+
* @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate` そして `hide_on_scroll_releave` が必要です。
|
986
|
+
* @param show - アクションを表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
987
|
+
* @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
832
988
|
*
|
833
|
-
* @returns
|
989
|
+
* @returns
|
990
|
+
* スクロールが開始されている場合は、クリーンアップ関数を返します。そうでない場合は `null` を返します
|
834
991
|
*/
|
835
|
-
function showOnScroll(
|
992
|
+
function showOnScroll(props, show = NOOP, hide = NOOP) {
|
993
|
+
const { show_on_scroll, show_on_scroll_rate, hide_on_scroll_releave } = props;
|
836
994
|
return show_on_scroll && show_on_scroll_rate
|
837
995
|
? onScroll(show_on_scroll_rate / 100, ctx => doPresent(ctx, show, hide, hide_on_scroll_releave))
|
838
996
|
: null;
|
839
997
|
}
|
840
998
|
/**
|
841
|
-
*
|
999
|
+
* 時間に応じてアクションを表示するトリガー関数
|
842
1000
|
*
|
843
|
-
* @param props -
|
844
|
-
* @param show -
|
1001
|
+
* @param props - アクションのプロパティ。プロパティには `show_on_time` そして `show_on_time_count` が必要です。
|
1002
|
+
* @param show - アクションを表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
845
1003
|
*
|
846
|
-
* @
|
847
|
-
*
|
1004
|
+
* @remarks
|
1005
|
+
* 時間のカウントが `show_on_time_count` に達したときに `show` 関数を呼び出します。
|
848
1006
|
*
|
849
|
-
* @returns
|
1007
|
+
* @returns
|
1008
|
+
* タイマーが開始された場合、タイマーをクリーンアップする関数を返します。それ以外は `null` を返します。
|
850
1009
|
*/
|
851
1010
|
function showOnTime(props, show = NOOP) {
|
852
1011
|
return props.show_on_time && props.show_on_time_count
|
@@ -855,12 +1014,14 @@ function showOnTime(props, show = NOOP) {
|
|
855
1014
|
}
|
856
1015
|
|
857
1016
|
/**
|
858
|
-
*
|
1017
|
+
* KARTE アクションを作成する
|
859
1018
|
*
|
860
|
-
* @param App -
|
861
|
-
* @param options -
|
1019
|
+
* @param App - Svelte コンポーネントのエントリポイント
|
1020
|
+
* @param options - {@link ActionOptions | オプション}
|
862
1021
|
*
|
863
|
-
* @
|
1022
|
+
* @returns KARTE アクションを破棄する関数
|
1023
|
+
*
|
1024
|
+
* @public
|
864
1025
|
*/
|
865
1026
|
function create(App, options = {
|
866
1027
|
send: () => { },
|
@@ -991,6 +1152,8 @@ function create(App, options = {
|
|
991
1152
|
}
|
992
1153
|
/**
|
993
1154
|
* Dispatch the event to destroy KARTE action
|
1155
|
+
*
|
1156
|
+
* @internal
|
994
1157
|
*/
|
995
1158
|
function dispatchDestroyEvent() {
|
996
1159
|
const event = new CustomEvent(ACTION_DESTROY_EVENT);
|
@@ -1043,16 +1206,13 @@ function ensureActionRoot(useShadow = true) {
|
|
1043
1206
|
}
|
1044
1207
|
}
|
1045
1208
|
/**
|
1046
|
-
*
|
1209
|
+
* アクションが作成 (create) される前にフックする
|
1047
1210
|
*
|
1048
|
-
* @param
|
1049
|
-
|
1050
|
-
|
1051
|
-
/**
|
1052
|
-
* @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
|
1053
|
-
* @returns {void|Promise<void>}
|
1211
|
+
* @param fn - 呼び出されるフック関数
|
1212
|
+
*
|
1213
|
+
* @public
|
1054
1214
|
*/
|
1055
|
-
fn) {
|
1215
|
+
function onCreate(fn) {
|
1056
1216
|
let { onCreateHandlers } = getInternalHandlers();
|
1057
1217
|
if (!onCreateHandlers) {
|
1058
1218
|
onCreateHandlers = [];
|
@@ -1061,16 +1221,13 @@ fn) {
|
|
1061
1221
|
updateInternalHandlers({ onCreateHandlers });
|
1062
1222
|
}
|
1063
1223
|
/**
|
1064
|
-
*
|
1224
|
+
* アクションが表示 (show) された後にフックする
|
1065
1225
|
*
|
1066
|
-
* @param
|
1067
|
-
|
1068
|
-
|
1069
|
-
/**
|
1070
|
-
* @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
|
1071
|
-
* @returns {void|Promise<void>}
|
1226
|
+
* @param fn - 呼び出されるフック関数
|
1227
|
+
*
|
1228
|
+
* @public
|
1072
1229
|
*/
|
1073
|
-
fn) {
|
1230
|
+
function onShow(fn) {
|
1074
1231
|
let { onShowHandlers } = getInternalHandlers();
|
1075
1232
|
if (!onShowHandlers) {
|
1076
1233
|
onShowHandlers = [];
|
@@ -1079,17 +1236,13 @@ fn) {
|
|
1079
1236
|
updateInternalHandlers({ onShowHandlers });
|
1080
1237
|
}
|
1081
1238
|
/**
|
1082
|
-
*
|
1239
|
+
* アクションがクローズ (close) される前にフックする
|
1083
1240
|
*
|
1084
|
-
* @param
|
1085
|
-
*
|
1086
|
-
|
1087
|
-
function onClose(
|
1088
|
-
/**
|
1089
|
-
* @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
|
1090
|
-
* @returns {void|Promise<void>}
|
1241
|
+
* @param fn - 呼び出されるフック関数
|
1242
|
+
*
|
1243
|
+
* @public
|
1091
1244
|
*/
|
1092
|
-
fn) {
|
1245
|
+
function onClose(fn) {
|
1093
1246
|
let { onCloseHandlers } = getInternalHandlers();
|
1094
1247
|
if (!onCloseHandlers) {
|
1095
1248
|
onCloseHandlers = [];
|
@@ -1098,16 +1251,13 @@ fn) {
|
|
1098
1251
|
updateInternalHandlers({ onCloseHandlers });
|
1099
1252
|
}
|
1100
1253
|
/**
|
1101
|
-
*
|
1254
|
+
* アクションが破棄 (destroy) される前にフックする
|
1102
1255
|
*
|
1103
|
-
* @param
|
1104
|
-
|
1105
|
-
|
1106
|
-
/**
|
1107
|
-
* @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
|
1108
|
-
* @returns {void|Promise<void>}
|
1256
|
+
* @param fn - 呼び出されるフック関数
|
1257
|
+
*
|
1258
|
+
* @public
|
1109
1259
|
*/
|
1110
|
-
fn) {
|
1260
|
+
function onDestroy(fn) {
|
1111
1261
|
let { onDestoryHandlers } = getInternalHandlers();
|
1112
1262
|
if (!onDestoryHandlers) {
|
1113
1263
|
onDestoryHandlers = [];
|
@@ -1116,17 +1266,13 @@ fn) {
|
|
1116
1266
|
updateInternalHandlers({ onDestoryHandlers });
|
1117
1267
|
}
|
1118
1268
|
/**
|
1119
|
-
*
|
1269
|
+
* アクションのステートが変更された (changeState) 後にフックする
|
1120
1270
|
*
|
1121
|
-
* @param
|
1122
|
-
|
1123
|
-
|
1124
|
-
/**
|
1125
|
-
* @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
|
1126
|
-
* @param {string} newState New state of KARTE action
|
1127
|
-
* @returns {void|Promise<void>}
|
1271
|
+
* @param fn - 呼び出されるフック関数
|
1272
|
+
*
|
1273
|
+
* @public
|
1128
1274
|
*/
|
1129
|
-
fn) {
|
1275
|
+
function onChangeState(fn) {
|
1130
1276
|
let { onChangeStateHandlers } = getInternalHandlers();
|
1131
1277
|
if (!onChangeStateHandlers) {
|
1132
1278
|
onChangeStateHandlers = [];
|
@@ -1151,7 +1297,9 @@ const h = (type, props, ...children) => {
|
|
1151
1297
|
return el;
|
1152
1298
|
};
|
1153
1299
|
/**
|
1154
|
-
*
|
1300
|
+
* create a fog element
|
1301
|
+
*
|
1302
|
+
* @deprecated 非推奨
|
1155
1303
|
*/
|
1156
1304
|
function createFog({ color = '#000', opacity = '50%', zIndex = 999, onclick, }) {
|
1157
1305
|
const root = ensureModalRoot(false);
|
@@ -1205,9 +1353,11 @@ function getActionShadowRoot() {
|
|
1205
1353
|
return root.shadowRoot;
|
1206
1354
|
}
|
1207
1355
|
/**
|
1208
|
-
*
|
1356
|
+
* KARTE アクションに CSS を適用する
|
1209
1357
|
*
|
1210
|
-
* @param
|
1358
|
+
* @param css - 適用する CSS
|
1359
|
+
*
|
1360
|
+
* @returns 適用された style 要素を返す Promise
|
1211
1361
|
*/
|
1212
1362
|
async function applyCss(css) {
|
1213
1363
|
return new Promise((resolve, reject) => {
|
@@ -1245,9 +1395,9 @@ async function fixFontFaceIssue(href, cssRules) {
|
|
1245
1395
|
return [rules.join('\n'), fixedRules.join('\n')];
|
1246
1396
|
}
|
1247
1397
|
/**
|
1248
|
-
*
|
1398
|
+
* KARTE アクションにグローバルなスタイルをロードする
|
1249
1399
|
*
|
1250
|
-
* @param
|
1400
|
+
* @param href - style ファイルのリンク先 URL
|
1251
1401
|
*/
|
1252
1402
|
async function loadStyle(href) {
|
1253
1403
|
const sr = getActionShadowRoot();
|
@@ -1287,12 +1437,13 @@ const show = showAction; // deprecated
|
|
1287
1437
|
const close = closeAction; // deprecated
|
1288
1438
|
/**
|
1289
1439
|
* Create an application instance
|
1290
|
-
* @deprecated
|
1291
1440
|
*
|
1292
1441
|
* @param App - An entry point of svelte component.
|
1293
1442
|
* @param options - An {@link AppOptions | options}
|
1294
1443
|
*
|
1295
|
-
* @
|
1444
|
+
* @returns A function to close the modal
|
1445
|
+
*
|
1446
|
+
* @deprecated 非推奨
|
1296
1447
|
*/
|
1297
1448
|
function createApp(App, options = {
|
1298
1449
|
send: () => { },
|
@@ -1416,8 +1567,10 @@ onDestroy(() => {
|
|
1416
1567
|
/**
|
1417
1568
|
* 変数を設定する
|
1418
1569
|
*
|
1419
|
-
* @param
|
1420
|
-
* @param
|
1570
|
+
* @param name - 変数名
|
1571
|
+
* @param value - 変数値
|
1572
|
+
*
|
1573
|
+
* @public
|
1421
1574
|
*/
|
1422
1575
|
function setVal(name, value) {
|
1423
1576
|
customVariables.update(current => {
|
@@ -1433,19 +1586,23 @@ function setVal(name, value) {
|
|
1433
1586
|
/**
|
1434
1587
|
* 変数を取得する
|
1435
1588
|
*
|
1436
|
-
* @param
|
1589
|
+
* @param name - 変数名
|
1590
|
+
*
|
1591
|
+
* @returns 変数値
|
1437
1592
|
*
|
1438
|
-
* @
|
1593
|
+
* @public
|
1439
1594
|
*/
|
1440
1595
|
function getVal(name) {
|
1441
1596
|
const cv = getCustomVariables();
|
1442
1597
|
return cv[name];
|
1443
1598
|
}
|
1444
1599
|
/**
|
1445
|
-
*
|
1600
|
+
* 変数が変更されたときに実行されるコールバック関数を設定する
|
1446
1601
|
*
|
1447
|
-
* @param
|
1448
|
-
* @param
|
1602
|
+
* @param name - 変数名
|
1603
|
+
* @param callback - コールバック関数
|
1604
|
+
*
|
1605
|
+
* @public
|
1449
1606
|
*/
|
1450
1607
|
function onChangeVal(name, callback) {
|
1451
1608
|
if (!valCallbacks[name]) {
|
@@ -1454,10 +1611,12 @@ function onChangeVal(name, callback) {
|
|
1454
1611
|
valCallbacks[name].push(callback);
|
1455
1612
|
}
|
1456
1613
|
/**
|
1457
|
-
* WEB
|
1614
|
+
* WEBのイベントが発生したときに実行されるコールバック関数を設定する
|
1615
|
+
*
|
1616
|
+
* @param name - WEBのイベント名
|
1617
|
+
* @param callback - コールバック関数
|
1458
1618
|
*
|
1459
|
-
* @
|
1460
|
-
* @param {EventCallback} callback コールバック
|
1619
|
+
* @public
|
1461
1620
|
*/
|
1462
1621
|
function method(name, callback) {
|
1463
1622
|
window.addEventListener(name, callback);
|
@@ -1467,10 +1626,12 @@ function method(name, callback) {
|
|
1467
1626
|
eventCallbacks[name].push(callback);
|
1468
1627
|
}
|
1469
1628
|
/**
|
1470
|
-
* Widget
|
1629
|
+
* Widgetのイベントが発生したときに実行されるコールバック関数を設定する
|
1471
1630
|
*
|
1472
|
-
* @param
|
1473
|
-
* @param
|
1631
|
+
* @param name - Widgetのイベント名
|
1632
|
+
* @param callback - コールバック関数
|
1633
|
+
*
|
1634
|
+
* @public
|
1474
1635
|
*/
|
1475
1636
|
function on(name, callback) {
|
1476
1637
|
let onCallback;
|
@@ -1506,7 +1667,9 @@ function on(name, callback) {
|
|
1506
1667
|
/**
|
1507
1668
|
* 現在のステートを設定する
|
1508
1669
|
*
|
1509
|
-
* @param
|
1670
|
+
* @param stateId - ステートID
|
1671
|
+
*
|
1672
|
+
* @public
|
1510
1673
|
*/
|
1511
1674
|
function setState(stateId) {
|
1512
1675
|
const stateIds = getStates();
|
@@ -1517,7 +1680,9 @@ function setState(stateId) {
|
|
1517
1680
|
/**
|
1518
1681
|
* 現在のステートを取得する
|
1519
1682
|
*
|
1520
|
-
* @
|
1683
|
+
* @returns ステートID
|
1684
|
+
*
|
1685
|
+
* @public
|
1521
1686
|
*/
|
1522
1687
|
function getState() {
|
1523
1688
|
return getState$1();
|
@@ -1525,8 +1690,10 @@ function getState() {
|
|
1525
1690
|
/**
|
1526
1691
|
* ページ内の変数を設定する
|
1527
1692
|
*
|
1528
|
-
* @param
|
1529
|
-
* @param
|
1693
|
+
* @param key - 変数のキー
|
1694
|
+
* @param value - 変数値
|
1695
|
+
*
|
1696
|
+
* @public
|
1530
1697
|
*/
|
1531
1698
|
function setMemoryStore(key, value) {
|
1532
1699
|
memoryStore[key] = value;
|
@@ -1534,8 +1701,11 @@ function setMemoryStore(key, value) {
|
|
1534
1701
|
/**
|
1535
1702
|
* ページ内の変数を取定する
|
1536
1703
|
*
|
1537
|
-
* @param
|
1538
|
-
*
|
1704
|
+
* @param key - 変数のキー
|
1705
|
+
*
|
1706
|
+
* @returns 変数
|
1707
|
+
*
|
1708
|
+
* @public
|
1539
1709
|
*/
|
1540
1710
|
function getMemoryStore(key) {
|
1541
1711
|
return memoryStore[key];
|
@@ -1543,8 +1713,10 @@ function getMemoryStore(key) {
|
|
1543
1713
|
/**
|
1544
1714
|
* ページをまたぐ変数を設定する
|
1545
1715
|
*
|
1546
|
-
* @param
|
1547
|
-
* @param
|
1716
|
+
* @param key - 変数のキー
|
1717
|
+
* @param value - 変数値
|
1718
|
+
*
|
1719
|
+
* @public
|
1548
1720
|
*/
|
1549
1721
|
function setLocalStore(key, value, options = { expire: false }) {
|
1550
1722
|
const item = {
|
@@ -1559,8 +1731,11 @@ function setLocalStore(key, value, options = { expire: false }) {
|
|
1559
1731
|
/**
|
1560
1732
|
* ページをまたぐ変数を取得設定する
|
1561
1733
|
*
|
1562
|
-
* @param
|
1563
|
-
*
|
1734
|
+
* @param key - 変数のキー
|
1735
|
+
*
|
1736
|
+
* @returns 変数
|
1737
|
+
*
|
1738
|
+
* @public
|
1564
1739
|
*/
|
1565
1740
|
function getLocalStore(key) {
|
1566
1741
|
const lsKey = STORE_LS_KEY_PREFIX + key;
|
@@ -1592,8 +1767,9 @@ const storage = {
|
|
1592
1767
|
/**
|
1593
1768
|
* アクションテーブルを操作するオブジェクト
|
1594
1769
|
*
|
1595
|
-
* @param
|
1596
|
-
*
|
1770
|
+
* @param table - アクションテーブル名
|
1771
|
+
*
|
1772
|
+
* @public
|
1597
1773
|
*/
|
1598
1774
|
function collection(table) {
|
1599
1775
|
const systemConfig = getSystem();
|
@@ -1618,20 +1794,20 @@ var widget = /*#__PURE__*/Object.freeze({
|
|
1618
1794
|
|
1619
1795
|
/* src/components/Normalize.svelte generated by Svelte v3.53.1 */
|
1620
1796
|
|
1621
|
-
function add_css$
|
1797
|
+
function add_css$n(target) {
|
1622
1798
|
append_styles(target, "svelte-tr4qnr", "@import 'https://esm.sh/normalize.css';");
|
1623
1799
|
}
|
1624
1800
|
|
1625
1801
|
class Normalize extends SvelteComponent {
|
1626
1802
|
constructor(options) {
|
1627
1803
|
super();
|
1628
|
-
init(this, options, null, null, safe_not_equal, {}, add_css$
|
1804
|
+
init(this, options, null, null, safe_not_equal, {}, add_css$n);
|
1629
1805
|
}
|
1630
1806
|
}
|
1631
1807
|
|
1632
1808
|
/* src/components/State.svelte generated by Svelte v3.53.1 */
|
1633
1809
|
|
1634
|
-
function create_fragment$
|
1810
|
+
function create_fragment$r(ctx) {
|
1635
1811
|
let normalize;
|
1636
1812
|
let t;
|
1637
1813
|
let current;
|
@@ -1695,7 +1871,7 @@ function create_fragment$q(ctx) {
|
|
1695
1871
|
};
|
1696
1872
|
}
|
1697
1873
|
|
1698
|
-
function instance$
|
1874
|
+
function instance$r($$self, $$props, $$invalidate) {
|
1699
1875
|
let { $$slots: slots = {}, $$scope } = $$props;
|
1700
1876
|
|
1701
1877
|
$$self.$$set = $$props => {
|
@@ -1708,13 +1884,13 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
1708
1884
|
class State extends SvelteComponent {
|
1709
1885
|
constructor(options) {
|
1710
1886
|
super();
|
1711
|
-
init(this, options, instance$
|
1887
|
+
init(this, options, instance$r, create_fragment$r, safe_not_equal, {});
|
1712
1888
|
}
|
1713
1889
|
}
|
1714
1890
|
|
1715
1891
|
/* src/components/StateItem.svelte generated by Svelte v3.53.1 */
|
1716
1892
|
|
1717
|
-
function add_css$
|
1893
|
+
function add_css$m(target) {
|
1718
1894
|
append_styles(target, "svelte-2qb6dm", ".state-item.svelte-2qb6dm{position:absolute;display:none}");
|
1719
1895
|
}
|
1720
1896
|
|
@@ -1791,7 +1967,7 @@ function create_if_block$4(ctx) {
|
|
1791
1967
|
};
|
1792
1968
|
}
|
1793
1969
|
|
1794
|
-
function create_fragment$
|
1970
|
+
function create_fragment$q(ctx) {
|
1795
1971
|
let if_block_anchor;
|
1796
1972
|
let current;
|
1797
1973
|
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$4(ctx);
|
@@ -1856,7 +2032,7 @@ function getStateItemContext() {
|
|
1856
2032
|
return getContext(STATE_ITEM_CONTEXT_KEY);
|
1857
2033
|
}
|
1858
2034
|
|
1859
|
-
function instance$
|
2035
|
+
function instance$q($$self, $$props, $$invalidate) {
|
1860
2036
|
let $state;
|
1861
2037
|
component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
|
1862
2038
|
let { $$slots: slots = {}, $$scope } = $$props;
|
@@ -1882,13 +2058,13 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
1882
2058
|
class StateItem extends SvelteComponent {
|
1883
2059
|
constructor(options) {
|
1884
2060
|
super();
|
1885
|
-
init(this, options, instance$
|
2061
|
+
init(this, options, instance$q, create_fragment$q, safe_not_equal, { path: 0 }, add_css$m);
|
1886
2062
|
}
|
1887
2063
|
}
|
1888
2064
|
|
1889
2065
|
/* src/components/BackgroundOverray.svelte generated by Svelte v3.53.1 */
|
1890
2066
|
|
1891
|
-
function add_css$
|
2067
|
+
function add_css$l(target) {
|
1892
2068
|
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}");
|
1893
2069
|
}
|
1894
2070
|
|
@@ -1928,7 +2104,7 @@ function create_if_block$3(ctx) {
|
|
1928
2104
|
};
|
1929
2105
|
}
|
1930
2106
|
|
1931
|
-
function create_fragment$
|
2107
|
+
function create_fragment$p(ctx) {
|
1932
2108
|
let if_block_anchor;
|
1933
2109
|
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$3(ctx);
|
1934
2110
|
|
@@ -1968,7 +2144,7 @@ function create_fragment$o(ctx) {
|
|
1968
2144
|
};
|
1969
2145
|
}
|
1970
2146
|
|
1971
|
-
function instance$
|
2147
|
+
function instance$p($$self, $$props, $$invalidate) {
|
1972
2148
|
let { backgroundOverray = false } = $$props;
|
1973
2149
|
const dispatch = createEventDispatcher();
|
1974
2150
|
const click_handler = () => dispatch('click');
|
@@ -1983,13 +2159,13 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
1983
2159
|
class BackgroundOverray extends SvelteComponent {
|
1984
2160
|
constructor(options) {
|
1985
2161
|
super();
|
1986
|
-
init(this, options, instance$
|
2162
|
+
init(this, options, instance$p, create_fragment$p, safe_not_equal, { backgroundOverray: 0 }, add_css$l);
|
1987
2163
|
}
|
1988
2164
|
}
|
1989
2165
|
|
1990
2166
|
/* src/components/Modal.svelte generated by Svelte v3.53.1 */
|
1991
2167
|
|
1992
|
-
function add_css$
|
2168
|
+
function add_css$k(target) {
|
1993
2169
|
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}");
|
1994
2170
|
}
|
1995
2171
|
|
@@ -2219,7 +2395,7 @@ function create_if_block_1(ctx) {
|
|
2219
2395
|
};
|
2220
2396
|
}
|
2221
2397
|
|
2222
|
-
function create_fragment$
|
2398
|
+
function create_fragment$o(ctx) {
|
2223
2399
|
let backgroundoverray;
|
2224
2400
|
let t;
|
2225
2401
|
let if_block_anchor;
|
@@ -2318,7 +2494,7 @@ function create_fragment$n(ctx) {
|
|
2318
2494
|
};
|
2319
2495
|
}
|
2320
2496
|
|
2321
|
-
function instance$
|
2497
|
+
function instance$o($$self, $$props, $$invalidate) {
|
2322
2498
|
let click;
|
2323
2499
|
let close;
|
2324
2500
|
let closable;
|
@@ -2509,8 +2685,8 @@ class Modal extends SvelteComponent {
|
|
2509
2685
|
init(
|
2510
2686
|
this,
|
2511
2687
|
options,
|
2512
|
-
instance$
|
2513
|
-
create_fragment$
|
2688
|
+
instance$o,
|
2689
|
+
create_fragment$o,
|
2514
2690
|
safe_not_equal,
|
2515
2691
|
{
|
2516
2692
|
onClick: 17,
|
@@ -2526,14 +2702,14 @@ class Modal extends SvelteComponent {
|
|
2526
2702
|
closeButtonColor: 2,
|
2527
2703
|
_closeStyle: 3
|
2528
2704
|
},
|
2529
|
-
add_css$
|
2705
|
+
add_css$k
|
2530
2706
|
);
|
2531
2707
|
}
|
2532
2708
|
}
|
2533
2709
|
|
2534
2710
|
/* src/components/Grid.svelte generated by Svelte v3.53.1 */
|
2535
2711
|
|
2536
|
-
function create_fragment$
|
2712
|
+
function create_fragment$n(ctx) {
|
2537
2713
|
let div;
|
2538
2714
|
let current;
|
2539
2715
|
const default_slot_template = /*#slots*/ ctx[8].default;
|
@@ -2601,7 +2777,7 @@ function create_fragment$m(ctx) {
|
|
2601
2777
|
};
|
2602
2778
|
}
|
2603
2779
|
|
2604
|
-
function instance$
|
2780
|
+
function instance$n($$self, $$props, $$invalidate) {
|
2605
2781
|
let _style;
|
2606
2782
|
let { $$slots: slots = {}, $$scope } = $$props;
|
2607
2783
|
let { width = '512px' } = $$props;
|
@@ -2646,7 +2822,7 @@ class Grid extends SvelteComponent {
|
|
2646
2822
|
constructor(options) {
|
2647
2823
|
super();
|
2648
2824
|
|
2649
|
-
init(this, options, instance$
|
2825
|
+
init(this, options, instance$n, create_fragment$n, safe_not_equal, {
|
2650
2826
|
width: 1,
|
2651
2827
|
height: 2,
|
2652
2828
|
rows: 3,
|
@@ -2837,7 +3013,7 @@ function create_default_slot(ctx) {
|
|
2837
3013
|
};
|
2838
3014
|
}
|
2839
3015
|
|
2840
|
-
function create_fragment$
|
3016
|
+
function create_fragment$m(ctx) {
|
2841
3017
|
let stateitem;
|
2842
3018
|
let current;
|
2843
3019
|
|
@@ -2885,7 +3061,7 @@ function create_fragment$l(ctx) {
|
|
2885
3061
|
};
|
2886
3062
|
}
|
2887
3063
|
|
2888
|
-
function instance$
|
3064
|
+
function instance$m($$self, $$props, $$invalidate) {
|
2889
3065
|
let { $$slots: slots = {}, $$scope } = $$props;
|
2890
3066
|
let { path } = $$props;
|
2891
3067
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
@@ -2956,7 +3132,7 @@ class GridModalState extends SvelteComponent {
|
|
2956
3132
|
constructor(options) {
|
2957
3133
|
super();
|
2958
3134
|
|
2959
|
-
init(this, options, instance$
|
3135
|
+
init(this, options, instance$m, create_fragment$m, safe_not_equal, {
|
2960
3136
|
path: 0,
|
2961
3137
|
onClick: 1,
|
2962
3138
|
clickEventName: 2,
|
@@ -2981,11 +3157,11 @@ class GridModalState extends SvelteComponent {
|
|
2981
3157
|
|
2982
3158
|
/* src/components/GridItem.svelte generated by Svelte v3.53.1 */
|
2983
3159
|
|
2984
|
-
function add_css$
|
3160
|
+
function add_css$j(target) {
|
2985
3161
|
append_styles(target, "svelte-n7kdl3", ".grid-item.svelte-n7kdl3{word-break:break-all;position:relative}.grid-item-inner.svelte-n7kdl3{position:absolute;inset:0}");
|
2986
3162
|
}
|
2987
3163
|
|
2988
|
-
function create_fragment$
|
3164
|
+
function create_fragment$l(ctx) {
|
2989
3165
|
let div1;
|
2990
3166
|
let div0;
|
2991
3167
|
let current;
|
@@ -3066,7 +3242,7 @@ function create_fragment$k(ctx) {
|
|
3066
3242
|
};
|
3067
3243
|
}
|
3068
3244
|
|
3069
|
-
function instance$
|
3245
|
+
function instance$l($$self, $$props, $$invalidate) {
|
3070
3246
|
let _style;
|
3071
3247
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3072
3248
|
let { x1 } = $$props;
|
@@ -3119,8 +3295,8 @@ class GridItem extends SvelteComponent {
|
|
3119
3295
|
init(
|
3120
3296
|
this,
|
3121
3297
|
options,
|
3122
|
-
instance$
|
3123
|
-
create_fragment$
|
3298
|
+
instance$l,
|
3299
|
+
create_fragment$l,
|
3124
3300
|
safe_not_equal,
|
3125
3301
|
{
|
3126
3302
|
x1: 2,
|
@@ -3130,18 +3306,18 @@ class GridItem extends SvelteComponent {
|
|
3130
3306
|
z: 6,
|
3131
3307
|
background: 7
|
3132
3308
|
},
|
3133
|
-
add_css$
|
3309
|
+
add_css$j
|
3134
3310
|
);
|
3135
3311
|
}
|
3136
3312
|
}
|
3137
3313
|
|
3138
3314
|
/* src/components/Flex.svelte generated by Svelte v3.53.1 */
|
3139
3315
|
|
3140
|
-
function add_css$
|
3316
|
+
function add_css$i(target) {
|
3141
3317
|
append_styles(target, "svelte-1e71ejc", ".flex.svelte-1e71ejc{display:flex}");
|
3142
3318
|
}
|
3143
3319
|
|
3144
|
-
function create_fragment$
|
3320
|
+
function create_fragment$k(ctx) {
|
3145
3321
|
let div;
|
3146
3322
|
let div_style_value;
|
3147
3323
|
let current;
|
@@ -3216,7 +3392,7 @@ function getFlexContext() {
|
|
3216
3392
|
return getContext(FlexContextKey);
|
3217
3393
|
}
|
3218
3394
|
|
3219
|
-
function instance$
|
3395
|
+
function instance$k($$self, $$props, $$invalidate) {
|
3220
3396
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3221
3397
|
let { direction = 'row' } = $$props;
|
3222
3398
|
let { width = '100%' } = $$props;
|
@@ -3242,8 +3418,8 @@ class Flex extends SvelteComponent {
|
|
3242
3418
|
init(
|
3243
3419
|
this,
|
3244
3420
|
options,
|
3245
|
-
instance$
|
3246
|
-
create_fragment$
|
3421
|
+
instance$k,
|
3422
|
+
create_fragment$k,
|
3247
3423
|
safe_not_equal,
|
3248
3424
|
{
|
3249
3425
|
direction: 0,
|
@@ -3251,18 +3427,18 @@ class Flex extends SvelteComponent {
|
|
3251
3427
|
height: 2,
|
3252
3428
|
_style: 3
|
3253
3429
|
},
|
3254
|
-
add_css$
|
3430
|
+
add_css$i
|
3255
3431
|
);
|
3256
3432
|
}
|
3257
3433
|
}
|
3258
3434
|
|
3259
3435
|
/* src/components/FlexItem.svelte generated by Svelte v3.53.1 */
|
3260
3436
|
|
3261
|
-
function add_css$
|
3437
|
+
function add_css$h(target) {
|
3262
3438
|
append_styles(target, "svelte-1p0bk1x", ".flex-item.svelte-1p0bk1x{max-width:100%;max-height:100%;position:relative;isolation:isolate}");
|
3263
3439
|
}
|
3264
3440
|
|
3265
|
-
function create_fragment$
|
3441
|
+
function create_fragment$j(ctx) {
|
3266
3442
|
let div;
|
3267
3443
|
let current;
|
3268
3444
|
const default_slot_template = /*#slots*/ ctx[4].default;
|
@@ -3330,7 +3506,7 @@ function create_fragment$i(ctx) {
|
|
3330
3506
|
};
|
3331
3507
|
}
|
3332
3508
|
|
3333
|
-
function instance$
|
3509
|
+
function instance$j($$self, $$props, $$invalidate) {
|
3334
3510
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3335
3511
|
let { length } = $$props;
|
3336
3512
|
let { _style = '' } = $$props;
|
@@ -3373,13 +3549,13 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
3373
3549
|
class FlexItem extends SvelteComponent {
|
3374
3550
|
constructor(options) {
|
3375
3551
|
super();
|
3376
|
-
init(this, options, instance$
|
3552
|
+
init(this, options, instance$j, create_fragment$j, safe_not_equal, { length: 1, _style: 2 }, add_css$h);
|
3377
3553
|
}
|
3378
3554
|
}
|
3379
3555
|
|
3380
3556
|
/* src/components/RenderText.svelte generated by Svelte v3.53.1 */
|
3381
3557
|
|
3382
|
-
function get_each_context$
|
3558
|
+
function get_each_context$3(ctx, list, i) {
|
3383
3559
|
const child_ctx = ctx.slice();
|
3384
3560
|
child_ctx[2] = list[i];
|
3385
3561
|
return child_ctx;
|
@@ -3431,7 +3607,7 @@ function create_if_block$1(ctx) {
|
|
3431
3607
|
}
|
3432
3608
|
|
3433
3609
|
// (9:0) {#each items as item}
|
3434
|
-
function create_each_block$
|
3610
|
+
function create_each_block$3(ctx) {
|
3435
3611
|
let show_if;
|
3436
3612
|
let if_block_anchor;
|
3437
3613
|
|
@@ -3478,13 +3654,13 @@ function create_each_block$2(ctx) {
|
|
3478
3654
|
};
|
3479
3655
|
}
|
3480
3656
|
|
3481
|
-
function create_fragment$
|
3657
|
+
function create_fragment$i(ctx) {
|
3482
3658
|
let each_1_anchor;
|
3483
3659
|
let each_value = /*items*/ ctx[0];
|
3484
3660
|
let each_blocks = [];
|
3485
3661
|
|
3486
3662
|
for (let i = 0; i < each_value.length; i += 1) {
|
3487
|
-
each_blocks[i] = create_each_block$
|
3663
|
+
each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
|
3488
3664
|
}
|
3489
3665
|
|
3490
3666
|
return {
|
@@ -3515,12 +3691,12 @@ function create_fragment$h(ctx) {
|
|
3515
3691
|
let i;
|
3516
3692
|
|
3517
3693
|
for (i = 0; i < each_value.length; i += 1) {
|
3518
|
-
const child_ctx = get_each_context$
|
3694
|
+
const child_ctx = get_each_context$3(ctx, each_value, i);
|
3519
3695
|
|
3520
3696
|
if (each_blocks[i]) {
|
3521
3697
|
each_blocks[i].p(child_ctx, dirty);
|
3522
3698
|
} else {
|
3523
|
-
each_blocks[i] = create_each_block$
|
3699
|
+
each_blocks[i] = create_each_block$3(child_ctx);
|
3524
3700
|
each_blocks[i].c();
|
3525
3701
|
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
3526
3702
|
}
|
@@ -3544,7 +3720,7 @@ function create_fragment$h(ctx) {
|
|
3544
3720
|
|
3545
3721
|
const regexp = /(\r?\n)/;
|
3546
3722
|
|
3547
|
-
function instance$
|
3723
|
+
function instance$i($$self, $$props, $$invalidate) {
|
3548
3724
|
let items;
|
3549
3725
|
let { text = 'サンプルSample' } = $$props;
|
3550
3726
|
|
@@ -3564,17 +3740,17 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
3564
3740
|
class RenderText extends SvelteComponent {
|
3565
3741
|
constructor(options) {
|
3566
3742
|
super();
|
3567
|
-
init(this, options, instance$
|
3743
|
+
init(this, options, instance$i, create_fragment$i, safe_not_equal, { text: 1 });
|
3568
3744
|
}
|
3569
3745
|
}
|
3570
3746
|
|
3571
3747
|
/* src/components/TextElement.svelte generated by Svelte v3.53.1 */
|
3572
3748
|
|
3573
|
-
function add_css$
|
3749
|
+
function add_css$g(target) {
|
3574
3750
|
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%}");
|
3575
3751
|
}
|
3576
3752
|
|
3577
|
-
function create_fragment$
|
3753
|
+
function create_fragment$h(ctx) {
|
3578
3754
|
let div1;
|
3579
3755
|
let div0;
|
3580
3756
|
let rendertext;
|
@@ -3639,7 +3815,7 @@ function create_fragment$g(ctx) {
|
|
3639
3815
|
};
|
3640
3816
|
}
|
3641
3817
|
|
3642
|
-
function instance$
|
3818
|
+
function instance$h($$self, $$props, $$invalidate) {
|
3643
3819
|
let style;
|
3644
3820
|
let { text = 'サンプルSample' } = $$props;
|
3645
3821
|
let { _textStyle = 'font-size:12px;' } = $$props;
|
@@ -3669,8 +3845,8 @@ class TextElement extends SvelteComponent {
|
|
3669
3845
|
init(
|
3670
3846
|
this,
|
3671
3847
|
options,
|
3672
|
-
instance$
|
3673
|
-
create_fragment$
|
3848
|
+
instance$h,
|
3849
|
+
create_fragment$h,
|
3674
3850
|
safe_not_equal,
|
3675
3851
|
{
|
3676
3852
|
text: 0,
|
@@ -3678,18 +3854,18 @@ class TextElement extends SvelteComponent {
|
|
3678
3854
|
textDirection: 1,
|
3679
3855
|
_style: 4
|
3680
3856
|
},
|
3681
|
-
add_css$
|
3857
|
+
add_css$g
|
3682
3858
|
);
|
3683
3859
|
}
|
3684
3860
|
}
|
3685
3861
|
|
3686
3862
|
/* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
|
3687
3863
|
|
3688
|
-
function add_css$
|
3864
|
+
function add_css$f(target) {
|
3689
3865
|
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)}");
|
3690
3866
|
}
|
3691
3867
|
|
3692
|
-
function create_fragment$
|
3868
|
+
function create_fragment$g(ctx) {
|
3693
3869
|
let div;
|
3694
3870
|
let button;
|
3695
3871
|
let rendertext;
|
@@ -3763,7 +3939,7 @@ function create_fragment$f(ctx) {
|
|
3763
3939
|
};
|
3764
3940
|
}
|
3765
3941
|
|
3766
|
-
function instance$
|
3942
|
+
function instance$g($$self, $$props, $$invalidate) {
|
3767
3943
|
let { text = 'ボタンラベル' } = $$props;
|
3768
3944
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
3769
3945
|
|
@@ -3797,8 +3973,8 @@ class TextButtonElement extends SvelteComponent {
|
|
3797
3973
|
init(
|
3798
3974
|
this,
|
3799
3975
|
options,
|
3800
|
-
instance$
|
3801
|
-
create_fragment$
|
3976
|
+
instance$g,
|
3977
|
+
create_fragment$g,
|
3802
3978
|
safe_not_equal,
|
3803
3979
|
{
|
3804
3980
|
text: 0,
|
@@ -3807,18 +3983,18 @@ class TextButtonElement extends SvelteComponent {
|
|
3807
3983
|
_buttonStyle: 1,
|
3808
3984
|
_style: 2
|
3809
3985
|
},
|
3810
|
-
add_css$
|
3986
|
+
add_css$f
|
3811
3987
|
);
|
3812
3988
|
}
|
3813
3989
|
}
|
3814
3990
|
|
3815
3991
|
/* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
|
3816
3992
|
|
3817
|
-
function add_css$
|
3993
|
+
function add_css$e(target) {
|
3818
3994
|
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)}");
|
3819
3995
|
}
|
3820
3996
|
|
3821
|
-
function create_fragment$
|
3997
|
+
function create_fragment$f(ctx) {
|
3822
3998
|
let div;
|
3823
3999
|
let img;
|
3824
4000
|
let img_src_value;
|
@@ -3900,7 +4076,7 @@ function create_fragment$e(ctx) {
|
|
3900
4076
|
};
|
3901
4077
|
}
|
3902
4078
|
|
3903
|
-
function instance$
|
4079
|
+
function instance$f($$self, $$props, $$invalidate) {
|
3904
4080
|
let { src = 'https://admin.karte.io/action-editor2/public/images/no_image_en.svg' } = $$props;
|
3905
4081
|
let { alt = 'No Image' } = $$props;
|
3906
4082
|
let { transport = false } = $$props;
|
@@ -3938,8 +4114,8 @@ class ImageElement extends SvelteComponent {
|
|
3938
4114
|
init(
|
3939
4115
|
this,
|
3940
4116
|
options,
|
3941
|
-
instance$
|
3942
|
-
create_fragment$
|
4117
|
+
instance$f,
|
4118
|
+
create_fragment$f,
|
3943
4119
|
safe_not_equal,
|
3944
4120
|
{
|
3945
4121
|
src: 0,
|
@@ -3950,18 +4126,18 @@ class ImageElement extends SvelteComponent {
|
|
3950
4126
|
_imageStyle: 3,
|
3951
4127
|
_style: 4
|
3952
4128
|
},
|
3953
|
-
add_css$
|
4129
|
+
add_css$e
|
3954
4130
|
);
|
3955
4131
|
}
|
3956
4132
|
}
|
3957
4133
|
|
3958
4134
|
/* src/components/List.svelte generated by Svelte v3.53.1 */
|
3959
4135
|
|
3960
|
-
function add_css$
|
4136
|
+
function add_css$d(target) {
|
3961
4137
|
append_styles(target, "svelte-dfqtyx", ".list.svelte-dfqtyx{display:flex;width:100%;height:100%;overflow:hidden}");
|
3962
4138
|
}
|
3963
4139
|
|
3964
|
-
function create_fragment$
|
4140
|
+
function create_fragment$e(ctx) {
|
3965
4141
|
let div;
|
3966
4142
|
let current;
|
3967
4143
|
const default_slot_template = /*#slots*/ ctx[6].default;
|
@@ -4031,7 +4207,7 @@ function create_fragment$d(ctx) {
|
|
4031
4207
|
|
4032
4208
|
const LIST_CONTEXT_KEY = Symbol();
|
4033
4209
|
|
4034
|
-
function instance$
|
4210
|
+
function instance$e($$self, $$props, $$invalidate) {
|
4035
4211
|
let style;
|
4036
4212
|
let { $$slots: slots = {}, $$scope } = $$props;
|
4037
4213
|
let { direction = 'vertical' } = $$props;
|
@@ -4098,8 +4274,8 @@ class List extends SvelteComponent {
|
|
4098
4274
|
init(
|
4099
4275
|
this,
|
4100
4276
|
options,
|
4101
|
-
instance$
|
4102
|
-
create_fragment$
|
4277
|
+
instance$e,
|
4278
|
+
create_fragment$e,
|
4103
4279
|
safe_not_equal,
|
4104
4280
|
{
|
4105
4281
|
direction: 1,
|
@@ -4107,18 +4283,18 @@ class List extends SvelteComponent {
|
|
4107
4283
|
background: 3,
|
4108
4284
|
_style: 4
|
4109
4285
|
},
|
4110
|
-
add_css$
|
4286
|
+
add_css$d
|
4111
4287
|
);
|
4112
4288
|
}
|
4113
4289
|
}
|
4114
4290
|
|
4115
4291
|
/* src/components/ListItem.svelte generated by Svelte v3.53.1 */
|
4116
4292
|
|
4117
|
-
function add_css$
|
4293
|
+
function add_css$c(target) {
|
4118
4294
|
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}");
|
4119
4295
|
}
|
4120
4296
|
|
4121
|
-
function create_fragment$
|
4297
|
+
function create_fragment$d(ctx) {
|
4122
4298
|
let div1;
|
4123
4299
|
let div0;
|
4124
4300
|
let current;
|
@@ -4212,7 +4388,7 @@ function create_fragment$c(ctx) {
|
|
4212
4388
|
};
|
4213
4389
|
}
|
4214
4390
|
|
4215
|
-
function instance$
|
4391
|
+
function instance$d($$self, $$props, $$invalidate) {
|
4216
4392
|
let click;
|
4217
4393
|
let listItemStyle;
|
4218
4394
|
let { $$slots: slots = {}, $$scope } = $$props;
|
@@ -4302,17 +4478,17 @@ function instance$c($$self, $$props, $$invalidate) {
|
|
4302
4478
|
class ListItem extends SvelteComponent {
|
4303
4479
|
constructor(options) {
|
4304
4480
|
super();
|
4305
|
-
init(this, options, instance$
|
4481
|
+
init(this, options, instance$d, create_fragment$d, safe_not_equal, { onClick: 3, clickEventName: 4, _style: 0 }, add_css$c);
|
4306
4482
|
}
|
4307
4483
|
}
|
4308
4484
|
|
4309
4485
|
/* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
|
4310
4486
|
|
4311
|
-
function add_css$
|
4487
|
+
function add_css$b(target) {
|
4312
4488
|
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%}");
|
4313
4489
|
}
|
4314
4490
|
|
4315
|
-
function create_fragment$
|
4491
|
+
function create_fragment$c(ctx) {
|
4316
4492
|
let div;
|
4317
4493
|
|
4318
4494
|
return {
|
@@ -4348,7 +4524,7 @@ function create_fragment$b(ctx) {
|
|
4348
4524
|
};
|
4349
4525
|
}
|
4350
4526
|
|
4351
|
-
function instance$
|
4527
|
+
function instance$c($$self, $$props, $$invalidate) {
|
4352
4528
|
let { code } = $$props;
|
4353
4529
|
let { _style = '' } = $$props;
|
4354
4530
|
|
@@ -4363,17 +4539,17 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
4363
4539
|
class EmbedElement extends SvelteComponent {
|
4364
4540
|
constructor(options) {
|
4365
4541
|
super();
|
4366
|
-
init(this, options, instance$
|
4542
|
+
init(this, options, instance$c, create_fragment$c, safe_not_equal, { code: 0, _style: 1 }, add_css$b);
|
4367
4543
|
}
|
4368
4544
|
}
|
4369
4545
|
|
4370
4546
|
/* src/components/MovieYouTubeElement.svelte generated by Svelte v3.53.1 */
|
4371
4547
|
|
4372
|
-
function add_css$
|
4548
|
+
function add_css$a(target) {
|
4373
4549
|
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%}");
|
4374
4550
|
}
|
4375
4551
|
|
4376
|
-
function create_fragment$
|
4552
|
+
function create_fragment$b(ctx) {
|
4377
4553
|
let div1;
|
4378
4554
|
let div0;
|
4379
4555
|
|
@@ -4415,7 +4591,7 @@ function create_fragment$a(ctx) {
|
|
4415
4591
|
};
|
4416
4592
|
}
|
4417
4593
|
|
4418
|
-
function instance$
|
4594
|
+
function instance$b($$self, $$props, $$invalidate) {
|
4419
4595
|
let $system;
|
4420
4596
|
component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
|
4421
4597
|
let { videoId } = $$props;
|
@@ -4594,8 +4770,8 @@ class MovieYouTubeElement extends SvelteComponent {
|
|
4594
4770
|
init(
|
4595
4771
|
this,
|
4596
4772
|
options,
|
4597
|
-
instance$
|
4598
|
-
create_fragment$
|
4773
|
+
instance$b,
|
4774
|
+
create_fragment$b,
|
4599
4775
|
safe_not_equal,
|
4600
4776
|
{
|
4601
4777
|
videoId: 2,
|
@@ -4605,18 +4781,18 @@ class MovieYouTubeElement extends SvelteComponent {
|
|
4605
4781
|
mute: 6,
|
4606
4782
|
_style: 0
|
4607
4783
|
},
|
4608
|
-
add_css$
|
4784
|
+
add_css$a
|
4609
4785
|
);
|
4610
4786
|
}
|
4611
4787
|
}
|
4612
4788
|
|
4613
4789
|
/* src/components/MovieVimeoElement.svelte generated by Svelte v3.53.1 */
|
4614
4790
|
|
4615
|
-
function add_css$
|
4791
|
+
function add_css$9(target) {
|
4616
4792
|
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%}");
|
4617
4793
|
}
|
4618
4794
|
|
4619
|
-
function create_fragment$
|
4795
|
+
function create_fragment$a(ctx) {
|
4620
4796
|
let div1;
|
4621
4797
|
let div0;
|
4622
4798
|
|
@@ -4658,7 +4834,7 @@ function create_fragment$9(ctx) {
|
|
4658
4834
|
};
|
4659
4835
|
}
|
4660
4836
|
|
4661
|
-
function instance$
|
4837
|
+
function instance$a($$self, $$props, $$invalidate) {
|
4662
4838
|
let $system;
|
4663
4839
|
component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
|
4664
4840
|
let { videoId } = $$props;
|
@@ -4801,8 +4977,8 @@ class MovieVimeoElement extends SvelteComponent {
|
|
4801
4977
|
init(
|
4802
4978
|
this,
|
4803
4979
|
options,
|
4804
|
-
instance$
|
4805
|
-
create_fragment$
|
4980
|
+
instance$a,
|
4981
|
+
create_fragment$a,
|
4806
4982
|
safe_not_equal,
|
4807
4983
|
{
|
4808
4984
|
videoId: 2,
|
@@ -4812,7 +4988,7 @@ class MovieVimeoElement extends SvelteComponent {
|
|
4812
4988
|
mute: 6,
|
4813
4989
|
_style: 0
|
4814
4990
|
},
|
4815
|
-
add_css$
|
4991
|
+
add_css$9
|
4816
4992
|
);
|
4817
4993
|
}
|
4818
4994
|
}
|
@@ -4854,7 +5030,7 @@ function registerInput({ name, statePath, validator = () => true, initialValue,
|
|
4854
5030
|
function deleteValues(statePath) {
|
4855
5031
|
formData.update(prev => {
|
4856
5032
|
const targetNames = Object.entries(prev)
|
4857
|
-
.filter(([_, { statePath: s }]) => s === statePath)
|
5033
|
+
.filter(([_, { statePath: s }]) => s === statePath) // eslint-disable-line @typescript-eslint/no-unused-vars
|
4858
5034
|
.map(([name]) => name);
|
4859
5035
|
targetNames.forEach(name => {
|
4860
5036
|
delete prev[name];
|
@@ -4866,8 +5042,8 @@ const getValuesAreValidReader = statePath => ({
|
|
4866
5042
|
subscribe(callback) {
|
4867
5043
|
return formData.subscribe(formData => {
|
4868
5044
|
const valuesAreValid = Object.entries(formData)
|
4869
|
-
.filter(([_, { statePath: s }]) => s === statePath)
|
4870
|
-
.every(([_, { isValid }]) => isValid);
|
5045
|
+
.filter(([_, { statePath: s }]) => s === statePath) // eslint-disable-line @typescript-eslint/no-unused-vars
|
5046
|
+
.every(([_, { isValid }]) => isValid); // eslint-disable-line @typescript-eslint/no-unused-vars
|
4871
5047
|
callback(valuesAreValid);
|
4872
5048
|
});
|
4873
5049
|
},
|
@@ -4914,11 +5090,11 @@ function submit() {
|
|
4914
5090
|
|
4915
5091
|
/* src/components/FormTextarea.svelte generated by Svelte v3.53.1 */
|
4916
5092
|
|
4917
|
-
function add_css$
|
5093
|
+
function add_css$8(target) {
|
4918
5094
|
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}");
|
4919
5095
|
}
|
4920
5096
|
|
4921
|
-
function create_fragment$
|
5097
|
+
function create_fragment$9(ctx) {
|
4922
5098
|
let div;
|
4923
5099
|
let textarea;
|
4924
5100
|
let mounted;
|
@@ -4988,7 +5164,7 @@ function create_fragment$8(ctx) {
|
|
4988
5164
|
};
|
4989
5165
|
}
|
4990
5166
|
|
4991
|
-
function instance$
|
5167
|
+
function instance$9($$self, $$props, $$invalidate) {
|
4992
5168
|
let $value;
|
4993
5169
|
let { name = '' } = $$props;
|
4994
5170
|
let { required = true } = $$props;
|
@@ -5029,8 +5205,8 @@ class FormTextarea extends SvelteComponent {
|
|
5029
5205
|
init(
|
5030
5206
|
this,
|
5031
5207
|
options,
|
5032
|
-
instance$
|
5033
|
-
create_fragment$
|
5208
|
+
instance$9,
|
5209
|
+
create_fragment$9,
|
5034
5210
|
safe_not_equal,
|
5035
5211
|
{
|
5036
5212
|
name: 6,
|
@@ -5038,14 +5214,14 @@ class FormTextarea extends SvelteComponent {
|
|
5038
5214
|
rows: 1,
|
5039
5215
|
placeholder: 2
|
5040
5216
|
},
|
5041
|
-
add_css$
|
5217
|
+
add_css$8
|
5042
5218
|
);
|
5043
5219
|
}
|
5044
5220
|
}
|
5045
5221
|
|
5046
5222
|
/* src/components/FormButton.svelte generated by Svelte v3.53.1 */
|
5047
5223
|
|
5048
|
-
function create_fragment$
|
5224
|
+
function create_fragment$8(ctx) {
|
5049
5225
|
let input;
|
5050
5226
|
let mounted;
|
5051
5227
|
let dispose;
|
@@ -5093,21 +5269,21 @@ function create_fragment$7(ctx) {
|
|
5093
5269
|
};
|
5094
5270
|
}
|
5095
5271
|
|
5096
|
-
function instance$
|
5272
|
+
function instance$8($$self, $$props, $$invalidate) {
|
5097
5273
|
let disabled;
|
5098
5274
|
let $valuesAreValid;
|
5099
5275
|
let { text = '' } = $$props;
|
5100
|
-
let {
|
5276
|
+
let { onClick = { operation: 'submit', args: ['/'] } } = $$props;
|
5101
5277
|
const { path: statePath } = getStateItemContext();
|
5102
5278
|
|
5103
5279
|
function handleClick() {
|
5104
|
-
switch (
|
5280
|
+
switch (onClick.operation) {
|
5105
5281
|
case 'submit':
|
5106
5282
|
{
|
5107
5283
|
if ($valuesAreValid) {
|
5108
5284
|
submit();
|
5109
|
-
const stateId =
|
5110
|
-
setState$1(stateId
|
5285
|
+
const stateId = onClick.args[0];
|
5286
|
+
setState$1(stateId);
|
5111
5287
|
}
|
5112
5288
|
|
5113
5289
|
break;
|
@@ -5115,8 +5291,8 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
5115
5291
|
case 'next':
|
5116
5292
|
{
|
5117
5293
|
if ($valuesAreValid) {
|
5118
|
-
const stateId =
|
5119
|
-
setState$1(stateId
|
5294
|
+
const stateId = onClick.args[0];
|
5295
|
+
setState$1(stateId);
|
5120
5296
|
}
|
5121
5297
|
|
5122
5298
|
break;
|
@@ -5124,8 +5300,8 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
5124
5300
|
case 'prev':
|
5125
5301
|
{
|
5126
5302
|
deleteValues(statePath);
|
5127
|
-
const stateId =
|
5128
|
-
setState$1(stateId
|
5303
|
+
const stateId = onClick.args[0];
|
5304
|
+
setState$1(stateId);
|
5129
5305
|
break;
|
5130
5306
|
}
|
5131
5307
|
}
|
@@ -5136,35 +5312,35 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
5136
5312
|
|
5137
5313
|
$$self.$$set = $$props => {
|
5138
5314
|
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
5139
|
-
if ('
|
5315
|
+
if ('onClick' in $$props) $$invalidate(4, onClick = $$props.onClick);
|
5140
5316
|
};
|
5141
5317
|
|
5142
5318
|
$$self.$$.update = () => {
|
5143
|
-
if ($$self.$$.dirty & /*
|
5319
|
+
if ($$self.$$.dirty & /*onClick, $valuesAreValid*/ 48) {
|
5144
5320
|
$$invalidate(1, disabled = (() => {
|
5145
|
-
const enabled =
|
5321
|
+
const enabled = onClick.operation === 'prev' || $valuesAreValid;
|
5146
5322
|
return !enabled;
|
5147
5323
|
})());
|
5148
5324
|
}
|
5149
5325
|
};
|
5150
5326
|
|
5151
|
-
return [text, disabled, handleClick, valuesAreValid,
|
5327
|
+
return [text, disabled, handleClick, valuesAreValid, onClick, $valuesAreValid];
|
5152
5328
|
}
|
5153
5329
|
|
5154
5330
|
class FormButton extends SvelteComponent {
|
5155
5331
|
constructor(options) {
|
5156
5332
|
super();
|
5157
|
-
init(this, options, instance$
|
5333
|
+
init(this, options, instance$8, create_fragment$8, safe_not_equal, { text: 0, onClick: 4 });
|
5158
5334
|
}
|
5159
5335
|
}
|
5160
5336
|
|
5161
5337
|
/* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
|
5162
5338
|
|
5163
|
-
function add_css$
|
5339
|
+
function add_css$7(target) {
|
5164
5340
|
append_styles(target, "svelte-1ajmbw1", ".radio-buttons.svelte-1ajmbw1{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
|
5165
5341
|
}
|
5166
5342
|
|
5167
|
-
function get_each_context$
|
5343
|
+
function get_each_context$2(ctx, list, i) {
|
5168
5344
|
const child_ctx = ctx.slice();
|
5169
5345
|
child_ctx[7] = list[i];
|
5170
5346
|
child_ctx[9] = i;
|
@@ -5172,7 +5348,7 @@ function get_each_context$1(ctx, list, i) {
|
|
5172
5348
|
}
|
5173
5349
|
|
5174
5350
|
// (23:2) {#each _options as option, i}
|
5175
|
-
function create_each_block$
|
5351
|
+
function create_each_block$2(ctx) {
|
5176
5352
|
let label;
|
5177
5353
|
let input;
|
5178
5354
|
let t0;
|
@@ -5239,13 +5415,13 @@ function create_each_block$1(ctx) {
|
|
5239
5415
|
};
|
5240
5416
|
}
|
5241
5417
|
|
5242
|
-
function create_fragment$
|
5418
|
+
function create_fragment$7(ctx) {
|
5243
5419
|
let div;
|
5244
5420
|
let each_value = /*_options*/ ctx[1];
|
5245
5421
|
let each_blocks = [];
|
5246
5422
|
|
5247
5423
|
for (let i = 0; i < each_value.length; i += 1) {
|
5248
|
-
each_blocks[i] = create_each_block$
|
5424
|
+
each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
|
5249
5425
|
}
|
5250
5426
|
|
5251
5427
|
return {
|
@@ -5285,12 +5461,12 @@ function create_fragment$6(ctx) {
|
|
5285
5461
|
let i;
|
5286
5462
|
|
5287
5463
|
for (i = 0; i < each_value.length; i += 1) {
|
5288
|
-
const child_ctx = get_each_context$
|
5464
|
+
const child_ctx = get_each_context$2(ctx, each_value, i);
|
5289
5465
|
|
5290
5466
|
if (each_blocks[i]) {
|
5291
5467
|
each_blocks[i].p(child_ctx, dirty);
|
5292
5468
|
} else {
|
5293
|
-
each_blocks[i] = create_each_block$
|
5469
|
+
each_blocks[i] = create_each_block$2(child_ctx);
|
5294
5470
|
each_blocks[i].c();
|
5295
5471
|
each_blocks[i].m(div, null);
|
5296
5472
|
}
|
@@ -5312,11 +5488,11 @@ function create_fragment$6(ctx) {
|
|
5312
5488
|
};
|
5313
5489
|
}
|
5314
5490
|
|
5315
|
-
function instance$
|
5491
|
+
function instance$7($$self, $$props, $$invalidate) {
|
5316
5492
|
let _options;
|
5317
5493
|
let $value;
|
5318
5494
|
let { name = '' } = $$props;
|
5319
|
-
let { options = '
|
5495
|
+
let { options = 'ラジオボタン1,ラジオボタン2,ラジオボタン3' } = $$props;
|
5320
5496
|
const { path: statePath } = getStateItemContext();
|
5321
5497
|
|
5322
5498
|
const value = registerInput({
|
@@ -5353,17 +5529,17 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
5353
5529
|
class FormRadioButtons extends SvelteComponent {
|
5354
5530
|
constructor(options) {
|
5355
5531
|
super();
|
5356
|
-
init(this, options, instance$
|
5532
|
+
init(this, options, instance$7, create_fragment$7, safe_not_equal, { name: 0, options: 5 }, add_css$7);
|
5357
5533
|
}
|
5358
5534
|
}
|
5359
5535
|
|
5360
5536
|
/* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
|
5361
5537
|
|
5362
|
-
function add_css$
|
5538
|
+
function add_css$6(target) {
|
5363
5539
|
append_styles(target, "svelte-1ajmbw1", ".radio-buttons.svelte-1ajmbw1{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
|
5364
5540
|
}
|
5365
5541
|
|
5366
|
-
function get_each_context(ctx, list, i) {
|
5542
|
+
function get_each_context$1(ctx, list, i) {
|
5367
5543
|
const child_ctx = ctx.slice();
|
5368
5544
|
child_ctx[6] = list[i];
|
5369
5545
|
child_ctx[8] = i;
|
@@ -5416,7 +5592,7 @@ function create_if_block(ctx) {
|
|
5416
5592
|
}
|
5417
5593
|
|
5418
5594
|
// (24:4) {#each _options as option, i}
|
5419
|
-
function create_each_block(ctx) {
|
5595
|
+
function create_each_block$1(ctx) {
|
5420
5596
|
let option;
|
5421
5597
|
let t;
|
5422
5598
|
let option_value_value;
|
@@ -5478,7 +5654,7 @@ function create_each_block(ctx) {
|
|
5478
5654
|
};
|
5479
5655
|
}
|
5480
5656
|
|
5481
|
-
function create_fragment$
|
5657
|
+
function create_fragment$6(ctx) {
|
5482
5658
|
let div;
|
5483
5659
|
let select;
|
5484
5660
|
let mounted;
|
@@ -5487,7 +5663,7 @@ function create_fragment$5(ctx) {
|
|
5487
5663
|
let each_blocks = [];
|
5488
5664
|
|
5489
5665
|
for (let i = 0; i < each_value.length; i += 1) {
|
5490
|
-
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
5666
|
+
each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
|
5491
5667
|
}
|
5492
5668
|
|
5493
5669
|
return {
|
@@ -5537,12 +5713,12 @@ function create_fragment$5(ctx) {
|
|
5537
5713
|
let i;
|
5538
5714
|
|
5539
5715
|
for (i = 0; i < each_value.length; i += 1) {
|
5540
|
-
const child_ctx = get_each_context(ctx, each_value, i);
|
5716
|
+
const child_ctx = get_each_context$1(ctx, each_value, i);
|
5541
5717
|
|
5542
5718
|
if (each_blocks[i]) {
|
5543
5719
|
each_blocks[i].p(child_ctx, dirty);
|
5544
5720
|
} else {
|
5545
|
-
each_blocks[i] = create_each_block(child_ctx);
|
5721
|
+
each_blocks[i] = create_each_block$1(child_ctx);
|
5546
5722
|
each_blocks[i].c();
|
5547
5723
|
each_blocks[i].m(select, null);
|
5548
5724
|
}
|
@@ -5566,7 +5742,7 @@ function create_fragment$5(ctx) {
|
|
5566
5742
|
};
|
5567
5743
|
}
|
5568
5744
|
|
5569
|
-
function instance$
|
5745
|
+
function instance$6($$self, $$props, $$invalidate) {
|
5570
5746
|
let _options;
|
5571
5747
|
let { name = '' } = $$props;
|
5572
5748
|
let { options = 'プルダウン1,プルダウン2,プルダウン3' } = $$props;
|
@@ -5603,7 +5779,217 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
5603
5779
|
class FormSelect extends SvelteComponent {
|
5604
5780
|
constructor(options) {
|
5605
5781
|
super();
|
5606
|
-
init(this, options, instance$
|
5782
|
+
init(this, options, instance$6, create_fragment$6, safe_not_equal, { name: 2, options: 3 }, add_css$6);
|
5783
|
+
}
|
5784
|
+
}
|
5785
|
+
|
5786
|
+
/* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
|
5787
|
+
|
5788
|
+
function add_css$5(target) {
|
5789
|
+
append_styles(target, "svelte-3uhiw4", ".check-boxes.svelte-3uhiw4{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
|
5790
|
+
}
|
5791
|
+
|
5792
|
+
function get_each_context(ctx, list, i) {
|
5793
|
+
const child_ctx = ctx.slice();
|
5794
|
+
child_ctx[8] = list[i];
|
5795
|
+
child_ctx[10] = i;
|
5796
|
+
return child_ctx;
|
5797
|
+
}
|
5798
|
+
|
5799
|
+
// (30:2) {#each _options as option, i}
|
5800
|
+
function create_each_block(ctx) {
|
5801
|
+
let label;
|
5802
|
+
let input;
|
5803
|
+
let t0;
|
5804
|
+
let t1_value = /*option*/ ctx[8] + "";
|
5805
|
+
let t1;
|
5806
|
+
let t2;
|
5807
|
+
let mounted;
|
5808
|
+
let dispose;
|
5809
|
+
|
5810
|
+
return {
|
5811
|
+
c() {
|
5812
|
+
label = element("label");
|
5813
|
+
input = element("input");
|
5814
|
+
t0 = space();
|
5815
|
+
t1 = text(t1_value);
|
5816
|
+
t2 = space();
|
5817
|
+
this.h();
|
5818
|
+
},
|
5819
|
+
l(nodes) {
|
5820
|
+
label = claim_element(nodes, "LABEL", {});
|
5821
|
+
var label_nodes = children(label);
|
5822
|
+
input = claim_element(label_nodes, "INPUT", { type: true, name: true });
|
5823
|
+
t0 = claim_space(label_nodes);
|
5824
|
+
t1 = claim_text(label_nodes, t1_value);
|
5825
|
+
t2 = claim_space(label_nodes);
|
5826
|
+
label_nodes.forEach(detach);
|
5827
|
+
this.h();
|
5828
|
+
},
|
5829
|
+
h() {
|
5830
|
+
attr(input, "type", "checkbox");
|
5831
|
+
attr(input, "name", /*name*/ ctx[0]);
|
5832
|
+
input.value = /*$value*/ ctx[2];
|
5833
|
+
},
|
5834
|
+
m(target, anchor) {
|
5835
|
+
insert_hydration(target, label, anchor);
|
5836
|
+
append_hydration(label, input);
|
5837
|
+
append_hydration(label, t0);
|
5838
|
+
append_hydration(label, t1);
|
5839
|
+
append_hydration(label, t2);
|
5840
|
+
|
5841
|
+
if (!mounted) {
|
5842
|
+
dispose = listen(input, "change", /*handleChange*/ ctx[4](/*i*/ ctx[10]));
|
5843
|
+
mounted = true;
|
5844
|
+
}
|
5845
|
+
},
|
5846
|
+
p(new_ctx, dirty) {
|
5847
|
+
ctx = new_ctx;
|
5848
|
+
|
5849
|
+
if (dirty & /*name*/ 1) {
|
5850
|
+
attr(input, "name", /*name*/ ctx[0]);
|
5851
|
+
}
|
5852
|
+
|
5853
|
+
if (dirty & /*$value*/ 4) {
|
5854
|
+
input.value = /*$value*/ ctx[2];
|
5855
|
+
}
|
5856
|
+
|
5857
|
+
if (dirty & /*_options*/ 2 && t1_value !== (t1_value = /*option*/ ctx[8] + "")) set_data(t1, t1_value);
|
5858
|
+
},
|
5859
|
+
d(detaching) {
|
5860
|
+
if (detaching) detach(label);
|
5861
|
+
mounted = false;
|
5862
|
+
dispose();
|
5863
|
+
}
|
5864
|
+
};
|
5865
|
+
}
|
5866
|
+
|
5867
|
+
function create_fragment$5(ctx) {
|
5868
|
+
let div;
|
5869
|
+
let each_value = /*_options*/ ctx[1];
|
5870
|
+
let each_blocks = [];
|
5871
|
+
|
5872
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
5873
|
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
5874
|
+
}
|
5875
|
+
|
5876
|
+
return {
|
5877
|
+
c() {
|
5878
|
+
div = element("div");
|
5879
|
+
|
5880
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
5881
|
+
each_blocks[i].c();
|
5882
|
+
}
|
5883
|
+
|
5884
|
+
this.h();
|
5885
|
+
},
|
5886
|
+
l(nodes) {
|
5887
|
+
div = claim_element(nodes, "DIV", { class: true });
|
5888
|
+
var div_nodes = children(div);
|
5889
|
+
|
5890
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
5891
|
+
each_blocks[i].l(div_nodes);
|
5892
|
+
}
|
5893
|
+
|
5894
|
+
div_nodes.forEach(detach);
|
5895
|
+
this.h();
|
5896
|
+
},
|
5897
|
+
h() {
|
5898
|
+
attr(div, "class", "check-boxes svelte-3uhiw4");
|
5899
|
+
},
|
5900
|
+
m(target, anchor) {
|
5901
|
+
insert_hydration(target, div, anchor);
|
5902
|
+
|
5903
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
5904
|
+
each_blocks[i].m(div, null);
|
5905
|
+
}
|
5906
|
+
},
|
5907
|
+
p(ctx, [dirty]) {
|
5908
|
+
if (dirty & /*_options, name, $value, handleChange*/ 23) {
|
5909
|
+
each_value = /*_options*/ ctx[1];
|
5910
|
+
let i;
|
5911
|
+
|
5912
|
+
for (i = 0; i < each_value.length; i += 1) {
|
5913
|
+
const child_ctx = get_each_context(ctx, each_value, i);
|
5914
|
+
|
5915
|
+
if (each_blocks[i]) {
|
5916
|
+
each_blocks[i].p(child_ctx, dirty);
|
5917
|
+
} else {
|
5918
|
+
each_blocks[i] = create_each_block(child_ctx);
|
5919
|
+
each_blocks[i].c();
|
5920
|
+
each_blocks[i].m(div, null);
|
5921
|
+
}
|
5922
|
+
}
|
5923
|
+
|
5924
|
+
for (; i < each_blocks.length; i += 1) {
|
5925
|
+
each_blocks[i].d(1);
|
5926
|
+
}
|
5927
|
+
|
5928
|
+
each_blocks.length = each_value.length;
|
5929
|
+
}
|
5930
|
+
},
|
5931
|
+
i: noop,
|
5932
|
+
o: noop,
|
5933
|
+
d(detaching) {
|
5934
|
+
if (detaching) detach(div);
|
5935
|
+
destroy_each(each_blocks, detaching);
|
5936
|
+
}
|
5937
|
+
};
|
5938
|
+
}
|
5939
|
+
|
5940
|
+
function instance$5($$self, $$props, $$invalidate) {
|
5941
|
+
let _options;
|
5942
|
+
let isCheckedArray;
|
5943
|
+
let $value;
|
5944
|
+
let { name = '' } = $$props;
|
5945
|
+
let { options = 'チェックボックス1,チェックボックス2,チェックボックス3' } = $$props;
|
5946
|
+
const { path: statePath } = getStateItemContext();
|
5947
|
+
|
5948
|
+
const value = registerInput({
|
5949
|
+
name,
|
5950
|
+
statePath,
|
5951
|
+
initialValue: [],
|
5952
|
+
validator(value) {
|
5953
|
+
return value.length > 0;
|
5954
|
+
}
|
5955
|
+
});
|
5956
|
+
|
5957
|
+
component_subscribe($$self, value, value => $$invalidate(2, $value = value));
|
5958
|
+
|
5959
|
+
const handleChange = index => event => {
|
5960
|
+
if (isCheckedArray[index] !== event.target.checked) {
|
5961
|
+
isCheckedArray[index] = event.target.checked;
|
5962
|
+
isCheckedArray = [...isCheckedArray];
|
5963
|
+
const updated = _options.filter((option, i) => isCheckedArray[i]);
|
5964
|
+
value.set(updated);
|
5965
|
+
}
|
5966
|
+
};
|
5967
|
+
|
5968
|
+
$$self.$$set = $$props => {
|
5969
|
+
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
5970
|
+
if ('options' in $$props) $$invalidate(5, options = $$props.options);
|
5971
|
+
};
|
5972
|
+
|
5973
|
+
$$self.$$.update = () => {
|
5974
|
+
if ($$self.$$.dirty & /*options*/ 32) {
|
5975
|
+
$$invalidate(1, _options = options.split(','));
|
5976
|
+
}
|
5977
|
+
|
5978
|
+
if ($$self.$$.dirty & /*$value, _options*/ 6) {
|
5979
|
+
isCheckedArray = (() => {
|
5980
|
+
const checkedSet = new Set($value);
|
5981
|
+
return _options.map(option => checkedSet.has(option));
|
5982
|
+
})();
|
5983
|
+
}
|
5984
|
+
};
|
5985
|
+
|
5986
|
+
return [name, _options, $value, value, handleChange, options];
|
5987
|
+
}
|
5988
|
+
|
5989
|
+
class FormCheckBoxes extends SvelteComponent {
|
5990
|
+
constructor(options) {
|
5991
|
+
super();
|
5992
|
+
init(this, options, instance$5, create_fragment$5, safe_not_equal, { name: 0, options: 5 }, add_css$5);
|
5607
5993
|
}
|
5608
5994
|
}
|
5609
5995
|
|
@@ -6579,4 +6965,4 @@ class ImageBlock extends SvelteComponent {
|
|
6579
6965
|
}
|
6580
6966
|
}
|
6581
6967
|
|
6582
|
-
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 };
|
6968
|
+
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 };
|