@vuu-ui/vuu-layout 2.1.19-beta.2 → 2.1.19-beta.3
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/Component.js +14 -0
- package/cjs/Component.js.map +1 -0
- package/cjs/LayoutContainer.css.js +6 -0
- package/cjs/LayoutContainer.css.js.map +1 -0
- package/cjs/LayoutContainer.js +33 -0
- package/cjs/LayoutContainer.js.map +1 -0
- package/cjs/dock-layout/DockLayout.css.js +6 -0
- package/cjs/dock-layout/DockLayout.css.js.map +1 -0
- package/cjs/dock-layout/DockLayout.js +41 -0
- package/cjs/dock-layout/DockLayout.js.map +1 -0
- package/cjs/dock-layout/Drawer.css.js +6 -0
- package/cjs/dock-layout/Drawer.css.js.map +1 -0
- package/cjs/dock-layout/Drawer.js +95 -0
- package/cjs/dock-layout/Drawer.js.map +1 -0
- package/cjs/drag-drop/BoxModel.js +416 -0
- package/cjs/drag-drop/BoxModel.js.map +1 -0
- package/cjs/drag-drop/DragState.js +161 -0
- package/cjs/drag-drop/DragState.js.map +1 -0
- package/cjs/drag-drop/Draggable.js +192 -0
- package/cjs/drag-drop/Draggable.js.map +1 -0
- package/cjs/drag-drop/DropTarget.js +257 -0
- package/cjs/drag-drop/DropTarget.js.map +1 -0
- package/cjs/drag-drop/DropTargetRenderer.js +218 -0
- package/cjs/drag-drop/DropTargetRenderer.js.map +1 -0
- package/cjs/flexbox/Flexbox.css.js +6 -0
- package/cjs/flexbox/Flexbox.css.js.map +1 -0
- package/cjs/flexbox/Flexbox.js +69 -0
- package/cjs/flexbox/Flexbox.js.map +1 -0
- package/cjs/flexbox/FlexboxLayout.js +30 -0
- package/cjs/flexbox/FlexboxLayout.js.map +1 -0
- package/cjs/flexbox/Splitter.css.js +6 -0
- package/cjs/flexbox/Splitter.css.js.map +1 -0
- package/cjs/flexbox/Splitter.js +122 -0
- package/cjs/flexbox/Splitter.js.map +1 -0
- package/cjs/flexbox/flexbox-utils.js +95 -0
- package/cjs/flexbox/flexbox-utils.js.map +1 -0
- package/cjs/flexbox/useSplitterResizing.js +197 -0
- package/cjs/flexbox/useSplitterResizing.js.map +1 -0
- package/cjs/index.js +122 -0
- package/cjs/index.js.map +1 -0
- package/cjs/layout-action.js +24 -0
- package/cjs/layout-action.js.map +1 -0
- package/cjs/layout-header/Header.css.js +6 -0
- package/cjs/layout-header/Header.css.js.map +1 -0
- package/cjs/layout-header/Header.js +152 -0
- package/cjs/layout-header/Header.js.map +1 -0
- package/cjs/layout-header/useHeader.js +85 -0
- package/cjs/layout-header/useHeader.js.map +1 -0
- package/cjs/layout-provider/LayoutProvider.js +304 -0
- package/cjs/layout-provider/LayoutProvider.js.map +1 -0
- package/cjs/layout-provider/LayoutProviderContext.js +23 -0
- package/cjs/layout-provider/LayoutProviderContext.js.map +1 -0
- package/cjs/layout-provider/useLayoutDragDrop.js +177 -0
- package/cjs/layout-provider/useLayoutDragDrop.js.map +1 -0
- package/cjs/layout-reducer/flexUtils.js +227 -0
- package/cjs/layout-reducer/flexUtils.js.map +1 -0
- package/cjs/layout-reducer/insert-layout-element.js +286 -0
- package/cjs/layout-reducer/insert-layout-element.js.map +1 -0
- package/cjs/layout-reducer/layout-reducer.js +202 -0
- package/cjs/layout-reducer/layout-reducer.js.map +1 -0
- package/cjs/layout-reducer/layoutTypes.js +40 -0
- package/cjs/layout-reducer/layoutTypes.js.map +1 -0
- package/cjs/layout-reducer/layoutUtils.js +237 -0
- package/cjs/layout-reducer/layoutUtils.js.map +1 -0
- package/cjs/layout-reducer/move-layout-element.js +31 -0
- package/cjs/layout-reducer/move-layout-element.js.map +1 -0
- package/cjs/layout-reducer/remove-layout-element.js +237 -0
- package/cjs/layout-reducer/remove-layout-element.js.map +1 -0
- package/cjs/layout-reducer/replace-layout-element.js +96 -0
- package/cjs/layout-reducer/replace-layout-element.js.map +1 -0
- package/cjs/layout-reducer/resize-flex-children.js +62 -0
- package/cjs/layout-reducer/resize-flex-children.js.map +1 -0
- package/cjs/layout-reducer/wrap-layout-element.js +211 -0
- package/cjs/layout-reducer/wrap-layout-element.js.map +1 -0
- package/cjs/layout-view/View.css.js +6 -0
- package/cjs/layout-view/View.css.js.map +1 -0
- package/cjs/layout-view/View.js +160 -0
- package/cjs/layout-view/View.js.map +1 -0
- package/cjs/layout-view/useView.js +75 -0
- package/cjs/layout-view/useView.js.map +1 -0
- package/cjs/layout-view/useViewBroadcastChannel.js +35 -0
- package/cjs/layout-view/useViewBroadcastChannel.js.map +1 -0
- package/cjs/layout-view/useViewResize.js +42 -0
- package/cjs/layout-view/useViewResize.js.map +1 -0
- package/cjs/layout-view-actions/ViewContext.js +16 -0
- package/cjs/layout-view-actions/ViewContext.js.map +1 -0
- package/cjs/layout-view-actions/useViewActionDispatcher.js +112 -0
- package/cjs/layout-view-actions/useViewActionDispatcher.js.map +1 -0
- package/cjs/layout-view-actions/useViewContributions.js +33 -0
- package/cjs/layout-view-actions/useViewContributions.js.map +1 -0
- package/cjs/palette/Palette.css.js +6 -0
- package/cjs/palette/Palette.css.js.map +1 -0
- package/cjs/palette/Palette.js +115 -0
- package/cjs/palette/Palette.js.map +1 -0
- package/cjs/placeholder/LayoutStartPanel.css.js +6 -0
- package/cjs/placeholder/LayoutStartPanel.css.js.map +1 -0
- package/cjs/placeholder/LayoutStartPanel.js +56 -0
- package/cjs/placeholder/LayoutStartPanel.js.map +1 -0
- package/cjs/placeholder/Placeholder.css.js +6 -0
- package/cjs/placeholder/Placeholder.css.js.map +1 -0
- package/cjs/placeholder/Placeholder.js +34 -0
- package/cjs/placeholder/Placeholder.js.map +1 -0
- package/cjs/responsive/useResizeObserver.js +118 -0
- package/cjs/responsive/useResizeObserver.js.map +1 -0
- package/cjs/responsive/utils.js +34 -0
- package/cjs/responsive/utils.js.map +1 -0
- package/cjs/stack/Stack.css.js +6 -0
- package/cjs/stack/Stack.css.js.map +1 -0
- package/cjs/stack/Stack.js +150 -0
- package/cjs/stack/Stack.js.map +1 -0
- package/cjs/stack/StackLayout.js +116 -0
- package/cjs/stack/StackLayout.js.map +1 -0
- package/cjs/use-persistent-state.js +63 -0
- package/cjs/use-persistent-state.js.map +1 -0
- package/cjs/utils/pathUtils.js +293 -0
- package/cjs/utils/pathUtils.js.map +1 -0
- package/cjs/utils/propUtils.js +27 -0
- package/cjs/utils/propUtils.js.map +1 -0
- package/cjs/utils/refUtils.js +12 -0
- package/cjs/utils/refUtils.js.map +1 -0
- package/cjs/utils/styleUtils.js +15 -0
- package/cjs/utils/styleUtils.js.map +1 -0
- package/cjs/utils/typeOf.js +27 -0
- package/cjs/utils/typeOf.js.map +1 -0
- package/esm/Component.js +12 -0
- package/esm/Component.js.map +1 -0
- package/esm/LayoutContainer.css.js +4 -0
- package/esm/LayoutContainer.css.js.map +1 -0
- package/esm/LayoutContainer.js +31 -0
- package/esm/LayoutContainer.js.map +1 -0
- package/esm/dock-layout/DockLayout.css.js +4 -0
- package/esm/dock-layout/DockLayout.css.js.map +1 -0
- package/esm/dock-layout/DockLayout.js +39 -0
- package/esm/dock-layout/DockLayout.js.map +1 -0
- package/esm/dock-layout/Drawer.css.js +4 -0
- package/esm/dock-layout/Drawer.css.js.map +1 -0
- package/esm/dock-layout/Drawer.js +93 -0
- package/esm/dock-layout/Drawer.js.map +1 -0
- package/esm/drag-drop/BoxModel.js +409 -0
- package/esm/drag-drop/BoxModel.js.map +1 -0
- package/esm/drag-drop/DragState.js +159 -0
- package/esm/drag-drop/DragState.js.map +1 -0
- package/esm/drag-drop/Draggable.js +190 -0
- package/esm/drag-drop/Draggable.js.map +1 -0
- package/esm/drag-drop/DropTarget.js +253 -0
- package/esm/drag-drop/DropTarget.js.map +1 -0
- package/esm/drag-drop/DropTargetRenderer.js +216 -0
- package/esm/drag-drop/DropTargetRenderer.js.map +1 -0
- package/esm/flexbox/Flexbox.css.js +4 -0
- package/esm/flexbox/Flexbox.css.js.map +1 -0
- package/esm/flexbox/Flexbox.js +67 -0
- package/esm/flexbox/Flexbox.js.map +1 -0
- package/esm/flexbox/FlexboxLayout.js +28 -0
- package/esm/flexbox/FlexboxLayout.js.map +1 -0
- package/esm/flexbox/Splitter.css.js +4 -0
- package/esm/flexbox/Splitter.css.js.map +1 -0
- package/esm/flexbox/Splitter.js +120 -0
- package/esm/flexbox/Splitter.js.map +1 -0
- package/esm/flexbox/flexbox-utils.js +89 -0
- package/esm/flexbox/flexbox-utils.js.map +1 -0
- package/esm/flexbox/useSplitterResizing.js +195 -0
- package/esm/flexbox/useSplitterResizing.js.map +1 -0
- package/esm/index.js +33 -0
- package/esm/index.js.map +1 -0
- package/esm/layout-action.js +22 -0
- package/esm/layout-action.js.map +1 -0
- package/esm/layout-header/Header.css.js +4 -0
- package/esm/layout-header/Header.css.js.map +1 -0
- package/esm/layout-header/Header.js +150 -0
- package/esm/layout-header/Header.js.map +1 -0
- package/esm/layout-header/useHeader.js +83 -0
- package/esm/layout-header/useHeader.js.map +1 -0
- package/esm/layout-provider/LayoutProvider.js +297 -0
- package/esm/layout-provider/LayoutProvider.js.map +1 -0
- package/esm/layout-provider/LayoutProviderContext.js +20 -0
- package/esm/layout-provider/LayoutProviderContext.js.map +1 -0
- package/esm/layout-provider/useLayoutDragDrop.js +175 -0
- package/esm/layout-provider/useLayoutDragDrop.js.map +1 -0
- package/esm/layout-reducer/flexUtils.js +218 -0
- package/esm/layout-reducer/flexUtils.js.map +1 -0
- package/esm/layout-reducer/insert-layout-element.js +282 -0
- package/esm/layout-reducer/insert-layout-element.js.map +1 -0
- package/esm/layout-reducer/layout-reducer.js +200 -0
- package/esm/layout-reducer/layout-reducer.js.map +1 -0
- package/esm/layout-reducer/layoutTypes.js +36 -0
- package/esm/layout-reducer/layoutTypes.js.map +1 -0
- package/esm/layout-reducer/layoutUtils.js +226 -0
- package/esm/layout-reducer/layoutUtils.js.map +1 -0
- package/esm/layout-reducer/move-layout-element.js +29 -0
- package/esm/layout-reducer/move-layout-element.js.map +1 -0
- package/esm/layout-reducer/remove-layout-element.js +235 -0
- package/esm/layout-reducer/remove-layout-element.js.map +1 -0
- package/esm/layout-reducer/replace-layout-element.js +92 -0
- package/esm/layout-reducer/replace-layout-element.js.map +1 -0
- package/esm/layout-reducer/resize-flex-children.js +59 -0
- package/esm/layout-reducer/resize-flex-children.js.map +1 -0
- package/esm/layout-reducer/wrap-layout-element.js +209 -0
- package/esm/layout-reducer/wrap-layout-element.js.map +1 -0
- package/esm/layout-view/View.css.js +4 -0
- package/esm/layout-view/View.css.js.map +1 -0
- package/esm/layout-view/View.js +158 -0
- package/esm/layout-view/View.js.map +1 -0
- package/esm/layout-view/useView.js +73 -0
- package/esm/layout-view/useView.js.map +1 -0
- package/esm/layout-view/useViewBroadcastChannel.js +33 -0
- package/esm/layout-view/useViewBroadcastChannel.js.map +1 -0
- package/esm/layout-view/useViewResize.js +40 -0
- package/esm/layout-view/useViewResize.js.map +1 -0
- package/esm/layout-view-actions/ViewContext.js +12 -0
- package/esm/layout-view-actions/ViewContext.js.map +1 -0
- package/esm/layout-view-actions/useViewActionDispatcher.js +110 -0
- package/esm/layout-view-actions/useViewActionDispatcher.js.map +1 -0
- package/esm/layout-view-actions/useViewContributions.js +31 -0
- package/esm/layout-view-actions/useViewContributions.js.map +1 -0
- package/esm/palette/Palette.css.js +4 -0
- package/esm/palette/Palette.css.js.map +1 -0
- package/esm/palette/Palette.js +112 -0
- package/esm/palette/Palette.js.map +1 -0
- package/esm/placeholder/LayoutStartPanel.css.js +4 -0
- package/esm/placeholder/LayoutStartPanel.css.js.map +1 -0
- package/esm/placeholder/LayoutStartPanel.js +54 -0
- package/esm/placeholder/LayoutStartPanel.js.map +1 -0
- package/esm/placeholder/Placeholder.css.js +4 -0
- package/esm/placeholder/Placeholder.css.js.map +1 -0
- package/esm/placeholder/Placeholder.js +32 -0
- package/esm/placeholder/Placeholder.js.map +1 -0
- package/esm/responsive/useResizeObserver.js +112 -0
- package/esm/responsive/useResizeObserver.js.map +1 -0
- package/esm/responsive/utils.js +31 -0
- package/esm/responsive/utils.js.map +1 -0
- package/esm/stack/Stack.css.js +4 -0
- package/esm/stack/Stack.css.js.map +1 -0
- package/esm/stack/Stack.js +148 -0
- package/esm/stack/Stack.js.map +1 -0
- package/esm/stack/StackLayout.js +114 -0
- package/esm/stack/StackLayout.js.map +1 -0
- package/esm/use-persistent-state.js +58 -0
- package/esm/use-persistent-state.js.map +1 -0
- package/esm/utils/pathUtils.js +280 -0
- package/esm/utils/pathUtils.js.map +1 -0
- package/esm/utils/propUtils.js +23 -0
- package/esm/utils/propUtils.js.map +1 -0
- package/esm/utils/refUtils.js +10 -0
- package/esm/utils/refUtils.js.map +1 -0
- package/esm/utils/styleUtils.js +13 -0
- package/esm/utils/styleUtils.js.map +1 -0
- package/esm/utils/typeOf.js +23 -0
- package/esm/utils/typeOf.js.map +1 -0
- package/package.json +18 -15
- package/types/dock-layout/DockLayout.d.ts +4 -4
- package/types/dock-layout/Drawer.d.ts +4 -4
- package/types/drag-drop/BoxModel.d.ts +7 -7
- package/types/flexbox/FlexboxLayout.d.ts +4 -4
- package/types/flexbox/Splitter.d.ts +1 -1
- package/types/layout-reducer/layoutUtils.d.ts +1 -1
- package/types/layout-reducer/remove-layout-element.d.ts +1 -1
- package/types/layout-reducer/replace-layout-element.d.ts +2 -2
- package/types/layout-reducer/resize-flex-children.d.ts +2 -2
- package/types/layout-view/useView.d.ts +1 -1
- package/types/placeholder/Placeholder.d.ts +4 -4
- package/types/responsive/overflowUtils.d.ts +2 -2
- package/types/stack/StackLayout.d.ts +4 -4
- package/types/tools/devtools-box/layout-configurator.d.ts +26 -26
- package/types/tools/devtools-tree/layout-tree-viewer.d.ts +2 -2
- package/types/utils/pathUtils.d.ts +1 -1
- package/src/Component.js +0 -14
- package/src/LayoutContainer.css.js +0 -24
- package/src/LayoutContainer.js +0 -26
- package/src/debug.js +0 -16
- package/src/dock-layout/DockLayout.css.js +0 -36
- package/src/dock-layout/DockLayout.js +0 -43
- package/src/dock-layout/Drawer.css.js +0 -150
- package/src/dock-layout/Drawer.js +0 -82
- package/src/dock-layout/index.js +0 -2
- package/src/drag-drop/BoxModel.js +0 -337
- package/src/drag-drop/DragState.js +0 -119
- package/src/drag-drop/Draggable.js +0 -140
- package/src/drag-drop/DropTarget.js +0 -286
- package/src/drag-drop/DropTargetRenderer.js +0 -275
- package/src/drag-drop/dragDropTypes.js +0 -0
- package/src/drag-drop/index.js +0 -3
- package/src/flexbox/Flexbox.css.js +0 -45
- package/src/flexbox/Flexbox.js +0 -45
- package/src/flexbox/FlexboxLayout.js +0 -27
- package/src/flexbox/Splitter.css.js +0 -57
- package/src/flexbox/Splitter.js +0 -112
- package/src/flexbox/flexbox-utils.js +0 -92
- package/src/flexbox/flexboxTypes.js +0 -0
- package/src/flexbox/index.js +0 -2
- package/src/flexbox/useSplitterResizing.js +0 -181
- package/src/index.js +0 -20
- package/src/layout-action.js +0 -20
- package/src/layout-header/ActionButton.js +0 -15
- package/src/layout-header/Header.css.js +0 -32
- package/src/layout-header/Header.js +0 -99
- package/src/layout-header/index.js +0 -1
- package/src/layout-header/useHeader.js +0 -76
- package/src/layout-provider/LayoutProvider.js +0 -242
- package/src/layout-provider/LayoutProviderContext.js +0 -13
- package/src/layout-provider/index.js +0 -2
- package/src/layout-provider/useLayoutDragDrop.js +0 -147
- package/src/layout-reducer/flexUtils.js +0 -186
- package/src/layout-reducer/index.js +0 -4
- package/src/layout-reducer/insert-layout-element.js +0 -179
- package/src/layout-reducer/layout-reducer.js +0 -121
- package/src/layout-reducer/layoutTypes.js +0 -34
- package/src/layout-reducer/layoutUtils.js +0 -178
- package/src/layout-reducer/move-layout-element.js +0 -18
- package/src/layout-reducer/remove-layout-element.js +0 -161
- package/src/layout-reducer/replace-layout-element.js +0 -70
- package/src/layout-reducer/resize-flex-children.js +0 -48
- package/src/layout-reducer/wrap-layout-element.js +0 -134
- package/src/layout-view/View.css.js +0 -76
- package/src/layout-view/View.js +0 -116
- package/src/layout-view/useView.js +0 -69
- package/src/layout-view/useViewBroadcastChannel.js +0 -29
- package/src/layout-view/useViewResize.js +0 -27
- package/src/layout-view/viewTypes.js +0 -0
- package/src/layout-view-actions/ViewContext.js +0 -11
- package/src/layout-view-actions/useViewActionDispatcher.js +0 -116
- package/src/layout-view-actions/useViewContributions.js +0 -31
- package/src/palette/Palette.css.js +0 -31
- package/src/palette/Palette.js +0 -85
- package/src/palette/index.js +0 -1
- package/src/placeholder/LayoutStartPanel.css.js +0 -35
- package/src/placeholder/LayoutStartPanel.js +0 -57
- package/src/placeholder/Placeholder.css.js +0 -20
- package/src/placeholder/Placeholder.js +0 -33
- package/src/placeholder/index.js +0 -1
- package/src/responsive/index.js +0 -2
- package/src/responsive/measureMinimumNodeSize.js +0 -24
- package/src/responsive/useResizeObserver.js +0 -109
- package/src/responsive/utils.js +0 -27
- package/src/stack/Stack.css.js +0 -44
- package/src/stack/Stack.js +0 -98
- package/src/stack/StackLayout.js +0 -116
- package/src/stack/index.js +0 -3
- package/src/stack/stackTypes.js +0 -0
- package/src/tabs/TabPanel.css.js +0 -17
- package/src/tabs/TabPanel.js +0 -11
- package/src/tabs/index.js +0 -1
- package/src/tools/config-wrapper/ConfigWrapper.js +0 -55
- package/src/tools/config-wrapper/index.js +0 -1
- package/src/tools/devtools-box/layout-configurator.css.js +0 -113
- package/src/tools/devtools-tree/layout-tree-viewer.css.js +0 -17
- package/src/tools/index.js +0 -3
- package/src/use-persistent-state.js +0 -43
- package/src/utils/index.js +0 -5
- package/src/utils/pathUtils.js +0 -212
- package/src/utils/propUtils.js +0 -15
- package/src/utils/refUtils.js +0 -5
- package/src/utils/styleUtils.js +0 -9
- package/src/utils/typeOf.js +0 -15
|
@@ -10,7 +10,7 @@ export interface PlaceholderProps extends ViewProps {
|
|
|
10
10
|
*/
|
|
11
11
|
shim?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
13
|
+
export declare const Placeholder: {
|
|
14
|
+
({ className: classNameProp, showStartMenu, ...viewProps }: PlaceholderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export function getOverflowedItems(containerRef: any, height?: number): any[][];
|
|
2
|
+
export function findFirstOverflow(elements: any, height: any): number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StackProps } from "./stackTypes";
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
2
|
+
export declare const StackLayout: {
|
|
3
|
+
(props: StackProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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, }: {
|
|
25
26
|
height: any;
|
|
26
27
|
managedStyle: any;
|
|
27
28
|
onChange: any;
|
|
28
29
|
style: any;
|
|
29
30
|
width: any;
|
|
30
|
-
})
|
|
31
|
-
export declare function XXXnormalizeStyles(layoutStyle?: {}, visualStyle?: {}): {};
|
|
31
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
1
|
+
export function LayoutTreeViewer({ layout, onSelect: _, style }: {
|
|
2
2
|
layout: any;
|
|
3
3
|
onSelect: any;
|
|
4
4
|
style: any;
|
|
5
|
-
})
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,7 +17,7 @@ export declare function followPathToParent(source: ReactElement, path: string):
|
|
|
17
17
|
export declare function findTarget(source: LayoutModel | undefined, test: (props: any) => boolean): LayoutModel | undefined;
|
|
18
18
|
export declare function containerOf(source: LayoutModel, target: LayoutModel): LayoutModel | null;
|
|
19
19
|
export declare const getChild: (children: ReactElement[], idx: number) => ReactElement | undefined;
|
|
20
|
-
export declare function followPathToComponent(component: ReactElement, path: string): ReactElement<unknown, string | React.JSXElementConstructor<any>> | undefined;
|
|
20
|
+
export declare function followPathToComponent(component: ReactElement, path: string): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | undefined;
|
|
21
21
|
export declare function followPath(source: LayoutModel, path: string): LayoutModel | undefined;
|
|
22
22
|
export declare function followPath(source: ReactElement, path: string, throwIfNotFound: true): ReactElement;
|
|
23
23
|
export declare function nextLeaf(root: ReactElement, path: string): any;
|
package/src/Component.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { registerComponent } from "@vuu-ui/vuu-utils";
|
|
4
|
-
const Component_Component = /*#__PURE__*/ forwardRef(function({ resizeable, ...props }, ref) {
|
|
5
|
-
return /*#__PURE__*/ jsx("div", {
|
|
6
|
-
...props,
|
|
7
|
-
className: "Component",
|
|
8
|
-
ref: ref
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
Component_Component.displayName = "Component";
|
|
12
|
-
var src_Component = Component_Component;
|
|
13
|
-
registerComponent("Component", Component_Component, "component");
|
|
14
|
-
export default src_Component;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const css = `
|
|
2
|
-
.vuuLayoutContainer {
|
|
3
|
-
outline: none;
|
|
4
|
-
display: inline-block;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
[data-dragging="true"] {
|
|
8
|
-
z-index: 100;
|
|
9
|
-
position: absolute !important;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.vuuSimpleDraggableWrapper {
|
|
13
|
-
background-color: #fff;
|
|
14
|
-
box-shadow: 0 6px 10px #0003;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.vuuSimpleDraggableWrapper > * {
|
|
18
|
-
width: 100%;
|
|
19
|
-
height: 100%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
`;
|
|
24
|
-
export default css;
|
package/src/LayoutContainer.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { registerComponent } from "@vuu-ui/vuu-utils";
|
|
3
|
-
import { useComponentCssInjection } from "@salt-ds/styles";
|
|
4
|
-
import { useWindow } from "@salt-ds/window";
|
|
5
|
-
import clsx from "clsx";
|
|
6
|
-
import { forwardRef } from "react";
|
|
7
|
-
import LayoutContainer_0 from "./LayoutContainer.css";
|
|
8
|
-
const LayoutContainer_LayoutContainer = /*#__PURE__*/ forwardRef(function({ children, className: classNameProp, dropTarget, resizeable: _, ...htmlAttributes }, forwardedRef) {
|
|
9
|
-
const targetWindow = useWindow();
|
|
10
|
-
useComponentCssInjection({
|
|
11
|
-
testId: "vuu-layout-container",
|
|
12
|
-
css: LayoutContainer_0,
|
|
13
|
-
window: targetWindow
|
|
14
|
-
});
|
|
15
|
-
const className = clsx("vuuLayoutContainer", classNameProp);
|
|
16
|
-
return /*#__PURE__*/ jsx("div", {
|
|
17
|
-
className: className,
|
|
18
|
-
ref: forwardedRef,
|
|
19
|
-
...htmlAttributes,
|
|
20
|
-
children: children
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
const componentName = "LayoutContainer";
|
|
24
|
-
LayoutContainer_LayoutContainer.displayName = componentName;
|
|
25
|
-
registerComponent(componentName, LayoutContainer_LayoutContainer, "container");
|
|
26
|
-
export { LayoutContainer_LayoutContainer as LayoutContainer };
|
package/src/debug.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { typeOf } from "./utils/index.js";
|
|
2
|
-
const tree = (el, depth = 0)=>{
|
|
3
|
-
const type = typeOf(el);
|
|
4
|
-
const spaces = " ";
|
|
5
|
-
let str = `\n${spaces.slice(0, depth)}${type}`;
|
|
6
|
-
if ("View" !== type) {
|
|
7
|
-
const els = el.props.children || [];
|
|
8
|
-
(Array.isArray(els) ? els : [
|
|
9
|
-
els
|
|
10
|
-
]).forEach((child)=>{
|
|
11
|
-
str += tree(child, depth + 1);
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
return str;
|
|
15
|
-
};
|
|
16
|
-
export { tree };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const css = `
|
|
2
|
-
.vuuDockLayout {
|
|
3
|
-
--chest-bg: var(--hw-chest-bg, inherit);
|
|
4
|
-
--drawer-bg: var(--hw-drawer-bg, inherit);
|
|
5
|
-
--drawer-size: var(--hw-drawer-size, 200px);
|
|
6
|
-
--drawer-peek-size: var(--hw-drawer-peek-size, 32px);
|
|
7
|
-
--drawer-transition-duration: var(--hw-drawer-transition-duration, .4s);
|
|
8
|
-
background-color: var(--chest-bg);
|
|
9
|
-
display: flex;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.vuuDockLayout-horizontal {
|
|
13
|
-
flex-direction: row;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.vuuDockLayout-vertical {
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.vuuDockLayout-content {
|
|
21
|
-
background-color: var(--chest-bg);
|
|
22
|
-
flex-grow: 1;
|
|
23
|
-
flex-shrink: 1;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
align-items: center;
|
|
26
|
-
display: flex;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.vuuDockLayout-horizontal .vuuDockLayout-content, .vuuDockLayout-vertical .vuuDockLayout-content {
|
|
31
|
-
flex-basis: 100%;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
`;
|
|
36
|
-
export default css;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { asReactElements, partition, registerComponent } from "@vuu-ui/vuu-utils";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { useComponentCssInjection } from "@salt-ds/styles";
|
|
5
|
-
import { useWindow } from "@salt-ds/window";
|
|
6
|
-
import { useMemo } from "react";
|
|
7
|
-
import Drawer from "./Drawer.js";
|
|
8
|
-
import DockLayout from "./DockLayout.css";
|
|
9
|
-
const isDrawer = (component)=>component.type === Drawer;
|
|
10
|
-
const isVertical = (element)=>element.props.position && element.props.position.match(/top|bottom/);
|
|
11
|
-
const classBase = "vuuDockLayout";
|
|
12
|
-
const DockLayout_DockLayout = (props)=>{
|
|
13
|
-
const targetWindow = useWindow();
|
|
14
|
-
useComponentCssInjection({
|
|
15
|
-
testId: "vuu-dock-layput",
|
|
16
|
-
css: DockLayout,
|
|
17
|
-
window: targetWindow
|
|
18
|
-
});
|
|
19
|
-
const { children, className: classNameProp, id, style } = props;
|
|
20
|
-
const childElements = useMemo(()=>asReactElements(children), [
|
|
21
|
-
children
|
|
22
|
-
]);
|
|
23
|
-
const [drawers, content] = partition(childElements, isDrawer);
|
|
24
|
-
const [verticalDrawers, horizontalDrawers] = partition(drawers, isVertical);
|
|
25
|
-
const orientation = 0 === verticalDrawers.length ? "horizontal" : 0 === horizontalDrawers.length ? "vertical" : "both";
|
|
26
|
-
const className = clsx(classBase, classNameProp, `${classBase}-${orientation}`);
|
|
27
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
28
|
-
className: className,
|
|
29
|
-
id: id,
|
|
30
|
-
style: style,
|
|
31
|
-
children: [
|
|
32
|
-
drawers,
|
|
33
|
-
/*#__PURE__*/ jsx("div", {
|
|
34
|
-
className: `${classBase}-content`,
|
|
35
|
-
children: content
|
|
36
|
-
})
|
|
37
|
-
]
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
DockLayout_DockLayout.displayName = "DockLayout";
|
|
41
|
-
var dock_layout_DockLayout = DockLayout_DockLayout;
|
|
42
|
-
registerComponent("DockLayout", DockLayout_DockLayout, "container");
|
|
43
|
-
export default dock_layout_DockLayout;
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
const css = `
|
|
2
|
-
.vuuDrawer {
|
|
3
|
-
--drawer-leading-edge-border: solid 1px var(--salt-container-primary-borderColor, none);
|
|
4
|
-
--vuu-close-icon-svg: var(--svg-chevron-double-right);
|
|
5
|
-
transition: flex-basis;
|
|
6
|
-
transition-duration: var(--drawer-transition-duration);
|
|
7
|
-
z-index: 1;
|
|
8
|
-
flex: 1 1 0;
|
|
9
|
-
min-width: 0;
|
|
10
|
-
min-height: 0;
|
|
11
|
-
display: flex;
|
|
12
|
-
position: relative;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.vuuDrawer-peekaboo {
|
|
16
|
-
flex-basis: var(--drawer-peek-size);
|
|
17
|
-
flex-grow: 0;
|
|
18
|
-
flex-shrink: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.vuuDrawer-inline.vuuDrawer-open {
|
|
22
|
-
flex-basis: var(--drawer-size);
|
|
23
|
-
flex-grow: 0;
|
|
24
|
-
flex-shrink: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.vuuDrawer-liner {
|
|
28
|
-
background-color: var(--drawer-bg);
|
|
29
|
-
position: relative;
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.vuuDrawer-content {
|
|
34
|
-
height: 100%;
|
|
35
|
-
top: 0;
|
|
36
|
-
right: var(--drawer-peek-size);
|
|
37
|
-
transition: right;
|
|
38
|
-
transition-duration: var(--drawer-transition-duration);
|
|
39
|
-
flex: 100%;
|
|
40
|
-
width: 100%;
|
|
41
|
-
position: absolute;
|
|
42
|
-
overflow: hidden;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.vuuDrawer-open .vuuDrawer-content {
|
|
46
|
-
right: 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.vuuDrawer-left {
|
|
50
|
-
border-right: var(--drawer-leading-edge-border);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.vuuDrawer-right {
|
|
54
|
-
border-left: var(--drawer-leading-edge-border);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.vuuDrawer-top {
|
|
58
|
-
border-bottom: var(--drawer-leading-edge-border);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.vuuDrawer-bottom {
|
|
62
|
-
border-top: var(--drawer-leading-edge-border);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.vuuDrawer-left .vuuDrawer-liner, .vuuDrawer-right .vuuDrawer-liner {
|
|
66
|
-
height: 100%;
|
|
67
|
-
transition: width;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.vuuDrawer-top .vuuDrawer-liner, .vuuDrawer-bottom .vuuDrawer-liner {
|
|
71
|
-
width: 100%;
|
|
72
|
-
transition: height;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.vuuDrawer-inline .vuuDrawer-liner {
|
|
76
|
-
width: 100%;
|
|
77
|
-
height: 100%;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.vuuDrawer-over .vuuDrawer-liner {
|
|
81
|
-
transition-duration: .4s;
|
|
82
|
-
position: absolute;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.vuuDrawer-over.vuuDrawer-left .vuuDrawer-liner {
|
|
86
|
-
width: 0;
|
|
87
|
-
top: 0;
|
|
88
|
-
left: 0;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.vuuDrawer-over.vuuDrawer-right .vuuDrawer-liner {
|
|
92
|
-
width: 0;
|
|
93
|
-
top: 0;
|
|
94
|
-
right: 0;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.vuuDrawer-over.vuuDrawer-top .vuuDrawer-liner {
|
|
98
|
-
height: 0;
|
|
99
|
-
top: 0;
|
|
100
|
-
left: 0;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.vuuDrawer-over.vuuDrawer-bottom .vuuDrawer-liner {
|
|
104
|
-
height: 0;
|
|
105
|
-
bottom: 0;
|
|
106
|
-
left: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.vuuDrawer-left.vuuDrawer-over.vuuDrawer-peekaboo .vuuDrawer-liner, .vuuDrawer-right.vuuDrawer-over.vuuDrawer-peekaboo .vuuDrawer-liner {
|
|
110
|
-
width: var(--drawer-peek-size);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.vuuDrawer-top.vuuDrawer-over.vuuDrawer-peekaboo .vuuDrawer-liner, .vuuDrawer-bottom.vuuDrawer-over.vuuDrawer-peekaboo .vuuDrawer-liner {
|
|
114
|
-
height: var(--drawer-peek-size);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.vuuDrawer-left.vuuDrawer-over.vuuDrawer-open .vuuDrawer-liner, .vuuDrawer-right.vuuDrawer-over.vuuDrawer-open .vuuDrawer-liner {
|
|
118
|
-
width: var(--drawer-size);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.vuuDrawer-top.vuuDrawer-over.vuuDrawer-open .vuuDrawer-liner, .vuuDrawer-bottom.vuuDrawer-over.vuuDrawer-open .vuuDrawer-liner {
|
|
122
|
-
height: var(--drawer-size);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.vuuDrawer-top, .vuuDrawer-left {
|
|
126
|
-
order: 0;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.vuuDrawer-bottom, .vuuDrawer-right {
|
|
130
|
-
order: 99;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.vuuDrawer-left, .vuuDrawer-right {
|
|
134
|
-
flex-direction: column;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.vuuToggleButton-container {
|
|
138
|
-
--saltButton-height: 28px;
|
|
139
|
-
--saltButton-width: 28px;
|
|
140
|
-
--vuu-icon-size: 12px;
|
|
141
|
-
flex: 0 0 28px;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.vuuDrawer-open {
|
|
145
|
-
--vuu-close-icon-svg: var(--svg-chevron-double-left);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
`;
|
|
150
|
-
export default css;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button, useControlled } from "@salt-ds/core";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { useComponentCssInjection } from "@salt-ds/styles";
|
|
5
|
-
import { useWindow } from "@salt-ds/window";
|
|
6
|
-
import { useCallback } from "react";
|
|
7
|
-
import Drawer from "./Drawer.css";
|
|
8
|
-
const classBase = "vuuDrawer";
|
|
9
|
-
const sizeAttribute = (value)=>"string" == typeof value ? value : value + "px";
|
|
10
|
-
const getStyle = (styleProp, sizeOpen, sizeClosed)=>{
|
|
11
|
-
const hasSizeOpen = void 0 !== sizeOpen;
|
|
12
|
-
const hasSizeClosed = void 0 !== sizeClosed;
|
|
13
|
-
if (!styleProp && !hasSizeClosed && !hasSizeOpen) return;
|
|
14
|
-
if (!hasSizeClosed && !hasSizeOpen) return styleProp;
|
|
15
|
-
return {
|
|
16
|
-
...styleProp,
|
|
17
|
-
"--drawer-size": hasSizeOpen ? sizeAttribute(sizeOpen) : void 0,
|
|
18
|
-
"--drawer-peek-size": hasSizeClosed ? sizeAttribute(sizeClosed) : void 0
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
const Drawer_Drawer = ({ children, className: classNameProp, clickToOpen, defaultOpen, sizeOpen, sizeClosed, style: styleProp, open: openProp, position = "left", inline, onClick, peekaboo = false, toggleButton, ...props })=>{
|
|
22
|
-
const targetWindow = useWindow();
|
|
23
|
-
useComponentCssInjection({
|
|
24
|
-
testId: "vuu-drawer",
|
|
25
|
-
css: Drawer,
|
|
26
|
-
window: targetWindow
|
|
27
|
-
});
|
|
28
|
-
const [open, setOpen] = useControlled({
|
|
29
|
-
controlled: openProp,
|
|
30
|
-
default: defaultOpen ?? false,
|
|
31
|
-
name: "Drawer",
|
|
32
|
-
state: "open"
|
|
33
|
-
});
|
|
34
|
-
const className = clsx(classBase, classNameProp, `${classBase}-${position}`, {
|
|
35
|
-
[`${classBase}-open`]: open,
|
|
36
|
-
[`${classBase}-inline`]: inline,
|
|
37
|
-
[`${classBase}-over`]: !inline,
|
|
38
|
-
[`${classBase}-peekaboo`]: peekaboo
|
|
39
|
-
});
|
|
40
|
-
const toggleDrawer = useCallback(()=>{
|
|
41
|
-
setOpen(!open);
|
|
42
|
-
}, [
|
|
43
|
-
open,
|
|
44
|
-
setOpen
|
|
45
|
-
]);
|
|
46
|
-
const style = getStyle(styleProp, sizeOpen, sizeClosed);
|
|
47
|
-
const handleClick = clickToOpen ? toggleDrawer : onClick;
|
|
48
|
-
const renderToggleButton = ()=>/*#__PURE__*/ jsx("div", {
|
|
49
|
-
className: clsx("vuuToggleButton-container"),
|
|
50
|
-
children: open ? /*#__PURE__*/ jsx(Button, {
|
|
51
|
-
"aria-label": "close",
|
|
52
|
-
onClick: toggleDrawer,
|
|
53
|
-
"data-icon": "close",
|
|
54
|
-
variant: "secondary"
|
|
55
|
-
}) : /*#__PURE__*/ jsx(Button, {
|
|
56
|
-
"aria-label": "open",
|
|
57
|
-
onClick: toggleDrawer,
|
|
58
|
-
"data-icon": "close",
|
|
59
|
-
variant: "secondary"
|
|
60
|
-
})
|
|
61
|
-
});
|
|
62
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
63
|
-
...props,
|
|
64
|
-
className: className,
|
|
65
|
-
onClick: handleClick,
|
|
66
|
-
style: style,
|
|
67
|
-
children: [
|
|
68
|
-
"start" == toggleButton ? renderToggleButton() : null,
|
|
69
|
-
/*#__PURE__*/ jsx("div", {
|
|
70
|
-
className: `${classBase}-liner`,
|
|
71
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
72
|
-
className: `${classBase}-content`,
|
|
73
|
-
children: children
|
|
74
|
-
})
|
|
75
|
-
}),
|
|
76
|
-
"end" == toggleButton ? renderToggleButton() : null
|
|
77
|
-
]
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
Drawer_Drawer.displayName = "Drawer";
|
|
81
|
-
var dock_layout_Drawer = Drawer_Drawer;
|
|
82
|
-
export default dock_layout_Drawer;
|
package/src/dock-layout/index.js
DELETED