@progress/kendo-angular-grid 21.4.1 → 22.0.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/column-menu/column-menu-item-base.d.ts +1 -1
- package/columns/column-base.d.ts +1 -1
- package/common/toolbar-tool-base.directive.d.ts +1 -1
- package/editing/toolbar-editing-tool-base.directive.d.ts +1 -1
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/editing-directives/row-editing-directive-base.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-grid.mjs +666 -666
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/filtering/boolean-filter.component.d.ts +1 -1
- package/filtering/date-filter.component.d.ts +1 -1
- package/filtering/filter-host.directive.d.ts +1 -1
- package/filtering/filter-input-wrapper.component.d.ts +1 -1
- package/filtering/numeric-filter.component.d.ts +1 -1
- package/filtering/operators/filter-operator.base.d.ts +1 -1
- package/filtering/string-filter.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +28 -36
- package/schematics/ngAdd/index.js +7 -7
- package/selection/selection-default.d.ts +1 -1
- package/esm2022/adaptiveness/adaptive-mode.mjs +0 -5
- package/esm2022/adaptiveness/adaptive-renderer.component.mjs +0 -1270
- package/esm2022/aggregates/aggregate-types.mjs +0 -5
- package/esm2022/aggregates/selection-aggregate.service.mjs +0 -200
- package/esm2022/aggregates/status-bar-template.directive.mjs +0 -30
- package/esm2022/aggregates/status-bar.component.mjs +0 -70
- package/esm2022/column-menu/column-chooser-content.component.mjs +0 -318
- package/esm2022/column-menu/column-chooser.component.mjs +0 -230
- package/esm2022/column-menu/column-list-kb-nav.service.mjs +0 -40
- package/esm2022/column-menu/column-list.component.mjs +0 -478
- package/esm2022/column-menu/column-locked-change-event.mjs +0 -19
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +0 -89
- package/esm2022/column-menu/column-menu-autosize.component.mjs +0 -97
- package/esm2022/column-menu/column-menu-chooser.component.mjs +0 -151
- package/esm2022/column-menu/column-menu-container.component.mjs +0 -67
- package/esm2022/column-menu/column-menu-expandable-item.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-filter.component.mjs +0 -152
- package/esm2022/column-menu/column-menu-item-base.mjs +0 -44
- package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +0 -45
- package/esm2022/column-menu/column-menu-item.component.mjs +0 -514
- package/esm2022/column-menu/column-menu-item.directive.mjs +0 -164
- package/esm2022/column-menu/column-menu-lock.component.mjs +0 -118
- package/esm2022/column-menu/column-menu-position.component.mjs +0 -196
- package/esm2022/column-menu/column-menu-settings.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-sort.component.mjs +0 -119
- package/esm2022/column-menu/column-menu-stick.component.mjs +0 -120
- package/esm2022/column-menu/column-menu-template.directive.mjs +0 -47
- package/esm2022/column-menu/column-menu.component.mjs +0 -839
- package/esm2022/column-menu/column-menu.service.mjs +0 -71
- package/esm2022/column-menu/column-sticky-change-event.mjs +0 -19
- package/esm2022/column-menu/column-visibility-change-event.mjs +0 -19
- package/esm2022/column-menu/utils.mjs +0 -52
- package/esm2022/column-resizing/column-handle.directive.mjs +0 -499
- package/esm2022/column-resizing/column-resize.interface.mjs +0 -5
- package/esm2022/column-resizing/column-resizing.service.mjs +0 -214
- package/esm2022/column-resizing/table.directive.mjs +0 -141
- package/esm2022/columns/cell-rowspan.mjs +0 -5
- package/esm2022/columns/checkbox-column.component.mjs +0 -106
- package/esm2022/columns/column-base.mjs +0 -432
- package/esm2022/columns/column-common.mjs +0 -73
- package/esm2022/columns/column-group.component.mjs +0 -135
- package/esm2022/columns/column-list.mjs +0 -94
- package/esm2022/columns/column.component.mjs +0 -198
- package/esm2022/columns/columns-container.mjs +0 -101
- package/esm2022/columns/command-column.component.mjs +0 -80
- package/esm2022/columns/reorder-column.component.mjs +0 -114
- package/esm2022/columns/sort-settings.mjs +0 -18
- package/esm2022/columns/span-column.component.mjs +0 -195
- package/esm2022/common/adaptiveness.service.mjs +0 -72
- package/esm2022/common/cell-click-event-args.interface.mjs +0 -5
- package/esm2022/common/clipboard-types.mjs +0 -5
- package/esm2022/common/clipboard.directive.mjs +0 -197
- package/esm2022/common/clipboard.service.mjs +0 -221
- package/esm2022/common/column-info.service.mjs +0 -92
- package/esm2022/common/create-form-group.mjs +0 -5
- package/esm2022/common/data-layout-mode.mjs +0 -5
- package/esm2022/common/default-track-by.mjs +0 -13
- package/esm2022/common/dom-events.service.mjs +0 -27
- package/esm2022/common/error-messages.mjs +0 -64
- package/esm2022/common/event-emitter.mjs +0 -39
- package/esm2022/common/fetch-data-callback.mjs +0 -5
- package/esm2022/common/field-datatype.mjs +0 -5
- package/esm2022/common/filter-descriptor-differ.mjs +0 -69
- package/esm2022/common/filter-operator.interface.mjs +0 -5
- package/esm2022/common/grid-col-size.mjs +0 -5
- package/esm2022/common/id.service.mjs +0 -59
- package/esm2022/common/pager-settings.mjs +0 -20
- package/esm2022/common/preventable-event.mjs +0 -24
- package/esm2022/common/provider.service.mjs +0 -42
- package/esm2022/common/remove-confirmation.mjs +0 -5
- package/esm2022/common/resizable-settings.mjs +0 -9
- package/esm2022/common/single-popup.service.mjs +0 -158
- package/esm2022/common/size-options.mjs +0 -5
- package/esm2022/common/sort.service.mjs +0 -14
- package/esm2022/common/toolbar-tool-base.directive.mjs +0 -85
- package/esm2022/constants.mjs +0 -16
- package/esm2022/data/change-event-args.interface.mjs +0 -5
- package/esm2022/data/change-notification.service.mjs +0 -30
- package/esm2022/data/data-item.interface.mjs +0 -5
- package/esm2022/data/data-mapping.service.mjs +0 -136
- package/esm2022/data/data.collection.mjs +0 -87
- package/esm2022/data/data.iterators.mjs +0 -221
- package/esm2022/data/grid-item.interface.mjs +0 -5
- package/esm2022/data/group-footer-item.interface.mjs +0 -5
- package/esm2022/data/group-item.interface.mjs +0 -5
- package/esm2022/databinding.directive.mjs +0 -233
- package/esm2022/directives.mjs +0 -504
- package/esm2022/dragdrop/column-reorder-config.mjs +0 -5
- package/esm2022/dragdrop/column-reorder-event.mjs +0 -31
- package/esm2022/dragdrop/column-reorder.service.mjs +0 -20
- package/esm2022/dragdrop/common.mjs +0 -69
- package/esm2022/dragdrop/context-types.mjs +0 -5
- package/esm2022/dragdrop/drag-and-drop.service.mjs +0 -65
- package/esm2022/dragdrop/drag-hint.service.mjs +0 -137
- package/esm2022/dragdrop/draggable-column.directive.mjs +0 -137
- package/esm2022/dragdrop/drop-cue.service.mjs +0 -46
- package/esm2022/dragdrop/drop-target.directive.mjs +0 -71
- package/esm2022/editing/add-command-tool.directive.mjs +0 -59
- package/esm2022/editing/add-command.directive.mjs +0 -93
- package/esm2022/editing/add-event-args.interface.mjs +0 -5
- package/esm2022/editing/cancel-command-tool.directive.mjs +0 -64
- package/esm2022/editing/cancel-command.directive.mjs +0 -127
- package/esm2022/editing/cancel-event-args.interface.mjs +0 -5
- package/esm2022/editing/cell-close-event.mjs +0 -38
- package/esm2022/editing/edit-command-tool.directive.mjs +0 -60
- package/esm2022/editing/edit-command.directive.mjs +0 -124
- package/esm2022/editing/edit-event-args.interface.mjs +0 -5
- package/esm2022/editing/edit-row-options.interface.mjs +0 -5
- package/esm2022/editing/edit-template.directive.mjs +0 -43
- package/esm2022/editing/edit.service.mjs +0 -182
- package/esm2022/editing/form/dialog-form.component.mjs +0 -102
- package/esm2022/editing/form/form-formfield.component.mjs +0 -188
- package/esm2022/editing/form/form.component.mjs +0 -169
- package/esm2022/editing/form/index.mjs +0 -8
- package/esm2022/editing/form/models.mjs +0 -5
- package/esm2022/editing/local-data-changes.service.mjs +0 -18
- package/esm2022/editing/remove-command-tool.directive.mjs +0 -61
- package/esm2022/editing/remove-command.directive.mjs +0 -123
- package/esm2022/editing/remove-event-args.interface.mjs +0 -5
- package/esm2022/editing/save-command-tool.directive.mjs +0 -65
- package/esm2022/editing/save-command.directive.mjs +0 -126
- package/esm2022/editing/save-event-args.interface.mjs +0 -5
- package/esm2022/editing/toolbar-editing-tool-base.directive.mjs +0 -99
- package/esm2022/editing-directives/create-form-group-args.interface.mjs +0 -5
- package/esm2022/editing-directives/edit-service.interface.mjs +0 -5
- package/esm2022/editing-directives/editing-directive-base.mjs +0 -167
- package/esm2022/editing-directives/external-editing.directive.mjs +0 -151
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +0 -97
- package/esm2022/editing-directives/local-edit.service.mjs +0 -64
- package/esm2022/editing-directives/local-row-edit.service.mjs +0 -13
- package/esm2022/editing-directives/reactive-editing.directive.mjs +0 -60
- package/esm2022/editing-directives/row-editing-directive-base.mjs +0 -53
- package/esm2022/editing-directives/template-editing.directive.mjs +0 -72
- package/esm2022/editing-directives/utils.mjs +0 -18
- package/esm2022/excel/excel-command-tool.directive.mjs +0 -58
- package/esm2022/excel/excel-command.directive.mjs +0 -98
- package/esm2022/excel/excel-export-event.mjs +0 -18
- package/esm2022/excel/excel.component.mjs +0 -223
- package/esm2022/excel/excel.module.mjs +0 -45
- package/esm2022/excel/excel.service.mjs +0 -29
- package/esm2022/filtering/base-filter-cell.component.mjs +0 -174
- package/esm2022/filtering/boolean-filter.component.mjs +0 -83
- package/esm2022/filtering/cell/autocomplete-filter-cell.component.mjs +0 -114
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +0 -113
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +0 -141
- package/esm2022/filtering/cell/filter-cell-component.factory.mjs +0 -19
- package/esm2022/filtering/cell/filter-cell-host.directive.mjs +0 -33
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +0 -242
- package/esm2022/filtering/cell/filter-cell-template.directive.mjs +0 -46
- package/esm2022/filtering/cell/filter-cell-wrapper.component.mjs +0 -74
- package/esm2022/filtering/cell/filter-cell.component.mjs +0 -91
- package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +0 -155
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +0 -127
- package/esm2022/filtering/date-filter.component.mjs +0 -172
- package/esm2022/filtering/filter-component.interface.mjs +0 -5
- package/esm2022/filtering/filter-host.directive.mjs +0 -58
- package/esm2022/filtering/filter-input-wrapper.component.mjs +0 -119
- package/esm2022/filtering/filter-input.directive.mjs +0 -123
- package/esm2022/filtering/filter-row.component.mjs +0 -131
- package/esm2022/filtering/filter.service.mjs +0 -44
- package/esm2022/filtering/filterable.mjs +0 -16
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +0 -167
- package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +0 -179
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +0 -212
- package/esm2022/filtering/menu/filter-menu-component.factory.mjs +0 -19
- package/esm2022/filtering/menu/filter-menu-container.component.mjs +0 -418
- package/esm2022/filtering/menu/filter-menu-dropdownlist.directive.mjs +0 -44
- package/esm2022/filtering/menu/filter-menu-host.directive.mjs +0 -46
- package/esm2022/filtering/menu/filter-menu-input-wrapper.component.mjs +0 -158
- package/esm2022/filtering/menu/filter-menu-template.directive.mjs +0 -48
- package/esm2022/filtering/menu/filter-menu.component.mjs +0 -221
- package/esm2022/filtering/menu/filter-radio-button.directive.mjs +0 -34
- package/esm2022/filtering/menu/menu-tabbing.service.mjs +0 -22
- package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +0 -184
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +0 -230
- package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +0 -107
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +0 -198
- package/esm2022/filtering/multicheckbox-filter.component.mjs +0 -324
- package/esm2022/filtering/numeric-filter.component.mjs +0 -145
- package/esm2022/filtering/operators/after-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/after-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/eq-filter-operator.component.mjs +0 -111
- package/esm2022/filtering/operators/filter-operator.base.mjs +0 -101
- package/esm2022/filtering/operators/gt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/gte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/lt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/lte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/neq-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/string-filter.component.mjs +0 -90
- package/esm2022/grid.component.mjs +0 -4598
- package/esm2022/grid.module.mjs +0 -241
- package/esm2022/grouping/group-footer-template.directive.mjs +0 -44
- package/esm2022/grouping/group-header-column-template.directive.mjs +0 -45
- package/esm2022/grouping/group-header-template.directive.mjs +0 -46
- package/esm2022/grouping/group-header.component.mjs +0 -351
- package/esm2022/grouping/group-info.service.mjs +0 -43
- package/esm2022/grouping/group-key.interface.mjs +0 -5
- package/esm2022/grouping/group-panel.component.mjs +0 -487
- package/esm2022/grouping/group-rows-args.interface.mjs +0 -5
- package/esm2022/grouping/group-settings.mjs +0 -5
- package/esm2022/grouping/groups.service.mjs +0 -69
- package/esm2022/grouping/utils.mjs +0 -14
- package/esm2022/highlight/highlight-item.mjs +0 -5
- package/esm2022/highlight/highlight.directive.mjs +0 -132
- package/esm2022/index.mjs +0 -221
- package/esm2022/layout/browser-support.service.mjs +0 -94
- package/esm2022/layout/resizable.directive.mjs +0 -83
- package/esm2022/layout/resize.service.mjs +0 -29
- package/esm2022/layout/responsive.service.mjs +0 -34
- package/esm2022/layout/row-sync.mjs +0 -47
- package/esm2022/layout/sizing-options.service.mjs +0 -18
- package/esm2022/localization/custom-messages.component.mjs +0 -54
- package/esm2022/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/localization/messages.mjs +0 -895
- package/esm2022/navigation/default-focusable-element.mjs +0 -50
- package/esm2022/navigation/focus-group.mjs +0 -73
- package/esm2022/navigation/focus-root.mjs +0 -50
- package/esm2022/navigation/focusable-element.interface.mjs +0 -5
- package/esm2022/navigation/focusable.directive.mjs +0 -150
- package/esm2022/navigation/grid-focusable-element.mjs +0 -28
- package/esm2022/navigation/item-map.mjs +0 -59
- package/esm2022/navigation/logical-cell.directive.mjs +0 -224
- package/esm2022/navigation/logical-cell.interface.mjs +0 -5
- package/esm2022/navigation/logical-row.directive.mjs +0 -131
- package/esm2022/navigation/logical-row.interface.mjs +0 -5
- package/esm2022/navigation/navigable-settings.mjs +0 -5
- package/esm2022/navigation/navigation-cell.interface.mjs +0 -5
- package/esm2022/navigation/navigation-change.interface.mjs +0 -5
- package/esm2022/navigation/navigation-cursor.mjs +0 -224
- package/esm2022/navigation/navigation-metadata.mjs +0 -35
- package/esm2022/navigation/navigation-mode.mjs +0 -5
- package/esm2022/navigation/navigation-model.mjs +0 -138
- package/esm2022/navigation/navigation-row.interface.mjs +0 -5
- package/esm2022/navigation/navigation.service.mjs +0 -998
- package/esm2022/navigation/toolbar-tool-name.mjs +0 -18
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/pdf/export-element.mjs +0 -135
- package/esm2022/pdf/grid-query.mjs +0 -45
- package/esm2022/pdf/pdf-command-tool.directive.mjs +0 -60
- package/esm2022/pdf/pdf-command.directive.mjs +0 -98
- package/esm2022/pdf/pdf-export-event.mjs +0 -16
- package/esm2022/pdf/pdf-margin.component.mjs +0 -38
- package/esm2022/pdf/pdf-margin.interface.mjs +0 -5
- package/esm2022/pdf/pdf-template.directive.mjs +0 -43
- package/esm2022/pdf/pdf.component.mjs +0 -331
- package/esm2022/pdf/pdf.module.mjs +0 -47
- package/esm2022/pdf/pdf.service.mjs +0 -42
- package/esm2022/progress-kendo-angular-grid.mjs +0 -8
- package/esm2022/rendering/cell-loading.template.directive.mjs +0 -39
- package/esm2022/rendering/cell-template.directive.mjs +0 -44
- package/esm2022/rendering/cell.component.mjs +0 -717
- package/esm2022/rendering/common/cell-context.mjs +0 -13
- package/esm2022/rendering/common/col-group.component.mjs +0 -98
- package/esm2022/rendering/common/dom-queries.mjs +0 -162
- package/esm2022/rendering/common/field-accessor.pipe.mjs +0 -48
- package/esm2022/rendering/common/format.pipe.mjs +0 -37
- package/esm2022/rendering/common/loading.component.mjs +0 -60
- package/esm2022/rendering/common/row-args.mjs +0 -5
- package/esm2022/rendering/common/row-class.mjs +0 -5
- package/esm2022/rendering/common/spacer.component.mjs +0 -62
- package/esm2022/rendering/constants.mjs +0 -20
- package/esm2022/rendering/details/detail-collapse-event.mjs +0 -27
- package/esm2022/rendering/details/detail-expand-event.mjs +0 -27
- package/esm2022/rendering/details/detail-template.directive.mjs +0 -61
- package/esm2022/rendering/details/details.service.mjs +0 -56
- package/esm2022/rendering/details-expand.directive.mjs +0 -136
- package/esm2022/rendering/footer/footer-template.directive.mjs +0 -48
- package/esm2022/rendering/footer/footer.component.mjs +0 -266
- package/esm2022/rendering/grid-table.directive.mjs +0 -52
- package/esm2022/rendering/groups-expand.directive.mjs +0 -149
- package/esm2022/rendering/header/header-template.directive.mjs +0 -45
- package/esm2022/rendering/header/header.component.mjs +0 -1055
- package/esm2022/rendering/list.component.mjs +0 -1176
- package/esm2022/rendering/loading-template.directive.mjs +0 -38
- package/esm2022/rendering/no-records-template.directive.mjs +0 -38
- package/esm2022/rendering/rowspan.service.mjs +0 -24
- package/esm2022/rendering/table-body.component.mjs +0 -1250
- package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +0 -83
- package/esm2022/rendering/toolbar/toolbar-navigation.service.mjs +0 -58
- package/esm2022/rendering/toolbar/toolbar-position.mjs +0 -5
- package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +0 -55
- package/esm2022/rendering/toolbar/toolbar.component.mjs +0 -159
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +0 -272
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-request-response.service.mjs +0 -624
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-tool.directive.mjs +0 -273
- package/esm2022/rendering/toolbar/tools/ai-assistant/models.mjs +0 -43
- package/esm2022/rendering/toolbar/tools/ai-assistant/utils.mjs +0 -92
- package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +0 -238
- package/esm2022/rendering/toolbar/tools/filter-command-tool.directive.mjs +0 -219
- package/esm2022/rendering/toolbar/tools/filter-tool-wrapper.component.mjs +0 -151
- package/esm2022/rendering/toolbar/tools/filter-toolbar-tool.component.mjs +0 -223
- package/esm2022/rendering/toolbar/tools/group-command-tool.directive.mjs +0 -208
- package/esm2022/rendering/toolbar/tools/group-toolbar-tool.component.mjs +0 -451
- package/esm2022/rendering/toolbar/tools/select-all-command-tool.directive.mjs +0 -93
- package/esm2022/rendering/toolbar/tools/sort-command-tool.directive.mjs +0 -222
- package/esm2022/rendering/toolbar/tools/sort-toolbar-tool.component.mjs +0 -245
- package/esm2022/row-reordering/drag-handle-template.directive.mjs +0 -44
- package/esm2022/row-reordering/drag-hint-template.directive.mjs +0 -42
- package/esm2022/row-reordering/row-reorder.service.mjs +0 -280
- package/esm2022/row-reordering/types.mjs +0 -5
- package/esm2022/row-reordering/utils.mjs +0 -88
- package/esm2022/scrolling/content-scroll-event.mjs +0 -5
- package/esm2022/scrolling/row-height.service.mjs +0 -55
- package/esm2022/scrolling/scroll-bottom-event.mjs +0 -5
- package/esm2022/scrolling/scroll-request.service.mjs +0 -24
- package/esm2022/scrolling/scroll-sync.service.mjs +0 -80
- package/esm2022/scrolling/scroller.service.mjs +0 -254
- package/esm2022/scrolling/scrollmode.mjs +0 -5
- package/esm2022/scrolling/suspend.service.mjs +0 -17
- package/esm2022/selection/cell-selection.service.mjs +0 -349
- package/esm2022/selection/marquee.directive.mjs +0 -188
- package/esm2022/selection/pair-set.mjs +0 -158
- package/esm2022/selection/selectall-checkbox.directive.mjs +0 -143
- package/esm2022/selection/selection-checkbox.directive.mjs +0 -132
- package/esm2022/selection/selection-default.mjs +0 -208
- package/esm2022/selection/selection.directive.mjs +0 -53
- package/esm2022/selection/selection.service.mjs +0 -466
- package/esm2022/selection/types.mjs +0 -5
- package/esm2022/state-management/grid-state.models.mjs +0 -26
- package/esm2022/state-management/redo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-redo.directive.mjs +0 -249
- package/esm2022/state-management/undo-redo.service.mjs +0 -21
- package/esm2022/state-management/undo-redo.stack.mjs +0 -238
- package/esm2022/utils.mjs +0 -216
|
@@ -1,44 +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 { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
6
|
-
import { Directive, Input } from '@angular/core';
|
|
7
|
-
import { Keys } from '@progress/kendo-angular-common';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "@progress/kendo-angular-dropdowns";
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export class FilterMenuDropDownListDirective {
|
|
14
|
-
host;
|
|
15
|
-
filterMenuDropDownLabel;
|
|
16
|
-
constructor(host) {
|
|
17
|
-
this.host = host;
|
|
18
|
-
}
|
|
19
|
-
ngAfterViewInit() {
|
|
20
|
-
const wrapperElement = this.host.wrapper.nativeElement;
|
|
21
|
-
wrapperElement.setAttribute('aria-label', this.filterMenuDropDownLabel);
|
|
22
|
-
wrapperElement.addEventListener('keydown', this.keydownHandler, true);
|
|
23
|
-
}
|
|
24
|
-
ngOnDestroy() {
|
|
25
|
-
this.host.wrapper.nativeElement.removeEventListener('keydown', this.keydownHandler);
|
|
26
|
-
}
|
|
27
|
-
keydownHandler = (e) => {
|
|
28
|
-
if (e.code === Keys.Escape && this.host.isOpen) {
|
|
29
|
-
e.stopPropagation();
|
|
30
|
-
this.host.toggle(false);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterMenuDropDownListDirective, deps: [{ token: i1.DropDownListComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
34
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: FilterMenuDropDownListDirective, isStandalone: true, selector: "[kendoFilterMenuDropDown]", inputs: { filterMenuDropDownLabel: "filterMenuDropDownLabel" }, ngImport: i0 });
|
|
35
|
-
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterMenuDropDownListDirective, decorators: [{
|
|
37
|
-
type: Directive,
|
|
38
|
-
args: [{
|
|
39
|
-
selector: '[kendoFilterMenuDropDown]',
|
|
40
|
-
standalone: true
|
|
41
|
-
}]
|
|
42
|
-
}], ctorParameters: () => [{ type: i1.DropDownListComponent }], propDecorators: { filterMenuDropDownLabel: [{
|
|
43
|
-
type: Input
|
|
44
|
-
}] } });
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { MenuTabbingService } from './menu-tabbing.service';
|
|
6
|
-
import { Directive, ViewContainerRef, Input } from "@angular/core";
|
|
7
|
-
import { FilterHostDirective } from "../filter-host.directive";
|
|
8
|
-
import { isNullOrEmptyString, isPresent } from "../../utils";
|
|
9
|
-
import { filterMenuComponentFactory } from "./filter-menu-component.factory";
|
|
10
|
-
import { StringFilterMenuComponent } from "./string-filter-menu.component";
|
|
11
|
-
import { FilterService } from "../filter.service";
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export class FilterMenuHostDirective extends FilterHostDirective {
|
|
17
|
-
filterService;
|
|
18
|
-
menuTabbingService;
|
|
19
|
-
constructor(host) {
|
|
20
|
-
super(host);
|
|
21
|
-
}
|
|
22
|
-
componentType() {
|
|
23
|
-
if (isPresent(this.column) && !isNullOrEmptyString(this.column.filter)) {
|
|
24
|
-
return filterMenuComponentFactory(this.column.filter);
|
|
25
|
-
}
|
|
26
|
-
return StringFilterMenuComponent;
|
|
27
|
-
}
|
|
28
|
-
initComponent(ctx) {
|
|
29
|
-
super.initComponent(ctx);
|
|
30
|
-
this.component.instance.filterService = this.filterService;
|
|
31
|
-
this.component.instance.menuTabbingService = this.menuTabbingService;
|
|
32
|
-
}
|
|
33
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterMenuHostDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
34
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: FilterMenuHostDirective, isStandalone: true, selector: "[kendoFilterMenuHost]", inputs: { filterService: "filterService", menuTabbingService: "menuTabbingService" }, usesInheritance: true, ngImport: i0 });
|
|
35
|
-
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterMenuHostDirective, decorators: [{
|
|
37
|
-
type: Directive,
|
|
38
|
-
args: [{
|
|
39
|
-
selector: '[kendoFilterMenuHost]',
|
|
40
|
-
standalone: true
|
|
41
|
-
}]
|
|
42
|
-
}], ctorParameters: () => [{ type: i0.ViewContainerRef }], propDecorators: { filterService: [{
|
|
43
|
-
type: Input
|
|
44
|
-
}], menuTabbingService: [{
|
|
45
|
-
type: Input
|
|
46
|
-
}] } });
|
|
@@ -1,158 +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, Input, ViewChild } from '@angular/core';
|
|
6
|
-
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
7
|
-
import { MenuTabbingService } from './menu-tabbing.service';
|
|
8
|
-
import { FilterService } from '../filter.service';
|
|
9
|
-
import { FilterInputWrapperComponent } from "../filter-input-wrapper.component";
|
|
10
|
-
import { ContextService } from '../../common/provider.service';
|
|
11
|
-
import { FilterMenuDropDownListDirective } from './filter-menu-dropdownlist.directive';
|
|
12
|
-
import { AdaptiveGridService } from '../../common/adaptiveness.service';
|
|
13
|
-
import { Subscription } from 'rxjs';
|
|
14
|
-
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
import * as i1 from "../../common/provider.service";
|
|
17
|
-
import * as i2 from "../../common/adaptiveness.service";
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
export class FilterMenuInputWrapperComponent extends FilterInputWrapperComponent {
|
|
22
|
-
ctx;
|
|
23
|
-
adaptiveGridService;
|
|
24
|
-
filterService;
|
|
25
|
-
isFirstDropDown;
|
|
26
|
-
menuTabbingService;
|
|
27
|
-
firstOperatorDropDown;
|
|
28
|
-
_currentFilter;
|
|
29
|
-
subs = new Subscription();
|
|
30
|
-
/**
|
|
31
|
-
* @hidden
|
|
32
|
-
*/
|
|
33
|
-
get hostClasses() {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
constructor(ctx, adaptiveGridService) {
|
|
37
|
-
super(null);
|
|
38
|
-
this.ctx = ctx;
|
|
39
|
-
this.adaptiveGridService = adaptiveGridService;
|
|
40
|
-
}
|
|
41
|
-
ngAfterViewInit() {
|
|
42
|
-
const shouldFocusFirstFocusable = this.isFirstDropDown && this.filterService?.menuTabbingService;
|
|
43
|
-
const isTabbedInterface = this.menuTabbingService?.isTabbedInterface;
|
|
44
|
-
if (shouldFocusFirstFocusable && !isTabbedInterface) {
|
|
45
|
-
this.filterService.menuTabbingService.firstFocusable = this.firstOperatorDropDown;
|
|
46
|
-
if (this.ctx.grid?.isActionSheetExpanded) {
|
|
47
|
-
this.subs.add(this.adaptiveGridService.animationEnd.subscribe(() => {
|
|
48
|
-
this.firstOperatorDropDown.wrapper.nativeElement.focus({ preventScroll: true });
|
|
49
|
-
}));
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
this.firstOperatorDropDown.wrapper.nativeElement.focus({ preventScroll: true });
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
ngOnDestroy() {
|
|
57
|
-
this.subs?.unsubscribe();
|
|
58
|
-
}
|
|
59
|
-
operatorChange(dataItem) {
|
|
60
|
-
this.currentOperator = dataItem;
|
|
61
|
-
}
|
|
62
|
-
filterChange(filter) {
|
|
63
|
-
this.applyFilter(filter);
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* The current filter for the associated column field.
|
|
67
|
-
* @readonly
|
|
68
|
-
* @type {FilterDescriptor}
|
|
69
|
-
*/
|
|
70
|
-
get currentFilter() {
|
|
71
|
-
return this._currentFilter;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* The current filter for the associated column field.
|
|
75
|
-
* @readonly
|
|
76
|
-
* @type {FilterDescriptor}
|
|
77
|
-
*/
|
|
78
|
-
set currentFilter(value) {
|
|
79
|
-
this._currentFilter = value;
|
|
80
|
-
}
|
|
81
|
-
updateFilter(filter) {
|
|
82
|
-
Object.assign(this.currentFilter, filter);
|
|
83
|
-
return this.filter;
|
|
84
|
-
}
|
|
85
|
-
onChange(value) {
|
|
86
|
-
this.filterChange(this.updateFilter({
|
|
87
|
-
field: this.column.field,
|
|
88
|
-
operator: this.currentOperator,
|
|
89
|
-
value: value
|
|
90
|
-
}));
|
|
91
|
-
}
|
|
92
|
-
onShiftTab(e) {
|
|
93
|
-
e.stopImmediatePropagation();
|
|
94
|
-
if (!this.menuTabbingService?.isColumnMenu && this.isFirstDropDown && this.filterService.menuTabbingService.lastFocusable) {
|
|
95
|
-
e.preventDefault();
|
|
96
|
-
this.filterService.menuTabbingService.lastFocusable.focus();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
get filterMenuDropDownLabel() {
|
|
100
|
-
const localizationMsg = this.ctx.localization.get('filterMenuOperatorsDropDownLabel') || '';
|
|
101
|
-
const columnName = this.column ? this.column.title || this.column.field : '';
|
|
102
|
-
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
103
|
-
}
|
|
104
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterMenuInputWrapperComponent, deps: [{ token: i1.ContextService }, { token: i2.AdaptiveGridService }], target: i0.ɵɵFactoryTarget.Component });
|
|
105
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FilterMenuInputWrapperComponent, isStandalone: true, selector: "kendo-grid-filter-menu-input-wrapper", inputs: { filterService: "filterService", isFirstDropDown: "isFirstDropDown", menuTabbingService: "menuTabbingService", currentFilter: "currentFilter" }, viewQueries: [{ propertyName: "firstOperatorDropDown", first: true, predicate: DropDownListComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
106
|
-
<kendo-dropdownlist
|
|
107
|
-
kendoFilterMenuDropDown
|
|
108
|
-
[adaptiveTitle]="ctx.localization.get('adaptiveFilterOperatorsTitle')"
|
|
109
|
-
[adaptiveMode]="ctx.grid?.adaptiveMode"
|
|
110
|
-
[size]="ctx.grid?.isActionSheetExpanded ? 'large' : null"
|
|
111
|
-
[filterMenuDropDownLabel]="filterMenuDropDownLabel"
|
|
112
|
-
[data]="operators"
|
|
113
|
-
(valueChange)="operatorChange($event)"
|
|
114
|
-
[value]="currentOperator"
|
|
115
|
-
[valuePrimitive]="true"
|
|
116
|
-
textField="text"
|
|
117
|
-
valueField="value"
|
|
118
|
-
(keydown.shift.tab)="onShiftTab($event)">
|
|
119
|
-
</kendo-dropdownlist>
|
|
120
|
-
<ng-content></ng-content>
|
|
121
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: FilterMenuDropDownListDirective, selector: "[kendoFilterMenuDropDown]", inputs: ["filterMenuDropDownLabel"] }] });
|
|
122
|
-
}
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterMenuInputWrapperComponent, decorators: [{
|
|
124
|
-
type: Component,
|
|
125
|
-
args: [{
|
|
126
|
-
selector: 'kendo-grid-filter-menu-input-wrapper',
|
|
127
|
-
template: `
|
|
128
|
-
<kendo-dropdownlist
|
|
129
|
-
kendoFilterMenuDropDown
|
|
130
|
-
[adaptiveTitle]="ctx.localization.get('adaptiveFilterOperatorsTitle')"
|
|
131
|
-
[adaptiveMode]="ctx.grid?.adaptiveMode"
|
|
132
|
-
[size]="ctx.grid?.isActionSheetExpanded ? 'large' : null"
|
|
133
|
-
[filterMenuDropDownLabel]="filterMenuDropDownLabel"
|
|
134
|
-
[data]="operators"
|
|
135
|
-
(valueChange)="operatorChange($event)"
|
|
136
|
-
[value]="currentOperator"
|
|
137
|
-
[valuePrimitive]="true"
|
|
138
|
-
textField="text"
|
|
139
|
-
valueField="value"
|
|
140
|
-
(keydown.shift.tab)="onShiftTab($event)">
|
|
141
|
-
</kendo-dropdownlist>
|
|
142
|
-
<ng-content></ng-content>
|
|
143
|
-
`,
|
|
144
|
-
standalone: true,
|
|
145
|
-
imports: [DropDownListComponent, FilterMenuDropDownListDirective]
|
|
146
|
-
}]
|
|
147
|
-
}], ctorParameters: () => [{ type: i1.ContextService }, { type: i2.AdaptiveGridService }], propDecorators: { filterService: [{
|
|
148
|
-
type: Input
|
|
149
|
-
}], isFirstDropDown: [{
|
|
150
|
-
type: Input
|
|
151
|
-
}], menuTabbingService: [{
|
|
152
|
-
type: Input
|
|
153
|
-
}], firstOperatorDropDown: [{
|
|
154
|
-
type: ViewChild,
|
|
155
|
-
args: [DropDownListComponent, { static: false }]
|
|
156
|
-
}], currentFilter: [{
|
|
157
|
-
type: Input
|
|
158
|
-
}] } });
|
|
@@ -1,48 +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, TemplateRef, Optional } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the filter-menu template.
|
|
9
|
-
* Use this directive to customize the content of the filter menu.
|
|
10
|
-
* To define the filter menu template, nest an `<ng-template>` tag with the
|
|
11
|
-
* `kendoGridFilterMenuTemplate` directive inside a `<kendo-grid-column>` tag.
|
|
12
|
-
* [See example]({% slug filter_menu %}#toc-custom-filters).
|
|
13
|
-
*
|
|
14
|
-
* The template context is set to the current data item and provides these additional fields:
|
|
15
|
-
* - `column`—Defines an instance of the `ColumnComponent` option. Use it as an alias for a template variable by using the `let-column="column"` syntax.
|
|
16
|
-
* - `filter`—The provided filter descriptors. Use it as an alias for a template variable by using the `let-filter="filter"` syntax.
|
|
17
|
-
* - `filterService`—Represents the `FilterService`. Use it as an alias for a template variable by using the `let-filterService="filterService"` syntax.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```html
|
|
21
|
-
* <kendo-grid-column field="CategoryID" title="Category">
|
|
22
|
-
* <ng-template kendoGridFilterMenuTemplate
|
|
23
|
-
* let-column="column"
|
|
24
|
-
* let-filter="filter"
|
|
25
|
-
* let-filterService="filterService"
|
|
26
|
-
* >
|
|
27
|
-
* ...
|
|
28
|
-
* </ng-template>
|
|
29
|
-
* </kendo-grid-column>
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export class FilterMenuTemplateDirective {
|
|
33
|
-
templateRef;
|
|
34
|
-
constructor(templateRef) {
|
|
35
|
-
this.templateRef = templateRef;
|
|
36
|
-
}
|
|
37
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterMenuTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
38
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: FilterMenuTemplateDirective, isStandalone: true, selector: "[kendoGridFilterMenuTemplate]", ngImport: i0 });
|
|
39
|
-
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterMenuTemplateDirective, decorators: [{
|
|
41
|
-
type: Directive,
|
|
42
|
-
args: [{
|
|
43
|
-
selector: '[kendoGridFilterMenuTemplate]',
|
|
44
|
-
standalone: true
|
|
45
|
-
}]
|
|
46
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
47
|
-
type: Optional
|
|
48
|
-
}] }] });
|
|
@@ -1,221 +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 { NavigationService } from './../../navigation/navigation.service';
|
|
6
|
-
import { ChangeDetectorRef, Component, ElementRef, Input, Optional, Renderer2, TemplateRef, ViewChild } from '@angular/core';
|
|
7
|
-
import { FilterService } from "../filter.service";
|
|
8
|
-
import { ColumnComponent } from '../../columns/column.component';
|
|
9
|
-
import { SinglePopupService } from '../../common/single-popup.service';
|
|
10
|
-
import { filtersByField } from '../base-filter-cell.component';
|
|
11
|
-
import { filterIcon } from '@progress/kendo-svg-icons';
|
|
12
|
-
import { ContextService } from '../../common/provider.service';
|
|
13
|
-
import { IdService } from '../../common/id.service';
|
|
14
|
-
import { FilterMenuContainerComponent } from './filter-menu-container.component';
|
|
15
|
-
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
16
|
-
import { AdaptiveGridService } from '../../common/adaptiveness.service';
|
|
17
|
-
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
18
|
-
import * as i0 from "@angular/core";
|
|
19
|
-
import * as i1 from "../filter.service";
|
|
20
|
-
import * as i2 from "../../common/single-popup.service";
|
|
21
|
-
import * as i3 from "../../common/provider.service";
|
|
22
|
-
import * as i4 from "./../../navigation/navigation.service";
|
|
23
|
-
import * as i5 from "../../common/adaptiveness.service";
|
|
24
|
-
import * as i6 from "../../common/id.service";
|
|
25
|
-
let id = 0;
|
|
26
|
-
const getId = (gridId) => `${gridId}-filter-menu-${id++}`;
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
export class FilterMenuComponent {
|
|
31
|
-
filterService;
|
|
32
|
-
popupService;
|
|
33
|
-
ctx;
|
|
34
|
-
navigationService;
|
|
35
|
-
renderer;
|
|
36
|
-
cdr;
|
|
37
|
-
adaptiveGridService;
|
|
38
|
-
idService;
|
|
39
|
-
filterIcon = filterIcon;
|
|
40
|
-
/**
|
|
41
|
-
* The column with which the filter is associated.
|
|
42
|
-
* @type {ColumnComponent}
|
|
43
|
-
*/
|
|
44
|
-
column;
|
|
45
|
-
/**
|
|
46
|
-
* The current root filter.
|
|
47
|
-
* @type {CompositeFilterDescriptor}
|
|
48
|
-
*/
|
|
49
|
-
filter;
|
|
50
|
-
anchor;
|
|
51
|
-
template;
|
|
52
|
-
tabIndex = '-1';
|
|
53
|
-
popupRef;
|
|
54
|
-
popupSubs;
|
|
55
|
-
constructor(filterService, popupService, ctx, navigationService, renderer, cdr, adaptiveGridService, idService) {
|
|
56
|
-
this.filterService = filterService;
|
|
57
|
-
this.popupService = popupService;
|
|
58
|
-
this.ctx = ctx;
|
|
59
|
-
this.navigationService = navigationService;
|
|
60
|
-
this.renderer = renderer;
|
|
61
|
-
this.cdr = cdr;
|
|
62
|
-
this.adaptiveGridService = adaptiveGridService;
|
|
63
|
-
this.idService = idService;
|
|
64
|
-
}
|
|
65
|
-
ngOnDestroy() {
|
|
66
|
-
this.cleanUp();
|
|
67
|
-
}
|
|
68
|
-
get hasFilters() {
|
|
69
|
-
return filtersByField(this.filter, (this.column || {}).field).length > 0;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* @hidden
|
|
73
|
-
*/
|
|
74
|
-
get filterLabel() {
|
|
75
|
-
const localizationMsg = this.ctx.localization.get('filterMenuTitle') || '';
|
|
76
|
-
const columnName = this.column.title || this.column.field;
|
|
77
|
-
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* @hidden
|
|
81
|
-
*/
|
|
82
|
-
get isNavigable() {
|
|
83
|
-
return this.navigationService.tableEnabled;
|
|
84
|
-
}
|
|
85
|
-
toggle(anchor, template) {
|
|
86
|
-
if (this.ctx.grid?.adaptiveMode === 'auto' && this.adaptiveGridService.windowSize !== 'large') {
|
|
87
|
-
if (!this.ctx.grid.isActionSheetExpanded) {
|
|
88
|
-
this.adaptiveGridService.viewType = 'filterMenu';
|
|
89
|
-
this.adaptiveGridService.column = this.column;
|
|
90
|
-
this.ctx.grid.adaptiveRenderer.actionSheet.toggle(true);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
this.popupRef = this.popupService.open(anchor, template, this.popupRef);
|
|
95
|
-
// Needed as changes to 'popupRef' are not reflected
|
|
96
|
-
// automatically when the Popup is closed by clicking outside the anchor
|
|
97
|
-
const ariaRoot = this.isNavigable ? anchor.closest('.k-table-th') : anchor;
|
|
98
|
-
if (this.popupRef) {
|
|
99
|
-
this.popupSubs?.unsubscribe();
|
|
100
|
-
this.popupSubs = this.popupRef.popup.instance.anchorViewportLeave.subscribe(() => {
|
|
101
|
-
this.close();
|
|
102
|
-
this.updateAria(ariaRoot);
|
|
103
|
-
});
|
|
104
|
-
this.popupSubs.add(() => this.popupRef.popup.instance.close.subscribe(() => {
|
|
105
|
-
this.popupRef = null;
|
|
106
|
-
this.updateAria(ariaRoot);
|
|
107
|
-
}));
|
|
108
|
-
const popupAriaElement = this.popupRef.popupElement.querySelector('.k-grid-filter-popup');
|
|
109
|
-
if (popupAriaElement) {
|
|
110
|
-
const popupId = getId(this.idService?.gridId());
|
|
111
|
-
this.renderer.setAttribute(popupAriaElement, 'id', popupId);
|
|
112
|
-
this.renderer.setAttribute(popupAriaElement, 'role', 'dialog');
|
|
113
|
-
this.renderer.setAttribute(popupAriaElement, 'aria-label', this.filterLabel);
|
|
114
|
-
ariaRoot && this.renderer.setAttribute(ariaRoot, 'aria-controls', popupId);
|
|
115
|
-
ariaRoot && this.renderer.setAttribute(ariaRoot, 'aria-expanded', 'true');
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
this.focusRoot();
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return false;
|
|
123
|
-
}
|
|
124
|
-
close() {
|
|
125
|
-
this.cleanUp();
|
|
126
|
-
this.focusRoot();
|
|
127
|
-
}
|
|
128
|
-
updateAria(ariaRoot) {
|
|
129
|
-
ariaRoot && this.renderer.removeAttribute(ariaRoot, 'aria-controls');
|
|
130
|
-
ariaRoot && this.renderer.setAttribute(ariaRoot, 'aria-expanded', 'false');
|
|
131
|
-
}
|
|
132
|
-
cleanUp() {
|
|
133
|
-
this.popupService.destroy();
|
|
134
|
-
this.popupRef = null;
|
|
135
|
-
this.popupSubs?.unsubscribe();
|
|
136
|
-
this.popupSubs = null;
|
|
137
|
-
this.cdr.markForCheck();
|
|
138
|
-
}
|
|
139
|
-
focusRoot() {
|
|
140
|
-
if (this.isNavigable) {
|
|
141
|
-
this.navigationService.preventScroll = true;
|
|
142
|
-
this.navigationService.focusCell(0, this.column.leafIndex);
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
this.anchor.nativeElement.focus({ preventScroll: true });
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterMenuComponent, deps: [{ token: i1.FilterService }, { token: i2.SinglePopupService }, { token: i3.ContextService }, { token: i4.NavigationService }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i5.AdaptiveGridService }, { token: i6.IdService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
149
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FilterMenuComponent, isStandalone: true, selector: "kendo-grid-filter-menu", inputs: { column: "column", filter: "filter", tabIndex: "tabIndex" }, viewQueries: [{ propertyName: "anchor", first: true, predicate: ["anchor"], descendants: true, static: true }, { propertyName: "template", first: true, predicate: ["template"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: `
|
|
150
|
-
<a #anchor
|
|
151
|
-
class="k-grid-filter-menu k-grid-header-menu"
|
|
152
|
-
[class.k-active]="hasFilters"
|
|
153
|
-
[tabindex]="tabIndex"
|
|
154
|
-
(click)="toggle(anchor, template)"
|
|
155
|
-
(keydown.enter)="$event.stopImmediatePropagation()"
|
|
156
|
-
href="#"
|
|
157
|
-
[attr.title]="filterLabel"
|
|
158
|
-
[attr.aria-haspopup]="isNavigable ? undefined : 'dialog'"
|
|
159
|
-
[attr.aria-expanded]="isNavigable ? undefined : false">
|
|
160
|
-
<kendo-icon-wrapper
|
|
161
|
-
name="filter"
|
|
162
|
-
[svgIcon]="filterIcon"></kendo-icon-wrapper>
|
|
163
|
-
</a>
|
|
164
|
-
<ng-template #template>
|
|
165
|
-
<kendo-grid-filter-menu-container
|
|
166
|
-
[column]="column"
|
|
167
|
-
[filter]="filter"
|
|
168
|
-
(close)="close()"
|
|
169
|
-
(keydown.escape)="close()"
|
|
170
|
-
(keydown.enter)="$event.stopImmediatePropagation()">
|
|
171
|
-
</kendo-grid-filter-menu-container>
|
|
172
|
-
</ng-template>
|
|
173
|
-
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: FilterMenuContainerComponent, selector: "kendo-grid-filter-menu-container", inputs: ["column", "isLast", "isExpanded", "menuTabbingService", "filter", "actionsClass"], outputs: ["close"] }] });
|
|
174
|
-
}
|
|
175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterMenuComponent, decorators: [{
|
|
176
|
-
type: Component,
|
|
177
|
-
args: [{
|
|
178
|
-
selector: 'kendo-grid-filter-menu',
|
|
179
|
-
template: `
|
|
180
|
-
<a #anchor
|
|
181
|
-
class="k-grid-filter-menu k-grid-header-menu"
|
|
182
|
-
[class.k-active]="hasFilters"
|
|
183
|
-
[tabindex]="tabIndex"
|
|
184
|
-
(click)="toggle(anchor, template)"
|
|
185
|
-
(keydown.enter)="$event.stopImmediatePropagation()"
|
|
186
|
-
href="#"
|
|
187
|
-
[attr.title]="filterLabel"
|
|
188
|
-
[attr.aria-haspopup]="isNavigable ? undefined : 'dialog'"
|
|
189
|
-
[attr.aria-expanded]="isNavigable ? undefined : false">
|
|
190
|
-
<kendo-icon-wrapper
|
|
191
|
-
name="filter"
|
|
192
|
-
[svgIcon]="filterIcon"></kendo-icon-wrapper>
|
|
193
|
-
</a>
|
|
194
|
-
<ng-template #template>
|
|
195
|
-
<kendo-grid-filter-menu-container
|
|
196
|
-
[column]="column"
|
|
197
|
-
[filter]="filter"
|
|
198
|
-
(close)="close()"
|
|
199
|
-
(keydown.escape)="close()"
|
|
200
|
-
(keydown.enter)="$event.stopImmediatePropagation()">
|
|
201
|
-
</kendo-grid-filter-menu-container>
|
|
202
|
-
</ng-template>
|
|
203
|
-
`,
|
|
204
|
-
standalone: true,
|
|
205
|
-
imports: [IconWrapperComponent, FilterMenuContainerComponent],
|
|
206
|
-
}]
|
|
207
|
-
}], ctorParameters: () => [{ type: i1.FilterService }, { type: i2.SinglePopupService }, { type: i3.ContextService }, { type: i4.NavigationService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i5.AdaptiveGridService }, { type: i6.IdService, decorators: [{
|
|
208
|
-
type: Optional
|
|
209
|
-
}] }], propDecorators: { column: [{
|
|
210
|
-
type: Input
|
|
211
|
-
}], filter: [{
|
|
212
|
-
type: Input
|
|
213
|
-
}], anchor: [{
|
|
214
|
-
type: ViewChild,
|
|
215
|
-
args: ['anchor', { static: true }]
|
|
216
|
-
}], template: [{
|
|
217
|
-
type: ViewChild,
|
|
218
|
-
args: ['template', { static: true, read: TemplateRef }]
|
|
219
|
-
}], tabIndex: [{
|
|
220
|
-
type: Input
|
|
221
|
-
}] } });
|
|
@@ -1,34 +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, Input, Renderer2 } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export class BooleanFilterRadioButtonDirective {
|
|
11
|
-
hostElement;
|
|
12
|
-
renderer;
|
|
13
|
-
columnLabel;
|
|
14
|
-
radioButtonEl;
|
|
15
|
-
constructor(hostElement, renderer) {
|
|
16
|
-
this.hostElement = hostElement;
|
|
17
|
-
this.renderer = renderer;
|
|
18
|
-
}
|
|
19
|
-
ngAfterViewInit() {
|
|
20
|
-
this.radioButtonEl = this.hostElement.nativeElement;
|
|
21
|
-
this.renderer.setAttribute(this.hostElement.nativeElement, 'aria-label', this.columnLabel);
|
|
22
|
-
}
|
|
23
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BooleanFilterRadioButtonDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: BooleanFilterRadioButtonDirective, isStandalone: true, selector: "[kendoFilterMenuRadioButton]", inputs: { columnLabel: "columnLabel" }, ngImport: i0 });
|
|
25
|
-
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BooleanFilterRadioButtonDirective, decorators: [{
|
|
27
|
-
type: Directive,
|
|
28
|
-
args: [{
|
|
29
|
-
selector: '[kendoFilterMenuRadioButton]',
|
|
30
|
-
standalone: true
|
|
31
|
-
}]
|
|
32
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { columnLabel: [{
|
|
33
|
-
type: Input
|
|
34
|
-
}] } });
|
|
@@ -1,22 +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 * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export class MenuTabbingService {
|
|
11
|
-
firstFocusable;
|
|
12
|
-
lastFocusable;
|
|
13
|
-
isColumnMenu = false;
|
|
14
|
-
isPopupOpen = false;
|
|
15
|
-
lastMenuItem;
|
|
16
|
-
isTabbedInterface = false;
|
|
17
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MenuTabbingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MenuTabbingService });
|
|
19
|
-
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MenuTabbingService, decorators: [{
|
|
21
|
-
type: Injectable
|
|
22
|
-
}] });
|