@ehfuse/taskbox 0.5.157 → 0.5.158

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.
@@ -1,4 +1,4 @@
1
- import type { TaskBoxBugDevice, TaskBoxBugRepro, TaskBoxChecklistItem, TaskBoxPriority, TaskBoxReminder, TaskBoxVisibility } from "./item";
1
+ import type { TaskBoxBugDevice, TaskBoxBugRepro, TaskBoxChecklistItem, TaskBoxPriority, TaskBoxReminder, TaskBoxRepeatRule, TaskBoxVisibility } from "./item";
2
2
  /** 새 업무 등록 폼 값이다. */
3
3
  export interface TaskBoxForm {
4
4
  title: string;
@@ -13,6 +13,8 @@ export interface TaskBoxForm {
13
13
  is_bug: boolean;
14
14
  visibility: TaskBoxVisibility;
15
15
  visibility_group_seq: number;
16
+ repeat_rule: TaskBoxRepeatRule | "";
17
+ repeat_until: string;
16
18
  bug_repro: TaskBoxBugRepro | "";
17
19
  bug_device: TaskBoxBugDevice | "";
18
20
  bug_where: string;
@@ -80,6 +80,8 @@ export type TaskBoxReminder = "none" | "min30_before" | "hour1_before" | "hour2_
80
80
  /** 업무함 목록 한 건이다. */
81
81
  /** 공개 범위다 — involved=비공개(관여자만)/group=부서공개/all=전체공개. */
82
82
  export type TaskBoxVisibility = "involved" | "group" | "all";
83
+ /** 반복 주기다(업무·일정 — 빈 값=반복 없음). */
84
+ export type TaskBoxRepeatRule = "daily" | "weekly" | "monthly" | "yearly";
83
85
  export interface TaskBoxItem {
84
86
  seq: number;
85
87
  title: string;
@@ -100,6 +102,9 @@ export interface TaskBoxItem {
100
102
  is_open?: boolean;
101
103
  visibility?: TaskBoxVisibility;
102
104
  visibility_group_seq?: number;
105
+ repeat_rule?: TaskBoxRepeatRule | "";
106
+ repeat_until?: string;
107
+ repeat_group_key?: number;
103
108
  bug_repro?: TaskBoxBugRepro | "";
104
109
  bug_device?: TaskBoxBugDevice | "";
105
110
  bug_where?: string;
@@ -0,0 +1,11 @@
1
+ /** 반복(업무·일정) 유틸이다 — 주기 사전과 종료일 기본값(AS 와 동일 규칙). */
2
+ import type { TaskBoxRepeatRule } from "../types";
3
+ /** 반복 주기 선택지다(등록 드로어 택일 메뉴 — ""=반복 없음). */
4
+ export declare const TASK_REPEAT_RULE_OPTIONS: {
5
+ value: TaskBoxRepeatRule;
6
+ label: string;
7
+ }[];
8
+ /** 반복 주기 표시 라벨을 만든다(모르는 값·빈 값은 "없음"). */
9
+ export declare function getRepeatRuleLabel(rule: string | undefined): string;
10
+ /** 반복 종료일 기본값을 만든다 — 매일=1개월, 매주=3개월, 매월=1년, 매년=3년 뒤(AS defaultRepeatUntil 동일). */
11
+ export declare function defaultRepeatUntil(startYmd: string, rule: TaskBoxRepeatRule): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.5.157",
3
+ "version": "0.5.158",
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",