@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,123 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { 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 `remove` command of the Grid. Apply this directive to any `button` element
|
|
17
|
-
* inside a [CommandColumnComponent]({% slug api_grid_commandcolumncomponent %})
|
|
18
|
-
* ([see example](slug:basics_editing_grid#editing-action-buttons)).
|
|
19
|
-
* When you click the button with this directive, the
|
|
20
|
-
* [`remove`]({% slug api_grid_gridcomponent %}#toc-remove) event fires.
|
|
21
|
-
* The button with `kendoGridRemoveCommand` is automatically hidden when the row is in edit mode.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```html
|
|
25
|
-
* <kendo-grid>
|
|
26
|
-
* <kendo-grid-command-column title="command">
|
|
27
|
-
* <ng-template kendoGridCellTemplate>
|
|
28
|
-
* <button kendoGridRemoveCommand>Remove row</button>
|
|
29
|
-
* </ng-template>
|
|
30
|
-
* </kendo-grid-command-column>
|
|
31
|
-
* </kendo-grid>
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
export class RemoveCommandDirective extends Button {
|
|
35
|
-
editService;
|
|
36
|
-
cellContext;
|
|
37
|
-
rowIndex;
|
|
38
|
-
isEdited;
|
|
39
|
-
/**
|
|
40
|
-
* @hidden
|
|
41
|
-
*/
|
|
42
|
-
get visible() {
|
|
43
|
-
return this.isEdited ? 'none' : '';
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
commandClass = true;
|
|
49
|
-
/**
|
|
50
|
-
* @hidden
|
|
51
|
-
*/
|
|
52
|
-
onClick(e) {
|
|
53
|
-
e.preventDefault();
|
|
54
|
-
e.stopImmediatePropagation();
|
|
55
|
-
this.editService.remove(this.rowIndex);
|
|
56
|
-
}
|
|
57
|
-
constructor(editService, cellContext, element, renderer, ctx, ngZone) {
|
|
58
|
-
super(element, renderer, null, ctx.localization, ngZone);
|
|
59
|
-
this.editService = editService;
|
|
60
|
-
this.cellContext = cellContext;
|
|
61
|
-
}
|
|
62
|
-
ngDoCheck() {
|
|
63
|
-
if (this.cellContext) {
|
|
64
|
-
this.rowIndex = this.cellContext.rowIndex;
|
|
65
|
-
this.isEdited = this.editService.isEdited(this.rowIndex);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RemoveCommandDirective, deps: [{ token: i1.EditService }, { token: CELL_CONTEXT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.ContextService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
69
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: RemoveCommandDirective, isStandalone: true, selector: "[kendoGridRemoveCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "style.display": "this.visible", "class.k-grid-remove-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
70
|
-
@if (icon || svgIcon) {
|
|
71
|
-
<kendo-icon-wrapper
|
|
72
|
-
innerCssClass="k-button-icon"
|
|
73
|
-
[name]="icon"
|
|
74
|
-
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
75
|
-
}
|
|
76
|
-
@if (imageUrl) {
|
|
77
|
-
<span class="k-button-icon k-icon">
|
|
78
|
-
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
79
|
-
</span>
|
|
80
|
-
}
|
|
81
|
-
@if (iconClass) {
|
|
82
|
-
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
83
|
-
}
|
|
84
|
-
<span class="k-button-text"><ng-content></ng-content></span>
|
|
85
|
-
`, 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"] }] });
|
|
86
|
-
}
|
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RemoveCommandDirective, decorators: [{
|
|
88
|
-
type: Component,
|
|
89
|
-
args: [{
|
|
90
|
-
selector: '[kendoGridRemoveCommand]',
|
|
91
|
-
template: `
|
|
92
|
-
@if (icon || svgIcon) {
|
|
93
|
-
<kendo-icon-wrapper
|
|
94
|
-
innerCssClass="k-button-icon"
|
|
95
|
-
[name]="icon"
|
|
96
|
-
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
97
|
-
}
|
|
98
|
-
@if (imageUrl) {
|
|
99
|
-
<span class="k-button-icon k-icon">
|
|
100
|
-
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
101
|
-
</span>
|
|
102
|
-
}
|
|
103
|
-
@if (iconClass) {
|
|
104
|
-
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
105
|
-
}
|
|
106
|
-
<span class="k-button-text"><ng-content></ng-content></span>
|
|
107
|
-
`,
|
|
108
|
-
standalone: true,
|
|
109
|
-
imports: [IconWrapperComponent, NgClass]
|
|
110
|
-
}]
|
|
111
|
-
}], ctorParameters: () => [{ type: i1.EditService }, { type: undefined, decorators: [{
|
|
112
|
-
type: Inject,
|
|
113
|
-
args: [CELL_CONTEXT]
|
|
114
|
-
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.ContextService }, { type: i0.NgZone }], propDecorators: { visible: [{
|
|
115
|
-
type: HostBinding,
|
|
116
|
-
args: ['style.display']
|
|
117
|
-
}], commandClass: [{
|
|
118
|
-
type: HostBinding,
|
|
119
|
-
args: ['class.k-grid-remove-command']
|
|
120
|
-
}], onClick: [{
|
|
121
|
-
type: HostListener,
|
|
122
|
-
args: ['click', ['$event']]
|
|
123
|
-
}] } });
|
|
@@ -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,65 +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 `save` 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
|
-
* [`save`]({% slug api_grid_gridcomponent %}#toc-save) event fires.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```html
|
|
26
|
-
* <kendo-grid>
|
|
27
|
-
* <kendo-toolbar>
|
|
28
|
-
* <kendo-toolbar-button text="Save" kendoGridSaveTool></kendo-toolbar-button>
|
|
29
|
-
* </kendo-toolbar>
|
|
30
|
-
* </kendo-grid>
|
|
31
|
-
* ```
|
|
32
|
-
* @remarks
|
|
33
|
-
* Applied to: {@link ToolBarButtonComponent}.
|
|
34
|
-
*/
|
|
35
|
-
export class SaveCommandToolbarDirective extends ToolbarEditingToolBase {
|
|
36
|
-
editService;
|
|
37
|
-
constructor(editService, host, selection, ctx, zone, cdr) {
|
|
38
|
-
super(host, ToolbarToolName.save, ctx, zone, cdr, editService, selection);
|
|
39
|
-
this.editService = editService;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
onClick(e) {
|
|
45
|
-
e.preventDefault();
|
|
46
|
-
if (this.editService.hasNewItem) {
|
|
47
|
-
this.editService.save();
|
|
48
|
-
}
|
|
49
|
-
else if (this.isSelectionPresent && this.editService.isEdited(this.lastSelectionIndex)) {
|
|
50
|
-
this.editService.save(this.lastSelectionIndex);
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
this.editService.editedIndices.forEach(i => this.editService.save(i.index));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SaveCommandToolbarDirective, deps: [{ token: i1.EditService }, { token: i2.ToolBarButtonComponent }, { token: i3.SelectionService }, { token: i4.ContextService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
57
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SaveCommandToolbarDirective, isStandalone: true, selector: "[kendoGridSaveTool]", usesInheritance: true, ngImport: i0 });
|
|
58
|
-
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SaveCommandToolbarDirective, decorators: [{
|
|
60
|
-
type: Directive,
|
|
61
|
-
args: [{
|
|
62
|
-
selector: '[kendoGridSaveTool]',
|
|
63
|
-
standalone: true
|
|
64
|
-
}]
|
|
65
|
-
}], ctorParameters: () => [{ type: i1.EditService }, { type: i2.ToolBarButtonComponent }, { type: i3.SelectionService }, { type: i4.ContextService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }] });
|
|
@@ -1,126 +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 `save` 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
|
-
* When you click the button with this directive, the
|
|
20
|
-
* [`save`]({% slug api_grid_gridcomponent %}#toc-save) event fires.
|
|
21
|
-
* The button with `kendoGridSaveCommand` is automatically hidden when the row is not in edit mode.
|
|
22
|
-
*
|
|
23
|
-
* You can change the button content based on the row state.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```html
|
|
27
|
-
* <kendo-grid>
|
|
28
|
-
* <kendo-grid-command-column title="command">
|
|
29
|
-
* <ng-template kendoGridCellTemplate let-isNew="isNew">
|
|
30
|
-
* <button kendoGridSaveCommand>{{isNew ? 'Add' : 'Update'}}</button>
|
|
31
|
-
* </ng-template>
|
|
32
|
-
* </kendo-grid-command-column>
|
|
33
|
-
* </kendo-grid>
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export class SaveCommandDirective 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
|
-
if (this.isEdited) {
|
|
57
|
-
this.editService.save(this.rowIndex);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
constructor(editService, cellContext, element, renderer, ctx, ngZone) {
|
|
61
|
-
super(element, renderer, null, ctx.localization, ngZone);
|
|
62
|
-
this.editService = editService;
|
|
63
|
-
this.cellContext = cellContext;
|
|
64
|
-
}
|
|
65
|
-
ngDoCheck() {
|
|
66
|
-
if (this.cellContext) {
|
|
67
|
-
this.rowIndex = this.cellContext.rowIndex;
|
|
68
|
-
this.isEdited = this.editService.isEdited(this.rowIndex);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SaveCommandDirective, deps: [{ token: i1.EditService }, { token: CELL_CONTEXT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.ContextService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
72
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SaveCommandDirective, isStandalone: true, selector: "[kendoGridSaveCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "style.display": "this.visible", "class.k-grid-save-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
73
|
-
@if (icon || svgIcon) {
|
|
74
|
-
<kendo-icon-wrapper
|
|
75
|
-
innerCssClass="k-button-icon"
|
|
76
|
-
[name]="icon"
|
|
77
|
-
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
78
|
-
}
|
|
79
|
-
@if (imageUrl) {
|
|
80
|
-
<span class="k-button-icon k-icon">
|
|
81
|
-
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
82
|
-
</span>
|
|
83
|
-
}
|
|
84
|
-
@if (iconClass) {
|
|
85
|
-
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
86
|
-
}
|
|
87
|
-
<span class="k-button-text"><ng-content></ng-content></span>
|
|
88
|
-
`, 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"] }] });
|
|
89
|
-
}
|
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SaveCommandDirective, decorators: [{
|
|
91
|
-
type: Component,
|
|
92
|
-
args: [{
|
|
93
|
-
selector: '[kendoGridSaveCommand]',
|
|
94
|
-
template: `
|
|
95
|
-
@if (icon || svgIcon) {
|
|
96
|
-
<kendo-icon-wrapper
|
|
97
|
-
innerCssClass="k-button-icon"
|
|
98
|
-
[name]="icon"
|
|
99
|
-
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
100
|
-
}
|
|
101
|
-
@if (imageUrl) {
|
|
102
|
-
<span class="k-button-icon k-icon">
|
|
103
|
-
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
104
|
-
</span>
|
|
105
|
-
}
|
|
106
|
-
@if (iconClass) {
|
|
107
|
-
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
108
|
-
}
|
|
109
|
-
<span class="k-button-text"><ng-content></ng-content></span>
|
|
110
|
-
`,
|
|
111
|
-
standalone: true,
|
|
112
|
-
imports: [IconWrapperComponent, NgClass]
|
|
113
|
-
}]
|
|
114
|
-
}], ctorParameters: () => [{ type: i1.EditService }, { type: undefined, decorators: [{
|
|
115
|
-
type: Inject,
|
|
116
|
-
args: [CELL_CONTEXT]
|
|
117
|
-
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.ContextService }, { type: i0.NgZone }], propDecorators: { visible: [{
|
|
118
|
-
type: HostBinding,
|
|
119
|
-
args: ['style.display']
|
|
120
|
-
}], commandClass: [{
|
|
121
|
-
type: HostBinding,
|
|
122
|
-
args: ['class.k-grid-save-command']
|
|
123
|
-
}], onClick: [{
|
|
124
|
-
type: HostListener,
|
|
125
|
-
args: ['click', ['$event']]
|
|
126
|
-
}] } });
|
|
@@ -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,99 +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, Inject, NgZone } from '@angular/core';
|
|
6
|
-
import { take } from 'rxjs/operators';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { isPresent } from '@progress/kendo-angular-common';
|
|
9
|
-
import { SelectionService } from '../selection/selection.service';
|
|
10
|
-
import { EditService } from '../editing/edit.service';
|
|
11
|
-
import { ContextService } from '../common/provider.service';
|
|
12
|
-
import { ToolbarToolBase } from '../common/toolbar-tool-base.directive';
|
|
13
|
-
import { ToolbarToolName } from '../navigation/toolbar-tool-name';
|
|
14
|
-
import * as i0 from "@angular/core";
|
|
15
|
-
import * as i1 from "@progress/kendo-angular-toolbar";
|
|
16
|
-
import * as i2 from "../common/provider.service";
|
|
17
|
-
import * as i3 from "../editing/edit.service";
|
|
18
|
-
import * as i4 from "../selection/selection.service";
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
export class ToolbarEditingToolBase extends ToolbarToolBase {
|
|
23
|
-
host;
|
|
24
|
-
commandName;
|
|
25
|
-
ctx;
|
|
26
|
-
editService;
|
|
27
|
-
selection;
|
|
28
|
-
isEdited = false;
|
|
29
|
-
lastToolState = null;
|
|
30
|
-
constructor(host, commandName, ctx, zone, cdr, editService, selection) {
|
|
31
|
-
super(host, commandName, ctx, zone, cdr);
|
|
32
|
-
this.host = host;
|
|
33
|
-
this.commandName = commandName;
|
|
34
|
-
this.ctx = ctx;
|
|
35
|
-
this.editService = editService;
|
|
36
|
-
this.selection = selection;
|
|
37
|
-
}
|
|
38
|
-
ngAfterViewInit() {
|
|
39
|
-
super.ngAfterViewInit();
|
|
40
|
-
const commandText = this.ctx.localization.get(`${this.commandName}ToolbarToolText`);
|
|
41
|
-
this.buttonElement?.setAttribute('title', commandText);
|
|
42
|
-
}
|
|
43
|
-
ngDoCheck() {
|
|
44
|
-
if (!isPresent(this.editService)) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
this.isEdited = this.editService.isEditing();
|
|
48
|
-
const isAddNewItem = this.editService.hasNewItem;
|
|
49
|
-
let isToolInactive = false;
|
|
50
|
-
let formGroup;
|
|
51
|
-
const selectionPresent = isPresent(this.lastSelectionIndex);
|
|
52
|
-
if (this.isEdited || isAddNewItem) {
|
|
53
|
-
formGroup = isAddNewItem ? this.editService.context()?.group : this.editService.editedIndices[0].group;
|
|
54
|
-
}
|
|
55
|
-
switch (this.commandName) {
|
|
56
|
-
case ToolbarToolName.edit:
|
|
57
|
-
isToolInactive = this.isEdited || !selectionPresent;
|
|
58
|
-
break;
|
|
59
|
-
case ToolbarToolName.save:
|
|
60
|
-
isToolInactive = !(this.isEdited || isAddNewItem) || !formGroup?.valid;
|
|
61
|
-
break;
|
|
62
|
-
case ToolbarToolName.remove:
|
|
63
|
-
isToolInactive = this.isEdited || !selectionPresent;
|
|
64
|
-
break;
|
|
65
|
-
case ToolbarToolName.cancel:
|
|
66
|
-
isToolInactive = !(this.isEdited || isAddNewItem);
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
if (this.lastToolState !== isToolInactive) {
|
|
70
|
-
this.lastToolState = isToolInactive;
|
|
71
|
-
if (this.ctx.grid.showInactiveTools) {
|
|
72
|
-
this.host.disabled = isToolInactive;
|
|
73
|
-
}
|
|
74
|
-
else if (this.host.isHidden !== isToolInactive) {
|
|
75
|
-
this.host.isHidden = isToolInactive;
|
|
76
|
-
const toolbar = this.host.host;
|
|
77
|
-
toolbar.refreshService.refresh(this.host);
|
|
78
|
-
this.zone.onStable.pipe(take(1)).subscribe(() => {
|
|
79
|
-
toolbar.onResize();
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
get lastSelectionIndex() {
|
|
85
|
-
return this.selection?.selected[this.selection?.selected.length - 1];
|
|
86
|
-
}
|
|
87
|
-
get isSelectionPresent() {
|
|
88
|
-
return isPresent(this.lastSelectionIndex) && this.lastSelectionIndex > -1;
|
|
89
|
-
}
|
|
90
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarEditingToolBase, deps: [{ token: i1.ToolBarButtonComponent }, { token: 'command' }, { token: i2.ContextService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i3.EditService }, { token: i4.SelectionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
91
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ToolbarEditingToolBase, usesInheritance: true, ngImport: i0 });
|
|
92
|
-
}
|
|
93
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarEditingToolBase, decorators: [{
|
|
94
|
-
type: Directive,
|
|
95
|
-
args: [{}]
|
|
96
|
-
}], ctorParameters: () => [{ type: i1.ToolBarButtonComponent }, { type: undefined, decorators: [{
|
|
97
|
-
type: Inject,
|
|
98
|
-
args: ['command']
|
|
99
|
-
}] }, { type: i2.ContextService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i3.EditService }, { type: i4.SelectionService }] });
|
|
@@ -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,167 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Input, Directive, inject } from '@angular/core';
|
|
6
|
-
import { GridComponent } from '../grid.component';
|
|
7
|
-
import { LocalEditService } from './local-edit.service';
|
|
8
|
-
import { Subscription, Observable, Subject } from 'rxjs';
|
|
9
|
-
import { LocalDataChangesService } from '../editing/local-data-changes.service';
|
|
10
|
-
import { take } from 'rxjs/operators';
|
|
11
|
-
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
12
|
-
import { checkIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
13
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
14
|
-
import { NavigationService } from '../navigation/navigation.service';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
import * as i1 from "../grid.component";
|
|
17
|
-
import * as i2 from "../editing/local-data-changes.service";
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
export class EditingDirectiveBase {
|
|
22
|
-
grid;
|
|
23
|
-
localDataChangesService;
|
|
24
|
-
// Consider adding support for the dependency injection of the service to allow for specifying a generic service without code.
|
|
25
|
-
// The Input should still be kept.
|
|
26
|
-
/**
|
|
27
|
-
* The edit service that will handle the operations.
|
|
28
|
-
*/
|
|
29
|
-
set editService(value) {
|
|
30
|
-
this.userEditService = value;
|
|
31
|
-
}
|
|
32
|
-
get editService() {
|
|
33
|
-
return this.userEditService || this.defaultEditService;
|
|
34
|
-
}
|
|
35
|
-
removeConfirmationSubject = new Subject();
|
|
36
|
-
dialogService;
|
|
37
|
-
localization;
|
|
38
|
-
defaultRemoveConfirmation = (_item) => {
|
|
39
|
-
const dialog = this.dialogService.open({
|
|
40
|
-
appendTo: this.grid.dialogContainer,
|
|
41
|
-
title: this.localization.get('removeConfirmationDialogTitle'),
|
|
42
|
-
content: this.localization.get('removeConfirmationDialogContent'),
|
|
43
|
-
actions: [{
|
|
44
|
-
text: this.localization.get('removeConfirmationDialogConfirmText'),
|
|
45
|
-
themeColor: 'primary',
|
|
46
|
-
svgIcon: checkIcon,
|
|
47
|
-
icon: 'check'
|
|
48
|
-
}, {
|
|
49
|
-
text: this.localization.get('removeConfirmationDialogRejectText'),
|
|
50
|
-
svgIcon: xIcon,
|
|
51
|
-
icon: 'x'
|
|
52
|
-
}],
|
|
53
|
-
});
|
|
54
|
-
dialog.result.pipe(take(1)).subscribe((e) => this.removeConfirmationSubject.next(e.text === this.localization.get('removeConfirmationDialogConfirmText')));
|
|
55
|
-
return this.removeConfirmationSubject;
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* A function that is called to confirm if the `dataItem` will be removed.
|
|
59
|
-
* By default, the Grid displays its built-in confirmation dialog. To use a custom dialog, provide a `RemoveConfirmationCallback` function.
|
|
60
|
-
* To prevent showing a confirmation dialog, set the `removeConfirmation` property to `false`.
|
|
61
|
-
*
|
|
62
|
-
* @default true
|
|
63
|
-
*/
|
|
64
|
-
removeConfirmation = true;
|
|
65
|
-
subscriptions = new Subscription();
|
|
66
|
-
defaultEditService;
|
|
67
|
-
userEditService;
|
|
68
|
-
navigationService;
|
|
69
|
-
constructor(grid, localDataChangesService) {
|
|
70
|
-
this.grid = grid;
|
|
71
|
-
this.localDataChangesService = localDataChangesService;
|
|
72
|
-
this.defaultEditService = this.createDefaultService();
|
|
73
|
-
this.dialogService = inject(DialogService);
|
|
74
|
-
this.localization = inject(LocalizationService);
|
|
75
|
-
this.navigationService = inject(NavigationService);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* @hidden
|
|
79
|
-
*/
|
|
80
|
-
ngOnInit() {
|
|
81
|
-
this.subscriptions.add(this.grid.add.subscribe(this.addHandler.bind(this)));
|
|
82
|
-
this.subscriptions.add(this.grid.remove.subscribe(this.removeHandler.bind(this)));
|
|
83
|
-
this.subscriptions.add(this.grid.cancel.subscribe(this.cancelHandler.bind(this)));
|
|
84
|
-
this.subscriptions.add(this.grid.save.subscribe(this.saveHandler.bind(this)));
|
|
85
|
-
this.subscriptions.add(this.grid.dataStateChange.subscribe(this.onStateChange.bind(this)));
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* @hidden
|
|
89
|
-
*/
|
|
90
|
-
ngOnDestroy() {
|
|
91
|
-
this.subscriptions.unsubscribe();
|
|
92
|
-
}
|
|
93
|
-
createDefaultService() {
|
|
94
|
-
return new LocalEditService(this.grid, this.localDataChangesService);
|
|
95
|
-
}
|
|
96
|
-
addHandler(_args) {
|
|
97
|
-
this.grid.addRow(this.createModel({ isNew: true }));
|
|
98
|
-
}
|
|
99
|
-
saveHandler(args) {
|
|
100
|
-
const item = this.saveModel(args);
|
|
101
|
-
if (item) {
|
|
102
|
-
if (args.isNew) {
|
|
103
|
-
this.editService.create(item);
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
this.editService.update(item);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
this.grid.closeRow(args.rowIndex);
|
|
110
|
-
}
|
|
111
|
-
cancelHandler({ rowIndex }) {
|
|
112
|
-
this.closeEditor(rowIndex);
|
|
113
|
-
}
|
|
114
|
-
removeHandler({ dataItem }) {
|
|
115
|
-
const removeItem = (shouldRemove) => {
|
|
116
|
-
if (shouldRemove) {
|
|
117
|
-
this.editService.remove(dataItem);
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
if (this.removeConfirmation) {
|
|
121
|
-
const confirmationCallback = typeof this.removeConfirmation === 'boolean' ? this.defaultRemoveConfirmation : this.removeConfirmation;
|
|
122
|
-
const result = confirmationCallback(dataItem);
|
|
123
|
-
if (result instanceof Promise) {
|
|
124
|
-
result.then((res) => {
|
|
125
|
-
removeItem(res);
|
|
126
|
-
this.returnFocusToGrid();
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
else if (result instanceof Observable) {
|
|
130
|
-
result.pipe(take(1)).subscribe((res) => {
|
|
131
|
-
removeItem(res);
|
|
132
|
-
this.returnFocusToGrid();
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
removeItem(result);
|
|
137
|
-
this.returnFocusToGrid();
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
removeItem(true);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
onStateChange() {
|
|
145
|
-
this.closeEditor();
|
|
146
|
-
}
|
|
147
|
-
closeEditor(rowIndex) {
|
|
148
|
-
this.grid.closeRow(rowIndex);
|
|
149
|
-
}
|
|
150
|
-
returnFocusToGrid() {
|
|
151
|
-
if (!this.navigationService.focusCell()) {
|
|
152
|
-
this.navigationService.focusPrevCell() || this.navigationService.focusNextCell();
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditingDirectiveBase, deps: [{ token: i1.GridComponent }, { token: i2.LocalDataChangesService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
156
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: EditingDirectiveBase, selector: "[kendoGridEditingDirectiveBase]", inputs: { editService: "editService", removeConfirmation: "removeConfirmation" }, ngImport: i0 });
|
|
157
|
-
}
|
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditingDirectiveBase, decorators: [{
|
|
159
|
-
type: Directive,
|
|
160
|
-
args: [{
|
|
161
|
-
selector: '[kendoGridEditingDirectiveBase]'
|
|
162
|
-
}]
|
|
163
|
-
}], ctorParameters: () => [{ type: i1.GridComponent }, { type: i2.LocalDataChangesService }], propDecorators: { editService: [{
|
|
164
|
-
type: Input
|
|
165
|
-
}], removeConfirmation: [{
|
|
166
|
-
type: Input
|
|
167
|
-
}] } });
|