@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,219 +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 { filterIcon } 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 { ColumnInfoService } from '../../../common/column-info.service';
|
|
13
|
-
import { take } from 'rxjs/operators';
|
|
14
|
-
import { FilterService } from '../../../filtering/filter.service';
|
|
15
|
-
import { FilterToolWrapperComponent } from './filter-tool-wrapper.component';
|
|
16
|
-
import { AdaptiveGridService } from '../../../common/adaptiveness.service';
|
|
17
|
-
import * as i0 from "@angular/core";
|
|
18
|
-
import * as i1 from "@progress/kendo-angular-toolbar";
|
|
19
|
-
import * as i2 from "@progress/kendo-angular-popup";
|
|
20
|
-
import * as i3 from "../../../common/provider.service";
|
|
21
|
-
import * as i4 from "../../../filtering/filter.service";
|
|
22
|
-
import * as i5 from "../../../common/column-info.service";
|
|
23
|
-
import * as i6 from "../../../common/adaptiveness.service";
|
|
24
|
-
let incrementingId = 0;
|
|
25
|
-
/**
|
|
26
|
-
* Represents the toolbar tool for filtering columns of the Grid.
|
|
27
|
-
* Use this directive on any `kendo-toolbar-button` inside a ToolbarComponent in the Grid.
|
|
28
|
-
*
|
|
29
|
-
* When you click the toolbar button with this directive, the `filter` event is triggered.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```html
|
|
33
|
-
* <kendo-grid>
|
|
34
|
-
* <kendo-toolbar>
|
|
35
|
-
* <kendo-toolbar-button text="Filter" kendoGridFilterTool></kendo-toolbar-button>
|
|
36
|
-
* </kendo-toolbar>
|
|
37
|
-
* </kendo-grid>
|
|
38
|
-
* ```
|
|
39
|
-
* @remarks
|
|
40
|
-
* Applied to: {@link ToolBarButtonComponent}.
|
|
41
|
-
*/
|
|
42
|
-
export class FilterCommandToolbarDirective {
|
|
43
|
-
host;
|
|
44
|
-
popupService;
|
|
45
|
-
ctx;
|
|
46
|
-
filterService;
|
|
47
|
-
columnInfoService;
|
|
48
|
-
ngZone;
|
|
49
|
-
renderer;
|
|
50
|
-
adaptiveGridService;
|
|
51
|
-
popupRef;
|
|
52
|
-
nextId = incrementingId++;
|
|
53
|
-
toolSubs = new Subscription();
|
|
54
|
-
popupSubs;
|
|
55
|
-
actionSheetCloseSub;
|
|
56
|
-
removeClickListener;
|
|
57
|
-
/**
|
|
58
|
-
* @hidden
|
|
59
|
-
*/
|
|
60
|
-
isFilterApplied(filter) {
|
|
61
|
-
return isPresent(filter) && filter.filters?.length > 0;
|
|
62
|
-
}
|
|
63
|
-
constructor(host, popupService, ctx, filterService, columnInfoService, ngZone, renderer, adaptiveGridService) {
|
|
64
|
-
this.host = host;
|
|
65
|
-
this.popupService = popupService;
|
|
66
|
-
this.ctx = ctx;
|
|
67
|
-
this.filterService = filterService;
|
|
68
|
-
this.columnInfoService = columnInfoService;
|
|
69
|
-
this.ngZone = ngZone;
|
|
70
|
-
this.renderer = renderer;
|
|
71
|
-
this.adaptiveGridService = adaptiveGridService;
|
|
72
|
-
}
|
|
73
|
-
ngOnInit() {
|
|
74
|
-
this.toolSubs = this.host.click.subscribe(e => this.onClick(e));
|
|
75
|
-
this.toolSubs.add(this.filterService.changes.subscribe(filter => {
|
|
76
|
-
this.host.showBadge = this.isFilterApplied(filter);
|
|
77
|
-
}));
|
|
78
|
-
this.host.hasBadgeContainer = true;
|
|
79
|
-
this.host.showBadge = this.isFilterApplied(this.ctx.grid.filter);
|
|
80
|
-
const hasToolbarIcon = isPresent(this.host.toolbarOptions.icon) && this.host.toolbarOptions.icon !== '';
|
|
81
|
-
const hasOverflowIcon = isPresent(this.host.overflowOptions.icon) && this.host.overflowOptions.icon !== '';
|
|
82
|
-
const hasIcon = hasToolbarIcon && hasOverflowIcon;
|
|
83
|
-
const hasSvgIcon = isPresent(this.host.toolbarOptions.svgIcon) && isPresent(this.host.overflowOptions.svgIcon);
|
|
84
|
-
if (!hasIcon) {
|
|
85
|
-
this.host.icon = 'filter';
|
|
86
|
-
}
|
|
87
|
-
if (!hasSvgIcon) {
|
|
88
|
-
this.host.svgIcon = filterIcon;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
ngAfterViewInit() {
|
|
92
|
-
if (!isPresent(this.host.text)) {
|
|
93
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
94
|
-
this.host.text = this.ctx.localization.get(`filterToolbarToolText`);
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
this.buttonElement?.setAttribute('aria-haspopup', 'dialog');
|
|
98
|
-
this.buttonElement?.setAttribute('aria-expanded', 'false');
|
|
99
|
-
this.buttonElement?.setAttribute('title', this.ctx.localization.get('filterToolbarToolText'));
|
|
100
|
-
}
|
|
101
|
-
ngOnDestroy() {
|
|
102
|
-
if (this.toolSubs) {
|
|
103
|
-
this.toolSubs.unsubscribe();
|
|
104
|
-
}
|
|
105
|
-
if (this.popupSubs) {
|
|
106
|
-
this.popupSubs.unsubscribe();
|
|
107
|
-
}
|
|
108
|
-
if (this.popupRef) {
|
|
109
|
-
this.popupRef.close();
|
|
110
|
-
this.popupRef = null;
|
|
111
|
-
}
|
|
112
|
-
if (this.actionSheetCloseSub) {
|
|
113
|
-
this.actionSheetCloseSub.unsubscribe();
|
|
114
|
-
this.actionSheetCloseSub = null;
|
|
115
|
-
}
|
|
116
|
-
if (this.removeClickListener) {
|
|
117
|
-
this.removeClickListener();
|
|
118
|
-
this.removeClickListener = null;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
onClick(e) {
|
|
122
|
-
e.preventDefault();
|
|
123
|
-
if (this.popupRef) {
|
|
124
|
-
this.closePopup();
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
this.openPopup();
|
|
128
|
-
}
|
|
129
|
-
openPopup() {
|
|
130
|
-
const direction = this.ctx.localization.rtl ? 'right' : 'left';
|
|
131
|
-
if (this.ctx.grid.adaptiveMode === 'auto' && this.adaptiveGridService.windowSize !== 'large') {
|
|
132
|
-
if (!this.ctx.grid.isActionSheetExpanded) {
|
|
133
|
-
this.adaptiveGridService.viewType = 'filterToolbarTool';
|
|
134
|
-
this.ctx.grid.adaptiveRenderer.actionSheet.toggle(true);
|
|
135
|
-
this.host.selected = true;
|
|
136
|
-
this.actionSheetCloseSub = this.ctx.grid.adaptiveRenderer.actionSheet.collapse.subscribe(() => this.host.selected = false);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
this.popupRef = this.popupService.open({
|
|
141
|
-
anchor: this.buttonElement,
|
|
142
|
-
content: FilterToolWrapperComponent,
|
|
143
|
-
popupClass: 'k-grid-columnmenu-popup',
|
|
144
|
-
positionMode: 'absolute',
|
|
145
|
-
anchorAlign: { vertical: 'bottom', horizontal: direction },
|
|
146
|
-
popupAlign: { vertical: 'top', horizontal: direction }
|
|
147
|
-
});
|
|
148
|
-
this.adaptiveGridService.popupRef = this.popupRef;
|
|
149
|
-
this.setPopupAttributes();
|
|
150
|
-
this.host.selected = true;
|
|
151
|
-
this.ngZone.runOutsideAngular(() => {
|
|
152
|
-
if (!isDocumentAvailable()) {
|
|
153
|
-
return;
|
|
154
|
-
}
|
|
155
|
-
this.removeClickListener = this.renderer.listen('document', 'click', (e) => {
|
|
156
|
-
if (this.popupRef && !closest(e.target, node => node === this.popupRef.popupElement || node === this.buttonElement)) {
|
|
157
|
-
this.ngZone.run(() => {
|
|
158
|
-
this.closePopup();
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
});
|
|
163
|
-
this.popupSubs = this.popupRef.popup.instance.anchorViewportLeave.subscribe(() => {
|
|
164
|
-
this.popupSubs?.unsubscribe();
|
|
165
|
-
this.popupSubs = null;
|
|
166
|
-
this.closePopup();
|
|
167
|
-
});
|
|
168
|
-
this.initPopupProperties();
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
setPopupAttributes() {
|
|
172
|
-
const popupElement = this.popupRef.popupElement;
|
|
173
|
-
const popupId = `k-filter-tool-${this.nextId}-popup`;
|
|
174
|
-
const popupAriaElement = popupElement.querySelector('.k-popup');
|
|
175
|
-
this.renderer.setAttribute(popupElement, 'dir', this.ctx.localization.rtl ? 'rtl' : 'ltr');
|
|
176
|
-
this.renderer.setAttribute(popupAriaElement, 'id', popupId);
|
|
177
|
-
this.renderer.setAttribute(popupAriaElement, 'role', 'dialog');
|
|
178
|
-
this.buttonElement?.setAttribute('aria-expanded', 'true');
|
|
179
|
-
this.buttonElement?.setAttribute('aria-controls', popupId);
|
|
180
|
-
}
|
|
181
|
-
initPopupProperties() {
|
|
182
|
-
this.popupRef.content.instance.columnInfoService = this.columnInfoService;
|
|
183
|
-
this.popupRef.content.instance.ctx = this.ctx;
|
|
184
|
-
this.popupRef.content.instance.filterService = this.filterService;
|
|
185
|
-
this.popupRef.content.instance.hostButton = this.host;
|
|
186
|
-
this.popupSubs.add(this.popupRef.content.instance.close.subscribe(() => {
|
|
187
|
-
this.closePopup();
|
|
188
|
-
}));
|
|
189
|
-
}
|
|
190
|
-
closePopup() {
|
|
191
|
-
this.buttonElement?.setAttribute('aria-expanded', 'false');
|
|
192
|
-
this.buttonElement?.removeAttribute('aria-controls');
|
|
193
|
-
this.host.selected = false;
|
|
194
|
-
if (this.popupRef) {
|
|
195
|
-
this.popupRef.close();
|
|
196
|
-
this.popupRef = null;
|
|
197
|
-
}
|
|
198
|
-
if (this.popupSubs) {
|
|
199
|
-
this.popupSubs.unsubscribe();
|
|
200
|
-
this.popupSubs = null;
|
|
201
|
-
}
|
|
202
|
-
if (this.removeClickListener) {
|
|
203
|
-
this.removeClickListener();
|
|
204
|
-
this.removeClickListener = null;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
get buttonElement() {
|
|
208
|
-
return this.host.getButton();
|
|
209
|
-
}
|
|
210
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterCommandToolbarDirective, deps: [{ token: i1.ToolBarButtonComponent }, { token: i2.PopupService }, { token: i3.ContextService }, { token: i4.FilterService }, { token: i5.ColumnInfoService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i6.AdaptiveGridService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
211
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: FilterCommandToolbarDirective, isStandalone: true, selector: "[kendoGridFilterTool]", ngImport: i0 });
|
|
212
|
-
}
|
|
213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterCommandToolbarDirective, decorators: [{
|
|
214
|
-
type: Directive,
|
|
215
|
-
args: [{
|
|
216
|
-
selector: '[kendoGridFilterTool]',
|
|
217
|
-
standalone: true
|
|
218
|
-
}]
|
|
219
|
-
}], ctorParameters: () => [{ type: i1.ToolBarButtonComponent }, { type: i2.PopupService }, { type: i3.ContextService }, { type: i4.FilterService }, { type: i5.ColumnInfoService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i6.AdaptiveGridService }] });
|
|
@@ -1,151 +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, EventEmitter, HostBinding, Injector, Output, ViewChild, ViewContainerRef, HostListener } from '@angular/core';
|
|
6
|
-
import { ContextService } from '../../../common/provider.service';
|
|
7
|
-
import { filterClearIcon } from '@progress/kendo-svg-icons';
|
|
8
|
-
import { KENDO_BUTTON } from '@progress/kendo-angular-buttons';
|
|
9
|
-
import { FilterService } from '../../../filtering/filter.service';
|
|
10
|
-
import { FilterToolbarToolComponent } from './filter-toolbar-tool.component';
|
|
11
|
-
import { SinglePopupService } from '../../../common/single-popup.service';
|
|
12
|
-
import { ScrollSyncService } from '../../../scrolling/scroll-sync.service';
|
|
13
|
-
import { ColumnInfoService } from '../../../common/column-info.service';
|
|
14
|
-
import { cloneFilters } from '../../../common/filter-descriptor-differ';
|
|
15
|
-
import { AdaptiveGridService } from '../../../common/adaptiveness.service';
|
|
16
|
-
import * as i0 from "@angular/core";
|
|
17
|
-
import * as i1 from "@progress/kendo-angular-buttons";
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
export class FilterToolWrapperComponent {
|
|
22
|
-
injector;
|
|
23
|
-
container;
|
|
24
|
-
wrapperClasses = true;
|
|
25
|
-
onEscKeyDown(event) {
|
|
26
|
-
event.preventDefault();
|
|
27
|
-
this.close.emit();
|
|
28
|
-
this.hostButton?.focus(event);
|
|
29
|
-
}
|
|
30
|
-
onClick(event) {
|
|
31
|
-
if (this.hostButton.location !== 'toolbar') {
|
|
32
|
-
event.stopImmediatePropagation();
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
close = new EventEmitter();
|
|
36
|
-
hostButton;
|
|
37
|
-
clearIcon = filterClearIcon;
|
|
38
|
-
columnInfoService;
|
|
39
|
-
set ctx(ctx) {
|
|
40
|
-
this._ctx = ctx;
|
|
41
|
-
this.filter = ctx.grid.filter;
|
|
42
|
-
this.createPopup();
|
|
43
|
-
}
|
|
44
|
-
get ctx() {
|
|
45
|
-
return this._ctx;
|
|
46
|
-
}
|
|
47
|
-
set filterService(filterService) {
|
|
48
|
-
this._filterService = filterService;
|
|
49
|
-
this.subscriptions = this._filterService.changes.subscribe(filter => {
|
|
50
|
-
this.filter = filter;
|
|
51
|
-
});
|
|
52
|
-
this.createPopup();
|
|
53
|
-
}
|
|
54
|
-
get filterService() {
|
|
55
|
-
return this._filterService;
|
|
56
|
-
}
|
|
57
|
-
columnMenuService;
|
|
58
|
-
popupRef;
|
|
59
|
-
filter;
|
|
60
|
-
subscriptions;
|
|
61
|
-
_ctx;
|
|
62
|
-
_filterService;
|
|
63
|
-
constructor(injector) {
|
|
64
|
-
this.injector = injector;
|
|
65
|
-
}
|
|
66
|
-
ngOnDestroy() {
|
|
67
|
-
if (this.subscriptions) {
|
|
68
|
-
this.subscriptions.unsubscribe();
|
|
69
|
-
}
|
|
70
|
-
if (this.popupRef) {
|
|
71
|
-
this.popupRef.destroy();
|
|
72
|
-
this.popupRef = null;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
clear() {
|
|
76
|
-
if (!this.filter || this.filter.filters?.length === 0) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
this.filter = { logic: 'and', filters: [] };
|
|
80
|
-
this.popupRef.instance.filter = cloneFilters(this.filter);
|
|
81
|
-
this.filterService.filter(this.filter);
|
|
82
|
-
this.close.emit();
|
|
83
|
-
}
|
|
84
|
-
createPopup() {
|
|
85
|
-
if (this._ctx && this._filterService && this.container && !this.popupRef) {
|
|
86
|
-
const customInjector = Injector.create({
|
|
87
|
-
providers: [
|
|
88
|
-
{ provide: FilterService, useValue: this._filterService },
|
|
89
|
-
{ provide: ContextService, useValue: this._ctx },
|
|
90
|
-
{ provide: ColumnInfoService, useValue: this.columnInfoService },
|
|
91
|
-
AdaptiveGridService,
|
|
92
|
-
SinglePopupService,
|
|
93
|
-
ScrollSyncService
|
|
94
|
-
],
|
|
95
|
-
parent: this.injector
|
|
96
|
-
});
|
|
97
|
-
this.popupRef = this.container.createComponent(FilterToolbarToolComponent, {
|
|
98
|
-
injector: customInjector
|
|
99
|
-
});
|
|
100
|
-
this.subscriptions.add(this.popupRef.instance.close.subscribe(() => this.close.emit()));
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterToolWrapperComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
104
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FilterToolWrapperComponent, isStandalone: true, selector: "kendo-filter-tool-wrapper", outputs: { close: "close" }, host: { listeners: { "keydown.escape": "onEscKeyDown($event)", "click": "onClick($event)" }, properties: { "class.k-column-menu": "this.wrapperClasses", "class.k-column-menu-md": "this.wrapperClasses" } }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: `
|
|
105
|
-
<ng-container #container></ng-container>
|
|
106
|
-
<div class="k-actions k-actions-stretched k-actions-horizontal k-column-menu-footer">
|
|
107
|
-
<button kendoButton
|
|
108
|
-
[svgIcon]="clearIcon"
|
|
109
|
-
icon="filter-clear"
|
|
110
|
-
(click)="clear()">
|
|
111
|
-
{{ctx?.localization.get('filterClearAllButton')}}
|
|
112
|
-
</button>
|
|
113
|
-
</div>
|
|
114
|
-
`, isInline: true, dependencies: [{ 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"] }] });
|
|
115
|
-
}
|
|
116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterToolWrapperComponent, decorators: [{
|
|
117
|
-
type: Component,
|
|
118
|
-
args: [{
|
|
119
|
-
selector: 'kendo-filter-tool-wrapper',
|
|
120
|
-
template: `
|
|
121
|
-
<ng-container #container></ng-container>
|
|
122
|
-
<div class="k-actions k-actions-stretched k-actions-horizontal k-column-menu-footer">
|
|
123
|
-
<button kendoButton
|
|
124
|
-
[svgIcon]="clearIcon"
|
|
125
|
-
icon="filter-clear"
|
|
126
|
-
(click)="clear()">
|
|
127
|
-
{{ctx?.localization.get('filterClearAllButton')}}
|
|
128
|
-
</button>
|
|
129
|
-
</div>
|
|
130
|
-
`,
|
|
131
|
-
standalone: true,
|
|
132
|
-
imports: [KENDO_BUTTON]
|
|
133
|
-
}]
|
|
134
|
-
}], ctorParameters: () => [{ type: i0.Injector }], propDecorators: { container: [{
|
|
135
|
-
type: ViewChild,
|
|
136
|
-
args: ['container', { read: ViewContainerRef, static: true }]
|
|
137
|
-
}], wrapperClasses: [{
|
|
138
|
-
type: HostBinding,
|
|
139
|
-
args: ['class.k-column-menu']
|
|
140
|
-
}, {
|
|
141
|
-
type: HostBinding,
|
|
142
|
-
args: ['class.k-column-menu-md']
|
|
143
|
-
}], onEscKeyDown: [{
|
|
144
|
-
type: HostListener,
|
|
145
|
-
args: ['keydown.escape', ['$event']]
|
|
146
|
-
}], onClick: [{
|
|
147
|
-
type: HostListener,
|
|
148
|
-
args: ['click', ['$event']]
|
|
149
|
-
}], close: [{
|
|
150
|
-
type: Output
|
|
151
|
-
}] } });
|
|
@@ -1,223 +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, NgZone, Output, QueryList, ViewChildren } from '@angular/core';
|
|
6
|
-
import { ContextService } from '../../../common/provider.service';
|
|
7
|
-
import { KENDO_BUTTON } from '@progress/kendo-angular-buttons';
|
|
8
|
-
import { FilterMenuContainerComponent } from '../../../filtering/menu/filter-menu-container.component';
|
|
9
|
-
import { FilterService } from '../../../filtering/filter.service';
|
|
10
|
-
import { ColumnMenuItemComponent } from '../../../column-menu/column-menu-item.component';
|
|
11
|
-
import { ColumnMenuItemContentTemplateDirective } from '../../../column-menu/column-menu-item-content-template.directive';
|
|
12
|
-
import { ColumnInfoService } from '../../../common/column-info.service';
|
|
13
|
-
import { cloneFilters } from '../../../common/filter-descriptor-differ';
|
|
14
|
-
import { AdaptiveGridService } from '../../../common/adaptiveness.service';
|
|
15
|
-
import { take } from 'rxjs/operators';
|
|
16
|
-
import * as i0 from "@angular/core";
|
|
17
|
-
import * as i1 from "../../../filtering/filter.service";
|
|
18
|
-
import * as i2 from "../../../common/provider.service";
|
|
19
|
-
import * as i3 from "../../../common/column-info.service";
|
|
20
|
-
import * as i4 from "../../../common/adaptiveness.service";
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export class FilterToolbarToolComponent {
|
|
25
|
-
element;
|
|
26
|
-
filterService;
|
|
27
|
-
ctx;
|
|
28
|
-
columnInfoService;
|
|
29
|
-
ngZone;
|
|
30
|
-
adaptiveGridService;
|
|
31
|
-
filterItems;
|
|
32
|
-
menuItems;
|
|
33
|
-
filterContainers;
|
|
34
|
-
close = new EventEmitter();
|
|
35
|
-
get hostStyles() {
|
|
36
|
-
return {
|
|
37
|
-
'maxHeight': '400px',
|
|
38
|
-
'overflowX': 'hidden',
|
|
39
|
-
'overflowY': 'auto'
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
columnMenuService;
|
|
43
|
-
columns;
|
|
44
|
-
filter;
|
|
45
|
-
isFilterApplied(column) {
|
|
46
|
-
if (!this.filter?.filters) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
if (Array.isArray(this.filter.filters)) {
|
|
50
|
-
for (const filterGroup of this.filter.filters) {
|
|
51
|
-
if (filterGroup.filters && Array.isArray(filterGroup.filters)) {
|
|
52
|
-
for (const filter of filterGroup.filters) {
|
|
53
|
-
if (filter.field === column.field) {
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
else if (filterGroup.field === column.field) {
|
|
59
|
-
return true;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return false;
|
|
64
|
-
}
|
|
65
|
-
isItemFocused(filterItem) {
|
|
66
|
-
return this.currentFocusedItem === filterItem;
|
|
67
|
-
}
|
|
68
|
-
onItemFocus(item) {
|
|
69
|
-
this.currentFocusedItem = item;
|
|
70
|
-
}
|
|
71
|
-
onItemFocusOut() {
|
|
72
|
-
this.currentFocusedItem = null;
|
|
73
|
-
}
|
|
74
|
-
currentFocusedItem = null;
|
|
75
|
-
subscriptions;
|
|
76
|
-
constructor(element, filterService, ctx, columnInfoService, ngZone, adaptiveGridService) {
|
|
77
|
-
this.element = element;
|
|
78
|
-
this.filterService = filterService;
|
|
79
|
-
this.ctx = ctx;
|
|
80
|
-
this.columnInfoService = columnInfoService;
|
|
81
|
-
this.ngZone = ngZone;
|
|
82
|
-
this.adaptiveGridService = adaptiveGridService;
|
|
83
|
-
}
|
|
84
|
-
ngOnInit() {
|
|
85
|
-
this.columns = this.columnInfoService.leafNamedColumns.filter(column => column?.filterable);
|
|
86
|
-
this.filter = this.ctx.grid.filter;
|
|
87
|
-
this.subscriptions = this.filterService.changes.subscribe(filter => {
|
|
88
|
-
this.filter = cloneFilters(filter);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
ngAfterViewInit() {
|
|
92
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
93
|
-
this.filterItems?.get(0)?.nativeElement.focus({ preventScroll: true });
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
ngOnDestroy() {
|
|
97
|
-
if (this.subscriptions) {
|
|
98
|
-
this.subscriptions.unsubscribe();
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
navigateView(column) {
|
|
102
|
-
if (this.ctx.grid.isActionSheetExpanded && this.adaptiveGridService.viewType === 'filterToolbarTool') {
|
|
103
|
-
const componentRef = this.ctx.grid.adaptiveRenderer.filterToolbarToolTemplate.createComponent(FilterMenuContainerComponent);
|
|
104
|
-
componentRef.instance.column = this.getColumnComponent(column);
|
|
105
|
-
componentRef.instance.filter = this.filter;
|
|
106
|
-
this.subscriptions.add(componentRef.instance.close.subscribe(() => {
|
|
107
|
-
this.adaptiveGridService.reset();
|
|
108
|
-
}));
|
|
109
|
-
this.adaptiveGridService.filterMenuContainerComponentRef = componentRef;
|
|
110
|
-
this.adaptiveGridService.secondaryView = 'columnFilter';
|
|
111
|
-
this.adaptiveGridService.column = this.getColumnComponent(column);
|
|
112
|
-
this.ctx.grid.adaptiveRenderer.actionSheet.nextView();
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
getColumnComponent(column) {
|
|
116
|
-
return column;
|
|
117
|
-
}
|
|
118
|
-
handleClose(filterItem) {
|
|
119
|
-
filterItem.expanded = false;
|
|
120
|
-
filterItem.contentState = 'collapsed';
|
|
121
|
-
const filterContainer = this.filterContainers.find(container => container.column === filterItem.column);
|
|
122
|
-
if (filterContainer) {
|
|
123
|
-
// reset the child filter to ensure it is reinitialized based on the global filter on the next open
|
|
124
|
-
filterContainer.resetChildFilters();
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
toggleItem(event, index) {
|
|
128
|
-
const menuItem = this.menuItems.get(index);
|
|
129
|
-
if (!menuItem || event.target.closest('.k-filter-menu-container')) {
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
if (menuItem.expanded) {
|
|
133
|
-
this.filterContainers.get(index).isExpanded = false;
|
|
134
|
-
menuItem.expanded = false;
|
|
135
|
-
menuItem.contentState = 'collapsed';
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
this.filterContainers.get(index).isExpanded = true;
|
|
139
|
-
menuItem.expanded = true;
|
|
140
|
-
menuItem.contentState = 'expanded';
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterToolbarToolComponent, deps: [{ token: i0.ElementRef }, { token: i1.FilterService }, { token: i2.ContextService }, { token: i3.ColumnInfoService }, { token: i0.NgZone }, { token: i4.AdaptiveGridService }], target: i0.ɵɵFactoryTarget.Component });
|
|
144
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: FilterToolbarToolComponent, isStandalone: true, selector: "kendo-filter-toolbar-tool", outputs: { close: "close" }, viewQueries: [{ propertyName: "filterItems", predicate: ["filterItem"], descendants: true, read: ElementRef }, { propertyName: "menuItems", predicate: ["filterItem"], descendants: true }, { propertyName: "filterContainers", predicate: ["filterContainer"], descendants: true }], ngImport: i0, template: `
|
|
145
|
-
<div [style]="hostStyles">
|
|
146
|
-
@for (column of columns; track column; let i = $index) {
|
|
147
|
-
<kendo-grid-columnmenu-item
|
|
148
|
-
class="k-columnmenu-item-wrapper" #filterItem
|
|
149
|
-
role="button"
|
|
150
|
-
tabindex="0"
|
|
151
|
-
[column]="getColumnComponent(column)"
|
|
152
|
-
[text]="column.title || getColumnComponent(column).field"
|
|
153
|
-
(focus)="onItemFocus(filterItem)"
|
|
154
|
-
(focusout)="onItemFocusOut()"
|
|
155
|
-
(keydown.enter)="toggleItem($event, i)"
|
|
156
|
-
[indicatorIcon]="isFilterApplied(column)"
|
|
157
|
-
(itemClick)="navigateView(getColumnComponent(column))"
|
|
158
|
-
[expanded]="false"
|
|
159
|
-
[focused]="isItemFocused(filterItem)">
|
|
160
|
-
<ng-template kendoGridColumnMenuItemContentTemplate>
|
|
161
|
-
<kendo-grid-filter-menu-container
|
|
162
|
-
#filterContainer
|
|
163
|
-
(keydown.shift.tab)="$event.stopImmediatePropagation()"
|
|
164
|
-
[column]="getColumnComponent(column)"
|
|
165
|
-
[filter]="filter"
|
|
166
|
-
[isExpanded]="false"
|
|
167
|
-
(close)="handleClose(filterItem)">
|
|
168
|
-
</kendo-grid-filter-menu-container>
|
|
169
|
-
</ng-template>
|
|
170
|
-
</kendo-grid-columnmenu-item>
|
|
171
|
-
}
|
|
172
|
-
</div>
|
|
173
|
-
`, isInline: true, dependencies: [{ kind: "component", type: FilterMenuContainerComponent, selector: "kendo-grid-filter-menu-container", inputs: ["column", "isLast", "isExpanded", "menuTabbingService", "filter", "actionsClass"], outputs: ["close"] }, { kind: "component", type: ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "svgIcon", "indicatorIcon", "text", "selected", "disabled", "expanded", "focused", "service", "column"], outputs: ["itemClick", "expand", "collapse"] }, { kind: "directive", type: ColumnMenuItemContentTemplateDirective, selector: "[kendoGridColumnMenuItemContentTemplate]" }] });
|
|
174
|
-
}
|
|
175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterToolbarToolComponent, decorators: [{
|
|
176
|
-
type: Component,
|
|
177
|
-
args: [{
|
|
178
|
-
selector: 'kendo-filter-toolbar-tool',
|
|
179
|
-
template: `
|
|
180
|
-
<div [style]="hostStyles">
|
|
181
|
-
@for (column of columns; track column; let i = $index) {
|
|
182
|
-
<kendo-grid-columnmenu-item
|
|
183
|
-
class="k-columnmenu-item-wrapper" #filterItem
|
|
184
|
-
role="button"
|
|
185
|
-
tabindex="0"
|
|
186
|
-
[column]="getColumnComponent(column)"
|
|
187
|
-
[text]="column.title || getColumnComponent(column).field"
|
|
188
|
-
(focus)="onItemFocus(filterItem)"
|
|
189
|
-
(focusout)="onItemFocusOut()"
|
|
190
|
-
(keydown.enter)="toggleItem($event, i)"
|
|
191
|
-
[indicatorIcon]="isFilterApplied(column)"
|
|
192
|
-
(itemClick)="navigateView(getColumnComponent(column))"
|
|
193
|
-
[expanded]="false"
|
|
194
|
-
[focused]="isItemFocused(filterItem)">
|
|
195
|
-
<ng-template kendoGridColumnMenuItemContentTemplate>
|
|
196
|
-
<kendo-grid-filter-menu-container
|
|
197
|
-
#filterContainer
|
|
198
|
-
(keydown.shift.tab)="$event.stopImmediatePropagation()"
|
|
199
|
-
[column]="getColumnComponent(column)"
|
|
200
|
-
[filter]="filter"
|
|
201
|
-
[isExpanded]="false"
|
|
202
|
-
(close)="handleClose(filterItem)">
|
|
203
|
-
</kendo-grid-filter-menu-container>
|
|
204
|
-
</ng-template>
|
|
205
|
-
</kendo-grid-columnmenu-item>
|
|
206
|
-
}
|
|
207
|
-
</div>
|
|
208
|
-
`,
|
|
209
|
-
standalone: true,
|
|
210
|
-
imports: [KENDO_BUTTON, FilterMenuContainerComponent, ColumnMenuItemComponent, ColumnMenuItemContentTemplateDirective]
|
|
211
|
-
}]
|
|
212
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.FilterService }, { type: i2.ContextService }, { type: i3.ColumnInfoService }, { type: i0.NgZone }, { type: i4.AdaptiveGridService }], propDecorators: { filterItems: [{
|
|
213
|
-
type: ViewChildren,
|
|
214
|
-
args: ['filterItem', { read: ElementRef }]
|
|
215
|
-
}], menuItems: [{
|
|
216
|
-
type: ViewChildren,
|
|
217
|
-
args: ['filterItem']
|
|
218
|
-
}], filterContainers: [{
|
|
219
|
-
type: ViewChildren,
|
|
220
|
-
args: ['filterContainer']
|
|
221
|
-
}], close: [{
|
|
222
|
-
type: Output
|
|
223
|
-
}] } });
|