@zeedhi/common 1.91.0 → 1.91.1
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/zd-common.esm.js
CHANGED
|
@@ -6838,6 +6838,17 @@ class GridEditable extends Grid {
|
|
|
6838
6838
|
}
|
|
6839
6839
|
return !this.canEditRow || typeof this.canEditRow !== 'function' || this.canEditRow({ row, component: this });
|
|
6840
6840
|
}
|
|
6841
|
+
changeData(data) {
|
|
6842
|
+
super.changeData(data);
|
|
6843
|
+
const { uniqueKey } = this.datasource;
|
|
6844
|
+
const foundRow = data === null || data === void 0 ? void 0 : data.find((row) => (row[uniqueKey] !== 0 && !row[uniqueKey]));
|
|
6845
|
+
if (!foundRow || !this.editedRows[foundRow[uniqueKey]]) {
|
|
6846
|
+
return;
|
|
6847
|
+
}
|
|
6848
|
+
const rows = Object.assign({}, this.editedRows);
|
|
6849
|
+
delete rows[foundRow[uniqueKey]];
|
|
6850
|
+
this.editedRows = rows;
|
|
6851
|
+
}
|
|
6841
6852
|
}
|
|
6842
6853
|
|
|
6843
6854
|
/**
|
|
@@ -13282,6 +13293,17 @@ class TreeGridEditable extends TreeGrid {
|
|
|
13282
13293
|
callCanEditRow(row) {
|
|
13283
13294
|
return !this.canEditRow || typeof this.canEditRow !== 'function' || this.canEditRow({ row, component: this });
|
|
13284
13295
|
}
|
|
13296
|
+
changeData(data) {
|
|
13297
|
+
super.changeData(data);
|
|
13298
|
+
const { uniqueKey } = this.datasource;
|
|
13299
|
+
const foundRow = data === null || data === void 0 ? void 0 : data.find((row) => (row[uniqueKey] !== 0 && !row[uniqueKey]));
|
|
13300
|
+
if (!foundRow || !this.editedRows[foundRow[uniqueKey]]) {
|
|
13301
|
+
return;
|
|
13302
|
+
}
|
|
13303
|
+
const rows = Object.assign({}, this.editedRows);
|
|
13304
|
+
delete rows[foundRow[uniqueKey]];
|
|
13305
|
+
this.editedRows = rows;
|
|
13306
|
+
}
|
|
13285
13307
|
}
|
|
13286
13308
|
|
|
13287
13309
|
class Icons {
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -6845,6 +6845,17 @@
|
|
|
6845
6845
|
}
|
|
6846
6846
|
return !this.canEditRow || typeof this.canEditRow !== 'function' || this.canEditRow({ row, component: this });
|
|
6847
6847
|
}
|
|
6848
|
+
changeData(data) {
|
|
6849
|
+
super.changeData(data);
|
|
6850
|
+
const { uniqueKey } = this.datasource;
|
|
6851
|
+
const foundRow = data === null || data === void 0 ? void 0 : data.find((row) => (row[uniqueKey] !== 0 && !row[uniqueKey]));
|
|
6852
|
+
if (!foundRow || !this.editedRows[foundRow[uniqueKey]]) {
|
|
6853
|
+
return;
|
|
6854
|
+
}
|
|
6855
|
+
const rows = Object.assign({}, this.editedRows);
|
|
6856
|
+
delete rows[foundRow[uniqueKey]];
|
|
6857
|
+
this.editedRows = rows;
|
|
6858
|
+
}
|
|
6848
6859
|
}
|
|
6849
6860
|
|
|
6850
6861
|
/**
|
|
@@ -13289,6 +13300,17 @@
|
|
|
13289
13300
|
callCanEditRow(row) {
|
|
13290
13301
|
return !this.canEditRow || typeof this.canEditRow !== 'function' || this.canEditRow({ row, component: this });
|
|
13291
13302
|
}
|
|
13303
|
+
changeData(data) {
|
|
13304
|
+
super.changeData(data);
|
|
13305
|
+
const { uniqueKey } = this.datasource;
|
|
13306
|
+
const foundRow = data === null || data === void 0 ? void 0 : data.find((row) => (row[uniqueKey] !== 0 && !row[uniqueKey]));
|
|
13307
|
+
if (!foundRow || !this.editedRows[foundRow[uniqueKey]]) {
|
|
13308
|
+
return;
|
|
13309
|
+
}
|
|
13310
|
+
const rows = Object.assign({}, this.editedRows);
|
|
13311
|
+
delete rows[foundRow[uniqueKey]];
|
|
13312
|
+
this.editedRows = rows;
|
|
13313
|
+
}
|
|
13292
13314
|
}
|
|
13293
13315
|
|
|
13294
13316
|
class Icons {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.91.
|
|
3
|
+
"version": "1.91.1",
|
|
4
4
|
"description": "Zeedhi Common",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"lodash.times": "4.3.*",
|
|
44
44
|
"mockdate": "3.0.*"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "c2445f9e72755ae0117595576ce4e02adc4b673f"
|
|
47
47
|
}
|