@workiom/frappe-gantt 1.0.12 → 1.0.14

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/src/index.js CHANGED
@@ -1462,12 +1462,13 @@ export default class Gantt {
1462
1462
 
1463
1463
  // Update dependent tasks based on dependencies_type
1464
1464
  // Only update for the parent bar that was actually moved
1465
- const parent_bar = this.get_bar(parent_bar_id);
1466
- if (parent_bar && parent_bar.$bar.finaldx) {
1467
- const dependent_changes = this.update_dependent_tasks_by_type(parent_bar);
1468
- // Add dependent task changes to the list
1469
- tasks_changed.push(...dependent_changes);
1470
- }
1465
+ // DISABLED: Allow invalid dependencies instead of auto-updating
1466
+ // const parent_bar = this.get_bar(parent_bar_id);
1467
+ // if (parent_bar && parent_bar.$bar.finaldx) {
1468
+ // const dependent_changes = this.update_dependent_tasks_by_type(parent_bar);
1469
+ // // Add dependent task changes to the list
1470
+ // tasks_changed.push(...dependent_changes);
1471
+ // }
1471
1472
 
1472
1473
  // Recalculate critical path if enabled and any bar was moved
1473
1474
  if (this.options.critical_path && bars.some(bar => bar.$bar.finaldx)) {
@@ -8,7 +8,8 @@
8
8
  --g-text-light-dark: #ececec;
9
9
  --g-text-color-dark: #f7f7f7;
10
10
  --g-progress-color: #8a8aff;
11
- --g-arrow-critical-color-dark: #ff9999;
11
+ --g-arrow-critical-color-dark: #f5c044;
12
+ --g-arrow-invalid-color-dark: #ff7676;
12
13
  }
13
14
 
14
15
  .dark > .gantt-container .gantt {
@@ -32,6 +33,10 @@
32
33
  stroke: var(--g-arrow-critical-color-dark);
33
34
  }
34
35
 
36
+ & .arrow-invalid {
37
+ stroke: var(--g-arrow-invalid-color-dark);
38
+ }
39
+
35
40
  & .bar {
36
41
  fill: var(--g-bar-color-dark);
37
42
  stroke: none;
@@ -272,6 +272,10 @@
272
272
  stroke: var(--g-arrow-critical-color);
273
273
  }
274
274
 
275
+ & .arrow-invalid {
276
+ stroke: var(--g-arrow-invalid-color);
277
+ }
278
+
275
279
  & .bar-wrapper .bar {
276
280
  fill: var(--g-bar-color);
277
281
  stroke: var(--g-bar-border);
@@ -1,6 +1,7 @@
1
1
  :root {
2
2
  --g-arrow-color: #1f2937;
3
- --g-arrow-critical-color: #ff7676;
3
+ --g-arrow-critical-color: #f5c044;
4
+ --g-arrow-invalid-color: #ff7676;
4
5
  --g-bar-color: #fff;
5
6
  --g-bar-border: #fff;
6
7
  --g-tick-color-thick: #ededed;
@@ -11,7 +12,7 @@
11
12
  --g-text-light: #fff;
12
13
  --g-text-dark: #171717;
13
14
  --g-progress-color: #dbdbdb;
14
- --g-handle-color: #37352f;
15
+ --g-handle-color: transparent;
15
16
  --g-weekend-label-color: #dcdce4;
16
17
  --g-expected-progress: #c4c4e9;
17
18
  --g-header-background: #fff;