@progress/kendo-angular-grid 21.4.1 → 22.0.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/column-menu/column-menu-item-base.d.ts +1 -1
- package/columns/column-base.d.ts +1 -1
- package/common/toolbar-tool-base.directive.d.ts +1 -1
- package/editing/toolbar-editing-tool-base.directive.d.ts +1 -1
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/editing-directives/row-editing-directive-base.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-grid.mjs +666 -666
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/filtering/boolean-filter.component.d.ts +1 -1
- package/filtering/date-filter.component.d.ts +1 -1
- package/filtering/filter-host.directive.d.ts +1 -1
- package/filtering/filter-input-wrapper.component.d.ts +1 -1
- package/filtering/numeric-filter.component.d.ts +1 -1
- package/filtering/operators/filter-operator.base.d.ts +1 -1
- package/filtering/string-filter.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +28 -36
- package/schematics/ngAdd/index.js +7 -7
- package/selection/selection-default.d.ts +1 -1
- package/esm2022/adaptiveness/adaptive-mode.mjs +0 -5
- package/esm2022/adaptiveness/adaptive-renderer.component.mjs +0 -1270
- package/esm2022/aggregates/aggregate-types.mjs +0 -5
- package/esm2022/aggregates/selection-aggregate.service.mjs +0 -200
- package/esm2022/aggregates/status-bar-template.directive.mjs +0 -30
- package/esm2022/aggregates/status-bar.component.mjs +0 -70
- package/esm2022/column-menu/column-chooser-content.component.mjs +0 -318
- package/esm2022/column-menu/column-chooser.component.mjs +0 -230
- package/esm2022/column-menu/column-list-kb-nav.service.mjs +0 -40
- package/esm2022/column-menu/column-list.component.mjs +0 -478
- package/esm2022/column-menu/column-locked-change-event.mjs +0 -19
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +0 -89
- package/esm2022/column-menu/column-menu-autosize.component.mjs +0 -97
- package/esm2022/column-menu/column-menu-chooser.component.mjs +0 -151
- package/esm2022/column-menu/column-menu-container.component.mjs +0 -67
- package/esm2022/column-menu/column-menu-expandable-item.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-filter.component.mjs +0 -152
- package/esm2022/column-menu/column-menu-item-base.mjs +0 -44
- package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +0 -45
- package/esm2022/column-menu/column-menu-item.component.mjs +0 -514
- package/esm2022/column-menu/column-menu-item.directive.mjs +0 -164
- package/esm2022/column-menu/column-menu-lock.component.mjs +0 -118
- package/esm2022/column-menu/column-menu-position.component.mjs +0 -196
- package/esm2022/column-menu/column-menu-settings.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-sort.component.mjs +0 -119
- package/esm2022/column-menu/column-menu-stick.component.mjs +0 -120
- package/esm2022/column-menu/column-menu-template.directive.mjs +0 -47
- package/esm2022/column-menu/column-menu.component.mjs +0 -839
- package/esm2022/column-menu/column-menu.service.mjs +0 -71
- package/esm2022/column-menu/column-sticky-change-event.mjs +0 -19
- package/esm2022/column-menu/column-visibility-change-event.mjs +0 -19
- package/esm2022/column-menu/utils.mjs +0 -52
- package/esm2022/column-resizing/column-handle.directive.mjs +0 -499
- package/esm2022/column-resizing/column-resize.interface.mjs +0 -5
- package/esm2022/column-resizing/column-resizing.service.mjs +0 -214
- package/esm2022/column-resizing/table.directive.mjs +0 -141
- package/esm2022/columns/cell-rowspan.mjs +0 -5
- package/esm2022/columns/checkbox-column.component.mjs +0 -106
- package/esm2022/columns/column-base.mjs +0 -432
- package/esm2022/columns/column-common.mjs +0 -73
- package/esm2022/columns/column-group.component.mjs +0 -135
- package/esm2022/columns/column-list.mjs +0 -94
- package/esm2022/columns/column.component.mjs +0 -198
- package/esm2022/columns/columns-container.mjs +0 -101
- package/esm2022/columns/command-column.component.mjs +0 -80
- package/esm2022/columns/reorder-column.component.mjs +0 -114
- package/esm2022/columns/sort-settings.mjs +0 -18
- package/esm2022/columns/span-column.component.mjs +0 -195
- package/esm2022/common/adaptiveness.service.mjs +0 -72
- package/esm2022/common/cell-click-event-args.interface.mjs +0 -5
- package/esm2022/common/clipboard-types.mjs +0 -5
- package/esm2022/common/clipboard.directive.mjs +0 -197
- package/esm2022/common/clipboard.service.mjs +0 -221
- package/esm2022/common/column-info.service.mjs +0 -92
- package/esm2022/common/create-form-group.mjs +0 -5
- package/esm2022/common/data-layout-mode.mjs +0 -5
- package/esm2022/common/default-track-by.mjs +0 -13
- package/esm2022/common/dom-events.service.mjs +0 -27
- package/esm2022/common/error-messages.mjs +0 -64
- package/esm2022/common/event-emitter.mjs +0 -39
- package/esm2022/common/fetch-data-callback.mjs +0 -5
- package/esm2022/common/field-datatype.mjs +0 -5
- package/esm2022/common/filter-descriptor-differ.mjs +0 -69
- package/esm2022/common/filter-operator.interface.mjs +0 -5
- package/esm2022/common/grid-col-size.mjs +0 -5
- package/esm2022/common/id.service.mjs +0 -59
- package/esm2022/common/pager-settings.mjs +0 -20
- package/esm2022/common/preventable-event.mjs +0 -24
- package/esm2022/common/provider.service.mjs +0 -42
- package/esm2022/common/remove-confirmation.mjs +0 -5
- package/esm2022/common/resizable-settings.mjs +0 -9
- package/esm2022/common/single-popup.service.mjs +0 -158
- package/esm2022/common/size-options.mjs +0 -5
- package/esm2022/common/sort.service.mjs +0 -14
- package/esm2022/common/toolbar-tool-base.directive.mjs +0 -85
- package/esm2022/constants.mjs +0 -16
- package/esm2022/data/change-event-args.interface.mjs +0 -5
- package/esm2022/data/change-notification.service.mjs +0 -30
- package/esm2022/data/data-item.interface.mjs +0 -5
- package/esm2022/data/data-mapping.service.mjs +0 -136
- package/esm2022/data/data.collection.mjs +0 -87
- package/esm2022/data/data.iterators.mjs +0 -221
- package/esm2022/data/grid-item.interface.mjs +0 -5
- package/esm2022/data/group-footer-item.interface.mjs +0 -5
- package/esm2022/data/group-item.interface.mjs +0 -5
- package/esm2022/databinding.directive.mjs +0 -233
- package/esm2022/directives.mjs +0 -504
- package/esm2022/dragdrop/column-reorder-config.mjs +0 -5
- package/esm2022/dragdrop/column-reorder-event.mjs +0 -31
- package/esm2022/dragdrop/column-reorder.service.mjs +0 -20
- package/esm2022/dragdrop/common.mjs +0 -69
- package/esm2022/dragdrop/context-types.mjs +0 -5
- package/esm2022/dragdrop/drag-and-drop.service.mjs +0 -65
- package/esm2022/dragdrop/drag-hint.service.mjs +0 -137
- package/esm2022/dragdrop/draggable-column.directive.mjs +0 -137
- package/esm2022/dragdrop/drop-cue.service.mjs +0 -46
- package/esm2022/dragdrop/drop-target.directive.mjs +0 -71
- package/esm2022/editing/add-command-tool.directive.mjs +0 -59
- package/esm2022/editing/add-command.directive.mjs +0 -93
- package/esm2022/editing/add-event-args.interface.mjs +0 -5
- package/esm2022/editing/cancel-command-tool.directive.mjs +0 -64
- package/esm2022/editing/cancel-command.directive.mjs +0 -127
- package/esm2022/editing/cancel-event-args.interface.mjs +0 -5
- package/esm2022/editing/cell-close-event.mjs +0 -38
- package/esm2022/editing/edit-command-tool.directive.mjs +0 -60
- package/esm2022/editing/edit-command.directive.mjs +0 -124
- package/esm2022/editing/edit-event-args.interface.mjs +0 -5
- package/esm2022/editing/edit-row-options.interface.mjs +0 -5
- package/esm2022/editing/edit-template.directive.mjs +0 -43
- package/esm2022/editing/edit.service.mjs +0 -182
- package/esm2022/editing/form/dialog-form.component.mjs +0 -102
- package/esm2022/editing/form/form-formfield.component.mjs +0 -188
- package/esm2022/editing/form/form.component.mjs +0 -169
- package/esm2022/editing/form/index.mjs +0 -8
- package/esm2022/editing/form/models.mjs +0 -5
- package/esm2022/editing/local-data-changes.service.mjs +0 -18
- package/esm2022/editing/remove-command-tool.directive.mjs +0 -61
- package/esm2022/editing/remove-command.directive.mjs +0 -123
- package/esm2022/editing/remove-event-args.interface.mjs +0 -5
- package/esm2022/editing/save-command-tool.directive.mjs +0 -65
- package/esm2022/editing/save-command.directive.mjs +0 -126
- package/esm2022/editing/save-event-args.interface.mjs +0 -5
- package/esm2022/editing/toolbar-editing-tool-base.directive.mjs +0 -99
- package/esm2022/editing-directives/create-form-group-args.interface.mjs +0 -5
- package/esm2022/editing-directives/edit-service.interface.mjs +0 -5
- package/esm2022/editing-directives/editing-directive-base.mjs +0 -167
- package/esm2022/editing-directives/external-editing.directive.mjs +0 -151
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +0 -97
- package/esm2022/editing-directives/local-edit.service.mjs +0 -64
- package/esm2022/editing-directives/local-row-edit.service.mjs +0 -13
- package/esm2022/editing-directives/reactive-editing.directive.mjs +0 -60
- package/esm2022/editing-directives/row-editing-directive-base.mjs +0 -53
- package/esm2022/editing-directives/template-editing.directive.mjs +0 -72
- package/esm2022/editing-directives/utils.mjs +0 -18
- package/esm2022/excel/excel-command-tool.directive.mjs +0 -58
- package/esm2022/excel/excel-command.directive.mjs +0 -98
- package/esm2022/excel/excel-export-event.mjs +0 -18
- package/esm2022/excel/excel.component.mjs +0 -223
- package/esm2022/excel/excel.module.mjs +0 -45
- package/esm2022/excel/excel.service.mjs +0 -29
- package/esm2022/filtering/base-filter-cell.component.mjs +0 -174
- package/esm2022/filtering/boolean-filter.component.mjs +0 -83
- package/esm2022/filtering/cell/autocomplete-filter-cell.component.mjs +0 -114
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +0 -113
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +0 -141
- package/esm2022/filtering/cell/filter-cell-component.factory.mjs +0 -19
- package/esm2022/filtering/cell/filter-cell-host.directive.mjs +0 -33
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +0 -242
- package/esm2022/filtering/cell/filter-cell-template.directive.mjs +0 -46
- package/esm2022/filtering/cell/filter-cell-wrapper.component.mjs +0 -74
- package/esm2022/filtering/cell/filter-cell.component.mjs +0 -91
- package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +0 -155
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +0 -127
- package/esm2022/filtering/date-filter.component.mjs +0 -172
- package/esm2022/filtering/filter-component.interface.mjs +0 -5
- package/esm2022/filtering/filter-host.directive.mjs +0 -58
- package/esm2022/filtering/filter-input-wrapper.component.mjs +0 -119
- package/esm2022/filtering/filter-input.directive.mjs +0 -123
- package/esm2022/filtering/filter-row.component.mjs +0 -131
- package/esm2022/filtering/filter.service.mjs +0 -44
- package/esm2022/filtering/filterable.mjs +0 -16
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +0 -167
- package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +0 -179
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +0 -212
- package/esm2022/filtering/menu/filter-menu-component.factory.mjs +0 -19
- package/esm2022/filtering/menu/filter-menu-container.component.mjs +0 -418
- package/esm2022/filtering/menu/filter-menu-dropdownlist.directive.mjs +0 -44
- package/esm2022/filtering/menu/filter-menu-host.directive.mjs +0 -46
- package/esm2022/filtering/menu/filter-menu-input-wrapper.component.mjs +0 -158
- package/esm2022/filtering/menu/filter-menu-template.directive.mjs +0 -48
- package/esm2022/filtering/menu/filter-menu.component.mjs +0 -221
- package/esm2022/filtering/menu/filter-radio-button.directive.mjs +0 -34
- package/esm2022/filtering/menu/menu-tabbing.service.mjs +0 -22
- package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +0 -184
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +0 -230
- package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +0 -107
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +0 -198
- package/esm2022/filtering/multicheckbox-filter.component.mjs +0 -324
- package/esm2022/filtering/numeric-filter.component.mjs +0 -145
- package/esm2022/filtering/operators/after-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/after-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/eq-filter-operator.component.mjs +0 -111
- package/esm2022/filtering/operators/filter-operator.base.mjs +0 -101
- package/esm2022/filtering/operators/gt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/gte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/lt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/lte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/neq-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/string-filter.component.mjs +0 -90
- package/esm2022/grid.component.mjs +0 -4598
- package/esm2022/grid.module.mjs +0 -241
- package/esm2022/grouping/group-footer-template.directive.mjs +0 -44
- package/esm2022/grouping/group-header-column-template.directive.mjs +0 -45
- package/esm2022/grouping/group-header-template.directive.mjs +0 -46
- package/esm2022/grouping/group-header.component.mjs +0 -351
- package/esm2022/grouping/group-info.service.mjs +0 -43
- package/esm2022/grouping/group-key.interface.mjs +0 -5
- package/esm2022/grouping/group-panel.component.mjs +0 -487
- package/esm2022/grouping/group-rows-args.interface.mjs +0 -5
- package/esm2022/grouping/group-settings.mjs +0 -5
- package/esm2022/grouping/groups.service.mjs +0 -69
- package/esm2022/grouping/utils.mjs +0 -14
- package/esm2022/highlight/highlight-item.mjs +0 -5
- package/esm2022/highlight/highlight.directive.mjs +0 -132
- package/esm2022/index.mjs +0 -221
- package/esm2022/layout/browser-support.service.mjs +0 -94
- package/esm2022/layout/resizable.directive.mjs +0 -83
- package/esm2022/layout/resize.service.mjs +0 -29
- package/esm2022/layout/responsive.service.mjs +0 -34
- package/esm2022/layout/row-sync.mjs +0 -47
- package/esm2022/layout/sizing-options.service.mjs +0 -18
- package/esm2022/localization/custom-messages.component.mjs +0 -54
- package/esm2022/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/localization/messages.mjs +0 -895
- package/esm2022/navigation/default-focusable-element.mjs +0 -50
- package/esm2022/navigation/focus-group.mjs +0 -73
- package/esm2022/navigation/focus-root.mjs +0 -50
- package/esm2022/navigation/focusable-element.interface.mjs +0 -5
- package/esm2022/navigation/focusable.directive.mjs +0 -150
- package/esm2022/navigation/grid-focusable-element.mjs +0 -28
- package/esm2022/navigation/item-map.mjs +0 -59
- package/esm2022/navigation/logical-cell.directive.mjs +0 -224
- package/esm2022/navigation/logical-cell.interface.mjs +0 -5
- package/esm2022/navigation/logical-row.directive.mjs +0 -131
- package/esm2022/navigation/logical-row.interface.mjs +0 -5
- package/esm2022/navigation/navigable-settings.mjs +0 -5
- package/esm2022/navigation/navigation-cell.interface.mjs +0 -5
- package/esm2022/navigation/navigation-change.interface.mjs +0 -5
- package/esm2022/navigation/navigation-cursor.mjs +0 -224
- package/esm2022/navigation/navigation-metadata.mjs +0 -35
- package/esm2022/navigation/navigation-mode.mjs +0 -5
- package/esm2022/navigation/navigation-model.mjs +0 -138
- package/esm2022/navigation/navigation-row.interface.mjs +0 -5
- package/esm2022/navigation/navigation.service.mjs +0 -998
- package/esm2022/navigation/toolbar-tool-name.mjs +0 -18
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/pdf/export-element.mjs +0 -135
- package/esm2022/pdf/grid-query.mjs +0 -45
- package/esm2022/pdf/pdf-command-tool.directive.mjs +0 -60
- package/esm2022/pdf/pdf-command.directive.mjs +0 -98
- package/esm2022/pdf/pdf-export-event.mjs +0 -16
- package/esm2022/pdf/pdf-margin.component.mjs +0 -38
- package/esm2022/pdf/pdf-margin.interface.mjs +0 -5
- package/esm2022/pdf/pdf-template.directive.mjs +0 -43
- package/esm2022/pdf/pdf.component.mjs +0 -331
- package/esm2022/pdf/pdf.module.mjs +0 -47
- package/esm2022/pdf/pdf.service.mjs +0 -42
- package/esm2022/progress-kendo-angular-grid.mjs +0 -8
- package/esm2022/rendering/cell-loading.template.directive.mjs +0 -39
- package/esm2022/rendering/cell-template.directive.mjs +0 -44
- package/esm2022/rendering/cell.component.mjs +0 -717
- package/esm2022/rendering/common/cell-context.mjs +0 -13
- package/esm2022/rendering/common/col-group.component.mjs +0 -98
- package/esm2022/rendering/common/dom-queries.mjs +0 -162
- package/esm2022/rendering/common/field-accessor.pipe.mjs +0 -48
- package/esm2022/rendering/common/format.pipe.mjs +0 -37
- package/esm2022/rendering/common/loading.component.mjs +0 -60
- package/esm2022/rendering/common/row-args.mjs +0 -5
- package/esm2022/rendering/common/row-class.mjs +0 -5
- package/esm2022/rendering/common/spacer.component.mjs +0 -62
- package/esm2022/rendering/constants.mjs +0 -20
- package/esm2022/rendering/details/detail-collapse-event.mjs +0 -27
- package/esm2022/rendering/details/detail-expand-event.mjs +0 -27
- package/esm2022/rendering/details/detail-template.directive.mjs +0 -61
- package/esm2022/rendering/details/details.service.mjs +0 -56
- package/esm2022/rendering/details-expand.directive.mjs +0 -136
- package/esm2022/rendering/footer/footer-template.directive.mjs +0 -48
- package/esm2022/rendering/footer/footer.component.mjs +0 -266
- package/esm2022/rendering/grid-table.directive.mjs +0 -52
- package/esm2022/rendering/groups-expand.directive.mjs +0 -149
- package/esm2022/rendering/header/header-template.directive.mjs +0 -45
- package/esm2022/rendering/header/header.component.mjs +0 -1055
- package/esm2022/rendering/list.component.mjs +0 -1176
- package/esm2022/rendering/loading-template.directive.mjs +0 -38
- package/esm2022/rendering/no-records-template.directive.mjs +0 -38
- package/esm2022/rendering/rowspan.service.mjs +0 -24
- package/esm2022/rendering/table-body.component.mjs +0 -1250
- package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +0 -83
- package/esm2022/rendering/toolbar/toolbar-navigation.service.mjs +0 -58
- package/esm2022/rendering/toolbar/toolbar-position.mjs +0 -5
- package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +0 -55
- package/esm2022/rendering/toolbar/toolbar.component.mjs +0 -159
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +0 -272
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-request-response.service.mjs +0 -624
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-tool.directive.mjs +0 -273
- package/esm2022/rendering/toolbar/tools/ai-assistant/models.mjs +0 -43
- package/esm2022/rendering/toolbar/tools/ai-assistant/utils.mjs +0 -92
- package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +0 -238
- package/esm2022/rendering/toolbar/tools/filter-command-tool.directive.mjs +0 -219
- package/esm2022/rendering/toolbar/tools/filter-tool-wrapper.component.mjs +0 -151
- package/esm2022/rendering/toolbar/tools/filter-toolbar-tool.component.mjs +0 -223
- package/esm2022/rendering/toolbar/tools/group-command-tool.directive.mjs +0 -208
- package/esm2022/rendering/toolbar/tools/group-toolbar-tool.component.mjs +0 -451
- package/esm2022/rendering/toolbar/tools/select-all-command-tool.directive.mjs +0 -93
- package/esm2022/rendering/toolbar/tools/sort-command-tool.directive.mjs +0 -222
- package/esm2022/rendering/toolbar/tools/sort-toolbar-tool.component.mjs +0 -245
- package/esm2022/row-reordering/drag-handle-template.directive.mjs +0 -44
- package/esm2022/row-reordering/drag-hint-template.directive.mjs +0 -42
- package/esm2022/row-reordering/row-reorder.service.mjs +0 -280
- package/esm2022/row-reordering/types.mjs +0 -5
- package/esm2022/row-reordering/utils.mjs +0 -88
- package/esm2022/scrolling/content-scroll-event.mjs +0 -5
- package/esm2022/scrolling/row-height.service.mjs +0 -55
- package/esm2022/scrolling/scroll-bottom-event.mjs +0 -5
- package/esm2022/scrolling/scroll-request.service.mjs +0 -24
- package/esm2022/scrolling/scroll-sync.service.mjs +0 -80
- package/esm2022/scrolling/scroller.service.mjs +0 -254
- package/esm2022/scrolling/scrollmode.mjs +0 -5
- package/esm2022/scrolling/suspend.service.mjs +0 -17
- package/esm2022/selection/cell-selection.service.mjs +0 -349
- package/esm2022/selection/marquee.directive.mjs +0 -188
- package/esm2022/selection/pair-set.mjs +0 -158
- package/esm2022/selection/selectall-checkbox.directive.mjs +0 -143
- package/esm2022/selection/selection-checkbox.directive.mjs +0 -132
- package/esm2022/selection/selection-default.mjs +0 -208
- package/esm2022/selection/selection.directive.mjs +0 -53
- package/esm2022/selection/selection.service.mjs +0 -466
- package/esm2022/selection/types.mjs +0 -5
- package/esm2022/state-management/grid-state.models.mjs +0 -26
- package/esm2022/state-management/redo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-redo.directive.mjs +0 -249
- package/esm2022/state-management/undo-redo.service.mjs +0 -21
- package/esm2022/state-management/undo-redo.stack.mjs +0 -238
- package/esm2022/utils.mjs +0 -216
|
@@ -1,717 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, HostBinding, Input, Inject, Optional, TemplateRef } from '@angular/core';
|
|
6
|
-
import { EditService } from '../editing/edit.service';
|
|
7
|
-
import { isSpanColumn, isCheckboxColumn, isRowReorderColumn } from '../columns/column-base';
|
|
8
|
-
import { CommandColumnComponent } from '../columns/command-column.component';
|
|
9
|
-
import { isColumnComponent } from '../columns/column.component';
|
|
10
|
-
import { columnsToRender } from "../columns/column-common";
|
|
11
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
12
|
-
import { isPresent, isNullOrEmptyString, extractFormat } from '../utils';
|
|
13
|
-
import { CELL_CONTEXT } from './common/cell-context';
|
|
14
|
-
import { IdService } from '../common/id.service';
|
|
15
|
-
import { minusIcon, plusIcon, reorderIcon } from '@progress/kendo-svg-icons';
|
|
16
|
-
import { ContextService } from '../common/provider.service';
|
|
17
|
-
import { FieldAccessorPipe } from './common/field-accessor.pipe';
|
|
18
|
-
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
19
|
-
import { SelectionCheckboxDirective } from '../selection/selection-checkbox.directive';
|
|
20
|
-
import { FocusableDirective } from '../navigation/focusable.directive';
|
|
21
|
-
import { NgTemplateOutlet, NgClass, NgStyle } from '@angular/common';
|
|
22
|
-
import { CheckBoxComponent, NumericTextBoxComponent, TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
23
|
-
import { DatePickerComponent } from '@progress/kendo-angular-dateinputs';
|
|
24
|
-
import { TemplateContextDirective } from '@progress/kendo-angular-common';
|
|
25
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
26
|
-
import { DetailTemplateDirective } from './details/detail-template.directive';
|
|
27
|
-
import { DetailsService } from './details/details.service';
|
|
28
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
29
|
-
import * as i0 from "@angular/core";
|
|
30
|
-
import * as i1 from "../editing/edit.service";
|
|
31
|
-
import * as i2 from "../common/id.service";
|
|
32
|
-
import * as i3 from "../common/provider.service";
|
|
33
|
-
import * as i4 from "./details/details.service";
|
|
34
|
-
import * as i5 from "@progress/kendo-angular-l10n";
|
|
35
|
-
import * as i6 from "@angular/forms";
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
export class CellComponent {
|
|
40
|
-
editService;
|
|
41
|
-
idService;
|
|
42
|
-
ctx;
|
|
43
|
-
detailsService;
|
|
44
|
-
localization;
|
|
45
|
-
cellContext;
|
|
46
|
-
get commandCellClass() {
|
|
47
|
-
return this.isCommand(this.column);
|
|
48
|
-
}
|
|
49
|
-
get dragHandleCellClass() {
|
|
50
|
-
return isRowReorderColumn(this.column);
|
|
51
|
-
}
|
|
52
|
-
get dragRowHandleLabel() {
|
|
53
|
-
return isRowReorderColumn(this.column) ? this.ctx.localization.get('dragRowHandleLabel') : undefined;
|
|
54
|
-
}
|
|
55
|
-
column;
|
|
56
|
-
columns;
|
|
57
|
-
columnIndex;
|
|
58
|
-
isNew = false;
|
|
59
|
-
isLoading = false;
|
|
60
|
-
isVirtual = false;
|
|
61
|
-
loadingTemplate;
|
|
62
|
-
detailTemplate;
|
|
63
|
-
item;
|
|
64
|
-
set rowIndex(index) {
|
|
65
|
-
this._rowIndex = index;
|
|
66
|
-
this.updateCellContext();
|
|
67
|
-
}
|
|
68
|
-
get rowIndex() {
|
|
69
|
-
return this._rowIndex;
|
|
70
|
-
}
|
|
71
|
-
dataItem;
|
|
72
|
-
reorderIcon = reorderIcon;
|
|
73
|
-
minusIcon = minusIcon;
|
|
74
|
-
plusIcon = plusIcon;
|
|
75
|
-
detailButtonIconName(viewItem) {
|
|
76
|
-
return viewItem.isExpanded ? 'minus' : 'plus';
|
|
77
|
-
}
|
|
78
|
-
detailButtonSvgIcon(viewItem) {
|
|
79
|
-
return viewItem.isExpanded ? this.minusIcon : this.plusIcon;
|
|
80
|
-
}
|
|
81
|
-
detailButtonText(viewItem) {
|
|
82
|
-
return viewItem.isExpanded ? this.localization.get('detailCollapse') : this.localization.get('detailExpand');
|
|
83
|
-
}
|
|
84
|
-
toggleRow(index, dataItem) {
|
|
85
|
-
this.detailsService.toggleRow(index, dataItem);
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
get stackedRowClass() {
|
|
89
|
-
const columnsLength = this.ctx.grid.stackedColumns?.columns.length;
|
|
90
|
-
if (this.ctx.grid.stackedColumns.areDefault && columnsLength > 1) {
|
|
91
|
-
return `k-grid-cols-${columnsLength}`;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
get stackedRowStyle() {
|
|
95
|
-
const columnsWidths = this.ctx.grid.stackedColumns.columns.map(c => c.width).join(' ');
|
|
96
|
-
if (!this.ctx.grid.stackedColumns.areDefault && columnsWidths) {
|
|
97
|
-
return {
|
|
98
|
-
'grid-template-columns': `${columnsWidths}`
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
isEdited(column) {
|
|
103
|
-
const currentColumn = column || this.column;
|
|
104
|
-
if (!(this.editService.isEditing() || this.isNew) || !this.isColumnEditable(column)) {
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
const editContext = this.editService.columnContext(this.rowIndex, currentColumn);
|
|
108
|
-
return this.isFieldEditable(editContext, currentColumn);
|
|
109
|
-
}
|
|
110
|
-
get showLoading() {
|
|
111
|
-
return this.isVirtual && this.isLoading;
|
|
112
|
-
}
|
|
113
|
-
get formGroup() {
|
|
114
|
-
return this.editService.context(this.rowIndex).group;
|
|
115
|
-
}
|
|
116
|
-
getTemplateContext(column) {
|
|
117
|
-
this._templateContext.isNew = this.isNew;
|
|
118
|
-
this._templateContext.column = column || this.column;
|
|
119
|
-
this._templateContext.dataItem = this.dataItem;
|
|
120
|
-
this._templateContext.rowIndex = this.rowIndex;
|
|
121
|
-
this._templateContext.columnIndex = this.columnIndex;
|
|
122
|
-
this._templateContext.$implicit = this.dataItem;
|
|
123
|
-
return this._templateContext;
|
|
124
|
-
}
|
|
125
|
-
get isStackedLayoutMode() {
|
|
126
|
-
return this.ctx.grid?.isStacked;
|
|
127
|
-
}
|
|
128
|
-
getEditTemplateContext(column) {
|
|
129
|
-
this._editTemplateContext.$implicit = this.formGroup;
|
|
130
|
-
this._editTemplateContext.isNew = this.isNew;
|
|
131
|
-
this._editTemplateContext.column = column || this.column;
|
|
132
|
-
this._editTemplateContext.dataItem = this.dataItem;
|
|
133
|
-
this._editTemplateContext.formGroup = this.formGroup;
|
|
134
|
-
this._editTemplateContext.rowIndex = this.rowIndex;
|
|
135
|
-
return this._editTemplateContext;
|
|
136
|
-
}
|
|
137
|
-
get rowReorderTemplateContext() {
|
|
138
|
-
this._rowReorderTemplateContext.$implicit = this.dataItem;
|
|
139
|
-
this._rowReorderTemplateContext.columnIndex = this.columnIndex;
|
|
140
|
-
this._rowReorderTemplateContext.rowIndex = this.rowIndex;
|
|
141
|
-
return this._rowReorderTemplateContext;
|
|
142
|
-
}
|
|
143
|
-
get format() {
|
|
144
|
-
if (isColumnComponent(this.column) && !isNullOrEmptyString(this.column.format)) {
|
|
145
|
-
return extractFormat(this.column.format);
|
|
146
|
-
}
|
|
147
|
-
return undefined;
|
|
148
|
-
}
|
|
149
|
-
isBoundColumn(column) {
|
|
150
|
-
const currentColumn = column || this.column;
|
|
151
|
-
return currentColumn.field && !currentColumn.templateRef;
|
|
152
|
-
}
|
|
153
|
-
isCheckboxColumn(column) {
|
|
154
|
-
const currentColumn = column || this.column;
|
|
155
|
-
return isCheckboxColumn(currentColumn) && !currentColumn.templateRef;
|
|
156
|
-
}
|
|
157
|
-
get selectionCheckboxId() {
|
|
158
|
-
return this.idService.selectionCheckboxId(this.rowIndex);
|
|
159
|
-
}
|
|
160
|
-
get selectionCheckboxLabel() {
|
|
161
|
-
return this.ctx.localization.get('selectionCheckboxLabel');
|
|
162
|
-
}
|
|
163
|
-
get isSpanColumn() {
|
|
164
|
-
return isSpanColumn(this.column) && !this.column.templateRef;
|
|
165
|
-
}
|
|
166
|
-
get children() {
|
|
167
|
-
return columnsToRender([this.column]);
|
|
168
|
-
}
|
|
169
|
-
isRowReorderColumn(column) {
|
|
170
|
-
const currentColumn = column || this.column;
|
|
171
|
-
return isRowReorderColumn(currentColumn) && !currentColumn.templateRef;
|
|
172
|
-
}
|
|
173
|
-
isRowSelectable(column) {
|
|
174
|
-
const currentColumn = column || this.column;
|
|
175
|
-
return currentColumn.rowSelectable(this._rowIndex);
|
|
176
|
-
}
|
|
177
|
-
_rowIndex;
|
|
178
|
-
isColumnEditable(column) {
|
|
179
|
-
const currentColumn = column || this.column;
|
|
180
|
-
if (!currentColumn || this.isCommand(currentColumn)) {
|
|
181
|
-
return false;
|
|
182
|
-
}
|
|
183
|
-
return currentColumn.editable !== false;
|
|
184
|
-
}
|
|
185
|
-
_templateContext = {};
|
|
186
|
-
_editTemplateContext = {};
|
|
187
|
-
_rowReorderTemplateContext = {};
|
|
188
|
-
constructor(editService, idService, ctx, detailsService, localization, cellContext) {
|
|
189
|
-
this.editService = editService;
|
|
190
|
-
this.idService = idService;
|
|
191
|
-
this.ctx = ctx;
|
|
192
|
-
this.detailsService = detailsService;
|
|
193
|
-
this.localization = localization;
|
|
194
|
-
this.cellContext = cellContext;
|
|
195
|
-
}
|
|
196
|
-
ngDoCheck() {
|
|
197
|
-
this.updateCellContext();
|
|
198
|
-
}
|
|
199
|
-
isCommand(column) {
|
|
200
|
-
return column instanceof CommandColumnComponent;
|
|
201
|
-
}
|
|
202
|
-
isFieldEditable(editContext, column) {
|
|
203
|
-
if (!isPresent(editContext)) {
|
|
204
|
-
return false;
|
|
205
|
-
}
|
|
206
|
-
if (isPresent(column.editTemplate)) {
|
|
207
|
-
return true;
|
|
208
|
-
}
|
|
209
|
-
return isPresent(editContext.group) && isPresent(editContext.group.get(column.field));
|
|
210
|
-
}
|
|
211
|
-
updateCellContext() {
|
|
212
|
-
if (this.cellContext) {
|
|
213
|
-
this.cellContext.rowIndex = this._rowIndex;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CellComponent, deps: [{ token: i1.EditService }, { token: i2.IdService }, { token: i3.ContextService }, { token: i4.DetailsService }, { token: i5.LocalizationService }, { token: CELL_CONTEXT, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
217
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CellComponent, isStandalone: true, selector: "[kendoGridCell]", inputs: { column: "column", columns: "columns", columnIndex: "columnIndex", isNew: "isNew", isLoading: "isLoading", isVirtual: "isVirtual", loadingTemplate: "loadingTemplate", detailTemplate: "detailTemplate", item: "item", rowIndex: "rowIndex", dataItem: "dataItem" }, host: { properties: { "class.k-command-cell": "this.commandCellClass", "class.k-drag-cell": "this.dragHandleCellClass", "class.k-touch-action-none": "this.dragHandleCellClass", "attr.aria-label": "this.dragRowHandleLabel" } }, ngImport: i0, template: `
|
|
218
|
-
@if (isStackedLayoutMode) {
|
|
219
|
-
<div class="k-grid-stack-row"
|
|
220
|
-
[ngClass]="stackedRowClass"
|
|
221
|
-
[ngStyle]="stackedRowStyle">
|
|
222
|
-
@for (col of columns; track $index) {
|
|
223
|
-
<div class="k-grid-stack-cell"
|
|
224
|
-
[class.k-grid-stack-edit-cell]="isEdited(col)"
|
|
225
|
-
[class.k-drag-cell]="isRowReorderColumn(col) && !isNew"
|
|
226
|
-
[class.k-command-cell]="isCommand(col)"
|
|
227
|
-
[kendoGridFocusable]="!isCommand(col)">
|
|
228
|
-
<div class="k-grid-stack-header">
|
|
229
|
-
@if (!col.headerTemplateRef) {
|
|
230
|
-
{{col.displayTitle}}
|
|
231
|
-
} @else {
|
|
232
|
-
<ng-template #headerTemplate
|
|
233
|
-
[templateContext]="{
|
|
234
|
-
templateRef: col.headerTemplateRef,
|
|
235
|
-
columnIndex: col.leafIndex,
|
|
236
|
-
column: col,
|
|
237
|
-
$implicit: col
|
|
238
|
-
}">
|
|
239
|
-
</ng-template>
|
|
240
|
-
}
|
|
241
|
-
</div>
|
|
242
|
-
<div class="k-grid-stack-content">
|
|
243
|
-
@if (!isEdited(col)) {
|
|
244
|
-
@if (!col.templateRef) {
|
|
245
|
-
@if (isBoundColumn(col)) {{{ dataItem | valueOf: col.field: col.format}}}
|
|
246
|
-
@if (isCheckboxColumn(col) && !isNew) {
|
|
247
|
-
@if (isRowSelectable(col)) {
|
|
248
|
-
<kendo-checkbox
|
|
249
|
-
[kendoGridSelectionCheckbox]="rowIndex"
|
|
250
|
-
[attr.id]="selectionCheckboxId"
|
|
251
|
-
[inputAttributes]="{'aria-label': selectionCheckboxLabel}"
|
|
252
|
-
[title]="selectionCheckboxLabel">
|
|
253
|
-
</kendo-checkbox>
|
|
254
|
-
} @else {
|
|
255
|
-
@if (col.showDisabledCheckbox) {
|
|
256
|
-
<kendo-checkbox
|
|
257
|
-
[kendoGridSelectionCheckbox]="rowIndex"
|
|
258
|
-
[attr.id]="selectionCheckboxId"
|
|
259
|
-
[inputAttributes]="{'aria-label': selectionCheckboxLabel}"
|
|
260
|
-
[title]="selectionCheckboxLabel"
|
|
261
|
-
[disabled]="true"
|
|
262
|
-
></kendo-checkbox>
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
@if (isRowReorderColumn(col) && !isNew) {
|
|
267
|
-
@if (!col.dragHandleTemplate?.first) {
|
|
268
|
-
<kendo-icon-wrapper
|
|
269
|
-
name="reorder"
|
|
270
|
-
[svgIcon]="reorderIcon">
|
|
271
|
-
</kendo-icon-wrapper>
|
|
272
|
-
} @else {
|
|
273
|
-
<ng-template
|
|
274
|
-
[ngTemplateOutlet]="col.rowDragHandleTemplateRef"
|
|
275
|
-
[ngTemplateOutletContext]="rowReorderTemplateContext">
|
|
276
|
-
</ng-template>
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
} @else {
|
|
280
|
-
<ng-template #template
|
|
281
|
-
[ngTemplateOutlet]="col.templateRef"
|
|
282
|
-
[ngTemplateOutletContext]="getTemplateContext(col)">
|
|
283
|
-
</ng-template>
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
@if (isEdited(col)) {
|
|
287
|
-
@if (!col.editTemplateRef) {
|
|
288
|
-
@switch (col.editor) {
|
|
289
|
-
@case ('numeric') {
|
|
290
|
-
<kendo-numerictextbox
|
|
291
|
-
[format]="format"
|
|
292
|
-
[formControl]="$any(formGroup.get(col.field))"
|
|
293
|
-
kendoGridFocusable
|
|
294
|
-
></kendo-numerictextbox>
|
|
295
|
-
}
|
|
296
|
-
@case ('date') {
|
|
297
|
-
<kendo-datepicker
|
|
298
|
-
[format]="format"
|
|
299
|
-
[formControl]="$any(formGroup.get(col.field))"
|
|
300
|
-
kendoGridFocusable
|
|
301
|
-
></kendo-datepicker>
|
|
302
|
-
}
|
|
303
|
-
@case ('boolean') {
|
|
304
|
-
<kendo-checkbox
|
|
305
|
-
[formControl]="$any(formGroup.get(col.field))"
|
|
306
|
-
kendoGridFocusable
|
|
307
|
-
></kendo-checkbox>
|
|
308
|
-
}
|
|
309
|
-
@default {
|
|
310
|
-
<kendo-textbox
|
|
311
|
-
[formControl]="$any(formGroup.get(col.field))"
|
|
312
|
-
kendoGridFocusable
|
|
313
|
-
></kendo-textbox>
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
} @else {
|
|
317
|
-
<ng-template
|
|
318
|
-
[ngTemplateOutlet]="col.editTemplateRef"
|
|
319
|
-
[ngTemplateOutletContext]="getEditTemplateContext(col)">
|
|
320
|
-
</ng-template>
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
</div>
|
|
324
|
-
</div>
|
|
325
|
-
}
|
|
326
|
-
@if (detailTemplate?.showIf(item.data, $any(item).index)) {
|
|
327
|
-
<div class="k-grid-stack-cell" [attr.aria-expanded]="item.isExpanded">
|
|
328
|
-
<div class="k-grid-stack-content">
|
|
329
|
-
<button kendoButton
|
|
330
|
-
fillMode="flat"
|
|
331
|
-
themeColor="primary"
|
|
332
|
-
[icon]="detailButtonIconName(item)"
|
|
333
|
-
[svgIcon]="detailButtonSvgIcon(item)"
|
|
334
|
-
(click)="toggleRow($any(item).index, item.data)">
|
|
335
|
-
{{ detailButtonText(item) }}
|
|
336
|
-
</button>
|
|
337
|
-
</div>
|
|
338
|
-
</div>
|
|
339
|
-
}
|
|
340
|
-
</div>
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
@if (!isStackedLayoutMode) {
|
|
344
|
-
@switch (isEdited()) {
|
|
345
|
-
@case (false) {
|
|
346
|
-
@if (!showLoading) {
|
|
347
|
-
@if (column.templateRef) {
|
|
348
|
-
<ng-template
|
|
349
|
-
[ngTemplateOutlet]="column.templateRef"
|
|
350
|
-
[ngTemplateOutletContext]="getTemplateContext()">
|
|
351
|
-
</ng-template>
|
|
352
|
-
}
|
|
353
|
-
@if (isSpanColumn) {
|
|
354
|
-
@for (childColumn of children; track $index) {
|
|
355
|
-
{{ dataItem | valueOf: childColumn.field: childColumn.format}}
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
@if (isBoundColumn()) {{{ dataItem | valueOf: column.field: column.format}}}
|
|
359
|
-
@if (isCheckboxColumn() && !isNew) {
|
|
360
|
-
@if (isRowSelectable()) {
|
|
361
|
-
<kendo-checkbox
|
|
362
|
-
[kendoGridSelectionCheckbox]="rowIndex"
|
|
363
|
-
[attr.id]="selectionCheckboxId"
|
|
364
|
-
[inputAttributes]="{'aria-label': selectionCheckboxLabel}"
|
|
365
|
-
[title]="selectionCheckboxLabel">
|
|
366
|
-
</kendo-checkbox>
|
|
367
|
-
} @else {
|
|
368
|
-
@if (column.showDisabledCheckbox) {
|
|
369
|
-
<kendo-checkbox
|
|
370
|
-
[kendoGridSelectionCheckbox]="rowIndex"
|
|
371
|
-
[attr.id]="selectionCheckboxId"
|
|
372
|
-
[inputAttributes]="{'aria-label': selectionCheckboxLabel}"
|
|
373
|
-
[title]="selectionCheckboxLabel"
|
|
374
|
-
[disabled]="true"
|
|
375
|
-
></kendo-checkbox>
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
@if (isRowReorderColumn() && !isNew) {
|
|
380
|
-
@if (!column.dragHandleTemplate?.first) {
|
|
381
|
-
<kendo-icon-wrapper
|
|
382
|
-
name="reorder"
|
|
383
|
-
[svgIcon]="reorderIcon">
|
|
384
|
-
</kendo-icon-wrapper>
|
|
385
|
-
} @else {
|
|
386
|
-
<ng-template
|
|
387
|
-
[ngTemplateOutlet]="column.rowDragHandleTemplateRef"
|
|
388
|
-
[ngTemplateOutletContext]="rowReorderTemplateContext">
|
|
389
|
-
</ng-template>
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
} @else {
|
|
393
|
-
@if (loadingTemplate) {
|
|
394
|
-
<ng-template
|
|
395
|
-
[ngTemplateOutlet]="loadingTemplate"
|
|
396
|
-
[ngTemplateOutletContext]="{$implicit: column}">
|
|
397
|
-
</ng-template>
|
|
398
|
-
} @else {
|
|
399
|
-
<div class="k-skeleton-text k-skeleton"></div>
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
@case (true) {
|
|
404
|
-
@if (column.editTemplateRef) {
|
|
405
|
-
<ng-template
|
|
406
|
-
[ngTemplateOutlet]="column.editTemplateRef"
|
|
407
|
-
[ngTemplateOutletContext]="getEditTemplateContext()">
|
|
408
|
-
</ng-template>
|
|
409
|
-
} @else {
|
|
410
|
-
@switch (column.editor) {
|
|
411
|
-
@case ('numeric') {
|
|
412
|
-
<kendo-numerictextbox
|
|
413
|
-
[format]="format"
|
|
414
|
-
[formControl]="$any(formGroup.get(column.field))"
|
|
415
|
-
kendoGridFocusable
|
|
416
|
-
></kendo-numerictextbox>
|
|
417
|
-
}
|
|
418
|
-
@case ('date') {
|
|
419
|
-
<kendo-datepicker
|
|
420
|
-
[format]="format"
|
|
421
|
-
[formControl]="$any(formGroup.get(column.field))"
|
|
422
|
-
kendoGridFocusable
|
|
423
|
-
></kendo-datepicker>
|
|
424
|
-
}
|
|
425
|
-
@case ('boolean') {
|
|
426
|
-
<kendo-checkbox
|
|
427
|
-
[formControl]="$any(formGroup.get(column.field))"
|
|
428
|
-
kendoGridFocusable
|
|
429
|
-
></kendo-checkbox>
|
|
430
|
-
}
|
|
431
|
-
@default {
|
|
432
|
-
<kendo-textbox
|
|
433
|
-
[formControl]="$any(formGroup.get(column.field))"
|
|
434
|
-
kendoGridFocusable
|
|
435
|
-
></kendo-textbox>
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { kind: "directive", type: SelectionCheckboxDirective, selector: "[kendoGridSelectionCheckbox]", inputs: ["kendoGridSelectionCheckbox"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "focus", "blur", "inputFocus", "inputBlur"], exportAs: ["kendoNumericTextBox"] }, { kind: "component", type: DatePickerComponent, selector: "kendo-datepicker", inputs: ["focusableId", "cellTemplate", "clearButton", "inputAttributes", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "footer", "navigationItemTemplate", "weekDaysFormat", "showOtherMonthDays", "activeView", "bottomView", "topView", "calendarType", "animateCalendarNavigation", "disabled", "readonly", "readOnlyInput", "popupSettings", "navigation", "min", "max", "incompleteDateValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "enableMouseWheel", "allowCaretMode", "autoFill", "focusedDate", "value", "format", "twoDigitYearMax", "formatPlaceholder", "placeholder", "tabindex", "tabIndex", "disabledDates", "adaptiveTitle", "adaptiveSubtitle", "rangeValidation", "disabledDatesValidation", "weekNumber", "size", "rounded", "fillMode", "adaptiveMode"], outputs: ["valueChange", "focus", "blur", "open", "close", "escape"], exportAs: ["kendo-datepicker"] }, { kind: "pipe", type: FieldAccessorPipe, name: "valueOf" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["checkedState", "rounded"], outputs: ["checkedStateChange"], exportAs: ["kendoCheckBox"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
443
|
-
}
|
|
444
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CellComponent, decorators: [{
|
|
445
|
-
type: Component,
|
|
446
|
-
args: [{
|
|
447
|
-
selector: '[kendoGridCell]',
|
|
448
|
-
template: `
|
|
449
|
-
@if (isStackedLayoutMode) {
|
|
450
|
-
<div class="k-grid-stack-row"
|
|
451
|
-
[ngClass]="stackedRowClass"
|
|
452
|
-
[ngStyle]="stackedRowStyle">
|
|
453
|
-
@for (col of columns; track $index) {
|
|
454
|
-
<div class="k-grid-stack-cell"
|
|
455
|
-
[class.k-grid-stack-edit-cell]="isEdited(col)"
|
|
456
|
-
[class.k-drag-cell]="isRowReorderColumn(col) && !isNew"
|
|
457
|
-
[class.k-command-cell]="isCommand(col)"
|
|
458
|
-
[kendoGridFocusable]="!isCommand(col)">
|
|
459
|
-
<div class="k-grid-stack-header">
|
|
460
|
-
@if (!col.headerTemplateRef) {
|
|
461
|
-
{{col.displayTitle}}
|
|
462
|
-
} @else {
|
|
463
|
-
<ng-template #headerTemplate
|
|
464
|
-
[templateContext]="{
|
|
465
|
-
templateRef: col.headerTemplateRef,
|
|
466
|
-
columnIndex: col.leafIndex,
|
|
467
|
-
column: col,
|
|
468
|
-
$implicit: col
|
|
469
|
-
}">
|
|
470
|
-
</ng-template>
|
|
471
|
-
}
|
|
472
|
-
</div>
|
|
473
|
-
<div class="k-grid-stack-content">
|
|
474
|
-
@if (!isEdited(col)) {
|
|
475
|
-
@if (!col.templateRef) {
|
|
476
|
-
@if (isBoundColumn(col)) {{{ dataItem | valueOf: col.field: col.format}}}
|
|
477
|
-
@if (isCheckboxColumn(col) && !isNew) {
|
|
478
|
-
@if (isRowSelectable(col)) {
|
|
479
|
-
<kendo-checkbox
|
|
480
|
-
[kendoGridSelectionCheckbox]="rowIndex"
|
|
481
|
-
[attr.id]="selectionCheckboxId"
|
|
482
|
-
[inputAttributes]="{'aria-label': selectionCheckboxLabel}"
|
|
483
|
-
[title]="selectionCheckboxLabel">
|
|
484
|
-
</kendo-checkbox>
|
|
485
|
-
} @else {
|
|
486
|
-
@if (col.showDisabledCheckbox) {
|
|
487
|
-
<kendo-checkbox
|
|
488
|
-
[kendoGridSelectionCheckbox]="rowIndex"
|
|
489
|
-
[attr.id]="selectionCheckboxId"
|
|
490
|
-
[inputAttributes]="{'aria-label': selectionCheckboxLabel}"
|
|
491
|
-
[title]="selectionCheckboxLabel"
|
|
492
|
-
[disabled]="true"
|
|
493
|
-
></kendo-checkbox>
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
@if (isRowReorderColumn(col) && !isNew) {
|
|
498
|
-
@if (!col.dragHandleTemplate?.first) {
|
|
499
|
-
<kendo-icon-wrapper
|
|
500
|
-
name="reorder"
|
|
501
|
-
[svgIcon]="reorderIcon">
|
|
502
|
-
</kendo-icon-wrapper>
|
|
503
|
-
} @else {
|
|
504
|
-
<ng-template
|
|
505
|
-
[ngTemplateOutlet]="col.rowDragHandleTemplateRef"
|
|
506
|
-
[ngTemplateOutletContext]="rowReorderTemplateContext">
|
|
507
|
-
</ng-template>
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
} @else {
|
|
511
|
-
<ng-template #template
|
|
512
|
-
[ngTemplateOutlet]="col.templateRef"
|
|
513
|
-
[ngTemplateOutletContext]="getTemplateContext(col)">
|
|
514
|
-
</ng-template>
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
@if (isEdited(col)) {
|
|
518
|
-
@if (!col.editTemplateRef) {
|
|
519
|
-
@switch (col.editor) {
|
|
520
|
-
@case ('numeric') {
|
|
521
|
-
<kendo-numerictextbox
|
|
522
|
-
[format]="format"
|
|
523
|
-
[formControl]="$any(formGroup.get(col.field))"
|
|
524
|
-
kendoGridFocusable
|
|
525
|
-
></kendo-numerictextbox>
|
|
526
|
-
}
|
|
527
|
-
@case ('date') {
|
|
528
|
-
<kendo-datepicker
|
|
529
|
-
[format]="format"
|
|
530
|
-
[formControl]="$any(formGroup.get(col.field))"
|
|
531
|
-
kendoGridFocusable
|
|
532
|
-
></kendo-datepicker>
|
|
533
|
-
}
|
|
534
|
-
@case ('boolean') {
|
|
535
|
-
<kendo-checkbox
|
|
536
|
-
[formControl]="$any(formGroup.get(col.field))"
|
|
537
|
-
kendoGridFocusable
|
|
538
|
-
></kendo-checkbox>
|
|
539
|
-
}
|
|
540
|
-
@default {
|
|
541
|
-
<kendo-textbox
|
|
542
|
-
[formControl]="$any(formGroup.get(col.field))"
|
|
543
|
-
kendoGridFocusable
|
|
544
|
-
></kendo-textbox>
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
} @else {
|
|
548
|
-
<ng-template
|
|
549
|
-
[ngTemplateOutlet]="col.editTemplateRef"
|
|
550
|
-
[ngTemplateOutletContext]="getEditTemplateContext(col)">
|
|
551
|
-
</ng-template>
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
</div>
|
|
555
|
-
</div>
|
|
556
|
-
}
|
|
557
|
-
@if (detailTemplate?.showIf(item.data, $any(item).index)) {
|
|
558
|
-
<div class="k-grid-stack-cell" [attr.aria-expanded]="item.isExpanded">
|
|
559
|
-
<div class="k-grid-stack-content">
|
|
560
|
-
<button kendoButton
|
|
561
|
-
fillMode="flat"
|
|
562
|
-
themeColor="primary"
|
|
563
|
-
[icon]="detailButtonIconName(item)"
|
|
564
|
-
[svgIcon]="detailButtonSvgIcon(item)"
|
|
565
|
-
(click)="toggleRow($any(item).index, item.data)">
|
|
566
|
-
{{ detailButtonText(item) }}
|
|
567
|
-
</button>
|
|
568
|
-
</div>
|
|
569
|
-
</div>
|
|
570
|
-
}
|
|
571
|
-
</div>
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
@if (!isStackedLayoutMode) {
|
|
575
|
-
@switch (isEdited()) {
|
|
576
|
-
@case (false) {
|
|
577
|
-
@if (!showLoading) {
|
|
578
|
-
@if (column.templateRef) {
|
|
579
|
-
<ng-template
|
|
580
|
-
[ngTemplateOutlet]="column.templateRef"
|
|
581
|
-
[ngTemplateOutletContext]="getTemplateContext()">
|
|
582
|
-
</ng-template>
|
|
583
|
-
}
|
|
584
|
-
@if (isSpanColumn) {
|
|
585
|
-
@for (childColumn of children; track $index) {
|
|
586
|
-
{{ dataItem | valueOf: childColumn.field: childColumn.format}}
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
@if (isBoundColumn()) {{{ dataItem | valueOf: column.field: column.format}}}
|
|
590
|
-
@if (isCheckboxColumn() && !isNew) {
|
|
591
|
-
@if (isRowSelectable()) {
|
|
592
|
-
<kendo-checkbox
|
|
593
|
-
[kendoGridSelectionCheckbox]="rowIndex"
|
|
594
|
-
[attr.id]="selectionCheckboxId"
|
|
595
|
-
[inputAttributes]="{'aria-label': selectionCheckboxLabel}"
|
|
596
|
-
[title]="selectionCheckboxLabel">
|
|
597
|
-
</kendo-checkbox>
|
|
598
|
-
} @else {
|
|
599
|
-
@if (column.showDisabledCheckbox) {
|
|
600
|
-
<kendo-checkbox
|
|
601
|
-
[kendoGridSelectionCheckbox]="rowIndex"
|
|
602
|
-
[attr.id]="selectionCheckboxId"
|
|
603
|
-
[inputAttributes]="{'aria-label': selectionCheckboxLabel}"
|
|
604
|
-
[title]="selectionCheckboxLabel"
|
|
605
|
-
[disabled]="true"
|
|
606
|
-
></kendo-checkbox>
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
@if (isRowReorderColumn() && !isNew) {
|
|
611
|
-
@if (!column.dragHandleTemplate?.first) {
|
|
612
|
-
<kendo-icon-wrapper
|
|
613
|
-
name="reorder"
|
|
614
|
-
[svgIcon]="reorderIcon">
|
|
615
|
-
</kendo-icon-wrapper>
|
|
616
|
-
} @else {
|
|
617
|
-
<ng-template
|
|
618
|
-
[ngTemplateOutlet]="column.rowDragHandleTemplateRef"
|
|
619
|
-
[ngTemplateOutletContext]="rowReorderTemplateContext">
|
|
620
|
-
</ng-template>
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
} @else {
|
|
624
|
-
@if (loadingTemplate) {
|
|
625
|
-
<ng-template
|
|
626
|
-
[ngTemplateOutlet]="loadingTemplate"
|
|
627
|
-
[ngTemplateOutletContext]="{$implicit: column}">
|
|
628
|
-
</ng-template>
|
|
629
|
-
} @else {
|
|
630
|
-
<div class="k-skeleton-text k-skeleton"></div>
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
@case (true) {
|
|
635
|
-
@if (column.editTemplateRef) {
|
|
636
|
-
<ng-template
|
|
637
|
-
[ngTemplateOutlet]="column.editTemplateRef"
|
|
638
|
-
[ngTemplateOutletContext]="getEditTemplateContext()">
|
|
639
|
-
</ng-template>
|
|
640
|
-
} @else {
|
|
641
|
-
@switch (column.editor) {
|
|
642
|
-
@case ('numeric') {
|
|
643
|
-
<kendo-numerictextbox
|
|
644
|
-
[format]="format"
|
|
645
|
-
[formControl]="$any(formGroup.get(column.field))"
|
|
646
|
-
kendoGridFocusable
|
|
647
|
-
></kendo-numerictextbox>
|
|
648
|
-
}
|
|
649
|
-
@case ('date') {
|
|
650
|
-
<kendo-datepicker
|
|
651
|
-
[format]="format"
|
|
652
|
-
[formControl]="$any(formGroup.get(column.field))"
|
|
653
|
-
kendoGridFocusable
|
|
654
|
-
></kendo-datepicker>
|
|
655
|
-
}
|
|
656
|
-
@case ('boolean') {
|
|
657
|
-
<kendo-checkbox
|
|
658
|
-
[formControl]="$any(formGroup.get(column.field))"
|
|
659
|
-
kendoGridFocusable
|
|
660
|
-
></kendo-checkbox>
|
|
661
|
-
}
|
|
662
|
-
@default {
|
|
663
|
-
<kendo-textbox
|
|
664
|
-
[formControl]="$any(formGroup.get(column.field))"
|
|
665
|
-
kendoGridFocusable
|
|
666
|
-
></kendo-textbox>
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
`,
|
|
674
|
-
standalone: true,
|
|
675
|
-
imports: [NgTemplateOutlet, FocusableDirective, SelectionCheckboxDirective, TemplateContextDirective,
|
|
676
|
-
IconWrapperComponent, NumericTextBoxComponent, DatePickerComponent, FieldAccessorPipe, ReactiveFormsModule, CheckBoxComponent, TextBoxComponent, NgClass, NgStyle, ButtonComponent]
|
|
677
|
-
}]
|
|
678
|
-
}], ctorParameters: () => [{ type: i1.EditService }, { type: i2.IdService }, { type: i3.ContextService }, { type: i4.DetailsService }, { type: i5.LocalizationService }, { type: undefined, decorators: [{
|
|
679
|
-
type: Optional
|
|
680
|
-
}, {
|
|
681
|
-
type: Inject,
|
|
682
|
-
args: [CELL_CONTEXT]
|
|
683
|
-
}] }], propDecorators: { commandCellClass: [{
|
|
684
|
-
type: HostBinding,
|
|
685
|
-
args: ['class.k-command-cell']
|
|
686
|
-
}], dragHandleCellClass: [{
|
|
687
|
-
type: HostBinding,
|
|
688
|
-
args: ['class.k-drag-cell']
|
|
689
|
-
}, {
|
|
690
|
-
type: HostBinding,
|
|
691
|
-
args: ['class.k-touch-action-none']
|
|
692
|
-
}], dragRowHandleLabel: [{
|
|
693
|
-
type: HostBinding,
|
|
694
|
-
args: ['attr.aria-label']
|
|
695
|
-
}], column: [{
|
|
696
|
-
type: Input
|
|
697
|
-
}], columns: [{
|
|
698
|
-
type: Input
|
|
699
|
-
}], columnIndex: [{
|
|
700
|
-
type: Input
|
|
701
|
-
}], isNew: [{
|
|
702
|
-
type: Input
|
|
703
|
-
}], isLoading: [{
|
|
704
|
-
type: Input
|
|
705
|
-
}], isVirtual: [{
|
|
706
|
-
type: Input
|
|
707
|
-
}], loadingTemplate: [{
|
|
708
|
-
type: Input
|
|
709
|
-
}], detailTemplate: [{
|
|
710
|
-
type: Input
|
|
711
|
-
}], item: [{
|
|
712
|
-
type: Input
|
|
713
|
-
}], rowIndex: [{
|
|
714
|
-
type: Input
|
|
715
|
-
}], dataItem: [{
|
|
716
|
-
type: Input
|
|
717
|
-
}] } });
|