@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,242 +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, Output, EventEmitter, HostBinding, ViewChild } from '@angular/core';
|
|
6
|
-
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
7
|
-
import { Keys, replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
8
|
-
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
9
|
-
import { filterClearIcon, filterIcon } from '@progress/kendo-svg-icons';
|
|
10
|
-
import { ContextService } from '../../common/provider.service';
|
|
11
|
-
import { ColumnComponent } from '../../columns/column.component';
|
|
12
|
-
import { FocusableDirective } from '../../navigation/focusable.directive';
|
|
13
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
14
|
-
import * as i0 from "@angular/core";
|
|
15
|
-
import * as i1 from "../../common/provider.service";
|
|
16
|
-
import * as i2 from "../../layout/sizing-options.service";
|
|
17
|
-
/**
|
|
18
|
-
* Represents a component that displays filter operators.
|
|
19
|
-
* Use this component to show a drop-down list of filter operators and a clear button.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```html
|
|
23
|
-
* <kendo-grid [data]="gridData">
|
|
24
|
-
* <kendo-grid-column field="ProductName">
|
|
25
|
-
* <ng-template kendoGridFilterCellTemplate let-filter let-column="column">
|
|
26
|
-
* <input />
|
|
27
|
-
* <kendo-grid-filter-cell-operators
|
|
28
|
-
* [operators]="[{text: 'Equals', value: 'eq'}]">
|
|
29
|
-
* </kendo-grid-filter-cell-operators>
|
|
30
|
-
* </ng-template>
|
|
31
|
-
* </kendo-grid-column>
|
|
32
|
-
* <kendo-grid>
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
export class FilterCellOperatorsComponent {
|
|
36
|
-
ctx;
|
|
37
|
-
sizing;
|
|
38
|
-
clearText = 'Clear';
|
|
39
|
-
filterClearIcon = filterClearIcon;
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
filterSVGIcon = filterIcon;
|
|
44
|
-
/**
|
|
45
|
-
* @hidden
|
|
46
|
-
*/
|
|
47
|
-
size = 'medium';
|
|
48
|
-
/**
|
|
49
|
-
* @hidden
|
|
50
|
-
*/
|
|
51
|
-
get hostClasses() {
|
|
52
|
-
return true;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* @hidden
|
|
56
|
-
*/
|
|
57
|
-
dropdown;
|
|
58
|
-
/**
|
|
59
|
-
* Specifies the filter operators to display.
|
|
60
|
-
* @type {Array<{ text: string, value: string }>}
|
|
61
|
-
*/
|
|
62
|
-
operators = [];
|
|
63
|
-
/**
|
|
64
|
-
* Determines if the **Clear** button is displayed.
|
|
65
|
-
* @type {boolean}
|
|
66
|
-
*/
|
|
67
|
-
showButton;
|
|
68
|
-
/**
|
|
69
|
-
* Determines if the list of operators is displayed.
|
|
70
|
-
* @type {boolean}
|
|
71
|
-
* @default true
|
|
72
|
-
*/
|
|
73
|
-
showOperators = true;
|
|
74
|
-
/**
|
|
75
|
-
* Represents the selected operator value.
|
|
76
|
-
* @type {string}
|
|
77
|
-
*/
|
|
78
|
-
value;
|
|
79
|
-
/**
|
|
80
|
-
* Sets the column instance for which the filter operators are displayed.
|
|
81
|
-
* @type {ColumnComponent}
|
|
82
|
-
*/
|
|
83
|
-
column;
|
|
84
|
-
/**
|
|
85
|
-
* Fires when the operator value changes.
|
|
86
|
-
* @type {EventEmitter<string>}
|
|
87
|
-
*/
|
|
88
|
-
valueChange = new EventEmitter();
|
|
89
|
-
/**
|
|
90
|
-
* Fires when the **Clear** button is clicked.
|
|
91
|
-
* @type {EventEmitter<undefined>}
|
|
92
|
-
*/
|
|
93
|
-
clear = new EventEmitter();
|
|
94
|
-
subs;
|
|
95
|
-
constructor(ctx, sizing) {
|
|
96
|
-
this.ctx = ctx;
|
|
97
|
-
this.sizing = sizing;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* @hidden
|
|
101
|
-
*/
|
|
102
|
-
onChange(dataItem) {
|
|
103
|
-
this.valueChange.emit(dataItem);
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* @hidden
|
|
107
|
-
*/
|
|
108
|
-
clearClick() {
|
|
109
|
-
this.clear.emit();
|
|
110
|
-
return false;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* @hidden
|
|
114
|
-
*/
|
|
115
|
-
clearKeydown(args) {
|
|
116
|
-
if (args.code === Keys.Enter || args.code === Keys.NumpadEnter || args.code === Keys.Space) {
|
|
117
|
-
this.clear.emit();
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* @hidden
|
|
122
|
-
*/
|
|
123
|
-
dropdownKeydown(args) {
|
|
124
|
-
if (args.defaultPrevented) {
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
if ((args.code === Keys.Enter || args.code === Keys.NumpadEnter) && !this.dropdown.isOpen) {
|
|
128
|
-
this.dropdown.toggle(true);
|
|
129
|
-
args.preventDefault();
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
ngOnInit() {
|
|
133
|
-
this.subs = this.ctx.localization.changes.subscribe(() => this.clearText = this.ctx.localization.get('filterClearButton'));
|
|
134
|
-
this.subs.add(this.sizing.changes.subscribe((size) => this.size = size));
|
|
135
|
-
}
|
|
136
|
-
ngOnDestroy() {
|
|
137
|
-
if (this.subs) {
|
|
138
|
-
this.subs.unsubscribe();
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* @hidden
|
|
143
|
-
*/
|
|
144
|
-
get columnLabel() {
|
|
145
|
-
const localizationMsg = this.ctx.localization.get('filterCellOperatorLabel') || '';
|
|
146
|
-
const columnName = this.column.title || this.column.field;
|
|
147
|
-
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
148
|
-
}
|
|
149
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterCellOperatorsComponent, deps: [{ token: i1.ContextService }, { token: i2.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
150
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: FilterCellOperatorsComponent, isStandalone: true, selector: "kendo-grid-filter-cell-operators", inputs: { operators: "operators", showButton: "showButton", showOperators: "showOperators", value: "value", column: "column" }, outputs: { valueChange: "valueChange", clear: "clear" }, host: { properties: { "class.k-filtercell-operator": "this.hostClasses" } }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true }], ngImport: i0, template: `
|
|
151
|
-
@if (showOperators) {
|
|
152
|
-
<kendo-dropdownlist
|
|
153
|
-
#dropdown
|
|
154
|
-
kendoGridFocusable
|
|
155
|
-
[attr.aria-label]="column && columnLabel"
|
|
156
|
-
[data]="operators"
|
|
157
|
-
class="k-dropdown-operator"
|
|
158
|
-
(valueChange)="onChange($event)"
|
|
159
|
-
[value]="value"
|
|
160
|
-
icon="filter"
|
|
161
|
-
[svgIcon]="filterSVGIcon"
|
|
162
|
-
[valuePrimitive]="true"
|
|
163
|
-
textField="text"
|
|
164
|
-
[popupSettings]="{ width: 'auto' }"
|
|
165
|
-
valueField="value"
|
|
166
|
-
[size]="size"
|
|
167
|
-
(keydown)="dropdownKeydown($event)">
|
|
168
|
-
</kendo-dropdownlist>
|
|
169
|
-
}
|
|
170
|
-
@if (showButton) {
|
|
171
|
-
<button type="button"
|
|
172
|
-
kendoButton
|
|
173
|
-
kendoGridFocusable
|
|
174
|
-
icon="filter-clear"
|
|
175
|
-
[svgIcon]="filterClearIcon"
|
|
176
|
-
[title]="clearText"
|
|
177
|
-
[size]="size"
|
|
178
|
-
(click)="clearClick()"
|
|
179
|
-
(keydown)="clearKeydown($event)"></button>
|
|
180
|
-
}
|
|
181
|
-
`, 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: FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { kind: "component", type: 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"] }] });
|
|
182
|
-
}
|
|
183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterCellOperatorsComponent, decorators: [{
|
|
184
|
-
type: Component,
|
|
185
|
-
args: [{
|
|
186
|
-
selector: 'kendo-grid-filter-cell-operators',
|
|
187
|
-
template: `
|
|
188
|
-
@if (showOperators) {
|
|
189
|
-
<kendo-dropdownlist
|
|
190
|
-
#dropdown
|
|
191
|
-
kendoGridFocusable
|
|
192
|
-
[attr.aria-label]="column && columnLabel"
|
|
193
|
-
[data]="operators"
|
|
194
|
-
class="k-dropdown-operator"
|
|
195
|
-
(valueChange)="onChange($event)"
|
|
196
|
-
[value]="value"
|
|
197
|
-
icon="filter"
|
|
198
|
-
[svgIcon]="filterSVGIcon"
|
|
199
|
-
[valuePrimitive]="true"
|
|
200
|
-
textField="text"
|
|
201
|
-
[popupSettings]="{ width: 'auto' }"
|
|
202
|
-
valueField="value"
|
|
203
|
-
[size]="size"
|
|
204
|
-
(keydown)="dropdownKeydown($event)">
|
|
205
|
-
</kendo-dropdownlist>
|
|
206
|
-
}
|
|
207
|
-
@if (showButton) {
|
|
208
|
-
<button type="button"
|
|
209
|
-
kendoButton
|
|
210
|
-
kendoGridFocusable
|
|
211
|
-
icon="filter-clear"
|
|
212
|
-
[svgIcon]="filterClearIcon"
|
|
213
|
-
[title]="clearText"
|
|
214
|
-
[size]="size"
|
|
215
|
-
(click)="clearClick()"
|
|
216
|
-
(keydown)="clearKeydown($event)"></button>
|
|
217
|
-
}
|
|
218
|
-
`,
|
|
219
|
-
standalone: true,
|
|
220
|
-
imports: [DropDownListComponent, FocusableDirective, ButtonComponent]
|
|
221
|
-
}]
|
|
222
|
-
}], ctorParameters: () => [{ type: i1.ContextService }, { type: i2.SizingOptionsService }], propDecorators: { hostClasses: [{
|
|
223
|
-
type: HostBinding,
|
|
224
|
-
args: ['class.k-filtercell-operator']
|
|
225
|
-
}], dropdown: [{
|
|
226
|
-
type: ViewChild,
|
|
227
|
-
args: ['dropdown', { static: false }]
|
|
228
|
-
}], operators: [{
|
|
229
|
-
type: Input
|
|
230
|
-
}], showButton: [{
|
|
231
|
-
type: Input
|
|
232
|
-
}], showOperators: [{
|
|
233
|
-
type: Input
|
|
234
|
-
}], value: [{
|
|
235
|
-
type: Input
|
|
236
|
-
}], column: [{
|
|
237
|
-
type: Input
|
|
238
|
-
}], valueChange: [{
|
|
239
|
-
type: Output
|
|
240
|
-
}], clear: [{
|
|
241
|
-
type: Output
|
|
242
|
-
}] } });
|
|
@@ -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 { Directive, TemplateRef, Optional } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the filter-cell template directive.
|
|
9
|
-
* Use this directive to customize the content of the filter cell.
|
|
10
|
-
* To define the filter cell template, nest an `<ng-template>` tag with the
|
|
11
|
-
* `kendoGridFilterCellTemplate` directive inside a `<kendo-grid-column>` tag ([see example]({% slug filter_row %}#toc-custom-filters)).
|
|
12
|
-
*
|
|
13
|
-
* The template context is set to the current data item and the following additional fields are passed:
|
|
14
|
-
* - `column`—Defines an instance of the [`ColumnComponent`]({% slug api_grid_columncomponent %}) option. Use it as an alias for a template variable by utilizing the `let-column="column"` syntax.
|
|
15
|
-
* - `filter`—The provided filter descriptors. Use it as an alias for a template variable by utilizing the `let-filter="filter"` syntax.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```html
|
|
19
|
-
* <kendo-grid-column field="CategoryID" title="Category">
|
|
20
|
-
* <ng-template kendoGridFilterCellTemplate
|
|
21
|
-
* let-column="column"
|
|
22
|
-
* let-filter="filter"
|
|
23
|
-
* >
|
|
24
|
-
* ...
|
|
25
|
-
* </ng-template>
|
|
26
|
-
* ...
|
|
27
|
-
* </kendo-grid-column>
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export class FilterCellTemplateDirective {
|
|
31
|
-
templateRef;
|
|
32
|
-
constructor(templateRef) {
|
|
33
|
-
this.templateRef = templateRef;
|
|
34
|
-
}
|
|
35
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterCellTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
36
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: FilterCellTemplateDirective, isStandalone: true, selector: "[kendoGridFilterCellTemplate]", ngImport: i0 });
|
|
37
|
-
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterCellTemplateDirective, decorators: [{
|
|
39
|
-
type: Directive,
|
|
40
|
-
args: [{
|
|
41
|
-
selector: '[kendoGridFilterCellTemplate]',
|
|
42
|
-
standalone: true
|
|
43
|
-
}]
|
|
44
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
45
|
-
type: Optional
|
|
46
|
-
}] }] });
|
|
@@ -1,74 +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, HostBinding } from '@angular/core';
|
|
6
|
-
import { FilterService } from '../filter.service';
|
|
7
|
-
import { isPresent, isNullOrEmptyString } from '../../utils';
|
|
8
|
-
import { FilterInputWrapperComponent } from "../filter-input-wrapper.component";
|
|
9
|
-
import { FilterCellOperatorsComponent } from './filter-cell-operators.component';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "../filter.service";
|
|
12
|
-
const EMPTY_FILTER_OPERATORS = ['isnull', 'isnotnull', 'isempty', 'isnotempty'];
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export class FilterCellWrapperComponent extends FilterInputWrapperComponent {
|
|
17
|
-
get hostClasses() {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
get overrideBaseClasses() {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
showOperators = true;
|
|
24
|
-
get showButton() {
|
|
25
|
-
const filter = this.currentFilter;
|
|
26
|
-
return isPresent(filter) && (!isNullOrEmptyString(filter.value) ||
|
|
27
|
-
EMPTY_FILTER_OPERATORS.indexOf(String(filter.operator)) >= 0);
|
|
28
|
-
}
|
|
29
|
-
constructor(filterService) {
|
|
30
|
-
super(filterService);
|
|
31
|
-
}
|
|
32
|
-
filterChange(filter) {
|
|
33
|
-
this.applyFilter(filter);
|
|
34
|
-
}
|
|
35
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterCellWrapperComponent, deps: [{ token: i1.FilterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FilterCellWrapperComponent, isStandalone: true, selector: "kendo-grid-filter-wrapper-cell", inputs: { showOperators: "showOperators" }, host: { properties: { "class.k-filtercell-wrapper": "this.hostClasses", "class.k-filtercell": "this.overrideBaseClasses" } }, usesInheritance: true, ngImport: i0, template: `
|
|
37
|
-
<ng-content></ng-content>
|
|
38
|
-
<kendo-grid-filter-cell-operators
|
|
39
|
-
[showOperators]="showOperators"
|
|
40
|
-
[column]="column"
|
|
41
|
-
[operators]="operators"
|
|
42
|
-
(clear)="onClear()"
|
|
43
|
-
[showButton]="showButton"
|
|
44
|
-
[(value)]="currentOperator">
|
|
45
|
-
</kendo-grid-filter-cell-operators>
|
|
46
|
-
`, isInline: true, dependencies: [{ kind: "component", type: FilterCellOperatorsComponent, selector: "kendo-grid-filter-cell-operators", inputs: ["operators", "showButton", "showOperators", "value", "column"], outputs: ["valueChange", "clear"] }] });
|
|
47
|
-
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterCellWrapperComponent, decorators: [{
|
|
49
|
-
type: Component,
|
|
50
|
-
args: [{
|
|
51
|
-
selector: 'kendo-grid-filter-wrapper-cell',
|
|
52
|
-
template: `
|
|
53
|
-
<ng-content></ng-content>
|
|
54
|
-
<kendo-grid-filter-cell-operators
|
|
55
|
-
[showOperators]="showOperators"
|
|
56
|
-
[column]="column"
|
|
57
|
-
[operators]="operators"
|
|
58
|
-
(clear)="onClear()"
|
|
59
|
-
[showButton]="showButton"
|
|
60
|
-
[(value)]="currentOperator">
|
|
61
|
-
</kendo-grid-filter-cell-operators>
|
|
62
|
-
`,
|
|
63
|
-
standalone: true,
|
|
64
|
-
imports: [FilterCellOperatorsComponent]
|
|
65
|
-
}]
|
|
66
|
-
}], ctorParameters: () => [{ type: i1.FilterService }], propDecorators: { hostClasses: [{
|
|
67
|
-
type: HostBinding,
|
|
68
|
-
args: ['class.k-filtercell-wrapper']
|
|
69
|
-
}], overrideBaseClasses: [{
|
|
70
|
-
type: HostBinding,
|
|
71
|
-
args: ['class.k-filtercell']
|
|
72
|
-
}], showOperators: [{
|
|
73
|
-
type: Input
|
|
74
|
-
}] } });
|
|
@@ -1,91 +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, HostBinding, Input } from '@angular/core';
|
|
6
|
-
import { ColumnComponent } from '../../columns/column.component';
|
|
7
|
-
import { isPresent, isNullOrEmptyString } from '../../utils';
|
|
8
|
-
import { cloneFilters } from '../../common/filter-descriptor-differ';
|
|
9
|
-
import { FilterCellHostDirective } from './filter-cell-host.directive';
|
|
10
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
export class FilterCellComponent {
|
|
16
|
-
hostRole = 'gridcell';
|
|
17
|
-
column;
|
|
18
|
-
get filter() {
|
|
19
|
-
return this._filter;
|
|
20
|
-
}
|
|
21
|
-
set filter(value) {
|
|
22
|
-
this._filter = cloneFilters(value);
|
|
23
|
-
}
|
|
24
|
-
size = 'medium';
|
|
25
|
-
_templateContext = {};
|
|
26
|
-
_filter;
|
|
27
|
-
get templateContext() {
|
|
28
|
-
this._templateContext.column = this.column;
|
|
29
|
-
this._templateContext.filter = this.filter;
|
|
30
|
-
this._templateContext['$implicit'] = this.filter;
|
|
31
|
-
return this._templateContext;
|
|
32
|
-
}
|
|
33
|
-
get hasTemplate() {
|
|
34
|
-
return isPresent(this.column.filterCellTemplateRef);
|
|
35
|
-
}
|
|
36
|
-
get isFilterable() {
|
|
37
|
-
return isPresent(this.column) && !isNullOrEmptyString(this.column.field) && this.column.filterable;
|
|
38
|
-
}
|
|
39
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
40
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: FilterCellComponent, isStandalone: true, selector: "[kendoGridFilterCell]", inputs: { column: "column", filter: "filter", size: "size" }, host: { properties: { "attr.role": "this.hostRole" } }, ngImport: i0, template: `
|
|
41
|
-
@if (isFilterable) {
|
|
42
|
-
@switch (hasTemplate) {
|
|
43
|
-
@case (false) {
|
|
44
|
-
<ng-container kendoFilterCellHost [column]="column" [filter]="filter"></ng-container>
|
|
45
|
-
}
|
|
46
|
-
@case (true) {
|
|
47
|
-
@if (column.filterCellTemplateRef) {
|
|
48
|
-
<ng-template
|
|
49
|
-
[ngTemplateOutlet]="column.filterCellTemplateRef"
|
|
50
|
-
[ngTemplateOutletContext]="templateContext">
|
|
51
|
-
</ng-template>
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: FilterCellHostDirective, selector: "[kendoFilterCellHost]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
57
|
-
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterCellComponent, decorators: [{
|
|
59
|
-
type: Component,
|
|
60
|
-
args: [{
|
|
61
|
-
selector: '[kendoGridFilterCell]',
|
|
62
|
-
template: `
|
|
63
|
-
@if (isFilterable) {
|
|
64
|
-
@switch (hasTemplate) {
|
|
65
|
-
@case (false) {
|
|
66
|
-
<ng-container kendoFilterCellHost [column]="column" [filter]="filter"></ng-container>
|
|
67
|
-
}
|
|
68
|
-
@case (true) {
|
|
69
|
-
@if (column.filterCellTemplateRef) {
|
|
70
|
-
<ng-template
|
|
71
|
-
[ngTemplateOutlet]="column.filterCellTemplateRef"
|
|
72
|
-
[ngTemplateOutletContext]="templateContext">
|
|
73
|
-
</ng-template>
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
`,
|
|
79
|
-
standalone: true,
|
|
80
|
-
imports: [FilterCellHostDirective, NgTemplateOutlet]
|
|
81
|
-
}]
|
|
82
|
-
}], propDecorators: { hostRole: [{
|
|
83
|
-
type: HostBinding,
|
|
84
|
-
args: ['attr.role']
|
|
85
|
-
}], column: [{
|
|
86
|
-
type: Input
|
|
87
|
-
}], filter: [{
|
|
88
|
-
type: Input
|
|
89
|
-
}], size: [{
|
|
90
|
-
type: Input
|
|
91
|
-
}] } });
|
|
@@ -1,155 +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 } from '@angular/core';
|
|
6
|
-
import { FilterService } from '../filter.service';
|
|
7
|
-
import { NumericFilterComponent } from '../numeric-filter.component';
|
|
8
|
-
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
9
|
-
import { ContextService } from '../../common/provider.service';
|
|
10
|
-
import { FilterInputDirective } from '../filter-input.directive';
|
|
11
|
-
import { FocusableDirective } from '../../navigation/focusable.directive';
|
|
12
|
-
import { FilterCellWrapperComponent } from './filter-cell-wrapper.component';
|
|
13
|
-
import { NumericTextBoxComponent, NumericTextBoxCustomMessagesComponent } from '@progress/kendo-angular-inputs';
|
|
14
|
-
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
import * as i1 from "../filter.service";
|
|
17
|
-
import * as i2 from "../../common/provider.service";
|
|
18
|
-
import * as i3 from "../../layout/sizing-options.service";
|
|
19
|
-
/**
|
|
20
|
-
* Represents a filter cell component for filtering of numeric columns.
|
|
21
|
-
* See the article about the [built-in filter components](slug:filter_row#toc-built-in-filter-row-components).
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```html
|
|
25
|
-
* <kendo-grid-column field="UnitPrice">
|
|
26
|
-
* <ng-template kendoGridFilterCellTemplate let-filter let-column="column">
|
|
27
|
-
* <kendo-grid-numeric-filter-cell
|
|
28
|
-
* [column]="column"
|
|
29
|
-
* [filter]="filter">
|
|
30
|
-
* </kendo-grid-numeric-filter-cell>
|
|
31
|
-
* </ng-template>
|
|
32
|
-
* </kendo-grid-column>
|
|
33
|
-
* ```
|
|
34
|
-
* @remarks
|
|
35
|
-
* Supported children components are: {@link EqualFilterOperatorComponent}, {@link NotEqualFilterOperatorComponent}, {@link GreaterFilterOperatorComponent}, {@link GreaterOrEqualToFilterOperatorComponent}, {@link LessFilterOperatorComponent}, {@link LessOrEqualToFilterOperatorComponent}, {@link IsNullFilterOperatorComponent}, {@link IsNotNullFilterOperatorComponent}.
|
|
36
|
-
*/
|
|
37
|
-
export class NumericFilterCellComponent extends NumericFilterComponent {
|
|
38
|
-
ctx;
|
|
39
|
-
/**
|
|
40
|
-
* Sets the delay time in milliseconds before the filter value is submitted.
|
|
41
|
-
* A value of `0` means no delay.
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @default 500
|
|
44
|
-
*/
|
|
45
|
-
filterDelay = 500;
|
|
46
|
-
/**
|
|
47
|
-
* Determines if the drop-down filter operators are displayed.
|
|
48
|
-
* @type {boolean}
|
|
49
|
-
* @default true
|
|
50
|
-
*/
|
|
51
|
-
showOperators = true;
|
|
52
|
-
/**
|
|
53
|
-
* The placeholder text for the filter input.
|
|
54
|
-
* @type {string}
|
|
55
|
-
*/
|
|
56
|
-
placeholder;
|
|
57
|
-
subs;
|
|
58
|
-
constructor(filterService, ctx, sizingService) {
|
|
59
|
-
super(filterService, ctx);
|
|
60
|
-
this.ctx = ctx;
|
|
61
|
-
this.subs = sizingService.changes.subscribe((size) => this.size = size);
|
|
62
|
-
}
|
|
63
|
-
ngOnDestroy() {
|
|
64
|
-
this.subs && this.subs.unsubscribe();
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* @hidden
|
|
68
|
-
*/
|
|
69
|
-
messageFor(key) {
|
|
70
|
-
return this.ctx.localization.get(key);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* @hidden
|
|
74
|
-
*/
|
|
75
|
-
get columnLabel() {
|
|
76
|
-
const localizationMsg = this.ctx.localization.get('filterInputLabel') || '';
|
|
77
|
-
const columnName = this.column.title || this.column.field;
|
|
78
|
-
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
79
|
-
}
|
|
80
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NumericFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.ContextService }, { token: i3.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
81
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: NumericFilterCellComponent, isStandalone: true, selector: "kendo-grid-numeric-filter-cell", inputs: { filterDelay: "filterDelay", showOperators: "showOperators", placeholder: "placeholder" }, usesInheritance: true, ngImport: i0, template: `
|
|
82
|
-
<kendo-grid-filter-wrapper-cell
|
|
83
|
-
[column]="column"
|
|
84
|
-
[filter]="filter"
|
|
85
|
-
[operators]="operators"
|
|
86
|
-
[defaultOperator]="operator"
|
|
87
|
-
[showOperators]="showOperators"
|
|
88
|
-
>
|
|
89
|
-
<kendo-numerictextbox
|
|
90
|
-
kendoGridFocusable
|
|
91
|
-
kendoFilterInput
|
|
92
|
-
[columnLabel]="columnLabel"
|
|
93
|
-
[filterDelay]="filterDelay"
|
|
94
|
-
[autoCorrect]="true"
|
|
95
|
-
[value]="currentFilter?.value"
|
|
96
|
-
[format]="format"
|
|
97
|
-
[decimals]="decimals"
|
|
98
|
-
[spinners]="spinners"
|
|
99
|
-
[min]="min"
|
|
100
|
-
[max]="max"
|
|
101
|
-
[size]="size"
|
|
102
|
-
[step]="step"
|
|
103
|
-
[placeholder]="placeholder">
|
|
104
|
-
<kendo-numerictextbox-messages
|
|
105
|
-
[increment]="messageFor('filterNumericIncrement')"
|
|
106
|
-
[decrement]="messageFor('filterNumericDecrement')"
|
|
107
|
-
></kendo-numerictextbox-messages>
|
|
108
|
-
</kendo-numerictextbox>
|
|
109
|
-
</kendo-grid-filter-wrapper-cell>
|
|
110
|
-
`, isInline: true, dependencies: [{ kind: "component", type: FilterCellWrapperComponent, selector: "kendo-grid-filter-wrapper-cell", inputs: ["showOperators"] }, { kind: "component", type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "focus", "blur", "inputFocus", "inputBlur"], exportAs: ["kendoNumericTextBox"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { kind: "directive", type: FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "value"] }, { kind: "component", type: NumericTextBoxCustomMessagesComponent, selector: "kendo-numerictextbox-messages" }] });
|
|
111
|
-
}
|
|
112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NumericFilterCellComponent, decorators: [{
|
|
113
|
-
type: Component,
|
|
114
|
-
args: [{
|
|
115
|
-
selector: 'kendo-grid-numeric-filter-cell',
|
|
116
|
-
template: `
|
|
117
|
-
<kendo-grid-filter-wrapper-cell
|
|
118
|
-
[column]="column"
|
|
119
|
-
[filter]="filter"
|
|
120
|
-
[operators]="operators"
|
|
121
|
-
[defaultOperator]="operator"
|
|
122
|
-
[showOperators]="showOperators"
|
|
123
|
-
>
|
|
124
|
-
<kendo-numerictextbox
|
|
125
|
-
kendoGridFocusable
|
|
126
|
-
kendoFilterInput
|
|
127
|
-
[columnLabel]="columnLabel"
|
|
128
|
-
[filterDelay]="filterDelay"
|
|
129
|
-
[autoCorrect]="true"
|
|
130
|
-
[value]="currentFilter?.value"
|
|
131
|
-
[format]="format"
|
|
132
|
-
[decimals]="decimals"
|
|
133
|
-
[spinners]="spinners"
|
|
134
|
-
[min]="min"
|
|
135
|
-
[max]="max"
|
|
136
|
-
[size]="size"
|
|
137
|
-
[step]="step"
|
|
138
|
-
[placeholder]="placeholder">
|
|
139
|
-
<kendo-numerictextbox-messages
|
|
140
|
-
[increment]="messageFor('filterNumericIncrement')"
|
|
141
|
-
[decrement]="messageFor('filterNumericDecrement')"
|
|
142
|
-
></kendo-numerictextbox-messages>
|
|
143
|
-
</kendo-numerictextbox>
|
|
144
|
-
</kendo-grid-filter-wrapper-cell>
|
|
145
|
-
`,
|
|
146
|
-
standalone: true,
|
|
147
|
-
imports: [FilterCellWrapperComponent, NumericTextBoxComponent, FocusableDirective, FilterInputDirective, NumericTextBoxCustomMessagesComponent]
|
|
148
|
-
}]
|
|
149
|
-
}], ctorParameters: () => [{ type: i1.FilterService }, { type: i2.ContextService }, { type: i3.SizingOptionsService }], propDecorators: { filterDelay: [{
|
|
150
|
-
type: Input
|
|
151
|
-
}], showOperators: [{
|
|
152
|
-
type: Input
|
|
153
|
-
}], placeholder: [{
|
|
154
|
-
type: Input
|
|
155
|
-
}] } });
|