@polygrid/core 1.0.468 → 1.0.470
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-loading.d.ts","sourceRoot":"","sources":["../../../../../src/engine/services/loading/methods/toggle-loading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAK7E,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,wBAAgB,aAAa,CAC3B,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"toggle-loading.d.ts","sourceRoot":"","sources":["../../../../../src/engine/services/loading/methods/toggle-loading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAK7E,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,wBAAgB,aAAa,CAC3B,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,QA0C/B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { takeUntil } from "../../../rx-lite/operators/takeuntil";
|
|
2
|
+
import { RowPool } from "../../row/classes/row-pool";
|
|
2
3
|
import { recomputeVirtualRows } from "../../row/methods/recompute-virtual-rows";
|
|
3
4
|
export function toggleLoading(loadingService, destroy$) {
|
|
4
5
|
const grid = loadingService.grid;
|
|
@@ -13,10 +14,23 @@ export function toggleLoading(loadingService, destroy$) {
|
|
|
13
14
|
recomputeVirtualRows(draft.ui.virtualRows);
|
|
14
15
|
}
|
|
15
16
|
else {
|
|
16
|
-
// loading OFF
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
// loading OFF - if loading is still visible, remove it and update the row pool
|
|
18
|
+
if (grid._runtime.loadingContainer) {
|
|
19
|
+
grid._runtime.loadingContainer.remove();
|
|
20
|
+
grid._runtime.loadingContainer = null;
|
|
21
|
+
// Destroy dynamic template if any
|
|
22
|
+
grid._runtime.loadingHandle?.destroy();
|
|
23
|
+
grid._runtime.loadingHandle = null;
|
|
24
|
+
const rowHeight = state.view.rowHeight;
|
|
25
|
+
const columns = state.view.internalColumns;
|
|
26
|
+
const viewportHeight = state.view.viewportHeight;
|
|
27
|
+
const rowPool = new RowPool(grid._gridDom, columns, rowHeight, grid, viewportHeight);
|
|
28
|
+
grid._runtime.rowPool = rowPool;
|
|
29
|
+
// use fresh virtualRows
|
|
30
|
+
const v = state.ui.virtualRows;
|
|
31
|
+
recomputeVirtualRows(v);
|
|
32
|
+
const data = state.view.rows;
|
|
33
|
+
rowPool.update(v, data);
|
|
20
34
|
console.log("belép");
|
|
21
35
|
}
|
|
22
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-loading.js","sourceRoot":"","sources":["../../../../../src/engine/services/loading/methods/toggle-loading.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"toggle-loading.js","sourceRoot":"","sources":["../../../../../src/engine/services/loading/methods/toggle-loading.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEjE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAGhF,MAAM,UAAU,aAAa,CAC3B,cAA8B,EAC9B,QAA8B;IAE9B,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC;IACjC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,EAAE;QACtE,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAA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