@progress/kendo-angular-spreadsheet 23.3.0-develop.1 → 23.3.0-develop.11

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.
@@ -2,17 +2,18 @@
2
2
  * Copyright © 2026 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 { ChangeDetectorRef } from '@angular/core';
5
6
  import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
6
7
  import { SpreadsheetLocalizationService } from '../../localization/spreadsheet-localization.service';
7
8
  import { SpreadsheetService } from '../../common/spreadsheet.service';
8
9
  import { SpreadsheetToolsService } from '.././tools.service';
9
- import { SpreadsheetCommandButton } from '.././shared/spreadsheet-command-button';
10
+ import { SpreadsheetTableCommandButton } from './spreadsheet-table-command-button';
10
11
  import * as i0 from "@angular/core";
11
12
  /**
12
13
  * @hidden
13
14
  */
14
- export declare class SpreadsheetDeleteColumnButtonDirective extends SpreadsheetCommandButton {
15
- constructor(button: ToolBarButtonComponent, localization: SpreadsheetLocalizationService, spreadsheetService: SpreadsheetService, toolsService: SpreadsheetToolsService);
15
+ export declare class SpreadsheetDeleteColumnButtonDirective extends SpreadsheetTableCommandButton {
16
+ constructor(button: ToolBarButtonComponent, localization: SpreadsheetLocalizationService, spreadsheetService: SpreadsheetService, toolsService: SpreadsheetToolsService, cdr: ChangeDetectorRef);
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<SpreadsheetDeleteColumnButtonDirective, never>;
17
18
  static ɵdir: i0.ɵɵDirectiveDeclaration<SpreadsheetDeleteColumnButtonDirective, "kendo-toolbar-button[kendoSpreadsheetDeleteColumnButton]", never, {}, {}, never, never, true, never>;
18
19
  }
@@ -2,17 +2,18 @@
2
2
  * Copyright © 2026 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 { ChangeDetectorRef } from '@angular/core';
5
6
  import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
6
7
  import { SpreadsheetLocalizationService } from '../../localization/spreadsheet-localization.service';
7
8
  import { SpreadsheetService } from '../../common/spreadsheet.service';
8
9
  import { SpreadsheetToolsService } from '.././tools.service';
9
- import { SpreadsheetCommandButton } from '.././shared/spreadsheet-command-button';
10
+ import { SpreadsheetTableCommandButton } from './spreadsheet-table-command-button';
10
11
  import * as i0 from "@angular/core";
11
12
  /**
12
13
  * @hidden
13
14
  */
14
- export declare class SpreadsheetDeleteRowButtonDirective extends SpreadsheetCommandButton {
15
- constructor(button: ToolBarButtonComponent, localization: SpreadsheetLocalizationService, spreadsheetService: SpreadsheetService, toolsService: SpreadsheetToolsService);
15
+ export declare class SpreadsheetDeleteRowButtonDirective extends SpreadsheetTableCommandButton {
16
+ constructor(button: ToolBarButtonComponent, localization: SpreadsheetLocalizationService, spreadsheetService: SpreadsheetService, toolsService: SpreadsheetToolsService, cdr: ChangeDetectorRef);
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<SpreadsheetDeleteRowButtonDirective, never>;
17
18
  static ɵdir: i0.ɵɵDirectiveDeclaration<SpreadsheetDeleteRowButtonDirective, "kendo-toolbar-button[kendoSpreadsheetDeleteRowButton]", never, {}, {}, never, never, true, never>;
18
19
  }
@@ -0,0 +1,18 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ *
8
+ * Checks if the selection spans an entire row (all columns selected).
9
+ * Used to disable column insert/delete tools when a full row is selected.
10
+ */
11
+ export declare function isFullRowSelection(ref: any, grid: any): boolean;
12
+ /**
13
+ * @hidden
14
+ *
15
+ * Checks if the selection spans an entire column (all rows selected).
16
+ * Used to disable row insert/delete tools when a full column is selected.
17
+ */
18
+ export declare function isFullColumnSelection(ref: any, grid: any): boolean;
@@ -0,0 +1,29 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2026 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 } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
+ import { SpreadsheetService } from '../../common/spreadsheet.service';
9
+ import { SpreadsheetToolsService } from '../tools.service';
10
+ import { SpreadsheetCommand } from '../shared/commands';
11
+ import { SpreadsheetCommandButton } from '../shared/spreadsheet-command-button';
12
+ import * as i0 from "@angular/core";
13
+ /**
14
+ * @hidden
15
+ *
16
+ * Intermediary base class for insert/delete row/column toolbar buttons.
17
+ * Disables the button when the current selection would cause undesired behavior:
18
+ * - Row tools are disabled when a full column is selected
19
+ * - Column tools are disabled when a full row is selected
20
+ */
21
+ export declare abstract class SpreadsheetTableCommandButton extends SpreadsheetCommandButton {
22
+ private cdr;
23
+ private disableOn;
24
+ constructor(command: SpreadsheetCommand, button: ToolBarButtonComponent, localization: LocalizationService, spreadsheetService: SpreadsheetService, toolsService: SpreadsheetToolsService, commandOptions: any, cdr: ChangeDetectorRef, disableOn: 'fullRow' | 'fullColumn');
25
+ ngOnInit(): void;
26
+ private updateDisabledState;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpreadsheetTableCommandButton, never>;
28
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SpreadsheetTableCommandButton, never, never, {}, {}, never, never, true, never>;
29
+ }