@progress/kendo-angular-sortable 24.2.2 → 25.0.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.
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1783511687,
11
- "version": "24.2.2",
10
+ "publishDate": 1783680012,
11
+ "version": "25.0.0-develop.1",
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-sortable",
3
- "version": "24.2.2",
3
+ "version": "25.0.0-develop.1",
4
4
  "description": "A Sortable Component for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -19,23 +19,23 @@
19
19
  "package": {
20
20
  "productName": "Kendo UI for Angular",
21
21
  "productCode": "KENDOUIANGULAR",
22
- "publishDate": 1783511687,
22
+ "publishDate": 1783680012,
23
23
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
24
24
  }
25
25
  },
26
26
  "peerDependencies": {
27
- "@angular/animations": "19 - 22",
28
- "@angular/common": "19 - 22",
29
- "@angular/core": "19 - 22",
30
- "@angular/platform-browser": "19 - 22",
27
+ "@angular/animations": "20 - 22",
28
+ "@angular/common": "20 - 22",
29
+ "@angular/core": "20 - 22",
30
+ "@angular/platform-browser": "20 - 22",
31
31
  "@progress/kendo-licensing": "^1.11.0",
32
- "@progress/kendo-angular-common": "24.2.2",
33
- "@progress/kendo-angular-l10n": "24.2.2",
32
+ "@progress/kendo-angular-common": "25.0.0-develop.1",
33
+ "@progress/kendo-angular-l10n": "25.0.0-develop.1",
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": "24.2.2",
38
+ "@progress/kendo-angular-schematics": "25.0.0-develop.1",
39
39
  "@progress/kendo-draggable": "^3.0.2"
40
40
  },
41
41
  "schematics": "./schematics/collection.json",
@@ -1,63 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { OnDestroy, OnInit } from '@angular/core';
6
- import { SortableComponent } from './sortable.component';
7
- import { SortableService } from './sortable.service';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * Represents a directive that handles common scenarios such as reordering and moving items between Sortables, reducing boilerplate code.
11
- *
12
- * This directive subscribes to the Sortable's events and handles them using the provided API methods.
13
- *
14
- * @example
15
- * ```html
16
- * <kendo-sortable
17
- * [kendoSortableBinding]="items"
18
- * [navigable]="true"
19
- * [animation]="true"
20
- * itemClass="item col-xs-6 col-sm-3"
21
- * activeItemClass="item col-xs-6 col-sm-3 active">
22
- * </kendo-sortable>
23
- * ```
24
- *
25
- * @remarks
26
- * Applied to: {@link SortableComponent}
27
- */
28
- export declare class SortableBindingDirective implements OnInit, OnDestroy {
29
- sortable: SortableComponent;
30
- private sortableService;
31
- private removeHiddenSubscription;
32
- private dragOverSubscription;
33
- private navigateSubscription;
34
- private dragEndSubscription;
35
- private dragStartSubscription;
36
- private lastTarget;
37
- private originalSource;
38
- private addedItemIndex;
39
- private pendingDataAdd;
40
- private pendingDataRemove;
41
- /**
42
- * Sets a data-bound array that is used as a data source for the Sortable ([see example](https://www.telerik.com/kendo-angular-ui/components/sortable)).
43
- */
44
- set data(data: any[]);
45
- constructor(sortable: SortableComponent, sortableService: SortableService);
46
- private nextEnabledIndex;
47
- private addItem;
48
- private removeItem;
49
- private moveItem;
50
- /**
51
- * Removes the Draggable item from which the drag started.
52
- * @hidden
53
- */
54
- private removeOriginDraggable;
55
- private onDragOver;
56
- private onNavigate;
57
- private onDragStart;
58
- private onDragEnd;
59
- ngOnInit(): void;
60
- ngOnDestroy(): void;
61
- static ɵfac: i0.ɵɵFactoryDeclaration<SortableBindingDirective, never>;
62
- static ɵdir: i0.ɵɵDirectiveDeclaration<SortableBindingDirective, "[kendoSortableBinding]", never, { "data": { "alias": "kendoSortableBinding"; "required": false; }; }, {}, never, never, true, never>;
63
- }
package/directives.d.ts DELETED
@@ -1,32 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { SortableBindingDirective } from "./binding.directive";
6
- import { DraggableDirective } from "./draggable.directive";
7
- import { ItemTemplateDirective, PlaceholderTemplateDirective } from "./item-template.directive";
8
- import { SortableComponent } from "./sortable.component";
9
- /**
10
- * Use this utility array to access all `@progress/kendo-angular-sortable`-related components and directives in a standalone Angular component.
11
- *
12
- * @example
13
- * ```typescript
14
- * import { Component } from '@angular/core';
15
- * import { KENDO_SORTABLE } from '@progress/kendo-angular-sortable';
16
- *
17
- * @Component({
18
- * selector: 'my-app',
19
- * standalone: true,
20
- * imports: [KENDO_SORTABLE],
21
- * template: `
22
- * <kendo-sortable [kendoSortableBinding]="items">
23
- * </kendo-sortable>
24
- * `
25
- * })
26
- *
27
- * export class AppComponent {
28
- * public items = ['Item 1', 'Item 2', 'Item 3'];
29
- * }
30
- * ```
31
- */
32
- export declare const KENDO_SORTABLE: readonly [typeof SortableComponent, typeof DraggableDirective, typeof PlaceholderTemplateDirective, typeof ItemTemplateDirective, typeof SortableBindingDirective];
@@ -1,29 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ElementRef, OnInit, Renderer2 } from '@angular/core';
6
- import { SortableContainer } from './sortable-container';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @hidden
10
- */
11
- export declare class DraggableDirective implements OnInit {
12
- parent: SortableContainer;
13
- el: ElementRef;
14
- private renderer;
15
- index: number;
16
- disabled: boolean;
17
- set hidden(value: boolean);
18
- get hidden(): boolean;
19
- _hidden: any;
20
- get _focused(): boolean;
21
- get display(): string;
22
- set display(display: string);
23
- private _display;
24
- constructor(parent: SortableContainer, el: ElementRef, renderer: Renderer2);
25
- ngOnInit(): void;
26
- private updateDisplayStyle;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<DraggableDirective, never>;
28
- static ɵdir: i0.ɵɵDirectiveDeclaration<DraggableDirective, "[kendoDraggable]", never, { "index": { "alias": "index"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; }, {}, never, never, true, never>;
29
- }
@@ -1,23 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import type { SortableComponent } from '../sortable.component';
6
- /**
7
- * Represents the arguments for the `dataAdd` and `dataRemove` events.
8
- * @hidden
9
- */
10
- export interface DataEvent {
11
- /**
12
- * Specifies the index of the data item.
13
- */
14
- index: number;
15
- /**
16
- * Specifies the data item to add or remove.
17
- */
18
- dataItem: object;
19
- /**
20
- * Specifies the Sortable component that emits the event.
21
- */
22
- sender: SortableComponent;
23
- }
@@ -1,74 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PreventableEvent } from './preventable-event';
6
- import { DataEvent } from './data-event-args.interface';
7
- import type { SortableComponent } from '../sortable.component';
8
- /**
9
- * Represents the arguments for the `SortableComponent` `dataAdd` event.
10
- */
11
- export declare class DataAddEvent implements DataEvent {
12
- /**
13
- * Specifies the index of the data item.
14
- */
15
- index: number;
16
- /**
17
- * Specifies the data item to add.
18
- */
19
- dataItem: any;
20
- /**
21
- * Specifies the Sortable component that emits the event.
22
- */
23
- sender: SortableComponent;
24
- /**
25
- * @hidden
26
- */
27
- constructor(options: any);
28
- }
29
- /**
30
- * Represents the arguments for the `SortableComponent` `dataRemove` event.
31
- */
32
- export declare class DataRemoveEvent implements DataEvent {
33
- /**
34
- * Specifies the index of the data item.
35
- */
36
- index: number;
37
- /**
38
- * Specifies the data item to remove.
39
- */
40
- dataItem: any;
41
- /**
42
- * Specifies the Sortable component that emits the event.
43
- */
44
- sender: SortableComponent;
45
- /**
46
- * @hidden
47
- */
48
- constructor(options: any);
49
- }
50
- /**
51
- * Represents the arguments for the `SortableComponent` `dataMove` event.
52
- */
53
- export declare class DataMoveEvent extends PreventableEvent implements DataEvent {
54
- /**
55
- * Specifies the index of the data item.
56
- */
57
- index: number;
58
- /**
59
- * Specifies the old index of the data item.
60
- */
61
- oldIndex: number;
62
- /**
63
- * Specifies the data item to move.
64
- */
65
- dataItem: any;
66
- /**
67
- * Specifies the Sortable component that emits the event.
68
- */
69
- sender: SortableComponent;
70
- /**
71
- * @hidden
72
- */
73
- constructor(options: any);
74
- }
@@ -1,24 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PreventableEvent } from './preventable-event';
6
- import { DraggableDirective } from '../draggable.directive';
7
- /**
8
- * Represents the arguments for the `DraggableDirective` events.
9
- * @hidden
10
- */
11
- export declare class DraggableEvent extends PreventableEvent {
12
- /**
13
- * Specifies the target `DraggableDirective` instance.
14
- */
15
- target: DraggableDirective;
16
- /**
17
- * Specifies the browser event emitted by the target's native element.
18
- */
19
- originalEvent: any;
20
- /**
21
- * @hidden
22
- */
23
- constructor(options: any);
24
- }
@@ -1,27 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PreventableEvent } from './preventable-event';
6
- import { SortableEvent } from './sortable-event-args.interface';
7
- /**
8
- * Represents the event arguments for the `navigate` event, which is emitted when you use the keyboard arrows.
9
- */
10
- export declare class NavigateEvent extends PreventableEvent implements SortableEvent {
11
- /**
12
- * Specifies the index of the draggable item.
13
- */
14
- index: number;
15
- /**
16
- * Specifies the old index of the draggable item.
17
- */
18
- oldIndex: number;
19
- /**
20
- * Indicates whether the `Ctrl` or meta keys are pressed.
21
- */
22
- ctrlKey: boolean;
23
- /**
24
- * @hidden
25
- */
26
- constructor(options: any);
27
- }
@@ -1,26 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Defines an event whose default action can be prevented
7
- * by calling the `preventDefault` method.
8
- *
9
- * @hidden
10
- */
11
- export declare abstract class PreventableEvent {
12
- private prevented;
13
- /**
14
- * Prevents the default action for a specified event.
15
- * In this way, the source component suppresses
16
- * the built-in behavior that follows the event.
17
- */
18
- preventDefault(): void;
19
- /**
20
- * If the event was prevented
21
- * by any of its subscribers, returns `true`.
22
- *
23
- * @returns `true` if the default action was prevented. Otherwise, returns `false`.
24
- */
25
- isDefaultPrevented(): boolean;
26
- }
@@ -1,18 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Represents the arguments for the `dragStart`, `dragOver`, and `dragEnd` events.
7
- * @hidden
8
- */
9
- export interface SortableEvent {
10
- /**
11
- * Specifies the index of the data item.
12
- */
13
- index: number;
14
- /**
15
- * Specifies the previous index of the data item.
16
- */
17
- oldIndex: number;
18
- }
@@ -1,35 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PreventableEvent } from './preventable-event';
6
- import { SortableEvent } from './sortable-event-args.interface';
7
- /**
8
- * Represents the arguments for the `dragStart` event.
9
- */
10
- export declare class DragStartEvent extends PreventableEvent implements SortableEvent {
11
- /**
12
- * Specifies the index of the draggable item.
13
- */
14
- index: number;
15
- /**
16
- * Specifies the previous index of the draggable item.
17
- * This property is used for the `dragEnd and `dragOver` events to determine the original position of the item before dragging.
18
- * It doesn't apply to the `dragStart` event as there is no previous position at that point.
19
- */
20
- oldIndex: number;
21
- /**
22
- * @hidden
23
- */
24
- constructor(options: any);
25
- }
26
- /**
27
- * Represents the arguments for the `dragOver` event.
28
- */
29
- export declare class DragOverEvent extends DragStartEvent {
30
- }
31
- /**
32
- * Represents the arguments for the `dragEnd` event.
33
- */
34
- export declare class DragEndEvent extends DragOverEvent {
35
- }
@@ -1,24 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { TemplateRef } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * @hidden
9
- */
10
- export declare class ItemTemplateDirective {
11
- templateRef: TemplateRef<any>;
12
- constructor(templateRef: TemplateRef<any>);
13
- static ɵfac: i0.ɵɵFactoryDeclaration<ItemTemplateDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<ItemTemplateDirective, "[kendoSortableItemTemplate]", never, {}, {}, never, never, true, never>;
15
- }
16
- /**
17
- * @hidden
18
- */
19
- export declare class PlaceholderTemplateDirective {
20
- templateRef: TemplateRef<any>;
21
- constructor(templateRef: TemplateRef<any>);
22
- static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderTemplateDirective, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<PlaceholderTemplateDirective, "[kendoSortablePlaceholderTemplate]", never, {}, {}, never, never, true, never>;
24
- }
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { type PackageMetadata } from '@progress/kendo-licensing';
6
- /**
7
- * @hidden
8
- */
9
- export declare const packageMetadata: PackageMetadata;
@@ -1,14 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @hidden
8
- */
9
- export declare abstract class SortableContainer {
10
- abstract activeIndex: number;
11
- abstract removeDataItem(index: number): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<SortableContainer, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<SortableContainer>;
14
- }