@zeedhi/common 1.80.1 → 1.81.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.
- package/dist/zd-common.esm.js +11 -3
- package/dist/zd-common.umd.js +11 -3
- package/package.json +2 -2
- package/types/components/zd-grid/grid.d.ts +1 -0
- package/types/components/zd-iterable/column.d.ts +1 -0
- package/types/components/zd-iterable/interfaces.d.ts +1 -0
- package/types/components/zd-select-tree/select-tree.d.ts +1 -0
package/dist/zd-common.esm.js
CHANGED
|
@@ -2805,8 +2805,9 @@ class Number$1 extends TextInput {
|
|
|
2805
2805
|
this.formatterFn = FormatterParserProvider.getFormatter('ZdNumber');
|
|
2806
2806
|
this.parserFn = FormatterParserProvider.getParser('ZdNumber');
|
|
2807
2807
|
this.maskValid = false;
|
|
2808
|
+
const newMask = Object.assign(Object.assign({}, this.defaultMask), props.mask);
|
|
2808
2809
|
this.align = this.getInitValue('align', props.align, this.align);
|
|
2809
|
-
this.mask = this.getInitValue('mask',
|
|
2810
|
+
this.mask = this.getInitValue('mask', newMask, this.defaultMask);
|
|
2810
2811
|
this.createAccessors();
|
|
2811
2812
|
this.validateMask();
|
|
2812
2813
|
}
|
|
@@ -2897,7 +2898,8 @@ class Currency extends Number$1 {
|
|
|
2897
2898
|
this.defaultMask = Object.assign(Object.assign({}, Config.masks.numberMask), Config.masks.currencyMask);
|
|
2898
2899
|
this.formatterFn = FormatterParserProvider.getFormatter('ZdCurrency');
|
|
2899
2900
|
this.parserFn = FormatterParserProvider.getParser('ZdCurrency');
|
|
2900
|
-
|
|
2901
|
+
const newMask = Object.assign(Object.assign({}, this.defaultMask), props.mask);
|
|
2902
|
+
this.mask = this.getInitValue('mask', newMask, this.defaultMask);
|
|
2901
2903
|
this.createAccessors();
|
|
2902
2904
|
this.validateMask();
|
|
2903
2905
|
}
|
|
@@ -5204,6 +5206,8 @@ class Column extends Component {
|
|
|
5204
5206
|
this.label = '';
|
|
5205
5207
|
this.mask = '';
|
|
5206
5208
|
this.actionFixed = false;
|
|
5209
|
+
/* column is fixed */
|
|
5210
|
+
this.fixed = false;
|
|
5207
5211
|
this.sortable = true;
|
|
5208
5212
|
this.loading = false;
|
|
5209
5213
|
this.componentProps = {};
|
|
@@ -5253,6 +5257,7 @@ class Column extends Component {
|
|
|
5253
5257
|
this.overflow = this.getInitValue('overflow', props.overflow, this.overflow);
|
|
5254
5258
|
this.type = this.getInitValue('type', props.type, this.type);
|
|
5255
5259
|
this.actionFixed = this.getInitValue('actionFixed', props.actionFixed, this.actionFixed);
|
|
5260
|
+
this.fixed = this.getInitValue('fixed', props.fixed, this.fixed);
|
|
5256
5261
|
this.sortable = this.getInitValue('sortable', props.sortable, this.sortable);
|
|
5257
5262
|
this.loading = this.getInitValue('loading', props.loading, this.loading);
|
|
5258
5263
|
this.style = this.getInitValue('style', props.style, this.style);
|
|
@@ -7724,6 +7729,7 @@ class Select extends TextInput {
|
|
|
7724
7729
|
}
|
|
7725
7730
|
showLoadMore() {
|
|
7726
7731
|
return !!this.datasource.data.length
|
|
7732
|
+
&& !this.datasource.loading
|
|
7727
7733
|
&& !this.datasource.loadAll
|
|
7728
7734
|
&& this.datasource.data.length - (this.pushedValue ? 1 : 0) < this.datasource.total;
|
|
7729
7735
|
}
|
|
@@ -9893,6 +9899,7 @@ class SelectMultiple extends Select {
|
|
|
9893
9899
|
}
|
|
9894
9900
|
showLoadMore() {
|
|
9895
9901
|
return !!this.datasource.data.length
|
|
9902
|
+
&& !this.datasource.loading
|
|
9896
9903
|
&& !this.datasource.loadAll
|
|
9897
9904
|
&& (this.datasource.data.length - this.insertedValues.length - this.insertsRemoved.length) < this.datasource.total;
|
|
9898
9905
|
}
|
|
@@ -10484,6 +10491,7 @@ class SelectTree extends TextInput {
|
|
|
10484
10491
|
*/
|
|
10485
10492
|
this.fieldHasChild = '';
|
|
10486
10493
|
this.savedNodes = undefined;
|
|
10494
|
+
this.debounceSearch = debounce(this.searchChange, 500);
|
|
10487
10495
|
this.nodes = this.getInitValue('nodes', props.nodes, this.nodes);
|
|
10488
10496
|
this.alwaysOpen = this.getInitValue('alwaysOpen', props.alwaysOpen, this.alwaysOpen);
|
|
10489
10497
|
this.flattenSearchResults = this.getInitValue('flattenSearchResults', props.flattenSearchResults, this.flattenSearchResults);
|
|
@@ -10711,7 +10719,7 @@ class SelectTree extends TextInput {
|
|
|
10711
10719
|
if (value !== this.lastInputValue) {
|
|
10712
10720
|
this.lastInputValue = value;
|
|
10713
10721
|
this.callInputEvent({ element, component: this });
|
|
10714
|
-
this.
|
|
10722
|
+
this.debounceSearch(value, element);
|
|
10715
10723
|
}
|
|
10716
10724
|
}
|
|
10717
10725
|
get searchValue() {
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -2812,8 +2812,9 @@
|
|
|
2812
2812
|
this.formatterFn = core.FormatterParserProvider.getFormatter('ZdNumber');
|
|
2813
2813
|
this.parserFn = core.FormatterParserProvider.getParser('ZdNumber');
|
|
2814
2814
|
this.maskValid = false;
|
|
2815
|
+
const newMask = Object.assign(Object.assign({}, this.defaultMask), props.mask);
|
|
2815
2816
|
this.align = this.getInitValue('align', props.align, this.align);
|
|
2816
|
-
this.mask = this.getInitValue('mask',
|
|
2817
|
+
this.mask = this.getInitValue('mask', newMask, this.defaultMask);
|
|
2817
2818
|
this.createAccessors();
|
|
2818
2819
|
this.validateMask();
|
|
2819
2820
|
}
|
|
@@ -2904,7 +2905,8 @@
|
|
|
2904
2905
|
this.defaultMask = Object.assign(Object.assign({}, core.Config.masks.numberMask), core.Config.masks.currencyMask);
|
|
2905
2906
|
this.formatterFn = core.FormatterParserProvider.getFormatter('ZdCurrency');
|
|
2906
2907
|
this.parserFn = core.FormatterParserProvider.getParser('ZdCurrency');
|
|
2907
|
-
|
|
2908
|
+
const newMask = Object.assign(Object.assign({}, this.defaultMask), props.mask);
|
|
2909
|
+
this.mask = this.getInitValue('mask', newMask, this.defaultMask);
|
|
2908
2910
|
this.createAccessors();
|
|
2909
2911
|
this.validateMask();
|
|
2910
2912
|
}
|
|
@@ -5211,6 +5213,8 @@
|
|
|
5211
5213
|
this.label = '';
|
|
5212
5214
|
this.mask = '';
|
|
5213
5215
|
this.actionFixed = false;
|
|
5216
|
+
/* column is fixed */
|
|
5217
|
+
this.fixed = false;
|
|
5214
5218
|
this.sortable = true;
|
|
5215
5219
|
this.loading = false;
|
|
5216
5220
|
this.componentProps = {};
|
|
@@ -5260,6 +5264,7 @@
|
|
|
5260
5264
|
this.overflow = this.getInitValue('overflow', props.overflow, this.overflow);
|
|
5261
5265
|
this.type = this.getInitValue('type', props.type, this.type);
|
|
5262
5266
|
this.actionFixed = this.getInitValue('actionFixed', props.actionFixed, this.actionFixed);
|
|
5267
|
+
this.fixed = this.getInitValue('fixed', props.fixed, this.fixed);
|
|
5263
5268
|
this.sortable = this.getInitValue('sortable', props.sortable, this.sortable);
|
|
5264
5269
|
this.loading = this.getInitValue('loading', props.loading, this.loading);
|
|
5265
5270
|
this.style = this.getInitValue('style', props.style, this.style);
|
|
@@ -7731,6 +7736,7 @@
|
|
|
7731
7736
|
}
|
|
7732
7737
|
showLoadMore() {
|
|
7733
7738
|
return !!this.datasource.data.length
|
|
7739
|
+
&& !this.datasource.loading
|
|
7734
7740
|
&& !this.datasource.loadAll
|
|
7735
7741
|
&& this.datasource.data.length - (this.pushedValue ? 1 : 0) < this.datasource.total;
|
|
7736
7742
|
}
|
|
@@ -9900,6 +9906,7 @@
|
|
|
9900
9906
|
}
|
|
9901
9907
|
showLoadMore() {
|
|
9902
9908
|
return !!this.datasource.data.length
|
|
9909
|
+
&& !this.datasource.loading
|
|
9903
9910
|
&& !this.datasource.loadAll
|
|
9904
9911
|
&& (this.datasource.data.length - this.insertedValues.length - this.insertsRemoved.length) < this.datasource.total;
|
|
9905
9912
|
}
|
|
@@ -10491,6 +10498,7 @@
|
|
|
10491
10498
|
*/
|
|
10492
10499
|
this.fieldHasChild = '';
|
|
10493
10500
|
this.savedNodes = undefined;
|
|
10501
|
+
this.debounceSearch = debounce__default["default"](this.searchChange, 500);
|
|
10494
10502
|
this.nodes = this.getInitValue('nodes', props.nodes, this.nodes);
|
|
10495
10503
|
this.alwaysOpen = this.getInitValue('alwaysOpen', props.alwaysOpen, this.alwaysOpen);
|
|
10496
10504
|
this.flattenSearchResults = this.getInitValue('flattenSearchResults', props.flattenSearchResults, this.flattenSearchResults);
|
|
@@ -10718,7 +10726,7 @@
|
|
|
10718
10726
|
if (value !== this.lastInputValue) {
|
|
10719
10727
|
this.lastInputValue = value;
|
|
10720
10728
|
this.callInputEvent({ element, component: this });
|
|
10721
|
-
this.
|
|
10729
|
+
this.debounceSearch(value, element);
|
|
10722
10730
|
}
|
|
10723
10731
|
}
|
|
10724
10732
|
get searchValue() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.81.1",
|
|
4
4
|
"description": "Zeedhi Common",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"lodash.times": "4.3.*",
|
|
42
42
|
"mockdate": "3.0.*"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "75afef60bd7124669d1048e38557e25260d9b619"
|
|
45
45
|
}
|
|
@@ -124,6 +124,7 @@ export declare class Grid extends Iterable implements IGrid {
|
|
|
124
124
|
* @public
|
|
125
125
|
*/
|
|
126
126
|
rowStyleConditions?: (row: IDictionary) => IDictionary;
|
|
127
|
+
viewUpdateFixedColumns?: () => void;
|
|
127
128
|
/**
|
|
128
129
|
* Disable selection of specific rows using controller
|
|
129
130
|
* @public
|
|
@@ -140,6 +140,7 @@ export declare class SelectTree extends TextInput implements ISelectTree {
|
|
|
140
140
|
* @param element Element focused
|
|
141
141
|
*/
|
|
142
142
|
searchInput(value: string, element?: any): void;
|
|
143
|
+
private debounceSearch;
|
|
143
144
|
get searchValue(): any;
|
|
144
145
|
protected clearRow(row: IDictionary<any>): {
|
|
145
146
|
[x: string]: any;
|