@worktile/gantt 15.1.3 → 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/esm2020/components/bar/bar.component.mjs +8 -3
- package/esm2020/gantt.module.mjs +9 -3
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/worktile-gantt.mjs +16 -5
- package/fesm2015/worktile-gantt.mjs.map +1 -1
- package/fesm2020/worktile-gantt.mjs +16 -5
- 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
|
@@ -3202,17 +3202,22 @@ class NgxGanttBarComponent extends GanttItemUpper {
|
|
|
3202
3202
|
const contentElement = this.contentElementRef.nativeElement;
|
|
3203
3203
|
const color = this.item.color || barBackground;
|
|
3204
3204
|
const style = this.item.barStyle || {};
|
|
3205
|
+
const barElement = this.elementRef.nativeElement;
|
|
3205
3206
|
if (this.item.origin.start && this.item.origin.end) {
|
|
3206
3207
|
style.background = color;
|
|
3207
3208
|
style.borderRadius = '';
|
|
3208
3209
|
}
|
|
3209
3210
|
if (this.item.origin.start && !this.item.origin.end) {
|
|
3210
3211
|
style.background = linearGradient('to left', hexToRgb(color, 0.55), hexToRgb(color, 1));
|
|
3211
|
-
|
|
3212
|
+
const borderRadius = '4px 12.5px 12.5px 4px';
|
|
3213
|
+
style.borderRadius = borderRadius;
|
|
3214
|
+
barElement.style.borderRadius = borderRadius;
|
|
3212
3215
|
}
|
|
3213
3216
|
if (!this.item.origin.start && this.item.origin.end) {
|
|
3214
3217
|
style.background = linearGradient('to right', hexToRgb(color, 0.55), hexToRgb(color, 1));
|
|
3215
|
-
|
|
3218
|
+
const borderRadius = '12.5px 4px 4px 12.5px';
|
|
3219
|
+
style.borderRadius = borderRadius;
|
|
3220
|
+
barElement.style.borderRadius = borderRadius;
|
|
3216
3221
|
}
|
|
3217
3222
|
if (this.item.progress >= 0) {
|
|
3218
3223
|
const contentProgressElement = contentElement.querySelector('.gantt-bar-content-progress');
|
|
@@ -4072,7 +4077,10 @@ NgxGanttModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
4072
4077
|
NgxGanttBarComponent,
|
|
4073
4078
|
NgxGanttRangeComponent,
|
|
4074
4079
|
NgxGanttBaselineComponent,
|
|
4075
|
-
NgxGanttToolbarComponent
|
|
4080
|
+
NgxGanttToolbarComponent,
|
|
4081
|
+
GanttCalendarHeaderComponent,
|
|
4082
|
+
GanttCalendarGridComponent,
|
|
4083
|
+
GanttDragBackdropComponent] });
|
|
4076
4084
|
NgxGanttModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NgxGanttModule, providers: [
|
|
4077
4085
|
CdkVirtualScrollViewport,
|
|
4078
4086
|
{
|
|
@@ -4092,7 +4100,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
|
4092
4100
|
NgxGanttBarComponent,
|
|
4093
4101
|
NgxGanttRangeComponent,
|
|
4094
4102
|
NgxGanttBaselineComponent,
|
|
4095
|
-
NgxGanttToolbarComponent
|
|
4103
|
+
NgxGanttToolbarComponent,
|
|
4104
|
+
GanttCalendarHeaderComponent,
|
|
4105
|
+
GanttCalendarGridComponent,
|
|
4106
|
+
GanttDragBackdropComponent
|
|
4096
4107
|
],
|
|
4097
4108
|
declarations: [
|
|
4098
4109
|
NgxGanttComponent,
|
|
@@ -4134,5 +4145,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
|
4134
4145
|
* Generated bundle index. Do not edit.
|
|
4135
4146
|
*/
|
|
4136
4147
|
|
|
4137
|
-
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 };
|
|
4138
4149
|
//# sourceMappingURL=worktile-gantt.mjs.map
|