@worktile/gantt 20.0.2 → 21.0.0-next.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 +2 -1
- package/components/calendar/calendar.scss +2 -1
- package/components/drag-backdrop/drag-backdrop.component.scss +2 -1
- package/components/range/range.component.scss +6 -4
- package/components/table/gantt-table.scss +10 -5
- package/components/toolbar/toolbar.component.scss +3 -3
- package/fesm2022/worktile-gantt.mjs +1681 -1645
- package/fesm2022/worktile-gantt.mjs.map +1 -1
- package/gantt.component.scss +23 -3
- package/package.json +6 -6
- package/styles/variables.scss +87 -49
- package/types/worktile-gantt.d.ts +1456 -0
- package/index.d.ts +0 -1447
package/gantt.component.scss
CHANGED
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
|
|
86
86
|
.gantt-main-container {
|
|
87
87
|
width: 100%;
|
|
88
|
-
height: calc(100% -
|
|
88
|
+
height: calc(100% - #{variables.$gantt-header-height});
|
|
89
89
|
flex: 1;
|
|
90
90
|
position: absolute;
|
|
91
91
|
bottom: 0;
|
|
@@ -103,16 +103,28 @@
|
|
|
103
103
|
background: variables.$gantt-group-background-color;
|
|
104
104
|
border-bottom: 1px solid variables.$gantt-border-color;
|
|
105
105
|
box-sizing: border-box;
|
|
106
|
+
height: variables.$gantt-row-height;
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
.gantt-item {
|
|
109
110
|
border-bottom: 1px solid variables.$gantt-border-color;
|
|
110
111
|
box-sizing: border-box;
|
|
111
112
|
position: relative;
|
|
113
|
+
height: variables.$gantt-row-height;
|
|
112
114
|
|
|
113
115
|
&.gantt-main-item-active {
|
|
114
116
|
background-color: rgba($color: variables.$gantt-table-header-drag-line-color, $alpha: 0.1);
|
|
115
117
|
}
|
|
118
|
+
.gantt-bar-placeholder {
|
|
119
|
+
position: absolute;
|
|
120
|
+
background-color: variables.$color-primary;
|
|
121
|
+
opacity: 0.1;
|
|
122
|
+
border-radius: 4px;
|
|
123
|
+
&-range {
|
|
124
|
+
height: 10px;
|
|
125
|
+
border-radius: 2px;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
116
128
|
}
|
|
117
129
|
|
|
118
130
|
.gantt-quick-time-focus-container {
|
|
@@ -130,6 +142,7 @@
|
|
|
130
142
|
display: flex;
|
|
131
143
|
justify-content: space-between;
|
|
132
144
|
align-items: center;
|
|
145
|
+
height: variables.$gantt-row-height;
|
|
133
146
|
span {
|
|
134
147
|
width: 24px;
|
|
135
148
|
height: 24px;
|
|
@@ -152,10 +165,16 @@
|
|
|
152
165
|
justify-content: center;
|
|
153
166
|
align-items: center;
|
|
154
167
|
cursor: pointer;
|
|
168
|
+
color: variables.$color-text-light;
|
|
155
169
|
background-color: variables.$gantt-bar-bg;
|
|
156
170
|
border: 1px solid variables.$gantt-border-color;
|
|
157
171
|
border-radius: 4px;
|
|
158
172
|
box-shadow: 0 4px 7px 1px rgba(0, 0, 0, 0.05);
|
|
173
|
+
|
|
174
|
+
&:hover {
|
|
175
|
+
color: variables.$color-primary;
|
|
176
|
+
}
|
|
177
|
+
|
|
159
178
|
.gantt-icon {
|
|
160
179
|
display: inline-block;
|
|
161
180
|
svg {
|
|
@@ -182,6 +201,7 @@
|
|
|
182
201
|
left: 0;
|
|
183
202
|
right: 0;
|
|
184
203
|
bottom: 0;
|
|
204
|
+
top: variables.$gantt-header-height;
|
|
185
205
|
z-index: 2;
|
|
186
206
|
overflow: auto;
|
|
187
207
|
|
|
@@ -241,7 +261,7 @@
|
|
|
241
261
|
.gantt-container-header {
|
|
242
262
|
flex: 1;
|
|
243
263
|
overflow: hidden;
|
|
244
|
-
background-color:
|
|
264
|
+
background-color: variables.$gantt-container-background-color;
|
|
245
265
|
}
|
|
246
266
|
}
|
|
247
267
|
|
|
@@ -252,7 +272,7 @@
|
|
|
252
272
|
right: 0;
|
|
253
273
|
bottom: 0;
|
|
254
274
|
z-index: 3;
|
|
255
|
-
background-color:
|
|
275
|
+
background-color: variables.$color-background;
|
|
256
276
|
border-top: 1px solid variables.$gantt-border-color;
|
|
257
277
|
border-bottom: 1px solid variables.$gantt-border-color;
|
|
258
278
|
overflow: hidden;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktile/gantt",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0-next.0",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"author": "walkerkay001",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"sass": "./styles/index.scss",
|
|
10
|
-
"types": "./
|
|
10
|
+
"types": "./types/worktile-gantt.d.ts",
|
|
11
11
|
"default": "./fesm2022/worktile-gantt.mjs"
|
|
12
12
|
},
|
|
13
13
|
"./styles/variables": {
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@angular/common": ">=
|
|
28
|
-
"@angular/core": ">=
|
|
29
|
-
"@angular/cdk": ">=
|
|
27
|
+
"@angular/common": ">=21.0.0",
|
|
28
|
+
"@angular/core": ">=21.0.0",
|
|
29
|
+
"@angular/cdk": ">=21.0.0",
|
|
30
30
|
"rxjs": "^6.5.0 || ^7.0.0",
|
|
31
31
|
"date-fns": ">=4.0.0",
|
|
32
32
|
"@date-fns/tz": ">=1.0.0"
|
|
33
33
|
},
|
|
34
34
|
"module": "fesm2022/worktile-gantt.mjs",
|
|
35
|
-
"typings": "
|
|
35
|
+
"typings": "types/worktile-gantt.d.ts",
|
|
36
36
|
"sideEffects": false,
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"tslib": "^2.3.0"
|
package/styles/variables.scss
CHANGED
|
@@ -1,67 +1,105 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
$gantt-
|
|
5
|
-
$gantt-
|
|
6
|
-
$gantt-
|
|
7
|
-
$
|
|
8
|
-
|
|
9
|
-
$gantt-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
)
|
|
13
|
-
|
|
1
|
+
// ============================================
|
|
2
|
+
// Foundation - 主题色变量
|
|
3
|
+
// ============================================
|
|
4
|
+
$color-primary: var(--gantt-color-primary, #6698ff);
|
|
5
|
+
$color-danger: var(--gantt-color-danger, #ff7575);
|
|
6
|
+
$color-highlight: var(--gantt-color-highlight, #ff9f73);
|
|
7
|
+
$color-background: var(--gantt-color-background, #ffffff);
|
|
8
|
+
|
|
9
|
+
$color-text-main: var(--gantt-color-text-main, #333333);
|
|
10
|
+
$color-text-muted: var(--gantt-color-text-muted, #888888);
|
|
11
|
+
$color-text-light: var(--gantt-color-text-light, #aaaaaa);
|
|
12
|
+
$color-text-inverse: var(--gantt-color-text-inverse, #ffffff);
|
|
13
|
+
|
|
14
|
+
$color-gray-100: var(--gantt-color-gray-100, #fafafa);
|
|
15
|
+
$color-gray-200: var(--gantt-color-gray-200, #f5f5f5);
|
|
16
|
+
$color-gray-300: var(--gantt-color-gray-300, #f3f3f3);
|
|
17
|
+
$color-gray-400: var(--gantt-color-gray-400, #eeeeee);
|
|
18
|
+
$color-gray-500: var(--gantt-color-gray-500, #dddddd);
|
|
19
|
+
$color-gray-600: var(--gantt-color-gray-600, #cacaca);
|
|
20
|
+
|
|
21
|
+
$color-shadow: rgba(0, 0, 0, 0.15) !default;
|
|
22
|
+
|
|
23
|
+
// ============================================
|
|
24
|
+
// Foundation - 基础变量
|
|
25
|
+
// ============================================
|
|
26
|
+
|
|
27
|
+
$gantt-primary-color: $color-primary !default; // #6698ff
|
|
28
|
+
$gantt-header-height: var(--gantt-header-height, 44px) !default;
|
|
29
|
+
$gantt-row-height: var(--gantt-row-height, 44px) !default;
|
|
30
|
+
$gantt-bar-height: var(--gantt-bar-height, 22px) !default;
|
|
31
|
+
$gantt-bar-background-color: $gantt-primary-color !default; // 跟随主色
|
|
32
|
+
|
|
33
|
+
$gantt-color: $color-text-main !default; // #333
|
|
34
|
+
$gantt-bg-color: $color-background !default; // #fff
|
|
35
|
+
$gantt-border-color: $color-gray-400 !default; // #eee
|
|
36
|
+
$gantt-container-background-color: $color-gray-100 !default; // #fafafa
|
|
37
|
+
|
|
38
|
+
// ============================================
|
|
39
|
+
// Layout - 布局变量
|
|
40
|
+
// ============================================
|
|
41
|
+
$gantt-footer-height: 44px !default;
|
|
42
|
+
$gantt-side-shadow: 12px 0 16px -10px $color-shadow !default; // rgba(0, 0, 0, 0.15)
|
|
43
|
+
$gantt-footer-shadow: 16px 0 14px -10px $color-shadow !default;
|
|
44
|
+
$gantt-scrollbar-shadow: 10px 0px 10px -3px $color-shadow !default;
|
|
45
|
+
|
|
46
|
+
// ============================================
|
|
47
|
+
// Group - 分组
|
|
48
|
+
// ============================================
|
|
49
|
+
$gantt-group-background-color: rgba($color-gray-300, 0.5) !default; // #f3f3f3
|
|
14
50
|
|
|
15
|
-
//
|
|
16
|
-
|
|
51
|
+
// ============================================
|
|
52
|
+
// Calendar - 日历
|
|
53
|
+
// ============================================
|
|
54
|
+
$gantt-date-primary-color: $color-text-muted !default; // #888
|
|
17
55
|
$gantt-date-primary-font-size: 14px !default;
|
|
18
|
-
$gantt-date-primary-border:
|
|
19
|
-
$gantt-date-secondary-color:
|
|
56
|
+
$gantt-date-primary-border: $color-gray-500 !default; // #ddd
|
|
57
|
+
$gantt-date-secondary-color: $color-text-main !default; // #333
|
|
20
58
|
$gantt-date-secondary-font-size: 14px !default;
|
|
21
|
-
$gantt-date-secondary-weekend-color:
|
|
22
|
-
$gantt-date-week-backdrop-bg: rgba(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
//
|
|
30
|
-
$gantt-bar-bg:
|
|
31
|
-
$gantt-bar-
|
|
32
|
-
$gantt-bar-handle-color: #cacaca !default;
|
|
59
|
+
$gantt-date-secondary-weekend-color: $color-text-light !default; // #aaa
|
|
60
|
+
$gantt-date-week-backdrop-bg: rgba($color-gray-300, 0.5) !default; // #f3f3f3
|
|
61
|
+
$gantt-date-today-color: $color-highlight !default; // #ff9f73
|
|
62
|
+
$gantt-date-today-text-color: $color-background !default; // #fff
|
|
63
|
+
|
|
64
|
+
// ============================================
|
|
65
|
+
// Bar - 甘特条
|
|
66
|
+
// ============================================
|
|
67
|
+
$gantt-bar-bg: $color-background !default; // #fff
|
|
68
|
+
$gantt-bar-layer-bg: $color-background !default; // #fff
|
|
69
|
+
$gantt-bar-handle-color: $color-gray-600 !default; // #cacaca
|
|
33
70
|
$gantt-bar-handle-height: 12px !default;
|
|
34
71
|
$gantt-bar-link-handle-point: $gantt-primary-color !default;
|
|
35
|
-
$gantt-bar-background-color: $gantt-primary-color !default;
|
|
36
72
|
|
|
37
|
-
//
|
|
73
|
+
// ============================================
|
|
74
|
+
// Drag - 拖拽
|
|
75
|
+
// ============================================
|
|
38
76
|
$gantt-item-drag-mask-color: $gantt-primary-color !default;
|
|
39
77
|
$gantt-link-dragging-line-color: $gantt-primary-color !default;
|
|
40
78
|
|
|
41
|
-
//
|
|
79
|
+
// ============================================
|
|
80
|
+
// Link - 关联线
|
|
81
|
+
// ============================================
|
|
42
82
|
$gantt-link-line-color: $gantt-primary-color !default;
|
|
43
83
|
|
|
44
|
-
//
|
|
84
|
+
// ============================================
|
|
85
|
+
// Table - 表格
|
|
86
|
+
// ============================================
|
|
87
|
+
$gantt-table-td-padding: 0 15px !default;
|
|
45
88
|
$gantt-table-header-drag-line-width: 3px !default;
|
|
46
89
|
$gantt-table-header-drag-line-color: $gantt-primary-color !default;
|
|
47
|
-
$gantt-table-items-drop-background-color:
|
|
90
|
+
$gantt-table-items-drop-background-color: $color-gray-200 !default; // #f5f5f5
|
|
48
91
|
|
|
49
|
-
//
|
|
50
|
-
|
|
92
|
+
// ============================================
|
|
93
|
+
// Baseline - 基线
|
|
94
|
+
// ============================================
|
|
95
|
+
$gantt-baseline-background-color: $color-gray-600 !default; // #cacaca
|
|
51
96
|
|
|
52
|
-
//
|
|
97
|
+
// ============================================
|
|
98
|
+
// Toolbar - 工具栏
|
|
99
|
+
// ============================================
|
|
53
100
|
$gantt-toolbar-view-active-color: $gantt-primary-color !default;
|
|
54
101
|
|
|
55
|
-
//
|
|
102
|
+
// ============================================
|
|
103
|
+
// Loader - 加载器
|
|
104
|
+
// ============================================
|
|
56
105
|
$gantt-loader-loading-color: $gantt-primary-color !default;
|
|
57
|
-
|
|
58
|
-
// footer
|
|
59
|
-
$gantt-footer-height: 44px !default;
|
|
60
|
-
$gantt-footer-shadow: 16px 0 14px -10px rgba(0, 0, 0, 0.15) !default;
|
|
61
|
-
|
|
62
|
-
// @deprecated, please use global config `GANTT_GLOBAL_CONFIG` set custom height
|
|
63
|
-
$gantt-item-height: none;
|
|
64
|
-
$gantt-group-height: none;
|
|
65
|
-
|
|
66
|
-
// scrollbar
|
|
67
|
-
$gantt-scrollbar-shadow: 10px 0px 10px -3px rgba(0, 0, 0, 0.15) !default;
|