@progress/kendo-angular-grid 17.0.0-develop.37 → 17.0.0-develop.39

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 (29) hide show
  1. package/column-menu/column-chooser-item-checked.directive.d.ts +5 -4
  2. package/column-menu/column-list.component.d.ts +1 -1
  3. package/esm2022/column-menu/column-chooser-item-checked.directive.mjs +12 -9
  4. package/esm2022/column-menu/column-list.component.mjs +59 -66
  5. package/esm2022/filtering/boolean-filter.component.mjs +3 -12
  6. package/esm2022/filtering/cell/string-filter-cell.component.mjs +4 -2
  7. package/esm2022/filtering/filter-row.component.mjs +4 -8
  8. package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +8 -10
  9. package/esm2022/filtering/menu/filter-menu.module.mjs +1 -1
  10. package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +11 -11
  11. package/esm2022/grid.module.mjs +1 -1
  12. package/esm2022/grouping/group-header.component.mjs +2 -2
  13. package/esm2022/navigation/default-focusable-element.mjs +2 -1
  14. package/esm2022/package-metadata.mjs +2 -2
  15. package/esm2022/rendering/cell.component.mjs +39 -59
  16. package/esm2022/rendering/footer/footer.component.mjs +2 -2
  17. package/esm2022/rendering/header/header.component.mjs +17 -20
  18. package/esm2022/rendering/header/header.module.mjs +1 -1
  19. package/esm2022/rendering/list.component.mjs +4 -4
  20. package/esm2022/rendering/table-body.component.mjs +10 -12
  21. package/esm2022/selection/selectall-checkbox.directive.mjs +19 -21
  22. package/esm2022/selection/selection-checkbox.directive.mjs +14 -10
  23. package/fesm2022/progress-kendo-angular-grid.mjs +202 -248
  24. package/filtering/boolean-filter.component.d.ts +0 -4
  25. package/filtering/menu/boolean-filter-menu.component.d.ts +2 -1
  26. package/package.json +18 -18
  27. package/schematics/ngAdd/index.js +4 -4
  28. package/selection/selectall-checkbox.directive.d.ts +5 -6
  29. package/selection/selection-checkbox.directive.d.ts +4 -3
@@ -2,15 +2,17 @@
2
2
  * Copyright © 2024 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
- import { Directive, HostBinding, ElementRef, Input, Renderer2, NgZone } from '@angular/core';
5
+ import { Directive, ElementRef, Input, Renderer2, NgZone, Host, Optional } from '@angular/core';
6
6
  import { SelectionService } from './selection.service';
7
7
  import { Keys } from '@progress/kendo-angular-common';
8
8
  import { CellSelectionAggregateService } from '../aggregates/selection-aggregate.service';
9
9
  import { CellSelectionService } from './cell-selection.service';
10
+ import { CheckBoxComponent } from '@progress/kendo-angular-inputs';
10
11
  import * as i0 from "@angular/core";
11
12
  import * as i1 from "./selection.service";
12
13
  import * as i2 from "./cell-selection.service";
13
14
  import * as i3 from "../aggregates/selection-aggregate.service";
15
+ import * as i4 from "@progress/kendo-angular-inputs";
14
16
  /**
15
17
  * Represents the row-selection checkbox of the Grid. The directive expects the
16
18
  * index of the current row as an input parameter. Inside the [`CellTemplateDirective`](slug:api_grid_celltemplatedirective), apply the
@@ -36,23 +38,24 @@ export class SelectionCheckboxDirective {
36
38
  el;
37
39
  renderer;
38
40
  ngZone;
41
+ checkbox;
39
42
  /**
40
43
  * The current index of the `dataItem` that will be selected.
41
44
  */
42
45
  itemIndex;
43
- type = 'checkbox';
44
46
  destroyClick;
45
47
  destroyKeyDown;
46
48
  ngAfterContentChecked() {
47
49
  this.setCheckedState();
48
50
  }
49
- constructor(selectionService, cellSelectionService, aggregateService, el, renderer, ngZone) {
51
+ constructor(selectionService, cellSelectionService, aggregateService, el, renderer, ngZone, checkbox) {
50
52
  this.selectionService = selectionService;
51
53
  this.cellSelectionService = cellSelectionService;
52
54
  this.aggregateService = aggregateService;
53
55
  this.el = el;
54
56
  this.renderer = renderer;
55
57
  this.ngZone = ngZone;
58
+ this.checkbox = checkbox;
56
59
  this.ngZone.runOutsideAngular(() => {
57
60
  this.destroyClick = this.renderer.listen(this.el.nativeElement, 'click', this.onClick.bind(this));
58
61
  this.destroyKeyDown = this.renderer.listen(this.el.nativeElement, 'keydown', this.onKeyDown.bind(this));
@@ -102,10 +105,10 @@ export class SelectionCheckboxDirective {
102
105
  */
103
106
  setCheckedState() {
104
107
  const isSelected = this.selectionService.nonSelectableRows.has(this.itemIndex) ? false : this.selectionService.isSelected(this.itemIndex);
105
- this.renderer.setProperty(this.el.nativeElement, 'checked', isSelected);
108
+ this.checkbox.checkedState = isSelected;
106
109
  }
107
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectionCheckboxDirective, deps: [{ token: i1.SelectionService }, { token: i2.CellSelectionService }, { token: i3.CellSelectionAggregateService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
108
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SelectionCheckboxDirective, isStandalone: true, selector: "[kendoGridSelectionCheckbox]", inputs: { itemIndex: ["kendoGridSelectionCheckbox", "itemIndex"] }, host: { properties: { "attr.type": "this.type" } }, ngImport: i0 });
110
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectionCheckboxDirective, deps: [{ token: i1.SelectionService }, { token: i2.CellSelectionService }, { token: i3.CellSelectionAggregateService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i4.CheckBoxComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
111
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SelectionCheckboxDirective, isStandalone: true, selector: "[kendoGridSelectionCheckbox]", inputs: { itemIndex: ["kendoGridSelectionCheckbox", "itemIndex"] }, ngImport: i0 });
109
112
  }
110
113
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectionCheckboxDirective, decorators: [{
111
114
  type: Directive,
@@ -113,10 +116,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
113
116
  selector: '[kendoGridSelectionCheckbox]',
114
117
  standalone: true
115
118
  }]
116
- }], ctorParameters: function () { return [{ type: i1.SelectionService }, { type: i2.CellSelectionService }, { type: i3.CellSelectionAggregateService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { itemIndex: [{
119
+ }], ctorParameters: function () { return [{ type: i1.SelectionService }, { type: i2.CellSelectionService }, { type: i3.CellSelectionAggregateService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i4.CheckBoxComponent, decorators: [{
120
+ type: Host
121
+ }, {
122
+ type: Optional
123
+ }] }]; }, propDecorators: { itemIndex: [{
117
124
  type: Input,
118
125
  args: ['kendoGridSelectionCheckbox']
119
- }], type: [{
120
- type: HostBinding,
121
- args: ['attr.type']
122
126
  }] } });