@ehfuse/taskbox 0.5.234 → 0.5.236

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,10 @@
1
+ /**
2
+ * 본문 로딩 스피너다 — 앱 새로고침 스피너(www index.html `#initial-loader`)와 같은 모양으로 맞춘다.
3
+ * 문구·테두리 없이 회전 원 하나만 두어 "잠깐 기다리는 중"으로만 읽히게 한다.
4
+ */
5
+ /** 본문 로딩 스피너 props 다. */
6
+ export interface ContentLoadingSpinnerProps {
7
+ size?: number;
8
+ }
9
+ /** 본문 로딩 스피너 컴포넌트다. */
10
+ export declare function ContentLoadingSpinner({ size }: ContentLoadingSpinnerProps): import("react").JSX.Element;
@@ -59,6 +59,23 @@ export declare const CHART_BAR_TOOLTIP_PROPS: {
59
59
  fontSize: number;
60
60
  };
61
61
  };
62
+ /**
63
+ * 범례 공통 속성이다.
64
+ * ⚠️ 항목 간격은 wrapperStyle 로 못 넓힌다 — recharts 가 각 항목(li)에 `margin-right: 10px` 를
65
+ * 인라인으로 박아 바깥 스타일이 이긴다. 그래서 라벨 자체에 오른쪽 여백을 준다.
66
+ */
67
+ export declare const CHART_LEGEND_PROPS: {
68
+ wrapperStyle: {
69
+ fontSize: number;
70
+ paddingTop: number;
71
+ };
72
+ formatter: (value: string) => import("react").DetailedReactHTMLElement<{
73
+ style: {
74
+ paddingRight: number;
75
+ color: "#37352f";
76
+ };
77
+ }, HTMLElement>;
78
+ };
62
79
  /**
63
80
  * 차트 루트 sx 다 — 높이가 문자열("100%")이면 부모를 가득 채우는 세로 flex 로 둔다.
64
81
  * 고정 높이 다이얼로그의 탭에서 내용이 위쪽에 몰리지 않게 하는 장치다.
@@ -0,0 +1,26 @@
1
+ /**
2
+ * 자동화 규칙 관리 다이얼로그다 — 업무함 설정에서 연다.
3
+ *
4
+ * 규칙은 업무를 **사람 손 없이 바꾸는 장치**라, 만들기 쉬운 것보다 **무슨 일이 벌어질지 읽히는 것**이 중요하다.
5
+ * 그래서 목록에 조건·동작을 한국어 한 줄 요약("등록 시 · 프로젝트=A, 책임자 없음 → 책임자 김책임")으로 보여주고,
6
+ * 편집 폼은 발동 시점에 따라 쓸모없는 칸을 감춘다(상태 전이 조건은 상태 변경 규칙에만 나온다).
7
+ */
8
+ import type { TaskBoxCustomTab, TaskBoxLabel, TaskRule, TaskRuleInput } from "../types";
9
+ /** 규칙 관리 다이얼로그 props 다. */
10
+ export interface TaskRuleManageDialogProps {
11
+ open: boolean;
12
+ rules: TaskRule[];
13
+ customTabs: TaskBoxCustomTab[];
14
+ statusOptions: TaskBoxLabel[];
15
+ onPickAccount?: (current: number) => Promise<{
16
+ accountSeq: number;
17
+ name: string;
18
+ } | null>;
19
+ onClose: () => void;
20
+ onCreate: (payload: TaskRuleInput) => Promise<boolean>;
21
+ onUpdate: (seq: number, payload: TaskRuleInput) => Promise<boolean>;
22
+ onToggle: (seq: number, enabled: boolean) => void;
23
+ onRemove: (seq: number) => void;
24
+ }
25
+ /** 자동화 규칙 관리 다이얼로그 컴포넌트다. */
26
+ export declare function TaskRuleManageDialog({ open, rules, customTabs, statusOptions, onPickAccount, onClose, onCreate, onUpdate, onToggle, onRemove, }: TaskRuleManageDialogProps): import("react").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -99,5 +99,6 @@ export * from "./charts/WorkloadChart";
99
99
  export * from "./charts/WorkloadTimelineGrid";
100
100
  export * from "./internal/useTaskboxShortcuts";
101
101
  export * from "./dialogs/ShortcutHelpDialog";
102
+ export * from "./dialogs/TaskRuleManageDialog";
102
103
  export * from "./utils/taskWorkload";
103
104
  export * from "./print";