@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.
package/dist/zd-common.esm.js
CHANGED
|
@@ -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
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
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
|
/**
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -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
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
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.
|
|
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": "
|
|
42
|
+
"gitHead": "4844a8a23f08e63110e73fddb458514a7f3bfa18"
|
|
43
43
|
}
|