onshore-forms 1.0.21 → 1.1.0
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/fesm2022/onshore-forms.mjs +85 -85
- package/fesm2022/onshore-forms.mjs.map +1 -1
- package/package.json +10 -10
- package/types/onshore-forms.d.ts +528 -0
- package/index.d.ts +0 -5
- package/lib/components/form-autocomplete-item/form-autocomplete-item.component.d.ts +0 -35
- package/lib/components/form-checkbox-item/form-checkbox-item.component.d.ts +0 -24
- package/lib/components/form-colorpicker-item/form-colorpicker-item.component.d.ts +0 -27
- package/lib/components/form-datetime-item/form-datetime-item.component.d.ts +0 -28
- package/lib/components/form-dropdown-item/form-dropdown-item.component.d.ts +0 -39
- package/lib/components/form-image-item/form-image-item.component.d.ts +0 -38
- package/lib/components/form-input-item/form-input-item.component.d.ts +0 -36
- package/lib/components/form-item-container/form-item-container.component.d.ts +0 -27
- package/lib/components/form-scanner-item/form-scanner-item.component.d.ts +0 -36
- package/lib/components/form-sort-item/form-sort-item.component.d.ts +0 -28
- package/lib/components/form-switch-item/form-switch-item.component.d.ts +0 -24
- package/lib/components/form-validation-output/form-validation-output.component.d.ts +0 -15
- package/lib/components/image-chooser/image-chooser.component.d.ts +0 -24
- package/lib/components/image-placeholder/image-placeholder.component.d.ts +0 -15
- package/lib/components/inplace-input/inplace-input.component.d.ts +0 -11
- package/lib/components/webcam/webcam.component.d.ts +0 -24
- package/lib/enums/form.enums.d.ts +0 -34
- package/lib/models/form.models.d.ts +0 -76
- package/lib/onshore-forms.service.d.ts +0 -36
- package/lib/validators/form.validators.d.ts +0 -7
- package/public-api.d.ts +0 -19
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0
|
|
2
|
+
"version": "1.1.0",
|
|
3
3
|
"name": "onshore-forms",
|
|
4
4
|
"description": "OnShore Angular Form Builder",
|
|
5
5
|
"author": {
|
|
@@ -15,28 +15,28 @@
|
|
|
15
15
|
"url": "https://github.com/OnShore-Development/onshore_libs.git/issues"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@angular/common": "^
|
|
19
|
-
"@angular/core": "^
|
|
20
|
-
"@fortawesome/fontawesome-free": "^
|
|
21
|
-
"@ngx-translate/core": "^
|
|
22
|
-
"@
|
|
18
|
+
"@angular/common": "^21.1.0",
|
|
19
|
+
"@angular/core": "^21.1.0",
|
|
20
|
+
"@fortawesome/fontawesome-free": "^7.1.0",
|
|
21
|
+
"@ngx-translate/core": "^17.0.0",
|
|
22
|
+
"@primeuix/themes": "^21.0.3",
|
|
23
23
|
"ngx-image-cropper": "^9.0.0",
|
|
24
24
|
"ngx-webcam": "^0.4.1",
|
|
25
|
-
"primeflex": "^
|
|
25
|
+
"primeflex": "^4.0.0",
|
|
26
26
|
"primeicons": "^7.0.0",
|
|
27
|
-
"primeng": "^
|
|
27
|
+
"primeng": "^21.0.3"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"tslib": "^2.3.0"
|
|
31
31
|
},
|
|
32
32
|
"module": "fesm2022/onshore-forms.mjs",
|
|
33
|
-
"typings": "
|
|
33
|
+
"typings": "types/onshore-forms.d.ts",
|
|
34
34
|
"exports": {
|
|
35
35
|
"./package.json": {
|
|
36
36
|
"default": "./package.json"
|
|
37
37
|
},
|
|
38
38
|
".": {
|
|
39
|
-
"types": "./
|
|
39
|
+
"types": "./types/onshore-forms.d.ts",
|
|
40
40
|
"default": "./fesm2022/onshore-forms.mjs"
|
|
41
41
|
}
|
|
42
42
|
},
|
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
import { FormGroup, FormArray, FormControl, ValidatorFn, ControlValueAccessor, NgControl, ValidationErrors } from '@angular/forms';
|
|
2
|
+
import { Subscription, Subject, Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { OnDestroy, OnInit, OnChanges, EventEmitter, SimpleChanges, ChangeDetectorRef, AfterViewInit, ElementRef } from '@angular/core';
|
|
5
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
+
import { Popover } from 'primeng/popover';
|
|
7
|
+
import { ImageCroppedEvent } from 'ngx-image-cropper';
|
|
8
|
+
import { WebcamImage } from 'ngx-webcam';
|
|
9
|
+
|
|
10
|
+
declare enum OnshoreFormTemplateType {
|
|
11
|
+
text = "text",
|
|
12
|
+
textarea = "textarea",
|
|
13
|
+
editor = "editor",
|
|
14
|
+
password = "password",
|
|
15
|
+
number = "number",
|
|
16
|
+
email = "email",
|
|
17
|
+
phone = "phone",
|
|
18
|
+
regexp = "regexp",
|
|
19
|
+
select = "select",
|
|
20
|
+
switch = "switch",
|
|
21
|
+
check = "check",
|
|
22
|
+
radio = "radio",
|
|
23
|
+
image = "image",
|
|
24
|
+
scanner = "scanner",
|
|
25
|
+
autocomplete = "autocomplete",
|
|
26
|
+
color = "color",
|
|
27
|
+
date = "date",
|
|
28
|
+
time = "time",
|
|
29
|
+
datetime = "datetime",
|
|
30
|
+
sort = "sort",
|
|
31
|
+
subform = "subform"
|
|
32
|
+
}
|
|
33
|
+
declare enum OnshoreFormTemplateLayout {
|
|
34
|
+
vertical = "vertical",
|
|
35
|
+
horizontal = "horizontal",
|
|
36
|
+
auto = "auto"
|
|
37
|
+
}
|
|
38
|
+
declare enum OnshoreImageError {
|
|
39
|
+
none = "",
|
|
40
|
+
fileType = "fileType",
|
|
41
|
+
ratio = "ratio",
|
|
42
|
+
size = "size"
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface OnshoreCountryCode {
|
|
46
|
+
id: number;
|
|
47
|
+
name: string;
|
|
48
|
+
alpha2: string;
|
|
49
|
+
alpha3: string;
|
|
50
|
+
currency?: string;
|
|
51
|
+
}
|
|
52
|
+
interface OnshoreLanguageLocale {
|
|
53
|
+
id: number;
|
|
54
|
+
name: string;
|
|
55
|
+
code: string;
|
|
56
|
+
}
|
|
57
|
+
interface OnshoreFormTemplateItem {
|
|
58
|
+
name: string;
|
|
59
|
+
labelStyle?: string;
|
|
60
|
+
type?: OnshoreFormTemplateType;
|
|
61
|
+
required?: boolean;
|
|
62
|
+
label?: string;
|
|
63
|
+
placeholder?: string;
|
|
64
|
+
tooltip?: string;
|
|
65
|
+
enabled?: boolean;
|
|
66
|
+
locked?: boolean;
|
|
67
|
+
layout?: OnshoreFormTemplateLayout;
|
|
68
|
+
options?: any[] | void[];
|
|
69
|
+
inputAddon?: string;
|
|
70
|
+
inputNumberVertical?: boolean;
|
|
71
|
+
actionButton?: boolean;
|
|
72
|
+
actionButtonIcon?: string;
|
|
73
|
+
noGap?: boolean;
|
|
74
|
+
default?: any;
|
|
75
|
+
description?: string;
|
|
76
|
+
hint?: string;
|
|
77
|
+
validationItems?: string[];
|
|
78
|
+
validators?: any[];
|
|
79
|
+
subformArray?: OnshoreFormTemplateItem[];
|
|
80
|
+
subformObject?: OnshoreFormTemplateItem[];
|
|
81
|
+
}
|
|
82
|
+
interface OnshoreFormTemplateOptions {
|
|
83
|
+
label: string;
|
|
84
|
+
value: any;
|
|
85
|
+
}
|
|
86
|
+
interface OnshoreFormArrayDefault {
|
|
87
|
+
name: string;
|
|
88
|
+
value: any;
|
|
89
|
+
}
|
|
90
|
+
interface OnshoreFormAutocompleteItem {
|
|
91
|
+
firstLineLabel: string;
|
|
92
|
+
secondLineLabel?: string;
|
|
93
|
+
thirdLineLabel?: string;
|
|
94
|
+
data: any;
|
|
95
|
+
}
|
|
96
|
+
interface OnshoreFormImageSettings {
|
|
97
|
+
imageWidth?: number;
|
|
98
|
+
imageHeight?: number;
|
|
99
|
+
containWithinAspectRatio?: boolean;
|
|
100
|
+
aspectRatio?: number;
|
|
101
|
+
imageSelectionEnabled?: boolean;
|
|
102
|
+
webcamSelectionEnabled?: boolean;
|
|
103
|
+
mediaSelectionEnabled?: boolean;
|
|
104
|
+
deleteEnabled?: boolean;
|
|
105
|
+
placeholderImage?: string;
|
|
106
|
+
placeholderIcon?: string;
|
|
107
|
+
containerWidth?: number;
|
|
108
|
+
containerHeight?: number;
|
|
109
|
+
imageQuality?: number;
|
|
110
|
+
maxFileSize?: number;
|
|
111
|
+
format?: 'png' | 'jpeg' | 'bmp' | 'webp' | 'ico';
|
|
112
|
+
alignImage?: 'left' | 'center';
|
|
113
|
+
cropperPreviewHeight?: number;
|
|
114
|
+
cropperPreviewWidth?: number;
|
|
115
|
+
webcamHeight?: number;
|
|
116
|
+
webcamWidth?: number;
|
|
117
|
+
circleCropper?: boolean;
|
|
118
|
+
backgroundColor?: string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
declare class OnshoreFormsService {
|
|
122
|
+
_form: FormGroup;
|
|
123
|
+
_formTemplate: OnshoreFormTemplateItem[];
|
|
124
|
+
_formValidations: string[];
|
|
125
|
+
subscriptions: Array<Subscription>;
|
|
126
|
+
isLoading$: Subject<boolean>;
|
|
127
|
+
constructor();
|
|
128
|
+
get form(): FormGroup;
|
|
129
|
+
get formValues(): any;
|
|
130
|
+
patchForm(value: any): void;
|
|
131
|
+
resetForm(): void;
|
|
132
|
+
resetFormControl(name: string, touched?: boolean): void;
|
|
133
|
+
generateForm(formTemplate: OnshoreFormTemplateItem[]): FormGroup | null;
|
|
134
|
+
formTemplate(name: string, formTemplate?: OnshoreFormTemplateItem[]): OnshoreFormTemplateItem;
|
|
135
|
+
formControl(name: string, formGroupOrArray?: FormGroup | FormArray | null): FormControl;
|
|
136
|
+
formArray(name: string): FormArray;
|
|
137
|
+
formGroup(form: FormGroup, name: string): FormGroup;
|
|
138
|
+
addFormArrayItem(formArray: FormArray, item: OnshoreFormTemplateItem, defaultValues: OnshoreFormArrayDefault[]): FormGroup;
|
|
139
|
+
removeFormArrayItem(form: FormArray, index: number): void;
|
|
140
|
+
setFormValidations(validations?: string[]): void;
|
|
141
|
+
enable(): void;
|
|
142
|
+
disable(): void;
|
|
143
|
+
setError(control: string, error: Object): void;
|
|
144
|
+
setLoader(loaders$: Subject<boolean>[]): void;
|
|
145
|
+
lock(lockSubfields?: boolean): void;
|
|
146
|
+
unlock(): void;
|
|
147
|
+
iterateNestedForm(form: FormGroup, formTemplate: OnshoreFormTemplateItem[]): any;
|
|
148
|
+
subscribeNestedFormArray(nestedFormItem: FormArray): void;
|
|
149
|
+
subscribeNestedFormGroup(nestedFormItem: FormGroup): void;
|
|
150
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormsService, never>;
|
|
151
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OnshoreFormsService>;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
declare class OnshoreValidators {
|
|
155
|
+
static slug: ValidatorFn;
|
|
156
|
+
static numeric: ValidatorFn;
|
|
157
|
+
static email: ValidatorFn;
|
|
158
|
+
static cleanComment: ValidatorFn;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
declare class OnshoreFormAutocompleteItemComponent implements ControlValueAccessor, OnDestroy, OnInit, OnChanges {
|
|
162
|
+
private cdr;
|
|
163
|
+
ngControl: NgControl;
|
|
164
|
+
formTemplate: OnshoreFormTemplateItem;
|
|
165
|
+
multiple: boolean;
|
|
166
|
+
showClear: boolean | undefined;
|
|
167
|
+
searchedData: OnshoreFormAutocompleteItem[];
|
|
168
|
+
actionButtonDisabled: boolean;
|
|
169
|
+
optionLabel?: string;
|
|
170
|
+
optionValue?: string;
|
|
171
|
+
dataKey?: string;
|
|
172
|
+
onSearch: EventEmitter<string>;
|
|
173
|
+
onSelect: EventEmitter<OnshoreFormAutocompleteItem>;
|
|
174
|
+
actionButtonClick: EventEmitter<any>;
|
|
175
|
+
disabled: boolean;
|
|
176
|
+
searchPrepare(term: any): void;
|
|
177
|
+
unselect(selectedItem?: any): void;
|
|
178
|
+
findValue(item: any, key: string): any;
|
|
179
|
+
search(searchTerm: string): Promise<void>;
|
|
180
|
+
writeValue(obj: any): void;
|
|
181
|
+
registerOnChange(fn: any): void;
|
|
182
|
+
registerOnTouched(fn: any): void;
|
|
183
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
184
|
+
ngOnInit(): void;
|
|
185
|
+
get formControl(): FormControl;
|
|
186
|
+
ngOnDestroy(): void;
|
|
187
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
188
|
+
constructor(cdr: ChangeDetectorRef, ngControl: NgControl);
|
|
189
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormAutocompleteItemComponent, [null, { optional: true; self: true; }]>;
|
|
190
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreFormAutocompleteItemComponent, "onshore-form-autocomplete-item", never, { "formTemplate": { "alias": "formTemplate"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "searchedData": { "alias": "searchedData"; "required": false; }; "actionButtonDisabled": { "alias": "actionButtonDisabled"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "optionValue": { "alias": "optionValue"; "required": false; }; "dataKey": { "alias": "dataKey"; "required": false; }; }, { "onSearch": "onSearch"; "onSelect": "onSelect"; "actionButtonClick": "actionButtonClick"; }, never, never, true, never>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare class OnshoreFormCheckboxItemComponent implements OnInit, ControlValueAccessor, OnChanges, OnDestroy {
|
|
194
|
+
ngControl: NgControl;
|
|
195
|
+
private cdr;
|
|
196
|
+
formTemplate: OnshoreFormTemplateItem;
|
|
197
|
+
actionButtonDisabled: boolean;
|
|
198
|
+
actionButtonClick: EventEmitter<any>;
|
|
199
|
+
disabled: boolean;
|
|
200
|
+
writeValue(obj: any): void;
|
|
201
|
+
registerOnChange(fn: any): void;
|
|
202
|
+
registerOnTouched(fn: any): void;
|
|
203
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
204
|
+
changeCheck(value: any): void;
|
|
205
|
+
get formControl(): FormControl;
|
|
206
|
+
ngOnInit(): void;
|
|
207
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
208
|
+
ngOnDestroy(): void;
|
|
209
|
+
constructor(ngControl: NgControl, cdr: ChangeDetectorRef);
|
|
210
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormCheckboxItemComponent, [{ optional: true; self: true; }, null]>;
|
|
211
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreFormCheckboxItemComponent, "onshore-form-checkbox-item", never, { "formTemplate": { "alias": "formTemplate"; "required": false; }; "actionButtonDisabled": { "alias": "actionButtonDisabled"; "required": false; }; }, { "actionButtonClick": "actionButtonClick"; }, never, never, true, never>;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
declare class OnshoreFormColorpickerItemComponent implements OnInit, OnChanges, ControlValueAccessor, OnDestroy {
|
|
215
|
+
ngControl: NgControl;
|
|
216
|
+
private cdr;
|
|
217
|
+
formTemplate: OnshoreFormTemplateItem;
|
|
218
|
+
actionButtonDisabled: boolean;
|
|
219
|
+
actionButtonClick: EventEmitter<any>;
|
|
220
|
+
disabled: boolean;
|
|
221
|
+
colorPickerValue: string;
|
|
222
|
+
writeValue(obj: any): void;
|
|
223
|
+
registerOnChange(fn: any): void;
|
|
224
|
+
registerOnTouched(fn: any): void;
|
|
225
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
226
|
+
changeColor(): void;
|
|
227
|
+
changeInput(input: any): void;
|
|
228
|
+
get formControl(): FormControl;
|
|
229
|
+
changeLayoutPreset(): void;
|
|
230
|
+
ngOnInit(): void;
|
|
231
|
+
ngOnDestroy(): void;
|
|
232
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
233
|
+
constructor(ngControl: NgControl, cdr: ChangeDetectorRef);
|
|
234
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormColorpickerItemComponent, [{ optional: true; self: true; }, null]>;
|
|
235
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreFormColorpickerItemComponent, "onshore-form-colorpicker-item", never, { "formTemplate": { "alias": "formTemplate"; "required": false; }; "actionButtonDisabled": { "alias": "actionButtonDisabled"; "required": false; }; }, { "actionButtonClick": "actionButtonClick"; }, never, never, true, never>;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
declare class OnshoreFormDropdownItemComponent implements OnInit, OnChanges, ControlValueAccessor, OnChanges, OnDestroy {
|
|
239
|
+
ngControl: NgControl;
|
|
240
|
+
private cdr;
|
|
241
|
+
formTemplate: OnshoreFormTemplateItem;
|
|
242
|
+
multiple: boolean | undefined;
|
|
243
|
+
showClear: boolean | undefined;
|
|
244
|
+
group: boolean | undefined;
|
|
245
|
+
selectionLimit?: number;
|
|
246
|
+
minLength?: number;
|
|
247
|
+
optionLabel?: string;
|
|
248
|
+
optionValue?: string;
|
|
249
|
+
dataKey?: string;
|
|
250
|
+
optionGroupLabel?: string;
|
|
251
|
+
actionButtonDisabled: boolean;
|
|
252
|
+
createEnabled: boolean;
|
|
253
|
+
options: any[];
|
|
254
|
+
valueChange: EventEmitter<boolean>;
|
|
255
|
+
actionButtonClick: EventEmitter<any>;
|
|
256
|
+
entryCreated: EventEmitter<any>;
|
|
257
|
+
disabled: boolean | undefined;
|
|
258
|
+
writeValue(obj: any): void;
|
|
259
|
+
registerOnChange(fn: any): void;
|
|
260
|
+
registerOnTouched(fn: any): void;
|
|
261
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
262
|
+
clearSelection(): void;
|
|
263
|
+
get formControl(): FormControl;
|
|
264
|
+
ngOnInit(): void;
|
|
265
|
+
ngOnDestroy(): void;
|
|
266
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
267
|
+
constructor(ngControl: NgControl, cdr: ChangeDetectorRef);
|
|
268
|
+
protected readonly OnshoreFormTemplateType: typeof OnshoreFormTemplateType;
|
|
269
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormDropdownItemComponent, [{ optional: true; self: true; }, null]>;
|
|
270
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreFormDropdownItemComponent, "onshore-form-dropdown-item", never, { "formTemplate": { "alias": "formTemplate"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "group": { "alias": "group"; "required": false; }; "selectionLimit": { "alias": "selectionLimit"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "optionValue": { "alias": "optionValue"; "required": false; }; "dataKey": { "alias": "dataKey"; "required": false; }; "optionGroupLabel": { "alias": "optionGroupLabel"; "required": false; }; "actionButtonDisabled": { "alias": "actionButtonDisabled"; "required": false; }; "createEnabled": { "alias": "createEnabled"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "valueChange": "valueChange"; "actionButtonClick": "actionButtonClick"; "entryCreated": "entryCreated"; }, never, never, true, never>;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
declare class OnshoreFormImageItemComponent implements ControlValueAccessor, OnInit, OnDestroy, OnChanges {
|
|
274
|
+
cdr: ChangeDetectorRef;
|
|
275
|
+
ngControl: NgControl;
|
|
276
|
+
formTemplate: OnshoreFormTemplateItem;
|
|
277
|
+
imageSettings: OnshoreFormImageSettings | undefined;
|
|
278
|
+
actionButtonDisabled: boolean;
|
|
279
|
+
imageDeleted: EventEmitter<string>;
|
|
280
|
+
imageCleared: EventEmitter<any>;
|
|
281
|
+
imageReady: EventEmitter<string>;
|
|
282
|
+
selectFromMedia: EventEmitter<any>;
|
|
283
|
+
isLoading: EventEmitter<boolean>;
|
|
284
|
+
OnshoreFormTemplateLayout: typeof OnshoreFormTemplateLayout;
|
|
285
|
+
defaultImageSettings: OnshoreFormImageSettings;
|
|
286
|
+
image: string | undefined;
|
|
287
|
+
disabled: boolean;
|
|
288
|
+
webcamDialogVisible: boolean;
|
|
289
|
+
imageChooserDialogVisible: boolean;
|
|
290
|
+
subscriptions: Array<Subscription>;
|
|
291
|
+
getFileImage(image: any): void;
|
|
292
|
+
getWebcamImage(image: any): void;
|
|
293
|
+
removeImage(): void;
|
|
294
|
+
writeValue(obj: any): void;
|
|
295
|
+
registerOnChange(fn: any): void;
|
|
296
|
+
registerOnTouched(fn: any): void;
|
|
297
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
298
|
+
ngOnInit(): void;
|
|
299
|
+
ngOnDestroy(): void;
|
|
300
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
301
|
+
constructor(cdr: ChangeDetectorRef, ngControl: NgControl);
|
|
302
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormImageItemComponent, [null, { optional: true; self: true; }]>;
|
|
303
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreFormImageItemComponent, "onshore-form-image-item", never, { "formTemplate": { "alias": "formTemplate"; "required": false; }; "imageSettings": { "alias": "imageSettings"; "required": false; }; "actionButtonDisabled": { "alias": "actionButtonDisabled"; "required": false; }; }, { "imageDeleted": "imageDeleted"; "imageCleared": "imageCleared"; "imageReady": "imageReady"; "selectFromMedia": "selectFromMedia"; "isLoading": "isLoading"; }, never, never, true, never>;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
declare class OnshoreFormInputItemComponent implements OnInit, ControlValueAccessor, OnChanges, OnDestroy {
|
|
307
|
+
ngControl: NgControl;
|
|
308
|
+
private cdr;
|
|
309
|
+
formTemplate: OnshoreFormTemplateItem;
|
|
310
|
+
step?: number;
|
|
311
|
+
min?: number;
|
|
312
|
+
max?: number;
|
|
313
|
+
minLength?: number;
|
|
314
|
+
maxLength?: number;
|
|
315
|
+
currency?: string;
|
|
316
|
+
mode?: string;
|
|
317
|
+
useGrouping: boolean;
|
|
318
|
+
actionButtonDisabled: boolean;
|
|
319
|
+
keyFilter?: string;
|
|
320
|
+
actionButtonClick: EventEmitter<any>;
|
|
321
|
+
OnshoreFormTemplateType: typeof OnshoreFormTemplateType;
|
|
322
|
+
passwordVisible: boolean;
|
|
323
|
+
disabled: boolean;
|
|
324
|
+
writeValue(obj: any): void;
|
|
325
|
+
registerOnChange(fn: any): void;
|
|
326
|
+
registerOnTouched(fn: any): void;
|
|
327
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
328
|
+
ngOnInit(): void;
|
|
329
|
+
onNumberInput(event: any): void;
|
|
330
|
+
get formControl(): FormControl;
|
|
331
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
332
|
+
ngOnDestroy(): void;
|
|
333
|
+
constructor(ngControl: NgControl, cdr: ChangeDetectorRef);
|
|
334
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormInputItemComponent, [{ optional: true; self: true; }, null]>;
|
|
335
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreFormInputItemComponent, "onshore-form-input-item", never, { "formTemplate": { "alias": "formTemplate"; "required": false; }; "step": { "alias": "step"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "currency": { "alias": "currency"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "useGrouping": { "alias": "useGrouping"; "required": false; }; "actionButtonDisabled": { "alias": "actionButtonDisabled"; "required": false; }; "keyFilter": { "alias": "keyFilter"; "required": false; }; }, { "actionButtonClick": "actionButtonClick"; }, never, never, true, never>;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
declare class OnshoreFormSwitchItemComponent implements OnInit, ControlValueAccessor, OnDestroy, OnChanges {
|
|
339
|
+
ngControl: NgControl;
|
|
340
|
+
private cdr;
|
|
341
|
+
formTemplate: OnshoreFormTemplateItem;
|
|
342
|
+
actionButtonDisabled: boolean;
|
|
343
|
+
valueChange: EventEmitter<boolean>;
|
|
344
|
+
actionButtonClick: EventEmitter<any>;
|
|
345
|
+
disabled: boolean;
|
|
346
|
+
writeValue(obj: any): void;
|
|
347
|
+
registerOnChange(fn: any): void;
|
|
348
|
+
registerOnTouched(fn: any): void;
|
|
349
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
350
|
+
get formControl(): FormControl;
|
|
351
|
+
ngOnInit(): void;
|
|
352
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
353
|
+
ngOnDestroy(): void;
|
|
354
|
+
constructor(ngControl: NgControl, cdr: ChangeDetectorRef);
|
|
355
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormSwitchItemComponent, [{ optional: true; self: true; }, null]>;
|
|
356
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreFormSwitchItemComponent, "onshore-form-switch-item", never, { "formTemplate": { "alias": "formTemplate"; "required": false; }; "actionButtonDisabled": { "alias": "actionButtonDisabled"; "required": false; }; }, { "valueChange": "valueChange"; "actionButtonClick": "actionButtonClick"; }, never, never, true, never>;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
declare class OnshoreFormDatetimeItemComponent implements OnInit, ControlValueAccessor, OnChanges, OnDestroy {
|
|
360
|
+
ngControl: NgControl;
|
|
361
|
+
private cdr;
|
|
362
|
+
formTemplate: OnshoreFormTemplateItem;
|
|
363
|
+
actionButtonDisabled: boolean;
|
|
364
|
+
actionButtonClick: EventEmitter<any>;
|
|
365
|
+
dateFormat?: string;
|
|
366
|
+
hourFormat?: string;
|
|
367
|
+
dataType?: string;
|
|
368
|
+
OnshoreFormTemplateType: typeof OnshoreFormTemplateType;
|
|
369
|
+
disabled: boolean;
|
|
370
|
+
writeValue(obj: any): void;
|
|
371
|
+
registerOnChange(fn: any): void;
|
|
372
|
+
registerOnTouched(fn: any): void;
|
|
373
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
374
|
+
get formControl(): FormControl;
|
|
375
|
+
ngOnInit(): void;
|
|
376
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
377
|
+
ngOnDestroy(): void;
|
|
378
|
+
constructor(ngControl: NgControl, cdr: ChangeDetectorRef);
|
|
379
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormDatetimeItemComponent, [{ optional: true; self: true; }, null]>;
|
|
380
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreFormDatetimeItemComponent, "onshore-form-datetime-item", never, { "formTemplate": { "alias": "formTemplate"; "required": false; }; "actionButtonDisabled": { "alias": "actionButtonDisabled"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "hourFormat": { "alias": "hourFormat"; "required": false; }; "dataType": { "alias": "dataType"; "required": false; }; }, { "actionButtonClick": "actionButtonClick"; }, never, never, true, never>;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
declare class OnshoreFormSortItemComponent implements OnInit, ControlValueAccessor, OnChanges, OnDestroy {
|
|
384
|
+
ngControl: NgControl;
|
|
385
|
+
private cdr;
|
|
386
|
+
formTemplate: OnshoreFormTemplateItem;
|
|
387
|
+
actionButtonDisabled: boolean;
|
|
388
|
+
actionButtonClick: EventEmitter<any>;
|
|
389
|
+
sortItems?: any[];
|
|
390
|
+
tempLockValue?: any[] | undefined;
|
|
391
|
+
OnshoreFormTemplateType: typeof OnshoreFormTemplateType;
|
|
392
|
+
disabled: boolean;
|
|
393
|
+
sortItemsChanged(event: any[]): void;
|
|
394
|
+
lockChanged(unlocked: boolean): void;
|
|
395
|
+
writeValue(obj: any): void;
|
|
396
|
+
registerOnChange(fn: any): void;
|
|
397
|
+
registerOnTouched(fn: any): void;
|
|
398
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
399
|
+
ngOnInit(): void;
|
|
400
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
401
|
+
ngOnDestroy(): void;
|
|
402
|
+
constructor(ngControl: NgControl, cdr: ChangeDetectorRef);
|
|
403
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormSortItemComponent, [{ optional: true; self: true; }, null]>;
|
|
404
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreFormSortItemComponent, "onshore-form-sort-item", never, { "formTemplate": { "alias": "formTemplate"; "required": false; }; "actionButtonDisabled": { "alias": "actionButtonDisabled"; "required": false; }; }, { "actionButtonClick": "actionButtonClick"; }, never, never, true, never>;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
declare class OnshoreFormValidationOutputComponent implements OnChanges {
|
|
408
|
+
private cdr;
|
|
409
|
+
private translate;
|
|
410
|
+
validationErrors: ValidationErrors | null;
|
|
411
|
+
validationItems: string[];
|
|
412
|
+
validationTranslation: string;
|
|
413
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
414
|
+
constructor(cdr: ChangeDetectorRef, translate: TranslateService);
|
|
415
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormValidationOutputComponent, never>;
|
|
416
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreFormValidationOutputComponent, "onshore-form-validation-output", never, { "validationErrors": { "alias": "validationErrors"; "required": false; }; "validationItems": { "alias": "validationItems"; "required": false; }; }, {}, never, never, true, never>;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
declare class OnshoreFormScannerItemComponent implements OnInit, ControlValueAccessor, OnChanges, OnDestroy {
|
|
420
|
+
ngControl: NgControl;
|
|
421
|
+
private cdr;
|
|
422
|
+
scanPopover: Popover;
|
|
423
|
+
formTemplate: OnshoreFormTemplateItem;
|
|
424
|
+
actionButtonDisabled: boolean;
|
|
425
|
+
webcamDisabled: boolean;
|
|
426
|
+
scannerDisabled: boolean;
|
|
427
|
+
editDisabled: boolean;
|
|
428
|
+
editable: boolean;
|
|
429
|
+
integerOnly: boolean;
|
|
430
|
+
autofocus: boolean;
|
|
431
|
+
length?: number;
|
|
432
|
+
actionButtonClick: EventEmitter<any>;
|
|
433
|
+
webcamClick: EventEmitter<any>;
|
|
434
|
+
scannerClick: EventEmitter<any>;
|
|
435
|
+
disabled: boolean;
|
|
436
|
+
writeValue(obj: any): void;
|
|
437
|
+
registerOnChange(fn: any): void;
|
|
438
|
+
registerOnTouched(fn: any): void;
|
|
439
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
440
|
+
get formControl(): FormControl;
|
|
441
|
+
ngOnInit(): void;
|
|
442
|
+
ngOnDestroy(): void;
|
|
443
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
444
|
+
constructor(ngControl: NgControl, cdr: ChangeDetectorRef);
|
|
445
|
+
protected readonly OnshoreFormTemplateType: typeof OnshoreFormTemplateType;
|
|
446
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormScannerItemComponent, [{ optional: true; self: true; }, null]>;
|
|
447
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreFormScannerItemComponent, "onshore-form-scanner-item", never, { "formTemplate": { "alias": "formTemplate"; "required": false; }; "actionButtonDisabled": { "alias": "actionButtonDisabled"; "required": false; }; "webcamDisabled": { "alias": "webcamDisabled"; "required": false; }; "scannerDisabled": { "alias": "scannerDisabled"; "required": false; }; "editDisabled": { "alias": "editDisabled"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "integerOnly": { "alias": "integerOnly"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "length": { "alias": "length"; "required": false; }; }, { "actionButtonClick": "actionButtonClick"; "webcamClick": "webcamClick"; "scannerClick": "scannerClick"; }, never, never, true, never>;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
declare class OnshoreFormItemContainer implements OnInit, OnChanges, AfterViewInit {
|
|
451
|
+
private cdr;
|
|
452
|
+
formTemplate: OnshoreFormTemplateItem;
|
|
453
|
+
ngControl: NgControl;
|
|
454
|
+
actionButtonDisabled: boolean;
|
|
455
|
+
actionButtonClick: EventEmitter<any>;
|
|
456
|
+
lockIsChanged: EventEmitter<any>;
|
|
457
|
+
formContainer: ElementRef;
|
|
458
|
+
disabled: boolean;
|
|
459
|
+
tempLockValue: any;
|
|
460
|
+
OnshoreFormTemplateLayout: typeof OnshoreFormTemplateLayout;
|
|
461
|
+
layout: OnshoreFormTemplateLayout | undefined;
|
|
462
|
+
enabled(enable?: boolean): void;
|
|
463
|
+
lockChanged(unlocked: boolean): void;
|
|
464
|
+
onWindowResize(): void;
|
|
465
|
+
ngOnInit(): void;
|
|
466
|
+
ngAfterViewInit(): void;
|
|
467
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
468
|
+
constructor(cdr: ChangeDetectorRef);
|
|
469
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormItemContainer, never>;
|
|
470
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreFormItemContainer, "onshore-form-item-container", never, { "formTemplate": { "alias": "formTemplate"; "required": false; }; "ngControl": { "alias": "ngControl"; "required": false; }; "actionButtonDisabled": { "alias": "actionButtonDisabled"; "required": false; }; }, { "actionButtonClick": "actionButtonClick"; "lockIsChanged": "lockIsChanged"; }, never, ["*"], true, never>;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
declare class OnshoreImagePlaceholderComponent {
|
|
474
|
+
placeholderIcon: string;
|
|
475
|
+
placeholderImage: string;
|
|
476
|
+
image: string;
|
|
477
|
+
imageStyle: string;
|
|
478
|
+
placeholderStyle: string;
|
|
479
|
+
showLoader: boolean;
|
|
480
|
+
imageLoaded: boolean;
|
|
481
|
+
loadReady(): void;
|
|
482
|
+
abort(): void;
|
|
483
|
+
constructor();
|
|
484
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreImagePlaceholderComponent, never>;
|
|
485
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreImagePlaceholderComponent, "onshore-image-placeholder", never, { "placeholderIcon": { "alias": "placeholderIcon"; "required": false; }; "placeholderImage": { "alias": "placeholderImage"; "required": false; }; "image": { "alias": "image"; "required": false; }; "imageStyle": { "alias": "imageStyle"; "required": false; }; "placeholderStyle": { "alias": "placeholderStyle"; "required": false; }; "showLoader": { "alias": "showLoader"; "required": false; }; }, {}, never, never, true, never>;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
declare class OnshoreImageChooserComponent {
|
|
489
|
+
private cdr;
|
|
490
|
+
drag: boolean;
|
|
491
|
+
image: string;
|
|
492
|
+
finalImage: string;
|
|
493
|
+
imageErrorType: typeof OnshoreImageError;
|
|
494
|
+
imageError: OnshoreImageError;
|
|
495
|
+
imageSettings: OnshoreFormImageSettings | undefined;
|
|
496
|
+
choosen: EventEmitter<string>;
|
|
497
|
+
canceled: EventEmitter<boolean>;
|
|
498
|
+
clear(): void;
|
|
499
|
+
fileChange(event: Event): void;
|
|
500
|
+
imageCropped(event: ImageCroppedEvent): void;
|
|
501
|
+
imageCroppedReady(): void;
|
|
502
|
+
blobToBase64(blob: Blob): Promise<string | ArrayBuffer | null>;
|
|
503
|
+
constructor(cdr: ChangeDetectorRef);
|
|
504
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreImageChooserComponent, never>;
|
|
505
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreImageChooserComponent, "onshore-image-chooser", never, { "imageSettings": { "alias": "imageSettings"; "required": false; }; }, { "choosen": "choosen"; "canceled": "canceled"; }, never, never, true, never>;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
declare class WebcamComponent {
|
|
509
|
+
private cdr;
|
|
510
|
+
imageSettings: OnshoreFormImageSettings | undefined;
|
|
511
|
+
shot: EventEmitter<string>;
|
|
512
|
+
canceled: EventEmitter<boolean>;
|
|
513
|
+
image: string;
|
|
514
|
+
finalImage: string;
|
|
515
|
+
trigger: Subject<void>;
|
|
516
|
+
camImageShot(webcamImage: WebcamImage): void;
|
|
517
|
+
imageCropped(event: ImageCroppedEvent): void;
|
|
518
|
+
imageCroppedReady(): void;
|
|
519
|
+
get triggerObservable(): Observable<void>;
|
|
520
|
+
triggerSnapshot(): void;
|
|
521
|
+
blobToBase64(blob: Blob): Promise<string | ArrayBuffer | null>;
|
|
522
|
+
constructor(cdr: ChangeDetectorRef);
|
|
523
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WebcamComponent, never>;
|
|
524
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WebcamComponent, "onshore-webcam", never, { "imageSettings": { "alias": "imageSettings"; "required": false; }; }, { "shot": "shot"; "canceled": "canceled"; }, never, never, true, never>;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
export { OnshoreFormAutocompleteItemComponent, OnshoreFormCheckboxItemComponent, OnshoreFormColorpickerItemComponent, OnshoreFormDatetimeItemComponent, OnshoreFormDropdownItemComponent, OnshoreFormImageItemComponent, OnshoreFormInputItemComponent, OnshoreFormItemContainer, OnshoreFormScannerItemComponent, OnshoreFormSortItemComponent, OnshoreFormSwitchItemComponent, OnshoreFormTemplateLayout, OnshoreFormTemplateType, OnshoreFormValidationOutputComponent, OnshoreFormsService, OnshoreImageChooserComponent, OnshoreImageError, OnshoreImagePlaceholderComponent, OnshoreValidators, WebcamComponent };
|
|
528
|
+
export type { OnshoreCountryCode, OnshoreFormArrayDefault, OnshoreFormAutocompleteItem, OnshoreFormImageSettings, OnshoreFormTemplateItem, OnshoreFormTemplateOptions, OnshoreLanguageLocale };
|
package/index.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
3
|
-
import { OnshoreFormAutocompleteItem, OnshoreFormTemplateItem } from '../../models/form.models';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class OnshoreFormAutocompleteItemComponent implements ControlValueAccessor, OnDestroy, OnInit, OnChanges {
|
|
6
|
-
private cdr;
|
|
7
|
-
ngControl: NgControl;
|
|
8
|
-
formTemplate: OnshoreFormTemplateItem;
|
|
9
|
-
multiple: boolean;
|
|
10
|
-
showClear: boolean | undefined;
|
|
11
|
-
searchedData: OnshoreFormAutocompleteItem[];
|
|
12
|
-
actionButtonDisabled: boolean;
|
|
13
|
-
optionLabel?: string;
|
|
14
|
-
optionValue?: string;
|
|
15
|
-
dataKey?: string;
|
|
16
|
-
onSearch: EventEmitter<string>;
|
|
17
|
-
onSelect: EventEmitter<OnshoreFormAutocompleteItem>;
|
|
18
|
-
actionButtonClick: EventEmitter<any>;
|
|
19
|
-
disabled: boolean;
|
|
20
|
-
searchPrepare(term: any): void;
|
|
21
|
-
unselect(selectedItem?: any): void;
|
|
22
|
-
findValue(item: any, key: string): any;
|
|
23
|
-
search(searchTerm: string): Promise<void>;
|
|
24
|
-
writeValue(obj: any): void;
|
|
25
|
-
registerOnChange(fn: any): void;
|
|
26
|
-
registerOnTouched(fn: any): void;
|
|
27
|
-
setDisabledState?(isDisabled: boolean): void;
|
|
28
|
-
ngOnInit(): void;
|
|
29
|
-
get formControl(): FormControl;
|
|
30
|
-
ngOnDestroy(): void;
|
|
31
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
32
|
-
constructor(cdr: ChangeDetectorRef, ngControl: NgControl);
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormAutocompleteItemComponent, [null, { optional: true; self: true; }]>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreFormAutocompleteItemComponent, "onshore-form-autocomplete-item", never, { "formTemplate": { "alias": "formTemplate"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "searchedData": { "alias": "searchedData"; "required": false; }; "actionButtonDisabled": { "alias": "actionButtonDisabled"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "optionValue": { "alias": "optionValue"; "required": false; }; "dataKey": { "alias": "dataKey"; "required": false; }; }, { "onSearch": "onSearch"; "onSelect": "onSelect"; "actionButtonClick": "actionButtonClick"; }, never, never, true, never>;
|
|
35
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
3
|
-
import { OnshoreFormTemplateItem } from '../../models/form.models';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class OnshoreFormCheckboxItemComponent implements OnInit, ControlValueAccessor, OnChanges, OnDestroy {
|
|
6
|
-
ngControl: NgControl;
|
|
7
|
-
private cdr;
|
|
8
|
-
formTemplate: OnshoreFormTemplateItem;
|
|
9
|
-
actionButtonDisabled: boolean;
|
|
10
|
-
actionButtonClick: EventEmitter<any>;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
writeValue(obj: any): void;
|
|
13
|
-
registerOnChange(fn: any): void;
|
|
14
|
-
registerOnTouched(fn: any): void;
|
|
15
|
-
setDisabledState?(isDisabled: boolean): void;
|
|
16
|
-
changeCheck(value: any): void;
|
|
17
|
-
get formControl(): FormControl;
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
20
|
-
ngOnDestroy(): void;
|
|
21
|
-
constructor(ngControl: NgControl, cdr: ChangeDetectorRef);
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OnshoreFormCheckboxItemComponent, [{ optional: true; self: true; }, null]>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OnshoreFormCheckboxItemComponent, "onshore-form-checkbox-item", never, { "formTemplate": { "alias": "formTemplate"; "required": false; }; "actionButtonDisabled": { "alias": "actionButtonDisabled"; "required": false; }; }, { "actionButtonClick": "actionButtonClick"; }, never, never, true, never>;
|
|
24
|
-
}
|