@zeedhi/common 1.91.0 → 1.92.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.
@@ -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] = Object.assign({}, row);
6747
- this.addedRows[id] = Object.assign({}, row);
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
  });
@@ -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] = Object.assign({}, row);
6754
- this.addedRows[id] = Object.assign({}, row);
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.91.0",
3
+ "version": "1.92.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": "718b1466428d938cbbe88130d8b0f1e6f334aa9d"
46
+ "gitHead": "ccd387341ca2ee55bac50a186f9697fbeb1026b7"
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
@@ -9,4 +9,5 @@ export interface IDialog extends IComponent {
9
9
  text?: string;
10
10
  title?: string;
11
11
  type?: string;
12
+ exit?: boolean;
12
13
  }
@@ -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
- }