@vuu-ui/vuu-layout 0.13.2 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +1 -0
- package/cjs/index.js.map +1 -1
- package/cjs/layout-provider/LayoutProvider.js +1 -0
- package/cjs/layout-provider/LayoutProvider.js.map +1 -1
- package/cjs/layout-provider/LayoutProviderContext.js +6 -3
- package/cjs/layout-provider/LayoutProviderContext.js.map +1 -1
- package/cjs/layout-provider/useLayoutDragDrop.js +14 -5
- package/cjs/layout-provider/useLayoutDragDrop.js.map +1 -1
- package/cjs/palette/Palette.js +17 -12
- package/cjs/palette/Palette.js.map +1 -1
- package/esm/index.js +1 -1
- package/esm/layout-provider/LayoutProvider.js +1 -0
- package/esm/layout-provider/LayoutProvider.js.map +1 -1
- package/esm/layout-provider/LayoutProviderContext.js +6 -4
- package/esm/layout-provider/LayoutProviderContext.js.map +1 -1
- package/esm/layout-provider/useLayoutDragDrop.js +14 -5
- package/esm/layout-provider/useLayoutDragDrop.js.map +1 -1
- package/esm/palette/Palette.js +17 -12
- package/esm/palette/Palette.js.map +1 -1
- package/package.json +12 -14
- package/types/Component.d.ts +0 -6
- package/types/LayoutContainer.d.ts +0 -6
- package/types/debug.d.ts +0 -2
- package/types/dock-layout/DockLayout.d.ts +0 -7
- package/types/dock-layout/Drawer.d.ts +0 -17
- package/types/dock-layout/index.d.ts +0 -2
- package/types/drag-drop/BoxModel.d.ts +0 -143
- package/types/drag-drop/DragState.d.ts +0 -46
- package/types/drag-drop/Draggable.d.ts +0 -24
- package/types/drag-drop/DropTarget.d.ts +0 -60
- package/types/drag-drop/DropTargetRenderer.d.ts +0 -17
- package/types/drag-drop/dragDropTypes.d.ts +0 -51
- package/types/drag-drop/index.d.ts +0 -3
- package/types/flexbox/Flexbox.d.ts +0 -3
- package/types/flexbox/FlexboxLayout.d.ts +0 -5
- package/types/flexbox/Splitter.d.ts +0 -12
- package/types/flexbox/flexbox-utils.d.ts +0 -12
- package/types/flexbox/flexboxTypes.d.ts +0 -52
- package/types/flexbox/index.d.ts +0 -2
- package/types/flexbox/useSplitterResizing.d.ts +0 -2
- package/types/index.d.ts +0 -17
- package/types/layout-action.d.ts +0 -19
- package/types/layout-header/ActionButton.d.ts +0 -8
- package/types/layout-header/Header.d.ts +0 -15
- package/types/layout-header/index.d.ts +0 -1
- package/types/layout-header/useHeader.d.ts +0 -20
- package/types/layout-provider/LayoutProvider.d.ts +0 -20
- package/types/layout-provider/LayoutProviderContext.d.ts +0 -14
- package/types/layout-provider/index.d.ts +0 -2
- package/types/layout-provider/useLayoutDragDrop.d.ts +0 -4
- package/types/layout-reducer/flexUtils.d.ts +0 -22
- package/types/layout-reducer/index.d.ts +0 -4
- package/types/layout-reducer/insert-layout-element.d.ts +0 -8
- package/types/layout-reducer/layout-reducer.d.ts +0 -3
- package/types/layout-reducer/layoutTypes.d.ts +0 -135
- package/types/layout-reducer/layoutUtils.d.ts +0 -44
- package/types/layout-reducer/move-layout-element.d.ts +0 -3
- package/types/layout-reducer/remove-layout-element.d.ts +0 -3
- package/types/layout-reducer/replace-layout-element.d.ts +0 -6
- package/types/layout-reducer/resize-flex-children.d.ts +0 -4
- package/types/layout-reducer/wrap-layout-element.d.ts +0 -9
- package/types/layout-view/View.d.ts +0 -10
- package/types/layout-view/index.d.ts +0 -3
- package/types/layout-view/useView.d.ts +0 -22
- package/types/layout-view/useViewBroadcastChannel.d.ts +0 -7
- package/types/layout-view/useViewResize.d.ts +0 -7
- package/types/layout-view/viewTypes.d.ts +0 -48
- package/types/layout-view-actions/ViewContext.d.ts +0 -37
- package/types/layout-view-actions/index.d.ts +0 -2
- package/types/layout-view-actions/useViewActionDispatcher.d.ts +0 -4
- package/types/palette/Palette.d.ts +0 -25
- package/types/palette/index.d.ts +0 -1
- package/types/placeholder/LayoutStartPanel.d.ts +0 -5
- package/types/placeholder/Placeholder.d.ts +0 -16
- package/types/placeholder/index.d.ts +0 -1
- package/types/responsive/index.d.ts +0 -2
- package/types/responsive/measureMinimumNodeSize.d.ts +0 -1
- package/types/responsive/overflowUtils.d.ts +0 -2
- package/types/responsive/useResizeObserver.d.ts +0 -13
- package/types/responsive/utils.d.ts +0 -6
- package/types/stack/Stack.d.ts +0 -3
- package/types/stack/StackLayout.d.ts +0 -5
- package/types/stack/index.d.ts +0 -3
- package/types/stack/stackTypes.d.ts +0 -24
- package/types/tabs/TabPanel.d.ts +0 -7
- package/types/tabs/index.d.ts +0 -1
- package/types/tools/config-wrapper/ConfigWrapper.d.ts +0 -1
- package/types/tools/config-wrapper/index.d.ts +0 -1
- package/types/tools/devtools-box/layout-configurator.d.ts +0 -31
- package/types/tools/devtools-tree/layout-tree-viewer.d.ts +0 -5
- package/types/tools/index.d.ts +0 -3
- package/types/use-persistent-state.d.ts +0 -11
- package/types/utils/index.d.ts +0 -5
- package/types/utils/pathUtils.d.ts +0 -31
- package/types/utils/propUtils.d.ts +0 -5
- package/types/utils/refUtils.d.ts +0 -2
- package/types/utils/styleUtils.d.ts +0 -3
- package/types/utils/typeOf.d.ts +0 -5
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ListItemProps, ListProps } from "@vuu-ui/vuu-ui-controls";
|
|
2
|
-
import { HTMLAttributes, ReactElement } from "react";
|
|
3
|
-
import { ViewProps } from "../layout-view";
|
|
4
|
-
export interface PaletteItemProps extends ListItemProps {
|
|
5
|
-
/**
|
|
6
|
-
* This is the payload that will be created when the
|
|
7
|
-
* palette item is dropped
|
|
8
|
-
*/
|
|
9
|
-
component: ReactElement;
|
|
10
|
-
closeable?: boolean;
|
|
11
|
-
header?: boolean;
|
|
12
|
-
idx?: number;
|
|
13
|
-
resize?: "defer";
|
|
14
|
-
resizeable?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare const PaletteItem: import("react").MemoExoticComponent<({ className, component, idx, resizeable, header, closeable, ...props }: PaletteItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
17
|
-
export interface PaletteProps extends Omit<HTMLAttributes<HTMLDivElement>, "onDragStart" | "onDrop" | "onSelect"> {
|
|
18
|
-
ListProps?: Partial<ListProps>;
|
|
19
|
-
ViewProps?: Partial<ViewProps>;
|
|
20
|
-
children: ReactElement[];
|
|
21
|
-
itemHeight?: number;
|
|
22
|
-
orientation: "horizontal" | "vertical";
|
|
23
|
-
selection?: string;
|
|
24
|
-
}
|
|
25
|
-
export declare const Palette: ({ ListProps, ViewProps, children, className, itemHeight, orientation, ...props }: PaletteProps) => import("react/jsx-runtime").JSX.Element;
|
package/types/palette/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Palette";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
export interface LayoutStartPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
label?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const LayoutStartPanel: (htmlAttributes: LayoutStartPanelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ViewProps } from "../layout-view/viewTypes";
|
|
2
|
-
export interface PlaceholderProps extends ViewProps {
|
|
3
|
-
closeable?: boolean;
|
|
4
|
-
flexFill?: boolean;
|
|
5
|
-
resizeable?: boolean;
|
|
6
|
-
showStartMenu?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* shim is only when we're dealing with intrinsically sized children, which is never
|
|
9
|
-
* in an actual application. Intrinsic sizing is still experimental.
|
|
10
|
-
*/
|
|
11
|
-
shim?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const Placeholder: {
|
|
14
|
-
({ className: classNameProp, showStartMenu, ...viewProps }: PlaceholderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
displayName: string;
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Placeholder';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function measureMinimumNodeSize(node: HTMLElement, dimension?: 'width' | 'height'): number;
|
|
@@ -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;
|
package/types/stack/Stack.d.ts
DELETED
package/types/stack/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { TabstripProps } from "@vuu-ui/vuu-ui-controls";
|
|
2
|
-
import { HTMLAttributes, MouseEvent, ReactElement, ReactNode } from "react";
|
|
3
|
-
export type TabLabelFactory = (component: ReactElement, index: number, existingLabels: string[]) => string;
|
|
4
|
-
export interface SerializableStackProps {
|
|
5
|
-
active?: number;
|
|
6
|
-
/** should the Stack display a Tabstrip and where ? default top */
|
|
7
|
-
showTabs?: false | TabPosition;
|
|
8
|
-
}
|
|
9
|
-
export type TabPosition = "top" | "left" | "right" | "bottom";
|
|
10
|
-
export interface StackProps extends SerializableStackProps, Omit<HTMLAttributes<HTMLDivElement>, "onMouseDown"> {
|
|
11
|
-
TabstripProps?: Partial<TabstripProps>;
|
|
12
|
-
createNewChild?: (index: number) => ReactElement;
|
|
13
|
-
getTabIcon?: (component: ReactElement, index: number) => string | undefined;
|
|
14
|
-
getTabLabel?: TabLabelFactory;
|
|
15
|
-
keyBoardActivation?: "automatic" | "manual";
|
|
16
|
-
onAddTab?: () => void;
|
|
17
|
-
onMoveTab?: (fromIndex: number, toIndex: number) => void;
|
|
18
|
-
onMouseDown?: (e: MouseEvent, tabIndex: number) => void;
|
|
19
|
-
onTabClose?: (tabIndex: number) => void;
|
|
20
|
-
onTabEdit?: (tabIndex: number, label: string) => void;
|
|
21
|
-
onTabSelectionChanged?: (nextIndex: number) => void;
|
|
22
|
-
path?: string;
|
|
23
|
-
toolbarContent?: ReactNode;
|
|
24
|
-
}
|
package/types/tabs/TabPanel.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
import './TabPanel.css';
|
|
3
|
-
export interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
ariaLabelledBy: string;
|
|
5
|
-
}
|
|
6
|
-
declare const TabPanel: ({ ariaLabelledBy, children, id }: TabPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default TabPanel;
|
package/types/tabs/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TabPanel } from './TabPanel';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ConfigWrapper: ({ children }: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ConfigWrapper';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export function XXXnormalizeStyles(layoutStyle?: {}, visualStyle?: {}): {};
|
|
2
|
-
export namespace MARGIN_STYLES {
|
|
3
|
-
let margin: boolean;
|
|
4
|
-
let marginTop: boolean;
|
|
5
|
-
let marginRight: boolean;
|
|
6
|
-
let marginBottom: boolean;
|
|
7
|
-
let marginLeft: boolean;
|
|
8
|
-
}
|
|
9
|
-
export namespace PADDING_STYLES {
|
|
10
|
-
let padding: boolean;
|
|
11
|
-
let paddingTop: boolean;
|
|
12
|
-
let paddingRight: boolean;
|
|
13
|
-
let paddingBottom: boolean;
|
|
14
|
-
let paddingLeft: boolean;
|
|
15
|
-
}
|
|
16
|
-
export namespace BORDER_STYLES {
|
|
17
|
-
let border: boolean;
|
|
18
|
-
let borderColor: boolean;
|
|
19
|
-
let borderWidth: boolean;
|
|
20
|
-
let borderTopWidth: boolean;
|
|
21
|
-
let borderRightWidth: boolean;
|
|
22
|
-
let borderBottomWidth: boolean;
|
|
23
|
-
let 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
|
-
}): import("react/jsx-runtime").JSX.Element;
|
package/types/tools/index.d.ts
DELETED
|
@@ -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: string, key?: string) => any;
|
|
6
|
-
loadState: (id: string, key?: string) => any;
|
|
7
|
-
saveSessionState: (id: string, key: string, data: unknown) => 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
|
-
};
|
package/types/utils/index.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { LayoutJSON, LayoutModel } from "@vuu-ui/vuu-utils";
|
|
2
|
-
import React, { ReactElement } from "react";
|
|
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 | undefined, 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<unknown, 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 "@vuu-ui/vuu-utils";
|
|
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<unknown, string | import("react").JSXElementConstructor<any>> | undefined;
|
package/types/utils/typeOf.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { LayoutJSON, LayoutModel, WithType } from "@vuu-ui/vuu-utils";
|
|
2
|
-
import { ReactElement } from "react";
|
|
3
|
-
export declare function typeOf(element?: LayoutModel | WithType): string | undefined;
|
|
4
|
-
export declare const isTypeOf: (element: ReactElement, type: string) => boolean;
|
|
5
|
-
export declare const isLayoutJSON: (layout: LayoutJSON) => layout is LayoutJSON;
|