ngx-core-components 0.0.5 → 0.0.7

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.
@@ -23,6 +23,14 @@ export declare class GanttChartComponent {
23
23
  scrollLeft: import("@angular/core").WritableSignal<number>;
24
24
  private scrollTop_;
25
25
  private sidebarWidthOverride;
26
+ tooltipTask: import("@angular/core").WritableSignal<GanttTask | null>;
27
+ tooltipX: import("@angular/core").WritableSignal<number>;
28
+ tooltipY: import("@angular/core").WritableSignal<number>;
29
+ rowTooltipData: import("@angular/core").WritableSignal<{
30
+ allTasks: GanttTask[];
31
+ } | null>;
32
+ rowTooltipX: import("@angular/core").WritableSignal<number>;
33
+ rowTooltipY: import("@angular/core").WritableSignal<number>;
26
34
  mergedConfig: import("@angular/core").Signal<GanttConfig>;
27
35
  private effectiveTasks;
28
36
  private flatRows;
@@ -53,6 +61,7 @@ export declare class GanttChartComponent {
53
61
  isSummary: boolean;
54
62
  barHeight: number;
55
63
  rowIndex: number;
64
+ primaryTaskId: string;
56
65
  }[]>;
57
66
  dependencyPaths: import("@angular/core").Signal<{
58
67
  dependency: GanttDependency;
@@ -73,6 +82,21 @@ export declare class GanttChartComponent {
73
82
  expandAll(): void;
74
83
  collapseAll(): void;
75
84
  formatDateShort(date: Date): string;
85
+ formatDateFull(date: Date): string;
86
+ showTooltip(task: GanttTask, event: MouseEvent): void;
87
+ hideTooltip(): void;
88
+ getRowStart(row: FlatRow): Date;
89
+ getRowEnd(row: FlatRow): Date;
90
+ getRowAvgProgress(row: FlatRow): number;
91
+ getRowProgressTitle(row: FlatRow): string;
92
+ getMetaEntries(meta: Record<string, unknown> | undefined): {
93
+ key: string;
94
+ value: string;
95
+ }[];
96
+ showRowTooltip(row: FlatRow, event: MouseEvent): void;
97
+ updateRowTooltip(event: MouseEvent): void;
98
+ hideRowTooltip(): void;
99
+ private positionRowTooltip;
76
100
  private getPrimaryLabel;
77
101
  private getSecondaryLabel;
78
102
  private getMsPerUnit;
@@ -11,4 +11,6 @@ export interface GanttTask {
11
11
  meta?: Record<string, unknown>;
12
12
  draggable?: boolean;
13
13
  cssClass?: string;
14
+ /** Tasks sharing the same rowId (and the same parentId) are rendered in a single row. */
15
+ rowId?: string;
14
16
  }
@@ -2,6 +2,8 @@ import { GanttTask } from '../models';
2
2
  import * as i0 from "@angular/core";
3
3
  export interface FlatRow {
4
4
  task: GanttTask;
5
+ /** Additional tasks that share this row (same rowId). */
6
+ extraTasks: GanttTask[];
5
7
  depth: number;
6
8
  rowIndex: number;
7
9
  hasChildren: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-core-components",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Angular component library featuring a full-featured SVG Gantt Chart with drag/resize, dependencies, zoom, tree hierarchy, and theming.",
5
5
  "keywords": [
6
6
  "angular",
@@ -25,8 +25,8 @@
25
25
  },
26
26
  "homepage": "https://prajaktadube.github.io/ngx-core-components/home",
27
27
  "peerDependencies": {
28
- "@angular/common": "^19.0.0",
29
- "@angular/core": "^19.0.0"
28
+ "@angular/common": "^19.0.0 || ^20.0.0 || ^21.0.0",
29
+ "@angular/core": "^19.0.0 || ^20.0.0 || ^21.0.0"
30
30
  },
31
31
  "dependencies": {
32
32
  "tslib": "^2.3.0"