@progress/kendo-angular-scheduler 23.2.0-develop.3 → 23.2.0-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.
@@ -44,7 +44,7 @@ const packageMetadata = {
44
44
  productCode: 'KENDOUIANGULAR',
45
45
  productCodes: ['KENDOUIANGULAR'],
46
46
  publishDate: 0,
47
- version: '23.2.0-develop.3',
47
+ version: '23.2.0-develop.4',
48
48
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
49
49
  };
50
50
 
@@ -2049,9 +2049,9 @@ class FocusService {
2049
2049
  this.elementMap.delete(item.element.nativeElement);
2050
2050
  this.toggleWrapper();
2051
2051
  }
2052
- focus() {
2052
+ focus(preventScroll = true) {
2053
2053
  if (this.activeItem) {
2054
- this.activeItem.focus();
2054
+ this.activeItem.focus(preventScroll);
2055
2055
  }
2056
2056
  else {
2057
2057
  this.focusContent();
@@ -2069,24 +2069,21 @@ class FocusService {
2069
2069
  focusToolbar() {
2070
2070
  const items = Array.from(this.focusableItems);
2071
2071
  const firstFocusableTool = items.find(item => item.containerType === 'toolbar');
2072
- firstFocusableTool && firstFocusableTool.focus();
2072
+ firstFocusableTool?.focus(false);
2073
2073
  this.activeItem = firstFocusableTool;
2074
2074
  }
2075
2075
  focusNext(options) {
2076
2076
  const currentItem = this.activeItem;
2077
2077
  this.activateNext(options);
2078
- if (this.activeItem) {
2079
- this.activeItem.focus();
2080
- }
2081
2078
  return this.activeItem !== currentItem;
2082
2079
  }
2083
- focusByIndex(index) {
2080
+ focusByIndex(index, preventScroll = true) {
2084
2081
  const item = Array.from(this.items.values())[index];
2085
2082
  if (!item) {
2086
2083
  return;
2087
2084
  }
2088
2085
  this.activate(item);
2089
- this.focus();
2086
+ this.focus(preventScroll);
2090
2087
  this.zone.onStable.pipe(take(1)).subscribe(() => {
2091
2088
  const itemToFocus = Array.from(this.items.values())[index];
2092
2089
  if (!itemToFocus) {
@@ -2103,7 +2100,7 @@ class FocusService {
2103
2100
  activateNext(position) {
2104
2101
  const next = this.findNext(position);
2105
2102
  this.activeItem = next;
2106
- this.activeItem?.focus();
2103
+ this.activeItem?.focus(false);
2107
2104
  }
2108
2105
  findNext(position) {
2109
2106
  const { offset, nowrap } = { nowrap: false, offset: 1, ...position };
@@ -2418,8 +2415,8 @@ class FocusableDirective {
2418
2415
  canFocus() {
2419
2416
  return this.visible && this.enabled;
2420
2417
  }
2421
- focus() {
2422
- this.element.nativeElement.focus({ preventScroll: true });
2418
+ focus(preventScroll = true) {
2419
+ this.element.nativeElement.focus({ preventScroll });
2423
2420
  }
2424
2421
  toggleFocus(value) {
2425
2422
  const element = this.element.nativeElement;
@@ -21348,7 +21345,7 @@ class ShortcutsDirective {
21348
21345
  if (this.isInToolbarTemplate(e.target)) {
21349
21346
  return;
21350
21347
  }
21351
- const prevented = this.scheduler.onNavigationAction({ type: 'focus-prev' });
21348
+ const prevented = Boolean(this.scheduler.onNavigationAction({ type: 'focus-prev' }));
21352
21349
  if (!prevented) {
21353
21350
  const item = this.focusService.activeItem;
21354
21351
  const isFirstEvent = item.containerType === 'content' && item.element.nativeElement.matches(':first-of-type');
@@ -21372,7 +21369,7 @@ class ShortcutsDirective {
21372
21369
  if (this.isInToolbarTemplate(e.target)) {
21373
21370
  return;
21374
21371
  }
21375
- const prevented = this.scheduler.onNavigationAction({ type: 'focus-next' });
21372
+ const prevented = Boolean(this.scheduler.onNavigationAction({ type: 'focus-next' }));
21376
21373
  if (!prevented) {
21377
21374
  const isInToolbar = this.focusService.activeItem.containerType === 'toolbar';
21378
21375
  const offset = 1;
@@ -21381,7 +21378,7 @@ class ShortcutsDirective {
21381
21378
  const focusableElementsArray = Array.from(this.focusService.focusableItems);
21382
21379
  const firstFocusableContentElementIndex = focusableElementsArray.findIndex(item => item.containerType === 'content');
21383
21380
  if (firstFocusableContentElementIndex > -1) {
21384
- this.focusService.focusByIndex(firstFocusableContentElementIndex);
21381
+ this.focusService.focusByIndex(firstFocusableContentElementIndex, true);
21385
21382
  e.preventDefault();
21386
21383
  return;
21387
21384
  }
@@ -27,11 +27,11 @@ export declare class FocusService implements OnDestroy {
27
27
  ngOnDestroy(): void;
28
28
  register(item: FocusableElement): void;
29
29
  unregister(item: FocusableElement): void;
30
- focus(): void;
30
+ focus(preventScroll?: boolean): void;
31
31
  focusContent(): void;
32
32
  focusToolbar(): void;
33
33
  focusNext(options?: FocusPosition): boolean;
34
- focusByIndex(index: number): void;
34
+ focusByIndex(index: number, preventScroll?: boolean): void;
35
35
  private activate;
36
36
  private activateNext;
37
37
  private findNext;
@@ -35,8 +35,9 @@ export interface FocusableElement {
35
35
  canFocus(): boolean;
36
36
  /**
37
37
  * Focuses the element.
38
+ * @param preventScroll If `true`, the browser will not scroll the element into view. Defaults to `true`.
38
39
  */
39
- focus(): void;
40
+ focus(preventScroll?: boolean): void;
40
41
  /**
41
42
  * Toggles the focused state of the element without explicitly focusing it.
42
43
  */
@@ -29,7 +29,7 @@ export declare class FocusableDirective implements FocusableElement, OnInit {
29
29
  ngOnDestroy(): void;
30
30
  toggle(active: boolean): void;
31
31
  canFocus(): boolean;
32
- focus(): void;
32
+ focus(preventScroll?: boolean): void;
33
33
  toggleFocus(value: boolean): void;
34
34
  static ɵfac: i0.ɵɵFactoryDeclaration<FocusableDirective, never>;
35
35
  static ɵdir: i0.ɵɵDirectiveDeclaration<FocusableDirective, "[kendoSchedulerFocusIndex]", never, { "focusIndex": { "alias": "kendoSchedulerFocusIndex"; "required": false; }; "containerType": { "alias": "containerType"; "required": false; }; }, {}, never, never, true, never>;
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1771605940,
11
- "version": "23.2.0-develop.3",
10
+ "publishDate": 1771835703,
11
+ "version": "23.2.0-develop.4",
12
12
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-scheduler",
3
- "version": "23.2.0-develop.3",
3
+ "version": "23.2.0-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",
@@ -19,7 +19,7 @@
19
19
  "package": {
20
20
  "productName": "Kendo UI for Angular",
21
21
  "productCode": "KENDOUIANGULAR",
22
- "publishDate": 1771605940,
22
+ "publishDate": 1771835703,
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.7.3",
33
33
  "@progress/kendo-drawing": "^1.24.0",
34
34
  "@progress/kendo-licensing": "^1.10.0",
35
- "@progress/kendo-angular-tooltip": "23.2.0-develop.3",
36
- "@progress/kendo-angular-buttons": "23.2.0-develop.3",
37
- "@progress/kendo-angular-common": "23.2.0-develop.3",
38
- "@progress/kendo-angular-dateinputs": "23.2.0-develop.3",
39
- "@progress/kendo-angular-dialog": "23.2.0-develop.3",
40
- "@progress/kendo-angular-dropdowns": "23.2.0-develop.3",
41
- "@progress/kendo-angular-icons": "23.2.0-develop.3",
42
- "@progress/kendo-angular-inputs": "23.2.0-develop.3",
43
- "@progress/kendo-angular-intl": "23.2.0-develop.3",
44
- "@progress/kendo-angular-l10n": "23.2.0-develop.3",
45
- "@progress/kendo-angular-label": "23.2.0-develop.3",
46
- "@progress/kendo-angular-popup": "23.2.0-develop.3",
35
+ "@progress/kendo-angular-tooltip": "23.2.0-develop.4",
36
+ "@progress/kendo-angular-buttons": "23.2.0-develop.4",
37
+ "@progress/kendo-angular-common": "23.2.0-develop.4",
38
+ "@progress/kendo-angular-dateinputs": "23.2.0-develop.4",
39
+ "@progress/kendo-angular-dialog": "23.2.0-develop.4",
40
+ "@progress/kendo-angular-dropdowns": "23.2.0-develop.4",
41
+ "@progress/kendo-angular-icons": "23.2.0-develop.4",
42
+ "@progress/kendo-angular-inputs": "23.2.0-develop.4",
43
+ "@progress/kendo-angular-intl": "23.2.0-develop.4",
44
+ "@progress/kendo-angular-l10n": "23.2.0-develop.4",
45
+ "@progress/kendo-angular-label": "23.2.0-develop.4",
46
+ "@progress/kendo-angular-popup": "23.2.0-develop.4",
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": "23.2.0-develop.3",
51
+ "@progress/kendo-angular-schematics": "23.2.0-develop.4",
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': '23.2.0-develop.3',
13
- '@progress/kendo-angular-navigation': '23.2.0-develop.3',
12
+ '@progress/kendo-angular-treeview': '23.2.0-develop.4',
13
+ '@progress/kendo-angular-navigation': '23.2.0-develop.4',
14
14
  // peer dependency of kendo-angular-inputs
15
- '@progress/kendo-angular-dialog': '23.2.0-develop.3',
15
+ '@progress/kendo-angular-dialog': '23.2.0-develop.4',
16
16
  // peer dependency of kendo-angular-icons
17
17
  '@progress/kendo-svg-icons': '^4.0.0'
18
18
  } });