@worktile/gantt 12.1.0-next.0 → 12.2.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.
Files changed (54) hide show
  1. package/bundles/worktile-gantt.umd.js +819 -936
  2. package/bundles/worktile-gantt.umd.js.map +1 -1
  3. package/class/item.d.ts +7 -7
  4. package/class/link.d.ts +39 -0
  5. package/components/calendar/{grid/calendar-grid.component.d.ts → calendar.component.d.ts} +10 -8
  6. package/components/links/links.component.d.ts +5 -15
  7. package/components/main/gantt-main.component.d.ts +4 -4
  8. package/components/table/gantt-table.component.d.ts +39 -0
  9. package/esm2015/class/item.js +14 -3
  10. package/esm2015/class/link.js +14 -0
  11. package/esm2015/components/bar/bar-drag.js +6 -1
  12. package/esm2015/components/calendar/calendar.component.js +86 -0
  13. package/esm2015/components/links/links.component.js +93 -33
  14. package/esm2015/components/main/gantt-main.component.js +5 -5
  15. package/esm2015/components/table/gantt-table.component.js +153 -0
  16. package/esm2015/gantt-dom.service.js +2 -5
  17. package/esm2015/gantt-drag-container.js +2 -1
  18. package/esm2015/gantt-item-upper.js +4 -5
  19. package/esm2015/gantt-print.service.js +2 -2
  20. package/esm2015/gantt-upper.js +67 -35
  21. package/esm2015/gantt.component.js +17 -172
  22. package/esm2015/gantt.config.js +13 -0
  23. package/esm2015/gantt.module.js +22 -18
  24. package/esm2015/public-api.js +2 -1
  25. package/esm2015/root.component.js +7 -8
  26. package/esm2015/table/gantt-table.component.js +9 -3
  27. package/esm2015/utils/helpers.js +10 -9
  28. package/esm2015/views/day.js +2 -2
  29. package/esm2015/views/month.js +3 -3
  30. package/esm2015/views/quarter.js +3 -3
  31. package/esm2015/views/view.js +4 -2
  32. package/esm2015/views/week.js +3 -3
  33. package/esm2015/views/year.js +2 -2
  34. package/fesm2015/worktile-gantt.js +806 -898
  35. package/fesm2015/worktile-gantt.js.map +1 -1
  36. package/gantt-dom.service.d.ts +0 -1
  37. package/gantt-drag-container.d.ts +1 -0
  38. package/gantt-upper.d.ts +12 -5
  39. package/gantt.component.d.ts +5 -26
  40. package/gantt.config.d.ts +23 -0
  41. package/gantt.module.d.ts +13 -16
  42. package/main.bundle.scss +195 -234
  43. package/package.json +1 -1
  44. package/public-api.d.ts +1 -0
  45. package/table/gantt-table.component.d.ts +4 -2
  46. package/utils/helpers.d.ts +3 -5
  47. package/views/view.d.ts +2 -0
  48. package/components/calendar/header/calendar-header.component.d.ts +0 -21
  49. package/components/table/body/gantt-table-body.component.d.ts +0 -24
  50. package/components/table/header/gantt-table-header.component.d.ts +0 -29
  51. package/esm2015/components/calendar/grid/calendar-grid.component.js +0 -76
  52. package/esm2015/components/calendar/header/calendar-header.component.js +0 -70
  53. package/esm2015/components/table/body/gantt-table-body.component.js +0 -68
  54. package/esm2015/components/table/header/gantt-table-header.component.js +0 -126
package/main.bundle.scss CHANGED
@@ -46,280 +46,236 @@ $gantt-table-header-drag-line-width: 3px !default;
46
46
  $gantt-table-header-drag-line-color: #348fe4 !default;
47
47
 
48
48
  .gantt {
49
- width: 100%;
50
- height: 100%;
51
- background-color: $gantt-bg-color;
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
- z-index: 3;
66
- // overflow-x: scroll;
67
- box-shadow: $gantt-side-shadow;
53
+ overflow: hidden;
54
+ display: flex;
55
+ color: $gantt-color;
56
+ opacity: 0;
68
57
 
69
- .gantt-side-header {
70
- box-sizing: border-box;
71
- height: $gantt-header-height;
58
+ svg {
59
+ overflow: visible !important;
72
60
  }
73
61
 
74
- .gantt-side-container {
75
- height: 100%;
76
- background-color: $gantt-bg-color;
77
- overflow-y: auto;
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
- &::-webkit-scrollbar {
80
- display: none;
81
- }
82
- }
83
- }
69
+ .gantt-side-header {
70
+ box-sizing: border-box;
71
+ height: $gantt-header-height;
72
+ }
84
73
 
85
- .gantt-container {
86
- flex: 1;
87
- position: relative;
88
- display: flex;
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
- .gantt-main-groups,
104
- .gantt-main-items {
105
- overflow: hidden;
106
- min-height: 100%;
79
+ &::-webkit-scrollbar {
80
+ display: none;
81
+ }
82
+ }
107
83
  }
108
84
 
109
- .gantt-group {
110
- height: $gantt-group-height;
111
- background: $gantt-group-background-color;
112
- border-bottom: 1px solid $gantt-border-color;
113
- box-sizing: border-box;
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-item {
117
- border-bottom: 1px solid $gantt-border-color;
118
- box-sizing: border-box;
119
- position: relative;
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
+ }
120
123
  }
121
- }
124
+ }
122
125
 
123
- .gantt-virtual-scroll-viewport {
124
- position: absolute;
125
- left: 0;
126
- top: $gantt-header-height;
127
- right: 0;
128
- bottom: 0;
129
- z-index: 2;
130
- .cdk-virtual-scroll-content-wrapper {
131
- width: 100%;
132
- min-width: unset;
133
- display: flex;
134
- min-height: 100%;
135
- .gantt-container {
136
- .gantt-main-container {
137
- height: 100%;
138
- top: 0;
126
+ .gantt-table {
127
+ display: block;
128
+ &-empty {
129
+ height: 100%;
130
+ position: relative;
131
+ .gantt-table-body {
132
+ position: absolute;
133
+ text-align: center;
134
+ top: 50%;
135
+ left: 50%;
136
+ transform: translate(-50%, -50%);
137
+ margin-top: 22px;
138
+ .empty-icon {
139
+ svg {
140
+ height: 78px;
141
+ width: 78px;
139
142
  }
140
143
  }
144
+ .empty-text {
145
+ color: #cacaca;
146
+ }
141
147
  }
142
148
  }
143
- }
144
149
 
145
- .gantt-header {
146
- display: flex;
147
- overflow: hidden;
148
- height: 100%;
149
- .gantt-container-header {
150
- flex: 1;
151
- overflow: hidden;
152
- background-color: #fafafa;
150
+ &-drag-trigger {
151
+ width: $gantt-table-header-drag-line-width;
152
+ position: absolute;
153
+ top: 0;
154
+ right: 0;
155
+ bottom: 0;
156
+ cursor: ew-resize;
157
+ z-index: 1;
158
+
159
+ &:hover {
160
+ background: $gantt-table-header-drag-line-color;
161
+ z-index: 2;
162
+ }
153
163
  }
154
- }
155
164
 
156
- .gantt-table-header {
157
- text-align: center;
158
- background: #fff;
159
- height: $gantt-header-height;
160
- line-height: $gantt-header-height;
161
- box-shadow: $gantt-side-shadow;
162
- position: relative;
163
- z-index: 3;
164
- border-right: 1px solid $gantt-border-color;
165
-
166
- .gantt-table-column {
167
- font-weight: 400;
165
+ &-drag-auxiliary-line {
166
+ width: $gantt-table-header-drag-line-width;
167
+ background: $gantt-table-header-drag-line-color;
168
+ position: absolute;
169
+ top: 0;
170
+ bottom: 0;
171
+ z-index: 100;
172
+ display: none;
168
173
  }
169
- }
170
174
 
171
- .gantt-table-body {
172
- display: block;
173
- .gantt-table-group {
175
+ .gantt-table-row {
174
176
  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
177
  box-sizing: border-box;
181
- position: relative;
178
+ border-bottom: 1px solid $gantt-border-color;
182
179
 
183
- .gantt-table-group-title {
184
- cursor: pointer;
180
+ .gantt-table-column {
181
+ overflow: hidden;
182
+ border-right: 1px solid $gantt-border-color;
183
+ box-sizing: border-box;
184
+ position: relative;
185
185
 
186
- .expand-icon {
187
- color: #aaa;
188
- margin-right: 6px;
186
+ &:last-child {
187
+ border-right: none;
189
188
  }
190
189
  }
191
190
  }
192
191
 
193
- .gantt-table-item {
194
- cursor: pointer;
195
- &-first-level-group {
196
- background: $gantt-group-background-color;
197
- }
198
-
199
- &-with-group {
200
- .gantt-table-column {
201
- &:first-child {
202
- padding: 0 15px 0 32px;
203
- }
204
- }
205
- }
192
+ .gantt-table-header {
193
+ text-align: center;
194
+ position: sticky;
195
+ top: 0;
196
+ background: #fff;
197
+ z-index: 2;
198
+ height: $gantt-header-height;
199
+ line-height: $gantt-header-height;
206
200
 
207
201
  .gantt-table-column {
208
- display: flex;
209
- padding: $gantt-table-td-padding;
210
-
211
- &:last-child {
212
- border-right: none;
213
- }
202
+ font-weight: 400;
214
203
  }
204
+ }
215
205
 
216
- .gantt-table-column-content {
217
- flex: 1;
206
+ .gantt-table-body {
207
+ .gantt-table-group {
208
+ display: flex;
209
+ height: $gantt-group-height;
210
+ background: $gantt-group-background-color;
211
+ padding: 0 10px;
212
+ align-items: center;
213
+ border-bottom: 1px solid $gantt-border-color;
214
+ box-sizing: border-box;
218
215
  position: relative;
219
- overflow: hidden;
220
- text-overflow: ellipsis;
221
- white-space: nowrap;
222
- }
223
216
 
224
- &:hover {
225
- background-color: $gantt-container-background-color;
226
- }
227
- }
217
+ .gantt-table-group-title {
218
+ cursor: pointer;
228
219
 
229
- .gantt-expand-icon {
230
- display: inline-block;
231
- width: 20px;
232
- color: #aaa;
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;
220
+ .expand-icon {
221
+ color: #aaa;
222
+ margin-right: 6px;
223
+ }
249
224
  }
250
225
  }
251
- .empty-text {
252
- color: #cacaca;
253
- }
254
- }
255
- }
256
226
 
257
- .gantt-table-drag-trigger {
258
- width: $gantt-table-header-drag-line-width;
259
- position: absolute;
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
- }
227
+ .gantt-table-item {
228
+ cursor: pointer;
229
+ &-first-level-group {
230
+ background: $gantt-group-background-color;
231
+ }
269
232
 
270
- &:hover {
271
- background: $gantt-table-header-drag-line-color;
272
- }
273
- }
233
+ &-with-group {
234
+ .gantt-table-column {
235
+ &:first-child {
236
+ padding: 0 15px 0 32px;
237
+ }
238
+ }
239
+ }
274
240
 
275
- .gantt-table-drag-auxiliary-line {
276
- width: $gantt-table-header-drag-line-width;
277
- background: $gantt-table-header-drag-line-color;
278
- position: absolute;
279
- top: 0;
280
- bottom: 0;
281
- z-index: 100;
282
- display: none;
283
- height: 5000px;
284
- }
241
+ .gantt-table-column {
242
+ display: flex;
243
+ padding: $gantt-table-td-padding;
285
244
 
286
- .gantt-table-row {
287
- display: flex;
288
- box-sizing: border-box;
289
- border-bottom: 1px solid $gantt-border-color;
245
+ &:last-child {
246
+ border-right: none;
247
+ }
248
+ }
290
249
 
291
- .gantt-table-column {
292
- overflow: hidden;
293
- border-right: 1px solid $gantt-border-color;
294
- box-sizing: border-box;
295
- position: relative;
250
+ .gantt-table-column-content {
251
+ flex: 1;
252
+ position: relative;
253
+ overflow: hidden;
254
+ text-overflow: ellipsis;
255
+ white-space: nowrap;
256
+ }
257
+
258
+ &:hover {
259
+ background-color: $gantt-container-background-color;
260
+ }
261
+ }
296
262
 
297
- &:last-child {
298
- border-right: none;
263
+ .gantt-expand-icon {
264
+ display: inline-block;
265
+ width: 20px;
266
+ color: #aaa;
299
267
  }
300
268
  }
301
269
  }
302
270
 
303
- .gantt-calendar {
271
+ .gantt-calendar-overlay {
304
272
  display: block;
305
273
  height: 100%;
306
274
  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
275
 
317
- .primary-line {
318
- stroke: $gantt-date-primary-border;
319
- }
320
276
  .gantt-calendar-today-overlay {
321
277
  position: relative;
322
- z-index: 1;
278
+ z-index: 2;
323
279
  .today-rect {
324
280
  width: 35px;
325
281
  height: 24px;
@@ -338,17 +294,21 @@ $gantt-table-header-drag-line-color: #348fe4 !default;
338
294
  margin-left: -2px;
339
295
  }
340
296
  }
341
- }
342
- .gantt-calendar-header {
343
- position: relative;
344
- z-index: 2;
345
- height: $gantt-header-height;
346
- .gantt-calendar-today-overlay {
347
- z-index: 2;
297
+
298
+ .gantt-calendar-overlay-main {
299
+ position: relative;
300
+ z-index: 1;
301
+ background-color: $gantt-bg-color;
348
302
  }
349
- .header-line {
350
- stroke: $gantt-border-color;
303
+
304
+ svg {
305
+ overflow: visible;
306
+ }
307
+
308
+ line {
309
+ shape-rendering: crispEdges;
351
310
  }
311
+
352
312
  .primary-text {
353
313
  fill: $gantt-date-primary-color;
354
314
  font-size: $gantt-date-primary-font-size;
@@ -367,12 +327,9 @@ $gantt-table-header-drag-line-color: #348fe4 !default;
367
327
  .secondary-text {
368
328
  text-anchor: middle;
369
329
  }
370
- }
371
- .gantt-calendar-grid {
372
- position: absolute;
373
- width: 100%;
374
- .gantt-calendar-grid-main {
375
- background-color: transparent;
330
+
331
+ .primary-line {
332
+ stroke: $gantt-date-primary-border;
376
333
  }
377
334
 
378
335
  .secondary-line {
@@ -380,6 +337,10 @@ $gantt-table-header-drag-line-color: #348fe4 !default;
380
337
  stroke: #cacaca;
381
338
  }
382
339
 
340
+ .header-line {
341
+ stroke: $gantt-border-color;
342
+ }
343
+
383
344
  .secondary-backdrop {
384
345
  fill: $gantt-date-week-backdrop-bg;
385
346
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/gantt",
3
- "version": "12.1.0-next.0",
3
+ "version": "12.2.0-next.0",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.0.0",
package/public-api.d.ts CHANGED
@@ -12,3 +12,4 @@ export * from './views/view';
12
12
  export * from './gantt-item-upper';
13
13
  export * from './gantt.pipe';
14
14
  export * from './gantt-print.service';
15
+ export * from './gantt.config';
@@ -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"; }, never, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableComponent, "ngx-gantt-table", never, {}, { "columnChanges": "columnChanges"; }, ["rowBeforeTemplate", "rowAfterTemplate"], never>;
10
12
  }
@@ -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[], level?: number): any[];
12
- export declare function keyBy<T>(array: T[], key: T extends object ? keyof T : never): {
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
- }