optimized-react-component-library-xyz123 3.2.1 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +20 -1713
- package/dist/index.d.ts +20 -1713
- package/dist/index.js +74 -86
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +94 -106
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -14
- package/src/css/mobileView.css +1 -0
- package/src/css/styles.css +10 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import react__default, { ComponentType, SVGProps, FC, ElementType, RefObject, ReactNode } from 'react';
|
|
1
|
+
import React$1, { ComponentType, SVGProps, FC, ElementType, RefObject, ReactNode } from 'react';
|
|
3
2
|
import * as reselect from 'reselect';
|
|
4
3
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
5
4
|
import { PayloadAction, ActionReducerMapBuilder } from '@reduxjs/toolkit';
|
|
5
|
+
import * as immer from 'immer';
|
|
6
6
|
|
|
7
7
|
interface IApplicationContent {
|
|
8
8
|
headline?: string;
|
|
@@ -394,36 +394,8 @@ interface LanguageState {
|
|
|
394
394
|
declare const createGlobalLanguageSlice: (initialConfig: LanguageSupportConfig, options?: {
|
|
395
395
|
name?: string;
|
|
396
396
|
}) => _reduxjs_toolkit.Slice<LanguageState, {
|
|
397
|
-
setActivatedLanguage: (state:
|
|
398
|
-
|
|
399
|
-
languageSupport: {
|
|
400
|
-
language: string;
|
|
401
|
-
backButton: string;
|
|
402
|
-
forwardButton: string;
|
|
403
|
-
sendButton: string;
|
|
404
|
-
restartButton: string;
|
|
405
|
-
}[];
|
|
406
|
-
languageSupportLoaded: boolean;
|
|
407
|
-
backButton: string;
|
|
408
|
-
forwardButton: string;
|
|
409
|
-
sendButton: string;
|
|
410
|
-
restartButton: string;
|
|
411
|
-
}, action: PayloadAction<string>) => void;
|
|
412
|
-
setGlobalLangauage: (state: {
|
|
413
|
-
activatedLanguage: string;
|
|
414
|
-
languageSupport: {
|
|
415
|
-
language: string;
|
|
416
|
-
backButton: string;
|
|
417
|
-
forwardButton: string;
|
|
418
|
-
sendButton: string;
|
|
419
|
-
restartButton: string;
|
|
420
|
-
}[];
|
|
421
|
-
languageSupportLoaded: boolean;
|
|
422
|
-
backButton: string;
|
|
423
|
-
forwardButton: string;
|
|
424
|
-
sendButton: string;
|
|
425
|
-
restartButton: string;
|
|
426
|
-
}, action: PayloadAction<LanguageSupportConfig>) => void;
|
|
397
|
+
setActivatedLanguage: (state: immer.WritableDraft<LanguageState>, action: PayloadAction<string>) => void;
|
|
398
|
+
setGlobalLangauage: (state: immer.WritableDraft<LanguageState>, action: PayloadAction<LanguageSupportConfig>) => void;
|
|
427
399
|
}, string, string, _reduxjs_toolkit.SliceSelectors<LanguageState>>;
|
|
428
400
|
declare const makeglobalLanguageSelectors: <TState>(selectSlice: (state: TState) => LanguageState) => {
|
|
429
401
|
selectActivatedLanguage: (state: TState) => string;
|
|
@@ -496,1133 +468,23 @@ declare const createFormSlice: (initialState: IFormState, options?: {
|
|
|
496
468
|
* Laddar in eller uppdaterar applikationens övergripande textdata och metadata i.
|
|
497
469
|
* global state. Sätter även formLoaded = true när innehållet är färdiginläst.
|
|
498
470
|
*/
|
|
499
|
-
setApplicationContent: (state:
|
|
500
|
-
applicationContent: {
|
|
501
|
-
headline?: string | undefined;
|
|
502
|
-
body?: string | undefined;
|
|
503
|
-
linksForMoreInfo?: {
|
|
504
|
-
title: string;
|
|
505
|
-
url: string;
|
|
506
|
-
ariaLabel?: string | undefined;
|
|
507
|
-
activatedLanguage?: string | undefined;
|
|
508
|
-
openTarget?: string | undefined;
|
|
509
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
510
|
-
iconType?: string | undefined;
|
|
511
|
-
}[] | undefined;
|
|
512
|
-
alertInText?: string | undefined;
|
|
513
|
-
pageTitle?: string | undefined;
|
|
514
|
-
textblocks?: {
|
|
515
|
-
id?: string | undefined;
|
|
516
|
-
headline?: string | undefined;
|
|
517
|
-
body?: string | undefined;
|
|
518
|
-
linksForMoreInfo?: {
|
|
519
|
-
title: string;
|
|
520
|
-
url: string;
|
|
521
|
-
ariaLabel?: string | undefined;
|
|
522
|
-
activatedLanguage?: string | undefined;
|
|
523
|
-
openTarget?: string | undefined;
|
|
524
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
525
|
-
iconType?: string | undefined;
|
|
526
|
-
}[] | undefined;
|
|
527
|
-
alertInText?: string | undefined;
|
|
528
|
-
pageTitle?: string | undefined;
|
|
529
|
-
textAboveStartButton?: string | undefined;
|
|
530
|
-
}[] | undefined;
|
|
531
|
-
textAboveStartButton?: string | undefined;
|
|
532
|
-
languageSupport: [{
|
|
533
|
-
language: string;
|
|
534
|
-
headline: string;
|
|
535
|
-
body: string;
|
|
536
|
-
linksForMoreInfo: {
|
|
537
|
-
title: string;
|
|
538
|
-
url: string;
|
|
539
|
-
ariaLabel?: string | undefined;
|
|
540
|
-
activatedLanguage?: string | undefined;
|
|
541
|
-
openTarget?: string | undefined;
|
|
542
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
543
|
-
iconType?: string | undefined;
|
|
544
|
-
}[];
|
|
545
|
-
pageTitle: string;
|
|
546
|
-
textblocks: {
|
|
547
|
-
id?: string | undefined;
|
|
548
|
-
headline?: string | undefined;
|
|
549
|
-
body?: string | undefined;
|
|
550
|
-
linksForMoreInfo?: {
|
|
551
|
-
title: string;
|
|
552
|
-
url: string;
|
|
553
|
-
ariaLabel?: string | undefined;
|
|
554
|
-
activatedLanguage?: string | undefined;
|
|
555
|
-
openTarget?: string | undefined;
|
|
556
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
557
|
-
iconType?: string | undefined;
|
|
558
|
-
}[] | undefined;
|
|
559
|
-
alertInText?: string | undefined;
|
|
560
|
-
pageTitle?: string | undefined;
|
|
561
|
-
textAboveStartButton?: string | undefined;
|
|
562
|
-
}[];
|
|
563
|
-
textAboveStartButton?: string | undefined;
|
|
564
|
-
}];
|
|
565
|
-
};
|
|
566
|
-
steps: {
|
|
567
|
-
step: number;
|
|
568
|
-
stepHeadline?: string | undefined;
|
|
569
|
-
stepDescription?: string | undefined;
|
|
570
|
-
shortNameInStepper: string;
|
|
571
|
-
shortNameInPreview?: string | undefined;
|
|
572
|
-
languageSupport?: any[] | undefined;
|
|
573
|
-
}[];
|
|
574
|
-
questions: {
|
|
575
|
-
id?: number | undefined;
|
|
576
|
-
mappingId?: string | undefined;
|
|
577
|
-
step?: number | undefined;
|
|
578
|
-
categoryLabel?: string | undefined;
|
|
579
|
-
categoryDescription?: string | undefined;
|
|
580
|
-
legend?: string | undefined;
|
|
581
|
-
hideCategory?: boolean | undefined;
|
|
582
|
-
questionLabel?: string | undefined;
|
|
583
|
-
previewLabel?: string | undefined;
|
|
584
|
-
validationSummaryLabel?: string | undefined;
|
|
585
|
-
hideQuestion?: boolean | undefined;
|
|
586
|
-
answer?: string | undefined;
|
|
587
|
-
files?: ({
|
|
588
|
-
lastModified: number;
|
|
589
|
-
name: string;
|
|
590
|
-
webkitRelativePath: string;
|
|
591
|
-
size: number;
|
|
592
|
-
type: string;
|
|
593
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
594
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
595
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
596
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
597
|
-
text: () => Promise<string>;
|
|
598
|
-
} | {
|
|
599
|
-
file: {
|
|
600
|
-
lastModified: number;
|
|
601
|
-
name: string;
|
|
602
|
-
webkitRelativePath: string;
|
|
603
|
-
size: number;
|
|
604
|
-
type: string;
|
|
605
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
606
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
607
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
608
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
609
|
-
text: () => Promise<string>;
|
|
610
|
-
};
|
|
611
|
-
dataURL: string;
|
|
612
|
-
id?: string | undefined;
|
|
613
|
-
} | {
|
|
614
|
-
FileName: string;
|
|
615
|
-
FileSize: number;
|
|
616
|
-
FileType: string;
|
|
617
|
-
dataURL: string | {
|
|
618
|
-
byteLength: number;
|
|
619
|
-
slice: (begin?: number, end?: number) => ArrayBuffer;
|
|
620
|
-
maxByteLength: number;
|
|
621
|
-
resizable: boolean;
|
|
622
|
-
resize: (newByteLength?: number) => void;
|
|
623
|
-
detached: boolean;
|
|
624
|
-
transfer: (newByteLength?: number) => ArrayBuffer;
|
|
625
|
-
transferToFixedLength: (newByteLength?: number) => ArrayBuffer;
|
|
626
|
-
[Symbol.toStringTag]: "ArrayBuffer";
|
|
627
|
-
} | null;
|
|
628
|
-
id?: string | undefined;
|
|
629
|
-
})[] | null | undefined;
|
|
630
|
-
allowedTotalFileSize?: number | undefined;
|
|
631
|
-
allowedNumberOfFiles?: number | undefined;
|
|
632
|
-
allowedFileTypes?: string[] | undefined;
|
|
633
|
-
aboutText?: string | undefined;
|
|
634
|
-
isQuestionMandatory?: boolean | undefined;
|
|
635
|
-
questionType?: string | undefined;
|
|
636
|
-
options?: {
|
|
637
|
-
label: string;
|
|
638
|
-
value?: string | undefined;
|
|
639
|
-
id?: string | undefined;
|
|
640
|
-
info?: string | undefined;
|
|
641
|
-
optionCategory?: string | undefined;
|
|
642
|
-
}[] | undefined;
|
|
643
|
-
visible?: boolean | undefined;
|
|
644
|
-
isDisplayed?: boolean | undefined;
|
|
645
|
-
hasValidationError?: boolean | undefined;
|
|
646
|
-
validationType?: string[] | undefined;
|
|
647
|
-
validationDefaultMessesege?: string | undefined;
|
|
648
|
-
questionGroupId?: number | undefined;
|
|
649
|
-
questionGroupType?: string | undefined;
|
|
650
|
-
dependsOnOtherQuestion?: any[] | undefined;
|
|
651
|
-
questionExtraAttribute?: {
|
|
652
|
-
answerMaxLength?: number | undefined;
|
|
653
|
-
disabled?: boolean | undefined;
|
|
654
|
-
autoComplete?: string | undefined;
|
|
655
|
-
inputType?: string | undefined;
|
|
656
|
-
showTextAreaCounter?: boolean | undefined;
|
|
657
|
-
hideValidationMessage?: boolean | undefined;
|
|
658
|
-
hideTextCounter?: boolean | undefined;
|
|
659
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
660
|
-
spellCheck?: boolean | undefined;
|
|
661
|
-
autoCapitalize?: string | undefined;
|
|
662
|
-
} | undefined;
|
|
663
|
-
infoOnly?: {
|
|
664
|
-
id?: string | undefined;
|
|
665
|
-
headline?: string | undefined;
|
|
666
|
-
body?: string | undefined;
|
|
667
|
-
linksForMoreInfo?: {
|
|
668
|
-
title: string;
|
|
669
|
-
url: string;
|
|
670
|
-
ariaLabel?: string | undefined;
|
|
671
|
-
activatedLanguage?: string | undefined;
|
|
672
|
-
openTarget?: string | undefined;
|
|
673
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
674
|
-
iconType?: string | undefined;
|
|
675
|
-
}[] | undefined;
|
|
676
|
-
alertInText?: string | undefined;
|
|
677
|
-
pageTitle?: string | undefined;
|
|
678
|
-
textAboveStartButton?: string | undefined;
|
|
679
|
-
} | undefined;
|
|
680
|
-
languageSupport: any[];
|
|
681
|
-
}[];
|
|
682
|
-
formLoaded: boolean;
|
|
683
|
-
formStatus: "notloaded" | "idle" | "loading" | "failed" | "success";
|
|
684
|
-
}, action: PayloadAction<any>) => void;
|
|
471
|
+
setApplicationContent: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
685
472
|
/**
|
|
686
473
|
* Laddar in eller uppdaterar step-data i global state.
|
|
687
474
|
*/
|
|
688
|
-
setStep: (state:
|
|
689
|
-
applicationContent: {
|
|
690
|
-
headline?: string | undefined;
|
|
691
|
-
body?: string | undefined;
|
|
692
|
-
linksForMoreInfo?: {
|
|
693
|
-
title: string;
|
|
694
|
-
url: string;
|
|
695
|
-
ariaLabel?: string | undefined;
|
|
696
|
-
activatedLanguage?: string | undefined;
|
|
697
|
-
openTarget?: string | undefined;
|
|
698
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
699
|
-
iconType?: string | undefined;
|
|
700
|
-
}[] | undefined;
|
|
701
|
-
alertInText?: string | undefined;
|
|
702
|
-
pageTitle?: string | undefined;
|
|
703
|
-
textblocks?: {
|
|
704
|
-
id?: string | undefined;
|
|
705
|
-
headline?: string | undefined;
|
|
706
|
-
body?: string | undefined;
|
|
707
|
-
linksForMoreInfo?: {
|
|
708
|
-
title: string;
|
|
709
|
-
url: string;
|
|
710
|
-
ariaLabel?: string | undefined;
|
|
711
|
-
activatedLanguage?: string | undefined;
|
|
712
|
-
openTarget?: string | undefined;
|
|
713
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
714
|
-
iconType?: string | undefined;
|
|
715
|
-
}[] | undefined;
|
|
716
|
-
alertInText?: string | undefined;
|
|
717
|
-
pageTitle?: string | undefined;
|
|
718
|
-
textAboveStartButton?: string | undefined;
|
|
719
|
-
}[] | undefined;
|
|
720
|
-
textAboveStartButton?: string | undefined;
|
|
721
|
-
languageSupport: [{
|
|
722
|
-
language: string;
|
|
723
|
-
headline: string;
|
|
724
|
-
body: string;
|
|
725
|
-
linksForMoreInfo: {
|
|
726
|
-
title: string;
|
|
727
|
-
url: string;
|
|
728
|
-
ariaLabel?: string | undefined;
|
|
729
|
-
activatedLanguage?: string | undefined;
|
|
730
|
-
openTarget?: string | undefined;
|
|
731
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
732
|
-
iconType?: string | undefined;
|
|
733
|
-
}[];
|
|
734
|
-
pageTitle: string;
|
|
735
|
-
textblocks: {
|
|
736
|
-
id?: string | undefined;
|
|
737
|
-
headline?: string | undefined;
|
|
738
|
-
body?: string | undefined;
|
|
739
|
-
linksForMoreInfo?: {
|
|
740
|
-
title: string;
|
|
741
|
-
url: string;
|
|
742
|
-
ariaLabel?: string | undefined;
|
|
743
|
-
activatedLanguage?: string | undefined;
|
|
744
|
-
openTarget?: string | undefined;
|
|
745
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
746
|
-
iconType?: string | undefined;
|
|
747
|
-
}[] | undefined;
|
|
748
|
-
alertInText?: string | undefined;
|
|
749
|
-
pageTitle?: string | undefined;
|
|
750
|
-
textAboveStartButton?: string | undefined;
|
|
751
|
-
}[];
|
|
752
|
-
textAboveStartButton?: string | undefined;
|
|
753
|
-
}];
|
|
754
|
-
};
|
|
755
|
-
steps: {
|
|
756
|
-
step: number;
|
|
757
|
-
stepHeadline?: string | undefined;
|
|
758
|
-
stepDescription?: string | undefined;
|
|
759
|
-
shortNameInStepper: string;
|
|
760
|
-
shortNameInPreview?: string | undefined;
|
|
761
|
-
languageSupport?: any[] | undefined;
|
|
762
|
-
}[];
|
|
763
|
-
questions: {
|
|
764
|
-
id?: number | undefined;
|
|
765
|
-
mappingId?: string | undefined;
|
|
766
|
-
step?: number | undefined;
|
|
767
|
-
categoryLabel?: string | undefined;
|
|
768
|
-
categoryDescription?: string | undefined;
|
|
769
|
-
legend?: string | undefined;
|
|
770
|
-
hideCategory?: boolean | undefined;
|
|
771
|
-
questionLabel?: string | undefined;
|
|
772
|
-
previewLabel?: string | undefined;
|
|
773
|
-
validationSummaryLabel?: string | undefined;
|
|
774
|
-
hideQuestion?: boolean | undefined;
|
|
775
|
-
answer?: string | undefined;
|
|
776
|
-
files?: ({
|
|
777
|
-
lastModified: number;
|
|
778
|
-
name: string;
|
|
779
|
-
webkitRelativePath: string;
|
|
780
|
-
size: number;
|
|
781
|
-
type: string;
|
|
782
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
783
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
784
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
785
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
786
|
-
text: () => Promise<string>;
|
|
787
|
-
} | {
|
|
788
|
-
file: {
|
|
789
|
-
lastModified: number;
|
|
790
|
-
name: string;
|
|
791
|
-
webkitRelativePath: string;
|
|
792
|
-
size: number;
|
|
793
|
-
type: string;
|
|
794
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
795
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
796
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
797
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
798
|
-
text: () => Promise<string>;
|
|
799
|
-
};
|
|
800
|
-
dataURL: string;
|
|
801
|
-
id?: string | undefined;
|
|
802
|
-
} | {
|
|
803
|
-
FileName: string;
|
|
804
|
-
FileSize: number;
|
|
805
|
-
FileType: string;
|
|
806
|
-
dataURL: string | {
|
|
807
|
-
byteLength: number;
|
|
808
|
-
slice: (begin?: number, end?: number) => ArrayBuffer;
|
|
809
|
-
maxByteLength: number;
|
|
810
|
-
resizable: boolean;
|
|
811
|
-
resize: (newByteLength?: number) => void;
|
|
812
|
-
detached: boolean;
|
|
813
|
-
transfer: (newByteLength?: number) => ArrayBuffer;
|
|
814
|
-
transferToFixedLength: (newByteLength?: number) => ArrayBuffer;
|
|
815
|
-
[Symbol.toStringTag]: "ArrayBuffer";
|
|
816
|
-
} | null;
|
|
817
|
-
id?: string | undefined;
|
|
818
|
-
})[] | null | undefined;
|
|
819
|
-
allowedTotalFileSize?: number | undefined;
|
|
820
|
-
allowedNumberOfFiles?: number | undefined;
|
|
821
|
-
allowedFileTypes?: string[] | undefined;
|
|
822
|
-
aboutText?: string | undefined;
|
|
823
|
-
isQuestionMandatory?: boolean | undefined;
|
|
824
|
-
questionType?: string | undefined;
|
|
825
|
-
options?: {
|
|
826
|
-
label: string;
|
|
827
|
-
value?: string | undefined;
|
|
828
|
-
id?: string | undefined;
|
|
829
|
-
info?: string | undefined;
|
|
830
|
-
optionCategory?: string | undefined;
|
|
831
|
-
}[] | undefined;
|
|
832
|
-
visible?: boolean | undefined;
|
|
833
|
-
isDisplayed?: boolean | undefined;
|
|
834
|
-
hasValidationError?: boolean | undefined;
|
|
835
|
-
validationType?: string[] | undefined;
|
|
836
|
-
validationDefaultMessesege?: string | undefined;
|
|
837
|
-
questionGroupId?: number | undefined;
|
|
838
|
-
questionGroupType?: string | undefined;
|
|
839
|
-
dependsOnOtherQuestion?: any[] | undefined;
|
|
840
|
-
questionExtraAttribute?: {
|
|
841
|
-
answerMaxLength?: number | undefined;
|
|
842
|
-
disabled?: boolean | undefined;
|
|
843
|
-
autoComplete?: string | undefined;
|
|
844
|
-
inputType?: string | undefined;
|
|
845
|
-
showTextAreaCounter?: boolean | undefined;
|
|
846
|
-
hideValidationMessage?: boolean | undefined;
|
|
847
|
-
hideTextCounter?: boolean | undefined;
|
|
848
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
849
|
-
spellCheck?: boolean | undefined;
|
|
850
|
-
autoCapitalize?: string | undefined;
|
|
851
|
-
} | undefined;
|
|
852
|
-
infoOnly?: {
|
|
853
|
-
id?: string | undefined;
|
|
854
|
-
headline?: string | undefined;
|
|
855
|
-
body?: string | undefined;
|
|
856
|
-
linksForMoreInfo?: {
|
|
857
|
-
title: string;
|
|
858
|
-
url: string;
|
|
859
|
-
ariaLabel?: string | undefined;
|
|
860
|
-
activatedLanguage?: string | undefined;
|
|
861
|
-
openTarget?: string | undefined;
|
|
862
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
863
|
-
iconType?: string | undefined;
|
|
864
|
-
}[] | undefined;
|
|
865
|
-
alertInText?: string | undefined;
|
|
866
|
-
pageTitle?: string | undefined;
|
|
867
|
-
textAboveStartButton?: string | undefined;
|
|
868
|
-
} | undefined;
|
|
869
|
-
languageSupport: any[];
|
|
870
|
-
}[];
|
|
871
|
-
formLoaded: boolean;
|
|
872
|
-
formStatus: "notloaded" | "idle" | "loading" | "failed" | "success";
|
|
873
|
-
}, action: PayloadAction<any>) => void;
|
|
475
|
+
setStep: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
874
476
|
/**
|
|
875
477
|
* Laddar in eller uppdaterar question-data i global state.
|
|
876
478
|
*/
|
|
877
|
-
setQuestion: (state:
|
|
878
|
-
applicationContent: {
|
|
879
|
-
headline?: string | undefined;
|
|
880
|
-
body?: string | undefined;
|
|
881
|
-
linksForMoreInfo?: {
|
|
882
|
-
title: string;
|
|
883
|
-
url: string;
|
|
884
|
-
ariaLabel?: string | undefined;
|
|
885
|
-
activatedLanguage?: string | undefined;
|
|
886
|
-
openTarget?: string | undefined;
|
|
887
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
888
|
-
iconType?: string | undefined;
|
|
889
|
-
}[] | undefined;
|
|
890
|
-
alertInText?: string | undefined;
|
|
891
|
-
pageTitle?: string | undefined;
|
|
892
|
-
textblocks?: {
|
|
893
|
-
id?: string | undefined;
|
|
894
|
-
headline?: string | undefined;
|
|
895
|
-
body?: string | undefined;
|
|
896
|
-
linksForMoreInfo?: {
|
|
897
|
-
title: string;
|
|
898
|
-
url: string;
|
|
899
|
-
ariaLabel?: string | undefined;
|
|
900
|
-
activatedLanguage?: string | undefined;
|
|
901
|
-
openTarget?: string | undefined;
|
|
902
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
903
|
-
iconType?: string | undefined;
|
|
904
|
-
}[] | undefined;
|
|
905
|
-
alertInText?: string | undefined;
|
|
906
|
-
pageTitle?: string | undefined;
|
|
907
|
-
textAboveStartButton?: string | undefined;
|
|
908
|
-
}[] | undefined;
|
|
909
|
-
textAboveStartButton?: string | undefined;
|
|
910
|
-
languageSupport: [{
|
|
911
|
-
language: string;
|
|
912
|
-
headline: string;
|
|
913
|
-
body: string;
|
|
914
|
-
linksForMoreInfo: {
|
|
915
|
-
title: string;
|
|
916
|
-
url: string;
|
|
917
|
-
ariaLabel?: string | undefined;
|
|
918
|
-
activatedLanguage?: string | undefined;
|
|
919
|
-
openTarget?: string | undefined;
|
|
920
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
921
|
-
iconType?: string | undefined;
|
|
922
|
-
}[];
|
|
923
|
-
pageTitle: string;
|
|
924
|
-
textblocks: {
|
|
925
|
-
id?: string | undefined;
|
|
926
|
-
headline?: string | undefined;
|
|
927
|
-
body?: string | undefined;
|
|
928
|
-
linksForMoreInfo?: {
|
|
929
|
-
title: string;
|
|
930
|
-
url: string;
|
|
931
|
-
ariaLabel?: string | undefined;
|
|
932
|
-
activatedLanguage?: string | undefined;
|
|
933
|
-
openTarget?: string | undefined;
|
|
934
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
935
|
-
iconType?: string | undefined;
|
|
936
|
-
}[] | undefined;
|
|
937
|
-
alertInText?: string | undefined;
|
|
938
|
-
pageTitle?: string | undefined;
|
|
939
|
-
textAboveStartButton?: string | undefined;
|
|
940
|
-
}[];
|
|
941
|
-
textAboveStartButton?: string | undefined;
|
|
942
|
-
}];
|
|
943
|
-
};
|
|
944
|
-
steps: {
|
|
945
|
-
step: number;
|
|
946
|
-
stepHeadline?: string | undefined;
|
|
947
|
-
stepDescription?: string | undefined;
|
|
948
|
-
shortNameInStepper: string;
|
|
949
|
-
shortNameInPreview?: string | undefined;
|
|
950
|
-
languageSupport?: any[] | undefined;
|
|
951
|
-
}[];
|
|
952
|
-
questions: {
|
|
953
|
-
id?: number | undefined;
|
|
954
|
-
mappingId?: string | undefined;
|
|
955
|
-
step?: number | undefined;
|
|
956
|
-
categoryLabel?: string | undefined;
|
|
957
|
-
categoryDescription?: string | undefined;
|
|
958
|
-
legend?: string | undefined;
|
|
959
|
-
hideCategory?: boolean | undefined;
|
|
960
|
-
questionLabel?: string | undefined;
|
|
961
|
-
previewLabel?: string | undefined;
|
|
962
|
-
validationSummaryLabel?: string | undefined;
|
|
963
|
-
hideQuestion?: boolean | undefined;
|
|
964
|
-
answer?: string | undefined;
|
|
965
|
-
files?: ({
|
|
966
|
-
lastModified: number;
|
|
967
|
-
name: string;
|
|
968
|
-
webkitRelativePath: string;
|
|
969
|
-
size: number;
|
|
970
|
-
type: string;
|
|
971
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
972
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
973
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
974
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
975
|
-
text: () => Promise<string>;
|
|
976
|
-
} | {
|
|
977
|
-
file: {
|
|
978
|
-
lastModified: number;
|
|
979
|
-
name: string;
|
|
980
|
-
webkitRelativePath: string;
|
|
981
|
-
size: number;
|
|
982
|
-
type: string;
|
|
983
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
984
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
985
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
986
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
987
|
-
text: () => Promise<string>;
|
|
988
|
-
};
|
|
989
|
-
dataURL: string;
|
|
990
|
-
id?: string | undefined;
|
|
991
|
-
} | {
|
|
992
|
-
FileName: string;
|
|
993
|
-
FileSize: number;
|
|
994
|
-
FileType: string;
|
|
995
|
-
dataURL: string | {
|
|
996
|
-
byteLength: number;
|
|
997
|
-
slice: (begin?: number, end?: number) => ArrayBuffer;
|
|
998
|
-
maxByteLength: number;
|
|
999
|
-
resizable: boolean;
|
|
1000
|
-
resize: (newByteLength?: number) => void;
|
|
1001
|
-
detached: boolean;
|
|
1002
|
-
transfer: (newByteLength?: number) => ArrayBuffer;
|
|
1003
|
-
transferToFixedLength: (newByteLength?: number) => ArrayBuffer;
|
|
1004
|
-
[Symbol.toStringTag]: "ArrayBuffer";
|
|
1005
|
-
} | null;
|
|
1006
|
-
id?: string | undefined;
|
|
1007
|
-
})[] | null | undefined;
|
|
1008
|
-
allowedTotalFileSize?: number | undefined;
|
|
1009
|
-
allowedNumberOfFiles?: number | undefined;
|
|
1010
|
-
allowedFileTypes?: string[] | undefined;
|
|
1011
|
-
aboutText?: string | undefined;
|
|
1012
|
-
isQuestionMandatory?: boolean | undefined;
|
|
1013
|
-
questionType?: string | undefined;
|
|
1014
|
-
options?: {
|
|
1015
|
-
label: string;
|
|
1016
|
-
value?: string | undefined;
|
|
1017
|
-
id?: string | undefined;
|
|
1018
|
-
info?: string | undefined;
|
|
1019
|
-
optionCategory?: string | undefined;
|
|
1020
|
-
}[] | undefined;
|
|
1021
|
-
visible?: boolean | undefined;
|
|
1022
|
-
isDisplayed?: boolean | undefined;
|
|
1023
|
-
hasValidationError?: boolean | undefined;
|
|
1024
|
-
validationType?: string[] | undefined;
|
|
1025
|
-
validationDefaultMessesege?: string | undefined;
|
|
1026
|
-
questionGroupId?: number | undefined;
|
|
1027
|
-
questionGroupType?: string | undefined;
|
|
1028
|
-
dependsOnOtherQuestion?: any[] | undefined;
|
|
1029
|
-
questionExtraAttribute?: {
|
|
1030
|
-
answerMaxLength?: number | undefined;
|
|
1031
|
-
disabled?: boolean | undefined;
|
|
1032
|
-
autoComplete?: string | undefined;
|
|
1033
|
-
inputType?: string | undefined;
|
|
1034
|
-
showTextAreaCounter?: boolean | undefined;
|
|
1035
|
-
hideValidationMessage?: boolean | undefined;
|
|
1036
|
-
hideTextCounter?: boolean | undefined;
|
|
1037
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
1038
|
-
spellCheck?: boolean | undefined;
|
|
1039
|
-
autoCapitalize?: string | undefined;
|
|
1040
|
-
} | undefined;
|
|
1041
|
-
infoOnly?: {
|
|
1042
|
-
id?: string | undefined;
|
|
1043
|
-
headline?: string | undefined;
|
|
1044
|
-
body?: string | undefined;
|
|
1045
|
-
linksForMoreInfo?: {
|
|
1046
|
-
title: string;
|
|
1047
|
-
url: string;
|
|
1048
|
-
ariaLabel?: string | undefined;
|
|
1049
|
-
activatedLanguage?: string | undefined;
|
|
1050
|
-
openTarget?: string | undefined;
|
|
1051
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1052
|
-
iconType?: string | undefined;
|
|
1053
|
-
}[] | undefined;
|
|
1054
|
-
alertInText?: string | undefined;
|
|
1055
|
-
pageTitle?: string | undefined;
|
|
1056
|
-
textAboveStartButton?: string | undefined;
|
|
1057
|
-
} | undefined;
|
|
1058
|
-
languageSupport: any[];
|
|
1059
|
-
}[];
|
|
1060
|
-
formLoaded: boolean;
|
|
1061
|
-
formStatus: "notloaded" | "idle" | "loading" | "failed" | "success";
|
|
1062
|
-
}, action: PayloadAction<any>) => void;
|
|
479
|
+
setQuestion: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
1063
480
|
/**
|
|
1064
481
|
* Uppdaterar svaret (answer) för en specifik fråga i global state.
|
|
1065
482
|
*/
|
|
1066
|
-
updateAnswer: (state:
|
|
1067
|
-
applicationContent: {
|
|
1068
|
-
headline?: string | undefined;
|
|
1069
|
-
body?: string | undefined;
|
|
1070
|
-
linksForMoreInfo?: {
|
|
1071
|
-
title: string;
|
|
1072
|
-
url: string;
|
|
1073
|
-
ariaLabel?: string | undefined;
|
|
1074
|
-
activatedLanguage?: string | undefined;
|
|
1075
|
-
openTarget?: string | undefined;
|
|
1076
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1077
|
-
iconType?: string | undefined;
|
|
1078
|
-
}[] | undefined;
|
|
1079
|
-
alertInText?: string | undefined;
|
|
1080
|
-
pageTitle?: string | undefined;
|
|
1081
|
-
textblocks?: {
|
|
1082
|
-
id?: string | undefined;
|
|
1083
|
-
headline?: string | undefined;
|
|
1084
|
-
body?: string | undefined;
|
|
1085
|
-
linksForMoreInfo?: {
|
|
1086
|
-
title: string;
|
|
1087
|
-
url: string;
|
|
1088
|
-
ariaLabel?: string | undefined;
|
|
1089
|
-
activatedLanguage?: string | undefined;
|
|
1090
|
-
openTarget?: string | undefined;
|
|
1091
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1092
|
-
iconType?: string | undefined;
|
|
1093
|
-
}[] | undefined;
|
|
1094
|
-
alertInText?: string | undefined;
|
|
1095
|
-
pageTitle?: string | undefined;
|
|
1096
|
-
textAboveStartButton?: string | undefined;
|
|
1097
|
-
}[] | undefined;
|
|
1098
|
-
textAboveStartButton?: string | undefined;
|
|
1099
|
-
languageSupport: [{
|
|
1100
|
-
language: string;
|
|
1101
|
-
headline: string;
|
|
1102
|
-
body: string;
|
|
1103
|
-
linksForMoreInfo: {
|
|
1104
|
-
title: string;
|
|
1105
|
-
url: string;
|
|
1106
|
-
ariaLabel?: string | undefined;
|
|
1107
|
-
activatedLanguage?: string | undefined;
|
|
1108
|
-
openTarget?: string | undefined;
|
|
1109
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1110
|
-
iconType?: string | undefined;
|
|
1111
|
-
}[];
|
|
1112
|
-
pageTitle: string;
|
|
1113
|
-
textblocks: {
|
|
1114
|
-
id?: string | undefined;
|
|
1115
|
-
headline?: string | undefined;
|
|
1116
|
-
body?: string | undefined;
|
|
1117
|
-
linksForMoreInfo?: {
|
|
1118
|
-
title: string;
|
|
1119
|
-
url: string;
|
|
1120
|
-
ariaLabel?: string | undefined;
|
|
1121
|
-
activatedLanguage?: string | undefined;
|
|
1122
|
-
openTarget?: string | undefined;
|
|
1123
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1124
|
-
iconType?: string | undefined;
|
|
1125
|
-
}[] | undefined;
|
|
1126
|
-
alertInText?: string | undefined;
|
|
1127
|
-
pageTitle?: string | undefined;
|
|
1128
|
-
textAboveStartButton?: string | undefined;
|
|
1129
|
-
}[];
|
|
1130
|
-
textAboveStartButton?: string | undefined;
|
|
1131
|
-
}];
|
|
1132
|
-
};
|
|
1133
|
-
steps: {
|
|
1134
|
-
step: number;
|
|
1135
|
-
stepHeadline?: string | undefined;
|
|
1136
|
-
stepDescription?: string | undefined;
|
|
1137
|
-
shortNameInStepper: string;
|
|
1138
|
-
shortNameInPreview?: string | undefined;
|
|
1139
|
-
languageSupport?: any[] | undefined;
|
|
1140
|
-
}[];
|
|
1141
|
-
questions: {
|
|
1142
|
-
id?: number | undefined;
|
|
1143
|
-
mappingId?: string | undefined;
|
|
1144
|
-
step?: number | undefined;
|
|
1145
|
-
categoryLabel?: string | undefined;
|
|
1146
|
-
categoryDescription?: string | undefined;
|
|
1147
|
-
legend?: string | undefined;
|
|
1148
|
-
hideCategory?: boolean | undefined;
|
|
1149
|
-
questionLabel?: string | undefined;
|
|
1150
|
-
previewLabel?: string | undefined;
|
|
1151
|
-
validationSummaryLabel?: string | undefined;
|
|
1152
|
-
hideQuestion?: boolean | undefined;
|
|
1153
|
-
answer?: string | undefined;
|
|
1154
|
-
files?: ({
|
|
1155
|
-
lastModified: number;
|
|
1156
|
-
name: string;
|
|
1157
|
-
webkitRelativePath: string;
|
|
1158
|
-
size: number;
|
|
1159
|
-
type: string;
|
|
1160
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
1161
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
1162
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
1163
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
1164
|
-
text: () => Promise<string>;
|
|
1165
|
-
} | {
|
|
1166
|
-
file: {
|
|
1167
|
-
lastModified: number;
|
|
1168
|
-
name: string;
|
|
1169
|
-
webkitRelativePath: string;
|
|
1170
|
-
size: number;
|
|
1171
|
-
type: string;
|
|
1172
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
1173
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
1174
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
1175
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
1176
|
-
text: () => Promise<string>;
|
|
1177
|
-
};
|
|
1178
|
-
dataURL: string;
|
|
1179
|
-
id?: string | undefined;
|
|
1180
|
-
} | {
|
|
1181
|
-
FileName: string;
|
|
1182
|
-
FileSize: number;
|
|
1183
|
-
FileType: string;
|
|
1184
|
-
dataURL: string | {
|
|
1185
|
-
byteLength: number;
|
|
1186
|
-
slice: (begin?: number, end?: number) => ArrayBuffer;
|
|
1187
|
-
maxByteLength: number;
|
|
1188
|
-
resizable: boolean;
|
|
1189
|
-
resize: (newByteLength?: number) => void;
|
|
1190
|
-
detached: boolean;
|
|
1191
|
-
transfer: (newByteLength?: number) => ArrayBuffer;
|
|
1192
|
-
transferToFixedLength: (newByteLength?: number) => ArrayBuffer;
|
|
1193
|
-
[Symbol.toStringTag]: "ArrayBuffer";
|
|
1194
|
-
} | null;
|
|
1195
|
-
id?: string | undefined;
|
|
1196
|
-
})[] | null | undefined;
|
|
1197
|
-
allowedTotalFileSize?: number | undefined;
|
|
1198
|
-
allowedNumberOfFiles?: number | undefined;
|
|
1199
|
-
allowedFileTypes?: string[] | undefined;
|
|
1200
|
-
aboutText?: string | undefined;
|
|
1201
|
-
isQuestionMandatory?: boolean | undefined;
|
|
1202
|
-
questionType?: string | undefined;
|
|
1203
|
-
options?: {
|
|
1204
|
-
label: string;
|
|
1205
|
-
value?: string | undefined;
|
|
1206
|
-
id?: string | undefined;
|
|
1207
|
-
info?: string | undefined;
|
|
1208
|
-
optionCategory?: string | undefined;
|
|
1209
|
-
}[] | undefined;
|
|
1210
|
-
visible?: boolean | undefined;
|
|
1211
|
-
isDisplayed?: boolean | undefined;
|
|
1212
|
-
hasValidationError?: boolean | undefined;
|
|
1213
|
-
validationType?: string[] | undefined;
|
|
1214
|
-
validationDefaultMessesege?: string | undefined;
|
|
1215
|
-
questionGroupId?: number | undefined;
|
|
1216
|
-
questionGroupType?: string | undefined;
|
|
1217
|
-
dependsOnOtherQuestion?: any[] | undefined;
|
|
1218
|
-
questionExtraAttribute?: {
|
|
1219
|
-
answerMaxLength?: number | undefined;
|
|
1220
|
-
disabled?: boolean | undefined;
|
|
1221
|
-
autoComplete?: string | undefined;
|
|
1222
|
-
inputType?: string | undefined;
|
|
1223
|
-
showTextAreaCounter?: boolean | undefined;
|
|
1224
|
-
hideValidationMessage?: boolean | undefined;
|
|
1225
|
-
hideTextCounter?: boolean | undefined;
|
|
1226
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
1227
|
-
spellCheck?: boolean | undefined;
|
|
1228
|
-
autoCapitalize?: string | undefined;
|
|
1229
|
-
} | undefined;
|
|
1230
|
-
infoOnly?: {
|
|
1231
|
-
id?: string | undefined;
|
|
1232
|
-
headline?: string | undefined;
|
|
1233
|
-
body?: string | undefined;
|
|
1234
|
-
linksForMoreInfo?: {
|
|
1235
|
-
title: string;
|
|
1236
|
-
url: string;
|
|
1237
|
-
ariaLabel?: string | undefined;
|
|
1238
|
-
activatedLanguage?: string | undefined;
|
|
1239
|
-
openTarget?: string | undefined;
|
|
1240
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1241
|
-
iconType?: string | undefined;
|
|
1242
|
-
}[] | undefined;
|
|
1243
|
-
alertInText?: string | undefined;
|
|
1244
|
-
pageTitle?: string | undefined;
|
|
1245
|
-
textAboveStartButton?: string | undefined;
|
|
1246
|
-
} | undefined;
|
|
1247
|
-
languageSupport: any[];
|
|
1248
|
-
}[];
|
|
1249
|
-
formLoaded: boolean;
|
|
1250
|
-
formStatus: "notloaded" | "idle" | "loading" | "failed" | "success";
|
|
1251
|
-
}, action: PayloadAction<any>) => void;
|
|
483
|
+
updateAnswer: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
1252
484
|
/** Tar bort alla svar (answer) i global state. Används när man startar om formuläret. */
|
|
1253
|
-
removeAllAnswers: (state:
|
|
1254
|
-
applicationContent: {
|
|
1255
|
-
headline?: string | undefined;
|
|
1256
|
-
body?: string | undefined;
|
|
1257
|
-
linksForMoreInfo?: {
|
|
1258
|
-
title: string;
|
|
1259
|
-
url: string;
|
|
1260
|
-
ariaLabel?: string | undefined;
|
|
1261
|
-
activatedLanguage?: string | undefined;
|
|
1262
|
-
openTarget?: string | undefined;
|
|
1263
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1264
|
-
iconType?: string | undefined;
|
|
1265
|
-
}[] | undefined;
|
|
1266
|
-
alertInText?: string | undefined;
|
|
1267
|
-
pageTitle?: string | undefined;
|
|
1268
|
-
textblocks?: {
|
|
1269
|
-
id?: string | undefined;
|
|
1270
|
-
headline?: string | undefined;
|
|
1271
|
-
body?: string | undefined;
|
|
1272
|
-
linksForMoreInfo?: {
|
|
1273
|
-
title: string;
|
|
1274
|
-
url: string;
|
|
1275
|
-
ariaLabel?: string | undefined;
|
|
1276
|
-
activatedLanguage?: string | undefined;
|
|
1277
|
-
openTarget?: string | undefined;
|
|
1278
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1279
|
-
iconType?: string | undefined;
|
|
1280
|
-
}[] | undefined;
|
|
1281
|
-
alertInText?: string | undefined;
|
|
1282
|
-
pageTitle?: string | undefined;
|
|
1283
|
-
textAboveStartButton?: string | undefined;
|
|
1284
|
-
}[] | undefined;
|
|
1285
|
-
textAboveStartButton?: string | undefined;
|
|
1286
|
-
languageSupport: [{
|
|
1287
|
-
language: string;
|
|
1288
|
-
headline: string;
|
|
1289
|
-
body: string;
|
|
1290
|
-
linksForMoreInfo: {
|
|
1291
|
-
title: string;
|
|
1292
|
-
url: string;
|
|
1293
|
-
ariaLabel?: string | undefined;
|
|
1294
|
-
activatedLanguage?: string | undefined;
|
|
1295
|
-
openTarget?: string | undefined;
|
|
1296
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1297
|
-
iconType?: string | undefined;
|
|
1298
|
-
}[];
|
|
1299
|
-
pageTitle: string;
|
|
1300
|
-
textblocks: {
|
|
1301
|
-
id?: string | undefined;
|
|
1302
|
-
headline?: string | undefined;
|
|
1303
|
-
body?: string | undefined;
|
|
1304
|
-
linksForMoreInfo?: {
|
|
1305
|
-
title: string;
|
|
1306
|
-
url: string;
|
|
1307
|
-
ariaLabel?: string | undefined;
|
|
1308
|
-
activatedLanguage?: string | undefined;
|
|
1309
|
-
openTarget?: string | undefined;
|
|
1310
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1311
|
-
iconType?: string | undefined;
|
|
1312
|
-
}[] | undefined;
|
|
1313
|
-
alertInText?: string | undefined;
|
|
1314
|
-
pageTitle?: string | undefined;
|
|
1315
|
-
textAboveStartButton?: string | undefined;
|
|
1316
|
-
}[];
|
|
1317
|
-
textAboveStartButton?: string | undefined;
|
|
1318
|
-
}];
|
|
1319
|
-
};
|
|
1320
|
-
steps: {
|
|
1321
|
-
step: number;
|
|
1322
|
-
stepHeadline?: string | undefined;
|
|
1323
|
-
stepDescription?: string | undefined;
|
|
1324
|
-
shortNameInStepper: string;
|
|
1325
|
-
shortNameInPreview?: string | undefined;
|
|
1326
|
-
languageSupport?: any[] | undefined;
|
|
1327
|
-
}[];
|
|
1328
|
-
questions: {
|
|
1329
|
-
id?: number | undefined;
|
|
1330
|
-
mappingId?: string | undefined;
|
|
1331
|
-
step?: number | undefined;
|
|
1332
|
-
categoryLabel?: string | undefined;
|
|
1333
|
-
categoryDescription?: string | undefined;
|
|
1334
|
-
legend?: string | undefined;
|
|
1335
|
-
hideCategory?: boolean | undefined;
|
|
1336
|
-
questionLabel?: string | undefined;
|
|
1337
|
-
previewLabel?: string | undefined;
|
|
1338
|
-
validationSummaryLabel?: string | undefined;
|
|
1339
|
-
hideQuestion?: boolean | undefined;
|
|
1340
|
-
answer?: string | undefined;
|
|
1341
|
-
files?: ({
|
|
1342
|
-
lastModified: number;
|
|
1343
|
-
name: string;
|
|
1344
|
-
webkitRelativePath: string;
|
|
1345
|
-
size: number;
|
|
1346
|
-
type: string;
|
|
1347
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
1348
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
1349
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
1350
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
1351
|
-
text: () => Promise<string>;
|
|
1352
|
-
} | {
|
|
1353
|
-
file: {
|
|
1354
|
-
lastModified: number;
|
|
1355
|
-
name: string;
|
|
1356
|
-
webkitRelativePath: string;
|
|
1357
|
-
size: number;
|
|
1358
|
-
type: string;
|
|
1359
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
1360
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
1361
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
1362
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
1363
|
-
text: () => Promise<string>;
|
|
1364
|
-
};
|
|
1365
|
-
dataURL: string;
|
|
1366
|
-
id?: string | undefined;
|
|
1367
|
-
} | {
|
|
1368
|
-
FileName: string;
|
|
1369
|
-
FileSize: number;
|
|
1370
|
-
FileType: string;
|
|
1371
|
-
dataURL: string | {
|
|
1372
|
-
byteLength: number;
|
|
1373
|
-
slice: (begin?: number, end?: number) => ArrayBuffer;
|
|
1374
|
-
maxByteLength: number;
|
|
1375
|
-
resizable: boolean;
|
|
1376
|
-
resize: (newByteLength?: number) => void;
|
|
1377
|
-
detached: boolean;
|
|
1378
|
-
transfer: (newByteLength?: number) => ArrayBuffer;
|
|
1379
|
-
transferToFixedLength: (newByteLength?: number) => ArrayBuffer;
|
|
1380
|
-
[Symbol.toStringTag]: "ArrayBuffer";
|
|
1381
|
-
} | null;
|
|
1382
|
-
id?: string | undefined;
|
|
1383
|
-
})[] | null | undefined;
|
|
1384
|
-
allowedTotalFileSize?: number | undefined;
|
|
1385
|
-
allowedNumberOfFiles?: number | undefined;
|
|
1386
|
-
allowedFileTypes?: string[] | undefined;
|
|
1387
|
-
aboutText?: string | undefined;
|
|
1388
|
-
isQuestionMandatory?: boolean | undefined;
|
|
1389
|
-
questionType?: string | undefined;
|
|
1390
|
-
options?: {
|
|
1391
|
-
label: string;
|
|
1392
|
-
value?: string | undefined;
|
|
1393
|
-
id?: string | undefined;
|
|
1394
|
-
info?: string | undefined;
|
|
1395
|
-
optionCategory?: string | undefined;
|
|
1396
|
-
}[] | undefined;
|
|
1397
|
-
visible?: boolean | undefined;
|
|
1398
|
-
isDisplayed?: boolean | undefined;
|
|
1399
|
-
hasValidationError?: boolean | undefined;
|
|
1400
|
-
validationType?: string[] | undefined;
|
|
1401
|
-
validationDefaultMessesege?: string | undefined;
|
|
1402
|
-
questionGroupId?: number | undefined;
|
|
1403
|
-
questionGroupType?: string | undefined;
|
|
1404
|
-
dependsOnOtherQuestion?: any[] | undefined;
|
|
1405
|
-
questionExtraAttribute?: {
|
|
1406
|
-
answerMaxLength?: number | undefined;
|
|
1407
|
-
disabled?: boolean | undefined;
|
|
1408
|
-
autoComplete?: string | undefined;
|
|
1409
|
-
inputType?: string | undefined;
|
|
1410
|
-
showTextAreaCounter?: boolean | undefined;
|
|
1411
|
-
hideValidationMessage?: boolean | undefined;
|
|
1412
|
-
hideTextCounter?: boolean | undefined;
|
|
1413
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
1414
|
-
spellCheck?: boolean | undefined;
|
|
1415
|
-
autoCapitalize?: string | undefined;
|
|
1416
|
-
} | undefined;
|
|
1417
|
-
infoOnly?: {
|
|
1418
|
-
id?: string | undefined;
|
|
1419
|
-
headline?: string | undefined;
|
|
1420
|
-
body?: string | undefined;
|
|
1421
|
-
linksForMoreInfo?: {
|
|
1422
|
-
title: string;
|
|
1423
|
-
url: string;
|
|
1424
|
-
ariaLabel?: string | undefined;
|
|
1425
|
-
activatedLanguage?: string | undefined;
|
|
1426
|
-
openTarget?: string | undefined;
|
|
1427
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1428
|
-
iconType?: string | undefined;
|
|
1429
|
-
}[] | undefined;
|
|
1430
|
-
alertInText?: string | undefined;
|
|
1431
|
-
pageTitle?: string | undefined;
|
|
1432
|
-
textAboveStartButton?: string | undefined;
|
|
1433
|
-
} | undefined;
|
|
1434
|
-
languageSupport: any[];
|
|
1435
|
-
}[];
|
|
1436
|
-
formLoaded: boolean;
|
|
1437
|
-
formStatus: "notloaded" | "idle" | "loading" | "failed" | "success";
|
|
1438
|
-
}) => void;
|
|
485
|
+
removeAllAnswers: (state: immer.WritableDraft<IFormState>) => void;
|
|
1439
486
|
/** Uppdaterar filer (files) för en specifik fråga i global state */
|
|
1440
|
-
addFiles: (state:
|
|
1441
|
-
applicationContent: {
|
|
1442
|
-
headline?: string | undefined;
|
|
1443
|
-
body?: string | undefined;
|
|
1444
|
-
linksForMoreInfo?: {
|
|
1445
|
-
title: string;
|
|
1446
|
-
url: string;
|
|
1447
|
-
ariaLabel?: string | undefined;
|
|
1448
|
-
activatedLanguage?: string | undefined;
|
|
1449
|
-
openTarget?: string | undefined;
|
|
1450
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1451
|
-
iconType?: string | undefined;
|
|
1452
|
-
}[] | undefined;
|
|
1453
|
-
alertInText?: string | undefined;
|
|
1454
|
-
pageTitle?: string | undefined;
|
|
1455
|
-
textblocks?: {
|
|
1456
|
-
id?: string | undefined;
|
|
1457
|
-
headline?: string | undefined;
|
|
1458
|
-
body?: string | undefined;
|
|
1459
|
-
linksForMoreInfo?: {
|
|
1460
|
-
title: string;
|
|
1461
|
-
url: string;
|
|
1462
|
-
ariaLabel?: string | undefined;
|
|
1463
|
-
activatedLanguage?: string | undefined;
|
|
1464
|
-
openTarget?: string | undefined;
|
|
1465
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1466
|
-
iconType?: string | undefined;
|
|
1467
|
-
}[] | undefined;
|
|
1468
|
-
alertInText?: string | undefined;
|
|
1469
|
-
pageTitle?: string | undefined;
|
|
1470
|
-
textAboveStartButton?: string | undefined;
|
|
1471
|
-
}[] | undefined;
|
|
1472
|
-
textAboveStartButton?: string | undefined;
|
|
1473
|
-
languageSupport: [{
|
|
1474
|
-
language: string;
|
|
1475
|
-
headline: string;
|
|
1476
|
-
body: string;
|
|
1477
|
-
linksForMoreInfo: {
|
|
1478
|
-
title: string;
|
|
1479
|
-
url: string;
|
|
1480
|
-
ariaLabel?: string | undefined;
|
|
1481
|
-
activatedLanguage?: string | undefined;
|
|
1482
|
-
openTarget?: string | undefined;
|
|
1483
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1484
|
-
iconType?: string | undefined;
|
|
1485
|
-
}[];
|
|
1486
|
-
pageTitle: string;
|
|
1487
|
-
textblocks: {
|
|
1488
|
-
id?: string | undefined;
|
|
1489
|
-
headline?: string | undefined;
|
|
1490
|
-
body?: string | undefined;
|
|
1491
|
-
linksForMoreInfo?: {
|
|
1492
|
-
title: string;
|
|
1493
|
-
url: string;
|
|
1494
|
-
ariaLabel?: string | undefined;
|
|
1495
|
-
activatedLanguage?: string | undefined;
|
|
1496
|
-
openTarget?: string | undefined;
|
|
1497
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1498
|
-
iconType?: string | undefined;
|
|
1499
|
-
}[] | undefined;
|
|
1500
|
-
alertInText?: string | undefined;
|
|
1501
|
-
pageTitle?: string | undefined;
|
|
1502
|
-
textAboveStartButton?: string | undefined;
|
|
1503
|
-
}[];
|
|
1504
|
-
textAboveStartButton?: string | undefined;
|
|
1505
|
-
}];
|
|
1506
|
-
};
|
|
1507
|
-
steps: {
|
|
1508
|
-
step: number;
|
|
1509
|
-
stepHeadline?: string | undefined;
|
|
1510
|
-
stepDescription?: string | undefined;
|
|
1511
|
-
shortNameInStepper: string;
|
|
1512
|
-
shortNameInPreview?: string | undefined;
|
|
1513
|
-
languageSupport?: any[] | undefined;
|
|
1514
|
-
}[];
|
|
1515
|
-
questions: {
|
|
1516
|
-
id?: number | undefined;
|
|
1517
|
-
mappingId?: string | undefined;
|
|
1518
|
-
step?: number | undefined;
|
|
1519
|
-
categoryLabel?: string | undefined;
|
|
1520
|
-
categoryDescription?: string | undefined;
|
|
1521
|
-
legend?: string | undefined;
|
|
1522
|
-
hideCategory?: boolean | undefined;
|
|
1523
|
-
questionLabel?: string | undefined;
|
|
1524
|
-
previewLabel?: string | undefined;
|
|
1525
|
-
validationSummaryLabel?: string | undefined;
|
|
1526
|
-
hideQuestion?: boolean | undefined;
|
|
1527
|
-
answer?: string | undefined;
|
|
1528
|
-
files?: ({
|
|
1529
|
-
lastModified: number;
|
|
1530
|
-
name: string;
|
|
1531
|
-
webkitRelativePath: string;
|
|
1532
|
-
size: number;
|
|
1533
|
-
type: string;
|
|
1534
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
1535
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
1536
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
1537
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
1538
|
-
text: () => Promise<string>;
|
|
1539
|
-
} | {
|
|
1540
|
-
file: {
|
|
1541
|
-
lastModified: number;
|
|
1542
|
-
name: string;
|
|
1543
|
-
webkitRelativePath: string;
|
|
1544
|
-
size: number;
|
|
1545
|
-
type: string;
|
|
1546
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
1547
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
1548
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
1549
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
1550
|
-
text: () => Promise<string>;
|
|
1551
|
-
};
|
|
1552
|
-
dataURL: string;
|
|
1553
|
-
id?: string | undefined;
|
|
1554
|
-
} | {
|
|
1555
|
-
FileName: string;
|
|
1556
|
-
FileSize: number;
|
|
1557
|
-
FileType: string;
|
|
1558
|
-
dataURL: string | {
|
|
1559
|
-
byteLength: number;
|
|
1560
|
-
slice: (begin?: number, end?: number) => ArrayBuffer;
|
|
1561
|
-
maxByteLength: number;
|
|
1562
|
-
resizable: boolean;
|
|
1563
|
-
resize: (newByteLength?: number) => void;
|
|
1564
|
-
detached: boolean;
|
|
1565
|
-
transfer: (newByteLength?: number) => ArrayBuffer;
|
|
1566
|
-
transferToFixedLength: (newByteLength?: number) => ArrayBuffer;
|
|
1567
|
-
[Symbol.toStringTag]: "ArrayBuffer";
|
|
1568
|
-
} | null;
|
|
1569
|
-
id?: string | undefined;
|
|
1570
|
-
})[] | null | undefined;
|
|
1571
|
-
allowedTotalFileSize?: number | undefined;
|
|
1572
|
-
allowedNumberOfFiles?: number | undefined;
|
|
1573
|
-
allowedFileTypes?: string[] | undefined;
|
|
1574
|
-
aboutText?: string | undefined;
|
|
1575
|
-
isQuestionMandatory?: boolean | undefined;
|
|
1576
|
-
questionType?: string | undefined;
|
|
1577
|
-
options?: {
|
|
1578
|
-
label: string;
|
|
1579
|
-
value?: string | undefined;
|
|
1580
|
-
id?: string | undefined;
|
|
1581
|
-
info?: string | undefined;
|
|
1582
|
-
optionCategory?: string | undefined;
|
|
1583
|
-
}[] | undefined;
|
|
1584
|
-
visible?: boolean | undefined;
|
|
1585
|
-
isDisplayed?: boolean | undefined;
|
|
1586
|
-
hasValidationError?: boolean | undefined;
|
|
1587
|
-
validationType?: string[] | undefined;
|
|
1588
|
-
validationDefaultMessesege?: string | undefined;
|
|
1589
|
-
questionGroupId?: number | undefined;
|
|
1590
|
-
questionGroupType?: string | undefined;
|
|
1591
|
-
dependsOnOtherQuestion?: any[] | undefined;
|
|
1592
|
-
questionExtraAttribute?: {
|
|
1593
|
-
answerMaxLength?: number | undefined;
|
|
1594
|
-
disabled?: boolean | undefined;
|
|
1595
|
-
autoComplete?: string | undefined;
|
|
1596
|
-
inputType?: string | undefined;
|
|
1597
|
-
showTextAreaCounter?: boolean | undefined;
|
|
1598
|
-
hideValidationMessage?: boolean | undefined;
|
|
1599
|
-
hideTextCounter?: boolean | undefined;
|
|
1600
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
1601
|
-
spellCheck?: boolean | undefined;
|
|
1602
|
-
autoCapitalize?: string | undefined;
|
|
1603
|
-
} | undefined;
|
|
1604
|
-
infoOnly?: {
|
|
1605
|
-
id?: string | undefined;
|
|
1606
|
-
headline?: string | undefined;
|
|
1607
|
-
body?: string | undefined;
|
|
1608
|
-
linksForMoreInfo?: {
|
|
1609
|
-
title: string;
|
|
1610
|
-
url: string;
|
|
1611
|
-
ariaLabel?: string | undefined;
|
|
1612
|
-
activatedLanguage?: string | undefined;
|
|
1613
|
-
openTarget?: string | undefined;
|
|
1614
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1615
|
-
iconType?: string | undefined;
|
|
1616
|
-
}[] | undefined;
|
|
1617
|
-
alertInText?: string | undefined;
|
|
1618
|
-
pageTitle?: string | undefined;
|
|
1619
|
-
textAboveStartButton?: string | undefined;
|
|
1620
|
-
} | undefined;
|
|
1621
|
-
languageSupport: any[];
|
|
1622
|
-
}[];
|
|
1623
|
-
formLoaded: boolean;
|
|
1624
|
-
formStatus: "notloaded" | "idle" | "loading" | "failed" | "success";
|
|
1625
|
-
}, action: PayloadAction<any>) => void;
|
|
487
|
+
addFiles: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
1626
488
|
/**
|
|
1627
489
|
* Sätter `isDisplayed = false` på alla frågor vars stegnummer är
|
|
1628
490
|
* större än eller lika med det aktiva steget.
|
|
@@ -1631,570 +493,15 @@ declare const createFormSlice: (initialState: IFormState, options?: {
|
|
|
1631
493
|
* innan en ny renderingsomgång. Endast frågor som faktiskt visas i UI:t
|
|
1632
494
|
* kommer senare få `isDisplayed = true` igen.
|
|
1633
495
|
*/
|
|
1634
|
-
clearDisplayedFromStep: (state:
|
|
1635
|
-
applicationContent: {
|
|
1636
|
-
headline?: string | undefined;
|
|
1637
|
-
body?: string | undefined;
|
|
1638
|
-
linksForMoreInfo?: {
|
|
1639
|
-
title: string;
|
|
1640
|
-
url: string;
|
|
1641
|
-
ariaLabel?: string | undefined;
|
|
1642
|
-
activatedLanguage?: string | undefined;
|
|
1643
|
-
openTarget?: string | undefined;
|
|
1644
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1645
|
-
iconType?: string | undefined;
|
|
1646
|
-
}[] | undefined;
|
|
1647
|
-
alertInText?: string | undefined;
|
|
1648
|
-
pageTitle?: string | undefined;
|
|
1649
|
-
textblocks?: {
|
|
1650
|
-
id?: string | undefined;
|
|
1651
|
-
headline?: string | undefined;
|
|
1652
|
-
body?: string | undefined;
|
|
1653
|
-
linksForMoreInfo?: {
|
|
1654
|
-
title: string;
|
|
1655
|
-
url: string;
|
|
1656
|
-
ariaLabel?: string | undefined;
|
|
1657
|
-
activatedLanguage?: string | undefined;
|
|
1658
|
-
openTarget?: string | undefined;
|
|
1659
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1660
|
-
iconType?: string | undefined;
|
|
1661
|
-
}[] | undefined;
|
|
1662
|
-
alertInText?: string | undefined;
|
|
1663
|
-
pageTitle?: string | undefined;
|
|
1664
|
-
textAboveStartButton?: string | undefined;
|
|
1665
|
-
}[] | undefined;
|
|
1666
|
-
textAboveStartButton?: string | undefined;
|
|
1667
|
-
languageSupport: [{
|
|
1668
|
-
language: string;
|
|
1669
|
-
headline: string;
|
|
1670
|
-
body: string;
|
|
1671
|
-
linksForMoreInfo: {
|
|
1672
|
-
title: string;
|
|
1673
|
-
url: string;
|
|
1674
|
-
ariaLabel?: string | undefined;
|
|
1675
|
-
activatedLanguage?: string | undefined;
|
|
1676
|
-
openTarget?: string | undefined;
|
|
1677
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1678
|
-
iconType?: string | undefined;
|
|
1679
|
-
}[];
|
|
1680
|
-
pageTitle: string;
|
|
1681
|
-
textblocks: {
|
|
1682
|
-
id?: string | undefined;
|
|
1683
|
-
headline?: string | undefined;
|
|
1684
|
-
body?: string | undefined;
|
|
1685
|
-
linksForMoreInfo?: {
|
|
1686
|
-
title: string;
|
|
1687
|
-
url: string;
|
|
1688
|
-
ariaLabel?: string | undefined;
|
|
1689
|
-
activatedLanguage?: string | undefined;
|
|
1690
|
-
openTarget?: string | undefined;
|
|
1691
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1692
|
-
iconType?: string | undefined;
|
|
1693
|
-
}[] | undefined;
|
|
1694
|
-
alertInText?: string | undefined;
|
|
1695
|
-
pageTitle?: string | undefined;
|
|
1696
|
-
textAboveStartButton?: string | undefined;
|
|
1697
|
-
}[];
|
|
1698
|
-
textAboveStartButton?: string | undefined;
|
|
1699
|
-
}];
|
|
1700
|
-
};
|
|
1701
|
-
steps: {
|
|
1702
|
-
step: number;
|
|
1703
|
-
stepHeadline?: string | undefined;
|
|
1704
|
-
stepDescription?: string | undefined;
|
|
1705
|
-
shortNameInStepper: string;
|
|
1706
|
-
shortNameInPreview?: string | undefined;
|
|
1707
|
-
languageSupport?: any[] | undefined;
|
|
1708
|
-
}[];
|
|
1709
|
-
questions: {
|
|
1710
|
-
id?: number | undefined;
|
|
1711
|
-
mappingId?: string | undefined;
|
|
1712
|
-
step?: number | undefined;
|
|
1713
|
-
categoryLabel?: string | undefined;
|
|
1714
|
-
categoryDescription?: string | undefined;
|
|
1715
|
-
legend?: string | undefined;
|
|
1716
|
-
hideCategory?: boolean | undefined;
|
|
1717
|
-
questionLabel?: string | undefined;
|
|
1718
|
-
previewLabel?: string | undefined;
|
|
1719
|
-
validationSummaryLabel?: string | undefined;
|
|
1720
|
-
hideQuestion?: boolean | undefined;
|
|
1721
|
-
answer?: string | undefined;
|
|
1722
|
-
files?: ({
|
|
1723
|
-
lastModified: number;
|
|
1724
|
-
name: string;
|
|
1725
|
-
webkitRelativePath: string;
|
|
1726
|
-
size: number;
|
|
1727
|
-
type: string;
|
|
1728
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
1729
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
1730
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
1731
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
1732
|
-
text: () => Promise<string>;
|
|
1733
|
-
} | {
|
|
1734
|
-
file: {
|
|
1735
|
-
lastModified: number;
|
|
1736
|
-
name: string;
|
|
1737
|
-
webkitRelativePath: string;
|
|
1738
|
-
size: number;
|
|
1739
|
-
type: string;
|
|
1740
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
1741
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
1742
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
1743
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
1744
|
-
text: () => Promise<string>;
|
|
1745
|
-
};
|
|
1746
|
-
dataURL: string;
|
|
1747
|
-
id?: string | undefined;
|
|
1748
|
-
} | {
|
|
1749
|
-
FileName: string;
|
|
1750
|
-
FileSize: number;
|
|
1751
|
-
FileType: string;
|
|
1752
|
-
dataURL: string | {
|
|
1753
|
-
byteLength: number;
|
|
1754
|
-
slice: (begin?: number, end?: number) => ArrayBuffer;
|
|
1755
|
-
maxByteLength: number;
|
|
1756
|
-
resizable: boolean;
|
|
1757
|
-
resize: (newByteLength?: number) => void;
|
|
1758
|
-
detached: boolean;
|
|
1759
|
-
transfer: (newByteLength?: number) => ArrayBuffer;
|
|
1760
|
-
transferToFixedLength: (newByteLength?: number) => ArrayBuffer;
|
|
1761
|
-
[Symbol.toStringTag]: "ArrayBuffer";
|
|
1762
|
-
} | null;
|
|
1763
|
-
id?: string | undefined;
|
|
1764
|
-
})[] | null | undefined;
|
|
1765
|
-
allowedTotalFileSize?: number | undefined;
|
|
1766
|
-
allowedNumberOfFiles?: number | undefined;
|
|
1767
|
-
allowedFileTypes?: string[] | undefined;
|
|
1768
|
-
aboutText?: string | undefined;
|
|
1769
|
-
isQuestionMandatory?: boolean | undefined;
|
|
1770
|
-
questionType?: string | undefined;
|
|
1771
|
-
options?: {
|
|
1772
|
-
label: string;
|
|
1773
|
-
value?: string | undefined;
|
|
1774
|
-
id?: string | undefined;
|
|
1775
|
-
info?: string | undefined;
|
|
1776
|
-
optionCategory?: string | undefined;
|
|
1777
|
-
}[] | undefined;
|
|
1778
|
-
visible?: boolean | undefined;
|
|
1779
|
-
isDisplayed?: boolean | undefined;
|
|
1780
|
-
hasValidationError?: boolean | undefined;
|
|
1781
|
-
validationType?: string[] | undefined;
|
|
1782
|
-
validationDefaultMessesege?: string | undefined;
|
|
1783
|
-
questionGroupId?: number | undefined;
|
|
1784
|
-
questionGroupType?: string | undefined;
|
|
1785
|
-
dependsOnOtherQuestion?: any[] | undefined;
|
|
1786
|
-
questionExtraAttribute?: {
|
|
1787
|
-
answerMaxLength?: number | undefined;
|
|
1788
|
-
disabled?: boolean | undefined;
|
|
1789
|
-
autoComplete?: string | undefined;
|
|
1790
|
-
inputType?: string | undefined;
|
|
1791
|
-
showTextAreaCounter?: boolean | undefined;
|
|
1792
|
-
hideValidationMessage?: boolean | undefined;
|
|
1793
|
-
hideTextCounter?: boolean | undefined;
|
|
1794
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
1795
|
-
spellCheck?: boolean | undefined;
|
|
1796
|
-
autoCapitalize?: string | undefined;
|
|
1797
|
-
} | undefined;
|
|
1798
|
-
infoOnly?: {
|
|
1799
|
-
id?: string | undefined;
|
|
1800
|
-
headline?: string | undefined;
|
|
1801
|
-
body?: string | undefined;
|
|
1802
|
-
linksForMoreInfo?: {
|
|
1803
|
-
title: string;
|
|
1804
|
-
url: string;
|
|
1805
|
-
ariaLabel?: string | undefined;
|
|
1806
|
-
activatedLanguage?: string | undefined;
|
|
1807
|
-
openTarget?: string | undefined;
|
|
1808
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1809
|
-
iconType?: string | undefined;
|
|
1810
|
-
}[] | undefined;
|
|
1811
|
-
alertInText?: string | undefined;
|
|
1812
|
-
pageTitle?: string | undefined;
|
|
1813
|
-
textAboveStartButton?: string | undefined;
|
|
1814
|
-
} | undefined;
|
|
1815
|
-
languageSupport: any[];
|
|
1816
|
-
}[];
|
|
1817
|
-
formLoaded: boolean;
|
|
1818
|
-
formStatus: "notloaded" | "idle" | "loading" | "failed" | "success";
|
|
1819
|
-
}, action: PayloadAction<any>) => void;
|
|
496
|
+
clearDisplayedFromStep: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
1820
497
|
/**
|
|
1821
498
|
* Sätter `isDisplayed = true` för en specifik fråga i global state.
|
|
1822
499
|
*/
|
|
1823
|
-
setQuestionDisplayed: (state:
|
|
1824
|
-
applicationContent: {
|
|
1825
|
-
headline?: string | undefined;
|
|
1826
|
-
body?: string | undefined;
|
|
1827
|
-
linksForMoreInfo?: {
|
|
1828
|
-
title: string;
|
|
1829
|
-
url: string;
|
|
1830
|
-
ariaLabel?: string | undefined;
|
|
1831
|
-
activatedLanguage?: string | undefined;
|
|
1832
|
-
openTarget?: string | undefined;
|
|
1833
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1834
|
-
iconType?: string | undefined;
|
|
1835
|
-
}[] | undefined;
|
|
1836
|
-
alertInText?: string | undefined;
|
|
1837
|
-
pageTitle?: string | undefined;
|
|
1838
|
-
textblocks?: {
|
|
1839
|
-
id?: string | undefined;
|
|
1840
|
-
headline?: string | undefined;
|
|
1841
|
-
body?: string | undefined;
|
|
1842
|
-
linksForMoreInfo?: {
|
|
1843
|
-
title: string;
|
|
1844
|
-
url: string;
|
|
1845
|
-
ariaLabel?: string | undefined;
|
|
1846
|
-
activatedLanguage?: string | undefined;
|
|
1847
|
-
openTarget?: string | undefined;
|
|
1848
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1849
|
-
iconType?: string | undefined;
|
|
1850
|
-
}[] | undefined;
|
|
1851
|
-
alertInText?: string | undefined;
|
|
1852
|
-
pageTitle?: string | undefined;
|
|
1853
|
-
textAboveStartButton?: string | undefined;
|
|
1854
|
-
}[] | undefined;
|
|
1855
|
-
textAboveStartButton?: string | undefined;
|
|
1856
|
-
languageSupport: [{
|
|
1857
|
-
language: string;
|
|
1858
|
-
headline: string;
|
|
1859
|
-
body: string;
|
|
1860
|
-
linksForMoreInfo: {
|
|
1861
|
-
title: string;
|
|
1862
|
-
url: string;
|
|
1863
|
-
ariaLabel?: string | undefined;
|
|
1864
|
-
activatedLanguage?: string | undefined;
|
|
1865
|
-
openTarget?: string | undefined;
|
|
1866
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1867
|
-
iconType?: string | undefined;
|
|
1868
|
-
}[];
|
|
1869
|
-
pageTitle: string;
|
|
1870
|
-
textblocks: {
|
|
1871
|
-
id?: string | undefined;
|
|
1872
|
-
headline?: string | undefined;
|
|
1873
|
-
body?: string | undefined;
|
|
1874
|
-
linksForMoreInfo?: {
|
|
1875
|
-
title: string;
|
|
1876
|
-
url: string;
|
|
1877
|
-
ariaLabel?: string | undefined;
|
|
1878
|
-
activatedLanguage?: string | undefined;
|
|
1879
|
-
openTarget?: string | undefined;
|
|
1880
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1881
|
-
iconType?: string | undefined;
|
|
1882
|
-
}[] | undefined;
|
|
1883
|
-
alertInText?: string | undefined;
|
|
1884
|
-
pageTitle?: string | undefined;
|
|
1885
|
-
textAboveStartButton?: string | undefined;
|
|
1886
|
-
}[];
|
|
1887
|
-
textAboveStartButton?: string | undefined;
|
|
1888
|
-
}];
|
|
1889
|
-
};
|
|
1890
|
-
steps: {
|
|
1891
|
-
step: number;
|
|
1892
|
-
stepHeadline?: string | undefined;
|
|
1893
|
-
stepDescription?: string | undefined;
|
|
1894
|
-
shortNameInStepper: string;
|
|
1895
|
-
shortNameInPreview?: string | undefined;
|
|
1896
|
-
languageSupport?: any[] | undefined;
|
|
1897
|
-
}[];
|
|
1898
|
-
questions: {
|
|
1899
|
-
id?: number | undefined;
|
|
1900
|
-
mappingId?: string | undefined;
|
|
1901
|
-
step?: number | undefined;
|
|
1902
|
-
categoryLabel?: string | undefined;
|
|
1903
|
-
categoryDescription?: string | undefined;
|
|
1904
|
-
legend?: string | undefined;
|
|
1905
|
-
hideCategory?: boolean | undefined;
|
|
1906
|
-
questionLabel?: string | undefined;
|
|
1907
|
-
previewLabel?: string | undefined;
|
|
1908
|
-
validationSummaryLabel?: string | undefined;
|
|
1909
|
-
hideQuestion?: boolean | undefined;
|
|
1910
|
-
answer?: string | undefined;
|
|
1911
|
-
files?: ({
|
|
1912
|
-
lastModified: number;
|
|
1913
|
-
name: string;
|
|
1914
|
-
webkitRelativePath: string;
|
|
1915
|
-
size: number;
|
|
1916
|
-
type: string;
|
|
1917
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
1918
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
1919
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
1920
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
1921
|
-
text: () => Promise<string>;
|
|
1922
|
-
} | {
|
|
1923
|
-
file: {
|
|
1924
|
-
lastModified: number;
|
|
1925
|
-
name: string;
|
|
1926
|
-
webkitRelativePath: string;
|
|
1927
|
-
size: number;
|
|
1928
|
-
type: string;
|
|
1929
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
1930
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
1931
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
1932
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
1933
|
-
text: () => Promise<string>;
|
|
1934
|
-
};
|
|
1935
|
-
dataURL: string;
|
|
1936
|
-
id?: string | undefined;
|
|
1937
|
-
} | {
|
|
1938
|
-
FileName: string;
|
|
1939
|
-
FileSize: number;
|
|
1940
|
-
FileType: string;
|
|
1941
|
-
dataURL: string | {
|
|
1942
|
-
byteLength: number;
|
|
1943
|
-
slice: (begin?: number, end?: number) => ArrayBuffer;
|
|
1944
|
-
maxByteLength: number;
|
|
1945
|
-
resizable: boolean;
|
|
1946
|
-
resize: (newByteLength?: number) => void;
|
|
1947
|
-
detached: boolean;
|
|
1948
|
-
transfer: (newByteLength?: number) => ArrayBuffer;
|
|
1949
|
-
transferToFixedLength: (newByteLength?: number) => ArrayBuffer;
|
|
1950
|
-
[Symbol.toStringTag]: "ArrayBuffer";
|
|
1951
|
-
} | null;
|
|
1952
|
-
id?: string | undefined;
|
|
1953
|
-
})[] | null | undefined;
|
|
1954
|
-
allowedTotalFileSize?: number | undefined;
|
|
1955
|
-
allowedNumberOfFiles?: number | undefined;
|
|
1956
|
-
allowedFileTypes?: string[] | undefined;
|
|
1957
|
-
aboutText?: string | undefined;
|
|
1958
|
-
isQuestionMandatory?: boolean | undefined;
|
|
1959
|
-
questionType?: string | undefined;
|
|
1960
|
-
options?: {
|
|
1961
|
-
label: string;
|
|
1962
|
-
value?: string | undefined;
|
|
1963
|
-
id?: string | undefined;
|
|
1964
|
-
info?: string | undefined;
|
|
1965
|
-
optionCategory?: string | undefined;
|
|
1966
|
-
}[] | undefined;
|
|
1967
|
-
visible?: boolean | undefined;
|
|
1968
|
-
isDisplayed?: boolean | undefined;
|
|
1969
|
-
hasValidationError?: boolean | undefined;
|
|
1970
|
-
validationType?: string[] | undefined;
|
|
1971
|
-
validationDefaultMessesege?: string | undefined;
|
|
1972
|
-
questionGroupId?: number | undefined;
|
|
1973
|
-
questionGroupType?: string | undefined;
|
|
1974
|
-
dependsOnOtherQuestion?: any[] | undefined;
|
|
1975
|
-
questionExtraAttribute?: {
|
|
1976
|
-
answerMaxLength?: number | undefined;
|
|
1977
|
-
disabled?: boolean | undefined;
|
|
1978
|
-
autoComplete?: string | undefined;
|
|
1979
|
-
inputType?: string | undefined;
|
|
1980
|
-
showTextAreaCounter?: boolean | undefined;
|
|
1981
|
-
hideValidationMessage?: boolean | undefined;
|
|
1982
|
-
hideTextCounter?: boolean | undefined;
|
|
1983
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
1984
|
-
spellCheck?: boolean | undefined;
|
|
1985
|
-
autoCapitalize?: string | undefined;
|
|
1986
|
-
} | undefined;
|
|
1987
|
-
infoOnly?: {
|
|
1988
|
-
id?: string | undefined;
|
|
1989
|
-
headline?: string | undefined;
|
|
1990
|
-
body?: string | undefined;
|
|
1991
|
-
linksForMoreInfo?: {
|
|
1992
|
-
title: string;
|
|
1993
|
-
url: string;
|
|
1994
|
-
ariaLabel?: string | undefined;
|
|
1995
|
-
activatedLanguage?: string | undefined;
|
|
1996
|
-
openTarget?: string | undefined;
|
|
1997
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
1998
|
-
iconType?: string | undefined;
|
|
1999
|
-
}[] | undefined;
|
|
2000
|
-
alertInText?: string | undefined;
|
|
2001
|
-
pageTitle?: string | undefined;
|
|
2002
|
-
textAboveStartButton?: string | undefined;
|
|
2003
|
-
} | undefined;
|
|
2004
|
-
languageSupport: any[];
|
|
2005
|
-
}[];
|
|
2006
|
-
formLoaded: boolean;
|
|
2007
|
-
formStatus: "notloaded" | "idle" | "loading" | "failed" | "success";
|
|
2008
|
-
}, action: PayloadAction<any>) => void;
|
|
500
|
+
setQuestionDisplayed: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
2009
501
|
/** Tar bort svar på frågor framåt i formuläret som är beroende av en
|
|
2010
502
|
* specifik fråga som har ändrats.
|
|
2011
503
|
*/
|
|
2012
|
-
resetDependentAnswersForward: (state:
|
|
2013
|
-
applicationContent: {
|
|
2014
|
-
headline?: string | undefined;
|
|
2015
|
-
body?: string | undefined;
|
|
2016
|
-
linksForMoreInfo?: {
|
|
2017
|
-
title: string;
|
|
2018
|
-
url: string;
|
|
2019
|
-
ariaLabel?: string | undefined;
|
|
2020
|
-
activatedLanguage?: string | undefined;
|
|
2021
|
-
openTarget?: string | undefined;
|
|
2022
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
2023
|
-
iconType?: string | undefined;
|
|
2024
|
-
}[] | undefined;
|
|
2025
|
-
alertInText?: string | undefined;
|
|
2026
|
-
pageTitle?: string | undefined;
|
|
2027
|
-
textblocks?: {
|
|
2028
|
-
id?: string | undefined;
|
|
2029
|
-
headline?: string | undefined;
|
|
2030
|
-
body?: string | undefined;
|
|
2031
|
-
linksForMoreInfo?: {
|
|
2032
|
-
title: string;
|
|
2033
|
-
url: string;
|
|
2034
|
-
ariaLabel?: string | undefined;
|
|
2035
|
-
activatedLanguage?: string | undefined;
|
|
2036
|
-
openTarget?: string | undefined;
|
|
2037
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
2038
|
-
iconType?: string | undefined;
|
|
2039
|
-
}[] | undefined;
|
|
2040
|
-
alertInText?: string | undefined;
|
|
2041
|
-
pageTitle?: string | undefined;
|
|
2042
|
-
textAboveStartButton?: string | undefined;
|
|
2043
|
-
}[] | undefined;
|
|
2044
|
-
textAboveStartButton?: string | undefined;
|
|
2045
|
-
languageSupport: [{
|
|
2046
|
-
language: string;
|
|
2047
|
-
headline: string;
|
|
2048
|
-
body: string;
|
|
2049
|
-
linksForMoreInfo: {
|
|
2050
|
-
title: string;
|
|
2051
|
-
url: string;
|
|
2052
|
-
ariaLabel?: string | undefined;
|
|
2053
|
-
activatedLanguage?: string | undefined;
|
|
2054
|
-
openTarget?: string | undefined;
|
|
2055
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
2056
|
-
iconType?: string | undefined;
|
|
2057
|
-
}[];
|
|
2058
|
-
pageTitle: string;
|
|
2059
|
-
textblocks: {
|
|
2060
|
-
id?: string | undefined;
|
|
2061
|
-
headline?: string | undefined;
|
|
2062
|
-
body?: string | undefined;
|
|
2063
|
-
linksForMoreInfo?: {
|
|
2064
|
-
title: string;
|
|
2065
|
-
url: string;
|
|
2066
|
-
ariaLabel?: string | undefined;
|
|
2067
|
-
activatedLanguage?: string | undefined;
|
|
2068
|
-
openTarget?: string | undefined;
|
|
2069
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
2070
|
-
iconType?: string | undefined;
|
|
2071
|
-
}[] | undefined;
|
|
2072
|
-
alertInText?: string | undefined;
|
|
2073
|
-
pageTitle?: string | undefined;
|
|
2074
|
-
textAboveStartButton?: string | undefined;
|
|
2075
|
-
}[];
|
|
2076
|
-
textAboveStartButton?: string | undefined;
|
|
2077
|
-
}];
|
|
2078
|
-
};
|
|
2079
|
-
steps: {
|
|
2080
|
-
step: number;
|
|
2081
|
-
stepHeadline?: string | undefined;
|
|
2082
|
-
stepDescription?: string | undefined;
|
|
2083
|
-
shortNameInStepper: string;
|
|
2084
|
-
shortNameInPreview?: string | undefined;
|
|
2085
|
-
languageSupport?: any[] | undefined;
|
|
2086
|
-
}[];
|
|
2087
|
-
questions: {
|
|
2088
|
-
id?: number | undefined;
|
|
2089
|
-
mappingId?: string | undefined;
|
|
2090
|
-
step?: number | undefined;
|
|
2091
|
-
categoryLabel?: string | undefined;
|
|
2092
|
-
categoryDescription?: string | undefined;
|
|
2093
|
-
legend?: string | undefined;
|
|
2094
|
-
hideCategory?: boolean | undefined;
|
|
2095
|
-
questionLabel?: string | undefined;
|
|
2096
|
-
previewLabel?: string | undefined;
|
|
2097
|
-
validationSummaryLabel?: string | undefined;
|
|
2098
|
-
hideQuestion?: boolean | undefined;
|
|
2099
|
-
answer?: string | undefined;
|
|
2100
|
-
files?: ({
|
|
2101
|
-
lastModified: number;
|
|
2102
|
-
name: string;
|
|
2103
|
-
webkitRelativePath: string;
|
|
2104
|
-
size: number;
|
|
2105
|
-
type: string;
|
|
2106
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
2107
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
2108
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
2109
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
2110
|
-
text: () => Promise<string>;
|
|
2111
|
-
} | {
|
|
2112
|
-
file: {
|
|
2113
|
-
lastModified: number;
|
|
2114
|
-
name: string;
|
|
2115
|
-
webkitRelativePath: string;
|
|
2116
|
-
size: number;
|
|
2117
|
-
type: string;
|
|
2118
|
-
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
2119
|
-
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
2120
|
-
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
2121
|
-
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
2122
|
-
text: () => Promise<string>;
|
|
2123
|
-
};
|
|
2124
|
-
dataURL: string;
|
|
2125
|
-
id?: string | undefined;
|
|
2126
|
-
} | {
|
|
2127
|
-
FileName: string;
|
|
2128
|
-
FileSize: number;
|
|
2129
|
-
FileType: string;
|
|
2130
|
-
dataURL: string | {
|
|
2131
|
-
byteLength: number;
|
|
2132
|
-
slice: (begin?: number, end?: number) => ArrayBuffer;
|
|
2133
|
-
maxByteLength: number;
|
|
2134
|
-
resizable: boolean;
|
|
2135
|
-
resize: (newByteLength?: number) => void;
|
|
2136
|
-
detached: boolean;
|
|
2137
|
-
transfer: (newByteLength?: number) => ArrayBuffer;
|
|
2138
|
-
transferToFixedLength: (newByteLength?: number) => ArrayBuffer;
|
|
2139
|
-
[Symbol.toStringTag]: "ArrayBuffer";
|
|
2140
|
-
} | null;
|
|
2141
|
-
id?: string | undefined;
|
|
2142
|
-
})[] | null | undefined;
|
|
2143
|
-
allowedTotalFileSize?: number | undefined;
|
|
2144
|
-
allowedNumberOfFiles?: number | undefined;
|
|
2145
|
-
allowedFileTypes?: string[] | undefined;
|
|
2146
|
-
aboutText?: string | undefined;
|
|
2147
|
-
isQuestionMandatory?: boolean | undefined;
|
|
2148
|
-
questionType?: string | undefined;
|
|
2149
|
-
options?: {
|
|
2150
|
-
label: string;
|
|
2151
|
-
value?: string | undefined;
|
|
2152
|
-
id?: string | undefined;
|
|
2153
|
-
info?: string | undefined;
|
|
2154
|
-
optionCategory?: string | undefined;
|
|
2155
|
-
}[] | undefined;
|
|
2156
|
-
visible?: boolean | undefined;
|
|
2157
|
-
isDisplayed?: boolean | undefined;
|
|
2158
|
-
hasValidationError?: boolean | undefined;
|
|
2159
|
-
validationType?: string[] | undefined;
|
|
2160
|
-
validationDefaultMessesege?: string | undefined;
|
|
2161
|
-
questionGroupId?: number | undefined;
|
|
2162
|
-
questionGroupType?: string | undefined;
|
|
2163
|
-
dependsOnOtherQuestion?: any[] | undefined;
|
|
2164
|
-
questionExtraAttribute?: {
|
|
2165
|
-
answerMaxLength?: number | undefined;
|
|
2166
|
-
disabled?: boolean | undefined;
|
|
2167
|
-
autoComplete?: string | undefined;
|
|
2168
|
-
inputType?: string | undefined;
|
|
2169
|
-
showTextAreaCounter?: boolean | undefined;
|
|
2170
|
-
hideValidationMessage?: boolean | undefined;
|
|
2171
|
-
hideTextCounter?: boolean | undefined;
|
|
2172
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
2173
|
-
spellCheck?: boolean | undefined;
|
|
2174
|
-
autoCapitalize?: string | undefined;
|
|
2175
|
-
} | undefined;
|
|
2176
|
-
infoOnly?: {
|
|
2177
|
-
id?: string | undefined;
|
|
2178
|
-
headline?: string | undefined;
|
|
2179
|
-
body?: string | undefined;
|
|
2180
|
-
linksForMoreInfo?: {
|
|
2181
|
-
title: string;
|
|
2182
|
-
url: string;
|
|
2183
|
-
ariaLabel?: string | undefined;
|
|
2184
|
-
activatedLanguage?: string | undefined;
|
|
2185
|
-
openTarget?: string | undefined;
|
|
2186
|
-
icon?: react.ComponentType<react.SVGProps<SVGSVGElement>> | undefined;
|
|
2187
|
-
iconType?: string | undefined;
|
|
2188
|
-
}[] | undefined;
|
|
2189
|
-
alertInText?: string | undefined;
|
|
2190
|
-
pageTitle?: string | undefined;
|
|
2191
|
-
textAboveStartButton?: string | undefined;
|
|
2192
|
-
} | undefined;
|
|
2193
|
-
languageSupport: any[];
|
|
2194
|
-
}[];
|
|
2195
|
-
formLoaded: boolean;
|
|
2196
|
-
formStatus: "notloaded" | "idle" | "loading" | "failed" | "success";
|
|
2197
|
-
}, action: PayloadAction<any>) => void;
|
|
504
|
+
resetDependentAnswersForward: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
2198
505
|
}, string, string, _reduxjs_toolkit.SliceSelectors<IFormState>>;
|
|
2199
506
|
/**
|
|
2200
507
|
* Skapar ett set av selectors för formulärets globala state.
|
|
@@ -2440,7 +747,7 @@ declare const useCookieConsent: ({ cookieName, choiceKey, expiryYears, onConsent
|
|
|
2440
747
|
|
|
2441
748
|
interface QuestionRendererProps {
|
|
2442
749
|
question: any;
|
|
2443
|
-
handleQuestionInputChange: (question: any, event:
|
|
750
|
+
handleQuestionInputChange: (question: any, event: React$1.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
2444
751
|
activatedLanguage?: string;
|
|
2445
752
|
showPreview?: boolean;
|
|
2446
753
|
}
|
|
@@ -2461,7 +768,7 @@ interface QuestionRendererProps {
|
|
|
2461
768
|
* @param {boolean} showPreview - Styr om frågan ska visas i
|
|
2462
769
|
* preview-läge istället för som redigerbar input.
|
|
2463
770
|
*/
|
|
2464
|
-
declare const QuestionRenderer:
|
|
771
|
+
declare const QuestionRenderer: React$1.FC<QuestionRendererProps>;
|
|
2465
772
|
|
|
2466
773
|
type WrapperElement = 'fieldset' | 'section' | 'div' | 'none';
|
|
2467
774
|
interface Question {
|
|
@@ -2500,7 +807,7 @@ interface QuestionGroupProps {
|
|
|
2500
807
|
* @param {Function} props.markQuestionAsDisplayed Anropas när en fråga visas för att markera den som "displayed"
|
|
2501
808
|
* i globalt state.
|
|
2502
809
|
*/
|
|
2503
|
-
declare const QuestionGroup:
|
|
810
|
+
declare const QuestionGroup: React$1.FC<QuestionGroupProps>;
|
|
2504
811
|
|
|
2505
812
|
interface CookieBannerProps {
|
|
2506
813
|
isTouched?: any;
|
|
@@ -2512,7 +819,7 @@ interface CookieBannerProps {
|
|
|
2512
819
|
activatedLanguage?: string;
|
|
2513
820
|
}
|
|
2514
821
|
|
|
2515
|
-
declare const CookieBanner:
|
|
822
|
+
declare const CookieBanner: React$1.FC<CookieBannerProps>;
|
|
2516
823
|
|
|
2517
824
|
interface FooterProps {
|
|
2518
825
|
activatedLanguage?: string;
|
|
@@ -2669,7 +976,7 @@ interface StartApplicationButtonProps {
|
|
|
2669
976
|
* @param {string} className - Extra CSS-klasser för knappen.
|
|
2670
977
|
* @param {string} activatedLanguage - Aktiverat språk.
|
|
2671
978
|
*/
|
|
2672
|
-
declare const StartApplicationButton:
|
|
979
|
+
declare const StartApplicationButton: React$1.FC<StartApplicationButtonProps>;
|
|
2673
980
|
|
|
2674
981
|
interface StepperButtonsProps {
|
|
2675
982
|
globalLanguageState?: any;
|
|
@@ -2755,7 +1062,7 @@ interface ValidationErrorSummaryListProps {
|
|
|
2755
1062
|
* @param questions Alla frågor i formuläret (används för att hitta labels m.m.).
|
|
2756
1063
|
* @param activatedLanguage Aktivt språk.
|
|
2757
1064
|
*/
|
|
2758
|
-
declare const ValidationErrorSummaryList:
|
|
1065
|
+
declare const ValidationErrorSummaryList: React$1.FC<ValidationErrorSummaryListProps>;
|
|
2759
1066
|
|
|
2760
1067
|
interface FormStatusMessagesProps {
|
|
2761
1068
|
formStatus: string;
|
|
@@ -2769,6 +1076,6 @@ interface FormStatusMessagesProps {
|
|
|
2769
1076
|
* @param {string} [activatedLanguage='sv'] Den aktiverade språkkoden (default är svenska).
|
|
2770
1077
|
*
|
|
2771
1078
|
*/
|
|
2772
|
-
declare const FormStatusMessagesScreenReader:
|
|
1079
|
+
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
2773
1080
|
|
|
2774
1081
|
export { AddFiles as AddFilesStandard, AlertInTextStandard, CheckboxGroup as CheckboxGroupStandard, Collapse, CookieBanner, type CookieConsentConfig, CustomDropdownStandard as DropdownStandard, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IAppSettings, type IAppSettingsCookies, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InputInfoOnly as InfoOnlyStandard, type LanguageSupportConfig, LinkList as LinkListStandard, LinkStandard, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, Navigation, NavigationHeader, OptionTextBody, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, RadioWithInfo as RadioMultipleWithInfoStandard, SearchBar, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtonsNoApi as StepperButtonsNoApiStandard, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|