@progress/kendo-angular-utils 19.1.2-develop.4 → 19.1.2-develop.5

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 (44) hide show
  1. package/adaptive-breakpoints/adaptive-settings.d.ts +4 -4
  2. package/adaptive-breakpoints/adaptive-settings.service.d.ts +2 -2
  3. package/adaptive-breakpoints/adaptive.service.d.ts +6 -10
  4. package/adaptive-breakpoints/models/adaptive-settings.d.ts +6 -3
  5. package/directives.d.ts +20 -3
  6. package/drag-and-drop/draghandle.directive.d.ts +10 -2
  7. package/drag-and-drop/dragtarget-container.directive.d.ts +26 -25
  8. package/drag-and-drop/dragtarget.directive.d.ts +16 -15
  9. package/drag-and-drop/droptarget-container.directive.d.ts +12 -12
  10. package/drag-and-drop/droptarget.directive.d.ts +12 -4
  11. package/drag-and-drop/events/drag-target/drag-event.d.ts +6 -5
  12. package/drag-and-drop/events/drag-target/dragready-event.d.ts +5 -4
  13. package/drag-and-drop/events/drag-target/end-event.d.ts +5 -4
  14. package/drag-and-drop/events/drag-target/press-event.d.ts +5 -4
  15. package/drag-and-drop/events/drag-target/release-event.d.ts +5 -4
  16. package/drag-and-drop/events/drag-target/start-event.d.ts +5 -4
  17. package/drag-and-drop/events/drop-target-event.d.ts +3 -3
  18. package/drag-and-drop/models/autoscroll-options.d.ts +4 -4
  19. package/drag-and-drop/models/functions.d.ts +7 -9
  20. package/drag-and-drop/models/hint-settings.d.ts +3 -3
  21. package/drag-and-drop/models/scroll-direction.d.ts +3 -0
  22. package/drag-and-drop.module.d.ts +5 -17
  23. package/esm2022/adaptive-breakpoints/adaptive-settings.mjs +4 -4
  24. package/esm2022/adaptive-breakpoints/adaptive-settings.service.mjs +2 -2
  25. package/esm2022/adaptive-breakpoints/adaptive.service.mjs +6 -10
  26. package/esm2022/directives.mjs +20 -3
  27. package/esm2022/drag-and-drop/draghandle.directive.mjs +10 -2
  28. package/esm2022/drag-and-drop/dragtarget-container.directive.mjs +26 -25
  29. package/esm2022/drag-and-drop/dragtarget.directive.mjs +16 -15
  30. package/esm2022/drag-and-drop/droptarget-container.directive.mjs +12 -12
  31. package/esm2022/drag-and-drop/droptarget.directive.mjs +12 -4
  32. package/esm2022/drag-and-drop/events/drag-target/drag-event.mjs +6 -5
  33. package/esm2022/drag-and-drop/events/drag-target/dragready-event.mjs +5 -4
  34. package/esm2022/drag-and-drop/events/drag-target/end-event.mjs +5 -4
  35. package/esm2022/drag-and-drop/events/drag-target/press-event.mjs +5 -4
  36. package/esm2022/drag-and-drop/events/drag-target/release-event.mjs +5 -4
  37. package/esm2022/drag-and-drop/events/drag-target/start-event.mjs +5 -4
  38. package/esm2022/drag-and-drop/events/drop-target-event.mjs +3 -3
  39. package/esm2022/drag-and-drop.module.mjs +5 -17
  40. package/esm2022/package-metadata.mjs +2 -2
  41. package/esm2022/utils.module.mjs +5 -17
  42. package/fesm2022/progress-kendo-angular-utils.mjs +154 -141
  43. package/package.json +4 -4
  44. package/utils.module.d.ts +5 -17
@@ -5,15 +5,16 @@
5
5
  import { NormalizedDragEvent } from '@progress/kendo-draggable-common';
6
6
  import { PreventableEvent } from '@progress/kendo-angular-common';
7
7
  /**
8
- * Arguments for the dragStart event of the DragTarget and DragTargetContainer.
8
+ * Arguments for the `dragStart` event of the `DragTarget` and `DragTargetContainer`.
9
9
  */
10
10
  export declare class DragTargetDragStartEvent extends PreventableEvent {
11
11
  /**
12
- * The normalized drag event.
12
+ * The information related to the current drag event.
13
+ * This is the normalized drag event that contains details about the drag operation.
13
14
  */
14
15
  dragEvent: NormalizedDragEvent;
15
16
  /**
16
- * The DOM element that is being dragged.
17
+ * The DOM element being dragged.
17
18
  */
18
19
  dragTarget: HTMLElement;
19
20
  /**
@@ -21,7 +22,7 @@ export declare class DragTargetDragStartEvent extends PreventableEvent {
21
22
  */
22
23
  dragTargetId?: any;
23
24
  /**
24
- * The index of the current drag target in the collection of drag targets (applicable for the `DragTargetContainer` directive).
25
+ * The index of the current drag target in the collection of drag targets. Applies to `DragTargetContainer` directive.
25
26
  */
26
27
  dragTargetIndex?: number;
27
28
  /**
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { NormalizedDragEvent } from "@progress/kendo-draggable-common";
6
6
  /**
7
- * Arguments for the drag events of the DropTarget and DropTargetContainer directives.
7
+ * Arguments for the drag events of the `DropTarget` and `DropTargetContainer` directives.
8
8
  */
9
9
  export declare class DropTargetEvent {
10
10
  /**
@@ -24,11 +24,11 @@ export declare class DropTargetEvent {
24
24
  */
25
25
  dragData: any;
26
26
  /**
27
- * The index of the current drop target in the collection of drop targets (applicable for the `DropTargetContainer` directive).
27
+ * The index of the current drop target in the collection of drop targets. Applies to `DropTargetContainer` directive.
28
28
  */
29
29
  dropTargetIndex?: number;
30
30
  /**
31
- * The hint of the DragTarget.
31
+ * The hint element of the `DragTarget`.
32
32
  */
33
33
  hintElement?: HTMLElement;
34
34
  /**
@@ -5,19 +5,19 @@
5
5
  import { ElementRef } from "@angular/core";
6
6
  import { ScrollDirection } from "./scroll-direction";
7
7
  /**
8
- * Represents additional configuration options for the autoScroll functionality of the DragTarget.
8
+ * Represents additional configuration options for the autoScroll feature of the DragTarget.
9
9
  */
10
10
  export interface AutoScrollOptions {
11
11
  /**
12
- * Overrides the calculated element used for boundary detection, used to calculate the autoScroll velocity.
12
+ * Sets the element for boundary detection. Used to calculate the autoScroll velocity.
13
13
  */
14
14
  boundaryElementRef?: ElementRef;
15
15
  /**
16
- * Specifies the direction of the autoScroll functionality.
16
+ * Sets the direction for the autoScroll feature.
17
17
  */
18
18
  direction?: ScrollDirection;
19
19
  /**
20
- * Specifies whether the autoScroll functionality will be enabled.
20
+ * Enables or disables the autoScroll feature.
21
21
  */
22
22
  enabled?: boolean;
23
23
  }
@@ -3,20 +3,18 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Represents the callback that is used by the `dragData` property of the [`DragTarget`]({% slug api_utils_dragtargetdirective %}) and [`DragTargetContainer`]({% slug api_utils_dragtargetcontainerdirective %}) directives.
7
- *
6
+ * Represents the callback used by the `dragData` property of the [`DragTarget`]({% slug api_utils_dragtargetdirective %}) and [`DragTargetContainer`]({% slug api_utils_dragtargetcontainerdirective %}) directives.
8
7
  * It returns the custom data that will be available in the events of the respective [`DropTarget`]({% slug api_utils_droptargetdirective %}) or [`DropTargetContainer`]({% slug api_utils_droptargetcontainerdirective %}) directives upon interaction.
9
8
  *
10
9
  */
11
10
  export type DragTargetDataFn = (args: DragTargetDataArgs) => any;
12
11
  /**
13
- * Represents the callback that is used by the `dragTargetId` property of the [`DragTargetContainer`]({% slug api_utils_dragtargetcontainerdirective %}) directive.
14
- *
12
+ * Represents the callback used by the `dragTargetId` property of the [`DragTargetContainer`]({% slug api_utils_dragtargetcontainerdirective %}) directive.
15
13
  * It returns a custom identifier that will be available in the events of the respective directive upon its interaction with a valid DropTarget.
16
14
  */
17
15
  export type DragTargetIdFn = (args: DragTargetIdArgs) => any;
18
16
  /**
19
- * Represents the callback arguments used by the `dragData` property.
17
+ * Represents the callback arguments for the `dragData` property.
20
18
  */
21
19
  export interface DragTargetDataArgs {
22
20
  /**
@@ -24,16 +22,16 @@ export interface DragTargetDataArgs {
24
22
  */
25
23
  dragTarget: HTMLElement;
26
24
  /**
27
- * The drag target unique identifier, result from executing the callback used by the `dragTargetId` property. Applicable for the `DragTargetContainerDirective`.
25
+ * The drag target unique identifier, result from executing the callback used by the `dragTargetId` property. Applies to `DragTargetContainerDirective`.
28
26
  */
29
27
  dragTargetId: any;
30
28
  /**
31
- * The index of the current drag target in the collection of drag targets. Applicable for the `DragTargetContainerDirective`.
29
+ * The index of the current drag target in the collection. Applies to `DragTargetContainerDirective`.
32
30
  */
33
31
  dragTargetIndex: number;
34
32
  }
35
33
  /**
36
- * Represents the callback arguments used by the `dragTargetId` property.
34
+ * Represents the callback arguments for the `dragTargetId` property.
37
35
  */
38
36
  export interface DragTargetIdArgs {
39
37
  /**
@@ -41,7 +39,7 @@ export interface DragTargetIdArgs {
41
39
  */
42
40
  dragTarget: HTMLElement;
43
41
  /**
44
- * The index of the current drag target in the collection of drag targets. Applicable for the `DragTargetContainerDirective`.
42
+ * The index of the current drag target in the collection. Applies to `DragTargetContainerDirective`.
45
43
  */
46
44
  dragTargetIndex: number;
47
45
  }
@@ -8,15 +8,15 @@ import { TemplateRef, ViewContainerRef } from "@angular/core";
8
8
  */
9
9
  export interface HintSettings {
10
10
  /**
11
- * Renders the passed template as a hint of the current DragTarget.
11
+ * Renders the given template as a hint for the current drag target.
12
12
  */
13
13
  hintTemplate?: TemplateRef<any>;
14
14
  /**
15
- * The CSS classes that will be rendered on the hint host element when the default hint is utilized. Supports the type of values that are supported by [ngClass](link:site.data.urls.angular['ngclassapi']).
15
+ * Sets the CSS classes for the hint host element when using the default hint. Supports values accepted by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
16
16
  */
17
17
  hintClass?: any;
18
18
  /**
19
- * Controls the hint container. By default, the hint will be appended to the document body.
19
+ * Controls the hint container. By default, the hint is appended to the document body.
20
20
  */
21
21
  appendTo?: ViewContainerRef;
22
22
  }
@@ -2,6 +2,9 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Represents the autoscroll direction during drag-and-drop operations.
7
+ */
5
8
  export interface ScrollDirection {
6
9
  horizontal: boolean;
7
10
  vertical: boolean;
@@ -10,34 +10,22 @@ import * as i4 from "./drag-and-drop/dragtarget-container.directive";
10
10
  import * as i5 from "./drag-and-drop/droptarget-container.directive";
11
11
  import * as i6 from "./drag-and-drop/hint.component";
12
12
  /**
13
- * Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
13
+ * Represents the [`NgModule`](link:site.data.urls.angular['ngmodules'])
14
14
  * definition for the Drag and Drop directives.
15
15
  *
16
16
  * @example
17
- *
18
- * ```ts-no-run
19
- * // Import the DragAndDrop module
17
+ * ```ts
20
18
  * import { DragAndDropModule } from '@progress/kendo-angular-utils';
21
- *
22
- * // The browser platform with a compiler
23
19
  * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
24
- *
25
20
  * import { NgModule } from '@angular/core';
26
- *
27
- * // Import the app component
28
21
  * import { AppComponent } from './app.component';
29
22
  *
30
- * // Define the app module
31
- * _@NgModule({
32
- * declarations: [AppComponent], // declare app component
33
- * imports: [BrowserModule, DragAndDropModule], // import DragAndDropModule module
23
+ * @NgModule({
24
+ * declarations: [AppComponent],
25
+ * imports: [BrowserModule, DragAndDropModule],
34
26
  * bootstrap: [AppComponent]
35
27
  * })
36
28
  * export class AppModule {}
37
- *
38
- * // Compile and launch the module
39
- * platformBrowserDynamic().bootstrapModule(AppModule);
40
- *
41
29
  * ```
42
30
  */
43
31
  export declare class DragAndDropModule {
@@ -4,17 +4,17 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { InjectionToken } from '@angular/core';
6
6
  /**
7
- * A token that specifies the AdaptiveSettings of the Kendo UI for Angular components.
7
+ * A token that specifies the `AdaptiveSettings` for Kendo UI for Angular components.
8
8
  *
9
+ * @example
9
10
  * ```ts
10
11
  * import { NgModule } from '@angular/core';
11
12
  *
12
13
  * @NgModule({
13
- * ...
14
- * providers: [{ provide: ADAPTIVE_SETTINGS, useValue: { small: 400, medium: 600 }}]
14
+ * ...,
15
+ * providers: [{ provide: ADAPTIVE_SETTINGS, useValue: { small: 400, medium: 600 } }]
15
16
  * })
16
17
  * export class AppModule {}
17
18
  * ```
18
- *
19
19
  */
20
20
  export const ADAPTIVE_SETTINGS = new InjectionToken('Kendo UI Adaptive-Settings token');
@@ -6,7 +6,7 @@ import { Injectable } from '@angular/core';
6
6
  import { Subject } from 'rxjs';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
- * A service that allows changing the current adaptive settings dynamically. Use the public `notify` method to implement this.
9
+ * A service that lets you change the current adaptive settings dynamically. Use the public `notify` method to update the settings.
10
10
  */
11
11
  export class AdaptiveSettingsService {
12
12
  /**
@@ -14,7 +14,7 @@ export class AdaptiveSettingsService {
14
14
  */
15
15
  changes = new Subject();
16
16
  /**
17
- * Notifies subscribers that the adaptive settings were changed.
17
+ * Notifies subscribers that the adaptive settings have changed.
18
18
  *
19
19
  * @param adaptiveSettings - (Optional) A new value for the adaptive settings token.
20
20
  */
@@ -15,21 +15,17 @@ const DEFAULT_ADAPTIVE_SETTINGS = {
15
15
  medium: 768
16
16
  };
17
17
  /**
18
- * The service responsible for handling changes in the adaptive settings. Should be included in the providers array when implementing the functionality in a standalone component.
18
+ * The service responsible for handling changes in adaptive settings. Add it to the providers array when using adaptive breakpoints in a standalone component.
19
19
  *
20
20
  * @example
21
- *
22
- * ```ts-no-run
23
- * // Import the AdaptiveService
21
+ * ```ts
24
22
  * import { AdaptiveService } from '@progress/kendo-angular-utils';
25
23
  *
26
- * // Define a standalone component
27
24
  * @Component({
28
- * selector: my-component,
29
- * standalone: true,
30
- * imports: [ ... ],
31
- * providers: [AdaptiveService, { provide: ADAPTIVE_SETTINGS , useValue: { small: 300 } }],
32
- * template: ...
25
+ * selector: 'my-component',
26
+ * standalone: true,
27
+ * providers: [AdaptiveService, { provide: ADAPTIVE_SETTINGS, useValue: { small: 300 } }],
28
+ * template: '...'
33
29
  * })
34
30
  * export class AppComponent {}
35
31
  * ```
@@ -9,7 +9,24 @@ import { DropTargetContainerDirective } from "./drag-and-drop/droptarget-contain
9
9
  import { DropTargetDirective } from "./drag-and-drop/droptarget.directive";
10
10
  import { HintComponent } from "./drag-and-drop/hint.component";
11
11
  /**
12
- * Utility array that contains all `Drag and Drop` related components and directives
12
+ * Use this utility array to access all Drag and Drop-related components and directives in a standalone Angular component.
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * import { Component } from '@angular/core';
17
+ * import { KENDO_DRAGANDDROP } from '@progress/kendo-angular-utils';
18
+ *
19
+ * @Component({
20
+ * selector: 'my-app',
21
+ * standalone: true,
22
+ * imports: [KENDO_DRAGANDDROP],
23
+ * template: `
24
+ * <div kendoDragTarget>Drag me</div>
25
+ * <div kendoDropTarget>Drop here</div>
26
+ * `
27
+ * })
28
+ * export class AppComponent {}
29
+ * ```
13
30
  */
14
31
  export const KENDO_DRAGANDDROP = [
15
32
  DragTargetDirective,
@@ -20,8 +37,8 @@ export const KENDO_DRAGANDDROP = [
20
37
  HintComponent
21
38
  ];
22
39
  /**
23
- * Utility array that contains all `@progress/kendo-angular-utils` related components and directives.
24
- * > As of now, `KENDO_UTILS` includes only the `KENDO_DRAGANDDROP` utility array and their usage is equivalent.
40
+ * Use this utility array to access all `@progress/kendo-angular-utils`-related components and directives in a standalone Angular component.
41
+ * > Currently, `KENDO_UTILS` includes only the `KENDO_DRAGANDDROP` utility array and their usage is equivalent.
25
42
  */
26
43
  export const KENDO_UTILS = [
27
44
  ...KENDO_DRAGANDDROP
@@ -6,13 +6,21 @@ import { Directive, ElementRef, HostBinding, Input } from "@angular/core";
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Represents the Kendo UI DragHandle directive for Angular.
9
- * It is used to specify a concrete element within a drag target as a handle for dragging, instead the drag target itself.
9
+ * Use this directive to specify an element inside a drag target as a handle for dragging instead of the drag target itself.
10
+ *
11
+ * ```html
12
+ * <div kendoDragTarget>
13
+ * <button kendoDragHandle kendoButton>
14
+ * Drag me
15
+ * </button>
16
+ * </div>
17
+ * ```
10
18
  */
11
19
  export class DragHandleDirective {
12
20
  element;
13
21
  touchActionStyle = 'none';
14
22
  /**
15
- * Specifies the cursor style of the drag handle. Accepts same values as the [CSS `cursor` property](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#values).
23
+ * Sets the cursor style of the drag handle. Accepts same values as the [CSS `cursor` property](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#values).
16
24
  *
17
25
  * @default 'move'
18
26
  */
@@ -17,12 +17,14 @@ let isDragStartPrevented = false;
17
17
  let isDragPrevented = false;
18
18
  /**
19
19
  * Represents the [Kendo UI DragTargetContainer directive for Angular]({% slug api_utils_dragtargetcontainerdirective %}).
20
- * Used to configure multiple elements as draggable.
20
+ * Use this directive to make multiple elements draggable inside a container.
21
21
  *
22
22
  * @example
23
- * ```ts-no-run
23
+ * ```html
24
24
  * <ul kendoDragTargetContainer dragTargetFilter=".my-draggable">
25
- * <li class="my-draggable">foo</li>
25
+ * <li class="my-draggable"> Item 1</li>
26
+ * <li class="my-draggable"> Item 2</li>
27
+ * <li class="my-draggable"> Item 3</li>
26
28
  * </ul>
27
29
  * ```
28
30
  */
@@ -34,15 +36,14 @@ export class DragTargetContainerDirective {
34
36
  viewContainer;
35
37
  cdr;
36
38
  /**
37
- * Defines whether a hint will be used for dragging. By default, the hint is a copy of the current drag target. ([see example]({% slug drag_hint %})).
39
+ * Defines whether a hint will be used for dragging. By default, the hint is a copy of the current drag target. [See example]({% slug drag_hint %}).
38
40
  *
39
41
  * @default false
40
42
  */
41
43
  hint = false;
42
44
  /**
43
- * Specifies a selector for elements within a container which will be configured as draggable
44
- * ([see example]({% slug drag_target_container %})). The possible values include any
45
- * DOM `selector`.
45
+ * Sets a selector for elements in the container to make them draggable. The possible values include any
46
+ * DOM `selector`. [See example]({% slug drag_target_container %}).
46
47
  */
47
48
  set dragTargetFilter(value) {
48
49
  this._dragTargetFilter = value;
@@ -54,24 +55,24 @@ export class DragTargetContainerDirective {
54
55
  return this._dragTargetFilter;
55
56
  }
56
57
  /**
57
- * Specifies a selector for elements within each DragTarget which will be configured as drag handles.
58
+ * Sets a selector for elements inside each drag target to use as drag handles.
58
59
  */
59
60
  dragHandle;
60
61
  /**
61
- * Defines the delay in milliseconds after which the drag will begin ([see example](slug:drag_target_container#toc-events)).
62
+ * Sets the delay in milliseconds before dragging begins. [See example](slug:drag_target_container#toc-events).
62
63
  *
63
64
  * @default 0
64
65
  */
65
66
  dragDelay = 0;
66
67
  /**
67
- * The number of pixels the pointer moves in any direction before the dragging starts ([see example]({% slug minimum_distance %})).
68
+ * Sets the number of pixels the pointer must move before dragging starts. [See example]({% slug minimum_distance %}).
68
69
  *
69
70
  * @default 0
70
71
  */
71
72
  threshold = 0;
72
73
  /**
73
- * Defines a unique identifier for each drag target.
74
- * It exposes the current DragTarget HTML element and its index in the collection of drag targets as arguments.
74
+ * Sets a unique identifier for each drag target.
75
+ * It exposes the current drag target HTML element and its index in the collection of drag targets as arguments.
75
76
  */
76
77
  set dragTargetId(fn) {
77
78
  if (isDevMode && typeof fn !== 'function') {
@@ -83,8 +84,8 @@ export class DragTargetContainerDirective {
83
84
  return this._dragTargetId;
84
85
  }
85
86
  /**
86
- * Defines a callback function which returns custom data passed to the DropTarget events.
87
- * It exposes the current DragTarget HTML element, its `dragTargetId` and its index in the collection of drag targets as arguments.
87
+ * Sets a callback function to return custom data for `DropTarget` events.
88
+ * It exposes the current `DragTarget` HTML element, its `dragTargetId`, and its index in the collection of drag targets as arguments.
88
89
  */
89
90
  set dragData(fn) {
90
91
  if (isDevMode && typeof fn !== 'function') {
@@ -96,7 +97,7 @@ export class DragTargetContainerDirective {
96
97
  return this._dragData;
97
98
  }
98
99
  /**
99
- * If set to true, the dragging of DragTargets within the container will be disabled.
100
+ * Disables dragging of drag targets in the container when set to `true`.
100
101
  *
101
102
  * @default false
102
103
  */
@@ -120,13 +121,13 @@ export class DragTargetContainerDirective {
120
121
  return this._dragDisabled;
121
122
  }
122
123
  /**
123
- * Specifies whether the default dragging behavior will be performed or the developer will manually handle the drag action.
124
+ * Sets whether to use the default dragging behavior or handle it manually.
124
125
  *
125
126
  * @default 'auto'
126
127
  */
127
128
  mode = 'auto';
128
129
  /**
129
- * Specifies the cursor style of the drag targets. Accepts same values as the [CSS `cursor` property](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#values).
130
+ * Sets the cursor style of the drag targets. Accepts same values as the [CSS `cursor` property](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#values).
130
131
  *
131
132
  * @default 'move'
132
133
  */
@@ -136,31 +137,31 @@ export class DragTargetContainerDirective {
136
137
  */
137
138
  hintContext;
138
139
  /**
139
- * Fires when a DragTarget's `dragDelay` has passed and the user is able to drag the element.
140
+ * Fires when a drag target's `dragDelay` has passed and the user can drag the element.
140
141
  */
141
142
  onDragReady = new EventEmitter();
142
143
  /**
143
- * Fires when the user presses a DragTarget element.
144
+ * Fires when the user presses a drag target element.
144
145
  */
145
146
  onPress = new EventEmitter();
146
147
  /**
147
- * Fires when the dragging of a DragTarget element begins.
148
- */
148
+ * Fires when dragging of a drag target element begins.
149
+ */
149
150
  onDragStart = new EventEmitter();
150
151
  /**
151
- * Fires while the user drags a DragTarget element.
152
+ * Fires while the user drags a drag target element.
152
153
  */
153
154
  onDrag = new EventEmitter();
154
155
  /**
155
- * Fires when the user releases a DragTarget element after being pressed.
156
+ * Fires when the user releases a drag target element after pressing it.
156
157
  */
157
158
  onRelease = new EventEmitter();
158
159
  /**
159
- * Fires when the dragging of a DragTarget ends and the element is released.
160
+ * Fires when dragging of a drag target ends and the element is released.
160
161
  */
161
162
  onDragEnd = new EventEmitter();
162
163
  /**
163
- * Used for notifying the DragTargetContainer that its content has changed.
164
+ * Notifies the `DragTargetContainer` that its content has changed.
164
165
  */
165
166
  notify() {
166
167
  this.cdr.detectChanges();
@@ -20,6 +20,7 @@ let isDragStartPrevented = false;
20
20
  let isDragPrevented = false;
21
21
  /**
22
22
  * Represents the Kendo UI DragTarget directive for Angular.
23
+ * Use this directive to make an element draggable.
23
24
  */
24
25
  export class DragTargetDirective {
25
26
  element;
@@ -37,40 +38,40 @@ export class DragTargetDirective {
37
38
  */
38
39
  hint = false;
39
40
  /**
40
- * The number of pixels the pointer moves in any direction before the dragging starts ([see example]({% slug minimum_distance %})). Applicable when `manualDrag` is set to `false`.
41
+ * Sets the number of pixels the pointer must move before dragging starts. Applies when `manualDrag` is `false`. [See example]({% slug minimum_distance %}).
41
42
  *
42
43
  * @default 0
43
44
  */
44
45
  threshold = 0;
45
46
  /**
46
- * Defines the automatic container scrolling behavior when close to the edge ([see example]({% slug auto_scroll %})).
47
+ * Sets the automatic container scrolling behavior when close to the edge. [See example]({% slug auto_scroll %}).
47
48
  *
48
49
  * @default true
49
50
  */
50
51
  autoScroll = true;
51
52
  /**
52
- * Defines a unique identifier for the dragTarget.
53
+ * Sets a unique identifier for the drag target.
53
54
  */
54
55
  dragTargetId;
55
56
  /**
56
- * Defines the delay in milliseconds after which the drag will begin ([see example]({% slug drag_delay %})).
57
+ * Sets the delay in milliseconds before dragging begins. [See example]({% slug drag_delay %}).
57
58
  *
58
59
  * @default 0
59
60
  */
60
61
  dragDelay = 0;
61
62
  /**
62
- * Restricts the element to be dragged horizontally or vertically only ([see example]({% slug axis_lock %})). Applicable when `mode` is set to `auto`.
63
+ * Restricts dragging to horizontal or vertical only. Applies when `mode` is `auto`. [See example]({% slug axis_lock %}).
63
64
  */
64
65
  restrictByAxis;
65
66
  /**
66
- * Specifies whether the default dragging behavior will be performed or the developer will manually handle the drag action.
67
+ * Specifies whether to use the default dragging behavior or handle it manually.
67
68
  *
68
69
  * @default 'auto'
69
70
  */
70
71
  mode = 'auto';
71
72
  /**
72
- * Defines a callback function used for attaching custom data to the dragTarget.
73
- * The data will be available in the events of the respective [`DropTarget`]({% slug api_utils_droptargetdirective %}) or [`DropTargetContainer`]({% slug api_utils_droptargetcontainerdirective %}) directives.
73
+ * Defines a callback function used for attaching custom data to the drag target.
74
+ * The data is available in the events of the respective [`DropTarget`]({% slug api_utils_droptargetdirective %}) or [`DropTargetContainer`]({% slug api_utils_droptargetcontainerdirective %}) directives.
74
75
  * The current DragTarget HTML element and its `dragTargetId` will be available as arguments.
75
76
  */
76
77
  set dragData(fn) {
@@ -83,33 +84,33 @@ export class DragTargetDirective {
83
84
  return this._dragData;
84
85
  }
85
86
  /**
86
- * Specifies the cursor style of the drag target. Accepts same values as the [CSS `cursor` property](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#values).
87
+ * Sets the cursor style of the drag target. Accepts same values as the [CSS `cursor` property](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#values).
87
88
  *
88
89
  * @default 'move'
89
90
  */
90
91
  cursorStyle = 'move';
91
92
  /**
92
- * Fires when the user presses the DragTarget element.
93
+ * Fires when the user presses the drag target element.
93
94
  */
94
95
  onPress = new EventEmitter();
95
96
  /**
96
- * Fires when the dragging of the DragTarget element begins.
97
+ * Fires when dragging of the drag target element begins.
97
98
  */
98
99
  onDragStart = new EventEmitter();
99
100
  /**
100
- * Fires while the user drags the DragTarget element.
101
+ * Fires while the user drags the drag target element.
101
102
  */
102
103
  onDrag = new EventEmitter();
103
104
  /**
104
- * Fires when the DragTarget's `dragDelay` has passed and the user is able to drag the element.
105
+ * Fires when the drag target's `dragDelay` has passed and the user can drag the element.
105
106
  */
106
107
  onDragReady = new EventEmitter();
107
108
  /**
108
- * Fires when the user releases the DragTarget element after being pressed.
109
+ * Fires when `DragTarget` is released, either by dropping it on a drop target or by releasing the mouse button.
109
110
  */
110
111
  onRelease = new EventEmitter();
111
112
  /**
112
- * Fires when the dragging of the DragTarget ends and the element is released.
113
+ * Fires when dragging of the drag target ends and the element is released.
113
114
  */
114
115
  onDragEnd = new EventEmitter();
115
116
  dragTarget = null;
@@ -12,12 +12,14 @@ import * as i0 from "@angular/core";
12
12
  import * as i1 from "./drag-state.service";
13
13
  /**
14
14
  * Represents the [Kendo UI DropTargetContainer directive for Angular]({% slug api_utils_droptargetcontainerdirective %}).
15
- * Used to configure multiple elements as drop targets.
15
+ * Use this directive to make multiple elements drop targets inside a container.
16
16
  *
17
17
  * @example
18
- * ```ts-no-run
18
+ * ```html
19
19
  * <div kendoDropTargetContainer dropTargetFilter=".my-droptarget">
20
- * <div class="my-droptarget">foo</div>
20
+ * <div class="my-droptarget">
21
+ * Drop here
22
+ * </div>
21
23
  * </div>
22
24
  * ```
23
25
  */
@@ -27,9 +29,7 @@ export class DropTargetContainerDirective {
27
29
  ngZone;
28
30
  cdr;
29
31
  /**
30
- * Specifies a selector for elements within a container which will be configured as drop targets
31
- * ([see example]({% slug drop_target_container %})). The possible values include any
32
- * DOM `selector`.
32
+ * Sets a selector for elements in the container to make them drop targets. [See example]({% slug drop_target_container %}).
33
33
  */
34
34
  set dropTargetFilter(value) {
35
35
  this._dropTargetFilter = value;
@@ -41,7 +41,7 @@ export class DropTargetContainerDirective {
41
41
  return this._dropTargetFilter;
42
42
  }
43
43
  /**
44
- * Specifies whether the Drop Targets within the container will emit the corresponding events upon interaction with a Drag Target.
44
+ * Specifies whether the drop targets within the container will emit the corresponding events upon interaction with a drag target.
45
45
  */
46
46
  set dropDisabled(value) {
47
47
  this._dropDisabled = value;
@@ -56,23 +56,23 @@ export class DropTargetContainerDirective {
56
56
  return this._dropDisabled;
57
57
  }
58
58
  /**
59
- * Fires when a DragTarget element enters the DropTarget.
59
+ * Fires when a drag target enters a drop target.
60
60
  */
61
61
  onDragEnter = new EventEmitter();
62
62
  /**
63
- * Fires when a DragTarget element is being dragged over the DropTarget.
63
+ * Fires when a drag target is dragged over a drop target.
64
64
  */
65
65
  onDragOver = new EventEmitter();
66
66
  /**
67
- * Fires when a DragTarget element leaves the DropTarget.
67
+ * Fires when a drag target leaves a drop target.
68
68
  */
69
69
  onDragLeave = new EventEmitter();
70
70
  /**
71
- * Fires when a DragTarget element is dropped over the DropTarget.
71
+ * Fires when a drag target is dropped over a drop target.
72
72
  */
73
73
  onDrop = new EventEmitter();
74
74
  /**
75
- * Used for notifying the DropTargetContainer that its content has changed.
75
+ * Notifies the `DropTargetContainer` that its content has changed.
76
76
  */
77
77
  notify() {
78
78
  this.cdr.detectChanges();