@polygrid/core 1.0.466 → 1.0.467
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,QAoB/B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { takeUntil } from "../../../rx-lite/operators/takeuntil";
|
|
2
|
-
import { RowPool } from "../../row/classes/row-pool";
|
|
3
2
|
import { recomputeVirtualRows } from "../../row/methods/recompute-virtual-rows";
|
|
4
3
|
export function toggleLoading(loadingService, destroy$) {
|
|
5
4
|
const grid = loadingService.grid;
|
|
@@ -16,19 +15,8 @@ export function toggleLoading(loadingService, destroy$) {
|
|
|
16
15
|
else {
|
|
17
16
|
// loading OFF → create row pool, if not yet exists
|
|
18
17
|
if (!loadingService.grid._runtime.rowPool) {
|
|
19
|
-
|
|
20
|
-
const columns = state.view.internalColumns;
|
|
21
|
-
const viewportHeight = state.view.viewportHeight;
|
|
22
|
-
const rowPool = new RowPool(grid._gridDom, columns, rowHeight, grid, viewportHeight);
|
|
23
|
-
grid._runtime.rowPool = rowPool;
|
|
24
|
-
// use fresh virtualRows
|
|
25
|
-
const v = state.ui.virtualRows;
|
|
26
|
-
recomputeVirtualRows(v);
|
|
27
|
-
const data = state.view.rows;
|
|
28
|
-
rowPool.update(v, data);
|
|
18
|
+
console.log("belép");
|
|
29
19
|
}
|
|
30
|
-
const v = draft.ui.virtualRows;
|
|
31
|
-
v.renderStartIndex = v.renderStartIndex;
|
|
32
20
|
}
|
|
33
21
|
});
|
|
34
22
|
}, "TOGGLE-LOADING");
|
|
@@ -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;AAGjE,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,CAAC;QACrC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;YAC3B,IAAI,OAAO,EAAE,CAAC;gBACZ,0BAA0B;gBAC1B,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;gBACrB,KAAK,CAAC,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;gBACzB,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,aAAa,GAAG,CAAC,CAAC;gBACvC,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;YAC7C,CAAC;iBAAM,CAAC;gBACN,mDAAmD;gBACnD,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;oBAC1C,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBACvB,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,gBAAgB,CAAC,CAAC;AACvB,CAAC"}
|