@progress/kendo-angular-grid 21.4.1 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/column-menu/column-menu-item-base.d.ts +1 -1
- package/columns/column-base.d.ts +1 -1
- package/common/toolbar-tool-base.directive.d.ts +1 -1
- package/editing/toolbar-editing-tool-base.directive.d.ts +1 -1
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/editing-directives/row-editing-directive-base.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-grid.mjs +666 -666
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/filtering/boolean-filter.component.d.ts +1 -1
- package/filtering/date-filter.component.d.ts +1 -1
- package/filtering/filter-host.directive.d.ts +1 -1
- package/filtering/filter-input-wrapper.component.d.ts +1 -1
- package/filtering/numeric-filter.component.d.ts +1 -1
- package/filtering/operators/filter-operator.base.d.ts +1 -1
- package/filtering/string-filter.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +28 -36
- package/schematics/ngAdd/index.js +7 -7
- package/selection/selection-default.d.ts +1 -1
- package/esm2022/adaptiveness/adaptive-mode.mjs +0 -5
- package/esm2022/adaptiveness/adaptive-renderer.component.mjs +0 -1270
- package/esm2022/aggregates/aggregate-types.mjs +0 -5
- package/esm2022/aggregates/selection-aggregate.service.mjs +0 -200
- package/esm2022/aggregates/status-bar-template.directive.mjs +0 -30
- package/esm2022/aggregates/status-bar.component.mjs +0 -70
- package/esm2022/column-menu/column-chooser-content.component.mjs +0 -318
- package/esm2022/column-menu/column-chooser.component.mjs +0 -230
- package/esm2022/column-menu/column-list-kb-nav.service.mjs +0 -40
- package/esm2022/column-menu/column-list.component.mjs +0 -478
- package/esm2022/column-menu/column-locked-change-event.mjs +0 -19
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +0 -89
- package/esm2022/column-menu/column-menu-autosize.component.mjs +0 -97
- package/esm2022/column-menu/column-menu-chooser.component.mjs +0 -151
- package/esm2022/column-menu/column-menu-container.component.mjs +0 -67
- package/esm2022/column-menu/column-menu-expandable-item.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-filter.component.mjs +0 -152
- package/esm2022/column-menu/column-menu-item-base.mjs +0 -44
- package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +0 -45
- package/esm2022/column-menu/column-menu-item.component.mjs +0 -514
- package/esm2022/column-menu/column-menu-item.directive.mjs +0 -164
- package/esm2022/column-menu/column-menu-lock.component.mjs +0 -118
- package/esm2022/column-menu/column-menu-position.component.mjs +0 -196
- package/esm2022/column-menu/column-menu-settings.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-sort.component.mjs +0 -119
- package/esm2022/column-menu/column-menu-stick.component.mjs +0 -120
- package/esm2022/column-menu/column-menu-template.directive.mjs +0 -47
- package/esm2022/column-menu/column-menu.component.mjs +0 -839
- package/esm2022/column-menu/column-menu.service.mjs +0 -71
- package/esm2022/column-menu/column-sticky-change-event.mjs +0 -19
- package/esm2022/column-menu/column-visibility-change-event.mjs +0 -19
- package/esm2022/column-menu/utils.mjs +0 -52
- package/esm2022/column-resizing/column-handle.directive.mjs +0 -499
- package/esm2022/column-resizing/column-resize.interface.mjs +0 -5
- package/esm2022/column-resizing/column-resizing.service.mjs +0 -214
- package/esm2022/column-resizing/table.directive.mjs +0 -141
- package/esm2022/columns/cell-rowspan.mjs +0 -5
- package/esm2022/columns/checkbox-column.component.mjs +0 -106
- package/esm2022/columns/column-base.mjs +0 -432
- package/esm2022/columns/column-common.mjs +0 -73
- package/esm2022/columns/column-group.component.mjs +0 -135
- package/esm2022/columns/column-list.mjs +0 -94
- package/esm2022/columns/column.component.mjs +0 -198
- package/esm2022/columns/columns-container.mjs +0 -101
- package/esm2022/columns/command-column.component.mjs +0 -80
- package/esm2022/columns/reorder-column.component.mjs +0 -114
- package/esm2022/columns/sort-settings.mjs +0 -18
- package/esm2022/columns/span-column.component.mjs +0 -195
- package/esm2022/common/adaptiveness.service.mjs +0 -72
- package/esm2022/common/cell-click-event-args.interface.mjs +0 -5
- package/esm2022/common/clipboard-types.mjs +0 -5
- package/esm2022/common/clipboard.directive.mjs +0 -197
- package/esm2022/common/clipboard.service.mjs +0 -221
- package/esm2022/common/column-info.service.mjs +0 -92
- package/esm2022/common/create-form-group.mjs +0 -5
- package/esm2022/common/data-layout-mode.mjs +0 -5
- package/esm2022/common/default-track-by.mjs +0 -13
- package/esm2022/common/dom-events.service.mjs +0 -27
- package/esm2022/common/error-messages.mjs +0 -64
- package/esm2022/common/event-emitter.mjs +0 -39
- package/esm2022/common/fetch-data-callback.mjs +0 -5
- package/esm2022/common/field-datatype.mjs +0 -5
- package/esm2022/common/filter-descriptor-differ.mjs +0 -69
- package/esm2022/common/filter-operator.interface.mjs +0 -5
- package/esm2022/common/grid-col-size.mjs +0 -5
- package/esm2022/common/id.service.mjs +0 -59
- package/esm2022/common/pager-settings.mjs +0 -20
- package/esm2022/common/preventable-event.mjs +0 -24
- package/esm2022/common/provider.service.mjs +0 -42
- package/esm2022/common/remove-confirmation.mjs +0 -5
- package/esm2022/common/resizable-settings.mjs +0 -9
- package/esm2022/common/single-popup.service.mjs +0 -158
- package/esm2022/common/size-options.mjs +0 -5
- package/esm2022/common/sort.service.mjs +0 -14
- package/esm2022/common/toolbar-tool-base.directive.mjs +0 -85
- package/esm2022/constants.mjs +0 -16
- package/esm2022/data/change-event-args.interface.mjs +0 -5
- package/esm2022/data/change-notification.service.mjs +0 -30
- package/esm2022/data/data-item.interface.mjs +0 -5
- package/esm2022/data/data-mapping.service.mjs +0 -136
- package/esm2022/data/data.collection.mjs +0 -87
- package/esm2022/data/data.iterators.mjs +0 -221
- package/esm2022/data/grid-item.interface.mjs +0 -5
- package/esm2022/data/group-footer-item.interface.mjs +0 -5
- package/esm2022/data/group-item.interface.mjs +0 -5
- package/esm2022/databinding.directive.mjs +0 -233
- package/esm2022/directives.mjs +0 -504
- package/esm2022/dragdrop/column-reorder-config.mjs +0 -5
- package/esm2022/dragdrop/column-reorder-event.mjs +0 -31
- package/esm2022/dragdrop/column-reorder.service.mjs +0 -20
- package/esm2022/dragdrop/common.mjs +0 -69
- package/esm2022/dragdrop/context-types.mjs +0 -5
- package/esm2022/dragdrop/drag-and-drop.service.mjs +0 -65
- package/esm2022/dragdrop/drag-hint.service.mjs +0 -137
- package/esm2022/dragdrop/draggable-column.directive.mjs +0 -137
- package/esm2022/dragdrop/drop-cue.service.mjs +0 -46
- package/esm2022/dragdrop/drop-target.directive.mjs +0 -71
- package/esm2022/editing/add-command-tool.directive.mjs +0 -59
- package/esm2022/editing/add-command.directive.mjs +0 -93
- package/esm2022/editing/add-event-args.interface.mjs +0 -5
- package/esm2022/editing/cancel-command-tool.directive.mjs +0 -64
- package/esm2022/editing/cancel-command.directive.mjs +0 -127
- package/esm2022/editing/cancel-event-args.interface.mjs +0 -5
- package/esm2022/editing/cell-close-event.mjs +0 -38
- package/esm2022/editing/edit-command-tool.directive.mjs +0 -60
- package/esm2022/editing/edit-command.directive.mjs +0 -124
- package/esm2022/editing/edit-event-args.interface.mjs +0 -5
- package/esm2022/editing/edit-row-options.interface.mjs +0 -5
- package/esm2022/editing/edit-template.directive.mjs +0 -43
- package/esm2022/editing/edit.service.mjs +0 -182
- package/esm2022/editing/form/dialog-form.component.mjs +0 -102
- package/esm2022/editing/form/form-formfield.component.mjs +0 -188
- package/esm2022/editing/form/form.component.mjs +0 -169
- package/esm2022/editing/form/index.mjs +0 -8
- package/esm2022/editing/form/models.mjs +0 -5
- package/esm2022/editing/local-data-changes.service.mjs +0 -18
- package/esm2022/editing/remove-command-tool.directive.mjs +0 -61
- package/esm2022/editing/remove-command.directive.mjs +0 -123
- package/esm2022/editing/remove-event-args.interface.mjs +0 -5
- package/esm2022/editing/save-command-tool.directive.mjs +0 -65
- package/esm2022/editing/save-command.directive.mjs +0 -126
- package/esm2022/editing/save-event-args.interface.mjs +0 -5
- package/esm2022/editing/toolbar-editing-tool-base.directive.mjs +0 -99
- package/esm2022/editing-directives/create-form-group-args.interface.mjs +0 -5
- package/esm2022/editing-directives/edit-service.interface.mjs +0 -5
- package/esm2022/editing-directives/editing-directive-base.mjs +0 -167
- package/esm2022/editing-directives/external-editing.directive.mjs +0 -151
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +0 -97
- package/esm2022/editing-directives/local-edit.service.mjs +0 -64
- package/esm2022/editing-directives/local-row-edit.service.mjs +0 -13
- package/esm2022/editing-directives/reactive-editing.directive.mjs +0 -60
- package/esm2022/editing-directives/row-editing-directive-base.mjs +0 -53
- package/esm2022/editing-directives/template-editing.directive.mjs +0 -72
- package/esm2022/editing-directives/utils.mjs +0 -18
- package/esm2022/excel/excel-command-tool.directive.mjs +0 -58
- package/esm2022/excel/excel-command.directive.mjs +0 -98
- package/esm2022/excel/excel-export-event.mjs +0 -18
- package/esm2022/excel/excel.component.mjs +0 -223
- package/esm2022/excel/excel.module.mjs +0 -45
- package/esm2022/excel/excel.service.mjs +0 -29
- package/esm2022/filtering/base-filter-cell.component.mjs +0 -174
- package/esm2022/filtering/boolean-filter.component.mjs +0 -83
- package/esm2022/filtering/cell/autocomplete-filter-cell.component.mjs +0 -114
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +0 -113
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +0 -141
- package/esm2022/filtering/cell/filter-cell-component.factory.mjs +0 -19
- package/esm2022/filtering/cell/filter-cell-host.directive.mjs +0 -33
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +0 -242
- package/esm2022/filtering/cell/filter-cell-template.directive.mjs +0 -46
- package/esm2022/filtering/cell/filter-cell-wrapper.component.mjs +0 -74
- package/esm2022/filtering/cell/filter-cell.component.mjs +0 -91
- package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +0 -155
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +0 -127
- package/esm2022/filtering/date-filter.component.mjs +0 -172
- package/esm2022/filtering/filter-component.interface.mjs +0 -5
- package/esm2022/filtering/filter-host.directive.mjs +0 -58
- package/esm2022/filtering/filter-input-wrapper.component.mjs +0 -119
- package/esm2022/filtering/filter-input.directive.mjs +0 -123
- package/esm2022/filtering/filter-row.component.mjs +0 -131
- package/esm2022/filtering/filter.service.mjs +0 -44
- package/esm2022/filtering/filterable.mjs +0 -16
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +0 -167
- package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +0 -179
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +0 -212
- package/esm2022/filtering/menu/filter-menu-component.factory.mjs +0 -19
- package/esm2022/filtering/menu/filter-menu-container.component.mjs +0 -418
- package/esm2022/filtering/menu/filter-menu-dropdownlist.directive.mjs +0 -44
- package/esm2022/filtering/menu/filter-menu-host.directive.mjs +0 -46
- package/esm2022/filtering/menu/filter-menu-input-wrapper.component.mjs +0 -158
- package/esm2022/filtering/menu/filter-menu-template.directive.mjs +0 -48
- package/esm2022/filtering/menu/filter-menu.component.mjs +0 -221
- package/esm2022/filtering/menu/filter-radio-button.directive.mjs +0 -34
- package/esm2022/filtering/menu/menu-tabbing.service.mjs +0 -22
- package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +0 -184
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +0 -230
- package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +0 -107
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +0 -198
- package/esm2022/filtering/multicheckbox-filter.component.mjs +0 -324
- package/esm2022/filtering/numeric-filter.component.mjs +0 -145
- package/esm2022/filtering/operators/after-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/after-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/eq-filter-operator.component.mjs +0 -111
- package/esm2022/filtering/operators/filter-operator.base.mjs +0 -101
- package/esm2022/filtering/operators/gt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/gte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/lt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/lte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/neq-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/string-filter.component.mjs +0 -90
- package/esm2022/grid.component.mjs +0 -4598
- package/esm2022/grid.module.mjs +0 -241
- package/esm2022/grouping/group-footer-template.directive.mjs +0 -44
- package/esm2022/grouping/group-header-column-template.directive.mjs +0 -45
- package/esm2022/grouping/group-header-template.directive.mjs +0 -46
- package/esm2022/grouping/group-header.component.mjs +0 -351
- package/esm2022/grouping/group-info.service.mjs +0 -43
- package/esm2022/grouping/group-key.interface.mjs +0 -5
- package/esm2022/grouping/group-panel.component.mjs +0 -487
- package/esm2022/grouping/group-rows-args.interface.mjs +0 -5
- package/esm2022/grouping/group-settings.mjs +0 -5
- package/esm2022/grouping/groups.service.mjs +0 -69
- package/esm2022/grouping/utils.mjs +0 -14
- package/esm2022/highlight/highlight-item.mjs +0 -5
- package/esm2022/highlight/highlight.directive.mjs +0 -132
- package/esm2022/index.mjs +0 -221
- package/esm2022/layout/browser-support.service.mjs +0 -94
- package/esm2022/layout/resizable.directive.mjs +0 -83
- package/esm2022/layout/resize.service.mjs +0 -29
- package/esm2022/layout/responsive.service.mjs +0 -34
- package/esm2022/layout/row-sync.mjs +0 -47
- package/esm2022/layout/sizing-options.service.mjs +0 -18
- package/esm2022/localization/custom-messages.component.mjs +0 -54
- package/esm2022/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/localization/messages.mjs +0 -895
- package/esm2022/navigation/default-focusable-element.mjs +0 -50
- package/esm2022/navigation/focus-group.mjs +0 -73
- package/esm2022/navigation/focus-root.mjs +0 -50
- package/esm2022/navigation/focusable-element.interface.mjs +0 -5
- package/esm2022/navigation/focusable.directive.mjs +0 -150
- package/esm2022/navigation/grid-focusable-element.mjs +0 -28
- package/esm2022/navigation/item-map.mjs +0 -59
- package/esm2022/navigation/logical-cell.directive.mjs +0 -224
- package/esm2022/navigation/logical-cell.interface.mjs +0 -5
- package/esm2022/navigation/logical-row.directive.mjs +0 -131
- package/esm2022/navigation/logical-row.interface.mjs +0 -5
- package/esm2022/navigation/navigable-settings.mjs +0 -5
- package/esm2022/navigation/navigation-cell.interface.mjs +0 -5
- package/esm2022/navigation/navigation-change.interface.mjs +0 -5
- package/esm2022/navigation/navigation-cursor.mjs +0 -224
- package/esm2022/navigation/navigation-metadata.mjs +0 -35
- package/esm2022/navigation/navigation-mode.mjs +0 -5
- package/esm2022/navigation/navigation-model.mjs +0 -138
- package/esm2022/navigation/navigation-row.interface.mjs +0 -5
- package/esm2022/navigation/navigation.service.mjs +0 -998
- package/esm2022/navigation/toolbar-tool-name.mjs +0 -18
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/pdf/export-element.mjs +0 -135
- package/esm2022/pdf/grid-query.mjs +0 -45
- package/esm2022/pdf/pdf-command-tool.directive.mjs +0 -60
- package/esm2022/pdf/pdf-command.directive.mjs +0 -98
- package/esm2022/pdf/pdf-export-event.mjs +0 -16
- package/esm2022/pdf/pdf-margin.component.mjs +0 -38
- package/esm2022/pdf/pdf-margin.interface.mjs +0 -5
- package/esm2022/pdf/pdf-template.directive.mjs +0 -43
- package/esm2022/pdf/pdf.component.mjs +0 -331
- package/esm2022/pdf/pdf.module.mjs +0 -47
- package/esm2022/pdf/pdf.service.mjs +0 -42
- package/esm2022/progress-kendo-angular-grid.mjs +0 -8
- package/esm2022/rendering/cell-loading.template.directive.mjs +0 -39
- package/esm2022/rendering/cell-template.directive.mjs +0 -44
- package/esm2022/rendering/cell.component.mjs +0 -717
- package/esm2022/rendering/common/cell-context.mjs +0 -13
- package/esm2022/rendering/common/col-group.component.mjs +0 -98
- package/esm2022/rendering/common/dom-queries.mjs +0 -162
- package/esm2022/rendering/common/field-accessor.pipe.mjs +0 -48
- package/esm2022/rendering/common/format.pipe.mjs +0 -37
- package/esm2022/rendering/common/loading.component.mjs +0 -60
- package/esm2022/rendering/common/row-args.mjs +0 -5
- package/esm2022/rendering/common/row-class.mjs +0 -5
- package/esm2022/rendering/common/spacer.component.mjs +0 -62
- package/esm2022/rendering/constants.mjs +0 -20
- package/esm2022/rendering/details/detail-collapse-event.mjs +0 -27
- package/esm2022/rendering/details/detail-expand-event.mjs +0 -27
- package/esm2022/rendering/details/detail-template.directive.mjs +0 -61
- package/esm2022/rendering/details/details.service.mjs +0 -56
- package/esm2022/rendering/details-expand.directive.mjs +0 -136
- package/esm2022/rendering/footer/footer-template.directive.mjs +0 -48
- package/esm2022/rendering/footer/footer.component.mjs +0 -266
- package/esm2022/rendering/grid-table.directive.mjs +0 -52
- package/esm2022/rendering/groups-expand.directive.mjs +0 -149
- package/esm2022/rendering/header/header-template.directive.mjs +0 -45
- package/esm2022/rendering/header/header.component.mjs +0 -1055
- package/esm2022/rendering/list.component.mjs +0 -1176
- package/esm2022/rendering/loading-template.directive.mjs +0 -38
- package/esm2022/rendering/no-records-template.directive.mjs +0 -38
- package/esm2022/rendering/rowspan.service.mjs +0 -24
- package/esm2022/rendering/table-body.component.mjs +0 -1250
- package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +0 -83
- package/esm2022/rendering/toolbar/toolbar-navigation.service.mjs +0 -58
- package/esm2022/rendering/toolbar/toolbar-position.mjs +0 -5
- package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +0 -55
- package/esm2022/rendering/toolbar/toolbar.component.mjs +0 -159
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +0 -272
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-request-response.service.mjs +0 -624
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-tool.directive.mjs +0 -273
- package/esm2022/rendering/toolbar/tools/ai-assistant/models.mjs +0 -43
- package/esm2022/rendering/toolbar/tools/ai-assistant/utils.mjs +0 -92
- package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +0 -238
- package/esm2022/rendering/toolbar/tools/filter-command-tool.directive.mjs +0 -219
- package/esm2022/rendering/toolbar/tools/filter-tool-wrapper.component.mjs +0 -151
- package/esm2022/rendering/toolbar/tools/filter-toolbar-tool.component.mjs +0 -223
- package/esm2022/rendering/toolbar/tools/group-command-tool.directive.mjs +0 -208
- package/esm2022/rendering/toolbar/tools/group-toolbar-tool.component.mjs +0 -451
- package/esm2022/rendering/toolbar/tools/select-all-command-tool.directive.mjs +0 -93
- package/esm2022/rendering/toolbar/tools/sort-command-tool.directive.mjs +0 -222
- package/esm2022/rendering/toolbar/tools/sort-toolbar-tool.component.mjs +0 -245
- package/esm2022/row-reordering/drag-handle-template.directive.mjs +0 -44
- package/esm2022/row-reordering/drag-hint-template.directive.mjs +0 -42
- package/esm2022/row-reordering/row-reorder.service.mjs +0 -280
- package/esm2022/row-reordering/types.mjs +0 -5
- package/esm2022/row-reordering/utils.mjs +0 -88
- package/esm2022/scrolling/content-scroll-event.mjs +0 -5
- package/esm2022/scrolling/row-height.service.mjs +0 -55
- package/esm2022/scrolling/scroll-bottom-event.mjs +0 -5
- package/esm2022/scrolling/scroll-request.service.mjs +0 -24
- package/esm2022/scrolling/scroll-sync.service.mjs +0 -80
- package/esm2022/scrolling/scroller.service.mjs +0 -254
- package/esm2022/scrolling/scrollmode.mjs +0 -5
- package/esm2022/scrolling/suspend.service.mjs +0 -17
- package/esm2022/selection/cell-selection.service.mjs +0 -349
- package/esm2022/selection/marquee.directive.mjs +0 -188
- package/esm2022/selection/pair-set.mjs +0 -158
- package/esm2022/selection/selectall-checkbox.directive.mjs +0 -143
- package/esm2022/selection/selection-checkbox.directive.mjs +0 -132
- package/esm2022/selection/selection-default.mjs +0 -208
- package/esm2022/selection/selection.directive.mjs +0 -53
- package/esm2022/selection/selection.service.mjs +0 -466
- package/esm2022/selection/types.mjs +0 -5
- package/esm2022/state-management/grid-state.models.mjs +0 -26
- package/esm2022/state-management/redo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-redo.directive.mjs +0 -249
- package/esm2022/state-management/undo-redo.service.mjs +0 -21
- package/esm2022/state-management/undo-redo.stack.mjs +0 -238
- package/esm2022/utils.mjs +0 -216
|
@@ -1,151 +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, Input } from '@angular/core';
|
|
6
|
-
import { GridComponent } from '../grid.component';
|
|
7
|
-
import { LocalDataChangesService } from '../editing/local-data-changes.service';
|
|
8
|
-
import { markAllAsTouched } from './utils';
|
|
9
|
-
import { EditingDirectiveBase } from './editing-directive-base';
|
|
10
|
-
import { DialogFormComponent } from '../editing/form';
|
|
11
|
-
import { isPresent } from '@progress/kendo-angular-common';
|
|
12
|
-
import { AdaptiveGridService } from '../common/adaptiveness.service';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
import * as i1 from "../grid.component";
|
|
15
|
-
import * as i2 from "../editing/local-data-changes.service";
|
|
16
|
-
import * as i3 from "../common/adaptiveness.service";
|
|
17
|
-
/**
|
|
18
|
-
* Represents the Kendo UI Grid external editing directive. The directive manages editing operations in the Grid when using the
|
|
19
|
-
* External Form ([see example](slug:external_editing_grid#quick-setup)).
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```typescript
|
|
23
|
-
* <kendo-grid [data]="data" kendoGridExternalEditing></kendo-grid>
|
|
24
|
-
* ```
|
|
25
|
-
* @remarks
|
|
26
|
-
* Applied to: {@link GridComponent}.
|
|
27
|
-
*/
|
|
28
|
-
export class ExternalEditingDirective extends EditingDirectiveBase {
|
|
29
|
-
grid;
|
|
30
|
-
localDataChangesService;
|
|
31
|
-
adaptiveGridService;
|
|
32
|
-
/**
|
|
33
|
-
* Specifies the function that creates the `FormGroup` for the edited model.
|
|
34
|
-
*/
|
|
35
|
-
createFormGroup;
|
|
36
|
-
/**
|
|
37
|
-
* Customizes form orientation, hints, labels, and error messages.
|
|
38
|
-
*/
|
|
39
|
-
formSettings;
|
|
40
|
-
/**
|
|
41
|
-
* Customizes the Dialog that contains the edit form.
|
|
42
|
-
*/
|
|
43
|
-
dialogSettings;
|
|
44
|
-
constructor(grid, localDataChangesService, adaptiveGridService) {
|
|
45
|
-
super(grid, localDataChangesService);
|
|
46
|
-
this.grid = grid;
|
|
47
|
-
this.localDataChangesService = localDataChangesService;
|
|
48
|
-
this.adaptiveGridService = adaptiveGridService;
|
|
49
|
-
}
|
|
50
|
-
ngOnInit() {
|
|
51
|
-
super.ngOnInit();
|
|
52
|
-
this.subscriptions
|
|
53
|
-
.add(this.grid.edit.subscribe(this.editHandler.bind(this)));
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
* Opens a Dialog that contains the edit form.
|
|
58
|
-
*/
|
|
59
|
-
openEditFormDialog(editEventArgs, formGroup, formSettings) {
|
|
60
|
-
const formControls = this.normalizeFormSettings(formGroup, editEventArgs);
|
|
61
|
-
if (this.grid.adaptiveMode === 'auto' && this.adaptiveGridService.windowSize !== 'large') {
|
|
62
|
-
if (!this.grid.isActionSheetExpanded) {
|
|
63
|
-
this.adaptiveGridService.viewType = 'externalEditing';
|
|
64
|
-
this.grid.adaptiveRenderer.externalEditingSettings = { formControls, formGroup, formSettings, event: editEventArgs, externalEditingDirective: this };
|
|
65
|
-
this.grid.adaptiveRenderer.actionSheet.toggle(true);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
const settings = { appendTo: this.grid.dialogContainer, content: DialogFormComponent, title: this.localization.get('externalEditingTitle'), ...this.dialogSettings };
|
|
70
|
-
const dialog = this.dialogService.open(settings);
|
|
71
|
-
this.adaptiveGridService.popupRef = dialog;
|
|
72
|
-
dialog.content.setInput('controls', formControls);
|
|
73
|
-
formSettings && dialog.content.setInput('formSettings', formSettings);
|
|
74
|
-
dialog.content.setInput('formGroup', formGroup);
|
|
75
|
-
dialog.result.subscribe((r) => {
|
|
76
|
-
const resultType = r['text'];
|
|
77
|
-
if (resultType === this.localization.get('externalEditingSaveText')) {
|
|
78
|
-
this.saveHandler({ ...editEventArgs, formGroup });
|
|
79
|
-
}
|
|
80
|
-
dialog.close();
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
createModel(args) {
|
|
85
|
-
return this.createFormGroup(args);
|
|
86
|
-
}
|
|
87
|
-
editHandler(args) {
|
|
88
|
-
const formGroup = this.createModel(args);
|
|
89
|
-
this.openEditFormDialog(args, formGroup, this.formSettings);
|
|
90
|
-
}
|
|
91
|
-
saveModel({ dataItem, formGroup, isNew }) {
|
|
92
|
-
if (!formGroup.dirty && !isNew) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
if (formGroup.valid) {
|
|
96
|
-
const item = dataItem || [];
|
|
97
|
-
this.editService.assignValues(item, formGroup.value);
|
|
98
|
-
return item;
|
|
99
|
-
}
|
|
100
|
-
markAllAsTouched(formGroup);
|
|
101
|
-
}
|
|
102
|
-
addHandler(args) {
|
|
103
|
-
const formGroup = this.createModel(args);
|
|
104
|
-
this.openEditFormDialog(args, formGroup, this.formSettings);
|
|
105
|
-
}
|
|
106
|
-
normalizeFormSettings(args, editEventArgs) {
|
|
107
|
-
const editableColumnFields = this.grid.columns.toArray().filter(c => c.field && c.editable && isPresent(args.get(c.field))).map(c => c.field);
|
|
108
|
-
const settings = editableColumnFields.map(k => {
|
|
109
|
-
const column = this.grid.columns.toArray().find(c => c.field === k);
|
|
110
|
-
const title = column.title || k;
|
|
111
|
-
const template = column.editTemplateRef;
|
|
112
|
-
const templateContext = template ? {
|
|
113
|
-
$implicit: args,
|
|
114
|
-
isNew: editEventArgs.isNew,
|
|
115
|
-
column,
|
|
116
|
-
dataItem: editEventArgs.dataItem,
|
|
117
|
-
formGroup: args,
|
|
118
|
-
rowIndex: editEventArgs.rowIndex
|
|
119
|
-
} : null;
|
|
120
|
-
const customSettings = this.formSettings?.fields?.[k];
|
|
121
|
-
return {
|
|
122
|
-
name: k,
|
|
123
|
-
label: customSettings?.label || title,
|
|
124
|
-
hint: customSettings?.hint,
|
|
125
|
-
errors: customSettings?.errors,
|
|
126
|
-
formControl: args.get(k),
|
|
127
|
-
dataType: column.editor,
|
|
128
|
-
orientation: this.formSettings?.orientation || 'vertical',
|
|
129
|
-
template: template,
|
|
130
|
-
templateContext: templateContext
|
|
131
|
-
};
|
|
132
|
-
});
|
|
133
|
-
return settings.filter(item => isPresent(item));
|
|
134
|
-
}
|
|
135
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExternalEditingDirective, deps: [{ token: i1.GridComponent }, { token: i2.LocalDataChangesService }, { token: i3.AdaptiveGridService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
136
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ExternalEditingDirective, isStandalone: true, selector: "[kendoGridExternalEditing]", inputs: { createFormGroup: ["kendoGridExternalEditing", "createFormGroup"], formSettings: "formSettings", dialogSettings: "dialogSettings" }, usesInheritance: true, ngImport: i0 });
|
|
137
|
-
}
|
|
138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExternalEditingDirective, decorators: [{
|
|
139
|
-
type: Directive,
|
|
140
|
-
args: [{
|
|
141
|
-
selector: '[kendoGridExternalEditing]',
|
|
142
|
-
standalone: true
|
|
143
|
-
}]
|
|
144
|
-
}], ctorParameters: () => [{ type: i1.GridComponent }, { type: i2.LocalDataChangesService }, { type: i3.AdaptiveGridService }], propDecorators: { createFormGroup: [{
|
|
145
|
-
type: Input,
|
|
146
|
-
args: ['kendoGridExternalEditing']
|
|
147
|
-
}], formSettings: [{
|
|
148
|
-
type: Input
|
|
149
|
-
}], dialogSettings: [{
|
|
150
|
-
type: Input
|
|
151
|
-
}] } });
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ChangeDetectorRef, Directive, Input } from '@angular/core';
|
|
6
|
-
import { Keys } from '@progress/kendo-angular-common';
|
|
7
|
-
import { EditingDirectiveBase } from './editing-directive-base';
|
|
8
|
-
import { GridComponent } from '../grid.component';
|
|
9
|
-
import { LocalDataChangesService } from '../editing/local-data-changes.service';
|
|
10
|
-
import { markAllAsTouched } from './utils';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "../grid.component";
|
|
13
|
-
import * as i2 from "../editing/local-data-changes.service";
|
|
14
|
-
/**
|
|
15
|
-
* Represent the directive that manages in-cell editing operations in the Grid when using Reactive Forms ([see example](slug:editing_incell_grid#quick-setup)).
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```html
|
|
19
|
-
* <kendo-grid [data]="data" kendoGridInCellEditing></kendo-grid>
|
|
20
|
-
* ```
|
|
21
|
-
* @remarks
|
|
22
|
-
* Applied to: {@link GridComponent}.
|
|
23
|
-
*/
|
|
24
|
-
export class InCellEditingDirective extends EditingDirectiveBase {
|
|
25
|
-
grid;
|
|
26
|
-
localDataChangesService;
|
|
27
|
-
cdr;
|
|
28
|
-
/**
|
|
29
|
-
* Specifies the function that creates the `FormGroup` for the edited model.
|
|
30
|
-
*/
|
|
31
|
-
createFormGroup;
|
|
32
|
-
constructor(grid, localDataChangesService, cdr) {
|
|
33
|
-
super(grid, localDataChangesService);
|
|
34
|
-
this.grid = grid;
|
|
35
|
-
this.localDataChangesService = localDataChangesService;
|
|
36
|
-
this.cdr = cdr;
|
|
37
|
-
}
|
|
38
|
-
// Need mixin
|
|
39
|
-
createModel(args) {
|
|
40
|
-
return this.createFormGroup(args);
|
|
41
|
-
}
|
|
42
|
-
saveModel({ dataItem, formGroup, isNew }) {
|
|
43
|
-
if (!formGroup.dirty && !isNew) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
if (formGroup.valid) {
|
|
47
|
-
this.editService.assignValues(dataItem, formGroup.value);
|
|
48
|
-
return dataItem;
|
|
49
|
-
}
|
|
50
|
-
markAllAsTouched(formGroup);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* @hidden
|
|
54
|
-
*/
|
|
55
|
-
ngOnInit() {
|
|
56
|
-
super.ngOnInit();
|
|
57
|
-
this.subscriptions.add(this.grid.cellClick.subscribe(this.cellClickHandler.bind(this)));
|
|
58
|
-
this.subscriptions.add(this.grid.cellClose.subscribe(this.cellCloseHandler.bind(this)));
|
|
59
|
-
}
|
|
60
|
-
removeHandler(args) {
|
|
61
|
-
super.removeHandler(args);
|
|
62
|
-
this.grid.cancelCell();
|
|
63
|
-
}
|
|
64
|
-
cellClickHandler(args) {
|
|
65
|
-
if (!args.isEdited && args.type !== 'contextmenu') {
|
|
66
|
-
const colIndex = this.grid.isStacked ? args.column.leafIndex : args.columnIndex;
|
|
67
|
-
this.grid.editCell(args.rowIndex, colIndex, this.createFormGroup(args));
|
|
68
|
-
this.cdr.markForCheck();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
cellCloseHandler(args) {
|
|
72
|
-
const { formGroup, dataItem } = args;
|
|
73
|
-
if (!formGroup.valid) {
|
|
74
|
-
args.preventDefault();
|
|
75
|
-
}
|
|
76
|
-
else if (formGroup.dirty) {
|
|
77
|
-
if (args.originalEvent && args.originalEvent.code === Keys.Escape) {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
this.editService.assignValues(dataItem, formGroup.value);
|
|
81
|
-
this.editService.update(dataItem);
|
|
82
|
-
}
|
|
83
|
-
this.cdr.markForCheck();
|
|
84
|
-
}
|
|
85
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InCellEditingDirective, deps: [{ token: i1.GridComponent }, { token: i2.LocalDataChangesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
86
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: InCellEditingDirective, isStandalone: true, selector: "[kendoGridInCellEditing]", inputs: { createFormGroup: ["kendoGridInCellEditing", "createFormGroup"] }, usesInheritance: true, ngImport: i0 });
|
|
87
|
-
}
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InCellEditingDirective, decorators: [{
|
|
89
|
-
type: Directive,
|
|
90
|
-
args: [{
|
|
91
|
-
selector: '[kendoGridInCellEditing]',
|
|
92
|
-
standalone: true
|
|
93
|
-
}]
|
|
94
|
-
}], ctorParameters: () => [{ type: i1.GridComponent }, { type: i2.LocalDataChangesService }, { type: i0.ChangeDetectorRef }], propDecorators: { createFormGroup: [{
|
|
95
|
-
type: Input,
|
|
96
|
-
args: ['kendoGridInCellEditing']
|
|
97
|
-
}] } });
|
|
@@ -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 { isDevMode } from '@angular/core';
|
|
6
|
-
import { GridConfigurationErrorMessages } from '../common/error-messages';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export class LocalEditService {
|
|
11
|
-
grid;
|
|
12
|
-
localDataChangesService;
|
|
13
|
-
constructor(grid, localDataChangesService) {
|
|
14
|
-
this.grid = grid;
|
|
15
|
-
this.localDataChangesService = localDataChangesService;
|
|
16
|
-
}
|
|
17
|
-
create(item) {
|
|
18
|
-
if (this.hasLocalData && this.grid.skip) {
|
|
19
|
-
this.localDataChangesService.data.splice(this.grid.skip, 0, item);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
this.data.unshift(item);
|
|
23
|
-
}
|
|
24
|
-
this.dataChanged();
|
|
25
|
-
}
|
|
26
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
27
|
-
update(_item) {
|
|
28
|
-
/* noop */
|
|
29
|
-
}
|
|
30
|
-
remove(item) {
|
|
31
|
-
const data = this.data;
|
|
32
|
-
for (let idx = 0; idx < data.length; idx++) {
|
|
33
|
-
if (item === data[idx]) {
|
|
34
|
-
data.splice(idx, 1);
|
|
35
|
-
this.dataChanged({ action: 'remove', item: item });
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
assignValues(target, source) {
|
|
41
|
-
Object.assign(target, source);
|
|
42
|
-
}
|
|
43
|
-
dataChanged(args = {}) {
|
|
44
|
-
if (this.hasLocalData) {
|
|
45
|
-
this.localDataChangesService.changes.emit(args);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
get hasLocalData() {
|
|
49
|
-
return Array.isArray(this.localDataChangesService.data);
|
|
50
|
-
}
|
|
51
|
-
get data() {
|
|
52
|
-
if (this.hasLocalData) {
|
|
53
|
-
return this.localDataChangesService.data;
|
|
54
|
-
}
|
|
55
|
-
const data = this.grid.data;
|
|
56
|
-
if (Array.isArray(data)) {
|
|
57
|
-
return data;
|
|
58
|
-
}
|
|
59
|
-
if (isDevMode()) {
|
|
60
|
-
throw new Error(GridConfigurationErrorMessages.requiredEditService);
|
|
61
|
-
}
|
|
62
|
-
return [];
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -1,13 +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 { LocalEditService } from './local-edit.service';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export class LocalRowEditService extends LocalEditService {
|
|
10
|
-
update() {
|
|
11
|
-
this.dataChanged();
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -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 { Directive, Input } from '@angular/core';
|
|
6
|
-
import { RowEditingDirectiveBase } from './row-editing-directive-base';
|
|
7
|
-
import { GridComponent } from '../grid.component';
|
|
8
|
-
import { LocalDataChangesService } from '../editing/local-data-changes.service';
|
|
9
|
-
import { markAllAsTouched } from './utils';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "../grid.component";
|
|
12
|
-
import * as i2 from "../editing/local-data-changes.service";
|
|
13
|
-
/**
|
|
14
|
-
* Represents the directive that manages editing operations in the Grid when using Reactive Forms ([see example](slug:inline_editing_grid#using-reactive-forms)).
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```html
|
|
18
|
-
* <kendo-grid [data]="data" kendoGridReactiveEditing></kendo-grid>
|
|
19
|
-
* ```
|
|
20
|
-
* @remarks
|
|
21
|
-
* Applied to: {@link GridComponent}.
|
|
22
|
-
*/
|
|
23
|
-
export class ReactiveEditingDirective extends RowEditingDirectiveBase {
|
|
24
|
-
grid;
|
|
25
|
-
localDataChangesService;
|
|
26
|
-
/**
|
|
27
|
-
* Specifies the function that creates the `FormGroup` for the edited model.
|
|
28
|
-
*/
|
|
29
|
-
createFormGroup;
|
|
30
|
-
constructor(grid, localDataChangesService) {
|
|
31
|
-
super(grid, localDataChangesService);
|
|
32
|
-
this.grid = grid;
|
|
33
|
-
this.localDataChangesService = localDataChangesService;
|
|
34
|
-
}
|
|
35
|
-
createModel(args) {
|
|
36
|
-
return this.createFormGroup(args);
|
|
37
|
-
}
|
|
38
|
-
saveModel({ dataItem, formGroup, isNew }) {
|
|
39
|
-
if (!formGroup.dirty && !isNew) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
if (formGroup.valid) {
|
|
43
|
-
this.editService.assignValues(dataItem, formGroup.value);
|
|
44
|
-
return dataItem;
|
|
45
|
-
}
|
|
46
|
-
markAllAsTouched(formGroup);
|
|
47
|
-
}
|
|
48
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactiveEditingDirective, deps: [{ token: i1.GridComponent }, { token: i2.LocalDataChangesService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
49
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ReactiveEditingDirective, isStandalone: true, selector: "[kendoGridReactiveEditing]", inputs: { createFormGroup: ["kendoGridReactiveEditing", "createFormGroup"] }, usesInheritance: true, ngImport: i0 });
|
|
50
|
-
}
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactiveEditingDirective, decorators: [{
|
|
52
|
-
type: Directive,
|
|
53
|
-
args: [{
|
|
54
|
-
selector: '[kendoGridReactiveEditing]',
|
|
55
|
-
standalone: true
|
|
56
|
-
}]
|
|
57
|
-
}], ctorParameters: () => [{ type: i1.GridComponent }, { type: i2.LocalDataChangesService }], propDecorators: { createFormGroup: [{
|
|
58
|
-
type: Input,
|
|
59
|
-
args: ['kendoGridReactiveEditing']
|
|
60
|
-
}] } });
|
|
@@ -1,53 +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 { EditingDirectiveBase } from './editing-directive-base';
|
|
6
|
-
import { LocalRowEditService } from './local-row-edit.service';
|
|
7
|
-
import { Directive } from '@angular/core';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export class RowEditingDirectiveBase extends EditingDirectiveBase {
|
|
13
|
-
rowIndex;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
ngOnInit() {
|
|
18
|
-
super.ngOnInit();
|
|
19
|
-
this.subscriptions
|
|
20
|
-
.add(this.grid.edit.subscribe(this.editHandler.bind(this)));
|
|
21
|
-
}
|
|
22
|
-
createDefaultService() {
|
|
23
|
-
return new LocalRowEditService(this.grid, this.localDataChangesService);
|
|
24
|
-
}
|
|
25
|
-
addHandler() {
|
|
26
|
-
this.closeEditor();
|
|
27
|
-
super.addHandler();
|
|
28
|
-
}
|
|
29
|
-
editHandler(args) {
|
|
30
|
-
this.closeEditor();
|
|
31
|
-
this.rowIndex = args.rowIndex;
|
|
32
|
-
this.grid.editRow(args.rowIndex, this.createModel(args));
|
|
33
|
-
}
|
|
34
|
-
saveHandler(args) {
|
|
35
|
-
super.saveHandler(args);
|
|
36
|
-
this.clean();
|
|
37
|
-
}
|
|
38
|
-
closeEditor(rowIndex = this.rowIndex) {
|
|
39
|
-
super.closeEditor(rowIndex);
|
|
40
|
-
this.clean();
|
|
41
|
-
}
|
|
42
|
-
clean() {
|
|
43
|
-
delete this.rowIndex;
|
|
44
|
-
}
|
|
45
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RowEditingDirectiveBase, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
46
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: RowEditingDirectiveBase, selector: "[kendoGridRowEditingDirectiveBase]", usesInheritance: true, ngImport: i0 });
|
|
47
|
-
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RowEditingDirectiveBase, decorators: [{
|
|
49
|
-
type: Directive,
|
|
50
|
-
args: [{
|
|
51
|
-
selector: '[kendoGridRowEditingDirectiveBase]'
|
|
52
|
-
}]
|
|
53
|
-
}] });
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, Input } from '@angular/core';
|
|
6
|
-
import { RowEditingDirectiveBase } from './row-editing-directive-base';
|
|
7
|
-
import { GridComponent } from '../grid.component';
|
|
8
|
-
import { LocalDataChangesService } from '../editing/local-data-changes.service';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "../grid.component";
|
|
11
|
-
import * as i2 from "../editing/local-data-changes.service";
|
|
12
|
-
/**
|
|
13
|
-
* Represents the directive that manages editing operations in the Grid when using Template-Driven Angular Forms ([see example](slug:inline_editing_grid#using-template-driven-forms)).
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```html
|
|
17
|
-
* <kendo-grid [data]="data" kendoGridTemplateEditing></kendo-grid>
|
|
18
|
-
* ```
|
|
19
|
-
* @remarks
|
|
20
|
-
* Applied to: {@link GridComponent}.
|
|
21
|
-
*/
|
|
22
|
-
export class TemplateEditingDirective extends RowEditingDirectiveBase {
|
|
23
|
-
grid;
|
|
24
|
-
localDataChangesService;
|
|
25
|
-
/**
|
|
26
|
-
* Specifies the function that creates the `dataItem` for new rows.
|
|
27
|
-
*/
|
|
28
|
-
createNewItem;
|
|
29
|
-
dataItem;
|
|
30
|
-
originalValues;
|
|
31
|
-
constructor(grid, localDataChangesService) {
|
|
32
|
-
super(grid, localDataChangesService);
|
|
33
|
-
this.grid = grid;
|
|
34
|
-
this.localDataChangesService = localDataChangesService;
|
|
35
|
-
}
|
|
36
|
-
editHandler(args) {
|
|
37
|
-
super.editHandler(args);
|
|
38
|
-
this.dataItem = args.dataItem;
|
|
39
|
-
this.originalValues = {};
|
|
40
|
-
this.editService.assignValues(this.originalValues, this.dataItem);
|
|
41
|
-
}
|
|
42
|
-
closeEditor(rowIndex) {
|
|
43
|
-
if (this.dataItem) {
|
|
44
|
-
this.editService.assignValues(this.dataItem, this.originalValues);
|
|
45
|
-
}
|
|
46
|
-
super.closeEditor(rowIndex);
|
|
47
|
-
}
|
|
48
|
-
createModel(args) {
|
|
49
|
-
if (args.isNew) {
|
|
50
|
-
return this.createNewItem();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
saveModel(args) {
|
|
54
|
-
return args.dataItem;
|
|
55
|
-
}
|
|
56
|
-
clean() {
|
|
57
|
-
super.clean();
|
|
58
|
-
delete this.dataItem;
|
|
59
|
-
}
|
|
60
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TemplateEditingDirective, deps: [{ token: i1.GridComponent }, { token: i2.LocalDataChangesService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
61
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: TemplateEditingDirective, isStandalone: true, selector: "[kendoGridTemplateEditing]", inputs: { createNewItem: ["kendoGridTemplateEditing", "createNewItem"] }, usesInheritance: true, ngImport: i0 });
|
|
62
|
-
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TemplateEditingDirective, decorators: [{
|
|
64
|
-
type: Directive,
|
|
65
|
-
args: [{
|
|
66
|
-
selector: '[kendoGridTemplateEditing]',
|
|
67
|
-
standalone: true
|
|
68
|
-
}]
|
|
69
|
-
}], ctorParameters: () => [{ type: i1.GridComponent }, { type: i2.LocalDataChangesService }], propDecorators: { createNewItem: [{
|
|
70
|
-
type: Input,
|
|
71
|
-
args: ['kendoGridTemplateEditing']
|
|
72
|
-
}] } });
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export const markAllAsTouched = (control) => {
|
|
9
|
-
control.markAsTouched();
|
|
10
|
-
if (control.hasOwnProperty('controls')) {
|
|
11
|
-
const controls = control.controls;
|
|
12
|
-
for (const inner in controls) {
|
|
13
|
-
if (controls.hasOwnProperty(inner)) {
|
|
14
|
-
markAllAsTouched(controls[inner]);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
@@ -1,58 +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 { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
7
|
-
import { ExcelService } from './excel.service';
|
|
8
|
-
import { ContextService } from '../common/provider.service';
|
|
9
|
-
import { ToolbarToolBase } from '../common/toolbar-tool-base.directive';
|
|
10
|
-
import { ToolbarToolName } from '../navigation/toolbar-tool-name';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "./excel.service";
|
|
13
|
-
import * as i2 from "@progress/kendo-angular-toolbar";
|
|
14
|
-
import * as i3 from "../common/provider.service";
|
|
15
|
-
/**
|
|
16
|
-
* Represents the **Export to Excel** toolbar tool of the Grid.
|
|
17
|
-
* Apply this directive to any `kendo-toolbar-button` element inside a ToolbarComponent used in the Grid.
|
|
18
|
-
* When the user clicks the button, the [`excelExport`]({% slug api_grid_gridcomponent %}#toc-excelexport) event fires ([see example]({% slug excelexport_grid %})).
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```html
|
|
22
|
-
* <kendo-grid>
|
|
23
|
-
* <kendo-toolbar>
|
|
24
|
-
* <kendo-toolbar-button text="Excel Export" kendoGridExcelTool></kendo-toolbar-button>
|
|
25
|
-
* </kendo-toolbar>
|
|
26
|
-
* <kendo-grid-excel fileName="Grid.xlsx"></kendo-grid-excel>
|
|
27
|
-
* </kendo-grid>
|
|
28
|
-
* ```
|
|
29
|
-
* @remarks
|
|
30
|
-
* Applied to: {@link ToolBarButtonComponent}.
|
|
31
|
-
*/
|
|
32
|
-
export class ExcelCommandToolbarDirective extends ToolbarToolBase {
|
|
33
|
-
excelService;
|
|
34
|
-
constructor(excelService, host, ctx, zone, cdr) {
|
|
35
|
-
super(host, ToolbarToolName.excelExport, ctx, zone, cdr);
|
|
36
|
-
this.excelService = excelService;
|
|
37
|
-
}
|
|
38
|
-
ngOnInit() {
|
|
39
|
-
super.ngOnInit();
|
|
40
|
-
this.host.className = 'k-grid-excel';
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
onClick(e) {
|
|
46
|
-
e.preventDefault();
|
|
47
|
-
this.excelService.exportClick.emit();
|
|
48
|
-
}
|
|
49
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExcelCommandToolbarDirective, deps: [{ token: i1.ExcelService }, { token: i2.ToolBarButtonComponent }, { token: i3.ContextService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
50
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ExcelCommandToolbarDirective, isStandalone: true, selector: "[kendoGridExcelTool]", usesInheritance: true, ngImport: i0 });
|
|
51
|
-
}
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExcelCommandToolbarDirective, decorators: [{
|
|
53
|
-
type: Directive,
|
|
54
|
-
args: [{
|
|
55
|
-
selector: '[kendoGridExcelTool]',
|
|
56
|
-
standalone: true
|
|
57
|
-
}]
|
|
58
|
-
}], ctorParameters: () => [{ type: i1.ExcelService }, { type: i2.ToolBarButtonComponent }, { type: i3.ContextService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }] });
|