@progress/kendo-angular-grid 21.4.1-develop.1 → 22.0.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/column-menu/column-menu-item-base.d.ts +1 -1
- package/columns/column-base.d.ts +1 -1
- package/common/toolbar-tool-base.directive.d.ts +1 -1
- package/editing/toolbar-editing-tool-base.directive.d.ts +1 -1
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/editing-directives/row-editing-directive-base.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-grid.mjs +666 -666
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/filtering/boolean-filter.component.d.ts +1 -1
- package/filtering/date-filter.component.d.ts +1 -1
- package/filtering/filter-host.directive.d.ts +1 -1
- package/filtering/filter-input-wrapper.component.d.ts +1 -1
- package/filtering/numeric-filter.component.d.ts +1 -1
- package/filtering/operators/filter-operator.base.d.ts +1 -1
- package/filtering/string-filter.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +28 -36
- package/schematics/ngAdd/index.js +7 -7
- package/selection/selection-default.d.ts +1 -1
- package/esm2022/adaptiveness/adaptive-mode.mjs +0 -5
- package/esm2022/adaptiveness/adaptive-renderer.component.mjs +0 -1270
- package/esm2022/aggregates/aggregate-types.mjs +0 -5
- package/esm2022/aggregates/selection-aggregate.service.mjs +0 -200
- package/esm2022/aggregates/status-bar-template.directive.mjs +0 -30
- package/esm2022/aggregates/status-bar.component.mjs +0 -70
- package/esm2022/column-menu/column-chooser-content.component.mjs +0 -318
- package/esm2022/column-menu/column-chooser.component.mjs +0 -230
- package/esm2022/column-menu/column-list-kb-nav.service.mjs +0 -40
- package/esm2022/column-menu/column-list.component.mjs +0 -478
- package/esm2022/column-menu/column-locked-change-event.mjs +0 -19
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +0 -89
- package/esm2022/column-menu/column-menu-autosize.component.mjs +0 -97
- package/esm2022/column-menu/column-menu-chooser.component.mjs +0 -151
- package/esm2022/column-menu/column-menu-container.component.mjs +0 -67
- package/esm2022/column-menu/column-menu-expandable-item.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-filter.component.mjs +0 -152
- package/esm2022/column-menu/column-menu-item-base.mjs +0 -44
- package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +0 -45
- package/esm2022/column-menu/column-menu-item.component.mjs +0 -514
- package/esm2022/column-menu/column-menu-item.directive.mjs +0 -164
- package/esm2022/column-menu/column-menu-lock.component.mjs +0 -118
- package/esm2022/column-menu/column-menu-position.component.mjs +0 -196
- package/esm2022/column-menu/column-menu-settings.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-sort.component.mjs +0 -119
- package/esm2022/column-menu/column-menu-stick.component.mjs +0 -120
- package/esm2022/column-menu/column-menu-template.directive.mjs +0 -47
- package/esm2022/column-menu/column-menu.component.mjs +0 -839
- package/esm2022/column-menu/column-menu.service.mjs +0 -71
- package/esm2022/column-menu/column-sticky-change-event.mjs +0 -19
- package/esm2022/column-menu/column-visibility-change-event.mjs +0 -19
- package/esm2022/column-menu/utils.mjs +0 -52
- package/esm2022/column-resizing/column-handle.directive.mjs +0 -499
- package/esm2022/column-resizing/column-resize.interface.mjs +0 -5
- package/esm2022/column-resizing/column-resizing.service.mjs +0 -214
- package/esm2022/column-resizing/table.directive.mjs +0 -141
- package/esm2022/columns/cell-rowspan.mjs +0 -5
- package/esm2022/columns/checkbox-column.component.mjs +0 -106
- package/esm2022/columns/column-base.mjs +0 -432
- package/esm2022/columns/column-common.mjs +0 -73
- package/esm2022/columns/column-group.component.mjs +0 -135
- package/esm2022/columns/column-list.mjs +0 -94
- package/esm2022/columns/column.component.mjs +0 -198
- package/esm2022/columns/columns-container.mjs +0 -101
- package/esm2022/columns/command-column.component.mjs +0 -80
- package/esm2022/columns/reorder-column.component.mjs +0 -114
- package/esm2022/columns/sort-settings.mjs +0 -18
- package/esm2022/columns/span-column.component.mjs +0 -195
- package/esm2022/common/adaptiveness.service.mjs +0 -72
- package/esm2022/common/cell-click-event-args.interface.mjs +0 -5
- package/esm2022/common/clipboard-types.mjs +0 -5
- package/esm2022/common/clipboard.directive.mjs +0 -197
- package/esm2022/common/clipboard.service.mjs +0 -221
- package/esm2022/common/column-info.service.mjs +0 -92
- package/esm2022/common/create-form-group.mjs +0 -5
- package/esm2022/common/data-layout-mode.mjs +0 -5
- package/esm2022/common/default-track-by.mjs +0 -13
- package/esm2022/common/dom-events.service.mjs +0 -27
- package/esm2022/common/error-messages.mjs +0 -64
- package/esm2022/common/event-emitter.mjs +0 -39
- package/esm2022/common/fetch-data-callback.mjs +0 -5
- package/esm2022/common/field-datatype.mjs +0 -5
- package/esm2022/common/filter-descriptor-differ.mjs +0 -69
- package/esm2022/common/filter-operator.interface.mjs +0 -5
- package/esm2022/common/grid-col-size.mjs +0 -5
- package/esm2022/common/id.service.mjs +0 -59
- package/esm2022/common/pager-settings.mjs +0 -20
- package/esm2022/common/preventable-event.mjs +0 -24
- package/esm2022/common/provider.service.mjs +0 -42
- package/esm2022/common/remove-confirmation.mjs +0 -5
- package/esm2022/common/resizable-settings.mjs +0 -9
- package/esm2022/common/single-popup.service.mjs +0 -158
- package/esm2022/common/size-options.mjs +0 -5
- package/esm2022/common/sort.service.mjs +0 -14
- package/esm2022/common/toolbar-tool-base.directive.mjs +0 -85
- package/esm2022/constants.mjs +0 -16
- package/esm2022/data/change-event-args.interface.mjs +0 -5
- package/esm2022/data/change-notification.service.mjs +0 -30
- package/esm2022/data/data-item.interface.mjs +0 -5
- package/esm2022/data/data-mapping.service.mjs +0 -136
- package/esm2022/data/data.collection.mjs +0 -87
- package/esm2022/data/data.iterators.mjs +0 -221
- package/esm2022/data/grid-item.interface.mjs +0 -5
- package/esm2022/data/group-footer-item.interface.mjs +0 -5
- package/esm2022/data/group-item.interface.mjs +0 -5
- package/esm2022/databinding.directive.mjs +0 -233
- package/esm2022/directives.mjs +0 -504
- package/esm2022/dragdrop/column-reorder-config.mjs +0 -5
- package/esm2022/dragdrop/column-reorder-event.mjs +0 -31
- package/esm2022/dragdrop/column-reorder.service.mjs +0 -20
- package/esm2022/dragdrop/common.mjs +0 -69
- package/esm2022/dragdrop/context-types.mjs +0 -5
- package/esm2022/dragdrop/drag-and-drop.service.mjs +0 -65
- package/esm2022/dragdrop/drag-hint.service.mjs +0 -137
- package/esm2022/dragdrop/draggable-column.directive.mjs +0 -137
- package/esm2022/dragdrop/drop-cue.service.mjs +0 -46
- package/esm2022/dragdrop/drop-target.directive.mjs +0 -71
- package/esm2022/editing/add-command-tool.directive.mjs +0 -59
- package/esm2022/editing/add-command.directive.mjs +0 -93
- package/esm2022/editing/add-event-args.interface.mjs +0 -5
- package/esm2022/editing/cancel-command-tool.directive.mjs +0 -64
- package/esm2022/editing/cancel-command.directive.mjs +0 -127
- package/esm2022/editing/cancel-event-args.interface.mjs +0 -5
- package/esm2022/editing/cell-close-event.mjs +0 -38
- package/esm2022/editing/edit-command-tool.directive.mjs +0 -60
- package/esm2022/editing/edit-command.directive.mjs +0 -124
- package/esm2022/editing/edit-event-args.interface.mjs +0 -5
- package/esm2022/editing/edit-row-options.interface.mjs +0 -5
- package/esm2022/editing/edit-template.directive.mjs +0 -43
- package/esm2022/editing/edit.service.mjs +0 -182
- package/esm2022/editing/form/dialog-form.component.mjs +0 -102
- package/esm2022/editing/form/form-formfield.component.mjs +0 -188
- package/esm2022/editing/form/form.component.mjs +0 -169
- package/esm2022/editing/form/index.mjs +0 -8
- package/esm2022/editing/form/models.mjs +0 -5
- package/esm2022/editing/local-data-changes.service.mjs +0 -18
- package/esm2022/editing/remove-command-tool.directive.mjs +0 -61
- package/esm2022/editing/remove-command.directive.mjs +0 -123
- package/esm2022/editing/remove-event-args.interface.mjs +0 -5
- package/esm2022/editing/save-command-tool.directive.mjs +0 -65
- package/esm2022/editing/save-command.directive.mjs +0 -126
- package/esm2022/editing/save-event-args.interface.mjs +0 -5
- package/esm2022/editing/toolbar-editing-tool-base.directive.mjs +0 -99
- package/esm2022/editing-directives/create-form-group-args.interface.mjs +0 -5
- package/esm2022/editing-directives/edit-service.interface.mjs +0 -5
- package/esm2022/editing-directives/editing-directive-base.mjs +0 -167
- package/esm2022/editing-directives/external-editing.directive.mjs +0 -151
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +0 -97
- package/esm2022/editing-directives/local-edit.service.mjs +0 -64
- package/esm2022/editing-directives/local-row-edit.service.mjs +0 -13
- package/esm2022/editing-directives/reactive-editing.directive.mjs +0 -60
- package/esm2022/editing-directives/row-editing-directive-base.mjs +0 -53
- package/esm2022/editing-directives/template-editing.directive.mjs +0 -72
- package/esm2022/editing-directives/utils.mjs +0 -18
- package/esm2022/excel/excel-command-tool.directive.mjs +0 -58
- package/esm2022/excel/excel-command.directive.mjs +0 -98
- package/esm2022/excel/excel-export-event.mjs +0 -18
- package/esm2022/excel/excel.component.mjs +0 -223
- package/esm2022/excel/excel.module.mjs +0 -45
- package/esm2022/excel/excel.service.mjs +0 -29
- package/esm2022/filtering/base-filter-cell.component.mjs +0 -174
- package/esm2022/filtering/boolean-filter.component.mjs +0 -83
- package/esm2022/filtering/cell/autocomplete-filter-cell.component.mjs +0 -114
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +0 -113
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +0 -141
- package/esm2022/filtering/cell/filter-cell-component.factory.mjs +0 -19
- package/esm2022/filtering/cell/filter-cell-host.directive.mjs +0 -33
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +0 -242
- package/esm2022/filtering/cell/filter-cell-template.directive.mjs +0 -46
- package/esm2022/filtering/cell/filter-cell-wrapper.component.mjs +0 -74
- package/esm2022/filtering/cell/filter-cell.component.mjs +0 -91
- package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +0 -155
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +0 -127
- package/esm2022/filtering/date-filter.component.mjs +0 -172
- package/esm2022/filtering/filter-component.interface.mjs +0 -5
- package/esm2022/filtering/filter-host.directive.mjs +0 -58
- package/esm2022/filtering/filter-input-wrapper.component.mjs +0 -119
- package/esm2022/filtering/filter-input.directive.mjs +0 -123
- package/esm2022/filtering/filter-row.component.mjs +0 -131
- package/esm2022/filtering/filter.service.mjs +0 -44
- package/esm2022/filtering/filterable.mjs +0 -16
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +0 -167
- package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +0 -179
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +0 -212
- package/esm2022/filtering/menu/filter-menu-component.factory.mjs +0 -19
- package/esm2022/filtering/menu/filter-menu-container.component.mjs +0 -418
- package/esm2022/filtering/menu/filter-menu-dropdownlist.directive.mjs +0 -44
- package/esm2022/filtering/menu/filter-menu-host.directive.mjs +0 -46
- package/esm2022/filtering/menu/filter-menu-input-wrapper.component.mjs +0 -158
- package/esm2022/filtering/menu/filter-menu-template.directive.mjs +0 -48
- package/esm2022/filtering/menu/filter-menu.component.mjs +0 -221
- package/esm2022/filtering/menu/filter-radio-button.directive.mjs +0 -34
- package/esm2022/filtering/menu/menu-tabbing.service.mjs +0 -22
- package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +0 -184
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +0 -230
- package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +0 -107
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +0 -198
- package/esm2022/filtering/multicheckbox-filter.component.mjs +0 -324
- package/esm2022/filtering/numeric-filter.component.mjs +0 -145
- package/esm2022/filtering/operators/after-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/after-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/eq-filter-operator.component.mjs +0 -111
- package/esm2022/filtering/operators/filter-operator.base.mjs +0 -101
- package/esm2022/filtering/operators/gt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/gte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/lt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/lte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/neq-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/string-filter.component.mjs +0 -90
- package/esm2022/grid.component.mjs +0 -4598
- package/esm2022/grid.module.mjs +0 -241
- package/esm2022/grouping/group-footer-template.directive.mjs +0 -44
- package/esm2022/grouping/group-header-column-template.directive.mjs +0 -45
- package/esm2022/grouping/group-header-template.directive.mjs +0 -46
- package/esm2022/grouping/group-header.component.mjs +0 -351
- package/esm2022/grouping/group-info.service.mjs +0 -43
- package/esm2022/grouping/group-key.interface.mjs +0 -5
- package/esm2022/grouping/group-panel.component.mjs +0 -487
- package/esm2022/grouping/group-rows-args.interface.mjs +0 -5
- package/esm2022/grouping/group-settings.mjs +0 -5
- package/esm2022/grouping/groups.service.mjs +0 -69
- package/esm2022/grouping/utils.mjs +0 -14
- package/esm2022/highlight/highlight-item.mjs +0 -5
- package/esm2022/highlight/highlight.directive.mjs +0 -132
- package/esm2022/index.mjs +0 -221
- package/esm2022/layout/browser-support.service.mjs +0 -94
- package/esm2022/layout/resizable.directive.mjs +0 -83
- package/esm2022/layout/resize.service.mjs +0 -29
- package/esm2022/layout/responsive.service.mjs +0 -34
- package/esm2022/layout/row-sync.mjs +0 -47
- package/esm2022/layout/sizing-options.service.mjs +0 -18
- package/esm2022/localization/custom-messages.component.mjs +0 -54
- package/esm2022/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/localization/messages.mjs +0 -895
- package/esm2022/navigation/default-focusable-element.mjs +0 -50
- package/esm2022/navigation/focus-group.mjs +0 -73
- package/esm2022/navigation/focus-root.mjs +0 -50
- package/esm2022/navigation/focusable-element.interface.mjs +0 -5
- package/esm2022/navigation/focusable.directive.mjs +0 -150
- package/esm2022/navigation/grid-focusable-element.mjs +0 -28
- package/esm2022/navigation/item-map.mjs +0 -59
- package/esm2022/navigation/logical-cell.directive.mjs +0 -224
- package/esm2022/navigation/logical-cell.interface.mjs +0 -5
- package/esm2022/navigation/logical-row.directive.mjs +0 -131
- package/esm2022/navigation/logical-row.interface.mjs +0 -5
- package/esm2022/navigation/navigable-settings.mjs +0 -5
- package/esm2022/navigation/navigation-cell.interface.mjs +0 -5
- package/esm2022/navigation/navigation-change.interface.mjs +0 -5
- package/esm2022/navigation/navigation-cursor.mjs +0 -224
- package/esm2022/navigation/navigation-metadata.mjs +0 -35
- package/esm2022/navigation/navigation-mode.mjs +0 -5
- package/esm2022/navigation/navigation-model.mjs +0 -138
- package/esm2022/navigation/navigation-row.interface.mjs +0 -5
- package/esm2022/navigation/navigation.service.mjs +0 -998
- package/esm2022/navigation/toolbar-tool-name.mjs +0 -18
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/pdf/export-element.mjs +0 -135
- package/esm2022/pdf/grid-query.mjs +0 -45
- package/esm2022/pdf/pdf-command-tool.directive.mjs +0 -60
- package/esm2022/pdf/pdf-command.directive.mjs +0 -98
- package/esm2022/pdf/pdf-export-event.mjs +0 -16
- package/esm2022/pdf/pdf-margin.component.mjs +0 -38
- package/esm2022/pdf/pdf-margin.interface.mjs +0 -5
- package/esm2022/pdf/pdf-template.directive.mjs +0 -43
- package/esm2022/pdf/pdf.component.mjs +0 -331
- package/esm2022/pdf/pdf.module.mjs +0 -47
- package/esm2022/pdf/pdf.service.mjs +0 -42
- package/esm2022/progress-kendo-angular-grid.mjs +0 -8
- package/esm2022/rendering/cell-loading.template.directive.mjs +0 -39
- package/esm2022/rendering/cell-template.directive.mjs +0 -44
- package/esm2022/rendering/cell.component.mjs +0 -717
- package/esm2022/rendering/common/cell-context.mjs +0 -13
- package/esm2022/rendering/common/col-group.component.mjs +0 -98
- package/esm2022/rendering/common/dom-queries.mjs +0 -162
- package/esm2022/rendering/common/field-accessor.pipe.mjs +0 -48
- package/esm2022/rendering/common/format.pipe.mjs +0 -37
- package/esm2022/rendering/common/loading.component.mjs +0 -60
- package/esm2022/rendering/common/row-args.mjs +0 -5
- package/esm2022/rendering/common/row-class.mjs +0 -5
- package/esm2022/rendering/common/spacer.component.mjs +0 -62
- package/esm2022/rendering/constants.mjs +0 -20
- package/esm2022/rendering/details/detail-collapse-event.mjs +0 -27
- package/esm2022/rendering/details/detail-expand-event.mjs +0 -27
- package/esm2022/rendering/details/detail-template.directive.mjs +0 -61
- package/esm2022/rendering/details/details.service.mjs +0 -56
- package/esm2022/rendering/details-expand.directive.mjs +0 -136
- package/esm2022/rendering/footer/footer-template.directive.mjs +0 -48
- package/esm2022/rendering/footer/footer.component.mjs +0 -266
- package/esm2022/rendering/grid-table.directive.mjs +0 -52
- package/esm2022/rendering/groups-expand.directive.mjs +0 -149
- package/esm2022/rendering/header/header-template.directive.mjs +0 -45
- package/esm2022/rendering/header/header.component.mjs +0 -1055
- package/esm2022/rendering/list.component.mjs +0 -1176
- package/esm2022/rendering/loading-template.directive.mjs +0 -38
- package/esm2022/rendering/no-records-template.directive.mjs +0 -38
- package/esm2022/rendering/rowspan.service.mjs +0 -24
- package/esm2022/rendering/table-body.component.mjs +0 -1250
- package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +0 -83
- package/esm2022/rendering/toolbar/toolbar-navigation.service.mjs +0 -58
- package/esm2022/rendering/toolbar/toolbar-position.mjs +0 -5
- package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +0 -55
- package/esm2022/rendering/toolbar/toolbar.component.mjs +0 -159
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +0 -272
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-request-response.service.mjs +0 -624
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-tool.directive.mjs +0 -273
- package/esm2022/rendering/toolbar/tools/ai-assistant/models.mjs +0 -43
- package/esm2022/rendering/toolbar/tools/ai-assistant/utils.mjs +0 -92
- package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +0 -238
- package/esm2022/rendering/toolbar/tools/filter-command-tool.directive.mjs +0 -219
- package/esm2022/rendering/toolbar/tools/filter-tool-wrapper.component.mjs +0 -151
- package/esm2022/rendering/toolbar/tools/filter-toolbar-tool.component.mjs +0 -223
- package/esm2022/rendering/toolbar/tools/group-command-tool.directive.mjs +0 -208
- package/esm2022/rendering/toolbar/tools/group-toolbar-tool.component.mjs +0 -451
- package/esm2022/rendering/toolbar/tools/select-all-command-tool.directive.mjs +0 -93
- package/esm2022/rendering/toolbar/tools/sort-command-tool.directive.mjs +0 -222
- package/esm2022/rendering/toolbar/tools/sort-toolbar-tool.component.mjs +0 -245
- package/esm2022/row-reordering/drag-handle-template.directive.mjs +0 -44
- package/esm2022/row-reordering/drag-hint-template.directive.mjs +0 -42
- package/esm2022/row-reordering/row-reorder.service.mjs +0 -280
- package/esm2022/row-reordering/types.mjs +0 -5
- package/esm2022/row-reordering/utils.mjs +0 -88
- package/esm2022/scrolling/content-scroll-event.mjs +0 -5
- package/esm2022/scrolling/row-height.service.mjs +0 -55
- package/esm2022/scrolling/scroll-bottom-event.mjs +0 -5
- package/esm2022/scrolling/scroll-request.service.mjs +0 -24
- package/esm2022/scrolling/scroll-sync.service.mjs +0 -80
- package/esm2022/scrolling/scroller.service.mjs +0 -254
- package/esm2022/scrolling/scrollmode.mjs +0 -5
- package/esm2022/scrolling/suspend.service.mjs +0 -17
- package/esm2022/selection/cell-selection.service.mjs +0 -349
- package/esm2022/selection/marquee.directive.mjs +0 -188
- package/esm2022/selection/pair-set.mjs +0 -158
- package/esm2022/selection/selectall-checkbox.directive.mjs +0 -143
- package/esm2022/selection/selection-checkbox.directive.mjs +0 -132
- package/esm2022/selection/selection-default.mjs +0 -208
- package/esm2022/selection/selection.directive.mjs +0 -53
- package/esm2022/selection/selection.service.mjs +0 -466
- package/esm2022/selection/types.mjs +0 -5
- package/esm2022/state-management/grid-state.models.mjs +0 -26
- package/esm2022/state-management/redo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-redo.directive.mjs +0 -249
- package/esm2022/state-management/undo-redo.service.mjs +0 -21
- package/esm2022/state-management/undo-redo.stack.mjs +0 -238
- package/esm2022/utils.mjs +0 -216
|
@@ -1,1176 +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, Input, Output, EventEmitter, HostBinding, ViewChild, ElementRef, Inject, InjectionToken, QueryList, NgZone, Renderer2, ViewChildren, ChangeDetectorRef, TemplateRef } from '@angular/core';
|
|
6
|
-
import { Subject, fromEvent, merge } from 'rxjs';
|
|
7
|
-
import { delay, map, filter, tap, take, switchMapTo } from 'rxjs/operators';
|
|
8
|
-
import { RowHeightService } from '../scrolling/row-height.service';
|
|
9
|
-
import { ScrollerService, PageAction, ScrollAction, ScrollBottomAction } from '../scrolling/scroller.service';
|
|
10
|
-
import { ScrollRequestService } from '../scrolling/scroll-request.service';
|
|
11
|
-
import { ColumnBase } from '../columns/column-base';
|
|
12
|
-
import { DetailTemplateDirective } from './details/detail-template.directive';
|
|
13
|
-
import { isChanged, isPresent, isUniversal, anyChanged, isNumber, requestAnimationFrame, cancelAnimationFrame, recursiveFlatMap, calcRowHeight } from '../utils';
|
|
14
|
-
import { DetailsService } from './details/details.service';
|
|
15
|
-
import { ColumnsContainer } from '../columns/columns-container';
|
|
16
|
-
import { ChangeNotificationService } from '../data/change-notification.service';
|
|
17
|
-
import { syncRowsHeight } from '../layout/row-sync';
|
|
18
|
-
import { NoRecordsTemplateDirective } from './no-records-template.directive';
|
|
19
|
-
import { SuspendService } from '../scrolling/suspend.service';
|
|
20
|
-
import { GroupsService } from "../grouping/groups.service";
|
|
21
|
-
import { expandColumns, sumColumnWidths } from "../columns/column-common";
|
|
22
|
-
import { ScrollSyncService } from "../scrolling/scroll-sync.service";
|
|
23
|
-
import { ResizeService } from "../layout/resize.service";
|
|
24
|
-
import { EventsOutsideAngularDirective, isDocumentAvailable, normalizeKeys, ResizeSensorComponent } from "@progress/kendo-angular-common";
|
|
25
|
-
import { BrowserSupportService } from "../layout/browser-support.service";
|
|
26
|
-
import { EditService } from '../editing/edit.service';
|
|
27
|
-
import { NavigationService } from '../navigation/navigation.service';
|
|
28
|
-
import { Keys } from '@progress/kendo-angular-common';
|
|
29
|
-
import { ColumnResizingService } from "../column-resizing/column-resizing.service";
|
|
30
|
-
import { GROUP_CELL_WIDTH } from '../constants';
|
|
31
|
-
import { defaultTrackBy } from '../common/default-track-by';
|
|
32
|
-
import { hasClasses, rtlScrollPosition } from './common/dom-queries';
|
|
33
|
-
import { PDFService } from '../pdf/pdf.service';
|
|
34
|
-
import { ColumnInfoService } from '../common/column-info.service';
|
|
35
|
-
import { NON_DATA_CELL_CLASSES } from './constants';
|
|
36
|
-
import { ContextService } from '../common/provider.service';
|
|
37
|
-
import { ResizableContainerDirective } from '../layout/resizable.directive';
|
|
38
|
-
import { TableBodyComponent } from './table-body.component';
|
|
39
|
-
import { ColGroupComponent } from './common/col-group.component';
|
|
40
|
-
import { GridTableDirective } from './grid-table.directive';
|
|
41
|
-
import { TableDirective } from '../column-resizing/table.directive';
|
|
42
|
-
import { DataMappingService } from '../data/data-mapping.service';
|
|
43
|
-
import * as i0 from "@angular/core";
|
|
44
|
-
import * as i1 from "./details/details.service";
|
|
45
|
-
import * as i2 from "../data/change-notification.service";
|
|
46
|
-
import * as i3 from "../scrolling/suspend.service";
|
|
47
|
-
import * as i4 from "../grouping/groups.service";
|
|
48
|
-
import * as i5 from "../scrolling/scroll-sync.service";
|
|
49
|
-
import * as i6 from "../layout/resize.service";
|
|
50
|
-
import * as i7 from "../editing/edit.service";
|
|
51
|
-
import * as i8 from "../layout/browser-support.service";
|
|
52
|
-
import * as i9 from "../navigation/navigation.service";
|
|
53
|
-
import * as i10 from "../scrolling/scroll-request.service";
|
|
54
|
-
import * as i11 from "../common/provider.service";
|
|
55
|
-
import * as i12 from "../column-resizing/column-resizing.service";
|
|
56
|
-
import * as i13 from "../pdf/pdf.service";
|
|
57
|
-
import * as i14 from "../common/column-info.service";
|
|
58
|
-
import * as i15 from "../data/data-mapping.service";
|
|
59
|
-
const elementAt = (index, elements, elementOffset) => {
|
|
60
|
-
for (let idx = 0, elementIdx = 0; idx < elements.length; idx++) {
|
|
61
|
-
const offset = elementOffset(elements[idx]);
|
|
62
|
-
if (elementIdx <= index && index <= elementIdx + offset - 1) {
|
|
63
|
-
return elements[idx];
|
|
64
|
-
}
|
|
65
|
-
elementIdx += offset;
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
const rowAt = (index, rows) => elementAt(index, rows, () => 1);
|
|
69
|
-
const cellAt = (index, cells) => elementAt(index, cells, cell => !hasClasses(cell, NON_DATA_CELL_CLASSES) ? parseInt(cell.getAttribute('colSpan'), 10) || 1 : 0);
|
|
70
|
-
const EMPTY_OBJECT = {};
|
|
71
|
-
/**
|
|
72
|
-
* @hidden
|
|
73
|
-
*/
|
|
74
|
-
export const SCROLLER_FACTORY_TOKEN = new InjectionToken('grid-scroll-service-factory');
|
|
75
|
-
/**
|
|
76
|
-
* @hidden
|
|
77
|
-
*/
|
|
78
|
-
export function DEFAULT_SCROLLER_FACTORY(observable, ctx) {
|
|
79
|
-
return new ScrollerService(observable, ctx);
|
|
80
|
-
}
|
|
81
|
-
const wheelDeltaY = (e) => {
|
|
82
|
-
const deltaY = e.wheelDeltaY;
|
|
83
|
-
if (e.wheelDelta && (deltaY === undefined || deltaY)) {
|
|
84
|
-
return e.wheelDelta;
|
|
85
|
-
}
|
|
86
|
-
else if (e.detail && e.axis === e.VERTICAL_AXIS) {
|
|
87
|
-
return (-e.detail) * 10;
|
|
88
|
-
}
|
|
89
|
-
return 0;
|
|
90
|
-
};
|
|
91
|
-
const preventLockedScroll = (args, element) => {
|
|
92
|
-
const delta = wheelDeltaY(args);
|
|
93
|
-
const scrollTop = element.scrollTop;
|
|
94
|
-
const allowScroll = (scrollTop === 0 && 0 < delta) || (element.scrollHeight <= element.offsetHeight + scrollTop && delta < 0);
|
|
95
|
-
if (!allowScroll) {
|
|
96
|
-
args.preventDefault();
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
const translateY = (renderer, value) => el => renderer.setStyle(el, "transform", `translateY(${value}px)`);
|
|
100
|
-
const maybeNativeElement = el => el ? el.nativeElement : null;
|
|
101
|
-
const hasScrollbar = (el, parent) => el.nativeElement.offsetWidth > parent.nativeElement.clientWidth;
|
|
102
|
-
const setHeight = renderer => ({ el, height }) => renderer.setStyle(el, "height", `${height}px`);
|
|
103
|
-
const bufferSize = 1;
|
|
104
|
-
/**
|
|
105
|
-
* @hidden
|
|
106
|
-
*/
|
|
107
|
-
export class ListComponent {
|
|
108
|
-
changeNotification;
|
|
109
|
-
suspendService;
|
|
110
|
-
groupsService;
|
|
111
|
-
ngZone;
|
|
112
|
-
renderer;
|
|
113
|
-
scrollSyncService;
|
|
114
|
-
resizeService;
|
|
115
|
-
editService;
|
|
116
|
-
supportService;
|
|
117
|
-
navigationService;
|
|
118
|
-
ctx;
|
|
119
|
-
columnResizingService;
|
|
120
|
-
changeDetector;
|
|
121
|
-
pdfService;
|
|
122
|
-
columnInfo;
|
|
123
|
-
dataMappingService;
|
|
124
|
-
hostClass = true;
|
|
125
|
-
hostRole = 'presentation';
|
|
126
|
-
data;
|
|
127
|
-
groups = [];
|
|
128
|
-
total;
|
|
129
|
-
rowHeight;
|
|
130
|
-
detailRowHeight;
|
|
131
|
-
take;
|
|
132
|
-
skip = 0;
|
|
133
|
-
columns = new ColumnsContainer(() => []);
|
|
134
|
-
detailTemplate;
|
|
135
|
-
noRecordsTemplate;
|
|
136
|
-
selectable = false;
|
|
137
|
-
groupable = false;
|
|
138
|
-
filterable;
|
|
139
|
-
rowClass;
|
|
140
|
-
rowSticky;
|
|
141
|
-
loading;
|
|
142
|
-
trackBy = defaultTrackBy;
|
|
143
|
-
virtualColumns;
|
|
144
|
-
isVirtual;
|
|
145
|
-
cellLoadingTemplate;
|
|
146
|
-
loadingTemplate;
|
|
147
|
-
sort = new Array();
|
|
148
|
-
size = 'medium';
|
|
149
|
-
contentScroll = new EventEmitter();
|
|
150
|
-
pageChange = new EventEmitter();
|
|
151
|
-
scrollBottom = new EventEmitter();
|
|
152
|
-
columnsStartIdx = 0;
|
|
153
|
-
allItems = [];
|
|
154
|
-
itemsToRender = [];
|
|
155
|
-
get showFooter() {
|
|
156
|
-
return this.groupable && this.groupable.showFooter;
|
|
157
|
-
}
|
|
158
|
-
get totalWidth() {
|
|
159
|
-
if (this.virtualColumns && this.columns.unlockedWidth) {
|
|
160
|
-
return this.columns.unlockedWidth;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
container;
|
|
164
|
-
lockedContainer;
|
|
165
|
-
lockedTable;
|
|
166
|
-
table;
|
|
167
|
-
resizeSensors = new QueryList();
|
|
168
|
-
scroller;
|
|
169
|
-
subscriptions;
|
|
170
|
-
scrollerSubscription;
|
|
171
|
-
dispatcher = new Subject();
|
|
172
|
-
rowHeightService;
|
|
173
|
-
skipScroll;
|
|
174
|
-
rebind;
|
|
175
|
-
containerScrollTop = 0;
|
|
176
|
-
viewportColumns;
|
|
177
|
-
columnsEndIdx;
|
|
178
|
-
viewportColumnsWidth;
|
|
179
|
-
scrollLeft = 0;
|
|
180
|
-
virtualPageSize;
|
|
181
|
-
observer;
|
|
182
|
-
get lockedLeafColumns() {
|
|
183
|
-
return this.columns.lockedLeafColumns;
|
|
184
|
-
}
|
|
185
|
-
get nonLockedLeafColumns() {
|
|
186
|
-
return this.columns.nonLockedLeafColumns;
|
|
187
|
-
}
|
|
188
|
-
get nonLockedColumnsToRender() {
|
|
189
|
-
if (this.virtualColumns && !this.pdfService.exporting && !this.isStacked) {
|
|
190
|
-
return this.viewportColumns;
|
|
191
|
-
}
|
|
192
|
-
return this.nonLockedLeafColumns;
|
|
193
|
-
}
|
|
194
|
-
get leafColumns() {
|
|
195
|
-
return this.columns.leafColumnsToRender;
|
|
196
|
-
}
|
|
197
|
-
get lockedWidth() {
|
|
198
|
-
const groupCellsWidth = this.groups.length * GROUP_CELL_WIDTH;
|
|
199
|
-
return expandColumns(this.lockedLeafColumns.toArray()).reduce((prev, curr) => prev + (curr.width || 0), groupCellsWidth);
|
|
200
|
-
}
|
|
201
|
-
get nonLockedWidth() {
|
|
202
|
-
if (((!this.rtl && this.lockedLeafColumns.length) || this.virtualColumns) && !this.isStacked) {
|
|
203
|
-
return sumColumnWidths(expandColumns(this.nonLockedColumnsToRender.toArray()));
|
|
204
|
-
}
|
|
205
|
-
return undefined;
|
|
206
|
-
}
|
|
207
|
-
get isLocked() {
|
|
208
|
-
return this.lockedLeafColumns.length > 0 && !this.isStacked;
|
|
209
|
-
}
|
|
210
|
-
rtl = false;
|
|
211
|
-
columnUpdateFrame;
|
|
212
|
-
hasLockedContainer;
|
|
213
|
-
minRowHeight;
|
|
214
|
-
handleSkipOnData = false;
|
|
215
|
-
scrollToIndex = null;
|
|
216
|
-
constructor(scrollerFactory, detailsService, changeNotification, suspendService, groupsService, ngZone, renderer, scrollSyncService, resizeService, editService, supportService, navigationService, scrollRequestService, ctx, columnResizingService, changeDetector, pdfService, columnInfo, dataMappingService) {
|
|
217
|
-
this.changeNotification = changeNotification;
|
|
218
|
-
this.suspendService = suspendService;
|
|
219
|
-
this.groupsService = groupsService;
|
|
220
|
-
this.ngZone = ngZone;
|
|
221
|
-
this.renderer = renderer;
|
|
222
|
-
this.scrollSyncService = scrollSyncService;
|
|
223
|
-
this.resizeService = resizeService;
|
|
224
|
-
this.editService = editService;
|
|
225
|
-
this.supportService = supportService;
|
|
226
|
-
this.navigationService = navigationService;
|
|
227
|
-
this.ctx = ctx;
|
|
228
|
-
this.columnResizingService = columnResizingService;
|
|
229
|
-
this.changeDetector = changeDetector;
|
|
230
|
-
this.pdfService = pdfService;
|
|
231
|
-
this.columnInfo = columnInfo;
|
|
232
|
-
this.dataMappingService = dataMappingService;
|
|
233
|
-
this.scroller = this.ctx.scroller = scrollerFactory(this.dispatcher, this.ctx);
|
|
234
|
-
this.subscriptions = detailsService.changes.subscribe(() => this.detailExpand());
|
|
235
|
-
this.subscriptions.add(scrollRequestService.requests.subscribe(req => isPresent(req.adjustIndex) ? this.scrollTo(req.request, req.adjustIndex) : this.scrollToItem(req.request)));
|
|
236
|
-
this.subscriptions.add(this.pdfService.restoreDOMVirtualization.subscribe(() => {
|
|
237
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
238
|
-
this.init();
|
|
239
|
-
this.setScrollerOptions();
|
|
240
|
-
this.scroller.update();
|
|
241
|
-
});
|
|
242
|
-
}));
|
|
243
|
-
}
|
|
244
|
-
ngOnInit() {
|
|
245
|
-
this.minRowHeight = this.isVirtual ? this.rowHeight || calcRowHeight(this.table.nativeElement) : this.rowHeight;
|
|
246
|
-
this.init();
|
|
247
|
-
this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowSync.bind(this)));
|
|
248
|
-
this.subscriptions.add(this.groupsService.changes.subscribe(() => {
|
|
249
|
-
this.skipScroll = this.isVirtual;
|
|
250
|
-
}));
|
|
251
|
-
this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowNavigationLocked.bind(this)));
|
|
252
|
-
this.subscriptions.add(merge(this.columns.changes, this.resizeService.changes).subscribe(() => {
|
|
253
|
-
if (this.virtualColumns) {
|
|
254
|
-
this.ngZone.run(() => {
|
|
255
|
-
this.updateViewportColumns();
|
|
256
|
-
this.changeDetector.markForCheck();
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
}));
|
|
260
|
-
this.subscriptions.add(this.ctx.localization.changes.subscribe(({ rtl }) => this.rtl = rtl));
|
|
261
|
-
}
|
|
262
|
-
ngOnChanges(changes) {
|
|
263
|
-
if (!isDocumentAvailable()) {
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
const changesInSkip = changes['skip'];
|
|
267
|
-
const hasInitialSkip = changesInSkip && changesInSkip.firstChange && changesInSkip.currentValue > 0;
|
|
268
|
-
if (hasInitialSkip) {
|
|
269
|
-
this.handleSkipOnData = true;
|
|
270
|
-
}
|
|
271
|
-
if (isChanged('isVirtual', changes)) {
|
|
272
|
-
if (this.isVirtual && !(this.minRowHeight || this.rowHeight)) {
|
|
273
|
-
this.minRowHeight = calcRowHeight(this.table.nativeElement);
|
|
274
|
-
}
|
|
275
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
276
|
-
this.scroller.reset();
|
|
277
|
-
this.rowHeightService = this.scroller.rowHeightService = new RowHeightService(this.total, this.rowHeight || this.minRowHeight);
|
|
278
|
-
this.setScrollerOptions();
|
|
279
|
-
this.scroller.update();
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
if (isChanged("skip", changes) && !this.rebind) {
|
|
283
|
-
this.skipScroll = true;
|
|
284
|
-
this.container.nativeElement.scrollTop = (this.isVirtual && this.ctx.grid?.pageable) ? 0 : this.rowHeightService.offset(this.skip);
|
|
285
|
-
}
|
|
286
|
-
if (anyChanged(['total', 'take'], changes)) {
|
|
287
|
-
// For virtual scrolling without paging, preserve scroll position when only take/pageSize changes
|
|
288
|
-
const isVirtualOnly = this.isVirtual && !this.ctx.grid?.pageable;
|
|
289
|
-
const onlyTakeChanged = isChanged('take', changes) && !isChanged('total', changes);
|
|
290
|
-
if (isVirtualOnly && onlyTakeChanged) {
|
|
291
|
-
this.skipScroll = true;
|
|
292
|
-
}
|
|
293
|
-
this.init();
|
|
294
|
-
}
|
|
295
|
-
this.rebind = false;
|
|
296
|
-
}
|
|
297
|
-
zoneSub;
|
|
298
|
-
get totalIsAllItems() {
|
|
299
|
-
return this.isVirtual && (Boolean(this.ctx.grid?.pageable || this.ctx.grid?.group?.length));
|
|
300
|
-
}
|
|
301
|
-
rebindGroupedDataFlag = false;
|
|
302
|
-
ngDoCheck() {
|
|
303
|
-
if (this.virtualColumns && (!this.viewportColumns || this.viewportWidthChange())) {
|
|
304
|
-
this.updateViewportColumns();
|
|
305
|
-
}
|
|
306
|
-
if (!isPresent(this.virtualPageSize) && !this.ctx.grid?.pageable && isPresent(this.ctx.grid?.pageSize)) {
|
|
307
|
-
this.virtualPageSize = this.ctx.grid.pageSize;
|
|
308
|
-
}
|
|
309
|
-
const shouldCalculatePageSize = isDocumentAvailable() && this.isVirtual && !isPresent(this.virtualPageSize) && (!isPresent(this.ctx.grid?.pageSize) || this.ctx.grid?.pageable);
|
|
310
|
-
const previousTotal = this.allItems.length;
|
|
311
|
-
this.allItems = this.dataMappingService.dataMapper(this.data, this.nonLockedColumnsToRender, this.lockedLeafColumns, this.detailTemplate, this.showFooter);
|
|
312
|
-
const totalChanged = previousTotal !== this.allItems.length;
|
|
313
|
-
const totalIncreased = this.allItems.length > previousTotal;
|
|
314
|
-
if (this.totalIsAllItems && totalChanged) {
|
|
315
|
-
this.scroller.reset(this.skipScroll);
|
|
316
|
-
this.scroller.total = this.allItems.length;
|
|
317
|
-
this.itemsToRender = this.allItems.slice(this.scroller.virtualSkip, this.scroller.virtualSkip + this.virtualPageSize);
|
|
318
|
-
}
|
|
319
|
-
else if (totalChanged && !this.ctx.grid?.group?.length) {
|
|
320
|
-
// Preserve scroll position for non-virtual endless scrolling (scrollBottom event)
|
|
321
|
-
if (!this.isVirtual && totalIncreased) {
|
|
322
|
-
this.scroller.total = this.total;
|
|
323
|
-
}
|
|
324
|
-
else {
|
|
325
|
-
this.scroller.reset(this.skipScroll);
|
|
326
|
-
this.scroller.total = this.total;
|
|
327
|
-
// Clear flags to allow viewport update on next change detection (virtual scrolling fix)
|
|
328
|
-
this.skipScroll = false;
|
|
329
|
-
this.scroller.scrollSyncing = false;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
if (!this.isVirtual || (this.isVirtual && !this.ctx.grid?.pageable && !this.ctx.grid?.group?.length)) {
|
|
333
|
-
this.itemsToRender = this.allItems;
|
|
334
|
-
}
|
|
335
|
-
const rebindGroupedData = this.isVirtual && !totalChanged && this.ctx.grid?.group?.length && !this.rebindGroupedDataFlag;
|
|
336
|
-
if (rebindGroupedData) {
|
|
337
|
-
this.rebindGroupedDataFlag = true;
|
|
338
|
-
}
|
|
339
|
-
if (shouldCalculatePageSize || !isPresent(this.scroller.rowHeightService)) {
|
|
340
|
-
const calculatedPageSize = this.virtualPageSize ?? this.calcVirtualPageSize();
|
|
341
|
-
if (calculatedPageSize > 0) {
|
|
342
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
343
|
-
if (!isPresent(this.ctx.grid?.pageSize)) {
|
|
344
|
-
this.ctx.grid.pageSize = calculatedPageSize;
|
|
345
|
-
this.ngZone.run(() => {
|
|
346
|
-
this.pageChange.emit({
|
|
347
|
-
skip: this.skip || 0,
|
|
348
|
-
take: calculatedPageSize
|
|
349
|
-
});
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
if (this.ctx.grid?.pageable || this.ctx.grid?.group?.length) {
|
|
353
|
-
this.virtualPageSize = this.scroller.virtualPageSize = calculatedPageSize;
|
|
354
|
-
this.ngZone.run(() => this.itemsToRender = this.allItems.slice(this.scroller.virtualSkip, this.scroller.virtualSkip + this.virtualPageSize));
|
|
355
|
-
}
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
else if (this.rebindGroupedDataFlag) {
|
|
360
|
-
this.ngZone.run(() => this.itemsToRender = this.allItems.slice(this.scroller.virtualSkip, this.scroller.virtualSkip + this.virtualPageSize));
|
|
361
|
-
this.rebindGroupedDataFlag = false;
|
|
362
|
-
}
|
|
363
|
-
if (!this.zoneSub) {
|
|
364
|
-
this.zoneSub = this.ngZone.onStable.subscribe(() => {
|
|
365
|
-
if (!this.scroller.rowHeightService) {
|
|
366
|
-
const total = this.isVirtual && (this.ctx.grid?.pageable || this.ctx.grid?.group?.length) ? this.allItems.length : this.total;
|
|
367
|
-
this.scroller.rowHeightService = this.rowHeightService = new RowHeightService(total, this.rowHeight || this.minRowHeight);
|
|
368
|
-
}
|
|
369
|
-
if (this.allItems.length && this.handleSkipOnData && this.isVirtual && this.skip > 0 && this.total > 0) {
|
|
370
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
371
|
-
this.scroller.adjustScroll(this.scroller.rowHeightService.offset(this.skip), true);
|
|
372
|
-
this.handleSkipOnData = false;
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
if (this.isVirtual && this.ctx.grid?.group?.length && this.scroller.total !== this.allItems.length) {
|
|
376
|
-
this.scroller.total = this.allItems.length;
|
|
377
|
-
this.rowHeightService = this.scroller.rowHeightService = new RowHeightService(this.scroller.total, this.rowHeight || this.minRowHeight);
|
|
378
|
-
}
|
|
379
|
-
this.isVirtual && this.scroller.update();
|
|
380
|
-
// Item outside of the viewport is scrolled to programmatically.
|
|
381
|
-
// RowHeightService offset for given index still may not match the current scrollTop
|
|
382
|
-
// depending on the varying row heights, so we need to adjust the scroll position.
|
|
383
|
-
if (isPresent(this.scrollToIndex)) {
|
|
384
|
-
const offset = this.scroller.rowHeightService.offset(this.scrollToIndex);
|
|
385
|
-
if (offset > this.container.nativeElement.scrollTop) {
|
|
386
|
-
this.scroller.adjustScroll(offset - this.container.nativeElement.scrollTop);
|
|
387
|
-
}
|
|
388
|
-
this.scrollToIndex = null;
|
|
389
|
-
}
|
|
390
|
-
if (this.isVirtual) {
|
|
391
|
-
this.ctx.grid?.updateNavigationMetadata();
|
|
392
|
-
// when navigating down from the header to content, skip navigation to the content
|
|
393
|
-
// that would be triggered by the resetNavigationViewport method to ensure that the
|
|
394
|
-
// focus is correctly set on the first data row in the content area.
|
|
395
|
-
const shouldResetViewport = !this.navigationService.activeRow || this.navigationService.activeRow?.dataRowIndex > -1 || isPresent(this.navigationService.activeRow?.groupItem);
|
|
396
|
-
if (shouldResetViewport) {
|
|
397
|
-
this.resetNavigationViewport();
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
this.zoneSub.unsubscribe();
|
|
401
|
-
this.zoneSub = null;
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
ngAfterViewInit() {
|
|
406
|
-
if (!isDocumentAvailable()) {
|
|
407
|
-
return;
|
|
408
|
-
}
|
|
409
|
-
this.attachContainerScroll();
|
|
410
|
-
this.initResizeService();
|
|
411
|
-
this.setScrollerOptions();
|
|
412
|
-
}
|
|
413
|
-
ngAfterViewChecked() {
|
|
414
|
-
const isLocked = this.isLocked;
|
|
415
|
-
if (isLocked && !this.hasLockedContainer) {
|
|
416
|
-
this.syncRowsHeight();
|
|
417
|
-
}
|
|
418
|
-
this.hasLockedContainer = isLocked;
|
|
419
|
-
}
|
|
420
|
-
syncRowsHeight() {
|
|
421
|
-
if (this.lockedContainer) {
|
|
422
|
-
syncRowsHeight(this.lockedTable.nativeElement, this.table.nativeElement);
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
ngOnDestroy() {
|
|
426
|
-
if (this.subscriptions) {
|
|
427
|
-
this.subscriptions.unsubscribe();
|
|
428
|
-
}
|
|
429
|
-
if (this.zoneSub) {
|
|
430
|
-
this.zoneSub.unsubscribe();
|
|
431
|
-
this.zoneSub = null;
|
|
432
|
-
}
|
|
433
|
-
if (this.resizeService) {
|
|
434
|
-
this.resizeService.destroy();
|
|
435
|
-
}
|
|
436
|
-
this.observer?.disconnect();
|
|
437
|
-
this.cleanupScroller();
|
|
438
|
-
}
|
|
439
|
-
init() {
|
|
440
|
-
if (this.suspendService.scroll) {
|
|
441
|
-
return;
|
|
442
|
-
}
|
|
443
|
-
const total = this.isVirtual && this.ctx.grid?.pageable ? this.ctx.grid.pageSize : this.total;
|
|
444
|
-
this.rowHeightService = this.scroller.rowHeightService = new RowHeightService(total, this.rowHeight || this.minRowHeight);
|
|
445
|
-
if (!isUniversal()) {
|
|
446
|
-
if (this.skipScroll) {
|
|
447
|
-
// Update scroller's take value when preserving scroll position
|
|
448
|
-
this.scroller.take = this.take;
|
|
449
|
-
this.scroller.total = this.total;
|
|
450
|
-
this.setScrollerOptions();
|
|
451
|
-
this.scroller.update();
|
|
452
|
-
}
|
|
453
|
-
else {
|
|
454
|
-
this.ngZone.runOutsideAngular(this.createScroller.bind(this));
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
lockedScroll() {
|
|
459
|
-
if (!this.suspendService.scroll) {
|
|
460
|
-
const lockedScrollTop = this.lockedContainer.nativeElement.scrollTop;
|
|
461
|
-
if (lockedScrollTop !== this.containerScrollTop) {
|
|
462
|
-
this.container.nativeElement.scrollTop = this.containerScrollTop = lockedScrollTop;
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
lockedMousewheel(args) {
|
|
467
|
-
if (!args.ctrlKey) {
|
|
468
|
-
preventLockedScroll(args, this.container.nativeElement);
|
|
469
|
-
const scrollDelta = wheelDeltaY(args);
|
|
470
|
-
this.container.nativeElement.scrollTop -= scrollDelta;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
lockedKeydown(args) {
|
|
474
|
-
// on some keyboards arrow keys, PageUp/Down, and Home/End are mapped to Numpad keys
|
|
475
|
-
const code = normalizeKeys(args);
|
|
476
|
-
if (code === Keys.PageDown || code === Keys.PageUp) {
|
|
477
|
-
const dir = code === Keys.PageDown ? 1 : -1;
|
|
478
|
-
const element = this.container.nativeElement;
|
|
479
|
-
element.scrollTop += element.offsetHeight * dir * 0.8;
|
|
480
|
-
args.preventDefault();
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
updateViewportColumns(range) {
|
|
484
|
-
const columns = this.columns.nonLockedLeafColumns.toArray();
|
|
485
|
-
// eslint-disable-next-line prefer-const
|
|
486
|
-
let { startIdx, endIdx, offset } = range || this.calculateViewportColumns();
|
|
487
|
-
const start = Math.max(0, startIdx - bufferSize);
|
|
488
|
-
const end = Math.min(endIdx + bufferSize, columns.length - 1);
|
|
489
|
-
if (start < startIdx) {
|
|
490
|
-
for (let idx = startIdx - 1; idx >= start; idx--) {
|
|
491
|
-
offset -= columns[idx].width;
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
let currentColumns = columns.slice(start, end + 1);
|
|
495
|
-
this.viewportColumnsWidth = currentColumns.reduce((total, column) => total + column.width, 0);
|
|
496
|
-
const stickyBeforeStart = columns.slice(0, start).filter(c => c.sticky && !currentColumns.some(col => col === c));
|
|
497
|
-
const stickyAfterEnd = columns.slice(end, columns.length).filter(c => c.sticky && !currentColumns.some(col => col === c));
|
|
498
|
-
currentColumns = [...stickyBeforeStart, ...currentColumns, ...stickyAfterEnd];
|
|
499
|
-
if (start > 0) {
|
|
500
|
-
const offsetColumn = new ColumnBase();
|
|
501
|
-
offsetColumn.width = offset;
|
|
502
|
-
currentColumns.unshift(offsetColumn);
|
|
503
|
-
}
|
|
504
|
-
this.viewportColumns = new QueryList();
|
|
505
|
-
this.viewportColumns.reset(currentColumns);
|
|
506
|
-
this.columnsStartIdx = start;
|
|
507
|
-
this.columnsEndIdx = end;
|
|
508
|
-
this.columnInfo.columnRangeChange.emit({ start, end, offset });
|
|
509
|
-
if (!range) {
|
|
510
|
-
this.updateColumnViewport(startIdx, endIdx);
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
/**
|
|
514
|
-
* @hidden
|
|
515
|
-
*/
|
|
516
|
-
get isStacked() {
|
|
517
|
-
return this.ctx.grid?.isStacked;
|
|
518
|
-
}
|
|
519
|
-
resetNavigationViewport() {
|
|
520
|
-
if (!isDocumentAvailable()) {
|
|
521
|
-
return;
|
|
522
|
-
}
|
|
523
|
-
if (this.skipScroll || this.scroller.scrollSyncing) {
|
|
524
|
-
this.ngZone.runOutsideAngular(() => {
|
|
525
|
-
setTimeout(() => {
|
|
526
|
-
this.skipScroll = this.scroller.scrollSyncing = false;
|
|
527
|
-
});
|
|
528
|
-
});
|
|
529
|
-
return;
|
|
530
|
-
}
|
|
531
|
-
if (!this.container || !this.navigationService.tableEnabled ||
|
|
532
|
-
!this.navigationService.needsViewport() || this.allItems.length === 0) {
|
|
533
|
-
return;
|
|
534
|
-
}
|
|
535
|
-
const { scrollTop, offsetHeight } = this.container.nativeElement;
|
|
536
|
-
const scrollBottom = scrollTop + offsetHeight;
|
|
537
|
-
const firstItemIndex = this.rowHeightService.index(scrollTop);
|
|
538
|
-
const lastItemIndex = this.rowHeightService.index(scrollBottom);
|
|
539
|
-
const lastItemOffset = this.rowHeightService.offset(lastItemIndex);
|
|
540
|
-
let viewportStart = firstItemIndex;
|
|
541
|
-
let viewportEnd = lastItemIndex;
|
|
542
|
-
if (isPresent(this.detailTemplate)) {
|
|
543
|
-
viewportStart *= 2;
|
|
544
|
-
viewportEnd *= 2;
|
|
545
|
-
const firstItemHeight = this.rowHeightService.offset(firstItemIndex);
|
|
546
|
-
if (firstItemHeight + this.rowHeight < scrollTop) {
|
|
547
|
-
viewportStart++;
|
|
548
|
-
}
|
|
549
|
-
const lastItemHeight = this.rowHeightService.height(lastItemIndex);
|
|
550
|
-
const lastItemExpanded = this.scroller.isExpanded(lastItemIndex);
|
|
551
|
-
const lastItemDetailOverflows = lastItemOffset + lastItemHeight > scrollBottom;
|
|
552
|
-
if (lastItemExpanded && !lastItemDetailOverflows) {
|
|
553
|
-
viewportEnd++;
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
const offset = this.isVirtual && this.ctx.grid?.pageable ? this.skip : 0;
|
|
557
|
-
this.navigationService.setViewport(viewportStart + offset, viewportEnd + offset);
|
|
558
|
-
}
|
|
559
|
-
detailExpand() {
|
|
560
|
-
this.resetNavigationViewport();
|
|
561
|
-
}
|
|
562
|
-
attachContainerScroll() {
|
|
563
|
-
if (isUniversal()) {
|
|
564
|
-
return;
|
|
565
|
-
}
|
|
566
|
-
this.ngZone.runOutsideAngular(() => {
|
|
567
|
-
this.subscriptions.add(fromEvent(this.container.nativeElement, 'scroll').pipe(map((event) => event.target), filter(() => !this.suspendService.scroll), tap((target) => {
|
|
568
|
-
this.onContainerScroll(target);
|
|
569
|
-
this.resetNavigationViewport();
|
|
570
|
-
if (this.virtualColumns || this.isVirtual) {
|
|
571
|
-
this.handleColumnScroll();
|
|
572
|
-
}
|
|
573
|
-
const rowViewport = this.navigationService.viewport || EMPTY_OBJECT;
|
|
574
|
-
const columnViewport = this.navigationService.columnViewport || EMPTY_OBJECT;
|
|
575
|
-
this.contentScroll.emit({
|
|
576
|
-
scrollLeft: target.scrollLeft,
|
|
577
|
-
scrollTop: target.scrollTop,
|
|
578
|
-
startRow: rowViewport.firstItemIndex,
|
|
579
|
-
endRow: rowViewport.lastItemIndex,
|
|
580
|
-
startColumn: columnViewport.firstItemIndex,
|
|
581
|
-
endColumn: columnViewport.lastItemIndex
|
|
582
|
-
});
|
|
583
|
-
})).subscribe(this.dispatcher));
|
|
584
|
-
});
|
|
585
|
-
this.scrollSyncService.registerEmitter(this.container.nativeElement, 'body');
|
|
586
|
-
}
|
|
587
|
-
createScroller() {
|
|
588
|
-
this.cleanupScroller();
|
|
589
|
-
const observable = this.scroller
|
|
590
|
-
.create(this.rowHeightService, this.skip, this.take, this.total);
|
|
591
|
-
this.skipScroll = false;
|
|
592
|
-
this.scrollerSubscription = observable.pipe(filter((x) => x instanceof PageAction), filter((x) => {
|
|
593
|
-
const temp = this.skipScroll;
|
|
594
|
-
this.skipScroll = false;
|
|
595
|
-
return !temp && x.skip !== this.skip;
|
|
596
|
-
}), tap(() => this.rebind = true))
|
|
597
|
-
.subscribe((x) => this.ngZone.run(() => this.pageChange.emit(x)));
|
|
598
|
-
this.scrollerSubscription.add(observable.pipe(filter((x) => x instanceof ScrollAction))
|
|
599
|
-
.subscribe(this.scroll.bind(this)));
|
|
600
|
-
this.scrollerSubscription.add(observable.pipe(filter((x) => x instanceof ScrollBottomAction))
|
|
601
|
-
.subscribe(() => this.scrollBottom.emit()));
|
|
602
|
-
}
|
|
603
|
-
scroll(scrollActionArgs) {
|
|
604
|
-
this.skipScroll = false;
|
|
605
|
-
if (this.isVirtual) {
|
|
606
|
-
[
|
|
607
|
-
maybeNativeElement(this.table),
|
|
608
|
-
maybeNativeElement(this.lockedTable)
|
|
609
|
-
].filter(isPresent).forEach(translateY(this.renderer, scrollActionArgs.offset));
|
|
610
|
-
if (this.virtualPageSize && scrollActionArgs.changeVirtualData && (this.ctx.grid.pageable || this.ctx.grid.group?.length)) {
|
|
611
|
-
this.ngZone.run(() => this.itemsToRender = this.allItems.slice(this.scroller.virtualSkip, this.scroller.virtualSkip + this.virtualPageSize));
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
this.resetNavigationViewport();
|
|
615
|
-
}
|
|
616
|
-
onContainerScroll({ scrollTop }) {
|
|
617
|
-
this.containerScrollTop = scrollTop;
|
|
618
|
-
if (this.lockedContainer) {
|
|
619
|
-
this.lockedContainer.nativeElement.scrollTop = scrollTop;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
handleRowSync() {
|
|
623
|
-
const isLocked = () => isPresent(this.lockedContainer);
|
|
624
|
-
const onStable = () => this.ngZone.onStable.asObservable().pipe(take(1));
|
|
625
|
-
return merge(this.changeNotification.changes, this.groupsService.changes
|
|
626
|
-
.pipe(filter(isLocked), switchMapTo(onStable())), this.editService.changed, this.resizeService.changes, this.columnResizingService.changes
|
|
627
|
-
.pipe(filter(change => change.type === 'end')), this.supportService.changes)
|
|
628
|
-
.pipe(filter(isLocked))
|
|
629
|
-
.subscribe(() => {
|
|
630
|
-
const scrollTop = this.container.nativeElement.scrollTop;
|
|
631
|
-
const scrollLeft = this.container.nativeElement.scrollLeft;
|
|
632
|
-
this.syncRowsHeight();
|
|
633
|
-
this.syncContainerHeight();
|
|
634
|
-
this.lockedContainer.nativeElement.scrollTop = this.container.nativeElement.scrollTop = scrollTop;
|
|
635
|
-
// fixes scroll left position in IE when editing
|
|
636
|
-
this.container.nativeElement.scrollLeft = scrollLeft;
|
|
637
|
-
this.resizeSensors.forEach(sensor => sensor.acceptSize());
|
|
638
|
-
});
|
|
639
|
-
}
|
|
640
|
-
handleRowNavigationLocked() {
|
|
641
|
-
return this.navigationService.changes.pipe(filter(() => isPresent(this.lockedContainer)), delay(10)).subscribe((args) => {
|
|
642
|
-
if (this.lockedLeafColumns.length <= args.prevColIndex && args.colIndex < this.lockedLeafColumns.length) {
|
|
643
|
-
const cell = this.navigationService.activeCell;
|
|
644
|
-
if (cell && cell.colIndex + cell.colSpan < args.prevColIndex) {
|
|
645
|
-
this.container.nativeElement.scrollLeft = 0;
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
scrollToVirtualRow(itemIndex, adjustIndexForDetailTemplate = true) {
|
|
651
|
-
if (!isDocumentAvailable()) {
|
|
652
|
-
return;
|
|
653
|
-
}
|
|
654
|
-
if (isPresent(this.detailTemplate) && adjustIndexForDetailTemplate) {
|
|
655
|
-
itemIndex = Math.floor(itemIndex / 2);
|
|
656
|
-
}
|
|
657
|
-
const offset = this.rowHeightService.offset(itemIndex);
|
|
658
|
-
this.container.nativeElement.scrollTop = offset;
|
|
659
|
-
this.scrollToIndex = itemIndex;
|
|
660
|
-
}
|
|
661
|
-
scrollTo({ row, column }, adjustIndex = false) {
|
|
662
|
-
if (isNumber(row)) {
|
|
663
|
-
if (this.isVirtual) {
|
|
664
|
-
this.scrollToVirtualRow(row, adjustIndex);
|
|
665
|
-
}
|
|
666
|
-
else {
|
|
667
|
-
const element = rowAt(row, this.table.nativeElement.rows);
|
|
668
|
-
if (element) {
|
|
669
|
-
this.container.nativeElement.scrollTop = element.offsetTop;
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
if (isNumber(column)) {
|
|
674
|
-
column -= this.lockedLeafColumns.length;
|
|
675
|
-
if (this.virtualColumns) {
|
|
676
|
-
const columns = this.columns.leafColumnsToRender;
|
|
677
|
-
let offset = 0;
|
|
678
|
-
for (let idx = 0; idx < column; idx++) {
|
|
679
|
-
offset += columns[idx].width || 0;
|
|
680
|
-
}
|
|
681
|
-
const startOffset = this.lockedLeafColumns.length ? 0 : this.groups.length * GROUP_CELL_WIDTH + (this.detailTemplate && column > 0 ? GROUP_CELL_WIDTH : 0);
|
|
682
|
-
this.container.nativeElement.scrollLeft = this.normalizeScrollLeft(offset + startOffset);
|
|
683
|
-
}
|
|
684
|
-
else if (column === 0 && this.detailTemplate) {
|
|
685
|
-
this.container.nativeElement.scrollLeft = this.normalizeScrollLeft(0);
|
|
686
|
-
}
|
|
687
|
-
else {
|
|
688
|
-
const firstRow = rowAt(0, this.table.nativeElement.rows);
|
|
689
|
-
if (firstRow) {
|
|
690
|
-
const element = cellAt(column, firstRow.cells);
|
|
691
|
-
if (element) {
|
|
692
|
-
this.container.nativeElement.scrollLeft = this.elementScrollLeft(element);
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
scrollToItem(item) {
|
|
699
|
-
if (!isDocumentAvailable()) {
|
|
700
|
-
return;
|
|
701
|
-
}
|
|
702
|
-
const data = this.ctx.grid.data;
|
|
703
|
-
const gridData = Array.isArray(data) ? data : data.data;
|
|
704
|
-
const gridDataItems = gridData.flatMap(recursiveFlatMap);
|
|
705
|
-
const dataItemIndex = gridDataItems.findIndex(dataItem => dataItem[item.idField] === item.id);
|
|
706
|
-
if (dataItemIndex !== -1) {
|
|
707
|
-
const row = Array.from(this.table.nativeElement.rows).find((r) => {
|
|
708
|
-
const dataAttribute = r.getAttribute('data-kendo-grid-item-index');
|
|
709
|
-
return dataAttribute && +dataAttribute === this.ctx.grid.skip + dataItemIndex;
|
|
710
|
-
});
|
|
711
|
-
row && row.scrollIntoView();
|
|
712
|
-
this.resetNavigationViewport();
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
cleanupScroller() {
|
|
716
|
-
if (this.scrollerSubscription) {
|
|
717
|
-
this.scrollerSubscription.unsubscribe();
|
|
718
|
-
}
|
|
719
|
-
if (this.scroller) {
|
|
720
|
-
this.scroller.destroy();
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
initResizeService() {
|
|
724
|
-
this.resizeService.connect(merge(...this.resizeSensors.map(sensor => sensor.resize)));
|
|
725
|
-
}
|
|
726
|
-
syncContainerHeight() {
|
|
727
|
-
[maybeNativeElement(this.lockedContainer)]
|
|
728
|
-
.filter(isPresent)
|
|
729
|
-
.map(el => {
|
|
730
|
-
el.style.height = '';
|
|
731
|
-
let height = this.container.nativeElement.offsetHeight;
|
|
732
|
-
if (hasScrollbar(this.table, this.container)) {
|
|
733
|
-
height -= this.supportService.scrollbarWidth;
|
|
734
|
-
}
|
|
735
|
-
return { el, height };
|
|
736
|
-
})
|
|
737
|
-
.forEach(setHeight(this.renderer));
|
|
738
|
-
}
|
|
739
|
-
handleColumnScroll() {
|
|
740
|
-
const container = this.container.nativeElement;
|
|
741
|
-
const scrollLeft = container.scrollLeft;
|
|
742
|
-
if (this.scrollLeft !== scrollLeft) {
|
|
743
|
-
this.scrollLeft = scrollLeft;
|
|
744
|
-
const range = this.calculateViewportColumns();
|
|
745
|
-
this.updateColumnViewport(range.startIdx, range.endIdx);
|
|
746
|
-
if (range.startIdx < this.columnsStartIdx || this.columnsEndIdx < range.endIdx) {
|
|
747
|
-
cancelAnimationFrame(this.columnUpdateFrame);
|
|
748
|
-
this.columnUpdateFrame = requestAnimationFrame(() => {
|
|
749
|
-
this.ngZone.run(() => {
|
|
750
|
-
this.updateViewportColumns(range);
|
|
751
|
-
this.changeDetector.markForCheck();
|
|
752
|
-
});
|
|
753
|
-
});
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
updateColumnViewport(startIdx, endIdx) {
|
|
758
|
-
const lockedCount = this.lockedLeafColumns.length;
|
|
759
|
-
const leafColumns = this.nonLockedLeafColumns.toArray();
|
|
760
|
-
const viewportStart = lockedCount + startIdx + (this.detailTemplate && startIdx > 0 ? 1 : 0);
|
|
761
|
-
let viewportEnd = lockedCount + endIdx + (this.detailTemplate ? 1 : 0);
|
|
762
|
-
for (let idx = 0; idx < leafColumns.length; idx++) {
|
|
763
|
-
const column = leafColumns[idx];
|
|
764
|
-
if (column.isSpanColumn) {
|
|
765
|
-
viewportEnd += column.children.length;
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
this.navigationService.setColumnViewport(viewportStart, viewportEnd);
|
|
769
|
-
}
|
|
770
|
-
calculateViewportColumns() {
|
|
771
|
-
const { scrollLeft, clientWidth } = this.container.nativeElement;
|
|
772
|
-
const columns = this.columns.nonLockedLeafColumns.toArray();
|
|
773
|
-
const normalizedScrollLeft = this.normalizeScrollLeft(scrollLeft);
|
|
774
|
-
const viewportEnd = normalizedScrollLeft + clientWidth;
|
|
775
|
-
let startIdx;
|
|
776
|
-
let endIdx = 0;
|
|
777
|
-
let current = 0;
|
|
778
|
-
let offset = 0;
|
|
779
|
-
let idx;
|
|
780
|
-
for (idx = 0; idx < columns.length; idx++) {
|
|
781
|
-
const column = columns[idx];
|
|
782
|
-
current += column.width || 0;
|
|
783
|
-
if (startIdx === undefined && current > normalizedScrollLeft) {
|
|
784
|
-
startIdx = idx;
|
|
785
|
-
offset = current - (column.width || 0);
|
|
786
|
-
}
|
|
787
|
-
if (current >= viewportEnd) {
|
|
788
|
-
endIdx = idx;
|
|
789
|
-
break;
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
if (!endIdx && idx > 0) {
|
|
793
|
-
endIdx = columns.length - 1;
|
|
794
|
-
}
|
|
795
|
-
return { startIdx, endIdx, offset };
|
|
796
|
-
}
|
|
797
|
-
viewportWidthChange() {
|
|
798
|
-
const currentWidth = this.viewportColumns.toArray().reduce((total, column) => total + column.width, 0);
|
|
799
|
-
return currentWidth !== this.viewportColumnsWidth;
|
|
800
|
-
}
|
|
801
|
-
normalizeScrollLeft(position) {
|
|
802
|
-
return this.rtl ? rtlScrollPosition(position, this.container.nativeElement, this.supportService.rtlScrollLeft) : position;
|
|
803
|
-
}
|
|
804
|
-
elementScrollLeft(element) {
|
|
805
|
-
if (this.rtl) {
|
|
806
|
-
return this.normalizeScrollLeft(this.container.nativeElement.scrollWidth - element.offsetLeft - element.offsetWidth);
|
|
807
|
-
}
|
|
808
|
-
return element.offsetLeft;
|
|
809
|
-
}
|
|
810
|
-
calcVirtualPageSize = () => {
|
|
811
|
-
const containerHeight = this.container.nativeElement.offsetHeight;
|
|
812
|
-
if (containerHeight && (this.rowHeight ?? this.minRowHeight)) {
|
|
813
|
-
return Math.ceil((containerHeight / (this.rowHeight ?? this.minRowHeight)) * 1.5);
|
|
814
|
-
}
|
|
815
|
-
return 0;
|
|
816
|
-
};
|
|
817
|
-
setScrollerOptions() {
|
|
818
|
-
this.scroller.scrollableVirtual = this.isVirtual;
|
|
819
|
-
this.scroller.table = this.table.nativeElement;
|
|
820
|
-
this.scroller.lockedTable = this.lockedTable?.nativeElement || null;
|
|
821
|
-
this.scroller.tableBody = this.table.nativeElement.tBodies[0];
|
|
822
|
-
this.scroller.container = this.container.nativeElement;
|
|
823
|
-
this.scroller.scrollHeightContainer = this.container.nativeElement.querySelector('.k-height-container');
|
|
824
|
-
this.scroller.total = this.isVirtual && !this.ctx.grid?.pageable ? this.total : this.allItems.length;
|
|
825
|
-
}
|
|
826
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListComponent, deps: [{ token: SCROLLER_FACTORY_TOKEN }, { token: i1.DetailsService }, { token: i2.ChangeNotificationService }, { token: i3.SuspendService }, { token: i4.GroupsService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i5.ScrollSyncService }, { token: i6.ResizeService }, { token: i7.EditService }, { token: i8.BrowserSupportService }, { token: i9.NavigationService }, { token: i10.ScrollRequestService }, { token: i11.ContextService }, { token: i12.ColumnResizingService }, { token: i0.ChangeDetectorRef }, { token: i13.PDFService }, { token: i14.ColumnInfoService }, { token: i15.DataMappingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
827
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ListComponent, isStandalone: true, selector: "kendo-grid-list", inputs: { data: "data", groups: "groups", total: "total", rowHeight: "rowHeight", detailRowHeight: "detailRowHeight", take: "take", skip: "skip", columns: "columns", detailTemplate: "detailTemplate", noRecordsTemplate: "noRecordsTemplate", selectable: "selectable", groupable: "groupable", filterable: "filterable", rowClass: "rowClass", rowSticky: "rowSticky", loading: "loading", trackBy: "trackBy", virtualColumns: "virtualColumns", isVirtual: "isVirtual", cellLoadingTemplate: "cellLoadingTemplate", loadingTemplate: "loadingTemplate", sort: "sort", size: "size" }, outputs: { contentScroll: "contentScroll", pageChange: "pageChange", scrollBottom: "scrollBottom" }, host: { properties: { "class.k-grid-container": "this.hostClass", "attr.role": "this.hostRole" } }, providers: [
|
|
828
|
-
{
|
|
829
|
-
provide: SCROLLER_FACTORY_TOKEN,
|
|
830
|
-
useValue: DEFAULT_SCROLLER_FACTORY
|
|
831
|
-
}
|
|
832
|
-
], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "lockedContainer", first: true, predicate: ["lockedContainer"], descendants: true }, { propertyName: "lockedTable", first: true, predicate: ["lockedTable"], descendants: true }, { propertyName: "table", first: true, predicate: ["table"], descendants: true, static: true }, { propertyName: "resizeSensors", predicate: ResizeSensorComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
833
|
-
@if (isLocked && !isStacked) {
|
|
834
|
-
<div #lockedContainer class="k-grid-content-locked" role="presentation"
|
|
835
|
-
[style.width.px]="lockedWidth" tabindex="-1"
|
|
836
|
-
[kendoEventsOutsideAngular]="{
|
|
837
|
-
keydown: lockedKeydown,
|
|
838
|
-
scroll: lockedScroll,
|
|
839
|
-
mousewheel: lockedMousewheel,
|
|
840
|
-
DOMMouseScroll: lockedMousewheel
|
|
841
|
-
}"
|
|
842
|
-
[scope]="this"
|
|
843
|
-
>
|
|
844
|
-
<div role="presentation">
|
|
845
|
-
<table
|
|
846
|
-
kendoGridResizableTable
|
|
847
|
-
[locked]="true"
|
|
848
|
-
#lockedTable
|
|
849
|
-
class="k-grid-table"
|
|
850
|
-
role="presentation"
|
|
851
|
-
kendoGridTable
|
|
852
|
-
[size]="size"
|
|
853
|
-
[style.width.px]="lockedWidth">
|
|
854
|
-
<colgroup kendoGridColGroup
|
|
855
|
-
[groups]="groups"
|
|
856
|
-
[columns]="$any(lockedLeafColumns)"
|
|
857
|
-
[detailTemplate]="detailTemplate"
|
|
858
|
-
[sort]="sort">
|
|
859
|
-
</colgroup>
|
|
860
|
-
<tbody kendoGridTableBody
|
|
861
|
-
role="presentation"
|
|
862
|
-
[groups]="groups"
|
|
863
|
-
[isLocked]="true"
|
|
864
|
-
[rowsToRender]="itemsToRender"
|
|
865
|
-
[rowHeight]="rowHeight"
|
|
866
|
-
[detailRowHeight]="detailRowHeight"
|
|
867
|
-
[noRecordsText]="''"
|
|
868
|
-
[columns]="$any(lockedLeafColumns)"
|
|
869
|
-
[totalColumnsCount]="leafColumns.length"
|
|
870
|
-
[totalColumns]="columns"
|
|
871
|
-
[detailTemplate]="detailTemplate"
|
|
872
|
-
[skip]="skip"
|
|
873
|
-
[selectable]="selectable"
|
|
874
|
-
[trackBy]="trackBy"
|
|
875
|
-
[filterable]="filterable"
|
|
876
|
-
[rowClass]="rowClass"
|
|
877
|
-
[isLoading]="loading"
|
|
878
|
-
[isVirtual]="isVirtual"
|
|
879
|
-
[cellLoadingTemplate]="cellLoadingTemplate">
|
|
880
|
-
</tbody>
|
|
881
|
-
</table>
|
|
882
|
-
<kendo-resize-sensor></kendo-resize-sensor>
|
|
883
|
-
</div>
|
|
884
|
-
@if (isVirtual) {
|
|
885
|
-
<div class="k-height-container" role="presentation">
|
|
886
|
-
<div></div>
|
|
887
|
-
</div>
|
|
888
|
-
}
|
|
889
|
-
</div>
|
|
890
|
-
}
|
|
891
|
-
<div
|
|
892
|
-
#container
|
|
893
|
-
class="k-grid-content k-virtual-content"
|
|
894
|
-
[kendoGridResizableContainer]="lockedLeafColumns.length > 0"
|
|
895
|
-
[lockedWidth]="lockedWidth + 1"
|
|
896
|
-
tabindex="-1"
|
|
897
|
-
>
|
|
898
|
-
<div role="presentation">
|
|
899
|
-
<table
|
|
900
|
-
[style.width.px]="nonLockedWidth"
|
|
901
|
-
#table
|
|
902
|
-
kendoGridResizableTable
|
|
903
|
-
[virtualColumns]="virtualColumns"
|
|
904
|
-
class="k-grid-table"
|
|
905
|
-
kendoGridTable
|
|
906
|
-
[size]="size"
|
|
907
|
-
role="presentation">
|
|
908
|
-
<colgroup kendoGridColGroup
|
|
909
|
-
[groups]="isLocked ? [] : groups"
|
|
910
|
-
[columns]="$any(nonLockedColumnsToRender)"
|
|
911
|
-
[detailTemplate]="detailTemplate"
|
|
912
|
-
[sort]="sort">
|
|
913
|
-
</colgroup>
|
|
914
|
-
<tbody kendoGridTableBody
|
|
915
|
-
role="rowgroup"
|
|
916
|
-
[skipGroupDecoration]="isLocked"
|
|
917
|
-
[rowsToRender]="itemsToRender"
|
|
918
|
-
[groups]="groups"
|
|
919
|
-
[columns]="$any(nonLockedColumnsToRender)"
|
|
920
|
-
[allColumns]="$any(nonLockedLeafColumns)"
|
|
921
|
-
[detailTemplate]="detailTemplate"
|
|
922
|
-
[noRecordsTemplate]="noRecordsTemplate"
|
|
923
|
-
[lockedColumnsCount]="lockedLeafColumns.length"
|
|
924
|
-
[totalColumnsCount]="leafColumns.length"
|
|
925
|
-
[totalColumns]="columns"
|
|
926
|
-
[skip]="skip"
|
|
927
|
-
[selectable]="selectable"
|
|
928
|
-
[trackBy]="trackBy"
|
|
929
|
-
[filterable]="filterable"
|
|
930
|
-
[rowClass]="rowClass"
|
|
931
|
-
[rowSticky]="rowSticky"
|
|
932
|
-
[virtualColumns]="virtualColumns"
|
|
933
|
-
[isLoading]="loading"
|
|
934
|
-
[isVirtual]="isVirtual"
|
|
935
|
-
[cellLoadingTemplate]="cellLoadingTemplate"
|
|
936
|
-
[rowHeight]="rowHeight"
|
|
937
|
-
[detailRowHeight]="detailRowHeight">
|
|
938
|
-
</tbody>
|
|
939
|
-
</table>
|
|
940
|
-
@if (isLocked) {
|
|
941
|
-
<kendo-resize-sensor></kendo-resize-sensor>
|
|
942
|
-
}
|
|
943
|
-
</div>
|
|
944
|
-
@if (isLocked || virtualColumns) {
|
|
945
|
-
<kendo-resize-sensor></kendo-resize-sensor>
|
|
946
|
-
}
|
|
947
|
-
@if (isVirtual) {
|
|
948
|
-
<div class="k-height-container" role="presentation">
|
|
949
|
-
<div></div>
|
|
950
|
-
</div>
|
|
951
|
-
}
|
|
952
|
-
@if (virtualColumns && !isStacked) {
|
|
953
|
-
<div class="k-width-container" role="presentation">
|
|
954
|
-
<div [style.width.px]="totalWidth"></div>
|
|
955
|
-
</div>
|
|
956
|
-
}
|
|
957
|
-
</div>
|
|
958
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: TableDirective, selector: "[kendoGridResizableTable]", inputs: ["locked", "virtualColumns"] }, { kind: "directive", type: GridTableDirective, selector: "[kendoGridTable]", inputs: ["size"] }, { kind: "component", type: ColGroupComponent, selector: "[kendoGridColGroup]", inputs: ["columns", "groups", "detailTemplate", "sort"] }, { kind: "component", type: TableBodyComponent, selector: "[kendoGridTableBody]", inputs: ["columns", "allColumns", "groups", "detailTemplate", "noRecordsTemplate", "rowsToRender", "skip", "selectable", "filterable", "noRecordsText", "isLocked", "isLoading", "isVirtual", "cellLoadingTemplate", "skipGroupDecoration", "lockedColumnsCount", "totalColumnsCount", "virtualColumns", "trackBy", "rowSticky", "totalColumns", "rowClass", "rowHeight", "detailRowHeight"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "directive", type: ResizableContainerDirective, selector: "[kendoGridResizableContainer]", inputs: ["lockedWidth", "kendoGridResizableContainer"] }] });
|
|
959
|
-
}
|
|
960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListComponent, decorators: [{
|
|
961
|
-
type: Component,
|
|
962
|
-
args: [{
|
|
963
|
-
providers: [
|
|
964
|
-
{
|
|
965
|
-
provide: SCROLLER_FACTORY_TOKEN,
|
|
966
|
-
useValue: DEFAULT_SCROLLER_FACTORY
|
|
967
|
-
}
|
|
968
|
-
],
|
|
969
|
-
selector: 'kendo-grid-list',
|
|
970
|
-
template: `
|
|
971
|
-
@if (isLocked && !isStacked) {
|
|
972
|
-
<div #lockedContainer class="k-grid-content-locked" role="presentation"
|
|
973
|
-
[style.width.px]="lockedWidth" tabindex="-1"
|
|
974
|
-
[kendoEventsOutsideAngular]="{
|
|
975
|
-
keydown: lockedKeydown,
|
|
976
|
-
scroll: lockedScroll,
|
|
977
|
-
mousewheel: lockedMousewheel,
|
|
978
|
-
DOMMouseScroll: lockedMousewheel
|
|
979
|
-
}"
|
|
980
|
-
[scope]="this"
|
|
981
|
-
>
|
|
982
|
-
<div role="presentation">
|
|
983
|
-
<table
|
|
984
|
-
kendoGridResizableTable
|
|
985
|
-
[locked]="true"
|
|
986
|
-
#lockedTable
|
|
987
|
-
class="k-grid-table"
|
|
988
|
-
role="presentation"
|
|
989
|
-
kendoGridTable
|
|
990
|
-
[size]="size"
|
|
991
|
-
[style.width.px]="lockedWidth">
|
|
992
|
-
<colgroup kendoGridColGroup
|
|
993
|
-
[groups]="groups"
|
|
994
|
-
[columns]="$any(lockedLeafColumns)"
|
|
995
|
-
[detailTemplate]="detailTemplate"
|
|
996
|
-
[sort]="sort">
|
|
997
|
-
</colgroup>
|
|
998
|
-
<tbody kendoGridTableBody
|
|
999
|
-
role="presentation"
|
|
1000
|
-
[groups]="groups"
|
|
1001
|
-
[isLocked]="true"
|
|
1002
|
-
[rowsToRender]="itemsToRender"
|
|
1003
|
-
[rowHeight]="rowHeight"
|
|
1004
|
-
[detailRowHeight]="detailRowHeight"
|
|
1005
|
-
[noRecordsText]="''"
|
|
1006
|
-
[columns]="$any(lockedLeafColumns)"
|
|
1007
|
-
[totalColumnsCount]="leafColumns.length"
|
|
1008
|
-
[totalColumns]="columns"
|
|
1009
|
-
[detailTemplate]="detailTemplate"
|
|
1010
|
-
[skip]="skip"
|
|
1011
|
-
[selectable]="selectable"
|
|
1012
|
-
[trackBy]="trackBy"
|
|
1013
|
-
[filterable]="filterable"
|
|
1014
|
-
[rowClass]="rowClass"
|
|
1015
|
-
[isLoading]="loading"
|
|
1016
|
-
[isVirtual]="isVirtual"
|
|
1017
|
-
[cellLoadingTemplate]="cellLoadingTemplate">
|
|
1018
|
-
</tbody>
|
|
1019
|
-
</table>
|
|
1020
|
-
<kendo-resize-sensor></kendo-resize-sensor>
|
|
1021
|
-
</div>
|
|
1022
|
-
@if (isVirtual) {
|
|
1023
|
-
<div class="k-height-container" role="presentation">
|
|
1024
|
-
<div></div>
|
|
1025
|
-
</div>
|
|
1026
|
-
}
|
|
1027
|
-
</div>
|
|
1028
|
-
}
|
|
1029
|
-
<div
|
|
1030
|
-
#container
|
|
1031
|
-
class="k-grid-content k-virtual-content"
|
|
1032
|
-
[kendoGridResizableContainer]="lockedLeafColumns.length > 0"
|
|
1033
|
-
[lockedWidth]="lockedWidth + 1"
|
|
1034
|
-
tabindex="-1"
|
|
1035
|
-
>
|
|
1036
|
-
<div role="presentation">
|
|
1037
|
-
<table
|
|
1038
|
-
[style.width.px]="nonLockedWidth"
|
|
1039
|
-
#table
|
|
1040
|
-
kendoGridResizableTable
|
|
1041
|
-
[virtualColumns]="virtualColumns"
|
|
1042
|
-
class="k-grid-table"
|
|
1043
|
-
kendoGridTable
|
|
1044
|
-
[size]="size"
|
|
1045
|
-
role="presentation">
|
|
1046
|
-
<colgroup kendoGridColGroup
|
|
1047
|
-
[groups]="isLocked ? [] : groups"
|
|
1048
|
-
[columns]="$any(nonLockedColumnsToRender)"
|
|
1049
|
-
[detailTemplate]="detailTemplate"
|
|
1050
|
-
[sort]="sort">
|
|
1051
|
-
</colgroup>
|
|
1052
|
-
<tbody kendoGridTableBody
|
|
1053
|
-
role="rowgroup"
|
|
1054
|
-
[skipGroupDecoration]="isLocked"
|
|
1055
|
-
[rowsToRender]="itemsToRender"
|
|
1056
|
-
[groups]="groups"
|
|
1057
|
-
[columns]="$any(nonLockedColumnsToRender)"
|
|
1058
|
-
[allColumns]="$any(nonLockedLeafColumns)"
|
|
1059
|
-
[detailTemplate]="detailTemplate"
|
|
1060
|
-
[noRecordsTemplate]="noRecordsTemplate"
|
|
1061
|
-
[lockedColumnsCount]="lockedLeafColumns.length"
|
|
1062
|
-
[totalColumnsCount]="leafColumns.length"
|
|
1063
|
-
[totalColumns]="columns"
|
|
1064
|
-
[skip]="skip"
|
|
1065
|
-
[selectable]="selectable"
|
|
1066
|
-
[trackBy]="trackBy"
|
|
1067
|
-
[filterable]="filterable"
|
|
1068
|
-
[rowClass]="rowClass"
|
|
1069
|
-
[rowSticky]="rowSticky"
|
|
1070
|
-
[virtualColumns]="virtualColumns"
|
|
1071
|
-
[isLoading]="loading"
|
|
1072
|
-
[isVirtual]="isVirtual"
|
|
1073
|
-
[cellLoadingTemplate]="cellLoadingTemplate"
|
|
1074
|
-
[rowHeight]="rowHeight"
|
|
1075
|
-
[detailRowHeight]="detailRowHeight">
|
|
1076
|
-
</tbody>
|
|
1077
|
-
</table>
|
|
1078
|
-
@if (isLocked) {
|
|
1079
|
-
<kendo-resize-sensor></kendo-resize-sensor>
|
|
1080
|
-
}
|
|
1081
|
-
</div>
|
|
1082
|
-
@if (isLocked || virtualColumns) {
|
|
1083
|
-
<kendo-resize-sensor></kendo-resize-sensor>
|
|
1084
|
-
}
|
|
1085
|
-
@if (isVirtual) {
|
|
1086
|
-
<div class="k-height-container" role="presentation">
|
|
1087
|
-
<div></div>
|
|
1088
|
-
</div>
|
|
1089
|
-
}
|
|
1090
|
-
@if (virtualColumns && !isStacked) {
|
|
1091
|
-
<div class="k-width-container" role="presentation">
|
|
1092
|
-
<div [style.width.px]="totalWidth"></div>
|
|
1093
|
-
</div>
|
|
1094
|
-
}
|
|
1095
|
-
</div>
|
|
1096
|
-
`,
|
|
1097
|
-
standalone: true,
|
|
1098
|
-
imports: [EventsOutsideAngularDirective, TableDirective, GridTableDirective, ColGroupComponent, TableBodyComponent, ResizeSensorComponent, ResizableContainerDirective]
|
|
1099
|
-
}]
|
|
1100
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1101
|
-
type: Inject,
|
|
1102
|
-
args: [SCROLLER_FACTORY_TOKEN]
|
|
1103
|
-
}] }, { type: i1.DetailsService }, { type: i2.ChangeNotificationService }, { type: i3.SuspendService }, { type: i4.GroupsService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i5.ScrollSyncService }, { type: i6.ResizeService }, { type: i7.EditService }, { type: i8.BrowserSupportService }, { type: i9.NavigationService }, { type: i10.ScrollRequestService }, { type: i11.ContextService }, { type: i12.ColumnResizingService }, { type: i0.ChangeDetectorRef }, { type: i13.PDFService }, { type: i14.ColumnInfoService }, { type: i15.DataMappingService }], propDecorators: { hostClass: [{
|
|
1104
|
-
type: HostBinding,
|
|
1105
|
-
args: ['class.k-grid-container']
|
|
1106
|
-
}], hostRole: [{
|
|
1107
|
-
type: HostBinding,
|
|
1108
|
-
args: ['attr.role']
|
|
1109
|
-
}], data: [{
|
|
1110
|
-
type: Input
|
|
1111
|
-
}], groups: [{
|
|
1112
|
-
type: Input
|
|
1113
|
-
}], total: [{
|
|
1114
|
-
type: Input
|
|
1115
|
-
}], rowHeight: [{
|
|
1116
|
-
type: Input
|
|
1117
|
-
}], detailRowHeight: [{
|
|
1118
|
-
type: Input
|
|
1119
|
-
}], take: [{
|
|
1120
|
-
type: Input
|
|
1121
|
-
}], skip: [{
|
|
1122
|
-
type: Input
|
|
1123
|
-
}], columns: [{
|
|
1124
|
-
type: Input
|
|
1125
|
-
}], detailTemplate: [{
|
|
1126
|
-
type: Input
|
|
1127
|
-
}], noRecordsTemplate: [{
|
|
1128
|
-
type: Input
|
|
1129
|
-
}], selectable: [{
|
|
1130
|
-
type: Input
|
|
1131
|
-
}], groupable: [{
|
|
1132
|
-
type: Input
|
|
1133
|
-
}], filterable: [{
|
|
1134
|
-
type: Input
|
|
1135
|
-
}], rowClass: [{
|
|
1136
|
-
type: Input
|
|
1137
|
-
}], rowSticky: [{
|
|
1138
|
-
type: Input
|
|
1139
|
-
}], loading: [{
|
|
1140
|
-
type: Input
|
|
1141
|
-
}], trackBy: [{
|
|
1142
|
-
type: Input
|
|
1143
|
-
}], virtualColumns: [{
|
|
1144
|
-
type: Input
|
|
1145
|
-
}], isVirtual: [{
|
|
1146
|
-
type: Input
|
|
1147
|
-
}], cellLoadingTemplate: [{
|
|
1148
|
-
type: Input
|
|
1149
|
-
}], loadingTemplate: [{
|
|
1150
|
-
type: Input
|
|
1151
|
-
}], sort: [{
|
|
1152
|
-
type: Input
|
|
1153
|
-
}], size: [{
|
|
1154
|
-
type: Input
|
|
1155
|
-
}], contentScroll: [{
|
|
1156
|
-
type: Output
|
|
1157
|
-
}], pageChange: [{
|
|
1158
|
-
type: Output
|
|
1159
|
-
}], scrollBottom: [{
|
|
1160
|
-
type: Output
|
|
1161
|
-
}], container: [{
|
|
1162
|
-
type: ViewChild,
|
|
1163
|
-
args: ['container', { static: true }]
|
|
1164
|
-
}], lockedContainer: [{
|
|
1165
|
-
type: ViewChild,
|
|
1166
|
-
args: ['lockedContainer']
|
|
1167
|
-
}], lockedTable: [{
|
|
1168
|
-
type: ViewChild,
|
|
1169
|
-
args: ['lockedTable']
|
|
1170
|
-
}], table: [{
|
|
1171
|
-
type: ViewChild,
|
|
1172
|
-
args: ['table', { static: true }]
|
|
1173
|
-
}], resizeSensors: [{
|
|
1174
|
-
type: ViewChildren,
|
|
1175
|
-
args: [ResizeSensorComponent]
|
|
1176
|
-
}] } });
|