@progress/kendo-angular-utils 17.0.0-develop.8 → 17.0.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/README.md +27 -16
- package/drag-and-drop/dragtarget-container.directive.d.ts +1 -1
- package/drag-and-drop/dragtarget.directive.d.ts +1 -1
- package/drag-and-drop/droptarget-container.directive.d.ts +1 -1
- package/drag-and-drop/hint.component.d.ts +1 -1
- package/drag-and-drop/models/drag-axis.d.ts +1 -1
- package/drag-and-drop/models/drag-mode.d.ts +1 -1
- package/drag-and-drop/models/functions.d.ts +2 -2
- package/{esm2020 → esm2022}/drag-and-drop/drag-state.service.mjs +28 -24
- package/{esm2020 → esm2022}/drag-and-drop/draghandle.directive.mjs +5 -4
- package/{esm2020 → esm2022}/drag-and-drop/dragtarget-container.directive.mjs +90 -76
- package/{esm2020 → esm2022}/drag-and-drop/dragtarget.directive.mjs +92 -76
- package/{esm2020 → esm2022}/drag-and-drop/droptarget-container.directive.mjs +34 -30
- package/{esm2020 → esm2022}/drag-and-drop/droptarget.directive.mjs +23 -19
- package/{esm2020 → esm2022}/drag-and-drop/events/drag-target/drag-event.mjs +25 -5
- package/{esm2020 → esm2022}/drag-and-drop/events/drag-target/dragready-event.mjs +16 -0
- package/{esm2020 → esm2022}/drag-and-drop/events/drag-target/end-event.mjs +20 -4
- package/{esm2020 → esm2022}/drag-and-drop/events/drag-target/press-event.mjs +20 -4
- package/{esm2020 → esm2022}/drag-and-drop/events/drag-target/release-event.mjs +20 -4
- package/{esm2020 → esm2022}/drag-and-drop/events/drag-target/start-event.mjs +21 -5
- package/{esm2020 → esm2022}/drag-and-drop/events/drop-target-event.mjs +28 -4
- package/{esm2020 → esm2022}/drag-and-drop/hint.component.mjs +10 -5
- package/{esm2020 → esm2022}/drag-and-drop.module.mjs +4 -4
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/utils.module.mjs +4 -4
- package/{fesm2020 → fesm2022}/progress-kendo-angular-utils.mjs +443 -271
- package/package.json +11 -17
- package/fesm2015/progress-kendo-angular-utils.mjs +0 -2034
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/drag-and-drop/events/drag-target/index.mjs +0 -0
- /package/{esm2020 → esm2022}/drag-and-drop/events/index.mjs +0 -0
- /package/{esm2020 → esm2022}/drag-and-drop/models/autoscroll-options.mjs +0 -0
- /package/{esm2020 → esm2022}/drag-and-drop/models/coordinates.mjs +0 -0
- /package/{esm2020 → esm2022}/drag-and-drop/models/drag-axis.mjs +0 -0
- /package/{esm2020 → esm2022}/drag-and-drop/models/drag-mode.mjs +0 -0
- /package/{esm2020 → esm2022}/drag-and-drop/models/functions.mjs +0 -0
- /package/{esm2020 → esm2022}/drag-and-drop/models/hint-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/drag-and-drop/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/drag-and-drop/models/scroll-direction.mjs +0 -0
- /package/{esm2020 → esm2022}/drag-and-drop/util.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-utils.mjs +0 -0
|
@@ -22,33 +22,10 @@ import * as i1 from "./drag-state.service";
|
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
24
|
export class DropTargetContainerDirective {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
this.cdr = cdr;
|
|
30
|
-
/**
|
|
31
|
-
* Fires when a DragTarget element enters the DropTarget.
|
|
32
|
-
*/
|
|
33
|
-
this.onDragEnter = new EventEmitter();
|
|
34
|
-
/**
|
|
35
|
-
* Fires when a DragTarget element is being dragged over the DropTarget.
|
|
36
|
-
*/
|
|
37
|
-
this.onDragOver = new EventEmitter();
|
|
38
|
-
/**
|
|
39
|
-
* Fires when a DragTarget element leaves the DropTarget.
|
|
40
|
-
*/
|
|
41
|
-
this.onDragLeave = new EventEmitter();
|
|
42
|
-
/**
|
|
43
|
-
* Fires when a DragTarget element is dropped over the DropTarget.
|
|
44
|
-
*/
|
|
45
|
-
this.onDrop = new EventEmitter();
|
|
46
|
-
this.currentDropTargetElement = null;
|
|
47
|
-
this.previousDropTargets = [];
|
|
48
|
-
this._dropTargetFilter = null;
|
|
49
|
-
this._dropDisabled = false;
|
|
50
|
-
validatePackage(packageMetadata);
|
|
51
|
-
}
|
|
25
|
+
service;
|
|
26
|
+
element;
|
|
27
|
+
ngZone;
|
|
28
|
+
cdr;
|
|
52
29
|
/**
|
|
53
30
|
* Specifies a selector for elements within a container which will be configured as drop targets
|
|
54
31
|
* ([see example]({% slug drop_target_container %})). The possible values include any
|
|
@@ -78,6 +55,22 @@ export class DropTargetContainerDirective {
|
|
|
78
55
|
get dropDisabled() {
|
|
79
56
|
return this._dropDisabled;
|
|
80
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Fires when a DragTarget element enters the DropTarget.
|
|
60
|
+
*/
|
|
61
|
+
onDragEnter = new EventEmitter();
|
|
62
|
+
/**
|
|
63
|
+
* Fires when a DragTarget element is being dragged over the DropTarget.
|
|
64
|
+
*/
|
|
65
|
+
onDragOver = new EventEmitter();
|
|
66
|
+
/**
|
|
67
|
+
* Fires when a DragTarget element leaves the DropTarget.
|
|
68
|
+
*/
|
|
69
|
+
onDragLeave = new EventEmitter();
|
|
70
|
+
/**
|
|
71
|
+
* Fires when a DragTarget element is dropped over the DropTarget.
|
|
72
|
+
*/
|
|
73
|
+
onDrop = new EventEmitter();
|
|
81
74
|
/**
|
|
82
75
|
* Used for notifying the DropTargetContainer that its content has changed.
|
|
83
76
|
*/
|
|
@@ -85,6 +78,17 @@ export class DropTargetContainerDirective {
|
|
|
85
78
|
this.cdr.detectChanges();
|
|
86
79
|
this.initializeDropTargets();
|
|
87
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;
|
|
88
92
|
get nativeElement() {
|
|
89
93
|
return this.element.nativeElement;
|
|
90
94
|
}
|
|
@@ -205,10 +209,10 @@ export class DropTargetContainerDirective {
|
|
|
205
209
|
});
|
|
206
210
|
this.previousDropTargets = [];
|
|
207
211
|
}
|
|
212
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropTargetContainerDirective, deps: [{ token: i1.DragStateService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
213
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DropTargetContainerDirective, isStandalone: true, selector: "[kendoDropTargetContainer]", inputs: { dropTargetFilter: "dropTargetFilter", dropDisabled: "dropDisabled" }, outputs: { onDragEnter: "onDragEnter", onDragOver: "onDragOver", onDragLeave: "onDragLeave", onDrop: "onDrop" }, exportAs: ["kendoDropTargetContainer"], ngImport: i0 });
|
|
208
214
|
}
|
|
209
|
-
|
|
210
|
-
DropTargetContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DropTargetContainerDirective, isStandalone: true, selector: "[kendoDropTargetContainer]", inputs: { dropTargetFilter: "dropTargetFilter", dropDisabled: "dropDisabled" }, outputs: { onDragEnter: "onDragEnter", onDragOver: "onDragOver", onDragLeave: "onDragLeave", onDrop: "onDrop" }, exportAs: ["kendoDropTargetContainer"], ngImport: i0 });
|
|
211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropTargetContainerDirective, decorators: [{
|
|
215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropTargetContainerDirective, decorators: [{
|
|
212
216
|
type: Directive,
|
|
213
217
|
args: [{
|
|
214
218
|
selector: '[kendoDropTargetContainer]',
|
|
@@ -14,28 +14,32 @@ import * as i1 from "./drag-state.service";
|
|
|
14
14
|
* Represents the Kendo UI DropTarget directive for Angular.
|
|
15
15
|
*/
|
|
16
16
|
export class DropTargetDirective {
|
|
17
|
+
service;
|
|
18
|
+
element;
|
|
19
|
+
ngZone;
|
|
20
|
+
/**
|
|
21
|
+
* Fires when a DragTarget element enters the DropTarget.
|
|
22
|
+
*/
|
|
23
|
+
onDragEnter = new EventEmitter();
|
|
24
|
+
/**
|
|
25
|
+
* Fires when a DragTarget element is being dragged over the DropTarget.
|
|
26
|
+
*/
|
|
27
|
+
onDragOver = new EventEmitter();
|
|
28
|
+
/**
|
|
29
|
+
* Fires when a DragTarget element leaves the DropTarget.
|
|
30
|
+
*/
|
|
31
|
+
onDragLeave = new EventEmitter();
|
|
32
|
+
/**
|
|
33
|
+
* Fires when a DragTarget element is dropped over the DropTarget.
|
|
34
|
+
*/
|
|
35
|
+
onDrop = new EventEmitter();
|
|
17
36
|
constructor(service, element, ngZone) {
|
|
18
37
|
this.service = service;
|
|
19
38
|
this.element = element;
|
|
20
39
|
this.ngZone = ngZone;
|
|
21
|
-
/**
|
|
22
|
-
* Fires when a DragTarget element enters the DropTarget.
|
|
23
|
-
*/
|
|
24
|
-
this.onDragEnter = new EventEmitter();
|
|
25
|
-
/**
|
|
26
|
-
* Fires when a DragTarget element is being dragged over the DropTarget.
|
|
27
|
-
*/
|
|
28
|
-
this.onDragOver = new EventEmitter();
|
|
29
|
-
/**
|
|
30
|
-
* Fires when a DragTarget element leaves the DropTarget.
|
|
31
|
-
*/
|
|
32
|
-
this.onDragLeave = new EventEmitter();
|
|
33
|
-
/**
|
|
34
|
-
* Fires when a DragTarget element is dropped over the DropTarget.
|
|
35
|
-
*/
|
|
36
|
-
this.onDrop = new EventEmitter();
|
|
37
40
|
validatePackage(packageMetadata);
|
|
38
41
|
}
|
|
42
|
+
dropTarget;
|
|
39
43
|
ngOnInit() {
|
|
40
44
|
this.initializeDropTarget();
|
|
41
45
|
this.service.dropTargets.push(this.dropTarget);
|
|
@@ -100,10 +104,10 @@ export class DropTargetDirective {
|
|
|
100
104
|
this[event].emit(eventArgs);
|
|
101
105
|
});
|
|
102
106
|
}
|
|
107
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropTargetDirective, deps: [{ token: i1.DragStateService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
108
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DropTargetDirective, isStandalone: true, selector: "[kendoDropTarget]", outputs: { onDragEnter: "onDragEnter", onDragOver: "onDragOver", onDragLeave: "onDragLeave", onDrop: "onDrop" }, exportAs: ["kendoDropTarget"], ngImport: i0 });
|
|
103
109
|
}
|
|
104
|
-
|
|
105
|
-
DropTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DropTargetDirective, isStandalone: true, selector: "[kendoDropTarget]", outputs: { onDragEnter: "onDragEnter", onDragOver: "onDragOver", onDragLeave: "onDragLeave", onDrop: "onDrop" }, exportAs: ["kendoDropTarget"], ngImport: i0 });
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropTargetDirective, decorators: [{
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropTargetDirective, decorators: [{
|
|
107
111
|
type: Directive,
|
|
108
112
|
args: [{
|
|
109
113
|
selector: '[kendoDropTarget]',
|
|
@@ -8,12 +8,25 @@ import { PreventableEvent } from '@progress/kendo-angular-common';
|
|
|
8
8
|
*/
|
|
9
9
|
export class DragTargetDragEvent extends PreventableEvent {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* The normalized drag event.
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
dragEvent;
|
|
14
|
+
/**
|
|
15
|
+
* The DOM element that is being dragged.
|
|
16
|
+
*/
|
|
17
|
+
dragTarget;
|
|
18
|
+
/**
|
|
19
|
+
* The hint of the DragTarget.
|
|
20
|
+
*/
|
|
21
|
+
hintElement;
|
|
22
|
+
/**
|
|
23
|
+
* The identifier passed to the `dragTargetId` input property of the `DragTarget` or `DragTargetContainer` directive.
|
|
24
|
+
*/
|
|
25
|
+
dragTargetId;
|
|
26
|
+
/**
|
|
27
|
+
* The index of the current drag target in the collection of drag targets (applicable for the `DragTargetContainer` directive).
|
|
28
|
+
*/
|
|
29
|
+
dragTargetIndex;
|
|
17
30
|
/**
|
|
18
31
|
* Left for backward compatibility for the DragTarget deprecated events.
|
|
19
32
|
* @hidden
|
|
@@ -28,4 +41,11 @@ export class DragTargetDragEvent extends PreventableEvent {
|
|
|
28
41
|
get hostElement() {
|
|
29
42
|
return this.dragTarget;
|
|
30
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
constructor(args) {
|
|
48
|
+
super();
|
|
49
|
+
Object.assign(this, args);
|
|
50
|
+
}
|
|
31
51
|
}
|
|
@@ -6,6 +6,22 @@
|
|
|
6
6
|
* Arguments for the dragReady event of the DragTarget and DragTargetContainer.
|
|
7
7
|
*/
|
|
8
8
|
export class DragTargetDragReadyEvent {
|
|
9
|
+
/**
|
|
10
|
+
* The normalized drag event.
|
|
11
|
+
*/
|
|
12
|
+
dragEvent;
|
|
13
|
+
/**
|
|
14
|
+
* The DOM element that is being dragged.
|
|
15
|
+
*/
|
|
16
|
+
dragTarget;
|
|
17
|
+
/**
|
|
18
|
+
* The identifier passed to the `dragTargetId` input property of the `DragTarget` or `DragTargetContainer` directive.
|
|
19
|
+
*/
|
|
20
|
+
dragTargetId;
|
|
21
|
+
/**
|
|
22
|
+
* The index of the current drag target in the collection of drag targets (applicable for the `DragTargetContainer` directive).
|
|
23
|
+
*/
|
|
24
|
+
dragTargetIndex;
|
|
9
25
|
/**
|
|
10
26
|
* @hidden
|
|
11
27
|
*/
|
|
@@ -7,11 +7,21 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export class DragTargetDragEndEvent {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* The normalized drag event.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
dragEvent;
|
|
13
|
+
/**
|
|
14
|
+
* The DOM element that is being dragged.
|
|
15
|
+
*/
|
|
16
|
+
dragTarget;
|
|
17
|
+
/**
|
|
18
|
+
* The identifier passed to the `dragTargetId` input property of the `DragTarget` or `DragTargetContainer` directive.
|
|
19
|
+
*/
|
|
20
|
+
dragTargetId;
|
|
21
|
+
/**
|
|
22
|
+
* The index of the current drag target in the collection of drag targets (applicable for the `DragTargetContainer` directive).
|
|
23
|
+
*/
|
|
24
|
+
dragTargetIndex;
|
|
15
25
|
/**
|
|
16
26
|
* Left for backward compatibility for the DragTarget deprecated events.
|
|
17
27
|
* @hidden
|
|
@@ -26,4 +36,10 @@ export class DragTargetDragEndEvent {
|
|
|
26
36
|
get hostElement() {
|
|
27
37
|
return this.dragTarget;
|
|
28
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
constructor(args) {
|
|
43
|
+
Object.assign(this, args);
|
|
44
|
+
}
|
|
29
45
|
}
|
|
@@ -7,11 +7,21 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export class DragTargetPressEvent {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* The normalized drag event.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
dragEvent;
|
|
13
|
+
/**
|
|
14
|
+
* The DOM element that is being dragged.
|
|
15
|
+
*/
|
|
16
|
+
dragTarget;
|
|
17
|
+
/**
|
|
18
|
+
* The identifier passed to the `dragTargetId` input property of the `DragTarget` or `DragTargetContainer` directive.
|
|
19
|
+
*/
|
|
20
|
+
dragTargetId;
|
|
21
|
+
/**
|
|
22
|
+
* The index of the current drag target in the collection of drag targets (applicable for the `DragTargetContainer` directive).
|
|
23
|
+
*/
|
|
24
|
+
dragTargetIndex;
|
|
15
25
|
/**
|
|
16
26
|
* Left for backward compatibility for the DragTarget deprecated events.
|
|
17
27
|
* @hidden
|
|
@@ -26,4 +36,10 @@ export class DragTargetPressEvent {
|
|
|
26
36
|
get hostElement() {
|
|
27
37
|
return this.dragTarget;
|
|
28
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
constructor(args) {
|
|
43
|
+
Object.assign(this, args);
|
|
44
|
+
}
|
|
29
45
|
}
|
|
@@ -7,11 +7,21 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export class DragTargetReleaseEvent {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* The normalized drag event.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
dragEvent;
|
|
13
|
+
/**
|
|
14
|
+
* The DOM element that is being dragged.
|
|
15
|
+
*/
|
|
16
|
+
dragTarget;
|
|
17
|
+
/**
|
|
18
|
+
* The identifier passed to the `dragTargetId` input property of the `DragTarget` or `DragTargetContainer` directive.
|
|
19
|
+
*/
|
|
20
|
+
dragTargetId;
|
|
21
|
+
/**
|
|
22
|
+
* The index of the current drag target in the collection of drag targets (applicable for the `DragTargetContainer` directive).
|
|
23
|
+
*/
|
|
24
|
+
dragTargetIndex;
|
|
15
25
|
/**
|
|
16
26
|
* Left for backward compatibility for the DragTarget deprecated events.
|
|
17
27
|
* @hidden
|
|
@@ -26,4 +36,10 @@ export class DragTargetReleaseEvent {
|
|
|
26
36
|
get hostElement() {
|
|
27
37
|
return this.dragTarget;
|
|
28
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
constructor(args) {
|
|
43
|
+
Object.assign(this, args);
|
|
44
|
+
}
|
|
29
45
|
}
|
|
@@ -8,12 +8,21 @@ import { PreventableEvent } from '@progress/kendo-angular-common';
|
|
|
8
8
|
*/
|
|
9
9
|
export class DragTargetDragStartEvent extends PreventableEvent {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* The normalized drag event.
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
dragEvent;
|
|
14
|
+
/**
|
|
15
|
+
* The DOM element that is 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 (applicable for the `DragTargetContainer` directive).
|
|
24
|
+
*/
|
|
25
|
+
dragTargetIndex;
|
|
17
26
|
/**
|
|
18
27
|
* Left for backward compatibility for the DragTarget deprecated events.
|
|
19
28
|
* @hidden
|
|
@@ -28,4 +37,11 @@ export class DragTargetDragStartEvent extends PreventableEvent {
|
|
|
28
37
|
get hostElement() {
|
|
29
38
|
return this.dragTarget;
|
|
30
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
constructor(args) {
|
|
44
|
+
super();
|
|
45
|
+
Object.assign(this, args);
|
|
46
|
+
}
|
|
31
47
|
}
|
|
@@ -7,11 +7,29 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export class DropTargetEvent {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* The current drag target element.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
dragTarget;
|
|
13
|
+
/**
|
|
14
|
+
* The current drop target element.
|
|
15
|
+
*/
|
|
16
|
+
dropTarget;
|
|
17
|
+
/**
|
|
18
|
+
* The information related to the current drag event.
|
|
19
|
+
*/
|
|
20
|
+
dragEvent;
|
|
21
|
+
/**
|
|
22
|
+
* The data passed to the `dragData` input property of the `DragTarget` or `DragTargetContainer` directive.
|
|
23
|
+
*/
|
|
24
|
+
dragData;
|
|
25
|
+
/**
|
|
26
|
+
* The index of the current drop target in the collection of drop targets (applicable for the `DropTargetContainer` directive).
|
|
27
|
+
*/
|
|
28
|
+
dropTargetIndex;
|
|
29
|
+
/**
|
|
30
|
+
* The hint of the DragTarget.
|
|
31
|
+
*/
|
|
32
|
+
hintElement;
|
|
15
33
|
/**
|
|
16
34
|
* Left for backward compatibility for the DropTarget deprecated events.
|
|
17
35
|
* @hidden
|
|
@@ -26,4 +44,10 @@ export class DropTargetEvent {
|
|
|
26
44
|
get hostElement() {
|
|
27
45
|
return this.dropTarget;
|
|
28
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
50
|
+
constructor(args) {
|
|
51
|
+
Object.assign(this, args);
|
|
52
|
+
}
|
|
29
53
|
}
|
|
@@ -9,17 +9,22 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export class HintComponent {
|
|
12
|
+
element;
|
|
13
|
+
template;
|
|
14
|
+
directive;
|
|
15
|
+
targetIndex;
|
|
16
|
+
contextData;
|
|
17
|
+
pointerEvents = 'none';
|
|
12
18
|
constructor(element) {
|
|
13
19
|
this.element = element;
|
|
14
|
-
this.pointerEvents = 'none';
|
|
15
20
|
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
HintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: HintComponent, isStandalone: true, selector: "kendo-draghint", inputs: { template: "template", directive: "directive", targetIndex: "targetIndex", contextData: "contextData" }, host: { properties: { "style.pointer-events": "this.pointerEvents" } }, ngImport: i0, template: `
|
|
21
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HintComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HintComponent, isStandalone: true, selector: "kendo-draghint", inputs: { template: "template", directive: "directive", targetIndex: "targetIndex", contextData: "contextData" }, host: { properties: { "style.pointer-events": "this.pointerEvents" } }, ngImport: i0, template: `
|
|
19
23
|
<ng-container *ngTemplateOutlet="template; context: { $implicit: directive, index: targetIndex, data: contextData }">
|
|
20
24
|
</ng-container>
|
|
21
25
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
22
|
-
|
|
26
|
+
}
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HintComponent, decorators: [{
|
|
23
28
|
type: Component,
|
|
24
29
|
args: [{
|
|
25
30
|
selector: 'kendo-draghint',
|
|
@@ -44,11 +44,11 @@ import * as i6 from "./drag-and-drop/hint.component";
|
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
46
|
export class DragAndDropModule {
|
|
47
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DragAndDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
48
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DragAndDropModule, imports: [i1.DragTargetDirective, i2.DragHandleDirective, i3.DropTargetDirective, i4.DragTargetContainerDirective, i5.DropTargetContainerDirective, i6.HintComponent], exports: [i1.DragTargetDirective, i2.DragHandleDirective, i3.DropTargetDirective, i4.DragTargetContainerDirective, i5.DropTargetContainerDirective, i6.HintComponent] });
|
|
49
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DragAndDropModule });
|
|
47
50
|
}
|
|
48
|
-
|
|
49
|
-
DragAndDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DragAndDropModule, imports: [i1.DragTargetDirective, i2.DragHandleDirective, i3.DropTargetDirective, i4.DragTargetContainerDirective, i5.DropTargetContainerDirective, i6.HintComponent], exports: [i1.DragTargetDirective, i2.DragHandleDirective, i3.DropTargetDirective, i4.DragTargetContainerDirective, i5.DropTargetContainerDirective, i6.HintComponent] });
|
|
50
|
-
DragAndDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DragAndDropModule, imports: [i6.HintComponent] });
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DragAndDropModule, decorators: [{
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DragAndDropModule, decorators: [{
|
|
52
52
|
type: NgModule,
|
|
53
53
|
args: [{
|
|
54
54
|
exports: [...KENDO_DRAGANDDROP],
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-utils',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '17.0.0
|
|
12
|
+
publishDate: 1731413980,
|
|
13
|
+
version: '17.0.0',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -44,11 +44,11 @@ import * as i6 from "./drag-and-drop/hint.component";
|
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
46
|
export class UtilsModule {
|
|
47
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UtilsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
48
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: UtilsModule, imports: [i1.DragTargetDirective, i2.DragHandleDirective, i3.DropTargetDirective, i4.DragTargetContainerDirective, i5.DropTargetContainerDirective, i6.HintComponent], exports: [i1.DragTargetDirective, i2.DragHandleDirective, i3.DropTargetDirective, i4.DragTargetContainerDirective, i5.DropTargetContainerDirective, i6.HintComponent] });
|
|
49
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UtilsModule });
|
|
47
50
|
}
|
|
48
|
-
|
|
49
|
-
UtilsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UtilsModule, imports: [i1.DragTargetDirective, i2.DragHandleDirective, i3.DropTargetDirective, i4.DragTargetContainerDirective, i5.DropTargetContainerDirective, i6.HintComponent], exports: [i1.DragTargetDirective, i2.DragHandleDirective, i3.DropTargetDirective, i4.DragTargetContainerDirective, i5.DropTargetContainerDirective, i6.HintComponent] });
|
|
50
|
-
UtilsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilsModule, imports: [i6.HintComponent] });
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilsModule, decorators: [{
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UtilsModule, decorators: [{
|
|
52
52
|
type: NgModule,
|
|
53
53
|
args: [{
|
|
54
54
|
exports: [...KENDO_UTILS],
|