@progress/kendo-angular-grid 21.4.1-develop.1 → 22.0.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/column-menu/column-menu-item-base.d.ts +1 -1
- package/columns/column-base.d.ts +1 -1
- package/common/toolbar-tool-base.directive.d.ts +1 -1
- package/editing/toolbar-editing-tool-base.directive.d.ts +1 -1
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/editing-directives/row-editing-directive-base.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-grid.mjs +666 -666
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/filtering/boolean-filter.component.d.ts +1 -1
- package/filtering/date-filter.component.d.ts +1 -1
- package/filtering/filter-host.directive.d.ts +1 -1
- package/filtering/filter-input-wrapper.component.d.ts +1 -1
- package/filtering/numeric-filter.component.d.ts +1 -1
- package/filtering/operators/filter-operator.base.d.ts +1 -1
- package/filtering/string-filter.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +28 -36
- package/schematics/ngAdd/index.js +7 -7
- package/selection/selection-default.d.ts +1 -1
- package/esm2022/adaptiveness/adaptive-mode.mjs +0 -5
- package/esm2022/adaptiveness/adaptive-renderer.component.mjs +0 -1270
- package/esm2022/aggregates/aggregate-types.mjs +0 -5
- package/esm2022/aggregates/selection-aggregate.service.mjs +0 -200
- package/esm2022/aggregates/status-bar-template.directive.mjs +0 -30
- package/esm2022/aggregates/status-bar.component.mjs +0 -70
- package/esm2022/column-menu/column-chooser-content.component.mjs +0 -318
- package/esm2022/column-menu/column-chooser.component.mjs +0 -230
- package/esm2022/column-menu/column-list-kb-nav.service.mjs +0 -40
- package/esm2022/column-menu/column-list.component.mjs +0 -478
- package/esm2022/column-menu/column-locked-change-event.mjs +0 -19
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +0 -89
- package/esm2022/column-menu/column-menu-autosize.component.mjs +0 -97
- package/esm2022/column-menu/column-menu-chooser.component.mjs +0 -151
- package/esm2022/column-menu/column-menu-container.component.mjs +0 -67
- package/esm2022/column-menu/column-menu-expandable-item.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-filter.component.mjs +0 -152
- package/esm2022/column-menu/column-menu-item-base.mjs +0 -44
- package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +0 -45
- package/esm2022/column-menu/column-menu-item.component.mjs +0 -514
- package/esm2022/column-menu/column-menu-item.directive.mjs +0 -164
- package/esm2022/column-menu/column-menu-lock.component.mjs +0 -118
- package/esm2022/column-menu/column-menu-position.component.mjs +0 -196
- package/esm2022/column-menu/column-menu-settings.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-sort.component.mjs +0 -119
- package/esm2022/column-menu/column-menu-stick.component.mjs +0 -120
- package/esm2022/column-menu/column-menu-template.directive.mjs +0 -47
- package/esm2022/column-menu/column-menu.component.mjs +0 -839
- package/esm2022/column-menu/column-menu.service.mjs +0 -71
- package/esm2022/column-menu/column-sticky-change-event.mjs +0 -19
- package/esm2022/column-menu/column-visibility-change-event.mjs +0 -19
- package/esm2022/column-menu/utils.mjs +0 -52
- package/esm2022/column-resizing/column-handle.directive.mjs +0 -499
- package/esm2022/column-resizing/column-resize.interface.mjs +0 -5
- package/esm2022/column-resizing/column-resizing.service.mjs +0 -214
- package/esm2022/column-resizing/table.directive.mjs +0 -141
- package/esm2022/columns/cell-rowspan.mjs +0 -5
- package/esm2022/columns/checkbox-column.component.mjs +0 -106
- package/esm2022/columns/column-base.mjs +0 -432
- package/esm2022/columns/column-common.mjs +0 -73
- package/esm2022/columns/column-group.component.mjs +0 -135
- package/esm2022/columns/column-list.mjs +0 -94
- package/esm2022/columns/column.component.mjs +0 -198
- package/esm2022/columns/columns-container.mjs +0 -101
- package/esm2022/columns/command-column.component.mjs +0 -80
- package/esm2022/columns/reorder-column.component.mjs +0 -114
- package/esm2022/columns/sort-settings.mjs +0 -18
- package/esm2022/columns/span-column.component.mjs +0 -195
- package/esm2022/common/adaptiveness.service.mjs +0 -72
- package/esm2022/common/cell-click-event-args.interface.mjs +0 -5
- package/esm2022/common/clipboard-types.mjs +0 -5
- package/esm2022/common/clipboard.directive.mjs +0 -197
- package/esm2022/common/clipboard.service.mjs +0 -221
- package/esm2022/common/column-info.service.mjs +0 -92
- package/esm2022/common/create-form-group.mjs +0 -5
- package/esm2022/common/data-layout-mode.mjs +0 -5
- package/esm2022/common/default-track-by.mjs +0 -13
- package/esm2022/common/dom-events.service.mjs +0 -27
- package/esm2022/common/error-messages.mjs +0 -64
- package/esm2022/common/event-emitter.mjs +0 -39
- package/esm2022/common/fetch-data-callback.mjs +0 -5
- package/esm2022/common/field-datatype.mjs +0 -5
- package/esm2022/common/filter-descriptor-differ.mjs +0 -69
- package/esm2022/common/filter-operator.interface.mjs +0 -5
- package/esm2022/common/grid-col-size.mjs +0 -5
- package/esm2022/common/id.service.mjs +0 -59
- package/esm2022/common/pager-settings.mjs +0 -20
- package/esm2022/common/preventable-event.mjs +0 -24
- package/esm2022/common/provider.service.mjs +0 -42
- package/esm2022/common/remove-confirmation.mjs +0 -5
- package/esm2022/common/resizable-settings.mjs +0 -9
- package/esm2022/common/single-popup.service.mjs +0 -158
- package/esm2022/common/size-options.mjs +0 -5
- package/esm2022/common/sort.service.mjs +0 -14
- package/esm2022/common/toolbar-tool-base.directive.mjs +0 -85
- package/esm2022/constants.mjs +0 -16
- package/esm2022/data/change-event-args.interface.mjs +0 -5
- package/esm2022/data/change-notification.service.mjs +0 -30
- package/esm2022/data/data-item.interface.mjs +0 -5
- package/esm2022/data/data-mapping.service.mjs +0 -136
- package/esm2022/data/data.collection.mjs +0 -87
- package/esm2022/data/data.iterators.mjs +0 -221
- package/esm2022/data/grid-item.interface.mjs +0 -5
- package/esm2022/data/group-footer-item.interface.mjs +0 -5
- package/esm2022/data/group-item.interface.mjs +0 -5
- package/esm2022/databinding.directive.mjs +0 -233
- package/esm2022/directives.mjs +0 -504
- package/esm2022/dragdrop/column-reorder-config.mjs +0 -5
- package/esm2022/dragdrop/column-reorder-event.mjs +0 -31
- package/esm2022/dragdrop/column-reorder.service.mjs +0 -20
- package/esm2022/dragdrop/common.mjs +0 -69
- package/esm2022/dragdrop/context-types.mjs +0 -5
- package/esm2022/dragdrop/drag-and-drop.service.mjs +0 -65
- package/esm2022/dragdrop/drag-hint.service.mjs +0 -137
- package/esm2022/dragdrop/draggable-column.directive.mjs +0 -137
- package/esm2022/dragdrop/drop-cue.service.mjs +0 -46
- package/esm2022/dragdrop/drop-target.directive.mjs +0 -71
- package/esm2022/editing/add-command-tool.directive.mjs +0 -59
- package/esm2022/editing/add-command.directive.mjs +0 -93
- package/esm2022/editing/add-event-args.interface.mjs +0 -5
- package/esm2022/editing/cancel-command-tool.directive.mjs +0 -64
- package/esm2022/editing/cancel-command.directive.mjs +0 -127
- package/esm2022/editing/cancel-event-args.interface.mjs +0 -5
- package/esm2022/editing/cell-close-event.mjs +0 -38
- package/esm2022/editing/edit-command-tool.directive.mjs +0 -60
- package/esm2022/editing/edit-command.directive.mjs +0 -124
- package/esm2022/editing/edit-event-args.interface.mjs +0 -5
- package/esm2022/editing/edit-row-options.interface.mjs +0 -5
- package/esm2022/editing/edit-template.directive.mjs +0 -43
- package/esm2022/editing/edit.service.mjs +0 -182
- package/esm2022/editing/form/dialog-form.component.mjs +0 -102
- package/esm2022/editing/form/form-formfield.component.mjs +0 -188
- package/esm2022/editing/form/form.component.mjs +0 -169
- package/esm2022/editing/form/index.mjs +0 -8
- package/esm2022/editing/form/models.mjs +0 -5
- package/esm2022/editing/local-data-changes.service.mjs +0 -18
- package/esm2022/editing/remove-command-tool.directive.mjs +0 -61
- package/esm2022/editing/remove-command.directive.mjs +0 -123
- package/esm2022/editing/remove-event-args.interface.mjs +0 -5
- package/esm2022/editing/save-command-tool.directive.mjs +0 -65
- package/esm2022/editing/save-command.directive.mjs +0 -126
- package/esm2022/editing/save-event-args.interface.mjs +0 -5
- package/esm2022/editing/toolbar-editing-tool-base.directive.mjs +0 -99
- package/esm2022/editing-directives/create-form-group-args.interface.mjs +0 -5
- package/esm2022/editing-directives/edit-service.interface.mjs +0 -5
- package/esm2022/editing-directives/editing-directive-base.mjs +0 -167
- package/esm2022/editing-directives/external-editing.directive.mjs +0 -151
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +0 -97
- package/esm2022/editing-directives/local-edit.service.mjs +0 -64
- package/esm2022/editing-directives/local-row-edit.service.mjs +0 -13
- package/esm2022/editing-directives/reactive-editing.directive.mjs +0 -60
- package/esm2022/editing-directives/row-editing-directive-base.mjs +0 -53
- package/esm2022/editing-directives/template-editing.directive.mjs +0 -72
- package/esm2022/editing-directives/utils.mjs +0 -18
- package/esm2022/excel/excel-command-tool.directive.mjs +0 -58
- package/esm2022/excel/excel-command.directive.mjs +0 -98
- package/esm2022/excel/excel-export-event.mjs +0 -18
- package/esm2022/excel/excel.component.mjs +0 -223
- package/esm2022/excel/excel.module.mjs +0 -45
- package/esm2022/excel/excel.service.mjs +0 -29
- package/esm2022/filtering/base-filter-cell.component.mjs +0 -174
- package/esm2022/filtering/boolean-filter.component.mjs +0 -83
- package/esm2022/filtering/cell/autocomplete-filter-cell.component.mjs +0 -114
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +0 -113
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +0 -141
- package/esm2022/filtering/cell/filter-cell-component.factory.mjs +0 -19
- package/esm2022/filtering/cell/filter-cell-host.directive.mjs +0 -33
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +0 -242
- package/esm2022/filtering/cell/filter-cell-template.directive.mjs +0 -46
- package/esm2022/filtering/cell/filter-cell-wrapper.component.mjs +0 -74
- package/esm2022/filtering/cell/filter-cell.component.mjs +0 -91
- package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +0 -155
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +0 -127
- package/esm2022/filtering/date-filter.component.mjs +0 -172
- package/esm2022/filtering/filter-component.interface.mjs +0 -5
- package/esm2022/filtering/filter-host.directive.mjs +0 -58
- package/esm2022/filtering/filter-input-wrapper.component.mjs +0 -119
- package/esm2022/filtering/filter-input.directive.mjs +0 -123
- package/esm2022/filtering/filter-row.component.mjs +0 -131
- package/esm2022/filtering/filter.service.mjs +0 -44
- package/esm2022/filtering/filterable.mjs +0 -16
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +0 -167
- package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +0 -179
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +0 -212
- package/esm2022/filtering/menu/filter-menu-component.factory.mjs +0 -19
- package/esm2022/filtering/menu/filter-menu-container.component.mjs +0 -418
- package/esm2022/filtering/menu/filter-menu-dropdownlist.directive.mjs +0 -44
- package/esm2022/filtering/menu/filter-menu-host.directive.mjs +0 -46
- package/esm2022/filtering/menu/filter-menu-input-wrapper.component.mjs +0 -158
- package/esm2022/filtering/menu/filter-menu-template.directive.mjs +0 -48
- package/esm2022/filtering/menu/filter-menu.component.mjs +0 -221
- package/esm2022/filtering/menu/filter-radio-button.directive.mjs +0 -34
- package/esm2022/filtering/menu/menu-tabbing.service.mjs +0 -22
- package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +0 -184
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +0 -230
- package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +0 -107
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +0 -198
- package/esm2022/filtering/multicheckbox-filter.component.mjs +0 -324
- package/esm2022/filtering/numeric-filter.component.mjs +0 -145
- package/esm2022/filtering/operators/after-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/after-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/eq-filter-operator.component.mjs +0 -111
- package/esm2022/filtering/operators/filter-operator.base.mjs +0 -101
- package/esm2022/filtering/operators/gt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/gte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/lt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/lte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/neq-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/string-filter.component.mjs +0 -90
- package/esm2022/grid.component.mjs +0 -4598
- package/esm2022/grid.module.mjs +0 -241
- package/esm2022/grouping/group-footer-template.directive.mjs +0 -44
- package/esm2022/grouping/group-header-column-template.directive.mjs +0 -45
- package/esm2022/grouping/group-header-template.directive.mjs +0 -46
- package/esm2022/grouping/group-header.component.mjs +0 -351
- package/esm2022/grouping/group-info.service.mjs +0 -43
- package/esm2022/grouping/group-key.interface.mjs +0 -5
- package/esm2022/grouping/group-panel.component.mjs +0 -487
- package/esm2022/grouping/group-rows-args.interface.mjs +0 -5
- package/esm2022/grouping/group-settings.mjs +0 -5
- package/esm2022/grouping/groups.service.mjs +0 -69
- package/esm2022/grouping/utils.mjs +0 -14
- package/esm2022/highlight/highlight-item.mjs +0 -5
- package/esm2022/highlight/highlight.directive.mjs +0 -132
- package/esm2022/index.mjs +0 -221
- package/esm2022/layout/browser-support.service.mjs +0 -94
- package/esm2022/layout/resizable.directive.mjs +0 -83
- package/esm2022/layout/resize.service.mjs +0 -29
- package/esm2022/layout/responsive.service.mjs +0 -34
- package/esm2022/layout/row-sync.mjs +0 -47
- package/esm2022/layout/sizing-options.service.mjs +0 -18
- package/esm2022/localization/custom-messages.component.mjs +0 -54
- package/esm2022/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/localization/messages.mjs +0 -895
- package/esm2022/navigation/default-focusable-element.mjs +0 -50
- package/esm2022/navigation/focus-group.mjs +0 -73
- package/esm2022/navigation/focus-root.mjs +0 -50
- package/esm2022/navigation/focusable-element.interface.mjs +0 -5
- package/esm2022/navigation/focusable.directive.mjs +0 -150
- package/esm2022/navigation/grid-focusable-element.mjs +0 -28
- package/esm2022/navigation/item-map.mjs +0 -59
- package/esm2022/navigation/logical-cell.directive.mjs +0 -224
- package/esm2022/navigation/logical-cell.interface.mjs +0 -5
- package/esm2022/navigation/logical-row.directive.mjs +0 -131
- package/esm2022/navigation/logical-row.interface.mjs +0 -5
- package/esm2022/navigation/navigable-settings.mjs +0 -5
- package/esm2022/navigation/navigation-cell.interface.mjs +0 -5
- package/esm2022/navigation/navigation-change.interface.mjs +0 -5
- package/esm2022/navigation/navigation-cursor.mjs +0 -224
- package/esm2022/navigation/navigation-metadata.mjs +0 -35
- package/esm2022/navigation/navigation-mode.mjs +0 -5
- package/esm2022/navigation/navigation-model.mjs +0 -138
- package/esm2022/navigation/navigation-row.interface.mjs +0 -5
- package/esm2022/navigation/navigation.service.mjs +0 -998
- package/esm2022/navigation/toolbar-tool-name.mjs +0 -18
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/pdf/export-element.mjs +0 -135
- package/esm2022/pdf/grid-query.mjs +0 -45
- package/esm2022/pdf/pdf-command-tool.directive.mjs +0 -60
- package/esm2022/pdf/pdf-command.directive.mjs +0 -98
- package/esm2022/pdf/pdf-export-event.mjs +0 -16
- package/esm2022/pdf/pdf-margin.component.mjs +0 -38
- package/esm2022/pdf/pdf-margin.interface.mjs +0 -5
- package/esm2022/pdf/pdf-template.directive.mjs +0 -43
- package/esm2022/pdf/pdf.component.mjs +0 -331
- package/esm2022/pdf/pdf.module.mjs +0 -47
- package/esm2022/pdf/pdf.service.mjs +0 -42
- package/esm2022/progress-kendo-angular-grid.mjs +0 -8
- package/esm2022/rendering/cell-loading.template.directive.mjs +0 -39
- package/esm2022/rendering/cell-template.directive.mjs +0 -44
- package/esm2022/rendering/cell.component.mjs +0 -717
- package/esm2022/rendering/common/cell-context.mjs +0 -13
- package/esm2022/rendering/common/col-group.component.mjs +0 -98
- package/esm2022/rendering/common/dom-queries.mjs +0 -162
- package/esm2022/rendering/common/field-accessor.pipe.mjs +0 -48
- package/esm2022/rendering/common/format.pipe.mjs +0 -37
- package/esm2022/rendering/common/loading.component.mjs +0 -60
- package/esm2022/rendering/common/row-args.mjs +0 -5
- package/esm2022/rendering/common/row-class.mjs +0 -5
- package/esm2022/rendering/common/spacer.component.mjs +0 -62
- package/esm2022/rendering/constants.mjs +0 -20
- package/esm2022/rendering/details/detail-collapse-event.mjs +0 -27
- package/esm2022/rendering/details/detail-expand-event.mjs +0 -27
- package/esm2022/rendering/details/detail-template.directive.mjs +0 -61
- package/esm2022/rendering/details/details.service.mjs +0 -56
- package/esm2022/rendering/details-expand.directive.mjs +0 -136
- package/esm2022/rendering/footer/footer-template.directive.mjs +0 -48
- package/esm2022/rendering/footer/footer.component.mjs +0 -266
- package/esm2022/rendering/grid-table.directive.mjs +0 -52
- package/esm2022/rendering/groups-expand.directive.mjs +0 -149
- package/esm2022/rendering/header/header-template.directive.mjs +0 -45
- package/esm2022/rendering/header/header.component.mjs +0 -1055
- package/esm2022/rendering/list.component.mjs +0 -1176
- package/esm2022/rendering/loading-template.directive.mjs +0 -38
- package/esm2022/rendering/no-records-template.directive.mjs +0 -38
- package/esm2022/rendering/rowspan.service.mjs +0 -24
- package/esm2022/rendering/table-body.component.mjs +0 -1250
- package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +0 -83
- package/esm2022/rendering/toolbar/toolbar-navigation.service.mjs +0 -58
- package/esm2022/rendering/toolbar/toolbar-position.mjs +0 -5
- package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +0 -55
- package/esm2022/rendering/toolbar/toolbar.component.mjs +0 -159
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +0 -272
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-request-response.service.mjs +0 -624
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-tool.directive.mjs +0 -273
- package/esm2022/rendering/toolbar/tools/ai-assistant/models.mjs +0 -43
- package/esm2022/rendering/toolbar/tools/ai-assistant/utils.mjs +0 -92
- package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +0 -238
- package/esm2022/rendering/toolbar/tools/filter-command-tool.directive.mjs +0 -219
- package/esm2022/rendering/toolbar/tools/filter-tool-wrapper.component.mjs +0 -151
- package/esm2022/rendering/toolbar/tools/filter-toolbar-tool.component.mjs +0 -223
- package/esm2022/rendering/toolbar/tools/group-command-tool.directive.mjs +0 -208
- package/esm2022/rendering/toolbar/tools/group-toolbar-tool.component.mjs +0 -451
- package/esm2022/rendering/toolbar/tools/select-all-command-tool.directive.mjs +0 -93
- package/esm2022/rendering/toolbar/tools/sort-command-tool.directive.mjs +0 -222
- package/esm2022/rendering/toolbar/tools/sort-toolbar-tool.component.mjs +0 -245
- package/esm2022/row-reordering/drag-handle-template.directive.mjs +0 -44
- package/esm2022/row-reordering/drag-hint-template.directive.mjs +0 -42
- package/esm2022/row-reordering/row-reorder.service.mjs +0 -280
- package/esm2022/row-reordering/types.mjs +0 -5
- package/esm2022/row-reordering/utils.mjs +0 -88
- package/esm2022/scrolling/content-scroll-event.mjs +0 -5
- package/esm2022/scrolling/row-height.service.mjs +0 -55
- package/esm2022/scrolling/scroll-bottom-event.mjs +0 -5
- package/esm2022/scrolling/scroll-request.service.mjs +0 -24
- package/esm2022/scrolling/scroll-sync.service.mjs +0 -80
- package/esm2022/scrolling/scroller.service.mjs +0 -254
- package/esm2022/scrolling/scrollmode.mjs +0 -5
- package/esm2022/scrolling/suspend.service.mjs +0 -17
- package/esm2022/selection/cell-selection.service.mjs +0 -349
- package/esm2022/selection/marquee.directive.mjs +0 -188
- package/esm2022/selection/pair-set.mjs +0 -158
- package/esm2022/selection/selectall-checkbox.directive.mjs +0 -143
- package/esm2022/selection/selection-checkbox.directive.mjs +0 -132
- package/esm2022/selection/selection-default.mjs +0 -208
- package/esm2022/selection/selection.directive.mjs +0 -53
- package/esm2022/selection/selection.service.mjs +0 -466
- package/esm2022/selection/types.mjs +0 -5
- package/esm2022/state-management/grid-state.models.mjs +0 -26
- package/esm2022/state-management/redo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-redo.directive.mjs +0 -249
- package/esm2022/state-management/undo-redo.service.mjs +0 -21
- package/esm2022/state-management/undo-redo.stack.mjs +0 -238
- package/esm2022/utils.mjs +0 -216
|
@@ -1,127 +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 { StringFilterComponent } from "../string-filter.component";
|
|
8
|
-
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
9
|
-
import { ContextService } from '../../common/provider.service';
|
|
10
|
-
import { FormsModule } from '@angular/forms';
|
|
11
|
-
import { FilterInputDirective } from '../filter-input.directive';
|
|
12
|
-
import { FocusableDirective } from '../../navigation/focusable.directive';
|
|
13
|
-
import { FilterCellWrapperComponent } from './filter-cell-wrapper.component';
|
|
14
|
-
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
15
|
-
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
16
|
-
import * as i0 from "@angular/core";
|
|
17
|
-
import * as i1 from "../filter.service";
|
|
18
|
-
import * as i2 from "../../common/provider.service";
|
|
19
|
-
import * as i3 from "../../layout/sizing-options.service";
|
|
20
|
-
import * as i4 from "@angular/forms";
|
|
21
|
-
/**
|
|
22
|
-
* Represents a filter cell component for filtering of string columns.
|
|
23
|
-
* See the article about the [built-in filter components](slug:filter_row#toc-built-in-filter-row-components).
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```html
|
|
27
|
-
* <kendo-grid-column field="ProductName" title="Product Name">
|
|
28
|
-
* <ng-template kendoGridFilterCellTemplate let-filter let-column="column">
|
|
29
|
-
* <kendo-grid-string-filter-cell
|
|
30
|
-
* [column]="column"
|
|
31
|
-
* [filter]="filter">
|
|
32
|
-
* </kendo-grid-string-filter-cell>
|
|
33
|
-
* </ng-template>
|
|
34
|
-
* </kendo-grid-column>
|
|
35
|
-
* ```
|
|
36
|
-
* @remarks
|
|
37
|
-
* Supported children components are: {@link EqualFilterOperatorComponent}, {@link NotEqualFilterOperatorComponent}, {@link ContainsFilterOperatorComponent}, {@link DoesNotContainFilterOperatorComponent}, {@link StartsWithFilterOperatorComponent}, {@link EndsWithFilterOperatorComponent}, {@link IsNullFilterOperatorComponent}, {@link IsNotNullFilterOperatorComponent}, {@link IsEmptyFilterOperatorComponent}, {@link IsNotEmptyFilterOperatorComponent}.
|
|
38
|
-
*/
|
|
39
|
-
export class StringFilterCellComponent extends StringFilterComponent {
|
|
40
|
-
/**
|
|
41
|
-
* Sets the delay time in milliseconds before the filter value is submitted.
|
|
42
|
-
* A value of `0` means no delay.
|
|
43
|
-
* @type {number}
|
|
44
|
-
* @default 500
|
|
45
|
-
*/
|
|
46
|
-
filterDelay = 500;
|
|
47
|
-
/**
|
|
48
|
-
* Determines if the drop-down filter operators are displayed.
|
|
49
|
-
* @type {boolean}
|
|
50
|
-
* @default true
|
|
51
|
-
*/
|
|
52
|
-
showOperators = true;
|
|
53
|
-
/**
|
|
54
|
-
* The placeholder text for the filter input.
|
|
55
|
-
* @type {string}
|
|
56
|
-
*/
|
|
57
|
-
placeholder;
|
|
58
|
-
subs;
|
|
59
|
-
constructor(filterService, ctx, sizingService) {
|
|
60
|
-
super(filterService, ctx);
|
|
61
|
-
this.subs = sizingService.changes.subscribe((size) => this.size = size);
|
|
62
|
-
}
|
|
63
|
-
ngOnDestroy() {
|
|
64
|
-
if (this.subs) {
|
|
65
|
-
this.subs.unsubscribe();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* @hidden
|
|
70
|
-
*/
|
|
71
|
-
get columnLabel() {
|
|
72
|
-
const localizationMsg = this.ctx.localization.get('filterInputLabel') || '';
|
|
73
|
-
const columnName = this.column.title || this.column.field;
|
|
74
|
-
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
75
|
-
}
|
|
76
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StringFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.ContextService }, { token: i3.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
77
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: StringFilterCellComponent, isStandalone: true, selector: "kendo-grid-string-filter-cell", inputs: { filterDelay: "filterDelay", showOperators: "showOperators", placeholder: "placeholder" }, usesInheritance: true, ngImport: i0, template: `
|
|
78
|
-
<kendo-grid-filter-wrapper-cell
|
|
79
|
-
[column]="column"
|
|
80
|
-
[filter]="filter"
|
|
81
|
-
[operators]="operators"
|
|
82
|
-
[defaultOperator]="operator"
|
|
83
|
-
[showOperators]="showOperators">
|
|
84
|
-
<kendo-textbox
|
|
85
|
-
[size]="size"
|
|
86
|
-
kendoGridFocusable
|
|
87
|
-
kendoFilterInput
|
|
88
|
-
[columnLabel]="columnLabel"
|
|
89
|
-
[filterDelay]="filterDelay"
|
|
90
|
-
[placeholder]="placeholder"
|
|
91
|
-
[ngModel]="currentFilter?.value ?? null"
|
|
92
|
-
></kendo-textbox>
|
|
93
|
-
</kendo-grid-filter-wrapper-cell>
|
|
94
|
-
`, isInline: true, dependencies: [{ kind: "component", type: FilterCellWrapperComponent, selector: "kendo-grid-filter-wrapper-cell", inputs: ["showOperators"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { 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: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
95
|
-
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StringFilterCellComponent, decorators: [{
|
|
97
|
-
type: Component,
|
|
98
|
-
args: [{
|
|
99
|
-
selector: 'kendo-grid-string-filter-cell',
|
|
100
|
-
template: `
|
|
101
|
-
<kendo-grid-filter-wrapper-cell
|
|
102
|
-
[column]="column"
|
|
103
|
-
[filter]="filter"
|
|
104
|
-
[operators]="operators"
|
|
105
|
-
[defaultOperator]="operator"
|
|
106
|
-
[showOperators]="showOperators">
|
|
107
|
-
<kendo-textbox
|
|
108
|
-
[size]="size"
|
|
109
|
-
kendoGridFocusable
|
|
110
|
-
kendoFilterInput
|
|
111
|
-
[columnLabel]="columnLabel"
|
|
112
|
-
[filterDelay]="filterDelay"
|
|
113
|
-
[placeholder]="placeholder"
|
|
114
|
-
[ngModel]="currentFilter?.value ?? null"
|
|
115
|
-
></kendo-textbox>
|
|
116
|
-
</kendo-grid-filter-wrapper-cell>
|
|
117
|
-
`,
|
|
118
|
-
standalone: true,
|
|
119
|
-
imports: [FilterCellWrapperComponent, TextBoxComponent, FocusableDirective, FilterInputDirective, FormsModule]
|
|
120
|
-
}]
|
|
121
|
-
}], ctorParameters: () => [{ type: i1.FilterService }, { type: i2.ContextService }, { type: i3.SizingOptionsService }], propDecorators: { filterDelay: [{
|
|
122
|
-
type: Input
|
|
123
|
-
}], showOperators: [{
|
|
124
|
-
type: Input
|
|
125
|
-
}], placeholder: [{
|
|
126
|
-
type: Input
|
|
127
|
-
}] } });
|
|
@@ -1,172 +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
|
-
// eslint-disable no-access-missing-member
|
|
6
|
-
import { Component, Input } from '@angular/core';
|
|
7
|
-
import { ColumnComponent } from '../columns/column.component';
|
|
8
|
-
import { FilterService } from './filter.service';
|
|
9
|
-
import { BaseFilterCellComponent, localizeOperators } from './base-filter-cell.component';
|
|
10
|
-
import { isNullOrEmptyString, extractFormat } from "../utils";
|
|
11
|
-
import { toJSON } from './operators/filter-operator.base';
|
|
12
|
-
import { ContextService } from '../common/provider.service';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
import * as i1 from "./filter.service";
|
|
15
|
-
import * as i2 from "../common/provider.service";
|
|
16
|
-
const dateOperators = localizeOperators({
|
|
17
|
-
"filterEqOperator": "eq",
|
|
18
|
-
"filterNotEqOperator": "neq",
|
|
19
|
-
"filterAfterOrEqualOperator": "gte",
|
|
20
|
-
"filterAfterOperator": "gt",
|
|
21
|
-
"filterBeforeOrEqualOperator": "lte",
|
|
22
|
-
"filterBeforeOperator": "lt",
|
|
23
|
-
"filterIsNullOperator": "isnull",
|
|
24
|
-
"filterIsNotNullOperator": "isnotnull"
|
|
25
|
-
});
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
export class DateFilterComponent extends BaseFilterCellComponent {
|
|
30
|
-
ctx;
|
|
31
|
-
/**
|
|
32
|
-
* Sets the column for this filter.
|
|
33
|
-
* @type {ColumnComponent}
|
|
34
|
-
*/
|
|
35
|
-
column;
|
|
36
|
-
/**
|
|
37
|
-
* Sets the default filter operator.
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @default 'gte'
|
|
40
|
-
*/
|
|
41
|
-
operator = "gte";
|
|
42
|
-
/**
|
|
43
|
-
* Gets the current filter for the column field.
|
|
44
|
-
* @readonly
|
|
45
|
-
* @type {FilterDescriptor}
|
|
46
|
-
*/
|
|
47
|
-
get currentFilter() {
|
|
48
|
-
return this.filterByField(this.column.field);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Sets the date format used when the component is not focused.
|
|
52
|
-
* Uses `column.format` if set.
|
|
53
|
-
*/
|
|
54
|
-
set format(value) {
|
|
55
|
-
this._format = value;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Gets the date format used when the component is not focused.
|
|
59
|
-
* Uses `column.format` if set.
|
|
60
|
-
* @readonly
|
|
61
|
-
* @type {string}
|
|
62
|
-
*/
|
|
63
|
-
get format() {
|
|
64
|
-
return !isNullOrEmptyString(this._format) ? this._format : this.columnFormat;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Sets the smallest valid date value.
|
|
68
|
-
* @type {Date}
|
|
69
|
-
*/
|
|
70
|
-
min;
|
|
71
|
-
/**
|
|
72
|
-
* Sets the largest valid date value.
|
|
73
|
-
* @type {Date}
|
|
74
|
-
*/
|
|
75
|
-
max;
|
|
76
|
-
/**
|
|
77
|
-
* Sets the descriptions for the format sections in the input field.
|
|
78
|
-
* [See example](slug:placeholders_datepicker#toc-format-sections-description).
|
|
79
|
-
*/
|
|
80
|
-
formatPlaceholder;
|
|
81
|
-
/**
|
|
82
|
-
* Sets the hint shown when the value is `null`.
|
|
83
|
-
* [See example](slug:placeholders_datepicker#toc-text-hints).
|
|
84
|
-
*/
|
|
85
|
-
placeholder;
|
|
86
|
-
/**
|
|
87
|
-
* Sets the active calendar view when the calendar opens.
|
|
88
|
-
* Set `activeView` within the `topView`-`bottomView` range.
|
|
89
|
-
* @default 'month'
|
|
90
|
-
*/
|
|
91
|
-
activeView = "month";
|
|
92
|
-
/**
|
|
93
|
-
* Defines the lowest calendar view level the user can navigate to.
|
|
94
|
-
* @default 'month'
|
|
95
|
-
*/
|
|
96
|
-
bottomView = "month";
|
|
97
|
-
/**
|
|
98
|
-
* Defines the highest calendar view level the user can navigate to.
|
|
99
|
-
* @default 'century'
|
|
100
|
-
*/
|
|
101
|
-
topView = "century";
|
|
102
|
-
/**
|
|
103
|
-
* When `true`, shows a week number column in the `month` view.
|
|
104
|
-
* @default false
|
|
105
|
-
*/
|
|
106
|
-
weekNumber = false;
|
|
107
|
-
/**
|
|
108
|
-
* Gets the current filter operator for the column field.
|
|
109
|
-
* @readonly
|
|
110
|
-
* @type {string}
|
|
111
|
-
*/
|
|
112
|
-
get currentOperator() {
|
|
113
|
-
return this.currentFilter ? this.currentFilter.operator : this.operator;
|
|
114
|
-
}
|
|
115
|
-
get columnFormat() {
|
|
116
|
-
return this.column && !isNullOrEmptyString(this.column.format) ?
|
|
117
|
-
extractFormat(this.column.format) : "d";
|
|
118
|
-
}
|
|
119
|
-
_format;
|
|
120
|
-
subscription;
|
|
121
|
-
constructor(filterService, ctx) {
|
|
122
|
-
super(filterService);
|
|
123
|
-
this.ctx = ctx;
|
|
124
|
-
this.defaultOperators = dateOperators(this.ctx.localization);
|
|
125
|
-
}
|
|
126
|
-
ngOnInit() {
|
|
127
|
-
this.subscription = this.ctx.localization.changes.subscribe(this.localizationChange.bind(this));
|
|
128
|
-
}
|
|
129
|
-
ngOnDestroy() {
|
|
130
|
-
if (this.subscription) {
|
|
131
|
-
this.subscription.unsubscribe();
|
|
132
|
-
}
|
|
133
|
-
super.ngOnDestroy();
|
|
134
|
-
}
|
|
135
|
-
localizationChange() {
|
|
136
|
-
this.defaultOperators = dateOperators(this.ctx.localization);
|
|
137
|
-
if (this.operatorList.length) {
|
|
138
|
-
this.operators = toJSON(this.operatorList.toArray());
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DateFilterComponent, deps: [{ token: i1.FilterService }, { token: i2.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
142
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: DateFilterComponent, selector: "kendo-grid-date-filter-base", inputs: { column: "column", operator: "operator", format: "format", min: "min", max: "max", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", activeView: "activeView", bottomView: "bottomView", topView: "topView", weekNumber: "weekNumber" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
143
|
-
}
|
|
144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DateFilterComponent, decorators: [{
|
|
145
|
-
type: Component,
|
|
146
|
-
args: [{
|
|
147
|
-
selector: 'kendo-grid-date-filter-base',
|
|
148
|
-
template: ``
|
|
149
|
-
}]
|
|
150
|
-
}], ctorParameters: () => [{ type: i1.FilterService }, { type: i2.ContextService }], propDecorators: { column: [{
|
|
151
|
-
type: Input
|
|
152
|
-
}], operator: [{
|
|
153
|
-
type: Input
|
|
154
|
-
}], format: [{
|
|
155
|
-
type: Input
|
|
156
|
-
}], min: [{
|
|
157
|
-
type: Input
|
|
158
|
-
}], max: [{
|
|
159
|
-
type: Input
|
|
160
|
-
}], formatPlaceholder: [{
|
|
161
|
-
type: Input
|
|
162
|
-
}], placeholder: [{
|
|
163
|
-
type: Input
|
|
164
|
-
}], activeView: [{
|
|
165
|
-
type: Input
|
|
166
|
-
}], bottomView: [{
|
|
167
|
-
type: Input
|
|
168
|
-
}], topView: [{
|
|
169
|
-
type: Input
|
|
170
|
-
}], weekNumber: [{
|
|
171
|
-
type: Input
|
|
172
|
-
}] } });
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,58 +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 { Input, ViewContainerRef, Directive } from '@angular/core';
|
|
6
|
-
import { ColumnComponent } from '../columns/column.component';
|
|
7
|
-
import { anyChanged } from '../utils';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export class FilterHostDirective {
|
|
13
|
-
host;
|
|
14
|
-
column;
|
|
15
|
-
filter;
|
|
16
|
-
component;
|
|
17
|
-
constructor(host) {
|
|
18
|
-
this.host = host;
|
|
19
|
-
}
|
|
20
|
-
ngOnInit() {
|
|
21
|
-
this.component = this.host.createComponent(this.componentType());
|
|
22
|
-
this.initComponent({
|
|
23
|
-
column: this.column,
|
|
24
|
-
filter: this.filter
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
ngOnDestroy() {
|
|
28
|
-
if (this.component) {
|
|
29
|
-
this.component.destroy();
|
|
30
|
-
this.component = null;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
ngOnChanges(changes) {
|
|
34
|
-
if (anyChanged(["column", "filter"], changes)) {
|
|
35
|
-
this.initComponent({
|
|
36
|
-
column: this.column,
|
|
37
|
-
filter: this.filter
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
initComponent({ column, filter }) {
|
|
42
|
-
const instance = this.component.instance;
|
|
43
|
-
instance.column = column;
|
|
44
|
-
instance.filter = filter;
|
|
45
|
-
}
|
|
46
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterHostDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
47
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: FilterHostDirective, selector: "[kendoGridFilterHostBase]", inputs: { column: "column", filter: "filter" }, usesOnChanges: true, ngImport: i0 });
|
|
48
|
-
}
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterHostDirective, decorators: [{
|
|
50
|
-
type: Directive,
|
|
51
|
-
args: [{
|
|
52
|
-
selector: '[kendoGridFilterHostBase]'
|
|
53
|
-
}]
|
|
54
|
-
}], ctorParameters: () => [{ type: i0.ViewContainerRef }], propDecorators: { column: [{
|
|
55
|
-
type: Input
|
|
56
|
-
}], filter: [{
|
|
57
|
-
type: Input
|
|
58
|
-
}] } });
|
|
@@ -1,119 +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 { Input, ContentChild, Directive } from "@angular/core";
|
|
6
|
-
import { ColumnComponent } from "../columns/column.component";
|
|
7
|
-
import { FilterInputDirective } from "./filter-input.directive";
|
|
8
|
-
import { isPresent, isNullOrEmptyString, isBlank, isChanged } from "../utils";
|
|
9
|
-
import { BaseFilterCellComponent } from "./base-filter-cell.component";
|
|
10
|
-
import { FilterService } from "./filter.service";
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "./filter.service";
|
|
13
|
-
const EMPTY_VALUE_OPERATORS = new Set(['isnull', 'isnotnull', 'isempty', 'isnotempty']);
|
|
14
|
-
const isEmptyValueOperator = (operator) => EMPTY_VALUE_OPERATORS.has(operator);
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export class FilterInputWrapperComponent extends BaseFilterCellComponent {
|
|
19
|
-
column;
|
|
20
|
-
input;
|
|
21
|
-
get currentFilter() {
|
|
22
|
-
return this.filterByField(this.column.field);
|
|
23
|
-
}
|
|
24
|
-
get currentOperator() {
|
|
25
|
-
const filter = this.currentFilter;
|
|
26
|
-
if (!this._operator) {
|
|
27
|
-
this._operator = filter ? filter.operator : this.defaultOperator;
|
|
28
|
-
}
|
|
29
|
-
return this._operator;
|
|
30
|
-
}
|
|
31
|
-
set currentOperator(value) {
|
|
32
|
-
this._operator = value;
|
|
33
|
-
const emptyValueOperator = isEmptyValueOperator(value);
|
|
34
|
-
this.filterInputDisabled = emptyValueOperator;
|
|
35
|
-
if (emptyValueOperator) {
|
|
36
|
-
this.applyNoValueFilter(value);
|
|
37
|
-
}
|
|
38
|
-
else if (!isBlank(value) && isPresent(this.currentFilter)) {
|
|
39
|
-
this.onChange(this.currentFilter.value);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
get defaultOperator() {
|
|
43
|
-
if (!isNullOrEmptyString(this._defaultOperator)) {
|
|
44
|
-
return this._defaultOperator;
|
|
45
|
-
}
|
|
46
|
-
else if (this.operators && this.operators.length) {
|
|
47
|
-
return this.operators[0].value;
|
|
48
|
-
}
|
|
49
|
-
return "eq";
|
|
50
|
-
}
|
|
51
|
-
set defaultOperator(value) {
|
|
52
|
-
this._defaultOperator = value;
|
|
53
|
-
}
|
|
54
|
-
set filterInputDisabled(disabled) {
|
|
55
|
-
if (!this.input) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
this.input.disabled = disabled;
|
|
59
|
-
}
|
|
60
|
-
_defaultOperator;
|
|
61
|
-
_operator;
|
|
62
|
-
changeSubscription;
|
|
63
|
-
constructor(filterService) {
|
|
64
|
-
super(filterService);
|
|
65
|
-
}
|
|
66
|
-
ngAfterContentInit() {
|
|
67
|
-
if (isPresent(this.input)) {
|
|
68
|
-
this.changeSubscription = this.input.change.subscribe(this.onChange.bind(this));
|
|
69
|
-
this.filterInputDisabled = isEmptyValueOperator(this.currentOperator);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
ngOnDestroy() {
|
|
73
|
-
super.ngOnDestroy();
|
|
74
|
-
if (this.changeSubscription) {
|
|
75
|
-
this.changeSubscription.unsubscribe();
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
onChange(value) {
|
|
79
|
-
if (!isNullOrEmptyString(value) || this.filterByField(this.column.field)) {
|
|
80
|
-
this.filterChange(isNullOrEmptyString(value) ?
|
|
81
|
-
this.removeFilter(this.column.field) :
|
|
82
|
-
this.updateFilter({
|
|
83
|
-
field: this.column.field,
|
|
84
|
-
operator: this.currentOperator,
|
|
85
|
-
value: value
|
|
86
|
-
}));
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
onClear() {
|
|
90
|
-
this.onChange(null);
|
|
91
|
-
this.filterInputDisabled = isEmptyValueOperator(this.defaultOperator);
|
|
92
|
-
}
|
|
93
|
-
applyNoValueFilter(operator) {
|
|
94
|
-
this.filterChange(this.updateFilter({
|
|
95
|
-
field: this.column.field,
|
|
96
|
-
operator: operator,
|
|
97
|
-
value: null
|
|
98
|
-
}));
|
|
99
|
-
}
|
|
100
|
-
ngOnChanges(changes) {
|
|
101
|
-
if (isChanged("filter", changes, false)) {
|
|
102
|
-
this._operator = null;
|
|
103
|
-
this.filterInputDisabled = isEmptyValueOperator(this.currentOperator);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterInputWrapperComponent, deps: [{ token: i1.FilterService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
107
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: FilterInputWrapperComponent, inputs: { column: "column", defaultOperator: "defaultOperator" }, queries: [{ propertyName: "input", first: true, predicate: FilterInputDirective, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
108
|
-
}
|
|
109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterInputWrapperComponent, decorators: [{
|
|
110
|
-
type: Directive,
|
|
111
|
-
args: [{}]
|
|
112
|
-
}], ctorParameters: () => [{ type: i1.FilterService }], propDecorators: { column: [{
|
|
113
|
-
type: Input
|
|
114
|
-
}], input: [{
|
|
115
|
-
type: ContentChild,
|
|
116
|
-
args: [FilterInputDirective, { static: false }]
|
|
117
|
-
}], defaultOperator: [{
|
|
118
|
-
type: Input
|
|
119
|
-
}] } });
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, ElementRef, EventEmitter, Inject, Input, NgZone, Renderer2, Self, ContentChild } from '@angular/core';
|
|
6
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
|
-
import { debounceTime, filter } from 'rxjs/operators';
|
|
8
|
-
import { Subject } from 'rxjs';
|
|
9
|
-
import { isChanged } from '../utils';
|
|
10
|
-
import { isDocumentAvailable, KendoInput } from '@progress/kendo-angular-common';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
export class FilterInputDirective {
|
|
16
|
-
ngZone;
|
|
17
|
-
element;
|
|
18
|
-
renderer;
|
|
19
|
-
change = new EventEmitter();
|
|
20
|
-
composing = false;
|
|
21
|
-
kendoInput;
|
|
22
|
-
filterDelay = 500;
|
|
23
|
-
columnLabel;
|
|
24
|
-
set value(value) {
|
|
25
|
-
this.accessor.writeValue(value);
|
|
26
|
-
}
|
|
27
|
-
set disabled(value) {
|
|
28
|
-
this.accessor.setDisabledState(value);
|
|
29
|
-
}
|
|
30
|
-
accessor;
|
|
31
|
-
changeRequests = new Subject();
|
|
32
|
-
changeRequestsSubscription;
|
|
33
|
-
unsubscribeEvents;
|
|
34
|
-
constructor(valueAccessors, ngZone, element, renderer) {
|
|
35
|
-
this.ngZone = ngZone;
|
|
36
|
-
this.element = element;
|
|
37
|
-
this.renderer = renderer;
|
|
38
|
-
this.accessor = valueAccessors[0];
|
|
39
|
-
ngZone.runOutsideAngular(() => {
|
|
40
|
-
const unsubscribeStart = renderer.listen(element.nativeElement, 'compositionstart', () => this.composing = true);
|
|
41
|
-
const unsubscribeEnd = renderer.listen(element.nativeElement, 'compositionend', (event) => {
|
|
42
|
-
this.composing = false;
|
|
43
|
-
const value = event.target?.value;
|
|
44
|
-
this.filterDelay > 0 ?
|
|
45
|
-
this.changeRequests.next(value) :
|
|
46
|
-
this.change.emit(value);
|
|
47
|
-
});
|
|
48
|
-
this.unsubscribeEvents = () => {
|
|
49
|
-
unsubscribeStart();
|
|
50
|
-
unsubscribeEnd();
|
|
51
|
-
};
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
ngAfterViewInit() {
|
|
55
|
-
this.addAriaAttributes();
|
|
56
|
-
this.accessor.registerOnChange(x => this.filterDelay > 0 ?
|
|
57
|
-
this.changeRequests.next(x) :
|
|
58
|
-
this.change.emit(x));
|
|
59
|
-
this.subscribeChanges();
|
|
60
|
-
}
|
|
61
|
-
ngOnChanges(changes) {
|
|
62
|
-
if (isChanged('filterDelay', changes)) {
|
|
63
|
-
this.unsubscribeChanges();
|
|
64
|
-
this.subscribeChanges();
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
ngOnDestroy() {
|
|
68
|
-
this.unsubscribeChanges();
|
|
69
|
-
this.unsubscribeEvents();
|
|
70
|
-
}
|
|
71
|
-
subscribeChanges() {
|
|
72
|
-
this.changeRequestsSubscription = this.changeRequests
|
|
73
|
-
.pipe(debounceTime(this.filterDelay), filter(() => !this.composing))
|
|
74
|
-
.subscribe((x) => {
|
|
75
|
-
this.ngZone.run(() => {
|
|
76
|
-
this.change.emit(x);
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
unsubscribeChanges() {
|
|
81
|
-
if (this.changeRequestsSubscription) {
|
|
82
|
-
this.changeRequestsSubscription.unsubscribe();
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
addAriaAttributes() {
|
|
86
|
-
const ariaValue = this.columnLabel;
|
|
87
|
-
if (this.kendoInput && this.kendoInput.focusableId && isDocumentAvailable()) {
|
|
88
|
-
const focusableElement = this.element.nativeElement.querySelector(`#${this.kendoInput.focusableId}`) ||
|
|
89
|
-
this.element.nativeElement;
|
|
90
|
-
this.renderer.setAttribute(focusableElement, 'aria-label', ariaValue);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
const inputElement = this.element.nativeElement.querySelector('.k-input-inner');
|
|
94
|
-
const elementToSetLabel = inputElement ? inputElement : this.element.nativeElement;
|
|
95
|
-
if (ariaValue) {
|
|
96
|
-
this.renderer.setAttribute(elementToSetLabel, 'aria-label', ariaValue);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterInputDirective, deps: [{ token: NG_VALUE_ACCESSOR, self: true }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
101
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: FilterInputDirective, isStandalone: true, selector: "[kendoFilterInput]", inputs: { filterDelay: "filterDelay", columnLabel: "columnLabel", value: "value" }, queries: [{ propertyName: "kendoInput", first: true, predicate: KendoInput, descendants: true, static: true }], usesOnChanges: true, ngImport: i0 });
|
|
102
|
-
}
|
|
103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterInputDirective, decorators: [{
|
|
104
|
-
type: Directive,
|
|
105
|
-
args: [{
|
|
106
|
-
selector: '[kendoFilterInput]',
|
|
107
|
-
standalone: true
|
|
108
|
-
}]
|
|
109
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
110
|
-
type: Self
|
|
111
|
-
}, {
|
|
112
|
-
type: Inject,
|
|
113
|
-
args: [NG_VALUE_ACCESSOR]
|
|
114
|
-
}] }, { type: i0.NgZone }, { type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { kendoInput: [{
|
|
115
|
-
type: ContentChild,
|
|
116
|
-
args: [KendoInput, { static: true }]
|
|
117
|
-
}], filterDelay: [{
|
|
118
|
-
type: Input
|
|
119
|
-
}], columnLabel: [{
|
|
120
|
-
type: Input
|
|
121
|
-
}], value: [{
|
|
122
|
-
type: Input
|
|
123
|
-
}] } });
|