@levelcaptech/gantt-task-react-custom 0.4.1 → 0.4.2
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/README.md +64 -9
- package/dist/components/calendar/calendar.d.ts +2 -0
- package/dist/components/grid/grid-body.d.ts +2 -0
- package/dist/helpers/calendar-helper.d.ts +38 -0
- package/dist/helpers/jp-holidays.d.ts +14 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +186 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +186 -12
- package/dist/index.modern.js.map +1 -1
- package/dist/test/calendar-helper.test.d.ts +1 -0
- package/dist/types/public-types.d.ts +43 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -104,6 +104,43 @@ export interface EventOption {
|
|
|
104
104
|
*/
|
|
105
105
|
onCellCommit?: (payload: CellCommitPayload) => Promise<void>;
|
|
106
106
|
}
|
|
107
|
+
export interface CalendarConfig {
|
|
108
|
+
/**
|
|
109
|
+
* Locale for date formatting. Defaults to "ja" for Japanese.
|
|
110
|
+
*/
|
|
111
|
+
locale?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Date format identifier. Currently supports "MM/dd(EEE)" for Japanese calendar display.
|
|
114
|
+
* This is a legacy identifier and not interpreted as a date-fns format string.
|
|
115
|
+
*/
|
|
116
|
+
dateFormat?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Enable Japanese holidays as non-working days. Defaults to true.
|
|
119
|
+
*/
|
|
120
|
+
enableJPHoliday?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Highlight non-working days with gray background. Defaults to true.
|
|
123
|
+
*/
|
|
124
|
+
highlightNonWorkingDays?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Treat Saturday as a working day. Defaults to false.
|
|
127
|
+
*/
|
|
128
|
+
workOnSaturday?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Additional holidays in ISO-like date string format.
|
|
131
|
+
* Year must be 4 digits; month and day may be 1–2 digits and are zero-padded internally
|
|
132
|
+
* (e.g. "2024-1-5" is normalized to "2024-01-05").
|
|
133
|
+
* These dates will be treated as non-working days.
|
|
134
|
+
*/
|
|
135
|
+
extraHolidays?: string[];
|
|
136
|
+
/**
|
|
137
|
+
* Special working days in ISO-like date string format.
|
|
138
|
+
* Year must be 4 digits; month and day may be 1–2 digits and are zero-padded internally
|
|
139
|
+
* (e.g. "2024-1-5" is normalized to "2024-01-05").
|
|
140
|
+
* These dates override weekends, holidays, and extraHolidays.
|
|
141
|
+
*/
|
|
142
|
+
extraWorkingDays?: string[];
|
|
143
|
+
}
|
|
107
144
|
export interface DisplayOption {
|
|
108
145
|
viewMode?: ViewMode;
|
|
109
146
|
viewDate?: Date;
|
|
@@ -113,6 +150,12 @@ export interface DisplayOption {
|
|
|
113
150
|
*/
|
|
114
151
|
locale?: string;
|
|
115
152
|
rtl?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Calendar configuration for working day calculation and date display.
|
|
155
|
+
* If not specified, no calendar customization is applied and
|
|
156
|
+
* Japanese holiday/highlight features remain disabled (opt-in behavior).
|
|
157
|
+
*/
|
|
158
|
+
calendar?: CalendarConfig;
|
|
116
159
|
}
|
|
117
160
|
export interface StylingOption {
|
|
118
161
|
headerHeight?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levelcaptech/gantt-task-react-custom",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Interactive Gantt Chart for React with TypeScript.",
|
|
5
5
|
"author": "LevelCapTech <levelcaptech@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/LevelCapTech/gantt-task-react-custom",
|