@progress/kendo-angular-scheduler 17.0.0-develop.16 → 17.0.0-develop.19

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.
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-scheduler',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1729498003,
13
- version: '17.0.0-develop.16',
12
+ publishDate: 1729672793,
13
+ version: '17.0.0-develop.19',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -54,7 +54,8 @@ export class MonthViewComponent extends ConfigurationViewBase {
54
54
  }
55
55
  /**
56
56
  * The number of events to be rendered per day. Setting this property to 'auto'
57
- * will display all events in the respective slot.
57
+ * will display all events in the respective slot
58
+ * ([see example](slug:month_views_scheduler#setting-the-number-of-events-per-day)).
58
59
  * > When set to `'auto'` it will automatically set the `adaptiveSlotHeight` property to `true`.
59
60
  * > If set to `0` it will be normalized internally to `1`.
60
61
  * @default 2
@@ -58,7 +58,8 @@ export class MultiWeekViewComponent extends ConfigurationViewBase {
58
58
  }
59
59
  /**
60
60
  * The number of events to be rendered per day. Setting this property to 'auto'
61
- * will display all events in the respective slot.
61
+ * will display all events in the respective slot
62
+ * ([see example](slug:multiweek_views_scheduler#setting-the-number-of-events-per-day)).
62
63
  * > When set to `'auto'` it will automatically set the `adaptiveSlotHeight` property to `true`.
63
64
  * > If set to `0` it will be normalized internally to `1`.
64
65
  * @default 2
@@ -20,6 +20,7 @@ import { createTasks, noop, yearEnd, yearStart } from './utils';
20
20
  import { MonthSlotService } from '../month/month-slot.service';
21
21
  import { IconWrapperComponent } from '@progress/kendo-angular-icons';
22
22
  import { NgIf, NgFor, NgClass, NgStyle } from '@angular/common';
23
+ import { take } from 'rxjs/operators';
23
24
  import * as i0 from "@angular/core";
24
25
  import * as i1 from "@progress/kendo-angular-l10n";
25
26
  import * as i2 from "../../navigation";
@@ -175,7 +176,8 @@ export class YearViewInternalComponent extends BaseView {
175
176
  if (this.calendar) {
176
177
  this.calendar.min = start;
177
178
  this.calendar.max = yearEnd(start.getFullYear());
178
- this.updateTds();
179
+ // wait for the view to update to get the new tds
180
+ this.zone.onStable.pipe(take(1)).subscribe(() => this.updateTds());
179
181
  }
180
182
  }
181
183
  onAction(e) {
@@ -234,6 +236,10 @@ export class YearViewInternalComponent extends BaseView {
234
236
  });
235
237
  this.cachedTds = [];
236
238
  this.tds = Array.from(this.calendar.element.nativeElement.querySelectorAll('.k-calendar-td:not(.k-empty)'));
239
+ if (this.calendar.value instanceof Date &&
240
+ this.calendar.value.getFullYear() === this.calendar.min?.getFullYear()) {
241
+ this.currentTd = this.tds.find((td) => getDateAttribute(td) === this.calendar.value.toString());
242
+ }
237
243
  if (this.slotClass) {
238
244
  this.tds.forEach((td) => {
239
245
  const date = toUTCDate(new Date(getDateAttribute(td)));
@@ -42,8 +42,8 @@ const packageMetadata = {
42
42
  name: '@progress/kendo-angular-scheduler',
43
43
  productName: 'Kendo UI for Angular',
44
44
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
45
- publishDate: 1729498003,
46
- version: '17.0.0-develop.16',
45
+ publishDate: 1729672793,
46
+ version: '17.0.0-develop.19',
47
47
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
48
48
  };
49
49
 
@@ -12841,7 +12841,8 @@ class MonthViewComponent extends ConfigurationViewBase {
12841
12841
  }
12842
12842
  /**
12843
12843
  * The number of events to be rendered per day. Setting this property to 'auto'
12844
- * will display all events in the respective slot.
12844
+ * will display all events in the respective slot
12845
+ * ([see example](slug:month_views_scheduler#setting-the-number-of-events-per-day)).
12845
12846
  * > When set to `'auto'` it will automatically set the `adaptiveSlotHeight` property to `true`.
12846
12847
  * > If set to `0` it will be normalized internally to `1`.
12847
12848
  * @default 2
@@ -12997,7 +12998,8 @@ class MultiWeekViewComponent extends ConfigurationViewBase {
12997
12998
  }
12998
12999
  /**
12999
13000
  * The number of events to be rendered per day. Setting this property to 'auto'
13000
- * will display all events in the respective slot.
13001
+ * will display all events in the respective slot
13002
+ * ([see example](slug:multiweek_views_scheduler#setting-the-number-of-events-per-day)).
13001
13003
  * > When set to `'auto'` it will automatically set the `adaptiveSlotHeight` property to `true`.
13002
13004
  * > If set to `0` it will be normalized internally to `1`.
13003
13005
  * @default 2
@@ -17429,7 +17431,8 @@ class YearViewInternalComponent extends BaseView {
17429
17431
  if (this.calendar) {
17430
17432
  this.calendar.min = start;
17431
17433
  this.calendar.max = yearEnd(start.getFullYear());
17432
- this.updateTds();
17434
+ // wait for the view to update to get the new tds
17435
+ this.zone.onStable.pipe(take(1)).subscribe(() => this.updateTds());
17433
17436
  }
17434
17437
  }
17435
17438
  onAction(e) {
@@ -17483,11 +17486,16 @@ class YearViewInternalComponent extends BaseView {
17483
17486
  return new Date(year, month + 1, 0).getDate();
17484
17487
  }
17485
17488
  updateTds() {
17489
+ var _a;
17486
17490
  this.cachedTds.forEach((td) => {
17487
17491
  this.renderer.setAttribute(td, 'class', 'k-calendar-td');
17488
17492
  });
17489
17493
  this.cachedTds = [];
17490
17494
  this.tds = Array.from(this.calendar.element.nativeElement.querySelectorAll('.k-calendar-td:not(.k-empty)'));
17495
+ if (this.calendar.value instanceof Date &&
17496
+ this.calendar.value.getFullYear() === ((_a = this.calendar.min) === null || _a === void 0 ? void 0 : _a.getFullYear())) {
17497
+ this.currentTd = this.tds.find((td) => getDateAttribute(td) === this.calendar.value.toString());
17498
+ }
17491
17499
  if (this.slotClass) {
17492
17500
  this.tds.forEach((td) => {
17493
17501
  const date = toUTCDate(new Date(getDateAttribute(td)));
@@ -42,8 +42,8 @@ const packageMetadata = {
42
42
  name: '@progress/kendo-angular-scheduler',
43
43
  productName: 'Kendo UI for Angular',
44
44
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
45
- publishDate: 1729498003,
46
- version: '17.0.0-develop.16',
45
+ publishDate: 1729672793,
46
+ version: '17.0.0-develop.19',
47
47
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
48
48
  };
49
49
 
@@ -12799,7 +12799,8 @@ class MonthViewComponent extends ConfigurationViewBase {
12799
12799
  }
12800
12800
  /**
12801
12801
  * The number of events to be rendered per day. Setting this property to 'auto'
12802
- * will display all events in the respective slot.
12802
+ * will display all events in the respective slot
12803
+ * ([see example](slug:month_views_scheduler#setting-the-number-of-events-per-day)).
12803
12804
  * > When set to `'auto'` it will automatically set the `adaptiveSlotHeight` property to `true`.
12804
12805
  * > If set to `0` it will be normalized internally to `1`.
12805
12806
  * @default 2
@@ -12955,7 +12956,8 @@ class MultiWeekViewComponent extends ConfigurationViewBase {
12955
12956
  }
12956
12957
  /**
12957
12958
  * The number of events to be rendered per day. Setting this property to 'auto'
12958
- * will display all events in the respective slot.
12959
+ * will display all events in the respective slot
12960
+ * ([see example](slug:multiweek_views_scheduler#setting-the-number-of-events-per-day)).
12959
12961
  * > When set to `'auto'` it will automatically set the `adaptiveSlotHeight` property to `true`.
12960
12962
  * > If set to `0` it will be normalized internally to `1`.
12961
12963
  * @default 2
@@ -17376,7 +17378,8 @@ class YearViewInternalComponent extends BaseView {
17376
17378
  if (this.calendar) {
17377
17379
  this.calendar.min = start;
17378
17380
  this.calendar.max = yearEnd(start.getFullYear());
17379
- this.updateTds();
17381
+ // wait for the view to update to get the new tds
17382
+ this.zone.onStable.pipe(take(1)).subscribe(() => this.updateTds());
17380
17383
  }
17381
17384
  }
17382
17385
  onAction(e) {
@@ -17435,6 +17438,10 @@ class YearViewInternalComponent extends BaseView {
17435
17438
  });
17436
17439
  this.cachedTds = [];
17437
17440
  this.tds = Array.from(this.calendar.element.nativeElement.querySelectorAll('.k-calendar-td:not(.k-empty)'));
17441
+ if (this.calendar.value instanceof Date &&
17442
+ this.calendar.value.getFullYear() === this.calendar.min?.getFullYear()) {
17443
+ this.currentTd = this.tds.find((td) => getDateAttribute(td) === this.calendar.value.toString());
17444
+ }
17438
17445
  if (this.slotClass) {
17439
17446
  this.tds.forEach((td) => {
17440
17447
  const date = toUTCDate(new Date(getDateAttribute(td)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-scheduler",
3
- "version": "17.0.0-develop.16",
3
+ "version": "17.0.0-develop.19",
4
4
  "description": "Kendo UI Scheduler Angular - Outlook or Google-style angular scheduler calendar. Full-featured and customizable embedded scheduling from the creator developers trust for professional UI components.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -26,23 +26,23 @@
26
26
  "@progress/kendo-data-query": "^1.0.0",
27
27
  "@progress/kendo-drawing": "^1.20.4",
28
28
  "@progress/kendo-licensing": "^1.0.2",
29
- "@progress/kendo-angular-tooltip": "17.0.0-develop.16",
30
- "@progress/kendo-angular-buttons": "17.0.0-develop.16",
31
- "@progress/kendo-angular-common": "17.0.0-develop.16",
32
- "@progress/kendo-angular-dateinputs": "17.0.0-develop.16",
33
- "@progress/kendo-angular-dialog": "17.0.0-develop.16",
34
- "@progress/kendo-angular-dropdowns": "17.0.0-develop.16",
35
- "@progress/kendo-angular-icons": "17.0.0-develop.16",
36
- "@progress/kendo-angular-inputs": "17.0.0-develop.16",
37
- "@progress/kendo-angular-intl": "17.0.0-develop.16",
38
- "@progress/kendo-angular-l10n": "17.0.0-develop.16",
39
- "@progress/kendo-angular-label": "17.0.0-develop.16",
40
- "@progress/kendo-angular-popup": "17.0.0-develop.16",
29
+ "@progress/kendo-angular-tooltip": "17.0.0-develop.19",
30
+ "@progress/kendo-angular-buttons": "17.0.0-develop.19",
31
+ "@progress/kendo-angular-common": "17.0.0-develop.19",
32
+ "@progress/kendo-angular-dateinputs": "17.0.0-develop.19",
33
+ "@progress/kendo-angular-dialog": "17.0.0-develop.19",
34
+ "@progress/kendo-angular-dropdowns": "17.0.0-develop.19",
35
+ "@progress/kendo-angular-icons": "17.0.0-develop.19",
36
+ "@progress/kendo-angular-inputs": "17.0.0-develop.19",
37
+ "@progress/kendo-angular-intl": "17.0.0-develop.19",
38
+ "@progress/kendo-angular-l10n": "17.0.0-develop.19",
39
+ "@progress/kendo-angular-label": "17.0.0-develop.19",
40
+ "@progress/kendo-angular-popup": "17.0.0-develop.19",
41
41
  "rxjs": "^6.5.3 || ^7.0.0"
42
42
  },
43
43
  "dependencies": {
44
44
  "tslib": "^2.3.1",
45
- "@progress/kendo-angular-schematics": "17.0.0-develop.16",
45
+ "@progress/kendo-angular-schematics": "17.0.0-develop.19",
46
46
  "@progress/kendo-date-math": "^1.3.2",
47
47
  "@progress/kendo-draggable": "^3.0.2",
48
48
  "@progress/kendo-file-saver": "^1.0.7",
@@ -4,10 +4,10 @@ const schematics_1 = require("@angular-devkit/schematics");
4
4
  function default_1(options) {
5
5
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'SchedulerModule', package: 'scheduler', peerDependencies: {
6
6
  // peer deps of the dropdowns
7
- '@progress/kendo-angular-treeview': '17.0.0-develop.16',
8
- '@progress/kendo-angular-navigation': '17.0.0-develop.16',
7
+ '@progress/kendo-angular-treeview': '17.0.0-develop.19',
8
+ '@progress/kendo-angular-navigation': '17.0.0-develop.19',
9
9
  // peer dependency of kendo-angular-inputs
10
- '@progress/kendo-angular-dialog': '17.0.0-develop.16',
10
+ '@progress/kendo-angular-dialog': '17.0.0-develop.19',
11
11
  // peer dependency of kendo-angular-icons
12
12
  '@progress/kendo-svg-icons': '^3.0.0'
13
13
  } });
@@ -23,7 +23,8 @@ export declare class MonthViewComponent extends ConfigurationViewBase implements
23
23
  get title(): string;
24
24
  /**
25
25
  * The number of events to be rendered per day. Setting this property to 'auto'
26
- * will display all events in the respective slot.
26
+ * will display all events in the respective slot
27
+ * ([see example](slug:month_views_scheduler#setting-the-number-of-events-per-day)).
27
28
  * > When set to `'auto'` it will automatically set the `adaptiveSlotHeight` property to `true`.
28
29
  * > If set to `0` it will be normalized internally to `1`.
29
30
  * @default 2
@@ -33,13 +34,15 @@ export declare class MonthViewComponent extends ConfigurationViewBase implements
33
34
  private _eventsPerDay;
34
35
  /**
35
36
  * The height of the rendered events. Setting this property to 'auto' will
36
- * set the height of each event automatically based on its content.
37
+ * set the height of each event automatically based on its content
38
+ * ([see example](slug:month_views_scheduler#configuring-the-height-of-the-scheduler-events)).
37
39
  * > When set to `'auto'` it will automatically set the `adaptiveSlotHeight` property to `true`.
38
40
  */
39
41
  eventHeight: number | 'auto';
40
42
  /**
41
43
  * Increases the slot group (row) height when containing events up to the number of displayed events
42
- * and reduces its height if there are less events for that specific slot group (row).
44
+ * and reduces its height if there are less events for that specific slot group (row)
45
+ * ([see example](slug:month_views_scheduler#enabling-the-adaptive-slot-height-of-the-scheduler)).
43
46
  * @default false
44
47
  */
45
48
  adaptiveSlotHeight: boolean;
@@ -23,13 +23,15 @@ export declare class MultiWeekViewComponent extends ConfigurationViewBase implem
23
23
  get title(): string;
24
24
  /**
25
25
  * The height of the rendered events. Setting this property to `'auto'` will
26
- * set the height of each event automatically based on its content.
26
+ * set the height of each event automatically based on its content
27
+ * ([see example](slug:multiweek_views_scheduler#configuring-the-height-of-the-scheduler-events)).
27
28
  * > When set to `'auto'` it will automatically set the `adaptiveSlotHeight` property to `true`.
28
29
  */
29
30
  eventHeight: number | 'auto';
30
31
  /**
31
32
  * The number of events to be rendered per day. Setting this property to 'auto'
32
- * will display all events in the respective slot.
33
+ * will display all events in the respective slot
34
+ * ([see example](slug:multiweek_views_scheduler#setting-the-number-of-events-per-day)).
33
35
  * > When set to `'auto'` it will automatically set the `adaptiveSlotHeight` property to `true`.
34
36
  * > If set to `0` it will be normalized internally to `1`.
35
37
  * @default 2
@@ -39,7 +41,8 @@ export declare class MultiWeekViewComponent extends ConfigurationViewBase implem
39
41
  private _eventsPerDay;
40
42
  /**
41
43
  * Increases the slot group (row) height when containing events up to the number of displayed events
42
- * and reduces its height if there are less events for that specific slot group (row).
44
+ * and reduces its height if there are less events for that specific slot group (row)
45
+ * ([see example](slug:multiweek_views_scheduler#enabling-the-adaptive-slot-height-of-the-scheduler)).
43
46
  * @default false
44
47
  */
45
48
  adaptiveSlotHeight: boolean;