@yoobic/yobi 8.6.59 → 8.6.60
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.
@@ -1120,6 +1120,7 @@ const YooGridComponent = class {
|
|
1120
1120
|
this.cellEdited.emit(params);
|
1121
1121
|
},
|
1122
1122
|
onSelectionChanged: (params) => {
|
1123
|
+
var _a, _b;
|
1123
1124
|
if (this.disconnected || this.isReadonly) {
|
1124
1125
|
return;
|
1125
1126
|
}
|
@@ -1137,7 +1138,9 @@ const YooGridComponent = class {
|
|
1137
1138
|
this.selected.emit(this.multiple ? this.selection : this.selection.length > 0 ? this.selection[0] : null);
|
1138
1139
|
}
|
1139
1140
|
else {
|
1140
|
-
this.selectionRemoved =
|
1141
|
+
this.selectionRemoved = ((_b = (_a = this.currentQuery) === null || _a === void 0 ? void 0 : _a.selectionRemovedIds) === null || _b === void 0 ? void 0 : _b.map((s) => {
|
1142
|
+
return this.items.find((item) => item[this.idAttributeName || '_id'] === s) || { _id: s };
|
1143
|
+
})) || [];
|
1141
1144
|
params.api.forEachNode((node) => {
|
1142
1145
|
if (node.isSelected() === false && this.findIndex(node.data, true) < 0) {
|
1143
1146
|
this.selectionRemoved.push(node.data);
|
@@ -1037,6 +1037,7 @@ export class YooGridComponent {
|
|
1037
1037
|
this.cellEdited.emit(params);
|
1038
1038
|
},
|
1039
1039
|
onSelectionChanged: (params) => {
|
1040
|
+
var _a, _b;
|
1040
1041
|
if (this.disconnected || this.isReadonly) {
|
1041
1042
|
return;
|
1042
1043
|
}
|
@@ -1054,7 +1055,9 @@ export class YooGridComponent {
|
|
1054
1055
|
this.selected.emit(this.multiple ? this.selection : this.selection.length > 0 ? this.selection[0] : null);
|
1055
1056
|
}
|
1056
1057
|
else {
|
1057
|
-
this.selectionRemoved =
|
1058
|
+
this.selectionRemoved = ((_b = (_a = this.currentQuery) === null || _a === void 0 ? void 0 : _a.selectionRemovedIds) === null || _b === void 0 ? void 0 : _b.map((s) => {
|
1059
|
+
return this.items.find((item) => item[this.idAttributeName || '_id'] === s) || { _id: s };
|
1060
|
+
})) || [];
|
1058
1061
|
params.api.forEachNode((node) => {
|
1059
1062
|
if (node.isSelected() === false && this.findIndex(node.data, true) < 0) {
|
1060
1063
|
this.selectionRemoved.push(node.data);
|
@@ -1116,6 +1116,7 @@ const YooGridComponent = class {
|
|
1116
1116
|
this.cellEdited.emit(params);
|
1117
1117
|
},
|
1118
1118
|
onSelectionChanged: (params) => {
|
1119
|
+
var _a, _b;
|
1119
1120
|
if (this.disconnected || this.isReadonly) {
|
1120
1121
|
return;
|
1121
1122
|
}
|
@@ -1133,7 +1134,9 @@ const YooGridComponent = class {
|
|
1133
1134
|
this.selected.emit(this.multiple ? this.selection : this.selection.length > 0 ? this.selection[0] : null);
|
1134
1135
|
}
|
1135
1136
|
else {
|
1136
|
-
this.selectionRemoved =
|
1137
|
+
this.selectionRemoved = ((_b = (_a = this.currentQuery) === null || _a === void 0 ? void 0 : _a.selectionRemovedIds) === null || _b === void 0 ? void 0 : _b.map((s) => {
|
1138
|
+
return this.items.find((item) => item[this.idAttributeName || '_id'] === s) || { _id: s };
|
1139
|
+
})) || [];
|
1137
1140
|
params.api.forEachNode((node) => {
|
1138
1141
|
if (node.isSelected() === false && this.findIndex(node.data, true) < 0) {
|
1139
1142
|
this.selectionRemoved.push(node.data);
|
@@ -1116,6 +1116,7 @@ const YooGridComponent = class {
|
|
1116
1116
|
this.cellEdited.emit(params);
|
1117
1117
|
},
|
1118
1118
|
onSelectionChanged: (params) => {
|
1119
|
+
var _a, _b;
|
1119
1120
|
if (this.disconnected || this.isReadonly) {
|
1120
1121
|
return;
|
1121
1122
|
}
|
@@ -1133,7 +1134,9 @@ const YooGridComponent = class {
|
|
1133
1134
|
this.selected.emit(this.multiple ? this.selection : this.selection.length > 0 ? this.selection[0] : null);
|
1134
1135
|
}
|
1135
1136
|
else {
|
1136
|
-
this.selectionRemoved =
|
1137
|
+
this.selectionRemoved = ((_b = (_a = this.currentQuery) === null || _a === void 0 ? void 0 : _a.selectionRemovedIds) === null || _b === void 0 ? void 0 : _b.map((s) => {
|
1138
|
+
return this.items.find((item) => item[this.idAttributeName || '_id'] === s) || { _id: s };
|
1139
|
+
})) || [];
|
1137
1140
|
params.api.forEachNode((node) => {
|
1138
1141
|
if (node.isSelected() === false && this.findIndex(node.data, true) < 0) {
|
1139
1142
|
this.selectionRemoved.push(node.data);
|