valtech-components 4.0.1014 → 4.0.1016
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/esm2022/lib/components/organisms/field-schema-editor/field-schema-editor.component.mjs +11 -7
- package/esm2022/lib/components/organisms/field-schema-editor/types.mjs +1 -1
- package/esm2022/lib/components/organisms/survey-builder/survey-builder.component.mjs +215 -58
- package/esm2022/lib/components/organisms/survey-builder/survey-builder.i18n.mjs +13 -1
- package/esm2022/lib/components/organisms/survey-builder/survey-preview-modal.component.mjs +3 -3
- package/esm2022/lib/components/organisms/survey-response/survey-response.component.mjs +3 -3
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +241 -68
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/field-schema-editor/types.d.ts +2 -0
- package/lib/components/organisms/survey-builder/survey-builder.component.d.ts +11 -2
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
interface SurveyQuestionSection {
|
|
9
9
|
id: string;
|
|
10
10
|
label: string;
|
|
11
|
+
subtitle: string;
|
|
11
12
|
rows: EditableFieldDef[];
|
|
12
13
|
}
|
|
13
14
|
interface WizardStep {
|
|
@@ -59,13 +60,18 @@ export declare class SurveyBuilderComponent implements OnInit {
|
|
|
59
60
|
readonly validationError: import("@angular/core").WritableSignal<string>;
|
|
60
61
|
readonly saving: import("@angular/core").WritableSignal<boolean>;
|
|
61
62
|
readonly uploadingImage: import("@angular/core").WritableSignal<"" | "success" | "header">;
|
|
63
|
+
readonly sectionIds: import("@angular/core").WritableSignal<string[]>;
|
|
64
|
+
readonly sectionNames: import("@angular/core").WritableSignal<Record<string, string>>;
|
|
62
65
|
readonly sectionSubtitles: import("@angular/core").WritableSignal<Record<string, string>>;
|
|
66
|
+
readonly activeSectionId: import("@angular/core").WritableSignal<string>;
|
|
67
|
+
private readonly sectionNameControls;
|
|
63
68
|
private readonly sectionSubtitleControls;
|
|
64
69
|
readonly questionGroups: import("@angular/core").Signal<SurveyQuestionSection[]>;
|
|
65
70
|
readonly wizardSteps: import("@angular/core").Signal<WizardStep[]>;
|
|
66
71
|
private groupQuestions;
|
|
67
72
|
private normalizeSectionId;
|
|
68
73
|
private questionGroupById;
|
|
74
|
+
sectionNameControl(sectionId: string): FormControl;
|
|
69
75
|
sectionSubtitleControl(sectionId: string): FormControl;
|
|
70
76
|
private readonly allowedImageTypes;
|
|
71
77
|
private readonly maxImageBytes;
|
|
@@ -84,13 +90,14 @@ export declare class SurveyBuilderComponent implements OnInit {
|
|
|
84
90
|
saveProps(): ButtonMetadata;
|
|
85
91
|
closeStep(): number;
|
|
86
92
|
reviewStep(): number;
|
|
87
|
-
|
|
88
|
-
|
|
93
|
+
currentSectionId(): string | undefined;
|
|
94
|
+
selectSection(sectionId: string): void;
|
|
89
95
|
interpolate(template: string, values: Record<string, string | number>): string;
|
|
90
96
|
editorProps(row: EditableFieldDef): FieldSchemaEditorMetadata;
|
|
91
97
|
iconAction(token: string, icon: string, label: string, disabled?: boolean, color?: Color): ButtonMetadata;
|
|
92
98
|
addQuestionAriaLabel(sectionLabel?: string): string;
|
|
93
99
|
addQuestion(sectionId?: string): void;
|
|
100
|
+
addSection(): void;
|
|
94
101
|
rowGlobalIndex(sectionId: string, groupRowIndex: number): number;
|
|
95
102
|
nextQuestionIndexForSection(rows: EditableFieldDef[], sectionId: string): number;
|
|
96
103
|
toggleEdit(row: EditableFieldDef): void;
|
|
@@ -117,6 +124,8 @@ export declare class SurveyBuilderComponent implements OnInit {
|
|
|
117
124
|
private defaultSuccessTitle;
|
|
118
125
|
private defaultSuccessMessage;
|
|
119
126
|
private validateWizardStep;
|
|
127
|
+
private validateBeforeSave;
|
|
128
|
+
private validateRows;
|
|
120
129
|
private rowFromField;
|
|
121
130
|
reviewQuestionsCount(): string;
|
|
122
131
|
previewProps(): ButtonMetadata;
|
package/lib/version.d.ts
CHANGED