@yoobic/yobi 8.7.15 → 8.7.16
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 +14 -10
- package/dist/collection/components/grid/grid/grid.js +14 -10
- package/dist/design-system/yoo-grid.entry.js +14 -10
- package/dist/esm/yoo-grid.entry.js +14 -10
- 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
@@ -1137,14 +1137,16 @@ const YooGridComponent = class {
|
|
1137
1137
|
let isDirty = false;
|
1138
1138
|
this.selection = this.selection || [];
|
1139
1139
|
params.api.forEachNode((node) => {
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1140
|
+
if (node.id) {
|
1141
|
+
const index = this.findIndex(node.data);
|
1142
|
+
if (node.isSelected() === true && index < 0) {
|
1143
|
+
isDirty = true;
|
1144
|
+
this.selection.push(node.data);
|
1145
|
+
}
|
1146
|
+
else if (node.isSelected() !== true && index >= 0) {
|
1147
|
+
isDirty = true;
|
1148
|
+
this.selection.splice(index, 1);
|
1149
|
+
}
|
1148
1150
|
}
|
1149
1151
|
});
|
1150
1152
|
if (isDirty) {
|
@@ -1156,8 +1158,10 @@ const YooGridComponent = class {
|
|
1156
1158
|
return this.items.find((item) => item[this.idAttributeName || '_id'] === s) || { _id: s };
|
1157
1159
|
})) || [];
|
1158
1160
|
params.api.forEachNode((node) => {
|
1159
|
-
if (node.
|
1160
|
-
this.
|
1161
|
+
if (node.id) {
|
1162
|
+
if (node.isSelected() === false && this.findIndex(node.data, true) < 0) {
|
1163
|
+
this.selectionRemoved.push(node.data);
|
1164
|
+
}
|
1161
1165
|
}
|
1162
1166
|
});
|
1163
1167
|
this.removed.emit(this.selectionRemoved);
|
@@ -1052,14 +1052,16 @@ export class YooGridComponent {
|
|
1052
1052
|
let isDirty = false;
|
1053
1053
|
this.selection = this.selection || [];
|
1054
1054
|
params.api.forEachNode((node) => {
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1055
|
+
if (node.id) {
|
1056
|
+
const index = this.findIndex(node.data);
|
1057
|
+
if (node.isSelected() === true && index < 0) {
|
1058
|
+
isDirty = true;
|
1059
|
+
this.selection.push(node.data);
|
1060
|
+
}
|
1061
|
+
else if (node.isSelected() !== true && index >= 0) {
|
1062
|
+
isDirty = true;
|
1063
|
+
this.selection.splice(index, 1);
|
1064
|
+
}
|
1063
1065
|
}
|
1064
1066
|
});
|
1065
1067
|
if (isDirty) {
|
@@ -1071,8 +1073,10 @@ export class YooGridComponent {
|
|
1071
1073
|
return this.items.find((item) => item[this.idAttributeName || '_id'] === s) || { _id: s };
|
1072
1074
|
})) || [];
|
1073
1075
|
params.api.forEachNode((node) => {
|
1074
|
-
if (node.
|
1075
|
-
this.
|
1076
|
+
if (node.id) {
|
1077
|
+
if (node.isSelected() === false && this.findIndex(node.data, true) < 0) {
|
1078
|
+
this.selectionRemoved.push(node.data);
|
1079
|
+
}
|
1076
1080
|
}
|
1077
1081
|
});
|
1078
1082
|
this.removed.emit(this.selectionRemoved);
|
@@ -1133,14 +1133,16 @@ const YooGridComponent = class {
|
|
1133
1133
|
let isDirty = false;
|
1134
1134
|
this.selection = this.selection || [];
|
1135
1135
|
params.api.forEachNode((node) => {
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1136
|
+
if (node.id) {
|
1137
|
+
const index = this.findIndex(node.data);
|
1138
|
+
if (node.isSelected() === true && index < 0) {
|
1139
|
+
isDirty = true;
|
1140
|
+
this.selection.push(node.data);
|
1141
|
+
}
|
1142
|
+
else if (node.isSelected() !== true && index >= 0) {
|
1143
|
+
isDirty = true;
|
1144
|
+
this.selection.splice(index, 1);
|
1145
|
+
}
|
1144
1146
|
}
|
1145
1147
|
});
|
1146
1148
|
if (isDirty) {
|
@@ -1152,8 +1154,10 @@ const YooGridComponent = class {
|
|
1152
1154
|
return this.items.find((item) => item[this.idAttributeName || '_id'] === s) || { _id: s };
|
1153
1155
|
})) || [];
|
1154
1156
|
params.api.forEachNode((node) => {
|
1155
|
-
if (node.
|
1156
|
-
this.
|
1157
|
+
if (node.id) {
|
1158
|
+
if (node.isSelected() === false && this.findIndex(node.data, true) < 0) {
|
1159
|
+
this.selectionRemoved.push(node.data);
|
1160
|
+
}
|
1157
1161
|
}
|
1158
1162
|
});
|
1159
1163
|
this.removed.emit(this.selectionRemoved);
|
@@ -1133,14 +1133,16 @@ const YooGridComponent = class {
|
|
1133
1133
|
let isDirty = false;
|
1134
1134
|
this.selection = this.selection || [];
|
1135
1135
|
params.api.forEachNode((node) => {
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1136
|
+
if (node.id) {
|
1137
|
+
const index = this.findIndex(node.data);
|
1138
|
+
if (node.isSelected() === true && index < 0) {
|
1139
|
+
isDirty = true;
|
1140
|
+
this.selection.push(node.data);
|
1141
|
+
}
|
1142
|
+
else if (node.isSelected() !== true && index >= 0) {
|
1143
|
+
isDirty = true;
|
1144
|
+
this.selection.splice(index, 1);
|
1145
|
+
}
|
1144
1146
|
}
|
1145
1147
|
});
|
1146
1148
|
if (isDirty) {
|
@@ -1152,8 +1154,10 @@ const YooGridComponent = class {
|
|
1152
1154
|
return this.items.find((item) => item[this.idAttributeName || '_id'] === s) || { _id: s };
|
1153
1155
|
})) || [];
|
1154
1156
|
params.api.forEachNode((node) => {
|
1155
|
-
if (node.
|
1156
|
-
this.
|
1157
|
+
if (node.id) {
|
1158
|
+
if (node.isSelected() === false && this.findIndex(node.data, true) < 0) {
|
1159
|
+
this.selectionRemoved.push(node.data);
|
1160
|
+
}
|
1157
1161
|
}
|
1158
1162
|
});
|
1159
1163
|
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;
|