@eqproject/eqp-dynamic-module 2.10.42 → 2.10.44
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/dbg-templates/list-value-dbg-template/list-value-dbg-template.component.mjs +4 -1
- package/esm2020/lib/components/private/dbgetter/dbgetter.component.mjs +22 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +24 -0
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +24 -0
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/dbgetter/dbgetter.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -5884,6 +5884,24 @@ class DbgetterComponent {
|
|
|
5884
5884
|
var keyused;
|
|
5885
5885
|
var value = row[key];
|
|
5886
5886
|
var valueToBeSet = "";
|
|
5887
|
+
if (!this.field.IsMultiChoiche) {
|
|
5888
|
+
if (this.selectedElements.length > 0) {
|
|
5889
|
+
this.selectedElements.forEach((selectedElement, index) => {
|
|
5890
|
+
this.selectedElements.splice(index, 1);
|
|
5891
|
+
var correspondingCol = document.getElementById("col-" + selectedElement.KeyUsedSV + "-id-" + row['ID']);
|
|
5892
|
+
if (correspondingCol == null) {
|
|
5893
|
+
correspondingCol = document.getElementById("col-" + selectedElement.KeySV + "-id-" + row['ID']);
|
|
5894
|
+
}
|
|
5895
|
+
if (this.field.DataGetter.DataGetterColumnForce == null) {
|
|
5896
|
+
correspondingCol.classList.remove("row-selected");
|
|
5897
|
+
}
|
|
5898
|
+
else {
|
|
5899
|
+
correspondingCol.parentElement.classList.remove("row-selected");
|
|
5900
|
+
}
|
|
5901
|
+
});
|
|
5902
|
+
this.selectedElements = new Array();
|
|
5903
|
+
}
|
|
5904
|
+
}
|
|
5887
5905
|
if (this.field.DataGetter.DataGetterColumnForce == null) {
|
|
5888
5906
|
valueToBeSet = value;
|
|
5889
5907
|
keyused = key;
|
|
@@ -5918,6 +5936,9 @@ class DbgetterComponent {
|
|
|
5918
5936
|
}
|
|
5919
5937
|
else {
|
|
5920
5938
|
GlobalService.debugLog("ho multiselect");
|
|
5939
|
+
if (this.selectedElements != null && !Array.isArray(this.selectedElements)) {
|
|
5940
|
+
this.selectedElements = [this.selectedElements];
|
|
5941
|
+
}
|
|
5921
5942
|
if (this.selectedElements == null) {
|
|
5922
5943
|
this.selectedElements = new Array();
|
|
5923
5944
|
}
|
|
@@ -6189,6 +6210,9 @@ class ListValueDbgTemplateComponent {
|
|
|
6189
6210
|
}
|
|
6190
6211
|
ngOnInit() {
|
|
6191
6212
|
if (this.record[this.field.Name] != null) {
|
|
6213
|
+
if (!Array.isArray(this.record[this.field.Name])) {
|
|
6214
|
+
this.record[this.field.Name] = [this.record[this.field.Name]];
|
|
6215
|
+
}
|
|
6192
6216
|
this.record[this.field.Name].forEach(element => {
|
|
6193
6217
|
var pushElement = new ListValueElement();
|
|
6194
6218
|
pushElement.ID = element.ID;
|