@progress/kendo-angular-grid 19.1.2-develop.3 → 19.1.2-develop.5
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-mode.d.ts +1 -5
- package/aggregates/aggregate-types.d.ts +6 -6
- package/aggregates/status-bar-template.directive.d.ts +6 -4
- package/column-menu/column-locked-change-event.d.ts +1 -1
- package/column-menu/column-menu-autosize-all.component.d.ts +11 -2
- package/column-menu/column-menu-autosize.component.d.ts +14 -6
- package/column-menu/column-menu-chooser.component.d.ts +13 -5
- package/column-menu/column-menu-expandable-item.interface.d.ts +3 -3
- package/column-menu/column-menu-filter.component.d.ts +18 -5
- package/column-menu/column-menu-item-base.d.ts +2 -2
- package/column-menu/column-menu-item-content-template.directive.d.ts +4 -4
- package/column-menu/column-menu-item.component.d.ts +14 -7
- package/column-menu/column-menu-item.directive.d.ts +29 -1
- package/column-menu/column-menu-lock.component.d.ts +11 -3
- package/column-menu/column-menu-position.component.d.ts +16 -8
- package/column-menu/column-menu-settings.interface.d.ts +5 -4
- package/column-menu/column-menu-sort.component.d.ts +11 -9
- package/column-menu/column-menu-stick.component.d.ts +13 -5
- package/column-menu/column-menu-template.directive.d.ts +5 -7
- package/column-menu/column-menu.component.d.ts +17 -7
- package/column-menu/column-menu.service.d.ts +8 -9
- package/column-resizing/column-resize.interface.d.ts +9 -8
- package/columns/cell-rowspan.d.ts +5 -1
- package/columns/checkbox-column.component.d.ts +7 -5
- package/columns/column-base.d.ts +38 -52
- package/columns/column-group.component.d.ts +3 -2
- package/columns/column.component.d.ts +17 -12
- package/columns/command-column.component.d.ts +6 -7
- package/columns/reorder-column.component.d.ts +10 -2
- package/columns/sort-settings.d.ts +15 -18
- package/columns/span-column.component.d.ts +11 -11
- package/common/adaptiveness.service.d.ts +2 -2
- package/common/cell-click-event-args.interface.d.ts +8 -6
- package/common/clipboard-types.d.ts +27 -31
- package/common/clipboard.directive.d.ts +12 -8
- package/common/create-form-group.d.ts +3 -1
- package/common/fetch-data-callback.d.ts +4 -2
- package/common/field-datatype.d.ts +2 -2
- package/common/pager-settings.d.ts +36 -20
- package/common/preventable-event.d.ts +3 -7
- package/common/remove-confirmation.d.ts +12 -0
- package/common/resizable-settings.d.ts +6 -5
- package/common/single-popup.service.d.ts +7 -4
- package/common/size-options.d.ts +2 -1
- package/data/change-event-args.interface.d.ts +7 -7
- package/data/data-item.interface.d.ts +6 -6
- package/data/data.collection.d.ts +1 -1
- package/data/grid-item.interface.d.ts +1 -1
- package/data/group-footer-item.interface.d.ts +6 -6
- package/data/group-item.interface.d.ts +5 -5
- package/databinding.directive.d.ts +20 -10
- package/directives.d.ts +10 -1
- package/dragdrop/column-reorder-config.d.ts +2 -2
- package/dragdrop/column-reorder-event.d.ts +4 -6
- package/editing/add-command-tool.directive.d.ts +5 -7
- package/editing/add-command.directive.d.ts +3 -8
- package/editing/add-event-args.interface.d.ts +1 -1
- package/editing/cancel-command-tool.directive.d.ts +5 -5
- package/editing/cancel-command.directive.d.ts +6 -5
- package/editing/cancel-event-args.interface.d.ts +7 -1
- package/editing/cell-close-event.d.ts +9 -6
- package/editing/edit-command-tool.directive.d.ts +10 -9
- package/editing/edit-command.directive.d.ts +1 -1
- package/editing/edit-event-args.interface.d.ts +3 -3
- package/editing/edit-row-options.interface.d.ts +10 -4
- package/editing/edit-template.directive.d.ts +17 -9
- package/editing/form/models.d.ts +55 -48
- package/editing/remove-command-tool.directive.d.ts +10 -9
- package/editing/remove-command.directive.d.ts +4 -5
- package/editing/remove-event-args.interface.d.ts +2 -1
- package/editing/save-command-tool.directive.d.ts +7 -6
- package/editing/save-command.directive.d.ts +5 -5
- package/editing/save-event-args.interface.d.ts +2 -1
- package/editing-directives/create-form-group-args.interface.d.ts +1 -1
- package/editing-directives/edit-service.interface.d.ts +13 -6
- package/editing-directives/external-editing.directive.d.ts +11 -4
- package/editing-directives/in-cell-editing.directive.d.ts +9 -3
- package/editing-directives/reactive-editing.directive.d.ts +9 -3
- package/editing-directives/template-editing.directive.d.ts +9 -3
- package/esm2022/aggregates/status-bar-template.directive.mjs +6 -4
- package/esm2022/column-menu/column-locked-change-event.mjs +1 -1
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +11 -2
- package/esm2022/column-menu/column-menu-autosize.component.mjs +14 -6
- package/esm2022/column-menu/column-menu-chooser.component.mjs +13 -5
- package/esm2022/column-menu/column-menu-filter.component.mjs +18 -5
- package/esm2022/column-menu/column-menu-item-base.mjs +2 -2
- package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +4 -4
- package/esm2022/column-menu/column-menu-item.component.mjs +14 -7
- package/esm2022/column-menu/column-menu-item.directive.mjs +29 -1
- package/esm2022/column-menu/column-menu-lock.component.mjs +11 -3
- package/esm2022/column-menu/column-menu-position.component.mjs +16 -8
- package/esm2022/column-menu/column-menu-sort.component.mjs +11 -9
- package/esm2022/column-menu/column-menu-stick.component.mjs +13 -5
- package/esm2022/column-menu/column-menu-template.directive.mjs +5 -7
- package/esm2022/column-menu/column-menu.component.mjs +17 -7
- package/esm2022/column-menu/column-menu.service.mjs +8 -9
- package/esm2022/columns/checkbox-column.component.mjs +7 -5
- package/esm2022/columns/column-base.mjs +38 -52
- package/esm2022/columns/column-group.component.mjs +3 -2
- package/esm2022/columns/column.component.mjs +17 -12
- package/esm2022/columns/command-column.component.mjs +6 -7
- package/esm2022/columns/reorder-column.component.mjs +10 -2
- package/esm2022/columns/span-column.component.mjs +11 -11
- package/esm2022/common/adaptiveness.service.mjs +2 -2
- package/esm2022/common/clipboard.directive.mjs +12 -8
- package/esm2022/common/preventable-event.mjs +3 -7
- package/esm2022/common/resizable-settings.mjs +2 -1
- package/esm2022/common/single-popup.service.mjs +7 -4
- package/esm2022/databinding.directive.mjs +20 -10
- package/esm2022/directives.mjs +10 -1
- package/esm2022/dragdrop/column-reorder-event.mjs +4 -6
- package/esm2022/editing/add-command-tool.directive.mjs +5 -7
- package/esm2022/editing/add-command.directive.mjs +3 -8
- package/esm2022/editing/cancel-command-tool.directive.mjs +5 -5
- package/esm2022/editing/cancel-command.directive.mjs +6 -5
- package/esm2022/editing/cell-close-event.mjs +7 -4
- package/esm2022/editing/edit-command-tool.directive.mjs +10 -9
- package/esm2022/editing/edit-command.directive.mjs +1 -1
- package/esm2022/editing/edit-template.directive.mjs +17 -9
- package/esm2022/editing/remove-command-tool.directive.mjs +10 -9
- package/esm2022/editing/remove-command.directive.mjs +4 -5
- package/esm2022/editing/save-command-tool.directive.mjs +7 -6
- package/esm2022/editing/save-command.directive.mjs +5 -5
- package/esm2022/editing-directives/external-editing.directive.mjs +11 -4
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +9 -3
- package/esm2022/editing-directives/reactive-editing.directive.mjs +9 -3
- package/esm2022/editing-directives/template-editing.directive.mjs +9 -3
- package/esm2022/excel/excel-command-tool.directive.mjs +10 -13
- package/esm2022/excel/excel-command.directive.mjs +7 -11
- package/esm2022/excel/excel-export-event.mjs +4 -1
- package/esm2022/excel/excel.component.mjs +24 -25
- package/esm2022/excel/excel.module.mjs +4 -7
- package/esm2022/filtering/boolean-filter.component.mjs +3 -3
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +1 -2
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +5 -2
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +10 -7
- package/esm2022/filtering/cell/filter-cell-template.directive.mjs +4 -2
- package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +10 -9
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +7 -5
- package/esm2022/filtering/date-filter.component.mjs +17 -19
- package/esm2022/filtering/filter.service.mjs +4 -4
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +3 -3
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +5 -3
- package/esm2022/filtering/menu/filter-menu-template.directive.mjs +9 -7
- package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +8 -8
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +10 -6
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +10 -5
- package/esm2022/filtering/numeric-filter.component.mjs +13 -13
- package/esm2022/filtering/operators/after-eq-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/after-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/before-eq-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/before-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/contains-filter-operator.component.mjs +27 -1
- package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/eq-filter-operator.component.mjs +74 -1
- package/esm2022/filtering/operators/gt-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/gte-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/is-empty-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +73 -1
- package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +73 -1
- package/esm2022/filtering/operators/lt-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/lte-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/neq-filter-operator.component.mjs +73 -1
- package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/string-filter.component.mjs +5 -4
- package/esm2022/grid.component.mjs +159 -173
- package/esm2022/grid.module.mjs +3 -2
- package/esm2022/grouping/group-footer-template.directive.mjs +5 -6
- package/esm2022/grouping/group-header-column-template.directive.mjs +5 -5
- package/esm2022/grouping/group-header-template.directive.mjs +5 -6
- package/esm2022/grouping/group-scroll-binding.directive.mjs +2 -0
- package/esm2022/localization/custom-messages.component.mjs +12 -2
- package/esm2022/localization/messages.mjs +154 -165
- package/esm2022/navigation/focus-group.mjs +2 -2
- package/esm2022/navigation/focusable.directive.mjs +5 -3
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pdf/pdf-command-tool.directive.mjs +8 -11
- package/esm2022/pdf/pdf-command.directive.mjs +5 -9
- package/esm2022/pdf/pdf-export-event.mjs +1 -1
- package/esm2022/pdf/pdf-margin.component.mjs +16 -6
- package/esm2022/pdf/pdf-template.directive.mjs +5 -5
- package/esm2022/pdf/pdf.component.mjs +15 -5
- package/esm2022/pdf/pdf.module.mjs +3 -6
- package/esm2022/rendering/cell-loading.template.directive.mjs +4 -7
- package/esm2022/rendering/cell-template.directive.mjs +7 -8
- package/esm2022/rendering/common/spacer.component.mjs +14 -3
- package/esm2022/rendering/details/detail-collapse-event.mjs +8 -3
- package/esm2022/rendering/details/detail-expand-event.mjs +8 -3
- package/esm2022/rendering/details/detail-template.directive.mjs +3 -2
- package/esm2022/rendering/details-expand.directive.mjs +18 -8
- package/esm2022/rendering/footer/footer-template.directive.mjs +7 -7
- package/esm2022/rendering/groups-expand.directive.mjs +15 -5
- package/esm2022/rendering/header/header-template.directive.mjs +11 -11
- package/esm2022/rendering/loading-template.directive.mjs +14 -3
- package/esm2022/rendering/no-records-template.directive.mjs +3 -5
- package/esm2022/rendering/table-body.component.mjs +3 -1
- package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +10 -2
- package/esm2022/rendering/toolbar/toolbar-position.mjs +0 -17
- package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +3 -3
- package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +6 -5
- package/esm2022/rendering/toolbar/tools/filter-command-tool.directive.mjs +5 -5
- package/esm2022/rendering/toolbar/tools/group-command-tool.directive.mjs +5 -3
- package/esm2022/rendering/toolbar/tools/sort-command-tool.directive.mjs +4 -4
- package/esm2022/row-reordering/drag-handle-template.directive.mjs +5 -6
- package/esm2022/row-reordering/drag-hint-template.directive.mjs +3 -5
- package/esm2022/selection/selectall-checkbox.directive.mjs +2 -2
- package/esm2022/selection/selection-checkbox.directive.mjs +9 -8
- package/esm2022/selection/selection-default.mjs +9 -8
- package/esm2022/selection/selection.directive.mjs +10 -1
- package/esm2022/state-management/grid-state.models.mjs +3 -3
- package/esm2022/state-management/redo-command-tool.mjs +17 -9
- package/esm2022/state-management/undo-command-tool.mjs +17 -9
- package/esm2022/state-management/undo-redo.directive.mjs +17 -6
- package/excel/excel-command-tool.directive.d.ts +10 -13
- package/excel/excel-command.directive.d.ts +7 -11
- package/excel/excel-export-event.d.ts +4 -1
- package/excel/excel.component.d.ts +24 -25
- package/excel/excel.module.d.ts +4 -7
- package/fesm2022/progress-kendo-angular-grid.mjs +1939 -1025
- package/filtering/boolean-filter.component.d.ts +3 -3
- package/filtering/cell/boolean-filter-cell.component.d.ts +1 -2
- package/filtering/cell/date-filter-cell.component.d.ts +5 -2
- package/filtering/cell/filter-cell-operators.component.d.ts +10 -7
- package/filtering/cell/filter-cell-template.directive.d.ts +4 -2
- package/filtering/cell/numeric-filter-cell.component.d.ts +10 -9
- package/filtering/cell/string-filter-cell.component.d.ts +7 -5
- package/filtering/date-filter.component.d.ts +17 -19
- package/filtering/filter.service.d.ts +4 -4
- package/filtering/filterable.d.ts +5 -5
- package/filtering/menu/boolean-filter-menu.component.d.ts +3 -3
- package/filtering/menu/date-filter-menu.component.d.ts +5 -3
- package/filtering/menu/filter-menu-template.directive.d.ts +9 -7
- package/filtering/menu/numeric-filter-menu-input.component.d.ts +8 -8
- package/filtering/menu/numeric-filter-menu.component.d.ts +10 -6
- package/filtering/menu/string-filter-menu.component.d.ts +10 -5
- package/filtering/numeric-filter.component.d.ts +13 -13
- package/filtering/operators/after-eq-filter-operator.component.d.ts +26 -0
- package/filtering/operators/after-filter-operator.component.d.ts +26 -0
- package/filtering/operators/before-eq-filter-operator.component.d.ts +26 -0
- package/filtering/operators/before-filter-operator.component.d.ts +26 -0
- package/filtering/operators/contains-filter-operator.component.d.ts +27 -1
- package/filtering/operators/ends-with-filter-operator.component.d.ts +26 -1
- package/filtering/operators/eq-filter-operator.component.d.ts +74 -1
- package/filtering/operators/gt-filter-operator.component.d.ts +26 -0
- package/filtering/operators/gte-filter-operator.component.d.ts +26 -0
- package/filtering/operators/is-empty-filter-operator.component.d.ts +26 -1
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +26 -1
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +73 -1
- package/filtering/operators/isnull-filter-operator.component.d.ts +73 -1
- package/filtering/operators/lt-filter-operator.component.d.ts +26 -1
- package/filtering/operators/lte-filter-operator.component.d.ts +26 -1
- package/filtering/operators/neq-filter-operator.component.d.ts +73 -1
- package/filtering/operators/not-contains-filter-operator.component.d.ts +26 -1
- package/filtering/operators/starts-with-filter-operator.component.d.ts +26 -1
- package/filtering/string-filter.component.d.ts +5 -4
- package/grid.component.d.ts +159 -173
- package/grid.module.d.ts +3 -2
- package/grouping/group-footer-template.directive.d.ts +5 -6
- package/grouping/group-header-column-template.directive.d.ts +5 -5
- package/grouping/group-header-template.directive.d.ts +5 -6
- package/grouping/group-key.interface.d.ts +7 -7
- package/grouping/group-rows-args.interface.d.ts +5 -5
- package/grouping/group-scroll-binding.directive.d.ts +2 -0
- package/grouping/group-settings.d.ts +7 -7
- package/grouping/virtual-group-result.interface.d.ts +3 -3
- package/localization/custom-messages.component.d.ts +12 -2
- package/localization/messages.d.ts +154 -165
- package/navigation/focus-group.d.ts +2 -2
- package/navigation/focusable-element.interface.d.ts +8 -9
- package/navigation/focusable.directive.d.ts +5 -3
- package/navigation/navigable-settings.d.ts +10 -5
- package/navigation/navigation-cell.interface.d.ts +8 -8
- package/navigation/navigation-row.interface.d.ts +6 -7
- package/package.json +20 -20
- package/pdf/pdf-command-tool.directive.d.ts +8 -11
- package/pdf/pdf-command.directive.d.ts +5 -9
- package/pdf/pdf-export-event.d.ts +1 -1
- package/pdf/pdf-margin.component.d.ts +16 -6
- package/pdf/pdf-margin.interface.d.ts +2 -2
- package/pdf/pdf-template.directive.d.ts +5 -5
- package/pdf/pdf.component.d.ts +15 -5
- package/pdf/pdf.module.d.ts +3 -6
- package/rendering/cell-loading.template.directive.d.ts +4 -7
- package/rendering/cell-template.directive.d.ts +7 -8
- package/rendering/common/row-args.d.ts +2 -0
- package/rendering/common/row-class.d.ts +20 -21
- package/rendering/common/spacer.component.d.ts +14 -3
- package/rendering/details/detail-collapse-event.d.ts +8 -3
- package/rendering/details/detail-expand-event.d.ts +8 -3
- package/rendering/details/detail-template.directive.d.ts +8 -7
- package/rendering/details-expand.directive.d.ts +18 -8
- package/rendering/footer/footer-template.directive.d.ts +7 -7
- package/rendering/groups-expand.directive.d.ts +15 -5
- package/rendering/header/header-template.directive.d.ts +11 -11
- package/rendering/loading-template.directive.d.ts +14 -3
- package/rendering/no-records-template.directive.d.ts +3 -5
- package/rendering/toolbar/toolbar-focusable.directive.d.ts +10 -2
- package/rendering/toolbar/toolbar-position.d.ts +5 -5
- package/rendering/toolbar/toolbar-template.directive.d.ts +3 -3
- package/rendering/toolbar/tools/column-chooser-tool.directive.d.ts +6 -5
- package/rendering/toolbar/tools/filter-command-tool.directive.d.ts +5 -5
- package/rendering/toolbar/tools/group-command-tool.directive.d.ts +5 -3
- package/rendering/toolbar/tools/sort-command-tool.directive.d.ts +4 -4
- package/row-reordering/drag-handle-template.directive.d.ts +5 -6
- package/row-reordering/drag-hint-template.directive.d.ts +3 -5
- package/row-reordering/types.d.ts +10 -10
- package/schematics/ngAdd/index.js +4 -4
- package/scrolling/content-scroll-event.d.ts +11 -11
- package/scrolling/scroll-bottom-event.d.ts +2 -2
- package/scrolling/scroll-request.service.d.ts +6 -6
- package/scrolling/scrollmode.d.ts +3 -3
- package/selection/selectall-checkbox.directive.d.ts +2 -2
- package/selection/selection-checkbox.directive.d.ts +9 -8
- package/selection/selection-default.d.ts +9 -8
- package/selection/selection.directive.d.ts +10 -1
- package/selection/types.d.ts +41 -35
- package/state-management/grid-state.models.d.ts +16 -7
- package/state-management/redo-command-tool.d.ts +14 -6
- package/state-management/undo-command-tool.d.ts +14 -6
- package/state-management/undo-redo.directive.d.ts +17 -6
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { GridComponent } from "../grid.component";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Provides the arguments for the `scrollBottom` event.
|
|
8
8
|
*/
|
|
9
9
|
export interface ScrollBottomEvent {
|
|
10
10
|
/**
|
|
11
|
-
* The instance of the GridComponent.
|
|
11
|
+
* The instance of the `GridComponent` that triggers the event.
|
|
12
12
|
*/
|
|
13
13
|
sender: GridComponent;
|
|
14
14
|
}
|
|
@@ -5,30 +5,30 @@
|
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Defines the arguments for the `scrollTo` method. Use this to specify the row or column to scroll to.
|
|
9
9
|
* [See example](slug:scrollmmodes_grid#toc-scrolling-to-a-specific-row-and-column).
|
|
10
10
|
*/
|
|
11
11
|
export interface ScrollRequest {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Specifies the row index to scroll to. The first row has index `0`.
|
|
14
14
|
*/
|
|
15
15
|
row?: number;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Specifies the column index to scroll to. The first column has index `0`.
|
|
18
18
|
*/
|
|
19
19
|
column?: number;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Defines the arguments for the `scrollToItem` method. Use this to specify the data item and column to scroll to.
|
|
23
23
|
* [See example](slug:scrollmmodes_grid#toc-scrolling-to-a-specific-item).
|
|
24
24
|
*/
|
|
25
25
|
export interface ScrollToItemRequest {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Specifies the property name in the Grid data items that holds the unique ID.
|
|
28
28
|
*/
|
|
29
29
|
idField: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Specifies the value of the unique identifier for the data item.
|
|
32
32
|
*/
|
|
33
33
|
id: any;
|
|
34
34
|
}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Sets the scroll mode of the Grid.
|
|
7
7
|
*
|
|
8
8
|
* The available values are:
|
|
9
|
-
* * `none`—
|
|
10
|
-
* * `scrollable`—
|
|
9
|
+
* * `none`—Hides scrollbars. The Grid does not scroll.
|
|
10
|
+
* * `scrollable`—Shows scrollbars in the Grid.
|
|
11
11
|
* * `virtual`—Enables the [virtual scroll mode](slug:virtualscrolling_grid) of the Grid.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
@@ -9,7 +9,7 @@ import { CellSelectionService } from './cell-selection.service';
|
|
|
9
9
|
import { CheckBoxComponent } from '@progress/kendo-angular-inputs';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Adds a select-all checkbox to the Grid. ([See example](slug:grid_selection_persistence#toc-selecting-all-items)).
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```html
|
|
@@ -34,7 +34,7 @@ export declare class SelectAllCheckboxDirective implements AfterContentChecked,
|
|
|
34
34
|
*/
|
|
35
35
|
state: SelectAllCheckboxState;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Emits when the user clicks the select-all checkbox.
|
|
38
38
|
* ([see example](slug:grid_row_selection#toc-select-all-checkbox)).
|
|
39
39
|
*/
|
|
40
40
|
selectAllChange: EventEmitter<SelectAllCheckboxState>;
|
|
@@ -9,22 +9,23 @@ import { CellSelectionService } from './cell-selection.service';
|
|
|
9
9
|
import { CheckBoxComponent } from '@progress/kendo-angular-inputs';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* with the directive, a [selectionChange](slug:api_grid_gridcomponent#toc-selectionChange)
|
|
16
|
-
* event is triggered.
|
|
12
|
+
* Adds a row-selection checkbox to the Grid.
|
|
13
|
+
* Use this directive on a `<kendo-checkbox>` component or `<input type="checkbox">` element inside a cell template.
|
|
14
|
+
* When the user clicks the checkbox, the Grid triggers a [`selectionChange`](slug:api_grid_gridcomponent#toc-selectionChange) event.
|
|
17
15
|
*
|
|
18
16
|
* @example
|
|
19
17
|
* ```html
|
|
20
|
-
* <kendo-grid
|
|
18
|
+
* <kendo-grid>
|
|
21
19
|
* <kendo-grid-column>
|
|
22
20
|
* <ng-template kendoGridCellTemplate let-rowIndex="rowIndex">
|
|
23
|
-
* <input
|
|
21
|
+
* <input [kendoGridSelectionCheckbox]="rowIndex"/>
|
|
22
|
+
* <kendo-checkbox [kendoGridSelectionCheckbox]="rowIndex"></kendo-checkbox>
|
|
24
23
|
* </ng-template>
|
|
25
24
|
* </kendo-grid-column>
|
|
26
25
|
* </kendo-grid>
|
|
27
26
|
* ```
|
|
27
|
+
* @remarks
|
|
28
|
+
* Applied to: {@link CheckBoxComponent}.
|
|
28
29
|
*/
|
|
29
30
|
export declare class SelectionCheckboxDirective implements AfterContentChecked, OnDestroy {
|
|
30
31
|
private selectionService;
|
|
@@ -35,7 +36,7 @@ export declare class SelectionCheckboxDirective implements AfterContentChecked,
|
|
|
35
36
|
private ngZone;
|
|
36
37
|
private checkbox;
|
|
37
38
|
/**
|
|
38
|
-
*
|
|
39
|
+
* Sets the index of the `dataItem` to select.
|
|
39
40
|
*/
|
|
40
41
|
itemIndex: number;
|
|
41
42
|
private destroyClick;
|
|
@@ -17,35 +17,36 @@ export declare class Selection {
|
|
|
17
17
|
protected ctx: ContextService;
|
|
18
18
|
protected cd: ChangeDetectorRef;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Stores the selected item keys.
|
|
21
21
|
* @default []
|
|
22
22
|
*/
|
|
23
23
|
selectedKeys: any[];
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Sets the starting row index for `Shift`+click range selection.
|
|
26
26
|
*
|
|
27
27
|
* @default 0
|
|
28
28
|
*/
|
|
29
29
|
rangeSelectionStartRow: RowArgs;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Sets the starting column index for `Shift`+click range selection when cell selection is on.
|
|
32
32
|
*
|
|
33
33
|
* @default 0
|
|
34
34
|
*/
|
|
35
35
|
rangeSelectionStartColumnIndex: number;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Sets the item key to store in `selectedKeys`.
|
|
38
|
+
* [See example](slug:grid_selection_persistence#by-a-custom-key).
|
|
38
39
|
*/
|
|
39
40
|
selectionKey: string | ((context: RowArgs) => any);
|
|
40
41
|
/**
|
|
41
|
-
*
|
|
42
|
+
* Sets a function to get the column key for a data cell.
|
|
42
43
|
*
|
|
43
|
-
* The function
|
|
44
|
-
*
|
|
44
|
+
* The function must return a unique value for each column.
|
|
45
|
+
* The Grid uses the column index as the default column key.
|
|
45
46
|
*/
|
|
46
47
|
columnKey: string | ((column: any, columnIndex: number) => any);
|
|
47
48
|
/**
|
|
48
|
-
*
|
|
49
|
+
* Emits when the `selectedKeys` collection changes.
|
|
49
50
|
*/
|
|
50
51
|
selectedKeysChange: EventEmitter<any[]>;
|
|
51
52
|
rowSelectionState: Set<any>;
|
|
@@ -7,8 +7,17 @@ import { ContextService } from '../common/provider.service';
|
|
|
7
7
|
import { Selection } from "./selection-default";
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Stores the row selection state of the Grid in memory
|
|
11
11
|
* ([see example]({% slug selection_grid %}#toc-toggling-the-selection-functionality)).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* <kendo-grid kendoGridSelectBy="ProductID"></kendo-grid>
|
|
16
|
+
*
|
|
17
|
+
* <kendo-grid [kendoGridSelectBy]="myKey"></kendo-grid>
|
|
18
|
+
* ```
|
|
19
|
+
* @remarks
|
|
20
|
+
* Applied to: {@link GridComponent}.
|
|
12
21
|
*/
|
|
13
22
|
export declare class SelectionDirective extends Selection implements OnInit, OnDestroy {
|
|
14
23
|
protected ctx: ContextService;
|
package/selection/types.d.ts
CHANGED
|
@@ -6,64 +6,68 @@ import { SelectionAggregate, SelectionAggregates } from '../aggregates/aggregate
|
|
|
6
6
|
import { ColumnComponent } from './../columns/column.component';
|
|
7
7
|
import { RowArgs } from './../rendering/common/row-args';
|
|
8
8
|
/**
|
|
9
|
-
* Represents the callback
|
|
10
|
-
*
|
|
9
|
+
* Represents the callback used by the [`cellSelected`]({% slug api_grid_gridcomponent %}#toc-cellselected) property. ([See example](slug:grid_selection_custom#toc-setting-the-selected-cells)).
|
|
10
|
+
*
|
|
11
|
+
* @param row The row arguments.
|
|
12
|
+
* @param column The column component.
|
|
13
|
+
* @param colIndex The column index.
|
|
14
|
+
* @returns An object with `selected` and `item` properties.
|
|
11
15
|
*/
|
|
12
16
|
export type CellSelectedFn = (row: RowArgs, column: ColumnComponent, colIndex: number) => {
|
|
13
17
|
selected: boolean;
|
|
14
18
|
item: CellSelectionItem;
|
|
15
19
|
};
|
|
16
20
|
/**
|
|
17
|
-
*
|
|
21
|
+
* Provides arguments for the Grid [`selectionChange`](slug:api_grid_gridcomponent#toc-selectionchange) event.
|
|
18
22
|
*/
|
|
19
23
|
export interface SelectionEvent {
|
|
20
24
|
/**
|
|
21
|
-
*
|
|
25
|
+
* Contains the cell selection aggregates.
|
|
22
26
|
*/
|
|
23
27
|
cellAggregates?: SelectionAggregates;
|
|
24
28
|
/**
|
|
25
|
-
*
|
|
29
|
+
* Lists the row items added to the selection.
|
|
26
30
|
*/
|
|
27
31
|
selectedRows?: RowArgs[];
|
|
28
32
|
/**
|
|
29
|
-
*
|
|
33
|
+
* Lists the row items removed from the selection.
|
|
30
34
|
*/
|
|
31
35
|
deselectedRows?: RowArgs[];
|
|
32
36
|
/**
|
|
33
|
-
*
|
|
37
|
+
* Lists the cell items added to the selection.
|
|
34
38
|
*/
|
|
35
39
|
selectedCells?: CellSelectionItem[];
|
|
36
40
|
/**
|
|
37
|
-
*
|
|
41
|
+
* Lists the cell items removed from the selection.
|
|
38
42
|
*/
|
|
39
43
|
deselectedCells?: CellSelectionItem[];
|
|
40
44
|
/**
|
|
41
|
-
* Shows the state of the `Ctrl` key (or the `Command` key on a Mac) during
|
|
45
|
+
* Shows the state of the `Ctrl` key (or the `Command` key on a Mac) during selection.
|
|
42
46
|
*/
|
|
43
47
|
ctrlKey?: boolean;
|
|
44
48
|
/**
|
|
45
|
-
* Shows the state of the `Shift` key during
|
|
49
|
+
* Shows the state of the `Shift` key during selection.
|
|
46
50
|
*/
|
|
47
51
|
shiftKey?: boolean;
|
|
48
52
|
/**
|
|
49
|
-
* Represents the initially clicked row in a
|
|
53
|
+
* Represents the initially clicked row in a `Shift`+click range row selection.
|
|
50
54
|
*/
|
|
51
55
|
rangeStartRow?: RowArgs;
|
|
52
56
|
/**
|
|
53
|
-
* Represents the
|
|
57
|
+
* Represents the item in a `Shift`+click range row selection.
|
|
54
58
|
*/
|
|
55
59
|
rangeEndRow?: RowArgs;
|
|
56
60
|
/**
|
|
57
|
-
* Represents the initially clicked cell in a
|
|
61
|
+
* Represents the initially clicked cell in a `Shift`+click range cell selection.
|
|
58
62
|
*/
|
|
59
63
|
rangeStartCell?: CellSelectionItem;
|
|
60
64
|
/**
|
|
61
|
-
* Represents the
|
|
65
|
+
* Represents the cell in a `Shift`+click range cell selection.
|
|
62
66
|
*/
|
|
63
67
|
rangeEndCell?: CellSelectionItem;
|
|
64
68
|
}
|
|
65
69
|
/**
|
|
66
|
-
*
|
|
70
|
+
* Configures the selection functionality of the Grid. ([See example]({% slug selection_grid %}#toc-setup)).
|
|
67
71
|
*
|
|
68
72
|
* @example
|
|
69
73
|
* ```html
|
|
@@ -75,53 +79,55 @@ export interface SelectionEvent {
|
|
|
75
79
|
*/
|
|
76
80
|
export interface SelectableSettings {
|
|
77
81
|
/**
|
|
78
|
-
*
|
|
79
|
-
* If
|
|
80
|
-
*
|
|
82
|
+
* Enables selection aggregates. By default, this property is set to `false`.
|
|
83
|
+
* If you set `cellAggregates` to `true`, the Grid calculates all aggregate options.
|
|
84
|
+
* Pass an array of [`SelectionAggregate`]({% slug api_grid_selectionaggregate %}) type options to choose which aggregates to calculate.
|
|
85
|
+
*
|
|
81
86
|
*/
|
|
82
87
|
cellAggregates?: boolean | SelectionAggregate[];
|
|
83
88
|
/**
|
|
84
|
-
*
|
|
89
|
+
* Enables selection.
|
|
85
90
|
*
|
|
86
91
|
*/
|
|
87
92
|
enabled?: boolean;
|
|
88
93
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
94
|
+
* Allows selection only through clicking a checkbox.
|
|
95
|
+
* When enabled, clicking the row does not select it.
|
|
96
|
+
* This applies if at least one checkbox column exists.
|
|
92
97
|
*
|
|
93
98
|
*/
|
|
94
99
|
checkboxOnly?: boolean;
|
|
95
100
|
/**
|
|
96
|
-
*
|
|
101
|
+
* Sets the selectable mode.
|
|
102
|
+
*
|
|
97
103
|
*/
|
|
98
104
|
mode?: SelectableMode;
|
|
99
105
|
/**
|
|
100
|
-
*
|
|
106
|
+
* Enables cell selection.
|
|
101
107
|
*
|
|
102
108
|
*/
|
|
103
109
|
cell?: boolean;
|
|
104
110
|
/**
|
|
105
|
-
*
|
|
111
|
+
* Enables drag selection.
|
|
106
112
|
*
|
|
107
113
|
*/
|
|
108
114
|
drag?: boolean;
|
|
109
115
|
/**
|
|
110
|
-
*
|
|
116
|
+
* Requires a meta key (`Ctrl` or `Command`) to select multiple items. By default, you must press a meta key to add a new row or cell to the selection.
|
|
111
117
|
*
|
|
112
118
|
*/
|
|
113
119
|
metaKeyMultiSelect?: boolean;
|
|
114
120
|
/**
|
|
115
|
-
*
|
|
121
|
+
* Preserves the existing selection when you perform a new range selection.
|
|
116
122
|
*
|
|
117
123
|
*/
|
|
118
124
|
multipleRanges?: boolean;
|
|
119
125
|
}
|
|
120
126
|
/**
|
|
121
|
-
*
|
|
127
|
+
* Lists the available selection modes. [See example](slug:grid_row_selection).
|
|
122
128
|
*
|
|
123
129
|
* The available values are:
|
|
124
|
-
* * `single`—Enables single selection.
|
|
130
|
+
* * `single`—Enables single selection. Clicking the selected row does not deselect it. [See example](slug:grid_row_selection#toc-single-row-selection).
|
|
125
131
|
* * `multiple`—Enables multiple selection. [See example](slug:grid_row_selection#toc-multiple-rows-selection).
|
|
126
132
|
*
|
|
127
133
|
* @example
|
|
@@ -131,7 +137,7 @@ export interface SelectableSettings {
|
|
|
131
137
|
*/
|
|
132
138
|
export type SelectableMode = "single" | "multiple";
|
|
133
139
|
/**
|
|
134
|
-
*
|
|
140
|
+
* Lists the possible states of the select-all checkbox.
|
|
135
141
|
*
|
|
136
142
|
* @example
|
|
137
143
|
* ```html
|
|
@@ -140,7 +146,7 @@ export type SelectableMode = "single" | "multiple";
|
|
|
140
146
|
* <input
|
|
141
147
|
* kendoGridSelectAllCheckbox
|
|
142
148
|
* state="indeterminate"
|
|
143
|
-
*
|
|
149
|
+
* ...
|
|
144
150
|
* />
|
|
145
151
|
* </ng-template>
|
|
146
152
|
* <kendo-grid-column>
|
|
@@ -148,20 +154,20 @@ export type SelectableMode = "single" | "multiple";
|
|
|
148
154
|
*/
|
|
149
155
|
export type SelectAllCheckboxState = "checked" | "unchecked" | "indeterminate";
|
|
150
156
|
/**
|
|
151
|
-
*
|
|
157
|
+
* Describes the Grid cell selection item type.
|
|
152
158
|
*/
|
|
153
159
|
export interface CellSelectionItem {
|
|
154
160
|
/**
|
|
155
|
-
*
|
|
161
|
+
* Identifies the selected item.
|
|
156
162
|
*/
|
|
157
163
|
itemKey?: any;
|
|
158
164
|
/**
|
|
159
|
-
*
|
|
165
|
+
* Identifies the selected item column.
|
|
160
166
|
*/
|
|
161
167
|
columnKey?: any;
|
|
162
168
|
}
|
|
163
169
|
/**
|
|
164
|
-
*
|
|
170
|
+
* Lists the possible data types of the Grid selection items.
|
|
165
171
|
*
|
|
166
172
|
* @hidden
|
|
167
173
|
*/
|
|
@@ -6,7 +6,7 @@ import { State } from "@progress/kendo-data-query";
|
|
|
6
6
|
import { GridDataResult } from "../data/data.collection";
|
|
7
7
|
import { PreventableEvent } from "@progress/kendo-angular-common";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Describes the state of a Grid column that users can change.
|
|
10
10
|
*/
|
|
11
11
|
export interface ColumnState {
|
|
12
12
|
/**
|
|
@@ -18,7 +18,7 @@ export interface ColumnState {
|
|
|
18
18
|
*/
|
|
19
19
|
width?: number;
|
|
20
20
|
/**
|
|
21
|
-
* The column visibility.
|
|
21
|
+
* The column visibility state.
|
|
22
22
|
*/
|
|
23
23
|
hidden?: boolean;
|
|
24
24
|
/**
|
|
@@ -29,26 +29,35 @@ export interface ColumnState {
|
|
|
29
29
|
* The column sticky state.
|
|
30
30
|
*/
|
|
31
31
|
sticky?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The order index of the column.
|
|
34
|
+
*/
|
|
32
35
|
orderIndex?: number;
|
|
33
36
|
}
|
|
34
37
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
38
|
+
* Describes the state of the Grid component.
|
|
39
|
+
* Includes the current `State`, data, and columns state.
|
|
37
40
|
*/
|
|
38
41
|
export interface GridState extends State {
|
|
42
|
+
/**
|
|
43
|
+
* The state of all columns in the Grid.
|
|
44
|
+
*/
|
|
39
45
|
columnsState?: ColumnState[];
|
|
46
|
+
/**
|
|
47
|
+
* The current data in the Grid.
|
|
48
|
+
*/
|
|
40
49
|
currentData?: Array<any> | GridDataResult | null;
|
|
41
50
|
}
|
|
42
51
|
/**
|
|
43
|
-
*
|
|
52
|
+
* Provides arguments for the `undo` and `redo` events.
|
|
44
53
|
*/
|
|
45
54
|
export declare class UndoRedoEvent extends PreventableEvent {
|
|
46
55
|
/**
|
|
47
|
-
* The event data
|
|
56
|
+
* The event data for the action that changed the state.
|
|
48
57
|
*/
|
|
49
58
|
readonly originalEvent: any;
|
|
50
59
|
/**
|
|
51
|
-
* The
|
|
60
|
+
* The Grid state and rendered data at the time of the action.
|
|
52
61
|
*/
|
|
53
62
|
readonly gridState: GridState;
|
|
54
63
|
/**
|
|
@@ -6,15 +6,14 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { UndoRedoService } from './undo-redo.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
* Represents the command
|
|
10
|
-
*
|
|
11
|
-
* ToolbarComponent used in the Grid.
|
|
9
|
+
* Represents the command that triggers the redo action in the Grid.
|
|
10
|
+
* Apply this directive to any `kendo-toolbar-button` inside a ToolbarComponent in the Grid.
|
|
12
11
|
*
|
|
13
|
-
* When
|
|
14
|
-
* [redo]({% slug api_grid_undoredodirective %}#toc-redo) event is triggered.
|
|
12
|
+
* When users click the toolbar button with this directive, the
|
|
13
|
+
* [`redo`]({% slug api_grid_undoredodirective %}#toc-redo) event is triggered.
|
|
15
14
|
*
|
|
16
15
|
* @example
|
|
17
|
-
* ```html
|
|
16
|
+
* ```html
|
|
18
17
|
* <kendo-grid>
|
|
19
18
|
* <kendo-toolbar>
|
|
20
19
|
* <kendo-toolbar-button kendoGridRedoTool></kendo-toolbar-button>
|
|
@@ -26,8 +25,17 @@ export declare class RedoCommandToolbarDirective {
|
|
|
26
25
|
private undoRedoService;
|
|
27
26
|
private host;
|
|
28
27
|
private subs;
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
29
31
|
constructor(undoRedoService: UndoRedoService, host: ToolBarButtonComponent);
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
30
35
|
ngOnInit(): void;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
31
39
|
ngOnDestroy(): void;
|
|
32
40
|
/**
|
|
33
41
|
* @hidden
|
|
@@ -6,15 +6,14 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { UndoRedoService } from './undo-redo.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
* Represents the command
|
|
10
|
-
*
|
|
11
|
-
* ToolbarComponent used in the Grid.
|
|
9
|
+
* Represents the command that triggers the undo action in the Grid.
|
|
10
|
+
* Apply this directive to any `kendo-toolbar-button` inside a ToolbarComponent in the Grid.
|
|
12
11
|
*
|
|
13
|
-
* When
|
|
14
|
-
* [undo]({% slug api_grid_undoredodirective %}#toc-undo) event is triggered.
|
|
12
|
+
* When users click the toolbar button with this directive, the
|
|
13
|
+
* [`undo`]({% slug api_grid_undoredodirective %}#toc-undo) event is triggered.
|
|
15
14
|
*
|
|
16
15
|
* @example
|
|
17
|
-
* ```html
|
|
16
|
+
* ```html
|
|
18
17
|
* <kendo-grid>
|
|
19
18
|
* <kendo-toolbar>
|
|
20
19
|
* <kendo-toolbar-button kendoGridUndoTool></kendo-toolbar-button>
|
|
@@ -26,8 +25,17 @@ export declare class UndoCommandToolbarDirective {
|
|
|
26
25
|
private undoRedoService;
|
|
27
26
|
private host;
|
|
28
27
|
private subs;
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
29
31
|
constructor(undoRedoService: UndoRedoService, host: ToolBarButtonComponent);
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
30
35
|
ngOnInit(): void;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
31
39
|
ngOnDestroy(): void;
|
|
32
40
|
/**
|
|
33
41
|
* @hidden
|
|
@@ -9,26 +9,37 @@ import { EditService } from '../editing/edit.service';
|
|
|
9
9
|
import { UndoRedoService } from './undo-redo.service';
|
|
10
10
|
import { ChangeNotificationService } from '../data/change-notification.service';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
|
+
/**
|
|
13
|
+
* Represents the directive that manages undo-redo operations in the Grid.
|
|
14
|
+
* Use this directive to enable undo and redo functionality for user actions in the Grid.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```html
|
|
18
|
+
* <kendo-grid [data]="data" kendoGridUndoRedo></kendo-grid>
|
|
19
|
+
* ```
|
|
20
|
+
* @remarks
|
|
21
|
+
* Applied to: {@link GridComponent}.
|
|
22
|
+
*/
|
|
12
23
|
export declare class UndoRedoDirective implements OnInit, OnDestroy {
|
|
13
24
|
private host;
|
|
14
25
|
private editService;
|
|
15
26
|
private undoRedoService;
|
|
16
27
|
private changeNotification;
|
|
17
28
|
/**
|
|
18
|
-
*
|
|
29
|
+
* Sets the maximum number of actions to keep in the undo-redo stack.
|
|
19
30
|
* @default 10
|
|
20
31
|
*/
|
|
21
32
|
maxStoredStates: number;
|
|
22
33
|
/**
|
|
23
|
-
* Fires when undo action
|
|
34
|
+
* Fires when you perform the undo action. Provides the Grid state to apply.
|
|
24
35
|
*/
|
|
25
36
|
onUndo: EventEmitter<UndoRedoEvent>;
|
|
26
37
|
/**
|
|
27
|
-
* Fires when
|
|
38
|
+
* Fires when you perform the redo action. Provides the Grid state to apply.
|
|
28
39
|
*/
|
|
29
40
|
onRedo: EventEmitter<UndoRedoEvent>;
|
|
30
41
|
/**
|
|
31
|
-
* Returns
|
|
42
|
+
* Returns all undo-redo actions currently in the stack.
|
|
32
43
|
*/
|
|
33
44
|
get undoRedoItems(): UndoRedoEvent[];
|
|
34
45
|
private stack;
|
|
@@ -38,11 +49,11 @@ export declare class UndoRedoDirective implements OnInit, OnDestroy {
|
|
|
38
49
|
ngOnInit(): void;
|
|
39
50
|
ngOnDestroy(): void;
|
|
40
51
|
/**
|
|
41
|
-
* Re-applies the last action
|
|
52
|
+
* Re-applies the last action that you reverted with the `undo` method.
|
|
42
53
|
*/
|
|
43
54
|
redo(): void;
|
|
44
55
|
/**
|
|
45
|
-
* Reverts the last user action.
|
|
56
|
+
* Reverts the last user action that you performed.
|
|
46
57
|
*/
|
|
47
58
|
undo(): void;
|
|
48
59
|
private updateUndoRedoDisabled;
|