@progress/kendo-angular-scheduler 21.2.0-develop.9 → 21.2.0

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.
@@ -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 { ChangeDetectorRef, Directive, NgZone } from '@angular/core';
6
- import { Keys, normalizeNumpadKeys } from '@progress/kendo-angular-common';
6
+ import { Keys, normalizeKeys } from '@progress/kendo-angular-common';
7
7
  import { ZonedDate } from '@progress/kendo-date-math';
8
8
  import { Subscription } from 'rxjs';
9
9
  import { FocusService } from './focus.service';
@@ -35,7 +35,7 @@ export class ShortcutsDirective {
35
35
  viewState;
36
36
  dialogsService;
37
37
  shortcuts = [{
38
- match: e => e.code === Keys.KeyC && noModifiers(e),
38
+ match: e => normalizeKeys(e) === Keys.KeyC && noModifiers(e),
39
39
  action: e => {
40
40
  const scheduler = this.scheduler;
41
41
  const hours = new Date().getHours();
@@ -62,12 +62,12 @@ export class ShortcutsDirective {
62
62
  }
63
63
  }, {
64
64
  match: e => {
65
- const code = normalizeNumpadKeys(e);
65
+ const code = normalizeKeys(e);
66
66
  return (code.startsWith('Digit') || code.startsWith('Numpad')) && withModifiers(e, Modifiers.AltKey);
67
67
  },
68
68
  action: e => {
69
69
  const scheduler = this.scheduler;
70
- const code = normalizeNumpadKeys(e);
70
+ const code = normalizeKeys(e);
71
71
  const viewIndex = this.digitToNumber(code, code.startsWith('Digit') ? 'Digit' : 'Numpad') - 1;
72
72
  const views = scheduler.views.toArray();
73
73
  const view = views[viewIndex];
@@ -91,7 +91,7 @@ export class ShortcutsDirective {
91
91
  });
92
92
  }
93
93
  }, {
94
- match: e => e.code === Keys.KeyT && noModifiers(e),
94
+ match: e => normalizeKeys(e) === Keys.KeyT && noModifiers(e),
95
95
  action: () => {
96
96
  this.zone.run(() => {
97
97
  this.scheduler.onNavigationAction({ type: 'today' });
@@ -99,7 +99,7 @@ export class ShortcutsDirective {
99
99
  });
100
100
  }
101
101
  }, {
102
- match: e => e.code === Keys.KeyB && noModifiers(e),
102
+ match: e => normalizeKeys(e) === Keys.KeyB && noModifiers(e),
103
103
  action: () => {
104
104
  this.zone.run(() => {
105
105
  this.scheduler.onNavigationAction({ type: 'toggle-business-hours' });
@@ -108,11 +108,11 @@ export class ShortcutsDirective {
108
108
  }
109
109
  }, {
110
110
  match: (e) => {
111
- const code = normalizeNumpadKeys(e);
111
+ const code = normalizeKeys(e);
112
112
  return (code === Keys.ArrowLeft || code === Keys.ArrowRight) && withModifiers(e, Modifiers.ShiftKey);
113
113
  },
114
114
  action: (e) => {
115
- const code = normalizeNumpadKeys(e);
115
+ const code = normalizeKeys(e);
116
116
  const type = code === Keys.ArrowLeft ? 'prev' : 'next';
117
117
  this.zone.run(() => {
118
118
  this.scheduler.onNavigationAction({ type });
@@ -121,7 +121,7 @@ export class ShortcutsDirective {
121
121
  }
122
122
  }, {
123
123
  match: e => {
124
- const code = normalizeNumpadKeys(e);
124
+ const code = normalizeKeys(e);
125
125
  return (code === Keys.ArrowUp || code === Keys.ArrowLeft) && noModifiers(e) && !isContentWrapper(e.target);
126
126
  },
127
127
  action: e => {
@@ -137,7 +137,7 @@ export class ShortcutsDirective {
137
137
  if (!prevented) {
138
138
  const item = this.focusService.activeItem;
139
139
  const isFirstEvent = item.containerType === 'content' && item.element.nativeElement.matches(':first-of-type');
140
- const code = normalizeNumpadKeys(e);
140
+ const code = normalizeKeys(e);
141
141
  const isUpArrow = code === Keys.ArrowUp;
142
142
  // eslint-disable-next-line no-unused-expressions
143
143
  isFirstEvent && isUpArrow ? this.focusService.focusToolbar() : this.focusService.focusNext({ offset: -1 });
@@ -146,7 +146,7 @@ export class ShortcutsDirective {
146
146
  }
147
147
  }, {
148
148
  match: e => {
149
- const code = normalizeNumpadKeys(e);
149
+ const code = normalizeKeys(e);
150
150
  return (code === Keys.ArrowDown || code === Keys.ArrowRight) && noModifiers(e) && !isContentWrapper(e.target);
151
151
  },
152
152
  action: e => {
@@ -162,7 +162,7 @@ export class ShortcutsDirective {
162
162
  if (!prevented) {
163
163
  const isInToolbar = this.focusService.activeItem.containerType === 'toolbar';
164
164
  const offset = 1;
165
- const code = normalizeNumpadKeys(e);
165
+ const code = normalizeKeys(e);
166
166
  if (code === Keys.ArrowDown && isInToolbar) {
167
167
  const focusableElementsArray = Array.from(this.focusService.focusableItems);
168
168
  const firstFocusableContentElementIndex = focusableElementsArray.findIndex(item => item.containerType === 'content');
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1764346789,
14
- version: '21.2.0-develop.9',
13
+ publishDate: 1764751737,
14
+ version: '21.2.0',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -7,7 +7,7 @@ import { Directive, Optional, Injectable, EventEmitter, Input, Inject, isDevMode
7
7
  import * as i1$1 from '@progress/kendo-angular-l10n';
8
8
  import { LocalizationService, L10N_PREFIX, RTL, ComponentMessages } from '@progress/kendo-angular-l10n';
9
9
  import * as i7 from '@progress/kendo-angular-common';
10
- import { getter, setter, hasObservers, isDocumentAvailable, isVisible as isVisible$1, scrollbarWidth, isChanged, Keys, ResizeSensorComponent, getLicenseMessage, shouldShowValidationUI, anyChanged, WatermarkOverlayComponent, guid, normalizeNumpadKeys, ResizeBatchService } from '@progress/kendo-angular-common';
10
+ import { getter, setter, hasObservers, isDocumentAvailable, isVisible as isVisible$1, scrollbarWidth, isChanged, Keys, ResizeSensorComponent, getLicenseMessage, shouldShowValidationUI, anyChanged, WatermarkOverlayComponent, guid, normalizeKeys, ResizeBatchService } from '@progress/kendo-angular-common';
11
11
  import { isEqualDate, ZonedDate, toLocalDate, getDate, timezoneNames, Day, MS_PER_DAY as MS_PER_DAY$1, addDays, firstDayOfMonth, lastDayOfMonth, firstDayInWeek, addMonths, addWeeks, addYears } from '@progress/kendo-date-math';
12
12
  import { auditTime, buffer, filter, map, debounceTime, take, distinctUntilChanged, switchMap, tap } from 'rxjs/operators';
13
13
  import { validatePackage } from '@progress/kendo-licensing';
@@ -43,8 +43,8 @@ const packageMetadata = {
43
43
  productName: 'Kendo UI for Angular',
44
44
  productCode: 'KENDOUIANGULAR',
45
45
  productCodes: ['KENDOUIANGULAR'],
46
- publishDate: 1764346789,
47
- version: '21.2.0-develop.9',
46
+ publishDate: 1764751737,
47
+ version: '21.2.0',
48
48
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
49
49
  };
50
50
 
@@ -21003,7 +21003,7 @@ class ShortcutsDirective {
21003
21003
  viewState;
21004
21004
  dialogsService;
21005
21005
  shortcuts = [{
21006
- match: e => e.code === Keys.KeyC && noModifiers(e),
21006
+ match: e => normalizeKeys(e) === Keys.KeyC && noModifiers(e),
21007
21007
  action: e => {
21008
21008
  const scheduler = this.scheduler;
21009
21009
  const hours = new Date().getHours();
@@ -21030,12 +21030,12 @@ class ShortcutsDirective {
21030
21030
  }
21031
21031
  }, {
21032
21032
  match: e => {
21033
- const code = normalizeNumpadKeys(e);
21033
+ const code = normalizeKeys(e);
21034
21034
  return (code.startsWith('Digit') || code.startsWith('Numpad')) && withModifiers(e, Modifiers.AltKey);
21035
21035
  },
21036
21036
  action: e => {
21037
21037
  const scheduler = this.scheduler;
21038
- const code = normalizeNumpadKeys(e);
21038
+ const code = normalizeKeys(e);
21039
21039
  const viewIndex = this.digitToNumber(code, code.startsWith('Digit') ? 'Digit' : 'Numpad') - 1;
21040
21040
  const views = scheduler.views.toArray();
21041
21041
  const view = views[viewIndex];
@@ -21059,7 +21059,7 @@ class ShortcutsDirective {
21059
21059
  });
21060
21060
  }
21061
21061
  }, {
21062
- match: e => e.code === Keys.KeyT && noModifiers(e),
21062
+ match: e => normalizeKeys(e) === Keys.KeyT && noModifiers(e),
21063
21063
  action: () => {
21064
21064
  this.zone.run(() => {
21065
21065
  this.scheduler.onNavigationAction({ type: 'today' });
@@ -21067,7 +21067,7 @@ class ShortcutsDirective {
21067
21067
  });
21068
21068
  }
21069
21069
  }, {
21070
- match: e => e.code === Keys.KeyB && noModifiers(e),
21070
+ match: e => normalizeKeys(e) === Keys.KeyB && noModifiers(e),
21071
21071
  action: () => {
21072
21072
  this.zone.run(() => {
21073
21073
  this.scheduler.onNavigationAction({ type: 'toggle-business-hours' });
@@ -21076,11 +21076,11 @@ class ShortcutsDirective {
21076
21076
  }
21077
21077
  }, {
21078
21078
  match: (e) => {
21079
- const code = normalizeNumpadKeys(e);
21079
+ const code = normalizeKeys(e);
21080
21080
  return (code === Keys.ArrowLeft || code === Keys.ArrowRight) && withModifiers(e, Modifiers.ShiftKey);
21081
21081
  },
21082
21082
  action: (e) => {
21083
- const code = normalizeNumpadKeys(e);
21083
+ const code = normalizeKeys(e);
21084
21084
  const type = code === Keys.ArrowLeft ? 'prev' : 'next';
21085
21085
  this.zone.run(() => {
21086
21086
  this.scheduler.onNavigationAction({ type });
@@ -21089,7 +21089,7 @@ class ShortcutsDirective {
21089
21089
  }
21090
21090
  }, {
21091
21091
  match: e => {
21092
- const code = normalizeNumpadKeys(e);
21092
+ const code = normalizeKeys(e);
21093
21093
  return (code === Keys.ArrowUp || code === Keys.ArrowLeft) && noModifiers(e) && !isContentWrapper(e.target);
21094
21094
  },
21095
21095
  action: e => {
@@ -21105,7 +21105,7 @@ class ShortcutsDirective {
21105
21105
  if (!prevented) {
21106
21106
  const item = this.focusService.activeItem;
21107
21107
  const isFirstEvent = item.containerType === 'content' && item.element.nativeElement.matches(':first-of-type');
21108
- const code = normalizeNumpadKeys(e);
21108
+ const code = normalizeKeys(e);
21109
21109
  const isUpArrow = code === Keys.ArrowUp;
21110
21110
  // eslint-disable-next-line no-unused-expressions
21111
21111
  isFirstEvent && isUpArrow ? this.focusService.focusToolbar() : this.focusService.focusNext({ offset: -1 });
@@ -21114,7 +21114,7 @@ class ShortcutsDirective {
21114
21114
  }
21115
21115
  }, {
21116
21116
  match: e => {
21117
- const code = normalizeNumpadKeys(e);
21117
+ const code = normalizeKeys(e);
21118
21118
  return (code === Keys.ArrowDown || code === Keys.ArrowRight) && noModifiers(e) && !isContentWrapper(e.target);
21119
21119
  },
21120
21120
  action: e => {
@@ -21130,7 +21130,7 @@ class ShortcutsDirective {
21130
21130
  if (!prevented) {
21131
21131
  const isInToolbar = this.focusService.activeItem.containerType === 'toolbar';
21132
21132
  const offset = 1;
21133
- const code = normalizeNumpadKeys(e);
21133
+ const code = normalizeKeys(e);
21134
21134
  if (code === Keys.ArrowDown && isInToolbar) {
21135
21135
  const focusableElementsArray = Array.from(this.focusService.focusableItems);
21136
21136
  const firstFocusableContentElementIndex = focusableElementsArray.findIndex(item => item.containerType === 'content');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-scheduler",
3
- "version": "21.2.0-develop.9",
3
+ "version": "21.2.0",
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",
@@ -19,7 +19,7 @@
19
19
  "package": {
20
20
  "productName": "Kendo UI for Angular",
21
21
  "productCode": "KENDOUIANGULAR",
22
- "publishDate": 1764346789,
22
+ "publishDate": 1764751737,
23
23
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
24
24
  }
25
25
  },
@@ -32,23 +32,23 @@
32
32
  "@progress/kendo-data-query": "^1.0.0",
33
33
  "@progress/kendo-drawing": "^1.21.0",
34
34
  "@progress/kendo-licensing": "^1.7.0",
35
- "@progress/kendo-angular-tooltip": "21.2.0-develop.9",
36
- "@progress/kendo-angular-buttons": "21.2.0-develop.9",
37
- "@progress/kendo-angular-common": "21.2.0-develop.9",
38
- "@progress/kendo-angular-dateinputs": "21.2.0-develop.9",
39
- "@progress/kendo-angular-dialog": "21.2.0-develop.9",
40
- "@progress/kendo-angular-dropdowns": "21.2.0-develop.9",
41
- "@progress/kendo-angular-icons": "21.2.0-develop.9",
42
- "@progress/kendo-angular-inputs": "21.2.0-develop.9",
43
- "@progress/kendo-angular-intl": "21.2.0-develop.9",
44
- "@progress/kendo-angular-l10n": "21.2.0-develop.9",
45
- "@progress/kendo-angular-label": "21.2.0-develop.9",
46
- "@progress/kendo-angular-popup": "21.2.0-develop.9",
35
+ "@progress/kendo-angular-tooltip": "21.2.0",
36
+ "@progress/kendo-angular-buttons": "21.2.0",
37
+ "@progress/kendo-angular-common": "21.2.0",
38
+ "@progress/kendo-angular-dateinputs": "21.2.0",
39
+ "@progress/kendo-angular-dialog": "21.2.0",
40
+ "@progress/kendo-angular-dropdowns": "21.2.0",
41
+ "@progress/kendo-angular-icons": "21.2.0",
42
+ "@progress/kendo-angular-inputs": "21.2.0",
43
+ "@progress/kendo-angular-intl": "21.2.0",
44
+ "@progress/kendo-angular-l10n": "21.2.0",
45
+ "@progress/kendo-angular-label": "21.2.0",
46
+ "@progress/kendo-angular-popup": "21.2.0",
47
47
  "rxjs": "^6.5.3 || ^7.0.0"
48
48
  },
49
49
  "dependencies": {
50
50
  "tslib": "^2.3.1",
51
- "@progress/kendo-angular-schematics": "21.2.0-develop.9",
51
+ "@progress/kendo-angular-schematics": "21.2.0",
52
52
  "@progress/kendo-date-math": "^1.3.2",
53
53
  "@progress/kendo-draggable": "^3.0.2",
54
54
  "@progress/kendo-file-saver": "^1.0.7",
@@ -9,10 +9,10 @@ const schematics_1 = require("@angular-devkit/schematics");
9
9
  function default_1(options) {
10
10
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'SchedulerModule', package: 'scheduler', peerDependencies: {
11
11
  // peer deps of the dropdowns
12
- '@progress/kendo-angular-treeview': '21.2.0-develop.9',
13
- '@progress/kendo-angular-navigation': '21.2.0-develop.9',
12
+ '@progress/kendo-angular-treeview': '21.2.0',
13
+ '@progress/kendo-angular-navigation': '21.2.0',
14
14
  // peer dependency of kendo-angular-inputs
15
- '@progress/kendo-angular-dialog': '21.2.0-develop.9',
15
+ '@progress/kendo-angular-dialog': '21.2.0',
16
16
  // peer dependency of kendo-angular-icons
17
17
  '@progress/kendo-svg-icons': '^4.0.0'
18
18
  } });