@object-ui/plugin-gantt 17.5.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.
@@ -56,9 +56,9 @@ export interface GanttTask {
56
56
  progress: number;
57
57
  color?: string;
58
58
  /**
59
- * Per-task alert stroke (逐任务预警描边). When set, the bar/milestone/summary
59
+ * Per-task alert stroke. When set, the bar/milestone/summary
60
60
  * is outlined in this color (border + 2px halo) without touching its fill —
61
- * e.g. red for 超期, amber for 临期, unset for normal. Maps from the view's
61
+ * e.g. red for overdue, amber for due-soon, unset for normal. Maps from the view's
62
62
  * `borderColorField` in ObjectGantt. The critical-path overlay, when active,
63
63
  * takes precedence on the rows it marks.
64
64
  */
@@ -70,16 +70,17 @@ export interface GanttTask {
70
70
  /**
71
71
  * Node kind. Defaults to a leaf `task` (or `summary` automatically when it has
72
72
  * children). Set `'group'` to render a pure tree header — expandable/collapsible
73
- * 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).
74
75
  * Its children still render their own bars normally.
75
76
  */
76
77
  type?: GanttTaskType;
77
78
  /**
78
- * Per-node lock (仅查看/跳转). When true this row is view-only: its bar can't be
79
+ * Per-node lock (view-only / click-through). When true this row is view-only: its bar can't be
79
80
  * dragged/resized, progress can't be dragged, no dependency can be drawn from
80
81
  * it, and inline-edit / context-menu edit+delete are hidden. Clicking the bar
81
82
  * (onTaskClick — open drawer / jump) still works. Independent of the global
82
- * `readOnly`; use to lock individual levels (e.g. 派工单) while others stay
83
+ * `readOnly`; use to lock individual levels (e.g. work orders) while others stay
83
84
  * editable. Maps from the view's `lockField` in ObjectGantt.
84
85
  */
85
86
  locked?: boolean;
@@ -90,7 +91,7 @@ export interface GanttTask {
90
91
  baselineStart?: Date;
91
92
  baselineEnd?: Date;
92
93
  /**
93
- * Extra label/value rows for the hover tooltip (悬浮详情), in display order.
94
+ * Extra label/value rows for the hover tooltip, in display order.
94
95
  * Populated from the view's `tooltipFields` config (resolved + formatted by
95
96
  * ObjectGantt). When present they replace the default date·duration·progress
96
97
  * line in the tooltip.
@@ -106,7 +107,7 @@ export interface GanttTask {
106
107
  */
107
108
  hasOwnDates?: boolean;
108
109
  }
109
- /** Timeline granularity — one column per day, week, month, or quarter. */
110
+ /** Timeline granularity — one column per day, week, month, quarter, or year. */
110
111
  export type GanttViewMode = 'day' | 'week' | 'month' | 'quarter' | 'year';
111
112
  /**
112
113
  * Nominal days represented by one column at each granularity. Sets the zoom
@@ -117,7 +118,7 @@ export type GanttViewMode = 'day' | 'week' | 'month' | 'quarter' | 'year';
117
118
  export declare const NOMINAL_DAYS: Record<GanttViewMode, number>;
118
119
  export declare const MS_PER_DAY: number;
119
120
  /**
120
- * "Shifted clock" for business-time-zone rendering (业务时区渲染): translate
121
+ * "Shifted clock" for business-time-zone rendering: translate
121
122
  * real instants into a display space where the browser's local clock reads
122
123
  * the CONFIGURED zone's wall time. All existing local-clock logic — shift
123
124
  * bands, day columns, snapping, the today line, date labels — then renders
@@ -142,7 +143,7 @@ export interface GanttMarker {
142
143
  color?: string;
143
144
  }
144
145
  /**
145
- * Per-interaction switches (交互开关) — the DHTMLX `drag_move` / `drag_resize` /
146
+ * Per-interaction switches — the DHTMLX `drag_move` / `drag_resize` /
146
147
  * `drag_progress` / `drag_links` model. Each defaults to true; flipping one off
147
148
  * hides that affordance everywhere while the others keep working. They only
148
149
  * NARROW what the write callbacks / `readOnly` / row locks already allow —
@@ -185,7 +186,8 @@ export interface GanttViewProps {
185
186
  onBeforeDependencyCreate?: (source: GanttTask, target: GanttTask, type: GanttLinkType) => boolean;
186
187
  /**
187
188
  * Enables dependency removal: right-clicking a dependency link opens a menu
188
- * with "移除依赖" and a type switch. Called with the source/target tasks of the
189
+ * with a "Remove dependency" entry (`gantt.menu.removeDependency`) and a type
190
+ * switch. Called with the source/target tasks of the
189
191
  * removed link (target no longer depends on source).
190
192
  */
191
193
  onDependencyDelete?: (source: GanttTask, target: GanttTask) => void;
@@ -200,17 +202,18 @@ export interface GanttViewProps {
200
202
  inlineEdit?: boolean;
201
203
  /**
202
204
  * Show the "auto-schedule" toolbar button. Clicking it runs a one-shot
203
- * dependency-driven reschedule of the whole project (顺延): every successor is
205
+ * dependency-driven reschedule of the whole project (forward-only): every successor is
204
206
  * pushed later until its link constraints hold, preserving durations, and the
205
207
  * resulting date changes are emitted via `onTaskUpdate`. Requires onTaskUpdate.
206
208
  */
207
209
  autoSchedule?: boolean;
208
210
  /**
209
- * After a bar drag/resize, validate the move against dependency constraints
210
- * (拖拽冲突校验). If the new position would violate a link — the task moved
211
+ * After a bar drag/resize, validate the move against dependency constraints.
212
+ * If the new position would violate a link — the task moved
211
213
  * earlier than a predecessor allows, or its move pushes successors past their
212
- * constraints — a confirmation prompts to 自动顺延 (cascade-reschedule the
213
- * affected tasks, preserving durations) or keep the overlap. Requires
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
214
217
  * onTaskUpdate and only fires when links exist. Ignored in readOnly.
215
218
  */
216
219
  rescheduleOnConflict?: boolean;
@@ -223,9 +226,9 @@ export interface GanttViewProps {
223
226
  */
224
227
  workingCalendar?: WorkingCalendar;
225
228
  /**
226
- * Shift segmentation (班次/排班分段). When set AND the active granularity is
227
- * `day`, each day column is replaced by one column per band (白班 | 夜班…), and
228
- * the upper header tier shows the 排班日 (shift-day starting at `dayStart`, e.g.
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.
229
232
  * 08:00). Drag/resize then snaps to band boundaries instead of whole days.
230
233
  * Off by default → existing gantts are unaffected (parity with `folding`).
231
234
  * Mutually exclusive with weekend/holiday folding (segmenting wins).
@@ -244,7 +247,7 @@ export interface GanttViewProps {
244
247
  */
245
248
  readOnly?: boolean;
246
249
  /**
247
- * Mobile read-only (移动端只读缩略). When true, the chart auto-enters read-only
250
+ * Mobile read-only. When true, the chart auto-enters read-only
248
251
  * mode on narrow viewports (< 640px) so touch users get a clean, scrollable
249
252
  * thumbnail of the schedule instead of error-prone drag editing — equivalent
250
253
  * to `readOnly` but scoped to small screens. Wider viewports are unaffected.
@@ -252,7 +255,7 @@ export interface GanttViewProps {
252
255
  */
253
256
  mobileReadOnly?: boolean;
254
257
  /**
255
- * Dynamic grouping accessor (动态 Group by). When provided, leaf tasks are
258
+ * Dynamic grouping accessor. When provided, leaf tasks are
256
259
  * bucketed by the returned `key` and rendered beneath one synthesized summary
257
260
  * row per group — the original `parent` hierarchy is replaced by the grouping.
258
261
  * Return `null` to drop a task into the "ungrouped" bucket. Grouping is purely
@@ -266,18 +269,19 @@ export interface GanttViewProps {
266
269
  /** Label for the bucket collecting tasks whose `groupBy` returns null. */
267
270
  ungroupedLabel?: string;
268
271
  /**
269
- * 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.
270
273
  * Depth is 0-indexed: roots are 0, their children 1, etc. Every node whose
271
274
  * depth is `>= defaultCollapsedDepth` AND which has children is seeded into the
272
275
  * collapsed set once, so its subtree starts hidden. The user can still expand
273
- * any of them — this only sets the initial state. Example: a 项目→产品→排产计划→派工单
274
- * tree where 排产计划 sits at depth 2 uses `defaultCollapsedDepth={2}` to start
275
- * with every 排产计划 (and its 派工单 children) folded. Omit (or pass a depth past
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
276
280
  * the deepest node) to start fully expanded.
277
281
  */
278
282
  defaultCollapsedDepth?: number;
279
283
  /**
280
- * How a summary bar's span is computed (汇总条区间). `'children'` (default)
284
+ * How a summary bar's span is computed. `'children'` (default)
281
285
  * rolls up from the children — min start / max end / duration-weighted
282
286
  * progress — ignoring the summary task's own dates. `'self'` draws the bar
283
287
  * from the task's OWN start/end/progress; tasks flagged `hasOwnDates: false`
@@ -289,18 +293,19 @@ export interface GanttViewProps {
289
293
  /**
290
294
  * Persist the user's layout tweaks (granularity + column/task-list widths)
291
295
  * to `localStorage` under this key. On mount the saved layout is restored;
292
- * the "保存布局" toolbar button writes the current layout. Omit to disable
296
+ * the "Save layout" toolbar button (`gantt.toolbar.saveLayout`) writes the
297
+ * current layout. Omit to disable
293
298
  * persistence. The button still appears when `onLayoutChange` is set.
294
299
  */
295
300
  persistLayoutKey?: string;
296
301
  /**
297
- * Notified when the user saves the current layout (保存布局). Receives the
302
+ * Notified when the user saves the current layout. Receives the
298
303
  * snapshot `{ viewMode, columnWidth, taskListCollapsed }`. Use this to persist
299
304
  * layout in your own store instead of (or alongside) `persistLayoutKey`.
300
305
  */
301
306
  onLayoutChange?: (layout: GanttLayout) => void;
302
307
  /**
303
- * Show a manual refresh button in the toolbar (手动刷新). The host re-reads
308
+ * Show a manual refresh button in the toolbar (`gantt.toolbar.refresh`). The host re-reads
304
309
  * its data source so server-computed fields (rollups, alert colors) and
305
310
  * other users' edits reach the chart without a full page reload. Omit to
306
311
  * hide the button (e.g. inline `value` data has nothing to re-read).
@@ -311,30 +316,30 @@ export interface GanttViewProps {
311
316
  /**
312
317
  * Whether the data source can persist dependency LINK TYPES (fs/ss/ff/sf).
313
318
  * Default true. Set false when dependencies are stored as bare predecessor
314
- * ids (仅存紧前 id,无类型位) — the link context menu then hides the type
319
+ * ids (predecessor ids only, no type slot) — the link context menu then hides the type
315
320
  * switcher (a switch would be silently reverted on refetch) and drag-created
316
321
  * links are always FS regardless of which endpoints were connected.
317
322
  */
318
323
  dependencyTypes?: boolean;
319
324
  /**
320
- * Business time zone for rendering (业务时区), an IANA name like
325
+ * Business time zone for rendering, an IANA name like
321
326
  * 'Asia/Shanghai'. The chart's calendar math — shift bands, day columns,
322
327
  * drag snapping, the today line, start/end labels — renders this zone's
323
328
  * wall time for EVERY viewer instead of the browser's; without it, a
324
- * viewer in another zone sees bands and dates shifted (班次错位). Writes
329
+ * viewer in another zone sees bands and dates misaligned. Writes
325
330
  * still persist real instants. Note: dates handed to `onBeforeTaskUpdate`
326
331
  * are in this display space (durations/deltas are unaffected).
327
332
  */
328
333
  timeZone?: string;
329
334
  /**
330
- * Base name for exported files (导出文件名), e.g. the view or object label —
331
- * "排班计划甘特图" exports as `排班计划甘特图-20260719-1530.png`. Falls back
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
332
337
  * to "gantt". The timestamp suffix keeps repeated exports from silently
333
338
  * overwriting each other in the Downloads folder.
334
339
  */
335
340
  exportFileName?: string;
336
341
  /**
337
- * Per-interaction switches (交互开关). Omit for all-on. See
342
+ * Per-interaction switches. Omit for all-on. See
338
343
  * {@link GanttInteractions}: e.g. `{ resize: false }` keeps bars movable and
339
344
  * links drawable but pins every duration; `{ link: false }` removes the
340
345
  * dependency drag-dots and the create/delete menu entries. Subject to
@@ -352,7 +357,7 @@ export interface GanttViewProps {
352
357
  */
353
358
  onBeforeTaskUpdate?: (task: GanttTask, changes: Partial<Pick<GanttTask, 'title' | 'start' | 'end' | 'progress'>>) => boolean | Promise<boolean>;
354
359
  }
355
- /** Persisted layout snapshot written by the "保存布局" toolbar button. */
360
+ /** Persisted layout snapshot written by the "Save layout" toolbar button. */
356
361
  export interface GanttLayout {
357
362
  viewMode: GanttViewMode;
358
363
  /** Effective day-column width in px, or null when auto-fit. */
@@ -361,7 +366,7 @@ export interface GanttLayout {
361
366
  /** User-dragged task-list (name column) width in px, or null when auto-sized. */
362
367
  taskListWidth?: number | null;
363
368
  /**
364
- * Ids of rows the user had collapsed when saving (展开状态). Present (even
369
+ * Ids of rows the user had collapsed when saving. Present (even
365
370
  * empty) means the saved expand/collapse state wins over
366
371
  * `defaultCollapsedDepth`; absent (older snapshots) leaves the default.
367
372
  */
@@ -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;AA8B9B,OAAO,EAAqF,KAAK,eAAe,EAAiD,MAAM,cAAc,CAAA;AACrL,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;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;AAEvE,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,GAAG,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAC;AAEvE,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,IAAI,CAAA;IACX,GAAG,EAAE,IAAI,CAAA;IACT,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;;OAMG;IACH,WAAW,CA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GAAG,IAAI,CAAA;IAC1B,iBAAiB,EAAE,OAAO,CAAA;IAC1B,iFAAiF;IACjF,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB;AAyHD,wBAAgB,SAAS,CAAC,EACxB,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,WAAW,EACpB,WAAW,EACX,YAAY,EAAE,gBAAgB,EAC9B,YAAY,EAAE,gBAAgB,EAC9B,YAAY,EACZ,kBAAkB,EAAE,sBAAsB,EAC1C,wBAAwB,EACxB,kBAAkB,EAAE,sBAAsB,EAC1C,aAAa,EAAE,iBAAiB,EAChC,SAAS,EACT,UAAU,EAAE,cAAsB,EAClC,YAAY,EAAE,gBAAwB,EACtC,oBAAoB,EAAE,wBAAgC,EACtD,mBAA2B,EAC3B,eAAe,EACf,aAAa,EACb,aAAoB,EACpB,QAAgB,EAChB,cAAsB,EACtB,OAAO,EACP,cAA4B,EAC5B,qBAAqB,EACrB,aAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,UAAkB,EAClB,eAAsB,EACtB,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,kBAAkB,GACnB,EAAE,cAAc,qBAuyIhB"}
@@ -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 (快速筛选维度). Generic by design: the page configures
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. 派工类别). Plain strings become
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;AA2B5F,OAAO,EAAa,KAAK,SAAS,EAAE,KAAK,eAAe,EAA8C,KAAK,aAAa,EAAsB,MAAM,aAAa,CAAC;AAOlK;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACtE;AA0ID,0EAA0E;AAC1E,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,CAUzE;AAiBD,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,eAAe,EAAE,CAqBrE;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;I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,CAqBrE;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,CACnB,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,UAAU,CAAC,CAAC,KACtE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACjC;AA2GD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAisClD,CAAC"}
@@ -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
- /** "全部" / "All" — the select-all toggle and empty-selection trigger text. */
25
+ /** Select-all toggle and empty-selection trigger text. Host: `gantt.quickFilter.all`. */
18
26
  all?: string;
19
- /** "清除筛选" / "Clear" — clears every dimension. */
27
+ /** Clears every dimension. Host: `gantt.quickFilter.clear`. */
20
28
  clear?: string;
21
- /** Builds the "showing N / M" summary; omit to hide the summary. */
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,OAAO,CAAC;AAE3D,MAAM,WAAW,iBAAiB;IAChC,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,6EAA6E;IAC7E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACzD,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC,MAAM,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IAC5B,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,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