@progress/kendo-angular-gantt 18.1.0-develop.30 → 18.1.0-develop.31

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.
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Component, forwardRef, HostBinding, Input, Output, EventEmitter, ViewChild, ContentChildren, ContentChild, QueryList, isDevMode, Renderer2, ElementRef, NgZone } from '@angular/core';
5
+ import { Component, forwardRef, HostBinding, Input, Output, EventEmitter, ViewChild, ContentChildren, ContentChild, QueryList, isDevMode, Renderer2, ElementRef, NgZone, Inject, LOCALE_ID } from '@angular/core';
6
6
  import { TreeListComponent, DataBoundTreeComponent, ExpandableTreeComponent, TreeListSpacerComponent, CustomMessagesComponent } from '@progress/kendo-angular-treelist';
7
7
  import { Day } from '@progress/kendo-date-math';
8
8
  import { Subscription } from 'rxjs';
@@ -46,6 +46,7 @@ import { SplitterComponent, SplitterPaneComponent } from '@progress/kendo-angula
46
46
  import { DialogActionsComponent, DialogComponent } from '@progress/kendo-angular-dialog';
47
47
  import { ButtonComponent } from '@progress/kendo-angular-buttons';
48
48
  import { GanttTaskTooltipTemplateDirective } from './template-directives/task-tooltip-template.directive';
49
+ import { IntlService } from '@progress/kendo-angular-intl';
49
50
  import * as i0 from "@angular/core";
50
51
  import * as i1 from "./timeline/timeline-view.service";
51
52
  import * as i2 from "./scrolling/scroll-sync.service";
@@ -56,6 +57,7 @@ import * as i6 from "./editing/edit.service";
56
57
  import * as i7 from "@progress/kendo-angular-l10n";
57
58
  import * as i8 from "./navigation/navigation.service";
58
59
  import * as i9 from "./timeline/current-time-marker.service";
60
+ import * as i10 from "@progress/kendo-angular-intl";
59
61
  const TREELIST_GROUP_COLUMNS_CLASS = 'k-gantt-treelist-nested-columns';
60
62
  const DEFAULT_VIEW = 'week';
61
63
  const DEFAULT_DRAG_SCROLL_SETTINGS = {
@@ -148,6 +150,8 @@ export class GanttComponent {
148
150
  zone;
149
151
  navigation;
150
152
  currentTimeMarkerService;
153
+ intlService;
154
+ localeId;
151
155
  treeList;
152
156
  timeline;
153
157
  /**
@@ -757,8 +761,9 @@ export class GanttComponent {
757
761
  optionChangesSubscriptions = new Subscription();
758
762
  editServiceSubscription = new Subscription();
759
763
  localizationSubscription;
764
+ intlSubscription;
760
765
  keydownListenerDisposers;
761
- constructor(timelineViewService, scrollSyncService, renderer, mapper, optionChangesService, dependencyDomService, editService, localizationService, hostElement, zone, navigation, currentTimeMarkerService) {
766
+ constructor(timelineViewService, scrollSyncService, renderer, mapper, optionChangesService, dependencyDomService, editService, localizationService, hostElement, zone, navigation, currentTimeMarkerService, intlService, localeId) {
762
767
  this.timelineViewService = timelineViewService;
763
768
  this.scrollSyncService = scrollSyncService;
764
769
  this.renderer = renderer;
@@ -771,8 +776,15 @@ export class GanttComponent {
771
776
  this.zone = zone;
772
777
  this.navigation = navigation;
773
778
  this.currentTimeMarkerService = currentTimeMarkerService;
779
+ this.intlService = intlService;
780
+ this.localeId = localeId;
774
781
  const isValid = validatePackage(packageMetadata);
775
782
  this.showLicenseWatermark = shouldShowValidationUI(isValid);
783
+ intlService.localeId = this.localeId;
784
+ this.intlSubscription = this.intlService.changes.subscribe(() => {
785
+ this.loadTimelineData();
786
+ this.activeViewChange.emit(this.activeView);
787
+ });
776
788
  this.optionChangesSubscriptions.add(this.optionChangesService.viewChanges.subscribe(() => {
777
789
  this.loadTimelineData();
778
790
  }));
@@ -853,6 +865,9 @@ export class GanttComponent {
853
865
  if (this.localizationSubscription) {
854
866
  this.localizationSubscription.unsubscribe();
855
867
  }
868
+ if (this.intlSubscription) {
869
+ this.intlSubscription.unsubscribe();
870
+ }
856
871
  if (isPresent(this.keydownListenerDisposers)) {
857
872
  this.keydownListenerDisposers();
858
873
  this.keydownListenerDisposers = null;
@@ -1414,7 +1429,7 @@ export class GanttComponent {
1414
1429
  }
1415
1430
  }
1416
1431
  }
1417
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GanttComponent, deps: [{ token: i1.TimelineViewService }, { token: i2.ScrollSyncService }, { token: i0.Renderer2 }, { token: i3.MappingService }, { token: i4.OptionChangesService }, { token: i5.DependencyDomService }, { token: i6.EditService }, { token: i7.LocalizationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i8.NavigationService }, { token: i9.CurrentTimeMarkerService }], target: i0.ɵɵFactoryTarget.Component });
1432
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GanttComponent, deps: [{ token: i1.TimelineViewService }, { token: i2.ScrollSyncService }, { token: i0.Renderer2 }, { token: i3.MappingService }, { token: i4.OptionChangesService }, { token: i5.DependencyDomService }, { token: i6.EditService }, { token: i7.LocalizationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i8.NavigationService }, { token: i9.CurrentTimeMarkerService }, { token: i10.IntlService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Component });
1418
1433
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GanttComponent, isStandalone: true, selector: "kendo-gantt", inputs: { roleDescription: ["aria-roledescription", "roleDescription"], role: "role", taskModelFields: "taskModelFields", dependencyModelFields: "dependencyModelFields", activeView: "activeView", data: "data", isSelected: "isSelected", validateNewDependency: "validateNewDependency", selectable: "selectable", toolbarSettings: "toolbarSettings", toolbarAriaLabel: "toolbarAriaLabel", fetchChildren: "fetchChildren", hasChildren: "hasChildren", dependencies: "dependencies", sortable: "sortable", sort: "sort", filterable: "filterable", filter: "filter", workDayStart: "workDayStart", workDayEnd: "workDayEnd", workWeekStart: "workWeekStart", workWeekEnd: "workWeekEnd", navigable: "navigable", timelinePaneOptions: "timelinePaneOptions", treeListPaneOptions: "treeListPaneOptions", taskClass: "taskClass", rowClass: "rowClass", isExpanded: "isExpanded", columnsAutoSize: "columnsAutoSize", currentTimeMarker: "currentTimeMarker", columnMenu: "columnMenu", columnsReorderable: "columnsReorderable", columnsResizable: "columnsResizable", dragScrollSettings: "dragScrollSettings", taskTooltipOptions: "taskTooltipOptions" }, outputs: { selectionChange: "selectionChange", rowExpand: "rowExpand", taskDblClick: "taskDblClick", cellDblClick: "cellDblClick", cellClose: "cellClose", taskDelete: "taskDelete", rowCollapse: "rowCollapse", remove: "remove", cancel: "cancel", save: "save", taskAdd: "taskAdd", dependencyAdd: "dependencyAdd", sortChange: "sortChange", filterChange: "filterChange", dataStateChange: "dataStateChange", treeListPaneCollapsedChange: "treeListPaneCollapsedChange", timelinePaneCollapsedChange: "timelinePaneCollapsedChange", timelinePaneSizeChange: "timelinePaneSizeChange", activeViewChange: "activeViewChange", columnResize: "columnResize", columnReorder: "columnReorder", columnVisibilityChange: "columnVisibilityChange", columnLockedChange: "columnLockedChange", cellClick: "cellClick", taskClick: "taskClick" }, host: { properties: { "attr.aria-roledescription": "this.hostRoleDescriptionAttr", "attr.role": "this.hostRoleAttr", "class.k-gantt": "this.hostClasses", "attr.dir": "this.dir" } }, providers: [
1419
1434
  GanttLocalizationService,
1420
1435
  LocalizationService,
@@ -2243,7 +2258,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2243
2258
  standalone: true,
2244
2259
  imports: [LocalizedMessagesDirective, NgIf, ToolbarComponent, SplitterComponent, SplitterPaneComponent, TreeListComponent, EventsOutsideAngularDirective, CustomMessagesComponent, GanttTimelineComponent, EditDialogComponent, DialogComponent, DialogActionsComponent, TreeListSpacerComponent, ButtonComponent, WatermarkOverlayComponent]
2245
2260
  }]
2246
- }], ctorParameters: function () { return [{ type: i1.TimelineViewService }, { type: i2.ScrollSyncService }, { type: i0.Renderer2 }, { type: i3.MappingService }, { type: i4.OptionChangesService }, { type: i5.DependencyDomService }, { type: i6.EditService }, { type: i7.LocalizationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i8.NavigationService }, { type: i9.CurrentTimeMarkerService }]; }, propDecorators: { treeList: [{
2261
+ }], ctorParameters: function () { return [{ type: i1.TimelineViewService }, { type: i2.ScrollSyncService }, { type: i0.Renderer2 }, { type: i3.MappingService }, { type: i4.OptionChangesService }, { type: i5.DependencyDomService }, { type: i6.EditService }, { type: i7.LocalizationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i8.NavigationService }, { type: i9.CurrentTimeMarkerService }, { type: i10.IntlService }, { type: undefined, decorators: [{
2262
+ type: Inject,
2263
+ args: [LOCALE_ID]
2264
+ }] }]; }, propDecorators: { treeList: [{
2247
2265
  type: ViewChild,
2248
2266
  args: [TreeListComponent, { static: true }]
2249
2267
  }], timeline: [{
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1738962387,
14
- version: '18.1.0-develop.30',
13
+ publishDate: 1739264593,
14
+ version: '18.1.0-develop.31',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
16
16
  };
@@ -2,13 +2,9 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { __decorate, __metadata, __param } from "tslib";
6
- import { IntlService } from '@progress/kendo-angular-intl';
7
5
  import { orderBy } from '@progress/kendo-data-query';
8
- import { MappingService } from '../common/mapping.service';
9
6
  import { isWorkDay, isWorkHour, lastDayOfWeek } from '../utils';
10
7
  import { addDays, firstDayInWeek, getDate, firstDayOfMonth, lastDayOfMonth, addMonths, addWeeks, lastMonthOfYear, cloneDate } from '@progress/kendo-date-math';
11
- import { Inject, LOCALE_ID } from '@angular/core';
12
8
  const setTime = (origin, candidate) => {
13
9
  const date = cloneDate(origin);
14
10
  date.setHours(candidate.getHours(), candidate.getMinutes(), candidate.getSeconds(), candidate.getMilliseconds());
@@ -34,16 +30,14 @@ const END_OF_DAY_DATE = new Date(1980, 0, 1, 23, 59, 59, 999);
34
30
  /**
35
31
  * @hidden
36
32
  */
37
- export let TimelineBaseViewService = class TimelineBaseViewService {
33
+ export class TimelineBaseViewService {
38
34
  intlService;
39
35
  mapper;
40
- localeId;
41
36
  options;
42
37
  _viewStart = 0;
43
- constructor(intlService, mapper, localeId) {
38
+ constructor(intlService, mapper) {
44
39
  this.intlService = intlService;
45
40
  this.mapper = mapper;
46
- this.localeId = localeId;
47
41
  }
48
42
  get viewStart() {
49
43
  return this._viewStart;
@@ -92,7 +86,7 @@ export let TimelineBaseViewService = class TimelineBaseViewService {
92
86
  start: startDate,
93
87
  end: slotEnd,
94
88
  isWorking: isWorkSlot,
95
- text: this.intlService.formatDate(startDate, hoursFormat, this.localeId),
89
+ text: this.intlService.formatDate(startDate, hoursFormat, this.intlService.localeId),
96
90
  span: 1,
97
91
  slotWidth: this.options.slotWidth
98
92
  });
@@ -121,7 +115,7 @@ export let TimelineBaseViewService = class TimelineBaseViewService {
121
115
  start: startDay,
122
116
  end: slotEnd,
123
117
  isWorking: isWorking,
124
- text: this.intlService.formatDate(startDay, dayFormat, this.localeId),
118
+ text: this.intlService.formatDate(startDay, dayFormat, this.intlService.localeId),
125
119
  span: 1,
126
120
  slotWidth: this.options.slotWidth
127
121
  });
@@ -140,8 +134,8 @@ export let TimelineBaseViewService = class TimelineBaseViewService {
140
134
  const slotEnd = lastWeekDay > endDay ? endDay : lastWeekDay;
141
135
  const daySlots = this.getDays(startDay, slotEnd);
142
136
  const span = daySlots.length;
143
- const firstDay = this.intlService.formatDate(firstDayInWeek(getDate(startDay), weekStart), dayFormat, this.localeId);
144
- const lastDay = this.intlService.formatDate(slotEnd, dayFormat, this.localeId);
137
+ const firstDay = this.intlService.formatDate(firstDayInWeek(getDate(startDay), weekStart), dayFormat, this.intlService.localeId);
138
+ const lastDay = this.intlService.formatDate(slotEnd, dayFormat, this.intlService.localeId);
145
139
  if (span > 0) {
146
140
  slots.push({
147
141
  start: daySlots[0].start,
@@ -167,7 +161,7 @@ export let TimelineBaseViewService = class TimelineBaseViewService {
167
161
  const weekSlots = this.getWeeks(startDay, slotEnd);
168
162
  const span = isMainViewType ? daySlots.length : weekSlots.length;
169
163
  const monthStart = firstDayOfMonth(getDate(startDay));
170
- const shortText = this.intlService.formatDate(monthStart, monthFormat, this.localeId);
164
+ const shortText = this.intlService.formatDate(monthStart, monthFormat, this.intlService.localeId);
171
165
  if (span > 0) {
172
166
  slots.push({
173
167
  start: isMainViewType ? daySlots[0].start : weekSlots[0].start,
@@ -204,9 +198,4 @@ export let TimelineBaseViewService = class TimelineBaseViewService {
204
198
  }
205
199
  return slots;
206
200
  }
207
- };
208
- TimelineBaseViewService = __decorate([
209
- __param(2, Inject(LOCALE_ID)),
210
- __metadata("design:paramtypes", [IntlService,
211
- MappingService, String])
212
- ], TimelineBaseViewService);
201
+ }
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Inject, Injectable, LOCALE_ID } from '@angular/core';
5
+ import { Injectable } from '@angular/core';
6
6
  import { IntlService } from '@progress/kendo-angular-intl';
7
7
  import { TimelineBaseViewService } from './timeline-base-view.service';
8
8
  import { MappingService } from '../common/mapping.service';
@@ -14,10 +14,8 @@ import * as i2 from "../common/mapping.service";
14
14
  * @hidden
15
15
  */
16
16
  export class TimelineDayViewService extends TimelineBaseViewService {
17
- localeId;
18
- constructor(intlService, mapper, localeId) {
19
- super(intlService, mapper, localeId);
20
- this.localeId = localeId;
17
+ constructor(intlService, mapper) {
18
+ super(intlService, mapper);
21
19
  }
22
20
  /**
23
21
  * Gets a date an hour before the first task start with minutes, seconds, milliseconds cleared.
@@ -62,12 +60,9 @@ export class TimelineDayViewService extends TimelineBaseViewService {
62
60
  slots.push(daySlots, hourSlots);
63
61
  return slots;
64
62
  }
65
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineDayViewService, deps: [{ token: i1.IntlService }, { token: i2.MappingService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
63
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineDayViewService, deps: [{ token: i1.IntlService }, { token: i2.MappingService }], target: i0.ɵɵFactoryTarget.Injectable });
66
64
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineDayViewService });
67
65
  }
68
66
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineDayViewService, decorators: [{
69
67
  type: Injectable
70
- }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: i2.MappingService }, { type: undefined, decorators: [{
71
- type: Inject,
72
- args: [LOCALE_ID]
73
- }] }]; } });
68
+ }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: i2.MappingService }]; } });
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Inject, Injectable, LOCALE_ID } from '@angular/core';
5
+ import { Injectable } from '@angular/core';
6
6
  import { IntlService } from '@progress/kendo-angular-intl';
7
7
  import { addDays, addWeeks, firstDayInWeek, getDate } from '@progress/kendo-date-math';
8
8
  import { MappingService } from '../common/mapping.service';
@@ -14,10 +14,8 @@ import * as i2 from "../common/mapping.service";
14
14
  * @hidden
15
15
  */
16
16
  export class TimelineMonthViewService extends TimelineBaseViewService {
17
- localeId;
18
- constructor(intlService, mapper, localeId) {
19
- super(intlService, mapper, localeId);
20
- this.localeId = localeId;
17
+ constructor(intlService, mapper) {
18
+ super(intlService, mapper);
21
19
  }
22
20
  /**
23
21
  * Gets a week before the first week in which a task starts.
@@ -60,12 +58,9 @@ export class TimelineMonthViewService extends TimelineBaseViewService {
60
58
  slots.push(months, weeks);
61
59
  return slots;
62
60
  }
63
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewService, deps: [{ token: i1.IntlService }, { token: i2.MappingService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
61
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewService, deps: [{ token: i1.IntlService }, { token: i2.MappingService }], target: i0.ɵɵFactoryTarget.Injectable });
64
62
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewService });
65
63
  }
66
64
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewService, decorators: [{
67
65
  type: Injectable
68
- }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: i2.MappingService }, { type: undefined, decorators: [{
69
- type: Inject,
70
- args: [LOCALE_ID]
71
- }] }]; } });
66
+ }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: i2.MappingService }]; } });
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Inject, Injectable, LOCALE_ID } from '@angular/core';
5
+ import { Injectable } from '@angular/core';
6
6
  import { IntlService } from '@progress/kendo-angular-intl';
7
7
  import { addDays, getDate } from '@progress/kendo-date-math';
8
8
  import { MappingService } from '../common/mapping.service';
@@ -14,10 +14,8 @@ import * as i2 from "../common/mapping.service";
14
14
  * @hidden
15
15
  */
16
16
  export class TimelineWeekViewService extends TimelineBaseViewService {
17
- localeId;
18
- constructor(intlService, mapper, localeId) {
19
- super(intlService, mapper, localeId);
20
- this.localeId = localeId;
17
+ constructor(intlService, mapper) {
18
+ super(intlService, mapper);
21
19
  }
22
20
  /**
23
21
  * Gets a date a day before the first task start with hours, minutes, seconds, milliseconds cleared.
@@ -56,12 +54,9 @@ export class TimelineWeekViewService extends TimelineBaseViewService {
56
54
  slots.push(weeks, days);
57
55
  return slots;
58
56
  }
59
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewService, deps: [{ token: i1.IntlService }, { token: i2.MappingService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
57
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewService, deps: [{ token: i1.IntlService }, { token: i2.MappingService }], target: i0.ɵɵFactoryTarget.Injectable });
60
58
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewService });
61
59
  }
62
60
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewService, decorators: [{
63
61
  type: Injectable
64
- }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: i2.MappingService }, { type: undefined, decorators: [{
65
- type: Inject,
66
- args: [LOCALE_ID]
67
- }] }]; } });
62
+ }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: i2.MappingService }]; } });
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Inject, Injectable, LOCALE_ID } from "@angular/core";
5
+ import { Injectable } from "@angular/core";
6
6
  import { IntlService } from "@progress/kendo-angular-intl";
7
7
  import { addMonths, firstDayOfMonth, getDate, lastDayOfMonth } from "@progress/kendo-date-math";
8
8
  import { MappingService } from "../common/mapping.service";
@@ -14,10 +14,8 @@ import * as i2 from "../common/mapping.service";
14
14
  * @hidden
15
15
  */
16
16
  export class TimeLineYearViewService extends TimelineBaseViewService {
17
- localeId;
18
- constructor(intlService, mapper, localeId) {
19
- super(intlService, mapper, localeId);
20
- this.localeId = localeId;
17
+ constructor(intlService, mapper) {
18
+ super(intlService, mapper);
21
19
  }
22
20
  getTableWidth(tasks) {
23
21
  const timeSlots = this.getSlots(tasks)[1];
@@ -51,12 +49,9 @@ export class TimeLineYearViewService extends TimelineBaseViewService {
51
49
  slots.push(years, months);
52
50
  return slots;
53
51
  }
54
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeLineYearViewService, deps: [{ token: i1.IntlService }, { token: i2.MappingService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
52
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeLineYearViewService, deps: [{ token: i1.IntlService }, { token: i2.MappingService }], target: i0.ɵɵFactoryTarget.Injectable });
55
53
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeLineYearViewService });
56
54
  }
57
55
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeLineYearViewService, decorators: [{
58
56
  type: Injectable
59
- }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: i2.MappingService }, { type: undefined, decorators: [{
60
- type: Inject,
61
- args: [LOCALE_ID]
62
- }] }]; } });
57
+ }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: i2.MappingService }]; } });
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from '@angular/core';
6
- import { Injectable, Directive, Input, EventEmitter, Inject, LOCALE_ID, inject, isDevMode, HostBinding, ViewChild, forwardRef, Component, Output, Optional, ViewContainerRef, ViewEncapsulation, QueryList, SkipSelf, Host, ContentChildren, ContentChild, HostListener, NgModule } from '@angular/core';
6
+ import { Injectable, Directive, Input, EventEmitter, inject, isDevMode, HostBinding, ViewChild, forwardRef, Component, Output, Optional, ViewContainerRef, ViewEncapsulation, QueryList, SkipSelf, Host, ContentChildren, ContentChild, HostListener, LOCALE_ID, Inject, NgModule } from '@angular/core';
7
7
  import { ColumnBase, ColumnComponent, ColumnGroupComponent, SpanColumnComponent, TreeListSpacerComponent, DataBoundTreeComponent, ExpandableTreeComponent, TreeListComponent, CustomMessagesComponent as CustomMessagesComponent$2, FlatBindingDirective, HierarchyBindingDirective, ExpandableDirective, ColumnResizingService } from '@progress/kendo-angular-treelist';
8
8
  import { cloneDate, addWeeks, firstDayInWeek, addDays, lastDayOfMonth, getDate, firstDayOfMonth, addMonths, lastMonthOfYear, MS_PER_HOUR, MS_PER_DAY, isEqual } from '@progress/kendo-date-math';
9
9
  import { Subject, Subscription, fromEvent, forkJoin, EMPTY, isObservable, of } from 'rxjs';
@@ -12,8 +12,7 @@ import { Keys, isDocumentAvailable, closestInScope, matchesClasses, isPresent as
12
12
  import { map, distinctUntilChanged, take, switchMap, expand, reduce, filter } from 'rxjs/operators';
13
13
  import { getter, touchEnabled } from '@progress/kendo-common';
14
14
  import * as i1 from '@progress/kendo-angular-intl';
15
- import { IntlService, DatePipe, NumberPipe } from '@progress/kendo-angular-intl';
16
- import { __decorate, __param, __metadata } from 'tslib';
15
+ import { DatePipe, NumberPipe } from '@progress/kendo-angular-intl';
17
16
  import { orderBy } from '@progress/kendo-data-query';
18
17
  import { xIcon, plusIcon, minusIcon, saveIcon, cancelOutlineIcon, trashIcon } from '@progress/kendo-svg-icons';
19
18
  import { NgClass, NgIf, NgTemplateOutlet, NgFor } from '@angular/common';
@@ -45,8 +44,8 @@ const packageMetadata = {
45
44
  productName: 'Kendo UI for Angular',
46
45
  productCode: 'KENDOUIANGULAR',
47
46
  productCodes: ['KENDOUIANGULAR'],
48
- publishDate: 1738962387,
49
- version: '18.1.0-develop.30',
47
+ publishDate: 1739264593,
48
+ version: '18.1.0-develop.31',
50
49
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
51
50
  };
52
51
 
@@ -1430,16 +1429,14 @@ const END_OF_DAY_DATE = new Date(1980, 0, 1, 23, 59, 59, 999);
1430
1429
  /**
1431
1430
  * @hidden
1432
1431
  */
1433
- let TimelineBaseViewService = class TimelineBaseViewService {
1432
+ class TimelineBaseViewService {
1434
1433
  intlService;
1435
1434
  mapper;
1436
- localeId;
1437
1435
  options;
1438
1436
  _viewStart = 0;
1439
- constructor(intlService, mapper, localeId) {
1437
+ constructor(intlService, mapper) {
1440
1438
  this.intlService = intlService;
1441
1439
  this.mapper = mapper;
1442
- this.localeId = localeId;
1443
1440
  }
1444
1441
  get viewStart() {
1445
1442
  return this._viewStart;
@@ -1488,7 +1485,7 @@ let TimelineBaseViewService = class TimelineBaseViewService {
1488
1485
  start: startDate,
1489
1486
  end: slotEnd,
1490
1487
  isWorking: isWorkSlot,
1491
- text: this.intlService.formatDate(startDate, hoursFormat, this.localeId),
1488
+ text: this.intlService.formatDate(startDate, hoursFormat, this.intlService.localeId),
1492
1489
  span: 1,
1493
1490
  slotWidth: this.options.slotWidth
1494
1491
  });
@@ -1517,7 +1514,7 @@ let TimelineBaseViewService = class TimelineBaseViewService {
1517
1514
  start: startDay,
1518
1515
  end: slotEnd,
1519
1516
  isWorking: isWorking,
1520
- text: this.intlService.formatDate(startDay, dayFormat, this.localeId),
1517
+ text: this.intlService.formatDate(startDay, dayFormat, this.intlService.localeId),
1521
1518
  span: 1,
1522
1519
  slotWidth: this.options.slotWidth
1523
1520
  });
@@ -1536,8 +1533,8 @@ let TimelineBaseViewService = class TimelineBaseViewService {
1536
1533
  const slotEnd = lastWeekDay > endDay ? endDay : lastWeekDay;
1537
1534
  const daySlots = this.getDays(startDay, slotEnd);
1538
1535
  const span = daySlots.length;
1539
- const firstDay = this.intlService.formatDate(firstDayInWeek(getDate(startDay), weekStart), dayFormat, this.localeId);
1540
- const lastDay = this.intlService.formatDate(slotEnd, dayFormat, this.localeId);
1536
+ const firstDay = this.intlService.formatDate(firstDayInWeek(getDate(startDay), weekStart), dayFormat, this.intlService.localeId);
1537
+ const lastDay = this.intlService.formatDate(slotEnd, dayFormat, this.intlService.localeId);
1541
1538
  if (span > 0) {
1542
1539
  slots.push({
1543
1540
  start: daySlots[0].start,
@@ -1563,7 +1560,7 @@ let TimelineBaseViewService = class TimelineBaseViewService {
1563
1560
  const weekSlots = this.getWeeks(startDay, slotEnd);
1564
1561
  const span = isMainViewType ? daySlots.length : weekSlots.length;
1565
1562
  const monthStart = firstDayOfMonth(getDate(startDay));
1566
- const shortText = this.intlService.formatDate(monthStart, monthFormat, this.localeId);
1563
+ const shortText = this.intlService.formatDate(monthStart, monthFormat, this.intlService.localeId);
1567
1564
  if (span > 0) {
1568
1565
  slots.push({
1569
1566
  start: isMainViewType ? daySlots[0].start : weekSlots[0].start,
@@ -1600,21 +1597,14 @@ let TimelineBaseViewService = class TimelineBaseViewService {
1600
1597
  }
1601
1598
  return slots;
1602
1599
  }
1603
- };
1604
- TimelineBaseViewService = __decorate([
1605
- __param(2, Inject(LOCALE_ID)),
1606
- __metadata("design:paramtypes", [IntlService,
1607
- MappingService, String])
1608
- ], TimelineBaseViewService);
1600
+ }
1609
1601
 
1610
1602
  /**
1611
1603
  * @hidden
1612
1604
  */
1613
1605
  class TimelineDayViewService extends TimelineBaseViewService {
1614
- localeId;
1615
- constructor(intlService, mapper, localeId) {
1616
- super(intlService, mapper, localeId);
1617
- this.localeId = localeId;
1606
+ constructor(intlService, mapper) {
1607
+ super(intlService, mapper);
1618
1608
  }
1619
1609
  /**
1620
1610
  * Gets a date an hour before the first task start with minutes, seconds, milliseconds cleared.
@@ -1659,24 +1649,19 @@ class TimelineDayViewService extends TimelineBaseViewService {
1659
1649
  slots.push(daySlots, hourSlots);
1660
1650
  return slots;
1661
1651
  }
1662
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineDayViewService, deps: [{ token: i1.IntlService }, { token: MappingService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
1652
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineDayViewService, deps: [{ token: i1.IntlService }, { token: MappingService }], target: i0.ɵɵFactoryTarget.Injectable });
1663
1653
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineDayViewService });
1664
1654
  }
1665
1655
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineDayViewService, decorators: [{
1666
1656
  type: Injectable
1667
- }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: MappingService }, { type: undefined, decorators: [{
1668
- type: Inject,
1669
- args: [LOCALE_ID]
1670
- }] }]; } });
1657
+ }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: MappingService }]; } });
1671
1658
 
1672
1659
  /**
1673
1660
  * @hidden
1674
1661
  */
1675
1662
  class TimelineMonthViewService extends TimelineBaseViewService {
1676
- localeId;
1677
- constructor(intlService, mapper, localeId) {
1678
- super(intlService, mapper, localeId);
1679
- this.localeId = localeId;
1663
+ constructor(intlService, mapper) {
1664
+ super(intlService, mapper);
1680
1665
  }
1681
1666
  /**
1682
1667
  * Gets a week before the first week in which a task starts.
@@ -1719,24 +1704,19 @@ class TimelineMonthViewService extends TimelineBaseViewService {
1719
1704
  slots.push(months, weeks);
1720
1705
  return slots;
1721
1706
  }
1722
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewService, deps: [{ token: i1.IntlService }, { token: MappingService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
1707
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewService, deps: [{ token: i1.IntlService }, { token: MappingService }], target: i0.ɵɵFactoryTarget.Injectable });
1723
1708
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewService });
1724
1709
  }
1725
1710
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineMonthViewService, decorators: [{
1726
1711
  type: Injectable
1727
- }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: MappingService }, { type: undefined, decorators: [{
1728
- type: Inject,
1729
- args: [LOCALE_ID]
1730
- }] }]; } });
1712
+ }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: MappingService }]; } });
1731
1713
 
1732
1714
  /**
1733
1715
  * @hidden
1734
1716
  */
1735
1717
  class TimelineWeekViewService extends TimelineBaseViewService {
1736
- localeId;
1737
- constructor(intlService, mapper, localeId) {
1738
- super(intlService, mapper, localeId);
1739
- this.localeId = localeId;
1718
+ constructor(intlService, mapper) {
1719
+ super(intlService, mapper);
1740
1720
  }
1741
1721
  /**
1742
1722
  * Gets a date a day before the first task start with hours, minutes, seconds, milliseconds cleared.
@@ -1775,24 +1755,19 @@ class TimelineWeekViewService extends TimelineBaseViewService {
1775
1755
  slots.push(weeks, days);
1776
1756
  return slots;
1777
1757
  }
1778
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewService, deps: [{ token: i1.IntlService }, { token: MappingService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
1758
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewService, deps: [{ token: i1.IntlService }, { token: MappingService }], target: i0.ɵɵFactoryTarget.Injectable });
1779
1759
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewService });
1780
1760
  }
1781
1761
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimelineWeekViewService, decorators: [{
1782
1762
  type: Injectable
1783
- }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: MappingService }, { type: undefined, decorators: [{
1784
- type: Inject,
1785
- args: [LOCALE_ID]
1786
- }] }]; } });
1763
+ }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: MappingService }]; } });
1787
1764
 
1788
1765
  /**
1789
1766
  * @hidden
1790
1767
  */
1791
1768
  class TimeLineYearViewService extends TimelineBaseViewService {
1792
- localeId;
1793
- constructor(intlService, mapper, localeId) {
1794
- super(intlService, mapper, localeId);
1795
- this.localeId = localeId;
1769
+ constructor(intlService, mapper) {
1770
+ super(intlService, mapper);
1796
1771
  }
1797
1772
  getTableWidth(tasks) {
1798
1773
  const timeSlots = this.getSlots(tasks)[1];
@@ -1826,15 +1801,12 @@ class TimeLineYearViewService extends TimelineBaseViewService {
1826
1801
  slots.push(years, months);
1827
1802
  return slots;
1828
1803
  }
1829
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeLineYearViewService, deps: [{ token: i1.IntlService }, { token: MappingService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
1804
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeLineYearViewService, deps: [{ token: i1.IntlService }, { token: MappingService }], target: i0.ɵɵFactoryTarget.Injectable });
1830
1805
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeLineYearViewService });
1831
1806
  }
1832
1807
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeLineYearViewService, decorators: [{
1833
1808
  type: Injectable
1834
- }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: MappingService }, { type: undefined, decorators: [{
1835
- type: Inject,
1836
- args: [LOCALE_ID]
1837
- }] }]; } });
1809
+ }], ctorParameters: function () { return [{ type: i1.IntlService }, { type: MappingService }]; } });
1838
1810
 
1839
1811
  /**
1840
1812
  * @hidden
@@ -6056,6 +6028,8 @@ class GanttComponent {
6056
6028
  zone;
6057
6029
  navigation;
6058
6030
  currentTimeMarkerService;
6031
+ intlService;
6032
+ localeId;
6059
6033
  treeList;
6060
6034
  timeline;
6061
6035
  /**
@@ -6665,8 +6639,9 @@ class GanttComponent {
6665
6639
  optionChangesSubscriptions = new Subscription();
6666
6640
  editServiceSubscription = new Subscription();
6667
6641
  localizationSubscription;
6642
+ intlSubscription;
6668
6643
  keydownListenerDisposers;
6669
- constructor(timelineViewService, scrollSyncService, renderer, mapper, optionChangesService, dependencyDomService, editService, localizationService, hostElement, zone, navigation, currentTimeMarkerService) {
6644
+ constructor(timelineViewService, scrollSyncService, renderer, mapper, optionChangesService, dependencyDomService, editService, localizationService, hostElement, zone, navigation, currentTimeMarkerService, intlService, localeId) {
6670
6645
  this.timelineViewService = timelineViewService;
6671
6646
  this.scrollSyncService = scrollSyncService;
6672
6647
  this.renderer = renderer;
@@ -6679,8 +6654,15 @@ class GanttComponent {
6679
6654
  this.zone = zone;
6680
6655
  this.navigation = navigation;
6681
6656
  this.currentTimeMarkerService = currentTimeMarkerService;
6657
+ this.intlService = intlService;
6658
+ this.localeId = localeId;
6682
6659
  const isValid = validatePackage(packageMetadata);
6683
6660
  this.showLicenseWatermark = shouldShowValidationUI(isValid);
6661
+ intlService.localeId = this.localeId;
6662
+ this.intlSubscription = this.intlService.changes.subscribe(() => {
6663
+ this.loadTimelineData();
6664
+ this.activeViewChange.emit(this.activeView);
6665
+ });
6684
6666
  this.optionChangesSubscriptions.add(this.optionChangesService.viewChanges.subscribe(() => {
6685
6667
  this.loadTimelineData();
6686
6668
  }));
@@ -6761,6 +6743,9 @@ class GanttComponent {
6761
6743
  if (this.localizationSubscription) {
6762
6744
  this.localizationSubscription.unsubscribe();
6763
6745
  }
6746
+ if (this.intlSubscription) {
6747
+ this.intlSubscription.unsubscribe();
6748
+ }
6764
6749
  if (isPresent(this.keydownListenerDisposers)) {
6765
6750
  this.keydownListenerDisposers();
6766
6751
  this.keydownListenerDisposers = null;
@@ -7322,7 +7307,7 @@ class GanttComponent {
7322
7307
  }
7323
7308
  }
7324
7309
  }
7325
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GanttComponent, deps: [{ token: TimelineViewService }, { token: ScrollSyncService }, { token: i0.Renderer2 }, { token: MappingService }, { token: OptionChangesService }, { token: DependencyDomService }, { token: EditService }, { token: i1$1.LocalizationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: NavigationService }, { token: CurrentTimeMarkerService }], target: i0.ɵɵFactoryTarget.Component });
7310
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GanttComponent, deps: [{ token: TimelineViewService }, { token: ScrollSyncService }, { token: i0.Renderer2 }, { token: MappingService }, { token: OptionChangesService }, { token: DependencyDomService }, { token: EditService }, { token: i1$1.LocalizationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: NavigationService }, { token: CurrentTimeMarkerService }, { token: i1.IntlService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Component });
7326
7311
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GanttComponent, isStandalone: true, selector: "kendo-gantt", inputs: { roleDescription: ["aria-roledescription", "roleDescription"], role: "role", taskModelFields: "taskModelFields", dependencyModelFields: "dependencyModelFields", activeView: "activeView", data: "data", isSelected: "isSelected", validateNewDependency: "validateNewDependency", selectable: "selectable", toolbarSettings: "toolbarSettings", toolbarAriaLabel: "toolbarAriaLabel", fetchChildren: "fetchChildren", hasChildren: "hasChildren", dependencies: "dependencies", sortable: "sortable", sort: "sort", filterable: "filterable", filter: "filter", workDayStart: "workDayStart", workDayEnd: "workDayEnd", workWeekStart: "workWeekStart", workWeekEnd: "workWeekEnd", navigable: "navigable", timelinePaneOptions: "timelinePaneOptions", treeListPaneOptions: "treeListPaneOptions", taskClass: "taskClass", rowClass: "rowClass", isExpanded: "isExpanded", columnsAutoSize: "columnsAutoSize", currentTimeMarker: "currentTimeMarker", columnMenu: "columnMenu", columnsReorderable: "columnsReorderable", columnsResizable: "columnsResizable", dragScrollSettings: "dragScrollSettings", taskTooltipOptions: "taskTooltipOptions" }, outputs: { selectionChange: "selectionChange", rowExpand: "rowExpand", taskDblClick: "taskDblClick", cellDblClick: "cellDblClick", cellClose: "cellClose", taskDelete: "taskDelete", rowCollapse: "rowCollapse", remove: "remove", cancel: "cancel", save: "save", taskAdd: "taskAdd", dependencyAdd: "dependencyAdd", sortChange: "sortChange", filterChange: "filterChange", dataStateChange: "dataStateChange", treeListPaneCollapsedChange: "treeListPaneCollapsedChange", timelinePaneCollapsedChange: "timelinePaneCollapsedChange", timelinePaneSizeChange: "timelinePaneSizeChange", activeViewChange: "activeViewChange", columnResize: "columnResize", columnReorder: "columnReorder", columnVisibilityChange: "columnVisibilityChange", columnLockedChange: "columnLockedChange", cellClick: "cellClick", taskClick: "taskClick" }, host: { properties: { "attr.aria-roledescription": "this.hostRoleDescriptionAttr", "attr.role": "this.hostRoleAttr", "class.k-gantt": "this.hostClasses", "attr.dir": "this.dir" } }, providers: [
7327
7312
  GanttLocalizationService,
7328
7313
  LocalizationService,
@@ -8151,7 +8136,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
8151
8136
  standalone: true,
8152
8137
  imports: [LocalizedMessagesDirective, NgIf, ToolbarComponent, SplitterComponent, SplitterPaneComponent, TreeListComponent, EventsOutsideAngularDirective, CustomMessagesComponent$2, GanttTimelineComponent, EditDialogComponent, DialogComponent, DialogActionsComponent, TreeListSpacerComponent, ButtonComponent, WatermarkOverlayComponent]
8153
8138
  }]
8154
- }], ctorParameters: function () { return [{ type: TimelineViewService }, { type: ScrollSyncService }, { type: i0.Renderer2 }, { type: MappingService }, { type: OptionChangesService }, { type: DependencyDomService }, { type: EditService }, { type: i1$1.LocalizationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: NavigationService }, { type: CurrentTimeMarkerService }]; }, propDecorators: { treeList: [{
8139
+ }], ctorParameters: function () { return [{ type: TimelineViewService }, { type: ScrollSyncService }, { type: i0.Renderer2 }, { type: MappingService }, { type: OptionChangesService }, { type: DependencyDomService }, { type: EditService }, { type: i1$1.LocalizationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: NavigationService }, { type: CurrentTimeMarkerService }, { type: i1.IntlService }, { type: undefined, decorators: [{
8140
+ type: Inject,
8141
+ args: [LOCALE_ID]
8142
+ }] }]; }, propDecorators: { treeList: [{
8155
8143
  type: ViewChild,
8156
8144
  args: [TreeListComponent, { static: true }]
8157
8145
  }], timeline: [{
@@ -41,6 +41,7 @@ import { CurrentTimeMarkerService } from './timeline/current-time-marker.service
41
41
  import { CurrentTimeSettings } from './models/current-time-settings.interface';
42
42
  import { GanttTaskTooltipTemplateDirective } from './template-directives/task-tooltip-template.directive';
43
43
  import { TaskTooltipOptions } from './models/tooltip-options.interface';
44
+ import { IntlService } from '@progress/kendo-angular-intl';
44
45
  import * as i0 from "@angular/core";
45
46
  /**
46
47
  * Represents the Kendo UI Gantt component for Angular.
@@ -126,6 +127,8 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
126
127
  private zone;
127
128
  private navigation;
128
129
  private currentTimeMarkerService;
130
+ private intlService;
131
+ localeId: string;
129
132
  treeList: TreeListComponent;
130
133
  timeline: GanttTimelineComponent;
131
134
  /**
@@ -605,8 +608,9 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
605
608
  private optionChangesSubscriptions;
606
609
  private editServiceSubscription;
607
610
  private localizationSubscription;
611
+ private intlSubscription;
608
612
  private keydownListenerDisposers;
609
- constructor(timelineViewService: TimelineViewService, scrollSyncService: ScrollSyncService, renderer: Renderer2, mapper: MappingService, optionChangesService: OptionChangesService, dependencyDomService: DependencyDomService, editService: EditService, localizationService: LocalizationService, hostElement: ElementRef<HTMLElement>, zone: NgZone, navigation: NavigationService, currentTimeMarkerService: CurrentTimeMarkerService);
613
+ constructor(timelineViewService: TimelineViewService, scrollSyncService: ScrollSyncService, renderer: Renderer2, mapper: MappingService, optionChangesService: OptionChangesService, dependencyDomService: DependencyDomService, editService: EditService, localizationService: LocalizationService, hostElement: ElementRef<HTMLElement>, zone: NgZone, navigation: NavigationService, currentTimeMarkerService: CurrentTimeMarkerService, intlService: IntlService, localeId: string);
610
614
  ngOnChanges(changes: SimpleChanges): void;
611
615
  ngAfterViewInit(): void;
612
616
  ngAfterContentInit(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-gantt",
3
- "version": "18.1.0-develop.30",
3
+ "version": "18.1.0-develop.31",
4
4
  "description": "Kendo UI Angular Gantt",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -19,7 +19,7 @@
19
19
  "package": {
20
20
  "productName": "Kendo UI for Angular",
21
21
  "productCode": "KENDOUIANGULAR",
22
- "publishDate": 1738962387,
22
+ "publishDate": 1739264593,
23
23
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"
24
24
  }
25
25
  },
@@ -31,25 +31,25 @@
31
31
  "@angular/platform-browser": "16 - 19",
32
32
  "@progress/kendo-data-query": "^1.5.5",
33
33
  "@progress/kendo-licensing": "^1.4.0",
34
- "@progress/kendo-angular-buttons": "18.1.0-develop.30",
35
- "@progress/kendo-angular-common": "18.1.0-develop.30",
36
- "@progress/kendo-angular-dialog": "18.1.0-develop.30",
37
- "@progress/kendo-angular-dropdowns": "18.1.0-develop.30",
38
- "@progress/kendo-angular-grid": "18.1.0-develop.30",
39
- "@progress/kendo-angular-icons": "18.1.0-develop.30",
40
- "@progress/kendo-angular-inputs": "18.1.0-develop.30",
41
- "@progress/kendo-angular-intl": "18.1.0-develop.30",
42
- "@progress/kendo-angular-l10n": "18.1.0-develop.30",
43
- "@progress/kendo-angular-label": "18.1.0-develop.30",
44
- "@progress/kendo-angular-layout": "18.1.0-develop.30",
45
- "@progress/kendo-angular-popup": "18.1.0-develop.30",
46
- "@progress/kendo-angular-tooltip": "18.1.0-develop.30",
47
- "@progress/kendo-angular-treelist": "18.1.0-develop.30",
34
+ "@progress/kendo-angular-buttons": "18.1.0-develop.31",
35
+ "@progress/kendo-angular-common": "18.1.0-develop.31",
36
+ "@progress/kendo-angular-dialog": "18.1.0-develop.31",
37
+ "@progress/kendo-angular-dropdowns": "18.1.0-develop.31",
38
+ "@progress/kendo-angular-grid": "18.1.0-develop.31",
39
+ "@progress/kendo-angular-icons": "18.1.0-develop.31",
40
+ "@progress/kendo-angular-inputs": "18.1.0-develop.31",
41
+ "@progress/kendo-angular-intl": "18.1.0-develop.31",
42
+ "@progress/kendo-angular-l10n": "18.1.0-develop.31",
43
+ "@progress/kendo-angular-label": "18.1.0-develop.31",
44
+ "@progress/kendo-angular-layout": "18.1.0-develop.31",
45
+ "@progress/kendo-angular-popup": "18.1.0-develop.31",
46
+ "@progress/kendo-angular-tooltip": "18.1.0-develop.31",
47
+ "@progress/kendo-angular-treelist": "18.1.0-develop.31",
48
48
  "rxjs": "^6.5.3 || ^7.0.0"
49
49
  },
50
50
  "dependencies": {
51
51
  "tslib": "^2.3.1",
52
- "@progress/kendo-angular-schematics": "18.1.0-develop.30",
52
+ "@progress/kendo-angular-schematics": "18.1.0-develop.31",
53
53
  "@progress/kendo-common": "^1.0.1",
54
54
  "@progress/kendo-date-math": "^1.5.2",
55
55
  "@progress/kendo-draggable": "^3.0.0"
@@ -7,16 +7,16 @@ function default_1(options) {
7
7
  // See https://github.com/telerik/kendo-schematics/issues/28
8
8
  peerDependencies: {
9
9
  // peer deps of the treelist
10
- '@progress/kendo-angular-dateinputs': '18.1.0-develop.30',
11
- '@progress/kendo-angular-excel-export': '18.1.0-develop.30',
12
- '@progress/kendo-angular-pdf-export': '18.1.0-develop.30',
13
- '@progress/kendo-angular-utils': '18.1.0-develop.30',
10
+ '@progress/kendo-angular-dateinputs': '18.1.0-develop.31',
11
+ '@progress/kendo-angular-excel-export': '18.1.0-develop.31',
12
+ '@progress/kendo-angular-pdf-export': '18.1.0-develop.31',
13
+ '@progress/kendo-angular-utils': '18.1.0-develop.31',
14
14
  '@progress/kendo-drawing': '^1.0.0',
15
15
  // peer deps of the dropdowns
16
- '@progress/kendo-angular-treeview': '18.1.0-develop.30',
17
- '@progress/kendo-angular-navigation': '18.1.0-develop.30',
16
+ '@progress/kendo-angular-treeview': '18.1.0-develop.31',
17
+ '@progress/kendo-angular-navigation': '18.1.0-develop.31',
18
18
  // peer dep of the layout
19
- '@progress/kendo-angular-progressbar': '18.1.0-develop.30',
19
+ '@progress/kendo-angular-progressbar': '18.1.0-develop.31',
20
20
  // peer dep of the icons
21
21
  '@progress/kendo-svg-icons': '^4.0.0'
22
22
  } });
@@ -29,10 +29,9 @@ export declare const YEAR_FORMAT = "yyyy";
29
29
  export declare abstract class TimelineBaseViewService {
30
30
  protected intlService: IntlService;
31
31
  protected mapper: MappingService;
32
- localeId: string;
33
32
  options: TimelineOptions;
34
33
  private _viewStart;
35
- constructor(intlService: IntlService, mapper: MappingService, localeId: string);
34
+ constructor(intlService: IntlService, mapper: MappingService);
36
35
  get viewStart(): number;
37
36
  /**
38
37
  *
@@ -11,8 +11,7 @@ import * as i0 from "@angular/core";
11
11
  * @hidden
12
12
  */
13
13
  export declare class TimelineDayViewService extends TimelineBaseViewService {
14
- localeId: string;
15
- constructor(intlService: IntlService, mapper: MappingService, localeId: string);
14
+ constructor(intlService: IntlService, mapper: MappingService);
16
15
  /**
17
16
  * Gets a date an hour before the first task start with minutes, seconds, milliseconds cleared.
18
17
  */
@@ -11,8 +11,7 @@ import * as i0 from "@angular/core";
11
11
  * @hidden
12
12
  */
13
13
  export declare class TimelineMonthViewService extends TimelineBaseViewService {
14
- localeId: string;
15
- constructor(intlService: IntlService, mapper: MappingService, localeId: string);
14
+ constructor(intlService: IntlService, mapper: MappingService);
16
15
  /**
17
16
  * Gets a week before the first week in which a task starts.
18
17
  */
@@ -11,8 +11,7 @@ import * as i0 from "@angular/core";
11
11
  * @hidden
12
12
  */
13
13
  export declare class TimelineWeekViewService extends TimelineBaseViewService {
14
- localeId: string;
15
- constructor(intlService: IntlService, mapper: MappingService, localeId: string);
14
+ constructor(intlService: IntlService, mapper: MappingService);
16
15
  /**
17
16
  * Gets a date a day before the first task start with hours, minutes, seconds, milliseconds cleared.
18
17
  */
@@ -11,8 +11,7 @@ import * as i0 from "@angular/core";
11
11
  * @hidden
12
12
  */
13
13
  export declare class TimeLineYearViewService extends TimelineBaseViewService {
14
- localeId: string;
15
- constructor(intlService: IntlService, mapper: MappingService, localeId: string);
14
+ constructor(intlService: IntlService, mapper: MappingService);
16
15
  getTableWidth(tasks: any[]): number;
17
16
  getStartOffset(rangeStart: Date): Date;
18
17
  /**