@progress/kendo-angular-grid 17.0.0-develop.9 → 17.0.1-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/README.md +46 -36
- package/aggregates/aggregate-types.d.ts +1 -1
- package/aggregates/status-bar.component.d.ts +1 -1
- package/column-menu/column-chooser-item-checked.directive.d.ts +5 -4
- package/column-menu/column-chooser.component.d.ts +1 -1
- package/column-menu/column-list.component.d.ts +2 -2
- package/column-menu/column-menu-autosize.component.d.ts +1 -1
- package/column-menu/column-menu-chooser.component.d.ts +1 -1
- package/column-menu/column-menu-filter.component.d.ts +1 -1
- package/column-menu/column-menu-item-base.d.ts +1 -1
- package/column-menu/column-menu-item.component.d.ts +1 -1
- package/column-menu/column-menu-item.directive.d.ts +1 -1
- package/column-menu/column-menu-position.component.d.ts +1 -1
- package/column-menu/column-menu.component.d.ts +1 -1
- package/column-resizing/column-handle.directive.d.ts +1 -1
- package/column-resizing/column-resize.interface.d.ts +3 -3
- package/column-resizing/table.directive.d.ts +1 -1
- package/columns/checkbox-column.component.d.ts +1 -1
- package/columns/column-base.d.ts +1 -1
- package/columns/column.component.d.ts +1 -1
- package/columns/reorder-column.component.d.ts +1 -1
- package/columns/sort-settings.d.ts +2 -2
- package/columns/span-column.component.d.ts +1 -1
- package/common/clipboard-types.d.ts +2 -2
- package/common/clipboard.directive.d.ts +1 -1
- package/common/create-form-group.d.ts +1 -1
- package/common/fetch-data-callback.d.ts +1 -1
- package/{pager → common}/pager-settings.d.ts +15 -2
- package/common/remove-confirmation.d.ts +1 -1
- package/common/size-options.d.ts +1 -1
- package/data/data.iterators.d.ts +1 -1
- package/data/grid-item.interface.d.ts +1 -1
- package/databinding.directive.d.ts +1 -1
- package/directives.d.ts +8 -21
- package/dragdrop/context-types.d.ts +1 -1
- package/dragdrop/draggable-column.directive.d.ts +1 -1
- package/dragdrop/drop-target.directive.d.ts +1 -1
- package/editing/add-command-tool.directive.d.ts +39 -0
- package/editing/edit.service.d.ts +3 -3
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/editing-directives/in-cell-editing.directive.d.ts +1 -1
- package/editing-directives/reactive-editing.directive.d.ts +1 -1
- package/editing-directives/template-editing.directive.d.ts +1 -1
- package/{esm2020 → esm2022}/aggregates/selection-aggregate.service.mjs +20 -17
- package/{esm2020 → esm2022}/aggregates/status-bar-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/aggregates/status-bar.component.mjs +10 -8
- package/esm2022/column-menu/column-chooser-item-checked.directive.mjs +45 -0
- package/{esm2020 → esm2022}/column-menu/column-chooser.component.mjs +35 -23
- package/{esm2020 → esm2022}/column-menu/column-list-kb-nav.service.mjs +6 -4
- package/{esm2020 → esm2022}/column-menu/column-list.component.mjs +108 -96
- package/{esm2020 → esm2022}/column-menu/column-locked-change-event.mjs +4 -0
- package/{esm2020 → esm2022}/column-menu/column-menu-autosize-all.component.mjs +6 -5
- package/{esm2020 → esm2022}/column-menu/column-menu-autosize.component.mjs +10 -5
- package/{esm2020 → esm2022}/column-menu/column-menu-chooser.component.mjs +33 -29
- package/{esm2020 → esm2022}/column-menu/column-menu-container.component.mjs +8 -5
- package/{esm2020 → esm2022}/column-menu/column-menu-filter.component.mjs +28 -26
- package/{esm2020 → esm2022}/column-menu/column-menu-item-base.mjs +9 -6
- package/{esm2020 → esm2022}/column-menu/column-menu-item-content-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/column-menu/column-menu-item.component.mjs +73 -42
- package/{esm2020 → esm2022}/column-menu/column-menu-item.directive.mjs +38 -28
- package/{esm2020 → esm2022}/column-menu/column-menu-lock.component.mjs +9 -6
- package/{esm2020 → esm2022}/column-menu/column-menu-position.component.mjs +38 -28
- package/{esm2020 → esm2022}/column-menu/column-menu-sort.component.mjs +9 -6
- package/{esm2020 → esm2022}/column-menu/column-menu-stick.component.mjs +9 -6
- package/{esm2020 → esm2022}/column-menu/column-menu-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/column-menu/column-menu.component.mjs +97 -63
- package/{esm2020 → esm2022}/column-menu/column-menu.service.mjs +34 -10
- package/{esm2020 → esm2022}/column-menu/column-sticky-change-event.mjs +4 -0
- package/{esm2020 → esm2022}/column-menu/column-visibility-change-event.mjs +4 -0
- package/{esm2020 → esm2022}/column-resizing/column-handle.directive.mjs +23 -15
- package/{esm2020 → esm2022}/column-resizing/column-resizing.service.mjs +8 -8
- package/{esm2020 → esm2022}/column-resizing/table.directive.mjs +17 -8
- package/{esm2020 → esm2022}/columns/checkbox-column.component.mjs +24 -16
- package/{esm2020 → esm2022}/columns/column-base.mjs +188 -84
- package/{esm2020 → esm2022}/columns/column-group.component.mjs +29 -20
- package/{esm2020 → esm2022}/columns/column-list.mjs +4 -3
- package/{esm2020 → esm2022}/columns/column.component.mjs +62 -46
- package/{esm2020 → esm2022}/columns/columns-container.mjs +16 -15
- package/{esm2020 → esm2022}/columns/command-column.component.mjs +10 -8
- package/{esm2020 → esm2022}/columns/reorder-column.component.mjs +23 -12
- package/{esm2020 → esm2022}/columns/span-column.component.mjs +49 -29
- package/esm2022/common/clipboard.directive.mjs +190 -0
- package/{esm2020 → esm2022}/common/clipboard.service.mjs +12 -9
- package/{esm2020 → esm2022}/common/column-info.service.mjs +10 -10
- package/esm2022/common/dom-events.service.mjs +26 -0
- package/{esm2020 → esm2022}/common/error-messages.mjs +4 -1
- package/{esm2020 → esm2022}/common/event-emitter.mjs +1 -0
- package/{esm2020 → esm2022}/common/id.service.mjs +4 -3
- package/{esm2020 → esm2022}/common/preventable-event.mjs +1 -3
- package/{esm2020 → esm2022}/common/provider.service.mjs +10 -3
- package/{esm2020 → esm2022}/common/single-popup.service.mjs +21 -10
- package/{esm2020 → esm2022}/common/sort.service.mjs +1 -3
- package/{esm2020 → esm2022}/data/change-notification.service.mjs +6 -4
- package/{esm2020 → esm2022}/data/data.collection.mjs +5 -0
- package/{esm2020 → esm2022}/data/data.iterators.mjs +16 -1
- package/{esm2020 → esm2022}/databinding.directive.mjs +24 -16
- package/{esm2020 → esm2022}/directives.mjs +8 -30
- package/{esm2020 → esm2022}/dragdrop/column-reorder-event.mjs +14 -0
- package/{esm2020 → esm2022}/dragdrop/column-reorder.service.mjs +4 -6
- package/{esm2020 → esm2022}/dragdrop/drag-and-drop.service.mjs +6 -8
- package/{esm2020 → esm2022}/dragdrop/drag-hint.service.mjs +7 -4
- package/{esm2020 → esm2022}/dragdrop/draggable-column.directive.mjs +22 -13
- package/{esm2020 → esm2022}/dragdrop/drop-cue.service.mjs +4 -3
- package/{esm2020 → esm2022}/dragdrop/drop-target.directive.mjs +10 -8
- package/esm2022/editing/add-command-tool.directive.mjs +64 -0
- package/{esm2020 → esm2022}/editing/add-command.directive.mjs +9 -8
- package/{esm2020 → esm2022}/editing/cancel-command.directive.mjs +17 -13
- package/{esm2020 → esm2022}/editing/cell-close-event.mjs +21 -4
- package/{esm2020 → esm2022}/editing/edit-command.directive.mjs +17 -13
- package/{esm2020 → esm2022}/editing/edit-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/editing/edit.service.mjs +13 -8
- package/{esm2020 → esm2022}/editing/local-data-changes.service.mjs +5 -6
- package/{esm2020 → esm2022}/editing/remove-command.directive.mjs +17 -13
- package/{esm2020 → esm2022}/editing/save-command.directive.mjs +17 -13
- package/{esm2020 → esm2022}/editing-directives/editing-directive-base.mjs +17 -9
- package/{esm2020 → esm2022}/editing-directives/in-cell-editing.directive.mjs +10 -3
- package/{esm2020 → esm2022}/editing-directives/local-edit.service.mjs +2 -0
- package/{esm2020 → esm2022}/editing-directives/reactive-editing.directive.mjs +9 -3
- package/{esm2020 → esm2022}/editing-directives/row-editing-directive-base.mjs +4 -3
- package/{esm2020 → esm2022}/editing-directives/template-editing.directive.mjs +11 -3
- package/esm2022/excel/excel-command-tool.directive.mjs +66 -0
- package/{esm2020 → esm2022}/excel/excel-command.directive.mjs +11 -10
- package/{esm2020 → esm2022}/excel/excel-export-event.mjs +1 -0
- package/{esm2020 → esm2022}/excel/excel.component.mjs +66 -12
- package/{esm2020 → esm2022}/excel/excel.module.mjs +9 -7
- package/{esm2020 → esm2022}/excel/excel.service.mjs +5 -7
- package/{esm2020 → esm2022}/filtering/base-filter-cell.component.mjs +22 -11
- package/{esm2020 → esm2022}/filtering/boolean-filter.component.mjs +24 -32
- package/{esm2020 → esm2022}/filtering/cell/autocomplete-filter-cell.component.mjs +18 -15
- package/{esm2020 → esm2022}/filtering/cell/boolean-filter-cell.component.mjs +10 -8
- package/{esm2020 → esm2022}/filtering/cell/date-filter-cell.component.mjs +25 -23
- package/{esm2020 → esm2022}/filtering/cell/filter-cell-host.directive.mjs +3 -3
- package/{esm2020 → esm2022}/filtering/cell/filter-cell-operators.component.mjs +59 -38
- package/{esm2020 → esm2022}/filtering/cell/filter-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/filtering/cell/filter-cell-wrapper.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/cell/filter-cell.component.mjs +9 -9
- package/{esm2020 → esm2022}/filtering/cell/numeric-filter-cell.component.mjs +25 -18
- package/{esm2020 → esm2022}/filtering/cell/string-filter-cell.component.mjs +27 -19
- package/{esm2020 → esm2022}/filtering/date-filter.component.mjs +64 -38
- package/{esm2020 → esm2022}/filtering/filter-host.directive.mjs +8 -3
- package/{esm2020 → esm2022}/filtering/filter-input-wrapper.component.mjs +11 -8
- package/{esm2020 → esm2022}/filtering/filter-input.directive.mjs +20 -13
- package/{esm2020 → esm2022}/filtering/filter-row.component.mjs +17 -15
- package/{esm2020 → esm2022}/filtering/filter.service.mjs +14 -10
- package/{esm2020 → esm2022}/filtering/menu/boolean-filter-menu.component.mjs +33 -23
- package/{esm2020 → esm2022}/filtering/menu/date-filter-menu-input.component.mjs +24 -5
- package/{esm2020 → esm2022}/filtering/menu/date-filter-menu.component.mjs +26 -21
- package/{esm2020 → esm2022}/filtering/menu/filter-menu-container.component.mjs +46 -20
- package/{esm2020 → esm2022}/filtering/menu/filter-menu-dropdownlist.directive.mjs +11 -9
- package/{esm2020 → esm2022}/filtering/menu/filter-menu-host.directive.mjs +5 -3
- package/{esm2020 → esm2022}/filtering/menu/filter-menu-input-wrapper.component.mjs +14 -8
- package/{esm2020 → esm2022}/filtering/menu/filter-menu-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/filtering/menu/filter-menu.component.mjs +27 -6
- package/{esm2020 → esm2022}/filtering/menu/filter-radio-button.directive.mjs +7 -3
- package/{esm2020 → esm2022}/filtering/menu/menu-tabbing.service.mjs +9 -8
- package/{esm2020 → esm2022}/filtering/menu/numeric-filter-menu-input.component.mjs +51 -15
- package/{esm2020 → esm2022}/filtering/menu/numeric-filter-menu.component.mjs +42 -37
- package/{esm2020 → esm2022}/filtering/menu/string-filter-menu-input.component.mjs +25 -16
- package/{esm2020 → esm2022}/filtering/menu/string-filter-menu.component.mjs +36 -21
- package/{esm2020 → esm2022}/filtering/numeric-filter.component.mjs +51 -28
- package/{esm2020 → esm2022}/filtering/operators/after-eq-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/after-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/before-eq-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/before-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/contains-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/ends-with-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/eq-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/filter-operator.base.mjs +15 -10
- package/{esm2020 → esm2022}/filtering/operators/gt-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/gte-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/is-empty-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/is-not-empty-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/is-not-null-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/isnull-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/lt-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/lte-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/neq-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/not-contains-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/starts-with-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/string-filter.component.mjs +20 -15
- package/{esm2020 → esm2022}/grid.component.mjs +648 -396
- package/esm2022/grid.module.mjs +216 -0
- package/{esm2020 → esm2022}/grouping/group-footer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/grouping/group-header-column-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/grouping/group-header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/grouping/group-header.component.mjs +25 -16
- package/{esm2020 → esm2022}/grouping/group-info.service.mjs +1 -3
- package/{esm2020 → esm2022}/grouping/group-panel.component.mjs +71 -53
- package/{esm2020 → esm2022}/grouping/group-scroll-binding.directive.mjs +11 -9
- package/{esm2020 → esm2022}/grouping/groups.service.mjs +6 -7
- package/{esm2020 → esm2022}/index.mjs +6 -24
- package/{esm2020 → esm2022}/layout/browser-support.service.mjs +7 -4
- package/{esm2020 → esm2022}/layout/resizable.directive.mjs +16 -10
- package/{esm2020 → esm2022}/layout/resize.service.mjs +6 -8
- package/{esm2020 → esm2022}/layout/responsive.service.mjs +7 -9
- package/{esm2020 → esm2022}/layout/sizing-options.service.mjs +4 -6
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/localization/messages.mjs +591 -0
- package/{esm2020 → esm2022}/navigation/default-focusable-element.mjs +10 -6
- package/{esm2020 → esm2022}/navigation/focus-group.mjs +10 -9
- package/{esm2020 → esm2022}/navigation/focus-root.mjs +5 -4
- package/{esm2020 → esm2022}/navigation/focusable.directive.mjs +23 -17
- package/{esm2020 → esm2022}/navigation/grid-focusable-element.mjs +1 -0
- package/{esm2020 → esm2022}/navigation/item-map.mjs +2 -4
- package/{esm2020 → esm2022}/navigation/logical-cell.directive.mjs +38 -23
- package/{esm2020 → esm2022}/navigation/logical-row.directive.mjs +18 -12
- package/{esm2020 → esm2022}/navigation/navigation-cursor.mjs +10 -8
- package/{esm2020 → esm2022}/navigation/navigation-metadata.mjs +12 -4
- package/{esm2020 → esm2022}/navigation/navigation-model.mjs +1 -3
- package/{esm2020 → esm2022}/navigation/navigation.service.mjs +49 -29
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/pdf/grid-query.mjs +4 -0
- package/esm2022/pdf/pdf-command-tool.directive.mjs +66 -0
- package/{esm2020 → esm2022}/pdf/pdf-command.directive.mjs +10 -9
- package/{esm2020 → esm2022}/pdf/pdf-margin.component.mjs +3 -3
- package/{esm2020 → esm2022}/pdf/pdf-template.directive.mjs +3 -3
- package/{esm2020 → esm2022}/pdf/pdf.component.mjs +39 -12
- package/{esm2020 → esm2022}/pdf/pdf.module.mjs +5 -4
- package/{esm2020 → esm2022}/pdf/pdf.service.mjs +8 -9
- package/{esm2020 → esm2022}/rendering/cell-loading.template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/cell.component.mjs +64 -75
- package/{esm2020 → esm2022}/rendering/common/col-group.component.mjs +8 -9
- package/{esm2020 → esm2022}/rendering/common/field-accessor.pipe.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/common/loading.component.mjs +10 -8
- package/{esm2020 → esm2022}/rendering/common/spacer.component.mjs +12 -7
- package/{esm2020 → esm2022}/rendering/details/detail-collapse-event.mjs +8 -0
- package/{esm2020 → esm2022}/rendering/details/detail-expand-event.mjs +8 -0
- package/{esm2020 → esm2022}/rendering/details/detail-template.directive.mjs +8 -7
- package/{esm2020 → esm2022}/rendering/details/details.service.mjs +6 -7
- package/{esm2020 → esm2022}/rendering/details-expand.directive.mjs +28 -25
- package/{esm2020 → esm2022}/rendering/footer/footer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/footer/footer.component.mjs +19 -15
- package/{esm2020 → esm2022}/rendering/grid-table.directive.mjs +9 -8
- package/{esm2020 → esm2022}/rendering/groups-expand.directive.mjs +21 -18
- package/{esm2020 → esm2022}/rendering/header/header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/header/header.component.mjs +78 -55
- package/{esm2020 → esm2022}/rendering/list.component.mjs +99 -52
- package/{esm2020 → esm2022}/rendering/loading-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/no-records-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/table-body.component.mjs +60 -29
- package/{esm2020 → esm2022}/rendering/toolbar/toolbar-focusable.directive.mjs +9 -7
- package/{esm2020 → esm2022}/rendering/toolbar/toolbar-navigation.service.mjs +9 -8
- package/{esm2020 → esm2022}/rendering/toolbar/toolbar-template.directive.mjs +8 -7
- package/{esm2020 → esm2022}/rendering/toolbar/toolbar.component.mjs +17 -13
- package/{esm2020 → esm2022}/row-reordering/row-reorder.service.mjs +14 -10
- package/{esm2020 → esm2022}/scrolling/row-height.service.mjs +5 -2
- package/{esm2020 → esm2022}/scrolling/scroll-request.service.mjs +4 -6
- package/{esm2020 → esm2022}/scrolling/scroll-sync.service.mjs +10 -8
- package/{esm2020 → esm2022}/scrolling/scroller.service.mjs +12 -1
- package/{esm2020 → esm2022}/scrolling/suspend.service.mjs +4 -6
- package/{esm2020 → esm2022}/selection/cell-selection.service.mjs +31 -20
- package/{esm2020 → esm2022}/selection/marquee.directive.mjs +16 -4
- package/{esm2020 → esm2022}/selection/pair-set.mjs +16 -16
- package/esm2022/selection/selectall-checkbox.directive.mjs +144 -0
- package/{esm2020 → esm2022}/selection/selection-checkbox.directive.mjs +36 -15
- package/{esm2020 → esm2022}/selection/selection-default.mjs +46 -25
- package/{esm2020 → esm2022}/selection/selection.directive.mjs +4 -3
- package/{esm2020 → esm2022}/selection/selection.service.mjs +31 -18
- package/excel/excel-command-tool.directive.d.ts +41 -0
- package/excel/excel-command.directive.d.ts +1 -1
- package/excel/excel.component.d.ts +1 -1
- package/excel/excel.module.d.ts +3 -2
- package/{fesm2020 → fesm2022}/progress-kendo-angular-grid.mjs +5338 -5029
- package/filtering/base-filter-cell.component.d.ts +5 -1
- package/filtering/boolean-filter.component.d.ts +2 -17
- package/filtering/cell/autocomplete-filter-cell.component.d.ts +2 -7
- package/filtering/cell/date-filter-cell.component.d.ts +1 -1
- package/filtering/cell/filter-cell-operators.component.d.ts +1 -1
- package/filtering/cell/filter-cell-wrapper.component.d.ts +1 -1
- package/filtering/cell/filter-cell.component.d.ts +1 -1
- package/filtering/cell/numeric-filter-cell.component.d.ts +1 -1
- package/filtering/cell/string-filter-cell.component.d.ts +1 -1
- package/filtering/date-filter.component.d.ts +2 -11
- package/filtering/filter-host.directive.d.ts +2 -2
- package/filtering/filter-input-wrapper.component.d.ts +1 -2
- package/filtering/filter-input.directive.d.ts +1 -1
- package/filtering/filter-row.component.d.ts +1 -1
- package/filtering/filterable.d.ts +1 -1
- package/filtering/menu/boolean-filter-menu.component.d.ts +3 -2
- package/filtering/menu/date-filter-menu-input.component.d.ts +1 -1
- package/filtering/menu/date-filter-menu.component.d.ts +1 -7
- package/filtering/menu/filter-menu-container.component.d.ts +1 -1
- package/filtering/menu/filter-menu-dropdownlist.directive.d.ts +1 -1
- package/filtering/menu/filter-menu-host.directive.d.ts +1 -1
- package/filtering/menu/filter-menu-input-wrapper.component.d.ts +1 -1
- package/filtering/menu/filter-menu.component.d.ts +1 -1
- package/filtering/menu/filter-radio-button.directive.d.ts +1 -1
- package/filtering/menu/numeric-filter-menu-input.component.d.ts +1 -1
- package/filtering/menu/numeric-filter-menu.component.d.ts +1 -7
- package/filtering/menu/string-filter-menu-input.component.d.ts +1 -1
- package/filtering/menu/string-filter-menu.component.d.ts +1 -7
- package/filtering/numeric-filter.component.d.ts +2 -11
- package/filtering/operators/filter-operator.base.d.ts +1 -1
- package/filtering/string-filter.component.d.ts +2 -11
- package/grid.component.d.ts +5 -6
- package/grid.module.d.ts +94 -101
- package/grouping/group-header.component.d.ts +1 -1
- package/grouping/group-panel.component.d.ts +1 -1
- package/grouping/group-scroll-binding.directive.d.ts +1 -1
- package/index.d.ts +7 -27
- package/layout/resizable.directive.d.ts +1 -1
- package/localization/messages.d.ts +10 -6
- package/navigation/focusable.directive.d.ts +1 -1
- package/navigation/logical-cell.directive.d.ts +1 -1
- package/navigation/logical-row.directive.d.ts +1 -1
- package/navigation/navigable-settings.d.ts +2 -2
- package/navigation/navigation.service.d.ts +1 -1
- package/package.json +29 -33
- package/pdf/pdf-command-tool.directive.d.ts +41 -0
- package/pdf/pdf.component.d.ts +1 -1
- package/pdf/pdf.module.d.ts +2 -1
- package/rendering/cell.component.d.ts +1 -1
- package/rendering/common/cell-context.d.ts +1 -1
- package/rendering/common/col-group.component.d.ts +1 -1
- package/rendering/common/loading.component.d.ts +1 -1
- package/rendering/common/row-class.d.ts +4 -4
- package/rendering/common/spacer.component.d.ts +1 -1
- package/rendering/details/detail-template.directive.d.ts +2 -2
- package/rendering/details-expand.directive.d.ts +1 -1
- package/rendering/footer/footer.component.d.ts +1 -1
- package/rendering/grid-table.directive.d.ts +1 -1
- package/rendering/groups-expand.directive.d.ts +1 -1
- package/rendering/header/header.component.d.ts +1 -1
- package/rendering/list.component.d.ts +1 -1
- package/rendering/table-body.component.d.ts +1 -1
- package/rendering/toolbar/toolbar-position.d.ts +1 -1
- package/rendering/toolbar/toolbar-template.directive.d.ts +1 -1
- package/rendering/toolbar/toolbar.component.d.ts +1 -1
- package/row-reordering/types.d.ts +1 -1
- package/schematics/ngAdd/index.js +5 -5
- package/scrolling/scroll-sync.service.d.ts +1 -1
- package/scrolling/scroller.service.d.ts +1 -1
- package/scrolling/scrollmode.d.ts +1 -1
- package/selection/cell-selection.service.d.ts +1 -1
- package/selection/selectall-checkbox.directive.d.ts +9 -7
- package/selection/selection-checkbox.directive.d.ts +6 -5
- package/selection/selection-default.d.ts +1 -1
- package/selection/selection.service.d.ts +1 -1
- package/selection/types.d.ts +4 -4
- package/utils.d.ts +1 -1
- package/esm2020/column-menu/column-chooser-item-checked.directive.mjs +0 -39
- package/esm2020/common/clipboard.directive.mjs +0 -186
- package/esm2020/common/dom-events.service.mjs +0 -28
- package/esm2020/filtering/cell/row-filtering.module.mjs +0 -112
- package/esm2020/filtering/menu/filter-menu.module.mjs +0 -116
- package/esm2020/filtering/shared-filtering.module.mjs +0 -92
- package/esm2020/grid.module.mjs +0 -219
- package/esm2020/grouping/group.module.mjs +0 -53
- package/esm2020/localization/messages.mjs +0 -187
- package/esm2020/pager/pager-context.service.mjs +0 -41
- package/esm2020/pager/pager-dropdown.directive.mjs +0 -39
- package/esm2020/pager/pager-element.component.mjs +0 -109
- package/esm2020/pager/pager-info.component.mjs +0 -76
- package/esm2020/pager/pager-input.component.mjs +0 -142
- package/esm2020/pager/pager-input.directive.mjs +0 -30
- package/esm2020/pager/pager-next-buttons.component.mjs +0 -114
- package/esm2020/pager/pager-numeric-buttons.component.mjs +0 -257
- package/esm2020/pager/pager-page-sizes.component.mjs +0 -145
- package/esm2020/pager/pager-prev-buttons.component.mjs +0 -116
- package/esm2020/pager/pager-template.directive.mjs +0 -48
- package/esm2020/pager/pager.component.mjs +0 -457
- package/esm2020/pager/pager.module.mjs +0 -51
- package/esm2020/pager/pagesize-item.interface.mjs +0 -5
- package/esm2020/rendering/body.module.mjs +0 -88
- package/esm2020/rendering/footer/footer.module.mjs +0 -41
- package/esm2020/rendering/header/header.module.mjs +0 -152
- package/esm2020/selection/selectall-checkbox.directive.mjs +0 -115
- package/esm2020/shared.module.mjs +0 -41
- package/fesm2015/progress-kendo-angular-grid.mjs +0 -28474
- package/filtering/cell/row-filtering.module.d.ts +0 -59
- package/filtering/menu/filter-menu.module.d.ts +0 -63
- package/filtering/shared-filtering.module.d.ts +0 -49
- package/grouping/group.module.d.ts +0 -38
- package/pager/pager-context.service.d.ts +0 -30
- package/pager/pager-dropdown.directive.d.ts +0 -18
- package/pager/pager-element.component.d.ts +0 -79
- package/pager/pager-info.component.d.ts +0 -43
- package/pager/pager-input.component.d.ts +0 -45
- package/pager/pager-input.directive.d.ts +0 -18
- package/pager/pager-next-buttons.component.d.ts +0 -28
- package/pager/pager-numeric-buttons.component.d.ts +0 -52
- package/pager/pager-page-sizes.component.d.ts +0 -49
- package/pager/pager-prev-buttons.component.d.ts +0 -28
- package/pager/pager-template.directive.d.ts +0 -38
- package/pager/pager.component.d.ts +0 -80
- package/pager/pager.module.d.ts +0 -37
- package/pager/pagesize-item.interface.d.ts +0 -14
- package/rendering/body.module.d.ts +0 -50
- package/rendering/footer/footer.module.d.ts +0 -30
- package/rendering/header/header.module.d.ts +0 -101
- package/shared.module.d.ts +0 -29
- /package/{esm2020 → esm2022}/aggregates/aggregate-types.mjs +0 -0
- /package/{esm2020 → esm2022}/column-menu/column-menu-expandable-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/column-menu/column-menu-settings.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/column-menu/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/column-resizing/column-resize.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/columns/column-common.mjs +0 -0
- /package/{esm2020 → esm2022}/columns/sort-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/common/cell-click-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/common/clipboard-types.mjs +0 -0
- /package/{esm2020 → esm2022}/common/create-form-group.mjs +0 -0
- /package/{esm2020 → esm2022}/common/default-track-by.mjs +0 -0
- /package/{esm2020 → esm2022}/common/fetch-data-callback.mjs +0 -0
- /package/{esm2020 → esm2022}/common/filter-descriptor-differ.mjs +0 -0
- /package/{esm2020 → esm2022}/common/filter-operator.interface.mjs +0 -0
- /package/{esm2020/pager → esm2022/common}/pager-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/common/remove-confirmation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/size-options.mjs +0 -0
- /package/{esm2020 → esm2022}/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/data/change-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/data/data-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/data/grid-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/data/group-footer-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/data/group-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/dragdrop/column-reorder-config.mjs +0 -0
- /package/{esm2020 → esm2022}/dragdrop/common.mjs +0 -0
- /package/{esm2020 → esm2022}/dragdrop/context-types.mjs +0 -0
- /package/{esm2020 → esm2022}/editing/add-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing/cancel-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing/edit-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing/edit-row-options.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing/remove-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing/save-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing-directives/create-form-group-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing-directives/edit-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing-directives/local-row-edit.service.mjs +0 -0
- /package/{esm2020 → esm2022}/editing-directives/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/filtering/cell/filter-cell-component.factory.mjs +0 -0
- /package/{esm2020 → esm2022}/filtering/filter-component.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/filtering/filterable.mjs +0 -0
- /package/{esm2020 → esm2022}/filtering/menu/filter-menu-component.factory.mjs +0 -0
- /package/{esm2020 → esm2022}/grouping/group-key.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/grouping/group-rows-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/grouping/group-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/grouping/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/grouping/virtual-group-result.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/layout/row-sync.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/focusable-element.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/logical-cell.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/logical-row.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/navigable-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/navigation-cell.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/navigation-change.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/navigation-mode.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/navigation-row.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/pdf/export-element.mjs +0 -0
- /package/{esm2020 → esm2022}/pdf/pdf-export-event.mjs +0 -0
- /package/{esm2020 → esm2022}/pdf/pdf-margin.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-grid.mjs +0 -0
- /package/{esm2020 → esm2022}/rendering/common/cell-context.mjs +0 -0
- /package/{esm2020 → esm2022}/rendering/common/dom-queries.mjs +0 -0
- /package/{esm2020 → esm2022}/rendering/common/row-args.mjs +0 -0
- /package/{esm2020 → esm2022}/rendering/common/row-class.mjs +0 -0
- /package/{esm2020 → esm2022}/rendering/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/rendering/toolbar/toolbar-position.mjs +0 -0
- /package/{esm2020 → esm2022}/row-reordering/types.mjs +0 -0
- /package/{esm2020 → esm2022}/row-reordering/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/scrolling/content-scroll-event.mjs +0 -0
- /package/{esm2020 → esm2022}/scrolling/scroll-bottom-event.mjs +0 -0
- /package/{esm2020 → esm2022}/scrolling/scrollmode.mjs +0 -0
- /package/{esm2020 → esm2022}/selection/types.mjs +0 -0
- /package/{esm2020 → esm2022}/utils.mjs +0 -0
|
@@ -12,15 +12,11 @@ import * as i1 from "./../../common/provider.service";
|
|
|
12
12
|
* @hidden
|
|
13
13
|
*/
|
|
14
14
|
export class ToolbarComponent {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
this.hostClasses = true;
|
|
21
|
-
this._size = 'medium';
|
|
22
|
-
this.navigationService = this.ctx[`${this.wrapper.nativeElement.getAttribute('position')}ToolbarNavigation`];
|
|
23
|
-
}
|
|
15
|
+
ctx;
|
|
16
|
+
wrapper;
|
|
17
|
+
context = {};
|
|
18
|
+
role = 'toolbar';
|
|
19
|
+
hostClasses = true;
|
|
24
20
|
get sizeSmallClass() {
|
|
25
21
|
return this.size === 'small';
|
|
26
22
|
}
|
|
@@ -84,18 +80,26 @@ export class ToolbarComponent {
|
|
|
84
80
|
this.navigationService.updateFocus();
|
|
85
81
|
}
|
|
86
82
|
}
|
|
83
|
+
navigable;
|
|
87
84
|
get toolbarTemplateRef() {
|
|
88
85
|
return this.ctx.grid.toolbarTemplate ? this.ctx.grid.toolbarTemplate.templateRef : undefined;
|
|
89
86
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
_size = 'medium';
|
|
88
|
+
navigationService;
|
|
89
|
+
constructor(ctx, wrapper) {
|
|
90
|
+
this.ctx = ctx;
|
|
91
|
+
this.wrapper = wrapper;
|
|
92
|
+
this.navigationService = this.ctx[`${this.wrapper.nativeElement.getAttribute('position')}ToolbarNavigation`];
|
|
93
|
+
}
|
|
94
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarComponent, deps: [{ token: i1.ContextService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
95
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ToolbarComponent, isStandalone: true, selector: "kendo-grid-toolbar", inputs: { position: "position", size: "size", navigable: "navigable" }, host: { listeners: { "click": "clickHandler($event)", "keydown.arrowleft": "arrowLeftListener($event)", "keydown.arrowright": "arrowRightListener($event)", "keydown.home": "homeKeyListener($event)", "keydown.end": "endKeyListener($event)" }, properties: { "attr.role": "this.role", "class.k-toolbar": "this.hostClasses", "class.k-grid-toolbar": "this.hostClasses", "class.k-toolbar-solid": "this.hostClasses", "class.k-toolbar-sm": "this.sizeSmallClass", "class.k-toolbar-md": "this.sizeMediumClass" } }, ngImport: i0, template: `
|
|
93
96
|
<ng-template
|
|
94
97
|
*ngIf="toolbarTemplateRef"
|
|
95
98
|
[ngTemplateOutlet]="toolbarTemplateRef"
|
|
96
99
|
[ngTemplateOutletContext]="context"></ng-template>
|
|
97
100
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
98
|
-
|
|
101
|
+
}
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarComponent, decorators: [{
|
|
99
103
|
type: Component,
|
|
100
104
|
args: [{
|
|
101
105
|
selector: 'kendo-grid-toolbar',
|
|
@@ -10,15 +10,19 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
12
|
export class RowReorderService {
|
|
13
|
+
renderer;
|
|
14
|
+
hintElement = null;
|
|
15
|
+
defaultSelectors = defaultSelectors;
|
|
16
|
+
hintText = '';
|
|
17
|
+
skip;
|
|
18
|
+
dropIndicator;
|
|
19
|
+
lastDropPosition = dropPosition.forbidden;
|
|
20
|
+
dragTarget = null;
|
|
21
|
+
dropTarget = null;
|
|
22
|
+
offsetY;
|
|
23
|
+
rowReorder = new EventEmitter();
|
|
13
24
|
constructor(renderer) {
|
|
14
25
|
this.renderer = renderer;
|
|
15
|
-
this.hintElement = null;
|
|
16
|
-
this.defaultSelectors = defaultSelectors;
|
|
17
|
-
this.hintText = '';
|
|
18
|
-
this.lastDropPosition = dropPosition.forbidden;
|
|
19
|
-
this.dragTarget = null;
|
|
20
|
-
this.dropTarget = null;
|
|
21
|
-
this.rowReorder = new EventEmitter();
|
|
22
26
|
}
|
|
23
27
|
press(ev) {
|
|
24
28
|
this.dragTarget = ev.dragTarget;
|
|
@@ -218,10 +222,10 @@ export class RowReorderService {
|
|
|
218
222
|
this.dropIndicator.style.display = '';
|
|
219
223
|
}
|
|
220
224
|
}
|
|
225
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RowReorderService, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
226
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RowReorderService });
|
|
221
227
|
}
|
|
222
|
-
|
|
223
|
-
RowReorderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RowReorderService });
|
|
224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RowReorderService, decorators: [{
|
|
228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RowReorderService, decorators: [{
|
|
225
229
|
type: Injectable
|
|
226
230
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { rowReorder: [{
|
|
227
231
|
type: Output
|
|
@@ -13,12 +13,15 @@ const update = (arr, idx, value) => ([
|
|
|
13
13
|
* @hidden
|
|
14
14
|
*/
|
|
15
15
|
export class RowHeightService {
|
|
16
|
+
total;
|
|
17
|
+
rowHeight;
|
|
18
|
+
detailRowHeight;
|
|
19
|
+
offsets = [];
|
|
20
|
+
heights = [];
|
|
16
21
|
constructor(total = 0, rowHeight, detailRowHeight) {
|
|
17
22
|
this.total = total;
|
|
18
23
|
this.rowHeight = rowHeight;
|
|
19
24
|
this.detailRowHeight = detailRowHeight;
|
|
20
|
-
this.offsets = [];
|
|
21
|
-
this.heights = [];
|
|
22
25
|
let agg = 0;
|
|
23
26
|
for (let idx = 0; idx < total; idx++) {
|
|
24
27
|
this.offsets.push(agg);
|
|
@@ -9,18 +9,16 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export class ScrollRequestService {
|
|
12
|
-
|
|
13
|
-
this.requests = new Subject();
|
|
14
|
-
}
|
|
12
|
+
requests = new Subject();
|
|
15
13
|
scrollTo(request, adjustIndex = true) {
|
|
16
14
|
this.requests.next({ request, adjustIndex });
|
|
17
15
|
}
|
|
18
16
|
scrollToItem(request) {
|
|
19
17
|
this.requests.next({ request });
|
|
20
18
|
}
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollRequestService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollRequestService });
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
ScrollRequestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScrollRequestService });
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScrollRequestService, decorators: [{
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollRequestService, decorators: [{
|
|
25
23
|
type: Injectable
|
|
26
24
|
}] });
|
|
@@ -10,13 +10,15 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
12
|
export class ScrollSyncService {
|
|
13
|
+
ngZone;
|
|
14
|
+
changes = new Subject();
|
|
15
|
+
elements = [];
|
|
16
|
+
source;
|
|
17
|
+
subscriptions = new Subscription();
|
|
18
|
+
headerSubscription = new Subscription();
|
|
19
|
+
bodySubscription = new Subscription();
|
|
13
20
|
constructor(ngZone) {
|
|
14
21
|
this.ngZone = ngZone;
|
|
15
|
-
this.changes = new Subject();
|
|
16
|
-
this.elements = [];
|
|
17
|
-
this.subscriptions = new Subscription();
|
|
18
|
-
this.headerSubscription = new Subscription();
|
|
19
|
-
this.bodySubscription = new Subscription();
|
|
20
22
|
this.subscriptions.add(this.changes.subscribe(args => this.scrollLeft(args)));
|
|
21
23
|
}
|
|
22
24
|
registerEmitter(el, sourceType) {
|
|
@@ -70,9 +72,9 @@ export class ScrollSyncService {
|
|
|
70
72
|
this.elements.splice(index, 1);
|
|
71
73
|
}
|
|
72
74
|
}
|
|
75
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollSyncService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
76
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollSyncService });
|
|
73
77
|
}
|
|
74
|
-
|
|
75
|
-
ScrollSyncService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScrollSyncService });
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScrollSyncService, decorators: [{
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ScrollSyncService, decorators: [{
|
|
77
79
|
type: Injectable
|
|
78
80
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
@@ -8,6 +8,7 @@ import { Observable, BehaviorSubject } from 'rxjs';
|
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
export class ScrollAction {
|
|
11
|
+
offset;
|
|
11
12
|
constructor(offset) {
|
|
12
13
|
this.offset = offset;
|
|
13
14
|
}
|
|
@@ -16,6 +17,8 @@ export class ScrollAction {
|
|
|
16
17
|
* @hidden
|
|
17
18
|
*/
|
|
18
19
|
export class PageAction {
|
|
20
|
+
skip;
|
|
21
|
+
take;
|
|
19
22
|
constructor(skip, take) {
|
|
20
23
|
this.skip = skip;
|
|
21
24
|
this.take = take;
|
|
@@ -31,9 +34,17 @@ const SCROLL_BOTTOM_THRESHOLD = 2;
|
|
|
31
34
|
* @hidden
|
|
32
35
|
*/
|
|
33
36
|
export class ScrollerService {
|
|
37
|
+
scrollObservable;
|
|
38
|
+
firstLoaded = 0;
|
|
39
|
+
lastLoaded;
|
|
40
|
+
lastScrollTop;
|
|
41
|
+
take;
|
|
42
|
+
total;
|
|
43
|
+
rowHeightService;
|
|
44
|
+
scrollSubscription;
|
|
45
|
+
subscription;
|
|
34
46
|
constructor(scrollObservable) {
|
|
35
47
|
this.scrollObservable = scrollObservable;
|
|
36
|
-
this.firstLoaded = 0;
|
|
37
48
|
}
|
|
38
49
|
create(rowHeightService, skip, take, total) {
|
|
39
50
|
this.rowHeightService = rowHeightService;
|
|
@@ -8,12 +8,10 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
export class SuspendService {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
11
|
+
scroll = false;
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuspendService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuspendService });
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
SuspendService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SuspendService });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SuspendService, decorators: [{
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuspendService, decorators: [{
|
|
18
16
|
type: Injectable
|
|
19
17
|
}] });
|
|
@@ -18,23 +18,17 @@ import * as i4 from "../navigation/navigation.service";
|
|
|
18
18
|
* @hidden
|
|
19
19
|
*/
|
|
20
20
|
export class CellSelectionService {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
this.dragSelectDeselect = false;
|
|
33
|
-
this.lastSelectionItem = { itemKey: 0, columnKey: 0 };
|
|
34
|
-
this.lastSelectionItemRowIndex = 0;
|
|
35
|
-
this.lastSelectionItemColIndex = 0;
|
|
36
|
-
this.addSubscriptions();
|
|
37
|
-
}
|
|
21
|
+
domEvents;
|
|
22
|
+
aggregateService;
|
|
23
|
+
localDataChangesService;
|
|
24
|
+
navigationService;
|
|
25
|
+
changes = new EventEmitter();
|
|
26
|
+
mouseUpEvent = new EventEmitter();
|
|
27
|
+
currentSelection = [];
|
|
28
|
+
settings;
|
|
29
|
+
active = false;
|
|
30
|
+
aggregates;
|
|
31
|
+
nonSelectableRows = new Map();
|
|
38
32
|
get enableMarquee() {
|
|
39
33
|
const checkboxOnly = this.settings && typeof this.settings === 'object' && this.settings.checkboxOnly;
|
|
40
34
|
if (!this.settings || checkboxOnly) {
|
|
@@ -52,6 +46,23 @@ export class CellSelectionService {
|
|
|
52
46
|
get hasNonSelectable() {
|
|
53
47
|
return this.nonSelectableRows.size > 0;
|
|
54
48
|
}
|
|
49
|
+
mouseDownEventArgs;
|
|
50
|
+
mouseUpEventArgs;
|
|
51
|
+
dragging = false;
|
|
52
|
+
dragSelectDeselect = false;
|
|
53
|
+
lastSelectionItem = { itemKey: 0, columnKey: 0 };
|
|
54
|
+
lastSelectionItemRowIndex = 0;
|
|
55
|
+
lastSelectionItemColIndex = 0;
|
|
56
|
+
cellClickSubscription;
|
|
57
|
+
dataChangedSubscription;
|
|
58
|
+
mousedownSubscription;
|
|
59
|
+
constructor(domEvents, aggregateService, localDataChangesService, navigationService) {
|
|
60
|
+
this.domEvents = domEvents;
|
|
61
|
+
this.aggregateService = aggregateService;
|
|
62
|
+
this.localDataChangesService = localDataChangesService;
|
|
63
|
+
this.navigationService = navigationService;
|
|
64
|
+
this.addSubscriptions();
|
|
65
|
+
}
|
|
55
66
|
init(settings) {
|
|
56
67
|
this.settings = settings;
|
|
57
68
|
this.currentSelection = [];
|
|
@@ -319,9 +330,9 @@ export class CellSelectionService {
|
|
|
319
330
|
this.dataChangedSubscription = null;
|
|
320
331
|
}
|
|
321
332
|
}
|
|
333
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellSelectionService, deps: [{ token: i1.DomEventsService }, { token: i2.CellSelectionAggregateService }, { token: i3.LocalDataChangesService }, { token: i4.NavigationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
334
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellSelectionService });
|
|
322
335
|
}
|
|
323
|
-
|
|
324
|
-
CellSelectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CellSelectionService });
|
|
325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CellSelectionService, decorators: [{
|
|
336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellSelectionService, decorators: [{
|
|
326
337
|
type: Injectable
|
|
327
338
|
}], ctorParameters: function () { return [{ type: i1.DomEventsService }, { type: i2.CellSelectionAggregateService }, { type: i3.LocalDataChangesService }, { type: i4.NavigationService }]; } });
|
|
@@ -37,6 +37,19 @@ const offsets = {
|
|
|
37
37
|
* @hidden
|
|
38
38
|
*/
|
|
39
39
|
export class GridMarqueeDirective {
|
|
40
|
+
draggable;
|
|
41
|
+
selection;
|
|
42
|
+
cellSelection;
|
|
43
|
+
domEvents;
|
|
44
|
+
host;
|
|
45
|
+
renderer;
|
|
46
|
+
// possibly add snap
|
|
47
|
+
pressArgs;
|
|
48
|
+
marqueeElement;
|
|
49
|
+
pressTarget;
|
|
50
|
+
subscriptions;
|
|
51
|
+
selectionStarted = false;
|
|
52
|
+
dragEndSubscription;
|
|
40
53
|
constructor(draggable, selection, cellSelection, domEvents, host, renderer) {
|
|
41
54
|
this.draggable = draggable;
|
|
42
55
|
this.selection = selection;
|
|
@@ -44,7 +57,6 @@ export class GridMarqueeDirective {
|
|
|
44
57
|
this.domEvents = domEvents;
|
|
45
58
|
this.host = host;
|
|
46
59
|
this.renderer = renderer;
|
|
47
|
-
this.selectionStarted = false;
|
|
48
60
|
}
|
|
49
61
|
ngOnInit() {
|
|
50
62
|
this.subscriptions = (this.draggable.kendoPress.subscribe(this.start.bind(this)));
|
|
@@ -159,10 +171,10 @@ export class GridMarqueeDirective {
|
|
|
159
171
|
}
|
|
160
172
|
return null;
|
|
161
173
|
}
|
|
174
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridMarqueeDirective, deps: [{ token: i1.DraggableDirective }, { token: i2.SelectionService }, { token: i3.CellSelectionService }, { token: i4.DomEventsService }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
175
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GridMarqueeDirective, isStandalone: true, selector: "[kendoGridSelectionMarquee]", ngImport: i0 });
|
|
162
176
|
}
|
|
163
|
-
|
|
164
|
-
GridMarqueeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: GridMarqueeDirective, isStandalone: true, selector: "[kendoGridSelectionMarquee]", ngImport: i0 });
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridMarqueeDirective, decorators: [{
|
|
177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridMarqueeDirective, decorators: [{
|
|
166
178
|
type: Directive,
|
|
167
179
|
args: [{
|
|
168
180
|
selector: '[kendoGridSelectionMarquee]',
|
|
@@ -10,28 +10,28 @@
|
|
|
10
10
|
* Supports both primitive keys and object keys (compared by reference).
|
|
11
11
|
*/
|
|
12
12
|
export class PairSet {
|
|
13
|
-
constructor(items, keyXField, keyYField) {
|
|
14
|
-
/**
|
|
15
|
-
* Holds a set of Y keys for each defined X key.
|
|
16
|
-
* Each X key creates a map which holds a set of Y keys.
|
|
17
|
-
*
|
|
18
|
-
* Map { 1 => Set { 1, 2, 3 } } // pairs: [1, 1], [1, 2], [1, 3]
|
|
19
|
-
*/
|
|
20
|
-
this.keysX = new Map();
|
|
21
|
-
/**
|
|
22
|
-
* Count the each added or deleted key manually to avoid iterating over all items when calling `this.size`.
|
|
23
|
-
*/
|
|
24
|
-
this.totalKeysCount = 0;
|
|
25
|
-
if (items && keyXField && keyYField) {
|
|
26
|
-
items.forEach(item => this.add(item[keyXField], item[keyYField]));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
13
|
/**
|
|
30
14
|
* Gets the total number of X/Y key pairs.
|
|
31
15
|
*/
|
|
32
16
|
get size() {
|
|
33
17
|
return this.totalKeysCount;
|
|
34
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Holds a set of Y keys for each defined X key.
|
|
21
|
+
* Each X key creates a map which holds a set of Y keys.
|
|
22
|
+
*
|
|
23
|
+
* Map { 1 => Set { 1, 2, 3 } } // pairs: [1, 1], [1, 2], [1, 3]
|
|
24
|
+
*/
|
|
25
|
+
keysX = new Map();
|
|
26
|
+
/**
|
|
27
|
+
* Count the each added or deleted key manually to avoid iterating over all items when calling `this.size`.
|
|
28
|
+
*/
|
|
29
|
+
totalKeysCount = 0;
|
|
30
|
+
constructor(items, keyXField, keyYField) {
|
|
31
|
+
if (items && keyXField && keyYField) {
|
|
32
|
+
items.forEach(item => this.add(item[keyXField], item[keyYField]));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
35
|
/**
|
|
36
36
|
* Adds a couple of items identified as a combination.
|
|
37
37
|
*/
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, Input, Output, EventEmitter, NgZone, Host, Optional, Renderer2, ElementRef } from '@angular/core';
|
|
6
|
+
import { SelectionService } from './selection.service';
|
|
7
|
+
import { isPresent } from '../utils';
|
|
8
|
+
import { hasObservers } from '@progress/kendo-angular-common';
|
|
9
|
+
import { CellSelectionService } from './cell-selection.service';
|
|
10
|
+
import { CheckBoxComponent } from '@progress/kendo-angular-inputs';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
import * as i1 from "./selection.service";
|
|
13
|
+
import * as i2 from "./cell-selection.service";
|
|
14
|
+
import * as i3 from "@progress/kendo-angular-inputs";
|
|
15
|
+
/**
|
|
16
|
+
* Represents the select-all checkbox feature of the Grid ([see example](slug:grid_selection_persistence#toc-selecting-all-items)).
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```html
|
|
20
|
+
* <input
|
|
21
|
+
* type="checkbox"
|
|
22
|
+
* kendoCheckBox
|
|
23
|
+
* kendoGridSelectAllCheckbox
|
|
24
|
+
* [state]="selectAllState"
|
|
25
|
+
* (selectAllChange)="onSelectAllChange($event)"
|
|
26
|
+
* />
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export class SelectAllCheckboxDirective {
|
|
30
|
+
selectionService;
|
|
31
|
+
cellSelectionService;
|
|
32
|
+
ngZone;
|
|
33
|
+
element;
|
|
34
|
+
renderer;
|
|
35
|
+
checkbox;
|
|
36
|
+
/**
|
|
37
|
+
* Explicitly overrides the state of the select-all checkbox.
|
|
38
|
+
*/
|
|
39
|
+
state;
|
|
40
|
+
/**
|
|
41
|
+
* Fires when the user clicks the `kendoGridSelectAllCheckbox` select-all checkbox
|
|
42
|
+
* ([see example](slug:grid_row_selection#toc-select-all-checkbox)).
|
|
43
|
+
*/
|
|
44
|
+
selectAllChange = new EventEmitter();
|
|
45
|
+
destroyClick;
|
|
46
|
+
checkboxChange;
|
|
47
|
+
stateSet = false;
|
|
48
|
+
ngAfterContentChecked() {
|
|
49
|
+
this.setState();
|
|
50
|
+
}
|
|
51
|
+
ngOnChanges() {
|
|
52
|
+
this.stateSet = true;
|
|
53
|
+
}
|
|
54
|
+
constructor(selectionService, cellSelectionService, ngZone, element, renderer, checkbox) {
|
|
55
|
+
this.selectionService = selectionService;
|
|
56
|
+
this.cellSelectionService = cellSelectionService;
|
|
57
|
+
this.ngZone = ngZone;
|
|
58
|
+
this.element = element;
|
|
59
|
+
this.renderer = renderer;
|
|
60
|
+
this.checkbox = checkbox;
|
|
61
|
+
this.ngZone.runOutsideAngular(() => {
|
|
62
|
+
if (this.checkbox) {
|
|
63
|
+
this.checkboxChange = this.checkbox.checkedStateChange.subscribe(this.onClick.bind(this));
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
this.destroyClick = this.renderer.listen(this.element.nativeElement, 'click', this.onClick.bind(this));
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
ngOnDestroy() {
|
|
71
|
+
if (this.checkboxChange) {
|
|
72
|
+
this.checkboxChange.unsubscribe();
|
|
73
|
+
}
|
|
74
|
+
if (this.destroyClick) {
|
|
75
|
+
this.destroyClick();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @hidden
|
|
80
|
+
*/
|
|
81
|
+
onClick() {
|
|
82
|
+
const isIndeterminateState = this.checkbox?.checkedState === 'indeterminate' || this.element.nativeElement.indeterminate;
|
|
83
|
+
const isCheckedState = this.checkbox?.checkedState === true || this.element.nativeElement.checked;
|
|
84
|
+
const checkboxState = isCheckedState ? 'checked' : isIndeterminateState ? 'indeterminate' : 'unchecked';
|
|
85
|
+
const isChecked = this.selectionService.hasNonSelectable ? !this.selectionService.selectAllChecked : isCheckedState;
|
|
86
|
+
const options = this.selectionService.options;
|
|
87
|
+
const enabledAndMultiple = options.enabled && options.mode === 'multiple' && !this.cellSelectionService.active;
|
|
88
|
+
const shouldEmitSelectAll = hasObservers(this.selectAllChange);
|
|
89
|
+
if (enabledAndMultiple || shouldEmitSelectAll) {
|
|
90
|
+
this.ngZone.run(() => {
|
|
91
|
+
if (enabledAndMultiple) {
|
|
92
|
+
this.selectionService.updateAll(isChecked);
|
|
93
|
+
}
|
|
94
|
+
if (shouldEmitSelectAll) {
|
|
95
|
+
this.selectAllChange.emit(checkboxState);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @hidden
|
|
102
|
+
*/
|
|
103
|
+
setState() {
|
|
104
|
+
const state = this.stateSet ? this.stateToBool() : this.selectionService.selectAllState;
|
|
105
|
+
if (this.checkbox) {
|
|
106
|
+
this.checkbox.checkedState = isPresent(state) ? state : 'indeterminate';
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
const elem = this.element.nativeElement;
|
|
110
|
+
this.renderer.setProperty(elem, 'indeterminate', !isPresent(state));
|
|
111
|
+
this.renderer.setProperty(elem, 'checked', isPresent(state) ? state : false);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* @hidden
|
|
116
|
+
*/
|
|
117
|
+
stateToBool() {
|
|
118
|
+
switch (this.state) {
|
|
119
|
+
case 'checked':
|
|
120
|
+
return true;
|
|
121
|
+
case 'unchecked':
|
|
122
|
+
return false;
|
|
123
|
+
default:
|
|
124
|
+
return undefined;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectAllCheckboxDirective, deps: [{ token: i1.SelectionService }, { token: i2.CellSelectionService }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i3.CheckBoxComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
128
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SelectAllCheckboxDirective, isStandalone: true, selector: "[kendoGridSelectAllCheckbox]", inputs: { state: "state" }, outputs: { selectAllChange: "selectAllChange" }, usesOnChanges: true, ngImport: i0 });
|
|
129
|
+
}
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectAllCheckboxDirective, decorators: [{
|
|
131
|
+
type: Directive,
|
|
132
|
+
args: [{
|
|
133
|
+
selector: '[kendoGridSelectAllCheckbox]',
|
|
134
|
+
standalone: true
|
|
135
|
+
}]
|
|
136
|
+
}], ctorParameters: function () { return [{ type: i1.SelectionService }, { type: i2.CellSelectionService }, { type: i0.NgZone }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i3.CheckBoxComponent, decorators: [{
|
|
137
|
+
type: Host
|
|
138
|
+
}, {
|
|
139
|
+
type: Optional
|
|
140
|
+
}] }]; }, propDecorators: { state: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], selectAllChange: [{
|
|
143
|
+
type: Output
|
|
144
|
+
}] } });
|
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive,
|
|
5
|
+
import { Directive, ElementRef, Input, Renderer2, NgZone, Host, Optional } from '@angular/core';
|
|
6
6
|
import { SelectionService } from './selection.service';
|
|
7
7
|
import { Keys } from '@progress/kendo-angular-common';
|
|
8
8
|
import { CellSelectionAggregateService } from '../aggregates/selection-aggregate.service';
|
|
9
9
|
import { CellSelectionService } from './cell-selection.service';
|
|
10
|
+
import { CheckBoxComponent } from '@progress/kendo-angular-inputs';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
import * as i1 from "./selection.service";
|
|
12
13
|
import * as i2 from "./cell-selection.service";
|
|
13
14
|
import * as i3 from "../aggregates/selection-aggregate.service";
|
|
15
|
+
import * as i4 from "@progress/kendo-angular-inputs";
|
|
14
16
|
/**
|
|
15
17
|
* Represents the row-selection checkbox of the Grid. The directive expects the
|
|
16
18
|
* index of the current row as an input parameter. Inside the [`CellTemplateDirective`](slug:api_grid_celltemplatedirective), apply the
|
|
17
|
-
* `kendoGridSelectionCheckbox` to an `<input type="checkbox"/>` element. When the user clicks the checkbox that is associated
|
|
19
|
+
* `kendoGridSelectionCheckbox` to a `<kendo-checkbox></kendo-checkbox>` or an `<input type="checkbox"/>` element. When the user clicks the checkbox that is associated
|
|
18
20
|
* with the directive, a [selectionChange](slug:api_grid_gridcomponent#toc-selectionChange)
|
|
19
21
|
* event is triggered.
|
|
20
22
|
*
|
|
@@ -30,22 +32,35 @@ import * as i3 from "../aggregates/selection-aggregate.service";
|
|
|
30
32
|
* ```
|
|
31
33
|
*/
|
|
32
34
|
export class SelectionCheckboxDirective {
|
|
33
|
-
|
|
35
|
+
selectionService;
|
|
36
|
+
cellSelectionService;
|
|
37
|
+
aggregateService;
|
|
38
|
+
el;
|
|
39
|
+
renderer;
|
|
40
|
+
ngZone;
|
|
41
|
+
checkbox;
|
|
42
|
+
/**
|
|
43
|
+
* The current index of the `dataItem` that will be selected.
|
|
44
|
+
*/
|
|
45
|
+
itemIndex;
|
|
46
|
+
destroyClick;
|
|
47
|
+
destroyKeyDown;
|
|
48
|
+
ngAfterContentChecked() {
|
|
49
|
+
this.setCheckedState();
|
|
50
|
+
}
|
|
51
|
+
constructor(selectionService, cellSelectionService, aggregateService, el, renderer, ngZone, checkbox) {
|
|
34
52
|
this.selectionService = selectionService;
|
|
35
53
|
this.cellSelectionService = cellSelectionService;
|
|
36
54
|
this.aggregateService = aggregateService;
|
|
37
55
|
this.el = el;
|
|
38
56
|
this.renderer = renderer;
|
|
39
57
|
this.ngZone = ngZone;
|
|
40
|
-
this.
|
|
58
|
+
this.checkbox = checkbox;
|
|
41
59
|
this.ngZone.runOutsideAngular(() => {
|
|
42
60
|
this.destroyClick = this.renderer.listen(this.el.nativeElement, 'click', this.onClick.bind(this));
|
|
43
61
|
this.destroyKeyDown = this.renderer.listen(this.el.nativeElement, 'keydown', this.onKeyDown.bind(this));
|
|
44
62
|
});
|
|
45
63
|
}
|
|
46
|
-
ngAfterContentChecked() {
|
|
47
|
-
this.setCheckedState();
|
|
48
|
-
}
|
|
49
64
|
ngOnDestroy() {
|
|
50
65
|
if (this.destroyClick) {
|
|
51
66
|
this.destroyClick();
|
|
@@ -90,21 +105,27 @@ export class SelectionCheckboxDirective {
|
|
|
90
105
|
*/
|
|
91
106
|
setCheckedState() {
|
|
92
107
|
const isSelected = this.selectionService.nonSelectableRows.has(this.itemIndex) ? false : this.selectionService.isSelected(this.itemIndex);
|
|
93
|
-
|
|
108
|
+
if (this.checkbox) {
|
|
109
|
+
this.checkbox.checkedState = isSelected;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
this.renderer.setProperty(this.el.nativeElement, 'checked', isSelected);
|
|
113
|
+
}
|
|
94
114
|
}
|
|
115
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectionCheckboxDirective, deps: [{ token: i1.SelectionService }, { token: i2.CellSelectionService }, { token: i3.CellSelectionAggregateService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i4.CheckBoxComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
116
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SelectionCheckboxDirective, isStandalone: true, selector: "[kendoGridSelectionCheckbox]", inputs: { itemIndex: ["kendoGridSelectionCheckbox", "itemIndex"] }, ngImport: i0 });
|
|
95
117
|
}
|
|
96
|
-
|
|
97
|
-
SelectionCheckboxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SelectionCheckboxDirective, isStandalone: true, selector: "[kendoGridSelectionCheckbox]", inputs: { itemIndex: ["kendoGridSelectionCheckbox", "itemIndex"] }, host: { properties: { "attr.type": "this.type" } }, ngImport: i0 });
|
|
98
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SelectionCheckboxDirective, decorators: [{
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectionCheckboxDirective, decorators: [{
|
|
99
119
|
type: Directive,
|
|
100
120
|
args: [{
|
|
101
121
|
selector: '[kendoGridSelectionCheckbox]',
|
|
102
122
|
standalone: true
|
|
103
123
|
}]
|
|
104
|
-
}], ctorParameters: function () { return [{ type: i1.SelectionService }, { type: i2.CellSelectionService }, { type: i3.CellSelectionAggregateService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }
|
|
124
|
+
}], ctorParameters: function () { return [{ type: i1.SelectionService }, { type: i2.CellSelectionService }, { type: i3.CellSelectionAggregateService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i4.CheckBoxComponent, decorators: [{
|
|
125
|
+
type: Host
|
|
126
|
+
}, {
|
|
127
|
+
type: Optional
|
|
128
|
+
}] }]; }, propDecorators: { itemIndex: [{
|
|
105
129
|
type: Input,
|
|
106
130
|
args: ['kendoGridSelectionCheckbox']
|
|
107
|
-
}], type: [{
|
|
108
|
-
type: HostBinding,
|
|
109
|
-
args: ['attr.type']
|
|
110
131
|
}] } });
|