@1771technologies/lytenyte-pro 1.0.0-beta.31 → 1.0.0-beta.33
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/cells/cell.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { forwardRef, useEffect, useState } from "react";
|
|
3
3
|
import { fastDeepMemo } from "@1771technologies/lytenyte-react-hooks";
|
|
4
4
|
import { useGridRoot } from "../context";
|
|
5
|
-
import { CellReact
|
|
5
|
+
import { CellReact } from "@1771technologies/lytenyte-shared";
|
|
6
6
|
import { CellDefault } from "./cell-default";
|
|
7
7
|
import { CellEditor } from "./cell-editor";
|
|
8
8
|
import { useRowMeta } from "../rows/row/context";
|
|
@@ -33,8 +33,6 @@ const CellImpl = forwardRef(function Cell({ cell, children, ...props }, forwarde
|
|
|
33
33
|
const rowMeta = useRowMeta();
|
|
34
34
|
if (!row)
|
|
35
35
|
return null;
|
|
36
|
-
if (cell.column.id === GROUP_COLUMN_SINGLE_ID)
|
|
37
|
-
console.log(cell.row.get());
|
|
38
36
|
return (_jsxs(CellReact, { ...props, ref: forwarded, cell: cell, isEditing: isEditing, viewportWidth: cx.viewportWidthInner.useValue(), detailHeight: grid.api.rowDetailRenderedHeight(row ?? ""), rtl: cx.rtl.useValue(), xPosition: cx.xPositions.useValue(), yPosition: cx.yPositions.useValue(), children: [isEditing && _jsx(CellEditor, { cell: cell }), !isEditing && (_jsx(_Fragment, { children: typeof Renderer === "function" ? (_jsx(Renderer, { column: cell.column, rowSelected: rowMeta.selected, rowIndeterminate: rowMeta.indeterminate, row: row, grid: grid, rowIndex: cell.rowIndex, colIndex: cell.colIndex, rowPin: cell.rowPin })) : (Renderer) }))] }));
|
|
39
37
|
});
|
|
40
38
|
export const Cell = fastDeepMemo(CellImpl);
|
|
@@ -3,7 +3,6 @@ import { useTreeViewPaths } from "../tree-view/hooks/use-tree-view-paths";
|
|
|
3
3
|
export function useColumnManager({ grid }) {
|
|
4
4
|
const columns = grid.state.columns.useValue();
|
|
5
5
|
const items = useTreeViewPaths(columns, true);
|
|
6
|
-
console.log(items);
|
|
7
6
|
const branchLookup = useMemo(() => {
|
|
8
7
|
const stack = [...items];
|
|
9
8
|
const lookup = {};
|
|
@@ -523,7 +523,10 @@ export function makeServerDataSource({ dataFetcher, dataColumnPivotFetcher, data
|
|
|
523
523
|
grid?.state.rowGroupExpansions.set((prev) => ({ ...prev, ...p }));
|
|
524
524
|
const next = new Set(rdsStore.get(loadingGroups$));
|
|
525
525
|
rowsForThis.forEach((c) => next.delete(c));
|
|
526
|
-
|
|
526
|
+
rdsStore.set(loadingGroups$, next);
|
|
527
|
+
setTimeout(() => {
|
|
528
|
+
grid?.state.rowDataStore.rowClearCache();
|
|
529
|
+
});
|
|
527
530
|
}, (error) => {
|
|
528
531
|
rdsStore.set(nodesWithError, (prev) => {
|
|
529
532
|
const n = new Map(prev);
|
|
@@ -532,7 +535,10 @@ export function makeServerDataSource({ dataFetcher, dataColumnPivotFetcher, data
|
|
|
532
535
|
});
|
|
533
536
|
const next = new Set(rdsStore.get(loadingGroups$));
|
|
534
537
|
rowsForThis.forEach((c) => next.delete(c));
|
|
535
|
-
|
|
538
|
+
rdsStore.set(loadingGroups$, next);
|
|
539
|
+
setTimeout(() => {
|
|
540
|
+
grid?.state.rowDataStore.rowClearCache();
|
|
541
|
+
});
|
|
536
542
|
});
|
|
537
543
|
};
|
|
538
544
|
const rowToIndex = (rowId) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1771technologies/lytenyte-pro",
|
|
3
3
|
"description": "Blazingly fast headless React data grid with 100s of features.",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.33",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "COMMERCIAL",
|
|
7
7
|
"files": [
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@1771technologies/atom": "^1.0.2",
|
|
52
|
-
"@1771technologies/lytenyte-
|
|
53
|
-
"@1771technologies/lytenyte-
|
|
54
|
-
"@1771technologies/lytenyte-
|
|
55
|
-
"@1771technologies/lytenyte-
|
|
56
|
-
"@1771technologies/lytenyte-
|
|
57
|
-
"@1771technologies/lytenyte-
|
|
52
|
+
"@1771technologies/lytenyte-core": "1.0.0-beta.33",
|
|
53
|
+
"@1771technologies/lytenyte-dragon": "1.0.0-beta.33",
|
|
54
|
+
"@1771technologies/lytenyte-shared": "1.0.0-beta.33",
|
|
55
|
+
"@1771technologies/lytenyte-dom-utils": "1.0.0-beta.33",
|
|
56
|
+
"@1771technologies/lytenyte-js-utils": "1.0.0-beta.33",
|
|
57
|
+
"@1771technologies/lytenyte-react-hooks": "1.0.0-beta.33"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"react": "^18.0.0 || ^19.0.0",
|