@ehfuse/taskbox 0.5.112 → 0.5.114
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 +7 -7
- package/dist/index.esm.js.map +4 -4
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/dist/internal/editorHeightStore.d.ts +9 -0
- package/dist/sections/TaskContentEditor.d.ts +2 -1
- package/dist/utils/taskRelations.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 내용 에디터 높이 기억 저장소다(기기 로컬).
|
|
3
|
+
* 리사이즈 핸들로 늘린 높이는 업무 데이터가 아니라 보는 사람의 화면 취향이라
|
|
4
|
+
* 서버에 저장(=수정 알림 발생)하지 않고 이 기기에만 남긴다.
|
|
5
|
+
*/
|
|
6
|
+
/** 저장된 에디터 높이를 읽는다(없거나 범위를 벗어나면 null). */
|
|
7
|
+
export declare function loadEditorHeight(scope: string): number | null;
|
|
8
|
+
/** 에디터 높이를 기억한다(범위를 벗어난 값은 저장하지 않는다). */
|
|
9
|
+
export declare function saveEditorHeight(scope: string, height: number): void;
|
|
@@ -12,6 +12,7 @@ export interface TaskContentEditorProps {
|
|
|
12
12
|
onChange: (html: string) => void;
|
|
13
13
|
readOnly?: boolean;
|
|
14
14
|
minHeight?: number;
|
|
15
|
+
heightScope?: string;
|
|
15
16
|
}
|
|
16
17
|
/** 내용 편집 에디터 컴포넌트다. */
|
|
17
|
-
export declare function TaskContentEditor({ syncKey, value, onChange, readOnly, minHeight }: TaskContentEditorProps): import("react").JSX.Element;
|
|
18
|
+
export declare function TaskContentEditor({ syncKey, value, onChange, readOnly, minHeight, heightScope, }: TaskContentEditorProps): import("react").JSX.Element;
|
|
@@ -19,3 +19,10 @@ export declare function hasRelation(a: TaskBoxItem, b: TaskBoxItem, type: TaskBo
|
|
|
19
19
|
* 관련/중복은 양방향으로 수집한다. tasks 는 관계 해석 풀(현재 화면이 아는 업무 목록)이다.
|
|
20
20
|
*/
|
|
21
21
|
export declare function buildTaskRelationsModel(task: TaskBoxItem, tasks: TaskBoxItem[]): TaskRelationsModel;
|
|
22
|
+
/**
|
|
23
|
+
* 화면에 실제로 그려질 연결 개수다 — 섹션 제목의 숫자와 "연결된 업무가 없습니다" 판정,
|
|
24
|
+
* 그리고 섹션을 통째로 감출지 판정이 모두 이 한 값을 쓴다(규칙이 갈리면 빈 섹션이 남는다).
|
|
25
|
+
*/
|
|
26
|
+
export declare function countTaskRelations(task: TaskBoxItem, tasks: TaskBoxItem[]): number;
|
|
27
|
+
/** 이 업무에 걸린 관계(이력·관련·중복)가 하나라도 있는지 본다 — 빈 섹션을 감추는 판정용. */
|
|
28
|
+
export declare function hasTaskRelations(task: TaskBoxItem, tasks: TaskBoxItem[]): boolean;
|
package/package.json
CHANGED