@progress/kendo-angular-scheduler 16.9.1-develop.2 → 16.9.1-develop.4

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.
@@ -119,6 +119,10 @@ export class ShortcutsDirective {
119
119
  if (e.target.tagName === CALENDAR_TAG) {
120
120
  return;
121
121
  }
122
+ // do nothing if the shortcut is executed on an element inside the kendoSchedulerToolbarTemplate
123
+ if (this.isInToolbarTemplate(e.target)) {
124
+ return;
125
+ }
122
126
  const prevented = this.scheduler.onNavigationAction({ type: 'focus-prev' });
123
127
  if (!prevented) {
124
128
  const item = this.focusService.activeItem;
@@ -136,6 +140,10 @@ export class ShortcutsDirective {
136
140
  if (e.target.tagName === CALENDAR_TAG) {
137
141
  return;
138
142
  }
143
+ // do nothing if the shortcut is executed on an element inside the kendoSchedulerToolbarTemplate
144
+ if (this.isInToolbarTemplate(e.target)) {
145
+ return;
146
+ }
139
147
  const prevented = this.scheduler.onNavigationAction({ type: 'focus-next' });
140
148
  if (!prevented) {
141
149
  const isInToolbar = this.focusService.activeItem.containerType === 'toolbar';
@@ -186,6 +194,13 @@ export class ShortcutsDirective {
186
194
  focusWait() {
187
195
  this.viewState.layoutEnd.pipe(take(1)).subscribe(() => this.focusService.focus());
188
196
  }
197
+ isInToolbarTemplate(element) {
198
+ const isInToolbar = element.closest('.k-scheduler-toolbar');
199
+ const isInBuiltInElement = element.closest('.k-toolbar-group') ||
200
+ element.closest('.k-scheduler-views') ||
201
+ element.closest('.k-views-dropdown');
202
+ return isInToolbar && !isInBuiltInElement;
203
+ }
189
204
  }
190
205
  ShortcutsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ShortcutsDirective, deps: [{ token: i1.SchedulerComponent }, { token: i2.DomEventsService }, { token: i3.FocusService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i4.ViewStateService }, { token: i5.DialogsService }], target: i0.ɵɵFactoryTarget.Directive });
191
206
  ShortcutsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ShortcutsDirective, isStandalone: true, selector: "kendo-scheduler", ngImport: i0 });
@@ -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: 1726062982,
13
- version: '16.9.1-develop.2',
12
+ publishDate: 1726211675,
13
+ version: '16.9.1-develop.4',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -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: 1726062982,
46
- version: '16.9.1-develop.2',
45
+ publishDate: 1726211675,
46
+ version: '16.9.1-develop.4',
47
47
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
48
48
  };
49
49
 
@@ -18072,6 +18072,10 @@ class ShortcutsDirective {
18072
18072
  if (e.target.tagName === CALENDAR_TAG) {
18073
18073
  return;
18074
18074
  }
18075
+ // do nothing if the shortcut is executed on an element inside the kendoSchedulerToolbarTemplate
18076
+ if (this.isInToolbarTemplate(e.target)) {
18077
+ return;
18078
+ }
18075
18079
  const prevented = this.scheduler.onNavigationAction({ type: 'focus-prev' });
18076
18080
  if (!prevented) {
18077
18081
  const item = this.focusService.activeItem;
@@ -18089,6 +18093,10 @@ class ShortcutsDirective {
18089
18093
  if (e.target.tagName === CALENDAR_TAG) {
18090
18094
  return;
18091
18095
  }
18096
+ // do nothing if the shortcut is executed on an element inside the kendoSchedulerToolbarTemplate
18097
+ if (this.isInToolbarTemplate(e.target)) {
18098
+ return;
18099
+ }
18092
18100
  const prevented = this.scheduler.onNavigationAction({ type: 'focus-next' });
18093
18101
  if (!prevented) {
18094
18102
  const isInToolbar = this.focusService.activeItem.containerType === 'toolbar';
@@ -18139,6 +18147,13 @@ class ShortcutsDirective {
18139
18147
  focusWait() {
18140
18148
  this.viewState.layoutEnd.pipe(take(1)).subscribe(() => this.focusService.focus());
18141
18149
  }
18150
+ isInToolbarTemplate(element) {
18151
+ const isInToolbar = element.closest('.k-scheduler-toolbar');
18152
+ const isInBuiltInElement = element.closest('.k-toolbar-group') ||
18153
+ element.closest('.k-scheduler-views') ||
18154
+ element.closest('.k-views-dropdown');
18155
+ return isInToolbar && !isInBuiltInElement;
18156
+ }
18142
18157
  }
18143
18158
  ShortcutsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ShortcutsDirective, deps: [{ token: SchedulerComponent }, { token: DomEventsService }, { token: FocusService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: ViewStateService }, { token: DialogsService }], target: i0.ɵɵFactoryTarget.Directive });
18144
18159
  ShortcutsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ShortcutsDirective, isStandalone: true, selector: "kendo-scheduler", ngImport: i0 });
@@ -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: 1726062982,
46
- version: '16.9.1-develop.2',
45
+ publishDate: 1726211675,
46
+ version: '16.9.1-develop.4',
47
47
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
48
48
  };
49
49
 
@@ -18017,6 +18017,10 @@ class ShortcutsDirective {
18017
18017
  if (e.target.tagName === CALENDAR_TAG) {
18018
18018
  return;
18019
18019
  }
18020
+ // do nothing if the shortcut is executed on an element inside the kendoSchedulerToolbarTemplate
18021
+ if (this.isInToolbarTemplate(e.target)) {
18022
+ return;
18023
+ }
18020
18024
  const prevented = this.scheduler.onNavigationAction({ type: 'focus-prev' });
18021
18025
  if (!prevented) {
18022
18026
  const item = this.focusService.activeItem;
@@ -18034,6 +18038,10 @@ class ShortcutsDirective {
18034
18038
  if (e.target.tagName === CALENDAR_TAG) {
18035
18039
  return;
18036
18040
  }
18041
+ // do nothing if the shortcut is executed on an element inside the kendoSchedulerToolbarTemplate
18042
+ if (this.isInToolbarTemplate(e.target)) {
18043
+ return;
18044
+ }
18037
18045
  const prevented = this.scheduler.onNavigationAction({ type: 'focus-next' });
18038
18046
  if (!prevented) {
18039
18047
  const isInToolbar = this.focusService.activeItem.containerType === 'toolbar';
@@ -18084,6 +18092,13 @@ class ShortcutsDirective {
18084
18092
  focusWait() {
18085
18093
  this.viewState.layoutEnd.pipe(take(1)).subscribe(() => this.focusService.focus());
18086
18094
  }
18095
+ isInToolbarTemplate(element) {
18096
+ const isInToolbar = element.closest('.k-scheduler-toolbar');
18097
+ const isInBuiltInElement = element.closest('.k-toolbar-group') ||
18098
+ element.closest('.k-scheduler-views') ||
18099
+ element.closest('.k-views-dropdown');
18100
+ return isInToolbar && !isInBuiltInElement;
18101
+ }
18087
18102
  }
18088
18103
  ShortcutsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ShortcutsDirective, deps: [{ token: SchedulerComponent }, { token: DomEventsService }, { token: FocusService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: ViewStateService }, { token: DialogsService }], target: i0.ɵɵFactoryTarget.Directive });
18089
18104
  ShortcutsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ShortcutsDirective, isStandalone: true, selector: "kendo-scheduler", ngImport: i0 });
@@ -27,6 +27,7 @@ export declare class ShortcutsDirective {
27
27
  private onKeydown;
28
28
  private onEventKeydown;
29
29
  private focusWait;
30
+ private isInToolbarTemplate;
30
31
  static ɵfac: i0.ɵɵFactoryDeclaration<ShortcutsDirective, never>;
31
32
  static ɵdir: i0.ɵɵDirectiveDeclaration<ShortcutsDirective, "kendo-scheduler", never, {}, {}, never, never, true, never>;
32
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-scheduler",
3
- "version": "16.9.1-develop.2",
3
+ "version": "16.9.1-develop.4",
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.19.0",
28
28
  "@progress/kendo-licensing": "^1.0.2",
29
- "@progress/kendo-angular-tooltip": "16.9.1-develop.2",
30
- "@progress/kendo-angular-buttons": "16.9.1-develop.2",
31
- "@progress/kendo-angular-common": "16.9.1-develop.2",
32
- "@progress/kendo-angular-dateinputs": "16.9.1-develop.2",
33
- "@progress/kendo-angular-dialog": "16.9.1-develop.2",
34
- "@progress/kendo-angular-dropdowns": "16.9.1-develop.2",
35
- "@progress/kendo-angular-icons": "16.9.1-develop.2",
36
- "@progress/kendo-angular-inputs": "16.9.1-develop.2",
37
- "@progress/kendo-angular-intl": "16.9.1-develop.2",
38
- "@progress/kendo-angular-l10n": "16.9.1-develop.2",
39
- "@progress/kendo-angular-label": "16.9.1-develop.2",
40
- "@progress/kendo-angular-popup": "16.9.1-develop.2",
29
+ "@progress/kendo-angular-tooltip": "16.9.1-develop.4",
30
+ "@progress/kendo-angular-buttons": "16.9.1-develop.4",
31
+ "@progress/kendo-angular-common": "16.9.1-develop.4",
32
+ "@progress/kendo-angular-dateinputs": "16.9.1-develop.4",
33
+ "@progress/kendo-angular-dialog": "16.9.1-develop.4",
34
+ "@progress/kendo-angular-dropdowns": "16.9.1-develop.4",
35
+ "@progress/kendo-angular-icons": "16.9.1-develop.4",
36
+ "@progress/kendo-angular-inputs": "16.9.1-develop.4",
37
+ "@progress/kendo-angular-intl": "16.9.1-develop.4",
38
+ "@progress/kendo-angular-l10n": "16.9.1-develop.4",
39
+ "@progress/kendo-angular-label": "16.9.1-develop.4",
40
+ "@progress/kendo-angular-popup": "16.9.1-develop.4",
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": "16.9.1-develop.2",
45
+ "@progress/kendo-angular-schematics": "16.9.1-develop.4",
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': '16.9.1-develop.2',
8
- '@progress/kendo-angular-navigation': '16.9.1-develop.2',
7
+ '@progress/kendo-angular-treeview': '16.9.1-develop.4',
8
+ '@progress/kendo-angular-navigation': '16.9.1-develop.4',
9
9
  // peer dependency of kendo-angular-inputs
10
- '@progress/kendo-angular-dialog': '16.9.1-develop.2',
10
+ '@progress/kendo-angular-dialog': '16.9.1-develop.4',
11
11
  // peer dependency of kendo-angular-icons
12
12
  '@progress/kendo-svg-icons': '^3.0.0'
13
13
  } });