@zeedhi/common 1.71.0 → 1.72.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.
@@ -4712,6 +4712,7 @@ class Column extends Component {
4712
4712
  this.align = 'left';
4713
4713
  this.label = '';
4714
4714
  this.mask = '';
4715
+ this.actionFixed = false;
4715
4716
  this.sortable = true;
4716
4717
  this.loading = false;
4717
4718
  this.componentProps = {};
@@ -4760,6 +4761,7 @@ class Column extends Component {
4760
4761
  this.mask = this.getInitValue('mask', props.mask, this.mask);
4761
4762
  this.overflow = this.getInitValue('overflow', props.overflow, this.overflow);
4762
4763
  this.type = this.getInitValue('type', props.type, this.type);
4764
+ this.actionFixed = this.getInitValue('actionFixed', props.actionFixed, this.actionFixed);
4763
4765
  this.sortable = this.getInitValue('sortable', props.sortable, this.sortable);
4764
4766
  this.loading = this.getInitValue('loading', props.loading, this.loading);
4765
4767
  this.style = this.getInitValue('style', props.style, this.style);
@@ -4825,9 +4827,15 @@ class Column extends Component {
4825
4827
  this.lookupData[value] = this.lookupDatasource.data[dataIndex];
4826
4828
  return this.lookupData[value];
4827
4829
  }
4828
- this.dataToLookup = (this.dataToLookup || []);
4829
- this.dataToLookup.push(value);
4830
- this.lookup(lookupColumn);
4830
+ const hasLookupColumn = this.lookupDatasource.data.every((row) => Reflect.has(row, lookupColumn));
4831
+ if (hasLookupColumn) {
4832
+ this.dataToLookup = (this.dataToLookup || []);
4833
+ this.dataToLookup.push(value);
4834
+ this.lookup(lookupColumn);
4835
+ }
4836
+ else {
4837
+ console.warn(`Row datasource do not have a key: ${lookupColumn}`);
4838
+ }
4831
4839
  return emptyRow;
4832
4840
  }
4833
4841
  /**
@@ -4719,6 +4719,7 @@
4719
4719
  this.align = 'left';
4720
4720
  this.label = '';
4721
4721
  this.mask = '';
4722
+ this.actionFixed = false;
4722
4723
  this.sortable = true;
4723
4724
  this.loading = false;
4724
4725
  this.componentProps = {};
@@ -4767,6 +4768,7 @@
4767
4768
  this.mask = this.getInitValue('mask', props.mask, this.mask);
4768
4769
  this.overflow = this.getInitValue('overflow', props.overflow, this.overflow);
4769
4770
  this.type = this.getInitValue('type', props.type, this.type);
4771
+ this.actionFixed = this.getInitValue('actionFixed', props.actionFixed, this.actionFixed);
4770
4772
  this.sortable = this.getInitValue('sortable', props.sortable, this.sortable);
4771
4773
  this.loading = this.getInitValue('loading', props.loading, this.loading);
4772
4774
  this.style = this.getInitValue('style', props.style, this.style);
@@ -4832,9 +4834,15 @@
4832
4834
  this.lookupData[value] = this.lookupDatasource.data[dataIndex];
4833
4835
  return this.lookupData[value];
4834
4836
  }
4835
- this.dataToLookup = (this.dataToLookup || []);
4836
- this.dataToLookup.push(value);
4837
- this.lookup(lookupColumn);
4837
+ const hasLookupColumn = this.lookupDatasource.data.every((row) => Reflect.has(row, lookupColumn));
4838
+ if (hasLookupColumn) {
4839
+ this.dataToLookup = (this.dataToLookup || []);
4840
+ this.dataToLookup.push(value);
4841
+ this.lookup(lookupColumn);
4842
+ }
4843
+ else {
4844
+ console.warn(`Row datasource do not have a key: ${lookupColumn}`);
4845
+ }
4838
4846
  return emptyRow;
4839
4847
  }
4840
4848
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.71.0",
3
+ "version": "1.72.0",
4
4
  "description": "Zeedhi Common",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -39,5 +39,5 @@
39
39
  "lodash.times": "^4.3.2",
40
40
  "mockdate": "^3.0.2"
41
41
  },
42
- "gitHead": "6e0e1cef3955cae7029ad947eb8c83fe589621b7"
42
+ "gitHead": "4844a8a23f08e63110e73fddb458514a7f3bfa18"
43
43
  }
@@ -12,6 +12,7 @@ export declare class Column extends Component implements IColumn {
12
12
  minWidth?: string;
13
13
  mask: string;
14
14
  type?: ColumnType;
15
+ actionFixed: boolean;
15
16
  sortable: boolean;
16
17
  loading: boolean;
17
18
  componentProps: any;
@@ -17,6 +17,7 @@ export interface IColumn extends IComponent {
17
17
  overflow?: string | number;
18
18
  mask?: string;
19
19
  type?: ColumnType;
20
+ actionFixed?: boolean;
20
21
  sortable?: boolean;
21
22
  loading?: boolean;
22
23
  componentProps?: IComponent;