@progress/kendo-angular-gantt 0.2.1-dev.202112091019 → 0.2.1-dev.202112091741

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 © 2021 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 { GanttComponent } from '../../main';
5
+ import { GanttComponent } from '../../gantt.component';
6
6
  import { PreventableEvent } from './preventable-event';
7
7
  import { TaskEditItem } from './task-edit-event.interface';
8
8
  /**
@@ -2,8 +2,8 @@
2
2
  * Copyright © 2021 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 { FormGroup } from "@angular/forms";
6
- import { GanttComponent } from "../../gantt.component";
5
+ import { FormGroup } from '@angular/forms';
6
+ import { GanttComponent } from '../../gantt.component';
7
7
  /**
8
8
  * The event data for the task editing events.
9
9
  */
@@ -29,7 +29,10 @@ export { TaskResizeEvent } from './events/task-resize-event.interface';
29
29
  export { TaskResizeStartEvent } from './events/task-resize-start-event.interface';
30
30
  export { DataStateChangeEvent } from './events/data-state-change-event.interface';
31
31
  export { CellClickEvent } from './events/cell-click-event.interface';
32
+ export { CellCloseEvent } from './events/cell-close-event.interface';
32
33
  export { TaskClickEvent } from './events/task-click-event.interface';
34
+ export { TaskEditEvent } from './events/task-edit-event.interface';
35
+ export { TaskEditItem } from './events/task-edit-event.interface';
33
36
  export { ColumnLockedChangeEvent } from './events/column-locked-change-event.interface';
34
37
  export { ColumnReorderEvent } from './events/column-reorder-event.interface';
35
38
  export { ColumnResizeEvent } from './events/column-resize-event.interface';
@@ -2,3 +2,4 @@
2
2
  * Copyright © 2021 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
+ export { CellCloseEvent } from './events/cell-close-event.interface';
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-gantt',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1639044748,
12
+ publishDate: 1639071314,
13
13
  version: '',
14
14
  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'
15
15
  };
@@ -7,6 +7,18 @@ import { MappingService } from '../common/mapping.service';
7
7
  import { TimelineOptions } from '../models/timeline-options.interface';
8
8
  import { DateRange } from '../models/date-range.interface';
9
9
  import { Slot } from '../models/slot.interface';
10
+ /**
11
+ * @hidden
12
+ */
13
+ export declare const DAY_FORMAT = "E d/MM";
14
+ /**
15
+ * @hidden
16
+ */
17
+ export declare const HOUR_FORMAT = "HH:mm aa";
18
+ /**
19
+ * @hidden
20
+ */
21
+ export declare const MONTH_FORMAT = "MMM";
10
22
  /**
11
23
  * @hidden
12
24
  */
@@ -5,9 +5,18 @@
5
5
  import { orderBy } from '@progress/kendo-data-query';
6
6
  import { isWorkDay, isWorkHour, lastDayOfWeek } from '../utils';
7
7
  import { addDays, firstDayInWeek, getDate, firstDayOfMonth, lastDayOfMonth, addMonths, addWeeks } from '@progress/kendo-date-math';
8
- const DAY_FORMAT = 'E d/MM';
9
- const HOUR_FORMAT = 'HH:mm aa';
10
- const MONTH_FORMAT = 'MMM';
8
+ /**
9
+ * @hidden
10
+ */
11
+ export const DAY_FORMAT = 'E d/MM';
12
+ /**
13
+ * @hidden
14
+ */
15
+ export const HOUR_FORMAT = 'HH:mm aa';
16
+ /**
17
+ * @hidden
18
+ */
19
+ export const MONTH_FORMAT = 'MMM';
11
20
  /**
12
21
  * @hidden
13
22
  */
@@ -30,7 +30,7 @@ const packageMetadata = {
30
30
  name: '@progress/kendo-angular-gantt',
31
31
  productName: 'Kendo UI for Angular',
32
32
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
33
- publishDate: 1639044748,
33
+ publishDate: 1639071314,
34
34
  version: '',
35
35
  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'
36
36
  };
@@ -766,8 +766,17 @@ const isClearButton = (contender, gantt) => {
766
766
  return isPresent(clearButtonContainer);
767
767
  };
768
768
 
769
+ /**
770
+ * @hidden
771
+ */
769
772
  const DAY_FORMAT = 'E d/MM';
773
+ /**
774
+ * @hidden
775
+ */
770
776
  const HOUR_FORMAT = 'HH:mm aa';
777
+ /**
778
+ * @hidden
779
+ */
771
780
  const MONTH_FORMAT = 'MMM';
772
781
  /**
773
782
  * @hidden
@@ -1732,7 +1741,7 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
1732
1741
  /**
1733
1742
  * Provides a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection))
1734
1743
  *
1735
- * > The [`selectable`]({% slug gantt_api_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
1744
+ * > The [`selectable`]({% slug api_gantt_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
1736
1745
  */
1737
1746
  this.isSelected = isSelected;
1738
1747
  /**
@@ -1746,7 +1755,7 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
1746
1755
  /**
1747
1756
  * Enables or disables the Gantt selection mechanism ([see example]({% slug selection_gantt %}#toc-custom-selection)).
1748
1757
  *
1749
- * > When set to `true`, the [`isSelected`]({% slug gantt_api_ganttcomponent %}#toc-isselected) callback has to be provided.
1758
+ * > When set to `true`, the [`isSelected`]({% slug api_gantt_ganttcomponent %}#toc-isselected) callback has to be provided.
1750
1759
  * > When applied, the [`SelectableDirective`]({% slug api_gantt_selectabledirective %}) sets `selectable` to `true` internally.
1751
1760
  */
1752
1761
  this.selectable = false;
@@ -1968,7 +1977,6 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
1968
1977
  this.showConfirmationDialog = this.showEditingDialog = false;
1969
1978
  this.editService.dataItem = this.editService.formGroup = null;
1970
1979
  this.updateView();
1971
- this.dependencyDomService.notifyChanges();
1972
1980
  }));
1973
1981
  this.localizationSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
1974
1982
  this.rtl = rtl;
@@ -2227,12 +2235,17 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
2227
2235
  }
2228
2236
  }
2229
2237
  /**
2230
- * Updates the data of the Gantt and forces row-related callbacks to be called anew.
2238
+ * Forces the TreeList to evaluate if some data items have changed and re-renders the rows information, if needed.
2239
+ * Recalculates and re-renders the Timeline period, if needed.
2240
+ * Redraws changed dependencies, if needed.
2241
+ * Executes all row-related callbacks anew.
2231
2242
  */
2232
2243
  updateView() {
2233
2244
  if (isPresent(this.treeList)) {
2234
2245
  this.treeList.updateView();
2235
2246
  }
2247
+ this.loadTimelineData();
2248
+ this.dependencyDomService.notifyChanges();
2236
2249
  }
2237
2250
  /**
2238
2251
  * Opens the task editing dialog.
@@ -2476,7 +2489,7 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
2476
2489
  items: [dataItem],
2477
2490
  sender: this
2478
2491
  });
2479
- this.updateView();
2492
+ this.treeList.updateView();
2480
2493
  }
2481
2494
  updateTreeListGroupClass(columns = this.columns) {
2482
2495
  if (!isPresent(this.treeList)) {
@@ -4797,8 +4810,45 @@ GanttModule = __decorate([
4797
4810
  })
4798
4811
  ], GanttModule);
4799
4812
 
4813
+ /**
4814
+ * @hidden
4815
+ */
4816
+ class PreventableEvent {
4817
+ constructor() {
4818
+ this.prevented = false;
4819
+ }
4820
+ /**
4821
+ * Prevents the default action for a specified event.
4822
+ * In this way, the source component suppresses
4823
+ * the built-in behavior that follows the event.
4824
+ */
4825
+ preventDefault() {
4826
+ this.prevented = true;
4827
+ }
4828
+ /**
4829
+ * Returns `true` if the event was prevented
4830
+ * by any of its subscribers.
4831
+ *
4832
+ * @returns `true` if the default action was prevented.
4833
+ * Otherwise, returns `false`.
4834
+ */
4835
+ isDefaultPrevented() {
4836
+ return this.prevented;
4837
+ }
4838
+ }
4839
+
4840
+ /**
4841
+ * Called every time a user leaves an edited cell.
4842
+ */
4843
+ class CellCloseEvent extends PreventableEvent {
4844
+ constructor(options) {
4845
+ super();
4846
+ Object.assign(this, options);
4847
+ }
4848
+ }
4849
+
4800
4850
  /**
4801
4851
  * Generated bundle index. Do not edit.
4802
4852
  */
4803
4853
 
4804
- export { MappingService, OptionChangesService, DependencyDomService, GanttDependencyDirective, EditDialogComponent, EditService, CustomMessagesComponent, LocalizedMessagesDirective, Messages, GanttTreeListMessagesDirective, GanttHeaderTableBodyComponent, GanttMilestoneTaskComponent, GanttSummaryTaskComponent, GanttTaskBase, GanttTaskComponent, GanttTasksTableBodyComponent, ScrollSyncService, GanttTimelineComponent, TimelineBaseViewService, TimelineDayViewComponent, TimelineDayViewService, TimelineMonthViewComponent, TimelineMonthViewService, TimelineViewService, TimelineWeekViewComponent, TimelineWeekViewService, ViewBase, ToolbarComponent, ViewSelectorComponent, GanttComponent, GanttModule, GanttHierarchyBindingDirective, GanttFlatBindingDirective, GanttExpandableDirective, GanttTaskTemplateDirective, GanttTaskContentTemplateDirective, GanttSummaryTaskTemplateDirective, ToolbarTemplateDirective, SelectableDirective, GanttColumnBase, GanttColumnComponent, GanttColumnGroupComponent, GanttSpanColumnComponent, CellTemplateDirective, HeaderTemplateDirective, FooterTemplateDirective, ColumnMenuTemplateDirective, FilterCellTemplateDirective, FilterMenuTemplateDirective, EditTemplateDirective };
4854
+ export { MappingService, OptionChangesService, DependencyDomService, GanttDependencyDirective, EditDialogComponent, EditService, CustomMessagesComponent, LocalizedMessagesDirective, Messages, GanttTreeListMessagesDirective, PreventableEvent, GanttHeaderTableBodyComponent, GanttMilestoneTaskComponent, GanttSummaryTaskComponent, GanttTaskBase, GanttTaskComponent, GanttTasksTableBodyComponent, ScrollSyncService, GanttTimelineComponent, TimelineBaseViewService, TimelineDayViewComponent, TimelineDayViewService, TimelineMonthViewComponent, TimelineMonthViewService, TimelineViewService, TimelineWeekViewComponent, TimelineWeekViewService, ViewBase, ToolbarComponent, ViewSelectorComponent, GanttComponent, GanttModule, GanttHierarchyBindingDirective, GanttFlatBindingDirective, GanttExpandableDirective, GanttTaskTemplateDirective, GanttTaskContentTemplateDirective, GanttSummaryTaskTemplateDirective, ToolbarTemplateDirective, SelectableDirective, CellCloseEvent, GanttColumnBase, GanttColumnComponent, GanttColumnGroupComponent, GanttSpanColumnComponent, CellTemplateDirective, HeaderTemplateDirective, FooterTemplateDirective, ColumnMenuTemplateDirective, FilterCellTemplateDirective, FilterMenuTemplateDirective, EditTemplateDirective };
@@ -30,7 +30,7 @@ var packageMetadata = {
30
30
  name: '@progress/kendo-angular-gantt',
31
31
  productName: 'Kendo UI for Angular',
32
32
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
33
- publishDate: 1639044748,
33
+ publishDate: 1639071314,
34
34
  version: '',
35
35
  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'
36
36
  };
@@ -789,8 +789,17 @@ var isClearButton = function (contender, gantt) {
789
789
  return isPresent(clearButtonContainer);
790
790
  };
791
791
 
792
+ /**
793
+ * @hidden
794
+ */
792
795
  var DAY_FORMAT = 'E d/MM';
796
+ /**
797
+ * @hidden
798
+ */
793
799
  var HOUR_FORMAT = 'HH:mm aa';
800
+ /**
801
+ * @hidden
802
+ */
794
803
  var MONTH_FORMAT = 'MMM';
795
804
  /**
796
805
  * @hidden
@@ -1797,7 +1806,7 @@ var GanttComponent = /** @class */ (function () {
1797
1806
  /**
1798
1807
  * Provides a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection))
1799
1808
  *
1800
- * > The [`selectable`]({% slug gantt_api_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
1809
+ * > The [`selectable`]({% slug api_gantt_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
1801
1810
  */
1802
1811
  this.isSelected = isSelected;
1803
1812
  /**
@@ -1811,7 +1820,7 @@ var GanttComponent = /** @class */ (function () {
1811
1820
  /**
1812
1821
  * Enables or disables the Gantt selection mechanism ([see example]({% slug selection_gantt %}#toc-custom-selection)).
1813
1822
  *
1814
- * > When set to `true`, the [`isSelected`]({% slug gantt_api_ganttcomponent %}#toc-isselected) callback has to be provided.
1823
+ * > When set to `true`, the [`isSelected`]({% slug api_gantt_ganttcomponent %}#toc-isselected) callback has to be provided.
1815
1824
  * > When applied, the [`SelectableDirective`]({% slug api_gantt_selectabledirective %}) sets `selectable` to `true` internally.
1816
1825
  */
1817
1826
  this.selectable = false;
@@ -2033,7 +2042,6 @@ var GanttComponent = /** @class */ (function () {
2033
2042
  _this.showConfirmationDialog = _this.showEditingDialog = false;
2034
2043
  _this.editService.dataItem = _this.editService.formGroup = null;
2035
2044
  _this.updateView();
2036
- _this.dependencyDomService.notifyChanges();
2037
2045
  }));
2038
2046
  this.localizationSubscription = this.localizationService.changes.subscribe(function (_a) {
2039
2047
  var rtl = _a.rtl;
@@ -2373,12 +2381,17 @@ var GanttComponent = /** @class */ (function () {
2373
2381
  }
2374
2382
  };
2375
2383
  /**
2376
- * Updates the data of the Gantt and forces row-related callbacks to be called anew.
2384
+ * Forces the TreeList to evaluate if some data items have changed and re-renders the rows information, if needed.
2385
+ * Recalculates and re-renders the Timeline period, if needed.
2386
+ * Redraws changed dependencies, if needed.
2387
+ * Executes all row-related callbacks anew.
2377
2388
  */
2378
2389
  GanttComponent.prototype.updateView = function () {
2379
2390
  if (isPresent(this.treeList)) {
2380
2391
  this.treeList.updateView();
2381
2392
  }
2393
+ this.loadTimelineData();
2394
+ this.dependencyDomService.notifyChanges();
2382
2395
  };
2383
2396
  /**
2384
2397
  * Opens the task editing dialog.
@@ -2626,7 +2639,7 @@ var GanttComponent = /** @class */ (function () {
2626
2639
  items: [dataItem],
2627
2640
  sender: this
2628
2641
  });
2629
- this.updateView();
2642
+ this.treeList.updateView();
2630
2643
  };
2631
2644
  GanttComponent.prototype.updateTreeListGroupClass = function (columns) {
2632
2645
  if (columns === void 0) { columns = this.columns; }
@@ -4511,8 +4524,49 @@ var GanttModule = /** @class */ (function () {
4511
4524
  return GanttModule;
4512
4525
  }());
4513
4526
 
4527
+ /**
4528
+ * @hidden
4529
+ */
4530
+ var PreventableEvent = /** @class */ (function () {
4531
+ function PreventableEvent() {
4532
+ this.prevented = false;
4533
+ }
4534
+ /**
4535
+ * Prevents the default action for a specified event.
4536
+ * In this way, the source component suppresses
4537
+ * the built-in behavior that follows the event.
4538
+ */
4539
+ PreventableEvent.prototype.preventDefault = function () {
4540
+ this.prevented = true;
4541
+ };
4542
+ /**
4543
+ * Returns `true` if the event was prevented
4544
+ * by any of its subscribers.
4545
+ *
4546
+ * @returns `true` if the default action was prevented.
4547
+ * Otherwise, returns `false`.
4548
+ */
4549
+ PreventableEvent.prototype.isDefaultPrevented = function () {
4550
+ return this.prevented;
4551
+ };
4552
+ return PreventableEvent;
4553
+ }());
4554
+
4555
+ /**
4556
+ * Called every time a user leaves an edited cell.
4557
+ */
4558
+ var CellCloseEvent = /** @class */ (function (_super) {
4559
+ __extends(CellCloseEvent, _super);
4560
+ function CellCloseEvent(options) {
4561
+ var _this = _super.call(this) || this;
4562
+ Object.assign(_this, options);
4563
+ return _this;
4564
+ }
4565
+ return CellCloseEvent;
4566
+ }(PreventableEvent));
4567
+
4514
4568
  /**
4515
4569
  * Generated bundle index. Do not edit.
4516
4570
  */
4517
4571
 
4518
- export { MappingService, OptionChangesService, DependencyDomService, GanttDependencyDirective, EditDialogComponent, EditService, CustomMessagesComponent, LocalizedMessagesDirective, Messages, GanttTreeListMessagesDirective, GanttHeaderTableBodyComponent, GanttMilestoneTaskComponent, GanttSummaryTaskComponent, GanttTaskBase, GanttTaskComponent, GanttTasksTableBodyComponent, ScrollSyncService, GanttTimelineComponent, TimelineBaseViewService, TimelineDayViewComponent, TimelineDayViewService, TimelineMonthViewComponent, TimelineMonthViewService, TimelineViewService, TimelineWeekViewComponent, TimelineWeekViewService, ViewBase, ToolbarComponent, ViewSelectorComponent, GanttComponent, GanttModule, GanttHierarchyBindingDirective, GanttFlatBindingDirective, GanttExpandableDirective, GanttTaskTemplateDirective, GanttTaskContentTemplateDirective, GanttSummaryTaskTemplateDirective, ToolbarTemplateDirective, SelectableDirective, GanttColumnBase, GanttColumnComponent, GanttColumnGroupComponent, GanttSpanColumnComponent, CellTemplateDirective, HeaderTemplateDirective, FooterTemplateDirective, ColumnMenuTemplateDirective, FilterCellTemplateDirective, FilterMenuTemplateDirective, EditTemplateDirective };
4572
+ export { MappingService, OptionChangesService, DependencyDomService, GanttDependencyDirective, EditDialogComponent, EditService, CustomMessagesComponent, LocalizedMessagesDirective, Messages, GanttTreeListMessagesDirective, PreventableEvent, GanttHeaderTableBodyComponent, GanttMilestoneTaskComponent, GanttSummaryTaskComponent, GanttTaskBase, GanttTaskComponent, GanttTasksTableBodyComponent, ScrollSyncService, GanttTimelineComponent, TimelineBaseViewService, TimelineDayViewComponent, TimelineDayViewService, TimelineMonthViewComponent, TimelineMonthViewService, TimelineViewService, TimelineWeekViewComponent, TimelineWeekViewService, ViewBase, ToolbarComponent, ViewSelectorComponent, GanttComponent, GanttModule, GanttHierarchyBindingDirective, GanttFlatBindingDirective, GanttExpandableDirective, GanttTaskTemplateDirective, GanttTaskContentTemplateDirective, GanttSummaryTaskTemplateDirective, ToolbarTemplateDirective, SelectableDirective, CellCloseEvent, GanttColumnBase, GanttColumnComponent, GanttColumnGroupComponent, GanttSpanColumnComponent, CellTemplateDirective, HeaderTemplateDirective, FooterTemplateDirective, ColumnMenuTemplateDirective, FilterCellTemplateDirective, FilterMenuTemplateDirective, EditTemplateDirective };
@@ -122,7 +122,7 @@ var GanttComponent = /** @class */ (function () {
122
122
  /**
123
123
  * Provides a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection))
124
124
  *
125
- * > The [`selectable`]({% slug gantt_api_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
125
+ * > The [`selectable`]({% slug api_gantt_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
126
126
  */
127
127
  this.isSelected = default_callbacks_1.isSelected;
128
128
  /**
@@ -136,7 +136,7 @@ var GanttComponent = /** @class */ (function () {
136
136
  /**
137
137
  * Enables or disables the Gantt selection mechanism ([see example]({% slug selection_gantt %}#toc-custom-selection)).
138
138
  *
139
- * > When set to `true`, the [`isSelected`]({% slug gantt_api_ganttcomponent %}#toc-isselected) callback has to be provided.
139
+ * > When set to `true`, the [`isSelected`]({% slug api_gantt_ganttcomponent %}#toc-isselected) callback has to be provided.
140
140
  * > When applied, the [`SelectableDirective`]({% slug api_gantt_selectabledirective %}) sets `selectable` to `true` internally.
141
141
  */
142
142
  this.selectable = false;
@@ -358,7 +358,6 @@ var GanttComponent = /** @class */ (function () {
358
358
  _this.showConfirmationDialog = _this.showEditingDialog = false;
359
359
  _this.editService.dataItem = _this.editService.formGroup = null;
360
360
  _this.updateView();
361
- _this.dependencyDomService.notifyChanges();
362
361
  }));
363
362
  this.localizationSubscription = this.localizationService.changes.subscribe(function (_a) {
364
363
  var rtl = _a.rtl;
@@ -698,12 +697,17 @@ var GanttComponent = /** @class */ (function () {
698
697
  }
699
698
  };
700
699
  /**
701
- * Updates the data of the Gantt and forces row-related callbacks to be called anew.
700
+ * Forces the TreeList to evaluate if some data items have changed and re-renders the rows information, if needed.
701
+ * Recalculates and re-renders the Timeline period, if needed.
702
+ * Redraws changed dependencies, if needed.
703
+ * Executes all row-related callbacks anew.
702
704
  */
703
705
  GanttComponent.prototype.updateView = function () {
704
706
  if (utils_1.isPresent(this.treeList)) {
705
707
  this.treeList.updateView();
706
708
  }
709
+ this.loadTimelineData();
710
+ this.dependencyDomService.notifyChanges();
707
711
  };
708
712
  /**
709
713
  * Opens the task editing dialog.
@@ -951,7 +955,7 @@ var GanttComponent = /** @class */ (function () {
951
955
  items: [dataItem],
952
956
  sender: this
953
957
  });
954
- this.updateView();
958
+ this.treeList.updateView();
955
959
  };
956
960
  GanttComponent.prototype.updateTreeListGroupClass = function (columns) {
957
961
  if (columns === void 0) { columns = this.columns; }
package/dist/npm/index.js CHANGED
@@ -29,6 +29,8 @@ var messages_1 = require("./localization/messages");
29
29
  exports.Messages = messages_1.Messages
30
30
  var treelist_messages_directive_1 = require("./localization/treelist-messages.directive");
31
31
  exports.GanttTreeListMessagesDirective = treelist_messages_directive_1.GanttTreeListMessagesDirective
32
+ var preventable_event_1 = require("./models/events/preventable-event");
33
+ exports.PreventableEvent = preventable_event_1.PreventableEvent
32
34
  var gantt_header_table_body_component_1 = require("./rendering/gantt-header-table-body.component");
33
35
  exports.GanttHeaderTableBodyComponent = gantt_header_table_body_component_1.GanttHeaderTableBodyComponent
34
36
  var gantt_milestone_task_component_1 = require("./rendering/gantt-milestone-task.component");
@@ -4,3 +4,5 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ var cell_close_event_interface_1 = require("./events/cell-close-event.interface");
8
+ exports.CellCloseEvent = cell_close_event_interface_1.CellCloseEvent;
@@ -11,7 +11,7 @@ exports.packageMetadata = {
11
11
  name: '@progress/kendo-angular-gantt',
12
12
  productName: 'Kendo UI for Angular',
13
13
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
14
- publishDate: 1639044748,
14
+ publishDate: 1639071314,
15
15
  version: '',
16
16
  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'
17
17
  };
@@ -7,9 +7,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  var kendo_data_query_1 = require("@progress/kendo-data-query");
8
8
  var utils_1 = require("../utils");
9
9
  var kendo_date_math_1 = require("@progress/kendo-date-math");
10
- var DAY_FORMAT = 'E d/MM';
11
- var HOUR_FORMAT = 'HH:mm aa';
12
- var MONTH_FORMAT = 'MMM';
10
+ /**
11
+ * @hidden
12
+ */
13
+ exports.DAY_FORMAT = 'E d/MM';
14
+ /**
15
+ * @hidden
16
+ */
17
+ exports.HOUR_FORMAT = 'HH:mm aa';
18
+ /**
19
+ * @hidden
20
+ */
21
+ exports.MONTH_FORMAT = 'MMM';
13
22
  /**
14
23
  * @hidden
15
24
  */
@@ -73,7 +82,7 @@ var TimelineBaseViewService = /** @class */ (function () {
73
82
  start: startDate,
74
83
  end: slotEnd,
75
84
  isWorking: isWorkSlot,
76
- text: this.intlService.formatDate(startDate, HOUR_FORMAT),
85
+ text: this.intlService.formatDate(startDate, exports.HOUR_FORMAT),
77
86
  span: 1
78
87
  });
79
88
  startDate = slotEnd;
@@ -100,7 +109,7 @@ var TimelineBaseViewService = /** @class */ (function () {
100
109
  start: startDay,
101
110
  end: slotEnd,
102
111
  isWorking: isWorking,
103
- text: this.intlService.formatDate(startDay, DAY_FORMAT),
112
+ text: this.intlService.formatDate(startDay, exports.DAY_FORMAT),
104
113
  span: 1
105
114
  });
106
115
  startDay = nextDay;
@@ -117,8 +126,8 @@ var TimelineBaseViewService = /** @class */ (function () {
117
126
  var slotEnd = lastWeekDay > endDay ? endDay : lastWeekDay;
118
127
  var daySlots = this.getDays(startDay, slotEnd);
119
128
  var span = daySlots.length;
120
- var firstDay = this.intlService.formatDate(kendo_date_math_1.firstDayInWeek(kendo_date_math_1.getDate(startDay), weekStart), DAY_FORMAT);
121
- var lastDay = this.intlService.formatDate(kendo_date_math_1.addDays(slotEnd, -1), DAY_FORMAT);
129
+ var firstDay = this.intlService.formatDate(kendo_date_math_1.firstDayInWeek(kendo_date_math_1.getDate(startDay), weekStart), exports.DAY_FORMAT);
130
+ var lastDay = this.intlService.formatDate(kendo_date_math_1.addDays(slotEnd, -1), exports.DAY_FORMAT);
122
131
  if (span > 0) {
123
132
  slots.push({
124
133
  start: daySlots[0].start,
@@ -141,7 +150,7 @@ var TimelineBaseViewService = /** @class */ (function () {
141
150
  var daySlots = this.getDays(startDay, slotEnd);
142
151
  var span = daySlots.length;
143
152
  var monthStart = kendo_date_math_1.firstDayOfMonth(kendo_date_math_1.getDate(startDay));
144
- var shortText = this.intlService.formatDate(monthStart, MONTH_FORMAT);
153
+ var shortText = this.intlService.formatDate(monthStart, exports.MONTH_FORMAT);
145
154
  if (span > 0) {
146
155
  slots.push({
147
156
  start: daySlots[0].start,