@timelinekit/core 1.0.0 → 1.0.5
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 +1 -1
- package/README.md +200 -0
- package/dist/__tests__/calendar/sidebar/calendar-list.test.d.ts +1 -0
- package/dist/__tests__/calendar/sidebar/mini-calendar.test.d.ts +1 -0
- package/dist/__tests__/calendar/test-helpers.d.ts +169 -0
- package/dist/__tests__/calendar/tooltip/calendar-tooltip-renderer.test.d.ts +1 -0
- package/dist/__tests__/calendar/validation.test.d.ts +1 -0
- package/dist/__tests__/calendar/views/agenda-view.test.d.ts +1 -0
- package/dist/__tests__/calendar/views/day-view.test.d.ts +1 -0
- package/dist/__tests__/calendar/views/drag-handlers.test.d.ts +1 -0
- package/dist/__tests__/calendar/views/keyboard-navigation.test.d.ts +1 -0
- package/dist/__tests__/calendar/views/month-view.test.d.ts +1 -0
- package/dist/__tests__/calendar/views/swipe-navigation-handler.test.d.ts +1 -0
- package/dist/__tests__/calendar/views/time-grid-helper.test.d.ts +1 -0
- package/dist/__tests__/calendar/views/view-utils.test.d.ts +1 -0
- package/dist/__tests__/calendar/views/week-view.test.d.ts +1 -0
- package/dist/__tests__/ganttchart/model/dependency-evaluator.test.d.ts +1 -0
- package/dist/__tests__/ganttchart/model/task-filters.test.d.ts +1 -0
- package/dist/__tests__/ganttchart/model/task-link.test.d.ts +1 -0
- package/dist/calendar/clipboard/calendar-clipboard.d.ts +19 -0
- package/dist/calendar/eventcalendar-context.d.ts +157 -0
- package/dist/calendar/eventcalendar-engine.d.ts +80 -0
- package/dist/calendar/eventcalendar-events.d.ts +40 -0
- package/dist/calendar/eventcalendar-settings.d.ts +30 -0
- package/dist/calendar/export/calendar-data-exporter.d.ts +32 -0
- package/dist/calendar/export/calendar-icalendar-exporter.d.ts +24 -0
- package/dist/calendar/export/calendar-image-exporter.d.ts +17 -0
- package/dist/calendar/export/calendar-pdf-exporter.d.ts +30 -0
- package/dist/calendar/import/calendar-icalendar-importer.d.ts +30 -0
- package/dist/calendar/model/calendar-data.d.ts +34 -0
- package/dist/calendar/model/calendar-entry.d.ts +44 -0
- package/dist/calendar/model/calendar-item.d.ts +151 -0
- package/dist/calendar/model/calendar.d.ts +29 -0
- package/dist/calendar/model/recurrence-editor.d.ts +25 -0
- package/dist/calendar/model/recurrence-exception.d.ts +34 -0
- package/dist/calendar/model/recurrence-expander.d.ts +17 -0
- package/dist/calendar/model/recurrence-rule.d.ts +42 -0
- package/dist/calendar/sidebar/calendar-list.d.ts +13 -0
- package/dist/calendar/sidebar/mini-calendar.d.ts +20 -0
- package/dist/calendar/themes/dark-theme.d.ts +4 -0
- package/dist/calendar/themes/eventcalendar-theme.d.ts +156 -0
- package/dist/calendar/themes/light-theme.d.ts +4 -0
- package/dist/calendar/tooltip/calendar-tooltip-renderer.d.ts +8 -0
- package/dist/calendar/views/agenda-view.d.ts +12 -0
- package/dist/calendar/views/base-view.d.ts +23 -0
- package/dist/calendar/views/day-view.d.ts +11 -0
- package/dist/calendar/views/handlers/allday-drag-handler.d.ts +14 -0
- package/dist/calendar/views/handlers/allday-entry-drag-handler.d.ts +18 -0
- package/dist/calendar/views/handlers/month-drag-handler.d.ts +14 -0
- package/dist/calendar/views/handlers/month-entry-drag-handler.d.ts +18 -0
- package/dist/calendar/views/handlers/swipe-navigation-handler.d.ts +14 -0
- package/dist/calendar/views/handlers/time-grid-drag-handler.d.ts +14 -0
- package/dist/calendar/views/handlers/time-grid-entry-drag-handler.d.ts +18 -0
- package/dist/calendar/views/month-view.d.ts +13 -0
- package/dist/calendar/views/time-grid-helper.d.ts +36 -0
- package/dist/calendar/views/view-utils.d.ts +38 -0
- package/dist/calendar/views/week-view.d.ts +16 -0
- package/dist/common/base-background-renderer.d.ts +9 -6
- package/dist/common/base-chart-handler.d.ts +19 -13
- package/dist/common/base-chart-handlers.d.ts +34 -0
- package/dist/common/base-chart-scroll-handler.d.ts +5 -3
- package/dist/common/base-chart.d.ts +98 -0
- package/dist/common/base-divider.d.ts +2 -0
- package/dist/common/base-engine.d.ts +112 -0
- package/dist/common/base-export-renderer.d.ts +26 -0
- package/dist/common/base-header-renderer.d.ts +8 -6
- package/dist/common/base-markers-renderer.d.ts +9 -6
- package/dist/common/base-theme.d.ts +107 -0
- package/dist/common/base-tooltip-renderer.d.ts +7 -0
- package/dist/common/chart-time-axis.d.ts +32 -0
- package/dist/common/common.d.ts +12 -2
- package/dist/common/custom-properties-container.d.ts +14 -0
- package/dist/common/drawing.d.ts +8 -2
- package/dist/common/export-utils.d.ts +34 -7
- package/dist/common/functions.d.ts +1 -1
- package/dist/common/locale.d.ts +101 -0
- package/dist/common/marker.d.ts +13 -0
- package/dist/common/subscription-manager.d.ts +17 -0
- package/dist/common/text.d.ts +9 -9
- package/dist/common/theme-utils.d.ts +5 -0
- package/dist/common/timeline-theme.d.ts +107 -0
- package/dist/common/undo-manager.d.ts +22 -0
- package/dist/common/working-calendar.d.ts +57 -0
- package/dist/ganttchart/chart/chart-scroll-handler.d.ts +1 -1
- package/dist/ganttchart/chart/chart-time-axis.d.ts +2 -32
- package/dist/ganttchart/chart/chart.d.ts +10 -4
- package/dist/ganttchart/chart/handlers/add-task-part.d.ts +14 -7
- package/dist/ganttchart/chart/handlers/connector-dots-handler.d.ts +10 -8
- package/dist/ganttchart/chart/handlers/gantt-drag-handler.d.ts +32 -0
- package/dist/ganttchart/chart/handlers/handler.d.ts +7 -4
- package/dist/ganttchart/chart/handlers/handlers.d.ts +5 -10
- package/dist/ganttchart/chart/handlers/move-milestone.d.ts +9 -7
- package/dist/ganttchart/chart/handlers/move-task-part.d.ts +9 -7
- package/dist/ganttchart/chart/handlers/resize-task-part.d.ts +18 -7
- package/dist/ganttchart/chart/handlers/select-link.d.ts +8 -6
- package/dist/ganttchart/chart/handlers/select-task.d.ts +13 -11
- package/dist/ganttchart/chart/handlers/set-task-progress.d.ts +14 -7
- package/dist/ganttchart/chart/renderers/chart-background-renderer.d.ts +3 -2
- package/dist/ganttchart/chart/renderers/chart-header-renderer.d.ts +2 -2
- package/dist/ganttchart/chart/renderers/chart-links-renderer.d.ts +4 -3
- package/dist/ganttchart/chart/renderers/chart-markers-renderer.d.ts +2 -2
- package/dist/ganttchart/chart/renderers/chart-tasks-renderer.d.ts +9 -9
- package/dist/ganttchart/chart/renderers/renderer-base.d.ts +2 -1
- package/dist/ganttchart/chart/tooltip/chart-tooltip-renderer.d.ts +4 -6
- package/dist/ganttchart/clipboard.d.ts +10 -3
- package/dist/ganttchart/divider/divider.d.ts +1 -1
- package/dist/ganttchart/export/data-exporter.d.ts +12 -7
- package/dist/ganttchart/export/export-common.d.ts +16 -16
- package/dist/ganttchart/export/image-exporter.d.ts +5 -4
- package/dist/ganttchart/export/pdf-exporter.d.ts +7 -6
- package/dist/ganttchart/ganttchart-engine.d.ts +134 -40
- package/dist/ganttchart/locale.d.ts +2 -66
- package/dist/ganttchart/model/dependency-evaluator.d.ts +16 -0
- package/dist/ganttchart/model/lag.d.ts +11 -0
- package/dist/ganttchart/model/length.d.ts +13 -2
- package/dist/ganttchart/model/marker.d.ts +1 -7
- package/dist/ganttchart/model/rate.d.ts +7 -1
- package/dist/ganttchart/model/resource-list.d.ts +11 -0
- package/dist/ganttchart/model/resource.d.ts +15 -1
- package/dist/ganttchart/model/task-filters.d.ts +10 -0
- package/dist/ganttchart/model/task-link.d.ts +15 -2
- package/dist/ganttchart/model/task-list-adapter.d.ts +22 -0
- package/dist/ganttchart/model/task-list.d.ts +55 -2
- package/dist/ganttchart/model/task-part.d.ts +20 -0
- package/dist/ganttchart/model/task-parts-manager.d.ts +44 -0
- package/dist/ganttchart/model/task-resource.d.ts +11 -0
- package/dist/ganttchart/model/task-serializer.d.ts +5 -0
- package/dist/ganttchart/model/task-warnings.d.ts +4 -0
- package/dist/ganttchart/model/task.d.ts +92 -19
- package/dist/ganttchart/model/work.d.ts +14 -1
- package/dist/ganttchart/model/working-calendar.d.ts +2 -32
- package/dist/ganttchart/sheet/renderers/sheet-icons-cell-renderer.d.ts +2 -0
- package/dist/ganttchart/sheet/sheet.d.ts +12 -7
- package/dist/ganttchart/themes/theme.d.ts +63 -108
- package/dist/ganttchart/undo-manager.d.ts +1 -13
- package/dist/index.d.ts +77 -8
- package/dist/index.js +6 -1
- package/dist/licensing/features.d.ts +3 -1
- package/dist/licensing/license-key.d.ts +1 -0
- package/dist/licensing/license-manager.d.ts +4 -1
- package/dist/licensing/watermark.d.ts +1 -0
- package/dist/locales/cs.d.ts +1 -1
- package/dist/locales/cs.js +1 -0
- package/dist/locales/de.d.ts +1 -1
- package/dist/locales/de.js +1 -0
- package/dist/locales/es.d.ts +1 -1
- package/dist/locales/es.js +1 -0
- package/dist/locales/fr.d.ts +1 -1
- package/dist/locales/fr.js +1 -0
- package/dist/locales/it.d.ts +1 -1
- package/dist/locales/it.js +1 -0
- package/dist/locales/ja.d.ts +1 -1
- package/dist/locales/ja.js +1 -0
- package/dist/locales/ko.d.ts +1 -1
- package/dist/locales/ko.js +1 -0
- package/dist/locales/nl.d.ts +1 -1
- package/dist/locales/nl.js +1 -0
- package/dist/locales/pl.d.ts +1 -1
- package/dist/locales/pl.js +1 -0
- package/dist/locales/pt.d.ts +1 -1
- package/dist/locales/pt.js +1 -0
- package/dist/locales/ru.d.ts +1 -1
- package/dist/locales/ru.js +1 -0
- package/dist/locales/sv.d.ts +1 -1
- package/dist/locales/sv.js +1 -0
- package/dist/locales/zh.d.ts +1 -1
- package/dist/locales/zh.js +1 -0
- package/dist/resourcescheduler/chart/handlers/add-event.d.ts +15 -8
- package/dist/resourcescheduler/chart/handlers/move-event.d.ts +10 -8
- package/dist/resourcescheduler/chart/handlers/resize-event.d.ts +21 -8
- package/dist/resourcescheduler/chart/handlers/scheduler-drag-handler.d.ts +32 -0
- package/dist/resourcescheduler/chart/handlers/scheduler-handler.d.ts +5 -3
- package/dist/resourcescheduler/chart/handlers/scheduler-handlers.d.ts +9 -10
- package/dist/resourcescheduler/chart/handlers/select-event.d.ts +10 -8
- package/dist/resourcescheduler/chart/renderers/scheduler-background-renderer.d.ts +2 -1
- package/dist/resourcescheduler/chart/renderers/scheduler-events-renderer.d.ts +2 -1
- package/dist/resourcescheduler/chart/renderers/scheduler-renderer-base.d.ts +1 -0
- package/dist/resourcescheduler/chart/scheduler-chart.d.ts +9 -4
- package/dist/resourcescheduler/chart/tooltip/scheduler-tooltip-renderer.d.ts +2 -4
- package/dist/resourcescheduler/clipboard.d.ts +8 -0
- package/dist/resourcescheduler/export/scheduler-data-exporter.d.ts +5 -0
- package/dist/resourcescheduler/export/scheduler-export-common.d.ts +12 -7
- package/dist/resourcescheduler/export/scheduler-image-exporter.d.ts +2 -1
- package/dist/resourcescheduler/export/scheduler-pdf-exporter.d.ts +3 -1
- package/dist/resourcescheduler/model/scheduler-data-adapter.d.ts +1 -0
- package/dist/resourcescheduler/model/scheduler-data.d.ts +45 -2
- package/dist/resourcescheduler/model/scheduler-event.d.ts +22 -2
- package/dist/resourcescheduler/model/scheduler-layout-calculator.d.ts +18 -0
- package/dist/resourcescheduler/model/scheduler-resource.d.ts +21 -2
- package/dist/resourcescheduler/resourcescheduler-engine.d.ts +134 -42
- package/dist/resourcescheduler/sheet/renderers/scheduler-icon-cell-renderer.d.ts +2 -0
- package/dist/resourcescheduler/sheet/scheduler-sheet.d.ts +11 -6
- package/dist/resourcescheduler/themes/scheduler-themes.d.ts +13 -0
- package/dist/styles/ec.css +1 -0
- package/dist/styles/gc.css +1 -1
- package/dist/styles/index.css +1 -0
- package/dist/styles/rs.css +1 -0
- package/dist/table/editors/input-editor.d.ts +1 -0
- package/dist/table/table-column.d.ts +7 -1
- package/dist/table/table-data-source.d.ts +2 -0
- package/dist/table/table-rows-selection.d.ts +1 -0
- package/dist/table/table.d.ts +11 -0
- package/dist/table/tree-table.d.ts +2 -0
- package/package.json +24 -13
- package/styles/_common.scss +12 -1
- package/styles/ec.scss +1225 -0
- package/styles/index.scss +3 -0
- package/dist/ganttchart/model/sheet-column.d.ts +0 -27
- package/dist/ganttchart/sheet/editors/cell-editor.d.ts +0 -23
- package/dist/ganttchart/sheet/editors/currency-editor.d.ts +0 -6
- package/dist/ganttchart/sheet/editors/date-editor.d.ts +0 -6
- package/dist/ganttchart/sheet/editors/decimal-editor.d.ts +0 -6
- package/dist/ganttchart/sheet/editors/dialog-editor.d.ts +0 -17
- package/dist/ganttchart/sheet/editors/input-editor.d.ts +0 -19
- package/dist/ganttchart/sheet/editors/integer-editor.d.ts +0 -6
- package/dist/ganttchart/sheet/editors/percent-editor.d.ts +0 -6
- package/dist/ganttchart/sheet/editors/text-editor.d.ts +0 -5
- package/dist/ganttchart/sheet/sheet-keyboard-navigation.d.ts +0 -26
- package/dist/ganttchart/sheet/sheet-rows-selection.d.ts +0 -24
- /package/dist/__tests__/{critical-path-calculator.test.d.ts → calendar/calendar-clipboard.test.d.ts} +0 -0
- /package/dist/__tests__/{model/lag.test.d.ts → calendar/eventcalendar-engine.test.d.ts} +0 -0
- /package/dist/__tests__/{model/length.test.d.ts → calendar/export/calendar-data-export.test.d.ts} +0 -0
- /package/dist/__tests__/{model/resource-list.test.d.ts → calendar/export/calendar-export.test.d.ts} +0 -0
- /package/dist/__tests__/{model/resource.test.d.ts → calendar/export/calendar-icalendar.test.d.ts} +0 -0
- /package/dist/__tests__/{model/task-list.test.d.ts → calendar/model/calendar-data.test.d.ts} +0 -0
- /package/dist/__tests__/{model/task-part.test.d.ts → calendar/model/calendar-item-recurrence.test.d.ts} +0 -0
- /package/dist/__tests__/{model/task-resource.test.d.ts → calendar/model/calendar-item-types.test.d.ts} +0 -0
- /package/dist/__tests__/{model/task-warnings.test.d.ts → calendar/model/calendar-occurrence.test.d.ts} +0 -0
- /package/dist/__tests__/{model/task.test.d.ts → calendar/model/calendar.test.d.ts} +0 -0
- /package/dist/__tests__/{model/work.test.d.ts → calendar/model/recurrence-editor.test.d.ts} +0 -0
- /package/dist/__tests__/{model/working-calendar.test.d.ts → calendar/model/recurrence-expander.test.d.ts} +0 -0
- /package/dist/__tests__/{undo-manager.test.d.ts → calendar/model/recurrence-rule.test.d.ts} +0 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { Point } from "../../../common/common";
|
|
2
2
|
import { GanttChartContext } from "../../ganttchart-engine";
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { GanttChartHandler, ChartHandlerResult } from "./handler";
|
|
4
|
+
import { GanttTasksRenderer } from "../renderers/chart-tasks-renderer";
|
|
5
|
+
import { GanttTooltipRenderer } from "../tooltip/chart-tooltip-renderer";
|
|
6
|
+
export declare class SelectLinkHandler extends GanttChartHandler {
|
|
5
7
|
#private;
|
|
6
|
-
constructor(gc: GanttChartContext);
|
|
7
|
-
onMouseDown(p: Point, ctrl: boolean, event:
|
|
8
|
-
onMouseUp(p: Point, ctrl: boolean, event:
|
|
9
|
-
onKeyDown(key: string, event:
|
|
8
|
+
constructor(gc: GanttChartContext, tasksRenderer: GanttTasksRenderer, tooltipRenderer: GanttTooltipRenderer);
|
|
9
|
+
onMouseDown(p: Point, ctrl: boolean, event: MouseEvent): Promise<ChartHandlerResult>;
|
|
10
|
+
onMouseUp(p: Point, ctrl: boolean, event: MouseEvent): Promise<ChartHandlerResult>;
|
|
11
|
+
onKeyDown(key: string, event: KeyboardEvent): Promise<ChartHandlerResult>;
|
|
10
12
|
onRedrawn(): void;
|
|
11
13
|
}
|
|
@@ -2,21 +2,23 @@ import { Subject } from "rxjs";
|
|
|
2
2
|
import { Point } from "../../../common/common";
|
|
3
3
|
import { Task } from "../../model/task";
|
|
4
4
|
import { GanttChartContext } from "../../ganttchart-engine";
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { GanttChartHandler, ChartHandlerResult } from "./handler";
|
|
6
|
+
import { GanttTasksRenderer } from "../renderers/chart-tasks-renderer";
|
|
7
|
+
import { GanttTooltipRenderer } from "../tooltip/chart-tooltip-renderer";
|
|
8
|
+
export declare class SelectTaskHandler extends GanttChartHandler {
|
|
7
9
|
#private;
|
|
8
10
|
dblClick$: Subject<Task>;
|
|
9
11
|
contextMenu$: Subject<TaskContextMenuArgs>;
|
|
10
|
-
constructor(gc: GanttChartContext);
|
|
11
|
-
onMouseMove(p: Point, event:
|
|
12
|
-
onMouseDown(p: Point, ctrl: boolean, event:
|
|
13
|
-
onMouseUp(p: Point, ctrl: boolean, event:
|
|
14
|
-
onKeyDown(key: string, event:
|
|
15
|
-
onMouseLeave(p: Point, event:
|
|
16
|
-
onContextMenu(p: Point, event:
|
|
17
|
-
onDblClick(p: Point, event:
|
|
12
|
+
constructor(gc: GanttChartContext, tasksRenderer: GanttTasksRenderer, tooltipRenderer: GanttTooltipRenderer);
|
|
13
|
+
onMouseMove(p: Point, event: MouseEvent): Promise<ChartHandlerResult>;
|
|
14
|
+
onMouseDown(p: Point, ctrl: boolean, event: MouseEvent): Promise<ChartHandlerResult>;
|
|
15
|
+
onMouseUp(p: Point, ctrl: boolean, event: MouseEvent): Promise<ChartHandlerResult>;
|
|
16
|
+
onKeyDown(key: string, event: KeyboardEvent): Promise<ChartHandlerResult>;
|
|
17
|
+
onMouseLeave(p: Point, event: MouseEvent): Promise<ChartHandlerResult>;
|
|
18
|
+
onContextMenu(p: Point, event: MouseEvent): ChartHandlerResult;
|
|
19
|
+
onDblClick(p: Point, event: MouseEvent): ChartHandlerResult;
|
|
18
20
|
}
|
|
19
21
|
export interface TaskContextMenuArgs {
|
|
20
22
|
task: Task;
|
|
21
|
-
mouseEvent:
|
|
23
|
+
mouseEvent: MouseEvent;
|
|
22
24
|
}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { Point } from "../../../common/common";
|
|
2
|
+
import { Task } from "../../model/task";
|
|
2
3
|
import { GanttChartContext } from "../../ganttchart-engine";
|
|
3
|
-
import {
|
|
4
|
-
|
|
4
|
+
import { GanttTooltipRenderer } from "../tooltip/chart-tooltip-renderer";
|
|
5
|
+
import { GanttTasksRenderer } from "../renderers/chart-tasks-renderer";
|
|
6
|
+
import { GanttDragHandler } from "./gantt-drag-handler";
|
|
7
|
+
export declare class SetTaskProgressHandler extends GanttDragHandler<TaskProgressAt> {
|
|
5
8
|
#private;
|
|
6
|
-
constructor(gc: GanttChartContext);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
onRedrawn(): void;
|
|
9
|
+
constructor(gc: GanttChartContext, tasksRenderer: GanttTasksRenderer, tooltipRenderer: GanttTooltipRenderer);
|
|
10
|
+
protected hitTest(p: Point): TaskProgressAt | null;
|
|
11
|
+
protected onDragEnd(target: TaskProgressAt, p: Point): void;
|
|
12
|
+
protected onDragDraw(target: TaskProgressAt): void;
|
|
11
13
|
}
|
|
14
|
+
interface TaskProgressAt {
|
|
15
|
+
task: Task;
|
|
16
|
+
deltaX: number;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { CanvasLike } from "../../../common/common";
|
|
1
2
|
import { BaseBackgroundRenderer } from "../../../common/base-background-renderer";
|
|
2
3
|
import { GanttChartContext } from "../../ganttchart-engine";
|
|
3
|
-
export declare class
|
|
4
|
+
export declare class GanttBackgroundRenderer extends BaseBackgroundRenderer {
|
|
4
5
|
#private;
|
|
5
6
|
constructor(gc: GanttChartContext);
|
|
6
7
|
protected getContentBottom(canvasHeight: number): number;
|
|
7
|
-
protected drawHorizontalGridLines(canvas:
|
|
8
|
+
protected drawHorizontalGridLines(canvas: CanvasLike, ctx: CanvasRenderingContext2D): void;
|
|
8
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GanttChartContext } from "../../ganttchart-engine";
|
|
2
|
-
import {
|
|
3
|
-
export declare class
|
|
2
|
+
import { GanttRendererBase } from "./renderer-base";
|
|
3
|
+
export declare class GanttHeaderRenderer extends GanttRendererBase {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(gc: GanttChartContext);
|
|
6
6
|
render(canvas: any): void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { CanvasLike } from "../../../common/common";
|
|
1
2
|
import { GanttChartContext } from "../../ganttchart-engine";
|
|
2
|
-
import {
|
|
3
|
-
export declare class
|
|
3
|
+
import { GanttRendererBase } from "./renderer-base";
|
|
4
|
+
export declare class GanttLinksRenderer extends GanttRendererBase {
|
|
4
5
|
#private;
|
|
5
6
|
constructor(gc: GanttChartContext);
|
|
6
|
-
render(canvas:
|
|
7
|
+
render(canvas: CanvasLike): void;
|
|
7
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GanttChartContext } from "../../ganttchart-engine";
|
|
2
|
-
import {
|
|
3
|
-
export declare class
|
|
2
|
+
import { GanttRendererBase } from "./renderer-base";
|
|
3
|
+
export declare class GanttMarkersRenderer extends GanttRendererBase {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(gc: GanttChartContext);
|
|
6
6
|
render(canvas: any): void;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CanvasLike } from "../../../common/common";
|
|
2
2
|
import { Task } from "../../model/task";
|
|
3
3
|
import { GanttChartContext } from "../../ganttchart-engine";
|
|
4
|
-
import {
|
|
5
|
-
export declare class
|
|
4
|
+
import { GanttRendererBase } from "./renderer-base";
|
|
5
|
+
export declare class GanttTasksRenderer extends GanttRendererBase {
|
|
6
6
|
#private;
|
|
7
7
|
constructor(gc: GanttChartContext);
|
|
8
|
-
render(canvas:
|
|
9
|
-
drawTaskHighlightX1X2(ctx:
|
|
10
|
-
drawTaskProgressHighlight(ctx:
|
|
11
|
-
drawTaskHighlight(ctx:
|
|
8
|
+
render(canvas: CanvasLike): void;
|
|
9
|
+
drawTaskHighlightX1X2(ctx: CanvasRenderingContext2D, task: Task, x1: number, x2: number): void;
|
|
10
|
+
drawTaskProgressHighlight(ctx: CanvasRenderingContext2D, task: Task, x1: number, x2: number): void;
|
|
11
|
+
drawTaskHighlight(ctx: CanvasRenderingContext2D, task: Task): void;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
14
|
-
export declare function
|
|
13
|
+
export { createGradientVertical, createGradientHorizontal } from "../../../common/drawing";
|
|
14
|
+
export declare function getLabelText(task: Task, content: string): string | null;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Task } from "../../model/task";
|
|
2
2
|
import { GanttChartContext } from "../../ganttchart-engine";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class GanttRendererBase {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(gc: GanttChartContext);
|
|
6
6
|
get rowHeight(): number;
|
|
7
7
|
protected getRowY(task: Task): number;
|
|
8
8
|
protected getContentBottom(canvasHeight: number): number;
|
|
9
|
+
protected drawRowHighlight(ctx: CanvasRenderingContext2D, canvasWidth: number, rowY: number, rowHeight: number): void;
|
|
9
10
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Task } from "../../model/task";
|
|
2
2
|
import { GanttChartContext } from "../../ganttchart-engine";
|
|
3
|
-
|
|
3
|
+
import { TooltipLine } from "../../../common/base-tooltip-renderer";
|
|
4
|
+
export type GanttTooltipLine = TooltipLine;
|
|
5
|
+
export declare class GanttTooltipRenderer {
|
|
4
6
|
#private;
|
|
5
7
|
constructor(gc: GanttChartContext);
|
|
6
|
-
drawTooltip(canvas: any, forTasks: Task[], startX: number, title: string, lines:
|
|
7
|
-
}
|
|
8
|
-
export interface ChartTooltipLine {
|
|
9
|
-
name: string;
|
|
10
|
-
value: string;
|
|
8
|
+
drawTooltip(canvas: any, forTasks: Task[], startX: number, title: string, lines: GanttTooltipLine[]): void;
|
|
11
9
|
}
|
|
@@ -4,29 +4,36 @@ import { TaskLink, TaskLinkType } from "./model/task-link";
|
|
|
4
4
|
import { ResourceList } from "./model/resource-list";
|
|
5
5
|
import { WorkingCalendar } from "./model/working-calendar";
|
|
6
6
|
import { BehaviorSubject } from "rxjs";
|
|
7
|
-
|
|
7
|
+
/** Shared dependencies required by the clipboard for task serialization and insertion. */
|
|
8
|
+
export interface GanttClipboardContext {
|
|
8
9
|
list: TaskList;
|
|
9
10
|
resources: ResourceList;
|
|
10
11
|
calendar$: BehaviorSubject<WorkingCalendar>;
|
|
11
12
|
projectTimeline$: BehaviorSubject<any>;
|
|
12
13
|
sheetSelectedTasks$: BehaviorSubject<Task[]>;
|
|
13
14
|
}
|
|
15
|
+
/** Event arguments emitted after a paste operation completes. */
|
|
14
16
|
export interface TasksPastedEventArgs {
|
|
15
17
|
tasks: Task[];
|
|
16
18
|
links: TaskLink[];
|
|
17
19
|
taskIdMap: Map<string, Task>;
|
|
18
20
|
droppedLinks: DroppedLinkInfo[];
|
|
19
21
|
}
|
|
22
|
+
/** Describes a dependency link that could not be recreated because one end is outside the pasted set. */
|
|
20
23
|
export interface DroppedLinkInfo {
|
|
21
24
|
type: TaskLinkType;
|
|
22
25
|
fromId: string;
|
|
23
26
|
toId: string;
|
|
24
27
|
externalSide: 'from' | 'to';
|
|
25
28
|
}
|
|
26
|
-
|
|
29
|
+
/** Handles copy, cut, and paste of tasks using both internal serialization and system clipboard TSV. */
|
|
30
|
+
export declare class GanttClipboardManager {
|
|
27
31
|
#private;
|
|
28
|
-
constructor(gc:
|
|
32
|
+
constructor(gc: GanttClipboardContext);
|
|
33
|
+
/** Serializes the given tasks and writes a TSV representation to the system clipboard. */
|
|
29
34
|
copy(tasks: Task[]): Promise<void>;
|
|
35
|
+
/** Copies the given tasks and then removes them from the task list. */
|
|
30
36
|
cut(tasks: Task[]): Promise<void>;
|
|
37
|
+
/** Inserts tasks from internal clipboard data or falls back to parsing TSV from the system clipboard. */
|
|
31
38
|
paste(): Promise<TasksPastedEventArgs | null>;
|
|
32
39
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseDivider } from "../../common/base-divider";
|
|
2
2
|
import { GanttChartContext } from "../ganttchart-engine";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class GanttDivider extends BaseDivider {
|
|
4
4
|
constructor(gc: GanttChartContext, wrapperElement: any, sheetElement: any, dividerElement: any, chartElement: any);
|
|
5
5
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { GanttChartContext } from "../ganttchart-engine";
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
2
|
+
import { GanttSheet } from "../sheet/sheet";
|
|
3
|
+
/** Options for CSV export of task data. */
|
|
4
|
+
export interface GanttCsvExportOptions {
|
|
4
5
|
/** Column delimiter. Default: ',' */
|
|
5
6
|
delimiter?: ',' | ';' | '\t';
|
|
6
7
|
/** Include column headers? Default: true */
|
|
@@ -10,7 +11,8 @@ export interface CsvExportOptions {
|
|
|
10
11
|
/** Append dependency links as a separate section? Default: false */
|
|
11
12
|
includeLinks?: boolean;
|
|
12
13
|
}
|
|
13
|
-
export
|
|
14
|
+
/** Options for Excel (XLSX) export of task, link, and resource data. */
|
|
15
|
+
export interface GanttExcelExportOptions {
|
|
14
16
|
/** Name of the tasks sheet. Default: 'Tasks' */
|
|
15
17
|
sheetName?: string;
|
|
16
18
|
/** Include a sheet with dependency links? Default: true */
|
|
@@ -22,9 +24,12 @@ export interface ExcelExportOptions {
|
|
|
22
24
|
/** Which columns to export (by code). Default: all visible columns */
|
|
23
25
|
columns?: string[];
|
|
24
26
|
}
|
|
25
|
-
|
|
27
|
+
/** Exports Gantt chart task data to CSV and Excel formats. */
|
|
28
|
+
export declare class GanttDataExporter {
|
|
26
29
|
#private;
|
|
27
|
-
constructor(gc: GanttChartContext, sheet:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
constructor(gc: GanttChartContext, sheet: GanttSheet);
|
|
31
|
+
/** Generates a CSV string from visible tasks and optionally dependency links. */
|
|
32
|
+
exportToCsv(options?: GanttCsvExportOptions): string;
|
|
33
|
+
/** Generates an Excel workbook with tasks, links, and resources as separate sheets. */
|
|
34
|
+
exportToExcel(options?: GanttExcelExportOptions): Promise<Blob>;
|
|
30
35
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SheetExportDimensions, ExportColumn } from "../../common/export-utils";
|
|
2
|
+
import { BaseExportRenderer } from "../../common/base-export-renderer";
|
|
2
3
|
import { GanttChartContext } from "../ganttchart-engine";
|
|
3
|
-
import {
|
|
4
|
+
import { GanttSheet } from "../sheet/sheet";
|
|
4
5
|
import { GanttChartTheme } from "../themes/theme";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
width: number;
|
|
9
|
-
align: string | null;
|
|
10
|
-
valueFormatter: (task: any) => string;
|
|
11
|
-
}
|
|
12
|
-
export interface ExportDimensions extends BaseExportDimensions {
|
|
13
|
-
visibleColumns: ExportColumn[];
|
|
6
|
+
export type { ExportColumn };
|
|
7
|
+
/** Calculated layout dimensions for a Gantt chart export, extending the base with column and row info. */
|
|
8
|
+
export interface GanttExportDimensions extends SheetExportDimensions {
|
|
14
9
|
visibleRowCount: number;
|
|
15
10
|
}
|
|
16
|
-
|
|
11
|
+
/** Renders the Gantt chart sheet and timeline into a canvas context for image/PDF export. */
|
|
12
|
+
export declare class GanttExportRenderer extends BaseExportRenderer<GanttExportDimensions> {
|
|
17
13
|
#private;
|
|
18
|
-
constructor(gc: GanttChartContext, sheet:
|
|
14
|
+
constructor(gc: GanttChartContext, sheet: GanttSheet);
|
|
15
|
+
/** Returns the current Gantt chart theme. */
|
|
19
16
|
get theme(): GanttChartTheme;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
/** Computes the pixel dimensions of the sheet and chart areas based on visible columns and rows. */
|
|
18
|
+
calculateDimensions(): GanttExportDimensions;
|
|
19
|
+
/** Draws the data rows onto the given canvas context. */
|
|
20
|
+
protected renderSheetRows(ctx: any, dims: GanttExportDimensions): void;
|
|
21
|
+
/** Draws the timeline chart (header, tasks, links, markers) onto the given canvas context. */
|
|
22
|
+
renderChart(ctx: any, sheetWidth: number, dims: GanttExportDimensions, scale?: number): void;
|
|
23
23
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { GanttChartContext } from "../ganttchart-engine";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { GanttSheet } from "../sheet/sheet";
|
|
3
|
+
import { GanttExportDimensions } from "./export-common";
|
|
4
4
|
import { BaseImageExporter } from "../../common/base-image-exporter";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/** Exports the Gantt chart as a raster image (PNG). */
|
|
6
|
+
export declare class GanttImageExporter extends BaseImageExporter<GanttExportDimensions> {
|
|
7
|
+
constructor(gc: GanttChartContext, sheet: GanttSheet);
|
|
7
8
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { GanttChartContext } from "../ganttchart-engine";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { GanttSheet } from "../sheet/sheet";
|
|
3
|
+
import { GanttExportDimensions } from "./export-common";
|
|
4
4
|
import { BasePdfExporter } from "../../common/base-pdf-exporter";
|
|
5
|
-
export type { BasePdfExportOptions as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export type { BasePdfExportOptions as GanttPdfExportOptions } from "../../common/export-utils";
|
|
6
|
+
/** Exports the Gantt chart as a multi-page PDF document. */
|
|
7
|
+
export declare class GanttPdfExporter extends BasePdfExporter<GanttExportDimensions> {
|
|
8
|
+
constructor(gc: GanttChartContext, sheet: GanttSheet);
|
|
9
|
+
protected computeVerticalPageBreaks(dims: GanttExportDimensions, contentHeightPx: number, headerHeight: number): {
|
|
9
10
|
srcY: number;
|
|
10
11
|
height: number;
|
|
11
12
|
}[];
|