@polygrid/core 1.0.460 → 1.0.461
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/api/set-external-loading.d.ts.map +1 -1
- package/dist/api/set-external-loading.js +7 -0
- package/dist/api/set-external-loading.js.map +1 -1
- package/dist/engine/services/loading/methods/toggle-loading.d.ts.map +1 -1
- package/dist/engine/services/loading/methods/toggle-loading.js +3 -12
- package/dist/engine/services/loading/methods/toggle-loading.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-external-loading.d.ts","sourceRoot":"","sources":["../../src/api/set-external-loading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"set-external-loading.d.ts","sourceRoot":"","sources":["../../src/api/set-external-loading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGpD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,QAUlE"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { recomputeVirtualRows } from "../engine/services/row/methods/recompute-virtual-rows";
|
|
1
2
|
export function setExternalLoading(grid, visible) {
|
|
2
3
|
grid._store.update((draft) => {
|
|
4
|
+
if (visible) {
|
|
5
|
+
draft.view.rows = [];
|
|
6
|
+
draft.view.viewRows = [];
|
|
7
|
+
draft.ui.virtualRows.totalRowCount = 0;
|
|
8
|
+
recomputeVirtualRows(draft.ui.virtualRows);
|
|
9
|
+
}
|
|
3
10
|
draft.view.externalLoading = visible;
|
|
4
11
|
});
|
|
5
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-external-loading.js","sourceRoot":"","sources":["../../src/api/set-external-loading.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-external-loading.js","sourceRoot":"","sources":["../../src/api/set-external-loading.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;AAE7F,MAAM,UAAU,kBAAkB,CAAC,IAAc,EAAE,OAAgB;IACjE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;QAC3B,IAAI,OAAO,EAAE,CAAC;YACZ,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;YACrB,KAAK,CAAC,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;YACzB,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,aAAa,GAAG,CAAC,CAAC;YACvC,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QAC7C,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -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;
|
|
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;AAE7E,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,wBAAgB,aAAa,CAC3B,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,QAK/B"}
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import { takeUntil } from "../../../rx-lite/operators/takeuntil";
|
|
2
|
-
import { recomputeVirtualRows } from "../../row/methods/recompute-virtual-rows";
|
|
3
2
|
export function toggleLoading(loadingService, destroy$) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
grid._store.update((draft) => {
|
|
8
|
-
draft.view.rows = [];
|
|
9
|
-
draft.view.viewRows = [];
|
|
10
|
-
draft.ui.virtualRows.totalRowCount = 0;
|
|
11
|
-
recomputeVirtualRows(draft.ui.virtualRows);
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}, "TOGGLE-LOADING");
|
|
3
|
+
loadingService.loading$
|
|
4
|
+
.pipe(takeUntil(destroy$))
|
|
5
|
+
.subscribe((visible) => { }, "TOGGLE-LOADING");
|
|
15
6
|
}
|
|
16
7
|
//# sourceMappingURL=toggle-loading.js.map
|
|
@@ -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,MAAM,UAAU,aAAa,CAC3B,cAA8B,EAC9B,QAA8B;IAE9B,cAAc,CAAC,QAAQ;SACpB,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;SACzB,SAAS,CAAC,CAAC,OAAO,EAAE,EAAE,GAAE,CAAC,EAAE,gBAAgB,CAAC,CAAC;AAClD,CAAC"}
|