@ehfuse/taskbox 0.1.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/LICENSE +21 -0
- package/README.md +57 -0
- package/dist/TaskboxProvider.d.ts +19 -0
- package/dist/atoms/CommentBubbleIcon.d.ts +7 -0
- package/dist/atoms/ConfirmCountButton.d.ts +29 -0
- package/dist/atoms/DateRangeFilterPopover.d.ts +14 -0
- package/dist/atoms/DueDatePickerPopover.d.ts +48 -0
- package/dist/atoms/GoogleEventChip.d.ts +8 -0
- package/dist/atoms/GroupByMenuButton.d.ts +11 -0
- package/dist/atoms/IconPickerGrid.d.ts +7 -0
- package/dist/atoms/LabelFilterMenu.d.ts +16 -0
- package/dist/atoms/LabelSelectMenu.d.ts +15 -0
- package/dist/atoms/MemberFilterMenu.d.ts +20 -0
- package/dist/atoms/ReceiverAvatars.d.ts +14 -0
- package/dist/atoms/SprintFilterMenu.d.ts +18 -0
- package/dist/atoms/StatusSelectMenu.d.ts +16 -0
- package/dist/atoms/TaskAckListPopover.d.ts +16 -0
- package/dist/atoms/TaskBoxTabs.d.ts +28 -0
- package/dist/atoms/TaskContextMenu.d.ts +37 -0
- package/dist/atoms/TaskDateRangeFilter.d.ts +11 -0
- package/dist/atoms/TaskIconPickerPopover.d.ts +12 -0
- package/dist/atoms/TaskPriorityChip.d.ts +9 -0
- package/dist/atoms/TaskStatusChip.d.ts +25 -0
- package/dist/board/SortableTaskCard.d.ts +21 -0
- package/dist/board/TaskBoxMobileCard.d.ts +28 -0
- package/dist/board/TaskCardContent.d.ts +33 -0
- package/dist/charts/SprintBurndownChart.d.ts +16 -0
- package/dist/charts/SprintVelocityChart.d.ts +13 -0
- package/dist/configs/projectIcons.d.ts +23 -0
- package/dist/dialogs/AddLabelDialog.d.ts +8 -0
- package/dist/dialogs/AddTabDialog.d.ts +16 -0
- package/dist/dialogs/CalendarImportDialog.d.ts +16 -0
- package/dist/dialogs/CalendarSubscribeDialog.d.ts +17 -0
- package/dist/dialogs/SprintChartsDialog.d.ts +16 -0
- package/dist/dialogs/SprintManageDialog.d.ts +29 -0
- package/dist/dialogs/TaskLinkDialog.d.ts +16 -0
- package/dist/drawers/TaskCreateBody.d.ts +35 -0
- package/dist/drawers/TaskCreateDrawer.d.ts +14 -0
- package/dist/drawers/TaskDetailBody.d.ts +63 -0
- package/dist/drawers/TaskDetailDrawer.d.ts +22 -0
- package/dist/drawers/TaskDetailHeader.d.ts +18 -0
- package/dist/index.d.ts +86 -0
- package/dist/index.esm.js +14 -0
- package/dist/index.esm.js.map +7 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +7 -0
- package/dist/internal/AccountAvatar.d.ts +15 -0
- package/dist/internal/ConfirmActionPopper.d.ts +24 -0
- package/dist/internal/HighlightText.d.ts +17 -0
- package/dist/internal/MobileCardStack.d.ts +19 -0
- package/dist/internal/TrashIcon.d.ts +4 -0
- package/dist/internal/dateUtils.d.ts +5 -0
- package/dist/internal/filePreview.d.ts +3 -0
- package/dist/internal/formatUtils.d.ts +3 -0
- package/dist/internal/htmlToPlainText.d.ts +6 -0
- package/dist/internal/mfs.d.ts +12 -0
- package/dist/internal/strUtils.d.ts +8 -0
- package/dist/internal/useCenteredMenuProps.d.ts +8 -0
- package/dist/internal/useHolidays.d.ts +7 -0
- package/dist/internal/useIsMobile.d.ts +7 -0
- package/dist/sections/BugPropertiesGrid.d.ts +26 -0
- package/dist/sections/DrawerSection.d.ts +11 -0
- package/dist/sections/InlineAddressInput.d.ts +17 -0
- package/dist/sections/InlineTextValue.d.ts +14 -0
- package/dist/sections/PropertyRow.d.ts +13 -0
- package/dist/sections/RelatedTasksSection.d.ts +17 -0
- package/dist/sections/TaskAttachmentUploadProgress.d.ts +18 -0
- package/dist/sections/TaskAttachmentsSection.d.ts +19 -0
- package/dist/sections/TaskChecklistSection.d.ts +18 -0
- package/dist/sections/TaskCommentsSection.d.ts +29 -0
- package/dist/sections/TaskContentEditor.d.ts +17 -0
- package/dist/sections/TaskCorePropertiesGrid.d.ts +52 -0
- package/dist/sections/TaskNoteField.d.ts +10 -0
- package/dist/state/defaults.d.ts +7 -0
- package/dist/state/useTaskboxForm.d.ts +22 -0
- package/dist/state/useTaskboxUiState.d.ts +13 -0
- package/dist/table/TaskBoxRow.d.ts +58 -0
- package/dist/table/columns.d.ts +41 -0
- package/dist/types/calendar.d.ts +22 -0
- package/dist/types/employee.d.ts +14 -0
- package/dist/types/form.d.ts +35 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/item.d.ts +136 -0
- package/dist/types/provider.d.ts +44 -0
- package/dist/types/upload.d.ts +30 -0
- package/dist/types/view.d.ts +34 -0
- package/dist/utils/attachmentLimit.d.ts +14 -0
- package/dist/utils/bugOptions.d.ts +22 -0
- package/dist/utils/customTab.d.ts +9 -0
- package/dist/utils/dateRange.d.ts +13 -0
- package/dist/utils/drawerNarrow.d.ts +12 -0
- package/dist/utils/googleEvents.d.ts +4 -0
- package/dist/utils/groupTasks.d.ts +30 -0
- package/dist/utils/noticeTargets.d.ts +39 -0
- package/dist/utils/sprintLabel.d.ts +7 -0
- package/dist/utils/taskConfirm.d.ts +17 -0
- package/dist/utils/taskDates.d.ts +5 -0
- package/dist/utils/taskDone.d.ts +22 -0
- package/dist/utils/taskEffort.d.ts +13 -0
- package/dist/utils/taskRelations.d.ts +21 -0
- package/dist/utils/taskShareText.d.ts +14 -0
- package/dist/utils/taskStatus.d.ts +99 -0
- package/dist/utils/taskVisibility.d.ts +32 -0
- package/dist/views/TaskBoxColumnSummary.d.ts +22 -0
- package/dist/views/TaskBoxGroupBoard.d.ts +41 -0
- package/dist/views/TaskBoxMobileList.d.ts +28 -0
- package/dist/views/TaskBoxMonthAgenda.d.ts +16 -0
- package/dist/views/TaskBoxMonthCalendar.d.ts +20 -0
- package/dist/views/TaskBoxSprintSummary.d.ts +15 -0
- package/dist/views/TaskBoxTable.d.ts +64 -0
- package/dist/views/TaskBoxTimeline.d.ts +19 -0
- package/dist/views/TaskBoxView.d.ts +38 -0
- package/dist/views/TaskBoxWeekCalendar.d.ts +25 -0
- package/package.json +111 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** 커스텀 라벨 추가 다이얼로그다(mfd FormDialog) — 라벨 이름과 색(컬러픽커)을 골라 라벨 사전에 추가한다. */
|
|
2
|
+
export interface AddLabelDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onSubmit: (name: string, color: string) => void;
|
|
6
|
+
}
|
|
7
|
+
/** 커스텀 라벨 추가 다이얼로그 컴포넌트다. */
|
|
8
|
+
export declare function AddLabelDialog({ open, onClose, onSubmit }: AddLabelDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 프로젝트 이름/아이콘 입력 다이얼로그다(새 프로젝트 추가 / 수정 공용).
|
|
3
|
+
* 프로젝트 이름을 입력하고 아이콘을 골라 확정한다.
|
|
4
|
+
*/
|
|
5
|
+
export interface AddTabDialogProps {
|
|
6
|
+
open: boolean;
|
|
7
|
+
title?: string;
|
|
8
|
+
initialLabel?: string;
|
|
9
|
+
initialIcon?: string;
|
|
10
|
+
confirmText?: string;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
initialUseSprints?: boolean;
|
|
13
|
+
onSubmit: (label: string, icon: string, useSprints: boolean) => void;
|
|
14
|
+
}
|
|
15
|
+
/** 프로젝트 이름/아이콘 입력 다이얼로그 컴포넌트다. */
|
|
16
|
+
export declare function AddTabDialog({ open, title, initialLabel, initialIcon, confirmText, initialUseSprints, onClose, onSubmit, }: AddTabDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 구글 캘린더 가져오기 다이얼로그다 — 구글 캘린더의 비밀 iCal 주소를 여러 개(최대 5개) 등록하면
|
|
3
|
+
* AS 가 주기 조회해 업무함 주간/월간 캘린더에 읽기전용 일정으로 겹쳐 보여준다.
|
|
4
|
+
* 연결된 캘린더는 한 줄 목록으로 보여주고 행 오른쪽 휴지통으로 해제한다.
|
|
5
|
+
* 반대 방향("구글 캘린더로 내보내기")과는 독립 기능이다.
|
|
6
|
+
*/
|
|
7
|
+
import type { TaskBoxCalendarImportEntry } from "../types";
|
|
8
|
+
export interface CalendarImportDialogProps {
|
|
9
|
+
open: boolean;
|
|
10
|
+
imports: TaskBoxCalendarImportEntry[];
|
|
11
|
+
onRegister: (url: string) => Promise<boolean>;
|
|
12
|
+
onRemove: (seq: number) => void;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
}
|
|
15
|
+
/** 구글 캘린더 가져오기 다이얼로그 컴포넌트다. */
|
|
16
|
+
export declare function CalendarImportDialog({ open, imports, onRegister, onRemove, onClose }: CalendarImportDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 구글 캘린더로 내보내기 다이얼로그다 — 계정별 ICS 피드(읽기전용)를 발급하고 구글 캘린더에 추가하게 안내한다.
|
|
3
|
+
* 피드 URL 은 토큰이 박힌 공개 주소라 본인만 보관해야 하며, 내보내기 on/off 도 이 다이얼로그에서 한다.
|
|
4
|
+
*/
|
|
5
|
+
import type { TaskBoxCalendarFeed } from "../types";
|
|
6
|
+
/** 토큰으로 기본 피드 URL 을 만든다(운영/개발 어디서 열든 현재 origin 기준 — 구글에는 운영 주소를 등록해야 한다). */
|
|
7
|
+
export declare function buildCalendarFeedUrl(token: string): string;
|
|
8
|
+
export interface CalendarSubscribeDialogProps {
|
|
9
|
+
open: boolean;
|
|
10
|
+
feed: TaskBoxCalendarFeed;
|
|
11
|
+
feedTaskCount: number;
|
|
12
|
+
buildFeedUrl?: (token: string) => string;
|
|
13
|
+
onSubscribe: () => void;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
}
|
|
16
|
+
/** 캘린더 구독 다이얼로그 컴포넌트다. */
|
|
17
|
+
export declare function CalendarSubscribeDialog({ open, feed, feedTaskCount, buildFeedUrl, onSubscribe, onClose, }: CalendarSubscribeDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 목표 차트 다이얼로그다(mfd FormDialog) — 위 벨로시티(목표별 완료량 막대), 아래 번다운(선택 목표의 남은량 꺾은선).
|
|
3
|
+
* 데이터 계산은 charts/ 컴포넌트가 하고, 여기는 목표 선택과 배치만 맡는다.
|
|
4
|
+
*/
|
|
5
|
+
import type { TaskBoxItem, TaskBoxSprint } from "../types";
|
|
6
|
+
/** 목표 차트 다이얼로그 props 다. */
|
|
7
|
+
export interface SprintChartsDialogProps {
|
|
8
|
+
open: boolean;
|
|
9
|
+
sprints: TaskBoxSprint[];
|
|
10
|
+
tasks: TaskBoxItem[];
|
|
11
|
+
todayStr: string;
|
|
12
|
+
initialSprintSeq?: number;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
}
|
|
15
|
+
/** 목표 차트 다이얼로그 컴포넌트다. */
|
|
16
|
+
export declare function SprintChartsDialog({ open, sprints, tasks, todayStr, initialSprintSeq, onClose, }: SprintChartsDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 목표(스프린트) 관리 다이얼로그다 — 헤더 "목표" 필터 메뉴의 "목표 관리"로 연다.
|
|
3
|
+
* 위쪽은 새 스프린트 등록 폼(프로젝트/이름/기간/목표), 아래는 기존 스프린트 목록(상태 변경·삭제)이다.
|
|
4
|
+
* 스프린트는 "스프린트 사용"을 켠 프로젝트에만 만들 수 있다.
|
|
5
|
+
*/
|
|
6
|
+
import type { TaskBoxCustomTab, TaskBoxSprint } from "../types";
|
|
7
|
+
export interface SprintManageDialogProps {
|
|
8
|
+
open: boolean;
|
|
9
|
+
customTabs: TaskBoxCustomTab[];
|
|
10
|
+
sprints: TaskBoxSprint[];
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
onCreate: (payload: {
|
|
13
|
+
group_seq: number;
|
|
14
|
+
name: string;
|
|
15
|
+
goal: string;
|
|
16
|
+
start_date: string;
|
|
17
|
+
end_date: string;
|
|
18
|
+
}) => Promise<boolean>;
|
|
19
|
+
onUpdate: (seq: number, patch: {
|
|
20
|
+
name: string;
|
|
21
|
+
goal: string;
|
|
22
|
+
start_date: string;
|
|
23
|
+
end_date: string;
|
|
24
|
+
}) => void;
|
|
25
|
+
onChangeStatus: (seq: number, status: TaskBoxSprint["status"]) => void;
|
|
26
|
+
onRemove: (seq: number) => void;
|
|
27
|
+
}
|
|
28
|
+
/** 스프린트 관리 다이얼로그 컴포넌트다. */
|
|
29
|
+
export declare function SprintManageDialog({ open, customTabs, sprints, onClose, onCreate, onUpdate, onChangeStatus, onRemove, }: SprintManageDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 관련 업무 연결 다이얼로그다(mfd FormDialog) — 관계 타입(관련/이전 업무/중복 원본)을 탭으로 고르고
|
|
3
|
+
* 업무를 검색해 연결한다. 후보 풀(tasks)은 소비처가 내려주고, 확정 시 onSubmit(targetSeq, type) 만 알린다.
|
|
4
|
+
*/
|
|
5
|
+
import type { TaskBoxItem, TaskBoxRelationType } from "../types";
|
|
6
|
+
/** TaskLinkDialog 속성이다. */
|
|
7
|
+
export interface TaskLinkDialogProps {
|
|
8
|
+
open: boolean;
|
|
9
|
+
task: TaskBoxItem;
|
|
10
|
+
tasks: TaskBoxItem[];
|
|
11
|
+
excludeSeqs?: number[];
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
onSubmit: (targetSeq: number, type: TaskBoxRelationType) => void;
|
|
14
|
+
}
|
|
15
|
+
/** 관련 업무 연결 다이얼로그 컴포넌트다. */
|
|
16
|
+
export declare function TaskLinkDialog({ open, task, tasks, excludeSeqs, onClose, onSubmit, }: TaskLinkDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 새 업무 등록 폼 본문이다 — [업무|일정|오류] 토글 + 공통 속성 그리드(라벨/목표/오류 재현정보 포함) +
|
|
3
|
+
* 내용(에디터)/할일/파일/비고. `TaskCreateDrawer` 의 본문이며, 모바일에서는 소비처가
|
|
4
|
+
* mfd(FormDialog)·바텀시트 등 임의 컨테이너에 담아 단독 조립할 수 있다(스크롤 컨테이너는 조립처 몫).
|
|
5
|
+
* 폼 상태는 패키지 소유 forma 폼(`useTaskboxForm` 산출 `form`)에 직접 바인딩한다 — 소비처의 필드 단위 배선 없음.
|
|
6
|
+
*/
|
|
7
|
+
import type { TaskBoxCustomTab, TaskBoxLabel, TaskBoxMemberField, TaskBoxSprint, TaskboxEmployee } from "../types";
|
|
8
|
+
import type { TaskboxCreateForm } from "../state/useTaskboxForm";
|
|
9
|
+
/** 일정 기본 아이콘 색이다(초록 — 캘린더 박스 "일정 m건"·가져오기 다이얼로그 아이콘과 동일 계열). */
|
|
10
|
+
export declare const EVENT_ICON_COLOR = "#0f9d58";
|
|
11
|
+
/** 등록 폼 본문 props 다 — `TaskCreateDrawer` 와 공유한다(프리셋류는 드로어의 열림 초기화가 소비한다). */
|
|
12
|
+
export interface TaskCreateBodyProps {
|
|
13
|
+
form: TaskboxCreateForm;
|
|
14
|
+
statusOptions: TaskBoxLabel[];
|
|
15
|
+
customTabs: TaskBoxCustomTab[];
|
|
16
|
+
sprints?: TaskBoxSprint[];
|
|
17
|
+
avatarSrcByName?: Map<string, string>;
|
|
18
|
+
presetDueDate?: string;
|
|
19
|
+
presetTabKey?: string;
|
|
20
|
+
presetManager?: {
|
|
21
|
+
name: string;
|
|
22
|
+
accountSeq: number;
|
|
23
|
+
} | null;
|
|
24
|
+
excludeSelfAsManager?: boolean;
|
|
25
|
+
isNotice?: boolean;
|
|
26
|
+
defaultBug?: boolean;
|
|
27
|
+
employees?: TaskboxEmployee[];
|
|
28
|
+
myAccountSeq?: number;
|
|
29
|
+
onMemberEdit: (field: TaskBoxMemberField) => void;
|
|
30
|
+
onAddProject?: (label: string, icon: string, useSprints: boolean) => Promise<string | void> | string | void;
|
|
31
|
+
onAddLabelOption?: (name: string, color: string) => void;
|
|
32
|
+
contentSyncKey?: string | number;
|
|
33
|
+
}
|
|
34
|
+
/** 새 업무 등록 폼 본문 컴포넌트다. */
|
|
35
|
+
export declare function TaskCreateBody({ form, statusOptions, customTabs, sprints, avatarSrcByName, isNotice, employees, myAccountSeq, onMemberEdit, onAddProject, onAddLabelOption, contentSyncKey, }: TaskCreateBodyProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 새 업무 등록 드로어다(상세 드로어와 같은 레이아웃 — 오른쪽에서 슬라이드).
|
|
3
|
+
* 헤더(아이콘+제목 입력+닫기) + 본문(`TaskCreateBody`) + 하단 액션(취소/등록)으로 구성한다.
|
|
4
|
+
* 폼은 패키지 소유 forma 폼(`useTaskboxForm` 산출 `form`)을 주입받고, 열림 전환 시 프리셋으로 초기화한다.
|
|
5
|
+
* 책임자/참조자/대상자 직원 선택 다이얼로그는 소비처 소유다 — `onMemberEdit(field)` 콜백만 노출한다.
|
|
6
|
+
*/
|
|
7
|
+
import { type TaskCreateBodyProps } from "./TaskCreateBody";
|
|
8
|
+
/** 등록 드로어 props 다 — 본문 props 에 컨테이너(열림/닫기)만 더한다. */
|
|
9
|
+
export interface TaskCreateDrawerProps extends TaskCreateBodyProps {
|
|
10
|
+
open: boolean;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
}
|
|
13
|
+
/** 새 업무 등록 드로어 컴포넌트다. */
|
|
14
|
+
export declare function TaskCreateDrawer({ open, onClose, ...bodyProps }: TaskCreateDrawerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 업무 상세 본문이다 — 공통 속성 그리드(상태/티켓/목표/라벨/확인 현황/작성·완료 기록 행 포함) +
|
|
3
|
+
* 내용(에디터)/비고/할일/파일/댓글 목록. 값 클릭 → 메뉴/팝퍼로 바로 수정한다(즉시 저장 콜백).
|
|
4
|
+
* 상태/목표/라벨/확인자 팝오버는 본문이 함께 소유한다(조립처가 본문만 담아도 수정 UI 가 완성된다).
|
|
5
|
+
* 댓글 입력(TaskCommentInput)은 포함하지 않는다 — 배치가 컨테이너마다 달라 소비처/드로어가 배치한다.
|
|
6
|
+
*/
|
|
7
|
+
import type { TaskBoxCommentReactionKind, TaskBoxCustomTab, TaskBoxDateField, TaskBoxItem, TaskBoxLabel, TaskBoxMemberField, TaskBoxPriority, TaskBoxRelationType, TaskBoxReminder, TaskBoxSprint, TaskBoxStatus, TaskboxAttachmentRef, TaskboxEmployee } from "../types";
|
|
8
|
+
/** 상세 본문 props 다 — `TaskDetailDrawer` 와 공유한다(컨테이너/헤더/댓글 입력 관련 제외). */
|
|
9
|
+
export interface TaskDetailBodyProps {
|
|
10
|
+
task: TaskBoxItem;
|
|
11
|
+
customTabs: TaskBoxCustomTab[];
|
|
12
|
+
statusOptions: TaskBoxLabel[];
|
|
13
|
+
avatarSrcByName?: Map<string, string>;
|
|
14
|
+
onChangeStatus: (taskSeq: number, status: TaskBoxStatus) => void;
|
|
15
|
+
onChangeLabels: (taskSeq: number, labelKeys: string[]) => void;
|
|
16
|
+
onAddLabelOption: (name: string, color: string) => void;
|
|
17
|
+
onChangeProject: (taskSeq: number, tabKey: string) => void;
|
|
18
|
+
onAddProject?: (label: string, icon: string, useSprints: boolean) => Promise<string | void> | string | void;
|
|
19
|
+
onChangeDate: (taskSeq: number, field: TaskBoxDateField, date: string) => void;
|
|
20
|
+
onChangeReminder: (taskSeq: number, reminder: TaskBoxReminder) => void;
|
|
21
|
+
onMemberEdit: (task: TaskBoxItem, field: TaskBoxMemberField) => void;
|
|
22
|
+
onChangePriority: (taskSeq: number, priority: TaskBoxPriority) => void;
|
|
23
|
+
onChangeEstimatedTime: (taskSeq: number, estimatedTime: string) => void;
|
|
24
|
+
onChangeEventTime?: (taskSeq: number, eventTime: string) => void;
|
|
25
|
+
onChangeEventPlace?: (taskSeq: number, eventPlace: string) => void;
|
|
26
|
+
onChangeEventAddress?: (taskSeq: number, eventAddress: string) => void;
|
|
27
|
+
onChangeNote: (taskSeq: number, note: string) => void;
|
|
28
|
+
onChangeContent: (taskSeq: number, content: string) => void;
|
|
29
|
+
onAddChecklistItem: (taskSeq: number, label: string) => void;
|
|
30
|
+
onToggleChecklistItem: (taskSeq: number, index: number, checked: boolean) => void;
|
|
31
|
+
onRemoveChecklistItem: (taskSeq: number, index: number) => void;
|
|
32
|
+
onUpdateChecklistItem?: (taskSeq: number, index: number, label: string) => void;
|
|
33
|
+
onConvertChecklistToTask?: (taskSeq: number, index: number, label: string) => void;
|
|
34
|
+
onOpenChecklistTask?: (linkedTaskSeq: number) => void;
|
|
35
|
+
resolveChecklistTask?: (linkedTaskSeq: number) => TaskBoxItem | undefined;
|
|
36
|
+
relatedTasksPool?: TaskBoxItem[];
|
|
37
|
+
onOpenRelatedTask?: (taskSeq: number) => void;
|
|
38
|
+
onLinkRelatedTask?: (taskSeq: number, targetSeq: number, type: TaskBoxRelationType) => void;
|
|
39
|
+
onUnlinkRelatedTask?: (taskSeq: number, targetSeq: number, type: TaskBoxRelationType) => void;
|
|
40
|
+
onCreateFollowUpTask?: (taskSeq: number) => void;
|
|
41
|
+
onAddAttachments: (taskSeq: number, files: File[]) => void;
|
|
42
|
+
onRemoveAttachment: (taskSeq: number, index: number) => void;
|
|
43
|
+
onPreview?: (attachment: TaskboxAttachmentRef) => void;
|
|
44
|
+
onDownload?: (attachment: TaskboxAttachmentRef) => void;
|
|
45
|
+
onUpdateComment: (taskSeq: number, index: number, text: string) => void;
|
|
46
|
+
onRemoveComment: (taskSeq: number, index: number) => void;
|
|
47
|
+
onToggleCommentReaction?: (taskSeq: number, index: number, kind: TaskBoxCommentReactionKind) => void;
|
|
48
|
+
currentUserName?: string;
|
|
49
|
+
myAccountSeq?: number;
|
|
50
|
+
noticeAdmin?: boolean;
|
|
51
|
+
employees?: TaskboxEmployee[];
|
|
52
|
+
onAckConfirm?: (taskSeq: number) => void;
|
|
53
|
+
onChangeBugField?: (taskSeq: number, field: "bug_repro" | "bug_device" | "bug_where" | "bug_version", value: string) => void;
|
|
54
|
+
onChangeResolution?: (taskSeq: number, resolution: TaskBoxItem["resolution"]) => void;
|
|
55
|
+
onClaimTask?: (taskSeq: number) => void;
|
|
56
|
+
sprints?: TaskBoxSprint[];
|
|
57
|
+
sprintProject?: boolean;
|
|
58
|
+
onChangeSprint?: (taskSeq: number, sprintSeq: number) => void;
|
|
59
|
+
onChangeStoryPoints?: (taskSeq: number, points: number) => void;
|
|
60
|
+
onVerifyBug?: (taskSeq: number, approved: boolean) => void;
|
|
61
|
+
}
|
|
62
|
+
/** 업무 상세 본문 컴포넌트다. */
|
|
63
|
+
export declare function TaskDetailBody({ task, customTabs, statusOptions, avatarSrcByName, onChangeStatus, onChangeLabels, onAddLabelOption, onChangeProject, onAddProject, onChangeDate, onChangeReminder, onMemberEdit, onChangePriority, onChangeEstimatedTime, onChangeEventTime, onChangeEventPlace, onChangeEventAddress, onChangeNote, onChangeContent, onAddChecklistItem, onToggleChecklistItem, onRemoveChecklistItem, onUpdateChecklistItem, onConvertChecklistToTask, onOpenChecklistTask, resolveChecklistTask, relatedTasksPool, onOpenRelatedTask, onLinkRelatedTask, onUnlinkRelatedTask, onCreateFollowUpTask, onAddAttachments, onRemoveAttachment, onPreview, onDownload, onUpdateComment, onRemoveComment, onToggleCommentReaction, currentUserName, myAccountSeq, noticeAdmin: _noticeAdmin, employees, onAckConfirm, onChangeBugField, sprints, sprintProject, onChangeSprint, onChangeStoryPoints, onChangeResolution, onClaimTask, onVerifyBug, }: TaskDetailBodyProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 업무 상세 드로어다 — 노션 사이드 픽처럼 오른쪽에서 열린다(데스크톱 Drawer 720px 전용).
|
|
3
|
+
* 상단 `TaskDetailHeader`(완료 체크+아이콘+제목 인라인 편집+공유+닫기) + 스크롤 본문 `TaskDetailBody` +
|
|
4
|
+
* 하단 고정 댓글 입력(`TaskCommentInput`)으로 구성한다. 모바일 표시는 소비처가
|
|
5
|
+
* `TaskDetailHeader`/`TaskDetailBody` 조각을 mfd(FormDialog) 등 임의 컨테이너에 담아 조립한다.
|
|
6
|
+
*/
|
|
7
|
+
import type { TaskBoxAttachment, TaskBoxItem } from "../types";
|
|
8
|
+
import { type TaskDetailHeaderProps } from "./TaskDetailHeader";
|
|
9
|
+
import { type TaskDetailBodyProps } from "./TaskDetailBody";
|
|
10
|
+
/** 지금 시각을 "YYYY-MM-DD HH:mm" 로 만든다(댓글 작성일시). */
|
|
11
|
+
declare function nowDateTimeString(): string;
|
|
12
|
+
/** 상세 드로어 props 다 — 헤더+본문 props 의 합집합에 컨테이너(열림/닫기)와 댓글 등록을 더한다. */
|
|
13
|
+
export interface TaskDetailDrawerProps extends Omit<TaskDetailHeaderProps, "task" | "onClose">, Omit<TaskDetailBodyProps, "task"> {
|
|
14
|
+
open: boolean;
|
|
15
|
+
task: TaskBoxItem | null;
|
|
16
|
+
onClose: () => void;
|
|
17
|
+
onAddComment: (taskSeq: number, text: string, attachments?: TaskBoxAttachment[]) => void;
|
|
18
|
+
}
|
|
19
|
+
/** 업무 상세 드로어 컴포넌트다. */
|
|
20
|
+
export declare function TaskDetailDrawer({ open, task: taskProp, onClose, onAddComment, myAccountSeq, onToggleCompleted, onChangeTitle, onChangeIcon, onChangeIconColor, ...bodyProps }: TaskDetailDrawerProps): import("react").JSX.Element | null;
|
|
21
|
+
/** 댓글 작성일시 헬퍼를 외부(레이아웃)에서도 쓰도록 내보낸다. */
|
|
22
|
+
export { nowDateTimeString };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 업무 상세 헤더 줄이다 — 완료 체크 + 아이콘(클릭=픽커 팝오버) + 제목 인라인 편집 + 공유 + 닫기(선택).
|
|
3
|
+
* `TaskDetailDrawer` 의 상단이며, 모바일에서는 소비처가 mfd(FormDialog) 등 임의 컨테이너 상단에 조립한다
|
|
4
|
+
* (모바일 컨테이너가 뒤로가기를 담당하면 `onClose` 를 생략해 닫기 X 를 숨긴다).
|
|
5
|
+
*/
|
|
6
|
+
import type { TaskBoxItem } from "../types";
|
|
7
|
+
/** 상세 헤더 props 다. */
|
|
8
|
+
export interface TaskDetailHeaderProps {
|
|
9
|
+
task: TaskBoxItem;
|
|
10
|
+
myAccountSeq?: number;
|
|
11
|
+
onToggleCompleted: (taskSeq: number, completed: boolean) => void;
|
|
12
|
+
onChangeTitle: (taskSeq: number, title: string) => void;
|
|
13
|
+
onChangeIcon: (taskSeq: number, icon: string) => void;
|
|
14
|
+
onChangeIconColor?: (taskSeq: number, iconColor: string) => void;
|
|
15
|
+
onClose?: () => void;
|
|
16
|
+
}
|
|
17
|
+
/** 업무 상세 헤더 컴포넌트다. */
|
|
18
|
+
export declare function TaskDetailHeader({ task, myAccountSeq, onToggleCompleted, onChangeTitle, onChangeIcon, onChangeIconColor, onClose, }: TaskDetailHeaderProps): import("react").JSX.Element;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/** @ehfuse/taskbox 공개 export 배럴이다. */
|
|
2
|
+
export * from "./types";
|
|
3
|
+
export { TaskboxProvider, useTaskboxConfig, useBuildFileUrl, useUploadMaxMb, type TaskboxProviderProps } from "./TaskboxProvider";
|
|
4
|
+
export { useTaskboxForm, type TaskboxCreateForm, type UseTaskboxFormOptions } from "./state/useTaskboxForm";
|
|
5
|
+
export { useTaskboxUiState, TASKBOX_UI_STATE_ID, type TaskboxUiStateInstance } from "./state/useTaskboxUiState";
|
|
6
|
+
export { defaultTaskBoxFormValues, defaultTaskboxUiStateValues } from "./state/defaults";
|
|
7
|
+
export * from "./views/TaskBoxView";
|
|
8
|
+
export * from "./views/TaskBoxTable";
|
|
9
|
+
export * from "./views/TaskBoxGroupBoard";
|
|
10
|
+
export * from "./views/TaskBoxWeekCalendar";
|
|
11
|
+
export * from "./views/TaskBoxMonthCalendar";
|
|
12
|
+
export * from "./views/TaskBoxMonthAgenda";
|
|
13
|
+
export * from "./views/TaskBoxTimeline";
|
|
14
|
+
export * from "./views/TaskBoxColumnSummary";
|
|
15
|
+
export * from "./views/TaskBoxSprintSummary";
|
|
16
|
+
export * from "./views/TaskBoxMobileList";
|
|
17
|
+
export * from "./table/columns";
|
|
18
|
+
export { type TaskCompleteConfirmTarget } from "./table/TaskBoxRow";
|
|
19
|
+
export * from "./board/TaskCardContent";
|
|
20
|
+
export * from "./board/SortableTaskCard";
|
|
21
|
+
export { type TaskBoxMobileCardProps } from "./board/TaskBoxMobileCard";
|
|
22
|
+
export * from "./drawers/TaskCreateDrawer";
|
|
23
|
+
export * from "./drawers/TaskCreateBody";
|
|
24
|
+
export * from "./drawers/TaskDetailDrawer";
|
|
25
|
+
export * from "./drawers/TaskDetailBody";
|
|
26
|
+
export * from "./drawers/TaskDetailHeader";
|
|
27
|
+
export * from "./sections/DrawerSection";
|
|
28
|
+
export * from "./sections/PropertyRow";
|
|
29
|
+
export * from "./sections/TaskCorePropertiesGrid";
|
|
30
|
+
export * from "./sections/BugPropertiesGrid";
|
|
31
|
+
export * from "./sections/TaskChecklistSection";
|
|
32
|
+
export * from "./sections/RelatedTasksSection";
|
|
33
|
+
export * from "./sections/TaskAttachmentsSection";
|
|
34
|
+
export * from "./sections/TaskAttachmentUploadProgress";
|
|
35
|
+
export * from "./sections/TaskCommentsSection";
|
|
36
|
+
export * from "./sections/TaskContentEditor";
|
|
37
|
+
export * from "./sections/TaskNoteField";
|
|
38
|
+
export * from "./sections/InlineTextValue";
|
|
39
|
+
export * from "./sections/InlineAddressInput";
|
|
40
|
+
export * from "./dialogs/AddLabelDialog";
|
|
41
|
+
export * from "./dialogs/AddTabDialog";
|
|
42
|
+
export * from "./dialogs/SprintManageDialog";
|
|
43
|
+
export * from "./dialogs/CalendarImportDialog";
|
|
44
|
+
export * from "./dialogs/CalendarSubscribeDialog";
|
|
45
|
+
export * from "./dialogs/TaskLinkDialog";
|
|
46
|
+
export * from "./dialogs/SprintChartsDialog";
|
|
47
|
+
export * from "./charts/SprintVelocityChart";
|
|
48
|
+
export * from "./charts/SprintBurndownChart";
|
|
49
|
+
export * from "./atoms/TaskStatusChip";
|
|
50
|
+
export * from "./atoms/TaskPriorityChip";
|
|
51
|
+
export * from "./atoms/GoogleEventChip";
|
|
52
|
+
export * from "./atoms/ReceiverAvatars";
|
|
53
|
+
export * from "./atoms/CommentBubbleIcon";
|
|
54
|
+
export * from "./atoms/ConfirmCountButton";
|
|
55
|
+
export * from "./atoms/StatusSelectMenu";
|
|
56
|
+
export * from "./atoms/LabelSelectMenu";
|
|
57
|
+
export * from "./atoms/MemberFilterMenu";
|
|
58
|
+
export * from "./atoms/GroupByMenuButton";
|
|
59
|
+
export * from "./atoms/DueDatePickerPopover";
|
|
60
|
+
export * from "./atoms/TaskAckListPopover";
|
|
61
|
+
export * from "./atoms/TaskIconPickerPopover";
|
|
62
|
+
export * from "./atoms/IconPickerGrid";
|
|
63
|
+
export * from "./atoms/TaskDateRangeFilter";
|
|
64
|
+
export * from "./atoms/DateRangeFilterPopover";
|
|
65
|
+
export * from "./atoms/TaskBoxTabs";
|
|
66
|
+
export * from "./atoms/TaskContextMenu";
|
|
67
|
+
export * from "./atoms/LabelFilterMenu";
|
|
68
|
+
export * from "./atoms/SprintFilterMenu";
|
|
69
|
+
export * from "./configs/projectIcons";
|
|
70
|
+
export * from "./utils/taskEffort";
|
|
71
|
+
export * from "./utils/taskRelations";
|
|
72
|
+
export * from "./utils/taskStatus";
|
|
73
|
+
export * from "./utils/taskDone";
|
|
74
|
+
export * from "./utils/taskConfirm";
|
|
75
|
+
export * from "./utils/taskVisibility";
|
|
76
|
+
export * from "./utils/noticeTargets";
|
|
77
|
+
export * from "./utils/groupTasks";
|
|
78
|
+
export * from "./utils/googleEvents";
|
|
79
|
+
export * from "./utils/dateRange";
|
|
80
|
+
export * from "./utils/taskDates";
|
|
81
|
+
export * from "./utils/customTab";
|
|
82
|
+
export * from "./utils/bugOptions";
|
|
83
|
+
export * from "./utils/sprintLabel";
|
|
84
|
+
export * from "./utils/taskShareText";
|
|
85
|
+
export * from "./utils/attachmentLimit";
|
|
86
|
+
export * from "./utils/drawerNarrow";
|