@object-ui/plugin-gantt 16.0.0 → 17.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,317 @@
1
1
  # @object-ui/plugin-gantt
2
2
 
3
+ ## 17.1.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [62311b6]
8
+ - Updated dependencies [fc0272a]
9
+ - Updated dependencies [9e7349e]
10
+ - Updated dependencies [8864971]
11
+ - Updated dependencies [1cf0de7]
12
+ - Updated dependencies [752e18f]
13
+ - Updated dependencies [c785740]
14
+ - Updated dependencies [b41f401]
15
+ - Updated dependencies [19e9fa0]
16
+ - Updated dependencies [d61efd1]
17
+ - Updated dependencies [95b7214]
18
+ - Updated dependencies [7d9734d]
19
+ - Updated dependencies [6ae818e]
20
+ - Updated dependencies [9eb932b]
21
+ - Updated dependencies [746dd00]
22
+ - Updated dependencies [aebfa4f]
23
+ - Updated dependencies [38ca8be]
24
+ - Updated dependencies [3cb9646]
25
+ - Updated dependencies [68ef584]
26
+ - Updated dependencies [4952edf]
27
+ - Updated dependencies [7f0252e]
28
+ - Updated dependencies [c4d7b20]
29
+ - Updated dependencies [c769d3d]
30
+ - Updated dependencies [7639a61]
31
+ - Updated dependencies [94e63ef]
32
+ - Updated dependencies [c735bf7]
33
+ - Updated dependencies [02aef0c]
34
+ - Updated dependencies [6f29aa5]
35
+ - Updated dependencies [d21794c]
36
+ - Updated dependencies [c4db402]
37
+ - Updated dependencies [5319bf1]
38
+ - Updated dependencies [49e5671]
39
+ - Updated dependencies [9a04d25]
40
+ - Updated dependencies [b5b97e2]
41
+ - Updated dependencies [f59f2c1]
42
+ - Updated dependencies [07de839]
43
+ - Updated dependencies [2a40b5e]
44
+ - Updated dependencies [df613fa]
45
+ - Updated dependencies [4874117]
46
+ - Updated dependencies [ad0183a]
47
+ - Updated dependencies [ce08d55]
48
+ - Updated dependencies [eb4b740]
49
+ - Updated dependencies [aecc934]
50
+ - Updated dependencies [5b084eb]
51
+ - Updated dependencies [aa1240a]
52
+ - Updated dependencies [2374a49]
53
+ - Updated dependencies [390c071]
54
+ - Updated dependencies [d10f526]
55
+ - Updated dependencies [2baa13f]
56
+ - Updated dependencies [bac266c]
57
+ - Updated dependencies [2d5d594]
58
+ - Updated dependencies [ea7f477]
59
+ - Updated dependencies [379728f]
60
+ - Updated dependencies [7f23cd0]
61
+ - Updated dependencies [0ded602]
62
+ - Updated dependencies [24e0e0a]
63
+ - Updated dependencies [f8a95e5]
64
+ - Updated dependencies [3a6cf24]
65
+ - Updated dependencies [aa35561]
66
+ - Updated dependencies [03bd53b]
67
+ - Updated dependencies [3c1f321]
68
+ - Updated dependencies [a045a32]
69
+ - Updated dependencies [912496d]
70
+ - Updated dependencies [80edbd4]
71
+ - Updated dependencies [9867281]
72
+ - @object-ui/core@17.1.0
73
+ - @object-ui/components@17.1.0
74
+ - @object-ui/plugin-detail@17.1.0
75
+ - @object-ui/react@17.1.0
76
+ - @object-ui/types@17.1.0
77
+ - @object-ui/i18n@17.1.0
78
+ - @object-ui/fields@17.1.0
79
+
80
+ ## 17.0.0
81
+
82
+ ### Patch Changes
83
+
84
+ - 7d46648: fix(hooks): stop calling translation hooks inside try/catch (objectui#2879)
85
+
86
+ Eleven call sites wrapped a React hook in `try`/`catch` to make it
87
+ "provider-safe". `useObjectTranslation` and `useObjectLabel` already are — they
88
+ read context optionally and fall back to react-i18next's global instance, and
89
+ never throw. The `catch` bought nothing and cost correctness: a throw _after_
90
+ the hook ran desyncs hook order on the next render, because React matches hooks
91
+ positionally. objectui#2595/#2596 fixed exactly this in `@object-ui/i18n`'s
92
+ `createSafeTranslation`; nine plugin-local re-implementations kept their own
93
+ copy of the bug, and two more (`ObjectTimeline`, `ObjectView`) were found by the
94
+ new lint rule below — `ObjectView` had even suppressed
95
+ `react-hooks/rules-of-hooks` inline to keep it.
96
+
97
+ - Six exact re-implementations now delegate to `createSafeTranslation`:
98
+ `plugin-detail`, `plugin-timeline`, `plugin-list`, `plugin-calendar`,
99
+ `plugin-grid`'s `ObjectGrid`, `plugin-designer`.
100
+ - `components`' `data-table` also delegates; `createSafeTranslation` now
101
+ returns `language` alongside `t` so consumers that localize dates don't need
102
+ a second hook call. Purely additive.
103
+ - `plugin-gantt` and `plugin-grid`'s `ImportWizard` keep their local hooks —
104
+ they fall back _per key_, which a single-probe factory cannot express and
105
+ which their comments justify (a host dictionary that covers common keys but
106
+ lags on newer ones). Only the `try`/`catch` is removed.
107
+ - `ObjectTimeline` and `ObjectView` call the hook directly and probe the
108
+ returned value, mirroring `useSafeFieldLabel`.
109
+
110
+ Adds `object-ui/no-try-catch-around-hook` (error) so a twelfth copy fails CI.
111
+ It only matches `use*` names, accepts member calls solely on `React` (so
112
+ `vi.useRealTimers()` is not a hook), and resets its try-depth inside nested
113
+ functions (so `renderHook(() => useThing())` inside a `try` is fine) — both
114
+ false positives were real code in this repo and are pinned in the rule's tests.
115
+
116
+ `eslint-rules/**/*.test.js` matched no vitest project glob, so the local
117
+ plugin's specs had never run in CI. They are now included; all three pass.
118
+
119
+ `ObjectTimeline`'s test mock of `@object-ui/react` omitted `useObjectLabel` —
120
+ the removed `try`/`catch` had been silently absorbing that gap. The mock is now
121
+ complete.
122
+
123
+ - Updated dependencies [7b21891]
124
+ - Updated dependencies [0b3be01]
125
+ - Updated dependencies [3c4d935]
126
+ - Updated dependencies [4b1ed7d]
127
+ - Updated dependencies [4b60d2d]
128
+ - Updated dependencies [952b978]
129
+ - Updated dependencies [de5e40c]
130
+ - Updated dependencies [1a03af6]
131
+ - Updated dependencies [3e886eb]
132
+ - Updated dependencies [cfc675e]
133
+ - Updated dependencies [20df08c]
134
+ - Updated dependencies [1767124]
135
+ - Updated dependencies [8ecf5a6]
136
+ - Updated dependencies [af705b9]
137
+ - Updated dependencies [0502a7c]
138
+ - Updated dependencies [7b35e4b]
139
+ - Updated dependencies [8fb1295]
140
+ - Updated dependencies [e16ed2d]
141
+ - Updated dependencies [c6fd752]
142
+ - Updated dependencies [f9bbddb]
143
+ - Updated dependencies [dfd3705]
144
+ - Updated dependencies [c77108c]
145
+ - Updated dependencies [2735de6]
146
+ - Updated dependencies [697cda4]
147
+ - Updated dependencies [c19ac11]
148
+ - Updated dependencies [6dee2cb]
149
+ - Updated dependencies [e05f052]
150
+ - Updated dependencies [0502a7c]
151
+ - Updated dependencies [faad45e]
152
+ - Updated dependencies [09c6a17]
153
+ - Updated dependencies [c7cff19]
154
+ - Updated dependencies [ba73a02]
155
+ - Updated dependencies [cd09a7b]
156
+ - Updated dependencies [f1abf0e]
157
+ - Updated dependencies [f05b84e]
158
+ - Updated dependencies [9b4b952]
159
+ - Updated dependencies [341bfb5]
160
+ - Updated dependencies [2f947e4]
161
+ - Updated dependencies [7d46648]
162
+ - Updated dependencies [9b53d72]
163
+ - Updated dependencies [bb4aa25]
164
+ - Updated dependencies [75f1cdf]
165
+ - Updated dependencies [662bdf9]
166
+ - Updated dependencies [059a052]
167
+ - Updated dependencies [53642d4]
168
+ - Updated dependencies [8aae006]
169
+ - Updated dependencies [c6cfdf1]
170
+ - Updated dependencies [d147a13]
171
+ - Updated dependencies [c6aaed8]
172
+ - Updated dependencies [263f885]
173
+ - Updated dependencies [dc334da]
174
+ - @object-ui/components@17.0.0
175
+ - @object-ui/plugin-detail@17.0.0
176
+ - @object-ui/i18n@17.0.0
177
+ - @object-ui/fields@17.0.0
178
+ - @object-ui/react@17.0.0
179
+ - @object-ui/types@17.0.0
180
+ - @object-ui/core@17.0.0
181
+
182
+ ## 16.1.0
183
+
184
+ ### Patch Changes
185
+
186
+ - 7cf4051: chore(deps): align every `@objectstack/*` dependency to `^16.0.0-rc.0`
187
+
188
+ Bumps `@objectstack/spec` / `client` / `formula` / `lint` from `^15.1.1` to the
189
+ `16.0.0-rc.0` pre-release across the workspace (root + `apps/console` +
190
+ `apps/site` + all consuming packages). ObjectUI's own packages are already on
191
+ major 16, so this closes the 15↔16 skew between ObjectUI and the `@objectstack`
192
+ contract libraries (which publish in lockstep with `spec`).
193
+
194
+ This is a dependency alignment, not a behavioral migration: the full workspace
195
+ build (43/43) and the `@objectstack`-consuming package test suites
196
+ (`core` / `app-shell` / `data-objectstack` / `plugin-form` / `types`) are green
197
+ against `16.0.0-rc.0` with no source changes required.
198
+
199
+ Practical effect: `@objectstack/client@16.0.0-rc.0` now ships
200
+ `data.batchTransaction` (framework #3271), so `ObjectStackAdapter`'s feature
201
+ detect (`typeof client.data.batchTransaction === 'function'`) routes
202
+ master-detail cross-object saves through the typed SDK method instead of the
203
+ raw `fetch('/api/v1/batch')` fallback — realizing the "verify SDK path" half of
204
+ #2694. The raw-fetch branch stays as a defensive fallback (removal tracked in
205
+ #2694).
206
+
207
+ - 803558e: feat(data): thread the host's authenticated fetch into `provider: 'api'` data sources (#2725)
208
+
209
+ `provider: 'api'` view data sources went through a bare `globalThis.fetch`, so
210
+ custom endpoints (gantt composite trees, report aggregates) carried only
211
+ same-origin cookies while every native `/api/v1/*` request carried
212
+ `Authorization: Bearer` — the moment cookie HMAC verification failed (dev
213
+ restart rotating the fallback auth secret, cookie expiry/rotation in prod)
214
+ those views 401'd while the rest of the app kept working.
215
+
216
+ - **`@object-ui/react`** — `SchemaRendererProvider` accepts an optional
217
+ `apiFetch`; nested providers inherit it from their parent so re-wrapped
218
+ subtrees (react pages, preview surfaces) keep the host's authentication.
219
+ `useViewData` defaults the api-provider adapter's fetch to the context
220
+ `apiFetch` (explicit `adapterOptions.fetch` still wins).
221
+ - **`@object-ui/auth`** — `createAuthenticatedFetch` gains a
222
+ `sameOriginOnly` option: cross-origin URLs pass through to the bare fetch
223
+ with no `Authorization` / `X-Tenant-ID` / `Accept-Language`, so metadata-
224
+ supplied third-party URLs never see the platform token.
225
+ - **`@object-ui/app-shell`** — the console wires
226
+ `createAuthenticatedFetch({ sameOriginOnly: true })` (settle-signal wrapped)
227
+ as `apiFetch` on the root `SchemaRendererProvider`.
228
+ - **`@object-ui/plugin-gantt`** — `ObjectGantt` resolves its api-provider
229
+ DataSource with the context `apiFetch`, covering reads and write-backs.
230
+
231
+ Behaviour is unchanged for hosts that don't provide `apiFetch` (bare fetch +
232
+ cookies, as before).
233
+
234
+ - 5606ca8: fix(plugin-gantt): align the task-list header with the row date columns
235
+
236
+ Every data row reserves a trailing w-6 (+4px) slot for the 「→」 open-details
237
+ button whenever `onTaskClick` is live, but the header row didn't — so the
238
+ 开始/结束 header labels sat 28px to the right of the date values they caption.
239
+ The header now mirrors the slot under the same condition.
240
+
241
+ - 1100a8b: feat(plugin-gantt)!: remove the 移动端二维码 (mobile QR share) context-menu item
242
+
243
+ The QR-share feature is removed outright: the context-menu item, the QR dialog,
244
+ the `taskUrl` prop on `GanttView`, the URL wiring in `ObjectGantt`, the
245
+ `gantt.menu.qrcode` / `gantt.qr.*` i18n keys (en/zh) and the `qrcode`
246
+ dependency are all deleted. It baked one consumer's app-specific requirement
247
+ (scan-to-open on mobile) into the generic gantt renderer, and what it encoded —
248
+ the desktop console record URL — was not even the right target for that
249
+ requirement. Apps that need scan-to-mobile flows should implement them
250
+ app-side against their own mobile surface.
251
+
252
+ - 7a5750e: chore(lint): clear the baseline lint errors in plugin-gantt (objectui#2713 Wave 3)
253
+
254
+ Wave 3 of the #2713 lint-gate restoration. `@object-ui/plugin-gantt` was red at
255
+ baseline on `main`; cleared every **error** (no behavior change; warnings out of
256
+ scope). 18 of the 21 were in the demo harness:
257
+
258
+ - **`react-hooks/static-components` (demo, ×8)** — the `Swatch` legend cell was
259
+ defined inside `ManufacturingLegend`; hoisted to module scope (purely
260
+ props-driven, so nothing from render scope is captured).
261
+ - **`react-hooks/rules-of-hooks` (demo, ×9)** — `App` had a `?quickfilter=1`
262
+ early return before ~9 hooks; moved that route below all hooks so hook order
263
+ is stable (the quick-filter branch renders `<QuickFilterDemo />` regardless).
264
+ - **`react-hooks/purity` (demo, ×1)** — the demo render-timer necessarily reads
265
+ `performance.now()` during render (paired with an effect that measures elapsed
266
+ ms); justified scoped disable, demo-only.
267
+ - **`object-ui/no-synthetic-event-trigger`** (`GanttView.interactions.test`) —
268
+ the Escape-closes-menu test dispatched a raw `window` `KeyboardEvent`; switched
269
+ to `fireEvent.keyDown(window, { key: 'Escape' })` (the pattern already used
270
+ elsewhere in the same file). The window-level Escape listener behaves
271
+ identically.
272
+ - **`no-useless-assignment`** (`GanttView`, `ObjectGantt`) — dropped two dead
273
+ initializers (`ok`, `options`) that their exhaustive `try`/`catch` and
274
+ `if`/`else` branches overwrite before reading.
275
+
276
+ - Updated dependencies [0318118]
277
+ - Updated dependencies [1c8935a]
278
+ - Updated dependencies [af1b0db]
279
+ - Updated dependencies [8b8b744]
280
+ - Updated dependencies [7cf4051]
281
+ - Updated dependencies [803558e]
282
+ - Updated dependencies [aefcf39]
283
+ - Updated dependencies [2e7d7f0]
284
+ - Updated dependencies [ef14f69]
285
+ - Updated dependencies [94d4876]
286
+ - Updated dependencies [53513a4]
287
+ - Updated dependencies [1100a8b]
288
+ - Updated dependencies [7abe4cd]
289
+ - Updated dependencies [69fa5d1]
290
+ - Updated dependencies [f329ec5]
291
+ - Updated dependencies [549c67d]
292
+ - Updated dependencies [ebe6494]
293
+ - Updated dependencies [2b17339]
294
+ - Updated dependencies [31b77d4]
295
+ - Updated dependencies [6d4fbe6]
296
+ - Updated dependencies [0a3710b]
297
+ - Updated dependencies [f80aaf2]
298
+ - Updated dependencies [62b9ab5]
299
+ - Updated dependencies [14cb729]
300
+ - Updated dependencies [1629313]
301
+ - Updated dependencies [29c6040]
302
+ - Updated dependencies [faebac3]
303
+ - Updated dependencies [2331ac9]
304
+ - Updated dependencies [199fa83]
305
+ - Updated dependencies [eee4ded]
306
+ - Updated dependencies [3b2e4d9]
307
+ - @object-ui/fields@16.1.0
308
+ - @object-ui/i18n@16.1.0
309
+ - @object-ui/core@16.1.0
310
+ - @object-ui/types@16.1.0
311
+ - @object-ui/react@16.1.0
312
+ - @object-ui/plugin-detail@16.1.0
313
+ - @object-ui/components@16.1.0
314
+
3
315
  ## 16.0.0
4
316
 
5
317
  ### Patch Changes
@@ -107,6 +107,21 @@ export type GanttViewMode = 'day' | 'week' | 'month' | 'quarter' | 'year';
107
107
  */
108
108
  export declare const NOMINAL_DAYS: Record<GanttViewMode, number>;
109
109
  export declare const MS_PER_DAY: number;
110
+ /**
111
+ * "Shifted clock" for business-time-zone rendering (业务时区渲染): translate
112
+ * real instants into a display space where the browser's local clock reads
113
+ * the CONFIGURED zone's wall time. All existing local-clock logic — shift
114
+ * bands, day columns, snapping, the today line, date labels — then renders
115
+ * that zone correctly for every viewer; writes translate back so persisted
116
+ * data stays real instants. Per-instant offsets keep DST zones close;
117
+ * fixed-offset zones (Asia/Shanghai) are exact.
118
+ */
119
+ export declare function makeTzShift(timeZone?: string): {
120
+ delta: number;
121
+ to: (d: Date) => Date;
122
+ from: (d: Date) => Date;
123
+ now: () => Date;
124
+ };
110
125
  /** Floor a date to the start of its column unit (Monday for weeks). */
111
126
  export declare function startOfUnit(date: Date, mode: GanttViewMode): Date;
112
127
  /** Add whole column units; month/quarter clamp the day (Jan 31 + 1mo = Feb 28). */
@@ -117,6 +132,23 @@ export interface GanttMarker {
117
132
  label?: string;
118
133
  color?: string;
119
134
  }
135
+ /**
136
+ * Per-interaction switches (交互开关) — the DHTMLX `drag_move` / `drag_resize` /
137
+ * `drag_progress` / `drag_links` model. Each defaults to true; flipping one off
138
+ * hides that affordance everywhere while the others keep working. They only
139
+ * NARROW what the write callbacks / `readOnly` / row locks already allow —
140
+ * never widen.
141
+ */
142
+ export interface GanttInteractions {
143
+ /** Bar / subtree dragging (move along the timeline). */
144
+ move?: boolean;
145
+ /** Edge resize grips (change duration). */
146
+ resize?: boolean;
147
+ /** The progress drag handle. */
148
+ progress?: boolean;
149
+ /** Dependency UI: drag-to-link dots AND the create/delete menu entries. */
150
+ link?: boolean;
151
+ }
120
152
  export interface GanttViewProps {
121
153
  tasks: GanttTask[];
122
154
  /** Initial timeline granularity (also switchable from the toolbar). */
@@ -126,13 +158,6 @@ export interface GanttViewProps {
126
158
  /** Extra vertical marker lines rendered like the Today marker. */
127
159
  markers?: GanttMarker[];
128
160
  onTaskClick?: (task: GanttTask) => void;
129
- /**
130
- * Absolute detail-page URL for a task, used by the context menu's
131
- * 「移动端二维码」 item (QR + copy link for opening on a phone). Return
132
- * null/undefined for rows without a detail page (synthetic group rows) to
133
- * hide the item.
134
- */
135
- taskUrl?: (task: GanttTask) => string | null | undefined;
136
161
  onTaskUpdate?: (task: GanttTask, changes: Partial<Pick<GanttTask, 'title' | 'start' | 'end' | 'progress'>>) => void;
137
162
  onTaskDelete?: (task: GanttTask) => void;
138
163
  /** Notified when the user switches granularity from the toolbar. */
@@ -274,6 +299,49 @@ export interface GanttViewProps {
274
299
  onRefresh?: () => void | Promise<void>;
275
300
  /** Disables the refresh button while a host-driven reload is in flight. */
276
301
  refreshing?: boolean;
302
+ /**
303
+ * Whether the data source can persist dependency LINK TYPES (fs/ss/ff/sf).
304
+ * Default true. Set false when dependencies are stored as bare predecessor
305
+ * ids (仅存紧前 id,无类型位) — the link context menu then hides the type
306
+ * switcher (a switch would be silently reverted on refetch) and drag-created
307
+ * links are always FS regardless of which endpoints were connected.
308
+ */
309
+ dependencyTypes?: boolean;
310
+ /**
311
+ * Business time zone for rendering (业务时区), an IANA name like
312
+ * 'Asia/Shanghai'. The chart's calendar math — shift bands, day columns,
313
+ * drag snapping, the today line, start/end labels — renders this zone's
314
+ * wall time for EVERY viewer instead of the browser's; without it, a
315
+ * viewer in another zone sees bands and dates shifted (班次错位). Writes
316
+ * still persist real instants. Note: dates handed to `onBeforeTaskUpdate`
317
+ * are in this display space (durations/deltas are unaffected).
318
+ */
319
+ timeZone?: string;
320
+ /**
321
+ * Base name for exported files (导出文件名), e.g. the view or object label —
322
+ * "排班计划甘特图" exports as `排班计划甘特图-20260719-1530.png`. Falls back
323
+ * to "gantt". The timestamp suffix keeps repeated exports from silently
324
+ * overwriting each other in the Downloads folder.
325
+ */
326
+ exportFileName?: string;
327
+ /**
328
+ * Per-interaction switches (交互开关). Omit for all-on. See
329
+ * {@link GanttInteractions}: e.g. `{ resize: false }` keeps bars movable and
330
+ * links drawable but pins every duration; `{ link: false }` removes the
331
+ * dependency drag-dots and the create/delete menu entries. Subject to
332
+ * `readOnly` and per-row locks — these switches only narrow.
333
+ */
334
+ interactions?: GanttInteractions;
335
+ /**
336
+ * Veto hook for task edits (the MS-Project/Bryntum `beforeTaskDrag` /
337
+ * `beforeTaskEdit` pattern). Runs on the central commit path — bar drag,
338
+ * edge resize, group move, progress drag, inline edit, conflict
339
+ * auto-reschedule — AFTER the built-in guards (locked rows never reach it).
340
+ * Return false (sync or async) to cancel that task's update; other tasks in
341
+ * the same batch still apply. Undo/redo bypasses it: restoring a previous
342
+ * state must not be vetoable.
343
+ */
344
+ onBeforeTaskUpdate?: (task: GanttTask, changes: Partial<Pick<GanttTask, 'title' | 'start' | 'end' | 'progress'>>) => boolean | Promise<boolean>;
277
345
  }
278
346
  /** Persisted layout snapshot written by the "保存布局" toolbar button. */
279
347
  export interface GanttLayout {
@@ -290,5 +358,5 @@ export interface GanttLayout {
290
358
  */
291
359
  collapsedIds?: string[];
292
360
  }
293
- export declare function GanttView({ tasks, viewMode: viewModeProp, startDate, endDate, markers, onTaskClick, taskUrl, onTaskUpdate: onTaskUpdateProp, onTaskDelete: onTaskDeleteProp, onViewChange, onDependencyCreate: onDependencyCreateProp, onBeforeDependencyCreate, onDependencyDelete: onDependencyDeleteProp, onTaskReorder: onTaskReorderProp, className, inlineEdit: inlineEditProp, autoSchedule: autoScheduleProp, rescheduleOnConflict: rescheduleOnConflictProp, criticalPathDefault, workingCalendar, shiftSegments, showBaselines, readOnly, mobileReadOnly, groupBy, ungroupedLabel, defaultCollapsedDepth, summaryExtent, persistLayoutKey, onLayoutChange, onRefresh, refreshing, }: GanttViewProps): React.JSX.Element;
361
+ export declare function GanttView({ tasks: tasksProp, viewMode: viewModeProp, startDate: startDateProp, endDate: endDateProp, markers: markersProp, onTaskClick, onTaskUpdate: onTaskUpdateProp, onTaskDelete: onTaskDeleteProp, onViewChange, onDependencyCreate: onDependencyCreateProp, onBeforeDependencyCreate, onDependencyDelete: onDependencyDeleteProp, onTaskReorder: onTaskReorderProp, className, inlineEdit: inlineEditProp, autoSchedule: autoScheduleProp, rescheduleOnConflict: rescheduleOnConflictProp, criticalPathDefault, workingCalendar, shiftSegments, showBaselines, readOnly, mobileReadOnly, groupBy, ungroupedLabel, defaultCollapsedDepth, summaryExtent, persistLayoutKey, onLayoutChange, onRefresh, refreshing, dependencyTypes, timeZone, exportFileName, interactions, onBeforeTaskUpdate, }: GanttViewProps): React.JSX.Element;
294
362
  //# sourceMappingURL=GanttView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GanttView.d.ts","sourceRoot":"","sources":["../src/GanttView.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAiC9B,OAAO,EAA6E,KAAK,eAAe,EAAyB,MAAM,cAAc,CAAA;AACrJ,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAahE;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACpC,MAAM,GAAG,aAAa,GAAG,cAAc,CAOzC;AAgCD;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtD,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,aAAa,CAAA;CACrB;AAED,8EAA8E;AAC9E,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,qBAAqB,CAAC;AAEtE;;;GAGG;AACH,MAAM,MAAM,aAAa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T,UAAkB,EAClB,eAAsB,EACtB,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,kBAAkB,GACnB,EAAE,cAAc,qBA+tIhB"}
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { ObjectGridSchema, DataSource } from '@object-ui/types';
3
- import { GanttDependency, GanttTaskType } from './GanttView';
3
+ import { GanttTask, GanttDependency, GanttTaskType } from './GanttView';
4
4
  /**
5
5
  * One quick-filter dimension (快速筛选维度). Generic by design: the page configures
6
6
  * which record fields become filter dropdowns; the plugin resolves each one's
@@ -33,6 +33,13 @@ export interface ObjectGanttProps {
33
33
  onRowClick?: (record: any) => void;
34
34
  onEdit?: (record: any) => void;
35
35
  onDelete?: (record: any) => void;
36
+ /**
37
+ * Veto hook for task edits, forwarded to {@link GanttView}. Called with the
38
+ * gantt task and the pending changes on every commit path (drag, resize,
39
+ * group move, progress, inline edit, auto-reschedule); return false (sync or
40
+ * async) to cancel that task's update before it reaches the data source.
41
+ */
42
+ onBeforeTaskUpdate?: (task: GanttTask, changes: Partial<Pick<GanttTask, 'title' | 'start' | 'end' | 'progress'>>) => boolean | Promise<boolean>;
36
43
  }
37
44
  export declare const ObjectGantt: React.FC<ObjectGanttProps>;
38
45
  //# sourceMappingURL=ObjectGantt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectGantt.d.ts","sourceRoot":"","sources":["../src/ObjectGantt.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAyB,MAAM,kBAAkB,CAAC;AA0B5F,OAAO,EAA6B,KAAK,eAAe,EAAsB,KAAK,aAAa,EAAsB,MAAM,aAAa,CAAC;AAO1I;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7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