@zeedhi/common 1.120.2 → 1.120.4
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 +7 -7
- package/dist/zd-common.umd.js +7 -7
- package/package.json +2 -2
- package/types/components/zd-date/date-range.d.ts +1 -1
- package/types/components/zd-date/date.d.ts +1 -1
- package/types/components/zd-date/interfaces.d.ts +1 -1
- package/types/components/zd-time/interfaces.d.ts +1 -0
- package/types/components/zd-time/time.d.ts +1 -1
- package/types/services/zd-json-cache/json-cache-service.d.ts +12 -0
package/dist/zd-common.esm.js
CHANGED
|
@@ -3960,7 +3960,7 @@ class Date$1 extends TextInput {
|
|
|
3960
3960
|
/**
|
|
3961
3961
|
* Width of the picker.
|
|
3962
3962
|
*/
|
|
3963
|
-
this.
|
|
3963
|
+
this.pickerWidth = 248;
|
|
3964
3964
|
this.isoFormat = 'YYYY-MM-DD';
|
|
3965
3965
|
this.dateError = false;
|
|
3966
3966
|
this.formatterFn = FormatterParserProvider.getFormatter('ZdDate');
|
|
@@ -3986,7 +3986,7 @@ class Date$1 extends TextInput {
|
|
|
3986
3986
|
this.helperValue = this.getInitValue('helperValue', props.helperValue, this.helperValue);
|
|
3987
3987
|
this.min = this.getInitValue('min', props.min, this.min);
|
|
3988
3988
|
this.max = this.getInitValue('max', props.max, this.max);
|
|
3989
|
-
this.
|
|
3989
|
+
this.pickerWidth = this.getInitValue('pickerWidth', props.width || props.pickerWidth, this.pickerWidth);
|
|
3990
3990
|
this.mask = this.getInitValue('mask', props.mask, undefined);
|
|
3991
3991
|
this.createAccessors();
|
|
3992
3992
|
this.initialMask = this.getInitialMask();
|
|
@@ -4361,7 +4361,7 @@ class DateRange extends TextInput {
|
|
|
4361
4361
|
/**
|
|
4362
4362
|
* Width of the picker.
|
|
4363
4363
|
*/
|
|
4364
|
-
this.
|
|
4364
|
+
this.pickerWidth = 248;
|
|
4365
4365
|
/**
|
|
4366
4366
|
* Helper options.
|
|
4367
4367
|
*/
|
|
@@ -4398,7 +4398,7 @@ class DateRange extends TextInput {
|
|
|
4398
4398
|
this.showDatePicker = this.getInitValue('showDatePicker', props.showDatePicker, this.showDatePicker);
|
|
4399
4399
|
this.showWeek = this.getInitValue('showWeek', props.showWeek, this.showWeek);
|
|
4400
4400
|
this.splitter = this.getInitValue('splitter', props.splitter, this.internalSplitter);
|
|
4401
|
-
this.
|
|
4401
|
+
this.pickerWidth = this.getInitValue('pickerWidth', props.width || props.pickerWidth, this.pickerWidth);
|
|
4402
4402
|
this.mask = this.getInitValue('mask', props.mask, undefined);
|
|
4403
4403
|
this.helperOptions = this.getInitValue('helperOptions', props.helperOptions, this.helperOptions);
|
|
4404
4404
|
this.helperValue = this.getInitValue('helperValue', props.helperValue, this.helperValue);
|
|
@@ -8861,7 +8861,7 @@ class XLSReport extends BaseReport {
|
|
|
8861
8861
|
formatRawDataSet(data, columns) {
|
|
8862
8862
|
const columnNames = columns.map((col) => col.name);
|
|
8863
8863
|
const result = data.reduce((reduced, row) => {
|
|
8864
|
-
const values = columnNames.map((col) => row[col] || '');
|
|
8864
|
+
const values = columnNames.map((col) => (typeof row[col] === 'number' ? row[col] : (row[col] || '')));
|
|
8865
8865
|
return [...reduced, values];
|
|
8866
8866
|
}, [columnNames]);
|
|
8867
8867
|
return result;
|
|
@@ -14561,7 +14561,7 @@ class Time extends TextInput {
|
|
|
14561
14561
|
/**
|
|
14562
14562
|
* Width of the picker.
|
|
14563
14563
|
*/
|
|
14564
|
-
this.
|
|
14564
|
+
this.pickerWidth = 248;
|
|
14565
14565
|
this.formatterFn = FormatterParserProvider.getFormatter('ZdTime');
|
|
14566
14566
|
this.parserFn = FormatterParserProvider.getParser('ZdTime');
|
|
14567
14567
|
this.isoFormatValue = 'HH:mm';
|
|
@@ -14587,7 +14587,7 @@ class Time extends TextInput {
|
|
|
14587
14587
|
this.scrollable = this.getInitValue('scrollable', props.scrollable, this.scrollable);
|
|
14588
14588
|
this.showTimePicker = this.getInitValue('showTimePicker', props.showTimePicker, this.showTimePicker);
|
|
14589
14589
|
this.useSeconds = this.getInitValue('useSeconds', props.useSeconds, this.useSeconds);
|
|
14590
|
-
this.
|
|
14590
|
+
this.pickerWidth = this.getInitValue('pickerWidth', props.pickerWidth, this.pickerWidth);
|
|
14591
14591
|
this.autofill = this.getInitValue('autofill', props.autofill, this.autofill);
|
|
14592
14592
|
this.timeValidation = this.timeValidation.bind(this);
|
|
14593
14593
|
this.valueFormat = this.getInitValue('valueFormat', props.valueFormat, this.valueFormatInternal);
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -3967,7 +3967,7 @@
|
|
|
3967
3967
|
/**
|
|
3968
3968
|
* Width of the picker.
|
|
3969
3969
|
*/
|
|
3970
|
-
this.
|
|
3970
|
+
this.pickerWidth = 248;
|
|
3971
3971
|
this.isoFormat = 'YYYY-MM-DD';
|
|
3972
3972
|
this.dateError = false;
|
|
3973
3973
|
this.formatterFn = core.FormatterParserProvider.getFormatter('ZdDate');
|
|
@@ -3993,7 +3993,7 @@
|
|
|
3993
3993
|
this.helperValue = this.getInitValue('helperValue', props.helperValue, this.helperValue);
|
|
3994
3994
|
this.min = this.getInitValue('min', props.min, this.min);
|
|
3995
3995
|
this.max = this.getInitValue('max', props.max, this.max);
|
|
3996
|
-
this.
|
|
3996
|
+
this.pickerWidth = this.getInitValue('pickerWidth', props.width || props.pickerWidth, this.pickerWidth);
|
|
3997
3997
|
this.mask = this.getInitValue('mask', props.mask, undefined);
|
|
3998
3998
|
this.createAccessors();
|
|
3999
3999
|
this.initialMask = this.getInitialMask();
|
|
@@ -4368,7 +4368,7 @@
|
|
|
4368
4368
|
/**
|
|
4369
4369
|
* Width of the picker.
|
|
4370
4370
|
*/
|
|
4371
|
-
this.
|
|
4371
|
+
this.pickerWidth = 248;
|
|
4372
4372
|
/**
|
|
4373
4373
|
* Helper options.
|
|
4374
4374
|
*/
|
|
@@ -4405,7 +4405,7 @@
|
|
|
4405
4405
|
this.showDatePicker = this.getInitValue('showDatePicker', props.showDatePicker, this.showDatePicker);
|
|
4406
4406
|
this.showWeek = this.getInitValue('showWeek', props.showWeek, this.showWeek);
|
|
4407
4407
|
this.splitter = this.getInitValue('splitter', props.splitter, this.internalSplitter);
|
|
4408
|
-
this.
|
|
4408
|
+
this.pickerWidth = this.getInitValue('pickerWidth', props.width || props.pickerWidth, this.pickerWidth);
|
|
4409
4409
|
this.mask = this.getInitValue('mask', props.mask, undefined);
|
|
4410
4410
|
this.helperOptions = this.getInitValue('helperOptions', props.helperOptions, this.helperOptions);
|
|
4411
4411
|
this.helperValue = this.getInitValue('helperValue', props.helperValue, this.helperValue);
|
|
@@ -8868,7 +8868,7 @@
|
|
|
8868
8868
|
formatRawDataSet(data, columns) {
|
|
8869
8869
|
const columnNames = columns.map((col) => col.name);
|
|
8870
8870
|
const result = data.reduce((reduced, row) => {
|
|
8871
|
-
const values = columnNames.map((col) => row[col] || '');
|
|
8871
|
+
const values = columnNames.map((col) => (typeof row[col] === 'number' ? row[col] : (row[col] || '')));
|
|
8872
8872
|
return [...reduced, values];
|
|
8873
8873
|
}, [columnNames]);
|
|
8874
8874
|
return result;
|
|
@@ -14568,7 +14568,7 @@
|
|
|
14568
14568
|
/**
|
|
14569
14569
|
* Width of the picker.
|
|
14570
14570
|
*/
|
|
14571
|
-
this.
|
|
14571
|
+
this.pickerWidth = 248;
|
|
14572
14572
|
this.formatterFn = core.FormatterParserProvider.getFormatter('ZdTime');
|
|
14573
14573
|
this.parserFn = core.FormatterParserProvider.getParser('ZdTime');
|
|
14574
14574
|
this.isoFormatValue = 'HH:mm';
|
|
@@ -14594,7 +14594,7 @@
|
|
|
14594
14594
|
this.scrollable = this.getInitValue('scrollable', props.scrollable, this.scrollable);
|
|
14595
14595
|
this.showTimePicker = this.getInitValue('showTimePicker', props.showTimePicker, this.showTimePicker);
|
|
14596
14596
|
this.useSeconds = this.getInitValue('useSeconds', props.useSeconds, this.useSeconds);
|
|
14597
|
-
this.
|
|
14597
|
+
this.pickerWidth = this.getInitValue('pickerWidth', props.pickerWidth, this.pickerWidth);
|
|
14598
14598
|
this.autofill = this.getInitValue('autofill', props.autofill, this.autofill);
|
|
14599
14599
|
this.timeValidation = this.timeValidation.bind(this);
|
|
14600
14600
|
this.valueFormat = this.getInitValue('valueFormat', props.valueFormat, this.valueFormatInternal);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.120.
|
|
3
|
+
"version": "1.120.4",
|
|
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": "4676195c56ae912f2800c39ceeaad18b495e8495"
|
|
47
47
|
}
|
|
@@ -75,7 +75,7 @@ export declare class Date extends TextInput implements IDate {
|
|
|
75
75
|
/**
|
|
76
76
|
* Width of the picker.
|
|
77
77
|
*/
|
|
78
|
-
|
|
78
|
+
pickerWidth: number | string;
|
|
79
79
|
protected isoFormat: string;
|
|
80
80
|
protected dateError: boolean;
|
|
81
81
|
protected formatterFn: Function;
|
|
@@ -19,7 +19,7 @@ export interface IDate extends ITextInput {
|
|
|
19
19
|
scrollable?: boolean;
|
|
20
20
|
showDatePicker?: boolean;
|
|
21
21
|
showWeek?: boolean;
|
|
22
|
-
|
|
22
|
+
pickerWidth?: number | string;
|
|
23
23
|
orderedDates?: boolean;
|
|
24
24
|
helperOptions?: string[];
|
|
25
25
|
helperValue?: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|