@ehfuse/taskbox 0.5.240 → 0.5.242

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.
@@ -0,0 +1,26 @@
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;
@@ -29,6 +29,7 @@ export interface TableTaskRowProps {
29
29
  confirmMode: TaskConfirmColumnMode;
30
30
  notice: boolean;
31
31
  bugMode: boolean;
32
+ trashMode?: boolean;
32
33
  dimCompleted?: boolean;
33
34
  readOnly?: boolean;
34
35
  onIconClick?: (task: TaskBoxItem, anchorEl: HTMLElement) => void;
@@ -27,6 +27,7 @@ export interface TaskBoxRowProps {
27
27
  showRequest?: boolean;
28
28
  confirmMode?: TaskConfirmColumnMode;
29
29
  bugMode?: boolean;
30
+ trashMode?: boolean;
30
31
  dimCompleted?: boolean;
31
32
  confirmInfo?: TaskConfirmInfo;
32
33
  onConfirmTask?: (task: TaskBoxItem) => void;
@@ -12,6 +12,7 @@ export interface TaskBoxColumnOptions {
12
12
  showRequest?: boolean;
13
13
  notice?: boolean;
14
14
  bug?: boolean;
15
+ trash?: boolean;
15
16
  confirmMode?: TaskConfirmColumnMode;
16
17
  }
17
18
  /**
@@ -146,4 +146,7 @@ export interface TaskBoxItem {
146
146
  completed_by?: string;
147
147
  completed_time?: string;
148
148
  archived: boolean;
149
+ deleted?: boolean;
150
+ deleted_time?: string;
151
+ deleted_by?: string;
149
152
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.5.240",
3
+ "version": "0.5.242",
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",
@@ -60,7 +60,7 @@
60
60
  "@dnd-kit/sortable": ">=8.0.0",
61
61
  "@dnd-kit/utilities": ">=3.0.0",
62
62
  "@ehfuse/alerts": ">=1.1.4",
63
- "@ehfuse/editor": ">=1.1.11",
63
+ "@ehfuse/editor": ">=1.1.12",
64
64
  "@ehfuse/forma": ">=3.4.0",
65
65
  "@ehfuse/keyboard-state": ">=1.1.1",
66
66
  "@ehfuse/mui-color-picker": ">=1.5.0",
@@ -94,13 +94,13 @@
94
94
  "@dnd-kit/sortable": "^10.0.0",
95
95
  "@dnd-kit/utilities": "^3.2.2",
96
96
  "@ehfuse/alerts": "^1.1.4",
97
- "@ehfuse/editor": "^1.1.11",
97
+ "@ehfuse/editor": "^1.1.13",
98
98
  "@ehfuse/forma": "^3.4.0",
99
99
  "@ehfuse/keyboard-state": "^1.1.1",
100
100
  "@ehfuse/mui-color-picker": "^1.5.4",
101
101
  "@ehfuse/mui-datetime-picker": "1.0.21",
102
102
  "@ehfuse/mui-form-controls": "^3.1.62",
103
- "@ehfuse/mui-form-dialog": "^1.7.51",
103
+ "@ehfuse/mui-form-dialog": "^1.7.54",
104
104
  "@ehfuse/overlay-scrollbar": "^1.7.27",
105
105
  "@ehfuse/tree-view": "^1.0.15",
106
106
  "@emotion/react": "^11.14.0",