seat-editor 3.4.8 → 3.5.0
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/app/constant.d.ts +1 -1
- package/dist/app/graph-view/page.d.ts +1 -0
- package/dist/app/graph-view/page.js +343 -0
- package/dist/app/graph-view/page.jsx +445 -0
- package/dist/app/graph-view-new/constant.d.ts +581 -0
- package/dist/app/graph-view-new/constant.js +6973 -0
- package/dist/app/graph-view-new/page.d.ts +1 -0
- package/dist/app/graph-view-new/page.js +71 -0
- package/dist/app/graph-view-new/page.jsx +98 -0
- package/dist/app/layout.d.ts +1 -1
- package/dist/app/new-board/page.d.ts +1 -1
- package/dist/app/new-board/page.js +43 -7
- package/dist/app/new-board/page.jsx +45 -12
- package/dist/app/old-board/page.d.ts +1 -2
- package/dist/app/only-view/chair.d.ts +1 -1
- package/dist/app/only-view/chair.js +2 -10
- package/dist/app/only-view/page.d.ts +1 -1
- package/dist/app/only-view/user.d.ts +1 -1
- package/dist/app/only-view/user.js +2 -10
- package/dist/app/page.d.ts +1 -1
- package/dist/app/test/page.d.ts +1 -2
- package/dist/app/v2/page.d.ts +1 -1
- package/dist/components/button-tools/index.d.ts +1 -1
- package/dist/components/button-tools/index.js +7 -5
- package/dist/components/button-tools/index.jsx +21 -9
- package/dist/components/form-tools/label.d.ts +1 -1
- package/dist/components/form-tools/label.js +9 -20
- package/dist/components/form-tools/label.jsx +38 -28
- package/dist/components/form-tools/shape.d.ts +1 -1
- package/dist/components/form-tools/shape.js +5 -5
- package/dist/components/form-tools/shape.jsx +8 -8
- package/dist/components/input/number-indicator.d.ts +1 -1
- package/dist/components/joystick/index.d.ts +1 -2
- package/dist/components/layer/index.d.ts +1 -1
- package/dist/components/layer-v2/index.d.ts +1 -1
- package/dist/components/layer-v3/index.d.ts +1 -1
- package/dist/components/layer-v3/index.js +44 -3
- package/dist/components/layer-v3/index.jsx +120 -3
- package/dist/components/layer-v4/index.d.ts +1 -1
- package/dist/components/layer-v5/constant.d.ts +60 -0
- package/dist/components/layer-v5/constant.js +93 -0
- package/dist/components/layer-v5/index.d.ts +24 -0
- package/dist/components/layer-v5/index.js +927 -0
- package/dist/components/layer-v5/index.jsx +1049 -0
- package/dist/components/lib/index.d.ts +1 -1
- package/dist/components/modal-preview/index.d.ts +1 -1
- package/dist/features/board/index.d.ts +1 -1
- package/dist/features/board-v2/index.d.ts +1 -2
- package/dist/features/board-v3/index.d.ts +1 -1
- package/dist/features/board-v3/index.js +350 -72
- package/dist/features/board-v3/index.jsx +369 -75
- package/dist/features/board-v3/resize-element.js +5 -0
- package/dist/features/board-v3/utils.d.ts +8 -0
- package/dist/features/board-v3/utils.js +23 -7
- package/dist/features/navbar/index.d.ts +1 -1
- package/dist/features/package/index.d.ts +3 -1
- package/dist/features/package/index.js +1 -1
- package/dist/features/package/index.jsx +6 -1
- package/dist/features/panel/index.d.ts +9 -1
- package/dist/features/panel/index.js +160 -38
- package/dist/features/panel/index.jsx +173 -46
- package/dist/features/panel/polygon.d.ts +2 -0
- package/dist/features/panel/polygon.js +44 -0
- package/dist/features/panel/polygon.jsx +70 -0
- package/dist/features/panel/select-tool.d.ts +1 -1
- package/dist/features/panel/select-tool.js +3 -0
- package/dist/features/panel/select-tool.jsx +3 -0
- package/dist/features/panel/selected-group.d.ts +1 -1
- package/dist/features/panel/selected-group.js +24 -26
- package/dist/features/panel/selected-group.jsx +56 -51
- package/dist/features/panel/square-circle-tool.d.ts +1 -1
- package/dist/features/panel/table-seat-circle.d.ts +1 -1
- package/dist/features/panel/table-seat-square.d.ts +1 -1
- package/dist/features/panel/text-tool.d.ts +1 -1
- package/dist/features/panel/text-tool.js +17 -2
- package/dist/features/panel/text-tool.jsx +19 -2
- package/dist/features/panel/upload-tool.d.ts +1 -1
- package/dist/features/panel/upload-tool.js +17 -3
- package/dist/features/panel/upload-tool.jsx +23 -4
- package/dist/features/side-tool/index.d.ts +1 -1
- package/dist/features/side-tool/index.js +43 -6
- package/dist/features/side-tool/index.jsx +47 -10
- package/dist/features/view-only/index.d.ts +1 -1
- package/dist/features/view-only-2/index.d.ts +1 -1
- package/dist/features/view-only-3/index.d.ts +1 -1
- package/dist/features/view-only-4/connect-handle.d.ts +13 -0
- package/dist/features/view-only-4/connect-handle.js +23 -0
- package/dist/features/view-only-4/connect-handle.jsx +30 -0
- package/dist/features/view-only-4/connection-layer.d.ts +21 -0
- package/dist/features/view-only-4/connection-layer.js +219 -0
- package/dist/features/view-only-4/connection-layer.jsx +291 -0
- package/dist/features/view-only-4/index.d.ts +99 -0
- package/dist/features/view-only-4/index.js +684 -0
- package/dist/features/view-only-4/index.jsx +722 -0
- package/dist/features/view-only-4/integration-guide.d.ts +0 -0
- package/dist/features/view-only-4/integration-guide.js +0 -0
- package/dist/features/view-only-4/use-connection-graph.d.ts +41 -0
- package/dist/features/view-only-4/use-connection-graph.js +182 -0
- package/dist/features/view-only-4/utils.d.ts +74 -0
- package/dist/features/view-only-4/utils.js +106 -0
- package/dist/features/view-only-5/connect-handle.d.ts +30 -0
- package/dist/features/view-only-5/connect-handle.js +88 -0
- package/dist/features/view-only-5/connect-handle.jsx +96 -0
- package/dist/features/view-only-5/connection-layer.d.ts +34 -0
- package/dist/features/view-only-5/connection-layer.js +182 -0
- package/dist/features/view-only-5/connection-layer.jsx +265 -0
- package/dist/features/view-only-5/index.d.ts +102 -0
- package/dist/features/view-only-5/index.js +585 -0
- package/dist/features/view-only-5/index.jsx +614 -0
- package/dist/features/view-only-5/use-connection-graph.d.ts +57 -0
- package/dist/features/view-only-5/use-connection-graph.js +196 -0
- package/dist/features/view-only-5/utils.d.ts +52 -0
- package/dist/features/view-only-5/utils.js +80 -0
- package/dist/features/view-only-6/connect-handle.d.ts +13 -0
- package/dist/features/view-only-6/connect-handle.js +20 -0
- package/dist/features/view-only-6/connect-handle.jsx +21 -0
- package/dist/features/view-only-6/connection-layer.d.ts +22 -0
- package/dist/features/view-only-6/connection-layer.js +191 -0
- package/dist/features/view-only-6/connection-layer.jsx +244 -0
- package/dist/features/view-only-6/index.d.ts +99 -0
- package/dist/features/view-only-6/index.js +687 -0
- package/dist/features/view-only-6/index.jsx +724 -0
- package/dist/features/view-only-6/use-connection-graph.d.ts +26 -0
- package/dist/features/view-only-6/use-connection-graph.js +103 -0
- package/dist/features/view-only-6/utils.d.ts +66 -0
- package/dist/features/view-only-6/utils.js +96 -0
- package/dist/features/view-only-7/connect-handle.d.ts +13 -0
- package/dist/features/view-only-7/connect-handle.js +23 -0
- package/dist/features/view-only-7/connect-handle.jsx +30 -0
- package/dist/features/view-only-7/connection-layer.d.ts +22 -0
- package/dist/features/view-only-7/connection-layer.js +165 -0
- package/dist/features/view-only-7/connection-layer.jsx +217 -0
- package/dist/features/view-only-7/index.d.ts +99 -0
- package/dist/features/view-only-7/index.js +687 -0
- package/dist/features/view-only-7/index.jsx +724 -0
- package/dist/features/view-only-7/use-connection-graph.d.ts +26 -0
- package/dist/features/view-only-7/use-connection-graph.js +104 -0
- package/dist/features/view-only-7/utils.d.ts +69 -0
- package/dist/features/view-only-7/utils.js +144 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/provider/redux-provider.d.ts +1 -1
- package/dist/provider/store-provider.d.ts +1 -1
- package/dist/seat-editor.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React, { CSSProperties, SVGAttributes } from "react";
|
|
2
|
+
import { ReactZoomPanPinchRef, ReactZoomPanPinchProps, ReactZoomPanPinchContentRef } from "react-zoom-pan-pinch";
|
|
3
|
+
import { PropertiesProps } from "../../dto/table";
|
|
4
|
+
import { EventHandleType } from "../../dto/event-handler";
|
|
5
|
+
import { EdgeType } from "./utils";
|
|
6
|
+
export type TableGhost = {
|
|
7
|
+
table: PropertiesProps;
|
|
8
|
+
event: EventHandleType;
|
|
9
|
+
};
|
|
10
|
+
export type TableMatchKey = {
|
|
11
|
+
key: string | number;
|
|
12
|
+
properties?: PropertiesProps;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export type TableMatchEvent = {
|
|
16
|
+
event: EventHandleType;
|
|
17
|
+
properties: PropertiesProps;
|
|
18
|
+
};
|
|
19
|
+
export type ComponentProps<T = undefined> = T extends undefined ? PropertiesProps : Omit<PropertiesProps, keyof T> & T;
|
|
20
|
+
export type OnCurrentStateChange<TMeta = undefined> = ({ components, extraComponents, background, boundingBox, }: {
|
|
21
|
+
components: ComponentProps<TMeta>[];
|
|
22
|
+
extraComponents: ComponentProps[];
|
|
23
|
+
background: string;
|
|
24
|
+
boundingBox: PropertiesProps | null;
|
|
25
|
+
}) => void;
|
|
26
|
+
export type TransformProps = React.ForwardRefExoticComponent<Omit<ReactZoomPanPinchProps, "ref"> & React.RefAttributes<ReactZoomPanPinchContentRef>>;
|
|
27
|
+
export type RefLayerView = {
|
|
28
|
+
svgRef: SVGSVGElement;
|
|
29
|
+
transformRef: ReactZoomPanPinchRef;
|
|
30
|
+
containerRef: HTMLDivElement;
|
|
31
|
+
tableGhost: SVGGElement;
|
|
32
|
+
hoverUnderghost: ComponentProps;
|
|
33
|
+
};
|
|
34
|
+
export type TypeActionProps<TMeta = undefined> = {
|
|
35
|
+
targetTable: ComponentProps<TMeta>;
|
|
36
|
+
sourceTable: ComponentProps<TMeta>;
|
|
37
|
+
};
|
|
38
|
+
export interface LayerViewProps<TMeta = undefined> {
|
|
39
|
+
componentProps?: ComponentProps<TMeta>[];
|
|
40
|
+
extraComponentProps?: ComponentProps[];
|
|
41
|
+
onSelectComponent?: (component: ComponentProps<TMeta>) => void;
|
|
42
|
+
onDoubleClick?: (component: ComponentProps<TMeta>) => void;
|
|
43
|
+
mappingKey?: string;
|
|
44
|
+
tableMatchKey?: TableMatchKey[];
|
|
45
|
+
eventMatchTable?: TableMatchEvent[];
|
|
46
|
+
statusKey?: string;
|
|
47
|
+
defaultBackground?: string;
|
|
48
|
+
transformProps?: ReactZoomPanPinchProps;
|
|
49
|
+
containerProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
50
|
+
svgProps?: SVGAttributes<SVGSVGElement>;
|
|
51
|
+
ghostAttributes?: SVGAttributes<SVGGElement>;
|
|
52
|
+
iconTags?: {
|
|
53
|
+
icon: React.JSX.Element;
|
|
54
|
+
key: string;
|
|
55
|
+
}[];
|
|
56
|
+
privilegedTags?: {
|
|
57
|
+
key: string;
|
|
58
|
+
items: string[];
|
|
59
|
+
}[];
|
|
60
|
+
tooltipProps?: {
|
|
61
|
+
className?: string;
|
|
62
|
+
style?: CSSProperties;
|
|
63
|
+
minWidth?: number;
|
|
64
|
+
children: React.ReactNode;
|
|
65
|
+
};
|
|
66
|
+
dragTableBlockKey?: {
|
|
67
|
+
key: string;
|
|
68
|
+
value: string | number | null;
|
|
69
|
+
}[];
|
|
70
|
+
onRightClick?: (e: MouseEvent, component: ComponentProps<TMeta>) => void;
|
|
71
|
+
allowTooltip?: boolean;
|
|
72
|
+
onDrop?: (e: React.MouseEvent<SVGSVGElement>, component: TypeActionProps<TMeta>) => void;
|
|
73
|
+
onSwitch?: (e: MouseEvent, component: TypeActionProps<TMeta>) => void;
|
|
74
|
+
refs?: React.ForwardedRef<RefLayerView>;
|
|
75
|
+
viewStyles?: {
|
|
76
|
+
paddingTop?: number;
|
|
77
|
+
paddingLeft?: number;
|
|
78
|
+
paddingRight?: number;
|
|
79
|
+
paddingBottom?: number;
|
|
80
|
+
};
|
|
81
|
+
loadingRender?: {
|
|
82
|
+
state: boolean;
|
|
83
|
+
element: React.JSX.Element;
|
|
84
|
+
};
|
|
85
|
+
defaultBoundingBox?: PropertiesProps;
|
|
86
|
+
viewOnly?: boolean;
|
|
87
|
+
actionPrivileged?: {
|
|
88
|
+
select?: boolean;
|
|
89
|
+
move?: boolean;
|
|
90
|
+
switch?: boolean;
|
|
91
|
+
drop?: boolean;
|
|
92
|
+
rightClick?: boolean;
|
|
93
|
+
double?: boolean;
|
|
94
|
+
};
|
|
95
|
+
onEdgesChange?: (edges: EdgeType[], table: PropertiesProps[]) => void;
|
|
96
|
+
keyNode: string;
|
|
97
|
+
}
|
|
98
|
+
declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
export default LayerView;
|