@progress/kendo-angular-grid 18.0.0-develop.1 → 18.0.0-develop.11
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/column-resizing/column-handle.directive.d.ts +4 -1
- package/column-resizing/column-resize.interface.d.ts +16 -0
- package/column-resizing/column-resizing.service.d.ts +4 -0
- package/column-resizing/table.directive.d.ts +3 -2
- package/columns/reorder-column.component.d.ts +20 -1
- package/directives.d.ts +5 -3
- package/esm2022/column-resizing/column-handle.directive.mjs +60 -9
- package/esm2022/column-resizing/column-resizing.service.mjs +5 -0
- package/esm2022/column-resizing/table.directive.mjs +23 -11
- package/esm2022/columns/reorder-column.component.mjs +32 -2
- package/esm2022/common/filter-descriptor-differ.mjs +1 -1
- package/esm2022/directives.mjs +4 -0
- package/esm2022/grid.component.mjs +28 -3
- package/esm2022/grid.module.mjs +104 -102
- package/esm2022/index.mjs +2 -0
- package/esm2022/navigation/navigation.service.mjs +29 -4
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/rendering/cell.component.mjs +17 -2
- package/esm2022/rendering/header/header.component.mjs +5 -1
- package/esm2022/row-reordering/drag-handle-template.directive.mjs +45 -0
- package/esm2022/row-reordering/drag-hint-template.directive.mjs +44 -0
- package/esm2022/row-reordering/row-reorder.service.mjs +3 -0
- package/fesm2022/progress-kendo-angular-grid.mjs +2398 -2153
- package/grid.component.d.ts +10 -2
- package/grid.module.d.ts +104 -102
- package/index.d.ts +3 -0
- package/navigation/navigation.service.d.ts +6 -2
- package/package.json +18 -18
- package/rendering/cell.component.d.ts +2 -0
- package/rendering/header/header.component.d.ts +2 -1
- package/row-reordering/drag-handle-template.directive.d.ts +34 -0
- package/row-reordering/drag-hint-template.directive.d.ts +33 -0
- package/row-reordering/row-reorder.service.d.ts +1 -0
- package/schematics/ngAdd/index.js +4 -4
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 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, TemplateRef, Optional } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Represents the drag hint template of the Grid.
|
|
9
|
+
* Helps to customize the content of the hint during row reordering. To define the hint template, nest an `<ng-template>`
|
|
10
|
+
* tag with the `kendoGridRowDragHintTemplate` directive inside the `<kendo-grid-rowreorder-column>` tag.
|
|
11
|
+
*
|
|
12
|
+
* The template context is set to the current data item.
|
|
13
|
+
* The provided data row index is passed as an additional field. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```html
|
|
17
|
+
* <kendo-grid [kendoGridBinding]="data" [rowReorderable]="true">
|
|
18
|
+
* <kendo-grid-rowreorder-column>
|
|
19
|
+
* <ng-template kendoGridRowDragHintTemplate>
|
|
20
|
+
* <span>Custom hint</span>
|
|
21
|
+
* </ng-template>
|
|
22
|
+
* </kendo-grid-rowreorder-column>
|
|
23
|
+
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
24
|
+
* <kendo-grid-column field="Field2"></kendo-grid-column>
|
|
25
|
+
* </kendo-grid>
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export class RowDragHintTemplateDirective {
|
|
29
|
+
templateRef;
|
|
30
|
+
constructor(templateRef) {
|
|
31
|
+
this.templateRef = templateRef;
|
|
32
|
+
}
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RowDragHintTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
34
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: RowDragHintTemplateDirective, isStandalone: true, selector: "[kendoGridRowDragHintTemplate]", ngImport: i0 });
|
|
35
|
+
}
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RowDragHintTemplateDirective, decorators: [{
|
|
37
|
+
type: Directive,
|
|
38
|
+
args: [{
|
|
39
|
+
selector: '[kendoGridRowDragHintTemplate]',
|
|
40
|
+
standalone: true,
|
|
41
|
+
}]
|
|
42
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
43
|
+
type: Optional
|
|
44
|
+
}] }]; } });
|
|
@@ -97,6 +97,9 @@ export class RowReorderService {
|
|
|
97
97
|
});
|
|
98
98
|
return hintText.trim();
|
|
99
99
|
}
|
|
100
|
+
getDraggedRow(data) {
|
|
101
|
+
return this.getDragRowPerElement(this.dragTarget, data);
|
|
102
|
+
}
|
|
100
103
|
rowReorderArgs(dragRow, dropRow, data) {
|
|
101
104
|
const dragRowData = this.getDragRowPerElement(dragRow, data);
|
|
102
105
|
const dropRowData = this.getDragRowPerElement(dropRow, data);
|