@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,195 +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 { forwardRef, Component, SkipSelf, Host, Optional, QueryList, ContentChildren, Input } from '@angular/core';
|
|
6
|
-
import { CellTemplateDirective } from '../rendering/cell-template.directive';
|
|
7
|
-
import { EditTemplateDirective } from '../editing/edit-template.directive';
|
|
8
|
-
import { ColumnBase } from './column-base';
|
|
9
|
-
import { ColumnComponent } from "./column.component";
|
|
10
|
-
import { isPresent } from "../utils";
|
|
11
|
-
import { IdService } from '../common/id.service';
|
|
12
|
-
import { ColumnConfigurationErrorMessages } from '../common/error-messages';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
import * as i1 from "./column-base";
|
|
15
|
-
import * as i2 from "../common/id.service";
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export function isSpanColumnComponent(column) {
|
|
20
|
-
return column.isSpanColumn;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Represents a column that spans multiple data cells while keeping the individual
|
|
24
|
-
* header and footer cells ([see example]({% slug spanned_columns_grid %})).
|
|
25
|
-
* Use this column to create flexible layouts and keep built-in UI for
|
|
26
|
-
* [sorting]({% slug sorting_grid %}), [filtering]({% slug filtering_grid %}), and
|
|
27
|
-
* [grouping]({% slug grouping_grid %}). Wrap the columns you want to merge inside the `<kendo-grid-span-column>` tag.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```html
|
|
31
|
-
* <kendo-grid-span-column>
|
|
32
|
-
* <kendo-grid-column field="ID"></kendo-grid-column>
|
|
33
|
-
* <kendo-grid-column field="Name"></kendo-grid-column>
|
|
34
|
-
* <ng-template kendoGridCellTemplate let-dataItem>
|
|
35
|
-
* <p>{{ dataItem.ID }}</p>
|
|
36
|
-
* <p>{{ dataItem.Name }}</p>
|
|
37
|
-
* </ng-template>
|
|
38
|
-
* </kendo-grid-span-column>
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export class SpanColumnComponent extends ColumnBase {
|
|
42
|
-
/*
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
isSpanColumn = true;
|
|
46
|
-
template = new QueryList();
|
|
47
|
-
editTemplate = new QueryList();
|
|
48
|
-
/**
|
|
49
|
-
* @hidden
|
|
50
|
-
*/
|
|
51
|
-
children = new QueryList();
|
|
52
|
-
/**
|
|
53
|
-
* @hidden
|
|
54
|
-
*/
|
|
55
|
-
title;
|
|
56
|
-
/**
|
|
57
|
-
* @hidden
|
|
58
|
-
*/
|
|
59
|
-
headerStyle;
|
|
60
|
-
/**
|
|
61
|
-
* @hidden
|
|
62
|
-
*/
|
|
63
|
-
footerStyle;
|
|
64
|
-
/**
|
|
65
|
-
* @hidden
|
|
66
|
-
*/
|
|
67
|
-
headerClass;
|
|
68
|
-
/**
|
|
69
|
-
* @hidden
|
|
70
|
-
*/
|
|
71
|
-
footerClass;
|
|
72
|
-
/**
|
|
73
|
-
* @hidden
|
|
74
|
-
*/
|
|
75
|
-
includeInChooser = false;
|
|
76
|
-
/**
|
|
77
|
-
* Sets whether the edit template of the column is rendered.
|
|
78
|
-
* To enable editing for a spanned column, set an edit template for it ([see example](slug:custom_editors_grid#setting-up-custom-editors)).
|
|
79
|
-
* @default false
|
|
80
|
-
*/
|
|
81
|
-
set editable(value) {
|
|
82
|
-
this._editable = value;
|
|
83
|
-
}
|
|
84
|
-
get editable() {
|
|
85
|
-
return isPresent(this.editTemplateRef) && this._editable;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* @hidden
|
|
89
|
-
* added for backwards compitability
|
|
90
|
-
*/
|
|
91
|
-
set width(_value) {
|
|
92
|
-
}
|
|
93
|
-
get width() {
|
|
94
|
-
return this.children.reduce((total, column) => total + column.width, 0);
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* @hidden
|
|
98
|
-
*/
|
|
99
|
-
get leafIndex() {
|
|
100
|
-
return this.children.first.leafIndex;
|
|
101
|
-
}
|
|
102
|
-
_editable = true;
|
|
103
|
-
constructor(parent, idService) {
|
|
104
|
-
super(parent, idService);
|
|
105
|
-
if (parent && parent.isSpanColumn) {
|
|
106
|
-
throw new Error(ColumnConfigurationErrorMessages.nestedInside('SpanColumnComponent', 'SpanColumnComponent'));
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* @hidden
|
|
111
|
-
*/
|
|
112
|
-
get templateRef() {
|
|
113
|
-
const template = this.template.first;
|
|
114
|
-
return template ? template.templateRef : undefined;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* @hidden
|
|
118
|
-
*/
|
|
119
|
-
get editTemplateRef() {
|
|
120
|
-
const editTemplate = this.editTemplate.first;
|
|
121
|
-
return editTemplate ? editTemplate.templateRef : undefined;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* @hidden
|
|
125
|
-
*/
|
|
126
|
-
get colspan() {
|
|
127
|
-
return this.children.filter(c => c.isVisible).length;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Toggles the locked (frozen) state of the columns ([see example](slug:locked_columns_grid)).
|
|
131
|
-
* @default false
|
|
132
|
-
*/
|
|
133
|
-
set locked(value) {
|
|
134
|
-
this._locked = value;
|
|
135
|
-
}
|
|
136
|
-
get locked() {
|
|
137
|
-
return this._locked || this.children.some(c => c.locked);
|
|
138
|
-
}
|
|
139
|
-
get childrenArray() {
|
|
140
|
-
return this.children.toArray();
|
|
141
|
-
}
|
|
142
|
-
get hasChildren() {
|
|
143
|
-
return this.children.length > 0;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* @hidden
|
|
147
|
-
*
|
|
148
|
-
* Used to hide the cellRowspan property from the public API.
|
|
149
|
-
*/
|
|
150
|
-
set cellRowspan(cellRowSpan) {
|
|
151
|
-
super.cellRowspan = cellRowSpan;
|
|
152
|
-
}
|
|
153
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpanColumnComponent, deps: [{ token: i1.ColumnBase, host: true, optional: true, skipSelf: true }, { token: i2.IdService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
154
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: SpanColumnComponent, isStandalone: true, selector: "kendo-grid-span-column", inputs: { editable: "editable", locked: "locked" }, providers: [
|
|
155
|
-
{
|
|
156
|
-
provide: ColumnBase,
|
|
157
|
-
useExisting: forwardRef(() => SpanColumnComponent)
|
|
158
|
-
}
|
|
159
|
-
], queries: [{ propertyName: "template", predicate: CellTemplateDirective }, { propertyName: "editTemplate", predicate: EditTemplateDirective }, { propertyName: "children", predicate: ColumnComponent }], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
160
|
-
}
|
|
161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpanColumnComponent, decorators: [{
|
|
162
|
-
type: Component,
|
|
163
|
-
args: [{
|
|
164
|
-
providers: [
|
|
165
|
-
{
|
|
166
|
-
provide: ColumnBase,
|
|
167
|
-
useExisting: forwardRef(() => SpanColumnComponent)
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
selector: 'kendo-grid-span-column',
|
|
171
|
-
template: ``,
|
|
172
|
-
standalone: true
|
|
173
|
-
}]
|
|
174
|
-
}], ctorParameters: () => [{ type: i1.ColumnBase, decorators: [{
|
|
175
|
-
type: SkipSelf
|
|
176
|
-
}, {
|
|
177
|
-
type: Host
|
|
178
|
-
}, {
|
|
179
|
-
type: Optional
|
|
180
|
-
}] }, { type: i2.IdService, decorators: [{
|
|
181
|
-
type: Optional
|
|
182
|
-
}] }], propDecorators: { template: [{
|
|
183
|
-
type: ContentChildren,
|
|
184
|
-
args: [CellTemplateDirective, { descendants: false }]
|
|
185
|
-
}], editTemplate: [{
|
|
186
|
-
type: ContentChildren,
|
|
187
|
-
args: [EditTemplateDirective, { descendants: false }]
|
|
188
|
-
}], children: [{
|
|
189
|
-
type: ContentChildren,
|
|
190
|
-
args: [ColumnComponent]
|
|
191
|
-
}], editable: [{
|
|
192
|
-
type: Input
|
|
193
|
-
}], locked: [{
|
|
194
|
-
type: Input
|
|
195
|
-
}] } });
|
|
@@ -1,72 +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 { Subject } from "rxjs";
|
|
7
|
-
import { AdaptiveService } from "@progress/kendo-angular-utils";
|
|
8
|
-
import { ContextService } from "./provider.service";
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "./provider.service";
|
|
11
|
-
import * as i2 from "@progress/kendo-angular-utils";
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*
|
|
15
|
-
* The AdaptiveGridService is used to provide common information for the ActionSheet used in adaptive mode.
|
|
16
|
-
*/
|
|
17
|
-
export class AdaptiveGridService {
|
|
18
|
-
ctx;
|
|
19
|
-
adaptiveService;
|
|
20
|
-
/**
|
|
21
|
-
* Emits when the ActionSheet view animation ends.
|
|
22
|
-
*/
|
|
23
|
-
get animationEnd() {
|
|
24
|
-
return this.animationEndSubject.asObservable();
|
|
25
|
-
}
|
|
26
|
-
columnMenuService;
|
|
27
|
-
columns = [];
|
|
28
|
-
secondaryView;
|
|
29
|
-
viewType;
|
|
30
|
-
popupRef;
|
|
31
|
-
column;
|
|
32
|
-
filterMenuContainer;
|
|
33
|
-
filterMenuContainerComponentRef;
|
|
34
|
-
animationEndSubject = new Subject();
|
|
35
|
-
constructor(ctx, adaptiveService) {
|
|
36
|
-
this.ctx = ctx;
|
|
37
|
-
this.adaptiveService = adaptiveService;
|
|
38
|
-
}
|
|
39
|
-
submitFilter() {
|
|
40
|
-
this.filterMenuContainer.submit();
|
|
41
|
-
this.ctx.grid.adaptiveRenderer.actionSheet.toggle(false);
|
|
42
|
-
this.reset();
|
|
43
|
-
}
|
|
44
|
-
resetFilter() {
|
|
45
|
-
this.filterMenuContainer.reset();
|
|
46
|
-
this.ctx.grid.adaptiveRenderer.actionSheet.toggle(false);
|
|
47
|
-
this.reset();
|
|
48
|
-
}
|
|
49
|
-
reset() {
|
|
50
|
-
this.ctx.grid.adaptiveRenderer.actionSheet.currentView = 1;
|
|
51
|
-
this.filterMenuContainerComponentRef?.destroy();
|
|
52
|
-
this.column = null;
|
|
53
|
-
this.popupRef = null;
|
|
54
|
-
this.filterMenuContainer = null;
|
|
55
|
-
this.viewType = null;
|
|
56
|
-
this.secondaryView = null;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Notifies that the ActionSheet animation has ended.
|
|
60
|
-
*/
|
|
61
|
-
notifyAnimationEnd() {
|
|
62
|
-
this.animationEndSubject.next();
|
|
63
|
-
}
|
|
64
|
-
get windowSize() {
|
|
65
|
-
return this.adaptiveService.size;
|
|
66
|
-
}
|
|
67
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AdaptiveGridService, deps: [{ token: i1.ContextService }, { token: i2.AdaptiveService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
68
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AdaptiveGridService });
|
|
69
|
-
}
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AdaptiveGridService, decorators: [{
|
|
71
|
-
type: Injectable
|
|
72
|
-
}], ctorParameters: () => [{ type: i1.ContextService }, { type: i2.AdaptiveService }] });
|
|
@@ -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,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,197 +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, EventEmitter, Input, NgZone, Output, Renderer2, isDevMode } from '@angular/core';
|
|
6
|
-
import { ClipboardService } from './clipboard.service';
|
|
7
|
-
import { GridComponent } from '../grid.component';
|
|
8
|
-
import { hasObservers, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
9
|
-
import { Subscription } from 'rxjs';
|
|
10
|
-
import { take } from 'rxjs/operators';
|
|
11
|
-
import { closest, contains } from '../rendering/common/dom-queries';
|
|
12
|
-
import { recursiveFlatMap } from '../utils';
|
|
13
|
-
import { ClipboardErrorMessages } from './error-messages';
|
|
14
|
-
import * as i0 from "@angular/core";
|
|
15
|
-
import * as i1 from "../grid.component";
|
|
16
|
-
import * as i2 from "./clipboard.service";
|
|
17
|
-
/**
|
|
18
|
-
* Enables built-in clipboard support for the Grid. Allows copy, cut, and paste interactions.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```html
|
|
22
|
-
* <kendo-grid kendoGridClipboard></kendo-grid>
|
|
23
|
-
* ```
|
|
24
|
-
* @remarks
|
|
25
|
-
* Applied to: {@link GridComponent}.
|
|
26
|
-
*/
|
|
27
|
-
export class GridClipboardDirective {
|
|
28
|
-
host;
|
|
29
|
-
clipboardService;
|
|
30
|
-
renderer;
|
|
31
|
-
zone;
|
|
32
|
-
/**
|
|
33
|
-
* Sets the clipboard operation target. Possible values are `'activeCell'` and `'selection'`.([See example]({% slug clipboard_grid %}#toc-clipboard-target))
|
|
34
|
-
*
|
|
35
|
-
* @default 'selection'
|
|
36
|
-
*/
|
|
37
|
-
set clipboardTarget(value) {
|
|
38
|
-
if (isDevMode()) {
|
|
39
|
-
this.zone.onStable.pipe(take(1)).subscribe(() => {
|
|
40
|
-
if (value === 'activeCell' && !(this.host.navigable.length)) {
|
|
41
|
-
console.warn(ClipboardErrorMessages.clipboardTarget.activeCellNavigable);
|
|
42
|
-
}
|
|
43
|
-
else if (value === 'selection' && !(this.host.selectable || this.host.selectionDirective)) {
|
|
44
|
-
console.warn(ClipboardErrorMessages.selectionSelectable);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
this._target = value;
|
|
49
|
-
}
|
|
50
|
-
get clipboardTarget() {
|
|
51
|
-
return this._target;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Configures the clipboard directive settings.
|
|
55
|
-
*
|
|
56
|
-
* @default { wholeRow: false, copyHeaders: false, copy: true, cut: true, paste: true }
|
|
57
|
-
*/
|
|
58
|
-
set clipboardSettings(value) {
|
|
59
|
-
this._clipboardSettings = Object.assign({}, this._clipboardSettings, value);
|
|
60
|
-
}
|
|
61
|
-
get clipboardSettings() {
|
|
62
|
-
return this._clipboardSettings;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Fires when a clipboard action (`cut`, `copy`, or `paste`) occurs in the Grid.
|
|
66
|
-
*/
|
|
67
|
-
clipboard = new EventEmitter();
|
|
68
|
-
_target = 'selection';
|
|
69
|
-
_clipboardSettings = {
|
|
70
|
-
wholeRow: false,
|
|
71
|
-
copyHeaders: false,
|
|
72
|
-
copy: true,
|
|
73
|
-
cut: true,
|
|
74
|
-
paste: true
|
|
75
|
-
};
|
|
76
|
-
subs = new Subscription();
|
|
77
|
-
constructor(host, clipboardService, renderer, zone) {
|
|
78
|
-
this.host = host;
|
|
79
|
-
this.clipboardService = clipboardService;
|
|
80
|
-
this.renderer = renderer;
|
|
81
|
-
this.zone = zone;
|
|
82
|
-
}
|
|
83
|
-
ngAfterViewInit() {
|
|
84
|
-
if (!isDocumentAvailable()) {
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
if (this.clipboardTarget === 'selection' && !(this.host.selectable || this.host.selectionDirective)) {
|
|
88
|
-
console.warn(ClipboardErrorMessages.selectionSelectable);
|
|
89
|
-
}
|
|
90
|
-
// needed due to the following issue in Chrome
|
|
91
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=1156117&q=focus%20programmatically%20paste&can=2
|
|
92
|
-
this.zone.runOutsideAngular(() => {
|
|
93
|
-
this.subs.add(this.renderer.listen(document, 'copy', (args) => this.onClipboard('copy', args)));
|
|
94
|
-
this.subs.add(this.renderer.listen(document, 'cut', (args) => this.onClipboard('cut', args)));
|
|
95
|
-
this.subs.add(this.renderer.listen(document, 'paste', (args) => this.onClipboard('paste', args)));
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
ngOnDestroy() {
|
|
99
|
-
this.subs.unsubscribe();
|
|
100
|
-
}
|
|
101
|
-
onClipboard = (operationType, args) => {
|
|
102
|
-
if (!this.clipboardSettings[operationType] || !this.inGrid(args)) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
const gridData = Array.isArray(this.host.data) ? this.host.data : this.host.data.data;
|
|
106
|
-
const gridDataItems = gridData.flatMap(recursiveFlatMap);
|
|
107
|
-
const selection = this.host.selection;
|
|
108
|
-
const selectionDirective = this.host.selectionDirective;
|
|
109
|
-
const targetType = this.clipboardTarget;
|
|
110
|
-
const isCellSelection = (this.host.selectable?.cell || selectionDirective.isCellSelectionMode);
|
|
111
|
-
let clipboardData = [];
|
|
112
|
-
switch (targetType) {
|
|
113
|
-
case 'activeCell':
|
|
114
|
-
{
|
|
115
|
-
const targetCell = { ...this.host.activeCell };
|
|
116
|
-
clipboardData = targetCell && [{ dataItem: targetCell.dataItem, dataRowIndex: targetCell.dataRowIndex, colIndex: targetCell.colIndex }];
|
|
117
|
-
}
|
|
118
|
-
break;
|
|
119
|
-
case 'selection':
|
|
120
|
-
{
|
|
121
|
-
const identifier = selectionDirective.selectionKey;
|
|
122
|
-
clipboardData = gridDataItems.flatMap((item, index) => {
|
|
123
|
-
if (identifier) {
|
|
124
|
-
const key = typeof identifier === 'string' ? item[identifier] : identifier({ index: index + this.host.skip, dataItem: item });
|
|
125
|
-
return isCellSelection ?
|
|
126
|
-
selection.some(s => s.itemKey === key) ? [{ dataItem: item, dataRowIndex: index + this.host.skip }] : [] :
|
|
127
|
-
selection.indexOf(key) > -1 ? [{ dataItem: item, dataRowIndex: index + this.host.skip }] : [];
|
|
128
|
-
}
|
|
129
|
-
return isCellSelection ?
|
|
130
|
-
selection.some(s => s.itemKey === index + this.host.skip) ? [{ dataItem: item, dataRowIndex: index + this.host.skip }] : [] :
|
|
131
|
-
selection.indexOf(index + this.host.skip) > -1 ? [{ dataItem: item, dataRowIndex: index + this.host.skip }] : [];
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
const isPaste = operationType === 'paste';
|
|
137
|
-
const pastedData = args.clipboardData.getData('text');
|
|
138
|
-
const visibleCols = this.host.columns.toArray().filter(c => c.isVisible);
|
|
139
|
-
if (visibleCols.some(c => c.orderIndex > 0)) { // columns have been reordered
|
|
140
|
-
visibleCols.sort((a, b) => a.orderIndex - b.orderIndex);
|
|
141
|
-
}
|
|
142
|
-
const data = isPaste ?
|
|
143
|
-
{
|
|
144
|
-
dataString: pastedData,
|
|
145
|
-
gridItems: this.clipboardService.getGridData(pastedData, visibleCols, this.clipboardTarget, clipboardData[0]?.dataRowIndex, {
|
|
146
|
-
wholeRow: this.clipboardSettings.wholeRow,
|
|
147
|
-
isCellSelection
|
|
148
|
-
})
|
|
149
|
-
} :
|
|
150
|
-
this.clipboardService.createClipboardData(clipboardData || [], visibleCols, {
|
|
151
|
-
wholeRow: this.clipboardSettings.wholeRow || (this.clipboardTarget === 'selection' && !isCellSelection),
|
|
152
|
-
target: this.clipboardTarget,
|
|
153
|
-
copyHeaders: this.clipboardSettings.copyHeaders,
|
|
154
|
-
operationType
|
|
155
|
-
});
|
|
156
|
-
!isPaste && navigator.clipboard.writeText(data.dataString);
|
|
157
|
-
if (hasObservers(this.clipboard)) {
|
|
158
|
-
this.zone.run(() => {
|
|
159
|
-
this.clipboard.emit({
|
|
160
|
-
type: operationType,
|
|
161
|
-
originalEvent: args,
|
|
162
|
-
clipboardData: data.dataString,
|
|
163
|
-
gridData: data.gridItems,
|
|
164
|
-
target: {
|
|
165
|
-
dataRowIndex: this.clipboardService.targetRowIndex,
|
|
166
|
-
colField: this.clipboardService.targetColField,
|
|
167
|
-
dataItem: clipboardData.find(item => item.dataRowIndex === this.clipboardService.targetRowIndex)?.dataItem
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
this.clipboardService.targetColField = this.clipboardService.targetRowIndex = null;
|
|
173
|
-
};
|
|
174
|
-
inGrid = (args) => {
|
|
175
|
-
const target = document.activeElement.matches('.k-table-td') ? document.activeElement : args.target;
|
|
176
|
-
const inContentArea = closest(target, node => node.parentElement?.classList.contains('k-grid-container'));
|
|
177
|
-
const inHost = contains(this.host.wrapper.nativeElement, target);
|
|
178
|
-
return target && inHost && inContentArea;
|
|
179
|
-
};
|
|
180
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GridClipboardDirective, deps: [{ token: i1.GridComponent }, { token: i2.ClipboardService }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
181
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: GridClipboardDirective, isStandalone: true, selector: "[kendoGridClipboard]", inputs: { clipboardTarget: "clipboardTarget", clipboardSettings: "clipboardSettings" }, outputs: { clipboard: "clipboard" }, providers: [ClipboardService], exportAs: ["kendoGridClipboard"], ngImport: i0 });
|
|
182
|
-
}
|
|
183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GridClipboardDirective, decorators: [{
|
|
184
|
-
type: Directive,
|
|
185
|
-
args: [{
|
|
186
|
-
selector: '[kendoGridClipboard]',
|
|
187
|
-
exportAs: 'kendoGridClipboard',
|
|
188
|
-
providers: [ClipboardService],
|
|
189
|
-
standalone: true
|
|
190
|
-
}]
|
|
191
|
-
}], ctorParameters: () => [{ type: i1.GridComponent }, { type: i2.ClipboardService }, { type: i0.Renderer2 }, { type: i0.NgZone }], propDecorators: { clipboardTarget: [{
|
|
192
|
-
type: Input
|
|
193
|
-
}], clipboardSettings: [{
|
|
194
|
-
type: Input
|
|
195
|
-
}], clipboard: [{
|
|
196
|
-
type: Output
|
|
197
|
-
}] } });
|