@rangertechnologies/ngnxt 2.1.83 → 2.1.85
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/custom-rich-text/custom-rich-text.component.mjs +27 -12
- package/esm2022/lib/components/pick-location/pick-location.component.mjs +33 -5
- package/esm2022/lib/nxt-app.module.mjs +41 -11
- package/esm2022/lib/pages/builder/element/element.component.mjs +155 -0
- package/esm2022/lib/pages/builder/menu/menu.component.mjs +28 -0
- package/esm2022/lib/pages/builder/properties/properties.component.mjs +480 -0
- package/esm2022/lib/services/data.service.mjs +3 -3
- package/esm2022/lib/services/form-builder.service.mjs +163 -0
- package/esm2022/public-api.mjs +4 -1
- package/fesm2022/rangertechnologies-ngnxt.mjs +901 -28
- package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
- package/lib/components/custom-rich-text/custom-rich-text.component.d.ts +1 -1
- package/lib/components/pick-location/pick-location.component.d.ts +5 -3
- package/lib/nxt-app.module.d.ts +18 -14
- package/lib/pages/builder/element/element.component.d.ts +29 -0
- package/lib/pages/builder/menu/menu.component.d.ts +10 -0
- package/lib/pages/builder/properties/properties.component.d.ts +531 -0
- package/lib/services/form-builder.service.d.ts +72 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/rangertechnologies-ngnxt-2.1.85.tgz +0 -0
- package/rangertechnologies-ngnxt-2.1.83.tgz +0 -0
|
@@ -22,7 +22,7 @@ export declare class CustomRichTextComponent implements OnInit, OnDestroy {
|
|
|
22
22
|
constructor(i18nService: I18nService, changeService: ChangeService);
|
|
23
23
|
ngOnInit(): void;
|
|
24
24
|
private initializeDependency;
|
|
25
|
-
|
|
25
|
+
onEditorBlur(): void;
|
|
26
26
|
ngOnDestroy(): void;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomRichTextComponent, never>;
|
|
28
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<CustomRichTextComponent, "app-custom-rich-text", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "error": { "alias": "error"; "required": false; }; "question": { "alias": "question"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; }, { "textValueChange": "textValueChange"; }, never, never, true, never>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
|
-
import { ElementRef, EventEmitter, NgZone, OnInit } from '@angular/core';
|
|
2
|
+
import { ElementRef, EventEmitter, ChangeDetectorRef, NgZone, OnInit, SimpleChanges, OnChanges } from '@angular/core';
|
|
3
3
|
import { I18nService } from '../../i18n.service';
|
|
4
4
|
import { ChangeWrapper } from '../../model/changeWrapper';
|
|
5
5
|
import { Question } from '../../wrapper';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class PickLocationComponent implements OnInit {
|
|
7
|
+
export declare class PickLocationComponent implements OnInit, OnChanges {
|
|
8
8
|
i18nService: I18nService;
|
|
9
9
|
private ngZone;
|
|
10
|
+
private cdr;
|
|
10
11
|
latitude: any;
|
|
11
12
|
longitude: any;
|
|
12
13
|
zoom: number;
|
|
@@ -27,8 +28,9 @@ export declare class PickLocationComponent implements OnInit {
|
|
|
27
28
|
};
|
|
28
29
|
markerOptions: any;
|
|
29
30
|
apiKey: any;
|
|
30
|
-
constructor(i18nService: I18nService, ngZone: NgZone);
|
|
31
|
+
constructor(i18nService: I18nService, ngZone: NgZone, cdr: ChangeDetectorRef);
|
|
31
32
|
ngOnInit(): void;
|
|
33
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
32
34
|
private loadGoogleMapsScript;
|
|
33
35
|
initAutocomplete(): void;
|
|
34
36
|
onMarkerDragEnd(): void;
|
package/lib/nxt-app.module.d.ts
CHANGED
|
@@ -27,21 +27,25 @@ import * as i25 from "./i18n.component";
|
|
|
27
27
|
import * as i26 from "./i18n.pipe";
|
|
28
28
|
import * as i27 from "./components/custom-image/custom-image.component";
|
|
29
29
|
import * as i28 from "./components/custom-radio/custom-radio.component";
|
|
30
|
-
import * as i29 from "
|
|
31
|
-
import * as i30 from "./
|
|
32
|
-
import * as i31 from "
|
|
33
|
-
import * as i32 from "
|
|
34
|
-
import * as i33 from "
|
|
35
|
-
import * as i34 from "
|
|
36
|
-
import * as i35 from "
|
|
37
|
-
import * as i36 from "@
|
|
38
|
-
import * as i37 from "
|
|
39
|
-
import * as i38 from "
|
|
40
|
-
import * as i39 from "
|
|
41
|
-
import * as i40 from "
|
|
42
|
-
import * as i41 from "
|
|
30
|
+
import * as i29 from "./pages/builder/element/element.component";
|
|
31
|
+
import * as i30 from "./pages/builder/properties/properties.component";
|
|
32
|
+
import * as i31 from "./pages/builder/menu/menu.component";
|
|
33
|
+
import * as i32 from "ngx-quill";
|
|
34
|
+
import * as i33 from "./components/custom-rich-text/custom-rich-text.component";
|
|
35
|
+
import * as i34 from "@angular/common";
|
|
36
|
+
import * as i35 from "@angular/forms";
|
|
37
|
+
import * as i36 from "@danielmoncada/angular-datetime-picker";
|
|
38
|
+
import * as i37 from "./directives/componenthost/componenthost.directive";
|
|
39
|
+
import * as i38 from "./pipe/get-value.pipe";
|
|
40
|
+
import * as i39 from "@ng-select/ng-select";
|
|
41
|
+
import * as i40 from "@angular/google-maps";
|
|
42
|
+
import * as i41 from "@angular/material/tooltip";
|
|
43
|
+
import * as i42 from "@angular/cdk/drag-drop";
|
|
44
|
+
import * as i43 from "ngx-spinner";
|
|
45
|
+
import * as i44 from "./i18n.module";
|
|
46
|
+
import * as i45 from "ng-circle-progress";
|
|
43
47
|
export declare class NxtAppModule {
|
|
44
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<NxtAppModule, never>;
|
|
45
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NxtAppModule, [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i3.PickLocationComponent, typeof i4.CustomInputComponent, typeof i5.CustomTextAreaComponent, typeof i6.CustomTableComponent, typeof i7.CustomCalendarComponent, typeof i8.CustomDatePickerComponent, typeof i9.DropdownWithFlagComponent, typeof i10.CustomDropdownComponent, typeof i11.BookletComponent, typeof i12.SearchBoxComponent, typeof i13.QuestionbookComponent, typeof i14.FileUploadComponent, typeof i15.SummaryPageComponent, typeof i16.FileViewComponent, typeof i17.DependentTableComponent, typeof i18.CustomLabelComponent, typeof i19.TableAppendixComponent, typeof i20.CustomDateComponent, typeof i21.CustomTimeComponent, typeof i22.CustomButtonComponent, typeof i23.CustomModelComponent, typeof i24.LoaderComponent, typeof i25.I18nComponent, typeof i26.I18nPipe, typeof i27.CustomImageComponent, typeof i28.CustomRadioComponent], [typeof
|
|
49
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NxtAppModule, [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i3.PickLocationComponent, typeof i4.CustomInputComponent, typeof i5.CustomTextAreaComponent, typeof i6.CustomTableComponent, typeof i7.CustomCalendarComponent, typeof i8.CustomDatePickerComponent, typeof i9.DropdownWithFlagComponent, typeof i10.CustomDropdownComponent, typeof i11.BookletComponent, typeof i12.SearchBoxComponent, typeof i13.QuestionbookComponent, typeof i14.FileUploadComponent, typeof i15.SummaryPageComponent, typeof i16.FileViewComponent, typeof i17.DependentTableComponent, typeof i18.CustomLabelComponent, typeof i19.TableAppendixComponent, typeof i20.CustomDateComponent, typeof i21.CustomTimeComponent, typeof i22.CustomButtonComponent, typeof i23.CustomModelComponent, typeof i24.LoaderComponent, typeof i25.I18nComponent, typeof i26.I18nPipe, typeof i27.CustomImageComponent, typeof i28.CustomRadioComponent, typeof i29.ElementComponent, typeof i30.PropertiesComponent, typeof i31.MenuComponent], [typeof i32.QuillModule, typeof i33.CustomRichTextComponent, typeof i34.CommonModule, typeof i35.FormsModule, typeof i35.ReactiveFormsModule, typeof i36.OwlDateTimeModule, typeof i36.OwlNativeDateTimeModule, typeof i37.ComponenthostDirective, typeof i38.GetValuePipe, typeof i39.NgSelectModule, typeof i40.GoogleMapsModule, typeof i41.MatTooltipModule, typeof i42.DragDropModule, typeof i43.NgxSpinnerModule, typeof i44.I18nModule, typeof i45.NgCircleProgressModule], [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i11.BookletComponent, typeof i15.SummaryPageComponent, typeof i26.I18nPipe, typeof i25.I18nComponent, typeof i29.ElementComponent, typeof i30.PropertiesComponent, typeof i31.MenuComponent]>;
|
|
46
50
|
static ɵinj: i0.ɵɵInjectorDeclaration<NxtAppModule>;
|
|
47
51
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
3
|
+
import { FormBuilderService } from '../../../services/form-builder.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ElementComponent {
|
|
6
|
+
private formBuilderService;
|
|
7
|
+
elementButtonClicked: EventEmitter<string>;
|
|
8
|
+
formContainer: ElementRef;
|
|
9
|
+
bookletJSON: any;
|
|
10
|
+
bookletId: any;
|
|
11
|
+
formElements: any[];
|
|
12
|
+
constructor(formBuilderService: FormBuilderService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
drop(event: CdkDragDrop<string[]>): void;
|
|
15
|
+
selectElement(index: number): void;
|
|
16
|
+
addElement(type: string): void;
|
|
17
|
+
addOption(options: Array<{
|
|
18
|
+
label: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}>): void;
|
|
21
|
+
removeOption(options: Array<{
|
|
22
|
+
label: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}>, index: number): void;
|
|
25
|
+
removeElement(field: any, index: number): void;
|
|
26
|
+
getFontStyles(field: any): any;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "app-element", never, { "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "bookletId": { "alias": "bookletId"; "required": false; }; }, { "elementButtonClicked": "elementButtonClicked"; }, never, never, false, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class MenuComponent {
|
|
3
|
+
activeIndex: number;
|
|
4
|
+
menuItems: {
|
|
5
|
+
icon: string;
|
|
6
|
+
}[];
|
|
7
|
+
setActiveMenu(index: number): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "app-menu", never, {}, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,531 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
3
|
+
import { FormBuilderService } from '../../../services/form-builder.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PropertiesComponent implements OnInit {
|
|
6
|
+
private http;
|
|
7
|
+
private formBuilderService;
|
|
8
|
+
colorWheel: ElementRef<HTMLCanvasElement>;
|
|
9
|
+
private ctx;
|
|
10
|
+
selectedOption: string;
|
|
11
|
+
selectedElementIndex: number;
|
|
12
|
+
selectedElementType: string;
|
|
13
|
+
selectedAlign: string;
|
|
14
|
+
selectedStyles: string[];
|
|
15
|
+
errorMessage: string;
|
|
16
|
+
selectedElement: any;
|
|
17
|
+
onToggleChange(property: string, event: any): void;
|
|
18
|
+
updateProperties(elementType: string): void;
|
|
19
|
+
onAlignSelect(value: string): void;
|
|
20
|
+
onStyleSelect(value: string): void;
|
|
21
|
+
isStyleActive(value: string): boolean;
|
|
22
|
+
elementProperties: {
|
|
23
|
+
Text: {
|
|
24
|
+
elementProps: ({
|
|
25
|
+
label: string;
|
|
26
|
+
placeholder: string;
|
|
27
|
+
type: string;
|
|
28
|
+
key: string;
|
|
29
|
+
options?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
label: string;
|
|
32
|
+
type: string;
|
|
33
|
+
placeholder?: undefined;
|
|
34
|
+
key?: undefined;
|
|
35
|
+
options?: undefined;
|
|
36
|
+
} | {
|
|
37
|
+
label: string;
|
|
38
|
+
type: string;
|
|
39
|
+
key: string;
|
|
40
|
+
options: string[];
|
|
41
|
+
placeholder?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
label: string;
|
|
44
|
+
type: string;
|
|
45
|
+
key: string;
|
|
46
|
+
options: {
|
|
47
|
+
value: string;
|
|
48
|
+
label: string;
|
|
49
|
+
}[];
|
|
50
|
+
placeholder?: undefined;
|
|
51
|
+
} | {
|
|
52
|
+
label: string;
|
|
53
|
+
type: string;
|
|
54
|
+
key: string;
|
|
55
|
+
options: {
|
|
56
|
+
value: string;
|
|
57
|
+
icon: string;
|
|
58
|
+
}[];
|
|
59
|
+
placeholder?: undefined;
|
|
60
|
+
} | {
|
|
61
|
+
label: string;
|
|
62
|
+
type: string;
|
|
63
|
+
key: string;
|
|
64
|
+
placeholder?: undefined;
|
|
65
|
+
options?: undefined;
|
|
66
|
+
})[];
|
|
67
|
+
fieldProps: ({
|
|
68
|
+
label: string;
|
|
69
|
+
type: string;
|
|
70
|
+
placeholder?: undefined;
|
|
71
|
+
key?: undefined;
|
|
72
|
+
} | {
|
|
73
|
+
label: string;
|
|
74
|
+
placeholder: string;
|
|
75
|
+
type: string;
|
|
76
|
+
key: string;
|
|
77
|
+
} | {
|
|
78
|
+
label: string;
|
|
79
|
+
placeholder: string;
|
|
80
|
+
type: string;
|
|
81
|
+
key?: undefined;
|
|
82
|
+
})[];
|
|
83
|
+
};
|
|
84
|
+
CheckBox: {
|
|
85
|
+
elementProps: ({
|
|
86
|
+
label: string;
|
|
87
|
+
placeholder: string;
|
|
88
|
+
type: string;
|
|
89
|
+
key: string;
|
|
90
|
+
} | {
|
|
91
|
+
label: string;
|
|
92
|
+
type: string;
|
|
93
|
+
placeholder?: undefined;
|
|
94
|
+
key?: undefined;
|
|
95
|
+
} | {
|
|
96
|
+
label: string;
|
|
97
|
+
type: string;
|
|
98
|
+
key: string;
|
|
99
|
+
placeholder?: undefined;
|
|
100
|
+
})[];
|
|
101
|
+
fieldProps: ({
|
|
102
|
+
label: string;
|
|
103
|
+
type: string;
|
|
104
|
+
placeholder?: undefined;
|
|
105
|
+
key?: undefined;
|
|
106
|
+
options?: undefined;
|
|
107
|
+
addOptionLabel?: undefined;
|
|
108
|
+
icon?: undefined;
|
|
109
|
+
} | {
|
|
110
|
+
label: string;
|
|
111
|
+
placeholder: string;
|
|
112
|
+
type: string;
|
|
113
|
+
key?: undefined;
|
|
114
|
+
options?: undefined;
|
|
115
|
+
addOptionLabel?: undefined;
|
|
116
|
+
icon?: undefined;
|
|
117
|
+
} | {
|
|
118
|
+
label: string;
|
|
119
|
+
type: string;
|
|
120
|
+
key: string;
|
|
121
|
+
options: {
|
|
122
|
+
label: string;
|
|
123
|
+
value: string;
|
|
124
|
+
type: string;
|
|
125
|
+
key: string;
|
|
126
|
+
}[];
|
|
127
|
+
addOptionLabel: string;
|
|
128
|
+
icon: string;
|
|
129
|
+
placeholder?: undefined;
|
|
130
|
+
})[];
|
|
131
|
+
};
|
|
132
|
+
Calendar: {
|
|
133
|
+
elementProps: ({
|
|
134
|
+
label: string;
|
|
135
|
+
placeholder: string;
|
|
136
|
+
type: string;
|
|
137
|
+
key: string;
|
|
138
|
+
} | {
|
|
139
|
+
label: string;
|
|
140
|
+
type: string;
|
|
141
|
+
placeholder?: undefined;
|
|
142
|
+
key?: undefined;
|
|
143
|
+
} | {
|
|
144
|
+
label: string;
|
|
145
|
+
type: string;
|
|
146
|
+
key: string;
|
|
147
|
+
placeholder?: undefined;
|
|
148
|
+
})[];
|
|
149
|
+
fieldProps: ({
|
|
150
|
+
label: string;
|
|
151
|
+
type: string;
|
|
152
|
+
placeholder?: undefined;
|
|
153
|
+
} | {
|
|
154
|
+
label: string;
|
|
155
|
+
placeholder: string;
|
|
156
|
+
type: string;
|
|
157
|
+
})[];
|
|
158
|
+
};
|
|
159
|
+
Time: {
|
|
160
|
+
elementProps: ({
|
|
161
|
+
label: string;
|
|
162
|
+
placeholder: string;
|
|
163
|
+
type: string;
|
|
164
|
+
key: string;
|
|
165
|
+
} | {
|
|
166
|
+
label: string;
|
|
167
|
+
type: string;
|
|
168
|
+
placeholder?: undefined;
|
|
169
|
+
key?: undefined;
|
|
170
|
+
} | {
|
|
171
|
+
label: string;
|
|
172
|
+
type: string;
|
|
173
|
+
key: string;
|
|
174
|
+
placeholder?: undefined;
|
|
175
|
+
})[];
|
|
176
|
+
fieldProps: ({
|
|
177
|
+
label: string;
|
|
178
|
+
type: string;
|
|
179
|
+
placeholder?: undefined;
|
|
180
|
+
} | {
|
|
181
|
+
label: string;
|
|
182
|
+
placeholder: string;
|
|
183
|
+
type: string;
|
|
184
|
+
})[];
|
|
185
|
+
};
|
|
186
|
+
Email: {
|
|
187
|
+
elementProps: ({
|
|
188
|
+
label: string;
|
|
189
|
+
placeholder: string;
|
|
190
|
+
type: string;
|
|
191
|
+
key: string;
|
|
192
|
+
} | {
|
|
193
|
+
label: string;
|
|
194
|
+
type: string;
|
|
195
|
+
placeholder?: undefined;
|
|
196
|
+
key?: undefined;
|
|
197
|
+
} | {
|
|
198
|
+
label: string;
|
|
199
|
+
type: string;
|
|
200
|
+
key: string;
|
|
201
|
+
placeholder?: undefined;
|
|
202
|
+
})[];
|
|
203
|
+
fieldProps: ({
|
|
204
|
+
label: string;
|
|
205
|
+
type: string;
|
|
206
|
+
placeholder?: undefined;
|
|
207
|
+
} | {
|
|
208
|
+
label: string;
|
|
209
|
+
placeholder: string;
|
|
210
|
+
type: string;
|
|
211
|
+
})[];
|
|
212
|
+
};
|
|
213
|
+
File: {
|
|
214
|
+
elementProps: ({
|
|
215
|
+
label: string;
|
|
216
|
+
placeholder: string;
|
|
217
|
+
type: string;
|
|
218
|
+
key: string;
|
|
219
|
+
options?: undefined;
|
|
220
|
+
} | {
|
|
221
|
+
label: string;
|
|
222
|
+
type: string;
|
|
223
|
+
key: string;
|
|
224
|
+
options: {
|
|
225
|
+
label: string;
|
|
226
|
+
value: string;
|
|
227
|
+
extensions: string[];
|
|
228
|
+
}[];
|
|
229
|
+
placeholder?: undefined;
|
|
230
|
+
} | {
|
|
231
|
+
label: string;
|
|
232
|
+
type: string;
|
|
233
|
+
placeholder?: undefined;
|
|
234
|
+
key?: undefined;
|
|
235
|
+
options?: undefined;
|
|
236
|
+
} | {
|
|
237
|
+
label: string;
|
|
238
|
+
type: string;
|
|
239
|
+
key: string;
|
|
240
|
+
placeholder?: undefined;
|
|
241
|
+
options?: undefined;
|
|
242
|
+
})[];
|
|
243
|
+
fieldProps: ({
|
|
244
|
+
label: string;
|
|
245
|
+
type: string;
|
|
246
|
+
placeholder?: undefined;
|
|
247
|
+
} | {
|
|
248
|
+
label: string;
|
|
249
|
+
placeholder: string;
|
|
250
|
+
type: string;
|
|
251
|
+
})[];
|
|
252
|
+
};
|
|
253
|
+
List: {
|
|
254
|
+
elementProps: ({
|
|
255
|
+
label: string;
|
|
256
|
+
placeholder: string;
|
|
257
|
+
type: string;
|
|
258
|
+
key: string;
|
|
259
|
+
} | {
|
|
260
|
+
label: string;
|
|
261
|
+
type: string;
|
|
262
|
+
placeholder?: undefined;
|
|
263
|
+
key?: undefined;
|
|
264
|
+
} | {
|
|
265
|
+
label: string;
|
|
266
|
+
type: string;
|
|
267
|
+
key: string;
|
|
268
|
+
placeholder?: undefined;
|
|
269
|
+
})[];
|
|
270
|
+
fieldProps: ({
|
|
271
|
+
label: string;
|
|
272
|
+
type: string;
|
|
273
|
+
placeholder?: undefined;
|
|
274
|
+
} | {
|
|
275
|
+
label: string;
|
|
276
|
+
placeholder: string;
|
|
277
|
+
type: string;
|
|
278
|
+
})[];
|
|
279
|
+
};
|
|
280
|
+
TextArea: {
|
|
281
|
+
elementProps: ({
|
|
282
|
+
label: string;
|
|
283
|
+
placeholder: string;
|
|
284
|
+
type: string;
|
|
285
|
+
key: string;
|
|
286
|
+
} | {
|
|
287
|
+
label: string;
|
|
288
|
+
type: string;
|
|
289
|
+
placeholder?: undefined;
|
|
290
|
+
key?: undefined;
|
|
291
|
+
} | {
|
|
292
|
+
label: string;
|
|
293
|
+
type: string;
|
|
294
|
+
key: string;
|
|
295
|
+
placeholder?: undefined;
|
|
296
|
+
})[];
|
|
297
|
+
fieldProps: ({
|
|
298
|
+
label: string;
|
|
299
|
+
type: string;
|
|
300
|
+
key: string;
|
|
301
|
+
placeholder?: undefined;
|
|
302
|
+
} | {
|
|
303
|
+
label: string;
|
|
304
|
+
placeholder: string;
|
|
305
|
+
type: string;
|
|
306
|
+
key: string;
|
|
307
|
+
} | {
|
|
308
|
+
label: string;
|
|
309
|
+
placeholder: string;
|
|
310
|
+
type: string;
|
|
311
|
+
key?: undefined;
|
|
312
|
+
})[];
|
|
313
|
+
};
|
|
314
|
+
Numbers: {
|
|
315
|
+
elementProps: ({
|
|
316
|
+
label: string;
|
|
317
|
+
placeholder: string;
|
|
318
|
+
type: string;
|
|
319
|
+
key: string;
|
|
320
|
+
} | {
|
|
321
|
+
label: string;
|
|
322
|
+
type: string;
|
|
323
|
+
placeholder?: undefined;
|
|
324
|
+
key?: undefined;
|
|
325
|
+
} | {
|
|
326
|
+
label: string;
|
|
327
|
+
type: string;
|
|
328
|
+
key: string;
|
|
329
|
+
placeholder?: undefined;
|
|
330
|
+
})[];
|
|
331
|
+
fieldProps: ({
|
|
332
|
+
label: string;
|
|
333
|
+
type: string;
|
|
334
|
+
placeholder?: undefined;
|
|
335
|
+
} | {
|
|
336
|
+
label: string;
|
|
337
|
+
placeholder: string;
|
|
338
|
+
type: string;
|
|
339
|
+
})[];
|
|
340
|
+
};
|
|
341
|
+
Dropdown: {
|
|
342
|
+
elementProps: ({
|
|
343
|
+
label: string;
|
|
344
|
+
placeholder: string;
|
|
345
|
+
type: string;
|
|
346
|
+
key: string;
|
|
347
|
+
} | {
|
|
348
|
+
label: string;
|
|
349
|
+
type: string;
|
|
350
|
+
placeholder?: undefined;
|
|
351
|
+
key?: undefined;
|
|
352
|
+
} | {
|
|
353
|
+
label: string;
|
|
354
|
+
type: string;
|
|
355
|
+
key: string;
|
|
356
|
+
placeholder?: undefined;
|
|
357
|
+
})[];
|
|
358
|
+
fieldProps: ({
|
|
359
|
+
label: string;
|
|
360
|
+
type: string;
|
|
361
|
+
placeholder?: undefined;
|
|
362
|
+
key?: undefined;
|
|
363
|
+
options?: undefined;
|
|
364
|
+
addOptionLabel?: undefined;
|
|
365
|
+
icon?: undefined;
|
|
366
|
+
} | {
|
|
367
|
+
label: string;
|
|
368
|
+
placeholder: string;
|
|
369
|
+
type: string;
|
|
370
|
+
key?: undefined;
|
|
371
|
+
options?: undefined;
|
|
372
|
+
addOptionLabel?: undefined;
|
|
373
|
+
icon?: undefined;
|
|
374
|
+
} | {
|
|
375
|
+
label: string;
|
|
376
|
+
type: string;
|
|
377
|
+
key: string;
|
|
378
|
+
options: {
|
|
379
|
+
label: string;
|
|
380
|
+
value: string;
|
|
381
|
+
type: string;
|
|
382
|
+
key: string;
|
|
383
|
+
}[];
|
|
384
|
+
addOptionLabel: string;
|
|
385
|
+
icon: string;
|
|
386
|
+
placeholder?: undefined;
|
|
387
|
+
})[];
|
|
388
|
+
};
|
|
389
|
+
Image: {
|
|
390
|
+
elementProps: ({
|
|
391
|
+
label: string;
|
|
392
|
+
placeholder: string;
|
|
393
|
+
type: string;
|
|
394
|
+
key: string;
|
|
395
|
+
} | {
|
|
396
|
+
label: string;
|
|
397
|
+
type: string;
|
|
398
|
+
placeholder?: undefined;
|
|
399
|
+
key?: undefined;
|
|
400
|
+
} | {
|
|
401
|
+
label: string;
|
|
402
|
+
type: string;
|
|
403
|
+
key: string;
|
|
404
|
+
placeholder?: undefined;
|
|
405
|
+
})[];
|
|
406
|
+
fieldProps: ({
|
|
407
|
+
label: string;
|
|
408
|
+
type: string;
|
|
409
|
+
placeholder?: undefined;
|
|
410
|
+
} | {
|
|
411
|
+
label: string;
|
|
412
|
+
placeholder: string;
|
|
413
|
+
type: string;
|
|
414
|
+
})[];
|
|
415
|
+
};
|
|
416
|
+
Radio: {
|
|
417
|
+
elementProps: ({
|
|
418
|
+
label: string;
|
|
419
|
+
placeholder: string;
|
|
420
|
+
type: string;
|
|
421
|
+
key: string;
|
|
422
|
+
} | {
|
|
423
|
+
label: string;
|
|
424
|
+
type: string;
|
|
425
|
+
placeholder?: undefined;
|
|
426
|
+
key?: undefined;
|
|
427
|
+
} | {
|
|
428
|
+
label: string;
|
|
429
|
+
type: string;
|
|
430
|
+
key: string;
|
|
431
|
+
placeholder?: undefined;
|
|
432
|
+
})[];
|
|
433
|
+
fieldProps: ({
|
|
434
|
+
label: string;
|
|
435
|
+
type: string;
|
|
436
|
+
placeholder?: undefined;
|
|
437
|
+
key?: undefined;
|
|
438
|
+
options?: undefined;
|
|
439
|
+
addOptionLabel?: undefined;
|
|
440
|
+
icon?: undefined;
|
|
441
|
+
} | {
|
|
442
|
+
label: string;
|
|
443
|
+
placeholder: string;
|
|
444
|
+
type: string;
|
|
445
|
+
key?: undefined;
|
|
446
|
+
options?: undefined;
|
|
447
|
+
addOptionLabel?: undefined;
|
|
448
|
+
icon?: undefined;
|
|
449
|
+
} | {
|
|
450
|
+
label: string;
|
|
451
|
+
type: string;
|
|
452
|
+
key: string;
|
|
453
|
+
options: {
|
|
454
|
+
label: string;
|
|
455
|
+
value: string;
|
|
456
|
+
type: string;
|
|
457
|
+
key: string;
|
|
458
|
+
}[];
|
|
459
|
+
addOptionLabel: string;
|
|
460
|
+
icon: string;
|
|
461
|
+
placeholder?: undefined;
|
|
462
|
+
})[];
|
|
463
|
+
};
|
|
464
|
+
Book: {
|
|
465
|
+
elementProps: ({
|
|
466
|
+
label: string;
|
|
467
|
+
placeholder: string;
|
|
468
|
+
type: string;
|
|
469
|
+
key: string;
|
|
470
|
+
} | {
|
|
471
|
+
label: string;
|
|
472
|
+
type: string;
|
|
473
|
+
placeholder?: undefined;
|
|
474
|
+
key?: undefined;
|
|
475
|
+
} | {
|
|
476
|
+
label: string;
|
|
477
|
+
type: string;
|
|
478
|
+
key: string;
|
|
479
|
+
placeholder?: undefined;
|
|
480
|
+
})[];
|
|
481
|
+
fieldProps: ({
|
|
482
|
+
label: string;
|
|
483
|
+
type: string;
|
|
484
|
+
placeholder?: undefined;
|
|
485
|
+
} | {
|
|
486
|
+
label: string;
|
|
487
|
+
placeholder: string;
|
|
488
|
+
type: string;
|
|
489
|
+
})[];
|
|
490
|
+
};
|
|
491
|
+
Button: {
|
|
492
|
+
elementProps: ({
|
|
493
|
+
label: string;
|
|
494
|
+
placeholder: string;
|
|
495
|
+
type: string;
|
|
496
|
+
key: string;
|
|
497
|
+
} | {
|
|
498
|
+
label: string;
|
|
499
|
+
type: string;
|
|
500
|
+
placeholder?: undefined;
|
|
501
|
+
key?: undefined;
|
|
502
|
+
} | {
|
|
503
|
+
label: string;
|
|
504
|
+
type: string;
|
|
505
|
+
key: string;
|
|
506
|
+
placeholder?: undefined;
|
|
507
|
+
})[];
|
|
508
|
+
fieldProps: ({
|
|
509
|
+
label: string;
|
|
510
|
+
type: string;
|
|
511
|
+
placeholder?: undefined;
|
|
512
|
+
} | {
|
|
513
|
+
label: string;
|
|
514
|
+
placeholder: string;
|
|
515
|
+
type: string;
|
|
516
|
+
})[];
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
constructor(http: HttpClient, formBuilderService: FormBuilderService);
|
|
520
|
+
ngOnInit(): void;
|
|
521
|
+
validateInput(value: string, type: string): boolean;
|
|
522
|
+
updateProperty(key: string, value: any): void;
|
|
523
|
+
onRequiredChange(value: boolean): void;
|
|
524
|
+
getProperties(): any;
|
|
525
|
+
addOption(options: any[]): void;
|
|
526
|
+
removeOption(options: any[], index: number): void;
|
|
527
|
+
download(): void;
|
|
528
|
+
save(): void;
|
|
529
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PropertiesComponent, never>;
|
|
530
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PropertiesComponent, "app-properties", never, { "selectedElementType": { "alias": "selectedElementType"; "required": false; }; }, {}, never, never, false, never>;
|
|
531
|
+
}
|