@progress/kendo-angular-grid 7.0.0-dev.202201261657 → 7.0.0-next.202204010918
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 +1 -1
- package/bundles/kendo-angular-grid.umd.js +5 -0
- package/column-menu/column-chooser.component.d.ts +70 -0
- package/column-menu/column-list.component.d.ts +51 -0
- package/{dist/es2015/column-menu → column-menu}/column-locked-change-event.d.ts +0 -0
- package/column-menu/column-menu-chooser.component.d.ts +83 -0
- package/column-menu/column-menu-container.component.d.ts +20 -0
- package/{dist/es2015/column-menu → column-menu}/column-menu-expandable-item.interface.d.ts +0 -0
- package/column-menu/column-menu-filter.component.d.ts +73 -0
- package/column-menu/column-menu-item-base.d.ts +25 -0
- package/column-menu/column-menu-item-content-template.directive.d.ts +45 -0
- package/column-menu/column-menu-item.component.d.ts +81 -0
- package/column-menu/column-menu-item.directive.d.ts +33 -0
- package/column-menu/column-menu-lock.component.d.ts +57 -0
- package/column-menu/column-menu-position.component.d.ts +91 -0
- package/{dist/es2015/column-menu → column-menu}/column-menu-settings.interface.d.ts +0 -0
- package/column-menu/column-menu-sort.component.d.ts +55 -0
- package/column-menu/column-menu-stick.component.d.ts +57 -0
- package/column-menu/column-menu-template.directive.d.ts +52 -0
- package/column-menu/column-menu.component.d.ts +116 -0
- package/column-menu/column-menu.module.d.ts +30 -0
- package/column-menu/column-menu.service.d.ts +72 -0
- package/{dist/es2015/column-menu → column-menu}/column-sticky-change-event.d.ts +0 -0
- package/{dist/es2015/column-menu → column-menu}/column-visibility-change-event.d.ts +0 -0
- package/{dist/es2015/column-menu → column-menu}/utils.d.ts +0 -0
- package/column-resizing/column-handle.directive.d.ts +43 -0
- package/{dist/es2015/column-resizing → column-resizing}/column-resize.interface.d.ts +0 -0
- package/column-resizing/column-resizing.service.d.ts +34 -0
- package/column-resizing/table.directive.d.ts +33 -0
- package/columns/checkbox-column.component.d.ts +84 -0
- package/columns/column-base.d.ts +622 -0
- package/columns/column-common.d.ts +53 -0
- package/columns/column-group.component.d.ts +103 -0
- package/{dist/es2015/columns → columns}/column-list.d.ts +0 -0
- package/columns/column.component.d.ts +185 -0
- package/{dist/es2015/columns → columns}/columns-container.d.ts +0 -0
- package/columns/command-column.component.d.ts +83 -0
- package/columns/sort-settings.d.ts +71 -0
- package/columns/span-column.component.d.ts +227 -0
- package/common/cell-click-event-args.interface.d.ts +42 -0
- package/common/column-info.service.d.ts +38 -0
- package/common/create-form-group.d.ts +10 -0
- package/{dist/es2015/common → common}/default-track-by.d.ts +0 -0
- package/common/dom-events.service.d.ts +22 -0
- package/{dist/es2015/common → common}/event-emitter.d.ts +0 -0
- package/common/fetch-data-callback.d.ts +12 -0
- package/{dist/es2015/common → common}/filter-descriptor-differ.d.ts +0 -0
- package/common/filter-operator.interface.d.ts +11 -0
- package/common/id.service.d.ts +18 -0
- package/{dist/es2015/common → common}/preventable-event.d.ts +0 -0
- package/common/provider.service.d.ts +14 -0
- package/common/remove-confirmation.d.ts +9 -0
- package/common/single-popup.service.d.ts +53 -0
- package/{dist/es2015/common → common}/sort.service.d.ts +0 -0
- package/{dist/es2015/constants.d.ts → constants.d.ts} +0 -0
- package/{dist/es2015/data → data}/change-event-args.interface.d.ts +0 -0
- package/data/change-notification.service.d.ts +18 -0
- package/{dist/es2015/data → data}/data-item.interface.d.ts +0 -0
- package/data/data.collection.d.ts +47 -0
- package/data/data.iterators.d.ts +85 -0
- package/{dist/es2015/data → data}/grid-item.interface.d.ts +0 -0
- package/{dist/es2015/data → data}/group-footer-item.interface.d.ts +0 -0
- package/{dist/es2015/data → data}/group-item.interface.d.ts +0 -0
- package/databinding.directive.d.ts +83 -0
- package/{dist/es2015/dragdrop → dragdrop}/column-reorder-config.d.ts +0 -0
- package/{dist/es2015/dragdrop → dragdrop}/column-reorder-event.d.ts +0 -0
- package/dragdrop/column-reorder.service.d.ts +15 -0
- package/{dist/es2015/dragdrop → dragdrop}/common.d.ts +0 -0
- package/dragdrop/context-types.d.ts +16 -0
- package/dragdrop/drag-and-drop.module.d.ts +15 -0
- package/dragdrop/drag-and-drop.service.d.ts +23 -0
- package/dragdrop/drag-hint.service.d.ts +26 -0
- package/dragdrop/draggable-column.directive.d.ts +40 -0
- package/dragdrop/drop-cue.service.d.ts +18 -0
- package/dragdrop/drop-target.directive.d.ts +26 -0
- package/editing/add-command.directive.d.ts +39 -0
- package/{dist/es2015/editing → editing}/add-event-args.interface.d.ts +0 -0
- package/editing/cancel-command.directive.d.ts +65 -0
- package/{dist/es2015/editing → editing}/cancel-event-args.interface.d.ts +0 -0
- package/editing/cell-close-event.d.ts +34 -0
- package/editing/edit-command.directive.d.ts +53 -0
- package/editing/edit-event-args.interface.d.ts +26 -0
- package/{dist/es2015/editing → editing}/edit-row-options.interface.d.ts +0 -0
- package/editing/edit-template.directive.d.ts +26 -0
- package/editing/edit.service.d.ts +70 -0
- package/editing/local-data-changes.service.d.ts +15 -0
- package/editing/remove-command.directive.d.ts +52 -0
- package/{dist/es2015/editing → editing}/remove-event-args.interface.d.ts +0 -0
- package/editing/save-command.directive.d.ts +65 -0
- package/{dist/es2015/editing → editing}/save-event-args.interface.d.ts +0 -0
- package/{dist/es2015/editing-directives → editing-directives}/create-form-group-args.interface.d.ts +0 -0
- package/{dist/es2015/editing-directives → editing-directives}/edit-service.interface.d.ts +0 -0
- package/editing-directives/editing-directive-base.d.ts +50 -0
- package/editing-directives/in-cell-editing.directive.d.ts +35 -0
- package/editing-directives/local-edit.service.d.ts +21 -0
- package/{dist/es2015/editing-directives → editing-directives}/local-row-edit.service.d.ts +0 -0
- package/editing-directives/reactive-editing.directive.d.ts +26 -0
- package/editing-directives/row-editing-directive-base.d.ts +25 -0
- package/editing-directives/template-editing.directive.d.ts +30 -0
- package/{dist/es2015/editing-directives → editing-directives}/utils.d.ts +0 -0
- package/esm2015/column-menu/column-chooser.component.js +166 -0
- package/esm2015/column-menu/column-list.component.js +211 -0
- package/{dist/es2015 → esm2015}/column-menu/column-locked-change-event.js +0 -0
- package/esm2015/column-menu/column-menu-chooser.component.js +164 -0
- package/esm2015/column-menu/column-menu-container.component.js +42 -0
- package/esm2015/column-menu/column-menu-expandable-item.interface.js +5 -0
- package/esm2015/column-menu/column-menu-filter.component.js +142 -0
- package/esm2015/column-menu/column-menu-item-base.js +39 -0
- package/esm2015/column-menu/column-menu-item-content-template.directive.js +54 -0
- package/esm2015/column-menu/column-menu-item.component.js +188 -0
- package/esm2015/column-menu/column-menu-item.directive.js +104 -0
- package/esm2015/column-menu/column-menu-lock.component.js +109 -0
- package/esm2015/column-menu/column-menu-position.component.js +180 -0
- package/esm2015/column-menu/column-menu-settings.interface.js +5 -0
- package/esm2015/column-menu/column-menu-sort.component.js +115 -0
- package/esm2015/column-menu/column-menu-stick.component.js +101 -0
- package/esm2015/column-menu/column-menu-template.directive.js +61 -0
- package/esm2015/column-menu/column-menu.component.js +308 -0
- package/esm2015/column-menu/column-menu.module.js +97 -0
- package/esm2015/column-menu/column-menu.service.js +59 -0
- package/{dist/es2015 → esm2015}/column-menu/column-sticky-change-event.js +0 -0
- package/{dist/es2015 → esm2015}/column-menu/column-visibility-change-event.js +0 -0
- package/{dist/es2015 → esm2015}/column-menu/utils.js +0 -0
- package/esm2015/column-resizing/column-handle.directive.js +228 -0
- package/esm2015/column-resizing/column-resize.interface.js +5 -0
- package/esm2015/column-resizing/column-resizing.service.js +140 -0
- package/esm2015/column-resizing/table.directive.js +121 -0
- package/esm2015/columns/checkbox-column.component.js +118 -0
- package/esm2015/columns/column-base.js +296 -0
- package/esm2015/columns/column-common.js +73 -0
- package/esm2015/columns/column-group.component.js +153 -0
- package/esm2015/columns/column-list.js +93 -0
- package/esm2015/columns/column.component.js +224 -0
- package/esm2015/columns/columns-container.js +97 -0
- package/esm2015/columns/command-column.component.js +116 -0
- package/esm2015/columns/sort-settings.js +18 -0
- package/esm2015/columns/span-column.component.js +275 -0
- package/esm2015/common/cell-click-event-args.interface.js +5 -0
- package/esm2015/common/column-info.service.js +91 -0
- package/esm2015/common/create-form-group.js +5 -0
- package/{dist/es → esm2015}/common/default-track-by.js +0 -0
- package/esm2015/common/dom-events.service.js +27 -0
- package/{dist/es2015 → esm2015}/common/event-emitter.js +0 -0
- package/esm2015/common/fetch-data-callback.js +5 -0
- package/esm2015/common/filter-descriptor-differ.js +69 -0
- package/esm2015/common/filter-operator.interface.js +5 -0
- package/esm2015/common/id.service.js +33 -0
- package/{dist/es2015 → esm2015}/common/preventable-event.js +0 -0
- package/esm2015/common/provider.service.js +16 -0
- package/esm2015/common/remove-confirmation.js +5 -0
- package/esm2015/common/single-popup.service.js +106 -0
- package/{dist/es2015 → esm2015}/common/sort.service.js +0 -0
- package/{dist/es2015 → esm2015}/constants.js +0 -0
- package/esm2015/data/change-event-args.interface.js +5 -0
- package/esm2015/data/change-notification.service.js +28 -0
- package/esm2015/data/data-item.interface.js +5 -0
- package/{dist/es2015 → esm2015}/data/data.collection.js +0 -0
- package/esm2015/data/data.iterators.js +213 -0
- package/esm2015/data/grid-item.interface.js +5 -0
- package/esm2015/data/group-footer-item.interface.js +5 -0
- package/esm2015/data/group-item.interface.js +5 -0
- package/esm2015/databinding.directive.js +164 -0
- package/esm2015/dragdrop/column-reorder-config.js +5 -0
- package/{dist/es2015 → esm2015}/dragdrop/column-reorder-event.js +0 -0
- package/esm2015/dragdrop/column-reorder.service.js +22 -0
- package/esm2015/dragdrop/common.js +65 -0
- package/esm2015/dragdrop/context-types.js +5 -0
- package/esm2015/dragdrop/drag-and-drop.module.js +29 -0
- package/esm2015/dragdrop/drag-and-drop.service.js +62 -0
- package/esm2015/dragdrop/drag-hint.service.js +81 -0
- package/esm2015/dragdrop/draggable-column.directive.js +130 -0
- package/esm2015/dragdrop/drop-cue.service.js +41 -0
- package/esm2015/dragdrop/drop-target.directive.js +67 -0
- package/esm2015/editing/add-command.directive.js +58 -0
- package/esm2015/editing/add-event-args.interface.js +5 -0
- package/esm2015/editing/cancel-command.directive.js +95 -0
- package/esm2015/editing/cancel-event-args.interface.js +5 -0
- package/{dist/es2015 → esm2015}/editing/cell-close-event.js +0 -0
- package/esm2015/editing/edit-command.directive.js +81 -0
- package/esm2015/editing/edit-event-args.interface.js +5 -0
- package/esm2015/editing/edit-row-options.interface.js +5 -0
- package/esm2015/editing/edit-template.directive.js +35 -0
- package/esm2015/editing/edit.service.js +177 -0
- package/esm2015/editing/local-data-changes.service.js +19 -0
- package/esm2015/editing/remove-command.directive.js +80 -0
- package/esm2015/editing/remove-event-args.interface.js +5 -0
- package/esm2015/editing/save-command.directive.js +95 -0
- package/esm2015/editing/save-event-args.interface.js +5 -0
- package/esm2015/editing-directives/create-form-group-args.interface.js +5 -0
- package/esm2015/editing-directives/edit-service.interface.js +5 -0
- package/esm2015/editing-directives/editing-directive-base.js +109 -0
- package/esm2015/editing-directives/in-cell-editing.directive.js +79 -0
- package/esm2015/editing-directives/local-edit.service.js +59 -0
- package/{dist/es2015 → esm2015}/editing-directives/local-row-edit.service.js +0 -0
- package/esm2015/editing-directives/reactive-editing.directive.js +45 -0
- package/esm2015/editing-directives/row-editing-directive-base.js +52 -0
- package/esm2015/editing-directives/template-editing.directive.js +55 -0
- package/{dist/es2015 → esm2015}/editing-directives/utils.js +0 -0
- package/esm2015/excel/excel-command.directive.js +62 -0
- package/{dist/es2015 → esm2015}/excel/excel-export-event.js +0 -0
- package/esm2015/excel/excel.component.js +156 -0
- package/esm2015/excel/excel.module.js +53 -0
- package/esm2015/excel/excel.service.js +30 -0
- package/esm2015/filtering/base-filter-cell.component.js +163 -0
- package/esm2015/filtering/boolean-filter.component.js +88 -0
- package/esm2015/filtering/cell/autocomplete-filter-cell.component.js +95 -0
- package/esm2015/filtering/cell/boolean-filter-cell.component.js +95 -0
- package/esm2015/filtering/cell/date-filter-cell.component.js +127 -0
- package/{dist/es2015 → esm2015}/filtering/cell/filter-cell-component.factory.js +0 -0
- package/esm2015/filtering/cell/filter-cell-host.directive.js +32 -0
- package/esm2015/filtering/cell/filter-cell-operators.component.js +158 -0
- package/esm2015/filtering/cell/filter-cell-template.directive.js +24 -0
- package/esm2015/filtering/cell/filter-cell-wrapper.component.js +69 -0
- package/esm2015/filtering/cell/filter-cell.component.js +79 -0
- package/esm2015/filtering/cell/numeric-filter-cell.component.js +132 -0
- package/esm2015/filtering/cell/row-filtering.module.js +85 -0
- package/esm2015/filtering/cell/string-filter-cell.component.js +101 -0
- package/esm2015/filtering/date-filter.component.js +141 -0
- package/esm2015/filtering/filter-component.interface.js +5 -0
- package/esm2015/filtering/filter-host.directive.js +54 -0
- package/esm2015/filtering/filter-input-wrapper.component.js +117 -0
- package/esm2015/filtering/filter-input.directive.js +99 -0
- package/esm2015/filtering/filter-row.component.js +103 -0
- package/esm2015/filtering/filter.service.js +39 -0
- package/{dist/es2015 → esm2015}/filtering/filterable.js +0 -0
- package/esm2015/filtering/menu/boolean-filter-menu.component.js +147 -0
- package/esm2015/filtering/menu/date-filter-menu-input.component.js +154 -0
- package/esm2015/filtering/menu/date-filter-menu.component.js +194 -0
- package/{dist/es2015 → esm2015}/filtering/menu/filter-menu-component.factory.js +0 -0
- package/esm2015/filtering/menu/filter-menu-container.component.js +263 -0
- package/esm2015/filtering/menu/filter-menu-dropdownlist.directive.js +38 -0
- package/esm2015/filtering/menu/filter-menu-host.directive.js +41 -0
- package/esm2015/filtering/menu/filter-menu-input-wrapper.component.js +124 -0
- package/esm2015/filtering/menu/filter-menu-template.directive.js +25 -0
- package/esm2015/filtering/menu/filter-menu.component.js +119 -0
- package/esm2015/filtering/menu/filter-menu.module.js +98 -0
- package/esm2015/filtering/menu/filter-radio-button.directive.js +27 -0
- package/esm2015/filtering/menu/menu-tabbing.service.js +20 -0
- package/esm2015/filtering/menu/numeric-filter-menu-input.component.js +140 -0
- package/esm2015/filtering/menu/numeric-filter-menu.component.js +182 -0
- package/esm2015/filtering/menu/string-filter-menu-input.component.js +87 -0
- package/esm2015/filtering/menu/string-filter-menu.component.js +139 -0
- package/esm2015/filtering/numeric-filter.component.js +123 -0
- package/esm2015/filtering/operators/after-eq-filter-operator.component.js +47 -0
- package/esm2015/filtering/operators/after-filter-operator.component.js +47 -0
- package/esm2015/filtering/operators/before-eq-filter-operator.component.js +47 -0
- package/esm2015/filtering/operators/before-filter-operator.component.js +47 -0
- package/esm2015/filtering/operators/contains-filter-operator.component.js +38 -0
- package/esm2015/filtering/operators/ends-with-filter-operator.component.js +38 -0
- package/esm2015/filtering/operators/eq-filter-operator.component.js +38 -0
- package/esm2015/filtering/operators/filter-operator.base.js +90 -0
- package/esm2015/filtering/operators/gt-filter-operator.component.js +38 -0
- package/esm2015/filtering/operators/gte-filter-operator.component.js +38 -0
- package/esm2015/filtering/operators/is-empty-filter-operator.component.js +38 -0
- package/esm2015/filtering/operators/is-not-empty-filter-operator.component.js +38 -0
- package/esm2015/filtering/operators/is-not-null-filter-operator.component.js +38 -0
- package/esm2015/filtering/operators/isnull-filter-operator.component.js +38 -0
- package/esm2015/filtering/operators/lt-filter-operator.component.js +38 -0
- package/esm2015/filtering/operators/lte-filter-operator.component.js +38 -0
- package/esm2015/filtering/operators/neq-filter-operator.component.js +38 -0
- package/esm2015/filtering/operators/not-contains-filter-operator.component.js +38 -0
- package/esm2015/filtering/operators/starts-with-filter-operator.component.js +38 -0
- package/esm2015/filtering/shared-filtering.module.js +149 -0
- package/esm2015/filtering/string-filter.component.js +83 -0
- package/esm2015/grid.component.js +3270 -0
- package/esm2015/grid.module.js +261 -0
- package/esm2015/grouping/group-footer-template.directive.js +69 -0
- package/esm2015/grouping/group-header-column-template.directive.js +43 -0
- package/esm2015/grouping/group-header-template.directive.js +73 -0
- package/esm2015/grouping/group-header.component.js +244 -0
- package/esm2015/grouping/group-indicator.component.js +74 -0
- package/{dist/es2015 → esm2015}/grouping/group-info.service.js +0 -0
- package/esm2015/grouping/group-key.interface.js +5 -0
- package/esm2015/grouping/group-panel.component.js +234 -0
- package/esm2015/grouping/group-rows-args.interface.js +5 -0
- package/esm2015/grouping/group-scroll-binding.directive.js +271 -0
- package/esm2015/grouping/group-settings.js +5 -0
- package/esm2015/grouping/group.module.js +56 -0
- package/esm2015/grouping/groups.service.js +65 -0
- package/{dist/es2015 → esm2015}/grouping/utils.js +0 -0
- package/esm2015/grouping/virtual-group-result.interface.js +5 -0
- package/esm2015/kendo-angular-grid.js +8 -0
- package/esm2015/layout/browser-support.service.js +80 -0
- package/esm2015/layout/resizable.directive.js +74 -0
- package/esm2015/layout/resize.service.js +31 -0
- package/esm2015/layout/responsive.service.js +36 -0
- package/esm2015/layout/row-sync.js +43 -0
- package/esm2015/localization/custom-messages.component.js +41 -0
- package/esm2015/localization/localized-messages.directive.js +36 -0
- package/esm2015/localization/messages.js +159 -0
- package/esm2015/main.js +169 -0
- package/esm2015/navigation/default-focusable-element.js +43 -0
- package/esm2015/navigation/focus-group.js +70 -0
- package/esm2015/navigation/focus-root.js +49 -0
- package/esm2015/navigation/focusable-element.interface.js +5 -0
- package/esm2015/navigation/focusable.directive.js +169 -0
- package/{dist/es2015 → esm2015}/navigation/grid-focusable-element.js +0 -0
- package/{dist/es2015 → esm2015}/navigation/item-map.js +0 -0
- package/esm2015/navigation/logical-cell.directive.js +187 -0
- package/esm2015/navigation/logical-cell.interface.js +5 -0
- package/esm2015/navigation/logical-row.directive.js +90 -0
- package/esm2015/navigation/logical-row.interface.js +5 -0
- package/esm2015/navigation/navigation-cell.interface.js +5 -0
- package/esm2015/navigation/navigation-change.interface.js +5 -0
- package/{dist/es2015 → esm2015}/navigation/navigation-cursor.js +0 -0
- package/{dist/es2015 → esm2015}/navigation/navigation-metadata.js +0 -0
- package/esm2015/navigation/navigation-mode.js +5 -0
- package/{dist/es2015 → esm2015}/navigation/navigation-model.js +0 -0
- package/esm2015/navigation/navigation-row.interface.js +5 -0
- package/esm2015/navigation/navigation.service.js +575 -0
- package/esm2015/package-metadata.js +15 -0
- package/{dist/es2015 → esm2015}/pager/pager-context.service.js +0 -0
- package/esm2015/pager/pager-dropdown.directive.js +35 -0
- package/esm2015/pager/pager-element.component.js +86 -0
- package/esm2015/pager/pager-info.component.js +73 -0
- package/esm2015/pager/pager-input.component.js +187 -0
- package/esm2015/pager/pager-input.directive.js +26 -0
- package/esm2015/pager/pager-next-buttons.component.js +129 -0
- package/esm2015/pager/pager-numeric-buttons.component.js +226 -0
- package/esm2015/pager/pager-page-sizes.component.js +225 -0
- package/esm2015/pager/pager-prev-buttons.component.js +129 -0
- package/esm2015/pager/pager-settings.js +20 -0
- package/esm2015/pager/pager-template.directive.js +80 -0
- package/esm2015/pager/pager.component.js +393 -0
- package/esm2015/pager/pager.module.js +95 -0
- package/esm2015/pager/pagesize-item.interface.js +5 -0
- package/esm2015/pdf/export-element.js +115 -0
- package/esm2015/pdf/grid-query.js +41 -0
- package/esm2015/pdf/pdf-command.directive.js +62 -0
- package/{dist/es2015 → esm2015}/pdf/pdf-export-event.js +0 -0
- package/esm2015/pdf/pdf-margin.component.js +18 -0
- package/esm2015/pdf/pdf-margin.interface.js +5 -0
- package/esm2015/pdf/pdf-template.directive.js +70 -0
- package/esm2015/pdf/pdf.component.js +252 -0
- package/esm2015/pdf/pdf.module.js +71 -0
- package/esm2015/pdf/pdf.service.js +38 -0
- package/esm2015/rendering/body.module.js +123 -0
- package/esm2015/rendering/cell-loading.template.directive.js +37 -0
- package/esm2015/rendering/cell-template.directive.js +67 -0
- package/esm2015/rendering/cell.component.js +314 -0
- package/{dist/es2015 → esm2015}/rendering/common/cell-context.js +0 -0
- package/esm2015/rendering/common/col-group.component.js +50 -0
- package/esm2015/rendering/common/dom-queries.js +158 -0
- package/esm2015/rendering/common/field-accessor.pipe.js +45 -0
- package/esm2015/rendering/common/loading.component.js +50 -0
- package/esm2015/rendering/common/row-args.js +5 -0
- package/esm2015/rendering/common/row-class.js +5 -0
- package/esm2015/rendering/common/spacer.component.js +44 -0
- package/esm2015/rendering/common/template-context.directive.js +40 -0
- package/{dist/es2015 → esm2015}/rendering/constants.js +0 -0
- package/{dist/es2015 → esm2015}/rendering/details/detail-collapse-event.js +0 -0
- package/{dist/es2015 → esm2015}/rendering/details/detail-expand-event.js +0 -0
- package/esm2015/rendering/details/detail-template.directive.js +103 -0
- package/esm2015/rendering/details/details.service.js +57 -0
- package/esm2015/rendering/details-expand.directive.js +118 -0
- package/esm2015/rendering/footer/footer-template.directive.js +73 -0
- package/esm2015/rendering/footer/footer.component.js +148 -0
- package/esm2015/rendering/footer/footer.module.js +36 -0
- package/esm2015/rendering/groups-expand.directive.js +126 -0
- package/esm2015/rendering/header/header-template.directive.js +70 -0
- package/esm2015/rendering/header/header.component.js +884 -0
- package/esm2015/rendering/header/header.module.js +66 -0
- package/esm2015/rendering/list.component.js +842 -0
- package/esm2015/rendering/loading-template.directive.js +24 -0
- package/esm2015/rendering/no-records-template.directive.js +85 -0
- package/esm2015/rendering/table-body.component.js +841 -0
- package/esm2015/rendering/toolbar/toolbar-template.directive.js +99 -0
- package/esm2015/rendering/toolbar/toolbar.component.js +48 -0
- package/esm2015/scrolling/content-scroll-event.js +5 -0
- package/esm2015/scrolling/row-height.service.js +75 -0
- package/esm2015/scrolling/scroll-bottom-event.js +5 -0
- package/esm2015/scrolling/scroll-request.service.js +23 -0
- package/esm2015/scrolling/scroll-sync.service.js +78 -0
- package/{dist/es2015 → esm2015}/scrolling/scroller.service.js +0 -0
- package/esm2015/scrolling/scrollmode.js +5 -0
- package/esm2015/scrolling/suspend.service.js +19 -0
- package/esm2015/selection/cell-selection.service.js +295 -0
- package/esm2015/selection/marquee.directive.js +164 -0
- package/{dist/es2015 → esm2015}/selection/pair-set.js +0 -0
- package/esm2015/selection/selectall-checkbox.directive.js +100 -0
- package/esm2015/selection/selection-checkbox.directive.js +118 -0
- package/esm2015/selection/selection-default.js +162 -0
- package/esm2015/selection/selection.directive.js +41 -0
- package/esm2015/selection/selection.service.js +358 -0
- package/esm2015/selection/types.js +5 -0
- package/esm2015/shared.module.js +91 -0
- package/esm2015/utils.js +131 -0
- package/excel/excel-command.directive.d.ts +42 -0
- package/{dist/es2015/excel → excel}/excel-export-event.d.ts +0 -0
- package/excel/excel.component.d.ts +91 -0
- package/excel/excel.module.d.ts +44 -0
- package/excel/excel.service.d.ts +16 -0
- package/fesm2015/kendo-angular-grid.js +25342 -0
- package/filtering/base-filter-cell.component.d.ts +73 -0
- package/filtering/boolean-filter.component.d.ts +62 -0
- package/filtering/cell/autocomplete-filter-cell.component.d.ts +33 -0
- package/filtering/cell/boolean-filter-cell.component.d.ts +36 -0
- package/filtering/cell/date-filter-cell.component.d.ts +44 -0
- package/{dist/es2015/filtering → filtering}/cell/filter-cell-component.factory.d.ts +0 -0
- package/filtering/cell/filter-cell-host.directive.d.ts +17 -0
- package/filtering/cell/filter-cell-operators.component.d.ts +75 -0
- package/filtering/cell/filter-cell-template.directive.d.ts +15 -0
- package/filtering/cell/filter-cell-wrapper.component.d.ts +21 -0
- package/filtering/cell/filter-cell.component.d.ts +22 -0
- package/filtering/cell/numeric-filter-cell.component.d.ts +49 -0
- package/filtering/cell/row-filtering.module.d.ts +25 -0
- package/filtering/cell/string-filter-cell.component.d.ts +47 -0
- package/filtering/date-filter.component.d.ts +119 -0
- package/{dist/es2015/filtering → filtering}/filter-component.interface.d.ts +0 -0
- package/filtering/filter-host.directive.d.ts +36 -0
- package/filtering/filter-input-wrapper.component.d.ts +40 -0
- package/filtering/filter-input.directive.d.ts +34 -0
- package/filtering/filter-row.component.d.ts +32 -0
- package/filtering/filter.service.d.ts +34 -0
- package/{dist/es2015/filtering → filtering}/filterable.d.ts +0 -0
- package/filtering/menu/boolean-filter-menu.component.d.ts +75 -0
- package/filtering/menu/date-filter-menu-input.component.d.ts +49 -0
- package/filtering/menu/date-filter-menu.component.d.ts +68 -0
- package/{dist/es2015/filtering → filtering}/menu/filter-menu-component.factory.d.ts +0 -0
- package/filtering/menu/filter-menu-container.component.d.ts +69 -0
- package/filtering/menu/filter-menu-dropdownlist.directive.d.ts +19 -0
- package/filtering/menu/filter-menu-host.directive.d.ts +22 -0
- package/filtering/menu/filter-menu-input-wrapper.component.d.ts +48 -0
- package/filtering/menu/filter-menu-template.directive.d.ts +16 -0
- package/filtering/menu/filter-menu.component.d.ts +45 -0
- package/filtering/menu/filter-menu.module.d.ts +29 -0
- package/filtering/menu/filter-radio-button.directive.d.ts +19 -0
- package/filtering/menu/menu-tabbing.service.d.ts +17 -0
- package/filtering/menu/numeric-filter-menu-input.component.d.ts +67 -0
- package/filtering/menu/numeric-filter-menu.component.d.ts +68 -0
- package/filtering/menu/string-filter-menu-input.component.d.ts +31 -0
- package/filtering/menu/string-filter-menu.component.d.ts +55 -0
- package/filtering/numeric-filter.component.d.ts +95 -0
- package/filtering/operators/after-eq-filter-operator.component.d.ts +19 -0
- package/filtering/operators/after-filter-operator.component.d.ts +19 -0
- package/filtering/operators/before-eq-filter-operator.component.d.ts +19 -0
- package/filtering/operators/before-filter-operator.component.d.ts +19 -0
- package/filtering/operators/contains-filter-operator.component.d.ts +19 -0
- package/filtering/operators/ends-with-filter-operator.component.d.ts +19 -0
- package/filtering/operators/eq-filter-operator.component.d.ts +19 -0
- package/filtering/operators/filter-operator.base.d.ts +41 -0
- package/filtering/operators/gt-filter-operator.component.d.ts +12 -0
- package/filtering/operators/gte-filter-operator.component.d.ts +19 -0
- package/filtering/operators/is-empty-filter-operator.component.d.ts +19 -0
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +19 -0
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +19 -0
- package/filtering/operators/isnull-filter-operator.component.d.ts +19 -0
- package/filtering/operators/lt-filter-operator.component.d.ts +12 -0
- package/filtering/operators/lte-filter-operator.component.d.ts +12 -0
- package/filtering/operators/neq-filter-operator.component.d.ts +19 -0
- package/filtering/operators/not-contains-filter-operator.component.d.ts +19 -0
- package/filtering/operators/starts-with-filter-operator.component.d.ts +19 -0
- package/filtering/shared-filtering.module.d.ts +41 -0
- package/filtering/string-filter.component.d.ts +55 -0
- package/grid.component.d.ts +1121 -0
- package/grid.module.d.ts +149 -0
- package/grouping/group-footer-template.directive.d.ts +60 -0
- package/grouping/group-header-column-template.directive.d.ts +34 -0
- package/grouping/group-header-template.directive.d.ts +64 -0
- package/grouping/group-header.component.d.ts +44 -0
- package/grouping/group-indicator.component.d.ts +22 -0
- package/grouping/group-info.service.d.ts +21 -0
- package/{dist/es2015/grouping → grouping}/group-key.interface.d.ts +0 -0
- package/grouping/group-panel.component.d.ts +48 -0
- package/{dist/es2015/grouping → grouping}/group-rows-args.interface.d.ts +0 -0
- package/grouping/group-scroll-binding.directive.d.ts +60 -0
- package/grouping/group-settings.d.ts +24 -0
- package/grouping/group.module.d.ts +23 -0
- package/grouping/groups.service.d.ts +35 -0
- package/grouping/utils.d.ts +10 -0
- package/{dist/es2015/grouping → grouping}/virtual-group-result.interface.d.ts +0 -0
- package/kendo-angular-grid.d.ts +9 -0
- package/layout/browser-support.service.d.ts +22 -0
- package/layout/resizable.directive.d.ts +28 -0
- package/layout/resize.service.d.ts +18 -0
- package/layout/responsive.service.d.ts +20 -0
- package/{dist/es2015/layout → layout}/row-sync.d.ts +0 -0
- package/localization/custom-messages.component.d.ts +18 -0
- package/localization/localized-messages.directive.d.ts +16 -0
- package/localization/messages.d.ts +402 -0
- package/main.d.ts +207 -0
- package/navigation/default-focusable-element.d.ts +22 -0
- package/navigation/focus-group.d.ts +34 -0
- package/navigation/focus-root.d.ts +25 -0
- package/{dist/es2015/navigation → navigation}/focusable-element.interface.d.ts +0 -0
- package/navigation/focusable.directive.d.ts +99 -0
- package/{dist/es2015/navigation → navigation}/grid-focusable-element.d.ts +0 -0
- package/navigation/item-map.d.ts +19 -0
- package/navigation/logical-cell.directive.d.ts +55 -0
- package/{dist/es2015/navigation → navigation}/logical-cell.interface.d.ts +0 -0
- package/navigation/logical-row.directive.d.ts +31 -0
- package/{dist/es2015/navigation → navigation}/logical-row.interface.d.ts +0 -0
- package/{dist/es2015/navigation → navigation}/navigation-cell.interface.d.ts +0 -0
- package/{dist/es2015/navigation → navigation}/navigation-change.interface.d.ts +0 -0
- package/navigation/navigation-cursor.d.ts +48 -0
- package/navigation/navigation-metadata.d.ts +20 -0
- package/{dist/es2015/navigation → navigation}/navigation-mode.d.ts +0 -0
- package/navigation/navigation-model.d.ts +27 -0
- package/{dist/es2015/navigation → navigation}/navigation-row.interface.d.ts +0 -0
- package/navigation/navigation.service.d.ts +109 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +51 -136
- package/pager/pager-context.service.d.ts +30 -0
- package/pager/pager-dropdown.directive.d.ts +18 -0
- package/pager/pager-element.component.d.ts +64 -0
- package/pager/pager-info.component.d.ts +43 -0
- package/pager/pager-input.component.d.ts +92 -0
- package/pager/pager-input.directive.d.ts +18 -0
- package/pager/pager-next-buttons.component.d.ts +28 -0
- package/pager/pager-numeric-buttons.component.d.ts +51 -0
- package/pager/pager-page-sizes.component.d.ts +138 -0
- package/pager/pager-prev-buttons.component.d.ts +28 -0
- package/{dist/es2015/pager → pager}/pager-settings.d.ts +0 -0
- package/pager/pager-template.directive.d.ts +71 -0
- package/pager/pager.component.d.ts +74 -0
- package/pager/pager.module.d.ts +30 -0
- package/{dist/es2015/pager → pager}/pagesize-item.interface.d.ts +0 -0
- package/{dist/es2015/pdf → pdf}/export-element.d.ts +0 -0
- package/{dist/es2015/pdf → pdf}/grid-query.d.ts +0 -0
- package/pdf/pdf-command.directive.d.ts +42 -0
- package/{dist/es2015/pdf → pdf}/pdf-export-event.d.ts +0 -0
- package/pdf/pdf-margin.component.d.ts +10 -0
- package/{dist/es2015/pdf → pdf}/pdf-margin.interface.d.ts +0 -0
- package/pdf/pdf-template.directive.d.ts +60 -0
- package/pdf/pdf.component.d.ts +81 -0
- package/pdf/pdf.module.d.ts +45 -0
- package/pdf/pdf.service.d.ts +21 -0
- package/rendering/body.module.d.ts +36 -0
- package/rendering/cell-loading.template.directive.d.ts +28 -0
- package/rendering/cell-template.directive.d.ts +58 -0
- package/rendering/cell.component.d.ts +57 -0
- package/{dist/es2015/rendering → rendering}/common/cell-context.d.ts +0 -0
- package/rendering/common/col-group.component.d.ts +21 -0
- package/{dist/es2015/rendering → rendering}/common/dom-queries.d.ts +0 -0
- package/rendering/common/field-accessor.pipe.d.ts +18 -0
- package/rendering/common/loading.component.d.ts +19 -0
- package/{dist/es2015/rendering → rendering}/common/row-args.d.ts +0 -0
- package/rendering/common/row-class.d.ts +50 -0
- package/rendering/common/spacer.component.d.ts +25 -0
- package/rendering/common/template-context.directive.d.ts +19 -0
- package/{dist/es2015/rendering → rendering}/constants.d.ts +0 -0
- package/{dist/es2015/rendering → rendering}/details/detail-collapse-event.d.ts +0 -0
- package/{dist/es2015/rendering → rendering}/details/detail-expand-event.d.ts +0 -0
- package/rendering/details/detail-template.directive.d.ts +94 -0
- package/rendering/details/details.service.d.ts +28 -0
- package/rendering/details-expand.directive.d.ts +58 -0
- package/rendering/footer/footer-template.directive.d.ts +64 -0
- package/rendering/footer/footer.component.d.ts +31 -0
- package/rendering/footer/footer.module.d.ts +17 -0
- package/rendering/groups-expand.directive.d.ts +49 -0
- package/rendering/header/header-template.directive.d.ts +61 -0
- package/rendering/header/header.component.d.ts +130 -0
- package/rendering/header/header.module.d.ts +25 -0
- package/rendering/list.component.d.ts +156 -0
- package/rendering/loading-template.directive.d.ts +17 -0
- package/rendering/no-records-template.directive.d.ts +76 -0
- package/rendering/table-body.component.d.ts +129 -0
- package/rendering/toolbar/toolbar-template.directive.d.ts +83 -0
- package/rendering/toolbar/toolbar.component.d.ts +19 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/scrolling → scrolling}/content-scroll-event.d.ts +0 -0
- package/{dist/es2015/scrolling → scrolling}/row-height.service.d.ts +0 -0
- package/{dist/es2015/scrolling → scrolling}/scroll-bottom-event.d.ts +0 -0
- package/scrolling/scroll-request.service.d.ts +22 -0
- package/scrolling/scroll-sync.service.d.ts +36 -0
- package/{dist/es2015/scrolling → scrolling}/scroller.service.d.ts +0 -0
- package/{dist/es2015/scrolling → scrolling}/scrollmode.d.ts +0 -0
- package/scrolling/suspend.service.d.ts +13 -0
- package/selection/cell-selection.service.d.ts +64 -0
- package/selection/marquee.directive.d.ts +37 -0
- package/selection/pair-set.d.ts +50 -0
- package/selection/selectall-checkbox.directive.d.ts +47 -0
- package/selection/selection-checkbox.directive.d.ts +79 -0
- package/selection/selection-default.d.ts +62 -0
- package/selection/selection.directive.d.ts +26 -0
- package/selection/selection.service.d.ts +66 -0
- package/{dist/es2015/selection → selection}/types.d.ts +0 -0
- package/shared.module.d.ts +30 -0
- package/utils.d.ts +90 -0
- package/dist/cdn/js/kendo-angular-grid.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/column-menu/column-chooser.component.js +0 -146
- package/dist/es/column-menu/column-list.component.js +0 -232
- package/dist/es/column-menu/column-locked-change-event.js +0 -17
- package/dist/es/column-menu/column-menu-chooser.component.js +0 -135
- package/dist/es/column-menu/column-menu-container.component.js +0 -41
- package/dist/es/column-menu/column-menu-expandable-item.interface.js +0 -4
- package/dist/es/column-menu/column-menu-filter.component.js +0 -111
- package/dist/es/column-menu/column-menu-item-base.js +0 -36
- package/dist/es/column-menu/column-menu-item-content-template.directive.js +0 -54
- package/dist/es/column-menu/column-menu-item.component.js +0 -151
- package/dist/es/column-menu/column-menu-item.directive.js +0 -119
- package/dist/es/column-menu/column-menu-lock.component.js +0 -115
- package/dist/es/column-menu/column-menu-position.component.js +0 -154
- package/dist/es/column-menu/column-menu-settings.interface.js +0 -4
- package/dist/es/column-menu/column-menu-sort.component.js +0 -106
- package/dist/es/column-menu/column-menu-stick.component.js +0 -115
- package/dist/es/column-menu/column-menu-template.directive.js +0 -61
- package/dist/es/column-menu/column-menu.component.js +0 -243
- package/dist/es/column-menu/column-menu.module.js +0 -71
- package/dist/es/column-menu/column-menu.service.js +0 -60
- package/dist/es/column-menu/column-sticky-change-event.js +0 -17
- package/dist/es/column-menu/column-visibility-change-event.js +0 -17
- package/dist/es/column-menu/utils.js +0 -40
- package/dist/es/column-resizing/column-handle.directive.js +0 -274
- package/dist/es/column-resizing/column-resize.interface.js +0 -4
- package/dist/es/column-resizing/column-resizing.service.js +0 -151
- package/dist/es/column-resizing/table.directive.js +0 -159
- package/dist/es/columns/checkbox-column.component.js +0 -116
- package/dist/es/columns/column-base.js +0 -347
- package/dist/es/columns/column-common.js +0 -92
- package/dist/es/columns/column-group.component.js +0 -168
- package/dist/es/columns/column-list.js +0 -99
- package/dist/es/columns/column.component.js +0 -270
- package/dist/es/columns/columns-container.js +0 -106
- package/dist/es/columns/command-column.component.js +0 -112
- package/dist/es/columns/sort-settings.js +0 -23
- package/dist/es/columns/span-column.component.js +0 -312
- package/dist/es/common/cell-click-event-args.interface.js +0 -4
- package/dist/es/common/column-info.service.js +0 -109
- package/dist/es/common/dom-events.service.js +0 -27
- package/dist/es/common/event-emitter.js +0 -45
- package/dist/es/common/filter-descriptor-differ.js +0 -77
- package/dist/es/common/id.service.js +0 -34
- package/dist/es/common/preventable-event.js +0 -32
- package/dist/es/common/single-popup.service.js +0 -122
- package/dist/es/common/sort.service.js +0 -18
- package/dist/es/constants.js +0 -16
- package/dist/es/data/change-event-args.interface.js +0 -4
- package/dist/es/data/change-notification.service.js +0 -30
- package/dist/es/data/data-item.interface.js +0 -4
- package/dist/es/data/data.collection.js +0 -112
- package/dist/es/data/data.iterators.js +0 -249
- package/dist/es/data/grid-item.interface.js +0 -4
- package/dist/es/data/group-footer-item.interface.js +0 -4
- package/dist/es/data/group-item.interface.js +0 -4
- package/dist/es/databinding.directive.js +0 -208
- package/dist/es/dragdrop/column-reorder-config.js +0 -4
- package/dist/es/dragdrop/column-reorder-event.js +0 -25
- package/dist/es/dragdrop/column-reorder.service.js +0 -22
- package/dist/es/dragdrop/common.js +0 -72
- package/dist/es/dragdrop/context-types.js +0 -4
- package/dist/es/dragdrop/drag-and-drop.module.js +0 -27
- package/dist/es/dragdrop/drag-and-drop.service.js +0 -65
- package/dist/es/dragdrop/drag-hint.service.js +0 -82
- package/dist/es/dragdrop/draggable-column.directive.js +0 -171
- package/dist/es/dragdrop/drop-cue.service.js +0 -44
- package/dist/es/dragdrop/drop-target.directive.js +0 -89
- package/dist/es/editing/add-command.directive.js +0 -73
- package/dist/es/editing/add-event-args.interface.js +0 -4
- package/dist/es/editing/cancel-command.directive.js +0 -108
- package/dist/es/editing/cancel-event-args.interface.js +0 -4
- package/dist/es/editing/cell-close-event.js +0 -23
- package/dist/es/editing/edit-command.directive.js +0 -94
- package/dist/es/editing/edit-event-args.interface.js +0 -4
- package/dist/es/editing/edit-row-options.interface.js +0 -4
- package/dist/es/editing/edit-template.directive.js +0 -34
- package/dist/es/editing/edit.service.js +0 -195
- package/dist/es/editing/local-data-changes.service.js +0 -19
- package/dist/es/editing/remove-command.directive.js +0 -93
- package/dist/es/editing/remove-event-args.interface.js +0 -4
- package/dist/es/editing/save-command.directive.js +0 -108
- package/dist/es/editing/save-event-args.interface.js +0 -4
- package/dist/es/editing-directives/create-form-group-args.interface.js +0 -4
- package/dist/es/editing-directives/edit-service.interface.js +0 -4
- package/dist/es/editing-directives/editing-directive-base.js +0 -113
- package/dist/es/editing-directives/in-cell-editing.directive.js +0 -85
- package/dist/es/editing-directives/local-edit.service.js +0 -70
- package/dist/es/editing-directives/local-row-edit.service.js +0 -20
- package/dist/es/editing-directives/reactive-editing.directive.js +0 -49
- package/dist/es/editing-directives/row-editing-directive-base.js +0 -50
- package/dist/es/editing-directives/template-editing.directive.js +0 -58
- package/dist/es/editing-directives/utils.js +0 -18
- package/dist/es/excel/excel-command.directive.js +0 -77
- package/dist/es/excel/excel-export-event.js +0 -19
- package/dist/es/excel/excel.component.js +0 -188
- package/dist/es/excel/excel.module.js +0 -53
- package/dist/es/excel/excel.service.js +0 -30
- package/dist/es/filtering/base-filter-cell.component.js +0 -172
- package/dist/es/filtering/boolean-filter.component.js +0 -100
- package/dist/es/filtering/cell/autocomplete-filter-cell.component.js +0 -94
- package/dist/es/filtering/cell/boolean-filter-cell.component.js +0 -61
- package/dist/es/filtering/cell/date-filter-cell.component.js +0 -72
- package/dist/es/filtering/cell/filter-cell-component.factory.js +0 -19
- package/dist/es/filtering/cell/filter-cell-host.directive.js +0 -34
- package/dist/es/filtering/cell/filter-cell-operators.component.js +0 -126
- package/dist/es/filtering/cell/filter-cell-template.directive.js +0 -23
- package/dist/es/filtering/cell/filter-cell-wrapper.component.js +0 -70
- package/dist/es/filtering/cell/filter-cell.component.js +0 -69
- package/dist/es/filtering/cell/numeric-filter-cell.component.js +0 -81
- package/dist/es/filtering/cell/row-filtering.module.js +0 -67
- package/dist/es/filtering/cell/string-filter-cell.component.js +0 -77
- package/dist/es/filtering/date-filter.component.js +0 -177
- package/dist/es/filtering/filter-component.interface.js +0 -4
- package/dist/es/filtering/filter-host.directive.js +0 -54
- package/dist/es/filtering/filter-input-wrapper.component.js +0 -143
- package/dist/es/filtering/filter-input.directive.js +0 -118
- package/dist/es/filtering/filter-row.component.js +0 -69
- package/dist/es/filtering/filter.service.js +0 -38
- package/dist/es/filtering/filterable.js +0 -20
- package/dist/es/filtering/menu/boolean-filter-menu.component.js +0 -134
- package/dist/es/filtering/menu/date-filter-menu-input.component.js +0 -123
- package/dist/es/filtering/menu/date-filter-menu.component.js +0 -121
- package/dist/es/filtering/menu/filter-menu-component.factory.js +0 -19
- package/dist/es/filtering/menu/filter-menu-container.component.js +0 -241
- package/dist/es/filtering/menu/filter-menu-dropdownlist.directive.js +0 -41
- package/dist/es/filtering/menu/filter-menu-host.directive.js +0 -49
- package/dist/es/filtering/menu/filter-menu-input-wrapper.component.js +0 -122
- package/dist/es/filtering/menu/filter-menu-template.directive.js +0 -24
- package/dist/es/filtering/menu/filter-menu.component.js +0 -97
- package/dist/es/filtering/menu/filter-menu.module.js +0 -72
- package/dist/es/filtering/menu/filter-radio-button.directive.js +0 -30
- package/dist/es/filtering/menu/menu-tabbing.service.js +0 -20
- package/dist/es/filtering/menu/numeric-filter-menu-input.component.js +0 -110
- package/dist/es/filtering/menu/numeric-filter-menu.component.js +0 -121
- package/dist/es/filtering/menu/string-filter-menu-input.component.js +0 -70
- package/dist/es/filtering/menu/string-filter-menu.component.js +0 -108
- package/dist/es/filtering/numeric-filter.component.js +0 -153
- package/dist/es/filtering/operators/after-eq-filter-operator.component.js +0 -47
- package/dist/es/filtering/operators/after-filter-operator.component.js +0 -47
- package/dist/es/filtering/operators/before-eq-filter-operator.component.js +0 -47
- package/dist/es/filtering/operators/before-filter-operator.component.js +0 -47
- package/dist/es/filtering/operators/contains-filter-operator.component.js +0 -38
- package/dist/es/filtering/operators/ends-with-filter-operator.component.js +0 -38
- package/dist/es/filtering/operators/eq-filter-operator.component.js +0 -38
- package/dist/es/filtering/operators/filter-operator.base.js +0 -94
- package/dist/es/filtering/operators/gt-filter-operator.component.js +0 -38
- package/dist/es/filtering/operators/gte-filter-operator.component.js +0 -38
- package/dist/es/filtering/operators/is-empty-filter-operator.component.js +0 -38
- package/dist/es/filtering/operators/is-not-empty-filter-operator.component.js +0 -38
- package/dist/es/filtering/operators/is-not-null-filter-operator.component.js +0 -38
- package/dist/es/filtering/operators/isnull-filter-operator.component.js +0 -38
- package/dist/es/filtering/operators/lt-filter-operator.component.js +0 -38
- package/dist/es/filtering/operators/lte-filter-operator.component.js +0 -38
- package/dist/es/filtering/operators/neq-filter-operator.component.js +0 -38
- package/dist/es/filtering/operators/not-contains-filter-operator.component.js +0 -38
- package/dist/es/filtering/operators/starts-with-filter-operator.component.js +0 -38
- package/dist/es/filtering/shared-filtering.module.js +0 -87
- package/dist/es/filtering/string-filter.component.js +0 -92
- package/dist/es/grid.component.js +0 -2714
- package/dist/es/grid.module.js +0 -122
- package/dist/es/grouping/group-footer-template.directive.js +0 -68
- package/dist/es/grouping/group-header-column-template.directive.js +0 -42
- package/dist/es/grouping/group-header-template.directive.js +0 -72
- package/dist/es/grouping/group-header.component.js +0 -142
- package/dist/es/grouping/group-indicator.component.js +0 -73
- package/dist/es/grouping/group-info.service.js +0 -51
- package/dist/es/grouping/group-key.interface.js +0 -4
- package/dist/es/grouping/group-panel.component.js +0 -205
- package/dist/es/grouping/group-rows-args.interface.js +0 -4
- package/dist/es/grouping/group-scroll-binding.directive.js +0 -319
- package/dist/es/grouping/group-settings.js +0 -4
- package/dist/es/grouping/group.module.js +0 -46
- package/dist/es/grouping/groups.service.js +0 -68
- package/dist/es/grouping/utils.js +0 -14
- package/dist/es/grouping/virtual-group-result.interface.js +0 -4
- package/dist/es/index.js +0 -109
- package/dist/es/layout/browser-support.service.js +0 -92
- package/dist/es/layout/resizable.directive.js +0 -91
- package/dist/es/layout/resize.service.js +0 -32
- package/dist/es/layout/responsive.service.js +0 -41
- package/dist/es/layout/row-sync.js +0 -53
- package/dist/es/localization/custom-messages.component.js +0 -44
- package/dist/es/localization/localized-messages.directive.js +0 -35
- package/dist/es/localization/messages.js +0 -294
- package/dist/es/main.js +0 -112
- package/dist/es/navigation/default-focusable-element.js +0 -57
- package/dist/es/navigation/focus-group.js +0 -79
- package/dist/es/navigation/focus-root.js +0 -47
- package/dist/es/navigation/focusable-element.interface.js +0 -4
- package/dist/es/navigation/focusable.directive.js +0 -164
- package/dist/es/navigation/grid-focusable-element.js +0 -29
- package/dist/es/navigation/item-map.js +0 -71
- package/dist/es/navigation/logical-cell.directive.js +0 -224
- package/dist/es/navigation/logical-cell.interface.js +0 -4
- package/dist/es/navigation/logical-row.directive.js +0 -121
- package/dist/es/navigation/logical-row.interface.js +0 -4
- package/dist/es/navigation/navigation-cell.interface.js +0 -4
- package/dist/es/navigation/navigation-change.interface.js +0 -4
- package/dist/es/navigation/navigation-cursor.js +0 -208
- package/dist/es/navigation/navigation-metadata.js +0 -29
- package/dist/es/navigation/navigation-mode.js +0 -4
- package/dist/es/navigation/navigation-model.js +0 -150
- package/dist/es/navigation/navigation-row.interface.js +0 -4
- package/dist/es/navigation/navigation.service.js +0 -646
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/pager/pager-context.service.js +0 -47
- package/dist/es/pager/pager-dropdown.directive.js +0 -36
- package/dist/es/pager/pager-element.component.js +0 -84
- package/dist/es/pager/pager-info.component.js +0 -90
- package/dist/es/pager/pager-input.component.js +0 -150
- package/dist/es/pager/pager-input.directive.js +0 -27
- package/dist/es/pager/pager-next-buttons.component.js +0 -55
- package/dist/es/pager/pager-numeric-buttons.component.js +0 -120
- package/dist/es/pager/pager-page-sizes.component.js +0 -218
- package/dist/es/pager/pager-prev-buttons.component.js +0 -55
- package/dist/es/pager/pager-settings.js +0 -27
- package/dist/es/pager/pager-template.directive.js +0 -79
- package/dist/es/pager/pager.component.js +0 -374
- package/dist/es/pager/pager.module.js +0 -72
- package/dist/es/pager/pagesize-item.interface.js +0 -4
- package/dist/es/pdf/export-element.js +0 -121
- package/dist/es/pdf/grid-query.js +0 -45
- package/dist/es/pdf/pdf-command.directive.js +0 -77
- package/dist/es/pdf/pdf-export-event.js +0 -17
- package/dist/es/pdf/pdf-margin.component.js +0 -21
- package/dist/es/pdf/pdf-margin.interface.js +0 -4
- package/dist/es/pdf/pdf-template.directive.js +0 -70
- package/dist/es/pdf/pdf.component.js +0 -275
- package/dist/es/pdf/pdf.module.js +0 -65
- package/dist/es/pdf/pdf.service.js +0 -38
- package/dist/es/rendering/body.module.js +0 -85
- package/dist/es/rendering/cell-loading.template.directive.js +0 -36
- package/dist/es/rendering/cell-template.directive.js +0 -66
- package/dist/es/rendering/cell.component.js +0 -244
- package/dist/es/rendering/common/cell-context.js +0 -13
- package/dist/es/rendering/common/col-group.component.js +0 -47
- package/dist/es/rendering/common/dom-queries.js +0 -171
- package/dist/es/rendering/common/field-accessor.pipe.js +0 -45
- package/dist/es/rendering/common/loading.component.js +0 -36
- package/dist/es/rendering/common/row-args.js +0 -4
- package/dist/es/rendering/common/row-class.js +0 -4
- package/dist/es/rendering/common/spacer.component.js +0 -58
- package/dist/es/rendering/common/template-context.directive.js +0 -46
- package/dist/es/rendering/constants.js +0 -20
- package/dist/es/rendering/details/detail-collapse-event.js +0 -19
- package/dist/es/rendering/details/detail-expand-event.js +0 -19
- package/dist/es/rendering/details/detail-template.directive.js +0 -108
- package/dist/es/rendering/details/details.service.js +0 -57
- package/dist/es/rendering/details-expand.directive.js +0 -141
- package/dist/es/rendering/footer/footer-template.directive.js +0 -72
- package/dist/es/rendering/footer/footer.component.js +0 -85
- package/dist/es/rendering/footer/footer.module.js +0 -35
- package/dist/es/rendering/groups-expand.directive.js +0 -152
- package/dist/es/rendering/header/header-template.directive.js +0 -69
- package/dist/es/rendering/header/header.component.js +0 -570
- package/dist/es/rendering/header/header.module.js +0 -54
- package/dist/es/rendering/list.component.js +0 -795
- package/dist/es/rendering/no-records-template.directive.js +0 -84
- package/dist/es/rendering/table-body.component.js +0 -506
- package/dist/es/rendering/toolbar/toolbar-template.directive.js +0 -104
- package/dist/es/rendering/toolbar/toolbar.component.js +0 -44
- package/dist/es/scrolling/content-scroll-event.js +0 -4
- package/dist/es/scrolling/row-height.service.js +0 -77
- package/dist/es/scrolling/scroll-bottom-event.js +0 -4
- package/dist/es/scrolling/scroll-request.service.js +0 -23
- package/dist/es/scrolling/scroll-sync.service.js +0 -89
- package/dist/es/scrolling/scroller.service.js +0 -113
- package/dist/es/scrolling/scrollmode.js +0 -4
- package/dist/es/scrolling/suspend.service.js +0 -19
- package/dist/es/selection/cell-selection.service.js +0 -318
- package/dist/es/selection/marquee.directive.js +0 -180
- package/dist/es/selection/pair-set.js +0 -91
- package/dist/es/selection/selectall-checkbox.directive.js +0 -103
- package/dist/es/selection/selection-checkbox.directive.js +0 -126
- package/dist/es/selection/selection-default.js +0 -169
- package/dist/es/selection/selection.directive.js +0 -43
- package/dist/es/selection/selection.service.js +0 -378
- package/dist/es/selection/types.js +0 -4
- package/dist/es/shared.module.js +0 -65
- package/dist/es/utils.js +0 -153
- package/dist/es2015/column-menu/column-chooser.component.d.ts +0 -71
- package/dist/es2015/column-menu/column-chooser.component.js +0 -157
- package/dist/es2015/column-menu/column-list.component.d.ts +0 -47
- package/dist/es2015/column-menu/column-list.component.js +0 -230
- package/dist/es2015/column-menu/column-menu-chooser.component.d.ts +0 -80
- package/dist/es2015/column-menu/column-menu-chooser.component.js +0 -150
- package/dist/es2015/column-menu/column-menu-container.component.d.ts +0 -17
- package/dist/es2015/column-menu/column-menu-container.component.js +0 -41
- package/dist/es2015/column-menu/column-menu-expandable-item.interface.js +0 -4
- package/dist/es2015/column-menu/column-menu-filter.component.d.ts +0 -70
- package/dist/es2015/column-menu/column-menu-filter.component.js +0 -128
- package/dist/es2015/column-menu/column-menu-item-base.d.ts +0 -22
- package/dist/es2015/column-menu/column-menu-item-base.js +0 -34
- package/dist/es2015/column-menu/column-menu-item-content-template.directive.d.ts +0 -42
- package/dist/es2015/column-menu/column-menu-item-content-template.directive.js +0 -53
- package/dist/es2015/column-menu/column-menu-item.component.d.ts +0 -78
- package/dist/es2015/column-menu/column-menu-item.component.js +0 -191
- package/dist/es2015/column-menu/column-menu-item.directive.d.ts +0 -28
- package/dist/es2015/column-menu/column-menu-item.directive.js +0 -106
- package/dist/es2015/column-menu/column-menu-lock.component.d.ts +0 -54
- package/dist/es2015/column-menu/column-menu-lock.component.js +0 -103
- package/dist/es2015/column-menu/column-menu-position.component.d.ts +0 -87
- package/dist/es2015/column-menu/column-menu-position.component.js +0 -168
- package/dist/es2015/column-menu/column-menu-settings.interface.js +0 -4
- package/dist/es2015/column-menu/column-menu-sort.component.d.ts +0 -52
- package/dist/es2015/column-menu/column-menu-sort.component.js +0 -103
- package/dist/es2015/column-menu/column-menu-stick.component.d.ts +0 -54
- package/dist/es2015/column-menu/column-menu-stick.component.js +0 -99
- package/dist/es2015/column-menu/column-menu-template.directive.d.ts +0 -49
- package/dist/es2015/column-menu/column-menu-template.directive.js +0 -60
- package/dist/es2015/column-menu/column-menu.component.d.ts +0 -113
- package/dist/es2015/column-menu/column-menu.component.js +0 -261
- package/dist/es2015/column-menu/column-menu.module.d.ts +0 -10
- package/dist/es2015/column-menu/column-menu.module.js +0 -68
- package/dist/es2015/column-menu/column-menu.service.d.ts +0 -69
- package/dist/es2015/column-menu/column-menu.service.js +0 -59
- package/dist/es2015/column-resizing/column-handle.directive.d.ts +0 -38
- package/dist/es2015/column-resizing/column-handle.directive.js +0 -243
- package/dist/es2015/column-resizing/column-resize.interface.js +0 -4
- package/dist/es2015/column-resizing/column-resizing.service.d.ts +0 -31
- package/dist/es2015/column-resizing/column-resizing.service.js +0 -145
- package/dist/es2015/column-resizing/table.directive.d.ts +0 -30
- package/dist/es2015/column-resizing/table.directive.js +0 -136
- package/dist/es2015/columns/checkbox-column.component.d.ts +0 -81
- package/dist/es2015/columns/checkbox-column.component.js +0 -108
- package/dist/es2015/columns/column-base.d.ts +0 -607
- package/dist/es2015/columns/column-base.js +0 -309
- package/dist/es2015/columns/column-common.d.ts +0 -53
- package/dist/es2015/columns/column-common.js +0 -78
- package/dist/es2015/columns/column-group.component.d.ts +0 -100
- package/dist/es2015/columns/column-group.component.js +0 -141
- package/dist/es2015/columns/column-list.js +0 -97
- package/dist/es2015/columns/column.component.d.ts +0 -182
- package/dist/es2015/columns/column.component.js +0 -234
- package/dist/es2015/columns/columns-container.js +0 -99
- package/dist/es2015/columns/command-column.component.d.ts +0 -80
- package/dist/es2015/columns/command-column.component.js +0 -104
- package/dist/es2015/columns/sort-settings.d.ts +0 -107
- package/dist/es2015/columns/sort-settings.js +0 -17
- package/dist/es2015/columns/span-column.component.d.ts +0 -222
- package/dist/es2015/columns/span-column.component.js +0 -272
- package/dist/es2015/common/cell-click-event-args.interface.d.ts +0 -42
- package/dist/es2015/common/cell-click-event-args.interface.js +0 -4
- package/dist/es2015/common/column-info.service.d.ts +0 -34
- package/dist/es2015/common/column-info.service.js +0 -87
- package/dist/es2015/common/default-track-by.js +0 -13
- package/dist/es2015/common/dom-events.service.d.ts +0 -19
- package/dist/es2015/common/dom-events.service.js +0 -29
- package/dist/es2015/common/filter-descriptor-differ.js +0 -75
- package/dist/es2015/common/id.service.d.ts +0 -15
- package/dist/es2015/common/id.service.js +0 -33
- package/dist/es2015/common/single-popup.service.d.ts +0 -50
- package/dist/es2015/common/single-popup.service.js +0 -112
- package/dist/es2015/data/change-event-args.interface.js +0 -4
- package/dist/es2015/data/change-notification.service.d.ts +0 -15
- package/dist/es2015/data/change-notification.service.js +0 -28
- package/dist/es2015/data/data-item.interface.js +0 -4
- package/dist/es2015/data/data.collection.d.ts +0 -47
- package/dist/es2015/data/data.iterators.d.ts +0 -85
- package/dist/es2015/data/data.iterators.js +0 -222
- package/dist/es2015/data/grid-item.interface.js +0 -4
- package/dist/es2015/data/group-footer-item.interface.js +0 -4
- package/dist/es2015/data/group-item.interface.js +0 -4
- package/dist/es2015/databinding.directive.d.ts +0 -80
- package/dist/es2015/databinding.directive.js +0 -182
- package/dist/es2015/dragdrop/column-reorder-config.js +0 -4
- package/dist/es2015/dragdrop/column-reorder.service.d.ts +0 -12
- package/dist/es2015/dragdrop/column-reorder.service.js +0 -24
- package/dist/es2015/dragdrop/common.js +0 -68
- package/dist/es2015/dragdrop/context-types.d.ts +0 -16
- package/dist/es2015/dragdrop/context-types.js +0 -4
- package/dist/es2015/dragdrop/drag-and-drop.module.d.ts +0 -9
- package/dist/es2015/dragdrop/drag-and-drop.module.js +0 -24
- package/dist/es2015/dragdrop/drag-and-drop.service.d.ts +0 -20
- package/dist/es2015/dragdrop/drag-and-drop.service.js +0 -64
- package/dist/es2015/dragdrop/drag-hint.service.d.ts +0 -23
- package/dist/es2015/dragdrop/drag-hint.service.js +0 -85
- package/dist/es2015/dragdrop/draggable-column.directive.d.ts +0 -37
- package/dist/es2015/dragdrop/draggable-column.directive.js +0 -148
- package/dist/es2015/dragdrop/drop-cue.service.d.ts +0 -15
- package/dist/es2015/dragdrop/drop-cue.service.js +0 -40
- package/dist/es2015/dragdrop/drop-target.directive.d.ts +0 -23
- package/dist/es2015/dragdrop/drop-target.directive.js +0 -75
- package/dist/es2015/editing/add-command.directive.d.ts +0 -36
- package/dist/es2015/editing/add-command.directive.js +0 -66
- package/dist/es2015/editing/add-event-args.interface.js +0 -4
- package/dist/es2015/editing/cancel-command.directive.d.ts +0 -62
- package/dist/es2015/editing/cancel-command.directive.js +0 -101
- package/dist/es2015/editing/cancel-event-args.interface.js +0 -4
- package/dist/es2015/editing/cell-close-event.d.ts +0 -34
- package/dist/es2015/editing/edit-command.directive.d.ts +0 -50
- package/dist/es2015/editing/edit-command.directive.js +0 -87
- package/dist/es2015/editing/edit-event-args.interface.d.ts +0 -26
- package/dist/es2015/editing/edit-event-args.interface.js +0 -4
- package/dist/es2015/editing/edit-row-options.interface.js +0 -4
- package/dist/es2015/editing/edit-template.directive.d.ts +0 -23
- package/dist/es2015/editing/edit-template.directive.js +0 -33
- package/dist/es2015/editing/edit.service.d.ts +0 -67
- package/dist/es2015/editing/edit.service.js +0 -181
- package/dist/es2015/editing/local-data-changes.service.d.ts +0 -12
- package/dist/es2015/editing/local-data-changes.service.js +0 -21
- package/dist/es2015/editing/remove-command.directive.d.ts +0 -49
- package/dist/es2015/editing/remove-command.directive.js +0 -86
- package/dist/es2015/editing/remove-event-args.interface.js +0 -4
- package/dist/es2015/editing/save-command.directive.d.ts +0 -62
- package/dist/es2015/editing/save-command.directive.js +0 -101
- package/dist/es2015/editing/save-event-args.interface.js +0 -4
- package/dist/es2015/editing-directives/create-form-group-args.interface.js +0 -4
- package/dist/es2015/editing-directives/edit-service.interface.js +0 -4
- package/dist/es2015/editing-directives/editing-directive-base.d.ts +0 -45
- package/dist/es2015/editing-directives/editing-directive-base.js +0 -104
- package/dist/es2015/editing-directives/in-cell-editing.directive.d.ts +0 -33
- package/dist/es2015/editing-directives/in-cell-editing.directive.js +0 -81
- package/dist/es2015/editing-directives/local-edit.service.d.ts +0 -21
- package/dist/es2015/editing-directives/local-edit.service.js +0 -59
- package/dist/es2015/editing-directives/reactive-editing.directive.d.ts +0 -24
- package/dist/es2015/editing-directives/reactive-editing.directive.js +0 -45
- package/dist/es2015/editing-directives/row-editing-directive-base.d.ts +0 -22
- package/dist/es2015/editing-directives/row-editing-directive-base.js +0 -42
- package/dist/es2015/editing-directives/template-editing.directive.d.ts +0 -27
- package/dist/es2015/editing-directives/template-editing.directive.js +0 -55
- package/dist/es2015/excel/excel-command.directive.d.ts +0 -39
- package/dist/es2015/excel/excel-command.directive.js +0 -70
- package/dist/es2015/excel/excel.component.d.ts +0 -88
- package/dist/es2015/excel/excel.component.js +0 -184
- package/dist/es2015/excel/excel.module.d.ts +0 -37
- package/dist/es2015/excel/excel.module.js +0 -50
- package/dist/es2015/excel/excel.service.d.ts +0 -13
- package/dist/es2015/excel/excel.service.js +0 -32
- package/dist/es2015/filtering/base-filter-cell.component.d.ts +0 -76
- package/dist/es2015/filtering/base-filter-cell.component.js +0 -157
- package/dist/es2015/filtering/boolean-filter.component.d.ts +0 -59
- package/dist/es2015/filtering/boolean-filter.component.js +0 -84
- package/dist/es2015/filtering/cell/autocomplete-filter-cell.component.d.ts +0 -29
- package/dist/es2015/filtering/cell/autocomplete-filter-cell.component.js +0 -92
- package/dist/es2015/filtering/cell/boolean-filter-cell.component.d.ts +0 -33
- package/dist/es2015/filtering/cell/boolean-filter-cell.component.js +0 -73
- package/dist/es2015/filtering/cell/date-filter-cell.component.d.ts +0 -41
- package/dist/es2015/filtering/cell/date-filter-cell.component.js +0 -95
- package/dist/es2015/filtering/cell/filter-cell-host.directive.d.ts +0 -14
- package/dist/es2015/filtering/cell/filter-cell-host.directive.js +0 -32
- package/dist/es2015/filtering/cell/filter-cell-operators.component.d.ts +0 -72
- package/dist/es2015/filtering/cell/filter-cell-operators.component.js +0 -145
- package/dist/es2015/filtering/cell/filter-cell-template.directive.d.ts +0 -12
- package/dist/es2015/filtering/cell/filter-cell-template.directive.js +0 -22
- package/dist/es2015/filtering/cell/filter-cell-wrapper.component.d.ts +0 -18
- package/dist/es2015/filtering/cell/filter-cell-wrapper.component.js +0 -64
- package/dist/es2015/filtering/cell/filter-cell.component.d.ts +0 -18
- package/dist/es2015/filtering/cell/filter-cell.component.js +0 -70
- package/dist/es2015/filtering/cell/numeric-filter-cell.component.d.ts +0 -46
- package/dist/es2015/filtering/cell/numeric-filter-cell.component.js +0 -103
- package/dist/es2015/filtering/cell/row-filtering.module.d.ts +0 -10
- package/dist/es2015/filtering/cell/row-filtering.module.js +0 -64
- package/dist/es2015/filtering/cell/string-filter-cell.component.d.ts +0 -44
- package/dist/es2015/filtering/cell/string-filter-cell.component.js +0 -85
- package/dist/es2015/filtering/date-filter.component.d.ts +0 -115
- package/dist/es2015/filtering/date-filter.component.js +0 -157
- package/dist/es2015/filtering/filter-component.interface.js +0 -4
- package/dist/es2015/filtering/filter-host.directive.d.ts +0 -33
- package/dist/es2015/filtering/filter-host.directive.js +0 -51
- package/dist/es2015/filtering/filter-input-wrapper.component.d.ts +0 -39
- package/dist/es2015/filtering/filter-input-wrapper.component.js +0 -123
- package/dist/es2015/filtering/filter-input.directive.d.ts +0 -31
- package/dist/es2015/filtering/filter-input.directive.js +0 -104
- package/dist/es2015/filtering/filter-row.component.d.ts +0 -29
- package/dist/es2015/filtering/filter-row.component.js +0 -91
- package/dist/es2015/filtering/filter.service.d.ts +0 -31
- package/dist/es2015/filtering/filter.service.js +0 -37
- package/dist/es2015/filtering/menu/boolean-filter-menu.component.d.ts +0 -72
- package/dist/es2015/filtering/menu/boolean-filter-menu.component.js +0 -137
- package/dist/es2015/filtering/menu/date-filter-menu-input.component.d.ts +0 -46
- package/dist/es2015/filtering/menu/date-filter-menu-input.component.js +0 -153
- package/dist/es2015/filtering/menu/date-filter-menu.component.d.ts +0 -65
- package/dist/es2015/filtering/menu/date-filter-menu.component.js +0 -153
- package/dist/es2015/filtering/menu/filter-menu-container.component.d.ts +0 -65
- package/dist/es2015/filtering/menu/filter-menu-container.component.js +0 -244
- package/dist/es2015/filtering/menu/filter-menu-dropdownlist.directive.d.ts +0 -16
- package/dist/es2015/filtering/menu/filter-menu-dropdownlist.directive.js +0 -39
- package/dist/es2015/filtering/menu/filter-menu-host.directive.d.ts +0 -19
- package/dist/es2015/filtering/menu/filter-menu-host.directive.js +0 -47
- package/dist/es2015/filtering/menu/filter-menu-input-wrapper.component.d.ts +0 -44
- package/dist/es2015/filtering/menu/filter-menu-input-wrapper.component.js +0 -120
- package/dist/es2015/filtering/menu/filter-menu-template.directive.d.ts +0 -13
- package/dist/es2015/filtering/menu/filter-menu-template.directive.js +0 -23
- package/dist/es2015/filtering/menu/filter-menu.component.d.ts +0 -42
- package/dist/es2015/filtering/menu/filter-menu.component.js +0 -108
- package/dist/es2015/filtering/menu/filter-menu.module.d.ts +0 -10
- package/dist/es2015/filtering/menu/filter-menu.module.js +0 -69
- package/dist/es2015/filtering/menu/filter-radio-button.directive.d.ts +0 -16
- package/dist/es2015/filtering/menu/filter-radio-button.directive.js +0 -29
- package/dist/es2015/filtering/menu/menu-tabbing.service.d.ts +0 -14
- package/dist/es2015/filtering/menu/menu-tabbing.service.js +0 -22
- package/dist/es2015/filtering/menu/numeric-filter-menu-input.component.d.ts +0 -64
- package/dist/es2015/filtering/menu/numeric-filter-menu-input.component.js +0 -136
- package/dist/es2015/filtering/menu/numeric-filter-menu.component.d.ts +0 -65
- package/dist/es2015/filtering/menu/numeric-filter-menu.component.js +0 -147
- package/dist/es2015/filtering/menu/string-filter-menu-input.component.d.ts +0 -28
- package/dist/es2015/filtering/menu/string-filter-menu-input.component.js +0 -83
- package/dist/es2015/filtering/menu/string-filter-menu.component.d.ts +0 -52
- package/dist/es2015/filtering/menu/string-filter-menu.component.js +0 -119
- package/dist/es2015/filtering/numeric-filter.component.d.ts +0 -91
- package/dist/es2015/filtering/numeric-filter.component.js +0 -133
- package/dist/es2015/filtering/operators/after-eq-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/after-eq-filter-operator.component.js +0 -42
- package/dist/es2015/filtering/operators/after-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/after-filter-operator.component.js +0 -42
- package/dist/es2015/filtering/operators/before-eq-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/before-eq-filter-operator.component.js +0 -42
- package/dist/es2015/filtering/operators/before-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/before-filter-operator.component.js +0 -42
- package/dist/es2015/filtering/operators/contains-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/contains-filter-operator.component.js +0 -33
- package/dist/es2015/filtering/operators/ends-with-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/ends-with-filter-operator.component.js +0 -33
- package/dist/es2015/filtering/operators/eq-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/eq-filter-operator.component.js +0 -33
- package/dist/es2015/filtering/operators/filter-operator.base.d.ts +0 -40
- package/dist/es2015/filtering/operators/filter-operator.base.js +0 -86
- package/dist/es2015/filtering/operators/gt-filter-operator.component.d.ts +0 -9
- package/dist/es2015/filtering/operators/gt-filter-operator.component.js +0 -33
- package/dist/es2015/filtering/operators/gte-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/gte-filter-operator.component.js +0 -33
- package/dist/es2015/filtering/operators/is-empty-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/is-empty-filter-operator.component.js +0 -33
- package/dist/es2015/filtering/operators/is-not-empty-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/is-not-empty-filter-operator.component.js +0 -33
- package/dist/es2015/filtering/operators/is-not-null-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/is-not-null-filter-operator.component.js +0 -33
- package/dist/es2015/filtering/operators/isnull-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/isnull-filter-operator.component.js +0 -33
- package/dist/es2015/filtering/operators/lt-filter-operator.component.d.ts +0 -9
- package/dist/es2015/filtering/operators/lt-filter-operator.component.js +0 -33
- package/dist/es2015/filtering/operators/lte-filter-operator.component.d.ts +0 -9
- package/dist/es2015/filtering/operators/lte-filter-operator.component.js +0 -33
- package/dist/es2015/filtering/operators/neq-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/neq-filter-operator.component.js +0 -33
- package/dist/es2015/filtering/operators/not-contains-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/not-contains-filter-operator.component.js +0 -33
- package/dist/es2015/filtering/operators/starts-with-filter-operator.component.d.ts +0 -16
- package/dist/es2015/filtering/operators/starts-with-filter-operator.component.js +0 -33
- package/dist/es2015/filtering/shared-filtering.module.d.ts +0 -10
- package/dist/es2015/filtering/shared-filtering.module.js +0 -86
- package/dist/es2015/filtering/string-filter.component.d.ts +0 -52
- package/dist/es2015/filtering/string-filter.component.js +0 -80
- package/dist/es2015/grid.component.d.ts +0 -1096
- package/dist/es2015/grid.component.js +0 -2898
- package/dist/es2015/grid.module.d.ts +0 -37
- package/dist/es2015/grid.module.js +0 -128
- package/dist/es2015/grouping/group-footer-template.directive.d.ts +0 -57
- package/dist/es2015/grouping/group-footer-template.directive.js +0 -67
- package/dist/es2015/grouping/group-header-column-template.directive.d.ts +0 -31
- package/dist/es2015/grouping/group-header-column-template.directive.js +0 -41
- package/dist/es2015/grouping/group-header-template.directive.d.ts +0 -61
- package/dist/es2015/grouping/group-header-template.directive.js +0 -71
- package/dist/es2015/grouping/group-header.component.d.ts +0 -41
- package/dist/es2015/grouping/group-header.component.js +0 -198
- package/dist/es2015/grouping/group-indicator.component.d.ts +0 -19
- package/dist/es2015/grouping/group-indicator.component.js +0 -76
- package/dist/es2015/grouping/group-info.service.d.ts +0 -21
- package/dist/es2015/grouping/group-key.interface.js +0 -4
- package/dist/es2015/grouping/group-panel.component.d.ts +0 -44
- package/dist/es2015/grouping/group-panel.component.js +0 -209
- package/dist/es2015/grouping/group-rows-args.interface.js +0 -4
- package/dist/es2015/grouping/group-scroll-binding.directive.d.ts +0 -57
- package/dist/es2015/grouping/group-scroll-binding.directive.js +0 -290
- package/dist/es2015/grouping/group-settings.d.ts +0 -24
- package/dist/es2015/grouping/group-settings.js +0 -4
- package/dist/es2015/grouping/group.module.d.ts +0 -10
- package/dist/es2015/grouping/group.module.js +0 -43
- package/dist/es2015/grouping/groups.service.d.ts +0 -32
- package/dist/es2015/grouping/groups.service.js +0 -69
- package/dist/es2015/grouping/utils.d.ts +0 -9
- package/dist/es2015/grouping/virtual-group-result.interface.js +0 -4
- package/dist/es2015/index.d.ts +0 -109
- package/dist/es2015/index.js +0 -109
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/layout/browser-support.service.d.ts +0 -19
- package/dist/es2015/layout/browser-support.service.js +0 -82
- package/dist/es2015/layout/resizable.directive.d.ts +0 -25
- package/dist/es2015/layout/resizable.directive.js +0 -82
- package/dist/es2015/layout/resize.service.d.ts +0 -15
- package/dist/es2015/layout/resize.service.js +0 -34
- package/dist/es2015/layout/responsive.service.d.ts +0 -17
- package/dist/es2015/layout/responsive.service.js +0 -43
- package/dist/es2015/layout/row-sync.js +0 -49
- package/dist/es2015/localization/custom-messages.component.d.ts +0 -15
- package/dist/es2015/localization/custom-messages.component.js +0 -36
- package/dist/es2015/localization/localized-messages.directive.d.ts +0 -13
- package/dist/es2015/localization/localized-messages.directive.js +0 -31
- package/dist/es2015/localization/messages.d.ts +0 -399
- package/dist/es2015/localization/messages.js +0 -288
- package/dist/es2015/main.d.ts +0 -149
- package/dist/es2015/main.js +0 -112
- package/dist/es2015/navigation/default-focusable-element.d.ts +0 -22
- package/dist/es2015/navigation/default-focusable-element.js +0 -46
- package/dist/es2015/navigation/focus-group.d.ts +0 -31
- package/dist/es2015/navigation/focus-group.js +0 -70
- package/dist/es2015/navigation/focus-root.d.ts +0 -22
- package/dist/es2015/navigation/focus-root.js +0 -45
- package/dist/es2015/navigation/focusable-element.interface.js +0 -4
- package/dist/es2015/navigation/focusable.directive.d.ts +0 -95
- package/dist/es2015/navigation/focusable.directive.js +0 -165
- package/dist/es2015/navigation/item-map.d.ts +0 -19
- package/dist/es2015/navigation/logical-cell.directive.d.ts +0 -52
- package/dist/es2015/navigation/logical-cell.directive.js +0 -209
- package/dist/es2015/navigation/logical-cell.interface.js +0 -4
- package/dist/es2015/navigation/logical-row.directive.d.ts +0 -28
- package/dist/es2015/navigation/logical-row.directive.js +0 -108
- package/dist/es2015/navigation/logical-row.interface.js +0 -4
- package/dist/es2015/navigation/navigation-cell.interface.js +0 -4
- package/dist/es2015/navigation/navigation-change.interface.js +0 -4
- package/dist/es2015/navigation/navigation-cursor.d.ts +0 -48
- package/dist/es2015/navigation/navigation-metadata.d.ts +0 -20
- package/dist/es2015/navigation/navigation-mode.js +0 -4
- package/dist/es2015/navigation/navigation-model.d.ts +0 -27
- package/dist/es2015/navigation/navigation-row.interface.js +0 -4
- package/dist/es2015/navigation/navigation.service.d.ts +0 -105
- package/dist/es2015/navigation/navigation.service.js +0 -593
- package/dist/es2015/package-metadata.js +0 -15
- package/dist/es2015/pager/pager-context.service.d.ts +0 -30
- package/dist/es2015/pager/pager-dropdown.directive.d.ts +0 -15
- package/dist/es2015/pager/pager-dropdown.directive.js +0 -34
- package/dist/es2015/pager/pager-element.component.d.ts +0 -61
- package/dist/es2015/pager/pager-element.component.js +0 -73
- package/dist/es2015/pager/pager-info.component.d.ts +0 -40
- package/dist/es2015/pager/pager-info.component.js +0 -74
- package/dist/es2015/pager/pager-input.component.d.ts +0 -89
- package/dist/es2015/pager/pager-input.component.js +0 -162
- package/dist/es2015/pager/pager-input.directive.d.ts +0 -15
- package/dist/es2015/pager/pager-input.directive.js +0 -26
- package/dist/es2015/pager/pager-next-buttons.component.d.ts +0 -25
- package/dist/es2015/pager/pager-next-buttons.component.js +0 -88
- package/dist/es2015/pager/pager-numeric-buttons.component.d.ts +0 -48
- package/dist/es2015/pager/pager-numeric-buttons.component.js +0 -163
- package/dist/es2015/pager/pager-page-sizes.component.d.ts +0 -134
- package/dist/es2015/pager/pager-page-sizes.component.js +0 -213
- package/dist/es2015/pager/pager-prev-buttons.component.d.ts +0 -25
- package/dist/es2015/pager/pager-prev-buttons.component.js +0 -88
- package/dist/es2015/pager/pager-settings.js +0 -22
- package/dist/es2015/pager/pager-template.directive.d.ts +0 -68
- package/dist/es2015/pager/pager-template.directive.js +0 -78
- package/dist/es2015/pager/pager.component.d.ts +0 -71
- package/dist/es2015/pager/pager.component.js +0 -375
- package/dist/es2015/pager/pager.module.d.ts +0 -10
- package/dist/es2015/pager/pager.module.js +0 -69
- package/dist/es2015/pager/pagesize-item.interface.js +0 -4
- package/dist/es2015/pdf/export-element.js +0 -121
- package/dist/es2015/pdf/grid-query.js +0 -43
- package/dist/es2015/pdf/pdf-command.directive.d.ts +0 -39
- package/dist/es2015/pdf/pdf-command.directive.js +0 -70
- package/dist/es2015/pdf/pdf-margin.component.d.ts +0 -7
- package/dist/es2015/pdf/pdf-margin.component.js +0 -16
- package/dist/es2015/pdf/pdf-margin.interface.js +0 -4
- package/dist/es2015/pdf/pdf-template.directive.d.ts +0 -57
- package/dist/es2015/pdf/pdf-template.directive.js +0 -68
- package/dist/es2015/pdf/pdf.component.d.ts +0 -78
- package/dist/es2015/pdf/pdf.component.js +0 -264
- package/dist/es2015/pdf/pdf.module.d.ts +0 -37
- package/dist/es2015/pdf/pdf.module.js +0 -62
- package/dist/es2015/pdf/pdf.service.d.ts +0 -18
- package/dist/es2015/pdf/pdf.service.js +0 -40
- package/dist/es2015/rendering/body.module.d.ts +0 -10
- package/dist/es2015/rendering/body.module.js +0 -82
- package/dist/es2015/rendering/cell-loading.template.directive.d.ts +0 -25
- package/dist/es2015/rendering/cell-loading.template.directive.js +0 -35
- package/dist/es2015/rendering/cell-template.directive.d.ts +0 -55
- package/dist/es2015/rendering/cell-template.directive.js +0 -65
- package/dist/es2015/rendering/cell.component.d.ts +0 -53
- package/dist/es2015/rendering/cell.component.js +0 -253
- package/dist/es2015/rendering/common/col-group.component.d.ts +0 -18
- package/dist/es2015/rendering/common/col-group.component.js +0 -51
- package/dist/es2015/rendering/common/dom-queries.js +0 -160
- package/dist/es2015/rendering/common/field-accessor.pipe.d.ts +0 -15
- package/dist/es2015/rendering/common/field-accessor.pipe.js +0 -44
- package/dist/es2015/rendering/common/loading.component.d.ts +0 -14
- package/dist/es2015/rendering/common/loading.component.js +0 -35
- package/dist/es2015/rendering/common/row-args.js +0 -4
- package/dist/es2015/rendering/common/row-class.d.ts +0 -50
- package/dist/es2015/rendering/common/row-class.js +0 -4
- package/dist/es2015/rendering/common/spacer.component.d.ts +0 -22
- package/dist/es2015/rendering/common/spacer.component.js +0 -55
- package/dist/es2015/rendering/common/template-context.directive.d.ts +0 -16
- package/dist/es2015/rendering/common/template-context.directive.js +0 -41
- package/dist/es2015/rendering/details/detail-template.directive.d.ts +0 -90
- package/dist/es2015/rendering/details/detail-template.directive.js +0 -103
- package/dist/es2015/rendering/details/details.service.d.ts +0 -25
- package/dist/es2015/rendering/details/details.service.js +0 -59
- package/dist/es2015/rendering/details-expand.directive.d.ts +0 -53
- package/dist/es2015/rendering/details-expand.directive.js +0 -128
- package/dist/es2015/rendering/footer/footer-template.directive.d.ts +0 -61
- package/dist/es2015/rendering/footer/footer-template.directive.js +0 -71
- package/dist/es2015/rendering/footer/footer.component.d.ts +0 -28
- package/dist/es2015/rendering/footer/footer.component.js +0 -117
- package/dist/es2015/rendering/footer/footer.module.d.ts +0 -10
- package/dist/es2015/rendering/footer/footer.module.js +0 -32
- package/dist/es2015/rendering/groups-expand.directive.d.ts +0 -44
- package/dist/es2015/rendering/groups-expand.directive.js +0 -137
- package/dist/es2015/rendering/header/header-template.directive.d.ts +0 -58
- package/dist/es2015/rendering/header/header-template.directive.js +0 -68
- package/dist/es2015/rendering/header/header.component.d.ts +0 -112
- package/dist/es2015/rendering/header/header.component.js +0 -697
- package/dist/es2015/rendering/header/header.module.d.ts +0 -10
- package/dist/es2015/rendering/header/header.module.js +0 -51
- package/dist/es2015/rendering/list.component.d.ts +0 -152
- package/dist/es2015/rendering/list.component.js +0 -821
- package/dist/es2015/rendering/no-records-template.directive.d.ts +0 -73
- package/dist/es2015/rendering/no-records-template.directive.js +0 -83
- package/dist/es2015/rendering/table-body.component.d.ts +0 -126
- package/dist/es2015/rendering/table-body.component.js +0 -682
- package/dist/es2015/rendering/toolbar/toolbar-template.directive.d.ts +0 -79
- package/dist/es2015/rendering/toolbar/toolbar-template.directive.js +0 -99
- package/dist/es2015/rendering/toolbar/toolbar.component.d.ts +0 -16
- package/dist/es2015/rendering/toolbar/toolbar.component.js +0 -42
- package/dist/es2015/scrolling/content-scroll-event.js +0 -4
- package/dist/es2015/scrolling/row-height.service.js +0 -77
- package/dist/es2015/scrolling/scroll-bottom-event.js +0 -4
- package/dist/es2015/scrolling/scroll-request.service.d.ts +0 -19
- package/dist/es2015/scrolling/scroll-request.service.js +0 -25
- package/dist/es2015/scrolling/scroll-sync.service.d.ts +0 -33
- package/dist/es2015/scrolling/scroll-sync.service.js +0 -78
- package/dist/es2015/scrolling/scrollmode.js +0 -4
- package/dist/es2015/scrolling/suspend.service.d.ts +0 -10
- package/dist/es2015/scrolling/suspend.service.js +0 -21
- package/dist/es2015/selection/cell-selection.service.d.ts +0 -61
- package/dist/es2015/selection/cell-selection.service.js +0 -297
- package/dist/es2015/selection/marquee.directive.d.ts +0 -34
- package/dist/es2015/selection/marquee.directive.js +0 -171
- package/dist/es2015/selection/pair-set.d.ts +0 -50
- package/dist/es2015/selection/selectall-checkbox.directive.d.ts +0 -44
- package/dist/es2015/selection/selectall-checkbox.directive.js +0 -100
- package/dist/es2015/selection/selection-checkbox.directive.d.ts +0 -76
- package/dist/es2015/selection/selection-checkbox.directive.js +0 -123
- package/dist/es2015/selection/selection-default.d.ts +0 -59
- package/dist/es2015/selection/selection-default.js +0 -159
- package/dist/es2015/selection/selection.directive.d.ts +0 -23
- package/dist/es2015/selection/selection.directive.js +0 -40
- package/dist/es2015/selection/selection.service.d.ts +0 -63
- package/dist/es2015/selection/selection.service.js +0 -360
- package/dist/es2015/selection/types.js +0 -4
- package/dist/es2015/shared.module.d.ts +0 -10
- package/dist/es2015/shared.module.js +0 -62
- package/dist/es2015/utils.d.ts +0 -90
- package/dist/es2015/utils.js +0 -131
- package/dist/fesm2015/index.js +0 -23661
- package/dist/fesm5/index.js +0 -23847
- package/dist/npm/column-menu/column-chooser.component.js +0 -148
- package/dist/npm/column-menu/column-list.component.js +0 -234
- package/dist/npm/column-menu/column-locked-change-event.js +0 -19
- package/dist/npm/column-menu/column-menu-chooser.component.js +0 -137
- package/dist/npm/column-menu/column-menu-container.component.js +0 -43
- package/dist/npm/column-menu/column-menu-expandable-item.interface.js +0 -6
- package/dist/npm/column-menu/column-menu-filter.component.js +0 -113
- package/dist/npm/column-menu/column-menu-item-base.js +0 -38
- package/dist/npm/column-menu/column-menu-item-content-template.directive.js +0 -56
- package/dist/npm/column-menu/column-menu-item.component.js +0 -153
- package/dist/npm/column-menu/column-menu-item.directive.js +0 -121
- package/dist/npm/column-menu/column-menu-lock.component.js +0 -117
- package/dist/npm/column-menu/column-menu-position.component.js +0 -156
- package/dist/npm/column-menu/column-menu-settings.interface.js +0 -6
- package/dist/npm/column-menu/column-menu-sort.component.js +0 -108
- package/dist/npm/column-menu/column-menu-stick.component.js +0 -117
- package/dist/npm/column-menu/column-menu-template.directive.js +0 -63
- package/dist/npm/column-menu/column-menu.component.js +0 -245
- package/dist/npm/column-menu/column-menu.module.js +0 -73
- package/dist/npm/column-menu/column-menu.service.js +0 -62
- package/dist/npm/column-menu/column-sticky-change-event.js +0 -19
- package/dist/npm/column-menu/column-visibility-change-event.js +0 -19
- package/dist/npm/column-menu/utils.js +0 -42
- package/dist/npm/column-resizing/column-handle.directive.js +0 -284
- package/dist/npm/column-resizing/column-resize.interface.js +0 -6
- package/dist/npm/column-resizing/column-resizing.service.js +0 -154
- package/dist/npm/column-resizing/table.directive.js +0 -166
- package/dist/npm/columns/checkbox-column.component.js +0 -118
- package/dist/npm/columns/column-base.js +0 -349
- package/dist/npm/columns/column-common.js +0 -94
- package/dist/npm/columns/column-group.component.js +0 -171
- package/dist/npm/columns/column-list.js +0 -103
- package/dist/npm/columns/column.component.js +0 -273
- package/dist/npm/columns/columns-container.js +0 -108
- package/dist/npm/columns/command-column.component.js +0 -114
- package/dist/npm/columns/sort-settings.js +0 -25
- package/dist/npm/columns/span-column.component.js +0 -315
- package/dist/npm/common/cell-click-event-args.interface.js +0 -6
- package/dist/npm/common/column-info.service.js +0 -111
- package/dist/npm/common/default-track-by.js +0 -16
- package/dist/npm/common/dom-events.service.js +0 -29
- package/dist/npm/common/event-emitter.js +0 -47
- package/dist/npm/common/filter-descriptor-differ.js +0 -82
- package/dist/npm/common/id.service.js +0 -36
- package/dist/npm/common/preventable-event.js +0 -34
- package/dist/npm/common/single-popup.service.js +0 -124
- package/dist/npm/common/sort.service.js +0 -20
- package/dist/npm/constants.js +0 -18
- package/dist/npm/data/change-event-args.interface.js +0 -6
- package/dist/npm/data/change-notification.service.js +0 -32
- package/dist/npm/data/data-item.interface.js +0 -6
- package/dist/npm/data/data.collection.js +0 -114
- package/dist/npm/data/data.iterators.js +0 -254
- package/dist/npm/data/grid-item.interface.js +0 -6
- package/dist/npm/data/group-footer-item.interface.js +0 -6
- package/dist/npm/data/group-item.interface.js +0 -6
- package/dist/npm/databinding.directive.js +0 -210
- package/dist/npm/dragdrop/column-reorder-config.js +0 -6
- package/dist/npm/dragdrop/column-reorder-event.js +0 -27
- package/dist/npm/dragdrop/column-reorder.service.js +0 -24
- package/dist/npm/dragdrop/common.js +0 -75
- package/dist/npm/dragdrop/context-types.js +0 -6
- package/dist/npm/dragdrop/drag-and-drop.module.js +0 -29
- package/dist/npm/dragdrop/drag-and-drop.service.js +0 -67
- package/dist/npm/dragdrop/drag-hint.service.js +0 -86
- package/dist/npm/dragdrop/draggable-column.directive.js +0 -176
- package/dist/npm/dragdrop/drop-cue.service.js +0 -46
- package/dist/npm/dragdrop/drop-target.directive.js +0 -91
- package/dist/npm/editing/add-command.directive.js +0 -75
- package/dist/npm/editing/add-event-args.interface.js +0 -6
- package/dist/npm/editing/cancel-command.directive.js +0 -110
- package/dist/npm/editing/cancel-event-args.interface.js +0 -6
- package/dist/npm/editing/cell-close-event.js +0 -25
- package/dist/npm/editing/edit-command.directive.js +0 -96
- package/dist/npm/editing/edit-event-args.interface.js +0 -6
- package/dist/npm/editing/edit-row-options.interface.js +0 -6
- package/dist/npm/editing/edit-template.directive.js +0 -36
- package/dist/npm/editing/edit.service.js +0 -199
- package/dist/npm/editing/local-data-changes.service.js +0 -21
- package/dist/npm/editing/remove-command.directive.js +0 -95
- package/dist/npm/editing/remove-event-args.interface.js +0 -6
- package/dist/npm/editing/save-command.directive.js +0 -110
- package/dist/npm/editing/save-event-args.interface.js +0 -6
- package/dist/npm/editing-directives/create-form-group-args.interface.js +0 -6
- package/dist/npm/editing-directives/edit-service.interface.js +0 -6
- package/dist/npm/editing-directives/editing-directive-base.js +0 -115
- package/dist/npm/editing-directives/in-cell-editing.directive.js +0 -87
- package/dist/npm/editing-directives/local-edit.service.js +0 -72
- package/dist/npm/editing-directives/local-row-edit.service.js +0 -22
- package/dist/npm/editing-directives/reactive-editing.directive.js +0 -51
- package/dist/npm/editing-directives/row-editing-directive-base.js +0 -52
- package/dist/npm/editing-directives/template-editing.directive.js +0 -60
- package/dist/npm/editing-directives/utils.js +0 -20
- package/dist/npm/excel/excel-command.directive.js +0 -79
- package/dist/npm/excel/excel-export-event.js +0 -21
- package/dist/npm/excel/excel.component.js +0 -193
- package/dist/npm/excel/excel.module.js +0 -55
- package/dist/npm/excel/excel.service.js +0 -32
- package/dist/npm/filtering/base-filter-cell.component.js +0 -175
- package/dist/npm/filtering/boolean-filter.component.js +0 -102
- package/dist/npm/filtering/cell/autocomplete-filter-cell.component.js +0 -96
- package/dist/npm/filtering/cell/boolean-filter-cell.component.js +0 -63
- package/dist/npm/filtering/cell/date-filter-cell.component.js +0 -74
- package/dist/npm/filtering/cell/filter-cell-component.factory.js +0 -21
- package/dist/npm/filtering/cell/filter-cell-host.directive.js +0 -36
- package/dist/npm/filtering/cell/filter-cell-operators.component.js +0 -128
- package/dist/npm/filtering/cell/filter-cell-template.directive.js +0 -25
- package/dist/npm/filtering/cell/filter-cell-wrapper.component.js +0 -72
- package/dist/npm/filtering/cell/filter-cell.component.js +0 -71
- package/dist/npm/filtering/cell/numeric-filter-cell.component.js +0 -83
- package/dist/npm/filtering/cell/row-filtering.module.js +0 -69
- package/dist/npm/filtering/cell/string-filter-cell.component.js +0 -79
- package/dist/npm/filtering/date-filter.component.js +0 -179
- package/dist/npm/filtering/filter-component.interface.js +0 -6
- package/dist/npm/filtering/filter-host.directive.js +0 -56
- package/dist/npm/filtering/filter-input-wrapper.component.js +0 -145
- package/dist/npm/filtering/filter-input.directive.js +0 -120
- package/dist/npm/filtering/filter-row.component.js +0 -71
- package/dist/npm/filtering/filter.service.js +0 -40
- package/dist/npm/filtering/filterable.js +0 -22
- package/dist/npm/filtering/menu/boolean-filter-menu.component.js +0 -136
- package/dist/npm/filtering/menu/date-filter-menu-input.component.js +0 -125
- package/dist/npm/filtering/menu/date-filter-menu.component.js +0 -123
- package/dist/npm/filtering/menu/filter-menu-component.factory.js +0 -21
- package/dist/npm/filtering/menu/filter-menu-container.component.js +0 -247
- package/dist/npm/filtering/menu/filter-menu-dropdownlist.directive.js +0 -43
- package/dist/npm/filtering/menu/filter-menu-host.directive.js +0 -51
- package/dist/npm/filtering/menu/filter-menu-input-wrapper.component.js +0 -124
- package/dist/npm/filtering/menu/filter-menu-template.directive.js +0 -26
- package/dist/npm/filtering/menu/filter-menu.component.js +0 -99
- package/dist/npm/filtering/menu/filter-menu.module.js +0 -74
- package/dist/npm/filtering/menu/filter-radio-button.directive.js +0 -32
- package/dist/npm/filtering/menu/menu-tabbing.service.js +0 -22
- package/dist/npm/filtering/menu/numeric-filter-menu-input.component.js +0 -112
- package/dist/npm/filtering/menu/numeric-filter-menu.component.js +0 -123
- package/dist/npm/filtering/menu/string-filter-menu-input.component.js +0 -72
- package/dist/npm/filtering/menu/string-filter-menu.component.js +0 -110
- package/dist/npm/filtering/numeric-filter.component.js +0 -155
- package/dist/npm/filtering/operators/after-eq-filter-operator.component.js +0 -49
- package/dist/npm/filtering/operators/after-filter-operator.component.js +0 -49
- package/dist/npm/filtering/operators/before-eq-filter-operator.component.js +0 -49
- package/dist/npm/filtering/operators/before-filter-operator.component.js +0 -49
- package/dist/npm/filtering/operators/contains-filter-operator.component.js +0 -40
- package/dist/npm/filtering/operators/ends-with-filter-operator.component.js +0 -40
- package/dist/npm/filtering/operators/eq-filter-operator.component.js +0 -40
- package/dist/npm/filtering/operators/filter-operator.base.js +0 -96
- package/dist/npm/filtering/operators/gt-filter-operator.component.js +0 -40
- package/dist/npm/filtering/operators/gte-filter-operator.component.js +0 -40
- package/dist/npm/filtering/operators/is-empty-filter-operator.component.js +0 -40
- package/dist/npm/filtering/operators/is-not-empty-filter-operator.component.js +0 -40
- package/dist/npm/filtering/operators/is-not-null-filter-operator.component.js +0 -40
- package/dist/npm/filtering/operators/isnull-filter-operator.component.js +0 -40
- package/dist/npm/filtering/operators/lt-filter-operator.component.js +0 -40
- package/dist/npm/filtering/operators/lte-filter-operator.component.js +0 -40
- package/dist/npm/filtering/operators/neq-filter-operator.component.js +0 -40
- package/dist/npm/filtering/operators/not-contains-filter-operator.component.js +0 -40
- package/dist/npm/filtering/operators/starts-with-filter-operator.component.js +0 -40
- package/dist/npm/filtering/shared-filtering.module.js +0 -89
- package/dist/npm/filtering/string-filter.component.js +0 -94
- package/dist/npm/grid.component.js +0 -2721
- package/dist/npm/grid.module.js +0 -124
- package/dist/npm/grouping/group-footer-template.directive.js +0 -70
- package/dist/npm/grouping/group-header-column-template.directive.js +0 -44
- package/dist/npm/grouping/group-header-template.directive.js +0 -74
- package/dist/npm/grouping/group-header.component.js +0 -144
- package/dist/npm/grouping/group-indicator.component.js +0 -75
- package/dist/npm/grouping/group-info.service.js +0 -53
- package/dist/npm/grouping/group-key.interface.js +0 -6
- package/dist/npm/grouping/group-panel.component.js +0 -213
- package/dist/npm/grouping/group-rows-args.interface.js +0 -6
- package/dist/npm/grouping/group-scroll-binding.directive.js +0 -327
- package/dist/npm/grouping/group-settings.js +0 -6
- package/dist/npm/grouping/group.module.js +0 -48
- package/dist/npm/grouping/groups.service.js +0 -70
- package/dist/npm/grouping/utils.js +0 -16
- package/dist/npm/grouping/virtual-group-result.interface.js +0 -6
- package/dist/npm/index.js +0 -216
- package/dist/npm/layout/browser-support.service.js +0 -94
- package/dist/npm/layout/resizable.directive.js +0 -93
- package/dist/npm/layout/resize.service.js +0 -34
- package/dist/npm/layout/responsive.service.js +0 -44
- package/dist/npm/layout/row-sync.js +0 -59
- package/dist/npm/localization/custom-messages.component.js +0 -46
- package/dist/npm/localization/localized-messages.directive.js +0 -37
- package/dist/npm/localization/messages.js +0 -296
- package/dist/npm/main.js +0 -222
- package/dist/npm/navigation/default-focusable-element.js +0 -60
- package/dist/npm/navigation/focus-group.js +0 -81
- package/dist/npm/navigation/focus-root.js +0 -49
- package/dist/npm/navigation/focusable-element.interface.js +0 -6
- package/dist/npm/navigation/focusable.directive.js +0 -166
- package/dist/npm/navigation/grid-focusable-element.js +0 -31
- package/dist/npm/navigation/item-map.js +0 -73
- package/dist/npm/navigation/logical-cell.directive.js +0 -226
- package/dist/npm/navigation/logical-cell.interface.js +0 -6
- package/dist/npm/navigation/logical-row.directive.js +0 -123
- package/dist/npm/navigation/logical-row.interface.js +0 -6
- package/dist/npm/navigation/navigation-cell.interface.js +0 -6
- package/dist/npm/navigation/navigation-change.interface.js +0 -6
- package/dist/npm/navigation/navigation-cursor.js +0 -210
- package/dist/npm/navigation/navigation-metadata.js +0 -31
- package/dist/npm/navigation/navigation-mode.js +0 -6
- package/dist/npm/navigation/navigation-model.js +0 -152
- package/dist/npm/navigation/navigation-row.interface.js +0 -6
- package/dist/npm/navigation/navigation.service.js +0 -655
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/pager/pager-context.service.js +0 -49
- package/dist/npm/pager/pager-dropdown.directive.js +0 -38
- package/dist/npm/pager/pager-element.component.js +0 -86
- package/dist/npm/pager/pager-info.component.js +0 -92
- package/dist/npm/pager/pager-input.component.js +0 -152
- package/dist/npm/pager/pager-input.directive.js +0 -29
- package/dist/npm/pager/pager-next-buttons.component.js +0 -57
- package/dist/npm/pager/pager-numeric-buttons.component.js +0 -122
- package/dist/npm/pager/pager-page-sizes.component.js +0 -220
- package/dist/npm/pager/pager-prev-buttons.component.js +0 -57
- package/dist/npm/pager/pager-settings.js +0 -29
- package/dist/npm/pager/pager-template.directive.js +0 -81
- package/dist/npm/pager/pager.component.js +0 -376
- package/dist/npm/pager/pager.module.js +0 -74
- package/dist/npm/pager/pagesize-item.interface.js +0 -6
- package/dist/npm/pdf/export-element.js +0 -127
- package/dist/npm/pdf/grid-query.js +0 -47
- package/dist/npm/pdf/pdf-command.directive.js +0 -79
- package/dist/npm/pdf/pdf-export-event.js +0 -19
- package/dist/npm/pdf/pdf-margin.component.js +0 -23
- package/dist/npm/pdf/pdf-margin.interface.js +0 -6
- package/dist/npm/pdf/pdf-template.directive.js +0 -72
- package/dist/npm/pdf/pdf.component.js +0 -278
- package/dist/npm/pdf/pdf.module.js +0 -67
- package/dist/npm/pdf/pdf.service.js +0 -40
- package/dist/npm/rendering/body.module.js +0 -87
- package/dist/npm/rendering/cell-loading.template.directive.js +0 -38
- package/dist/npm/rendering/cell-template.directive.js +0 -68
- package/dist/npm/rendering/cell.component.js +0 -246
- package/dist/npm/rendering/common/cell-context.js +0 -15
- package/dist/npm/rendering/common/col-group.component.js +0 -49
- package/dist/npm/rendering/common/dom-queries.js +0 -174
- package/dist/npm/rendering/common/field-accessor.pipe.js +0 -47
- package/dist/npm/rendering/common/loading.component.js +0 -38
- package/dist/npm/rendering/common/row-args.js +0 -6
- package/dist/npm/rendering/common/row-class.js +0 -6
- package/dist/npm/rendering/common/spacer.component.js +0 -60
- package/dist/npm/rendering/common/template-context.directive.js +0 -48
- package/dist/npm/rendering/constants.js +0 -22
- package/dist/npm/rendering/details/detail-collapse-event.js +0 -21
- package/dist/npm/rendering/details/detail-expand-event.js +0 -21
- package/dist/npm/rendering/details/detail-template.directive.js +0 -110
- package/dist/npm/rendering/details/details.service.js +0 -59
- package/dist/npm/rendering/details-expand.directive.js +0 -143
- package/dist/npm/rendering/footer/footer-template.directive.js +0 -74
- package/dist/npm/rendering/footer/footer.component.js +0 -87
- package/dist/npm/rendering/footer/footer.module.js +0 -37
- package/dist/npm/rendering/groups-expand.directive.js +0 -155
- package/dist/npm/rendering/header/header-template.directive.js +0 -71
- package/dist/npm/rendering/header/header.component.js +0 -582
- package/dist/npm/rendering/header/header.module.js +0 -56
- package/dist/npm/rendering/list.component.js +0 -806
- package/dist/npm/rendering/no-records-template.directive.js +0 -86
- package/dist/npm/rendering/table-body.component.js +0 -508
- package/dist/npm/rendering/toolbar/toolbar-template.directive.js +0 -106
- package/dist/npm/rendering/toolbar/toolbar.component.js +0 -46
- package/dist/npm/scrolling/content-scroll-event.js +0 -6
- package/dist/npm/scrolling/row-height.service.js +0 -79
- package/dist/npm/scrolling/scroll-bottom-event.js +0 -6
- package/dist/npm/scrolling/scroll-request.service.js +0 -25
- package/dist/npm/scrolling/scroll-sync.service.js +0 -91
- package/dist/npm/scrolling/scroller.service.js +0 -115
- package/dist/npm/scrolling/scrollmode.js +0 -6
- package/dist/npm/scrolling/suspend.service.js +0 -21
- package/dist/npm/selection/cell-selection.service.js +0 -320
- package/dist/npm/selection/marquee.directive.js +0 -182
- package/dist/npm/selection/pair-set.js +0 -93
- package/dist/npm/selection/selectall-checkbox.directive.js +0 -105
- package/dist/npm/selection/selection-checkbox.directive.js +0 -128
- package/dist/npm/selection/selection-default.js +0 -171
- package/dist/npm/selection/selection.directive.js +0 -45
- package/dist/npm/selection/selection.service.js +0 -380
- package/dist/npm/selection/types.js +0 -6
- package/dist/npm/shared.module.js +0 -67
- package/dist/npm/utils.js +0 -158
- package/dist/systemjs/kendo-angular-grid.js +0 -5
|
@@ -1,2721 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var event_emitter_1 = require("./common/event-emitter");
|
|
10
|
-
var forms_1 = require("@angular/forms");
|
|
11
|
-
var rxjs_1 = require("rxjs");
|
|
12
|
-
var operators_1 = require("rxjs/operators");
|
|
13
|
-
var kendo_licensing_1 = require("@progress/kendo-licensing");
|
|
14
|
-
var package_metadata_1 = require("./package-metadata");
|
|
15
|
-
var column_component_1 = require("./columns/column.component");
|
|
16
|
-
var span_column_component_1 = require("./columns/span-column.component");
|
|
17
|
-
var column_group_component_1 = require("./columns/column-group.component");
|
|
18
|
-
var detail_template_directive_1 = require("./rendering/details/detail-template.directive");
|
|
19
|
-
var utils_1 = require("./utils");
|
|
20
|
-
var browser_support_service_1 = require("./layout/browser-support.service");
|
|
21
|
-
var data_collection_1 = require("./data/data.collection");
|
|
22
|
-
var selection_service_1 = require("./selection/selection.service");
|
|
23
|
-
var selection_default_1 = require("./selection/selection-default");
|
|
24
|
-
var edit_service_1 = require("./editing/edit.service");
|
|
25
|
-
var details_service_1 = require("./rendering/details/details.service");
|
|
26
|
-
var groups_service_1 = require("./grouping/groups.service");
|
|
27
|
-
var columns_container_1 = require("./columns/columns-container");
|
|
28
|
-
var group_info_service_1 = require("./grouping/group-info.service");
|
|
29
|
-
var change_notification_service_1 = require("./data/change-notification.service");
|
|
30
|
-
var no_records_template_directive_1 = require("./rendering/no-records-template.directive");
|
|
31
|
-
var column_base_1 = require("./columns/column-base");
|
|
32
|
-
var row_sync_1 = require("./layout/row-sync");
|
|
33
|
-
var cell_context_1 = require("./rendering/common/cell-context");
|
|
34
|
-
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
35
|
-
var filter_service_1 = require("./filtering/filter.service");
|
|
36
|
-
var pager_template_directive_1 = require("./pager/pager-template.directive");
|
|
37
|
-
var pager_context_service_1 = require("./pager/pager-context.service");
|
|
38
|
-
var pdf_service_1 = require("./pdf/pdf.service");
|
|
39
|
-
var pdf_export_event_1 = require("./pdf/pdf-export-event");
|
|
40
|
-
var suspend_service_1 = require("./scrolling/suspend.service");
|
|
41
|
-
var responsive_service_1 = require("./layout/responsive.service");
|
|
42
|
-
var excel_service_1 = require("./excel/excel.service");
|
|
43
|
-
var column_list_1 = require("./columns/column-list");
|
|
44
|
-
var toolbar_template_directive_1 = require("./rendering/toolbar/toolbar-template.directive");
|
|
45
|
-
var column_common_1 = require("./columns/column-common");
|
|
46
|
-
var scroll_sync_service_1 = require("./scrolling/scroll-sync.service");
|
|
47
|
-
var resize_service_1 = require("./layout/resize.service");
|
|
48
|
-
var dom_queries_1 = require("./rendering/common/dom-queries");
|
|
49
|
-
var local_data_changes_service_1 = require("./editing/local-data-changes.service");
|
|
50
|
-
var dom_events_service_1 = require("./common/dom-events.service");
|
|
51
|
-
var column_resizing_service_1 = require("./column-resizing/column-resizing.service");
|
|
52
|
-
var filterable_1 = require("./filtering/filterable");
|
|
53
|
-
var single_popup_service_1 = require("./common/single-popup.service");
|
|
54
|
-
var drag_and_drop_service_1 = require("./dragdrop/drag-and-drop.service");
|
|
55
|
-
var drag_hint_service_1 = require("./dragdrop/drag-hint.service");
|
|
56
|
-
var drop_cue_service_1 = require("./dragdrop/drop-cue.service");
|
|
57
|
-
var column_reorder_service_1 = require("./dragdrop/column-reorder.service");
|
|
58
|
-
var column_reorder_event_1 = require("./dragdrop/column-reorder-event");
|
|
59
|
-
var focus_root_1 = require("./navigation/focus-root");
|
|
60
|
-
var navigation_service_1 = require("./navigation/navigation.service");
|
|
61
|
-
var navigation_metadata_1 = require("./navigation/navigation-metadata");
|
|
62
|
-
var id_service_1 = require("./common/id.service");
|
|
63
|
-
var column_info_service_1 = require("./common/column-info.service");
|
|
64
|
-
var scroll_request_service_1 = require("./scrolling/scroll-request.service");
|
|
65
|
-
var sort_service_1 = require("./common/sort.service");
|
|
66
|
-
var column_menu_template_directive_1 = require("./column-menu/column-menu-template.directive");
|
|
67
|
-
var column_visibility_change_event_1 = require("./column-menu/column-visibility-change-event");
|
|
68
|
-
var column_locked_change_event_1 = require("./column-menu/column-locked-change-event");
|
|
69
|
-
var constants_1 = require("./constants");
|
|
70
|
-
var column_common_2 = require("./columns/column-common");
|
|
71
|
-
var default_track_by_1 = require("./common/default-track-by");
|
|
72
|
-
var cell_selection_service_1 = require("./selection/cell-selection.service");
|
|
73
|
-
var column_sticky_change_event_1 = require("./column-menu/column-sticky-change-event");
|
|
74
|
-
var cell_loading_template_directive_1 = require("./rendering/cell-loading.template.directive");
|
|
75
|
-
var createControl = function (source) { return function (acc, key) {
|
|
76
|
-
acc[key] = new forms_1.FormControl(source[key]);
|
|
77
|
-
return acc;
|
|
78
|
-
}; };
|
|
79
|
-
var ɵ0 = createControl;
|
|
80
|
-
exports.ɵ0 = ɵ0;
|
|
81
|
-
var validateColumnsField = function (columns) {
|
|
82
|
-
return column_common_1.expandColumns(columns.toArray())
|
|
83
|
-
.filter(column_component_1.isColumnComponent)
|
|
84
|
-
.filter(function (_a) {
|
|
85
|
-
var field = _a.field;
|
|
86
|
-
return !column_common_1.isValidFieldName(field);
|
|
87
|
-
})
|
|
88
|
-
.forEach(function (_a) {
|
|
89
|
-
var field = _a.field;
|
|
90
|
-
return console.warn("\n Grid column field name '" + field + "' does not look like a valid JavaScript identifier.\n Identifiers can contain only alphanumeric characters (including \"$\" or \"_\"), and may not start with a digit.\n Please use only valid identifier names to ensure error-free operation.\n ");
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
var ɵ1 = validateColumnsField;
|
|
94
|
-
exports.ɵ1 = ɵ1;
|
|
95
|
-
var handleExpandCollapseGroupsService = function (service, expandEmitter, collapseEmitter, map) { return (service.changes.pipe(operators_1.filter(function (_a) {
|
|
96
|
-
var group = _a.group;
|
|
97
|
-
return utils_1.isPresent(group);
|
|
98
|
-
}))
|
|
99
|
-
.subscribe(function (x) { return x.expand ? expandEmitter.emit(map(x)) : collapseEmitter.emit(map(x)); })); };
|
|
100
|
-
var ɵ2 = handleExpandCollapseGroupsService;
|
|
101
|
-
exports.ɵ2 = ɵ2;
|
|
102
|
-
var handleExpandCollapseDetailsService = function (service, expandEmitter, collapseEmitter, map) { return (service.changes.pipe(operators_1.filter(function (_a) {
|
|
103
|
-
var dataItem = _a.dataItem;
|
|
104
|
-
return utils_1.isPresent(dataItem);
|
|
105
|
-
}))
|
|
106
|
-
.subscribe(function (x) { return x.expand ? expandEmitter.emit(map(x)) : collapseEmitter.emit(map(x)); })); };
|
|
107
|
-
var ɵ3 = handleExpandCollapseDetailsService;
|
|
108
|
-
exports.ɵ3 = ɵ3;
|
|
109
|
-
var isInEditedCell = function (element, gridElement) {
|
|
110
|
-
return dom_queries_1.closest(element, dom_queries_1.matchesClasses('k-grid-edit-cell')) &&
|
|
111
|
-
dom_queries_1.closest(element, dom_queries_1.matchesNodeName('kendo-grid')) === gridElement;
|
|
112
|
-
};
|
|
113
|
-
var ɵ4 = isInEditedCell;
|
|
114
|
-
exports.ɵ4 = ɵ4;
|
|
115
|
-
var ɵ5 = cell_context_1.EMPTY_CELL_CONTEXT;
|
|
116
|
-
exports.ɵ5 = ɵ5;
|
|
117
|
-
/**
|
|
118
|
-
* Represents the Kendo UI Grid component for Angular.
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* ```ts-preview
|
|
122
|
-
* _@Component({
|
|
123
|
-
* selector: 'my-app',
|
|
124
|
-
* template: `
|
|
125
|
-
* <kendo-grid [data]="gridData">
|
|
126
|
-
* </kendo-grid>
|
|
127
|
-
* `
|
|
128
|
-
* })
|
|
129
|
-
* class AppComponent {
|
|
130
|
-
* public gridData: any[] = products;
|
|
131
|
-
* }
|
|
132
|
-
*
|
|
133
|
-
* const products = [{
|
|
134
|
-
* "ProductID": 1,
|
|
135
|
-
* "ProductName": "Chai",
|
|
136
|
-
* "UnitPrice": 18.0000,
|
|
137
|
-
* "Discontinued": true
|
|
138
|
-
* }, {
|
|
139
|
-
* "ProductID": 2,
|
|
140
|
-
* "ProductName": "Chang",
|
|
141
|
-
* "UnitPrice": 19.0000,
|
|
142
|
-
* "Discontinued": false
|
|
143
|
-
* }
|
|
144
|
-
* ];
|
|
145
|
-
* ```
|
|
146
|
-
*/
|
|
147
|
-
var GridComponent = /** @class */ (function () {
|
|
148
|
-
function GridComponent(supportService, selectionService, cellSelectionService, wrapper, groupInfoService, groupsService, changeNotification, detailsService, editService, filterService, pdfService, responsiveService, renderer, excelService, ngZone, scrollSyncService, domEvents, columnResizingService, changeDetectorRef, columnReorderService, columnInfoService, navigationService, sortService, scrollRequestService, localization) {
|
|
149
|
-
var _this = this;
|
|
150
|
-
this.supportService = supportService;
|
|
151
|
-
this.selectionService = selectionService;
|
|
152
|
-
this.cellSelectionService = cellSelectionService;
|
|
153
|
-
this.wrapper = wrapper;
|
|
154
|
-
this.groupInfoService = groupInfoService;
|
|
155
|
-
this.groupsService = groupsService;
|
|
156
|
-
this.changeNotification = changeNotification;
|
|
157
|
-
this.detailsService = detailsService;
|
|
158
|
-
this.editService = editService;
|
|
159
|
-
this.filterService = filterService;
|
|
160
|
-
this.pdfService = pdfService;
|
|
161
|
-
this.responsiveService = responsiveService;
|
|
162
|
-
this.renderer = renderer;
|
|
163
|
-
this.excelService = excelService;
|
|
164
|
-
this.ngZone = ngZone;
|
|
165
|
-
this.scrollSyncService = scrollSyncService;
|
|
166
|
-
this.domEvents = domEvents;
|
|
167
|
-
this.columnResizingService = columnResizingService;
|
|
168
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
169
|
-
this.columnReorderService = columnReorderService;
|
|
170
|
-
this.columnInfoService = columnInfoService;
|
|
171
|
-
this.navigationService = navigationService;
|
|
172
|
-
this.sortService = sortService;
|
|
173
|
-
this.scrollRequestService = scrollRequestService;
|
|
174
|
-
this.localization = localization;
|
|
175
|
-
/**
|
|
176
|
-
* Sets the data of the Grid. If an array is provided, the Grid automatically gets the total count
|
|
177
|
-
* ([more information and example]({% slug databinding_grid %})).
|
|
178
|
-
*/
|
|
179
|
-
this.data = [];
|
|
180
|
-
/**
|
|
181
|
-
* Defines the scroll mode used by the Grid.
|
|
182
|
-
*
|
|
183
|
-
* The available options are:
|
|
184
|
-
* - `none`—Renders no scrollbar.
|
|
185
|
-
* - `scrollable`—The default scroll mode. It requires the setting of the `height` option.
|
|
186
|
-
* - `virtual`—Displays no pager and renders a portion of the data (optimized rendering) while the user is scrolling the content.
|
|
187
|
-
*/
|
|
188
|
-
this.scrollable = 'scrollable';
|
|
189
|
-
/**
|
|
190
|
-
* Enables the single-row [selection]({% slug selection_grid %}) of the Grid.
|
|
191
|
-
*/
|
|
192
|
-
this.selectable = false;
|
|
193
|
-
/**
|
|
194
|
-
* A function that defines how to track changes for the data rows.
|
|
195
|
-
*
|
|
196
|
-
* By default, the Grid tracks changes by the index of the data item.
|
|
197
|
-
* Edited rows are tracked by reference.
|
|
198
|
-
* In some cases, you might need to override the default behavior,
|
|
199
|
-
* for example, when you implement editing with immutable data items.
|
|
200
|
-
*
|
|
201
|
-
* The following example demonstrates how to track items only by index.
|
|
202
|
-
*
|
|
203
|
-
* @example
|
|
204
|
-
* ```ts
|
|
205
|
-
* import { Component } from '@angular/core';
|
|
206
|
-
* import { GridItem } from '@progress/kendo-angular-grid';
|
|
207
|
-
*
|
|
208
|
-
* _@Component({
|
|
209
|
-
* selector: 'my-app',
|
|
210
|
-
* template: `
|
|
211
|
-
* <kendo-grid [data]="gridData" [trackBy]="trackBy">
|
|
212
|
-
* </kendo-grid>
|
|
213
|
-
* `
|
|
214
|
-
* })
|
|
215
|
-
* class AppComponent {
|
|
216
|
-
* public gridData: any[] = products;
|
|
217
|
-
*
|
|
218
|
-
* public trackBy(index: number, item: GridItem): any {
|
|
219
|
-
* console.log(item);
|
|
220
|
-
* return index;
|
|
221
|
-
* }
|
|
222
|
-
* }
|
|
223
|
-
*
|
|
224
|
-
* const products = [{
|
|
225
|
-
* "ProductID": 1,
|
|
226
|
-
* "ProductName": "Chai",
|
|
227
|
-
* "UnitPrice": 18.0000,
|
|
228
|
-
* "Discontinued": true
|
|
229
|
-
* }, {
|
|
230
|
-
* "ProductID": 2,
|
|
231
|
-
* "ProductName": "Chang",
|
|
232
|
-
* "UnitPrice": 19.0000,
|
|
233
|
-
* "Discontinued": false
|
|
234
|
-
* }
|
|
235
|
-
* ];
|
|
236
|
-
* ```
|
|
237
|
-
*/
|
|
238
|
-
this.trackBy = default_track_by_1.defaultTrackBy;
|
|
239
|
-
/**
|
|
240
|
-
* If set to `true`, the grid will render only the columns in the current viewport.
|
|
241
|
-
*/
|
|
242
|
-
this.virtualColumns = false;
|
|
243
|
-
/**
|
|
244
|
-
* Enables the [filtering]({% slug filtering_grid %}) of the Grid columns that have their `field` option set.
|
|
245
|
-
*/
|
|
246
|
-
this.filterable = false;
|
|
247
|
-
/**
|
|
248
|
-
* Enables the [sorting]({% slug sorting_grid %}) of the Grid columns that have their `field` option set.
|
|
249
|
-
*/
|
|
250
|
-
this.sortable = false;
|
|
251
|
-
/**
|
|
252
|
-
* Configures the pager of the Grid ([see example]({% slug paging_grid %})).
|
|
253
|
-
*
|
|
254
|
-
* The available options are:
|
|
255
|
-
* - `buttonCount: Number`—Sets the maximum numeric buttons count before the buttons are collapsed. Defaults to `10`.
|
|
256
|
-
* - `info: Boolean`—Toggles the information about the current page and the total number of records. Defaults to `true`.
|
|
257
|
-
* - `type: PagerType`—Accepts the `numeric` (buttons with numbers) and `input` (input for typing the page number) values. Defaults to `'numeric'`.
|
|
258
|
-
* - `pageSizes: Boolean` or `Array<number>`—Shows a menu for selecting the page size. Defaults to `false`.
|
|
259
|
-
* - `previousNext: Boolean`—Toggles the **Previous** and **Next** buttons. Defaults to `true`.
|
|
260
|
-
* - `responsive: Boolean`—Toggles the built-in responsive behavior of the Pager. Defaults to `true`.
|
|
261
|
-
*/
|
|
262
|
-
this.pageable = false;
|
|
263
|
-
/**
|
|
264
|
-
* If set to `true`, the user can group the Grid by dragging the column header cells.
|
|
265
|
-
* By default, grouping is disabled ([see example]({% slug groupingbasics_grid %})).
|
|
266
|
-
*/
|
|
267
|
-
this.groupable = false;
|
|
268
|
-
/**
|
|
269
|
-
* If set to `true`, the user can use dedicated shortcuts to interact with the Grid.
|
|
270
|
-
* By default, navigation is disabled and the Grid content is accessible in the normal tab sequence.
|
|
271
|
-
*/
|
|
272
|
-
this.navigable = false;
|
|
273
|
-
/**
|
|
274
|
-
* Indicates whether the Grid columns will be resized during initialization so that
|
|
275
|
-
* they fit their headers and row content. Defaults to `false`.
|
|
276
|
-
* Columns with `autoSize` set to `false` are excluded.
|
|
277
|
-
* To dynamically update the column width to match the new content,
|
|
278
|
-
* refer to [this example]({% slug resizing_columns_grid %}).
|
|
279
|
-
*/
|
|
280
|
-
this.autoSize = false;
|
|
281
|
-
/**
|
|
282
|
-
* If set to `true`, the user can resize columns by dragging the edges (resize handles) of their header cells
|
|
283
|
-
* ([see example]({% slug resizing_columns_grid %})).
|
|
284
|
-
*
|
|
285
|
-
* @default false
|
|
286
|
-
*/
|
|
287
|
-
this.resizable = false;
|
|
288
|
-
/**
|
|
289
|
-
* If set to `true`, the user can reorder columns by dragging their header cells
|
|
290
|
-
* ([see example]({% slug reordering_columns_grid %})).
|
|
291
|
-
*
|
|
292
|
-
* @default false
|
|
293
|
-
*/
|
|
294
|
-
this.reorderable = false;
|
|
295
|
-
/**
|
|
296
|
-
* Specifies if the loading indicator of the Grid will be displayed ([see example]({% slug databinding_grid %})).
|
|
297
|
-
*
|
|
298
|
-
* @default false
|
|
299
|
-
*/
|
|
300
|
-
this.loading = false;
|
|
301
|
-
/**
|
|
302
|
-
* Specifies if the column menu of the columns will be displayed ([see example]({% slug columnmenu_grid %})).
|
|
303
|
-
*
|
|
304
|
-
* @default false
|
|
305
|
-
*/
|
|
306
|
-
this.columnMenu = false;
|
|
307
|
-
/**
|
|
308
|
-
* Specifies if the header of the grid will be hidden. The header is visible by default.
|
|
309
|
-
*
|
|
310
|
-
* > The header includes column headers and the [filter row]({% slug filtering_grid %}#toc-filter-row).
|
|
311
|
-
*/
|
|
312
|
-
this.hideHeader = false;
|
|
313
|
-
/**
|
|
314
|
-
* Fires when the Grid filter is modified through the UI.
|
|
315
|
-
* You have to handle the event yourself and filter the data.
|
|
316
|
-
*/
|
|
317
|
-
this.filterChange = new core_1.EventEmitter();
|
|
318
|
-
/**
|
|
319
|
-
* Fires when the page of the Grid is changed ([see example]({% slug paging_grid %})).
|
|
320
|
-
* You have to handle the event yourself and page the data.
|
|
321
|
-
*/
|
|
322
|
-
this.pageChange = new core_1.EventEmitter();
|
|
323
|
-
/**
|
|
324
|
-
* Fires when the grouping of the Grid is changed.
|
|
325
|
-
* You have to handle the event yourself and group the data ([see example]({% slug groupingbasics_grid %})).
|
|
326
|
-
*/
|
|
327
|
-
this.groupChange = new event_emitter_1.ZoneAwareEventEmitter(this.ngZone);
|
|
328
|
-
/**
|
|
329
|
-
* Fires when the sorting of the Grid is changed ([see example]({% slug sorting_grid %})).
|
|
330
|
-
* You have to handle the event yourself and sort the data.
|
|
331
|
-
*/
|
|
332
|
-
this.sortChange = new core_1.EventEmitter();
|
|
333
|
-
/**
|
|
334
|
-
* Fires when the user selects a Grid row.
|
|
335
|
-
* Emits the [SelectionEvent]({% slug api_grid_selectionevent %}#toc-selectionchange).
|
|
336
|
-
*/
|
|
337
|
-
this.selectionChange = new core_1.EventEmitter();
|
|
338
|
-
/**
|
|
339
|
-
* Fires when the data state of the Grid is changed.
|
|
340
|
-
*/
|
|
341
|
-
this.dataStateChange = new core_1.EventEmitter();
|
|
342
|
-
/**
|
|
343
|
-
* Fires when the user expands a group header.
|
|
344
|
-
*/
|
|
345
|
-
this.groupExpand = new core_1.EventEmitter();
|
|
346
|
-
/**
|
|
347
|
-
* Fires when the user collapses a group header.
|
|
348
|
-
*/
|
|
349
|
-
this.groupCollapse = new core_1.EventEmitter();
|
|
350
|
-
/**
|
|
351
|
-
* Fires when the user expands a master row.
|
|
352
|
-
*/
|
|
353
|
-
this.detailExpand = new core_1.EventEmitter();
|
|
354
|
-
/**
|
|
355
|
-
* Fires when the user collapses a master row.
|
|
356
|
-
*/
|
|
357
|
-
this.detailCollapse = new core_1.EventEmitter();
|
|
358
|
-
/**
|
|
359
|
-
* Fires when the user clicks the **Edit** command button to edit a row
|
|
360
|
-
* ([see example]({% slug editing_template_forms_grid %}#toc-editing-records)).
|
|
361
|
-
*/
|
|
362
|
-
this.edit = new core_1.EventEmitter();
|
|
363
|
-
/**
|
|
364
|
-
* Fires when the user clicks the **Cancel** command button to close a row
|
|
365
|
-
* ([see example]({% slug editing_template_forms_grid %}#toc-cancelling-editing)).
|
|
366
|
-
*/
|
|
367
|
-
this.cancel = new core_1.EventEmitter();
|
|
368
|
-
/**
|
|
369
|
-
* Fires when the user clicks the **Save** command button to save changes in a row
|
|
370
|
-
* ([see example]({% slug editing_template_forms_grid %}#toc-saving-records)).
|
|
371
|
-
*/
|
|
372
|
-
this.save = new core_1.EventEmitter();
|
|
373
|
-
/**
|
|
374
|
-
* Fires when the user clicks the **Remove** command button to remove a row
|
|
375
|
-
* ([see example]({% slug editing_template_forms_grid %}#toc-removing-records)).
|
|
376
|
-
*/
|
|
377
|
-
this.remove = new core_1.EventEmitter();
|
|
378
|
-
/**
|
|
379
|
-
* Fires when the user clicks the **Add** command button to add a new row
|
|
380
|
-
* ([see example]({% slug editing_template_forms_grid %}#toc-adding-records)).
|
|
381
|
-
*/
|
|
382
|
-
this.add = new core_1.EventEmitter();
|
|
383
|
-
/**
|
|
384
|
-
* Fires when the user leaves an edited cell ([see example]({% slug editing_incell_grid %}#toc-basic-concepts)).
|
|
385
|
-
*/
|
|
386
|
-
this.cellClose = new core_1.EventEmitter();
|
|
387
|
-
/**
|
|
388
|
-
* Fires when the user clicks a cell ([see example]({% slug editing_incell_grid %}#toc-basic-concepts)).
|
|
389
|
-
*/
|
|
390
|
-
this.cellClick = new event_emitter_1.ZoneAwareEventEmitter(this.ngZone);
|
|
391
|
-
/**
|
|
392
|
-
* Fires when the user clicks the **Export to PDF** command button.
|
|
393
|
-
*/
|
|
394
|
-
this.pdfExport = new core_1.EventEmitter();
|
|
395
|
-
/**
|
|
396
|
-
* Fires when the user clicks the **Export to Excel** command button.
|
|
397
|
-
*/
|
|
398
|
-
this.excelExport = new core_1.EventEmitter();
|
|
399
|
-
/**
|
|
400
|
-
* Fires when the user completes the resizing of the column.
|
|
401
|
-
*/
|
|
402
|
-
this.columnResize = new event_emitter_1.ZoneAwareEventEmitter(this.ngZone);
|
|
403
|
-
/**
|
|
404
|
-
* Fires when the user completes the reordering of the column.
|
|
405
|
-
*/
|
|
406
|
-
this.columnReorder = new core_1.EventEmitter();
|
|
407
|
-
/**
|
|
408
|
-
* Fires when the user changes the visibility of the columns from the column menu or column chooser.
|
|
409
|
-
*/
|
|
410
|
-
this.columnVisibilityChange = new core_1.EventEmitter();
|
|
411
|
-
/**
|
|
412
|
-
* Fires when the user changes the locked state of the columns from the column menu or by reordering the columns.
|
|
413
|
-
*/
|
|
414
|
-
this.columnLockedChange = new core_1.EventEmitter();
|
|
415
|
-
/**
|
|
416
|
-
* Fires when the user changes the sticky state of the columns from the column menu.
|
|
417
|
-
*/
|
|
418
|
-
this.columnStickyChange = new core_1.EventEmitter();
|
|
419
|
-
/**
|
|
420
|
-
* Fires when the user scrolls to the last record on the page and enables endless scrolling
|
|
421
|
-
* ([see example]({% slug scrollmmodes_grid %}#toc-endless-scrolling)).
|
|
422
|
-
* You have to handle the event yourself and page the data.
|
|
423
|
-
*/
|
|
424
|
-
this.scrollBottom = new core_1.EventEmitter();
|
|
425
|
-
/**
|
|
426
|
-
* Fires when the grid content is scrolled.
|
|
427
|
-
* For performance reasons, the event is triggered outside the Angular zone. Enter the Angular zone if you make any changes that require change detection.
|
|
428
|
-
*/
|
|
429
|
-
this.contentScroll = new core_1.EventEmitter();
|
|
430
|
-
/**
|
|
431
|
-
* A query list of all declared columns.
|
|
432
|
-
*/
|
|
433
|
-
this.columns = new core_1.QueryList();
|
|
434
|
-
this.footer = new core_1.QueryList();
|
|
435
|
-
this.selectionDirective = false;
|
|
436
|
-
this.columnsContainer = new columns_container_1.ColumnsContainer(function () { return _this.columnList.filterHierarchy(function (column) {
|
|
437
|
-
column.matchesMedia = _this.matchesMedia(column);
|
|
438
|
-
return column.isVisible;
|
|
439
|
-
}); });
|
|
440
|
-
this.view = new data_collection_1.DataCollection(function () { return new data_collection_1.DataResultIterator(_this.data, _this.skip, _this.hasGroupFooters); });
|
|
441
|
-
this.shouldGenerateColumns = true;
|
|
442
|
-
this._sort = new Array();
|
|
443
|
-
this._group = new Array();
|
|
444
|
-
this._skip = 0;
|
|
445
|
-
this.cachedWindowWidth = 0;
|
|
446
|
-
this._rowSelected = null;
|
|
447
|
-
this._cellSelected = null;
|
|
448
|
-
this.rtl = false;
|
|
449
|
-
this._rowClass = function () { return null; };
|
|
450
|
-
kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
|
|
451
|
-
this.localizationSubscription = this.localization.changes.subscribe(function (_a) {
|
|
452
|
-
var rtl = _a.rtl;
|
|
453
|
-
_this.rtl = rtl;
|
|
454
|
-
_this.direction = _this.rtl ? 'rtl' : 'ltr';
|
|
455
|
-
});
|
|
456
|
-
this.groupInfoService.registerColumnsContainer(function () { return _this.columnList; });
|
|
457
|
-
this.columnInfoService.init(this.columnsContainer, function () { return _this.columnList; });
|
|
458
|
-
this.columnVisibilityChangeSubscription = this.columnInfoService.visibilityChange.subscribe(function (changed) {
|
|
459
|
-
_this.columnVisibilityChange.emit(new column_visibility_change_event_1.ColumnVisibilityChangeEvent(changed));
|
|
460
|
-
});
|
|
461
|
-
this.columnLockedChangeSubscription = this.columnInfoService.lockedChange.subscribe(function (changed) {
|
|
462
|
-
_this.columnLockedChange.emit(new column_locked_change_event_1.ColumnLockedChangeEvent(changed));
|
|
463
|
-
});
|
|
464
|
-
this.columnStickyChangeSubscription = this.columnInfoService.stickyChange.subscribe(function (changed) {
|
|
465
|
-
_this.columnStickyChange.emit(new column_sticky_change_event_1.ColumnStickyChangeEvent(changed));
|
|
466
|
-
});
|
|
467
|
-
this.groupExpandCollapseSubscription = handleExpandCollapseGroupsService(groupsService, this.groupExpand, this.groupCollapse, function (_a) {
|
|
468
|
-
var group = _a.group, groupIndex = _a.groupIndex, parentGroup = _a.parentGroup;
|
|
469
|
-
return ({ group: group, groupIndex: groupIndex, parentGroup: parentGroup });
|
|
470
|
-
});
|
|
471
|
-
this.detailsServiceSubscription = handleExpandCollapseDetailsService(detailsService, this.detailExpand, this.detailCollapse, function (args) { return args; });
|
|
472
|
-
this.filterSubscription = this.filterService.changes.subscribe(function (x) {
|
|
473
|
-
_this.filterChange.emit(x);
|
|
474
|
-
});
|
|
475
|
-
this.sortSubscription = this.sortService.changes.subscribe(function (x) {
|
|
476
|
-
_this.sortChange.emit(x);
|
|
477
|
-
});
|
|
478
|
-
this.attachStateChangesEmitter();
|
|
479
|
-
this.attachEditHandlers();
|
|
480
|
-
this.attachDomEventHandlers();
|
|
481
|
-
this.pdfSubscription = this.pdfService.exportClick.subscribe(this.emitPDFExportEvent.bind(this));
|
|
482
|
-
this.excelSubscription = this.excelService.exportClick.subscribe(this.saveAsExcel.bind(this));
|
|
483
|
-
this.columnsContainerChange();
|
|
484
|
-
this.handleColumnResize();
|
|
485
|
-
this.columnList = new column_list_1.ColumnList(this.columns);
|
|
486
|
-
this.columnReorderSubscription = this.columnReorderService
|
|
487
|
-
.changes.subscribe(this.reorder.bind(this));
|
|
488
|
-
this.columnRangeChangeSubscription = this.columnInfoService.columnRangeChange.subscribe(this.onColumnRangeChange.bind(this));
|
|
489
|
-
}
|
|
490
|
-
Object.defineProperty(GridComponent.prototype, "skip", {
|
|
491
|
-
/**
|
|
492
|
-
* Defines the number of records to be skipped by the pager.
|
|
493
|
-
* Required by the [paging]({% slug paging_grid %}) functionality.
|
|
494
|
-
*/
|
|
495
|
-
get: function () {
|
|
496
|
-
return this._skip;
|
|
497
|
-
},
|
|
498
|
-
set: function (value) {
|
|
499
|
-
if (value >= 0) {
|
|
500
|
-
this._skip = value;
|
|
501
|
-
}
|
|
502
|
-
},
|
|
503
|
-
enumerable: true,
|
|
504
|
-
configurable: true
|
|
505
|
-
});
|
|
506
|
-
Object.defineProperty(GridComponent.prototype, "sort", {
|
|
507
|
-
get: function () {
|
|
508
|
-
return this._sort;
|
|
509
|
-
},
|
|
510
|
-
/**
|
|
511
|
-
* The descriptors by which the data will be sorted ([see example]({% slug sorting_grid %})).
|
|
512
|
-
*/
|
|
513
|
-
set: function (value) {
|
|
514
|
-
if (utils_1.isArray(value)) {
|
|
515
|
-
this._sort = value;
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
|
-
enumerable: true,
|
|
519
|
-
configurable: true
|
|
520
|
-
});
|
|
521
|
-
Object.defineProperty(GridComponent.prototype, "group", {
|
|
522
|
-
/**
|
|
523
|
-
*/
|
|
524
|
-
get: function () {
|
|
525
|
-
return this._group;
|
|
526
|
-
},
|
|
527
|
-
/**
|
|
528
|
-
* The descriptors by which the data will be grouped ([see example]({% slug groupingbasics_grid %})).
|
|
529
|
-
*/
|
|
530
|
-
set: function (value) {
|
|
531
|
-
if (utils_1.isArray(value)) {
|
|
532
|
-
this._group = value;
|
|
533
|
-
}
|
|
534
|
-
},
|
|
535
|
-
enumerable: true,
|
|
536
|
-
configurable: true
|
|
537
|
-
});
|
|
538
|
-
Object.defineProperty(GridComponent.prototype, "showTopToolbar", {
|
|
539
|
-
/**
|
|
540
|
-
* @hidden
|
|
541
|
-
*/
|
|
542
|
-
get: function () {
|
|
543
|
-
return this.toolbarTemplate && ['top', 'both'].indexOf(this.toolbarTemplate.position) > -1;
|
|
544
|
-
},
|
|
545
|
-
enumerable: true,
|
|
546
|
-
configurable: true
|
|
547
|
-
});
|
|
548
|
-
Object.defineProperty(GridComponent.prototype, "showBottomToolbar", {
|
|
549
|
-
/**
|
|
550
|
-
* @hidden
|
|
551
|
-
*/
|
|
552
|
-
get: function () {
|
|
553
|
-
return this.toolbarTemplate && ['bottom', 'both'].indexOf(this.toolbarTemplate.position) > -1;
|
|
554
|
-
},
|
|
555
|
-
enumerable: true,
|
|
556
|
-
configurable: true
|
|
557
|
-
});
|
|
558
|
-
Object.defineProperty(GridComponent.prototype, "isLocked", {
|
|
559
|
-
/**
|
|
560
|
-
* @hidden
|
|
561
|
-
*/
|
|
562
|
-
get: function () {
|
|
563
|
-
return this.lockedLeafColumns.length > 0;
|
|
564
|
-
},
|
|
565
|
-
enumerable: true,
|
|
566
|
-
configurable: true
|
|
567
|
-
});
|
|
568
|
-
Object.defineProperty(GridComponent.prototype, "showTopPager", {
|
|
569
|
-
/**
|
|
570
|
-
* @hidden
|
|
571
|
-
*/
|
|
572
|
-
get: function () {
|
|
573
|
-
var position = this.pageable.position;
|
|
574
|
-
return !this.isVirtual && this.pageable !== false && ['top', 'both'].indexOf(position) > -1;
|
|
575
|
-
},
|
|
576
|
-
enumerable: true,
|
|
577
|
-
configurable: true
|
|
578
|
-
});
|
|
579
|
-
Object.defineProperty(GridComponent.prototype, "showBottomPager", {
|
|
580
|
-
/**
|
|
581
|
-
* @hidden
|
|
582
|
-
*/
|
|
583
|
-
get: function () {
|
|
584
|
-
var position = this.pageable.position;
|
|
585
|
-
return !this.isVirtual && this.pageable !== false && position !== 'top';
|
|
586
|
-
},
|
|
587
|
-
enumerable: true,
|
|
588
|
-
configurable: true
|
|
589
|
-
});
|
|
590
|
-
Object.defineProperty(GridComponent.prototype, "hasPager", {
|
|
591
|
-
/**
|
|
592
|
-
* @hidden
|
|
593
|
-
*/
|
|
594
|
-
get: function () {
|
|
595
|
-
return this.showTopPager || this.showBottomPager;
|
|
596
|
-
},
|
|
597
|
-
enumerable: true,
|
|
598
|
-
configurable: true
|
|
599
|
-
});
|
|
600
|
-
Object.defineProperty(GridComponent.prototype, "showGroupPanel", {
|
|
601
|
-
/**
|
|
602
|
-
* @hidden
|
|
603
|
-
*/
|
|
604
|
-
get: function () {
|
|
605
|
-
return this.groupable && this.groupable.enabled !== false;
|
|
606
|
-
},
|
|
607
|
-
enumerable: true,
|
|
608
|
-
configurable: true
|
|
609
|
-
});
|
|
610
|
-
Object.defineProperty(GridComponent.prototype, "groupableEmptyText", {
|
|
611
|
-
/**
|
|
612
|
-
* @hidden
|
|
613
|
-
*/
|
|
614
|
-
get: function () {
|
|
615
|
-
return this.groupable.emptyText;
|
|
616
|
-
},
|
|
617
|
-
enumerable: true,
|
|
618
|
-
configurable: true
|
|
619
|
-
});
|
|
620
|
-
Object.defineProperty(GridComponent.prototype, "marqueeSelection", {
|
|
621
|
-
/**
|
|
622
|
-
* @hidden
|
|
623
|
-
*/
|
|
624
|
-
get: function () {
|
|
625
|
-
return this.selectionService.enableMarquee || this.cellSelectionService.enableMarquee;
|
|
626
|
-
},
|
|
627
|
-
enumerable: true,
|
|
628
|
-
configurable: true
|
|
629
|
-
});
|
|
630
|
-
Object.defineProperty(GridComponent.prototype, "navigatable", {
|
|
631
|
-
/**
|
|
632
|
-
* @hidden
|
|
633
|
-
*/
|
|
634
|
-
get: function () {
|
|
635
|
-
return this.navigable;
|
|
636
|
-
},
|
|
637
|
-
/**
|
|
638
|
-
* @hidden
|
|
639
|
-
*
|
|
640
|
-
* An alias for `navigable` for users who migrate from Kendo UI for jQuery.
|
|
641
|
-
*/
|
|
642
|
-
set: function (value) {
|
|
643
|
-
this.navigable = value;
|
|
644
|
-
},
|
|
645
|
-
enumerable: true,
|
|
646
|
-
configurable: true
|
|
647
|
-
});
|
|
648
|
-
Object.defineProperty(GridComponent.prototype, "rowClass", {
|
|
649
|
-
get: function () {
|
|
650
|
-
return this._rowClass;
|
|
651
|
-
},
|
|
652
|
-
/**
|
|
653
|
-
* Defines a function that is executed for every data row in the component.
|
|
654
|
-
*
|
|
655
|
-
* @example
|
|
656
|
-
* ```ts
|
|
657
|
-
* import { Component, ViewEncapsulation } from '@angular/core';
|
|
658
|
-
* import { RowClassArgs } from '@progress/kendo-angular-grid';
|
|
659
|
-
*
|
|
660
|
-
* _@Component({
|
|
661
|
-
* selector: 'my-app',
|
|
662
|
-
* encapsulation: ViewEncapsulation.None,
|
|
663
|
-
* styles: [`
|
|
664
|
-
* .k-grid tr.even { background-color: #f45c42; }
|
|
665
|
-
* .k-grid tr.odd { background-color: #41f4df; }
|
|
666
|
-
* `],
|
|
667
|
-
* template: `
|
|
668
|
-
* <kendo-grid [data]="gridData" [rowClass]="rowCallback">
|
|
669
|
-
* </kendo-grid>
|
|
670
|
-
* `
|
|
671
|
-
* })
|
|
672
|
-
* class AppComponent {
|
|
673
|
-
* public gridData: any[] = products;
|
|
674
|
-
*
|
|
675
|
-
* public rowCallback(context: RowClassArgs) {
|
|
676
|
-
* const isEven = context.index % 2 == 0;
|
|
677
|
-
* return {
|
|
678
|
-
* even: isEven,
|
|
679
|
-
* odd: !isEven
|
|
680
|
-
* };
|
|
681
|
-
* }
|
|
682
|
-
* }
|
|
683
|
-
*
|
|
684
|
-
* const products = [{
|
|
685
|
-
* "ProductID": 1,
|
|
686
|
-
* "ProductName": "Chai",
|
|
687
|
-
* "UnitPrice": 18.0000,
|
|
688
|
-
* "Discontinued": true
|
|
689
|
-
* }, {
|
|
690
|
-
* "ProductID": 2,
|
|
691
|
-
* "ProductName": "Chang",
|
|
692
|
-
* "UnitPrice": 19.0000,
|
|
693
|
-
* "Discontinued": false
|
|
694
|
-
* }
|
|
695
|
-
* ];
|
|
696
|
-
* ```
|
|
697
|
-
*/
|
|
698
|
-
set: function (fn) {
|
|
699
|
-
if (core_1.isDevMode && typeof fn !== 'function') {
|
|
700
|
-
throw new Error("rowClass must be a function, but received " + JSON.stringify(fn) + ".");
|
|
701
|
-
}
|
|
702
|
-
this._rowClass = fn;
|
|
703
|
-
},
|
|
704
|
-
enumerable: true,
|
|
705
|
-
configurable: true
|
|
706
|
-
});
|
|
707
|
-
Object.defineProperty(GridComponent.prototype, "rowSticky", {
|
|
708
|
-
get: function () {
|
|
709
|
-
return this._rowSticky;
|
|
710
|
-
},
|
|
711
|
-
/**
|
|
712
|
-
* Defines a function that is executed for every data row in the component,
|
|
713
|
-
* and determines whether the row will be sticky, i.e. always visible after scrolling.
|
|
714
|
-
*/
|
|
715
|
-
set: function (fn) {
|
|
716
|
-
if (core_1.isDevMode && utils_1.isPresent(fn) && typeof fn !== 'function') {
|
|
717
|
-
throw new Error("rowSticky must be a function, but received " + JSON.stringify(fn) + ".");
|
|
718
|
-
}
|
|
719
|
-
if (utils_1.isPresent(fn)) {
|
|
720
|
-
this._rowSticky = fn;
|
|
721
|
-
}
|
|
722
|
-
},
|
|
723
|
-
enumerable: true,
|
|
724
|
-
configurable: true
|
|
725
|
-
});
|
|
726
|
-
Object.defineProperty(GridComponent.prototype, "rowSelected", {
|
|
727
|
-
get: function () {
|
|
728
|
-
return this._rowSelected;
|
|
729
|
-
},
|
|
730
|
-
/**
|
|
731
|
-
* Defines a Boolean function that is executed for each data row in the component
|
|
732
|
-
* ([see example]({% slug grid_selection_custom %}#toc-setting-the-selected-rows)).
|
|
733
|
-
* Determines whether the row will be selected.
|
|
734
|
-
*/
|
|
735
|
-
set: function (fn) {
|
|
736
|
-
if (core_1.isDevMode && typeof fn !== 'function') {
|
|
737
|
-
throw new Error("rowSelected must be a function, but received " + JSON.stringify(fn) + ".");
|
|
738
|
-
}
|
|
739
|
-
this._rowSelected = fn;
|
|
740
|
-
},
|
|
741
|
-
enumerable: true,
|
|
742
|
-
configurable: true
|
|
743
|
-
});
|
|
744
|
-
Object.defineProperty(GridComponent.prototype, "cellSelected", {
|
|
745
|
-
get: function () {
|
|
746
|
-
return this._cellSelected;
|
|
747
|
-
},
|
|
748
|
-
/**
|
|
749
|
-
* Defines a function that determines the selected state of a data cell.
|
|
750
|
-
* Returns an object with `selected` and `item` properties.
|
|
751
|
-
* The cell is marked as selected only if the `selected` property equals `true`.
|
|
752
|
-
*
|
|
753
|
-
* The function is executed for each data cell and may be called more than once
|
|
754
|
-
* as part of a change detection cycle. ([see example]({% slug grid_selection_custom %}#toc-setting-the-selected-cells))
|
|
755
|
-
*/
|
|
756
|
-
set: function (fn) {
|
|
757
|
-
if (core_1.isDevMode && typeof fn !== 'function') {
|
|
758
|
-
throw new Error("cellSelected must be a function, but received " + JSON.stringify(fn) + ".");
|
|
759
|
-
}
|
|
760
|
-
this._cellSelected = fn;
|
|
761
|
-
},
|
|
762
|
-
enumerable: true,
|
|
763
|
-
configurable: true
|
|
764
|
-
});
|
|
765
|
-
Object.defineProperty(GridComponent.prototype, "activeCell", {
|
|
766
|
-
/**
|
|
767
|
-
* Returns the currently focused cell (if any).
|
|
768
|
-
*/
|
|
769
|
-
get: function () {
|
|
770
|
-
return this.navigationService.activeCell;
|
|
771
|
-
},
|
|
772
|
-
enumerable: true,
|
|
773
|
-
configurable: true
|
|
774
|
-
});
|
|
775
|
-
Object.defineProperty(GridComponent.prototype, "activeRow", {
|
|
776
|
-
/**
|
|
777
|
-
* Returns the currently focused row (if any).
|
|
778
|
-
*/
|
|
779
|
-
get: function () {
|
|
780
|
-
return this.navigationService.activeRow;
|
|
781
|
-
},
|
|
782
|
-
enumerable: true,
|
|
783
|
-
configurable: true
|
|
784
|
-
});
|
|
785
|
-
Object.defineProperty(GridComponent.prototype, "dir", {
|
|
786
|
-
get: function () {
|
|
787
|
-
return this.direction;
|
|
788
|
-
},
|
|
789
|
-
enumerable: true,
|
|
790
|
-
configurable: true
|
|
791
|
-
});
|
|
792
|
-
Object.defineProperty(GridComponent.prototype, "hostClasses", {
|
|
793
|
-
get: function () {
|
|
794
|
-
return true;
|
|
795
|
-
},
|
|
796
|
-
enumerable: true,
|
|
797
|
-
configurable: true
|
|
798
|
-
});
|
|
799
|
-
Object.defineProperty(GridComponent.prototype, "lockedClasses", {
|
|
800
|
-
get: function () {
|
|
801
|
-
return this.lockedLeafColumns.length > 0;
|
|
802
|
-
},
|
|
803
|
-
enumerable: true,
|
|
804
|
-
configurable: true
|
|
805
|
-
});
|
|
806
|
-
Object.defineProperty(GridComponent.prototype, "virtualClasses", {
|
|
807
|
-
get: function () {
|
|
808
|
-
return this.isVirtual;
|
|
809
|
-
},
|
|
810
|
-
enumerable: true,
|
|
811
|
-
configurable: true
|
|
812
|
-
});
|
|
813
|
-
Object.defineProperty(GridComponent.prototype, "noScrollbarClass", {
|
|
814
|
-
get: function () {
|
|
815
|
-
return this.scrollbarWidth === 0;
|
|
816
|
-
},
|
|
817
|
-
enumerable: true,
|
|
818
|
-
configurable: true
|
|
819
|
-
});
|
|
820
|
-
Object.defineProperty(GridComponent.prototype, "detailTemplate", {
|
|
821
|
-
get: function () {
|
|
822
|
-
if (this._customDetailTemplate) {
|
|
823
|
-
return this._customDetailTemplate;
|
|
824
|
-
}
|
|
825
|
-
return this.detailTemplateChildren ? this.detailTemplateChildren.first : undefined;
|
|
826
|
-
},
|
|
827
|
-
set: function (detailTemplate) {
|
|
828
|
-
this._customDetailTemplate = detailTemplate;
|
|
829
|
-
},
|
|
830
|
-
enumerable: true,
|
|
831
|
-
configurable: true
|
|
832
|
-
});
|
|
833
|
-
Object.defineProperty(GridComponent.prototype, "loadingTemplate", {
|
|
834
|
-
get: function () {
|
|
835
|
-
if (this._customLoadingTemplate) {
|
|
836
|
-
return this._customDetailTemplate;
|
|
837
|
-
}
|
|
838
|
-
return this.loadingTemplateChildren ? this.loadingTemplateChildren.first : undefined;
|
|
839
|
-
},
|
|
840
|
-
set: function (loadingTemplate) {
|
|
841
|
-
this._customLoadingTemplate = loadingTemplate;
|
|
842
|
-
},
|
|
843
|
-
enumerable: true,
|
|
844
|
-
configurable: true
|
|
845
|
-
});
|
|
846
|
-
Object.defineProperty(GridComponent.prototype, "noRecordsTemplate", {
|
|
847
|
-
get: function () {
|
|
848
|
-
if (this._customNoRecordsTemplate) {
|
|
849
|
-
return this._customNoRecordsTemplate;
|
|
850
|
-
}
|
|
851
|
-
return this.noRecordsTemplateChildren ? this.noRecordsTemplateChildren.first : undefined;
|
|
852
|
-
},
|
|
853
|
-
set: function (customNoRecordsTemplate) {
|
|
854
|
-
this._customNoRecordsTemplate = customNoRecordsTemplate;
|
|
855
|
-
},
|
|
856
|
-
enumerable: true,
|
|
857
|
-
configurable: true
|
|
858
|
-
});
|
|
859
|
-
Object.defineProperty(GridComponent.prototype, "pagerTemplate", {
|
|
860
|
-
get: function () {
|
|
861
|
-
if (this._customPagerTemplate) {
|
|
862
|
-
return this._customPagerTemplate;
|
|
863
|
-
}
|
|
864
|
-
return this.pagerTemplateChildren ? this.pagerTemplateChildren.first : undefined;
|
|
865
|
-
},
|
|
866
|
-
set: function (customPagerTemplate) {
|
|
867
|
-
this._customPagerTemplate = customPagerTemplate;
|
|
868
|
-
},
|
|
869
|
-
enumerable: true,
|
|
870
|
-
configurable: true
|
|
871
|
-
});
|
|
872
|
-
Object.defineProperty(GridComponent.prototype, "toolbarTemplate", {
|
|
873
|
-
get: function () {
|
|
874
|
-
if (this._customToolbarTemplate) {
|
|
875
|
-
return this._customToolbarTemplate;
|
|
876
|
-
}
|
|
877
|
-
return this.toolbarTemplateChildren ? this.toolbarTemplateChildren.first : undefined;
|
|
878
|
-
},
|
|
879
|
-
set: function (customToolbarTemplate) {
|
|
880
|
-
this._customToolbarTemplate = customToolbarTemplate;
|
|
881
|
-
},
|
|
882
|
-
enumerable: true,
|
|
883
|
-
configurable: true
|
|
884
|
-
});
|
|
885
|
-
Object.defineProperty(GridComponent.prototype, "scrollbarWidth", {
|
|
886
|
-
get: function () {
|
|
887
|
-
return this.supportService.scrollbarWidth;
|
|
888
|
-
},
|
|
889
|
-
enumerable: true,
|
|
890
|
-
configurable: true
|
|
891
|
-
});
|
|
892
|
-
Object.defineProperty(GridComponent.prototype, "headerPadding", {
|
|
893
|
-
get: function () {
|
|
894
|
-
if (utils_1.isUniversal()) {
|
|
895
|
-
return "";
|
|
896
|
-
}
|
|
897
|
-
var padding = Math.max(0, this.scrollbarWidth) + 'px';
|
|
898
|
-
var right = this.rtl ? 0 : padding;
|
|
899
|
-
var left = this.rtl ? padding : 0;
|
|
900
|
-
return "0 " + right + " 0 " + left;
|
|
901
|
-
},
|
|
902
|
-
enumerable: true,
|
|
903
|
-
configurable: true
|
|
904
|
-
});
|
|
905
|
-
Object.defineProperty(GridComponent.prototype, "hasGroupFooters", {
|
|
906
|
-
get: function () {
|
|
907
|
-
return this.columnsContainer.hasGroupFooter;
|
|
908
|
-
},
|
|
909
|
-
enumerable: true,
|
|
910
|
-
configurable: true
|
|
911
|
-
});
|
|
912
|
-
Object.defineProperty(GridComponent.prototype, "showFooter", {
|
|
913
|
-
get: function () {
|
|
914
|
-
return this.columnsContainer.hasFooter;
|
|
915
|
-
},
|
|
916
|
-
enumerable: true,
|
|
917
|
-
configurable: true
|
|
918
|
-
});
|
|
919
|
-
Object.defineProperty(GridComponent.prototype, "showGroupFooters", {
|
|
920
|
-
get: function () {
|
|
921
|
-
return this.groupable && this.groupable.showFooter;
|
|
922
|
-
},
|
|
923
|
-
enumerable: true,
|
|
924
|
-
configurable: true
|
|
925
|
-
});
|
|
926
|
-
Object.defineProperty(GridComponent.prototype, "ariaRowCount", {
|
|
927
|
-
get: function () {
|
|
928
|
-
return this.totalColumnLevels + 1 + this.view.total;
|
|
929
|
-
},
|
|
930
|
-
enumerable: true,
|
|
931
|
-
configurable: true
|
|
932
|
-
});
|
|
933
|
-
Object.defineProperty(GridComponent.prototype, "ariaColCount", {
|
|
934
|
-
get: function () {
|
|
935
|
-
return this.columnsContainer.leafColumnsToRender.length;
|
|
936
|
-
},
|
|
937
|
-
enumerable: true,
|
|
938
|
-
configurable: true
|
|
939
|
-
});
|
|
940
|
-
Object.defineProperty(GridComponent.prototype, "isVirtual", {
|
|
941
|
-
get: function () {
|
|
942
|
-
return this.scrollable === 'virtual';
|
|
943
|
-
},
|
|
944
|
-
enumerable: true,
|
|
945
|
-
configurable: true
|
|
946
|
-
});
|
|
947
|
-
Object.defineProperty(GridComponent.prototype, "isScrollable", {
|
|
948
|
-
get: function () {
|
|
949
|
-
return this.scrollable !== 'none';
|
|
950
|
-
},
|
|
951
|
-
enumerable: true,
|
|
952
|
-
configurable: true
|
|
953
|
-
});
|
|
954
|
-
Object.defineProperty(GridComponent.prototype, "visibleColumns", {
|
|
955
|
-
get: function () {
|
|
956
|
-
return this.columnsContainer.allColumns;
|
|
957
|
-
},
|
|
958
|
-
enumerable: true,
|
|
959
|
-
configurable: true
|
|
960
|
-
});
|
|
961
|
-
Object.defineProperty(GridComponent.prototype, "lockedColumns", {
|
|
962
|
-
get: function () {
|
|
963
|
-
return this.columnsContainer.lockedColumns;
|
|
964
|
-
},
|
|
965
|
-
enumerable: true,
|
|
966
|
-
configurable: true
|
|
967
|
-
});
|
|
968
|
-
Object.defineProperty(GridComponent.prototype, "nonLockedColumns", {
|
|
969
|
-
get: function () {
|
|
970
|
-
return this.columnsContainer.nonLockedColumns;
|
|
971
|
-
},
|
|
972
|
-
enumerable: true,
|
|
973
|
-
configurable: true
|
|
974
|
-
});
|
|
975
|
-
Object.defineProperty(GridComponent.prototype, "lockedLeafColumns", {
|
|
976
|
-
get: function () {
|
|
977
|
-
return this.columnsContainer.lockedLeafColumns;
|
|
978
|
-
},
|
|
979
|
-
enumerable: true,
|
|
980
|
-
configurable: true
|
|
981
|
-
});
|
|
982
|
-
Object.defineProperty(GridComponent.prototype, "stickyColumns", {
|
|
983
|
-
get: function () {
|
|
984
|
-
return this.columns.filter(function (column) { return column.sticky; });
|
|
985
|
-
},
|
|
986
|
-
enumerable: true,
|
|
987
|
-
configurable: true
|
|
988
|
-
});
|
|
989
|
-
Object.defineProperty(GridComponent.prototype, "nonLockedLeafColumns", {
|
|
990
|
-
get: function () {
|
|
991
|
-
return this.columnsContainer.nonLockedLeafColumns;
|
|
992
|
-
},
|
|
993
|
-
enumerable: true,
|
|
994
|
-
configurable: true
|
|
995
|
-
});
|
|
996
|
-
Object.defineProperty(GridComponent.prototype, "leafColumns", {
|
|
997
|
-
get: function () {
|
|
998
|
-
return this.columnsContainer.leafColumns;
|
|
999
|
-
},
|
|
1000
|
-
enumerable: true,
|
|
1001
|
-
configurable: true
|
|
1002
|
-
});
|
|
1003
|
-
Object.defineProperty(GridComponent.prototype, "totalColumnLevels", {
|
|
1004
|
-
get: function () {
|
|
1005
|
-
return this.columnsContainer.totalLevels;
|
|
1006
|
-
},
|
|
1007
|
-
enumerable: true,
|
|
1008
|
-
configurable: true
|
|
1009
|
-
});
|
|
1010
|
-
Object.defineProperty(GridComponent.prototype, "headerColumns", {
|
|
1011
|
-
get: function () {
|
|
1012
|
-
if (this.virtualColumns && !this.pdfService.exporting) {
|
|
1013
|
-
return this.viewportColumns;
|
|
1014
|
-
}
|
|
1015
|
-
return this.nonLockedColumns;
|
|
1016
|
-
},
|
|
1017
|
-
enumerable: true,
|
|
1018
|
-
configurable: true
|
|
1019
|
-
});
|
|
1020
|
-
Object.defineProperty(GridComponent.prototype, "headerLeafColumns", {
|
|
1021
|
-
get: function () {
|
|
1022
|
-
if (this.virtualColumns && !this.pdfService.exporting) {
|
|
1023
|
-
return this.leafViewportColumns;
|
|
1024
|
-
}
|
|
1025
|
-
return this.nonLockedLeafColumns;
|
|
1026
|
-
},
|
|
1027
|
-
enumerable: true,
|
|
1028
|
-
configurable: true
|
|
1029
|
-
});
|
|
1030
|
-
Object.defineProperty(GridComponent.prototype, "lockedWidth", {
|
|
1031
|
-
get: function () {
|
|
1032
|
-
var groupCellsWidth = this.group.length * constants_1.GROUP_CELL_WIDTH;
|
|
1033
|
-
return column_common_1.expandColumns(this.lockedLeafColumns.toArray()).reduce(function (prev, curr) { return prev + (curr.width || 0); }, groupCellsWidth);
|
|
1034
|
-
},
|
|
1035
|
-
enumerable: true,
|
|
1036
|
-
configurable: true
|
|
1037
|
-
});
|
|
1038
|
-
Object.defineProperty(GridComponent.prototype, "nonLockedWidth", {
|
|
1039
|
-
get: function () {
|
|
1040
|
-
if ((!this.rtl && this.lockedLeafColumns.length) || this.virtualColumns) {
|
|
1041
|
-
return !this.virtualColumns ? this.columnsContainer.unlockedWidth :
|
|
1042
|
-
this.leafViewportColumns.reduce(function (acc, column) { return acc + (column.width || 0); }, 0);
|
|
1043
|
-
}
|
|
1044
|
-
return undefined;
|
|
1045
|
-
},
|
|
1046
|
-
enumerable: true,
|
|
1047
|
-
configurable: true
|
|
1048
|
-
});
|
|
1049
|
-
Object.defineProperty(GridComponent.prototype, "selectableSettings", {
|
|
1050
|
-
get: function () {
|
|
1051
|
-
if (this.selectionService) {
|
|
1052
|
-
return this.selectionService.options;
|
|
1053
|
-
}
|
|
1054
|
-
return undefined;
|
|
1055
|
-
},
|
|
1056
|
-
enumerable: true,
|
|
1057
|
-
configurable: true
|
|
1058
|
-
});
|
|
1059
|
-
Object.defineProperty(GridComponent.prototype, "columnMenuTemplate", {
|
|
1060
|
-
get: function () {
|
|
1061
|
-
var template = this.columnMenuTemplates.first;
|
|
1062
|
-
return template ? template.templateRef : null;
|
|
1063
|
-
},
|
|
1064
|
-
enumerable: true,
|
|
1065
|
-
configurable: true
|
|
1066
|
-
});
|
|
1067
|
-
Object.defineProperty(GridComponent.prototype, "totalCount", {
|
|
1068
|
-
get: function () {
|
|
1069
|
-
if (this.isVirtual || !utils_1.isPresent(this.pageSize)) {
|
|
1070
|
-
return this.view.total;
|
|
1071
|
-
}
|
|
1072
|
-
return this.pageSize;
|
|
1073
|
-
},
|
|
1074
|
-
enumerable: true,
|
|
1075
|
-
configurable: true
|
|
1076
|
-
});
|
|
1077
|
-
/**
|
|
1078
|
-
* Expands the specified master row ([see example]({% slug hierarchy_grid %})).
|
|
1079
|
-
*
|
|
1080
|
-
* This method is provided only for backwards-compatibility with legacy versions.
|
|
1081
|
-
* These versions tracked the expanded state internally using the data row index.
|
|
1082
|
-
*
|
|
1083
|
-
* For new development, use the [kendoGridDetailsExpandBy directive]({% slug api_grid_expanddetailsdirective %})
|
|
1084
|
-
* or provide an isDetailExpanded callback. See [Controlling the Expanded State]({% slug master_detail_expanded_state_grid %})
|
|
1085
|
-
* for examples on how to control the expanded state.
|
|
1086
|
-
*
|
|
1087
|
-
* @param index - The data row index of the master row.
|
|
1088
|
-
*/
|
|
1089
|
-
GridComponent.prototype.expandRow = function (index) {
|
|
1090
|
-
this.toggleDetailRowLegacy(index, true);
|
|
1091
|
-
};
|
|
1092
|
-
/**
|
|
1093
|
-
* Collapses the specified master row ([see example]({% slug hierarchy_grid %})).
|
|
1094
|
-
*
|
|
1095
|
-
* This method is provided only for backwards-compatibility with legacy versions.
|
|
1096
|
-
* These versions tracked the expanded state internally using the data row index.
|
|
1097
|
-
*
|
|
1098
|
-
* For new development, use the [kendoGridDetailsExpandBy directive]({% slug api_grid_expanddetailsdirective %})
|
|
1099
|
-
* or provide an isDetailExpanded callback. See [Controlling the Expanded State]({% slug master_detail_expanded_state_grid %})
|
|
1100
|
-
* for examples on how to control the expanded state.
|
|
1101
|
-
*
|
|
1102
|
-
* @param index - The data row index of the master row.
|
|
1103
|
-
*/
|
|
1104
|
-
GridComponent.prototype.collapseRow = function (index) {
|
|
1105
|
-
this.toggleDetailRowLegacy(index, false);
|
|
1106
|
-
};
|
|
1107
|
-
/**
|
|
1108
|
-
* Expands a group header item for the given index. For example,
|
|
1109
|
-
* `0_1` expands the second inner group of the first master group.
|
|
1110
|
-
*
|
|
1111
|
-
* This method is provided only for backwards-compatibility with legacy versions.
|
|
1112
|
-
* These versions tracked the expanded group state internally using the hierarchical group index.
|
|
1113
|
-
*
|
|
1114
|
-
* > * When you use the [kendoGridGroupBinding]({% slug api_grid_groupbindingdirective %}) directive,
|
|
1115
|
-
* > the `expandGroup` method is not supported.
|
|
1116
|
-
* > * When a Grid is pageable, the indexes of the groups are offset by the current Grid [skip]({% slug api_grid_gridcomponent %}#toc-skip).
|
|
1117
|
-
*
|
|
1118
|
-
* @param {string} index - The underscore separated hierarchical index of the group.
|
|
1119
|
-
*/
|
|
1120
|
-
GridComponent.prototype.expandGroup = function (index) {
|
|
1121
|
-
this.toggleGroupRowLegacy(index, true);
|
|
1122
|
-
};
|
|
1123
|
-
/**
|
|
1124
|
-
* Collapses a group header item for the given index. For example,
|
|
1125
|
-
* `0_1` collapses the second inner group of the first master group.
|
|
1126
|
-
*
|
|
1127
|
-
* This method is provided only for backwards-compatibility with legacy versions.
|
|
1128
|
-
* These versions tracked the expanded group state internally using the hierarchical group index.
|
|
1129
|
-
*
|
|
1130
|
-
* > * When you use the [kendoGridGroupBinding]({% slug api_grid_groupbindingdirective %}) directive,
|
|
1131
|
-
* > the `collapseGroup` method is not supported.
|
|
1132
|
-
* > * When a Grid is pageable, the indexes of the groups are offset by the current Grid [skip]({% slug api_grid_gridcomponent %}#toc-skip).
|
|
1133
|
-
*
|
|
1134
|
-
* @param {string} index - The underscore separated hierarchical index of the group.
|
|
1135
|
-
*/
|
|
1136
|
-
GridComponent.prototype.collapseGroup = function (index) {
|
|
1137
|
-
this.toggleGroupRowLegacy(index, false);
|
|
1138
|
-
};
|
|
1139
|
-
/**
|
|
1140
|
-
* @hidden
|
|
1141
|
-
*/
|
|
1142
|
-
GridComponent.prototype.resetGroupsState = function () {
|
|
1143
|
-
this.groupsService.reset();
|
|
1144
|
-
};
|
|
1145
|
-
/**
|
|
1146
|
-
* @hidden
|
|
1147
|
-
*/
|
|
1148
|
-
GridComponent.prototype.expandGroupChildren = function (groupIndex) {
|
|
1149
|
-
this.groupsService.expandChildren(groupIndex);
|
|
1150
|
-
};
|
|
1151
|
-
/**
|
|
1152
|
-
* @hidden
|
|
1153
|
-
*/
|
|
1154
|
-
GridComponent.prototype.onDataChange = function () {
|
|
1155
|
-
this.autoGenerateColumns();
|
|
1156
|
-
this.changeNotification.notify();
|
|
1157
|
-
this.pdfService.dataChanged.emit();
|
|
1158
|
-
if (utils_1.isPresent(this.defaultSelection)) {
|
|
1159
|
-
this.defaultSelection.reset();
|
|
1160
|
-
}
|
|
1161
|
-
this.initSelectionService();
|
|
1162
|
-
this.updateNavigationMetadata();
|
|
1163
|
-
};
|
|
1164
|
-
GridComponent.prototype.ngOnChanges = function (changes) {
|
|
1165
|
-
var _this = this;
|
|
1166
|
-
if (utils_1.isChanged("data", changes)) {
|
|
1167
|
-
this.onDataChange();
|
|
1168
|
-
}
|
|
1169
|
-
if (this.lockedLeafColumns.length && utils_1.anyChanged(["pageSize", "skip", "sort", "group"], changes)) {
|
|
1170
|
-
this.changeNotification.notify();
|
|
1171
|
-
}
|
|
1172
|
-
if (utils_1.anyChanged(["pageSize", "scrollable", 'virtualColumns'], changes)) {
|
|
1173
|
-
this.updateNavigationMetadata();
|
|
1174
|
-
}
|
|
1175
|
-
if (utils_1.isChanged("virtualColumns", changes)) {
|
|
1176
|
-
this.viewportColumns = this.leafViewportColumns = null;
|
|
1177
|
-
}
|
|
1178
|
-
if (utils_1.isChanged("height", changes, false)) {
|
|
1179
|
-
this.renderer.setStyle(this.wrapper.nativeElement, 'height', this.height + "px");
|
|
1180
|
-
}
|
|
1181
|
-
if (utils_1.isChanged("filterable", changes) && this.lockedColumns.length) {
|
|
1182
|
-
this.syncHeaderHeight(this.ngZone.onStable.asObservable().pipe(operators_1.take(1)));
|
|
1183
|
-
}
|
|
1184
|
-
if (utils_1.anyChanged(["columnMenu", "sortable", "filterable"], changes, false)) {
|
|
1185
|
-
this.columnMenuOptions = this.columnMenu && Object.assign({
|
|
1186
|
-
filter: Boolean(this.filterable),
|
|
1187
|
-
sort: Boolean(this.sortable)
|
|
1188
|
-
}, this.columnMenu); // tslint:disable-line:align
|
|
1189
|
-
}
|
|
1190
|
-
if (utils_1.isChanged("scrollable", changes) && this.isScrollable) {
|
|
1191
|
-
this.ngZone.onStable.pipe(operators_1.take(1)).subscribe(function () { return _this.attachScrollSync(); });
|
|
1192
|
-
}
|
|
1193
|
-
if (utils_1.isChanged("selectable", changes) && this.shouldResetSelection(changes.selectable)) {
|
|
1194
|
-
if (this.defaultSelection) {
|
|
1195
|
-
this.defaultSelection.reset();
|
|
1196
|
-
}
|
|
1197
|
-
else if (this.selectionDirective) {
|
|
1198
|
-
this.selectionDirective.reset();
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
if (utils_1.isChanged('groupable', changes, true)) {
|
|
1202
|
-
this.groupable = changes.groupable.currentValue;
|
|
1203
|
-
}
|
|
1204
|
-
};
|
|
1205
|
-
GridComponent.prototype.ngAfterViewInit = function () {
|
|
1206
|
-
this.attachScrollSync();
|
|
1207
|
-
this.attachElementEventHandlers();
|
|
1208
|
-
this.updateNavigationMetadata();
|
|
1209
|
-
this.applyAutoSize();
|
|
1210
|
-
};
|
|
1211
|
-
GridComponent.prototype.ngAfterContentChecked = function () {
|
|
1212
|
-
this.columnsContainer.refresh();
|
|
1213
|
-
this.verifySettings();
|
|
1214
|
-
this.initSelectionService();
|
|
1215
|
-
};
|
|
1216
|
-
GridComponent.prototype.ngAfterContentInit = function () {
|
|
1217
|
-
var _this = this;
|
|
1218
|
-
this.shouldGenerateColumns = !this.columns.length;
|
|
1219
|
-
this.autoGenerateColumns();
|
|
1220
|
-
this.columnList = new column_list_1.ColumnList(this.columns);
|
|
1221
|
-
this.columnsChangeSubscription = this.columns.changes.subscribe(function () { return _this.verifySettings(); });
|
|
1222
|
-
};
|
|
1223
|
-
GridComponent.prototype.ngOnInit = function () {
|
|
1224
|
-
if (this.navigable) {
|
|
1225
|
-
this.navigationService.init(this.navigationMetadata());
|
|
1226
|
-
}
|
|
1227
|
-
};
|
|
1228
|
-
GridComponent.prototype.ngOnDestroy = function () {
|
|
1229
|
-
if (this.selectionSubscription) {
|
|
1230
|
-
this.selectionSubscription.unsubscribe();
|
|
1231
|
-
}
|
|
1232
|
-
if (this.stateChangeSubscription) {
|
|
1233
|
-
this.stateChangeSubscription.unsubscribe();
|
|
1234
|
-
}
|
|
1235
|
-
if (this.groupExpandCollapseSubscription) {
|
|
1236
|
-
this.groupExpandCollapseSubscription.unsubscribe();
|
|
1237
|
-
}
|
|
1238
|
-
if (this.detailsServiceSubscription) {
|
|
1239
|
-
this.detailsServiceSubscription.unsubscribe();
|
|
1240
|
-
}
|
|
1241
|
-
if (this.editServiceSubscription) {
|
|
1242
|
-
this.editServiceSubscription.unsubscribe();
|
|
1243
|
-
}
|
|
1244
|
-
if (this.pdfSubscription) {
|
|
1245
|
-
this.pdfSubscription.unsubscribe();
|
|
1246
|
-
}
|
|
1247
|
-
if (this.filterSubscription) {
|
|
1248
|
-
this.filterSubscription.unsubscribe();
|
|
1249
|
-
}
|
|
1250
|
-
if (this.sortSubscription) {
|
|
1251
|
-
this.sortSubscription.unsubscribe();
|
|
1252
|
-
}
|
|
1253
|
-
if (this.columnsChangeSubscription) {
|
|
1254
|
-
this.columnsChangeSubscription.unsubscribe();
|
|
1255
|
-
}
|
|
1256
|
-
if (this.excelSubscription) {
|
|
1257
|
-
this.excelSubscription.unsubscribe();
|
|
1258
|
-
}
|
|
1259
|
-
if (this.columnsContainerChangeSubscription) {
|
|
1260
|
-
this.columnsContainerChangeSubscription.unsubscribe();
|
|
1261
|
-
}
|
|
1262
|
-
if (this.scrollSyncService) {
|
|
1263
|
-
this.scrollSyncService.destroy();
|
|
1264
|
-
}
|
|
1265
|
-
if (this.detachElementEventHandlers) {
|
|
1266
|
-
this.detachElementEventHandlers();
|
|
1267
|
-
}
|
|
1268
|
-
if (this.defaultSelection) {
|
|
1269
|
-
this.defaultSelection.destroy();
|
|
1270
|
-
}
|
|
1271
|
-
if (this.cellClickSubscription) {
|
|
1272
|
-
this.cellClickSubscription.unsubscribe();
|
|
1273
|
-
}
|
|
1274
|
-
if (this.footerChangeSubscription) {
|
|
1275
|
-
this.footerChangeSubscription.unsubscribe();
|
|
1276
|
-
}
|
|
1277
|
-
this.ngZone = null;
|
|
1278
|
-
if (this.columnResizingSubscription) {
|
|
1279
|
-
this.columnResizingSubscription.unsubscribe();
|
|
1280
|
-
}
|
|
1281
|
-
if (this.columnReorderSubscription) {
|
|
1282
|
-
this.columnReorderSubscription.unsubscribe();
|
|
1283
|
-
}
|
|
1284
|
-
if (this.localizationSubscription) {
|
|
1285
|
-
this.localizationSubscription.unsubscribe();
|
|
1286
|
-
}
|
|
1287
|
-
if (this.columnVisibilityChangeSubscription) {
|
|
1288
|
-
this.columnVisibilityChangeSubscription.unsubscribe();
|
|
1289
|
-
}
|
|
1290
|
-
if (this.columnLockedChangeSubscription) {
|
|
1291
|
-
this.columnLockedChangeSubscription.unsubscribe();
|
|
1292
|
-
}
|
|
1293
|
-
if (this.columnStickyChangeSubscription) {
|
|
1294
|
-
this.columnStickyChangeSubscription.unsubscribe();
|
|
1295
|
-
}
|
|
1296
|
-
if (this.focusElementSubscription) {
|
|
1297
|
-
this.focusElementSubscription.unsubscribe();
|
|
1298
|
-
}
|
|
1299
|
-
this.columnRangeChangeSubscription.unsubscribe();
|
|
1300
|
-
};
|
|
1301
|
-
/**
|
|
1302
|
-
* @hidden
|
|
1303
|
-
*/
|
|
1304
|
-
GridComponent.prototype.attachScrollSync = function () {
|
|
1305
|
-
var _this = this;
|
|
1306
|
-
if (utils_1.isUniversal()) {
|
|
1307
|
-
return;
|
|
1308
|
-
}
|
|
1309
|
-
if (this.header) {
|
|
1310
|
-
this.scrollSyncService.registerEmitter(this.header.nativeElement, "header");
|
|
1311
|
-
}
|
|
1312
|
-
if (this.footer) {
|
|
1313
|
-
this.footerChangeSubscription = utils_1.observe(this.footer)
|
|
1314
|
-
.subscribe(function (footers) {
|
|
1315
|
-
return footers
|
|
1316
|
-
.map(function (footer) { return footer.nativeElement; })
|
|
1317
|
-
.filter(utils_1.isPresent)
|
|
1318
|
-
.forEach(function (element) {
|
|
1319
|
-
return _this.scrollSyncService.registerEmitter(element, "footer");
|
|
1320
|
-
});
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
};
|
|
1324
|
-
Object.defineProperty(GridComponent.prototype, "ariaLabel", {
|
|
1325
|
-
/**
|
|
1326
|
-
* @hidden
|
|
1327
|
-
*/
|
|
1328
|
-
get: function () {
|
|
1329
|
-
return this.localization.get('gridLabel');
|
|
1330
|
-
},
|
|
1331
|
-
enumerable: true,
|
|
1332
|
-
configurable: true
|
|
1333
|
-
});
|
|
1334
|
-
/**
|
|
1335
|
-
* Switches the specified table row in the edit mode ([see example]({% slug editing_template_forms_grid %}#toc-editing-records)).
|
|
1336
|
-
*
|
|
1337
|
-
* @param rowIndex - The data row index that will be switched in the edit mode.
|
|
1338
|
-
* @param group - The [FormGroup]({{ site.data.urls.angular['formgroupapi'] }})
|
|
1339
|
-
* that describes the edit form.
|
|
1340
|
-
* @param options - Additional options configuring the focus target once the editor opens.
|
|
1341
|
-
*/
|
|
1342
|
-
GridComponent.prototype.editRow = function (rowIndex, group, options) {
|
|
1343
|
-
this.editService.editRow(rowIndex, group);
|
|
1344
|
-
if (utils_1.isPresent(options) && options.skipFocus) {
|
|
1345
|
-
return;
|
|
1346
|
-
}
|
|
1347
|
-
var row = "tr[data-kendo-grid-item-index=\"" + rowIndex + "\"]";
|
|
1348
|
-
var columnIndex = options && options.columnIndex;
|
|
1349
|
-
var target = isNaN(columnIndex) ? row : row + " td[data-kendo-grid-column-index=\"" + columnIndex + "\"]";
|
|
1350
|
-
this.focusEditElement(target);
|
|
1351
|
-
};
|
|
1352
|
-
/**
|
|
1353
|
-
* Closes the editor for a given row ([see example]({% slug editing_template_forms_grid %}#toc-cancelling-editing)).
|
|
1354
|
-
*
|
|
1355
|
-
* @param {number} index - The row index that will be switched out of the edit mode. If no index is provided, it is assumed
|
|
1356
|
-
* that the new item editor will be closed.
|
|
1357
|
-
*/
|
|
1358
|
-
GridComponent.prototype.closeRow = function (index) {
|
|
1359
|
-
this.editService.close(index);
|
|
1360
|
-
};
|
|
1361
|
-
/**
|
|
1362
|
-
* Creates a new row editor ([see example]({% slug editing_template_forms_grid %}#toc-adding-records)).
|
|
1363
|
-
*
|
|
1364
|
-
* @param {FormGroup} group - The [FormGroup]({{ site.data.urls.angular['formgroupapi'] }}) that describes
|
|
1365
|
-
* the edit form. If called with a data item, it will build the `FormGroup` from the data item fields.
|
|
1366
|
-
*/
|
|
1367
|
-
GridComponent.prototype.addRow = function (group) {
|
|
1368
|
-
var isFormGroup = group instanceof forms_1.FormGroup;
|
|
1369
|
-
if (!isFormGroup) {
|
|
1370
|
-
var fields = Object.keys(group).reduce(createControl(group), {}); // FormBuilder?
|
|
1371
|
-
group = new forms_1.FormGroup(fields);
|
|
1372
|
-
}
|
|
1373
|
-
this.editService.addRow(group);
|
|
1374
|
-
this.focusEditElement('.k-grid-add-row');
|
|
1375
|
-
};
|
|
1376
|
-
/**
|
|
1377
|
-
* Puts the cell that is specified by the table row and column in edit mode.
|
|
1378
|
-
*
|
|
1379
|
-
* @param {number} rowIndex - The data row index that will be switched in the edit mode.
|
|
1380
|
-
* @param {number|string|any} column - The leaf column index, or the field name or the column instance that should be edited.
|
|
1381
|
-
* @param {FormGroup} group - The [FormGroup]({{ site.data.urls.angular['formgroupapi'] }})
|
|
1382
|
-
* that describes the edit form.
|
|
1383
|
-
*/
|
|
1384
|
-
GridComponent.prototype.editCell = function (rowIndex, column, group) {
|
|
1385
|
-
var instance = this.columnInstance(column);
|
|
1386
|
-
this.editService.editCell(rowIndex, instance, group);
|
|
1387
|
-
this.focusEditElement('.k-grid-edit-cell');
|
|
1388
|
-
};
|
|
1389
|
-
/**
|
|
1390
|
-
* Closes the current cell in edit mode and fires
|
|
1391
|
-
* the [cellClose]({% slug api_grid_gridcomponent %}#toc-cellclose) event.
|
|
1392
|
-
*
|
|
1393
|
-
* @return {boolean} Indicates whether the edited cell was closed.
|
|
1394
|
-
* A `false` value indicates that the
|
|
1395
|
-
* [cellClose]({% slug api_grid_gridcomponent %}#toc-cellclose) event was prevented.
|
|
1396
|
-
*/
|
|
1397
|
-
GridComponent.prototype.closeCell = function () {
|
|
1398
|
-
return !this.editService.closeCell();
|
|
1399
|
-
};
|
|
1400
|
-
/**
|
|
1401
|
-
* Closes the current cell in edit mode.
|
|
1402
|
-
*/
|
|
1403
|
-
GridComponent.prototype.cancelCell = function () {
|
|
1404
|
-
this.editService.cancelCell();
|
|
1405
|
-
};
|
|
1406
|
-
/**
|
|
1407
|
-
* Returns a flag which indicates if a row or a cell is currently edited.
|
|
1408
|
-
*
|
|
1409
|
-
* @return {boolean} A flag which indicates if a row or a cell is currently edited.
|
|
1410
|
-
*/
|
|
1411
|
-
GridComponent.prototype.isEditing = function () {
|
|
1412
|
-
return this.editService.isEditing();
|
|
1413
|
-
};
|
|
1414
|
-
/**
|
|
1415
|
-
* Returns a flag which indicates if a cell is currently edited.
|
|
1416
|
-
*
|
|
1417
|
-
* @return {boolean} A flag which indicates if a cell is currently being edited.
|
|
1418
|
-
*/
|
|
1419
|
-
GridComponent.prototype.isEditingCell = function () {
|
|
1420
|
-
return this.editService.isEditingCell();
|
|
1421
|
-
};
|
|
1422
|
-
/**
|
|
1423
|
-
* Initiates the PDF export ([see example]({% slug pdfexport_grid %})).
|
|
1424
|
-
*/
|
|
1425
|
-
GridComponent.prototype.saveAsPDF = function () {
|
|
1426
|
-
this.pdfService.save(this);
|
|
1427
|
-
};
|
|
1428
|
-
/**
|
|
1429
|
-
* Exports the Grid element to a Drawing [Group]({% slug api_kendo-drawing_group %}) by using the `kendo-grid-pdf` component options.
|
|
1430
|
-
* ([see example]({% slug pdfexport_grid %}#toc-exporting-multiple-grids-to-the-same-pdf)).
|
|
1431
|
-
*
|
|
1432
|
-
* @return {Promise} - A promise that will be resolved with the Drawing `Group`.
|
|
1433
|
-
*/
|
|
1434
|
-
GridComponent.prototype.drawPDF = function () {
|
|
1435
|
-
var promise = utils_1.createPromise();
|
|
1436
|
-
this.pdfService.draw(this, promise);
|
|
1437
|
-
return promise;
|
|
1438
|
-
};
|
|
1439
|
-
/**
|
|
1440
|
-
* Initiates the Excel export ([see example]({% slug excelexport_grid %})).
|
|
1441
|
-
*/
|
|
1442
|
-
GridComponent.prototype.saveAsExcel = function () {
|
|
1443
|
-
this.excelService.save(this);
|
|
1444
|
-
};
|
|
1445
|
-
/**
|
|
1446
|
-
* Applies the minimum possible width for the specified column,
|
|
1447
|
-
* so that the whole text fits without wrapping. This method expects the Grid
|
|
1448
|
-
* to be resizable (set `resizable` to `true`).
|
|
1449
|
-
* Makes sense to execute this method only
|
|
1450
|
-
* after the Grid is already populated with data.
|
|
1451
|
-
*
|
|
1452
|
-
* @example
|
|
1453
|
-
* ```ts
|
|
1454
|
-
* _@Component({
|
|
1455
|
-
* selector: 'my-app',
|
|
1456
|
-
* template: `
|
|
1457
|
-
* <kendo-grid
|
|
1458
|
-
* #grid
|
|
1459
|
-
* [data]="gridData"
|
|
1460
|
-
* [resizable]="true"
|
|
1461
|
-
* style="height: 300px">
|
|
1462
|
-
* <ng-template kendoGridToolbarTemplate>
|
|
1463
|
-
* <button kendoButton (click)="grid.autoFitColumn(groupColumn)">
|
|
1464
|
-
* Auto-fit the group column
|
|
1465
|
-
* </button>
|
|
1466
|
-
* </ng-template>
|
|
1467
|
-
* <kendo-grid-column-group #groupColumn title="Product Info">
|
|
1468
|
-
* <kendo-grid-column
|
|
1469
|
-
* field="ProductID"
|
|
1470
|
-
* [width]="50"
|
|
1471
|
-
* [minResizableWidth]="30"
|
|
1472
|
-
* title="ID">
|
|
1473
|
-
* </kendo-grid-column>
|
|
1474
|
-
*
|
|
1475
|
-
* <kendo-grid-column
|
|
1476
|
-
* field="ProductName"
|
|
1477
|
-
* title="Product Name">
|
|
1478
|
-
* </kendo-grid-column>
|
|
1479
|
-
* </kendo-grid-column-group>
|
|
1480
|
-
*
|
|
1481
|
-
* <kendo-grid-column
|
|
1482
|
-
* field="UnitPrice"
|
|
1483
|
-
* title="Unit Price"
|
|
1484
|
-
* [width]="180"
|
|
1485
|
-
* filter="numeric"
|
|
1486
|
-
* format="{0:c}">
|
|
1487
|
-
* </kendo-grid-column>
|
|
1488
|
-
* </kendo-grid>
|
|
1489
|
-
* `
|
|
1490
|
-
* })
|
|
1491
|
-
* class AppComponent {
|
|
1492
|
-
* public gridData: any[] = products;
|
|
1493
|
-
* }
|
|
1494
|
-
*
|
|
1495
|
-
* const products = [{
|
|
1496
|
-
* "ProductID": 1,
|
|
1497
|
-
* "ProductName": "Chai",
|
|
1498
|
-
* "UnitPrice": 18.0000,
|
|
1499
|
-
* "Discontinued": true
|
|
1500
|
-
* }, {
|
|
1501
|
-
* "ProductID": 2,
|
|
1502
|
-
* "ProductName": "Chang",
|
|
1503
|
-
* "UnitPrice": 19.0000,
|
|
1504
|
-
* "Discontinued": false
|
|
1505
|
-
* }
|
|
1506
|
-
* ];
|
|
1507
|
-
* ```
|
|
1508
|
-
*/
|
|
1509
|
-
GridComponent.prototype.autoFitColumn = function (column) {
|
|
1510
|
-
this.columnResizingService.autoFit(column);
|
|
1511
|
-
};
|
|
1512
|
-
/**
|
|
1513
|
-
* Adjusts the width of the specified columns to fit the entire content, including headers, without wrapping.
|
|
1514
|
-
* If no columns are specified, `autoFitColumns` is applied to all columns.
|
|
1515
|
-
*
|
|
1516
|
-
* This method requires the Grid to be resizable (set `resizable` to `true`).
|
|
1517
|
-
*
|
|
1518
|
-
* @example
|
|
1519
|
-
* ```ts
|
|
1520
|
-
* _@Component({
|
|
1521
|
-
* selector: 'my-app',
|
|
1522
|
-
* template: `
|
|
1523
|
-
* <kendo-grid
|
|
1524
|
-
* #grid
|
|
1525
|
-
* [data]="gridData"
|
|
1526
|
-
* [resizable]="true"
|
|
1527
|
-
* style="height: 300px">
|
|
1528
|
-
* <ng-template kendoGridToolbarTemplate>
|
|
1529
|
-
* <button kendoButton (click)="grid.autoFitColumns([firstColumn, lastColumn])">
|
|
1530
|
-
* Auto-fit the first and last column
|
|
1531
|
-
* </button>
|
|
1532
|
-
* <button kendoButton (click)="grid.autoFitColumns()">
|
|
1533
|
-
* Auto-fit all columns
|
|
1534
|
-
* </button>
|
|
1535
|
-
* </ng-template>
|
|
1536
|
-
* <kendo-grid-column-group title="Product Info">
|
|
1537
|
-
* <kendo-grid-column
|
|
1538
|
-
* #firstColumn
|
|
1539
|
-
* field="ProductID"
|
|
1540
|
-
* [width]="50"
|
|
1541
|
-
* [minResizableWidth]="30"
|
|
1542
|
-
* title="ID">
|
|
1543
|
-
* </kendo-grid-column>
|
|
1544
|
-
*
|
|
1545
|
-
* <kendo-grid-column
|
|
1546
|
-
* field="ProductName"
|
|
1547
|
-
* title="Product Name"
|
|
1548
|
-
* >
|
|
1549
|
-
* </kendo-grid-column>
|
|
1550
|
-
* </kendo-grid-column-group>
|
|
1551
|
-
*
|
|
1552
|
-
* <kendo-grid-column
|
|
1553
|
-
* #lastColumn
|
|
1554
|
-
* field="UnitPrice"
|
|
1555
|
-
* title="Unit Price"
|
|
1556
|
-
* [width]="180"
|
|
1557
|
-
* filter="numeric"
|
|
1558
|
-
* format="{0:c}">
|
|
1559
|
-
* </kendo-grid-column>
|
|
1560
|
-
* </kendo-grid>
|
|
1561
|
-
* `
|
|
1562
|
-
* })
|
|
1563
|
-
* class AppComponent {
|
|
1564
|
-
* public gridData: any[] = products;
|
|
1565
|
-
* }
|
|
1566
|
-
*
|
|
1567
|
-
* const products = [{
|
|
1568
|
-
* "ProductID": 1,
|
|
1569
|
-
* "ProductName": "Chai",
|
|
1570
|
-
* "UnitPrice": 18.0000,
|
|
1571
|
-
* "Discontinued": true
|
|
1572
|
-
* }, {
|
|
1573
|
-
* "ProductID": 2,
|
|
1574
|
-
* "ProductName": "Chang",
|
|
1575
|
-
* "UnitPrice": 19.0000,
|
|
1576
|
-
* "Discontinued": false
|
|
1577
|
-
* }
|
|
1578
|
-
* ];
|
|
1579
|
-
* ```
|
|
1580
|
-
*/
|
|
1581
|
-
GridComponent.prototype.autoFitColumns = function (columns) {
|
|
1582
|
-
var _a;
|
|
1583
|
-
if (columns === void 0) { columns = this.columns; }
|
|
1584
|
-
var cols;
|
|
1585
|
-
if (columns instanceof core_1.QueryList) {
|
|
1586
|
-
cols = columns.toArray();
|
|
1587
|
-
}
|
|
1588
|
-
else {
|
|
1589
|
-
cols = columns;
|
|
1590
|
-
}
|
|
1591
|
-
(_a = this.columnResizingService).autoFit.apply(_a, cols);
|
|
1592
|
-
};
|
|
1593
|
-
/**
|
|
1594
|
-
* @hidden
|
|
1595
|
-
*/
|
|
1596
|
-
GridComponent.prototype.notifyPageChange = function (source, event) {
|
|
1597
|
-
if (source === "list" && !this.isVirtual) {
|
|
1598
|
-
return;
|
|
1599
|
-
}
|
|
1600
|
-
this.pageChange.emit(event);
|
|
1601
|
-
};
|
|
1602
|
-
/**
|
|
1603
|
-
* @hidden
|
|
1604
|
-
*/
|
|
1605
|
-
GridComponent.prototype.notifyScrollBottom = function () {
|
|
1606
|
-
var _this = this;
|
|
1607
|
-
if (this.scrollable === 'none') {
|
|
1608
|
-
return;
|
|
1609
|
-
}
|
|
1610
|
-
if (utils_1.hasObservers(this.scrollBottom)) {
|
|
1611
|
-
this.ngZone.run(function () { return _this.scrollBottom.emit({ sender: _this }); });
|
|
1612
|
-
}
|
|
1613
|
-
};
|
|
1614
|
-
/**
|
|
1615
|
-
* @hidden
|
|
1616
|
-
*/
|
|
1617
|
-
GridComponent.prototype.focusEditElement = function (containerSelector) {
|
|
1618
|
-
var _this = this;
|
|
1619
|
-
if (this.focusElementSubscription) {
|
|
1620
|
-
this.focusElementSubscription.unsubscribe();
|
|
1621
|
-
}
|
|
1622
|
-
this.ngZone.runOutsideAngular(function () {
|
|
1623
|
-
_this.focusElementSubscription = _this.ngZone.onStable.asObservable().pipe(operators_1.take(1)).subscribe(function () {
|
|
1624
|
-
var wrapper = _this.wrapper.nativeElement;
|
|
1625
|
-
if (!_this.setEditFocus(wrapper.querySelector(containerSelector)) && _this.isLocked) {
|
|
1626
|
-
_this.setEditFocus(wrapper.querySelector(".k-grid-content " + containerSelector));
|
|
1627
|
-
}
|
|
1628
|
-
_this.focusElementSubscription = null;
|
|
1629
|
-
});
|
|
1630
|
-
});
|
|
1631
|
-
};
|
|
1632
|
-
/**
|
|
1633
|
-
* Focuses the last active or the first cell of the Grid.
|
|
1634
|
-
*
|
|
1635
|
-
* @returns {NavigationCell} The focused cell.
|
|
1636
|
-
*/
|
|
1637
|
-
GridComponent.prototype.focus = function () {
|
|
1638
|
-
this.assertNavigable();
|
|
1639
|
-
return this.navigationService.focusCell();
|
|
1640
|
-
};
|
|
1641
|
-
/**
|
|
1642
|
-
* Focuses the cell with the specified row and column index.
|
|
1643
|
-
*
|
|
1644
|
-
* The row index is based on the logical structure of the Grid and does not correspond to the data item index:
|
|
1645
|
-
* * Header rows are included, starting at index 0.
|
|
1646
|
-
* * Group headers and footers are included.
|
|
1647
|
-
* * The row indexing is absolute and does not change with paging.
|
|
1648
|
-
*
|
|
1649
|
-
* If the Grid is configured for scrolling, including virtual scrolling, the scroll position will be updated.
|
|
1650
|
-
* If the row is not present on the current page, the method will have no effect.
|
|
1651
|
-
*
|
|
1652
|
-
* @param rowIndex - The logical row index to focus. The top header row has an index 0.
|
|
1653
|
-
* @param colIndex - The column index to focus.
|
|
1654
|
-
* @returns {NavigationCell} The focused cell.
|
|
1655
|
-
*
|
|
1656
|
-
*/
|
|
1657
|
-
GridComponent.prototype.focusCell = function (rowIndex, colIndex) {
|
|
1658
|
-
this.assertNavigable();
|
|
1659
|
-
return this.navigationService.focusCell(rowIndex, colIndex);
|
|
1660
|
-
};
|
|
1661
|
-
/**
|
|
1662
|
-
* Focuses the next cell, optionally wrapping to the next row.
|
|
1663
|
-
*
|
|
1664
|
-
* @param wrap - A Boolean value which indicates if the focus will move to the next row. Defaults to `true`.
|
|
1665
|
-
* @returns {NavigationCell} The focused cell. If the focus is already on the last cell, returns `null`.
|
|
1666
|
-
*/
|
|
1667
|
-
GridComponent.prototype.focusNextCell = function (wrap) {
|
|
1668
|
-
if (wrap === void 0) { wrap = true; }
|
|
1669
|
-
this.assertNavigable();
|
|
1670
|
-
return this.navigationService.focusNextCell(wrap);
|
|
1671
|
-
};
|
|
1672
|
-
/**
|
|
1673
|
-
* Focuses the previous cell. Optionally wraps to the previous row.
|
|
1674
|
-
*
|
|
1675
|
-
* @param wrap - A Boolean value which indicates if the focus will move to the next row. Defaults to `true`.
|
|
1676
|
-
* @returns {NavigationCell} The focused cell. If the focus is already on the first cell, returns `null`.
|
|
1677
|
-
*/
|
|
1678
|
-
GridComponent.prototype.focusPrevCell = function (wrap) {
|
|
1679
|
-
if (wrap === void 0) { wrap = true; }
|
|
1680
|
-
this.assertNavigable();
|
|
1681
|
-
return this.navigationService.focusPrevCell(wrap);
|
|
1682
|
-
};
|
|
1683
|
-
/**
|
|
1684
|
-
* Scrolls to the specified row and column ([see example]({% slug scrollmmodes_grid %}#toc-scrolling-to-a-specific-row-and-column-index)).
|
|
1685
|
-
*/
|
|
1686
|
-
GridComponent.prototype.scrollTo = function (request) {
|
|
1687
|
-
this.scrollRequestService.scrollTo(request);
|
|
1688
|
-
};
|
|
1689
|
-
/**
|
|
1690
|
-
* Changes the position of the specified column.
|
|
1691
|
-
* The reordering of columns operates only on the level
|
|
1692
|
-
* which is inferred by the source column.
|
|
1693
|
-
* For the `reorderColumn` method to work properly,
|
|
1694
|
-
* the `source` column has to be visible.
|
|
1695
|
-
*
|
|
1696
|
-
* @param {ColumnBase} source - The column whose position will be changed.
|
|
1697
|
-
* @param {number} destIndex - The new position of the column.
|
|
1698
|
-
* @param {ColumnReorderConfig} options - Additional options.
|
|
1699
|
-
*
|
|
1700
|
-
* @example
|
|
1701
|
-
* ```ts
|
|
1702
|
-
* _@Component({
|
|
1703
|
-
* selector: 'my-app',
|
|
1704
|
-
* template: `
|
|
1705
|
-
* <kendo-grid
|
|
1706
|
-
* #grid
|
|
1707
|
-
* [data]="gridData"
|
|
1708
|
-
* [reorderable]="true"
|
|
1709
|
-
* style="height: 300px">
|
|
1710
|
-
* <ng-template kendoGridToolbarTemplate>
|
|
1711
|
-
* <button kendoButton
|
|
1712
|
-
* (click)="grid.reorderColumn(groupColumn, 2, { before: true })">
|
|
1713
|
-
* Move the group column before the last one.
|
|
1714
|
-
* </button>
|
|
1715
|
-
* </ng-template>
|
|
1716
|
-
* <kendo-grid-column-group #groupColumn title="Product Info">
|
|
1717
|
-
* <kendo-grid-column
|
|
1718
|
-
* field="ProductID"
|
|
1719
|
-
* [width]="50"
|
|
1720
|
-
* title="ID">
|
|
1721
|
-
* </kendo-grid-column>
|
|
1722
|
-
*
|
|
1723
|
-
* <kendo-grid-column
|
|
1724
|
-
* field="ProductName"
|
|
1725
|
-
* title="Product Name">
|
|
1726
|
-
* </kendo-grid-column>
|
|
1727
|
-
* </kendo-grid-column-group>
|
|
1728
|
-
*
|
|
1729
|
-
* <kendo-grid-column
|
|
1730
|
-
* field="UnitPrice"
|
|
1731
|
-
* title="Unit Price"
|
|
1732
|
-
* [width]="180"
|
|
1733
|
-
* format="{0:c}">
|
|
1734
|
-
* </kendo-grid-column>
|
|
1735
|
-
*
|
|
1736
|
-
* <kendo-grid-column
|
|
1737
|
-
* field="Discontinued"
|
|
1738
|
-
* title="Discontinued"
|
|
1739
|
-
* [width]="100">
|
|
1740
|
-
* </kendo-grid-column>
|
|
1741
|
-
* </kendo-grid>
|
|
1742
|
-
* `
|
|
1743
|
-
* })
|
|
1744
|
-
* class AppComponent {
|
|
1745
|
-
* public gridData: any[] = products;
|
|
1746
|
-
* }
|
|
1747
|
-
*
|
|
1748
|
-
* const products = [{
|
|
1749
|
-
* "ProductID": 1,
|
|
1750
|
-
* "ProductName": "Chai",
|
|
1751
|
-
* "UnitPrice": 18.0000,
|
|
1752
|
-
* "Discontinued": true
|
|
1753
|
-
* }, {
|
|
1754
|
-
* "ProductID": 2,
|
|
1755
|
-
* "ProductName": "Chang",
|
|
1756
|
-
* "UnitPrice": 19.0000,
|
|
1757
|
-
* "Discontinued": false
|
|
1758
|
-
* }
|
|
1759
|
-
* ];
|
|
1760
|
-
* ```
|
|
1761
|
-
*/
|
|
1762
|
-
GridComponent.prototype.reorderColumn = function (source, destIndex, options) {
|
|
1763
|
-
if (options === void 0) { options = { before: false }; }
|
|
1764
|
-
var columnsForLevel = column_common_2.sortColumns(this.allColumnsForLevel(source.level));
|
|
1765
|
-
var target = columnsForLevel[destIndex];
|
|
1766
|
-
if (!target) {
|
|
1767
|
-
return;
|
|
1768
|
-
}
|
|
1769
|
-
var lastNonLocked = target.isLocked &&
|
|
1770
|
-
!source.isLocked &&
|
|
1771
|
-
this.columnsContainer.nonLockedColumns.length === 1;
|
|
1772
|
-
if (lastNonLocked) {
|
|
1773
|
-
return;
|
|
1774
|
-
}
|
|
1775
|
-
if (span_column_component_1.isSpanColumnComponent(target) && !options.before) {
|
|
1776
|
-
target = target.childColumns.last;
|
|
1777
|
-
}
|
|
1778
|
-
this.reorder({
|
|
1779
|
-
before: options.before,
|
|
1780
|
-
source: source,
|
|
1781
|
-
target: target
|
|
1782
|
-
});
|
|
1783
|
-
};
|
|
1784
|
-
Object.defineProperty(GridComponent.prototype, "isDetailExpanded", {
|
|
1785
|
-
get: function () {
|
|
1786
|
-
return this.detailsService.userCallback;
|
|
1787
|
-
},
|
|
1788
|
-
/**
|
|
1789
|
-
* A function which determines if a specific row is expanded.
|
|
1790
|
-
*/
|
|
1791
|
-
set: function (callback) {
|
|
1792
|
-
this.detailsService.userCallback = callback;
|
|
1793
|
-
},
|
|
1794
|
-
enumerable: true,
|
|
1795
|
-
configurable: true
|
|
1796
|
-
});
|
|
1797
|
-
Object.defineProperty(GridComponent.prototype, "isGroupExpanded", {
|
|
1798
|
-
get: function () {
|
|
1799
|
-
return this.groupsService.userCallback;
|
|
1800
|
-
},
|
|
1801
|
-
/**
|
|
1802
|
-
* A function which determines if a specific group row is expanded.
|
|
1803
|
-
*/
|
|
1804
|
-
set: function (callback) {
|
|
1805
|
-
this.groupsService.userCallback = callback;
|
|
1806
|
-
this.groupable = utils_1.isPresent(callback);
|
|
1807
|
-
},
|
|
1808
|
-
enumerable: true,
|
|
1809
|
-
configurable: true
|
|
1810
|
-
});
|
|
1811
|
-
/**
|
|
1812
|
-
* @hidden
|
|
1813
|
-
*/
|
|
1814
|
-
GridComponent.prototype.reorder = function (_a) {
|
|
1815
|
-
var _this = this;
|
|
1816
|
-
var target = _a.target, source = _a.source, before = _a.before, changeContainer = _a.changeContainer;
|
|
1817
|
-
this.ngZone.run(function () {
|
|
1818
|
-
var columnsForLevel = column_common_2.sortColumns(_this.allColumnsForLevel(source.level));
|
|
1819
|
-
var newIndex = columnsForLevel.indexOf(target);
|
|
1820
|
-
if (target.parent && target.parent.isSpanColumn) {
|
|
1821
|
-
newIndex = columnsForLevel.indexOf(target.parent);
|
|
1822
|
-
if (before) {
|
|
1823
|
-
target = target.parent;
|
|
1824
|
-
}
|
|
1825
|
-
}
|
|
1826
|
-
var oldIndex = columnsForLevel.indexOf(source);
|
|
1827
|
-
if (changeContainer) {
|
|
1828
|
-
if (before && 0 < newIndex && oldIndex < newIndex) { // dropped before the first not locked column
|
|
1829
|
-
newIndex--;
|
|
1830
|
-
}
|
|
1831
|
-
else if (!before && oldIndex > newIndex) { // dropped after the last locked column
|
|
1832
|
-
newIndex++;
|
|
1833
|
-
}
|
|
1834
|
-
}
|
|
1835
|
-
var args = new column_reorder_event_1.ColumnReorderEvent({
|
|
1836
|
-
column: source,
|
|
1837
|
-
oldIndex: oldIndex,
|
|
1838
|
-
newIndex: newIndex
|
|
1839
|
-
});
|
|
1840
|
-
_this.columnReorder.emit(args);
|
|
1841
|
-
if (args.isDefaultPrevented()) {
|
|
1842
|
-
return;
|
|
1843
|
-
}
|
|
1844
|
-
if (changeContainer) {
|
|
1845
|
-
_this.columnLockedChange.emit(new column_locked_change_event_1.ColumnLockedChangeEvent([source]));
|
|
1846
|
-
}
|
|
1847
|
-
_this.updateColumnIndices({ columnsForLevel: columnsForLevel, source: source, target: target, before: before });
|
|
1848
|
-
if (source.locked !== target.locked) {
|
|
1849
|
-
source.locked = target.locked;
|
|
1850
|
-
}
|
|
1851
|
-
_this.columnsContainer.refresh();
|
|
1852
|
-
_this.changeDetectorRef.markForCheck();
|
|
1853
|
-
});
|
|
1854
|
-
};
|
|
1855
|
-
GridComponent.prototype.updateColumnIndices = function (_a) {
|
|
1856
|
-
var columnsForLevel = _a.columnsForLevel, source = _a.source, target = _a.target, before = _a.before;
|
|
1857
|
-
var expandedColumns = column_common_1.expandColumnsWithSpan(columnsForLevel);
|
|
1858
|
-
var sourceColumnIndex = expandedColumns.indexOf(source);
|
|
1859
|
-
var nextSourceIndex = 0;
|
|
1860
|
-
var nextIndex = 0;
|
|
1861
|
-
var toSkip = 1;
|
|
1862
|
-
// Possible only when called from the API.
|
|
1863
|
-
if (source.isSpanColumn) {
|
|
1864
|
-
toSkip += source.childColumns.length;
|
|
1865
|
-
}
|
|
1866
|
-
var i = 0;
|
|
1867
|
-
while (i < expandedColumns.length) {
|
|
1868
|
-
var column = expandedColumns[i];
|
|
1869
|
-
if (column === target) {
|
|
1870
|
-
nextSourceIndex = before ? nextIndex : nextIndex + 1;
|
|
1871
|
-
nextIndex = before ? nextIndex + toSkip : nextIndex;
|
|
1872
|
-
column.orderIndex = nextIndex;
|
|
1873
|
-
if (nextSourceIndex === nextIndex + 1) {
|
|
1874
|
-
nextIndex += toSkip;
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
else if (column === source) {
|
|
1878
|
-
i += toSkip;
|
|
1879
|
-
continue;
|
|
1880
|
-
}
|
|
1881
|
-
else {
|
|
1882
|
-
column.orderIndex = nextIndex;
|
|
1883
|
-
}
|
|
1884
|
-
nextIndex++;
|
|
1885
|
-
i++;
|
|
1886
|
-
}
|
|
1887
|
-
for (i = sourceColumnIndex; i < sourceColumnIndex + toSkip; i++) {
|
|
1888
|
-
expandedColumns[i].orderIndex = nextSourceIndex++;
|
|
1889
|
-
}
|
|
1890
|
-
this.updateIndicesForLevel(source.level + 1);
|
|
1891
|
-
};
|
|
1892
|
-
GridComponent.prototype.updateIndicesForLevel = function (level) {
|
|
1893
|
-
var colsForParentLevel = this.allColumnsForLevel(level - 1);
|
|
1894
|
-
var colsForLevel = [];
|
|
1895
|
-
column_common_2.sortColumns(colsForParentLevel).forEach(function (c) {
|
|
1896
|
-
if (c.isColumnGroup) {
|
|
1897
|
-
colsForLevel.push.apply(colsForLevel, c.childrenArray.sort(function (a, b) { return a.orderIndex - b.orderIndex; }));
|
|
1898
|
-
}
|
|
1899
|
-
});
|
|
1900
|
-
column_common_1.expandColumnsWithSpan(colsForLevel).map(function (c, i) { return c.orderIndex = i; });
|
|
1901
|
-
if (level < this.columnList.totalColumnLevels()) {
|
|
1902
|
-
this.updateIndicesForLevel(level + 1);
|
|
1903
|
-
}
|
|
1904
|
-
};
|
|
1905
|
-
GridComponent.prototype.allColumnsForLevel = function (level) {
|
|
1906
|
-
return this.columnList.toArray().filter(function (column) { return column.level === level; });
|
|
1907
|
-
};
|
|
1908
|
-
GridComponent.prototype.initSelectionService = function () {
|
|
1909
|
-
var _this = this;
|
|
1910
|
-
if (!this.selectable) {
|
|
1911
|
-
this.selectionService.ngOnDestroy();
|
|
1912
|
-
this.cellSelectionService.ngOnDestroy();
|
|
1913
|
-
return;
|
|
1914
|
-
}
|
|
1915
|
-
if (!this.selectionDirective && !utils_1.isPresent(this.defaultSelection)) {
|
|
1916
|
-
this.defaultSelection = new selection_default_1.Selection(this, this.changeDetectorRef);
|
|
1917
|
-
}
|
|
1918
|
-
var cellSelectionMode = this.selectable['cell'];
|
|
1919
|
-
var activeService = cellSelectionMode ? this.cellSelectionService : this.selectionService;
|
|
1920
|
-
var inactiveService = cellSelectionMode ? this.selectionService : this.cellSelectionService;
|
|
1921
|
-
if (inactiveService.active) {
|
|
1922
|
-
inactiveService.ngOnDestroy();
|
|
1923
|
-
activeService.addSubscriptions();
|
|
1924
|
-
inactiveService.active = false;
|
|
1925
|
-
}
|
|
1926
|
-
activeService.active = true;
|
|
1927
|
-
activeService.init({
|
|
1928
|
-
cellSelected: cellSelectionMode ? this.cellSelected : undefined,
|
|
1929
|
-
rowSelected: cellSelectionMode ? undefined : this.rowSelected,
|
|
1930
|
-
selectable: this.selectable,
|
|
1931
|
-
view: this.view,
|
|
1932
|
-
columns: cellSelectionMode ? this.columnList.toArray() : undefined
|
|
1933
|
-
});
|
|
1934
|
-
if (!this.selectionDirective && !this.selectableSettings.enabled) {
|
|
1935
|
-
this.defaultSelection.reset();
|
|
1936
|
-
}
|
|
1937
|
-
if (this.selectionSubscription) {
|
|
1938
|
-
this.selectionSubscription.unsubscribe();
|
|
1939
|
-
}
|
|
1940
|
-
if (cellSelectionMode) {
|
|
1941
|
-
this.selectionSubscription = this.cellSelectionService.changes.subscribe(function (event) {
|
|
1942
|
-
_this.ngZone.run(function () { return _this.selectionChange.emit(event); });
|
|
1943
|
-
});
|
|
1944
|
-
}
|
|
1945
|
-
else {
|
|
1946
|
-
this.selectionSubscription = this.selectionService.changes.subscribe(function (event) {
|
|
1947
|
-
_this.ngZone.run(function () { return _this.selectionChange.emit(event); });
|
|
1948
|
-
});
|
|
1949
|
-
}
|
|
1950
|
-
};
|
|
1951
|
-
GridComponent.prototype.setEditFocus = function (element) {
|
|
1952
|
-
if (element) {
|
|
1953
|
-
return this.navigationService.tryFocus(element);
|
|
1954
|
-
}
|
|
1955
|
-
};
|
|
1956
|
-
GridComponent.prototype.columnInstance = function (column) {
|
|
1957
|
-
var instance;
|
|
1958
|
-
if (typeof column === 'number') {
|
|
1959
|
-
instance = this.columnsContainer.lockedLeafColumns.toArray()
|
|
1960
|
-
.concat(this.columnsContainer.nonLockedLeafColumns.toArray())[column];
|
|
1961
|
-
}
|
|
1962
|
-
else if (typeof column === 'string') {
|
|
1963
|
-
instance = this.columnList.filter(function (item) { return item.field === column; })[0];
|
|
1964
|
-
}
|
|
1965
|
-
else {
|
|
1966
|
-
instance = column;
|
|
1967
|
-
}
|
|
1968
|
-
if (!instance && core_1.isDevMode()) {
|
|
1969
|
-
throw new Error("Invalid column " + column);
|
|
1970
|
-
}
|
|
1971
|
-
return instance;
|
|
1972
|
-
};
|
|
1973
|
-
GridComponent.prototype.verifySettings = function () {
|
|
1974
|
-
if (core_1.isDevMode()) {
|
|
1975
|
-
var locked = this.lockedLeafColumns.length || (this.columnMenu && this.columnMenu.lock);
|
|
1976
|
-
var stickyColumns = this.stickyColumns.length || (this.columnMenu && this.columnMenu.stick);
|
|
1977
|
-
if (locked && this.detailTemplate) {
|
|
1978
|
-
throw new Error('Having both detail template and locked columns is not supported.');
|
|
1979
|
-
}
|
|
1980
|
-
if (this.lockedLeafColumns.length && !this.nonLockedLeafColumns.length) {
|
|
1981
|
-
throw new Error('There should be at least one non-locked column');
|
|
1982
|
-
}
|
|
1983
|
-
if ((locked || this.virtualColumns) && column_common_1.expandColumns(this.columnList.toArray()).filter(function (column) { return !column.width && !column_group_component_1.isColumnGroupComponent(column); }).length) {
|
|
1984
|
-
throw new Error((locked ? 'Locked' : 'Virtual') + ' columns feature requires all columns to have set width.');
|
|
1985
|
-
}
|
|
1986
|
-
if (locked && !this.isScrollable) {
|
|
1987
|
-
throw new Error('Locked columns are only supported when scrolling is enabled.');
|
|
1988
|
-
}
|
|
1989
|
-
if (this.columnList.filter(column_group_component_1.isColumnGroupComponent).filter(function (x) { return !x.hasChildren; }).length) {
|
|
1990
|
-
throw new Error('ColumnGroupComponent should contain ColumnComponent or CommandColumnComponent.');
|
|
1991
|
-
}
|
|
1992
|
-
if (this.columnList.filter(function (x) { return x.locked && x.parent && !x.parent.isLocked; }).length) {
|
|
1993
|
-
throw new Error('Locked child columns require their parent columns to be locked.');
|
|
1994
|
-
}
|
|
1995
|
-
if ((this.rowHeight || this.detailRowHeight) && !this.isVirtual) {
|
|
1996
|
-
throw new Error('Row height and detail row height settings require virtual scrolling mode to be enabled.');
|
|
1997
|
-
}
|
|
1998
|
-
if (stickyColumns && column_common_1.expandColumns(this.columnList.toArray()).filter(function (column) { return !column.width && !column_group_component_1.isColumnGroupComponent(column); }).length) {
|
|
1999
|
-
throw new Error('Sticky columns feature requires all columns to have set width.');
|
|
2000
|
-
}
|
|
2001
|
-
if (stickyColumns && !this.isScrollable) {
|
|
2002
|
-
throw new Error('Sticky columns are only supported when scrolling is enabled.');
|
|
2003
|
-
}
|
|
2004
|
-
if (stickyColumns && this.virtualColumns) {
|
|
2005
|
-
throw new Error('Having both sticky columns and column virtualization is not supported.');
|
|
2006
|
-
}
|
|
2007
|
-
if (this.rowSticky && this.scrollable === 'virtual') {
|
|
2008
|
-
throw new Error('Having both sticky rows and row virtualization (scrollable="virtual") is not supported.');
|
|
2009
|
-
}
|
|
2010
|
-
if (this.rowSticky && this.groupable) {
|
|
2011
|
-
throw new Error('Having both sticky rows and grouping is not supported.');
|
|
2012
|
-
}
|
|
2013
|
-
validateColumnsField(this.columnList);
|
|
2014
|
-
}
|
|
2015
|
-
};
|
|
2016
|
-
GridComponent.prototype.autoGenerateColumns = function () {
|
|
2017
|
-
if (this.shouldGenerateColumns && !this.columns.length && this.view.length) {
|
|
2018
|
-
this.columns.reset(Object.keys(this.view.at(0)).map(function (field) {
|
|
2019
|
-
var column = new column_component_1.ColumnComponent();
|
|
2020
|
-
column.field = field;
|
|
2021
|
-
return column;
|
|
2022
|
-
}));
|
|
2023
|
-
}
|
|
2024
|
-
};
|
|
2025
|
-
GridComponent.prototype.attachStateChangesEmitter = function () {
|
|
2026
|
-
var _this = this;
|
|
2027
|
-
this.stateChangeSubscription =
|
|
2028
|
-
rxjs_1.merge(this.pageChange.pipe(operators_1.map(function (x) { return ({
|
|
2029
|
-
filter: _this.filter, group: _this.group, skip: x.skip, sort: _this.sort, take: x.take
|
|
2030
|
-
}); })), this.sortChange.pipe(operators_1.map(function (sort) { return ({ filter: _this.filter, group: _this.group, skip: _this.skip, sort: sort, take: _this.pageSize }); })), this.groupChange.pipe(operators_1.map(function (group) { return ({
|
|
2031
|
-
filter: _this.filter, group: group, skip: _this.skip, sort: _this.sort, take: _this.pageSize
|
|
2032
|
-
}); })), this.filterChange.pipe(operators_1.map(function (filter) { return ({
|
|
2033
|
-
filter: filter, group: _this.group, skip: 0, sort: _this.sort, take: _this.pageSize
|
|
2034
|
-
}); })))
|
|
2035
|
-
.subscribe(function (x) {
|
|
2036
|
-
_this.closeCell();
|
|
2037
|
-
_this.cancelCell();
|
|
2038
|
-
_this.dataStateChange.emit(x);
|
|
2039
|
-
});
|
|
2040
|
-
};
|
|
2041
|
-
GridComponent.prototype.attachEditHandlers = function () {
|
|
2042
|
-
if (!this.editService) {
|
|
2043
|
-
return;
|
|
2044
|
-
}
|
|
2045
|
-
this.editServiceSubscription = this.editService
|
|
2046
|
-
.changes.subscribe(this.emitCRUDEvent.bind(this));
|
|
2047
|
-
};
|
|
2048
|
-
GridComponent.prototype.emitCRUDEvent = function (args) {
|
|
2049
|
-
var action = args.action, rowIndex = args.rowIndex, formGroup = args.formGroup;
|
|
2050
|
-
var dataItem = this.view.at(rowIndex - this.skip);
|
|
2051
|
-
if (action !== 'add' && !dataItem) {
|
|
2052
|
-
dataItem = formGroup.value;
|
|
2053
|
-
}
|
|
2054
|
-
this.closeCell();
|
|
2055
|
-
Object.assign(args, {
|
|
2056
|
-
dataItem: dataItem,
|
|
2057
|
-
sender: this
|
|
2058
|
-
});
|
|
2059
|
-
switch (action) {
|
|
2060
|
-
case 'add':
|
|
2061
|
-
this.add.emit(args);
|
|
2062
|
-
break;
|
|
2063
|
-
case 'cancel':
|
|
2064
|
-
this.cancel.emit(args);
|
|
2065
|
-
break;
|
|
2066
|
-
case 'edit':
|
|
2067
|
-
this.edit.emit(args);
|
|
2068
|
-
break;
|
|
2069
|
-
case 'remove':
|
|
2070
|
-
this.remove.emit(args);
|
|
2071
|
-
break;
|
|
2072
|
-
case 'save':
|
|
2073
|
-
this.save.emit(args);
|
|
2074
|
-
break;
|
|
2075
|
-
case 'cellClose':
|
|
2076
|
-
this.cellClose.emit(args);
|
|
2077
|
-
break;
|
|
2078
|
-
default: break;
|
|
2079
|
-
}
|
|
2080
|
-
};
|
|
2081
|
-
GridComponent.prototype.attachDomEventHandlers = function () {
|
|
2082
|
-
var _this = this;
|
|
2083
|
-
this.cellClickSubscription = this.domEvents.cellClick.subscribe(function (args) {
|
|
2084
|
-
_this.cellClick.emit(Object.assign({ sender: _this }, args));
|
|
2085
|
-
});
|
|
2086
|
-
};
|
|
2087
|
-
GridComponent.prototype.attachElementEventHandlers = function () {
|
|
2088
|
-
var _this = this;
|
|
2089
|
-
if (utils_1.isUniversal()) {
|
|
2090
|
-
return;
|
|
2091
|
-
}
|
|
2092
|
-
var wrapper = this.wrapper.nativeElement;
|
|
2093
|
-
var ariaRoot = this.ariaRoot.nativeElement;
|
|
2094
|
-
this.ngZone.runOutsideAngular(function () {
|
|
2095
|
-
var resizeCheck = _this.resizeCheck.bind(_this);
|
|
2096
|
-
var resizeSubscription = _this.renderer.listen('window', 'resize', resizeCheck);
|
|
2097
|
-
var orientationSubscription = _this.renderer.listen('window', 'orientationchange', resizeCheck);
|
|
2098
|
-
var documentClickSubscription = _this.renderer.listen('document', 'click', function (args) {
|
|
2099
|
-
var activeElement = document.activeElement;
|
|
2100
|
-
if (_this.editService.shouldCloseCell() &&
|
|
2101
|
-
!dom_queries_1.closest(args.target, dom_queries_1.matchesClasses('k-animation-container k-grid-ignore-click')) &&
|
|
2102
|
-
!(activeElement &&
|
|
2103
|
-
(dom_queries_1.closest(activeElement, dom_queries_1.matchesClasses('k-animation-container')) ||
|
|
2104
|
-
isInEditedCell(activeElement, _this.wrapper.nativeElement)))) {
|
|
2105
|
-
_this.editService.closeCell(args);
|
|
2106
|
-
}
|
|
2107
|
-
});
|
|
2108
|
-
var windowBlurSubscription = _this.renderer.listen('window', 'blur', function (args) {
|
|
2109
|
-
var activeElement = document.activeElement;
|
|
2110
|
-
if (activeElement && !(dom_queries_1.matchesNodeName('input')(activeElement) && activeElement.type === 'file' &&
|
|
2111
|
-
isInEditedCell(activeElement, _this.wrapper.nativeElement))) {
|
|
2112
|
-
_this.editService.closeCell(args);
|
|
2113
|
-
}
|
|
2114
|
-
_this.domEvents.windowBlur.emit(args);
|
|
2115
|
-
});
|
|
2116
|
-
var clickSubscription = _this.renderer.listen(wrapper, 'click', function (args) {
|
|
2117
|
-
_this.domEvents.click.emit(args);
|
|
2118
|
-
});
|
|
2119
|
-
var keydownSubscription = _this.renderer.listen(wrapper, 'keydown', function (args) {
|
|
2120
|
-
_this.domEvents.keydown.emit(args);
|
|
2121
|
-
});
|
|
2122
|
-
// focusIn and focusOut are relative to the element with ARIA role "grid"
|
|
2123
|
-
var focused = false;
|
|
2124
|
-
var focusInSubscription = _this.renderer.listen(ariaRoot, 'focusin', function (args) {
|
|
2125
|
-
_this.domEvents.focus.emit(args);
|
|
2126
|
-
if (!focused) {
|
|
2127
|
-
_this.domEvents.focusIn.emit(args);
|
|
2128
|
-
focused = true;
|
|
2129
|
-
}
|
|
2130
|
-
});
|
|
2131
|
-
var focusOutSubscription = _this.renderer.listen(ariaRoot, 'focusout', function (args) {
|
|
2132
|
-
var next = args.relatedTarget || document.activeElement;
|
|
2133
|
-
var outside = !dom_queries_1.closest(next, function (node) { return node === ariaRoot; });
|
|
2134
|
-
if (outside) {
|
|
2135
|
-
_this.domEvents.focusOut.emit(args);
|
|
2136
|
-
focused = false;
|
|
2137
|
-
}
|
|
2138
|
-
});
|
|
2139
|
-
_this.detachElementEventHandlers = function () {
|
|
2140
|
-
resizeSubscription();
|
|
2141
|
-
orientationSubscription();
|
|
2142
|
-
documentClickSubscription();
|
|
2143
|
-
windowBlurSubscription();
|
|
2144
|
-
clickSubscription();
|
|
2145
|
-
keydownSubscription();
|
|
2146
|
-
focusInSubscription();
|
|
2147
|
-
focusOutSubscription();
|
|
2148
|
-
};
|
|
2149
|
-
});
|
|
2150
|
-
};
|
|
2151
|
-
GridComponent.prototype.matchesMedia = function (c) {
|
|
2152
|
-
return this.responsiveService.matchesMedia(c.media);
|
|
2153
|
-
};
|
|
2154
|
-
GridComponent.prototype.resizeCheck = function () {
|
|
2155
|
-
var _this = this;
|
|
2156
|
-
if (window.innerWidth !== this.cachedWindowWidth) {
|
|
2157
|
-
this.cachedWindowWidth = window.innerWidth;
|
|
2158
|
-
var hasChanges_1 = false;
|
|
2159
|
-
this.columnList.filterHierarchy(function (column) {
|
|
2160
|
-
var matchesMedia = _this.matchesMedia(column);
|
|
2161
|
-
if (column.matchesMedia !== matchesMedia) {
|
|
2162
|
-
hasChanges_1 = true;
|
|
2163
|
-
column.matchesMedia = matchesMedia;
|
|
2164
|
-
}
|
|
2165
|
-
return column.isVisible;
|
|
2166
|
-
});
|
|
2167
|
-
if (hasChanges_1) {
|
|
2168
|
-
this.ngZone.run(function () {
|
|
2169
|
-
_this.changeDetectorRef.markForCheck();
|
|
2170
|
-
});
|
|
2171
|
-
}
|
|
2172
|
-
}
|
|
2173
|
-
};
|
|
2174
|
-
GridComponent.prototype.emitPDFExportEvent = function () {
|
|
2175
|
-
var args = new pdf_export_event_1.PDFExportEvent();
|
|
2176
|
-
this.pdfExport.emit(args);
|
|
2177
|
-
if (!args.isDefaultPrevented()) {
|
|
2178
|
-
this.saveAsPDF();
|
|
2179
|
-
}
|
|
2180
|
-
};
|
|
2181
|
-
GridComponent.prototype.syncHeaderHeight = function (observable) {
|
|
2182
|
-
var _this = this;
|
|
2183
|
-
return observable
|
|
2184
|
-
.pipe(operators_1.filter(function () { return utils_1.isPresent(_this.lockedHeader); }))
|
|
2185
|
-
.subscribe(function () {
|
|
2186
|
-
return row_sync_1.syncRowsHeight(_this.lockedHeader.nativeElement.children[0], _this.header.nativeElement.children[0]);
|
|
2187
|
-
});
|
|
2188
|
-
};
|
|
2189
|
-
GridComponent.prototype.columnsContainerChange = function () {
|
|
2190
|
-
var _this = this;
|
|
2191
|
-
this.columnsContainerChangeSubscription =
|
|
2192
|
-
this.syncHeaderHeight(this.columnsContainer.changes.pipe(operators_1.filter(function () { return _this.lockedColumns.length > 0; }), operators_1.switchMap(function () { return _this.ngZone.onStable.asObservable().pipe(operators_1.take(1)); })));
|
|
2193
|
-
};
|
|
2194
|
-
GridComponent.prototype.handleColumnResize = function () {
|
|
2195
|
-
var _this = this;
|
|
2196
|
-
var resizes = this.columnResizingService.changes;
|
|
2197
|
-
this.columnResizingSubscription = resizes.pipe(operators_1.tap(function (e) {
|
|
2198
|
-
if (e.type === 'start') {
|
|
2199
|
-
_this.renderer.addClass(_this.wrapper.nativeElement, 'k-grid-column-resizing');
|
|
2200
|
-
}
|
|
2201
|
-
else if (e.type === 'end') {
|
|
2202
|
-
_this.renderer.removeClass(_this.wrapper.nativeElement, 'k-grid-column-resizing');
|
|
2203
|
-
}
|
|
2204
|
-
}), operators_1.filter(function (e) { return e.type === 'start'; }), operators_1.switchMap(function () {
|
|
2205
|
-
return resizes.pipe(
|
|
2206
|
-
// tslint:disable-next-line: rxjs-no-unsafe-takeuntil
|
|
2207
|
-
operators_1.takeUntil(resizes.pipe(operators_1.filter(function (e) { return e.type === 'triggerAutoFit'; }))), operators_1.filter(function (e) { return e.type === 'end'; }));
|
|
2208
|
-
}))
|
|
2209
|
-
.subscribe(this.notifyResize.bind(this));
|
|
2210
|
-
};
|
|
2211
|
-
GridComponent.prototype.notifyResize = function (e) {
|
|
2212
|
-
var args = e.resizedColumns
|
|
2213
|
-
.filter(function (item) { return utils_1.isTruthy(item.column.resizable) && !item.column.isColumnGroup; })
|
|
2214
|
-
.map(function (item) { return ({
|
|
2215
|
-
column: item.column,
|
|
2216
|
-
newWidth: item.column.width,
|
|
2217
|
-
oldWidth: item.oldWidth
|
|
2218
|
-
}); });
|
|
2219
|
-
this.columnResize.emit(args);
|
|
2220
|
-
};
|
|
2221
|
-
GridComponent.prototype.assertNavigable = function () {
|
|
2222
|
-
if (core_1.isDevMode() && !this.navigable) {
|
|
2223
|
-
throw new Error('The Grid should be configured as [navigable]="true" to control focus');
|
|
2224
|
-
}
|
|
2225
|
-
};
|
|
2226
|
-
GridComponent.prototype.navigationMetadata = function () {
|
|
2227
|
-
var isVirtual = this.isVirtual;
|
|
2228
|
-
var pageSize = this.pageSize;
|
|
2229
|
-
var dataRows = isVirtual ? this.view.total : pageSize;
|
|
2230
|
-
var addRowOffset = this.editService.hasNewItem ? 1 : 0;
|
|
2231
|
-
var filterRowOffset = filterable_1.hasFilterRow(this.filterable) ? 1 : 0;
|
|
2232
|
-
var headerRows = this.totalColumnLevels + 1 + filterRowOffset + addRowOffset;
|
|
2233
|
-
return new navigation_metadata_1.NavigationMetadata(dataRows, headerRows, isVirtual, this.hasPager, utils_1.isPresent(this.detailTemplate), this.wrapper, this.virtualColumns, this.columnsContainer);
|
|
2234
|
-
};
|
|
2235
|
-
GridComponent.prototype.updateNavigationMetadata = function () {
|
|
2236
|
-
this.navigationService.metadata = this.navigationMetadata();
|
|
2237
|
-
};
|
|
2238
|
-
GridComponent.prototype.applyAutoSize = function () {
|
|
2239
|
-
var _this = this;
|
|
2240
|
-
var cols = this.columns.filter(function (c) { return _this.autoSize ? c.autoSize !== false : c.autoSize; });
|
|
2241
|
-
if (cols.length > 0) {
|
|
2242
|
-
this.ngZone.onStable.pipe(operators_1.take(1)).subscribe(function (_) { return _this.autoFitColumns(cols); });
|
|
2243
|
-
}
|
|
2244
|
-
};
|
|
2245
|
-
GridComponent.prototype.onColumnRangeChange = function (range) {
|
|
2246
|
-
var viewportColumns = this.viewportColumns = [];
|
|
2247
|
-
var leafViewportColumns = this.columnsContainer
|
|
2248
|
-
.nonLockedLeafColumns.toArray().slice(range.start, range.end + 1);
|
|
2249
|
-
for (var idx = 0; idx < leafViewportColumns.length; idx++) {
|
|
2250
|
-
var column = leafViewportColumns[idx];
|
|
2251
|
-
while (column.parent) {
|
|
2252
|
-
column = column.parent;
|
|
2253
|
-
}
|
|
2254
|
-
var toAdd = [column];
|
|
2255
|
-
while (toAdd.length) {
|
|
2256
|
-
column = toAdd.shift();
|
|
2257
|
-
viewportColumns.push(column);
|
|
2258
|
-
if (column.isColumnGroup) {
|
|
2259
|
-
toAdd.unshift.apply(toAdd, column.childrenArray);
|
|
2260
|
-
}
|
|
2261
|
-
}
|
|
2262
|
-
var lastFromGroup = viewportColumns[viewportColumns.length - 1];
|
|
2263
|
-
column = leafViewportColumns[idx];
|
|
2264
|
-
while (column !== lastFromGroup && idx < leafViewportColumns.length) {
|
|
2265
|
-
idx++;
|
|
2266
|
-
column = leafViewportColumns[idx];
|
|
2267
|
-
}
|
|
2268
|
-
}
|
|
2269
|
-
if (range.start > 0) {
|
|
2270
|
-
var first = leafViewportColumns[0];
|
|
2271
|
-
var offset = range.offset;
|
|
2272
|
-
var current = viewportColumns[0];
|
|
2273
|
-
var index = 0;
|
|
2274
|
-
while (current !== first) {
|
|
2275
|
-
offset -= current.isColumnGroup ? 0 : current.width;
|
|
2276
|
-
index++;
|
|
2277
|
-
current = viewportColumns[index];
|
|
2278
|
-
}
|
|
2279
|
-
if (offset > 0) {
|
|
2280
|
-
var totalLevels = this.columnsContainer.totalLevels;
|
|
2281
|
-
var previous = void 0;
|
|
2282
|
-
for (var idx = 0; idx <= totalLevels; idx++) {
|
|
2283
|
-
var offsetColumn = idx < totalLevels ? new column_group_component_1.ColumnGroupComponent(previous) : new column_base_1.ColumnBase(previous);
|
|
2284
|
-
previous = offsetColumn;
|
|
2285
|
-
offsetColumn.title = "\u00A0";
|
|
2286
|
-
offsetColumn.width = offset;
|
|
2287
|
-
viewportColumns.unshift(offsetColumn);
|
|
2288
|
-
}
|
|
2289
|
-
}
|
|
2290
|
-
}
|
|
2291
|
-
this.leafViewportColumns = viewportColumns.filter(function (c) { return !c.isColumnGroup; });
|
|
2292
|
-
};
|
|
2293
|
-
GridComponent.prototype.toggleDetailRowLegacy = function (index, expand) {
|
|
2294
|
-
var hasCallback = typeof this.isDetailExpanded === 'function';
|
|
2295
|
-
if (core_1.isDevMode() && hasCallback) {
|
|
2296
|
-
throw new Error('The expandRow and collapseRow methods should not be called when using the ' +
|
|
2297
|
-
'kendoGridDetailsExpandBy directive or the isDetailExpanded callback. ' +
|
|
2298
|
-
'These methods are provided only for backwards compatibility with legacy versions.');
|
|
2299
|
-
}
|
|
2300
|
-
if (!core_1.isDevMode() && hasCallback) {
|
|
2301
|
-
return;
|
|
2302
|
-
}
|
|
2303
|
-
if (this.detailsService.isExpanded(index, null) !== expand) {
|
|
2304
|
-
this.detailsService.toggleRow(index, null);
|
|
2305
|
-
}
|
|
2306
|
-
};
|
|
2307
|
-
GridComponent.prototype.toggleGroupRowLegacy = function (index, expand) {
|
|
2308
|
-
var hasCallback = typeof this.isGroupExpanded === 'function';
|
|
2309
|
-
if (core_1.isDevMode() && hasCallback) {
|
|
2310
|
-
throw new Error('The expandGroup and collapseGroup methods should not be called when using the ' +
|
|
2311
|
-
'kendoGridExpandGroupBy directive or the isGroupExpanded callback. ' +
|
|
2312
|
-
'These methods are provided only for backwards compatibility with legacy versions.');
|
|
2313
|
-
}
|
|
2314
|
-
if (!core_1.isDevMode() && hasCallback) {
|
|
2315
|
-
return;
|
|
2316
|
-
}
|
|
2317
|
-
if (this.groupsService.isExpanded({ groupIndex: index }) !== expand) {
|
|
2318
|
-
this.groupsService.toggleRow({ index: index });
|
|
2319
|
-
}
|
|
2320
|
-
};
|
|
2321
|
-
GridComponent.prototype.shouldResetSelection = function (selectableChanges) {
|
|
2322
|
-
var previousValue = selectableChanges.previousValue;
|
|
2323
|
-
if (!previousValue) {
|
|
2324
|
-
// Selection was disabled, no need to reset.
|
|
2325
|
-
return false;
|
|
2326
|
-
}
|
|
2327
|
-
var currentValue = selectableChanges.currentValue;
|
|
2328
|
-
if (!currentValue || currentValue.enabled === false) {
|
|
2329
|
-
// Selection disabled, reset.
|
|
2330
|
-
return true;
|
|
2331
|
-
}
|
|
2332
|
-
return previousValue.cell !== currentValue.cell;
|
|
2333
|
-
};
|
|
2334
|
-
tslib_1.__decorate([
|
|
2335
|
-
core_1.Input(),
|
|
2336
|
-
tslib_1.__metadata("design:type", Object)
|
|
2337
|
-
], GridComponent.prototype, "data", void 0);
|
|
2338
|
-
tslib_1.__decorate([
|
|
2339
|
-
core_1.Input(),
|
|
2340
|
-
tslib_1.__metadata("design:type", Number)
|
|
2341
|
-
], GridComponent.prototype, "pageSize", void 0);
|
|
2342
|
-
tslib_1.__decorate([
|
|
2343
|
-
core_1.Input(),
|
|
2344
|
-
tslib_1.__metadata("design:type", Number)
|
|
2345
|
-
], GridComponent.prototype, "height", void 0);
|
|
2346
|
-
tslib_1.__decorate([
|
|
2347
|
-
core_1.Input(),
|
|
2348
|
-
tslib_1.__metadata("design:type", Number)
|
|
2349
|
-
], GridComponent.prototype, "rowHeight", void 0);
|
|
2350
|
-
tslib_1.__decorate([
|
|
2351
|
-
core_1.Input(),
|
|
2352
|
-
tslib_1.__metadata("design:type", Number)
|
|
2353
|
-
], GridComponent.prototype, "detailRowHeight", void 0);
|
|
2354
|
-
tslib_1.__decorate([
|
|
2355
|
-
core_1.Input(),
|
|
2356
|
-
tslib_1.__metadata("design:type", Number),
|
|
2357
|
-
tslib_1.__metadata("design:paramtypes", [Number])
|
|
2358
|
-
], GridComponent.prototype, "skip", null);
|
|
2359
|
-
tslib_1.__decorate([
|
|
2360
|
-
core_1.Input(),
|
|
2361
|
-
tslib_1.__metadata("design:type", String)
|
|
2362
|
-
], GridComponent.prototype, "scrollable", void 0);
|
|
2363
|
-
tslib_1.__decorate([
|
|
2364
|
-
core_1.Input(),
|
|
2365
|
-
tslib_1.__metadata("design:type", Object)
|
|
2366
|
-
], GridComponent.prototype, "selectable", void 0);
|
|
2367
|
-
tslib_1.__decorate([
|
|
2368
|
-
core_1.Input(),
|
|
2369
|
-
tslib_1.__metadata("design:type", Array),
|
|
2370
|
-
tslib_1.__metadata("design:paramtypes", [Array])
|
|
2371
|
-
], GridComponent.prototype, "sort", null);
|
|
2372
|
-
tslib_1.__decorate([
|
|
2373
|
-
core_1.Input(),
|
|
2374
|
-
tslib_1.__metadata("design:type", Function)
|
|
2375
|
-
], GridComponent.prototype, "trackBy", void 0);
|
|
2376
|
-
tslib_1.__decorate([
|
|
2377
|
-
core_1.Input(),
|
|
2378
|
-
tslib_1.__metadata("design:type", Object)
|
|
2379
|
-
], GridComponent.prototype, "filter", void 0);
|
|
2380
|
-
tslib_1.__decorate([
|
|
2381
|
-
core_1.Input(),
|
|
2382
|
-
tslib_1.__metadata("design:type", Array),
|
|
2383
|
-
tslib_1.__metadata("design:paramtypes", [Array])
|
|
2384
|
-
], GridComponent.prototype, "group", null);
|
|
2385
|
-
tslib_1.__decorate([
|
|
2386
|
-
core_1.Input(),
|
|
2387
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
2388
|
-
], GridComponent.prototype, "virtualColumns", void 0);
|
|
2389
|
-
tslib_1.__decorate([
|
|
2390
|
-
core_1.Input(),
|
|
2391
|
-
tslib_1.__metadata("design:type", Object)
|
|
2392
|
-
], GridComponent.prototype, "filterable", void 0);
|
|
2393
|
-
tslib_1.__decorate([
|
|
2394
|
-
core_1.Input(),
|
|
2395
|
-
tslib_1.__metadata("design:type", Object)
|
|
2396
|
-
], GridComponent.prototype, "sortable", void 0);
|
|
2397
|
-
tslib_1.__decorate([
|
|
2398
|
-
core_1.Input(),
|
|
2399
|
-
tslib_1.__metadata("design:type", Object)
|
|
2400
|
-
], GridComponent.prototype, "pageable", void 0);
|
|
2401
|
-
tslib_1.__decorate([
|
|
2402
|
-
core_1.Input(),
|
|
2403
|
-
tslib_1.__metadata("design:type", Object)
|
|
2404
|
-
], GridComponent.prototype, "groupable", void 0);
|
|
2405
|
-
tslib_1.__decorate([
|
|
2406
|
-
core_1.Input(),
|
|
2407
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
2408
|
-
], GridComponent.prototype, "navigable", void 0);
|
|
2409
|
-
tslib_1.__decorate([
|
|
2410
|
-
core_1.Input(),
|
|
2411
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
2412
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
2413
|
-
], GridComponent.prototype, "navigatable", null);
|
|
2414
|
-
tslib_1.__decorate([
|
|
2415
|
-
core_1.Input(),
|
|
2416
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
2417
|
-
], GridComponent.prototype, "autoSize", void 0);
|
|
2418
|
-
tslib_1.__decorate([
|
|
2419
|
-
core_1.Input(),
|
|
2420
|
-
tslib_1.__metadata("design:type", Function),
|
|
2421
|
-
tslib_1.__metadata("design:paramtypes", [Function])
|
|
2422
|
-
], GridComponent.prototype, "rowClass", null);
|
|
2423
|
-
tslib_1.__decorate([
|
|
2424
|
-
core_1.Input(),
|
|
2425
|
-
tslib_1.__metadata("design:type", Function),
|
|
2426
|
-
tslib_1.__metadata("design:paramtypes", [Function])
|
|
2427
|
-
], GridComponent.prototype, "rowSticky", null);
|
|
2428
|
-
tslib_1.__decorate([
|
|
2429
|
-
core_1.Input(),
|
|
2430
|
-
tslib_1.__metadata("design:type", Function),
|
|
2431
|
-
tslib_1.__metadata("design:paramtypes", [Function])
|
|
2432
|
-
], GridComponent.prototype, "rowSelected", null);
|
|
2433
|
-
tslib_1.__decorate([
|
|
2434
|
-
core_1.Input(),
|
|
2435
|
-
tslib_1.__metadata("design:type", Function),
|
|
2436
|
-
tslib_1.__metadata("design:paramtypes", [Function])
|
|
2437
|
-
], GridComponent.prototype, "cellSelected", null);
|
|
2438
|
-
tslib_1.__decorate([
|
|
2439
|
-
core_1.Input(),
|
|
2440
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
2441
|
-
], GridComponent.prototype, "resizable", void 0);
|
|
2442
|
-
tslib_1.__decorate([
|
|
2443
|
-
core_1.Input(),
|
|
2444
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
2445
|
-
], GridComponent.prototype, "reorderable", void 0);
|
|
2446
|
-
tslib_1.__decorate([
|
|
2447
|
-
core_1.Input(),
|
|
2448
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
2449
|
-
], GridComponent.prototype, "loading", void 0);
|
|
2450
|
-
tslib_1.__decorate([
|
|
2451
|
-
core_1.Input(),
|
|
2452
|
-
tslib_1.__metadata("design:type", Object)
|
|
2453
|
-
], GridComponent.prototype, "columnMenu", void 0);
|
|
2454
|
-
tslib_1.__decorate([
|
|
2455
|
-
core_1.Input(),
|
|
2456
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
2457
|
-
], GridComponent.prototype, "hideHeader", void 0);
|
|
2458
|
-
tslib_1.__decorate([
|
|
2459
|
-
core_1.Output(),
|
|
2460
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2461
|
-
], GridComponent.prototype, "filterChange", void 0);
|
|
2462
|
-
tslib_1.__decorate([
|
|
2463
|
-
core_1.Output(),
|
|
2464
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2465
|
-
], GridComponent.prototype, "pageChange", void 0);
|
|
2466
|
-
tslib_1.__decorate([
|
|
2467
|
-
core_1.Output(),
|
|
2468
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2469
|
-
], GridComponent.prototype, "groupChange", void 0);
|
|
2470
|
-
tslib_1.__decorate([
|
|
2471
|
-
core_1.Output(),
|
|
2472
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2473
|
-
], GridComponent.prototype, "sortChange", void 0);
|
|
2474
|
-
tslib_1.__decorate([
|
|
2475
|
-
core_1.Output(),
|
|
2476
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2477
|
-
], GridComponent.prototype, "selectionChange", void 0);
|
|
2478
|
-
tslib_1.__decorate([
|
|
2479
|
-
core_1.Output(),
|
|
2480
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2481
|
-
], GridComponent.prototype, "dataStateChange", void 0);
|
|
2482
|
-
tslib_1.__decorate([
|
|
2483
|
-
core_1.Output(),
|
|
2484
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2485
|
-
], GridComponent.prototype, "groupExpand", void 0);
|
|
2486
|
-
tslib_1.__decorate([
|
|
2487
|
-
core_1.Output(),
|
|
2488
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2489
|
-
], GridComponent.prototype, "groupCollapse", void 0);
|
|
2490
|
-
tslib_1.__decorate([
|
|
2491
|
-
core_1.Output(),
|
|
2492
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2493
|
-
], GridComponent.prototype, "detailExpand", void 0);
|
|
2494
|
-
tslib_1.__decorate([
|
|
2495
|
-
core_1.Output(),
|
|
2496
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2497
|
-
], GridComponent.prototype, "detailCollapse", void 0);
|
|
2498
|
-
tslib_1.__decorate([
|
|
2499
|
-
core_1.Output(),
|
|
2500
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2501
|
-
], GridComponent.prototype, "edit", void 0);
|
|
2502
|
-
tslib_1.__decorate([
|
|
2503
|
-
core_1.Output(),
|
|
2504
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2505
|
-
], GridComponent.prototype, "cancel", void 0);
|
|
2506
|
-
tslib_1.__decorate([
|
|
2507
|
-
core_1.Output(),
|
|
2508
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2509
|
-
], GridComponent.prototype, "save", void 0);
|
|
2510
|
-
tslib_1.__decorate([
|
|
2511
|
-
core_1.Output(),
|
|
2512
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2513
|
-
], GridComponent.prototype, "remove", void 0);
|
|
2514
|
-
tslib_1.__decorate([
|
|
2515
|
-
core_1.Output(),
|
|
2516
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2517
|
-
], GridComponent.prototype, "add", void 0);
|
|
2518
|
-
tslib_1.__decorate([
|
|
2519
|
-
core_1.Output(),
|
|
2520
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2521
|
-
], GridComponent.prototype, "cellClose", void 0);
|
|
2522
|
-
tslib_1.__decorate([
|
|
2523
|
-
core_1.Output(),
|
|
2524
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2525
|
-
], GridComponent.prototype, "cellClick", void 0);
|
|
2526
|
-
tslib_1.__decorate([
|
|
2527
|
-
core_1.Output(),
|
|
2528
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2529
|
-
], GridComponent.prototype, "pdfExport", void 0);
|
|
2530
|
-
tslib_1.__decorate([
|
|
2531
|
-
core_1.Output(),
|
|
2532
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2533
|
-
], GridComponent.prototype, "excelExport", void 0);
|
|
2534
|
-
tslib_1.__decorate([
|
|
2535
|
-
core_1.Output(),
|
|
2536
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2537
|
-
], GridComponent.prototype, "columnResize", void 0);
|
|
2538
|
-
tslib_1.__decorate([
|
|
2539
|
-
core_1.Output(),
|
|
2540
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2541
|
-
], GridComponent.prototype, "columnReorder", void 0);
|
|
2542
|
-
tslib_1.__decorate([
|
|
2543
|
-
core_1.Output(),
|
|
2544
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2545
|
-
], GridComponent.prototype, "columnVisibilityChange", void 0);
|
|
2546
|
-
tslib_1.__decorate([
|
|
2547
|
-
core_1.Output(),
|
|
2548
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2549
|
-
], GridComponent.prototype, "columnLockedChange", void 0);
|
|
2550
|
-
tslib_1.__decorate([
|
|
2551
|
-
core_1.Output(),
|
|
2552
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2553
|
-
], GridComponent.prototype, "columnStickyChange", void 0);
|
|
2554
|
-
tslib_1.__decorate([
|
|
2555
|
-
core_1.Output(),
|
|
2556
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2557
|
-
], GridComponent.prototype, "scrollBottom", void 0);
|
|
2558
|
-
tslib_1.__decorate([
|
|
2559
|
-
core_1.Output(),
|
|
2560
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
2561
|
-
], GridComponent.prototype, "contentScroll", void 0);
|
|
2562
|
-
tslib_1.__decorate([
|
|
2563
|
-
core_1.ContentChildren(column_base_1.ColumnBase),
|
|
2564
|
-
tslib_1.__metadata("design:type", core_1.QueryList)
|
|
2565
|
-
], GridComponent.prototype, "columns", void 0);
|
|
2566
|
-
tslib_1.__decorate([
|
|
2567
|
-
core_1.HostBinding('attr.dir'),
|
|
2568
|
-
tslib_1.__metadata("design:type", String),
|
|
2569
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
2570
|
-
], GridComponent.prototype, "dir", null);
|
|
2571
|
-
tslib_1.__decorate([
|
|
2572
|
-
core_1.HostBinding('class.k-grid'),
|
|
2573
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
2574
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
2575
|
-
], GridComponent.prototype, "hostClasses", null);
|
|
2576
|
-
tslib_1.__decorate([
|
|
2577
|
-
core_1.HostBinding('class.k-grid-lockedcolumns'),
|
|
2578
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
2579
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
2580
|
-
], GridComponent.prototype, "lockedClasses", null);
|
|
2581
|
-
tslib_1.__decorate([
|
|
2582
|
-
core_1.HostBinding('class.k-grid-virtual'),
|
|
2583
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
2584
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
2585
|
-
], GridComponent.prototype, "virtualClasses", null);
|
|
2586
|
-
tslib_1.__decorate([
|
|
2587
|
-
core_1.HostBinding('class.k-grid-no-scrollbar'),
|
|
2588
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
2589
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
2590
|
-
], GridComponent.prototype, "noScrollbarClass", null);
|
|
2591
|
-
tslib_1.__decorate([
|
|
2592
|
-
core_1.ContentChildren(detail_template_directive_1.DetailTemplateDirective),
|
|
2593
|
-
tslib_1.__metadata("design:type", core_1.QueryList)
|
|
2594
|
-
], GridComponent.prototype, "detailTemplateChildren", void 0);
|
|
2595
|
-
tslib_1.__decorate([
|
|
2596
|
-
core_1.ContentChildren(cell_loading_template_directive_1.CellLoadingTemplateDirective),
|
|
2597
|
-
tslib_1.__metadata("design:type", core_1.QueryList)
|
|
2598
|
-
], GridComponent.prototype, "loadingTemplateChildren", void 0);
|
|
2599
|
-
tslib_1.__decorate([
|
|
2600
|
-
core_1.ContentChildren(no_records_template_directive_1.NoRecordsTemplateDirective),
|
|
2601
|
-
tslib_1.__metadata("design:type", core_1.QueryList)
|
|
2602
|
-
], GridComponent.prototype, "noRecordsTemplateChildren", void 0);
|
|
2603
|
-
tslib_1.__decorate([
|
|
2604
|
-
core_1.ContentChildren(pager_template_directive_1.PagerTemplateDirective),
|
|
2605
|
-
tslib_1.__metadata("design:type", core_1.QueryList)
|
|
2606
|
-
], GridComponent.prototype, "pagerTemplateChildren", void 0);
|
|
2607
|
-
tslib_1.__decorate([
|
|
2608
|
-
core_1.ContentChildren(toolbar_template_directive_1.ToolbarTemplateDirective),
|
|
2609
|
-
tslib_1.__metadata("design:type", core_1.QueryList)
|
|
2610
|
-
], GridComponent.prototype, "toolbarTemplateChildren", void 0);
|
|
2611
|
-
tslib_1.__decorate([
|
|
2612
|
-
core_1.ContentChildren(column_menu_template_directive_1.ColumnMenuTemplateDirective),
|
|
2613
|
-
tslib_1.__metadata("design:type", core_1.QueryList)
|
|
2614
|
-
], GridComponent.prototype, "columnMenuTemplates", void 0);
|
|
2615
|
-
tslib_1.__decorate([
|
|
2616
|
-
core_1.ViewChild('lockedHeader', { static: false }),
|
|
2617
|
-
tslib_1.__metadata("design:type", Object)
|
|
2618
|
-
], GridComponent.prototype, "lockedHeader", void 0);
|
|
2619
|
-
tslib_1.__decorate([
|
|
2620
|
-
core_1.ViewChild('header', { static: false }),
|
|
2621
|
-
tslib_1.__metadata("design:type", Object)
|
|
2622
|
-
], GridComponent.prototype, "header", void 0);
|
|
2623
|
-
tslib_1.__decorate([
|
|
2624
|
-
core_1.ViewChildren('footer'),
|
|
2625
|
-
tslib_1.__metadata("design:type", core_1.QueryList)
|
|
2626
|
-
], GridComponent.prototype, "footer", void 0);
|
|
2627
|
-
tslib_1.__decorate([
|
|
2628
|
-
core_1.ViewChild('ariaRoot', { static: true }),
|
|
2629
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
2630
|
-
], GridComponent.prototype, "ariaRoot", void 0);
|
|
2631
|
-
tslib_1.__decorate([
|
|
2632
|
-
core_1.Input(),
|
|
2633
|
-
tslib_1.__metadata("design:type", Function),
|
|
2634
|
-
tslib_1.__metadata("design:paramtypes", [Function])
|
|
2635
|
-
], GridComponent.prototype, "isDetailExpanded", null);
|
|
2636
|
-
tslib_1.__decorate([
|
|
2637
|
-
core_1.Input(),
|
|
2638
|
-
tslib_1.__metadata("design:type", Function),
|
|
2639
|
-
tslib_1.__metadata("design:paramtypes", [Function])
|
|
2640
|
-
], GridComponent.prototype, "isGroupExpanded", null);
|
|
2641
|
-
GridComponent = tslib_1.__decorate([
|
|
2642
|
-
core_1.Component({
|
|
2643
|
-
encapsulation: core_1.ViewEncapsulation.None,
|
|
2644
|
-
exportAs: 'kendoGrid',
|
|
2645
|
-
providers: [
|
|
2646
|
-
browser_support_service_1.BrowserSupportService,
|
|
2647
|
-
kendo_angular_l10n_1.LocalizationService,
|
|
2648
|
-
column_info_service_1.ColumnInfoService,
|
|
2649
|
-
selection_service_1.SelectionService,
|
|
2650
|
-
cell_selection_service_1.CellSelectionService,
|
|
2651
|
-
details_service_1.DetailsService,
|
|
2652
|
-
groups_service_1.GroupsService,
|
|
2653
|
-
group_info_service_1.GroupInfoService,
|
|
2654
|
-
change_notification_service_1.ChangeNotificationService,
|
|
2655
|
-
edit_service_1.EditService,
|
|
2656
|
-
pdf_service_1.PDFService,
|
|
2657
|
-
suspend_service_1.SuspendService,
|
|
2658
|
-
{
|
|
2659
|
-
provide: cell_context_1.CELL_CONTEXT,
|
|
2660
|
-
useValue: ɵ5
|
|
2661
|
-
},
|
|
2662
|
-
{
|
|
2663
|
-
provide: kendo_angular_l10n_1.L10N_PREFIX,
|
|
2664
|
-
useValue: 'kendo.grid'
|
|
2665
|
-
},
|
|
2666
|
-
filter_service_1.FilterService,
|
|
2667
|
-
responsive_service_1.ResponsiveService,
|
|
2668
|
-
pager_context_service_1.PagerContextService,
|
|
2669
|
-
excel_service_1.ExcelService,
|
|
2670
|
-
scroll_sync_service_1.ScrollSyncService,
|
|
2671
|
-
resize_service_1.ResizeService,
|
|
2672
|
-
local_data_changes_service_1.LocalDataChangesService,
|
|
2673
|
-
dom_events_service_1.DomEventsService,
|
|
2674
|
-
column_resizing_service_1.ColumnResizingService,
|
|
2675
|
-
single_popup_service_1.SinglePopupService,
|
|
2676
|
-
drag_and_drop_service_1.DragAndDropService,
|
|
2677
|
-
drag_hint_service_1.DragHintService,
|
|
2678
|
-
drop_cue_service_1.DropCueService,
|
|
2679
|
-
column_reorder_service_1.ColumnReorderService,
|
|
2680
|
-
navigation_service_1.NavigationService,
|
|
2681
|
-
focus_root_1.FocusRoot,
|
|
2682
|
-
id_service_1.IdService,
|
|
2683
|
-
scroll_request_service_1.ScrollRequestService,
|
|
2684
|
-
sort_service_1.SortService
|
|
2685
|
-
],
|
|
2686
|
-
selector: 'kendo-grid',
|
|
2687
|
-
styles: [
|
|
2688
|
-
// Styles for backwards compatibility with kendo-theme-default@v2.46.0 and earlier.
|
|
2689
|
-
" .k-grid .k-grid-aria-root {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n overflow: hidden;\n }\n\n .k-grid .k-filter-row td {\n white-space: nowrap;\n }"
|
|
2690
|
-
],
|
|
2691
|
-
template: "\n <ng-container kendoGridLocalizedMessages\n i18n-groupPanelEmpty=\"kendo.grid.groupPanelEmpty|The label visible in the Grid group panel when it is empty\"\n groupPanelEmpty=\"Drag a column header and drop it here to group by that column\"\n\n i18n-noRecords=\"kendo.grid.noRecords|The label visible in the Grid when there are no records\"\n noRecords=\"No records available.\"\n\n i18n-pagerLabel=\"kendo.grid.pagerLabel|The label for the Grid pager\"\n pagerLabel=\"{{ 'Page navigation, page {currentPage} of {totalPages}' }}\"\n\n i18n-pagerFirstPage=\"kendo.grid.pagerFirstPage|The label for the first page button in Grid pager\"\n pagerFirstPage=\"Go to the first page\"\n\n i18n-pagerPreviousPage=\"kendo.grid.pagerPreviousPage|The label for the previous page button in Grid pager\"\n pagerPreviousPage=\"Go to the previous page\"\n\n i18n-pagerNextPage=\"kendo.grid.pagerNextPage|The label for the next page button in Grid pager\"\n pagerNextPage=\"Go to the next page\"\n\n i18n-pagerLastPage=\"kendo.grid.pagerLastPage|The label for the last page button in Grid pager\"\n pagerLastPage=\"Go to the last page\"\n\n i18n-pagerPage=\"kendo.grid.pagerPage|The label before the current page number in the Grid pager\"\n pagerPage=\"Page\"\n\n i18n-pagerOf=\"kendo.grid.pagerOf|The label before the total pages number in the Grid pager\"\n pagerOf=\"of\"\n\n i18n-pagerItems=\"kendo.grid.pagerItems|The label after the total pages number in the Grid pager\"\n pagerItems=\"items\"\n\n i18n-pagerPageNumberInputTitle=\"kendo.grid.pagerPageNumberInputTitle|The label for the pager input in the Grid pager\"\n pagerPageNumberInputTitle=\"Page Number\"\n\n i18n-pagerItemsPerPage=\"kendo.grid.pagerItemsPerPage|The label for the page size chooser in the Grid pager\"\n pagerItemsPerPage=\"items per page\"\n\n i18n-filter=\"kendo.grid.filter|The label of the filter cell or icon\"\n filter=\"Filter\"\n\n i18n-filterInputLabel=\"kendo.grid.filterInputLabel|The label of the filter row and menu inputs\"\n filterInputLabel=\"{{ '{columnName} Filter' }}\"\n\n i18n-filterMenuTitle=\"kendo.grid.filterMenuTitle|The title of the filter menu icon\"\n filterMenuTitle=\"{{ '{columnName} Filter Menu' }}\"\n\n i18n-filterMenuOperatorsDropDownLabel=\"kendo.grid.filterMenuOperatorsDropDownLabel|The label of the filter menu operators dropdown\"\n filterMenuOperatorsDropDownLabel=\"{{ '{columnName} Filter Operators' }}\"\n\n i18n-filterMenuLogicDropDownLabel=\"kendo.grid.filterMenuLogicDropDownLabel|The label of the filter menu logic dropdown\"\n filterMenuLogicDropDownLabel=\"{{ '{columnName} Filter Logic' }}\"\n\n i18n-filterEqOperator=\"kendo.grid.filterEqOperator|The text of the equal filter operator\"\n filterEqOperator=\"Is equal to\"\n\n i18n-filterNotEqOperator=\"kendo.grid.filterNotEqOperator|The text of the not equal filter operator\"\n filterNotEqOperator=\"Is not equal to\"\n\n i18n-filterIsNullOperator=\"kendo.grid.filterIsNullOperator|The text of the is null filter operator\"\n filterIsNullOperator=\"Is null\"\n\n i18n-filterIsNotNullOperator=\"kendo.grid.filterIsNotNullOperator|The text of the is not null filter operator\"\n filterIsNotNullOperator=\"Is not null\"\n\n i18n-filterIsEmptyOperator=\"kendo.grid.filterIsEmptyOperator|The text of the is empty filter operator\"\n filterIsEmptyOperator=\"Is empty\"\n\n i18n-filterIsNotEmptyOperator=\"kendo.grid.filterIsNotEmptyOperator|The text of the is not empty filter operator\"\n filterIsNotEmptyOperator=\"Is not empty\"\n\n i18n-filterStartsWithOperator=\"kendo.grid.filterStartsWithOperator|The text of the starts with filter operator\"\n filterStartsWithOperator=\"Starts with\"\n\n i18n-filterContainsOperator=\"kendo.grid.filterContainsOperator|The text of the contains filter operator\"\n filterContainsOperator=\"Contains\"\n\n i18n-filterNotContainsOperator=\"kendo.grid.filterNotContainsOperator|The text of the does not contain filter operator\"\n filterNotContainsOperator=\"Does not contain\"\n\n i18n-filterEndsWithOperator=\"kendo.grid.filterEndsWithOperator|The text of the ends with filter operator\"\n filterEndsWithOperator=\"Ends with\"\n\n i18n-filterGteOperator=\"kendo.grid.filterGteOperator|The text of the greater than or equal filter operator\"\n filterGteOperator=\"Is greater than or equal to\"\n\n i18n-filterGtOperator=\"kendo.grid.filterGtOperator|The text of the greater than filter operator\"\n filterGtOperator=\"Is greater than\"\n\n i18n-filterLteOperator=\"kendo.grid.filterLteOperator|The text of the less than or equal filter operator\"\n filterLteOperator=\"Is less than or equal to\"\n\n i18n-filterLtOperator=\"kendo.grid.filterLtOperator|The text of the less than filter operator\"\n filterLtOperator=\"Is less than\"\n\n i18n-filterIsTrue=\"kendo.grid.filterIsTrue|The text of the IsTrue boolean filter option\"\n filterIsTrue=\"Is True\"\n\n i18n-filterIsFalse=\"kendo.grid.filterIsFalse|The text of the IsFalse boolean filter option\"\n filterIsFalse=\"Is False\"\n\n i18n-filterBooleanAll=\"kendo.grid.filterBooleanAll|The text of the (All) boolean filter option\"\n filterBooleanAll=\"(All)\"\n\n i18n-filterAfterOrEqualOperator=\"kendo.grid.filterAfterOrEqualOperator|The text of the after or equal date filter operator\"\n filterAfterOrEqualOperator=\"Is after or equal to\"\n\n i18n-filterAfterOperator=\"kendo.grid.filterAfterOperator|The text of the after date filter operator\"\n filterAfterOperator=\"Is after\"\n\n i18n-filterBeforeOperator=\"kendo.grid.filterBeforeOperator|The text of the before date filter operator\"\n filterBeforeOperator=\"Is before\"\n\n i18n-filterBeforeOrEqualOperator=\"kendo.grid.filterBeforeOrEqualOperator|The text of the before or equal date filter operator\"\n filterBeforeOrEqualOperator=\"Is before or equal to\"\n\n i18n-filterFilterButton=\"kendo.grid.filterFilterButton|The text of the filter button\"\n filterFilterButton=\"Filter\"\n\n i18n-filterClearButton=\"kendo.grid.filterClearButton|The text of the clear filter button\"\n filterClearButton=\"Clear\"\n\n i18n-filterAndLogic=\"kendo.grid.filterAndLogic|The text of the And filter logic\"\n filterAndLogic=\"And\"\n\n i18n-filterOrLogic=\"kendo.grid.filterOrLogic|The text of the Or filter logic\"\n filterOrLogic=\"Or\"\n\n i18n-loading=\"kendo.grid.loading|The loading text\"\n loading=\"Loading\"\n\n i18n-gridLabel=\"kendo.grid.gridLabel|The Grid aria-label\"\n gridLabel=\"Data table\"\n\n i18n-columnMenu=\"kendo.grid.columnMenu|The title of the column menu icon\"\n columnMenu=\"{{ '{columnName} Column Menu' }}\"\n\n i18n-columns=\"kendo.grid.columns|The text shown in the column menu for the columns item\"\n columns=\"Columns\"\n\n i18n-lock=\"kendo.grid.lock|The text shown in the column menu for the lock item\"\n lock=\"Lock\"\n\n i18n-unlock=\"kendo.grid.unlock|The text shown in the column menu for the unlock item\"\n unlock=\"Unlock\"\n\n i18n-setColumnPosition=\"kendo.grid.setColumnPosition|The text shown in the column menu for the set column position item\"\n setColumnPosition=\"Set Column Position\"\n\n i18n-stick=\"kendo.grid.stick|The text shown in the column menu for the stick item\"\n stick=\"Stick\"\n\n i18n-unstick=\"kendo.grid.unstick|The text shown in the column menu for the unstick item\"\n unstick=\"Unstick\"\n\n i18n-sortable=\"kendo.grid.sortable|The label of the sort icon\"\n sortable=\"Sortable\"\n\n i18n-sortAscending=\"kendo.grid.sortAscending|The text shown in the column menu for the sort ascending item\"\n sortAscending=\"Sort Ascending\"\n\n i18n-sortDescending=\"kendo.grid.sortDescending|The text shown in the column menu for the sort descending item\"\n sortDescending=\"Sort Descending\"\n\n i18n-sortedAscending=\"kendo.grid.sortedAscending|The status announcement when a column is sorted ascending\"\n sortedAscending=\"Sorted Ascending\"\n\n i18n-sortedDescending=\"kendo.grid.sortedDescending|The status announcement when a column is sorted descending\"\n sortedDescending=\"Sorted Descending\"\n\n i18n-sortedDefault=\"kendo.grid.sortedDefault|The status announcement when a column is no longer sorted\"\n sortedDefault=\"Not Sorted\"\n\n i18n-columnsApply=\"kendo.grid.columnsApply|The text shown in the column menu or column chooser for the columns apply button\"\n columnsApply=\"Apply\"\n\n i18n-columnsReset=\"kendo.grid.columnsReset|The text shown in the column menu or column chooser for the columns reset button\"\n columnsReset=\"Reset\"\n\n i18n-detailExpand=\"kendo.grid.detailExpand|The title of the expand icon of detail rows.\"\n detailExpand=\"Expand Details\"\n\n i18n-detailCollapse=\"kendo.grid.detailCollapse|The title of the collapse icon of detail rows.\"\n detailCollapse=\"Collapse Details\"\n\n i18n-filterDateToday=\"kendo.grid.filterDateToday|The text of the Today button of the Date filter.\"\n filterDateToday=\"TODAY\"\n\n i18n-filterDateToggle=\"kendo.grid.filterDateToggle|The title of the Toggle button of the Date filter.\"\n filterDateToggle=\"Toggle Calendar\"\n\n i18n-filterNumericDecrement=\"kendo.grid.filterNumericDecrement|The title of the Decrement button of the Numeric filter.\"\n filterNumericDecrement=\"Decrement\"\n\n i18n-filterNumericIncrement=\"kendo.grid.filterNumericIncrement|The title of the Increment button of the Numeric filter.\"\n filterNumericIncrement=\"Increment\"\n\n i18n-selectionCheckboxLabel=\"kendo.grid.selectionCheckboxLabel|The labels of the checkbox column checkboxes.\"\n selectionCheckboxLabel=\"Select Row\"\n\n i18n-selectAllCheckboxLabel=\"kendo.grid.selectAllCheckboxLabel|The label of the checkbox column select all checkbox.\"\n selectAllCheckboxLabel=\"Select All Rows\"\n\n i18n-groupCollapse=\"kendo.grid.groupCollapse|The text of the title and aria-label attributes applied to the collapse icon of group rows.\"\n groupCollapse=\"Collapse Group\"\n\n i18n-groupExpand=\"kendo.grid.groupExpand|The text of the title and aria-label attributes applied to the expand icon of group rows.\"\n groupExpand=\"Expand Group\"\n >\n </ng-container>\n <kendo-grid-toolbar class=\"k-toolbar k-grid-toolbar\" *ngIf=\"showTopToolbar\" position=\"top\"></kendo-grid-toolbar>\n <kendo-pager\n *ngIf=\"showTopPager\"\n [tabindex]=\"navigable ? '0' : '-1'\"\n [attr.role]=\"navigable ? 'navigation' : undefined\"\n class=\"k-grid-pager-top\"\n [template]=\"pagerTemplate\"\n [pageSize]=\"pageSize\"\n [total]=\"view.total\"\n [skip]=\"skip\"\n [options]=\"pageable\"\n (pageChange)=\"notifyPageChange('pager', $event)\">\n </kendo-pager>\n <kendo-grid-group-panel\n *ngIf=\"showGroupPanel\"\n [text]=\"groupableEmptyText\"\n [groups]=\"group\"\n (change)=\"groupChange.emit($event)\">\n </kendo-grid-group-panel>\n <div #ariaRoot\n class=\"k-grid-aria-root\"\n role=\"grid\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-rowcount]=\"ariaRowCount\"\n [attr.aria-colcount]=\"ariaColCount\">\n <ng-template [ngIf]=\"isScrollable\">\n <div *ngIf=\"!hideHeader\"\n class=\"k-grid-header\"\n role=\"presentation\"\n [style.padding]=\"headerPadding\">\n <div *ngIf=\"isLocked\"\n #lockedHeader\n role=\"presentation\"\n class=\"k-grid-header-locked\"\n [style.width.px]=\"lockedWidth\">\n <table [locked]=\"true\" role=\"presentation\" [style.width.px]=\"lockedWidth\">\n <colgroup kendoGridColGroup\n role=\"presentation\"\n [columns]=\"lockedLeafColumns\"\n [groups]=\"group\"\n [detailTemplate]=\"detailTemplate\">\n </colgroup>\n <thead kendoGridHeader\n [resizable]=\"resizable\"\n [scrollable]=\"true\"\n [columns]=\"lockedColumns\"\n [totalColumnLevels]=\"totalColumnLevels\"\n [sort]=\"sort\"\n [groups]=\"group\"\n [filter]=\"filter\"\n [filterable]=\"filterable\"\n [groupable]=\"showGroupPanel\"\n [reorderable]=\"reorderable\"\n [sortable]=\"sortable\"\n [columnMenu]=\"columnMenuOptions\"\n [columnMenuTemplate]=\"columnMenuTemplate\"\n [totalColumnsCount]=\"leafColumns.length\"\n [detailTemplate]=\"detailTemplate\"\n [tabIndex]=\"navigable ? '-1' : '0'\">\n </thead>\n </table>\n </div><div #header class=\"k-grid-header-wrap\" role=\"presentation\" data-scrollable\n [kendoGridResizableContainer]=\"lockedLeafColumns.length\"\n [lockedWidth]=\"lockedWidth + scrollbarWidth + 2\">\n <table role=\"presentation\" [style.width.px]=\"nonLockedWidth\" [virtualColumns]=\"virtualColumns\">\n <colgroup kendoGridColGroup\n role=\"presentation\"\n [columns]=\"headerLeafColumns\"\n [groups]=\"isLocked ? [] : group\"\n [detailTemplate]=\"detailTemplate\">\n </colgroup>\n <thead kendoGridHeader\n [resizable]=\"resizable\"\n role=\"presentation\"\n [scrollable]=\"true\"\n [columns]=\"headerColumns\"\n [totalColumnLevels]=\"totalColumnLevels\"\n [sort]=\"sort\"\n [filter]=\"filter\"\n [filterable]=\"filterable\"\n [groupable]=\"showGroupPanel\"\n [reorderable]=\"reorderable\"\n [groups]=\"isLocked ? [] : group\"\n [sortable]=\"sortable\"\n [columnMenu]=\"columnMenuOptions\"\n [columnMenuTemplate]=\"columnMenuTemplate\"\n [lockedColumnsCount]=\"lockedLeafColumns.length\"\n [totalColumnsCount]=\"leafColumns.length\"\n [detailTemplate]=\"detailTemplate\"\n [tabIndex]=\"navigable ? '-1' : '0'\">\n </thead>\n </table>\n <div *ngIf=\"virtualColumns\" class=\"k-width-container\" role=\"presentation\">\n <div [style.width.px]=\"columnsContainer.unlockedWidth\"></div>\n </div>\n </div>\n </div>\n <kendo-grid-list\n [data]=\"view\"\n [rowHeight]=\"rowHeight\"\n [detailRowHeight]=\"detailRowHeight\"\n [total]=\"totalCount\"\n [take]=\"pageSize\"\n [groups]=\"group\"\n [groupable]=\"groupable\"\n [skip]=\"skip\"\n [trackBy]=\"trackBy\"\n [columns]=\"columnsContainer\"\n [selectable]=\"selectable\"\n [filterable]=\"filterable\"\n [detailTemplate]=\"detailTemplate\"\n [noRecordsTemplate]=\"noRecordsTemplate\"\n (pageChange)=\"notifyPageChange('list', $event)\"\n [rowClass]=\"rowClass\"\n [rowSticky]=\"rowSticky\"\n [loading]=\"loading\"\n [isVirtual]=\"isVirtual\"\n [loadingTemplate]=\"loadingTemplate?.templateRef\"\n [virtualColumns]=\"virtualColumns\"\n (scrollBottom)=\"notifyScrollBottom()\"\n (contentScroll)=\"contentScroll.emit($event)\"\n kendoDraggable\n kendoGridSelectionMarquee\n [enableDrag]=\"marqueeSelection\"\n >\n </kendo-grid-list>\n <div\n *ngIf=\"showFooter\"\n class=\"k-grid-footer\"\n [style.padding]=\"headerPadding\">\n <div\n *ngIf=\"lockedLeafColumns.length\"\n class=\"k-grid-footer-locked\"\n [style.width.px]=\"lockedWidth\">\n <table role=\"presentation\" [locked]=\"true\" [style.width.px]=\"lockedWidth\">\n <colgroup kendoGridColGroup\n [columns]=\"lockedLeafColumns\"\n [groups]=\"group\"\n [detailTemplate]=\"detailTemplate\">\n </colgroup>\n <tfoot kendoGridFooter\n [scrollable]=\"true\"\n [groups]=\"group\"\n [columns]=\"lockedLeafColumns\"\n [detailTemplate]=\"detailTemplate\"\n [logicalRowIndex]=\"ariaRowCount\">\n </tfoot>\n </table>\n </div><div #footer\n class=\"k-grid-footer-wrap\" data-scrollable\n [kendoGridResizableContainer]=\"lockedLeafColumns.length\"\n [lockedWidth]=\"lockedWidth + scrollbarWidth + 3\">\n <table role=\"presentation\" [style.width.px]=\"nonLockedWidth\">\n <colgroup kendoGridColGroup\n [columns]=\"nonLockedLeafColumns\"\n [groups]=\"isLocked ? [] : group\"\n [detailTemplate]=\"detailTemplate\">\n </colgroup>\n <tfoot kendoGridFooter\n [logicalRowIndex]=\"ariaRowCount\"\n [scrollable]=\"true\"\n [groups]=\"isLocked ? [] : group\"\n [columns]=\"nonLockedLeafColumns\"\n [lockedColumnsCount]=\"lockedLeafColumns.length\"\n [detailTemplate]=\"detailTemplate\">\n </tfoot>\n </table>\n </div>\n </div>\n </ng-template>\n <ng-template [ngIf]=\"!isScrollable\">\n <table [style.table-layout]=\"resizable ? 'fixed' : null\">\n <colgroup kendoGridColGroup\n [columns]=\"leafColumns\"\n [groups]=\"group\"\n [detailTemplate]=\"detailTemplate\">\n </colgroup>\n <thead kendoGridHeader\n *ngIf=\"!hideHeader\"\n [resizable]=\"resizable\"\n [scrollable]=\"false\"\n [columns]=\"visibleColumns\"\n [totalColumnLevels]=\"totalColumnLevels\"\n [groups]=\"group\"\n [groupable]=\"showGroupPanel\"\n [reorderable]=\"reorderable\"\n [sort]=\"sort\"\n [sortable]=\"sortable\"\n [filter]=\"filter\"\n [filterable]=\"filterable\"\n [columnMenu]=\"columnMenuOptions\"\n [columnMenuTemplate]=\"columnMenuTemplate\"\n [detailTemplate]=\"detailTemplate\"\n [tabIndex]=\"navigable ? '-1' : '0'\">\n </thead>\n <tbody kendoGridTableBody\n [isLoading]=\"loading\"\n [groups]=\"group\"\n [data]=\"view\"\n [skip]=\"skip\"\n [columns]=\"leafColumns\"\n [selectable]=\"selectable\"\n [filterable]=\"filterable\"\n [noRecordsTemplate]=\"noRecordsTemplate\"\n [detailTemplate]=\"detailTemplate\"\n [showGroupFooters]=\"showGroupFooters\"\n [trackBy]=\"trackBy\"\n [rowClass]=\"rowClass\"\n kendoDraggable\n kendoGridSelectionMarquee\n [enableDrag]=\"marqueeSelection\">\n </tbody>\n <tfoot kendoGridFooter\n *ngIf=\"showFooter\"\n [scrollable]=\"false\"\n [logicalRowIndex]=\"ariaRowCount\"\n [groups]=\"group\"\n [columns]=\"leafColumns\"\n [detailTemplate]=\"detailTemplate\">\n </tfoot>\n </table>\n <div *ngIf=\"loading\" kendoGridLoading>\n </div>\n </ng-template>\n </div>\n <kendo-pager\n *ngIf=\"showBottomPager\"\n [tabindex]=\"navigable ? '0' : '-1'\"\n [attr.role]=\"navigable ? 'navigation' : undefined\"\n [template]=\"pagerTemplate\"\n [pageSize]=\"pageSize\"\n [total]=\"view.total\"\n [skip]=\"skip\"\n [options]=\"pageable\"\n (pageChange)=\"notifyPageChange('pager', $event)\">\n </kendo-pager>\n <kendo-grid-toolbar class=\"k-toolbar k-grid-toolbar k-grid-toolbar-bottom\" *ngIf=\"showBottomToolbar\" position=\"bottom\"></kendo-grid-toolbar>\n "
|
|
2692
|
-
}),
|
|
2693
|
-
tslib_1.__metadata("design:paramtypes", [browser_support_service_1.BrowserSupportService,
|
|
2694
|
-
selection_service_1.SelectionService,
|
|
2695
|
-
cell_selection_service_1.CellSelectionService,
|
|
2696
|
-
core_1.ElementRef,
|
|
2697
|
-
group_info_service_1.GroupInfoService,
|
|
2698
|
-
groups_service_1.GroupsService,
|
|
2699
|
-
change_notification_service_1.ChangeNotificationService,
|
|
2700
|
-
details_service_1.DetailsService,
|
|
2701
|
-
edit_service_1.EditService,
|
|
2702
|
-
filter_service_1.FilterService,
|
|
2703
|
-
pdf_service_1.PDFService,
|
|
2704
|
-
responsive_service_1.ResponsiveService,
|
|
2705
|
-
core_1.Renderer2,
|
|
2706
|
-
excel_service_1.ExcelService,
|
|
2707
|
-
core_1.NgZone,
|
|
2708
|
-
scroll_sync_service_1.ScrollSyncService,
|
|
2709
|
-
dom_events_service_1.DomEventsService,
|
|
2710
|
-
column_resizing_service_1.ColumnResizingService,
|
|
2711
|
-
core_1.ChangeDetectorRef,
|
|
2712
|
-
column_reorder_service_1.ColumnReorderService,
|
|
2713
|
-
column_info_service_1.ColumnInfoService,
|
|
2714
|
-
navigation_service_1.NavigationService,
|
|
2715
|
-
sort_service_1.SortService,
|
|
2716
|
-
scroll_request_service_1.ScrollRequestService,
|
|
2717
|
-
kendo_angular_l10n_1.LocalizationService])
|
|
2718
|
-
], GridComponent);
|
|
2719
|
-
return GridComponent;
|
|
2720
|
-
}());
|
|
2721
|
-
exports.GridComponent = GridComponent;
|