@zeedhi/common 1.91.0 → 1.92.0
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
|
@@ -3113,6 +3113,7 @@ class Dialog extends Component {
|
|
|
3113
3113
|
* Deny button component name
|
|
3114
3114
|
*/
|
|
3115
3115
|
this.denyButton = undefined;
|
|
3116
|
+
this.exit = false;
|
|
3116
3117
|
/**
|
|
3117
3118
|
* Default dialog buttons
|
|
3118
3119
|
* @private
|
|
@@ -3132,6 +3133,7 @@ class Dialog extends Component {
|
|
|
3132
3133
|
type: this.type,
|
|
3133
3134
|
title: this.title,
|
|
3134
3135
|
text: this.text,
|
|
3136
|
+
exit: this.exit,
|
|
3135
3137
|
};
|
|
3136
3138
|
this.clickDefaultButtonKeyMapping = {
|
|
3137
3139
|
enter: {
|
|
@@ -3184,6 +3186,7 @@ class Dialog extends Component {
|
|
|
3184
3186
|
this.type = this.getInitValue('type', dialog.type, this.defaultValues.type);
|
|
3185
3187
|
this.title = this.getInitValue('title', dialog.title, this.defaultValues.title);
|
|
3186
3188
|
this.text = this.getInitValue('text', dialog.text, this.defaultValues.text);
|
|
3189
|
+
this.exit = this.getInitValue('exite', dialog.exit, this.defaultValues.exit);
|
|
3187
3190
|
this.isVisible = false;
|
|
3188
3191
|
}
|
|
3189
3192
|
/**
|
|
@@ -6743,8 +6746,8 @@ class GridEditable extends Grid {
|
|
|
6743
6746
|
yield this.datasource.updateData(data);
|
|
6744
6747
|
const id = row[this.datasource.uniqueKey];
|
|
6745
6748
|
if (id) {
|
|
6746
|
-
this.editedRows[id]
|
|
6747
|
-
this.addedRows[id]
|
|
6749
|
+
this.editedRows = Object.assign(Object.assign({}, this.editedRows), { [id]: Object.assign({}, row) });
|
|
6750
|
+
this.addedRows = Object.assign(Object.assign({}, this.addedRows), { [id]: Object.assign({}, row) });
|
|
6748
6751
|
}
|
|
6749
6752
|
this.editing = true;
|
|
6750
6753
|
});
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -3120,6 +3120,7 @@
|
|
|
3120
3120
|
* Deny button component name
|
|
3121
3121
|
*/
|
|
3122
3122
|
this.denyButton = undefined;
|
|
3123
|
+
this.exit = false;
|
|
3123
3124
|
/**
|
|
3124
3125
|
* Default dialog buttons
|
|
3125
3126
|
* @private
|
|
@@ -3139,6 +3140,7 @@
|
|
|
3139
3140
|
type: this.type,
|
|
3140
3141
|
title: this.title,
|
|
3141
3142
|
text: this.text,
|
|
3143
|
+
exit: this.exit,
|
|
3142
3144
|
};
|
|
3143
3145
|
this.clickDefaultButtonKeyMapping = {
|
|
3144
3146
|
enter: {
|
|
@@ -3191,6 +3193,7 @@
|
|
|
3191
3193
|
this.type = this.getInitValue('type', dialog.type, this.defaultValues.type);
|
|
3192
3194
|
this.title = this.getInitValue('title', dialog.title, this.defaultValues.title);
|
|
3193
3195
|
this.text = this.getInitValue('text', dialog.text, this.defaultValues.text);
|
|
3196
|
+
this.exit = this.getInitValue('exite', dialog.exit, this.defaultValues.exit);
|
|
3194
3197
|
this.isVisible = false;
|
|
3195
3198
|
}
|
|
3196
3199
|
/**
|
|
@@ -6750,8 +6753,8 @@
|
|
|
6750
6753
|
yield this.datasource.updateData(data);
|
|
6751
6754
|
const id = row[this.datasource.uniqueKey];
|
|
6752
6755
|
if (id) {
|
|
6753
|
-
this.editedRows[id]
|
|
6754
|
-
this.addedRows[id]
|
|
6756
|
+
this.editedRows = Object.assign(Object.assign({}, this.editedRows), { [id]: Object.assign({}, row) });
|
|
6757
|
+
this.addedRows = Object.assign(Object.assign({}, this.addedRows), { [id]: Object.assign({}, row) });
|
|
6755
6758
|
}
|
|
6756
6759
|
this.editing = true;
|
|
6757
6760
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.92.0",
|
|
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": "d486f9454fa4fd69e02680e20fa8b68344d41939"
|
|
47
47
|
}
|
|
@@ -37,6 +37,7 @@ export declare class Dialog extends Component implements IDialog {
|
|
|
37
37
|
* Deny button component name
|
|
38
38
|
*/
|
|
39
39
|
denyButton?: string;
|
|
40
|
+
exit?: boolean;
|
|
40
41
|
/**
|
|
41
42
|
* Default dialog buttons
|
|
42
43
|
* @private
|
|
@@ -51,6 +52,7 @@ export declare class Dialog extends Component implements IDialog {
|
|
|
51
52
|
type: string;
|
|
52
53
|
title: string;
|
|
53
54
|
text: string;
|
|
55
|
+
exit: boolean | undefined;
|
|
54
56
|
};
|
|
55
57
|
/**
|
|
56
58
|
* Creates a new Dialog
|
|
@@ -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
|
-
}
|