@1771technologies/lytenyte-pro 1.0.0-beta.2 → 1.0.0-beta.4
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/cell-selection/adjust-rect-for-row-and-cell-span.d.ts +1 -1
- package/dist/cell-selection/adjust-rect-for-row-and-cell-span.js +1 -1
- package/dist/cell-selection/are-rects-equal.d.ts +1 -1
- package/dist/cell-selection/bound-selection-rect.d.ts +1 -1
- package/dist/cell-selection/deselect-rect-range.d.ts +1 -1
- package/dist/cell-selection/deselect-rect-range.js +1 -1
- package/dist/cell-selection/expand-cell-selection-down.d.ts +2 -2
- package/dist/cell-selection/expand-cell-selection-down.js +1 -1
- package/dist/cell-selection/expand-cell-selection-end.d.ts +2 -2
- package/dist/cell-selection/expand-cell-selection-end.js +1 -1
- package/dist/cell-selection/expand-cell-selection-start.d.ts +2 -2
- package/dist/cell-selection/expand-cell-selection-start.js +1 -1
- package/dist/cell-selection/expand-cell-selection-up.d.ts +2 -2
- package/dist/cell-selection/expand-cell-selection-up.js +1 -1
- package/dist/cell-selection/full-width-start-end-index.d.ts +1 -1
- package/dist/cell-selection/get-root-cell.d.ts +1 -1
- package/dist/cell-selection/get-root-cell.js +2 -2
- package/dist/cell-selection/is-bottom-rect.d.ts +1 -1
- package/dist/cell-selection/is-center-col-rect.d.ts +1 -1
- package/dist/cell-selection/is-center-rect.d.ts +1 -1
- package/dist/cell-selection/is-end-rect.d.ts +1 -1
- package/dist/cell-selection/is-overlapping-rect.d.ts +1 -1
- package/dist/cell-selection/is-start-rect.d.ts +1 -1
- package/dist/cell-selection/is-top-rect.d.ts +1 -1
- package/dist/cell-selection/is-within-selection-rect.d.ts +1 -1
- package/dist/cell-selection/split-cell-selection-rect.d.ts +1 -1
- package/dist/cell-selection/update-additive-cell-selection.d.ts +2 -2
- package/dist/cell-selection/update-additive-cell-selection.js +4 -4
- package/dist/cell-selection/use-edge-scroll.d.ts +2 -2
- package/dist/column-manager/use-column-manager.d.ts +2 -2
- package/dist/column-manager/use-column-manager.js +1 -1
- package/dist/column-manager/use-columns-from-context.d.ts +2 -2
- package/dist/column-manager/use-columns-from-context.js +1 -1
- package/dist/filter-tree/filter-tree.d.ts +7 -7
- package/dist/filter-tree/filter-tree.js +8 -8
- package/dist/filter-tree/hooks/use-tree-item.d.ts +2 -2
- package/dist/filter-tree/hooks/use-tree-item.js +2 -2
- package/dist/grid-box/+types.d.ts +1 -1
- package/dist/grid-box/context.d.ts +1 -1
- package/dist/grid-box/use-aggregation-box-items.d.ts +2 -2
- package/dist/grid-box/use-column-box-items.d.ts +2 -2
- package/dist/grid-box/use-row-group-box-items.d.ts +2 -2
- package/dist/grid-provider/context.d.ts +2 -2
- package/dist/grid-provider/provider.d.ts +2 -2
- package/dist/grid-provider/provider.js +1 -1
- package/dist/grid-provider/use-grid.d.ts +2 -2
- package/dist/grid-provider/use-grid.js +1 -1
- package/dist/grid.d.ts +1 -0
- package/dist/grid.js +2 -0
- package/dist/header/resize-handler.js +1 -0
- package/dist/header/use-drag-move.d.ts +2 -2
- package/dist/row-data-source-client/built-ins/built-ins.d.ts +1 -1
- package/dist/row-data-source-client/built-ins/built-ins.js +1 -1
- package/dist/row-data-source-client/pivots/create-pivot-columns.js +2 -2
- package/dist/row-data-source-client/tree/evaluator-aggregation.d.ts +1 -1
- package/dist/row-data-source-client/tree/evaluator-group.d.ts +1 -1
- package/dist/row-data-source-client/tree/traverse.d.ts +1 -1
- package/dist/row-data-source-client/tree/traverse.js +1 -1
- package/dist/row-data-source-client/use-client-data-source-paginated.d.ts +2 -2
- package/dist/row-data-source-client/use-client-data-source-paginated.js +5 -5
- package/dist/row-data-source-client/use-client-data-source.d.ts +2 -2
- package/dist/row-data-source-client/use-client-data-source.js +7 -7
- package/dist/row-data-source-client/use-client-tree-data-source.d.ts +1 -1
- package/dist/row-data-source-client/use-client-tree-data-source.js +5 -5
- package/dist/row-data-source-server/async-tree/apply-delete-action-to-tree.js +1 -1
- package/dist/row-data-source-server/async-tree/make-async-tree.js +3 -3
- package/dist/row-data-source-server/use-server-data-source.d.ts +1 -1
- package/dist/row-data-source-server/use-server-data-source.js +5 -5
- package/dist/sort-manager/context.d.ts +3 -3
- package/dist/sort-manager/hooks/use-sort-manager.d.ts +2 -2
- package/dist/sort-manager/hooks/use-sort-manager.js +2 -2
- package/dist/sort-manager/hooks/use-sort-row-item.d.ts +1 -1
- package/dist/sort-manager/hooks/use-sort-row-item.js +1 -1
- package/dist/sort-manager/utils/sort-item-to-sort-model.d.ts +1 -1
- package/dist/sort-manager/utils/sort-model-to-sort-items.d.ts +1 -1
- package/dist/state/api/column-autosize.d.ts +1 -1
- package/dist/state/api/column-autosize.js +1 -1
- package/dist/state/api/column-move.js +1 -1
- package/dist/state/api/dialog-frame.d.ts +1 -1
- package/dist/state/api/edit-begin.d.ts +1 -1
- package/dist/state/api/edit-begin.js +1 -1
- package/dist/state/api/edit-end.d.ts +1 -1
- package/dist/state/api/edit-is-cell-active.d.ts +1 -1
- package/dist/state/api/edit-update.d.ts +1 -1
- package/dist/state/api/edit-update.js +1 -1
- package/dist/state/api/export-csv.js +1 -1
- package/dist/state/api/export-data-rect.js +1 -1
- package/dist/state/api/focus-cell.d.ts +1 -1
- package/dist/state/api/popover-frame.d.ts +2 -2
- package/dist/state/api/row-detail-rendered-height.d.ts +2 -2
- package/package.json +6 -6
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataRect, Grid } from "../+types";
|
|
1
|
+
import type { DataRect, Grid } from "../+types.js";
|
|
2
2
|
export declare function adjustRectForRowAndCellSpan<T>(grid: Grid<T>, rect: DataRect): DataRect;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataRect } from "../+types";
|
|
1
|
+
import type { DataRect } from "../+types.js";
|
|
2
2
|
export declare function areRectsEqual(left: DataRect, right: DataRect): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataRect, Grid } from "../+types";
|
|
1
|
+
import type { DataRect, Grid } from "../+types.js";
|
|
2
2
|
export declare function boundSelectionRect(grid: Grid<any>, rect: DataRect): DataRect;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataRect } from "../+types";
|
|
1
|
+
import type { DataRect } from "../+types.js";
|
|
2
2
|
export declare function deselectRectRange(rect: DataRect, deselectRect: DataRect): DataRect[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Grid } from "../+types";
|
|
2
|
-
import type { InternalAtoms } from "../state/+types";
|
|
1
|
+
import type { Grid } from "../+types.js";
|
|
2
|
+
import type { InternalAtoms } from "../state/+types.js";
|
|
3
3
|
export declare function expandCellSelectionDown(grid: Grid<any> & {
|
|
4
4
|
internal: InternalAtoms;
|
|
5
5
|
}, meta: boolean): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Grid } from "../+types";
|
|
2
|
-
import type { InternalAtoms } from "../state/+types";
|
|
1
|
+
import type { Grid } from "../+types.js";
|
|
2
|
+
import type { InternalAtoms } from "../state/+types.js";
|
|
3
3
|
export declare function expandCellSelectionEnd(grid: Grid<any> & {
|
|
4
4
|
internal: InternalAtoms;
|
|
5
5
|
}, meta: boolean): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getRootCell } from "./get-root-cell";
|
|
1
|
+
import { getRootCell } from "./get-root-cell.js";
|
|
2
2
|
export function expandCellSelectionEnd(grid, meta) {
|
|
3
3
|
const selections = grid.state.cellSelections.get();
|
|
4
4
|
const cellSelectionPivot = grid.internal.cellSelectionPivot.get();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InternalAtoms } from "../state/+types";
|
|
2
|
-
import type { Grid } from "../+types";
|
|
1
|
+
import type { InternalAtoms } from "../state/+types.js";
|
|
2
|
+
import type { Grid } from "../+types.js";
|
|
3
3
|
export declare function expandCellSelectionStart(grid: Grid<any> & {
|
|
4
4
|
internal: InternalAtoms;
|
|
5
5
|
}, meta: boolean): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getRootCell } from "./get-root-cell";
|
|
1
|
+
import { getRootCell } from "./get-root-cell.js";
|
|
2
2
|
export function expandCellSelectionStart(grid, meta) {
|
|
3
3
|
const selections = grid.state.cellSelections.get();
|
|
4
4
|
const cellSelectionPivot = grid.internal.cellSelectionPivot.get();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InternalAtoms } from "../state/+types";
|
|
2
|
-
import type { Grid } from "../+types";
|
|
1
|
+
import type { InternalAtoms } from "../state/+types.js";
|
|
2
|
+
import type { Grid } from "../+types.js";
|
|
3
3
|
export declare function expandCellSelectionUp(grid: Grid<any> & {
|
|
4
4
|
internal: InternalAtoms;
|
|
5
5
|
}, meta: boolean): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getRootCell } from "./get-root-cell";
|
|
1
|
+
import { getRootCell } from "./get-root-cell.js";
|
|
2
2
|
export function expandCellSelectionUp(grid, meta) {
|
|
3
3
|
const selections = grid.state.cellSelections.get();
|
|
4
4
|
const cellSelectionPivot = grid.internal.cellSelectionPivot.get();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Grid } from "../+types";
|
|
1
|
+
import type { Grid } from "../+types.js";
|
|
2
2
|
export declare function fullWidthStartEndIndex(grid: Grid<any>): number[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Grid, PositionGridCell } from "../+types";
|
|
1
|
+
import type { Grid, PositionGridCell } from "../+types.js";
|
|
2
2
|
export declare const getRootCell: (grid: Grid<any>, rowIndex: number, columnIndex: number) => PositionGridCell["root"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getSpanFn } from "../state/helpers/get-span-callback";
|
|
2
|
-
import { getFullWidthCallback } from "../state/helpers/get-full-width-callback";
|
|
1
|
+
import { getSpanFn } from "../state/helpers/get-span-callback.js";
|
|
2
|
+
import { getFullWidthCallback } from "../state/helpers/get-full-width-callback.js";
|
|
3
3
|
import { applyLayoutUpdate } from "@1771technologies/lytenyte-shared";
|
|
4
4
|
export const getRootCell = (grid, rowIndex, columnIndex) => {
|
|
5
5
|
const rds = grid.state.rowDataSource.get();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataRect, Grid } from "../+types";
|
|
1
|
+
import type { DataRect, Grid } from "../+types.js";
|
|
2
2
|
export declare function isBottomRect(grid: Grid<any>, rect: DataRect): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataRect, Grid } from "../+types";
|
|
1
|
+
import type { DataRect, Grid } from "../+types.js";
|
|
2
2
|
export declare function isCenterRect(grid: Grid<any>, rect: DataRect): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataRect } from "../+types";
|
|
1
|
+
import type { DataRect } from "../+types.js";
|
|
2
2
|
export declare function isOverlappingRect(rect1: DataRect, rect2: DataRect): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataRect, Grid } from "../+types";
|
|
1
|
+
import type { DataRect, Grid } from "../+types.js";
|
|
2
2
|
export declare function isTopRect(grid: Grid<any>, rect: DataRect): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataRect } from "../+types";
|
|
1
|
+
import type { DataRect } from "../+types.js";
|
|
2
2
|
export declare function isWithinSelectionRect(rect: DataRect, r: number, c: number): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DataRect, Grid } from "../+types";
|
|
2
|
-
import type { InternalAtoms } from "../state/+types";
|
|
1
|
+
import type { DataRect, Grid } from "../+types.js";
|
|
2
|
+
import type { InternalAtoms } from "../state/+types.js";
|
|
3
3
|
export declare function updateAdditiveCellSelection(grid: Grid<any> & {
|
|
4
4
|
internal: InternalAtoms;
|
|
5
5
|
}, rect: DataRect): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { boundSelectionRect } from "./bound-selection-rect";
|
|
2
|
-
import { adjustRectForRowAndCellSpan } from "./adjust-rect-for-row-and-cell-span";
|
|
3
|
-
import { areRectsEqual } from "./are-rects-equal";
|
|
4
|
-
import { splitCellSelectionRect } from "./split-cell-selection-rect";
|
|
1
|
+
import { boundSelectionRect } from "./bound-selection-rect.js";
|
|
2
|
+
import { adjustRectForRowAndCellSpan } from "./adjust-rect-for-row-and-cell-span.js";
|
|
3
|
+
import { areRectsEqual } from "./are-rects-equal.js";
|
|
4
|
+
import { splitCellSelectionRect } from "./split-cell-selection-rect.js";
|
|
5
5
|
export function updateAdditiveCellSelection(grid, rect) {
|
|
6
6
|
const s = grid.state.columnMeta.get();
|
|
7
7
|
const ds = grid.state.rowDataStore;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Grid } from "../+types";
|
|
2
|
-
import type { InternalAtoms } from "../state/+types";
|
|
1
|
+
import type { Grid } from "../+types.js";
|
|
2
|
+
import type { InternalAtoms } from "../state/+types.js";
|
|
3
3
|
export declare function useEdgeScroll(grid: Grid<any> & {
|
|
4
4
|
internal: InternalAtoms;
|
|
5
5
|
}): {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Dispatch, type JSX, type SetStateAction } from "react";
|
|
2
|
-
import type { Column, Grid } from "../+types";
|
|
3
|
-
import type { TreeVirtualItem } from "../tree-view/virtualized/make-virtual-tree";
|
|
2
|
+
import type { Column, Grid } from "../+types.js";
|
|
3
|
+
import type { TreeVirtualItem } from "../tree-view/virtualized/make-virtual-tree.js";
|
|
4
4
|
import type { PathRoot } from "@1771technologies/lytenyte-shared";
|
|
5
5
|
export interface UseColumnManagerReturn<T> {
|
|
6
6
|
readonly rootProps: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
|
-
import { useVirtualizedTree } from "../tree-view/virtualized/use-virtualized-tree";
|
|
2
|
+
import { useVirtualizedTree } from "../tree-view/virtualized/use-virtualized-tree.js";
|
|
3
3
|
export function useColumnManager(grid) {
|
|
4
4
|
const [expansions, onExpansionChange] = useState({});
|
|
5
5
|
const columns = grid.state.columns.useValue();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { TreeVirtualItem } from "../tree-view/virtualized/make-virtual-tree";
|
|
2
|
-
import type { Column } from "../+types";
|
|
1
|
+
import type { TreeVirtualItem } from "../tree-view/virtualized/make-virtual-tree.js";
|
|
2
|
+
import type { Column } from "../+types.js";
|
|
3
3
|
export declare function useColumnsFromContext(item: TreeVirtualItem<Column<any>>): Column<any>[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import { useBranchLookup } from "./branch-lookup-context";
|
|
2
|
+
import { useBranchLookup } from "./branch-lookup-context.js";
|
|
3
3
|
export function useColumnsFromContext(item) {
|
|
4
4
|
const lookup = useBranchLookup();
|
|
5
5
|
const columns = useMemo(() => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ForceSyncScrolling } from "../tree-view/virtualized/force-sync-scrolling";
|
|
2
|
-
import { InclusionCheckbox } from "./inclusion-checkbox";
|
|
3
|
-
import { Root } from "./root";
|
|
4
|
-
import { useFilterTree } from "./hooks/use-filter-tree";
|
|
1
|
+
import { ForceSyncScrolling } from "../tree-view/virtualized/force-sync-scrolling.js";
|
|
2
|
+
import { InclusionCheckbox } from "./inclusion-checkbox.js";
|
|
3
|
+
import { Root } from "./root.js";
|
|
4
|
+
import { useFilterTree } from "./hooks/use-filter-tree.js";
|
|
5
5
|
export declare const FilterTree: {
|
|
6
6
|
Root: typeof Root;
|
|
7
7
|
Panel: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & import("react").RefAttributes<HTMLUListElement>>;
|
|
8
8
|
PassiveScroll: typeof ForceSyncScrolling;
|
|
9
|
-
Leaf: import("react").ForwardRefExoticComponent<Omit<import("./leaf").FilterTreeLeafProps & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
10
|
-
Branch: import("react").ForwardRefExoticComponent<Omit<import("./branch").FilterTreeBranch & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
11
|
-
Label: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./label").LabelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Leaf: import("react").ForwardRefExoticComponent<Omit<import("./leaf.js").FilterTreeLeafProps & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
10
|
+
Branch: import("react").ForwardRefExoticComponent<Omit<import("./branch.js").FilterTreeBranch & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
11
|
+
Label: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./label.js").LabelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
Checkbox: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & InclusionCheckbox, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
13
|
useFilterTree: typeof useFilterTree;
|
|
14
14
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TreePanel } from "../tree-view/panel/panel";
|
|
2
|
-
import { ForceSyncScrolling } from "../tree-view/virtualized/force-sync-scrolling";
|
|
3
|
-
import { Branch } from "./branch";
|
|
4
|
-
import { InclusionCheckbox } from "./inclusion-checkbox";
|
|
5
|
-
import { Label } from "./label";
|
|
6
|
-
import { Leaf } from "./leaf";
|
|
7
|
-
import { Root } from "./root";
|
|
8
|
-
import { useFilterTree } from "./hooks/use-filter-tree";
|
|
1
|
+
import { TreePanel } from "../tree-view/panel/panel.js";
|
|
2
|
+
import { ForceSyncScrolling } from "../tree-view/virtualized/force-sync-scrolling.js";
|
|
3
|
+
import { Branch } from "./branch.js";
|
|
4
|
+
import { InclusionCheckbox } from "./inclusion-checkbox.js";
|
|
5
|
+
import { Label } from "./label.js";
|
|
6
|
+
import { Leaf } from "./leaf.js";
|
|
7
|
+
import { Root } from "./root.js";
|
|
8
|
+
import { useFilterTree } from "./hooks/use-filter-tree.js";
|
|
9
9
|
export const FilterTree = {
|
|
10
10
|
Root,
|
|
11
11
|
Panel: TreePanel,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FilterInFilterItem } from "../../+types";
|
|
2
|
-
import type { TreeVirtualItem } from "../../tree-view/virtualized/make-virtual-tree";
|
|
1
|
+
import type { FilterInFilterItem } from "../../+types.js";
|
|
2
|
+
import type { TreeVirtualItem } from "../../tree-view/virtualized/make-virtual-tree.js";
|
|
3
3
|
export declare function useTreeItem(item: TreeVirtualItem<FilterInFilterItem>): {
|
|
4
4
|
onCheckChange: (b?: boolean) => void;
|
|
5
5
|
isChecked: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useMemo } from "react";
|
|
2
|
-
import { useGrid } from "../../grid-provider/use-grid";
|
|
3
|
-
import { useTreeContext } from "../context";
|
|
2
|
+
import { useGrid } from "../../grid-provider/use-grid.js";
|
|
3
|
+
import { useTreeContext } from "../context.js";
|
|
4
4
|
function isSelectAll(item) {
|
|
5
5
|
return item.kind === "leaf" && item.leaf.data.id === "__LNG__SELECT_ALL";
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AggModelFn, DropEventParams, Grid } from "../+types";
|
|
2
|
-
import type { GridBoxItem } from "./+types";
|
|
1
|
+
import type { AggModelFn, DropEventParams, Grid } from "../+types.js";
|
|
2
|
+
import type { GridBoxItem } from "./+types.js";
|
|
3
3
|
export interface UseAggregationBoxItemsProps<T> {
|
|
4
4
|
readonly grid: Grid<T>;
|
|
5
5
|
readonly orientation?: "horizontal" | "vertical";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import type { Column, DropEventParams, Grid } from "../+types";
|
|
3
|
-
import type { GridBoxItem } from "./+types";
|
|
2
|
+
import type { Column, DropEventParams, Grid } from "../+types.js";
|
|
3
|
+
import type { GridBoxItem } from "./+types.js";
|
|
4
4
|
export interface OnDropParams<T> {
|
|
5
5
|
readonly target: Column<T>;
|
|
6
6
|
readonly src: Column<T>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import type { DropEventParams, Grid, RowGroupModelItem } from "../+types";
|
|
3
|
-
import type { GridBoxItem } from "./+types";
|
|
2
|
+
import type { DropEventParams, Grid, RowGroupModelItem } from "../+types.js";
|
|
3
|
+
import type { GridBoxItem } from "./+types.js";
|
|
4
4
|
export interface UseRowGroupBoxItems<T> {
|
|
5
5
|
readonly grid: Grid<T>;
|
|
6
6
|
readonly orientation?: "horizontal" | "vertical";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Grid } from "../+types";
|
|
2
|
-
import type { InternalAtoms } from "../state/+types";
|
|
1
|
+
import type { Grid } from "../+types.js";
|
|
2
|
+
import type { InternalAtoms } from "../state/+types.js";
|
|
3
3
|
export declare const gridContext: import("react").Context<Grid<any> & {
|
|
4
4
|
internal: InternalAtoms;
|
|
5
5
|
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const GridProvider: import("react").Provider<import("../+types").Grid<any> & {
|
|
2
|
-
internal: import("../state/+types").InternalAtoms;
|
|
1
|
+
export declare const GridProvider: import("react").Provider<import("../+types.js").Grid<any> & {
|
|
2
|
+
internal: import("../state/+types.js").InternalAtoms;
|
|
3
3
|
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { gridContext } from "./context";
|
|
1
|
+
import { gridContext } from "./context.js";
|
|
2
2
|
export const GridProvider = gridContext.Provider;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const useGrid: () => import("../+types").Grid<any> & {
|
|
2
|
-
internal: import("../state/+types").InternalAtoms;
|
|
1
|
+
export declare const useGrid: () => import("../+types.js").Grid<any> & {
|
|
2
|
+
internal: import("../state/+types.js").InternalAtoms;
|
|
3
3
|
};
|
package/dist/grid.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const Grid: {
|
|
|
15
15
|
RowsContainer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
16
|
RowsBottom: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
17
|
RowsTop: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
Row: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onDrag"> & import("./rows/row/row").RowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
19
|
RowsCenter: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
20
|
Viewport: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
21
|
useLyteNyte: typeof useLyteNyte;
|
package/dist/grid.js
CHANGED
|
@@ -9,6 +9,7 @@ import { makeClientDataSourcePaginated, useClientRowDataSourcePaginated, } from
|
|
|
9
9
|
import { makeClientTreeDataSource, useClientTreeDataSource, } from "./row-data-source-client/use-client-tree-data-source";
|
|
10
10
|
import { makeServerDataSource, useServerDataSource, } from "./row-data-source-server/use-server-data-source";
|
|
11
11
|
import { RowFullWidth } from "./rows/row-full-width";
|
|
12
|
+
import { Row } from "./rows/row/row";
|
|
12
13
|
import { RowsContainer } from "./rows/rows-container";
|
|
13
14
|
import { RowsBottom, RowsCenter, RowsTop } from "./rows/rows-sections";
|
|
14
15
|
import { useLyteNyte } from "./state/use-lytenyte";
|
|
@@ -24,6 +25,7 @@ export const Grid = {
|
|
|
24
25
|
RowsContainer,
|
|
25
26
|
RowsBottom,
|
|
26
27
|
RowsTop,
|
|
28
|
+
Row,
|
|
27
29
|
RowsCenter,
|
|
28
30
|
Viewport,
|
|
29
31
|
useLyteNyte,
|
|
@@ -11,6 +11,7 @@ export function ResizeHandler({ slot, cell, xPositions, style, className, }) {
|
|
|
11
11
|
const double = sx.state.columnDoubleClickToAutosize.useValue();
|
|
12
12
|
const defaultProps = {
|
|
13
13
|
role: "button",
|
|
14
|
+
"data-ln-header-resizer": "true",
|
|
14
15
|
"aria-label": `Resize ${cell.column.name ?? cell.column.id}`,
|
|
15
16
|
tabIndex: -1,
|
|
16
17
|
onDoubleClick: () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Grid, HeaderCellFloating, HeaderCellLayout, HeaderGroupCellLayout } from "../+types";
|
|
1
|
+
import type { Grid, HeaderCellFloating, HeaderCellLayout, HeaderGroupCellLayout } from "../+types.js";
|
|
2
2
|
import { type JSX } from "react";
|
|
3
|
-
import type { InternalAtoms } from "../state/+types";
|
|
3
|
+
import type { InternalAtoms } from "../state/+types.js";
|
|
4
4
|
export declare function useDragMove<T>(grid: Grid<T> & {
|
|
5
5
|
internal: InternalAtoms;
|
|
6
6
|
}, cell: HeaderGroupCellLayout | HeaderCellLayout<T> | HeaderCellFloating<T>, onDragStart?: JSX.IntrinsicElements["div"]["onDragStart"]): {
|
|
@@ -10,7 +10,7 @@ import { sum } from "./sum.js";
|
|
|
10
10
|
* Collection of built-in array utility functions for numerical and statistical operations.
|
|
11
11
|
* Each function handles null and undefined values gracefully.
|
|
12
12
|
* @example
|
|
13
|
-
* import { builtIns } from './builtIns';
|
|
13
|
+
* import { builtIns } from './builtIns.js';
|
|
14
14
|
*
|
|
15
15
|
* const data = [1, null, 3, 2];
|
|
16
16
|
* builtIns.sum(data); // Returns 6
|
|
@@ -10,7 +10,7 @@ import { sum } from "./sum.js";
|
|
|
10
10
|
* Collection of built-in array utility functions for numerical and statistical operations.
|
|
11
11
|
* Each function handles null and undefined values gracefully.
|
|
12
12
|
* @example
|
|
13
|
-
* import { builtIns } from './builtIns';
|
|
13
|
+
* import { builtIns } from './builtIns.js';
|
|
14
14
|
*
|
|
15
15
|
* const data = [1, null, 3, 2];
|
|
16
16
|
* builtIns.sum(data); // Returns 6
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createColumnPivotsFromPaths } from "./create-pivot-columns-from-paths";
|
|
2
|
-
import { createPivotTree } from "./create-pivot-tree";
|
|
1
|
+
import { createColumnPivotsFromPaths } from "./create-pivot-columns-from-paths.js";
|
|
2
|
+
import { createPivotTree } from "./create-pivot-tree.js";
|
|
3
3
|
export function createPivotColumns(model, lookup, grid, leafRows) {
|
|
4
4
|
const activeColumns = model.columns.filter((c) => lookup.has(c.field) && (c.active ?? true));
|
|
5
5
|
const activeValues = model.values.filter((c) => lookup.has(c.field) && (c.active ?? true));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AggregationItem } from "../+types";
|
|
1
|
+
import type { AggregationItem } from "../+types.js";
|
|
2
2
|
export declare function aggregationEvaluator<Data>(agg: AggregationItem<Data>[], data: Data[]): Record<string, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GroupItem } from "../+types";
|
|
1
|
+
import type { GroupItem } from "../+types.js";
|
|
2
2
|
export declare function groupEvaluator<Data>(g: GroupItem<Data>[] | ((d: Data) => (string | null | undefined)[]), d: Data): (string | null | undefined)[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { BranchNode, Root, TreeNode } from "../+types";
|
|
1
|
+
import type { BranchNode, Root, TreeNode } from "../+types.js";
|
|
2
2
|
export declare function traverse<Data>(root: Root<Data> | BranchNode<Data>, fn: (node: TreeNode<Data>, lookupKey: string | null) => boolean | void, comparator?: (l: TreeNode<Data>, r: TreeNode<Data>) => number): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GridAtom, RowDataSourceClientPaginated } from "../+types";
|
|
2
|
-
import { type ClientRowDataSourceParams } from "../+types";
|
|
1
|
+
import type { GridAtom, RowDataSourceClientPaginated } from "../+types.js";
|
|
2
|
+
import { type ClientRowDataSourceParams } from "../+types.js";
|
|
3
3
|
interface DataAtoms<T> {
|
|
4
4
|
readonly top: GridAtom<T[]>;
|
|
5
5
|
readonly center: GridAtom<T[]>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {} from "../+types";
|
|
1
|
+
import {} from "../+types.js";
|
|
2
2
|
import { useRef } from "react";
|
|
3
3
|
import { atom, createStore } from "@1771technologies/atom";
|
|
4
|
-
import { traverse } from "./tree/traverse";
|
|
4
|
+
import { traverse } from "./tree/traverse.js";
|
|
5
5
|
import { dateComparator, makeGridAtom, numberComparator, stringComparator, } from "@1771technologies/lytenyte-shared";
|
|
6
6
|
import { clamp, equal, get } from "@1771technologies/lytenyte-js-utils";
|
|
7
|
-
import { makeClientTree } from "./tree/client-tree";
|
|
8
|
-
import { computeFilteredRows } from "./filter/compute-filtered-rows";
|
|
9
|
-
import { builtIns } from "./built-ins/built-ins";
|
|
7
|
+
import { makeClientTree } from "./tree/client-tree.js";
|
|
8
|
+
import { computeFilteredRows } from "./filter/compute-filtered-rows.js";
|
|
9
|
+
import { builtIns } from "./built-ins/built-ins.js";
|
|
10
10
|
export function makeClientDataSourcePaginated(p) {
|
|
11
11
|
const rdsStore = createStore();
|
|
12
12
|
const pageInternal = atom(0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GridAtom, RowDataSourceClient } from "../+types";
|
|
2
|
-
import { type ClientRowDataSourceParams } from "../+types";
|
|
1
|
+
import type { GridAtom, RowDataSourceClient } from "../+types.js";
|
|
2
|
+
import { type ClientRowDataSourceParams } from "../+types.js";
|
|
3
3
|
interface DataAtoms<T> {
|
|
4
4
|
readonly top: GridAtom<T[]>;
|
|
5
5
|
readonly center: GridAtom<T[]>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {} from "../+types";
|
|
1
|
+
import {} from "../+types.js";
|
|
2
2
|
import { useRef } from "react";
|
|
3
3
|
import { atom, createStore } from "@1771technologies/atom";
|
|
4
|
-
import { traverse } from "./tree/traverse";
|
|
4
|
+
import { traverse } from "./tree/traverse.js";
|
|
5
5
|
import { dateComparator, makeGridAtom, numberComparator, stringComparator, } from "@1771technologies/lytenyte-shared";
|
|
6
6
|
import { equal, get, itemsWithIdToMap } from "@1771technologies/lytenyte-js-utils";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { computeFilteredRows } from "./filter/compute-filtered-rows.js";
|
|
8
|
+
import { builtIns } from "./built-ins/built-ins.js";
|
|
9
|
+
import { createPivotColumns } from "./pivots/create-pivot-columns.js";
|
|
10
|
+
import { createAggModel } from "./pivots/create-agg-model.js";
|
|
11
|
+
import { makeClientTree } from "./tree/client-tree.js";
|
|
12
12
|
export function makeClientDataSource(p) {
|
|
13
13
|
const rdsStore = createStore();
|
|
14
14
|
const data = atom(p.data);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GridAtom, RowDataSourceClient, ClientTreeDataSourceParams } from "../+types";
|
|
1
|
+
import type { GridAtom, RowDataSourceClient, ClientTreeDataSourceParams } from "../+types.js";
|
|
2
2
|
interface DataAtoms<T> {
|
|
3
3
|
readonly top: GridAtom<T[]>;
|
|
4
4
|
readonly center: GridAtom<T[]>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {} from "../+types";
|
|
1
|
+
import {} from "../+types.js";
|
|
2
2
|
import { useRef } from "react";
|
|
3
3
|
import { atom, createStore } from "@1771technologies/atom";
|
|
4
|
-
import { traverse } from "./tree/traverse";
|
|
4
|
+
import { traverse } from "./tree/traverse.js";
|
|
5
5
|
import { dateComparator, makeGridAtom, numberComparator, stringComparator, } from "@1771technologies/lytenyte-shared";
|
|
6
6
|
import { equal } from "@1771technologies/lytenyte-js-utils";
|
|
7
|
-
import { makeClientTree } from "./tree/client-tree";
|
|
8
|
-
import { computeFilteredRows } from "./filter/compute-filtered-rows";
|
|
9
|
-
import { builtIns } from "./built-ins/built-ins";
|
|
7
|
+
import { makeClientTree } from "./tree/client-tree.js";
|
|
8
|
+
import { computeFilteredRows } from "./filter/compute-filtered-rows.js";
|
|
9
|
+
import { builtIns } from "./built-ins/built-ins.js";
|
|
10
10
|
export function makeClientTreeDataSource(p) {
|
|
11
11
|
const rdsStore = createStore();
|
|
12
12
|
const data = atom(p.data);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getParentNodeByPath } from "./get-parent-node-by-path";
|
|
1
|
+
import { getParentNodeByPath } from "./get-parent-node-by-path.js";
|
|
2
2
|
export function applyDeleteActionToTree(p, tree) {
|
|
3
3
|
// No op. We aren't deleting keys or indices
|
|
4
4
|
if (!p.relIndices?.length && !p.paths?.length)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { applyDeleteActionToTree } from "./apply-delete-action-to-tree";
|
|
2
|
-
import { applySetActionToTree } from "./apply-set-action-to-tree";
|
|
3
|
-
import { getParentNodeByPath } from "./get-parent-node-by-path";
|
|
1
|
+
import { applyDeleteActionToTree } from "./apply-delete-action-to-tree.js";
|
|
2
|
+
import { applySetActionToTree } from "./apply-set-action-to-tree.js";
|
|
3
|
+
import { getParentNodeByPath } from "./get-parent-node-by-path.js";
|
|
4
4
|
export function makeAsyncTree() {
|
|
5
5
|
const tree = {
|
|
6
6
|
kind: "root",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { RowDataSourceServer, RowDataSourceServerParams } from "../+types";
|
|
1
|
+
import type { RowDataSourceServer, RowDataSourceServerParams } from "../+types.js";
|
|
2
2
|
export declare function makeServerDataSource<T>({ dataFetcher, dataColumnPivotFetcher, dataInFilterItemFetcher, cellUpdateHandler, cellUpdateOptimistically, blockSize, }: RowDataSourceServerParams<T>): RowDataSourceServer<T>;
|
|
3
3
|
export declare function useServerDataSource<T>(p: RowDataSourceServerParams<T>): RowDataSourceServer<T>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { atom, createStore } from "@1771technologies/atom";
|
|
2
2
|
import { useRef } from "react";
|
|
3
|
-
import { makeAsyncTree } from "./async-tree/make-async-tree";
|
|
3
|
+
import { makeAsyncTree } from "./async-tree/make-async-tree.js";
|
|
4
4
|
import { makeGridAtom } from "@1771technologies/lytenyte-shared";
|
|
5
|
-
import { getNodeDepth } from "./utils/get-node-depth";
|
|
6
|
-
import { getRequestId } from "./utils/get-request-id";
|
|
7
|
-
import { RangeTree } from "./range-tree/range-tree";
|
|
8
|
-
import { getNodePath } from "./utils/get-node-path";
|
|
5
|
+
import { getNodeDepth } from "./utils/get-node-depth.js";
|
|
6
|
+
import { getRequestId } from "./utils/get-request-id.js";
|
|
7
|
+
import { RangeTree } from "./range-tree/range-tree.js";
|
|
8
|
+
import { getNodePath } from "./utils/get-node-path.js";
|
|
9
9
|
import { equal } from "@1771technologies/lytenyte-js-utils";
|
|
10
10
|
export function makeServerDataSource({ dataFetcher, dataColumnPivotFetcher, dataInFilterItemFetcher, cellUpdateHandler, cellUpdateOptimistically = true, blockSize = 200, }) {
|
|
11
11
|
let grid = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Dispatch, type SetStateAction } from "react";
|
|
2
|
-
import type { SortItem } from "./+types";
|
|
3
|
-
import type { SortRowItem } from "./hooks/use-sort-row-item";
|
|
4
|
-
import type { Grid } from "../+types";
|
|
2
|
+
import type { SortItem } from "./+types.js";
|
|
3
|
+
import type { SortRowItem } from "./hooks/use-sort-row-item.js";
|
|
4
|
+
import type { Grid } from "../+types.js";
|
|
5
5
|
export interface SortManagerContext {
|
|
6
6
|
readonly grid: Grid<any>;
|
|
7
7
|
readonly sortItems: SortItem[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Grid } from "../../+types";
|
|
2
|
-
import type { SortItem } from "../+types";
|
|
2
|
+
import type { SortItem } from "../+types.js";
|
|
3
3
|
export interface UseSortManagerArgs<T> {
|
|
4
4
|
readonly grid: Grid<T>;
|
|
5
5
|
readonly pivotMode?: boolean;
|
|
@@ -11,5 +11,5 @@ export declare function useSortManager<T>({ grid, pivotMode }: UseSortManagerArg
|
|
|
11
11
|
mode: boolean;
|
|
12
12
|
grid: Grid<T>;
|
|
13
13
|
};
|
|
14
|
-
rows: import("./use-sort-row-item").SortRowItem[];
|
|
14
|
+
rows: import("./use-sort-row-item.js").SortRowItem[];
|
|
15
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
|
-
import { sortModelToSortItems } from "../utils/sort-model-to-sort-items";
|
|
2
|
+
import { sortModelToSortItems } from "../utils/sort-model-to-sort-items.js";
|
|
3
3
|
import { itemsWithIdToMap } from "@1771technologies/lytenyte-js-utils";
|
|
4
|
-
import { useSortRowItems } from "./use-sort-row-item";
|
|
4
|
+
import { useSortRowItems } from "./use-sort-row-item.js";
|
|
5
5
|
import { useEvent } from "@1771technologies/lytenyte-react-hooks";
|
|
6
6
|
export function useSortManager({ grid, pivotMode }) {
|
|
7
7
|
const statePivotMode = grid.state.columnPivotMode.useValue();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import { useSortableColumnItems } from "./use-sortable-column-items";
|
|
2
|
+
import { useSortableColumnItems } from "./use-sortable-column-items.js";
|
|
3
3
|
import { itemsWithIdToMap } from "@1771technologies/lytenyte-js-utils";
|
|
4
4
|
export function useSortRowItems(sortItems, setSortItems, grid, pivotMode) {
|
|
5
5
|
const columnItems = useSortableColumnItems(grid, pivotMode);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { SortItem } from "../+types";
|
|
1
|
+
import type { SortItem } from "../+types.js";
|
|
2
2
|
import type { Column, SortModelItem } from "../../+types";
|
|
3
3
|
export declare function sortItemsToSortModel(sortItems: SortItem[], lookup: Map<string, Column<any>>): SortModelItem<any>[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { measureText } from "@1771technologies/lytenyte-shared";
|
|
2
|
-
import { resolveColumn } from "../helpers/resolve-column";
|
|
2
|
+
import { resolveColumn } from "../helpers/resolve-column.js";
|
|
3
3
|
export const makeColumnAutosize = (grid) => {
|
|
4
4
|
return (params) => {
|
|
5
5
|
const errorRef = { current: false };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { focusCell, isFullWidthMap } from "@1771technologies/lytenyte-shared";
|
|
2
2
|
import { runWithBackoff } from "@1771technologies/lytenyte-js-utils";
|
|
3
|
-
import { editOnChange } from "../helpers/edit-on-change";
|
|
3
|
+
import { editOnChange } from "../helpers/edit-on-change.js";
|
|
4
4
|
export const makeEditBegin = (grid) => {
|
|
5
5
|
return (params) => {
|
|
6
6
|
if (grid.state.editCellMode.get() === "readonly" || grid.state.columnPivotMode.get())
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { editOnChange } from "../helpers/edit-on-change";
|
|
1
|
+
import { editOnChange } from "../helpers/edit-on-change.js";
|
|
2
2
|
export const makeEditUpdate = (grid) => {
|
|
3
3
|
return (params) => {
|
|
4
4
|
if (grid.state.editCellMode.get() === "readonly" || grid.state.columnPivotMode.get())
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Grid, GridApi } from "../../+types";
|
|
2
|
-
import type { InternalAtoms } from "../+types";
|
|
2
|
+
import type { InternalAtoms } from "../+types.js";
|
|
3
3
|
export declare const makeFocusCell: (grid: Grid<any> & {
|
|
4
4
|
internal: InternalAtoms;
|
|
5
5
|
}) => GridApi<any>["focusCell"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InternalAtoms } from "../+types";
|
|
2
|
-
import type { Grid, GridApi } from "../../+types";
|
|
1
|
+
import type { InternalAtoms } from "../+types.js";
|
|
2
|
+
import type { Grid, GridApi } from "../../+types.js";
|
|
3
3
|
export declare const makePopoverFrameOpen: (grid: Grid<any> & {
|
|
4
4
|
internal: InternalAtoms;
|
|
5
5
|
}) => GridApi<any>["popoverFrameOpen"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InternalAtoms } from "../+types";
|
|
2
|
-
import type { Grid, GridApi } from "../../+types";
|
|
1
|
+
import type { InternalAtoms } from "../+types.js";
|
|
2
|
+
import type { Grid, GridApi } from "../../+types.js";
|
|
3
3
|
export declare const makeRowDetailRenderedHeight: (grid: Grid<any> & {
|
|
4
4
|
internal: InternalAtoms;
|
|
5
5
|
}) => GridApi<any>["rowDetailRenderedHeight"];
|
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.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "COMMERCIAL",
|
|
7
7
|
"files": [
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@1771technologies/atom": "^1.0.2",
|
|
47
|
-
"@1771technologies/lytenyte-
|
|
48
|
-
"@1771technologies/lytenyte-
|
|
49
|
-
"@1771technologies/lytenyte-
|
|
50
|
-
"@1771technologies/lytenyte-
|
|
51
|
-
"@1771technologies/lytenyte-
|
|
47
|
+
"@1771technologies/lytenyte-dragon": "1.0.0-beta.4",
|
|
48
|
+
"@1771technologies/lytenyte-dom-utils": "1.0.0-beta.4",
|
|
49
|
+
"@1771technologies/lytenyte-shared": "1.0.0-beta.4",
|
|
50
|
+
"@1771technologies/lytenyte-js-utils": "1.0.0-beta.4",
|
|
51
|
+
"@1771technologies/lytenyte-react-hooks": "1.0.0-beta.4"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^18.0.0 || ^19.0.0",
|