@progress/kendo-angular-grid 19.1.2-develop.4 → 19.1.2-develop.5
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/adaptiveness/adaptive-mode.d.ts +1 -5
- package/aggregates/aggregate-types.d.ts +6 -6
- package/aggregates/status-bar-template.directive.d.ts +6 -4
- package/column-menu/column-locked-change-event.d.ts +1 -1
- package/column-menu/column-menu-autosize-all.component.d.ts +11 -2
- package/column-menu/column-menu-autosize.component.d.ts +14 -6
- package/column-menu/column-menu-chooser.component.d.ts +13 -5
- package/column-menu/column-menu-expandable-item.interface.d.ts +3 -3
- package/column-menu/column-menu-filter.component.d.ts +18 -5
- package/column-menu/column-menu-item-base.d.ts +2 -2
- package/column-menu/column-menu-item-content-template.directive.d.ts +4 -4
- package/column-menu/column-menu-item.component.d.ts +14 -7
- package/column-menu/column-menu-item.directive.d.ts +29 -1
- package/column-menu/column-menu-lock.component.d.ts +11 -3
- package/column-menu/column-menu-position.component.d.ts +16 -8
- package/column-menu/column-menu-settings.interface.d.ts +5 -4
- package/column-menu/column-menu-sort.component.d.ts +11 -9
- package/column-menu/column-menu-stick.component.d.ts +13 -5
- package/column-menu/column-menu-template.directive.d.ts +5 -7
- package/column-menu/column-menu.component.d.ts +17 -7
- package/column-menu/column-menu.service.d.ts +8 -9
- package/column-resizing/column-resize.interface.d.ts +9 -8
- package/columns/cell-rowspan.d.ts +5 -1
- package/columns/checkbox-column.component.d.ts +7 -5
- package/columns/column-base.d.ts +38 -52
- package/columns/column-group.component.d.ts +3 -2
- package/columns/column.component.d.ts +17 -12
- package/columns/command-column.component.d.ts +6 -7
- package/columns/reorder-column.component.d.ts +10 -2
- package/columns/sort-settings.d.ts +15 -18
- package/columns/span-column.component.d.ts +11 -11
- package/common/adaptiveness.service.d.ts +2 -2
- package/common/cell-click-event-args.interface.d.ts +8 -6
- package/common/clipboard-types.d.ts +27 -31
- package/common/clipboard.directive.d.ts +12 -8
- package/common/create-form-group.d.ts +3 -1
- package/common/fetch-data-callback.d.ts +4 -2
- package/common/field-datatype.d.ts +2 -2
- package/common/pager-settings.d.ts +36 -20
- package/common/preventable-event.d.ts +3 -7
- package/common/remove-confirmation.d.ts +12 -0
- package/common/resizable-settings.d.ts +6 -5
- package/common/single-popup.service.d.ts +7 -4
- package/common/size-options.d.ts +2 -1
- package/data/change-event-args.interface.d.ts +7 -7
- package/data/data-item.interface.d.ts +6 -6
- package/data/data.collection.d.ts +1 -1
- package/data/grid-item.interface.d.ts +1 -1
- package/data/group-footer-item.interface.d.ts +6 -6
- package/data/group-item.interface.d.ts +5 -5
- package/databinding.directive.d.ts +20 -10
- package/directives.d.ts +10 -1
- package/dragdrop/column-reorder-config.d.ts +2 -2
- package/dragdrop/column-reorder-event.d.ts +4 -6
- package/editing/add-command-tool.directive.d.ts +5 -7
- package/editing/add-command.directive.d.ts +3 -8
- package/editing/add-event-args.interface.d.ts +1 -1
- package/editing/cancel-command-tool.directive.d.ts +5 -5
- package/editing/cancel-command.directive.d.ts +6 -5
- package/editing/cancel-event-args.interface.d.ts +7 -1
- package/editing/cell-close-event.d.ts +9 -6
- package/editing/edit-command-tool.directive.d.ts +10 -9
- package/editing/edit-command.directive.d.ts +1 -1
- package/editing/edit-event-args.interface.d.ts +3 -3
- package/editing/edit-row-options.interface.d.ts +10 -4
- package/editing/edit-template.directive.d.ts +17 -9
- package/editing/form/models.d.ts +55 -48
- package/editing/remove-command-tool.directive.d.ts +10 -9
- package/editing/remove-command.directive.d.ts +4 -5
- package/editing/remove-event-args.interface.d.ts +2 -1
- package/editing/save-command-tool.directive.d.ts +7 -6
- package/editing/save-command.directive.d.ts +5 -5
- package/editing/save-event-args.interface.d.ts +2 -1
- package/editing-directives/create-form-group-args.interface.d.ts +1 -1
- package/editing-directives/edit-service.interface.d.ts +13 -6
- package/editing-directives/external-editing.directive.d.ts +11 -4
- package/editing-directives/in-cell-editing.directive.d.ts +9 -3
- package/editing-directives/reactive-editing.directive.d.ts +9 -3
- package/editing-directives/template-editing.directive.d.ts +9 -3
- package/esm2022/aggregates/status-bar-template.directive.mjs +6 -4
- package/esm2022/column-menu/column-locked-change-event.mjs +1 -1
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +11 -2
- package/esm2022/column-menu/column-menu-autosize.component.mjs +14 -6
- package/esm2022/column-menu/column-menu-chooser.component.mjs +13 -5
- package/esm2022/column-menu/column-menu-filter.component.mjs +18 -5
- package/esm2022/column-menu/column-menu-item-base.mjs +2 -2
- package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +4 -4
- package/esm2022/column-menu/column-menu-item.component.mjs +14 -7
- package/esm2022/column-menu/column-menu-item.directive.mjs +29 -1
- package/esm2022/column-menu/column-menu-lock.component.mjs +11 -3
- package/esm2022/column-menu/column-menu-position.component.mjs +16 -8
- package/esm2022/column-menu/column-menu-sort.component.mjs +11 -9
- package/esm2022/column-menu/column-menu-stick.component.mjs +13 -5
- package/esm2022/column-menu/column-menu-template.directive.mjs +5 -7
- package/esm2022/column-menu/column-menu.component.mjs +17 -7
- package/esm2022/column-menu/column-menu.service.mjs +8 -9
- package/esm2022/columns/checkbox-column.component.mjs +7 -5
- package/esm2022/columns/column-base.mjs +38 -52
- package/esm2022/columns/column-group.component.mjs +3 -2
- package/esm2022/columns/column.component.mjs +17 -12
- package/esm2022/columns/command-column.component.mjs +6 -7
- package/esm2022/columns/reorder-column.component.mjs +10 -2
- package/esm2022/columns/span-column.component.mjs +11 -11
- package/esm2022/common/adaptiveness.service.mjs +2 -2
- package/esm2022/common/clipboard.directive.mjs +12 -8
- package/esm2022/common/preventable-event.mjs +3 -7
- package/esm2022/common/resizable-settings.mjs +2 -1
- package/esm2022/common/single-popup.service.mjs +7 -4
- package/esm2022/databinding.directive.mjs +20 -10
- package/esm2022/directives.mjs +10 -1
- package/esm2022/dragdrop/column-reorder-event.mjs +4 -6
- package/esm2022/editing/add-command-tool.directive.mjs +5 -7
- package/esm2022/editing/add-command.directive.mjs +3 -8
- package/esm2022/editing/cancel-command-tool.directive.mjs +5 -5
- package/esm2022/editing/cancel-command.directive.mjs +6 -5
- package/esm2022/editing/cell-close-event.mjs +7 -4
- package/esm2022/editing/edit-command-tool.directive.mjs +10 -9
- package/esm2022/editing/edit-command.directive.mjs +1 -1
- package/esm2022/editing/edit-template.directive.mjs +17 -9
- package/esm2022/editing/remove-command-tool.directive.mjs +10 -9
- package/esm2022/editing/remove-command.directive.mjs +4 -5
- package/esm2022/editing/save-command-tool.directive.mjs +7 -6
- package/esm2022/editing/save-command.directive.mjs +5 -5
- package/esm2022/editing-directives/external-editing.directive.mjs +11 -4
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +9 -3
- package/esm2022/editing-directives/reactive-editing.directive.mjs +9 -3
- package/esm2022/editing-directives/template-editing.directive.mjs +9 -3
- package/esm2022/excel/excel-command-tool.directive.mjs +10 -13
- package/esm2022/excel/excel-command.directive.mjs +7 -11
- package/esm2022/excel/excel-export-event.mjs +4 -1
- package/esm2022/excel/excel.component.mjs +24 -25
- package/esm2022/excel/excel.module.mjs +4 -7
- package/esm2022/filtering/boolean-filter.component.mjs +3 -3
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +1 -2
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +5 -2
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +10 -7
- package/esm2022/filtering/cell/filter-cell-template.directive.mjs +4 -2
- package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +10 -9
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +7 -5
- package/esm2022/filtering/date-filter.component.mjs +17 -19
- package/esm2022/filtering/filter.service.mjs +4 -4
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +3 -3
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +5 -3
- package/esm2022/filtering/menu/filter-menu-template.directive.mjs +9 -7
- package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +8 -8
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +10 -6
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +10 -5
- package/esm2022/filtering/numeric-filter.component.mjs +13 -13
- package/esm2022/filtering/operators/after-eq-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/after-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/before-eq-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/before-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/contains-filter-operator.component.mjs +27 -1
- package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/eq-filter-operator.component.mjs +74 -1
- package/esm2022/filtering/operators/gt-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/gte-filter-operator.component.mjs +26 -0
- package/esm2022/filtering/operators/is-empty-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +73 -1
- package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +73 -1
- package/esm2022/filtering/operators/lt-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/lte-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/neq-filter-operator.component.mjs +73 -1
- package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +26 -1
- package/esm2022/filtering/string-filter.component.mjs +5 -4
- package/esm2022/grid.component.mjs +159 -173
- package/esm2022/grid.module.mjs +3 -2
- package/esm2022/grouping/group-footer-template.directive.mjs +5 -6
- package/esm2022/grouping/group-header-column-template.directive.mjs +5 -5
- package/esm2022/grouping/group-header-template.directive.mjs +5 -6
- package/esm2022/grouping/group-scroll-binding.directive.mjs +2 -0
- package/esm2022/localization/custom-messages.component.mjs +12 -2
- package/esm2022/localization/messages.mjs +154 -165
- package/esm2022/navigation/focus-group.mjs +2 -2
- package/esm2022/navigation/focusable.directive.mjs +5 -3
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pdf/pdf-command-tool.directive.mjs +8 -11
- package/esm2022/pdf/pdf-command.directive.mjs +5 -9
- package/esm2022/pdf/pdf-export-event.mjs +1 -1
- package/esm2022/pdf/pdf-margin.component.mjs +16 -6
- package/esm2022/pdf/pdf-template.directive.mjs +5 -5
- package/esm2022/pdf/pdf.component.mjs +15 -5
- package/esm2022/pdf/pdf.module.mjs +3 -6
- package/esm2022/rendering/cell-loading.template.directive.mjs +4 -7
- package/esm2022/rendering/cell-template.directive.mjs +7 -8
- package/esm2022/rendering/common/spacer.component.mjs +14 -3
- package/esm2022/rendering/details/detail-collapse-event.mjs +8 -3
- package/esm2022/rendering/details/detail-expand-event.mjs +8 -3
- package/esm2022/rendering/details/detail-template.directive.mjs +3 -2
- package/esm2022/rendering/details-expand.directive.mjs +18 -8
- package/esm2022/rendering/footer/footer-template.directive.mjs +7 -7
- package/esm2022/rendering/groups-expand.directive.mjs +15 -5
- package/esm2022/rendering/header/header-template.directive.mjs +11 -11
- package/esm2022/rendering/loading-template.directive.mjs +14 -3
- package/esm2022/rendering/no-records-template.directive.mjs +3 -5
- package/esm2022/rendering/table-body.component.mjs +3 -1
- package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +10 -2
- package/esm2022/rendering/toolbar/toolbar-position.mjs +0 -17
- package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +3 -3
- package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +6 -5
- package/esm2022/rendering/toolbar/tools/filter-command-tool.directive.mjs +5 -5
- package/esm2022/rendering/toolbar/tools/group-command-tool.directive.mjs +5 -3
- package/esm2022/rendering/toolbar/tools/sort-command-tool.directive.mjs +4 -4
- package/esm2022/row-reordering/drag-handle-template.directive.mjs +5 -6
- package/esm2022/row-reordering/drag-hint-template.directive.mjs +3 -5
- package/esm2022/selection/selectall-checkbox.directive.mjs +2 -2
- package/esm2022/selection/selection-checkbox.directive.mjs +9 -8
- package/esm2022/selection/selection-default.mjs +9 -8
- package/esm2022/selection/selection.directive.mjs +10 -1
- package/esm2022/state-management/grid-state.models.mjs +3 -3
- package/esm2022/state-management/redo-command-tool.mjs +17 -9
- package/esm2022/state-management/undo-command-tool.mjs +17 -9
- package/esm2022/state-management/undo-redo.directive.mjs +17 -6
- package/excel/excel-command-tool.directive.d.ts +10 -13
- package/excel/excel-command.directive.d.ts +7 -11
- package/excel/excel-export-event.d.ts +4 -1
- package/excel/excel.component.d.ts +24 -25
- package/excel/excel.module.d.ts +4 -7
- package/fesm2022/progress-kendo-angular-grid.mjs +1939 -1025
- package/filtering/boolean-filter.component.d.ts +3 -3
- package/filtering/cell/boolean-filter-cell.component.d.ts +1 -2
- package/filtering/cell/date-filter-cell.component.d.ts +5 -2
- package/filtering/cell/filter-cell-operators.component.d.ts +10 -7
- package/filtering/cell/filter-cell-template.directive.d.ts +4 -2
- package/filtering/cell/numeric-filter-cell.component.d.ts +10 -9
- package/filtering/cell/string-filter-cell.component.d.ts +7 -5
- package/filtering/date-filter.component.d.ts +17 -19
- package/filtering/filter.service.d.ts +4 -4
- package/filtering/filterable.d.ts +5 -5
- package/filtering/menu/boolean-filter-menu.component.d.ts +3 -3
- package/filtering/menu/date-filter-menu.component.d.ts +5 -3
- package/filtering/menu/filter-menu-template.directive.d.ts +9 -7
- package/filtering/menu/numeric-filter-menu-input.component.d.ts +8 -8
- package/filtering/menu/numeric-filter-menu.component.d.ts +10 -6
- package/filtering/menu/string-filter-menu.component.d.ts +10 -5
- package/filtering/numeric-filter.component.d.ts +13 -13
- package/filtering/operators/after-eq-filter-operator.component.d.ts +26 -0
- package/filtering/operators/after-filter-operator.component.d.ts +26 -0
- package/filtering/operators/before-eq-filter-operator.component.d.ts +26 -0
- package/filtering/operators/before-filter-operator.component.d.ts +26 -0
- package/filtering/operators/contains-filter-operator.component.d.ts +27 -1
- package/filtering/operators/ends-with-filter-operator.component.d.ts +26 -1
- package/filtering/operators/eq-filter-operator.component.d.ts +74 -1
- package/filtering/operators/gt-filter-operator.component.d.ts +26 -0
- package/filtering/operators/gte-filter-operator.component.d.ts +26 -0
- package/filtering/operators/is-empty-filter-operator.component.d.ts +26 -1
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +26 -1
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +73 -1
- package/filtering/operators/isnull-filter-operator.component.d.ts +73 -1
- package/filtering/operators/lt-filter-operator.component.d.ts +26 -1
- package/filtering/operators/lte-filter-operator.component.d.ts +26 -1
- package/filtering/operators/neq-filter-operator.component.d.ts +73 -1
- package/filtering/operators/not-contains-filter-operator.component.d.ts +26 -1
- package/filtering/operators/starts-with-filter-operator.component.d.ts +26 -1
- package/filtering/string-filter.component.d.ts +5 -4
- package/grid.component.d.ts +159 -173
- package/grid.module.d.ts +3 -2
- package/grouping/group-footer-template.directive.d.ts +5 -6
- package/grouping/group-header-column-template.directive.d.ts +5 -5
- package/grouping/group-header-template.directive.d.ts +5 -6
- package/grouping/group-key.interface.d.ts +7 -7
- package/grouping/group-rows-args.interface.d.ts +5 -5
- package/grouping/group-scroll-binding.directive.d.ts +2 -0
- package/grouping/group-settings.d.ts +7 -7
- package/grouping/virtual-group-result.interface.d.ts +3 -3
- package/localization/custom-messages.component.d.ts +12 -2
- package/localization/messages.d.ts +154 -165
- package/navigation/focus-group.d.ts +2 -2
- package/navigation/focusable-element.interface.d.ts +8 -9
- package/navigation/focusable.directive.d.ts +5 -3
- package/navigation/navigable-settings.d.ts +10 -5
- package/navigation/navigation-cell.interface.d.ts +8 -8
- package/navigation/navigation-row.interface.d.ts +6 -7
- package/package.json +20 -20
- package/pdf/pdf-command-tool.directive.d.ts +8 -11
- package/pdf/pdf-command.directive.d.ts +5 -9
- package/pdf/pdf-export-event.d.ts +1 -1
- package/pdf/pdf-margin.component.d.ts +16 -6
- package/pdf/pdf-margin.interface.d.ts +2 -2
- package/pdf/pdf-template.directive.d.ts +5 -5
- package/pdf/pdf.component.d.ts +15 -5
- package/pdf/pdf.module.d.ts +3 -6
- package/rendering/cell-loading.template.directive.d.ts +4 -7
- package/rendering/cell-template.directive.d.ts +7 -8
- package/rendering/common/row-args.d.ts +2 -0
- package/rendering/common/row-class.d.ts +20 -21
- package/rendering/common/spacer.component.d.ts +14 -3
- package/rendering/details/detail-collapse-event.d.ts +8 -3
- package/rendering/details/detail-expand-event.d.ts +8 -3
- package/rendering/details/detail-template.directive.d.ts +8 -7
- package/rendering/details-expand.directive.d.ts +18 -8
- package/rendering/footer/footer-template.directive.d.ts +7 -7
- package/rendering/groups-expand.directive.d.ts +15 -5
- package/rendering/header/header-template.directive.d.ts +11 -11
- package/rendering/loading-template.directive.d.ts +14 -3
- package/rendering/no-records-template.directive.d.ts +3 -5
- package/rendering/toolbar/toolbar-focusable.directive.d.ts +10 -2
- package/rendering/toolbar/toolbar-position.d.ts +5 -5
- package/rendering/toolbar/toolbar-template.directive.d.ts +3 -3
- package/rendering/toolbar/tools/column-chooser-tool.directive.d.ts +6 -5
- package/rendering/toolbar/tools/filter-command-tool.directive.d.ts +5 -5
- package/rendering/toolbar/tools/group-command-tool.directive.d.ts +5 -3
- package/rendering/toolbar/tools/sort-command-tool.directive.d.ts +4 -4
- package/row-reordering/drag-handle-template.directive.d.ts +5 -6
- package/row-reordering/drag-hint-template.directive.d.ts +3 -5
- package/row-reordering/types.d.ts +10 -10
- package/schematics/ngAdd/index.js +4 -4
- package/scrolling/content-scroll-event.d.ts +11 -11
- package/scrolling/scroll-bottom-event.d.ts +2 -2
- package/scrolling/scroll-request.service.d.ts +6 -6
- package/scrolling/scrollmode.d.ts +3 -3
- package/selection/selectall-checkbox.directive.d.ts +2 -2
- package/selection/selection-checkbox.directive.d.ts +9 -8
- package/selection/selection-default.d.ts +9 -8
- package/selection/selection.directive.d.ts +10 -1
- package/selection/types.d.ts +41 -35
- package/state-management/grid-state.models.d.ts +16 -7
- package/state-management/redo-command-tool.d.ts +14 -6
- package/state-management/undo-command-tool.d.ts +14 -6
- package/state-management/undo-redo.directive.d.ts +17 -6
|
@@ -35,8 +35,8 @@ export class FocusGroup {
|
|
|
35
35
|
this.children = this.children.filter(f => f !== element);
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
* Returns
|
|
39
|
-
*
|
|
38
|
+
* Returns `true` if the group receives focus when the cell is focused.
|
|
39
|
+
* The group must have a single simple focusable element, like a button or checkbox.
|
|
40
40
|
*/
|
|
41
41
|
isNavigable() {
|
|
42
42
|
const focusable = this.focusableChildren;
|
|
@@ -9,21 +9,23 @@ import { ContextService } from '../common/provider.service';
|
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
import * as i1 from "../common/provider.service";
|
|
11
11
|
/**
|
|
12
|
-
* A directive that controls
|
|
13
|
-
*
|
|
12
|
+
* A directive that controls how focusable elements receive
|
|
13
|
+
* focus in a navigable Grid. [See example]({% slug keyboard_navigation_grid %}).
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```html
|
|
17
17
|
* <kendo-grid [data]="data" [navigable]="true">
|
|
18
18
|
* <kendo-grid-column>
|
|
19
19
|
* <ng-template kendoGridCellTemplate let-dataItem>
|
|
20
|
-
* <!-- The first focusable element
|
|
20
|
+
* <!-- The first focusable element is focused when you press Enter on the cell. -->
|
|
21
21
|
* <input type="text" kendoGridFocusable [value]="dataItem.ProductName" style="margin-right: 8px;" />
|
|
22
22
|
* <button kendoGridFocusable>Update</button>
|
|
23
23
|
* </ng-template>
|
|
24
24
|
* </kendo-grid-column>
|
|
25
25
|
* </kendo-grid>
|
|
26
26
|
* ```
|
|
27
|
+
* @remarks
|
|
28
|
+
* Applied to: {@link ButtonComponent}, {@link TextBoxComponent}, {@link DateInputComponent}, {@link DatePickerComponent}, {@link DateTimePicker}, {@link TextAreaComponent}, {@link ColorPickerComponent}, {@link DropDownListComponent}, {@link ComboBoxComponent}, {@link AutoCompleteComponent}.
|
|
27
29
|
*/
|
|
28
30
|
export class FocusableDirective {
|
|
29
31
|
cellContext;
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '19.1.2-develop.
|
|
13
|
+
publishDate: 1750431017,
|
|
14
|
+
version: '19.1.2-develop.5',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -13,24 +13,21 @@ import * as i1 from "./pdf.service";
|
|
|
13
13
|
import * as i2 from "@progress/kendo-angular-toolbar";
|
|
14
14
|
import * as i3 from "../common/provider.service";
|
|
15
15
|
/**
|
|
16
|
-
* Represents the
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* When the user clicks the toolbar button that is associated with the directive, the
|
|
21
|
-
* [pdfExport]({% slug api_grid_gridcomponent %}#toc-pdfexport) event
|
|
22
|
-
* fires ([see example]({% slug pdfexport_grid %})).
|
|
16
|
+
* Represents the PDF export toolbar tool of the Grid.
|
|
17
|
+
* Apply this directive to any `kendo-toolbar-button` element inside a ToolbarComponent in the Grid.
|
|
18
|
+
* When you click the toolbar button with this directive, the [`pdfExport`]({% slug api_grid_gridcomponent %}#toc-pdfexport) event fires. ([See example]({% slug pdfexport_grid %})).
|
|
23
19
|
*
|
|
24
20
|
* @example
|
|
25
|
-
* ```html
|
|
21
|
+
* ```html
|
|
26
22
|
* <kendo-grid>
|
|
27
23
|
* <kendo-toolbar>
|
|
28
|
-
* <kendo-toolbar-button text="PDF
|
|
24
|
+
* <kendo-toolbar-button text="Export to PDF" kendoGridPDFTool></kendo-toolbar-button>
|
|
29
25
|
* </kendo-toolbar>
|
|
30
|
-
* <kendo-grid-pdf fileName="
|
|
31
|
-
* </kendo-grid-pdf>
|
|
26
|
+
* <kendo-grid-pdf fileName="products.pdf"></kendo-grid-pdf>
|
|
32
27
|
* </kendo-grid>
|
|
33
28
|
* ```
|
|
29
|
+
* @remarks
|
|
30
|
+
* Applied to: {@link ToolBarButtonComponent}.
|
|
34
31
|
*/
|
|
35
32
|
export class PDFCommandToolbarDirective extends ToolbarToolBase {
|
|
36
33
|
pdfService;
|
|
@@ -12,21 +12,17 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
import * as i1 from "./pdf.service";
|
|
13
13
|
import * as i2 from "../common/provider.service";
|
|
14
14
|
/**
|
|
15
|
-
* Represents the
|
|
16
|
-
*
|
|
17
|
-
* [
|
|
18
|
-
* When the user clicks a button that is associated with the directive, the
|
|
19
|
-
* [pdfExport]({% slug api_grid_gridcomponent %}#toc-pdfexport) event
|
|
20
|
-
* fires ([see example]({% slug pdfexport_grid %})).
|
|
15
|
+
* Represents the PDF export command of the Grid.
|
|
16
|
+
* Apply this directive to any `button` element inside a [ToolbarTemplate]({% slug api_grid_commandcolumncomponent %}).
|
|
17
|
+
* When you click a button with this directive, the [`pdfExport`]({% slug api_grid_gridcomponent %}#toc-pdfexport) event fires. ([See example]({% slug pdfexport_grid %})).
|
|
21
18
|
*
|
|
22
19
|
* @example
|
|
23
|
-
* ```html
|
|
20
|
+
* ```html
|
|
24
21
|
* <kendo-grid>
|
|
25
22
|
* <ng-template kendoGridToolbarTemplate>
|
|
26
23
|
* <button kendoGridPDFCommand>Export to PDF</button>
|
|
27
24
|
* </ng-template>
|
|
28
|
-
* <kendo-grid-pdf fileName="
|
|
29
|
-
* </kendo-grid-pdf>
|
|
25
|
+
* <kendo-grid-pdf fileName="products.pdf"></kendo-grid-pdf>
|
|
30
26
|
* </kendo-grid>
|
|
31
27
|
* ```
|
|
32
28
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PreventableEvent } from '../common/preventable-event';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Provides the arguments for the `pdfExport` event.
|
|
8
8
|
*/
|
|
9
9
|
export class PDFExportEvent extends PreventableEvent {
|
|
10
10
|
/**
|
|
@@ -7,12 +7,22 @@ import { PDFExportMarginComponent } from '@progress/kendo-angular-pdf-export';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* Represents the Kendo UI PDFMargin component for Angular.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* `"
|
|
13
|
-
* `"
|
|
14
|
-
* `"
|
|
15
|
-
*
|
|
10
|
+
* Use this component to set the PDF page margins.
|
|
11
|
+
* Supported units are:
|
|
12
|
+
* - `"mm"`
|
|
13
|
+
* - `"cm"`
|
|
14
|
+
* - `"in"`
|
|
15
|
+
* - `"pt"` (default)
|
|
16
|
+
* When you provide only a number, the units default to points (`pt`).
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```html
|
|
20
|
+
* <kendo-grid>
|
|
21
|
+
* <kendo-grid-pdf [allPages]="true" [delay]="100">
|
|
22
|
+
* <kendo-grid-pdf-margin top="1cm" bottom="1cm" left="1cm" right="1cm"></kendo-grid-pdf-margin>
|
|
23
|
+
* </kendo-grid-pdf>
|
|
24
|
+
* </kendo-grid>
|
|
25
|
+
* ```
|
|
16
26
|
*/
|
|
17
27
|
export class PDFMarginComponent extends PDFExportMarginComponent {
|
|
18
28
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFMarginComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -6,12 +6,12 @@ import { Directive, Optional, TemplateRef } from '@angular/core';
|
|
|
6
6
|
import { PDFExportTemplateDirective } from '@progress/kendo-angular-pdf-export';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* The directive allows customizing the PDF page template for the Grid.
|
|
10
|
+
* Place an `<ng-template>` with the `kendoGridPDFTemplate` directive inside the `<kendo-grid-pdf>` tag.
|
|
11
11
|
*
|
|
12
|
-
* The template context provides
|
|
13
|
-
* - `pageNumber`—
|
|
14
|
-
* - `totalPages`—
|
|
12
|
+
* The template context provides:
|
|
13
|
+
* - `pageNumber`—The current PDF page number.
|
|
14
|
+
* - `totalPages`—The total number of PDF pages.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```html
|
|
@@ -30,7 +30,18 @@ const createDiv = (className) => {
|
|
|
30
30
|
return createElement('div', className);
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
|
-
* Configures the settings for the
|
|
33
|
+
* Configures the settings for exporting the Grid to PDF. ([See example]({% slug pdfexport_grid %})).
|
|
34
|
+
*
|
|
35
|
+
* Use this component to customize PDF export options for the Grid.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```html
|
|
39
|
+
* <kendo-grid>
|
|
40
|
+
* <kendo-grid-pdf [allPages]="true" [delay]="100"></kendo-grid-pdf>
|
|
41
|
+
* </kendo-grid>
|
|
42
|
+
* ```
|
|
43
|
+
* @remarks
|
|
44
|
+
* Supported children components are: {@link PDFMarginComponent}.
|
|
34
45
|
*/
|
|
35
46
|
export class PDFComponent extends PDFExportComponent {
|
|
36
47
|
pdfService;
|
|
@@ -38,13 +49,12 @@ export class PDFComponent extends PDFExportComponent {
|
|
|
38
49
|
ngZone;
|
|
39
50
|
ctx;
|
|
40
51
|
/**
|
|
41
|
-
* Exports all Grid pages, starting from the first
|
|
52
|
+
* Exports all Grid pages, starting from the first page.
|
|
42
53
|
*/
|
|
43
54
|
allPages;
|
|
44
55
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* templates such as charts or data-bound components with asynchronous data retrieval ([see example]({% slug pdfexport_grid %}#toc-exporting-all-pages)).
|
|
56
|
+
* Sets the delay in milliseconds before exporting the Grid content.
|
|
57
|
+
* Use this property when exporting complex components in Grid templates, such as charts or data-bound components with asynchronous data retrieval. ([See example]({% slug pdfexport_grid %}#toc-exporting-all-pages)).
|
|
48
58
|
*
|
|
49
59
|
* @default 0
|
|
50
60
|
*/
|
|
@@ -14,12 +14,11 @@ import * as i5 from "./pdf-template.directive";
|
|
|
14
14
|
import * as i6 from "./pdf-command-tool.directive";
|
|
15
15
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
16
16
|
/**
|
|
17
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
18
|
-
*
|
|
17
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) definition for the Grid PDF component.
|
|
18
|
+
* Use this module to enable PDF export in the Grid for NgModule-based applications.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
|
-
*
|
|
22
|
-
* ```ts
|
|
21
|
+
* ```typescript
|
|
23
22
|
* import { NgModule } from '@angular/core';
|
|
24
23
|
* import { BrowserModule } from "@angular/platform-browser";
|
|
25
24
|
* import { GridModule, PDFModule } from '@progress/kendo-angular-grid';
|
|
@@ -30,9 +29,7 @@ import * as i6 from "./pdf-command-tool.directive";
|
|
|
30
29
|
* imports: [BrowserModule, GridModule, PDFModule],
|
|
31
30
|
* bootstrap: [AppComponent]
|
|
32
31
|
* })
|
|
33
|
-
*
|
|
34
32
|
* export class AppModule {}
|
|
35
|
-
*
|
|
36
33
|
* ```
|
|
37
34
|
*/
|
|
38
35
|
export class PDFModule {
|
|
@@ -5,14 +5,11 @@
|
|
|
5
5
|
import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* nest an `<ng-template>` tag with the `kendoGridCellLoadingTemplate` directive inside `<kendo-grid>` tag [see example]({% slug virtualscrolling_grid %}#toc-custom-loading-skeleton).
|
|
8
|
+
* The directive allows customizing the loading indicator for virtual scrolling cells in the Grid.
|
|
9
|
+
* Place an `<ng-template>` tag with the `kendoGridCellLoadingTemplate` directive inside `<kendo-grid>` to define the loading cell template. ([See example]({% slug virtualscrolling_grid %}#toc-custom-loading-skeleton)).
|
|
11
10
|
*
|
|
12
|
-
*
|
|
13
|
-
* The
|
|
14
|
-
*
|
|
15
|
-
* - `column`—The current column instance. Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax (for example `let-column`).
|
|
11
|
+
* The template context is set to the current column. You can use the following field:
|
|
12
|
+
* - `column`—The current column instance. This is the default context for any template variable that uses the `let-x` syntax (for example, `let-column`).
|
|
16
13
|
*
|
|
17
14
|
* @example
|
|
18
15
|
* ```html
|
|
@@ -5,15 +5,14 @@
|
|
|
5
5
|
import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* `kendoGridCellTemplate` directive inside a `<kendo-grid-column>` tag [see example](slug:templates_columns_grid#toc-cell-template).
|
|
8
|
+
* Lets you customize the content of Grid cells.
|
|
9
|
+
* Place an `<ng-template>` tag with the `kendoGridCellTemplate` directive inside a `<kendo-grid-column>` tag to define the cell template. ([See example](slug:templates_columns_grid#toc-cell-template)).
|
|
11
10
|
*
|
|
12
|
-
* The template context is set to the current data item
|
|
13
|
-
* - `columnIndex`—The current column index. Use
|
|
14
|
-
* - `rowIndex`—The current data row index. Use
|
|
15
|
-
* - `dataItem`—The current data item.
|
|
16
|
-
* - `column`—The current column instance. Use
|
|
11
|
+
* The template context is set to the current data item. You can use these fields:
|
|
12
|
+
* - `columnIndex`—The current column index. Use `let-columnIndex="columnIndex"` in your template.
|
|
13
|
+
* - `rowIndex`—The current data row index. Use `let-rowIndex="rowIndex"` in your template.
|
|
14
|
+
* - `dataItem`—The current data item. This is the default context for any template variable that uses the `let-x` syntax, such as `let-dataItem`.
|
|
15
|
+
* - `column`—The current column instance. Use `let-column="column"` in your template.
|
|
17
16
|
*
|
|
18
17
|
* @example
|
|
19
18
|
* ```html
|
|
@@ -11,6 +11,18 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* and provides a way for customizing the spacer width.
|
|
12
12
|
* It can also be used in any flex container within the Grid
|
|
13
13
|
* ([see example](slug:toolbartemplate_grid#toc-defining-the-spacing-between-toolbar-elements)).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```html
|
|
17
|
+
* <kendo-grid [data]="data">
|
|
18
|
+
* <ng-template kendoGridToolbarTemplate>
|
|
19
|
+
* <kendo-grid-spacer></kendo-grid-spacer>
|
|
20
|
+
* <button type="button" kendoGridExcelCommand [svgIcon]="fileExcelIcon"> Export to Excel </button>
|
|
21
|
+
* <kendo-grid-spacer></kendo-grid-spacer>
|
|
22
|
+
* </ng-template>
|
|
23
|
+
* <kendo-grid-column field="ProductName" title="Product Name"></kendo-grid-column>
|
|
24
|
+
* </kendo-grid>
|
|
25
|
+
* ```
|
|
14
26
|
*/
|
|
15
27
|
export class GridSpacerComponent {
|
|
16
28
|
hostClass = true;
|
|
@@ -22,9 +34,8 @@ export class GridSpacerComponent {
|
|
|
22
34
|
}
|
|
23
35
|
/**
|
|
24
36
|
* Specifies the width of the GridSpacer.
|
|
25
|
-
* Accepts
|
|
26
|
-
*
|
|
27
|
-
* If not set, the GridSpacer will take all the available space.
|
|
37
|
+
* Accepts string values for the [CSS `flex-basis`](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis) property.
|
|
38
|
+
* If not set, the GridSpacer takes all available space.
|
|
28
39
|
*/
|
|
29
40
|
width;
|
|
30
41
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -4,17 +4,22 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PreventableEvent } from '../../common/preventable-event';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Provides the arguments for the `detailCollapse` event.
|
|
8
|
+
*
|
|
9
|
+
* The event fires when a detail row collapses.
|
|
8
10
|
*/
|
|
9
11
|
export class DetailCollapseEvent extends PreventableEvent {
|
|
10
12
|
/**
|
|
11
|
-
* The collapsed row
|
|
13
|
+
* The `dataItem` for the collapsed row.
|
|
12
14
|
*/
|
|
13
15
|
dataItem;
|
|
14
16
|
/**
|
|
15
|
-
* The collapsed row
|
|
17
|
+
* The index of the collapsed row.
|
|
16
18
|
*/
|
|
17
19
|
index;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
18
23
|
constructor(args) {
|
|
19
24
|
super();
|
|
20
25
|
Object.assign(this, args);
|
|
@@ -4,17 +4,22 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PreventableEvent } from '../../common/preventable-event';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Provides the arguments for the `detailExpand` event.
|
|
8
|
+
*
|
|
9
|
+
* The event fires when a detail row expands.
|
|
8
10
|
*/
|
|
9
11
|
export class DetailExpandEvent extends PreventableEvent {
|
|
10
12
|
/**
|
|
11
|
-
*
|
|
13
|
+
* Represents the `dataItem` for the expanded row.
|
|
12
14
|
*/
|
|
13
15
|
dataItem;
|
|
14
16
|
/**
|
|
15
|
-
*
|
|
17
|
+
* Represents the index of the expanded row.
|
|
16
18
|
*/
|
|
17
19
|
index;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
18
23
|
constructor(args) {
|
|
19
24
|
super();
|
|
20
25
|
Object.assign(this, args);
|
|
@@ -7,7 +7,7 @@ import { GridConfigurationErrorMessages } from '../../common/error-messages';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* Represents the detail template of the Grid ([more information and examples]({% slug detailrowtemplate_grid %})).
|
|
10
|
-
*
|
|
10
|
+
* Nest an `<ng-template>` tag with the `kendoGridDetailTemplate` directive inside a `<kendo-grid>` tag to define the detail template.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```html
|
|
@@ -26,7 +26,8 @@ import * as i0 from "@angular/core";
|
|
|
26
26
|
export class DetailTemplateDirective {
|
|
27
27
|
templateRef;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Sets a function to decide if the detail row and the **Expand** or **Collapse** button display for a data item.
|
|
30
|
+
* The function receives the data item and its index.
|
|
30
31
|
*/
|
|
31
32
|
set showIf(fn) {
|
|
32
33
|
if (typeof fn !== 'function') {
|
|
@@ -11,16 +11,27 @@ import { isPresent, isString } from '../utils';
|
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
import * as i1 from "../grid.component";
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Controls the expanded state of master detail rows in the Grid.
|
|
15
|
+
* Use this directive to manage which detail rows are expanded or collapsed.
|
|
16
|
+
* ([see example](slug:master_detail_expanded_state_grid#toc-built-in-directive))
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* <kendo-grid [kendoGridExpandDetailsBy]="expandDetailsKey" [expandedDetailKeys]="expandedDetailKeys"></kendo-grid>
|
|
21
|
+
* ```
|
|
22
|
+
* @remarks
|
|
23
|
+
* Applied to: {@link GridComponent}.
|
|
15
24
|
*/
|
|
16
25
|
export class ExpandDetailsDirective {
|
|
17
26
|
grid;
|
|
18
27
|
/**
|
|
19
|
-
* Fires when the expandedDetailKeys
|
|
28
|
+
* Fires when the `expandedDetailKeys` collection changes.
|
|
20
29
|
*/
|
|
21
30
|
expandedDetailKeysChange = new EventEmitter();
|
|
22
31
|
/**
|
|
23
|
-
*
|
|
32
|
+
* Sets the item key stored in the `expandedDetailKeys` collection.
|
|
33
|
+
* Accepts a property name or a function that returns a unique key for each data item.
|
|
34
|
+
* ([See example]({% slug master_detail_expanded_state_grid %}#toc-built-in-directive)).
|
|
24
35
|
*/
|
|
25
36
|
get expandDetailsKey() {
|
|
26
37
|
return this._expandBy;
|
|
@@ -34,7 +45,6 @@ export class ExpandDetailsDirective {
|
|
|
34
45
|
}
|
|
35
46
|
}
|
|
36
47
|
/**
|
|
37
|
-
*
|
|
38
48
|
* @hidden
|
|
39
49
|
* A deprecated alias for setting the `expandDetailsKey` property.
|
|
40
50
|
*/
|
|
@@ -45,13 +55,13 @@ export class ExpandDetailsDirective {
|
|
|
45
55
|
this.expandDetailsKey = key;
|
|
46
56
|
}
|
|
47
57
|
/**
|
|
48
|
-
*
|
|
58
|
+
* Holds the collection of expanded detail row keys.
|
|
59
|
+
* Set this property to control which detail rows are expanded.
|
|
49
60
|
*/
|
|
50
61
|
expandedDetailKeys = [];
|
|
51
62
|
/**
|
|
52
|
-
* Specifies if
|
|
53
|
-
* When set to `true
|
|
54
|
-
*
|
|
63
|
+
* Specifies if detail rows are expanded by default.
|
|
64
|
+
* When set to `true`, items in the `expandedDetailKeys` collection are collapsed, and all others are expanded.
|
|
55
65
|
* @default false
|
|
56
66
|
*/
|
|
57
67
|
initiallyExpanded = false;
|
|
@@ -7,16 +7,16 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
/**
|
|
8
8
|
* Represents the column footer cell template of the Grid
|
|
9
9
|
* ([more information and example]({% slug templates_columns_grid %}#toc-footer-template)).
|
|
10
|
-
*
|
|
10
|
+
* Use this directive to customize the table footer cell for a column.
|
|
11
11
|
* To define a footer template, nest an `<ng-template>` tag with the
|
|
12
|
-
* [kendoGridFooterTemplate]({% slug api_grid_footertemplatedirective %}) directive inside the `<kendo-grid-column>` tag.
|
|
12
|
+
* [`kendoGridFooterTemplate`]({% slug api_grid_footertemplatedirective %}) directive inside the `<kendo-grid-column>` tag.
|
|
13
13
|
*
|
|
14
|
-
* The template context is set to the current column
|
|
15
|
-
* * `column`—
|
|
16
|
-
* * `columnIndex`—
|
|
14
|
+
* The template context is set to the current column. The following additional fields are available:
|
|
15
|
+
* * `column`—An instance of the [`ColumnComponent`]({% slug api_grid_columncomponent %}) option.
|
|
16
|
+
* * `columnIndex`—The current column index.
|
|
17
17
|
*
|
|
18
|
-
* For more information
|
|
19
|
-
*
|
|
18
|
+
* For more information about displaying aggregates in the footer of the Grid,
|
|
19
|
+
* see the article on [aggregates]({% slug groupable_grid_with_aggregates %}).
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```html
|
|
@@ -23,17 +23,26 @@ const DEFAULT_KEY_GETTER = (groupRowArgs) => ({
|
|
|
23
23
|
parentGroupKeys: mapParentGroup(groupRowArgs.parentGroup)
|
|
24
24
|
});
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Controls the expanded state of group rows in the Grid.
|
|
27
|
+
* Use this directive to manage which group rows are expanded or collapsed
|
|
27
28
|
* ([see example]({% slug groups_expanded_state_grid %}#toc-built-in-directive)).
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* <kendo-grid [kendoGridExpandGroupBy]="expandGroupBy" [expandedGroupKeys]="expandedGroupKeys"></kendo-grid>
|
|
33
|
+
* ```
|
|
34
|
+
* @remarks
|
|
35
|
+
* Applied to: {@link GridComponent}.
|
|
28
36
|
*/
|
|
29
37
|
export class ExpandGroupDirective {
|
|
30
38
|
grid;
|
|
31
39
|
/**
|
|
32
|
-
* Fires when the expandedGroupKeys
|
|
40
|
+
* Fires when the `expandedGroupKeys` collection changes.
|
|
33
41
|
*/
|
|
34
42
|
expandedGroupKeysChange = new EventEmitter();
|
|
35
43
|
/**
|
|
36
|
-
*
|
|
44
|
+
* Sets the item format stored in the `expandedGroupKeys` collection.
|
|
45
|
+
* Accepts a property name or a function that returns a unique key for each group
|
|
37
46
|
* ([see example]({% slug groups_expanded_state_grid %}#toc-custom-group-key-format)).
|
|
38
47
|
*/
|
|
39
48
|
get expandGroupBy() {
|
|
@@ -45,7 +54,8 @@ export class ExpandGroupDirective {
|
|
|
45
54
|
}
|
|
46
55
|
}
|
|
47
56
|
/**
|
|
48
|
-
*
|
|
57
|
+
* Holds the collection of expanded group keys.
|
|
58
|
+
* Set this property to control which group rows are expanded.
|
|
49
59
|
*/
|
|
50
60
|
get expandedGroupKeys() {
|
|
51
61
|
return this._expandedGroupKeys;
|
|
@@ -54,7 +64,7 @@ export class ExpandGroupDirective {
|
|
|
54
64
|
this._expandedGroupKeys = (expandedGroups || []).slice();
|
|
55
65
|
}
|
|
56
66
|
/**
|
|
57
|
-
* Specifies if
|
|
67
|
+
* Specifies if group items are expanded by default.
|
|
58
68
|
* @default false
|
|
59
69
|
*/
|
|
60
70
|
groupsInitiallyExpanded = false;
|
|
@@ -7,22 +7,22 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
/**
|
|
8
8
|
* Represents the column header cell template of the Grid
|
|
9
9
|
* ([more information and example]({% slug templates_columns_grid %}#toc-header-template)).
|
|
10
|
-
*
|
|
10
|
+
* Use this directive to customize the table header cell for a column.
|
|
11
11
|
* To define a header template, nest an `<ng-template>` tag with the
|
|
12
12
|
* `kendoGridHeaderTemplate` directive inside the `<kendo-grid-column>` tag.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
* * `column`—
|
|
16
|
-
* * `columnIndex`—
|
|
14
|
+
* The template context is set to the current column. The following additional fields are available:
|
|
15
|
+
* * `column`—An instance of the [`ColumnComponent`]({% slug api_grid_columncomponent %}) option.
|
|
16
|
+
* * `columnIndex`—The current column index.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
|
-
* ```
|
|
20
|
-
* <kendo-grid
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* <kendo-grid>
|
|
21
|
+
* <kendo-grid-column field="ProductName" title="Product Name">
|
|
22
|
+
* <ng-template kendoGridHeaderTemplate let-column let-columnIndex="columnIndex">
|
|
23
|
+
* Header for {{ column.field }} (index: {{ columnIndex }})
|
|
24
|
+
* </ng-template>
|
|
25
|
+
* </kendo-grid-column>
|
|
26
26
|
* </kendo-grid>
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
@@ -5,9 +5,20 @@
|
|
|
5
5
|
import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* Lets you override the default loading indicator of the Grid.
|
|
9
|
+
* Place an `<ng-template>` tag with the `kendoGridLoadingTemplate` directive inside `<kendo-grid>` to define a loading template. ([See example](slug:loadingtemplate_grid)).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <kendo-grid [data]="gridData" [loading]="true">
|
|
14
|
+
* <ng-template kendoGridLoadingTemplate>
|
|
15
|
+
* <div class="custom-loading-indicator">
|
|
16
|
+
* Loading data, please wait...
|
|
17
|
+
* </div>
|
|
18
|
+
* </ng-template>
|
|
19
|
+
* <kendo-grid-column field="ProductName"></kendo-grid-column>
|
|
20
|
+
* <kendo-grid-column field="UnitPrice"></kendo-grid-column>
|
|
21
|
+
* </kendo-grid>
|
|
11
22
|
*/
|
|
12
23
|
export class LoadingTemplateDirective {
|
|
13
24
|
templateRef;
|
|
@@ -5,16 +5,14 @@
|
|
|
5
5
|
import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* To define the no-records template, nest an `<ng-template>` tag with the `kendoGridNoRecordsTemplate`
|
|
11
|
-
* directive inside `<kendo-grid>` [see example](slug:norecordtemplate_grid).
|
|
8
|
+
* Lets you customize the item shown when the Grid has no data.
|
|
9
|
+
* Place an `<ng-template>` tag with the `kendoGridNoRecordsTemplate` directive inside `<kendo-grid>` to define the no-records template. ([See example](slug:norecordtemplate_grid)).
|
|
12
10
|
*
|
|
13
11
|
* @example
|
|
14
12
|
* ```html
|
|
15
13
|
* <kendo-grid [data]="data">
|
|
16
14
|
* <ng-template kendoGridNoRecordsTemplate>
|
|
17
|
-
* There are
|
|
15
|
+
* There are no products. <a href="#" (click)="refresh()">Click here to refresh.</a>
|
|
18
16
|
* </ng-template>
|
|
19
17
|
* <kendo-grid-column field="ProductID"></kendo-grid-column>
|
|
20
18
|
* <kendo-grid-column field="ProductName"></kendo-grid-column>
|
|
@@ -374,7 +374,9 @@ export class TableBodyComponent {
|
|
|
374
374
|
if (!selectionEnabled) {
|
|
375
375
|
return;
|
|
376
376
|
}
|
|
377
|
-
|
|
377
|
+
const isCellFocused = closest(target, matchesNodeName('td')).classList.contains('k-focus');
|
|
378
|
+
const isShiftOrCtrlPressed = eventArg.shiftKey || eventArg.ctrlKey || eventArg.metaKey;
|
|
379
|
+
if (isCellFocused && !isShiftOrCtrlPressed) {
|
|
378
380
|
eventArg.preventDefault();
|
|
379
381
|
}
|
|
380
382
|
}
|
|
@@ -8,8 +8,16 @@ import { ContextService } from '../../common/provider.service';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "../../common/provider.service";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* Adds keyboard navigation support to toolbar elements in the Grid.
|
|
12
|
+
*
|
|
13
|
+
* Apply this directive to toolbar elements that should be focusable and navigable with the keyboard.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```html
|
|
17
|
+
* <kendo-toolbar>
|
|
18
|
+
* <button kendoGridToolbarFocusable>Button</button>
|
|
19
|
+
* </kendo-toolbar>
|
|
20
|
+
* ```
|
|
13
21
|
*/
|
|
14
22
|
export class GridToolbarFocusableDirective {
|
|
15
23
|
host;
|