@taocompany/magic-grid 0.13.2 → 0.13.3
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/core/grid/gridHierarchyOps.d.ts.map +1 -1
- package/dist/core/renderer/rowRenderer.d.ts +2 -0
- package/dist/core/renderer/rowRenderer.d.ts.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +13 -4
- package/dist/index.es.js.map +1 -1
- package/dist/token-catalog.json +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -13010,6 +13010,14 @@ var nx = class {
|
|
|
13010
13010
|
cancelPendingDestroy(e) {
|
|
13011
13011
|
this.pendingDestroyTasks.delete(e);
|
|
13012
13012
|
}
|
|
13013
|
+
resetRowRenderWindowCache() {
|
|
13014
|
+
this.activeIndices.clear(), this.currentWindow = {
|
|
13015
|
+
firstRow: 0,
|
|
13016
|
+
lastRow: -1,
|
|
13017
|
+
firstCol: this.columnWindow.firstCol,
|
|
13018
|
+
lastCol: this.columnWindow.lastCol
|
|
13019
|
+
};
|
|
13020
|
+
}
|
|
13013
13021
|
redraw(e, t, n, r = !1) {
|
|
13014
13022
|
this.scrollTop = e, this.columnWindow = n;
|
|
13015
13023
|
let i = {
|
|
@@ -13313,6 +13321,7 @@ var nx = class {
|
|
|
13313
13321
|
let r = this.findRowIndexById(e);
|
|
13314
13322
|
r >= 0 && (this.activeIndices.add(r), !n.toUpdate.includes(r) && !n.toCreate.includes(r) && this.updateRowAtIndex(r, t ? { columnStructureChanged: !0 } : void 0));
|
|
13315
13323
|
}
|
|
13324
|
+
this.pruneInactiveRowComps(e);
|
|
13316
13325
|
}
|
|
13317
13326
|
syncVisibleRowLayout() {
|
|
13318
13327
|
let { firstRow: e, lastRow: t } = this.currentWindow;
|
|
@@ -13335,7 +13344,7 @@ var nx = class {
|
|
|
13335
13344
|
}), r.setBeforeLoadMoreRow?.(a != null && Ys(a)), this.projectRowVisualsAtIndex(e, r, n);
|
|
13336
13345
|
}
|
|
13337
13346
|
projectRowVisualsAtIndex(e, t = this.rowPool.get(this.rowModel.getRow(e)?.id ?? ""), n = this.rowModel.getRow(e)) {
|
|
13338
|
-
|
|
13347
|
+
n && (t ||= (this.updateRowAtIndex(e), this.rowPool.get(n.id)), t && (U(n) && !this.embedFullWidthRows || Ys(n) || (t.setRowTop(this.compressedScroll ? n.rowTop - this.scrollTop : n.rowTop), t.setSelected?.(this.selectedRowIds.has(n.id)), t.setSelectionDisabled?.(!this.isRowNodeSelectable(n)), t.setIndexFocused?.(this.indexFocusedRowIds.has(n.id)), t.setIndexColumnRangeHighlight?.(this.indexColumnHighlightChecker?.(e) ?? !1), t.setFocusedColId?.(this.focusedCell?.rowId === n.id ? this.focusedCell.colId : null))));
|
|
13339
13348
|
}
|
|
13340
13349
|
findRowIndexById(e) {
|
|
13341
13350
|
let { firstRow: t, lastRow: n } = this.currentWindow;
|
|
@@ -24822,7 +24831,7 @@ var lA = class {
|
|
|
24822
24831
|
n.length > 0 && (this.deps.clearCellEditorCacheForRemovedRows(n), this.deps.clearCellStyleOverridesForRemovedRows(n), this.deps.rowRenderer.releaseRows(n)), this.emitRowMutationEvents(e), this.flushRowDataChangedEvents();
|
|
24823
24832
|
let r = e.add.length > 0 || e.remove.length > 0 || this.deps.rowModel.getSortModel().length > 0 || this.deps.filterOps.isAnyFilterActive();
|
|
24824
24833
|
if (this.deps.refreshCellSpans(), this.deps.rowRenderer.setValueCacheVersion(this.deps.valueCache.getVersion()), e.update.length > 0 && this.deps.isCellSpanActive()) this.pendingUpdateRefreshNewData = !1, this.deps.rowRenderer.invalidate(), this.deps.viewport.redrawImmediately();
|
|
24825
|
-
else if (r) this.pendingUpdateRefreshNewData = !1, this.deps.viewport.redrawImmediately();
|
|
24834
|
+
else if (r) this.pendingUpdateRefreshNewData = !1, this.deps.rowRenderer.resetRowRenderWindowCache(), this.deps.viewport.redrawImmediately();
|
|
24826
24835
|
else if (e.update.length > 0) {
|
|
24827
24836
|
let t = this.pendingUpdateRefreshNewData;
|
|
24828
24837
|
this.pendingUpdateRefreshNewData = !1, this.deps.rowRenderer.refreshRows({
|
|
@@ -26021,10 +26030,10 @@ var zA = class {
|
|
|
26021
26030
|
this.deps.viewport.redrawRowExpansionIncremental();
|
|
26022
26031
|
}
|
|
26023
26032
|
syncRowGroupingDisplay() {
|
|
26024
|
-
this.deps.rowGroupingService.active && (this.deps.rowModel.rebuildGroupedMapProjection(), this.deps.viewport.syncViewportHeight(), this.deps.refreshCellSpanCache(), this.reconcileOrInvalidateRowPool(), this.deps.viewport.redrawImmediately());
|
|
26033
|
+
this.deps.rowGroupingService.active && (this.deps.rowModel.rebuildGroupedMapProjection(), this.deps.viewport.syncViewportHeight(), this.deps.refreshCellSpanCache(), this.reconcileOrInvalidateRowPool(), this.deps.rowRenderer.resetRowRenderWindowCache(), this.deps.viewport.redrawImmediately());
|
|
26025
26034
|
}
|
|
26026
26035
|
syncTreeTableDisplay() {
|
|
26027
|
-
this.deps.treeTableService.active && (this.deps.rowModel.rebuildTreeMapProjection(), this.deps.viewport.syncViewportHeight(), this.deps.viewport.syncTreeHeaderExpandState(), this.deps.refreshCellSpanCache(), this.reconcileOrInvalidateRowPool(), this.deps.viewport.redrawImmediately(), this.deps.selectionOps.refreshSelectionAfterDataChange());
|
|
26036
|
+
this.deps.treeTableService.active && (this.deps.rowModel.rebuildTreeMapProjection(), this.deps.viewport.syncViewportHeight(), this.deps.viewport.syncTreeHeaderExpandState(), this.deps.refreshCellSpanCache(), this.reconcileOrInvalidateRowPool(), this.deps.rowRenderer.resetRowRenderWindowCache(), this.deps.viewport.redrawImmediately(), this.deps.selectionOps.refreshSelectionAfterDataChange());
|
|
26028
26037
|
}
|
|
26029
26038
|
refreshTreeLoadingVisuals(e) {
|
|
26030
26039
|
if (!this.deps.treeTableService.active) return;
|