@progress/kendo-angular-gantt 13.6.0-develop.7 → 13.6.0-develop.9

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.
@@ -538,6 +538,9 @@ export class GanttComponent {
538
538
  */
539
539
  get activeViewCurrentTimeMarker() {
540
540
  const activeViewCurrentTimeMarker = this.views.find(view => view.type === this._activeView)?.currentTimeMarker;
541
+ if (activeViewCurrentTimeMarker === false) {
542
+ return false;
543
+ }
541
544
  return activeViewCurrentTimeMarker || this.currentTimeMarker;
542
545
  }
543
546
  /**
@@ -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: 1695887243,
13
- version: '13.6.0-develop.7',
12
+ publishDate: 1695903591,
13
+ version: '13.6.0-develop.9',
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
  };
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2023 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 { Injectable, NgZone, Renderer2 } from '@angular/core';
5
+ import { ChangeDetectorRef, Injectable, Renderer2 } from '@angular/core';
6
6
  import { isDocumentAvailable } from '@progress/kendo-angular-common';
7
7
  import * as i0 from "@angular/core";
8
8
  const MS_PER_SECOND = 1000;
@@ -15,9 +15,9 @@ export { MS_PER_DAY } from '@progress/kendo-date-math';
15
15
  * @hidden
16
16
  */
17
17
  export class CurrentTimeMarkerService {
18
- constructor(renderer, zone) {
18
+ constructor(renderer, cdr) {
19
19
  this.renderer = renderer;
20
- this.zone = zone;
20
+ this.cdr = cdr;
21
21
  this.slots = [];
22
22
  this.rows = [];
23
23
  this.now = new Date(Date.now());
@@ -69,17 +69,18 @@ export class CurrentTimeMarkerService {
69
69
  return this.currentTimeMarker.updateInterval || MS_PER_MINUTE;
70
70
  }
71
71
  ngOnDestroy() {
72
- clearInterval(this.currentTimeTimeout);
72
+ clearTimeout(this.currentTimeTimeout);
73
73
  }
74
74
  removeTimeMarker() {
75
75
  if (this.timeMarkerDiv) {
76
76
  this.renderer.removeChild(this.container.nativeElement, this.timeMarkerDiv);
77
- clearInterval(this.currentTimeTimeout);
77
+ clearTimeout(this.currentTimeTimeout);
78
+ this.cdr.detectChanges();
78
79
  }
79
80
  }
80
81
  }
81
- CurrentTimeMarkerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CurrentTimeMarkerService, deps: [{ token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
82
+ CurrentTimeMarkerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CurrentTimeMarkerService, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Injectable });
82
83
  CurrentTimeMarkerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CurrentTimeMarkerService });
83
84
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CurrentTimeMarkerService, decorators: [{
84
85
  type: Injectable
85
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.NgZone }]; } });
86
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; } });
@@ -46,12 +46,12 @@ export class GanttTimelineComponent {
46
46
  const timelineRowHeight = isDocumentAvailable() ? timelineRow.getBoundingClientRect().height : 0;
47
47
  this.currentTimeMarkerService.rowHeight = timelineRowHeight;
48
48
  this.currentTimeMarkerService.currentTimeMarker = this.currentTimeMarker;
49
- this.currentTimeMarkerService.removeTimeMarker();
50
- if ((typeof this.currentTimeMarker === 'boolean' && this.currentTimeMarker) || this.currentTimeMarker?.enabled) {
51
- this.zone.runOutsideAngular(() => {
49
+ this.zone.runOutsideAngular(() => {
50
+ this.currentTimeMarkerService.removeTimeMarker();
51
+ if ((typeof this.currentTimeMarker === 'boolean' && this.currentTimeMarker) || this.currentTimeMarker?.enabled) {
52
52
  this.currentTimeMarkerService.createTimeMarker();
53
- });
54
- }
53
+ }
54
+ });
55
55
  this.renderer.setStyle(this.timelineColumns.nativeElement, 'height', `${(this.rows || []).length * timelineRowHeight}px`);
56
56
  }));
57
57
  }
@@ -52,8 +52,8 @@ const packageMetadata = {
52
52
  name: '@progress/kendo-angular-gantt',
53
53
  productName: 'Kendo UI for Angular',
54
54
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
55
- publishDate: 1695887243,
56
- version: '13.6.0-develop.7',
55
+ publishDate: 1695903591,
56
+ version: '13.6.0-develop.9',
57
57
  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'
58
58
  };
59
59
 
@@ -663,9 +663,9 @@ const MS_PER_MINUTE = 60 * MS_PER_SECOND;
663
663
  * @hidden
664
664
  */
665
665
  class CurrentTimeMarkerService {
666
- constructor(renderer, zone) {
666
+ constructor(renderer, cdr) {
667
667
  this.renderer = renderer;
668
- this.zone = zone;
668
+ this.cdr = cdr;
669
669
  this.slots = [];
670
670
  this.rows = [];
671
671
  this.now = new Date(Date.now());
@@ -718,20 +718,21 @@ class CurrentTimeMarkerService {
718
718
  return this.currentTimeMarker.updateInterval || MS_PER_MINUTE;
719
719
  }
720
720
  ngOnDestroy() {
721
- clearInterval(this.currentTimeTimeout);
721
+ clearTimeout(this.currentTimeTimeout);
722
722
  }
723
723
  removeTimeMarker() {
724
724
  if (this.timeMarkerDiv) {
725
725
  this.renderer.removeChild(this.container.nativeElement, this.timeMarkerDiv);
726
- clearInterval(this.currentTimeTimeout);
726
+ clearTimeout(this.currentTimeTimeout);
727
+ this.cdr.detectChanges();
727
728
  }
728
729
  }
729
730
  }
730
- CurrentTimeMarkerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CurrentTimeMarkerService, deps: [{ token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
731
+ CurrentTimeMarkerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CurrentTimeMarkerService, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Injectable });
731
732
  CurrentTimeMarkerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CurrentTimeMarkerService });
732
733
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CurrentTimeMarkerService, decorators: [{
733
734
  type: Injectable
734
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.NgZone }]; } });
735
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; } });
735
736
 
736
737
  /**
737
738
  * @hidden
@@ -2813,16 +2814,16 @@ class GanttTimelineComponent {
2813
2814
  .pipe(filter(args => isPresent(args.timelineRow)), switchMap(args => this.zone.onStable.pipe(take(1), map(() => args))) // ensure the content is rendered
2814
2815
  )
2815
2816
  .subscribe(({ timelineRow }) => {
2816
- var _a;
2817
2817
  const timelineRowHeight = isDocumentAvailable() ? timelineRow.getBoundingClientRect().height : 0;
2818
2818
  this.currentTimeMarkerService.rowHeight = timelineRowHeight;
2819
2819
  this.currentTimeMarkerService.currentTimeMarker = this.currentTimeMarker;
2820
- this.currentTimeMarkerService.removeTimeMarker();
2821
- if ((typeof this.currentTimeMarker === 'boolean' && this.currentTimeMarker) || ((_a = this.currentTimeMarker) === null || _a === void 0 ? void 0 : _a.enabled)) {
2822
- this.zone.runOutsideAngular(() => {
2820
+ this.zone.runOutsideAngular(() => {
2821
+ var _a;
2822
+ this.currentTimeMarkerService.removeTimeMarker();
2823
+ if ((typeof this.currentTimeMarker === 'boolean' && this.currentTimeMarker) || ((_a = this.currentTimeMarker) === null || _a === void 0 ? void 0 : _a.enabled)) {
2823
2824
  this.currentTimeMarkerService.createTimeMarker();
2824
- });
2825
- }
2825
+ }
2826
+ });
2826
2827
  this.renderer.setStyle(this.timelineColumns.nativeElement, 'height', `${(this.rows || []).length * timelineRowHeight}px`);
2827
2828
  }));
2828
2829
  }
@@ -5595,6 +5596,9 @@ class GanttComponent {
5595
5596
  get activeViewCurrentTimeMarker() {
5596
5597
  var _a;
5597
5598
  const activeViewCurrentTimeMarker = (_a = this.views.find(view => view.type === this._activeView)) === null || _a === void 0 ? void 0 : _a.currentTimeMarker;
5599
+ if (activeViewCurrentTimeMarker === false) {
5600
+ return false;
5601
+ }
5598
5602
  return activeViewCurrentTimeMarker || this.currentTimeMarker;
5599
5603
  }
5600
5604
  /**
@@ -52,8 +52,8 @@ const packageMetadata = {
52
52
  name: '@progress/kendo-angular-gantt',
53
53
  productName: 'Kendo UI for Angular',
54
54
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
55
- publishDate: 1695887243,
56
- version: '13.6.0-develop.7',
55
+ publishDate: 1695903591,
56
+ version: '13.6.0-develop.9',
57
57
  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'
58
58
  };
59
59
 
@@ -663,9 +663,9 @@ const MS_PER_MINUTE = 60 * MS_PER_SECOND;
663
663
  * @hidden
664
664
  */
665
665
  class CurrentTimeMarkerService {
666
- constructor(renderer, zone) {
666
+ constructor(renderer, cdr) {
667
667
  this.renderer = renderer;
668
- this.zone = zone;
668
+ this.cdr = cdr;
669
669
  this.slots = [];
670
670
  this.rows = [];
671
671
  this.now = new Date(Date.now());
@@ -717,20 +717,21 @@ class CurrentTimeMarkerService {
717
717
  return this.currentTimeMarker.updateInterval || MS_PER_MINUTE;
718
718
  }
719
719
  ngOnDestroy() {
720
- clearInterval(this.currentTimeTimeout);
720
+ clearTimeout(this.currentTimeTimeout);
721
721
  }
722
722
  removeTimeMarker() {
723
723
  if (this.timeMarkerDiv) {
724
724
  this.renderer.removeChild(this.container.nativeElement, this.timeMarkerDiv);
725
- clearInterval(this.currentTimeTimeout);
725
+ clearTimeout(this.currentTimeTimeout);
726
+ this.cdr.detectChanges();
726
727
  }
727
728
  }
728
729
  }
729
- CurrentTimeMarkerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CurrentTimeMarkerService, deps: [{ token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
730
+ CurrentTimeMarkerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CurrentTimeMarkerService, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Injectable });
730
731
  CurrentTimeMarkerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CurrentTimeMarkerService });
731
732
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CurrentTimeMarkerService, decorators: [{
732
733
  type: Injectable
733
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.NgZone }]; } });
734
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; } });
734
735
 
735
736
  /**
736
737
  * @hidden
@@ -2797,12 +2798,12 @@ class GanttTimelineComponent {
2797
2798
  const timelineRowHeight = isDocumentAvailable() ? timelineRow.getBoundingClientRect().height : 0;
2798
2799
  this.currentTimeMarkerService.rowHeight = timelineRowHeight;
2799
2800
  this.currentTimeMarkerService.currentTimeMarker = this.currentTimeMarker;
2800
- this.currentTimeMarkerService.removeTimeMarker();
2801
- if ((typeof this.currentTimeMarker === 'boolean' && this.currentTimeMarker) || this.currentTimeMarker?.enabled) {
2802
- this.zone.runOutsideAngular(() => {
2801
+ this.zone.runOutsideAngular(() => {
2802
+ this.currentTimeMarkerService.removeTimeMarker();
2803
+ if ((typeof this.currentTimeMarker === 'boolean' && this.currentTimeMarker) || this.currentTimeMarker?.enabled) {
2803
2804
  this.currentTimeMarkerService.createTimeMarker();
2804
- });
2805
- }
2805
+ }
2806
+ });
2806
2807
  this.renderer.setStyle(this.timelineColumns.nativeElement, 'height', `${(this.rows || []).length * timelineRowHeight}px`);
2807
2808
  }));
2808
2809
  }
@@ -5546,6 +5547,9 @@ class GanttComponent {
5546
5547
  */
5547
5548
  get activeViewCurrentTimeMarker() {
5548
5549
  const activeViewCurrentTimeMarker = this.views.find(view => view.type === this._activeView)?.currentTimeMarker;
5550
+ if (activeViewCurrentTimeMarker === false) {
5551
+ return false;
5552
+ }
5549
5553
  return activeViewCurrentTimeMarker || this.currentTimeMarker;
5550
5554
  }
5551
5555
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-gantt",
3
- "version": "13.6.0-develop.7",
3
+ "version": "13.6.0-develop.9",
4
4
  "description": "Kendo UI Angular Gantt",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -24,22 +24,22 @@
24
24
  "@angular/platform-browser": "13 - 16",
25
25
  "@progress/kendo-data-query": "^1.5.5",
26
26
  "@progress/kendo-licensing": "^1.0.2",
27
- "@progress/kendo-angular-buttons": "13.6.0-develop.7",
28
- "@progress/kendo-angular-common": "13.6.0-develop.7",
29
- "@progress/kendo-angular-dialog": "13.6.0-develop.7",
30
- "@progress/kendo-angular-dropdowns": "13.6.0-develop.7",
31
- "@progress/kendo-angular-grid": "13.6.0-develop.7",
32
- "@progress/kendo-angular-icons": "13.6.0-develop.7",
33
- "@progress/kendo-angular-intl": "13.6.0-develop.7",
34
- "@progress/kendo-angular-l10n": "13.6.0-develop.7",
35
- "@progress/kendo-angular-layout": "13.6.0-develop.7",
36
- "@progress/kendo-angular-popup": "13.6.0-develop.7",
37
- "@progress/kendo-angular-treelist": "13.6.0-develop.7",
27
+ "@progress/kendo-angular-buttons": "13.6.0-develop.9",
28
+ "@progress/kendo-angular-common": "13.6.0-develop.9",
29
+ "@progress/kendo-angular-dialog": "13.6.0-develop.9",
30
+ "@progress/kendo-angular-dropdowns": "13.6.0-develop.9",
31
+ "@progress/kendo-angular-grid": "13.6.0-develop.9",
32
+ "@progress/kendo-angular-icons": "13.6.0-develop.9",
33
+ "@progress/kendo-angular-intl": "13.6.0-develop.9",
34
+ "@progress/kendo-angular-l10n": "13.6.0-develop.9",
35
+ "@progress/kendo-angular-layout": "13.6.0-develop.9",
36
+ "@progress/kendo-angular-popup": "13.6.0-develop.9",
37
+ "@progress/kendo-angular-treelist": "13.6.0-develop.9",
38
38
  "rxjs": "^6.5.3 || ^7.0.0"
39
39
  },
40
40
  "dependencies": {
41
41
  "tslib": "^2.3.1",
42
- "@progress/kendo-angular-schematics": "13.6.0-develop.7",
42
+ "@progress/kendo-angular-schematics": "13.6.0-develop.9",
43
43
  "@progress/kendo-common": "^0.2.1",
44
44
  "@progress/kendo-date-math": "^1.5.2",
45
45
  "@progress/kendo-draggable": "^3.0.0"
@@ -7,20 +7,20 @@ 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': '13.6.0-develop.7',
11
- '@progress/kendo-angular-dropdowns': '13.6.0-develop.7',
12
- '@progress/kendo-angular-excel-export': '13.6.0-develop.7',
13
- '@progress/kendo-angular-inputs': '13.6.0-develop.7',
14
- '@progress/kendo-angular-l10n': '13.6.0-develop.7',
15
- '@progress/kendo-angular-label': '13.6.0-develop.7',
16
- '@progress/kendo-angular-pdf-export': '13.6.0-develop.7',
17
- '@progress/kendo-angular-popup': '13.6.0-develop.7',
18
- '@progress/kendo-angular-utils': '13.6.0-develop.7',
10
+ '@progress/kendo-angular-dateinputs': '13.6.0-develop.9',
11
+ '@progress/kendo-angular-dropdowns': '13.6.0-develop.9',
12
+ '@progress/kendo-angular-excel-export': '13.6.0-develop.9',
13
+ '@progress/kendo-angular-inputs': '13.6.0-develop.9',
14
+ '@progress/kendo-angular-l10n': '13.6.0-develop.9',
15
+ '@progress/kendo-angular-label': '13.6.0-develop.9',
16
+ '@progress/kendo-angular-pdf-export': '13.6.0-develop.9',
17
+ '@progress/kendo-angular-popup': '13.6.0-develop.9',
18
+ '@progress/kendo-angular-utils': '13.6.0-develop.9',
19
19
  '@progress/kendo-drawing': '^1.0.0',
20
20
  // peer dep of the dropdowns
21
- '@progress/kendo-angular-treeview': '13.6.0-develop.7',
21
+ '@progress/kendo-angular-treeview': '13.6.0-develop.9',
22
22
  // peer dep of the layout
23
- '@progress/kendo-angular-progressbar': '13.6.0-develop.7',
23
+ '@progress/kendo-angular-progressbar': '13.6.0-develop.9',
24
24
  // peer dep of the icons
25
25
  '@progress/kendo-svg-icons': '^1.0.0'
26
26
  } });
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2023 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 { ElementRef, NgZone, OnDestroy, Renderer2 } from '@angular/core';
5
+ import { ChangeDetectorRef, ElementRef, OnDestroy, Renderer2 } from '@angular/core';
6
6
  import { CurrentTimeSettings } from '../models/current-time-settings.interface';
7
7
  import { TimelineViewType } from '../models/timeline-view';
8
8
  import * as i0 from "@angular/core";
@@ -15,7 +15,7 @@ export { MS_PER_DAY } from '@progress/kendo-date-math';
15
15
  */
16
16
  export declare class CurrentTimeMarkerService implements OnDestroy {
17
17
  private renderer;
18
- private zone;
18
+ private cdr;
19
19
  container: ElementRef<HTMLElement>;
20
20
  slots: any[];
21
21
  rows: any[];
@@ -31,7 +31,7 @@ export declare class CurrentTimeMarkerService implements OnDestroy {
31
31
  private now;
32
32
  private currentTimeTimeout;
33
33
  private timeMarkerDiv;
34
- constructor(renderer: Renderer2, zone: NgZone);
34
+ constructor(renderer: Renderer2, cdr: ChangeDetectorRef);
35
35
  ngOnDestroy(): void;
36
36
  removeTimeMarker(): void;
37
37
  createTimeMarker: () => void;