@progress/kendo-angular-grid 20.0.4-develop.2 → 20.1.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adaptiveness/adaptive-renderer.component.d.ts +2 -3
- package/column-menu/column-chooser-content.component.d.ts +60 -0
- package/column-menu/column-chooser.component.d.ts +15 -4
- package/column-menu/column-list-kb-nav.service.d.ts +2 -2
- package/column-menu/column-list.component.d.ts +30 -21
- package/column-menu/column-menu-chooser.component.d.ts +2 -7
- package/column-menu/column-menu.component.d.ts +0 -4
- package/columns/column-base.d.ts +8 -0
- package/directives.d.ts +1 -2
- package/esm2022/adaptiveness/adaptive-renderer.component.mjs +26 -46
- package/esm2022/column-menu/column-chooser-content.component.mjs +306 -0
- package/esm2022/column-menu/column-chooser.component.mjs +39 -31
- package/esm2022/column-menu/column-list-kb-nav.service.mjs +3 -3
- package/esm2022/column-menu/column-list.component.mjs +258 -177
- package/esm2022/column-menu/column-menu-chooser.component.mjs +17 -36
- package/esm2022/column-menu/column-menu.component.mjs +12 -28
- package/esm2022/columns/column-base.mjs +8 -0
- package/esm2022/common/column-info.service.mjs +3 -0
- package/esm2022/directives.mjs +0 -2
- package/esm2022/grid.component.mjs +6 -0
- package/esm2022/grid.module.mjs +47 -48
- package/esm2022/localization/messages.mjs +12 -1
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/rendering/list.component.mjs +7 -1
- package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +38 -12
- package/fesm2022/progress-kendo-angular-grid.mjs +709 -368
- package/grid.module.d.ts +46 -47
- package/localization/messages.d.ts +10 -1
- package/package.json +21 -21
- package/rendering/toolbar/tools/column-chooser-tool.directive.d.ts +13 -1
- package/schematics/ngAdd/index.js +4 -4
- package/column-menu/column-chooser-item-checked.directive.d.ts +0 -21
- package/esm2022/column-menu/column-chooser-item-checked.directive.mjs +0 -45
|
@@ -9,7 +9,6 @@ import { FilterMenuContainerComponent } from '../filtering/menu/filter-menu-cont
|
|
|
9
9
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
10
10
|
import { FilterService } from '../filtering/filter.service';
|
|
11
11
|
import { ColumnMenuService } from '../column-menu/column-menu.service';
|
|
12
|
-
import { ColumnListComponent } from '../column-menu/column-list.component';
|
|
13
12
|
import { ContextService } from '../common/provider.service';
|
|
14
13
|
import { AdaptiveService } from '@progress/kendo-angular-utils';
|
|
15
14
|
import { SortService } from '../common/sort.service';
|
|
@@ -18,6 +17,7 @@ import { ColumnInfoService } from '../common/column-info.service';
|
|
|
18
17
|
import { ColumnBase } from '../columns/column-base';
|
|
19
18
|
import { SortDescriptor } from '@progress/kendo-data-query';
|
|
20
19
|
import { GroupToolbarToolComponent } from '../rendering/toolbar/tools/group-toolbar-tool.component';
|
|
20
|
+
import { ColumnChooserContentComponent } from '../column-menu/column-chooser-content.component';
|
|
21
21
|
import * as i0 from "@angular/core";
|
|
22
22
|
/**
|
|
23
23
|
* @hidden
|
|
@@ -39,7 +39,6 @@ export declare class AdaptiveRendererComponent {
|
|
|
39
39
|
cancelIcon: SVGIcon;
|
|
40
40
|
saveIcon: SVGIcon;
|
|
41
41
|
columns: Array<ColumnBase>;
|
|
42
|
-
actionsClass: string;
|
|
43
42
|
externalEditingSettings: any;
|
|
44
43
|
get hasSort(): boolean;
|
|
45
44
|
get hasColumnChooser(): boolean;
|
|
@@ -58,7 +57,7 @@ export declare class AdaptiveRendererComponent {
|
|
|
58
57
|
get filterLabel(): string;
|
|
59
58
|
get hasXCloseIcon(): boolean;
|
|
60
59
|
get hasCheckCloseIcon(): boolean;
|
|
61
|
-
|
|
60
|
+
columnChooserContent: ColumnChooserContentComponent;
|
|
62
61
|
filterToolbarToolTemplate: ViewContainerRef;
|
|
63
62
|
filterMenuContainer: FilterMenuContainerComponent;
|
|
64
63
|
actionSheet: ActionSheetComponent;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { OnInit, ChangeDetectorRef, EventEmitter, ElementRef } from '@angular/core';
|
|
6
|
+
import { ColumnInfoService } from '../common/column-info.service';
|
|
7
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
8
|
+
import { ColumnListComponent } from './column-list.component';
|
|
9
|
+
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
10
|
+
import { ColumnMenuService } from './column-menu.service';
|
|
11
|
+
import { ContextService } from '../common/provider.service';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare class ColumnChooserContentComponent implements OnInit {
|
|
17
|
+
cdr: ChangeDetectorRef;
|
|
18
|
+
columnInfoService: ColumnInfoService;
|
|
19
|
+
ctx: ContextService;
|
|
20
|
+
resetButton: ElementRef;
|
|
21
|
+
private applyButton;
|
|
22
|
+
columnList: ColumnListComponent;
|
|
23
|
+
filterInput: TextBoxComponent;
|
|
24
|
+
filterable: boolean;
|
|
25
|
+
showSelectAll: boolean;
|
|
26
|
+
showCheckedCount: boolean;
|
|
27
|
+
allowHideAll: boolean;
|
|
28
|
+
autoSync: boolean;
|
|
29
|
+
actionsClass: string;
|
|
30
|
+
closeOnReset: boolean;
|
|
31
|
+
set columns(value: any[]);
|
|
32
|
+
get columns(): any[];
|
|
33
|
+
isLast: boolean;
|
|
34
|
+
isExpanded: boolean;
|
|
35
|
+
service: ColumnMenuService;
|
|
36
|
+
close: EventEmitter<undefined>;
|
|
37
|
+
get selectedItemsText(): string;
|
|
38
|
+
get actionSheetOpened(): boolean;
|
|
39
|
+
searchIcon: SVGIcon;
|
|
40
|
+
checkIcon: SVGIcon;
|
|
41
|
+
arrowRotateCcwIcon: SVGIcon;
|
|
42
|
+
applyText: string;
|
|
43
|
+
resetText: string;
|
|
44
|
+
filteredColumns: any[];
|
|
45
|
+
isFiltered: boolean;
|
|
46
|
+
private _columns;
|
|
47
|
+
constructor(cdr: ChangeDetectorRef, columnInfoService: ColumnInfoService, ctx: ContextService);
|
|
48
|
+
ngOnInit(): void;
|
|
49
|
+
ngAfterViewInit(): void;
|
|
50
|
+
ngAfterViewChecked(): void;
|
|
51
|
+
onFilter(value: string): void;
|
|
52
|
+
messageFor: (token: string) => string;
|
|
53
|
+
onChange(changed: any[]): void;
|
|
54
|
+
applyChanges(): void;
|
|
55
|
+
cancelChanges(): void;
|
|
56
|
+
onTab(e: KeyboardEvent): void;
|
|
57
|
+
onApplyButtonKeydown(e: KeyboardEvent): void;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnChooserContentComponent, [null, { optional: true; }, { optional: true; }]>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnChooserContentComponent, "kendo-grid-column-chooser-content", never, { "filterable": { "alias": "filterable"; "required": false; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; }; "showCheckedCount": { "alias": "showCheckedCount"; "required": false; }; "allowHideAll": { "alias": "allowHideAll"; "required": false; }; "autoSync": { "alias": "autoSync"; "required": false; }; "actionsClass": { "alias": "actionsClass"; "required": false; }; "closeOnReset": { "alias": "closeOnReset"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "isLast": { "alias": "isLast"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "service": { "alias": "service"; "required": false; }; }, { "close": "close"; }, never, never, true, never>;
|
|
60
|
+
}
|
|
@@ -37,6 +37,18 @@ export declare class ColumnChooserComponent implements OnDestroy {
|
|
|
37
37
|
* @default false
|
|
38
38
|
*/
|
|
39
39
|
autoSync: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Specifies if the column chooser displays a search box.
|
|
42
|
+
*
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
45
|
+
filterable: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies if the column chooser displays a select all checkbox.
|
|
48
|
+
*
|
|
49
|
+
* @default true
|
|
50
|
+
*/
|
|
51
|
+
showSelectAll: boolean;
|
|
40
52
|
/**
|
|
41
53
|
* Specifies if all columns can be hidden.
|
|
42
54
|
*
|
|
@@ -64,13 +76,12 @@ export declare class ColumnChooserComponent implements OnDestroy {
|
|
|
64
76
|
/**
|
|
65
77
|
* @hidden
|
|
66
78
|
*/
|
|
67
|
-
|
|
79
|
+
onChange(changed: any[]): void;
|
|
68
80
|
/**
|
|
69
81
|
* @hidden
|
|
70
82
|
*/
|
|
71
|
-
|
|
72
|
-
private close;
|
|
83
|
+
close(focusAnchor?: boolean): void;
|
|
73
84
|
private detachClose;
|
|
74
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnChooserComponent, never>;
|
|
75
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnChooserComponent, "kendo-grid-column-chooser", never, { "autoSync": { "alias": "autoSync"; "required": false; }; "allowHideAll": { "alias": "allowHideAll"; "required": false; }; }, {}, never, never, true, never>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnChooserComponent, "kendo-grid-column-chooser", never, { "autoSync": { "alias": "autoSync"; "required": false; }; "filterable": { "alias": "filterable"; "required": false; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; }; "allowHideAll": { "alias": "allowHideAll"; "required": false; }; }, {}, never, never, true, never>;
|
|
76
87
|
}
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Renderer2 } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { CheckBoxComponent } from '@progress/kendo-angular-inputs';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export declare class ColumnListKeyboardNavigation {
|
|
12
12
|
private renderer;
|
|
13
|
-
items:
|
|
13
|
+
items: CheckBoxComponent[];
|
|
14
14
|
activeIndex: number;
|
|
15
15
|
constructor(renderer: Renderer2);
|
|
16
16
|
next(): void;
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef, NgZone, Renderer2, EventEmitter, OnInit, OnDestroy, SimpleChanges } from '@angular/core';
|
|
5
|
+
import { ElementRef, NgZone, Renderer2, EventEmitter, OnInit, OnDestroy, SimpleChanges, QueryList, ChangeDetectorRef } from '@angular/core';
|
|
6
6
|
import { ColumnMenuService } from './column-menu.service';
|
|
7
7
|
import { ColumnListKeyboardNavigation } from './column-list-kb-nav.service';
|
|
8
|
+
import { CheckBoxComponent, TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
8
9
|
import { ContextService } from '../common/provider.service';
|
|
9
10
|
import { AdaptiveGridService } from '../common/adaptiveness.service';
|
|
11
|
+
import { ColumnInfoService } from '../common/column-info.service';
|
|
10
12
|
import * as i0 from "@angular/core";
|
|
11
13
|
/**
|
|
12
14
|
* @hidden
|
|
@@ -15,11 +17,11 @@ export declare class ColumnListComponent implements OnInit, OnDestroy {
|
|
|
15
17
|
private element;
|
|
16
18
|
private ngZone;
|
|
17
19
|
private renderer;
|
|
18
|
-
|
|
20
|
+
listNavigationService: ColumnListKeyboardNavigation;
|
|
21
|
+
private cdr;
|
|
22
|
+
columnInfoService: ColumnInfoService;
|
|
19
23
|
private adaptiveGridService;
|
|
20
24
|
private ctx;
|
|
21
|
-
checkIcon: import("@progress/kendo-svg-icons").SVGIcon;
|
|
22
|
-
arrowRotateCcwIcon: import("@progress/kendo-svg-icons").SVGIcon;
|
|
23
25
|
className: boolean;
|
|
24
26
|
get listSizeMd(): boolean;
|
|
25
27
|
get listSizeLg(): boolean;
|
|
@@ -28,42 +30,49 @@ export declare class ColumnListComponent implements OnInit, OnDestroy {
|
|
|
28
30
|
columnChange: EventEmitter<any>;
|
|
29
31
|
set columns(value: any[]);
|
|
30
32
|
get columns(): any[];
|
|
31
|
-
|
|
33
|
+
get checkedCheckboxesLength(): number;
|
|
34
|
+
filteredColumns: any[];
|
|
32
35
|
autoSync: boolean;
|
|
36
|
+
showSelectAll: boolean;
|
|
37
|
+
isFiltered: boolean;
|
|
33
38
|
ariaLabel: string;
|
|
34
39
|
allowHideAll: boolean;
|
|
35
40
|
applyText: string;
|
|
36
41
|
resetText: string;
|
|
37
|
-
actionsClass: string;
|
|
38
42
|
isLast: boolean;
|
|
39
43
|
isExpanded: boolean;
|
|
40
44
|
service: ColumnMenuService;
|
|
45
|
+
filterable: boolean;
|
|
46
|
+
checkboxes: QueryList<CheckBoxComponent>;
|
|
47
|
+
get columnCheckboxes(): CheckBoxComponent[];
|
|
48
|
+
get lockedColumnCheckboxes(): CheckBoxComponent[];
|
|
49
|
+
get unlockedColumnCheckboxes(): CheckBoxComponent[];
|
|
50
|
+
get checkedCheckboxes(): number;
|
|
41
51
|
resetButton: ElementRef;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
private checkboxes;
|
|
45
|
-
private hasLocked;
|
|
46
|
-
private hasVisibleLocked;
|
|
47
|
-
private unlockedCount;
|
|
48
|
-
private hasUnlockedFiltered;
|
|
49
|
-
private hasFiltered;
|
|
52
|
+
applyButton: ElementRef;
|
|
53
|
+
filterInput: TextBoxComponent;
|
|
50
54
|
private _columns;
|
|
51
|
-
private allColumns;
|
|
52
55
|
private domSubscriptions;
|
|
53
|
-
|
|
56
|
+
private lastDisabledCheckbox;
|
|
57
|
+
constructor(element: ElementRef, ngZone: NgZone, renderer: Renderer2, listNavigationService: ColumnListKeyboardNavigation, cdr: ChangeDetectorRef, columnInfoService: ColumnInfoService, adaptiveGridService: AdaptiveGridService, ctx: ContextService);
|
|
54
58
|
ngOnInit(): void;
|
|
55
59
|
ngAfterViewInit(): void;
|
|
56
60
|
ngOnChanges(changes: SimpleChanges): void;
|
|
61
|
+
onSelectAllClick(e: any): void;
|
|
62
|
+
onSelectAllCheckboxChange(checkedState: any): void;
|
|
57
63
|
ngOnDestroy(): void;
|
|
58
|
-
isDisabled(column: any): boolean;
|
|
59
64
|
cancelChanges(): void;
|
|
60
65
|
applyChanges(): void;
|
|
66
|
+
focusActiveColumn(e: Event): void;
|
|
61
67
|
onTab(e: Event): void;
|
|
62
68
|
onKeydown: (e: KeyboardEvent) => void;
|
|
63
69
|
private updateDisabled;
|
|
64
|
-
private
|
|
70
|
+
private disableFirstUnlockedCheckedCheckbox;
|
|
71
|
+
private enableLastDisabledColumn;
|
|
65
72
|
private setDisabledState;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
73
|
+
checkBoxClick(e: any): void;
|
|
74
|
+
onCheckboxChange(checkedState: any, column: any, _index: number): void;
|
|
75
|
+
private setTabindex;
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnListComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnListComponent, "kendo-grid-columnlist", never, { "columns": { "alias": "columns"; "required": false; }; "filteredColumns": { "alias": "filteredColumns"; "required": false; }; "autoSync": { "alias": "autoSync"; "required": false; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; }; "isFiltered": { "alias": "isFiltered"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "allowHideAll": { "alias": "allowHideAll"; "required": false; }; "applyText": { "alias": "applyText"; "required": false; }; "resetText": { "alias": "resetText"; "required": false; }; "isLast": { "alias": "isLast"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "service": { "alias": "service"; "required": false; }; "filterable": { "alias": "filterable"; "required": false; }; }, { "reset": "reset"; "apply": "apply"; "columnChange": "columnChange"; }, never, never, true, never>;
|
|
69
78
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { EventEmitter,
|
|
5
|
+
import { EventEmitter, ElementRef } from '@angular/core';
|
|
6
6
|
import { ColumnInfoService } from '../common/column-info.service';
|
|
7
7
|
import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
8
8
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
@@ -35,7 +35,6 @@ import * as i0 from "@angular/core";
|
|
|
35
35
|
export declare class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
36
36
|
ctx: ContextService;
|
|
37
37
|
private columnInfoService;
|
|
38
|
-
private changeDetector;
|
|
39
38
|
private hostElement;
|
|
40
39
|
/**
|
|
41
40
|
* Fires when the content expands.
|
|
@@ -60,11 +59,7 @@ export declare class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
|
60
59
|
actionsClass: string;
|
|
61
60
|
get columns(): any;
|
|
62
61
|
columnsIcon: SVGIcon;
|
|
63
|
-
constructor(ctx: ContextService, columnInfoService: ColumnInfoService,
|
|
64
|
-
/**
|
|
65
|
-
* @hidden
|
|
66
|
-
*/
|
|
67
|
-
onApply(changed: any[]): void;
|
|
62
|
+
constructor(ctx: ContextService, columnInfoService: ColumnInfoService, hostElement: ElementRef);
|
|
68
63
|
/**
|
|
69
64
|
* @hidden
|
|
70
65
|
*/
|
package/columns/column-base.d.ts
CHANGED
|
@@ -40,6 +40,14 @@ export declare class ColumnBase implements AfterViewInit {
|
|
|
40
40
|
* @hidden
|
|
41
41
|
*/
|
|
42
42
|
initialMinResizableWidth: number;
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
initiallyChecked: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
50
|
+
currentlyChecked: boolean;
|
|
43
51
|
/**
|
|
44
52
|
* @hidden
|
|
45
53
|
*/
|
package/directives.d.ts
CHANGED
|
@@ -66,7 +66,6 @@ import { FilterCellComponent } from "./filtering/cell/filter-cell.component";
|
|
|
66
66
|
import { NumericFilterCellComponent } from "./filtering/cell/numeric-filter-cell.component";
|
|
67
67
|
import { StringFilterCellComponent } from "./filtering/cell/string-filter-cell.component";
|
|
68
68
|
import { FilterRowComponent } from "./filtering/filter-row.component";
|
|
69
|
-
import { ColumnMenuChooserItemCheckedDirective } from "./column-menu/column-chooser-item-checked.directive";
|
|
70
69
|
import { ColumnChooserComponent } from "./column-menu/column-chooser.component";
|
|
71
70
|
import { ColumnChooserToolbarDirective } from "./rendering/toolbar/tools/column-chooser-tool.directive";
|
|
72
71
|
import { ColumnListComponent } from "./column-menu/column-list.component";
|
|
@@ -211,7 +210,7 @@ export declare const KENDO_GRID_FILTER_ROW: readonly [typeof FilterRowComponent,
|
|
|
211
210
|
*
|
|
212
211
|
* Utility array that contains the former ColumnMenu module declarations
|
|
213
212
|
*/
|
|
214
|
-
export declare const KENDO_GRID_COLUMN_MENU_DECLARATIONS: readonly [typeof
|
|
213
|
+
export declare const KENDO_GRID_COLUMN_MENU_DECLARATIONS: readonly [typeof ColumnListComponent, typeof ColumnChooserComponent, typeof ColumnChooserToolbarDirective, typeof ColumnMenuChooserComponent, typeof ColumnMenuFilterComponent, typeof ColumnMenuItemComponent, typeof ColumnMenuItemContentTemplateDirective, typeof ColumnMenuSortComponent, typeof ColumnMenuComponent, typeof ColumnMenuLockComponent, typeof ColumnMenuTemplateDirective, typeof ColumnMenuContainerComponent, typeof ColumnMenuItemDirective, typeof ColumnMenuStickComponent, typeof ColumnMenuPositionComponent, typeof ColumnMenuAutoSizeColumnComponent, typeof ColumnMenuAutoSizeAllColumnsComponent];
|
|
215
214
|
/**
|
|
216
215
|
* @hidden
|
|
217
216
|
*
|
|
@@ -24,7 +24,6 @@ import { ColumnMenuItemComponent } from '../column-menu/column-menu-item.compone
|
|
|
24
24
|
import { ColumnMenuItemDirective } from '../column-menu/column-menu-item.directive';
|
|
25
25
|
import { hasFilter, hasSort, hasLock, hasStick, hasColumnChooser, hasAutoSizeColumn, hasPosition, hasAutoSizeAllColumns } from '../column-menu/utils';
|
|
26
26
|
import { ColumnMenuService } from '../column-menu/column-menu.service';
|
|
27
|
-
import { ColumnListComponent } from '../column-menu/column-list.component';
|
|
28
27
|
import { ContextService } from '../common/provider.service';
|
|
29
28
|
import { AdaptiveService } from '@progress/kendo-angular-utils';
|
|
30
29
|
import { SortService } from '../common/sort.service';
|
|
@@ -34,6 +33,7 @@ import { directions } from '../rendering/toolbar/tools/sort-toolbar-tool.compone
|
|
|
34
33
|
import { EventsOutsideAngularDirective, replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
35
34
|
import { FormComponent } from '../editing/form';
|
|
36
35
|
import { GroupToolbarToolComponent } from '../rendering/toolbar/tools/group-toolbar-tool.component';
|
|
36
|
+
import { ColumnChooserContentComponent } from '../column-menu/column-chooser-content.component';
|
|
37
37
|
import * as i0 from "@angular/core";
|
|
38
38
|
import * as i1 from "../column-menu/column-menu.service";
|
|
39
39
|
import * as i2 from "../common/adaptiveness.service";
|
|
@@ -62,7 +62,6 @@ export class AdaptiveRendererComponent {
|
|
|
62
62
|
cancelIcon = cancelIcon;
|
|
63
63
|
saveIcon = saveIcon;
|
|
64
64
|
columns;
|
|
65
|
-
actionsClass = 'k-actions';
|
|
66
65
|
externalEditingSettings;
|
|
67
66
|
get hasSort() {
|
|
68
67
|
return hasSort(this.ctx.grid.columnMenu, this.adaptiveGridService.column);
|
|
@@ -160,7 +159,7 @@ export class AdaptiveRendererComponent {
|
|
|
160
159
|
get hasCheckCloseIcon() {
|
|
161
160
|
return this.adaptiveGridService.viewType === 'sortToolbarTool' || this.adaptiveGridService.viewType === 'groupToolbarTool';
|
|
162
161
|
}
|
|
163
|
-
|
|
162
|
+
columnChooserContent;
|
|
164
163
|
filterToolbarToolTemplate;
|
|
165
164
|
filterMenuContainer;
|
|
166
165
|
actionSheet;
|
|
@@ -224,7 +223,7 @@ export class AdaptiveRendererComponent {
|
|
|
224
223
|
this.actionSheet.nextView();
|
|
225
224
|
}
|
|
226
225
|
applyChanges() {
|
|
227
|
-
this.
|
|
226
|
+
this.columnChooserContent.applyChanges();
|
|
228
227
|
this.actionSheet.toggle(false);
|
|
229
228
|
}
|
|
230
229
|
sortBy(column) {
|
|
@@ -276,10 +275,11 @@ export class AdaptiveRendererComponent {
|
|
|
276
275
|
this.adaptiveGridService.notifyAnimationEnd();
|
|
277
276
|
}
|
|
278
277
|
cancelChanges() {
|
|
279
|
-
this.
|
|
278
|
+
this.columnChooserContent.cancelChanges();
|
|
279
|
+
this.columnChooserContent.cdr.detectChanges();
|
|
280
280
|
}
|
|
281
281
|
onTab(event) {
|
|
282
|
-
this.
|
|
282
|
+
this.columnChooserContent.onTab(event);
|
|
283
283
|
}
|
|
284
284
|
saveEditing() {
|
|
285
285
|
const { event, formGroup, externalEditingDirective } = this.externalEditingSettings;
|
|
@@ -287,7 +287,7 @@ export class AdaptiveRendererComponent {
|
|
|
287
287
|
this.actionSheet.toggle(false);
|
|
288
288
|
}
|
|
289
289
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AdaptiveRendererComponent, deps: [{ token: i1.ColumnMenuService }, { token: i2.AdaptiveGridService }, { token: i3.FilterService }, { token: i4.ContextService }, { token: i5.AdaptiveService }, { token: i6.SortService }, { token: i7.ColumnInfoService }], target: i0.ɵɵFactoryTarget.Component });
|
|
290
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AdaptiveRendererComponent, isStandalone: true, selector: "kendo-grid-adaptive-renderer", viewQueries: [{ propertyName: "
|
|
290
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AdaptiveRendererComponent, isStandalone: true, selector: "kendo-grid-adaptive-renderer", viewQueries: [{ propertyName: "columnChooserContent", first: true, predicate: ["columnChooserContent"], descendants: true }, { propertyName: "filterToolbarToolTemplate", first: true, predicate: ["filterToolbarToolTemplate"], descendants: true, read: ViewContainerRef }, { propertyName: "filterMenuContainer", first: true, predicate: ["filterMenuContainer"], descendants: true }, { propertyName: "actionSheet", first: true, predicate: ActionSheetComponent, descendants: true }, { propertyName: "groupToolbarTool", first: true, predicate: GroupToolbarToolComponent, descendants: true }], ngImport: i0, template: `
|
|
291
291
|
<kendo-actionsheet
|
|
292
292
|
[cssClass]="{
|
|
293
293
|
'k-adaptive-actionsheet': true,
|
|
@@ -347,19 +347,14 @@ export class AdaptiveRendererComponent {
|
|
|
347
347
|
</ng-container>
|
|
348
348
|
</ng-template>
|
|
349
349
|
<ng-template kendoActionSheetContentTemplate>
|
|
350
|
-
<kendo-grid-
|
|
351
|
-
#
|
|
352
|
-
[columns]="
|
|
353
|
-
[ariaLabel]="messageFor('columns')"
|
|
350
|
+
<kendo-grid-column-chooser-content
|
|
351
|
+
#columnChooserContent
|
|
352
|
+
[columns]="columns"
|
|
354
353
|
[isLast]="true"
|
|
355
|
-
[showActions]="false"
|
|
356
|
-
[applyText]="messageFor('columnsApply')"
|
|
357
|
-
[resetText]="messageFor('columnsReset')"
|
|
358
354
|
[autoSync]="false"
|
|
359
|
-
[actionsClass]="actionsClass"
|
|
360
355
|
[allowHideAll]="false"
|
|
361
356
|
>
|
|
362
|
-
</kendo-grid-
|
|
357
|
+
</kendo-grid-column-chooser-content>
|
|
363
358
|
</ng-template>
|
|
364
359
|
<ng-template kendoActionSheetFooterTemplate>
|
|
365
360
|
<ng-container [ngTemplateOutlet]="actionSheetFooterTemplate">
|
|
@@ -501,20 +496,15 @@ export class AdaptiveRendererComponent {
|
|
|
501
496
|
</ng-template>
|
|
502
497
|
|
|
503
498
|
<ng-template kendoActionSheetContentTemplate>
|
|
504
|
-
<kendo-grid-
|
|
499
|
+
<kendo-grid-column-chooser-content
|
|
505
500
|
*ngIf="adaptiveGridService.secondaryView === 'columnChooser'"
|
|
506
|
-
#
|
|
501
|
+
#columnChooserContent
|
|
507
502
|
[columns]="adaptiveGridService.columns"
|
|
508
|
-
[ariaLabel]="messageFor('columns')"
|
|
509
503
|
[isLast]="true"
|
|
510
|
-
[showActions]="false"
|
|
511
|
-
[applyText]="messageFor('columnsApply')"
|
|
512
|
-
[resetText]="messageFor('columnsReset')"
|
|
513
504
|
[autoSync]="false"
|
|
514
|
-
[actionsClass]="actionsClass"
|
|
515
505
|
[allowHideAll]="false"
|
|
516
506
|
>
|
|
517
|
-
</kendo-grid-
|
|
507
|
+
</kendo-grid-column-chooser-content>
|
|
518
508
|
<kendo-grid-filter-menu-container
|
|
519
509
|
*ngIf="adaptiveGridService.secondaryView === 'columnFilter'"
|
|
520
510
|
[column]="adaptiveGridService.column"
|
|
@@ -713,7 +703,7 @@ export class AdaptiveRendererComponent {
|
|
|
713
703
|
{{messageFor('filterFilterButton')}}
|
|
714
704
|
</button>
|
|
715
705
|
</ng-template>
|
|
716
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "component", type: ActionSheetViewComponent, selector: "kendo-actionsheet-view", inputs: ["title", "subtitle", "titleId"] }, { kind: "component", type: FilterToolbarToolComponent, selector: "kendo-filter-toolbar-tool", outputs: ["close"] }, { kind: "component", type: GroupToolbarToolComponent, selector: "kendo-group-toolbar-tool", inputs: ["adaptive"], outputs: ["close", "groupClear"] }, { kind: "component", type: ButtonDirective, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: ActionSheetHeaderTemplateDirective, selector: "[kendoActionSheetHeaderTemplate]" }, { kind: "directive", type: ActionSheetContentTemplateDirective, selector: "[kendoActionSheetContentTemplate]" }, { kind: "directive", type: ActionSheetFooterTemplateDirective, selector: "[kendoActionSheetFooterTemplate]" }, { kind: "component", type: ColumnMenuContainerComponent, selector: "kendo-grid-columnmenu-container" }, { kind: "component", type: ColumnMenuFilterComponent, selector: "kendo-grid-columnmenu-filter", inputs: ["expanded", "isLast"], outputs: ["expand", "collapse"] }, { kind: "component", type: ColumnMenuSortComponent, selector: "kendo-grid-columnmenu-sort" }, { kind: "component", type: ColumnMenuLockComponent, selector: "kendo-grid-columnmenu-lock" }, { kind: "component", type: ColumnMenuStickComponent, selector: "kendo-grid-columnmenu-stick" }, { kind: "component", type: ColumnMenuPositionComponent, selector: "kendo-grid-columnmenu-position", inputs: ["expanded", "showLock", "showStick", "isLast"], outputs: ["expand", "collapse"] }, { kind: "component", type: ColumnMenuChooserComponent, selector: "kendo-grid-columnmenu-chooser", inputs: ["expanded", "isLast"], outputs: ["expand", "collapse"] }, { kind: "component", type: ColumnMenuAutoSizeColumnComponent, selector: "kendo-grid-columnmenu-autosize-column", inputs: ["column"] }, { kind: "component", type: ColumnMenuAutoSizeAllColumnsComponent, selector: "kendo-grid-columnmenu-autosize-all-columns" }, { kind: "component", type: ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "svgIcon", "indicatorIcon", "text", "selected", "disabled", "expanded", "focused", "service", "column"], outputs: ["itemClick", "expand", "collapse"] }, { kind: "directive", type: ColumnMenuItemDirective, selector: "[kendoGridColumnMenuItem]", inputs: ["kendoGridColumnMenuItem"] }, { kind: "component", type:
|
|
706
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "component", type: ActionSheetViewComponent, selector: "kendo-actionsheet-view", inputs: ["title", "subtitle", "titleId"] }, { kind: "component", type: FilterToolbarToolComponent, selector: "kendo-filter-toolbar-tool", outputs: ["close"] }, { kind: "component", type: GroupToolbarToolComponent, selector: "kendo-group-toolbar-tool", inputs: ["adaptive"], outputs: ["close", "groupClear"] }, { kind: "component", type: ButtonDirective, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: ActionSheetHeaderTemplateDirective, selector: "[kendoActionSheetHeaderTemplate]" }, { kind: "directive", type: ActionSheetContentTemplateDirective, selector: "[kendoActionSheetContentTemplate]" }, { kind: "directive", type: ActionSheetFooterTemplateDirective, selector: "[kendoActionSheetFooterTemplate]" }, { kind: "component", type: ColumnMenuContainerComponent, selector: "kendo-grid-columnmenu-container" }, { kind: "component", type: ColumnMenuFilterComponent, selector: "kendo-grid-columnmenu-filter", inputs: ["expanded", "isLast"], outputs: ["expand", "collapse"] }, { kind: "component", type: ColumnMenuSortComponent, selector: "kendo-grid-columnmenu-sort" }, { kind: "component", type: ColumnMenuLockComponent, selector: "kendo-grid-columnmenu-lock" }, { kind: "component", type: ColumnMenuStickComponent, selector: "kendo-grid-columnmenu-stick" }, { kind: "component", type: ColumnMenuPositionComponent, selector: "kendo-grid-columnmenu-position", inputs: ["expanded", "showLock", "showStick", "isLast"], outputs: ["expand", "collapse"] }, { kind: "component", type: ColumnMenuChooserComponent, selector: "kendo-grid-columnmenu-chooser", inputs: ["expanded", "isLast"], outputs: ["expand", "collapse"] }, { kind: "component", type: ColumnMenuAutoSizeColumnComponent, selector: "kendo-grid-columnmenu-autosize-column", inputs: ["column"] }, { kind: "component", type: ColumnMenuAutoSizeAllColumnsComponent, selector: "kendo-grid-columnmenu-autosize-all-columns" }, { kind: "component", type: ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "svgIcon", "indicatorIcon", "text", "selected", "disabled", "expanded", "focused", "service", "column"], outputs: ["itemClick", "expand", "collapse"] }, { kind: "directive", type: ColumnMenuItemDirective, selector: "[kendoGridColumnMenuItem]", inputs: ["kendoGridColumnMenuItem"] }, { kind: "component", type: FilterMenuContainerComponent, selector: "kendo-grid-filter-menu-container", inputs: ["column", "isLast", "isExpanded", "menuTabbingService", "filter", "actionsClass"], outputs: ["close"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: FormComponent, selector: "kendo-grid-external-form", inputs: ["controls", "formSettings", "formGroup", "actionButtons"], outputs: ["formSubmit"] }, { kind: "component", type: ColumnChooserContentComponent, selector: "kendo-grid-column-chooser-content", inputs: ["filterable", "showSelectAll", "showCheckedCount", "allowHideAll", "autoSync", "actionsClass", "closeOnReset", "columns", "isLast", "isExpanded", "service"], outputs: ["close"] }] });
|
|
717
707
|
}
|
|
718
708
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AdaptiveRendererComponent, decorators: [{
|
|
719
709
|
type: Component,
|
|
@@ -779,19 +769,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
779
769
|
</ng-container>
|
|
780
770
|
</ng-template>
|
|
781
771
|
<ng-template kendoActionSheetContentTemplate>
|
|
782
|
-
<kendo-grid-
|
|
783
|
-
#
|
|
784
|
-
[columns]="
|
|
785
|
-
[ariaLabel]="messageFor('columns')"
|
|
772
|
+
<kendo-grid-column-chooser-content
|
|
773
|
+
#columnChooserContent
|
|
774
|
+
[columns]="columns"
|
|
786
775
|
[isLast]="true"
|
|
787
|
-
[showActions]="false"
|
|
788
|
-
[applyText]="messageFor('columnsApply')"
|
|
789
|
-
[resetText]="messageFor('columnsReset')"
|
|
790
776
|
[autoSync]="false"
|
|
791
|
-
[actionsClass]="actionsClass"
|
|
792
777
|
[allowHideAll]="false"
|
|
793
778
|
>
|
|
794
|
-
</kendo-grid-
|
|
779
|
+
</kendo-grid-column-chooser-content>
|
|
795
780
|
</ng-template>
|
|
796
781
|
<ng-template kendoActionSheetFooterTemplate>
|
|
797
782
|
<ng-container [ngTemplateOutlet]="actionSheetFooterTemplate">
|
|
@@ -933,20 +918,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
933
918
|
</ng-template>
|
|
934
919
|
|
|
935
920
|
<ng-template kendoActionSheetContentTemplate>
|
|
936
|
-
<kendo-grid-
|
|
921
|
+
<kendo-grid-column-chooser-content
|
|
937
922
|
*ngIf="adaptiveGridService.secondaryView === 'columnChooser'"
|
|
938
|
-
#
|
|
923
|
+
#columnChooserContent
|
|
939
924
|
[columns]="adaptiveGridService.columns"
|
|
940
|
-
[ariaLabel]="messageFor('columns')"
|
|
941
925
|
[isLast]="true"
|
|
942
|
-
[showActions]="false"
|
|
943
|
-
[applyText]="messageFor('columnsApply')"
|
|
944
|
-
[resetText]="messageFor('columnsReset')"
|
|
945
926
|
[autoSync]="false"
|
|
946
|
-
[actionsClass]="actionsClass"
|
|
947
927
|
[allowHideAll]="false"
|
|
948
928
|
>
|
|
949
|
-
</kendo-grid-
|
|
929
|
+
</kendo-grid-column-chooser-content>
|
|
950
930
|
<kendo-grid-filter-menu-container
|
|
951
931
|
*ngIf="adaptiveGridService.secondaryView === 'columnFilter'"
|
|
952
932
|
[column]="adaptiveGridService.column"
|
|
@@ -1171,16 +1151,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1171
1151
|
ColumnMenuAutoSizeAllColumnsComponent,
|
|
1172
1152
|
ColumnMenuItemComponent,
|
|
1173
1153
|
ColumnMenuItemDirective,
|
|
1174
|
-
ColumnListComponent,
|
|
1175
1154
|
FilterMenuContainerComponent,
|
|
1176
1155
|
ColumnMenuLockComponent,
|
|
1177
1156
|
EventsOutsideAngularDirective,
|
|
1178
|
-
FormComponent
|
|
1157
|
+
FormComponent,
|
|
1158
|
+
ColumnChooserContentComponent
|
|
1179
1159
|
]
|
|
1180
1160
|
}]
|
|
1181
|
-
}], ctorParameters: function () { return [{ type: i1.ColumnMenuService }, { type: i2.AdaptiveGridService }, { type: i3.FilterService }, { type: i4.ContextService }, { type: i5.AdaptiveService }, { type: i6.SortService }, { type: i7.ColumnInfoService }]; }, propDecorators: {
|
|
1161
|
+
}], ctorParameters: function () { return [{ type: i1.ColumnMenuService }, { type: i2.AdaptiveGridService }, { type: i3.FilterService }, { type: i4.ContextService }, { type: i5.AdaptiveService }, { type: i6.SortService }, { type: i7.ColumnInfoService }]; }, propDecorators: { columnChooserContent: [{
|
|
1182
1162
|
type: ViewChild,
|
|
1183
|
-
args: ['
|
|
1163
|
+
args: ['columnChooserContent', { static: false }]
|
|
1184
1164
|
}], filterToolbarToolTemplate: [{
|
|
1185
1165
|
type: ViewChild,
|
|
1186
1166
|
args: ['filterToolbarToolTemplate', { read: ViewContainerRef, static: false }]
|