@zeedhi/common 1.72.0 → 1.73.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
|
@@ -4747,7 +4747,7 @@ class Column extends Component {
|
|
|
4747
4747
|
data.forEach((row) => {
|
|
4748
4748
|
lookupData[row[lookupColumn]] = row;
|
|
4749
4749
|
});
|
|
4750
|
-
this.lookupData = lookupData;
|
|
4750
|
+
this.lookupData = Object.assign(Object.assign({}, this.lookupData), lookupData);
|
|
4751
4751
|
this.lookupDataCount += 1;
|
|
4752
4752
|
this.loading = false;
|
|
4753
4753
|
});
|
|
@@ -4965,6 +4965,10 @@ class Iterable extends ComponentRender {
|
|
|
4965
4965
|
* Uses virtual scrolling to render data.
|
|
4966
4966
|
*/
|
|
4967
4967
|
this.virtualScroll = false;
|
|
4968
|
+
/**
|
|
4969
|
+
* Number of lines outside the viewport to cache when using virtual scroll.
|
|
4970
|
+
*/
|
|
4971
|
+
this.virtualScrollCache = 5;
|
|
4968
4972
|
/**
|
|
4969
4973
|
* Dictionary of rowKey ponting to Dictionary of colName pointing to Dictionary of prop pointing to the
|
|
4970
4974
|
* condition (applied) return value
|
|
@@ -4982,6 +4986,7 @@ class Iterable extends ComponentRender {
|
|
|
4982
4986
|
this.pageSizes = this.getInitValue('pageSizes', props.pageSizes, this.pageSizes);
|
|
4983
4987
|
this.searchVisibleOnly = this.getInitValue('searchVisibleOnly', props.searchVisibleOnly, this.defaultSearchVisibleOnly);
|
|
4984
4988
|
this.virtualScroll = this.getInitValue('virtualScroll', props.virtualScroll, this.virtualScroll);
|
|
4989
|
+
this.virtualScrollCache = this.getInitValue('virtualScrollCache', props.virtualScrollCache, this.virtualScrollCache);
|
|
4985
4990
|
}
|
|
4986
4991
|
createController() {
|
|
4987
4992
|
const controller = new IterableController(this);
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -4754,7 +4754,7 @@
|
|
|
4754
4754
|
data.forEach((row) => {
|
|
4755
4755
|
lookupData[row[lookupColumn]] = row;
|
|
4756
4756
|
});
|
|
4757
|
-
this.lookupData = lookupData;
|
|
4757
|
+
this.lookupData = Object.assign(Object.assign({}, this.lookupData), lookupData);
|
|
4758
4758
|
this.lookupDataCount += 1;
|
|
4759
4759
|
this.loading = false;
|
|
4760
4760
|
});
|
|
@@ -4972,6 +4972,10 @@
|
|
|
4972
4972
|
* Uses virtual scrolling to render data.
|
|
4973
4973
|
*/
|
|
4974
4974
|
this.virtualScroll = false;
|
|
4975
|
+
/**
|
|
4976
|
+
* Number of lines outside the viewport to cache when using virtual scroll.
|
|
4977
|
+
*/
|
|
4978
|
+
this.virtualScrollCache = 5;
|
|
4975
4979
|
/**
|
|
4976
4980
|
* Dictionary of rowKey ponting to Dictionary of colName pointing to Dictionary of prop pointing to the
|
|
4977
4981
|
* condition (applied) return value
|
|
@@ -4989,6 +4993,7 @@
|
|
|
4989
4993
|
this.pageSizes = this.getInitValue('pageSizes', props.pageSizes, this.pageSizes);
|
|
4990
4994
|
this.searchVisibleOnly = this.getInitValue('searchVisibleOnly', props.searchVisibleOnly, this.defaultSearchVisibleOnly);
|
|
4991
4995
|
this.virtualScroll = this.getInitValue('virtualScroll', props.virtualScroll, this.virtualScroll);
|
|
4996
|
+
this.virtualScrollCache = this.getInitValue('virtualScrollCache', props.virtualScrollCache, this.virtualScrollCache);
|
|
4992
4997
|
}
|
|
4993
4998
|
createController() {
|
|
4994
4999
|
const controller = new IterableController(this);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.73.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": "667a76461a83554592072568c8313ed15a013bcb"
|
|
43
43
|
}
|
|
@@ -31,6 +31,7 @@ export interface IIterable extends IComponentRender {
|
|
|
31
31
|
datasource?: IDatasource;
|
|
32
32
|
pageSizes?: string[];
|
|
33
33
|
virtualScroll?: boolean;
|
|
34
|
+
virtualScrollCache?: number;
|
|
34
35
|
searchVisibleOnly?: boolean;
|
|
35
36
|
}
|
|
36
37
|
export interface IIterablePageComponent extends IComponentRender {
|
|
@@ -26,6 +26,10 @@ export declare class Iterable extends ComponentRender implements IIterable {
|
|
|
26
26
|
* Uses virtual scrolling to render data.
|
|
27
27
|
*/
|
|
28
28
|
virtualScroll: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Number of lines outside the viewport to cache when using virtual scroll.
|
|
31
|
+
*/
|
|
32
|
+
virtualScrollCache: number;
|
|
29
33
|
/**
|
|
30
34
|
* Dictionary of rowKey ponting to Dictionary of colName pointing to Dictionary of prop pointing to the
|
|
31
35
|
* condition (applied) return value
|