@progress/kendo-angular-grid 19.0.0-develop.17 → 19.0.0-develop.18

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 (70) hide show
  1. package/adaptiveness/adaptive-mode.d.ts +12 -0
  2. package/adaptiveness/adaptive-renderer.component.d.ts +84 -0
  3. package/column-menu/column-chooser.component.d.ts +4 -0
  4. package/column-menu/column-list.component.d.ts +9 -3
  5. package/column-menu/column-menu-item.component.d.ts +38 -2
  6. package/column-menu/column-menu-item.directive.d.ts +5 -2
  7. package/column-menu/column-menu.component.d.ts +4 -2
  8. package/common/adaptiveness.service.d.ts +50 -0
  9. package/common/single-popup.service.d.ts +3 -1
  10. package/directives.d.ts +1 -1
  11. package/editing-directives/external-editing.directive.d.ts +3 -1
  12. package/esm2022/adaptiveness/adaptive-mode.mjs +5 -0
  13. package/esm2022/adaptiveness/adaptive-renderer.component.mjs +1106 -0
  14. package/esm2022/column-menu/column-chooser.component.mjs +13 -11
  15. package/esm2022/column-menu/column-list.component.mjs +42 -8
  16. package/esm2022/column-menu/column-menu-autosize-all.component.mjs +1 -1
  17. package/esm2022/column-menu/column-menu-autosize.component.mjs +1 -1
  18. package/esm2022/column-menu/column-menu-chooser.component.mjs +1 -1
  19. package/esm2022/column-menu/column-menu-container.component.mjs +1 -1
  20. package/esm2022/column-menu/column-menu-filter.component.mjs +1 -1
  21. package/esm2022/column-menu/column-menu-item.component.mjs +106 -11
  22. package/esm2022/column-menu/column-menu-item.directive.mjs +14 -5
  23. package/esm2022/column-menu/column-menu-lock.component.mjs +1 -1
  24. package/esm2022/column-menu/column-menu-position.component.mjs +1 -1
  25. package/esm2022/column-menu/column-menu-sort.component.mjs +1 -1
  26. package/esm2022/column-menu/column-menu-stick.component.mjs +1 -1
  27. package/esm2022/column-menu/column-menu.component.mjs +60 -41
  28. package/esm2022/common/adaptiveness.service.mjs +72 -0
  29. package/esm2022/common/single-popup.service.mjs +9 -3
  30. package/esm2022/directives.mjs +1 -1
  31. package/esm2022/editing-directives/external-editing.directive.mjs +28 -14
  32. package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +2 -2
  33. package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +2 -0
  34. package/esm2022/filtering/menu/date-filter-menu.component.mjs +4 -0
  35. package/esm2022/filtering/menu/filter-menu-container.component.mjs +21 -10
  36. package/esm2022/filtering/menu/filter-menu-input-wrapper.component.mjs +24 -4
  37. package/esm2022/filtering/menu/filter-menu.component.mjs +44 -29
  38. package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +4 -0
  39. package/esm2022/filtering/menu/string-filter-menu.component.mjs +4 -0
  40. package/esm2022/grid.component.mjs +143 -28
  41. package/esm2022/grid.module.mjs +1 -1
  42. package/esm2022/index.mjs +1 -1
  43. package/esm2022/localization/messages.mjs +62 -2
  44. package/esm2022/package-metadata.mjs +2 -2
  45. package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +203 -0
  46. package/esm2022/rendering/toolbar/tools/filter-command-tool.directive.mjs +39 -26
  47. package/esm2022/rendering/toolbar/tools/filter-tool-wrapper.component.mjs +19 -7
  48. package/esm2022/rendering/toolbar/tools/filter-toolbar-tool.component.mjs +26 -4
  49. package/esm2022/rendering/toolbar/tools/sort-command-tool.directive.mjs +21 -8
  50. package/esm2022/rendering/toolbar/tools/sort-toolbar-tool.component.mjs +16 -3
  51. package/esm2022/utils.mjs +0 -13
  52. package/fesm2022/progress-kendo-angular-grid.mjs +2960 -1360
  53. package/filtering/menu/date-filter-menu-input.component.d.ts +1 -1
  54. package/filtering/menu/filter-menu-container.component.d.ts +14 -4
  55. package/filtering/menu/filter-menu-input-wrapper.component.d.ts +8 -3
  56. package/filtering/menu/filter-menu.component.d.ts +6 -3
  57. package/grid.component.d.ts +30 -3
  58. package/grid.module.d.ts +1 -1
  59. package/index.d.ts +1 -1
  60. package/localization/messages.d.ts +42 -2
  61. package/package.json +21 -20
  62. package/{column-menu → rendering/toolbar/tools}/column-chooser-tool.directive.d.ts +13 -3
  63. package/rendering/toolbar/tools/filter-command-tool.directive.d.ts +3 -1
  64. package/rendering/toolbar/tools/filter-tool-wrapper.component.d.ts +5 -5
  65. package/rendering/toolbar/tools/filter-toolbar-tool.component.d.ts +4 -1
  66. package/rendering/toolbar/tools/sort-command-tool.directive.d.ts +3 -1
  67. package/rendering/toolbar/tools/sort-toolbar-tool.component.d.ts +4 -0
  68. package/schematics/ngAdd/index.js +4 -4
  69. package/utils.d.ts +0 -4
  70. package/esm2022/column-menu/column-chooser-tool.directive.mjs +0 -160
@@ -0,0 +1,12 @@
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
+ /**
6
+ * Specifies the adaptive rendering of the component.
7
+ *
8
+ * The supported values are:
9
+ * * `none`—(default)
10
+ * * `auto`
11
+ */
12
+ export type AdaptiveMode = 'none' | 'auto';
@@ -0,0 +1,84 @@
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 { ViewContainerRef } from '@angular/core';
6
+ import { AdaptiveGridService } from '../common/adaptiveness.service';
7
+ import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
8
+ import { FilterMenuContainerComponent } from '../filtering/menu/filter-menu-container.component';
9
+ import { SVGIcon } from '@progress/kendo-svg-icons';
10
+ import { FilterService } from '../filtering/filter.service';
11
+ import { ColumnMenuService } from '../column-menu/column-menu.service';
12
+ import { ColumnListComponent } from '../column-menu/column-list.component';
13
+ import { ContextService } from '../common/provider.service';
14
+ import { AdaptiveService } from '@progress/kendo-angular-utils';
15
+ import { SortService } from '../common/sort.service';
16
+ import { ColumnComponent } from '../columns/column.component';
17
+ import { ColumnInfoService } from '../common/column-info.service';
18
+ import { ColumnBase } from '../columns/column-base';
19
+ import { SortDescriptor } from '@progress/kendo-data-query';
20
+ import * as i0 from "@angular/core";
21
+ /**
22
+ * @hidden
23
+ */
24
+ export declare class AdaptiveRendererComponent {
25
+ service: ColumnMenuService;
26
+ adaptiveGridService: AdaptiveGridService;
27
+ private filterService;
28
+ ctx: ContextService;
29
+ adaptiveService: AdaptiveService;
30
+ private sortService;
31
+ private columnInfoService;
32
+ xIcon: SVGIcon;
33
+ checkIcon: SVGIcon;
34
+ filterIcon: SVGIcon;
35
+ arrowRotateCcwIcon: SVGIcon;
36
+ chevronLeft: SVGIcon;
37
+ filterClearIcon: SVGIcon;
38
+ cancelIcon: SVGIcon;
39
+ saveIcon: SVGIcon;
40
+ columns: Array<ColumnBase>;
41
+ actionsClass: string;
42
+ externalEditingSettings: any;
43
+ get hasSort(): boolean;
44
+ get hasColumnChooser(): boolean;
45
+ get hasFilter(): boolean;
46
+ get hasAutoSizeColumn(): boolean;
47
+ get hasAutoSizeAllColumns(): boolean;
48
+ get hasLock(): boolean;
49
+ get hasStick(): boolean;
50
+ get hasPosition(): boolean;
51
+ getColumnComponent(column: ColumnBase): ColumnComponent;
52
+ get hasTitle(): boolean;
53
+ get hasSubtitle(): boolean;
54
+ get actionSheetTitle(): string;
55
+ get adaptiveFilterTitle(): string;
56
+ get columnMenuTitle(): string;
57
+ get filterLabel(): string;
58
+ columnList: ColumnListComponent;
59
+ filterToolbarToolTemplate: ViewContainerRef;
60
+ filterMenuContainer: FilterMenuContainerComponent;
61
+ actionSheet: ActionSheetComponent;
62
+ private adaptiveSizeChangeSubscription;
63
+ constructor(service: ColumnMenuService, adaptiveGridService: AdaptiveGridService, filterService: FilterService, ctx: ContextService, adaptiveService: AdaptiveService, sortService: SortService, columnInfoService: ColumnInfoService);
64
+ ngOnInit(): void;
65
+ ngOnDestroy(): void;
66
+ messageFor: (token: string) => string;
67
+ close(): void;
68
+ prevView(): void;
69
+ clearFilters(): void;
70
+ navigateToColumnsView(): void;
71
+ navigateToFilterView(): void;
72
+ navigateToPositionView(): void;
73
+ applyChanges(): void;
74
+ sortBy(column: ColumnBase): void;
75
+ toggleSort(column: ColumnBase): void;
76
+ getDescriptor(column: ColumnBase): SortDescriptor[];
77
+ clearSorting(): void;
78
+ onAnimationEnd(): void;
79
+ cancelChanges(): void;
80
+ onTab(event: KeyboardEvent): void;
81
+ saveEditing(): void;
82
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdaptiveRendererComponent, never>;
83
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdaptiveRendererComponent, "kendo-grid-adaptive-renderer", never, {}, {}, never, never, true, never>;
84
+ }
@@ -53,6 +53,10 @@ export declare class ColumnChooserComponent implements OnDestroy {
53
53
  private escapeListener;
54
54
  constructor(ctx: ContextService, columnInfoService: ColumnInfoService, popupService: PopupService, ngZone: NgZone, renderer: Renderer2, changeDetector: ChangeDetectorRef);
55
55
  ngOnDestroy(): void;
56
+ /**
57
+ * @hidden
58
+ */
59
+ messageFor: (token: string) => string;
56
60
  /**
57
61
  * @hidden
58
62
  */
@@ -5,6 +5,8 @@
5
5
  import { ElementRef, NgZone, Renderer2, EventEmitter, OnInit, OnDestroy, SimpleChanges } from '@angular/core';
6
6
  import { ColumnMenuService } from './column-menu.service';
7
7
  import { ColumnListKeyboardNavigation } from './column-list-kb-nav.service';
8
+ import { ContextService } from '../common/provider.service';
9
+ import { AdaptiveGridService } from '../common/adaptiveness.service';
8
10
  import * as i0 from "@angular/core";
9
11
  /**
10
12
  * @hidden
@@ -14,14 +16,18 @@ export declare class ColumnListComponent implements OnInit, OnDestroy {
14
16
  private ngZone;
15
17
  private renderer;
16
18
  private listNavigationService;
19
+ private adaptiveGridService;
20
+ private ctx;
17
21
  checkIcon: import("@progress/kendo-svg-icons").SVGIcon;
18
22
  arrowRotateCcwIcon: import("@progress/kendo-svg-icons").SVGIcon;
19
23
  className: boolean;
24
+ listSize: boolean;
20
25
  reset: EventEmitter<any>;
21
26
  apply: EventEmitter<any>;
22
27
  columnChange: EventEmitter<any>;
23
28
  set columns(value: any[]);
24
29
  get columns(): any[];
30
+ showActions: boolean;
25
31
  autoSync: boolean;
26
32
  ariaLabel: string;
27
33
  allowHideAll: boolean;
@@ -43,7 +49,7 @@ export declare class ColumnListComponent implements OnInit, OnDestroy {
43
49
  private _columns;
44
50
  private allColumns;
45
51
  private domSubscriptions;
46
- constructor(element: ElementRef, ngZone: NgZone, renderer: Renderer2, listNavigationService: ColumnListKeyboardNavigation);
52
+ constructor(element: ElementRef, ngZone: NgZone, renderer: Renderer2, listNavigationService: ColumnListKeyboardNavigation, adaptiveGridService: AdaptiveGridService, ctx: ContextService);
47
53
  ngOnInit(): void;
48
54
  ngAfterViewInit(): void;
49
55
  ngOnChanges(changes: SimpleChanges): void;
@@ -57,6 +63,6 @@ export declare class ColumnListComponent implements OnInit, OnDestroy {
57
63
  private updateColumnState;
58
64
  private setDisabledState;
59
65
  private handleCheckBoxClick;
60
- static ɵfac: i0.ɵɵFactoryDeclaration<ColumnListComponent, never>;
61
- static ɵcmp: i0.ɵɵComponentDeclaration<ColumnListComponent, "kendo-grid-columnlist", never, { "columns": { "alias": "columns"; "required": false; }; "autoSync": { "alias": "autoSync"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "allowHideAll": { "alias": "allowHideAll"; "required": false; }; "applyText": { "alias": "applyText"; "required": false; }; "resetText": { "alias": "resetText"; "required": false; }; "actionsClass": { "alias": "actionsClass"; "required": false; }; "isLast": { "alias": "isLast"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "service": { "alias": "service"; "required": false; }; }, { "reset": "reset"; "apply": "apply"; "columnChange": "columnChange"; }, never, never, true, never>;
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnListComponent, [null, null, null, null, { optional: true; }, { optional: true; }]>;
67
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColumnListComponent, "kendo-grid-columnlist", never, { "columns": { "alias": "columns"; "required": false; }; "showActions": { "alias": "showActions"; "required": false; }; "autoSync": { "alias": "autoSync"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "allowHideAll": { "alias": "allowHideAll"; "required": false; }; "applyText": { "alias": "applyText"; "required": false; }; "resetText": { "alias": "resetText"; "required": false; }; "actionsClass": { "alias": "actionsClass"; "required": false; }; "isLast": { "alias": "isLast"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; "service": { "alias": "service"; "required": false; }; }, { "reset": "reset"; "apply": "apply"; "columnChange": "columnChange"; }, never, never, true, never>;
62
68
  }
@@ -6,6 +6,10 @@ import { EventEmitter, OnChanges, AfterViewInit, NgZone } from '@angular/core';
6
6
  import { ColumnMenuItemContentTemplateDirective } from './column-menu-item-content-template.directive';
7
7
  import { SVGIcon } from '@progress/kendo-svg-icons';
8
8
  import { ColumnMenuService } from './column-menu.service';
9
+ import { ContextService } from '../common/provider.service';
10
+ import { AdaptiveGridService } from '../common/adaptiveness.service';
11
+ import { ColumnComponent } from '../columns/column.component';
12
+ import { SortDescriptor } from '@progress/kendo-data-query';
9
13
  import * as i0 from "@angular/core";
10
14
  /**
11
15
  * Represents an item that can be placed inside a
@@ -22,6 +26,16 @@ import * as i0 from "@angular/core";
22
26
  */
23
27
  export declare class ColumnMenuItemComponent implements AfterViewInit, OnChanges {
24
28
  private ngZone;
29
+ ctx: ContextService;
30
+ adaptiveGridService: AdaptiveGridService;
31
+ /**
32
+ * @hidden
33
+ */
34
+ sortAscSmallIcon: SVGIcon;
35
+ /**
36
+ * @hidden
37
+ */
38
+ sortDescSmallIcon: SVGIcon;
25
39
  /**
26
40
  * Fires when the item is clicked.
27
41
  */
@@ -64,21 +78,43 @@ export declare class ColumnMenuItemComponent implements AfterViewInit, OnChanges
64
78
  * Required to include the item in the column menu keyboard navigation sequence.
65
79
  */
66
80
  service: ColumnMenuService;
81
+ /**
82
+ * @hidden
83
+ */
84
+ column: ColumnComponent;
67
85
  contentTemplate: ColumnMenuItemContentTemplateDirective;
68
86
  contentState: string;
69
87
  contentId: string;
70
88
  chevronUpIcon: SVGIcon;
71
89
  chevronDownIcon: SVGIcon;
90
+ chevronRightIcon: SVGIcon;
91
+ filterIcon: SVGIcon;
92
+ /**
93
+ * @hidden
94
+ */
95
+ get hasFilters(): boolean;
72
96
  get expandedIcon(): string;
73
97
  get expandedSvgIcon(): SVGIcon;
74
- constructor(ngZone: NgZone);
98
+ constructor(ngZone: NgZone, ctx: ContextService, adaptiveGridService: AdaptiveGridService);
75
99
  ngAfterViewInit(): void;
76
100
  ngOnChanges(changes: any): void;
101
+ /**
102
+ * @hidden
103
+ */
104
+ sortDescriptor(field: string): SortDescriptor;
105
+ /**
106
+ * @hidden
107
+ */
108
+ showSortNumbering(column: ColumnComponent): boolean;
109
+ /**
110
+ * @hidden
111
+ */
112
+ sortOrder(field: string): number;
77
113
  /**
78
114
  * @hidden
79
115
  */
80
116
  onClick(e: any): void;
81
117
  private updateContentState;
82
118
  static ɵfac: i0.ɵɵFactoryDeclaration<ColumnMenuItemComponent, never>;
83
- static ɵcmp: i0.ɵɵComponentDeclaration<ColumnMenuItemComponent, "kendo-grid-columnmenu-item", never, { "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "text": { "alias": "text"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "service": { "alias": "service"; "required": false; }; }, { "itemClick": "itemClick"; "expand": "expand"; "collapse": "collapse"; }, ["contentTemplate"], never, true, never>;
119
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColumnMenuItemComponent, "kendo-grid-columnmenu-item", never, { "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "text": { "alias": "text"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "service": { "alias": "service"; "required": false; }; "column": { "alias": "column"; "required": false; }; }, { "itemClick": "itemClick"; "expand": "expand"; "collapse": "collapse"; }, ["contentTemplate"], never, true, never>;
84
120
  }
@@ -2,12 +2,15 @@
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 } from '@angular/core';
5
+ import { ChangeDetectorRef, ElementRef, NgZone, Renderer2 } from '@angular/core';
6
+ import { ContextService } from '../common/provider.service';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class ColumnMenuItemDirective {
8
9
  hostElement: ElementRef;
9
10
  private renderer;
10
11
  private ngZone;
12
+ private cdr;
13
+ private ctx;
11
14
  /**
12
15
  * The reference to the Grid column menu item. Required to include the item in the built-in keyboard navigation.
13
16
  */
@@ -34,7 +37,7 @@ export declare class ColumnMenuItemDirective {
34
37
  private _isLast;
35
38
  private columnMenuItems;
36
39
  private subs;
37
- constructor(hostElement: ElementRef, renderer: Renderer2, ngZone: NgZone);
40
+ constructor(hostElement: ElementRef, renderer: Renderer2, ngZone: NgZone, cdr: ChangeDetectorRef, ctx: ContextService);
38
41
  ngAfterViewInit(): void;
39
42
  ngOnDestroy(): void;
40
43
  private onTab;
@@ -12,6 +12,7 @@ import { SVGIcon } from '@progress/kendo-svg-icons';
12
12
  import { TabStripComponent } from '@progress/kendo-angular-layout';
13
13
  import { ColumnInfoService } from '../common/column-info.service';
14
14
  import { IdService } from '../common/id.service';
15
+ import { AdaptiveGridService } from '../common/adaptiveness.service';
15
16
  import * as i0 from "@angular/core";
16
17
  /**
17
18
  * Represents the [column menu](slug:columnmenu_grid#toc-customizing-the-position) component.
@@ -34,6 +35,7 @@ export declare class ColumnMenuComponent implements AfterViewInit, OnChanges, On
34
35
  private cdr;
35
36
  private columnInfoService;
36
37
  private idService;
38
+ adaptiveGridService: AdaptiveGridService;
37
39
  /**
38
40
  * @hidden
39
41
  */
@@ -109,7 +111,7 @@ export declare class ColumnMenuComponent implements AfterViewInit, OnChanges, On
109
111
  popupRef: any;
110
112
  private closeSubscription;
111
113
  private popupSubs;
112
- constructor(navigationService: NavigationService, popupService: SinglePopupService, service: ColumnMenuService, ctx: ContextService, renderer: Renderer2, cdr: ChangeDetectorRef, columnInfoService: ColumnInfoService, idService: IdService);
114
+ constructor(navigationService: NavigationService, popupService: SinglePopupService, service: ColumnMenuService, ctx: ContextService, renderer: Renderer2, cdr: ChangeDetectorRef, columnInfoService: ColumnInfoService, idService: IdService, adaptiveGridService: AdaptiveGridService);
113
115
  /**
114
116
  * @hidden
115
117
  */
@@ -176,6 +178,6 @@ export declare class ColumnMenuComponent implements AfterViewInit, OnChanges, On
176
178
  private getExpandedState;
177
179
  private updateAria;
178
180
  private focusRoot;
179
- static ɵfac: i0.ɵɵFactoryDeclaration<ColumnMenuComponent, [null, null, null, null, null, null, null, { optional: true; }]>;
181
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnMenuComponent, [null, null, null, null, null, null, null, { optional: true; }, null]>;
180
182
  static ɵcmp: i0.ɵɵComponentDeclaration<ColumnMenuComponent, "kendo-grid-column-menu", never, { "standalone": { "alias": "standalone"; "required": false; }; "column": { "alias": "column"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "columnMenuTemplate": { "alias": "columnMenuTemplate"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, never, true, never>;
181
183
  }
@@ -0,0 +1,50 @@
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 { ComponentRef } from "@angular/core";
6
+ import { Observable } from "rxjs";
7
+ import { AdaptiveService, AdaptiveSize } from "@progress/kendo-angular-utils";
8
+ import { PopupRef } from "@progress/kendo-angular-popup";
9
+ import { DialogRef } from "@progress/kendo-angular-dialog";
10
+ import { ColumnComponent } from "../columns/column.component";
11
+ import { ContextService } from "./provider.service";
12
+ import { FilterMenuContainerComponent } from "../filtering/menu/filter-menu-container.component";
13
+ import { ColumnMenuService } from "../column-menu/column-menu.service";
14
+ import * as i0 from "@angular/core";
15
+ type AdaptiveView = 'columnMenu' | 'filterMenu' | 'sortToolbarTool' | 'filterToolbarTool' | 'columnChooserToolbarTool' | 'externalEditing';
16
+ type SecondaryView = 'columnChooser' | 'columnPosition' | 'columnFilter';
17
+ /**
18
+ * @hidden
19
+ *
20
+ * The AdaptiveGridService is used to provide common information for the ActionSheet used in adaptive mode.
21
+ */
22
+ export declare class AdaptiveGridService {
23
+ private ctx;
24
+ private adaptiveService;
25
+ /**
26
+ * Observable that emits when the ActionSheet's views change animation ends.
27
+ */
28
+ get animationEnd(): Observable<void>;
29
+ columnMenuService: ColumnMenuService;
30
+ columns: ColumnComponent[];
31
+ secondaryView: SecondaryView;
32
+ viewType: AdaptiveView;
33
+ popupRef: PopupRef | DialogRef;
34
+ column: ColumnComponent;
35
+ filterMenuContainer: FilterMenuContainerComponent;
36
+ filterMenuContainerComponentRef: ComponentRef<FilterMenuContainerComponent>;
37
+ private animationEndSubject;
38
+ constructor(ctx: ContextService, adaptiveService: AdaptiveService);
39
+ submitFilter(): void;
40
+ resetFilter(): void;
41
+ reset(): void;
42
+ /**
43
+ * Emits an event to notify that the animation has ended.
44
+ */
45
+ notifyAnimationEnd(): void;
46
+ get windowSize(): AdaptiveSize;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdaptiveGridService, never>;
48
+ static ɵprov: i0.ɵɵInjectableDeclaration<AdaptiveGridService>;
49
+ }
50
+ export {};
@@ -8,6 +8,7 @@ import { PreventableEvent } from './preventable-event';
8
8
  import { Subject } from 'rxjs';
9
9
  import { ScrollSyncService } from '../scrolling/scroll-sync.service';
10
10
  import { ContextService } from './provider.service';
11
+ import { AdaptiveGridService } from './adaptiveness.service';
11
12
  import * as i0 from "@angular/core";
12
13
  /**
13
14
  * Arguments for the `close` event of the filter and column-menu popup.
@@ -28,6 +29,7 @@ export declare class SinglePopupService implements OnDestroy {
28
29
  private renderer;
29
30
  private ngZone;
30
31
  private ctx;
32
+ private adaptiveGridService;
31
33
  /**
32
34
  * Fires when the filter or column menus are about to close because the user clicked outside their popups.
33
35
  * Used to prevent the popup from closing.
@@ -41,7 +43,7 @@ export declare class SinglePopupService implements OnDestroy {
41
43
  /**
42
44
  * @hidden
43
45
  */
44
- constructor(popupService: PopupService, renderer: Renderer2, ngZone: NgZone, scrollSyncService: ScrollSyncService, ctx: ContextService);
46
+ constructor(popupService: PopupService, renderer: Renderer2, ngZone: NgZone, scrollSyncService: ScrollSyncService, ctx: ContextService, adaptiveGridService: AdaptiveGridService);
45
47
  /**
46
48
  * @hidden
47
49
  */
package/directives.d.ts CHANGED
@@ -68,7 +68,7 @@ import { StringFilterCellComponent } from "./filtering/cell/string-filter-cell.c
68
68
  import { FilterRowComponent } from "./filtering/filter-row.component";
69
69
  import { ColumnMenuChooserItemCheckedDirective } from "./column-menu/column-chooser-item-checked.directive";
70
70
  import { ColumnChooserComponent } from "./column-menu/column-chooser.component";
71
- import { ColumnChooserToolbarDirective } from "./column-menu/column-chooser-tool.directive";
71
+ import { ColumnChooserToolbarDirective } from "./rendering/toolbar/tools/column-chooser-tool.directive";
72
72
  import { ColumnListComponent } from "./column-menu/column-list.component";
73
73
  import { ColumnMenuAutoSizeAllColumnsComponent } from "./column-menu/column-menu-autosize-all.component";
74
74
  import { ColumnMenuAutoSizeColumnComponent } from "./column-menu/column-menu-autosize.component";
@@ -9,6 +9,7 @@ import { EditingDirectiveBase } from './editing-directive-base';
9
9
  import { FormDialogSettings, FormSettings } from '../editing/form';
10
10
  import { FormGroup } from '@angular/forms';
11
11
  import { EditEvent } from '../editing/edit-event-args.interface';
12
+ import { AdaptiveGridService } from '../common/adaptiveness.service';
12
13
  import * as i0 from "@angular/core";
13
14
  /**
14
15
  * A directive which encapsulates the editing operations of the Grid when using the
@@ -17,6 +18,7 @@ import * as i0 from "@angular/core";
17
18
  export declare class ExternalEditingDirective extends EditingDirectiveBase {
18
19
  protected grid: GridComponent;
19
20
  protected localDataChangesService: LocalDataChangesService;
21
+ private adaptiveGridService;
20
22
  /**
21
23
  * The function that creates the `FormGroup` for the edited model.
22
24
  */
@@ -29,7 +31,7 @@ export declare class ExternalEditingDirective extends EditingDirectiveBase {
29
31
  * Allows you to customize the Dialog that contains the edit form.
30
32
  */
31
33
  dialogSettings: FormDialogSettings;
32
- constructor(grid: GridComponent, localDataChangesService: LocalDataChangesService);
34
+ constructor(grid: GridComponent, localDataChangesService: LocalDataChangesService, adaptiveGridService: AdaptiveGridService);
33
35
  ngOnInit(): void;
34
36
  /**
35
37
  * @hidden
@@ -0,0 +1,5 @@
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
+ export {};