@progress/kendo-angular-sortable 19.3.0-develop.9 → 19.3.0
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/esm2022/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ export { PreventableEvent } from './preventable-event';
|
|
|
8
8
|
export { DraggableEvent } from './draggable-event';
|
|
9
9
|
export { DragStartEvent, DragEndEvent, DragOverEvent } from './sortable-events';
|
|
10
10
|
export { NavigateEvent } from './navigate-event';
|
|
11
|
-
export { DataMoveEvent } from './data-events';
|
|
11
|
+
export { DataMoveEvent, DataAddEvent, DataRemoveEvent } from './data-events';
|
|
12
12
|
export { DraggableDirective } from "./draggable.directive";
|
|
13
13
|
export { SortableBindingDirective } from "./binding.directive";
|
|
14
14
|
export { PlaceholderTemplateDirective } from './item-template.directive';
|
|
@@ -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: '19.3.0
|
|
13
|
+
publishDate: 1755030749,
|
|
14
|
+
version: '19.3.0',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6
6
|
import { Component, Input, Output, QueryList, ContentChildren, ViewChild, ViewChildren, TemplateRef, ElementRef, EventEmitter, HostBinding, NgZone, ChangeDetectorRef, forwardRef, Renderer2 } from '@angular/core';
|
|
7
7
|
import { Subject, merge } from 'rxjs';
|
|
8
|
-
import { isDocumentAvailable, isChanged, Keys, EventsOutsideAngularDirective } from '@progress/kendo-angular-common';
|
|
8
|
+
import { isDocumentAvailable, isChanged, Keys, EventsOutsideAngularDirective, normalizeNumpadKeys } from '@progress/kendo-angular-common';
|
|
9
9
|
import { getAllFocusableChildren, keepFocusWithinComponent, relativeContextElement } from './util';
|
|
10
10
|
import { filter, take } from 'rxjs/operators';
|
|
11
11
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
@@ -575,7 +575,7 @@ export class SortableComponent {
|
|
|
575
575
|
const item = this.itemWrappers.toArray()[index]?.nativeElement;
|
|
576
576
|
const isItemFocused = document.activeElement === item;
|
|
577
577
|
const hasFocus = this.activeIndex !== -1;
|
|
578
|
-
const keyCode = event
|
|
578
|
+
const keyCode = normalizeNumpadKeys(event);
|
|
579
579
|
if (keyCode === Keys.Tab && !isItemFocused) {
|
|
580
580
|
keepFocusWithinComponent(event, item);
|
|
581
581
|
return;
|
|
@@ -588,7 +588,8 @@ export class SortableComponent {
|
|
|
588
588
|
return;
|
|
589
589
|
}
|
|
590
590
|
if (this.navigable && hasFocus) {
|
|
591
|
-
|
|
591
|
+
const isArrowKey = [Keys.ArrowUp, Keys.ArrowDown, Keys.ArrowLeft, Keys.ArrowRight].includes(keyCode);
|
|
592
|
+
if (isArrowKey) {
|
|
592
593
|
this.ngZone.run(() => this.onArrowHandler(event, keyCode));
|
|
593
594
|
}
|
|
594
595
|
else if (keyCode === Keys.Enter && isItemFocused && this.focusableItems.length > 0) {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { Injectable, Directive, Input, HostBinding, QueryList, EventEmitter, forwardRef, TemplateRef, Component, ContentChildren, ViewChildren, ViewChild, Output, NgModule } from '@angular/core';
|
|
7
7
|
import { Subject, merge } from 'rxjs';
|
|
8
|
-
import { isDocumentAvailable, focusableSelector, isChanged, Keys, EventsOutsideAngularDirective } from '@progress/kendo-angular-common';
|
|
8
|
+
import { isDocumentAvailable, focusableSelector, isChanged, Keys, normalizeNumpadKeys, EventsOutsideAngularDirective } from '@progress/kendo-angular-common';
|
|
9
9
|
import { filter, tap, take, switchMap } from 'rxjs/operators';
|
|
10
10
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
11
11
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
@@ -193,8 +193,8 @@ const packageMetadata = {
|
|
|
193
193
|
productName: 'Kendo UI for Angular',
|
|
194
194
|
productCode: 'KENDOUIANGULAR',
|
|
195
195
|
productCodes: ['KENDOUIANGULAR'],
|
|
196
|
-
publishDate:
|
|
197
|
-
version: '19.3.0
|
|
196
|
+
publishDate: 1755030749,
|
|
197
|
+
version: '19.3.0',
|
|
198
198
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
199
199
|
};
|
|
200
200
|
|
|
@@ -1208,7 +1208,7 @@ class SortableComponent {
|
|
|
1208
1208
|
const item = this.itemWrappers.toArray()[index]?.nativeElement;
|
|
1209
1209
|
const isItemFocused = document.activeElement === item;
|
|
1210
1210
|
const hasFocus = this.activeIndex !== -1;
|
|
1211
|
-
const keyCode = event
|
|
1211
|
+
const keyCode = normalizeNumpadKeys(event);
|
|
1212
1212
|
if (keyCode === Keys.Tab && !isItemFocused) {
|
|
1213
1213
|
keepFocusWithinComponent(event, item);
|
|
1214
1214
|
return;
|
|
@@ -1221,7 +1221,8 @@ class SortableComponent {
|
|
|
1221
1221
|
return;
|
|
1222
1222
|
}
|
|
1223
1223
|
if (this.navigable && hasFocus) {
|
|
1224
|
-
|
|
1224
|
+
const isArrowKey = [Keys.ArrowUp, Keys.ArrowDown, Keys.ArrowLeft, Keys.ArrowRight].includes(keyCode);
|
|
1225
|
+
if (isArrowKey) {
|
|
1225
1226
|
this.ngZone.run(() => this.onArrowHandler(event, keyCode));
|
|
1226
1227
|
}
|
|
1227
1228
|
else if (keyCode === Keys.Enter && isItemFocused && this.focusableItems.length > 0) {
|
|
@@ -2120,5 +2121,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2120
2121
|
* Generated bundle index. Do not edit.
|
|
2121
2122
|
*/
|
|
2122
2123
|
|
|
2123
|
-
export { DataMoveEvent, DragEndEvent, DragOverEvent, DragStartEvent, DraggableDirective, DraggableEvent, ItemTemplateDirective, KENDO_SORTABLE, NavigateEvent, PlaceholderTemplateDirective, PreventableEvent, SortableBindingDirective, SortableComponent, SortableContainer, SortableModule, SortableService };
|
|
2124
|
+
export { DataAddEvent, DataMoveEvent, DataRemoveEvent, DragEndEvent, DragOverEvent, DragStartEvent, DraggableDirective, DraggableEvent, ItemTemplateDirective, KENDO_SORTABLE, NavigateEvent, PlaceholderTemplateDirective, PreventableEvent, SortableBindingDirective, SortableComponent, SortableContainer, SortableModule, SortableService };
|
|
2124
2125
|
|
package/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { DragStartEvent, DragEndEvent, DragOverEvent } from './sortable-events';
|
|
|
10
10
|
export { SortableEvent } from './sortable-event-args.interface';
|
|
11
11
|
export { NavigateEvent } from './navigate-event';
|
|
12
12
|
export { DataEvent } from './data-event-args.interface';
|
|
13
|
-
export { DataMoveEvent } from './data-events';
|
|
13
|
+
export { DataMoveEvent, DataAddEvent, DataRemoveEvent } from './data-events';
|
|
14
14
|
export { DraggableDirective } from "./draggable.directive";
|
|
15
15
|
export { SortableBindingDirective } from "./binding.directive";
|
|
16
16
|
export { PlaceholderTemplateDirective } from './item-template.directive';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-sortable",
|
|
3
|
-
"version": "19.3.0
|
|
3
|
+
"version": "19.3.0",
|
|
4
4
|
"description": "A Sortable Component for Angular",
|
|
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":
|
|
22
|
+
"publishDate": 1755030749,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"@angular/common": "16 - 20",
|
|
29
29
|
"@angular/core": "16 - 20",
|
|
30
30
|
"@angular/platform-browser": "16 - 20",
|
|
31
|
-
"@progress/kendo-licensing": "^1.
|
|
32
|
-
"@progress/kendo-angular-common": "19.3.0
|
|
33
|
-
"@progress/kendo-angular-l10n": "19.3.0
|
|
31
|
+
"@progress/kendo-licensing": "^1.7.0",
|
|
32
|
+
"@progress/kendo-angular-common": "19.3.0",
|
|
33
|
+
"@progress/kendo-angular-l10n": "19.3.0",
|
|
34
34
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"tslib": "^2.3.1",
|
|
38
|
-
"@progress/kendo-angular-schematics": "19.3.0
|
|
38
|
+
"@progress/kendo-angular-schematics": "19.3.0",
|
|
39
39
|
"@progress/kendo-draggable": "^3.0.2"
|
|
40
40
|
},
|
|
41
41
|
"schematics": "./schematics/collection.json",
|
package/sortable.component.d.ts
CHANGED