@progress/kendo-angular-grid 21.4.1 → 22.0.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/column-menu/column-menu-item-base.d.ts +1 -1
- package/columns/column-base.d.ts +1 -1
- package/common/toolbar-tool-base.directive.d.ts +1 -1
- package/editing/toolbar-editing-tool-base.directive.d.ts +1 -1
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/editing-directives/row-editing-directive-base.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-grid.mjs +666 -666
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/filtering/boolean-filter.component.d.ts +1 -1
- package/filtering/date-filter.component.d.ts +1 -1
- package/filtering/filter-host.directive.d.ts +1 -1
- package/filtering/filter-input-wrapper.component.d.ts +1 -1
- package/filtering/numeric-filter.component.d.ts +1 -1
- package/filtering/operators/filter-operator.base.d.ts +1 -1
- package/filtering/string-filter.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +28 -36
- package/schematics/ngAdd/index.js +7 -7
- package/selection/selection-default.d.ts +1 -1
- package/esm2022/adaptiveness/adaptive-mode.mjs +0 -5
- package/esm2022/adaptiveness/adaptive-renderer.component.mjs +0 -1270
- package/esm2022/aggregates/aggregate-types.mjs +0 -5
- package/esm2022/aggregates/selection-aggregate.service.mjs +0 -200
- package/esm2022/aggregates/status-bar-template.directive.mjs +0 -30
- package/esm2022/aggregates/status-bar.component.mjs +0 -70
- package/esm2022/column-menu/column-chooser-content.component.mjs +0 -318
- package/esm2022/column-menu/column-chooser.component.mjs +0 -230
- package/esm2022/column-menu/column-list-kb-nav.service.mjs +0 -40
- package/esm2022/column-menu/column-list.component.mjs +0 -478
- package/esm2022/column-menu/column-locked-change-event.mjs +0 -19
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +0 -89
- package/esm2022/column-menu/column-menu-autosize.component.mjs +0 -97
- package/esm2022/column-menu/column-menu-chooser.component.mjs +0 -151
- package/esm2022/column-menu/column-menu-container.component.mjs +0 -67
- package/esm2022/column-menu/column-menu-expandable-item.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-filter.component.mjs +0 -152
- package/esm2022/column-menu/column-menu-item-base.mjs +0 -44
- package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +0 -45
- package/esm2022/column-menu/column-menu-item.component.mjs +0 -514
- package/esm2022/column-menu/column-menu-item.directive.mjs +0 -164
- package/esm2022/column-menu/column-menu-lock.component.mjs +0 -118
- package/esm2022/column-menu/column-menu-position.component.mjs +0 -196
- package/esm2022/column-menu/column-menu-settings.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-sort.component.mjs +0 -119
- package/esm2022/column-menu/column-menu-stick.component.mjs +0 -120
- package/esm2022/column-menu/column-menu-template.directive.mjs +0 -47
- package/esm2022/column-menu/column-menu.component.mjs +0 -839
- package/esm2022/column-menu/column-menu.service.mjs +0 -71
- package/esm2022/column-menu/column-sticky-change-event.mjs +0 -19
- package/esm2022/column-menu/column-visibility-change-event.mjs +0 -19
- package/esm2022/column-menu/utils.mjs +0 -52
- package/esm2022/column-resizing/column-handle.directive.mjs +0 -499
- package/esm2022/column-resizing/column-resize.interface.mjs +0 -5
- package/esm2022/column-resizing/column-resizing.service.mjs +0 -214
- package/esm2022/column-resizing/table.directive.mjs +0 -141
- package/esm2022/columns/cell-rowspan.mjs +0 -5
- package/esm2022/columns/checkbox-column.component.mjs +0 -106
- package/esm2022/columns/column-base.mjs +0 -432
- package/esm2022/columns/column-common.mjs +0 -73
- package/esm2022/columns/column-group.component.mjs +0 -135
- package/esm2022/columns/column-list.mjs +0 -94
- package/esm2022/columns/column.component.mjs +0 -198
- package/esm2022/columns/columns-container.mjs +0 -101
- package/esm2022/columns/command-column.component.mjs +0 -80
- package/esm2022/columns/reorder-column.component.mjs +0 -114
- package/esm2022/columns/sort-settings.mjs +0 -18
- package/esm2022/columns/span-column.component.mjs +0 -195
- package/esm2022/common/adaptiveness.service.mjs +0 -72
- package/esm2022/common/cell-click-event-args.interface.mjs +0 -5
- package/esm2022/common/clipboard-types.mjs +0 -5
- package/esm2022/common/clipboard.directive.mjs +0 -197
- package/esm2022/common/clipboard.service.mjs +0 -221
- package/esm2022/common/column-info.service.mjs +0 -92
- package/esm2022/common/create-form-group.mjs +0 -5
- package/esm2022/common/data-layout-mode.mjs +0 -5
- package/esm2022/common/default-track-by.mjs +0 -13
- package/esm2022/common/dom-events.service.mjs +0 -27
- package/esm2022/common/error-messages.mjs +0 -64
- package/esm2022/common/event-emitter.mjs +0 -39
- package/esm2022/common/fetch-data-callback.mjs +0 -5
- package/esm2022/common/field-datatype.mjs +0 -5
- package/esm2022/common/filter-descriptor-differ.mjs +0 -69
- package/esm2022/common/filter-operator.interface.mjs +0 -5
- package/esm2022/common/grid-col-size.mjs +0 -5
- package/esm2022/common/id.service.mjs +0 -59
- package/esm2022/common/pager-settings.mjs +0 -20
- package/esm2022/common/preventable-event.mjs +0 -24
- package/esm2022/common/provider.service.mjs +0 -42
- package/esm2022/common/remove-confirmation.mjs +0 -5
- package/esm2022/common/resizable-settings.mjs +0 -9
- package/esm2022/common/single-popup.service.mjs +0 -158
- package/esm2022/common/size-options.mjs +0 -5
- package/esm2022/common/sort.service.mjs +0 -14
- package/esm2022/common/toolbar-tool-base.directive.mjs +0 -85
- package/esm2022/constants.mjs +0 -16
- package/esm2022/data/change-event-args.interface.mjs +0 -5
- package/esm2022/data/change-notification.service.mjs +0 -30
- package/esm2022/data/data-item.interface.mjs +0 -5
- package/esm2022/data/data-mapping.service.mjs +0 -136
- package/esm2022/data/data.collection.mjs +0 -87
- package/esm2022/data/data.iterators.mjs +0 -221
- package/esm2022/data/grid-item.interface.mjs +0 -5
- package/esm2022/data/group-footer-item.interface.mjs +0 -5
- package/esm2022/data/group-item.interface.mjs +0 -5
- package/esm2022/databinding.directive.mjs +0 -233
- package/esm2022/directives.mjs +0 -504
- package/esm2022/dragdrop/column-reorder-config.mjs +0 -5
- package/esm2022/dragdrop/column-reorder-event.mjs +0 -31
- package/esm2022/dragdrop/column-reorder.service.mjs +0 -20
- package/esm2022/dragdrop/common.mjs +0 -69
- package/esm2022/dragdrop/context-types.mjs +0 -5
- package/esm2022/dragdrop/drag-and-drop.service.mjs +0 -65
- package/esm2022/dragdrop/drag-hint.service.mjs +0 -137
- package/esm2022/dragdrop/draggable-column.directive.mjs +0 -137
- package/esm2022/dragdrop/drop-cue.service.mjs +0 -46
- package/esm2022/dragdrop/drop-target.directive.mjs +0 -71
- package/esm2022/editing/add-command-tool.directive.mjs +0 -59
- package/esm2022/editing/add-command.directive.mjs +0 -93
- package/esm2022/editing/add-event-args.interface.mjs +0 -5
- package/esm2022/editing/cancel-command-tool.directive.mjs +0 -64
- package/esm2022/editing/cancel-command.directive.mjs +0 -127
- package/esm2022/editing/cancel-event-args.interface.mjs +0 -5
- package/esm2022/editing/cell-close-event.mjs +0 -38
- package/esm2022/editing/edit-command-tool.directive.mjs +0 -60
- package/esm2022/editing/edit-command.directive.mjs +0 -124
- package/esm2022/editing/edit-event-args.interface.mjs +0 -5
- package/esm2022/editing/edit-row-options.interface.mjs +0 -5
- package/esm2022/editing/edit-template.directive.mjs +0 -43
- package/esm2022/editing/edit.service.mjs +0 -182
- package/esm2022/editing/form/dialog-form.component.mjs +0 -102
- package/esm2022/editing/form/form-formfield.component.mjs +0 -188
- package/esm2022/editing/form/form.component.mjs +0 -169
- package/esm2022/editing/form/index.mjs +0 -8
- package/esm2022/editing/form/models.mjs +0 -5
- package/esm2022/editing/local-data-changes.service.mjs +0 -18
- package/esm2022/editing/remove-command-tool.directive.mjs +0 -61
- package/esm2022/editing/remove-command.directive.mjs +0 -123
- package/esm2022/editing/remove-event-args.interface.mjs +0 -5
- package/esm2022/editing/save-command-tool.directive.mjs +0 -65
- package/esm2022/editing/save-command.directive.mjs +0 -126
- package/esm2022/editing/save-event-args.interface.mjs +0 -5
- package/esm2022/editing/toolbar-editing-tool-base.directive.mjs +0 -99
- package/esm2022/editing-directives/create-form-group-args.interface.mjs +0 -5
- package/esm2022/editing-directives/edit-service.interface.mjs +0 -5
- package/esm2022/editing-directives/editing-directive-base.mjs +0 -167
- package/esm2022/editing-directives/external-editing.directive.mjs +0 -151
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +0 -97
- package/esm2022/editing-directives/local-edit.service.mjs +0 -64
- package/esm2022/editing-directives/local-row-edit.service.mjs +0 -13
- package/esm2022/editing-directives/reactive-editing.directive.mjs +0 -60
- package/esm2022/editing-directives/row-editing-directive-base.mjs +0 -53
- package/esm2022/editing-directives/template-editing.directive.mjs +0 -72
- package/esm2022/editing-directives/utils.mjs +0 -18
- package/esm2022/excel/excel-command-tool.directive.mjs +0 -58
- package/esm2022/excel/excel-command.directive.mjs +0 -98
- package/esm2022/excel/excel-export-event.mjs +0 -18
- package/esm2022/excel/excel.component.mjs +0 -223
- package/esm2022/excel/excel.module.mjs +0 -45
- package/esm2022/excel/excel.service.mjs +0 -29
- package/esm2022/filtering/base-filter-cell.component.mjs +0 -174
- package/esm2022/filtering/boolean-filter.component.mjs +0 -83
- package/esm2022/filtering/cell/autocomplete-filter-cell.component.mjs +0 -114
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +0 -113
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +0 -141
- package/esm2022/filtering/cell/filter-cell-component.factory.mjs +0 -19
- package/esm2022/filtering/cell/filter-cell-host.directive.mjs +0 -33
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +0 -242
- package/esm2022/filtering/cell/filter-cell-template.directive.mjs +0 -46
- package/esm2022/filtering/cell/filter-cell-wrapper.component.mjs +0 -74
- package/esm2022/filtering/cell/filter-cell.component.mjs +0 -91
- package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +0 -155
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +0 -127
- package/esm2022/filtering/date-filter.component.mjs +0 -172
- package/esm2022/filtering/filter-component.interface.mjs +0 -5
- package/esm2022/filtering/filter-host.directive.mjs +0 -58
- package/esm2022/filtering/filter-input-wrapper.component.mjs +0 -119
- package/esm2022/filtering/filter-input.directive.mjs +0 -123
- package/esm2022/filtering/filter-row.component.mjs +0 -131
- package/esm2022/filtering/filter.service.mjs +0 -44
- package/esm2022/filtering/filterable.mjs +0 -16
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +0 -167
- package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +0 -179
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +0 -212
- package/esm2022/filtering/menu/filter-menu-component.factory.mjs +0 -19
- package/esm2022/filtering/menu/filter-menu-container.component.mjs +0 -418
- package/esm2022/filtering/menu/filter-menu-dropdownlist.directive.mjs +0 -44
- package/esm2022/filtering/menu/filter-menu-host.directive.mjs +0 -46
- package/esm2022/filtering/menu/filter-menu-input-wrapper.component.mjs +0 -158
- package/esm2022/filtering/menu/filter-menu-template.directive.mjs +0 -48
- package/esm2022/filtering/menu/filter-menu.component.mjs +0 -221
- package/esm2022/filtering/menu/filter-radio-button.directive.mjs +0 -34
- package/esm2022/filtering/menu/menu-tabbing.service.mjs +0 -22
- package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +0 -184
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +0 -230
- package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +0 -107
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +0 -198
- package/esm2022/filtering/multicheckbox-filter.component.mjs +0 -324
- package/esm2022/filtering/numeric-filter.component.mjs +0 -145
- package/esm2022/filtering/operators/after-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/after-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/eq-filter-operator.component.mjs +0 -111
- package/esm2022/filtering/operators/filter-operator.base.mjs +0 -101
- package/esm2022/filtering/operators/gt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/gte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/lt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/lte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/neq-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/string-filter.component.mjs +0 -90
- package/esm2022/grid.component.mjs +0 -4598
- package/esm2022/grid.module.mjs +0 -241
- package/esm2022/grouping/group-footer-template.directive.mjs +0 -44
- package/esm2022/grouping/group-header-column-template.directive.mjs +0 -45
- package/esm2022/grouping/group-header-template.directive.mjs +0 -46
- package/esm2022/grouping/group-header.component.mjs +0 -351
- package/esm2022/grouping/group-info.service.mjs +0 -43
- package/esm2022/grouping/group-key.interface.mjs +0 -5
- package/esm2022/grouping/group-panel.component.mjs +0 -487
- package/esm2022/grouping/group-rows-args.interface.mjs +0 -5
- package/esm2022/grouping/group-settings.mjs +0 -5
- package/esm2022/grouping/groups.service.mjs +0 -69
- package/esm2022/grouping/utils.mjs +0 -14
- package/esm2022/highlight/highlight-item.mjs +0 -5
- package/esm2022/highlight/highlight.directive.mjs +0 -132
- package/esm2022/index.mjs +0 -221
- package/esm2022/layout/browser-support.service.mjs +0 -94
- package/esm2022/layout/resizable.directive.mjs +0 -83
- package/esm2022/layout/resize.service.mjs +0 -29
- package/esm2022/layout/responsive.service.mjs +0 -34
- package/esm2022/layout/row-sync.mjs +0 -47
- package/esm2022/layout/sizing-options.service.mjs +0 -18
- package/esm2022/localization/custom-messages.component.mjs +0 -54
- package/esm2022/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/localization/messages.mjs +0 -895
- package/esm2022/navigation/default-focusable-element.mjs +0 -50
- package/esm2022/navigation/focus-group.mjs +0 -73
- package/esm2022/navigation/focus-root.mjs +0 -50
- package/esm2022/navigation/focusable-element.interface.mjs +0 -5
- package/esm2022/navigation/focusable.directive.mjs +0 -150
- package/esm2022/navigation/grid-focusable-element.mjs +0 -28
- package/esm2022/navigation/item-map.mjs +0 -59
- package/esm2022/navigation/logical-cell.directive.mjs +0 -224
- package/esm2022/navigation/logical-cell.interface.mjs +0 -5
- package/esm2022/navigation/logical-row.directive.mjs +0 -131
- package/esm2022/navigation/logical-row.interface.mjs +0 -5
- package/esm2022/navigation/navigable-settings.mjs +0 -5
- package/esm2022/navigation/navigation-cell.interface.mjs +0 -5
- package/esm2022/navigation/navigation-change.interface.mjs +0 -5
- package/esm2022/navigation/navigation-cursor.mjs +0 -224
- package/esm2022/navigation/navigation-metadata.mjs +0 -35
- package/esm2022/navigation/navigation-mode.mjs +0 -5
- package/esm2022/navigation/navigation-model.mjs +0 -138
- package/esm2022/navigation/navigation-row.interface.mjs +0 -5
- package/esm2022/navigation/navigation.service.mjs +0 -998
- package/esm2022/navigation/toolbar-tool-name.mjs +0 -18
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/pdf/export-element.mjs +0 -135
- package/esm2022/pdf/grid-query.mjs +0 -45
- package/esm2022/pdf/pdf-command-tool.directive.mjs +0 -60
- package/esm2022/pdf/pdf-command.directive.mjs +0 -98
- package/esm2022/pdf/pdf-export-event.mjs +0 -16
- package/esm2022/pdf/pdf-margin.component.mjs +0 -38
- package/esm2022/pdf/pdf-margin.interface.mjs +0 -5
- package/esm2022/pdf/pdf-template.directive.mjs +0 -43
- package/esm2022/pdf/pdf.component.mjs +0 -331
- package/esm2022/pdf/pdf.module.mjs +0 -47
- package/esm2022/pdf/pdf.service.mjs +0 -42
- package/esm2022/progress-kendo-angular-grid.mjs +0 -8
- package/esm2022/rendering/cell-loading.template.directive.mjs +0 -39
- package/esm2022/rendering/cell-template.directive.mjs +0 -44
- package/esm2022/rendering/cell.component.mjs +0 -717
- package/esm2022/rendering/common/cell-context.mjs +0 -13
- package/esm2022/rendering/common/col-group.component.mjs +0 -98
- package/esm2022/rendering/common/dom-queries.mjs +0 -162
- package/esm2022/rendering/common/field-accessor.pipe.mjs +0 -48
- package/esm2022/rendering/common/format.pipe.mjs +0 -37
- package/esm2022/rendering/common/loading.component.mjs +0 -60
- package/esm2022/rendering/common/row-args.mjs +0 -5
- package/esm2022/rendering/common/row-class.mjs +0 -5
- package/esm2022/rendering/common/spacer.component.mjs +0 -62
- package/esm2022/rendering/constants.mjs +0 -20
- package/esm2022/rendering/details/detail-collapse-event.mjs +0 -27
- package/esm2022/rendering/details/detail-expand-event.mjs +0 -27
- package/esm2022/rendering/details/detail-template.directive.mjs +0 -61
- package/esm2022/rendering/details/details.service.mjs +0 -56
- package/esm2022/rendering/details-expand.directive.mjs +0 -136
- package/esm2022/rendering/footer/footer-template.directive.mjs +0 -48
- package/esm2022/rendering/footer/footer.component.mjs +0 -266
- package/esm2022/rendering/grid-table.directive.mjs +0 -52
- package/esm2022/rendering/groups-expand.directive.mjs +0 -149
- package/esm2022/rendering/header/header-template.directive.mjs +0 -45
- package/esm2022/rendering/header/header.component.mjs +0 -1055
- package/esm2022/rendering/list.component.mjs +0 -1176
- package/esm2022/rendering/loading-template.directive.mjs +0 -38
- package/esm2022/rendering/no-records-template.directive.mjs +0 -38
- package/esm2022/rendering/rowspan.service.mjs +0 -24
- package/esm2022/rendering/table-body.component.mjs +0 -1250
- package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +0 -83
- package/esm2022/rendering/toolbar/toolbar-navigation.service.mjs +0 -58
- package/esm2022/rendering/toolbar/toolbar-position.mjs +0 -5
- package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +0 -55
- package/esm2022/rendering/toolbar/toolbar.component.mjs +0 -159
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +0 -272
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-request-response.service.mjs +0 -624
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-tool.directive.mjs +0 -273
- package/esm2022/rendering/toolbar/tools/ai-assistant/models.mjs +0 -43
- package/esm2022/rendering/toolbar/tools/ai-assistant/utils.mjs +0 -92
- package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +0 -238
- package/esm2022/rendering/toolbar/tools/filter-command-tool.directive.mjs +0 -219
- package/esm2022/rendering/toolbar/tools/filter-tool-wrapper.component.mjs +0 -151
- package/esm2022/rendering/toolbar/tools/filter-toolbar-tool.component.mjs +0 -223
- package/esm2022/rendering/toolbar/tools/group-command-tool.directive.mjs +0 -208
- package/esm2022/rendering/toolbar/tools/group-toolbar-tool.component.mjs +0 -451
- package/esm2022/rendering/toolbar/tools/select-all-command-tool.directive.mjs +0 -93
- package/esm2022/rendering/toolbar/tools/sort-command-tool.directive.mjs +0 -222
- package/esm2022/rendering/toolbar/tools/sort-toolbar-tool.component.mjs +0 -245
- package/esm2022/row-reordering/drag-handle-template.directive.mjs +0 -44
- package/esm2022/row-reordering/drag-hint-template.directive.mjs +0 -42
- package/esm2022/row-reordering/row-reorder.service.mjs +0 -280
- package/esm2022/row-reordering/types.mjs +0 -5
- package/esm2022/row-reordering/utils.mjs +0 -88
- package/esm2022/scrolling/content-scroll-event.mjs +0 -5
- package/esm2022/scrolling/row-height.service.mjs +0 -55
- package/esm2022/scrolling/scroll-bottom-event.mjs +0 -5
- package/esm2022/scrolling/scroll-request.service.mjs +0 -24
- package/esm2022/scrolling/scroll-sync.service.mjs +0 -80
- package/esm2022/scrolling/scroller.service.mjs +0 -254
- package/esm2022/scrolling/scrollmode.mjs +0 -5
- package/esm2022/scrolling/suspend.service.mjs +0 -17
- package/esm2022/selection/cell-selection.service.mjs +0 -349
- package/esm2022/selection/marquee.directive.mjs +0 -188
- package/esm2022/selection/pair-set.mjs +0 -158
- package/esm2022/selection/selectall-checkbox.directive.mjs +0 -143
- package/esm2022/selection/selection-checkbox.directive.mjs +0 -132
- package/esm2022/selection/selection-default.mjs +0 -208
- package/esm2022/selection/selection.directive.mjs +0 -53
- package/esm2022/selection/selection.service.mjs +0 -466
- package/esm2022/selection/types.mjs +0 -5
- package/esm2022/state-management/grid-state.models.mjs +0 -26
- package/esm2022/state-management/redo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-redo.directive.mjs +0 -249
- package/esm2022/state-management/undo-redo.service.mjs +0 -21
- package/esm2022/state-management/undo-redo.stack.mjs +0 -238
- package/esm2022/utils.mjs +0 -216
|
@@ -1,64 +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 { ChangeDetectorRef, Directive, NgZone } from '@angular/core';
|
|
6
|
-
import { EditService } from './edit.service';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { SelectionService } from '../selection/selection.service';
|
|
9
|
-
import { ContextService } from '../common/provider.service';
|
|
10
|
-
import { ToolbarEditingToolBase } from './toolbar-editing-tool-base.directive';
|
|
11
|
-
import { ToolbarToolName } from '../navigation/toolbar-tool-name';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "./edit.service";
|
|
14
|
-
import * as i2 from "@progress/kendo-angular-toolbar";
|
|
15
|
-
import * as i3 from "../selection/selection.service";
|
|
16
|
-
import * as i4 from "../common/provider.service";
|
|
17
|
-
/**
|
|
18
|
-
* Represents the `cancel` command in the Grid.
|
|
19
|
-
* Apply this directive to any `kendo-toolbar-button` element inside a ToolbarComponent in the Grid.
|
|
20
|
-
*
|
|
21
|
-
* When you click the toolbar button with this directive, the [`cancel`]({% slug api_grid_gridcomponent %}#toc-cancel) event triggers.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```html
|
|
25
|
-
* <kendo-grid>
|
|
26
|
-
* <kendo-toolbar>
|
|
27
|
-
* <kendo-toolbar-button text="Cancel" kendoGridCancelTool></kendo-toolbar-button>
|
|
28
|
-
* </kendo-toolbar>
|
|
29
|
-
* </kendo-grid>
|
|
30
|
-
* ```
|
|
31
|
-
* @remarks
|
|
32
|
-
* Applied to: {@link ToolBarButtonComponent}.
|
|
33
|
-
*/
|
|
34
|
-
export class CancelCommandToolbarDirective extends ToolbarEditingToolBase {
|
|
35
|
-
editService;
|
|
36
|
-
constructor(editService, host, selection, ctx, zone, cdr) {
|
|
37
|
-
super(host, ToolbarToolName.cancel, ctx, zone, cdr, editService, selection);
|
|
38
|
-
this.editService = editService;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
onClick(e) {
|
|
44
|
-
e.preventDefault();
|
|
45
|
-
if (this.editService.hasNewItem) {
|
|
46
|
-
this.editService.endEdit();
|
|
47
|
-
}
|
|
48
|
-
else if (this.isSelectionPresent && this.editService.isEdited(this.lastSelectionIndex)) {
|
|
49
|
-
this.editService.endEdit(this.lastSelectionIndex);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
this.editService.editedIndices.forEach(i => this.editService.endEdit(i.index));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CancelCommandToolbarDirective, deps: [{ token: i1.EditService }, { token: i2.ToolBarButtonComponent }, { token: i3.SelectionService }, { token: i4.ContextService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
56
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: CancelCommandToolbarDirective, isStandalone: true, selector: "[kendoGridCancelTool]", usesInheritance: true, ngImport: i0 });
|
|
57
|
-
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CancelCommandToolbarDirective, decorators: [{
|
|
59
|
-
type: Directive,
|
|
60
|
-
args: [{
|
|
61
|
-
selector: '[kendoGridCancelTool]',
|
|
62
|
-
standalone: true
|
|
63
|
-
}]
|
|
64
|
-
}], ctorParameters: () => [{ type: i1.EditService }, { type: i2.ToolBarButtonComponent }, { type: i3.SelectionService }, { type: i4.ContextService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }] });
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, HostListener, HostBinding, Inject, ElementRef, Renderer2 as Renderer, NgZone } from '@angular/core';
|
|
6
|
-
import { Button } from '@progress/kendo-angular-buttons';
|
|
7
|
-
import { EditService } from './edit.service';
|
|
8
|
-
import { CELL_CONTEXT } from '../rendering/common/cell-context';
|
|
9
|
-
import { ContextService } from '../common/provider.service';
|
|
10
|
-
import { NgClass } from '@angular/common';
|
|
11
|
-
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "./edit.service";
|
|
14
|
-
import * as i2 from "../common/provider.service";
|
|
15
|
-
/**
|
|
16
|
-
* Represents the `cancel` command of the Grid. Apply this directive to any `button`
|
|
17
|
-
* element inside a [CommandColumnComponent]({% slug api_grid_commandcolumncomponent %})
|
|
18
|
-
* ([see example](slug:basics_editing_grid#editing-action-buttons)).
|
|
19
|
-
*
|
|
20
|
-
* When a button with this directive is clicked, the
|
|
21
|
-
* [`cancel`]({% slug api_grid_gridcomponent %}#toc-cancel) event
|
|
22
|
-
* is triggered. If the row is not in edit mode, the button is automatically hidden.
|
|
23
|
-
*
|
|
24
|
-
* You can customize the button content based on the row's state.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```html
|
|
28
|
-
* <kendo-grid>
|
|
29
|
-
* <kendo-grid-command-column title="command">
|
|
30
|
-
* <ng-template kendoGridCellTemplate let-isNew="isNew">
|
|
31
|
-
* <button kendoGridCancelCommand>{{isNew ? 'Discard' : 'Cancel changes'}}</button>
|
|
32
|
-
* </ng-template>
|
|
33
|
-
* </kendo-grid-command-column>
|
|
34
|
-
* </kendo-grid>
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export class CancelCommandDirective extends Button {
|
|
38
|
-
editService;
|
|
39
|
-
cellContext;
|
|
40
|
-
rowIndex;
|
|
41
|
-
isEdited;
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
get visible() {
|
|
46
|
-
return !this.isEdited ? 'none' : '';
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* @hidden
|
|
50
|
-
*/
|
|
51
|
-
commandClass = true;
|
|
52
|
-
/**
|
|
53
|
-
* @hidden
|
|
54
|
-
*/
|
|
55
|
-
onClick(e) {
|
|
56
|
-
e.preventDefault();
|
|
57
|
-
if (this.isEdited) {
|
|
58
|
-
this.editService.endEdit(this.rowIndex);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
constructor(editService, cellContext, element, renderer, ctx, ngZone) {
|
|
62
|
-
super(element, renderer, null, ctx.localization, ngZone);
|
|
63
|
-
this.editService = editService;
|
|
64
|
-
this.cellContext = cellContext;
|
|
65
|
-
}
|
|
66
|
-
ngDoCheck() {
|
|
67
|
-
if (this.cellContext) {
|
|
68
|
-
this.rowIndex = this.cellContext.rowIndex;
|
|
69
|
-
this.isEdited = this.editService.isEdited(this.rowIndex);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CancelCommandDirective, deps: [{ token: i1.EditService }, { token: CELL_CONTEXT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.ContextService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
73
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CancelCommandDirective, isStandalone: true, selector: "[kendoGridCancelCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "style.display": "this.visible", "class.k-grid-cancel-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
74
|
-
@if (icon || svgIcon) {
|
|
75
|
-
<kendo-icon-wrapper
|
|
76
|
-
innerCssClass="k-button-icon"
|
|
77
|
-
[name]="icon"
|
|
78
|
-
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
79
|
-
}
|
|
80
|
-
@if (imageUrl) {
|
|
81
|
-
<span class="k-button-icon k-icon">
|
|
82
|
-
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
83
|
-
</span>
|
|
84
|
-
}
|
|
85
|
-
@if (iconClass) {
|
|
86
|
-
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
87
|
-
}
|
|
88
|
-
<span class="k-button-text"><ng-content></ng-content></span>
|
|
89
|
-
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
90
|
-
}
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CancelCommandDirective, decorators: [{
|
|
92
|
-
type: Component,
|
|
93
|
-
args: [{
|
|
94
|
-
selector: '[kendoGridCancelCommand]',
|
|
95
|
-
template: `
|
|
96
|
-
@if (icon || svgIcon) {
|
|
97
|
-
<kendo-icon-wrapper
|
|
98
|
-
innerCssClass="k-button-icon"
|
|
99
|
-
[name]="icon"
|
|
100
|
-
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
101
|
-
}
|
|
102
|
-
@if (imageUrl) {
|
|
103
|
-
<span class="k-button-icon k-icon">
|
|
104
|
-
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
105
|
-
</span>
|
|
106
|
-
}
|
|
107
|
-
@if (iconClass) {
|
|
108
|
-
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
109
|
-
}
|
|
110
|
-
<span class="k-button-text"><ng-content></ng-content></span>
|
|
111
|
-
`,
|
|
112
|
-
standalone: true,
|
|
113
|
-
imports: [IconWrapperComponent, NgClass]
|
|
114
|
-
}]
|
|
115
|
-
}], ctorParameters: () => [{ type: i1.EditService }, { type: undefined, decorators: [{
|
|
116
|
-
type: Inject,
|
|
117
|
-
args: [CELL_CONTEXT]
|
|
118
|
-
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.ContextService }, { type: i0.NgZone }], propDecorators: { visible: [{
|
|
119
|
-
type: HostBinding,
|
|
120
|
-
args: ['style.display']
|
|
121
|
-
}], commandClass: [{
|
|
122
|
-
type: HostBinding,
|
|
123
|
-
args: ['class.k-grid-cancel-command']
|
|
124
|
-
}], onClick: [{
|
|
125
|
-
type: HostListener,
|
|
126
|
-
args: ['click', ['$event']]
|
|
127
|
-
}] } });
|
|
@@ -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,38 +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 { PreventableEvent } from '../common/preventable-event';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the [`cellClose`](slug:api_grid_gridcomponent#toc-cellclose) event.
|
|
8
|
-
*/
|
|
9
|
-
export class CellCloseEvent extends PreventableEvent {
|
|
10
|
-
isNew;
|
|
11
|
-
dataItem;
|
|
12
|
-
rowIndex;
|
|
13
|
-
sender;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
action = 'cellClose';
|
|
18
|
-
/**
|
|
19
|
-
* The Grid column that will be closed.
|
|
20
|
-
*/
|
|
21
|
-
column;
|
|
22
|
-
/**
|
|
23
|
-
* The [FormGroup](link:site.data.urls.angular['formgroupapi']) used to edit the cell.
|
|
24
|
-
*/
|
|
25
|
-
formGroup;
|
|
26
|
-
/**
|
|
27
|
-
* The DOM event that triggered the `cellClose` event.
|
|
28
|
-
* May be undefined if the event was triggered programmatically.
|
|
29
|
-
*/
|
|
30
|
-
originalEvent;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
constructor(options) {
|
|
35
|
-
super();
|
|
36
|
-
Object.assign(this, options);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,60 +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 { ChangeDetectorRef, Directive, NgZone } from '@angular/core';
|
|
6
|
-
import { EditService } from './edit.service';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { SelectionService } from '../selection/selection.service';
|
|
9
|
-
import { ContextService } from '../common/provider.service';
|
|
10
|
-
import { ToolbarEditingToolBase } from './toolbar-editing-tool-base.directive';
|
|
11
|
-
import { ToolbarToolName } from '../navigation/toolbar-tool-name';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "./edit.service";
|
|
14
|
-
import * as i2 from "@progress/kendo-angular-toolbar";
|
|
15
|
-
import * as i3 from "../selection/selection.service";
|
|
16
|
-
import * as i4 from "../common/provider.service";
|
|
17
|
-
/**
|
|
18
|
-
* Represents the `edit` command in the Grid. Apply this directive to any `kendo-toolbar-button`
|
|
19
|
-
* element inside a ToolbarComponent used in the Grid.
|
|
20
|
-
*
|
|
21
|
-
* When you click the toolbar button with this directive, the
|
|
22
|
-
* [`edit`]({% slug api_grid_gridcomponent %}#toc-edit) event fires.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```html
|
|
26
|
-
* <kendo-grid>
|
|
27
|
-
* <kendo-toolbar>
|
|
28
|
-
* <kendo-toolbar-button text="Edit" kendoGridEditTool></kendo-toolbar-button>
|
|
29
|
-
* </kendo-toolbar>
|
|
30
|
-
* </kendo-grid>
|
|
31
|
-
* ```
|
|
32
|
-
* @remarks
|
|
33
|
-
* Applied to: {@link ToolBarButtonComponent}.
|
|
34
|
-
*/
|
|
35
|
-
export class EditCommandToolbarDirective extends ToolbarEditingToolBase {
|
|
36
|
-
editService;
|
|
37
|
-
constructor(editService, host, selection, ctx, zone, cdr) {
|
|
38
|
-
super(host, ToolbarToolName.edit, ctx, zone, cdr, editService, selection);
|
|
39
|
-
this.editService = editService;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
onClick(e) {
|
|
45
|
-
e.preventDefault();
|
|
46
|
-
if (!this.isSelectionPresent) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
this.editService.beginEdit(this.lastSelectionIndex);
|
|
50
|
-
}
|
|
51
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditCommandToolbarDirective, deps: [{ token: i1.EditService }, { token: i2.ToolBarButtonComponent }, { token: i3.SelectionService }, { token: i4.ContextService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
52
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: EditCommandToolbarDirective, isStandalone: true, selector: "[kendoGridEditTool]", usesInheritance: true, ngImport: i0 });
|
|
53
|
-
}
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditCommandToolbarDirective, decorators: [{
|
|
55
|
-
type: Directive,
|
|
56
|
-
args: [{
|
|
57
|
-
selector: '[kendoGridEditTool]',
|
|
58
|
-
standalone: true
|
|
59
|
-
}]
|
|
60
|
-
}], ctorParameters: () => [{ type: i1.EditService }, { type: i2.ToolBarButtonComponent }, { type: i3.SelectionService }, { type: i4.ContextService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }] });
|
|
@@ -1,124 +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, HostListener, HostBinding, Inject, ElementRef, Renderer2 as Renderer, NgZone } from '@angular/core';
|
|
6
|
-
import { Button } from '@progress/kendo-angular-buttons';
|
|
7
|
-
import { EditService } from './edit.service';
|
|
8
|
-
import { CELL_CONTEXT } from '../rendering/common/cell-context';
|
|
9
|
-
import { ContextService } from '../common/provider.service';
|
|
10
|
-
import { NgClass } from '@angular/common';
|
|
11
|
-
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "./edit.service";
|
|
14
|
-
import * as i2 from "../common/provider.service";
|
|
15
|
-
/**
|
|
16
|
-
* Represents the `edit` command of the Grid. You can apply this directive to any `button`
|
|
17
|
-
* element inside a [CommandColumnComponent]({% slug api_grid_commandcolumncomponent %}).
|
|
18
|
-
* When an associated button with the directive is clicked, the
|
|
19
|
-
* [`edit`]({% slug api_grid_gridcomponent %}#toc-edit) event
|
|
20
|
-
* is triggered ([see example]({% slug basics_editing_grid %})).
|
|
21
|
-
*
|
|
22
|
-
* When the row is in the `edit` mode, the button with `kendoGridEditCommand` is automatically hidden.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```html
|
|
26
|
-
* <kendo-grid>
|
|
27
|
-
* <kendo-grid-command-column title="command">
|
|
28
|
-
* <ng-template kendoGridCellTemplate>
|
|
29
|
-
* <button kendoGridEditCommand class="k-primary">Edit</button>
|
|
30
|
-
* </ng-template>
|
|
31
|
-
* </kendo-grid-command-column>
|
|
32
|
-
* </kendo-grid>
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
export class EditCommandDirective extends Button {
|
|
37
|
-
editService;
|
|
38
|
-
cellContext;
|
|
39
|
-
rowIndex;
|
|
40
|
-
isEdited;
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
get visible() {
|
|
45
|
-
return this.isEdited ? 'none' : '';
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*/
|
|
50
|
-
commandClass = true;
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
|
-
onClick(e) {
|
|
55
|
-
e.preventDefault();
|
|
56
|
-
this.editService.beginEdit(this.rowIndex);
|
|
57
|
-
}
|
|
58
|
-
constructor(editService, cellContext, element, renderer, ctx, ngZone) {
|
|
59
|
-
super(element, renderer, null, ctx.localization, ngZone);
|
|
60
|
-
this.editService = editService;
|
|
61
|
-
this.cellContext = cellContext;
|
|
62
|
-
}
|
|
63
|
-
ngDoCheck() {
|
|
64
|
-
if (this.cellContext) {
|
|
65
|
-
this.rowIndex = this.cellContext.rowIndex;
|
|
66
|
-
this.isEdited = this.editService.isEdited(this.rowIndex);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditCommandDirective, deps: [{ token: i1.EditService }, { token: CELL_CONTEXT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.ContextService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
70
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: EditCommandDirective, isStandalone: true, selector: "[kendoGridEditCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "style.display": "this.visible", "class.k-grid-edit-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
71
|
-
@if (icon || svgIcon) {
|
|
72
|
-
<kendo-icon-wrapper
|
|
73
|
-
innerCssClass="k-button-icon"
|
|
74
|
-
[name]="icon"
|
|
75
|
-
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
76
|
-
}
|
|
77
|
-
@if (imageUrl) {
|
|
78
|
-
<span class="k-button-icon k-icon">
|
|
79
|
-
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
80
|
-
</span>
|
|
81
|
-
}
|
|
82
|
-
@if (iconClass) {
|
|
83
|
-
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
84
|
-
}
|
|
85
|
-
<span class="k-button-text"><ng-content></ng-content></span>
|
|
86
|
-
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
87
|
-
}
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditCommandDirective, decorators: [{
|
|
89
|
-
type: Component,
|
|
90
|
-
args: [{
|
|
91
|
-
selector: '[kendoGridEditCommand]',
|
|
92
|
-
template: `
|
|
93
|
-
@if (icon || svgIcon) {
|
|
94
|
-
<kendo-icon-wrapper
|
|
95
|
-
innerCssClass="k-button-icon"
|
|
96
|
-
[name]="icon"
|
|
97
|
-
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
98
|
-
}
|
|
99
|
-
@if (imageUrl) {
|
|
100
|
-
<span class="k-button-icon k-icon">
|
|
101
|
-
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
102
|
-
</span>
|
|
103
|
-
}
|
|
104
|
-
@if (iconClass) {
|
|
105
|
-
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
106
|
-
}
|
|
107
|
-
<span class="k-button-text"><ng-content></ng-content></span>
|
|
108
|
-
`,
|
|
109
|
-
standalone: true,
|
|
110
|
-
imports: [IconWrapperComponent, NgClass]
|
|
111
|
-
}]
|
|
112
|
-
}], ctorParameters: () => [{ type: i1.EditService }, { type: undefined, decorators: [{
|
|
113
|
-
type: Inject,
|
|
114
|
-
args: [CELL_CONTEXT]
|
|
115
|
-
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.ContextService }, { type: i0.NgZone }], propDecorators: { visible: [{
|
|
116
|
-
type: HostBinding,
|
|
117
|
-
args: ['style.display']
|
|
118
|
-
}], commandClass: [{
|
|
119
|
-
type: HostBinding,
|
|
120
|
-
args: ['class.k-grid-edit-command']
|
|
121
|
-
}], onClick: [{
|
|
122
|
-
type: HostListener,
|
|
123
|
-
args: ['click', ['$event']]
|
|
124
|
-
}] } });
|
|
@@ -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,43 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Lets you customize the content of edited cells by providing a column edit-cell template for the Grid ([see example](slug:custom_editors_grid#setting-up-custom-editors)).
|
|
9
|
-
* Place an `<ng-template>` tag with the `kendoGridEditTemplate` directive inside a `<kendo-grid-column>` tag to define the template.
|
|
10
|
-
*
|
|
11
|
-
* The template context includes:
|
|
12
|
-
* - `formGroup`—The current [FormGroup](link:site.data.urls.angular['formgroupapi']). This is the default context for template variables using `let-x`, such as `let-formGroup`. If you use the Grid in [Template-Driven Forms](link:site.data.urls.angular['forms']), this is `undefined`.
|
|
13
|
-
* - `rowIndex`—The current data row index. For a new item row, `rowIndex` is `-1`. Use `let-rowIndex="rowIndex"` to access it.
|
|
14
|
-
* - `dataItem`—The current data item. Use `let-dataItem="dataItem"` to access it.
|
|
15
|
-
* - `column`—The current column instance. Use `let-column="column"` to access it.
|
|
16
|
-
* - `isNew`—The state of the current item. Use `let-isNew="isNew"` to access it.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```html
|
|
20
|
-
* <kendo-grid-column>
|
|
21
|
-
* <ng-template kendoGridEditTemplate let-formGroup="formGroup" let-dataItem="dataItem">
|
|
22
|
-
* <kendo-textbox [formControl]="formGroup.get('field')"></kendo-textbox>
|
|
23
|
-
* </ng-template>
|
|
24
|
-
* </kendo-grid-column>
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export class EditTemplateDirective {
|
|
28
|
-
templateRef;
|
|
29
|
-
constructor(templateRef) {
|
|
30
|
-
this.templateRef = templateRef;
|
|
31
|
-
}
|
|
32
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
33
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: EditTemplateDirective, isStandalone: true, selector: "[kendoGridEditTemplate]", ngImport: i0 });
|
|
34
|
-
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditTemplateDirective, decorators: [{
|
|
36
|
-
type: Directive,
|
|
37
|
-
args: [{
|
|
38
|
-
selector: '[kendoGridEditTemplate]',
|
|
39
|
-
standalone: true
|
|
40
|
-
}]
|
|
41
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
42
|
-
type: Optional
|
|
43
|
-
}] }] });
|
|
@@ -1,182 +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, EventEmitter, NgZone } from '@angular/core';
|
|
6
|
-
import { isPresent } from '../utils';
|
|
7
|
-
import { CellCloseEvent } from './cell-close-event';
|
|
8
|
-
import { Subject } from 'rxjs';
|
|
9
|
-
import { switchMap, take } from 'rxjs/operators';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
const isEqual = (index) => (item) => item.index === index;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
const isNotEqual = (index) => (item) => item.index !== index;
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
const isNewRow = (index) => index === -1 || index === undefined;
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
export class EditService {
|
|
27
|
-
ngZone;
|
|
28
|
-
changes = new EventEmitter();
|
|
29
|
-
changed;
|
|
30
|
-
editedIndices = [];
|
|
31
|
-
newItemGroup;
|
|
32
|
-
keepEditCell = false;
|
|
33
|
-
keepCellTimeout;
|
|
34
|
-
column;
|
|
35
|
-
closingCell = false;
|
|
36
|
-
changedSource = new Subject();
|
|
37
|
-
constructor(ngZone) {
|
|
38
|
-
this.ngZone = ngZone;
|
|
39
|
-
this.changed = this.changedSource.asObservable().pipe(switchMap(() => this.ngZone.onStable.asObservable().pipe(take(1))));
|
|
40
|
-
}
|
|
41
|
-
editRow(index, group = undefined) {
|
|
42
|
-
this.editedIndices.push({ index, group });
|
|
43
|
-
this.onChanged();
|
|
44
|
-
}
|
|
45
|
-
addRow(group) {
|
|
46
|
-
this.newItemGroup = { group };
|
|
47
|
-
this.onChanged();
|
|
48
|
-
}
|
|
49
|
-
editCell(rowIndex, column, group) {
|
|
50
|
-
if (isNewRow(rowIndex) || column.editable === false || !(column.editTemplate || column.field)) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
this.preventCellClose();
|
|
54
|
-
if (!this.closeCell()) {
|
|
55
|
-
this.editRow(rowIndex, group);
|
|
56
|
-
this.column = column;
|
|
57
|
-
this.onChanged();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
isEditing() {
|
|
61
|
-
return this.editedIndices.length > 0;
|
|
62
|
-
}
|
|
63
|
-
isEditingCell() {
|
|
64
|
-
return this.isEditing() && this.column !== undefined;
|
|
65
|
-
}
|
|
66
|
-
get hasNewItem() {
|
|
67
|
-
return isPresent(this.newItemGroup);
|
|
68
|
-
}
|
|
69
|
-
get newDataItem() {
|
|
70
|
-
if (this.hasNewItem) {
|
|
71
|
-
return this.newItemGroup.group.value;
|
|
72
|
-
}
|
|
73
|
-
return {};
|
|
74
|
-
}
|
|
75
|
-
close(index) {
|
|
76
|
-
if (isNewRow(index)) {
|
|
77
|
-
this.newItemGroup = undefined;
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
this.editedIndices = this.editedIndices.filter(isNotEqual(index));
|
|
81
|
-
delete this.column;
|
|
82
|
-
this.onChanged();
|
|
83
|
-
}
|
|
84
|
-
closeCell(originalEvent) {
|
|
85
|
-
if (this.column && !this.closingCell) {
|
|
86
|
-
return this.ngZone.run(() => {
|
|
87
|
-
const { index, group } = this.editedIndices[0];
|
|
88
|
-
const args = new CellCloseEvent({
|
|
89
|
-
column: this.column,
|
|
90
|
-
formGroup: group,
|
|
91
|
-
originalEvent: originalEvent,
|
|
92
|
-
rowIndex: index
|
|
93
|
-
});
|
|
94
|
-
this.closingCell = true;
|
|
95
|
-
this.changes.emit(args);
|
|
96
|
-
this.closingCell = false;
|
|
97
|
-
if (!args.isDefaultPrevented()) {
|
|
98
|
-
this.cancelCell();
|
|
99
|
-
}
|
|
100
|
-
return args.isDefaultPrevented();
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
cancelCell() {
|
|
105
|
-
if (this.column) {
|
|
106
|
-
this.editedIndices = [];
|
|
107
|
-
delete this.column;
|
|
108
|
-
this.onChanged();
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
shouldCloseCell() {
|
|
112
|
-
return this.column && !this.keepEditCell;
|
|
113
|
-
}
|
|
114
|
-
preventCellClose() {
|
|
115
|
-
this.ngZone.runOutsideAngular(() => {
|
|
116
|
-
window.clearTimeout(this.keepCellTimeout);
|
|
117
|
-
this.keepEditCell = true;
|
|
118
|
-
this.keepCellTimeout = window.setTimeout(() => {
|
|
119
|
-
this.keepEditCell = false;
|
|
120
|
-
}, 0);
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
context(index) {
|
|
124
|
-
if (isNewRow(index)) {
|
|
125
|
-
return this.newItemGroup;
|
|
126
|
-
}
|
|
127
|
-
return this.findByIndex(index);
|
|
128
|
-
}
|
|
129
|
-
columnContext(index, column) {
|
|
130
|
-
if (isNewRow(index)) {
|
|
131
|
-
return this.newItemGroup;
|
|
132
|
-
}
|
|
133
|
-
if (!this.column || column === this.column) {
|
|
134
|
-
return this.findByIndex(index);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
isEdited(index) {
|
|
138
|
-
if (isNewRow(index) && isPresent(this.newItemGroup)) {
|
|
139
|
-
return true;
|
|
140
|
-
}
|
|
141
|
-
return !this.column && isPresent(this.findByIndex(index));
|
|
142
|
-
}
|
|
143
|
-
hasEdited(index) {
|
|
144
|
-
return isPresent(this.context(index));
|
|
145
|
-
}
|
|
146
|
-
isEditedColumn(index, column) {
|
|
147
|
-
if (this.column && this.column === column) {
|
|
148
|
-
return isPresent(this.findByIndex(index));
|
|
149
|
-
}
|
|
150
|
-
return false;
|
|
151
|
-
}
|
|
152
|
-
beginEdit(rowIndex) {
|
|
153
|
-
this.changes.emit({ action: 'edit', rowIndex });
|
|
154
|
-
}
|
|
155
|
-
beginAdd() {
|
|
156
|
-
this.changes.emit({ action: 'add', isNew: true });
|
|
157
|
-
}
|
|
158
|
-
endEdit(rowIndex) {
|
|
159
|
-
const { group: formGroup } = this.context(rowIndex);
|
|
160
|
-
this.changes.emit({ action: 'cancel', rowIndex, formGroup, isNew: isNewRow(rowIndex) });
|
|
161
|
-
}
|
|
162
|
-
save(rowIndex) {
|
|
163
|
-
const { group: formGroup } = this.context(rowIndex);
|
|
164
|
-
this.changes.emit({ action: 'save', rowIndex, formGroup, isNew: isNewRow(rowIndex) });
|
|
165
|
-
}
|
|
166
|
-
remove(rowIndex) {
|
|
167
|
-
this.changes.emit({ action: 'remove', rowIndex });
|
|
168
|
-
}
|
|
169
|
-
findByIndex(index) {
|
|
170
|
-
return this.editedIndices.find(isEqual(index));
|
|
171
|
-
}
|
|
172
|
-
onChanged() {
|
|
173
|
-
this.ngZone.runOutsideAngular(() => {
|
|
174
|
-
this.changedSource.next(undefined);
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
178
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditService });
|
|
179
|
-
}
|
|
180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditService, decorators: [{
|
|
181
|
-
type: Injectable
|
|
182
|
-
}], ctorParameters: () => [{ type: i0.NgZone }] });
|