gantt-lib 0.122.0 → 0.124.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styles.css CHANGED
@@ -350,6 +350,7 @@
350
350
  --gantt-dependency-line-color: rgba(0, 0, 55, 0.8);
351
351
  --gantt-dependency-cycle-color: #ef4444;
352
352
  --gantt-expired-color: #ef4444;
353
+ --gantt-critical-path-color: #dc2626;
353
354
  --gantt-parent-bar-color: #782fc4;
354
355
  --gantt-parent-bar-height: 20px;
355
356
  --gantt-parent-bar-radius: 8px;
@@ -493,6 +494,33 @@
493
494
  transition: box-shadow 0.15s ease;
494
495
  cursor: grab;
495
496
  }
497
+ .gantt-tr-taskBar.gantt-tr-critical {
498
+ background-image:
499
+ repeating-linear-gradient(
500
+ -45deg,
501
+ color-mix(in srgb, var(--gantt-critical-path-color, #dc2626) 55%, transparent) 0,
502
+ color-mix(in srgb, var(--gantt-critical-path-color, #dc2626) 55%, transparent) 5px,
503
+ transparent 5px,
504
+ transparent 10px);
505
+ }
506
+ .gantt-tr-taskBar.gantt-tr-critical.gantt-tr-parentBar {
507
+ background-image:
508
+ repeating-linear-gradient(
509
+ -45deg,
510
+ color-mix(in srgb, var(--gantt-critical-path-color, #dc2626) 45%, transparent) 0,
511
+ color-mix(in srgb, var(--gantt-critical-path-color, #dc2626) 45%, transparent) 5px,
512
+ transparent 5px,
513
+ transparent 10px);
514
+ }
515
+ .gantt-tr-taskBar.gantt-tr-critical .gantt-tr-progressBar {
516
+ background-image:
517
+ repeating-linear-gradient(
518
+ -45deg,
519
+ color-mix(in srgb, var(--gantt-critical-path-color, #dc2626) 55%, transparent) 0,
520
+ color-mix(in srgb, var(--gantt-critical-path-color, #dc2626) 55%, transparent) 5px,
521
+ transparent 5px,
522
+ transparent 10px);
523
+ }
496
524
  .gantt-tr-milestone {
497
525
  border-radius: 2px;
498
526
  overflow: visible;
@@ -916,6 +944,10 @@
916
944
  stroke: #ef4444;
917
945
  stroke-width: 2;
918
946
  }
947
+ .gantt-dependency-critical {
948
+ stroke: var(--gantt-critical-path-color, #dc2626);
949
+ stroke-width: 2;
950
+ }
919
951
  .gantt-dependency-line-hovered .gantt-dependency-hit-area {
920
952
  stroke: transparent;
921
953
  stroke-width: 12;
@@ -2274,6 +2306,7 @@
2274
2306
  .gantt-tl-dep-overflow-list {
2275
2307
  display: flex;
2276
2308
  flex-direction: column;
2309
+ align-items: flex-start;
2277
2310
  gap: 4px;
2278
2311
  padding: 8px;
2279
2312
  min-width: 140px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-lib",
3
- "version": "0.122.0",
3
+ "version": "0.124.0",
4
4
  "description": "React scheduling UI library for Gantt charts, resource planners, and table-matrix views",
5
5
  "license": "MIT",
6
6
  "repository": {