@progress/kendo-angular-grid 17.3.0-develop.2 → 18.0.0-develop.10
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/dragdrop/draggable-column.directive.d.ts +0 -1
- package/esm2022/column-menu/column-menu.component.mjs +1 -1
- 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/dragdrop/draggable-column.directive.mjs +2 -8
- package/esm2022/grid.component.mjs +30 -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 +6 -8
- package/esm2022/rendering/list.component.mjs +4 -4
- package/esm2022/rendering/table-body.component.mjs +2 -2
- 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 +2408 -2173
- 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 -2
- 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
|
@@ -111,9 +111,6 @@ export class HeaderComponent {
|
|
|
111
111
|
tabIndex;
|
|
112
112
|
size = 'medium';
|
|
113
113
|
sortedFields = {};
|
|
114
|
-
get headerClass() {
|
|
115
|
-
return !this.scrollable;
|
|
116
|
-
}
|
|
117
114
|
hostClass = true;
|
|
118
115
|
get sortableLabel() {
|
|
119
116
|
return this.contextService.localization.get('sortable');
|
|
@@ -493,7 +490,7 @@ export class HeaderComponent {
|
|
|
493
490
|
});
|
|
494
491
|
}
|
|
495
492
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeaderComponent, deps: [{ token: i1.SinglePopupService }, { token: i2.DragHintService }, { token: i3.DropCueService }, { token: i4.ColumnReorderService }, { token: i5.IdService }, { token: i6.SortService }, { token: i7.ColumnInfoService }, { token: i0.ChangeDetectorRef }, { token: i8.ContextService }, { token: i9.NavigationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
496
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HeaderComponent, isStandalone: true, selector: "[kendoGridHeader]", inputs: { totalColumnLevels: "totalColumnLevels", columns: "columns", groups: "groups", detailTemplate: "detailTemplate", scrollable: "scrollable", filterable: "filterable", sort: "sort", filter: "filter", sortable: "sortable", groupable: "groupable", lockedColumnsCount: "lockedColumnsCount", resizable: "resizable", reorderable: "reorderable", columnMenu: "columnMenu", columnMenuTemplate: "columnMenuTemplate", totalColumnsCount: "totalColumnsCount", totalColumns: "totalColumns", tabIndex: "tabIndex", size: "size" }, host: { properties: { "class.k-
|
|
493
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HeaderComponent, isStandalone: true, selector: "[kendoGridHeader]", inputs: { totalColumnLevels: "totalColumnLevels", columns: "columns", groups: "groups", detailTemplate: "detailTemplate", scrollable: "scrollable", filterable: "filterable", sort: "sort", filter: "filter", sortable: "sortable", groupable: "groupable", lockedColumnsCount: "lockedColumnsCount", resizable: "resizable", reorderable: "reorderable", columnMenu: "columnMenu", columnMenuTemplate: "columnMenuTemplate", totalColumnsCount: "totalColumnsCount", totalColumns: "totalColumns", tabIndex: "tabIndex", size: "size" }, host: { properties: { "class.k-table-thead": "this.hostClass" } }, viewQueries: [{ propertyName: "dropTargets", predicate: DropTargetDirective, descendants: true }, { propertyName: "filterMenus", predicate: FilterMenuComponent, descendants: true }, { propertyName: "columnMenus", predicate: ColumnMenuComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
497
494
|
<ng-container>
|
|
498
495
|
<tr *ngFor="let i of columnLevels; let levelIndex = index"
|
|
499
496
|
kendoGridLogicalRow
|
|
@@ -637,6 +634,7 @@ export class HeaderComponent {
|
|
|
637
634
|
kendoDraggable
|
|
638
635
|
class="k-column-resizer"
|
|
639
636
|
*ngIf="resizable"
|
|
637
|
+
[isLast]="last"
|
|
640
638
|
[column]="column"
|
|
641
639
|
[columns]="columns">
|
|
642
640
|
</span>
|
|
@@ -691,6 +689,7 @@ export class HeaderComponent {
|
|
|
691
689
|
kendoDraggable
|
|
692
690
|
class="k-column-resizer"
|
|
693
691
|
*ngIf="resizable"
|
|
692
|
+
[isLast]="last"
|
|
694
693
|
[column]="column"
|
|
695
694
|
[columns]="columns">
|
|
696
695
|
</span>
|
|
@@ -712,7 +711,7 @@ export class HeaderComponent {
|
|
|
712
711
|
[totalColumns]="totalColumns"
|
|
713
712
|
></tr>
|
|
714
713
|
</ng-container>
|
|
715
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: LogicalRowDirective, selector: "[kendoGridLogicalRow]", inputs: ["logicalRowIndex", "logicalSlaveRow", "logicalCellsCount", "logicalSlaveCellsCount", "dataRowIndex", "dataItem", "totalColumns"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: LogicalCellDirective, selector: "[kendoGridLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "colIndex", "colSpan", "rowSpan", "groupItem", "dataRowIndex", "dataItem", "detailExpandCell", "headerLabelText"] }, { kind: "directive", type: DropTargetDirective, selector: "[kendoDropTarget]", inputs: ["context"], outputs: ["enter", "leave", "drop"] }, { kind: "directive", type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { kind: "directive", type: DraggableColumnDirective, selector: "[kendoDraggableColumn]", inputs: ["context", "enableDrag"], outputs: ["drag"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "component", type: FilterMenuComponent, selector: "kendo-grid-filter-menu", inputs: ["column", "filter", "tabIndex"] }, { kind: "component", type: ColumnMenuComponent, selector: "kendo-grid-column-menu", inputs: ["standalone", "column", "settings", "sort", "filter", "sortable", "columnMenuTemplate", "tabIndex"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: SelectAllCheckboxDirective, selector: "[kendoGridSelectAllCheckbox]", inputs: ["state"], outputs: ["selectAllChange"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { kind: "directive", type: ColumnHandleDirective, selector: "[kendoGridColumnHandle]", inputs: ["columns", "column"] }, { kind: "component", type: FilterRowComponent, selector: "[kendoGridFilterRow]", inputs: ["columns", "filter", "groups", "detailTemplate", "logicalRowIndex", "lockedColumnsCount"] }, { kind: "component", type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["checkedState", "rounded"], outputs: ["checkedStateChange"], exportAs: ["kendoCheckBox"] }] });
|
|
714
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: LogicalRowDirective, selector: "[kendoGridLogicalRow]", inputs: ["logicalRowIndex", "logicalSlaveRow", "logicalCellsCount", "logicalSlaveCellsCount", "dataRowIndex", "dataItem", "totalColumns"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: LogicalCellDirective, selector: "[kendoGridLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "colIndex", "colSpan", "rowSpan", "groupItem", "dataRowIndex", "dataItem", "detailExpandCell", "headerLabelText"] }, { kind: "directive", type: DropTargetDirective, selector: "[kendoDropTarget]", inputs: ["context"], outputs: ["enter", "leave", "drop"] }, { kind: "directive", type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { kind: "directive", type: DraggableColumnDirective, selector: "[kendoDraggableColumn]", inputs: ["context", "enableDrag"], outputs: ["drag"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "component", type: FilterMenuComponent, selector: "kendo-grid-filter-menu", inputs: ["column", "filter", "tabIndex"] }, { kind: "component", type: ColumnMenuComponent, selector: "kendo-grid-column-menu", inputs: ["standalone", "column", "settings", "sort", "filter", "sortable", "columnMenuTemplate", "tabIndex"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: SelectAllCheckboxDirective, selector: "[kendoGridSelectAllCheckbox]", inputs: ["state"], outputs: ["selectAllChange"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { kind: "directive", type: ColumnHandleDirective, selector: "[kendoGridColumnHandle]", inputs: ["isLast", "columns", "column"] }, { kind: "component", type: FilterRowComponent, selector: "[kendoGridFilterRow]", inputs: ["columns", "filter", "groups", "detailTemplate", "logicalRowIndex", "lockedColumnsCount"] }, { kind: "component", type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["checkedState", "rounded"], outputs: ["checkedStateChange"], exportAs: ["kendoCheckBox"] }] });
|
|
716
715
|
}
|
|
717
716
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
718
717
|
type: Component,
|
|
@@ -862,6 +861,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
862
861
|
kendoDraggable
|
|
863
862
|
class="k-column-resizer"
|
|
864
863
|
*ngIf="resizable"
|
|
864
|
+
[isLast]="last"
|
|
865
865
|
[column]="column"
|
|
866
866
|
[columns]="columns">
|
|
867
867
|
</span>
|
|
@@ -916,6 +916,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
916
916
|
kendoDraggable
|
|
917
917
|
class="k-column-resizer"
|
|
918
918
|
*ngIf="resizable"
|
|
919
|
+
[isLast]="last"
|
|
919
920
|
[column]="column"
|
|
920
921
|
[columns]="columns">
|
|
921
922
|
</span>
|
|
@@ -983,9 +984,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
983
984
|
type: Input
|
|
984
985
|
}], size: [{
|
|
985
986
|
type: Input
|
|
986
|
-
}], headerClass: [{
|
|
987
|
-
type: HostBinding,
|
|
988
|
-
args: ['class.k-grid-header']
|
|
989
987
|
}], hostClass: [{
|
|
990
988
|
type: HostBinding,
|
|
991
989
|
args: ['class.k-table-thead']
|
|
@@ -708,7 +708,7 @@ export class ListComponent {
|
|
|
708
708
|
</table>
|
|
709
709
|
<kendo-resize-sensor></kendo-resize-sensor>
|
|
710
710
|
</div>
|
|
711
|
-
<div class="k-height-container" role="presentation">
|
|
711
|
+
<div *ngIf="isVirtual" class="k-height-container" role="presentation">
|
|
712
712
|
<div [style.height.px]="totalHeight"></div>
|
|
713
713
|
</div>
|
|
714
714
|
</div>
|
|
@@ -762,7 +762,7 @@ export class ListComponent {
|
|
|
762
762
|
<kendo-resize-sensor *ngIf="isLocked"></kendo-resize-sensor>
|
|
763
763
|
</div>
|
|
764
764
|
<kendo-resize-sensor *ngIf="isLocked || virtualColumns"></kendo-resize-sensor>
|
|
765
|
-
<div class="k-height-container" role="presentation">
|
|
765
|
+
<div *ngIf="isVirtual" class="k-height-container" role="presentation">
|
|
766
766
|
<div [style.height.px]="totalHeight"></div>
|
|
767
767
|
</div>
|
|
768
768
|
<div *ngIf="virtualColumns" class="k-width-container" role="presentation">
|
|
@@ -831,7 +831,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
831
831
|
</table>
|
|
832
832
|
<kendo-resize-sensor></kendo-resize-sensor>
|
|
833
833
|
</div>
|
|
834
|
-
<div class="k-height-container" role="presentation">
|
|
834
|
+
<div *ngIf="isVirtual" class="k-height-container" role="presentation">
|
|
835
835
|
<div [style.height.px]="totalHeight"></div>
|
|
836
836
|
</div>
|
|
837
837
|
</div>
|
|
@@ -885,7 +885,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
885
885
|
<kendo-resize-sensor *ngIf="isLocked"></kendo-resize-sensor>
|
|
886
886
|
</div>
|
|
887
887
|
<kendo-resize-sensor *ngIf="isLocked || virtualColumns"></kendo-resize-sensor>
|
|
888
|
-
<div class="k-height-container" role="presentation">
|
|
888
|
+
<div *ngIf="isVirtual" class="k-height-container" role="presentation">
|
|
889
889
|
<div [style.height.px]="totalHeight"></div>
|
|
890
890
|
</div>
|
|
891
891
|
<div *ngIf="virtualColumns" class="k-width-container" role="presentation">
|
|
@@ -526,7 +526,7 @@ export class TableBodyComponent {
|
|
|
526
526
|
[totalColumns]="totalColumns"
|
|
527
527
|
[logicalCellsCount]="columns.length"
|
|
528
528
|
[logicalSlaveCellsCount]="unlockedColumnsCount(item)"
|
|
529
|
-
class="{{ isOdd(item) ? 'k-
|
|
529
|
+
class="{{ isOdd(item) ? 'k-table-alt-row' : ''}}"
|
|
530
530
|
[class.k-grid-row-sticky]="rowSticky ? rowSticky({ dataItem: item.data, index: $any(item).index }) : false"
|
|
531
531
|
[ngClass]="rowClass({ dataItem: item.data, index: $any(item).index })"
|
|
532
532
|
[class.k-master-row]="true"
|
|
@@ -755,7 +755,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
755
755
|
[totalColumns]="totalColumns"
|
|
756
756
|
[logicalCellsCount]="columns.length"
|
|
757
757
|
[logicalSlaveCellsCount]="unlockedColumnsCount(item)"
|
|
758
|
-
class="{{ isOdd(item) ? 'k-
|
|
758
|
+
class="{{ isOdd(item) ? 'k-table-alt-row' : ''}}"
|
|
759
759
|
[class.k-grid-row-sticky]="rowSticky ? rowSticky({ dataItem: item.data, index: $any(item).index }) : false"
|
|
760
760
|
[ngClass]="rowClass({ dataItem: item.data, index: $any(item).index })"
|
|
761
761
|
[class.k-master-row]="true"
|
|
@@ -0,0 +1,45 @@
|
|
|
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 column row reorder cell template of the Grid.
|
|
9
|
+
* Helps to customize the content of the drag handle cells. To define the cell template, nest an `<ng-template>`
|
|
10
|
+
* tag with the `kendoGridRowDragHandleTemplate` directive inside the `<kendo-grid-rowreorder-column>` tag.
|
|
11
|
+
*
|
|
12
|
+
* The template context is set to the current data item and the following additional fields are passed:
|
|
13
|
+
* - `columnIndex`—The current column index. Use it as an alias for a template variable by utilizing the `let-columnIndex="columnIndex"` syntax.
|
|
14
|
+
* - `rowIndex`—The provided data row index. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```html
|
|
18
|
+
* <kendo-grid [kendoGridBinding]="data" [rowReorderable]="true">
|
|
19
|
+
* <kendo-grid-rowreorder-column>
|
|
20
|
+
* <ng-template kendoGridRowDragHandleTemplate>
|
|
21
|
+
* <span>Drag here</span>
|
|
22
|
+
* </ng-template>
|
|
23
|
+
* </kendo-grid-rowreorder-column>
|
|
24
|
+
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
25
|
+
* <kendo-grid-column field="Field2"></kendo-grid-column>
|
|
26
|
+
* </kendo-grid>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export class RowDragHandleTemplateDirective {
|
|
30
|
+
templateRef;
|
|
31
|
+
constructor(templateRef) {
|
|
32
|
+
this.templateRef = templateRef;
|
|
33
|
+
}
|
|
34
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RowDragHandleTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
35
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: RowDragHandleTemplateDirective, isStandalone: true, selector: "[kendoGridRowDragHandleTemplate]", ngImport: i0 });
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RowDragHandleTemplateDirective, decorators: [{
|
|
38
|
+
type: Directive,
|
|
39
|
+
args: [{
|
|
40
|
+
selector: '[kendoGridRowDragHandleTemplate]',
|
|
41
|
+
standalone: true,
|
|
42
|
+
}]
|
|
43
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
44
|
+
type: Optional
|
|
45
|
+
}] }]; } });
|
|
@@ -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);
|