@eqproject/eqp-dynamic-module 0.0.12 → 1.0.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/esm2020/eqproject-eqp-dynamic-module.mjs +5 -0
- package/esm2020/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +249 -0
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +659 -0
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +585 -0
- package/esm2020/lib/components/private/dynamic-module-field/dynamic-module-field.component.mjs +130 -0
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +127 -0
- package/esm2020/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.mjs +163 -0
- package/esm2020/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.mjs +57 -0
- package/esm2020/lib/components/private/field-templates/date-field-template/date-field-template.component.mjs +67 -0
- package/esm2020/lib/components/private/field-templates/image-field-template/image-field-template.component.mjs +188 -0
- package/esm2020/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +117 -0
- package/esm2020/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.mjs +70 -0
- package/esm2020/lib/components/private/field-templates/text-field-template/text-field-template.component.mjs +65 -0
- package/esm2020/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.mjs +49 -0
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +126 -0
- package/esm2020/lib/components/private/form-records/list-form-record/list-form-record.component.mjs +212 -0
- package/esm2020/lib/components/private/spinner/spinner.component.mjs +19 -0
- package/esm2020/lib/eqp-dynamic-module.module.mjs +110 -0
- package/esm2020/lib/interfaces/iBaseFieldComponent.interface.mjs +2 -0
- package/esm2020/lib/interfaces/iRootObject.interface.mjs +2 -0
- package/esm2020/lib/models/baseField.model.mjs +36 -0
- package/esm2020/lib/models/baseObj.model.mjs +9 -0
- package/esm2020/lib/models/context.model.mjs +8 -0
- package/esm2020/lib/models/endPointConfiguration.model.mjs +23 -0
- package/esm2020/lib/models/entity.model.mjs +7 -0
- package/esm2020/lib/models/fields/attachmentField.model.mjs +22 -0
- package/esm2020/lib/models/fields/booleanField.model.mjs +12 -0
- package/esm2020/lib/models/fields/dateField.model.mjs +11 -0
- package/esm2020/lib/models/fields/imageField.model.mjs +8 -0
- package/esm2020/lib/models/fields/listValueField.model.mjs +14 -0
- package/esm2020/lib/models/fields/lookupField.model.mjs +5 -0
- package/esm2020/lib/models/fields/numericField.model.mjs +5 -0
- package/esm2020/lib/models/fields/textField.model.mjs +14 -0
- package/esm2020/lib/models/fields/textareaField.model.mjs +4 -0
- package/esm2020/lib/models/form.model.mjs +24 -0
- package/esm2020/lib/models/record.model.mjs +8 -0
- package/esm2020/lib/modules/material.module.mjs +231 -0
- package/esm2020/lib/services/custom-form-validators.service.mjs +19 -0
- package/esm2020/lib/services/eqp-dynamic-module-dialog.service.mjs +112 -0
- package/esm2020/lib/services/spinner.service.mjs +43 -0
- package/esm2020/lib/services/utilityHelper.services.mjs +379 -0
- package/esm2020/public-api.mjs +41 -0
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +3783 -0
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -0
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +3779 -0
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.d.ts +3 -0
- package/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.d.ts +12 -4
- package/lib/components/private/add-form-field/add-form-field.component.d.ts +8 -3
- package/lib/components/private/dynamic-module-field/dynamic-module-field.component.d.ts +3 -0
- package/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.d.ts +58 -0
- package/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.d.ts +5 -2
- package/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.d.ts +3 -0
- package/lib/components/private/field-templates/date-field-template/date-field-template.component.d.ts +3 -0
- package/lib/components/private/field-templates/image-field-template/image-field-template.component.d.ts +5 -2
- package/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.d.ts +3 -0
- package/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.d.ts +3 -0
- package/lib/components/private/field-templates/text-field-template/text-field-template.component.d.ts +4 -1
- package/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.d.ts +3 -0
- package/lib/components/private/form-records/add-form-record/add-form-record.component.d.ts +7 -4
- package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts +3 -0
- package/lib/components/private/spinner/spinner.component.d.ts +3 -0
- package/lib/eqp-dynamic-module.module.d.ts +30 -0
- package/lib/models/baseField.model.d.ts +2 -2
- package/lib/modules/material.module.d.ts +35 -0
- package/lib/services/eqp-dynamic-module-dialog.service.d.ts +3 -0
- package/lib/services/spinner.service.d.ts +3 -0
- package/lib/services/utilityHelper.services.d.ts +6 -3
- package/package.json +37 -26
- package/bundles/eqproject-eqp-dynamic-module.umd.js +0 -3997
- package/bundles/eqproject-eqp-dynamic-module.umd.js.map +0 -1
- package/bundles/eqproject-eqp-dynamic-module.umd.min.js +0 -17
- package/bundles/eqproject-eqp-dynamic-module.umd.min.js.map +0 -1
- package/eqproject-eqp-dynamic-module.d.ts +0 -6
- package/eqproject-eqp-dynamic-module.metadata.json +0 -1
- package/esm2015/eqproject-eqp-dynamic-module.js +0 -7
- package/esm2015/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.js +0 -265
- package/esm2015/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.js +0 -652
- package/esm2015/lib/components/private/add-form-field/add-form-field.component.js +0 -577
- package/esm2015/lib/components/private/dynamic-module-field/dynamic-module-field.component.js +0 -127
- package/esm2015/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.js +0 -170
- package/esm2015/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.js +0 -56
- package/esm2015/lib/components/private/field-templates/date-field-template/date-field-template.component.js +0 -71
- package/esm2015/lib/components/private/field-templates/image-field-template/image-field-template.component.js +0 -196
- package/esm2015/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.js +0 -115
- package/esm2015/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.js +0 -71
- package/esm2015/lib/components/private/field-templates/text-field-template/text-field-template.component.js +0 -67
- package/esm2015/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.js +0 -51
- package/esm2015/lib/components/private/form-records/add-form-record/add-form-record.component.js +0 -130
- package/esm2015/lib/components/private/form-records/list-form-record/list-form-record.component.js +0 -216
- package/esm2015/lib/components/private/spinner/spinner.component.js +0 -23
- package/esm2015/lib/eqp-dynamic-module.module.js +0 -69
- package/esm2015/lib/interfaces/iBaseFieldComponent.interface.js +0 -1
- package/esm2015/lib/interfaces/iRootObject.interface.js +0 -1
- package/esm2015/lib/models/baseField.model.js +0 -36
- package/esm2015/lib/models/baseObj.model.js +0 -9
- package/esm2015/lib/models/context.model.js +0 -8
- package/esm2015/lib/models/endPointConfiguration.model.js +0 -23
- package/esm2015/lib/models/entity.model.js +0 -7
- package/esm2015/lib/models/fields/attachmentField.model.js +0 -22
- package/esm2015/lib/models/fields/booleanField.model.js +0 -12
- package/esm2015/lib/models/fields/dateField.model.js +0 -11
- package/esm2015/lib/models/fields/imageField.model.js +0 -8
- package/esm2015/lib/models/fields/listValueField.model.js +0 -14
- package/esm2015/lib/models/fields/lookupField.model.js +0 -5
- package/esm2015/lib/models/fields/numericField.model.js +0 -5
- package/esm2015/lib/models/fields/textField.model.js +0 -14
- package/esm2015/lib/models/fields/textareaField.model.js +0 -4
- package/esm2015/lib/models/form.model.js +0 -24
- package/esm2015/lib/models/record.model.js +0 -8
- package/esm2015/lib/modules/material.module.js +0 -108
- package/esm2015/lib/services/custom-form-validators.service.js +0 -19
- package/esm2015/lib/services/eqp-dynamic-module-dialog.service.js +0 -113
- package/esm2015/lib/services/spinner.service.js +0 -43
- package/esm2015/lib/services/utilityHelper.services.js +0 -387
- package/esm2015/public-api.js +0 -39
- package/esm5/eqproject-eqp-dynamic-module.js +0 -7
- package/esm5/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.js +0 -272
- package/esm5/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.js +0 -667
- package/esm5/lib/components/private/add-form-field/add-form-field.component.js +0 -588
- package/esm5/lib/components/private/dynamic-module-field/dynamic-module-field.component.js +0 -128
- package/esm5/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.js +0 -173
- package/esm5/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.js +0 -57
- package/esm5/lib/components/private/field-templates/date-field-template/date-field-template.component.js +0 -72
- package/esm5/lib/components/private/field-templates/image-field-template/image-field-template.component.js +0 -206
- package/esm5/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.js +0 -119
- package/esm5/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.js +0 -72
- package/esm5/lib/components/private/field-templates/text-field-template/text-field-template.component.js +0 -68
- package/esm5/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.js +0 -52
- package/esm5/lib/components/private/form-records/add-form-record/add-form-record.component.js +0 -133
- package/esm5/lib/components/private/form-records/list-form-record/list-form-record.component.js +0 -220
- package/esm5/lib/components/private/spinner/spinner.component.js +0 -24
- package/esm5/lib/eqp-dynamic-module.module.js +0 -72
- package/esm5/lib/interfaces/iBaseFieldComponent.interface.js +0 -1
- package/esm5/lib/interfaces/iRootObject.interface.js +0 -1
- package/esm5/lib/models/baseField.model.js +0 -43
- package/esm5/lib/models/baseObj.model.js +0 -13
- package/esm5/lib/models/context.model.js +0 -14
- package/esm5/lib/models/endPointConfiguration.model.js +0 -33
- package/esm5/lib/models/entity.model.js +0 -14
- package/esm5/lib/models/fields/attachmentField.model.js +0 -29
- package/esm5/lib/models/fields/booleanField.model.js +0 -19
- package/esm5/lib/models/fields/dateField.model.js +0 -18
- package/esm5/lib/models/fields/imageField.model.js +0 -19
- package/esm5/lib/models/fields/listValueField.model.js +0 -25
- package/esm5/lib/models/fields/lookupField.model.js +0 -12
- package/esm5/lib/models/fields/numericField.model.js +0 -12
- package/esm5/lib/models/fields/textField.model.js +0 -21
- package/esm5/lib/models/fields/textareaField.model.js +0 -11
- package/esm5/lib/models/form.model.js +0 -39
- package/esm5/lib/models/record.model.js +0 -14
- package/esm5/lib/modules/material.module.js +0 -111
- package/esm5/lib/services/custom-form-validators.service.js +0 -23
- package/esm5/lib/services/eqp-dynamic-module-dialog.service.js +0 -123
- package/esm5/lib/services/spinner.service.js +0 -46
- package/esm5/lib/services/utilityHelper.services.js +0 -396
- package/esm5/public-api.js +0 -39
- package/fesm2015/eqproject-eqp-dynamic-module.js +0 -3586
- package/fesm2015/eqproject-eqp-dynamic-module.js.map +0 -1
- package/fesm5/eqproject-eqp-dynamic-module.js +0 -3772
- package/fesm5/eqproject-eqp-dynamic-module.js.map +0 -1
package/index.d.ts
ADDED
|
@@ -4,6 +4,7 @@ import { EndPointConfiguration } from '../../../models/endPointConfiguration.mod
|
|
|
4
4
|
import { Form, FormTypeEnum } from '../../../models/form.model';
|
|
5
5
|
import { Record } from '../../../models/record.model';
|
|
6
6
|
import { UtilityHelperService } from '../../../services/utilityHelper.services';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class EqpDynamicModuleComponent implements OnInit {
|
|
8
9
|
private utilityHelperService;
|
|
9
10
|
context: Context;
|
|
@@ -98,4 +99,6 @@ export declare class EqpDynamicModuleComponent implements OnInit {
|
|
|
98
99
|
* @param record Oggetto di tipo Record da duplicare.
|
|
99
100
|
*/
|
|
100
101
|
onDeleteRecord(record: Record): void;
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleComponent, never>;
|
|
103
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleComponent, "eqp-dynamic-module", never, { "context": "context"; "formID": "formID"; "values": "values"; "showButtons": "showButtons"; "showTitle": "showTitle"; "viewMode": "viewMode"; "baseServerUrl": "baseServerUrl"; "userToken": "userToken"; "endPointConfiguration": "endPointConfiguration"; }, { "saveRecord": "saveRecord"; "deleteRecord": "deleteRecord"; "duplicateRecord": "duplicateRecord"; "afterSaveRecord": "afterSaveRecord"; "afterDeleteRecord": "afterDeleteRecord"; "afterDuplicateRecord": "afterDuplicateRecord"; }, never, never, false>;
|
|
101
104
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
4
4
|
import { ConfigColumn, EqpTableComponent } from '@eqproject/eqp-table';
|
|
5
5
|
import { BaseField } from '../../../models/baseField.model';
|
|
@@ -7,6 +7,7 @@ import { Context } from '../../../models/context.model';
|
|
|
7
7
|
import { EndPointConfiguration } from '../../../models/endPointConfiguration.model';
|
|
8
8
|
import { ActionOnRecord, Form, FormScalarTypeEnum, FormTypeEnum } from '../../../models/form.model';
|
|
9
9
|
import { UtilityHelperService } from '../../../services/utilityHelper.services';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
11
12
|
private formBuilder;
|
|
12
13
|
private dialog;
|
|
@@ -16,6 +17,7 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
16
17
|
formID: string;
|
|
17
18
|
innerFormManagment: boolean;
|
|
18
19
|
orgaID: string;
|
|
20
|
+
innerFormRef: MatDialogRef<TemplateRef<any>>;
|
|
19
21
|
/**
|
|
20
22
|
* Url del server da chiamare per recuerare, salvare o eliminare i record.
|
|
21
23
|
* Usato per creare la configurazione di default degli endpoint da chiamare.
|
|
@@ -33,7 +35,7 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
33
35
|
* viene lasciata null e non viene eseguita nessuna chiamata al server.
|
|
34
36
|
*/
|
|
35
37
|
endPointConfiguration: EndPointConfiguration;
|
|
36
|
-
formFormGroup:
|
|
38
|
+
formFormGroup: UntypedFormGroup;
|
|
37
39
|
formCompleted: boolean;
|
|
38
40
|
previewForm: Form;
|
|
39
41
|
formFieldGroupName: string;
|
|
@@ -47,7 +49,7 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
47
49
|
fieldsTable: EqpTableComponent;
|
|
48
50
|
selectedField: BaseField | any;
|
|
49
51
|
indexSelectedField: number;
|
|
50
|
-
actionOnRecordFormGroup:
|
|
52
|
+
actionOnRecordFormGroup: UntypedFormGroup;
|
|
51
53
|
dialogFieldRef: MatDialogRef<TemplateRef<any>>;
|
|
52
54
|
dialogField: TemplateRef<any>;
|
|
53
55
|
fieldSectionColumnTemplate: TemplateRef<any>;
|
|
@@ -69,7 +71,7 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
69
71
|
* Evento emesso DOPO aver eseguito una chiamata al server per il salvataggiodi una form all'endpoint specificato.
|
|
70
72
|
*/
|
|
71
73
|
afterSaveFormEvent: EventEmitter<Form>;
|
|
72
|
-
constructor(formBuilder:
|
|
74
|
+
constructor(formBuilder: UntypedFormBuilder, dialog: MatDialog, utilityHelperService: UtilityHelperService);
|
|
73
75
|
ngOnInit(): void;
|
|
74
76
|
/**
|
|
75
77
|
* Metodo per configurare gli endpoint da usare di default a partire dall'url base del server
|
|
@@ -150,6 +152,10 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
150
152
|
* Metodo per salvare l'azione creata/modificate.
|
|
151
153
|
*/
|
|
152
154
|
saveActionOnRecord(): void;
|
|
155
|
+
/**
|
|
156
|
+
* Metodo per chiudere il dialog della inner form.
|
|
157
|
+
*/
|
|
158
|
+
closeDialogInnerForm(): void;
|
|
153
159
|
/**
|
|
154
160
|
* Metodo per chiudere il dialog di gestione delle action.
|
|
155
161
|
*/
|
|
@@ -231,4 +237,6 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
231
237
|
* Metodo per ricaricare i dati della tabella delle azioni aggiuntive sui record della Form.
|
|
232
238
|
*/
|
|
233
239
|
private reloadActionsOnRecordTable;
|
|
240
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleConfiguratorComponent, never>;
|
|
241
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleConfiguratorComponent, "eqp-dynamic-module-configurator", never, { "context": "context"; "form": "form"; "formID": "formID"; "innerFormManagment": "innerFormManagment"; "orgaID": "orgaID"; "innerFormRef": "innerFormRef"; "baseServerUrl": "baseServerUrl"; "userToken": "userToken"; "endPointConfiguration": "endPointConfiguration"; }, { "saveFormEvent": "saveFormEvent"; "afterSaveFormEvent": "afterSaveFormEvent"; }, never, never, false>;
|
|
234
242
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
4
4
|
import { AttachmentType, EqpAttachmentsComponent, IAttachmentDTO } from '@eqproject/eqp-attachments';
|
|
5
|
+
import { PickerModeEnum } from '@eqproject/eqp-datetimepicker';
|
|
5
6
|
import { EnumHelper } from '@eqproject/eqp-select';
|
|
6
7
|
import { ConfigColumn, EqpTableComponent } from '@eqproject/eqp-table';
|
|
7
8
|
import { BaseField, ColSpanSizesEnum, FieldTypeEnum } from '../../../models/baseField.model';
|
|
@@ -10,6 +11,7 @@ import { DateTimeTypeEnum } from '../../../models/fields/dateField.model';
|
|
|
10
11
|
import { ListPresentationEnum } from '../../../models/fields/listValueField.model';
|
|
11
12
|
import { TextMaskEnum } from '../../../models/fields/textField.model';
|
|
12
13
|
import { FormFieldGroup } from '../../../models/form.model';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
13
15
|
export declare class AddFormFieldComponent implements OnInit {
|
|
14
16
|
private formBuilder;
|
|
15
17
|
private enumHelper;
|
|
@@ -21,7 +23,7 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
21
23
|
/** Elenco dei Field creati nella form, usati per popolare l'autocomplete della proprietà Formula. */
|
|
22
24
|
availableFields: Array<BaseField>;
|
|
23
25
|
fieldTypesToExclude: Array<FieldTypeEnum>;
|
|
24
|
-
fieldFormGroup:
|
|
26
|
+
fieldFormGroup: UntypedFormGroup;
|
|
25
27
|
keyValueObject: {
|
|
26
28
|
key: string;
|
|
27
29
|
value: string;
|
|
@@ -63,7 +65,8 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
63
65
|
ListPresentationEnum: typeof ListPresentationEnum;
|
|
64
66
|
TextMaskEnum: typeof TextMaskEnum;
|
|
65
67
|
AttachmentType: typeof AttachmentType;
|
|
66
|
-
|
|
68
|
+
pickerModeEnum: typeof PickerModeEnum;
|
|
69
|
+
constructor(formBuilder: UntypedFormBuilder, enumHelper: EnumHelper, dialog: MatDialog, cdr: ChangeDetectorRef);
|
|
67
70
|
ngOnInit(): void;
|
|
68
71
|
/**
|
|
69
72
|
* Metodo per impostare i valori da suggerire nell'autocomplete del campo Formula.
|
|
@@ -196,4 +199,6 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
196
199
|
* dei campi di tipo Allegato o Immagine.
|
|
197
200
|
*/
|
|
198
201
|
private reloadMetadataTable;
|
|
202
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddFormFieldComponent, never>;
|
|
203
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddFormFieldComponent, "eqp-dynamic-module-add-form-field", never, { "field": "field"; "indexField": "indexField"; "formFieldsGroups": "formFieldsGroups"; "availableFields": "availableFields"; "fieldTypesToExclude": "fieldTypesToExclude"; }, { "saveFieldEvent": "saveFieldEvent"; }, never, never, false>;
|
|
199
204
|
}
|
|
@@ -5,6 +5,7 @@ import { BaseField, FieldTypeEnum } from '../../../models/baseField.model';
|
|
|
5
5
|
import { Form } from '../../../models/form.model';
|
|
6
6
|
import { Record } from '../../../models/record.model';
|
|
7
7
|
import { ListFormRecordComponent } from '../form-records/list-form-record/list-form-record.component';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class DynamicModuleFieldComponent implements OnInit, IBaseFieldComponent {
|
|
9
10
|
private dialog;
|
|
10
11
|
field: BaseField;
|
|
@@ -52,4 +53,6 @@ export declare class DynamicModuleFieldComponent implements OnInit, IBaseFieldCo
|
|
|
52
53
|
* aggiornato dall'utente. Se null allora l'utente non ha modificato nulla e ha chiuso il dialog.
|
|
53
54
|
*/
|
|
54
55
|
onSaveInnerFormRecord(record: Record): void;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicModuleFieldComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicModuleFieldComponent, "dynamic-module-field", never, { "field": "field"; "form": "form"; "record": "record"; }, { "recordChange": "recordChange"; }, never, never, false>;
|
|
55
58
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { IBaseFieldComponent } from '../../../interfaces/iBaseFieldComponent.interface';
|
|
4
|
+
import { BaseField, FieldTypeEnum } from '../../../models/baseField.model';
|
|
5
|
+
import { Form } from '../../../models/form.model';
|
|
6
|
+
import { Record } from '../../../models/record.model';
|
|
7
|
+
import { ListFormRecordComponent } from '../form-records/list-form-record/list-form-record.component';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class DynamicModuleFieldFixComponent implements OnInit, IBaseFieldComponent {
|
|
10
|
+
private dialog;
|
|
11
|
+
field: BaseField;
|
|
12
|
+
form: Form;
|
|
13
|
+
record: Record;
|
|
14
|
+
recordChange: EventEmitter<Record>;
|
|
15
|
+
FieldTypeEnum: typeof FieldTypeEnum;
|
|
16
|
+
selectedInnerForm: Form;
|
|
17
|
+
selectedInnerFormRecord: Record;
|
|
18
|
+
indexInnerFormRecord: number;
|
|
19
|
+
onlyViewInnerFormRecord: boolean;
|
|
20
|
+
dialogInnerFormRecordRef: MatDialogRef<TemplateRef<any>>;
|
|
21
|
+
dialogInnerFormRecord: TemplateRef<any>;
|
|
22
|
+
fieldTemplate: QueryList<DynamicModuleFieldFixComponent>;
|
|
23
|
+
listInnerFormRecords: QueryList<ListFormRecordComponent>;
|
|
24
|
+
constructor(dialog: MatDialog);
|
|
25
|
+
updateField(): void;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
/**
|
|
28
|
+
* Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
|
|
29
|
+
* Serve ad aggiornare il valore di tutti i campi che hanno una formula.
|
|
30
|
+
*/
|
|
31
|
+
onRecordChange(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Metodo per recuperare una InnerForm a partire dal Field che la rappresenta.
|
|
34
|
+
* @param field Campo a partire dal quale si vuole recuperare la InnerForm.
|
|
35
|
+
* @returns Restituisce un oggetto di tipo Form.
|
|
36
|
+
*/
|
|
37
|
+
getInnerFormFromField(field: BaseField): Form;
|
|
38
|
+
/**
|
|
39
|
+
* Metodo per aprire un dialog in cui aggiungere/modificare/visualizzare un record appartenente
|
|
40
|
+
* a una form di dettaglio.
|
|
41
|
+
* @param record Evento di output del componente list-form-record, contiene il record selezionato e un booleno che indica
|
|
42
|
+
* se l'utente vuole modificare o visualizzare l'elemento selezionato.
|
|
43
|
+
* @param innerForm Contiene la Form di dettaglio dalla quale è stato richiesto il record.
|
|
44
|
+
*/
|
|
45
|
+
onAddViewEditInnerFormRecord(record: {
|
|
46
|
+
record: Record;
|
|
47
|
+
onlyView: boolean;
|
|
48
|
+
}, field: BaseField): void;
|
|
49
|
+
/**
|
|
50
|
+
* Metodo invocato al salvataggio o alla chiusura del dialog di aggiunta/modifica/visualizzazione
|
|
51
|
+
* di un record di una form di dettaglio.
|
|
52
|
+
* @param record Oggetto restituito dal componente add-form-field (questo qui) contenente il Record
|
|
53
|
+
* aggiornato dall'utente. Se null allora l'utente non ha modificato nulla e ha chiuso il dialog.
|
|
54
|
+
*/
|
|
55
|
+
onSaveInnerFormRecord(record: Record): void;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicModuleFieldFixComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicModuleFieldFixComponent, "dynamic-module-field-fix", never, { "field": "field"; "form": "form"; "record": "record"; }, { "recordChange": "recordChange"; }, never, never, false>;
|
|
58
|
+
}
|
|
@@ -4,8 +4,9 @@ import { AttachmentField } from '../../../../models/fields/attachmentField.model
|
|
|
4
4
|
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
5
5
|
import { UtilityHelperService } from '../../../../services/utilityHelper.services';
|
|
6
6
|
import { EqpAttachmentsComponent } from '@eqproject/eqp-attachments';
|
|
7
|
-
import {
|
|
7
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
8
8
|
import { ConfigColumn } from '@eqproject/eqp-table';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class AttachmentFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent, AfterViewInit {
|
|
10
11
|
utilityService: UtilityHelperService;
|
|
11
12
|
private cdr;
|
|
@@ -16,7 +17,7 @@ export declare class AttachmentFieldTemplateComponent implements OnInit, OnChang
|
|
|
16
17
|
onAttachmentsChange: EventEmitter<void>;
|
|
17
18
|
eqpAttachments: EqpAttachmentsComponent;
|
|
18
19
|
metadataColumnTemplate: TemplateRef<any>;
|
|
19
|
-
metadataFormGroups: Array<
|
|
20
|
+
metadataFormGroups: Array<UntypedFormGroup>;
|
|
20
21
|
constructor(utilityService: UtilityHelperService, cdr: ChangeDetectorRef);
|
|
21
22
|
ngOnInit(): void;
|
|
22
23
|
ngAfterViewInit(): void;
|
|
@@ -65,4 +66,6 @@ export declare class AttachmentFieldTemplateComponent implements OnInit, OnChang
|
|
|
65
66
|
* Metodo per creare i FormGroup che rappresentano i metadata degli allegati caricati.
|
|
66
67
|
*/
|
|
67
68
|
private createMetadataFormGroups;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentFieldTemplateComponent, never>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentFieldTemplateComponent, "attachment-field-template", never, { "onlyImages": "onlyImages"; "field": "field"; "record": "record"; }, { "recordChange": "recordChange"; "onAttachmentsChange": "onAttachmentsChange"; }, never, never, false>;
|
|
68
71
|
}
|
|
@@ -2,6 +2,7 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { Record } from '../../../../models/record.model';
|
|
3
3
|
import { BooleanField, BoolPresentantioEnum } from '../../../../models/fields/booleanField.model';
|
|
4
4
|
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class BooleanFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
6
7
|
field: BooleanField;
|
|
7
8
|
record: Record;
|
|
@@ -18,4 +19,6 @@ export declare class BooleanFieldTemplateComponent implements OnInit, OnChanges,
|
|
|
18
19
|
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
19
20
|
*/
|
|
20
21
|
onRecordValueChange(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanFieldTemplateComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanFieldTemplateComponent, "boolean-field-template", never, { "field": "field"; "record": "record"; }, { "recordChange": "recordChange"; }, never, never, false>;
|
|
21
24
|
}
|
|
@@ -3,6 +3,7 @@ import { PickerModeEnum } from '@eqproject/eqp-datetimepicker';
|
|
|
3
3
|
import { Record } from '../../../../models/record.model';
|
|
4
4
|
import { DateField } from '../../../../models/fields/dateField.model';
|
|
5
5
|
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class DateFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
7
8
|
field: DateField;
|
|
8
9
|
record: Record;
|
|
@@ -24,4 +25,6 @@ export declare class DateFieldTemplateComponent implements OnInit, OnChanges, IB
|
|
|
24
25
|
* imposta la visualizzazione corretta del componente eqp-datetimepicker.
|
|
25
26
|
*/
|
|
26
27
|
private setTimeType;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateFieldTemplateComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateFieldTemplateComponent, "date-field-template", never, { "field": "field"; "record": "record"; }, { "recordChange": "recordChange"; }, never, never, false>;
|
|
27
30
|
}
|
|
@@ -4,15 +4,16 @@ import { Record } from '../../../../models/record.model';
|
|
|
4
4
|
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
5
5
|
import { UtilityHelperService } from '../../../../services/utilityHelper.services';
|
|
6
6
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
7
|
-
import {
|
|
7
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
8
8
|
import { I18nInterface } from '@eqproject/eqp-img-drawing';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class ImageFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
10
11
|
private dialog;
|
|
11
12
|
utilityService: UtilityHelperService;
|
|
12
13
|
record: Record;
|
|
13
14
|
field: ImageField;
|
|
14
15
|
recordChange: EventEmitter<Record>;
|
|
15
|
-
preLoadedImageMetadataFormGroup:
|
|
16
|
+
preLoadedImageMetadataFormGroup: UntypedFormGroup;
|
|
16
17
|
width: any;
|
|
17
18
|
height: any;
|
|
18
19
|
i18n: I18nInterface;
|
|
@@ -62,4 +63,6 @@ export declare class ImageFieldTemplateComponent implements OnInit, OnChanges, I
|
|
|
62
63
|
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
63
64
|
*/
|
|
64
65
|
private onRecordValueChange;
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageFieldTemplateComponent, never>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageFieldTemplateComponent, "image-field-template", never, { "record": "record"; "field": "field"; }, { "recordChange": "recordChange"; }, never, never, false>;
|
|
65
68
|
}
|
|
@@ -2,6 +2,7 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { Record } from '../../../../models/record.model';
|
|
3
3
|
import { ListPresentationEnum, ListValueField } from '../../../../models/fields/listValueField.model';
|
|
4
4
|
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ListValueFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
6
7
|
field: ListValueField;
|
|
7
8
|
record: Record;
|
|
@@ -48,4 +49,6 @@ export declare class ListValueFieldTemplateComponent implements OnInit, OnChange
|
|
|
48
49
|
* Metodo per aggiornare il valore e il validator del FormControl associato al campo.
|
|
49
50
|
*/
|
|
50
51
|
private setFormControlValue;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListValueFieldTemplateComponent, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListValueFieldTemplateComponent, "list-value-field-template", never, { "field": "field"; "record": "record"; }, { "recordChange": "recordChange"; }, never, never, false>;
|
|
51
54
|
}
|
|
@@ -3,6 +3,7 @@ import { NumericMaskConfig } from '@eqproject/eqp-numeric';
|
|
|
3
3
|
import { Record } from '../../../../models/record.model';
|
|
4
4
|
import { NumericField } from '../../../../models/fields/numericField.model';
|
|
5
5
|
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class NumericFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
7
8
|
field: NumericField;
|
|
8
9
|
record: Record;
|
|
@@ -23,4 +24,6 @@ export declare class NumericFieldTemplateComponent implements OnInit, OnChanges,
|
|
|
23
24
|
* Metodo per configurare eqp-numeric
|
|
24
25
|
*/
|
|
25
26
|
private configureEqpNumericOptions;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumericFieldTemplateComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericFieldTemplateComponent, "numeric-field-template", never, { "field": "field"; "record": "record"; }, { "recordChange": "recordChange"; }, never, never, false>;
|
|
26
29
|
}
|
|
@@ -2,6 +2,7 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { Record } from '../../../../models/record.model';
|
|
3
3
|
import { TextMaskEnum, TextField } from '../../../../models/fields/textField.model';
|
|
4
4
|
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class TextFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
6
7
|
field: TextField;
|
|
7
8
|
record: Record;
|
|
@@ -10,7 +11,7 @@ export declare class TextFieldTemplateComponent implements OnInit, OnChanges, IB
|
|
|
10
11
|
constructor();
|
|
11
12
|
ngOnInit(): void;
|
|
12
13
|
ngOnChanges(changes: SimpleChanges): void;
|
|
13
|
-
getInputType(): "
|
|
14
|
+
getInputType(): "email" | "password" | "tel" | "url" | "text";
|
|
14
15
|
/**
|
|
15
16
|
* Metodo per aggiornare il valore del campo quando questo è rappresentato da una formula.
|
|
16
17
|
*/
|
|
@@ -19,4 +20,6 @@ export declare class TextFieldTemplateComponent implements OnInit, OnChanges, IB
|
|
|
19
20
|
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
20
21
|
*/
|
|
21
22
|
onRecordValueChange(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldTemplateComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextFieldTemplateComponent, "text-field-template", never, { "field": "field"; "record": "record"; }, { "recordChange": "recordChange"; }, never, never, false>;
|
|
22
25
|
}
|
|
@@ -2,6 +2,7 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
3
3
|
import { Record } from '../../../../models/record.model';
|
|
4
4
|
import { TextareaField } from '../../../../models/fields/textareaField.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class TextareaFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
6
7
|
field: TextareaField;
|
|
7
8
|
record: Record;
|
|
@@ -17,4 +18,6 @@ export declare class TextareaFieldTemplateComponent implements OnInit, OnChanges
|
|
|
17
18
|
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
18
19
|
*/
|
|
19
20
|
onRecordValueChange(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaFieldTemplateComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaFieldTemplateComponent, "textarea-field-template", never, { "field": "field"; "record": "record"; }, { "recordChange": "recordChange"; }, never, never, false>;
|
|
20
23
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnInit, QueryList } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { BaseField, FieldTypeEnum } from '../../../../models/baseField.model';
|
|
4
4
|
import { Form, FormScalarTypeEnum } from '../../../../models/form.model';
|
|
5
5
|
import { Record } from '../../../../models/record.model';
|
|
6
6
|
import { UtilityHelperService } from '../../../../services/utilityHelper.services';
|
|
7
|
-
import {
|
|
7
|
+
import { DynamicModuleFieldFixComponent } from '../../dynamic-module-field-fix/dynamic-module-field.component';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class AddFormRecordComponent implements OnInit {
|
|
9
10
|
private cdr;
|
|
10
11
|
utilityService: UtilityHelperService;
|
|
@@ -13,14 +14,14 @@ export declare class AddFormRecordComponent implements OnInit {
|
|
|
13
14
|
form: Form;
|
|
14
15
|
record: Record;
|
|
15
16
|
onlyView: boolean;
|
|
16
|
-
formForm:
|
|
17
|
+
formForm: UntypedFormGroup;
|
|
17
18
|
fieldGroups: {
|
|
18
19
|
[key: string]: Array<BaseField>;
|
|
19
20
|
};
|
|
20
21
|
FormScalarTypeEnum: typeof FormScalarTypeEnum;
|
|
21
22
|
FieldTypeEnum: typeof FieldTypeEnum;
|
|
22
23
|
saveRecordEvent: EventEmitter<Record>;
|
|
23
|
-
fieldTemplate: QueryList<
|
|
24
|
+
fieldTemplate: QueryList<DynamicModuleFieldFixComponent>;
|
|
24
25
|
constructor(cdr: ChangeDetectorRef, utilityService: UtilityHelperService);
|
|
25
26
|
ngOnInit(): void;
|
|
26
27
|
/**
|
|
@@ -49,4 +50,6 @@ export declare class AddFormRecordComponent implements OnInit {
|
|
|
49
50
|
* a come è stata configurata dall'utente.
|
|
50
51
|
*/
|
|
51
52
|
private createFieldGroups;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddFormRecordComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddFormRecordComponent, "add-form-record", never, { "showTitle": "showTitle"; "showButtons": "showButtons"; "form": "form"; "record": "record"; "onlyView": "onlyView"; }, { "saveRecordEvent": "saveRecordEvent"; }, never, never, false>;
|
|
52
55
|
}
|
package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { OnInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { ConfigColumn, EqpTableComponent } from '@eqproject/eqp-table';
|
|
3
3
|
import { Form } from '../../../../models/form.model';
|
|
4
4
|
import { Record } from '../../../../models/record.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ListFormRecordComponent implements OnInit, OnChanges {
|
|
6
7
|
showTitle: boolean;
|
|
7
8
|
form: Form;
|
|
@@ -61,4 +62,6 @@ export declare class ListFormRecordComponent implements OnInit, OnChanges {
|
|
|
61
62
|
* Metodo per ricaricare i dati della eqp-table.
|
|
62
63
|
*/
|
|
63
64
|
private reloadTables;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListFormRecordComponent, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListFormRecordComponent, "list-form-record", never, { "showTitle": "showTitle"; "form": "form"; "values": "values"; }, { "onAddViewEditRecord": "onAddViewEditRecord"; "onDeleteRecord": "onDeleteRecord"; "onDuplicateRecord": "onDuplicateRecord"; }, never, never, false>;
|
|
64
67
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { SpinnerService } from '../../../services/spinner.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class SpinnerComponent implements OnInit {
|
|
5
6
|
private spinnerService;
|
|
6
7
|
isLoading: Subject<boolean>;
|
|
7
8
|
constructor(spinnerService: SpinnerService);
|
|
8
9
|
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "eqp-dynamic-module-spinner", never, {}, {}, never, never, false>;
|
|
9
12
|
}
|
|
@@ -1,2 +1,32 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/exported/eqp-dynamic-module/eqp-dynamic-module.component";
|
|
3
|
+
import * as i2 from "./components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component";
|
|
4
|
+
import * as i3 from "./components/private/add-form-field/add-form-field.component";
|
|
5
|
+
import * as i4 from "./components/private/field-templates/text-field-template/text-field-template.component";
|
|
6
|
+
import * as i5 from "./components/private/field-templates/boolean-field-template/boolean-field-template.component";
|
|
7
|
+
import * as i6 from "./components/private/field-templates/date-field-template/date-field-template.component";
|
|
8
|
+
import * as i7 from "./components/private/field-templates/textarea-field-template/textarea-field-template.component";
|
|
9
|
+
import * as i8 from "./components/private/field-templates/numeric-field-template/numeric-field-template.component";
|
|
10
|
+
import * as i9 from "./components/private/field-templates/list-value-field-template/list-value-field-template.component";
|
|
11
|
+
import * as i10 from "./components/private/field-templates/attachment-field-template/attachment-field-template.component";
|
|
12
|
+
import * as i11 from "./components/private/field-templates/image-field-template/image-field-template.component";
|
|
13
|
+
import * as i12 from "./components/private/form-records/list-form-record/list-form-record.component";
|
|
14
|
+
import * as i13 from "./components/private/form-records/add-form-record/add-form-record.component";
|
|
15
|
+
import * as i14 from "./components/private/dynamic-module-field/dynamic-module-field.component";
|
|
16
|
+
import * as i15 from "./components/private/dynamic-module-field-fix/dynamic-module-field.component";
|
|
17
|
+
import * as i16 from "./components/private/spinner/spinner.component";
|
|
18
|
+
import * as i17 from "./modules/material.module";
|
|
19
|
+
import * as i18 from "@angular/forms";
|
|
20
|
+
import * as i19 from "@angular/common";
|
|
21
|
+
import * as i20 from "@eqproject/eqp-table";
|
|
22
|
+
import * as i21 from "@eqproject/eqp-attachments";
|
|
23
|
+
import * as i22 from "@eqproject/eqp-select";
|
|
24
|
+
import * as i23 from "@eqproject/eqp-datetimepicker";
|
|
25
|
+
import * as i24 from "@eqproject/eqp-filters";
|
|
26
|
+
import * as i25 from "@eqproject/eqp-numeric";
|
|
27
|
+
import * as i26 from "@eqproject/eqp-img-drawing";
|
|
1
28
|
export declare class EqpDynamicModuleModule {
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleModule, never>;
|
|
30
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EqpDynamicModuleModule, [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent, typeof i3.AddFormFieldComponent, typeof i4.TextFieldTemplateComponent, typeof i5.BooleanFieldTemplateComponent, typeof i6.DateFieldTemplateComponent, typeof i7.TextareaFieldTemplateComponent, typeof i8.NumericFieldTemplateComponent, typeof i9.ListValueFieldTemplateComponent, typeof i10.AttachmentFieldTemplateComponent, typeof i11.ImageFieldTemplateComponent, typeof i12.ListFormRecordComponent, typeof i13.AddFormRecordComponent, typeof i14.DynamicModuleFieldComponent, typeof i15.DynamicModuleFieldFixComponent, typeof i16.SpinnerComponent], [typeof i17.MaterialModule, typeof i18.FormsModule, typeof i19.CommonModule, typeof i18.ReactiveFormsModule, typeof i20.EqpTableModule, typeof i21.EqpAttachmentsModule, typeof i22.EqpSelectModule, typeof i23.EqpDatetimepickerModule, typeof i24.EqpFiltersModule, typeof i25.EqpNumericModule, typeof i26.EqpImgDrawingModule], [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent]>;
|
|
31
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EqpDynamicModuleModule>;
|
|
2
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
2
2
|
import { BaseObj } from './baseObj.model';
|
|
3
3
|
/**
|
|
4
4
|
* Contiene le informazioni di base del campo, indipendentemente dal tipo.
|
|
@@ -26,7 +26,7 @@ export declare class BaseField extends BaseObj {
|
|
|
26
26
|
InListView: boolean;
|
|
27
27
|
FieldType: FieldTypeEnum;
|
|
28
28
|
FieldValue: any;
|
|
29
|
-
FormFormGroup:
|
|
29
|
+
FormFormGroup: UntypedFormGroup;
|
|
30
30
|
}
|
|
31
31
|
export declare enum FieldTypeEnum {
|
|
32
32
|
'Campo di testo' = 1,
|
|
@@ -1,2 +1,37 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/material/checkbox";
|
|
3
|
+
import * as i2 from "@angular/material/button";
|
|
4
|
+
import * as i3 from "@angular/material/input";
|
|
5
|
+
import * as i4 from "@angular/material/autocomplete";
|
|
6
|
+
import * as i5 from "@angular/material/datepicker";
|
|
7
|
+
import * as i6 from "@angular/material/form-field";
|
|
8
|
+
import * as i7 from "@angular/material/radio";
|
|
9
|
+
import * as i8 from "@angular/material/select";
|
|
10
|
+
import * as i9 from "@angular/material/slider";
|
|
11
|
+
import * as i10 from "@angular/material/slide-toggle";
|
|
12
|
+
import * as i11 from "@angular/material/menu";
|
|
13
|
+
import * as i12 from "@angular/material/sidenav";
|
|
14
|
+
import * as i13 from "@angular/material/toolbar";
|
|
15
|
+
import * as i14 from "@angular/material/list";
|
|
16
|
+
import * as i15 from "@angular/material/grid-list";
|
|
17
|
+
import * as i16 from "@angular/material/card";
|
|
18
|
+
import * as i17 from "@angular/material/stepper";
|
|
19
|
+
import * as i18 from "@angular/material/tabs";
|
|
20
|
+
import * as i19 from "@angular/material/expansion";
|
|
21
|
+
import * as i20 from "@angular/material/button-toggle";
|
|
22
|
+
import * as i21 from "@angular/material/chips";
|
|
23
|
+
import * as i22 from "@angular/material/icon";
|
|
24
|
+
import * as i23 from "@angular/material/progress-spinner";
|
|
25
|
+
import * as i24 from "@angular/material/progress-bar";
|
|
26
|
+
import * as i25 from "@angular/material/dialog";
|
|
27
|
+
import * as i26 from "@angular/material/tooltip";
|
|
28
|
+
import * as i27 from "@angular/material/snack-bar";
|
|
29
|
+
import * as i28 from "@angular/material/table";
|
|
30
|
+
import * as i29 from "@angular/material/sort";
|
|
31
|
+
import * as i30 from "@angular/material/paginator";
|
|
32
|
+
import * as i31 from "@angular/material/core";
|
|
1
33
|
export declare class MaterialModule {
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
|
|
35
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, [typeof i1.MatCheckboxModule, typeof i2.MatButtonModule, typeof i3.MatInputModule, typeof i4.MatAutocompleteModule, typeof i5.MatDatepickerModule, typeof i6.MatFormFieldModule, typeof i7.MatRadioModule, typeof i8.MatSelectModule, typeof i9.MatSliderModule, typeof i10.MatSlideToggleModule, typeof i11.MatMenuModule, typeof i12.MatSidenavModule, typeof i13.MatToolbarModule, typeof i14.MatListModule, typeof i15.MatGridListModule, typeof i16.MatCardModule, typeof i17.MatStepperModule, typeof i18.MatTabsModule, typeof i19.MatExpansionModule, typeof i20.MatButtonToggleModule, typeof i21.MatChipsModule, typeof i22.MatIconModule, typeof i23.MatProgressSpinnerModule, typeof i24.MatProgressBarModule, typeof i25.MatDialogModule, typeof i26.MatTooltipModule, typeof i27.MatSnackBarModule, typeof i28.MatTableModule, typeof i29.MatSortModule, typeof i30.MatPaginatorModule, typeof i5.MatDatepickerModule, typeof i31.MatNativeDateModule], [typeof i1.MatCheckboxModule, typeof i2.MatButtonModule, typeof i3.MatInputModule, typeof i4.MatAutocompleteModule, typeof i5.MatDatepickerModule, typeof i6.MatFormFieldModule, typeof i7.MatRadioModule, typeof i8.MatSelectModule, typeof i9.MatSliderModule, typeof i10.MatSlideToggleModule, typeof i11.MatMenuModule, typeof i12.MatSidenavModule, typeof i13.MatToolbarModule, typeof i14.MatListModule, typeof i15.MatGridListModule, typeof i16.MatCardModule, typeof i17.MatStepperModule, typeof i18.MatTabsModule, typeof i19.MatExpansionModule, typeof i20.MatButtonToggleModule, typeof i21.MatChipsModule, typeof i22.MatIconModule, typeof i23.MatProgressSpinnerModule, typeof i24.MatProgressBarModule, typeof i25.MatDialogModule, typeof i26.MatTooltipModule, typeof i27.MatSnackBarModule, typeof i28.MatTableModule, typeof i29.MatSortModule, typeof i30.MatPaginatorModule]>;
|
|
36
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
|
|
2
37
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
export declare class EqpDynamicModuleDialogService {
|
|
2
3
|
constructor();
|
|
3
4
|
/**
|
|
@@ -31,4 +32,6 @@ export declare class EqpDynamicModuleDialogService {
|
|
|
31
32
|
* @param title Titolo dello sweetalert (di default mostra 'Attenzione!')
|
|
32
33
|
*/
|
|
33
34
|
static Warning(message: string | string[], title?: string, isToast?: boolean): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleDialogService, never>;
|
|
36
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EqpDynamicModuleDialogService>;
|
|
34
37
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class SpinnerService {
|
|
3
4
|
isLoading: Subject<boolean>;
|
|
4
5
|
private requestsCount;
|
|
@@ -12,4 +13,6 @@ export declare class SpinnerService {
|
|
|
12
13
|
hide(): void;
|
|
13
14
|
addRequestCounter(): void;
|
|
14
15
|
removeRequestCounter(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpinnerService>;
|
|
15
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import {
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup } from "@angular/forms";
|
|
3
3
|
import { BaseField } from "../models/baseField.model";
|
|
4
4
|
import { Context } from "../models/context.model";
|
|
5
5
|
import { EndPointConfiguration, EndPointData, EndPointDataParams } from "../models/endPointConfiguration.model";
|
|
@@ -7,12 +7,13 @@ import { TextField } from "../models/fields/textField.model";
|
|
|
7
7
|
import { Form } from "../models/form.model";
|
|
8
8
|
import { Record } from "../models/record.model";
|
|
9
9
|
import { SpinnerService } from "./spinner.service";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class UtilityHelperService {
|
|
11
12
|
private formBuilder;
|
|
12
13
|
private http;
|
|
13
14
|
private spinnerService;
|
|
14
15
|
static context: Context;
|
|
15
|
-
constructor(formBuilder:
|
|
16
|
+
constructor(formBuilder: UntypedFormBuilder, http: HttpClient, spinnerService: SpinnerService);
|
|
16
17
|
static EvaluateFieldFormula(formula: string, rec: Record, ctx: any): any;
|
|
17
18
|
static SetContext(ctx: Context): void;
|
|
18
19
|
static GetFieldType(field: BaseField): TextField;
|
|
@@ -46,7 +47,7 @@ export declare class UtilityHelperService {
|
|
|
46
47
|
* @param includeCurrentFormInField Se TRUE popola la proprietà FormFormGroup all'interno di ogni BaseField con il FormGroup corrente.
|
|
47
48
|
* @returns Restituisce un FormGroup rappresentate la Form a cui appartengono i BaseField ricevuti in input.
|
|
48
49
|
*/
|
|
49
|
-
CreateFormFormGroup(formFields: Array<BaseField>, record: Record, onlyView?: boolean, includeCurrentFormInField?: boolean):
|
|
50
|
+
CreateFormFormGroup(formFields: Array<BaseField>, record: Record, onlyView?: boolean, includeCurrentFormInField?: boolean): UntypedFormGroup;
|
|
50
51
|
/**
|
|
51
52
|
* Funzione per creare e aggiungere al FormGroup rappresentante la form un nuovo FormControl a partire da un Field.
|
|
52
53
|
* In nuovo FormControl avrà il nome del campo passato e verranno impostati i Validators in base al tipo del campo stesso.
|
|
@@ -74,4 +75,6 @@ export declare class UtilityHelperService {
|
|
|
74
75
|
* NOTA: in input viene passato l'errore generato della chiamata stessa.
|
|
75
76
|
*/
|
|
76
77
|
RunEndPointCall(endPointData: EndPointData, dynamicModuleParams?: Array<EndPointDataParams>, callback?: (e: Form | Record | Array<Record>) => void, errorCallBack?: (err: unknown) => void): void;
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UtilityHelperService, never>;
|
|
79
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UtilityHelperService>;
|
|
77
80
|
}
|