@1771technologies/lytenyte-pro 1.0.8 → 1.0.9
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/cell-selection-containers.js +5 -5
- package/dist/cell-selection/cell-selection-driver.js +9 -9
- package/dist/cell-selection/cell-style-row.js +1 -1
- package/dist/cell-selection/split-on-pivot.js +1 -1
- package/dist/cells/cell-editor.js +2 -2
- package/dist/cells/cell-spacer.js +1 -1
- package/dist/cells/cell.js +6 -6
- package/dist/column-manager/branch.js +4 -4
- package/dist/column-manager/column-manager.d.ts +7 -7
- package/dist/column-manager/column-manager.js +8 -8
- package/dist/column-manager/label.js +1 -1
- package/dist/column-manager/leaf.js +4 -4
- package/dist/column-manager/move-handle.js +3 -3
- package/dist/column-manager/panel.js +1 -1
- package/dist/column-manager/root.js +3 -3
- package/dist/column-manager/use-column-manager.js +1 -1
- package/dist/column-manager/visibility-checkbox.js +3 -3
- package/dist/filter-tree/branch.js +3 -3
- package/dist/filter-tree/context.d.ts +2 -2
- package/dist/filter-tree/hooks/use-filter-tree.js +1 -1
- package/dist/filter-tree/inclusion-checkbox.js +1 -1
- package/dist/filter-tree/label.js +1 -1
- package/dist/filter-tree/leaf.js +3 -3
- package/dist/filter-tree/root.js +3 -3
- package/dist/grid-box/grid-box.d.ts +5 -5
- package/dist/grid-box/grid-box.js +6 -6
- package/dist/grid-box/item.js +2 -2
- package/dist/grid-box/panel.js +2 -2
- package/dist/grid-box/root.d.ts +1 -1
- package/dist/grid-box/root.js +3 -3
- package/dist/grid.d.ts +8 -8
- package/dist/grid.js +12 -12
- package/dist/header/header-cell.js +4 -4
- package/dist/header/header-group-cell.js +2 -2
- package/dist/header/header-row.js +1 -1
- package/dist/header/header.js +1 -1
- package/dist/header/resize-handler.js +1 -1
- package/dist/header/use-header-cell-renderer.js +1 -1
- package/dist/icons/index.js +3 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/listbox/item.js +1 -1
- package/dist/listbox/panel.js +1 -1
- package/dist/listbox/root.js +1 -1
- package/dist/root/dialog-driver.js +1 -1
- package/dist/root/popover-driver.js +1 -1
- package/dist/root/root.js +5 -5
- package/dist/row-data-source-client/pivots/create-agg-model.d.ts +2 -2
- package/dist/row-data-source-client/pivots/create-agg-model.js +1 -1
- package/dist/rows/row/row.d.ts +1 -1
- package/dist/rows/row/row.js +5 -5
- package/dist/rows/row/use-row-context-value.d.ts +3 -3
- package/dist/rows/row-detail-row.js +1 -1
- package/dist/rows/row-full-width.js +3 -3
- package/dist/rows/rows-container.js +1 -1
- package/dist/rows/rows-sections.js +3 -3
- package/dist/sort-manager/root.d.ts +1 -1
- package/dist/sort-manager/root.js +1 -1
- package/dist/sort-manager/sort-add.js +1 -1
- package/dist/sort-manager/sort-apply.js +2 -2
- package/dist/sort-manager/sort-cancel.js +2 -2
- package/dist/sort-manager/sort-clear.js +1 -1
- package/dist/sort-manager/sort-column-select.js +1 -1
- package/dist/sort-manager/sort-direction-select.js +1 -1
- package/dist/sort-manager/sort-manager.d.ts +11 -11
- package/dist/sort-manager/sort-manager.js +12 -12
- package/dist/sort-manager/sort-remove.js +1 -1
- package/dist/sort-manager/sort-row.d.ts +1 -1
- package/dist/sort-manager/sort-row.js +2 -2
- package/dist/sort-manager/sort-rows.js +1 -1
- package/dist/sort-manager/sort-value-select.js +1 -1
- package/dist/state/api/cell-root.js +2 -2
- package/dist/tree-view/root.js +1 -1
- package/dist/viewport/viewport.js +2 -2
- package/package.json +7 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { memo, useMemo } from "react";
|
|
3
|
-
import { CellStyleRow } from "./cell-style-row";
|
|
4
|
-
import { useGridRoot } from "../context";
|
|
5
|
-
import { isTopRect } from "./is-top-rect";
|
|
6
|
-
import { isCenterRect } from "./is-center-rect";
|
|
7
|
-
import { isBottomRect } from "./is-bottom-rect";
|
|
3
|
+
import { CellStyleRow } from "./cell-style-row.js";
|
|
4
|
+
import { useGridRoot } from "../context.js";
|
|
5
|
+
import { isTopRect } from "./is-top-rect.js";
|
|
6
|
+
import { isCenterRect } from "./is-center-rect.js";
|
|
7
|
+
import { isBottomRect } from "./is-bottom-rect.js";
|
|
8
8
|
export const CellSelectionTop = memo(function CellSelectionTop() {
|
|
9
9
|
const cx = useGridRoot();
|
|
10
10
|
const allRects = cx.grid.internal.cellSelectionSplits.useValue();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
|
-
import { useGridRoot } from "../context";
|
|
4
|
-
import { useEdgeScroll } from "./use-edge-scroll";
|
|
3
|
+
import { useGridRoot } from "../context.js";
|
|
4
|
+
import { useEdgeScroll } from "./use-edge-scroll.js";
|
|
5
5
|
import { equal, getClientX, getClientY, getRelativeXPosition, getRelativeYPosition, } from "@1771technologies/lytenyte-js-utils";
|
|
6
6
|
import { getNearestFocusable, getPositionFromFocusable } from "@1771technologies/lytenyte-shared";
|
|
7
7
|
import { isHTMLElement } from "@1771technologies/lytenyte-dom-utils";
|
|
8
|
-
import { updateAdditiveCellSelection } from "./update-additive-cell-selection";
|
|
9
|
-
import { deselectRectRange } from "./deselect-rect-range";
|
|
10
|
-
import { isWithinSelectionRect } from "./is-within-selection-rect";
|
|
11
|
-
import { expandCellSelectionStart } from "./expand-cell-selection-start";
|
|
12
|
-
import { expandCellSelectionEnd } from "./expand-cell-selection-end";
|
|
13
|
-
import { expandCellSelectionDown } from "./expand-cell-selection-down";
|
|
14
|
-
import { expandCellSelectionUp } from "./expand-cell-selection-up";
|
|
8
|
+
import { updateAdditiveCellSelection } from "./update-additive-cell-selection.js";
|
|
9
|
+
import { deselectRectRange } from "./deselect-rect-range.js";
|
|
10
|
+
import { isWithinSelectionRect } from "./is-within-selection-rect.js";
|
|
11
|
+
import { expandCellSelectionStart } from "./expand-cell-selection-start.js";
|
|
12
|
+
import { expandCellSelectionEnd } from "./expand-cell-selection-end.js";
|
|
13
|
+
import { expandCellSelectionDown } from "./expand-cell-selection-down.js";
|
|
14
|
+
import { expandCellSelectionUp } from "./expand-cell-selection-up.js";
|
|
15
15
|
function isNormalClick(event) {
|
|
16
16
|
return event.button === 0 && !event.altKey;
|
|
17
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { useGridRoot } from "../context";
|
|
3
|
+
import { useGridRoot } from "../context.js";
|
|
4
4
|
import { getTranslate, sizeFromCoord } from "@1771technologies/lytenyte-shared";
|
|
5
5
|
export function CellStyleRow({ rect, isRowPinnedTop, isDeselect, isRowPinnedBottom, isPivot, }) {
|
|
6
6
|
const cx = useGridRoot();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useState } from "react";
|
|
3
3
|
import { getTabbables } from "@1771technologies/lytenyte-dom-utils";
|
|
4
|
-
import { useGridRoot } from "../context";
|
|
5
|
-
import { editOnChange } from "../state/helpers/edit-on-change";
|
|
4
|
+
import { useGridRoot } from "../context.js";
|
|
5
|
+
import { editOnChange } from "../state/helpers/edit-on-change.js";
|
|
6
6
|
import { handleNavigationKeys } from "@1771technologies/lytenyte-shared";
|
|
7
7
|
export function CellEditor({ cell }) {
|
|
8
8
|
const [el, setEl] = useState(null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useGridRoot } from "../context";
|
|
2
|
+
import { useGridRoot } from "../context.js";
|
|
3
3
|
export function CellSpacePinStart({ xPositions: x }) {
|
|
4
4
|
const ctx = useGridRoot().grid;
|
|
5
5
|
const bounds = ctx.state.viewBounds.useValue();
|
package/dist/cells/cell.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, memo, useEffect, useState } from "react";
|
|
3
|
-
import { useGridRoot } from "../context";
|
|
3
|
+
import { useGridRoot } from "../context.js";
|
|
4
4
|
import { sizeFromCoord } from "@1771technologies/lytenyte-shared";
|
|
5
|
-
import { CellDefault } from "./cell-default";
|
|
6
|
-
import { CellEditor } from "./cell-editor";
|
|
7
|
-
import { useRowMeta } from "../rows/row/context";
|
|
8
|
-
import { CellSpacePinStart, CellSpacerPinEnd } from "./cell-spacer";
|
|
9
|
-
import { useCellStyle } from "./use-cell-style";
|
|
5
|
+
import { CellDefault } from "./cell-default.js";
|
|
6
|
+
import { CellEditor } from "./cell-editor.js";
|
|
7
|
+
import { useRowMeta } from "../rows/row/context.js";
|
|
8
|
+
import { CellSpacePinStart, CellSpacerPinEnd } from "./cell-spacer.js";
|
|
9
|
+
import { useCellStyle } from "./use-cell-style.js";
|
|
10
10
|
export const Cell = forwardRef(function Cell(props, forwarded) {
|
|
11
11
|
const { colBounds: [start, end], ...rowMeta } = useRowMeta();
|
|
12
12
|
// This enforces our column virtualization.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useCallback, useMemo } from "react";
|
|
3
|
-
import { TreeBranch } from "../tree-view/branch/branch";
|
|
4
|
-
import { ColumnItemContext } from "./context";
|
|
3
|
+
import { TreeBranch } from "../tree-view/branch/branch.js";
|
|
4
|
+
import { ColumnItemContext } from "./context.js";
|
|
5
5
|
import { dragState, DropWrap } from "@1771technologies/lytenyte-dragon";
|
|
6
|
-
import { useGrid } from "../grid-provider/use-grid";
|
|
7
|
-
import { useColumnsFromContext } from "./use-columns-from-context";
|
|
6
|
+
import { useGrid } from "../grid-provider/use-grid.js";
|
|
7
|
+
import { useColumnsFromContext } from "./use-columns-from-context.js";
|
|
8
8
|
export const Branch = forwardRef(function Branch({ item, label, labelWrapClassName, labelWrapStyle, ...props }, forwarded) {
|
|
9
9
|
const grid = useGrid();
|
|
10
10
|
const id = grid.state.gridId.useValue();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Root } from "./root";
|
|
2
|
-
import { useColumnManager } from "./use-column-manager";
|
|
3
|
-
import { VisibilityCheckbox } from "./visibility-checkbox";
|
|
1
|
+
import { Root } from "./root.js";
|
|
2
|
+
import { useColumnManager } from "./use-column-manager.js";
|
|
3
|
+
import { VisibilityCheckbox } from "./visibility-checkbox.js";
|
|
4
4
|
export declare const ColumnManager: {
|
|
5
5
|
Root: typeof Root;
|
|
6
|
-
Leaf: import("react").ForwardRefExoticComponent<Omit<import("./leaf").ColumnManagerLeafProps & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
7
|
-
Label: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./label").LabelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
Branch: import("react").ForwardRefExoticComponent<Omit<import("./branch").ColumnManagerBranchProps & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
6
|
+
Leaf: import("react").ForwardRefExoticComponent<Omit<import("./leaf.js").ColumnManagerLeafProps & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
7
|
+
Label: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./label.js").LabelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Branch: import("react").ForwardRefExoticComponent<Omit<import("./branch.js").ColumnManagerBranchProps & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
9
9
|
Panel: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & import("react").RefAttributes<HTMLUListElement>>;
|
|
10
|
-
MoveHandle: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./move-handle").MoveHandleProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
MoveHandle: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./move-handle.js").MoveHandleProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
11
|
VisibilityCheckbox: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & VisibilityCheckbox, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
useColumnManager: typeof useColumnManager;
|
|
13
13
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Branch } from "./branch";
|
|
2
|
-
import { Label } from "./label";
|
|
3
|
-
import { Leaf } from "./leaf";
|
|
4
|
-
import { MoveHandle } from "./move-handle";
|
|
5
|
-
import { Panel } from "./panel";
|
|
6
|
-
import { Root } from "./root";
|
|
7
|
-
import { useColumnManager } from "./use-column-manager";
|
|
8
|
-
import { VisibilityCheckbox } from "./visibility-checkbox";
|
|
1
|
+
import { Branch } from "./branch.js";
|
|
2
|
+
import { Label } from "./label.js";
|
|
3
|
+
import { Leaf } from "./leaf.js";
|
|
4
|
+
import { MoveHandle } from "./move-handle.js";
|
|
5
|
+
import { Panel } from "./panel.js";
|
|
6
|
+
import { Root } from "./root.js";
|
|
7
|
+
import { useColumnManager } from "./use-column-manager.js";
|
|
8
|
+
import { VisibilityCheckbox } from "./visibility-checkbox.js";
|
|
9
9
|
export const ColumnManager = {
|
|
10
10
|
Root,
|
|
11
11
|
Leaf,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
3
|
import { forwardRef, useMemo } from "react";
|
|
4
|
-
import { useColumnItemContext } from "./context";
|
|
4
|
+
import { useColumnItemContext } from "./context.js";
|
|
5
5
|
export const Label = forwardRef(function Label({ as, ...props }, forwarded) {
|
|
6
6
|
const { item } = useColumnItemContext();
|
|
7
7
|
const label = useMemo(() => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useCallback, useMemo } from "react";
|
|
3
|
-
import { ColumnItemContext } from "./context";
|
|
4
|
-
import { TreeLeaf } from "../tree-view/leaf";
|
|
3
|
+
import { ColumnItemContext } from "./context.js";
|
|
4
|
+
import { TreeLeaf } from "../tree-view/leaf.js";
|
|
5
5
|
import { dragState, DropWrap } from "@1771technologies/lytenyte-dragon";
|
|
6
|
-
import { useGrid } from "../grid-provider/use-grid";
|
|
7
|
-
import { useColumnsFromContext } from "./use-columns-from-context";
|
|
6
|
+
import { useGrid } from "../grid-provider/use-grid.js";
|
|
7
|
+
import { useColumnsFromContext } from "./use-columns-from-context.js";
|
|
8
8
|
export const Leaf = forwardRef(function ColumnManagerLeaf({ item, ...props }, forwarded) {
|
|
9
9
|
const context = useMemo(() => {
|
|
10
10
|
return { item: item };
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useDraggable } from "@1771technologies/lytenyte-dragon";
|
|
3
3
|
import { useCombinedRefs, useSlot, } from "@1771technologies/lytenyte-react-hooks";
|
|
4
4
|
import { forwardRef, useMemo } from "react";
|
|
5
|
-
import { useColumnItemContext } from "./context";
|
|
6
|
-
import { useColumnsFromContext } from "./use-columns-from-context";
|
|
7
|
-
import { useGrid } from "../grid-provider/use-grid";
|
|
5
|
+
import { useColumnItemContext } from "./context.js";
|
|
6
|
+
import { useColumnsFromContext } from "./use-columns-from-context.js";
|
|
7
|
+
import { useGrid } from "../grid-provider/use-grid.js";
|
|
8
8
|
export const MoveHandle = forwardRef(function MoveHandle({ as, ...props }, forwarded) {
|
|
9
9
|
const item = useColumnItemContext().item;
|
|
10
10
|
const grid = useGrid();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TreePanel } from "../tree-view/panel/panel";
|
|
1
|
+
import { TreePanel } from "../tree-view/panel/panel.js";
|
|
2
2
|
export const Panel = TreePanel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { GridProvider } from "../grid-provider/provider";
|
|
3
|
-
import { TreeRoot } from "../tree-view/root";
|
|
4
|
-
import { branchLookupContext } from "./branch-lookup-context";
|
|
2
|
+
import { GridProvider } from "../grid-provider/provider.js";
|
|
3
|
+
import { TreeRoot } from "../tree-view/root.js";
|
|
4
|
+
import { branchLookupContext } from "./branch-lookup-context.js";
|
|
5
5
|
export function Root({ grid, lookup, children }) {
|
|
6
6
|
return (_jsx(branchLookupContext.Provider, { value: lookup, children: _jsx(GridProvider, { value: grid, children: _jsx(TreeRoot, { children: children }) }) }));
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import { useTreeViewPaths } from "../tree-view/hooks/use-tree-view-paths";
|
|
2
|
+
import { useTreeViewPaths } from "../tree-view/hooks/use-tree-view-paths.js";
|
|
3
3
|
export function useColumnManager({ grid, query }) {
|
|
4
4
|
const columns = grid.state.columns.useValue();
|
|
5
5
|
const filteredColumns = useMemo(() => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
|
-
import { useColumnItemContext } from "./context";
|
|
3
|
+
import { useColumnItemContext } from "./context.js";
|
|
4
4
|
import { forwardRef, useCallback, useMemo } from "react";
|
|
5
|
-
import { useGrid } from "../grid-provider/use-grid";
|
|
6
|
-
import { useColumnsFromContext } from "./use-columns-from-context";
|
|
5
|
+
import { useGrid } from "../grid-provider/use-grid.js";
|
|
6
|
+
import { useColumnsFromContext } from "./use-columns-from-context.js";
|
|
7
7
|
export const VisibilityCheckbox = forwardRef(function VisibilityCheckbox({ as, ...props }, forwarded) {
|
|
8
8
|
const { item } = useColumnItemContext();
|
|
9
9
|
const grid = useGrid();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { TreeBranch } from "../tree-view/branch/branch";
|
|
3
|
+
import { TreeBranch } from "../tree-view/branch/branch.js";
|
|
4
4
|
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
5
|
-
import { FilterTreeItemContext } from "./context";
|
|
6
|
-
import { useTreeItem } from "./hooks/use-tree-item";
|
|
5
|
+
import { FilterTreeItemContext } from "./context.js";
|
|
6
|
+
import { useTreeItem } from "./hooks/use-tree-item.js";
|
|
7
7
|
export const Branch = forwardRef(function Branch({ item, labelWrap, label, ...props }, forwarded) {
|
|
8
8
|
const value = useTreeItem(item);
|
|
9
9
|
const labelSlot = useSlot({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Dispatch, type SetStateAction } from "react";
|
|
2
|
-
import type { TreeVirtualItem } from "../tree-view/virtualized/make-virtual-tree";
|
|
3
|
-
import type { FilterIn, FilterInFilterItem } from "../+types";
|
|
2
|
+
import type { TreeVirtualItem } from "../tree-view/virtualized/make-virtual-tree.js";
|
|
3
|
+
import type { FilterIn, FilterInFilterItem } from "../+types.js";
|
|
4
4
|
export interface TreeItemContextValue {
|
|
5
5
|
readonly item: TreeVirtualItem<FilterInFilterItem>;
|
|
6
6
|
readonly onCheckChange: (b?: boolean) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useMemo, 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
|
import { useEvent } from "@1771technologies/lytenyte-react-hooks";
|
|
4
4
|
export function useFilterTree({ grid, column, treeItemHeight = 24, pivotMode, applyChangesImmediately = false, query, }) {
|
|
5
5
|
const [items, setItems] = useState([]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { useTreeItemContext } from "./context";
|
|
4
|
+
import { useTreeItemContext } from "./context.js";
|
|
5
5
|
export const InclusionCheckbox = forwardRef(function InclusionCheckbox({ as, ...props }, forwarded) {
|
|
6
6
|
const { isChecked, onCheckChange, isIndeterminate } = useTreeItemContext();
|
|
7
7
|
const rendered = useSlot({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
3
|
import { forwardRef, useMemo } from "react";
|
|
4
|
-
import { useTreeItemContext } from "./context";
|
|
4
|
+
import { useTreeItemContext } from "./context.js";
|
|
5
5
|
export const Label = forwardRef(function Label({ as, ...props }, forwarded) {
|
|
6
6
|
const { item } = useTreeItemContext();
|
|
7
7
|
const label = useMemo(() => {
|
package/dist/filter-tree/leaf.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { TreeLeaf } from "../tree-view/leaf";
|
|
4
|
-
import { FilterTreeItemContext } from "./context";
|
|
5
|
-
import { useTreeItem } from "./hooks/use-tree-item";
|
|
3
|
+
import { TreeLeaf } from "../tree-view/leaf.js";
|
|
4
|
+
import { FilterTreeItemContext } from "./context.js";
|
|
5
|
+
import { useTreeItem } from "./hooks/use-tree-item.js";
|
|
6
6
|
export const Leaf = forwardRef(function Leaf({ item, ...props }, forwarded) {
|
|
7
7
|
const value = useTreeItem(item);
|
|
8
8
|
return (_jsx(FilterTreeItemContext.Provider, { value: value, children: _jsx(TreeLeaf, { ...props, itemId: item.leaf.data.id, ref: forwarded, ...item.attrs, style: { ...props.style, ...item.attrs.style }, onClick: () => value.onCheckChange(), onKeyDown: (ev) => {
|
package/dist/filter-tree/root.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { GridProvider } from "../grid-provider/provider";
|
|
4
|
-
import { TreeRoot } from "../tree-view/root";
|
|
5
|
-
import { FilterTreeContext } from "./context";
|
|
3
|
+
import { GridProvider } from "../grid-provider/provider.js";
|
|
4
|
+
import { TreeRoot } from "../tree-view/root.js";
|
|
5
|
+
import { FilterTreeContext } from "./context.js";
|
|
6
6
|
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
7
7
|
export function Root({ grid, treeRef, filterIn, pivotMode, columnId, children, error, loading, errorAs, loadingAs, fetchItems, items, applyChangesImmediately, filterInChange, ...rootProps }) {
|
|
8
8
|
const value = useMemo(() => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { GridBoxRoot } from "./root";
|
|
2
|
-
import { useAggregationBoxItems } from "./use-aggregation-box-items";
|
|
3
|
-
import { useColumnBoxItems } from "./use-column-box-items";
|
|
4
|
-
import { useRowGroupBoxItems } from "./use-row-group-box-items";
|
|
1
|
+
import { GridBoxRoot } from "./root.js";
|
|
2
|
+
import { useAggregationBoxItems } from "./use-aggregation-box-items.js";
|
|
3
|
+
import { useColumnBoxItems } from "./use-column-box-items.js";
|
|
4
|
+
import { useRowGroupBoxItems } from "./use-row-group-box-items.js";
|
|
5
5
|
export declare const GridBox: {
|
|
6
6
|
Root: typeof GridBoxRoot;
|
|
7
7
|
Panel: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onDrop">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
Item: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./item").GridBoxItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Item: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./item.js").GridBoxItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
9
|
useColumnBoxItems: typeof useColumnBoxItems;
|
|
10
10
|
useRowGroupBoxItems: typeof useRowGroupBoxItems;
|
|
11
11
|
useAggregationBoxItems: typeof useAggregationBoxItems;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BoxItem } from "./item";
|
|
2
|
-
import { GridBoxPanel } from "./panel";
|
|
3
|
-
import { GridBoxRoot } from "./root";
|
|
4
|
-
import { useAggregationBoxItems } from "./use-aggregation-box-items";
|
|
5
|
-
import { useColumnBoxItems } from "./use-column-box-items";
|
|
6
|
-
import { useRowGroupBoxItems } from "./use-row-group-box-items";
|
|
1
|
+
import { BoxItem } from "./item.js";
|
|
2
|
+
import { GridBoxPanel } from "./panel.js";
|
|
3
|
+
import { GridBoxRoot } from "./root.js";
|
|
4
|
+
import { useAggregationBoxItems } from "./use-aggregation-box-items.js";
|
|
5
|
+
import { useColumnBoxItems } from "./use-column-box-items.js";
|
|
6
|
+
import { useRowGroupBoxItems } from "./use-row-group-box-items.js";
|
|
7
7
|
export const GridBox = {
|
|
8
8
|
Root: GridBoxRoot,
|
|
9
9
|
Panel: GridBoxPanel,
|
package/dist/grid-box/item.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { Item } from "../listbox/item";
|
|
3
|
+
import { Item } from "../listbox/item.js";
|
|
4
4
|
import { dragState, DropWrap, useDraggable } from "@1771technologies/lytenyte-dragon";
|
|
5
5
|
import { useCombinedRefs, useSlot, } from "@1771technologies/lytenyte-react-hooks";
|
|
6
|
-
import { useGridBoxContext } from "./context";
|
|
6
|
+
import { useGridBoxContext } from "./context.js";
|
|
7
7
|
export const BoxItem = forwardRef(function BoxItem({ item, itemAs, itemClassName, itemStyle, children, ...props }, forwarded) {
|
|
8
8
|
const { accepted } = useGridBoxContext();
|
|
9
9
|
const { dragProps } = useDraggable({
|
package/dist/grid-box/panel.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { Panel } from "../listbox/panel";
|
|
3
|
+
import { Panel } from "../listbox/panel.js";
|
|
4
4
|
import { DropWrap } from "@1771technologies/lytenyte-dragon";
|
|
5
|
-
import { useGridBoxContext } from "./context";
|
|
5
|
+
import { useGridBoxContext } from "./context.js";
|
|
6
6
|
export const GridBoxPanel = forwardRef(function GridBoxPanel(props, forwarded) {
|
|
7
7
|
const ctx = useGridBoxContext();
|
|
8
8
|
return (_jsx(DropWrap, { ...props, accepted: ctx.accepted, "data-ln-orientation": ctx.orientation, onDrop: ctx.onRootDrop, ref: forwarded, as: _jsx(Panel, {}) }));
|
package/dist/grid-box/root.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropsWithChildren } from "react";
|
|
2
|
-
import type { DropEventParams, Grid } from "../+types";
|
|
2
|
+
import type { DropEventParams, Grid } from "../+types.js";
|
|
3
3
|
export interface GridBoxRootProps<T> {
|
|
4
4
|
readonly orientation?: "vertical" | "horizontal";
|
|
5
5
|
readonly onRootDrop: (p: DropEventParams) => void;
|
package/dist/grid-box/root.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { Root } from "../listbox/root";
|
|
4
|
-
import { GridProvider } from "../grid-provider/provider";
|
|
5
|
-
import { GridBoxContext } from "./context";
|
|
3
|
+
import { Root } from "../listbox/root.js";
|
|
4
|
+
import { GridProvider } from "../grid-provider/provider.js";
|
|
5
|
+
import { GridBoxContext } from "./context.js";
|
|
6
6
|
export function GridBoxRoot({ grid, orientation = "vertical", accepted, onRootDrop, children, }) {
|
|
7
7
|
return (_jsx(GridProvider, { value: grid, children: _jsx(GridBoxContext.Provider, { value: useMemo(() => ({ accepted, orientation, onRootDrop }), [accepted, onRootDrop, orientation]), children: _jsx(Root, { orientation: orientation, children: children }) }) }));
|
|
8
8
|
}
|
package/dist/grid.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Root } from "./root/root";
|
|
2
|
-
import { useLyteNyte } from "./state/use-lytenyte";
|
|
1
|
+
import { Root } from "./root/root.js";
|
|
2
|
+
import { useLyteNyte } from "./state/use-lytenyte.js";
|
|
3
3
|
export declare const Grid: {
|
|
4
4
|
Root: typeof Root;
|
|
5
5
|
Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
HeaderGroupCell: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./header/header-group-cell").HeaderGroupCellProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
-
HeaderRow: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./header/header-row").HeaderRowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
HeaderCell: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./header/header-cell").HeaderCellProps<any>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
Cell: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children"> & import("./cells/cell").CellProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
-
RowFullWidth: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./rows/row-full-width").RowFullWidthProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
HeaderGroupCell: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./header/header-group-cell.js").HeaderGroupCellProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
HeaderRow: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./header/header-row.js").HeaderRowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
HeaderCell: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./header/header-cell.js").HeaderCellProps<any>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Cell: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children"> & import("./cells/cell.js").CellProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
RowFullWidth: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./rows/row-full-width.js").RowFullWidthProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
11
|
RowsContainer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
RowsBottom: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
13
|
RowsTop: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
-
Row: import("react").NamedExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onDrag"> & import("./rows/row/row").RowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Row: import("react").NamedExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onDrag"> & import("./rows/row/row.js").RowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
15
|
RowsCenter: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
16
|
Viewport: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
17
|
useLyteNyte: typeof useLyteNyte;
|
package/dist/grid.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Cell } from "./cells/cell";
|
|
2
|
-
import { Header } from "./header/header";
|
|
3
|
-
import { HeaderCell } from "./header/header-cell";
|
|
4
|
-
import { HeaderGroupCell } from "./header/header-group-cell";
|
|
5
|
-
import { HeaderRow } from "./header/header-row";
|
|
6
|
-
import { Root } from "./root/root";
|
|
7
|
-
import { RowFullWidth } from "./rows/row-full-width";
|
|
8
|
-
import { Row } from "./rows/row/row";
|
|
9
|
-
import { RowsContainer } from "./rows/rows-container";
|
|
10
|
-
import { RowsBottom, RowsCenter, RowsTop } from "./rows/rows-sections";
|
|
11
|
-
import { useLyteNyte } from "./state/use-lytenyte";
|
|
12
|
-
import { Viewport } from "./viewport/viewport";
|
|
1
|
+
import { Cell } from "./cells/cell.js";
|
|
2
|
+
import { Header } from "./header/header.js";
|
|
3
|
+
import { HeaderCell } from "./header/header-cell.js";
|
|
4
|
+
import { HeaderGroupCell } from "./header/header-group-cell.js";
|
|
5
|
+
import { HeaderRow } from "./header/header-row.js";
|
|
6
|
+
import { Root } from "./root/root.js";
|
|
7
|
+
import { RowFullWidth } from "./rows/row-full-width.js";
|
|
8
|
+
import { Row } from "./rows/row/row.js";
|
|
9
|
+
import { RowsContainer } from "./rows/rows-container.js";
|
|
10
|
+
import { RowsBottom, RowsCenter, RowsTop } from "./rows/rows-sections.js";
|
|
11
|
+
import { useLyteNyte } from "./state/use-lytenyte.js";
|
|
12
|
+
import { Viewport } from "./viewport/viewport.js";
|
|
13
13
|
export const Grid = {
|
|
14
14
|
Root,
|
|
15
15
|
Header,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useGridRoot } from "../context";
|
|
3
|
+
import { useGridRoot } from "../context.js";
|
|
4
4
|
import { COLUMN_MARKER_ID, HeaderCellReact } from "@1771technologies/lytenyte-shared";
|
|
5
5
|
import { fastDeepMemo, useCombinedRefs, } from "@1771technologies/lytenyte-react-hooks";
|
|
6
|
-
import { useHeaderCellRenderer } from "./use-header-cell-renderer";
|
|
7
|
-
import { ResizeHandler } from "./resize-handler";
|
|
8
|
-
import { useDragMove } from "./use-drag-move";
|
|
6
|
+
import { useHeaderCellRenderer } from "./use-header-cell-renderer.js";
|
|
7
|
+
import { ResizeHandler } from "./resize-handler.js";
|
|
8
|
+
import { useDragMove } from "./use-drag-move.js";
|
|
9
9
|
const HeaderCellImpl = forwardRef(function HeaderCell({ cell, resizerAs, resizerStyle, resizerClassName, children, ...props }, forwarded) {
|
|
10
10
|
const grid = useGridRoot().grid;
|
|
11
11
|
const ctx = grid.state;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useGridRoot } from "../context";
|
|
3
|
+
import { useGridRoot } from "../context.js";
|
|
4
4
|
import { HeaderGroupCellReact } from "@1771technologies/lytenyte-shared";
|
|
5
5
|
import { fastDeepMemo, useCombinedRefs } from "@1771technologies/lytenyte-react-hooks";
|
|
6
|
-
import { useDragMove } from "./use-drag-move";
|
|
6
|
+
import { useDragMove } from "./use-drag-move.js";
|
|
7
7
|
const HeaderGroupCellImpl = forwardRef(function HeaderCell({ cell, children, ...props }, forwarded) {
|
|
8
8
|
const grid = useGridRoot().grid;
|
|
9
9
|
const ctx = grid.state;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { fastDeepMemo } from "@1771technologies/lytenyte-react-hooks";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { useGridRoot } from "../context";
|
|
4
|
+
import { useGridRoot } from "../context.js";
|
|
5
5
|
import { HeaderRowReact } from "@1771technologies/lytenyte-shared";
|
|
6
6
|
const HeaderRowImpl = forwardRef(function HeaderRow(props, forwarded) {
|
|
7
7
|
const maxRow = useGridRoot().grid.view.get().header.maxRow;
|
package/dist/header/header.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useGridRoot } from "../context";
|
|
3
|
+
import { useGridRoot } from "../context.js";
|
|
4
4
|
import { fastDeepMemo } from "@1771technologies/lytenyte-react-hooks";
|
|
5
5
|
import { HeaderReact } from "@1771technologies/lytenyte-shared";
|
|
6
6
|
const HeaderImpl = forwardRef(function Header(props, forwarded) {
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
3
|
import {} from "react";
|
|
4
4
|
import { DEFAULT_COLUMN_WIDTH_MAX, DEFAULT_COLUMN_WIDTH_MIN, getColIndexFromEl, getTranslate, sizeFromCoord, } from "@1771technologies/lytenyte-shared";
|
|
5
|
-
import { useGridRoot } from "../context";
|
|
5
|
+
import { useGridRoot } from "../context.js";
|
|
6
6
|
import { getComputedStyle, isHTMLElement } from "@1771technologies/lytenyte-dom-utils";
|
|
7
7
|
import { clamp, getClientX } from "@1771technologies/lytenyte-js-utils";
|
|
8
8
|
export function ResizeHandler({ as, cell, xPositions, style, className, }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { useGridRoot } from "../context";
|
|
3
|
+
import { useGridRoot } from "../context.js";
|
|
4
4
|
function DefaultRenderer(p) {
|
|
5
5
|
return _jsx(_Fragment, { children: p.column.name ?? p.column.id });
|
|
6
6
|
}
|
package/dist/icons/index.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export { AddIcon, AddSmallIcon, AggregateIcon, AggregationIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightCurvedIcon, ArrowRightIcon, ArrowUpIcon, AutosizeIcon, BackIcon, BookmarkIcon, BooleanIcon, CalendarIcon, ChartIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, Close2Icon, CloseIcon, CollapseGroupIcon, Columns2Icon, ColumnsIcon, CopyIcon, CornerRadiusIcon, CustomizeThemeIcon, CutIcon, CsvIcon, DeleteIcon, DocsIcon, DownloadIcon, Drag2Icon, DragDotsIcon, DragDotsSmallIcon, DragIcon, DuplicateIcon, EditIcon, EmailIcon, ExcelIcon, ExpandGroupIcon, ExpandIcon, Expression2Icon, ExpressionIcon, ExternalLinkIcon, File2Icon, FileIcon, FilterIcon, FolderIcon, GlobeIcon, GridViewIcon, GroupByColIcon, HamburgerIcon, HelpIcon, HiddenIcon, HistoryIcon, ImportIcon, LinkIcon, ListViewIcon, LoadingIcon, LocationIcon, ModalIcon, MoreIcon, MoreVerticalIcon, MultilineIcon, NumberIcon, PasteIcon, PieIcon, PinColumnIcon, RefreshIcon, SearchIcon, SettingsIcon, ShareIcon, SingleLineIcon, Sort2Icon, SortIcon, SpacingHIcon, SpacingIcon, StickColumnIcon, SwapIcon, TagIcon, TaskIcon, TextIcon, ThemesIcon, Tickmark2Icon, TickmarkIcon, TimeIcon, UploadIcon, UserIcon, ViewIcon,
|
|
1
|
+
export { AddIcon, AddSmallIcon, AggregateIcon, AggregationIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightCurvedIcon, ArrowRightIcon, ArrowUpIcon, AutosizeIcon, BackIcon, BookmarkIcon, BooleanIcon, CalendarIcon, ChartIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, Close2Icon, CloseIcon, CollapseGroupIcon, Columns2Icon, ColumnsIcon, CopyIcon, CornerRadiusIcon, CustomizeThemeIcon, CutIcon, CsvIcon, DeleteIcon, DocsIcon, DownloadIcon, Drag2Icon, DragDotsIcon, DragDotsSmallIcon, DragIcon, DuplicateIcon, EditIcon, EmailIcon, ExcelIcon, ExpandGroupIcon, ExpandIcon, Expression2Icon, ExpressionIcon, ExternalLinkIcon, File2Icon, FileIcon, FilterIcon, FolderIcon, GlobeIcon, GridViewIcon, GroupByColIcon, HamburgerIcon, HelpIcon, HiddenIcon, HistoryIcon, ImportIcon, LinkIcon, ListViewIcon, LoadingIcon, LocationIcon, ModalIcon, MoreIcon, MoreVerticalIcon, MultilineIcon, NumberIcon, PasteIcon, PieIcon, PinColumnIcon, RefreshIcon, SearchIcon, SettingsIcon, ShareIcon, SingleLineIcon, Sort2Icon, SortIcon, SpacingHIcon, SpacingIcon, StickColumnIcon, SwapIcon, TagIcon, TaskIcon, TextIcon, ThemesIcon, Tickmark2Icon, TickmarkIcon, TimeIcon, UploadIcon, UserIcon, ViewIcon,
|
|
2
|
+
// eslint-disable-next-line import/extensions
|
|
3
|
+
} from "@1771technologies/lytenyte-core/icons";
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { GridBox } from "./grid-box/grid-box.js";
|
|
|
7
7
|
export { DropWrap } from "@1771technologies/lytenyte-dragon";
|
|
8
8
|
export { activateLicense } from "./license.js";
|
|
9
9
|
export { measureText } from "@1771technologies/lytenyte-shared";
|
|
10
|
-
export { makeClientDataSource, useClientRowDataSource, } from "./row-data-source-client/use-client-data-source";
|
|
11
|
-
export { makeClientDataSourcePaginated, useClientRowDataSourcePaginated, } from "./row-data-source-client/use-client-data-source-paginated";
|
|
12
|
-
export { makeClientTreeDataSource, useClientTreeDataSource, } from "./row-data-source-client/use-client-tree-data-source";
|
|
13
|
-
export { makeServerDataSource, useServerDataSource, } from "./row-data-source-server/use-server-data-source";
|
|
10
|
+
export { makeClientDataSource, useClientRowDataSource, } from "./row-data-source-client/use-client-data-source.js";
|
|
11
|
+
export { makeClientDataSourcePaginated, useClientRowDataSourcePaginated, } from "./row-data-source-client/use-client-data-source-paginated.js";
|
|
12
|
+
export { makeClientTreeDataSource, useClientTreeDataSource, } from "./row-data-source-client/use-client-tree-data-source.js";
|
|
13
|
+
export { makeServerDataSource, useServerDataSource, } from "./row-data-source-server/use-server-data-source.js";
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export { GridBox } from "./grid-box/grid-box.js";
|
|
|
7
7
|
export { DropWrap } from "@1771technologies/lytenyte-dragon";
|
|
8
8
|
export { activateLicense } from "./license.js";
|
|
9
9
|
export { measureText } from "@1771technologies/lytenyte-shared";
|
|
10
|
-
export { makeClientDataSource, useClientRowDataSource, } from "./row-data-source-client/use-client-data-source";
|
|
11
|
-
export { makeClientDataSourcePaginated, useClientRowDataSourcePaginated, } from "./row-data-source-client/use-client-data-source-paginated";
|
|
12
|
-
export { makeClientTreeDataSource, useClientTreeDataSource, } from "./row-data-source-client/use-client-tree-data-source";
|
|
13
|
-
export { makeServerDataSource, useServerDataSource, } from "./row-data-source-server/use-server-data-source";
|
|
10
|
+
export { makeClientDataSource, useClientRowDataSource, } from "./row-data-source-client/use-client-data-source.js";
|
|
11
|
+
export { makeClientDataSourcePaginated, useClientRowDataSourcePaginated, } from "./row-data-source-client/use-client-data-source-paginated.js";
|
|
12
|
+
export { makeClientTreeDataSource, useClientTreeDataSource, } from "./row-data-source-client/use-client-tree-data-source.js";
|
|
13
|
+
export { makeServerDataSource, useServerDataSource, } from "./row-data-source-server/use-server-data-source.js";
|
package/dist/listbox/item.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useListboxContext } from "./context";
|
|
3
|
+
import { useListboxContext } from "./context.js";
|
|
4
4
|
import { getTabbables } from "@1771technologies/lytenyte-dom-utils";
|
|
5
5
|
export const Item = forwardRef(function Item(props, forwarded) {
|
|
6
6
|
const ctx = useListboxContext();
|
package/dist/listbox/panel.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useEffect, useState } from "react";
|
|
3
|
-
import { useListboxContext } from "./context";
|
|
3
|
+
import { useListboxContext } from "./context.js";
|
|
4
4
|
import { useCombinedRefs } from "@1771technologies/lytenyte-react-hooks";
|
|
5
5
|
import { getTabbables } from "@1771technologies/lytenyte-dom-utils";
|
|
6
6
|
export const Panel = forwardRef(function Panel(props, forwarded) {
|
package/dist/listbox/root.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useGridRoot } from "../context";
|
|
2
|
+
import { useGridRoot } from "../context.js";
|
|
3
3
|
export function DialogDriver() {
|
|
4
4
|
const grid = useGridRoot().grid;
|
|
5
5
|
const openFrameState = grid.internal.dialogFrames.useValue();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useGridRoot } from "../context";
|
|
2
|
+
import { useGridRoot } from "../context.js";
|
|
3
3
|
export function PopoverDriver() {
|
|
4
4
|
const grid = useGridRoot().grid;
|
|
5
5
|
const openFrameState = grid.internal.popoverFrames.useValue();
|
package/dist/root/root.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useLayoutEffect, useMemo } from "react";
|
|
3
3
|
import { useEvent, useMeasure } from "@1771technologies/lytenyte-react-hooks";
|
|
4
|
-
import { RootProvider } from "../context";
|
|
5
|
-
import { DialogDriver } from "./dialog-driver";
|
|
6
|
-
import { PopoverDriver } from "./popover-driver";
|
|
7
|
-
import { CellSelectionDriver } from "../cell-selection/cell-selection-driver";
|
|
8
|
-
import { hasAValidLicense } from "../license";
|
|
4
|
+
import { RootProvider } from "../context.js";
|
|
5
|
+
import { DialogDriver } from "./dialog-driver.js";
|
|
6
|
+
import { PopoverDriver } from "./popover-driver.js";
|
|
7
|
+
import { CellSelectionDriver } from "../cell-selection/cell-selection-driver.js";
|
|
8
|
+
import { hasAValidLicense } from "../license.js";
|
|
9
9
|
export function Root({ grid, children, ...events }) {
|
|
10
10
|
useEffect(() => {
|
|
11
11
|
if (hasAValidLicense)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type Column, type ColumnPivotModel } from "../../+types";
|
|
1
|
+
import { type Column, type ColumnPivotModel } from "../../+types.js";
|
|
2
2
|
export declare function createAggModel<T>(model: ColumnPivotModel<T>, columns: Column<T>[], separator: string): {
|
|
3
3
|
[k: string]: {
|
|
4
|
-
readonly fn: import("../../+types").AggModelFn<T>;
|
|
4
|
+
readonly fn: import("../../+types.js").AggModelFn<T>;
|
|
5
5
|
};
|
|
6
6
|
};
|
package/dist/rows/row/row.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RowNormalRowLayout } from "../../+types";
|
|
1
|
+
import type { RowNormalRowLayout } from "../../+types.js";
|
|
2
2
|
import { type DropWrapProps } from "@1771technologies/lytenyte-shared";
|
|
3
3
|
export interface RowProps extends Omit<DropWrapProps, "accepted"> {
|
|
4
4
|
readonly row: RowNormalRowLayout<any>;
|
package/dist/rows/row/row.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, memo } from "react";
|
|
3
|
-
import { useGridRoot } from "../../context";
|
|
4
|
-
import { RowDetailRow } from "../row-detail-row";
|
|
3
|
+
import { useGridRoot } from "../../context.js";
|
|
4
|
+
import { RowDetailRow } from "../row-detail-row.js";
|
|
5
5
|
import { RowReact } from "@1771technologies/lytenyte-shared";
|
|
6
|
-
import { useRowContextValue } from "./use-row-context-value";
|
|
7
|
-
import { RowContext } from "./context";
|
|
6
|
+
import { useRowContextValue } from "./use-row-context-value.js";
|
|
7
|
+
import { RowContext } from "./context.js";
|
|
8
8
|
import { equal } from "@1771technologies/lytenyte-js-utils";
|
|
9
|
-
import { CellSpacerNoPin } from "../../cells/cell-spacer";
|
|
9
|
+
import { CellSpacerNoPin } from "../../cells/cell-spacer.js";
|
|
10
10
|
const empty = [];
|
|
11
11
|
const RowImpl = forwardRef(function Rows({ row, ...props }, forwarded) {
|
|
12
12
|
const ctx = useGridRoot().grid;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Grid, GridAtomReadonlyUnwatchable, RowNode } from "../../+types";
|
|
2
|
-
import type { InternalAtoms } from "../../state/+types";
|
|
3
|
-
import type { RowMetaData } from "./context";
|
|
1
|
+
import type { Grid, GridAtomReadonlyUnwatchable, RowNode } from "../../+types.js";
|
|
2
|
+
import type { InternalAtoms } from "../../state/+types.js";
|
|
3
|
+
import type { RowMetaData } from "./context.js";
|
|
4
4
|
export declare function useRowContextValue(grid: Grid<any> & {
|
|
5
5
|
internal: InternalAtoms;
|
|
6
6
|
}, row: GridAtomReadonlyUnwatchable<RowNode<any> | null>, yPositions: Uint32Array): RowMetaData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getNearestRow, getRowIndexFromEl, SCROLL_WIDTH_VARIABLE_USE, sizeFromCoord, } from "@1771technologies/lytenyte-shared";
|
|
3
|
-
import { useGridRoot } from "../context";
|
|
3
|
+
import { useGridRoot } from "../context.js";
|
|
4
4
|
import { useEffect, useState } from "react";
|
|
5
5
|
import { getTabbables, isHTMLElement } from "@1771technologies/lytenyte-dom-utils";
|
|
6
6
|
export function RowDetailRow({ layout, }) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { fastDeepMemo } from "@1771technologies/lytenyte-react-hooks";
|
|
4
|
-
import { useGridRoot } from "../context";
|
|
4
|
+
import { useGridRoot } from "../context.js";
|
|
5
5
|
import { RowFullWidthReact } from "@1771technologies/lytenyte-shared";
|
|
6
|
-
import { RowDetailRow } from "./row-detail-row";
|
|
7
|
-
import { useRowContextValue } from "./row/use-row-context-value";
|
|
6
|
+
import { RowDetailRow } from "./row-detail-row.js";
|
|
7
|
+
import { useRowContextValue } from "./row/use-row-context-value.js";
|
|
8
8
|
const empty = [];
|
|
9
9
|
const RowFullWidthImpl = forwardRef(function RowFullWidth({ row: layout, space, children, ...props }, forwarded) {
|
|
10
10
|
const grid = useGridRoot().grid;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useGridRoot } from "../context";
|
|
3
|
+
import { useGridRoot } from "../context.js";
|
|
4
4
|
import { fastDeepMemo } from "@1771technologies/lytenyte-react-hooks";
|
|
5
5
|
import { RowsContainerReact } from "@1771technologies/lytenyte-shared";
|
|
6
6
|
export const RowsContainer = fastDeepMemo(forwardRef(function Rows(props, forwarded) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { fastDeepMemo } from "@1771technologies/lytenyte-react-hooks";
|
|
4
|
-
import { useGridRoot } from "../context";
|
|
5
|
-
import { NativeScroller } from "./scrollers/native-scroller";
|
|
4
|
+
import { useGridRoot } from "../context.js";
|
|
5
|
+
import { NativeScroller } from "./scrollers/native-scroller.js";
|
|
6
6
|
import { RowsBottomReact, RowsCenterReact, RowsTopReact } from "@1771technologies/lytenyte-shared";
|
|
7
|
-
import { CellSelectionBottom, CellSelectionCenter, CellSelectionTop, } from "../cell-selection/cell-selection-containers";
|
|
7
|
+
import { CellSelectionBottom, CellSelectionCenter, CellSelectionTop, } from "../cell-selection/cell-selection-containers.js";
|
|
8
8
|
export const RowsTop = fastDeepMemo(forwardRef(function RowsTop(props, forwarded) {
|
|
9
9
|
const cx = useGridRoot().grid;
|
|
10
10
|
const view = cx.view.useValue().rows;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type PropsWithChildren } from "react";
|
|
2
|
-
import { type SortManagerContext } from "./context";
|
|
2
|
+
import { type SortManagerContext } from "./context.js";
|
|
3
3
|
export declare function Root({ sortItems, setSortItems, grid, mode, children, }: PropsWithChildren<SortManagerContext>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { context } from "./context";
|
|
3
|
+
import { context } from "./context.js";
|
|
4
4
|
export function Root({ sortItems, setSortItems, grid, mode, children, }) {
|
|
5
5
|
const value = useMemo(() => {
|
|
6
6
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { useSortRowCtx } from "./context";
|
|
4
|
+
import { useSortRowCtx } from "./context.js";
|
|
5
5
|
export const SortAdd = forwardRef(function SortAdd({ as: as, ...props }, forwarded) {
|
|
6
6
|
const row = useSortRowCtx();
|
|
7
7
|
const renderer = useSlot({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEvent, useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { useSortManagerCtx } from "./context";
|
|
4
|
+
import { useSortManagerCtx } from "./context.js";
|
|
5
5
|
import { itemsWithIdToMap } from "@1771technologies/lytenyte-js-utils";
|
|
6
|
-
import { sortItemsToSortModel } from "./utils/sort-item-to-sort-model";
|
|
6
|
+
import { sortItemsToSortModel } from "./utils/sort-item-to-sort-model.js";
|
|
7
7
|
export const SortApply = forwardRef(function SortApply({ as, ...props }, forwarded) {
|
|
8
8
|
const ctx = useSortManagerCtx();
|
|
9
9
|
const onApply = useEvent(() => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEvent, useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { useSortManagerCtx } from "./context";
|
|
5
|
-
import { sortModelToSortItems } from "./utils/sort-model-to-sort-items";
|
|
4
|
+
import { useSortManagerCtx } from "./context.js";
|
|
5
|
+
import { sortModelToSortItems } from "./utils/sort-model-to-sort-items.js";
|
|
6
6
|
import { itemsWithIdToMap } from "@1771technologies/lytenyte-js-utils";
|
|
7
7
|
export const SortCancel = forwardRef(function SortCancel({ as, ...props }, forwarded) {
|
|
8
8
|
const ctx = useSortManagerCtx();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEvent, useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { useSortManagerCtx } from "./context";
|
|
4
|
+
import { useSortManagerCtx } from "./context.js";
|
|
5
5
|
export const SortClear = forwardRef(function SortClear({ as, ...props }, forwarded) {
|
|
6
6
|
const ctx = useSortManagerCtx();
|
|
7
7
|
const onClear = useEvent(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { useSortRowCtx } from "./context";
|
|
4
|
+
import { useSortRowCtx } from "./context.js";
|
|
5
5
|
export const SortColumnSelect = forwardRef(function SortColumnSelect({ as, ...props }, forwarded) {
|
|
6
6
|
const row = useSortRowCtx();
|
|
7
7
|
const el = (_jsxs("select", { "aria-label": "Select column to sort", value: row.columnItem?.value ?? "", onChange: (e) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { useSortRowCtx } from "./context";
|
|
4
|
+
import { useSortRowCtx } from "./context.js";
|
|
5
5
|
export const SortDirectionSelect = forwardRef(function SortDirectionSelect({ as, ...props }, forwarded) {
|
|
6
6
|
const row = useSortRowCtx();
|
|
7
7
|
const el = (_jsx("select", { "aria-label": "Select sort direction", value: row.sortDirectionSelected?.value ?? "", onChange: (e) => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Root } from "./root";
|
|
2
|
-
import { useSortManager } from "./hooks/use-sort-manager";
|
|
1
|
+
import { Root } from "./root.js";
|
|
2
|
+
import { useSortManager } from "./hooks/use-sort-manager.js";
|
|
3
3
|
export declare const SortManager: {
|
|
4
4
|
Root: typeof Root;
|
|
5
|
-
Row: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./sort-row").SortRowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
Row: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./sort-row.js").SortRowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
6
|
Rows: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
-
ColumnSelect: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./sort-column-select").SortColumnSelectProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
8
|
-
ValueSelect: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./sort-value-select").SortValueSelectProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
9
|
-
DirectionSelect: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./sort-direction-select").SortDirectionSelectProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
10
|
-
Add: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-add").SortAddProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
-
Remove: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-remove").SortRemoveProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
-
Cancel: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-cancel").SortCancelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
-
Clear: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-clear").SortClearProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
-
Apply: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-apply").SortApplyProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
ColumnSelect: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./sort-column-select.js").SortColumnSelectProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
8
|
+
ValueSelect: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./sort-value-select.js").SortValueSelectProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
9
|
+
DirectionSelect: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("./sort-direction-select.js").SortDirectionSelectProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
10
|
+
Add: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-add.js").SortAddProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Remove: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-remove.js").SortRemoveProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Cancel: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-cancel.js").SortCancelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Clear: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-clear.js").SortClearProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Apply: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("./sort-apply.js").SortApplyProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
15
|
useSortManager: typeof useSortManager;
|
|
16
16
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Root } from "./root";
|
|
2
|
-
import { SortRow } from "./sort-row";
|
|
3
|
-
import { SortRows } from "./sort-rows";
|
|
4
|
-
import { useSortManager } from "./hooks/use-sort-manager";
|
|
5
|
-
import { SortColumnSelect } from "./sort-column-select";
|
|
6
|
-
import { SortValueSelect } from "./sort-value-select";
|
|
7
|
-
import { SortDirectionSelect } from "./sort-direction-select";
|
|
8
|
-
import { SortAdd } from "./sort-add";
|
|
9
|
-
import { SortRemove } from "./sort-remove";
|
|
10
|
-
import { SortCancel } from "./sort-cancel";
|
|
11
|
-
import { SortClear } from "./sort-clear";
|
|
12
|
-
import { SortApply } from "./sort-apply";
|
|
1
|
+
import { Root } from "./root.js";
|
|
2
|
+
import { SortRow } from "./sort-row.js";
|
|
3
|
+
import { SortRows } from "./sort-rows.js";
|
|
4
|
+
import { useSortManager } from "./hooks/use-sort-manager.js";
|
|
5
|
+
import { SortColumnSelect } from "./sort-column-select.js";
|
|
6
|
+
import { SortValueSelect } from "./sort-value-select.js";
|
|
7
|
+
import { SortDirectionSelect } from "./sort-direction-select.js";
|
|
8
|
+
import { SortAdd } from "./sort-add.js";
|
|
9
|
+
import { SortRemove } from "./sort-remove.js";
|
|
10
|
+
import { SortCancel } from "./sort-cancel.js";
|
|
11
|
+
import { SortClear } from "./sort-clear.js";
|
|
12
|
+
import { SortApply } from "./sort-apply.js";
|
|
13
13
|
export const SortManager = {
|
|
14
14
|
Root,
|
|
15
15
|
Row: SortRow,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { useSortRowCtx } from "./context";
|
|
4
|
+
import { useSortRowCtx } from "./context.js";
|
|
5
5
|
export const SortRemove = forwardRef(function SortRemove({ as, ...props }, forwarded) {
|
|
6
6
|
const row = useSortRowCtx();
|
|
7
7
|
const renderer = useSlot({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { Item } from "../listbox/item";
|
|
4
|
-
import { rowContext } from "./context";
|
|
3
|
+
import { Item } from "../listbox/item.js";
|
|
4
|
+
import { rowContext } from "./context.js";
|
|
5
5
|
export const SortRow = forwardRef(function SortRow({ row, ...props }, forwarded) {
|
|
6
6
|
return (_jsx(rowContext.Provider, { value: row, children: _jsx(Item, { ...props, ref: forwarded }) }));
|
|
7
7
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { Panel } from "../listbox/panel";
|
|
3
|
+
import { Panel } from "../listbox/panel.js";
|
|
4
4
|
export const SortRows = forwardRef(function SortRows(props, forwarded) {
|
|
5
5
|
return _jsx(Panel, { ...props, ref: forwarded });
|
|
6
6
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useSlot } from "@1771technologies/lytenyte-react-hooks";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { useSortRowCtx } from "./context";
|
|
4
|
+
import { useSortRowCtx } from "./context.js";
|
|
5
5
|
export const SortValueSelect = forwardRef(function SortValueSelect({ as, ...props }, forwarded) {
|
|
6
6
|
const row = useSortRowCtx();
|
|
7
7
|
const el = (_jsxs("select", { "aria-label": "Select sort value", value: row.sortSelected?.value ?? "", onChange: (e) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CONTAINS_DEAD_CELLS, FULL_WIDTH, updateLayout } from "@1771technologies/lytenyte-shared";
|
|
2
|
-
import { getSpanFn } from "../helpers/get-span-callback";
|
|
3
|
-
import { getFullWidthCallback } from "../helpers/get-full-width-callback";
|
|
2
|
+
import { getSpanFn } from "../helpers/get-span-callback.js";
|
|
3
|
+
import { getFullWidthCallback } from "../helpers/get-full-width-callback.js";
|
|
4
4
|
export const makeCellRoot = (grid) => {
|
|
5
5
|
return (row, column) => {
|
|
6
6
|
const l = grid.internal.layout;
|
package/dist/tree-view/root.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useMemo, useRef, useState } from "react";
|
|
3
|
-
import { context } from "./context";
|
|
3
|
+
import { context } from "./context.js";
|
|
4
4
|
import { useCombinedRefs, useEvent } from "@1771technologies/lytenyte-react-hooks";
|
|
5
5
|
import { getAllIds } from "./navigation/get-all-ids.js";
|
|
6
6
|
import { getIdsBetweenNodes } from "./utils/get-ids-between-nodes.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { useCombinedRefs } from "@1771technologies/lytenyte-react-hooks";
|
|
4
|
-
import { useGridRoot } from "../context";
|
|
4
|
+
import { useGridRoot } from "../context.js";
|
|
5
5
|
import { handleNavigationKeys, handleSkipInner, useFocusTracking, } from "@1771technologies/lytenyte-shared";
|
|
6
|
-
import { beginEditing } from "./begin-editing";
|
|
6
|
+
import { beginEditing } from "./begin-editing.js";
|
|
7
7
|
export const Viewport = forwardRef(function Viewport({ children, style, ...props }, forwarded) {
|
|
8
8
|
const ctx = useGridRoot();
|
|
9
9
|
const ref = useCombinedRefs(ctx.ref, forwarded);
|
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.
|
|
4
|
+
"version": "1.0.9",
|
|
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-core": "1.0.
|
|
53
|
-
"@1771technologies/lytenyte-
|
|
54
|
-
"@1771technologies/lytenyte-
|
|
55
|
-
"@1771technologies/lytenyte-
|
|
56
|
-
"@1771technologies/lytenyte-
|
|
57
|
-
"@1771technologies/lytenyte-
|
|
52
|
+
"@1771technologies/lytenyte-core": "1.0.9",
|
|
53
|
+
"@1771technologies/lytenyte-dom-utils": "1.0.9",
|
|
54
|
+
"@1771technologies/lytenyte-react-hooks": "1.0.9",
|
|
55
|
+
"@1771technologies/lytenyte-dragon": "1.0.9",
|
|
56
|
+
"@1771technologies/lytenyte-js-utils": "1.0.9",
|
|
57
|
+
"@1771technologies/lytenyte-shared": "1.0.9"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"react": "^18.0.0 || ^19.0.0",
|