@yoobic/yobi 8.7.14 → 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.
@@ -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
- 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);
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.isSelected() === false && this.findIndex(node.data, true) < 0) {
1160
- this.selectionRemoved.push(node.data);
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
- 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);
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.isSelected() === false && this.findIndex(node.data, true) < 0) {
1075
- this.selectionRemoved.push(node.data);
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
- 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);
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.isSelected() === false && this.findIndex(node.data, true) < 0) {
1156
- this.selectionRemoved.push(node.data);
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
- 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);
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.isSelected() === false && this.findIndex(node.data, true) < 0) {
1156
- this.selectionRemoved.push(node.data);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "8.7.14",
3
+ "version": "8.7.16",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",