@worktile/gantt 12.2.3 → 13.0.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/components/bar/bar.component.scss +201 -0
- package/components/calendar/calendar.component.scss +79 -0
- package/components/drag-backdrop/drag-backdrop.component.scss +50 -0
- package/components/icon/icon.component.scss +13 -0
- package/components/links/links.component.scss +29 -0
- package/components/range/range.component.scss +35 -0
- package/components/table/gantt-table.component.scss +153 -0
- package/{esm2015/class/date-point.js → esm2020/class/date-point.mjs} +0 -0
- package/{esm2015/class/event.js → esm2020/class/event.mjs} +0 -0
- package/{esm2015/class/group.js → esm2020/class/group.mjs} +0 -0
- package/{esm2015/class/index.js → esm2020/class/index.mjs} +0 -0
- package/{esm2015/class/item.js → esm2020/class/item.mjs} +0 -0
- package/{esm2015/class/link.js → esm2020/class/link.mjs} +0 -0
- package/{esm2015/class/view-type.js → esm2020/class/view-type.mjs} +0 -0
- package/esm2020/components/bar/bar-drag.mjs +308 -0
- package/{esm2015/components/bar/bar.component.js → esm2020/components/bar/bar.component.mjs} +5 -9
- package/{esm2015/components/calendar/calendar.component.js → esm2020/components/calendar/calendar.component.mjs} +5 -8
- package/{esm2015/components/drag-backdrop/drag-backdrop.component.js → esm2020/components/drag-backdrop/drag-backdrop.component.mjs} +6 -10
- package/{esm2015/components/icon/icon.component.js → esm2020/components/icon/icon.component.mjs} +3 -3
- package/{esm2015/components/icon/icons.js → esm2020/components/icon/icons.mjs} +0 -0
- package/esm2020/components/links/lines/curve.mjs +95 -0
- package/{esm2015/components/links/lines/factory.js → esm2020/components/links/lines/factory.mjs} +0 -0
- package/{esm2015/components/links/lines/line.js → esm2020/components/links/lines/line.mjs} +0 -0
- package/{esm2015/components/links/lines/straight.js → esm2020/components/links/lines/straight.mjs} +0 -0
- package/esm2020/components/links/links.component.mjs +178 -0
- package/{esm2015/components/main/gantt-main.component.js → esm2020/components/main/gantt-main.component.mjs} +5 -8
- package/{esm2015/components/range/range.component.js → esm2020/components/range/range.component.mjs} +5 -8
- package/esm2020/components/table/gantt-table.component.mjs +161 -0
- package/{esm2015/gantt-abstract.js → esm2020/gantt-abstract.mjs} +0 -0
- package/{esm2015/gantt-dom.service.js → esm2020/gantt-dom.service.mjs} +3 -3
- package/{esm2015/gantt-drag-container.js → esm2020/gantt-drag-container.mjs} +5 -6
- package/{esm2015/gantt-item-upper.js → esm2020/gantt-item-upper.mjs} +4 -4
- package/esm2020/gantt-print.service.mjs +94 -0
- package/esm2020/gantt-upper.mjs +339 -0
- package/{esm2015/gantt.component.js → esm2020/gantt.component.mjs} +7 -13
- package/{esm2015/gantt.config.js → esm2020/gantt.config.mjs} +0 -0
- package/{esm2015/gantt.module.js → esm2020/gantt.module.mjs} +4 -4
- package/{esm2015/gantt.pipe.js → esm2020/gantt.pipe.mjs} +9 -9
- package/{esm2015/gantt.styles.js → esm2020/gantt.styles.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/{esm2015/root.component.js → esm2020/root.component.mjs} +6 -11
- package/{esm2015/table/gantt-column.component.js → esm2020/table/gantt-column.component.mjs} +3 -3
- package/{esm2015/table/gantt-table.component.js → esm2020/table/gantt-table.component.mjs} +3 -3
- package/{esm2015/utils/date.js → esm2020/utils/date.mjs} +0 -0
- package/{esm2015/utils/helpers.js → esm2020/utils/helpers.mjs} +0 -0
- package/{esm2015/utils/passive-listeners.js → esm2020/utils/passive-listeners.mjs} +0 -0
- package/{esm2015/utils/set-style-with-vendor-prefix.js → esm2020/utils/set-style-with-vendor-prefix.mjs} +0 -0
- package/{esm2015/views/day.js → esm2020/views/day.mjs} +0 -0
- package/{esm2015/views/factory.js → esm2020/views/factory.mjs} +0 -0
- package/{esm2015/views/month.js → esm2020/views/month.mjs} +0 -0
- package/{esm2015/views/quarter.js → esm2020/views/quarter.mjs} +0 -0
- package/{esm2015/views/view.js → esm2020/views/view.mjs} +5 -5
- package/{esm2015/views/week.js → esm2020/views/week.mjs} +0 -0
- package/{esm2015/views/year.js → esm2020/views/year.mjs} +0 -0
- package/{esm2015/worktile-gantt.js → esm2020/worktile-gantt.mjs} +0 -0
- package/fesm2015/worktile-gantt.mjs +3078 -0
- package/fesm2015/worktile-gantt.mjs.map +1 -0
- package/{fesm2015/worktile-gantt.js → fesm2020/worktile-gantt.mjs} +159 -191
- package/fesm2020/worktile-gantt.mjs.map +1 -0
- package/gantt-item-upper.d.ts +1 -1
- package/gantt-upper.d.ts +1 -1
- package/gantt.component.scss +83 -0
- package/package.json +35 -9
- package/styles/index.scss +9 -0
- package/styles/variables.scss +46 -0
- package/bundles/worktile-gantt.umd.js +0 -3723
- package/bundles/worktile-gantt.umd.js.map +0 -1
- package/esm2015/components/bar/bar-drag.js +0 -306
- package/esm2015/components/links/lines/curve.js +0 -96
- package/esm2015/components/links/links.component.js +0 -173
- package/esm2015/components/table/gantt-table.component.js +0 -167
- package/esm2015/gantt-print.service.js +0 -97
- package/esm2015/gantt-upper.js +0 -340
- package/fesm2015/worktile-gantt.js.map +0 -1
- package/main.bundle.scss +0 -688
package/gantt-item-upper.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare abstract class GanttItemUpper implements OnChanges, OnInit, OnDes
|
|
|
9
9
|
template: TemplateRef<any>;
|
|
10
10
|
item: GanttItemInternal;
|
|
11
11
|
firstChange: boolean;
|
|
12
|
-
unsubscribe$: Subject<
|
|
12
|
+
unsubscribe$: Subject<void>;
|
|
13
13
|
constructor(elementRef: ElementRef<HTMLElement>, ganttUpper: GanttUpper);
|
|
14
14
|
ngOnInit(): void;
|
|
15
15
|
ngOnChanges(): void;
|
package/gantt-upper.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare abstract class GanttUpper implements OnChanges, OnInit, OnDestroy
|
|
|
50
50
|
get element(): HTMLElement;
|
|
51
51
|
firstChange: boolean;
|
|
52
52
|
dragContainer: GanttDragContainer;
|
|
53
|
-
unsubscribe$: Subject<
|
|
53
|
+
unsubscribe$: Subject<void>;
|
|
54
54
|
selectionModel: SelectionModel<string>;
|
|
55
55
|
private groupsMap;
|
|
56
56
|
private _selectable;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@use 'styles/variables';
|
|
2
|
+
|
|
3
|
+
.gantt {
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
background-color: variables.$gantt-bg-color;
|
|
7
|
+
position: relative;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
display: flex;
|
|
10
|
+
color: variables.$gantt-color;
|
|
11
|
+
opacity: 0;
|
|
12
|
+
|
|
13
|
+
svg {
|
|
14
|
+
overflow: visible !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.gantt-side {
|
|
18
|
+
border-right: 1px solid variables.$gantt-border-color;
|
|
19
|
+
position: relative;
|
|
20
|
+
z-index: 3;
|
|
21
|
+
// overflow-x: scroll;
|
|
22
|
+
box-shadow: variables.$gantt-side-shadow;
|
|
23
|
+
|
|
24
|
+
.gantt-side-header {
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
height: variables.$gantt-header-height;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.gantt-side-container {
|
|
30
|
+
height: 100%;
|
|
31
|
+
background-color: variables.$gantt-bg-color;
|
|
32
|
+
overflow-y: auto;
|
|
33
|
+
|
|
34
|
+
&::-webkit-scrollbar {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.gantt-container {
|
|
41
|
+
flex: 1;
|
|
42
|
+
position: relative;
|
|
43
|
+
display: flex;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
background-color: variables.$gantt-container-background-color;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.gantt-main-container {
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: calc(100% - #{variables.$gantt-header-height});
|
|
51
|
+
flex: 1;
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: variables.$gantt-header-height;
|
|
54
|
+
bottom: 0;
|
|
55
|
+
left: 0;
|
|
56
|
+
right: 0;
|
|
57
|
+
overflow: auto;
|
|
58
|
+
background-color: variables.$gantt-container-background-color;
|
|
59
|
+
|
|
60
|
+
.gantt-main-groups,
|
|
61
|
+
.gantt-main-items {
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
min-height: 100%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.gantt-group {
|
|
67
|
+
height: variables.$gantt-group-height;
|
|
68
|
+
background: variables.$gantt-group-background-color;
|
|
69
|
+
border-bottom: 1px solid variables.$gantt-border-color;
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.gantt-item {
|
|
74
|
+
border-bottom: 1px solid variables.$gantt-border-color;
|
|
75
|
+
box-sizing: border-box;
|
|
76
|
+
position: relative;
|
|
77
|
+
|
|
78
|
+
&.gantt-main-item-active {
|
|
79
|
+
background-color: rgba($color: variables.$gantt-table-header-drag-line-color, $alpha: 0.1);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktile/gantt",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"sass": "./styles/index.scss",
|
|
8
|
+
"types": "./worktile-gantt.d.ts",
|
|
9
|
+
"esm2020": "./esm2020/worktile-gantt.mjs",
|
|
10
|
+
"es2020": "./fesm2020/worktile-gantt.mjs",
|
|
11
|
+
"es2015": "./fesm2015/worktile-gantt.mjs",
|
|
12
|
+
"node": "./fesm2015/worktile-gantt.mjs",
|
|
13
|
+
"default": "./fesm2020/worktile-gantt.mjs"
|
|
14
|
+
},
|
|
15
|
+
"./styles/variables": {
|
|
16
|
+
"sass": "./styles/variables.scss"
|
|
17
|
+
},
|
|
18
|
+
"./styles/index": {
|
|
19
|
+
"sass": "./styles/index.scss"
|
|
20
|
+
},
|
|
21
|
+
"./styles/*": {
|
|
22
|
+
"sass": "./styles/*"
|
|
23
|
+
},
|
|
24
|
+
"./package.json": {
|
|
25
|
+
"default": "./package.json"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
5
28
|
"peerDependencies": {
|
|
6
|
-
"@angular/common": "
|
|
7
|
-
"@angular/core": "
|
|
29
|
+
"@angular/common": ">=13.0.0",
|
|
30
|
+
"@angular/core": ">=13.0.0",
|
|
31
|
+
"@angular/cdk": ">=13.0.0",
|
|
32
|
+
"rxjs": "^6.5.0 || ^7.0.0",
|
|
33
|
+
"date-fns": ">=2.0.0"
|
|
8
34
|
},
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"fesm2015": "fesm2015/worktile-gantt.
|
|
35
|
+
"module": "fesm2015/worktile-gantt.mjs",
|
|
36
|
+
"es2020": "fesm2020/worktile-gantt.mjs",
|
|
37
|
+
"esm2020": "esm2020/worktile-gantt.mjs",
|
|
38
|
+
"fesm2020": "fesm2020/worktile-gantt.mjs",
|
|
39
|
+
"fesm2015": "fesm2015/worktile-gantt.mjs",
|
|
14
40
|
"typings": "worktile-gantt.d.ts",
|
|
15
41
|
"sideEffects": false,
|
|
16
42
|
"dependencies": {
|
|
17
|
-
"tslib": "^2.
|
|
43
|
+
"tslib": "^2.3.0"
|
|
18
44
|
}
|
|
19
45
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@use './variables.scss';
|
|
2
|
+
@use '../gantt.component.scss';
|
|
3
|
+
@use '../components/table/gantt-table.component.scss';
|
|
4
|
+
@use '../components/calendar/calendar.component.scss';
|
|
5
|
+
@use '../components/drag-backdrop/drag-backdrop.component.scss';
|
|
6
|
+
@use '../components/bar/bar.component.scss';
|
|
7
|
+
@use '../components/range/range.component.scss';
|
|
8
|
+
@use '../components/icon/icon.component.scss';
|
|
9
|
+
@use '../components/links/links.component.scss';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// basic
|
|
2
|
+
$gantt-color: #333 !default;
|
|
3
|
+
$gantt-header-height: 44px !default;
|
|
4
|
+
$gantt-border-color: #eee !default;
|
|
5
|
+
$gantt-bg-color: #fff !default;
|
|
6
|
+
$gantt-side-shadow: 12px 0 16px -10px rgba(0, 0, 0, 0.15) !default;
|
|
7
|
+
$gantt-container-background-color: #fafafa !default;
|
|
8
|
+
$gantt-item-height: 44px !default;
|
|
9
|
+
$gantt-group-background-color: rgba(
|
|
10
|
+
$color: #f3f3f3,
|
|
11
|
+
$alpha: 0.5
|
|
12
|
+
) !default;
|
|
13
|
+
$gantt-group-height: 44px !default;
|
|
14
|
+
$gantt-table-td-padding: 0 15px !default;
|
|
15
|
+
|
|
16
|
+
// calendar
|
|
17
|
+
$gantt-date-primary-color: #888 !default;
|
|
18
|
+
$gantt-date-primary-font-size: 14px !default;
|
|
19
|
+
$gantt-date-primary-border: #ddd !default;
|
|
20
|
+
$gantt-date-secondary-color: #333 !default;
|
|
21
|
+
$gantt-date-secondary-font-size: 14px !default;
|
|
22
|
+
$gantt-date-secondary-weekend-color: #aaa !default;
|
|
23
|
+
$gantt-date-week-backdrop-bg: rgba(
|
|
24
|
+
$color: #f3f3f3,
|
|
25
|
+
$alpha: 0.5
|
|
26
|
+
) !default;
|
|
27
|
+
$gantt-date-today-color: #ff9f73 !default;
|
|
28
|
+
$gantt-date-today-text-color: #fff !default;
|
|
29
|
+
|
|
30
|
+
// bar
|
|
31
|
+
$gantt-bar-bg: #fff !default;
|
|
32
|
+
$gantt-bar-layer-bg: #fff !default;
|
|
33
|
+
$gantt-bar-handle-color: #cacaca !default;
|
|
34
|
+
$gantt-bar-handle-height: 12px !default;
|
|
35
|
+
$gantt-bar-background-color: #348fe4 !default;
|
|
36
|
+
|
|
37
|
+
// drag
|
|
38
|
+
$gantt-item-drag-mask-color: #348fe4 !default;
|
|
39
|
+
$gantt-link-dragging-line-color: #348fe4 !default;
|
|
40
|
+
|
|
41
|
+
// link
|
|
42
|
+
$gantt-link-line-color: #348fe4 !default;
|
|
43
|
+
|
|
44
|
+
// table
|
|
45
|
+
$gantt-table-header-drag-line-width: 3px !default;
|
|
46
|
+
$gantt-table-header-drag-line-color: #348fe4 !default;
|