@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/dist/frappe-gantt.css +1 -1
- package/dist/frappe-gantt.es.js +448 -416
- package/dist/frappe-gantt.umd.js +9 -9
- package/package.json +1 -1
- package/src/arrow.js +54 -1
- package/src/bar.js +69 -30
- package/src/index.js +7 -6
- package/src/styles/dark.css +6 -1
- package/src/styles/gantt.css +4 -0
- package/src/styles/light.css +3 -2
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
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
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)) {
|
package/src/styles/dark.css
CHANGED
|
@@ -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: #
|
|
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;
|
package/src/styles/gantt.css
CHANGED
package/src/styles/light.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--g-arrow-color: #1f2937;
|
|
3
|
-
--g-arrow-critical-color: #
|
|
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:
|
|
15
|
+
--g-handle-color: transparent;
|
|
15
16
|
--g-weekend-label-color: #dcdce4;
|
|
16
17
|
--g-expected-progress: #c4c4e9;
|
|
17
18
|
--g-header-background: #fff;
|