@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,208 +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, NgZone, Renderer2 } from '@angular/core';
|
|
6
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
7
|
-
import { Subscription } from 'rxjs';
|
|
8
|
-
import { groupIcon } from '@progress/kendo-svg-icons';
|
|
9
|
-
import { PopupService } from '@progress/kendo-angular-popup';
|
|
10
|
-
import { ContextService } from '../../../common/provider.service';
|
|
11
|
-
import { closest, isDocumentAvailable, isPresent } from '@progress/kendo-angular-common';
|
|
12
|
-
import { take } from 'rxjs/operators';
|
|
13
|
-
import { AdaptiveGridService } from '../../../common/adaptiveness.service';
|
|
14
|
-
import { GroupToolbarToolComponent } from './group-toolbar-tool.component';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
import * as i1 from "@progress/kendo-angular-toolbar";
|
|
17
|
-
import * as i2 from "@progress/kendo-angular-popup";
|
|
18
|
-
import * as i3 from "../../../common/provider.service";
|
|
19
|
-
import * as i4 from "../../../common/adaptiveness.service";
|
|
20
|
-
let incrementingId = 0;
|
|
21
|
-
/**
|
|
22
|
-
* Represents the toolbar tool for grouping columns of the Grid.
|
|
23
|
-
* Use this directive on any `kendo-toolbar-button` inside a ToolbarComponent in the Grid.
|
|
24
|
-
* When you click the toolbar button with this directive, the `group` event is triggered.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```html
|
|
28
|
-
* <kendo-grid>
|
|
29
|
-
* <kendo-toolbar>
|
|
30
|
-
* <kendo-toolbar-button text="Group" kendoGridGroupTool></kendo-toolbar-button>
|
|
31
|
-
* </kendo-toolbar>
|
|
32
|
-
* </kendo-grid>
|
|
33
|
-
* ```
|
|
34
|
-
* @remarks
|
|
35
|
-
* Applied to: {@link ToolBarButtonComponent}.
|
|
36
|
-
*/
|
|
37
|
-
export class GroupCommandToolbarDirective {
|
|
38
|
-
host;
|
|
39
|
-
popupService;
|
|
40
|
-
ctx;
|
|
41
|
-
ngZone;
|
|
42
|
-
renderer;
|
|
43
|
-
adaptiveGridService;
|
|
44
|
-
popupRef;
|
|
45
|
-
nextId = incrementingId++;
|
|
46
|
-
toolSubs = new Subscription();
|
|
47
|
-
popupSubs;
|
|
48
|
-
actionSheetCloseSub;
|
|
49
|
-
removeClickListener;
|
|
50
|
-
constructor(host, popupService, ctx, ngZone, renderer, adaptiveGridService) {
|
|
51
|
-
this.host = host;
|
|
52
|
-
this.popupService = popupService;
|
|
53
|
-
this.ctx = ctx;
|
|
54
|
-
this.ngZone = ngZone;
|
|
55
|
-
this.renderer = renderer;
|
|
56
|
-
this.adaptiveGridService = adaptiveGridService;
|
|
57
|
-
}
|
|
58
|
-
ngOnInit() {
|
|
59
|
-
this.toolSubs = this.host.click.subscribe(e => this.onClick(e));
|
|
60
|
-
this.toolSubs.add(this.ctx.grid.groupChange.subscribe(group => {
|
|
61
|
-
this.host.showBadge = this.isGroupingApplied(group);
|
|
62
|
-
}));
|
|
63
|
-
this.host.hasBadgeContainer = true;
|
|
64
|
-
this.host.showBadge = this.isGroupingApplied(this.ctx.grid.group);
|
|
65
|
-
const hasToolbarIcon = isPresent(this.host.toolbarOptions.icon) && this.host.toolbarOptions.icon !== '';
|
|
66
|
-
const hasOverflowIcon = isPresent(this.host.overflowOptions.icon) && this.host.overflowOptions.icon !== '';
|
|
67
|
-
const hasIcon = hasToolbarIcon && hasOverflowIcon;
|
|
68
|
-
const hasSvgIcon = isPresent(this.host.toolbarOptions.svgIcon) && isPresent(this.host.overflowOptions.svgIcon);
|
|
69
|
-
if (!hasIcon) {
|
|
70
|
-
this.host.icon = 'group';
|
|
71
|
-
}
|
|
72
|
-
if (!hasSvgIcon) {
|
|
73
|
-
this.host.svgIcon = groupIcon;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
ngAfterViewInit() {
|
|
77
|
-
if (!isPresent(this.host.text)) {
|
|
78
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
79
|
-
this.host.text = this.ctx.localization.get(`groupToolbarToolText`);
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
this.buttonElement?.setAttribute('aria-haspopup', 'dialog');
|
|
83
|
-
this.buttonElement?.setAttribute('aria-expanded', 'false');
|
|
84
|
-
this.buttonElement?.setAttribute('title', this.ctx.localization.get('groupToolbarToolText'));
|
|
85
|
-
}
|
|
86
|
-
ngOnDestroy() {
|
|
87
|
-
if (this.toolSubs) {
|
|
88
|
-
this.toolSubs.unsubscribe();
|
|
89
|
-
}
|
|
90
|
-
if (this.popupSubs) {
|
|
91
|
-
this.popupSubs.unsubscribe();
|
|
92
|
-
}
|
|
93
|
-
if (this.popupRef) {
|
|
94
|
-
this.popupRef.close();
|
|
95
|
-
this.popupRef = null;
|
|
96
|
-
}
|
|
97
|
-
if (this.actionSheetCloseSub) {
|
|
98
|
-
this.actionSheetCloseSub.unsubscribe();
|
|
99
|
-
this.actionSheetCloseSub = null;
|
|
100
|
-
}
|
|
101
|
-
if (this.removeClickListener) {
|
|
102
|
-
this.removeClickListener();
|
|
103
|
-
this.removeClickListener = null;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
onClick(e) {
|
|
107
|
-
e.preventDefault();
|
|
108
|
-
if (this.ctx.grid.adaptiveMode === 'auto' && this.adaptiveGridService.windowSize !== 'large') {
|
|
109
|
-
if (!this.ctx.grid.isActionSheetExpanded) {
|
|
110
|
-
this.adaptiveGridService.viewType = 'groupToolbarTool';
|
|
111
|
-
this.ctx.grid.adaptiveRenderer.actionSheet.toggle(true);
|
|
112
|
-
this.host.selected = true;
|
|
113
|
-
this.actionSheetCloseSub = this.ctx.grid.adaptiveRenderer.actionSheet.collapse.subscribe(() => this.host.selected = false);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
if (this.popupRef) {
|
|
118
|
-
this.closePopup();
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
this.openPopup();
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
openPopup() {
|
|
125
|
-
const direction = this.ctx.localization.rtl ? 'right' : 'left';
|
|
126
|
-
this.popupRef = this.popupService.open({
|
|
127
|
-
anchor: this.buttonElement,
|
|
128
|
-
content: GroupToolbarToolComponent,
|
|
129
|
-
popupClass: 'k-grid-columnmenu-popup',
|
|
130
|
-
positionMode: 'absolute',
|
|
131
|
-
anchorAlign: { vertical: 'bottom', horizontal: direction },
|
|
132
|
-
popupAlign: { vertical: 'top', horizontal: direction }
|
|
133
|
-
});
|
|
134
|
-
this.adaptiveGridService.popupRef = this.popupRef;
|
|
135
|
-
this.setPopupAttributes();
|
|
136
|
-
this.host.selected = true;
|
|
137
|
-
this.ngZone.runOutsideAngular(() => {
|
|
138
|
-
if (!isDocumentAvailable()) {
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
this.removeClickListener = this.renderer.listen('document', 'click', (e) => {
|
|
142
|
-
if (this.popupRef && !closest(e.target, node => node === this.popupRef.popupElement || node === this.buttonElement)) {
|
|
143
|
-
this.ngZone.run(() => {
|
|
144
|
-
this.closePopup();
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
this.popupSubs = this.popupRef.popup.instance.anchorViewportLeave.subscribe(() => {
|
|
150
|
-
this.popupSubs?.unsubscribe();
|
|
151
|
-
this.popupSubs = null;
|
|
152
|
-
this.closePopup();
|
|
153
|
-
});
|
|
154
|
-
this.initPopupProperties();
|
|
155
|
-
}
|
|
156
|
-
setPopupAttributes() {
|
|
157
|
-
const popupElement = this.popupRef.popupElement;
|
|
158
|
-
const popupId = `k-group-tool-${this.nextId}-popup`;
|
|
159
|
-
const popupAriaElement = popupElement.querySelector('.k-popup');
|
|
160
|
-
this.renderer.setAttribute(popupElement, 'dir', this.ctx.localization.rtl ? 'rtl' : 'ltr');
|
|
161
|
-
this.renderer.setAttribute(popupAriaElement, 'id', popupId);
|
|
162
|
-
this.renderer.setAttribute(popupAriaElement, 'role', 'dialog');
|
|
163
|
-
this.buttonElement?.setAttribute('aria-expanded', 'true');
|
|
164
|
-
this.buttonElement?.setAttribute('aria-controls', popupId);
|
|
165
|
-
}
|
|
166
|
-
initPopupProperties() {
|
|
167
|
-
this.popupRef.content.instance.ctx = this.ctx;
|
|
168
|
-
this.popupRef.content.instance.hostButton = this.host;
|
|
169
|
-
this.popupSubs.add(this.popupRef.content.instance.groupClear.subscribe(() => {
|
|
170
|
-
this.closePopup();
|
|
171
|
-
}));
|
|
172
|
-
this.popupSubs.add(this.popupRef.content.instance.close.subscribe(() => {
|
|
173
|
-
this.closePopup();
|
|
174
|
-
}));
|
|
175
|
-
}
|
|
176
|
-
closePopup() {
|
|
177
|
-
this.buttonElement?.setAttribute('aria-expanded', 'false');
|
|
178
|
-
this.buttonElement?.removeAttribute('aria-controls');
|
|
179
|
-
this.host.selected = false;
|
|
180
|
-
if (this.popupRef) {
|
|
181
|
-
this.popupRef.close();
|
|
182
|
-
this.popupRef = null;
|
|
183
|
-
}
|
|
184
|
-
if (this.popupSubs) {
|
|
185
|
-
this.popupSubs.unsubscribe();
|
|
186
|
-
this.popupSubs = null;
|
|
187
|
-
}
|
|
188
|
-
if (this.removeClickListener) {
|
|
189
|
-
this.removeClickListener();
|
|
190
|
-
this.removeClickListener = null;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
get buttonElement() {
|
|
194
|
-
return this.host.getButton();
|
|
195
|
-
}
|
|
196
|
-
isGroupingApplied(group) {
|
|
197
|
-
return isPresent(group) && group.length > 0;
|
|
198
|
-
}
|
|
199
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GroupCommandToolbarDirective, deps: [{ token: i1.ToolBarButtonComponent }, { token: i2.PopupService }, { token: i3.ContextService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i4.AdaptiveGridService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
200
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: GroupCommandToolbarDirective, isStandalone: true, selector: "[kendoGridGroupTool]", ngImport: i0 });
|
|
201
|
-
}
|
|
202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GroupCommandToolbarDirective, decorators: [{
|
|
203
|
-
type: Directive,
|
|
204
|
-
args: [{
|
|
205
|
-
selector: '[kendoGridGroupTool]',
|
|
206
|
-
standalone: true
|
|
207
|
-
}]
|
|
208
|
-
}], ctorParameters: () => [{ type: i1.ToolBarButtonComponent }, { type: i2.PopupService }, { type: i3.ContextService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i4.AdaptiveGridService }] });
|
|
@@ -1,451 +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 { Component, ElementRef, EventEmitter, HostBinding, Output, Input, HostListener, ViewChildren, QueryList, NgZone } from '@angular/core';
|
|
6
|
-
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
7
|
-
import { chevronUpIcon, chevronDownIcon, xCircleIcon, plusCircleIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
8
|
-
import { KENDO_BUTTON } from '@progress/kendo-angular-buttons';
|
|
9
|
-
import { take } from 'rxjs/operators';
|
|
10
|
-
import { isPresent, Keys, normalizeKeys } from '@progress/kendo-angular-common';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "@progress/kendo-angular-buttons";
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export class GroupToolbarToolComponent {
|
|
17
|
-
element;
|
|
18
|
-
ngZone;
|
|
19
|
-
hostClass = true;
|
|
20
|
-
get lgClass() {
|
|
21
|
-
return this.adaptive;
|
|
22
|
-
}
|
|
23
|
-
get mdClass() {
|
|
24
|
-
return !this.adaptive;
|
|
25
|
-
}
|
|
26
|
-
onEscKeyDown(event) {
|
|
27
|
-
event.preventDefault();
|
|
28
|
-
this.hostButton?.focus(event);
|
|
29
|
-
this.close.emit();
|
|
30
|
-
}
|
|
31
|
-
set groupItems(items) {
|
|
32
|
-
this._groupItems = items;
|
|
33
|
-
if (items?.first && (!isPresent(this.currentFocusedItemIndex) || this.currentFocusedItemIndex >= items.length || this.currentFocusedItemIndex < 0)) {
|
|
34
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
35
|
-
this.currentFocusedItemIndex = 0;
|
|
36
|
-
this.groupItems.first.nativeElement.focus({ preventScroll: true });
|
|
37
|
-
});
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
if (items?.first) {
|
|
41
|
-
items.get(this.currentFocusedItemIndex).nativeElement.focus({ preventScroll: true });
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
get groupItems() {
|
|
45
|
-
return this._groupItems;
|
|
46
|
-
}
|
|
47
|
-
_groupItems;
|
|
48
|
-
adaptive = false;
|
|
49
|
-
close = new EventEmitter();
|
|
50
|
-
groupClear = new EventEmitter();
|
|
51
|
-
currentFocusedItemIndex;
|
|
52
|
-
group = new Array();
|
|
53
|
-
columns = [];
|
|
54
|
-
iconSize = 'medium';
|
|
55
|
-
upIcon = chevronUpIcon;
|
|
56
|
-
downIcon = chevronDownIcon;
|
|
57
|
-
removeIcon = xCircleIcon;
|
|
58
|
-
addIcon = plusCircleIcon;
|
|
59
|
-
clearIcon = xIcon;
|
|
60
|
-
_ctx;
|
|
61
|
-
set ctx(ctx) {
|
|
62
|
-
if (!ctx || !ctx.grid) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
this._ctx = ctx;
|
|
66
|
-
this.group = ctx.grid.group;
|
|
67
|
-
this.subscription = ctx.grid.groupChange.subscribe((group) => {
|
|
68
|
-
this.group = group;
|
|
69
|
-
this.updateGroupedColumns();
|
|
70
|
-
});
|
|
71
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
72
|
-
this.updateGroupedColumns();
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
get ctx() {
|
|
76
|
-
return this._ctx;
|
|
77
|
-
}
|
|
78
|
-
groupedColumns = [];
|
|
79
|
-
ungroupedColumns = [];
|
|
80
|
-
subscription;
|
|
81
|
-
hostButton;
|
|
82
|
-
constructor(element, ngZone) {
|
|
83
|
-
this.element = element;
|
|
84
|
-
this.ngZone = ngZone;
|
|
85
|
-
}
|
|
86
|
-
ngOnInit() {
|
|
87
|
-
this.iconSize = this.adaptive ? 'large' : 'medium';
|
|
88
|
-
}
|
|
89
|
-
ngOnDestroy() {
|
|
90
|
-
if (this.subscription) {
|
|
91
|
-
this.subscription.unsubscribe();
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
addGroup(column, ev) {
|
|
95
|
-
ev.stopImmediatePropagation();
|
|
96
|
-
const index = this.group.length;
|
|
97
|
-
const groups = this.group.filter(x => x.field !== column?.field);
|
|
98
|
-
if (groups.length || this.group.length === 0) {
|
|
99
|
-
this.group = [...groups.slice(0, index), { field: column?.field }, ...groups.slice(index)];
|
|
100
|
-
this.ctx.grid.groupChange.emit(this.group);
|
|
101
|
-
this.updateGroupedColumns();
|
|
102
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
103
|
-
const newIndex = this.groupedColumns.length - 1;
|
|
104
|
-
const newItem = this.groupItems.get(newIndex);
|
|
105
|
-
if (newItem) {
|
|
106
|
-
this.currentFocusedItemIndex = (this.groupedColumns?.length || 0) + newIndex;
|
|
107
|
-
newItem.nativeElement.focus();
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
removeGroup(column, ev) {
|
|
113
|
-
ev.stopImmediatePropagation();
|
|
114
|
-
this.group = this.group.filter(x => x.field !== column?.field);
|
|
115
|
-
this.ctx.grid.groupChange.emit(this.group);
|
|
116
|
-
this.updateGroupedColumns();
|
|
117
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
118
|
-
const newIndex = this.ungroupedColumns.findIndex(ungroupedColumn => ungroupedColumn?.field === column?.field);
|
|
119
|
-
const newItem = this.groupItems.get(newIndex + this.groupedColumns.length);
|
|
120
|
-
if (newItem) {
|
|
121
|
-
newItem.nativeElement.focus();
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
moveGroupUp(column, ev) {
|
|
126
|
-
ev.stopImmediatePropagation();
|
|
127
|
-
const index = this.group.findIndex(x => x.field === column?.field);
|
|
128
|
-
if (index > 0) {
|
|
129
|
-
const groupToMove = this.group[index];
|
|
130
|
-
this.group.splice(index, 1);
|
|
131
|
-
this.group.splice(index - 1, 0, groupToMove);
|
|
132
|
-
this.ctx.grid.groupChange.emit(this.group);
|
|
133
|
-
this.updateGroupedColumns();
|
|
134
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
135
|
-
const newItem = this.groupItems.get(index - 1);
|
|
136
|
-
if (newItem) {
|
|
137
|
-
newItem.nativeElement.focus();
|
|
138
|
-
this.currentFocusedItemIndex = index - 1;
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
moveGroupDown(column, ev) {
|
|
144
|
-
ev.stopImmediatePropagation();
|
|
145
|
-
const index = this.group.findIndex(x => x.field === column?.field);
|
|
146
|
-
if (index < this.group.length - 1) {
|
|
147
|
-
const groupToMove = this.group[index];
|
|
148
|
-
this.group.splice(index, 1);
|
|
149
|
-
this.group.splice(index + 1, 0, groupToMove);
|
|
150
|
-
this.ctx.grid.groupChange.emit(this.group);
|
|
151
|
-
this.updateGroupedColumns();
|
|
152
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
153
|
-
const newItem = this.groupItems.get(index + 1);
|
|
154
|
-
if (newItem) {
|
|
155
|
-
newItem.nativeElement.focus();
|
|
156
|
-
this.currentFocusedItemIndex = index + 1;
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
clear() {
|
|
162
|
-
this.group = [];
|
|
163
|
-
this.ctx.grid.groupChange.emit(this.group);
|
|
164
|
-
this.groupClear.emit(this.group);
|
|
165
|
-
}
|
|
166
|
-
getColumnComponent(column) {
|
|
167
|
-
return column;
|
|
168
|
-
}
|
|
169
|
-
onItemFocus(groupIndex, index) {
|
|
170
|
-
const currentIndex = (typeof groupIndex === 'number' ? groupIndex : this.groupedColumns?.length || 0) + index;
|
|
171
|
-
this.currentFocusedItemIndex = currentIndex;
|
|
172
|
-
}
|
|
173
|
-
handleGroupedKeydown(column, index, ev) {
|
|
174
|
-
const code = normalizeKeys(ev);
|
|
175
|
-
if (code === Keys.Enter || code === Keys.Backspace || code === Keys.Delete) {
|
|
176
|
-
this.removeGroup(column, ev);
|
|
177
|
-
}
|
|
178
|
-
else if (code === Keys.ArrowUp && ev.shiftKey) {
|
|
179
|
-
this.moveGroupUp(column, ev);
|
|
180
|
-
}
|
|
181
|
-
else if (code === Keys.ArrowDown && ev.shiftKey) {
|
|
182
|
-
this.moveGroupDown(column, ev);
|
|
183
|
-
}
|
|
184
|
-
else if (code === Keys.ArrowUp) {
|
|
185
|
-
this.navigateToPreviousItem();
|
|
186
|
-
}
|
|
187
|
-
else if (code === Keys.ArrowDown) {
|
|
188
|
-
this.navigateToNextItem();
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
handleUngroupedKeydown(column, index, ev) {
|
|
192
|
-
const code = normalizeKeys(ev);
|
|
193
|
-
if (code === Keys.Enter) {
|
|
194
|
-
this.addGroup(column, ev);
|
|
195
|
-
}
|
|
196
|
-
else if (code === Keys.ArrowUp) {
|
|
197
|
-
this.navigateToPreviousItem();
|
|
198
|
-
}
|
|
199
|
-
else if (code === Keys.ArrowDown) {
|
|
200
|
-
this.navigateToNextItem();
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
updateGroupedColumns() {
|
|
204
|
-
const columns = this.ctx.grid['columnInfoService'].leafNamedColumns;
|
|
205
|
-
const groupableColumns = columns.filter(column => column?.groupable);
|
|
206
|
-
this.groupedColumns = this.group
|
|
207
|
-
.map(group => columns.find(column => column?.field === group.field))
|
|
208
|
-
.filter(column => !!column);
|
|
209
|
-
this.ungroupedColumns = groupableColumns.filter(column => !this.groupedColumns.some(gc => gc?.field === column?.field));
|
|
210
|
-
}
|
|
211
|
-
navigateToNextItem() {
|
|
212
|
-
if (this.currentFocusedItemIndex < this.groupItems.length - 1) {
|
|
213
|
-
this.currentFocusedItemIndex++;
|
|
214
|
-
this.groupItems.get(this.currentFocusedItemIndex).nativeElement.focus();
|
|
215
|
-
}
|
|
216
|
-
else if (this.currentFocusedItemIndex === this.groupItems.length - 1) {
|
|
217
|
-
this.currentFocusedItemIndex = 0;
|
|
218
|
-
this.groupItems.get(this.currentFocusedItemIndex).nativeElement.focus();
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
navigateToPreviousItem() {
|
|
222
|
-
if (this.currentFocusedItemIndex > 0) {
|
|
223
|
-
this.currentFocusedItemIndex--;
|
|
224
|
-
this.groupItems.get(this.currentFocusedItemIndex).nativeElement.focus();
|
|
225
|
-
}
|
|
226
|
-
else if (this.currentFocusedItemIndex === 0) {
|
|
227
|
-
this.currentFocusedItemIndex = this.groupItems.length - 1;
|
|
228
|
-
this.groupItems.get(this.currentFocusedItemIndex).nativeElement.focus();
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GroupToolbarToolComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
232
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: GroupToolbarToolComponent, isStandalone: true, selector: "kendo-group-toolbar-tool", inputs: { adaptive: "adaptive" }, outputs: { close: "close", groupClear: "groupClear" }, host: { listeners: { "keydown.escape": "onEscKeyDown($event)" }, properties: { "class.k-group-menu": "this.hostClass", "class.k-group-menu-lg": "this.lgClass", "class.k-group-menu-md": "this.mdClass" } }, viewQueries: [{ propertyName: "groupItems", predicate: ["groupItem"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
233
|
-
@if (groupedColumns.length) {
|
|
234
|
-
<div class="k-group-menu-item-wrap">
|
|
235
|
-
@for (column of groupedColumns; track column; let i = $index) {
|
|
236
|
-
<div
|
|
237
|
-
#groupItem
|
|
238
|
-
role="button"
|
|
239
|
-
class="k-group-menu-item"
|
|
240
|
-
tabindex="0"
|
|
241
|
-
(keydown)="handleGroupedKeydown(column, i, $event)"
|
|
242
|
-
(focus)="onItemFocus(i, 0)"
|
|
243
|
-
>
|
|
244
|
-
@if (groupedColumns.length > 1) {
|
|
245
|
-
<span class="k-group-menu-item-actions">
|
|
246
|
-
<span
|
|
247
|
-
class="k-group-menu-item-action k-group-menu-item-up-action"
|
|
248
|
-
(click)="moveGroupUp(column, $event)"
|
|
249
|
-
[attr.aria-disabled]="i === 0"
|
|
250
|
-
[class.k-disabled]="i === 0"
|
|
251
|
-
>
|
|
252
|
-
<kendo-icon-wrapper
|
|
253
|
-
name="arrow-chevron-up"
|
|
254
|
-
[svgIcon]="upIcon"
|
|
255
|
-
[size]="iconSize"
|
|
256
|
-
></kendo-icon-wrapper>
|
|
257
|
-
</span>
|
|
258
|
-
<span
|
|
259
|
-
class="k-group-menu-item-action k-group-menu-item-down-action"
|
|
260
|
-
(click)="moveGroupDown(column, $event)"
|
|
261
|
-
[attr.aria-disabled]="i === groupedColumns.length - 1"
|
|
262
|
-
[class.k-disabled]="i === groupedColumns.length - 1"
|
|
263
|
-
>
|
|
264
|
-
<kendo-icon-wrapper
|
|
265
|
-
name="arrow-chevron-down"
|
|
266
|
-
[svgIcon]="downIcon"
|
|
267
|
-
[size]="iconSize"
|
|
268
|
-
></kendo-icon-wrapper>
|
|
269
|
-
</span>
|
|
270
|
-
</span>
|
|
271
|
-
}
|
|
272
|
-
<span class="k-group-item-text">{{column.title || getColumnComponent(column).field}}</span>
|
|
273
|
-
<span class="k-spacer"></span>
|
|
274
|
-
<span class="k-group-menu-item-actions">
|
|
275
|
-
<span class="k-group-menu-item-action k-group-menu-item-remove-action" (click)="removeGroup(column, $event)">
|
|
276
|
-
<kendo-icon-wrapper
|
|
277
|
-
name="x-circle"
|
|
278
|
-
[svgIcon]="removeIcon"
|
|
279
|
-
[size]="iconSize"
|
|
280
|
-
></kendo-icon-wrapper>
|
|
281
|
-
</span>
|
|
282
|
-
</span>
|
|
283
|
-
</div>
|
|
284
|
-
}
|
|
285
|
-
</div>
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
@if (ungroupedColumns.length) {
|
|
289
|
-
<div class="k-group-menu-item-wrap">
|
|
290
|
-
@for (column of ungroupedColumns; track column; let i = $index) {
|
|
291
|
-
<div
|
|
292
|
-
#groupItem
|
|
293
|
-
role="button"
|
|
294
|
-
class="k-group-menu-item"
|
|
295
|
-
tabindex="0"
|
|
296
|
-
(keydown)="handleUngroupedKeydown(column, i, $event)"
|
|
297
|
-
(focus)="onItemFocus(null, i)"
|
|
298
|
-
>
|
|
299
|
-
<span class="k-group-item-text">{{column.title || getColumnComponent(column).field}}</span>
|
|
300
|
-
<span class="k-spacer"></span>
|
|
301
|
-
<span class="k-group-menu-item-actions">
|
|
302
|
-
<span class="k-group-menu-item-action k-group-menu-item-add-action" (click)="addGroup(column, $event)">
|
|
303
|
-
<kendo-icon-wrapper
|
|
304
|
-
name="plus-circle"
|
|
305
|
-
[svgIcon]="addIcon"
|
|
306
|
-
[size]="iconSize"
|
|
307
|
-
></kendo-icon-wrapper>
|
|
308
|
-
</span>
|
|
309
|
-
</span>
|
|
310
|
-
</div>
|
|
311
|
-
}
|
|
312
|
-
</div>
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
@if (!adaptive) {
|
|
316
|
-
<div class="k-actions k-actions-stretched k-actions-horizontal k-column-menu-footer">
|
|
317
|
-
<button kendoButton
|
|
318
|
-
[svgIcon]="clearIcon"
|
|
319
|
-
(click)="clear()"
|
|
320
|
-
icon="x"
|
|
321
|
-
>
|
|
322
|
-
{{ctx?.localization.get('groupClearButton')}}
|
|
323
|
-
</button>
|
|
324
|
-
</div>
|
|
325
|
-
}
|
|
326
|
-
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: i1.ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
327
|
-
}
|
|
328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GroupToolbarToolComponent, decorators: [{
|
|
329
|
-
type: Component,
|
|
330
|
-
args: [{
|
|
331
|
-
selector: 'kendo-group-toolbar-tool',
|
|
332
|
-
template: `
|
|
333
|
-
@if (groupedColumns.length) {
|
|
334
|
-
<div class="k-group-menu-item-wrap">
|
|
335
|
-
@for (column of groupedColumns; track column; let i = $index) {
|
|
336
|
-
<div
|
|
337
|
-
#groupItem
|
|
338
|
-
role="button"
|
|
339
|
-
class="k-group-menu-item"
|
|
340
|
-
tabindex="0"
|
|
341
|
-
(keydown)="handleGroupedKeydown(column, i, $event)"
|
|
342
|
-
(focus)="onItemFocus(i, 0)"
|
|
343
|
-
>
|
|
344
|
-
@if (groupedColumns.length > 1) {
|
|
345
|
-
<span class="k-group-menu-item-actions">
|
|
346
|
-
<span
|
|
347
|
-
class="k-group-menu-item-action k-group-menu-item-up-action"
|
|
348
|
-
(click)="moveGroupUp(column, $event)"
|
|
349
|
-
[attr.aria-disabled]="i === 0"
|
|
350
|
-
[class.k-disabled]="i === 0"
|
|
351
|
-
>
|
|
352
|
-
<kendo-icon-wrapper
|
|
353
|
-
name="arrow-chevron-up"
|
|
354
|
-
[svgIcon]="upIcon"
|
|
355
|
-
[size]="iconSize"
|
|
356
|
-
></kendo-icon-wrapper>
|
|
357
|
-
</span>
|
|
358
|
-
<span
|
|
359
|
-
class="k-group-menu-item-action k-group-menu-item-down-action"
|
|
360
|
-
(click)="moveGroupDown(column, $event)"
|
|
361
|
-
[attr.aria-disabled]="i === groupedColumns.length - 1"
|
|
362
|
-
[class.k-disabled]="i === groupedColumns.length - 1"
|
|
363
|
-
>
|
|
364
|
-
<kendo-icon-wrapper
|
|
365
|
-
name="arrow-chevron-down"
|
|
366
|
-
[svgIcon]="downIcon"
|
|
367
|
-
[size]="iconSize"
|
|
368
|
-
></kendo-icon-wrapper>
|
|
369
|
-
</span>
|
|
370
|
-
</span>
|
|
371
|
-
}
|
|
372
|
-
<span class="k-group-item-text">{{column.title || getColumnComponent(column).field}}</span>
|
|
373
|
-
<span class="k-spacer"></span>
|
|
374
|
-
<span class="k-group-menu-item-actions">
|
|
375
|
-
<span class="k-group-menu-item-action k-group-menu-item-remove-action" (click)="removeGroup(column, $event)">
|
|
376
|
-
<kendo-icon-wrapper
|
|
377
|
-
name="x-circle"
|
|
378
|
-
[svgIcon]="removeIcon"
|
|
379
|
-
[size]="iconSize"
|
|
380
|
-
></kendo-icon-wrapper>
|
|
381
|
-
</span>
|
|
382
|
-
</span>
|
|
383
|
-
</div>
|
|
384
|
-
}
|
|
385
|
-
</div>
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
@if (ungroupedColumns.length) {
|
|
389
|
-
<div class="k-group-menu-item-wrap">
|
|
390
|
-
@for (column of ungroupedColumns; track column; let i = $index) {
|
|
391
|
-
<div
|
|
392
|
-
#groupItem
|
|
393
|
-
role="button"
|
|
394
|
-
class="k-group-menu-item"
|
|
395
|
-
tabindex="0"
|
|
396
|
-
(keydown)="handleUngroupedKeydown(column, i, $event)"
|
|
397
|
-
(focus)="onItemFocus(null, i)"
|
|
398
|
-
>
|
|
399
|
-
<span class="k-group-item-text">{{column.title || getColumnComponent(column).field}}</span>
|
|
400
|
-
<span class="k-spacer"></span>
|
|
401
|
-
<span class="k-group-menu-item-actions">
|
|
402
|
-
<span class="k-group-menu-item-action k-group-menu-item-add-action" (click)="addGroup(column, $event)">
|
|
403
|
-
<kendo-icon-wrapper
|
|
404
|
-
name="plus-circle"
|
|
405
|
-
[svgIcon]="addIcon"
|
|
406
|
-
[size]="iconSize"
|
|
407
|
-
></kendo-icon-wrapper>
|
|
408
|
-
</span>
|
|
409
|
-
</span>
|
|
410
|
-
</div>
|
|
411
|
-
}
|
|
412
|
-
</div>
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
@if (!adaptive) {
|
|
416
|
-
<div class="k-actions k-actions-stretched k-actions-horizontal k-column-menu-footer">
|
|
417
|
-
<button kendoButton
|
|
418
|
-
[svgIcon]="clearIcon"
|
|
419
|
-
(click)="clear()"
|
|
420
|
-
icon="x"
|
|
421
|
-
>
|
|
422
|
-
{{ctx?.localization.get('groupClearButton')}}
|
|
423
|
-
</button>
|
|
424
|
-
</div>
|
|
425
|
-
}
|
|
426
|
-
`,
|
|
427
|
-
standalone: true,
|
|
428
|
-
imports: [IconWrapperComponent, KENDO_BUTTON]
|
|
429
|
-
}]
|
|
430
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { hostClass: [{
|
|
431
|
-
type: HostBinding,
|
|
432
|
-
args: ['class.k-group-menu']
|
|
433
|
-
}], lgClass: [{
|
|
434
|
-
type: HostBinding,
|
|
435
|
-
args: ['class.k-group-menu-lg']
|
|
436
|
-
}], mdClass: [{
|
|
437
|
-
type: HostBinding,
|
|
438
|
-
args: ['class.k-group-menu-md']
|
|
439
|
-
}], onEscKeyDown: [{
|
|
440
|
-
type: HostListener,
|
|
441
|
-
args: ['keydown.escape', ['$event']]
|
|
442
|
-
}], groupItems: [{
|
|
443
|
-
type: ViewChildren,
|
|
444
|
-
args: ['groupItem', { read: ElementRef }]
|
|
445
|
-
}], adaptive: [{
|
|
446
|
-
type: Input
|
|
447
|
-
}], close: [{
|
|
448
|
-
type: Output
|
|
449
|
-
}], groupClear: [{
|
|
450
|
-
type: Output
|
|
451
|
-
}] } });
|