@salmonui/gantt 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +43 -2
- package/dist/gantt/Gantt.d.ts +5 -0
- package/dist/gantt/Gantt.d.ts.map +1 -0
- package/dist/gantt/Gantt.js +513 -0
- package/dist/gantt/Gantt.js.map +1 -0
- package/dist/gantt/adaptive.d.ts +8 -0
- package/dist/gantt/adaptive.d.ts.map +1 -0
- package/dist/gantt/adaptive.js +38 -0
- package/dist/gantt/adaptive.js.map +1 -0
- package/dist/gantt/api.d.ts +9 -0
- package/dist/gantt/api.d.ts.map +1 -0
- package/dist/gantt/api.js +181 -0
- package/dist/gantt/api.js.map +1 -0
- package/dist/gantt/chart.d.ts +70 -0
- package/dist/gantt/chart.d.ts.map +1 -0
- package/dist/gantt/chart.js +576 -0
- package/dist/gantt/chart.js.map +1 -0
- package/dist/gantt/columns.d.ts +9 -0
- package/dist/gantt/columns.d.ts.map +1 -0
- package/dist/gantt/columns.js +139 -0
- package/dist/gantt/columns.js.map +1 -0
- package/dist/gantt/export.d.ts +53 -0
- package/dist/gantt/export.d.ts.map +1 -0
- package/dist/gantt/export.js +241 -0
- package/dist/gantt/export.js.map +1 -0
- package/dist/gantt/fields.d.ts +42 -0
- package/dist/gantt/fields.d.ts.map +1 -0
- package/dist/gantt/fields.js +235 -0
- package/dist/gantt/fields.js.map +1 -0
- package/dist/gantt/instance.d.ts +212 -0
- package/dist/gantt/instance.d.ts.map +1 -0
- package/dist/gantt/instance.js +1011 -0
- package/dist/gantt/instance.js.map +1 -0
- package/dist/gantt/interact.d.ts +7 -0
- package/dist/gantt/interact.d.ts.map +1 -0
- package/dist/gantt/interact.js +315 -0
- package/dist/gantt/interact.js.map +1 -0
- package/dist/gantt/loading.d.ts +21 -0
- package/dist/gantt/loading.d.ts.map +1 -0
- package/dist/gantt/loading.js +81 -0
- package/dist/gantt/loading.js.map +1 -0
- package/dist/gantt/locale.d.ts +153 -0
- package/dist/gantt/locale.d.ts.map +1 -0
- package/dist/gantt/locale.js +139 -0
- package/dist/gantt/locale.js.map +1 -0
- package/dist/gantt/menu-items.d.ts +8 -0
- package/dist/gantt/menu-items.d.ts.map +1 -0
- package/dist/gantt/menu-items.js +16 -0
- package/dist/gantt/menu-items.js.map +1 -0
- package/dist/gantt/menu-run.d.ts +5 -0
- package/dist/gantt/menu-run.d.ts.map +1 -0
- package/dist/gantt/menu-run.js +69 -0
- package/dist/gantt/menu-run.js.map +1 -0
- package/dist/gantt/modules.d.ts +19 -0
- package/dist/gantt/modules.d.ts.map +1 -0
- package/dist/gantt/modules.js +8 -0
- package/dist/gantt/modules.js.map +1 -0
- package/dist/gantt/popups.d.ts +23 -0
- package/dist/gantt/popups.d.ts.map +1 -0
- package/dist/gantt/popups.js +158 -0
- package/dist/gantt/popups.js.map +1 -0
- package/dist/gantt/registry-lazy.d.ts +4 -0
- package/dist/gantt/registry-lazy.d.ts.map +1 -0
- package/dist/gantt/registry-lazy.js +54 -0
- package/dist/gantt/registry-lazy.js.map +1 -0
- package/dist/gantt/registry-static.d.ts +4 -0
- package/dist/gantt/registry-static.d.ts.map +1 -0
- package/dist/gantt/registry-static.js +13 -0
- package/dist/gantt/registry-static.js.map +1 -0
- package/dist/gantt/remote.d.ts +16 -0
- package/dist/gantt/remote.d.ts.map +1 -0
- package/dist/gantt/remote.js +178 -0
- package/dist/gantt/remote.js.map +1 -0
- package/dist/gantt/resource-view.d.ts +57 -0
- package/dist/gantt/resource-view.d.ts.map +1 -0
- package/dist/gantt/resource-view.js +123 -0
- package/dist/gantt/resource-view.js.map +1 -0
- package/dist/gantt/toolbar.d.ts +11 -0
- package/dist/gantt/toolbar.d.ts.map +1 -0
- package/dist/gantt/toolbar.js +166 -0
- package/dist/gantt/toolbar.js.map +1 -0
- package/dist/gantt/tooltip.d.ts +7 -0
- package/dist/gantt/tooltip.d.ts.map +1 -0
- package/dist/gantt/tooltip.js +178 -0
- package/dist/gantt/tooltip.js.map +1 -0
- package/dist/gantt/types.d.ts +625 -0
- package/dist/gantt/types.d.ts.map +1 -0
- package/dist/gantt/types.js +7 -0
- package/dist/gantt/types.js.map +1 -0
- package/dist/gantt.css +5583 -0
- package/dist/gantt.d.ts +6 -0
- package/dist/gantt.d.ts.map +1 -0
- package/dist/gantt.js +13 -0
- package/dist/gantt.js.map +1 -0
- package/dist/internal/timeline/project/calendar.d.ts +50 -0
- package/dist/internal/timeline/project/calendar.d.ts.map +1 -0
- package/dist/internal/timeline/project/calendar.js +312 -0
- package/dist/internal/timeline/project/calendar.js.map +1 -0
- package/dist/internal/timeline/project/critical.d.ts +34 -0
- package/dist/internal/timeline/project/critical.d.ts.map +1 -0
- package/dist/internal/timeline/project/critical.js +135 -0
- package/dist/internal/timeline/project/critical.js.map +1 -0
- package/dist/internal/timeline/project/dependencies.d.ts +16 -0
- package/dist/internal/timeline/project/dependencies.d.ts.map +1 -0
- package/dist/internal/timeline/project/dependencies.js +87 -0
- package/dist/internal/timeline/project/dependencies.js.map +1 -0
- package/dist/internal/timeline/project/engine.d.ts +118 -0
- package/dist/internal/timeline/project/engine.d.ts.map +1 -0
- package/dist/internal/timeline/project/engine.js +1907 -0
- package/dist/internal/timeline/project/engine.js.map +1 -0
- package/dist/internal/timeline/project/format.d.ts +22 -0
- package/dist/internal/timeline/project/format.d.ts.map +1 -0
- package/dist/internal/timeline/project/format.js +41 -0
- package/dist/internal/timeline/project/format.js.map +1 -0
- package/dist/internal/timeline/project/history.d.ts +27 -0
- package/dist/internal/timeline/project/history.d.ts.map +1 -0
- package/dist/internal/timeline/project/history.js +74 -0
- package/dist/internal/timeline/project/history.js.map +1 -0
- package/dist/internal/timeline/project/resources.d.ts +26 -0
- package/dist/internal/timeline/project/resources.d.ts.map +1 -0
- package/dist/internal/timeline/project/resources.js +109 -0
- package/dist/internal/timeline/project/resources.js.map +1 -0
- package/dist/internal/timeline/project/types.d.ts +99 -0
- package/dist/internal/timeline/project/types.d.ts.map +1 -0
- package/dist/internal/timeline/project/types.js +6 -0
- package/dist/internal/timeline/project/types.js.map +1 -0
- package/dist/internal/timeline/scale.d.ts +60 -0
- package/dist/internal/timeline/scale.d.ts.map +1 -0
- package/dist/internal/timeline/scale.js +156 -0
- package/dist/internal/timeline/scale.js.map +1 -0
- package/package.json +55 -4
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import type { LocaleMessage } from '@salmonui/core/internal/dates/index';
|
|
2
|
+
import type { DataGridLocaleText } from '@salmonui/data-grid';
|
|
3
|
+
declare const DEFAULTS: {
|
|
4
|
+
readonly label: 'Gantt chart';
|
|
5
|
+
readonly chart: 'Timeline';
|
|
6
|
+
readonly gridPane: 'Tasks';
|
|
7
|
+
readonly paneSwitch: 'View';
|
|
8
|
+
readonly columnId: 'ID';
|
|
9
|
+
readonly columnTitle: 'Task name';
|
|
10
|
+
readonly columnStart: 'Start';
|
|
11
|
+
readonly columnEnd: 'Finish';
|
|
12
|
+
readonly columnDuration: 'Duration';
|
|
13
|
+
readonly columnProgress: 'Progress';
|
|
14
|
+
readonly columnPredecessors: 'Predecessors';
|
|
15
|
+
readonly columnResources: 'Resources';
|
|
16
|
+
readonly columnWork: 'Work';
|
|
17
|
+
readonly columnTaskType: 'Task type';
|
|
18
|
+
readonly columnNotes: 'Notes';
|
|
19
|
+
readonly columnBaselineStart: 'Baseline start';
|
|
20
|
+
readonly columnBaselineEnd: 'Baseline finish';
|
|
21
|
+
readonly columnWbs: 'WBS';
|
|
22
|
+
readonly columnWbsPredecessors: 'WBS predecessors';
|
|
23
|
+
readonly columnSerialNumber: 'S.No';
|
|
24
|
+
readonly minute: {
|
|
25
|
+
readonly one: '{count} minute';
|
|
26
|
+
readonly other: '{count} minutes';
|
|
27
|
+
};
|
|
28
|
+
readonly hour: {
|
|
29
|
+
readonly one: '{count} hour';
|
|
30
|
+
readonly other: '{count} hours';
|
|
31
|
+
};
|
|
32
|
+
readonly day: {
|
|
33
|
+
readonly one: '{count} day';
|
|
34
|
+
readonly other: '{count} days';
|
|
35
|
+
};
|
|
36
|
+
readonly minuteUnits: 'm,min,mins,minute,minutes';
|
|
37
|
+
readonly hourUnits: 'h,hr,hrs,hour,hours';
|
|
38
|
+
readonly dayUnits: 'd,day,days';
|
|
39
|
+
readonly fixedUnit: 'Fixed units';
|
|
40
|
+
readonly fixedWork: 'Fixed work';
|
|
41
|
+
readonly fixedDuration: 'Fixed duration';
|
|
42
|
+
readonly add: 'Add';
|
|
43
|
+
readonly edit: 'Edit';
|
|
44
|
+
readonly update: 'Update';
|
|
45
|
+
readonly delete: 'Delete';
|
|
46
|
+
readonly cancel: 'Cancel';
|
|
47
|
+
readonly expandAll: 'Expand all';
|
|
48
|
+
readonly collapseAll: 'Collapse all';
|
|
49
|
+
readonly search: 'Search';
|
|
50
|
+
readonly previousTimeSpan: 'Previous time span';
|
|
51
|
+
readonly nextTimeSpan: 'Next time span';
|
|
52
|
+
readonly zoomIn: 'Zoom in';
|
|
53
|
+
readonly zoomOut: 'Zoom out';
|
|
54
|
+
readonly zoomToFit: 'Zoom to fit';
|
|
55
|
+
readonly indent: 'Indent';
|
|
56
|
+
readonly outdent: 'Outdent';
|
|
57
|
+
readonly criticalPath: 'Critical path';
|
|
58
|
+
readonly excelExport: 'Excel export';
|
|
59
|
+
readonly csvExport: 'CSV export';
|
|
60
|
+
readonly pdfExport: 'PDF export';
|
|
61
|
+
readonly undo: 'Undo';
|
|
62
|
+
readonly redo: 'Redo';
|
|
63
|
+
readonly toolbar: 'Gantt toolbar';
|
|
64
|
+
readonly taskInformation: 'Task information';
|
|
65
|
+
readonly deleteTask: 'Delete task';
|
|
66
|
+
readonly addAbove: 'Add above';
|
|
67
|
+
readonly addBelow: 'Add below';
|
|
68
|
+
readonly addChild: 'Add child';
|
|
69
|
+
readonly addMilestone: 'Add milestone';
|
|
70
|
+
readonly convertToTask: 'Convert to task';
|
|
71
|
+
readonly convertToMilestone: 'Convert to milestone';
|
|
72
|
+
readonly deleteDependency: 'Delete dependency';
|
|
73
|
+
readonly splitTask: 'Split task';
|
|
74
|
+
readonly mergeTask: 'Merge task';
|
|
75
|
+
readonly addTaskTitle: 'Add task';
|
|
76
|
+
readonly editTaskTitle: 'Edit task';
|
|
77
|
+
readonly general: 'General';
|
|
78
|
+
readonly dependency: 'Dependency';
|
|
79
|
+
readonly resources: 'Resources';
|
|
80
|
+
readonly notes: 'Notes';
|
|
81
|
+
readonly segments: 'Segments';
|
|
82
|
+
readonly save: 'Save';
|
|
83
|
+
readonly newTask: 'New task';
|
|
84
|
+
readonly dependencyType: 'Type';
|
|
85
|
+
readonly lag: 'Lag';
|
|
86
|
+
readonly predecessor: 'Predecessor';
|
|
87
|
+
readonly addDependency: 'Add dependency';
|
|
88
|
+
readonly removeDependency: 'Remove';
|
|
89
|
+
readonly unit: 'Unit (%)';
|
|
90
|
+
readonly segmentStart: 'Start';
|
|
91
|
+
readonly segmentEnd: 'End';
|
|
92
|
+
readonly milestone: 'Milestone';
|
|
93
|
+
readonly manual: 'Manually scheduled';
|
|
94
|
+
readonly fs: 'Finish to start';
|
|
95
|
+
readonly ss: 'Start to start';
|
|
96
|
+
readonly ff: 'Finish to finish';
|
|
97
|
+
readonly sf: 'Start to finish';
|
|
98
|
+
readonly required: 'This field is required.';
|
|
99
|
+
readonly endBeforeStart: 'The finish must not be before the start.';
|
|
100
|
+
readonly conflictTitle: 'Dependency conflict';
|
|
101
|
+
readonly conflictMessage: {
|
|
102
|
+
readonly one: 'This change breaks the dependency of "{task}" on "{predecessor}".';
|
|
103
|
+
readonly other: 'This change breaks {count} dependencies.';
|
|
104
|
+
};
|
|
105
|
+
readonly conflictMove: 'Keep the link and move the task';
|
|
106
|
+
readonly conflictRemoveLink: 'Remove the link and move the task';
|
|
107
|
+
readonly conflictCancel: 'Cancel, keep the existing link';
|
|
108
|
+
readonly deleteConfirmTitle: 'Delete tasks';
|
|
109
|
+
readonly deleteConfirm: {
|
|
110
|
+
readonly one: 'Delete the selected task?';
|
|
111
|
+
readonly other: 'Delete {count} tasks?';
|
|
112
|
+
};
|
|
113
|
+
readonly taskbarLabel: '{title}, {start} to {end}, {progress}% complete';
|
|
114
|
+
readonly milestoneLabel: '{title}, milestone on {start}';
|
|
115
|
+
readonly parentLabel: '{title}, summary task, {start} to {end}, {progress}% complete';
|
|
116
|
+
readonly unscheduledLabel: '{title}, not scheduled';
|
|
117
|
+
readonly dependsOn: 'depends on {list}';
|
|
118
|
+
readonly critical: 'critical';
|
|
119
|
+
readonly overAllocated: 'Over-allocated';
|
|
120
|
+
readonly unassigned: 'Unassigned';
|
|
121
|
+
readonly resourceLabel: {
|
|
122
|
+
readonly one: '{title}, {count} task';
|
|
123
|
+
readonly other: '{title}, {count} tasks';
|
|
124
|
+
};
|
|
125
|
+
readonly today: 'Today';
|
|
126
|
+
readonly baseline: 'Baseline';
|
|
127
|
+
readonly connectorLabel: '{from} to {to}, {type}';
|
|
128
|
+
readonly resizeStart: 'Resize start';
|
|
129
|
+
readonly resizeEnd: 'Resize end';
|
|
130
|
+
readonly progressHandle: 'Progress';
|
|
131
|
+
readonly connectStart: 'Link from start';
|
|
132
|
+
readonly connectEnd: 'Link from finish';
|
|
133
|
+
readonly splitter: 'Resize panes';
|
|
134
|
+
readonly showGrid: 'Grid';
|
|
135
|
+
readonly showChart: 'Chart';
|
|
136
|
+
readonly panes: 'Panes';
|
|
137
|
+
readonly loading: 'Loading';
|
|
138
|
+
readonly tooltipStart: 'Start';
|
|
139
|
+
readonly tooltipEnd: 'Finish';
|
|
140
|
+
readonly tooltipDuration: 'Duration';
|
|
141
|
+
readonly tooltipProgress: 'Progress';
|
|
142
|
+
readonly tooltipLag: 'Lag';
|
|
143
|
+
readonly editAnnouncement: '{title} moved to {start} to {end}';
|
|
144
|
+
};
|
|
145
|
+
export type GanttLocaleKey = keyof typeof DEFAULTS;
|
|
146
|
+
export type GanttLocaleText = Partial<Readonly<Record<GanttLocaleKey, LocaleMessage>>> & {
|
|
147
|
+
/** Grid pane overrides (Data Grid catalog). */
|
|
148
|
+
readonly grid?: DataGridLocaleText;
|
|
149
|
+
};
|
|
150
|
+
/** English defaults. */
|
|
151
|
+
export declare const GANTT_DEFAULT_LOCALE_TEXT: Readonly<Record<GanttLocaleKey, LocaleMessage>>;
|
|
152
|
+
export {};
|
|
153
|
+
//# sourceMappingURL=locale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/gantt/locale.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,QAAA,MAAM,QAAQ;oBACL,aAAa;oBACb,UAAU;uBAEP,OAAO;yBACL,MAAM;uBAER,IAAI;0BACD,WAAW;0BACX,OAAO;wBACT,QAAQ;6BACH,UAAU;6BACV,UAAU;iCACN,cAAc;8BACjB,WAAW;yBAChB,MAAM;6BACF,WAAW;0BACd,OAAO;kCACC,gBAAgB;gCAClB,iBAAiB;wBACzB,KAAK;oCACO,kBAAkB;iCACrB,MAAM;;iBAEhB,GAAG,EAAE,gBAAgB;iBAAE,KAAK,EAAE,iBAAiB;;;iBACjD,GAAG,EAAE,cAAc;iBAAE,KAAK,EAAE,eAAe;;;iBAC5C,GAAG,EAAE,aAAa;iBAAE,KAAK,EAAE,cAAc;;0BACnC,2BAA2B;wBAC7B,qBAAqB;uBACtB,YAAY;wBACX,aAAa;wBACb,YAAY;4BACR,gBAAgB;kBAE1B,KAAK;mBACJ,MAAM;qBACJ,QAAQ;qBACR,QAAQ;qBACR,QAAQ;wBACL,YAAY;0BACV,cAAc;qBACnB,QAAQ;+BACE,oBAAoB;2BACxB,gBAAgB;qBACtB,SAAS;sBACR,UAAU;wBACR,aAAa;qBAChB,QAAQ;sBACP,SAAS;2BACJ,eAAe;0BAChB,cAAc;wBAChB,YAAY;wBAC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AAM,MAAM,eAAe,GAAG,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG;IACvF,+CAA+C;IAC/C,QAAQ,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC;CACpC,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,MAAM,CAAC,cAAc,EAAE,aAAa,CAAC,CAA2B,CAAC"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// `localeText` of the Gantt: the Data Grid message
|
|
2
|
+
// format (`{param}` placeholders, plural forms), English defaults. Grid-pane
|
|
3
|
+
// strings stay in the Data Grid catalog (`DATA_GRID_DEFAULT_LOCALE_TEXT`);
|
|
4
|
+
// `localeText.grid` passes overrides to it.
|
|
5
|
+
const DEFAULTS = {
|
|
6
|
+
label: 'Gantt chart',
|
|
7
|
+
chart: 'Timeline',
|
|
8
|
+
// Adaptive pane switch.
|
|
9
|
+
gridPane: 'Tasks',
|
|
10
|
+
paneSwitch: 'View',
|
|
11
|
+
// Columns.
|
|
12
|
+
columnId: 'ID',
|
|
13
|
+
columnTitle: 'Task name',
|
|
14
|
+
columnStart: 'Start',
|
|
15
|
+
columnEnd: 'Finish',
|
|
16
|
+
columnDuration: 'Duration',
|
|
17
|
+
columnProgress: 'Progress',
|
|
18
|
+
columnPredecessors: 'Predecessors',
|
|
19
|
+
columnResources: 'Resources',
|
|
20
|
+
columnWork: 'Work',
|
|
21
|
+
columnTaskType: 'Task type',
|
|
22
|
+
columnNotes: 'Notes',
|
|
23
|
+
columnBaselineStart: 'Baseline start',
|
|
24
|
+
columnBaselineEnd: 'Baseline finish',
|
|
25
|
+
columnWbs: 'WBS',
|
|
26
|
+
columnWbsPredecessors: 'WBS predecessors',
|
|
27
|
+
columnSerialNumber: 'S.No',
|
|
28
|
+
// Units.
|
|
29
|
+
minute: { one: '{count} minute', other: '{count} minutes' },
|
|
30
|
+
hour: { one: '{count} hour', other: '{count} hours' },
|
|
31
|
+
day: { one: '{count} day', other: '{count} days' },
|
|
32
|
+
minuteUnits: 'm,min,mins,minute,minutes',
|
|
33
|
+
hourUnits: 'h,hr,hrs,hour,hours',
|
|
34
|
+
dayUnits: 'd,day,days',
|
|
35
|
+
fixedUnit: 'Fixed units',
|
|
36
|
+
fixedWork: 'Fixed work',
|
|
37
|
+
fixedDuration: 'Fixed duration',
|
|
38
|
+
// Toolbar.
|
|
39
|
+
add: 'Add',
|
|
40
|
+
edit: 'Edit',
|
|
41
|
+
update: 'Update',
|
|
42
|
+
delete: 'Delete',
|
|
43
|
+
cancel: 'Cancel',
|
|
44
|
+
expandAll: 'Expand all',
|
|
45
|
+
collapseAll: 'Collapse all',
|
|
46
|
+
search: 'Search',
|
|
47
|
+
previousTimeSpan: 'Previous time span',
|
|
48
|
+
nextTimeSpan: 'Next time span',
|
|
49
|
+
zoomIn: 'Zoom in',
|
|
50
|
+
zoomOut: 'Zoom out',
|
|
51
|
+
zoomToFit: 'Zoom to fit',
|
|
52
|
+
indent: 'Indent',
|
|
53
|
+
outdent: 'Outdent',
|
|
54
|
+
criticalPath: 'Critical path',
|
|
55
|
+
excelExport: 'Excel export',
|
|
56
|
+
csvExport: 'CSV export',
|
|
57
|
+
pdfExport: 'PDF export',
|
|
58
|
+
undo: 'Undo',
|
|
59
|
+
redo: 'Redo',
|
|
60
|
+
toolbar: 'Gantt toolbar',
|
|
61
|
+
// Context menu.
|
|
62
|
+
taskInformation: 'Task information',
|
|
63
|
+
deleteTask: 'Delete task',
|
|
64
|
+
addAbove: 'Add above',
|
|
65
|
+
addBelow: 'Add below',
|
|
66
|
+
addChild: 'Add child',
|
|
67
|
+
addMilestone: 'Add milestone',
|
|
68
|
+
convertToTask: 'Convert to task',
|
|
69
|
+
convertToMilestone: 'Convert to milestone',
|
|
70
|
+
deleteDependency: 'Delete dependency',
|
|
71
|
+
splitTask: 'Split task',
|
|
72
|
+
mergeTask: 'Merge task',
|
|
73
|
+
// Dialog.
|
|
74
|
+
addTaskTitle: 'Add task',
|
|
75
|
+
editTaskTitle: 'Edit task',
|
|
76
|
+
general: 'General',
|
|
77
|
+
dependency: 'Dependency',
|
|
78
|
+
resources: 'Resources',
|
|
79
|
+
notes: 'Notes',
|
|
80
|
+
segments: 'Segments',
|
|
81
|
+
save: 'Save',
|
|
82
|
+
newTask: 'New task',
|
|
83
|
+
dependencyType: 'Type',
|
|
84
|
+
lag: 'Lag',
|
|
85
|
+
predecessor: 'Predecessor',
|
|
86
|
+
addDependency: 'Add dependency',
|
|
87
|
+
removeDependency: 'Remove',
|
|
88
|
+
unit: 'Unit (%)',
|
|
89
|
+
segmentStart: 'Start',
|
|
90
|
+
segmentEnd: 'End',
|
|
91
|
+
milestone: 'Milestone',
|
|
92
|
+
manual: 'Manually scheduled',
|
|
93
|
+
fs: 'Finish to start',
|
|
94
|
+
ss: 'Start to start',
|
|
95
|
+
ff: 'Finish to finish',
|
|
96
|
+
sf: 'Start to finish',
|
|
97
|
+
required: 'This field is required.',
|
|
98
|
+
endBeforeStart: 'The finish must not be before the start.',
|
|
99
|
+
// Validation.
|
|
100
|
+
conflictTitle: 'Dependency conflict',
|
|
101
|
+
conflictMessage: { one: 'This change breaks the dependency of "{task}" on "{predecessor}".', other: 'This change breaks {count} dependencies.' },
|
|
102
|
+
conflictMove: 'Keep the link and move the task',
|
|
103
|
+
conflictRemoveLink: 'Remove the link and move the task',
|
|
104
|
+
conflictCancel: 'Cancel, keep the existing link',
|
|
105
|
+
deleteConfirmTitle: 'Delete tasks',
|
|
106
|
+
deleteConfirm: { one: 'Delete the selected task?', other: 'Delete {count} tasks?' },
|
|
107
|
+
// Chart.
|
|
108
|
+
taskbarLabel: '{title}, {start} to {end}, {progress}% complete',
|
|
109
|
+
milestoneLabel: '{title}, milestone on {start}',
|
|
110
|
+
parentLabel: '{title}, summary task, {start} to {end}, {progress}% complete',
|
|
111
|
+
unscheduledLabel: '{title}, not scheduled',
|
|
112
|
+
dependsOn: 'depends on {list}',
|
|
113
|
+
critical: 'critical',
|
|
114
|
+
overAllocated: 'Over-allocated',
|
|
115
|
+
unassigned: 'Unassigned',
|
|
116
|
+
resourceLabel: { one: '{title}, {count} task', other: '{title}, {count} tasks' },
|
|
117
|
+
today: 'Today',
|
|
118
|
+
baseline: 'Baseline',
|
|
119
|
+
connectorLabel: '{from} to {to}, {type}',
|
|
120
|
+
resizeStart: 'Resize start',
|
|
121
|
+
resizeEnd: 'Resize end',
|
|
122
|
+
progressHandle: 'Progress',
|
|
123
|
+
connectStart: 'Link from start',
|
|
124
|
+
connectEnd: 'Link from finish',
|
|
125
|
+
splitter: 'Resize panes',
|
|
126
|
+
showGrid: 'Grid',
|
|
127
|
+
showChart: 'Chart',
|
|
128
|
+
panes: 'Panes',
|
|
129
|
+
loading: 'Loading',
|
|
130
|
+
tooltipStart: 'Start',
|
|
131
|
+
tooltipEnd: 'Finish',
|
|
132
|
+
tooltipDuration: 'Duration',
|
|
133
|
+
tooltipProgress: 'Progress',
|
|
134
|
+
tooltipLag: 'Lag',
|
|
135
|
+
editAnnouncement: '{title} moved to {start} to {end}',
|
|
136
|
+
};
|
|
137
|
+
/** English defaults. */
|
|
138
|
+
export const GANTT_DEFAULT_LOCALE_TEXT = Object.freeze(DEFAULTS);
|
|
139
|
+
//# sourceMappingURL=locale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale.js","sourceRoot":"","sources":["../../src/gantt/locale.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,6EAA6E;AAC7E,2EAA2E;AAC3E,4CAA4C;AAK5C,MAAM,QAAQ,GAAG;IACf,KAAK,EAAE,aAAa;IACpB,KAAK,EAAE,UAAU;IACjB,wBAAwB;IACxB,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE,MAAM;IAClB,WAAW;IACX,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,OAAO;IACpB,SAAS,EAAE,Q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AE,2BAA2B,EAAE,KAAK,EAAE,uBAAuB,EAAE;IACnF,SAAS;IACT,YAAY,EAAE,iDAAiD;IAC/D,cAAc,EAAE,+BAA+B;IAC/C,WAAW,EAAE,+DAA+D;IAC5E,gBAAgB,EAAE,wBAAwB;IAC1C,SAAS,EAAE,mBAAmB;IAC9B,QAAQ,EAAE,UAAU;IACpB,aAAa,EAAE,gBAAgB;IAC/B,UAAU,EAAE,YAAY;IACxB,aAAa,EAAE,EAAE,GAAG,EAAE,uBAAuB,EAAE,KAAK,EAAE,wBAAwB,EAAE;IAChF,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,cAAc,EAAE,wBAAwB;IACxC,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,cAAc,EAAE,UAAU;IAC1B,YAAY,EAAE,iBAAiB;IAC/B,UAAU,EAAE,kBAAkB;IAC9B,QAAQ,EAAE,cAAc;IACxB,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,QAAQ;IACpB,eAAe,EAAE,UAAU;IAC3B,eAAe,EAAE,UAAU;IAC3B,UAAU,EAAE,KAAK;IACjB,gBAAgB,EAAE,mCAAmC;CACL,CAAC;AASnD,wBAAwB;AACxB,MAAM,CAAC,MAAM,yBAAyB,GAAoD,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DataGridContextMenuItemId, DataGridMenuItem } from '@salmonui/data-grid';
|
|
2
|
+
import type { GanttInstance } from './instance.js';
|
|
3
|
+
import type { GanttContextMenuItem } from './types.js';
|
|
4
|
+
export declare const GANTT_ITEMS: Set<string>;
|
|
5
|
+
/** The default set (`contextMenu: true`). */
|
|
6
|
+
export declare const CONTEXT_ITEMS: readonly GanttContextMenuItem[];
|
|
7
|
+
export declare function contextItemsOf<Row>(g: GanttInstance<Row>, items: readonly GanttContextMenuItem[]): (DataGridContextMenuItemId | DataGridMenuItem)[];
|
|
8
|
+
//# sourceMappingURL=menu-items.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-items.d.ts","sourceRoot":"","sources":["../../src/gantt/menu-items.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,eAAO,MAAM,WAAW,aAA6N,CAAC;AAEtP,6CAA6C;AAC7C,eAAO,MAAM,aAAa,EAAE,SAAS,oBAAoB,EAAoR,CAAC;AAE9U,wBAAgB,cAAc,CAAC,GAAG,EAAE,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,oBAAoB,EAAE,GAAG,CAAC,yBAAyB,GAAG,gBAAgB,CAAC,EAAE,CAKnJ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Context menu items of the Gantt: the Gantt items
|
|
2
|
+
// become Data Grid custom items (`gantt:<id>`) of the grid pane's context
|
|
3
|
+
// menu, the chart pane opens the same items in its own menu, and Data Grid
|
|
4
|
+
// item ids pass through unchanged. The actions are `menu-run.ts`, in the
|
|
5
|
+
// lazy popups chunk.
|
|
6
|
+
export const GANTT_ITEMS = new Set(['taskInformation', 'deleteTask', 'addAbove', 'addBelow', 'addChild', 'addMilestone', 'convertToTask', 'convertToMilestone', 'deleteDependency', 'indent', 'outdent', 'splitTask', 'mergeTask', 'cancel']);
|
|
7
|
+
/** The default set (`contextMenu: true`). */
|
|
8
|
+
export const CONTEXT_ITEMS = ['autoSizeAll', 'autoSize', 'taskInformation', 'deleteTask', 'save', 'cancel', 'sortAscending', 'sortDescending', 'addAbove', 'addBelow', 'addChild', 'addMilestone', 'convertToTask', 'convertToMilestone', 'deleteDependency', 'indent', 'outdent', 'splitTask', 'mergeTask'];
|
|
9
|
+
export function contextItemsOf(g, items) {
|
|
10
|
+
return items.map((item) => {
|
|
11
|
+
if (typeof item === 'string' && GANTT_ITEMS.has(item))
|
|
12
|
+
return { id: `gantt:${item}`, label: g.text(item), targets: ['row', 'cell'] };
|
|
13
|
+
return item;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=menu-items.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-items.js","sourceRoot":"","sources":["../../src/gantt/menu-items.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,0EAA0E;AAC1E,2EAA2E;AAC3E,yEAAyE;AACzE,qBAAqB;AAOrB,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,GAAG,CAAS,CAAC,iBAAiB,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEtP,6CAA6C;AAC7C,MAAM,CAAC,MAAM,aAAa,GAAoC,CAAC,aAAa,EAAE,UAAU,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAE9U,MAAM,UAAU,cAAc,CAAM,CAAqB,EAAE,KAAsC;IAC/F,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACxB,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,OAAO,EAAE,EAAE,EAAE,SAAS,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,IAAsB,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,EAA6B,CAAC;QAClL,OAAO,IAAoD,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DataGridEventSource } from '@salmonui/data-grid';
|
|
2
|
+
import type { GanttInstance } from './instance.js';
|
|
3
|
+
/** Runs a Gantt context item for a task (the grid handles its own ids). */
|
|
4
|
+
export declare function runContextItem<Row>(g: GanttInstance<Row>, item: string, id: string | null, source: DataGridEventSource): void;
|
|
5
|
+
//# sourceMappingURL=menu-run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-run.d.ts","sourceRoot":"","sources":["../../src/gantt/menu-run.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAInD,2EAA2E;AAC3E,wBAAgB,cAAc,CAAC,GAAG,EAAE,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAoD7H"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// Gantt context menu item actions, in the lazy popups
|
|
2
|
+
// chunk: a grid pane item click loads it on demand.
|
|
3
|
+
import { GANTT_ITEMS } from './menu-items.js';
|
|
4
|
+
/** Runs a Gantt context item for a task (the grid handles its own ids). */
|
|
5
|
+
export function runContextItem(g, item, id, source) {
|
|
6
|
+
const name = (item.startsWith('gantt:') ? item.slice(6) : item);
|
|
7
|
+
if (!GANTT_ITEMS.has(name))
|
|
8
|
+
return;
|
|
9
|
+
const api = g.api;
|
|
10
|
+
if (!api)
|
|
11
|
+
return;
|
|
12
|
+
switch (name) {
|
|
13
|
+
case 'taskInformation':
|
|
14
|
+
if (id)
|
|
15
|
+
api.openEditDialog(id);
|
|
16
|
+
break;
|
|
17
|
+
case 'deleteTask':
|
|
18
|
+
if (id)
|
|
19
|
+
api.deleteTasks([id]);
|
|
20
|
+
break;
|
|
21
|
+
case 'addAbove':
|
|
22
|
+
case 'addBelow':
|
|
23
|
+
case 'addChild':
|
|
24
|
+
api.addTask(undefined, { position: name === 'addAbove' ? 'above' : name === 'addBelow' ? 'below' : 'child', ...(id ? { targetId: id } : {}) });
|
|
25
|
+
break;
|
|
26
|
+
case 'addMilestone':
|
|
27
|
+
api.addTask({ [g.fields.milestone]: true, [g.fields.duration]: 0 }, { position: 'below', ...(id ? { targetId: id } : {}) });
|
|
28
|
+
break;
|
|
29
|
+
case 'convertToTask':
|
|
30
|
+
if (id)
|
|
31
|
+
api.convertToTask(id);
|
|
32
|
+
break;
|
|
33
|
+
case 'convertToMilestone':
|
|
34
|
+
if (id)
|
|
35
|
+
api.convertToMilestone(id);
|
|
36
|
+
break;
|
|
37
|
+
case 'deleteDependency': {
|
|
38
|
+
const task = id ? g.engine.getTask(id) : undefined;
|
|
39
|
+
if (id && task?.predecessors?.length)
|
|
40
|
+
api.updateDependencies(id, []);
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
case 'indent':
|
|
44
|
+
if (id)
|
|
45
|
+
api.indent([id]);
|
|
46
|
+
break;
|
|
47
|
+
case 'outdent':
|
|
48
|
+
if (id)
|
|
49
|
+
api.outdent([id]);
|
|
50
|
+
break;
|
|
51
|
+
case 'splitTask': {
|
|
52
|
+
const s = id ? g.engine.getSchedule(id) : undefined;
|
|
53
|
+
if (id && s?.start != null && s.end != null)
|
|
54
|
+
api.splitTask(id, g.date(g.menuDate ?? s.start + (s.end - s.start) / 2));
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
case 'mergeTask': {
|
|
58
|
+
const s = id ? g.engine.getSchedule(id) : undefined;
|
|
59
|
+
if (id && s?.segments && s.segments.length > 1)
|
|
60
|
+
api.mergeSegments(id, s.segments.map((_, i) => i));
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
case 'cancel':
|
|
64
|
+
api.cancelEdit();
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
void source;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=menu-run.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-run.js","sourceRoot":"","sources":["../../src/gantt/menu-run.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,oDAAoD;AAIpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,2EAA2E;AAC3E,MAAM,UAAU,cAAc,CAAM,CAAqB,EAAE,IAAY,EAAE,EAAiB,EAAE,MAA2B;IACrH,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAA2B,CAAC;IAC1F,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO;IACnC,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC;IAClB,IAAI,CAAC,GAAG;QAAE,OAAO;IACjB,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,iBAAiB;YACpB,IAAI,EAAE;gBAAE,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YAC/B,MAAM;QACR,KAAK,YAAY;YACf,IAAI,EAAE;gBAAE,GAAG,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YAC9B,MAAM;QACR,KAAK,UAAU,CAAC;QAChB,KAAK,UAAU,CAAC;QAChB,KAAK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'adaptive' | 'loading';
|
|
2
|
+
export interface GanttModules {
|
|
3
|
+
readonly resources?: typeof import('./resource-view.js');
|
|
4
|
+
readonly toolbar?: typeof import('./toolbar.js');
|
|
5
|
+
readonly critical?: typeof import('../internal/timeline/project/critical.js');
|
|
6
|
+
readonly remote?: typeof import('./remote.js');
|
|
7
|
+
readonly adaptive?: typeof import('./adaptive.js');
|
|
8
|
+
readonly loading?: typeof import('./loading.js');
|
|
9
|
+
}
|
|
10
|
+
export type GanttModulesThenable = Promise<GanttModules> & {
|
|
11
|
+
status?: 'pending' | 'fulfilled' | 'rejected';
|
|
12
|
+
value?: GanttModules;
|
|
13
|
+
reason?: unknown;
|
|
14
|
+
};
|
|
15
|
+
/** The modules, or a thenable while some are loading (read with `use`). */
|
|
16
|
+
export type ReadGanttModules = (needed: readonly GanttModuleName[]) => GanttModules | GanttModulesThenable;
|
|
17
|
+
/** The modules loaded so far (synchronous). */
|
|
18
|
+
export type PeekGanttModules = () => GanttModules;
|
|
19
|
+
//# sourceMappingURL=modules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../src/gantt/modules.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAEvG,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,cAAc,oBAAoB,CAAC,CAAC;IACzD,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,cAAc,CAAC,CAAC;IACjD,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,0CAA0C,CAAC,CAAC;IAC9E,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,aAAa,CAAC,CAAC;IAC/C,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,eAAe,CAAC,CAAC;IACnD,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,cAAc,CAAC,CAAC;CAClD;AAED,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAAC,KAAK,CAAC,EAAE,YAAY,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAErJ,2EAA2E;AAC3E,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,SAAS,eAAe,EAAE,KAAK,YAAY,GAAG,oBAAoB,CAAC;AAC3G,+CAA+C;AAC/C,MAAM,MAAM,gBAAgB,GAAG,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Gantt render modules read through `#gantt-modules` (the Scheduler `#scheduler-views` pattern):
|
|
2
|
+
// the resource view and multi-taskbar rows, the toolbar and the critical
|
|
3
|
+
// path pass, the remote writer, the adaptive pane switch and the loading placeholders. The server resolves registry-static.ts (every module, so a
|
|
4
|
+
// server render never suspends and renders the full markup); the browser
|
|
5
|
+
// resolves registry-lazy.ts (one chunk per module, loaded when a prop needs
|
|
6
|
+
// it; hydration waits for it).
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=modules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../../src/gantt/modules.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,yEAAyE;AACzE,kJAAkJ;AAClJ,yEAAyE;AACzE,4EAA4E;AAC5E,+BAA+B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { DataGridMenuItem } from '@salmonui/data-grid';
|
|
3
|
+
import type { Formatters } from './chart.js';
|
|
4
|
+
import type { GanttInstance } from './instance.js';
|
|
5
|
+
import { runContextItem } from './menu-run.js';
|
|
6
|
+
export { runContextItem };
|
|
7
|
+
import type { GanttApi } from './types.js';
|
|
8
|
+
export interface MenuState {
|
|
9
|
+
readonly kind: 'menu';
|
|
10
|
+
readonly x: number;
|
|
11
|
+
readonly y: number;
|
|
12
|
+
readonly taskId: string | null;
|
|
13
|
+
readonly items: readonly DataGridMenuItem[];
|
|
14
|
+
}
|
|
15
|
+
export declare function GanttPopups<Row>({ g, api, menu, onCloseMenu, formatters }: {
|
|
16
|
+
g: GanttInstance<Row>;
|
|
17
|
+
api: GanttApi<Row>;
|
|
18
|
+
version: number;
|
|
19
|
+
menu: MenuState | null;
|
|
20
|
+
onCloseMenu: () => void;
|
|
21
|
+
formatters: Formatters;
|
|
22
|
+
}): ReactNode;
|
|
23
|
+
//# sourceMappingURL=popups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popups.d.ts","sourceRoot":"","sources":["../../src/gantt/popups.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAI5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,OAAO,KAAK,EAAE,QAAQ,EAAkD,MAAM,YAAY,CAAC;AA4S3F,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;CAC7C;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE;IAAE,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;IAAC,WAAW,EAAE,MAAM,IAAI,CAAC;IAAC,UAAU,EAAE,UAAU,CAAA;CAAE,GAAG,SAAS,CAyB9N"}
|