@eqproject/eqp-dynamic-module 0.0.7 → 0.0.8
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
|
@@ -1,417 +0,0 @@
|
|
|
1
|
-
<div class="container-fluid" style="max-height: 70vh !important; overflow-x: hidden; overflow-y: auto;">
|
|
2
|
-
<form [formGroup]="fieldFormGroup">
|
|
3
|
-
<div class="row">
|
|
4
|
-
<div class="header-title-standard">{{indexField != null && indexField >= 0 ? "Modifica"
|
|
5
|
-
: "Aggiungi"}} campo</div>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="row">
|
|
8
|
-
<div class="col-sm-12 col-md-4 mt-2">
|
|
9
|
-
<eqp-select [enumData]="FieldTypeEnum" [(ngModelInput)]="field.FieldType" [isRequired]="true"
|
|
10
|
-
[showCancelButton]="false" placeholder="Tipo campo" (ngModelInputChange)="onFieldTypeChange()"
|
|
11
|
-
[formGroupInput]="fieldFormGroup" [formControlNameInput]="'FieldType'"
|
|
12
|
-
[enumDataToExclude]="fieldTypesToExclude">
|
|
13
|
-
</eqp-select>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<div class="col-sm-12 col-md-4 mt-2">
|
|
17
|
-
<mat-form-field>
|
|
18
|
-
<mat-label> Label </mat-label>
|
|
19
|
-
<input formControlName="Label" required matInput [(ngModel)]="field.Label">
|
|
20
|
-
</mat-form-field>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<div class="col-sm-12 col-md-4 mt-2">
|
|
24
|
-
<mat-form-field>
|
|
25
|
-
<mat-label> Descrizione </mat-label>
|
|
26
|
-
<input formControlName="Description" required matInput [(ngModel)]="field.Description">
|
|
27
|
-
</mat-form-field>
|
|
28
|
-
</div>
|
|
29
|
-
|
|
30
|
-
<div class="col-sm-12 col-md-4 mt-2 d-flex align-items-center">
|
|
31
|
-
<mat-slide-toggle [(ngModel)]="field.Required" formControlName="Required" color="primary">
|
|
32
|
-
Obbligatorio
|
|
33
|
-
</mat-slide-toggle>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
<div class="col-sm-12 col-md-4 mt-2">
|
|
37
|
-
<mat-form-field>
|
|
38
|
-
<mat-label> Formula (Javascript) </mat-label>
|
|
39
|
-
<input formControlName="Formula" matInput [(ngModel)]="field.Formula"
|
|
40
|
-
[matAutocomplete]="formulaAutocomplete" (keyup)="setFormulaAutocompleteOptions($event)"
|
|
41
|
-
(focus)="setFormulaAutocompleteOptions(null)">
|
|
42
|
-
<mat-autocomplete #formulaAutocomplete="matAutocomplete">
|
|
43
|
-
<mat-option *ngFor="let option of formulaAutocompleteOptions" [value]="option.value">
|
|
44
|
-
{{option.label}}
|
|
45
|
-
</mat-option>
|
|
46
|
-
</mat-autocomplete>
|
|
47
|
-
</mat-form-field>
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<div class="col-sm-12 col-md-4 mt-2" *ngIf="formFieldsGroups">
|
|
51
|
-
<eqp-select [arrayData]="formFieldsGroups" [(ngModelInput)]="field.FieldGroup"
|
|
52
|
-
[arrayKeyProperty]="'Name'" [arrayValueProperty]="'Name'" placeholder="Sezione"
|
|
53
|
-
[formGroupInput]="fieldFormGroup" [formControlNameInput]="'FieldGroup'" [isRequired]="true"
|
|
54
|
-
[includeFullObject]="false">
|
|
55
|
-
</eqp-select>
|
|
56
|
-
</div>
|
|
57
|
-
|
|
58
|
-
<div class="col-sm-12 col-md-4 mt-2">
|
|
59
|
-
<eqp-select [arrayData]="availableColSpanSizes" [(ngModelInput)]="field.ColSpanSizes"
|
|
60
|
-
[arrayKeyProperty]="'key'" [arrayValueProperty]="'value'" (ngModelInputChange)="onColSpanSizeSelect()"
|
|
61
|
-
[isMultiSelect]="true" placeholder="Larghezza campo" [formGroupInput]="fieldFormGroup"
|
|
62
|
-
[formControlNameInput]="'ColSpanSizes'" [includeFullObject]="false">
|
|
63
|
-
</eqp-select>
|
|
64
|
-
</div>
|
|
65
|
-
|
|
66
|
-
<div class="col-sm-12 col-md-4 mt-2 d-flex align-items-center">
|
|
67
|
-
<mat-slide-toggle [(ngModel)]="field.InListView" formControlName="InListView" color="primary"
|
|
68
|
-
[disabled]="fieldFormGroup.controls['InListView'].disabled">
|
|
69
|
-
Mostrare nella visualizzazione a lista
|
|
70
|
-
</mat-slide-toggle>
|
|
71
|
-
</div>
|
|
72
|
-
|
|
73
|
-
<ng-container *ngTemplateOutlet="fieldTypeFormTemplate">
|
|
74
|
-
</ng-container>
|
|
75
|
-
</div>
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
<div class="row mt-2 mb-1">
|
|
79
|
-
<div class="col-sm-12 text-right">
|
|
80
|
-
<button class="mr-2" mat-raised-button color="primary" (click)="saveAndExitAddField(true)"
|
|
81
|
-
[disabled]="disableSaveField()" type="button">
|
|
82
|
-
Salva
|
|
83
|
-
</button>
|
|
84
|
-
<button class="btn mat-raised-button" (click)="saveAndExitAddField(false)" type="button">
|
|
85
|
-
Esci
|
|
86
|
-
</button>
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
</form>
|
|
90
|
-
</div>
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
<!-- FORM PROPRIETÀ CAMPI DI TESTO -->
|
|
94
|
-
<ng-template #textFieldFormTemplate>
|
|
95
|
-
<div class="col-sm-12 col-md-4">
|
|
96
|
-
<eqp-select [enumData]="TextMaskEnum" [(ngModelInput)]="field.TextMask" placeholder="Maschera"
|
|
97
|
-
[formGroupInput]="fieldFormGroup" [formControlNameInput]="'TextMask'">
|
|
98
|
-
</eqp-select>
|
|
99
|
-
</div>
|
|
100
|
-
<div class="col-sm-12 col-md-4" [formGroup]="fieldFormGroup">
|
|
101
|
-
<mat-form-field>
|
|
102
|
-
<mat-label> Lunghezza massima </mat-label>
|
|
103
|
-
<input formControlName="MaxLenght" type="number" [min]="0" matInput [(ngModel)]="field.MaxLenght">
|
|
104
|
-
</mat-form-field>
|
|
105
|
-
</div>
|
|
106
|
-
<div class="col-sm-12 col-md-4" [formGroup]="fieldFormGroup">
|
|
107
|
-
<mat-form-field>
|
|
108
|
-
<mat-label> Lunghezza minima </mat-label>
|
|
109
|
-
<input formControlName="MinLenght" type="number" [min]="0" matInput [(ngModel)]="field.MinLenght">
|
|
110
|
-
</mat-form-field>
|
|
111
|
-
</div>
|
|
112
|
-
</ng-template>
|
|
113
|
-
|
|
114
|
-
<!-- FORM PROPRIETÀ CAMPI AREA DI TESTO -->
|
|
115
|
-
<ng-template #textareaFieldFormTemplate>
|
|
116
|
-
<div class="col-sm-12 col-md-4 mt-2" [formGroup]="fieldFormGroup">
|
|
117
|
-
<mat-form-field>
|
|
118
|
-
<mat-label> Righe </mat-label>
|
|
119
|
-
<input formControlName="Rows" type="number" [min]="0" matInput [(ngModel)]="field.Rows">
|
|
120
|
-
</mat-form-field>
|
|
121
|
-
</div>
|
|
122
|
-
<div class="col-sm-12 col-md-4 mt-2" [formGroup]="fieldFormGroup">
|
|
123
|
-
<mat-form-field>
|
|
124
|
-
<mat-label> Lunghezza massima </mat-label>
|
|
125
|
-
<input formControlName="MaxLenght" type="number" [min]="0" matInput [(ngModel)]="field.MaxLenght">
|
|
126
|
-
</mat-form-field>
|
|
127
|
-
</div>
|
|
128
|
-
<div class="col-sm-12 col-md-4 mt-2" [formGroup]="fieldFormGroup">
|
|
129
|
-
<mat-form-field>
|
|
130
|
-
<mat-label> Lunghezza minima </mat-label>
|
|
131
|
-
<input formControlName="MinLenght" type="number" [min]="0" matInput [(ngModel)]="field.MinLenght">
|
|
132
|
-
</mat-form-field>
|
|
133
|
-
</div>
|
|
134
|
-
</ng-template>
|
|
135
|
-
|
|
136
|
-
<!-- FORM PROPRIETÀ CAMPI BOOLEANI -->
|
|
137
|
-
<ng-template #booleadFieldFormTemplate>
|
|
138
|
-
<div class="col-sm-12 col-md-4 mt-2 d-flex align-items-center" [formGroup]="fieldFormGroup">
|
|
139
|
-
<mat-slide-toggle [(ngModel)]="field.IsTristate" formControlName="IsTristate" color="primary">
|
|
140
|
-
A tre stati
|
|
141
|
-
</mat-slide-toggle>
|
|
142
|
-
</div>
|
|
143
|
-
<div class="col-sm-12 col-md-4 mt-2">
|
|
144
|
-
<eqp-select [enumData]="BoolPresentantioEnum" [(ngModelInput)]="field.PresetationType" [isRequired]="true"
|
|
145
|
-
[showCancelButton]="false" placeholder="Tipo di presentazione" [formGroupInput]="fieldFormGroup"
|
|
146
|
-
[formControlNameInput]="'PresetationType'">
|
|
147
|
-
</eqp-select>
|
|
148
|
-
</div>
|
|
149
|
-
</ng-template>
|
|
150
|
-
|
|
151
|
-
<!-- FORM PROPRIETÀ CAMPI DATA -->
|
|
152
|
-
<ng-template #dateFieldFormTemplate>
|
|
153
|
-
<div class="col-sm-12 col-md-4 mt-2">
|
|
154
|
-
<eqp-datetimepicker [placeholder]="'Data minima'" [(ngModelInput)]="field.MinDate"
|
|
155
|
-
[formGroupInput]="fieldFormGroup" [formControlNameInput]="'MinDate'" [UTCDate]="true" [showSeconds]="false">
|
|
156
|
-
</eqp-datetimepicker>
|
|
157
|
-
</div>
|
|
158
|
-
<div class="col-sm-12 col-md-4 mt-2">
|
|
159
|
-
<eqp-datetimepicker [placeholder]="'Data massima'" [(ngModelInput)]="field.MaxDate"
|
|
160
|
-
[formGroupInput]="fieldFormGroup" [formControlNameInput]="'MaxDate'" [UTCDate]="true" [showSeconds]="false">
|
|
161
|
-
</eqp-datetimepicker>
|
|
162
|
-
</div>
|
|
163
|
-
<div class="col-sm-12 col-md-4 mt-2">
|
|
164
|
-
<eqp-select [enumData]="DateTimeTypeEnum" [(ngModelInput)]="field.IsOnlyDate" [isRequired]="true"
|
|
165
|
-
[showCancelButton]="false" placeholder="Tipo di data" [formGroupInput]="fieldFormGroup"
|
|
166
|
-
[formControlNameInput]="'IsOnlyDate'">
|
|
167
|
-
</eqp-select>
|
|
168
|
-
</div>
|
|
169
|
-
<div class="col-sm-12 col-md-4 mt-2" [formGroup]="fieldFormGroup">
|
|
170
|
-
<mat-form-field>
|
|
171
|
-
<mat-label> Formato </mat-label>
|
|
172
|
-
<input formControlName="DateFormat" matInput [(ngModel)]="field.DateFormat"
|
|
173
|
-
[matTooltip]="'Indicare il formato senguendo la guida del pacchetto momentjs.'">
|
|
174
|
-
</mat-form-field>
|
|
175
|
-
</div>
|
|
176
|
-
</ng-template>
|
|
177
|
-
|
|
178
|
-
<!-- FORM PROPRIETÀ CAMPI NUMERICI -->
|
|
179
|
-
<ng-template #numericFieldFormTemplate>
|
|
180
|
-
<div class="col-sm-12 col-md-4 mt-2 d-flex align-items-center" [formGroup]="fieldFormGroup">
|
|
181
|
-
<mat-slide-toggle [(ngModel)]="field.IsInteger" formControlName="IsInteger" color="primary">
|
|
182
|
-
Valore intero
|
|
183
|
-
</mat-slide-toggle>
|
|
184
|
-
</div>
|
|
185
|
-
<div class="col-sm-12 col-md-4 mt-2" [formGroup]="fieldFormGroup">
|
|
186
|
-
<mat-form-field>
|
|
187
|
-
<mat-label> Separatore decimali </mat-label>
|
|
188
|
-
<input formControlName="DecimalSeparator" matInput [(ngModel)]="field.DecimalSeparator">
|
|
189
|
-
</mat-form-field>
|
|
190
|
-
</div>
|
|
191
|
-
<div class="col-sm-12 col-md-4 mt-2" [formGroup]="fieldFormGroup">
|
|
192
|
-
<mat-form-field>
|
|
193
|
-
<mat-label> Precisione decimali </mat-label>
|
|
194
|
-
<input formControlName="DecimalPrecision" type="number" [min]="0" matInput
|
|
195
|
-
[(ngModel)]="field.DecimalPrecision">
|
|
196
|
-
</mat-form-field>
|
|
197
|
-
</div>
|
|
198
|
-
<div class="col-sm-12 col-md-4 mt-2" [formGroup]="fieldFormGroup">
|
|
199
|
-
<mat-form-field>
|
|
200
|
-
<mat-label> Separatore migliaia </mat-label>
|
|
201
|
-
<input formControlName="ThousandsSeparator" matInput [(ngModel)]="field.ThousandsSeparator">
|
|
202
|
-
</mat-form-field>
|
|
203
|
-
</div>
|
|
204
|
-
<div class="col-sm-12 col-md-4 mt-2" [formGroup]="fieldFormGroup">
|
|
205
|
-
<mat-form-field>
|
|
206
|
-
<mat-label> Simbolo valuta </mat-label>
|
|
207
|
-
<input formControlName="CurrencySymbol" matInput [(ngModel)]="field.CurrencySymbol">
|
|
208
|
-
</mat-form-field>
|
|
209
|
-
</div>
|
|
210
|
-
<div class="col-sm-12 col-md-4 mt-2" [formGroup]="fieldFormGroup">
|
|
211
|
-
<mat-form-field>
|
|
212
|
-
<mat-label> Valore massimo </mat-label>
|
|
213
|
-
<input formControlName="MinValue" type="number" [min]="0" matInput [(ngModel)]="field.MinValue">
|
|
214
|
-
</mat-form-field>
|
|
215
|
-
</div>
|
|
216
|
-
<div class="col-sm-12 col-md-4 mt-2" [formGroup]="fieldFormGroup">
|
|
217
|
-
<mat-form-field>
|
|
218
|
-
<mat-label> Valore minimo </mat-label>
|
|
219
|
-
<input formControlName="MaxValue" type="number" [min]="0" matInput [(ngModel)]="field.MaxValue">
|
|
220
|
-
</mat-form-field>
|
|
221
|
-
</div>
|
|
222
|
-
</ng-template>
|
|
223
|
-
|
|
224
|
-
<!-- FORM PROPRIETÀ CAMPI ALLEGATO -->
|
|
225
|
-
<ng-template #attachmentFieldFormTemplate>
|
|
226
|
-
<div class="col-sm-12 col-md-4 mt-2 d-flex align-items-center" [formGroup]="fieldFormGroup">
|
|
227
|
-
<mat-slide-toggle [(ngModel)]="field.IsMultiAttach" formControlName="IsMultiAttach" color="primary">
|
|
228
|
-
Allegati multipli
|
|
229
|
-
</mat-slide-toggle>
|
|
230
|
-
</div>
|
|
231
|
-
<div class="col-sm-12 col-md-4 mt-2">
|
|
232
|
-
<eqp-select [arrayData]="AvailableFileExtensions.concat(AvailableImageExtensions)"
|
|
233
|
-
[(ngModelInput)]="field.AllowedExtensions" [arrayKeyProperty]="'key'" [arrayValueProperty]="'value'"
|
|
234
|
-
[isMultiSelect]="true" placeholder="Estensioni accettate" [formGroupInput]="fieldFormGroup"
|
|
235
|
-
[formControlNameInput]="'AllowedExtensions'" [includeFullObject]="false">
|
|
236
|
-
</eqp-select>
|
|
237
|
-
</div>
|
|
238
|
-
<div class="col-sm-12 mt-2">
|
|
239
|
-
<div class="row mt-2">
|
|
240
|
-
<div class="col-sm-12 col-md-6">
|
|
241
|
-
<div class="header-title-standard">
|
|
242
|
-
Elenco metadata
|
|
243
|
-
</div>
|
|
244
|
-
</div>
|
|
245
|
-
<div class="col-sm-12 col-md-6 text-right">
|
|
246
|
-
<button class="btn btn-primary" mat-raised-button color="primary" type="button"
|
|
247
|
-
(click)="openMetadataDialog()">
|
|
248
|
-
<mat-icon>add</mat-icon>
|
|
249
|
-
<span style="margin-left: 10px;">Aggiungi</span>
|
|
250
|
-
</button>
|
|
251
|
-
</div>
|
|
252
|
-
</div>
|
|
253
|
-
<eqp-table #metadataFieldsTable [createMatCard]="false" [columns]="metadataColumns"
|
|
254
|
-
[data]="field.MetadataFields" [emptyTableMessage]="'Nessun metadata inserito'" [searchText]="'Cerca'">
|
|
255
|
-
</eqp-table>
|
|
256
|
-
</div>
|
|
257
|
-
</ng-template>
|
|
258
|
-
|
|
259
|
-
<!-- FORM PROPRIETÀ CAMPI IMMAGINE -->
|
|
260
|
-
<ng-template #imageFieldFormTemplate>
|
|
261
|
-
<div class="col-sm-12 col-md-4 mt-2 mb-2 d-flex align-items-center" [formGroup]="fieldFormGroup">
|
|
262
|
-
<mat-slide-toggle [(ngModel)]="field.ImageIsContextualAttachment" formControlName="ImageIsContextualAttachment"
|
|
263
|
-
color="primary" (ngModelChange)="onImageIsContextualAttachmentChange()">
|
|
264
|
-
Immagine pre-caricata nel campo
|
|
265
|
-
</mat-slide-toggle>
|
|
266
|
-
</div>
|
|
267
|
-
<div class="col-sm-12 col-md-4 mt-2 mb-2 d-flex align-items-center" [formGroup]="fieldFormGroup">
|
|
268
|
-
<mat-slide-toggle [(ngModel)]="field.EnableDrawing" formControlName="EnableDrawing" color="primary">
|
|
269
|
-
Abilita il disegno
|
|
270
|
-
</mat-slide-toggle>
|
|
271
|
-
</div>
|
|
272
|
-
<div class="col-sm-12 col-md-4 mt-2 d-flex align-items-center" [formGroup]="fieldFormGroup"
|
|
273
|
-
*ngIf="!field.ImageIsContextualAttachment">
|
|
274
|
-
<mat-slide-toggle [(ngModel)]="field.AttachDefinition.IsMultiAttach" formControlName="IsMultiAttach"
|
|
275
|
-
color="primary">
|
|
276
|
-
Immagini multiple
|
|
277
|
-
</mat-slide-toggle>
|
|
278
|
-
</div>
|
|
279
|
-
<div class="col-sm-12 col-md-4 mt-2" *ngIf="!field.ImageIsContextualAttachment">
|
|
280
|
-
<eqp-select [arrayData]="AvailableImageExtensions" [(ngModelInput)]="field.AttachDefinition.AllowedExtensions"
|
|
281
|
-
[arrayKeyProperty]="'key'" [arrayValueProperty]="'value'" [isMultiSelect]="true"
|
|
282
|
-
placeholder="Estensioni accettate" [formGroupInput]="fieldFormGroup"
|
|
283
|
-
[formControlNameInput]="'AllowedExtensions'" [includeFullObject]="false">
|
|
284
|
-
</eqp-select>
|
|
285
|
-
</div>
|
|
286
|
-
<div class="col-sm-12 col-md-4 mt-2" [formGroup]="fieldFormGroup" *ngIf="field.ImageIsContextualAttachment">
|
|
287
|
-
<mat-form-field>
|
|
288
|
-
<mat-label> Nome immagine </mat-label>
|
|
289
|
-
<input formControlName="ImgName" matInput [(ngModel)]="field.ImgName" required>
|
|
290
|
-
</mat-form-field>
|
|
291
|
-
</div>
|
|
292
|
-
<div class="col-sm-12 col-md-8 mt-2" [formGroup]="fieldFormGroup" *ngIf="field.ImageIsContextualAttachment">
|
|
293
|
-
<eqp-attachments [attachmentsList]="field._contextualAttachments" [showMatCard]="false" [allowOnlyImages]="true"
|
|
294
|
-
[isDisabled]="false" [showInlinePreview]="true" [multipleAttachment]="false" [showHeader]="false"
|
|
295
|
-
(localEditedAttachments)="catchContextualAttachmentChange($event)" #contextualAttachmentEqpAttachments>
|
|
296
|
-
</eqp-attachments>
|
|
297
|
-
</div>
|
|
298
|
-
<div class="col-sm-12 mt-2">
|
|
299
|
-
<div class="row mt-2">
|
|
300
|
-
<div class="col-sm-12 col-md-6">
|
|
301
|
-
<div class="header-title-standard">
|
|
302
|
-
Elenco metadata
|
|
303
|
-
</div>
|
|
304
|
-
</div>
|
|
305
|
-
<div class="col-sm-12 col-md-6 text-right">
|
|
306
|
-
<button class="btn btn-primary" mat-raised-button color="primary" type="button"
|
|
307
|
-
(click)="openMetadataDialog()">
|
|
308
|
-
<mat-icon>add</mat-icon>
|
|
309
|
-
<span style="margin-left: 10px;">Aggiungi</span>
|
|
310
|
-
</button>
|
|
311
|
-
</div>
|
|
312
|
-
</div>
|
|
313
|
-
<eqp-table #metadataFieldsTable [createMatCard]="false" [columns]="metadataColumns"
|
|
314
|
-
[data]="field.AttachDefinition.MetadataFields" [emptyTableMessage]="'Nessun metadata inserito'"
|
|
315
|
-
[searchText]="'Cerca'">
|
|
316
|
-
</eqp-table>
|
|
317
|
-
</div>
|
|
318
|
-
</ng-template>
|
|
319
|
-
|
|
320
|
-
<!-- FORM PROPRIETÀ CAMPI LISTA DI VALORI -->
|
|
321
|
-
<ng-template #listValueFieldFormTemplate>
|
|
322
|
-
<div class="col-sm-12 col-md-4 mt-2 d-flex align-items-center" [formGroup]="fieldFormGroup">
|
|
323
|
-
<mat-slide-toggle [(ngModel)]="field.IsMultiChoiche" formControlName="IsMultiChoiche" color="primary">
|
|
324
|
-
Scelta multipla
|
|
325
|
-
</mat-slide-toggle>
|
|
326
|
-
</div>
|
|
327
|
-
<div class="col-sm-12 col-md-4 mt-2">
|
|
328
|
-
<eqp-select [enumData]="ListPresentationEnum" [(ngModelInput)]="field.PresentationMode" [isRequired]="true"
|
|
329
|
-
[showCancelButton]="false" placeholder="Tipo di presentazione" [formGroupInput]="fieldFormGroup"
|
|
330
|
-
[formControlNameInput]="'PresentationMode'" (ngModelInputChange)="onPresentationModeChange()">
|
|
331
|
-
</eqp-select>
|
|
332
|
-
</div>
|
|
333
|
-
<div class="col-sm-12 mt-2" *ngIf="field.PresentationMode != ListPresentationEnum.Immagini">
|
|
334
|
-
<div class="row">
|
|
335
|
-
<h4 class="key-value-list-section-title"> </h4>
|
|
336
|
-
<div class="col-md-4 d-flex align-items-center">
|
|
337
|
-
<mat-form-field>
|
|
338
|
-
<mat-label> Label opzione (invio per confermare)</mat-label>
|
|
339
|
-
<input matInput [(ngModel)]="keyValueObject.key" (keyup)="onMultiSelectInputKeyup($event, null)">
|
|
340
|
-
</mat-form-field>
|
|
341
|
-
</div>
|
|
342
|
-
<div class="col-md-4 d-flex align-items-center">
|
|
343
|
-
<mat-form-field>
|
|
344
|
-
<mat-label> Valore opzione (invio per confermare)</mat-label>
|
|
345
|
-
<input matInput [(ngModel)]="keyValueObject.value" (keyup)="onMultiSelectInputKeyup($event, null)">
|
|
346
|
-
</mat-form-field>
|
|
347
|
-
</div>
|
|
348
|
-
<div class="col-md-4 d-flex align-items-center">
|
|
349
|
-
<span class="mr-3">Opzioni inserite:</span>
|
|
350
|
-
<ul class="value-pairs-list">
|
|
351
|
-
<li *ngFor="let keyValuePair of getDictionaryKeyValue()">
|
|
352
|
-
<mat-icon class="mr-1" (click)="deleteKeyFromDictionary(keyValuePair.key)">close
|
|
353
|
-
</mat-icon>
|
|
354
|
-
<span><b>Label: </b> {{keyValuePair.key}} - <b>Valore: </b> {{keyValuePair.value}}</span>
|
|
355
|
-
</li>
|
|
356
|
-
</ul>
|
|
357
|
-
</div>
|
|
358
|
-
</div>
|
|
359
|
-
</div>
|
|
360
|
-
<div class="col-sm-12 col-md-12 mt-2" *ngIf="field.PresentationMode == ListPresentationEnum.Immagini">
|
|
361
|
-
<eqp-attachments [attachmentsList]="field.ButtonImageList" [showMatCard]="false" [allowOnlyImages]="true"
|
|
362
|
-
[isDisabled]="false" [showInlinePreview]="true" [multipleAttachment]="true" [showHeader]="false"
|
|
363
|
-
[allowedTypes]="[AttachmentType.FILE]" (localEditedAttachments)="catchButtonImagesChange($event)"
|
|
364
|
-
(onComponentLoaded)="configureButtonImagesColumns($event)">
|
|
365
|
-
</eqp-attachments>
|
|
366
|
-
</div>
|
|
367
|
-
</ng-template>
|
|
368
|
-
|
|
369
|
-
<!-- FORM PROPRIETÀ CAMPI LOOKUP -->
|
|
370
|
-
<ng-template #lookupFieldFormTemplate>
|
|
371
|
-
<div class="col-sm-12 col-md-4 mt-2 d-flex align-items-center" [formGroup]="fieldFormGroup">
|
|
372
|
-
<mat-slide-toggle [(ngModel)]="field.UseAsGetOrDiscard" formControlName="UseAsGetOrDiscard" color="primary"
|
|
373
|
-
matTooltip="Se true la lookup viene visualizzata in una modale per lo scegli scarta">
|
|
374
|
-
Usa per scegli o scarta
|
|
375
|
-
</mat-slide-toggle>
|
|
376
|
-
</div>
|
|
377
|
-
<div class="col-sm-12 col-md-4 mt-2" [formGroup]="fieldFormGroup">
|
|
378
|
-
<mat-form-field matTooltip="Nome dell'entità relazionata">
|
|
379
|
-
<mat-label> Nome entità </mat-label>
|
|
380
|
-
<input formControlName="EntitySourceName" required matInput [(ngModel)]="field.EntitySourceName">
|
|
381
|
-
</mat-form-field>
|
|
382
|
-
</div>
|
|
383
|
-
<div class="col-sm-12 mt-2">
|
|
384
|
-
<div class="row">
|
|
385
|
-
<div class="col-md-4">
|
|
386
|
-
<mat-form-field
|
|
387
|
-
matTooltip="Elenco di campi ordinato che verrà visualizzato nella lookup (premere invio per confermare)">
|
|
388
|
-
<mat-label>
|
|
389
|
-
Nomi dei campi (invio per confermare) </mat-label>
|
|
390
|
-
<input matInput (keyup)="onMultiSelectInputKeyup($event, 'FieldNames')">
|
|
391
|
-
</mat-form-field>
|
|
392
|
-
</div>
|
|
393
|
-
<div class="col-md-8 d-flex align-items-center">
|
|
394
|
-
<span class="mr-3">Nomi selezionati:</span>
|
|
395
|
-
<div class="extension-container" *ngFor="let extension of field.FieldNames; let i = index">
|
|
396
|
-
<span>{{extension}}</span>
|
|
397
|
-
<mat-icon class="ml-1" (click)="field.FieldNames.splice(i,1)">close
|
|
398
|
-
</mat-icon>
|
|
399
|
-
</div>
|
|
400
|
-
</div>
|
|
401
|
-
</div>
|
|
402
|
-
</div>
|
|
403
|
-
</ng-template>
|
|
404
|
-
|
|
405
|
-
<!-- DIALOG PER AGGIUNGERE UN METADATA NEI CAMPI DI TIPO ALLEGATO O IMMAGINE -->
|
|
406
|
-
<ng-template #dialogMetadata>
|
|
407
|
-
<eqp-dynamic-module-add-form-field [field]="selectedMetadata" [availableFields]="availableFields"
|
|
408
|
-
[indexField]="indexSelectedMetadata" (saveFieldEvent)="onSaveMetadata($event)" [fieldTypesToExclude]="[6,7,10]">
|
|
409
|
-
</eqp-dynamic-module-add-form-field>
|
|
410
|
-
</ng-template>
|
|
411
|
-
|
|
412
|
-
<ng-template #buttonImagesKeyValueInputColumn let-row="row" let-col="col">
|
|
413
|
-
<mat-form-field>
|
|
414
|
-
<mat-label> {{col.display}} </mat-label>
|
|
415
|
-
<input matInput [(ngModel)]="row[col.key]" required>
|
|
416
|
-
</mat-form-field>
|
|
417
|
-
</ng-template>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
.extension-container {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
font-size: 15px;
|
|
4
|
-
border: 1px solid var(--primary);
|
|
5
|
-
border-radius: 15px;
|
|
6
|
-
margin-right: 10px;
|
|
7
|
-
mat-icon {
|
|
8
|
-
vertical-align: middle;
|
|
9
|
-
font-size: 15px;
|
|
10
|
-
height: 15px;
|
|
11
|
-
width: 15px;
|
|
12
|
-
color: var(--danger);
|
|
13
|
-
margin-right: 10px;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
}
|
|
16
|
-
span {
|
|
17
|
-
margin-left: 10px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.key-value-list-section-title {
|
|
22
|
-
background: linear-gradient(to right, var(--gray) 0%, rgb(255 255 255) 100%) left bottom #fff no-repeat;
|
|
23
|
-
background-size: 100% 1px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.value-pairs-list {
|
|
27
|
-
list-style: none;
|
|
28
|
-
padding: 0;
|
|
29
|
-
mat-icon {
|
|
30
|
-
vertical-align: middle;
|
|
31
|
-
font-size: 15px;
|
|
32
|
-
height: 15px;
|
|
33
|
-
width: 15px;
|
|
34
|
-
color: var(--danger);
|
|
35
|
-
margin-right: 10px;
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
}
|
|
38
|
-
}
|