@worktile/gantt 15.1.2 → 15.1.4
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 +4 -0
- package/esm2020/components/bar/bar-drag.mjs +1 -3
- package/esm2020/components/bar/bar.component.mjs +12 -3
- package/esm2020/gantt.module.mjs +9 -3
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/worktile-gantt.mjs +20 -7
- package/fesm2015/worktile-gantt.mjs.map +1 -1
- package/fesm2020/worktile-gantt.mjs +20 -7
- package/fesm2020/worktile-gantt.mjs.map +1 -1
- package/gantt.module.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -2867,11 +2867,9 @@ class GanttBarDrag {
|
|
|
2867
2867
|
dragBackdropElement.style.display = 'none';
|
|
2868
2868
|
}
|
|
2869
2869
|
setDraggingStyles() {
|
|
2870
|
-
this.barElement.style.pointerEvents = 'none';
|
|
2871
2870
|
this.barElement.classList.add('gantt-bar-draggable-drag');
|
|
2872
2871
|
}
|
|
2873
2872
|
clearDraggingStyles() {
|
|
2874
|
-
this.barElement.style.pointerEvents = '';
|
|
2875
2873
|
this.barElement.classList.remove('gantt-bar-draggable-drag');
|
|
2876
2874
|
}
|
|
2877
2875
|
barDragMove() {
|
|
@@ -3155,7 +3153,11 @@ class NgxGanttBarComponent extends GanttItemUpper {
|
|
|
3155
3153
|
}
|
|
3156
3154
|
ngOnInit() {
|
|
3157
3155
|
super.ngOnInit();
|
|
3156
|
+
this.dragContainer.dragStarted.pipe(takeUntil(this.unsubscribe$)).subscribe(() => {
|
|
3157
|
+
this.elementRef.nativeElement.style.pointerEvents = 'none';
|
|
3158
|
+
});
|
|
3158
3159
|
this.dragContainer.dragEnded.pipe(takeUntil(this.unsubscribe$)).subscribe(() => {
|
|
3160
|
+
this.elementRef.nativeElement.style.pointerEvents = '';
|
|
3159
3161
|
this.setContentBackground();
|
|
3160
3162
|
});
|
|
3161
3163
|
}
|
|
@@ -3200,17 +3202,22 @@ class NgxGanttBarComponent extends GanttItemUpper {
|
|
|
3200
3202
|
const contentElement = this.contentElementRef.nativeElement;
|
|
3201
3203
|
const color = this.item.color || barBackground;
|
|
3202
3204
|
const style = this.item.barStyle || {};
|
|
3205
|
+
const barElement = this.elementRef.nativeElement;
|
|
3203
3206
|
if (this.item.origin.start && this.item.origin.end) {
|
|
3204
3207
|
style.background = color;
|
|
3205
3208
|
style.borderRadius = '';
|
|
3206
3209
|
}
|
|
3207
3210
|
if (this.item.origin.start && !this.item.origin.end) {
|
|
3208
3211
|
style.background = linearGradient('to left', hexToRgb(color, 0.55), hexToRgb(color, 1));
|
|
3209
|
-
|
|
3212
|
+
const borderRadius = '4px 12.5px 12.5px 4px';
|
|
3213
|
+
style.borderRadius = borderRadius;
|
|
3214
|
+
barElement.style.borderRadius = borderRadius;
|
|
3210
3215
|
}
|
|
3211
3216
|
if (!this.item.origin.start && this.item.origin.end) {
|
|
3212
3217
|
style.background = linearGradient('to right', hexToRgb(color, 0.55), hexToRgb(color, 1));
|
|
3213
|
-
|
|
3218
|
+
const borderRadius = '12.5px 4px 4px 12.5px';
|
|
3219
|
+
style.borderRadius = borderRadius;
|
|
3220
|
+
barElement.style.borderRadius = borderRadius;
|
|
3214
3221
|
}
|
|
3215
3222
|
if (this.item.progress >= 0) {
|
|
3216
3223
|
const contentProgressElement = contentElement.querySelector('.gantt-bar-content-progress');
|
|
@@ -4070,7 +4077,10 @@ NgxGanttModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
4070
4077
|
NgxGanttBarComponent,
|
|
4071
4078
|
NgxGanttRangeComponent,
|
|
4072
4079
|
NgxGanttBaselineComponent,
|
|
4073
|
-
NgxGanttToolbarComponent
|
|
4080
|
+
NgxGanttToolbarComponent,
|
|
4081
|
+
GanttCalendarHeaderComponent,
|
|
4082
|
+
GanttCalendarGridComponent,
|
|
4083
|
+
GanttDragBackdropComponent] });
|
|
4074
4084
|
NgxGanttModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NgxGanttModule, providers: [
|
|
4075
4085
|
CdkVirtualScrollViewport,
|
|
4076
4086
|
{
|
|
@@ -4090,7 +4100,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
|
4090
4100
|
NgxGanttBarComponent,
|
|
4091
4101
|
NgxGanttRangeComponent,
|
|
4092
4102
|
NgxGanttBaselineComponent,
|
|
4093
|
-
NgxGanttToolbarComponent
|
|
4103
|
+
NgxGanttToolbarComponent,
|
|
4104
|
+
GanttCalendarHeaderComponent,
|
|
4105
|
+
GanttCalendarGridComponent,
|
|
4106
|
+
GanttDragBackdropComponent
|
|
4094
4107
|
],
|
|
4095
4108
|
declarations: [
|
|
4096
4109
|
NgxGanttComponent,
|
|
@@ -4132,5 +4145,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
|
4132
4145
|
* Generated bundle index. Do not edit.
|
|
4133
4146
|
*/
|
|
4134
4147
|
|
|
4135
|
-
export { GANTT_GLOBAL_CONFIG, GANTT_UPPER_TOKEN, GanttBarClickEvent, GanttBaselineItemInternal, GanttDate, GanttDatePoint, GanttDragEvent, GanttGroupInternal, GanttItemInternal, GanttItemType, GanttItemUpper, GanttLineClickEvent, GanttLinkDragEvent, GanttLinkLineType, GanttLinkType, GanttLoadOnScrollEvent, GanttLoaderComponent, GanttPrintService, GanttSelectedEvent, GanttTableDragDroppedEvent, GanttTableDragEndedEvent, GanttTableDragEnterPredicateContext, GanttTableDragStartedEvent, GanttTableEvent, GanttUpper, GanttView, GanttViewType, IsGanttBarItemPipe, IsGanttCustomItemPipe, IsGanttRangeItemPipe, LinkColors, NgxGanttBarComponent, NgxGanttBaselineComponent, NgxGanttComponent, NgxGanttModule, NgxGanttRangeComponent, NgxGanttRootComponent, NgxGanttTableColumnComponent, NgxGanttTableComponent, NgxGanttToolbarComponent, defaultConfig, ganttViews, primaryDatePointTop, registerView, secondaryDatePointTop };
|
|
4148
|
+
export { GANTT_GLOBAL_CONFIG, GANTT_UPPER_TOKEN, GanttBarClickEvent, GanttBaselineItemInternal, GanttCalendarGridComponent, GanttCalendarHeaderComponent, GanttDate, GanttDatePoint, GanttDragBackdropComponent, GanttDragEvent, GanttGroupInternal, GanttItemInternal, GanttItemType, GanttItemUpper, GanttLineClickEvent, GanttLinkDragEvent, GanttLinkLineType, GanttLinkType, GanttLoadOnScrollEvent, GanttLoaderComponent, GanttPrintService, GanttSelectedEvent, GanttTableDragDroppedEvent, GanttTableDragEndedEvent, GanttTableDragEnterPredicateContext, GanttTableDragStartedEvent, GanttTableEvent, GanttUpper, GanttView, GanttViewType, IsGanttBarItemPipe, IsGanttCustomItemPipe, IsGanttRangeItemPipe, LinkColors, NgxGanttBarComponent, NgxGanttBaselineComponent, NgxGanttComponent, NgxGanttModule, NgxGanttRangeComponent, NgxGanttRootComponent, NgxGanttTableColumnComponent, NgxGanttTableComponent, NgxGanttToolbarComponent, defaultConfig, ganttViews, primaryDatePointTop, registerView, secondaryDatePointTop };
|
|
4136
4149
|
//# sourceMappingURL=worktile-gantt.mjs.map
|