@worktile/gantt 18.0.4 → 18.0.5
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/class/event.d.ts +3 -1
- package/components/icon/icons.d.ts +2 -0
- package/components/main/gantt-main.component.d.ts +14 -4
- package/esm2022/class/event.mjs +4 -2
- package/esm2022/components/icon/icons.mjs +6 -2
- package/esm2022/components/main/gantt-main.component.mjs +39 -9
- package/esm2022/components/table/body/gantt-table-body.component.mjs +3 -3
- package/esm2022/gantt-dom.service.mjs +18 -2
- package/esm2022/gantt-upper.mjs +5 -2
- package/esm2022/gantt.component.mjs +10 -5
- package/esm2022/root.component.mjs +2 -2
- package/esm2022/table/gantt-table.component.mjs +5 -2
- package/fesm2022/worktile-gantt.mjs +79 -19
- package/fesm2022/worktile-gantt.mjs.map +1 -1
- package/gantt-dom.service.d.ts +7 -1
- package/gantt-upper.d.ts +2 -1
- package/gantt.component.scss +53 -0
- package/package.json +1 -1
- package/table/gantt-table.component.d.ts +3 -2
package/gantt-dom.service.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, NgZone } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnDestroy, NgZone, WritableSignal } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare enum ScrollDirection {
|
|
@@ -23,6 +23,10 @@ export declare class GanttDomService implements OnDestroy {
|
|
|
23
23
|
mainItems: Element;
|
|
24
24
|
calendarOverlay: Element;
|
|
25
25
|
linksOverlay: Element;
|
|
26
|
+
visibleRangeX: WritableSignal<{
|
|
27
|
+
min: number;
|
|
28
|
+
max: number;
|
|
29
|
+
}>;
|
|
26
30
|
private mainFooter;
|
|
27
31
|
private mainScrollbar;
|
|
28
32
|
private unsubscribe$;
|
|
@@ -37,7 +41,9 @@ export declare class GanttDomService implements OnDestroy {
|
|
|
37
41
|
*/
|
|
38
42
|
getViewerScroll(options?: AddEventListenerOptions): Observable<ScrollEvent>;
|
|
39
43
|
getResize(): Observable<Event>;
|
|
44
|
+
getResizeByElement(element: Element): Observable<unknown>;
|
|
40
45
|
scrollMainContainer(left: number): void;
|
|
46
|
+
setVisibleRangeX(): void;
|
|
41
47
|
ngOnDestroy(): void;
|
|
42
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<GanttDomService, never>;
|
|
43
49
|
static ɵprov: i0.ɵɵInjectableDeclaration<GanttDomService>;
|
package/gantt-upper.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export declare abstract class GanttUpper implements OnChanges, OnInit, OnDestroy
|
|
|
35
35
|
get selectable(): boolean;
|
|
36
36
|
set multiple(value: BooleanInput);
|
|
37
37
|
get multiple(): boolean;
|
|
38
|
+
quickTimeFocus: boolean;
|
|
38
39
|
loadOnScroll: EventEmitter<GanttLoadOnScrollEvent>;
|
|
39
40
|
dragStarted: EventEmitter<GanttDragEvent<unknown>>;
|
|
40
41
|
dragMoved: EventEmitter<GanttDragEvent<unknown>>;
|
|
@@ -93,6 +94,6 @@ export declare abstract class GanttUpper implements OnChanges, OnInit, OnDestroy
|
|
|
93
94
|
changeView(type: GanttViewType): void;
|
|
94
95
|
rerenderView(): void;
|
|
95
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<GanttUpper, never>;
|
|
96
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<GanttUpper, never, never, { "originItems": { "alias": "items"; "required": false; }; "originGroups": { "alias": "groups"; "required": false; }; "originBaselineItems": { "alias": "baselineItems"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "start": { "alias": "start"; "required": false; }; "end": { "alias": "end"; "required": false; }; "showTodayLine": { "alias": "showTodayLine"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "toolbarOptions": { "alias": "toolbarOptions"; "required": false; }; "viewOptions": { "alias": "viewOptions"; "required": false; }; "linkOptions": { "alias": "linkOptions"; "required": false; }; "disabledLoadOnScroll": { "alias": "disabledLoadOnScroll"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; }, { "loadOnScroll": "loadOnScroll"; "dragStarted": "dragStarted"; "dragMoved": "dragMoved"; "dragEnded": "dragEnded"; "barClick": "barClick"; "viewChange": "viewChange"; "expandChange": "expandChange"; }, ["barTemplate", "rangeTemplate", "itemTemplate", "baselineTemplate", "groupTemplate", "groupHeaderTemplate", "toolbarTemplate"], never, false, never>;
|
|
97
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GanttUpper, never, never, { "originItems": { "alias": "items"; "required": false; }; "originGroups": { "alias": "groups"; "required": false; }; "originBaselineItems": { "alias": "baselineItems"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "start": { "alias": "start"; "required": false; }; "end": { "alias": "end"; "required": false; }; "showTodayLine": { "alias": "showTodayLine"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "toolbarOptions": { "alias": "toolbarOptions"; "required": false; }; "viewOptions": { "alias": "viewOptions"; "required": false; }; "linkOptions": { "alias": "linkOptions"; "required": false; }; "disabledLoadOnScroll": { "alias": "disabledLoadOnScroll"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "quickTimeFocus": { "alias": "quickTimeFocus"; "required": false; }; }, { "loadOnScroll": "loadOnScroll"; "dragStarted": "dragStarted"; "dragMoved": "dragMoved"; "dragEnded": "dragEnded"; "barClick": "barClick"; "viewChange": "viewChange"; "expandChange": "expandChange"; }, ["barTemplate", "rangeTemplate", "itemTemplate", "baselineTemplate", "groupTemplate", "groupHeaderTemplate", "toolbarTemplate"], never, false, never>;
|
|
97
98
|
}
|
|
98
99
|
export declare const GANTT_UPPER_TOKEN: InjectionToken<GanttUpper>;
|
package/gantt.component.scss
CHANGED
|
@@ -110,6 +110,59 @@
|
|
|
110
110
|
background-color: rgba($color: variables.$gantt-table-header-drag-line-color, $alpha: 0.1);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
+
|
|
114
|
+
.gantt-quick-time-focus-container {
|
|
115
|
+
position: absolute;
|
|
116
|
+
left: 0;
|
|
117
|
+
top: 0;
|
|
118
|
+
.gantt-quick-time-focus {
|
|
119
|
+
position: sticky;
|
|
120
|
+
left: 0;
|
|
121
|
+
width: 0px;
|
|
122
|
+
z-index: 3;
|
|
123
|
+
pointer-events: none;
|
|
124
|
+
|
|
125
|
+
&-item {
|
|
126
|
+
display: flex;
|
|
127
|
+
justify-content: space-between;
|
|
128
|
+
align-items: center;
|
|
129
|
+
span {
|
|
130
|
+
width: 24px;
|
|
131
|
+
height: 24px;
|
|
132
|
+
display: flex;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
align-items: center;
|
|
135
|
+
margin-bottom: 2px;
|
|
136
|
+
pointer-events: all;
|
|
137
|
+
&:hover {
|
|
138
|
+
.gantt-quick-time-focus-item-arrow {
|
|
139
|
+
border: 1px solid rgba(variables.$gantt-primary-color, 1);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&-arrow {
|
|
145
|
+
width: 20px;
|
|
146
|
+
height: 20px;
|
|
147
|
+
display: flex;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
align-items: center;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
background-color: variables.$gantt-bar-bg;
|
|
152
|
+
border: 1px solid variables.$gantt-border-color;
|
|
153
|
+
border-radius: 4px;
|
|
154
|
+
box-shadow: 0 4px 7px 1px rgba(0, 0, 0, 0.05);
|
|
155
|
+
.gantt-icon {
|
|
156
|
+
display: inline-block;
|
|
157
|
+
svg {
|
|
158
|
+
width: 14px;
|
|
159
|
+
height: 14px;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
113
166
|
}
|
|
114
167
|
|
|
115
168
|
.gantt-normal-viewport {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
-
import { GanttTableDragEnterPredicateContext, GanttTableDragDroppedEvent, GanttTableEvent, GanttTableDragStartedEvent, GanttTableDragEndedEvent } from '../class';
|
|
2
|
+
import { GanttTableDragEnterPredicateContext, GanttTableDragDroppedEvent, GanttTableEvent, GanttTableDragStartedEvent, GanttTableDragEndedEvent, GanttTableItemClickEvent } from '../class';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class NgxGanttTableComponent {
|
|
5
5
|
draggable: boolean;
|
|
@@ -8,10 +8,11 @@ export declare class NgxGanttTableComponent {
|
|
|
8
8
|
dragStarted: EventEmitter<GanttTableDragStartedEvent<unknown>>;
|
|
9
9
|
dragEnded: EventEmitter<GanttTableDragEndedEvent<unknown>>;
|
|
10
10
|
columnChanges: EventEmitter<GanttTableEvent>;
|
|
11
|
+
itemClick: EventEmitter<GanttTableItemClickEvent<unknown>>;
|
|
11
12
|
rowBeforeTemplate: TemplateRef<any>;
|
|
12
13
|
rowAfterTemplate: TemplateRef<any>;
|
|
13
14
|
tableEmptyTemplate: TemplateRef<any>;
|
|
14
15
|
tableFooterTemplate: TemplateRef<any>;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxGanttTableComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableComponent, "ngx-gantt-table", never, { "draggable": { "alias": "draggable"; "required": false; }; "dropEnterPredicate": { "alias": "dropEnterPredicate"; "required": false; }; }, { "dragDropped": "dragDropped"; "dragStarted": "dragStarted"; "dragEnded": "dragEnded"; "columnChanges": "columnChanges"; }, ["rowBeforeTemplate", "rowAfterTemplate", "tableEmptyTemplate", "tableFooterTemplate"], never, true, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxGanttTableComponent, "ngx-gantt-table", never, { "draggable": { "alias": "draggable"; "required": false; }; "dropEnterPredicate": { "alias": "dropEnterPredicate"; "required": false; }; }, { "dragDropped": "dragDropped"; "dragStarted": "dragStarted"; "dragEnded": "dragEnded"; "columnChanges": "columnChanges"; "itemClick": "itemClick"; }, ["rowBeforeTemplate", "rowAfterTemplate", "tableEmptyTemplate", "tableFooterTemplate"], never, true, never>;
|
|
17
18
|
}
|