@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.
@@ -120,7 +120,7 @@ var GanttComponent = /** @class */ (function () {
120
120
  /**
121
121
  * Provides a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection))
122
122
  *
123
- * > The [`selectable`]({% slug gantt_api_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
123
+ * > The [`selectable`]({% slug api_gantt_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
124
124
  */
125
125
  this.isSelected = isSelected;
126
126
  /**
@@ -134,7 +134,7 @@ var GanttComponent = /** @class */ (function () {
134
134
  /**
135
135
  * Enables or disables the Gantt selection mechanism ([see example]({% slug selection_gantt %}#toc-custom-selection)).
136
136
  *
137
- * > When set to `true`, the [`isSelected`]({% slug gantt_api_ganttcomponent %}#toc-isselected) callback has to be provided.
137
+ * > When set to `true`, the [`isSelected`]({% slug api_gantt_ganttcomponent %}#toc-isselected) callback has to be provided.
138
138
  * > When applied, the [`SelectableDirective`]({% slug api_gantt_selectabledirective %}) sets `selectable` to `true` internally.
139
139
  */
140
140
  this.selectable = false;
@@ -356,7 +356,6 @@ var GanttComponent = /** @class */ (function () {
356
356
  _this.showConfirmationDialog = _this.showEditingDialog = false;
357
357
  _this.editService.dataItem = _this.editService.formGroup = null;
358
358
  _this.updateView();
359
- _this.dependencyDomService.notifyChanges();
360
359
  }));
361
360
  this.localizationSubscription = this.localizationService.changes.subscribe(function (_a) {
362
361
  var rtl = _a.rtl;
@@ -696,12 +695,17 @@ var GanttComponent = /** @class */ (function () {
696
695
  }
697
696
  };
698
697
  /**
699
- * Updates the data of the Gantt and forces row-related callbacks to be called anew.
698
+ * Forces the TreeList to evaluate if some data items have changed and re-renders the rows information, if needed.
699
+ * Recalculates and re-renders the Timeline period, if needed.
700
+ * Redraws changed dependencies, if needed.
701
+ * Executes all row-related callbacks anew.
700
702
  */
701
703
  GanttComponent.prototype.updateView = function () {
702
704
  if (isPresent(this.treeList)) {
703
705
  this.treeList.updateView();
704
706
  }
707
+ this.loadTimelineData();
708
+ this.dependencyDomService.notifyChanges();
705
709
  };
706
710
  /**
707
711
  * Opens the task editing dialog.
@@ -949,7 +953,7 @@ var GanttComponent = /** @class */ (function () {
949
953
  items: [dataItem],
950
954
  sender: this
951
955
  });
952
- this.updateView();
956
+ this.treeList.updateView();
953
957
  };
954
958
  GanttComponent.prototype.updateTreeListGroupClass = function (columns) {
955
959
  if (columns === void 0) { columns = this.columns; }
package/dist/es/index.js CHANGED
@@ -16,6 +16,7 @@ export { CustomMessagesComponent } from './localization/custom-messages.componen
16
16
  export { LocalizedMessagesDirective } from './localization/localized-messages.directive';
17
17
  export { Messages } from './localization/messages';
18
18
  export { GanttTreeListMessagesDirective } from './localization/treelist-messages.directive';
19
+ export { PreventableEvent } from './models/events/preventable-event';
19
20
  export { GanttHeaderTableBodyComponent } from './rendering/gantt-header-table-body.component';
20
21
  export { GanttMilestoneTaskComponent } from './rendering/gantt-milestone-task.component';
21
22
  export { GanttSummaryTaskComponent } from './rendering/gantt-summary-task.component';
@@ -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 var 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
  };
@@ -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
- var DAY_FORMAT = 'E d/MM';
9
- var HOUR_FORMAT = 'HH:mm aa';
10
- var MONTH_FORMAT = 'MMM';
8
+ /**
9
+ * @hidden
10
+ */
11
+ export var DAY_FORMAT = 'E d/MM';
12
+ /**
13
+ * @hidden
14
+ */
15
+ export var HOUR_FORMAT = 'HH:mm aa';
16
+ /**
17
+ * @hidden
18
+ */
19
+ export var MONTH_FORMAT = 'MMM';
11
20
  /**
12
21
  * @hidden
13
22
  */
@@ -164,7 +164,7 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
164
164
  /**
165
165
  * Provides a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection))
166
166
  *
167
- * > The [`selectable`]({% slug gantt_api_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
167
+ * > The [`selectable`]({% slug api_gantt_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
168
168
  */
169
169
  isSelected: (dataItem: object) => boolean;
170
170
  /**
@@ -178,7 +178,7 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
178
178
  /**
179
179
  * Enables or disables the Gantt selection mechanism ([see example]({% slug selection_gantt %}#toc-custom-selection)).
180
180
  *
181
- * > When set to `true`, the [`isSelected`]({% slug gantt_api_ganttcomponent %}#toc-isselected) callback has to be provided.
181
+ * > When set to `true`, the [`isSelected`]({% slug api_gantt_ganttcomponent %}#toc-isselected) callback has to be provided.
182
182
  * > When applied, the [`SelectableDirective`]({% slug api_gantt_selectabledirective %}) sets `selectable` to `true` internally.
183
183
  */
184
184
  selectable: boolean;
@@ -503,7 +503,10 @@ export declare class GanttComponent implements AfterContentInit, OnChanges, OnDe
503
503
  */
504
504
  reorderColumn(source: GanttColumnBase, destIndex: number, options?: ColumnReorderConfig): void;
505
505
  /**
506
- * Updates the data of the Gantt and forces row-related callbacks to be called anew.
506
+ * Forces the TreeList to evaluate if some data items have changed and re-renders the rows information, if needed.
507
+ * Recalculates and re-renders the Timeline period, if needed.
508
+ * Redraws changed dependencies, if needed.
509
+ * Executes all row-related callbacks anew.
507
510
  */
508
511
  updateView(): void;
509
512
  /**
@@ -120,7 +120,7 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
120
120
  /**
121
121
  * Provides a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection))
122
122
  *
123
- * > The [`selectable`]({% slug gantt_api_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
123
+ * > The [`selectable`]({% slug api_gantt_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
124
124
  */
125
125
  this.isSelected = isSelected;
126
126
  /**
@@ -134,7 +134,7 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
134
134
  /**
135
135
  * Enables or disables the Gantt selection mechanism ([see example]({% slug selection_gantt %}#toc-custom-selection)).
136
136
  *
137
- * > When set to `true`, the [`isSelected`]({% slug gantt_api_ganttcomponent %}#toc-isselected) callback has to be provided.
137
+ * > When set to `true`, the [`isSelected`]({% slug api_gantt_ganttcomponent %}#toc-isselected) callback has to be provided.
138
138
  * > When applied, the [`SelectableDirective`]({% slug api_gantt_selectabledirective %}) sets `selectable` to `true` internally.
139
139
  */
140
140
  this.selectable = false;
@@ -356,7 +356,6 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
356
356
  this.showConfirmationDialog = this.showEditingDialog = false;
357
357
  this.editService.dataItem = this.editService.formGroup = null;
358
358
  this.updateView();
359
- this.dependencyDomService.notifyChanges();
360
359
  }));
361
360
  this.localizationSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
362
361
  this.rtl = rtl;
@@ -615,12 +614,17 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
615
614
  }
616
615
  }
617
616
  /**
618
- * Updates the data of the Gantt and forces row-related callbacks to be called anew.
617
+ * Forces the TreeList to evaluate if some data items have changed and re-renders the rows information, if needed.
618
+ * Recalculates and re-renders the Timeline period, if needed.
619
+ * Redraws changed dependencies, if needed.
620
+ * Executes all row-related callbacks anew.
619
621
  */
620
622
  updateView() {
621
623
  if (isPresent(this.treeList)) {
622
624
  this.treeList.updateView();
623
625
  }
626
+ this.loadTimelineData();
627
+ this.dependencyDomService.notifyChanges();
624
628
  }
625
629
  /**
626
630
  * Opens the task editing dialog.
@@ -864,7 +868,7 @@ let GanttComponent = GanttComponent_1 = class GanttComponent {
864
868
  items: [dataItem],
865
869
  sender: this
866
870
  });
867
- this.updateView();
871
+ this.treeList.updateView();
868
872
  }
869
873
  updateTreeListGroupClass(columns = this.columns) {
870
874
  if (!isPresent(this.treeList)) {
@@ -16,6 +16,7 @@ export { CustomMessagesComponent } from './localization/custom-messages.componen
16
16
  export { LocalizedMessagesDirective } from './localization/localized-messages.directive';
17
17
  export { Messages } from './localization/messages';
18
18
  export { GanttTreeListMessagesDirective } from './localization/treelist-messages.directive';
19
+ export { PreventableEvent } from './models/events/preventable-event';
19
20
  export { GanttHeaderTableBodyComponent } from './rendering/gantt-header-table-body.component';
20
21
  export { GanttMilestoneTaskComponent } from './rendering/gantt-milestone-task.component';
21
22
  export { GanttSummaryTaskComponent } from './rendering/gantt-summary-task.component';
@@ -16,6 +16,7 @@ export { CustomMessagesComponent } from './localization/custom-messages.componen
16
16
  export { LocalizedMessagesDirective } from './localization/localized-messages.directive';
17
17
  export { Messages } from './localization/messages';
18
18
  export { GanttTreeListMessagesDirective } from './localization/treelist-messages.directive';
19
+ export { PreventableEvent } from './models/events/preventable-event';
19
20
  export { GanttHeaderTableBodyComponent } from './rendering/gantt-header-table-body.component';
20
21
  export { GanttMilestoneTaskComponent } from './rendering/gantt-milestone-task.component';
21
22
  export { GanttSummaryTaskComponent } from './rendering/gantt-summary-task.component';