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,93 @@
|
|
|
1
|
+
export const tagsDummy = (name, icon) => [
|
|
2
|
+
{
|
|
3
|
+
gap: "8",
|
|
4
|
+
key: "table",
|
|
5
|
+
items: [
|
|
6
|
+
{
|
|
7
|
+
type: "text",
|
|
8
|
+
value: name,
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
type: "icon",
|
|
12
|
+
value: icon,
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
direction: "column",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
gap: "8",
|
|
19
|
+
key: "pax",
|
|
20
|
+
items: [
|
|
21
|
+
{
|
|
22
|
+
type: "icon",
|
|
23
|
+
value: "people",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
type: "text",
|
|
27
|
+
value: "0/8",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
offsetX: "3",
|
|
31
|
+
offsetY: "1",
|
|
32
|
+
direction: "flex",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
gap: "2",
|
|
36
|
+
key: "rsvp_time",
|
|
37
|
+
items: [
|
|
38
|
+
{
|
|
39
|
+
type: "text",
|
|
40
|
+
value: "18:00",
|
|
41
|
+
fontWeight: "bold",
|
|
42
|
+
textDecoration: "underline",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
type: "text",
|
|
46
|
+
value: "19:00",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
type: "text",
|
|
50
|
+
value: "22:00",
|
|
51
|
+
symbol: {
|
|
52
|
+
value: "+1",
|
|
53
|
+
gap: 1,
|
|
54
|
+
position: "right-top"
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
// as Position, // right | right-top | right-bottom | left | left-top | left-bottom | top | bottom
|
|
58
|
+
// {
|
|
59
|
+
// type: "text",
|
|
60
|
+
// value: "23:00",
|
|
61
|
+
// symbol: {
|
|
62
|
+
// value: "+1",
|
|
63
|
+
// gap: 1,
|
|
64
|
+
// position: "right-top" as Position, // right | right-top | right-bottom | left | left-top | left-bottom | top | bottom
|
|
65
|
+
// },
|
|
66
|
+
// },
|
|
67
|
+
],
|
|
68
|
+
direction: "column",
|
|
69
|
+
offsetY: -35,
|
|
70
|
+
},
|
|
71
|
+
];
|
|
72
|
+
export const PRIVILEGED_TAGS = {
|
|
73
|
+
CURRENT_TIME: [
|
|
74
|
+
{
|
|
75
|
+
key: "table",
|
|
76
|
+
items: ["text", "icon"],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
key: "pax",
|
|
80
|
+
items: ["text", "icon"],
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
NEXT_3_RESERVATION: [
|
|
84
|
+
{
|
|
85
|
+
key: "table",
|
|
86
|
+
items: ["text"],
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: "rsvp_time",
|
|
90
|
+
items: ["text"],
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EventHandleType } from "../../dto/event-handler";
|
|
2
|
+
import { PropertiesProps } from "../../dto/table";
|
|
3
|
+
import { TableMatchEvent } from "../../features/view-only-3";
|
|
4
|
+
interface LayersProps {
|
|
5
|
+
components?: PropertiesProps[];
|
|
6
|
+
selectedComponent?: PropertiesProps;
|
|
7
|
+
activeTool?: string;
|
|
8
|
+
onBlur?: () => void;
|
|
9
|
+
selectedTable?: PropertiesProps;
|
|
10
|
+
iconTags?: {
|
|
11
|
+
icon: React.JSX.Element;
|
|
12
|
+
key: string;
|
|
13
|
+
}[];
|
|
14
|
+
eventMatchTable?: TableMatchEvent[];
|
|
15
|
+
onHighlightGroup?: (group: SVGGElement, eventType: EventHandleType) => void;
|
|
16
|
+
onForceRestoreGroup?: (group: SVGGElement, eventType: EventHandleType) => void;
|
|
17
|
+
selectedTableColor?: string;
|
|
18
|
+
privilegedTags?: {
|
|
19
|
+
key: string;
|
|
20
|
+
items: string[];
|
|
21
|
+
}[];
|
|
22
|
+
}
|
|
23
|
+
declare const Layers: ({ components, selectedTable, iconTags, eventMatchTable, onHighlightGroup, onForceRestoreGroup, selectedTableColor, privilegedTags, }: LayersProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export default Layers;
|