@eqproject/eqp-dynamic-module 2.10.38 → 2.10.40
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/private/dbgetter/dbgetter.component.mjs +31 -6
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +26 -3
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +55 -7
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +55 -7
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5948,7 +5948,12 @@ class DbgetterComponent {
|
|
|
5948
5948
|
if (correspondingCol == null) {
|
|
5949
5949
|
correspondingCol = document.getElementById("col-" + key + "-id-" + row['ID']);
|
|
5950
5950
|
}
|
|
5951
|
-
|
|
5951
|
+
if (this.field.DataGetter.DataGetterColumnForce == null) {
|
|
5952
|
+
correspondingCol.classList.add("row-selected");
|
|
5953
|
+
}
|
|
5954
|
+
else {
|
|
5955
|
+
correspondingCol.parentElement.classList.add("row-selected");
|
|
5956
|
+
}
|
|
5952
5957
|
}
|
|
5953
5958
|
else {
|
|
5954
5959
|
var index = this.selectedElements.findIndex(x => x.ID == row['ID']);
|
|
@@ -5957,7 +5962,12 @@ class DbgetterComponent {
|
|
|
5957
5962
|
if (correspondingCol == null) {
|
|
5958
5963
|
correspondingCol = document.getElementById("col-" + key + "-id-" + row['ID']);
|
|
5959
5964
|
}
|
|
5960
|
-
|
|
5965
|
+
if (this.field.DataGetter.DataGetterColumnForce == null) {
|
|
5966
|
+
correspondingCol.classList.remove("row-selected");
|
|
5967
|
+
}
|
|
5968
|
+
else {
|
|
5969
|
+
correspondingCol.parentElement.classList.remove("row-selected");
|
|
5970
|
+
}
|
|
5961
5971
|
}
|
|
5962
5972
|
//this.selectedValue.emit([this.selectedElements]);
|
|
5963
5973
|
}
|
|
@@ -5972,17 +5982,32 @@ class DbgetterComponent {
|
|
|
5972
5982
|
this.selectedElements.forEach((selectedElement) => {
|
|
5973
5983
|
var correspondingCol = document.getElementById("col-" + selectedElement.Field + "-id-" + selectedElement.ID);
|
|
5974
5984
|
if (correspondingCol != null) {
|
|
5975
|
-
|
|
5985
|
+
if (this.field.DataGetter.DataGetterColumnForce == null) {
|
|
5986
|
+
correspondingCol.classList.add("row-selected");
|
|
5987
|
+
}
|
|
5988
|
+
else {
|
|
5989
|
+
correspondingCol.parentElement.classList.add("row-selected");
|
|
5990
|
+
}
|
|
5976
5991
|
}
|
|
5977
5992
|
else {
|
|
5978
5993
|
correspondingCol = document.getElementById("col-" + selectedElement.KeySV + "-id-" + selectedElement.ID);
|
|
5979
5994
|
if (correspondingCol != null) {
|
|
5980
|
-
|
|
5995
|
+
if (this.field.DataGetter.DataGetterColumnForce == null) {
|
|
5996
|
+
correspondingCol.classList.add("row-selected");
|
|
5997
|
+
}
|
|
5998
|
+
else {
|
|
5999
|
+
correspondingCol.parentElement.classList.add("row-selected");
|
|
6000
|
+
}
|
|
5981
6001
|
}
|
|
5982
6002
|
else {
|
|
5983
6003
|
correspondingCol = document.getElementById("col-" + selectedElement.Key + "-id-" + selectedElement.ID);
|
|
5984
6004
|
if (correspondingCol != null) {
|
|
5985
|
-
|
|
6005
|
+
if (this.field.DataGetter.DataGetterColumnForce == null) {
|
|
6006
|
+
correspondingCol.classList.add("row-selected");
|
|
6007
|
+
}
|
|
6008
|
+
else {
|
|
6009
|
+
correspondingCol.parentElement.classList.add("row-selected");
|
|
6010
|
+
}
|
|
5986
6011
|
}
|
|
5987
6012
|
}
|
|
5988
6013
|
}
|
|
@@ -6344,15 +6369,38 @@ class DynamicModuleFieldFixComponent {
|
|
|
6344
6369
|
//#region onSelectedValue
|
|
6345
6370
|
onSelectedValue(value) {
|
|
6346
6371
|
GlobalService.debugLog("onSelectedValue FROM DBGETTER", value);
|
|
6372
|
+
console.log("onSelectedValue FROM DBGETTER", value, this.field, this.field.FieldType == FieldTypeEnum['Elenco generico']);
|
|
6347
6373
|
if (value[0] == "****CLOSE****") {
|
|
6348
6374
|
return;
|
|
6349
6375
|
}
|
|
6350
6376
|
if (this.field.FieldType == FieldTypeEnum['Campo di testo']) {
|
|
6351
|
-
|
|
6377
|
+
var valueToPut = null;
|
|
6378
|
+
if (value == null) {
|
|
6379
|
+
valueToPut = null;
|
|
6380
|
+
}
|
|
6381
|
+
else if (Array.isArray(value[0])) {
|
|
6382
|
+
valueToPut = value[0][0];
|
|
6383
|
+
}
|
|
6384
|
+
else {
|
|
6385
|
+
valueToPut = value[0];
|
|
6386
|
+
}
|
|
6387
|
+
console.log("VALUETOPUT campoditesto", value, valueToPut);
|
|
6388
|
+
this.record[this.field.Name] = valueToPut;
|
|
6352
6389
|
}
|
|
6353
6390
|
if (this.field.FieldType == FieldTypeEnum['Elenco generico']) {
|
|
6354
6391
|
GlobalService.debugLog("onSelectedValue FROM DBGETTER ELENCO GENERICO", value);
|
|
6355
|
-
|
|
6392
|
+
var valueToPut = null;
|
|
6393
|
+
if (value == null) {
|
|
6394
|
+
valueToPut = [];
|
|
6395
|
+
}
|
|
6396
|
+
else if (Array.isArray(value[0])) {
|
|
6397
|
+
valueToPut = value[0][0];
|
|
6398
|
+
}
|
|
6399
|
+
else {
|
|
6400
|
+
valueToPut = value[0];
|
|
6401
|
+
}
|
|
6402
|
+
console.log("VALUETOPUT elencogenerico", value, valueToPut);
|
|
6403
|
+
this.record[this.field.Name] = valueToPut;
|
|
6356
6404
|
this.DBGetterFieldsLoaded = false;
|
|
6357
6405
|
setTimeout(() => { this.DBGetterFieldsLoaded = true; }, 1000);
|
|
6358
6406
|
}
|