@worktile/gantt 12.1.0-next.0 → 12.1.3
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/bundles/worktile-gantt.umd.js +821 -907
- package/bundles/worktile-gantt.umd.js.map +1 -1
- package/class/event.d.ts +4 -0
- package/class/item.d.ts +4 -5
- package/components/calendar/{grid/calendar-grid.component.d.ts → calendar.component.d.ts} +10 -8
- package/components/links/links.component.d.ts +3 -2
- package/components/main/gantt-main.component.d.ts +4 -4
- package/components/table/gantt-table.component.d.ts +42 -0
- package/esm2015/class/event.js +3 -1
- package/esm2015/class/item.js +1 -1
- package/esm2015/components/bar/bar-drag.js +6 -1
- package/esm2015/components/calendar/calendar.component.js +86 -0
- package/esm2015/components/links/links.component.js +42 -19
- package/esm2015/components/main/gantt-main.component.js +5 -5
- package/esm2015/components/table/gantt-table.component.js +163 -0
- package/esm2015/gantt-dom.service.js +2 -5
- package/esm2015/gantt-drag-container.js +2 -1
- package/esm2015/gantt-item-upper.js +4 -5
- package/esm2015/gantt-print.service.js +2 -2
- package/esm2015/gantt-upper.js +110 -35
- package/esm2015/gantt.component.js +34 -169
- package/esm2015/gantt.config.js +13 -0
- package/esm2015/gantt.module.js +22 -18
- package/esm2015/public-api.js +2 -1
- package/esm2015/root.component.js +7 -8
- package/esm2015/table/gantt-table.component.js +9 -3
- package/esm2015/utils/helpers.js +10 -9
- package/esm2015/views/day.js +2 -2
- package/esm2015/views/month.js +3 -3
- package/esm2015/views/quarter.js +3 -3
- package/esm2015/views/view.js +4 -2
- package/esm2015/views/week.js +3 -3
- package/esm2015/views/year.js +2 -2
- package/fesm2015/worktile-gantt.js +794 -874
- package/fesm2015/worktile-gantt.js.map +1 -1
- package/gantt-dom.service.d.ts +0 -1
- package/gantt-drag-container.d.ts +1 -0
- package/gantt-upper.d.ts +23 -5
- package/gantt.component.d.ts +8 -27
- package/gantt.config.d.ts +23 -0
- package/gantt.module.d.ts +13 -16
- package/main.bundle.scss +206 -233
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/table/gantt-table.component.d.ts +4 -2
- package/utils/helpers.d.ts +3 -5
- package/views/view.d.ts +2 -0
- package/components/calendar/header/calendar-header.component.d.ts +0 -21
- package/components/table/body/gantt-table-body.component.d.ts +0 -24
- package/components/table/header/gantt-table-header.component.d.ts +0 -29
- package/esm2015/components/calendar/grid/calendar-grid.component.js +0 -76
- package/esm2015/components/calendar/header/calendar-header.component.js +0 -70
- package/esm2015/components/table/body/gantt-table-body.component.js +0 -68
- package/esm2015/components/table/header/gantt-table-header.component.js +0 -126
package/main.bundle.scss
CHANGED
|
@@ -46,280 +46,248 @@ $gantt-table-header-drag-line-width: 3px !default;
|
|
|
46
46
|
$gantt-table-header-drag-line-color: #348fe4 !default;
|
|
47
47
|
|
|
48
48
|
.gantt {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
position: relative;
|
|
53
|
-
overflow: hidden;
|
|
54
|
-
display: flex;
|
|
55
|
-
color: $gantt-color;
|
|
56
|
-
opacity: 0;
|
|
57
|
-
|
|
58
|
-
svg {
|
|
59
|
-
overflow: visible !important;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.gantt-side {
|
|
63
|
-
border-right: 1px solid $gantt-border-color;
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
background-color: $gantt-bg-color;
|
|
64
52
|
position: relative;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
display: flex;
|
|
55
|
+
color: $gantt-color;
|
|
56
|
+
opacity: 0;
|
|
68
57
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
height: $gantt-header-height;
|
|
58
|
+
svg {
|
|
59
|
+
overflow: visible !important;
|
|
72
60
|
}
|
|
73
61
|
|
|
74
|
-
.gantt-side
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
.gantt-side {
|
|
63
|
+
border-right: 1px solid $gantt-border-color;
|
|
64
|
+
position: relative;
|
|
65
|
+
z-index: 3;
|
|
66
|
+
// overflow-x: scroll;
|
|
67
|
+
box-shadow: $gantt-side-shadow;
|
|
78
68
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
69
|
+
.gantt-side-header {
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
height: $gantt-header-height;
|
|
72
|
+
}
|
|
84
73
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
overflow: hidden;
|
|
90
|
-
background-color: $gantt-container-background-color;
|
|
91
|
-
}
|
|
92
|
-
.gantt-main-container {
|
|
93
|
-
width: 100%;
|
|
94
|
-
height: calc(100% - #{$gantt-header-height});
|
|
95
|
-
position: absolute;
|
|
96
|
-
top: $gantt-header-height;
|
|
97
|
-
bottom: 0;
|
|
98
|
-
left: 0;
|
|
99
|
-
right: 0;
|
|
100
|
-
overflow: auto;
|
|
101
|
-
background-color: $gantt-container-background-color;
|
|
74
|
+
.gantt-side-container {
|
|
75
|
+
height: 100%;
|
|
76
|
+
background-color: $gantt-bg-color;
|
|
77
|
+
overflow-y: auto;
|
|
102
78
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
79
|
+
&::-webkit-scrollbar {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
107
83
|
}
|
|
108
84
|
|
|
109
|
-
.gantt-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
85
|
+
.gantt-container {
|
|
86
|
+
flex: 1;
|
|
87
|
+
position: relative;
|
|
88
|
+
display: flex;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
background-color: $gantt-container-background-color;
|
|
114
91
|
}
|
|
115
92
|
|
|
116
|
-
.gantt-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
93
|
+
.gantt-main-container {
|
|
94
|
+
width: 100%;
|
|
95
|
+
height: calc(100% - #{$gantt-header-height});
|
|
96
|
+
flex: 1;
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: $gantt-header-height;
|
|
99
|
+
bottom: 0;
|
|
100
|
+
left: 0;
|
|
101
|
+
right: 0;
|
|
102
|
+
overflow: auto;
|
|
103
|
+
background-color: $gantt-container-background-color;
|
|
104
|
+
|
|
105
|
+
.gantt-main-groups,
|
|
106
|
+
.gantt-main-items {
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
min-height: 100%;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.gantt-group {
|
|
112
|
+
height: $gantt-group-height;
|
|
113
|
+
background: $gantt-group-background-color;
|
|
114
|
+
border-bottom: 1px solid $gantt-border-color;
|
|
115
|
+
box-sizing: border-box;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.gantt-item {
|
|
119
|
+
border-bottom: 1px solid $gantt-border-color;
|
|
120
|
+
box-sizing: border-box;
|
|
121
|
+
position: relative;
|
|
122
|
+
|
|
123
|
+
&.gantt-main-item-active {
|
|
124
|
+
background-color: rgba($color: $gantt-table-header-drag-line-color, $alpha: 0.1);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
120
128
|
}
|
|
121
|
-
|
|
129
|
+
}
|
|
122
130
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
.
|
|
136
|
-
|
|
137
|
-
height:
|
|
138
|
-
|
|
131
|
+
.gantt-table {
|
|
132
|
+
display: block;
|
|
133
|
+
&-empty {
|
|
134
|
+
height: 100%;
|
|
135
|
+
position: relative;
|
|
136
|
+
.gantt-table-body {
|
|
137
|
+
position: absolute;
|
|
138
|
+
text-align: center;
|
|
139
|
+
top: 50%;
|
|
140
|
+
left: 50%;
|
|
141
|
+
transform: translate(-50%, -50%);
|
|
142
|
+
margin-top: 22px;
|
|
143
|
+
.empty-icon {
|
|
144
|
+
svg {
|
|
145
|
+
height: 78px;
|
|
146
|
+
width: 78px;
|
|
139
147
|
}
|
|
140
148
|
}
|
|
149
|
+
.empty-text {
|
|
150
|
+
color: #cacaca;
|
|
151
|
+
}
|
|
141
152
|
}
|
|
142
153
|
}
|
|
143
|
-
}
|
|
144
154
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
155
|
+
&-drag-trigger {
|
|
156
|
+
width: $gantt-table-header-drag-line-width;
|
|
157
|
+
position: absolute;
|
|
158
|
+
top: 0;
|
|
159
|
+
right: 0;
|
|
160
|
+
bottom: 0;
|
|
161
|
+
cursor: ew-resize;
|
|
162
|
+
z-index: 1;
|
|
163
|
+
|
|
164
|
+
&:hover {
|
|
165
|
+
background: $gantt-table-header-drag-line-color;
|
|
166
|
+
z-index: 2;
|
|
167
|
+
}
|
|
153
168
|
}
|
|
154
|
-
}
|
|
155
169
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
border-right: 1px solid $gantt-border-color;
|
|
165
|
-
|
|
166
|
-
.gantt-table-column {
|
|
167
|
-
font-weight: 400;
|
|
170
|
+
&-drag-auxiliary-line {
|
|
171
|
+
width: $gantt-table-header-drag-line-width;
|
|
172
|
+
background: $gantt-table-header-drag-line-color;
|
|
173
|
+
position: absolute;
|
|
174
|
+
top: 0;
|
|
175
|
+
bottom: 0;
|
|
176
|
+
z-index: 100;
|
|
177
|
+
display: none;
|
|
168
178
|
}
|
|
169
|
-
}
|
|
170
179
|
|
|
171
|
-
.gantt-table-
|
|
172
|
-
display: block;
|
|
173
|
-
.gantt-table-group {
|
|
180
|
+
.gantt-table-row {
|
|
174
181
|
display: flex;
|
|
175
|
-
height: $gantt-group-height;
|
|
176
|
-
background: $gantt-group-background-color;
|
|
177
|
-
padding: 0 10px;
|
|
178
|
-
align-items: center;
|
|
179
|
-
border-bottom: 1px solid $gantt-border-color;
|
|
180
182
|
box-sizing: border-box;
|
|
181
|
-
|
|
183
|
+
border-bottom: 1px solid $gantt-border-color;
|
|
182
184
|
|
|
183
|
-
.gantt-table-
|
|
184
|
-
|
|
185
|
+
.gantt-table-column {
|
|
186
|
+
overflow: hidden;
|
|
187
|
+
border-right: 1px solid $gantt-border-color;
|
|
188
|
+
box-sizing: border-box;
|
|
189
|
+
position: relative;
|
|
185
190
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
margin-right: 6px;
|
|
191
|
+
&:last-child {
|
|
192
|
+
border-right: none;
|
|
189
193
|
}
|
|
190
194
|
}
|
|
191
195
|
}
|
|
192
196
|
|
|
193
|
-
.gantt-table-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
197
|
+
.gantt-table-header {
|
|
198
|
+
text-align: center;
|
|
199
|
+
position: sticky;
|
|
200
|
+
top: 0;
|
|
201
|
+
background: #fff;
|
|
202
|
+
z-index: 2;
|
|
203
|
+
height: $gantt-header-height;
|
|
204
|
+
line-height: $gantt-header-height;
|
|
198
205
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
&:first-child {
|
|
202
|
-
padding: 0 15px 0 32px;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
206
|
+
.gantt-table-column {
|
|
207
|
+
font-weight: 400;
|
|
205
208
|
}
|
|
209
|
+
}
|
|
206
210
|
|
|
207
|
-
|
|
211
|
+
.gantt-table-body {
|
|
212
|
+
.gantt-table-group {
|
|
208
213
|
display: flex;
|
|
209
|
-
|
|
214
|
+
height: $gantt-group-height;
|
|
215
|
+
background: $gantt-group-background-color;
|
|
216
|
+
padding: 0 10px;
|
|
217
|
+
align-items: center;
|
|
218
|
+
border-bottom: 1px solid $gantt-border-color;
|
|
219
|
+
box-sizing: border-box;
|
|
220
|
+
position: relative;
|
|
210
221
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
214
|
-
}
|
|
222
|
+
.gantt-table-group-title {
|
|
223
|
+
cursor: pointer;
|
|
215
224
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
white-space: nowrap;
|
|
225
|
+
.expand-icon {
|
|
226
|
+
color: #aaa;
|
|
227
|
+
margin-right: 6px;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
222
230
|
}
|
|
223
231
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
232
|
+
.gantt-table-item {
|
|
233
|
+
cursor: pointer;
|
|
234
|
+
&-first-level-group {
|
|
235
|
+
background: $gantt-group-background-color;
|
|
236
|
+
}
|
|
228
237
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
.gantt-table-empty {
|
|
236
|
-
height: 100%;
|
|
237
|
-
position: relative;
|
|
238
|
-
.gantt-table-body-container {
|
|
239
|
-
position: absolute;
|
|
240
|
-
text-align: center;
|
|
241
|
-
top: 50%;
|
|
242
|
-
left: 50%;
|
|
243
|
-
transform: translate(-50%, -50%);
|
|
244
|
-
margin-top: 22px;
|
|
245
|
-
.empty-icon {
|
|
246
|
-
svg {
|
|
247
|
-
height: 78px;
|
|
248
|
-
width: 78px;
|
|
238
|
+
&-with-group {
|
|
239
|
+
.gantt-table-column {
|
|
240
|
+
&:first-child {
|
|
241
|
+
padding: 0 15px 0 32px;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
249
244
|
}
|
|
250
|
-
}
|
|
251
|
-
.empty-text {
|
|
252
|
-
color: #cacaca;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
245
|
|
|
257
|
-
.gantt-table-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
top: 0;
|
|
261
|
-
right: 0;
|
|
262
|
-
bottom: 0;
|
|
263
|
-
cursor: ew-resize;
|
|
264
|
-
height: 5000px;
|
|
265
|
-
&.column-drag-trigger {
|
|
266
|
-
height: unset;
|
|
267
|
-
z-index: 1;
|
|
268
|
-
}
|
|
246
|
+
.gantt-table-column {
|
|
247
|
+
display: flex;
|
|
248
|
+
padding: $gantt-table-td-padding;
|
|
269
249
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
}
|
|
250
|
+
&:last-child {
|
|
251
|
+
border-right: none;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
274
254
|
|
|
275
|
-
.gantt-table-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
display: none;
|
|
283
|
-
height: 5000px;
|
|
284
|
-
}
|
|
255
|
+
.gantt-table-column-content {
|
|
256
|
+
flex: 1;
|
|
257
|
+
position: relative;
|
|
258
|
+
overflow: hidden;
|
|
259
|
+
text-overflow: ellipsis;
|
|
260
|
+
white-space: nowrap;
|
|
261
|
+
}
|
|
285
262
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
border-bottom: 1px solid $gantt-border-color;
|
|
263
|
+
&:hover {
|
|
264
|
+
background-color: $gantt-container-background-color;
|
|
265
|
+
}
|
|
290
266
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
267
|
+
&-active {
|
|
268
|
+
background-color: rgba($color: $gantt-table-header-drag-line-color, $alpha: 0.1);
|
|
269
|
+
&:hover {
|
|
270
|
+
background-color: rgba($color: $gantt-table-header-drag-line-color, $alpha: 0.1);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
296
274
|
|
|
297
|
-
|
|
298
|
-
|
|
275
|
+
.gantt-expand-icon {
|
|
276
|
+
display: inline-block;
|
|
277
|
+
width: 20px;
|
|
278
|
+
color: #aaa;
|
|
299
279
|
}
|
|
300
280
|
}
|
|
301
281
|
}
|
|
302
282
|
|
|
303
|
-
.gantt-calendar {
|
|
283
|
+
.gantt-calendar-overlay {
|
|
304
284
|
display: block;
|
|
305
285
|
height: 100%;
|
|
306
286
|
overflow: hidden;
|
|
307
|
-
svg {
|
|
308
|
-
position: relative;
|
|
309
|
-
z-index: 1;
|
|
310
|
-
background-color: $gantt-bg-color;
|
|
311
|
-
overflow: visible;
|
|
312
|
-
}
|
|
313
|
-
line {
|
|
314
|
-
shape-rendering: crispEdges;
|
|
315
|
-
}
|
|
316
287
|
|
|
317
|
-
.primary-line {
|
|
318
|
-
stroke: $gantt-date-primary-border;
|
|
319
|
-
}
|
|
320
288
|
.gantt-calendar-today-overlay {
|
|
321
289
|
position: relative;
|
|
322
|
-
z-index:
|
|
290
|
+
z-index: 2;
|
|
323
291
|
.today-rect {
|
|
324
292
|
width: 35px;
|
|
325
293
|
height: 24px;
|
|
@@ -338,17 +306,21 @@ $gantt-table-header-drag-line-color: #348fe4 !default;
|
|
|
338
306
|
margin-left: -2px;
|
|
339
307
|
}
|
|
340
308
|
}
|
|
341
|
-
|
|
342
|
-
.gantt-calendar-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
.gantt-calendar-today-overlay {
|
|
347
|
-
z-index: 2;
|
|
309
|
+
|
|
310
|
+
.gantt-calendar-overlay-main {
|
|
311
|
+
position: relative;
|
|
312
|
+
z-index: 1;
|
|
313
|
+
background-color: $gantt-bg-color;
|
|
348
314
|
}
|
|
349
|
-
|
|
350
|
-
|
|
315
|
+
|
|
316
|
+
svg {
|
|
317
|
+
overflow: visible;
|
|
351
318
|
}
|
|
319
|
+
|
|
320
|
+
line {
|
|
321
|
+
shape-rendering: crispEdges;
|
|
322
|
+
}
|
|
323
|
+
|
|
352
324
|
.primary-text {
|
|
353
325
|
fill: $gantt-date-primary-color;
|
|
354
326
|
font-size: $gantt-date-primary-font-size;
|
|
@@ -367,12 +339,9 @@ $gantt-table-header-drag-line-color: #348fe4 !default;
|
|
|
367
339
|
.secondary-text {
|
|
368
340
|
text-anchor: middle;
|
|
369
341
|
}
|
|
370
|
-
|
|
371
|
-
.
|
|
372
|
-
|
|
373
|
-
width: 100%;
|
|
374
|
-
.gantt-calendar-grid-main {
|
|
375
|
-
background-color: transparent;
|
|
342
|
+
|
|
343
|
+
.primary-line {
|
|
344
|
+
stroke: $gantt-date-primary-border;
|
|
376
345
|
}
|
|
377
346
|
|
|
378
347
|
.secondary-line {
|
|
@@ -380,6 +349,10 @@ $gantt-table-header-drag-line-color: #348fe4 !default;
|
|
|
380
349
|
stroke: #cacaca;
|
|
381
350
|
}
|
|
382
351
|
|
|
352
|
+
.header-line {
|
|
353
|
+
stroke: $gantt-border-color;
|
|
354
|
+
}
|
|
355
|
+
|
|
383
356
|
.secondary-backdrop {
|
|
384
357
|
fill: $gantt-date-week-backdrop-bg;
|
|
385
358
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { GanttTableEvent } from '../class';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class NgxGanttTableComponent implements OnInit {
|
|
5
5
|
columnChanges: EventEmitter<GanttTableEvent>;
|
|
6
|
+
rowBeforeTemplate: TemplateRef<any>;
|
|
7
|
+
rowAfterTemplate: TemplateRef<any>;
|
|
6
8
|
constructor();
|
|
7
9
|
ngOnInit(): void;
|
|
8
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttTableComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableComponent, "ngx-gantt-table", never, {}, { "columnChanges": "columnChanges"; },
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableComponent, "ngx-gantt-table", never, {}, { "columnChanges": "columnChanges"; }, ["rowBeforeTemplate", "rowAfterTemplate"], never>;
|
|
10
12
|
}
|
package/utils/helpers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GanttItemInternal } from '../class/item';
|
|
1
|
+
import { GanttItem, GanttItemInternal } from '../class/item';
|
|
2
2
|
export interface Dictionary<T = unknown> {
|
|
3
3
|
[key: string]: T;
|
|
4
4
|
}
|
|
@@ -8,7 +8,5 @@ export declare function isUndefined(value: any): boolean;
|
|
|
8
8
|
export declare function hexToRgb(color: string, opacity?: number): string;
|
|
9
9
|
export declare function uniqBy<T = unknown>(array: T[], key: keyof T): any[];
|
|
10
10
|
export declare function flatten<T = unknown>(array: T[]): any;
|
|
11
|
-
export declare function recursiveItems(items: GanttItemInternal[]
|
|
12
|
-
export declare function
|
|
13
|
-
[key: string]: T;
|
|
14
|
-
};
|
|
11
|
+
export declare function recursiveItems(items: GanttItemInternal[]): any[];
|
|
12
|
+
export declare function getFlatItems(items: GanttItem[]): any[];
|
package/views/view.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { GanttDate, GanttDateUtil } from '../utils/date';
|
|
2
2
|
import { GanttDatePoint } from '../class/date-point';
|
|
3
3
|
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { GanttDateFormat } from '../gantt.config';
|
|
4
5
|
export declare const primaryDatePointTop = 18;
|
|
5
6
|
export declare const secondaryDatePointTop = 36;
|
|
6
7
|
export interface GanttViewDate {
|
|
@@ -15,6 +16,7 @@ export interface GanttViewOptions {
|
|
|
15
16
|
cellWidth?: number;
|
|
16
17
|
addAmount?: number;
|
|
17
18
|
addUnit?: GanttDateUtil;
|
|
19
|
+
dateFormat?: GanttDateFormat;
|
|
18
20
|
}
|
|
19
21
|
export declare abstract class GanttView {
|
|
20
22
|
start$: BehaviorSubject<GanttDate>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OnInit, NgZone, ElementRef } from '@angular/core';
|
|
2
|
-
import { GanttDatePoint } from '../../../class/date-point';
|
|
3
|
-
import { GanttUpper } from '../../../gantt-upper';
|
|
4
|
-
import { GanttViewType } from '../../../class';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class GanttCalendarHeaderComponent implements OnInit {
|
|
7
|
-
ganttUpper: GanttUpper;
|
|
8
|
-
private ngZone;
|
|
9
|
-
private elementRef;
|
|
10
|
-
get view(): import("@worktile/gantt").GanttView;
|
|
11
|
-
private unsubscribe$;
|
|
12
|
-
headerHeight: number;
|
|
13
|
-
viewTypes: typeof GanttViewType;
|
|
14
|
-
className: string;
|
|
15
|
-
constructor(ganttUpper: GanttUpper, ngZone: NgZone, elementRef: ElementRef<HTMLElement>);
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
setTodayPoint(): void;
|
|
18
|
-
trackBy(point: GanttDatePoint, index: number): string | number;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GanttCalendarHeaderComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GanttCalendarHeaderComponent, "gantt-calendar-header", never, {}, {}, never, never>;
|
|
21
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { TemplateRef, QueryList, OnInit } from '@angular/core';
|
|
2
|
-
import { GanttItemInternal, GanttGroupInternal } from '../../../class';
|
|
3
|
-
import { NgxGanttTableColumnComponent } from '../../../table/gantt-column.component';
|
|
4
|
-
import { GanttAbstractComponent } from '../../../gantt-abstract';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class GanttTableBodyComponent implements OnInit {
|
|
7
|
-
gantt: GanttAbstractComponent;
|
|
8
|
-
columnList: QueryList<NgxGanttTableColumnComponent>;
|
|
9
|
-
hasGroup: boolean;
|
|
10
|
-
flatData: (GanttGroupInternal | GanttItemInternal)[];
|
|
11
|
-
set tempData(data: (GanttGroupInternal | GanttItemInternal)[]);
|
|
12
|
-
set columns(columns: QueryList<NgxGanttTableColumnComponent>);
|
|
13
|
-
groupTemplate: TemplateRef<any>;
|
|
14
|
-
emptyTemplate: TemplateRef<any>;
|
|
15
|
-
ganttTableClass: boolean;
|
|
16
|
-
ganttTableEmptyClass: boolean;
|
|
17
|
-
constructor(gantt: GanttAbstractComponent);
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
expandGroup(group: GanttGroupInternal): void;
|
|
20
|
-
expandChildren(item: GanttItemInternal): void;
|
|
21
|
-
trackBy(item: GanttGroupInternal | GanttItemInternal, index: number): string | number;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GanttTableBodyComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GanttTableBodyComponent, "gantt-table-body", never, { "tempData": "tempData"; "columns": "columns"; "groupTemplate": "groupTemplate"; "emptyTemplate": "emptyTemplate"; }, {}, never, never>;
|
|
24
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { QueryList, OnInit, ElementRef, AfterViewInit } from '@angular/core';
|
|
2
|
-
import { NgxGanttTableColumnComponent } from '../../../table/gantt-column.component';
|
|
3
|
-
import { CdkDragEnd, CdkDragMove, CdkDragStart } from '@angular/cdk/drag-drop';
|
|
4
|
-
import { GanttAbstractComponent } from '../../../gantt-abstract';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare const defaultColumnWidth = 100;
|
|
7
|
-
export declare const minColumnWidth = 80;
|
|
8
|
-
export declare class GanttTableHeaderComponent implements OnInit, AfterViewInit {
|
|
9
|
-
private elementRef;
|
|
10
|
-
private gantt;
|
|
11
|
-
columnList: QueryList<NgxGanttTableColumnComponent>;
|
|
12
|
-
dragStartLeft: number;
|
|
13
|
-
tableWidth: number;
|
|
14
|
-
set columns(columns: QueryList<NgxGanttTableColumnComponent>);
|
|
15
|
-
draglineElementRef: ElementRef<HTMLElement>;
|
|
16
|
-
className: string;
|
|
17
|
-
constructor(elementRef: ElementRef, gantt: GanttAbstractComponent);
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
ngAfterViewInit(): void;
|
|
20
|
-
private dragFixed;
|
|
21
|
-
dragStarted(event: CdkDragStart): void;
|
|
22
|
-
dragMoved(event: CdkDragMove, column?: NgxGanttTableColumnComponent): void;
|
|
23
|
-
columnDragEnded(event: CdkDragEnd, column: NgxGanttTableColumnComponent): void;
|
|
24
|
-
tableDragEnded(event: CdkDragEnd): void;
|
|
25
|
-
private showAuxiliaryLine;
|
|
26
|
-
private hideAuxiliaryLine;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GanttTableHeaderComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GanttTableHeaderComponent, "gantt-table-header", never, { "columns": "columns"; }, {}, never, never>;
|
|
29
|
-
}
|