@progress/kendo-angular-grid 21.4.1-develop.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,50 +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 { closest, findFocusable, isVisible, matchesNodeName } from '../rendering/common/dom-queries';
|
|
6
|
-
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
7
|
-
const isButton = matchesNodeName('button');
|
|
8
|
-
const isInputTag = matchesNodeName('input');
|
|
9
|
-
const isKendoInputTag = matchesNodeName('kendo-checkbox') || matchesNodeName('kendo-textbox');
|
|
10
|
-
const isAnchorTag = matchesNodeName('a');
|
|
11
|
-
const navigableRegex = /(button|checkbox|color|file|radio|reset|submit)/i;
|
|
12
|
-
const isNavigableInput = element => isInputTag(element) && navigableRegex.test(element.type);
|
|
13
|
-
const isAnchor = element => isAnchorTag(element) && element.hasAttribute('href');
|
|
14
|
-
const isNavigable = element => !element.disabled && (isButton(element) || isNavigableInput(element) || isKendoInputTag(element) || isAnchor(element));
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export class DefaultFocusableElement {
|
|
19
|
-
renderer;
|
|
20
|
-
get enabled() {
|
|
21
|
-
return this.focusable && !this.focusable.disabled;
|
|
22
|
-
}
|
|
23
|
-
get visible() {
|
|
24
|
-
return this.focusable && isVisible(this.focusable);
|
|
25
|
-
}
|
|
26
|
-
element;
|
|
27
|
-
focusable;
|
|
28
|
-
constructor(host, renderer) {
|
|
29
|
-
this.renderer = renderer;
|
|
30
|
-
this.element = host.nativeElement;
|
|
31
|
-
this.focusable = findFocusable(this.element, false) || this.element;
|
|
32
|
-
}
|
|
33
|
-
isNavigable() {
|
|
34
|
-
return this.canFocus() && isNavigable(this.element);
|
|
35
|
-
}
|
|
36
|
-
toggle(active) {
|
|
37
|
-
this.renderer.setAttribute(this.focusable, 'tabIndex', active ? '0' : '-1');
|
|
38
|
-
}
|
|
39
|
-
focus() {
|
|
40
|
-
if (this.focusable) {
|
|
41
|
-
this.focusable.focus();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
canFocus() {
|
|
45
|
-
return this.visible && this.enabled;
|
|
46
|
-
}
|
|
47
|
-
hasFocus() {
|
|
48
|
-
return isDocumentAvailable() && document.activeElement !== this.element && closest(document.activeElement, e => e === this.element);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -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 { Injectable } from '@angular/core';
|
|
6
|
-
import { FocusRoot } from './focus-root';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "./focus-root";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export class FocusGroup {
|
|
13
|
-
root;
|
|
14
|
-
active = true;
|
|
15
|
-
children = [];
|
|
16
|
-
get focusableChildren() {
|
|
17
|
-
return this.children.filter(el => el.canFocus());
|
|
18
|
-
}
|
|
19
|
-
get isActive() {
|
|
20
|
-
return this.active;
|
|
21
|
-
}
|
|
22
|
-
constructor(root) {
|
|
23
|
-
this.root = root;
|
|
24
|
-
this.root.registerGroup(this);
|
|
25
|
-
}
|
|
26
|
-
ngOnDestroy() {
|
|
27
|
-
this.root.unregisterGroup(this);
|
|
28
|
-
this.active = true;
|
|
29
|
-
}
|
|
30
|
-
registerElement(element) {
|
|
31
|
-
this.unregisterElement(element);
|
|
32
|
-
this.children.push(element);
|
|
33
|
-
}
|
|
34
|
-
unregisterElement(element) {
|
|
35
|
-
this.children = this.children.filter(f => f !== element);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Returns `true` if the group receives focus when the cell is focused.
|
|
39
|
-
* The group must have a single simple focusable element, like a button or checkbox.
|
|
40
|
-
*/
|
|
41
|
-
isNavigable() {
|
|
42
|
-
const focusable = this.focusableChildren;
|
|
43
|
-
return focusable.length === 1 && focusable[0].isNavigable();
|
|
44
|
-
}
|
|
45
|
-
canFocus() {
|
|
46
|
-
return this.focusableChildren.length > 0;
|
|
47
|
-
}
|
|
48
|
-
focus() {
|
|
49
|
-
if (this.canFocus() && !this.hasFocus()) {
|
|
50
|
-
this.focusableChildren[0].focus();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
activate() {
|
|
54
|
-
this.toggleState(true);
|
|
55
|
-
}
|
|
56
|
-
deactivate() {
|
|
57
|
-
this.toggleState(false);
|
|
58
|
-
}
|
|
59
|
-
hasFocus() {
|
|
60
|
-
return this.children.reduce((focused, element) => focused || element.hasFocus(), false);
|
|
61
|
-
}
|
|
62
|
-
toggleState(active) {
|
|
63
|
-
if (this.active !== active) {
|
|
64
|
-
this.active = active;
|
|
65
|
-
this.children.forEach(f => f.toggle(active));
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FocusGroup, deps: [{ token: i1.FocusRoot }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
69
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FocusGroup });
|
|
70
|
-
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FocusGroup, decorators: [{
|
|
72
|
-
type: Injectable
|
|
73
|
-
}], ctorParameters: () => [{ type: i1.FocusRoot }] });
|
|
@@ -1,50 +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 { Inject, Injectable, InjectionToken, Optional } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export const FOCUS_ROOT_ACTIVE = new InjectionToken('focus-root-initial-active-state');
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export class FocusRoot {
|
|
15
|
-
active;
|
|
16
|
-
groups = new Set();
|
|
17
|
-
constructor(active = false) {
|
|
18
|
-
this.active = active;
|
|
19
|
-
}
|
|
20
|
-
registerGroup(group) {
|
|
21
|
-
if (this.active) {
|
|
22
|
-
this.groups.add(group);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
unregisterGroup(group) {
|
|
26
|
-
if (this.active) {
|
|
27
|
-
this.groups.delete(group);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
activate() {
|
|
31
|
-
if (this.active) {
|
|
32
|
-
this.groups.forEach(f => f.activate());
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
deactivate() {
|
|
36
|
-
if (this.active) {
|
|
37
|
-
this.groups.forEach(f => f.deactivate());
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FocusRoot, deps: [{ token: FOCUS_ROOT_ACTIVE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
41
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FocusRoot });
|
|
42
|
-
}
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FocusRoot, decorators: [{
|
|
44
|
-
type: Injectable
|
|
45
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
46
|
-
type: Optional
|
|
47
|
-
}, {
|
|
48
|
-
type: Inject,
|
|
49
|
-
args: [FOCUS_ROOT_ACTIVE]
|
|
50
|
-
}] }] });
|
|
@@ -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,150 +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, ElementRef, Inject, Input, Optional, Renderer2, SkipSelf } from '@angular/core';
|
|
6
|
-
import { DefaultFocusableElement } from './default-focusable-element';
|
|
7
|
-
import { CELL_CONTEXT } from '../rendering/common/cell-context';
|
|
8
|
-
import { ContextService } from '../common/provider.service';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "../common/provider.service";
|
|
11
|
-
/**
|
|
12
|
-
* A directive that controls how focusable elements receive
|
|
13
|
-
* focus in a navigable Grid. [See example]({% slug keyboard_navigation_grid %}).
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```html
|
|
17
|
-
* <kendo-grid [data]="data" [navigable]="true">
|
|
18
|
-
* <kendo-grid-column>
|
|
19
|
-
* <ng-template kendoGridCellTemplate let-dataItem>
|
|
20
|
-
* <!-- The first focusable element is focused when you press Enter on the cell. -->
|
|
21
|
-
* <input type="text" kendoGridFocusable [value]="dataItem.ProductName" style="margin-right: 8px;" />
|
|
22
|
-
* <button kendoGridFocusable>Update</button>
|
|
23
|
-
* </ng-template>
|
|
24
|
-
* </kendo-grid-column>
|
|
25
|
-
* </kendo-grid>
|
|
26
|
-
* ```
|
|
27
|
-
* @remarks
|
|
28
|
-
* Applied to: {@link ButtonComponent}, {@link TextBoxComponent}, {@link NumericTextBoxComponent}, {@link DateInputComponent}, {@link DatePickerComponent}, {@link DateTimePicker}, {@link TextAreaComponent}, {@link ColorPickerComponent}, {@link DropDownListComponent}, {@link ComboBoxComponent}, {@link AutoCompleteComponent}.
|
|
29
|
-
*/
|
|
30
|
-
export class FocusableDirective {
|
|
31
|
-
cellContext;
|
|
32
|
-
hostElement;
|
|
33
|
-
renderer;
|
|
34
|
-
ctx;
|
|
35
|
-
active = true;
|
|
36
|
-
group;
|
|
37
|
-
element;
|
|
38
|
-
_enabled = true;
|
|
39
|
-
/**
|
|
40
|
-
* @hidden
|
|
41
|
-
*/
|
|
42
|
-
set enabled(value) {
|
|
43
|
-
if (value === '') {
|
|
44
|
-
value = true;
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
value = Boolean(value);
|
|
48
|
-
}
|
|
49
|
-
if (value !== this.enabled) {
|
|
50
|
-
this._enabled = value;
|
|
51
|
-
if (this.element) {
|
|
52
|
-
this.element.toggle(this.active && value);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
get enabled() {
|
|
57
|
-
return this._enabled;
|
|
58
|
-
}
|
|
59
|
-
constructor(cellContext, hostElement, renderer, ctx) {
|
|
60
|
-
this.cellContext = cellContext;
|
|
61
|
-
this.hostElement = hostElement;
|
|
62
|
-
this.renderer = renderer;
|
|
63
|
-
this.ctx = ctx;
|
|
64
|
-
if (this.cellContext) {
|
|
65
|
-
this.group = this.cellContext.focusGroup;
|
|
66
|
-
}
|
|
67
|
-
if (this.group) {
|
|
68
|
-
this.group.registerElement(this);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
ngAfterViewInit() {
|
|
72
|
-
if (!this.element && this.ctx.navigable) {
|
|
73
|
-
this.element = new DefaultFocusableElement(this.hostElement, this.renderer);
|
|
74
|
-
}
|
|
75
|
-
if (this.group && this.element) {
|
|
76
|
-
this.toggle(this.group.isActive);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
ngOnDestroy() {
|
|
80
|
-
if (this.group) {
|
|
81
|
-
this.group.unregisterElement(this);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* @hidden
|
|
86
|
-
*/
|
|
87
|
-
toggle(active) {
|
|
88
|
-
if (this.element && active !== this.active) {
|
|
89
|
-
this.element.toggle(this.enabled && active);
|
|
90
|
-
this.active = active;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* @hidden
|
|
95
|
-
*/
|
|
96
|
-
canFocus() {
|
|
97
|
-
return this.enabled && this.element && this.element.canFocus();
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* @hidden
|
|
101
|
-
*/
|
|
102
|
-
isNavigable() {
|
|
103
|
-
return this.enabled && this.element && this.element.isNavigable();
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* @hidden
|
|
107
|
-
*/
|
|
108
|
-
focus() {
|
|
109
|
-
if (this.enabled && this.element) {
|
|
110
|
-
this.element.focus();
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* @hidden
|
|
115
|
-
*/
|
|
116
|
-
hasFocus() {
|
|
117
|
-
return this.enabled && this.element && this.element.hasFocus();
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* @hidden
|
|
121
|
-
*/
|
|
122
|
-
registerElement(element) {
|
|
123
|
-
this.element = element;
|
|
124
|
-
}
|
|
125
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FocusableDirective, deps: [{ token: CELL_CONTEXT, optional: true, skipSelf: true }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
126
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: FocusableDirective, isStandalone: true, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: { enabled: ["kendoGridFocusable", "enabled"] }, ngImport: i0 });
|
|
127
|
-
}
|
|
128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FocusableDirective, decorators: [{
|
|
129
|
-
type: Directive,
|
|
130
|
-
args: [{
|
|
131
|
-
selector: '[kendoGridFocusable]' + `,
|
|
132
|
-
[kendoGridEditCommand],
|
|
133
|
-
[kendoGridRemoveCommand],
|
|
134
|
-
[kendoGridSaveCommand],
|
|
135
|
-
[kendoGridCancelCommand],
|
|
136
|
-
[kendoGridSelectionCheckbox]
|
|
137
|
-
`,
|
|
138
|
-
standalone: true
|
|
139
|
-
}]
|
|
140
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
141
|
-
type: Optional
|
|
142
|
-
}, {
|
|
143
|
-
type: Inject,
|
|
144
|
-
args: [CELL_CONTEXT]
|
|
145
|
-
}, {
|
|
146
|
-
type: SkipSelf
|
|
147
|
-
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.ContextService }], propDecorators: { enabled: [{
|
|
148
|
-
type: Input,
|
|
149
|
-
args: ['kendoGridFocusable']
|
|
150
|
-
}] } });
|
|
@@ -1,28 +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 GridFocusableElement {
|
|
9
|
-
navigationService;
|
|
10
|
-
constructor(navigationService) {
|
|
11
|
-
this.navigationService = navigationService;
|
|
12
|
-
}
|
|
13
|
-
focus() {
|
|
14
|
-
this.navigationService.focusCell();
|
|
15
|
-
}
|
|
16
|
-
toggle(active) {
|
|
17
|
-
this.navigationService.toggle(active);
|
|
18
|
-
}
|
|
19
|
-
canFocus() {
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
hasFocus() {
|
|
23
|
-
return this.navigationService.hasFocus();
|
|
24
|
-
}
|
|
25
|
-
isNavigable() {
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,59 +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 ItemMap {
|
|
9
|
-
count = 0;
|
|
10
|
-
items = {};
|
|
11
|
-
get first() {
|
|
12
|
-
if (this.count > 0) {
|
|
13
|
-
let result;
|
|
14
|
-
this.forEach(item => {
|
|
15
|
-
result = item;
|
|
16
|
-
return true;
|
|
17
|
-
});
|
|
18
|
-
return result;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
get last() {
|
|
22
|
-
if (this.count > 0) {
|
|
23
|
-
const keys = Object.keys(this.items);
|
|
24
|
-
return this.items[keys[keys.length - 1]];
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
removeItem(key) {
|
|
28
|
-
if (this.items[key]) {
|
|
29
|
-
delete this.items[key];
|
|
30
|
-
this.count--;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
setItem(key, item) {
|
|
34
|
-
if (!this.items[key]) {
|
|
35
|
-
this.count++;
|
|
36
|
-
}
|
|
37
|
-
this.items[key] = item;
|
|
38
|
-
}
|
|
39
|
-
getItem(key) {
|
|
40
|
-
return this.items[key];
|
|
41
|
-
}
|
|
42
|
-
toArray() {
|
|
43
|
-
const result = [];
|
|
44
|
-
this.forEach(item => {
|
|
45
|
-
result.push(item);
|
|
46
|
-
});
|
|
47
|
-
return result;
|
|
48
|
-
}
|
|
49
|
-
forEach(callback) {
|
|
50
|
-
for (const key in this.items) {
|
|
51
|
-
if (this.items.hasOwnProperty(key) && callback(this.items[key])) {
|
|
52
|
-
return this.items[key];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
find(callback) {
|
|
57
|
-
return this.forEach(callback);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -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 { Directive, ElementRef, HostBinding, Inject, Input, NgZone, Optional, Renderer2 } from '@angular/core';
|
|
6
|
-
import { FocusGroup } from './focus-group';
|
|
7
|
-
import { FocusRoot } from './focus-root';
|
|
8
|
-
import { NavigationService } from './navigation.service';
|
|
9
|
-
import { ColumnInfoService } from '../common/column-info.service';
|
|
10
|
-
import { IdService } from '../common/id.service';
|
|
11
|
-
import { CELL_CONTEXT } from '../rendering/common/cell-context';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "./focus-group";
|
|
14
|
-
import * as i2 from "../common/column-info.service";
|
|
15
|
-
import * as i3 from "../common/id.service";
|
|
16
|
-
import * as i4 from "./navigation.service";
|
|
17
|
-
let id = 0;
|
|
18
|
-
function nextId() {
|
|
19
|
-
return id++;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export class LogicalCellDirective {
|
|
25
|
-
focusGroup;
|
|
26
|
-
element;
|
|
27
|
-
columnInfoService;
|
|
28
|
-
idService;
|
|
29
|
-
navigationService;
|
|
30
|
-
renderer;
|
|
31
|
-
zone;
|
|
32
|
-
cellContext;
|
|
33
|
-
logicalColIndex;
|
|
34
|
-
logicalRowIndex;
|
|
35
|
-
logicalSlaveCell = false;
|
|
36
|
-
colIndex;
|
|
37
|
-
colSpan = 1;
|
|
38
|
-
rowSpan = 1;
|
|
39
|
-
groupItem;
|
|
40
|
-
dataRowIndex = -1;
|
|
41
|
-
dataItem;
|
|
42
|
-
detailExpandCell = false;
|
|
43
|
-
headerLabelText;
|
|
44
|
-
uid = nextId();
|
|
45
|
-
get id() {
|
|
46
|
-
if (!this.logicalSlaveCell && this.columnInfoService.isLocked) {
|
|
47
|
-
return this.idService.cellId(this.logicalRowIndex, this.logicalColIndex);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
get cellRowspan() {
|
|
51
|
-
return String(this.rowSpan);
|
|
52
|
-
}
|
|
53
|
-
get rowspanClass() {
|
|
54
|
-
return this.dataRowIndex > -1 && this.rowSpan > 1;
|
|
55
|
-
}
|
|
56
|
-
get ariaColIndex() {
|
|
57
|
-
if (this.logicalSlaveCell || this.logicalColIndex === -1) {
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
60
|
-
return this.logicalColIndex + 1;
|
|
61
|
-
}
|
|
62
|
-
navigationChange;
|
|
63
|
-
constructor(focusGroup, element, columnInfoService, idService, navigationService, renderer, zone, cellContext) {
|
|
64
|
-
this.focusGroup = focusGroup;
|
|
65
|
-
this.element = element;
|
|
66
|
-
this.columnInfoService = columnInfoService;
|
|
67
|
-
this.idService = idService;
|
|
68
|
-
this.navigationService = navigationService;
|
|
69
|
-
this.renderer = renderer;
|
|
70
|
-
this.zone = zone;
|
|
71
|
-
this.cellContext = cellContext;
|
|
72
|
-
}
|
|
73
|
-
ngOnInit() {
|
|
74
|
-
if (!this.navigationService.tableEnabled) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
this.navigationChange = this.navigationService.changes.subscribe((e) => this.onNavigationChange(e));
|
|
78
|
-
}
|
|
79
|
-
ngDoCheck() {
|
|
80
|
-
if (!this.navigationService.tableEnabled || this.logicalColIndex === -1) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
if (this.cellContext) {
|
|
84
|
-
this.cellContext.focusGroup = this.focusGroup;
|
|
85
|
-
}
|
|
86
|
-
this.registerNoChanges();
|
|
87
|
-
}
|
|
88
|
-
ngOnChanges(changes) {
|
|
89
|
-
if (!this.navigationService.tableEnabled) {
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
const keys = Object.keys(changes);
|
|
93
|
-
if ((keys.length === 1 && keys[0] === 'groupItem') || this.logicalColIndex === -1) {
|
|
94
|
-
// Ignore groupItem changes as the reference is not stable
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
const indexChange = changes['logicalColIndex'];
|
|
98
|
-
const rowIndexChange = changes['logicalRowIndex'];
|
|
99
|
-
const index = indexChange && !indexChange.isFirstChange() ? indexChange.previousValue : this.logicalColIndex;
|
|
100
|
-
const rowIndex = rowIndexChange && !rowIndexChange.isFirstChange() ? rowIndexChange.previousValue : this.logicalRowIndex;
|
|
101
|
-
this.navigationService.unregisterCell(index, rowIndex, this);
|
|
102
|
-
this.registerChanges();
|
|
103
|
-
this.updateElement();
|
|
104
|
-
}
|
|
105
|
-
ngOnDestroy() {
|
|
106
|
-
if (this.navigationChange) {
|
|
107
|
-
this.navigationChange.unsubscribe();
|
|
108
|
-
}
|
|
109
|
-
this.navigationService.unregisterCell(this.logicalColIndex, this.logicalRowIndex, this);
|
|
110
|
-
}
|
|
111
|
-
onNavigationChange(e) {
|
|
112
|
-
const active = this.logicalColIndex === e.colIndex && this.logicalRowIndex === e.rowIndex;
|
|
113
|
-
const wasActive = this.logicalColIndex === e.prevColIndex && this.logicalRowIndex === e.prevRowIndex;
|
|
114
|
-
if (active || wasActive) {
|
|
115
|
-
this.updateElement();
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
updateElement() {
|
|
119
|
-
const el = this.element.nativeElement;
|
|
120
|
-
this.renderer.setAttribute(el, 'tabIndex', this.isFocusable() && !this.logicalSlaveCell ? '0' : '-1');
|
|
121
|
-
if (this.isFocused()) {
|
|
122
|
-
if (this.focusGroup.isNavigable()) {
|
|
123
|
-
this.focusGroup.focus();
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
if (!this.logicalSlaveCell &&
|
|
127
|
-
this.navigationService.autoFocusCell(this.logicalColIndex, this.logicalColIndex + this.colSpan - 1)) {
|
|
128
|
-
this.microtask(() => {
|
|
129
|
-
if (this.isFocused()) {
|
|
130
|
-
el.focus({ preventScroll: this.navigationService.preventScroll });
|
|
131
|
-
this.navigationService.preventScroll = false;
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
this.renderer.addClass(el, 'k-focus');
|
|
136
|
-
}
|
|
137
|
-
if (this.headerLabelText) {
|
|
138
|
-
el.removeAttribute('aria-label');
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
this.renderer.removeClass(el, 'k-focus');
|
|
143
|
-
if (this.headerLabelText) {
|
|
144
|
-
el.setAttribute('aria-label', this.headerLabelText);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
microtask(callback) {
|
|
149
|
-
this.zone.runOutsideAngular(() => Promise.resolve(null).then(callback));
|
|
150
|
-
}
|
|
151
|
-
registerChanges() {
|
|
152
|
-
if (!this.logicalSlaveCell) {
|
|
153
|
-
this.navigationService.registerCell(this);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
registerNoChanges() {
|
|
157
|
-
if (!this.logicalSlaveCell) {
|
|
158
|
-
this.navigationService.registerCellOnCurrentRow(this);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
isFocusable() {
|
|
162
|
-
return this.navigationService.isCellFocusable(this);
|
|
163
|
-
}
|
|
164
|
-
isFocused() {
|
|
165
|
-
return this.navigationService.isCellFocused(this);
|
|
166
|
-
}
|
|
167
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LogicalCellDirective, deps: [{ token: i1.FocusGroup }, { token: i0.ElementRef }, { token: i2.ColumnInfoService }, { token: i3.IdService }, { token: i4.NavigationService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: CELL_CONTEXT, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
168
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: LogicalCellDirective, isStandalone: true, selector: "[kendoGridLogicalCell]", inputs: { logicalColIndex: "logicalColIndex", logicalRowIndex: "logicalRowIndex", logicalSlaveCell: "logicalSlaveCell", colIndex: "colIndex", colSpan: "colSpan", rowSpan: "rowSpan", groupItem: "groupItem", dataRowIndex: "dataRowIndex", dataItem: "dataItem", detailExpandCell: "detailExpandCell", headerLabelText: "headerLabelText" }, host: { properties: { "attr.id": "this.id", "attr.rowspan": "this.cellRowspan", "class.k-table-td-row-span": "this.rowspanClass", "attr.aria-colindex": "this.ariaColIndex" } }, providers: [{
|
|
169
|
-
provide: FocusGroup,
|
|
170
|
-
deps: [FocusRoot],
|
|
171
|
-
useClass: FocusGroup
|
|
172
|
-
}], usesOnChanges: true, ngImport: i0 });
|
|
173
|
-
}
|
|
174
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LogicalCellDirective, decorators: [{
|
|
175
|
-
type: Directive,
|
|
176
|
-
args: [{
|
|
177
|
-
providers: [{
|
|
178
|
-
provide: FocusGroup,
|
|
179
|
-
deps: [FocusRoot],
|
|
180
|
-
useClass: FocusGroup
|
|
181
|
-
}],
|
|
182
|
-
selector: '[kendoGridLogicalCell]',
|
|
183
|
-
standalone: true
|
|
184
|
-
}]
|
|
185
|
-
}], ctorParameters: () => [{ type: i1.FocusGroup }, { type: i0.ElementRef }, { type: i2.ColumnInfoService }, { type: i3.IdService }, { type: i4.NavigationService }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
186
|
-
type: Optional
|
|
187
|
-
}, {
|
|
188
|
-
type: Inject,
|
|
189
|
-
args: [CELL_CONTEXT]
|
|
190
|
-
}] }], propDecorators: { logicalColIndex: [{
|
|
191
|
-
type: Input
|
|
192
|
-
}], logicalRowIndex: [{
|
|
193
|
-
type: Input
|
|
194
|
-
}], logicalSlaveCell: [{
|
|
195
|
-
type: Input
|
|
196
|
-
}], colIndex: [{
|
|
197
|
-
type: Input
|
|
198
|
-
}], colSpan: [{
|
|
199
|
-
type: Input
|
|
200
|
-
}], rowSpan: [{
|
|
201
|
-
type: Input
|
|
202
|
-
}], groupItem: [{
|
|
203
|
-
type: Input
|
|
204
|
-
}], dataRowIndex: [{
|
|
205
|
-
type: Input
|
|
206
|
-
}], dataItem: [{
|
|
207
|
-
type: Input
|
|
208
|
-
}], detailExpandCell: [{
|
|
209
|
-
type: Input
|
|
210
|
-
}], headerLabelText: [{
|
|
211
|
-
type: Input
|
|
212
|
-
}], id: [{
|
|
213
|
-
type: HostBinding,
|
|
214
|
-
args: ['attr.id']
|
|
215
|
-
}], cellRowspan: [{
|
|
216
|
-
type: HostBinding,
|
|
217
|
-
args: ['attr.rowspan']
|
|
218
|
-
}], rowspanClass: [{
|
|
219
|
-
type: HostBinding,
|
|
220
|
-
args: ['class.k-table-td-row-span']
|
|
221
|
-
}], ariaColIndex: [{
|
|
222
|
-
type: HostBinding,
|
|
223
|
-
args: ['attr.aria-colindex']
|
|
224
|
-
}] } });
|
|
@@ -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 {};
|