@nocobase/plugin-gantt 2.1.0-beta.38 → 2.1.0-beta.41

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.
Files changed (118) hide show
  1. package/dist/client/index.js +1 -1
  2. package/dist/client-v2/793.629d4cd39664b681.js +10 -0
  3. package/dist/client-v2/index.js +1 -1
  4. package/dist/client-v2/locale.d.ts +6 -0
  5. package/dist/client-v2/models/GanttBlockModel.d.ts +1 -1
  6. package/dist/client-v2/models/components/GanttBlock.helpers.d.ts +8 -0
  7. package/dist/client-v2/models/components/GanttBlock.styles.d.ts +2 -1
  8. package/dist/client-v2/models/components/GanttBlock.tree.d.ts +9 -6
  9. package/dist/{shared → client-v2/shared}/components/grid/style.d.ts +4 -3
  10. package/dist/{shared → client-v2/shared}/components/other/horizontal-scroll.d.ts +1 -1
  11. package/dist/externalVersion.js +6 -6
  12. package/dist/locale/en-US.json +4 -1
  13. package/dist/locale/zh-CN.json +4 -1
  14. package/package.json +2 -2
  15. package/dist/client-v2/143.1a8cf1cd5ce17b64.js +0 -10
  16. package/dist/node_modules/@ctrl/tinycolor/LICENSE +0 -7
  17. package/dist/node_modules/@ctrl/tinycolor/dist/bundles/tinycolor.umd.min.js +0 -2
  18. package/dist/node_modules/@ctrl/tinycolor/dist/conversion.d.ts +0 -61
  19. package/dist/node_modules/@ctrl/tinycolor/dist/conversion.js +0 -250
  20. package/dist/node_modules/@ctrl/tinycolor/dist/css-color-names.d.ts +0 -4
  21. package/dist/node_modules/@ctrl/tinycolor/dist/css-color-names.js +0 -157
  22. package/dist/node_modules/@ctrl/tinycolor/dist/format-input.d.ts +0 -37
  23. package/dist/node_modules/@ctrl/tinycolor/dist/format-input.js +0 -189
  24. package/dist/node_modules/@ctrl/tinycolor/dist/from-ratio.d.ts +0 -14
  25. package/dist/node_modules/@ctrl/tinycolor/dist/from-ratio.js +0 -30
  26. package/dist/node_modules/@ctrl/tinycolor/dist/index.d.ts +0 -207
  27. package/dist/node_modules/@ctrl/tinycolor/dist/index.js +0 -512
  28. package/dist/node_modules/@ctrl/tinycolor/dist/interfaces.d.ts +0 -46
  29. package/dist/node_modules/@ctrl/tinycolor/dist/interfaces.js +0 -2
  30. package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -235
  31. package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -154
  32. package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -183
  33. package/dist/node_modules/@ctrl/tinycolor/dist/module/from-ratio.js +0 -25
  34. package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js +0 -508
  35. package/dist/node_modules/@ctrl/tinycolor/dist/module/interfaces.js +0 -1
  36. package/dist/node_modules/@ctrl/tinycolor/dist/module/public_api.js +0 -12
  37. package/dist/node_modules/@ctrl/tinycolor/dist/module/random.js +0 -278
  38. package/dist/node_modules/@ctrl/tinycolor/dist/module/readability.js +0 -80
  39. package/dist/node_modules/@ctrl/tinycolor/dist/module/to-ms-filter.js +0 -16
  40. package/dist/node_modules/@ctrl/tinycolor/dist/module/umd_api.js +0 -20
  41. package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -82
  42. package/dist/node_modules/@ctrl/tinycolor/dist/public_api.d.ts +0 -11
  43. package/dist/node_modules/@ctrl/tinycolor/dist/public_api.js +0 -1
  44. package/dist/node_modules/@ctrl/tinycolor/dist/random.d.ts +0 -24
  45. package/dist/node_modules/@ctrl/tinycolor/dist/random.js +0 -282
  46. package/dist/node_modules/@ctrl/tinycolor/dist/readability.d.ts +0 -46
  47. package/dist/node_modules/@ctrl/tinycolor/dist/readability.js +0 -86
  48. package/dist/node_modules/@ctrl/tinycolor/dist/to-ms-filter.d.ts +0 -5
  49. package/dist/node_modules/@ctrl/tinycolor/dist/to-ms-filter.js +0 -20
  50. package/dist/node_modules/@ctrl/tinycolor/dist/umd_api.d.ts +0 -23
  51. package/dist/node_modules/@ctrl/tinycolor/dist/umd_api.js +0 -22
  52. package/dist/node_modules/@ctrl/tinycolor/dist/util.d.ts +0 -36
  53. package/dist/node_modules/@ctrl/tinycolor/dist/util.js +0 -92
  54. package/dist/node_modules/@ctrl/tinycolor/package.json +0 -1
  55. package/dist/shared/components/calendar/calendar.js +0 -417
  56. package/dist/shared/components/calendar/style.js +0 -79
  57. package/dist/shared/components/calendar/top-part-of-calendar.js +0 -57
  58. package/dist/shared/components/gantt/style.js +0 -74
  59. package/dist/shared/components/gantt/task-gantt-content.js +0 -337
  60. package/dist/shared/components/gantt/task-gantt.js +0 -128
  61. package/dist/shared/components/grid/grid-body.js +0 -114
  62. package/dist/shared/components/grid/grid.js +0 -50
  63. package/dist/shared/components/grid/style.js +0 -54
  64. package/dist/shared/components/other/arrow.js +0 -90
  65. package/dist/shared/components/other/horizontal-scroll.js +0 -64
  66. package/dist/shared/components/other/style.js +0 -125
  67. package/dist/shared/components/other/tooltip.js +0 -137
  68. package/dist/shared/components/other/vertical-scroll.js +0 -74
  69. package/dist/shared/components/task-item/bar/bar-date-handle.js +0 -62
  70. package/dist/shared/components/task-item/bar/bar-display.js +0 -98
  71. package/dist/shared/components/task-item/bar/bar-progress-handle.js +0 -49
  72. package/dist/shared/components/task-item/bar/bar-small.js +0 -85
  73. package/dist/shared/components/task-item/bar/bar.js +0 -113
  74. package/dist/shared/components/task-item/bar/style.js +0 -58
  75. package/dist/shared/components/task-item/milestone/milestone.js +0 -72
  76. package/dist/shared/components/task-item/milestone/style.js +0 -45
  77. package/dist/shared/components/task-item/project/project.js +0 -77
  78. package/dist/shared/components/task-item/project/style.js +0 -51
  79. package/dist/shared/components/task-item/style.js +0 -74
  80. package/dist/shared/components/task-item/task-item.js +0 -132
  81. package/dist/shared/helpers/bar-helper.js +0 -415
  82. package/dist/shared/helpers/date-helper.js +0 -231
  83. package/dist/shared/helpers/other-helper.js +0 -97
  84. package/dist/shared/types/bar-task.js +0 -24
  85. package/dist/shared/types/date-setup.js +0 -24
  86. package/dist/shared/types/gantt-task-actions.js +0 -24
  87. package/dist/shared/types/public-types.js +0 -46
  88. /package/dist/{shared → client-v2/shared}/components/calendar/calendar.d.ts +0 -0
  89. /package/dist/{shared → client-v2/shared}/components/calendar/style.d.ts +0 -0
  90. /package/dist/{shared → client-v2/shared}/components/calendar/top-part-of-calendar.d.ts +0 -0
  91. /package/dist/{shared → client-v2/shared}/components/gantt/style.d.ts +0 -0
  92. /package/dist/{shared → client-v2/shared}/components/gantt/task-gantt-content.d.ts +0 -0
  93. /package/dist/{shared → client-v2/shared}/components/gantt/task-gantt.d.ts +0 -0
  94. /package/dist/{shared → client-v2/shared}/components/grid/grid-body.d.ts +0 -0
  95. /package/dist/{shared → client-v2/shared}/components/grid/grid.d.ts +0 -0
  96. /package/dist/{shared → client-v2/shared}/components/other/arrow.d.ts +0 -0
  97. /package/dist/{shared → client-v2/shared}/components/other/style.d.ts +0 -0
  98. /package/dist/{shared → client-v2/shared}/components/other/tooltip.d.ts +0 -0
  99. /package/dist/{shared → client-v2/shared}/components/other/vertical-scroll.d.ts +0 -0
  100. /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar-date-handle.d.ts +0 -0
  101. /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar-display.d.ts +0 -0
  102. /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar-progress-handle.d.ts +0 -0
  103. /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar-small.d.ts +0 -0
  104. /package/dist/{shared → client-v2/shared}/components/task-item/bar/bar.d.ts +0 -0
  105. /package/dist/{shared → client-v2/shared}/components/task-item/bar/style.d.ts +0 -0
  106. /package/dist/{shared → client-v2/shared}/components/task-item/milestone/milestone.d.ts +0 -0
  107. /package/dist/{shared → client-v2/shared}/components/task-item/milestone/style.d.ts +0 -0
  108. /package/dist/{shared → client-v2/shared}/components/task-item/project/project.d.ts +0 -0
  109. /package/dist/{shared → client-v2/shared}/components/task-item/project/style.d.ts +0 -0
  110. /package/dist/{shared → client-v2/shared}/components/task-item/style.d.ts +0 -0
  111. /package/dist/{shared → client-v2/shared}/components/task-item/task-item.d.ts +0 -0
  112. /package/dist/{shared → client-v2/shared}/helpers/bar-helper.d.ts +0 -0
  113. /package/dist/{shared → client-v2/shared}/helpers/date-helper.d.ts +0 -0
  114. /package/dist/{shared → client-v2/shared}/helpers/other-helper.d.ts +0 -0
  115. /package/dist/{shared → client-v2/shared}/types/bar-task.d.ts +0 -0
  116. /package/dist/{shared → client-v2/shared}/types/date-setup.d.ts +0 -0
  117. /package/dist/{shared → client-v2/shared}/types/gantt-task-actions.d.ts +0 -0
  118. /package/dist/{shared → client-v2/shared}/types/public-types.d.ts +0 -0
@@ -1,231 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key) && key !== except)
22
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
- var date_helper_exports = {};
28
- __export(date_helper_exports, {
29
- addToDate: () => addToDate,
30
- ganttDateRange: () => ganttDateRange,
31
- getCachedDateTimeFormat: () => getCachedDateTimeFormat,
32
- getDaysInMonth: () => getDaysInMonth,
33
- getLocalDayOfWeek: () => getLocalDayOfWeek,
34
- getLocaleMonth: () => getLocaleMonth,
35
- getWeekNumberISO8601: () => getWeekNumberISO8601,
36
- seedDates: () => seedDates,
37
- startOfDate: () => startOfDate
38
- });
39
- module.exports = __toCommonJS(date_helper_exports);
40
- var import_public_types = require("../types/public-types");
41
- const DateTimeFormat = Intl.DateTimeFormat;
42
- const DateTimeFormatOptions = Intl.DateTimeFormatOptions;
43
- const intlDTCache = {};
44
- const getCachedDateTimeFormat = (locString, opts = {}) => {
45
- const key = JSON.stringify([locString, opts]);
46
- let dtf = intlDTCache[key];
47
- if (!dtf) {
48
- dtf = new Intl.DateTimeFormat(locString, opts);
49
- intlDTCache[key] = dtf;
50
- }
51
- return dtf;
52
- };
53
- const addToDate = (date, quantity, scale) => {
54
- const newDate = new Date(
55
- date.getFullYear() + (scale === "year" ? quantity : 0),
56
- date.getMonth() + (scale === "month" ? quantity : 0),
57
- date.getDate() + (scale === "day" ? quantity : 0),
58
- date.getHours() + (scale === "hour" ? quantity : 0),
59
- date.getMinutes() + (scale === "minute" ? quantity : 0),
60
- date.getSeconds() + (scale === "second" ? quantity : 0),
61
- date.getMilliseconds() + (scale === "millisecond" ? quantity : 0)
62
- );
63
- return newDate;
64
- };
65
- const startOfDate = (date, scale) => {
66
- const scores = ["millisecond", "second", "minute", "hour", "day", "month", "year"];
67
- const shouldReset = (_scale) => {
68
- const maxScore = scores.indexOf(scale);
69
- return scores.indexOf(_scale) <= maxScore;
70
- };
71
- const newDate = new Date(
72
- date == null ? void 0 : date.getFullYear(),
73
- shouldReset("year") ? 0 : date.getMonth(),
74
- shouldReset("month") ? 1 : date.getDate(),
75
- shouldReset("day") ? 0 : date.getHours(),
76
- shouldReset("hour") ? 0 : date.getMinutes(),
77
- shouldReset("minute") ? 0 : date.getSeconds(),
78
- shouldReset("second") ? 0 : date.getMilliseconds()
79
- );
80
- return newDate;
81
- };
82
- const ganttDateRange = (tasks, viewMode, preStepsCount) => {
83
- var _a, _b;
84
- let newStartDate = ((_a = tasks[0]) == null ? void 0 : _a.start) || /* @__PURE__ */ new Date();
85
- let newEndDate = ((_b = tasks[0]) == null ? void 0 : _b.start) || /* @__PURE__ */ new Date();
86
- for (const task of tasks) {
87
- if (task.start < newStartDate) {
88
- newStartDate = task.start;
89
- }
90
- if (task.end > newEndDate) {
91
- newEndDate = task.end;
92
- }
93
- }
94
- switch (viewMode) {
95
- case import_public_types.ViewMode.Year:
96
- newStartDate = addToDate(newStartDate, -1, "year");
97
- newStartDate = startOfDate(newStartDate, "year");
98
- newEndDate = addToDate(newEndDate, 1, "year");
99
- newEndDate = startOfDate(newEndDate, "year");
100
- break;
101
- case import_public_types.ViewMode.QuarterYear:
102
- newStartDate = addToDate(newStartDate, -3, "month");
103
- newStartDate = startOfDate(newStartDate, "month");
104
- newEndDate = addToDate(newEndDate, 3, "year");
105
- newEndDate = startOfDate(newEndDate, "year");
106
- break;
107
- case import_public_types.ViewMode.Month:
108
- newStartDate = addToDate(newStartDate, -1 * preStepsCount, "month");
109
- newStartDate = startOfDate(newStartDate, "month");
110
- newEndDate = addToDate(newEndDate, 1, "year");
111
- newEndDate = startOfDate(newEndDate, "year");
112
- break;
113
- case import_public_types.ViewMode.Week:
114
- newStartDate = startOfDate(newStartDate, "day");
115
- newStartDate = addToDate(getMonday(newStartDate), -7 * preStepsCount, "day");
116
- newEndDate = startOfDate(newEndDate, "day");
117
- newEndDate = addToDate(newEndDate, 1.5, "month");
118
- break;
119
- case import_public_types.ViewMode.Day:
120
- newStartDate = startOfDate(newStartDate, "day");
121
- newStartDate = addToDate(newStartDate, -1 * preStepsCount, "day");
122
- newEndDate = startOfDate(newEndDate, "day");
123
- newEndDate = addToDate(newEndDate, 19, "day");
124
- break;
125
- case import_public_types.ViewMode.QuarterDay:
126
- newStartDate = startOfDate(newStartDate, "day");
127
- newStartDate = addToDate(newStartDate, -1 * preStepsCount, "day");
128
- newEndDate = startOfDate(newEndDate, "day");
129
- newEndDate = addToDate(newEndDate, 66, "hour");
130
- break;
131
- case import_public_types.ViewMode.HalfDay:
132
- newStartDate = startOfDate(newStartDate, "day");
133
- newStartDate = addToDate(newStartDate, -1 * preStepsCount, "day");
134
- newEndDate = startOfDate(newEndDate, "day");
135
- newEndDate = addToDate(newEndDate, 108, "hour");
136
- break;
137
- case import_public_types.ViewMode.Hour:
138
- newStartDate = startOfDate(newStartDate, "hour");
139
- newStartDate = addToDate(newStartDate, -1 * preStepsCount, "hour");
140
- newEndDate = startOfDate(newEndDate, "day");
141
- newEndDate = addToDate(newEndDate, 1, "day");
142
- break;
143
- }
144
- return [newStartDate, newEndDate];
145
- };
146
- const seedDates = (startDate, endDate, viewMode) => {
147
- let currentDate = new Date(startDate);
148
- const dates = [currentDate];
149
- while (currentDate < endDate) {
150
- switch (viewMode) {
151
- case import_public_types.ViewMode.Year:
152
- currentDate = addToDate(currentDate, 1, "year");
153
- break;
154
- case import_public_types.ViewMode.QuarterYear:
155
- currentDate = addToDate(currentDate, 3, "month");
156
- break;
157
- case import_public_types.ViewMode.Month:
158
- currentDate = addToDate(currentDate, 1, "month");
159
- break;
160
- case import_public_types.ViewMode.Week:
161
- currentDate = addToDate(currentDate, 7, "day");
162
- break;
163
- case import_public_types.ViewMode.Day:
164
- currentDate = addToDate(currentDate, 1, "day");
165
- break;
166
- case import_public_types.ViewMode.HalfDay:
167
- currentDate = addToDate(currentDate, 12, "hour");
168
- break;
169
- case import_public_types.ViewMode.QuarterDay:
170
- currentDate = addToDate(currentDate, 6, "hour");
171
- break;
172
- case import_public_types.ViewMode.Hour:
173
- currentDate = addToDate(currentDate, 1, "hour");
174
- break;
175
- }
176
- dates.push(currentDate);
177
- }
178
- return dates;
179
- };
180
- const getLocaleMonth = (date, locale) => {
181
- let bottomValue = getCachedDateTimeFormat(locale, {
182
- month: "long"
183
- //@ts-ignore
184
- }).format(date);
185
- bottomValue = bottomValue.replace(bottomValue[0], bottomValue[0].toLocaleUpperCase());
186
- return bottomValue;
187
- };
188
- const getLocalDayOfWeek = (date, locale, format) => {
189
- let bottomValue = getCachedDateTimeFormat(locale, {
190
- weekday: format
191
- //@ts-ignore
192
- }).format(date);
193
- bottomValue = bottomValue.replace(bottomValue[0], bottomValue[0].toLocaleUpperCase());
194
- return bottomValue;
195
- };
196
- const getMonday = (date) => {
197
- const day = date.getDay();
198
- const diff = date.getDate() - day + (day === 0 ? -6 : 1);
199
- return new Date(date.setDate(diff));
200
- };
201
- const getWeekNumberISO8601 = (date) => {
202
- const tmpDate = new Date(date.valueOf());
203
- const dayNumber = (tmpDate.getDay() + 6) % 7;
204
- tmpDate.setDate(tmpDate.getDate() - dayNumber + 3);
205
- const firstThursday = tmpDate.valueOf();
206
- tmpDate.setMonth(0, 1);
207
- if (tmpDate.getDay() !== 4) {
208
- tmpDate.setMonth(0, 1 + (4 - tmpDate.getDay() + 7) % 7);
209
- }
210
- const weekNumber = (1 + Math.ceil((firstThursday - tmpDate.valueOf()) / 6048e5)).toString();
211
- if (weekNumber.length === 1) {
212
- return `0${weekNumber}`;
213
- } else {
214
- return weekNumber;
215
- }
216
- };
217
- const getDaysInMonth = (month, year) => {
218
- return new Date(year, month + 1, 0).getDate();
219
- };
220
- // Annotate the CommonJS export names for ESM import in node:
221
- 0 && (module.exports = {
222
- addToDate,
223
- ganttDateRange,
224
- getCachedDateTimeFormat,
225
- getDaysInMonth,
226
- getLocalDayOfWeek,
227
- getLocaleMonth,
228
- getWeekNumberISO8601,
229
- seedDates,
230
- startOfDate
231
- });
@@ -1,97 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key) && key !== except)
22
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
- var other_helper_exports = {};
28
- __export(other_helper_exports, {
29
- getYmd: () => getYmd,
30
- isBarTask: () => isBarTask,
31
- isKeyboardEvent: () => isKeyboardEvent,
32
- isMouseEvent: () => isMouseEvent,
33
- removeHiddenTasks: () => removeHiddenTasks,
34
- sortTasks: () => sortTasks
35
- });
36
- module.exports = __toCommonJS(other_helper_exports);
37
- function isKeyboardEvent(event) {
38
- return event.key !== void 0;
39
- }
40
- function isMouseEvent(event) {
41
- return event.clientX !== void 0;
42
- }
43
- function isBarTask(task) {
44
- return task.x1 !== void 0;
45
- }
46
- function removeHiddenTasks(tasks) {
47
- const groupedTasks = tasks.filter((t) => t.hideChildren && t.type === "project");
48
- if (groupedTasks.length > 0) {
49
- for (let i = 0; groupedTasks.length > i; i++) {
50
- const groupedTask = groupedTasks[i];
51
- const children = getChildren(tasks, groupedTask);
52
- tasks = tasks.filter((t) => children.indexOf(t) === -1);
53
- }
54
- }
55
- return tasks;
56
- }
57
- function getChildren(taskList, task) {
58
- let tasks = [];
59
- if (task.type !== "project") {
60
- tasks = taskList.filter((t) => t.dependencies && t.dependencies.indexOf(task.id) !== -1);
61
- } else {
62
- tasks = taskList.filter((t) => t.project && t.project === task.id);
63
- }
64
- const taskChildren = [];
65
- tasks.forEach((t) => {
66
- taskChildren.push(...getChildren(taskList, t));
67
- });
68
- tasks = tasks.concat(tasks, taskChildren);
69
- return tasks;
70
- }
71
- const sortTasks = (taskA, taskB) => {
72
- const orderA = taskA.displayOrder || Number.MAX_VALUE;
73
- const orderB = taskB.displayOrder || Number.MAX_VALUE;
74
- if (orderA > orderB) {
75
- return 1;
76
- } else if (orderA < orderB) {
77
- return -1;
78
- } else {
79
- return 0;
80
- }
81
- };
82
- const getYmd = (date) => {
83
- var _a;
84
- if (!isNaN((_a = date == null ? void 0 : date.getTime) == null ? void 0 : _a.call(date))) {
85
- return date.getFullYear() + `/${date.getMonth() + 1}/` + date.getDate();
86
- }
87
- return 0;
88
- };
89
- // Annotate the CommonJS export names for ESM import in node:
90
- 0 && (module.exports = {
91
- getYmd,
92
- isBarTask,
93
- isKeyboardEvent,
94
- isMouseEvent,
95
- removeHiddenTasks,
96
- sortTasks
97
- });
@@ -1,24 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
- var bar_task_exports = {};
24
- module.exports = __toCommonJS(bar_task_exports);
@@ -1,24 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
- var date_setup_exports = {};
24
- module.exports = __toCommonJS(date_setup_exports);
@@ -1,24 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
- var gantt_task_actions_exports = {};
24
- module.exports = __toCommonJS(gantt_task_actions_exports);
@@ -1,46 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key) && key !== except)
22
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
- var public_types_exports = {};
28
- __export(public_types_exports, {
29
- ViewMode: () => ViewMode
30
- });
31
- module.exports = __toCommonJS(public_types_exports);
32
- var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
33
- ViewMode2["Hour"] = "hour";
34
- ViewMode2["QuarterDay"] = "quarterDay";
35
- ViewMode2["HalfDay"] = "halfDay";
36
- ViewMode2["Day"] = "day";
37
- ViewMode2["Week"] = "week";
38
- ViewMode2["Month"] = "month";
39
- ViewMode2["QuarterYear"] = "quarterYear";
40
- ViewMode2["Year"] = "year";
41
- return ViewMode2;
42
- })(ViewMode || {});
43
- // Annotate the CommonJS export names for ESM import in node:
44
- 0 && (module.exports = {
45
- ViewMode
46
- });