@zeedhi/common 1.91.0 → 1.91.2
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
|
@@ -4022,11 +4022,8 @@ class Date$1 extends TextInput {
|
|
|
4022
4022
|
return this.formatISODateValue(this.value);
|
|
4023
4023
|
}
|
|
4024
4024
|
set isoValue(newValue) {
|
|
4025
|
-
const lastValue = this.value;
|
|
4026
4025
|
this.dateError = false;
|
|
4027
4026
|
this.value = this.parseISODateValue(newValue);
|
|
4028
|
-
if (lastValue !== this.value)
|
|
4029
|
-
this.change(this.value);
|
|
4030
4027
|
}
|
|
4031
4028
|
formatISODateValue(value) {
|
|
4032
4029
|
if (value && this.isValidFormatDate(value, this.dateFormat)) {
|
|
@@ -6838,6 +6835,17 @@ class GridEditable extends Grid {
|
|
|
6838
6835
|
}
|
|
6839
6836
|
return !this.canEditRow || typeof this.canEditRow !== 'function' || this.canEditRow({ row, component: this });
|
|
6840
6837
|
}
|
|
6838
|
+
changeData(data) {
|
|
6839
|
+
super.changeData(data);
|
|
6840
|
+
const { uniqueKey } = this.datasource;
|
|
6841
|
+
const foundRow = data === null || data === void 0 ? void 0 : data.find((row) => (row[uniqueKey] !== 0 && !row[uniqueKey]));
|
|
6842
|
+
if (!foundRow || !this.editedRows[foundRow[uniqueKey]]) {
|
|
6843
|
+
return;
|
|
6844
|
+
}
|
|
6845
|
+
const rows = Object.assign({}, this.editedRows);
|
|
6846
|
+
delete rows[foundRow[uniqueKey]];
|
|
6847
|
+
this.editedRows = rows;
|
|
6848
|
+
}
|
|
6841
6849
|
}
|
|
6842
6850
|
|
|
6843
6851
|
/**
|
|
@@ -13282,6 +13290,17 @@ class TreeGridEditable extends TreeGrid {
|
|
|
13282
13290
|
callCanEditRow(row) {
|
|
13283
13291
|
return !this.canEditRow || typeof this.canEditRow !== 'function' || this.canEditRow({ row, component: this });
|
|
13284
13292
|
}
|
|
13293
|
+
changeData(data) {
|
|
13294
|
+
super.changeData(data);
|
|
13295
|
+
const { uniqueKey } = this.datasource;
|
|
13296
|
+
const foundRow = data === null || data === void 0 ? void 0 : data.find((row) => (row[uniqueKey] !== 0 && !row[uniqueKey]));
|
|
13297
|
+
if (!foundRow || !this.editedRows[foundRow[uniqueKey]]) {
|
|
13298
|
+
return;
|
|
13299
|
+
}
|
|
13300
|
+
const rows = Object.assign({}, this.editedRows);
|
|
13301
|
+
delete rows[foundRow[uniqueKey]];
|
|
13302
|
+
this.editedRows = rows;
|
|
13303
|
+
}
|
|
13285
13304
|
}
|
|
13286
13305
|
|
|
13287
13306
|
class Icons {
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -4029,11 +4029,8 @@
|
|
|
4029
4029
|
return this.formatISODateValue(this.value);
|
|
4030
4030
|
}
|
|
4031
4031
|
set isoValue(newValue) {
|
|
4032
|
-
const lastValue = this.value;
|
|
4033
4032
|
this.dateError = false;
|
|
4034
4033
|
this.value = this.parseISODateValue(newValue);
|
|
4035
|
-
if (lastValue !== this.value)
|
|
4036
|
-
this.change(this.value);
|
|
4037
4034
|
}
|
|
4038
4035
|
formatISODateValue(value) {
|
|
4039
4036
|
if (value && this.isValidFormatDate(value, this.dateFormat)) {
|
|
@@ -6845,6 +6842,17 @@
|
|
|
6845
6842
|
}
|
|
6846
6843
|
return !this.canEditRow || typeof this.canEditRow !== 'function' || this.canEditRow({ row, component: this });
|
|
6847
6844
|
}
|
|
6845
|
+
changeData(data) {
|
|
6846
|
+
super.changeData(data);
|
|
6847
|
+
const { uniqueKey } = this.datasource;
|
|
6848
|
+
const foundRow = data === null || data === void 0 ? void 0 : data.find((row) => (row[uniqueKey] !== 0 && !row[uniqueKey]));
|
|
6849
|
+
if (!foundRow || !this.editedRows[foundRow[uniqueKey]]) {
|
|
6850
|
+
return;
|
|
6851
|
+
}
|
|
6852
|
+
const rows = Object.assign({}, this.editedRows);
|
|
6853
|
+
delete rows[foundRow[uniqueKey]];
|
|
6854
|
+
this.editedRows = rows;
|
|
6855
|
+
}
|
|
6848
6856
|
}
|
|
6849
6857
|
|
|
6850
6858
|
/**
|
|
@@ -13289,6 +13297,17 @@
|
|
|
13289
13297
|
callCanEditRow(row) {
|
|
13290
13298
|
return !this.canEditRow || typeof this.canEditRow !== 'function' || this.canEditRow({ row, component: this });
|
|
13291
13299
|
}
|
|
13300
|
+
changeData(data) {
|
|
13301
|
+
super.changeData(data);
|
|
13302
|
+
const { uniqueKey } = this.datasource;
|
|
13303
|
+
const foundRow = data === null || data === void 0 ? void 0 : data.find((row) => (row[uniqueKey] !== 0 && !row[uniqueKey]));
|
|
13304
|
+
if (!foundRow || !this.editedRows[foundRow[uniqueKey]]) {
|
|
13305
|
+
return;
|
|
13306
|
+
}
|
|
13307
|
+
const rows = Object.assign({}, this.editedRows);
|
|
13308
|
+
delete rows[foundRow[uniqueKey]];
|
|
13309
|
+
this.editedRows = rows;
|
|
13310
|
+
}
|
|
13292
13311
|
}
|
|
13293
13312
|
|
|
13294
13313
|
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.2",
|
|
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": "ba4045b276a62a57f59620b9c57f53b45aa4d4db"
|
|
47
47
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface IJSONObject {
|
|
2
|
-
path: string;
|
|
3
|
-
}
|
|
4
|
-
export declare class JsonCacheService {
|
|
5
|
-
/**
|
|
6
|
-
* jsons collection
|
|
7
|
-
*/
|
|
8
|
-
static jsonCollection: IJSONObject[];
|
|
9
|
-
static saveJSONCache(jsonCollection: IJSONObject[]): Promise<void>;
|
|
10
|
-
static getJSONCache(path: string): any;
|
|
11
|
-
static clearJSONCache(jsonCollection: IJSONObject[]): void;
|
|
12
|
-
}
|