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.
@@ -60,5 +60,7 @@ export interface FieldSchemaEditorMetadata {
60
60
  showPlaceholder?: boolean;
61
61
  /** Default true. */
62
62
  showHint?: boolean;
63
+ /** Default true. */
64
+ showSection?: boolean;
63
65
  state?: ComponentState;
64
66
  }
@@ -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
- sectionStepIndex(sectionIndex: number): number;
88
- showCurrentSectionQuestionStep(): boolean;
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
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.1014";
5
+ export declare const VERSION = "4.0.1016";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.1014",
3
+ "version": "4.0.1016",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"