@yoobic/yobi 8.7.15 → 8.7.17
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/dist/cjs/yoo-grid.cjs.entry.js +15 -14
- package/dist/collection/components/grid/grid/grid.js +15 -14
- package/dist/design-system/yoo-grid.entry.js +15 -14
- package/dist/esm/yoo-grid.entry.js +15 -14
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/services/session/session.interface.d.ts +1 -0
- package/package.json +1 -1
@@ -1129,7 +1129,6 @@ const YooGridComponent = class {
|
|
1129
1129
|
this.cellEdited.emit(params);
|
1130
1130
|
},
|
1131
1131
|
onSelectionChanged: (params) => {
|
1132
|
-
var _a, _b;
|
1133
1132
|
if (this.disconnected || this.isReadonly) {
|
1134
1133
|
return;
|
1135
1134
|
}
|
@@ -1137,14 +1136,16 @@ const YooGridComponent = class {
|
|
1137
1136
|
let isDirty = false;
|
1138
1137
|
this.selection = this.selection || [];
|
1139
1138
|
params.api.forEachNode((node) => {
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1139
|
+
if (node.id) {
|
1140
|
+
const index = this.findIndex(node.data);
|
1141
|
+
if (node.isSelected() === true && index < 0) {
|
1142
|
+
isDirty = true;
|
1143
|
+
this.selection.push(node.data);
|
1144
|
+
}
|
1145
|
+
else if (node.isSelected() !== true && index >= 0) {
|
1146
|
+
isDirty = true;
|
1147
|
+
this.selection.splice(index, 1);
|
1148
|
+
}
|
1148
1149
|
}
|
1149
1150
|
});
|
1150
1151
|
if (isDirty) {
|
@@ -1152,12 +1153,12 @@ const YooGridComponent = class {
|
|
1152
1153
|
}
|
1153
1154
|
}
|
1154
1155
|
else {
|
1155
|
-
this.selectionRemoved =
|
1156
|
-
return this.items.find((item) => item[this.idAttributeName || '_id'] === s) || { _id: s };
|
1157
|
-
})) || [];
|
1156
|
+
this.selectionRemoved = [];
|
1158
1157
|
params.api.forEachNode((node) => {
|
1159
|
-
if (node.
|
1160
|
-
this.
|
1158
|
+
if (node.id) {
|
1159
|
+
if (node.isSelected() === false && this.findIndex(node.data, true) < 0) {
|
1160
|
+
this.selectionRemoved.push(node.data);
|
1161
|
+
}
|
1161
1162
|
}
|
1162
1163
|
});
|
1163
1164
|
this.removed.emit(this.selectionRemoved);
|
@@ -1044,7 +1044,6 @@ export class YooGridComponent {
|
|
1044
1044
|
this.cellEdited.emit(params);
|
1045
1045
|
},
|
1046
1046
|
onSelectionChanged: (params) => {
|
1047
|
-
var _a, _b;
|
1048
1047
|
if (this.disconnected || this.isReadonly) {
|
1049
1048
|
return;
|
1050
1049
|
}
|
@@ -1052,14 +1051,16 @@ export class YooGridComponent {
|
|
1052
1051
|
let isDirty = false;
|
1053
1052
|
this.selection = this.selection || [];
|
1054
1053
|
params.api.forEachNode((node) => {
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1054
|
+
if (node.id) {
|
1055
|
+
const index = this.findIndex(node.data);
|
1056
|
+
if (node.isSelected() === true && index < 0) {
|
1057
|
+
isDirty = true;
|
1058
|
+
this.selection.push(node.data);
|
1059
|
+
}
|
1060
|
+
else if (node.isSelected() !== true && index >= 0) {
|
1061
|
+
isDirty = true;
|
1062
|
+
this.selection.splice(index, 1);
|
1063
|
+
}
|
1063
1064
|
}
|
1064
1065
|
});
|
1065
1066
|
if (isDirty) {
|
@@ -1067,12 +1068,12 @@ export class YooGridComponent {
|
|
1067
1068
|
}
|
1068
1069
|
}
|
1069
1070
|
else {
|
1070
|
-
this.selectionRemoved =
|
1071
|
-
return this.items.find((item) => item[this.idAttributeName || '_id'] === s) || { _id: s };
|
1072
|
-
})) || [];
|
1071
|
+
this.selectionRemoved = [];
|
1073
1072
|
params.api.forEachNode((node) => {
|
1074
|
-
if (node.
|
1075
|
-
this.
|
1073
|
+
if (node.id) {
|
1074
|
+
if (node.isSelected() === false && this.findIndex(node.data, true) < 0) {
|
1075
|
+
this.selectionRemoved.push(node.data);
|
1076
|
+
}
|
1076
1077
|
}
|
1077
1078
|
});
|
1078
1079
|
this.removed.emit(this.selectionRemoved);
|
@@ -1125,7 +1125,6 @@ const YooGridComponent = class {
|
|
1125
1125
|
this.cellEdited.emit(params);
|
1126
1126
|
},
|
1127
1127
|
onSelectionChanged: (params) => {
|
1128
|
-
var _a, _b;
|
1129
1128
|
if (this.disconnected || this.isReadonly) {
|
1130
1129
|
return;
|
1131
1130
|
}
|
@@ -1133,14 +1132,16 @@ const YooGridComponent = class {
|
|
1133
1132
|
let isDirty = false;
|
1134
1133
|
this.selection = this.selection || [];
|
1135
1134
|
params.api.forEachNode((node) => {
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1135
|
+
if (node.id) {
|
1136
|
+
const index = this.findIndex(node.data);
|
1137
|
+
if (node.isSelected() === true && index < 0) {
|
1138
|
+
isDirty = true;
|
1139
|
+
this.selection.push(node.data);
|
1140
|
+
}
|
1141
|
+
else if (node.isSelected() !== true && index >= 0) {
|
1142
|
+
isDirty = true;
|
1143
|
+
this.selection.splice(index, 1);
|
1144
|
+
}
|
1144
1145
|
}
|
1145
1146
|
});
|
1146
1147
|
if (isDirty) {
|
@@ -1148,12 +1149,12 @@ const YooGridComponent = class {
|
|
1148
1149
|
}
|
1149
1150
|
}
|
1150
1151
|
else {
|
1151
|
-
this.selectionRemoved =
|
1152
|
-
return this.items.find((item) => item[this.idAttributeName || '_id'] === s) || { _id: s };
|
1153
|
-
})) || [];
|
1152
|
+
this.selectionRemoved = [];
|
1154
1153
|
params.api.forEachNode((node) => {
|
1155
|
-
if (node.
|
1156
|
-
this.
|
1154
|
+
if (node.id) {
|
1155
|
+
if (node.isSelected() === false && this.findIndex(node.data, true) < 0) {
|
1156
|
+
this.selectionRemoved.push(node.data);
|
1157
|
+
}
|
1157
1158
|
}
|
1158
1159
|
});
|
1159
1160
|
this.removed.emit(this.selectionRemoved);
|
@@ -1125,7 +1125,6 @@ const YooGridComponent = class {
|
|
1125
1125
|
this.cellEdited.emit(params);
|
1126
1126
|
},
|
1127
1127
|
onSelectionChanged: (params) => {
|
1128
|
-
var _a, _b;
|
1129
1128
|
if (this.disconnected || this.isReadonly) {
|
1130
1129
|
return;
|
1131
1130
|
}
|
@@ -1133,14 +1132,16 @@ const YooGridComponent = class {
|
|
1133
1132
|
let isDirty = false;
|
1134
1133
|
this.selection = this.selection || [];
|
1135
1134
|
params.api.forEachNode((node) => {
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1135
|
+
if (node.id) {
|
1136
|
+
const index = this.findIndex(node.data);
|
1137
|
+
if (node.isSelected() === true && index < 0) {
|
1138
|
+
isDirty = true;
|
1139
|
+
this.selection.push(node.data);
|
1140
|
+
}
|
1141
|
+
else if (node.isSelected() !== true && index >= 0) {
|
1142
|
+
isDirty = true;
|
1143
|
+
this.selection.splice(index, 1);
|
1144
|
+
}
|
1144
1145
|
}
|
1145
1146
|
});
|
1146
1147
|
if (isDirty) {
|
@@ -1148,12 +1149,12 @@ const YooGridComponent = class {
|
|
1148
1149
|
}
|
1149
1150
|
}
|
1150
1151
|
else {
|
1151
|
-
this.selectionRemoved =
|
1152
|
-
return this.items.find((item) => item[this.idAttributeName || '_id'] === s) || { _id: s };
|
1153
|
-
})) || [];
|
1152
|
+
this.selectionRemoved = [];
|
1154
1153
|
params.api.forEachNode((node) => {
|
1155
|
-
if (node.
|
1156
|
-
this.
|
1154
|
+
if (node.id) {
|
1155
|
+
if (node.isSelected() === false && this.findIndex(node.data, true) < 0) {
|
1156
|
+
this.selectionRemoved.push(node.data);
|
1157
|
+
}
|
1157
1158
|
}
|
1158
1159
|
});
|
1159
1160
|
this.removed.emit(this.selectionRemoved);
|
@@ -13,6 +13,7 @@ import { IMissionDescription } from '../../entities/work/mission-description/mis
|
|
13
13
|
import { TTheme } from '../../ui/theme/theme.interface';
|
14
14
|
export interface ISessionService {
|
15
15
|
cookie?: string;
|
16
|
+
appVersion?: string;
|
16
17
|
token: string;
|
17
18
|
user: IUser;
|
18
19
|
userId: string;
|