@progress/kendo-angular-treelist 17.0.0-develop.36 → 17.0.0-develop.38
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-menu/column-list.component.d.ts +1 -1
- package/esm2022/column-menu/column-list.component.mjs +44 -44
- package/esm2022/filtering/boolean-filter.component.mjs +3 -6
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +11 -10
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +11 -11
- package/esm2022/filtering/menu/filter-menu.module.mjs +1 -1
- package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +11 -11
- package/esm2022/navigation/default-focusable-element.mjs +2 -1
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/rendering/cell.component.mjs +19 -29
- package/esm2022/rendering/header/header.component.mjs +15 -16
- package/esm2022/rendering/header/header.module.mjs +1 -1
- package/esm2022/rendering/list.component.mjs +4 -4
- package/esm2022/rendering/table-body.component.mjs +3 -2
- package/esm2022/selection/selection.service.mjs +1 -0
- package/esm2022/treelist.module.mjs +1 -1
- package/fesm2022/progress-kendo-angular-treelist.mjs +121 -134
- package/package.json +16 -16
- package/rendering/header/header.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +3 -3
@@ -35,6 +35,7 @@ import { ColumnMenuComponent } from '../../column-menu/column-menu.component';
|
|
35
35
|
import { FilterMenuComponent } from '../../filtering/menu/filter-menu.component';
|
36
36
|
import { LogicalCellDirective } from '../../navigation/logical-cell.directive';
|
37
37
|
import { LogicalRowDirective } from '../../navigation/logical-row.directive';
|
38
|
+
import { CheckBoxComponent } from '@progress/kendo-angular-inputs';
|
38
39
|
import * as i0 from "@angular/core";
|
39
40
|
import * as i1 from "../../common/single-popup.service";
|
40
41
|
import * as i2 from "../../dragdrop/drag-hint.service";
|
@@ -271,8 +272,8 @@ export class HeaderComponent {
|
|
271
272
|
return column.isCheckboxColumn && column.showSelectAll && !column.headerTemplateRef &&
|
272
273
|
this.selectionService.enableMultiple;
|
273
274
|
}
|
274
|
-
|
275
|
-
this.selectionService.toggleAll(
|
275
|
+
selectAllChange(state) {
|
276
|
+
this.selectionService.toggleAll(state);
|
276
277
|
}
|
277
278
|
sortDescriptor(field) {
|
278
279
|
return this.sort.find(item => item.field === field) || { field };
|
@@ -438,7 +439,7 @@ export class HeaderComponent {
|
|
438
439
|
<ng-container *ngIf="!column.headerTemplateRef">
|
439
440
|
<span class="k-column-title">{{column.displayTitle}}</span>
|
440
441
|
</ng-container>
|
441
|
-
<span class
|
442
|
+
<span [class.k-sort-icon]="sortDescriptor(getColumnComponent(column).field).dir">
|
442
443
|
<kendo-icon-wrapper
|
443
444
|
*ngIf="sortDescriptor(getColumnComponent(column).field).dir"
|
444
445
|
role="note" [attr.aria-label]="sortableLabel"
|
@@ -465,12 +466,11 @@ export class HeaderComponent {
|
|
465
466
|
</span>
|
466
467
|
</ng-template>
|
467
468
|
<ng-template [ngIf]="renderSelectAll(column)">
|
468
|
-
<
|
469
|
-
|
470
|
-
class="k-checkbox k-checkbox-md k-rounded-md"
|
471
|
-
[attr.aria-label]="messageFor('selectAllRowsCheckboxLabel')"
|
469
|
+
<kendo-checkbox
|
470
|
+
[inputAttributes]="{'aria-label': messageFor('selectAllRowsCheckboxLabel')}"
|
472
471
|
kendoTreeListFocusable
|
473
|
-
(
|
472
|
+
(checkedStateChange)="selectAllChange($event)"
|
473
|
+
></kendo-checkbox>
|
474
474
|
</ng-template>
|
475
475
|
<span kendoTreeListColumnHandle
|
476
476
|
kendoDraggable
|
@@ -543,7 +543,7 @@ export class HeaderComponent {
|
|
543
543
|
[logicalSlaveCellsCount]="unlockedColumnsCount"
|
544
544
|
>
|
545
545
|
</tr>
|
546
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: LogicalRowDirective, selector: "[kendoTreeListLogicalRow]", inputs: ["logicalRowIndex", "logicalSlaveRow", "logicalCellsCount", "logicalSlaveCellsCount", "dataRowIndex", "dataItem", "isNew", "totalColumns"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: LogicalCellDirective, selector: "[kendoTreeListLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "column", "colIndex", "colSpan", "rowSpan", "dataRowIndex", "dataItem", "expandable"] }, { 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: "component", type: FilterMenuComponent, selector: "kendo-treelist-filter-menu", inputs: ["column", "filter"] }, { kind: "component", type: ColumnMenuComponent, selector: "kendo-treelist-column-menu", inputs: ["standalone", "column", "settings", "sort", "filter", "sortable", "columnMenuTemplate"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { kind: "directive", type: ColumnHandleDirective, selector: "[kendoTreeListColumnHandle]", inputs: ["columns", "column"] }, { kind: "component", type: FilterRowComponent, selector: "[kendoTreeListFilterRow]", inputs: ["columns", "filter", "logicalRowIndex", "lockedColumnsCount"] }] });
|
546
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: LogicalRowDirective, selector: "[kendoTreeListLogicalRow]", inputs: ["logicalRowIndex", "logicalSlaveRow", "logicalCellsCount", "logicalSlaveCellsCount", "dataRowIndex", "dataItem", "isNew", "totalColumns"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: LogicalCellDirective, selector: "[kendoTreeListLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "column", "colIndex", "colSpan", "rowSpan", "dataRowIndex", "dataItem", "expandable"] }, { 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: "component", type: FilterMenuComponent, selector: "kendo-treelist-filter-menu", inputs: ["column", "filter"] }, { kind: "component", type: ColumnMenuComponent, selector: "kendo-treelist-column-menu", inputs: ["standalone", "column", "settings", "sort", "filter", "sortable", "columnMenuTemplate"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { kind: "directive", type: ColumnHandleDirective, selector: "[kendoTreeListColumnHandle]", inputs: ["columns", "column"] }, { kind: "component", type: FilterRowComponent, selector: "[kendoTreeListFilterRow]", inputs: ["columns", "filter", "logicalRowIndex", "lockedColumnsCount"] }, { kind: "component", type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["checkedState", "rounded"], outputs: ["checkedStateChange"], exportAs: ["kendoCheckBox"] }] });
|
547
547
|
}
|
548
548
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeaderComponent, decorators: [{
|
549
549
|
type: Component,
|
@@ -626,7 +626,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
626
626
|
<ng-container *ngIf="!column.headerTemplateRef">
|
627
627
|
<span class="k-column-title">{{column.displayTitle}}</span>
|
628
628
|
</ng-container>
|
629
|
-
<span class
|
629
|
+
<span [class.k-sort-icon]="sortDescriptor(getColumnComponent(column).field).dir">
|
630
630
|
<kendo-icon-wrapper
|
631
631
|
*ngIf="sortDescriptor(getColumnComponent(column).field).dir"
|
632
632
|
role="note" [attr.aria-label]="sortableLabel"
|
@@ -653,12 +653,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
653
653
|
</span>
|
654
654
|
</ng-template>
|
655
655
|
<ng-template [ngIf]="renderSelectAll(column)">
|
656
|
-
<
|
657
|
-
|
658
|
-
class="k-checkbox k-checkbox-md k-rounded-md"
|
659
|
-
[attr.aria-label]="messageFor('selectAllRowsCheckboxLabel')"
|
656
|
+
<kendo-checkbox
|
657
|
+
[inputAttributes]="{'aria-label': messageFor('selectAllRowsCheckboxLabel')}"
|
660
658
|
kendoTreeListFocusable
|
661
|
-
(
|
659
|
+
(checkedStateChange)="selectAllChange($event)"
|
660
|
+
></kendo-checkbox>
|
662
661
|
</ng-template>
|
663
662
|
<span kendoTreeListColumnHandle
|
664
663
|
kendoDraggable
|
@@ -733,7 +732,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
733
732
|
</tr>
|
734
733
|
`,
|
735
734
|
standalone: true,
|
736
|
-
imports: [NgFor, LogicalRowDirective, NgIf, LogicalCellDirective, DropTargetDirective, DraggableDirective, DraggableColumnDirective, NgClass, NgStyle, FilterMenuComponent, ColumnMenuComponent, TemplateContextDirective, IconWrapperComponent, FocusableDirective, ColumnHandleDirective, FilterRowComponent]
|
735
|
+
imports: [NgFor, LogicalRowDirective, NgIf, LogicalCellDirective, DropTargetDirective, DraggableDirective, DraggableColumnDirective, NgClass, NgStyle, FilterMenuComponent, ColumnMenuComponent, TemplateContextDirective, IconWrapperComponent, FocusableDirective, ColumnHandleDirective, FilterRowComponent, CheckBoxComponent]
|
737
736
|
}]
|
738
737
|
}], ctorParameters: function () { return [{ type: i1.SinglePopupService }, { type: i2.DragHintService }, { type: i3.DropCueService }, { type: i4.ColumnReorderService }, { type: i5.SortService }, { type: i6.SelectionService }, { type: i7.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { totalColumnLevels: [{
|
739
738
|
type: Input
|
@@ -84,7 +84,7 @@ import * as i69 from "../../column-menu/column-menu-template.directive";
|
|
84
84
|
export class HeaderModule {
|
85
85
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
86
86
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: HeaderModule, imports: [i1.HeaderComponent, i2.HeaderTemplateDirective, i3.ColumnHandleDirective, i4.FilterRowComponent, i5.FilterCellComponent, i6.FilterCellTemplateDirective, i7.StringFilterCellComponent, i8.NumericFilterCellComponent, i9.AutoCompleteFilterCellComponent, i10.BooleanFilterCellComponent, i11.FilterCellHostDirective, i12.FilterCellWrapperComponent, i13.DateFilterCellComponent, i14.FilterCellOperatorsComponent, i15.ContainsFilterOperatorComponent, i16.DoesNotContainFilterOperatorComponent, i17.EndsWithFilterOperatorComponent, i18.EqualFilterOperatorComponent, i19.IsEmptyFilterOperatorComponent, i20.IsNotEmptyFilterOperatorComponent, i21.IsNotNullFilterOperatorComponent, i22.IsNullFilterOperatorComponent, i23.NotEqualFilterOperatorComponent, i24.StartsWithFilterOperatorComponent, i25.GreaterFilterOperatorComponent, i26.GreaterOrEqualToFilterOperatorComponent, i27.LessFilterOperatorComponent, i28.LessOrEqualToFilterOperatorComponent, i29.AfterFilterOperatorComponent, i30.AfterEqFilterOperatorComponent, i31.BeforeEqFilterOperatorComponent, i32.BeforeFilterOperatorComponent, i33.FilterInputDirective, i34.ColumnComponent, i35.ColumnGroupComponent, i36.LogicalCellDirective, i37.LogicalRowDirective, i38.FocusableDirective, i39.ColGroupComponent, i40.ResizableContainerDirective, i41.TemplateContextDirective, i42.FieldAccessorPipe, i43.SpanColumnComponent, i44.LoadingComponent, i14.FilterCellOperatorsComponent, i45.CheckboxColumnComponent, i46.RowReorderColumnComponent, i47.CustomMessagesComponent, i47.PagerFocusableDirective, i47.PagerInfoComponent, i47.PagerInputComponent, i47.PagerNextButtonsComponent, i47.PagerNumericButtonsComponent, i47.PagerPageSizesComponent, i47.PagerPrevButtonsComponent, i47.PagerTemplateDirective, i47.PagerComponent, i47.PagerSpacerComponent, i48.FilterMenuComponent, i49.FilterMenuContainerComponent, i50.FilterMenuInputWrapperComponent, i51.StringFilterMenuInputComponent, i52.StringFilterMenuComponent, i53.FilterMenuTemplateDirective, i54.NumericFilterMenuComponent, i55.NumericFilterMenuInputComponent, i56.DateFilterMenuInputComponent, i57.DateFilterMenuComponent, i58.FilterMenuHostDirective, i59.BooleanFilterMenuComponent, i60.BooleanFilterRadioButtonDirective, i34.ColumnComponent, i35.ColumnGroupComponent, i36.LogicalCellDirective, i37.LogicalRowDirective, i38.FocusableDirective, i39.ColGroupComponent, i40.ResizableContainerDirective, i41.TemplateContextDirective, i42.FieldAccessorPipe, i43.SpanColumnComponent, i44.LoadingComponent, i14.FilterCellOperatorsComponent, i45.CheckboxColumnComponent, i46.RowReorderColumnComponent, i47.CustomMessagesComponent, i47.PagerFocusableDirective, i47.PagerInfoComponent, i47.PagerInputComponent, i47.PagerNextButtonsComponent, i47.PagerNumericButtonsComponent, i47.PagerPageSizesComponent, i47.PagerPrevButtonsComponent, i47.PagerTemplateDirective, i47.PagerComponent, i47.PagerSpacerComponent, i61.ColumnChooserComponent, i62.ColumnMenuChooserComponent, i63.ColumnMenuFilterComponent, i64.ColumnMenuItemComponent, i65.ColumnMenuItemContentTemplateDirective, i66.ColumnMenuSortComponent, i67.ColumnMenuComponent, i68.ColumnMenuLockComponent, i69.ColumnMenuTemplateDirective, DraggableColumnDirective, DropTargetDirective], exports: [i1.HeaderComponent, i2.HeaderTemplateDirective, i3.ColumnHandleDirective] });
|
87
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeaderModule, imports: [i1.HeaderComponent, i7.StringFilterCellComponent, i8.NumericFilterCellComponent, i9.AutoCompleteFilterCellComponent, i10.BooleanFilterCellComponent, i12.FilterCellWrapperComponent, i13.DateFilterCellComponent, i14.FilterCellOperatorsComponent, i14.FilterCellOperatorsComponent, i47.CustomMessagesComponent, i47.PagerInfoComponent, i47.PagerInputComponent, i47.PagerNextButtonsComponent, i47.PagerNumericButtonsComponent, i47.PagerPageSizesComponent, i47.PagerPrevButtonsComponent, i47.PagerComponent, i47.PagerSpacerComponent, i48.FilterMenuComponent, i49.FilterMenuContainerComponent, i50.FilterMenuInputWrapperComponent, i51.StringFilterMenuInputComponent, i52.StringFilterMenuComponent, i54.NumericFilterMenuComponent, i55.NumericFilterMenuInputComponent, i56.DateFilterMenuInputComponent, i57.DateFilterMenuComponent, i14.FilterCellOperatorsComponent, i47.CustomMessagesComponent, i47.PagerInfoComponent, i47.PagerInputComponent, i47.PagerNextButtonsComponent, i47.PagerNumericButtonsComponent, i47.PagerPageSizesComponent, i47.PagerPrevButtonsComponent, i47.PagerComponent, i47.PagerSpacerComponent, i61.ColumnChooserComponent, i62.ColumnMenuChooserComponent, i63.ColumnMenuFilterComponent, i64.ColumnMenuItemComponent, i66.ColumnMenuSortComponent, i67.ColumnMenuComponent, i68.ColumnMenuLockComponent] });
|
87
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeaderModule, imports: [i1.HeaderComponent, i7.StringFilterCellComponent, i8.NumericFilterCellComponent, i9.AutoCompleteFilterCellComponent, i10.BooleanFilterCellComponent, i12.FilterCellWrapperComponent, i13.DateFilterCellComponent, i14.FilterCellOperatorsComponent, i14.FilterCellOperatorsComponent, i47.CustomMessagesComponent, i47.PagerInfoComponent, i47.PagerInputComponent, i47.PagerNextButtonsComponent, i47.PagerNumericButtonsComponent, i47.PagerPageSizesComponent, i47.PagerPrevButtonsComponent, i47.PagerComponent, i47.PagerSpacerComponent, i48.FilterMenuComponent, i49.FilterMenuContainerComponent, i50.FilterMenuInputWrapperComponent, i51.StringFilterMenuInputComponent, i52.StringFilterMenuComponent, i54.NumericFilterMenuComponent, i55.NumericFilterMenuInputComponent, i56.DateFilterMenuInputComponent, i57.DateFilterMenuComponent, i59.BooleanFilterMenuComponent, i14.FilterCellOperatorsComponent, i47.CustomMessagesComponent, i47.PagerInfoComponent, i47.PagerInputComponent, i47.PagerNextButtonsComponent, i47.PagerNumericButtonsComponent, i47.PagerPageSizesComponent, i47.PagerPrevButtonsComponent, i47.PagerComponent, i47.PagerSpacerComponent, i61.ColumnChooserComponent, i62.ColumnMenuChooserComponent, i63.ColumnMenuFilterComponent, i64.ColumnMenuItemComponent, i66.ColumnMenuSortComponent, i67.ColumnMenuComponent, i68.ColumnMenuLockComponent] });
|
88
88
|
}
|
89
89
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HeaderModule, decorators: [{
|
90
90
|
type: NgModule,
|
@@ -572,7 +572,7 @@ export class ListComponent {
|
|
572
572
|
DOMMouseScroll: lockedMousewheel
|
573
573
|
}"
|
574
574
|
[scope]="this">
|
575
|
-
<div role="presentation"
|
575
|
+
<div role="presentation">
|
576
576
|
<table
|
577
577
|
kendoTreeListResizableTable
|
578
578
|
[locked]="true"
|
@@ -611,7 +611,7 @@ export class ListComponent {
|
|
611
611
|
[kendoTreeListResizableContainer]="lockedLeafColumns.length > 0"
|
612
612
|
[lockedWidth]="lockedWidth + 1"
|
613
613
|
>
|
614
|
-
<div role="presentation"
|
614
|
+
<div role="presentation">
|
615
615
|
<table
|
616
616
|
[style.width.px]="nonLockedWidth"
|
617
617
|
#table
|
@@ -674,7 +674,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
674
674
|
DOMMouseScroll: lockedMousewheel
|
675
675
|
}"
|
676
676
|
[scope]="this">
|
677
|
-
<div role="presentation"
|
677
|
+
<div role="presentation">
|
678
678
|
<table
|
679
679
|
kendoTreeListResizableTable
|
680
680
|
[locked]="true"
|
@@ -713,7 +713,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
713
713
|
[kendoTreeListResizableContainer]="lockedLeafColumns.length > 0"
|
714
714
|
[lockedWidth]="lockedWidth + 1"
|
715
715
|
>
|
716
|
-
<div role="presentation"
|
716
|
+
<div role="presentation">
|
717
717
|
<table
|
718
718
|
[style.width.px]="nonLockedWidth"
|
719
719
|
#table
|
@@ -352,7 +352,7 @@ export class TableBodyComponent {
|
|
352
352
|
}
|
353
353
|
checkboxClick(cell, row, eventArg) {
|
354
354
|
const isCheckboxCell = hasClasses(cell, 'k-checkbox-cell');
|
355
|
-
const isCheckbox =
|
355
|
+
const isCheckbox = eventArg.target.closest('.k-checkbox-wrap');
|
356
356
|
if (isCheckboxCell && !isCheckbox && this.selection.settings.checkboxOnly) {
|
357
357
|
return;
|
358
358
|
}
|
@@ -360,7 +360,8 @@ export class TableBodyComponent {
|
|
360
360
|
this.selection.enabled && this.selection.rowSelection) {
|
361
361
|
const args = this.cellClickArgs(cell, row, eventArg);
|
362
362
|
this.selection.checkboxClick(args);
|
363
|
-
|
363
|
+
const isChecked = isCheckbox?.firstElementChild.classList.contains('k-checked');
|
364
|
+
if (isChecked !== this.selection.isRowSelected(args.dataItem)) {
|
364
365
|
eventArg.preventDefault();
|
365
366
|
}
|
366
367
|
return true;
|
@@ -102,6 +102,7 @@ export class SelectionService {
|
|
102
102
|
this.dragging = false;
|
103
103
|
return;
|
104
104
|
}
|
105
|
+
//
|
105
106
|
const isCheckbox = args.originalEvent.target ? hasClasses(args.originalEvent.target, 'k-checkbox') : true;
|
106
107
|
if (this.rowSelection && this.settings.checkboxOnly && !isCheckbox) {
|
107
108
|
return;
|
@@ -146,7 +146,7 @@ export class TreeListModule {
|
|
146
146
|
DialogService,
|
147
147
|
WindowService,
|
148
148
|
WindowContainerService
|
149
|
-
], imports: [i1.TreeListComponent, i25.FilterCellOperatorsComponent, i28.CustomMessagesComponent, i28.PagerInfoComponent, i28.PagerInputComponent, i28.PagerNextButtonsComponent, i28.PagerNumericButtonsComponent, i28.PagerPageSizesComponent, i28.PagerPrevButtonsComponent, i28.PagerComponent, i28.PagerSpacerComponent, i31.CellComponent, i34.EditCommandDirective, i35.CancelCommandDirective, i36.SaveCommandDirective, i37.RemoveCommandDirective, i38.AddCommandDirective, i41.HeaderComponent, i47.StringFilterCellComponent, i48.NumericFilterCellComponent, i49.AutoCompleteFilterCellComponent, i50.BooleanFilterCellComponent, i52.FilterCellWrapperComponent, i53.DateFilterCellComponent, i25.FilterCellOperatorsComponent, i25.FilterCellOperatorsComponent, i28.CustomMessagesComponent, i28.PagerInfoComponent, i28.PagerInputComponent, i28.PagerNextButtonsComponent, i28.PagerNumericButtonsComponent, i28.PagerPageSizesComponent, i28.PagerPrevButtonsComponent, i28.PagerComponent, i28.PagerSpacerComponent, i73.FilterMenuComponent, i74.FilterMenuContainerComponent, i75.FilterMenuInputWrapperComponent, i76.StringFilterMenuInputComponent, i77.StringFilterMenuComponent, i79.NumericFilterMenuComponent, i80.NumericFilterMenuInputComponent, i81.DateFilterMenuInputComponent, i82.DateFilterMenuComponent, i86.ColumnChooserComponent, i87.ColumnMenuChooserComponent, i88.ColumnMenuFilterComponent, i89.ColumnMenuItemComponent, i91.ColumnMenuSortComponent, i92.ColumnMenuComponent, i93.ColumnMenuLockComponent, i95.ToolBarComponent, i95.ToolbarCustomMessagesComponent, i95.ToolBarButtonComponent, i95.ToolBarButtonGroupComponent, i95.ToolBarDropDownButtonComponent, i95.ToolBarSeparatorComponent, i95.ToolBarSpacerComponent, i95.ToolBarSplitButtonComponent] });
|
149
|
+
], imports: [i1.TreeListComponent, i25.FilterCellOperatorsComponent, i28.CustomMessagesComponent, i28.PagerInfoComponent, i28.PagerInputComponent, i28.PagerNextButtonsComponent, i28.PagerNumericButtonsComponent, i28.PagerPageSizesComponent, i28.PagerPrevButtonsComponent, i28.PagerComponent, i28.PagerSpacerComponent, i31.CellComponent, i34.EditCommandDirective, i35.CancelCommandDirective, i36.SaveCommandDirective, i37.RemoveCommandDirective, i38.AddCommandDirective, i41.HeaderComponent, i47.StringFilterCellComponent, i48.NumericFilterCellComponent, i49.AutoCompleteFilterCellComponent, i50.BooleanFilterCellComponent, i52.FilterCellWrapperComponent, i53.DateFilterCellComponent, i25.FilterCellOperatorsComponent, i25.FilterCellOperatorsComponent, i28.CustomMessagesComponent, i28.PagerInfoComponent, i28.PagerInputComponent, i28.PagerNextButtonsComponent, i28.PagerNumericButtonsComponent, i28.PagerPageSizesComponent, i28.PagerPrevButtonsComponent, i28.PagerComponent, i28.PagerSpacerComponent, i73.FilterMenuComponent, i74.FilterMenuContainerComponent, i75.FilterMenuInputWrapperComponent, i76.StringFilterMenuInputComponent, i77.StringFilterMenuComponent, i79.NumericFilterMenuComponent, i80.NumericFilterMenuInputComponent, i81.DateFilterMenuInputComponent, i82.DateFilterMenuComponent, i84.BooleanFilterMenuComponent, i86.ColumnChooserComponent, i87.ColumnMenuChooserComponent, i88.ColumnMenuFilterComponent, i89.ColumnMenuItemComponent, i91.ColumnMenuSortComponent, i92.ColumnMenuComponent, i93.ColumnMenuLockComponent, i95.ToolBarComponent, i95.ToolbarCustomMessagesComponent, i95.ToolBarButtonComponent, i95.ToolBarButtonGroupComponent, i95.ToolBarDropDownButtonComponent, i95.ToolBarSeparatorComponent, i95.ToolBarSpacerComponent, i95.ToolBarSplitButtonComponent] });
|
150
150
|
}
|
151
151
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeListModule, decorators: [{
|
152
152
|
type: NgModule,
|