ngx-iso-form 3.3.0 → 3.5.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/README.md +2 -0
- package/fesm2022/ngx-iso-form.mjs +117 -67
- package/fesm2022/ngx-iso-form.mjs.map +1 -1
- package/index.d.ts +272 -5
- package/lib/styles/index.scss +1 -1
- package/package.json +3 -3
- package/lib/Models/Control.d.ts +0 -20
- package/lib/Models/IsoForm.d.ts +0 -11
- package/lib/Models/Schema.d.ts +0 -28
- package/lib/components/controls/iso-base-control.component.d.ts +0 -10
- package/lib/components/controls/iso-mat-checkbox.component.d.ts +0 -6
- package/lib/components/controls/iso-mat-currency.component.d.ts +0 -6
- package/lib/components/controls/iso-mat-date.component.d.ts +0 -6
- package/lib/components/controls/iso-mat-datetime.component.d.ts +0 -6
- package/lib/components/controls/iso-mat-input.component.d.ts +0 -6
- package/lib/components/controls/iso-mat-select.component.d.ts +0 -6
- package/lib/components/controls/iso-mat-textarea.component.d.ts +0 -6
- package/lib/components/index.d.ts +0 -9
- package/lib/components/iso-control/iso-control.component.d.ts +0 -21
- package/lib/ngx-iso-form.component.d.ts +0 -39
- package/lib/ngx-iso-form.module.d.ts +0 -33
- package/lib/ngx-iso-form.service.d.ts +0 -20
- package/lib/shared/components/dynamic/ngx-dynamic.component.d.ts +0 -13
- package/lib/shared/directives/component-content.directive.d.ts +0 -8
- package/lib/shared/models/component.model.d.ts +0 -6
- package/lib/shared/pipe/error.pipe.d.ts +0 -10
- package/lib/shared/pipe/general.pipe.d.ts +0 -10
- package/lib/shared/pipe/translate.pipe.d.ts +0 -10
- package/lib/shared/services/component.service.d.ts +0 -8
- package/lib/shared/services/control.service.d.ts +0 -9
- package/lib/shared/services/custom-date-adapter.d.ts +0 -9
- package/lib/shared/services/index.d.ts +0 -2
- package/public-api.d.ts +0 -6
package/index.d.ts
CHANGED
|
@@ -1,5 +1,272 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnChanges, ChangeDetectorRef, SimpleChanges, Type, OnInit, ViewContainerRef, PipeTransform, ComponentRef } from '@angular/core';
|
|
3
|
+
import * as i19 from '@angular/forms';
|
|
4
|
+
import { FormBuilder, FormGroup, FormArray, FormControl, AbstractControl, ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import * as i23 from '@angular/material/core';
|
|
6
|
+
import { NativeDateAdapter } from '@angular/material/core';
|
|
7
|
+
import * as i18 from '@ngx-translate/core';
|
|
8
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
9
|
+
import * as i16 from '@angular/platform-browser';
|
|
10
|
+
import * as i17 from '@angular/platform-browser/animations';
|
|
11
|
+
import * as i20 from '@angular/material/expansion';
|
|
12
|
+
import * as i21 from '@angular/material/form-field';
|
|
13
|
+
import * as i22 from '@angular/material/input';
|
|
14
|
+
import * as i24 from '@angular/material/datepicker';
|
|
15
|
+
import * as i25 from '@angular/material/button';
|
|
16
|
+
import * as i26 from '@angular/material/select';
|
|
17
|
+
import * as i27 from '@angular/material/icon';
|
|
18
|
+
|
|
19
|
+
interface SchemaElement {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
dataType: string;
|
|
23
|
+
minOccurs: string;
|
|
24
|
+
maxOccurs: string;
|
|
25
|
+
minLength: string;
|
|
26
|
+
maxLength: string;
|
|
27
|
+
pattern: string;
|
|
28
|
+
fractionDigits: string;
|
|
29
|
+
totalDigits: string;
|
|
30
|
+
minInclusive: string;
|
|
31
|
+
maxInclusive: string;
|
|
32
|
+
values: string[];
|
|
33
|
+
isCurrency: boolean;
|
|
34
|
+
xpath: string;
|
|
35
|
+
elements: SchemaModel[];
|
|
36
|
+
expanded: boolean;
|
|
37
|
+
isUETR: boolean;
|
|
38
|
+
defaultValue?: string;
|
|
39
|
+
}
|
|
40
|
+
interface SchemaModel extends SchemaElement {
|
|
41
|
+
uniqueId?: string;
|
|
42
|
+
hidden?: boolean;
|
|
43
|
+
value?: string;
|
|
44
|
+
multi?: string;
|
|
45
|
+
isFormControls?: boolean;
|
|
46
|
+
children?: SchemaModel[];
|
|
47
|
+
choiceKey?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare class CustomDateAdapter extends NativeDateAdapter {
|
|
51
|
+
format(date: Date, displayFormat: Object): string;
|
|
52
|
+
private _to2digit;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomDateAdapter, never>;
|
|
54
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CustomDateAdapter>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare class NgxIsoService {
|
|
58
|
+
private fb;
|
|
59
|
+
private dateService;
|
|
60
|
+
_formModel: any[];
|
|
61
|
+
excludes: string[];
|
|
62
|
+
constructor(fb: FormBuilder, dateService: CustomDateAdapter);
|
|
63
|
+
maxOccurs(maxOccurs: string): boolean;
|
|
64
|
+
initFormModel(model: any, form: FormGroup | FormArray, prev_key: string, choiceKey?: boolean, index?: number): void;
|
|
65
|
+
getFormGroupControls(json: SchemaModel[], keys: any, index?: number, choiceEle?: boolean, prev_key?: string): FormGroup;
|
|
66
|
+
getFormControl(values: any): FormControl;
|
|
67
|
+
sanitize: (obj: any) => any;
|
|
68
|
+
private getFormModel;
|
|
69
|
+
private getAmountCurrency;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxIsoService, never>;
|
|
71
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NgxIsoService>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare class IsoForm {
|
|
75
|
+
private _model;
|
|
76
|
+
private _namespace;
|
|
77
|
+
constructor(model: any, xmlMessage?: string);
|
|
78
|
+
get isoFormModel(): any;
|
|
79
|
+
/**
|
|
80
|
+
* @deprecated This method is deprecated use `#isoForm.getFormModel` instead
|
|
81
|
+
*/
|
|
82
|
+
getFormModel: () => any;
|
|
83
|
+
private parseXML;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare class NgxIsoFormComponent implements OnChanges {
|
|
87
|
+
private service;
|
|
88
|
+
private changeDetection;
|
|
89
|
+
form: IsoForm;
|
|
90
|
+
schema: SchemaModel;
|
|
91
|
+
excludes: string[];
|
|
92
|
+
protected _form: FormGroup;
|
|
93
|
+
private _isFormInitiate;
|
|
94
|
+
private _ngModel;
|
|
95
|
+
constructor(service: NgxIsoService, changeDetection: ChangeDetectorRef);
|
|
96
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
97
|
+
get model(): any;
|
|
98
|
+
protected get getFormModel(): any[];
|
|
99
|
+
get invalid(): boolean;
|
|
100
|
+
private initiateForm;
|
|
101
|
+
private structuredClone;
|
|
102
|
+
private initiateFormModel;
|
|
103
|
+
protected onChoiceSelectionChange(id: string, formElement: any, node: SchemaModel): void;
|
|
104
|
+
protected maxOccurs(maxOccurs: string): boolean;
|
|
105
|
+
protected expand(minOccurs: string): boolean;
|
|
106
|
+
protected addSection($event: Event, node: SchemaModel, parentNode: SchemaModel, parentFormEle: FormGroup): void;
|
|
107
|
+
protected removeSection($event: Event, parentNode: SchemaModel, parentFormEle: FormGroup, index: number): void;
|
|
108
|
+
protected addNewControl($event: Event, node: SchemaModel, parentNode: SchemaModel, parentFormEle: FormGroup): void;
|
|
109
|
+
protected removeNewControl($event: Event, parentNode: SchemaModel, parentFormEle: FormGroup, index: number): void;
|
|
110
|
+
protected isArray(myKey: Object | Array<any>): boolean;
|
|
111
|
+
protected isEmpty(formElement: FormGroup): boolean;
|
|
112
|
+
protected getElement(formElement: FormGroup, element: any): AbstractControl<any, any> | undefined;
|
|
113
|
+
protected getFormGroupByIndex(formArray: FormArray, _index: number): FormGroup;
|
|
114
|
+
protected getFormControl(node: SchemaModel): FormControl;
|
|
115
|
+
protected getChoiceFormControl(choiceKey: string): FormControl<any>;
|
|
116
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxIsoFormComponent, never>;
|
|
117
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxIsoFormComponent, "ngx-iso-form", never, { "form": { "alias": "form"; "required": true; }; "schema": { "alias": "schema"; "required": true; }; "excludes": { "alias": "excludes"; "required": false; }; }, {}, never, never, false, never>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
declare class ComponentModel {
|
|
121
|
+
component: Type<any>;
|
|
122
|
+
prop: any;
|
|
123
|
+
constructor(component: Type<any>, prop: any);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
declare class ControlService {
|
|
127
|
+
getComponentByType(controlModel: SchemaElement, formControl: FormControl): ComponentModel;
|
|
128
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ControlService, never>;
|
|
129
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ControlService>;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
declare class NgxIsoControlComponent implements OnInit, ControlValueAccessor {
|
|
133
|
+
private controlService;
|
|
134
|
+
formControl: FormControl;
|
|
135
|
+
control: SchemaElement;
|
|
136
|
+
component: ComponentModel;
|
|
137
|
+
constructor(controlService: ControlService);
|
|
138
|
+
ngOnInit(): void;
|
|
139
|
+
writeValue(obj: any): void;
|
|
140
|
+
registerOnChange(fn: any): void;
|
|
141
|
+
registerOnTouched(fn: any): void;
|
|
142
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
143
|
+
private addValidator;
|
|
144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxIsoControlComponent, never>;
|
|
145
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxIsoControlComponent, "ngx-iso-control", never, { "formControl": { "alias": "formControl"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
declare class ComponentDirective {
|
|
149
|
+
viewContainerRef: ViewContainerRef;
|
|
150
|
+
constructor(viewContainerRef: ViewContainerRef);
|
|
151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentDirective, never>;
|
|
152
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ComponentDirective, "[componentContent]", never, {}, {}, never, never, false, never>;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
declare class NgxDynamicComponent implements OnInit {
|
|
156
|
+
componentModel: ComponentModel;
|
|
157
|
+
componentContent: ComponentDirective;
|
|
158
|
+
constructor();
|
|
159
|
+
ngOnInit(): void;
|
|
160
|
+
loadComponent(): void;
|
|
161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxDynamicComponent, never>;
|
|
162
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxDynamicComponent, "ngx-dynamic", never, { "componentModel": { "alias": "componentModel"; "required": false; }; }, {}, never, never, false, never>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
interface IControlModel {
|
|
166
|
+
id: string;
|
|
167
|
+
name: string;
|
|
168
|
+
dataType: string;
|
|
169
|
+
minOccurs: string;
|
|
170
|
+
maxOccurs: string;
|
|
171
|
+
minLength: string;
|
|
172
|
+
maxLength: string;
|
|
173
|
+
pattern: string;
|
|
174
|
+
fractionDigits: string;
|
|
175
|
+
totalDigits: string;
|
|
176
|
+
minInclusive: string;
|
|
177
|
+
maxInclusive: string;
|
|
178
|
+
values: string[];
|
|
179
|
+
isCurrency: boolean;
|
|
180
|
+
xpath: string;
|
|
181
|
+
value: string;
|
|
182
|
+
isUETR: boolean;
|
|
183
|
+
component: ComponentModel;
|
|
184
|
+
defaultValue?: string;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
declare class IsoBaseControlComponent implements OnInit {
|
|
188
|
+
ngOnInit(): void;
|
|
189
|
+
control: IControlModel;
|
|
190
|
+
formControl: FormControl;
|
|
191
|
+
getKeys(errors: any): string[];
|
|
192
|
+
private toIsoWithOffset;
|
|
193
|
+
private toIso20022Z;
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsoBaseControlComponent, never>;
|
|
195
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IsoBaseControlComponent, "iso-base", never, { "control": { "alias": "control"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; }, {}, never, never, false, never>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
declare class IsoMatInput extends IsoBaseControlComponent {
|
|
199
|
+
clickEvent(event: Event): void;
|
|
200
|
+
private generateUETR;
|
|
201
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsoMatInput, never>;
|
|
202
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IsoMatInput, "iso-mat-input", never, {}, {}, never, never, false, never>;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
declare class IsoMatTextarea extends IsoBaseControlComponent {
|
|
206
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsoMatTextarea, never>;
|
|
207
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IsoMatTextarea, "iso-mat-textarea", never, {}, {}, never, never, false, never>;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
declare class IsoMatDate extends IsoBaseControlComponent {
|
|
211
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsoMatDate, never>;
|
|
212
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IsoMatDate, "iso-mat-date", never, {}, {}, never, never, false, never>;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
declare class IsoMatDateTime extends IsoBaseControlComponent {
|
|
216
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsoMatDateTime, never>;
|
|
217
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IsoMatDateTime, "iso-mat-datetime", never, {}, {}, never, never, false, never>;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
declare class IsoMatSelect extends IsoBaseControlComponent {
|
|
221
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsoMatSelect, never>;
|
|
222
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IsoMatSelect, "iso-mat-select", never, {}, {}, never, never, false, never>;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
declare class IsoMatCheckbox extends IsoBaseControlComponent {
|
|
226
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsoMatCheckbox, never>;
|
|
227
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IsoMatCheckbox, "iso-mat-checkbox", never, {}, {}, never, never, false, never>;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
declare class IsoMatCurrency extends IsoBaseControlComponent {
|
|
231
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsoMatCurrency, never>;
|
|
232
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IsoMatCurrency, "iso-mat-currency", never, {}, {}, never, never, false, never>;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
declare class IsoTranslatePipe implements PipeTransform {
|
|
236
|
+
private translateService;
|
|
237
|
+
constructor(translateService: TranslateService);
|
|
238
|
+
transform(value: string, id: string, defaultValue: string): string;
|
|
239
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsoTranslatePipe, never>;
|
|
240
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsoTranslatePipe, "trans", false>;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
declare class IsoErrorPipe implements PipeTransform {
|
|
244
|
+
private translateService;
|
|
245
|
+
constructor(translateService: TranslateService);
|
|
246
|
+
transform(value: string, id: string, errorKey: string, defaultValue: string): string;
|
|
247
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsoErrorPipe, never>;
|
|
248
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsoErrorPipe, "error", false>;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
declare class IsoGeneralPipe implements PipeTransform {
|
|
252
|
+
private translateService;
|
|
253
|
+
constructor(translateService: TranslateService);
|
|
254
|
+
transform(value: string, id: string, generalKey: string, defaultValue: string): string;
|
|
255
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsoGeneralPipe, never>;
|
|
256
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsoGeneralPipe, "general", false>;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
declare class NgxIsoFormModule {
|
|
260
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxIsoFormModule, never>;
|
|
261
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxIsoFormModule, [typeof NgxIsoFormComponent, typeof NgxIsoControlComponent, typeof NgxDynamicComponent, typeof IsoBaseControlComponent, typeof IsoMatInput, typeof IsoMatTextarea, typeof IsoMatDate, typeof IsoMatDateTime, typeof IsoMatSelect, typeof IsoMatCheckbox, typeof IsoMatCurrency, typeof ComponentDirective, typeof IsoTranslatePipe, typeof IsoErrorPipe, typeof IsoGeneralPipe], [typeof i16.BrowserModule, typeof i17.BrowserAnimationsModule, typeof i18.TranslateModule, typeof i19.FormsModule, typeof i19.ReactiveFormsModule, typeof i20.MatExpansionModule, typeof i21.MatFormFieldModule, typeof i22.MatInputModule, typeof i23.MatNativeDateModule, typeof i24.MatDatepickerModule, typeof i25.MatButtonModule, typeof i26.MatSelectModule, typeof i27.MatIconModule], [typeof NgxIsoFormComponent]>;
|
|
262
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgxIsoFormModule>;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
declare class ComponentService {
|
|
266
|
+
getComponent<T>(viewContainerRef: ViewContainerRef, dynamicModel: ComponentModel): ComponentRef<T>;
|
|
267
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentService, never>;
|
|
268
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ComponentService>;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export { ComponentService, ControlService, IsoForm, NgxIsoFormComponent, NgxIsoFormModule };
|
|
272
|
+
export type { IControlModel, SchemaElement };
|
package/lib/styles/index.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-iso-form",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Angular component design Reactive Form using specific JSON. The primary use of this UI library is to design ISO 20022 forms dynamically.",
|
|
5
5
|
"author": "Abhishek Joshi aka PixelByAJ",
|
|
6
6
|
"repository": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"private": false,
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@angular/common": "^
|
|
32
|
-
"@angular/core": "^
|
|
31
|
+
"@angular/common": "^20.3.15",
|
|
32
|
+
"@angular/core": "^20.3.15"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"tslib": "^2.5.0"
|
package/lib/Models/Control.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ComponentModel } from "../shared/models/component.model";
|
|
2
|
-
export interface IControlModel {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
dataType: string;
|
|
6
|
-
minOccurs: string;
|
|
7
|
-
maxOccurs: string;
|
|
8
|
-
minLength: string;
|
|
9
|
-
maxLength: string;
|
|
10
|
-
pattern: string;
|
|
11
|
-
fractionDigits: string;
|
|
12
|
-
totalDigits: string;
|
|
13
|
-
minInclusive: string;
|
|
14
|
-
maxInclusive: string;
|
|
15
|
-
values: string[];
|
|
16
|
-
isCurrency: boolean;
|
|
17
|
-
xpath: string;
|
|
18
|
-
value: string;
|
|
19
|
-
component: ComponentModel;
|
|
20
|
-
}
|
package/lib/Models/IsoForm.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare class IsoForm {
|
|
2
|
-
private _model;
|
|
3
|
-
private _namespace;
|
|
4
|
-
constructor(model: any, xmlMessage?: string);
|
|
5
|
-
get isoFormModel(): any;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated This method is deprecated use `#isoForm.getFormModel` instead
|
|
8
|
-
*/
|
|
9
|
-
getFormModel: () => any;
|
|
10
|
-
private parseXML;
|
|
11
|
-
}
|
package/lib/Models/Schema.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export interface SchemaElement {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
dataType: string;
|
|
5
|
-
minOccurs: string;
|
|
6
|
-
maxOccurs: string;
|
|
7
|
-
minLength: string;
|
|
8
|
-
maxLength: string;
|
|
9
|
-
pattern: string;
|
|
10
|
-
fractionDigits: string;
|
|
11
|
-
totalDigits: string;
|
|
12
|
-
minInclusive: string;
|
|
13
|
-
maxInclusive: string;
|
|
14
|
-
values: string[];
|
|
15
|
-
isCurrency: boolean;
|
|
16
|
-
xpath: string;
|
|
17
|
-
elements: SchemaModel[];
|
|
18
|
-
expanded: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface SchemaModel extends SchemaElement {
|
|
21
|
-
uniqueId?: string;
|
|
22
|
-
hidden?: boolean;
|
|
23
|
-
value?: string;
|
|
24
|
-
multi?: string;
|
|
25
|
-
isFormControls?: boolean;
|
|
26
|
-
children?: SchemaModel[];
|
|
27
|
-
choiceKey?: string;
|
|
28
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IControlModel } from '../../Models/Control';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class IsoBaseControlComponent {
|
|
5
|
-
control: IControlModel;
|
|
6
|
-
formControl: FormControl;
|
|
7
|
-
getKeys(errors: any): string[];
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IsoBaseControlComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IsoBaseControlComponent, "iso-base", never, { "control": { "alias": "control"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IsoBaseControlComponent } from './iso-base-control.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class IsoMatCheckbox extends IsoBaseControlComponent {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IsoMatCheckbox, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IsoMatCheckbox, "iso-mat-checkbox", never, {}, {}, never, never, false, never>;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IsoBaseControlComponent } from './iso-base-control.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class IsoMatCurrency extends IsoBaseControlComponent {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IsoMatCurrency, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IsoMatCurrency, "iso-mat-currency", never, {}, {}, never, never, false, never>;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IsoBaseControlComponent } from './iso-base-control.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class IsoMatDate extends IsoBaseControlComponent {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IsoMatDate, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IsoMatDate, "iso-mat-date", never, {}, {}, never, never, false, never>;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IsoBaseControlComponent } from './iso-base-control.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class IsoMatDateTime extends IsoBaseControlComponent {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IsoMatDateTime, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IsoMatDateTime, "iso-mat-datetime", never, {}, {}, never, never, false, never>;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IsoBaseControlComponent } from './iso-base-control.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class IsoMatInput extends IsoBaseControlComponent {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IsoMatInput, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IsoMatInput, "iso-mat-input", never, {}, {}, never, never, false, never>;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IsoBaseControlComponent } from './iso-base-control.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class IsoMatSelect extends IsoBaseControlComponent {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IsoMatSelect, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IsoMatSelect, "iso-mat-select", never, {}, {}, never, never, false, never>;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IsoBaseControlComponent } from './iso-base-control.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class IsoMatTextarea extends IsoBaseControlComponent {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IsoMatTextarea, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IsoMatTextarea, "iso-mat-textarea", never, {}, {}, never, never, false, never>;
|
|
6
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './controls/iso-base-control.component';
|
|
2
|
-
export * from './controls/iso-mat-date.component';
|
|
3
|
-
export * from './controls/iso-mat-datetime.component';
|
|
4
|
-
export * from './controls/iso-mat-input.component';
|
|
5
|
-
export * from './controls/iso-mat-checkbox.component';
|
|
6
|
-
export * from './controls/iso-mat-textarea.component';
|
|
7
|
-
export * from './controls/iso-mat-select.component';
|
|
8
|
-
export * from './controls/iso-mat-currency.component';
|
|
9
|
-
export * from './iso-control/iso-control.component';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ControlService } from '../../shared/services/control.service';
|
|
3
|
-
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
4
|
-
import { ComponentModel } from '../../shared/models/component.model';
|
|
5
|
-
import { SchemaElement } from '../../Models/Schema';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class NgxIsoControlComponent implements OnInit, ControlValueAccessor {
|
|
8
|
-
private controlService;
|
|
9
|
-
formControl: FormControl;
|
|
10
|
-
control: SchemaElement;
|
|
11
|
-
component: ComponentModel;
|
|
12
|
-
constructor(controlService: ControlService);
|
|
13
|
-
ngOnInit(): void;
|
|
14
|
-
writeValue(obj: any): void;
|
|
15
|
-
registerOnChange(fn: any): void;
|
|
16
|
-
registerOnTouched(fn: any): void;
|
|
17
|
-
setDisabledState?(isDisabled: boolean): void;
|
|
18
|
-
private addValidator;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxIsoControlComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxIsoControlComponent, "ngx-iso-control", never, { "formControl": { "alias": "formControl"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { FormGroup, FormControl, FormArray, AbstractControl } from '@angular/forms';
|
|
3
|
-
import { SchemaModel } from './Models/Schema';
|
|
4
|
-
import { NgxIsoService } from './ngx-iso-form.service';
|
|
5
|
-
import { IsoForm } from './Models/IsoForm';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class NgxIsoFormComponent implements OnChanges {
|
|
8
|
-
private service;
|
|
9
|
-
private changeDetection;
|
|
10
|
-
form: IsoForm;
|
|
11
|
-
schema: SchemaModel;
|
|
12
|
-
excludes: string[];
|
|
13
|
-
protected _form: FormGroup;
|
|
14
|
-
private _isFormInitiate;
|
|
15
|
-
private _ngModel;
|
|
16
|
-
constructor(service: NgxIsoService, changeDetection: ChangeDetectorRef);
|
|
17
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
18
|
-
get model(): any;
|
|
19
|
-
protected get getFormModel(): any[];
|
|
20
|
-
get invalid(): boolean;
|
|
21
|
-
private initiateForm;
|
|
22
|
-
private structuredClone;
|
|
23
|
-
private initiateFormModel;
|
|
24
|
-
protected onChoiceSelectionChange(id: string, formElement: any, node: SchemaModel): void;
|
|
25
|
-
protected maxOccurs(maxOccurs: string): boolean;
|
|
26
|
-
protected expand(minOccurs: string): boolean;
|
|
27
|
-
protected addSection($event: Event, node: SchemaModel, parentNode: SchemaModel, parentFormEle: FormGroup): void;
|
|
28
|
-
protected removeSection($event: Event, parentNode: SchemaModel, parentFormEle: FormGroup, index: number): void;
|
|
29
|
-
protected addNewControl($event: Event, node: SchemaModel, parentNode: SchemaModel, parentFormEle: FormGroup): void;
|
|
30
|
-
protected removeNewControl($event: Event, parentNode: SchemaModel, parentFormEle: FormGroup, index: number): void;
|
|
31
|
-
protected isArray(myKey: Object | Array<any>): boolean;
|
|
32
|
-
protected isEmpty(formElement: FormGroup): boolean;
|
|
33
|
-
protected getElement(formElement: FormGroup, element: any): AbstractControl<any, any> | undefined;
|
|
34
|
-
protected getFormGroupByIndex(formArray: FormArray, _index: number): FormGroup;
|
|
35
|
-
protected getFormControl(node: SchemaModel): FormControl;
|
|
36
|
-
protected getChoiceFormControl(choiceKey: string): FormControl<any>;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxIsoFormComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxIsoFormComponent, "ngx-iso-form", never, { "form": { "alias": "form"; "required": true; }; "schema": { "alias": "schema"; "required": true; }; "excludes": { "alias": "excludes"; "required": false; }; }, {}, never, never, false, never>;
|
|
39
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./ngx-iso-form.component";
|
|
3
|
-
import * as i2 from "./components/iso-control/iso-control.component";
|
|
4
|
-
import * as i3 from "./shared/components/dynamic/ngx-dynamic.component";
|
|
5
|
-
import * as i4 from "./components/controls/iso-base-control.component";
|
|
6
|
-
import * as i5 from "./components/controls/iso-mat-input.component";
|
|
7
|
-
import * as i6 from "./components/controls/iso-mat-textarea.component";
|
|
8
|
-
import * as i7 from "./components/controls/iso-mat-date.component";
|
|
9
|
-
import * as i8 from "./components/controls/iso-mat-datetime.component";
|
|
10
|
-
import * as i9 from "./components/controls/iso-mat-select.component";
|
|
11
|
-
import * as i10 from "./components/controls/iso-mat-checkbox.component";
|
|
12
|
-
import * as i11 from "./components/controls/iso-mat-currency.component";
|
|
13
|
-
import * as i12 from "./shared/directives/component-content.directive";
|
|
14
|
-
import * as i13 from "./shared/pipe/translate.pipe";
|
|
15
|
-
import * as i14 from "./shared/pipe/error.pipe";
|
|
16
|
-
import * as i15 from "./shared/pipe/general.pipe";
|
|
17
|
-
import * as i16 from "@angular/platform-browser";
|
|
18
|
-
import * as i17 from "@angular/platform-browser/animations";
|
|
19
|
-
import * as i18 from "@ngx-translate/core";
|
|
20
|
-
import * as i19 from "@angular/forms";
|
|
21
|
-
import * as i20 from "@angular/material/expansion";
|
|
22
|
-
import * as i21 from "@angular/material/form-field";
|
|
23
|
-
import * as i22 from "@angular/material/input";
|
|
24
|
-
import * as i23 from "@angular/material/core";
|
|
25
|
-
import * as i24 from "@angular/material/datepicker";
|
|
26
|
-
import * as i25 from "@angular/material/button";
|
|
27
|
-
import * as i26 from "@angular/material/select";
|
|
28
|
-
import * as i27 from "@angular/material/icon";
|
|
29
|
-
export declare class NgxIsoFormModule {
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxIsoFormModule, never>;
|
|
31
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxIsoFormModule, [typeof i1.NgxIsoFormComponent, typeof i2.NgxIsoControlComponent, typeof i3.NgxDynamicComponent, typeof i4.IsoBaseControlComponent, typeof i5.IsoMatInput, typeof i6.IsoMatTextarea, typeof i7.IsoMatDate, typeof i8.IsoMatDateTime, typeof i9.IsoMatSelect, typeof i10.IsoMatCheckbox, typeof i11.IsoMatCurrency, typeof i12.ComponentDirective, typeof i13.IsoTranslatePipe, typeof i14.IsoErrorPipe, typeof i15.IsoGeneralPipe], [typeof i16.BrowserModule, typeof i17.BrowserAnimationsModule, typeof i18.TranslateModule, typeof i19.FormsModule, typeof i19.ReactiveFormsModule, typeof i20.MatExpansionModule, typeof i21.MatFormFieldModule, typeof i22.MatInputModule, typeof i23.MatNativeDateModule, typeof i24.MatDatepickerModule, typeof i25.MatButtonModule, typeof i26.MatSelectModule, typeof i27.MatIconModule], [typeof i1.NgxIsoFormComponent]>;
|
|
32
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NgxIsoFormModule>;
|
|
33
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FormGroup, FormControl, FormArray, FormBuilder } from '@angular/forms';
|
|
2
|
-
import { SchemaModel } from './Models/Schema';
|
|
3
|
-
import { CustomDateAdapter } from './shared/services/custom-date-adapter';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NgxIsoService {
|
|
6
|
-
private fb;
|
|
7
|
-
private dateService;
|
|
8
|
-
_formModel: any[];
|
|
9
|
-
excludes: string[];
|
|
10
|
-
constructor(fb: FormBuilder, dateService: CustomDateAdapter);
|
|
11
|
-
maxOccurs(maxOccurs: string): boolean;
|
|
12
|
-
initFormModel(model: any, form: FormGroup | FormArray, prev_key: string, choiceKey?: boolean, index?: number): void;
|
|
13
|
-
getFormGroupControls(json: SchemaModel[], keys: any, index?: number, choiceEle?: boolean, prev_key?: string): FormGroup;
|
|
14
|
-
getFormControl(values: any): FormControl;
|
|
15
|
-
sanitize: (obj: any) => any;
|
|
16
|
-
private getFormModel;
|
|
17
|
-
private getAmountCurrency;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxIsoService, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NgxIsoService>;
|
|
20
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ComponentDirective } from '../../directives/component-content.directive';
|
|
3
|
-
import { ComponentModel } from '../../models/component.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NgxDynamicComponent implements OnInit {
|
|
6
|
-
componentModel: ComponentModel;
|
|
7
|
-
componentContent: ComponentDirective;
|
|
8
|
-
constructor();
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
loadComponent(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxDynamicComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxDynamicComponent, "ngx-dynamic", never, { "componentModel": { "alias": "componentModel"; "required": false; }; }, {}, never, never, false, never>;
|
|
13
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ViewContainerRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ComponentDirective {
|
|
4
|
-
viewContainerRef: ViewContainerRef;
|
|
5
|
-
constructor(viewContainerRef: ViewContainerRef);
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ComponentDirective, "[componentContent]", never, {}, {}, never, never, false, never>;
|
|
8
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class IsoErrorPipe implements PipeTransform {
|
|
5
|
-
private translateService;
|
|
6
|
-
constructor(translateService: TranslateService);
|
|
7
|
-
transform(value: string, id: string, errorKey: string, defaultValue: string): string;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IsoErrorPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<IsoErrorPipe, "error", false>;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class IsoGeneralPipe implements PipeTransform {
|
|
5
|
-
private translateService;
|
|
6
|
-
constructor(translateService: TranslateService);
|
|
7
|
-
transform(value: string, id: string, generalKey: string, defaultValue: string): string;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IsoGeneralPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<IsoGeneralPipe, "general", false>;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class IsoTranslatePipe implements PipeTransform {
|
|
5
|
-
private translateService;
|
|
6
|
-
constructor(translateService: TranslateService);
|
|
7
|
-
transform(value: string, id: string, defaultValue: string): string;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IsoTranslatePipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<IsoTranslatePipe, "trans", false>;
|
|
10
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComponentRef, ViewContainerRef } from "@angular/core";
|
|
2
|
-
import { ComponentModel } from "../models/component.model";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ComponentService {
|
|
5
|
-
getComponent<T>(viewContainerRef: ViewContainerRef, dynamicModel: ComponentModel): ComponentRef<T>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentService, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ComponentService>;
|
|
8
|
-
}
|