@vizzly/dashboard 0.14.4-dev-832eca0b258dfaa3abfe3967e202fbb15725a7b8 → 0.14.4-dev-9e6500890881ab85ea11fab47f37a0538edeea8e
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/dist/index.js +1 -8
- package/dist/shared-ui/src/base/ListView/ListItem.d.ts +0 -1
- package/dist/shared-ui/src/base/ListView/index.d.ts +1 -1
- package/dist/shared-ui/src/components/DataTable/resizing.d.ts +1 -3
- package/dist/shared-ui/src/components/DragAndDrop/DndWrapper.d.ts +0 -7
- package/dist/shared-ui/src/components/DragAndDrop/WidthChangingDnd.d.ts +0 -2
- package/dist/shared-ui/src/components/Studio/StudioApp/Cell.d.ts +1 -0
- package/dist/shared-ui/src/components/Studio/StudioApp/DragHandle.d.ts +1 -10
- package/dist/shared-ui/src/hooks/useDraggable.d.ts +17 -0
- package/dist/shared-ui/src/hooks/useMoveComponentDrag.d.ts +11 -0
- package/dist/shared-ui/src/hooks/useResizableRow.d.ts +30 -0
- package/dist/shared-ui/src/library/ResizableRowCell.d.ts +1 -0
- package/package.json +4 -16
- package/dist/dashboard.cjs.development.js +0 -66636
- package/dist/dashboard.cjs.production.min.js +0 -1
- package/dist/dashboard.esm.js +0 -66665
- package/dist/shared-ui/src/base/Dragging/DragLayer.d.ts +0 -12
- package/dist/shared-ui/src/base/Dragging/DropArea.d.ts +0 -9
- package/dist/shared-ui/src/base/Dragging/index.d.ts +0 -3
- package/dist/shared-ui/src/base/Dragging/useDropZone.d.ts +0 -6
- package/dist/shared-ui/src/base/ListView/useReOrderDrag.d.ts +0 -7
|
@@ -18,11 +18,11 @@ export declare const List: import("react").FunctionComponent<{
|
|
|
18
18
|
empty?: string | number | (string & {}) | undefined;
|
|
19
19
|
disabled?: boolean | undefined;
|
|
20
20
|
}>;
|
|
21
|
+
Item: any;
|
|
21
22
|
Container: import("react").FunctionComponent<{
|
|
22
23
|
hasDeleteIcon?: boolean | undefined;
|
|
23
24
|
children?: import("react").ReactNode;
|
|
24
25
|
}>;
|
|
25
|
-
Item: any;
|
|
26
26
|
Heading: import("react").FunctionComponent<{
|
|
27
27
|
children: import("react").ReactNode;
|
|
28
28
|
as?: "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "menuitem" | "legend" | "desc" | "title" | "big" | "link" | "sup" | "header" | "select" | "input" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "ins" | "kbd" | "keygen" | "label" | "li" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "slot" | "script" | "section" | "source" | "span" | "strong" | "summary" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | undefined;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare function buildDefaultColumnWidth(tableWidth: number, numberOfColumns: number): number;
|
|
2
|
-
export declare const useResizingColumn: () =>
|
|
3
|
-
[x: string]: number;
|
|
4
|
-
} | undefined;
|
|
2
|
+
export declare const useResizingColumn: () => void;
|
|
5
3
|
export declare function buildColumnWidth(datumKey: string, sizing: {
|
|
6
4
|
[keyId: string]: {
|
|
7
5
|
width?: number | undefined;
|
|
@@ -3,14 +3,7 @@ import { DragDropManager } from 'dnd-core';
|
|
|
3
3
|
import { HTML5BackendImpl } from '@vizzly/dnd-backend';
|
|
4
4
|
import { HTML5BackendContext, HTML5BackendOptions } from '@vizzly/dnd-backend';
|
|
5
5
|
export declare const HTML5Backend: (manager: DragDropManager, context: HTML5BackendContext, options: HTML5BackendOptions | undefined) => HTML5BackendImpl;
|
|
6
|
-
export declare const DndProvider: FunctionComponent<{
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
id: string;
|
|
9
|
-
}>;
|
|
10
6
|
export declare const ComponentDndWrapper: FunctionComponent<{
|
|
11
7
|
children: React.ReactNode;
|
|
12
8
|
disable: boolean;
|
|
13
9
|
}>;
|
|
14
|
-
export declare const DndModal: FunctionComponent<{
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
}>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DisplayRow } from '../../../../shared-logic/src/Display/types';
|
|
3
2
|
export declare const WidthChangingDnd: (props: {
|
|
4
3
|
dropIndex: number;
|
|
5
4
|
colWidth: number;
|
|
6
5
|
active: boolean;
|
|
7
|
-
onDrop: (cellIndex: number, moved: number, displayRow: DisplayRow) => void;
|
|
8
6
|
}) => JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, CSSProperties } from 'react';
|
|
2
|
-
import { ConnectDragSource } from 'react-dnd';
|
|
3
2
|
declare type Props = {
|
|
4
|
-
dragSource?:
|
|
3
|
+
dragSource?: any;
|
|
5
4
|
active: boolean;
|
|
6
5
|
enabled: boolean;
|
|
7
6
|
top?: number;
|
|
@@ -10,12 +9,4 @@ declare type Props = {
|
|
|
10
9
|
};
|
|
11
10
|
export declare const MoveComponentDragHandle: (props: Props) => JSX.Element;
|
|
12
11
|
export declare const DragHandle: FunctionComponent<Omit<Props, 'dragSource' | 'enabled'>>;
|
|
13
|
-
export declare const useMoveComponentDrag: (rowIndex: number, cellIndex: number) => [{
|
|
14
|
-
adjust: import("react-dnd").XYCoord | null;
|
|
15
|
-
isDragging: boolean;
|
|
16
|
-
}, import("react-dnd").DragElementWrapper<import("react-dnd").DragSourceOptions>, import("react-dnd").DragElementWrapper<import("react-dnd").DragPreviewOptions>];
|
|
17
|
-
export declare const useMoveRow: (currentRowIndex: number) => [{
|
|
18
|
-
adjust: import("react-dnd").XYCoord | null;
|
|
19
|
-
isDragging: boolean;
|
|
20
|
-
}, import("react-dnd").DragElementWrapper<import("react-dnd").DragSourceOptions>, import("react-dnd").DragElementWrapper<import("react-dnd").DragPreviewOptions>];
|
|
21
12
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Moved = {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
};
|
|
6
|
+
export declare type useDraggableParams = {
|
|
7
|
+
initialData?: any;
|
|
8
|
+
onMoved?: (moved: Moved, initialData: any) => void;
|
|
9
|
+
onStart?: (initialData: any) => void;
|
|
10
|
+
onEnd?: (initialData: any) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const useDraggable: (params: useDraggableParams) => {
|
|
13
|
+
draggableRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
14
|
+
isDragging: boolean;
|
|
15
|
+
moved: Moved | null;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type useDraggableParams = {
|
|
3
|
+
initialData: {
|
|
4
|
+
rowIndex: number;
|
|
5
|
+
cellIndex: number;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare const useMoveComponentDrag: (params: useDraggableParams) => {
|
|
9
|
+
dragContentRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
10
|
+
dragHandleRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DisplayRow } from '../../../shared-logic/src/Display/types';
|
|
3
|
+
declare type params = {
|
|
4
|
+
displayRow: DisplayRow;
|
|
5
|
+
colWidth: number;
|
|
6
|
+
onColSpanChange: (colSpans: Array<{
|
|
7
|
+
colSpan: number;
|
|
8
|
+
}>) => void;
|
|
9
|
+
persistRowHeight: (rowHeight: number) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const useResizableRow: (params: params) => {
|
|
12
|
+
activeCell: number | null;
|
|
13
|
+
setActiveCell: import("react").Dispatch<import("react").SetStateAction<number | null>>;
|
|
14
|
+
activeRow: number | null;
|
|
15
|
+
setActiveRow: import("react").Dispatch<import("react").SetStateAction<number | null>>;
|
|
16
|
+
isDraggingComponentWidth: boolean;
|
|
17
|
+
setIsDraggingComponentWidth: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
18
|
+
widthAdjustments: {
|
|
19
|
+
[cell: number]: number;
|
|
20
|
+
};
|
|
21
|
+
setWidthAdjustments: import("react").Dispatch<import("react").SetStateAction<{
|
|
22
|
+
[cell: number]: number;
|
|
23
|
+
}>>;
|
|
24
|
+
rowHeightAdjustment: number;
|
|
25
|
+
setRowHeightAdjustment: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
26
|
+
onCellWidthChangeFinalised: (cellIndex: number) => void;
|
|
27
|
+
moveType: string | null;
|
|
28
|
+
persistRowHeight: () => void;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizzly/dashboard",
|
|
3
3
|
"author": "james@vizzly.co",
|
|
4
|
-
"version": "0.14.4-dev-
|
|
4
|
+
"version": "0.14.4-dev-9e6500890881ab85ea11fab47f37a0538edeea8e",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "./dist/dashboard/src/index.d.ts",
|
|
7
|
-
"module": "./dist/dashboard.esm.js",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/dashboard/src/index.d.ts",
|
|
11
|
-
"import": "./dist/dashboard.esm.js",
|
|
12
|
-
"require": "./dist/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./src": {
|
|
15
|
-
"default": "./src/index.tsx"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
7
|
"main": "dist/index.js",
|
|
8
|
+
"type": "commonjs",
|
|
19
9
|
"typings": "./dist/dashboard/src/index.d.ts",
|
|
20
10
|
"files": [
|
|
21
11
|
"dist"
|
|
@@ -50,10 +40,9 @@
|
|
|
50
40
|
"@react-spring/web": "9.6.1",
|
|
51
41
|
"@visx/visx": "^3.10.2",
|
|
52
42
|
"@vizzly/api-client": "0.0.43",
|
|
53
|
-
"@vizzly/dnd-backend": "0.0.5",
|
|
54
43
|
"@vizzly/joi": "^17.7.0",
|
|
55
|
-
"@vizzly/semantic-layer-public": "0.0.
|
|
56
|
-
"@vizzly/sqlbuilder-public": "0.1.
|
|
44
|
+
"@vizzly/semantic-layer-public": "0.0.223",
|
|
45
|
+
"@vizzly/sqlbuilder-public": "0.1.28",
|
|
57
46
|
"chroma-js": "2.4.2",
|
|
58
47
|
"copy-to-clipboard": "^3.3.3",
|
|
59
48
|
"cross-fetch": "^4.0.0",
|
|
@@ -67,7 +56,6 @@
|
|
|
67
56
|
"lodash-es": "^4.17.21",
|
|
68
57
|
"moment-timezone": "^0.5.45",
|
|
69
58
|
"react-dates-17": "22.0.8",
|
|
70
|
-
"react-dnd": "^16",
|
|
71
59
|
"react-popper": "^2.3.0",
|
|
72
60
|
"react-visibility-sensor": "^5.1.1",
|
|
73
61
|
"tiny-invariant": "^1.3.1",
|