@progress/kendo-angular-sortable 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.
@@ -7,8 +7,23 @@ import { SortableComponent } from './sortable.component';
7
7
  import { SortableService } from './sortable.service';
8
8
  import * as i0 from "@angular/core";
9
9
  /**
10
- * A Directive which handles the most common scenarios such reordering and moving items between Sortables, thus minimizng boilerplate code.
11
- * This is achieved by subscribing to the Sortable's events and handling them using the API methods it provides.
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}
12
27
  */
13
28
  export declare class SortableBindingDirective implements OnInit, OnDestroy {
14
29
  sortable: SortableComponent;
@@ -18,10 +33,7 @@ export declare class SortableBindingDirective implements OnInit, OnDestroy {
18
33
  private navigateSubscription;
19
34
  private lastTarget;
20
35
  /**
21
- * Sets a data-bound array that is used as a data source for the Sortable.
22
- *
23
- * <demo metaUrl="sortable/overview/" height="430"></demo>
24
- *
36
+ * Sets a data-bound array that is used as a data source for the Sortable ([see example](slug:overview_sortable)).
25
37
  */
26
38
  set data(data: any[]);
27
39
  constructor(sortable: SortableComponent, sortableService: SortableService);
@@ -3,16 +3,16 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * The arguments for the `dataAdd`, or `dataRemove` events.
6
+ * Represents the arguments for the `dataAdd` and `dataRemove` events.
7
7
  * @hidden
8
8
  */
9
9
  export interface DataEvent {
10
10
  /**
11
- * The index of the data item.
11
+ * Specifies the index of the data item.
12
12
  */
13
13
  index: number;
14
14
  /**
15
- * The data item that will be added or removed.
15
+ * Specifies the data item to add or remove.
16
16
  */
17
17
  dataItem: Object;
18
18
  }
package/data-events.d.ts CHANGED
@@ -5,15 +5,15 @@
5
5
  import { PreventableEvent } from './preventable-event';
6
6
  import { DataEvent } from './data-event-args.interface';
7
7
  /**
8
- * The arguments for the `SortableComponent` `dataAdd` event.
8
+ * Represents the arguments for the `SortableComponent` `dataAdd` event.
9
9
  */
10
10
  export declare class DataAddEvent extends PreventableEvent implements DataEvent {
11
11
  /**
12
- * The index of the data item.
12
+ * Specifies the index of the data item.
13
13
  */
14
14
  index: number;
15
15
  /**
16
- * The data item that will be added.
16
+ * Specifies the data item to add.
17
17
  */
18
18
  dataItem: number;
19
19
  /**
@@ -22,15 +22,15 @@ export declare class DataAddEvent extends PreventableEvent implements DataEvent
22
22
  constructor(options: any);
23
23
  }
24
24
  /**
25
- * The arguments for the `SortableComponent` `dataRemove` event.
25
+ * Represents the arguments for the `SortableComponent` `dataRemove` event.
26
26
  */
27
27
  export declare class DataRemoveEvent extends PreventableEvent implements DataEvent {
28
28
  /**
29
- * The index of the data item.
29
+ * Specifies the index of the data item.
30
30
  */
31
31
  index: number;
32
32
  /**
33
- * The data item that will be removed.
33
+ * Specifies the data item to remove.
34
34
  */
35
35
  dataItem: number;
36
36
  /**
@@ -39,19 +39,19 @@ export declare class DataRemoveEvent extends PreventableEvent implements DataEve
39
39
  constructor(options: any);
40
40
  }
41
41
  /**
42
- * The arguments for the `SortableComponent` `dataMove` event.
42
+ * Represents the arguments for the `SortableComponent` `dataMove` event.
43
43
  */
44
44
  export declare class DataMoveEvent extends PreventableEvent implements DataEvent {
45
45
  /**
46
- * The index of the data item.
46
+ * Specifies the index of the data item.
47
47
  */
48
48
  index: number;
49
49
  /**
50
- * The old index of the data item.
50
+ * Specifies the old index of the data item.
51
51
  */
52
52
  oldIndex: number;
53
53
  /**
54
- * The data item that will be removed.
54
+ * Specifies the data item to move.
55
55
  */
56
56
  dataItem: number;
57
57
  /**
package/directives.d.ts CHANGED
@@ -7,6 +7,26 @@ import { DraggableDirective } from "./draggable.directive";
7
7
  import { ItemTemplateDirective, PlaceholderTemplateDirective } from "./item-template.directive";
8
8
  import { SortableComponent } from "./sortable.component";
9
9
  /**
10
- * Utility array that contains all `@progress/kendo-angular-sortable` related components and directives
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
+ * ```
11
31
  */
12
32
  export declare const KENDO_SORTABLE: readonly [typeof SortableComponent, typeof DraggableDirective, typeof PlaceholderTemplateDirective, typeof ItemTemplateDirective, typeof SortableBindingDirective];
@@ -5,16 +5,16 @@
5
5
  import { PreventableEvent } from './preventable-event';
6
6
  import { DraggableDirective } from './draggable.directive';
7
7
  /**
8
- * The arguments for the `DraggableDirective` events.
8
+ * Represents the arguments for the `DraggableDirective` events.
9
9
  * @hidden
10
10
  */
11
11
  export declare class DraggableEvent extends PreventableEvent {
12
12
  /**
13
- * The target DraggableDirective instance.
13
+ * Specifies the target `DraggableDirective` instance.
14
14
  */
15
15
  target: DraggableDirective;
16
16
  /**
17
- * The browser event emitted by the target's native element.
17
+ * Specifies the browser event emitted by the target's native element.
18
18
  */
19
19
  originalEvent: any;
20
20
  /**
@@ -11,8 +11,23 @@ import * as i0 from "@angular/core";
11
11
  import * as i1 from "./sortable.component";
12
12
  import * as i2 from "./sortable.service";
13
13
  /**
14
- * A Directive which handles the most common scenarios such reordering and moving items between Sortables, thus minimizng boilerplate code.
15
- * This is achieved by subscribing to the Sortable's events and handling them using the API methods it provides.
14
+ * Represents a directive that handles common scenarios such as reordering and moving items between Sortables, reducing boilerplate code.
15
+ *
16
+ * This directive subscribes to the Sortable's events and handles them using the provided API methods.
17
+ *
18
+ * @example
19
+ * ```html
20
+ * <kendo-sortable
21
+ * [kendoSortableBinding]="items"
22
+ * [navigable]="true"
23
+ * [animation]="true"
24
+ * itemClass="item col-xs-6 col-sm-3"
25
+ * activeItemClass="item col-xs-6 col-sm-3 active">
26
+ * </kendo-sortable>
27
+ * ```
28
+ *
29
+ * @remarks
30
+ * Applied to: {@link SortableComponent}
16
31
  */
17
32
  export class SortableBindingDirective {
18
33
  sortable;
@@ -22,10 +37,7 @@ export class SortableBindingDirective {
22
37
  navigateSubscription;
23
38
  lastTarget;
24
39
  /**
25
- * Sets a data-bound array that is used as a data source for the Sortable.
26
- *
27
- * <demo metaUrl="sortable/overview/" height="430"></demo>
28
- *
40
+ * Sets a data-bound array that is used as a data source for the Sortable ([see example](slug:overview_sortable)).
29
41
  */
30
42
  set data(data) {
31
43
  this.sortable.data = data;
@@ -4,15 +4,15 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from './preventable-event';
6
6
  /**
7
- * The arguments for the `SortableComponent` `dataAdd` event.
7
+ * Represents the arguments for the `SortableComponent` `dataAdd` event.
8
8
  */
9
9
  export class DataAddEvent extends PreventableEvent {
10
10
  /**
11
- * The index of the data item.
11
+ * Specifies the index of the data item.
12
12
  */
13
13
  index;
14
14
  /**
15
- * The data item that will be added.
15
+ * Specifies the data item to add.
16
16
  */
17
17
  dataItem;
18
18
  /**
@@ -24,15 +24,15 @@ export class DataAddEvent extends PreventableEvent {
24
24
  }
25
25
  }
26
26
  /**
27
- * The arguments for the `SortableComponent` `dataRemove` event.
27
+ * Represents the arguments for the `SortableComponent` `dataRemove` event.
28
28
  */
29
29
  export class DataRemoveEvent extends PreventableEvent {
30
30
  /**
31
- * The index of the data item.
31
+ * Specifies the index of the data item.
32
32
  */
33
33
  index;
34
34
  /**
35
- * The data item that will be removed.
35
+ * Specifies the data item to remove.
36
36
  */
37
37
  dataItem;
38
38
  /**
@@ -44,19 +44,19 @@ export class DataRemoveEvent extends PreventableEvent {
44
44
  }
45
45
  }
46
46
  /**
47
- * The arguments for the `SortableComponent` `dataMove` event.
47
+ * Represents the arguments for the `SortableComponent` `dataMove` event.
48
48
  */
49
49
  export class DataMoveEvent extends PreventableEvent {
50
50
  /**
51
- * The index of the data item.
51
+ * Specifies the index of the data item.
52
52
  */
53
53
  index;
54
54
  /**
55
- * The old index of the data item.
55
+ * Specifies the old index of the data item.
56
56
  */
57
57
  oldIndex;
58
58
  /**
59
- * The data item that will be removed.
59
+ * Specifies the data item to move.
60
60
  */
61
61
  dataItem;
62
62
  /**
@@ -7,7 +7,27 @@ import { DraggableDirective } from "./draggable.directive";
7
7
  import { ItemTemplateDirective, PlaceholderTemplateDirective } from "./item-template.directive";
8
8
  import { SortableComponent } from "./sortable.component";
9
9
  /**
10
- * Utility array that contains all `@progress/kendo-angular-sortable` related components and directives
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
+ * ```
11
31
  */
12
32
  export const KENDO_SORTABLE = [
13
33
  SortableComponent,
@@ -4,16 +4,16 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from './preventable-event';
6
6
  /**
7
- * The arguments for the `DraggableDirective` events.
7
+ * Represents the arguments for the `DraggableDirective` events.
8
8
  * @hidden
9
9
  */
10
10
  export class DraggableEvent extends PreventableEvent {
11
11
  /**
12
- * The target DraggableDirective instance.
12
+ * Specifies the target `DraggableDirective` instance.
13
13
  */
14
14
  target;
15
15
  /**
16
- * The browser event emitted by the target's native element.
16
+ * Specifies the browser event emitted by the target's native element.
17
17
  */
18
18
  originalEvent; //DragEvent | TouchEvent;
19
19
  /**
@@ -4,19 +4,19 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from './preventable-event';
6
6
  /**
7
- * The `navigate` event is emitted when using the keyboard arrows.
7
+ * Represents the event arguments for the `navigate` event, which is emitted when you use the keyboard arrows.
8
8
  */
9
9
  export class NavigateEvent extends PreventableEvent {
10
10
  /**
11
- * The index of the draggable item.
11
+ * Specifies the index of the draggable item.
12
12
  */
13
13
  index;
14
14
  /**
15
- * The old index of the draggable item.
15
+ * Specifies the old index of the draggable item.
16
16
  */
17
17
  oldIndex;
18
18
  /**
19
- * Indicates whether the ctrl or meta keys are pressed.
19
+ * Indicates whether the `Ctrl` or meta keys are pressed.
20
20
  */
21
21
  ctrlKey;
22
22
  /**
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1750157233,
14
- version: '19.1.2-develop.4',
13
+ publishDate: 1750431143,
14
+ version: '19.1.2-develop.5',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -4,15 +4,17 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from './preventable-event';
6
6
  /**
7
- * Arguments for the `dragStart` event.
7
+ * Represents the arguments for the `dragStart` event.
8
8
  */
9
9
  export class DragStartEvent extends PreventableEvent {
10
10
  /**
11
- * The index of the draggable item.
11
+ * Specifies the index of the draggable item.
12
12
  */
13
13
  index;
14
14
  /**
15
- * The old index of the draggable item.
15
+ * Specifies the previous index of the draggable item.
16
+ * This property is used for the `dragEnd and `dragOver` events to determine the original position of the item before dragging.
17
+ * It doesn't apply to the `dragStart` event as there is no previous position at that point.
16
18
  */
17
19
  oldIndex;
18
20
  /**
@@ -24,12 +26,12 @@ export class DragStartEvent extends PreventableEvent {
24
26
  }
25
27
  }
26
28
  /**
27
- * Arguments for the `dragOver` event.
29
+ * Represents the arguments for the `dragOver` event.
28
30
  */
29
31
  export class DragOverEvent extends DragStartEvent {
30
32
  }
31
33
  /**
32
- * Arguments for the `dragEnd` event.
34
+ * Represents the arguments for the `dragEnd` event.
33
35
  */
34
36
  export class DragEndEvent extends DragOverEvent {
35
37
  }
@@ -27,7 +27,10 @@ const KEY_SHORTCUTS = 'Control+ArrowLeft Control+ArrowRight Meta+ArrowLeft Meta+
27
27
  /**
28
28
  * Represents the [Kendo UI Sortable component for Angular]({% slug overview_sortable %}).
29
29
  *
30
- * <demo metaUrl="sortable/sortable-api/" height="430"></demo>
30
+ * @example
31
+ * ```html
32
+ * <kendo-sortable [data]="['Item 1', 'Item 2', 'Item 3']"></kendo-sortable>
33
+ * ```
31
34
  */
32
35
  /**
33
36
  * Represents the Kendo UI Sortable component for Angular.
@@ -43,7 +46,7 @@ export class SortableComponent {
43
46
  */
44
47
  tabIndex = null;
45
48
  /**
46
- * Configures how the Sortable component will track changes in its items collection.
49
+ * Configures how the Sortable component tracks changes in its items collection.
47
50
  */
48
51
  trackBy = (_, idx) => idx;
49
52
  /**
@@ -60,61 +63,33 @@ export class SortableComponent {
60
63
  return this._data;
61
64
  }
62
65
  /**
63
- * Enables or disables the [keyboard navigation]({% slug keyboard_navigation_sortable %}).
66
+ * Sets a boolean value that determines whether the Sortable items are navigable using the keyboard. [See example]({% slug keyboard_navigation_sortable %}).
64
67
  * @default true
65
68
  */
66
69
  navigable = true;
67
70
  /**
68
- * Enables or disables the built-in animations.
71
+ * Enables or disables built-in animations.
69
72
  * @default false
70
73
  */
71
74
  animation = false;
72
75
  /**
73
- * Sets an array of integers, which represent the indexes of the disabled items from the data array
74
- * ([see example](slug:items_sortable#toc-disabling-items)).
76
+ * Sets an array of integers that represent the indexes of the disabled items from the data array. [See example](slug:items_sortable#toc-disabling-items).
75
77
  */
76
78
  disabledIndexes = [];
77
79
  /**
78
80
  * Sets a string that represents the name of the zone to which the Sortable belongs
79
81
  * ([see example](slug:items_sortable#toc-transferring-of-items)). Items can be transferred
80
- * between Sortables which belong to the same zone.
82
+ * between Sortables in the same zone.
81
83
  */
82
84
  zone = undefined;
83
85
  /**
84
86
  * Defines the zones from which items can be transferred onto the current Sortable component
85
87
  * ([see example](slug:items_sortable#toc-transferring-of-items)). If the `acceptZones` property
86
- * of the target Sortable is set, allows you to transfer items between Sortables which belong
87
- * to different zones.
88
+ * of the target Sortable is set, you can transfer items between Sortables in different zones.
88
89
  */
89
90
  acceptZones = undefined;
90
91
  /**
91
- * Represents the CSS styles which are applied to each Sortable item.
92
- *
93
- * @example
94
- * ```ts
95
- * import { Component } from '@angular/core';
96
- * import { SortableModule } from '@progress/kendo-angular-sortable';
97
- *
98
- * _@Component({
99
- * selector: 'my-app',
100
- * template: `
101
- * <kendo-sortable
102
- * [data]="['1','2','3','4','5','6','7']"
103
- * [itemStyle] ="{
104
- * 'display': 'inline-block',
105
- * 'background-color': '#51A0ED',
106
- * 'height':'50px',
107
- * 'width':'50px',
108
- * 'margin':'3px',
109
- * 'cursor':'move'
110
- * }"
111
- * >
112
- * </kendo-sortable>
113
- * `
114
- * })
115
- * export class AppComponent {
116
- * }
117
- * ```
92
+ * Represents the CSS styles applied to each Sortable item.
118
93
  */
119
94
  itemStyle = {};
120
95
  /**
@@ -147,23 +122,6 @@ export class SortableComponent {
147
122
  disabledItemClass = null;
148
123
  /**
149
124
  * Sets the text message that will be displayed when the Sortable has no items.
150
- *
151
- * @example
152
- * ```ts
153
- * import { Component } from '@angular/core';
154
- * import { SortableModule } from '@progress/kendo-angular-sortable';
155
- *
156
- * _@Component({
157
- * selector: 'my-app',
158
- * template: `
159
- * <kendo-sortable [data]="[]"
160
- * [emptyText]="'No items - custom message and styles'"
161
- * [emptyItemStyle] = "{'height': '40px', 'width':'400px', 'border': '2px dashed black'}" >
162
- * </kendo-sortable>
163
- * `
164
- * })
165
- * export class AppComponent { }
166
- * ```
167
125
  */
168
126
  emptyText = "Empty";
169
127
  /**
@@ -649,14 +607,14 @@ export class SortableComponent {
649
607
  this.updateCacheIndices();
650
608
  }
651
609
  /**
652
- * Sets a Boolean value that indicates whether the item will be hidden or not.
610
+ * Sets a boolean value that indicates whether the item will be hidden or not.
653
611
  * @hidden
654
612
  */
655
613
  hideItem(index, hidden = true) {
656
614
  this._localData[index].hidden = hidden;
657
615
  }
658
616
  /**
659
- * Gets or sets a Boolean value that indicates whether the currently dragged item will be hidden.
617
+ * Gets or sets a boolean value that indicates whether the currently dragged item will be hidden.
660
618
  *
661
619
  * If the currently dragged item is hidden, returns `true`.
662
620
  * If the currently dragged item is visible, returns `false`.
@@ -670,7 +628,7 @@ export class SortableComponent {
670
628
  }
671
629
  /**
672
630
  * Clears the active item.
673
- * An active item is the item which becomes focused when the user navigates with the keyboard.
631
+ * An active item is the one that is currently focused when the user navigates with the keyboard.
674
632
  */
675
633
  clearActiveItem() {
676
634
  if (this.navigable) {
@@ -691,7 +649,7 @@ export class SortableComponent {
691
649
  }
692
650
  }
693
651
  /**
694
- * Adds a new data item to a particular index.
652
+ * Inserts a new data item at a particular index in the Sortable component.
695
653
  * @param dataItem - The data item.
696
654
  * @param index - The index at which the data item is inserted.
697
655
  */
@@ -719,7 +677,7 @@ export class SortableComponent {
719
677
  });
720
678
  }
721
679
  /**
722
- * Moves data item to a particular index.
680
+ * Moves a data item from one index to another in the Sortable component.
723
681
  * @param fromIndex - The data item's index.
724
682
  * @param toIndex - The index which the data item should be moved to. Item currently sitting at that index is pushed back one position.
725
683
  */
@@ -12,33 +12,21 @@ import * as i3 from "./item-template.directive";
12
12
  import * as i4 from "./binding.directive";
13
13
  //IMPORTANT: NgModule export kept for backwards compatibility
14
14
  /**
15
- *
16
- * Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi'])
17
- * definition for the Sortable component.
15
+ * Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) definition for the Sortable component.
18
16
  *
19
17
  * @example
20
- *
21
- * ```ts-no-run
18
+ * ```typescript
22
19
  * import { NgModule } from '@angular/core';
23
20
  * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
24
- *
25
- * // Import the Sortable module
26
21
  * import { SortableModule } from '@progress/kendo-angular-sortable';
27
- *
28
- * // Import the app component
29
22
  * import { AppComponent } from './app.component';
30
23
  *
31
- * // Define the app module
32
- * _@NgModule({
24
+ * @NgModule({
33
25
  * declarations: [AppComponent],
34
26
  * imports: [BrowserModule, SortableModule],
35
27
  * bootstrap: [AppComponent]
36
28
  * })
37
29
  * export class AppModule {}
38
- *
39
- * // Compile and launch the module
40
- * platformBrowserDynamic().bootstrapModule(AppModule);
41
- *
42
30
  * ```
43
31
  */
44
32
  export class SortableModule {
@@ -13,9 +13,8 @@ const allowDrag = (e) => {
13
13
  return target.hasAttribute('data-sortable-item') || !(isFocusable(target) || widgetTarget(target));
14
14
  };
15
15
  /**
16
- * The service that provides the drag-and-drop functionality for
17
- * transferring items between Sortable components within the same page.
18
- *
16
+ * The `SortableService` is a service that manages the drag-and-drop functionality
17
+ * for transferring items between Sortable components.
19
18
  */
20
19
  export class SortableService {
21
20
  ngZone;
@@ -109,7 +108,7 @@ export class SortableService {
109
108
  }
110
109
  }
111
110
  /**
112
- * Registers a `SortableComponent` with which the service operates.
111
+ * Registers a `SortableComponent` with the `SortableService` so that it can be managed by the service.
113
112
  *
114
113
  * @param sortableComponent - The `SortableComponent`.
115
114
  * @return - The unique key that the current `SortableComponent` gets when registered.
@@ -155,9 +154,7 @@ export class SortableService {
155
154
  * Represents a single contact point (finger or stylus)
156
155
  * on a touch-sensitive device (touchscreen or trackpad).
157
156
  *
158
- * @return { component: SortableComponent, index: number } - An object
159
- * where the component is the `SortableComponent` that owns the item
160
- * and the index is the index of the touched item.
157
+ * @return { component: SortableComponent, index: number } - An object where the component is the `SortableComponent` that owns the item and the index is the index of the touched item.
161
158
  */
162
159
  getSortableComponentFromTouch(touch) {
163
160
  if (!isDocumentAvailable()) {
package/esm2022/util.mjs CHANGED
@@ -38,7 +38,7 @@ export const closest = (node, predicate) => {
38
38
  return node;
39
39
  };
40
40
  /**
41
- * Returns an object specifiying whether there is a DraggableDirective under the cursor.
41
+ * Returns an object specifying whether there is a `DraggableDirective` under the cursor.
42
42
  * @hidden
43
43
  */
44
44
  export const draggableFromPoint = (x, y) => {