@progress/kendo-angular-scheduler 16.9.1-develop.1 → 16.9.1-develop.3

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: 1726051093,
13
- version: '16.9.1-develop.1',
12
+ publishDate: 1726064787,
13
+ version: '16.9.1-develop.3',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -295,12 +295,13 @@ export const convertNgClassBindings = (bindingValues) => {
295
295
  * @hidden
296
296
  */
297
297
  export function formatEventTime(start, end, isAllDay, localeId) {
298
- const startTimeFormat = { skeleton: 'yMMMMEEEEdhm' };
299
- const startDateFormat = { skeleton: 'yMMMMEEEEd' };
300
- const endFormat = isEqualDate(start, end) ? 't' : startTimeFormat;
298
+ const dateFormat = { skeleton: 'yMMMMEEEEd' };
299
+ const timeFormat = 't';
300
+ const startFormat = formatEventStart(start, dateFormat, timeFormat, isAllDay, localeId);
301
+ const endFormat = formatEventEnd(start, end, dateFormat, timeFormat, localeId);
301
302
  return isAllDay ?
302
- `${formatDate(start, startDateFormat, localeId)}` :
303
- `${formatDate(start, startTimeFormat, localeId)}–${formatDate(end, endFormat, localeId)}`;
303
+ `${startFormat}` :
304
+ `${startFormat}-${endFormat}`;
304
305
  }
305
306
  /**
306
307
  * @hidden
@@ -325,3 +326,26 @@ export const isWorkWeekDay = (day, start, end) => {
325
326
  * @hidden
326
327
  */
327
328
  export const alwaysFalse = () => false;
329
+ /**
330
+ * @hidden
331
+ */
332
+ const formatEventStart = (start, dateFormat, timeFormat, isAllDay, localeId) => {
333
+ let startFormat = `${formatDate(start, dateFormat, localeId)}`;
334
+ // the time is relevant only when the event isn't an all day event
335
+ if (!isAllDay) {
336
+ startFormat += `, ${formatDate(start, timeFormat, localeId)}`;
337
+ }
338
+ return startFormat;
339
+ };
340
+ /**
341
+ * @hidden
342
+ */
343
+ const formatEventEnd = (start, end, dateFormat, timeFormat, localeId) => {
344
+ let endFormat = '';
345
+ // the end date is relevant only when the event ends on a different day from when it starts
346
+ if (!isEqualDate(start, end)) {
347
+ endFormat = `${formatDate(end, dateFormat, localeId)}, `;
348
+ }
349
+ endFormat += `${formatDate(end, timeFormat, localeId)}`;
350
+ return endFormat;
351
+ };
@@ -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: 1726051093,
46
- version: '16.9.1-develop.1',
45
+ publishDate: 1726064787,
46
+ version: '16.9.1-develop.3',
47
47
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
48
48
  };
49
49
 
@@ -2283,12 +2283,13 @@ const convertNgClassBindings = (bindingValues) => {
2283
2283
  * @hidden
2284
2284
  */
2285
2285
  function formatEventTime(start, end, isAllDay, localeId) {
2286
- const startTimeFormat = { skeleton: 'yMMMMEEEEdhm' };
2287
- const startDateFormat = { skeleton: 'yMMMMEEEEd' };
2288
- const endFormat = isEqualDate(start, end) ? 't' : startTimeFormat;
2286
+ const dateFormat = { skeleton: 'yMMMMEEEEd' };
2287
+ const timeFormat = 't';
2288
+ const startFormat = formatEventStart(start, dateFormat, timeFormat, isAllDay, localeId);
2289
+ const endFormat = formatEventEnd(start, end, dateFormat, timeFormat, localeId);
2289
2290
  return isAllDay ?
2290
- `${formatDate(start, startDateFormat, localeId)}` :
2291
- `${formatDate(start, startTimeFormat, localeId)}–${formatDate(end, endFormat, localeId)}`;
2291
+ `${startFormat}` :
2292
+ `${startFormat}-${endFormat}`;
2292
2293
  }
2293
2294
  /**
2294
2295
  * @hidden
@@ -2313,6 +2314,29 @@ const isWorkWeekDay = (day, start, end) => {
2313
2314
  * @hidden
2314
2315
  */
2315
2316
  const alwaysFalse = () => false;
2317
+ /**
2318
+ * @hidden
2319
+ */
2320
+ const formatEventStart = (start, dateFormat, timeFormat, isAllDay, localeId) => {
2321
+ let startFormat = `${formatDate(start, dateFormat, localeId)}`;
2322
+ // the time is relevant only when the event isn't an all day event
2323
+ if (!isAllDay) {
2324
+ startFormat += `, ${formatDate(start, timeFormat, localeId)}`;
2325
+ }
2326
+ return startFormat;
2327
+ };
2328
+ /**
2329
+ * @hidden
2330
+ */
2331
+ const formatEventEnd = (start, end, dateFormat, timeFormat, localeId) => {
2332
+ let endFormat = '';
2333
+ // the end date is relevant only when the event ends on a different day from when it starts
2334
+ if (!isEqualDate(start, end)) {
2335
+ endFormat = `${formatDate(end, dateFormat, localeId)}, `;
2336
+ }
2337
+ endFormat += `${formatDate(end, timeFormat, localeId)}`;
2338
+ return endFormat;
2339
+ };
2316
2340
 
2317
2341
  /**
2318
2342
  * @hidden
@@ -18048,6 +18072,10 @@ class ShortcutsDirective {
18048
18072
  if (e.target.tagName === CALENDAR_TAG) {
18049
18073
  return;
18050
18074
  }
18075
+ // do nothing if the shortcut is executed on an element inside the kendoSchedulerToolbarTemplate
18076
+ if (this.isInToolbarTemplate(e.target)) {
18077
+ return;
18078
+ }
18051
18079
  const prevented = this.scheduler.onNavigationAction({ type: 'focus-prev' });
18052
18080
  if (!prevented) {
18053
18081
  const item = this.focusService.activeItem;
@@ -18065,6 +18093,10 @@ class ShortcutsDirective {
18065
18093
  if (e.target.tagName === CALENDAR_TAG) {
18066
18094
  return;
18067
18095
  }
18096
+ // do nothing if the shortcut is executed on an element inside the kendoSchedulerToolbarTemplate
18097
+ if (this.isInToolbarTemplate(e.target)) {
18098
+ return;
18099
+ }
18068
18100
  const prevented = this.scheduler.onNavigationAction({ type: 'focus-next' });
18069
18101
  if (!prevented) {
18070
18102
  const isInToolbar = this.focusService.activeItem.containerType === 'toolbar';
@@ -18115,6 +18147,13 @@ class ShortcutsDirective {
18115
18147
  focusWait() {
18116
18148
  this.viewState.layoutEnd.pipe(take(1)).subscribe(() => this.focusService.focus());
18117
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
+ }
18118
18157
  }
18119
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 });
18120
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: 1726051093,
46
- version: '16.9.1-develop.1',
45
+ publishDate: 1726064787,
46
+ version: '16.9.1-develop.3',
47
47
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
48
48
  };
49
49
 
@@ -2248,12 +2248,13 @@ const convertNgClassBindings = (bindingValues) => {
2248
2248
  * @hidden
2249
2249
  */
2250
2250
  function formatEventTime(start, end, isAllDay, localeId) {
2251
- const startTimeFormat = { skeleton: 'yMMMMEEEEdhm' };
2252
- const startDateFormat = { skeleton: 'yMMMMEEEEd' };
2253
- const endFormat = isEqualDate(start, end) ? 't' : startTimeFormat;
2251
+ const dateFormat = { skeleton: 'yMMMMEEEEd' };
2252
+ const timeFormat = 't';
2253
+ const startFormat = formatEventStart(start, dateFormat, timeFormat, isAllDay, localeId);
2254
+ const endFormat = formatEventEnd(start, end, dateFormat, timeFormat, localeId);
2254
2255
  return isAllDay ?
2255
- `${formatDate(start, startDateFormat, localeId)}` :
2256
- `${formatDate(start, startTimeFormat, localeId)}–${formatDate(end, endFormat, localeId)}`;
2256
+ `${startFormat}` :
2257
+ `${startFormat}-${endFormat}`;
2257
2258
  }
2258
2259
  /**
2259
2260
  * @hidden
@@ -2278,6 +2279,29 @@ const isWorkWeekDay = (day, start, end) => {
2278
2279
  * @hidden
2279
2280
  */
2280
2281
  const alwaysFalse = () => false;
2282
+ /**
2283
+ * @hidden
2284
+ */
2285
+ const formatEventStart = (start, dateFormat, timeFormat, isAllDay, localeId) => {
2286
+ let startFormat = `${formatDate(start, dateFormat, localeId)}`;
2287
+ // the time is relevant only when the event isn't an all day event
2288
+ if (!isAllDay) {
2289
+ startFormat += `, ${formatDate(start, timeFormat, localeId)}`;
2290
+ }
2291
+ return startFormat;
2292
+ };
2293
+ /**
2294
+ * @hidden
2295
+ */
2296
+ const formatEventEnd = (start, end, dateFormat, timeFormat, localeId) => {
2297
+ let endFormat = '';
2298
+ // the end date is relevant only when the event ends on a different day from when it starts
2299
+ if (!isEqualDate(start, end)) {
2300
+ endFormat = `${formatDate(end, dateFormat, localeId)}, `;
2301
+ }
2302
+ endFormat += `${formatDate(end, timeFormat, localeId)}`;
2303
+ return endFormat;
2304
+ };
2281
2305
 
2282
2306
  /**
2283
2307
  * @hidden
@@ -17993,6 +18017,10 @@ class ShortcutsDirective {
17993
18017
  if (e.target.tagName === CALENDAR_TAG) {
17994
18018
  return;
17995
18019
  }
18020
+ // do nothing if the shortcut is executed on an element inside the kendoSchedulerToolbarTemplate
18021
+ if (this.isInToolbarTemplate(e.target)) {
18022
+ return;
18023
+ }
17996
18024
  const prevented = this.scheduler.onNavigationAction({ type: 'focus-prev' });
17997
18025
  if (!prevented) {
17998
18026
  const item = this.focusService.activeItem;
@@ -18010,6 +18038,10 @@ class ShortcutsDirective {
18010
18038
  if (e.target.tagName === CALENDAR_TAG) {
18011
18039
  return;
18012
18040
  }
18041
+ // do nothing if the shortcut is executed on an element inside the kendoSchedulerToolbarTemplate
18042
+ if (this.isInToolbarTemplate(e.target)) {
18043
+ return;
18044
+ }
18013
18045
  const prevented = this.scheduler.onNavigationAction({ type: 'focus-next' });
18014
18046
  if (!prevented) {
18015
18047
  const isInToolbar = this.focusService.activeItem.containerType === 'toolbar';
@@ -18060,6 +18092,13 @@ class ShortcutsDirective {
18060
18092
  focusWait() {
18061
18093
  this.viewState.layoutEnd.pipe(take(1)).subscribe(() => this.focusService.focus());
18062
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
+ }
18063
18102
  }
18064
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 });
18065
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.1",
3
+ "version": "16.9.1-develop.3",
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.1",
30
- "@progress/kendo-angular-buttons": "16.9.1-develop.1",
31
- "@progress/kendo-angular-common": "16.9.1-develop.1",
32
- "@progress/kendo-angular-dateinputs": "16.9.1-develop.1",
33
- "@progress/kendo-angular-dialog": "16.9.1-develop.1",
34
- "@progress/kendo-angular-dropdowns": "16.9.1-develop.1",
35
- "@progress/kendo-angular-icons": "16.9.1-develop.1",
36
- "@progress/kendo-angular-inputs": "16.9.1-develop.1",
37
- "@progress/kendo-angular-intl": "16.9.1-develop.1",
38
- "@progress/kendo-angular-l10n": "16.9.1-develop.1",
39
- "@progress/kendo-angular-label": "16.9.1-develop.1",
40
- "@progress/kendo-angular-popup": "16.9.1-develop.1",
29
+ "@progress/kendo-angular-tooltip": "16.9.1-develop.3",
30
+ "@progress/kendo-angular-buttons": "16.9.1-develop.3",
31
+ "@progress/kendo-angular-common": "16.9.1-develop.3",
32
+ "@progress/kendo-angular-dateinputs": "16.9.1-develop.3",
33
+ "@progress/kendo-angular-dialog": "16.9.1-develop.3",
34
+ "@progress/kendo-angular-dropdowns": "16.9.1-develop.3",
35
+ "@progress/kendo-angular-icons": "16.9.1-develop.3",
36
+ "@progress/kendo-angular-inputs": "16.9.1-develop.3",
37
+ "@progress/kendo-angular-intl": "16.9.1-develop.3",
38
+ "@progress/kendo-angular-l10n": "16.9.1-develop.3",
39
+ "@progress/kendo-angular-label": "16.9.1-develop.3",
40
+ "@progress/kendo-angular-popup": "16.9.1-develop.3",
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.1",
45
+ "@progress/kendo-angular-schematics": "16.9.1-develop.3",
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.1',
8
- '@progress/kendo-angular-navigation': '16.9.1-develop.1',
7
+ '@progress/kendo-angular-treeview': '16.9.1-develop.3',
8
+ '@progress/kendo-angular-navigation': '16.9.1-develop.3',
9
9
  // peer dependency of kendo-angular-inputs
10
- '@progress/kendo-angular-dialog': '16.9.1-develop.1',
10
+ '@progress/kendo-angular-dialog': '16.9.1-develop.3',
11
11
  // peer dependency of kendo-angular-icons
12
12
  '@progress/kendo-svg-icons': '^3.0.0'
13
13
  } });