@aivex/ui 1.2.0-dev.1 → 1.2.0-dev.10
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/Button-C_GP2mJ-.cjs +2 -0
- package/dist/Button-C_GP2mJ-.cjs.map +1 -0
- package/dist/Button-CzqDPqUT.js +8600 -0
- package/dist/Button-CzqDPqUT.js.map +1 -0
- package/dist/IconButton-B-MspnYP.cjs +2 -0
- package/dist/IconButton-B-MspnYP.cjs.map +1 -0
- package/dist/IconButton-DTGSfJme.js +560 -0
- package/dist/IconButton-DTGSfJme.js.map +1 -0
- package/dist/Switch-B2irM7Pp.js +2656 -0
- package/dist/Switch-B2irM7Pp.js.map +1 -0
- package/dist/Switch-CMKBdqkX.cjs +42 -0
- package/dist/Switch-CMKBdqkX.cjs.map +1 -0
- package/dist/comment.cjs +114 -0
- package/dist/comment.cjs.map +1 -0
- package/dist/comment.js +13624 -0
- package/dist/comment.js.map +1 -0
- package/dist/components/Coachmark/Coachmark.d.ts +54 -0
- package/dist/components/Coachmark/index.d.ts +2 -0
- package/dist/components/Comment/CommentInput.d.ts +30 -0
- package/dist/components/Comment/CommentPin.d.ts +17 -0
- package/dist/components/Comment/MentionInput.d.ts +30 -0
- package/dist/components/Comment/MentionList.d.ts +14 -0
- package/dist/components/Comment/index.d.ts +4 -0
- package/dist/components/Comment/types.d.ts +12 -0
- package/dist/components/Comment/useMentionSuggestion.d.ts +15 -0
- package/dist/components/DataGrid/DataGrid.d.ts +11 -1
- package/dist/components/DataGrid/DataGridColumnSettings.d.ts +18 -0
- package/dist/components/DataGrid/index.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.d.ts +5 -3
- package/dist/components/Icon/index.d.ts +5 -4
- package/dist/components/InputBase/InputBase.d.ts +5 -7
- package/dist/components/Logo/index.d.ts +2 -1
- package/dist/components/Messagebox/Messagebox.d.ts +3 -1
- package/dist/components/Modal/Modal.d.ts +9 -2
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/SelectBox/SelectBox.d.ts +7 -4
- package/dist/components/ShapeEditor/ShapeEditor.d.ts +9 -0
- package/dist/components/ShapeEditor/ShapeViewer.d.ts +42 -0
- package/dist/components/ShapeEditor/_components/AssistantOverlay.d.ts +17 -0
- package/dist/components/ShapeEditor/_components/ContextMenu.d.ts +13 -0
- package/dist/components/ShapeEditor/_components/CursorGuide.d.ts +8 -0
- package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.ts +11 -0
- package/dist/components/ShapeEditor/_components/Minimap.d.ts +45 -0
- package/dist/components/ShapeEditor/_components/MinimapShape.d.ts +6 -0
- package/dist/components/ShapeEditor/_components/RegionOverlay.d.ts +21 -0
- package/dist/components/ShapeEditor/_components/SelectionInfo.d.ts +13 -0
- package/dist/components/ShapeEditor/_components/SettingsPanel.d.ts +15 -0
- package/dist/components/ShapeEditor/_constants.d.ts +33 -0
- package/dist/components/ShapeEditor/_model/brush.d.ts +3 -0
- package/dist/components/ShapeEditor/_model/cursors.d.ts +18 -0
- package/dist/components/ShapeEditor/_model/geometry.d.ts +130 -0
- package/dist/components/ShapeEditor/_model/imageFetch.d.ts +9 -0
- package/dist/components/ShapeEditor/_model/imageTiles.d.ts +11 -0
- package/dist/components/ShapeEditor/_model/keymap.d.ts +15 -0
- package/dist/components/ShapeEditor/_model/konva.d.ts +4 -0
- package/dist/components/ShapeEditor/_model/overlays.d.ts +122 -0
- package/dist/components/ShapeEditor/_model/overlays.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_model/pinIcon.d.ts +13 -0
- package/dist/components/ShapeEditor/_model/props.d.ts +445 -0
- package/dist/components/ShapeEditor/_model/scalarMask.d.ts +21 -0
- package/dist/components/ShapeEditor/_model/shapeRenderStyle.d.ts +16 -0
- package/dist/components/ShapeEditor/_model/strings.d.ts +53 -0
- package/dist/components/ShapeEditor/_model/tools.d.ts +27 -0
- package/dist/components/ShapeEditor/_model/viewSettings.d.ts +15 -0
- package/dist/components/ShapeEditor/_model/viewport.d.ts +28 -0
- package/dist/components/ShapeEditor/_renderers/KonvaRenderer.d.ts +124 -0
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.ts +169 -0
- package/dist/components/ShapeEditor/_renderers/transformSession.d.ts +68 -0
- package/dist/components/ShapeEditor/_renderers/types.d.ts +106 -0
- package/dist/components/ShapeEditor/_state/createInteractionController.d.ts +54 -0
- package/dist/components/ShapeEditor/_state/drawSessionState.d.ts +6 -0
- package/dist/components/ShapeEditor/_state/useAssistant.d.ts +48 -0
- package/dist/components/ShapeEditor/_state/useDrawSession.d.ts +61 -0
- package/dist/components/ShapeEditor/_state/useEditorDocument.d.ts +23 -0
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.ts +25 -0
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +58 -0
- package/dist/components/ShapeEditor/_state/useMinimapNavigation.d.ts +27 -0
- package/dist/components/ShapeEditor/_state/useMinimapSync.d.ts +24 -0
- package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +28 -0
- package/dist/components/ShapeEditor/_state/useViewportControls.d.ts +23 -0
- package/dist/components/ShapeEditor/index.d.ts +8 -0
- package/dist/components/Slider/Slider.d.ts +3 -1
- package/dist/components/Tagbox/Tagbox.d.ts +1 -4
- package/dist/components/Textarea/Textarea.d.ts +7 -4
- package/dist/components/Textbox/Textbox.d.ts +1 -5
- package/dist/index.cjs +10 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7919 -16785
- package/dist/index.js.map +1 -1
- package/dist/shape-editor.cjs +2 -0
- package/dist/shape-editor.cjs.map +1 -0
- package/dist/shape-editor.js +5735 -0
- package/dist/shape-editor.js.map +1 -0
- package/dist/styles.css +1 -1
- package/package.json +24 -2
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
2
|
+
import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
|
|
3
|
+
import { type ButtonProps } from "@/components/Button";
|
|
4
|
+
/** 버튼은 라벨을 children으로 받고, 스타일(variant/color/size)은 Coachmark가 고정한다. */
|
|
5
|
+
export interface CoachmarkButtonProps extends Omit<ButtonProps, "asChild" | "children" | "className" | "color" | "ref" | "size" | "style" | "variant"> {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
type CoachmarkRootProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;
|
|
9
|
+
declare function CoachmarkRoot(props: CoachmarkRootProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
type CoachmarkTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> & {
|
|
11
|
+
ref?: Ref<HTMLButtonElement>;
|
|
12
|
+
};
|
|
13
|
+
/** 코치마크를 붙일 요소. asChild로 임의 요소를 감싼다. */
|
|
14
|
+
declare function CoachmarkTrigger({ ref, ...props }: CoachmarkTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
type CoachmarkAnchorProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;
|
|
16
|
+
/** 클릭 트리거 없이 특정 요소를 기준점으로만 쓸 때 사용한다. */
|
|
17
|
+
declare function CoachmarkAnchor(props: CoachmarkAnchorProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
interface CoachmarkContentProps extends Omit<ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, "children" | "title"> {
|
|
19
|
+
/** 상단 타이틀. 생략하면 타이틀 영역을 렌더하지 않는다. */
|
|
20
|
+
title?: ReactNode;
|
|
21
|
+
/** 본문(텍스트·이미지 등, min 40 / max 200px, 초과 시 스크롤). */
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
/** 좌측 하단 보조 버튼(예: 넘기기). */
|
|
24
|
+
tertiaryButton?: CoachmarkButtonProps;
|
|
25
|
+
/** 우측 보조 버튼(예: 이전). */
|
|
26
|
+
secondaryButton?: CoachmarkButtonProps;
|
|
27
|
+
/** 우측 주요 버튼(예: 다음). */
|
|
28
|
+
primaryButton?: CoachmarkButtonProps;
|
|
29
|
+
/** 지정하면 타이틀 우측에 닫기(X) 버튼을 렌더한다. */
|
|
30
|
+
onClose?: () => void;
|
|
31
|
+
/** 닫기 버튼 aria-label. 기본 "닫기". */
|
|
32
|
+
closeAriaLabel?: string;
|
|
33
|
+
ref?: Ref<HTMLDivElement>;
|
|
34
|
+
}
|
|
35
|
+
declare function CoachmarkContent({ className, sideOffset, title, children, tertiaryButton, secondaryButton, primaryButton, onClose, closeAriaLabel, ref, ...props }: CoachmarkContentProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
/**
|
|
37
|
+
* 특정 요소를 가리키며 안내·온보딩 정보를 띄우는 코치마크(Popover-Bubble, 3848:11976).
|
|
38
|
+
* `@radix-ui/react-popover` 기반이라 side/정렬/충돌 회피/화살표 위치를 Radix가 처리한다.
|
|
39
|
+
* 진한 배경 위에 타이틀·닫기·본문·버튼(넘기기/이전/다음)을 담는다.
|
|
40
|
+
*
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <Coachmark open={open} onOpenChange={setOpen}>
|
|
43
|
+
* <Coachmark.Anchor asChild><TriggerEl /></Coachmark.Anchor>
|
|
44
|
+
* <Coachmark.Content side="bottom" title="…" onClose={dismiss}>본문</Coachmark.Content>
|
|
45
|
+
* </Coachmark>
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
declare const Coachmark: typeof CoachmarkRoot & {
|
|
49
|
+
Trigger: typeof CoachmarkTrigger;
|
|
50
|
+
Anchor: typeof CoachmarkAnchor;
|
|
51
|
+
Content: typeof CoachmarkContent;
|
|
52
|
+
};
|
|
53
|
+
export type { CoachmarkAnchorProps, CoachmarkContentProps, CoachmarkRootProps, CoachmarkTriggerProps, };
|
|
54
|
+
export { Coachmark };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { JSONContent } from "@tiptap/react";
|
|
2
|
+
import type { CommentUser } from "./types";
|
|
3
|
+
export interface CommentInputProps {
|
|
4
|
+
/** 작성자(입력행 아바타). */
|
|
5
|
+
user?: CommentUser;
|
|
6
|
+
value: string;
|
|
7
|
+
onChange: (value: string) => void;
|
|
8
|
+
/** 전송(Enter 또는 Send 버튼). 값이 비어 있으면 호출되지 않는다. */
|
|
9
|
+
onSubmit: () => void;
|
|
10
|
+
/** 헤더 닫기 버튼·Esc. */
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
/** 헤더 타이틀(호스트 i18n). 기본 "Comment". */
|
|
13
|
+
title?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
/** 전송 버튼 라벨(호스트 i18n). 기본 "Send". */
|
|
16
|
+
submitLabel?: string;
|
|
17
|
+
/** 전송 중 여부 — 버튼 비활성(스피너 등은 호스트가 submitLabel 자리로). */
|
|
18
|
+
pending?: boolean;
|
|
19
|
+
/** 멘션(@) 후보. 생략하면 멘션 없이 동작. */
|
|
20
|
+
userList?: CommentUser[];
|
|
21
|
+
mentionEmptyText?: string;
|
|
22
|
+
initialContent?: JSONContent;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 새 코멘트 입력 패널 — 옵스 new-editor의 NewCommentPanel 이식(도메인/위치 결합 제거).
|
|
27
|
+
* 코멘트 스레드와 동일한 크롬: 헤더(타이틀+닫기) + 입력행(아바타 · 멘션 입력 · 오른쪽
|
|
28
|
+
* Send 버튼). 화면 배치(핀 오른쪽 등)는 호스트가 감싸는 컨테이너에서 담당한다.
|
|
29
|
+
*/
|
|
30
|
+
export declare function CommentInput({ user, value, onChange, onSubmit, onClose, title, placeholder, submitLabel, pending, userList, mentionEmptyText, initialContent, className, }: CommentInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CommentUser } from "./types";
|
|
2
|
+
export interface CommentPinProps {
|
|
3
|
+
/** 스레드 참여자(작성자 우선). 최대 maxAvatars명까지 아바타를 겹쳐 그린다. */
|
|
4
|
+
users: CommentUser[];
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
/** 해결(resolve)된 코멘트 — 반투명 표시. */
|
|
7
|
+
resolved?: boolean;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
maxAvatars?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 코멘트 핀(다트) — 옵스 에디터 CommentDart의 말풍선 부분 이식.
|
|
14
|
+
* 좌하단이 뾰족한 말풍선(팁이 코멘트 지점을 가리킴). 위치·스케일 고정은 호스트가
|
|
15
|
+
* ShapeEditor overlayMarkers(anchor "topLeft") 등으로 담당한다.
|
|
16
|
+
*/
|
|
17
|
+
export declare function CommentPin({ users, selected, resolved, onClick, maxAvatars, className, }: CommentPinProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type JSONContent } from "@tiptap/react";
|
|
2
|
+
import { type Ref } from "react";
|
|
3
|
+
import type { CommentUser } from "./types";
|
|
4
|
+
export interface MentionInputHandle {
|
|
5
|
+
/** 입력기에 포커스를 준다(예: 전송 버튼 클릭 후 포커스 유지). */
|
|
6
|
+
focus: () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface MentionInputProps {
|
|
9
|
+
value: string;
|
|
10
|
+
onChange: (value: string) => void;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
/** Enter(멘션 목록 닫힌 상태) 제출. */
|
|
13
|
+
onSubmit?: () => void;
|
|
14
|
+
/** Esc(멘션 목록 닫힌 상태) 취소. */
|
|
15
|
+
onEscape?: () => void;
|
|
16
|
+
/** 멘션(@) 후보. 빈 배열이면 멘션 없이 플레인 입력처럼 동작한다. */
|
|
17
|
+
userList?: CommentUser[];
|
|
18
|
+
initialContent?: JSONContent;
|
|
19
|
+
/** 멘션 후보 없음 문구(호스트 i18n). */
|
|
20
|
+
mentionEmptyText?: string;
|
|
21
|
+
/** 마운트 시 자동 포커스(기본 true). */
|
|
22
|
+
autoFocus?: boolean;
|
|
23
|
+
/** 명령형 핸들(포커스 제어). */
|
|
24
|
+
handleRef?: Ref<MentionInputHandle>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 멘션(@) 지원 코멘트 입력기 — 옵스 에디터 MentionInput 이식.
|
|
28
|
+
* value는 평문 직렬화(`@[이름](id)`)로 주고받는다.
|
|
29
|
+
*/
|
|
30
|
+
export default function MentionInput({ value, onChange, placeholder, onSubmit, onEscape, userList, initialContent, mentionEmptyText, autoFocus, handleRef, }: MentionInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CommentUser } from "./types";
|
|
2
|
+
export interface MentionListHandle {
|
|
3
|
+
onKeyDown: (event: KeyboardEvent) => boolean;
|
|
4
|
+
}
|
|
5
|
+
interface MentionListProps {
|
|
6
|
+
items: CommentUser[];
|
|
7
|
+
command: (item: CommentUser) => void;
|
|
8
|
+
/** 후보 없음 문구(호스트 i18n). 기본 "No results found." */
|
|
9
|
+
emptyText?: string;
|
|
10
|
+
ref?: React.Ref<MentionListHandle>;
|
|
11
|
+
}
|
|
12
|
+
/** 멘션(@) 자동완성 목록 — 옵스 에디터 MentionList 이식(도메인 결합 제거). */
|
|
13
|
+
declare const MentionList: import("react").MemoExoticComponent<({ items, command, emptyText, ref, }: MentionListProps) => import("react/jsx-runtime").JSX.Element>;
|
|
14
|
+
export default MentionList;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { CommentInput, type CommentInputProps } from "./CommentInput";
|
|
2
|
+
export { CommentPin, type CommentPinProps } from "./CommentPin";
|
|
3
|
+
export { default as MentionInput, type MentionInputHandle, type MentionInputProps, } from "./MentionInput";
|
|
4
|
+
export type { CommentUser } from "./types";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment 모듈의 도메인 무관 유저 표현 — 옵스의 UserInfo에서 코멘트 UI가 실제로
|
|
3
|
+
* 쓰는 필드만 추린 것. 호스트가 자기 유저 모델을 이 형태로 매핑해 넘긴다.
|
|
4
|
+
*/
|
|
5
|
+
export interface CommentUser {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
avatarUrl?: string;
|
|
10
|
+
/** 아바타 배경색(개인 색). 없으면 Avatar가 이름 기반으로 자동 배정. */
|
|
11
|
+
color?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CommentUser } from "./types";
|
|
2
|
+
/** tiptap Mention 확장에 꽂는 자동완성 설정 — 옵스 에디터 이식(CommentUser 기반). */
|
|
3
|
+
export declare const useMentionSuggestion: (userList: CommentUser[], onOpenChange?: (isOpen: boolean) => void, emptyText?: string) => {
|
|
4
|
+
items: ({ query }: {
|
|
5
|
+
query: string;
|
|
6
|
+
}) => CommentUser[];
|
|
7
|
+
render: () => {
|
|
8
|
+
onStart: (props: Record<string, any>) => void;
|
|
9
|
+
onUpdate(props: Record<string, any>): void;
|
|
10
|
+
onKeyDown(props: {
|
|
11
|
+
event: KeyboardEvent;
|
|
12
|
+
}): boolean;
|
|
13
|
+
onExit(): void;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type RowData, type TableOptions } from "@tanstack/react-table";
|
|
2
2
|
import type { HTMLAttributes, MouseEvent, ReactNode, Ref } from "react";
|
|
3
3
|
import { type ScrollAreaProps } from "@/components/ScrollArea";
|
|
4
|
+
import { type DataGridColumnSettingsOptions } from "./DataGridColumnSettings";
|
|
4
5
|
export type DataGridAlign = "start" | "center" | "end";
|
|
5
6
|
type DataGridValue<TData, TValue> = TValue | ((row: TData, index: number) => TValue);
|
|
6
7
|
declare module "@tanstack/react-table" {
|
|
@@ -12,6 +13,8 @@ declare module "@tanstack/react-table" {
|
|
|
12
13
|
headerClassName?: string;
|
|
13
14
|
cellClassName?: DataGridValue<TData, string | undefined>;
|
|
14
15
|
headerSortTrigger?: boolean;
|
|
16
|
+
/** 컬럼 설정 목록에 표시할 라벨 (header 가 문자열이 아닌 컬럼용) */
|
|
17
|
+
settingsLabel?: string;
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
20
|
export interface DataGridRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -87,6 +90,13 @@ export interface DataGridProps<TData> extends Omit<TableOptions<TData>, "getCore
|
|
|
87
90
|
loadingMoreContent?: ReactNode;
|
|
88
91
|
infiniteTriggerRef?: Ref<HTMLDivElement>;
|
|
89
92
|
infiniteTriggerClassName?: string;
|
|
93
|
+
/**
|
|
94
|
+
* 컬럼 설정(표시/숨김 + 순서 변경) 내장 UI. true 또는 옵션 객체를 주면
|
|
95
|
+
* 헤더 호버 시 테이블 왼쪽 바깥(-36px)에 트리거 버튼이 떠서 나타나고,
|
|
96
|
+
* 변경 사항은 즉시 반영된다. portal(fixed)로 띄우므로 레이아웃에 영향이 없고
|
|
97
|
+
* overflow 조상에도 잘리지 않는다 — 좌측 요소 위에 겹쳐 보일 수 있다.
|
|
98
|
+
*/
|
|
99
|
+
columnSettings?: boolean | DataGridColumnSettingsOptions;
|
|
90
100
|
}
|
|
91
|
-
declare function DataGrid<TData>({ className, loading, loadingRowCount, empty, headerSticky, viewportClassName, contentClassName, headerClassName, bodyClassName, rowClassName, rowInteractive, isRowSelected, isRowDisabled, onRowClick, loadingMore, loadingMoreContent, infiniteTriggerRef, infiniteTriggerClassName, ref, getCoreRowModel, ...tableOptions }: DataGridProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
declare function DataGrid<TData>({ className, loading, loadingRowCount, empty, headerSticky, viewportClassName, contentClassName, headerClassName, bodyClassName, rowClassName, rowInteractive, isRowSelected, isRowDisabled, onRowClick, loadingMore, loadingMoreContent, infiniteTriggerRef, infiniteTriggerClassName, columnSettings, ref, getCoreRowModel, ...tableOptions }: DataGridProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
92
102
|
export { DataGrid, DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Table } from "@tanstack/react-table";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
export interface DataGridColumnSettingsOptions {
|
|
4
|
+
/** 팝오버 상단 타이틀 */
|
|
5
|
+
title?: ReactNode;
|
|
6
|
+
/** 하단 초기화 버튼 라벨 */
|
|
7
|
+
resetLabel?: ReactNode;
|
|
8
|
+
/** 설정 목록에서 제외할 컬럼 id (예: 선택 체크박스 컬럼) */
|
|
9
|
+
excludeColumnIds?: string[];
|
|
10
|
+
/** 트리거 버튼 aria-label */
|
|
11
|
+
triggerLabel?: string;
|
|
12
|
+
}
|
|
13
|
+
interface DataGridColumnSettingsProps<TData> extends DataGridColumnSettingsOptions {
|
|
14
|
+
table: Table<TData>;
|
|
15
|
+
}
|
|
16
|
+
declare function DataGridColumnSettings<TData>({ table, title, resetLabel, excludeColumnIds, triggerLabel, }: DataGridColumnSettingsProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export type { DataGridColumnSettingsProps };
|
|
18
|
+
export { DataGridColumnSettings };
|
|
@@ -2,3 +2,5 @@ export type { CellContext, ColumnDef, ColumnFiltersState, ColumnOrderState, Colu
|
|
|
2
2
|
export { getCoreRowModel, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, } from "@tanstack/react-table";
|
|
3
3
|
export type { DataGridAlign, DataGridBodyProps, DataGridCellProps, DataGridEmptyProps, DataGridHeaderCellProps, DataGridHeaderProps, DataGridInfiniteTriggerProps, DataGridLoadingProps, DataGridProps, DataGridRootProps, DataGridRowProps, DataGridViewportProps, } from "./DataGrid";
|
|
4
4
|
export { DataGrid, DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, } from "./DataGrid";
|
|
5
|
+
export type { DataGridColumnSettingsOptions } from "./DataGridColumnSettings";
|
|
6
|
+
export { DataGridColumnSettings } from "./DataGridColumnSettings";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
1
|
+
import { type AriaAttributes, type ReactNode } from "react";
|
|
2
2
|
export interface DateRange {
|
|
3
3
|
start: Date;
|
|
4
4
|
end: Date;
|
|
@@ -35,10 +35,12 @@ interface DatePickerBaseProps {
|
|
|
35
35
|
/** 인풋 크기 */
|
|
36
36
|
size?: "sm" | "md";
|
|
37
37
|
placeholder?: string;
|
|
38
|
-
label?: string;
|
|
39
|
-
helperText?: string;
|
|
40
38
|
error?: boolean;
|
|
41
39
|
disabled?: boolean;
|
|
40
|
+
/** Field(FieldControl)가 주입하는 id — FieldLabel(htmlFor) 연결용 */
|
|
41
|
+
id?: string;
|
|
42
|
+
"aria-describedby"?: string;
|
|
43
|
+
"aria-invalid"?: AriaAttributes["aria-invalid"];
|
|
42
44
|
/** 점 표시할 일자 목록 (예: 데이터가 있는 날) */
|
|
43
45
|
markedDates?: Date[];
|
|
44
46
|
minDate?: Date;
|
|
@@ -206,11 +206,11 @@ export declare const Zoom100Icon: ({ size, color, className, ...props }: IconPro
|
|
|
206
206
|
export declare const ZoomInIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
207
207
|
export declare const ZoomOutIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
208
208
|
export declare const PackageIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
209
|
-
export declare const
|
|
209
|
+
export declare const ArrowControlIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
210
210
|
export declare const TagIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
211
211
|
export declare const TagFilledIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
212
212
|
export declare const AtIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
213
|
-
export declare const
|
|
213
|
+
export declare const OpenedMailIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
214
214
|
export declare const TestIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
215
215
|
export declare const MinimizeIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
216
216
|
export declare const StorageIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -274,8 +274,6 @@ export declare const HourglassIcon: ({ size, color, className, ...props }: IconP
|
|
|
274
274
|
export declare const ThumbsUpIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
275
275
|
export declare const ThumbsDownIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
276
276
|
export declare const ThumbsDownFilledIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
277
|
-
export declare const PageMinimizeIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
278
|
-
export declare const PageMaximizeIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
279
277
|
export declare const PageIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
280
278
|
export declare const MinimizeWindowIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
281
279
|
export declare const TaskQueueIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -283,4 +281,7 @@ export declare const ShrinkIcon: ({ size, color, className, ...props }: IconProp
|
|
|
283
281
|
export declare const ExpandIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
284
282
|
export declare const AiVotIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
285
283
|
export declare const AiViewIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
284
|
+
export declare const HeadphonesIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
285
|
+
export declare const LinkedInIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
286
|
+
export declare const PhoneIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
286
287
|
export {};
|
|
@@ -7,10 +7,6 @@ declare const inputContainerVariants: (props?: ({
|
|
|
7
7
|
export type InputLayout = "inline" | "block" | "wrap";
|
|
8
8
|
export type InputState = "default" | "focused" | "error" | "disabled" | "filled";
|
|
9
9
|
export interface InputBaseProps {
|
|
10
|
-
id?: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
/** 인풋 하단 도움말 텍스트. error=true 이면 danger 색상으로 표시 */
|
|
13
|
-
helperText?: string;
|
|
14
10
|
error?: boolean;
|
|
15
11
|
disabled?: boolean;
|
|
16
12
|
focused?: boolean;
|
|
@@ -22,10 +18,12 @@ export interface InputBaseProps {
|
|
|
22
18
|
/** 인풋 컨테이너 오른쪽 슬롯 */
|
|
23
19
|
endContent?: ReactNode;
|
|
24
20
|
/** 인풋 컨테이너(border 박스)에 추가할 className */
|
|
25
|
-
containerClassName?: string;
|
|
26
|
-
/** 최외곽 래퍼 div 에 추가할 className */
|
|
27
21
|
className?: string;
|
|
28
22
|
children: ReactNode;
|
|
29
23
|
}
|
|
30
|
-
|
|
24
|
+
/**
|
|
25
|
+
* 인풋 컨테이너(border 박스) 프리미티브. 라벨/설명/에러는
|
|
26
|
+
* Field(FieldLabel/FieldDescription/FieldError) 합성으로 조합한다.
|
|
27
|
+
*/
|
|
28
|
+
declare function InputBase({ error, disabled, focused, filled, size, layout, startContent, endContent, className, children, }: InputBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
31
29
|
export { InputBase, inputContainerVariants };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode, type SVGProps } from "react";
|
|
2
2
|
export interface LogoProps extends Omit<SVGProps<SVGSVGElement>, "color"> {
|
|
3
|
-
/** Logo color (applied to the monochrome master fill). Defaults to
|
|
3
|
+
/** Logo color (applied to the monochrome master fill). Defaults to brand Black #0D0D12 (LOGO 마스터 496:270). */
|
|
4
4
|
color?: string;
|
|
5
5
|
/** Accessible title. When omitted the logo is decorative (aria-hidden). */
|
|
6
6
|
title?: string;
|
|
@@ -11,6 +11,7 @@ export declare const AiVisionTLogo: (props: LogoProps) => ReactNode;
|
|
|
11
11
|
export declare const AiVisionSLogo: (props: LogoProps) => ReactNode;
|
|
12
12
|
export declare const AiVisionMLogo: (props: LogoProps) => ReactNode;
|
|
13
13
|
export declare const AiVDataLogo: (props: LogoProps) => ReactNode;
|
|
14
|
+
export declare const AiVDataSymbol: (props: LogoProps) => ReactNode;
|
|
14
15
|
export declare const AiVOpsLogo: (props: LogoProps) => ReactNode;
|
|
15
16
|
export declare const AiVotLogo: (props: LogoProps) => ReactNode;
|
|
16
17
|
export declare const AiViewLogo: (props: LogoProps) => ReactNode;
|
|
@@ -5,8 +5,10 @@ declare const messageboxVariants: (props?: ({
|
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export interface MessageboxProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof messageboxVariants> {
|
|
7
7
|
message: string;
|
|
8
|
+
subText?: ReactNode;
|
|
8
9
|
children?: ReactNode;
|
|
10
|
+
onClose?: () => void;
|
|
9
11
|
ref?: Ref<HTMLDivElement>;
|
|
10
12
|
}
|
|
11
|
-
declare function Messagebox({ className, type, message, children, ref, ...props }: MessageboxProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function Messagebox({ className, type, message, subText, children, onClose, ref, ...props }: MessageboxProps): import("react/jsx-runtime").JSX.Element;
|
|
12
14
|
export { Messagebox, messageboxVariants };
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { type ReactNode, type Ref } from "react";
|
|
2
2
|
import { type ButtonProps } from "@/components/Button";
|
|
3
|
+
import type { IconButtonProps } from "@/components/IconButton";
|
|
3
4
|
type ModalOpenAutoFocusHandler = (event: Event) => void;
|
|
4
5
|
export type ModalSize = "sm" | "md" | "lg" | "xl" | "full";
|
|
6
|
+
export interface ModalHeadingButtonProps extends Omit<IconButtonProps, "asChild" | "children" | "className" | "ref" | "shape" | "size"> {
|
|
7
|
+
"aria-label": string;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}
|
|
5
10
|
export interface ModalButtonProps extends Omit<ButtonProps, "asChild" | "children" | "className" | "color" | "ref" | "size" | "style" | "variant"> {
|
|
6
11
|
children: ReactNode;
|
|
7
12
|
}
|
|
8
13
|
export interface ModalSurfaceProps {
|
|
9
14
|
title: ReactNode;
|
|
10
15
|
description?: ReactNode;
|
|
16
|
+
headingButton?: ModalHeadingButtonProps;
|
|
11
17
|
children?: ReactNode;
|
|
12
18
|
tertiaryButton?: ModalButtonProps;
|
|
13
19
|
secondaryButton?: ModalButtonProps;
|
|
@@ -17,13 +23,14 @@ export interface ModalSurfaceProps {
|
|
|
17
23
|
closeAriaLabel?: string;
|
|
18
24
|
ref?: Ref<HTMLDivElement>;
|
|
19
25
|
}
|
|
20
|
-
declare function ModalSurface({ title, description, children, tertiaryButton, secondaryButton, primaryButton, size, onClose, closeAriaLabel, ref, }: ModalSurfaceProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare function ModalSurface({ title, description, headingButton, children, tertiaryButton, secondaryButton, primaryButton, size, onClose, closeAriaLabel, ref, }: ModalSurfaceProps): import("react/jsx-runtime").JSX.Element;
|
|
21
27
|
export interface ModalProps {
|
|
22
28
|
open?: boolean;
|
|
23
29
|
defaultOpen?: boolean;
|
|
24
30
|
onOpenChange?: (open: boolean) => void;
|
|
25
31
|
title: ReactNode;
|
|
26
32
|
description?: ReactNode;
|
|
33
|
+
headingButton?: ModalHeadingButtonProps;
|
|
27
34
|
children?: ReactNode;
|
|
28
35
|
tertiaryButton?: ModalButtonProps;
|
|
29
36
|
secondaryButton?: ModalButtonProps;
|
|
@@ -33,5 +40,5 @@ export interface ModalProps {
|
|
|
33
40
|
onOpenAutoFocus?: ModalOpenAutoFocusHandler;
|
|
34
41
|
closeAriaLabel?: string;
|
|
35
42
|
}
|
|
36
|
-
declare function Modal({ open, defaultOpen, onOpenChange, title, description, children, tertiaryButton, secondaryButton, primaryButton, size, closeOnInteractOutside, onOpenAutoFocus, closeAriaLabel, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
declare function Modal({ open, defaultOpen, onOpenChange, title, description, headingButton, children, tertiaryButton, secondaryButton, primaryButton, size, closeOnInteractOutside, onOpenAutoFocus, closeAriaLabel, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
37
44
|
export { Modal, ModalSurface };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { ModalButtonProps, ModalProps, ModalSize, ModalSurfaceProps } from "./Modal";
|
|
1
|
+
export type { ModalButtonProps, ModalHeadingButtonProps, ModalProps, ModalSize, ModalSurfaceProps, } from "./Modal";
|
|
2
2
|
export { Modal, ModalSurface } from "./Modal";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type AriaAttributes } from "react";
|
|
1
2
|
export interface SelectBoxOption {
|
|
2
3
|
value: string;
|
|
3
4
|
label: string;
|
|
@@ -26,11 +27,13 @@ export interface SelectBoxProps {
|
|
|
26
27
|
* @example renderValue={(option, group) => `${group.title} / ${option.label}`}
|
|
27
28
|
*/
|
|
28
29
|
renderValue?: (option: SelectBoxOption, group: SelectBoxGroup) => string;
|
|
29
|
-
/**
|
|
30
|
+
/** 트리거 버튼에 추가할 className */
|
|
30
31
|
className?: string;
|
|
31
|
-
label?: string;
|
|
32
|
-
helperText?: string;
|
|
33
32
|
error?: boolean;
|
|
33
|
+
/** Field(FieldControl)가 주입하는 id — FieldLabel(htmlFor) 연결용 */
|
|
34
|
+
id?: string;
|
|
35
|
+
"aria-describedby"?: string;
|
|
36
|
+
"aria-invalid"?: AriaAttributes["aria-invalid"];
|
|
34
37
|
}
|
|
35
|
-
declare function SelectBox({ groups, value, placeholder, disabled, size, onChange, renderValue, className,
|
|
38
|
+
declare function SelectBox({ groups, value, placeholder, disabled, size, onChange, renderValue, className, error, id, "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, }: SelectBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
36
39
|
export { SelectBox };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ShapeEditorProps } from "./_model/props";
|
|
2
|
+
/**
|
|
3
|
+
* ShapeEditor — renderer backend 기반 도형 에디터. 상호작용/문서/키보드/메뉴는 여기서 소유하고,
|
|
4
|
+
* 그리기·히트테스트·뷰포트는 `EditorRenderer`(Konva/Pixi)에 위임한다. `backend`로 교체.
|
|
5
|
+
* 갭(회전/꼭짓점추가 등)은 여기서 한 번 구현하면 양쪽 렌더러에 적용된다.
|
|
6
|
+
*/
|
|
7
|
+
export default function ShapeEditor<TMeta, TMarkerMeta = unknown>({ imageUrl, displayImageUrl, coordinateSize, renderImageState, dimmed, initialShapes, selectedIds: controlledSelectedIds, activeTool, draftStyle, draftMeta, readOnly, disableMarquee, locked, onLockedInteraction, onIdleEscape, overrideShapeInteraction, defaultViewSettings, viewSettings, onViewSettingsChange, showMinimap, showViewSettings, getContextMenuItems, strings, canMergeSelection, brushSize, zoomBound, zoomAnimationDuration, decorationShapes, regionMask, guideMask, maskPalette, overlayMarkers, renderOverlayMarker, onOverlayMarkerClick, renderImageOverlay, getSelectionLabel, hideSelectionLabelDot, formatSelectionInfo, externalTools, assistant, keymap, handleRef, backend, onActiveToolChange, onSelectionChange, onEditingChange, onShapesCreated, onShapesUpdated, onShapesDeleted, onDrawSessionChange, onDraftShapeChange, onViewportChange, onShapesTransformPreview, }: ShapeEditorProps<TMeta, TMarkerMeta> & {
|
|
8
|
+
backend?: "konva" | "pixi";
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from "react";
|
|
2
|
+
import { type EditorShape } from "./_model/geometry";
|
|
3
|
+
import { type GuideMaskRaster, type MaskPalette, type RegionMask } from "./_model/overlays";
|
|
4
|
+
/**
|
|
5
|
+
* ShapeViewer가 지원하는 EditorShape **표시 서브셋 계약**:
|
|
6
|
+
* - 도형: POINT / RECTANGLE / ELLIPSE / POLYGON / LINE / ROTATED_RECTANGLE(꼭짓점 배열)
|
|
7
|
+
* - 스타일: color·alternateColor·strokeWidth·dash·opacity·filled·fillOpacity·
|
|
8
|
+
* pointRadius·zIndex, readOnly 줄무늬 — 에디터 렌더러와 같은 의미
|
|
9
|
+
* (resolveShapeRenderStyle 공유)로 그린다.
|
|
10
|
+
* - 상호작용·선택·핸들·마커 등 편집 표현은 렌더링하지 않는다(interaction.visible만 존중).
|
|
11
|
+
*/
|
|
12
|
+
export interface ShapeViewerProps<TMeta = unknown> {
|
|
13
|
+
imageUrl: string;
|
|
14
|
+
alt?: string;
|
|
15
|
+
/** 도형 좌표계 크기. 썸네일 이미지의 실제 픽셀 크기와 다를 때 지정한다. */
|
|
16
|
+
coordinateSize?: {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
shapes?: EditorShape<TMeta>[];
|
|
21
|
+
regionMask?: RegionMask;
|
|
22
|
+
guideMask?: GuideMaskRaster | null;
|
|
23
|
+
maskPalette?: MaskPalette;
|
|
24
|
+
/** 지정한 도형이 화면을 채우도록 확대한다. */
|
|
25
|
+
focusedShapeId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* 포커스 줌 시 이미지 밖 여백 처리. "cover"면 이미지가 항상 컨테이너를
|
|
28
|
+
* 가득 채우도록 배율을 올리고 오프셋을 이미지 안쪽으로 클램프한다(썸네일용).
|
|
29
|
+
*/
|
|
30
|
+
focusFit?: "contain" | "cover";
|
|
31
|
+
zoomPadding?: number;
|
|
32
|
+
strokeSize?: number;
|
|
33
|
+
brightness?: number;
|
|
34
|
+
contrast?: number;
|
|
35
|
+
imageSmoothing?: boolean;
|
|
36
|
+
lazy?: boolean;
|
|
37
|
+
className?: string;
|
|
38
|
+
style?: CSSProperties;
|
|
39
|
+
renderImageState?: (status: "loading" | "error") => ReactNode;
|
|
40
|
+
}
|
|
41
|
+
/** 목록·카드 미리보기를 위한 상호작용 없는 Canvas2D 도형 뷰어. */
|
|
42
|
+
export default function ShapeViewer<TMeta = unknown>({ imageUrl, alt, coordinateSize, shapes, regionMask, guideMask, maskPalette, focusedShapeId, focusFit, zoomPadding, strokeSize, brightness, contrast, imageSmoothing, lazy, className, style, renderImageState, }: ShapeViewerProps<TMeta>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AssistantPromptPoint } from "../_model/props";
|
|
2
|
+
import type { AssistantStatus } from "../_state/useAssistant";
|
|
3
|
+
export declare function AssistantOverlay({ image, points, boxes, status, }: {
|
|
4
|
+
image: {
|
|
5
|
+
w: number;
|
|
6
|
+
h: number;
|
|
7
|
+
};
|
|
8
|
+
points: AssistantPromptPoint[];
|
|
9
|
+
/** 진행 중인 박스 프롬프트들(병렬 요청 — 각각 shimmer 표시). */
|
|
10
|
+
boxes: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}[];
|
|
16
|
+
status: AssistantStatus;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ContextMenuItem } from "../_model/props";
|
|
2
|
+
export type { ContextMenuItem };
|
|
3
|
+
/**
|
|
4
|
+
* 캔버스 우클릭 컨텍스트 메뉴(도메인 무관). 항목/위치는 호출부가 결정한다.
|
|
5
|
+
* @aivex/ui Menu(Radix Dropdown)를 커서 위치의 0크기 트리거에 앵커해 띄운다.
|
|
6
|
+
* 바깥 클릭·Escape·스크롤 닫힘은 Radix가 onOpenChange로 처리한다(비모달).
|
|
7
|
+
*/
|
|
8
|
+
export declare function ContextMenu({ x, y, items: rawItems, onClose, }: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
items: ContextMenuItem[];
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 마우스 위치에 십자 가이드라인을 그리는 오버레이(도메인 무관).
|
|
3
|
+
* 부모(컨테이너)를 채우고 pointer-events 없음 → 캔버스 상호작용 방해 안 함.
|
|
4
|
+
* 고빈도(mousemove)라 React state 없이 line ref를 명령형 갱신.
|
|
5
|
+
*/
|
|
6
|
+
export declare function CursorGuide({ color }: {
|
|
7
|
+
color?: string;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* 이미지 로딩/에러 상태 오버레이. 에디터 영역 전체를 덮는다.
|
|
4
|
+
* 호스트가 renderImageState로 커스텀하지 않으면 기본 스피너/에러 메시지를 그린다.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ImageStateOverlay({ status, render, loadingLabel, errorLabel, }: {
|
|
7
|
+
status: "loading" | "error";
|
|
8
|
+
render?: (status: "loading" | "error") => ReactNode;
|
|
9
|
+
loadingLabel?: string;
|
|
10
|
+
errorLabel?: string;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { RefObject } from "react";
|
|
2
|
+
import { type EditorShape } from "../_model/geometry";
|
|
3
|
+
import type { RegionOverlayData } from "../_model/overlays";
|
|
4
|
+
import { type EditorStrings } from "../_model/strings";
|
|
5
|
+
import type { ViewSettings } from "../_model/viewSettings";
|
|
6
|
+
import type { MinimapNavigation } from "../_state/useMinimapNavigation";
|
|
7
|
+
/**
|
|
8
|
+
* 미니맵 패널(좌하단) — 축소 이미지 + 가이드마스크/ROI 오버레이 + 도형 미리보기 +
|
|
9
|
+
* 현재 뷰포트 사각형 + 줌 컨트롤 바 + 보기설정 팝오버.
|
|
10
|
+
*
|
|
11
|
+
* 내비게이션 로직(패닝/줌)은 useMinimapNavigation(nav)에, 뷰포트 사각형/줌라벨의 실시간
|
|
12
|
+
* 갱신은 호스트의 syncMinimap이 rectRef/zoomLabelRef로 담당한다. 여긴 순수 표시.
|
|
13
|
+
*/
|
|
14
|
+
export declare function Minimap<TMeta>({ image, imageUrl, imageVisible, maskDataUrl, region, roiMaskId, shapes, view, onChangeView, nav, registerShape, rectRef, zoomLabelRef, onZoom100, open, onToggleOpen, showSettings, settingsOpen, onToggleSettings, onCloseSettings, labels, settingsLabels, }: {
|
|
15
|
+
image: {
|
|
16
|
+
w: number;
|
|
17
|
+
h: number;
|
|
18
|
+
};
|
|
19
|
+
imageUrl: string;
|
|
20
|
+
/** 메인 캔버스와 동기화된 표시 여부 — 전환 시 즉시 숨기고 로드 후 페이드인. */
|
|
21
|
+
imageVisible?: boolean;
|
|
22
|
+
maskDataUrl: string | null;
|
|
23
|
+
/** 리졸브된 영역 마스크 오버레이(딤·윤곽 벡터). */
|
|
24
|
+
region?: RegionOverlayData | null;
|
|
25
|
+
roiMaskId: string;
|
|
26
|
+
shapes: EditorShape<TMeta>[];
|
|
27
|
+
view: ViewSettings;
|
|
28
|
+
onChangeView: (patch: Partial<ViewSettings>) => void;
|
|
29
|
+
nav: MinimapNavigation;
|
|
30
|
+
registerShape: (id: string, el: SVGElement | null) => void;
|
|
31
|
+
rectRef: RefObject<HTMLDivElement | null>;
|
|
32
|
+
zoomLabelRef: RefObject<HTMLSpanElement | null>;
|
|
33
|
+
onZoom100: () => void;
|
|
34
|
+
open: boolean;
|
|
35
|
+
onToggleOpen: () => void;
|
|
36
|
+
/** 보기설정(기어) 버튼 표시 여부(기본 true). */
|
|
37
|
+
showSettings?: boolean;
|
|
38
|
+
settingsOpen: boolean;
|
|
39
|
+
onToggleSettings: () => void;
|
|
40
|
+
onCloseSettings: () => void;
|
|
41
|
+
/** UI 문자열(aria/버튼). 기본 한국어. */
|
|
42
|
+
labels?: EditorStrings["minimap"];
|
|
43
|
+
/** 설정 팝오버 문자열. 기본 한국어. */
|
|
44
|
+
settingsLabels?: EditorStrings["viewSettings"];
|
|
45
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EditorShape } from "../_model/geometry";
|
|
2
|
+
export declare function MinimapShape<TMeta>({ shape, strokeSize, register, }: {
|
|
3
|
+
shape: EditorShape<TMeta>;
|
|
4
|
+
strokeSize?: number;
|
|
5
|
+
register?: (id: string, el: SVGElement | null) => void;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
import type { RegionOverlayData } from "../_model/overlays";
|
|
3
|
+
/**
|
|
4
|
+
* 영역 마스크 오버레이 SVG — 미니맵용.
|
|
5
|
+
* 보이는 영역 밖을 딤으로 덮고, 가림 영역은 다시 덮으며, 경계선은 리졸브된
|
|
6
|
+
* 윤곽 선분만 점선으로 그린다(미니맵 축소 특성상 색은 단일 흰색).
|
|
7
|
+
* 좌표계는 이미지 좌표(viewBox=image), 화면 크기/선 두께는 호출부가 정한다.
|
|
8
|
+
*/
|
|
9
|
+
export declare function RegionOverlay({ image, region, maskId, width, height, strokeWidth, strokeDasharray, style, }: {
|
|
10
|
+
image: {
|
|
11
|
+
w: number;
|
|
12
|
+
h: number;
|
|
13
|
+
};
|
|
14
|
+
region: RegionOverlayData;
|
|
15
|
+
maskId: string;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
strokeWidth: number | string;
|
|
19
|
+
strokeDasharray: string;
|
|
20
|
+
style?: CSSProperties;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|