seat-editor 3.5.13 → 3.5.14

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.
Files changed (57) hide show
  1. package/dist/app/new-board/page.js +1 -0
  2. package/dist/app/new-board/page.jsx +1 -0
  3. package/dist/components/form-tools/shape.d.ts +1 -0
  4. package/dist/components/form-tools/shape.js +13 -3
  5. package/dist/components/form-tools/shape.jsx +17 -2
  6. package/dist/components/icons/camera.d.ts +1 -0
  7. package/dist/components/icons/camera.js +5 -0
  8. package/dist/components/icons/camera.jsx +26 -0
  9. package/dist/components/icons/circle.d.ts +1 -0
  10. package/dist/components/icons/circle.js +5 -0
  11. package/dist/components/icons/circle.jsx +36 -0
  12. package/dist/components/icons/index.d.ts +9 -0
  13. package/dist/components/icons/index.js +9 -0
  14. package/dist/components/icons/square.d.ts +1 -0
  15. package/dist/components/icons/square.js +5 -0
  16. package/dist/components/icons/square.jsx +26 -0
  17. package/dist/components/icons/type-1.d.ts +1 -0
  18. package/dist/components/icons/type-1.js +5 -0
  19. package/dist/components/icons/type-1.jsx +148 -0
  20. package/dist/components/icons/type-2.d.ts +1 -0
  21. package/dist/components/icons/type-2.js +5 -0
  22. package/dist/components/icons/type-2.jsx +138 -0
  23. package/dist/components/icons/type-3.d.ts +1 -0
  24. package/dist/components/icons/type-3.js +5 -0
  25. package/dist/components/icons/type-3.jsx +138 -0
  26. package/dist/components/icons/type-4.d.ts +1 -0
  27. package/dist/components/icons/type-4.js +5 -0
  28. package/dist/components/icons/type-4.jsx +98 -0
  29. package/dist/components/icons/type-5.d.ts +1 -0
  30. package/dist/components/icons/type-5.js +5 -0
  31. package/dist/components/icons/type-5.jsx +108 -0
  32. package/dist/features/board-v3/index.js +3 -1
  33. package/dist/features/board-v3/index.jsx +5 -2
  34. package/dist/features/package/index.js +1 -1
  35. package/dist/features/package/index.jsx +2 -2
  36. package/dist/features/panel/index.js +3 -1
  37. package/dist/features/panel/index.jsx +3 -1
  38. package/dist/features/panel/polygon.js +1 -1
  39. package/dist/features/panel/polygon.jsx +1 -1
  40. package/dist/features/panel/select-tool.js +1 -1
  41. package/dist/features/panel/select-tool.jsx +1 -1
  42. package/dist/features/panel/selected-group.d.ts +3 -1
  43. package/dist/features/panel/selected-group.js +9 -8
  44. package/dist/features/panel/selected-group.jsx +15 -8
  45. package/dist/features/panel/upload-group-tool.d.ts +10 -0
  46. package/dist/features/panel/upload-group-tool.js +147 -0
  47. package/dist/features/panel/upload-group-tool.jsx +180 -0
  48. package/dist/features/panel/upload-tool.d.ts +2 -2
  49. package/dist/features/panel/upload-tool.js +45 -4
  50. package/dist/features/panel/upload-tool.jsx +108 -10
  51. package/dist/features/side-tool/index.js +13 -11
  52. package/dist/features/side-tool/index.jsx +7 -2
  53. package/dist/provider/antd-provider.js +3 -0
  54. package/dist/provider/antd-provider.jsx +3 -0
  55. package/dist/utils/agent.d.ts +1 -0
  56. package/dist/utils/agent.js +8 -0
  57. package/package.json +1 -1
@@ -56,6 +56,7 @@ export default function NewBoard() {
56
56
  reader.onerror = reject;
57
57
  reader.readAsDataURL(file);
58
58
  });
59
+ console.log({ test });
59
60
  return test;
60
61
  };
61
62
  const test = [
@@ -55,6 +55,7 @@ export default function NewBoard() {
55
55
  reader.onerror = reject;
56
56
  reader.readAsDataURL(file);
57
57
  });
58
+ console.log({ test });
58
59
  return test;
59
60
  };
60
61
  const test = [
@@ -1,6 +1,7 @@
1
1
  export declare const optionsShape: {
2
2
  value: string;
3
3
  label: string;
4
+ icon: import("react/jsx-runtime").JSX.Element;
4
5
  }[];
5
6
  declare const SectionShape: ({ allowChangeShape, }: {
6
7
  allowChangeShape?: boolean;
@@ -3,39 +3,49 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { MIN_HEIGHT, MIN_WIDTH, MIN_X, MIN_Y, } from "../../features/board-v3/constant";
4
4
  import { useAppSelector } from "../../hooks/use-redux";
5
5
  import { ColorPicker, Flex, Form, InputNumber, Select } from "antd";
6
+ import { Type4Icon, Type5Icon, Type1Icon, Type2Icon, Type3Icon, Circle, Square } from "../icons";
7
+ import { Image } from "lucide-react";
6
8
  const { Option } = Select;
7
9
  export const optionsShape = [
8
10
  {
9
11
  value: "circle",
10
12
  label: "Circle",
13
+ icon: _jsx(Circle, {}),
11
14
  },
12
15
  {
13
16
  value: "square",
14
17
  label: "Square",
18
+ icon: _jsx(Square, {}),
15
19
  },
16
20
  {
17
21
  value: "table-seat-circle",
18
22
  label: "Type 1",
23
+ icon: _jsx(Type1Icon, {}),
19
24
  },
20
25
  {
21
26
  value: "table-seat-square",
22
27
  label: "Type 2",
28
+ icon: _jsx(Type2Icon, {}),
23
29
  },
24
30
  {
25
31
  value: "table-seat-half-square",
26
32
  label: "Type 3",
33
+ icon: _jsx(Type3Icon, {}),
27
34
  },
28
35
  {
29
36
  value: "table-seat-rect-square",
30
37
  label: "Type 4",
38
+ icon: _jsx(Type4Icon, {}),
31
39
  },
32
40
  {
33
41
  value: "table-seat-rect-circle",
34
42
  label: "Type 5 ",
43
+ icon: _jsx(Type5Icon, {}),
35
44
  },
36
45
  {
37
46
  label: "Image Table",
38
47
  value: "image-table",
48
+ icon: _jsx(Image, { size: 18 }),
39
49
  },
40
50
  ];
41
51
  const SectionShape = ({ allowChangeShape = true, }) => {
@@ -45,9 +55,9 @@ const SectionShape = ({ allowChangeShape = true, }) => {
45
55
  const maxSeat = (selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent[seatKey]) || 0;
46
56
  return (_jsxs("div", { className: "py-2", children: [_jsx("h1", { className: "heading-s", children: "Shape" }), allowChangeShape && (_jsx(Flex, { gap: 2, className: "w-full", children: _jsx(Form.Item, { label: "Name", name: "shape", className: "w-full", children: _jsx(Select, { className: "w-full", children: optionsShape === null || optionsShape === void 0 ? void 0 : optionsShape.map((item) => {
47
57
  const disabled = item.value === "table-seat-rect-circle" && maxSeat > 4;
48
- return (_jsx(Option, { value: item.value, disabled: disabled, children: item.value === "table-seat-rect-circle"
49
- ? `Type 5 (only for 4 ${seatKey})`
50
- : item.label }, item.value));
58
+ return (_jsx(Option, { value: item.value, disabled: disabled, className: "flex w-full items-center", children: _jsxs(Flex, { gap: 5, align: "center", justify: "between", children: [item.icon, _jsx("span", { children: item.value === "table-seat-rect-circle"
59
+ ? `Type 5 (only for 4 ${seatKey})`
60
+ : item.label })] }) }, item.value));
51
61
  }) }) }) })), _jsxs(Flex, { gap: 2, className: "w-full", children: [_jsx(Form.Item, { label: "Width", name: "width", className: "w-full", children: _jsx(InputNumber, { suffix: "px", controls: true, name: "width", min: MIN_WIDTH, step: 1, parser: (value) => {
52
62
  var _a;
53
63
  const onlyNumber = (_a = value === null || value === void 0 ? void 0 : value.replace(/\D/g, "")) !== null && _a !== void 0 ? _a : "";
@@ -2,39 +2,49 @@
2
2
  import { MIN_HEIGHT, MIN_WIDTH, MIN_X, MIN_Y, } from "../../features/board-v3/constant";
3
3
  import { useAppSelector } from "../../hooks/use-redux";
4
4
  import { ColorPicker, Flex, Form, InputNumber, Select } from "antd";
5
+ import { Type4Icon, Type5Icon, Type1Icon, Type2Icon, Type3Icon, Circle, Square } from "../icons";
6
+ import { Image } from "lucide-react";
5
7
  const { Option } = Select;
6
8
  export const optionsShape = [
7
9
  {
8
10
  value: "circle",
9
11
  label: "Circle",
12
+ icon: <Circle />,
10
13
  },
11
14
  {
12
15
  value: "square",
13
16
  label: "Square",
17
+ icon: <Square />,
14
18
  },
15
19
  {
16
20
  value: "table-seat-circle",
17
21
  label: "Type 1",
22
+ icon: <Type1Icon />,
18
23
  },
19
24
  {
20
25
  value: "table-seat-square",
21
26
  label: "Type 2",
27
+ icon: <Type2Icon />,
22
28
  },
23
29
  {
24
30
  value: "table-seat-half-square",
25
31
  label: "Type 3",
32
+ icon: <Type3Icon />,
26
33
  },
27
34
  {
28
35
  value: "table-seat-rect-square",
29
36
  label: "Type 4",
37
+ icon: <Type4Icon />,
30
38
  },
31
39
  {
32
40
  value: "table-seat-rect-circle",
33
41
  label: "Type 5 ",
42
+ icon: <Type5Icon />,
34
43
  },
35
44
  {
36
45
  label: "Image Table",
37
46
  value: "image-table",
47
+ icon: <Image size={18}/>,
38
48
  },
39
49
  ];
40
50
  const SectionShape = ({ allowChangeShape = true, }) => {
@@ -49,10 +59,15 @@ const SectionShape = ({ allowChangeShape = true, }) => {
49
59
  <Select className="w-full">
50
60
  {optionsShape === null || optionsShape === void 0 ? void 0 : optionsShape.map((item) => {
51
61
  const disabled = item.value === "table-seat-rect-circle" && maxSeat > 4;
52
- return (<Option key={item.value} value={item.value} disabled={disabled}>
53
- {item.value === "table-seat-rect-circle"
62
+ return (<Option key={item.value} value={item.value} disabled={disabled} className="flex w-full items-center">
63
+ <Flex gap={5} align="center" justify="between">
64
+ {item.icon}
65
+ <span>
66
+ {item.value === "table-seat-rect-circle"
54
67
  ? `Type 5 (only for 4 ${seatKey})`
55
68
  : item.label}
69
+ </span>
70
+ </Flex>
56
71
  </Option>);
57
72
  })}
58
73
  </Select>
@@ -0,0 +1 @@
1
+ export declare const Camera: () => import("react/jsx-runtime").JSX.Element;