@progress/kendo-angular-grid 24.2.2 → 25.0.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/progress-kendo-angular-grid.mjs +711 -711
- package/index.d.ts +14651 -272
- package/package-metadata.mjs +2 -2
- package/package.json +29 -29
- package/schematics/ngAdd/index.js +7 -7
- package/adaptiveness/adaptive-mode.d.ts +0 -8
- package/adaptiveness/adaptive-renderer.component.d.ts +0 -89
- package/aggregates/aggregate-types.d.ts +0 -58
- package/aggregates/selection-aggregate.service.d.ts +0 -43
- package/aggregates/status-bar-template.directive.d.ts +0 -21
- package/aggregates/status-bar.component.d.ts +0 -23
- package/column-menu/column-chooser-content.component.d.ts +0 -61
- package/column-menu/column-chooser.component.d.ts +0 -86
- package/column-menu/column-list-kb-nav.service.d.ts +0 -22
- package/column-menu/column-list.component.d.ts +0 -78
- package/column-menu/column-locked-change-event.d.ts +0 -18
- package/column-menu/column-menu-autosize-all.component.d.ts +0 -48
- package/column-menu/column-menu-autosize.component.d.ts +0 -52
- package/column-menu/column-menu-chooser.component.d.ts +0 -73
- package/column-menu/column-menu-container.component.d.ts +0 -21
- package/column-menu/column-menu-expandable-item.interface.d.ts +0 -14
- package/column-menu/column-menu-filter.component.d.ts +0 -76
- package/column-menu/column-menu-item-base.d.ts +0 -34
- package/column-menu/column-menu-item-content-template.directive.d.ts +0 -34
- package/column-menu/column-menu-item.component.d.ts +0 -140
- package/column-menu/column-menu-item.directive.d.ts +0 -76
- package/column-menu/column-menu-lock.component.d.ts +0 -55
- package/column-menu/column-menu-position.component.d.ts +0 -89
- package/column-menu/column-menu-settings.interface.d.ts +0 -58
- package/column-menu/column-menu-sort.component.d.ts +0 -50
- package/column-menu/column-menu-stick.component.d.ts +0 -57
- package/column-menu/column-menu-template.directive.d.ts +0 -36
- package/column-menu/column-menu.component.d.ts +0 -189
- package/column-menu/column-menu.service.d.ts +0 -64
- package/column-menu/column-sticky-change-event.d.ts +0 -18
- package/column-menu/column-visibility-change-event.d.ts +0 -18
- package/column-menu/utils.d.ts +0 -44
- package/column-resizing/column-handle.directive.d.ts +0 -60
- package/column-resizing/column-resize.interface.d.ts +0 -75
- package/column-resizing/column-resizing.service.d.ts +0 -43
- package/column-resizing/table.directive.d.ts +0 -34
- package/columns/cell-rowspan.d.ts +0 -14
- package/columns/checkbox-column.component.d.ts +0 -53
- package/columns/column-base.d.ts +0 -322
- package/columns/column-common.d.ts +0 -53
- package/columns/column-group.component.d.ts +0 -75
- package/columns/column-list.d.ts +0 -21
- package/columns/column.component.d.ts +0 -112
- package/columns/columns-container.d.ts +0 -31
- package/columns/command-column.component.d.ts +0 -41
- package/columns/pin-column.component.d.ts +0 -45
- package/columns/reorder-column.component.d.ts +0 -64
- package/columns/sort-settings.d.ts +0 -80
- package/columns/span-column.component.d.ts +0 -122
- package/common/adaptiveness.service.d.ts +0 -50
- package/common/cell-click-event-args.interface.d.ts +0 -44
- package/common/clipboard-types.d.ts +0 -98
- package/common/clipboard.directive.d.ts +0 -53
- package/common/clipboard.service.d.ts +0 -28
- package/common/column-info.service.d.ts +0 -38
- package/common/create-form-group.d.ts +0 -12
- package/common/data-layout-mode.d.ts +0 -24
- package/common/default-track-by.d.ts +0 -9
- package/common/dom-events.service.d.ts +0 -24
- package/common/error-messages.d.ts +0 -20
- package/common/event-emitter.d.ts +0 -13
- package/common/fetch-data-callback.d.ts +0 -14
- package/common/field-datatype.d.ts +0 -9
- package/common/filter-descriptor-differ.d.ts +0 -13
- package/common/filter-operator.interface.d.ts +0 -11
- package/common/grid-col-size.d.ts +0 -13
- package/common/id.service.d.ts +0 -24
- package/common/pager-settings.d.ts +0 -105
- package/common/preventable-event.d.ts +0 -20
- package/common/provider.service.d.ts +0 -41
- package/common/remove-confirmation.d.ts +0 -21
- package/common/resizable-settings.d.ts +0 -26
- package/common/single-popup.service.d.ts +0 -64
- package/common/size-options.d.ts +0 -9
- package/common/sort.service.d.ts +0 -13
- package/common/toolbar-tool-base.directive.d.ts +0 -27
- package/constants.d.ts +0 -16
- package/csv/csv-command-tool.directive.d.ts +0 -38
- package/csv/csv-command.directive.d.ts +0 -38
- package/csv/csv-export-event.d.ts +0 -15
- package/csv/csv.component.d.ts +0 -132
- package/csv/csv.module.d.ts +0 -32
- package/csv/csv.service.d.ts +0 -16
- package/data/change-event-args.interface.d.ts +0 -44
- package/data/change-notification.service.d.ts +0 -18
- package/data/data-item.interface.d.ts +0 -34
- package/data/data-mapping.service.d.ts +0 -48
- package/data/data.collection.d.ts +0 -47
- package/data/data.iterators.d.ts +0 -85
- package/data/grid-item.interface.d.ts +0 -16
- package/data/group-footer-item.interface.d.ts +0 -31
- package/data/group-item.interface.d.ts +0 -30
- package/databinding.directive.d.ts +0 -124
- package/directives.d.ts +0 -285
- package/dragdrop/column-reorder-config.d.ts +0 -13
- package/dragdrop/column-reorder-event.d.ts +0 -27
- package/dragdrop/column-reorder.service.d.ts +0 -15
- package/dragdrop/common.d.ts +0 -38
- package/dragdrop/context-types.d.ts +0 -17
- package/dragdrop/drag-and-drop.service.d.ts +0 -23
- package/dragdrop/drag-hint.service.d.ts +0 -34
- package/dragdrop/draggable-column.directive.d.ts +0 -39
- package/dragdrop/drop-cue.service.d.ts +0 -18
- package/dragdrop/drop-target.directive.d.ts +0 -26
- package/editing/add-command-tool.directive.d.ts +0 -38
- package/editing/add-command.directive.d.ts +0 -34
- package/editing/add-event-args.interface.d.ts +0 -10
- package/editing/cancel-command-tool.directive.d.ts +0 -38
- package/editing/cancel-command.directive.d.ts +0 -54
- package/editing/cancel-event-args.interface.d.ts +0 -16
- package/editing/cell-close-event.d.ts +0 -37
- package/editing/edit-command-tool.directive.d.ts +0 -39
- package/editing/edit-command.directive.d.ts +0 -53
- package/editing/edit-event-args.interface.d.ts +0 -26
- package/editing/edit-row-options.interface.d.ts +0 -24
- package/editing/edit-template.directive.d.ts +0 -32
- package/editing/edit.service.d.ts +0 -71
- package/editing/form/dialog-form.component.d.ts +0 -27
- package/editing/form/form-formfield.component.d.ts +0 -24
- package/editing/form/form.component.d.ts +0 -28
- package/editing/form/index.d.ts +0 -8
- package/editing/form/models.d.ts +0 -202
- package/editing/local-data-changes.service.d.ts +0 -15
- package/editing/remove-command-tool.directive.d.ts +0 -40
- package/editing/remove-command.directive.d.ts +0 -51
- package/editing/remove-event-args.interface.d.ts +0 -11
- package/editing/save-command-tool.directive.d.ts +0 -39
- package/editing/save-command.directive.d.ts +0 -53
- package/editing/save-event-args.interface.d.ts +0 -16
- package/editing/toolbar-editing-tool-base.directive.d.ts +0 -30
- package/editing-directives/create-form-group-args.interface.d.ts +0 -10
- package/editing-directives/edit-service.interface.d.ts +0 -33
- package/editing-directives/editing-directive-base.d.ts +0 -63
- package/editing-directives/external-editing.directive.d.ts +0 -55
- package/editing-directives/in-cell-editing.directive.d.ts +0 -41
- package/editing-directives/local-edit.service.d.ts +0 -22
- package/editing-directives/local-row-edit.service.d.ts +0 -11
- package/editing-directives/reactive-editing.directive.d.ts +0 -32
- package/editing-directives/row-editing-directive-base.d.ts +0 -25
- package/editing-directives/template-editing.directive.d.ts +0 -36
- package/editing-directives/utils.d.ts +0 -9
- package/excel/excel-command-tool.directive.d.ts +0 -38
- package/excel/excel-command.directive.d.ts +0 -38
- package/excel/excel-export-event.d.ts +0 -15
- package/excel/excel.component.d.ts +0 -90
- package/excel/excel.module.d.ts +0 -33
- package/excel/excel.service.d.ts +0 -16
- package/filtering/base-filter-cell.component.d.ts +0 -81
- package/filtering/boolean-filter.component.d.ts +0 -47
- package/filtering/cell/autocomplete-filter-cell.component.d.ts +0 -33
- package/filtering/cell/boolean-filter-cell.component.d.ts +0 -44
- package/filtering/cell/date-filter-cell.component.d.ts +0 -51
- package/filtering/cell/filter-cell-component.factory.d.ts +0 -12
- package/filtering/cell/filter-cell-host.directive.d.ts +0 -17
- package/filtering/cell/filter-cell-operators.component.d.ts +0 -117
- package/filtering/cell/filter-cell-template.directive.d.ts +0 -35
- package/filtering/cell/filter-cell-wrapper.component.d.ts +0 -21
- package/filtering/cell/filter-cell.component.d.ts +0 -25
- package/filtering/cell/numeric-filter-cell.component.d.ts +0 -61
- package/filtering/cell/string-filter-cell.component.d.ts +0 -56
- package/filtering/date-filter.component.d.ts +0 -104
- package/filtering/filter-component.interface.d.ts +0 -13
- package/filtering/filter-host.directive.d.ts +0 -35
- package/filtering/filter-input-wrapper.component.d.ts +0 -39
- package/filtering/filter-input.directive.d.ts +0 -35
- package/filtering/filter-row.component.d.ts +0 -34
- package/filtering/filter.service.d.ts +0 -34
- package/filtering/filterable.d.ts +0 -56
- package/filtering/menu/boolean-filter-menu.component.d.ts +0 -76
- package/filtering/menu/date-filter-menu-input.component.d.ts +0 -49
- package/filtering/menu/date-filter-menu.component.d.ts +0 -64
- package/filtering/menu/filter-menu-component.factory.d.ts +0 -12
- package/filtering/menu/filter-menu-container.component.d.ts +0 -88
- package/filtering/menu/filter-menu-dropdownlist.directive.d.ts +0 -19
- package/filtering/menu/filter-menu-host.directive.d.ts +0 -22
- package/filtering/menu/filter-menu-input-wrapper.component.d.ts +0 -53
- package/filtering/menu/filter-menu-template.directive.d.ts +0 -37
- package/filtering/menu/filter-menu.component.d.ts +0 -63
- package/filtering/menu/filter-radio-button.directive.d.ts +0 -19
- package/filtering/menu/menu-tabbing.service.d.ts +0 -18
- package/filtering/menu/numeric-filter-menu-input.component.d.ts +0 -73
- package/filtering/menu/numeric-filter-menu.component.d.ts +0 -82
- package/filtering/menu/string-filter-menu-input.component.d.ts +0 -32
- package/filtering/menu/string-filter-menu.component.d.ts +0 -78
- package/filtering/multicheckbox-filter.component.d.ts +0 -50
- package/filtering/numeric-filter.component.d.ts +0 -85
- package/filtering/operators/after-eq-filter-operator.component.d.ts +0 -49
- package/filtering/operators/after-filter-operator.component.d.ts +0 -49
- package/filtering/operators/before-eq-filter-operator.component.d.ts +0 -49
- package/filtering/operators/before-filter-operator.component.d.ts +0 -49
- package/filtering/operators/contains-filter-operator.component.d.ts +0 -42
- package/filtering/operators/ends-with-filter-operator.component.d.ts +0 -42
- package/filtering/operators/eq-filter-operator.component.d.ts +0 -90
- package/filtering/operators/filter-operator.base.d.ts +0 -44
- package/filtering/operators/gt-filter-operator.component.d.ts +0 -42
- package/filtering/operators/gte-filter-operator.component.d.ts +0 -42
- package/filtering/operators/is-empty-filter-operator.component.d.ts +0 -42
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +0 -42
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +0 -89
- package/filtering/operators/isnull-filter-operator.component.d.ts +0 -89
- package/filtering/operators/lt-filter-operator.component.d.ts +0 -42
- package/filtering/operators/lte-filter-operator.component.d.ts +0 -42
- package/filtering/operators/neq-filter-operator.component.d.ts +0 -89
- package/filtering/operators/not-contains-filter-operator.component.d.ts +0 -42
- package/filtering/operators/starts-with-filter-operator.component.d.ts +0 -42
- package/filtering/string-filter.component.d.ts +0 -48
- package/grid.component.d.ts +0 -1156
- package/grid.module.d.ts +0 -179
- package/grouping/group-footer-template.directive.d.ts +0 -33
- package/grouping/group-header-column-template.directive.d.ts +0 -34
- package/grouping/group-header-template.directive.d.ts +0 -35
- package/grouping/group-header.component.d.ts +0 -52
- package/grouping/group-info.service.d.ts +0 -21
- package/grouping/group-key.interface.d.ts +0 -29
- package/grouping/group-panel.component.d.ts +0 -75
- package/grouping/group-rows-args.interface.d.ts +0 -23
- package/grouping/group-settings.d.ts +0 -38
- package/grouping/groups.service.d.ts +0 -36
- package/grouping/sticky-groups/models.d.ts +0 -24
- package/grouping/sticky-groups/sticky-group-container.component.d.ts +0 -114
- package/grouping/sticky-groups/sticky-groups-utils.d.ts +0 -71
- package/grouping/sticky-groups/sticky-groups.service.d.ts +0 -132
- package/grouping/utils.d.ts +0 -10
- package/highlight/highlight-item.d.ts +0 -17
- package/highlight/highlight.directive.d.ts +0 -62
- package/layout/resizable.directive.d.ts +0 -28
- package/layout/resize.service.d.ts +0 -18
- package/layout/responsive.service.d.ts +0 -20
- package/layout/row-sync.d.ts +0 -8
- package/layout/sizing-options.service.d.ts +0 -15
- package/localization/custom-messages.component.d.ts +0 -28
- package/localization/localized-messages.directive.d.ts +0 -16
- package/localization/messages.d.ts +0 -744
- package/navigation/default-focusable-element.d.ts +0 -22
- package/navigation/focus-group.d.ts +0 -35
- package/navigation/focus-root.d.ts +0 -25
- package/navigation/focusable-element.interface.d.ts +0 -37
- package/navigation/focusable.directive.d.ts +0 -73
- package/navigation/grid-focusable-element.d.ts +0 -18
- package/navigation/item-map.d.ts +0 -19
- package/navigation/logical-cell.directive.d.ts +0 -59
- package/navigation/logical-cell.interface.d.ts +0 -20
- package/navigation/logical-row.directive.d.ts +0 -36
- package/navigation/logical-row.interface.d.ts +0 -13
- package/navigation/navigable-settings.d.ts +0 -31
- package/navigation/navigation-cell.interface.d.ts +0 -52
- package/navigation/navigation-change.interface.d.ts +0 -13
- package/navigation/navigation-cursor.d.ts +0 -50
- package/navigation/navigation-metadata.d.ts +0 -24
- package/navigation/navigation-mode.d.ts +0 -43
- package/navigation/navigation-model.d.ts +0 -27
- package/navigation/navigation-row.interface.d.ts +0 -36
- package/navigation/navigation.service.d.ts +0 -156
- package/navigation/skip-cell-navigation.d.ts +0 -12
- package/navigation/toolbar-tool-name.d.ts +0 -19
- package/package-metadata.d.ts +0 -9
- package/pdf/export-element.d.ts +0 -11
- package/pdf/grid-query.d.ts +0 -26
- package/pdf/pdf-command-tool.directive.d.ts +0 -39
- package/pdf/pdf-command.directive.d.ts +0 -38
- package/pdf/pdf-export-event.d.ts +0 -14
- package/pdf/pdf-margin.component.d.ts +0 -29
- package/pdf/pdf-margin.interface.d.ts +0 -11
- package/pdf/pdf-template.directive.d.ts +0 -32
- package/pdf/pdf.component.d.ts +0 -94
- package/pdf/pdf.module.d.ts +0 -35
- package/pdf/pdf.service.d.ts +0 -25
- package/rendering/cell-loading.template.directive.d.ts +0 -28
- package/rendering/cell-template.directive.d.ts +0 -33
- package/rendering/cell.component.d.ts +0 -107
- package/rendering/common/cell-context.d.ts +0 -26
- package/rendering/common/col-group.component.d.ts +0 -31
- package/rendering/common/dom-queries.d.ts +0 -64
- package/rendering/common/field-accessor.pipe.d.ts +0 -18
- package/rendering/common/format.pipe.d.ts +0 -17
- package/rendering/common/loading.component.d.ts +0 -19
- package/rendering/common/row-args.d.ts +0 -19
- package/rendering/common/row-class.d.ts +0 -60
- package/rendering/common/spacer.component.d.ts +0 -37
- package/rendering/constants.d.ts +0 -20
- package/rendering/details/detail-collapse-event.d.ts +0 -24
- package/rendering/details/detail-expand-event.d.ts +0 -24
- package/rendering/details/detail-template.directive.d.ts +0 -49
- package/rendering/details/details.service.d.ts +0 -28
- package/rendering/details-expand.directive.d.ts +0 -71
- package/rendering/footer/footer-template.directive.d.ts +0 -37
- package/rendering/footer/footer.component.d.ts +0 -42
- package/rendering/grid-table.directive.d.ts +0 -19
- package/rendering/groups-expand.directive.d.ts +0 -59
- package/rendering/header/header-template.directive.d.ts +0 -34
- package/rendering/header/header.component.d.ts +0 -142
- package/rendering/list.component.d.ts +0 -263
- package/rendering/loading-template.directive.d.ts +0 -29
- package/rendering/no-records-template.directive.d.ts +0 -27
- package/rendering/rowspan.service.d.ts +0 -14
- package/rendering/table-body.component.d.ts +0 -135
- package/rendering/toolbar/toolbar-focusable.directive.d.ts +0 -41
- package/rendering/toolbar/toolbar-navigation.service.d.ts +0 -23
- package/rendering/toolbar/toolbar-position.d.ts +0 -22
- package/rendering/toolbar/toolbar-template.directive.d.ts +0 -37
- package/rendering/toolbar/toolbar.component.d.ts +0 -36
- package/rendering/toolbar/tools/ai-assistant/ai-assistant.component.d.ts +0 -50
- package/rendering/toolbar/tools/ai-assistant/ai-request-response.service.d.ts +0 -61
- package/rendering/toolbar/tools/ai-assistant/ai-tool.directive.d.ts +0 -115
- package/rendering/toolbar/tools/ai-assistant/models.d.ts +0 -203
- package/rendering/toolbar/tools/ai-assistant/utils.d.ts +0 -28
- package/rendering/toolbar/tools/column-chooser-tool.directive.d.ts +0 -81
- package/rendering/toolbar/tools/filter-command-tool.directive.d.ts +0 -64
- package/rendering/toolbar/tools/filter-tool-wrapper.component.d.ts +0 -42
- package/rendering/toolbar/tools/filter-toolbar-tool.component.d.ts +0 -52
- package/rendering/toolbar/tools/group-command-tool.directive.d.ts +0 -53
- package/rendering/toolbar/tools/group-toolbar-tool.component.d.ts +0 -61
- package/rendering/toolbar/tools/select-all-command-tool.directive.d.ts +0 -36
- package/rendering/toolbar/tools/smartbox/models.d.ts +0 -71
- package/rendering/toolbar/tools/smartbox/search.service.d.ts +0 -32
- package/rendering/toolbar/tools/smartbox/smartbox-component/common.d.ts +0 -38
- package/rendering/toolbar/tools/smartbox/smartbox-component/models.d.ts +0 -177
- package/rendering/toolbar/tools/smartbox/smartbox-component/smartbox.component.d.ts +0 -157
- package/rendering/toolbar/tools/smartbox/smartbox-history-item.template.d.ts +0 -29
- package/rendering/toolbar/tools/smartbox/smartbox-suggestion.template.d.ts +0 -29
- package/rendering/toolbar/tools/smartbox/smartbox-tool.component.d.ts +0 -120
- package/rendering/toolbar/tools/sort-command-tool.directive.d.ts +0 -62
- package/rendering/toolbar/tools/sort-toolbar-tool.component.d.ts +0 -57
- package/row-pinning/pinned-row-tracking.service.d.ts +0 -64
- package/row-pinning/row-pin-container.component.d.ts +0 -56
- package/row-pinning/row-pin.service.d.ts +0 -28
- package/row-pinning/types.d.ts +0 -42
- package/row-reordering/drag-handle-template.directive.d.ts +0 -33
- package/row-reordering/drag-hint-template.directive.d.ts +0 -31
- package/row-reordering/row-reorder.service.d.ts +0 -69
- package/row-reordering/types.d.ts +0 -48
- package/row-reordering/utils.d.ts +0 -78
- package/scrolling/content-scroll-event.d.ts +0 -37
- package/scrolling/row-height.service.d.ts +0 -18
- package/scrolling/scroll-bottom-event.d.ts +0 -14
- package/scrolling/scroll-request.service.d.ts +0 -47
- package/scrolling/scroll-sync.service.d.ts +0 -35
- package/scrolling/scroller.service.d.ts +0 -76
- package/scrolling/scrollmode.d.ts +0 -18
- package/scrolling/suspend.service.d.ts +0 -13
- package/selection/cell-selection.service.d.ts +0 -74
- package/selection/marquee.directive.d.ts +0 -38
- package/selection/pair-set.d.ts +0 -78
- package/selection/selectall-checkbox.directive.d.ts +0 -60
- package/selection/selection-checkbox.directive.d.ts +0 -52
- package/selection/selection-default.d.ts +0 -89
- package/selection/selection.directive.d.ts +0 -35
- package/selection/selection.service.d.ts +0 -79
- package/selection/types.d.ts +0 -174
- package/state-management/grid-state.models.d.ts +0 -71
- package/state-management/redo-command-tool.d.ts +0 -46
- package/state-management/undo-command-tool.d.ts +0 -46
- package/state-management/undo-redo.directive.d.ts +0 -73
- package/state-management/undo-redo.service.d.ts +0 -17
- package/state-management/undo-redo.stack.d.ts +0 -106
- package/utils.d.ts +0 -119
|
@@ -1,79 +0,0 @@
|
|
|
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 { EventEmitter, OnDestroy } from '@angular/core';
|
|
6
|
-
import { SelectableSettings, SelectionEvent } from './types';
|
|
7
|
-
import { RowSelectableFn, RowSelectedFn } from '../rendering/common/row-class';
|
|
8
|
-
import { RowArgs } from '../rendering/common/row-args';
|
|
9
|
-
import { DomEventsService } from '../common/dom-events.service';
|
|
10
|
-
import { LocalDataChangesService } from '../editing/local-data-changes.service';
|
|
11
|
-
import { NavigationService } from '../navigation/navigation.service';
|
|
12
|
-
import { SelectionAggregates } from '../aggregates/aggregate-types';
|
|
13
|
-
import { ContextService } from '../common/provider.service';
|
|
14
|
-
import { CellSelectionAggregateService } from '../aggregates/selection-aggregate.service';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
type SelectionServiceSettings = {
|
|
20
|
-
rowSelected: RowSelectedFn;
|
|
21
|
-
isRowSelectable: RowSelectableFn;
|
|
22
|
-
selectable: boolean | SelectableSettings;
|
|
23
|
-
view: {
|
|
24
|
-
accessor: Function;
|
|
25
|
-
at: Function;
|
|
26
|
-
length: number;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
export declare class SelectionService implements OnDestroy {
|
|
33
|
-
private domEvents;
|
|
34
|
-
private aggregateService;
|
|
35
|
-
private localDataChangesService?;
|
|
36
|
-
private navigationService?;
|
|
37
|
-
private ctxService?;
|
|
38
|
-
changes: EventEmitter<SelectionEvent>;
|
|
39
|
-
lastSelectionStartIndex: any;
|
|
40
|
-
currentSelection: any[];
|
|
41
|
-
nonSelectableRows: Map<any, any>;
|
|
42
|
-
selectAllChecked: boolean;
|
|
43
|
-
settings: SelectionServiceSettings;
|
|
44
|
-
active: boolean;
|
|
45
|
-
aggregates: SelectionAggregates;
|
|
46
|
-
get enableMarquee(): boolean;
|
|
47
|
-
mouseDownEventArgs: any;
|
|
48
|
-
dragging: boolean;
|
|
49
|
-
get hasNonSelectable(): boolean;
|
|
50
|
-
private cellClickSubscription;
|
|
51
|
-
private mousedownSubscription;
|
|
52
|
-
private dataChangedSubscription;
|
|
53
|
-
private lastSelectionData;
|
|
54
|
-
private _selectAllState;
|
|
55
|
-
constructor(domEvents: DomEventsService, aggregateService: CellSelectionAggregateService, localDataChangesService?: LocalDataChangesService, navigationService?: NavigationService, ctxService?: ContextService);
|
|
56
|
-
init(settings: any): void;
|
|
57
|
-
isSelected(index: number): boolean;
|
|
58
|
-
handleClick(item: any, event: any): void;
|
|
59
|
-
toggle(item: any): any;
|
|
60
|
-
toggleByIndex(index: number): any;
|
|
61
|
-
select(item: any): any;
|
|
62
|
-
deselect(removedItem: any): void;
|
|
63
|
-
addAllTo(item: any, ctrlKey: boolean, preserveSelection?: boolean, shiftKey?: boolean): any;
|
|
64
|
-
updateAll(selectAllChecked: boolean): void;
|
|
65
|
-
selectRange(startIndex: number, endIndex: number, preserveSelection: boolean, existingSelections?: any[]): any;
|
|
66
|
-
setSelectionStart(row: RowArgs): void;
|
|
67
|
-
get selectAllState(): any;
|
|
68
|
-
get selected(): number[];
|
|
69
|
-
get options(): SelectableSettings;
|
|
70
|
-
ngOnDestroy(): void;
|
|
71
|
-
targetArgs(): any;
|
|
72
|
-
addSubscriptions(): void;
|
|
73
|
-
private getIterator;
|
|
74
|
-
private removeSubscriptions;
|
|
75
|
-
private syncCurrentSelection;
|
|
76
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionService, never>;
|
|
77
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SelectionService>;
|
|
78
|
-
}
|
|
79
|
-
export {};
|
package/selection/types.d.ts
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
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 { SelectionAggregate, SelectionAggregates } from '../aggregates/aggregate-types';
|
|
6
|
-
import { ColumnComponent } from './../columns/column.component';
|
|
7
|
-
import { RowArgs } from './../rendering/common/row-args';
|
|
8
|
-
/**
|
|
9
|
-
* Represents the callback used by the [`cellSelected`](https://www.telerik.com/kendo-angular-ui/components/grid/api/gridcomponent#cellselected) property. ([See example](https://www.telerik.com/kendo-angular-ui/components/grid/selection/custom-selection#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.
|
|
15
|
-
*/
|
|
16
|
-
export type CellSelectedFn = (row: RowArgs, column: ColumnComponent, colIndex: number) => {
|
|
17
|
-
selected: boolean;
|
|
18
|
-
item: CellSelectionItem;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Provides arguments for the Grid [`selectionChange`](https://www.telerik.com/kendo-angular-ui/components/grid/api/gridcomponent#selectionchange) event.
|
|
22
|
-
*/
|
|
23
|
-
export interface SelectionEvent {
|
|
24
|
-
/**
|
|
25
|
-
* Contains the cell selection aggregates.
|
|
26
|
-
*/
|
|
27
|
-
cellAggregates?: SelectionAggregates;
|
|
28
|
-
/**
|
|
29
|
-
* Lists the row items added to the selection.
|
|
30
|
-
*/
|
|
31
|
-
selectedRows?: RowArgs[];
|
|
32
|
-
/**
|
|
33
|
-
* Lists the row items removed from the selection.
|
|
34
|
-
*/
|
|
35
|
-
deselectedRows?: RowArgs[];
|
|
36
|
-
/**
|
|
37
|
-
* Lists the cell items added to the selection.
|
|
38
|
-
*/
|
|
39
|
-
selectedCells?: CellSelectionItem[];
|
|
40
|
-
/**
|
|
41
|
-
* Lists the cell items removed from the selection.
|
|
42
|
-
*/
|
|
43
|
-
deselectedCells?: CellSelectionItem[];
|
|
44
|
-
/**
|
|
45
|
-
* Shows the state of the `Ctrl` key (or the `Command` key on a Mac) during selection.
|
|
46
|
-
*/
|
|
47
|
-
ctrlKey?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Shows the state of the `Shift` key during selection.
|
|
50
|
-
*/
|
|
51
|
-
shiftKey?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Represents the initially clicked row in a `Shift`+click range row selection.
|
|
54
|
-
*/
|
|
55
|
-
rangeStartRow?: RowArgs;
|
|
56
|
-
/**
|
|
57
|
-
* Represents the item in a `Shift`+click range row selection.
|
|
58
|
-
*/
|
|
59
|
-
rangeEndRow?: RowArgs;
|
|
60
|
-
/**
|
|
61
|
-
* Represents the initially clicked cell in a `Shift`+click range cell selection.
|
|
62
|
-
*/
|
|
63
|
-
rangeStartCell?: CellSelectionItem;
|
|
64
|
-
/**
|
|
65
|
-
* Represents the cell in a `Shift`+click range cell selection.
|
|
66
|
-
*/
|
|
67
|
-
rangeEndCell?: CellSelectionItem;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Configures the selection functionality of the Grid. ([See example](https://www.telerik.com/kendo-angular-ui/components/grid/selection#setup)).
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```html
|
|
74
|
-
* <kendo-grid [data]="gridData" [selectable]="{ checkboxOnly: true, mode: 'multiple' }">
|
|
75
|
-
* <kendo-grid-column field="ProductID"> </kendo-grid-column>
|
|
76
|
-
* <kendo-grid-column field="ProductName"> </kendo-grid-column>
|
|
77
|
-
* </kendo-grid>
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
export interface SelectableSettings {
|
|
81
|
-
/**
|
|
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`](https://www.telerik.com/kendo-angular-ui/components/grid/api/selectionaggregate) type options to choose which aggregates to calculate.
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
|
-
cellAggregates?: boolean | SelectionAggregate[];
|
|
88
|
-
/**
|
|
89
|
-
* Enables selection.
|
|
90
|
-
*
|
|
91
|
-
*/
|
|
92
|
-
enabled?: boolean;
|
|
93
|
-
/**
|
|
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.
|
|
97
|
-
*
|
|
98
|
-
*/
|
|
99
|
-
checkboxOnly?: boolean;
|
|
100
|
-
/**
|
|
101
|
-
* Sets the selectable mode.
|
|
102
|
-
*
|
|
103
|
-
*/
|
|
104
|
-
mode?: SelectableMode;
|
|
105
|
-
/**
|
|
106
|
-
* Enables cell selection.
|
|
107
|
-
*
|
|
108
|
-
*/
|
|
109
|
-
cell?: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* Enables drag selection.
|
|
112
|
-
*
|
|
113
|
-
*/
|
|
114
|
-
drag?: boolean;
|
|
115
|
-
/**
|
|
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.
|
|
117
|
-
*
|
|
118
|
-
*/
|
|
119
|
-
metaKeyMultiSelect?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* Preserves the existing selection when you perform a new range selection.
|
|
122
|
-
*
|
|
123
|
-
*/
|
|
124
|
-
multipleRanges?: boolean;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Lists the available selection modes. [See example](https://www.telerik.com/kendo-angular-ui/components/grid/selection/row-selection).
|
|
128
|
-
*
|
|
129
|
-
* The available values are:
|
|
130
|
-
* * `single`—Enables single selection. Clicking the selected row does not deselect it. [See example](https://www.telerik.com/kendo-angular-ui/components/grid/selection/row-selection#single-row-selection).
|
|
131
|
-
* * `multiple`—Enables multiple selection. [See example](https://www.telerik.com/kendo-angular-ui/components/grid/selection/row-selection#multiple-rows-selection).
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```html
|
|
135
|
-
* <kendo-grid [selectable]="{mode: 'multiple'}"></kendo-grid>
|
|
136
|
-
* ```
|
|
137
|
-
*/
|
|
138
|
-
export type SelectableMode = "single" | "multiple";
|
|
139
|
-
/**
|
|
140
|
-
* Lists the possible states of the select-all checkbox.
|
|
141
|
-
*
|
|
142
|
-
* @example
|
|
143
|
-
* ```html
|
|
144
|
-
* <kendo-grid-column>
|
|
145
|
-
* <ng-template kendoGridHeaderTemplate>
|
|
146
|
-
* <input
|
|
147
|
-
* kendoGridSelectAllCheckbox
|
|
148
|
-
* state="indeterminate"
|
|
149
|
-
* ...
|
|
150
|
-
* />
|
|
151
|
-
* </ng-template>
|
|
152
|
-
* <kendo-grid-column>
|
|
153
|
-
* ```
|
|
154
|
-
*/
|
|
155
|
-
export type SelectAllCheckboxState = "checked" | "unchecked" | "indeterminate";
|
|
156
|
-
/**
|
|
157
|
-
* Describes the Grid cell selection item type.
|
|
158
|
-
*/
|
|
159
|
-
export interface CellSelectionItem {
|
|
160
|
-
/**
|
|
161
|
-
* Identifies the selected item.
|
|
162
|
-
*/
|
|
163
|
-
itemKey?: any;
|
|
164
|
-
/**
|
|
165
|
-
* Identifies the selected item column.
|
|
166
|
-
*/
|
|
167
|
-
columnKey?: any;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Lists the possible data types of the Grid selection items.
|
|
171
|
-
*
|
|
172
|
-
* @hidden
|
|
173
|
-
*/
|
|
174
|
-
export type GridSelectionItem = number | RowArgs | CellSelectionItem;
|
|
@@ -1,71 +0,0 @@
|
|
|
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 { CompositeFilterDescriptor, State } from "@progress/kendo-data-query";
|
|
6
|
-
import { GridDataResult } from "../data/data.collection";
|
|
7
|
-
import { PreventableEvent } from "@progress/kendo-angular-common";
|
|
8
|
-
/**
|
|
9
|
-
* Describes the state of a Grid column that users can change.
|
|
10
|
-
*/
|
|
11
|
-
export interface ColumnState {
|
|
12
|
-
/**
|
|
13
|
-
* The column identifier that is unique in the scope of its `GridComponent` owner.
|
|
14
|
-
*/
|
|
15
|
-
id: string;
|
|
16
|
-
/**
|
|
17
|
-
* The column width in pixels.
|
|
18
|
-
*/
|
|
19
|
-
width?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The column visibility state.
|
|
22
|
-
*/
|
|
23
|
-
hidden?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* The column locked state.
|
|
26
|
-
*/
|
|
27
|
-
locked?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* The column sticky state.
|
|
30
|
-
*/
|
|
31
|
-
sticky?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* The order index of the column.
|
|
34
|
-
*/
|
|
35
|
-
orderIndex?: number;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Describes the state of the Grid component.
|
|
39
|
-
* Includes the current `State`, data, columns and search state.
|
|
40
|
-
*/
|
|
41
|
-
export interface GridState extends State {
|
|
42
|
-
/**
|
|
43
|
-
* The state of all columns in the Grid.
|
|
44
|
-
*/
|
|
45
|
-
columnsState?: ColumnState[];
|
|
46
|
-
/**
|
|
47
|
-
* The current data in the Grid.
|
|
48
|
-
*/
|
|
49
|
-
currentData?: Array<any> | GridDataResult | null;
|
|
50
|
-
/**
|
|
51
|
-
* The descriptors used for searching.
|
|
52
|
-
*/
|
|
53
|
-
searchFilter?: CompositeFilterDescriptor;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Provides arguments for the `undo` and `redo` events.
|
|
57
|
-
*/
|
|
58
|
-
export declare class UndoRedoEvent extends PreventableEvent {
|
|
59
|
-
/**
|
|
60
|
-
* The event data for the action that changed the state.
|
|
61
|
-
*/
|
|
62
|
-
readonly originalEvent: any;
|
|
63
|
-
/**
|
|
64
|
-
* The Grid state and rendered data at the time of the action.
|
|
65
|
-
*/
|
|
66
|
-
readonly gridState: GridState;
|
|
67
|
-
/**
|
|
68
|
-
* @hidden
|
|
69
|
-
*/
|
|
70
|
-
constructor({ originalEvent, gridState }: any);
|
|
71
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
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 { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
6
|
-
import { UndoRedoService } from './undo-redo.service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
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.
|
|
11
|
-
*
|
|
12
|
-
* When users click the toolbar button with this directive, the
|
|
13
|
-
* [`redo`](https://www.telerik.com/kendo-angular-ui/components/grid/api/undoredodirective#redo) event is triggered.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```html
|
|
17
|
-
* <kendo-grid>
|
|
18
|
-
* <kendo-toolbar>
|
|
19
|
-
* <kendo-toolbar-button kendoGridRedoTool></kendo-toolbar-button>
|
|
20
|
-
* </kendo-toolbar>
|
|
21
|
-
* </kendo-grid>
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export declare class RedoCommandToolbarDirective {
|
|
25
|
-
private undoRedoService;
|
|
26
|
-
private host;
|
|
27
|
-
private subs;
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
|
-
constructor(undoRedoService: UndoRedoService, host: ToolBarButtonComponent);
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
*/
|
|
35
|
-
ngOnInit(): void;
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
ngOnDestroy(): void;
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
onClick(e: any): void;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RedoCommandToolbarDirective, never>;
|
|
45
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RedoCommandToolbarDirective, "[kendoGridRedoTool]", never, {}, {}, never, never, true, never>;
|
|
46
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
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 { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
6
|
-
import { UndoRedoService } from './undo-redo.service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
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.
|
|
11
|
-
*
|
|
12
|
-
* When users click the toolbar button with this directive, the
|
|
13
|
-
* [`undo`](https://www.telerik.com/kendo-angular-ui/components/grid/api/undoredodirective#undo) event is triggered.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```html
|
|
17
|
-
* <kendo-grid>
|
|
18
|
-
* <kendo-toolbar>
|
|
19
|
-
* <kendo-toolbar-button kendoGridUndoTool></kendo-toolbar-button>
|
|
20
|
-
* </kendo-toolbar>
|
|
21
|
-
* </kendo-grid>
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export declare class UndoCommandToolbarDirective {
|
|
25
|
-
private undoRedoService;
|
|
26
|
-
private host;
|
|
27
|
-
private subs;
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
|
-
constructor(undoRedoService: UndoRedoService, host: ToolBarButtonComponent);
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
*/
|
|
35
|
-
ngOnInit(): void;
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
ngOnDestroy(): void;
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
onClick(e: any): void;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UndoCommandToolbarDirective, never>;
|
|
45
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<UndoCommandToolbarDirective, "[kendoGridUndoTool]", never, {}, {}, never, never, true, never>;
|
|
46
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
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 { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
6
|
-
import { GridComponent } from '../grid.component';
|
|
7
|
-
import { UndoRedoEvent } from './grid-state.models';
|
|
8
|
-
import { EditService } from '../editing/edit.service';
|
|
9
|
-
import { UndoRedoService } from './undo-redo.service';
|
|
10
|
-
import { ChangeNotificationService } from '../data/change-notification.service';
|
|
11
|
-
import { ContextService } from '../common/provider.service';
|
|
12
|
-
import { LocalDataChangesService } from '../editing/local-data-changes.service';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
/**
|
|
15
|
-
* Represents the directive that manages undo-redo operations in the Grid.
|
|
16
|
-
* Use this directive to enable undo and redo functionality for user actions in the Grid.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```html
|
|
20
|
-
* <kendo-grid [data]="data" kendoGridUndoRedo></kendo-grid>
|
|
21
|
-
* ```
|
|
22
|
-
* @remarks
|
|
23
|
-
* Applied to: {@link GridComponent}.
|
|
24
|
-
*/
|
|
25
|
-
export declare class UndoRedoDirective implements OnInit, OnDestroy {
|
|
26
|
-
private host;
|
|
27
|
-
private editService;
|
|
28
|
-
private undoRedoService;
|
|
29
|
-
private changeNotification;
|
|
30
|
-
private ctx?;
|
|
31
|
-
private localDataChangesService?;
|
|
32
|
-
/**
|
|
33
|
-
* Sets the maximum number of actions to keep in the undo-redo stack.
|
|
34
|
-
* @default 10
|
|
35
|
-
*/
|
|
36
|
-
maxStoredStates: number;
|
|
37
|
-
/**
|
|
38
|
-
* Defines the property name of the data item unique key that will be used to identify the items when performing undo-redo actions.
|
|
39
|
-
*/
|
|
40
|
-
itemIdKey: string | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* Fires when you perform the undo action. Provides the Grid state to apply.
|
|
43
|
-
*/
|
|
44
|
-
onUndo: EventEmitter<UndoRedoEvent>;
|
|
45
|
-
/**
|
|
46
|
-
* Fires when you perform the redo action. Provides the Grid state to apply.
|
|
47
|
-
*/
|
|
48
|
-
onRedo: EventEmitter<UndoRedoEvent>;
|
|
49
|
-
/**
|
|
50
|
-
* Returns all undo-redo actions currently in the stack.
|
|
51
|
-
*/
|
|
52
|
-
get undoRedoItems(): UndoRedoEvent[];
|
|
53
|
-
private stack;
|
|
54
|
-
private subs;
|
|
55
|
-
private addToState;
|
|
56
|
-
constructor(host: GridComponent, editService: EditService, undoRedoService: UndoRedoService, changeNotification: ChangeNotificationService, ctx?: ContextService, localDataChangesService?: LocalDataChangesService);
|
|
57
|
-
ngOnInit(): void;
|
|
58
|
-
ngAfterViewInit(): void;
|
|
59
|
-
ngOnDestroy(): void;
|
|
60
|
-
/**
|
|
61
|
-
* Re-applies the last action that you reverted with the `undo` method.
|
|
62
|
-
*/
|
|
63
|
-
redo(): void;
|
|
64
|
-
/**
|
|
65
|
-
* Reverts the last user action that you performed.
|
|
66
|
-
*/
|
|
67
|
-
undo(): void;
|
|
68
|
-
private updateUndoRedoDisabled;
|
|
69
|
-
private getGridDataItems;
|
|
70
|
-
private isDataStateChangeEvent;
|
|
71
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UndoRedoDirective, never>;
|
|
72
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<UndoRedoDirective, "[kendoGridUndoRedo]", ["kendoGridUndoRedo"], { "maxStoredStates": { "alias": "maxStoredStates"; "required": false; }; "itemIdKey": { "alias": "itemIdKey"; "required": false; }; }, { "onUndo": "undo"; "onRedo": "redo"; }, never, never, true, never>;
|
|
73
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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 { Subject } from 'rxjs';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare class UndoRedoService {
|
|
11
|
-
originalEvent: any;
|
|
12
|
-
onUndo: Subject<undefined>;
|
|
13
|
-
onRedo: Subject<undefined>;
|
|
14
|
-
stackEndReached: Subject<'start' | 'end' | false>;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UndoRedoService, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UndoRedoService>;
|
|
17
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
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
|
-
* Represents a node in the undo-redo linked list.
|
|
8
|
-
*/
|
|
9
|
-
export interface UndoRedoNode<T> {
|
|
10
|
-
/** The state data stored in the node */
|
|
11
|
-
state: T;
|
|
12
|
-
/** Reference to the previous node (the previous state) */
|
|
13
|
-
previous: UndoRedoNode<T> | null;
|
|
14
|
-
/** Reference to the next node (the next state) */
|
|
15
|
-
next: UndoRedoNode<T> | null;
|
|
16
|
-
/** Optional identifier for the node */
|
|
17
|
-
id?: string | number;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
* A linked-list based implementation of an undo-redo stack.
|
|
22
|
-
* Maintains a chain of states that can be navigated forward and backward.
|
|
23
|
-
*/
|
|
24
|
-
export declare class UndoRedoStack<T> {
|
|
25
|
-
private maxSize;
|
|
26
|
-
/** The current active node in the undo-redo history */
|
|
27
|
-
private currentNode;
|
|
28
|
-
/** The root node of the stack (first state) */
|
|
29
|
-
private rootNode;
|
|
30
|
-
/** Track the size of the stack */
|
|
31
|
-
private _size;
|
|
32
|
-
/**
|
|
33
|
-
* Creates a new UndoRedoStack.
|
|
34
|
-
* @param maxSize Optional maximum number of states to maintain (unlimited if not provided)
|
|
35
|
-
*/
|
|
36
|
-
constructor(maxSize?: number);
|
|
37
|
-
/**
|
|
38
|
-
* Gets the current number of states in the stack
|
|
39
|
-
*/
|
|
40
|
-
get size(): number;
|
|
41
|
-
/**
|
|
42
|
-
* Gets the current active state
|
|
43
|
-
*/
|
|
44
|
-
get current(): T | null;
|
|
45
|
-
/**
|
|
46
|
-
* Checks if undo is available (if there's a previous state)
|
|
47
|
-
*/
|
|
48
|
-
get canUndo(): boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Checks if redo is available (if there's a next state)
|
|
51
|
-
*/
|
|
52
|
-
get canRedo(): boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Adds a new state to the undo-redo stack
|
|
55
|
-
* @param state The state to add
|
|
56
|
-
* @param id Optional identifier for the state
|
|
57
|
-
* @returns The newly created node
|
|
58
|
-
*/
|
|
59
|
-
add(state: T, id?: string | number): UndoRedoNode<T>;
|
|
60
|
-
/**
|
|
61
|
-
* Finds a node by its identifier
|
|
62
|
-
* @param id The identifier to search for
|
|
63
|
-
* @returns The found node or null if not found
|
|
64
|
-
*/
|
|
65
|
-
find(id: string | number): UndoRedoNode<T> | null;
|
|
66
|
-
/**
|
|
67
|
-
* Removes a node by its identifier
|
|
68
|
-
* @param id The identifier of the node to remove
|
|
69
|
-
* @returns True if the node was found and removed, false otherwise
|
|
70
|
-
*/
|
|
71
|
-
remove(id: string | number): boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Performs an undo operation, moving to the previous state
|
|
74
|
-
* @returns The previous state or null if can't undo
|
|
75
|
-
*/
|
|
76
|
-
undo(): T | null;
|
|
77
|
-
peekNext(): T | null;
|
|
78
|
-
peekPrev(): T | null;
|
|
79
|
-
/**
|
|
80
|
-
* Performs a redo operation, moving to the next state
|
|
81
|
-
* @returns The next state or null if can't redo
|
|
82
|
-
*/
|
|
83
|
-
redo(): T | null;
|
|
84
|
-
/**
|
|
85
|
-
* Clears all history
|
|
86
|
-
*/
|
|
87
|
-
clear(): void;
|
|
88
|
-
/**
|
|
89
|
-
* Removes all states after the specified node
|
|
90
|
-
* @param node The node to truncate from
|
|
91
|
-
* @returns The number of nodes removed
|
|
92
|
-
*/
|
|
93
|
-
private truncateForward;
|
|
94
|
-
/**
|
|
95
|
-
* Ensures the stack doesn't exceed the maximum size by removing oldest nodes
|
|
96
|
-
*/
|
|
97
|
-
private enforceMaxSize;
|
|
98
|
-
/**
|
|
99
|
-
* Gets all states in the stack as an array (from oldest to newest)
|
|
100
|
-
*/
|
|
101
|
-
toArray(): T[];
|
|
102
|
-
/**
|
|
103
|
-
* Gets the history nodes as an array (useful for debugging)
|
|
104
|
-
*/
|
|
105
|
-
getNodes(): UndoRedoNode<T>[];
|
|
106
|
-
}
|