@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,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,200 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Injectable } from '@angular/core';
|
|
6
|
-
import { ContextService } from '../common/provider.service';
|
|
7
|
-
import { ColumnInfoService } from '../common/column-info.service';
|
|
8
|
-
import { recursiveFlatMap } from '../utils';
|
|
9
|
-
import { Subscription } from 'rxjs';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "../common/provider.service";
|
|
12
|
-
import * as i2 from "../common/column-info.service";
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export class CellSelectionAggregateService {
|
|
17
|
-
ctx;
|
|
18
|
-
columnInfoService;
|
|
19
|
-
selectedItems = [];
|
|
20
|
-
groupedAggregates = { dates: [], numbers: [], booleans: [] };
|
|
21
|
-
aggregates = {
|
|
22
|
-
sum: null,
|
|
23
|
-
average: null,
|
|
24
|
-
min: null,
|
|
25
|
-
max: null,
|
|
26
|
-
count: null,
|
|
27
|
-
isTrue: null,
|
|
28
|
-
isFalse: null,
|
|
29
|
-
earliest: null,
|
|
30
|
-
latest: null
|
|
31
|
-
};
|
|
32
|
-
sub = new Subscription();
|
|
33
|
-
constructor(ctx, columnInfoService) {
|
|
34
|
-
this.ctx = ctx;
|
|
35
|
-
this.columnInfoService = columnInfoService;
|
|
36
|
-
}
|
|
37
|
-
ngOnDestroy() {
|
|
38
|
-
this.sub.unsubscribe();
|
|
39
|
-
}
|
|
40
|
-
isAggregateIncluded(aggregate) {
|
|
41
|
-
const { cellAggregates } = this.ctx.grid.selectable;
|
|
42
|
-
if (typeof cellAggregates !== 'boolean') {
|
|
43
|
-
return cellAggregates?.includes(aggregate);
|
|
44
|
-
}
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
init() {
|
|
48
|
-
this.sub.add(this.ctx.grid.dataStateChange.subscribe(() => {
|
|
49
|
-
// nullifies aggregates and sets default count to avoid mismatching state -
|
|
50
|
-
// https://github.com/telerik/kendo-angular-private/issues/2964
|
|
51
|
-
this.nullifyAggregates();
|
|
52
|
-
if (this.isAggregateIncluded('count')) {
|
|
53
|
-
this.aggregates['count'] = 0;
|
|
54
|
-
}
|
|
55
|
-
}));
|
|
56
|
-
if (this.ctx.grid.selectable.cellAggregates) {
|
|
57
|
-
if (this.isAggregateIncluded('count')) {
|
|
58
|
-
this.aggregates['count'] = 0;
|
|
59
|
-
}
|
|
60
|
-
const selectionDirective = this.ctx.grid.selectionDirective;
|
|
61
|
-
if (selectionDirective && !this.isRowSelection) {
|
|
62
|
-
this.selectedItems = selectionDirective.selectedKeys;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
onSelectionChange(selectionArgs) {
|
|
67
|
-
this.handleSelectedItems(selectionArgs);
|
|
68
|
-
this.nullifyAggregates();
|
|
69
|
-
this.handleAggregateChanges();
|
|
70
|
-
return this.aggregates;
|
|
71
|
-
}
|
|
72
|
-
get isRowSelection() {
|
|
73
|
-
return typeof this.ctx.grid.selectable === 'boolean' || !this.ctx.grid.selectable.cell;
|
|
74
|
-
}
|
|
75
|
-
handleAggregateChanges() {
|
|
76
|
-
const lockedColumns = this.columnInfoService.lockedLeafColumns.toArray();
|
|
77
|
-
const nonLockedColumns = this.columnInfoService.nonLockedLeafColumns.toArray();
|
|
78
|
-
const selectedItemsLength = this.selectedItems.length;
|
|
79
|
-
const columns = [...lockedColumns, ...nonLockedColumns];
|
|
80
|
-
const fields = columns.map(col => col.field);
|
|
81
|
-
if (this.isAggregateIncluded('count')) {
|
|
82
|
-
this.aggregates['count'] = this.isRowSelection ? (selectedItemsLength * columns.length) : selectedItemsLength;
|
|
83
|
-
}
|
|
84
|
-
this.selectedItems.forEach((item) => {
|
|
85
|
-
if (this.isRowSelection) {
|
|
86
|
-
fields.forEach((field) => {
|
|
87
|
-
const cellValue = item.dataItem;
|
|
88
|
-
if (cellValue && cellValue.hasOwnProperty(field)) {
|
|
89
|
-
const cellValue = item.dataItem[field];
|
|
90
|
-
this.groupAggregates(cellValue);
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
else if (!this.isRowSelection) {
|
|
95
|
-
// Enables working with the current Grid data regardless of its form (array, GridDataResult, GroupedResult).
|
|
96
|
-
// Currently gets the item by index only - https://github.com/telerik/kendo-angular-private/issues/2964
|
|
97
|
-
const selectedItem = this.ctx.grid.flatData.flatMap(recursiveFlatMap)[item.itemKey];
|
|
98
|
-
const field = fields[item.columnKey];
|
|
99
|
-
if (selectedItem && selectedItem.hasOwnProperty(field)) {
|
|
100
|
-
const cellValue = selectedItem[fields[item.columnKey]];
|
|
101
|
-
this.groupAggregates(cellValue);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
this.calculateAggregates();
|
|
106
|
-
}
|
|
107
|
-
groupAggregates(aggregate) {
|
|
108
|
-
if (typeof aggregate === 'number') {
|
|
109
|
-
this.groupedAggregates.numbers.push(aggregate);
|
|
110
|
-
}
|
|
111
|
-
else if (typeof aggregate === 'boolean') {
|
|
112
|
-
this.groupedAggregates.booleans.push(aggregate);
|
|
113
|
-
}
|
|
114
|
-
else if (aggregate instanceof Date) {
|
|
115
|
-
this.groupedAggregates.dates.push(aggregate);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
calculateAggregates() {
|
|
119
|
-
if (this.groupedAggregates.numbers.length > 0) {
|
|
120
|
-
if (this.isAggregateIncluded('min')) {
|
|
121
|
-
this.aggregates['min'] = Math.min(...this.groupedAggregates.numbers);
|
|
122
|
-
}
|
|
123
|
-
if (this.isAggregateIncluded('max')) {
|
|
124
|
-
this.aggregates['max'] = Math.max(...this.groupedAggregates.numbers);
|
|
125
|
-
}
|
|
126
|
-
if (this.isAggregateIncluded('sum')) {
|
|
127
|
-
this.aggregates['sum'] = this.groupedAggregates.numbers.reduce((acc, curr) => acc += curr, 0);
|
|
128
|
-
}
|
|
129
|
-
if (this.isAggregateIncluded('average')) {
|
|
130
|
-
this.aggregates['average'] = this.aggregates['sum'] / this.groupedAggregates.numbers.length;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
if (this.groupedAggregates.booleans.length > 0) {
|
|
134
|
-
if (this.isAggregateIncluded('isTrue')) {
|
|
135
|
-
const isTrueCount = this.groupedAggregates.booleans.filter(bool => bool).length;
|
|
136
|
-
this.aggregates['isTrue'] = isTrueCount > 0 ? isTrueCount : null;
|
|
137
|
-
}
|
|
138
|
-
if (this.isAggregateIncluded('isFalse')) {
|
|
139
|
-
const isFalseCount = this.groupedAggregates.booleans.length - this.aggregates['isTrue'];
|
|
140
|
-
this.aggregates['isFalse'] = isFalseCount > 0 ? isFalseCount : null;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
if (this.groupedAggregates.dates.length > 0) {
|
|
144
|
-
if (this.isAggregateIncluded('earliest')) {
|
|
145
|
-
this.aggregates['earliest'] = new Date(Math.min(...this.groupedAggregates.dates));
|
|
146
|
-
}
|
|
147
|
-
if (this.isAggregateIncluded('latest')) {
|
|
148
|
-
this.aggregates['latest'] = new Date(Math.max(...this.groupedAggregates.dates));
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
handleSelectedItems(selectionArgs) {
|
|
153
|
-
const rowOrCellSelect = `${this.isRowSelection ? 'selectedRows' : 'selectedCells'}`;
|
|
154
|
-
const rowOrCellDeselect = `${this.isRowSelection ? 'deselectedRows' : 'deselectedCells'}`;
|
|
155
|
-
const selectedItems = selectionArgs[rowOrCellSelect];
|
|
156
|
-
const deselectedItems = selectionArgs[rowOrCellDeselect];
|
|
157
|
-
if (!this.isRowSelection) {
|
|
158
|
-
// Needed when we have column groups with cell selection, the deselected items are duplicated
|
|
159
|
-
deselectedItems.forEach((item, index) => {
|
|
160
|
-
if (index + 1 < deselectedItems.length) {
|
|
161
|
-
if (item.itemKey === deselectedItems[index + 1].itemKey
|
|
162
|
-
&& item.columnKey === deselectedItems[index + 1].columnKey) {
|
|
163
|
-
deselectedItems.splice(index, 1);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
if (selectedItems.length > 0) {
|
|
169
|
-
selectedItems.forEach((item) => {
|
|
170
|
-
this.selectedItems = [...this.selectedItems, item];
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
if (deselectedItems.length > 0) {
|
|
174
|
-
if (this.isRowSelection) {
|
|
175
|
-
deselectedItems.forEach((row) => {
|
|
176
|
-
this.selectedItems = this.selectedItems.filter((elem) => elem.dataItem !== row.dataItem);
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
deselectedItems.forEach((cell) => {
|
|
181
|
-
const index = this.selectedItems.findIndex((elem) => elem.itemKey === cell.itemKey && elem.columnKey === cell.columnKey);
|
|
182
|
-
this.selectedItems.splice(index, 1);
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
nullifyAggregates() {
|
|
188
|
-
this.groupedAggregates = { dates: [], numbers: [], booleans: [] };
|
|
189
|
-
this.aggregates['count'] = null;
|
|
190
|
-
this.aggregates['sum'] = this.aggregates['average'] = null;
|
|
191
|
-
this.aggregates['max'] = this.aggregates['min'] = null;
|
|
192
|
-
this.aggregates['isFalse'] = this.aggregates['isTrue'] = null;
|
|
193
|
-
this.aggregates['earliest'] = this.aggregates['latest'] = null;
|
|
194
|
-
}
|
|
195
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CellSelectionAggregateService, deps: [{ token: i1.ContextService }, { token: i2.ColumnInfoService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
196
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CellSelectionAggregateService });
|
|
197
|
-
}
|
|
198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CellSelectionAggregateService, decorators: [{
|
|
199
|
-
type: Injectable
|
|
200
|
-
}], ctorParameters: () => [{ type: i1.ContextService }, { type: i2.ColumnInfoService }] });
|
|
@@ -1,30 +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 } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the status bar template of the Grid. Use this directive to customize how the Grid displays aggregates in the status bar.
|
|
9
|
-
*
|
|
10
|
-
* The template context provides:
|
|
11
|
-
* - `aggregates`—The [`SelectionAggregates`]({% slug api_grid_selectionaggregates %}) object with all calculated aggregates.
|
|
12
|
-
*
|
|
13
|
-
* Use the Angular [`ngFor`](link:site.data.urls.angular['ngfor']) structural directive and the [`KeyValuePipe`](https://angular.io/api/common/KeyValuePipe)
|
|
14
|
-
* to loop through the aggregates as key-value pairs.
|
|
15
|
-
*/
|
|
16
|
-
export class StatusBarTemplateDirective {
|
|
17
|
-
templateRef;
|
|
18
|
-
constructor(templateRef) {
|
|
19
|
-
this.templateRef = templateRef;
|
|
20
|
-
}
|
|
21
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StatusBarTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
22
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: StatusBarTemplateDirective, isStandalone: true, selector: "[kendoGridStatusBarTemplate]", ngImport: i0 });
|
|
23
|
-
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StatusBarTemplateDirective, decorators: [{
|
|
25
|
-
type: Directive,
|
|
26
|
-
args: [{
|
|
27
|
-
selector: '[kendoGridStatusBarTemplate]',
|
|
28
|
-
standalone: true
|
|
29
|
-
}]
|
|
30
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
@@ -1,70 +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 { StatusBarTemplateDirective } from './status-bar-template.directive';
|
|
7
|
-
import { CellSelectionAggregateService } from './selection-aggregate.service';
|
|
8
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "./selection-aggregate.service";
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export class StatusBarComponent {
|
|
15
|
-
aggregateService;
|
|
16
|
-
hostClasses = true;
|
|
17
|
-
get isStatusBarTemplate() {
|
|
18
|
-
return this.statusBarTemplate ? '' : 'none';
|
|
19
|
-
}
|
|
20
|
-
hostAriaLive = 'polite';
|
|
21
|
-
statusBarTemplate;
|
|
22
|
-
constructor(aggregateService) {
|
|
23
|
-
this.aggregateService = aggregateService;
|
|
24
|
-
}
|
|
25
|
-
ngOnInit() {
|
|
26
|
-
this.aggregateService.init();
|
|
27
|
-
}
|
|
28
|
-
get aggregates() {
|
|
29
|
-
return this.aggregateService.aggregates;
|
|
30
|
-
}
|
|
31
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StatusBarComponent, deps: [{ token: i1.CellSelectionAggregateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: StatusBarComponent, isStandalone: true, selector: "kendo-grid-status-bar", inputs: { statusBarTemplate: "statusBarTemplate" }, host: { properties: { "class.k-selection-aggregates": "this.hostClasses", "class.k-grid-selection-aggregates": "this.hostClasses", "style.display": "this.isStatusBarTemplate", "attr.aria-live": "this.hostAriaLive" } }, ngImport: i0, template: `
|
|
33
|
-
@if (statusBarTemplate) {
|
|
34
|
-
<ng-template
|
|
35
|
-
[ngTemplateOutlet]="statusBarTemplate?.templateRef"
|
|
36
|
-
[ngTemplateOutletContext]="{ aggregates: aggregates }">
|
|
37
|
-
</ng-template>
|
|
38
|
-
}
|
|
39
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
40
|
-
}
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StatusBarComponent, decorators: [{
|
|
42
|
-
type: Component,
|
|
43
|
-
args: [{
|
|
44
|
-
selector: 'kendo-grid-status-bar',
|
|
45
|
-
template: `
|
|
46
|
-
@if (statusBarTemplate) {
|
|
47
|
-
<ng-template
|
|
48
|
-
[ngTemplateOutlet]="statusBarTemplate?.templateRef"
|
|
49
|
-
[ngTemplateOutletContext]="{ aggregates: aggregates }">
|
|
50
|
-
</ng-template>
|
|
51
|
-
}
|
|
52
|
-
`,
|
|
53
|
-
standalone: true,
|
|
54
|
-
imports: [NgTemplateOutlet]
|
|
55
|
-
}]
|
|
56
|
-
}], ctorParameters: () => [{ type: i1.CellSelectionAggregateService }], propDecorators: { hostClasses: [{
|
|
57
|
-
type: HostBinding,
|
|
58
|
-
args: ['class.k-selection-aggregates']
|
|
59
|
-
}, {
|
|
60
|
-
type: HostBinding,
|
|
61
|
-
args: ['class.k-grid-selection-aggregates']
|
|
62
|
-
}], isStatusBarTemplate: [{
|
|
63
|
-
type: HostBinding,
|
|
64
|
-
args: ['style.display']
|
|
65
|
-
}], hostAriaLive: [{
|
|
66
|
-
type: HostBinding,
|
|
67
|
-
args: ['attr.aria-live']
|
|
68
|
-
}], statusBarTemplate: [{
|
|
69
|
-
type: Input
|
|
70
|
-
}] } });
|
|
@@ -1,318 +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, ChangeDetectorRef, ViewChild, EventEmitter, Output, ElementRef, Optional } from '@angular/core';
|
|
6
|
-
import { ColumnInfoService } from '../common/column-info.service';
|
|
7
|
-
import { EventsOutsideAngularDirective, PrefixTemplateDirective, replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
8
|
-
import { arrowRotateCcwIcon, checkIcon, searchIcon } from '@progress/kendo-svg-icons';
|
|
9
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
10
|
-
import { ColumnListComponent } from './column-list.component';
|
|
11
|
-
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
12
|
-
import { NgClass } from '@angular/common';
|
|
13
|
-
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
14
|
-
import { ColumnMenuService } from './column-menu.service';
|
|
15
|
-
import { ContextService } from '../common/provider.service';
|
|
16
|
-
import { filterBy } from '@progress/kendo-data-query';
|
|
17
|
-
import * as i0 from "@angular/core";
|
|
18
|
-
import * as i1 from "../common/column-info.service";
|
|
19
|
-
import * as i2 from "../common/provider.service";
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
export class ColumnChooserContentComponent {
|
|
24
|
-
cdr;
|
|
25
|
-
columnInfoService;
|
|
26
|
-
ctx;
|
|
27
|
-
resetButton;
|
|
28
|
-
applyButton;
|
|
29
|
-
columnList;
|
|
30
|
-
filterInput;
|
|
31
|
-
filterable = true;
|
|
32
|
-
showSelectAll = true;
|
|
33
|
-
showCheckedCount = true;
|
|
34
|
-
allowHideAll = false;
|
|
35
|
-
autoSync = false;
|
|
36
|
-
actionsClass = 'k-actions k-actions-stretched k-actions-horizontal';
|
|
37
|
-
closeOnReset = true;
|
|
38
|
-
set columns(value) {
|
|
39
|
-
this._columns = value;
|
|
40
|
-
}
|
|
41
|
-
get columns() {
|
|
42
|
-
return this._columns;
|
|
43
|
-
}
|
|
44
|
-
isLast;
|
|
45
|
-
isExpanded;
|
|
46
|
-
service;
|
|
47
|
-
close = new EventEmitter();
|
|
48
|
-
get selectedItemsText() {
|
|
49
|
-
const count = this.columnList?.checkedCheckboxesLength || 0;
|
|
50
|
-
const localizedMessage = this.messageFor('columnChooserSelectedColumnsCount');
|
|
51
|
-
return replaceMessagePlaceholder(localizedMessage, 'selectedColumnsCount', count.toString());
|
|
52
|
-
}
|
|
53
|
-
get actionSheetOpened() {
|
|
54
|
-
return this.ctx?.grid?.isActionSheetExpanded;
|
|
55
|
-
}
|
|
56
|
-
searchIcon = searchIcon;
|
|
57
|
-
checkIcon = checkIcon;
|
|
58
|
-
arrowRotateCcwIcon = arrowRotateCcwIcon;
|
|
59
|
-
applyText;
|
|
60
|
-
resetText;
|
|
61
|
-
filteredColumns = [];
|
|
62
|
-
isFiltered = false;
|
|
63
|
-
_columns = [];
|
|
64
|
-
constructor(cdr, columnInfoService, ctx) {
|
|
65
|
-
this.cdr = cdr;
|
|
66
|
-
this.columnInfoService = columnInfoService;
|
|
67
|
-
this.ctx = ctx;
|
|
68
|
-
}
|
|
69
|
-
ngOnInit() {
|
|
70
|
-
this.applyText = this.ctx?.localization.get('columnsApply');
|
|
71
|
-
this.resetText = this.ctx?.localization.get('columnsReset');
|
|
72
|
-
}
|
|
73
|
-
ngAfterViewInit() {
|
|
74
|
-
this.filteredColumns = this.columnInfoService?.leafNamedColumns.filter(column => {
|
|
75
|
-
if (column.includeInChooser !== false) {
|
|
76
|
-
column.initiallyChecked = column.currentlyChecked = !column.hidden;
|
|
77
|
-
return true;
|
|
78
|
-
}
|
|
79
|
-
return false;
|
|
80
|
-
});
|
|
81
|
-
this.cdr.detectChanges();
|
|
82
|
-
}
|
|
83
|
-
ngAfterViewChecked() {
|
|
84
|
-
this.columnList.resetButton = this.resetButton;
|
|
85
|
-
this.columnList.applyButton = this.applyButton;
|
|
86
|
-
this.columnList.filterInput = this.filterInput;
|
|
87
|
-
}
|
|
88
|
-
onFilter(value) {
|
|
89
|
-
this.isFiltered = value.length > 0;
|
|
90
|
-
this.showSelectAll = !this.isFiltered;
|
|
91
|
-
const filterDescriptor = {
|
|
92
|
-
field: 'displayTitle',
|
|
93
|
-
operator: 'contains',
|
|
94
|
-
value: value
|
|
95
|
-
};
|
|
96
|
-
this.filteredColumns = filterBy(this.columnInfoService?.leafNamedColumns, filterDescriptor);
|
|
97
|
-
this.cdr.detectChanges();
|
|
98
|
-
this.columnList.listNavigationService.activeIndex = 0;
|
|
99
|
-
this.columnList.listNavigationService.items = this.columnList.checkboxes?.toArray();
|
|
100
|
-
}
|
|
101
|
-
messageFor = token => this.ctx?.localization.get(token);
|
|
102
|
-
onChange(changed) {
|
|
103
|
-
this.cdr.markForCheck();
|
|
104
|
-
this.columnInfoService?.changeVisibility(changed);
|
|
105
|
-
}
|
|
106
|
-
applyChanges() {
|
|
107
|
-
this.columnList.applyChanges();
|
|
108
|
-
this.close.emit();
|
|
109
|
-
}
|
|
110
|
-
cancelChanges() {
|
|
111
|
-
this.columnList.cancelChanges();
|
|
112
|
-
if (this.closeOnReset) {
|
|
113
|
-
this.close.emit();
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
onTab(e) {
|
|
117
|
-
if (e.key === 'Tab' && !e.shiftKey) {
|
|
118
|
-
this.columnList.listNavigationService.toggle(this.columnList.listNavigationService.activeIndex, true);
|
|
119
|
-
e.preventDefault();
|
|
120
|
-
}
|
|
121
|
-
if (e.key === 'Tab' && e.shiftKey && !this.service) {
|
|
122
|
-
this.columnList.resetButton?.nativeElement.focus();
|
|
123
|
-
e.preventDefault();
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
onApplyButtonKeydown(e) {
|
|
127
|
-
if (e.key === 'Tab') {
|
|
128
|
-
this.columnList.focusActiveColumn(e);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnChooserContentComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.ColumnInfoService, optional: true }, { token: i2.ContextService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
132
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ColumnChooserContentComponent, isStandalone: true, selector: "kendo-grid-column-chooser-content", inputs: { filterable: "filterable", showSelectAll: "showSelectAll", showCheckedCount: "showCheckedCount", allowHideAll: "allowHideAll", autoSync: "autoSync", actionsClass: "actionsClass", closeOnReset: "closeOnReset", columns: "columns", isLast: "isLast", isExpanded: "isExpanded", service: "service" }, outputs: { close: "close" }, viewQueries: [{ propertyName: "resetButton", first: true, predicate: ["resetButton"], descendants: true }, { propertyName: "applyButton", first: true, predicate: ["applyButton"], descendants: true }, { propertyName: "columnList", first: true, predicate: ["columnList"], descendants: true }, { propertyName: "filterInput", first: true, predicate: ["filterInput"], descendants: true }], ngImport: i0, template: `
|
|
133
|
-
<form class="k-filter-menu">
|
|
134
|
-
<div class="k-filter-menu-container">
|
|
135
|
-
@if (filterable) {
|
|
136
|
-
<kendo-textbox
|
|
137
|
-
#filterInput
|
|
138
|
-
class="k-searchbox"
|
|
139
|
-
(valueChange)="onFilter($event)"
|
|
140
|
-
[kendoEventsOutsideAngular]="{'keydown': onTab}"
|
|
141
|
-
[scope]="this"
|
|
142
|
-
>
|
|
143
|
-
<ng-template kendoPrefixTemplate>
|
|
144
|
-
<kendo-icon-wrapper
|
|
145
|
-
[name]="'search'"
|
|
146
|
-
[svgIcon]="searchIcon">
|
|
147
|
-
</kendo-icon-wrapper>
|
|
148
|
-
</ng-template>
|
|
149
|
-
</kendo-textbox>
|
|
150
|
-
}
|
|
151
|
-
<kendo-grid-columnlist
|
|
152
|
-
#columnList
|
|
153
|
-
[columns]="columns"
|
|
154
|
-
[filteredColumns]="filteredColumns"
|
|
155
|
-
[ariaLabel]="messageFor('columns')"
|
|
156
|
-
[showSelectAll]="showSelectAll"
|
|
157
|
-
[isLast]="isLast"
|
|
158
|
-
[isFiltered]="isFiltered"
|
|
159
|
-
[filterable]="filterable"
|
|
160
|
-
[isExpanded]="isExpanded"
|
|
161
|
-
[service]="service"
|
|
162
|
-
[applyText]="messageFor('columnsApply')"
|
|
163
|
-
[resetText]="messageFor('columnsReset')"
|
|
164
|
-
[selectAllText]="messageFor('columnChooserSelectAll')"
|
|
165
|
-
[autoSync]="autoSync"
|
|
166
|
-
[allowHideAll]="allowHideAll"
|
|
167
|
-
(columnChange)="onChange($event)"
|
|
168
|
-
>
|
|
169
|
-
</kendo-grid-columnlist>
|
|
170
|
-
@if (showCheckedCount) {
|
|
171
|
-
<div class="k-filter-selected-items">
|
|
172
|
-
{{selectedItemsText}}
|
|
173
|
-
</div>
|
|
174
|
-
}
|
|
175
|
-
@if (!autoSync && !actionSheetOpened) {
|
|
176
|
-
<div [ngClass]="actionsClass">
|
|
177
|
-
<button
|
|
178
|
-
#applyButton
|
|
179
|
-
kendoButton
|
|
180
|
-
type="button"
|
|
181
|
-
icon="check"
|
|
182
|
-
[svgIcon]="checkIcon"
|
|
183
|
-
themeColor="primary"
|
|
184
|
-
(click)="applyChanges()"
|
|
185
|
-
(keydown)="onApplyButtonKeydown($event)"
|
|
186
|
-
>{{ applyText }}</button>
|
|
187
|
-
<button
|
|
188
|
-
#resetButton
|
|
189
|
-
kendoButton
|
|
190
|
-
type="button"
|
|
191
|
-
icon="reset"
|
|
192
|
-
(keydown.tab)="columnList.onTab($event)"
|
|
193
|
-
[svgIcon]="arrowRotateCcwIcon"
|
|
194
|
-
(click)="cancelChanges()"
|
|
195
|
-
>{{ resetText }}</button>
|
|
196
|
-
</div>
|
|
197
|
-
}
|
|
198
|
-
</div>
|
|
199
|
-
</form>
|
|
200
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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"] }, { kind: "component", type: ColumnListComponent, selector: "kendo-grid-columnlist", inputs: ["columns", "filteredColumns", "autoSync", "showSelectAll", "isFiltered", "ariaLabel", "allowHideAll", "applyText", "resetText", "selectAllText", "isLast", "isExpanded", "service", "filterable"], outputs: ["reset", "apply", "columnChange"] }, { 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: PrefixTemplateDirective, selector: "[kendoPrefixTemplate]", inputs: ["showSeparator"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
201
|
-
}
|
|
202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnChooserContentComponent, decorators: [{
|
|
203
|
-
type: Component,
|
|
204
|
-
args: [{
|
|
205
|
-
selector: 'kendo-grid-column-chooser-content',
|
|
206
|
-
template: `
|
|
207
|
-
<form class="k-filter-menu">
|
|
208
|
-
<div class="k-filter-menu-container">
|
|
209
|
-
@if (filterable) {
|
|
210
|
-
<kendo-textbox
|
|
211
|
-
#filterInput
|
|
212
|
-
class="k-searchbox"
|
|
213
|
-
(valueChange)="onFilter($event)"
|
|
214
|
-
[kendoEventsOutsideAngular]="{'keydown': onTab}"
|
|
215
|
-
[scope]="this"
|
|
216
|
-
>
|
|
217
|
-
<ng-template kendoPrefixTemplate>
|
|
218
|
-
<kendo-icon-wrapper
|
|
219
|
-
[name]="'search'"
|
|
220
|
-
[svgIcon]="searchIcon">
|
|
221
|
-
</kendo-icon-wrapper>
|
|
222
|
-
</ng-template>
|
|
223
|
-
</kendo-textbox>
|
|
224
|
-
}
|
|
225
|
-
<kendo-grid-columnlist
|
|
226
|
-
#columnList
|
|
227
|
-
[columns]="columns"
|
|
228
|
-
[filteredColumns]="filteredColumns"
|
|
229
|
-
[ariaLabel]="messageFor('columns')"
|
|
230
|
-
[showSelectAll]="showSelectAll"
|
|
231
|
-
[isLast]="isLast"
|
|
232
|
-
[isFiltered]="isFiltered"
|
|
233
|
-
[filterable]="filterable"
|
|
234
|
-
[isExpanded]="isExpanded"
|
|
235
|
-
[service]="service"
|
|
236
|
-
[applyText]="messageFor('columnsApply')"
|
|
237
|
-
[resetText]="messageFor('columnsReset')"
|
|
238
|
-
[selectAllText]="messageFor('columnChooserSelectAll')"
|
|
239
|
-
[autoSync]="autoSync"
|
|
240
|
-
[allowHideAll]="allowHideAll"
|
|
241
|
-
(columnChange)="onChange($event)"
|
|
242
|
-
>
|
|
243
|
-
</kendo-grid-columnlist>
|
|
244
|
-
@if (showCheckedCount) {
|
|
245
|
-
<div class="k-filter-selected-items">
|
|
246
|
-
{{selectedItemsText}}
|
|
247
|
-
</div>
|
|
248
|
-
}
|
|
249
|
-
@if (!autoSync && !actionSheetOpened) {
|
|
250
|
-
<div [ngClass]="actionsClass">
|
|
251
|
-
<button
|
|
252
|
-
#applyButton
|
|
253
|
-
kendoButton
|
|
254
|
-
type="button"
|
|
255
|
-
icon="check"
|
|
256
|
-
[svgIcon]="checkIcon"
|
|
257
|
-
themeColor="primary"
|
|
258
|
-
(click)="applyChanges()"
|
|
259
|
-
(keydown)="onApplyButtonKeydown($event)"
|
|
260
|
-
>{{ applyText }}</button>
|
|
261
|
-
<button
|
|
262
|
-
#resetButton
|
|
263
|
-
kendoButton
|
|
264
|
-
type="button"
|
|
265
|
-
icon="reset"
|
|
266
|
-
(keydown.tab)="columnList.onTab($event)"
|
|
267
|
-
[svgIcon]="arrowRotateCcwIcon"
|
|
268
|
-
(click)="cancelChanges()"
|
|
269
|
-
>{{ resetText }}</button>
|
|
270
|
-
</div>
|
|
271
|
-
}
|
|
272
|
-
</div>
|
|
273
|
-
</form>
|
|
274
|
-
`,
|
|
275
|
-
standalone: true,
|
|
276
|
-
imports: [NgClass, ButtonComponent, ColumnListComponent, TextBoxComponent, PrefixTemplateDirective, IconWrapperComponent, EventsOutsideAngularDirective]
|
|
277
|
-
}]
|
|
278
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.ColumnInfoService, decorators: [{
|
|
279
|
-
type: Optional
|
|
280
|
-
}] }, { type: i2.ContextService, decorators: [{
|
|
281
|
-
type: Optional
|
|
282
|
-
}] }], propDecorators: { resetButton: [{
|
|
283
|
-
type: ViewChild,
|
|
284
|
-
args: ['resetButton']
|
|
285
|
-
}], applyButton: [{
|
|
286
|
-
type: ViewChild,
|
|
287
|
-
args: ['applyButton']
|
|
288
|
-
}], columnList: [{
|
|
289
|
-
type: ViewChild,
|
|
290
|
-
args: ['columnList']
|
|
291
|
-
}], filterInput: [{
|
|
292
|
-
type: ViewChild,
|
|
293
|
-
args: ['filterInput']
|
|
294
|
-
}], filterable: [{
|
|
295
|
-
type: Input
|
|
296
|
-
}], showSelectAll: [{
|
|
297
|
-
type: Input
|
|
298
|
-
}], showCheckedCount: [{
|
|
299
|
-
type: Input
|
|
300
|
-
}], allowHideAll: [{
|
|
301
|
-
type: Input
|
|
302
|
-
}], autoSync: [{
|
|
303
|
-
type: Input
|
|
304
|
-
}], actionsClass: [{
|
|
305
|
-
type: Input
|
|
306
|
-
}], closeOnReset: [{
|
|
307
|
-
type: Input
|
|
308
|
-
}], columns: [{
|
|
309
|
-
type: Input
|
|
310
|
-
}], isLast: [{
|
|
311
|
-
type: Input
|
|
312
|
-
}], isExpanded: [{
|
|
313
|
-
type: Input
|
|
314
|
-
}], service: [{
|
|
315
|
-
type: Input
|
|
316
|
-
}], close: [{
|
|
317
|
-
type: Output
|
|
318
|
-
}] } });
|