@progress/kendo-angular-treelist 11.0.0-develop.99 → 11.0.0

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 (38) hide show
  1. package/NOTICE.txt +17 -17
  2. package/column-menu/column-chooser.component.d.ts +4 -1
  3. package/column-menu/column-menu-chooser.component.d.ts +2 -0
  4. package/column-menu/column-menu-filter.component.d.ts +2 -0
  5. package/column-menu/column-menu-item.component.d.ts +7 -2
  6. package/column-menu/column-menu-lock.component.d.ts +4 -0
  7. package/column-menu/column-menu-sort.component.d.ts +3 -0
  8. package/column-menu/column-menu.component.d.ts +2 -0
  9. package/column-menu/column-menu.module.d.ts +2 -1
  10. package/esm2020/column-menu/column-chooser.component.mjs +17 -12
  11. package/esm2020/column-menu/column-menu-chooser.component.mjs +17 -5
  12. package/esm2020/column-menu/column-menu-filter.component.mjs +17 -5
  13. package/esm2020/column-menu/column-menu-item.component.mjs +15 -13
  14. package/esm2020/column-menu/column-menu-lock.component.mjs +19 -3
  15. package/esm2020/column-menu/column-menu-sort.component.mjs +28 -9
  16. package/esm2020/column-menu/column-menu.component.mjs +15 -8
  17. package/esm2020/column-menu/column-menu.module.mjs +4 -3
  18. package/esm2020/dragdrop/draggable-column.directive.mjs +2 -2
  19. package/esm2020/filtering/cell/filter-cell-operators.component.mjs +4 -0
  20. package/esm2020/filtering/menu/filter-menu.component.mjs +11 -4
  21. package/esm2020/package-metadata.mjs +2 -2
  22. package/esm2020/pager/pager-next-buttons.component.mjs +7 -0
  23. package/esm2020/pager/pager-prev-buttons.component.mjs +7 -0
  24. package/esm2020/rendering/cell.component.mjs +22 -14
  25. package/esm2020/rendering/constants.mjs +1 -1
  26. package/esm2020/rendering/header/header.component.mjs +27 -21
  27. package/esm2020/rendering/table-body.component.mjs +1 -1
  28. package/fesm2015/progress-kendo-angular-treelist.mjs +202 -107
  29. package/fesm2020/progress-kendo-angular-treelist.mjs +202 -107
  30. package/filtering/cell/filter-cell-operators.component.d.ts +2 -0
  31. package/filtering/menu/filter-menu.component.d.ts +2 -0
  32. package/package.json +19 -19
  33. package/pager/pager-next-buttons.component.d.ts +3 -0
  34. package/pager/pager-prev-buttons.component.d.ts +3 -0
  35. package/rendering/cell.component.d.ts +3 -0
  36. package/rendering/constants.d.ts +1 -1
  37. package/rendering/header/header.component.d.ts +4 -2
  38. package/schematics/ngAdd/index.js +2 -2
package/NOTICE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  Progress Kendo UI for Angular 2023
2
2
 
3
- Copyright (c) 2016-2022 Progress Software Corporation and/or one of its
3
+ Copyright © 2016-2023 Progress Software Corporation and/or one of its
4
4
  subsidiaries or affiliates. All rights reserved.
5
5
 
6
6
  Portions of the Product include certain open source and commercial third-party
@@ -65,7 +65,7 @@ the Product:
65
65
 
66
66
  (1) The Apache Software License, Version 2.0:
67
67
 
68
- Progress Kendo UI for Angular 2022 incorporates TsLib v1.9.3. Such technology
68
+ Progress Kendo UI for Angular 2023 incorporates TsLib v1.9.3. Such technology
69
69
  is subject to the following terms and conditions: Apache Software License Version 2.0.
70
70
 
71
71
  Apache License
@@ -290,7 +290,7 @@ is subject to the following terms and conditions: Apache Software License Versio
290
290
 
291
291
  (2) BSD-Style Licenses:
292
292
 
293
- (a) Progress Kendo UI for Angular 2022 incorporates xlf-translate v2.0.4. Such
293
+ (a) Progress Kendo UI for Angular 2023 incorporates xlf-translate v2.0.4. Such
294
294
  technology is subject to the following terms and conditions:
295
295
 
296
296
  BSD 3-Clause License
@@ -325,7 +325,7 @@ technology is subject to the following terms and conditions:
325
325
 
326
326
  (3) The ISC License:
327
327
 
328
- (a) Progress Kendo UI for Angular 2022 incorporates glob v7.1.3. Such technology
328
+ (a) Progress Kendo UI for Angular 2023 incorporates glob v7.1.3. Such technology
329
329
  is subject to the following terms and conditions:
330
330
 
331
331
  The ISC License
@@ -352,7 +352,7 @@ is subject to the following terms and conditions:
352
352
 
353
353
  (4) MIT-Style Licenses:
354
354
 
355
- (a) Progress Kendo UI for Angular 2022 incorporates HammerJS v2.0.8. Such
355
+ (a) Progress Kendo UI for Angular 2023 incorporates HammerJS v2.0.8. Such
356
356
  technology is subject to the following terms and conditions:
357
357
 
358
358
  The MIT License (MIT)
@@ -377,7 +377,7 @@ technology is subject to the following terms and conditions:
377
377
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
378
378
  SOFTWARE.
379
379
 
380
- (b) Progress Kendo UI for Angular 2022 incorporates prosemirror-commands v1*,
380
+ (b) Progress Kendo UI for Angular 2023 incorporates prosemirror-commands v1*,
381
381
  prosemirror-cursor v1*, prosemirror-gapcursor v1*, prosemirror-history v1*,
382
382
  prosemirror-inputrules v1*, prosemirror-keymap v1*, prosemirror-model v1*,
383
383
  prosemirror-schema-list v1*, prosemirror-state v1*, prosemirror-tables v0.7*,
@@ -404,7 +404,7 @@ subject to the following terms and conditions:
404
404
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
405
405
  THE SOFTWARE.
406
406
 
407
- (c) Progress Kendo UI for Angular 2022 incorporates cheerio v0.2.2. Such technology is subject to the following terms and conditions:
407
+ (c) Progress Kendo UI for Angular 2023 incorporates cheerio v0.2.2. Such technology is subject to the following terms and conditions:
408
408
 
409
409
  MIT License
410
410
 
@@ -428,7 +428,7 @@ subject to the following terms and conditions:
428
428
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
429
429
  SOFTWARE.
430
430
 
431
- (d) Progress Kendo UI for Angular 2022 incorporates @types/prosemirror-commands v1*,
431
+ (d) Progress Kendo UI for Angular 2023 incorporates @types/prosemirror-commands v1*,
432
432
  @types/prosemirror-dropcursor v1*, @types/prosemirror-gapcursor v1*, @types/prosemirror-history v1*,
433
433
  @types/prosemirror-inputrules v1*, @types/prosemirror-keymap v1*, @types/prosemirror-model v1*,
434
434
  @types/prosemirror-schema-list v1*, @types/prosemirror-state v1*, @types/prosemirror-tables v0.9*,
@@ -457,7 +457,7 @@ subject to the following terms and conditions:
457
457
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
458
458
  SOFTWARE.
459
459
 
460
- (e) Progress Kendo UI for Angular 2022 incorporates pako-esm v1.0.0. Such
460
+ (e) Progress Kendo UI for Angular 2023 incorporates pako-esm v1.0.0. Such
461
461
  technology is subject to the following terms and conditions:
462
462
 
463
463
  Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries
@@ -483,7 +483,7 @@ technology is subject to the following terms and conditions:
483
483
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
484
484
  THE SOFTWARE.
485
485
 
486
- (f) Progress Kendo UI for Angular 2022 incorporates jszip-esm v1.0.0. Such
486
+ (f) Progress Kendo UI for Angular 2023 incorporates jszip-esm v1.0.0. Such
487
487
  technology is subject to the following terms and conditions:
488
488
 
489
489
  Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries
@@ -510,7 +510,7 @@ technology is subject to the following terms and conditions:
510
510
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
511
511
  THE SOFTWARE.
512
512
 
513
- (g) Progress Kendo UI for Angular 2022 incorporates data.task v3.1.2. Such
513
+ (g) Progress Kendo UI for Angular 2023 incorporates data.task v3.1.2. Such
514
514
  technology is subject to the following terms and conditions:
515
515
 
516
516
  The MIT License
@@ -535,7 +535,7 @@ technology is subject to the following terms and conditions:
535
535
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
536
536
  THE SOFTWARE.
537
537
 
538
- (h) Progress Kendo UI for Angular 2022 incorporates ramda v0.23. Such technology
538
+ (h) Progress Kendo UI for Angular 2023 incorporates ramda v0.23. Such technology
539
539
  is subject to the following terms and conditions:
540
540
 
541
541
  The MIT License (MIT)
@@ -560,7 +560,7 @@ is subject to the following terms and conditions:
560
560
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
561
561
  THE SOFTWARE.
562
562
 
563
- (i) Progress Kendo UI for Angular 2022 incorporates js-yaml v3.14.0. Such
563
+ (i) Progress Kendo UI for Angular 2023 incorporates js-yaml v3.14.0. Such
564
564
  technology is subject to the following terms and conditions:
565
565
 
566
566
  (The MIT License)
@@ -587,7 +587,7 @@ technology is subject to the following terms and conditions:
587
587
 
588
588
  (5) UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE:
589
589
 
590
- Progress Kendo UI for Angular 2022 incorporates Unicode CLDR Database v33.
590
+ Progress Kendo UI for Angular 2023 incorporates Unicode CLDR Database v33.
591
591
  Such technology is subject to the following terms and conditions:
592
592
 
593
593
  UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE
@@ -605,7 +605,7 @@ Such technology is subject to the following terms and conditions:
605
605
 
606
606
  COPYRIGHT AND PERMISSION NOTICE
607
607
 
608
- Copyright © 1991-2021 Unicode, Inc. All rights reserved.
608
+ Copyright © 1991-2019 Unicode, Inc. All rights reserved.
609
609
  Distributed under the Terms of Use in https://www.unicode.org/copyright.html.
610
610
 
611
611
  Permission is hereby granted, free of charge, to any person obtaining
@@ -642,7 +642,7 @@ incorporated into the Product: NONE
642
642
 
643
643
  3. Special Notices Regarding Progress Products incorporated into the Product:
644
644
 
645
- (a) Progress Kendo UI for Angular 2022 incorporates Kendo UI Licensing CLI v1.1
645
+ (a) Progress Kendo UI for Angular 2023 incorporates Kendo UI Licensing CLI v1.1
646
646
  from Progress Software Corporation. See NOTICE.txt text file within product for
647
647
  third-party license information.
648
648
 
@@ -651,4 +651,4 @@ the release notes or other documentation that accompanies updates received in
651
651
  connection with support of the Product.
652
652
 
653
653
 
654
- Updated 1/6/2022
654
+ Updated 13.Jan.2023
@@ -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 TreeList. To enable the user to show or hide columns,
@@ -34,6 +36,7 @@ export declare class ColumnChooserComponent implements OnDestroy {
34
36
  */
35
37
  allowHideAll: boolean;
36
38
  get columns(): any[];
39
+ columnsIcon: SVGIcon;
37
40
  private popupRef;
38
41
  private closeClick;
39
42
  constructor(localization: LocalizationService, columnInfoService: ColumnInfoService, popupService: PopupService, ngZone: NgZone, renderer: Renderer2, changeDetector: ChangeDetectorRef);
@@ -41,7 +44,7 @@ export declare class ColumnChooserComponent implements OnDestroy {
41
44
  /**
42
45
  * @hidden
43
46
  */
44
- toggle(anchor: any, template: any): void;
47
+ toggle(anchor: Button, template: any): void;
45
48
  /**
46
49
  * @hidden
47
50
  */
@@ -6,6 +6,7 @@ import { EventEmitter, ChangeDetectorRef } 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 TreeList that can be placed
@@ -42,6 +43,7 @@ export declare class ColumnMenuChooserComponent extends ColumnMenuItemBase {
42
43
  */
43
44
  actionsClass: string;
44
45
  get columns(): any;
46
+ columnsIcon: SVGIcon;
45
47
  constructor(localization: LocalizationService, columnInfoService: ColumnInfoService, changeDetector: ChangeDetectorRef);
46
48
  /**
47
49
  * @hidden
@@ -5,6 +5,7 @@
5
5
  import { EventEmitter } from '@angular/core';
6
6
  import { LocalizationService } from "@progress/kendo-angular-l10n";
7
7
  import { ColumnMenuItemBase } from './column-menu-item-base';
8
+ import { SVGIcon } from '@progress/kendo-svg-icons';
8
9
  import * as i0 from "@angular/core";
9
10
  /**
10
11
  * Represents the component for editing column filters in the TreeList that can be placed
@@ -38,6 +39,7 @@ export declare class ColumnMenuFilterComponent extends ColumnMenuItemBase {
38
39
  * @hidden
39
40
  */
40
41
  actionsClass: string;
42
+ filterIcon: SVGIcon;
41
43
  constructor(localization: LocalizationService);
42
44
  static ɵfac: i0.ɵɵFactoryDeclaration<ColumnMenuFilterComponent, never>;
43
45
  static ɵcmp: i0.ɵɵComponentDeclaration<ColumnMenuFilterComponent, "kendo-treelist-columnmenu-filter", never, { "expanded": "expanded"; }, { "expand": "expand"; "collapse": "collapse"; }, never, never>;
@@ -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
@@ -34,6 +35,11 @@ export declare class ColumnMenuItemComponent implements OnChanges {
34
35
  * that will be rendered for the item.
35
36
  */
36
37
  icon: string;
38
+ /**
39
+ * Specifies the name of the [SVG icon]({% slug svgicon_list %})
40
+ * that will be rendered for the item.
41
+ */
42
+ svgIcon: SVGIcon;
37
43
  /**
38
44
  * Specifies the item text.
39
45
  */
@@ -51,7 +57,6 @@ export declare class ColumnMenuItemComponent implements OnChanges {
51
57
  */
52
58
  expanded: boolean;
53
59
  contentTemplate: ColumnMenuItemContentTemplateDirective;
54
- get iconClass(): string;
55
60
  contentState: string;
56
61
  ngOnChanges(changes: any): void;
57
62
  /**
@@ -60,5 +65,5 @@ export declare class ColumnMenuItemComponent implements OnChanges {
60
65
  onClick(e: any): void;
61
66
  private updateContentState;
62
67
  static ɵfac: i0.ɵɵFactoryDeclaration<ColumnMenuItemComponent, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<ColumnMenuItemComponent, "kendo-treelist-columnmenu-item", never, { "icon": "icon"; "text": "text"; "selected": "selected"; "disabled": "disabled"; "expanded": "expanded"; }, { "itemClick": "itemClick"; "expand": "expand"; "collapse": "collapse"; }, ["contentTemplate"], never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColumnMenuItemComponent, "kendo-treelist-columnmenu-item", never, { "icon": "icon"; "svgIcon": "svgIcon"; "text": "text"; "selected": "selected"; "disabled": "disabled"; "expanded": "expanded"; }, { "itemClick": "itemClick"; "expand": "expand"; "collapse": "collapse"; }, ["contentTemplate"], never>;
64
69
  }
@@ -6,6 +6,7 @@ import { ChangeDetectorRef } from '@angular/core';
6
6
  import { LocalizationService } from "@progress/kendo-angular-l10n";
7
7
  import { ColumnInfoService } from '../common/column-info.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 that can be placed inside a
@@ -26,9 +27,12 @@ export declare class ColumnMenuLockComponent extends ColumnMenuItemBase {
26
27
  private localization;
27
28
  private columnInfoService;
28
29
  private changeDetector;
30
+ unlockIcon: SVGIcon;
31
+ lockIcon: SVGIcon;
29
32
  constructor(localization: LocalizationService, columnInfoService: ColumnInfoService, changeDetector: ChangeDetectorRef);
30
33
  get text(): string;
31
34
  get icon(): string;
35
+ get svgIcon(): SVGIcon;
32
36
  get disabled(): boolean;
33
37
  /**
34
38
  * @hidden
@@ -5,6 +5,7 @@
5
5
  import { LocalizationService } from "@progress/kendo-angular-l10n";
6
6
  import { SortService } from '../common/sort.service';
7
7
  import { ColumnMenuItemBase } from './column-menu-item-base';
8
+ import { SVGIcon } from '@progress/kendo-svg-icons';
8
9
  import * as i0 from "@angular/core";
9
10
  /**
10
11
  * Represents a column-menu item for sorting TreeList columns that can be placed inside a
@@ -24,6 +25,8 @@ import * as i0 from "@angular/core";
24
25
  export declare class ColumnMenuSortComponent extends ColumnMenuItemBase {
25
26
  localization: LocalizationService;
26
27
  protected sortService: SortService;
28
+ sortAscSmallIcon: SVGIcon;
29
+ sortDescSmallIcon: SVGIcon;
27
30
  constructor(localization: LocalizationService, sortService: SortService);
28
31
  get sortedAsc(): boolean;
29
32
  get sortedDesc(): boolean;
@@ -7,6 +7,7 @@ import { LocalizationService } from "@progress/kendo-angular-l10n";
7
7
  import { SinglePopupService } from '../common/single-popup.service';
8
8
  import { ColumnMenuService } from './column-menu.service';
9
9
  import { ColumnMenuSettings } from './column-menu-settings.interface';
10
+ import { SVGIcon } from '@progress/kendo-svg-icons';
10
11
  import * as i0 from "@angular/core";
11
12
  /**
12
13
  * Represents the [column menu]({% slug columnmenu_treelist %}) component.
@@ -53,6 +54,7 @@ export declare class ColumnMenuComponent implements OnChanges, OnDestroy {
53
54
  * @hidden
54
55
  */
55
56
  expandedColumns: boolean;
57
+ moreVerticalIcon: SVGIcon;
56
58
  private popupRef;
57
59
  private closeSubscription;
58
60
  constructor(popupService: SinglePopupService, localization: LocalizationService, service: ColumnMenuService);
@@ -15,12 +15,13 @@ import * as i9 from "./column-menu-lock.component";
15
15
  import * as i10 from "./column-menu-template.directive";
16
16
  import * as i11 from "@angular/common";
17
17
  import * as i12 from "../filtering/menu/filter-menu.module";
18
+ import * as i13 from "@progress/kendo-angular-buttons";
18
19
  /**
19
20
  * @hidden
20
21
  */
21
22
  export declare class ColumnMenuModule {
22
23
  static exports(): any[];
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ColumnMenuModule, never>;
24
- 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.CommonModule, typeof i12.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]>;
25
+ 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.CommonModule, typeof i12.FilterMenuModule, typeof i13.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]>;
25
26
  static ɵinj: i0.ɵɵInjectorDeclaration<ColumnMenuModule>;
26
27
  }
@@ -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 TreeList. To enable the user to show or hide columns,
18
20
  * add the component inside a [`ToolbarTemplate`]({% slug api_treelist_toolbartemplatedirective %}) directive.
@@ -40,6 +42,7 @@ export class ColumnChooserComponent {
40
42
  * Specifies if all columns can be hidden.
41
43
  */
42
44
  this.allowHideAll = true;
45
+ this.columnsIcon = columnsIcon;
43
46
  }
44
47
  get columns() {
45
48
  return this.columnInfoService.leafNamedColumns;
@@ -54,7 +57,7 @@ export class ColumnChooserComponent {
54
57
  if (!this.popupRef) {
55
58
  const direction = this.localization.rtl ? 'right' : 'left';
56
59
  this.popupRef = this.popupService.open({
57
- anchor: anchor,
60
+ anchor: anchor.element,
58
61
  content: template,
59
62
  positionMode: 'absolute',
60
63
  anchorAlign: { vertical: 'bottom', horizontal: direction },
@@ -65,7 +68,7 @@ export class ColumnChooserComponent {
65
68
  return;
66
69
  }
67
70
  this.ngZone.runOutsideAngular(() => this.closeClick = this.renderer.listen('document', 'click', ({ target }) => {
68
- if (!closest(target, node => node === this.popupRef.popupElement || node === anchor)) {
71
+ if (!closest(target, node => node === this.popupRef.popupElement || node === anchor.element)) {
69
72
  this.close();
70
73
  }
71
74
  }));
@@ -108,12 +111,13 @@ export class ColumnChooserComponent {
108
111
  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 });
109
112
  ColumnChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColumnChooserComponent, selector: "kendo-treelist-column-chooser", inputs: { autoSync: "autoSync", allowHideAll: "allowHideAll" }, ngImport: i0, template: `
110
113
  <button #anchor
114
+ kendoButton
111
115
  type="button"
112
116
  (click)="toggle(anchor, template)"
113
- 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"
114
- [attr.title]="localization.get('columns')">
115
- <span class="k-button-icon k-icon k-i-columns"></span>
116
- </button>
117
+ fillMode="flat"
118
+ [attr.title]="localization.get('columns')"
119
+ icon="columns"
120
+ [svgIcon]="columnsIcon"></button>
117
121
  <ng-template #template>
118
122
  <span class='k-column-chooser-title'>{{ localization.get('columns') }}</span>
119
123
  <kendo-treelist-columnlist
@@ -126,19 +130,20 @@ ColumnChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
126
130
  (columnChange)="onChange($event)">
127
131
  </kendo-treelist-columnlist>
128
132
  </ng-template>
129
- `, isInline: true, components: [{ type: i4.ColumnListComponent, selector: "kendo-treelist-columnlist", inputs: ["columns", "autoSync", "allowHideAll", "applyText", "resetText", "actionsClass"], outputs: ["reset", "apply", "columnChange"] }] });
133
+ `, 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-treelist-columnlist", inputs: ["columns", "autoSync", "allowHideAll", "applyText", "resetText", "actionsClass"], outputs: ["reset", "apply", "columnChange"] }] });
130
134
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnChooserComponent, decorators: [{
131
135
  type: Component,
132
136
  args: [{
133
137
  selector: 'kendo-treelist-column-chooser',
134
138
  template: `
135
139
  <button #anchor
140
+ kendoButton
136
141
  type="button"
137
142
  (click)="toggle(anchor, template)"
138
- 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"
139
- [attr.title]="localization.get('columns')">
140
- <span class="k-button-icon k-icon k-i-columns"></span>
141
- </button>
143
+ fillMode="flat"
144
+ [attr.title]="localization.get('columns')"
145
+ icon="columns"
146
+ [svgIcon]="columnsIcon"></button>
142
147
  <ng-template #template>
143
148
  <span class='k-column-chooser-title'>{{ localization.get('columns') }}</span>
144
149
  <kendo-treelist-columnlist
@@ -6,6 +6,7 @@ import { Component, Input, Output, EventEmitter, ChangeDetectorRef } from '@angu
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";
@@ -48,6 +49,7 @@ export class ColumnMenuChooserComponent extends ColumnMenuItemBase {
48
49
  * @hidden
49
50
  */
50
51
  this.actionsClass = 'k-columnmenu-actions';
52
+ this.columnsIcon = columnsIcon;
51
53
  }
52
54
  get columns() {
53
55
  return this.columnInfoService.leafNamedColumns;
@@ -65,8 +67,13 @@ export class ColumnMenuChooserComponent extends ColumnMenuItemBase {
65
67
  }
66
68
  ColumnMenuChooserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuChooserComponent, deps: [{ token: i1.LocalizationService }, { token: i2.ColumnInfoService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
67
69
  ColumnMenuChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColumnMenuChooserComponent, selector: "kendo-treelist-columnmenu-chooser", inputs: { expanded: "expanded" }, outputs: { expand: "expand", collapse: "collapse" }, usesInheritance: true, ngImport: i0, template: `
68
- <kendo-treelist-columnmenu-item [text]="localization.get('columns')"
69
- icon="columns" [expanded]="expanded" (collapse)="collapse.emit()" (expand)="expand.emit()">
70
+ <kendo-treelist-columnmenu-item
71
+ [text]="localization.get('columns')"
72
+ icon="columns"
73
+ [svgIcon]="columnsIcon"
74
+ [expanded]="expanded"
75
+ (collapse)="collapse.emit()"
76
+ (expand)="expand.emit()">
70
77
  <ng-template kendoTreeListColumnMenuItemContentTemplate>
71
78
  <kendo-treelist-columnlist
72
79
  [applyText]="localization.get('columnsApply')"
@@ -79,14 +86,19 @@ ColumnMenuChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
79
86
  </kendo-treelist-columnlist>
80
87
  </ng-template>
81
88
  </kendo-treelist-columnmenu-item>
82
- `, isInline: true, components: [{ type: i3.ColumnMenuItemComponent, selector: "kendo-treelist-columnmenu-item", inputs: ["icon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }, { type: i4.ColumnListComponent, selector: "kendo-treelist-columnlist", inputs: ["columns", "autoSync", "allowHideAll", "applyText", "resetText", "actionsClass"], outputs: ["reset", "apply", "columnChange"] }], directives: [{ type: i5.ColumnMenuItemContentTemplateDirective, selector: "[kendoTreeListColumnMenuItemContentTemplate]" }] });
89
+ `, isInline: true, components: [{ type: i3.ColumnMenuItemComponent, selector: "kendo-treelist-columnmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }, { type: i4.ColumnListComponent, selector: "kendo-treelist-columnlist", inputs: ["columns", "autoSync", "allowHideAll", "applyText", "resetText", "actionsClass"], outputs: ["reset", "apply", "columnChange"] }], directives: [{ type: i5.ColumnMenuItemContentTemplateDirective, selector: "[kendoTreeListColumnMenuItemContentTemplate]" }] });
83
90
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuChooserComponent, decorators: [{
84
91
  type: Component,
85
92
  args: [{
86
93
  selector: 'kendo-treelist-columnmenu-chooser',
87
94
  template: `
88
- <kendo-treelist-columnmenu-item [text]="localization.get('columns')"
89
- icon="columns" [expanded]="expanded" (collapse)="collapse.emit()" (expand)="expand.emit()">
95
+ <kendo-treelist-columnmenu-item
96
+ [text]="localization.get('columns')"
97
+ icon="columns"
98
+ [svgIcon]="columnsIcon"
99
+ [expanded]="expanded"
100
+ (collapse)="collapse.emit()"
101
+ (expand)="expand.emit()">
90
102
  <ng-template kendoTreeListColumnMenuItemContentTemplate>
91
103
  <kendo-treelist-columnlist
92
104
  [applyText]="localization.get('columnsApply')"
@@ -5,6 +5,7 @@
5
5
  import { Component, Input, Output, EventEmitter } from '@angular/core';
6
6
  import { LocalizationService } from "@progress/kendo-angular-l10n";
7
7
  import { ColumnMenuItemBase } from './column-menu-item-base';
8
+ import { filterIcon } from '@progress/kendo-svg-icons';
8
9
  import * as i0 from "@angular/core";
9
10
  import * as i1 from "@progress/kendo-angular-l10n";
10
11
  import * as i2 from "./column-menu-item.component";
@@ -44,12 +45,18 @@ export class ColumnMenuFilterComponent extends ColumnMenuItemBase {
44
45
  * @hidden
45
46
  */
46
47
  this.actionsClass = 'k-columnmenu-actions';
48
+ this.filterIcon = filterIcon;
47
49
  }
48
50
  }
49
51
  ColumnMenuFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuFilterComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
50
52
  ColumnMenuFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColumnMenuFilterComponent, selector: "kendo-treelist-columnmenu-filter", inputs: { expanded: "expanded" }, outputs: { expand: "expand", collapse: "collapse" }, usesInheritance: true, ngImport: i0, template: `
51
- <kendo-treelist-columnmenu-item [text]="localization.get('filter')" icon="filter"
52
- [expanded]="expanded" (collapse)="collapse.emit()" (expand)="expand.emit()">
53
+ <kendo-treelist-columnmenu-item
54
+ [text]="localization.get('filter')"
55
+ icon="filter"
56
+ [svgIcon]="filterIcon"
57
+ [expanded]="expanded"
58
+ (collapse)="collapse.emit()"
59
+ (expand)="expand.emit()">
53
60
  <ng-template kendoTreeListColumnMenuItemContentTemplate>
54
61
  <kendo-treelist-filter-menu-container
55
62
  [column]="service.column"
@@ -59,14 +66,19 @@ ColumnMenuFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
59
66
  </kendo-treelist-filter-menu-container>
60
67
  </ng-template>
61
68
  </kendo-treelist-columnmenu-item>
62
- `, isInline: true, components: [{ type: i2.ColumnMenuItemComponent, selector: "kendo-treelist-columnmenu-item", inputs: ["icon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }, { type: i3.FilterMenuContainerComponent, selector: "kendo-treelist-filter-menu-container", inputs: ["column", "filter", "actionsClass"], outputs: ["close"] }], directives: [{ type: i4.ColumnMenuItemContentTemplateDirective, selector: "[kendoTreeListColumnMenuItemContentTemplate]" }] });
69
+ `, isInline: true, components: [{ type: i2.ColumnMenuItemComponent, selector: "kendo-treelist-columnmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }, { type: i3.FilterMenuContainerComponent, selector: "kendo-treelist-filter-menu-container", inputs: ["column", "filter", "actionsClass"], outputs: ["close"] }], directives: [{ type: i4.ColumnMenuItemContentTemplateDirective, selector: "[kendoTreeListColumnMenuItemContentTemplate]" }] });
63
70
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuFilterComponent, decorators: [{
64
71
  type: Component,
65
72
  args: [{
66
73
  selector: 'kendo-treelist-columnmenu-filter',
67
74
  template: `
68
- <kendo-treelist-columnmenu-item [text]="localization.get('filter')" icon="filter"
69
- [expanded]="expanded" (collapse)="collapse.emit()" (expand)="expand.emit()">
75
+ <kendo-treelist-columnmenu-item
76
+ [text]="localization.get('filter')"
77
+ icon="filter"
78
+ [svgIcon]="filterIcon"
79
+ [expanded]="expanded"
80
+ (collapse)="collapse.emit()"
81
+ (expand)="expand.emit()">
70
82
  <ng-template kendoTreeListColumnMenuItemContentTemplate>
71
83
  <kendo-treelist-filter-menu-container
72
84
  [column]="service.column"
@@ -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_treelist_columnmenutemplatedirective %}) directive.
@@ -34,9 +35,6 @@ export class ColumnMenuItemComponent {
34
35
  this.collapse = new EventEmitter();
35
36
  this.contentState = 'collapsed';
36
37
  }
37
- get iconClass() {
38
- return `k-i-${this.icon}`;
39
- }
40
38
  ngOnChanges(changes) {
41
39
  if (changes.expanded) {
42
40
  this.updateContentState();
@@ -63,17 +61,18 @@ export class ColumnMenuItemComponent {
63
61
  }
64
62
  }
65
63
  ColumnMenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColumnMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
66
- ColumnMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColumnMenuItemComponent, selector: "kendo-treelist-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: `
64
+ ColumnMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColumnMenuItemComponent, selector: "kendo-treelist-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: `
67
65
  <div class="k-columnmenu-item" (click)="onClick($event)" [class.k-selected]="selected" [class.k-disabled]="disabled">
68
- <span *ngIf="icon" class="k-icon" [ngClass]="iconClass">
69
- </span>
70
- {{ text }}
66
+ <kendo-icon-wrapper
67
+ [name]="icon"
68
+ [svgIcon]="svgIcon"></kendo-icon-wrapper>
69
+ {{ text }}
71
70
  </div>
72
71
  <div *ngIf="contentTemplate" [@state]="contentState" [style.overflow]="'hidden'" class="k-columnmenu-item-content">
73
72
  <ng-container [ngTemplateOutlet]="contentTemplate.templateRef">
74
73
  </ng-container>
75
74
  <div>
76
- `, 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: [
75
+ `, 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: [
77
76
  trigger('state', [
78
77
  state('collapsed', style({ display: 'none' })),
79
78
  state('expanded', style({ display: 'block' })),
@@ -125,9 +124,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
125
124
  selector: 'kendo-treelist-columnmenu-item',
126
125
  template: `
127
126
  <div class="k-columnmenu-item" (click)="onClick($event)" [class.k-selected]="selected" [class.k-disabled]="disabled">
128
- <span *ngIf="icon" class="k-icon" [ngClass]="iconClass">
129
- </span>
130
- {{ text }}
127
+ <kendo-icon-wrapper
128
+ [name]="icon"
129
+ [svgIcon]="svgIcon"></kendo-icon-wrapper>
130
+ {{ text }}
131
131
  </div>
132
132
  <div *ngIf="contentTemplate" [@state]="contentState" [style.overflow]="'hidden'" class="k-columnmenu-item-content">
133
133
  <ng-container [ngTemplateOutlet]="contentTemplate.templateRef">
@@ -143,6 +143,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
143
143
  type: Output
144
144
  }], icon: [{
145
145
  type: Input
146
+ }], svgIcon: [{
147
+ type: Input
146
148
  }], text: [{
147
149
  type: Input
148
150
  }], selected: [{
@@ -153,5 +155,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
153
155
  type: Input
154
156
  }], contentTemplate: [{
155
157
  type: ContentChild,
156
- args: [ColumnMenuItemContentTemplateDirective, { static: false }]
158
+ args: [ColumnMenuItemContentTemplateDirective]
157
159
  }] } });