@worktile/gantt 14.0.4 → 14.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/esm2020/gantt-upper.mjs +8 -6
- package/esm2020/gantt.component.mjs +4 -4
- package/fesm2015/worktile-gantt.mjs +10 -8
- package/fesm2015/worktile-gantt.mjs.map +1 -1
- package/fesm2020/worktile-gantt.mjs +10 -8
- package/fesm2020/worktile-gantt.mjs.map +1 -1
- package/gantt-upper.d.ts +2 -2
- package/package.json +1 -1
|
@@ -857,13 +857,12 @@ class GanttUpper {
|
|
|
857
857
|
this.dragEnded = new EventEmitter();
|
|
858
858
|
this.barClick = new EventEmitter();
|
|
859
859
|
this.viewChange = new EventEmitter();
|
|
860
|
+
this.expandChange = new EventEmitter();
|
|
860
861
|
this.linkDragEnded = new EventEmitter();
|
|
861
862
|
this.items = [];
|
|
862
863
|
this.groups = [];
|
|
863
864
|
this.baselineItems = [];
|
|
864
865
|
this.baselineItemsMap = {};
|
|
865
|
-
// public viewChange = new EventEmitter<GanttView>();
|
|
866
|
-
this.expandChange = new EventEmitter();
|
|
867
866
|
this.firstChange = true;
|
|
868
867
|
this.unsubscribe$ = new Subject();
|
|
869
868
|
this._selectable = false;
|
|
@@ -897,6 +896,7 @@ class GanttUpper {
|
|
|
897
896
|
get multiple() {
|
|
898
897
|
return this._multiple;
|
|
899
898
|
}
|
|
899
|
+
// public viewChange = new EventEmitter<GanttView>();
|
|
900
900
|
get element() {
|
|
901
901
|
return this.elementRef.nativeElement;
|
|
902
902
|
}
|
|
@@ -1000,7 +1000,7 @@ class GanttUpper {
|
|
|
1000
1000
|
this.groups.forEach((group) => {
|
|
1001
1001
|
group.setExpand(expanded);
|
|
1002
1002
|
});
|
|
1003
|
-
this.expandChange.next();
|
|
1003
|
+
this.expandChange.next(null);
|
|
1004
1004
|
this.cdr.detectChanges();
|
|
1005
1005
|
}
|
|
1006
1006
|
initSelectionModel() {
|
|
@@ -1083,7 +1083,7 @@ class GanttUpper {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
expandGroup(group) {
|
|
1085
1085
|
group.setExpand(!group.expanded);
|
|
1086
|
-
this.expandChange.emit();
|
|
1086
|
+
this.expandChange.emit(group);
|
|
1087
1087
|
this.cdr.detectChanges();
|
|
1088
1088
|
}
|
|
1089
1089
|
// public functions
|
|
@@ -1130,7 +1130,7 @@ class GanttUpper {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
1132
|
GanttUpper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.11", ngImport: i0, type: GanttUpper, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: GANTT_GLOBAL_CONFIG }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1133
|
-
GanttUpper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.11", type: GanttUpper, inputs: { originItems: ["items", "originItems"], originGroups: ["groups", "originGroups"], originBaselineItems: ["baselineItems", "originBaselineItems"], viewType: "viewType", start: "start", end: "end", showTodayLine: "showTodayLine", draggable: "draggable", styles: "styles", showToolbar: "showToolbar", toolbarOptions: "toolbarOptions", viewOptions: "viewOptions", linkOptions: "linkOptions", disabledLoadOnScroll: "disabledLoadOnScroll", selectable: "selectable", multiple: "multiple" }, outputs: { loadOnScroll: "loadOnScroll", dragStarted: "dragStarted", dragMoved: "dragMoved", dragEnded: "dragEnded", barClick: "barClick", viewChange: "viewChange" }, host: { properties: { "class.gantt": "this.ganttClass" } }, queries: [{ propertyName: "barTemplate", first: true, predicate: ["bar"], descendants: true, static: true }, { propertyName: "rangeTemplate", first: true, predicate: ["range"], descendants: true, static: true }, { propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, static: true }, { propertyName: "groupTemplate", first: true, predicate: ["group"], descendants: true, static: true }, { propertyName: "groupHeaderTemplate", first: true, predicate: ["groupHeader"], descendants: true, static: true }, { propertyName: "toolbarTemplate", first: true, predicate: ["toolbar"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0 });
|
|
1133
|
+
GanttUpper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.11", type: GanttUpper, inputs: { originItems: ["items", "originItems"], originGroups: ["groups", "originGroups"], originBaselineItems: ["baselineItems", "originBaselineItems"], viewType: "viewType", start: "start", end: "end", showTodayLine: "showTodayLine", draggable: "draggable", styles: "styles", showToolbar: "showToolbar", toolbarOptions: "toolbarOptions", viewOptions: "viewOptions", linkOptions: "linkOptions", disabledLoadOnScroll: "disabledLoadOnScroll", selectable: "selectable", multiple: "multiple" }, outputs: { loadOnScroll: "loadOnScroll", dragStarted: "dragStarted", dragMoved: "dragMoved", dragEnded: "dragEnded", barClick: "barClick", viewChange: "viewChange", expandChange: "expandChange" }, host: { properties: { "class.gantt": "this.ganttClass" } }, queries: [{ propertyName: "barTemplate", first: true, predicate: ["bar"], descendants: true, static: true }, { propertyName: "rangeTemplate", first: true, predicate: ["range"], descendants: true, static: true }, { propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, static: true }, { propertyName: "groupTemplate", first: true, predicate: ["group"], descendants: true, static: true }, { propertyName: "groupHeaderTemplate", first: true, predicate: ["groupHeader"], descendants: true, static: true }, { propertyName: "toolbarTemplate", first: true, predicate: ["toolbar"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0 });
|
|
1134
1134
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImport: i0, type: GanttUpper, decorators: [{
|
|
1135
1135
|
type: Directive
|
|
1136
1136
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
@@ -1183,6 +1183,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
|
|
|
1183
1183
|
type: Output
|
|
1184
1184
|
}], viewChange: [{
|
|
1185
1185
|
type: Output
|
|
1186
|
+
}], expandChange: [{
|
|
1187
|
+
type: Output
|
|
1186
1188
|
}], barTemplate: [{
|
|
1187
1189
|
type: ContentChild,
|
|
1188
1190
|
args: ['bar', { static: true }]
|
|
@@ -3054,7 +3056,7 @@ class NgxGanttComponent extends GanttUpper {
|
|
|
3054
3056
|
this.childrenResolve(item.origin)
|
|
3055
3057
|
.pipe(take(1), finalize(() => {
|
|
3056
3058
|
item.loading = false;
|
|
3057
|
-
this.expandChange.emit();
|
|
3059
|
+
this.expandChange.emit(item);
|
|
3058
3060
|
this.cdr.detectChanges();
|
|
3059
3061
|
}))
|
|
3060
3062
|
.subscribe((items) => {
|
|
@@ -3064,12 +3066,12 @@ class NgxGanttComponent extends GanttUpper {
|
|
|
3064
3066
|
}
|
|
3065
3067
|
else {
|
|
3066
3068
|
this.computeItemsRefs(...item.children);
|
|
3067
|
-
this.expandChange.emit();
|
|
3069
|
+
this.expandChange.emit(item);
|
|
3068
3070
|
}
|
|
3069
3071
|
}
|
|
3070
3072
|
else {
|
|
3071
3073
|
item.setExpand(false);
|
|
3072
|
-
this.expandChange.emit();
|
|
3074
|
+
this.expandChange.emit(item);
|
|
3073
3075
|
}
|
|
3074
3076
|
}
|
|
3075
3077
|
selectItem(selectEvent) {
|