@eqproject/eqp-dynamic-module 2.6.28 → 2.6.30
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/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +8 -1
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +1 -3
- package/esm2020/lib/components/private/field-templates/date-field-template/date-field-template.component.mjs +3 -3
- package/esm2020/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +8 -6
- package/esm2020/lib/components/private/form-statistics/filter-templates/image-selector-filter-template/image-selector-filter-template.component.mjs +8 -6
- package/esm2020/lib/components/private/form-statistics/filter-templates/list-value-filter-template/list-value-filter-template.component.mjs +8 -6
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/list-value-trigger-template/list-value-trigger-template.component.mjs +8 -6
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +37 -24
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +37 -24
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2130,10 +2130,10 @@ class DateFieldTemplateComponent {
|
|
|
2130
2130
|
}
|
|
2131
2131
|
}
|
|
2132
2132
|
DateFieldTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateFieldTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2133
|
-
DateFieldTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateFieldTemplateComponent, selector: "date-field-template", inputs: { field: "field", record: "record", inConfig: "inConfig" }, outputs: { recordChange: "recordChange" }, usesOnChanges: true, ngImport: i0, template: "<tmw-datetimepicker
|
|
2133
|
+
DateFieldTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateFieldTemplateComponent, selector: "date-field-template", inputs: { field: "field", record: "record", inConfig: "inConfig" }, outputs: { recordChange: "recordChange" }, usesOnChanges: true, ngImport: i0, template: "<tmw-datetimepicker [placeholder]=\"field.Description\" [label]=\"field.Description\" [pickerMode]=\"mode\"\r\n [minDate]=\"field.MinDate ? field.MinDate : null\" [maxDate]=\"field.MaxDate ? field.MaxDate : null\"\r\n [disabled]=\"field.FormFormGroup.disabled\" [(ngModelInput)]=\"record[field.Name]\"\r\n (ngModelInputChange)=\"onRecordValueChange()\" [outputFormat]=\"outputFormat\">\r\n</tmw-datetimepicker>", styles: [""], dependencies: [{ kind: "component", type: i1$2.TmwDateTimePickerComponent, selector: "tmw-datetimepicker", inputs: ["debugMode", "ngModelInput", "formGroupInput", "formControlNameInput", "pickerMode", "timeType", "label", "placeholder", "hint", "minDate", "maxDate", "locale", "inputFormat", "outputFormat", "forSaveLocalOnDB", "disabled", "readonly", "currentDateAsDefault", "showSpinners", "touchUi", "enableMeridian", "hideTime", "stepHour", "showHours", "hourLabel", "stepMinute", "showMinutes", "minuteLabel", "stepSecond", "showSeconds", "secondLabel", "disableMinute", "dayLabel", "monthLabel", "yearLabel", "highLightedDates", "highLightedAriaFormat"], outputs: ["ngModelInputChange"] }] });
|
|
2134
2134
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateFieldTemplateComponent, decorators: [{
|
|
2135
2135
|
type: Component,
|
|
2136
|
-
args: [{ selector: 'date-field-template', template: "<tmw-datetimepicker
|
|
2136
|
+
args: [{ selector: 'date-field-template', template: "<tmw-datetimepicker [placeholder]=\"field.Description\" [label]=\"field.Description\" [pickerMode]=\"mode\"\r\n [minDate]=\"field.MinDate ? field.MinDate : null\" [maxDate]=\"field.MaxDate ? field.MaxDate : null\"\r\n [disabled]=\"field.FormFormGroup.disabled\" [(ngModelInput)]=\"record[field.Name]\"\r\n (ngModelInputChange)=\"onRecordValueChange()\" [outputFormat]=\"outputFormat\">\r\n</tmw-datetimepicker>" }]
|
|
2137
2137
|
}], ctorParameters: function () { return []; }, propDecorators: { field: [{
|
|
2138
2138
|
type: Input
|
|
2139
2139
|
}], record: [{
|
|
@@ -2472,11 +2472,13 @@ class ListValueFieldTemplateComponent {
|
|
|
2472
2472
|
* Metodo per creare un array di oggetti del tipo { Key: string, Value: any } da usare come sorgente dati per la eqp-select.
|
|
2473
2473
|
*/
|
|
2474
2474
|
setArrayData() {
|
|
2475
|
-
if (
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2475
|
+
if (this.field.ValuePairs != null) {
|
|
2476
|
+
if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
|
|
2477
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
|
|
2478
|
+
}
|
|
2479
|
+
else {
|
|
2480
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
|
|
2481
|
+
}
|
|
2480
2482
|
}
|
|
2481
2483
|
}
|
|
2482
2484
|
createArrayDataElement(key, value, imgUrl = null) {
|
|
@@ -6934,11 +6936,13 @@ class ListValueFilterTemplateComponent {
|
|
|
6934
6936
|
*/
|
|
6935
6937
|
setArrayData() {
|
|
6936
6938
|
this.prepareValuePairs();
|
|
6937
|
-
if (
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6939
|
+
if (this.field.ValuePairs != null) {
|
|
6940
|
+
if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
|
|
6941
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
|
|
6942
|
+
}
|
|
6943
|
+
else {
|
|
6944
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
|
|
6945
|
+
}
|
|
6942
6946
|
}
|
|
6943
6947
|
}
|
|
6944
6948
|
prepareValuePairs() {
|
|
@@ -7337,11 +7341,13 @@ class ImageSelectorFilterTemplateComponent {
|
|
|
7337
7341
|
*/
|
|
7338
7342
|
setArrayData() {
|
|
7339
7343
|
this.prepareValuePairs();
|
|
7340
|
-
if (
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7344
|
+
if (this.field.ValuePairs != null) {
|
|
7345
|
+
if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
|
|
7346
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
|
|
7347
|
+
}
|
|
7348
|
+
else {
|
|
7349
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
|
|
7350
|
+
}
|
|
7345
7351
|
}
|
|
7346
7352
|
}
|
|
7347
7353
|
prepareValuePairs() {
|
|
@@ -9449,7 +9455,6 @@ class AddFormFieldComponent {
|
|
|
9449
9455
|
FieldTypeEnum["Form di dettaglio"],
|
|
9450
9456
|
FieldTypeEnum["Data e/o ora"],
|
|
9451
9457
|
].includes(this.field.FieldType)) {
|
|
9452
|
-
this.field.Formula = null;
|
|
9453
9458
|
this.fieldFormGroup.controls["LabelstyleCSS"].disable();
|
|
9454
9459
|
this.fieldFormGroup.controls["FieldstyleCSS"].disable();
|
|
9455
9460
|
}
|
|
@@ -9458,7 +9463,6 @@ class AddFormFieldComponent {
|
|
|
9458
9463
|
this.fieldFormGroup.controls["FieldstyleCSS"].enable();
|
|
9459
9464
|
}
|
|
9460
9465
|
if ([FieldTypeEnum.Booleano].includes(this.field.FieldType)) {
|
|
9461
|
-
this.field.Formula = null;
|
|
9462
9466
|
this.fieldFormGroup.controls["LabelstyleCSS"].disable();
|
|
9463
9467
|
}
|
|
9464
9468
|
else {
|
|
@@ -10993,6 +10997,9 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
10993
10997
|
};
|
|
10994
10998
|
}
|
|
10995
10999
|
setImportedForm(form) {
|
|
11000
|
+
// Modifica del creation user su Import
|
|
11001
|
+
form.CreationUser = this.UserID;
|
|
11002
|
+
// Modifica dei Field su Import
|
|
10996
11003
|
form.Fields.forEach((field) => {
|
|
10997
11004
|
if (field.FieldType == FieldTypeEnum["Elenco immagini"]) {
|
|
10998
11005
|
field.AttachmentList.forEach((attachment) => {
|
|
@@ -11147,9 +11154,13 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
11147
11154
|
* @param field Oggetto BaseField da modificare. Se null ne viene creata una nuova istanza per l'aggiunta.
|
|
11148
11155
|
*/
|
|
11149
11156
|
openFieldDialog(field = null) {
|
|
11157
|
+
console.log("openFieldDialog", field);
|
|
11150
11158
|
if (field) {
|
|
11151
11159
|
this.indexSelectedField = this.form.Fields.indexOf(field);
|
|
11152
11160
|
this.selectedField = JSON.parse(JSON.stringify(field));
|
|
11161
|
+
// Dato che con il JSON.parse si perde per strada la formula, la rimetto dopo.
|
|
11162
|
+
// Tanto oramai il riferimento con "field" è stato perso e stiamo passando una stringa
|
|
11163
|
+
this.selectedField.Formula = field.Formula;
|
|
11153
11164
|
if (this.selectedField.AnswerStyle == null) {
|
|
11154
11165
|
this.selectedField.AnswerStyle = { InListView: true, VisibleIf: null, FieldstyleCSS: "", LabelstyleCSS: "", ColSpanSizes: [] };
|
|
11155
11166
|
}
|
|
@@ -12160,11 +12171,13 @@ class ListValueTriggerTemplateComponent {
|
|
|
12160
12171
|
*/
|
|
12161
12172
|
setArrayData() {
|
|
12162
12173
|
this.prepareValuePairs();
|
|
12163
|
-
if (
|
|
12164
|
-
|
|
12165
|
-
|
|
12166
|
-
|
|
12167
|
-
|
|
12174
|
+
if (this.field.ValuePairs != null) {
|
|
12175
|
+
if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
|
|
12176
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
|
|
12177
|
+
}
|
|
12178
|
+
else {
|
|
12179
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
|
|
12180
|
+
}
|
|
12168
12181
|
}
|
|
12169
12182
|
}
|
|
12170
12183
|
prepareValuePairs() {
|