@progress/kendo-angular-spreadsheet 21.4.0-develop.1 → 21.4.0-develop.10

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 (37) hide show
  1. package/common/spreadsheet.service.d.ts +3 -0
  2. package/directives.d.ts +3 -1
  3. package/esm2022/common/error-handling.service.mjs +1 -0
  4. package/esm2022/common/spreadsheet.service.mjs +2 -0
  5. package/esm2022/directives.mjs +5 -1
  6. package/esm2022/filter-menu/filter-menu-item-content-template.directive.mjs +26 -0
  7. package/esm2022/filter-menu/filter-menu-item.component.mjs +271 -0
  8. package/esm2022/localization/messages.mjs +175 -1
  9. package/esm2022/models/filter-menu-item.mjs +5 -0
  10. package/esm2022/models/index.mjs +2 -0
  11. package/esm2022/models/range-filter-value.mjs +5 -0
  12. package/esm2022/package-metadata.mjs +2 -2
  13. package/esm2022/spreadsheet.component.mjs +717 -47
  14. package/esm2022/spreadsheet.module.mjs +3 -1
  15. package/esm2022/tools/filter-sort/filter-tool.directive.mjs +75 -0
  16. package/esm2022/tools/filter-sort/sort-tool.directive.mjs +57 -0
  17. package/esm2022/tools/index.mjs +2 -0
  18. package/esm2022/tools/shared/command-icons.mjs +13 -3
  19. package/esm2022/tools/shared/constants.mjs +7 -0
  20. package/fesm2022/progress-kendo-angular-spreadsheet.mjs +1301 -59
  21. package/filter-menu/filter-menu-item-content-template.directive.d.ts +15 -0
  22. package/filter-menu/filter-menu-item.component.d.ts +83 -0
  23. package/index.d.ts +1 -1
  24. package/localization/messages.d.ts +117 -1
  25. package/models/events.d.ts +49 -0
  26. package/models/filter-menu-item.d.ts +14 -0
  27. package/models/index.d.ts +2 -0
  28. package/models/range-filter-value.d.ts +15 -0
  29. package/package.json +18 -17
  30. package/schematics/ngAdd/index.js +2 -2
  31. package/spreadsheet.component.d.ts +73 -12
  32. package/spreadsheet.module.d.ts +3 -1
  33. package/tools/filter-sort/filter-tool.directive.d.ts +23 -0
  34. package/tools/filter-sort/sort-tool.directive.d.ts +21 -0
  35. package/tools/index.d.ts +2 -0
  36. package/tools/shared/commands.d.ts +1 -1
  37. package/tools/shared/constants.d.ts +12 -0
@@ -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 { AfterViewInit, ElementRef, EventEmitter, NgZone, OnChanges, SimpleChanges, ViewContainerRef } from '@angular/core';
5
+ import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnChanges, SimpleChanges, ViewContainerRef, TemplateRef, ChangeDetectorRef, OnDestroy } from '@angular/core';
6
6
  import { CellDefaultStyle, ExcelExportSettings, SheetDescriptor, SpreadsheetWidget } from '@progress/kendo-spreadsheet-common';
7
7
  import { IntlService } from '@progress/kendo-angular-intl';
8
8
  import { SVGIcon } from '@progress/kendo-svg-icons';
@@ -12,8 +12,9 @@ import { ContextMenuSelectEvent, MenuItem } from '@progress/kendo-angular-menu';
12
12
  import { DialogService } from '@progress/kendo-angular-dialog';
13
13
  import { SpreadsheetService } from './common/spreadsheet.service';
14
14
  import { SpreadsheetToolsService } from './tools/tools.service';
15
- import { SheetInfo, SpreadsheetActiveSheetChangeEvent, SpreadsheetCellEditorOptions, SpreadsheetChangeEvent, SpreadsheetExcelExportEvent, SpreadsheetExcelImportEvent, SpreadsheetMainMenuItem } from './models';
15
+ import { FilterMenuItem, SheetInfo, SpreadsheetActiveSheetChangeEvent, SpreadsheetCellEditorOptions, SpreadsheetChangeEvent, SpreadsheetExcelExportEvent, SpreadsheetExcelImportEvent, SpreadsheetMainMenuItem, SpreadsheetClipboardEvent } from './models';
16
16
  import { ErrorHandlingService } from './common/error-handling.service';
17
+ import { CheckedState } from '@progress/kendo-angular-treeview';
17
18
  import * as i0 from "@angular/core";
18
19
  /**
19
20
  * Represents the [Kendo UI Spreadsheet component for Angular]({% slug overview_spreadsheet %}).
@@ -26,7 +27,7 @@ import * as i0 from "@angular/core";
26
27
  * @remarks
27
28
  * Supported children components are: {@link CustomMessagesComponent}
28
29
  */
29
- export declare class SpreadsheetComponent implements AfterViewInit, OnChanges {
30
+ export declare class SpreadsheetComponent implements AfterViewInit, OnChanges, OnDestroy {
30
31
  private ngZone;
31
32
  private intl;
32
33
  private host;
@@ -37,11 +38,13 @@ export declare class SpreadsheetComponent implements AfterViewInit, OnChanges {
37
38
  private dialogService;
38
39
  private popupService;
39
40
  private container;
41
+ private cdr;
40
42
  private formulaBarInputRef;
41
43
  private formulaCellInputRef;
42
44
  private nameBoxRef;
43
45
  dialogContainer: ViewContainerRef;
44
46
  private contextMenu;
47
+ filterMenuTemplate: TemplateRef<any>;
45
48
  hostClass: boolean;
46
49
  role: string;
47
50
  /**
@@ -71,6 +74,14 @@ export declare class SpreadsheetComponent implements AfterViewInit, OnChanges {
71
74
  */
72
75
  set sheets(value: SheetDescriptor[]);
73
76
  get sheetsInfo(): SheetInfo[];
77
+ /**
78
+ * @hidden
79
+ */
80
+ expandedKeys: any[];
81
+ /**
82
+ * @hidden
83
+ */
84
+ checkedKeys: any[];
74
85
  /**
75
86
  * The number of columns in the document.
76
87
  *
@@ -129,38 +140,46 @@ export declare class SpreadsheetComponent implements AfterViewInit, OnChanges {
129
140
  */
130
141
  excel: ExcelExportSettings;
131
142
  /**
132
- * Fired when a value in the Spreadsheet is changed. Exposes the `SpreadsheetWidget` instance and the selected `Range` as event data.
143
+ * Fires when a value in the Spreadsheet is changed. Exposes the `SpreadsheetWidget` instance and the selected `Range` as event data.
133
144
  */
134
145
  change: EventEmitter<SpreadsheetChangeEvent>;
135
146
  /**
136
- * Fired when the selected range format is changed from the UI. Exposes the `SpreadsheetWidget` instance and the selected `Range` as event data.
147
+ * Fires when the selected range format is changed from the UI. Exposes the `SpreadsheetWidget` instance and the selected `Range` as event data.
137
148
  */
138
149
  formatChange: EventEmitter<SpreadsheetChangeEvent>;
139
150
  /**
140
- * Fired when the selection is changed by the end user. Exposes the `SpreadsheetWidget` instance and the selected `Range` as event data.
151
+ * Fires when the selection is changed by the end user. Exposes the `SpreadsheetWidget` instance and the selected `Range` as event data.
141
152
  */
142
153
  selectionChange: EventEmitter<SpreadsheetChangeEvent>;
143
154
  /**
144
- * Fired when the end user clicks the Export to Excel toolbar button.
155
+ * Fires when the end user clicks the Export to Excel toolbar button.
145
156
  * The event is preventable and exposes the `Workbook` object, a `preventDefault` method
146
157
  * (if invoked, the generated file will not be saved), and the `SpreadsheetWidget` instance.
147
158
  */
148
159
  excelExport: EventEmitter<SpreadsheetExcelExportEvent>;
149
160
  /**
150
- * Fired when the end user clicks the Open toolbar button.
161
+ * Fires when the end user clicks the Open toolbar button.
151
162
  * The event is preventable and exposes the selected `File` or `Blob`, a `preventDefault` method
152
163
  * (if invoked, the selected file will not be loaded), and the `SpreadsheetWidget` instance.
153
164
  */
154
165
  excelImport: EventEmitter<SpreadsheetExcelImportEvent>;
155
166
  /**
156
- * Fired when the active sheet is about to change.
167
+ * Fires when the active sheet is about to change.
157
168
  * The event exposes the new active `Sheet` and the `SpreadsheetWidget` instance.
158
169
  */
159
170
  activeSheetChange: EventEmitter<SpreadsheetActiveSheetChangeEvent>;
171
+ /**
172
+ * Fires when a clipboard action (cut, copy, or paste) occurs in the Spreadsheet.
173
+ */
174
+ clipboard: EventEmitter<SpreadsheetClipboardEvent>;
160
175
  formulaFxIcon: SVGIcon;
161
176
  folderOpenIcon: SVGIcon;
162
177
  downloadIcon: SVGIcon;
178
+ searchIcon: SVGIcon;
163
179
  selectedMenuItem: any;
180
+ rangeFilterValuesList: any[];
181
+ private sortAscSmallIcon;
182
+ private sortDescSmallIcon;
164
183
  get spreadsheetWidget(): SpreadsheetWidget;
165
184
  /**
166
185
  * @hidden
@@ -171,13 +190,24 @@ export declare class SpreadsheetComponent implements AfterViewInit, OnChanges {
171
190
  */
172
191
  licenseMessage?: string;
173
192
  contextMenuItems: MenuItem[];
193
+ sortMenuItems: FilterMenuItem[];
194
+ conditionExpanded: boolean;
195
+ valueExpanded: boolean;
196
+ filterConditionsList: any;
197
+ conditionValue: any;
198
+ set selectedCondition(value: any);
199
+ get selectedCondition(): any;
200
+ private _selectedCondition;
174
201
  private _sheetsInfo;
175
202
  private _activeSheet;
176
203
  private _menuItems;
177
204
  private currentRange;
178
205
  private subs;
206
+ private filterMenuOpened;
207
+ private currentFilterOptions;
179
208
  private popupRef;
180
- constructor(ngZone: NgZone, intl: IntlService, host: ElementRef, localization: LocalizationService, spreadsheetService: SpreadsheetService, toolsService: SpreadsheetToolsService, errorService: ErrorHandlingService, dialogService: DialogService, popupService: PopupService, container: ViewContainerRef);
209
+ private popupPositionChangeSub;
210
+ constructor(ngZone: NgZone, intl: IntlService, host: ElementRef, localization: LocalizationService, spreadsheetService: SpreadsheetService, toolsService: SpreadsheetToolsService, errorService: ErrorHandlingService, dialogService: DialogService, popupService: PopupService, container: ViewContainerRef, cdr: ChangeDetectorRef);
181
211
  ngAfterViewInit(): void;
182
212
  ngOnChanges(changes: SimpleChanges): void;
183
213
  ngOnDestroy(): void;
@@ -185,6 +215,10 @@ export declare class SpreadsheetComponent implements AfterViewInit, OnChanges {
185
215
  * @hidden
186
216
  */
187
217
  onContextMenu(e: any): void;
218
+ /**
219
+ * @hidden
220
+ */
221
+ isChecked: (dataItem: any) => CheckedState;
188
222
  /**
189
223
  * @hidden
190
224
  */
@@ -201,6 +235,26 @@ export declare class SpreadsheetComponent implements AfterViewInit, OnChanges {
201
235
  * @hidden
202
236
  */
203
237
  onMenuItemSelect(e: any): void;
238
+ /**
239
+ * @hidden
240
+ */
241
+ onToggle(expanded: boolean, filterType: 'condition' | 'value'): void;
242
+ /**
243
+ * @hidden
244
+ */
245
+ filterApply(filterType: 'condition' | 'value'): void;
246
+ /**
247
+ * @hidden
248
+ */
249
+ filterClear(): void;
250
+ /**
251
+ * @hidden
252
+ */
253
+ onSortItemClick(item: FilterMenuItem): void;
254
+ /**
255
+ * @hidden
256
+ */
257
+ closePopup(): void;
204
258
  private onChange;
205
259
  private onSelectionChange;
206
260
  private onChangeFormat;
@@ -211,6 +265,7 @@ export declare class SpreadsheetComponent implements AfterViewInit, OnChanges {
211
265
  private onMessage;
212
266
  private updateActiveSheet;
213
267
  private onSheetsChanged;
268
+ private onClipboardEvent;
214
269
  private get options();
215
270
  private contextMenuItemsForTarget;
216
271
  private openLinkDialog;
@@ -219,9 +274,15 @@ export declare class SpreadsheetComponent implements AfterViewInit, OnChanges {
219
274
  private registerCustomEditors;
220
275
  private registerCustomEditor;
221
276
  private openCustomEditorPopup;
222
- private closePopup;
223
277
  private isValidFormula;
224
278
  private createDate;
279
+ private createFilterMenu;
280
+ private extractColumnFilterValues;
281
+ private removeDuplicateValues;
282
+ private compareFilterValues;
283
+ private containsItem;
284
+ private findItemByText;
285
+ private isIndeterminate;
225
286
  static ɵfac: i0.ɵɵFactoryDeclaration<SpreadsheetComponent, never>;
226
- static ɵcmp: i0.ɵɵComponentDeclaration<SpreadsheetComponent, "kendo-spreadsheet", ["kendo-spreadsheet"], { "menuItems": { "alias": "menuItems"; "required": false; }; "overflow": { "alias": "overflow"; "required": false; }; "formulaListMaxHeight": { "alias": "formulaListMaxHeight"; "required": false; }; "activeSheet": { "alias": "activeSheet"; "required": false; }; "sheets": { "alias": "sheets"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "columnWidth": { "alias": "columnWidth"; "required": false; }; "defaultCellStyle": { "alias": "defaultCellStyle"; "required": false; }; "headerHeight": { "alias": "headerHeight"; "required": false; }; "headerWidth": { "alias": "headerWidth"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cellEditors": { "alias": "cellEditors"; "required": false; }; "images": { "alias": "images"; "required": false; }; "excel": { "alias": "excel"; "required": false; }; }, { "change": "change"; "formatChange": "formatChange"; "selectionChange": "selectionChange"; "excelExport": "excelExport"; "excelImport": "excelImport"; "activeSheetChange": "activeSheetChange"; }, never, never, true, never>;
287
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpreadsheetComponent, "kendo-spreadsheet", ["kendo-spreadsheet"], { "menuItems": { "alias": "menuItems"; "required": false; }; "overflow": { "alias": "overflow"; "required": false; }; "formulaListMaxHeight": { "alias": "formulaListMaxHeight"; "required": false; }; "activeSheet": { "alias": "activeSheet"; "required": false; }; "sheets": { "alias": "sheets"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "columnWidth": { "alias": "columnWidth"; "required": false; }; "defaultCellStyle": { "alias": "defaultCellStyle"; "required": false; }; "headerHeight": { "alias": "headerHeight"; "required": false; }; "headerWidth": { "alias": "headerWidth"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cellEditors": { "alias": "cellEditors"; "required": false; }; "images": { "alias": "images"; "required": false; }; "excel": { "alias": "excel"; "required": false; }; }, { "change": "change"; "formatChange": "formatChange"; "selectionChange": "selectionChange"; "excelExport": "excelExport"; "excelImport": "excelImport"; "activeSheetChange": "activeSheetChange"; "clipboard": "clipboard"; }, never, never, true, never>;
227
288
  }
@@ -35,6 +35,8 @@ import * as i29 from "./tools/increase-decimal-tool.directive";
35
35
  import * as i30 from "./tools/decrease-decimal-tool.directive";
36
36
  import * as i31 from "./tools/align/horizontal-align-tool.directive";
37
37
  import * as i32 from "./tools/align/vertical-align-tool.directive";
38
+ import * as i33 from "./tools/filter-sort/filter-tool.directive";
39
+ import * as i34 from "./tools/filter-sort/sort-tool.directive";
38
40
  /**
39
41
  * Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) definition for the Spreadsheet component.
40
42
  *
@@ -50,6 +52,6 @@ import * as i32 from "./tools/align/vertical-align-tool.directive";
50
52
  */
51
53
  export declare class SpreadsheetModule {
52
54
  static ɵfac: i0.ɵɵFactoryDeclaration<SpreadsheetModule, never>;
53
- static ɵmod: i0.ɵɵNgModuleDeclaration<SpreadsheetModule, never, [typeof i1.SpreadsheetComponent, typeof i2.CustomMessagesComponent, typeof i3.SpreadsheetBoldDirective, typeof i4.SpreadsheetDataValidationDirective, typeof i5.SpreadsheetItalicDirective, typeof i6.SpreadsheetUnderlineDirective, typeof i7.SpreadsheetLoadFileComponent, typeof i8.SpreadsheetSaveFileDirective, typeof i9.SpreadsheetFormatDirective, typeof i10.SpreadsheetUndoDirective, typeof i11.SpreadsheetRedoDirective, typeof i12.SpreadsheetFontFamilyComponent, typeof i13.SpreadsheetFontSizeComponent, typeof i14.SpreadsheetBackColorComponent, typeof i15.SpreadsheetForeColorComponent, typeof i16.SpreadsheetGridLinesDirective, typeof i17.SpreadsheetAddColumnLeftButtonDirective, typeof i18.SpreadsheetAddColumnRightButtonDirective, typeof i19.SpreadsheetAddRowAboveButtonDirective, typeof i20.SpreadsheetAddRowBelowButtonDirective, typeof i21.SpreadsheetDeleteColumnButtonDirective, typeof i22.SpreadsheetDeleteRowButtonDirective, typeof i23.SpreadsheetTextAlignDirective, typeof i24.SpreadsheetTextWrapDirective, typeof i25.SpreadsheetMergeDirective, typeof i26.SpreadsheetInsertLinkDirective, typeof i27.SpreadsheetIncreaseFontSizeDirective, typeof i28.SpreadsheetDecreaseFontSizeDirective, typeof i29.SpreadsheetIncreaseDecimalDirective, typeof i30.SpreadsheetDecreaseDecimalDirective, typeof i31.SpreadsheetHorizontalTextAlignDirective, typeof i32.SpreadsheetVerticalTextAlignDirective], [typeof i1.SpreadsheetComponent, typeof i2.CustomMessagesComponent, typeof i3.SpreadsheetBoldDirective, typeof i4.SpreadsheetDataValidationDirective, typeof i5.SpreadsheetItalicDirective, typeof i6.SpreadsheetUnderlineDirective, typeof i7.SpreadsheetLoadFileComponent, typeof i8.SpreadsheetSaveFileDirective, typeof i9.SpreadsheetFormatDirective, typeof i10.SpreadsheetUndoDirective, typeof i11.SpreadsheetRedoDirective, typeof i12.SpreadsheetFontFamilyComponent, typeof i13.SpreadsheetFontSizeComponent, typeof i14.SpreadsheetBackColorComponent, typeof i15.SpreadsheetForeColorComponent, typeof i16.SpreadsheetGridLinesDirective, typeof i17.SpreadsheetAddColumnLeftButtonDirective, typeof i18.SpreadsheetAddColumnRightButtonDirective, typeof i19.SpreadsheetAddRowAboveButtonDirective, typeof i20.SpreadsheetAddRowBelowButtonDirective, typeof i21.SpreadsheetDeleteColumnButtonDirective, typeof i22.SpreadsheetDeleteRowButtonDirective, typeof i23.SpreadsheetTextAlignDirective, typeof i24.SpreadsheetTextWrapDirective, typeof i25.SpreadsheetMergeDirective, typeof i26.SpreadsheetInsertLinkDirective, typeof i27.SpreadsheetIncreaseFontSizeDirective, typeof i28.SpreadsheetDecreaseFontSizeDirective, typeof i29.SpreadsheetIncreaseDecimalDirective, typeof i30.SpreadsheetDecreaseDecimalDirective, typeof i31.SpreadsheetHorizontalTextAlignDirective, typeof i32.SpreadsheetVerticalTextAlignDirective]>;
55
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SpreadsheetModule, never, [typeof i1.SpreadsheetComponent, typeof i2.CustomMessagesComponent, typeof i3.SpreadsheetBoldDirective, typeof i4.SpreadsheetDataValidationDirective, typeof i5.SpreadsheetItalicDirective, typeof i6.SpreadsheetUnderlineDirective, typeof i7.SpreadsheetLoadFileComponent, typeof i8.SpreadsheetSaveFileDirective, typeof i9.SpreadsheetFormatDirective, typeof i10.SpreadsheetUndoDirective, typeof i11.SpreadsheetRedoDirective, typeof i12.SpreadsheetFontFamilyComponent, typeof i13.SpreadsheetFontSizeComponent, typeof i14.SpreadsheetBackColorComponent, typeof i15.SpreadsheetForeColorComponent, typeof i16.SpreadsheetGridLinesDirective, typeof i17.SpreadsheetAddColumnLeftButtonDirective, typeof i18.SpreadsheetAddColumnRightButtonDirective, typeof i19.SpreadsheetAddRowAboveButtonDirective, typeof i20.SpreadsheetAddRowBelowButtonDirective, typeof i21.SpreadsheetDeleteColumnButtonDirective, typeof i22.SpreadsheetDeleteRowButtonDirective, typeof i23.SpreadsheetTextAlignDirective, typeof i24.SpreadsheetTextWrapDirective, typeof i25.SpreadsheetMergeDirective, typeof i26.SpreadsheetInsertLinkDirective, typeof i27.SpreadsheetIncreaseFontSizeDirective, typeof i28.SpreadsheetDecreaseFontSizeDirective, typeof i29.SpreadsheetIncreaseDecimalDirective, typeof i30.SpreadsheetDecreaseDecimalDirective, typeof i31.SpreadsheetHorizontalTextAlignDirective, typeof i32.SpreadsheetVerticalTextAlignDirective, typeof i33.SpreadsheetFilterDirective, typeof i34.SpreadsheetSortDirective], [typeof i1.SpreadsheetComponent, typeof i2.CustomMessagesComponent, typeof i3.SpreadsheetBoldDirective, typeof i4.SpreadsheetDataValidationDirective, typeof i5.SpreadsheetItalicDirective, typeof i6.SpreadsheetUnderlineDirective, typeof i7.SpreadsheetLoadFileComponent, typeof i8.SpreadsheetSaveFileDirective, typeof i9.SpreadsheetFormatDirective, typeof i10.SpreadsheetUndoDirective, typeof i11.SpreadsheetRedoDirective, typeof i12.SpreadsheetFontFamilyComponent, typeof i13.SpreadsheetFontSizeComponent, typeof i14.SpreadsheetBackColorComponent, typeof i15.SpreadsheetForeColorComponent, typeof i16.SpreadsheetGridLinesDirective, typeof i17.SpreadsheetAddColumnLeftButtonDirective, typeof i18.SpreadsheetAddColumnRightButtonDirective, typeof i19.SpreadsheetAddRowAboveButtonDirective, typeof i20.SpreadsheetAddRowBelowButtonDirective, typeof i21.SpreadsheetDeleteColumnButtonDirective, typeof i22.SpreadsheetDeleteRowButtonDirective, typeof i23.SpreadsheetTextAlignDirective, typeof i24.SpreadsheetTextWrapDirective, typeof i25.SpreadsheetMergeDirective, typeof i26.SpreadsheetInsertLinkDirective, typeof i27.SpreadsheetIncreaseFontSizeDirective, typeof i28.SpreadsheetDecreaseFontSizeDirective, typeof i29.SpreadsheetIncreaseDecimalDirective, typeof i30.SpreadsheetDecreaseDecimalDirective, typeof i31.SpreadsheetHorizontalTextAlignDirective, typeof i32.SpreadsheetVerticalTextAlignDirective, typeof i33.SpreadsheetFilterDirective, typeof i34.SpreadsheetSortDirective]>;
54
56
  static ɵinj: i0.ɵɵInjectorDeclaration<SpreadsheetModule>;
55
57
  }
@@ -0,0 +1,23 @@
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 { ChangeDetectorRef, OnDestroy } from '@angular/core';
6
+ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
7
+ import { SpreadsheetLocalizationService } from '../../localization/spreadsheet-localization.service';
8
+ import { SpreadsheetService } from '../../common/spreadsheet.service';
9
+ import { SpreadsheetToolsService } from '../tools.service';
10
+ import { SpreadsheetCommandButton } from '../shared/spreadsheet-command-button';
11
+ import * as i0 from "@angular/core";
12
+ /**
13
+ * @hidden
14
+ */
15
+ export declare class SpreadsheetFilterDirective extends SpreadsheetCommandButton implements OnDestroy {
16
+ private cdr;
17
+ constructor(button: ToolBarButtonComponent, localization: SpreadsheetLocalizationService, spreadsheetService: SpreadsheetService, toolsService: SpreadsheetToolsService, cdr: ChangeDetectorRef);
18
+ ngOnDestroy(): void;
19
+ protected clickHandler(): void;
20
+ private toggleActiveState;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpreadsheetFilterDirective, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SpreadsheetFilterDirective, "kendo-toolbar-button[kendoSpreadsheetFilter]", never, {}, {}, never, never, true, never>;
23
+ }
@@ -0,0 +1,21 @@
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 { ToolBarDropDownButtonComponent } from '@progress/kendo-angular-toolbar';
6
+ import { SpreadsheetLocalizationService } from '../../localization/spreadsheet-localization.service';
7
+ import { SpreadsheetService } from '../../common/spreadsheet.service';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare class SpreadsheetSortDirective {
13
+ private spreadsheetService;
14
+ private commandName;
15
+ private subs;
16
+ constructor(host: ToolBarDropDownButtonComponent, localization: SpreadsheetLocalizationService, spreadsheetService: SpreadsheetService);
17
+ ngOnDestroy(): void;
18
+ onItemClick(item: any): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpreadsheetSortDirective, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SpreadsheetSortDirective, "[kendoSpreadsheetSort]", never, {}, {}, never, never, true, never>;
21
+ }
package/tools/index.d.ts CHANGED
@@ -22,7 +22,9 @@ export { SpreadsheetInsertLinkDirective } from './insert/insert-link-tool.direct
22
22
  export { SpreadsheetIncreaseFontSizeDirective } from './font-size/increase-font-tool.directive';
23
23
  export { SpreadsheetDecreaseFontSizeDirective } from './font-size/decrease-font-tool.directive';
24
24
  export { SpreadsheetIncreaseDecimalDirective } from './increase-decimal-tool.directive';
25
+ export { SpreadsheetFilterDirective } from './filter-sort/filter-tool.directive';
25
26
  export { SpreadsheetDecreaseDecimalDirective } from './decrease-decimal-tool.directive';
26
27
  export { SpreadsheetHorizontalTextAlignDirective } from './align/horizontal-align-tool.directive';
27
28
  export { SpreadsheetVerticalTextAlignDirective } from './align/vertical-align-tool.directive';
29
+ export { SpreadsheetSortDirective } from './filter-sort/sort-tool.directive';
28
30
  export * from './tables';
@@ -5,4 +5,4 @@
5
5
  /**
6
6
  * @hidden
7
7
  */
8
- export type SpreadsheetCommand = 'bold' | 'italic' | 'underline' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify' | 'alignTop' | 'alignMiddle' | 'alignBottom' | 'align' | 'alignHorizontal' | 'alignVertical' | 'folderOpen' | 'fontFamily' | 'fontSize' | 'undo' | 'redo' | 'color' | 'background' | 'addRowAbove' | 'addRowBelow' | 'deleteRow' | 'deleteColumn' | 'gridLines' | 'addColumnLeft' | 'addColumnRight' | 'wrap' | 'download' | 'format' | 'merge' | 'mergeAll' | 'mergeHorizontally' | 'mergeVertically' | 'unmerge' | 'insertLink' | 'increaseFontSize' | 'decreaseFontSize' | 'increaseDecimal' | 'decreaseDecimal' | 'dataValidation' | 'copy' | 'cut' | 'paste' | 'hideRow' | 'unhideRow' | 'hideColumn' | 'unhideColumn';
8
+ export type SpreadsheetCommand = 'bold' | 'italic' | 'underline' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify' | 'alignTop' | 'alignMiddle' | 'alignBottom' | 'align' | 'alignHorizontal' | 'alignVertical' | 'folderOpen' | 'fontFamily' | 'fontSize' | 'undo' | 'redo' | 'color' | 'background' | 'addRowAbove' | 'addRowBelow' | 'deleteRow' | 'deleteColumn' | 'gridLines' | 'addColumnLeft' | 'addColumnRight' | 'wrap' | 'download' | 'format' | 'merge' | 'mergeAll' | 'mergeHorizontally' | 'mergeVertically' | 'unmerge' | 'insertLink' | 'increaseFontSize' | 'decreaseFontSize' | 'increaseDecimal' | 'decreaseDecimal' | 'dataValidation' | 'copy' | 'cut' | 'paste' | 'hideRow' | 'unhideRow' | 'hideColumn' | 'unhideColumn' | 'filter' | 'sort' | 'sortAsc' | 'sortDesc' | 'unsort';
@@ -57,6 +57,18 @@ export declare const MERGE: {
57
57
  disabled: boolean;
58
58
  commandId: string;
59
59
  }[];
60
+ /**
61
+ * @hidden
62
+ */
63
+ export declare const SORT: {
64
+ icon: string;
65
+ svgIcon: import("@progress/kendo-svg-icons").SVGIcon;
66
+ textKey: string;
67
+ commandName: string;
68
+ value: string;
69
+ disabled: boolean;
70
+ commandId: string;
71
+ }[];
60
72
  /**
61
73
  * @hidden
62
74
  */