@zeedhi/common 1.81.0 → 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.
@@ -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', props.mask, this.defaultMask);
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
- this.mask = this.getInitValue('mask', props.mask, this.defaultMask);
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
  }
@@ -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', props.mask, this.defaultMask);
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
- this.mask = this.getInitValue('mask', props.mask, this.defaultMask);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.81.0",
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": "895b0c66924cfd9a800ce45074822e4994f7cda8"
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
@@ -13,6 +13,7 @@ export declare class Column extends Component implements IColumn {
13
13
  mask: string;
14
14
  type?: ColumnType;
15
15
  actionFixed: boolean;
16
+ fixed: boolean;
16
17
  sortable: boolean;
17
18
  loading: boolean;
18
19
  componentProps: any;
@@ -18,6 +18,7 @@ export interface IColumn extends IComponent {
18
18
  mask?: string;
19
19
  type?: ColumnType;
20
20
  actionFixed?: boolean;
21
+ fixed?: boolean;
21
22
  sortable?: boolean;
22
23
  loading?: boolean;
23
24
  componentProps?: IComponent;