@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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 김영진 (Kim Young Jin)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# @ehfuse/taskbox
|
|
2
|
+
|
|
3
|
+
A React/MUI task inbox component with notices, per-user assignments, read tracking, and mobile card UI.
|
|
4
|
+
|
|
5
|
+
업무함(태스크 관리) 프런트 UI 컴포넌트 패키지입니다. 보기타입 6종(목록/프로젝트 보드/칸반/주간/월간/타임라인), 등록·상세 드로어(+모바일 조립용 섹션 컴포넌트), 캘린더 연동 UI를 제공합니다. 서버 통신·라우팅은 소유하지 않는 컨트롤드 컴포넌트이며, 폼·UI 상태는 `@ehfuse/forma` 기반 훅(`useTaskboxForm`/`useTaskboxUiState`)으로 패키지가 소유합니다.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @ehfuse/taskbox
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
`@ehfuse/forma` 가 필수 peer 이므로 앱 루트에 `GlobalFormaProvider` 가 있어야 합니다.
|
|
14
|
+
|
|
15
|
+
## Quick start
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
import {
|
|
19
|
+
TaskboxProvider,
|
|
20
|
+
TaskBoxView,
|
|
21
|
+
TaskCreateDrawer,
|
|
22
|
+
useTaskboxForm,
|
|
23
|
+
} from "@ehfuse/taskbox";
|
|
24
|
+
|
|
25
|
+
function TaskboxPage() {
|
|
26
|
+
const form = useTaskboxForm({
|
|
27
|
+
onSubmit: async (values) => {
|
|
28
|
+
await api.createTask(values); // 서버 저장은 앱 몫
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<TaskboxProvider config={{ uploadMaxMb: 50 }}>
|
|
34
|
+
<TaskBoxView view="list" tasks={tasks} statusOptions={labels} customTabs={projects} ... />
|
|
35
|
+
<TaskCreateDrawer open={open} onClose={close} form={form} ... />
|
|
36
|
+
</TaskboxProvider>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Docs
|
|
42
|
+
|
|
43
|
+
- [설계 문서](./docs/ko/design.md)
|
|
44
|
+
- [컴포넌트 카탈로그](./docs/ko/components.md)
|
|
45
|
+
- [타입/Export 목록](./docs/ko/types.md)
|
|
46
|
+
|
|
47
|
+
## Example
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
cd example
|
|
51
|
+
npm install
|
|
52
|
+
npm run dev
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
MIT © 김영진 (ehfuse@gmail.com)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 횡단 관심사 주입 Provider 다 — 공휴일/파일URL/업로드한도/모바일판정/폰트오프셋/슬롯.
|
|
3
|
+
* 없어도 모든 컴포넌트가 기본값으로 동작한다(컨텍스트 기본값 = 빈 설정).
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from "react";
|
|
6
|
+
import type { TaskboxConfig, TaskboxFileUrlOptions } from "./types/provider";
|
|
7
|
+
/** TaskboxProvider props 다. */
|
|
8
|
+
export interface TaskboxProviderProps {
|
|
9
|
+
config?: TaskboxConfig;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/** 설정을 주입한다. `mobileFontOffsetPx` 지정 시 CSS 변수를 감싸는 Box 로 심는다. */
|
|
13
|
+
export declare function TaskboxProvider({ config, children }: TaskboxProviderProps): import("react").JSX.Element;
|
|
14
|
+
/** 현재 주입 설정을 읽는다(Provider 없으면 빈 설정). */
|
|
15
|
+
export declare function useTaskboxConfig(): TaskboxConfig;
|
|
16
|
+
/** 첨부 파일 URL 을 만든다 — Provider `buildFileUrl` 우선, 기본 `/api/v1/files/:uuid`. */
|
|
17
|
+
export declare function useBuildFileUrl(): (uuid: string, options?: TaskboxFileUrlOptions) => string;
|
|
18
|
+
/** 첨부 업로드 한도(MB)를 읽는다(기본 50). */
|
|
19
|
+
export declare function useUploadMaxMb(): number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 댓글 말풍선 아이콘이다(점 3개 말풍선 — 댓글이 달린 업무 표시용).
|
|
3
|
+
* 색은 currentColor 를 따르므로 sx.color 로 조절한다.
|
|
4
|
+
*/
|
|
5
|
+
import { type SvgIconProps } from "@mui/material";
|
|
6
|
+
/** 댓글 말풍선 아이콘 컴포넌트다. */
|
|
7
|
+
export declare function CommentBubbleIcon({ sx, ...props }: SvgIconProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 확인 컬럼 공용 버튼이다(표의 확인요청 셀·내 업무 확인 컬럼·공지 확인 버튼 공용).
|
|
3
|
+
* 내가 확인할 차례면 파란 채움 "확인" 버튼, 그 외에는 "n / m" 확인자 집계(전원 확인=완료) 외곽선 버튼을 그린다.
|
|
4
|
+
* 내가 확인한 표시(파란 체크)는 버튼 왼쪽에 고정하고, 글씨는 체크를 제외한 나머지 영역의 중앙에 온다.
|
|
5
|
+
*/
|
|
6
|
+
import type { MouseEvent, ReactNode } from "react";
|
|
7
|
+
import { type SxProps, type Theme } from "@mui/material";
|
|
8
|
+
/** 파란 채움 소형 액션 버튼 속성이다. */
|
|
9
|
+
export interface TaskActionButtonProps {
|
|
10
|
+
onClick: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
sx?: SxProps<Theme>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* "지금 누를 행동" 공용 버튼이다 — 확인/가져가기/책임자 맡기가 같은 모양을 쓴다
|
|
17
|
+
* (확인 컬럼의 파란 채움 그라데이션 버튼 재사용).
|
|
18
|
+
*/
|
|
19
|
+
export declare function TaskActionButton({ onClick, children, fullWidth, sx }: TaskActionButtonProps): import("react").JSX.Element;
|
|
20
|
+
export interface ConfirmCountButtonProps {
|
|
21
|
+
canConfirm: boolean;
|
|
22
|
+
count: number;
|
|
23
|
+
total: number;
|
|
24
|
+
myConfirmed?: boolean;
|
|
25
|
+
onConfirm: () => void;
|
|
26
|
+
onShowList: (anchorEl: HTMLElement) => void;
|
|
27
|
+
}
|
|
28
|
+
/** 확인 컬럼 공용 버튼 컴포넌트다. */
|
|
29
|
+
export declare function ConfirmCountButton({ canConfirm, count, total, myConfirmed, onConfirm, onShowList, }: ConfirmCountButtonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 기간 필터 팝오버다 — 완료·보관함 탭 헤더의 "기간" 버튼이 연다(www Layout 의 팝오버 이식).
|
|
3
|
+
* 내용은 TaskDateRangeFilter(퀵버튼+시작/종료 입력) 그대로다.
|
|
4
|
+
*/
|
|
5
|
+
/** DateRangeFilterPopover 속성이다. */
|
|
6
|
+
export interface DateRangeFilterPopoverProps {
|
|
7
|
+
anchorEl: HTMLElement | null;
|
|
8
|
+
fromDate: string;
|
|
9
|
+
toDate: string;
|
|
10
|
+
onChange: (fromDate: string, toDate: string) => void;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
}
|
|
13
|
+
/** 기간 필터 팝오버 컴포넌트다. */
|
|
14
|
+
export declare function DateRangeFilterPopover({ anchorEl, fromDate, toDate, onChange, onClose }: DateRangeFilterPopoverProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 마감기한 달력 팝오버다(노션 스타일).
|
|
3
|
+
* 상단은 달력(SimpleCalendar), 하단은 "리마인더" 줄로 언제 다시 알려줄지 선택한다.
|
|
4
|
+
* 날짜/리마인더를 골라도 팝오버는 열려 있고, 바깥 클릭으로 닫는다.
|
|
5
|
+
*/
|
|
6
|
+
import type { TaskBoxReminder } from "../types";
|
|
7
|
+
/**
|
|
8
|
+
* 시각 기반 리마인더 선택지다(시각이 있는 일정 전용 — 종일 일정·업무는 기준 시각이 없어 계산되지 않는다).
|
|
9
|
+
* 스케줄러가 5분 간격으로 돌아 최대 5분 오차로 발송된다.
|
|
10
|
+
*/
|
|
11
|
+
export declare const TIME_REMINDER_OPTIONS: {
|
|
12
|
+
value: TaskBoxReminder;
|
|
13
|
+
label: string;
|
|
14
|
+
}[];
|
|
15
|
+
/** 날짜 기반 리마인더 선택지다(업무·일정 공통 — 발송은 그날 오전 9시). */
|
|
16
|
+
export declare const DATE_REMINDER_OPTIONS: {
|
|
17
|
+
value: TaskBoxReminder;
|
|
18
|
+
label: string;
|
|
19
|
+
}[];
|
|
20
|
+
/** 리마인더 선택지다(노션의 리마인더 줄과 동일한 감각).
|
|
21
|
+
* "당일" 은 마감 당일 오전 9시 기본 알림이 항상 나가면서 중복이라 제거했다(2026-08-04 — 저장된 레거시 값은 표시만 유지). */
|
|
22
|
+
export declare const REMINDER_OPTIONS: {
|
|
23
|
+
value: TaskBoxReminder;
|
|
24
|
+
label: string;
|
|
25
|
+
}[];
|
|
26
|
+
/**
|
|
27
|
+
* 상황에 맞는 리마인더 선택지를 만든다.
|
|
28
|
+
* 시각이 없으면(업무·종일 일정) 기준 시각이 없어 시각 기반 항목을 감춘다.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getReminderOptions(hasTime: boolean): {
|
|
31
|
+
value: TaskBoxReminder;
|
|
32
|
+
label: string;
|
|
33
|
+
}[];
|
|
34
|
+
/** 리마인더 값의 표시 라벨을 돌려준다(선택지에서 뺀 레거시 "당일" 도 표시는 유지한다). */
|
|
35
|
+
export declare function getReminderLabel(reminder: TaskBoxReminder): string;
|
|
36
|
+
export interface DueDatePickerPopoverProps {
|
|
37
|
+
anchorEl: HTMLElement | null;
|
|
38
|
+
open: boolean;
|
|
39
|
+
date: string;
|
|
40
|
+
reminder: TaskBoxReminder;
|
|
41
|
+
hideReminder?: boolean;
|
|
42
|
+
centered?: boolean;
|
|
43
|
+
onClose: () => void;
|
|
44
|
+
onDateChange: (ymd: string) => void;
|
|
45
|
+
onReminderChange: (reminder: TaskBoxReminder) => void;
|
|
46
|
+
}
|
|
47
|
+
/** 마감기한 달력 + 리마인더 팝오버 컴포넌트다. */
|
|
48
|
+
export declare function DueDatePickerPopover({ anchorEl, open, date, reminder, hideReminder, centered, onClose, onDateChange, onReminderChange, }: DueDatePickerPopoverProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** 구글 캘린더 일정 칩이다(읽기 전용 — 주간/월간 캘린더 오버레이 공용). 클릭하면 구글 캘린더의 그 날짜를 연다. */
|
|
2
|
+
import type { TaskBoxGoogleEvent } from "../types";
|
|
3
|
+
export interface GoogleEventChipProps {
|
|
4
|
+
event: TaskBoxGoogleEvent;
|
|
5
|
+
small?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/** 구글 일정 칩 컴포넌트다 — 초록 점 + 시간·제목 한 줄(수정 없음, 클릭=구글 캘린더 일간 보기). */
|
|
8
|
+
export declare function GoogleEventChip({ event, small }: GoogleEventChipProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 그룹 기준 선택 텍스트 버튼이다(목록형 툴바용).
|
|
3
|
+
* "그룹: 마감기한" 텍스트를 누르면 메뉴가 열리고 기준을 고른다(셀렉트 박스 대신 노션풍 텍스트 메뉴).
|
|
4
|
+
*/
|
|
5
|
+
import type { TaskBoxGroupBy } from "../types";
|
|
6
|
+
export interface GroupByMenuButtonProps {
|
|
7
|
+
value: TaskBoxGroupBy;
|
|
8
|
+
onChange: (value: TaskBoxGroupBy) => void;
|
|
9
|
+
}
|
|
10
|
+
/** 그룹 기준 텍스트 메뉴 버튼 컴포넌트다. */
|
|
11
|
+
export declare function GroupByMenuButton({ value, onChange }: GroupByMenuButtonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** 프로젝트/업무 공용 아이콘 선택 그리드다(6열 — 추가 다이얼로그·상세 아이콘 팝오버에서 재사용). */
|
|
2
|
+
export interface IconPickerGridProps {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (key: string) => void;
|
|
5
|
+
}
|
|
6
|
+
/** 아이콘 선택 그리드 컴포넌트다 — 열 수를 고정하지 않고 컨테이너 폭에 맞춰 자연 줄바꿈된다(좁은 모바일 대응). */
|
|
7
|
+
export declare function IconPickerGrid({ value, onChange }: IconPickerGridProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 라벨 필터 메뉴다 — 라벨 사전(내장+커스텀, 라이선스 공유)에서 다중 선택한다(www 헤더 "라벨" 버튼 원본).
|
|
3
|
+
* 다중 선택 메뉴라 항목을 눌러도 닫히지 않고, "필터 해제"를 누르면 해제 후 닫힌다.
|
|
4
|
+
* 필터 판정은 소비처 몫이다 — 고른 라벨을 하나라도 가진 항목만 남긴다(비어 있으면 전체, 원본 matchesLabelFilter).
|
|
5
|
+
*/
|
|
6
|
+
import type { TaskBoxLabel } from "../types";
|
|
7
|
+
export interface LabelFilterMenuProps {
|
|
8
|
+
anchorEl: HTMLElement | null;
|
|
9
|
+
labelOptions: TaskBoxLabel[];
|
|
10
|
+
selectedKeys: string[];
|
|
11
|
+
onToggle: (key: string) => void;
|
|
12
|
+
onClear: () => void;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
}
|
|
15
|
+
/** 라벨 필터 메뉴 컴포넌트다. */
|
|
16
|
+
export declare function LabelFilterMenu({ anchorEl, labelOptions, selectedKeys, onToggle, onClear, onClose, }: LabelFilterMenuProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 라벨 다중선택 메뉴다(상세 드로어 라벨 행).
|
|
3
|
+
* 체크로 여러 라벨을 켜고 끄며(선택해도 닫히지 않는다), 맨 아래 "+ 라벨 추가"로 커스텀 라벨을 만든다.
|
|
4
|
+
*/
|
|
5
|
+
import type { TaskBoxLabel } from "../types";
|
|
6
|
+
export interface LabelSelectMenuProps {
|
|
7
|
+
anchorEl: HTMLElement | null;
|
|
8
|
+
selectedKeys: string[];
|
|
9
|
+
labelOptions: TaskBoxLabel[];
|
|
10
|
+
onToggle: (key: string) => void;
|
|
11
|
+
onAddLabel: (name: string, color: string) => void;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
}
|
|
14
|
+
/** 라벨 다중선택 메뉴 컴포넌트다. */
|
|
15
|
+
export declare function LabelSelectMenu({ anchorEl, selectedKeys, labelOptions, onToggle, onAddLabel, onClose, }: LabelSelectMenuProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 책임자/참조자 필터 체크 메뉴다(표 th 클릭·캘린더 헤더 버튼 공용).
|
|
3
|
+
* 직원 전체 트리 대신 현재 목록에 실제로 등장하는 사람 집합에서 다중 체크로 거른다.
|
|
4
|
+
*/
|
|
5
|
+
/** 필터 후보 한 사람이다(현재 목록에 등장하는 책임자/참조자). */
|
|
6
|
+
export interface MemberFilterCandidate {
|
|
7
|
+
name: string;
|
|
8
|
+
accountSeq: number;
|
|
9
|
+
}
|
|
10
|
+
export interface MemberFilterMenuProps {
|
|
11
|
+
anchorEl: HTMLElement | null;
|
|
12
|
+
candidates: MemberFilterCandidate[];
|
|
13
|
+
selectedNames: string[];
|
|
14
|
+
avatarSrcByName?: Map<string, string>;
|
|
15
|
+
onToggle: (candidate: MemberFilterCandidate) => void;
|
|
16
|
+
onClear: () => void;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
}
|
|
19
|
+
/** 책임자/참조자 필터 체크 메뉴 컴포넌트다. */
|
|
20
|
+
export declare function MemberFilterMenu({ anchorEl, candidates, selectedNames, avatarSrcByName, onToggle, onClear, onClose, }: MemberFilterMenuProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** 참조자/책임자 아바타 표시 공용 컴포넌트다(표 행·주간 캘린더 카드 공용). */
|
|
2
|
+
/** 아바타 배경 팔레트다(여러 명일 때 구분용, 순서 기준 순환). */
|
|
3
|
+
export declare const RECEIVER_AVATAR_COLORS: {
|
|
4
|
+
bgcolor: string;
|
|
5
|
+
color: string;
|
|
6
|
+
}[];
|
|
7
|
+
export interface ReceiverAvatarStackProps {
|
|
8
|
+
names: string[];
|
|
9
|
+
size?: number;
|
|
10
|
+
ringFirst?: boolean;
|
|
11
|
+
avatarSrcByName?: Map<string, string>;
|
|
12
|
+
}
|
|
13
|
+
/** 아바타를 살짝씩 겹쳐 표시하고 이름은 툴팁으로 안내한다(첫 번째=책임자 테두리 강조 옵션). */
|
|
14
|
+
export declare function ReceiverAvatarStack({ names, size, ringFirst, avatarSrcByName, }: ReceiverAvatarStackProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 목표(스프린트) 필터 메뉴다 — 전체/백로그/목표별 택일 + "목표 관리…" 진입(www 헤더 원본).
|
|
3
|
+
* 택일 메뉴라 항목을 고르면 닫힌다. 종료 목표도 회고용으로 계속 고를 수 있다(이름 뒤 표기).
|
|
4
|
+
* 라벨 표기는 utils/sprintLabel 의 formatSprintOptionLabel 을 쓴다.
|
|
5
|
+
*/
|
|
6
|
+
import type { TaskBoxCustomTab, TaskBoxSprint } from "../types";
|
|
7
|
+
export interface SprintFilterMenuProps {
|
|
8
|
+
anchorEl: HTMLElement | null;
|
|
9
|
+
sprints: TaskBoxSprint[];
|
|
10
|
+
customTabs: TaskBoxCustomTab[];
|
|
11
|
+
value: number;
|
|
12
|
+
onSelect: (value: number) => void;
|
|
13
|
+
onManage: () => void;
|
|
14
|
+
onCharts?: () => void;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
}
|
|
17
|
+
/** 목표(스프린트) 필터 메뉴 컴포넌트다. */
|
|
18
|
+
export declare function SprintFilterMenu(props: SprintFilterMenuProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 상태 택일 메뉴다(표 상태 칸·상세 드로어 공용).
|
|
3
|
+
* 시스템 고정 상태(시작전/진행중/보류/확인대기/확인완료) 중 하나를 고르면 바로 닫힌다.
|
|
4
|
+
*/
|
|
5
|
+
import type { TaskBoxLabel, TaskBoxStatus } from "../types";
|
|
6
|
+
export interface StatusSelectMenuProps {
|
|
7
|
+
anchorEl: HTMLElement | null;
|
|
8
|
+
value: string;
|
|
9
|
+
options?: (TaskBoxLabel & {
|
|
10
|
+
key: TaskBoxStatus;
|
|
11
|
+
})[];
|
|
12
|
+
onSelect: (status: TaskBoxStatus) => void;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
}
|
|
15
|
+
/** 상태 택일 메뉴 컴포넌트다. */
|
|
16
|
+
export declare function StatusSelectMenu({ anchorEl, value, options, onSelect, onClose }: StatusSelectMenuProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 공지 확인자 목록 팝오버다 — 표/카드의 "n/m" 집계를 클릭하면 누가 언제 확인했는지 보여준다.
|
|
3
|
+
* 모바일에서는 앵커 대신 화면 중앙에 띄운다(useCenteredMenuProps 와 같은 좌표 정책).
|
|
4
|
+
*/
|
|
5
|
+
import type { TaskBoxAck } from "../types";
|
|
6
|
+
export interface TaskAckListPopoverProps {
|
|
7
|
+
anchorEl: HTMLElement | null;
|
|
8
|
+
open: boolean;
|
|
9
|
+
acks: TaskBoxAck[];
|
|
10
|
+
total: number;
|
|
11
|
+
avatarSrcByName?: Map<string, string>;
|
|
12
|
+
onRequestConfirm?: () => void;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
}
|
|
15
|
+
/** 공지 확인자 목록 팝오버 컴포넌트다. */
|
|
16
|
+
export declare function TaskAckListPopover({ anchorEl, open, acks, total, avatarSrcByName, onRequestConfirm, onClose, }: TaskAckListPopoverProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 업무함 상단 탭이다 — 탭 목록(items)을 밖에서 받아 그린다(앱이 탭 구성을 소유한다).
|
|
3
|
+
* 탭은 배타적 분류가 아니라 관점별 조회다 — 한 업무가 여러 탭에 나올 수 있다.
|
|
4
|
+
* mfd(FormDialog) 상단탭 스타일 — 흰 배경 탭이 Paper 위에 얹히고,
|
|
5
|
+
* 선택된 탭은 검정 배경 + 흰 글씨로 표시한다(인디케이터 없음).
|
|
6
|
+
*/
|
|
7
|
+
import type { ReactElement } from "react";
|
|
8
|
+
/** 탭 한 항목 정의다(아이콘·건수 숨김은 선택 — 스타일/배지 로직은 www 원본과 동일하게 동작한다). */
|
|
9
|
+
export interface TaskBoxTabItem {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
icon?: ReactElement;
|
|
13
|
+
hideCount?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 기본 탭 세트다(www 원본 TAB_ITEMS 계승 — 탭 구성을 직접 만들지 않는 소비처용 사전).
|
|
17
|
+
* 컴포넌트는 items 주입형 그대로다 — 필요 없는 탭은 이 배열에서 골라 쓰면 된다.
|
|
18
|
+
*/
|
|
19
|
+
export declare const DEFAULT_TASKBOX_TAB_ITEMS: TaskBoxTabItem[];
|
|
20
|
+
export interface TaskBoxTabsProps {
|
|
21
|
+
items: TaskBoxTabItem[];
|
|
22
|
+
activeTab: string;
|
|
23
|
+
counts: Record<string, number>;
|
|
24
|
+
onChange: (id: string) => void;
|
|
25
|
+
compact?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** 업무함 상단 탭 컴포넌트다. */
|
|
28
|
+
export declare function TaskBoxTabs({ items, activeTab, counts, onChange, compact }: TaskBoxTabsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 업무 우클릭 컨텍스트 메뉴다 — 상세/완료/확인요청/속성 수정/복제/공유/목표/보관/삭제(표·카드·타임라인 공용).
|
|
3
|
+
* 열림 대상(target=업무+좌표)은 소비처가 props 로 소유하고,
|
|
4
|
+
* 마감기한 팝오버·프로젝트/목표 서브메뉴는 컴포넌트 내부 상태로 연다.
|
|
5
|
+
* 권한 잠금(공지=작성자만, 일반 업무=관여자만)·조건 노출·모바일 중앙 배치는 www 원본(Layout.tsx)과 동일하다.
|
|
6
|
+
*/
|
|
7
|
+
import type { TaskBoxCustomTab, TaskBoxItem, TaskBoxMemberField, TaskBoxReminder, TaskBoxSprint } from "../types";
|
|
8
|
+
/** 우클릭 메뉴 열림 대상이다 — 대상 업무 + 우클릭 좌표(null 이면 닫힘). */
|
|
9
|
+
export interface TaskContextMenuTarget {
|
|
10
|
+
task: TaskBoxItem;
|
|
11
|
+
position: {
|
|
12
|
+
left: number;
|
|
13
|
+
top: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface TaskContextMenuProps {
|
|
17
|
+
target: TaskContextMenuTarget | null;
|
|
18
|
+
onClose: () => void;
|
|
19
|
+
customTabs: TaskBoxCustomTab[];
|
|
20
|
+
sprints?: TaskBoxSprint[];
|
|
21
|
+
myAccountSeq?: number;
|
|
22
|
+
onOpenDetail: (task: TaskBoxItem) => void;
|
|
23
|
+
onToggleCompleted: (taskSeq: number, completed: boolean) => void;
|
|
24
|
+
onRequestConfirm?: (task: TaskBoxItem) => void;
|
|
25
|
+
onChangeDueDate: (taskSeq: number, ymd: string) => void;
|
|
26
|
+
onChangeReminder?: (taskSeq: number, reminder: TaskBoxReminder) => void;
|
|
27
|
+
onMemberEdit?: (task: TaskBoxItem, field: TaskBoxMemberField) => void;
|
|
28
|
+
onMoveProject: (taskSeq: number, tabKey: string) => void;
|
|
29
|
+
onDuplicate?: (taskSeq: number) => void;
|
|
30
|
+
onCreateFollowUp?: (taskSeq: number) => void;
|
|
31
|
+
onShare?: (task: TaskBoxItem) => void;
|
|
32
|
+
onAssignSprint?: (taskSeq: number, sprintSeq: number) => void;
|
|
33
|
+
onArchiveToggle: (taskSeq: number, archived: boolean) => void;
|
|
34
|
+
onDelete: (taskSeq: number) => void;
|
|
35
|
+
}
|
|
36
|
+
/** 업무 우클릭 컨텍스트 메뉴 컴포넌트다. */
|
|
37
|
+
export declare function TaskContextMenu({ target, onClose, customTabs, sprints, myAccountSeq, onOpenDetail, onToggleCompleted, onRequestConfirm, onChangeDueDate, onChangeReminder, onMemberEdit, onMoveProject, onDuplicate, onCreateFollowUp, onShare, onAssignSprint, onArchiveToggle, onDelete, }: TaskContextMenuProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 보관함·완료 탭 헤더의 기간 필터다 — 퀵버튼(1개월/3개월/6개월/1년/전체) + 직접 입력칸.
|
|
3
|
+
* 값은 filters.fromDate/toDate 이고 서버 목록 조회(완료일 기준)에 실려 간다.
|
|
4
|
+
*/
|
|
5
|
+
export interface TaskDateRangeFilterProps {
|
|
6
|
+
fromDate: string;
|
|
7
|
+
toDate: string;
|
|
8
|
+
onChange: (fromDate: string, toDate: string) => void;
|
|
9
|
+
}
|
|
10
|
+
/** 기간 필터 컴포넌트다. */
|
|
11
|
+
export declare function TaskDateRangeFilter({ fromDate, toDate, onChange }: TaskDateRangeFilterProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** 업무 아이콘 선택 팝오버다(상세·등록 드로어 공용) — 프로젝트 아이콘 픽커 그리드를 10열로 재사용하고,
|
|
2
|
+
* 하단에 아이콘 색상 스와치 한 줄을 늘어놓는다. 색을 고르면 바로 반영되고 팝오버는 열려 있는다. */
|
|
3
|
+
export interface TaskIconPickerPopoverProps {
|
|
4
|
+
anchorEl: HTMLElement | null;
|
|
5
|
+
value: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
onSelect: (key: string) => void;
|
|
8
|
+
onSelectColor?: (hex: string) => void;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}
|
|
11
|
+
/** 업무 아이콘 선택 팝오버 컴포넌트다. */
|
|
12
|
+
export declare function TaskIconPickerPopover({ anchorEl, value, color, onSelect, onSelectColor, onClose, }: TaskIconPickerPopoverProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** 업무 중요도(높음/중간/낮음) 알약 칩이다(주간 캘린더 카드·표 공용). */
|
|
2
|
+
import type { TaskBoxPriority } from "../types";
|
|
3
|
+
export interface TaskPriorityChipProps {
|
|
4
|
+
priority: TaskBoxPriority;
|
|
5
|
+
small?: boolean;
|
|
6
|
+
plain?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** 중요도 알약 칩 컴포넌트다. */
|
|
9
|
+
export declare function TaskPriorityChip({ priority, small, plain }: TaskPriorityChipProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** 업무 상태(택일)·라벨(복수) 칩이다(표 행·카드·드로어 공용) — 사전 항목 색으로 그린다. */
|
|
2
|
+
import type { TaskBoxItem, TaskBoxLabel } from "../types";
|
|
3
|
+
export interface TaskStatusChipProps {
|
|
4
|
+
option: TaskBoxLabel;
|
|
5
|
+
small?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/** 상태 알약 칩 컴포넌트다(사전 항목의 점/배경/글자색). */
|
|
8
|
+
export declare function TaskStatusChip({ option, small }: TaskStatusChipProps): import("react").JSX.Element;
|
|
9
|
+
export interface TaskStatusChipsProps {
|
|
10
|
+
task: Pick<TaskBoxItem, "status" | "label_keys"> & {
|
|
11
|
+
is_notice?: boolean;
|
|
12
|
+
is_event?: boolean;
|
|
13
|
+
completed?: boolean;
|
|
14
|
+
};
|
|
15
|
+
statusOptions: TaskBoxLabel[];
|
|
16
|
+
small?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/** 업무의 상태(1개)+라벨들을 칩 나열로 그린다(사전에 없는 라벨 키는 생략). */
|
|
19
|
+
export declare function TaskStatusChips({ task, statusOptions, small }: TaskStatusChipsProps): import("react").JSX.Element | null;
|
|
20
|
+
export interface TaskLabelChipsProps {
|
|
21
|
+
labelKeys: string[];
|
|
22
|
+
labelOptions: TaskBoxLabel[];
|
|
23
|
+
}
|
|
24
|
+
/** 업무의 라벨만 작은 칩으로 나열한다 — 표 업무내용 아래 줄에 쓴다. */
|
|
25
|
+
export declare function TaskLabelChips({ labelKeys, labelOptions }: TaskLabelChipsProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 드래그 가능한 할일 카드다(주간 캘린더·그룹 보드 공용).
|
|
3
|
+
* 카드 전체가 드래그 핸들이고, 드래그 중엔 반투명 자리표시로 남는다(실물은 DragOverlay).
|
|
4
|
+
* variant="card" 는 테두리 카드(그룹 보드), "list" 는 구분선만 있는 목록 행(주간 캘린더)이다.
|
|
5
|
+
*/
|
|
6
|
+
import type { TaskBoxItem, TaskBoxLabel } from "../types";
|
|
7
|
+
import { type ArchiveConfirmTarget } from "./TaskCardContent";
|
|
8
|
+
export interface SortableTaskCardProps {
|
|
9
|
+
task: TaskBoxItem;
|
|
10
|
+
statusOptions: TaskBoxLabel[];
|
|
11
|
+
variant?: "card" | "list";
|
|
12
|
+
showDueDate?: boolean;
|
|
13
|
+
onRequestArchiveToggle: (target: ArchiveConfirmTarget) => void;
|
|
14
|
+
onRequestReply?: (task: TaskBoxItem) => void;
|
|
15
|
+
onDueDateClick?: (task: TaskBoxItem, anchorEl: HTMLElement) => void;
|
|
16
|
+
onCardClick?: (task: TaskBoxItem) => void;
|
|
17
|
+
onCardContextMenu?: (task: TaskBoxItem, event: React.MouseEvent) => void;
|
|
18
|
+
titleFontSize?: number;
|
|
19
|
+
}
|
|
20
|
+
/** 드래그 가능한 할일 카드 컴포넌트다. */
|
|
21
|
+
export declare function SortableTaskCard({ task, statusOptions, variant, showDueDate, onRequestArchiveToggle, onRequestReply, onDueDateClick, onCardClick, onCardContextMenu, titleFontSize, }: SortableTaskCardProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 업무함 모바일 카드 1장이다(TaskBoxMobileList 의 행).
|
|
3
|
+
* 제목줄(완료 동그라미 체크 + 업무내용) 아래에 "사각 라벨칩(왼쪽) + 내용(오른쪽)" 행을 나열해
|
|
4
|
+
* 축약 없이 자세히 보여준다. 탭=상세 드로어, 길게 누르기=팝업 메뉴, 체크=완료 토글(확인 후 적용).
|
|
5
|
+
*/
|
|
6
|
+
import type { NoticeAckInfo } from "../utils/noticeTargets";
|
|
7
|
+
import type { TaskBoxItem, TaskBoxLabel } from "../types";
|
|
8
|
+
import type { ArchiveConfirmTarget } from "./TaskCardContent";
|
|
9
|
+
export interface TaskBoxMobileCardProps {
|
|
10
|
+
task: TaskBoxItem;
|
|
11
|
+
statusOptions: TaskBoxLabel[];
|
|
12
|
+
projectLabel: string;
|
|
13
|
+
searchText: string;
|
|
14
|
+
todayStr: string;
|
|
15
|
+
onRequestToggleCompleted: (target: ArchiveConfirmTarget) => void;
|
|
16
|
+
onOpenDetail: (task: TaskBoxItem) => void;
|
|
17
|
+
onTaskContextMenu: (task: TaskBoxItem, event: React.MouseEvent) => void;
|
|
18
|
+
targetSummary?: string;
|
|
19
|
+
ackInfo?: NoticeAckInfo;
|
|
20
|
+
completeLocked?: boolean;
|
|
21
|
+
unread?: boolean;
|
|
22
|
+
noticeReadOnly?: boolean;
|
|
23
|
+
onAckConfirm?: (task: TaskBoxItem) => void;
|
|
24
|
+
onAckListClick?: (task: TaskBoxItem, anchorEl: HTMLElement) => void;
|
|
25
|
+
myManaged?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** 업무함 모바일 카드 컴포넌트다. */
|
|
28
|
+
export declare function TaskBoxMobileCard({ task, statusOptions, projectLabel, searchText, todayStr, onRequestToggleCompleted, onOpenDetail, onTaskContextMenu, targetSummary, ackInfo, completeLocked, unread, noticeReadOnly, onAckConfirm, onAckListClick, myManaged, }: TaskBoxMobileCardProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 할일 카드 본문이다(주간 캘린더·그룹 보드 공용).
|
|
3
|
+
* 완료 체크박스+제목 / 상태 칩 / 책임자·참조자 아바타 / 중요도 칩으로 구성된다.
|
|
4
|
+
*/
|
|
5
|
+
import type { TaskBoxItem, TaskBoxLabel } from "../types";
|
|
6
|
+
/** 카드 공통 스타일이다(목록 카드/드래그 오버레이 공용). */
|
|
7
|
+
export declare const CARD_BASE_SX: {
|
|
8
|
+
readonly border: "1px solid #dedddb";
|
|
9
|
+
readonly borderRadius: 1;
|
|
10
|
+
readonly p: 1;
|
|
11
|
+
readonly bgcolor: "#fff";
|
|
12
|
+
readonly display: "flex";
|
|
13
|
+
readonly flexDirection: "column";
|
|
14
|
+
readonly gap: 0.75;
|
|
15
|
+
readonly boxShadow: "0 1px 2px rgba(0,0,0,0.04)";
|
|
16
|
+
};
|
|
17
|
+
/** 완료 체크 확인 팝퍼 대상이다. */
|
|
18
|
+
export interface ArchiveConfirmTarget {
|
|
19
|
+
anchorEl: HTMLElement;
|
|
20
|
+
taskSeq: number;
|
|
21
|
+
nextCompleted: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface TaskCardContentProps {
|
|
24
|
+
task: TaskBoxItem;
|
|
25
|
+
statusOptions: TaskBoxLabel[];
|
|
26
|
+
showDueDate?: boolean;
|
|
27
|
+
onRequestArchiveToggle?: (target: ArchiveConfirmTarget) => void;
|
|
28
|
+
onRequestReply?: (task: TaskBoxItem) => void;
|
|
29
|
+
onDueDateClick?: (task: TaskBoxItem, anchorEl: HTMLElement) => void;
|
|
30
|
+
titleFontSize?: number;
|
|
31
|
+
}
|
|
32
|
+
/** 할일 카드 본문 컴포넌트다. */
|
|
33
|
+
export declare function TaskCardContent({ task, statusOptions, showDueDate, onRequestArchiveToggle, onRequestReply, onDueDateClick, titleFontSize, }: TaskCardContentProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 번다운 차트다 — 한 목표(스프린트)의 남은 스토리 포인트를 날짜별 꺾은선으로 보여준다(SVG 자체 렌더).
|
|
3
|
+
* 별도 스냅샷 없이 완료 시각(completed_time) 역산으로 근사한다:
|
|
4
|
+
* 시작 시 총량에서 각 날짜까지 완료된 업무의 SP 를 차감(완료 시각이 없는 완료 업무는 시작일 완료로 간주).
|
|
5
|
+
* SP 를 아무도 안 쓰면(총 SP 0) 업무 건수로 자동 대체한다. 이상선(회색 점선)은 총량→0 직선이다.
|
|
6
|
+
*/
|
|
7
|
+
import type { TaskBoxItem, TaskBoxSprint } from "../types";
|
|
8
|
+
/** 번다운 차트 props 다. */
|
|
9
|
+
export interface SprintBurndownChartProps {
|
|
10
|
+
sprint: TaskBoxSprint;
|
|
11
|
+
tasks: TaskBoxItem[];
|
|
12
|
+
todayStr: string;
|
|
13
|
+
height?: number;
|
|
14
|
+
}
|
|
15
|
+
/** 번다운 차트 컴포넌트다. */
|
|
16
|
+
export declare function SprintBurndownChart({ sprint, tasks, todayStr, height }: SprintBurndownChartProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 벨로시티 차트다 — 목표(스프린트)별로 완료한 스토리 포인트 합을 막대로 보여준다(외부 차트 라이브러리 없이 div 막대).
|
|
3
|
+
* SP 를 아무도 안 쓰면(전 목표 SP 합 0) 완료 업무 건수로 자동 대체한다.
|
|
4
|
+
*/
|
|
5
|
+
import type { TaskBoxItem, TaskBoxSprint } from "../types";
|
|
6
|
+
/** 벨로시티 차트 props 다. */
|
|
7
|
+
export interface SprintVelocityChartProps {
|
|
8
|
+
sprints: TaskBoxSprint[];
|
|
9
|
+
tasks: TaskBoxItem[];
|
|
10
|
+
height?: number;
|
|
11
|
+
}
|
|
12
|
+
/** 벨로시티 차트 컴포넌트다. */
|
|
13
|
+
export declare function SprintVelocityChart({ sprints, tasks, height }: SprintVelocityChartProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** 프로젝트 아이콘 선택지 정의다(추가/수정 다이얼로그의 픽커와 보드 컬럼 헤더가 공용으로 쓴다). */
|
|
2
|
+
import type { SvgIconComponent } from "@mui/icons-material";
|
|
3
|
+
/** 기본 프로젝트 아이콘 키다. */
|
|
4
|
+
export declare const DEFAULT_PROJECT_ICON = "bookmark";
|
|
5
|
+
/** 일반 업무 기본 아이콘 키다(라벨 아이콘). */
|
|
6
|
+
export declare const DEFAULT_TASK_ICON = "label";
|
|
7
|
+
/** 공지 등록 기본 아이콘 키다(알림 종 아이콘). */
|
|
8
|
+
export declare const NOTICE_TASK_ICON = "notifications";
|
|
9
|
+
/** 오류 등록 기본 아이콘 키다(경고 아이콘). */
|
|
10
|
+
export declare const BUG_TASK_ICON = "warning";
|
|
11
|
+
/** 오류 기본 아이콘 색이다(빨강 — 오류 탭 아이콘과 같은 계열). */
|
|
12
|
+
export declare const BUG_ICON_COLOR = "#e53e3e";
|
|
13
|
+
/** 아이콘 없음 키다(픽커 첫 칸 — 선택하면 목록/카드에 아이콘을 그리지 않는다). */
|
|
14
|
+
export declare const NO_TASK_ICON = "none";
|
|
15
|
+
/** 프로젝트 아이콘 선택지 목록이다(키는 저장값, 순서는 픽커 표시 순서 — 첫 칸은 아이콘 없음). */
|
|
16
|
+
export declare const PROJECT_ICON_OPTIONS: {
|
|
17
|
+
key: string;
|
|
18
|
+
Icon: SvgIconComponent;
|
|
19
|
+
}[];
|
|
20
|
+
/** 아이콘 키로 아이콘 컴포넌트를 찾는다(모르는 키는 기본 북마크, "none"=아이콘 없음 → null). */
|
|
21
|
+
export declare function getProjectIconComponent(key: string | undefined): SvgIconComponent | null;
|
|
22
|
+
/** 아이콘 키로 앵커 표시용 컴포넌트를 찾는다 — "아이콘 없음"도 픽커를 다시 열 자리(금지 아이콘)를 그린다(드로어 헤더 전용). */
|
|
23
|
+
export declare function getProjectIconAnchorComponent(key: string | undefined): SvgIconComponent;
|