seat-editor 3.5.65 → 3.6.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/graph-view/page.d.ts +1 -1
- package/dist/app/graph-view-new/page.d.ts +1 -1
- 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 +18 -1
- package/dist/app/new-board/page.jsx +18 -1
- 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-radio/index.d.ts +11 -0
- package/dist/components/button-radio/index.js +19 -0
- package/dist/components/button-radio/index.jsx +22 -0
- package/dist/components/button-tools/index.d.ts +1 -1
- package/dist/components/form-tools/label.d.ts +1 -1
- package/dist/components/form-tools/label.js +20 -2
- package/dist/components/form-tools/label.jsx +30 -2
- package/dist/components/form-tools/shape.d.ts +2 -2
- package/dist/components/icons/camera.d.ts +1 -2
- package/dist/components/icons/circle.d.ts +1 -2
- package/dist/components/icons/square.d.ts +1 -2
- package/dist/components/icons/type-1.d.ts +1 -2
- package/dist/components/icons/type-2.d.ts +1 -2
- package/dist/components/icons/type-3.d.ts +1 -2
- package/dist/components/icons/type-4.d.ts +1 -2
- package/dist/components/icons/type-5.d.ts +1 -2
- 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 +10 -3
- package/dist/components/layer-v3/index.js +65 -95
- package/dist/components/layer-v3/index.jsx +79 -115
- package/dist/components/layer-v4/constant.d.ts +16 -2
- package/dist/components/layer-v4/constant.js +57 -12
- package/dist/components/layer-v4/index.d.ts +1 -1
- package/dist/components/layer-v4/index.js +111 -188
- package/dist/components/layer-v4/index.jsx +124 -215
- package/dist/components/layer-v5/index.d.ts +1 -1
- package/dist/components/lib/index.d.ts +1 -1
- package/dist/components/modal-preview/index.d.ts +4 -2
- package/dist/components/modal-preview/index.js +12 -2
- package/dist/components/modal-preview/index.jsx +13 -3
- package/dist/dto/table.d.ts +5 -0
- package/dist/features/board/index.d.ts +1 -1
- package/dist/features/board-v2/index.d.ts +1 -2
- package/dist/features/board-v3/board-slice.d.ts +2 -1
- package/dist/features/board-v3/board-slice.js +4 -1
- package/dist/features/board-v3/constant.d.ts +5 -1
- package/dist/features/board-v3/constant.js +23 -1
- package/dist/features/board-v3/index.d.ts +6 -1
- package/dist/features/board-v3/index.js +59 -49
- package/dist/features/board-v3/index.jsx +105 -68
- package/dist/features/board-v3/utils.js +48 -28
- package/dist/features/navbar/index.d.ts +1 -1
- package/dist/features/package/index.d.ts +6 -1
- package/dist/features/package/index.js +1 -1
- package/dist/features/package/index.jsx +2 -2
- package/dist/features/panel/index.d.ts +1 -1
- package/dist/features/panel/index.js +2 -2
- package/dist/features/panel/index.jsx +2 -2
- package/dist/features/panel/polygon.d.ts +1 -1
- package/dist/features/panel/select-tool.d.ts +1 -1
- package/dist/features/panel/selected-group.d.ts +1 -1
- package/dist/features/panel/selected-group.js +2 -2
- package/dist/features/panel/selected-group.jsx +4 -2
- 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/upload-group-tool.d.ts +1 -1
- package/dist/features/panel/upload-tool.d.ts +1 -1
- package/dist/features/side-tool/icons.d.ts +1 -0
- package/dist/features/side-tool/icons.js +2 -0
- package/dist/features/side-tool/icons.jsx +6 -0
- package/dist/features/side-tool/index.d.ts +7 -2
- package/dist/features/side-tool/index.js +31 -3
- package/dist/features/side-tool/index.jsx +32 -16
- package/dist/features/side-tool/side-tool-slice.d.ts +2 -0
- package/dist/features/side-tool/side-tool-slice.js +8 -1
- 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-3/index.js +1 -22
- package/dist/features/view-only-3/index.jsx +1 -22
- package/dist/features/view-only-4/index.d.ts +1 -1
- package/dist/features/view-only-5/index.d.ts +1 -1
- package/dist/features/view-only-6/index.d.ts +1 -1
- package/dist/features/view-only-7/index.d.ts +1 -1
- package/dist/provider/antd-provider.js +5 -2
- package/dist/provider/antd-provider.jsx +5 -2
- package/dist/provider/redux-provider.d.ts +1 -1
- package/dist/provider/store-provider.d.ts +1 -1
- package/package.json +1 -1
|
@@ -249,8 +249,8 @@ const TableEditor = (props) => {
|
|
|
249
249
|
Logo Navbar
|
|
250
250
|
</div>)}
|
|
251
251
|
</div>
|
|
252
|
-
<SideTool dragOnly={dragOnly} deleteAutorized={deleteAutorized}/>
|
|
253
|
-
<Board key={`${viewOnly}`} refs={refsBoard} loadingRender={props === null || props === void 0 ? void 0 : props.loadingRender} disabled={props === null || props === void 0 ? void 0 : props.disabledView}/>
|
|
252
|
+
<SideTool dragOnly={dragOnly} deleteAutorized={deleteAutorized} priviewActive={props === null || props === void 0 ? void 0 : props.priviewActive}/>
|
|
253
|
+
<Board key={`${viewOnly}`} refs={refsBoard} loadingRender={props === null || props === void 0 ? void 0 : props.loadingRender} disabled={props === null || props === void 0 ? void 0 : props.disabledView} priviewActive={props === null || props === void 0 ? void 0 : props.priviewActive}/>
|
|
254
254
|
<ControlPanels action={props.action} transform={(_a = refsBoard === null || refsBoard === void 0 ? void 0 : refsBoard.current) === null || _a === void 0 ? void 0 : _a.transformRef}/>
|
|
255
255
|
</div>)}
|
|
256
256
|
</div>
|
|
@@ -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;
|
|
@@ -343,12 +343,12 @@ const ControlPanels = (props) => {
|
|
|
343
343
|
unsetPlaceholder,
|
|
344
344
|
setPlaceholderBulk,
|
|
345
345
|
resetPlaceholders,
|
|
346
|
-
}, children: _jsx("div", { className: clsx("w-[300px] h-full absolute top-0 z-50 transition-all duration-300
|
|
346
|
+
}, children: _jsx("div", { className: clsx("w-[300px] h-full absolute top-0 z-50 transition-all duration-300 mt-[78px]", open ? "right-0" : "right-[-1000px]"), onTransitionEnd: () => {
|
|
347
347
|
if (open && !hasFocusedRef.current) {
|
|
348
348
|
form.focusField("text");
|
|
349
349
|
hasFocusedRef.current = true;
|
|
350
350
|
}
|
|
351
|
-
}, children: _jsx("div", { className: "bg-white
|
|
351
|
+
}, children: _jsx("div", { className: "bg-white w-full p-2 border-l border-gray-300 overflow-y-auto", style: { height: "calc(100vh - 78px)" }, children: _jsxs(Form, { layout: "vertical", form: form, name: "table", colon: false, onValuesChange: handleChangeComponent, onFocus: (e) => {
|
|
352
352
|
var _a, _b, _c;
|
|
353
353
|
e.stopPropagation();
|
|
354
354
|
const name = e.target.name;
|
|
@@ -343,13 +343,13 @@ const ControlPanels = (props) => {
|
|
|
343
343
|
setPlaceholderBulk,
|
|
344
344
|
resetPlaceholders,
|
|
345
345
|
}}>
|
|
346
|
-
<div className={clsx("w-[300px] h-full absolute top-0 z-50 transition-all duration-300
|
|
346
|
+
<div className={clsx("w-[300px] h-full absolute top-0 z-50 transition-all duration-300 mt-[78px]", open ? "right-0" : "right-[-1000px]")} onTransitionEnd={() => {
|
|
347
347
|
if (open && !hasFocusedRef.current) {
|
|
348
348
|
form.focusField("text");
|
|
349
349
|
hasFocusedRef.current = true;
|
|
350
350
|
}
|
|
351
351
|
}}>
|
|
352
|
-
<div className="bg-white
|
|
352
|
+
<div className="bg-white w-full p-2 border-l border-gray-300 overflow-y-auto" style={{ height: "calc(100vh - 78px)" }}>
|
|
353
353
|
<Form layout="vertical" form={form} name="table" colon={false} onValuesChange={handleChangeComponent} onFocus={(e) => {
|
|
354
354
|
var _a, _b, _c;
|
|
355
355
|
e.stopPropagation();
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { optionsShape } from "../../components/form-tools/shape";
|
|
4
|
-
import { ColorPicker, Flex, Form, InputNumber, Select } from "antd";
|
|
4
|
+
import { ColorPicker, Divider, Flex, Form, InputNumber, Select } from "antd";
|
|
5
5
|
import { useAppSelector } from "../../hooks/use-redux";
|
|
6
6
|
import { useFormPlaceholder } from ".";
|
|
7
7
|
import { MIN_HEIGHT, MIN_WIDTH, MIN_X, MIN_Y } from "../board-v3/constant";
|
|
@@ -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: "%" }) }), _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"] }) })] })] })] }) }));
|
|
47
|
+
}, suffix: "%" }) }), _jsx("h1", { className: "heading-s", children: "Section Labeling" }), _jsx(Divider, { style: { margin: 4, marginBottom: 12 } }), _jsx(Form.Item, { label: "Font Size", name: "fontSizeLabel", className: "w-full mt-2", layout: "horizontal", labelCol: { style: { width: 100, textAlign: "left", marginTop: 4 } }, wrapperCol: { style: { flex: 1 } }, children: _jsx(InputNumber, { name: "fontSizeLabel", suffix: "px", style: { width: "100%" }, placeholder: placeholders["fontSizeLabel"] }) })] })] })] }) }));
|
|
48
48
|
};
|
|
49
49
|
export default SelectedGroup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { optionsShape } from "../../components/form-tools/shape";
|
|
3
|
-
import { ColorPicker, Flex, Form, InputNumber, Select } from "antd";
|
|
3
|
+
import { ColorPicker, Divider, Flex, Form, InputNumber, Select } from "antd";
|
|
4
4
|
import { useAppSelector } from "../../hooks/use-redux";
|
|
5
5
|
import { useFormPlaceholder } from ".";
|
|
6
6
|
import { MIN_HEIGHT, MIN_WIDTH, MIN_X, MIN_Y } from "../board-v3/constant";
|
|
@@ -122,7 +122,9 @@ const SelectedGroup = ({ action, }) => {
|
|
|
122
122
|
return Math.min(100, Math.max(0, num));
|
|
123
123
|
}} suffix="%"/>
|
|
124
124
|
</Form.Item>
|
|
125
|
-
<
|
|
125
|
+
<h1 className="heading-s">Section Labeling</h1>
|
|
126
|
+
<Divider style={{ margin: 4, marginBottom: 12 }}/>
|
|
127
|
+
<Form.Item label="Font Size" name={"fontSizeLabel"} className="w-full mt-2" layout="horizontal" labelCol={{ style: { width: 100, textAlign: "left", marginTop: 4 } }} wrapperCol={{ style: { flex: 1 } }}>
|
|
126
128
|
<InputNumber name={"fontSizeLabel"} suffix="px" style={{ width: "100%" }} placeholder={placeholders["fontSizeLabel"]}/>
|
|
127
129
|
</Form.Item>
|
|
128
130
|
</Flex>
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FontSizeIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const FontSizeIcon = () => (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M7.47998 10.2217C7.86406 10.2217 8.17529 10.5339 8.17529 10.918V12.1357C8.1751 12.5197 7.86394 12.831 7.47998 12.8311C7.09598 12.8311 6.78486 12.5197 6.78467 12.1357V11.6133H5.73975V15.0938H6.26221C6.64625 15.0938 6.95752 15.405 6.95752 15.7891C6.95747 16.1731 6.64622 16.4843 6.26221 16.4844H3.82666C3.44257 16.4844 3.13042 16.1731 3.13037 15.7891C3.13037 15.4049 3.44254 15.0938 3.82666 15.0938H4.34814V11.6133H3.3042V12.1357C3.30401 12.5196 2.99269 12.8308 2.60889 12.8311C2.22488 12.8311 1.91279 12.5197 1.9126 12.1357V10.918C1.9126 10.5338 2.22476 10.2217 2.60889 10.2217H7.47998Z", fill: "black", stroke: "black", strokeWidth: "0.173207" }), _jsx("path", { d: "M14.8271 6.56738C15.2113 6.56738 15.5225 6.87955 15.5225 7.26367V8.48145C15.5223 8.8654 15.2112 9.17676 14.8271 9.17676C14.4431 9.17676 14.132 8.8654 14.1318 8.48145V7.95898H12.4775V15.0928H13C13.3841 15.0928 13.6962 15.404 13.6963 15.7881C13.6963 16.1722 13.3841 16.4834 13 16.4834H10.5645C10.1804 16.4833 9.86914 16.1721 9.86914 15.7881C9.86924 15.4041 10.1805 15.0929 10.5645 15.0928H11.0869V7.95898H9.43359V8.48145C9.4334 8.86526 9.12208 9.17652 8.73828 9.17676C8.35428 9.17676 8.04218 8.8654 8.04199 8.48145V7.26367C8.04199 6.87955 8.35416 6.56738 8.73828 6.56738H14.8271Z", fill: "black", stroke: "black", strokeWidth: "0.173207" }), _jsx("path", { d: "M22.1748 2.91309C22.5589 2.91309 22.8701 3.22525 22.8701 3.60938V4.82715C22.8699 5.21111 22.5588 5.52246 22.1748 5.52246C21.7908 5.52241 21.4797 5.21108 21.4795 4.82715V4.30469H19.2168V15.0918H19.7393C20.1232 15.0918 20.4343 15.4032 20.4346 15.7871C20.4346 16.1712 20.1233 16.4834 19.7393 16.4834H17.3037C16.9196 16.4834 16.6074 16.1712 16.6074 15.7871C16.6077 15.4032 16.9197 15.0918 17.3037 15.0918H17.8262V4.30469H15.5635V4.82715C15.5633 5.21096 15.252 5.52222 14.8682 5.52246C14.4842 5.52246 14.1721 5.21111 14.1719 4.82715V3.60938C14.1719 3.22525 14.484 2.91309 14.8682 2.91309H22.1748Z", fill: "black", stroke: "black", strokeWidth: "0.173207" }), _jsx("path", { d: "M22.1753 17.5283C22.5594 17.5283 22.8706 17.8405 22.8706 18.2246V20.6602C22.8705 21.0442 22.5593 21.3555 22.1753 21.3555C21.7913 21.3554 21.4801 21.0441 21.48 20.6602V20.1377H3.3042V20.6602C3.30406 21.044 2.99272 21.3552 2.60889 21.3555C2.22485 21.3555 1.91274 21.0442 1.9126 20.6602V18.2246C1.9126 17.8405 2.22476 17.5283 2.60889 17.5283C2.9928 17.5286 3.3042 17.8406 3.3042 18.2246V18.7461H21.48V18.2246C21.48 17.8405 21.7912 17.5284 22.1753 17.5283Z", fill: "black", stroke: "black", strokeWidth: "0.173207" })] }));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const FontSizeIcon = () => (<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M7.47998 10.2217C7.86406 10.2217 8.17529 10.5339 8.17529 10.918V12.1357C8.1751 12.5197 7.86394 12.831 7.47998 12.8311C7.09598 12.8311 6.78486 12.5197 6.78467 12.1357V11.6133H5.73975V15.0938H6.26221C6.64625 15.0938 6.95752 15.405 6.95752 15.7891C6.95747 16.1731 6.64622 16.4843 6.26221 16.4844H3.82666C3.44257 16.4844 3.13042 16.1731 3.13037 15.7891C3.13037 15.4049 3.44254 15.0938 3.82666 15.0938H4.34814V11.6133H3.3042V12.1357C3.30401 12.5196 2.99269 12.8308 2.60889 12.8311C2.22488 12.8311 1.91279 12.5197 1.9126 12.1357V10.918C1.9126 10.5338 2.22476 10.2217 2.60889 10.2217H7.47998Z" fill="black" stroke="black" strokeWidth="0.173207"/>
|
|
3
|
+
<path d="M14.8271 6.56738C15.2113 6.56738 15.5225 6.87955 15.5225 7.26367V8.48145C15.5223 8.8654 15.2112 9.17676 14.8271 9.17676C14.4431 9.17676 14.132 8.8654 14.1318 8.48145V7.95898H12.4775V15.0928H13C13.3841 15.0928 13.6962 15.404 13.6963 15.7881C13.6963 16.1722 13.3841 16.4834 13 16.4834H10.5645C10.1804 16.4833 9.86914 16.1721 9.86914 15.7881C9.86924 15.4041 10.1805 15.0929 10.5645 15.0928H11.0869V7.95898H9.43359V8.48145C9.4334 8.86526 9.12208 9.17652 8.73828 9.17676C8.35428 9.17676 8.04218 8.8654 8.04199 8.48145V7.26367C8.04199 6.87955 8.35416 6.56738 8.73828 6.56738H14.8271Z" fill="black" stroke="black" strokeWidth="0.173207"/>
|
|
4
|
+
<path d="M22.1748 2.91309C22.5589 2.91309 22.8701 3.22525 22.8701 3.60938V4.82715C22.8699 5.21111 22.5588 5.52246 22.1748 5.52246C21.7908 5.52241 21.4797 5.21108 21.4795 4.82715V4.30469H19.2168V15.0918H19.7393C20.1232 15.0918 20.4343 15.4032 20.4346 15.7871C20.4346 16.1712 20.1233 16.4834 19.7393 16.4834H17.3037C16.9196 16.4834 16.6074 16.1712 16.6074 15.7871C16.6077 15.4032 16.9197 15.0918 17.3037 15.0918H17.8262V4.30469H15.5635V4.82715C15.5633 5.21096 15.252 5.52222 14.8682 5.52246C14.4842 5.52246 14.1721 5.21111 14.1719 4.82715V3.60938C14.1719 3.22525 14.484 2.91309 14.8682 2.91309H22.1748Z" fill="black" stroke="black" strokeWidth="0.173207"/>
|
|
5
|
+
<path d="M22.1753 17.5283C22.5594 17.5283 22.8706 17.8405 22.8706 18.2246V20.6602C22.8705 21.0442 22.5593 21.3555 22.1753 21.3555C21.7913 21.3554 21.4801 21.0441 21.48 20.6602V20.1377H3.3042V20.6602C3.30406 21.044 2.99272 21.3552 2.60889 21.3555C2.22485 21.3555 1.91274 21.0442 1.9126 20.6602V18.2246C1.9126 17.8405 2.22476 17.5283 2.60889 17.5283C2.9928 17.5286 3.3042 17.8406 3.3042 18.2246V18.7461H21.48V18.2246C21.48 17.8405 21.7912 17.5284 22.1753 17.5283Z" fill="black" stroke="black" strokeWidth="0.173207"/>
|
|
6
|
+
</svg>);
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { ShowTagType } from "../board-v3/board-slice";
|
|
2
|
+
declare const SideTool: ({ dragOnly, deleteAutorized, priviewActive }: {
|
|
2
3
|
dragOnly?: boolean;
|
|
3
4
|
deleteAutorized?: {
|
|
4
5
|
component: boolean;
|
|
5
6
|
extraComponent: boolean;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
+
priviewActive?: {
|
|
9
|
+
type: ShowTagType;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
13
|
export default SideTool;
|
|
@@ -6,7 +6,8 @@ import { Divider, ColorPicker, message, Popover, Flex, } from "antd";
|
|
|
6
6
|
import { useAppDispatch, useAppSelector } from "../../hooks/use-redux";
|
|
7
7
|
import { useState } from "react";
|
|
8
8
|
import clsx from "clsx";
|
|
9
|
-
|
|
9
|
+
import { FontSizeIcon } from "./icons";
|
|
10
|
+
const SideTool = ({ dragOnly, deleteAutorized, priviewActive }) => {
|
|
10
11
|
const [color, setColor] = useState("#000000");
|
|
11
12
|
const dispatch = useAppDispatch();
|
|
12
13
|
const { active, grid, lockBackground } = useAppSelector((state) => state.tool);
|
|
@@ -159,17 +160,34 @@ const SideTool = ({ dragOnly, deleteAutorized, }) => {
|
|
|
159
160
|
});
|
|
160
161
|
dispatch({ type: "board/setFlagChange", payload: true });
|
|
161
162
|
};
|
|
162
|
-
const handleOpenModalPreview = () => {
|
|
163
|
+
const handleOpenModalPreview = (type) => {
|
|
164
|
+
var _a, _b;
|
|
163
165
|
setOpenPreview(false);
|
|
164
166
|
hanldeSelectTool("select");
|
|
165
167
|
dispatch({
|
|
166
168
|
type: "tool/setTooglePreview",
|
|
167
169
|
payload: true,
|
|
168
170
|
});
|
|
171
|
+
dispatch({
|
|
172
|
+
type: "tool/setTooglePreviewType",
|
|
173
|
+
payload: type,
|
|
174
|
+
});
|
|
169
175
|
dispatch({
|
|
170
176
|
type: "panel/setSelectedComponent",
|
|
171
177
|
payload: null,
|
|
172
178
|
});
|
|
179
|
+
if (type === "setting") {
|
|
180
|
+
dispatch({
|
|
181
|
+
type: "board/setTagType",
|
|
182
|
+
payload: (_b = (_a = priviewActive === null || priviewActive === void 0 ? void 0 : priviewActive.filter((f) => f.type !== "default")) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.type,
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
dispatch({
|
|
187
|
+
type: "board/setTagType",
|
|
188
|
+
payload: "default",
|
|
189
|
+
});
|
|
190
|
+
}
|
|
173
191
|
dispatch({ type: "board/setFlagChange", payload: true });
|
|
174
192
|
};
|
|
175
193
|
const handleRemoveComponent = () => {
|
|
@@ -365,7 +383,7 @@ const SideTool = ({ dragOnly, deleteAutorized, }) => {
|
|
|
365
383
|
icon: preview ? _jsx(EyeOff, {}) : _jsx(Eye, {}),
|
|
366
384
|
type: "text",
|
|
367
385
|
name: "Preview",
|
|
368
|
-
onClick: handleOpenModalPreview,
|
|
386
|
+
onClick: () => handleOpenModalPreview("preview"),
|
|
369
387
|
style: active === "preview" ? { color: "red" } : {},
|
|
370
388
|
}, items: [], popoverProps: {
|
|
371
389
|
content: _jsx("div", { children: "Preview Tool" }),
|
|
@@ -387,6 +405,16 @@ const SideTool = ({ dragOnly, deleteAutorized, }) => {
|
|
|
387
405
|
} }), _jsx("span", { className: clsx("absolute right-[-5px] top-[2px]", {
|
|
388
406
|
"text-red-500": active === "bounding-box" || active === "preview",
|
|
389
407
|
}), children: ">" })] }) }), _jsx(ButtonTools, { buttonProps: {
|
|
408
|
+
icon: _jsx(FontSizeIcon, {}),
|
|
409
|
+
onClick: () => handleOpenModalPreview("setting"),
|
|
410
|
+
type: "text",
|
|
411
|
+
name: "setfont",
|
|
412
|
+
style: active === "setfont" ? { color: "red" } : {},
|
|
413
|
+
}, items: [], popoverProps: {
|
|
414
|
+
content: _jsx("div", { children: "Font Size Setting" }),
|
|
415
|
+
trigger: "hover",
|
|
416
|
+
placement: "right",
|
|
417
|
+
} }), _jsx(ButtonTools, { buttonProps: {
|
|
390
418
|
icon: _jsx(Grid, {}),
|
|
391
419
|
onClick: () => toggleGrid(),
|
|
392
420
|
type: "text",
|
|
@@ -5,7 +5,8 @@ import { Divider, ColorPicker, message, Popover, Flex, } from "antd";
|
|
|
5
5
|
import { useAppDispatch, useAppSelector } from "../../hooks/use-redux";
|
|
6
6
|
import { useState } from "react";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
|
|
8
|
+
import { FontSizeIcon } from "./icons";
|
|
9
|
+
const SideTool = ({ dragOnly, deleteAutorized, priviewActive }) => {
|
|
9
10
|
const [color, setColor] = useState("#000000");
|
|
10
11
|
const dispatch = useAppDispatch();
|
|
11
12
|
const { active, grid, lockBackground } = useAppSelector((state) => state.tool);
|
|
@@ -158,17 +159,34 @@ const SideTool = ({ dragOnly, deleteAutorized, }) => {
|
|
|
158
159
|
});
|
|
159
160
|
dispatch({ type: "board/setFlagChange", payload: true });
|
|
160
161
|
};
|
|
161
|
-
const handleOpenModalPreview = () => {
|
|
162
|
+
const handleOpenModalPreview = (type) => {
|
|
163
|
+
var _a, _b;
|
|
162
164
|
setOpenPreview(false);
|
|
163
165
|
hanldeSelectTool("select");
|
|
164
166
|
dispatch({
|
|
165
167
|
type: "tool/setTooglePreview",
|
|
166
168
|
payload: true,
|
|
167
169
|
});
|
|
170
|
+
dispatch({
|
|
171
|
+
type: "tool/setTooglePreviewType",
|
|
172
|
+
payload: type,
|
|
173
|
+
});
|
|
168
174
|
dispatch({
|
|
169
175
|
type: "panel/setSelectedComponent",
|
|
170
176
|
payload: null,
|
|
171
177
|
});
|
|
178
|
+
if (type === "setting") {
|
|
179
|
+
dispatch({
|
|
180
|
+
type: "board/setTagType",
|
|
181
|
+
payload: (_b = (_a = priviewActive === null || priviewActive === void 0 ? void 0 : priviewActive.filter((f) => f.type !== "default")) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.type,
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
dispatch({
|
|
186
|
+
type: "board/setTagType",
|
|
187
|
+
payload: "default",
|
|
188
|
+
});
|
|
189
|
+
}
|
|
172
190
|
dispatch({ type: "board/setFlagChange", payload: true });
|
|
173
191
|
};
|
|
174
192
|
const handleRemoveComponent = () => {
|
|
@@ -380,30 +398,18 @@ const SideTool = ({ dragOnly, deleteAutorized, }) => {
|
|
|
380
398
|
trigger: "hover",
|
|
381
399
|
placement: "right",
|
|
382
400
|
}}/>
|
|
383
|
-
{/* icon={<Scan />}
|
|
384
|
-
type="text"
|
|
385
|
-
name="Bounding Box"
|
|
386
|
-
onClick={() => hanldeSelectTool("bounding-box")}
|
|
387
|
-
style={active === "bounding-box" ? { color: "red" } : {}}
|
|
388
|
-
/> */}
|
|
389
401
|
|
|
390
402
|
<ButtonTools buttonProps={{
|
|
391
403
|
icon: preview ? <EyeOff /> : <Eye />,
|
|
392
404
|
type: "text",
|
|
393
405
|
name: "Preview",
|
|
394
|
-
onClick: handleOpenModalPreview,
|
|
406
|
+
onClick: () => handleOpenModalPreview("preview"),
|
|
395
407
|
style: active === "preview" ? { color: "red" } : {},
|
|
396
408
|
}} items={[]} popoverProps={{
|
|
397
409
|
content: <div>Preview Tool</div>,
|
|
398
410
|
trigger: "hover",
|
|
399
411
|
placement: "right",
|
|
400
412
|
}}/>
|
|
401
|
-
{/* icon={preview ? <EyeOff /> : <Eye />}
|
|
402
|
-
type="text"
|
|
403
|
-
name="Preview"
|
|
404
|
-
onClick={handleOpenModalPreview}
|
|
405
|
-
style={active === "preview" ? { color: "red" } : {}}
|
|
406
|
-
/> */}
|
|
407
413
|
</Flex>}>
|
|
408
414
|
<Flex className="relative">
|
|
409
415
|
<ButtonTools buttonProps={{
|
|
@@ -427,7 +433,17 @@ const SideTool = ({ dragOnly, deleteAutorized, }) => {
|
|
|
427
433
|
</span>
|
|
428
434
|
</Flex>
|
|
429
435
|
</Popover>
|
|
430
|
-
|
|
436
|
+
<ButtonTools buttonProps={{
|
|
437
|
+
icon: <FontSizeIcon />,
|
|
438
|
+
onClick: () => handleOpenModalPreview("setting"),
|
|
439
|
+
type: "text",
|
|
440
|
+
name: "setfont",
|
|
441
|
+
style: active === "setfont" ? { color: "red" } : {},
|
|
442
|
+
}} items={[]} popoverProps={{
|
|
443
|
+
content: <div>Font Size Setting</div>,
|
|
444
|
+
trigger: "hover",
|
|
445
|
+
placement: "right",
|
|
446
|
+
}}/>
|
|
431
447
|
<ButtonTools buttonProps={{
|
|
432
448
|
icon: <Grid />,
|
|
433
449
|
onClick: () => toggleGrid(),
|
|
@@ -4,12 +4,14 @@ export interface ToolState {
|
|
|
4
4
|
isPreview: boolean;
|
|
5
5
|
grid: boolean;
|
|
6
6
|
lockBackground: boolean;
|
|
7
|
+
typePreview: "setting" | "preview" | "none";
|
|
7
8
|
}
|
|
8
9
|
export declare const sideToolSlice: import("@reduxjs/toolkit").Slice<ToolState, {
|
|
9
10
|
setActiveTool: (state: import("immer").WritableDraft<ToolState>, action: PayloadAction<string>) => void;
|
|
10
11
|
setTooglePreview: (state: import("immer").WritableDraft<ToolState>, action: PayloadAction<boolean>) => void;
|
|
11
12
|
setToogleGrid: (state: import("immer").WritableDraft<ToolState>, action: PayloadAction<boolean>) => void;
|
|
12
13
|
setToogleBackground: (state: import("immer").WritableDraft<ToolState>, action: PayloadAction<boolean>) => void;
|
|
14
|
+
setTooglePreviewType: (state: import("immer").WritableDraft<ToolState>, action: PayloadAction<"setting" | "preview" | "none">) => void;
|
|
13
15
|
}, "tool", "tool", import("@reduxjs/toolkit").SliceSelectors<ToolState>>;
|
|
14
16
|
export declare const setActiveTool: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "tool/setActiveTool">, setTooglePreview: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, "tool/setTooglePreview">, setToogleGrid: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, "tool/setToogleGrid">, setToogleBackground: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, "tool/setToogleBackground">;
|
|
15
17
|
declare const _default: import("redux").Reducer<ToolState>;
|
|
@@ -4,7 +4,8 @@ const initialState = {
|
|
|
4
4
|
active: "",
|
|
5
5
|
isPreview: false,
|
|
6
6
|
grid: false,
|
|
7
|
-
lockBackground: false
|
|
7
|
+
lockBackground: false,
|
|
8
|
+
typePreview: "none"
|
|
8
9
|
};
|
|
9
10
|
export const sideToolSlice = createSlice({
|
|
10
11
|
name: "tool",
|
|
@@ -15,6 +16,9 @@ export const sideToolSlice = createSlice({
|
|
|
15
16
|
},
|
|
16
17
|
setTooglePreview: (state, action) => {
|
|
17
18
|
state.isPreview = action.payload;
|
|
19
|
+
if (!action.payload) {
|
|
20
|
+
state.typePreview = "none";
|
|
21
|
+
}
|
|
18
22
|
},
|
|
19
23
|
setToogleGrid: (state, action) => {
|
|
20
24
|
state.grid = action.payload;
|
|
@@ -22,6 +26,9 @@ export const sideToolSlice = createSlice({
|
|
|
22
26
|
setToogleBackground: (state, action) => {
|
|
23
27
|
state.lockBackground = action.payload;
|
|
24
28
|
},
|
|
29
|
+
setTooglePreviewType: (state, action) => {
|
|
30
|
+
state.typePreview = action.payload;
|
|
31
|
+
},
|
|
25
32
|
},
|
|
26
33
|
});
|
|
27
34
|
export const { setActiveTool, setTooglePreview, setToogleGrid, setToogleBackground } = sideToolSlice.actions;
|
|
@@ -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>) =>
|
|
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>) =>
|
|
96
|
+
declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
|
|
97
97
|
export default LayerView;
|
|
@@ -109,7 +109,7 @@ const LayerView = (props) => {
|
|
|
109
109
|
]);
|
|
110
110
|
useEffect(() => {
|
|
111
111
|
setTooltip(Object.assign(Object.assign({}, tooltip), { visible: false }));
|
|
112
|
-
}, [privilegedTags]);
|
|
112
|
+
}, [privilegedTags, getScaleTransform]);
|
|
113
113
|
useEffect(() => {
|
|
114
114
|
onCurrentStateChange &&
|
|
115
115
|
onCurrentStateChange({
|
|
@@ -264,27 +264,6 @@ const LayerView = (props) => {
|
|
|
264
264
|
return finalProps;
|
|
265
265
|
});
|
|
266
266
|
};
|
|
267
|
-
const [fingerCount, setFingerCount] = useState(0);
|
|
268
|
-
useEffect(() => {
|
|
269
|
-
const container = document.getElementById("workspace");
|
|
270
|
-
const handleTouchStart = (e) => {
|
|
271
|
-
const count = e.touches.length;
|
|
272
|
-
setFingerCount(count);
|
|
273
|
-
};
|
|
274
|
-
const handleTouchEnd = () => {
|
|
275
|
-
setFingerCount(0);
|
|
276
|
-
};
|
|
277
|
-
if (container) {
|
|
278
|
-
container.addEventListener("touchstart", handleTouchStart);
|
|
279
|
-
container.addEventListener("touchend", handleTouchEnd);
|
|
280
|
-
}
|
|
281
|
-
return () => {
|
|
282
|
-
if (container) {
|
|
283
|
-
container.removeEventListener("touchstart", handleTouchStart);
|
|
284
|
-
container.removeEventListener("touchend", handleTouchEnd);
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
|
-
}, []);
|
|
288
267
|
const handleTableEvent = (event, type) => {
|
|
289
268
|
var _a;
|
|
290
269
|
event.preventDefault();
|
|
@@ -108,7 +108,7 @@ const LayerView = (props) => {
|
|
|
108
108
|
]);
|
|
109
109
|
useEffect(() => {
|
|
110
110
|
setTooltip(Object.assign(Object.assign({}, tooltip), { visible: false }));
|
|
111
|
-
}, [privilegedTags]);
|
|
111
|
+
}, [privilegedTags, getScaleTransform]);
|
|
112
112
|
useEffect(() => {
|
|
113
113
|
onCurrentStateChange &&
|
|
114
114
|
onCurrentStateChange({
|
|
@@ -263,27 +263,6 @@ const LayerView = (props) => {
|
|
|
263
263
|
return finalProps;
|
|
264
264
|
});
|
|
265
265
|
};
|
|
266
|
-
const [fingerCount, setFingerCount] = useState(0);
|
|
267
|
-
useEffect(() => {
|
|
268
|
-
const container = document.getElementById("workspace");
|
|
269
|
-
const handleTouchStart = (e) => {
|
|
270
|
-
const count = e.touches.length;
|
|
271
|
-
setFingerCount(count);
|
|
272
|
-
};
|
|
273
|
-
const handleTouchEnd = () => {
|
|
274
|
-
setFingerCount(0);
|
|
275
|
-
};
|
|
276
|
-
if (container) {
|
|
277
|
-
container.addEventListener("touchstart", handleTouchStart);
|
|
278
|
-
container.addEventListener("touchend", handleTouchEnd);
|
|
279
|
-
}
|
|
280
|
-
return () => {
|
|
281
|
-
if (container) {
|
|
282
|
-
container.removeEventListener("touchstart", handleTouchStart);
|
|
283
|
-
container.removeEventListener("touchend", handleTouchEnd);
|
|
284
|
-
}
|
|
285
|
-
};
|
|
286
|
-
}, []);
|
|
287
266
|
const handleTableEvent = (event, type) => {
|
|
288
267
|
var _a;
|
|
289
268
|
event.preventDefault();
|
|
@@ -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>) =>
|
|
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>) =>
|
|
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>) =>
|
|
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>) =>
|
|
98
|
+
declare const LayerView: <TMeta>(props: LayerViewProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
|
|
99
99
|
export default LayerView;
|
|
@@ -41,8 +41,11 @@ export const AntdProvider = ({ children, themeColor }) => {
|
|
|
41
41
|
Select: {
|
|
42
42
|
optionHeight: 40,
|
|
43
43
|
},
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
Radio: {
|
|
45
|
+
colorPrimary: "#3E97FF",
|
|
46
|
+
radioSize: 24,
|
|
47
|
+
dotSize: 12,
|
|
48
|
+
colorText: "#5E6278"
|
|
46
49
|
}
|
|
47
50
|
},
|
|
48
51
|
}, children: children }) }));
|
|
@@ -41,8 +41,11 @@ export const AntdProvider = ({ children, themeColor }) => {
|
|
|
41
41
|
Select: {
|
|
42
42
|
optionHeight: 40,
|
|
43
43
|
},
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
Radio: {
|
|
45
|
+
colorPrimary: "#3E97FF",
|
|
46
|
+
radioSize: 24,
|
|
47
|
+
dotSize: 12,
|
|
48
|
+
colorText: "#5E6278"
|
|
46
49
|
}
|
|
47
50
|
},
|
|
48
51
|
}}>
|