ngx-core-components 0.1.2 → 0.1.4

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, signal, computed, viewChild, ChangeDetectionStrategy, Component, Injectable, output, inject } from '@angular/core';
2
+ import { input, signal, computed, viewChild, ChangeDetectionStrategy, Component, Injectable, output, inject, effect } from '@angular/core';
3
3
 
4
4
  // Shared chart utilities and constants
5
5
  const CHART_COLORS = [
@@ -1199,8 +1199,10 @@ class GanttChartComponent {
1199
1199
  scrollLeft = signal(0);
1200
1200
  scrollTop_ = signal(0);
1201
1201
  sidebarWidthOverride = signal(null);
1202
+ lastEmittedZoom = signal(null);
1202
1203
  // Tooltip state
1203
1204
  tooltipTask = signal(null);
1205
+ tooltipSubtask = signal(null);
1204
1206
  tooltipX = signal(0);
1205
1207
  tooltipY = signal(0);
1206
1208
  // Row tooltip state (for sidebar multi-task rows)
@@ -1216,6 +1218,14 @@ class GanttChartComponent {
1216
1218
  }
1217
1219
  return base;
1218
1220
  });
1221
+ // Sidebar columns from config
1222
+ sidebarColumns = computed(() => {
1223
+ const columns = this.mergedConfig().sidebarColumns ?? [];
1224
+ if (columns.length === 0) {
1225
+ return DEFAULT_GANTT_CONFIG.sidebarColumns;
1226
+ }
1227
+ return columns.map(column => ({ ...column, width: Math.max(60, column.width || 120) }));
1228
+ });
1219
1229
  // Tasks with collapse applied
1220
1230
  effectiveTasks = computed(() => {
1221
1231
  const collapsed = this.internalCollapsed();
@@ -1332,6 +1342,15 @@ class GanttChartComponent {
1332
1342
  };
1333
1343
  });
1334
1344
  });
1345
+ constructor() {
1346
+ effect(() => {
1347
+ const zoom = this.mergedConfig().zoomLevel;
1348
+ if (this.lastEmittedZoom() !== zoom) {
1349
+ this.lastEmittedZoom.set(zoom);
1350
+ this.zoomChange.emit(zoom);
1351
+ }
1352
+ });
1353
+ }
1335
1354
  // Timeline scroll handler — syncs treelist scroll & header position
1336
1355
  onTimelineScroll() {
1337
1356
  const el = this.timelineContent()?.nativeElement;
@@ -1343,6 +1362,16 @@ class GanttChartComponent {
1343
1362
  const treeEl = this.treelistContent()?.nativeElement;
1344
1363
  if (treeEl)
1345
1364
  treeEl.scrollTop = el.scrollTop;
1365
+ const cfg = this.mergedConfig();
1366
+ const range = this.dateRange();
1367
+ const visibleStartDate = this.scaleService.xToDate(el.scrollLeft, range.start, cfg.columnWidth, cfg.zoomLevel);
1368
+ const visibleEndDate = this.scaleService.xToDate(el.scrollLeft + el.clientWidth, range.start, cfg.columnWidth, cfg.zoomLevel);
1369
+ this.scroll.emit({
1370
+ scrollLeft: el.scrollLeft,
1371
+ scrollTop: el.scrollTop,
1372
+ visibleStartDate,
1373
+ visibleEndDate,
1374
+ });
1346
1375
  }
1347
1376
  // Splitbar resize
1348
1377
  onSplitBarDown(event) {
@@ -1378,6 +1407,7 @@ class GanttChartComponent {
1378
1407
  barEl.style.cursor = mode === 'move' ? 'grabbing' : 'col-resize';
1379
1408
  barEl.style.zIndex = '10';
1380
1409
  barEl.style.opacity = '0.85';
1410
+ barEl.classList.add('k-dragging');
1381
1411
  const onMove = (e) => {
1382
1412
  const deltaX = e.clientX - startX;
1383
1413
  if (mode === 'move') {
@@ -1401,6 +1431,7 @@ class GanttChartComponent {
1401
1431
  barEl.style.cursor = '';
1402
1432
  barEl.style.zIndex = '';
1403
1433
  barEl.style.opacity = '';
1434
+ barEl.classList.remove('k-dragging');
1404
1435
  const deltaX = e.clientX - startX;
1405
1436
  if (Math.abs(deltaX) < 2)
1406
1437
  return; // ignore tiny movements
@@ -1422,15 +1453,42 @@ class GanttChartComponent {
1422
1453
  newStart = new Date(previousStart.getTime() + deltaMs);
1423
1454
  newEnd = previousEnd;
1424
1455
  }
1425
- if (cfg.snapTo === 'day') {
1426
- newStart = this.scaleService.snapDate(newStart, 'day');
1427
- newEnd = this.scaleService.snapDate(newEnd, 'day');
1456
+ if (cfg.snapTo !== 'none') {
1457
+ newStart = this.scaleService.snapDate(newStart, cfg.snapTo);
1458
+ newEnd = this.scaleService.snapDate(newEnd, cfg.snapTo);
1428
1459
  }
1429
1460
  if (newEnd <= newStart) {
1430
1461
  newEnd = addDays(newStart, 1);
1431
1462
  }
1463
+ // Shift/scale subtask dates along with the parent task
1464
+ let updatedSubtasks = task.subtasks;
1465
+ if (updatedSubtasks && updatedSubtasks.length > 0) {
1466
+ const origDuration = previousEnd.getTime() - previousStart.getTime();
1467
+ const newDuration = newEnd.getTime() - newStart.getTime();
1468
+ if (mode === 'move') {
1469
+ // Move: shift all subtask dates by the same delta
1470
+ const shiftMs = newStart.getTime() - previousStart.getTime();
1471
+ updatedSubtasks = updatedSubtasks.map(sub => ({
1472
+ ...sub,
1473
+ start: new Date(sub.start.getTime() + shiftMs),
1474
+ end: new Date(sub.end.getTime() + shiftMs),
1475
+ }));
1476
+ }
1477
+ else if (origDuration > 0) {
1478
+ // Resize: scale subtask dates proportionally within the new span
1479
+ updatedSubtasks = updatedSubtasks.map(sub => {
1480
+ const subStartRatio = (sub.start.getTime() - previousStart.getTime()) / origDuration;
1481
+ const subEndRatio = (sub.end.getTime() - previousStart.getTime()) / origDuration;
1482
+ return {
1483
+ ...sub,
1484
+ start: new Date(newStart.getTime() + subStartRatio * newDuration),
1485
+ end: new Date(newStart.getTime() + subEndRatio * newDuration),
1486
+ };
1487
+ });
1488
+ }
1489
+ }
1432
1490
  this.taskChange.emit({
1433
- task: { ...task, start: newStart, end: newEnd },
1491
+ task: { ...task, start: newStart, end: newEnd, subtasks: updatedSubtasks },
1434
1492
  previousStart,
1435
1493
  previousEnd,
1436
1494
  });
@@ -1513,13 +1571,46 @@ class GanttChartComponent {
1513
1571
  }
1514
1572
  // Helpers
1515
1573
  formatDateShort(date) {
1516
- return date.toLocaleDateString('en-US', { month: 'short', day: 'numeric' });
1574
+ return date.toLocaleDateString(this.mergedConfig().locale, { month: 'short', day: 'numeric' });
1517
1575
  }
1518
1576
  formatDateFull(date) {
1519
- return date.toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' });
1577
+ return date.toLocaleDateString(this.mergedConfig().locale, { month: 'short', day: 'numeric', year: 'numeric' });
1578
+ }
1579
+ isNameColumn(column, index) {
1580
+ if (typeof column.field === 'function') {
1581
+ return index === 0;
1582
+ }
1583
+ return column.field === 'name' || index === 0;
1584
+ }
1585
+ isDateColumn(column) {
1586
+ return typeof column.field === 'string' && (column.field === 'start' || column.field === 'end');
1587
+ }
1588
+ isProgressColumn(column) {
1589
+ return typeof column.field === 'string' && column.field === 'progress';
1590
+ }
1591
+ getSidebarCellValue(row, column) {
1592
+ if (typeof column.field === 'function') {
1593
+ return String(column.field(row.task) ?? '');
1594
+ }
1595
+ switch (column.field) {
1596
+ case 'start':
1597
+ return this.formatDateShort(getRowStartForCell(row));
1598
+ case 'end':
1599
+ return this.formatDateShort(getRowEndForCell(row));
1600
+ case 'progress':
1601
+ return row.extraTasks.length > 0 ? `~${this.getRowAvgProgress(row)}%` : `${row.task.progress}%`;
1602
+ default: {
1603
+ const value = row.task[column.field];
1604
+ if (value instanceof Date) {
1605
+ return this.formatDateShort(value);
1606
+ }
1607
+ return value == null ? '' : String(value);
1608
+ }
1609
+ }
1520
1610
  }
1521
1611
  showTooltip(task, event) {
1522
1612
  this.tooltipTask.set(task);
1613
+ this.tooltipSubtask.set(null);
1523
1614
  const OFFSET = 14;
1524
1615
  const TOOLTIP_W = 220;
1525
1616
  const TOOLTIP_H = 100;
@@ -1527,8 +1618,19 @@ class GanttChartComponent {
1527
1618
  this.tooltipX.set(flipCoord(event.clientX, TOOLTIP_W, window.innerWidth));
1528
1619
  this.tooltipY.set(flipCoord(event.clientY, TOOLTIP_H, window.innerHeight));
1529
1620
  }
1621
+ showSubtaskTooltip(task, subtask, event) {
1622
+ this.tooltipTask.set(task);
1623
+ this.tooltipSubtask.set(subtask);
1624
+ const OFFSET = 14;
1625
+ const TOOLTIP_W = 240;
1626
+ const TOOLTIP_H = 120;
1627
+ const flipCoord = (cursor, size, viewport) => cursor + OFFSET + size > viewport ? cursor - size - OFFSET : cursor + OFFSET;
1628
+ this.tooltipX.set(flipCoord(event.clientX, TOOLTIP_W, window.innerWidth));
1629
+ this.tooltipY.set(flipCoord(event.clientY, TOOLTIP_H, window.innerHeight));
1630
+ }
1530
1631
  hideTooltip() {
1531
1632
  this.tooltipTask.set(null);
1633
+ this.tooltipSubtask.set(null);
1532
1634
  }
1533
1635
  // Multi-task row helpers
1534
1636
  getRowStart(row) {
@@ -1563,6 +1665,26 @@ class GanttChartComponent {
1563
1665
  value: String(value),
1564
1666
  }));
1565
1667
  }
1668
+ /** Compute pixel positions for subtask segments within a task bar. */
1669
+ getSubtaskBars(bar) {
1670
+ const subtasks = bar.task.subtasks;
1671
+ if (!subtasks || subtasks.length === 0)
1672
+ return [];
1673
+ const cfg = this.mergedConfig();
1674
+ const range = this.dateRange();
1675
+ return subtasks.map(sub => {
1676
+ const subLeft = this.scaleService.dateToX(sub.start, range.start, cfg.columnWidth, cfg.zoomLevel) - bar.left;
1677
+ const subWidth = this.scaleService.getBarWidth(sub.start, sub.end, range.start, cfg.columnWidth, cfg.zoomLevel);
1678
+ // Clamp subtask segment within bar bounds
1679
+ const clampedLeft = Math.max(0, Math.min(subLeft, bar.width));
1680
+ const clampedWidth = Math.max(4, Math.min(subWidth, bar.width - clampedLeft));
1681
+ return {
1682
+ subtask: sub,
1683
+ left: clampedLeft,
1684
+ width: clampedWidth,
1685
+ };
1686
+ });
1687
+ }
1566
1688
  showRowTooltip(row, event) {
1567
1689
  const allTasks = [row.task, ...row.extraTasks];
1568
1690
  this.rowTooltipData.set({ allTasks });
@@ -1622,7 +1744,7 @@ class GanttChartComponent {
1622
1744
  GanttLayoutService,
1623
1745
  GanttKeyboardService,
1624
1746
  ], viewQueries: [{ propertyName: "timelineContent", first: true, predicate: ["timelineContent"], descendants: true, isSignal: true }, { propertyName: "treelistContent", first: true, predicate: ["treelistContent"], descendants: true, isSignal: true }], ngImport: i0, template: `
1625
- <div class="k-gantt" [class.k-gantt-dark]="false" (keydown)="onKeyDown($event)">
1747
+ <div class="k-gantt" [class.k-gantt-dark]="false" [class.k-no-grid]="!mergedConfig().showGrid" (keydown)="onKeyDown($event)">
1626
1748
 
1627
1749
  <!-- ===== TREELIST (Left Panel) ===== -->
1628
1750
  <div class="k-gantt-treelist" [style.width.px]="mergedConfig().sidebarWidth">
@@ -1630,17 +1752,15 @@ class GanttChartComponent {
1630
1752
  <div class="k-treelist-header" [style.height.px]="mergedConfig().headerHeight">
1631
1753
  <table class="k-treelist-header-table">
1632
1754
  <colgroup>
1633
- <col [style.width.px]="mergedConfig().sidebarWidth - 220"/>
1634
- <col style="width: 80px"/>
1635
- <col style="width: 80px"/>
1636
- <col style="width: 60px"/>
1755
+ @for (col of sidebarColumns(); track col.header + '-' + $index) {
1756
+ <col [style.width.px]="col.width"/>
1757
+ }
1637
1758
  </colgroup>
1638
1759
  <thead>
1639
1760
  <tr>
1640
- <th class="k-header-cell">Task Name</th>
1641
- <th class="k-header-cell">Start</th>
1642
- <th class="k-header-cell">End</th>
1643
- <th class="k-header-cell">%</th>
1761
+ @for (col of sidebarColumns(); track col.header + '-' + $index) {
1762
+ <th class="k-header-cell">{{ col.header }}</th>
1763
+ }
1644
1764
  </tr>
1645
1765
  </thead>
1646
1766
  </table>
@@ -1650,10 +1770,9 @@ class GanttChartComponent {
1650
1770
  <div class="k-treelist-content" #treelistContent>
1651
1771
  <table class="k-treelist-table">
1652
1772
  <colgroup>
1653
- <col [style.width.px]="mergedConfig().sidebarWidth - 220"/>
1654
- <col style="width: 80px"/>
1655
- <col style="width: 80px"/>
1656
- <col style="width: 60px"/>
1773
+ @for (col of sidebarColumns(); track col.header + '-' + $index) {
1774
+ <col [style.width.px]="col.width"/>
1775
+ }
1657
1776
  </colgroup>
1658
1777
  <tbody>
1659
1778
  @for (row of visibleRows(); track row.task.id; let i = $index) {
@@ -1667,52 +1786,55 @@ class GanttChartComponent {
1667
1786
  (mouseleave)="hoveredTaskId.set(null)"
1668
1787
  (click)="onRowClick(row.task, $event)"
1669
1788
  >
1670
- <td class="k-treelist-cell k-name-cell"
1671
- (mouseenter)="row.extraTasks.length > 0 ? showRowTooltip(row, $event) : null"
1672
- (mousemove)="row.extraTasks.length > 0 ? updateRowTooltip($event) : null"
1673
- (mouseleave)="row.extraTasks.length > 0 ? hideRowTooltip() : null"
1674
- >
1675
- <span class="k-indent" [style.width.px]="row.depth * 20"></span>
1676
- @if (row.hasChildren && mergedConfig().collapsible) {
1677
- <button
1678
- class="k-collapse-btn"
1679
- (click)="onToggleCollapse(row.task.id); $event.stopPropagation()"
1680
- [attr.aria-expanded]="!row.task.collapsed"
1681
- >
1682
- <span class="k-icon" [class.k-collapsed]="row.task.collapsed">&#9660;</span>
1683
- </button>
1684
- } @else {
1685
- <span class="k-collapse-spacer"></span>
1686
- }
1687
- @if (row.task.isMilestone) {
1688
- <span class="k-milestone-icon">&#9670;</span>
1689
- }
1690
- <div class="k-name-wrapper">
1691
- <span class="k-task-name" [class.k-summary-name]="row.hasChildren" [title]="row.task.name">
1692
- {{ row.task.name }}
1693
- </span>
1694
- @if (row.extraTasks.length > 0) {
1695
- <div class="k-extra-tasks-chips">
1696
- @for (extra of row.extraTasks; track extra.id) {
1697
- <span
1698
- class="k-extra-task-chip"
1699
- [style.background]="extra.color || '#6c757d'"
1700
- [title]="extra.name"
1701
- >{{ extra.name.length > 14 ? extra.name.slice(0, 14) + '…' : extra.name }}</span>
1789
+ @for (col of sidebarColumns(); track col.header + '-' + $index; let colIndex = $index) {
1790
+ <td
1791
+ class="k-treelist-cell"
1792
+ [class.k-name-cell]="isNameColumn(col, colIndex)"
1793
+ [class.k-date-cell]="isDateColumn(col)"
1794
+ [class.k-pct-cell]="isProgressColumn(col)"
1795
+ (mouseenter)="isNameColumn(col, colIndex) && row.extraTasks.length > 0 ? showRowTooltip(row, $event) : null"
1796
+ (mousemove)="isNameColumn(col, colIndex) && row.extraTasks.length > 0 ? updateRowTooltip($event) : null"
1797
+ (mouseleave)="isNameColumn(col, colIndex) && row.extraTasks.length > 0 ? hideRowTooltip() : null"
1798
+ >
1799
+ @if (isNameColumn(col, colIndex)) {
1800
+ <span class="k-indent" [style.width.px]="row.depth * 20"></span>
1801
+ @if (row.hasChildren && mergedConfig().collapsible) {
1802
+ <button
1803
+ class="k-collapse-btn"
1804
+ (click)="onToggleCollapse(row.task.id); $event.stopPropagation()"
1805
+ [attr.aria-expanded]="!row.task.collapsed"
1806
+ >
1807
+ <span class="k-icon" [class.k-collapsed]="row.task.collapsed">&#9660;</span>
1808
+ </button>
1809
+ } @else {
1810
+ <span class="k-collapse-spacer"></span>
1811
+ }
1812
+ @if (row.task.isMilestone) {
1813
+ <span class="k-milestone-icon">&#9670;</span>
1814
+ }
1815
+ <div class="k-name-wrapper">
1816
+ <span class="k-task-name" [class.k-summary-name]="row.hasChildren" [title]="row.task.name">
1817
+ {{ row.task.name }}
1818
+ </span>
1819
+ @if (row.extraTasks.length > 0) {
1820
+ <div class="k-extra-tasks-chips">
1821
+ @for (extra of row.extraTasks; track extra.id) {
1822
+ <span
1823
+ class="k-extra-task-chip"
1824
+ [style.background]="extra.color || '#6c757d'"
1825
+ [title]="extra.name"
1826
+ >{{ extra.name.length > 14 ? extra.name.slice(0, 14) + '…' : extra.name }}</span>
1827
+ }
1828
+ </div>
1702
1829
  }
1703
1830
  </div>
1831
+ } @else if (isProgressColumn(col) && row.extraTasks.length > 0) {
1832
+ <span class="k-multi-pct" [title]="getRowProgressTitle(row)">~{{ getRowAvgProgress(row) }}%</span>
1833
+ } @else {
1834
+ {{ getSidebarCellValue(row, col) }}
1704
1835
  }
1705
- </div>
1706
- </td>
1707
- <td class="k-treelist-cell k-date-cell">{{ formatDateShort(getRowStart(row)) }}</td>
1708
- <td class="k-treelist-cell k-date-cell">{{ formatDateShort(getRowEnd(row)) }}</td>
1709
- <td class="k-treelist-cell k-pct-cell">
1710
- @if (row.extraTasks.length > 0) {
1711
- <span class="k-multi-pct" [title]="getRowProgressTitle(row)">~{{ getRowAvgProgress(row) }}%</span>
1712
- } @else {
1713
- {{ row.task.progress }}%
1714
- }
1715
- </td>
1836
+ </td>
1837
+ }
1716
1838
  </tr>
1717
1839
  }
1718
1840
  </tbody>
@@ -1781,18 +1903,20 @@ class GanttChartComponent {
1781
1903
  </div>
1782
1904
 
1783
1905
  <!-- Vertical column lines -->
1784
- <div class="k-gantt-columns">
1785
- @for (col of headerColumns(); track col.x) {
1786
- <div
1787
- class="k-gantt-column"
1788
- [style.left.px]="col.x"
1789
- [style.width.px]="col.width"
1790
- [style.height.px]="totalHeight()"
1791
- [class.k-weekend-col]="col.isWeekend"
1792
- >
1793
- </div>
1794
- }
1795
- </div>
1906
+ @if (mergedConfig().showGrid) {
1907
+ <div class="k-gantt-columns">
1908
+ @for (col of headerColumns(); track col.x) {
1909
+ <div
1910
+ class="k-gantt-column"
1911
+ [style.left.px]="col.x"
1912
+ [style.width.px]="col.width"
1913
+ [style.height.px]="totalHeight()"
1914
+ [class.k-weekend-col]="col.isWeekend"
1915
+ >
1916
+ </div>
1917
+ }
1918
+ </div>
1919
+ }
1796
1920
 
1797
1921
  <!-- Today marker -->
1798
1922
  @if (mergedConfig().showTodayMarker && todayX() !== null) {
@@ -1827,7 +1951,7 @@ class GanttChartComponent {
1827
1951
  tabindex="0"
1828
1952
  [attr.aria-label]="'Milestone: ' + bar.task.name"
1829
1953
  >
1830
- <div class="k-milestone-diamond" [style.background]="bar.task.color || null"></div>
1954
+ <div class="k-milestone-diamond" [style.background]="bar.task.color || '#e74c3c'"></div>
1831
1955
  </div>
1832
1956
  } @else if (bar.isSummary) {
1833
1957
  <!-- Summary bar (parent task) -->
@@ -1844,19 +1968,61 @@ class GanttChartComponent {
1844
1968
  tabindex="0"
1845
1969
  [attr.aria-label]="bar.task.name + ' - ' + bar.task.progress + '% complete'"
1846
1970
  >
1847
- <div class="k-summary-bar">
1848
- <div class="k-summary-progress" [style.width.%]="bar.task.progress"></div>
1971
+ <div class="k-summary-bar" [style.background]="'#495057'">
1972
+ <div class="k-summary-progress" [style.width.%]="bar.task.progress" [style.background]="'#343a40'"></div>
1849
1973
  </div>
1850
1974
  <div class="k-summary-left-cap"></div>
1851
1975
  <div class="k-summary-right-cap"></div>
1852
1976
  </div>
1977
+ } @else if (bar.task.subtasks && bar.task.subtasks.length > 0) {
1978
+ <!-- Task bar with subtask segments -->
1979
+ <div
1980
+ class="k-task k-task-with-subtasks"
1981
+ [style.left.px]="bar.left"
1982
+ [style.width.px]="bar.width"
1983
+ [style.background]="bar.task.color || '#e9ecef'"
1984
+ [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
1985
+ [class.k-selected]="selectedTaskId() === bar.task.id"
1986
+ (mouseenter)="hoveredTaskId.set(bar.primaryTaskId)"
1987
+ (mouseleave)="hoveredTaskId.set(null); hideTooltip()"
1988
+ (pointerdown)="onBarPointerDown($event, bar.task, 'move')"
1989
+ (click)="onTaskBarClick(bar.task, $event)"
1990
+ (dblclick)="onTaskBarDblClick(bar.task, $event)"
1991
+ tabindex="0"
1992
+ role="img"
1993
+ [attr.aria-label]="bar.task.name + ' with ' + bar.task.subtasks.length + ' subtasks'"
1994
+ >
1995
+ @for (sub of getSubtaskBars(bar); track sub.subtask.id) {
1996
+ <div
1997
+ class="k-subtask-segment"
1998
+ [style.left.px]="sub.left"
1999
+ [style.width.px]="sub.width"
2000
+ [style.background]="sub.subtask.color"
2001
+ [title]="sub.subtask.name + (sub.subtask.description ? ': ' + sub.subtask.description : '')"
2002
+ (mouseenter)="showSubtaskTooltip(bar.task, sub.subtask, $event); $event.stopPropagation()"
2003
+ (mouseleave)="hideTooltip()"
2004
+ >
2005
+ @if (sub.width > 40) {
2006
+ <span class="k-subtask-text">{{ sub.subtask.name }}</span>
2007
+ }
2008
+ @if (sub.subtask.progress != null) {
2009
+ <div class="k-subtask-progress" [style.width.%]="sub.subtask.progress"></div>
2010
+ }
2011
+ </div>
2012
+ }
2013
+ <!-- Resize handles -->
2014
+ @if (bar.task.draggable !== false) {
2015
+ <div class="k-resize-handle k-resize-w" (pointerdown)="onBarPointerDown($event, bar.task, 'resize-left')"></div>
2016
+ <div class="k-resize-handle k-resize-e" (pointerdown)="onBarPointerDown($event, bar.task, 'resize-right')"></div>
2017
+ }
2018
+ </div>
1853
2019
  } @else {
1854
2020
  <!-- Regular task bar -->
1855
2021
  <div
1856
2022
  class="k-task"
1857
2023
  [style.left.px]="bar.left"
1858
2024
  [style.width.px]="bar.width"
1859
- [style.background]="bar.task.color || null"
2025
+ [style.background]="bar.task.color || '#4a90d9'"
1860
2026
  [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
1861
2027
  [class.k-selected]="selectedTaskId() === bar.task.id"
1862
2028
  (mouseenter)="hoveredTaskId.set(bar.primaryTaskId); showTooltip(bar.task, $event)"
@@ -1870,10 +2036,10 @@ class GanttChartComponent {
1870
2036
  >
1871
2037
  <!-- Progress fill -->
1872
2038
  <div class="k-task-progress" [style.width.%]="bar.task.progress">
1873
- <div class="k-task-progress-inner"></div>
2039
+ <div class="k-task-progress-inner" [style.background]="'#2d6cb4'"></div>
1874
2040
  </div>
1875
2041
  <!-- Task text -->
1876
- <span class="k-task-text">{{ bar.task.name }}</span>
2042
+ <span class="k-task-text" [style.color]="'#ffffff'">{{ bar.task.name }}</span>
1877
2043
  <!-- Resize handles -->
1878
2044
  @if (bar.task.draggable !== false) {
1879
2045
  <div class="k-resize-handle k-resize-w" (pointerdown)="onBarPointerDown($event, bar.task, 'resize-left')"></div>
@@ -1896,7 +2062,7 @@ class GanttChartComponent {
1896
2062
  <path
1897
2063
  class="k-dep-line"
1898
2064
  [attr.d]="dep.path"
1899
- [attr.stroke]="dep.dependency.color || null"
2065
+ [attr.stroke]="dep.dependency.color || '#ff6358'"
1900
2066
  marker-end="url(#k-arrowhead)"
1901
2067
  (click)="onDependencyClick(dep.dependency, $event)"
1902
2068
  />
@@ -1916,23 +2082,69 @@ class GanttChartComponent {
1916
2082
  [style.top.px]="tooltipY()"
1917
2083
  >
1918
2084
  <div class="k-bar-tooltip-title">{{ tooltipTask()!.name }}</div>
1919
- <div class="k-bar-tooltip-row">
1920
- <span class="k-bar-tooltip-label">Start</span>
1921
- <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipTask()!.start) }}</span>
1922
- </div>
1923
- <div class="k-bar-tooltip-row">
1924
- <span class="k-bar-tooltip-label">End</span>
1925
- <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipTask()!.end) }}</span>
1926
- </div>
1927
- <div class="k-bar-tooltip-row">
1928
- <span class="k-bar-tooltip-label">Progress</span>
1929
- <span class="k-bar-tooltip-value">{{ tooltipTask()!.progress }}%</span>
1930
- </div>
1931
- @for (entry of getMetaEntries(tooltipTask()!.meta); track entry.key) {
2085
+ @if (tooltipSubtask()) {
1932
2086
  <div class="k-bar-tooltip-row">
1933
- <span class="k-bar-tooltip-label">{{ entry.key }}</span>
1934
- <span class="k-bar-tooltip-value">{{ entry.value }}</span>
2087
+ <span class="k-bar-tooltip-label">Subtask</span>
2088
+ <span class="k-bar-tooltip-value">{{ tooltipSubtask()!.name }}</span>
1935
2089
  </div>
2090
+ @if (tooltipSubtask()!.description) {
2091
+ <div class="k-bar-tooltip-row">
2092
+ <span class="k-bar-tooltip-label">Description</span>
2093
+ <span class="k-bar-tooltip-value">{{ tooltipSubtask()!.description }}</span>
2094
+ </div>
2095
+ }
2096
+ <div class="k-bar-tooltip-row">
2097
+ <span class="k-bar-tooltip-label">Start</span>
2098
+ <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipSubtask()!.start) }}</span>
2099
+ </div>
2100
+ <div class="k-bar-tooltip-row">
2101
+ <span class="k-bar-tooltip-label">End</span>
2102
+ <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipSubtask()!.end) }}</span>
2103
+ </div>
2104
+ @if (tooltipSubtask()!.progress != null) {
2105
+ <div class="k-bar-tooltip-row">
2106
+ <span class="k-bar-tooltip-label">Progress</span>
2107
+ <span class="k-bar-tooltip-value">{{ tooltipSubtask()!.progress }}%</span>
2108
+ </div>
2109
+ }
2110
+ @for (entry of getMetaEntries(tooltipSubtask()!.meta); track entry.key) {
2111
+ <div class="k-bar-tooltip-row">
2112
+ <span class="k-bar-tooltip-label">{{ entry.key }}</span>
2113
+ <span class="k-bar-tooltip-value">{{ entry.value }}</span>
2114
+ </div>
2115
+ }
2116
+ } @else {
2117
+ <div class="k-bar-tooltip-row">
2118
+ <span class="k-bar-tooltip-label">Start</span>
2119
+ <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipTask()!.start) }}</span>
2120
+ </div>
2121
+ <div class="k-bar-tooltip-row">
2122
+ <span class="k-bar-tooltip-label">End</span>
2123
+ <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipTask()!.end) }}</span>
2124
+ </div>
2125
+ <div class="k-bar-tooltip-row">
2126
+ <span class="k-bar-tooltip-label">Progress</span>
2127
+ <span class="k-bar-tooltip-value">{{ tooltipTask()!.progress }}%</span>
2128
+ </div>
2129
+ @for (entry of getMetaEntries(tooltipTask()!.meta); track entry.key) {
2130
+ <div class="k-bar-tooltip-row">
2131
+ <span class="k-bar-tooltip-label">{{ entry.key }}</span>
2132
+ <span class="k-bar-tooltip-value">{{ entry.value }}</span>
2133
+ </div>
2134
+ }
2135
+ @if (tooltipTask()!.subtasks && tooltipTask()!.subtasks!.length > 0) {
2136
+ <div class="k-bar-tooltip-divider"></div>
2137
+ <div class="k-bar-tooltip-label" style="margin-top: 6px;">Subtasks</div>
2138
+ @for (sub of tooltipTask()!.subtasks!; track sub.id) {
2139
+ <div class="k-row-tooltip-task">
2140
+ <span class="k-row-tooltip-dot" [style.background]="sub.color"></span>
2141
+ <span class="k-row-tooltip-name">{{ sub.name }}</span>
2142
+ @if (sub.description) {
2143
+ <span class="k-bar-tooltip-label">{{ sub.description }}</span>
2144
+ }
2145
+ </div>
2146
+ }
2147
+ }
1936
2148
  }
1937
2149
  </div>
1938
2150
  }
@@ -1955,7 +2167,7 @@ class GanttChartComponent {
1955
2167
  }
1956
2168
  </div>
1957
2169
  }
1958
- `, isInline: true, styles: [":host{display:block}.k-gantt{display:flex;height:100%;width:100%;background:var(--ngx-gantt-bg, #ffffff);border:1px solid var(--ngx-gantt-border, #dee2e6);border-radius:4px;font-family:var(--ngx-gantt-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif);font-size:var(--ngx-gantt-font-size, 13px);color:var(--ngx-gantt-text, #212529);overflow:hidden;position:relative}.k-gantt-treelist{display:flex;flex-direction:column;flex-shrink:0;border-right:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;background:var(--ngx-gantt-bg, #ffffff)}.k-treelist-header{flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;display:flex;align-items:flex-end}.k-treelist-header-table,.k-treelist-table{width:100%;border-collapse:collapse;table-layout:fixed}.k-header-cell{padding:8px;text-align:left;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-header-cell:last-child{border-right:none;text-align:center}.k-treelist-content{flex:1;overflow-y:auto;overflow-x:hidden}.k-treelist-row{cursor:default;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-treelist-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-treelist-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-treelist-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-treelist-cell{padding:0 8px;height:100%;vertical-align:middle;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-treelist-cell:last-child{border-right:none}.k-name-cell{display:flex;align-items:center;gap:0}.k-indent{display:inline-block;flex-shrink:0}.k-name-wrapper{display:flex;flex-direction:column;min-width:0;justify-content:center;gap:2px;overflow:hidden}.k-extra-tasks-chips{display:flex;flex-wrap:wrap;gap:3px}.k-extra-task-chip{display:inline-flex;align-items:center;padding:0 5px;height:14px;border-radius:7px;font-size:10px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:110px;opacity:.9;font-weight:500;letter-spacing:.01em}.k-multi-pct{cursor:help}.k-collapse-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;background:none;border:none;cursor:pointer;padding:0;color:var(--ngx-gantt-text-secondary, #6c757d);border-radius:3px}.k-collapse-btn:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-icon{font-size:8px;transition:transform .15s ease;display:inline-block}.k-icon.k-collapsed{transform:rotate(-90deg)}.k-collapse-spacer{display:inline-block;width:20px;flex-shrink:0}.k-milestone-icon{color:var(--ngx-gantt-milestone-color, #e74c3c);margin-right:4px;font-size:10px;flex-shrink:0}.k-task-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k-summary-name{font-weight:600}.k-date-cell{font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);text-align:center}.k-pct-cell{font-size:11px;text-align:center;font-weight:500}.k-splitbar{width:7px;flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-left:1px solid var(--ngx-gantt-border, #dee2e6);border-right:1px solid var(--ngx-gantt-border, #dee2e6);cursor:col-resize;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;z-index:2}.k-splitbar:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-splitbar-icon{color:var(--ngx-gantt-text-secondary, #6c757d);font-size:14px;line-height:1}.k-gantt-timeline{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.k-timeline-header{flex-shrink:0;overflow:hidden;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-timeline-header-wrap{position:relative;display:flex;flex-direction:column;height:100%}.k-header-row{position:relative;flex:1}.k-header-primary{border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-header-group-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px;box-sizing:border-box}.k-header-tick-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;box-sizing:border-box}.k-header-tick-cell.k-weekend{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02));color:#adb5bd}.k-header-tick-cell.k-today-header{color:var(--ngx-gantt-today-color, #ff6358);font-weight:700}.k-timeline-content{flex:1;overflow:auto}.k-timeline-canvas{position:relative}.k-gantt-rows{position:absolute;top:0;left:0;right:0}.k-gantt-row{position:absolute;left:0;right:0;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-gantt-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-gantt-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-gantt-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-gantt-columns{position:absolute;top:0;left:0}.k-gantt-column{position:absolute;top:0;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);box-sizing:border-box}.k-gantt-column.k-weekend-col{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02))}.k-today-marker{position:absolute;top:0;width:2px;background:var(--ngx-gantt-today-color, #ff6358);z-index:3;pointer-events:none}.k-today-indicator{position:absolute;top:-1px;left:-5px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid var(--ngx-gantt-today-color, #ff6358)}.k-gantt-tasks{position:absolute;top:0;left:0;z-index:2}.k-task-wrap{position:absolute;left:0;right:0;display:flex;align-items:center;pointer-events:none}.k-task{position:absolute;height:var(--ngx-gantt-bar-height, 24px);background:var(--ngx-gantt-bar-bg, #4a90d9);border-radius:4px;cursor:grab;pointer-events:all;display:flex;align-items:center;overflow:hidden;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000000f;transition:box-shadow .15s ease;-webkit-user-select:none;user-select:none}.k-task:hover{box-shadow:0 3px 8px #0000002e,0 1px 3px #0000001a}.k-task:active{cursor:grabbing}.k-task.k-focused{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:2px}.k-task.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:1px}.k-task-progress{position:absolute;top:0;left:0;height:100%;overflow:hidden;border-radius:4px 0 0 4px}.k-task-progress-inner{width:10000px;height:100%;background:var(--ngx-gantt-bar-progress-bg, #2d6cb4)}.k-task-text{position:relative;z-index:1;padding:0 8px;color:var(--ngx-gantt-bar-text, #ffffff);font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 1px rgba(0,0,0,.15)}.k-resize-handle{position:absolute;top:0;width:6px;height:100%;cursor:col-resize;pointer-events:all;z-index:2}.k-resize-w{left:0}.k-resize-e{right:0}.k-resize-handle:hover{background:#ffffff40}.k-task-summary{position:absolute;height:10px;pointer-events:all;cursor:pointer;display:flex;align-items:flex-end}.k-task-summary.k-focused,.k-task-summary.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:3px;border-radius:2px}.k-summary-bar{position:relative;width:100%;height:6px;background:var(--ngx-gantt-summary-color, #495057);border-radius:0}.k-summary-progress{height:100%;background:#343a40}.k-summary-left-cap,.k-summary-right-cap{position:absolute;bottom:0;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid var(--ngx-gantt-summary-color, #495057)}.k-summary-left-cap{left:-1px}.k-summary-right-cap{right:-1px}.k-milestone{position:absolute;pointer-events:all;cursor:pointer}.k-milestone.k-focused,.k-milestone.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:4px;border-radius:2px}.k-milestone-diamond{width:16px;height:16px;background:var(--ngx-gantt-milestone-color, #e74c3c);transform:rotate(45deg);border-radius:2px;box-shadow:0 1px 3px #00000026}.k-gantt-dependencies{position:absolute;top:0;left:0;z-index:1;pointer-events:none}.k-dep-line{fill:none;stroke:var(--ngx-gantt-arrow-color, #ff6358);stroke-width:1.5;pointer-events:stroke;cursor:pointer}.k-dep-line:hover{stroke-width:3}@keyframes k-tooltip-fadein{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.k-bar-tooltip{position:fixed;z-index:9999;background:var(--ngx-gantt-tooltip-bg, #2d3748);color:var(--ngx-gantt-tooltip-text, #ffffff);border-radius:6px;padding:10px 14px;min-width:180px;box-shadow:0 4px 16px #00000038;pointer-events:none;font-size:12px;line-height:1.5;animation:k-tooltip-fadein .15s ease}.k-bar-tooltip-title{font-weight:700;font-size:13px;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.k-bar-tooltip-row{display:flex;justify-content:space-between;gap:12px;margin-top:3px}.k-bar-tooltip-label{color:var(--ngx-gantt-tooltip-label, rgba(255,255,255,.65));white-space:nowrap}.k-bar-tooltip-value{font-weight:500;white-space:nowrap}.k-row-tooltip{min-width:240px}.k-row-tooltip-task{display:flex;align-items:center;gap:6px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255,255,255,.12)}.k-row-tooltip-task:first-of-type{border-top:none}.k-row-tooltip-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.k-row-tooltip-name{flex:1;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2170
+ `, isInline: true, styles: [":host{display:block;height:100%;min-height:var(--ngx-gantt-min-height, 420px)}.k-gantt{display:flex;height:100%;min-height:inherit;width:100%;background:var(--ngx-gantt-bg, #ffffff);border:1px solid var(--ngx-gantt-border, #dee2e6);border-radius:4px;font-family:var(--ngx-gantt-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif);font-size:var(--ngx-gantt-font-size, 13px);color:var(--ngx-gantt-text, #212529);overflow:hidden;position:relative}.k-gantt-treelist{display:flex;flex-direction:column;flex-shrink:0;border-right:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;background:var(--ngx-gantt-bg, #ffffff)}.k-treelist-header{flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;display:flex;align-items:flex-end}.k-treelist-header-table,.k-treelist-table{width:100%;border-collapse:collapse;table-layout:fixed}.k-header-cell{padding:8px;text-align:left;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-header-cell:last-child{border-right:none;text-align:center}.k-treelist-content{flex:1;overflow-y:auto;overflow-x:hidden}.k-treelist-row{cursor:default;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-treelist-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-treelist-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-treelist-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-treelist-cell{padding:0 8px;height:100%;vertical-align:middle;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-treelist-cell:last-child{border-right:none}.k-name-cell{display:flex;align-items:center;gap:0}.k-indent{display:inline-block;flex-shrink:0}.k-name-wrapper{display:flex;flex-direction:column;min-width:0;justify-content:center;gap:2px;overflow:hidden}.k-extra-tasks-chips{display:flex;flex-wrap:wrap;gap:3px}.k-extra-task-chip{display:inline-flex;align-items:center;padding:0 5px;height:14px;border-radius:7px;font-size:10px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:110px;opacity:.9;font-weight:500;letter-spacing:.01em}.k-multi-pct{cursor:help}.k-collapse-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;background:none;border:none;cursor:pointer;padding:0;color:var(--ngx-gantt-text-secondary, #6c757d);border-radius:3px}.k-collapse-btn:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-icon{font-size:8px;transition:transform .15s ease;display:inline-block}.k-icon.k-collapsed{transform:rotate(-90deg)}.k-collapse-spacer{display:inline-block;width:20px;flex-shrink:0}.k-milestone-icon{color:var(--ngx-gantt-milestone-color, #e74c3c);margin-right:4px;font-size:10px;flex-shrink:0}.k-task-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k-summary-name{font-weight:600}.k-date-cell{font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);text-align:center}.k-pct-cell{font-size:11px;text-align:center;font-weight:500}.k-splitbar{width:7px;flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-left:1px solid var(--ngx-gantt-border, #dee2e6);border-right:1px solid var(--ngx-gantt-border, #dee2e6);cursor:col-resize;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;z-index:2}.k-splitbar:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-splitbar-icon{color:var(--ngx-gantt-text-secondary, #6c757d);font-size:14px;line-height:1}.k-gantt-timeline{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.k-timeline-header{flex-shrink:0;overflow:hidden;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-timeline-header-wrap{position:relative;display:flex;flex-direction:column;height:100%}.k-header-row{position:relative;flex:1}.k-header-primary{border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-header-group-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px;box-sizing:border-box}.k-header-tick-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;box-sizing:border-box}.k-header-tick-cell.k-weekend{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02));color:#adb5bd}.k-header-tick-cell.k-today-header{color:var(--ngx-gantt-today-color, #ff6358);font-weight:700}.k-timeline-content{flex:1;overflow:auto}.k-timeline-canvas{position:relative}.k-gantt-rows{position:absolute;top:0;left:0;right:0}.k-gantt-row{position:absolute;left:0;right:0;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-gantt-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-gantt-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-gantt-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-gantt-columns{position:absolute;top:0;left:0}.k-gantt-column{position:absolute;top:0;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);box-sizing:border-box}.k-gantt-column.k-weekend-col{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02))}.k-today-marker{position:absolute;top:0;width:2px;background:var(--ngx-gantt-today-color, #ff6358);z-index:3;pointer-events:none}.k-today-indicator{position:absolute;top:-1px;left:-5px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid var(--ngx-gantt-today-color, #ff6358)}.k-gantt-tasks{position:absolute;top:0;left:0;z-index:2}.k-task-wrap{position:absolute;left:0;right:0;display:flex;align-items:center;pointer-events:none}.k-task{position:absolute;height:var(--ngx-gantt-bar-height, 24px);background:var(--ngx-gantt-bar-bg, #4a90d9);border-radius:4px;cursor:grab;pointer-events:all;display:flex;align-items:center;overflow:hidden;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000000f;transition:box-shadow .15s ease;-webkit-user-select:none;user-select:none}.k-task:hover{box-shadow:0 3px 8px #0000002e,0 1px 3px #0000001a}.k-task:active{cursor:grabbing}.k-task.k-focused{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:2px}.k-task.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:1px}.k-task-progress{position:absolute;top:0;left:0;height:100%;overflow:hidden;border-radius:4px 0 0 4px}.k-task-progress-inner{width:10000px;height:100%;background:var(--ngx-gantt-bar-progress-bg, #2d6cb4)}.k-task-text{position:relative;z-index:1;padding:0 8px;color:var(--ngx-gantt-bar-text, #ffffff);font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 1px rgba(0,0,0,.15)}.k-resize-handle{position:absolute;top:0;width:6px;height:100%;cursor:col-resize;pointer-events:all;z-index:2}.k-resize-w{left:0}.k-resize-e{right:0}.k-resize-handle:hover{background:#ffffff40}.k-task-with-subtasks{overflow:hidden;box-shadow:none}.k-task-with-subtasks:hover{box-shadow:none}.k-task-with-subtasks.k-dragging{background:#0000000f!important;border:1px dashed rgba(0,0,0,.2);border-radius:4px}.k-task-with-subtasks.k-dragging .k-subtask-segment{pointer-events:none;transition:none}.k-subtask-segment{position:absolute;top:0;height:100%;border-radius:4px;display:flex;align-items:center;overflow:hidden;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000000f;transition:box-shadow .15s ease,transform .1s ease;cursor:pointer;pointer-events:all;min-width:4px}.k-subtask-segment:hover{box-shadow:0 3px 8px #00000038,0 1px 3px #0000001f;transform:scaleY(1.08);z-index:1}.k-subtask-text{position:relative;z-index:1;padding:0 6px;color:#fff;font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 1px rgba(0,0,0,.2)}.k-subtask-progress{position:absolute;top:0;left:0;height:100%;background:#00000026;border-radius:4px 0 0 4px;pointer-events:none}.k-bar-tooltip-divider{height:1px;background:#ffffff26;margin:6px 0}.k-task-summary{position:absolute;height:10px;pointer-events:all;cursor:pointer;display:flex;align-items:flex-end}.k-task-summary.k-focused,.k-task-summary.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:3px;border-radius:2px}.k-summary-bar{position:relative;width:100%;height:6px;background:var(--ngx-gantt-summary-color, #495057);border-radius:0}.k-summary-progress{height:100%;background:#343a40}.k-summary-left-cap,.k-summary-right-cap{position:absolute;bottom:0;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid var(--ngx-gantt-summary-color, #495057)}.k-summary-left-cap{left:-1px}.k-summary-right-cap{right:-1px}.k-milestone{position:absolute;pointer-events:all;cursor:pointer}.k-milestone.k-focused,.k-milestone.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:4px;border-radius:2px}.k-milestone-diamond{width:16px;height:16px;background:var(--ngx-gantt-milestone-color, #e74c3c);transform:rotate(45deg);border-radius:2px;box-shadow:0 1px 3px #00000026}.k-gantt-dependencies{position:absolute;top:0;left:0;z-index:1;pointer-events:none}.k-dep-line{fill:none;stroke:var(--ngx-gantt-arrow-color, #ff6358);stroke-width:1.5;pointer-events:stroke;cursor:pointer}.k-dep-line:hover{stroke-width:3}@keyframes k-tooltip-fadein{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.k-bar-tooltip{position:fixed;z-index:9999;background:var(--ngx-gantt-tooltip-bg, #2d3748);color:var(--ngx-gantt-tooltip-text, #ffffff);border-radius:6px;padding:10px 14px;min-width:180px;box-shadow:0 4px 16px #00000038;pointer-events:none;font-size:12px;line-height:1.5;animation:k-tooltip-fadein .15s ease}.k-bar-tooltip-title{font-weight:700;font-size:13px;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.k-bar-tooltip-row{display:flex;justify-content:space-between;gap:12px;margin-top:3px}.k-bar-tooltip-label{color:var(--ngx-gantt-tooltip-label, rgba(255,255,255,.65));white-space:nowrap}.k-bar-tooltip-value{font-weight:500;white-space:nowrap}.k-row-tooltip{min-width:240px}.k-row-tooltip-task{display:flex;align-items:center;gap:6px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255,255,255,.12)}.k-row-tooltip-task:first-of-type{border-top:none}.k-row-tooltip-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.k-row-tooltip-name{flex:1;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k-gantt.k-no-grid .k-header-cell,.k-gantt.k-no-grid .k-treelist-cell,.k-gantt.k-no-grid .k-treelist-row,.k-gantt.k-no-grid .k-header-group-cell,.k-gantt.k-no-grid .k-header-tick-cell,.k-gantt.k-no-grid .k-gantt-row,.k-gantt.k-no-grid .k-gantt-column{border:none!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1959
2171
  }
1960
2172
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: GanttChartComponent, decorators: [{
1961
2173
  type: Component,
@@ -1964,7 +2176,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
1964
2176
  GanttLayoutService,
1965
2177
  GanttKeyboardService,
1966
2178
  ], changeDetection: ChangeDetectionStrategy.OnPush, template: `
1967
- <div class="k-gantt" [class.k-gantt-dark]="false" (keydown)="onKeyDown($event)">
2179
+ <div class="k-gantt" [class.k-gantt-dark]="false" [class.k-no-grid]="!mergedConfig().showGrid" (keydown)="onKeyDown($event)">
1968
2180
 
1969
2181
  <!-- ===== TREELIST (Left Panel) ===== -->
1970
2182
  <div class="k-gantt-treelist" [style.width.px]="mergedConfig().sidebarWidth">
@@ -1972,17 +2184,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
1972
2184
  <div class="k-treelist-header" [style.height.px]="mergedConfig().headerHeight">
1973
2185
  <table class="k-treelist-header-table">
1974
2186
  <colgroup>
1975
- <col [style.width.px]="mergedConfig().sidebarWidth - 220"/>
1976
- <col style="width: 80px"/>
1977
- <col style="width: 80px"/>
1978
- <col style="width: 60px"/>
2187
+ @for (col of sidebarColumns(); track col.header + '-' + $index) {
2188
+ <col [style.width.px]="col.width"/>
2189
+ }
1979
2190
  </colgroup>
1980
2191
  <thead>
1981
2192
  <tr>
1982
- <th class="k-header-cell">Task Name</th>
1983
- <th class="k-header-cell">Start</th>
1984
- <th class="k-header-cell">End</th>
1985
- <th class="k-header-cell">%</th>
2193
+ @for (col of sidebarColumns(); track col.header + '-' + $index) {
2194
+ <th class="k-header-cell">{{ col.header }}</th>
2195
+ }
1986
2196
  </tr>
1987
2197
  </thead>
1988
2198
  </table>
@@ -1992,10 +2202,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
1992
2202
  <div class="k-treelist-content" #treelistContent>
1993
2203
  <table class="k-treelist-table">
1994
2204
  <colgroup>
1995
- <col [style.width.px]="mergedConfig().sidebarWidth - 220"/>
1996
- <col style="width: 80px"/>
1997
- <col style="width: 80px"/>
1998
- <col style="width: 60px"/>
2205
+ @for (col of sidebarColumns(); track col.header + '-' + $index) {
2206
+ <col [style.width.px]="col.width"/>
2207
+ }
1999
2208
  </colgroup>
2000
2209
  <tbody>
2001
2210
  @for (row of visibleRows(); track row.task.id; let i = $index) {
@@ -2009,52 +2218,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
2009
2218
  (mouseleave)="hoveredTaskId.set(null)"
2010
2219
  (click)="onRowClick(row.task, $event)"
2011
2220
  >
2012
- <td class="k-treelist-cell k-name-cell"
2013
- (mouseenter)="row.extraTasks.length > 0 ? showRowTooltip(row, $event) : null"
2014
- (mousemove)="row.extraTasks.length > 0 ? updateRowTooltip($event) : null"
2015
- (mouseleave)="row.extraTasks.length > 0 ? hideRowTooltip() : null"
2016
- >
2017
- <span class="k-indent" [style.width.px]="row.depth * 20"></span>
2018
- @if (row.hasChildren && mergedConfig().collapsible) {
2019
- <button
2020
- class="k-collapse-btn"
2021
- (click)="onToggleCollapse(row.task.id); $event.stopPropagation()"
2022
- [attr.aria-expanded]="!row.task.collapsed"
2023
- >
2024
- <span class="k-icon" [class.k-collapsed]="row.task.collapsed">&#9660;</span>
2025
- </button>
2026
- } @else {
2027
- <span class="k-collapse-spacer"></span>
2028
- }
2029
- @if (row.task.isMilestone) {
2030
- <span class="k-milestone-icon">&#9670;</span>
2031
- }
2032
- <div class="k-name-wrapper">
2033
- <span class="k-task-name" [class.k-summary-name]="row.hasChildren" [title]="row.task.name">
2034
- {{ row.task.name }}
2035
- </span>
2036
- @if (row.extraTasks.length > 0) {
2037
- <div class="k-extra-tasks-chips">
2038
- @for (extra of row.extraTasks; track extra.id) {
2039
- <span
2040
- class="k-extra-task-chip"
2041
- [style.background]="extra.color || '#6c757d'"
2042
- [title]="extra.name"
2043
- >{{ extra.name.length > 14 ? extra.name.slice(0, 14) + '…' : extra.name }}</span>
2221
+ @for (col of sidebarColumns(); track col.header + '-' + $index; let colIndex = $index) {
2222
+ <td
2223
+ class="k-treelist-cell"
2224
+ [class.k-name-cell]="isNameColumn(col, colIndex)"
2225
+ [class.k-date-cell]="isDateColumn(col)"
2226
+ [class.k-pct-cell]="isProgressColumn(col)"
2227
+ (mouseenter)="isNameColumn(col, colIndex) && row.extraTasks.length > 0 ? showRowTooltip(row, $event) : null"
2228
+ (mousemove)="isNameColumn(col, colIndex) && row.extraTasks.length > 0 ? updateRowTooltip($event) : null"
2229
+ (mouseleave)="isNameColumn(col, colIndex) && row.extraTasks.length > 0 ? hideRowTooltip() : null"
2230
+ >
2231
+ @if (isNameColumn(col, colIndex)) {
2232
+ <span class="k-indent" [style.width.px]="row.depth * 20"></span>
2233
+ @if (row.hasChildren && mergedConfig().collapsible) {
2234
+ <button
2235
+ class="k-collapse-btn"
2236
+ (click)="onToggleCollapse(row.task.id); $event.stopPropagation()"
2237
+ [attr.aria-expanded]="!row.task.collapsed"
2238
+ >
2239
+ <span class="k-icon" [class.k-collapsed]="row.task.collapsed">&#9660;</span>
2240
+ </button>
2241
+ } @else {
2242
+ <span class="k-collapse-spacer"></span>
2243
+ }
2244
+ @if (row.task.isMilestone) {
2245
+ <span class="k-milestone-icon">&#9670;</span>
2246
+ }
2247
+ <div class="k-name-wrapper">
2248
+ <span class="k-task-name" [class.k-summary-name]="row.hasChildren" [title]="row.task.name">
2249
+ {{ row.task.name }}
2250
+ </span>
2251
+ @if (row.extraTasks.length > 0) {
2252
+ <div class="k-extra-tasks-chips">
2253
+ @for (extra of row.extraTasks; track extra.id) {
2254
+ <span
2255
+ class="k-extra-task-chip"
2256
+ [style.background]="extra.color || '#6c757d'"
2257
+ [title]="extra.name"
2258
+ >{{ extra.name.length > 14 ? extra.name.slice(0, 14) + '…' : extra.name }}</span>
2259
+ }
2260
+ </div>
2044
2261
  }
2045
2262
  </div>
2263
+ } @else if (isProgressColumn(col) && row.extraTasks.length > 0) {
2264
+ <span class="k-multi-pct" [title]="getRowProgressTitle(row)">~{{ getRowAvgProgress(row) }}%</span>
2265
+ } @else {
2266
+ {{ getSidebarCellValue(row, col) }}
2046
2267
  }
2047
- </div>
2048
- </td>
2049
- <td class="k-treelist-cell k-date-cell">{{ formatDateShort(getRowStart(row)) }}</td>
2050
- <td class="k-treelist-cell k-date-cell">{{ formatDateShort(getRowEnd(row)) }}</td>
2051
- <td class="k-treelist-cell k-pct-cell">
2052
- @if (row.extraTasks.length > 0) {
2053
- <span class="k-multi-pct" [title]="getRowProgressTitle(row)">~{{ getRowAvgProgress(row) }}%</span>
2054
- } @else {
2055
- {{ row.task.progress }}%
2056
- }
2057
- </td>
2268
+ </td>
2269
+ }
2058
2270
  </tr>
2059
2271
  }
2060
2272
  </tbody>
@@ -2123,18 +2335,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
2123
2335
  </div>
2124
2336
 
2125
2337
  <!-- Vertical column lines -->
2126
- <div class="k-gantt-columns">
2127
- @for (col of headerColumns(); track col.x) {
2128
- <div
2129
- class="k-gantt-column"
2130
- [style.left.px]="col.x"
2131
- [style.width.px]="col.width"
2132
- [style.height.px]="totalHeight()"
2133
- [class.k-weekend-col]="col.isWeekend"
2134
- >
2135
- </div>
2136
- }
2137
- </div>
2338
+ @if (mergedConfig().showGrid) {
2339
+ <div class="k-gantt-columns">
2340
+ @for (col of headerColumns(); track col.x) {
2341
+ <div
2342
+ class="k-gantt-column"
2343
+ [style.left.px]="col.x"
2344
+ [style.width.px]="col.width"
2345
+ [style.height.px]="totalHeight()"
2346
+ [class.k-weekend-col]="col.isWeekend"
2347
+ >
2348
+ </div>
2349
+ }
2350
+ </div>
2351
+ }
2138
2352
 
2139
2353
  <!-- Today marker -->
2140
2354
  @if (mergedConfig().showTodayMarker && todayX() !== null) {
@@ -2169,7 +2383,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
2169
2383
  tabindex="0"
2170
2384
  [attr.aria-label]="'Milestone: ' + bar.task.name"
2171
2385
  >
2172
- <div class="k-milestone-diamond" [style.background]="bar.task.color || null"></div>
2386
+ <div class="k-milestone-diamond" [style.background]="bar.task.color || '#e74c3c'"></div>
2173
2387
  </div>
2174
2388
  } @else if (bar.isSummary) {
2175
2389
  <!-- Summary bar (parent task) -->
@@ -2186,19 +2400,61 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
2186
2400
  tabindex="0"
2187
2401
  [attr.aria-label]="bar.task.name + ' - ' + bar.task.progress + '% complete'"
2188
2402
  >
2189
- <div class="k-summary-bar">
2190
- <div class="k-summary-progress" [style.width.%]="bar.task.progress"></div>
2403
+ <div class="k-summary-bar" [style.background]="'#495057'">
2404
+ <div class="k-summary-progress" [style.width.%]="bar.task.progress" [style.background]="'#343a40'"></div>
2191
2405
  </div>
2192
2406
  <div class="k-summary-left-cap"></div>
2193
2407
  <div class="k-summary-right-cap"></div>
2194
2408
  </div>
2409
+ } @else if (bar.task.subtasks && bar.task.subtasks.length > 0) {
2410
+ <!-- Task bar with subtask segments -->
2411
+ <div
2412
+ class="k-task k-task-with-subtasks"
2413
+ [style.left.px]="bar.left"
2414
+ [style.width.px]="bar.width"
2415
+ [style.background]="bar.task.color || '#e9ecef'"
2416
+ [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
2417
+ [class.k-selected]="selectedTaskId() === bar.task.id"
2418
+ (mouseenter)="hoveredTaskId.set(bar.primaryTaskId)"
2419
+ (mouseleave)="hoveredTaskId.set(null); hideTooltip()"
2420
+ (pointerdown)="onBarPointerDown($event, bar.task, 'move')"
2421
+ (click)="onTaskBarClick(bar.task, $event)"
2422
+ (dblclick)="onTaskBarDblClick(bar.task, $event)"
2423
+ tabindex="0"
2424
+ role="img"
2425
+ [attr.aria-label]="bar.task.name + ' with ' + bar.task.subtasks.length + ' subtasks'"
2426
+ >
2427
+ @for (sub of getSubtaskBars(bar); track sub.subtask.id) {
2428
+ <div
2429
+ class="k-subtask-segment"
2430
+ [style.left.px]="sub.left"
2431
+ [style.width.px]="sub.width"
2432
+ [style.background]="sub.subtask.color"
2433
+ [title]="sub.subtask.name + (sub.subtask.description ? ': ' + sub.subtask.description : '')"
2434
+ (mouseenter)="showSubtaskTooltip(bar.task, sub.subtask, $event); $event.stopPropagation()"
2435
+ (mouseleave)="hideTooltip()"
2436
+ >
2437
+ @if (sub.width > 40) {
2438
+ <span class="k-subtask-text">{{ sub.subtask.name }}</span>
2439
+ }
2440
+ @if (sub.subtask.progress != null) {
2441
+ <div class="k-subtask-progress" [style.width.%]="sub.subtask.progress"></div>
2442
+ }
2443
+ </div>
2444
+ }
2445
+ <!-- Resize handles -->
2446
+ @if (bar.task.draggable !== false) {
2447
+ <div class="k-resize-handle k-resize-w" (pointerdown)="onBarPointerDown($event, bar.task, 'resize-left')"></div>
2448
+ <div class="k-resize-handle k-resize-e" (pointerdown)="onBarPointerDown($event, bar.task, 'resize-right')"></div>
2449
+ }
2450
+ </div>
2195
2451
  } @else {
2196
2452
  <!-- Regular task bar -->
2197
2453
  <div
2198
2454
  class="k-task"
2199
2455
  [style.left.px]="bar.left"
2200
2456
  [style.width.px]="bar.width"
2201
- [style.background]="bar.task.color || null"
2457
+ [style.background]="bar.task.color || '#4a90d9'"
2202
2458
  [class.k-focused]="keyboardService.focusedTaskId() === bar.task.id"
2203
2459
  [class.k-selected]="selectedTaskId() === bar.task.id"
2204
2460
  (mouseenter)="hoveredTaskId.set(bar.primaryTaskId); showTooltip(bar.task, $event)"
@@ -2212,10 +2468,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
2212
2468
  >
2213
2469
  <!-- Progress fill -->
2214
2470
  <div class="k-task-progress" [style.width.%]="bar.task.progress">
2215
- <div class="k-task-progress-inner"></div>
2471
+ <div class="k-task-progress-inner" [style.background]="'#2d6cb4'"></div>
2216
2472
  </div>
2217
2473
  <!-- Task text -->
2218
- <span class="k-task-text">{{ bar.task.name }}</span>
2474
+ <span class="k-task-text" [style.color]="'#ffffff'">{{ bar.task.name }}</span>
2219
2475
  <!-- Resize handles -->
2220
2476
  @if (bar.task.draggable !== false) {
2221
2477
  <div class="k-resize-handle k-resize-w" (pointerdown)="onBarPointerDown($event, bar.task, 'resize-left')"></div>
@@ -2238,7 +2494,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
2238
2494
  <path
2239
2495
  class="k-dep-line"
2240
2496
  [attr.d]="dep.path"
2241
- [attr.stroke]="dep.dependency.color || null"
2497
+ [attr.stroke]="dep.dependency.color || '#ff6358'"
2242
2498
  marker-end="url(#k-arrowhead)"
2243
2499
  (click)="onDependencyClick(dep.dependency, $event)"
2244
2500
  />
@@ -2258,23 +2514,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
2258
2514
  [style.top.px]="tooltipY()"
2259
2515
  >
2260
2516
  <div class="k-bar-tooltip-title">{{ tooltipTask()!.name }}</div>
2261
- <div class="k-bar-tooltip-row">
2262
- <span class="k-bar-tooltip-label">Start</span>
2263
- <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipTask()!.start) }}</span>
2264
- </div>
2265
- <div class="k-bar-tooltip-row">
2266
- <span class="k-bar-tooltip-label">End</span>
2267
- <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipTask()!.end) }}</span>
2268
- </div>
2269
- <div class="k-bar-tooltip-row">
2270
- <span class="k-bar-tooltip-label">Progress</span>
2271
- <span class="k-bar-tooltip-value">{{ tooltipTask()!.progress }}%</span>
2272
- </div>
2273
- @for (entry of getMetaEntries(tooltipTask()!.meta); track entry.key) {
2517
+ @if (tooltipSubtask()) {
2518
+ <div class="k-bar-tooltip-row">
2519
+ <span class="k-bar-tooltip-label">Subtask</span>
2520
+ <span class="k-bar-tooltip-value">{{ tooltipSubtask()!.name }}</span>
2521
+ </div>
2522
+ @if (tooltipSubtask()!.description) {
2523
+ <div class="k-bar-tooltip-row">
2524
+ <span class="k-bar-tooltip-label">Description</span>
2525
+ <span class="k-bar-tooltip-value">{{ tooltipSubtask()!.description }}</span>
2526
+ </div>
2527
+ }
2274
2528
  <div class="k-bar-tooltip-row">
2275
- <span class="k-bar-tooltip-label">{{ entry.key }}</span>
2276
- <span class="k-bar-tooltip-value">{{ entry.value }}</span>
2529
+ <span class="k-bar-tooltip-label">Start</span>
2530
+ <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipSubtask()!.start) }}</span>
2277
2531
  </div>
2532
+ <div class="k-bar-tooltip-row">
2533
+ <span class="k-bar-tooltip-label">End</span>
2534
+ <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipSubtask()!.end) }}</span>
2535
+ </div>
2536
+ @if (tooltipSubtask()!.progress != null) {
2537
+ <div class="k-bar-tooltip-row">
2538
+ <span class="k-bar-tooltip-label">Progress</span>
2539
+ <span class="k-bar-tooltip-value">{{ tooltipSubtask()!.progress }}%</span>
2540
+ </div>
2541
+ }
2542
+ @for (entry of getMetaEntries(tooltipSubtask()!.meta); track entry.key) {
2543
+ <div class="k-bar-tooltip-row">
2544
+ <span class="k-bar-tooltip-label">{{ entry.key }}</span>
2545
+ <span class="k-bar-tooltip-value">{{ entry.value }}</span>
2546
+ </div>
2547
+ }
2548
+ } @else {
2549
+ <div class="k-bar-tooltip-row">
2550
+ <span class="k-bar-tooltip-label">Start</span>
2551
+ <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipTask()!.start) }}</span>
2552
+ </div>
2553
+ <div class="k-bar-tooltip-row">
2554
+ <span class="k-bar-tooltip-label">End</span>
2555
+ <span class="k-bar-tooltip-value">{{ formatDateFull(tooltipTask()!.end) }}</span>
2556
+ </div>
2557
+ <div class="k-bar-tooltip-row">
2558
+ <span class="k-bar-tooltip-label">Progress</span>
2559
+ <span class="k-bar-tooltip-value">{{ tooltipTask()!.progress }}%</span>
2560
+ </div>
2561
+ @for (entry of getMetaEntries(tooltipTask()!.meta); track entry.key) {
2562
+ <div class="k-bar-tooltip-row">
2563
+ <span class="k-bar-tooltip-label">{{ entry.key }}</span>
2564
+ <span class="k-bar-tooltip-value">{{ entry.value }}</span>
2565
+ </div>
2566
+ }
2567
+ @if (tooltipTask()!.subtasks && tooltipTask()!.subtasks!.length > 0) {
2568
+ <div class="k-bar-tooltip-divider"></div>
2569
+ <div class="k-bar-tooltip-label" style="margin-top: 6px;">Subtasks</div>
2570
+ @for (sub of tooltipTask()!.subtasks!; track sub.id) {
2571
+ <div class="k-row-tooltip-task">
2572
+ <span class="k-row-tooltip-dot" [style.background]="sub.color"></span>
2573
+ <span class="k-row-tooltip-name">{{ sub.name }}</span>
2574
+ @if (sub.description) {
2575
+ <span class="k-bar-tooltip-label">{{ sub.description }}</span>
2576
+ }
2577
+ </div>
2578
+ }
2579
+ }
2278
2580
  }
2279
2581
  </div>
2280
2582
  }
@@ -2297,8 +2599,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
2297
2599
  }
2298
2600
  </div>
2299
2601
  }
2300
- `, styles: [":host{display:block}.k-gantt{display:flex;height:100%;width:100%;background:var(--ngx-gantt-bg, #ffffff);border:1px solid var(--ngx-gantt-border, #dee2e6);border-radius:4px;font-family:var(--ngx-gantt-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif);font-size:var(--ngx-gantt-font-size, 13px);color:var(--ngx-gantt-text, #212529);overflow:hidden;position:relative}.k-gantt-treelist{display:flex;flex-direction:column;flex-shrink:0;border-right:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;background:var(--ngx-gantt-bg, #ffffff)}.k-treelist-header{flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;display:flex;align-items:flex-end}.k-treelist-header-table,.k-treelist-table{width:100%;border-collapse:collapse;table-layout:fixed}.k-header-cell{padding:8px;text-align:left;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-header-cell:last-child{border-right:none;text-align:center}.k-treelist-content{flex:1;overflow-y:auto;overflow-x:hidden}.k-treelist-row{cursor:default;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-treelist-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-treelist-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-treelist-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-treelist-cell{padding:0 8px;height:100%;vertical-align:middle;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-treelist-cell:last-child{border-right:none}.k-name-cell{display:flex;align-items:center;gap:0}.k-indent{display:inline-block;flex-shrink:0}.k-name-wrapper{display:flex;flex-direction:column;min-width:0;justify-content:center;gap:2px;overflow:hidden}.k-extra-tasks-chips{display:flex;flex-wrap:wrap;gap:3px}.k-extra-task-chip{display:inline-flex;align-items:center;padding:0 5px;height:14px;border-radius:7px;font-size:10px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:110px;opacity:.9;font-weight:500;letter-spacing:.01em}.k-multi-pct{cursor:help}.k-collapse-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;background:none;border:none;cursor:pointer;padding:0;color:var(--ngx-gantt-text-secondary, #6c757d);border-radius:3px}.k-collapse-btn:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-icon{font-size:8px;transition:transform .15s ease;display:inline-block}.k-icon.k-collapsed{transform:rotate(-90deg)}.k-collapse-spacer{display:inline-block;width:20px;flex-shrink:0}.k-milestone-icon{color:var(--ngx-gantt-milestone-color, #e74c3c);margin-right:4px;font-size:10px;flex-shrink:0}.k-task-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k-summary-name{font-weight:600}.k-date-cell{font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);text-align:center}.k-pct-cell{font-size:11px;text-align:center;font-weight:500}.k-splitbar{width:7px;flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-left:1px solid var(--ngx-gantt-border, #dee2e6);border-right:1px solid var(--ngx-gantt-border, #dee2e6);cursor:col-resize;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;z-index:2}.k-splitbar:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-splitbar-icon{color:var(--ngx-gantt-text-secondary, #6c757d);font-size:14px;line-height:1}.k-gantt-timeline{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.k-timeline-header{flex-shrink:0;overflow:hidden;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-timeline-header-wrap{position:relative;display:flex;flex-direction:column;height:100%}.k-header-row{position:relative;flex:1}.k-header-primary{border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-header-group-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px;box-sizing:border-box}.k-header-tick-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;box-sizing:border-box}.k-header-tick-cell.k-weekend{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02));color:#adb5bd}.k-header-tick-cell.k-today-header{color:var(--ngx-gantt-today-color, #ff6358);font-weight:700}.k-timeline-content{flex:1;overflow:auto}.k-timeline-canvas{position:relative}.k-gantt-rows{position:absolute;top:0;left:0;right:0}.k-gantt-row{position:absolute;left:0;right:0;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-gantt-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-gantt-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-gantt-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-gantt-columns{position:absolute;top:0;left:0}.k-gantt-column{position:absolute;top:0;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);box-sizing:border-box}.k-gantt-column.k-weekend-col{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02))}.k-today-marker{position:absolute;top:0;width:2px;background:var(--ngx-gantt-today-color, #ff6358);z-index:3;pointer-events:none}.k-today-indicator{position:absolute;top:-1px;left:-5px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid var(--ngx-gantt-today-color, #ff6358)}.k-gantt-tasks{position:absolute;top:0;left:0;z-index:2}.k-task-wrap{position:absolute;left:0;right:0;display:flex;align-items:center;pointer-events:none}.k-task{position:absolute;height:var(--ngx-gantt-bar-height, 24px);background:var(--ngx-gantt-bar-bg, #4a90d9);border-radius:4px;cursor:grab;pointer-events:all;display:flex;align-items:center;overflow:hidden;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000000f;transition:box-shadow .15s ease;-webkit-user-select:none;user-select:none}.k-task:hover{box-shadow:0 3px 8px #0000002e,0 1px 3px #0000001a}.k-task:active{cursor:grabbing}.k-task.k-focused{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:2px}.k-task.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:1px}.k-task-progress{position:absolute;top:0;left:0;height:100%;overflow:hidden;border-radius:4px 0 0 4px}.k-task-progress-inner{width:10000px;height:100%;background:var(--ngx-gantt-bar-progress-bg, #2d6cb4)}.k-task-text{position:relative;z-index:1;padding:0 8px;color:var(--ngx-gantt-bar-text, #ffffff);font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 1px rgba(0,0,0,.15)}.k-resize-handle{position:absolute;top:0;width:6px;height:100%;cursor:col-resize;pointer-events:all;z-index:2}.k-resize-w{left:0}.k-resize-e{right:0}.k-resize-handle:hover{background:#ffffff40}.k-task-summary{position:absolute;height:10px;pointer-events:all;cursor:pointer;display:flex;align-items:flex-end}.k-task-summary.k-focused,.k-task-summary.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:3px;border-radius:2px}.k-summary-bar{position:relative;width:100%;height:6px;background:var(--ngx-gantt-summary-color, #495057);border-radius:0}.k-summary-progress{height:100%;background:#343a40}.k-summary-left-cap,.k-summary-right-cap{position:absolute;bottom:0;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid var(--ngx-gantt-summary-color, #495057)}.k-summary-left-cap{left:-1px}.k-summary-right-cap{right:-1px}.k-milestone{position:absolute;pointer-events:all;cursor:pointer}.k-milestone.k-focused,.k-milestone.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:4px;border-radius:2px}.k-milestone-diamond{width:16px;height:16px;background:var(--ngx-gantt-milestone-color, #e74c3c);transform:rotate(45deg);border-radius:2px;box-shadow:0 1px 3px #00000026}.k-gantt-dependencies{position:absolute;top:0;left:0;z-index:1;pointer-events:none}.k-dep-line{fill:none;stroke:var(--ngx-gantt-arrow-color, #ff6358);stroke-width:1.5;pointer-events:stroke;cursor:pointer}.k-dep-line:hover{stroke-width:3}@keyframes k-tooltip-fadein{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.k-bar-tooltip{position:fixed;z-index:9999;background:var(--ngx-gantt-tooltip-bg, #2d3748);color:var(--ngx-gantt-tooltip-text, #ffffff);border-radius:6px;padding:10px 14px;min-width:180px;box-shadow:0 4px 16px #00000038;pointer-events:none;font-size:12px;line-height:1.5;animation:k-tooltip-fadein .15s ease}.k-bar-tooltip-title{font-weight:700;font-size:13px;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.k-bar-tooltip-row{display:flex;justify-content:space-between;gap:12px;margin-top:3px}.k-bar-tooltip-label{color:var(--ngx-gantt-tooltip-label, rgba(255,255,255,.65));white-space:nowrap}.k-bar-tooltip-value{font-weight:500;white-space:nowrap}.k-row-tooltip{min-width:240px}.k-row-tooltip-task{display:flex;align-items:center;gap:6px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255,255,255,.12)}.k-row-tooltip-task:first-of-type{border-top:none}.k-row-tooltip-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.k-row-tooltip-name{flex:1;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"] }]
2301
- }] });
2602
+ `, styles: [":host{display:block;height:100%;min-height:var(--ngx-gantt-min-height, 420px)}.k-gantt{display:flex;height:100%;min-height:inherit;width:100%;background:var(--ngx-gantt-bg, #ffffff);border:1px solid var(--ngx-gantt-border, #dee2e6);border-radius:4px;font-family:var(--ngx-gantt-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif);font-size:var(--ngx-gantt-font-size, 13px);color:var(--ngx-gantt-text, #212529);overflow:hidden;position:relative}.k-gantt-treelist{display:flex;flex-direction:column;flex-shrink:0;border-right:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;background:var(--ngx-gantt-bg, #ffffff)}.k-treelist-header{flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6);overflow:hidden;display:flex;align-items:flex-end}.k-treelist-header-table,.k-treelist-table{width:100%;border-collapse:collapse;table-layout:fixed}.k-header-cell{padding:8px;text-align:left;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-header-cell:last-child{border-right:none;text-align:center}.k-treelist-content{flex:1;overflow-y:auto;overflow-x:hidden}.k-treelist-row{cursor:default;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-treelist-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-treelist-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-treelist-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-treelist-cell{padding:0 8px;height:100%;vertical-align:middle;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-treelist-cell:last-child{border-right:none}.k-name-cell{display:flex;align-items:center;gap:0}.k-indent{display:inline-block;flex-shrink:0}.k-name-wrapper{display:flex;flex-direction:column;min-width:0;justify-content:center;gap:2px;overflow:hidden}.k-extra-tasks-chips{display:flex;flex-wrap:wrap;gap:3px}.k-extra-task-chip{display:inline-flex;align-items:center;padding:0 5px;height:14px;border-radius:7px;font-size:10px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:110px;opacity:.9;font-weight:500;letter-spacing:.01em}.k-multi-pct{cursor:help}.k-collapse-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;background:none;border:none;cursor:pointer;padding:0;color:var(--ngx-gantt-text-secondary, #6c757d);border-radius:3px}.k-collapse-btn:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-icon{font-size:8px;transition:transform .15s ease;display:inline-block}.k-icon.k-collapsed{transform:rotate(-90deg)}.k-collapse-spacer{display:inline-block;width:20px;flex-shrink:0}.k-milestone-icon{color:var(--ngx-gantt-milestone-color, #e74c3c);margin-right:4px;font-size:10px;flex-shrink:0}.k-task-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k-summary-name{font-weight:600}.k-date-cell{font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);text-align:center}.k-pct-cell{font-size:11px;text-align:center;font-weight:500}.k-splitbar{width:7px;flex-shrink:0;background:var(--ngx-gantt-header-bg, #f1f3f5);border-left:1px solid var(--ngx-gantt-border, #dee2e6);border-right:1px solid var(--ngx-gantt-border, #dee2e6);cursor:col-resize;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;z-index:2}.k-splitbar:hover{background:var(--ngx-gantt-border, #dee2e6)}.k-splitbar-icon{color:var(--ngx-gantt-text-secondary, #6c757d);font-size:14px;line-height:1}.k-gantt-timeline{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.k-timeline-header{flex-shrink:0;overflow:hidden;background:var(--ngx-gantt-header-bg, #f1f3f5);border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-timeline-header-wrap{position:relative;display:flex;flex-direction:column;height:100%}.k-header-row{position:relative;flex:1}.k-header-primary{border-bottom:1px solid var(--ngx-gantt-border, #dee2e6)}.k-header-group-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:var(--ngx-gantt-header-font-size, 12px);font-weight:600;color:var(--ngx-gantt-header-text, #495057);border-right:1px solid var(--ngx-gantt-border, #dee2e6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px;box-sizing:border-box}.k-header-tick-cell{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--ngx-gantt-text-secondary, #6c757d);border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);white-space:nowrap;box-sizing:border-box}.k-header-tick-cell.k-weekend{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02));color:#adb5bd}.k-header-tick-cell.k-today-header{color:var(--ngx-gantt-today-color, #ff6358);font-weight:700}.k-timeline-content{flex:1;overflow:auto}.k-timeline-canvas{position:relative}.k-gantt-rows{position:absolute;top:0;left:0;right:0}.k-gantt-row{position:absolute;left:0;right:0;border-bottom:1px solid var(--ngx-gantt-grid-line, #ebedf0)}.k-gantt-row.k-alt{background:var(--ngx-gantt-alt-bg, #f8f9fa)}.k-gantt-row.k-hover{background:var(--ngx-gantt-hover-bg, #e8f0fe)!important}.k-gantt-row.k-selected{background:var(--ngx-gantt-selected-bg, #d0e1f9)!important}.k-gantt-columns{position:absolute;top:0;left:0}.k-gantt-column{position:absolute;top:0;border-right:1px solid var(--ngx-gantt-grid-line, #ebedf0);box-sizing:border-box}.k-gantt-column.k-weekend-col{background:var(--ngx-gantt-weekend-bg, rgba(0,0,0,.02))}.k-today-marker{position:absolute;top:0;width:2px;background:var(--ngx-gantt-today-color, #ff6358);z-index:3;pointer-events:none}.k-today-indicator{position:absolute;top:-1px;left:-5px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid var(--ngx-gantt-today-color, #ff6358)}.k-gantt-tasks{position:absolute;top:0;left:0;z-index:2}.k-task-wrap{position:absolute;left:0;right:0;display:flex;align-items:center;pointer-events:none}.k-task{position:absolute;height:var(--ngx-gantt-bar-height, 24px);background:var(--ngx-gantt-bar-bg, #4a90d9);border-radius:4px;cursor:grab;pointer-events:all;display:flex;align-items:center;overflow:hidden;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000000f;transition:box-shadow .15s ease;-webkit-user-select:none;user-select:none}.k-task:hover{box-shadow:0 3px 8px #0000002e,0 1px 3px #0000001a}.k-task:active{cursor:grabbing}.k-task.k-focused{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:2px}.k-task.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:1px}.k-task-progress{position:absolute;top:0;left:0;height:100%;overflow:hidden;border-radius:4px 0 0 4px}.k-task-progress-inner{width:10000px;height:100%;background:var(--ngx-gantt-bar-progress-bg, #2d6cb4)}.k-task-text{position:relative;z-index:1;padding:0 8px;color:var(--ngx-gantt-bar-text, #ffffff);font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 1px rgba(0,0,0,.15)}.k-resize-handle{position:absolute;top:0;width:6px;height:100%;cursor:col-resize;pointer-events:all;z-index:2}.k-resize-w{left:0}.k-resize-e{right:0}.k-resize-handle:hover{background:#ffffff40}.k-task-with-subtasks{overflow:hidden;box-shadow:none}.k-task-with-subtasks:hover{box-shadow:none}.k-task-with-subtasks.k-dragging{background:#0000000f!important;border:1px dashed rgba(0,0,0,.2);border-radius:4px}.k-task-with-subtasks.k-dragging .k-subtask-segment{pointer-events:none;transition:none}.k-subtask-segment{position:absolute;top:0;height:100%;border-radius:4px;display:flex;align-items:center;overflow:hidden;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000000f;transition:box-shadow .15s ease,transform .1s ease;cursor:pointer;pointer-events:all;min-width:4px}.k-subtask-segment:hover{box-shadow:0 3px 8px #00000038,0 1px 3px #0000001f;transform:scaleY(1.08);z-index:1}.k-subtask-text{position:relative;z-index:1;padding:0 6px;color:#fff;font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 1px rgba(0,0,0,.2)}.k-subtask-progress{position:absolute;top:0;left:0;height:100%;background:#00000026;border-radius:4px 0 0 4px;pointer-events:none}.k-bar-tooltip-divider{height:1px;background:#ffffff26;margin:6px 0}.k-task-summary{position:absolute;height:10px;pointer-events:all;cursor:pointer;display:flex;align-items:flex-end}.k-task-summary.k-focused,.k-task-summary.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:3px;border-radius:2px}.k-summary-bar{position:relative;width:100%;height:6px;background:var(--ngx-gantt-summary-color, #495057);border-radius:0}.k-summary-progress{height:100%;background:#343a40}.k-summary-left-cap,.k-summary-right-cap{position:absolute;bottom:0;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid var(--ngx-gantt-summary-color, #495057)}.k-summary-left-cap{left:-1px}.k-summary-right-cap{right:-1px}.k-milestone{position:absolute;pointer-events:all;cursor:pointer}.k-milestone.k-focused,.k-milestone.k-selected{outline:2px solid var(--ngx-gantt-focus-ring, #4a90d9);outline-offset:4px;border-radius:2px}.k-milestone-diamond{width:16px;height:16px;background:var(--ngx-gantt-milestone-color, #e74c3c);transform:rotate(45deg);border-radius:2px;box-shadow:0 1px 3px #00000026}.k-gantt-dependencies{position:absolute;top:0;left:0;z-index:1;pointer-events:none}.k-dep-line{fill:none;stroke:var(--ngx-gantt-arrow-color, #ff6358);stroke-width:1.5;pointer-events:stroke;cursor:pointer}.k-dep-line:hover{stroke-width:3}@keyframes k-tooltip-fadein{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.k-bar-tooltip{position:fixed;z-index:9999;background:var(--ngx-gantt-tooltip-bg, #2d3748);color:var(--ngx-gantt-tooltip-text, #ffffff);border-radius:6px;padding:10px 14px;min-width:180px;box-shadow:0 4px 16px #00000038;pointer-events:none;font-size:12px;line-height:1.5;animation:k-tooltip-fadein .15s ease}.k-bar-tooltip-title{font-weight:700;font-size:13px;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.k-bar-tooltip-row{display:flex;justify-content:space-between;gap:12px;margin-top:3px}.k-bar-tooltip-label{color:var(--ngx-gantt-tooltip-label, rgba(255,255,255,.65));white-space:nowrap}.k-bar-tooltip-value{font-weight:500;white-space:nowrap}.k-row-tooltip{min-width:240px}.k-row-tooltip-task{display:flex;align-items:center;gap:6px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255,255,255,.12)}.k-row-tooltip-task:first-of-type{border-top:none}.k-row-tooltip-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.k-row-tooltip-name{flex:1;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k-gantt.k-no-grid .k-header-cell,.k-gantt.k-no-grid .k-treelist-cell,.k-gantt.k-no-grid .k-treelist-row,.k-gantt.k-no-grid .k-header-group-cell,.k-gantt.k-no-grid .k-header-tick-cell,.k-gantt.k-no-grid .k-gantt-row,.k-gantt.k-no-grid .k-gantt-column{border:none!important}\n"] }]
2603
+ }], ctorParameters: () => [] });
2604
+ function getRowStartForCell(row) {
2605
+ if (row.extraTasks.length === 0)
2606
+ return row.task.start;
2607
+ const times = [row.task.start, ...row.extraTasks.map(t => t.start)].map(d => d.getTime());
2608
+ return new Date(Math.min(...times));
2609
+ }
2610
+ function getRowEndForCell(row) {
2611
+ if (row.extraTasks.length === 0)
2612
+ return row.task.end;
2613
+ const times = [row.task.end, ...row.extraTasks.map(t => t.end)].map(d => d.getTime());
2614
+ return new Date(Math.max(...times));
2615
+ }
2302
2616
 
2303
2617
  /*
2304
2618
  * Public API Surface — secondary entry point: ngx-core-components/charts