@progress/kendo-angular-utils 21.4.1 → 22.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.
Files changed (39) hide show
  1. package/fesm2022/progress-kendo-angular-utils.mjs +38 -38
  2. package/package.json +8 -16
  3. package/esm2022/adaptive-breakpoints/adaptive-settings.mjs +0 -20
  4. package/esm2022/adaptive-breakpoints/adaptive-settings.service.mjs +0 -29
  5. package/esm2022/adaptive-breakpoints/adaptive.service.mjs +0 -114
  6. package/esm2022/adaptive-breakpoints/index.mjs +0 -7
  7. package/esm2022/adaptive-breakpoints/models/adaptive-settings.mjs +0 -5
  8. package/esm2022/adaptive-breakpoints/models/adaptive-size.mjs +0 -5
  9. package/esm2022/directives.mjs +0 -45
  10. package/esm2022/drag-and-drop/drag-state.service.mjs +0 -139
  11. package/esm2022/drag-and-drop/draghandle.directive.mjs +0 -49
  12. package/esm2022/drag-and-drop/dragtarget-container.directive.mjs +0 -709
  13. package/esm2022/drag-and-drop/dragtarget.directive.mjs +0 -596
  14. package/esm2022/drag-and-drop/droptarget-container.directive.mjs +0 -236
  15. package/esm2022/drag-and-drop/droptarget.directive.mjs +0 -137
  16. package/esm2022/drag-and-drop/events/drag-target/drag-event.mjs +0 -52
  17. package/esm2022/drag-and-drop/events/drag-target/dragready-event.mjs +0 -32
  18. package/esm2022/drag-and-drop/events/drag-target/end-event.mjs +0 -46
  19. package/esm2022/drag-and-drop/events/drag-target/index.mjs +0 -10
  20. package/esm2022/drag-and-drop/events/drag-target/press-event.mjs +0 -46
  21. package/esm2022/drag-and-drop/events/drag-target/release-event.mjs +0 -46
  22. package/esm2022/drag-and-drop/events/drag-target/start-event.mjs +0 -48
  23. package/esm2022/drag-and-drop/events/drop-target-event.mjs +0 -53
  24. package/esm2022/drag-and-drop/events/index.mjs +0 -6
  25. package/esm2022/drag-and-drop/hint.component.mjs +0 -56
  26. package/esm2022/drag-and-drop/models/autoscroll-options.mjs +0 -5
  27. package/esm2022/drag-and-drop/models/coordinates.mjs +0 -5
  28. package/esm2022/drag-and-drop/models/drag-axis.mjs +0 -5
  29. package/esm2022/drag-and-drop/models/drag-mode.mjs +0 -5
  30. package/esm2022/drag-and-drop/models/functions.mjs +0 -5
  31. package/esm2022/drag-and-drop/models/hint-settings.mjs +0 -5
  32. package/esm2022/drag-and-drop/models/index.mjs +0 -5
  33. package/esm2022/drag-and-drop/models/scroll-direction.mjs +0 -5
  34. package/esm2022/drag-and-drop/util.mjs +0 -90
  35. package/esm2022/drag-and-drop.module.mjs +0 -45
  36. package/esm2022/index.mjs +0 -17
  37. package/esm2022/package-metadata.mjs +0 -16
  38. package/esm2022/progress-kendo-angular-utils.mjs +0 -8
  39. package/esm2022/utils.module.mjs +0 -45
@@ -1,236 +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 { ChangeDetectorRef, Directive, ElementRef, EventEmitter, Input, NgZone, Output } from '@angular/core';
6
- import { validatePackage } from '@progress/kendo-licensing';
7
- import { packageMetadata } from '../package-metadata';
8
- import { DragStateService } from './drag-state.service';
9
- import { DropTargetEvent } from './events/drop-target-event';
10
- import { isPresent, intersect } from './util';
11
- import * as i0 from "@angular/core";
12
- import * as i1 from "./drag-state.service";
13
- /**
14
- * Represents the [Kendo UI DropTargetContainer directive for Angular]({% slug api_utils_droptargetcontainerdirective %}).
15
- * Use this directive to make multiple elements drop targets inside a container.
16
- *
17
- * @example
18
- * ```html
19
- * <div kendoDropTargetContainer dropTargetFilter=".my-droptarget">
20
- * <div class="my-droptarget">
21
- * Drop here
22
- * </div>
23
- * </div>
24
- * ```
25
- */
26
- export class DropTargetContainerDirective {
27
- service;
28
- element;
29
- ngZone;
30
- cdr;
31
- /**
32
- * Sets a selector for elements in the container to make them drop targets. [See example]({% slug drop_target_container %}).
33
- */
34
- set dropTargetFilter(value) {
35
- this._dropTargetFilter = value;
36
- if (!this.dropDisabled) {
37
- this.initializeDropTargets();
38
- }
39
- }
40
- get dropTargetFilter() {
41
- return this._dropTargetFilter;
42
- }
43
- /**
44
- * Specifies whether the drop targets within the container will emit the corresponding events upon interaction with a drag target.
45
- */
46
- set dropDisabled(value) {
47
- this._dropDisabled = value;
48
- if (value) {
49
- this.clearPreviousTargets();
50
- }
51
- else {
52
- this.initializeDropTargets();
53
- }
54
- }
55
- get dropDisabled() {
56
- return this._dropDisabled;
57
- }
58
- /**
59
- * Fires when a drag target enters a drop target.
60
- */
61
- onDragEnter = new EventEmitter();
62
- /**
63
- * Fires when a drag target is dragged over a drop target.
64
- */
65
- onDragOver = new EventEmitter();
66
- /**
67
- * Fires when a drag target leaves a drop target.
68
- */
69
- onDragLeave = new EventEmitter();
70
- /**
71
- * Fires when a drag target is dropped over a drop target.
72
- */
73
- onDrop = new EventEmitter();
74
- /**
75
- * Notifies the `DropTargetContainer` that its content has changed.
76
- */
77
- notify() {
78
- this.cdr.detectChanges();
79
- this.initializeDropTargets();
80
- }
81
- constructor(service, element, ngZone, cdr) {
82
- this.service = service;
83
- this.element = element;
84
- this.ngZone = ngZone;
85
- this.cdr = cdr;
86
- validatePackage(packageMetadata);
87
- }
88
- currentDropTargetElement = null;
89
- previousDropTargets = [];
90
- _dropTargetFilter = null;
91
- _dropDisabled = false;
92
- get nativeElement() {
93
- return this.element.nativeElement;
94
- }
95
- ngAfterViewInit() {
96
- if (!this.dropDisabled) {
97
- this.initializeDropTargets();
98
- }
99
- }
100
- get allDropTargets() {
101
- if (isPresent(this.dropTargetFilter) && this.dropTargetFilter !== '') {
102
- return Array.from(this.nativeElement.querySelectorAll(this.dropTargetFilter));
103
- }
104
- }
105
- /**
106
- * @hidden
107
- */
108
- handleDragEnter(event) {
109
- if (!this.service.dragTargetPresent || this.service.dropTargetPresent) {
110
- return;
111
- }
112
- const currDragTargetElement = this.service.dragTarget.hint || this.service.dragTarget.element;
113
- const currDropTargetElem = intersect(currDragTargetElement, this.allDropTargets);
114
- const currDropTarget = this.service.dropTargets.find(dt => dt.element === currDropTargetElem);
115
- if (!isPresent(currDropTargetElem) || !isPresent(currDropTarget)) {
116
- return;
117
- }
118
- this.currentDropTargetElement = currDropTargetElem;
119
- this.service.dropTarget = currDropTarget;
120
- this.service.dropIndex = this.getDropIndex();
121
- this.emitZoneAwareEvent('onDragEnter', event);
122
- }
123
- /**
124
- * @hidden
125
- */
126
- handleDragLeave(event) {
127
- if (!this.service.dragTargetPresent || !this.service.dropTargetPresent) {
128
- return;
129
- }
130
- this.emitZoneAwareEvent('onDragLeave', event);
131
- this.currentDropTargetElement = null;
132
- this.service.dropTarget = null;
133
- this.service.dropIndex = null;
134
- }
135
- /**
136
- * @hidden
137
- */
138
- handleDragOver(event) {
139
- if (!this.service.dragTargetPresent || !this.service.dropTargetPresent) {
140
- return;
141
- }
142
- this.emitZoneAwareEvent('onDragOver', event);
143
- }
144
- /**
145
- * @hidden
146
- */
147
- handleDrop(event) {
148
- if (!this.service.dragTargetPresent || !this.service.dropTargetPresent) {
149
- return;
150
- }
151
- this.emitZoneAwareEvent('onDrop', event);
152
- this.currentDropTargetElement = null;
153
- this.service.dropTarget = null;
154
- this.service.dropIndex = null;
155
- }
156
- initializeDropTargets() {
157
- if (!isPresent(this.allDropTargets)) {
158
- if (this.previousDropTargets.length > 0) {
159
- this.clearPreviousTargets();
160
- }
161
- return;
162
- }
163
- this.allDropTargets.forEach(dropTargetEl => {
164
- const isDropTargetInitialized = this.service.dropTargets.find(dt => dt.element === dropTargetEl);
165
- if (!isDropTargetInitialized) {
166
- this.service.dropTargets.push({
167
- element: dropTargetEl,
168
- onDragEnter: this.handleDragEnter.bind(this),
169
- onDragLeave: this.handleDragLeave.bind(this),
170
- onDragOver: this.handleDragOver.bind(this),
171
- onDrop: this.handleDrop.bind(this)
172
- });
173
- }
174
- });
175
- if (this.previousDropTargets.length > 0) {
176
- const dropTargetsToRemove = this.previousDropTargets.filter(dt => !this.allDropTargets.includes(dt));
177
- dropTargetsToRemove.forEach(dropTarget => {
178
- const idx = this.service.dropTargets.findIndex(serviceDropTarget => serviceDropTarget.element === dropTarget);
179
- if (idx > -1) {
180
- this.service.dropTargets.splice(idx, 1);
181
- }
182
- });
183
- }
184
- this.previousDropTargets = this.allDropTargets;
185
- }
186
- emitZoneAwareEvent(event, normalizedEvent) {
187
- const eventProps = {
188
- dragTarget: this.service.dragTarget?.element,
189
- dropTarget: this.currentDropTargetElement,
190
- dragData: this.service.dragData,
191
- dragEvent: normalizedEvent,
192
- dropTargetIndex: this.service.dropIndex
193
- };
194
- if (isPresent(this.service.dragTarget?.hint)) {
195
- eventProps.hintElement = this.service.dragTarget.hint;
196
- }
197
- const eventArgs = new DropTargetEvent(eventProps);
198
- this.ngZone.run(() => {
199
- this[event].emit(eventArgs);
200
- });
201
- }
202
- getDropIndex() {
203
- return this.allDropTargets.indexOf(this.currentDropTargetElement);
204
- }
205
- clearPreviousTargets() {
206
- this.previousDropTargets.forEach(dropTarget => {
207
- const idx = this.service.dropTargets.findIndex(serviceDropTarget => serviceDropTarget.element === dropTarget);
208
- if (idx > -1) {
209
- this.service.dropTargets.splice(idx, 1);
210
- }
211
- });
212
- this.previousDropTargets = [];
213
- }
214
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DropTargetContainerDirective, deps: [{ token: i1.DragStateService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
215
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: DropTargetContainerDirective, isStandalone: true, selector: "[kendoDropTargetContainer]", inputs: { dropTargetFilter: "dropTargetFilter", dropDisabled: "dropDisabled" }, outputs: { onDragEnter: "onDragEnter", onDragOver: "onDragOver", onDragLeave: "onDragLeave", onDrop: "onDrop" }, exportAs: ["kendoDropTargetContainer"], ngImport: i0 });
216
- }
217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DropTargetContainerDirective, decorators: [{
218
- type: Directive,
219
- args: [{
220
- selector: '[kendoDropTargetContainer]',
221
- exportAs: 'kendoDropTargetContainer',
222
- standalone: true
223
- }]
224
- }], ctorParameters: () => [{ type: i1.DragStateService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], propDecorators: { dropTargetFilter: [{
225
- type: Input
226
- }], dropDisabled: [{
227
- type: Input
228
- }], onDragEnter: [{
229
- type: Output
230
- }], onDragOver: [{
231
- type: Output
232
- }], onDragLeave: [{
233
- type: Output
234
- }], onDrop: [{
235
- type: Output
236
- }] } });
@@ -1,137 +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 { Directive, ElementRef, EventEmitter, NgZone, Output } from "@angular/core";
6
- import { validatePackage } from '@progress/kendo-licensing';
7
- import { packageMetadata } from '../package-metadata';
8
- import { DragStateService } from "./drag-state.service";
9
- import { DropTargetEvent } from './events/drop-target-event';
10
- import { isPresent } from "./util";
11
- import * as i0 from "@angular/core";
12
- import * as i1 from "./drag-state.service";
13
- /**
14
- * Represents the Kendo UI DropTarget directive for Angular.
15
- * Use this directive to make an element a drop target for draggable items.
16
- *
17
- * ```html
18
- * <div kendoDropTarget>
19
- * Drop here
20
- * </div>
21
- * ```
22
- *
23
- */
24
- export class DropTargetDirective {
25
- service;
26
- element;
27
- ngZone;
28
- /**
29
- * Fires when a drag target enters the drop target.
30
- */
31
- onDragEnter = new EventEmitter();
32
- /**
33
- * Fires when a drag target is dragged over the drop target.
34
- */
35
- onDragOver = new EventEmitter();
36
- /**
37
- * Fires when a drag target leaves the drop target.
38
- */
39
- onDragLeave = new EventEmitter();
40
- /**
41
- * Fires when a drag target is dropped over the drop target.
42
- */
43
- onDrop = new EventEmitter();
44
- constructor(service, element, ngZone) {
45
- this.service = service;
46
- this.element = element;
47
- this.ngZone = ngZone;
48
- validatePackage(packageMetadata);
49
- }
50
- dropTarget;
51
- ngOnInit() {
52
- this.initializeDropTarget();
53
- this.service.dropTargets.push(this.dropTarget);
54
- }
55
- ngOnDestroy() {
56
- const currentDropTargetIndex = this.service.dropTargets.indexOf(this.dropTarget);
57
- this.service.dropTargets.splice(currentDropTargetIndex, 1);
58
- }
59
- /**
60
- * @hidden
61
- */
62
- handleDragEnter(event) {
63
- if (!this.service.dragTarget) {
64
- return;
65
- }
66
- this.service.dropTarget = this.dropTarget;
67
- this.emitZoneAwareEvent('onDragEnter', event);
68
- }
69
- /**
70
- * @hidden
71
- */
72
- handleDragLeave(event) {
73
- this.service.dropTarget = null;
74
- if (!this.service.dragTarget) {
75
- return;
76
- }
77
- this.emitZoneAwareEvent('onDragLeave', event);
78
- }
79
- /**
80
- * @hidden
81
- */
82
- handleDragOver(event) {
83
- if (!this.service.dragTarget) {
84
- return;
85
- }
86
- this.emitZoneAwareEvent('onDragOver', event);
87
- }
88
- /**
89
- * @hidden
90
- */
91
- handleDrop(event) {
92
- this.emitZoneAwareEvent('onDrop', event);
93
- this.service.dropTarget = null;
94
- }
95
- initializeDropTarget() {
96
- this.dropTarget = {
97
- element: this.element.nativeElement,
98
- onDragEnter: this.handleDragEnter.bind(this),
99
- onDragLeave: this.handleDragLeave.bind(this),
100
- onDragOver: this.handleDragOver.bind(this),
101
- onDrop: this.handleDrop.bind(this)
102
- };
103
- }
104
- emitZoneAwareEvent(event, normalizedEvent) {
105
- const eventProps = {
106
- dropTarget: this.element.nativeElement,
107
- dragTarget: this.service.dragTarget?.element,
108
- dragEvent: normalizedEvent,
109
- dragData: this.service.dragData
110
- };
111
- if (isPresent(this.service.dragTarget?.hint)) {
112
- eventProps.hintElement = this.service.dragTarget.element;
113
- }
114
- const eventArgs = new DropTargetEvent(eventProps);
115
- this.ngZone.run(() => {
116
- this[event].emit(eventArgs);
117
- });
118
- }
119
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DropTargetDirective, deps: [{ token: i1.DragStateService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
120
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: DropTargetDirective, isStandalone: true, selector: "[kendoDropTarget]", outputs: { onDragEnter: "onDragEnter", onDragOver: "onDragOver", onDragLeave: "onDragLeave", onDrop: "onDrop" }, exportAs: ["kendoDropTarget"], ngImport: i0 });
121
- }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DropTargetDirective, decorators: [{
123
- type: Directive,
124
- args: [{
125
- selector: '[kendoDropTarget]',
126
- exportAs: 'kendoDropTarget',
127
- standalone: true
128
- }]
129
- }], ctorParameters: () => [{ type: i1.DragStateService }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { onDragEnter: [{
130
- type: Output
131
- }], onDragOver: [{
132
- type: Output
133
- }], onDragLeave: [{
134
- type: Output
135
- }], onDrop: [{
136
- type: Output
137
- }] } });
@@ -1,52 +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 '@progress/kendo-angular-common';
6
- /**
7
- * Arguments for the drag event of the `DragTarget` and `DragTargetContainer`.
8
- */
9
- export class DragTargetDragEvent extends PreventableEvent {
10
- /**
11
- * The information related to the current drag event.
12
- * This is the normalized drag event that contains details about the drag operation.
13
- */
14
- dragEvent;
15
- /**
16
- * The DOM element being dragged.
17
- */
18
- dragTarget;
19
- /**
20
- * The hint element of the `DragTarget`.
21
- */
22
- hintElement;
23
- /**
24
- * The identifier passed to the `dragTargetId` input property of the `DragTarget` or `DragTargetContainer` directive.
25
- */
26
- dragTargetId;
27
- /**
28
- * The index of the current drag target in the collection of drag targets. Applies to `DragTargetContainer` directive.
29
- */
30
- dragTargetIndex;
31
- /**
32
- * Left for backward compatibility for the DragTarget deprecated events.
33
- * @hidden
34
- */
35
- get normalizedEvent() {
36
- return this.dragEvent;
37
- }
38
- /**
39
- * Left for backward compatibility for the DragTarget deprecated events.
40
- * @hidden
41
- */
42
- get hostElement() {
43
- return this.dragTarget;
44
- }
45
- /**
46
- * @hidden
47
- */
48
- constructor(args) {
49
- super();
50
- Object.assign(this, args);
51
- }
52
- }
@@ -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
- /**
6
- * Arguments for the dragReady event of the `DragTarget` and `DragTargetContainer`.
7
- */
8
- export class DragTargetDragReadyEvent {
9
- /**
10
- * The information related to the current drag event.
11
- * This is the normalized drag event that contains details about the drag operation.
12
- */
13
- dragEvent;
14
- /**
15
- * The DOM element being dragged.
16
- */
17
- dragTarget;
18
- /**
19
- * The identifier passed to the `dragTargetId` input property of the `DragTarget` or `DragTargetContainer` directive.
20
- */
21
- dragTargetId;
22
- /**
23
- * The index of the current drag target in the collection of drag targets. Applies to `DragTargetContainer` directive.
24
- */
25
- dragTargetIndex;
26
- /**
27
- * @hidden
28
- */
29
- constructor(args) {
30
- Object.assign(this, args);
31
- }
32
- }
@@ -1,46 +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
- * Arguments for the dragEnd event of the `DragTarget` and `DragTargetContainer`.
7
- */
8
- export class DragTargetDragEndEvent {
9
- /**
10
- * The information related to the current drag event.
11
- * This is the normalized drag event that contains details about the drag operation.
12
- */
13
- dragEvent;
14
- /**
15
- * The DOM element being dragged.
16
- */
17
- dragTarget;
18
- /**
19
- * The identifier passed to the `dragTargetId` input property of the `DragTarget` or `DragTargetContainer` directive.
20
- */
21
- dragTargetId;
22
- /**
23
- * The index of the current drag target in the collection of drag targets. Applies to `DragTargetContainer` directive.
24
- */
25
- dragTargetIndex;
26
- /**
27
- * Left for backward compatibility for the DragTarget deprecated events.
28
- * @hidden
29
- */
30
- get normalizedEvent() {
31
- return this.dragEvent;
32
- }
33
- /**
34
- * Left for backward compatibility for the DragTarget deprecated events.
35
- * @hidden
36
- */
37
- get hostElement() {
38
- return this.dragTarget;
39
- }
40
- /**
41
- * @hidden
42
- */
43
- constructor(args) {
44
- Object.assign(this, args);
45
- }
46
- }
@@ -1,10 +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
- export { DragTargetPressEvent } from './press-event';
6
- export { DragTargetDragReadyEvent } from './dragready-event';
7
- export { DragTargetDragStartEvent } from './start-event';
8
- export { DragTargetDragEndEvent } from './end-event';
9
- export { DragTargetDragEvent } from './drag-event';
10
- export { DragTargetReleaseEvent } from './release-event';
@@ -1,46 +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
- * Arguments for the press event of the `DragTarget` and `DragTargetContainer`.
7
- */
8
- export class DragTargetPressEvent {
9
- /**
10
- * The information related to the current drag event.
11
- * This is the normalized drag event that contains details about the drag operation.
12
- */
13
- dragEvent;
14
- /**
15
- * The DOM element being dragged.
16
- */
17
- dragTarget;
18
- /**
19
- * The identifier passed to the `dragTargetId` input property of the `DragTarget` or `DragTargetContainer` directive.
20
- */
21
- dragTargetId;
22
- /**
23
- * The index of the current drag target in the collection of drag targets. Applies to `DragTargetContainer` directive.
24
- */
25
- dragTargetIndex;
26
- /**
27
- * Left for backward compatibility for the DragTarget deprecated events.
28
- * @hidden
29
- */
30
- get normalizedEvent() {
31
- return this.dragEvent;
32
- }
33
- /**
34
- * Left for backward compatibility for the DragTarget deprecated events.
35
- * @hidden
36
- */
37
- get hostElement() {
38
- return this.dragTarget;
39
- }
40
- /**
41
- * @hidden
42
- */
43
- constructor(args) {
44
- Object.assign(this, args);
45
- }
46
- }
@@ -1,46 +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
- * Arguments for the release event of the `DragTarget` and `DragTargetContainer`.
7
- */
8
- export class DragTargetReleaseEvent {
9
- /**
10
- * The information related to the current drag event.
11
- * This is the normalized drag event that contains details about the drag operation.
12
- */
13
- dragEvent;
14
- /**
15
- * The DOM element being dragged.
16
- */
17
- dragTarget;
18
- /**
19
- * The identifier passed to the `dragTargetId` input property of the `DragTarget` or `DragTargetContainer` directive.
20
- */
21
- dragTargetId;
22
- /**
23
- * The index of the current drag target in the collection of drag targets. Applies to `DragTargetContainer` directive.
24
- */
25
- dragTargetIndex;
26
- /**
27
- * Left for backward compatibility for the DragTarget deprecated events.
28
- * @hidden
29
- */
30
- get normalizedEvent() {
31
- return this.dragEvent;
32
- }
33
- /**
34
- * Left for backward compatibility for the DragTarget deprecated events.
35
- * @hidden
36
- */
37
- get hostElement() {
38
- return this.dragTarget;
39
- }
40
- /**
41
- * @hidden
42
- */
43
- constructor(args) {
44
- Object.assign(this, args);
45
- }
46
- }
@@ -1,48 +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 '@progress/kendo-angular-common';
6
- /**
7
- * Arguments for the `dragStart` event of the `DragTarget` and `DragTargetContainer`.
8
- */
9
- export class DragTargetDragStartEvent extends PreventableEvent {
10
- /**
11
- * The information related to the current drag event.
12
- * This is the normalized drag event that contains details about the drag operation.
13
- */
14
- dragEvent;
15
- /**
16
- * The DOM element being dragged.
17
- */
18
- dragTarget;
19
- /**
20
- * The identifier passed to the `dragTargetId` input property of the `DragTarget` or `DragTargetContainer` directive.
21
- */
22
- dragTargetId;
23
- /**
24
- * The index of the current drag target in the collection of drag targets. Applies to `DragTargetContainer` directive.
25
- */
26
- dragTargetIndex;
27
- /**
28
- * Left for backward compatibility for the DragTarget deprecated events.
29
- * @hidden
30
- */
31
- get normalizedEvent() {
32
- return this.dragEvent;
33
- }
34
- /**
35
- * Left for backward compatibility for the DragTarget deprecated events.
36
- * @hidden
37
- */
38
- get hostElement() {
39
- return this.dragTarget;
40
- }
41
- /**
42
- * @hidden
43
- */
44
- constructor(args) {
45
- super();
46
- Object.assign(this, args);
47
- }
48
- }