@progress/kendo-angular-grid 21.2.0-develop.9 → 21.3.0-develop.1
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.
- package/common/id.service.d.ts +2 -0
- package/esm2022/column-menu/column-list.component.mjs +2 -2
- package/esm2022/columns/column-base.mjs +1 -2
- package/esm2022/common/id.service.mjs +4 -0
- package/esm2022/grid.component.mjs +325 -274
- package/esm2022/grouping/group-panel.component.mjs +2 -2
- package/esm2022/navigation/navigation.service.mjs +4 -4
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/rendering/header/header.component.mjs +6 -6
- package/esm2022/rendering/list.component.mjs +2 -2
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +11 -588
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-request-response.service.mjs +624 -0
- package/esm2022/rendering/toolbar/tools/group-toolbar-tool.component.mjs +3 -3
- package/fesm2022/progress-kendo-angular-grid.mjs +1467 -1380
- package/grid.component.d.ts +41 -1
- package/package.json +24 -24
- package/rendering/toolbar/tools/ai-assistant/ai-assistant.component.d.ts +3 -23
- package/rendering/toolbar/tools/ai-assistant/ai-request-response.service.d.ts +61 -0
- package/schematics/ngAdd/index.js +7 -7
|
@@ -16,7 +16,7 @@ import { ContextService } from '../common/provider.service';
|
|
|
16
16
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
17
17
|
import { ChipComponent, ChipListComponent } from '@progress/kendo-angular-buttons';
|
|
18
18
|
import { closest } from '../rendering/common/dom-queries';
|
|
19
|
-
import { DraggableDirective, EventsOutsideAngularDirective, Keys,
|
|
19
|
+
import { DraggableDirective, EventsOutsideAngularDirective, Keys, normalizeKeys } from '@progress/kendo-angular-common';
|
|
20
20
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
21
21
|
import { DraggableColumnDirective } from '../dragdrop/draggable-column.directive';
|
|
22
22
|
import * as i0 from "@angular/core";
|
|
@@ -175,7 +175,7 @@ export class GroupPanelComponent {
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
handleKeyDown = (e) => {
|
|
178
|
-
const code =
|
|
178
|
+
const code = normalizeKeys(e);
|
|
179
179
|
if (code === Keys.ArrowDown || code === Keys.ArrowUp) {
|
|
180
180
|
e.preventDefault();
|
|
181
181
|
const relatedItemType = e.target.matches(':first-child') ? 'next' : 'previous';
|
|
@@ -11,7 +11,7 @@ import { GridFocusableElement } from './grid-focusable-element';
|
|
|
11
11
|
import { NavigationCursor } from './navigation-cursor';
|
|
12
12
|
import { NavigationModel } from './navigation-model';
|
|
13
13
|
import { DomEventsService } from '../common/dom-events.service';
|
|
14
|
-
import { hasClasses, isDocumentAvailable, isPresent, Keys,
|
|
14
|
+
import { hasClasses, isDocumentAvailable, isPresent, Keys, normalizeKeys } from '@progress/kendo-angular-common';
|
|
15
15
|
import { EditService } from '../editing/edit.service';
|
|
16
16
|
import { GroupsService } from '../grouping/groups.service';
|
|
17
17
|
import { PagerContextService } from '@progress/kendo-angular-pager';
|
|
@@ -510,7 +510,7 @@ export class NavigationService {
|
|
|
510
510
|
}
|
|
511
511
|
const row = this.cursor.row;
|
|
512
512
|
// on some keyboards arrow keys, PageUp/Down, and Home/End are mapped to Numpad keys
|
|
513
|
-
const code =
|
|
513
|
+
const code = normalizeKeys(args);
|
|
514
514
|
// Handle row reordering keyboard shortcuts (Ctrl/Cmd + Shift + Up/Down Arrow)
|
|
515
515
|
if (modifier && args.shiftKey && (code === Keys.ArrowUp || code === Keys.ArrowDown)) {
|
|
516
516
|
if (this.handleRowReorderKeyboard(args, code, row)) {
|
|
@@ -704,7 +704,7 @@ export class NavigationService {
|
|
|
704
704
|
return;
|
|
705
705
|
}
|
|
706
706
|
// on some keyboards arrow keys, PageUp/Down, and Home/End are mapped to Numpad keys
|
|
707
|
-
const code =
|
|
707
|
+
const code = normalizeKeys(args);
|
|
708
708
|
const confirm = !args.defaultPrevented && code === Keys.Enter && isTextInput(args.target);
|
|
709
709
|
if (code === Keys.Escape || code === Keys.F2 || confirm) {
|
|
710
710
|
if (this.tableCellEntered && code === Keys.F2 && this.activeRow.dataRowIndex > -1) {
|
|
@@ -728,7 +728,7 @@ export class NavigationService {
|
|
|
728
728
|
onCellKeydown(args) {
|
|
729
729
|
if (this.editService.isEditingCell()) {
|
|
730
730
|
// on some keyboards arrow keys, PageUp/Down, and Home/End are mapped to Numpad keys
|
|
731
|
-
const code =
|
|
731
|
+
const code = normalizeKeys(args);
|
|
732
732
|
const confirm = code === Keys.Enter;
|
|
733
733
|
const cancel = code === Keys.Escape;
|
|
734
734
|
const navigate = isNavigationKey(code);
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '21.
|
|
13
|
+
publishDate: 1764778815,
|
|
14
|
+
version: '21.3.0-develop.1',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -16,7 +16,7 @@ import { columnsToRender, sortColumns, isInSpanColumn } from "../../columns/colu
|
|
|
16
16
|
import { SinglePopupService } from '../../common/single-popup.service';
|
|
17
17
|
import { hasFilterMenu, hasFilterRow } from '../../filtering/filterable';
|
|
18
18
|
import { IdService } from '../../common/id.service';
|
|
19
|
-
import { DraggableDirective, isDocumentAvailable, Keys,
|
|
19
|
+
import { DraggableDirective, isDocumentAvailable, Keys, normalizeKeys, TemplateContextDirective } from '@progress/kendo-angular-common';
|
|
20
20
|
import { DropTargetDirective } from '../../dragdrop/drop-target.directive';
|
|
21
21
|
import { DraggableColumnDirective } from '../../dragdrop/draggable-column.directive';
|
|
22
22
|
import { DragHintService } from '../../dragdrop/drag-hint.service';
|
|
@@ -168,7 +168,7 @@ export class HeaderComponent {
|
|
|
168
168
|
this.sortColumn(toggledColumn);
|
|
169
169
|
}
|
|
170
170
|
onHeaderKeydown(column, args) {
|
|
171
|
-
const code =
|
|
171
|
+
const code = normalizeKeys(args);
|
|
172
172
|
if (code === Keys.ArrowDown && args.altKey && this.showFilterMenu && this.isFilterable(column)) {
|
|
173
173
|
args.preventDefault();
|
|
174
174
|
args.stopImmediatePropagation();
|
|
@@ -492,7 +492,7 @@ export class HeaderComponent {
|
|
|
492
492
|
}
|
|
493
493
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HeaderComponent, deps: [{ token: i1.SinglePopupService }, { token: i2.DragHintService }, { token: i3.DropCueService }, { token: i4.ColumnReorderService }, { token: i5.IdService }, { token: i6.SortService }, { token: i7.ColumnInfoService }, { token: i0.ChangeDetectorRef }, { token: i8.ContextService }, { token: i9.NavigationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
494
494
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: HeaderComponent, isStandalone: true, selector: "[kendoGridHeader]", inputs: { totalColumnLevels: "totalColumnLevels", columns: "columns", groups: "groups", detailTemplate: "detailTemplate", scrollable: "scrollable", filterable: "filterable", sort: "sort", filter: "filter", sortable: "sortable", groupable: "groupable", lockedColumnsCount: "lockedColumnsCount", resizable: "resizable", reorderable: "reorderable", columnMenu: "columnMenu", columnMenuTemplate: "columnMenuTemplate", totalColumnsCount: "totalColumnsCount", totalColumns: "totalColumns", tabIndex: "tabIndex", size: "size" }, host: { properties: { "class.k-table-thead": "this.hostClass" } }, viewQueries: [{ propertyName: "dropTargets", predicate: DropTargetDirective, descendants: true }, { propertyName: "filterMenus", predicate: FilterMenuComponent, descendants: true }, { propertyName: "columnMenus", predicate: ColumnMenuComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
495
|
-
@for (i of columnLevels; track
|
|
495
|
+
@for (i of columnLevels; track $index; let levelIndex = $index) {
|
|
496
496
|
<tr
|
|
497
497
|
kendoGridLogicalRow
|
|
498
498
|
[logicalRowIndex]="levelIndex"
|
|
@@ -513,7 +513,7 @@ export class HeaderComponent {
|
|
|
513
513
|
>
|
|
514
514
|
</th>
|
|
515
515
|
}
|
|
516
|
-
@for (column of columnsForLevel(levelIndex); track column; let columnIndex = $index; let last = $last) {
|
|
516
|
+
@for (column of columnsForLevel(levelIndex); track column.id; let columnIndex = $index; let last = $last) {
|
|
517
517
|
@if (!isColumnGroupComponent(column)) {
|
|
518
518
|
<th
|
|
519
519
|
kendoGridLogicalCell
|
|
@@ -740,7 +740,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
740
740
|
args: [{
|
|
741
741
|
selector: '[kendoGridHeader]',
|
|
742
742
|
template: `
|
|
743
|
-
@for (i of columnLevels; track
|
|
743
|
+
@for (i of columnLevels; track $index; let levelIndex = $index) {
|
|
744
744
|
<tr
|
|
745
745
|
kendoGridLogicalRow
|
|
746
746
|
[logicalRowIndex]="levelIndex"
|
|
@@ -761,7 +761,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
761
761
|
>
|
|
762
762
|
</th>
|
|
763
763
|
}
|
|
764
|
-
@for (column of columnsForLevel(levelIndex); track column; let columnIndex = $index; let last = $last) {
|
|
764
|
+
@for (column of columnsForLevel(levelIndex); track column.id; let columnIndex = $index; let last = $last) {
|
|
765
765
|
@if (!isColumnGroupComponent(column)) {
|
|
766
766
|
<th
|
|
767
767
|
kendoGridLogicalCell
|
|
@@ -21,7 +21,7 @@ import { GroupsService } from "../grouping/groups.service";
|
|
|
21
21
|
import { expandColumns, sumColumnWidths } from "../columns/column-common";
|
|
22
22
|
import { ScrollSyncService } from "../scrolling/scroll-sync.service";
|
|
23
23
|
import { ResizeService } from "../layout/resize.service";
|
|
24
|
-
import { EventsOutsideAngularDirective, isDocumentAvailable,
|
|
24
|
+
import { EventsOutsideAngularDirective, isDocumentAvailable, normalizeKeys, ResizeSensorComponent } from "@progress/kendo-angular-common";
|
|
25
25
|
import { BrowserSupportService } from "../layout/browser-support.service";
|
|
26
26
|
import { EditService } from '../editing/edit.service';
|
|
27
27
|
import { NavigationService } from '../navigation/navigation.service';
|
|
@@ -463,7 +463,7 @@ export class ListComponent {
|
|
|
463
463
|
}
|
|
464
464
|
lockedKeydown(args) {
|
|
465
465
|
// on some keyboards arrow keys, PageUp/Down, and Home/End are mapped to Numpad keys
|
|
466
|
-
const code =
|
|
466
|
+
const code = normalizeKeys(args);
|
|
467
467
|
if (code === Keys.PageDown || code === Keys.PageUp) {
|
|
468
468
|
const dir = code === Keys.PageDown ? 1 : -1;
|
|
469
469
|
const element = this.container.nativeElement;
|