valtech-components 4.0.1015 → 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/survey-builder/survey-builder.component.mjs +156 -43
- package/esm2022/lib/components/organisms/survey-builder/survey-builder.i18n.mjs +7 -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 +166 -47
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/survey-builder/survey-builder.component.d.ts +6 -2
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -63,6 +63,7 @@ export declare class SurveyBuilderComponent implements OnInit {
|
|
|
63
63
|
readonly sectionIds: import("@angular/core").WritableSignal<string[]>;
|
|
64
64
|
readonly sectionNames: import("@angular/core").WritableSignal<Record<string, string>>;
|
|
65
65
|
readonly sectionSubtitles: import("@angular/core").WritableSignal<Record<string, string>>;
|
|
66
|
+
readonly activeSectionId: import("@angular/core").WritableSignal<string>;
|
|
66
67
|
private readonly sectionNameControls;
|
|
67
68
|
private readonly sectionSubtitleControls;
|
|
68
69
|
readonly questionGroups: import("@angular/core").Signal<SurveyQuestionSection[]>;
|
|
@@ -89,13 +90,14 @@ export declare class SurveyBuilderComponent implements OnInit {
|
|
|
89
90
|
saveProps(): ButtonMetadata;
|
|
90
91
|
closeStep(): number;
|
|
91
92
|
reviewStep(): number;
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
currentSectionId(): string | undefined;
|
|
94
|
+
selectSection(sectionId: string): void;
|
|
94
95
|
interpolate(template: string, values: Record<string, string | number>): string;
|
|
95
96
|
editorProps(row: EditableFieldDef): FieldSchemaEditorMetadata;
|
|
96
97
|
iconAction(token: string, icon: string, label: string, disabled?: boolean, color?: Color): ButtonMetadata;
|
|
97
98
|
addQuestionAriaLabel(sectionLabel?: string): string;
|
|
98
99
|
addQuestion(sectionId?: string): void;
|
|
100
|
+
addSection(): void;
|
|
99
101
|
rowGlobalIndex(sectionId: string, groupRowIndex: number): number;
|
|
100
102
|
nextQuestionIndexForSection(rows: EditableFieldDef[], sectionId: string): number;
|
|
101
103
|
toggleEdit(row: EditableFieldDef): void;
|
|
@@ -122,6 +124,8 @@ export declare class SurveyBuilderComponent implements OnInit {
|
|
|
122
124
|
private defaultSuccessTitle;
|
|
123
125
|
private defaultSuccessMessage;
|
|
124
126
|
private validateWizardStep;
|
|
127
|
+
private validateBeforeSave;
|
|
128
|
+
private validateRows;
|
|
125
129
|
private rowFromField;
|
|
126
130
|
reviewQuestionsCount(): string;
|
|
127
131
|
previewProps(): ButtonMetadata;
|
package/lib/version.d.ts
CHANGED