@vuu-ui/vuu-table 0.8.12 → 0.8.13
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/cjs/index.js +1 -1
- package/cjs/index.js.map +4 -4
- package/esm/index.js +1 -1
- package/esm/index.js.map +4 -4
- package/index.css +1 -1
- package/index.css.map +3 -3
- package/package.json +9 -9
- package/types/vuu-table/src/{table-next/Row.d.ts → Row.d.ts} +5 -5
- package/types/vuu-table/src/Table.d.ts +72 -0
- package/types/vuu-table/src/cell-renderers/cell-utils.d.ts +7 -0
- package/types/vuu-table/src/cell-renderers/checkbox-cell/CheckboxCell.d.ts +3 -0
- package/types/vuu-table/src/cell-renderers/checkbox-cell/index.d.ts +1 -0
- package/types/vuu-table/src/cell-renderers/dropdown-cell/DropdownCell.d.ts +4 -0
- package/types/vuu-table/src/cell-renderers/index.d.ts +5 -0
- package/types/vuu-table/src/{table-next/cell-renderers → cell-renderers}/input-cell/InputCell.d.ts +1 -1
- package/types/vuu-table/src/cell-renderers/lookup-cell/LookupCell.d.ts +3 -0
- package/types/vuu-table/src/cell-renderers/lookup-cell/index.d.ts +1 -0
- package/types/vuu-table/src/cell-renderers/toggle-cell/ToggleCell.d.ts +4 -0
- package/types/vuu-table/src/cell-renderers/toggle-cell/index.d.ts +1 -0
- package/types/vuu-table/src/{table-next/column-header-pill → column-header-pill}/ColumnHeaderPill.d.ts +3 -3
- package/types/vuu-table/src/{table-next/column-header-pill → column-header-pill}/GroupColumnPill.d.ts +2 -2
- package/types/vuu-table/src/{table-next/column-header-pill → column-header-pill}/SortIndicator.d.ts +2 -2
- package/types/vuu-table/src/{table-next/column-menu → column-menu}/ColumnMenu.d.ts +2 -2
- package/types/vuu-table/src/{table-next/column-resizing → column-resizing}/useTableColumnResize.d.ts +2 -2
- package/types/vuu-table/src/{table-next/context-menu → context-menu}/index.d.ts +1 -1
- package/types/vuu-table/src/{table-next/context-menu/useTableContextMenu.d.ts → context-menu/useHandleTableContextMenu.d.ts} +3 -3
- package/types/vuu-table/src/header-cell/GroupHeaderCellNext.d.ts +10 -0
- package/types/vuu-table/src/{table-next/header-cell → header-cell}/HeaderCell.d.ts +2 -2
- package/types/vuu-table/src/{table-next/header-cell → header-cell}/index.d.ts +0 -1
- package/types/vuu-table/src/index.d.ts +9 -4
- package/types/vuu-table/src/{table-next/table-cell → table-cell}/TableCell.d.ts +1 -1
- package/types/vuu-table/src/{table-next/table-cell → table-cell}/TableGroupCell.d.ts +1 -1
- package/types/vuu-table/src/{table-next/table-config.d.ts → table-config.d.ts} +1 -1
- package/types/vuu-table/src/{table-next/table-dom-utils.d.ts → table-dom-utils.d.ts} +3 -1
- package/types/vuu-table/src/table-header/TableHeader.d.ts +18 -0
- package/types/vuu-table/src/table-header/useTableHeader.d.ts +15 -0
- package/types/vuu-table/src/useCell.d.ts +6 -0
- package/types/vuu-table/src/useCellEditing.d.ts +10 -0
- package/types/vuu-table/src/useControlledTableNavigation.d.ts +7 -0
- package/types/vuu-table/src/{table-next/useDataSource.d.ts → useDataSource.d.ts} +5 -3
- package/types/vuu-table/src/{table-next/useKeyboardNavigation.d.ts → useKeyboardNavigation.d.ts} +9 -2
- package/types/vuu-table/src/useSelection.d.ts +14 -0
- package/types/vuu-table/src/useTable.d.ts +66 -0
- package/types/vuu-table/src/useTableContextMenu.d.ts +11 -0
- package/types/vuu-table/src/{table-next/useTableModel.d.ts → useTableModel.d.ts} +12 -14
- package/types/vuu-table/src/{table-next/useTableViewport.d.ts → useTableViewport.d.ts} +2 -2
- package/types/vuu-table/src/{table-next/useVirtualViewport.d.ts → useVirtualViewport.d.ts} +2 -2
- package/types/vuu-ui-controls/src/drag-drop/DragDropState.d.ts +15 -0
- package/types/vuu-ui-controls/src/drag-drop/dragDropTypesNext.d.ts +91 -0
- package/types/vuu-layout/src/Component.d.ts +0 -7
- package/types/vuu-layout/src/DraggableLayout.d.ts +0 -7
- package/types/vuu-layout/src/dock-layout/DockLayout.d.ts +0 -10
- package/types/vuu-layout/src/dock-layout/Drawer.d.ts +0 -18
- package/types/vuu-layout/src/dock-layout/index.d.ts +0 -2
- package/types/vuu-layout/src/drag-drop/BoxModel.d.ts +0 -143
- package/types/vuu-layout/src/drag-drop/DragState.d.ts +0 -46
- package/types/vuu-layout/src/drag-drop/Draggable.d.ts +0 -24
- package/types/vuu-layout/src/drag-drop/DropMenu.d.ts +0 -10
- package/types/vuu-layout/src/drag-drop/DropTarget.d.ts +0 -61
- package/types/vuu-layout/src/drag-drop/DropTargetRenderer.d.ts +0 -18
- package/types/vuu-layout/src/drag-drop/dragDropTypes.d.ts +0 -51
- package/types/vuu-layout/src/drag-drop/index.d.ts +0 -4
- package/types/vuu-layout/src/flexbox/Flexbox.d.ts +0 -5
- package/types/vuu-layout/src/flexbox/FlexboxLayout.d.ts +0 -6
- package/types/vuu-layout/src/flexbox/FluidGrid.d.ts +0 -7
- package/types/vuu-layout/src/flexbox/FluidGridLayout.d.ts +0 -6
- package/types/vuu-layout/src/flexbox/Splitter.d.ts +0 -13
- package/types/vuu-layout/src/flexbox/flexbox-utils.d.ts +0 -12
- package/types/vuu-layout/src/flexbox/flexboxTypes.d.ts +0 -51
- package/types/vuu-layout/src/flexbox/index.d.ts +0 -4
- package/types/vuu-layout/src/flexbox/useResponsiveSizing.d.ts +0 -10
- package/types/vuu-layout/src/flexbox/useSplitterResizing.d.ts +0 -2
- package/types/vuu-layout/src/index.d.ts +0 -22
- package/types/vuu-layout/src/layout-action.d.ts +0 -22
- package/types/vuu-layout/src/layout-header/Header.d.ts +0 -13
- package/types/vuu-layout/src/layout-header/index.d.ts +0 -1
- package/types/vuu-layout/src/layout-persistence/LayoutPersistenceManager.d.ts +0 -53
- package/types/vuu-layout/src/layout-persistence/LocalLayoutPersistenceManager.d.ts +0 -18
- package/types/vuu-layout/src/layout-persistence/data.d.ts +0 -3
- package/types/vuu-layout/src/layout-persistence/index.d.ts +0 -4
- package/types/vuu-layout/src/layout-persistence/useLayoutContextMenuItems.d.ts +0 -8
- package/types/vuu-layout/src/layout-provider/LayoutProvider.d.ts +0 -15
- package/types/vuu-layout/src/layout-provider/LayoutProviderContext.d.ts +0 -9
- package/types/vuu-layout/src/layout-provider/index.d.ts +0 -2
- package/types/vuu-layout/src/layout-provider/useLayoutDragDrop.d.ts +0 -4
- package/types/vuu-layout/src/layout-reducer/flexUtils.d.ts +0 -22
- package/types/vuu-layout/src/layout-reducer/index.d.ts +0 -4
- package/types/vuu-layout/src/layout-reducer/insert-layout-element.d.ts +0 -8
- package/types/vuu-layout/src/layout-reducer/layout-reducer.d.ts +0 -3
- package/types/vuu-layout/src/layout-reducer/layoutTypes.d.ts +0 -168
- package/types/vuu-layout/src/layout-reducer/layoutUtils.d.ts +0 -31
- package/types/vuu-layout/src/layout-reducer/move-layout-element.d.ts +0 -3
- package/types/vuu-layout/src/layout-reducer/remove-layout-element.d.ts +0 -3
- package/types/vuu-layout/src/layout-reducer/replace-layout-element.d.ts +0 -6
- package/types/vuu-layout/src/layout-reducer/resize-flex-children.d.ts +0 -4
- package/types/vuu-layout/src/layout-reducer/wrap-layout-element.d.ts +0 -9
- package/types/vuu-layout/src/layout-view/View.d.ts +0 -11
- package/types/vuu-layout/src/layout-view/ViewContext.d.ts +0 -30
- package/types/vuu-layout/src/layout-view/index.d.ts +0 -4
- package/types/vuu-layout/src/layout-view/useView.d.ts +0 -21
- package/types/vuu-layout/src/layout-view/useViewActionDispatcher.d.ts +0 -9
- package/types/vuu-layout/src/layout-view/useViewResize.d.ts +0 -7
- package/types/vuu-layout/src/layout-view/viewTypes.d.ts +0 -21
- package/types/vuu-layout/src/measured-container/MeasuredContainer.d.ts +0 -9
- package/types/vuu-layout/src/measured-container/index.d.ts +0 -2
- package/types/vuu-layout/src/measured-container/useMeasuredContainer.d.ts +0 -22
- package/types/vuu-layout/src/measured-container/useResizeObserver.d.ts +0 -15
- package/types/vuu-layout/src/overflow-container/OverflowContainer.d.ts +0 -17
- package/types/vuu-layout/src/overflow-container/index.d.ts +0 -2
- package/types/vuu-layout/src/overflow-container/overflow-utils.d.ts +0 -49
- package/types/vuu-layout/src/overflow-container/useOverflowContainer.d.ts +0 -20
- package/types/vuu-layout/src/palette/Palette.d.ts +0 -22
- package/types/vuu-layout/src/palette/index.d.ts +0 -1
- package/types/vuu-layout/src/placeholder/Placeholder.d.ts +0 -12
- package/types/vuu-layout/src/placeholder/index.d.ts +0 -1
- package/types/vuu-layout/src/registry/ComponentRegistry.d.ts +0 -13
- package/types/vuu-layout/src/registry/index.d.ts +0 -1
- package/types/vuu-layout/src/responsive/breakpoints.d.ts +0 -4
- package/types/vuu-layout/src/responsive/index.d.ts +0 -3
- package/types/vuu-layout/src/responsive/use-breakpoints.d.ts +0 -7
- package/types/vuu-layout/src/responsive/useResizeObserver.d.ts +0 -13
- package/types/vuu-layout/src/responsive/utils.d.ts +0 -6
- package/types/vuu-layout/src/stack/Stack.d.ts +0 -4
- package/types/vuu-layout/src/stack/StackLayout.d.ts +0 -7
- package/types/vuu-layout/src/stack/index.d.ts +0 -3
- package/types/vuu-layout/src/stack/stackTypes.d.ts +0 -21
- package/types/vuu-layout/src/toolbar/Toolbar.d.ts +0 -19
- package/types/vuu-layout/src/toolbar/index.d.ts +0 -1
- package/types/vuu-layout/src/toolbar/toolbar-dom-utils.d.ts +0 -3
- package/types/vuu-layout/src/toolbar/useKeyboardNavigation.d.ts +0 -32
- package/types/vuu-layout/src/toolbar/useSelection.d.ts +0 -22
- package/types/vuu-layout/src/toolbar/useToolbar.d.ts +0 -28
- package/types/vuu-layout/src/tools/config-wrapper/ConfigWrapper.d.ts +0 -2
- package/types/vuu-layout/src/tools/config-wrapper/index.d.ts +0 -1
- package/types/vuu-layout/src/tools/devtools-box/layout-configurator.d.ts +0 -31
- package/types/vuu-layout/src/tools/devtools-tree/layout-tree-viewer.d.ts +0 -5
- package/types/vuu-layout/src/tools/index.d.ts +0 -3
- package/types/vuu-layout/src/use-persistent-state.d.ts +0 -11
- package/types/vuu-layout/src/utils/index.d.ts +0 -6
- package/types/vuu-layout/src/utils/pathUtils.d.ts +0 -31
- package/types/vuu-layout/src/utils/propUtils.d.ts +0 -5
- package/types/vuu-layout/src/utils/react-utils.d.ts +0 -4
- package/types/vuu-layout/src/utils/refUtils.d.ts +0 -2
- package/types/vuu-layout/src/utils/styleUtils.d.ts +0 -3
- package/types/vuu-layout/src/utils/typeOf.d.ts +0 -4
- package/types/vuu-table/src/table/ColumnResizer.d.ts +0 -8
- package/types/vuu-table/src/table/DragVisualizer.d.ts +0 -8
- package/types/vuu-table/src/table/RowBasedTable.d.ts +0 -4
- package/types/vuu-table/src/table/SortIndicator.d.ts +0 -7
- package/types/vuu-table/src/table/Table.d.ts +0 -9
- package/types/vuu-table/src/table/TableCell.d.ts +0 -4
- package/types/vuu-table/src/table/TableGroupCell.d.ts +0 -4
- package/types/vuu-table/src/table/TableGroupHeaderCell.d.ts +0 -13
- package/types/vuu-table/src/table/TableHeaderCell.d.ts +0 -11
- package/types/vuu-table/src/table/TableRow.d.ts +0 -16
- package/types/vuu-table/src/table/cell-renderers/index.d.ts +0 -1
- package/types/vuu-table/src/table/cell-renderers/json-cell/JsonCell.d.ts +0 -1
- package/types/vuu-table/src/table/cell-renderers/json-cell/index.d.ts +0 -1
- package/types/vuu-table/src/table/context-menu/buildContextMenuDescriptors.d.ts +0 -4
- package/types/vuu-table/src/table/context-menu/index.d.ts +0 -2
- package/types/vuu-table/src/table/context-menu/useTableContextMenu.d.ts +0 -16
- package/types/vuu-table/src/table/dataTableTypes.d.ts +0 -109
- package/types/vuu-table/src/table/filter-indicator.d.ts +0 -13
- package/types/vuu-table/src/table/index.d.ts +0 -10
- package/types/vuu-table/src/table/keyUtils.d.ts +0 -19
- package/types/vuu-table/src/table/useDataSource.d.ts +0 -41
- package/types/vuu-table/src/table/useDraggableColumn.d.ts +0 -9
- package/types/vuu-table/src/table/useKeyboardNavigation.d.ts +0 -22
- package/types/vuu-table/src/table/useMeasuredContainer.d.ts +0 -30
- package/types/vuu-table/src/table/useMeasuredSize.d.ts +0 -26
- package/types/vuu-table/src/table/useResizeObserver.d.ts +0 -15
- package/types/vuu-table/src/table/useSelection.d.ts +0 -9
- package/types/vuu-table/src/table/useTable.d.ts +0 -62
- package/types/vuu-table/src/table/useTableColumnResize.d.ts +0 -17
- package/types/vuu-table/src/table/useTableModel.d.ts +0 -80
- package/types/vuu-table/src/table/useTableScroll.d.ts +0 -29
- package/types/vuu-table/src/table/useVirtualViewport.d.ts +0 -17
- package/types/vuu-table/src/table-next/TableNext.d.ts +0 -4
- package/types/vuu-table/src/table-next/cell-renderers/dropdown-cell/DropdownCell.d.ts +0 -4
- package/types/vuu-table/src/table-next/cell-renderers/index.d.ts +0 -2
- package/types/vuu-table/src/table-next/header-cell/GroupHeaderCell.d.ts +0 -9
- package/types/vuu-table/src/table-next/header-cell/GroupHeaderCellNext.d.ts +0 -9
- package/types/vuu-table/src/table-next/index.d.ts +0 -5
- package/types/vuu-table/src/table-next/useCell.d.ts +0 -6
- package/types/vuu-table/src/table-next/useCellEditing.d.ts +0 -7
- package/types/vuu-table/src/table-next/useTableContextMenu.d.ts +0 -8
- package/types/vuu-table/src/table-next/useTableNext.d.ts +0 -66
- /package/types/vuu-table/src/{table-next/cell-renderers → cell-renderers}/dropdown-cell/index.d.ts +0 -0
- /package/types/vuu-table/src/{table-next/cell-renderers → cell-renderers}/input-cell/index.d.ts +0 -0
- /package/types/vuu-table/src/{table-next/column-header-pill → column-header-pill}/index.d.ts +0 -0
- /package/types/vuu-table/src/{table-next/column-menu → column-menu}/index.d.ts +0 -0
- /package/types/vuu-table/src/{table-next/column-resizing → column-resizing}/ColumnResizer.d.ts +0 -0
- /package/types/vuu-table/src/{table-next/column-resizing → column-resizing}/index.d.ts +0 -0
- /package/types/vuu-table/src/{table-next/context-menu → context-menu}/buildContextMenuDescriptors.d.ts +0 -0
- /package/types/vuu-table/src/{table-next/moving-window.d.ts → moving-window.d.ts} +0 -0
- /package/types/vuu-table/src/{table-next/table-cell → table-cell}/index.d.ts +0 -0
- /package/types/vuu-table/src/{table-next/useInitialValue.d.ts → useInitialValue.d.ts} +0 -0
- /package/types/vuu-table/src/{table-next/useResizeObserver.d.ts → useResizeObserver.d.ts} +0 -0
- /package/types/vuu-table/src/{table-next/useTableScroll.d.ts → useTableScroll.d.ts} +0 -0
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { BreakPointsProp } from "../flexbox/flexboxTypes";
|
|
2
|
-
export type BreakPointRamp = [string, number, number];
|
|
3
|
-
export declare const breakpointRamp: (breakpoints: BreakPointsProp) => BreakPointRamp[];
|
|
4
|
-
export declare const getBreakPoints: (themeName?: string) => BreakPointRamp[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
|
-
import { BreakPointsProp } from "../flexbox/flexboxTypes";
|
|
3
|
-
export interface BreakpointsHookProps {
|
|
4
|
-
breakPoints?: BreakPointsProp;
|
|
5
|
-
smallerThan?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const useBreakpoints: ({ breakPoints: breakPointsProp, smallerThan }: BreakpointsHookProps, ref: RefObject<HTMLElement>) => string | boolean;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
|
-
export declare const WidthHeight: string[];
|
|
3
|
-
export declare const HeightOnly: string[];
|
|
4
|
-
export declare const WidthOnly: string[];
|
|
5
|
-
export type measurements<T = string | number> = {
|
|
6
|
-
height?: T;
|
|
7
|
-
scrollHeight?: T;
|
|
8
|
-
scrollWidth?: T;
|
|
9
|
-
width?: T;
|
|
10
|
-
};
|
|
11
|
-
export type ResizeHandler = (measurements: measurements<number>) => void;
|
|
12
|
-
export declare const resizeObserver: ResizeObserver;
|
|
13
|
-
export declare function useResizeObserver(ref: RefObject<Element | HTMLElement | null>, dimensions: string[], onResize: ResizeHandler, reportInitialSize?: boolean): void;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TabstripProps } from "@vuu-ui/vuu-ui-controls";
|
|
2
|
-
import { HTMLAttributes, MouseEvent, ReactElement, ReactNode } from "react";
|
|
3
|
-
export type TabPosition = "top" | "left" | "right" | "bottom";
|
|
4
|
-
export interface StackProps extends Omit<HTMLAttributes<HTMLDivElement>, "onMouseDown"> {
|
|
5
|
-
active?: number;
|
|
6
|
-
createNewChild?: (index: number) => ReactElement;
|
|
7
|
-
getTabIcon?: (component: ReactElement, index: number) => string | undefined;
|
|
8
|
-
getTabLabel?: (component: ReactElement, index: number) => string | undefined;
|
|
9
|
-
keyBoardActivation?: "automatic" | "manual";
|
|
10
|
-
onAddTab?: () => void;
|
|
11
|
-
onMoveTab?: (fromIndex: number, toIndex: number) => void;
|
|
12
|
-
onMouseDown?: (e: MouseEvent, tabIndex: number) => void;
|
|
13
|
-
onTabClose?: (tabIndex: number) => void;
|
|
14
|
-
onTabEdit?: (tabIndex: number, label: string) => void;
|
|
15
|
-
onTabSelectionChanged?: (nextIndex: number) => void;
|
|
16
|
-
path?: string;
|
|
17
|
-
/** should the Stack display a Tabstrip and where ? default top */
|
|
18
|
-
showTabs?: false | TabPosition;
|
|
19
|
-
toolbarContent?: ReactNode;
|
|
20
|
-
TabstripProps?: Partial<TabstripProps>;
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { OverflowContainerProps } from "../overflow-container";
|
|
3
|
-
import { SelectionStrategy, SpecialKeyMultipleSelection } from "@vuu-ui/vuu-ui-controls";
|
|
4
|
-
import "./Toolbar.css";
|
|
5
|
-
export type ActiveItemChangeHandler = (itemIndex: number[]) => void;
|
|
6
|
-
export type NavigationOutOfBoundsHandler = (direction: "start" | "end") => void;
|
|
7
|
-
export interface ToolbarProps extends OverflowContainerProps {
|
|
8
|
-
activeItemIndex?: number[];
|
|
9
|
-
defaultActiveItemIndex?: number[];
|
|
10
|
-
onActiveChange?: ActiveItemChangeHandler;
|
|
11
|
-
/**
|
|
12
|
-
* Indicates that user has used Arrow key navigation to move beyond the
|
|
13
|
-
* last or before the first item. A higher level component may want to
|
|
14
|
-
* use this to implement a seamless navigation across components.
|
|
15
|
-
*/
|
|
16
|
-
onNavigateOutOfBounds?: NavigationOutOfBoundsHandler;
|
|
17
|
-
selectionStrategy?: SelectionStrategy | SpecialKeyMultipleSelection;
|
|
18
|
-
}
|
|
19
|
-
export declare const Toolbar: ({ activeItemIndex: activeItemIndexProp, defaultActiveItemIndex, children, className: classNameProp, id: idProp, onActiveChange, onNavigateOutOfBounds, orientation, selectionStrategy, ...props }: ToolbarProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Toolbar";
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { orientationType } from "@vuu-ui/vuu-utils";
|
|
2
|
-
import { FocusEvent, FocusEventHandler, KeyboardEvent, MouseEvent as ReactMouseEvent, MouseEventHandler, RefObject } from "react";
|
|
3
|
-
import { NavigationOutOfBoundsHandler } from "./Toolbar";
|
|
4
|
-
import { PopupCloseCallback } from "@vuu-ui/vuu-popups";
|
|
5
|
-
export interface ContainerNavigationProps {
|
|
6
|
-
onBlur: FocusEventHandler;
|
|
7
|
-
onFocus: FocusEventHandler;
|
|
8
|
-
onMouseDownCapture: MouseEventHandler;
|
|
9
|
-
onMouseLeave: MouseEventHandler;
|
|
10
|
-
}
|
|
11
|
-
interface ToolbarNavigationHookProps {
|
|
12
|
-
containerRef: RefObject<HTMLElement>;
|
|
13
|
-
defaultHighlightedIdx?: number;
|
|
14
|
-
highlightedIdx?: number;
|
|
15
|
-
onNavigateOutOfBounds?: NavigationOutOfBoundsHandler;
|
|
16
|
-
orientation: orientationType;
|
|
17
|
-
}
|
|
18
|
-
interface ToolbarNavigationHookResult {
|
|
19
|
-
containerProps: ContainerNavigationProps;
|
|
20
|
-
focusableIdx: number;
|
|
21
|
-
highlightedIdx: number;
|
|
22
|
-
focusItem: (itemIndex: number, immediateFocus?: boolean, withKeyboard?: boolean, delay?: number) => void;
|
|
23
|
-
focusVisible: number;
|
|
24
|
-
focusIsWithinComponent: boolean;
|
|
25
|
-
onClick: (evt: ReactMouseEvent, tabIndex: number) => void;
|
|
26
|
-
onFocus: (evt: FocusEvent<HTMLElement>) => void;
|
|
27
|
-
onKeyDown: (evt: KeyboardEvent) => void;
|
|
28
|
-
onOverflowMenuClose?: PopupCloseCallback;
|
|
29
|
-
setHighlightedIdx: (highlightedIndex: number) => void;
|
|
30
|
-
}
|
|
31
|
-
export declare const useKeyboardNavigation: ({ containerRef, defaultHighlightedIdx, highlightedIdx: highlightedIdxProp, onNavigateOutOfBounds, orientation, }: ToolbarNavigationHookProps) => ToolbarNavigationHookResult;
|
|
32
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { SelectionStrategy, SpecialKeyMultipleSelection } from "@vuu-ui/vuu-ui-controls";
|
|
2
|
-
import { MouseEvent, RefObject } from "react";
|
|
3
|
-
export interface SelectionHookProps {
|
|
4
|
-
containerRef: RefObject<HTMLElement>;
|
|
5
|
-
defaultSelected?: number[];
|
|
6
|
-
highlightedIdx: number;
|
|
7
|
-
itemQuery: string;
|
|
8
|
-
onSelectionChange?: (selectedIndices: number[]) => void;
|
|
9
|
-
selected?: number[];
|
|
10
|
-
selectionStrategy: SelectionStrategy | SpecialKeyMultipleSelection;
|
|
11
|
-
}
|
|
12
|
-
export interface ItemHandlers {
|
|
13
|
-
onClick?: (e: MouseEvent, itemIndex: number) => void;
|
|
14
|
-
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
15
|
-
}
|
|
16
|
-
export interface SelectionHookResult {
|
|
17
|
-
activateItem: (tabIndex: number) => void;
|
|
18
|
-
itemHandlers: ItemHandlers;
|
|
19
|
-
isControlled: boolean;
|
|
20
|
-
selected: number[];
|
|
21
|
-
}
|
|
22
|
-
export declare const useSelection: ({ containerRef, defaultSelected, highlightedIdx, itemQuery, onSelectionChange, selected: selectedProp, selectionStrategy, }: SelectionHookProps) => SelectionHookResult;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { OverflowItem, ToolbarProps } from "@vuu-ui/vuu-layout";
|
|
2
|
-
import { PopupCloseCallback } from "@vuu-ui/vuu-popups";
|
|
3
|
-
import { KeyboardEvent, MouseEvent as ReactMouseEvent, RefObject } from "react";
|
|
4
|
-
export interface ToolbarHookProps extends Pick<ToolbarProps, "activeItemIndex" | "defaultActiveItemIndex" | "onActiveChange" | "onNavigateOutOfBounds">, Required<Pick<ToolbarProps, "orientation" | "selectionStrategy">> {
|
|
5
|
-
containerRef: RefObject<HTMLElement>;
|
|
6
|
-
itemQuery?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const useToolbar: ({ activeItemIndex: activeItemIndexProp, defaultActiveItemIndex, containerRef, itemQuery, onActiveChange, onNavigateOutOfBounds, orientation, selectionStrategy, }: ToolbarHookProps) => {
|
|
9
|
-
activeItemIndex: number[];
|
|
10
|
-
focusableIdx: number;
|
|
11
|
-
focusVisible: number;
|
|
12
|
-
containerProps: {
|
|
13
|
-
onSwitchWrappedItemIntoView: (item: OverflowItem) => void;
|
|
14
|
-
onBlur: import("react").FocusEventHandler<Element>;
|
|
15
|
-
onFocus: import("react").FocusEventHandler<Element>;
|
|
16
|
-
onMouseDownCapture: import("react").MouseEventHandler<Element>;
|
|
17
|
-
onMouseLeave: import("react").MouseEventHandler<Element>;
|
|
18
|
-
PopupMenuProps: {
|
|
19
|
-
onKeyDown: (evt: KeyboardEvent) => void;
|
|
20
|
-
onMenuClose: PopupCloseCallback | undefined;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
itemProps: {
|
|
24
|
-
onClick: (evt: ReactMouseEvent<HTMLElement>) => void;
|
|
25
|
-
onFocus: (evt: import("react").FocusEvent<HTMLElement, Element>) => void;
|
|
26
|
-
onKeyDown: (evt: KeyboardEvent) => void;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ConfigWrapper';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export function XXXnormalizeStyles(layoutStyle?: {}, visualStyle?: {}): {};
|
|
2
|
-
export namespace MARGIN_STYLES {
|
|
3
|
-
const margin: boolean;
|
|
4
|
-
const marginTop: boolean;
|
|
5
|
-
const marginRight: boolean;
|
|
6
|
-
const marginBottom: boolean;
|
|
7
|
-
const marginLeft: boolean;
|
|
8
|
-
}
|
|
9
|
-
export namespace PADDING_STYLES {
|
|
10
|
-
const padding: boolean;
|
|
11
|
-
const paddingTop: boolean;
|
|
12
|
-
const paddingRight: boolean;
|
|
13
|
-
const paddingBottom: boolean;
|
|
14
|
-
const paddingLeft: boolean;
|
|
15
|
-
}
|
|
16
|
-
export namespace BORDER_STYLES {
|
|
17
|
-
const border: boolean;
|
|
18
|
-
const borderColor: boolean;
|
|
19
|
-
const borderWidth: boolean;
|
|
20
|
-
const borderTopWidth: boolean;
|
|
21
|
-
const borderRightWidth: boolean;
|
|
22
|
-
const borderBottomWidth: boolean;
|
|
23
|
-
const borderLeftWidth: boolean;
|
|
24
|
-
}
|
|
25
|
-
export function LayoutConfigurator({ height, managedStyle, onChange, style, width, }: {
|
|
26
|
-
height: any;
|
|
27
|
-
managedStyle: any;
|
|
28
|
-
onChange: any;
|
|
29
|
-
style: any;
|
|
30
|
-
width: any;
|
|
31
|
-
}): JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const getPersistentState: (id: string) => any;
|
|
2
|
-
export declare const hasPersistentState: (id: string) => boolean;
|
|
3
|
-
export declare const setPersistentState: (id: string, value: any) => Map<string, any>;
|
|
4
|
-
export declare const usePersistentState: () => {
|
|
5
|
-
loadSessionState: (id: any, key: any) => any;
|
|
6
|
-
loadState: (id: string, key?: string) => any;
|
|
7
|
-
saveSessionState: (id: any, key: any, data: any) => void;
|
|
8
|
-
saveState: (id: string, key: string | undefined, data: unknown) => void;
|
|
9
|
-
purgeState: (id: string, key?: string) => void;
|
|
10
|
-
purgeSessionState: (id: string, key?: string) => void;
|
|
11
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from "react";
|
|
2
|
-
import { LayoutJSON, LayoutModel } from "../layout-reducer";
|
|
3
|
-
/**
|
|
4
|
-
* This is a very specific function at the moment. It resolves a path of the form
|
|
5
|
-
* '#{componentid}.ACTIVE_CHILD'
|
|
6
|
-
* It allows a templated path to be resolved to a concrete path at runtime.
|
|
7
|
-
* The above pattern is used to identify a layout drop target. Further patterns
|
|
8
|
-
* will be added if needed.
|
|
9
|
-
*/
|
|
10
|
-
export declare const resolvePath: (source: ReactElement, path?: string) => string;
|
|
11
|
-
/**
|
|
12
|
-
* Similar to resolvePath but operates on a JSON
|
|
13
|
-
* layout structure and returns the matching JSON node.
|
|
14
|
-
*/
|
|
15
|
-
export declare const resolveJSONPath: (source: LayoutJSON, path?: string) => LayoutJSON | undefined;
|
|
16
|
-
export declare function followPathToParent(source: ReactElement, path: string): ReactElement | null;
|
|
17
|
-
export declare function findTarget(source: LayoutModel, test: (props: any) => boolean): LayoutModel | undefined;
|
|
18
|
-
export declare function containerOf(source: LayoutModel, target: LayoutModel): LayoutModel | null;
|
|
19
|
-
export declare const getChild: (children: ReactElement[], idx: number) => ReactElement | undefined;
|
|
20
|
-
export declare function followPathToComponent(component: ReactElement, path: string): React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
21
|
-
export declare function followPath(source: LayoutModel, path: string): LayoutModel | undefined;
|
|
22
|
-
export declare function followPath(source: ReactElement, path: string, throwIfNotFound: true): ReactElement;
|
|
23
|
-
export declare function nextLeaf(root: ReactElement, path: string): any;
|
|
24
|
-
export declare function previousLeaf(root: ReactElement, path: string): any;
|
|
25
|
-
type NextStepResult = {
|
|
26
|
-
idx: number;
|
|
27
|
-
finalStep: boolean;
|
|
28
|
-
};
|
|
29
|
-
export declare function nextStep(pathSoFar: string, targetPath: string, followPathToEnd?: boolean): NextStepResult;
|
|
30
|
-
export declare function resetPath(model: ReactElement, path: string, additionalProps?: any): ReactElement;
|
|
31
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { LayoutModel } from "../layout-reducer";
|
|
3
|
-
export declare const getProp: (component: LayoutModel | undefined, propName: string) => any;
|
|
4
|
-
export declare const getProps: (component?: LayoutModel) => any;
|
|
5
|
-
export declare const getChildProp: (container: LayoutModel) => ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DependencyList, EffectCallback, ReactElement, ReactNode } from "react";
|
|
2
|
-
export declare const asReactElements: (children: ReactNode) => ReactElement[];
|
|
3
|
-
export declare const useLayoutEffectSkipFirst: (func: EffectCallback, deps: DependencyList) => void;
|
|
4
|
-
export declare const useId: (id?: string) => string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "./ColumnResizer.css";
|
|
3
|
-
export interface TableColumnResizerProps {
|
|
4
|
-
onDrag: (evt: MouseEvent, moveBy: number) => void;
|
|
5
|
-
onDragEnd: (evt: MouseEvent) => void;
|
|
6
|
-
onDragStart: (evt: React.MouseEvent) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const ColumnResizer: ({ onDrag, onDragEnd, onDragStart, }: TableColumnResizerProps) => JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import "./DragVisualizer.css";
|
|
3
|
-
export declare const useListViz: () => unknown;
|
|
4
|
-
export interface DragVisualizerProps {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
orientation?: "vertical" | "horizontal";
|
|
7
|
-
}
|
|
8
|
-
export declare const DragVisualizer: React.FC<DragVisualizerProps>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TableImplementationProps } from "./dataTableTypes";
|
|
3
|
-
import "./RowBasedTable.css";
|
|
4
|
-
export declare const RowBasedTable: ({ columns, columnsWithinViewport, data, getRowOffset, headings, onColumnResize, onHeaderCellDragStart, onContextMenu, onRemoveColumnFromGroupBy, onRowClick, onSort, onToggleGroup, tableId, virtualColSpan, rowCount, }: TableImplementationProps) => JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnSort } from "@vuu-ui/vuu-datagrid-types";
|
|
3
|
-
import "./SortIndicator.css";
|
|
4
|
-
export interface SortIndicatorProps {
|
|
5
|
-
sorted?: ColumnSort;
|
|
6
|
-
}
|
|
7
|
-
export declare const SortIndicator: ({ sorted }: SortIndicatorProps) => JSX.Element | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TableProps } from "./dataTableTypes";
|
|
3
|
-
import "./Table.css";
|
|
4
|
-
import "./Table-loading.css";
|
|
5
|
-
export interface TablePropsDeprecated extends Omit<TableProps, "height" | "width"> {
|
|
6
|
-
height?: number;
|
|
7
|
-
width?: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const Table: ({ allowConfigEditing: showSettings, className: classNameProp, config, dataSource, headerHeight, height, id: idProp, onConfigChange, onFeatureEnabled, onFeatureInvocation, onSelect, onSelectionChange, onShowConfigEditor: onShowSettings, renderBufferSize, rowHeight, selectionModel, style: styleProp, width, ...htmlAttributes }: TablePropsDeprecated) => JSX.Element;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TableCellProps } from "@vuu-ui/vuu-datagrid-types";
|
|
3
|
-
import "./TableCell.css";
|
|
4
|
-
export declare const TableCell: import("react").MemoExoticComponent<({ className: classNameProp, column, columnMap, onClick, row, }: TableCellProps) => JSX.Element>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
import { TableHeaderCellProps } from "./TableHeaderCell";
|
|
3
|
-
import { GroupColumnDescriptor, KeyedColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
|
|
4
|
-
import "./TableGroupHeaderCell.css";
|
|
5
|
-
export interface ColHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "onClick"> {
|
|
6
|
-
column: KeyedColumnDescriptor;
|
|
7
|
-
onRemove?: (column?: KeyedColumnDescriptor) => void;
|
|
8
|
-
}
|
|
9
|
-
export interface TableGroupHeaderCellProps extends Omit<TableHeaderCellProps, "onDragStart" | "onDrag" | "onDragEnd"> {
|
|
10
|
-
column: GroupColumnDescriptor;
|
|
11
|
-
onRemoveColumn?: (column?: KeyedColumnDescriptor) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const TableGroupHeaderCell: ({ column: groupColumn, className: classNameProp, onRemoveColumn, onResize, ...props }: TableGroupHeaderCellProps) => JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { KeyedColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
|
|
2
|
-
import { HTMLAttributes, MouseEvent } from "react";
|
|
3
|
-
import { TableColumnResizeHandler } from "./dataTableTypes";
|
|
4
|
-
import "./TableHeaderCell.css";
|
|
5
|
-
export interface TableHeaderCellProps extends HTMLAttributes<HTMLTableCellElement> {
|
|
6
|
-
column: KeyedColumnDescriptor;
|
|
7
|
-
debugString?: string;
|
|
8
|
-
onDragStart?: (evt: MouseEvent) => void;
|
|
9
|
-
onResize?: TableColumnResizeHandler;
|
|
10
|
-
}
|
|
11
|
-
export declare const TableHeaderCell: ({ column, className: classNameProp, onClick, onDragStart, onResize, ...props }: TableHeaderCellProps) => JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DataSourceRow } from "@vuu-ui/vuu-data-types";
|
|
2
|
-
import { KeyedColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
|
|
3
|
-
import { ColumnMap } from "@vuu-ui/vuu-utils";
|
|
4
|
-
import { HTMLAttributes } from "react";
|
|
5
|
-
import { RowClickHandler } from "./dataTableTypes";
|
|
6
|
-
import "./TableRow.css";
|
|
7
|
-
export interface RowProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "onClick"> {
|
|
8
|
-
columnMap: ColumnMap;
|
|
9
|
-
columns: KeyedColumnDescriptor[];
|
|
10
|
-
offset: number;
|
|
11
|
-
onClick?: RowClickHandler;
|
|
12
|
-
onToggleGroup?: (row: DataSourceRow, column: KeyedColumnDescriptor) => void;
|
|
13
|
-
row: DataSourceRow;
|
|
14
|
-
virtualColSpan?: number;
|
|
15
|
-
}
|
|
16
|
-
export declare const TableRow: import("react").NamedExoticComponent<RowProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./json-cell";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./JsonCell.css";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./JsonCell";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DataSource } from "@vuu-ui/vuu-data";
|
|
2
|
-
import { KeyedColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
|
|
3
|
-
import { Filter } from "@vuu-ui/vuu-filter-types";
|
|
4
|
-
import { VuuFilter } from "@vuu-ui/vuu-protocol-types";
|
|
5
|
-
import { MenuActionHandler } from "@vuu-ui/vuu-data-types";
|
|
6
|
-
import { PersistentColumnAction } from "../useTableModel";
|
|
7
|
-
export interface ContextMenuOptions {
|
|
8
|
-
column?: KeyedColumnDescriptor;
|
|
9
|
-
filter?: Filter;
|
|
10
|
-
sort?: VuuFilter;
|
|
11
|
-
}
|
|
12
|
-
export interface ContextMenuHookProps {
|
|
13
|
-
dataSource?: DataSource;
|
|
14
|
-
onPersistentColumnOperation: (action: PersistentColumnAction) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const useTableContextMenu: ({ dataSource, onPersistentColumnOperation, }: ContextMenuHookProps) => MenuActionHandler;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { DataSource, SchemaColumn, VuuFeatureInvocationMessage, VuuFeatureMessage } from "@vuu-ui/vuu-data";
|
|
2
|
-
import { DataSourceRow } from "@vuu-ui/vuu-data-types";
|
|
3
|
-
import { KeyedColumnDescriptor, SelectionChangeHandler, TableConfig, TableHeadings, TableSelectionModel } from "@vuu-ui/vuu-datagrid-types";
|
|
4
|
-
import { VuuDataRow } from "@vuu-ui/vuu-protocol-types";
|
|
5
|
-
import { MeasuredContainerProps } from "packages/vuu-layout/src";
|
|
6
|
-
import { FC, MouseEvent } from "react";
|
|
7
|
-
import { RowProps } from "../table-next/Row";
|
|
8
|
-
export type TableRowClickHandler = (row: VuuDataRow) => void;
|
|
9
|
-
export type TableRowSelectHandler = (row: DataSourceRow) => void;
|
|
10
|
-
export type TableNavigationStyle = "none" | "cell" | "row";
|
|
11
|
-
export interface TableProps extends Omit<MeasuredContainerProps, "onSelect"> {
|
|
12
|
-
Row?: FC<RowProps>;
|
|
13
|
-
allowConfigEditing?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* required if a fully featured column picker is to be available
|
|
16
|
-
*/
|
|
17
|
-
availableColumns?: SchemaColumn[];
|
|
18
|
-
config: TableConfig;
|
|
19
|
-
dataSource: DataSource;
|
|
20
|
-
headerHeight?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Defined how focus navigation within data cells will be handled by table.
|
|
23
|
-
* Default is cell.
|
|
24
|
-
*/
|
|
25
|
-
navigationStyle?: TableNavigationStyle;
|
|
26
|
-
/**
|
|
27
|
-
* required if a fully featured column picker is to be available.
|
|
28
|
-
* Available columns can be changed by the addition or removal of
|
|
29
|
-
* one or more calculated columns.
|
|
30
|
-
*/
|
|
31
|
-
onAvailableColumnsChange?: (columns: SchemaColumn[]) => void;
|
|
32
|
-
/**
|
|
33
|
-
* This callback will be invoked any time a config attribute of TableConfig
|
|
34
|
-
* is changed. By persisting this value and providing it to the Table as a
|
|
35
|
-
* prop, table state can be persisted across sessions.
|
|
36
|
-
*/
|
|
37
|
-
onConfigChange?: (config: TableConfig) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Features like context menu actions and visual links are enabled by the Vuu server.
|
|
40
|
-
* This callback allows us to receive a notification when such a feature is available.
|
|
41
|
-
* The options provided must then be used to configure appropriate UI affordances.
|
|
42
|
-
*/
|
|
43
|
-
onFeatureEnabled?: (message: VuuFeatureMessage) => void;
|
|
44
|
-
/**
|
|
45
|
-
* When a Vuu feature e.g. context menu action, has been invoked, the Vuu server
|
|
46
|
-
* response must be handled. This callback provides that response.
|
|
47
|
-
*/
|
|
48
|
-
onFeatureInvocation?: (message: VuuFeatureInvocationMessage) => void;
|
|
49
|
-
/**
|
|
50
|
-
* callback invoked when user 'clicks' a table row. CLick triggered either
|
|
51
|
-
* via mouse click or keyboard (default ENTER);
|
|
52
|
-
*/
|
|
53
|
-
onRowClick?: TableRowClickHandler;
|
|
54
|
-
onShowConfigEditor?: () => void;
|
|
55
|
-
onSelect?: TableRowSelectHandler;
|
|
56
|
-
onSelectionChange?: SelectionChangeHandler;
|
|
57
|
-
renderBufferSize?: number;
|
|
58
|
-
rowHeight?: number;
|
|
59
|
-
/**
|
|
60
|
-
* Selection Bookends style the left and right edge of a selection block.
|
|
61
|
-
* They are optional, value defaults to zero.
|
|
62
|
-
* TODO this should just live in CSS
|
|
63
|
-
*/
|
|
64
|
-
selectionBookendWidth?: number;
|
|
65
|
-
selectionModel?: TableSelectionModel;
|
|
66
|
-
/**
|
|
67
|
-
* if false, table rendered without headers. Useful when table is being included in a
|
|
68
|
-
* composite component.
|
|
69
|
-
*/
|
|
70
|
-
showColumnHeaders?: boolean;
|
|
71
|
-
}
|
|
72
|
-
export type TableColumnResizeHandler = (phase: "begin" | "resize" | "end", columnName: string, width?: number) => void;
|
|
73
|
-
export interface TableImplementationProps {
|
|
74
|
-
columns: KeyedColumnDescriptor[];
|
|
75
|
-
columnsWithinViewport: KeyedColumnDescriptor[];
|
|
76
|
-
data: DataSourceRow[];
|
|
77
|
-
getRowOffset: (row: DataSourceRow) => number;
|
|
78
|
-
headerHeight: number;
|
|
79
|
-
headings: TableHeadings;
|
|
80
|
-
onColumnResize?: TableColumnResizeHandler;
|
|
81
|
-
onHeaderCellDragEnd?: () => void;
|
|
82
|
-
onHeaderCellDragStart?: (evt: MouseEvent) => void;
|
|
83
|
-
onContextMenu?: (evt: MouseEvent<HTMLElement>) => void;
|
|
84
|
-
onRemoveColumnFromGroupBy?: (column?: KeyedColumnDescriptor) => void;
|
|
85
|
-
onRowClick?: RowClickHandler;
|
|
86
|
-
onSort: (column: KeyedColumnDescriptor, isAdditive: boolean) => void;
|
|
87
|
-
onToggleGroup?: (row: DataSourceRow, column: KeyedColumnDescriptor) => void;
|
|
88
|
-
tableId: string;
|
|
89
|
-
virtualColSpan?: number;
|
|
90
|
-
rowCount: number;
|
|
91
|
-
}
|
|
92
|
-
type MeasureStatus = "unmeasured" | "measured";
|
|
93
|
-
export interface TableMeasurements {
|
|
94
|
-
contentHeight: number;
|
|
95
|
-
left: number;
|
|
96
|
-
right: number;
|
|
97
|
-
scrollbarSize: number;
|
|
98
|
-
scrollContentHeight: number;
|
|
99
|
-
status: MeasureStatus;
|
|
100
|
-
top: number;
|
|
101
|
-
}
|
|
102
|
-
export interface Viewport {
|
|
103
|
-
maxScrollContainerScrollHorizontal: number;
|
|
104
|
-
maxScrollContainerScrollVertical: number;
|
|
105
|
-
pinnedWidthLeft: number;
|
|
106
|
-
rowCount: number;
|
|
107
|
-
}
|
|
108
|
-
export type RowClickHandler = (row: DataSourceRow, rangeSelect: boolean, keepExistingSelection: boolean) => void;
|
|
109
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { KeyedColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
|
|
2
|
-
import { Filter } from "@vuu-ui/vuu-filter-types";
|
|
3
|
-
import { HTMLAttributes } from "react";
|
|
4
|
-
import "./filter-indicator.css";
|
|
5
|
-
export declare const Direction: {
|
|
6
|
-
ASC: string;
|
|
7
|
-
DSC: string;
|
|
8
|
-
};
|
|
9
|
-
export interface FilterIndicatorProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
|
-
column: KeyedColumnDescriptor;
|
|
11
|
-
filter?: Filter;
|
|
12
|
-
}
|
|
13
|
-
export declare const FilterIndicator: ({ column, filter }: FilterIndicatorProps) => JSX.Element | null;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./ColumnResizer";
|
|
2
|
-
export * from "./context-menu";
|
|
3
|
-
export * from "./dataTableTypes";
|
|
4
|
-
export * from "./Table";
|
|
5
|
-
export * from "./useMeasuredContainer";
|
|
6
|
-
export * from "./useSelection";
|
|
7
|
-
export * from "./useTableColumnResize";
|
|
8
|
-
export * from "./useTableModel";
|
|
9
|
-
export * from "../table-next/useTableViewport";
|
|
10
|
-
export * from "./cell-renderers";
|