@vuu-ui/vuu-data-react 0.8.7 → 0.8.8-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 +499 -1
- package/cjs/index.js.map +3 -3
- package/esm/index.js +480 -1
- package/esm/index.js.map +3 -3
- package/package.json +9 -8
- package/LICENSE +0 -201
- package/types/vuu-popups/src/dialog/Dialog.d.ts +0 -7
- package/types/vuu-popups/src/dialog/index.d.ts +0 -1
- package/types/vuu-popups/src/index.d.ts +0 -5
- package/types/vuu-popups/src/menu/ContextMenu.d.ts +0 -15
- 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 -26
- package/types/vuu-popups/src/menu/useContextMenu.d.ts +0 -13
- package/types/vuu-popups/src/menu/utils.d.ts +0 -2
- package/types/vuu-popups/src/popup/index.d.ts +0 -1
- package/types/vuu-popups/src/popup/popup-service.d.ts +0 -55
- package/types/vuu-popups/src/popup-menu/PopupMenu.d.ts +0 -14
- package/types/vuu-popups/src/popup-menu/index.d.ts +0 -1
- package/types/vuu-popups/src/portal/Portal.d.ts +0 -8
- package/types/vuu-popups/src/portal/index.d.ts +0 -3
- package/types/vuu-popups/src/portal/portal-utils.d.ts +0 -1
- package/types/vuu-popups/src/portal/render-portal.d.ts +0 -10
- /package/types/{vuu-data-react/src/hooks → hooks}/index.d.ts +0 -0
- /package/types/{vuu-data-react/src/hooks → hooks}/useDataSource.d.ts +0 -0
- /package/types/{vuu-data-react/src/hooks → hooks}/useServerConnectionQuality.d.ts +0 -0
- /package/types/{vuu-data-react/src/hooks → hooks}/useServerConnectionStatus.d.ts +0 -0
- /package/types/{vuu-data-react/src/hooks → hooks}/useTypeaheadSuggestions.d.ts +0 -0
- /package/types/{vuu-data-react/src/hooks → hooks}/useVuuMenuActions.d.ts +0 -0
- /package/types/{vuu-data-react/src/hooks → hooks}/useVuuTables.d.ts +0 -0
- /package/types/{vuu-data-react/src/index.d.ts → index.d.ts} +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { FocusEvent, KeyboardEvent } from "react";
|
|
2
|
-
export interface KeyboardNavigationProps {
|
|
3
|
-
autoHighlightFirstItem?: boolean;
|
|
4
|
-
count: number;
|
|
5
|
-
highlightedIndex?: number;
|
|
6
|
-
onActivate: (idx: number) => void;
|
|
7
|
-
onHighlight?: (idx: number) => void;
|
|
8
|
-
onCloseMenu: (idx: number) => void;
|
|
9
|
-
onOpenMenu?: (menuItemEl: HTMLElement) => void;
|
|
10
|
-
}
|
|
11
|
-
export interface KeyboardHookListProps {
|
|
12
|
-
onFocus: (evt: FocusEvent) => void;
|
|
13
|
-
onKeyDown: (evt: KeyboardEvent) => void;
|
|
14
|
-
onMouseDownCapture: () => void;
|
|
15
|
-
onMouseMove: () => void;
|
|
16
|
-
onMouseLeave: () => void;
|
|
17
|
-
}
|
|
18
|
-
export interface NavigationHookResult {
|
|
19
|
-
focusVisible: number;
|
|
20
|
-
controlledHighlighting: boolean;
|
|
21
|
-
highlightedIndex: number;
|
|
22
|
-
setHighlightedIndex: (idx: number) => void;
|
|
23
|
-
listProps: KeyboardHookListProps;
|
|
24
|
-
setIgnoreFocus: (ignoreFocus: boolean) => void;
|
|
25
|
-
}
|
|
26
|
-
export declare const useKeyboardNavigation: ({ autoHighlightFirstItem, count, highlightedIndex: highlightedIndexProp, onActivate, onHighlight, onCloseMenu, onOpenMenu, }: KeyboardNavigationProps) => NavigationHookResult;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MouseEvent } from "react";
|
|
2
|
-
import { MenuActionHandler, MenuBuilder } from "@vuu-ui/vuu-data-types";
|
|
3
|
-
import { ContextMenuProps } from "./ContextMenu";
|
|
4
|
-
export type ContextMenuOptions = {
|
|
5
|
-
[key: string]: unknown;
|
|
6
|
-
contextMenu?: JSX.Element;
|
|
7
|
-
ContextMenuProps?: Partial<ContextMenuProps> & {
|
|
8
|
-
className?: string;
|
|
9
|
-
"data-mode"?: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export type ShowContextMenu = (e: MouseEvent<HTMLElement>, location: string, options: ContextMenuOptions) => void;
|
|
13
|
-
export declare const useContextMenu: (menuBuilder?: MenuBuilder, menuActionHandler?: MenuActionHandler) => [ShowContextMenu, () => void];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./popup-service";
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from "react";
|
|
2
|
-
import { ContextMenuOptions } from "../menu";
|
|
3
|
-
import "./popup-service.css";
|
|
4
|
-
export type PopupCloseCallback = (reason?: PopupCloseReason) => void;
|
|
5
|
-
export type ClickAwayClosePopup = {
|
|
6
|
-
type: "click-away";
|
|
7
|
-
mouseEvt: MouseEvent;
|
|
8
|
-
};
|
|
9
|
-
export type MenuActionClosePopup = {
|
|
10
|
-
menuId: string;
|
|
11
|
-
options: ContextMenuOptions;
|
|
12
|
-
type: "menu-action";
|
|
13
|
-
};
|
|
14
|
-
export type PopupCloseReason = ClickAwayClosePopup | MenuActionClosePopup;
|
|
15
|
-
export declare const reasonIsMenuAction: (reason?: PopupCloseReason) => reason is MenuActionClosePopup;
|
|
16
|
-
export declare const reasonIsClickAway: (reason?: PopupCloseReason) => reason is ClickAwayClosePopup;
|
|
17
|
-
export interface ShowPopupProps {
|
|
18
|
-
depth?: number;
|
|
19
|
-
/**
|
|
20
|
-
* if true, focus will be invoked on first focusable element
|
|
21
|
-
*/
|
|
22
|
-
focus?: boolean;
|
|
23
|
-
name?: string;
|
|
24
|
-
group?: string;
|
|
25
|
-
position?: "above" | "below" | "";
|
|
26
|
-
left?: number;
|
|
27
|
-
right?: "auto" | number;
|
|
28
|
-
top?: number;
|
|
29
|
-
component: ReactElement;
|
|
30
|
-
width?: number | "auto";
|
|
31
|
-
}
|
|
32
|
-
export declare class PopupService {
|
|
33
|
-
static onClose: PopupCloseCallback | undefined;
|
|
34
|
-
static showPopup({ group, name, left, position, right, top, width, component, }: ShowPopupProps): void;
|
|
35
|
-
static escapeKeyListener(evt: KeyboardEvent): void;
|
|
36
|
-
static hidePopup(reason?: PopupCloseReason, name?: string, group?: string): void;
|
|
37
|
-
static keepWithinThePage(el: HTMLElement, right?: number | "auto"): void;
|
|
38
|
-
}
|
|
39
|
-
export declare class DialogService {
|
|
40
|
-
static showDialog(dialog: ReactElement): void;
|
|
41
|
-
static closeDialog(): void;
|
|
42
|
-
}
|
|
43
|
-
export interface PopupProps {
|
|
44
|
-
children: ReactElement;
|
|
45
|
-
close?: boolean;
|
|
46
|
-
depth: number;
|
|
47
|
-
group?: string;
|
|
48
|
-
name: string;
|
|
49
|
-
position?: "above" | "below" | "";
|
|
50
|
-
width: number;
|
|
51
|
-
}
|
|
52
|
-
export declare const Popup: (props: PopupProps) => React.DetailedReactHTMLElement<{
|
|
53
|
-
className: string;
|
|
54
|
-
ref: React.RefObject<HTMLElement>;
|
|
55
|
-
}, HTMLElement>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
import "./PopupMenu.css";
|
|
3
|
-
import { MenuActionHandler, MenuBuilder } from "@vuu-ui/vuu-data-types";
|
|
4
|
-
export interface PopupMenuProps extends HTMLAttributes<HTMLButtonElement> {
|
|
5
|
-
icon?: string;
|
|
6
|
-
menuActionHandler?: MenuActionHandler;
|
|
7
|
-
menuBuilder?: MenuBuilder;
|
|
8
|
-
menuLocation?: string;
|
|
9
|
-
menuOptions?: {
|
|
10
|
-
[key: string]: unknown;
|
|
11
|
-
};
|
|
12
|
-
onMenuClose?: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const PopupMenu: ({ className, icon, id: idProp, menuActionHandler, menuBuilder, menuLocation, menuOptions, onMenuClose, tabIndex, ...htmlAttributes }: PopupMenuProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./PopupMenu";
|
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|