seat-editor 3.5.63 → 3.5.64

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 (73) hide show
  1. package/dist/app/graph-view/page.d.ts +1 -1
  2. package/dist/app/graph-view-new/page.d.ts +1 -1
  3. package/dist/app/layout.d.ts +1 -1
  4. package/dist/app/new-board/page.d.ts +1 -1
  5. package/dist/app/old-board/page.d.ts +1 -2
  6. package/dist/app/only-view/chair.d.ts +1 -1
  7. package/dist/app/only-view/chair.js +2 -10
  8. package/dist/app/only-view/page.d.ts +1 -1
  9. package/dist/app/only-view/user.d.ts +1 -1
  10. package/dist/app/only-view/user.js +2 -10
  11. package/dist/app/page.d.ts +1 -1
  12. package/dist/app/test/page.d.ts +1 -2
  13. package/dist/app/v2/page.d.ts +1 -1
  14. package/dist/components/button-tools/index.d.ts +1 -1
  15. package/dist/components/form-tools/label.d.ts +1 -1
  16. package/dist/components/form-tools/shape.d.ts +2 -2
  17. package/dist/components/icons/camera.d.ts +1 -2
  18. package/dist/components/icons/circle.d.ts +1 -2
  19. package/dist/components/icons/square.d.ts +1 -2
  20. package/dist/components/icons/type-1.d.ts +1 -2
  21. package/dist/components/icons/type-2.d.ts +1 -2
  22. package/dist/components/icons/type-3.d.ts +1 -2
  23. package/dist/components/icons/type-4.d.ts +1 -2
  24. package/dist/components/icons/type-5.d.ts +1 -2
  25. package/dist/components/input/number-indicator.d.ts +1 -1
  26. package/dist/components/joystick/index.d.ts +1 -2
  27. package/dist/components/layer/index.d.ts +1 -1
  28. package/dist/components/layer-v2/index.d.ts +1 -1
  29. package/dist/components/layer-v3/index.d.ts +1 -2
  30. package/dist/components/layer-v4/index.d.ts +1 -1
  31. package/dist/components/layer-v5/index.d.ts +1 -1
  32. package/dist/components/lib/index.d.ts +1 -1
  33. package/dist/components/modal-preview/index.d.ts +1 -1
  34. package/dist/features/board/index.d.ts +1 -1
  35. package/dist/features/board-v2/index.d.ts +1 -2
  36. package/dist/features/board-v3/board-slice.js +12 -0
  37. package/dist/features/board-v3/index.d.ts +1 -1
  38. package/dist/features/board-v3/index.js +41 -21
  39. package/dist/features/board-v3/index.jsx +60 -22
  40. package/dist/features/navbar/index.d.ts +1 -1
  41. package/dist/features/package/index.d.ts +1 -1
  42. package/dist/features/panel/index.d.ts +1 -1
  43. package/dist/features/panel/index.js +27 -14
  44. package/dist/features/panel/index.jsx +27 -14
  45. package/dist/features/panel/polygon.d.ts +1 -1
  46. package/dist/features/panel/select-tool.d.ts +1 -1
  47. package/dist/features/panel/selected-group.d.ts +1 -1
  48. package/dist/features/panel/selected-group.js +1 -1
  49. package/dist/features/panel/selected-group.jsx +3 -0
  50. package/dist/features/panel/square-circle-tool.d.ts +1 -1
  51. package/dist/features/panel/table-seat-circle.d.ts +1 -1
  52. package/dist/features/panel/table-seat-square.d.ts +1 -1
  53. package/dist/features/panel/text-tool.d.ts +1 -1
  54. package/dist/features/panel/upload-group-tool.d.ts +1 -1
  55. package/dist/features/panel/upload-tool.d.ts +1 -1
  56. package/dist/features/panel/upload-tool.js +20 -3
  57. package/dist/features/panel/upload-tool.jsx +20 -3
  58. package/dist/features/panel/utils.js +4 -2
  59. package/dist/features/side-tool/index.d.ts +1 -1
  60. package/dist/features/view-only/index.d.ts +1 -1
  61. package/dist/features/view-only-2/index.d.ts +1 -1
  62. package/dist/features/view-only-3/index.d.ts +1 -1
  63. package/dist/features/view-only-3/index.js +4 -1
  64. package/dist/features/view-only-3/index.jsx +17 -1
  65. package/dist/features/view-only-4/index.d.ts +1 -1
  66. package/dist/features/view-only-5/index.d.ts +1 -1
  67. package/dist/features/view-only-6/index.d.ts +1 -1
  68. package/dist/features/view-only-7/index.d.ts +1 -1
  69. package/dist/provider/antd-provider.js +3 -0
  70. package/dist/provider/antd-provider.jsx +3 -0
  71. package/dist/provider/redux-provider.d.ts +1 -1
  72. package/dist/provider/store-provider.d.ts +1 -1
  73. package/package.json +1 -1
@@ -1 +1 @@
1
- export default function DrawIO(): import("react").JSX.Element;
1
+ export default function DrawIO(): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export default function GraphView(): import("react").JSX.Element;
1
+ export default function GraphView(): import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ import "./globals.css";
3
3
  export declare const metadata: Metadata;
4
4
  export default function RootLayout({ children, }: Readonly<{
5
5
  children: React.ReactNode;
6
- }>): import("react").JSX.Element;
6
+ }>): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export default function NewBoard(): import("react").JSX.Element;
1
+ export default function NewBoard(): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
- import React from "react";
2
- declare const SeatEditor: () => React.JSX.Element;
1
+ declare const SeatEditor: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default SeatEditor;
@@ -1 +1 @@
1
- export function ChairIcon(): import("react").JSX.Element;
1
+ export function ChairIcon(): import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  export const ChairIcon = () => {
2
- return (<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <g clip-path="url(#clip0_3019_14165)">
4
- <path d="M15.9717 7.5339V4.70339C15.9717 3.07627 14.7076 2.5 13.5189 2.5H6.46226C5.27359 2.5 4.00943 3.07627 4.00943 4.70339V7.5339C3.14151 7.73729 2.5 8.4322 2.5 9.27966V13.822C2.5 15.161 3.5 15.6864 4.48113 15.7373V16.8898C4.48113 17.2288 4.78302 17.5 5.16038 17.5H5.85849C6.23585 17.5 6.53774 17.2288 6.53774 16.8898V15.7373H13.4623V16.8898C13.4623 17.2288 13.7642 17.5 14.1415 17.5H14.8396C15.217 17.5 15.5189 17.2288 15.5189 16.8898V15.7373C16.9717 15.6695 17.5 14.7203 17.5 13.822V9.26271C17.4623 8.4322 16.8208 7.72034 15.9717 7.5339ZM4.68868 4.70339C4.68868 3.31356 5.80189 3.09322 6.46226 3.09322H13.5189C14.1792 3.09322 15.2925 3.29661 15.2925 4.68644V7.4661C14.2736 7.55085 13.4623 8.31356 13.4623 9.26271V9.68644H6.51887V9.26271C6.51887 8.31356 5.70755 7.55085 4.68868 7.4661V4.70339ZM13.4434 10.2966V12.3983H6.51887V10.2966H13.4434ZM5.85849 16.8898H5.16038V15.7373H5.85849V16.8898ZM14.8208 16.8898H14.1226V15.7373H14.8208V16.8898ZM16.8208 13.822H16.8019C16.8019 14.4153 16.5566 15.1441 15.3302 15.1441H14.8208H14.1226H5.85849H5.16038H4.65094C3.99057 15.1441 3.17925 14.9237 3.17925 13.822V9.26271C3.17925 8.6017 3.78302 8.05932 4.51887 8.05932C5.25472 8.05932 5.85849 8.6017 5.85849 9.26271V12.7034C5.85849 12.8729 6.00943 13.0085 6.19811 13.0085H13.8019C13.9906 13.0085 14.1415 12.8729 14.1415 12.7034V9.26271C14.1415 8.6017 14.7453 8.05932 15.4811 8.05932C16.217 8.05932 16.8208 8.6017 16.8208 9.26271V13.822Z" fill="#347ADB" stroke="#347ADB" stroke-width="0.8"/>
5
- </g>
6
- <defs>
7
- <clipPath id="clip0_3019_14165">
8
- <rect width="16.6667" height="16.6667" fill="white" transform="translate(1.66675 1.6665)"/>
9
- </clipPath>
10
- </defs>
11
- </svg>);
3
+ return (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("g", { "clip-path": "url(#clip0_3019_14165)", children: _jsx("path", { d: "M15.9717 7.5339V4.70339C15.9717 3.07627 14.7076 2.5 13.5189 2.5H6.46226C5.27359 2.5 4.00943 3.07627 4.00943 4.70339V7.5339C3.14151 7.73729 2.5 8.4322 2.5 9.27966V13.822C2.5 15.161 3.5 15.6864 4.48113 15.7373V16.8898C4.48113 17.2288 4.78302 17.5 5.16038 17.5H5.85849C6.23585 17.5 6.53774 17.2288 6.53774 16.8898V15.7373H13.4623V16.8898C13.4623 17.2288 13.7642 17.5 14.1415 17.5H14.8396C15.217 17.5 15.5189 17.2288 15.5189 16.8898V15.7373C16.9717 15.6695 17.5 14.7203 17.5 13.822V9.26271C17.4623 8.4322 16.8208 7.72034 15.9717 7.5339ZM4.68868 4.70339C4.68868 3.31356 5.80189 3.09322 6.46226 3.09322H13.5189C14.1792 3.09322 15.2925 3.29661 15.2925 4.68644V7.4661C14.2736 7.55085 13.4623 8.31356 13.4623 9.26271V9.68644H6.51887V9.26271C6.51887 8.31356 5.70755 7.55085 4.68868 7.4661V4.70339ZM13.4434 10.2966V12.3983H6.51887V10.2966H13.4434ZM5.85849 16.8898H5.16038V15.7373H5.85849V16.8898ZM14.8208 16.8898H14.1226V15.7373H14.8208V16.8898ZM16.8208 13.822H16.8019C16.8019 14.4153 16.5566 15.1441 15.3302 15.1441H14.8208H14.1226H5.85849H5.16038H4.65094C3.99057 15.1441 3.17925 14.9237 3.17925 13.822V9.26271C3.17925 8.6017 3.78302 8.05932 4.51887 8.05932C5.25472 8.05932 5.85849 8.6017 5.85849 9.26271V12.7034C5.85849 12.8729 6.00943 13.0085 6.19811 13.0085H13.8019C13.9906 13.0085 14.1415 12.8729 14.1415 12.7034V9.26271C14.1415 8.6017 14.7453 8.05932 15.4811 8.05932C16.217 8.05932 16.8208 8.6017 16.8208 9.26271V13.822Z", fill: "#347ADB", stroke: "#347ADB", "stroke-width": "0.8" }) }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_3019_14165", children: _jsx("rect", { width: "16.6667", height: "16.6667", fill: "white", transform: "translate(1.66675 1.6665)" }) }) })] }));
12
4
  };
@@ -17,5 +17,5 @@ export declare const dummyImage: {
17
17
  y: number;
18
18
  }[];
19
19
  }[];
20
- declare const TouchScrollDetect: () => import("react").JSX.Element;
20
+ declare const TouchScrollDetect: () => import("react/jsx-runtime").JSX.Element;
21
21
  export default TouchScrollDetect;
@@ -1 +1 @@
1
- export function UserIcon(): import("react").JSX.Element;
1
+ export function UserIcon(): import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  export const UserIcon = () => {
2
- return (<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path d="M7.61992 10.1625C9.00754 10.1625 10.1324 9.03757 10.1324 7.64995C10.1324 6.26234 9.00754 5.13745 7.61992 5.13745C6.23231 5.13745 5.10742 6.26234 5.10742 7.64995C5.10742 9.03757 6.23231 10.1625 7.61992 10.1625Z" fill="#5E6278"/>
4
- <path d="M7.62 14.9999C9.34313 14.9999 10.74 14.1168 10.74 13.0274C10.74 11.9381 9.34313 11.0549 7.62 11.0549C5.89687 11.0549 4.5 11.9381 4.5 13.0274C4.5 14.1168 5.89687 14.9999 7.62 14.9999Z" fill="#5E6278"/>
5
- <path opacity="0.3" d="M11.595 4.23C12.7631 4.23 13.71 3.28308 13.71 2.115C13.71 0.946918 12.7631 0 11.595 0C10.4269 0 9.47998 0.946918 9.47998 2.115C9.47998 3.28308 10.4269 4.23 11.595 4.23Z" fill="#5E6278"/>
6
- <path opacity="0.3" d="M3.62257 4.23C4.79065 4.23 5.73757 3.28308 5.73757 2.115C5.73757 0.946918 4.79065 0 3.62257 0C2.45449 0 1.50757 0.946918 1.50757 2.115C1.50757 3.28308 2.45449 4.23 3.62257 4.23Z" fill="#5E6278"/>
7
- <g opacity="0.3">
8
- <path d="M11.4749 5.87256C11.2349 5.87256 11.0024 5.87256 10.7699 5.91006C11.1229 6.52313 11.2825 7.22856 11.2276 7.93388C11.1727 8.63919 10.906 9.31147 10.4624 9.86256C10.7984 9.92909 11.1399 9.96424 11.4824 9.96756C13.3874 9.96756 14.9249 9.04506 14.9249 7.92006C14.9249 6.79506 13.3799 5.87256 11.4749 5.87256Z" fill="#5E6278"/>
9
- <path d="M3.4499 6C3.6899 6 3.9224 6 4.1549 6.0375C3.80187 6.65057 3.64233 7.356 3.6972 8.06132C3.75208 8.76664 4.0188 9.43891 4.4624 9.99C4.12639 10.0565 3.78492 10.0917 3.4424 10.095C1.5374 10.095 -9.77516e-05 9.1725 -9.77516e-05 8.0475C-9.77516e-05 6.9225 1.5449 6 3.4499 6Z" fill="#5E6278"/>
10
- </g>
11
- </svg>);
3
+ return (_jsxs("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M7.61992 10.1625C9.00754 10.1625 10.1324 9.03757 10.1324 7.64995C10.1324 6.26234 9.00754 5.13745 7.61992 5.13745C6.23231 5.13745 5.10742 6.26234 5.10742 7.64995C5.10742 9.03757 6.23231 10.1625 7.61992 10.1625Z", fill: "#5E6278" }), _jsx("path", { d: "M7.62 14.9999C9.34313 14.9999 10.74 14.1168 10.74 13.0274C10.74 11.9381 9.34313 11.0549 7.62 11.0549C5.89687 11.0549 4.5 11.9381 4.5 13.0274C4.5 14.1168 5.89687 14.9999 7.62 14.9999Z", fill: "#5E6278" }), _jsx("path", { opacity: "0.3", d: "M11.595 4.23C12.7631 4.23 13.71 3.28308 13.71 2.115C13.71 0.946918 12.7631 0 11.595 0C10.4269 0 9.47998 0.946918 9.47998 2.115C9.47998 3.28308 10.4269 4.23 11.595 4.23Z", fill: "#5E6278" }), _jsx("path", { opacity: "0.3", d: "M3.62257 4.23C4.79065 4.23 5.73757 3.28308 5.73757 2.115C5.73757 0.946918 4.79065 0 3.62257 0C2.45449 0 1.50757 0.946918 1.50757 2.115C1.50757 3.28308 2.45449 4.23 3.62257 4.23Z", fill: "#5E6278" }), _jsxs("g", { opacity: "0.3", children: [_jsx("path", { d: "M11.4749 5.87256C11.2349 5.87256 11.0024 5.87256 10.7699 5.91006C11.1229 6.52313 11.2825 7.22856 11.2276 7.93388C11.1727 8.63919 10.906 9.31147 10.4624 9.86256C10.7984 9.92909 11.1399 9.96424 11.4824 9.96756C13.3874 9.96756 14.9249 9.04506 14.9249 7.92006C14.9249 6.79506 13.3799 5.87256 11.4749 5.87256Z", fill: "#5E6278" }), _jsx("path", { d: "M3.4499 6C3.6899 6 3.9224 6 4.1549 6.0375C3.80187 6.65057 3.64233 7.356 3.6972 8.06132C3.75208 8.76664 4.0188 9.43891 4.4624 9.99C4.12639 10.0565 3.78492 10.0917 3.4424 10.095C1.5374 10.095 -9.77516e-05 9.1725 -9.77516e-05 8.0475C-9.77516e-05 6.9225 1.5449 6 3.4499 6Z", fill: "#5E6278" })] })] }));
12
4
  };
@@ -1,2 +1,2 @@
1
- declare const TableEditor: () => import("react").JSX.Element;
1
+ declare const TableEditor: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default TableEditor;
@@ -1,2 +1 @@
1
- import React from "react";
2
- export default function DraggableRect(): React.JSX.Element;
1
+ export default function DraggableRect(): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- declare const TableEditor: () => import("react").JSX.Element;
1
+ declare const TableEditor: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default TableEditor;
@@ -7,5 +7,5 @@ interface ButtonToolsProps {
7
7
  }>;
8
8
  popoverProps?: PopoverProps;
9
9
  }
10
- declare const ButtonTools: (props: ButtonToolsProps) => import("react").JSX.Element;
10
+ declare const ButtonTools: (props: ButtonToolsProps) => import("react/jsx-runtime").JSX.Element;
11
11
  export default ButtonTools;
@@ -1,2 +1,2 @@
1
- declare const SectionLabel: () => import("react").JSX.Element;
1
+ declare const SectionLabel: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default SectionLabel;
@@ -1,9 +1,9 @@
1
1
  export declare const optionsShape: {
2
2
  value: string;
3
3
  label: string;
4
- icon: import("react").JSX.Element;
4
+ icon: import("react/jsx-runtime").JSX.Element;
5
5
  }[];
6
6
  declare const SectionShape: ({ allowChangeShape, }: {
7
7
  allowChangeShape?: boolean;
8
- }) => import("react").JSX.Element;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
9
  export default SectionShape;
@@ -1,2 +1 @@
1
- import React from "react";
2
- export declare const Camera: () => React.JSX.Element;
1
+ export declare const Camera: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from "react";
2
- export declare const Circle: () => React.JSX.Element;
1
+ export declare const Circle: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from "react";
2
- export declare const Square: () => React.JSX.Element;
1
+ export declare const Square: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from "react";
2
- export declare const Type1Icon: () => React.JSX.Element;
1
+ export declare const Type1Icon: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from "react";
2
- export declare const Type2Icon: () => React.JSX.Element;
1
+ export declare const Type2Icon: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from "react";
2
- export declare const Type3Icon: () => React.JSX.Element;
1
+ export declare const Type3Icon: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from "react";
2
- export declare const Type4Icon: () => React.JSX.Element;
1
+ export declare const Type4Icon: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import React from "react";
2
- export declare const Type5Icon: () => React.JSX.Element;
1
+ export declare const Type5Icon: () => import("react/jsx-runtime").JSX.Element;
@@ -3,5 +3,5 @@ interface NumberIndicatorProps {
3
3
  defaultValue?: number;
4
4
  onChange: (value: number) => void;
5
5
  }
6
- declare const NumberIndicator: ({ name, defaultValue, onChange }: NumberIndicatorProps) => import("react").JSX.Element;
6
+ declare const NumberIndicator: ({ name, defaultValue, onChange }: NumberIndicatorProps) => import("react/jsx-runtime").JSX.Element;
7
7
  export default NumberIndicator;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  type JoystickPosition = {
3
2
  x: number;
4
3
  y: number;
@@ -8,5 +7,5 @@ type JoystickProps = {
8
7
  onMove?: (pos: JoystickPosition) => void;
9
8
  onEnd?: () => void;
10
9
  };
11
- export declare const Joystick: ({ size, onMove, onEnd, }: JoystickProps) => React.JSX.Element;
10
+ export declare const Joystick: ({ size, onMove, onEnd, }: JoystickProps) => import("react/jsx-runtime").JSX.Element;
12
11
  export {};
@@ -15,5 +15,5 @@ interface LayersProps {
15
15
  onTouchMove?: (e: React.TouchEvent<SVGRectElement | SVGCircleElement | SVGTextElement | SVGImageElement>) => void;
16
16
  onTouchEnd?: (e: React.TouchEvent<SVGRectElement | SVGCircleElement | SVGTextElement | SVGImageElement>) => void;
17
17
  }
18
- declare const Layers: ({ shadowShape, components, onClick, selectedComponent, selectedTable, activeTool, onMouseDown, onMouseUp, onBlur, selectedTableColor, mode, style, onTouchEnd, onTouchMove, onTouchStart }: LayersProps) => import("react").JSX.Element;
18
+ declare const Layers: ({ shadowShape, components, onClick, selectedComponent, selectedTable, activeTool, onMouseDown, onMouseUp, onBlur, selectedTableColor, mode, style, onTouchEnd, onTouchMove, onTouchStart }: LayersProps) => import("react/jsx-runtime").JSX.Element;
19
19
  export default Layers;
@@ -15,5 +15,5 @@ interface LayersProps {
15
15
  onTouchMove?: (e: React.TouchEvent<SVGRectElement | SVGCircleElement | SVGTextElement | SVGImageElement>) => void;
16
16
  onTouchEnd?: (e: React.TouchEvent<SVGRectElement | SVGCircleElement | SVGTextElement | SVGImageElement>) => void;
17
17
  }
18
- declare const Layers: ({ shadowShape, components, onClick, selectedComponent, selectedTable, activeTool, onMouseDown, onMouseUp, onBlur, selectedTableColor, mode, style, onTouchStart }: LayersProps) => import("react").JSX.Element;
18
+ declare const Layers: ({ shadowShape, components, onClick, selectedComponent, selectedTable, activeTool, onMouseDown, onMouseUp, onBlur, selectedTableColor, mode, style, onTouchStart }: LayersProps) => import("react/jsx-runtime").JSX.Element;
19
19
  export default Layers;
@@ -1,5 +1,4 @@
1
1
  import { PropertiesProps, BaseElement, Point } from "../../dto/table";
2
- import React from "react";
3
2
  export interface SelectionLines extends BaseElement {
4
3
  points?: Point[];
5
4
  id?: string | number;
@@ -10,5 +9,5 @@ interface LayersProps {
10
9
  activeTool?: string;
11
10
  selectionLines?: SelectionLines;
12
11
  }
13
- declare const Layers: ({ components, selectedComponent, activeTool, selectionLines, }: LayersProps) => React.JSX.Element;
12
+ declare const Layers: ({ components, selectedComponent, activeTool, selectionLines, }: LayersProps) => import("react/jsx-runtime").JSX.Element;
14
13
  export default Layers;
@@ -20,5 +20,5 @@ interface LayersProps {
20
20
  items: string[];
21
21
  }[];
22
22
  }
23
- declare const Layers: ({ components, selectedTable, iconTags, eventMatchTable, onHighlightGroup, onForceRestoreGroup, selectedTableColor, privilegedTags, }: LayersProps) => import("react").JSX.Element;
23
+ declare const Layers: ({ components, selectedTable, iconTags, eventMatchTable, onHighlightGroup, onForceRestoreGroup, selectedTableColor, privilegedTags, }: LayersProps) => import("react/jsx-runtime").JSX.Element;
24
24
  export default Layers;
@@ -20,5 +20,5 @@ interface LayersProps {
20
20
  items: string[];
21
21
  }[];
22
22
  }
23
- declare const Layers: ({ components, selectedTable, iconTags, eventMatchTable, onHighlightGroup, onForceRestoreGroup, selectedTableColor, privilegedTags, }: LayersProps) => import("react").JSX.Element;
23
+ declare const Layers: ({ components, selectedTable, iconTags, eventMatchTable, onHighlightGroup, onForceRestoreGroup, selectedTableColor, privilegedTags, }: LayersProps) => import("react/jsx-runtime").JSX.Element;
24
24
  export default Layers;
@@ -3,6 +3,6 @@ export interface LayerViewProps {
3
3
  componentProps: any[];
4
4
  extraComponentProps: any[];
5
5
  }
6
- declare const TableEditor: ({ componentProps, extraComponentProps, }: LayerViewProps) => import("react").JSX.Element;
6
+ declare const TableEditor: ({ componentProps, extraComponentProps, }: LayerViewProps) => import("react/jsx-runtime").JSX.Element;
7
7
  export default TableEditor;
8
8
  export { LayerView };
@@ -1,4 +1,4 @@
1
1
  declare const ModalPreview: ({ children }: {
2
2
  children: React.ReactNode;
3
- }) => import("react").JSX.Element;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
4
  export default ModalPreview;
@@ -2,5 +2,5 @@ interface BoardTemplateProps {
2
2
  onSelectComponent?: (items: any) => void;
3
3
  mappingKey?: string;
4
4
  }
5
- declare const BoardTemplate: ({ onSelectComponent }: BoardTemplateProps) => import("react").JSX.Element;
5
+ declare const BoardTemplate: ({ onSelectComponent }: BoardTemplateProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export default BoardTemplate;
@@ -1,8 +1,7 @@
1
- import React from "react";
2
1
  interface BoardTemplateProps {
3
2
  onSelectComponent?: (items: any) => void;
4
3
  mappingKey?: string;
5
4
  viewOnly?: boolean;
6
5
  }
7
- declare const BoardTemplate: ({ onSelectComponent, viewOnly }: BoardTemplateProps) => React.JSX.Element;
6
+ declare const BoardTemplate: ({ onSelectComponent, viewOnly }: BoardTemplateProps) => import("react/jsx-runtime").JSX.Element;
8
7
  export default BoardTemplate;
@@ -160,6 +160,18 @@ const boardSlice = createSlice({
160
160
  { components, extraComponents, boundingBox, backgroundColor },
161
161
  ];
162
162
  },
163
+ setScalingFontSize: (state, action) => {
164
+ state.components = state.components.map((component) => {
165
+ var _a, _b, _c, _d, _e, _f;
166
+ if (((_a = action.payload) === null || _a === void 0 ? void 0 : _a.type) === "type-1") {
167
+ return Object.assign(Object.assign({}, component), { fontSizeType1: (_c = (_b = action.payload) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : 1 });
168
+ }
169
+ if (((_d = action.payload) === null || _d === void 0 ? void 0 : _d.type) === "type-2") {
170
+ return Object.assign(Object.assign({}, component), { fontSizeType2: (_f = (_e = action.payload) === null || _e === void 0 ? void 0 : _e.value) !== null && _f !== void 0 ? _f : 1 });
171
+ }
172
+ return component;
173
+ });
174
+ },
163
175
  },
164
176
  });
165
177
  export const { addComponent, removeComponent, updateComponent, setBackgroundColor, removeExtraComponent, } = boardSlice.actions;
@@ -13,5 +13,5 @@ interface BoardTemplateProps {
13
13
  };
14
14
  disabled?: boolean;
15
15
  }
16
- declare const BoardTemplate: ({ refs, loadingRender, disabled, }: BoardTemplateProps) => React.JSX.Element;
16
+ declare const BoardTemplate: ({ refs, loadingRender, disabled, }: BoardTemplateProps) => import("react/jsx-runtime").JSX.Element;
17
17
  export default BoardTemplate;
@@ -79,7 +79,8 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, }) => {
79
79
  const [selectedLines, setSelectedLines] = useState(null);
80
80
  useEffect(() => {
81
81
  if (activeTool === "select" || activeTool !== "select") {
82
- (!["text", "polygon"].includes(selectedComponentProps === null || selectedComponentProps === void 0 ? void 0 : selectedComponentProps.shape)) && handleUnSelectComponent();
82
+ !["text", "polygon"].includes(selectedComponentProps === null || selectedComponentProps === void 0 ? void 0 : selectedComponentProps.shape) &&
83
+ handleUnSelectComponent();
83
84
  }
84
85
  if (activeTool !== "polygon") {
85
86
  isOnMakePolygonRef.current = false;
@@ -427,7 +428,7 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, }) => {
427
428
  const idNewPolygonRef = useRef("");
428
429
  useEffect(() => {
429
430
  const id = idNewPolygonRef.current;
430
- const findById = extraComponentsState.find(item => item.id === id);
431
+ const findById = extraComponentsState.find((item) => item.id === id);
431
432
  if (findById) {
432
433
  const svg = svgRef.current;
433
434
  const { g } = getAttributeElement(svg, id);
@@ -1391,28 +1392,14 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, }) => {
1391
1392
  const newPoints = Object.assign(Object.assign({}, selectedComponent), { points: [...selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent.points, newCoord] });
1392
1393
  (_c = svg.querySelector("#polyline-helper")) === null || _c === void 0 ? void 0 : _c.setAttribute("opacity", "1");
1393
1394
  if (closing && ((_d = selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent.points) === null || _d === void 0 ? void 0 : _d.length) > 2) {
1394
- const { inner, g } = getAttributeElement(svg, String(selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent.id));
1395
+ const { inner } = getAttributeElement(svg, String(selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent.id));
1395
1396
  const { height, width } = getGlobalBBox(svg, inner);
1396
1397
  isOnMakePolygonRef.current = false;
1397
1398
  polygonElementRef.current = [];
1398
- addComponents(Object.assign(Object.assign({}, newPoints), { x: 0, y: 0, width, height }));
1399
- // setSelectedComponent(newPoints);
1400
- // setTimeout(() => {
1401
- // const boxGroup = getGlobalBBox(svg, g);
1402
- // let boxSelection = {
1403
- // ...newPoints,
1404
- // ...boxGroup,
1405
- // rotation: 0,
1406
- // shape: "selection-box",
1407
- // };
1408
- // setSelectedLines(boxSelection);
1409
- // },100)
1410
- // dispatch({
1411
- // type: "panel/setSelectedComponent",
1412
- // payload: newPoints,
1413
- // });
1414
- // dispatch({ type: "panel/setShow", payload: true });
1415
- // dispatch({ type: "tool/setActiveTool", payload: "select" });
1399
+ addComponents(Object.assign(Object.assign({}, newPoints), { x: 0, y: 0, width,
1400
+ height, labels: [
1401
+ { label: "", x: 0, y: 0, fontSize: 12, fontColor: "#000000", rotation: 0 },
1402
+ ], opacity: 0.5, rotation: 0, strokeWidth: 0 }));
1416
1403
  (_e = svg.querySelector("#selection-box-ghost")) === null || _e === void 0 ? void 0 : _e.remove();
1417
1404
  (_f = svg.querySelector("#polyline-helper")) === null || _f === void 0 ? void 0 : _f.setAttribute("opacity", "0");
1418
1405
  idNewPolygonRef.current = `${newPoints === null || newPoints === void 0 ? void 0 : newPoints.id}`;
@@ -1952,6 +1939,39 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, }) => {
1952
1939
  setCursor("auto");
1953
1940
  }
1954
1941
  }, [activeTool]);
1942
+ const scalingFontSize = [
1943
+ {
1944
+ label: "small",
1945
+ value: 0.5,
1946
+ },
1947
+ {
1948
+ label: "medium",
1949
+ value: 1,
1950
+ },
1951
+ {
1952
+ label: "large",
1953
+ value: 1.5,
1954
+ },
1955
+ ];
1956
+ // const handleClickButtonFontScaling = (value: number, type: string) => {
1957
+ // dispatch({
1958
+ // type: "board/setScalingFontSize",
1959
+ // payload: {
1960
+ // value,
1961
+ // type,
1962
+ // },
1963
+ // });
1964
+ // };
1965
+ // const valuesScalingFontSize = () => {
1966
+ // const pickOneSample = componentsState?.[0];
1967
+ // if (isShowTagType === "type-1") {
1968
+ // console.log({ pickOneSample });
1969
+ // return pickOneSample?.fontSizeType1;
1970
+ // }
1971
+ // if (isShowTagType === "type-2") {
1972
+ // return pickOneSample?.fontSizeType2;
1973
+ // }
1974
+ // };
1955
1975
  return (_jsxs(_Fragment, { children: [_jsxs(ModalPreview, { children: [_jsx(LayerView, { statusKey: "status", loadingRender: loadingRender, actionPrivileged: {
1956
1976
  select: false,
1957
1977
  move: false,
@@ -78,7 +78,8 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, }) => {
78
78
  const [selectedLines, setSelectedLines] = useState(null);
79
79
  useEffect(() => {
80
80
  if (activeTool === "select" || activeTool !== "select") {
81
- (!["text", "polygon"].includes(selectedComponentProps === null || selectedComponentProps === void 0 ? void 0 : selectedComponentProps.shape)) && handleUnSelectComponent();
81
+ !["text", "polygon"].includes(selectedComponentProps === null || selectedComponentProps === void 0 ? void 0 : selectedComponentProps.shape) &&
82
+ handleUnSelectComponent();
82
83
  }
83
84
  if (activeTool !== "polygon") {
84
85
  isOnMakePolygonRef.current = false;
@@ -426,7 +427,7 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, }) => {
426
427
  const idNewPolygonRef = useRef("");
427
428
  useEffect(() => {
428
429
  const id = idNewPolygonRef.current;
429
- const findById = extraComponentsState.find(item => item.id === id);
430
+ const findById = extraComponentsState.find((item) => item.id === id);
430
431
  if (findById) {
431
432
  const svg = svgRef.current;
432
433
  const { g } = getAttributeElement(svg, id);
@@ -1390,28 +1391,14 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, }) => {
1390
1391
  const newPoints = Object.assign(Object.assign({}, selectedComponent), { points: [...selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent.points, newCoord] });
1391
1392
  (_c = svg.querySelector("#polyline-helper")) === null || _c === void 0 ? void 0 : _c.setAttribute("opacity", "1");
1392
1393
  if (closing && ((_d = selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent.points) === null || _d === void 0 ? void 0 : _d.length) > 2) {
1393
- const { inner, g } = getAttributeElement(svg, String(selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent.id));
1394
+ const { inner } = getAttributeElement(svg, String(selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent.id));
1394
1395
  const { height, width } = getGlobalBBox(svg, inner);
1395
1396
  isOnMakePolygonRef.current = false;
1396
1397
  polygonElementRef.current = [];
1397
- addComponents(Object.assign(Object.assign({}, newPoints), { x: 0, y: 0, width, height }));
1398
- // setSelectedComponent(newPoints);
1399
- // setTimeout(() => {
1400
- // const boxGroup = getGlobalBBox(svg, g);
1401
- // let boxSelection = {
1402
- // ...newPoints,
1403
- // ...boxGroup,
1404
- // rotation: 0,
1405
- // shape: "selection-box",
1406
- // };
1407
- // setSelectedLines(boxSelection);
1408
- // },100)
1409
- // dispatch({
1410
- // type: "panel/setSelectedComponent",
1411
- // payload: newPoints,
1412
- // });
1413
- // dispatch({ type: "panel/setShow", payload: true });
1414
- // dispatch({ type: "tool/setActiveTool", payload: "select" });
1398
+ addComponents(Object.assign(Object.assign({}, newPoints), { x: 0, y: 0, width,
1399
+ height, labels: [
1400
+ { label: "", x: 0, y: 0, fontSize: 12, fontColor: "#000000", rotation: 0 },
1401
+ ], opacity: 0.5, rotation: 0, strokeWidth: 0 }));
1415
1402
  (_e = svg.querySelector("#selection-box-ghost")) === null || _e === void 0 ? void 0 : _e.remove();
1416
1403
  (_f = svg.querySelector("#polyline-helper")) === null || _f === void 0 ? void 0 : _f.setAttribute("opacity", "0");
1417
1404
  idNewPolygonRef.current = `${newPoints === null || newPoints === void 0 ? void 0 : newPoints.id}`;
@@ -1951,8 +1938,42 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, }) => {
1951
1938
  setCursor("auto");
1952
1939
  }
1953
1940
  }, [activeTool]);
1941
+ const scalingFontSize = [
1942
+ {
1943
+ label: "small",
1944
+ value: 0.5,
1945
+ },
1946
+ {
1947
+ label: "medium",
1948
+ value: 1,
1949
+ },
1950
+ {
1951
+ label: "large",
1952
+ value: 1.5,
1953
+ },
1954
+ ];
1955
+ // const handleClickButtonFontScaling = (value: number, type: string) => {
1956
+ // dispatch({
1957
+ // type: "board/setScalingFontSize",
1958
+ // payload: {
1959
+ // value,
1960
+ // type,
1961
+ // },
1962
+ // });
1963
+ // };
1964
+ // const valuesScalingFontSize = () => {
1965
+ // const pickOneSample = componentsState?.[0];
1966
+ // if (isShowTagType === "type-1") {
1967
+ // console.log({ pickOneSample });
1968
+ // return pickOneSample?.fontSizeType1;
1969
+ // }
1970
+ // if (isShowTagType === "type-2") {
1971
+ // return pickOneSample?.fontSizeType2;
1972
+ // }
1973
+ // };
1954
1974
  return (<>
1955
1975
  <ModalPreview>
1976
+
1956
1977
  <LayerView statusKey="status" loadingRender={loadingRender} actionPrivileged={{
1957
1978
  select: false,
1958
1979
  move: false,
@@ -1960,7 +1981,24 @@ const BoardTemplate = ({ refs, loadingRender, disabled = false, }) => {
1960
1981
  drop: false,
1961
1982
  rightClick: false,
1962
1983
  }} defaultBoundingBox={boundingBox}/>
1963
- <div className="flex gap-2 mt-2">
1984
+ {/* {isShowTagType !== "default" && (
1985
+ <div className="flex gap-2 mt-2">
1986
+ {scalingFontSize?.map((item) => (
1987
+ <Button
1988
+ type="default"
1989
+ htmlType="button"
1990
+ onClick={() =>
1991
+ handleClickButtonFontScaling(item.value, isShowTagType)
1992
+ }
1993
+ >
1994
+ {item.label}
1995
+ </Button>
1996
+ ))}
1997
+ <span>{valuesScalingFontSize()}</span>
1998
+ <InputNumber prefix="x" value={valuesScalingFontSize()} />
1999
+ </div>
2000
+ )} */}
2001
+ <div className="flex gap-2 mt-2">
1964
2002
  <Radio.Group value={isShowTagType} onChange={handleCheckPreview}>
1965
2003
  <Radio value="default">Customer View</Radio>
1966
2004
  <Radio value="type-1">Layout View</Radio>
@@ -1,2 +1,2 @@
1
- declare const Navbar: () => import("react").JSX.Element;
1
+ declare const Navbar: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default Navbar;
@@ -49,5 +49,5 @@ export interface TableEditorProps<TMeta = undefined> {
49
49
  value: number;
50
50
  };
51
51
  }
52
- declare const TableEditor: <TMeta>(props: TableEditorProps<TMeta>) => React.JSX.Element;
52
+ declare const TableEditor: <TMeta>(props: TableEditorProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
53
53
  export default TableEditor;
@@ -9,6 +9,6 @@ interface FormPlaceholderContextType {
9
9
  setPlaceholderBulk: (bulk: Record<string, string>) => void;
10
10
  resetPlaceholders: () => void;
11
11
  }
12
- declare const ControlPanels: (props: ControlPanelsProps) => import("react").JSX.Element;
12
+ declare const ControlPanels: (props: ControlPanelsProps) => import("react/jsx-runtime").JSX.Element;
13
13
  export default ControlPanels;
14
14
  export declare const useFormPlaceholder: () => FormPlaceholderContextType;
@@ -72,6 +72,7 @@ const ControlPanels = (props) => {
72
72
  }
73
73
  }, [tool, show]);
74
74
  useEffect(() => {
75
+ var _a;
75
76
  if (selectedComponent) {
76
77
  resetPlaceholders();
77
78
  const id = values === null || values === void 0 ? void 0 : values.id;
@@ -139,6 +140,8 @@ const ControlPanels = (props) => {
139
140
  key,
140
141
  showAllValueNotSame(selectedGroup, key),
141
142
  ]));
143
+ const allLabels = selectedGroup === null || selectedGroup === void 0 ? void 0 : selectedGroup.map((item) => { var _a; return (_a = item.labels) === null || _a === void 0 ? void 0 : _a[0]; });
144
+ const fontSizeLabel = showAllValueNotSame(allLabels, "fontSize");
142
145
  // build values
143
146
  const values = Object.fromEntries(fields.map((key) => [
144
147
  key,
@@ -146,9 +149,12 @@ const ControlPanels = (props) => {
146
149
  ? bufferValueForm.value
147
150
  : getValueIfSame(selectedGroup, key),
148
151
  ]));
152
+ const valuesFontSizeSame = (allLabels === null || allLabels === void 0 ? void 0 : allLabels.every((item) => { var _a; return (item === null || item === void 0 ? void 0 : item.fontSize) === ((_a = allLabels[0]) === null || _a === void 0 ? void 0 : _a.fontSize); }))
153
+ ? (_a = allLabels[0]) === null || _a === void 0 ? void 0 : _a.fontSize
154
+ : undefined;
149
155
  // apply
150
- setPlaceholderBulk(placeholder);
151
- form.setFieldsValue(values);
156
+ setPlaceholderBulk(Object.assign(Object.assign({}, placeholder), { fontSizeLabel: fontSizeLabel }));
157
+ form.setFieldsValue(Object.assign(Object.assign({}, values), { fontSizeLabel: valuesFontSizeSame }));
152
158
  setGroupBufferSelected(selectedGroup);
153
159
  if (notSameGroup) {
154
160
  form.setFieldValue(`${bufferValueForm === null || bufferValueForm === void 0 ? void 0 : bufferValueForm.key}`, getValueIfSame(selectedGroup, bufferValueForm === null || bufferValueForm === void 0 ? void 0 : bufferValueForm.key));
@@ -243,19 +249,26 @@ const ControlPanels = (props) => {
243
249
  }
244
250
  if ((selectedGroup === null || selectedGroup === void 0 ? void 0 : selectedGroup.length) > 0) {
245
251
  isProgrammaticChange.current = false;
246
- const { width, height, x, y, fill, stroke, opacity, rotation, strokeWidth, radius, shape, seatCount, seatFill, seatPositions, labels, openSpace, } = newValues;
252
+ const { width, height, x, y, fill, stroke, opacity, rotation, strokeWidth, radius, shape, seatCount, seatFill, seatPositions, openSpace, fontSizeLabel, } = newValues;
247
253
  const seatPositionsNew = (_c = Object.values(seatPositions)) === null || _c === void 0 ? void 0 : _c.some((item) => _.isNaN(item));
248
- const updatedGroup = selectedGroup.map((comp) => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, comp), (width !== undefined ? { width } : {})), (height !== undefined ? { height } : {})), (x !== undefined ? { x } : {})), (y !== undefined ? { y } : {})), (fill !== undefined ? { fill } : {})), (stroke !== undefined ? { stroke } : {})), (opacity !== undefined ? { opacity: Number(opacity) / 100 } : {})), (rotation !== undefined ? { rotation } : {})), (strokeWidth !== undefined ? { strokeWidth } : {})), (radius !== undefined ? { radius } : {})), (shape !== undefined ? { shape } : {})), (seatFill !== undefined ? { seatFill } : {})), (labels !== undefined ? { labels } : {})), (seatPositions !== undefined
249
- ? {
250
- seatPositions: seatPositionsNew
251
- ? getSeatPosition(shape, comp, comp === null || comp === void 0 ? void 0 : comp[seatKey])
252
- : seatPositions,
253
- }
254
- : {})), (seatCount !== undefined
255
- ? {
256
- seatCount: seatCount !== null && seatCount !== void 0 ? seatCount : getSeatCount(shape, comp, comp === null || comp === void 0 ? void 0 : comp[seatKey]),
257
- }
258
- : {})), (openSpace !== undefined ? { openSpace } : {}))));
254
+ const updatedGroup = selectedGroup.map((comp) => {
255
+ var _a;
256
+ return (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, comp), (width !== undefined ? { width } : {})), (height !== undefined ? { height } : {})), (x !== undefined ? { x } : {})), (y !== undefined ? { y } : {})), (fill !== undefined ? { fill } : {})), (stroke !== undefined ? { stroke } : {})), (opacity !== undefined ? { opacity: Number(opacity) / 100 } : {})), (rotation !== undefined ? { rotation } : {})), (strokeWidth !== undefined ? { strokeWidth } : {})), (radius !== undefined ? { radius } : {})), (shape !== undefined ? { shape } : {})), (seatFill !== undefined ? { seatFill } : {})), (seatPositions !== undefined
257
+ ? {
258
+ seatPositions: seatPositionsNew
259
+ ? getSeatPosition(shape, comp, comp === null || comp === void 0 ? void 0 : comp[seatKey])
260
+ : seatPositions,
261
+ }
262
+ : {})), (seatCount !== undefined
263
+ ? {
264
+ seatCount: seatCount !== null && seatCount !== void 0 ? seatCount : getSeatCount(shape, comp, comp === null || comp === void 0 ? void 0 : comp[seatKey]),
265
+ }
266
+ : {})), (openSpace !== undefined ? { openSpace } : {})), (fontSizeLabel !== undefined
267
+ ? {
268
+ labels: ((_a = comp.labels) !== null && _a !== void 0 ? _a : []).map((label) => (Object.assign(Object.assign({}, label), { fontSize: fontSizeLabel }))),
269
+ }
270
+ : {})));
271
+ });
259
272
  let minX = Infinity;
260
273
  let minY = Infinity;
261
274
  let maxX = -Infinity;
@@ -71,6 +71,7 @@ const ControlPanels = (props) => {
71
71
  }
72
72
  }, [tool, show]);
73
73
  useEffect(() => {
74
+ var _a;
74
75
  if (selectedComponent) {
75
76
  resetPlaceholders();
76
77
  const id = values === null || values === void 0 ? void 0 : values.id;
@@ -138,6 +139,8 @@ const ControlPanels = (props) => {
138
139
  key,
139
140
  showAllValueNotSame(selectedGroup, key),
140
141
  ]));
142
+ const allLabels = selectedGroup === null || selectedGroup === void 0 ? void 0 : selectedGroup.map((item) => { var _a; return (_a = item.labels) === null || _a === void 0 ? void 0 : _a[0]; });
143
+ const fontSizeLabel = showAllValueNotSame(allLabels, "fontSize");
141
144
  // build values
142
145
  const values = Object.fromEntries(fields.map((key) => [
143
146
  key,
@@ -145,9 +148,12 @@ const ControlPanels = (props) => {
145
148
  ? bufferValueForm.value
146
149
  : getValueIfSame(selectedGroup, key),
147
150
  ]));
151
+ const valuesFontSizeSame = (allLabels === null || allLabels === void 0 ? void 0 : allLabels.every((item) => { var _a; return (item === null || item === void 0 ? void 0 : item.fontSize) === ((_a = allLabels[0]) === null || _a === void 0 ? void 0 : _a.fontSize); }))
152
+ ? (_a = allLabels[0]) === null || _a === void 0 ? void 0 : _a.fontSize
153
+ : undefined;
148
154
  // apply
149
- setPlaceholderBulk(placeholder);
150
- form.setFieldsValue(values);
155
+ setPlaceholderBulk(Object.assign(Object.assign({}, placeholder), { fontSizeLabel: fontSizeLabel }));
156
+ form.setFieldsValue(Object.assign(Object.assign({}, values), { fontSizeLabel: valuesFontSizeSame }));
151
157
  setGroupBufferSelected(selectedGroup);
152
158
  if (notSameGroup) {
153
159
  form.setFieldValue(`${bufferValueForm === null || bufferValueForm === void 0 ? void 0 : bufferValueForm.key}`, getValueIfSame(selectedGroup, bufferValueForm === null || bufferValueForm === void 0 ? void 0 : bufferValueForm.key));
@@ -242,19 +248,26 @@ const ControlPanels = (props) => {
242
248
  }
243
249
  if ((selectedGroup === null || selectedGroup === void 0 ? void 0 : selectedGroup.length) > 0) {
244
250
  isProgrammaticChange.current = false;
245
- const { width, height, x, y, fill, stroke, opacity, rotation, strokeWidth, radius, shape, seatCount, seatFill, seatPositions, labels, openSpace, } = newValues;
251
+ const { width, height, x, y, fill, stroke, opacity, rotation, strokeWidth, radius, shape, seatCount, seatFill, seatPositions, openSpace, fontSizeLabel, } = newValues;
246
252
  const seatPositionsNew = (_c = Object.values(seatPositions)) === null || _c === void 0 ? void 0 : _c.some((item) => _.isNaN(item));
247
- const updatedGroup = selectedGroup.map((comp) => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, comp), (width !== undefined ? { width } : {})), (height !== undefined ? { height } : {})), (x !== undefined ? { x } : {})), (y !== undefined ? { y } : {})), (fill !== undefined ? { fill } : {})), (stroke !== undefined ? { stroke } : {})), (opacity !== undefined ? { opacity: Number(opacity) / 100 } : {})), (rotation !== undefined ? { rotation } : {})), (strokeWidth !== undefined ? { strokeWidth } : {})), (radius !== undefined ? { radius } : {})), (shape !== undefined ? { shape } : {})), (seatFill !== undefined ? { seatFill } : {})), (labels !== undefined ? { labels } : {})), (seatPositions !== undefined
248
- ? {
249
- seatPositions: seatPositionsNew
250
- ? getSeatPosition(shape, comp, comp === null || comp === void 0 ? void 0 : comp[seatKey])
251
- : seatPositions,
252
- }
253
- : {})), (seatCount !== undefined
254
- ? {
255
- seatCount: seatCount !== null && seatCount !== void 0 ? seatCount : getSeatCount(shape, comp, comp === null || comp === void 0 ? void 0 : comp[seatKey]),
256
- }
257
- : {})), (openSpace !== undefined ? { openSpace } : {}))));
253
+ const updatedGroup = selectedGroup.map((comp) => {
254
+ var _a;
255
+ return (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, comp), (width !== undefined ? { width } : {})), (height !== undefined ? { height } : {})), (x !== undefined ? { x } : {})), (y !== undefined ? { y } : {})), (fill !== undefined ? { fill } : {})), (stroke !== undefined ? { stroke } : {})), (opacity !== undefined ? { opacity: Number(opacity) / 100 } : {})), (rotation !== undefined ? { rotation } : {})), (strokeWidth !== undefined ? { strokeWidth } : {})), (radius !== undefined ? { radius } : {})), (shape !== undefined ? { shape } : {})), (seatFill !== undefined ? { seatFill } : {})), (seatPositions !== undefined
256
+ ? {
257
+ seatPositions: seatPositionsNew
258
+ ? getSeatPosition(shape, comp, comp === null || comp === void 0 ? void 0 : comp[seatKey])
259
+ : seatPositions,
260
+ }
261
+ : {})), (seatCount !== undefined
262
+ ? {
263
+ seatCount: seatCount !== null && seatCount !== void 0 ? seatCount : getSeatCount(shape, comp, comp === null || comp === void 0 ? void 0 : comp[seatKey]),
264
+ }
265
+ : {})), (openSpace !== undefined ? { openSpace } : {})), (fontSizeLabel !== undefined
266
+ ? {
267
+ labels: ((_a = comp.labels) !== null && _a !== void 0 ? _a : []).map((label) => (Object.assign(Object.assign({}, label), { fontSize: fontSizeLabel }))),
268
+ }
269
+ : {})));
270
+ });
258
271
  let minX = Infinity;
259
272
  let minY = Infinity;
260
273
  let maxX = -Infinity;
@@ -1,2 +1,2 @@
1
- declare const PolygonTool: () => import("react").JSX.Element;
1
+ declare const PolygonTool: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default PolygonTool;
@@ -1,5 +1,5 @@
1
1
  declare const SelectToolForm: ({ action, tranform }: {
2
2
  action: any;
3
3
  tranform: any;
4
- }) => import("react").JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
5
  export default SelectToolForm;
@@ -1,4 +1,4 @@
1
1
  declare const SelectedGroup: ({ action, }: {
2
2
  action?: (file: File) => Promise<string>;
3
- }) => import("react").JSX.Element;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
4
  export default SelectedGroup;
@@ -44,6 +44,6 @@ const SelectedGroup = ({ action, }) => {
44
44
  if (Number.isNaN(num))
45
45
  return null;
46
46
  return Math.min(100, Math.max(0, num));
47
- }, suffix: "%" }) })] })] })] }) }));
47
+ }, suffix: "%" }) }), _jsx(Form.Item, { label: "Font Size", name: "fontSizeLabel", className: "w-full", layout: "horizontal", labelCol: { style: { width: 100, textAlign: "left" } }, wrapperCol: { style: { flex: 1 } }, children: _jsx(InputNumber, { name: "fontSizeLabel", suffix: "px", style: { width: "100%" }, placeholder: placeholders["fontSizeLabel"] }) })] })] })] }) }));
48
48
  };
49
49
  export default SelectedGroup;
@@ -122,6 +122,9 @@ const SelectedGroup = ({ action, }) => {
122
122
  return Math.min(100, Math.max(0, num));
123
123
  }} suffix="%"/>
124
124
  </Form.Item>
125
+ <Form.Item label="Font Size" name={"fontSizeLabel"} className="w-full" layout="horizontal" labelCol={{ style: { width: 100, textAlign: "left" } }} wrapperCol={{ style: { flex: 1 } }}>
126
+ <InputNumber name={"fontSizeLabel"} suffix="px" style={{ width: "100%" }} placeholder={placeholders["fontSizeLabel"]}/>
127
+ </Form.Item>
125
128
  </Flex>
126
129
  {/* {!allExtraComponent && <SectionLabel />} */}
127
130
  {/* </>
@@ -1,2 +1,2 @@
1
- declare const SquareToolForm: () => import("react").JSX.Element;
1
+ declare const SquareToolForm: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default SquareToolForm;
@@ -1,2 +1,2 @@
1
- declare const SeatCircle: () => import("react").JSX.Element;
1
+ declare const SeatCircle: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default SeatCircle;
@@ -1,2 +1,2 @@
1
- declare const SeatSquare: () => import("react").JSX.Element;
1
+ declare const SeatSquare: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default SeatSquare;
@@ -1,2 +1,2 @@
1
- declare const TextTool: () => import("react").JSX.Element;
1
+ declare const TextTool: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default TextTool;
@@ -6,5 +6,5 @@ interface UploadToolProps {
6
6
  defaultValue?: PropertiesProps;
7
7
  transform?: any;
8
8
  }
9
- declare const UploadTool: ({ name, type, action, transform }: UploadToolProps) => import("react").JSX.Element;
9
+ declare const UploadTool: ({ name, type, action, transform }: UploadToolProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default UploadTool;
@@ -6,5 +6,5 @@ interface UploadToolProps {
6
6
  defaultValue?: PropertiesProps;
7
7
  transform?: any;
8
8
  }
9
- declare const UploadToolForm: (props: UploadToolProps) => import("react").JSX.Element;
9
+ declare const UploadToolForm: (props: UploadToolProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default UploadToolForm;
@@ -52,14 +52,30 @@ const UploadTool = ({ name, type, action, defaultValue, transform, }) => {
52
52
  const heightWorkspace = ((_c = document === null || document === void 0 ? void 0 : document.getElementById("workspace")) === null || _c === void 0 ? void 0 : _c.clientHeight) || 0;
53
53
  const defaultFormatValue = (width, height, src, id, x, y) => ({
54
54
  id: id ? String(id) : `${Date.now()}`,
55
- x: x || (Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionX) < 10 ? 10 : Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionX)),
56
- y: y || (Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionY) < 10 ? 10 : Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionY)),
55
+ x: x ||
56
+ (Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionX) < 10
57
+ ? 10
58
+ : Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionX)),
59
+ y: y ||
60
+ (Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionY) < 10
61
+ ? 10
62
+ : Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionY)),
57
63
  width: width < 1 ? 200 : width,
58
64
  height: height < 1 ? 200 : height,
59
65
  rotation: 0,
60
66
  shape: name,
61
67
  src,
62
68
  opacity: 1,
69
+ strokeWidth: 0,
70
+ labels: [
71
+ {
72
+ label: "",
73
+ x: 0,
74
+ y: 0,
75
+ rotation: 0,
76
+ fontSize: 12,
77
+ },
78
+ ],
63
79
  });
64
80
  const propsUpload = {
65
81
  name: "file",
@@ -190,7 +206,8 @@ const UploadToolForm = (props) => {
190
206
  const isExtraComponent = extraComponents.some((item) => item.id === (selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent.id));
191
207
  const maxSeat = (selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent[seatKey]) || 0;
192
208
  return (_jsxs("div", { className: "py-2", children: [_jsx("h1", { className: "heading-s", children: "Section Shape" }), (selectedComponent === null || selectedComponent === void 0 ? void 0 : selectedComponent.id) && !isExtraComponent && (_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) => {
193
- const disabled = item.value === "table-seat-rect-circle" && (maxSeat > 4 || maxSeat < 4);
209
+ const disabled = item.value === "table-seat-rect-circle" &&
210
+ (maxSeat > 4 || maxSeat < 4);
194
211
  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"
195
212
  ? `Circle Type 2 (only for 4 ${seatKey})`
196
213
  : item.label })] }) }, item.value));
@@ -51,14 +51,30 @@ const UploadTool = ({ name, type, action, defaultValue, transform, }) => {
51
51
  const heightWorkspace = ((_c = document === null || document === void 0 ? void 0 : document.getElementById("workspace")) === null || _c === void 0 ? void 0 : _c.clientHeight) || 0;
52
52
  const defaultFormatValue = (width, height, src, id, x, y) => ({
53
53
  id: id ? String(id) : `${Date.now()}`,
54
- x: x || (Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionX) < 10 ? 10 : Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionX)),
55
- y: y || (Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionY) < 10 ? 10 : Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionY)),
54
+ x: x ||
55
+ (Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionX) < 10
56
+ ? 10
57
+ : Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionX)),
58
+ y: y ||
59
+ (Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionY) < 10
60
+ ? 10
61
+ : Math.abs(transformState === null || transformState === void 0 ? void 0 : transformState.positionY)),
56
62
  width: width < 1 ? 200 : width,
57
63
  height: height < 1 ? 200 : height,
58
64
  rotation: 0,
59
65
  shape: name,
60
66
  src,
61
67
  opacity: 1,
68
+ strokeWidth: 0,
69
+ labels: [
70
+ {
71
+ label: "",
72
+ x: 0,
73
+ y: 0,
74
+ rotation: 0,
75
+ fontSize: 12,
76
+ },
77
+ ],
62
78
  });
63
79
  const propsUpload = {
64
80
  name: "file",
@@ -223,7 +239,8 @@ const UploadToolForm = (props) => {
223
239
  <Form.Item label="Name" name="shape" className="w-full">
224
240
  <Select className="w-full">
225
241
  {optionsShape === null || optionsShape === void 0 ? void 0 : optionsShape.map((item) => {
226
- const disabled = item.value === "table-seat-rect-circle" && (maxSeat > 4 || maxSeat < 4);
242
+ const disabled = item.value === "table-seat-rect-circle" &&
243
+ (maxSeat > 4 || maxSeat < 4);
227
244
  return (<Option key={item.value} value={item.value} disabled={disabled} className="flex w-full items-center">
228
245
  <Flex gap={5} align="center" justify="between">
229
246
  {item.icon}
@@ -111,9 +111,10 @@ export function getTotalSeats(position) {
111
111
  return top + right + bottom + left;
112
112
  }
113
113
  export function isSameAllByKey(arr, key) {
114
+ var _a;
114
115
  if (!arr || arr.length === 0)
115
116
  return false;
116
- const firstValue = arr[0][key];
117
+ const firstValue = (_a = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _a === void 0 ? void 0 : _a[key];
117
118
  return arr.every((item) => (item === null || item === void 0 ? void 0 : item[key]) === firstValue);
118
119
  }
119
120
  export function getValueIfSame(arr, key) {
@@ -140,6 +141,7 @@ export function getAllValuesKey(arr, key) {
140
141
  .filter((value, index, self) => self.indexOf(value) === index);
141
142
  }
142
143
  export function showAllValueNotSame(arr, key) {
144
+ var _a;
143
145
  if (key === "opacity") {
144
146
  return !isSameAllByKey(arr, key)
145
147
  ? `${getAllValuesKey(arr, key)
@@ -149,7 +151,7 @@ export function showAllValueNotSame(arr, key) {
149
151
  }
150
152
  return !isSameAllByKey(arr, key)
151
153
  ? `${getAllValuesKey(arr, key)}`
152
- : `${arr[0][key]}`;
154
+ : `${(_a = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _a === void 0 ? void 0 : _a[key]}`;
153
155
  }
154
156
  export const objectDataKlenik = [
155
157
  "width",
@@ -4,5 +4,5 @@ declare const SideTool: ({ dragOnly, deleteAutorized, }: {
4
4
  component: boolean;
5
5
  extraComponent: boolean;
6
6
  };
7
- }) => import("react").JSX.Element;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
8
  export default SideTool;
@@ -15,5 +15,5 @@ export interface LayerViewProps {
15
15
  containerProps?: any;
16
16
  svgProps?: any;
17
17
  }
18
- declare const LayerView: (props: LayerViewProps) => import("react").JSX.Element;
18
+ declare const LayerView: (props: LayerViewProps) => import("react/jsx-runtime").JSX.Element;
19
19
  export default LayerView;
@@ -91,5 +91,5 @@ export interface LayerViewProps<TMeta = undefined> {
91
91
  rightClick: boolean;
92
92
  };
93
93
  }
94
- declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => React.JSX.Element;
94
+ declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
95
95
  export default LayerView;
@@ -93,5 +93,5 @@ export interface LayerViewProps<TMeta = undefined> {
93
93
  double?: boolean;
94
94
  };
95
95
  }
96
- declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => React.JSX.Element;
96
+ declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
97
97
  export default LayerView;
@@ -27,6 +27,7 @@ const LayerView = (props) => {
27
27
  x: 0,
28
28
  y: 0,
29
29
  visible: false,
30
+ isBottom: false
30
31
  });
31
32
  const isDragging = useRef(false);
32
33
  const [panningGroup, setPanningGroup] = useState(false);
@@ -497,10 +498,12 @@ const LayerView = (props) => {
497
498
  newY = relY;
498
499
  }
499
500
  const rightClick = e.button === 2 && !dataGroupEmty && allowTooltip;
501
+ const isBottom = relY > centerY;
500
502
  setTooltip({
501
503
  x: newX / getScaleTransform,
502
504
  y: newY / getScaleTransform,
503
505
  visible: rightClick,
506
+ isBottom
504
507
  });
505
508
  const findDayaById = originalData({ id: dataId, type: "find" });
506
509
  const now = Date.now();
@@ -683,6 +686,6 @@ const LayerView = (props) => {
683
686
  // pointerEvents: disabled ? "none" : "all",
684
687
  touchAction: "none",
685
688
  userSelect: "none",
686
- } }, props.svgProps, { children: [hasBoundingBox && (_jsx("defs", { children: _jsx("clipPath", { id: "contentCrop", children: _jsx("rect", { x: boundingBox.minX, y: boundingBox.minY, width: boundingBox.width, height: boundingBox.height }) }) })), _jsx("g", { id: "main-layer", clipPath: "url(#contentCrop)", children: _jsx(Layers, { components: componentsAll, selectedTable: selectedTable, iconTags: iconTags, eventMatchTable: eventMatchTable, privilegedTags: privilegedTags }) })] })), tooltip.visible && (_jsx("div", { className: `seat-editor tooltip-container ${tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.className}`, style: Object.assign({ top: tooltip.y, left: tooltip.x, transform: `scale(${1 / getScaleTransform})`, transformOrigin: "top left", minWidth: widthTooltip + "px" }, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.style), children: tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.children }))] }) }))] })));
689
+ } }, props.svgProps, { children: [hasBoundingBox && (_jsx("defs", { children: _jsx("clipPath", { id: "contentCrop", children: _jsx("rect", { x: boundingBox.minX, y: boundingBox.minY, width: boundingBox.width, height: boundingBox.height }) }) })), _jsx("g", { id: "main-layer", clipPath: "url(#contentCrop)", children: _jsx(Layers, { components: componentsAll, selectedTable: selectedTable, iconTags: iconTags, eventMatchTable: eventMatchTable, privilegedTags: privilegedTags }) })] })), tooltip.visible && (_jsxs("div", { className: `seat-editor tooltip-container ${tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.className}`, style: Object.assign({ top: tooltip.y, left: tooltip.x, transform: `scale(${1 / getScaleTransform}) ${tooltip.isBottom ? "translateY(-100%)" : ""}`, transformOrigin: "top left", minWidth: widthTooltip + "px" }, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.style), children: [_jsxs("div", { className: "tooltip-content", children: [_jsx("h1", { children: "Tooltip" }), _jsx("p", { children: "test" }), _jsx("p", { children: "test" }), _jsx("p", { children: "test" }), _jsx("p", { children: "test" }), _jsx("p", { children: "test" }), _jsx("p", { children: "test" }), _jsx("p", { children: "test" }), _jsx("p", { children: "test" }), _jsx("p", { children: "test" })] }), tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.children] }))] }) }))] })));
687
690
  };
688
691
  export default LayerView;
@@ -26,6 +26,7 @@ const LayerView = (props) => {
26
26
  x: 0,
27
27
  y: 0,
28
28
  visible: false,
29
+ isBottom: false
29
30
  });
30
31
  const isDragging = useRef(false);
31
32
  const [panningGroup, setPanningGroup] = useState(false);
@@ -496,10 +497,12 @@ const LayerView = (props) => {
496
497
  newY = relY;
497
498
  }
498
499
  const rightClick = e.button === 2 && !dataGroupEmty && allowTooltip;
500
+ const isBottom = relY > centerY;
499
501
  setTooltip({
500
502
  x: newX / getScaleTransform,
501
503
  y: newY / getScaleTransform,
502
504
  visible: rightClick,
505
+ isBottom
503
506
  });
504
507
  const findDayaById = originalData({ id: dataId, type: "find" });
505
508
  const now = Date.now();
@@ -706,7 +709,20 @@ const LayerView = (props) => {
706
709
  </g>
707
710
  {/* 🧠 Ghost universal */}
708
711
  </svg>
709
- {tooltip.visible && (<div className={`seat-editor tooltip-container ${tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.className}`} style={Object.assign({ top: tooltip.y, left: tooltip.x, transform: `scale(${1 / getScaleTransform})`, transformOrigin: "top left", minWidth: widthTooltip + "px" }, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.style)}>
712
+ {tooltip.visible && (<div className={`seat-editor tooltip-container ${tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.className}`} style={Object.assign({ top: tooltip.y, left: tooltip.x, transform: `scale(${1 / getScaleTransform}) ${tooltip.isBottom ? "translateY(-100%)" : ""}`, transformOrigin: "top left", minWidth: widthTooltip + "px" }, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.style)}>
713
+ <div className="tooltip-content">
714
+ <h1>Tooltip</h1>
715
+ <p>test</p>
716
+ <p>test</p>
717
+ <p>test</p>
718
+ <p>test</p>
719
+ <p>test</p>
720
+ <p>test</p>
721
+ <p>test</p>
722
+ <p>test</p>
723
+ <p>test</p>
724
+
725
+ </div>
710
726
  {tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.children}
711
727
  </div>)}
712
728
  </TransformComponent>
@@ -95,5 +95,5 @@ export interface LayerViewProps<TMeta = undefined> {
95
95
  onEdgesChange?: (edges: EdgeType[], table: PropertiesProps[]) => void;
96
96
  keyNode: string;
97
97
  }
98
- declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => React.JSX.Element;
98
+ declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
99
99
  export default LayerView;
@@ -98,5 +98,5 @@ export interface LayerViewProps<TMeta = undefined> {
98
98
  isSelectNode?: boolean;
99
99
  onMakeSelection?: (component: ComponentProps<TMeta>[]) => void;
100
100
  }
101
- declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => React.JSX.Element;
101
+ declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
102
102
  export default LayerView;
@@ -95,5 +95,5 @@ export interface LayerViewProps<TMeta = undefined> {
95
95
  onEdgesChange?: (edges: EdgeType[], table: PropertiesProps[]) => void;
96
96
  keyNode: string;
97
97
  }
98
- declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => React.JSX.Element;
98
+ declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
99
99
  export default LayerView;
@@ -95,5 +95,5 @@ export interface LayerViewProps<TMeta = undefined> {
95
95
  onEdgesChange?: (edges: EdgeType[], table: PropertiesProps[]) => void;
96
96
  keyNode: string;
97
97
  }
98
- declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => React.JSX.Element;
98
+ declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
99
99
  export default LayerView;
@@ -40,6 +40,9 @@ export const AntdProvider = ({ children, themeColor }) => {
40
40
  },
41
41
  Select: {
42
42
  optionHeight: 40,
43
+ },
44
+ Segmented: {
45
+ itemSelectedBg: "#000000"
43
46
  }
44
47
  },
45
48
  }, children: children }) }));
@@ -40,6 +40,9 @@ export const AntdProvider = ({ children, themeColor }) => {
40
40
  },
41
41
  Select: {
42
42
  optionHeight: 40,
43
+ },
44
+ Segmented: {
45
+ itemSelectedBg: "#000000"
43
46
  }
44
47
  },
45
48
  }}>
@@ -1,3 +1,3 @@
1
1
  export declare const ReduxProvider: ({ children }: {
2
2
  children: React.ReactNode;
3
- }) => import("react").JSX.Element;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export declare const StoreProvider: ({ children, themeColor, }: {
2
2
  children: React.ReactNode;
3
3
  themeColor?: string;
4
- }) => import("react").JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.5.63",
3
+ "version": "3.5.64",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",