@aivex/ui 1.2.0-dev.4 → 1.2.0-dev.40
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/README.md +68 -0
- package/dist/{Button-CzqDPqUT.js → Button-BrPqDGyO.js} +1502 -3115
- package/dist/Button-BrPqDGyO.js.map +1 -0
- package/dist/Button-EEErevS-.cjs +2 -0
- package/dist/Button-EEErevS-.cjs.map +1 -0
- package/dist/IconButton-CK4en7H6.js +209 -0
- package/dist/IconButton-CK4en7H6.js.map +1 -0
- package/dist/IconButton-DBlsEy3m.cjs +2 -0
- package/dist/IconButton-DBlsEy3m.cjs.map +1 -0
- package/dist/comment.cjs +3 -113
- package/dist/comment.cjs.map +1 -1
- package/dist/comment.js +153 -13491
- package/dist/comment.js.map +1 -1
- package/dist/components/Badge/Badge.d.ts +8 -1
- package/dist/components/Calendar/Calendar.d.ts +38 -0
- package/dist/components/Calendar/Calendar.test.d.ts +1 -0
- package/dist/components/{DatePicker → Calendar}/date.d.ts +4 -3
- package/dist/components/Calendar/date.test.d.ts +1 -0
- package/dist/components/Calendar/index.d.ts +2 -0
- package/dist/components/Comment/CommentInput.d.ts +6 -1
- package/dist/components/DataGrid/DataGrid.d.ts +38 -71
- package/dist/components/DataGrid/DataGridColumnSettings.d.ts +18 -0
- package/dist/components/DataGrid/DataGridPrimitives.d.ts +79 -0
- package/dist/components/DataGrid/DataGridRows.d.ts +66 -0
- package/dist/components/DataGrid/index.d.ts +6 -2
- package/dist/components/DraggableScroll/DraggableScroll.d.ts +6 -1
- package/dist/components/Drawer/Drawer.d.ts +35 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Icon/index.d.ts +6 -1
- package/dist/components/InputBase/InputBase.d.ts +5 -7
- package/dist/components/Modal/Modal.d.ts +9 -2
- package/dist/components/Modal/ModalBase.d.ts +33 -0
- package/dist/components/Modal/index.d.ts +3 -1
- package/dist/components/ScrollArea/ScrollArea.d.ts +5 -1
- package/dist/components/SelectBox/SelectBox.d.ts +7 -4
- package/dist/components/SelectButton/SelectButton.d.ts +18 -0
- package/dist/components/SelectButton/index.d.ts +2 -0
- package/dist/components/ShapeEditor/ShapeEditor.d.ts +1 -1
- package/dist/components/ShapeEditor/ShapeViewer.d.ts +5 -5
- package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.ts +8 -3
- package/dist/components/ShapeEditor/_components/Minimap.d.ts +13 -11
- package/dist/components/ShapeEditor/_components/MinimapShape.d.ts +2 -2
- package/dist/components/ShapeEditor/_components/SelectionInfo.d.ts +2 -0
- package/dist/components/ShapeEditor/_components/SettingsPanel.d.ts +18 -3
- package/dist/components/ShapeEditor/_constants.d.ts +7 -4
- package/dist/components/ShapeEditor/_model/clipboard.d.ts +22 -0
- package/dist/components/ShapeEditor/_model/clipboard.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_model/cursors.d.ts +5 -0
- package/dist/components/ShapeEditor/_model/cursors.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_model/geometry.d.ts +33 -1
- package/dist/components/ShapeEditor/_model/geometry.evenodd-audit.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_model/geometry.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_model/imageDiagnosis.d.ts +23 -0
- package/dist/components/ShapeEditor/_model/imageDiagnosis.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_model/imageLoad.d.ts +13 -0
- package/dist/components/ShapeEditor/_model/imageLoad.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_model/keymap.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/overlays.d.ts +9 -19
- package/dist/components/ShapeEditor/_model/props.d.ts +100 -33
- package/dist/components/ShapeEditor/_model/strings.d.ts +7 -3
- package/dist/components/ShapeEditor/_model/viewSettings.d.ts +45 -1
- package/dist/components/ShapeEditor/_model/viewSettings.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_renderers/KonvaRenderer.d.ts +23 -3
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.ts +30 -5
- package/dist/components/ShapeEditor/_renderers/transformSession.d.ts +1 -1
- package/dist/components/ShapeEditor/_renderers/types.d.ts +52 -16
- package/dist/components/ShapeEditor/_state/createInteractionController.d.ts +8 -2
- package/dist/components/ShapeEditor/_state/createInteractionController.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.ts +4 -4
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +52 -10
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +7 -6
- package/dist/components/ShapeEditor/index.d.ts +3 -2
- package/dist/components/Spinner/Spinner.d.ts +15 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts +2 -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/components/Toast/Toast.d.ts +13 -3
- package/dist/components/Toast/index.d.ts +1 -1
- package/dist/index.cjs +1 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +2913 -7061
- package/dist/index.js.map +1 -1
- package/dist/keyboard-BMCakKCv.js +398 -0
- package/dist/keyboard-BMCakKCv.js.map +1 -0
- package/dist/keyboard-DCewgvMV.cjs +2 -0
- package/dist/keyboard-DCewgvMV.cjs.map +1 -0
- package/dist/shape-editor.cjs +1 -1
- package/dist/shape-editor.cjs.map +1 -1
- package/dist/shape-editor.js +3176 -2269
- package/dist/shape-editor.js.map +1 -1
- package/dist/styles.css +3 -2
- package/dist/tokens/tokens.css +613 -611
- package/dist/utils/keyboard.d.ts +3 -0
- package/dist/utils/useModalAutoFocus.d.ts +5 -0
- package/dist/utils.cjs +2 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.js +59 -0
- package/dist/utils.js.map +1 -0
- package/package.json +26 -14
- package/dist/Button-C_GP2mJ-.cjs +0 -2
- package/dist/Button-C_GP2mJ-.cjs.map +0 -1
- package/dist/Button-CzqDPqUT.js.map +0 -1
- package/dist/IconButton-B-MspnYP.cjs +0 -2
- package/dist/IconButton-B-MspnYP.cjs.map +0 -1
- package/dist/IconButton-DTGSfJme.js +0 -560
- package/dist/IconButton-DTGSfJme.js.map +0 -1
- package/dist/Switch-B2irM7Pp.js +0 -2656
- package/dist/Switch-B2irM7Pp.js.map +0 -1
- package/dist/Switch-CMKBdqkX.cjs +0 -42
- package/dist/Switch-CMKBdqkX.cjs.map +0 -1
- package/dist/components/DatePicker/Calendar.d.ts +0 -27
- package/dist/components/DatePicker/DatePicker.d.ts +0 -119
- package/dist/components/DatePicker/index.d.ts +0 -4
- package/dist/components/ShapeEditor/_model/imageFetch.d.ts +0 -9
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface CalendarProps {
|
|
2
|
-
/** 표시할 월 (일자는 무시) */
|
|
3
|
-
month: Date;
|
|
4
|
-
/** 단일 선택된 일자 */
|
|
5
|
-
selected?: Date | null;
|
|
6
|
-
/** 범위 시작 일자 */
|
|
7
|
-
rangeStart?: Date | null;
|
|
8
|
-
/** 범위 종료 일자 */
|
|
9
|
-
rangeEnd?: Date | null;
|
|
10
|
-
onSelectDay?: (day: Date) => void;
|
|
11
|
-
/** 점 표시할 일자 목록 (예: 데이터가 있는 날) */
|
|
12
|
-
markedDates?: Date[];
|
|
13
|
-
minDate?: Date;
|
|
14
|
-
maxDate?: Date;
|
|
15
|
-
/** true 를 반환하면 해당 일자 비활성화 */
|
|
16
|
-
disabledDate?: (date: Date) => boolean;
|
|
17
|
-
/** 이전 달 버튼 — 미지정 시 자리만 확보 */
|
|
18
|
-
onPrevMonth?: () => void;
|
|
19
|
-
/** 다음 달 버튼 — 미지정 시 자리만 확보 */
|
|
20
|
-
onNextMonth?: () => void;
|
|
21
|
-
weekdayLabels?: string[];
|
|
22
|
-
formatMonthTitle?: (month: Date) => string;
|
|
23
|
-
className?: string;
|
|
24
|
-
}
|
|
25
|
-
/** 한 달 그리드 캘린더. DatePicker 내부에서 1~2개를 조합해 사용합니다. */
|
|
26
|
-
declare function Calendar({ month, selected, rangeStart, rangeEnd, onSelectDay, markedDates, minDate, maxDate, disabledDate, onPrevMonth, onNextMonth, weekdayLabels, formatMonthTitle, className, }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export { Calendar };
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
export interface DateRange {
|
|
3
|
-
start: Date;
|
|
4
|
-
end: Date;
|
|
5
|
-
}
|
|
6
|
-
export interface DatePickerPreset<T> {
|
|
7
|
-
label: ReactNode;
|
|
8
|
-
getValue: () => T;
|
|
9
|
-
}
|
|
10
|
-
/** 시간 입력 정밀도 — hour: 시만, minute: 시:분, second: 시:분:초 */
|
|
11
|
-
export type TimePrecision = "hour" | "minute" | "second";
|
|
12
|
-
/** 시각 지정값 (기본 시각 프롭용) — 생략된 단위는 0 */
|
|
13
|
-
export interface TimeInput {
|
|
14
|
-
h: number;
|
|
15
|
-
m?: number;
|
|
16
|
-
s?: number;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 종료 시각 커밋 방식 (범위 계열에서만 의미)
|
|
20
|
-
* - exact: 표시된 시각 그대로 커밋 (기본)
|
|
21
|
-
* - inclusive: 종료 단위 끝까지 포함 (예: 23:59 → 23:59:59.999) — `t <= end` 조회용
|
|
22
|
-
* - exclusive: 다음 경계를 커밋해 끝 미포함 (예: 23:59 → 다음날 00:00:00.000) — `t < end` 반개구간 조회용
|
|
23
|
-
*/
|
|
24
|
-
export type EndBoundary = "exact" | "inclusive" | "exclusive";
|
|
25
|
-
interface DatePickerBaseProps {
|
|
26
|
-
/** 시간 입력 정밀도 — 정밀도 밖 단위는 비활성(00)으로 표시되고 0으로 커밋됨 (기본: "second") */
|
|
27
|
-
timePrecision?: TimePrecision;
|
|
28
|
-
/**
|
|
29
|
-
* 종료 시각 커밋 방식 (기본: "exact").
|
|
30
|
-
* date="range" time="single"(공통 시각)에는 적용되지 않음 — 24h 배수 의미 보존
|
|
31
|
-
*/
|
|
32
|
-
endBoundary?: EndBoundary;
|
|
33
|
-
/** 표시할 월 개수 (기본: date="range"는 2, 그 외 1) */
|
|
34
|
-
numberOfMonths?: 1 | 2;
|
|
35
|
-
/** 인풋 크기 */
|
|
36
|
-
size?: "sm" | "md";
|
|
37
|
-
placeholder?: string;
|
|
38
|
-
label?: string;
|
|
39
|
-
helperText?: string;
|
|
40
|
-
error?: boolean;
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
/** 점 표시할 일자 목록 (예: 데이터가 있는 날) */
|
|
43
|
-
markedDates?: Date[];
|
|
44
|
-
minDate?: Date;
|
|
45
|
-
maxDate?: Date;
|
|
46
|
-
/** true 를 반환하면 해당 일자 비활성화 */
|
|
47
|
-
disabledDate?: (date: Date) => boolean;
|
|
48
|
-
/** 시작 시점의 기본 시각 (value/defaultValue가 없을 때, 기본 00:00:00) */
|
|
49
|
-
defaultStartTime?: TimeInput;
|
|
50
|
-
/** 종료 시점의 기본 시각 (value/defaultValue가 없을 때, 기본 하루 끝) */
|
|
51
|
-
defaultEndTime?: TimeInput;
|
|
52
|
-
/** 패널 타이틀 */
|
|
53
|
-
title?: ReactNode;
|
|
54
|
-
startTimeLabel?: ReactNode;
|
|
55
|
-
endTimeLabel?: ReactNode;
|
|
56
|
-
resetLabel?: ReactNode;
|
|
57
|
-
applyLabel?: ReactNode;
|
|
58
|
-
weekdayLabels?: string[];
|
|
59
|
-
formatMonthTitle?: (month: Date) => string;
|
|
60
|
-
/** 팝오버가 처음 열릴 때 표시할 월 (값이 없을 때) */
|
|
61
|
-
defaultMonth?: Date;
|
|
62
|
-
className?: string;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* date × time 조합:
|
|
66
|
-
*
|
|
67
|
-
* | date | time | 의미 | value |
|
|
68
|
-
* |--------|--------|----------------------------------|-----------|
|
|
69
|
-
* | single | none | 하루 | Date |
|
|
70
|
-
* | single | single | 하루 + 시각 | Date |
|
|
71
|
-
* | single | range | 하루 내 시간 범위 | DateRange |
|
|
72
|
-
* | range | none | 날짜 범위 (일 단위) | DateRange |
|
|
73
|
-
* | range | single | 날짜 범위 + 공통 시각 (24h 배수) | DateRange |
|
|
74
|
-
* | range | range | 날짜+시간 범위 | DateRange |
|
|
75
|
-
*/
|
|
76
|
-
export interface SingleDatePickerProps extends DatePickerBaseProps {
|
|
77
|
-
date?: "single";
|
|
78
|
-
time?: "none" | "single";
|
|
79
|
-
value?: Date | null;
|
|
80
|
-
/** value가 없을 때 패널에 미리 선택되어 있는 기본값 (적용 전까지 onChange 미호출) */
|
|
81
|
-
defaultValue?: Date | null;
|
|
82
|
-
onChange?: (value: Date | null) => void;
|
|
83
|
-
/** 커스텀 프리셋 버튼 (예: 오늘, 어제) */
|
|
84
|
-
presets?: DatePickerPreset<Date>[];
|
|
85
|
-
/** 인풋에 표시될 텍스트 커스텀 */
|
|
86
|
-
formatValue?: (value: Date) => string;
|
|
87
|
-
}
|
|
88
|
-
/** 날짜는 하루, 시간만 범위 — value의 start/end는 같은 일자에 시각만 다름 */
|
|
89
|
-
export interface TimeRangeDatePickerProps extends DatePickerBaseProps {
|
|
90
|
-
date?: "single";
|
|
91
|
-
time: "range";
|
|
92
|
-
value?: DateRange | null;
|
|
93
|
-
/** value가 없을 때 패널에 미리 선택되어 있는 기본값 */
|
|
94
|
-
defaultValue?: DateRange | null;
|
|
95
|
-
onChange?: (value: DateRange | null) => void;
|
|
96
|
-
/** 커스텀 프리셋 버튼 (예: 오전, 오후) */
|
|
97
|
-
presets?: DatePickerPreset<DateRange>[];
|
|
98
|
-
/** 인풋에 표시될 텍스트 커스텀 */
|
|
99
|
-
formatValue?: (value: DateRange) => string;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* 날짜 범위. time="single"이면 양 끝점이 같은 시각을 공유해
|
|
103
|
-
* 구간이 24시간의 배수로 맞춰집니다 (예: 교대 시작 시각 기준 조회).
|
|
104
|
-
*/
|
|
105
|
-
export interface DateRangeDatePickerProps extends DatePickerBaseProps {
|
|
106
|
-
date: "range";
|
|
107
|
-
time?: "none" | "single" | "range";
|
|
108
|
-
value?: DateRange | null;
|
|
109
|
-
/** value가 없을 때 패널에 미리 선택되어 있는 기본값 */
|
|
110
|
-
defaultValue?: DateRange | null;
|
|
111
|
-
onChange?: (value: DateRange | null) => void;
|
|
112
|
-
/** 커스텀 프리셋 버튼 (예: 이번주, 지난 7일) */
|
|
113
|
-
presets?: DatePickerPreset<DateRange>[];
|
|
114
|
-
/** 인풋에 표시될 텍스트 커스텀 */
|
|
115
|
-
formatValue?: (value: DateRange) => string;
|
|
116
|
-
}
|
|
117
|
-
export type DatePickerProps = SingleDatePickerProps | TimeRangeDatePickerProps | DateRangeDatePickerProps;
|
|
118
|
-
declare function DatePicker(props: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
119
|
-
export { DatePicker };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export type { CalendarProps } from "./Calendar";
|
|
2
|
-
export { Calendar } from "./Calendar";
|
|
3
|
-
export type { DatePickerPreset, DatePickerProps, DateRange, DateRangeDatePickerProps, EndBoundary, SingleDatePickerProps, TimeInput, TimePrecision, TimeRangeDatePickerProps, } from "./DatePicker";
|
|
4
|
-
export { DatePicker } from "./DatePicker";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CORS 안전 이미지 blob URL 로드 — HTTP 캐시를 우선 사용한다(재방문·페이지 전환·
|
|
3
|
-
* 화질 스왑 시 재다운로드 없음). 앱 다른 곳의 crossOrigin 없는 `<img>`가 캐시를
|
|
4
|
-
* CORS 헤더 없는 응답으로 채웠으면 cors fetch가 실패하므로, 그때만 cache:"reload"로
|
|
5
|
-
* 캐시 항목을 정상 CORS 응답으로 갈아끼우며 한 번 더 시도한다.
|
|
6
|
-
* 둘 다 실패하면 null — 호출부가 crossOrigin="anonymous" `<img>`로 폴백한다.
|
|
7
|
-
* Konva/Pixi 렌더러와 ShapeViewer가 공유한다.
|
|
8
|
-
*/
|
|
9
|
-
export declare function fetchImageObjectUrl(url: string): Promise<string | null>;
|