@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
|
@@ -2135,10 +2135,10 @@ class DateFieldTemplateComponent {
|
|
|
2135
2135
|
}
|
|
2136
2136
|
}
|
|
2137
2137
|
DateFieldTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateFieldTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2138
|
-
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
|
|
2138
|
+
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"] }] });
|
|
2139
2139
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateFieldTemplateComponent, decorators: [{
|
|
2140
2140
|
type: Component,
|
|
2141
|
-
args: [{ selector: 'date-field-template', template: "<tmw-datetimepicker
|
|
2141
|
+
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>" }]
|
|
2142
2142
|
}], ctorParameters: function () { return []; }, propDecorators: { field: [{
|
|
2143
2143
|
type: Input
|
|
2144
2144
|
}], record: [{
|
|
@@ -2477,11 +2477,13 @@ class ListValueFieldTemplateComponent {
|
|
|
2477
2477
|
* Metodo per creare un array di oggetti del tipo { Key: string, Value: any } da usare come sorgente dati per la eqp-select.
|
|
2478
2478
|
*/
|
|
2479
2479
|
setArrayData() {
|
|
2480
|
-
if (
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2480
|
+
if (this.field.ValuePairs != null) {
|
|
2481
|
+
if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
|
|
2482
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
|
|
2483
|
+
}
|
|
2484
|
+
else {
|
|
2485
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
|
|
2486
|
+
}
|
|
2485
2487
|
}
|
|
2486
2488
|
}
|
|
2487
2489
|
createArrayDataElement(key, value, imgUrl = null) {
|
|
@@ -6956,11 +6958,13 @@ class ListValueFilterTemplateComponent {
|
|
|
6956
6958
|
*/
|
|
6957
6959
|
setArrayData() {
|
|
6958
6960
|
this.prepareValuePairs();
|
|
6959
|
-
if (
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6961
|
+
if (this.field.ValuePairs != null) {
|
|
6962
|
+
if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
|
|
6963
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
|
|
6964
|
+
}
|
|
6965
|
+
else {
|
|
6966
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
|
|
6967
|
+
}
|
|
6964
6968
|
}
|
|
6965
6969
|
}
|
|
6966
6970
|
prepareValuePairs() {
|
|
@@ -7359,11 +7363,13 @@ class ImageSelectorFilterTemplateComponent {
|
|
|
7359
7363
|
*/
|
|
7360
7364
|
setArrayData() {
|
|
7361
7365
|
this.prepareValuePairs();
|
|
7362
|
-
if (
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7366
|
+
if (this.field.ValuePairs != null) {
|
|
7367
|
+
if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
|
|
7368
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
|
|
7369
|
+
}
|
|
7370
|
+
else {
|
|
7371
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
|
|
7372
|
+
}
|
|
7367
7373
|
}
|
|
7368
7374
|
}
|
|
7369
7375
|
prepareValuePairs() {
|
|
@@ -9478,7 +9484,6 @@ class AddFormFieldComponent {
|
|
|
9478
9484
|
FieldTypeEnum["Form di dettaglio"],
|
|
9479
9485
|
FieldTypeEnum["Data e/o ora"],
|
|
9480
9486
|
].includes(this.field.FieldType)) {
|
|
9481
|
-
this.field.Formula = null;
|
|
9482
9487
|
this.fieldFormGroup.controls["LabelstyleCSS"].disable();
|
|
9483
9488
|
this.fieldFormGroup.controls["FieldstyleCSS"].disable();
|
|
9484
9489
|
}
|
|
@@ -9487,7 +9492,6 @@ class AddFormFieldComponent {
|
|
|
9487
9492
|
this.fieldFormGroup.controls["FieldstyleCSS"].enable();
|
|
9488
9493
|
}
|
|
9489
9494
|
if ([FieldTypeEnum.Booleano].includes(this.field.FieldType)) {
|
|
9490
|
-
this.field.Formula = null;
|
|
9491
9495
|
this.fieldFormGroup.controls["LabelstyleCSS"].disable();
|
|
9492
9496
|
}
|
|
9493
9497
|
else {
|
|
@@ -11024,6 +11028,9 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
11024
11028
|
};
|
|
11025
11029
|
}
|
|
11026
11030
|
setImportedForm(form) {
|
|
11031
|
+
// Modifica del creation user su Import
|
|
11032
|
+
form.CreationUser = this.UserID;
|
|
11033
|
+
// Modifica dei Field su Import
|
|
11027
11034
|
form.Fields.forEach((field) => {
|
|
11028
11035
|
if (field.FieldType == FieldTypeEnum["Elenco immagini"]) {
|
|
11029
11036
|
field.AttachmentList.forEach((attachment) => {
|
|
@@ -11178,9 +11185,13 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
11178
11185
|
* @param field Oggetto BaseField da modificare. Se null ne viene creata una nuova istanza per l'aggiunta.
|
|
11179
11186
|
*/
|
|
11180
11187
|
openFieldDialog(field = null) {
|
|
11188
|
+
console.log("openFieldDialog", field);
|
|
11181
11189
|
if (field) {
|
|
11182
11190
|
this.indexSelectedField = this.form.Fields.indexOf(field);
|
|
11183
11191
|
this.selectedField = JSON.parse(JSON.stringify(field));
|
|
11192
|
+
// Dato che con il JSON.parse si perde per strada la formula, la rimetto dopo.
|
|
11193
|
+
// Tanto oramai il riferimento con "field" è stato perso e stiamo passando una stringa
|
|
11194
|
+
this.selectedField.Formula = field.Formula;
|
|
11184
11195
|
if (this.selectedField.AnswerStyle == null) {
|
|
11185
11196
|
this.selectedField.AnswerStyle = { InListView: true, VisibleIf: null, FieldstyleCSS: "", LabelstyleCSS: "", ColSpanSizes: [] };
|
|
11186
11197
|
}
|
|
@@ -12191,11 +12202,13 @@ class ListValueTriggerTemplateComponent {
|
|
|
12191
12202
|
*/
|
|
12192
12203
|
setArrayData() {
|
|
12193
12204
|
this.prepareValuePairs();
|
|
12194
|
-
if (
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12205
|
+
if (this.field.ValuePairs != null) {
|
|
12206
|
+
if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
|
|
12207
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
|
|
12208
|
+
}
|
|
12209
|
+
else {
|
|
12210
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
|
|
12211
|
+
}
|
|
12199
12212
|
}
|
|
12200
12213
|
}
|
|
12201
12214
|
prepareValuePairs() {
|