@vuu-ui/vuu-ui-controls 0.8.10 → 0.8.11-debug
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 +8425 -6
- package/cjs/index.js.map +4 -4
- package/esm/index.js +8510 -6
- package/esm/index.js.map +4 -4
- package/index.css +1077 -1
- package/index.css.map +3 -3
- package/package.json +8 -8
- package/types/combo-box/ComboBox.d.ts +19 -0
- package/types/combo-box/useCombobox.d.ts +25 -0
- package/types/{vuu-ui-controls/src/common-hooks → common-hooks}/collectionTypes.d.ts +4 -4
- package/types/{vuu-ui-controls/src/common-hooks → common-hooks}/navigationTypes.d.ts +2 -3
- package/types/{vuu-ui-controls/src/common-hooks → common-hooks}/selectionTypes.d.ts +30 -14
- package/types/common-hooks/useSelection.d.ts +8 -0
- package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/drop-target-utils.d.ts +6 -6
- package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/useDragDisplacers.d.ts +2 -2
- package/types/dropdown/Dropdown.d.ts +10 -0
- package/types/{vuu-ui-controls/src/dropdown → dropdown}/dropdownTypes.d.ts +9 -4
- package/types/{vuu-ui-controls/src/dropdown → dropdown}/useClickAway.d.ts +2 -1
- package/types/dropdown/useDropdown.d.ts +13 -0
- package/types/{vuu-ui-controls/src/index.d.ts → index.d.ts} +1 -0
- package/types/instrument-picker/InstrumentPicker.d.ts +16 -0
- package/types/instrument-picker/index.d.ts +1 -0
- package/types/{vuu-ui-controls/src/instrument-search → instrument-picker}/useDataSource.d.ts +1 -1
- package/types/instrument-picker/useInstrumentPicker.d.ts +24 -0
- package/types/instrument-search/SearchCell.d.ts +4 -0
- package/types/instrument-search/moving-window.d.ts +14 -0
- package/types/instrument-search/useDataSource.d.ts +7 -0
- package/types/list/List.d.ts +7 -0
- package/types/list/common-hooks/useKeyboardNavigation.d.ts +3 -0
- package/types/list/common-hooks/utils/isSelected.d.ts +2 -0
- package/types/{vuu-ui-controls/src/list → list}/listTypes.d.ts +6 -12
- package/types/list/useList.d.ts +3 -0
- package/types/list/useListDrop.d.ts +15 -0
- package/types/{vuu-ui-controls/src/tabstrip → tabstrip}/Tab.d.ts +1 -1
- package/types/{vuu-ui-controls/src/tabstrip → tabstrip}/TabMenuOptions.d.ts +1 -1
- package/types/{vuu-ui-controls/src/tabstrip → tabstrip}/TabsTypes.d.ts +1 -1
- package/types/vuu-input/VuuInput.d.ts +13 -0
- package/LICENSE +0 -201
- package/types/vuu-popups/src/dialog/Dialog.d.ts +0 -8
- package/types/vuu-popups/src/dialog/index.d.ts +0 -1
- package/types/vuu-popups/src/index.d.ts +0 -8
- package/types/vuu-popups/src/menu/ContextMenu.d.ts +0 -16
- package/types/vuu-popups/src/menu/MenuList.d.ts +0 -43
- package/types/vuu-popups/src/menu/context-menu-provider.d.ts +0 -10
- package/types/vuu-popups/src/menu/index.d.ts +0 -4
- package/types/vuu-popups/src/menu/key-code.d.ts +0 -12
- package/types/vuu-popups/src/menu/list-dom-utils.d.ts +0 -4
- package/types/vuu-popups/src/menu/use-cascade.d.ts +0 -25
- package/types/vuu-popups/src/menu/use-items-with-ids-next.d.ts +0 -13
- package/types/vuu-popups/src/menu/use-keyboard-navigation.d.ts +0 -27
- package/types/vuu-popups/src/menu/useContextMenu.d.ts +0 -20
- package/types/vuu-popups/src/menu/utils.d.ts +0 -2
- package/types/vuu-popups/src/popup/Popup.d.ts +0 -10
- package/types/vuu-popups/src/popup/index.d.ts +0 -3
- package/types/vuu-popups/src/popup/popup-service.d.ts +0 -59
- package/types/vuu-popups/src/popup/useAnchoredPosition.d.ts +0 -12
- package/types/vuu-popups/src/popup-menu/PopupMenu.d.ts +0 -16
- package/types/vuu-popups/src/popup-menu/index.d.ts +0 -1
- package/types/vuu-popups/src/portal/Portal.d.ts +0 -30
- package/types/vuu-popups/src/portal/index.d.ts +0 -1
- package/types/vuu-popups/src/portal-deprecated/PortalDeprecated.d.ts +0 -8
- package/types/vuu-popups/src/portal-deprecated/index.d.ts +0 -3
- package/types/vuu-popups/src/portal-deprecated/portal-utils.d.ts +0 -1
- package/types/vuu-popups/src/portal-deprecated/render-portal.d.ts +0 -10
- package/types/vuu-popups/src/prompt/Prompt.d.ts +0 -14
- package/types/vuu-popups/src/prompt/index.d.ts +0 -1
- package/types/vuu-popups/src/tooltip/Tooltip.d.ts +0 -12
- package/types/vuu-popups/src/tooltip/index.d.ts +0 -2
- package/types/vuu-popups/src/tooltip/useAnchoredPosition.d.ts +0 -12
- package/types/vuu-popups/src/tooltip/useTooltip.d.ts +0 -16
- package/types/vuu-ui-controls/src/combo-box/ComboBox.d.ts +0 -18
- package/types/vuu-ui-controls/src/combo-box/useCombobox.d.ts +0 -22
- package/types/vuu-ui-controls/src/common-hooks/useSelection.d.ts +0 -8
- package/types/vuu-ui-controls/src/dropdown/Dropdown.d.ts +0 -10
- package/types/vuu-ui-controls/src/dropdown/useDropdown.d.ts +0 -13
- package/types/vuu-ui-controls/src/list/List.d.ts +0 -7
- package/types/vuu-ui-controls/src/list/common-hooks/useKeyboardNavigation.d.ts +0 -3
- package/types/vuu-ui-controls/src/list/common-hooks/utils/isSelected.d.ts +0 -2
- package/types/vuu-ui-controls/src/list/useList.d.ts +0 -3
- package/types/vuu-ui-controls/src/vuu-input/VuuInput.d.ts +0 -10
- package/types/vuu-utils/src/DataWindow.d.ts +0 -39
- package/types/vuu-utils/src/array-utils.d.ts +0 -6
- package/types/vuu-utils/src/box-utils.d.ts +0 -9
- package/types/vuu-utils/src/column-utils.d.ts +0 -130
- package/types/vuu-utils/src/common-types.d.ts +0 -6
- package/types/vuu-utils/src/component-registry.d.ts +0 -23
- package/types/vuu-utils/src/cookie-utils.d.ts +0 -1
- package/types/vuu-utils/src/data-utils.d.ts +0 -14
- package/types/vuu-utils/src/date-utils.d.ts +0 -7
- package/types/vuu-utils/src/debug-utils.d.ts +0 -9
- package/types/vuu-utils/src/event-emitter.d.ts +0 -13
- package/types/vuu-utils/src/filter-utils.d.ts +0 -14
- package/types/vuu-utils/src/formatting-utils.d.ts +0 -9
- package/types/vuu-utils/src/getUniqueId.d.ts +0 -1
- package/types/vuu-utils/src/group-utils.d.ts +0 -3
- package/types/vuu-utils/src/html-utils.d.ts +0 -12
- package/types/vuu-utils/src/index.d.ts +0 -34
- package/types/vuu-utils/src/input-utils.d.ts +0 -2
- package/types/vuu-utils/src/invariant.d.ts +0 -1
- package/types/vuu-utils/src/itemToString.d.ts +0 -2
- package/types/vuu-utils/src/json-utils.d.ts +0 -6
- package/types/vuu-utils/src/keyboard-utils.d.ts +0 -12
- package/types/vuu-utils/src/keyset.d.ts +0 -11
- package/types/vuu-utils/src/logging-utils.d.ts +0 -44
- package/types/vuu-utils/src/menu-utils.d.ts +0 -2
- package/types/vuu-utils/src/nanoid/index.d.ts +0 -1
- package/types/vuu-utils/src/perf-utils.d.ts +0 -5
- package/types/vuu-utils/src/range-utils.d.ts +0 -24
- package/types/vuu-utils/src/round-decimal.d.ts +0 -1
- package/types/vuu-utils/src/row-utils.d.ts +0 -7
- package/types/vuu-utils/src/screenshot-utils.d.ts +0 -6
- package/types/vuu-utils/src/selection-utils.d.ts +0 -27
- package/types/vuu-utils/src/sort-utils.d.ts +0 -5
- package/types/vuu-utils/src/text-utils.d.ts +0 -2
- package/types/vuu-utils/src/url-utils.d.ts +0 -2
- /package/types/{vuu-ui-controls/src/combo-box → combo-box}/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/common-hooks → common-hooks}/collectionProvider.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/common-hooks → common-hooks}/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/common-hooks → common-hooks}/itemToString.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/common-hooks → common-hooks}/use-resize-observer.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/common-hooks → common-hooks}/useCollectionItems.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/common-hooks → common-hooks}/useControlled.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/DragDropProvider.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/DragDropState.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/Draggable.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/DropIndicator.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/dragDropTypesNext.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/useAutoScroll.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/useDragDropIndicator.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/useDragDropNaturalMovementNext.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/useDragDropNext.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/useDropIndicator.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/useGlobalDragDrop.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/drag-drop → drag-drop}/useTransition.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/dropdown → dropdown}/DropdownBase.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/dropdown → dropdown}/DropdownButton.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/dropdown → dropdown}/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/dropdown → dropdown}/useDropdownBase.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/editable → editable}/editable-utils.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/editable → editable}/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/editable → editable}/useEditableText.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/editable-label → editable-label}/EditableLabel.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/editable-label → editable-label}/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/expando-input → expando-input}/ExpandoInput.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/expando-input → expando-input}/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/inputs → inputs}/Checkbox.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/inputs → inputs}/RadioButton.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/inputs → inputs}/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/instrument-search → instrument-picker}/SearchCell.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/instrument-search → instrument-picker}/moving-window.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/instrument-search → instrument-search}/InstrumentSearch.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/instrument-search → instrument-search}/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/CheckboxIcon.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/ChevronIcon.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/Highlighter.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/ListItem.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/ListItemGroup.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/ListItemHeader.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/RadioIcon.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/VirtualizedList.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/common-hooks/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/common-hooks/keyUtils.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/common-hooks/list-dom-utils.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/common-hooks/useCollapsibleGroups.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/common-hooks/useImperativeScrollingAPI.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/common-hooks/useTypeahead.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/common-hooks/useViewportTracking.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/common-hooks/utils/collection-item-utils.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/common-hooks/utils/filter-utils.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/common-hooks/utils/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/keyset.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/useListHeight.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/useScrollPosition.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/list → list}/useVirtualization.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/price-ticker → price-ticker}/PriceTicker.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/price-ticker → price-ticker}/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tabstrip → tabstrip}/TabMenu.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tabstrip → tabstrip}/Tabstrip.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tabstrip → tabstrip}/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tabstrip → tabstrip}/tabstrip-dom-utils.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tabstrip → tabstrip}/useAnimatedSelectionThumb.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tabstrip → tabstrip}/useKeyboardNavigation.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tabstrip → tabstrip}/useSelection.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tabstrip → tabstrip}/useTabstrip.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tree → tree}/Tree.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tree → tree}/hierarchical-data-utils.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tree → tree}/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tree → tree}/key-code.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tree → tree}/list-dom-utils.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tree → tree}/use-collapsible-groups.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tree → tree}/use-hierarchical-data.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tree → tree}/use-items-with-ids.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tree → tree}/use-keyboard-navigation.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tree → tree}/use-selection.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tree → tree}/use-tree-keyboard-navigation.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tree → tree}/use-viewport-tracking.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/tree → tree}/useTree.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/utils → utils}/escapeRegExp.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/utils → utils}/forwardCallbackProps.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/utils → utils}/index.d.ts +0 -0
- /package/types/{vuu-ui-controls/src/vuu-input → vuu-input}/index.d.ts +0 -0
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
|
-
import { PopupPlacement } from "./Popup";
|
|
3
|
-
export interface AnchoredPositionHookProps {
|
|
4
|
-
anchorElement: RefObject<HTMLElement>;
|
|
5
|
-
offsetLeft?: number;
|
|
6
|
-
offsetTop?: number;
|
|
7
|
-
placement: PopupPlacement;
|
|
8
|
-
}
|
|
9
|
-
export declare const useAnchoredPosition: ({ anchorElement, offsetLeft, offsetTop, placement, }: AnchoredPositionHookProps) => {
|
|
10
|
-
left: number;
|
|
11
|
-
top: number;
|
|
12
|
-
} | undefined;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
import { PopupCloseReason } from "@vuu-ui/vuu-popups";
|
|
3
|
-
import "./PopupMenu.css";
|
|
4
|
-
import { MenuActionHandler, MenuBuilder } from "@vuu-ui/vuu-data-types";
|
|
5
|
-
export interface PopupMenuProps extends HTMLAttributes<HTMLButtonElement> {
|
|
6
|
-
icon?: string;
|
|
7
|
-
label?: string;
|
|
8
|
-
menuActionHandler?: MenuActionHandler;
|
|
9
|
-
menuBuilder?: MenuBuilder;
|
|
10
|
-
menuLocation?: string;
|
|
11
|
-
menuOptions?: {
|
|
12
|
-
[key: string]: unknown;
|
|
13
|
-
};
|
|
14
|
-
onMenuClose?: (reason?: PopupCloseReason) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const PopupMenu: ({ className, label, icon, id: idProp, menuActionHandler, menuBuilder, menuLocation, menuOptions, onMenuClose, tabIndex, ...htmlAttributes }: PopupMenuProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./PopupMenu";
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import "./Portal.css";
|
|
3
|
-
export interface PortalProps {
|
|
4
|
-
/**
|
|
5
|
-
* The children to render into the `container`.
|
|
6
|
-
*/
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* An HTML element, component instance, or function that returns either.
|
|
10
|
-
* The `container` will have the portal children appended to it.
|
|
11
|
-
*
|
|
12
|
-
* By default, it uses the body of the top-level document object,
|
|
13
|
-
* so it's simply `document.body` most of the time.
|
|
14
|
-
*/
|
|
15
|
-
container?: Element | (() => Element | null) | null;
|
|
16
|
-
/**
|
|
17
|
-
* If this node does not exist on the document, it will be created for you.
|
|
18
|
-
*/
|
|
19
|
-
id?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Allow conditional rendering of this Portal, if false, will render nothing.
|
|
22
|
-
* Defaults to true
|
|
23
|
-
*/
|
|
24
|
-
open?: boolean;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Portals provide a first-class way to render children into a DOM node
|
|
28
|
-
* that exists outside the DOM hierarchy of the parent component.
|
|
29
|
-
*/
|
|
30
|
-
export declare const Portal: ({ children, container: containerProp, id, open, }: PortalProps) => import("react").ReactPortal | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Portal";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
export interface PortalDeprecatedProps {
|
|
3
|
-
children: ReactElement;
|
|
4
|
-
onRender?: () => void;
|
|
5
|
-
x?: number;
|
|
6
|
-
y?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const PortalDeprecated: ({ children, x, y, onRender, }: PortalDeprecatedProps) => null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const installTheme: (themeId: string) => void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
export interface HTMLContainerProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
dataMode?: string;
|
|
5
|
-
x?: number;
|
|
6
|
-
y?: number;
|
|
7
|
-
win?: typeof globalThis;
|
|
8
|
-
}
|
|
9
|
-
export declare const createContainer: (props: HTMLContainerProps) => HTMLDivElement;
|
|
10
|
-
export declare const renderPortal: (component: ReactElement, container: HTMLElement, x: number, y: number, onRender?: () => void) => void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
import { PopupComponentProps } from "../popup";
|
|
3
|
-
import "./Prompt.css";
|
|
4
|
-
export interface PromptProps extends HTMLAttributes<HTMLDialogElement> {
|
|
5
|
-
PopupProps?: Partial<PopupComponentProps>;
|
|
6
|
-
cancelButtonLabel?: string;
|
|
7
|
-
confirmButtonLabel?: string;
|
|
8
|
-
onCancel: () => void;
|
|
9
|
-
onConfirm: () => void;
|
|
10
|
-
icon?: string;
|
|
11
|
-
text: string;
|
|
12
|
-
variant?: "warn" | "error" | "info";
|
|
13
|
-
}
|
|
14
|
-
export declare const Prompt: ({ PopupProps, cancelButtonLabel, confirmButtonLabel, icon, onCancel, onConfirm, style, text, title, variant, ...htmlAttributes }: PromptProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Prompt";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MouseEventHandler, ReactNode, RefObject } from "react";
|
|
2
|
-
import { TooltipPlacement } from "./useAnchoredPosition";
|
|
3
|
-
import "./Tooltip.css";
|
|
4
|
-
export interface TooltipProps {
|
|
5
|
-
anchorElement: RefObject<HTMLElement>;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
id?: string;
|
|
8
|
-
onMouseEnter: MouseEventHandler;
|
|
9
|
-
onMouseLeave: MouseEventHandler;
|
|
10
|
-
placement: TooltipPlacement;
|
|
11
|
-
}
|
|
12
|
-
export declare const Tooltip: ({ anchorElement, children, id, onMouseEnter, onMouseLeave, placement, }: TooltipProps) => JSX.Element | null;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
|
-
export type TooltipPlacement = "above" | "right" | "below" | "left";
|
|
3
|
-
export interface AnchoredPositionHookProps {
|
|
4
|
-
anchorElement: RefObject<HTMLElement>;
|
|
5
|
-
offsetLeft?: number;
|
|
6
|
-
offsetTop?: number;
|
|
7
|
-
placement: TooltipPlacement;
|
|
8
|
-
}
|
|
9
|
-
export declare const useAnchoredPosition: ({ anchorElement, offsetLeft, offsetTop, placement, }: AnchoredPositionHookProps) => {
|
|
10
|
-
left: number;
|
|
11
|
-
top: number;
|
|
12
|
-
} | undefined;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ReactNode } from "react";
|
|
2
|
-
import { TooltipProps } from "./Tooltip";
|
|
3
|
-
import { TooltipPlacement } from "./useAnchoredPosition";
|
|
4
|
-
export interface TooltipHookProps {
|
|
5
|
-
id: string;
|
|
6
|
-
placement?: TooltipPlacement;
|
|
7
|
-
tooltipContent: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export declare const useTooltip: ({ id: idProp, placement, tooltipContent, }: TooltipHookProps) => {
|
|
10
|
-
anchorProps: {
|
|
11
|
-
"aria-describedby": string;
|
|
12
|
-
onMouseEnter: (evt: MouseEvent) => void;
|
|
13
|
-
onMouseLeave: () => void;
|
|
14
|
-
};
|
|
15
|
-
tooltipProps: TooltipProps | undefined;
|
|
16
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { InputProps } from "@salt-ds/core";
|
|
2
|
-
import { ForwardedRef, ReactElement } from "react";
|
|
3
|
-
import { SelectionProps, SelectionStrategy } from "../common-hooks";
|
|
4
|
-
import { DropdownBaseProps } from "../dropdown";
|
|
5
|
-
import { ListProps } from "../list";
|
|
6
|
-
export interface ComboBoxProps<Item = string, Selection extends SelectionStrategy = "default"> extends Omit<DropdownBaseProps, "triggerComponent" | "onBlur" | "onChange" | "onFocus">, Pick<InputProps, "onBlur" | "onChange" | "onFocus" | "onSelect">, Pick<ListProps<Item, Selection>, "ListItem" | "itemToString" | "source" | "width">, Pick<SelectionProps<Item, Selection>, "onSelectionChange" | "selectionStrategy"> {
|
|
7
|
-
InputProps?: InputProps;
|
|
8
|
-
ListProps?: Omit<ListProps<Item, Selection>, "ListItem" | "itemToString" | "source">;
|
|
9
|
-
allowFreeText?: boolean;
|
|
10
|
-
defaultValue?: string;
|
|
11
|
-
getFilterRegex?: (inputValue: string) => RegExp;
|
|
12
|
-
initialHighlightedIndex?: number;
|
|
13
|
-
stringToItem?: (value?: string) => Item | null | undefined;
|
|
14
|
-
value?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const ComboBox: <Item, Selection_1 extends SelectionStrategy = "default">(props: ComboBoxProps<Item, Selection_1> & {
|
|
17
|
-
ref?: ForwardedRef<HTMLDivElement> | undefined;
|
|
18
|
-
}) => ReactElement<ComboBoxProps<Item, Selection_1>, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { InputProps } from "@salt-ds/core";
|
|
2
|
-
import { RefObject } from "react";
|
|
3
|
-
import { SelectionStrategy } from "../common-hooks";
|
|
4
|
-
import { DropdownHookProps, DropdownHookResult } from "../dropdown";
|
|
5
|
-
import { ListHookProps, ListHookResult } from "../list";
|
|
6
|
-
export interface ComboboxHookProps<Item, Strategy extends SelectionStrategy> extends Partial<Omit<DropdownHookProps, "id" | "onKeyDown">>, Pick<InputProps, "onBlur" | "onChange" | "onFocus" | "onSelect">, Omit<ListHookProps<Item, Strategy>, "containerRef" | "defaultSelected" | "selected" | "onSelect"> {
|
|
7
|
-
InputProps?: InputProps;
|
|
8
|
-
allowFreeText?: boolean;
|
|
9
|
-
ariaLabel?: string;
|
|
10
|
-
defaultValue?: string;
|
|
11
|
-
id: string;
|
|
12
|
-
initialHighlightedIndex?: number;
|
|
13
|
-
itemToString?: (item: Item) => string;
|
|
14
|
-
listRef: RefObject<HTMLDivElement>;
|
|
15
|
-
stringToItem?: (value?: string) => Item | null | undefined;
|
|
16
|
-
value?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface ComboboxHookResult<Item, Selection extends SelectionStrategy> extends Pick<ListHookResult<Item, Selection>, "focusVisible" | "highlightedIndex" | "listControlProps" | "listHandlers" | "selected">, Partial<DropdownHookResult> {
|
|
19
|
-
inputProps: InputProps;
|
|
20
|
-
onOpenChange: (isOpen: boolean) => void;
|
|
21
|
-
}
|
|
22
|
-
export declare const useCombobox: <Item, Selection_1 extends SelectionStrategy = "default">({ allowFreeText, ariaLabel, collectionHook, defaultIsOpen, defaultValue, onBlur, onFocus, onChange, onSelect, id, initialHighlightedIndex, isOpen: isOpenProp, itemToString, listRef, onOpenChange, onSelectionChange, selectionStrategy, stringToItem, value: valueProp, InputProps: inputProps, }: ComboboxHookProps<Item, Selection_1>) => ComboboxHookResult<Item, Selection_1>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SelectionHookProps, SelectionHookResult, SelectionStrategy } from "./selectionTypes";
|
|
2
|
-
export declare const CHECKBOX = "checkbox";
|
|
3
|
-
export declare const GROUP_SELECTION_NONE = "none";
|
|
4
|
-
export declare const GROUP_SELECTION_SINGLE = "single";
|
|
5
|
-
export declare const GROUP_SELECTION_CASCADE = "cascade";
|
|
6
|
-
export type GroupSelectionMode = "none" | "single" | "cascade";
|
|
7
|
-
export declare const groupSelectionEnabled: (groupSelection: GroupSelectionMode) => boolean;
|
|
8
|
-
export declare const useSelection: <Selection_1 extends SelectionStrategy = "default">({ containerRef, defaultSelected, disableSelection, highlightedIdx, itemQuery, onSelect, onSelectionChange, selected: selectedProp, selectionStrategy, selectionKeys, tabToSelect, }: SelectionHookProps<Selection_1>) => SelectionHookResult<Selection_1>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ForwardedRef, ReactElement } from "react";
|
|
2
|
-
import { SelectionProps, SelectionStrategy } from "../common-hooks";
|
|
3
|
-
import { ListProps } from "../list";
|
|
4
|
-
import { DropdownBaseProps } from "./dropdownTypes";
|
|
5
|
-
export interface DropdownProps<Item = string, Selection extends SelectionStrategy = "default"> extends DropdownBaseProps, Pick<ListProps<Item, Selection>, "ListItem" | "itemToString" | "source" | "width">, SelectionProps<Item, Selection> {
|
|
6
|
-
ListProps?: Omit<ListProps<Item, Selection>, "ListItem" | "itemToString" | "source">;
|
|
7
|
-
}
|
|
8
|
-
export declare const Dropdown: <Item, Selection_1 extends SelectionStrategy = "default">(props: DropdownProps<Item, Selection_1> & {
|
|
9
|
-
ref?: ForwardedRef<HTMLDivElement> | undefined;
|
|
10
|
-
}) => ReactElement<DropdownProps<Item, Selection_1>, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
|
-
import { ListHookProps, ListHookResult } from "../list";
|
|
3
|
-
import { DropdownHookResult, DropdownHookProps } from "./dropdownTypes";
|
|
4
|
-
import { SelectionStrategy } from "../common-hooks";
|
|
5
|
-
export interface DropdownListHookProps<Item, Strategy extends SelectionStrategy> extends Partial<Omit<DropdownHookProps, "onKeyDown">>, Omit<ListHookProps<Item, Strategy>, "containerRef"> {
|
|
6
|
-
itemToString?: (item: Item) => string;
|
|
7
|
-
listRef: RefObject<HTMLDivElement>;
|
|
8
|
-
}
|
|
9
|
-
export interface DropdownListHookResult<Item, Selection extends SelectionStrategy> extends Partial<ListHookResult<Item, Selection>>, Partial<DropdownHookResult> {
|
|
10
|
-
onOpenChange: any;
|
|
11
|
-
triggerLabel?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const useDropdown: <Item, Selection_1 extends SelectionStrategy = "default">({ collectionHook, defaultHighlightedIndex: defaultHighlightedIndexProp, defaultIsOpen, defaultSelected, highlightedIndex: highlightedIndexProp, isOpen: isOpenProp, itemToString, listRef, onHighlight, onOpenChange, onSelectionChange, onSelect, selected, selectionStrategy, }: DropdownListHookProps<Item, Selection_1>) => DropdownListHookResult<Item, Selection_1>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ForwardedRef, ReactElement } from "react";
|
|
2
|
-
import { SelectionStrategy } from "../common-hooks";
|
|
3
|
-
import { ListProps } from "./listTypes";
|
|
4
|
-
import "./List.css";
|
|
5
|
-
export declare const List: <Item = string, Selection_1 extends SelectionStrategy = "default">(props: ListProps<Item, Selection_1> & {
|
|
6
|
-
ref?: ForwardedRef<HTMLDivElement> | undefined;
|
|
7
|
-
}) => ReactElement<ListProps<Item, Selection_1>, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { NavigationHookProps, NavigationHookResult, SelectionStrategy } from "../../common-hooks";
|
|
2
|
-
export declare const LIST_FOCUS_VISIBLE = -2;
|
|
3
|
-
export declare const useKeyboardNavigation: <Item, Selection_1 extends SelectionStrategy>({ containerRef, defaultHighlightedIndex, disableHighlightOnFocus, highlightedIndex: highlightedIndexProp, indexPositions, itemCount, onHighlight, onKeyboardNavigation, restoreLastFocus, selected, viewportItemCount, }: NavigationHookProps<Item, Selection_1>) => NavigationHookResult;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { SelectionStrategy } from "../common-hooks";
|
|
2
|
-
import { ListHookProps, ListHookResult } from "./listTypes";
|
|
3
|
-
export declare const useList: <Item, Selection_1 extends SelectionStrategy = "default">({ allowDragDrop, collapsibleHeaders, collectionHook: dataHook, containerRef, contentRef, defaultHighlightedIndex, defaultSelected, disabled, disableAriaActiveDescendant, disableHighlightOnFocus, disableTypeToSelect, highlightedIndex: highlightedIndexProp, id, label, listHandlers: listHandlersProp, onDragStart, onDrop, onHighlight, onKeyboardNavigation, onKeyDown, onMoveListItem, onSelect, onSelectionChange, restoreLastFocus, scrollContainerRef, selected, selectionStrategy, selectionKeys, stickyHeaders, tabToSelect, viewportRange, }: ListHookProps<Item, Selection_1>) => ListHookResult<Item, Selection_1>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InputProps } from "@salt-ds/core";
|
|
2
|
-
import { SyntheticEvent } from "react";
|
|
3
|
-
export interface VuuInputProps extends InputProps {
|
|
4
|
-
onCommit: (evt: SyntheticEvent<HTMLInputElement>) => void;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* A variant of Salt Input that provides a commit callback prop,
|
|
8
|
-
* TODO along with cancel behaviour ?
|
|
9
|
-
*/
|
|
10
|
-
export declare const VuuInput: ({ className, onCommit, onKeyDown, ...props }: VuuInputProps) => JSX.Element;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export type DataItem = string | number | boolean;
|
|
2
|
-
export type DataRow = [
|
|
3
|
-
/** index */
|
|
4
|
-
number,
|
|
5
|
-
/** render index */
|
|
6
|
-
number,
|
|
7
|
-
/** isLeaf */
|
|
8
|
-
boolean,
|
|
9
|
-
/** isExpanded */
|
|
10
|
-
boolean,
|
|
11
|
-
/** depth */
|
|
12
|
-
number,
|
|
13
|
-
/** child count */
|
|
14
|
-
number,
|
|
15
|
-
/** key */
|
|
16
|
-
string,
|
|
17
|
-
/** selected */
|
|
18
|
-
number,
|
|
19
|
-
/** data values */
|
|
20
|
-
...DataItem[]
|
|
21
|
-
];
|
|
22
|
-
export type RangeLike = {
|
|
23
|
-
from: number;
|
|
24
|
-
to: number;
|
|
25
|
-
};
|
|
26
|
-
export declare class DataWindow {
|
|
27
|
-
private range;
|
|
28
|
-
data: DataRow[];
|
|
29
|
-
rowCount: number;
|
|
30
|
-
constructor({ from, to }: RangeLike);
|
|
31
|
-
setRowCount: (rowCount: number) => void;
|
|
32
|
-
add(data: DataRow): boolean;
|
|
33
|
-
getAtIndex(index: number): DataRow | undefined;
|
|
34
|
-
getByKey(key: string): DataRow | undefined;
|
|
35
|
-
isWithinRange(index: number): boolean;
|
|
36
|
-
setRange(from: number, to: number): void;
|
|
37
|
-
hasData(from: number, to: number): boolean;
|
|
38
|
-
getData(from: number, to: number): any[];
|
|
39
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type PartitionTest<T> = (value: T, index: number) => boolean;
|
|
2
|
-
export declare function partition<T>(array: T[], test: PartitionTest<T>, pass?: T[], fail?: T[]): [T[], T[]];
|
|
3
|
-
export declare function itemsChanged<T = unknown>(currentItems: T[], newItems: T[], identityProperty?: string): boolean;
|
|
4
|
-
export declare function itemsOrOrderChanged<T = unknown>(currentItems: T[], newItems: T[], identityProperty?: string): boolean;
|
|
5
|
-
export declare const moveItemDeprecated: <T = unknown>(items: T[], item: T, moveTo: number) => T[];
|
|
6
|
-
export declare const moveItem: <T = unknown>(items: T[], fromIndex: number, toIndex: number) => T[];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface rect {
|
|
2
|
-
bottom: number;
|
|
3
|
-
left: number;
|
|
4
|
-
right: number;
|
|
5
|
-
top: number;
|
|
6
|
-
}
|
|
7
|
-
export type rectTuple = [number, number, number, number];
|
|
8
|
-
export type dimension = "width" | "height";
|
|
9
|
-
export declare function boxContainsPoint(rect: rect, x: number, y: number): boolean | undefined;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import type { DataSourceFilter, DataSourceRow } from "@vuu-ui/vuu-data-types";
|
|
2
|
-
import type { ColumnAlignment, ColumnDescriptor, ColumnType, ColumnTypeDescriptor, ColumnTypeRenderer, ColumnTypeWithValidationRules, GroupColumnDescriptor, KeyedColumnDescriptor, MappedValueTypeRenderer, PinLocation, TableHeadings, TypeFormatting } from "@vuu-ui/vuu-datagrid-types";
|
|
3
|
-
import type { Filter } from "@vuu-ui/vuu-filter-types";
|
|
4
|
-
import type { VuuAggregation, VuuAggType, VuuColumnDataType, VuuDataRow, VuuGroupBy, VuuRowRecord, VuuSort } from "@vuu-ui/vuu-protocol-types";
|
|
5
|
-
import type { SchemaColumn } from "@vuu-ui/vuu-data";
|
|
6
|
-
import type { CSSProperties } from "react";
|
|
7
|
-
import type { CellRendererDescriptor } from "./component-registry";
|
|
8
|
-
export interface ColumnMap {
|
|
9
|
-
[columnName: string]: number;
|
|
10
|
-
}
|
|
11
|
-
export type SortCriteriaItem = string | [string, "asc"];
|
|
12
|
-
export declare const AggregationType: {
|
|
13
|
-
[key: string]: VuuAggType;
|
|
14
|
-
};
|
|
15
|
-
export declare function mapSortCriteria(sortCriteria: SortCriteriaItem[], columnMap: ColumnMap, metadataOffset?: number): [number, "asc"][];
|
|
16
|
-
export declare const getDefaultAlignment: (serverDataType?: VuuColumnDataType) => ColumnAlignment;
|
|
17
|
-
export declare const isValidColumnAlignment: (v: string) => v is ColumnAlignment;
|
|
18
|
-
export declare const isValidPinLocation: (v: string) => v is PinLocation;
|
|
19
|
-
export declare const isKeyedColumn: (column: ColumnDescriptor) => column is KeyedColumnDescriptor;
|
|
20
|
-
export declare const fromServerDataType: (serverDataType: VuuColumnDataType) => ColumnTypeSimple;
|
|
21
|
-
export declare const isNumericColumn: ({ serverDataType, type }: ColumnDescriptor) => boolean;
|
|
22
|
-
export declare const isDateColumn: ({ type }: ColumnDescriptor) => boolean;
|
|
23
|
-
export declare const isTimeColumn: ({ type }: ColumnDescriptor) => boolean;
|
|
24
|
-
export declare const isDateTimeColumn: (column: ColumnDescriptor) => boolean;
|
|
25
|
-
export declare const notHidden: (column: ColumnDescriptor) => boolean;
|
|
26
|
-
export declare const isPinned: (column: ColumnDescriptor) => boolean;
|
|
27
|
-
export declare const hasHeadings: (column: ColumnDescriptor) => boolean;
|
|
28
|
-
export declare const isResizing: (column: KeyedColumnDescriptor) => boolean | undefined;
|
|
29
|
-
export declare const isTextColumn: ({ serverDataType }: ColumnDescriptor) => boolean;
|
|
30
|
-
export declare const toColumnDescriptor: (name: string) => ColumnDescriptor;
|
|
31
|
-
export declare const isSimpleColumnType: (value: unknown) => value is ColumnTypeSimple;
|
|
32
|
-
export declare type ColumnTypeSimple = "string" | "number" | "boolean" | "json" | "date" | "time" | "checkbox";
|
|
33
|
-
export declare const isTypeDescriptor: (type?: ColumnType) => type is ColumnTypeDescriptor;
|
|
34
|
-
export declare const isColumnTypeRenderer: (renderer?: unknown) => renderer is ColumnTypeRenderer;
|
|
35
|
-
export declare const hasValidationRules: (type?: ColumnType) => type is ColumnTypeWithValidationRules;
|
|
36
|
-
export declare const isMappedValueTypeRenderer: (renderer?: unknown) => renderer is MappedValueTypeRenderer;
|
|
37
|
-
export declare function buildColumnMap(columns?: (KeyedColumnDescriptor | SchemaColumn | string)[]): ColumnMap;
|
|
38
|
-
export declare function projectUpdates(updates: number[]): number[];
|
|
39
|
-
export declare const metadataKeys: {
|
|
40
|
-
readonly IDX: 0;
|
|
41
|
-
readonly RENDER_IDX: 1;
|
|
42
|
-
readonly IS_LEAF: 2;
|
|
43
|
-
readonly IS_EXPANDED: 3;
|
|
44
|
-
readonly DEPTH: 4;
|
|
45
|
-
readonly COUNT: 5;
|
|
46
|
-
readonly KEY: 6;
|
|
47
|
-
readonly SELECTED: 7;
|
|
48
|
-
readonly count: 8;
|
|
49
|
-
readonly PARENT_IDX: "parent_idx";
|
|
50
|
-
readonly IDX_POINTER: "idx_pointer";
|
|
51
|
-
readonly FILTER_COUNT: "filter_count";
|
|
52
|
-
readonly NEXT_FILTER_IDX: "next_filter_idx";
|
|
53
|
-
};
|
|
54
|
-
export declare const flattenColumnGroup: (columns: KeyedColumnDescriptor[]) => KeyedColumnDescriptor[];
|
|
55
|
-
export declare function extractGroupColumn(columns: KeyedColumnDescriptor[], groupBy?: VuuGroupBy, confirmed?: boolean): [GroupColumnDescriptor | null, KeyedColumnDescriptor[]];
|
|
56
|
-
export declare const isGroupColumn: (column: KeyedColumnDescriptor) => column is GroupColumnDescriptor;
|
|
57
|
-
export declare const isJsonAttribute: (value: unknown) => boolean;
|
|
58
|
-
export declare const isJsonGroup: (column: KeyedColumnDescriptor, row: VuuDataRow) => boolean;
|
|
59
|
-
export declare const isJsonColumn: (column: KeyedColumnDescriptor) => boolean;
|
|
60
|
-
export declare const sortPinnedColumns: (columns: KeyedColumnDescriptor[]) => KeyedColumnDescriptor[];
|
|
61
|
-
export declare const getTableHeadings: (columns: KeyedColumnDescriptor[]) => TableHeadings;
|
|
62
|
-
export declare const getColumnStyle: ({ pin, pinnedOffset, width, }: KeyedColumnDescriptor) => CSSProperties;
|
|
63
|
-
export declare const setAggregations: (aggregations: VuuAggregation[], column: KeyedColumnDescriptor, aggType: VuuAggType) => VuuAggregation[];
|
|
64
|
-
export declare const extractFilterForColumn: (filter: Filter | undefined, columnName: string) => Filter | undefined;
|
|
65
|
-
export declare const applyGroupByToColumns: (columns: KeyedColumnDescriptor[], groupBy: VuuGroupBy, confirmed?: boolean) => KeyedColumnDescriptor[];
|
|
66
|
-
export declare const applySortToColumns: (colunms: KeyedColumnDescriptor[], sort: VuuSort) => KeyedColumnDescriptor[];
|
|
67
|
-
export declare const applyFilterToColumns: (columns: KeyedColumnDescriptor[], { filterStruct }: DataSourceFilter) => KeyedColumnDescriptor[];
|
|
68
|
-
export declare const isFilteredColumn: (column: KeyedColumnDescriptor) => boolean;
|
|
69
|
-
export declare const stripFilterFromColumns: (columns: KeyedColumnDescriptor[]) => {
|
|
70
|
-
align?: "left" | "right" | undefined;
|
|
71
|
-
CellRenderer?: import("react").FunctionComponent<import("@vuu-ui/vuu-datagrid-types").TableCellRendererProps> | undefined;
|
|
72
|
-
className?: string | undefined;
|
|
73
|
-
clientSideEditValidationCheck?: import("packages/vuu-ui-controls/src").ClientSideValidationChecker | undefined;
|
|
74
|
-
endPin?: true | undefined;
|
|
75
|
-
flex?: number | undefined;
|
|
76
|
-
heading?: string[] | undefined;
|
|
77
|
-
isGroup?: boolean | undefined;
|
|
78
|
-
isSystemColumn?: boolean | undefined;
|
|
79
|
-
key: number;
|
|
80
|
-
label: string;
|
|
81
|
-
locked?: boolean | undefined;
|
|
82
|
-
marginLeft?: number | undefined;
|
|
83
|
-
moving?: boolean | undefined;
|
|
84
|
-
originalIdx?: number | undefined;
|
|
85
|
-
pinnedOffset?: number | undefined;
|
|
86
|
-
resizeable?: boolean | undefined;
|
|
87
|
-
resizing?: boolean | undefined;
|
|
88
|
-
sortable?: boolean | undefined;
|
|
89
|
-
sorted?: import("@vuu-ui/vuu-datagrid-types").ColumnSort | undefined;
|
|
90
|
-
type?: ColumnType | undefined;
|
|
91
|
-
valueFormatter: ValueFormatter;
|
|
92
|
-
width: number;
|
|
93
|
-
aggregate?: VuuAggType | undefined;
|
|
94
|
-
editable?: boolean | undefined;
|
|
95
|
-
expression?: string | undefined;
|
|
96
|
-
hidden?: boolean | undefined;
|
|
97
|
-
minWidth?: number | undefined;
|
|
98
|
-
name: string;
|
|
99
|
-
pin?: PinLocation | undefined;
|
|
100
|
-
serverDataType?: VuuColumnDataType | undefined;
|
|
101
|
-
}[];
|
|
102
|
-
export declare const getColumnName: (name: string) => string;
|
|
103
|
-
export declare const findColumn: (columns: KeyedColumnDescriptor[], columnName: string) => KeyedColumnDescriptor | undefined;
|
|
104
|
-
export declare function updateColumn(columns: KeyedColumnDescriptor[], column: KeyedColumnDescriptor): KeyedColumnDescriptor[];
|
|
105
|
-
export declare function updateColumn(columns: KeyedColumnDescriptor[], column: string, options: Partial<ColumnDescriptor>): KeyedColumnDescriptor[];
|
|
106
|
-
export declare const toDataSourceColumns: (column: ColumnDescriptor) => string;
|
|
107
|
-
export declare const getRowRecord: (row: DataSourceRow, columnMap: ColumnMap) => VuuRowRecord;
|
|
108
|
-
export declare const isDataLoading: (columns: KeyedColumnDescriptor[]) => boolean;
|
|
109
|
-
export declare const getColumnsInViewport: (columns: KeyedColumnDescriptor[], vpStart: number, vpEnd: number) => [KeyedColumnDescriptor[], number];
|
|
110
|
-
export declare const visibleColumnAtIndex: (columns: KeyedColumnDescriptor[], index: number) => KeyedColumnDescriptor | undefined;
|
|
111
|
-
export declare const getGroupValueAndOffset: (columns: KeyedColumnDescriptor[], row: DataSourceRow) => [unknown, number];
|
|
112
|
-
export declare const getDefaultColumnType: (serverDataType?: VuuColumnDataType) => ColumnTypeSimple;
|
|
113
|
-
export declare const updateColumnType: <T extends ColumnDescriptor = ColumnDescriptor>(column: T, formatting: TypeFormatting) => T;
|
|
114
|
-
export declare const updateColumnRenderer: <T extends ColumnDescriptor = ColumnDescriptor>(column: T, cellRenderer: CellRendererDescriptor) => T;
|
|
115
|
-
export declare const getTypeSettingsFromColumn: (column: ColumnDescriptor) => TypeFormatting;
|
|
116
|
-
/**
|
|
117
|
-
*
|
|
118
|
-
* return a filter predicate that will reject columns, names of which
|
|
119
|
-
* are not in provided list.
|
|
120
|
-
*/
|
|
121
|
-
export declare const subscribedOnly: (columnNames?: string[]) => (column: ColumnDescriptor) => boolean | undefined;
|
|
122
|
-
export declare const addColumnToSubscribedColumns: (subscribedColumns: ColumnDescriptor[], availableColumns: SchemaColumn[], columnName: string) => ColumnDescriptor[];
|
|
123
|
-
export declare const isCalculatedColumn: (columnName?: string) => boolean;
|
|
124
|
-
export declare const getCalculatedColumnDetails: (column: ColumnDescriptor) => string[];
|
|
125
|
-
export declare const getCalculatedColumnName: (column: ColumnDescriptor) => string;
|
|
126
|
-
export declare const getCalculatedColumnExpression: (column: ColumnDescriptor) => string;
|
|
127
|
-
export declare const getCalculatedColumnType: (column: ColumnDescriptor) => VuuColumnDataType;
|
|
128
|
-
export declare const setCalculatedColumnName: (column: ColumnDescriptor, name: string) => ColumnDescriptor;
|
|
129
|
-
export declare const setCalculatedColumnExpression: (column: ColumnDescriptor, expression: string) => ColumnDescriptor;
|
|
130
|
-
export declare const setCalculatedColumnType: (column: ColumnDescriptor, type: string) => ColumnDescriptor;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent as FC, HTMLAttributes } from "react";
|
|
2
|
-
import { ColumnTypeRenderer, EditValidationRule, MappedValueTypeRenderer, TableCellRendererProps } from "@vuu-ui/vuu-datagrid-types";
|
|
3
|
-
import { VuuColumnDataType, VuuRowDataItemType } from "@vuu-ui/vuu-protocol-types";
|
|
4
|
-
export interface CellConfigPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
onConfigChange: () => void;
|
|
6
|
-
}
|
|
7
|
-
export type EditRuleValidator = (editRule: EditValidationRule, value: VuuRowDataItemType) => boolean | string;
|
|
8
|
-
export type ComponentType = "cell-renderer" | "cell-config-panel" | "data-edit-validator";
|
|
9
|
-
type CellRendererOptions = {
|
|
10
|
-
[key: string]: unknown;
|
|
11
|
-
description?: string;
|
|
12
|
-
label?: string;
|
|
13
|
-
serverDataType?: VuuColumnDataType | VuuColumnDataType[] | "json" | "private";
|
|
14
|
-
};
|
|
15
|
-
export interface CellRendererDescriptor extends CellRendererOptions {
|
|
16
|
-
name: string;
|
|
17
|
-
}
|
|
18
|
-
export declare function registerComponent<T extends TableCellRendererProps | CellConfigPanelProps | EditRuleValidator = TableCellRendererProps>(componentName: string, component: T extends EditRuleValidator ? T : FC<T>, type: ComponentType | undefined, options: CellRendererOptions): void;
|
|
19
|
-
export declare const getRegisteredCellRenderers: (serverDataType?: VuuColumnDataType | "json") => CellRendererDescriptor[];
|
|
20
|
-
export declare function getCellRenderer(renderer?: ColumnTypeRenderer | MappedValueTypeRenderer): FC<TableCellRendererProps> | undefined;
|
|
21
|
-
export declare function getCellConfigPanelRenderer(name: string): FC<CellConfigPanelProps> | undefined;
|
|
22
|
-
export declare function getEditRuleValidator(name: string): EditRuleValidator | undefined;
|
|
23
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getCookieValue: (name: string) => string | number | undefined;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type valueChangeDirection = "up1" | "up2" | "down1" | "down2" | "";
|
|
2
|
-
export declare const UP1 = "up1";
|
|
3
|
-
export declare const UP2 = "up2";
|
|
4
|
-
export declare const DOWN1 = "down1";
|
|
5
|
-
export declare const DOWN2 = "down2";
|
|
6
|
-
export declare const isValidNumber: (n: unknown) => n is number;
|
|
7
|
-
export declare const shallowEquals: (o1?: {
|
|
8
|
-
[key: string]: unknown;
|
|
9
|
-
}, o2?: {
|
|
10
|
-
[key: string]: unknown;
|
|
11
|
-
}) => boolean;
|
|
12
|
-
export declare function getMovingValueDirection(newValue?: number, direction?: valueChangeDirection, prevValue?: number,
|
|
13
|
-
/** the number of decimal places to take into account when highlighting a change */
|
|
14
|
-
decimalPlaces?: number): valueChangeDirection;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type DatePattern = "dd.mm.yyyy";
|
|
2
|
-
export type TimePattern = "kk:mm:ss";
|
|
3
|
-
export type DateTimePattern = DatePattern | TimePattern;
|
|
4
|
-
export declare const isDatePattern: (pattern?: string) => pattern is "dd.mm.yyyy";
|
|
5
|
-
export declare const isTimePattern: (pattern?: string) => pattern is "kk:mm:ss";
|
|
6
|
-
export declare const isDateTimePattern: (pattern?: string) => pattern is DateTimePattern;
|
|
7
|
-
export declare const formatDate: (date: Date, format?: DateTimePattern) => string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type Listener = (...args: any[]) => void;
|
|
2
|
-
export type EmittedEvents = Record<string, Listener>;
|
|
3
|
-
export declare class EventEmitter<Events extends EmittedEvents> {
|
|
4
|
-
#private;
|
|
5
|
-
addListener<E extends keyof Events>(event: E, listener: Events[E]): void;
|
|
6
|
-
removeListener<E extends keyof Events>(event: E, listener: Events[E]): void;
|
|
7
|
-
removeAllListeners<E extends keyof Events>(event?: E): void;
|
|
8
|
-
emit<E extends keyof Events>(event: E, ...args: Parameters<Events[E]>): void;
|
|
9
|
-
once<E extends keyof Events>(event: E, listener: Events[E]): void;
|
|
10
|
-
on<E extends keyof Events>(event: E, listener: Events[E]): void;
|
|
11
|
-
private invokeHandler;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { KeyedColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
|
|
2
|
-
import { AndFilter, Filter, FilterClauseOp, FilterWithPartialClause, MultiClauseFilter, MultiValueFilterClause, OrFilter, SingleValueFilterClause } from "@vuu-ui/vuu-filter-types";
|
|
3
|
-
export declare const isValidFilterClauseOp: (op?: string) => op is FilterClauseOp;
|
|
4
|
-
export declare const isNamedFilter: (f?: Filter) => boolean;
|
|
5
|
-
export declare const isSingleValueFilter: (f?: Partial<Filter>) => f is SingleValueFilterClause<string | number | boolean>;
|
|
6
|
-
export declare const isFilterClause: (f?: Partial<Filter>) => f is MultiValueFilterClause | SingleValueFilterClause<string | number | boolean>;
|
|
7
|
-
export declare const isMultiValueFilter: (f?: Partial<Filter>) => f is MultiValueFilterClause;
|
|
8
|
-
export declare const isInFilter: (f: Partial<Filter>) => f is MultiValueFilterClause;
|
|
9
|
-
export declare const isAndFilter: (f: Partial<Filter>) => f is AndFilter;
|
|
10
|
-
export declare const isOrFilter: (f: Partial<Filter>) => f is OrFilter;
|
|
11
|
-
export declare const isCompleteFilter: (filter: Partial<Filter>) => filter is Filter;
|
|
12
|
-
export declare function isMultiClauseFilter(f?: Partial<Filter> | FilterWithPartialClause): f is MultiClauseFilter;
|
|
13
|
-
export declare const filterAsQuery: (f: Filter) => string;
|
|
14
|
-
export declare const removeColumnFromFilter: (column: KeyedColumnDescriptor, filter: Filter) => [Filter | undefined, string];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
|
|
2
|
-
export type ValueFormatter = (value: unknown) => string;
|
|
3
|
-
export type ValueFormatters = {
|
|
4
|
-
[key: string]: ValueFormatter;
|
|
5
|
-
};
|
|
6
|
-
export declare const defaultValueFormatter: (value: unknown) => string;
|
|
7
|
-
export declare const dateFormatter: (column: ColumnDescriptor) => (value: unknown) => string;
|
|
8
|
-
export declare const numericFormatter: ({ align, type, }: Partial<ColumnDescriptor>) => (value: unknown) => string;
|
|
9
|
-
export declare const getValueFormatter: (column: ColumnDescriptor) => ValueFormatter;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getUniqueId: () => string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const createEl: (elementType: "div" | "p" | "span", className?: string, textContent?: string) => HTMLElement;
|
|
2
|
-
export declare const getFocusableElement: (el: HTMLElement | null, tabIndex?: number) => HTMLElement | undefined;
|
|
3
|
-
export declare const getElementDataIndex: (el: HTMLElement | null) => number;
|
|
4
|
-
export declare const getClosest: (el: HTMLElement, dataProperty: string) => HTMLElement;
|
|
5
|
-
export declare const getClosestIndexItem: (el: HTMLElement) => HTMLElement;
|
|
6
|
-
export declare function getElementByDataIndex(c: HTMLElement | null, i: number | string, throwIfNotFound: true): HTMLElement;
|
|
7
|
-
export declare function getElementByDataIndex(c: HTMLElement | null, i: number | string, throwIfNotFound?: false): HTMLElement | undefined;
|
|
8
|
-
export declare const focusFirstFocusableElement: (el: HTMLElement | null, tabIndex?: number) => void;
|
|
9
|
-
export declare const isSelectableElement: (el?: HTMLElement) => boolean;
|
|
10
|
-
export declare function getScrollbarSize(): number;
|
|
11
|
-
export type MouseEventTypes = "dblclick" | "click";
|
|
12
|
-
export declare const dispatchMouseEvent: (el: HTMLElement, type: MouseEventTypes) => void;
|