@ehfuse/taskbox 0.6.3 → 0.7.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.
Files changed (63) hide show
  1. package/dist/atoms/TaskMembersDialog.d.ts +4 -4
  2. package/dist/board/TaskCardContent.d.ts +3 -3
  3. package/dist/chunks/muiIconCatalog-IM2VBIZU.js +2 -0
  4. package/dist/chunks/muiIconCatalog-IM2VBIZU.js.map +7 -0
  5. package/dist/controllers/addLabelController.d.ts +25 -0
  6. package/dist/controllers/addTabController.d.ts +27 -0
  7. package/dist/controllers/calendarLinkController.d.ts +37 -0
  8. package/dist/controllers/employeeSelectController.d.ts +37 -0
  9. package/dist/controllers/googleEventController.d.ts +56 -0
  10. package/dist/controllers/sprintChartsController.d.ts +41 -0
  11. package/dist/controllers/sprintCloseController.d.ts +37 -0
  12. package/dist/controllers/sprintManageController.d.ts +57 -0
  13. package/dist/controllers/taskActivityController.d.ts +25 -0
  14. package/dist/controllers/taskContentTranslateController.d.ts +37 -0
  15. package/dist/controllers/taskCreateController.d.ts +88 -0
  16. package/dist/controllers/taskDetailController.d.ts +49 -0
  17. package/dist/controllers/taskLinkController.d.ts +28 -0
  18. package/dist/controllers/taskMembersController.d.ts +20 -0
  19. package/dist/controllers/taskRuleController.d.ts +76 -0
  20. package/dist/controllers/taskTemplateManageController.d.ts +68 -0
  21. package/dist/controllers/taskTemplateRunController.d.ts +32 -0
  22. package/dist/controllers/taskboxHelpController.d.ts +30 -0
  23. package/dist/controllers/useControlledModal.d.ts +22 -0
  24. package/dist/controllers/usePropSyncedModal.d.ts +36 -0
  25. package/dist/controllers/workloadCapacityController.d.ts +33 -0
  26. package/dist/controllers/workloadPersonTasksController.d.ts +21 -0
  27. package/dist/dialogs/AddLabelDialog.d.ts +4 -1
  28. package/dist/dialogs/AddTabDialog.d.ts +1 -0
  29. package/dist/dialogs/CalendarLinkDialog.d.ts +2 -1
  30. package/dist/dialogs/EmployeeSelectDialog.d.ts +1 -0
  31. package/dist/dialogs/GoogleEventDialog.d.ts +2 -1
  32. package/dist/dialogs/ShortcutHelpDialog.d.ts +1 -0
  33. package/dist/dialogs/SprintChartsDialog.d.ts +1 -0
  34. package/dist/dialogs/SprintCloseDialog.d.ts +3 -8
  35. package/dist/dialogs/SprintManageDialog.d.ts +1 -0
  36. package/dist/dialogs/TaskActivityDialog.d.ts +5 -8
  37. package/dist/dialogs/TaskContentTranslateDialog.d.ts +5 -5
  38. package/dist/dialogs/TaskLinkDialog.d.ts +6 -6
  39. package/dist/dialogs/TaskRuleManageDialog.d.ts +1 -0
  40. package/dist/dialogs/TaskTemplateManageDialog.d.ts +2 -0
  41. package/dist/dialogs/TaskTemplateRunDialog.d.ts +2 -1
  42. package/dist/dialogs/WorkloadCapacityDialog.d.ts +1 -0
  43. package/dist/dialogs/WorkloadPersonTasksDialog.d.ts +1 -0
  44. package/dist/drawers/TaskCreateBody.d.ts +2 -2
  45. package/dist/drawers/TaskCreateDrawer.d.ts +2 -1
  46. package/dist/drawers/TaskDetailDrawer.d.ts +1 -0
  47. package/dist/index.d.ts +2 -0
  48. package/dist/index.esm.js +15 -15
  49. package/dist/index.esm.js.map +4 -4
  50. package/dist/index.js +43 -43
  51. package/dist/index.js.map +4 -4
  52. package/dist/internal/ConfirmActionPopper.d.ts +24 -9
  53. package/dist/state/useTaskboxForm.d.ts +5 -3
  54. package/package.json +1 -1
  55. package/dist/dialogs/manual/sections/checklist.d.ts +0 -4
  56. package/dist/dialogs/manual/sections/confirm.d.ts +0 -4
  57. package/dist/dialogs/manual/sections/filters.d.ts +0 -4
  58. package/dist/dialogs/manual/sections/projects.d.ts +0 -4
  59. package/dist/dialogs/manual/sections/tasks.d.ts +0 -4
  60. package/dist/dialogs/manual/sections/views.d.ts +0 -4
  61. package/dist/internal/a11y.d.ts +0 -26
  62. package/dist/internal/editorHeightStore.d.ts +0 -11
  63. package/dist/sections/TaskActivitySection.d.ts +0 -15
@@ -1,9 +1,24 @@
1
- /**
2
- * 공통 확인 UI 다 — 구현은 `@ehfuse/mui-confirm-action` 패키지가 갖는다.
3
- * 여기서는 taskbox 의 모바일 판정(TaskboxProvider `isMobile` 우선)만 얹어 넘긴다.
4
- * (예전에는 www·taskbox·mua-ui 가 각자 사본을 들고 있어 수정이 한쪽에만 들어가는 일이 잦았다.)
5
- */
6
- import type { ConfirmActionPopperProps } from "@ehfuse/mui-confirm-action";
7
- export type { ConfirmActionPopperProps };
8
- /** 확인 UI 를 taskbox 의 모바일 판정으로 렌더링한다. */
9
- export declare function ConfirmActionPopper(props: ConfirmActionPopperProps): import("react").JSX.Element;
1
+ /** 공통 확인 UI 다(www components/ui/ConfirmActionPopper 사본). 데스크탑=앵커 팝퍼, 모바일=중앙 다이얼로그. */
2
+ import type { ReactNode } from "react";
3
+ import type { PopperProps } from "@mui/material/Popper";
4
+ /** ConfirmActionPopper 속성이다. */
5
+ interface ConfirmActionPopperProps {
6
+ open: boolean;
7
+ anchorEl: HTMLElement | null;
8
+ title?: ReactNode;
9
+ content?: ReactNode;
10
+ confirmText?: string;
11
+ cancelText?: string;
12
+ placement?: PopperProps["placement"];
13
+ minWidth?: number;
14
+ minHeight?: number;
15
+ titleFontSize?: number;
16
+ actionFontSize?: number;
17
+ actionMinHeight?: number;
18
+ zIndex?: number;
19
+ onCancel: () => void;
20
+ onConfirm: () => void;
21
+ }
22
+ /** 공통 확인 UI 를 렌더링한다. */
23
+ export declare function ConfirmActionPopper({ open, anchorEl, title, content, confirmText, cancelText, placement, minWidth, minHeight, titleFontSize, actionFontSize, actionMinHeight, zIndex, onCancel, onConfirm, }: ConfirmActionPopperProps): import("react").JSX.Element;
24
+ export {};
@@ -2,6 +2,8 @@
2
2
  * 등록 폼 생성 훅이다 — forma `useGlobalForm<TaskBoxForm>` 래핑.
3
3
  * 폼 상태는 패키지가 소유·강제한다: 드로어의 `form` prop 타입이 이 훅의 반환형이라
4
4
  * 소비처가 useState 등 임의 구현으로 폼을 들 수 없다(입력칸별 leaf 구독 성능 보장).
5
+ * 검증·제출 잠금·드로어 닫기까지 갖춘 등록 흐름은 `useTaskCreateController` 가 이 훅 위에 얹는다 —
6
+ * 이 훅만 쓰면 검증·잠금은 소비처 몫이다(기존 조립 호환용 하위 진입점).
5
7
  */
6
8
  import { type UseGlobalFormReturn } from "@ehfuse/forma";
7
9
  import type { TaskBoxForm } from "../types/form";
@@ -13,10 +15,10 @@ export interface UseTaskboxFormOptions {
13
15
  formId?: string;
14
16
  /** 폼 기본값 부분 오버라이드(공지 프리셋 등). */
15
17
  initialValues?: Partial<TaskBoxForm>;
16
- /** 추가 검증(기본 검증: 제목 필수는 드로어가 수행). false 반환 시 제출 중단. */
18
+ /** 검증(이 훅은 기본 검증이 없다 — 기본 검증은 `useTaskCreateController`). false 반환 시 제출 중단. */
17
19
  onValidate?: (values: TaskBoxForm) => boolean | Promise<boolean>;
18
- /** 제출 처리(서버 저장은 소비처 몫). */
19
- onSubmit: (values: TaskBoxForm) => void | Promise<void>;
20
+ /** 제출 처리(서버 저장은 소비처 몫). false 를 돌려주면 forma 가 제출 실패로 본다(void 반환 기존 호출도 그대로 된다). */
21
+ onSubmit: (values: TaskBoxForm) => Promise<boolean | void> | boolean | void;
20
22
  }
21
23
  /** 등록 폼을 만든다 — 기본값(defaults) 내장, `onSubmit` 만 넘기면 된다. */
22
24
  export declare function useTaskboxForm(options: UseTaskboxFormOptions): TaskboxCreateForm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.6.3",
3
+ "version": "0.7.0",
4
4
  "description": "A React/MUI task inbox component with notices, per-user assignments, read tracking, and mobile card UI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,4 +0,0 @@
1
- /** 매뉴얼 "할일" 섹션이다. */
2
- import type { ManualSection } from "../types";
3
- /** "할일" 섹션 데이터다. */
4
- export declare const checklistSection: ManualSection;
@@ -1,4 +0,0 @@
1
- /** 매뉴얼 "확인·알림" 섹션이다. */
2
- import type { ManualSection } from "../types";
3
- /** "확인·알림" 섹션 데이터다. */
4
- export declare const confirmSection: ManualSection;
@@ -1,4 +0,0 @@
1
- /** 매뉴얼 "검색·필터" 섹션이다. */
2
- import type { ManualSection } from "../types";
3
- /** "검색·필터" 섹션 데이터다. */
4
- export declare const filtersSection: ManualSection;
@@ -1,4 +0,0 @@
1
- /** 매뉴얼 "프로젝트·목표" 섹션이다. */
2
- import type { ManualSection } from "../types";
3
- /** "프로젝트·목표" 섹션 데이터다. */
4
- export declare const projectsSection: ManualSection;
@@ -1,4 +0,0 @@
1
- /** 매뉴얼 "업무" 섹션이다. */
2
- import type { ManualSection } from "../types";
3
- /** "업무" 섹션 데이터다. */
4
- export declare const tasksSection: ManualSection;
@@ -1,4 +0,0 @@
1
- /** 매뉴얼 "보기" 섹션이다. */
2
- import type { ManualSection } from "../types";
3
- /** "보기" 섹션 데이터다. */
4
- export declare const viewsSection: ManualSection;
@@ -1,26 +0,0 @@
1
- /**
2
- * 접근성 보조 유틸이다 — 마우스로만 열리던 칸을 키보드로도 열 수 있게 만든다.
3
- *
4
- * 업무함 표는 `<table>` 이 아니라 CSS grid 위의 div 다. 그 위에 table 역할(role)을 씌우면
5
- * 가상화(react-virtuoso)가 끼워 넣는 래퍼 div 때문에 행·셀의 부모-자식 관계가 끊겨
6
- * 스크린리더가 오히려 더 잘못 읽는다. 그래서 구조 역할은 손대지 않고,
7
- * **초점(tab)·활성화(Enter/Space)·이름(aria-label)** 세 가지만 붙인다 — 여기서 얻는 것이 가장 크다.
8
- */
9
- import type { KeyboardEvent } from "react";
10
- /** 키보드로 열 수 있는 칸에 붙일 props 다. */
11
- export interface InteractiveProps {
12
- role: "button";
13
- tabIndex: 0;
14
- "aria-label": string;
15
- "aria-haspopup"?: "menu" | "dialog" | "listbox" | "true";
16
- onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
17
- }
18
- /** 칸을 키보드로도 열 수 있게 하는 props 를 만든다(잠긴 칸이면 아무것도 붙이지 않는다). */
19
- export declare function interactiveProps(options: {
20
- label: string;
21
- onActivate: (element: HTMLElement) => void;
22
- disabled?: boolean;
23
- haspopup?: "menu" | "dialog" | "listbox" | "true";
24
- }): InteractiveProps | Record<string, never>;
25
- /** 정렬 상태를 말로 풀어 준다(헤더 이름 뒤에 붙여 읽힌다). */
26
- export declare function sortStateLabel(sorted: boolean, direction: "asc" | "desc"): string;
@@ -1,11 +0,0 @@
1
- /**
2
- * 내용 에디터 높이 기억 저장소다(기기 로컬).
3
- * 리사이즈 핸들로 늘린 높이는 업무 데이터가 아니라 보는 사람의 화면 취향이라
4
- * 서버에 저장(=수정 알림 발생)하지 않고 이 기기에만 남긴다.
5
- * 높이는 업무 단위로 기억하므로(업무마다 내용 분량이 다르다) 키가 계속 늘어난다 —
6
- * 오래 안 쓴 항목을 스스로 정리해 localStorage 가 무한정 커지지 않게 한다.
7
- */
8
- /** 저장된 에디터 높이를 읽는다(없거나 범위를 벗어나면 null). */
9
- export declare function loadEditorHeight(scope: string): number | null;
10
- /** 에디터 높이를 기억한다(범위를 벗어난 값은 저장하지 않는다). */
11
- export declare function saveEditorHeight(scope: string, height: number): void;
@@ -1,15 +0,0 @@
1
- /**
2
- * 상세 드로어의 활동로그(감사 이력) 섹션이다 — 누가 언제 무엇을 바꿨는지 시간순으로 보여준다.
3
- * 기본은 접힌 채이고, 펼칠 때 소비처가 서버에서 읽어 온다(닫힌 업무마다 이력을 미리 당기지 않는다).
4
- * 댓글은 여기 담지 않는다 — 댓글 섹션이 따로 있어 두 곳에 같은 글이 보이면 읽기 어렵다.
5
- */
6
- import type { TaskActivityItem } from "../types";
7
- /** 활동 섹션 props 다. */
8
- export interface TaskActivitySectionProps {
9
- taskSeq: number;
10
- items?: TaskActivityItem[];
11
- loading?: boolean;
12
- onExpand?: (taskSeq: number) => void;
13
- }
14
- /** 업무 활동로그 섹션 컴포넌트다. */
15
- export declare function TaskActivitySection({ taskSeq, items, loading, onExpand }: TaskActivitySectionProps): import("react").JSX.Element;