@progress/kendo-angular-grid 11.0.0-develop.99 → 11.0.1-develop.1

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 (50) hide show
  1. package/NOTICE.txt +17 -17
  2. package/column-menu/column-chooser.component.d.ts +8 -2
  3. package/column-menu/column-menu-autosize-all.component.d.ts +2 -0
  4. package/column-menu/column-menu-autosize.component.d.ts +2 -0
  5. package/column-menu/column-menu-chooser.component.d.ts +2 -0
  6. package/column-menu/column-menu-filter.component.d.ts +2 -0
  7. package/column-menu/column-menu-item.component.d.ts +7 -2
  8. package/column-menu/column-menu-lock.component.d.ts +4 -0
  9. package/column-menu/column-menu-position.component.d.ts +2 -0
  10. package/column-menu/column-menu-sort.component.d.ts +3 -0
  11. package/column-menu/column-menu-stick.component.d.ts +4 -0
  12. package/column-menu/column-menu.component.d.ts +2 -0
  13. package/column-menu/column-menu.module.d.ts +2 -1
  14. package/esm2020/column-menu/column-chooser.component.mjs +21 -13
  15. package/esm2020/column-menu/column-menu-autosize-all.component.mjs +7 -5
  16. package/esm2020/column-menu/column-menu-autosize.component.mjs +7 -5
  17. package/esm2020/column-menu/column-menu-chooser.component.mjs +5 -1
  18. package/esm2020/column-menu/column-menu-filter.component.mjs +5 -1
  19. package/esm2020/column-menu/column-menu-item.component.mjs +15 -13
  20. package/esm2020/column-menu/column-menu-lock.component.mjs +9 -1
  21. package/esm2020/column-menu/column-menu-position.component.mjs +5 -1
  22. package/esm2020/column-menu/column-menu-sort.component.mjs +8 -1
  23. package/esm2020/column-menu/column-menu-stick.component.mjs +21 -5
  24. package/esm2020/column-menu/column-menu.component.mjs +21 -14
  25. package/esm2020/column-menu/column-menu.module.mjs +4 -3
  26. package/esm2020/dragdrop/draggable-column.directive.mjs +2 -2
  27. package/esm2020/excel/excel-command.directive.mjs +6 -4
  28. package/esm2020/filtering/cell/filter-cell-operators.component.mjs +4 -0
  29. package/esm2020/filtering/menu/filter-menu.component.mjs +11 -4
  30. package/esm2020/grouping/group-header.component.mjs +17 -9
  31. package/esm2020/grouping/group-panel.component.mjs +6 -0
  32. package/esm2020/package-metadata.mjs +2 -2
  33. package/esm2020/pager/pager-next-buttons.component.mjs +7 -0
  34. package/esm2020/pager/pager-prev-buttons.component.mjs +7 -0
  35. package/esm2020/rendering/constants.mjs +1 -1
  36. package/esm2020/rendering/header/header.component.mjs +31 -25
  37. package/esm2020/rendering/table-body.component.mjs +28 -14
  38. package/fesm2015/progress-kendo-angular-grid.mjs +193 -92
  39. package/fesm2020/progress-kendo-angular-grid.mjs +193 -92
  40. package/filtering/cell/filter-cell-operators.component.d.ts +2 -0
  41. package/filtering/menu/filter-menu.component.d.ts +2 -0
  42. package/grouping/group-header.component.d.ts +3 -0
  43. package/grouping/group-panel.component.d.ts +2 -0
  44. package/package.json +18 -18
  45. package/pager/pager-next-buttons.component.d.ts +3 -0
  46. package/pager/pager-prev-buttons.component.d.ts +3 -0
  47. package/rendering/constants.d.ts +1 -1
  48. package/rendering/header/header.component.d.ts +4 -2
  49. package/rendering/table-body.component.d.ts +5 -1
  50. package/schematics/ngAdd/index.js +2 -2
@@ -8,14 +8,16 @@ import { GroupsService } from './groups.service';
8
8
  import { columnsSpan } from '../columns/column-common';
9
9
  import { getGroupRowArgs } from './utils';
10
10
  import { LocalizationService } from '@progress/kendo-angular-l10n';
11
+ import { caretAltDownIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
11
12
  import * as i0 from "@angular/core";
12
13
  import * as i1 from "./groups.service";
13
14
  import * as i2 from "./group-info.service";
14
15
  import * as i3 from "@progress/kendo-angular-l10n";
15
- import * as i4 from "@angular/common";
16
- import * as i5 from "../navigation/logical-cell.directive";
17
- import * as i6 from "../rendering/common/template-context.directive";
18
- import * as i7 from "../rendering/common/field-accessor.pipe";
16
+ import * as i4 from "@progress/kendo-angular-icons";
17
+ import * as i5 from "@angular/common";
18
+ import * as i6 from "../navigation/logical-cell.directive";
19
+ import * as i7 from "../rendering/common/template-context.directive";
20
+ import * as i8 from "../rendering/common/field-accessor.pipe";
19
21
  /**
20
22
  * @hidden
21
23
  */
@@ -29,6 +31,8 @@ export class GroupHeaderComponent {
29
31
  this.totalColumnsCount = 0;
30
32
  this.groups = [];
31
33
  this.isExpanded = false;
34
+ this.caretAltDownIcon = caretAltDownIcon;
35
+ this.caretAltRightIcon = caretAltRightIcon;
32
36
  this.groupItemClass = true;
33
37
  this.tableGroupRowClass = true;
34
38
  }
@@ -103,10 +107,12 @@ GroupHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
103
107
  <p class="k-reset">
104
108
  <ng-container *ngIf="!skipGroupDecoration">
105
109
  <a href="#" tabindex="-1" (click)="toggleGroup(item)"
106
- class="k-icon"
107
- [ngClass]="{ 'k-i-caret-alt-down': isExpanded, 'k-i-caret-alt-right': !isExpanded }" role="presentation"
110
+ role="presentation"
108
111
  [attr.title]="groupButtonTitle"
109
112
  [attr.aria-label]="groupButtonTitle">
113
+ <kendo-icon-wrapper
114
+ [name]="isExpanded ? 'caret-alt-down' : 'caret-alt-right'"
115
+ [svgIcon]="isExpanded ? caretAltDownIcon : caretAltRightIcon"></kendo-icon-wrapper>
110
116
  </a>
111
117
  <ng-container *ngIf="!groupHeaderTemplate(item)">
112
118
  {{groupTitle(item)}}: {{item.data | valueOf:"value": formatForGroup(item)}}
@@ -150,7 +156,7 @@ GroupHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
150
156
  </ng-template>
151
157
  </td>
152
158
  </ng-container>
153
- `, isInline: true, directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5.LogicalCellDirective, selector: "[kendoGridLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "colIndex", "colSpan", "rowSpan", "groupItem", "dataRowIndex", "dataItem", "detailExpandCell", "headerLabelText"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "valueOf": i7.FieldAccessorPipe } });
159
+ `, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.LogicalCellDirective, selector: "[kendoGridLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "colIndex", "colSpan", "rowSpan", "groupItem", "dataRowIndex", "dataItem", "detailExpandCell", "headerLabelText"] }, { type: i7.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "valueOf": i8.FieldAccessorPipe } });
154
160
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GroupHeaderComponent, decorators: [{
155
161
  type: Component,
156
162
  args: [{
@@ -175,10 +181,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
175
181
  <p class="k-reset">
176
182
  <ng-container *ngIf="!skipGroupDecoration">
177
183
  <a href="#" tabindex="-1" (click)="toggleGroup(item)"
178
- class="k-icon"
179
- [ngClass]="{ 'k-i-caret-alt-down': isExpanded, 'k-i-caret-alt-right': !isExpanded }" role="presentation"
184
+ role="presentation"
180
185
  [attr.title]="groupButtonTitle"
181
186
  [attr.aria-label]="groupButtonTitle">
187
+ <kendo-icon-wrapper
188
+ [name]="isExpanded ? 'caret-alt-down' : 'caret-alt-right'"
189
+ [svgIcon]="isExpanded ? caretAltDownIcon : caretAltRightIcon"></kendo-icon-wrapper>
182
190
  </a>
183
191
  <ng-container *ngIf="!groupHeaderTemplate(item)">
184
192
  {{groupTitle(item)}}: {{item.data | valueOf:"value": formatForGroup(item)}}
@@ -12,6 +12,7 @@ import { DragHintService } from '../dragdrop/drag-hint.service';
12
12
  import { DropCueService } from '../dragdrop/drop-cue.service';
13
13
  import { position, isTargetBefore } from '../dragdrop/common';
14
14
  import { tap, filter, switchMapTo, takeUntil } from 'rxjs/operators';
15
+ import { sortAscSmallIcon, sortDescSmallIcon } from '@progress/kendo-svg-icons';
15
16
  import * as i0 from "@angular/core";
16
17
  import * as i1 from "../dragdrop/drag-hint.service";
17
18
  import * as i2 from "../dragdrop/drop-cue.service";
@@ -80,6 +81,9 @@ export class GroupPanelComponent {
80
81
  getDirectionIcon(group) {
81
82
  return group.dir === 'desc' ? 'sort-desc-sm' : 'sort-asc-sm';
82
83
  }
84
+ getDirectionSvgIcon(group) {
85
+ return group.dir === 'desc' ? sortDescSmallIcon : sortAscSmallIcon;
86
+ }
83
87
  directionChange(group) {
84
88
  group.dir = group.dir ? group.dir : "asc";
85
89
  group.dir = group.dir === 'asc' ? 'desc' : 'asc';
@@ -168,6 +172,7 @@ GroupPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
168
172
  [label]="groupTitles[index]"
169
173
  [removable]="true"
170
174
  [icon]="getDirectionIcon(group)"
175
+ [svgIcon]=""
171
176
  (contentClick)="directionChange(group)"
172
177
  (remove)="remove(group)"
173
178
  >
@@ -217,6 +222,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
217
222
  [label]="groupTitles[index]"
218
223
  [removable]="true"
219
224
  [icon]="getDirectionIcon(group)"
225
+ [svgIcon]=""
220
226
  (contentClick)="directionChange(group)"
221
227
  (remove)="remove(group)"
222
228
  >
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-grid',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1673467053,
13
- version: '',
12
+ publishDate: 1674059953,
13
+ version: '11.0.1-develop.1',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -7,6 +7,7 @@ import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/
7
7
  import { PagerContextService } from "./pager-context.service";
8
8
  import { PagerElementComponent } from './pager-element.component';
9
9
  import { LocalizationService } from '@progress/kendo-angular-l10n';
10
+ import { caretAltRightIcon, caretAltToRightIcon } from '@progress/kendo-svg-icons';
10
11
  import * as i0 from "@angular/core";
11
12
  import * as i1 from "@progress/kendo-angular-l10n";
12
13
  import * as i2 from "./pager-context.service";
@@ -20,6 +21,8 @@ export class PagerNextButtonsComponent extends PagerElementComponent {
20
21
  constructor(localization, pagerContext, cd, navigationService) {
21
22
  super(localization, pagerContext, cd);
22
23
  this.navigationService = navigationService;
24
+ this.caretAltRightIcon = caretAltRightIcon;
25
+ this.caretAltToRightIcon = caretAltToRightIcon;
23
26
  }
24
27
  /**
25
28
  * @hidden
@@ -46,6 +49,7 @@ PagerNextButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
46
49
  type="button"
47
50
  [size]="size"
48
51
  icon="caret-alt-right"
52
+ [svgIcon]="caretAltRightIcon"
49
53
  fillMode="flat"
50
54
  rounded="none"
51
55
  class="k-pager-nav"
@@ -60,6 +64,7 @@ PagerNextButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
60
64
  type="button"
61
65
  [size]="size"
62
66
  icon="caret-alt-to-right"
67
+ [svgIcon]="caretAltToRightIcon"
63
68
  fillMode="flat"
64
69
  rounded="none"
65
70
  class="k-pager-nav k-pager-last"
@@ -81,6 +86,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
81
86
  type="button"
82
87
  [size]="size"
83
88
  icon="caret-alt-right"
89
+ [svgIcon]="caretAltRightIcon"
84
90
  fillMode="flat"
85
91
  rounded="none"
86
92
  class="k-pager-nav"
@@ -95,6 +101,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
95
101
  type="button"
96
102
  [size]="size"
97
103
  icon="caret-alt-to-right"
104
+ [svgIcon]="caretAltToRightIcon"
98
105
  fillMode="flat"
99
106
  rounded="none"
100
107
  class="k-pager-nav k-pager-last"
@@ -7,6 +7,7 @@ import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/
7
7
  import { PagerContextService } from "./pager-context.service";
8
8
  import { PagerElementComponent } from './pager-element.component';
9
9
  import { LocalizationService } from '@progress/kendo-angular-l10n';
10
+ import { caretAltLeftIcon, caretAltToLeftIcon } from '@progress/kendo-svg-icons';
10
11
  import * as i0 from "@angular/core";
11
12
  import * as i1 from "@progress/kendo-angular-l10n";
12
13
  import * as i2 from "./pager-context.service";
@@ -20,6 +21,8 @@ export class PagerPrevButtonsComponent extends PagerElementComponent {
20
21
  constructor(localization, pagerContext, cd, navigationService) {
21
22
  super(localization, pagerContext, cd);
22
23
  this.navigationService = navigationService;
24
+ this.caretAltLeftIcon = caretAltLeftIcon;
25
+ this.caretAltToLeftIcon = caretAltToLeftIcon;
23
26
  }
24
27
  /**
25
28
  * @hidden
@@ -49,6 +52,7 @@ PagerPrevButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
49
52
  (click)="currentPage !== 1 ? changePage(0) : false"
50
53
  role="button"
51
54
  icon="caret-alt-to-left"
55
+ [svgIcon]="caretAltToLeftIcon"
52
56
  class="k-pager-nav k-pager-first"
53
57
  [disabled]="disabled"
54
58
  fillMode="flat"
@@ -62,6 +66,7 @@ PagerPrevButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
62
66
  class="k-pager-nav"
63
67
  [disabled]="disabled"
64
68
  icon="caret-alt-left"
69
+ [svgIcon]="caretAltLeftIcon"
65
70
  fillMode="flat"
66
71
  rounded="none"
67
72
  [size]="size"
@@ -85,6 +90,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
85
90
  (click)="currentPage !== 1 ? changePage(0) : false"
86
91
  role="button"
87
92
  icon="caret-alt-to-left"
93
+ [svgIcon]="caretAltToLeftIcon"
88
94
  class="k-pager-nav k-pager-first"
89
95
  [disabled]="disabled"
90
96
  fillMode="flat"
@@ -98,6 +104,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
98
104
  class="k-pager-nav"
99
105
  [disabled]="disabled"
100
106
  icon="caret-alt-left"
107
+ [svgIcon]="caretAltLeftIcon"
101
108
  fillMode="flat"
102
109
  rounded="none"
103
110
  [size]="size"
@@ -13,7 +13,7 @@ export const NON_DATA_ROW_CLASSES = 'k-grouping-row k-group-footer k-detail-row
13
13
  /**
14
14
  * @hidden
15
15
  */
16
- export const IGNORE_TARGET_CLASSSES = 'k-icon';
16
+ export const IGNORE_TARGET_CLASSSES = 'k-icon k-svg-icon';
17
17
  /**
18
18
  * @hidden
19
19
  */
@@ -28,6 +28,7 @@ import { hasItems } from '../../column-menu/utils';
28
28
  import { closestInScope, isFocusable } from '../common/dom-queries';
29
29
  import { FilterMenuComponent } from '../../filtering/menu/filter-menu.component';
30
30
  import { ColumnMenuComponent } from '../../column-menu/column-menu.component';
31
+ import { sortAscSmallIcon, sortDescSmallIcon } from '@progress/kendo-svg-icons';
31
32
  import * as i0 from "@angular/core";
32
33
  import * as i1 from "../../common/single-popup.service";
33
34
  import * as i2 from "../../dragdrop/drag-hint.service";
@@ -39,17 +40,18 @@ import * as i7 from "@progress/kendo-angular-l10n";
39
40
  import * as i8 from "./../../common/column-info.service";
40
41
  import * as i9 from "../../filtering/menu/filter-menu.component";
41
42
  import * as i10 from "../../column-menu/column-menu.component";
42
- import * as i11 from "../../filtering/filter-row.component";
43
- import * as i12 from "@angular/common";
44
- import * as i13 from "../../navigation/logical-row.directive";
45
- import * as i14 from "../../navigation/logical-cell.directive";
46
- import * as i15 from "../../dragdrop/drop-target.directive";
47
- import * as i16 from "@progress/kendo-angular-common";
48
- import * as i17 from "../../dragdrop/draggable-column.directive";
49
- import * as i18 from "../common/template-context.directive";
50
- import * as i19 from "../../selection/selectall-checkbox.directive";
51
- import * as i20 from "../../navigation/focusable.directive";
52
- import * as i21 from "../../column-resizing/column-handle.directive";
43
+ import * as i11 from "@progress/kendo-angular-icons";
44
+ import * as i12 from "../../filtering/filter-row.component";
45
+ import * as i13 from "@angular/common";
46
+ import * as i14 from "../../navigation/logical-row.directive";
47
+ import * as i15 from "../../navigation/logical-cell.directive";
48
+ import * as i16 from "../../dragdrop/drop-target.directive";
49
+ import * as i17 from "@progress/kendo-angular-common";
50
+ import * as i18 from "../../dragdrop/draggable-column.directive";
51
+ import * as i19 from "../common/template-context.directive";
52
+ import * as i20 from "../../selection/selectall-checkbox.directive";
53
+ import * as i21 from "../../navigation/focusable.directive";
54
+ import * as i22 from "../../column-resizing/column-handle.directive";
53
55
  const mergeObjects = (...args) => Object.assign.apply(null, [{}].concat(args));
54
56
  const directions = initialDirection => initialDirection === "asc" ? ["asc", "desc"] : ["desc", "asc"];
55
57
  /**
@@ -99,6 +101,8 @@ export class HeaderComponent {
99
101
  this.sortedFields = {};
100
102
  this.hostClass = true;
101
103
  this.dropTargets = new QueryList();
104
+ this.sortAscSmallIcon = sortAscSmallIcon;
105
+ this.sortDescSmallIcon = sortDescSmallIcon;
102
106
  this.subscription = new Subscription();
103
107
  }
104
108
  get headerClass() {
@@ -167,14 +171,6 @@ export class HeaderComponent {
167
171
  .findIndex(x => x.field === field)
168
172
  + 1;
169
173
  }
170
- sortIcon(field) {
171
- const state = this.sortDescriptor(field);
172
- return {
173
- 'k-icon': isPresent(state.dir),
174
- 'k-i-sort-desc-small': state.dir === "desc",
175
- 'k-i-sort-asc-small': state.dir === "asc"
176
- };
177
- }
178
174
  sortState(column) {
179
175
  if (!this.isSortable(column)) {
180
176
  return;
@@ -332,12 +328,12 @@ export class HeaderComponent {
332
328
  isColumnGroupComponent(column) {
333
329
  return isColumnGroupComponent(column);
334
330
  }
335
- get columnLevels() {
336
- return new Array((this.totalColumnLevels || 0) + 1);
337
- }
338
331
  sortDescriptor(field) {
339
332
  return this.sort.find(item => item.field === field) || { field };
340
333
  }
334
+ get columnLevels() {
335
+ return new Array((this.totalColumnLevels || 0) + 1);
336
+ }
341
337
  get leafColumns() {
342
338
  return this._leafColumns;
343
339
  }
@@ -527,7 +523,12 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
527
523
  <span class="k-column-title">{{column.displayTitle}}</span>
528
524
  </ng-container>
529
525
  <span class="k-sort-icon">
530
- <span role="note" [attr.aria-label]="sortableLabel" [ngClass]="sortIcon(getColumnComponent(column).field)"></span>
526
+ <kendo-icon-wrapper
527
+ *ngIf="sortDescriptor(getColumnComponent(column).field).dir"
528
+ role="note" [attr.aria-label]="sortableLabel"
529
+ name="sort-{{sortDescriptor(getColumnComponent(column).field).dir}}-small"
530
+ [svgIcon]="sortDescriptor(getColumnComponent(column).field).dir === 'asc' ? sortAscSmallIcon : sortDescSmallIcon"
531
+ ></kendo-icon-wrapper>
531
532
  </span>
532
533
  <span *ngIf="showSortNumbering(getColumnComponent(column))" class="k-sort-order">{{sortOrder(getColumnComponent(column).field)}}</span>
533
534
  </span>
@@ -642,7 +643,7 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
642
643
  [logicalSlaveCellsCount]="unlockedColumnsCount"
643
644
  ></tr>
644
645
  </ng-container>
645
- `, isInline: true, components: [{ type: i9.FilterMenuComponent, selector: "kendo-grid-filter-menu", inputs: ["column", "filter", "tabIndex"] }, { type: i10.ColumnMenuComponent, selector: "kendo-grid-column-menu", inputs: ["standalone", "column", "settings", "sort", "filter", "sortable", "columnMenuTemplate", "tabIndex"] }, { type: i11.FilterRowComponent, selector: "[kendoGridFilterRow]", inputs: ["columns", "filter", "groups", "detailTemplate", "logicalRowIndex", "lockedColumnsCount"] }], directives: [{ type: i12.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i13.LogicalRowDirective, selector: "[kendoGridLogicalRow]", inputs: ["logicalRowIndex", "logicalSlaveRow", "logicalCellsCount", "logicalSlaveCellsCount", "dataRowIndex", "dataItem"] }, { type: i12.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i14.LogicalCellDirective, selector: "[kendoGridLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "colIndex", "colSpan", "rowSpan", "groupItem", "dataRowIndex", "dataItem", "detailExpandCell", "headerLabelText"] }, { type: i15.DropTargetDirective, selector: "[kendoDropTarget]", inputs: ["context"], outputs: ["enter", "leave", "drop"] }, { type: i16.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i17.DraggableColumnDirective, selector: "[kendoDraggableColumn]", inputs: ["context", "enableDrag"], outputs: ["drag"] }, { type: i12.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i12.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i18.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i19.SelectAllCheckboxDirective, selector: "[kendoGridSelectAllCheckbox]", inputs: ["state"], outputs: ["selectAllChange"] }, { type: i20.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { type: i21.ColumnHandleDirective, selector: "[kendoGridColumnHandle]", inputs: ["columns", "column"] }] });
646
+ `, isInline: true, components: [{ type: i9.FilterMenuComponent, selector: "kendo-grid-filter-menu", inputs: ["column", "filter", "tabIndex"] }, { type: i10.ColumnMenuComponent, selector: "kendo-grid-column-menu", inputs: ["standalone", "column", "settings", "sort", "filter", "sortable", "columnMenuTemplate", "tabIndex"] }, { type: i11.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i12.FilterRowComponent, selector: "[kendoGridFilterRow]", inputs: ["columns", "filter", "groups", "detailTemplate", "logicalRowIndex", "lockedColumnsCount"] }], directives: [{ type: i13.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i14.LogicalRowDirective, selector: "[kendoGridLogicalRow]", inputs: ["logicalRowIndex", "logicalSlaveRow", "logicalCellsCount", "logicalSlaveCellsCount", "dataRowIndex", "dataItem"] }, { type: i13.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i15.LogicalCellDirective, selector: "[kendoGridLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "colIndex", "colSpan", "rowSpan", "groupItem", "dataRowIndex", "dataItem", "detailExpandCell", "headerLabelText"] }, { type: i16.DropTargetDirective, selector: "[kendoDropTarget]", inputs: ["context"], outputs: ["enter", "leave", "drop"] }, { type: i17.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i18.DraggableColumnDirective, selector: "[kendoDraggableColumn]", inputs: ["context", "enableDrag"], outputs: ["drag"] }, { type: i13.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i13.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i19.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i20.SelectAllCheckboxDirective, selector: "[kendoGridSelectAllCheckbox]", inputs: ["state"], outputs: ["selectAllChange"] }, { type: i21.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { type: i22.ColumnHandleDirective, selector: "[kendoGridColumnHandle]", inputs: ["columns", "column"] }] });
646
647
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HeaderComponent, decorators: [{
647
648
  type: Component,
648
649
  args: [{
@@ -751,7 +752,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
751
752
  <span class="k-column-title">{{column.displayTitle}}</span>
752
753
  </ng-container>
753
754
  <span class="k-sort-icon">
754
- <span role="note" [attr.aria-label]="sortableLabel" [ngClass]="sortIcon(getColumnComponent(column).field)"></span>
755
+ <kendo-icon-wrapper
756
+ *ngIf="sortDescriptor(getColumnComponent(column).field).dir"
757
+ role="note" [attr.aria-label]="sortableLabel"
758
+ name="sort-{{sortDescriptor(getColumnComponent(column).field).dir}}-small"
759
+ [svgIcon]="sortDescriptor(getColumnComponent(column).field).dir === 'asc' ? sortAscSmallIcon : sortDescSmallIcon"
760
+ ></kendo-icon-wrapper>
755
761
  </span>
756
762
  <span *ngIf="showSortNumbering(getColumnComponent(column))" class="k-sort-order">{{sortOrder(getColumnComponent(column).field)}}</span>
757
763
  </span>
@@ -23,6 +23,7 @@ import { defaultTrackBy } from '../common/default-track-by';
23
23
  import { DetailsService } from './details/details.service';
24
24
  import { NON_DATA_CELL_CLASSES, NON_DATA_ROW_CLASSES, IGNORE_TARGET_CLASSSES, IGNORE_CONTAINER_CLASSES } from './constants';
25
25
  import { CellSelectionService } from '../selection/cell-selection.service';
26
+ import { minusIcon, plusIcon } from '@progress/kendo-svg-icons';
26
27
  import * as i0 from "@angular/core";
27
28
  import * as i1 from "./details/details.service";
28
29
  import * as i2 from "../grouping/groups.service";
@@ -36,11 +37,12 @@ import * as i9 from "../common/column-info.service";
36
37
  import * as i10 from "../navigation/navigation.service";
37
38
  import * as i11 from "./cell.component";
38
39
  import * as i12 from "../grouping/group-header.component";
39
- import * as i13 from "@progress/kendo-angular-common";
40
- import * as i14 from "@angular/common";
41
- import * as i15 from "../navigation/logical-row.directive";
42
- import * as i16 from "../navigation/logical-cell.directive";
43
- import * as i17 from "./common/template-context.directive";
40
+ import * as i13 from "@progress/kendo-angular-icons";
41
+ import * as i14 from "@progress/kendo-angular-common";
42
+ import * as i15 from "@angular/common";
43
+ import * as i16 from "../navigation/logical-row.directive";
44
+ import * as i17 from "../navigation/logical-cell.directive";
45
+ import * as i18 from "./common/template-context.directive";
44
46
  const columnCellIndex = (cell, cells) => {
45
47
  let cellIndex = 0;
46
48
  for (let idx = 0; idx < cells.length; idx++) {
@@ -81,6 +83,8 @@ export class TableBodyComponent {
81
83
  this.totalColumnsCount = 0;
82
84
  this.trackBy = defaultTrackBy;
83
85
  this.hostClass = true;
86
+ this.minusIcon = minusIcon;
87
+ this.plusIcon = plusIcon;
84
88
  this.rowClass = () => null;
85
89
  this.cellKeydownSubscription = this.navigationService.cellKeydown.subscribe((args) => this.cellKeydownHandler(args));
86
90
  this.trackByWrapper = this.trackByWrapper.bind(this);
@@ -104,9 +108,13 @@ export class TableBodyComponent {
104
108
  isExpanded(viewItem) {
105
109
  return this.detailsService.isExpanded(viewItem.index, viewItem.data);
106
110
  }
107
- detailButtonStyles(viewItem) {
111
+ detailButtonIconName(viewItem) {
108
112
  const expanded = this.isExpanded(viewItem);
109
- return expanded ? 'k-i-minus' : 'k-i-plus';
113
+ return expanded ? 'minus' : 'plus';
114
+ }
115
+ detailButtonSvgIcon(viewItem) {
116
+ const expanded = this.isExpanded(viewItem);
117
+ return expanded ? this.minusIcon : this.plusIcon;
110
118
  }
111
119
  detailButtonTitle(viewItem) {
112
120
  const messageKey = this.isExpanded(viewItem) ? 'detailCollapse' : 'detailExpand';
@@ -482,12 +490,15 @@ TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
482
490
  [detailExpandCell]="true"
483
491
  aria-selected="false"
484
492
  role="gridcell">
485
- <a class="k-icon"
493
+ <a
486
494
  *ngIf="detailTemplate.showIf(item.data, $any(item).index)"
487
- [ngClass]="detailButtonStyles(item)"
488
495
  [attr.title]="detailButtonTitle(item)"
489
496
  [attr.aria-label]="detailButtonTitle(item)"
490
- href="#" tabindex="-1" (click)="toggleRow($any(item).index, item.data)"></a>
497
+ href="#" tabindex="-1" (click)="toggleRow($any(item).index, item.data)">
498
+ <kendo-icon-wrapper
499
+ [name]="detailButtonIconName(item)"
500
+ [svgIcon]="detailButtonSvgIcon(item)"></kendo-icon-wrapper>
501
+ </a>
491
502
  </td>
492
503
  <td
493
504
  kendoGridCell
@@ -598,7 +609,7 @@ TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
598
609
  </tr>
599
610
  </ng-container>
600
611
  <kendo-resize-sensor *ngIf="rowSticky" (resize)="resizeHandler()"></kendo-resize-sensor>
601
- `, isInline: true, components: [{ type: i11.CellComponent, selector: "[kendoGridCell]", inputs: ["column", "columnIndex", "isNew", "isLoading", "isVirtual", "loadingTemplate", "rowIndex", "dataItem"] }, { type: i12.GroupHeaderComponent, selector: "[kendoGridGroupHeader]", inputs: ["rowIndex", "logicalRowIndex", "item", "skipGroupDecoration", "hasDetails", "totalColumnsCount", "hasGroupHeaderColumn", "groupHeaderColumns", "columns", "groups"] }, { type: i13.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i14.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i15.LogicalRowDirective, selector: "[kendoGridLogicalRow]", inputs: ["logicalRowIndex", "logicalSlaveRow", "logicalCellsCount", "logicalSlaveCellsCount", "dataRowIndex", "dataItem"] }, { type: i14.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i16.LogicalCellDirective, selector: "[kendoGridLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "colIndex", "colSpan", "rowSpan", "groupItem", "dataRowIndex", "dataItem", "detailExpandCell", "headerLabelText"] }, { type: i14.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i14.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i17.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i14.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
612
+ `, isInline: true, components: [{ type: i11.CellComponent, selector: "[kendoGridCell]", inputs: ["column", "columnIndex", "isNew", "isLoading", "isVirtual", "loadingTemplate", "rowIndex", "dataItem"] }, { type: i12.GroupHeaderComponent, selector: "[kendoGridGroupHeader]", inputs: ["rowIndex", "logicalRowIndex", "item", "skipGroupDecoration", "hasDetails", "totalColumnsCount", "hasGroupHeaderColumn", "groupHeaderColumns", "columns", "groups"] }, { type: i13.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i14.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i15.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i16.LogicalRowDirective, selector: "[kendoGridLogicalRow]", inputs: ["logicalRowIndex", "logicalSlaveRow", "logicalCellsCount", "logicalSlaveCellsCount", "dataRowIndex", "dataItem"] }, { type: i15.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i17.LogicalCellDirective, selector: "[kendoGridLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "colIndex", "colSpan", "rowSpan", "groupItem", "dataRowIndex", "dataItem", "detailExpandCell", "headerLabelText"] }, { type: i15.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i15.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i18.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i15.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
602
613
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableBodyComponent, decorators: [{
603
614
  type: Component,
604
615
  args: [{
@@ -704,12 +715,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
704
715
  [detailExpandCell]="true"
705
716
  aria-selected="false"
706
717
  role="gridcell">
707
- <a class="k-icon"
718
+ <a
708
719
  *ngIf="detailTemplate.showIf(item.data, $any(item).index)"
709
- [ngClass]="detailButtonStyles(item)"
710
720
  [attr.title]="detailButtonTitle(item)"
711
721
  [attr.aria-label]="detailButtonTitle(item)"
712
- href="#" tabindex="-1" (click)="toggleRow($any(item).index, item.data)"></a>
722
+ href="#" tabindex="-1" (click)="toggleRow($any(item).index, item.data)">
723
+ <kendo-icon-wrapper
724
+ [name]="detailButtonIconName(item)"
725
+ [svgIcon]="detailButtonSvgIcon(item)"></kendo-icon-wrapper>
726
+ </a>
713
727
  </td>
714
728
  <td
715
729
  kendoGridCell