@progress/kendo-angular-grid 21.4.1 → 22.0.0-develop.1
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/column-menu/column-menu-item-base.d.ts +1 -1
- package/columns/column-base.d.ts +1 -1
- package/common/toolbar-tool-base.directive.d.ts +1 -1
- package/editing/toolbar-editing-tool-base.directive.d.ts +1 -1
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/editing-directives/row-editing-directive-base.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-grid.mjs +666 -666
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/filtering/boolean-filter.component.d.ts +1 -1
- package/filtering/date-filter.component.d.ts +1 -1
- package/filtering/filter-host.directive.d.ts +1 -1
- package/filtering/filter-input-wrapper.component.d.ts +1 -1
- package/filtering/numeric-filter.component.d.ts +1 -1
- package/filtering/operators/filter-operator.base.d.ts +1 -1
- package/filtering/string-filter.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +28 -36
- package/schematics/ngAdd/index.js +7 -7
- package/selection/selection-default.d.ts +1 -1
- package/esm2022/adaptiveness/adaptive-mode.mjs +0 -5
- package/esm2022/adaptiveness/adaptive-renderer.component.mjs +0 -1270
- package/esm2022/aggregates/aggregate-types.mjs +0 -5
- package/esm2022/aggregates/selection-aggregate.service.mjs +0 -200
- package/esm2022/aggregates/status-bar-template.directive.mjs +0 -30
- package/esm2022/aggregates/status-bar.component.mjs +0 -70
- package/esm2022/column-menu/column-chooser-content.component.mjs +0 -318
- package/esm2022/column-menu/column-chooser.component.mjs +0 -230
- package/esm2022/column-menu/column-list-kb-nav.service.mjs +0 -40
- package/esm2022/column-menu/column-list.component.mjs +0 -478
- package/esm2022/column-menu/column-locked-change-event.mjs +0 -19
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +0 -89
- package/esm2022/column-menu/column-menu-autosize.component.mjs +0 -97
- package/esm2022/column-menu/column-menu-chooser.component.mjs +0 -151
- package/esm2022/column-menu/column-menu-container.component.mjs +0 -67
- package/esm2022/column-menu/column-menu-expandable-item.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-filter.component.mjs +0 -152
- package/esm2022/column-menu/column-menu-item-base.mjs +0 -44
- package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +0 -45
- package/esm2022/column-menu/column-menu-item.component.mjs +0 -514
- package/esm2022/column-menu/column-menu-item.directive.mjs +0 -164
- package/esm2022/column-menu/column-menu-lock.component.mjs +0 -118
- package/esm2022/column-menu/column-menu-position.component.mjs +0 -196
- package/esm2022/column-menu/column-menu-settings.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-sort.component.mjs +0 -119
- package/esm2022/column-menu/column-menu-stick.component.mjs +0 -120
- package/esm2022/column-menu/column-menu-template.directive.mjs +0 -47
- package/esm2022/column-menu/column-menu.component.mjs +0 -839
- package/esm2022/column-menu/column-menu.service.mjs +0 -71
- package/esm2022/column-menu/column-sticky-change-event.mjs +0 -19
- package/esm2022/column-menu/column-visibility-change-event.mjs +0 -19
- package/esm2022/column-menu/utils.mjs +0 -52
- package/esm2022/column-resizing/column-handle.directive.mjs +0 -499
- package/esm2022/column-resizing/column-resize.interface.mjs +0 -5
- package/esm2022/column-resizing/column-resizing.service.mjs +0 -214
- package/esm2022/column-resizing/table.directive.mjs +0 -141
- package/esm2022/columns/cell-rowspan.mjs +0 -5
- package/esm2022/columns/checkbox-column.component.mjs +0 -106
- package/esm2022/columns/column-base.mjs +0 -432
- package/esm2022/columns/column-common.mjs +0 -73
- package/esm2022/columns/column-group.component.mjs +0 -135
- package/esm2022/columns/column-list.mjs +0 -94
- package/esm2022/columns/column.component.mjs +0 -198
- package/esm2022/columns/columns-container.mjs +0 -101
- package/esm2022/columns/command-column.component.mjs +0 -80
- package/esm2022/columns/reorder-column.component.mjs +0 -114
- package/esm2022/columns/sort-settings.mjs +0 -18
- package/esm2022/columns/span-column.component.mjs +0 -195
- package/esm2022/common/adaptiveness.service.mjs +0 -72
- package/esm2022/common/cell-click-event-args.interface.mjs +0 -5
- package/esm2022/common/clipboard-types.mjs +0 -5
- package/esm2022/common/clipboard.directive.mjs +0 -197
- package/esm2022/common/clipboard.service.mjs +0 -221
- package/esm2022/common/column-info.service.mjs +0 -92
- package/esm2022/common/create-form-group.mjs +0 -5
- package/esm2022/common/data-layout-mode.mjs +0 -5
- package/esm2022/common/default-track-by.mjs +0 -13
- package/esm2022/common/dom-events.service.mjs +0 -27
- package/esm2022/common/error-messages.mjs +0 -64
- package/esm2022/common/event-emitter.mjs +0 -39
- package/esm2022/common/fetch-data-callback.mjs +0 -5
- package/esm2022/common/field-datatype.mjs +0 -5
- package/esm2022/common/filter-descriptor-differ.mjs +0 -69
- package/esm2022/common/filter-operator.interface.mjs +0 -5
- package/esm2022/common/grid-col-size.mjs +0 -5
- package/esm2022/common/id.service.mjs +0 -59
- package/esm2022/common/pager-settings.mjs +0 -20
- package/esm2022/common/preventable-event.mjs +0 -24
- package/esm2022/common/provider.service.mjs +0 -42
- package/esm2022/common/remove-confirmation.mjs +0 -5
- package/esm2022/common/resizable-settings.mjs +0 -9
- package/esm2022/common/single-popup.service.mjs +0 -158
- package/esm2022/common/size-options.mjs +0 -5
- package/esm2022/common/sort.service.mjs +0 -14
- package/esm2022/common/toolbar-tool-base.directive.mjs +0 -85
- package/esm2022/constants.mjs +0 -16
- package/esm2022/data/change-event-args.interface.mjs +0 -5
- package/esm2022/data/change-notification.service.mjs +0 -30
- package/esm2022/data/data-item.interface.mjs +0 -5
- package/esm2022/data/data-mapping.service.mjs +0 -136
- package/esm2022/data/data.collection.mjs +0 -87
- package/esm2022/data/data.iterators.mjs +0 -221
- package/esm2022/data/grid-item.interface.mjs +0 -5
- package/esm2022/data/group-footer-item.interface.mjs +0 -5
- package/esm2022/data/group-item.interface.mjs +0 -5
- package/esm2022/databinding.directive.mjs +0 -233
- package/esm2022/directives.mjs +0 -504
- package/esm2022/dragdrop/column-reorder-config.mjs +0 -5
- package/esm2022/dragdrop/column-reorder-event.mjs +0 -31
- package/esm2022/dragdrop/column-reorder.service.mjs +0 -20
- package/esm2022/dragdrop/common.mjs +0 -69
- package/esm2022/dragdrop/context-types.mjs +0 -5
- package/esm2022/dragdrop/drag-and-drop.service.mjs +0 -65
- package/esm2022/dragdrop/drag-hint.service.mjs +0 -137
- package/esm2022/dragdrop/draggable-column.directive.mjs +0 -137
- package/esm2022/dragdrop/drop-cue.service.mjs +0 -46
- package/esm2022/dragdrop/drop-target.directive.mjs +0 -71
- package/esm2022/editing/add-command-tool.directive.mjs +0 -59
- package/esm2022/editing/add-command.directive.mjs +0 -93
- package/esm2022/editing/add-event-args.interface.mjs +0 -5
- package/esm2022/editing/cancel-command-tool.directive.mjs +0 -64
- package/esm2022/editing/cancel-command.directive.mjs +0 -127
- package/esm2022/editing/cancel-event-args.interface.mjs +0 -5
- package/esm2022/editing/cell-close-event.mjs +0 -38
- package/esm2022/editing/edit-command-tool.directive.mjs +0 -60
- package/esm2022/editing/edit-command.directive.mjs +0 -124
- package/esm2022/editing/edit-event-args.interface.mjs +0 -5
- package/esm2022/editing/edit-row-options.interface.mjs +0 -5
- package/esm2022/editing/edit-template.directive.mjs +0 -43
- package/esm2022/editing/edit.service.mjs +0 -182
- package/esm2022/editing/form/dialog-form.component.mjs +0 -102
- package/esm2022/editing/form/form-formfield.component.mjs +0 -188
- package/esm2022/editing/form/form.component.mjs +0 -169
- package/esm2022/editing/form/index.mjs +0 -8
- package/esm2022/editing/form/models.mjs +0 -5
- package/esm2022/editing/local-data-changes.service.mjs +0 -18
- package/esm2022/editing/remove-command-tool.directive.mjs +0 -61
- package/esm2022/editing/remove-command.directive.mjs +0 -123
- package/esm2022/editing/remove-event-args.interface.mjs +0 -5
- package/esm2022/editing/save-command-tool.directive.mjs +0 -65
- package/esm2022/editing/save-command.directive.mjs +0 -126
- package/esm2022/editing/save-event-args.interface.mjs +0 -5
- package/esm2022/editing/toolbar-editing-tool-base.directive.mjs +0 -99
- package/esm2022/editing-directives/create-form-group-args.interface.mjs +0 -5
- package/esm2022/editing-directives/edit-service.interface.mjs +0 -5
- package/esm2022/editing-directives/editing-directive-base.mjs +0 -167
- package/esm2022/editing-directives/external-editing.directive.mjs +0 -151
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +0 -97
- package/esm2022/editing-directives/local-edit.service.mjs +0 -64
- package/esm2022/editing-directives/local-row-edit.service.mjs +0 -13
- package/esm2022/editing-directives/reactive-editing.directive.mjs +0 -60
- package/esm2022/editing-directives/row-editing-directive-base.mjs +0 -53
- package/esm2022/editing-directives/template-editing.directive.mjs +0 -72
- package/esm2022/editing-directives/utils.mjs +0 -18
- package/esm2022/excel/excel-command-tool.directive.mjs +0 -58
- package/esm2022/excel/excel-command.directive.mjs +0 -98
- package/esm2022/excel/excel-export-event.mjs +0 -18
- package/esm2022/excel/excel.component.mjs +0 -223
- package/esm2022/excel/excel.module.mjs +0 -45
- package/esm2022/excel/excel.service.mjs +0 -29
- package/esm2022/filtering/base-filter-cell.component.mjs +0 -174
- package/esm2022/filtering/boolean-filter.component.mjs +0 -83
- package/esm2022/filtering/cell/autocomplete-filter-cell.component.mjs +0 -114
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +0 -113
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +0 -141
- package/esm2022/filtering/cell/filter-cell-component.factory.mjs +0 -19
- package/esm2022/filtering/cell/filter-cell-host.directive.mjs +0 -33
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +0 -242
- package/esm2022/filtering/cell/filter-cell-template.directive.mjs +0 -46
- package/esm2022/filtering/cell/filter-cell-wrapper.component.mjs +0 -74
- package/esm2022/filtering/cell/filter-cell.component.mjs +0 -91
- package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +0 -155
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +0 -127
- package/esm2022/filtering/date-filter.component.mjs +0 -172
- package/esm2022/filtering/filter-component.interface.mjs +0 -5
- package/esm2022/filtering/filter-host.directive.mjs +0 -58
- package/esm2022/filtering/filter-input-wrapper.component.mjs +0 -119
- package/esm2022/filtering/filter-input.directive.mjs +0 -123
- package/esm2022/filtering/filter-row.component.mjs +0 -131
- package/esm2022/filtering/filter.service.mjs +0 -44
- package/esm2022/filtering/filterable.mjs +0 -16
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +0 -167
- package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +0 -179
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +0 -212
- package/esm2022/filtering/menu/filter-menu-component.factory.mjs +0 -19
- package/esm2022/filtering/menu/filter-menu-container.component.mjs +0 -418
- package/esm2022/filtering/menu/filter-menu-dropdownlist.directive.mjs +0 -44
- package/esm2022/filtering/menu/filter-menu-host.directive.mjs +0 -46
- package/esm2022/filtering/menu/filter-menu-input-wrapper.component.mjs +0 -158
- package/esm2022/filtering/menu/filter-menu-template.directive.mjs +0 -48
- package/esm2022/filtering/menu/filter-menu.component.mjs +0 -221
- package/esm2022/filtering/menu/filter-radio-button.directive.mjs +0 -34
- package/esm2022/filtering/menu/menu-tabbing.service.mjs +0 -22
- package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +0 -184
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +0 -230
- package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +0 -107
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +0 -198
- package/esm2022/filtering/multicheckbox-filter.component.mjs +0 -324
- package/esm2022/filtering/numeric-filter.component.mjs +0 -145
- package/esm2022/filtering/operators/after-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/after-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/eq-filter-operator.component.mjs +0 -111
- package/esm2022/filtering/operators/filter-operator.base.mjs +0 -101
- package/esm2022/filtering/operators/gt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/gte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/lt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/lte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/neq-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/string-filter.component.mjs +0 -90
- package/esm2022/grid.component.mjs +0 -4598
- package/esm2022/grid.module.mjs +0 -241
- package/esm2022/grouping/group-footer-template.directive.mjs +0 -44
- package/esm2022/grouping/group-header-column-template.directive.mjs +0 -45
- package/esm2022/grouping/group-header-template.directive.mjs +0 -46
- package/esm2022/grouping/group-header.component.mjs +0 -351
- package/esm2022/grouping/group-info.service.mjs +0 -43
- package/esm2022/grouping/group-key.interface.mjs +0 -5
- package/esm2022/grouping/group-panel.component.mjs +0 -487
- package/esm2022/grouping/group-rows-args.interface.mjs +0 -5
- package/esm2022/grouping/group-settings.mjs +0 -5
- package/esm2022/grouping/groups.service.mjs +0 -69
- package/esm2022/grouping/utils.mjs +0 -14
- package/esm2022/highlight/highlight-item.mjs +0 -5
- package/esm2022/highlight/highlight.directive.mjs +0 -132
- package/esm2022/index.mjs +0 -221
- package/esm2022/layout/browser-support.service.mjs +0 -94
- package/esm2022/layout/resizable.directive.mjs +0 -83
- package/esm2022/layout/resize.service.mjs +0 -29
- package/esm2022/layout/responsive.service.mjs +0 -34
- package/esm2022/layout/row-sync.mjs +0 -47
- package/esm2022/layout/sizing-options.service.mjs +0 -18
- package/esm2022/localization/custom-messages.component.mjs +0 -54
- package/esm2022/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/localization/messages.mjs +0 -895
- package/esm2022/navigation/default-focusable-element.mjs +0 -50
- package/esm2022/navigation/focus-group.mjs +0 -73
- package/esm2022/navigation/focus-root.mjs +0 -50
- package/esm2022/navigation/focusable-element.interface.mjs +0 -5
- package/esm2022/navigation/focusable.directive.mjs +0 -150
- package/esm2022/navigation/grid-focusable-element.mjs +0 -28
- package/esm2022/navigation/item-map.mjs +0 -59
- package/esm2022/navigation/logical-cell.directive.mjs +0 -224
- package/esm2022/navigation/logical-cell.interface.mjs +0 -5
- package/esm2022/navigation/logical-row.directive.mjs +0 -131
- package/esm2022/navigation/logical-row.interface.mjs +0 -5
- package/esm2022/navigation/navigable-settings.mjs +0 -5
- package/esm2022/navigation/navigation-cell.interface.mjs +0 -5
- package/esm2022/navigation/navigation-change.interface.mjs +0 -5
- package/esm2022/navigation/navigation-cursor.mjs +0 -224
- package/esm2022/navigation/navigation-metadata.mjs +0 -35
- package/esm2022/navigation/navigation-mode.mjs +0 -5
- package/esm2022/navigation/navigation-model.mjs +0 -138
- package/esm2022/navigation/navigation-row.interface.mjs +0 -5
- package/esm2022/navigation/navigation.service.mjs +0 -998
- package/esm2022/navigation/toolbar-tool-name.mjs +0 -18
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/pdf/export-element.mjs +0 -135
- package/esm2022/pdf/grid-query.mjs +0 -45
- package/esm2022/pdf/pdf-command-tool.directive.mjs +0 -60
- package/esm2022/pdf/pdf-command.directive.mjs +0 -98
- package/esm2022/pdf/pdf-export-event.mjs +0 -16
- package/esm2022/pdf/pdf-margin.component.mjs +0 -38
- package/esm2022/pdf/pdf-margin.interface.mjs +0 -5
- package/esm2022/pdf/pdf-template.directive.mjs +0 -43
- package/esm2022/pdf/pdf.component.mjs +0 -331
- package/esm2022/pdf/pdf.module.mjs +0 -47
- package/esm2022/pdf/pdf.service.mjs +0 -42
- package/esm2022/progress-kendo-angular-grid.mjs +0 -8
- package/esm2022/rendering/cell-loading.template.directive.mjs +0 -39
- package/esm2022/rendering/cell-template.directive.mjs +0 -44
- package/esm2022/rendering/cell.component.mjs +0 -717
- package/esm2022/rendering/common/cell-context.mjs +0 -13
- package/esm2022/rendering/common/col-group.component.mjs +0 -98
- package/esm2022/rendering/common/dom-queries.mjs +0 -162
- package/esm2022/rendering/common/field-accessor.pipe.mjs +0 -48
- package/esm2022/rendering/common/format.pipe.mjs +0 -37
- package/esm2022/rendering/common/loading.component.mjs +0 -60
- package/esm2022/rendering/common/row-args.mjs +0 -5
- package/esm2022/rendering/common/row-class.mjs +0 -5
- package/esm2022/rendering/common/spacer.component.mjs +0 -62
- package/esm2022/rendering/constants.mjs +0 -20
- package/esm2022/rendering/details/detail-collapse-event.mjs +0 -27
- package/esm2022/rendering/details/detail-expand-event.mjs +0 -27
- package/esm2022/rendering/details/detail-template.directive.mjs +0 -61
- package/esm2022/rendering/details/details.service.mjs +0 -56
- package/esm2022/rendering/details-expand.directive.mjs +0 -136
- package/esm2022/rendering/footer/footer-template.directive.mjs +0 -48
- package/esm2022/rendering/footer/footer.component.mjs +0 -266
- package/esm2022/rendering/grid-table.directive.mjs +0 -52
- package/esm2022/rendering/groups-expand.directive.mjs +0 -149
- package/esm2022/rendering/header/header-template.directive.mjs +0 -45
- package/esm2022/rendering/header/header.component.mjs +0 -1055
- package/esm2022/rendering/list.component.mjs +0 -1176
- package/esm2022/rendering/loading-template.directive.mjs +0 -38
- package/esm2022/rendering/no-records-template.directive.mjs +0 -38
- package/esm2022/rendering/rowspan.service.mjs +0 -24
- package/esm2022/rendering/table-body.component.mjs +0 -1250
- package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +0 -83
- package/esm2022/rendering/toolbar/toolbar-navigation.service.mjs +0 -58
- package/esm2022/rendering/toolbar/toolbar-position.mjs +0 -5
- package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +0 -55
- package/esm2022/rendering/toolbar/toolbar.component.mjs +0 -159
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +0 -272
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-request-response.service.mjs +0 -624
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-tool.directive.mjs +0 -273
- package/esm2022/rendering/toolbar/tools/ai-assistant/models.mjs +0 -43
- package/esm2022/rendering/toolbar/tools/ai-assistant/utils.mjs +0 -92
- package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +0 -238
- package/esm2022/rendering/toolbar/tools/filter-command-tool.directive.mjs +0 -219
- package/esm2022/rendering/toolbar/tools/filter-tool-wrapper.component.mjs +0 -151
- package/esm2022/rendering/toolbar/tools/filter-toolbar-tool.component.mjs +0 -223
- package/esm2022/rendering/toolbar/tools/group-command-tool.directive.mjs +0 -208
- package/esm2022/rendering/toolbar/tools/group-toolbar-tool.component.mjs +0 -451
- package/esm2022/rendering/toolbar/tools/select-all-command-tool.directive.mjs +0 -93
- package/esm2022/rendering/toolbar/tools/sort-command-tool.directive.mjs +0 -222
- package/esm2022/rendering/toolbar/tools/sort-toolbar-tool.component.mjs +0 -245
- package/esm2022/row-reordering/drag-handle-template.directive.mjs +0 -44
- package/esm2022/row-reordering/drag-hint-template.directive.mjs +0 -42
- package/esm2022/row-reordering/row-reorder.service.mjs +0 -280
- package/esm2022/row-reordering/types.mjs +0 -5
- package/esm2022/row-reordering/utils.mjs +0 -88
- package/esm2022/scrolling/content-scroll-event.mjs +0 -5
- package/esm2022/scrolling/row-height.service.mjs +0 -55
- package/esm2022/scrolling/scroll-bottom-event.mjs +0 -5
- package/esm2022/scrolling/scroll-request.service.mjs +0 -24
- package/esm2022/scrolling/scroll-sync.service.mjs +0 -80
- package/esm2022/scrolling/scroller.service.mjs +0 -254
- package/esm2022/scrolling/scrollmode.mjs +0 -5
- package/esm2022/scrolling/suspend.service.mjs +0 -17
- package/esm2022/selection/cell-selection.service.mjs +0 -349
- package/esm2022/selection/marquee.directive.mjs +0 -188
- package/esm2022/selection/pair-set.mjs +0 -158
- package/esm2022/selection/selectall-checkbox.directive.mjs +0 -143
- package/esm2022/selection/selection-checkbox.directive.mjs +0 -132
- package/esm2022/selection/selection-default.mjs +0 -208
- package/esm2022/selection/selection.directive.mjs +0 -53
- package/esm2022/selection/selection.service.mjs +0 -466
- package/esm2022/selection/types.mjs +0 -5
- package/esm2022/state-management/grid-state.models.mjs +0 -26
- package/esm2022/state-management/redo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-redo.directive.mjs +0 -249
- package/esm2022/state-management/undo-redo.service.mjs +0 -21
- package/esm2022/state-management/undo-redo.stack.mjs +0 -238
- package/esm2022/utils.mjs +0 -216
|
@@ -1,131 +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 { Directive, HostBinding, Input } from '@angular/core';
|
|
6
|
-
import { IdService } from '../common/id.service';
|
|
7
|
-
import { NavigationService } from './navigation.service';
|
|
8
|
-
import { anyChanged } from '@progress/kendo-angular-common';
|
|
9
|
-
import { ColumnsContainer } from '../columns/columns-container';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "../common/id.service";
|
|
12
|
-
import * as i2 from "./navigation.service";
|
|
13
|
-
let id = 0;
|
|
14
|
-
function nextId() {
|
|
15
|
-
return id++;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export class LogicalRowDirective {
|
|
21
|
-
idService;
|
|
22
|
-
navigation;
|
|
23
|
-
logicalRowIndex;
|
|
24
|
-
logicalSlaveRow = false;
|
|
25
|
-
logicalCellsCount;
|
|
26
|
-
logicalSlaveCellsCount = 0;
|
|
27
|
-
dataRowIndex = -1;
|
|
28
|
-
dataItem;
|
|
29
|
-
totalColumns;
|
|
30
|
-
uid = nextId();
|
|
31
|
-
get hostRole() {
|
|
32
|
-
return this.logicalSlaveRow ? 'presentation' : 'row';
|
|
33
|
-
}
|
|
34
|
-
get ariaRowIndex() {
|
|
35
|
-
return this.logicalSlaveRow ? null : this.logicalRowIndex + 1;
|
|
36
|
-
}
|
|
37
|
-
get rowIndex() {
|
|
38
|
-
return this.logicalSlaveRow ? this.logicalRowIndex + 1 : null;
|
|
39
|
-
}
|
|
40
|
-
tableRowClass = true;
|
|
41
|
-
get ariaOwns() {
|
|
42
|
-
if (this.logicalSlaveRow || this.logicalSlaveCellsCount === 0) {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
const ids = [];
|
|
46
|
-
if (this.dataRowIndex < 0) {
|
|
47
|
-
let total = this.logicalCellsCount + this.logicalSlaveCellsCount;
|
|
48
|
-
this.columnsArray.forEach(column => {
|
|
49
|
-
if (column.isSpanColumn) {
|
|
50
|
-
total += column.colspan - 1;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
for (let cellIndex = this.logicalCellsCount; cellIndex < total; cellIndex++) {
|
|
54
|
-
ids.push(this.idService.cellId(this.logicalRowIndex, cellIndex));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
let columnIndex = 0;
|
|
59
|
-
this.columnsArray.forEach(column => {
|
|
60
|
-
if (!column.isLocked) {
|
|
61
|
-
ids.push(this.idService.cellId(this.logicalRowIndex, columnIndex));
|
|
62
|
-
}
|
|
63
|
-
columnIndex += column.isSpanColumn ? column.colspan : 1;
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
return ids.join(' ');
|
|
67
|
-
}
|
|
68
|
-
constructor(idService, navigation) {
|
|
69
|
-
this.idService = idService;
|
|
70
|
-
this.navigation = navigation;
|
|
71
|
-
}
|
|
72
|
-
ngOnChanges(changes) {
|
|
73
|
-
if (!this.navigation.enabled || this.logicalSlaveRow) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
const indexChange = changes.logicalRowIndex;
|
|
77
|
-
const logicalSlaveRowChange = changes.logicalSlaveRow;
|
|
78
|
-
if (indexChange || logicalSlaveRowChange) {
|
|
79
|
-
const index = indexChange && !indexChange.isFirstChange() ? indexChange.previousValue : this.logicalRowIndex;
|
|
80
|
-
this.navigation.unregisterRow(index, this);
|
|
81
|
-
this.navigation.registerRow(this);
|
|
82
|
-
}
|
|
83
|
-
else if (anyChanged(['dataRowIndex', 'dataItem'], changes)) {
|
|
84
|
-
this.navigation.updateRow(this);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
ngOnDestroy() {
|
|
88
|
-
this.navigation.unregisterRow(this.logicalRowIndex, this);
|
|
89
|
-
}
|
|
90
|
-
get columnsArray() {
|
|
91
|
-
return this.totalColumns?.allColumns.toArray() || [];
|
|
92
|
-
}
|
|
93
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LogicalRowDirective, deps: [{ token: i1.IdService }, { token: i2.NavigationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
94
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: LogicalRowDirective, isStandalone: true, selector: "[kendoGridLogicalRow]", inputs: { logicalRowIndex: "logicalRowIndex", logicalSlaveRow: "logicalSlaveRow", logicalCellsCount: "logicalCellsCount", logicalSlaveCellsCount: "logicalSlaveCellsCount", dataRowIndex: "dataRowIndex", dataItem: "dataItem", totalColumns: "totalColumns" }, host: { properties: { "attr.role": "this.hostRole", "attr.aria-rowindex": "this.ariaRowIndex", "attr.data-kendo-grid-row-index": "this.rowIndex", "class.k-table-row": "this.tableRowClass", "attr.aria-owns": "this.ariaOwns" } }, usesOnChanges: true, ngImport: i0 });
|
|
95
|
-
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LogicalRowDirective, decorators: [{
|
|
97
|
-
type: Directive,
|
|
98
|
-
args: [{
|
|
99
|
-
selector: '[kendoGridLogicalRow]',
|
|
100
|
-
standalone: true
|
|
101
|
-
}]
|
|
102
|
-
}], ctorParameters: () => [{ type: i1.IdService }, { type: i2.NavigationService }], propDecorators: { logicalRowIndex: [{
|
|
103
|
-
type: Input
|
|
104
|
-
}], logicalSlaveRow: [{
|
|
105
|
-
type: Input
|
|
106
|
-
}], logicalCellsCount: [{
|
|
107
|
-
type: Input
|
|
108
|
-
}], logicalSlaveCellsCount: [{
|
|
109
|
-
type: Input
|
|
110
|
-
}], dataRowIndex: [{
|
|
111
|
-
type: Input
|
|
112
|
-
}], dataItem: [{
|
|
113
|
-
type: Input
|
|
114
|
-
}], totalColumns: [{
|
|
115
|
-
type: Input
|
|
116
|
-
}], hostRole: [{
|
|
117
|
-
type: HostBinding,
|
|
118
|
-
args: ['attr.role']
|
|
119
|
-
}], ariaRowIndex: [{
|
|
120
|
-
type: HostBinding,
|
|
121
|
-
args: ['attr.aria-rowindex']
|
|
122
|
-
}], rowIndex: [{
|
|
123
|
-
type: HostBinding,
|
|
124
|
-
args: ['attr.data-kendo-grid-row-index']
|
|
125
|
-
}], tableRowClass: [{
|
|
126
|
-
type: HostBinding,
|
|
127
|
-
args: ['class.k-table-row']
|
|
128
|
-
}], ariaOwns: [{
|
|
129
|
-
type: HostBinding,
|
|
130
|
-
args: ['attr.aria-owns']
|
|
131
|
-
}] } });
|
|
@@ -1,5 +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
|
-
export {};
|
|
@@ -1,5 +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
|
-
export {};
|
|
@@ -1,5 +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
|
-
export {};
|
|
@@ -1,5 +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
|
-
export {};
|
|
@@ -1,224 +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 { isPresent } from '../utils';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export class NavigationCursor {
|
|
11
|
-
model;
|
|
12
|
-
changes = new Subject();
|
|
13
|
-
set metadata(value) {
|
|
14
|
-
this._metadata = value;
|
|
15
|
-
if (isPresent(value)) {
|
|
16
|
-
const newActiveCol = value.hasDetailTemplate && !this.metadata.isStacked ? 1 : 0;
|
|
17
|
-
const shouldChange = this.activeRow < value.headerRows && this.activeCol === 0;
|
|
18
|
-
if (shouldChange && newActiveCol !== this.activeCol) {
|
|
19
|
-
this.activeCol = newActiveCol;
|
|
20
|
-
this.reset();
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
get metadata() {
|
|
25
|
-
return this._metadata;
|
|
26
|
-
}
|
|
27
|
-
activeRow = 0;
|
|
28
|
-
activeCol = 0;
|
|
29
|
-
virtualCol = 0;
|
|
30
|
-
virtualRow = 0;
|
|
31
|
-
_metadata;
|
|
32
|
-
get row() {
|
|
33
|
-
return this.model.findRow(this.activeRow);
|
|
34
|
-
}
|
|
35
|
-
get cell() {
|
|
36
|
-
const row = this.row;
|
|
37
|
-
if (row) {
|
|
38
|
-
return this.model.findCell(this.activeCol, row);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
get dataRowIndex() {
|
|
42
|
-
const row = this.row;
|
|
43
|
-
if (row) {
|
|
44
|
-
return row.dataRowIndex;
|
|
45
|
-
}
|
|
46
|
-
return -1;
|
|
47
|
-
}
|
|
48
|
-
constructor(model) {
|
|
49
|
-
this.model = model;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Assumes and announces a new cursor position.
|
|
53
|
-
*/
|
|
54
|
-
reset(rowIndex = this.activeRow, colIndex = this.activeCol, force = true) {
|
|
55
|
-
if (this.activate(rowIndex, colIndex, force)) {
|
|
56
|
-
this.virtualRow = rowIndex;
|
|
57
|
-
this.virtualCol = colIndex;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
activate(rowIndex, colIndex, force) {
|
|
61
|
-
if (!force && this.isActiveRange(rowIndex, colIndex)) {
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
const prevColIndex = this.activeCol;
|
|
65
|
-
const prevRowIndex = this.activeRow;
|
|
66
|
-
this.activeCol = colIndex;
|
|
67
|
-
this.activeRow = rowIndex;
|
|
68
|
-
this.changes.next({
|
|
69
|
-
colIndex,
|
|
70
|
-
prevColIndex,
|
|
71
|
-
prevRowIndex,
|
|
72
|
-
rowIndex
|
|
73
|
-
});
|
|
74
|
-
return true;
|
|
75
|
-
}
|
|
76
|
-
isActiveRange(rowIndex, colIndex) {
|
|
77
|
-
if (this.activeRow !== rowIndex) {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
const cell = this.cell;
|
|
81
|
-
const { start, end } = this.model.cellRange(cell);
|
|
82
|
-
return !cell || (start <= colIndex && colIndex <= end);
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Assumes a new cursor position without announcing it.
|
|
86
|
-
*/
|
|
87
|
-
assume(rowIndex = this.activeRow, colIndex = this.activeCol) {
|
|
88
|
-
this.virtualRow = rowIndex;
|
|
89
|
-
this.virtualCol = colIndex;
|
|
90
|
-
this.activeCol = colIndex;
|
|
91
|
-
this.activeRow = rowIndex;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Announces a current cursor position to subscribers.
|
|
95
|
-
*/
|
|
96
|
-
announce() {
|
|
97
|
-
this.changes.next({
|
|
98
|
-
colIndex: this.activeCol,
|
|
99
|
-
prevColIndex: this.activeCol,
|
|
100
|
-
prevRowIndex: this.activeRow,
|
|
101
|
-
rowIndex: this.activeRow
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
activateVirtualCell(cell) {
|
|
105
|
-
const rowRange = this.model.rowRange(cell);
|
|
106
|
-
const cellRange = this.model.cellRange(cell);
|
|
107
|
-
const activeCol = this.activeCol;
|
|
108
|
-
const activeRow = this.activeRow;
|
|
109
|
-
if (rowRange.start <= activeRow && activeRow <= rowRange.end &&
|
|
110
|
-
cellRange.start <= activeCol && activeCol <= cellRange.end) {
|
|
111
|
-
this.activeRow = cell.rowIndex;
|
|
112
|
-
this.activeCol = cell.colIndex;
|
|
113
|
-
return true;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
isActive(rowIndex, colIndex) {
|
|
117
|
-
return this.activeCol === colIndex && this.activeRow === rowIndex;
|
|
118
|
-
}
|
|
119
|
-
moveUp(offset = 1) {
|
|
120
|
-
return this.offsetRow(-offset);
|
|
121
|
-
}
|
|
122
|
-
moveDown(offset = 1) {
|
|
123
|
-
return this.offsetRow(offset);
|
|
124
|
-
}
|
|
125
|
-
moveLeft(offset = 1) {
|
|
126
|
-
return this.offsetCol(-offset);
|
|
127
|
-
}
|
|
128
|
-
moveRight(offset = 1) {
|
|
129
|
-
return this.offsetCol(offset);
|
|
130
|
-
}
|
|
131
|
-
lastCellIndex(row) {
|
|
132
|
-
return this.metadata.columns.leafColumnsToRender.length - 1 +
|
|
133
|
-
(this.metadata.hasDetailTemplate && (!row || !row.groupItem) ? 1 : 0);
|
|
134
|
-
}
|
|
135
|
-
offsetCol(offset) {
|
|
136
|
-
if (this.metadata.isStacked) {
|
|
137
|
-
return false;
|
|
138
|
-
}
|
|
139
|
-
const prevRow = this.model.findRow(this.virtualRow);
|
|
140
|
-
const lastIndex = this.lastCellIndex(prevRow);
|
|
141
|
-
const virtualCol = this.virtualCol;
|
|
142
|
-
this.virtualCol = Math.max(0, Math.min(virtualCol + offset, lastIndex));
|
|
143
|
-
let nextColIndex = this.virtualCol;
|
|
144
|
-
const nextRowIndex = this.virtualRow;
|
|
145
|
-
let cell = this.model.findCell(this.virtualCol, prevRow);
|
|
146
|
-
if (!cell && this.metadata.virtualColumns) {
|
|
147
|
-
return this.activate(nextRowIndex, nextColIndex);
|
|
148
|
-
}
|
|
149
|
-
if (!cell && this.metadata.hasDetailTemplate) {
|
|
150
|
-
this.virtualCol += 1;
|
|
151
|
-
return false;
|
|
152
|
-
}
|
|
153
|
-
if (cell.colSpan > 1 && cell.colIndex <= virtualCol && virtualCol < cell.colIndex + cell.colSpan) {
|
|
154
|
-
nextColIndex = offset > 0 ? Math.min(cell.colIndex + cell.colSpan, lastIndex) : Math.max(0, cell.colIndex + offset);
|
|
155
|
-
const nextCell = this.model.findCell(nextColIndex, prevRow);
|
|
156
|
-
if (!nextCell) {
|
|
157
|
-
this.virtualCol = nextColIndex;
|
|
158
|
-
return this.activate(cell.rowIndex, nextColIndex);
|
|
159
|
-
}
|
|
160
|
-
if (cell !== nextCell) {
|
|
161
|
-
cell = nextCell;
|
|
162
|
-
this.virtualCol = cell.colIndex;
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
this.virtualCol = virtualCol;
|
|
166
|
-
}
|
|
167
|
-
return this.activate(cell.rowIndex, this.virtualCol);
|
|
168
|
-
}
|
|
169
|
-
this.virtualCol = cell.colIndex;
|
|
170
|
-
return this.activate(cell.rowIndex, cell.colIndex);
|
|
171
|
-
}
|
|
172
|
-
offsetRow(offset) {
|
|
173
|
-
let nextColIndex = this.virtualCol;
|
|
174
|
-
if (this.metadata && this.metadata.isVirtual) {
|
|
175
|
-
const maxIndex = this.metadata.maxLogicalRowIndex;
|
|
176
|
-
let nextIndex = Math.max(0, Math.min(this.activeRow + offset, maxIndex));
|
|
177
|
-
if (this.metadata.hasDetailTemplate && !this.model.findRow(nextIndex)) {
|
|
178
|
-
nextIndex = offset > 0 ? nextIndex + 1 : nextIndex - 1;
|
|
179
|
-
nextIndex = Math.max(0, Math.min(nextIndex, maxIndex));
|
|
180
|
-
}
|
|
181
|
-
if (this.metadata.hasDetailTemplate && nextIndex === maxIndex) {
|
|
182
|
-
if (this.model.lastRow.index !== maxIndex) {
|
|
183
|
-
// Don't attempt to navigate past the last collapsed row.
|
|
184
|
-
nextIndex--;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
const nextRow = this.model.findRow(nextIndex);
|
|
188
|
-
if (nextRow) {
|
|
189
|
-
// remove duplication
|
|
190
|
-
let cell = this.model.findCell(this.virtualCol, nextRow);
|
|
191
|
-
if (!cell) {
|
|
192
|
-
return;
|
|
193
|
-
}
|
|
194
|
-
if (cell.rowIndex <= this.virtualRow && offset > 0 && cell.rowSpan > 1) {
|
|
195
|
-
cell = this.model.findCell(this.virtualCol, this.model.findRow(cell.rowIndex + cell.rowSpan - 1 + offset));
|
|
196
|
-
if (!cell) {
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
nextIndex = cell.rowIndex;
|
|
201
|
-
nextColIndex = cell.colIndex;
|
|
202
|
-
}
|
|
203
|
-
this.virtualRow = nextIndex;
|
|
204
|
-
return this.activate(nextIndex, nextColIndex);
|
|
205
|
-
}
|
|
206
|
-
const nextRow = this.model.findRow(this.virtualRow + offset) || this.model.nextRow(this.virtualRow, offset);
|
|
207
|
-
if (!nextRow) {
|
|
208
|
-
return false;
|
|
209
|
-
}
|
|
210
|
-
let cell = this.model.findCell(this.virtualCol, nextRow);
|
|
211
|
-
if (cell && cell.rowIndex <= this.virtualRow && offset > 0 && cell.rowSpan > 1) { // spanned cell go to next
|
|
212
|
-
const nextPos = cell.rowIndex + cell.rowSpan - 1 + offset;
|
|
213
|
-
cell = this.model.findCell(this.virtualCol, this.model.findRow(nextPos));
|
|
214
|
-
}
|
|
215
|
-
if (!cell && (this.metadata.virtualColumns || this.metadata.hasDetailTemplate)) {
|
|
216
|
-
return this.activate(this.virtualRow + offset, this.virtualCol);
|
|
217
|
-
}
|
|
218
|
-
if (!cell) {
|
|
219
|
-
return false;
|
|
220
|
-
}
|
|
221
|
-
this.virtualRow = cell.rowIndex;
|
|
222
|
-
return this.activate(this.virtualRow, cell.colIndex);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
@@ -1,35 +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
|
-
*/
|
|
8
|
-
export class NavigationMetadata {
|
|
9
|
-
dataRows;
|
|
10
|
-
headerRows;
|
|
11
|
-
isVirtual;
|
|
12
|
-
hasPager;
|
|
13
|
-
hasDetailTemplate;
|
|
14
|
-
gridElement;
|
|
15
|
-
virtualColumns;
|
|
16
|
-
columns;
|
|
17
|
-
footerRow;
|
|
18
|
-
isStacked;
|
|
19
|
-
get maxLogicalRowIndex() {
|
|
20
|
-
const dataRows = this.hasDetailTemplate ? this.dataRows * 2 : this.dataRows;
|
|
21
|
-
return this.headerRows + dataRows + this.footerRow - 1;
|
|
22
|
-
}
|
|
23
|
-
constructor(dataRows, headerRows, isVirtual, hasPager, hasDetailTemplate, gridElement, virtualColumns, columns, footerRow, isStacked) {
|
|
24
|
-
this.dataRows = dataRows;
|
|
25
|
-
this.headerRows = headerRows;
|
|
26
|
-
this.isVirtual = isVirtual;
|
|
27
|
-
this.hasPager = hasPager;
|
|
28
|
-
this.hasDetailTemplate = hasDetailTemplate;
|
|
29
|
-
this.gridElement = gridElement;
|
|
30
|
-
this.virtualColumns = virtualColumns;
|
|
31
|
-
this.columns = columns;
|
|
32
|
-
this.footerRow = footerRow;
|
|
33
|
-
this.isStacked = isStacked;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,5 +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
|
-
export {};
|
|
@@ -1,138 +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 { ItemMap } from './item-map';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*
|
|
9
|
-
* Contains information for the currently rendered rows and cells.
|
|
10
|
-
*/
|
|
11
|
-
export class NavigationModel {
|
|
12
|
-
rows = new ItemMap();
|
|
13
|
-
get firstRow() {
|
|
14
|
-
return this.rows.first;
|
|
15
|
-
}
|
|
16
|
-
get lastRow() {
|
|
17
|
-
return this.rows.last;
|
|
18
|
-
}
|
|
19
|
-
registerCell(cell) {
|
|
20
|
-
const row = this.rows.getItem(cell.logicalRowIndex);
|
|
21
|
-
if (!row) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
const colIndex = cell.logicalColIndex;
|
|
25
|
-
const modelCell = {
|
|
26
|
-
uid: cell.uid,
|
|
27
|
-
colIndex,
|
|
28
|
-
rowIndex: row.index,
|
|
29
|
-
colSpan: cell.colSpan,
|
|
30
|
-
rowSpan: cell.rowSpan,
|
|
31
|
-
detailExpandCell: cell.detailExpandCell,
|
|
32
|
-
dataItem: row.dataItem,
|
|
33
|
-
dataRowIndex: row.dataRowIndex,
|
|
34
|
-
focusGroup: cell.focusGroup
|
|
35
|
-
};
|
|
36
|
-
row.cells.setItem(colIndex, modelCell);
|
|
37
|
-
if (cell.groupItem) {
|
|
38
|
-
row.groupItem = cell.groupItem;
|
|
39
|
-
}
|
|
40
|
-
return modelCell;
|
|
41
|
-
}
|
|
42
|
-
unregisterCell(index, rowIndex, cell) {
|
|
43
|
-
const row = this.rows.getItem(rowIndex);
|
|
44
|
-
if (row) {
|
|
45
|
-
const match = row.cells.getItem(index);
|
|
46
|
-
if (match && match.uid === cell.uid) {
|
|
47
|
-
row.cells.removeItem(index);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
registerRow(row) {
|
|
52
|
-
const modelRow = {
|
|
53
|
-
uid: row.uid,
|
|
54
|
-
index: row.logicalRowIndex,
|
|
55
|
-
dataItem: row.dataItem,
|
|
56
|
-
dataRowIndex: row.dataRowIndex,
|
|
57
|
-
cells: new ItemMap()
|
|
58
|
-
};
|
|
59
|
-
this.rows.setItem(row.logicalRowIndex, modelRow);
|
|
60
|
-
}
|
|
61
|
-
updateRow(row) {
|
|
62
|
-
const current = this.rows.getItem(row.logicalRowIndex);
|
|
63
|
-
if (current) {
|
|
64
|
-
Object.assign(current, {
|
|
65
|
-
dataItem: row.dataItem,
|
|
66
|
-
dataRowIndex: row.dataRowIndex
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
unregisterRow(index, row) {
|
|
71
|
-
const match = this.rows.getItem(index);
|
|
72
|
-
if (match && match.uid === row.uid) {
|
|
73
|
-
this.rows.removeItem(index);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
cellRange(cell) {
|
|
77
|
-
if (cell) {
|
|
78
|
-
const start = cell.colIndex;
|
|
79
|
-
const end = cell.colIndex + (cell.colSpan || 1) - 1;
|
|
80
|
-
return {
|
|
81
|
-
start,
|
|
82
|
-
end
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
return {};
|
|
86
|
-
}
|
|
87
|
-
rowRange(cell) {
|
|
88
|
-
if (cell) {
|
|
89
|
-
const start = cell.rowIndex;
|
|
90
|
-
const end = cell.rowIndex + (cell.rowSpan || 1) - 1;
|
|
91
|
-
return {
|
|
92
|
-
start,
|
|
93
|
-
end
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
return {};
|
|
97
|
-
}
|
|
98
|
-
nextRow(rowIndex, offset) {
|
|
99
|
-
const rows = this.rows.toArray();
|
|
100
|
-
const row = this.rows.getItem(rowIndex);
|
|
101
|
-
const position = rows.indexOf(row);
|
|
102
|
-
const next = rows[position + offset];
|
|
103
|
-
return next;
|
|
104
|
-
}
|
|
105
|
-
findRow(index) {
|
|
106
|
-
return this.rows.getItem(index);
|
|
107
|
-
}
|
|
108
|
-
findCell(index, row) {
|
|
109
|
-
if (!row) {
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
const rowIndex = row.index;
|
|
113
|
-
let cell = row.cells.getItem(index);
|
|
114
|
-
let currentIndex = rowIndex;
|
|
115
|
-
while (!cell && row) {
|
|
116
|
-
row = this.rows.getItem(currentIndex);
|
|
117
|
-
cell = this.rowCell(index, row);
|
|
118
|
-
currentIndex--;
|
|
119
|
-
}
|
|
120
|
-
if (cell && rowIndex <= row.index + (cell.rowSpan || 1) - 1) {
|
|
121
|
-
return cell;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
rowCell(index, row) {
|
|
125
|
-
if (!row || !row.cells.count) {
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
const firstCell = row.cells.first;
|
|
129
|
-
let cell, currentIndex = index;
|
|
130
|
-
while (!cell && currentIndex >= firstCell.colIndex) {
|
|
131
|
-
cell = row.cells.getItem(currentIndex);
|
|
132
|
-
currentIndex--;
|
|
133
|
-
}
|
|
134
|
-
if (cell && index <= cell.colIndex + (cell.colSpan || 1) - 1) {
|
|
135
|
-
return cell;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
@@ -1,5 +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
|
-
export {};
|