@ehfuse/taskbox 0.5.326 → 0.5.328
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/dist/index.esm.js +34 -34
- package/dist/index.esm.js.map +3 -3
- package/dist/index.js +28 -28
- package/dist/index.js.map +3 -3
- package/dist/types/provider.d.ts +6 -0
- package/dist/utils/taskChecklist.d.ts +1 -1
- package/package.json +1 -1
package/dist/types/provider.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** TaskboxProvider 설정·슬롯 타입이다. */
|
|
2
2
|
import type { ComponentType } from "react";
|
|
3
3
|
import type { TaskboxThemeInput } from "./theme";
|
|
4
|
+
import type { TaskBoxItem } from "./item";
|
|
4
5
|
/** 공휴일 한 건이다 — Provider `loadHolidays` 가 반환한다. */
|
|
5
6
|
export interface TaskboxHoliday {
|
|
6
7
|
date: string;
|
|
@@ -50,6 +51,11 @@ export interface TaskboxConfig {
|
|
|
50
51
|
* 화면의 기본 시각과 실제 알림 시각이 어긋나지 않는다.
|
|
51
52
|
*/
|
|
52
53
|
defaultDueHour?: number;
|
|
54
|
+
/**
|
|
55
|
+
* 업무 seq 로 목록 풀의 업무를 찾는다(연결 할일 해석용 — 표·카드·캘린더 칩의 할일 건수가 휴지통에 간
|
|
56
|
+
* 연결 업무를 빼고 세게 한다). 풀에 없으면 undefined. 미지정이면 저장된 항목 수 그대로 센다.
|
|
57
|
+
*/
|
|
58
|
+
resolveTask?: (seq: number) => TaskBoxItem | undefined;
|
|
53
59
|
/** 모바일 폰트 오프셋(px). 지정 시 Provider 가 CSS 변수를 주입한다. 미지정=앱 CSS 변수 상속. */
|
|
54
60
|
mobileFontOffsetPx?: number;
|
|
55
61
|
/** 모바일 판정 강제(미지정=내장 미디어쿼리 lg 미만). */
|
|
@@ -4,4 +4,4 @@ import type { TaskBoxItem } from "../types";
|
|
|
4
4
|
* 할일 진행 문자열을 만든다("완료수/전체수"). 할일이 없으면 빈 문자열이다.
|
|
5
5
|
* 완료 판정은 항목의 checked 를 그대로 쓴다(업무로 승격된 항목도 저장 시 함께 맞춰진다).
|
|
6
6
|
*/
|
|
7
|
-
export declare function formatChecklistProgress(task: TaskBoxItem): string;
|
|
7
|
+
export declare function formatChecklistProgress(task: TaskBoxItem, resolveTask?: (seq: number) => TaskBoxItem | undefined): string;
|
package/package.json
CHANGED