@eqproject/eqp-dynamic-module 0.0.7 → 0.0.9
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/bundles/eqproject-eqp-dynamic-module.umd.js +3991 -0
- package/bundles/eqproject-eqp-dynamic-module.umd.js.map +1 -0
- package/bundles/eqproject-eqp-dynamic-module.umd.min.js +17 -0
- package/bundles/eqproject-eqp-dynamic-module.umd.min.js.map +1 -0
- package/eqproject-eqp-dynamic-module.d.ts +6 -0
- package/eqproject-eqp-dynamic-module.metadata.json +1 -0
- package/esm2015/eqproject-eqp-dynamic-module.js +7 -0
- package/esm2015/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.js +262 -0
- package/esm2015/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.js +649 -0
- package/esm2015/lib/components/private/add-form-field/add-form-field.component.js +577 -0
- package/esm2015/lib/components/private/dynamic-module-field/dynamic-module-field.component.js +127 -0
- package/esm2015/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.js +170 -0
- package/esm2015/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.js +56 -0
- package/esm2015/lib/components/private/field-templates/date-field-template/date-field-template.component.js +71 -0
- package/esm2015/lib/components/private/field-templates/image-field-template/image-field-template.component.js +196 -0
- package/esm2015/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.js +115 -0
- package/esm2015/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.js +71 -0
- package/esm2015/lib/components/private/field-templates/text-field-template/text-field-template.component.js +67 -0
- package/esm2015/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.js +51 -0
- package/esm2015/lib/components/private/form-records/add-form-record/add-form-record.component.js +130 -0
- package/esm2015/lib/components/private/form-records/list-form-record/list-form-record.component.js +216 -0
- package/esm2015/lib/components/private/spinner/spinner.component.js +23 -0
- package/esm2015/lib/eqp-dynamic-module.module.js +69 -0
- package/esm2015/lib/interfaces/iBaseFieldComponent.interface.js +1 -0
- package/esm2015/lib/interfaces/iRootObject.interface.js +1 -0
- package/esm2015/lib/models/baseField.model.js +36 -0
- package/esm2015/lib/models/baseObj.model.js +9 -0
- package/esm2015/lib/models/context.model.js +8 -0
- package/esm2015/lib/models/endPointConfiguration.model.js +23 -0
- package/esm2015/lib/models/entity.model.js +7 -0
- package/esm2015/lib/models/fields/attachmentField.model.js +22 -0
- package/esm2015/lib/models/fields/booleanField.model.js +12 -0
- package/esm2015/lib/models/fields/dateField.model.js +11 -0
- package/esm2015/lib/models/fields/imageField.model.js +8 -0
- package/esm2015/lib/models/fields/listValueField.model.js +14 -0
- package/esm2015/lib/models/fields/lookupField.model.js +5 -0
- package/esm2015/lib/models/fields/numericField.model.js +5 -0
- package/esm2015/lib/models/fields/testareaField.model.js +4 -0
- package/esm2015/lib/models/fields/textField.model.js +14 -0
- package/esm2015/lib/models/form.model.js +24 -0
- package/esm2015/lib/models/record.model.js +8 -0
- package/esm2015/lib/modules/material.module.js +108 -0
- package/esm2015/lib/services/custom-form-validators.service.js +19 -0
- package/esm2015/lib/services/eqp-dynamic-module-dialog.service.js +113 -0
- package/esm2015/lib/services/spinner.service.js +43 -0
- package/esm2015/lib/services/utilityHelper.services.js +387 -0
- package/esm2015/public-api.js +39 -0
- package/esm5/eqproject-eqp-dynamic-module.js +7 -0
- package/esm5/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.js +269 -0
- package/esm5/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.js +664 -0
- package/esm5/lib/components/private/add-form-field/add-form-field.component.js +588 -0
- package/esm5/lib/components/private/dynamic-module-field/dynamic-module-field.component.js +128 -0
- package/esm5/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.js +173 -0
- package/esm5/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.js +57 -0
- package/esm5/lib/components/private/field-templates/date-field-template/date-field-template.component.js +72 -0
- package/esm5/lib/components/private/field-templates/image-field-template/image-field-template.component.js +206 -0
- package/esm5/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.js +119 -0
- package/esm5/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.js +72 -0
- package/esm5/lib/components/private/field-templates/text-field-template/text-field-template.component.js +68 -0
- package/esm5/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.js +52 -0
- package/esm5/lib/components/private/form-records/add-form-record/add-form-record.component.js +133 -0
- package/esm5/lib/components/private/form-records/list-form-record/list-form-record.component.js +220 -0
- package/esm5/lib/components/private/spinner/spinner.component.js +24 -0
- package/esm5/lib/eqp-dynamic-module.module.js +72 -0
- package/esm5/lib/interfaces/iBaseFieldComponent.interface.js +1 -0
- package/esm5/lib/interfaces/iRootObject.interface.js +1 -0
- package/esm5/lib/models/baseField.model.js +43 -0
- package/esm5/lib/models/baseObj.model.js +13 -0
- package/esm5/lib/models/context.model.js +14 -0
- package/esm5/lib/models/endPointConfiguration.model.js +33 -0
- package/esm5/lib/models/entity.model.js +14 -0
- package/esm5/lib/models/fields/attachmentField.model.js +29 -0
- package/esm5/lib/models/fields/booleanField.model.js +19 -0
- package/esm5/lib/models/fields/dateField.model.js +18 -0
- package/esm5/lib/models/fields/imageField.model.js +19 -0
- package/esm5/lib/models/fields/listValueField.model.js +25 -0
- package/esm5/lib/models/fields/lookupField.model.js +12 -0
- package/esm5/lib/models/fields/numericField.model.js +12 -0
- package/esm5/lib/models/fields/testareaField.model.js +11 -0
- package/esm5/lib/models/fields/textField.model.js +21 -0
- package/esm5/lib/models/form.model.js +39 -0
- package/esm5/lib/models/record.model.js +14 -0
- package/esm5/lib/modules/material.module.js +111 -0
- package/esm5/lib/services/custom-form-validators.service.js +23 -0
- package/esm5/lib/services/eqp-dynamic-module-dialog.service.js +123 -0
- package/esm5/lib/services/spinner.service.js +46 -0
- package/esm5/lib/services/utilityHelper.services.js +396 -0
- package/esm5/public-api.js +39 -0
- package/fesm2015/eqproject-eqp-dynamic-module.js +3580 -0
- package/fesm2015/eqproject-eqp-dynamic-module.js.map +1 -0
- package/fesm5/eqproject-eqp-dynamic-module.js +3766 -0
- package/fesm5/eqproject-eqp-dynamic-module.js.map +1 -0
- package/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.d.ts +101 -0
- package/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.d.ts +235 -0
- package/lib/components/private/add-form-field/add-form-field.component.d.ts +199 -0
- package/lib/components/private/dynamic-module-field/dynamic-module-field.component.d.ts +55 -0
- package/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.d.ts +68 -0
- package/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.d.ts +21 -0
- package/lib/components/private/field-templates/date-field-template/date-field-template.component.d.ts +27 -0
- package/lib/components/private/field-templates/image-field-template/image-field-template.component.d.ts +65 -0
- package/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.d.ts +51 -0
- package/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.d.ts +26 -0
- package/lib/components/private/field-templates/text-field-template/text-field-template.component.d.ts +22 -0
- package/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.d.ts +20 -0
- package/lib/components/private/form-records/add-form-record/add-form-record.component.d.ts +52 -0
- package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts +64 -0
- package/lib/components/private/spinner/spinner.component.d.ts +9 -0
- package/lib/eqp-dynamic-module.module.d.ts +2 -0
- package/{src/lib/interfaces/iBaseFieldComponent.interface.ts → lib/interfaces/iBaseFieldComponent.interface.d.ts} +1 -1
- package/{src/lib/interfaces/iRootObject.interface.ts → lib/interfaces/iRootObject.interface.d.ts} +1 -1
- package/{src/lib/models/baseField.model.ts → lib/models/baseField.model.d.ts} +5 -14
- package/{src/lib/models/baseObj.model.ts → lib/models/baseObj.model.d.ts} +3 -3
- package/lib/models/context.model.d.ts +9 -0
- package/{src/lib/models/endPointConfiguration.model.ts → lib/models/endPointConfiguration.model.d.ts} +12 -16
- package/{src/lib/models/entity.model.ts → lib/models/entity.model.d.ts} +1 -2
- package/lib/models/fields/attachmentField.model.d.ts +17 -0
- package/{src/lib/models/fields/booleanField.model.ts → lib/models/fields/booleanField.model.d.ts} +4 -8
- package/{src/lib/models/fields/dateField.model.ts → lib/models/fields/dateField.model.d.ts} +3 -5
- package/{src/lib/models/fields/imageField.model.ts → lib/models/fields/imageField.model.d.ts} +3 -8
- package/{src/lib/models/fields/listValueField.model.ts → lib/models/fields/listValueField.model.d.ts} +8 -13
- package/{src/lib/models/fields/lookupField.model.ts → lib/models/fields/lookupField.model.d.ts} +2 -5
- package/{src/lib/models/fields/numericField.model.ts → lib/models/fields/numericField.model.d.ts} +2 -3
- package/{src/lib/models/fields/testareaField.model.ts → lib/models/fields/testareaField.model.d.ts} +2 -3
- package/lib/models/fields/textField.model.d.ts +15 -0
- package/{src/lib/models/form.model.ts → lib/models/form.model.d.ts} +12 -25
- package/{src/lib/models/record.model.ts → lib/models/record.model.d.ts} +5 -4
- package/lib/modules/material.module.d.ts +2 -0
- package/lib/services/custom-form-validators.service.d.ts +5 -0
- package/lib/services/eqp-dynamic-module-dialog.service.d.ts +34 -0
- package/lib/services/spinner.service.d.ts +15 -0
- package/lib/services/utilityHelper.services.d.ts +77 -0
- package/package.json +41 -31
- package/{src/public-api.ts → public-api.d.ts} +0 -3
- package/karma.conf.js +0 -32
- package/ng-package.json +0 -18
- package/src/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.html +0 -10
- package/src/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.scss +0 -3
- package/src/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.ts +0 -228
- package/src/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.html +0 -212
- package/src/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.scss +0 -30
- package/src/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.ts +0 -692
- package/src/lib/components/private/add-form-field/add-form-field.component.html +0 -417
- package/src/lib/components/private/add-form-field/add-form-field.component.scss +0 -38
- package/src/lib/components/private/add-form-field/add-form-field.component.ts +0 -599
- package/src/lib/components/private/dynamic-module-field/dynamic-module-field.component.html +0 -42
- package/src/lib/components/private/dynamic-module-field/dynamic-module-field.component.scss +0 -0
- package/src/lib/components/private/dynamic-module-field/dynamic-module-field.component.ts +0 -125
- package/src/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.html +0 -25
- package/src/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.scss +0 -0
- package/src/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.ts +0 -172
- package/src/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.html +0 -32
- package/src/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.scss +0 -0
- package/src/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.ts +0 -53
- package/src/lib/components/private/field-templates/date-field-template/date-field-template.component.html +0 -6
- package/src/lib/components/private/field-templates/date-field-template/date-field-template.component.scss +0 -0
- package/src/lib/components/private/field-templates/date-field-template/date-field-template.component.ts +0 -70
- package/src/lib/components/private/field-templates/image-field-template/image-field-template.component.html +0 -57
- package/src/lib/components/private/field-templates/image-field-template/image-field-template.component.scss +0 -4
- package/src/lib/components/private/field-templates/image-field-template/image-field-template.component.ts +0 -203
- package/src/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.html +0 -46
- package/src/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.scss +0 -13
- package/src/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.ts +0 -114
- package/src/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.html +0 -6
- package/src/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.scss +0 -0
- package/src/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.ts +0 -70
- package/src/lib/components/private/field-templates/text-field-template/text-field-template.component.html +0 -5
- package/src/lib/components/private/field-templates/text-field-template/text-field-template.component.scss +0 -0
- package/src/lib/components/private/field-templates/text-field-template/text-field-template.component.ts +0 -65
- package/src/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.html +0 -5
- package/src/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.scss +0 -0
- package/src/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.ts +0 -48
- package/src/lib/components/private/form-records/add-form-record/add-form-record.component.html +0 -74
- package/src/lib/components/private/form-records/add-form-record/add-form-record.component.scss +0 -0
- package/src/lib/components/private/form-records/add-form-record/add-form-record.component.ts +0 -117
- package/src/lib/components/private/form-records/list-form-record/list-form-record.component.html +0 -14
- package/src/lib/components/private/form-records/list-form-record/list-form-record.component.scss +0 -7
- package/src/lib/components/private/form-records/list-form-record/list-form-record.component.ts +0 -213
- package/src/lib/components/private/spinner/spinner.component.html +0 -3
- package/src/lib/components/private/spinner/spinner.component.scss +0 -100
- package/src/lib/components/private/spinner/spinner.component.ts +0 -19
- package/src/lib/eqp-dynamic-module.module.ts +0 -65
- package/src/lib/models/context.model.ts +0 -10
- package/src/lib/models/fields/attachmentField.model.ts +0 -32
- package/src/lib/models/fields/textField.model.ts +0 -18
- package/src/lib/modules/material.module.ts +0 -104
- package/src/lib/services/custom-form-validators.service.ts +0 -21
- package/src/lib/services/eqp-dynamic-module-dialog.service.ts +0 -114
- package/src/lib/services/spinner.service.ts +0 -40
- package/src/lib/services/utilityHelper.services.ts +0 -413
- package/src/test.ts +0 -26
- package/tsconfig.lib.json +0 -23
- package/tsconfig.lib.prod.json +0 -6
- package/tsconfig.spec.json +0 -17
- package/tslint.json +0 -17
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Record } from '../../../../models/record.model';
|
|
3
|
+
import { BooleanField, BoolPresentantioEnum } from '../../../../models/fields/booleanField.model';
|
|
4
|
+
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
5
|
+
export declare class BooleanFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
6
|
+
field: BooleanField;
|
|
7
|
+
record: Record;
|
|
8
|
+
recordChange: EventEmitter<Record>;
|
|
9
|
+
BoolPresentantioEnum: typeof BoolPresentantioEnum;
|
|
10
|
+
constructor();
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
13
|
+
/**
|
|
14
|
+
* Metodo per aggiornare il valore del campo quando questo è rappresentato da una formula.
|
|
15
|
+
*/
|
|
16
|
+
updateField(): void;
|
|
17
|
+
/**
|
|
18
|
+
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
19
|
+
*/
|
|
20
|
+
onRecordValueChange(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { PickerModeEnum } from '@eqproject/eqp-datetimepicker';
|
|
3
|
+
import { Record } from '../../../../models/record.model';
|
|
4
|
+
import { DateField } from '../../../../models/fields/dateField.model';
|
|
5
|
+
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
6
|
+
export declare class DateFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
7
|
+
field: DateField;
|
|
8
|
+
record: Record;
|
|
9
|
+
recordChange: EventEmitter<Record>;
|
|
10
|
+
pickerMode: PickerModeEnum;
|
|
11
|
+
constructor();
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
+
/**
|
|
15
|
+
* Metodo per aggiornare il valore del campo quando questo è rappresentato da una formula.
|
|
16
|
+
*/
|
|
17
|
+
updateField(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
20
|
+
*/
|
|
21
|
+
onRecordValueChange(): void;
|
|
22
|
+
/**
|
|
23
|
+
* In base al formato della data richiesta nel DateField (solo data, solo orario o data e ora)
|
|
24
|
+
* imposta la visualizzazione corretta del componente eqp-datetimepicker.
|
|
25
|
+
*/
|
|
26
|
+
private setTimeType;
|
|
27
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ImageField } from '../../../../models/fields/imageField.model';
|
|
3
|
+
import { Record } from '../../../../models/record.model';
|
|
4
|
+
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
5
|
+
import { UtilityHelperService } from '../../../../services/utilityHelper.services';
|
|
6
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
7
|
+
import { FormGroup } from '@angular/forms';
|
|
8
|
+
import { I18nInterface } from '@eqproject/eqp-img-drawing';
|
|
9
|
+
export declare class ImageFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
10
|
+
private dialog;
|
|
11
|
+
utilityService: UtilityHelperService;
|
|
12
|
+
record: Record;
|
|
13
|
+
field: ImageField;
|
|
14
|
+
recordChange: EventEmitter<Record>;
|
|
15
|
+
preLoadedImageMetadataFormGroup: FormGroup;
|
|
16
|
+
width: any;
|
|
17
|
+
height: any;
|
|
18
|
+
i18n: I18nInterface;
|
|
19
|
+
dialogImageDrowingRef: MatDialogRef<TemplateRef<any>>;
|
|
20
|
+
dialogImageDrowing: TemplateRef<any>;
|
|
21
|
+
constructor(dialog: MatDialog, utilityService: UtilityHelperService);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
updateMetadataValidity(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Metodo per aggiornare il valore del campo quando questo è rappresentato da una formula.
|
|
27
|
+
*/
|
|
28
|
+
updateField(): void;
|
|
29
|
+
resetPreLoadedImage(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Metodo invocato quando vengono aggiunti o eliminati gli allegati nel componente AttachmentFieldTemplate.
|
|
32
|
+
* Se l'ImageField è abilitato al disegno (EnableDrawing == true), non permette allegati multipli (IsMulitAttach == false)
|
|
33
|
+
* e nel Record corrente è presente l'immagine caricata dall'utente allora recupera le dimensioni dell'immagine e
|
|
34
|
+
* apre il dialog con il componente image-drawing per permettere il disegno sull'immagine appena caricata.
|
|
35
|
+
*/
|
|
36
|
+
onAttachmentsChange(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Metodo invocato al salvataggio dell'immagine dal componente image-drawing.
|
|
39
|
+
* Trasforma il Blob ricevuto in un base64, aggiorna il FileContetType e il FileDataBase64
|
|
40
|
+
* dell'allegato caricato e chiude il dialog in cui disegnare.
|
|
41
|
+
* @param drawnPicture Blob dell'immagine disegnata.
|
|
42
|
+
*/
|
|
43
|
+
saveDrowning(drawnPicture: Blob): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Metodo per chiudere il dialog in cui disegnare sull'immagine cariata e svuotare le dimensioni.
|
|
46
|
+
*/
|
|
47
|
+
closeImageDrowingDialog(): void;
|
|
48
|
+
/**
|
|
49
|
+
* Metodo per recuperare le dimensioni dell'immagine caricata per mostrare correttamente
|
|
50
|
+
* il componente image-drawing. Se non viene eseguito questo passaggio l'area in cui disegnare
|
|
51
|
+
* è più grande dell'immagine stessa e al salvataggio i tratti disegnati vengono spostati.
|
|
52
|
+
*/
|
|
53
|
+
private getImageDimensions;
|
|
54
|
+
/**
|
|
55
|
+
* Metodo per convertire il base64 di un'immagine in un Blob.
|
|
56
|
+
* Necessario per il recupero delle dimensioni dell'immagine caricata a partire dal suo base64.
|
|
57
|
+
* Viene eseguito solo nel caso in cui l'ImageField non ammette allegati multipli.
|
|
58
|
+
* @returns Restituisce il Blob dell'immagine caricata.
|
|
59
|
+
*/
|
|
60
|
+
private getBlobFromBase64;
|
|
61
|
+
/**
|
|
62
|
+
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
63
|
+
*/
|
|
64
|
+
private onRecordValueChange;
|
|
65
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Record } from '../../../../models/record.model';
|
|
3
|
+
import { ListPresentationEnum, ListValueField } from '../../../../models/fields/listValueField.model';
|
|
4
|
+
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
5
|
+
export declare class ListValueFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
6
|
+
field: ListValueField;
|
|
7
|
+
record: Record;
|
|
8
|
+
recordChange: EventEmitter<Record>;
|
|
9
|
+
ListPresentationEnum: typeof ListPresentationEnum;
|
|
10
|
+
arrayData: {
|
|
11
|
+
Key: string;
|
|
12
|
+
Value: any;
|
|
13
|
+
Selected?: boolean;
|
|
14
|
+
ImgUrl?: string;
|
|
15
|
+
}[];
|
|
16
|
+
constructor();
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
19
|
+
/**
|
|
20
|
+
* Metodo per aggiornare il valore del campo quando questo è rappresentato da una formula.
|
|
21
|
+
*/
|
|
22
|
+
updateField(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Metodo invocato quando viene selezionata un'opzione nella visualizzazione a button
|
|
25
|
+
* @param data Rappresenta l'oggetto selezionato
|
|
26
|
+
*/
|
|
27
|
+
buttonSelectClick(data: {
|
|
28
|
+
Key: string;
|
|
29
|
+
Value: any;
|
|
30
|
+
Selected?: boolean;
|
|
31
|
+
ImgUrl?: string;
|
|
32
|
+
}): void;
|
|
33
|
+
/**
|
|
34
|
+
* Metodo per aggiornare il/i valore/i selezionato/i dall'utente.
|
|
35
|
+
* @param emitChange Se true scatena l'evento di output della modifica del valore di record
|
|
36
|
+
*/
|
|
37
|
+
updateSelected(emitChange?: boolean): void;
|
|
38
|
+
/**
|
|
39
|
+
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
40
|
+
*/
|
|
41
|
+
onRecordValueChange(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Metodo per creare un array di oggetti del tipo { Key: string, Value: any } da usare come sorgente dati per la eqp-select.
|
|
44
|
+
*/
|
|
45
|
+
private setArrayData;
|
|
46
|
+
private createArrayDataElement;
|
|
47
|
+
/**
|
|
48
|
+
* Metodo per aggiornare il valore e il validator del FormControl associato al campo.
|
|
49
|
+
*/
|
|
50
|
+
private setFormControlValue;
|
|
51
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { NumericMaskConfig } from '@eqproject/eqp-numeric';
|
|
3
|
+
import { Record } from '../../../../models/record.model';
|
|
4
|
+
import { NumericField } from '../../../../models/fields/numericField.model';
|
|
5
|
+
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
6
|
+
export declare class NumericFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
7
|
+
field: NumericField;
|
|
8
|
+
record: Record;
|
|
9
|
+
recordChange: EventEmitter<Record>;
|
|
10
|
+
eqpNumericOptions: Partial<NumericMaskConfig>;
|
|
11
|
+
constructor();
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
+
/**
|
|
15
|
+
* Metodo per aggiornare il valore del campo quando questo è rappresentato da una formula.
|
|
16
|
+
*/
|
|
17
|
+
updateField(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
20
|
+
*/
|
|
21
|
+
onRecordValueChange(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Metodo per configurare eqp-numeric
|
|
24
|
+
*/
|
|
25
|
+
private configureEqpNumericOptions;
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Record } from '../../../../models/record.model';
|
|
3
|
+
import { TextMaskEnum, TextField } from '../../../../models/fields/textField.model';
|
|
4
|
+
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
5
|
+
export declare class TextFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
6
|
+
field: TextField;
|
|
7
|
+
record: Record;
|
|
8
|
+
recordChange: EventEmitter<Record>;
|
|
9
|
+
InputMaskEnum: typeof TextMaskEnum;
|
|
10
|
+
constructor();
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
13
|
+
getInputType(): "password" | "text" | "email" | "tel" | "url";
|
|
14
|
+
/**
|
|
15
|
+
* Metodo per aggiornare il valore del campo quando questo è rappresentato da una formula.
|
|
16
|
+
*/
|
|
17
|
+
updateField(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
20
|
+
*/
|
|
21
|
+
onRecordValueChange(): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
3
|
+
import { Record } from '../../../../models/record.model';
|
|
4
|
+
import { TextareaField } from '../../../../models/fields/testareaField.model';
|
|
5
|
+
export declare class TextareaFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
6
|
+
field: TextareaField;
|
|
7
|
+
record: Record;
|
|
8
|
+
recordChange: EventEmitter<Record>;
|
|
9
|
+
constructor();
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
/**
|
|
13
|
+
* Metodo per aggiornare il valore del campo quando questo è rappresentato da una formula.
|
|
14
|
+
*/
|
|
15
|
+
updateField(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
18
|
+
*/
|
|
19
|
+
onRecordValueChange(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { BaseField, FieldTypeEnum } from '../../../../models/baseField.model';
|
|
4
|
+
import { Form, FormScalarTypeEnum } from '../../../../models/form.model';
|
|
5
|
+
import { Record } from '../../../../models/record.model';
|
|
6
|
+
import { UtilityHelperService } from '../../../../services/utilityHelper.services';
|
|
7
|
+
import { DynamicModuleFieldComponent } from '../../dynamic-module-field/dynamic-module-field.component';
|
|
8
|
+
export declare class AddFormRecordComponent implements OnInit {
|
|
9
|
+
private cdr;
|
|
10
|
+
utilityService: UtilityHelperService;
|
|
11
|
+
showTitle: boolean;
|
|
12
|
+
showButtons: boolean;
|
|
13
|
+
form: Form;
|
|
14
|
+
record: Record;
|
|
15
|
+
onlyView: boolean;
|
|
16
|
+
formForm: FormGroup;
|
|
17
|
+
fieldGroups: {
|
|
18
|
+
[key: string]: Array<BaseField>;
|
|
19
|
+
};
|
|
20
|
+
FormScalarTypeEnum: typeof FormScalarTypeEnum;
|
|
21
|
+
FieldTypeEnum: typeof FieldTypeEnum;
|
|
22
|
+
saveRecordEvent: EventEmitter<Record>;
|
|
23
|
+
fieldTemplate: QueryList<DynamicModuleFieldComponent>;
|
|
24
|
+
constructor(cdr: ChangeDetectorRef, utilityService: UtilityHelperService);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
|
|
28
|
+
* Serve ad aggiornare il valore di tutti i campi che hanno una formula.
|
|
29
|
+
*/
|
|
30
|
+
onRecordChange(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Metodo per salvare i dati inseriti dall'utente una volta conclusa la compilazione della form.
|
|
33
|
+
*/
|
|
34
|
+
saveOrExitForm(exit: boolean): void;
|
|
35
|
+
/**
|
|
36
|
+
* Metodo per creare nell'oggetto Record le proprietà mancanti rispetto ai campi che compongono la form.
|
|
37
|
+
*/
|
|
38
|
+
private createRecordProperties;
|
|
39
|
+
/**
|
|
40
|
+
* Metodo per riordinare i campi che compongono la form.
|
|
41
|
+
*/
|
|
42
|
+
private reorderFormFields;
|
|
43
|
+
/**
|
|
44
|
+
* Metodo per creare il FormGroup che rappresenta la form.
|
|
45
|
+
*/
|
|
46
|
+
private createFormGroup;
|
|
47
|
+
/**
|
|
48
|
+
* Metodo per creare i gruppi in cui raggruppare i campi della form in base
|
|
49
|
+
* a come è stata configurata dall'utente.
|
|
50
|
+
*/
|
|
51
|
+
private createFieldGroups;
|
|
52
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { OnInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ConfigColumn, EqpTableComponent } from '@eqproject/eqp-table';
|
|
3
|
+
import { Form } from '../../../../models/form.model';
|
|
4
|
+
import { Record } from '../../../../models/record.model';
|
|
5
|
+
export declare class ListFormRecordComponent implements OnInit, OnChanges {
|
|
6
|
+
showTitle: boolean;
|
|
7
|
+
form: Form;
|
|
8
|
+
values: Array<Record>;
|
|
9
|
+
tableRecords: EqpTableComponent;
|
|
10
|
+
columns: ConfigColumn[];
|
|
11
|
+
onAddViewEditRecord: EventEmitter<{
|
|
12
|
+
record: Record;
|
|
13
|
+
onlyView: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
onDeleteRecord: EventEmitter<Record>;
|
|
16
|
+
onDuplicateRecord: EventEmitter<Record>;
|
|
17
|
+
constructor();
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
20
|
+
/**
|
|
21
|
+
* Metodo per configurare le colonne della eqp-table.
|
|
22
|
+
*/
|
|
23
|
+
private configureColumns;
|
|
24
|
+
/**
|
|
25
|
+
* Metodo per aggiungere nella colonna "action" della eqp-table le azioni sui record
|
|
26
|
+
* definite dall'utente all'interno della Form.
|
|
27
|
+
*/
|
|
28
|
+
private createAdditionalActions;
|
|
29
|
+
/**
|
|
30
|
+
* Metodo che scatena l'evento di Output per mostrare o modificare il record
|
|
31
|
+
* selezionato sulla eqp-table.
|
|
32
|
+
* @param record Record da visualizzare o modificare selezionato sulla eqp-table.
|
|
33
|
+
* @param onlyView Se TRUE viene mostrato il componente add-form-record in sola lettura.
|
|
34
|
+
*/
|
|
35
|
+
private viewOrEditRecord;
|
|
36
|
+
/**
|
|
37
|
+
* Metodo per duplicare un record della form.
|
|
38
|
+
* @param record Record da duplicare.
|
|
39
|
+
*/
|
|
40
|
+
private duplicateRecord;
|
|
41
|
+
/**
|
|
42
|
+
* Metodo per eliminare un record dalla lista.
|
|
43
|
+
* @param record Record da eliminare selezionato sulla eqp-table.
|
|
44
|
+
*/
|
|
45
|
+
private deleteRecord;
|
|
46
|
+
/**
|
|
47
|
+
* Metodo per creare la configurazione delle colonne per la eqp-table.
|
|
48
|
+
* Individua i BaseField da mostrare e li usa per creare le ConfigColumn.
|
|
49
|
+
* Le colonne vengono create per i BaseField con il flag InListView a TRUE
|
|
50
|
+
* oppure, nel caso non siano stati specificati i campi da visualizzare,
|
|
51
|
+
* seleziona i primi 6.
|
|
52
|
+
*/
|
|
53
|
+
private createColumnsFromFormFields;
|
|
54
|
+
/**
|
|
55
|
+
* Metodo per creare l'oggetto ConfigureColumn che rappresenta il BaseField passato in input.
|
|
56
|
+
* @param field BaseField per cui creare la colonna nella eqp-table
|
|
57
|
+
* @returns Restituisce una ConfigColumn per la eqp-table
|
|
58
|
+
*/
|
|
59
|
+
private createFieldColumn;
|
|
60
|
+
/**
|
|
61
|
+
* Metodo per ricaricare i dati della eqp-table.
|
|
62
|
+
*/
|
|
63
|
+
private reloadTables;
|
|
64
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { SpinnerService } from '../../../services/spinner.service';
|
|
4
|
+
export declare class SpinnerComponent implements OnInit {
|
|
5
|
+
private spinnerService;
|
|
6
|
+
isLoading: Subject<boolean>;
|
|
7
|
+
constructor(spinnerService: SpinnerService);
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { FormGroup } from '@angular/forms';
|
|
2
2
|
import { BaseObj } from './baseObj.model';
|
|
3
|
-
|
|
4
3
|
/**
|
|
5
4
|
* Contiene le informazioni di base del campo, indipendentemente dal tipo.
|
|
6
5
|
* Questa classe è volutamente astratta perché il tipo di campo è dettato dal tipo
|
|
7
6
|
*/
|
|
8
|
-
export class BaseField extends BaseObj {
|
|
7
|
+
export declare class BaseField extends BaseObj {
|
|
9
8
|
/**
|
|
10
9
|
* Nome del campo che per progettazione è una sostituzione della label
|
|
11
10
|
* Il vero identificativo del campo è l'ID
|
|
@@ -16,25 +15,20 @@ export class BaseField extends BaseObj {
|
|
|
16
15
|
Required: boolean;
|
|
17
16
|
Formula: string;
|
|
18
17
|
OrdinalPosition: number;
|
|
19
|
-
|
|
20
18
|
/**
|
|
21
19
|
* Entità a cui appartiene il campo. Si tenga presente che sono ammessi anche campi
|
|
22
|
-
* di sola visualizzazione e calcolati, da utilizzare nelle form,
|
|
20
|
+
* di sola visualizzazione e calcolati, da utilizzare nelle form,
|
|
23
21
|
* e per questo motivo possono essere con Entity == null
|
|
24
22
|
*/
|
|
25
23
|
EntityID: string;
|
|
26
|
-
|
|
27
24
|
FieldGroup: string;
|
|
28
25
|
ColSpanSizes: Array<ColSpanSizesEnum>;
|
|
29
26
|
InListView: boolean;
|
|
30
|
-
|
|
31
|
-
// Proprità client
|
|
32
27
|
FieldType: FieldTypeEnum;
|
|
33
28
|
FieldValue: any;
|
|
34
29
|
FormFormGroup: FormGroup;
|
|
35
30
|
}
|
|
36
|
-
|
|
37
|
-
export enum FieldTypeEnum {
|
|
31
|
+
export declare enum FieldTypeEnum {
|
|
38
32
|
'Campo di testo' = 1,
|
|
39
33
|
'Area di testo' = 2,
|
|
40
34
|
'Booleano' = 3,
|
|
@@ -46,20 +40,17 @@ export enum FieldTypeEnum {
|
|
|
46
40
|
'Lookup' = 9,
|
|
47
41
|
'Form di dettaglio' = 10
|
|
48
42
|
}
|
|
49
|
-
|
|
50
|
-
export enum ColSpanSizesEnum {
|
|
43
|
+
export declare enum ColSpanSizesEnum {
|
|
51
44
|
'col-sm-3' = 1,
|
|
52
45
|
'col-sm-4' = 2,
|
|
53
46
|
'col-sm-6' = 3,
|
|
54
47
|
'col-sm-12' = 4,
|
|
55
|
-
|
|
56
48
|
'col-md-3' = 5,
|
|
57
49
|
'col-md-4' = 6,
|
|
58
50
|
'col-md-6' = 7,
|
|
59
51
|
'col-md-12' = 8,
|
|
60
|
-
|
|
61
52
|
'col-lg-3' = 9,
|
|
62
53
|
'col-lg-4' = 10,
|
|
63
54
|
'col-lg-6' = 11,
|
|
64
|
-
'col-lg-12' = 12
|
|
55
|
+
'col-lg-12' = 12
|
|
65
56
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Classe base che implementa la valorizzazione dell'ID (se null) con una nuova GUID
|
|
2
|
+
* Classe base che implementa la valorizzazione dell'ID (se null) con una nuova GUID
|
|
3
3
|
* in creazione dell'oggetto.
|
|
4
4
|
* Per scelta architetturale, visto che non possiamo assumere la persistenza su DB relazionale o su NOSQL, ogni
|
|
5
5
|
* oggetto della configurazione viene persistito, e gestito con ID di tipo stringa creato da una GUID.
|
|
6
6
|
*/
|
|
7
|
-
export class BaseObj {
|
|
7
|
+
export declare class BaseObj {
|
|
8
8
|
ID: string;
|
|
9
|
-
}
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class EndPointConfiguration {
|
|
1
|
+
export declare class EndPointConfiguration {
|
|
2
2
|
Records: {
|
|
3
3
|
GetByFormIDEndPoint?: EndPointData;
|
|
4
4
|
GetByIDEndPoint?: EndPointData;
|
|
@@ -9,31 +9,27 @@ export class EndPointConfiguration {
|
|
|
9
9
|
Forms: {
|
|
10
10
|
GetByIDEndPoint: EndPointData;
|
|
11
11
|
SaveEndPoint: EndPointData;
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
export class EndPointData {
|
|
14
|
+
export declare class EndPointData {
|
|
16
15
|
Url: string;
|
|
17
16
|
Token?: string;
|
|
18
17
|
RequestMethod: RequestMethodEnum;
|
|
19
18
|
Params?: EndPointDataParams[];
|
|
20
19
|
}
|
|
21
|
-
|
|
22
|
-
export class EndPointDataParams {
|
|
20
|
+
export declare class EndPointDataParams {
|
|
23
21
|
ParamName: string;
|
|
24
|
-
ParamValue: any
|
|
22
|
+
ParamValue: any;
|
|
25
23
|
ParamType: ParamTypeEnum;
|
|
26
24
|
}
|
|
27
|
-
|
|
28
|
-
export enum ParamTypeEnum {
|
|
25
|
+
export declare enum ParamTypeEnum {
|
|
29
26
|
"Query param" = 1,
|
|
30
27
|
"In route" = 2,
|
|
31
28
|
"In Body" = 3
|
|
32
29
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
30
|
+
export declare enum RequestMethodEnum {
|
|
31
|
+
GET = "GET",
|
|
32
|
+
POST = "POST",
|
|
33
|
+
PUT = "PUT",
|
|
34
|
+
DELETE = "DELETE"
|
|
35
|
+
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { IRootObject } from "../interfaces/iRootObject.interface";
|
|
2
2
|
import { BaseField } from "./baseField.model";
|
|
3
3
|
import { BaseObj } from "./baseObj.model";
|
|
4
|
-
|
|
5
4
|
/**
|
|
6
5
|
* Rappresenta l'entità su cui vengono eseguite le operazioni di salvataggio.
|
|
7
6
|
*/
|
|
8
|
-
export class Entity extends BaseObj implements IRootObject {
|
|
7
|
+
export declare class Entity extends BaseObj implements IRootObject {
|
|
9
8
|
Name: string;
|
|
10
9
|
Fields: Array<BaseField>;
|
|
11
10
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseField } from "../baseField.model";
|
|
2
|
+
export declare class AttachmentField extends BaseField {
|
|
3
|
+
/**Elenco delle estensioni consentite. Se vuoto usa il default (pdf) */
|
|
4
|
+
AllowedExtensions: Array<string>;
|
|
5
|
+
/**Se true permette l'inserimento di più allegati. In questo caso i metadati vengono rappresentati come una detail */
|
|
6
|
+
IsMultiAttach: boolean;
|
|
7
|
+
/**Elenco campi che possono rappresentare i metadati dell'allegato, ad esempio nome, ecc... */
|
|
8
|
+
MetadataFields: Array<BaseField>;
|
|
9
|
+
}
|
|
10
|
+
export declare const AvailableFileExtensions: Array<{
|
|
11
|
+
key: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const AvailableImageExtensions: Array<{
|
|
15
|
+
key: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}>;
|
package/{src/lib/models/fields/booleanField.model.ts → lib/models/fields/booleanField.model.d.ts}
RENAMED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { BaseField } from "../baseField.model";
|
|
2
|
-
|
|
3
|
-
export class BooleanField extends BaseField {
|
|
2
|
+
export declare class BooleanField extends BaseField {
|
|
4
3
|
/**Se true il boolean accetta anche il valore N/A (non assegnato) */
|
|
5
4
|
IsTristate: boolean;
|
|
6
5
|
PresetationType: BoolPresentantioEnum;
|
|
7
6
|
}
|
|
8
|
-
|
|
9
|
-
export enum BoolPresentantioEnum {
|
|
7
|
+
export declare enum BoolPresentantioEnum {
|
|
10
8
|
"Checkbox" = 1,
|
|
11
9
|
"Toggle" = 2,
|
|
12
|
-
"Radio button" = 3
|
|
13
|
-
|
|
14
|
-
// "Numerico 0 o 1" = 4
|
|
15
|
-
}
|
|
10
|
+
"Radio button" = 3
|
|
11
|
+
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { BaseField } from "../baseField.model";
|
|
2
|
-
|
|
3
2
|
/**Rappresenta la configurazione di un campo Data o Data e ora, o solo ora */
|
|
4
|
-
export class DateField extends BaseField {
|
|
3
|
+
export declare class DateField extends BaseField {
|
|
5
4
|
IsOnlyDate: DateTimeTypeEnum;
|
|
6
5
|
MinDate: Date;
|
|
7
6
|
MaxDate: Date;
|
|
8
7
|
DateFormat: string;
|
|
9
8
|
}
|
|
10
|
-
|
|
11
|
-
export enum DateTimeTypeEnum {
|
|
9
|
+
export declare enum DateTimeTypeEnum {
|
|
12
10
|
"Solo data" = 1,
|
|
13
11
|
"Solo orario" = 2,
|
|
14
12
|
"Data e ora" = 3
|
|
15
|
-
}
|
|
13
|
+
}
|
package/{src/lib/models/fields/imageField.model.ts → lib/models/fields/imageField.model.d.ts}
RENAMED
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import { IAttachmentDTO } from "@eqproject/eqp-attachments";
|
|
2
2
|
import { BaseField } from "../baseField.model";
|
|
3
3
|
import { AttachmentField } from "./attachmentField.model";
|
|
4
|
-
|
|
5
|
-
export class ImageField extends BaseField {
|
|
4
|
+
export declare class ImageField extends BaseField {
|
|
6
5
|
/**Se true il medico può disegnare sull'immagine */
|
|
7
6
|
EnableDrawing: boolean;
|
|
8
|
-
|
|
9
7
|
/**Se true l'immagine non è fissa, ma viene caricata come un allegato; */
|
|
10
8
|
ImageIsContextualAttachment: boolean;
|
|
11
9
|
/**Contiene l'allegato caricato nel campo (se ImageIsContextualAttachment == true) */
|
|
12
10
|
ContextualAttachment: IAttachmentDTO;
|
|
13
11
|
/**Proprietà per recuperare l'allegato caricato come array per eqp-attachments (se ImageIsContextualAttachment == true) */
|
|
14
|
-
get _contextualAttachments()
|
|
15
|
-
return this.ContextualAttachment ? [this.ContextualAttachment] : [];
|
|
16
|
-
}
|
|
12
|
+
get _contextualAttachments(): IAttachmentDTO[];
|
|
17
13
|
/**Nome dell'immagine caricata (se ImageIsContextualAttachment == true) */
|
|
18
14
|
ImgName: string;
|
|
19
|
-
|
|
20
15
|
AttachDefinition: AttachmentField;
|
|
21
|
-
}
|
|
16
|
+
}
|