@progress/kendo-angular-grid 11.0.0-develop.101 → 11.0.0-develop.102

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 (48) hide show
  1. package/column-menu/column-chooser.component.d.ts +8 -2
  2. package/column-menu/column-menu-autosize-all.component.d.ts +2 -0
  3. package/column-menu/column-menu-autosize.component.d.ts +2 -0
  4. package/column-menu/column-menu-chooser.component.d.ts +2 -0
  5. package/column-menu/column-menu-filter.component.d.ts +2 -0
  6. package/column-menu/column-menu-item.component.d.ts +7 -2
  7. package/column-menu/column-menu-lock.component.d.ts +4 -0
  8. package/column-menu/column-menu-position.component.d.ts +2 -0
  9. package/column-menu/column-menu-sort.component.d.ts +3 -0
  10. package/column-menu/column-menu-stick.component.d.ts +4 -0
  11. package/column-menu/column-menu.component.d.ts +2 -0
  12. package/column-menu/column-menu.module.d.ts +2 -1
  13. package/esm2020/column-menu/column-chooser.component.mjs +21 -13
  14. package/esm2020/column-menu/column-menu-autosize-all.component.mjs +7 -5
  15. package/esm2020/column-menu/column-menu-autosize.component.mjs +7 -5
  16. package/esm2020/column-menu/column-menu-chooser.component.mjs +5 -1
  17. package/esm2020/column-menu/column-menu-filter.component.mjs +5 -1
  18. package/esm2020/column-menu/column-menu-item.component.mjs +15 -13
  19. package/esm2020/column-menu/column-menu-lock.component.mjs +9 -1
  20. package/esm2020/column-menu/column-menu-position.component.mjs +5 -1
  21. package/esm2020/column-menu/column-menu-sort.component.mjs +8 -1
  22. package/esm2020/column-menu/column-menu-stick.component.mjs +21 -5
  23. package/esm2020/column-menu/column-menu.component.mjs +21 -14
  24. package/esm2020/column-menu/column-menu.module.mjs +4 -3
  25. package/esm2020/dragdrop/draggable-column.directive.mjs +2 -2
  26. package/esm2020/excel/excel-command.directive.mjs +6 -4
  27. package/esm2020/filtering/cell/filter-cell-operators.component.mjs +4 -0
  28. package/esm2020/filtering/menu/filter-menu.component.mjs +11 -4
  29. package/esm2020/grouping/group-header.component.mjs +17 -9
  30. package/esm2020/grouping/group-panel.component.mjs +6 -0
  31. package/esm2020/package-metadata.mjs +1 -1
  32. package/esm2020/pager/pager-next-buttons.component.mjs +7 -0
  33. package/esm2020/pager/pager-prev-buttons.component.mjs +7 -0
  34. package/esm2020/rendering/constants.mjs +1 -1
  35. package/esm2020/rendering/header/header.component.mjs +31 -25
  36. package/esm2020/rendering/table-body.component.mjs +28 -14
  37. package/fesm2015/progress-kendo-angular-grid.mjs +192 -91
  38. package/fesm2020/progress-kendo-angular-grid.mjs +192 -91
  39. package/filtering/cell/filter-cell-operators.component.d.ts +2 -0
  40. package/filtering/menu/filter-menu.component.d.ts +2 -0
  41. package/grouping/group-header.component.d.ts +3 -0
  42. package/grouping/group-panel.component.d.ts +2 -0
  43. package/package.json +14 -14
  44. package/pager/pager-next-buttons.component.d.ts +3 -0
  45. package/pager/pager-prev-buttons.component.d.ts +3 -0
  46. package/rendering/constants.d.ts +1 -1
  47. package/rendering/header/header.component.d.ts +4 -2
  48. package/rendering/table-body.component.d.ts +5 -1
@@ -6,6 +6,8 @@ import { NgZone, Renderer2, OnDestroy, ChangeDetectorRef } from '@angular/core';
6
6
  import { PopupService } from '@progress/kendo-angular-popup';
7
7
  import { ColumnInfoService } from '../common/column-info.service';
8
8
  import { LocalizationService } from "@progress/kendo-angular-l10n";
9
+ import { SVGIcon } from '@progress/kendo-svg-icons';
10
+ import { Button } from '@progress/kendo-angular-buttons';
9
11
  import * as i0 from "@angular/core";
10
12
  /**
11
13
  * Represents the component for selecting columns in the Grid. To enable the user to show or hide columns,
@@ -27,7 +29,7 @@ import * as i0 from "@angular/core";
27
29
  * })
28
30
  *
29
31
  * class AppComponent {
30
- * public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
32
+ * public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
31
33
  * }
32
34
  * ```
33
35
  */
@@ -38,6 +40,10 @@ export declare class ColumnChooserComponent implements OnDestroy {
38
40
  private ngZone;
39
41
  private renderer;
40
42
  private changeDetector;
43
+ /**
44
+ * @hidden
45
+ */
46
+ columnsIcon: SVGIcon;
41
47
  /**
42
48
  * Specifies if the changes in the visibility of the column will be immediately applied.
43
49
  */
@@ -54,7 +60,7 @@ export declare class ColumnChooserComponent implements OnDestroy {
54
60
  /**
55
61
  * @hidden
56
62
  */
57
- toggle(anchor: any, template: any): void;
63
+ toggle(anchor: Button, template: any): void;
58
64
  /**
59
65
  * @hidden
60
66
  */
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { OnInit } from '@angular/core';
6
6
  import { LocalizationService } from "@progress/kendo-angular-l10n";
7
+ import { SVGIcon } from '@progress/kendo-svg-icons';
7
8
  import { ContextService } from '../common/provider.service';
8
9
  import { ColumnMenuItemBase } from './column-menu-item-base';
9
10
  import * as i0 from "@angular/core";
@@ -43,6 +44,7 @@ import * as i0 from "@angular/core";
43
44
  export declare class ColumnMenuAutoSizeAllColumnsComponent extends ColumnMenuItemBase implements OnInit {
44
45
  localization: LocalizationService;
45
46
  ctx: ContextService;
47
+ displayInlineBlockIcon: SVGIcon;
46
48
  constructor(localization: LocalizationService, ctx: ContextService);
47
49
  ngOnInit(): void;
48
50
  autoSizeAllColumns(): void;
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { OnInit } from '@angular/core';
6
6
  import { LocalizationService } from "@progress/kendo-angular-l10n";
7
+ import { SVGIcon } from '@progress/kendo-svg-icons';
7
8
  import { ContextService } from '../common/provider.service';
8
9
  import { ColumnMenuItemBase } from './column-menu-item-base';
9
10
  import * as i0 from "@angular/core";
@@ -47,6 +48,7 @@ export declare class ColumnMenuAutoSizeColumnComponent extends ColumnMenuItemBas
47
48
  * The Grid column instance which will be resized through the auto size column option.
48
49
  */
49
50
  column: any;
51
+ maxWidthIcon: SVGIcon;
50
52
  constructor(localization: LocalizationService, ctx: ContextService);
51
53
  ngOnInit(): void;
52
54
  autoSizeColumn(): void;
@@ -6,6 +6,7 @@ import { EventEmitter, ChangeDetectorRef, ElementRef } from '@angular/core';
6
6
  import { ColumnInfoService } from '../common/column-info.service';
7
7
  import { LocalizationService } from "@progress/kendo-angular-l10n";
8
8
  import { ColumnMenuItemBase } from './column-menu-item-base';
9
+ import { SVGIcon } from '@progress/kendo-svg-icons';
9
10
  import * as i0 from "@angular/core";
10
11
  /**
11
12
  * Represents the component for selecting columns in the Grid that can be placed
@@ -63,6 +64,7 @@ export declare class ColumnMenuChooserComponent extends ColumnMenuItemBase {
63
64
  */
64
65
  actionsClass: string;
65
66
  get columns(): any;
67
+ columnsIcon: SVGIcon;
66
68
  constructor(localization: LocalizationService, columnInfoService: ColumnInfoService, changeDetector: ChangeDetectorRef, hostElement: ElementRef);
67
69
  /**
68
70
  * @hidden
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { EventEmitter, ElementRef } from '@angular/core';
6
6
  import { LocalizationService } from "@progress/kendo-angular-l10n";
7
+ import { SVGIcon } from '@progress/kendo-svg-icons';
7
8
  import { ColumnMenuItemBase } from './column-menu-item-base';
8
9
  import * as i0 from "@angular/core";
9
10
  /**
@@ -59,6 +60,7 @@ export declare class ColumnMenuFilterComponent extends ColumnMenuItemBase {
59
60
  * @hidden
60
61
  */
61
62
  actionsClass: string;
63
+ filterIcon: SVGIcon;
62
64
  constructor(localization: LocalizationService, hostElement: ElementRef);
63
65
  /**
64
66
  * @hidden
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { EventEmitter, OnChanges } from '@angular/core';
6
6
  import { ColumnMenuItemContentTemplateDirective } from './column-menu-item-content-template.directive';
7
+ import { SVGIcon } from '@progress/kendo-svg-icons';
7
8
  import * as i0 from "@angular/core";
8
9
  /**
9
10
  * Represents an item that can be placed inside a
@@ -51,6 +52,11 @@ export declare class ColumnMenuItemComponent implements OnChanges {
51
52
  * that will be rendered for the item.
52
53
  */
53
54
  icon: string;
55
+ /**
56
+ * Specifies the name of the [SVG icon]({% slug svgicon_list %})
57
+ * that will be rendered for the item.
58
+ */
59
+ svgIcon: SVGIcon;
54
60
  /**
55
61
  * Specifies the item text.
56
62
  */
@@ -68,7 +74,6 @@ export declare class ColumnMenuItemComponent implements OnChanges {
68
74
  */
69
75
  expanded: boolean;
70
76
  contentTemplate: ColumnMenuItemContentTemplateDirective;
71
- get iconClass(): string;
72
77
  contentState: string;
73
78
  ngOnChanges(changes: any): void;
74
79
  /**
@@ -77,5 +82,5 @@ export declare class ColumnMenuItemComponent implements OnChanges {
77
82
  onClick(e: any): void;
78
83
  private updateContentState;
79
84
  static ɵfac: i0.ɵɵFactoryDeclaration<ColumnMenuItemComponent, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<ColumnMenuItemComponent, "kendo-grid-columnmenu-item", never, { "icon": "icon"; "text": "text"; "selected": "selected"; "disabled": "disabled"; "expanded": "expanded"; }, { "itemClick": "itemClick"; "expand": "expand"; "collapse": "collapse"; }, ["contentTemplate"], never>;
85
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColumnMenuItemComponent, "kendo-grid-columnmenu-item", never, { "icon": "icon"; "svgIcon": "svgIcon"; "text": "text"; "selected": "selected"; "disabled": "disabled"; "expanded": "expanded"; }, { "itemClick": "itemClick"; "expand": "expand"; "collapse": "collapse"; }, ["contentTemplate"], never>;
81
86
  }
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ChangeDetectorRef } from '@angular/core';
6
6
  import { LocalizationService } from "@progress/kendo-angular-l10n";
7
+ import { SVGIcon } from '@progress/kendo-svg-icons';
7
8
  import { ColumnInfoService } from '../common/column-info.service';
8
9
  import { ColumnMenuItemBase } from './column-menu-item-base';
9
10
  import * as i0 from "@angular/core";
@@ -45,6 +46,9 @@ export declare class ColumnMenuLockComponent extends ColumnMenuItemBase {
45
46
  constructor(localization: LocalizationService, columnInfoService: ColumnInfoService, changeDetector: ChangeDetectorRef);
46
47
  get text(): string;
47
48
  get icon(): string;
49
+ unlockIcon: SVGIcon;
50
+ lockIcon: SVGIcon;
51
+ get svgIcon(): SVGIcon;
48
52
  get disabled(): boolean;
49
53
  /**
50
54
  * @hidden
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { EventEmitter, ElementRef } from '@angular/core';
6
6
  import { LocalizationService } from "@progress/kendo-angular-l10n";
7
+ import { SVGIcon } from '@progress/kendo-svg-icons';
7
8
  import { ColumnMenuItemBase } from './column-menu-item-base';
8
9
  import * as i0 from "@angular/core";
9
10
  /**
@@ -71,6 +72,7 @@ export declare class ColumnMenuPositionComponent extends ColumnMenuItemBase {
71
72
  * @hidden
72
73
  */
73
74
  get isLast(): boolean;
75
+ setColumnPositionIcon: SVGIcon;
74
76
  private _isLast;
75
77
  constructor(localization: LocalizationService, hostElement: ElementRef);
76
78
  /**
@@ -6,6 +6,7 @@ import { Renderer2 } from '@angular/core';
6
6
  import { LocalizationService } from "@progress/kendo-angular-l10n";
7
7
  import { SortService } from '../common/sort.service';
8
8
  import { ColumnMenuItemBase } from './column-menu-item-base';
9
+ import { SVGIcon } from '@progress/kendo-svg-icons';
9
10
  import * as i0 from "@angular/core";
10
11
  /**
11
12
  * Represents a column-menu item for sorting Grid columns that can be placed inside a
@@ -42,6 +43,8 @@ export declare class ColumnMenuSortComponent extends ColumnMenuItemBase {
42
43
  localization: LocalizationService;
43
44
  protected sortService: SortService;
44
45
  protected renderer: Renderer2;
46
+ sortAscSmallIcon: SVGIcon;
47
+ sortDescSmallIcon: SVGIcon;
45
48
  constructor(localization: LocalizationService, sortService: SortService, renderer: Renderer2);
46
49
  get sortedAsc(): boolean;
47
50
  get sortedDesc(): boolean;
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ChangeDetectorRef } from '@angular/core';
6
6
  import { LocalizationService } from "@progress/kendo-angular-l10n";
7
+ import { SVGIcon } from '@progress/kendo-svg-icons';
7
8
  import { ColumnInfoService } from '../common/column-info.service';
8
9
  import { ColumnMenuItemBase } from './column-menu-item-base';
9
10
  import * as i0 from "@angular/core";
@@ -42,9 +43,12 @@ export declare class ColumnMenuStickComponent extends ColumnMenuItemBase {
42
43
  private localization;
43
44
  private columnInfoService;
44
45
  private changeDetector;
46
+ stickIcon: SVGIcon;
47
+ unstickIcon: SVGIcon;
45
48
  constructor(localization: LocalizationService, columnInfoService: ColumnInfoService, changeDetector: ChangeDetectorRef);
46
49
  get text(): string;
47
50
  get icon(): string;
51
+ get svgIcon(): SVGIcon;
48
52
  get disabled(): boolean;
49
53
  /**
50
54
  * @hidden
@@ -9,6 +9,7 @@ import { SinglePopupService } from '../common/single-popup.service';
9
9
  import { ColumnMenuService } from './column-menu.service';
10
10
  import { ColumnMenuSettings } from './column-menu-settings.interface';
11
11
  import { ContextService } from '../common/provider.service';
12
+ import { SVGIcon } from '@progress/kendo-svg-icons';
12
13
  import * as i0 from "@angular/core";
13
14
  /**
14
15
  * Represents the [column menu]({% slug columnmenu_grid %}) component.
@@ -67,6 +68,7 @@ export declare class ColumnMenuComponent implements AfterViewInit, OnChanges, On
67
68
  * @hidden
68
69
  */
69
70
  expandedPosition: boolean;
71
+ moreVerticalIcon: SVGIcon;
70
72
  private popupRef;
71
73
  private closeSubscription;
72
74
  constructor(navigationService: NavigationService, popupService: SinglePopupService, localization: LocalizationService, service: ColumnMenuService, ctx: ContextService);
@@ -21,12 +21,13 @@ import * as i15 from "./column-menu-autosize.component";
21
21
  import * as i16 from "./column-menu-autosize-all.component";
22
22
  import * as i17 from "@angular/common";
23
23
  import * as i18 from "../filtering/menu/filter-menu.module";
24
+ import * as i19 from "@progress/kendo-angular-buttons";
24
25
  /**
25
26
  * @hidden
26
27
  */
27
28
  export declare class ColumnMenuModule {
28
29
  static exports(): any[];
29
30
  static ɵfac: i0.ɵɵFactoryDeclaration<ColumnMenuModule, never>;
30
- static ɵmod: i0.ɵɵNgModuleDeclaration<ColumnMenuModule, [typeof i1.ColumnListComponent, typeof i2.ColumnChooserComponent, typeof i3.ColumnMenuChooserComponent, typeof i4.ColumnMenuFilterComponent, typeof i5.ColumnMenuItemComponent, typeof i6.ColumnMenuItemContentTemplateDirective, typeof i7.ColumnMenuSortComponent, typeof i8.ColumnMenuComponent, typeof i9.ColumnMenuLockComponent, typeof i10.ColumnMenuTemplateDirective, typeof i11.ColumnMenuContainerComponent, typeof i12.ColumnMenuItemDirective, typeof i13.ColumnMenuStickComponent, typeof i14.ColumnMenuPositionComponent, typeof i15.ColumnMenuAutoSizeColumnComponent, typeof i16.ColumnMenuAutoSizeAllColumnsComponent], [typeof i17.CommonModule, typeof i18.FilterMenuModule], [typeof i1.ColumnListComponent, typeof i2.ColumnChooserComponent, typeof i3.ColumnMenuChooserComponent, typeof i4.ColumnMenuFilterComponent, typeof i5.ColumnMenuItemComponent, typeof i6.ColumnMenuItemContentTemplateDirective, typeof i7.ColumnMenuSortComponent, typeof i8.ColumnMenuComponent, typeof i9.ColumnMenuLockComponent, typeof i10.ColumnMenuTemplateDirective, typeof i11.ColumnMenuContainerComponent, typeof i12.ColumnMenuItemDirective, typeof i13.ColumnMenuStickComponent, typeof i14.ColumnMenuPositionComponent, typeof i15.ColumnMenuAutoSizeColumnComponent, typeof i16.ColumnMenuAutoSizeAllColumnsComponent]>;
31
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ColumnMenuModule, [typeof i1.ColumnListComponent, typeof i2.ColumnChooserComponent, typeof i3.ColumnMenuChooserComponent, typeof i4.ColumnMenuFilterComponent, typeof i5.ColumnMenuItemComponent, typeof i6.ColumnMenuItemContentTemplateDirective, typeof i7.ColumnMenuSortComponent, typeof i8.ColumnMenuComponent, typeof i9.ColumnMenuLockComponent, typeof i10.ColumnMenuTemplateDirective, typeof i11.ColumnMenuContainerComponent, typeof i12.ColumnMenuItemDirective, typeof i13.ColumnMenuStickComponent, typeof i14.ColumnMenuPositionComponent, typeof i15.ColumnMenuAutoSizeColumnComponent, typeof i16.ColumnMenuAutoSizeAllColumnsComponent], [typeof i17.CommonModule, typeof i18.FilterMenuModule, typeof i19.ButtonModule], [typeof i1.ColumnListComponent, typeof i2.ColumnChooserComponent, typeof i3.ColumnMenuChooserComponent, typeof i4.ColumnMenuFilterComponent, typeof i5.ColumnMenuItemComponent, typeof i6.ColumnMenuItemContentTemplateDirective, typeof i7.ColumnMenuSortComponent, typeof i8.ColumnMenuComponent, typeof i9.ColumnMenuLockComponent, typeof i10.ColumnMenuTemplateDirective, typeof i11.ColumnMenuContainerComponent, typeof i12.ColumnMenuItemDirective, typeof i13.ColumnMenuStickComponent, typeof i14.ColumnMenuPositionComponent, typeof i15.ColumnMenuAutoSizeColumnComponent, typeof i16.ColumnMenuAutoSizeAllColumnsComponent]>;
31
32
  static ɵinj: i0.ɵɵInjectorDeclaration<ColumnMenuModule>;
32
33
  }
@@ -8,11 +8,13 @@ import { ColumnInfoService } from '../common/column-info.service';
8
8
  import { LocalizationService } from "@progress/kendo-angular-l10n";
9
9
  import { closest } from '../rendering/common/dom-queries';
10
10
  import { isDocumentAvailable } from '@progress/kendo-angular-common';
11
+ import { columnsIcon } from '@progress/kendo-svg-icons';
11
12
  import * as i0 from "@angular/core";
12
13
  import * as i1 from "@progress/kendo-angular-l10n";
13
14
  import * as i2 from "../common/column-info.service";
14
15
  import * as i3 from "@progress/kendo-angular-popup";
15
- import * as i4 from "./column-list.component";
16
+ import * as i4 from "@progress/kendo-angular-buttons";
17
+ import * as i5 from "./column-list.component";
16
18
  /**
17
19
  * Represents the component for selecting columns in the Grid. To enable the user to show or hide columns,
18
20
  * add the component inside a [ToolbarTemplate]({% slug api_grid_toolbartemplatedirective %}) directive.
@@ -33,7 +35,7 @@ import * as i4 from "./column-list.component";
33
35
  * })
34
36
  *
35
37
  * class AppComponent {
36
- * public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
38
+ * public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
37
39
  * }
38
40
  * ```
39
41
  */
@@ -45,6 +47,10 @@ export class ColumnChooserComponent {
45
47
  this.ngZone = ngZone;
46
48
  this.renderer = renderer;
47
49
  this.changeDetector = changeDetector;
50
+ /**
51
+ * @hidden
52
+ */
53
+ this.columnsIcon = columnsIcon;
48
54
  /**
49
55
  * Specifies if the changes in the visibility of the column will be immediately applied.
50
56
  */
@@ -67,7 +73,7 @@ export class ColumnChooserComponent {
67
73
  if (!this.popupRef) {
68
74
  const direction = this.localization.rtl ? 'right' : 'left';
69
75
  this.popupRef = this.popupService.open({
70
- anchor: anchor,
76
+ anchor: anchor.element,
71
77
  content: template,
72
78
  positionMode: 'absolute',
73
79
  anchorAlign: { vertical: 'bottom', horizontal: direction },
@@ -78,7 +84,7 @@ export class ColumnChooserComponent {
78
84
  return;
79
85
  }
80
86
  this.ngZone.runOutsideAngular(() => this.closeClick = this.renderer.listen('document', 'click', ({ target }) => {
81
- if (!closest(target, node => node === this.popupRef.popupElement || node === anchor)) {
87
+ if (!closest(target, node => node === this.popupRef.popupElement || node === anchor.element)) {
82
88
  this.close();
83
89
  }
84
90
  }));
@@ -121,12 +127,13 @@ export class ColumnChooserComponent {
121
127
  ColumnChooserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnChooserComponent, deps: [{ token: i1.LocalizationService }, { token: i2.ColumnInfoService }, { token: i3.PopupService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
122
128
  ColumnChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColumnChooserComponent, selector: "kendo-grid-column-chooser", inputs: { autoSync: "autoSync", allowHideAll: "allowHideAll" }, ngImport: i0, template: `
123
129
  <button #anchor
130
+ kendoButton
124
131
  type="button"
125
132
  (click)="toggle(anchor, template)"
126
- class="k-button k-button-flat-base k-button-flat k-icon-button k-button-md k-rounded-md k-button-rectangle k-icon-button"
127
- [attr.title]="localization.get('columns')">
128
- <span class="k-button-icon k-icon k-i-columns"></span>
129
- </button>
133
+ fillMode="flat"
134
+ [attr.title]="localization.get('columns')"
135
+ icon="columns"
136
+ [svgIcon]="columnsIcon"></button>
130
137
  <ng-template #template>
131
138
  <span class='k-column-chooser-title'>{{ localization.get('columns') }}</span>
132
139
  <kendo-grid-columnlist
@@ -139,19 +146,20 @@ ColumnChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
139
146
  (columnChange)="onChange($event)">
140
147
  </kendo-grid-columnlist>
141
148
  </ng-template>
142
- `, isInline: true, components: [{ type: i4.ColumnListComponent, selector: "kendo-grid-columnlist", inputs: ["columns", "autoSync", "allowHideAll", "applyText", "resetText", "actionsClass", "isLast", "isExpanded", "service"], outputs: ["reset", "apply", "columnChange"] }] });
149
+ `, isInline: true, components: [{ type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i5.ColumnListComponent, selector: "kendo-grid-columnlist", inputs: ["columns", "autoSync", "allowHideAll", "applyText", "resetText", "actionsClass", "isLast", "isExpanded", "service"], outputs: ["reset", "apply", "columnChange"] }] });
143
150
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnChooserComponent, decorators: [{
144
151
  type: Component,
145
152
  args: [{
146
153
  selector: 'kendo-grid-column-chooser',
147
154
  template: `
148
155
  <button #anchor
156
+ kendoButton
149
157
  type="button"
150
158
  (click)="toggle(anchor, template)"
151
- class="k-button k-button-flat-base k-button-flat k-icon-button k-button-md k-rounded-md k-button-rectangle k-icon-button"
152
- [attr.title]="localization.get('columns')">
153
- <span class="k-button-icon k-icon k-i-columns"></span>
154
- </button>
159
+ fillMode="flat"
160
+ [attr.title]="localization.get('columns')"
161
+ icon="columns"
162
+ [svgIcon]="columnsIcon"></button>
155
163
  <ng-template #template>
156
164
  <span class='k-column-chooser-title'>{{ localization.get('columns') }}</span>
157
165
  <kendo-grid-columnlist
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, isDevMode } from '@angular/core';
6
6
  import { LocalizationService } from "@progress/kendo-angular-l10n";
7
+ import { displayInlineBlockIcon } from '@progress/kendo-svg-icons';
7
8
  import { ColunnMenuErrorMessages } from '../common/error-messages';
8
9
  import { ContextService } from '../common/provider.service';
9
10
  import { ColumnMenuItemBase } from './column-menu-item-base';
@@ -51,6 +52,7 @@ export class ColumnMenuAutoSizeAllColumnsComponent extends ColumnMenuItemBase {
51
52
  super();
52
53
  this.localization = localization;
53
54
  this.ctx = ctx;
55
+ this.displayInlineBlockIcon = displayInlineBlockIcon;
54
56
  }
55
57
  ngOnInit() {
56
58
  const isVirtualColumns = this.ctx.grid.columnMenuTemplate && this.ctx.grid.virtualColumns;
@@ -68,10 +70,10 @@ ColumnMenuAutoSizeAllColumnsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVer
68
70
  *ngIf="!this.ctx.grid.virtualColumns"
69
71
  [text]="localization.get('autosizeAllColumns')"
70
72
  icon="display-inline-block"
73
+ [svgIcon]="displayInlineBlockIcon"
71
74
  (itemClick)="autoSizeAllColumns()"
72
- >
73
- </kendo-grid-columnmenu-item>
74
- `, isInline: true, components: [{ type: i3.ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
75
+ ></kendo-grid-columnmenu-item>
76
+ `, isInline: true, components: [{ type: i3.ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
75
77
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuAutoSizeAllColumnsComponent, decorators: [{
76
78
  type: Component,
77
79
  args: [{
@@ -81,9 +83,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
81
83
  *ngIf="!this.ctx.grid.virtualColumns"
82
84
  [text]="localization.get('autosizeAllColumns')"
83
85
  icon="display-inline-block"
86
+ [svgIcon]="displayInlineBlockIcon"
84
87
  (itemClick)="autoSizeAllColumns()"
85
- >
86
- </kendo-grid-columnmenu-item>
88
+ ></kendo-grid-columnmenu-item>
87
89
  `
88
90
  }]
89
91
  }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.ContextService }]; } });
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, Input, isDevMode } from '@angular/core';
6
6
  import { LocalizationService } from "@progress/kendo-angular-l10n";
7
+ import { maxWidthIcon } from '@progress/kendo-svg-icons';
7
8
  import { ColunnMenuErrorMessages } from '../common/error-messages';
8
9
  import { ContextService } from '../common/provider.service';
9
10
  import { ColumnMenuItemBase } from './column-menu-item-base';
@@ -51,6 +52,7 @@ export class ColumnMenuAutoSizeColumnComponent extends ColumnMenuItemBase {
51
52
  super();
52
53
  this.localization = localization;
53
54
  this.ctx = ctx;
55
+ this.maxWidthIcon = maxWidthIcon;
54
56
  }
55
57
  ngOnInit() {
56
58
  const isVirtualColumns = this.ctx.grid.columnMenuTemplate && this.ctx.grid.virtualColumns;
@@ -69,10 +71,10 @@ ColumnMenuAutoSizeColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion
69
71
  class="k-grid-columnmenu-autosize-column"
70
72
  [text]="localization.get('autosizeThisColumn')"
71
73
  icon="max-width"
74
+ [svgIcon]="maxWidthIcon"
72
75
  (itemClick)="autoSizeColumn()"
73
- >
74
- </kendo-grid-columnmenu-item>
75
- `, isInline: true, components: [{ type: i3.ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
76
+ ></kendo-grid-columnmenu-item>
77
+ `, isInline: true, components: [{ type: i3.ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
76
78
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuAutoSizeColumnComponent, decorators: [{
77
79
  type: Component,
78
80
  args: [{
@@ -83,9 +85,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
83
85
  class="k-grid-columnmenu-autosize-column"
84
86
  [text]="localization.get('autosizeThisColumn')"
85
87
  icon="max-width"
88
+ [svgIcon]="maxWidthIcon"
86
89
  (itemClick)="autoSizeColumn()"
87
- >
88
- </kendo-grid-columnmenu-item>
90
+ ></kendo-grid-columnmenu-item>
89
91
  `
90
92
  }]
91
93
  }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.ContextService }]; }, propDecorators: { column: [{
@@ -6,6 +6,7 @@ import { Component, Input, Output, EventEmitter, ChangeDetectorRef, ElementRef }
6
6
  import { ColumnInfoService } from '../common/column-info.service';
7
7
  import { LocalizationService } from "@progress/kendo-angular-l10n";
8
8
  import { ColumnMenuItemBase } from './column-menu-item-base';
9
+ import { columnsIcon } from '@progress/kendo-svg-icons';
9
10
  import * as i0 from "@angular/core";
10
11
  import * as i1 from "@progress/kendo-angular-l10n";
11
12
  import * as i2 from "../common/column-info.service";
@@ -69,6 +70,7 @@ export class ColumnMenuChooserComponent extends ColumnMenuItemBase {
69
70
  * @hidden
70
71
  */
71
72
  this.actionsClass = 'k-columnmenu-actions';
73
+ this.columnsIcon = columnsIcon;
72
74
  }
73
75
  get columns() {
74
76
  return this.columnInfoService.leafNamedColumns;
@@ -106,6 +108,7 @@ ColumnMenuChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
106
108
  <kendo-grid-columnmenu-item
107
109
  [text]="localization.get('columns')"
108
110
  icon="columns"
111
+ [svgIcon]="columnsIcon"
109
112
  [expanded]="expanded"
110
113
  (collapse)="onCollapse()"
111
114
  (expand)="onExpand()">
@@ -124,7 +127,7 @@ ColumnMenuChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
124
127
  </kendo-grid-columnlist>
125
128
  </ng-template>
126
129
  </kendo-grid-columnmenu-item>
127
- `, isInline: true, components: [{ type: i3.ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }, { type: i4.ColumnListComponent, selector: "kendo-grid-columnlist", inputs: ["columns", "autoSync", "allowHideAll", "applyText", "resetText", "actionsClass", "isLast", "isExpanded", "service"], outputs: ["reset", "apply", "columnChange"] }], directives: [{ type: i5.ColumnMenuItemContentTemplateDirective, selector: "[kendoGridColumnMenuItemContentTemplate]" }] });
130
+ `, isInline: true, components: [{ type: i3.ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }, { type: i4.ColumnListComponent, selector: "kendo-grid-columnlist", inputs: ["columns", "autoSync", "allowHideAll", "applyText", "resetText", "actionsClass", "isLast", "isExpanded", "service"], outputs: ["reset", "apply", "columnChange"] }], directives: [{ type: i5.ColumnMenuItemContentTemplateDirective, selector: "[kendoGridColumnMenuItemContentTemplate]" }] });
128
131
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuChooserComponent, decorators: [{
129
132
  type: Component,
130
133
  args: [{
@@ -133,6 +136,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
133
136
  <kendo-grid-columnmenu-item
134
137
  [text]="localization.get('columns')"
135
138
  icon="columns"
139
+ [svgIcon]="columnsIcon"
136
140
  [expanded]="expanded"
137
141
  (collapse)="onCollapse()"
138
142
  (expand)="onExpand()">
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, Input, Output, EventEmitter, ElementRef } from '@angular/core';
6
6
  import { LocalizationService } from "@progress/kendo-angular-l10n";
7
+ import { filterIcon } from '@progress/kendo-svg-icons';
7
8
  import { ColumnMenuItemBase } from './column-menu-item-base';
8
9
  import * as i0 from "@angular/core";
9
10
  import * as i1 from "@progress/kendo-angular-l10n";
@@ -65,6 +66,7 @@ export class ColumnMenuFilterComponent extends ColumnMenuItemBase {
65
66
  * @hidden
66
67
  */
67
68
  this.actionsClass = 'k-columnmenu-actions';
69
+ this.filterIcon = filterIcon;
68
70
  }
69
71
  /**
70
72
  * @hidden
@@ -89,6 +91,7 @@ ColumnMenuFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
89
91
  <kendo-grid-columnmenu-item
90
92
  [text]="localization.get('filter')"
91
93
  icon="filter"
94
+ [svgIcon]="filterIcon"
92
95
  [expanded]="expanded"
93
96
  (collapse)="onCollapse()"
94
97
  (expand)="onExpand()">
@@ -105,7 +108,7 @@ ColumnMenuFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
105
108
  </kendo-grid-filter-menu-container>
106
109
  </ng-template>
107
110
  </kendo-grid-columnmenu-item>
108
- `, isInline: true, components: [{ type: i2.ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }, { type: i3.FilterMenuContainerComponent, selector: "kendo-grid-filter-menu-container", inputs: ["column", "isLast", "isExpanded", "menuTabbingService", "filter", "actionsClass"], outputs: ["close"] }], directives: [{ type: i4.ColumnMenuItemContentTemplateDirective, selector: "[kendoGridColumnMenuItemContentTemplate]" }] });
111
+ `, isInline: true, components: [{ type: i2.ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }, { type: i3.FilterMenuContainerComponent, selector: "kendo-grid-filter-menu-container", inputs: ["column", "isLast", "isExpanded", "menuTabbingService", "filter", "actionsClass"], outputs: ["close"] }], directives: [{ type: i4.ColumnMenuItemContentTemplateDirective, selector: "[kendoGridColumnMenuItemContentTemplate]" }] });
109
112
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuFilterComponent, decorators: [{
110
113
  type: Component,
111
114
  args: [{
@@ -114,6 +117,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
114
117
  <kendo-grid-columnmenu-item
115
118
  [text]="localization.get('filter')"
116
119
  icon="filter"
120
+ [svgIcon]="filterIcon"
117
121
  [expanded]="expanded"
118
122
  (collapse)="onCollapse()"
119
123
  (expand)="onExpand()">
@@ -6,7 +6,8 @@ import { Component, Input, Output, EventEmitter, ContentChild } from '@angular/c
6
6
  import { trigger, transition, style, animate, state } from '@angular/animations';
7
7
  import { ColumnMenuItemContentTemplateDirective } from './column-menu-item-content-template.directive';
8
8
  import * as i0 from "@angular/core";
9
- import * as i1 from "@angular/common";
9
+ import * as i1 from "@progress/kendo-angular-icons";
10
+ import * as i2 from "@angular/common";
10
11
  /**
11
12
  * Represents an item that can be placed inside a
12
13
  * [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
@@ -51,9 +52,6 @@ export class ColumnMenuItemComponent {
51
52
  this.collapse = new EventEmitter();
52
53
  this.contentState = 'collapsed';
53
54
  }
54
- get iconClass() {
55
- return `k-i-${this.icon}`;
56
- }
57
55
  ngOnChanges(changes) {
58
56
  if (changes.expanded) {
59
57
  this.updateContentState();
@@ -80,7 +78,7 @@ export class ColumnMenuItemComponent {
80
78
  }
81
79
  }
82
80
  ColumnMenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
83
- ColumnMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: { icon: "icon", text: "text", selected: "selected", disabled: "disabled", expanded: "expanded" }, outputs: { itemClick: "itemClick", expand: "expand", collapse: "collapse" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: ColumnMenuItemContentTemplateDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
81
+ ColumnMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: { icon: "icon", svgIcon: "svgIcon", text: "text", selected: "selected", disabled: "disabled", expanded: "expanded" }, outputs: { itemClick: "itemClick", expand: "expand", collapse: "collapse" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: ColumnMenuItemContentTemplateDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
84
82
  <div
85
83
  class="k-columnmenu-item"
86
84
  (click)="onClick($event)"
@@ -89,15 +87,16 @@ ColumnMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
89
87
  [class.k-disabled]="disabled"
90
88
  role="button"
91
89
  [attr.aria-expanded]="expanded">
92
- <span *ngIf="icon" class="k-icon" [ngClass]="iconClass">
93
- </span>
94
- {{ text }}
90
+ <kendo-icon-wrapper
91
+ [name]="icon"
92
+ [svgIcon]="svgIcon"></kendo-icon-wrapper>
93
+ {{ text }}
95
94
  </div>
96
95
  <div *ngIf="contentTemplate" [@state]="contentState" [style.overflow]="'hidden'" class="k-columnmenu-item-content">
97
96
  <ng-container [ngTemplateOutlet]="contentTemplate.templateRef">
98
97
  </ng-container>
99
98
  <div>
100
- `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
99
+ `, isInline: true, components: [{ type: i1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
101
100
  trigger('state', [
102
101
  state('collapsed', style({ display: 'none' })),
103
102
  state('expanded', style({ display: 'block' })),
@@ -156,9 +155,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
156
155
  [class.k-disabled]="disabled"
157
156
  role="button"
158
157
  [attr.aria-expanded]="expanded">
159
- <span *ngIf="icon" class="k-icon" [ngClass]="iconClass">
160
- </span>
161
- {{ text }}
158
+ <kendo-icon-wrapper
159
+ [name]="icon"
160
+ [svgIcon]="svgIcon"></kendo-icon-wrapper>
161
+ {{ text }}
162
162
  </div>
163
163
  <div *ngIf="contentTemplate" [@state]="contentState" [style.overflow]="'hidden'" class="k-columnmenu-item-content">
164
164
  <ng-container [ngTemplateOutlet]="contentTemplate.templateRef">
@@ -174,6 +174,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
174
174
  type: Output
175
175
  }], icon: [{
176
176
  type: Input
177
+ }], svgIcon: [{
178
+ type: Input
177
179
  }], text: [{
178
180
  type: Input
179
181
  }], selected: [{
@@ -184,5 +186,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
184
186
  type: Input
185
187
  }], contentTemplate: [{
186
188
  type: ContentChild,
187
- args: [ColumnMenuItemContentTemplateDirective, { static: false }]
189
+ args: [ColumnMenuItemContentTemplateDirective]
188
190
  }] } });