@object-ui/plugin-gantt 17.3.0 → 17.6.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 +668 -0
- package/README.md +350 -127
- package/dist/GanttView.d.ts +50 -36
- package/dist/GanttView.d.ts.map +1 -1
- package/dist/ObjectGantt.d.ts +2 -2
- package/dist/ObjectGantt.d.ts.map +1 -1
- package/dist/QuickFilterBar.d.ts +16 -4
- package/dist/QuickFilterBar.d.ts.map +1 -1
- package/dist/ResourceWorkload.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1136 -1098
- package/dist/index.umd.cjs +12 -11
- package/dist/scheduling.d.ts +7 -7
- package/dist/shifts.d.ts +16 -13
- package/dist/shifts.d.ts.map +1 -1
- package/dist/useGanttTranslation.d.ts.map +1 -1
- package/dist/workload.d.ts +1 -1
- package/package.json +13 -13
package/dist/GanttView.d.ts
CHANGED
|
@@ -28,6 +28,15 @@ export declare function resolveBarDragMode(clientX: number, rect: {
|
|
|
28
28
|
* - `ss` start-to-start, `ff` finish-to-finish, `sf` start-to-finish
|
|
29
29
|
*/
|
|
30
30
|
export type GanttLinkType = 'fs' | 'ss' | 'ff' | 'sf';
|
|
31
|
+
/**
|
|
32
|
+
* Why the gantt's built-in drop-target policy refuses a dependency link
|
|
33
|
+
* (objectui#4158). These names are the leaves of `gantt.link.rejected.*`, so
|
|
34
|
+
* the message a user reads is selected by the same branch that did the
|
|
35
|
+
* refusing. Not a host-facing rejection channel — a host's own veto via
|
|
36
|
+
* `onBeforeDependencyCreate` carries a reason only the host knows, and
|
|
37
|
+
* surfacing that is a separate contract.
|
|
38
|
+
*/
|
|
39
|
+
export type GanttLinkRejection = 'self' | 'locked' | 'group' | 'cycle';
|
|
31
40
|
export interface GanttDependencyObject {
|
|
32
41
|
id: string | number;
|
|
33
42
|
type?: GanttLinkType;
|
|
@@ -47,9 +56,9 @@ export interface GanttTask {
|
|
|
47
56
|
progress: number;
|
|
48
57
|
color?: string;
|
|
49
58
|
/**
|
|
50
|
-
* Per-task alert stroke
|
|
59
|
+
* Per-task alert stroke. When set, the bar/milestone/summary
|
|
51
60
|
* is outlined in this color (border + 2px halo) without touching its fill —
|
|
52
|
-
* e.g. red for
|
|
61
|
+
* e.g. red for overdue, amber for due-soon, unset for normal. Maps from the view's
|
|
53
62
|
* `borderColorField` in ObjectGantt. The critical-path overlay, when active,
|
|
54
63
|
* takes precedence on the rows it marks.
|
|
55
64
|
*/
|
|
@@ -61,16 +70,17 @@ export interface GanttTask {
|
|
|
61
70
|
/**
|
|
62
71
|
* Node kind. Defaults to a leaf `task` (or `summary` automatically when it has
|
|
63
72
|
* children). Set `'group'` to render a pure tree header — expandable/collapsible
|
|
64
|
-
* like a summary but with NO timeline bar (
|
|
73
|
+
* like a summary but with NO timeline bar (for project / product style pure
|
|
74
|
+
* grouping levels: a tree on the left, no bar on the right).
|
|
65
75
|
* Its children still render their own bars normally.
|
|
66
76
|
*/
|
|
67
77
|
type?: GanttTaskType;
|
|
68
78
|
/**
|
|
69
|
-
* Per-node lock (
|
|
79
|
+
* Per-node lock (view-only / click-through). When true this row is view-only: its bar can't be
|
|
70
80
|
* dragged/resized, progress can't be dragged, no dependency can be drawn from
|
|
71
81
|
* it, and inline-edit / context-menu edit+delete are hidden. Clicking the bar
|
|
72
82
|
* (onTaskClick — open drawer / jump) still works. Independent of the global
|
|
73
|
-
* `readOnly`; use to lock individual levels (e.g.
|
|
83
|
+
* `readOnly`; use to lock individual levels (e.g. work orders) while others stay
|
|
74
84
|
* editable. Maps from the view's `lockField` in ObjectGantt.
|
|
75
85
|
*/
|
|
76
86
|
locked?: boolean;
|
|
@@ -81,7 +91,7 @@ export interface GanttTask {
|
|
|
81
91
|
baselineStart?: Date;
|
|
82
92
|
baselineEnd?: Date;
|
|
83
93
|
/**
|
|
84
|
-
* Extra label/value rows for the hover tooltip
|
|
94
|
+
* Extra label/value rows for the hover tooltip, in display order.
|
|
85
95
|
* Populated from the view's `tooltipFields` config (resolved + formatted by
|
|
86
96
|
* ObjectGantt). When present they replace the default date·duration·progress
|
|
87
97
|
* line in the tooltip.
|
|
@@ -97,7 +107,7 @@ export interface GanttTask {
|
|
|
97
107
|
*/
|
|
98
108
|
hasOwnDates?: boolean;
|
|
99
109
|
}
|
|
100
|
-
/** Timeline granularity — one column per day, week, month, or
|
|
110
|
+
/** Timeline granularity — one column per day, week, month, quarter, or year. */
|
|
101
111
|
export type GanttViewMode = 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
102
112
|
/**
|
|
103
113
|
* Nominal days represented by one column at each granularity. Sets the zoom
|
|
@@ -108,7 +118,7 @@ export type GanttViewMode = 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
|
108
118
|
export declare const NOMINAL_DAYS: Record<GanttViewMode, number>;
|
|
109
119
|
export declare const MS_PER_DAY: number;
|
|
110
120
|
/**
|
|
111
|
-
* "Shifted clock" for business-time-zone rendering
|
|
121
|
+
* "Shifted clock" for business-time-zone rendering: translate
|
|
112
122
|
* real instants into a display space where the browser's local clock reads
|
|
113
123
|
* the CONFIGURED zone's wall time. All existing local-clock logic — shift
|
|
114
124
|
* bands, day columns, snapping, the today line, date labels — then renders
|
|
@@ -133,7 +143,7 @@ export interface GanttMarker {
|
|
|
133
143
|
color?: string;
|
|
134
144
|
}
|
|
135
145
|
/**
|
|
136
|
-
* Per-interaction switches
|
|
146
|
+
* Per-interaction switches — the DHTMLX `drag_move` / `drag_resize` /
|
|
137
147
|
* `drag_progress` / `drag_links` model. Each defaults to true; flipping one off
|
|
138
148
|
* hides that affordance everywhere while the others keep working. They only
|
|
139
149
|
* NARROW what the write callbacks / `readOnly` / row locks already allow —
|
|
@@ -176,7 +186,8 @@ export interface GanttViewProps {
|
|
|
176
186
|
onBeforeDependencyCreate?: (source: GanttTask, target: GanttTask, type: GanttLinkType) => boolean;
|
|
177
187
|
/**
|
|
178
188
|
* Enables dependency removal: right-clicking a dependency link opens a menu
|
|
179
|
-
* with "
|
|
189
|
+
* with a "Remove dependency" entry (`gantt.menu.removeDependency`) and a type
|
|
190
|
+
* switch. Called with the source/target tasks of the
|
|
180
191
|
* removed link (target no longer depends on source).
|
|
181
192
|
*/
|
|
182
193
|
onDependencyDelete?: (source: GanttTask, target: GanttTask) => void;
|
|
@@ -191,17 +202,18 @@ export interface GanttViewProps {
|
|
|
191
202
|
inlineEdit?: boolean;
|
|
192
203
|
/**
|
|
193
204
|
* Show the "auto-schedule" toolbar button. Clicking it runs a one-shot
|
|
194
|
-
* dependency-driven reschedule of the whole project (
|
|
205
|
+
* dependency-driven reschedule of the whole project (forward-only): every successor is
|
|
195
206
|
* pushed later until its link constraints hold, preserving durations, and the
|
|
196
207
|
* resulting date changes are emitted via `onTaskUpdate`. Requires onTaskUpdate.
|
|
197
208
|
*/
|
|
198
209
|
autoSchedule?: boolean;
|
|
199
210
|
/**
|
|
200
|
-
* After a bar drag/resize, validate the move against dependency constraints
|
|
201
|
-
*
|
|
211
|
+
* After a bar drag/resize, validate the move against dependency constraints.
|
|
212
|
+
* If the new position would violate a link — the task moved
|
|
202
213
|
* earlier than a predecessor allows, or its move pushes successors past their
|
|
203
|
-
* constraints — a confirmation prompts to
|
|
204
|
-
*
|
|
214
|
+
* constraints — a confirmation prompts to "Auto-reschedule"
|
|
215
|
+
* (`gantt.conflict.confirm` — cascade-reschedule the affected tasks,
|
|
216
|
+
* preserving durations) or keep the overlap. Requires
|
|
205
217
|
* onTaskUpdate and only fires when links exist. Ignored in readOnly.
|
|
206
218
|
*/
|
|
207
219
|
rescheduleOnConflict?: boolean;
|
|
@@ -214,9 +226,9 @@ export interface GanttViewProps {
|
|
|
214
226
|
*/
|
|
215
227
|
workingCalendar?: WorkingCalendar;
|
|
216
228
|
/**
|
|
217
|
-
* Shift segmentation
|
|
218
|
-
* `day`, each day column is replaced by one column per band (
|
|
219
|
-
* the upper header tier shows the
|
|
229
|
+
* Shift segmentation. When set AND the active granularity is
|
|
230
|
+
* `day`, each day column is replaced by one column per band (day | night | …),
|
|
231
|
+
* and the upper header tier shows the shift-day (starting at `dayStart`, e.g.
|
|
220
232
|
* 08:00). Drag/resize then snaps to band boundaries instead of whole days.
|
|
221
233
|
* Off by default → existing gantts are unaffected (parity with `folding`).
|
|
222
234
|
* Mutually exclusive with weekend/holiday folding (segmenting wins).
|
|
@@ -235,7 +247,7 @@ export interface GanttViewProps {
|
|
|
235
247
|
*/
|
|
236
248
|
readOnly?: boolean;
|
|
237
249
|
/**
|
|
238
|
-
* Mobile read-only
|
|
250
|
+
* Mobile read-only. When true, the chart auto-enters read-only
|
|
239
251
|
* mode on narrow viewports (< 640px) so touch users get a clean, scrollable
|
|
240
252
|
* thumbnail of the schedule instead of error-prone drag editing — equivalent
|
|
241
253
|
* to `readOnly` but scoped to small screens. Wider viewports are unaffected.
|
|
@@ -243,7 +255,7 @@ export interface GanttViewProps {
|
|
|
243
255
|
*/
|
|
244
256
|
mobileReadOnly?: boolean;
|
|
245
257
|
/**
|
|
246
|
-
* Dynamic grouping accessor
|
|
258
|
+
* Dynamic grouping accessor. When provided, leaf tasks are
|
|
247
259
|
* bucketed by the returned `key` and rendered beneath one synthesized summary
|
|
248
260
|
* row per group — the original `parent` hierarchy is replaced by the grouping.
|
|
249
261
|
* Return `null` to drop a task into the "ungrouped" bucket. Grouping is purely
|
|
@@ -257,18 +269,19 @@ export interface GanttViewProps {
|
|
|
257
269
|
/** Label for the bucket collecting tasks whose `groupBy` returns null. */
|
|
258
270
|
ungroupedLabel?: string;
|
|
259
271
|
/**
|
|
260
|
-
* Auto-collapse tree nodes at or below this depth on first render
|
|
272
|
+
* Auto-collapse tree nodes at or below this depth on first render.
|
|
261
273
|
* Depth is 0-indexed: roots are 0, their children 1, etc. Every node whose
|
|
262
274
|
* depth is `>= defaultCollapsedDepth` AND which has children is seeded into the
|
|
263
275
|
* collapsed set once, so its subtree starts hidden. The user can still expand
|
|
264
|
-
* any of them — this only sets the initial state. Example: a
|
|
265
|
-
* tree where
|
|
266
|
-
*
|
|
276
|
+
* any of them — this only sets the initial state. Example: a
|
|
277
|
+
* project→product→production-plan→work-order tree where the production plan
|
|
278
|
+
* sits at depth 2 uses `defaultCollapsedDepth={2}` to start
|
|
279
|
+
* with every production plan (and its work-order children) folded. Omit (or pass a depth past
|
|
267
280
|
* the deepest node) to start fully expanded.
|
|
268
281
|
*/
|
|
269
282
|
defaultCollapsedDepth?: number;
|
|
270
283
|
/**
|
|
271
|
-
* How a summary bar's span is computed
|
|
284
|
+
* How a summary bar's span is computed. `'children'` (default)
|
|
272
285
|
* rolls up from the children — min start / max end / duration-weighted
|
|
273
286
|
* progress — ignoring the summary task's own dates. `'self'` draws the bar
|
|
274
287
|
* from the task's OWN start/end/progress; tasks flagged `hasOwnDates: false`
|
|
@@ -280,18 +293,19 @@ export interface GanttViewProps {
|
|
|
280
293
|
/**
|
|
281
294
|
* Persist the user's layout tweaks (granularity + column/task-list widths)
|
|
282
295
|
* to `localStorage` under this key. On mount the saved layout is restored;
|
|
283
|
-
* the "
|
|
296
|
+
* the "Save layout" toolbar button (`gantt.toolbar.saveLayout`) writes the
|
|
297
|
+
* current layout. Omit to disable
|
|
284
298
|
* persistence. The button still appears when `onLayoutChange` is set.
|
|
285
299
|
*/
|
|
286
300
|
persistLayoutKey?: string;
|
|
287
301
|
/**
|
|
288
|
-
* Notified when the user saves the current layout
|
|
302
|
+
* Notified when the user saves the current layout. Receives the
|
|
289
303
|
* snapshot `{ viewMode, columnWidth, taskListCollapsed }`. Use this to persist
|
|
290
304
|
* layout in your own store instead of (or alongside) `persistLayoutKey`.
|
|
291
305
|
*/
|
|
292
306
|
onLayoutChange?: (layout: GanttLayout) => void;
|
|
293
307
|
/**
|
|
294
|
-
* Show a manual refresh button in the toolbar (
|
|
308
|
+
* Show a manual refresh button in the toolbar (`gantt.toolbar.refresh`). The host re-reads
|
|
295
309
|
* its data source so server-computed fields (rollups, alert colors) and
|
|
296
310
|
* other users' edits reach the chart without a full page reload. Omit to
|
|
297
311
|
* hide the button (e.g. inline `value` data has nothing to re-read).
|
|
@@ -302,30 +316,30 @@ export interface GanttViewProps {
|
|
|
302
316
|
/**
|
|
303
317
|
* Whether the data source can persist dependency LINK TYPES (fs/ss/ff/sf).
|
|
304
318
|
* Default true. Set false when dependencies are stored as bare predecessor
|
|
305
|
-
* ids (
|
|
319
|
+
* ids (predecessor ids only, no type slot) — the link context menu then hides the type
|
|
306
320
|
* switcher (a switch would be silently reverted on refetch) and drag-created
|
|
307
321
|
* links are always FS regardless of which endpoints were connected.
|
|
308
322
|
*/
|
|
309
323
|
dependencyTypes?: boolean;
|
|
310
324
|
/**
|
|
311
|
-
* Business time zone for rendering
|
|
325
|
+
* Business time zone for rendering, an IANA name like
|
|
312
326
|
* 'Asia/Shanghai'. The chart's calendar math — shift bands, day columns,
|
|
313
327
|
* drag snapping, the today line, start/end labels — renders this zone's
|
|
314
328
|
* wall time for EVERY viewer instead of the browser's; without it, a
|
|
315
|
-
* viewer in another zone sees bands and dates
|
|
329
|
+
* viewer in another zone sees bands and dates misaligned. Writes
|
|
316
330
|
* still persist real instants. Note: dates handed to `onBeforeTaskUpdate`
|
|
317
331
|
* are in this display space (durations/deltas are unaffected).
|
|
318
332
|
*/
|
|
319
333
|
timeZone?: string;
|
|
320
334
|
/**
|
|
321
|
-
* Base name for exported files
|
|
322
|
-
* "
|
|
335
|
+
* Base name for exported files, e.g. the view or object label —
|
|
336
|
+
* "Shift Plan Gantt" exports as `Shift Plan Gantt-20260719-1530.png`. Falls back
|
|
323
337
|
* to "gantt". The timestamp suffix keeps repeated exports from silently
|
|
324
338
|
* overwriting each other in the Downloads folder.
|
|
325
339
|
*/
|
|
326
340
|
exportFileName?: string;
|
|
327
341
|
/**
|
|
328
|
-
* Per-interaction switches
|
|
342
|
+
* Per-interaction switches. Omit for all-on. See
|
|
329
343
|
* {@link GanttInteractions}: e.g. `{ resize: false }` keeps bars movable and
|
|
330
344
|
* links drawable but pins every duration; `{ link: false }` removes the
|
|
331
345
|
* dependency drag-dots and the create/delete menu entries. Subject to
|
|
@@ -343,7 +357,7 @@ export interface GanttViewProps {
|
|
|
343
357
|
*/
|
|
344
358
|
onBeforeTaskUpdate?: (task: GanttTask, changes: Partial<Pick<GanttTask, 'title' | 'start' | 'end' | 'progress'>>) => boolean | Promise<boolean>;
|
|
345
359
|
}
|
|
346
|
-
/** Persisted layout snapshot written by the "
|
|
360
|
+
/** Persisted layout snapshot written by the "Save layout" toolbar button. */
|
|
347
361
|
export interface GanttLayout {
|
|
348
362
|
viewMode: GanttViewMode;
|
|
349
363
|
/** Effective day-column width in px, or null when auto-fit. */
|
|
@@ -352,7 +366,7 @@ export interface GanttLayout {
|
|
|
352
366
|
/** User-dragged task-list (name column) width in px, or null when auto-sized. */
|
|
353
367
|
taskListWidth?: number | null;
|
|
354
368
|
/**
|
|
355
|
-
* Ids of rows the user had collapsed when saving
|
|
369
|
+
* Ids of rows the user had collapsed when saving. Present (even
|
|
356
370
|
* empty) means the saved expand/collapse state wins over
|
|
357
371
|
* `defaultCollapsedDepth`; absent (older snapshots) leaves the default.
|
|
358
372
|
*/
|
package/dist/GanttView.d.ts.map
CHANGED
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"GanttView.d.ts","sourceRoot":"","sources":["../src/GanttView.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA8B9B,OAAO,EAAqF,KAAK,eAAe,EAAiD,MAAM,cAAc,CAAA;AACrL,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAchE;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE;I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tB,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,kBAAkB,GACnB,EAAE,cAAc,qBAuyIhB"}
|
package/dist/ObjectGantt.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { ObjectGridSchema, DataSource } from '@object-ui/types';
|
|
3
3
|
import { GanttTask, GanttDependency, GanttTaskType } from './GanttView';
|
|
4
4
|
/**
|
|
5
|
-
* One quick-filter dimension
|
|
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
|
|
7
7
|
* options from the object schema (select options / lookup reference records) so
|
|
8
8
|
* no business field names are baked into the (MIT) plugin.
|
|
@@ -14,7 +14,7 @@ export interface QuickFilterDef {
|
|
|
14
14
|
label?: string;
|
|
15
15
|
/**
|
|
16
16
|
* Explicit option override. Highest priority — use for fixed enums that are
|
|
17
|
-
* not modeled as select options (e.g.
|
|
17
|
+
* not modeled as select options (e.g. a work-order category). Plain strings become
|
|
18
18
|
* value === label; objects allow a distinct display label.
|
|
19
19
|
*/
|
|
20
20
|
options?: Array<string | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectGantt.d.ts","sourceRoot":"","sources":["../src/ObjectGantt.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAwE,MAAM,OAAO,CAAC;AAE7F,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAyB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"ObjectGantt.d.ts","sourceRoot":"","sources":["../src/ObjectGantt.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAwE,MAAM,OAAO,CAAC;AAE7F,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAyB,MAAM,kBAAkB,CAAC;AAiC5F,OAAO,EAAa,K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CAisClD,CAAC"}
|
package/dist/QuickFilterBar.d.ts
CHANGED
|
@@ -13,14 +13,26 @@ export interface QuickFilterField {
|
|
|
13
13
|
/** Full option list (already resolved by the owner). */
|
|
14
14
|
options: QuickFilterOption[];
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Display strings for the bar. Every member is optional: `all`, `clear` and
|
|
18
|
+
* `empty` fall back to English defaults and an omitted `resultSummary` simply
|
|
19
|
+
* hides the summary, so a label is only ever *supplied* by the owner.
|
|
20
|
+
* The owning `ObjectGantt` passes translated values resolved from the
|
|
21
|
+
* `gantt.quickFilter.*` bundle namespace (objectstack#5427); the `Host:` key
|
|
22
|
+
* noted on each member is where that value comes from.
|
|
23
|
+
*/
|
|
16
24
|
export interface QuickFilterLabels {
|
|
17
|
-
/**
|
|
25
|
+
/** Select-all toggle and empty-selection trigger text. Host: `gantt.quickFilter.all`. */
|
|
18
26
|
all?: string;
|
|
19
|
-
/**
|
|
27
|
+
/** Clears every dimension. Host: `gantt.quickFilter.clear`. */
|
|
20
28
|
clear?: string;
|
|
21
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Builds the "showing N / M" summary; omit to hide the summary.
|
|
31
|
+
* Host: `gantt.quickFilter.resultSummary` (single-brace `{shown}` / `{total}`
|
|
32
|
+
* placeholders, resolved at the call site by a literal `.replace`).
|
|
33
|
+
*/
|
|
22
34
|
resultSummary?: (shown: number, total: number) => string;
|
|
23
|
-
/** Placeholder shown when a dimension resolved zero options. */
|
|
35
|
+
/** Placeholder shown when a dimension resolved zero options. Host: `gantt.quickFilter.empty`. */
|
|
24
36
|
empty?: string;
|
|
25
37
|
}
|
|
26
38
|
export interface QuickFilterBarProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuickFilterBar.d.ts","sourceRoot":"","sources":["../src/QuickFilterBar.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AACH,OAAO,KAAsC,MAAM,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AM,EAAE,CAAC,CAAC;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACpD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA4MD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+CxD,CAAC"}
|
|
@@ -7,7 +7,7 @@ import { GanttTask, GanttViewMode } from './GanttView';
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
|
-
* Resource / Workload view
|
|
10
|
+
* Resource / Workload view.
|
|
11
11
|
*
|
|
12
12
|
* A per-resource load histogram aligned to the same time columns the Gantt grid
|
|
13
13
|
* uses. Each resource gets a row; each column draws a bar whose height ∝ the
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEtE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,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