@eqproject/eqp-dynamic-module 2.6.2 → 2.6.3
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 +1 -2
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +1 -41
- package/esm2020/lib/components/private/dbgetter/dbgetter.component.mjs +1 -7
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +1 -4
- package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +1 -2
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +0 -51
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +0 -51
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4076,11 +4076,6 @@ class DbgetterComponent {
|
|
|
4076
4076
|
this.haveQuestions = false;
|
|
4077
4077
|
}
|
|
4078
4078
|
ngOnInit() {
|
|
4079
|
-
console.log("Welcome to DBGETTER Country");
|
|
4080
|
-
console.log("field", this.field);
|
|
4081
|
-
console.log("record", this.record);
|
|
4082
|
-
console.log("inConfig", this.inConfig);
|
|
4083
|
-
console.log("QueryEditorComponent", this.QueryEditorComponent);
|
|
4084
4079
|
if (this.QueryEditorComponent != null) {
|
|
4085
4080
|
this.QueryEditorComponent.inputParams.config.mode = QueryEditorModeEnum.RESULT;
|
|
4086
4081
|
this.QueryEditorComponent.inputParams.config.field = this.field;
|
|
@@ -4103,7 +4098,6 @@ class DbgetterComponent {
|
|
|
4103
4098
|
}
|
|
4104
4099
|
}
|
|
4105
4100
|
onExternalSQLResultOut(ev) {
|
|
4106
|
-
console.log("La query del Query Editor è stata eseguita, ed ha restituito il seguente risultato: ", ev);
|
|
4107
4101
|
if (ev.Behaviours.indexOf("send-out") != -1) {
|
|
4108
4102
|
this.out.emit(ev);
|
|
4109
4103
|
}
|
|
@@ -4585,7 +4579,6 @@ class AddFormRecordComponent {
|
|
|
4585
4579
|
this.utilityService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDEndPoint, dynamicModuleParams, (res) => {
|
|
4586
4580
|
this.form = res;
|
|
4587
4581
|
this.form.OrgaID = this.orgaID;
|
|
4588
|
-
console.log("THIS FORM IN ADD-FORM-RECORD 1", this.form);
|
|
4589
4582
|
this.setDataGetter(this.form);
|
|
4590
4583
|
GlobalService.debugLog('getFormByID - DynaForm', this.form);
|
|
4591
4584
|
this.fieldsConfig();
|
|
@@ -4651,7 +4644,6 @@ class AddFormRecordComponent {
|
|
|
4651
4644
|
else {
|
|
4652
4645
|
this.getAllRecordAttachments(this.record.ID);
|
|
4653
4646
|
}
|
|
4654
|
-
console.log("THIS FORM IN ADD-FORM-RECORD 2", this.form);
|
|
4655
4647
|
});
|
|
4656
4648
|
}
|
|
4657
4649
|
getAllRecordAttachments(recordID) {
|
|
@@ -4962,7 +4954,6 @@ class AddFormRecordComponent {
|
|
|
4962
4954
|
if (field.DataGetterValueBase64String != null) {
|
|
4963
4955
|
field.DataGetter = JSON.parse(atob(field.DataGetterValueBase64String));
|
|
4964
4956
|
field.DataGetter.DataGetterType = field.DataGetter.DataGetterType == null ? DataGetterTypeEnum.Manuale : field.DataGetter.DataGetterType;
|
|
4965
|
-
console.log("setDataGetter", field.DataGetter);
|
|
4966
4957
|
}
|
|
4967
4958
|
else {
|
|
4968
4959
|
field.DataGetter = new DataGetter();
|
|
@@ -5636,7 +5627,6 @@ class ListViewFormRecordComponent {
|
|
|
5636
5627
|
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDEndPoint, dynamicModuleParams, (res) => {
|
|
5637
5628
|
this.form = res;
|
|
5638
5629
|
this.form.OrgaID = this.orgaID;
|
|
5639
|
-
console.log("this.form in LIST VIEW", this.form);
|
|
5640
5630
|
this.loadedform = true;
|
|
5641
5631
|
this.configureColumns();
|
|
5642
5632
|
}, (err) => { });
|
|
@@ -8911,7 +8901,6 @@ class AddFormFieldComponent {
|
|
|
8911
8901
|
AnswerStyleInListView: [this.field.AnswerStyle.InListView],
|
|
8912
8902
|
});
|
|
8913
8903
|
if (this.formFieldsGroups) {
|
|
8914
|
-
console.log("CREAZIONE FIELD: ", "FieldGroup");
|
|
8915
8904
|
this.fieldFormGroup.addControl("FieldGroup", new UntypedFormControl(this.field.FieldGroup, Validators.required));
|
|
8916
8905
|
}
|
|
8917
8906
|
}
|
|
@@ -9003,19 +8992,15 @@ class AddFormFieldComponent {
|
|
|
9003
8992
|
if (this.field.Microphone == null) {
|
|
9004
8993
|
this.field.Microphone = false;
|
|
9005
8994
|
}
|
|
9006
|
-
console.log("CREAZIONE FIELD: ", "TextMask");
|
|
9007
8995
|
this.fieldFormGroup.addControl("TextMask", new UntypedFormControl(this.field.TextMask));
|
|
9008
|
-
console.log("CREAZIONE FIELD: ", "MaxLenght");
|
|
9009
8996
|
this.fieldFormGroup.addControl("MaxLenght", new UntypedFormControl(this.field.MaxLenght, [
|
|
9010
8997
|
this.questionPoll,
|
|
9011
8998
|
Validators.pattern("^[0-9]*$"),
|
|
9012
8999
|
]));
|
|
9013
|
-
console.log("CREAZIONE FIELD: ", "MinLenght");
|
|
9014
9000
|
this.fieldFormGroup.addControl("MinLenght", new UntypedFormControl(this.field.MinLenght, [
|
|
9015
9001
|
this.questionPoll,
|
|
9016
9002
|
Validators.pattern("^[0-9]*$"),
|
|
9017
9003
|
]));
|
|
9018
|
-
console.log("CREAZIONE FIELD: ", "Microphone");
|
|
9019
9004
|
this.fieldFormGroup.addControl("Microphone", new UntypedFormControl(this.field.Microphone));
|
|
9020
9005
|
this.fieldTypeFormTemplate = this.textFieldFormTemplate;
|
|
9021
9006
|
break;
|
|
@@ -9025,7 +9010,6 @@ class AddFormFieldComponent {
|
|
|
9025
9010
|
if (this.field.Etichetta == null) {
|
|
9026
9011
|
this.field.Etichetta = "";
|
|
9027
9012
|
}
|
|
9028
|
-
console.log("CREAZIONE FIELD: ", "Etichetta");
|
|
9029
9013
|
this.fieldFormGroup.addControl("Etichetta", new UntypedFormControl(this.field.Etichetta));
|
|
9030
9014
|
this.fieldTypeFormTemplate = this.labelFieldFormTemplate;
|
|
9031
9015
|
break;
|
|
@@ -9035,31 +9019,25 @@ class AddFormFieldComponent {
|
|
|
9035
9019
|
if (this.field.Microphone == null) {
|
|
9036
9020
|
this.field.Microphone = false;
|
|
9037
9021
|
}
|
|
9038
|
-
console.log("CREAZIONE FIELD: ", "Rows");
|
|
9039
9022
|
this.fieldFormGroup.addControl("Rows", new UntypedFormControl(this.field.Rows, [
|
|
9040
9023
|
this.questionPoll,
|
|
9041
9024
|
Validators.pattern("^[0-9]*$"),
|
|
9042
9025
|
]));
|
|
9043
|
-
console.log("CREAZIONE FIELD: ", "MaxLenght");
|
|
9044
9026
|
this.fieldFormGroup.addControl("MaxLenght", new UntypedFormControl(this.field.MaxLenght, [
|
|
9045
9027
|
this.questionPoll,
|
|
9046
9028
|
Validators.pattern("^[0-9]*$"),
|
|
9047
9029
|
]));
|
|
9048
|
-
console.log("CREAZIONE FIELD: ", "MinLenght");
|
|
9049
9030
|
this.fieldFormGroup.addControl("MinLenght", new UntypedFormControl(this.field.MinLenght, [
|
|
9050
9031
|
this.questionPoll,
|
|
9051
9032
|
Validators.pattern("^[0-9]*$"),
|
|
9052
9033
|
]));
|
|
9053
|
-
console.log("CREAZIONE FIELD: ", "Microphone");
|
|
9054
9034
|
this.fieldFormGroup.addControl("Microphone", new UntypedFormControl(this.field.Microphone));
|
|
9055
9035
|
this.fieldTypeFormTemplate = this.textareaFieldFormTemplate;
|
|
9056
9036
|
break;
|
|
9057
9037
|
//#endregion AREA DI TESTO
|
|
9058
9038
|
//#region BOOLEANO
|
|
9059
9039
|
case FieldTypeEnum.Booleano:
|
|
9060
|
-
console.log("CREAZIONE FIELD: ", "IsTristate");
|
|
9061
9040
|
this.fieldFormGroup.addControl("IsTristate", new UntypedFormControl(this.field.IsTristate));
|
|
9062
|
-
console.log("CREAZIONE FIELD: ", "PresentationType");
|
|
9063
9041
|
this.fieldFormGroup.addControl("PresetationType", new UntypedFormControl(this.field.PresetationType, Validators.required));
|
|
9064
9042
|
this.fieldTypeFormTemplate = this.booleadFieldFormTemplate;
|
|
9065
9043
|
break;
|
|
@@ -9069,16 +9047,12 @@ class AddFormFieldComponent {
|
|
|
9069
9047
|
if (this.field.IsOnlyDate == null) {
|
|
9070
9048
|
this.field.IsOnlyDate = DateTimeTypeEnum["Solo data"];
|
|
9071
9049
|
}
|
|
9072
|
-
console.log("CREAZIONE FIELD: ", "IsOnlyDate");
|
|
9073
9050
|
this.fieldFormGroup.addControl("IsOnlyDate", new UntypedFormControl(this.field.IsOnlyDate, [
|
|
9074
9051
|
Validators.required,
|
|
9075
9052
|
this.questionPoll,
|
|
9076
9053
|
]));
|
|
9077
|
-
console.log("CREAZIONE FIELD: ", "MinDate");
|
|
9078
9054
|
this.fieldFormGroup.addControl("MinDate", new UntypedFormControl(this.field.MinDate, this.questionPoll));
|
|
9079
|
-
console.log("CREAZIONE FIELD: ", "MaxDate");
|
|
9080
9055
|
this.fieldFormGroup.addControl("MaxDate", new UntypedFormControl(this.field.MaxDate, this.questionPoll));
|
|
9081
|
-
console.log("CREAZIONE FIELD: ", "DateFormat");
|
|
9082
9056
|
this.fieldFormGroup.addControl("DateFormat", new UntypedFormControl(this.field.DateFormat));
|
|
9083
9057
|
this.fieldTypeFormTemplate = this.dateFieldFormTemplate;
|
|
9084
9058
|
break;
|
|
@@ -9088,36 +9062,26 @@ class AddFormFieldComponent {
|
|
|
9088
9062
|
if (this.field.IsInteger == null) {
|
|
9089
9063
|
this.field.IsInteger = true;
|
|
9090
9064
|
}
|
|
9091
|
-
console.log("CREAZIONE FIELD: ", "IsInteger");
|
|
9092
9065
|
this.fieldFormGroup.addControl("IsInteger", new UntypedFormControl(this.field.IsInteger));
|
|
9093
|
-
console.log("CREAZIONE FIELD: ", "MinValue");
|
|
9094
9066
|
this.fieldFormGroup.addControl("MinValue", new UntypedFormControl(this.field.MinValue, [
|
|
9095
9067
|
this.questionPoll,
|
|
9096
9068
|
Validators.pattern("^-?[0-9]+(,[0-9]+|\.[0-9]+)?$"), //("^[0-9]*$"),
|
|
9097
9069
|
]));
|
|
9098
|
-
console.log("CREAZIONE FIELD: ", "MaxValue");
|
|
9099
9070
|
this.fieldFormGroup.addControl("MaxValue", new UntypedFormControl(this.field.MaxValue, [
|
|
9100
9071
|
this.questionPoll,
|
|
9101
9072
|
Validators.pattern("^-?[0-9]+(,[0-9]+|\.[0-9]+)?$"), //("^[0-9]*$"),
|
|
9102
9073
|
]));
|
|
9103
|
-
console.log("CREAZIONE FIELD: ", "DecimalSeparator");
|
|
9104
9074
|
this.fieldFormGroup.addControl("DecimalSeparator", new UntypedFormControl(this.field.DecimalSeparator, [this.questionPoll, Validators.pattern("^[a-zA-Z -/',._/\\^<>]+")]));
|
|
9105
|
-
console.log("CREAZIONE FIELD: ", "DecimalPrecision");
|
|
9106
9075
|
this.fieldFormGroup.addControl("DecimalPrecision", new UntypedFormControl(this.field.DecimalPrecision, [this.questionPoll, Validators.pattern("^[0-9]+$")]));
|
|
9107
|
-
console.log("CREAZIONE FIELD: ", "ThousandsSeparator");
|
|
9108
9076
|
this.fieldFormGroup.addControl("ThousandsSeparator", new UntypedFormControl(this.field.ThousandsSeparator, [this.questionPoll, Validators.pattern("^[a-zA-Z -/',._/\\^<>]+")]));
|
|
9109
|
-
console.log("CREAZIONE FIELD: ", "CurrencySymbol");
|
|
9110
9077
|
this.fieldFormGroup.addControl("CurrencySymbol", new UntypedFormControl(this.field.CurrencySymbol, this.questionPoll));
|
|
9111
|
-
console.log("CREAZIONE FIELD: ", "MeasureUnit");
|
|
9112
9078
|
this.fieldFormGroup.addControl("MeasureUnit", new UntypedFormControl(this.field.MeasureUnit, this.questionPoll));
|
|
9113
9079
|
this.fieldTypeFormTemplate = this.numericFieldFormTemplate;
|
|
9114
9080
|
break;
|
|
9115
9081
|
//#endregion CAMPO NUMERICO
|
|
9116
9082
|
//#region ALLEGATO
|
|
9117
9083
|
case FieldTypeEnum.Allegato:
|
|
9118
|
-
console.log("CREAZIONE FIELD: ", "AllowedExtensions");
|
|
9119
9084
|
this.fieldFormGroup.addControl("AllowedExtensions", new UntypedFormControl(this.field.AllowedExtensions));
|
|
9120
|
-
console.log("CREAZIONE FIELD: ", "IsMultiAttach");
|
|
9121
9085
|
this.fieldFormGroup.addControl("IsMultiAttach", new UntypedFormControl(this.field.IsMultiAttach));
|
|
9122
9086
|
this.fieldTypeFormTemplate = this.attachmentFieldFormTemplate;
|
|
9123
9087
|
break;
|
|
@@ -9130,10 +9094,8 @@ class AddFormFieldComponent {
|
|
|
9130
9094
|
if (typeof this.field.EnableDrawing == "undefined") {
|
|
9131
9095
|
this.field.EnableDrawing = false;
|
|
9132
9096
|
}
|
|
9133
|
-
console.log("CREAZIONE FIELD: ", "ResizedImagesHeightPx");
|
|
9134
9097
|
this.fieldFormGroup.addControl("ResizedImagesHeightPx", new UntypedFormControl(this.field.ResizedImagesHeightPx, [Validators.required, Validators.max(4320)]));
|
|
9135
9098
|
this.field.ResizedImagesHeightPx = this.field.ResizedImagesHeightPx != null ? this.field.ResizedImagesHeightPx : 128;
|
|
9136
|
-
console.log("CREAZIONE FIELD: ", "EnableDrawing");
|
|
9137
9099
|
this.fieldFormGroup.addControl("EnableDrawing", new UntypedFormControl(this.field.EnableDrawing));
|
|
9138
9100
|
this.fieldTypeFormTemplate = this.imageFieldFormTemplate;
|
|
9139
9101
|
break;
|
|
@@ -9163,34 +9125,27 @@ class AddFormFieldComponent {
|
|
|
9163
9125
|
if (this.field.Invisibility == null) {
|
|
9164
9126
|
this.field.Invisibility = FieldInvisibilityEnum.NASCOSTO;
|
|
9165
9127
|
}
|
|
9166
|
-
console.log("CREAZIONE FIELD: ", "IsMultiChoiche");
|
|
9167
9128
|
this.fieldFormGroup.addControl("IsMultiChoiche", new UntypedFormControl(this.field.IsMultiChoiche));
|
|
9168
|
-
console.log("CREAZIONE FIELD: ", "PresentationMode");
|
|
9169
9129
|
this.fieldFormGroup.addControl("PresentationMode", new UntypedFormControl(this.field.PresentationMode, Validators.required));
|
|
9170
9130
|
this.fieldTypeFormTemplate = this.listValueFieldFormTemplate;
|
|
9171
9131
|
break;
|
|
9172
9132
|
//#endregion ELENCO GENERICO
|
|
9173
9133
|
//#region ELENCO IMMAGINI
|
|
9174
9134
|
case FieldTypeEnum["Elenco immagini"]:
|
|
9175
|
-
console.log("CREAZIONE FIELD: ", "IsMultiChoiche");
|
|
9176
9135
|
this.fieldFormGroup.addControl("IsMultiChoiche", new UntypedFormControl(this.field.IsMultiChoiche));
|
|
9177
|
-
console.log("CREAZIONE FIELD: ", "ResizedImagesHeightPx");
|
|
9178
9136
|
this.fieldFormGroup.addControl("ResizedImagesHeightPx", new UntypedFormControl(this.field.ResizedImagesHeightPx, [Validators.required, Validators.max(4320)]));
|
|
9179
9137
|
this.fieldTypeFormTemplate = this.imageFieldSelectorFormTemplate;
|
|
9180
9138
|
break;
|
|
9181
9139
|
//#endregion ELENCO IMMAGINI
|
|
9182
9140
|
//#region IMMAGINE CON MARKER
|
|
9183
9141
|
case FieldTypeEnum["Immagine con markers"]:
|
|
9184
|
-
console.log("CREAZIONE FIELD: ", "ResizedImagesHeightPx");
|
|
9185
9142
|
this.fieldFormGroup.addControl("ResizedImagesHeightPx", new UntypedFormControl(this.field.ResizedImagesHeightPx, [Validators.required, Validators.max(4320)]));
|
|
9186
9143
|
this.fieldTypeFormTemplate = this.imageWithMarkersFieldFormTemplate;
|
|
9187
9144
|
break;
|
|
9188
9145
|
//#endregion IMMAGINE CON MARKER
|
|
9189
9146
|
//#region LOOKUP
|
|
9190
9147
|
case FieldTypeEnum.Lookup:
|
|
9191
|
-
console.log("CREAZIONE FIELD: ", "EntitySourceName");
|
|
9192
9148
|
this.fieldFormGroup.addControl("EntitySourceName", new UntypedFormControl(this.field.EntitySourceName, Validators.required));
|
|
9193
|
-
console.log("CREAZIONE FIELD: ", "UseAsGetOrDiscard");
|
|
9194
9149
|
this.fieldFormGroup.addControl("UseAsGetOrDiscard", new UntypedFormControl(this.field.UseAsGetOrDiscard));
|
|
9195
9150
|
this.fieldTypeFormTemplate = this.lookupFieldFormTemplate;
|
|
9196
9151
|
break;
|
|
@@ -9481,7 +9436,6 @@ class AddFormFieldComponent {
|
|
|
9481
9436
|
});
|
|
9482
9437
|
this.dialogFormulaRef.afterClosed().subscribe((result) => {
|
|
9483
9438
|
this.field.Formula = result.formula.toString() == "" ? null : result.formula.toString();
|
|
9484
|
-
console.log("this.field.Formula", this.field.Formula);
|
|
9485
9439
|
});
|
|
9486
9440
|
}
|
|
9487
9441
|
openVisibleIfDialog() {
|
|
@@ -9791,12 +9745,9 @@ class AddFormFieldComponent {
|
|
|
9791
9745
|
}
|
|
9792
9746
|
treatDataFromQueryEditor(data) {
|
|
9793
9747
|
this.field.DataGetter.DataGetterValue = data;
|
|
9794
|
-
console.log("data on field.DataGetter.DataGetterValue", data);
|
|
9795
9748
|
this.createColumnKeys(data);
|
|
9796
|
-
console.log("event out on dynamic module for saving", data);
|
|
9797
9749
|
}
|
|
9798
9750
|
createColumnKeys(data) {
|
|
9799
|
-
console.log("createColumnKeys", data);
|
|
9800
9751
|
if (data == null && this.field.DataGetter.DataGetterValue != null) {
|
|
9801
9752
|
data = this.field.DataGetter.DataGetterValue;
|
|
9802
9753
|
}
|
|
@@ -9817,7 +9768,6 @@ class AddFormFieldComponent {
|
|
|
9817
9768
|
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetAllFormEndPoint, dynamicModuleParams, (res) => {
|
|
9818
9769
|
this.forms = res;
|
|
9819
9770
|
this.DMField = null;
|
|
9820
|
-
console.log("this.field.DataGetter.DataGetterValue", this.DMModule, this.field.DataGetter.DataGetterValue);
|
|
9821
9771
|
if (this.DMModule == null && this.field.DataGetter.DataGetterValue != null) {
|
|
9822
9772
|
this.DMModule = this.forms.find(x => x.Code == this.field.DataGetter.DataGetterValue);
|
|
9823
9773
|
this.DMModule.Fields = JSON.parse(this.DMModule.JsonFields);
|
|
@@ -10026,7 +9976,6 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
10026
9976
|
this.innerFormRef =
|
|
10027
9977
|
this.configurations.dynamicModuleConfiguratorSpecificConfig.innerFormRef;
|
|
10028
9978
|
this.form.OrgaID = this.orgaID;
|
|
10029
|
-
console.log("THE ORGA ID", this.orgaID, this.form);
|
|
10030
9979
|
this.configureDefaultEndPoints();
|
|
10031
9980
|
this.getFormByID();
|
|
10032
9981
|
if (this.context) {
|