@progress/kendo-angular-grid 21.4.1 → 22.0.0
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,478 +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, ElementRef, NgZone, Renderer2, Output, EventEmitter, ViewChildren, QueryList, Optional, ChangeDetectorRef } from '@angular/core';
|
|
6
|
-
import { ColumnMenuService } from './column-menu.service';
|
|
7
|
-
import { ColumnListKeyboardNavigation } from './column-list-kb-nav.service';
|
|
8
|
-
import { Keys, normalizeKeys } from '@progress/kendo-angular-common';
|
|
9
|
-
import { Subscription } from 'rxjs';
|
|
10
|
-
import { CheckBoxComponent } from '@progress/kendo-angular-inputs';
|
|
11
|
-
import { take } from 'rxjs/operators';
|
|
12
|
-
import { ContextService } from '../common/provider.service';
|
|
13
|
-
import { AdaptiveGridService } from '../common/adaptiveness.service';
|
|
14
|
-
import { ColumnInfoService } from '../common/column-info.service';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
import * as i1 from "./column-list-kb-nav.service";
|
|
17
|
-
import * as i2 from "../common/column-info.service";
|
|
18
|
-
import * as i3 from "../common/adaptiveness.service";
|
|
19
|
-
import * as i4 from "../common/provider.service";
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
export class ColumnListComponent {
|
|
24
|
-
element;
|
|
25
|
-
ngZone;
|
|
26
|
-
renderer;
|
|
27
|
-
listNavigationService;
|
|
28
|
-
cdr;
|
|
29
|
-
columnInfoService;
|
|
30
|
-
adaptiveGridService;
|
|
31
|
-
ctx;
|
|
32
|
-
className = true;
|
|
33
|
-
get listSizeMd() {
|
|
34
|
-
return !(this.ctx?.grid?.isActionSheetExpanded);
|
|
35
|
-
}
|
|
36
|
-
get listSizeLg() {
|
|
37
|
-
return this.ctx?.grid?.isActionSheetExpanded;
|
|
38
|
-
}
|
|
39
|
-
reset = new EventEmitter();
|
|
40
|
-
apply = new EventEmitter();
|
|
41
|
-
columnChange = new EventEmitter();
|
|
42
|
-
set columns(value) {
|
|
43
|
-
this.listNavigationService.items = this.checkboxes?.toArray();
|
|
44
|
-
this._columns = value.filter(column => column.includeInChooser !== false);
|
|
45
|
-
}
|
|
46
|
-
get columns() {
|
|
47
|
-
return this._columns;
|
|
48
|
-
}
|
|
49
|
-
get checkedCheckboxesLength() {
|
|
50
|
-
return this.columns?.filter(column => column.currentlyChecked).length;
|
|
51
|
-
}
|
|
52
|
-
filteredColumns = [];
|
|
53
|
-
autoSync = true;
|
|
54
|
-
showSelectAll = false;
|
|
55
|
-
isFiltered = false;
|
|
56
|
-
ariaLabel;
|
|
57
|
-
allowHideAll = false;
|
|
58
|
-
applyText;
|
|
59
|
-
resetText;
|
|
60
|
-
selectAllText;
|
|
61
|
-
isLast;
|
|
62
|
-
isExpanded;
|
|
63
|
-
service;
|
|
64
|
-
filterable = false;
|
|
65
|
-
checkboxes;
|
|
66
|
-
get columnCheckboxes() {
|
|
67
|
-
if (this.showSelectAll) {
|
|
68
|
-
return this.checkboxes?.toArray().slice(1);
|
|
69
|
-
}
|
|
70
|
-
return this.checkboxes?.toArray();
|
|
71
|
-
}
|
|
72
|
-
get lockedColumnCheckboxes() {
|
|
73
|
-
return this.columnCheckboxes?.filter((checkbox, index) => this.filteredColumns[index]?.locked);
|
|
74
|
-
}
|
|
75
|
-
get unlockedColumnCheckboxes() {
|
|
76
|
-
return this.columnCheckboxes?.filter((checkbox, index) => !this.filteredColumns[index]?.locked);
|
|
77
|
-
}
|
|
78
|
-
get checkedCheckboxes() {
|
|
79
|
-
if (this.showSelectAll && !this.isFiltered) {
|
|
80
|
-
return this.checkboxes?.toArray().slice(1).filter(checkbox => checkbox.checkedState).length;
|
|
81
|
-
}
|
|
82
|
-
return this.checkboxes?.filter(checkbox => checkbox.checkedState).length;
|
|
83
|
-
}
|
|
84
|
-
resetButton;
|
|
85
|
-
applyButton;
|
|
86
|
-
filterInput;
|
|
87
|
-
_columns;
|
|
88
|
-
domSubscriptions = new Subscription();
|
|
89
|
-
lastDisabledCheckbox;
|
|
90
|
-
handledKeys = [Keys.ArrowDown, Keys.ArrowUp, Keys.Space];
|
|
91
|
-
constructor(element, ngZone, renderer, listNavigationService, cdr, columnInfoService, adaptiveGridService, ctx) {
|
|
92
|
-
this.element = element;
|
|
93
|
-
this.ngZone = ngZone;
|
|
94
|
-
this.renderer = renderer;
|
|
95
|
-
this.listNavigationService = listNavigationService;
|
|
96
|
-
this.cdr = cdr;
|
|
97
|
-
this.columnInfoService = columnInfoService;
|
|
98
|
-
this.adaptiveGridService = adaptiveGridService;
|
|
99
|
-
this.ctx = ctx;
|
|
100
|
-
}
|
|
101
|
-
ngOnInit() {
|
|
102
|
-
if (!this.element) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
this.ngZone.runOutsideAngular(() => {
|
|
106
|
-
this.domSubscriptions.add(this.renderer.listen(this.element.nativeElement, 'click', (e) => {
|
|
107
|
-
if (e.target.classList.contains('k-checkbox')) {
|
|
108
|
-
const label = e.target.closest('.k-column-list-item');
|
|
109
|
-
this.setTabindex(label);
|
|
110
|
-
}
|
|
111
|
-
}));
|
|
112
|
-
this.domSubscriptions.add(this.renderer.listen(this.element.nativeElement, 'keydown', this.onKeydown));
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
ngAfterViewInit() {
|
|
116
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
117
|
-
this.listNavigationService.items = this.checkboxes.toArray();
|
|
118
|
-
if (this.adaptiveGridService?.viewType !== 'columnMenu') {
|
|
119
|
-
this.listNavigationService.toggle(0, true);
|
|
120
|
-
}
|
|
121
|
-
this.updateDisabled();
|
|
122
|
-
});
|
|
123
|
-
if (this.ctx?.grid?.isActionSheetExpanded) {
|
|
124
|
-
this.domSubscriptions.add(this.adaptiveGridService.animationEnd.subscribe(() => {
|
|
125
|
-
this.listNavigationService.toggle(0, true);
|
|
126
|
-
}));
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
ngOnChanges(changes) {
|
|
130
|
-
if (!this.service) {
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
if (changes['isLast'] && this.isLast) {
|
|
134
|
-
this.service.menuTabbingService.lastFocusable = this.applyButton?.nativeElement;
|
|
135
|
-
}
|
|
136
|
-
if (changes['isExpanded'] && this.isExpanded && this.isLast && this.applyButton) {
|
|
137
|
-
this.service.menuTabbingService.lastFocusable = this.applyButton.nativeElement;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
onSelectAllCheckboxChange(checkedState) {
|
|
141
|
-
if (!checkedState && !this.allowHideAll) {
|
|
142
|
-
const columnsToKeep = [];
|
|
143
|
-
if (!columnsToKeep.length) {
|
|
144
|
-
const unlockedColumns = this.filteredColumns.filter(c => !c.locked);
|
|
145
|
-
if (unlockedColumns.length > 0) {
|
|
146
|
-
columnsToKeep.push(unlockedColumns[0]);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
if (this.lockedColumnCheckboxes.length > 0) {
|
|
150
|
-
const lockedColumns = this.filteredColumns.filter(c => c.locked);
|
|
151
|
-
if (lockedColumns.length > 0) {
|
|
152
|
-
columnsToKeep.unshift(lockedColumns[0]);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
this.filteredColumns.forEach(column => {
|
|
156
|
-
const isChecked = columnsToKeep.indexOf(column) >= 0;
|
|
157
|
-
column.currentlyChecked = isChecked;
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
this.filteredColumns.forEach(column => {
|
|
162
|
-
column.currentlyChecked = checkedState;
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
if (this.autoSync) {
|
|
166
|
-
const changedColumns = this.filteredColumns.filter(column => column.initiallyChecked !== column.currentlyChecked);
|
|
167
|
-
if (changedColumns.length > 0) {
|
|
168
|
-
changedColumns.forEach(column => {
|
|
169
|
-
column.hidden = !column.currentlyChecked;
|
|
170
|
-
column.initiallyChecked = column.currentlyChecked;
|
|
171
|
-
});
|
|
172
|
-
this.ngZone.run(() => {
|
|
173
|
-
this.columnChange.emit(changedColumns);
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
this.filteredColumns = [...this.filteredColumns];
|
|
178
|
-
this.updateDisabled();
|
|
179
|
-
}
|
|
180
|
-
ngOnDestroy() {
|
|
181
|
-
this.domSubscriptions.unsubscribe();
|
|
182
|
-
}
|
|
183
|
-
cancelChanges() {
|
|
184
|
-
this.columns.forEach((column) => {
|
|
185
|
-
column.currentlyChecked = !column.hidden;
|
|
186
|
-
column.initiallyChecked = !column.hidden;
|
|
187
|
-
});
|
|
188
|
-
this.filteredColumns.forEach((column) => {
|
|
189
|
-
column.currentlyChecked = !column.hidden;
|
|
190
|
-
column.initiallyChecked = !column.hidden;
|
|
191
|
-
});
|
|
192
|
-
this.updateDisabled();
|
|
193
|
-
this.reset.emit();
|
|
194
|
-
}
|
|
195
|
-
applyChanges() {
|
|
196
|
-
const changed = [];
|
|
197
|
-
this.columns.forEach(column => {
|
|
198
|
-
if (column.initiallyChecked !== column.currentlyChecked) {
|
|
199
|
-
column.hidden = !column.currentlyChecked;
|
|
200
|
-
changed.push(column);
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
this.updateDisabled();
|
|
204
|
-
this.apply.emit(changed);
|
|
205
|
-
if (changed.length) {
|
|
206
|
-
this.cdr.markForCheck();
|
|
207
|
-
this.columnInfoService?.changeVisibility(changed);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
focusActiveColumn(e) {
|
|
211
|
-
const keyboardEvent = e;
|
|
212
|
-
if (keyboardEvent.shiftKey) {
|
|
213
|
-
this.listNavigationService.toggle(this.listNavigationService.activeIndex, true);
|
|
214
|
-
e.preventDefault();
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
onTab(e) {
|
|
218
|
-
if (this.isLast) {
|
|
219
|
-
e.preventDefault();
|
|
220
|
-
if (this.service) {
|
|
221
|
-
this.service.menuTabbingService.firstFocusable.focus();
|
|
222
|
-
}
|
|
223
|
-
else if (this.filterable) {
|
|
224
|
-
this.filterInput?.input.nativeElement.focus();
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
this.listNavigationService.toggle(this.listNavigationService.activeIndex, true);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
onKeydown = (e) => {
|
|
232
|
-
const code = normalizeKeys(e);
|
|
233
|
-
if (this.handledKeys.includes(code)) {
|
|
234
|
-
e.preventDefault();
|
|
235
|
-
}
|
|
236
|
-
if (code === 'Tab' && e.shiftKey) {
|
|
237
|
-
this.resetButton?.nativeElement.focus();
|
|
238
|
-
e.preventDefault();
|
|
239
|
-
}
|
|
240
|
-
if (code === 'Tab' && !e.shiftKey && this.autoSync) {
|
|
241
|
-
if (this.filterable) {
|
|
242
|
-
this.filterInput?.input.nativeElement.focus();
|
|
243
|
-
}
|
|
244
|
-
e.preventDefault();
|
|
245
|
-
}
|
|
246
|
-
if (code === 'Tab' && e.shiftKey && this.autoSync && this.filterable) {
|
|
247
|
-
this.filterInput?.input.nativeElement.focus();
|
|
248
|
-
e.preventDefault();
|
|
249
|
-
}
|
|
250
|
-
if (code === 'Tab' && !e.shiftKey && !this.autoSync) {
|
|
251
|
-
this.applyButton?.nativeElement.focus();
|
|
252
|
-
e.preventDefault();
|
|
253
|
-
}
|
|
254
|
-
if (code === 'Tab' && e.shiftKey) {
|
|
255
|
-
if (!this.autoSync && this.filterable && e.target.matches('.k-column-list-item')) {
|
|
256
|
-
this.filterInput?.input.nativeElement.focus();
|
|
257
|
-
e.preventDefault();
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
this.ngZone.run(() => {
|
|
261
|
-
if (e.target.matches('.k-column-list-item')) {
|
|
262
|
-
e.preventDefault();
|
|
263
|
-
this.resetButton?.nativeElement.focus();
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
if (code === Keys.ArrowDown) {
|
|
268
|
-
this.listNavigationService.next();
|
|
269
|
-
}
|
|
270
|
-
else if (code === Keys.ArrowUp) {
|
|
271
|
-
this.listNavigationService.prev();
|
|
272
|
-
}
|
|
273
|
-
else if (code === Keys.Space && e.target.classList.contains('k-column-list-item')) {
|
|
274
|
-
this.listNavigationService.toggleCheckedState();
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
updateDisabled() {
|
|
278
|
-
const hasLockedColumns = this.columns.filter(c => c.locked).length > 0;
|
|
279
|
-
if (this.allowHideAll && !hasLockedColumns) {
|
|
280
|
-
return;
|
|
281
|
-
}
|
|
282
|
-
const currentlyCheckedUnlockedColumns = this.columns.filter(column => !column.locked && column.currentlyChecked).length;
|
|
283
|
-
const shouldEnforceMinimumColumns = hasLockedColumns || !this.allowHideAll;
|
|
284
|
-
if (shouldEnforceMinimumColumns && currentlyCheckedUnlockedColumns === 1) {
|
|
285
|
-
this.disableFirstUnlockedCheckedCheckbox();
|
|
286
|
-
}
|
|
287
|
-
else {
|
|
288
|
-
this.enableLastDisabledColumn();
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
disableFirstUnlockedCheckedCheckbox() {
|
|
292
|
-
const index = this.filteredColumns.filter(c => !c.locked).findIndex(column => column.currentlyChecked);
|
|
293
|
-
const firstUnlockedCheckedCheckbox = this.unlockedColumnCheckboxes[index];
|
|
294
|
-
this.setDisabledState(firstUnlockedCheckedCheckbox, true);
|
|
295
|
-
this.lastDisabledCheckbox = firstUnlockedCheckedCheckbox;
|
|
296
|
-
}
|
|
297
|
-
enableLastDisabledColumn() {
|
|
298
|
-
this.setDisabledState(this.lastDisabledCheckbox, false);
|
|
299
|
-
this.lastDisabledCheckbox = null;
|
|
300
|
-
}
|
|
301
|
-
setDisabledState(checkbox, disabled) {
|
|
302
|
-
if (!checkbox) {
|
|
303
|
-
return;
|
|
304
|
-
}
|
|
305
|
-
if (checkbox.disabled !== disabled) {
|
|
306
|
-
this.ngZone.runOutsideAngular(() => {
|
|
307
|
-
checkbox.disabled = disabled;
|
|
308
|
-
const checkboxElement = checkbox.hostElement.nativeElement;
|
|
309
|
-
const parentElement = checkboxElement.parentElement;
|
|
310
|
-
if (disabled) {
|
|
311
|
-
this.renderer.addClass(parentElement, 'k-disabled');
|
|
312
|
-
this.renderer.setAttribute(parentElement, 'aria-disabled', 'true');
|
|
313
|
-
}
|
|
314
|
-
else {
|
|
315
|
-
this.renderer.removeClass(parentElement, 'k-disabled');
|
|
316
|
-
this.renderer.removeAttribute(parentElement, 'aria-disabled');
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
onCheckboxChange(checkedState, column, _index) {
|
|
322
|
-
column.currentlyChecked = checkedState;
|
|
323
|
-
if (this.autoSync) {
|
|
324
|
-
column.hidden = !checkedState;
|
|
325
|
-
column.initiallyChecked = checkedState;
|
|
326
|
-
this.columnChange.emit([column]);
|
|
327
|
-
}
|
|
328
|
-
this.updateDisabled();
|
|
329
|
-
}
|
|
330
|
-
setTabindex(labelElement) {
|
|
331
|
-
if (!labelElement) {
|
|
332
|
-
return;
|
|
333
|
-
}
|
|
334
|
-
const allLabels = this.checkboxes.map(checkbox => checkbox.hostElement.nativeElement.parentElement);
|
|
335
|
-
allLabels.forEach((label) => {
|
|
336
|
-
const input = label.querySelector('input');
|
|
337
|
-
input.classList.remove('k-focus');
|
|
338
|
-
this.renderer.removeAttribute(label, 'tabindex');
|
|
339
|
-
});
|
|
340
|
-
this.renderer.setAttribute(labelElement, 'tabindex', '0');
|
|
341
|
-
labelElement.focus();
|
|
342
|
-
this.listNavigationService.activeIndex = allLabels.indexOf(labelElement);
|
|
343
|
-
}
|
|
344
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnListComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.ColumnListKeyboardNavigation }, { token: i0.ChangeDetectorRef }, { token: i2.ColumnInfoService, optional: true }, { token: i3.AdaptiveGridService, optional: true }, { token: i4.ContextService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
345
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ColumnListComponent, isStandalone: true, selector: "kendo-grid-columnlist", inputs: { columns: "columns", filteredColumns: "filteredColumns", autoSync: "autoSync", showSelectAll: "showSelectAll", isFiltered: "isFiltered", ariaLabel: "ariaLabel", allowHideAll: "allowHideAll", applyText: "applyText", resetText: "resetText", selectAllText: "selectAllText", isLast: "isLast", isExpanded: "isExpanded", service: "service", filterable: "filterable" }, outputs: { reset: "reset", apply: "apply", columnChange: "columnChange" }, host: { properties: { "class.k-column-list-wrapper": "this.className", "class.k-column-list-md": "this.listSizeMd", "class.k-column-list-lg": "this.listSizeLg" } }, providers: [ColumnListKeyboardNavigation], viewQueries: [{ propertyName: "checkboxes", predicate: CheckBoxComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
346
|
-
<div
|
|
347
|
-
class="k-column-list"
|
|
348
|
-
role="listbox"
|
|
349
|
-
aria-multiselectable="true"
|
|
350
|
-
[attr.aria-label]="ariaLabel">
|
|
351
|
-
@if (showSelectAll) {
|
|
352
|
-
<label
|
|
353
|
-
class='k-column-list-item'
|
|
354
|
-
role="option">
|
|
355
|
-
<kendo-checkbox
|
|
356
|
-
#checkbox
|
|
357
|
-
[inputAttributes]="{'data-index': '0'}"
|
|
358
|
-
[tabindex]="-1"
|
|
359
|
-
[checkedState]="checkedCheckboxesLength === columns.length"
|
|
360
|
-
(checkedStateChange)="onSelectAllCheckboxChange($event)"
|
|
361
|
-
></kendo-checkbox>
|
|
362
|
-
<span class="k-checkbox-label">{{ selectAllText }}</span>
|
|
363
|
-
</label>
|
|
364
|
-
}
|
|
365
|
-
@for (column of filteredColumns; track column; let index = $index) {
|
|
366
|
-
<label
|
|
367
|
-
class='k-column-list-item'
|
|
368
|
-
role="option">
|
|
369
|
-
<kendo-checkbox
|
|
370
|
-
#checkbox
|
|
371
|
-
[inputAttributes]="{'data-index': index.toString()}"
|
|
372
|
-
[tabindex]="-1"
|
|
373
|
-
[checkedState]="column.currentlyChecked"
|
|
374
|
-
(checkedStateChange)="onCheckboxChange($event, column, index)"
|
|
375
|
-
></kendo-checkbox>
|
|
376
|
-
<span class="k-checkbox-label">{{ column.displayTitle }}</span>
|
|
377
|
-
</label>
|
|
378
|
-
}
|
|
379
|
-
</div>
|
|
380
|
-
`, isInline: true, dependencies: [{ kind: "component", type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["checkedState", "rounded"], outputs: ["checkedStateChange"], exportAs: ["kendoCheckBox"] }] });
|
|
381
|
-
}
|
|
382
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnListComponent, decorators: [{
|
|
383
|
-
type: Component,
|
|
384
|
-
args: [{
|
|
385
|
-
selector: 'kendo-grid-columnlist',
|
|
386
|
-
providers: [ColumnListKeyboardNavigation],
|
|
387
|
-
template: `
|
|
388
|
-
<div
|
|
389
|
-
class="k-column-list"
|
|
390
|
-
role="listbox"
|
|
391
|
-
aria-multiselectable="true"
|
|
392
|
-
[attr.aria-label]="ariaLabel">
|
|
393
|
-
@if (showSelectAll) {
|
|
394
|
-
<label
|
|
395
|
-
class='k-column-list-item'
|
|
396
|
-
role="option">
|
|
397
|
-
<kendo-checkbox
|
|
398
|
-
#checkbox
|
|
399
|
-
[inputAttributes]="{'data-index': '0'}"
|
|
400
|
-
[tabindex]="-1"
|
|
401
|
-
[checkedState]="checkedCheckboxesLength === columns.length"
|
|
402
|
-
(checkedStateChange)="onSelectAllCheckboxChange($event)"
|
|
403
|
-
></kendo-checkbox>
|
|
404
|
-
<span class="k-checkbox-label">{{ selectAllText }}</span>
|
|
405
|
-
</label>
|
|
406
|
-
}
|
|
407
|
-
@for (column of filteredColumns; track column; let index = $index) {
|
|
408
|
-
<label
|
|
409
|
-
class='k-column-list-item'
|
|
410
|
-
role="option">
|
|
411
|
-
<kendo-checkbox
|
|
412
|
-
#checkbox
|
|
413
|
-
[inputAttributes]="{'data-index': index.toString()}"
|
|
414
|
-
[tabindex]="-1"
|
|
415
|
-
[checkedState]="column.currentlyChecked"
|
|
416
|
-
(checkedStateChange)="onCheckboxChange($event, column, index)"
|
|
417
|
-
></kendo-checkbox>
|
|
418
|
-
<span class="k-checkbox-label">{{ column.displayTitle }}</span>
|
|
419
|
-
</label>
|
|
420
|
-
}
|
|
421
|
-
</div>
|
|
422
|
-
`,
|
|
423
|
-
standalone: true,
|
|
424
|
-
imports: [CheckBoxComponent]
|
|
425
|
-
}]
|
|
426
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.ColumnListKeyboardNavigation }, { type: i0.ChangeDetectorRef }, { type: i2.ColumnInfoService, decorators: [{
|
|
427
|
-
type: Optional
|
|
428
|
-
}] }, { type: i3.AdaptiveGridService, decorators: [{
|
|
429
|
-
type: Optional
|
|
430
|
-
}] }, { type: i4.ContextService, decorators: [{
|
|
431
|
-
type: Optional
|
|
432
|
-
}] }], propDecorators: { className: [{
|
|
433
|
-
type: HostBinding,
|
|
434
|
-
args: ["class.k-column-list-wrapper"]
|
|
435
|
-
}], listSizeMd: [{
|
|
436
|
-
type: HostBinding,
|
|
437
|
-
args: ['class.k-column-list-md']
|
|
438
|
-
}], listSizeLg: [{
|
|
439
|
-
type: HostBinding,
|
|
440
|
-
args: ['class.k-column-list-lg']
|
|
441
|
-
}], reset: [{
|
|
442
|
-
type: Output
|
|
443
|
-
}], apply: [{
|
|
444
|
-
type: Output
|
|
445
|
-
}], columnChange: [{
|
|
446
|
-
type: Output
|
|
447
|
-
}], columns: [{
|
|
448
|
-
type: Input
|
|
449
|
-
}], filteredColumns: [{
|
|
450
|
-
type: Input
|
|
451
|
-
}], autoSync: [{
|
|
452
|
-
type: Input
|
|
453
|
-
}], showSelectAll: [{
|
|
454
|
-
type: Input
|
|
455
|
-
}], isFiltered: [{
|
|
456
|
-
type: Input
|
|
457
|
-
}], ariaLabel: [{
|
|
458
|
-
type: Input
|
|
459
|
-
}], allowHideAll: [{
|
|
460
|
-
type: Input
|
|
461
|
-
}], applyText: [{
|
|
462
|
-
type: Input
|
|
463
|
-
}], resetText: [{
|
|
464
|
-
type: Input
|
|
465
|
-
}], selectAllText: [{
|
|
466
|
-
type: Input
|
|
467
|
-
}], isLast: [{
|
|
468
|
-
type: Input
|
|
469
|
-
}], isExpanded: [{
|
|
470
|
-
type: Input
|
|
471
|
-
}], service: [{
|
|
472
|
-
type: Input
|
|
473
|
-
}], filterable: [{
|
|
474
|
-
type: Input
|
|
475
|
-
}], checkboxes: [{
|
|
476
|
-
type: ViewChildren,
|
|
477
|
-
args: [CheckBoxComponent]
|
|
478
|
-
}] } });
|
|
@@ -1,19 +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
|
-
/**
|
|
6
|
-
* Arguments for the `columnLockedChange` event.
|
|
7
|
-
*/
|
|
8
|
-
export class ColumnLockedChangeEvent {
|
|
9
|
-
/**
|
|
10
|
-
* The columns whose locked state changes.
|
|
11
|
-
*/
|
|
12
|
-
columns;
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
constructor(columns) {
|
|
17
|
-
this.columns = columns;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,89 +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, isDevMode } from '@angular/core';
|
|
6
|
-
import { displayInlineFlexIcon } from '@progress/kendo-svg-icons';
|
|
7
|
-
import { ColumnMenuErrorMessages } from '../common/error-messages';
|
|
8
|
-
import { ContextService } from '../common/provider.service';
|
|
9
|
-
import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
10
|
-
import { autoSizeColumn } from './utils';
|
|
11
|
-
import { ColumnMenuItemComponent } from './column-menu-item.component';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "../common/provider.service";
|
|
14
|
-
/**
|
|
15
|
-
* Represents the column-menu item for resizing all columns to the minimum possible width so that they fit the widest header or cell content without wrapping.
|
|
16
|
-
* [See example](slug:columnmenu_grid#toc-autosize-all-columns-item).
|
|
17
|
-
*
|
|
18
|
-
* Place this component inside a [`ColumnMenuTemplate`]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
19
|
-
* To register it as a column menu item, set the [`ColumnMenuService`]({% slug api_grid_columnmenuservice %}) passed by
|
|
20
|
-
* the template to the `service` input of the `kendo-grid-columnmenu-autosize-all-columns` component. [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```html
|
|
24
|
-
* <kendo-grid [columnMenu]="true" ...>
|
|
25
|
-
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
26
|
-
* <kendo-grid-columnmenu-autosize-all-columns [service]="service">
|
|
27
|
-
* </kendo-grid-columnmenu-autosize-all-columns>
|
|
28
|
-
* </ng-template>
|
|
29
|
-
* </kendo-grid>
|
|
30
|
-
* ```
|
|
31
|
-
* @example
|
|
32
|
-
* ```html
|
|
33
|
-
* <kendo-grid-column field="ProductName">
|
|
34
|
-
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
35
|
-
* <kendo-grid-columnmenu-autosize-all-columns [service]="service">
|
|
36
|
-
* </kendo-grid-columnmenu-autosize-all-columns>
|
|
37
|
-
* </ng-template>
|
|
38
|
-
* </kendo-grid-column>
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export class ColumnMenuAutoSizeAllColumnsComponent extends ColumnMenuItemBase {
|
|
42
|
-
ctx;
|
|
43
|
-
displayInlineFlexIcon = displayInlineFlexIcon;
|
|
44
|
-
constructor(ctx) {
|
|
45
|
-
super();
|
|
46
|
-
this.ctx = ctx;
|
|
47
|
-
}
|
|
48
|
-
ngOnInit() {
|
|
49
|
-
const isVirtualColumns = this.ctx.grid.columnMenuTemplate && this.ctx.grid.virtualColumns;
|
|
50
|
-
if (isVirtualColumns && isDevMode()) {
|
|
51
|
-
console.warn(ColumnMenuErrorMessages.autoSizeAllColumns);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Resizes all columns to the minimum possible width so that they fit the widest header or cell content without wrapping.
|
|
56
|
-
*/
|
|
57
|
-
autoSizeAllColumns() {
|
|
58
|
-
autoSizeColumn(this.ctx.grid, this.service);
|
|
59
|
-
}
|
|
60
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnMenuAutoSizeAllColumnsComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
61
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ColumnMenuAutoSizeAllColumnsComponent, isStandalone: true, selector: "kendo-grid-columnmenu-autosize-all-columns", usesInheritance: true, ngImport: i0, template: `
|
|
62
|
-
@if (!this.ctx.grid.virtualColumns) {
|
|
63
|
-
<kendo-grid-columnmenu-item
|
|
64
|
-
[text]="ctx.localization.get('autosizeAllColumns')"
|
|
65
|
-
icon="display-inline-flex"
|
|
66
|
-
[svgIcon]="displayInlineFlexIcon"
|
|
67
|
-
(itemClick)="autoSizeAllColumns()"
|
|
68
|
-
></kendo-grid-columnmenu-item>
|
|
69
|
-
}
|
|
70
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "svgIcon", "indicatorIcon", "text", "selected", "disabled", "expanded", "focused", "service", "column"], outputs: ["itemClick", "expand", "collapse"] }] });
|
|
71
|
-
}
|
|
72
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnMenuAutoSizeAllColumnsComponent, decorators: [{
|
|
73
|
-
type: Component,
|
|
74
|
-
args: [{
|
|
75
|
-
selector: 'kendo-grid-columnmenu-autosize-all-columns',
|
|
76
|
-
template: `
|
|
77
|
-
@if (!this.ctx.grid.virtualColumns) {
|
|
78
|
-
<kendo-grid-columnmenu-item
|
|
79
|
-
[text]="ctx.localization.get('autosizeAllColumns')"
|
|
80
|
-
icon="display-inline-flex"
|
|
81
|
-
[svgIcon]="displayInlineFlexIcon"
|
|
82
|
-
(itemClick)="autoSizeAllColumns()"
|
|
83
|
-
></kendo-grid-columnmenu-item>
|
|
84
|
-
}
|
|
85
|
-
`,
|
|
86
|
-
standalone: true,
|
|
87
|
-
imports: [ColumnMenuItemComponent]
|
|
88
|
-
}]
|
|
89
|
-
}], ctorParameters: () => [{ type: i1.ContextService }] });
|
|
@@ -1,97 +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, isDevMode } from '@angular/core';
|
|
6
|
-
import { maxWidthIcon } from '@progress/kendo-svg-icons';
|
|
7
|
-
import { ColumnMenuErrorMessages } from '../common/error-messages';
|
|
8
|
-
import { ContextService } from '../common/provider.service';
|
|
9
|
-
import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
10
|
-
import { autoSizeColumn } from './utils';
|
|
11
|
-
import { ColumnMenuItemComponent } from './column-menu-item.component';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "../common/provider.service";
|
|
14
|
-
/**
|
|
15
|
-
* Represents the column-menu item for resizing the specified column to the minimum possible width so that it fits the header or cell content without wrapping.
|
|
16
|
-
* [See example](slug:columnmenu_grid#toc-autosize-column-item).
|
|
17
|
-
*
|
|
18
|
-
* Place this component inside a [`ColumnMenuTemplate`]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
19
|
-
* Set the [`ColumnMenuService`]({% slug api_grid_columnmenuservice %}) and `column` passed by
|
|
20
|
-
* the template to the `service` and `column` inputs of the `kendo-grid-columnmenu-autosize-column` component.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```html
|
|
24
|
-
* <kendo-grid [columnMenu]="true" ...>
|
|
25
|
-
* <ng-template kendoGridColumnMenuTemplate let-service="service" let-column="column">
|
|
26
|
-
* <kendo-grid-columnmenu-autosize-column [column]="column" [service]="service">
|
|
27
|
-
* </kendo-grid-columnmenu-autosize-column>
|
|
28
|
-
* </ng-template>
|
|
29
|
-
* </kendo-grid>
|
|
30
|
-
* ```
|
|
31
|
-
* @example
|
|
32
|
-
* ```html
|
|
33
|
-
* <kendo-grid-column field="ProductName">
|
|
34
|
-
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
35
|
-
* <kendo-grid-columnmenu-autosize-column [column]="column" [service]="service">
|
|
36
|
-
* </kendo-grid-columnmenu-autosize-column>
|
|
37
|
-
* </ng-template>
|
|
38
|
-
* </kendo-grid-column>
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export class ColumnMenuAutoSizeColumnComponent extends ColumnMenuItemBase {
|
|
42
|
-
ctx;
|
|
43
|
-
/**
|
|
44
|
-
* Specifies the Grid column instance to resize with the auto size column option.
|
|
45
|
-
*/
|
|
46
|
-
column;
|
|
47
|
-
maxWidthIcon = maxWidthIcon;
|
|
48
|
-
constructor(ctx) {
|
|
49
|
-
super();
|
|
50
|
-
this.ctx = ctx;
|
|
51
|
-
}
|
|
52
|
-
ngOnInit() {
|
|
53
|
-
const isVirtualColumns = this.ctx.grid.columnMenuTemplate && this.ctx.grid.virtualColumns;
|
|
54
|
-
if (isVirtualColumns && isDevMode()) {
|
|
55
|
-
console.warn(ColumnMenuErrorMessages.autoSizeColumn);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Resizes the specified column to the minimum possible width so that it fits the widest header or cell content without wrapping.
|
|
60
|
-
*/
|
|
61
|
-
autoSizeColumn() {
|
|
62
|
-
autoSizeColumn(this.ctx.grid, this.service, this.column);
|
|
63
|
-
}
|
|
64
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnMenuAutoSizeColumnComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
65
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ColumnMenuAutoSizeColumnComponent, isStandalone: true, selector: "kendo-grid-columnmenu-autosize-column", inputs: { column: "column" }, usesInheritance: true, ngImport: i0, template: `
|
|
66
|
-
@if (!this.ctx.grid.virtualColumns) {
|
|
67
|
-
<kendo-grid-columnmenu-item
|
|
68
|
-
class="k-grid-columnmenu-autosize-column"
|
|
69
|
-
[text]="ctx.localization.get('autosizeThisColumn')"
|
|
70
|
-
icon="max-width"
|
|
71
|
-
[svgIcon]="maxWidthIcon"
|
|
72
|
-
(itemClick)="autoSizeColumn()"
|
|
73
|
-
></kendo-grid-columnmenu-item>
|
|
74
|
-
}
|
|
75
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "svgIcon", "indicatorIcon", "text", "selected", "disabled", "expanded", "focused", "service", "column"], outputs: ["itemClick", "expand", "collapse"] }] });
|
|
76
|
-
}
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnMenuAutoSizeColumnComponent, decorators: [{
|
|
78
|
-
type: Component,
|
|
79
|
-
args: [{
|
|
80
|
-
selector: 'kendo-grid-columnmenu-autosize-column',
|
|
81
|
-
template: `
|
|
82
|
-
@if (!this.ctx.grid.virtualColumns) {
|
|
83
|
-
<kendo-grid-columnmenu-item
|
|
84
|
-
class="k-grid-columnmenu-autosize-column"
|
|
85
|
-
[text]="ctx.localization.get('autosizeThisColumn')"
|
|
86
|
-
icon="max-width"
|
|
87
|
-
[svgIcon]="maxWidthIcon"
|
|
88
|
-
(itemClick)="autoSizeColumn()"
|
|
89
|
-
></kendo-grid-columnmenu-item>
|
|
90
|
-
}
|
|
91
|
-
`,
|
|
92
|
-
standalone: true,
|
|
93
|
-
imports: [ColumnMenuItemComponent]
|
|
94
|
-
}]
|
|
95
|
-
}], ctorParameters: () => [{ type: i1.ContextService }], propDecorators: { column: [{
|
|
96
|
-
type: Input
|
|
97
|
-
}] } });
|