@progress/kendo-angular-gantt 26.1.0-develop.4 → 26.1.0-develop.5

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.
@@ -8,7 +8,7 @@ import { ColumnBase, ColumnComponent, ColumnGroupComponent, SpanColumnComponent,
8
8
  import { cloneDate, addWeeks, firstDayInWeek, addDays, lastDayOfMonth, getDate, firstDayOfMonth, addMonths, lastMonthOfYear, MS_PER_DAY, MS_PER_HOUR, isEqual } from '@progress/kendo-date-math';
9
9
  import { Subject, Subscription, fromEvent, forkJoin, EMPTY, isObservable, of } from 'rxjs';
10
10
  import { validatePackage } from '@progress/kendo-licensing';
11
- import { Keys, closestInScope, matchesClasses, isDocumentAvailable, isPresent as isPresent$1, EventsOutsideAngularDirective, DraggableDirective, PreventableEvent, anyChanged, closest, closestBySelector, focusableSelector, isVisible, getLicenseMessage, shouldShowValidationUI, hasObservers, scrollbarWidth, normalizeKeys, WatermarkOverlayComponent, KENDO_WEBMCP_HOST, provideComponentName, ResizeBatchService } from '@progress/kendo-angular-common';
11
+ import { Keys, closestInScope, matchesClasses, isDocumentAvailable, hasFocusableParent, isPresent as isPresent$1, EventsOutsideAngularDirective, DraggableDirective, PreventableEvent, anyChanged, closest, closestBySelector, focusableSelector, isVisible, getLicenseMessage, shouldShowValidationUI, hasObservers, scrollbarWidth, normalizeKeys, WatermarkOverlayComponent, KENDO_WEBMCP_HOST, provideComponentName, ResizeBatchService } from '@progress/kendo-angular-common';
12
12
  import { map, distinctUntilChanged, take, switchMap, expand, reduce, filter } from 'rxjs/operators';
13
13
  import { getter, touchEnabled } from '@progress/kendo-common';
14
14
  import * as i1 from '@progress/kendo-angular-intl';
@@ -44,8 +44,8 @@ const packageMetadata = {
44
44
  productName: 'Kendo UI for Angular',
45
45
  productCode: 'KENDOUIANGULAR',
46
46
  productCodes: ['KENDOUIANGULAR'],
47
- publishDate: 1794814426,
48
- version: '26.1.0-develop.4',
47
+ publishDate: 1794817468,
48
+ version: '26.1.0-develop.5',
49
49
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
50
50
  };
51
51
 
@@ -1197,8 +1197,11 @@ class NavigationService {
1197
1197
  if (this.bar) {
1198
1198
  this.renderer.setAttribute(this.bar, 'tabindex', '-1');
1199
1199
  }
1200
- // if the previous focus target was in the TreeList, rely on its component navigation and just record the focused item index
1201
- if (this.metadata.treeListElement.contains(event.relatedTarget)) {
1200
+ // Let TreeList navigation handle internal focus changes and direct entry into cell controls.
1201
+ const useTreeListNavigation = this.metadata.treeListElement.contains(event.relatedTarget) ||
1202
+ this.isCellControl(event.target);
1203
+ if (useTreeListNavigation) {
1204
+ this.metadata.treeList.navigation.navigateTo(event.target);
1202
1205
  const { colIndex, rowIndex } = this.metadata.treeList.activeCell;
1203
1206
  this.activeTreeListCell = { colIndex, rowIndex };
1204
1207
  }
@@ -1275,13 +1278,22 @@ class NavigationService {
1275
1278
  }
1276
1279
  }
1277
1280
  /**
1278
- * Focus the TreeList on TreeList mousedown.
1281
+ * Focus the TreeList on TreeList mousedown unless a cell control handles focus.
1279
1282
  * A nasty hack to trick `handleTreeListFocusIn` into regarding the previous focus target as again the TreeList.
1280
1283
  * Otherwise cell clicks are wrongly overwritten in `handleTreeListFocusIn` and the click focus target is not respected.
1281
1284
  */
1282
- focusTreeList() {
1285
+ focusTreeList(event) {
1286
+ const target = event.target;
1287
+ if (event.defaultPrevented || this.isCellControl(target)) {
1288
+ return;
1289
+ }
1283
1290
  this.metadata.treeList.focus();
1284
1291
  }
1292
+ isCellControl(target) {
1293
+ const cell = target.closest('td, th');
1294
+ // Exclude the navigable cell itself when checking interactive ancestors.
1295
+ return Boolean(cell && hasFocusableParent(target, cell));
1296
+ }
1285
1297
  /**
1286
1298
  * Intercept Tab key on splitter bar to focus the TreeList.
1287
1299
  * Since TreeList first cell has tabindex="-1", Tab from bar won't naturally focus it.
package/index.d.ts CHANGED
@@ -1463,11 +1463,12 @@ declare class NavigationService implements OnDestroy {
1463
1463
  */
1464
1464
  private handleTimelineMousedown;
1465
1465
  /**
1466
- * Focus the TreeList on TreeList mousedown.
1466
+ * Focus the TreeList on TreeList mousedown unless a cell control handles focus.
1467
1467
  * A nasty hack to trick `handleTreeListFocusIn` into regarding the previous focus target as again the TreeList.
1468
1468
  * Otherwise cell clicks are wrongly overwritten in `handleTreeListFocusIn` and the click focus target is not respected.
1469
1469
  */
1470
1470
  private focusTreeList;
1471
+ private isCellControl;
1471
1472
  /**
1472
1473
  * Intercept Tab key on splitter bar to focus the TreeList.
1473
1474
  * Since TreeList first cell has tabindex="-1", Tab from bar won't naturally focus it.
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1794814426,
11
- "version": "26.1.0-develop.4",
10
+ "publishDate": 1794817468,
11
+ "version": "26.1.0-develop.5",
12
12
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-gantt",
3
- "version": "26.1.0-develop.4",
3
+ "version": "26.1.0-develop.5",
4
4
  "description": "Kendo UI Angular Gantt",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -48,7 +48,7 @@
48
48
  "package": {
49
49
  "productName": "Kendo UI for Angular",
50
50
  "productCode": "KENDOUIANGULAR",
51
- "publishDate": 1794814426,
51
+ "publishDate": 1794817468,
52
52
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"
53
53
  }
54
54
  },
@@ -60,25 +60,25 @@
60
60
  "@angular/platform-browser": "20 - 22",
61
61
  "@progress/kendo-data-query": "^1.7.3",
62
62
  "@progress/kendo-licensing": "^1.13.0",
63
- "@progress/kendo-angular-buttons": "26.1.0-develop.4",
64
- "@progress/kendo-angular-common": "26.1.0-develop.4",
65
- "@progress/kendo-angular-dialog": "26.1.0-develop.4",
66
- "@progress/kendo-angular-dropdowns": "26.1.0-develop.4",
67
- "@progress/kendo-angular-grid": "26.1.0-develop.4",
68
- "@progress/kendo-angular-icons": "26.1.0-develop.4",
69
- "@progress/kendo-angular-inputs": "26.1.0-develop.4",
70
- "@progress/kendo-angular-intl": "26.1.0-develop.4",
71
- "@progress/kendo-angular-l10n": "26.1.0-develop.4",
72
- "@progress/kendo-angular-label": "26.1.0-develop.4",
73
- "@progress/kendo-angular-layout": "26.1.0-develop.4",
74
- "@progress/kendo-angular-popup": "26.1.0-develop.4",
75
- "@progress/kendo-angular-tooltip": "26.1.0-develop.4",
76
- "@progress/kendo-angular-treelist": "26.1.0-develop.4",
63
+ "@progress/kendo-angular-buttons": "26.1.0-develop.5",
64
+ "@progress/kendo-angular-common": "26.1.0-develop.5",
65
+ "@progress/kendo-angular-dialog": "26.1.0-develop.5",
66
+ "@progress/kendo-angular-dropdowns": "26.1.0-develop.5",
67
+ "@progress/kendo-angular-grid": "26.1.0-develop.5",
68
+ "@progress/kendo-angular-icons": "26.1.0-develop.5",
69
+ "@progress/kendo-angular-inputs": "26.1.0-develop.5",
70
+ "@progress/kendo-angular-intl": "26.1.0-develop.5",
71
+ "@progress/kendo-angular-l10n": "26.1.0-develop.5",
72
+ "@progress/kendo-angular-label": "26.1.0-develop.5",
73
+ "@progress/kendo-angular-layout": "26.1.0-develop.5",
74
+ "@progress/kendo-angular-popup": "26.1.0-develop.5",
75
+ "@progress/kendo-angular-tooltip": "26.1.0-develop.5",
76
+ "@progress/kendo-angular-treelist": "26.1.0-develop.5",
77
77
  "rxjs": "^6.5.3 || ^7.0.0"
78
78
  },
79
79
  "dependencies": {
80
80
  "tslib": "^2.3.1",
81
- "@progress/kendo-angular-schematics": "26.1.0-develop.4",
81
+ "@progress/kendo-angular-schematics": "26.1.0-develop.5",
82
82
  "@progress/kendo-common": "^1.0.1",
83
83
  "@progress/kendo-date-math": "^1.5.2",
84
84
  "@progress/kendo-draggable": "^3.0.0"
@@ -12,16 +12,16 @@ function default_1(options) {
12
12
  // See https://github.com/telerik/kendo-schematics/issues/28
13
13
  peerDependencies: {
14
14
  // peer deps of the treelist
15
- '@progress/kendo-angular-dateinputs': '26.1.0-develop.4',
16
- '@progress/kendo-angular-excel-export': '26.1.0-develop.4',
17
- '@progress/kendo-angular-pdf-export': '26.1.0-develop.4',
18
- '@progress/kendo-angular-utils': '26.1.0-develop.4',
15
+ '@progress/kendo-angular-dateinputs': '26.1.0-develop.5',
16
+ '@progress/kendo-angular-excel-export': '26.1.0-develop.5',
17
+ '@progress/kendo-angular-pdf-export': '26.1.0-develop.5',
18
+ '@progress/kendo-angular-utils': '26.1.0-develop.5',
19
19
  '@progress/kendo-drawing': '^1.0.0',
20
20
  // peer deps of the dropdowns
21
- '@progress/kendo-angular-treeview': '26.1.0-develop.4',
22
- '@progress/kendo-angular-navigation': '26.1.0-develop.4',
21
+ '@progress/kendo-angular-treeview': '26.1.0-develop.5',
22
+ '@progress/kendo-angular-navigation': '26.1.0-develop.5',
23
23
  // peer dep of the layout
24
- '@progress/kendo-angular-progressbar': '26.1.0-develop.4',
24
+ '@progress/kendo-angular-progressbar': '26.1.0-develop.5',
25
25
  // peer dep of the icons
26
26
  '@progress/kendo-svg-icons': '^4.0.0'
27
27
  } });