@zeedhi/common 1.99.0 → 1.100.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.
@@ -4107,6 +4107,11 @@ class Date$1 extends TextInput {
4107
4107
  this.showDatePicker = false;
4108
4108
  }
4109
4109
  }
4110
+ onMounted() {
4111
+ if (this.value) {
4112
+ this.setDateValue(this.formatter(this.value));
4113
+ }
4114
+ }
4110
4115
  focus(event, element) {
4111
4116
  this.addDateMask();
4112
4117
  super.focus(event, element);
@@ -6019,6 +6024,7 @@ class Grid extends Iterable {
6019
6024
  * @public
6020
6025
  */
6021
6026
  this.preventRowClick = false;
6027
+ this.preventRowDoubleClick = false;
6022
6028
  /**
6023
6029
  * Enables column dragging
6024
6030
  * @public
@@ -6228,6 +6234,9 @@ class Grid extends Iterable {
6228
6234
  this.preventRowClick = this.callEvent('cellClick', {
6229
6235
  event, element, row, column, component: this,
6230
6236
  });
6237
+ this.preventRowDoubleClick = this.callEvent('cellClick', {
6238
+ event, element, row, column, component: this,
6239
+ });
6231
6240
  }
6232
6241
  selectCell(row, column) {
6233
6242
  this.datasource.currentRow = row;
@@ -8044,8 +8053,10 @@ class BaseReport {
8044
8053
  description: col.label,
8045
8054
  sequence: index,
8046
8055
  size: `${size}%`,
8047
- xlsType: col.xlsType,
8048
8056
  };
8057
+ if (col.xlsType) {
8058
+ row.xlsType = col.xlsType;
8059
+ }
8049
8060
  return Object.assign(Object.assign({}, result), { [col.name]: row });
8050
8061
  }, {});
8051
8062
  }
@@ -4114,6 +4114,11 @@
4114
4114
  this.showDatePicker = false;
4115
4115
  }
4116
4116
  }
4117
+ onMounted() {
4118
+ if (this.value) {
4119
+ this.setDateValue(this.formatter(this.value));
4120
+ }
4121
+ }
4117
4122
  focus(event, element) {
4118
4123
  this.addDateMask();
4119
4124
  super.focus(event, element);
@@ -6026,6 +6031,7 @@
6026
6031
  * @public
6027
6032
  */
6028
6033
  this.preventRowClick = false;
6034
+ this.preventRowDoubleClick = false;
6029
6035
  /**
6030
6036
  * Enables column dragging
6031
6037
  * @public
@@ -6235,6 +6241,9 @@
6235
6241
  this.preventRowClick = this.callEvent('cellClick', {
6236
6242
  event, element, row, column, component: this,
6237
6243
  });
6244
+ this.preventRowDoubleClick = this.callEvent('cellClick', {
6245
+ event, element, row, column, component: this,
6246
+ });
6238
6247
  }
6239
6248
  selectCell(row, column) {
6240
6249
  this.datasource.currentRow = row;
@@ -8051,8 +8060,10 @@
8051
8060
  description: col.label,
8052
8061
  sequence: index,
8053
8062
  size: `${size}%`,
8054
- xlsType: col.xlsType,
8055
8063
  };
8064
+ if (col.xlsType) {
8065
+ row.xlsType = col.xlsType;
8066
+ }
8056
8067
  return Object.assign(Object.assign({}, result), { [col.name]: row });
8057
8068
  }, {});
8058
8069
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.99.0",
3
+ "version": "1.100.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": "230b088efbf1325beaeea92f4b80d0fdf23df4d0"
46
+ "gitHead": "f387e52dc26f20fbd8dfa61b3881a096f32c68ad"
47
47
  }
@@ -119,6 +119,7 @@ export declare class Date extends TextInput implements IDate {
119
119
  dateValidation(): boolean | string;
120
120
  click(event?: Event, element?: any): void;
121
121
  blur(event: Event, element: any): void;
122
+ onMounted(): void;
122
123
  focus(event: Event, element: any): void;
123
124
  /**
124
125
  * Add date mask
@@ -111,6 +111,7 @@ export declare class Grid extends Iterable implements IGrid {
111
111
  * @public
112
112
  */
113
113
  preventRowClick: boolean;
114
+ preventRowDoubleClick: boolean;
114
115
  /**
115
116
  * Enables column dragging
116
117
  * @public
@@ -43,4 +43,5 @@ export interface IMetadataObj {
43
43
  formatXLS?: 'F1' | 'F2' | 'F3';
44
44
  type?: string;
45
45
  xlsMergedCell?: any[];
46
+ xlsDefaultType?: string;
46
47
  }