@progress/kendo-angular-grid 19.1.2-develop.4 → 19.1.2-develop.6
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 +165 -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 +1945 -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
|
@@ -27,6 +27,8 @@ const isColumnContainer = column => column.isColumnGroup || isSpanColumn(column)
|
|
|
27
27
|
let columnId = 0;
|
|
28
28
|
/**
|
|
29
29
|
* The base class for the column components of the Grid.
|
|
30
|
+
*
|
|
31
|
+
* Use this class as a foundation for custom column implementations.
|
|
30
32
|
*/
|
|
31
33
|
export class ColumnBase {
|
|
32
34
|
parent;
|
|
@@ -47,7 +49,7 @@ export class ColumnBase {
|
|
|
47
49
|
*/
|
|
48
50
|
matchesMedia = true;
|
|
49
51
|
/**
|
|
50
|
-
*
|
|
52
|
+
* Gets the column index after reordering. The `orderIndex` property is read-only. Setting this field does not change the column order.
|
|
51
53
|
*
|
|
52
54
|
* @default 0
|
|
53
55
|
*/
|
|
@@ -74,33 +76,33 @@ export class ColumnBase {
|
|
|
74
76
|
*/
|
|
75
77
|
isSpanColumn = false;
|
|
76
78
|
/**
|
|
77
|
-
*
|
|
79
|
+
* Specifies if the column is resizable.
|
|
78
80
|
* @default true
|
|
79
81
|
*/
|
|
80
82
|
resizable = true;
|
|
81
83
|
/**
|
|
82
|
-
*
|
|
84
|
+
* Specifies if the column is reorderable.
|
|
83
85
|
* @default true
|
|
84
86
|
*/
|
|
85
87
|
reorderable = true;
|
|
86
88
|
/**
|
|
87
|
-
*
|
|
89
|
+
* Sets the minimum width (in pixels) for resizing the column by using the UI ([see example]({% slug resizing_columns_grid %}#toc-limiting-the-resizing)).
|
|
88
90
|
* The `autoFitColumn` and `autoFitColumns` methods have higher priority.
|
|
89
91
|
* @default 10
|
|
90
92
|
*/
|
|
91
93
|
minResizableWidth = 10;
|
|
92
94
|
/**
|
|
93
|
-
*
|
|
95
|
+
* Sets the maximum width (in pixels) for resizing the column by using the UI ([see example]({% slug resizing_columns_grid %}#toc-limiting-the-resizing)).
|
|
94
96
|
* By default, the maximum width is not restricted.
|
|
95
97
|
* The `autoFitColumn` and `autoFitColumns` methods have higher priority.
|
|
96
98
|
*/
|
|
97
99
|
maxResizableWidth;
|
|
98
100
|
/**
|
|
99
|
-
*
|
|
101
|
+
* Sets the column title.
|
|
100
102
|
*/
|
|
101
103
|
title;
|
|
102
104
|
/**
|
|
103
|
-
*
|
|
105
|
+
* Sets the column width (in pixels).
|
|
104
106
|
*/
|
|
105
107
|
set width(value) {
|
|
106
108
|
if (typeof value === 'string') {
|
|
@@ -115,14 +117,13 @@ export class ColumnBase {
|
|
|
115
117
|
}
|
|
116
118
|
get width() { return this._width; }
|
|
117
119
|
/**
|
|
118
|
-
*
|
|
120
|
+
* Specifies if the column is automatically resized during initialization to fit its header and row content.
|
|
119
121
|
*/
|
|
120
122
|
autoSize;
|
|
121
123
|
/**
|
|
122
|
-
* Toggles the locked (frozen) state of the
|
|
124
|
+
* Toggles the locked (frozen) state of the column ([more information and example]({% slug locked_columns_grid %})).
|
|
123
125
|
*
|
|
124
126
|
* @default false
|
|
125
|
-
*
|
|
126
127
|
*/
|
|
127
128
|
set locked(value) {
|
|
128
129
|
this._locked = value;
|
|
@@ -132,7 +133,7 @@ export class ColumnBase {
|
|
|
132
133
|
}
|
|
133
134
|
_locked = false;
|
|
134
135
|
/**
|
|
135
|
-
*
|
|
136
|
+
* Specifies if the column is always visible when scrolling the Grid horizontally.
|
|
136
137
|
*
|
|
137
138
|
* @default false
|
|
138
139
|
*/
|
|
@@ -144,15 +145,15 @@ export class ColumnBase {
|
|
|
144
145
|
*/
|
|
145
146
|
hidden;
|
|
146
147
|
/**
|
|
147
|
-
* Sets the condition
|
|
148
|
-
* If you set the `hidden` property,
|
|
148
|
+
* Sets the condition for the column to remain visible ([see example]({% slug styling_responsive_grid %}#toc-columns)).
|
|
149
|
+
* If you set the `hidden` property, `media` is ignored.
|
|
149
150
|
*
|
|
150
|
-
* Accepts
|
|
151
|
-
* ([see example](slug:styling_responsive_grid))
|
|
151
|
+
* Accepts device identifiers from [Bootstrap 4](https://v4-alpha.getbootstrap.com/layout/grid/#grid-options)
|
|
152
|
+
* ([see example](slug:styling_responsive_grid)).
|
|
152
153
|
*/
|
|
153
154
|
media;
|
|
154
155
|
/**
|
|
155
|
-
* Specifies if the column can be locked or unlocked from the column menu or by reordering
|
|
156
|
+
* Specifies if the column can be locked or unlocked from the column menu or by reordering.
|
|
156
157
|
* @default true
|
|
157
158
|
*/
|
|
158
159
|
lockable = true;
|
|
@@ -162,80 +163,65 @@ export class ColumnBase {
|
|
|
162
163
|
*/
|
|
163
164
|
stickable = true;
|
|
164
165
|
/**
|
|
165
|
-
* Specifies if the column menu
|
|
166
|
+
* Specifies if the column menu is shown for the column.
|
|
166
167
|
* @default true
|
|
167
168
|
*/
|
|
168
169
|
columnMenu = true;
|
|
169
170
|
/**
|
|
170
|
-
* Specifies if the column
|
|
171
|
+
* Specifies if the column is included in the column-chooser list.
|
|
171
172
|
* @default true
|
|
172
173
|
*/
|
|
173
174
|
includeInChooser = true;
|
|
174
175
|
/**
|
|
175
|
-
*
|
|
176
|
+
* Sets the `role` attribute for the table cells (excluding footer and header) of the column.
|
|
176
177
|
* @default "gridcell"
|
|
177
178
|
*/
|
|
178
179
|
tableCellsRole = 'gridcell';
|
|
179
180
|
/**
|
|
180
|
-
* Sets
|
|
181
|
-
*
|
|
182
|
-
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-cells).
|
|
183
|
-
*
|
|
181
|
+
* Sets custom styles for the table cells (excluding footer and header) of the column.
|
|
182
|
+
* Uses the [`NgStyle`](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-cells).
|
|
184
183
|
*/
|
|
185
184
|
style;
|
|
186
185
|
/**
|
|
187
|
-
* Sets
|
|
188
|
-
* the `
|
|
189
|
-
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-header).
|
|
190
|
-
*
|
|
186
|
+
* Sets custom styles for the header cell of the column.
|
|
187
|
+
* Uses the [`NgStyle`](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-header).
|
|
191
188
|
*/
|
|
192
189
|
headerStyle;
|
|
193
190
|
/**
|
|
194
|
-
* Sets
|
|
195
|
-
* the `
|
|
196
|
-
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-filter-row-cells).
|
|
197
|
-
*
|
|
191
|
+
* Sets custom styles for the filter row cell.
|
|
192
|
+
* Uses the [`NgStyle`](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-filter-row-cells).
|
|
198
193
|
*/
|
|
199
194
|
filterStyle;
|
|
200
195
|
/**
|
|
201
|
-
* Sets
|
|
202
|
-
* the `
|
|
203
|
-
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-footer).
|
|
204
|
-
*
|
|
196
|
+
* Sets custom styles for the footer cell of the column.
|
|
197
|
+
* Uses the [`NgStyle`](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-footer).
|
|
205
198
|
*/
|
|
206
199
|
footerStyle;
|
|
207
200
|
/**
|
|
208
|
-
* Sets
|
|
209
|
-
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-cells).
|
|
201
|
+
* Sets custom CSS classes to the column cells.
|
|
202
|
+
* Uses the [`NgClass`](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-cells).
|
|
210
203
|
* To customize header and footer column cells, use the [headerClass]({% slug api_grid_columncomponent %}#toc-headerclass)
|
|
211
204
|
* and [footerClass]({% slug api_grid_columncomponent %}#toc-footerclass) inputs.
|
|
212
|
-
*
|
|
213
205
|
*/
|
|
214
206
|
cssClass;
|
|
215
207
|
/**
|
|
216
|
-
* Sets
|
|
217
|
-
* the `
|
|
218
|
-
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-header).
|
|
219
|
-
*
|
|
208
|
+
* Sets custom CSS classes to the column header cell.
|
|
209
|
+
* Uses the [`NgClass`](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-header).
|
|
220
210
|
*/
|
|
221
211
|
headerClass;
|
|
222
212
|
/**
|
|
223
|
-
* Sets
|
|
224
|
-
* the `
|
|
225
|
-
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-filter-row-cells).
|
|
226
|
-
*
|
|
213
|
+
* Sets custom CSS classes to the filter row cell.
|
|
214
|
+
* Uses the [`NgClass`](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-filter-row-cells).
|
|
227
215
|
*/
|
|
228
216
|
filterClass;
|
|
229
217
|
/**
|
|
230
|
-
* Sets
|
|
231
|
-
* the `
|
|
232
|
-
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-footer).
|
|
233
|
-
*
|
|
218
|
+
* Sets custom CSS classes to the column footer cell.
|
|
219
|
+
* Uses the [`NgClass`](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_grid_columns#toc-customizing-column-footer).
|
|
234
220
|
*/
|
|
235
221
|
footerClass;
|
|
236
222
|
/**
|
|
237
|
-
* Defines a function
|
|
238
|
-
* If set to `true`, a default function is used that spans adjacent cells
|
|
223
|
+
* Defines a function to determine the rowspan of each column cell.
|
|
224
|
+
* If you set this to `true`, a default function is used that spans adjacent cells with equal values.
|
|
239
225
|
* Cells have equal values when their data items' values for the respective field are equal.
|
|
240
226
|
*/
|
|
241
227
|
set cellRowspan(cellRowspan) {
|
|
@@ -17,8 +17,9 @@ export function isColumnGroupComponent(column) {
|
|
|
17
17
|
return column.isColumnGroup;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Represents the column group header of the Grid
|
|
21
|
-
*
|
|
20
|
+
* Represents the column group header of the Grid ([more information and examples](slug:multicolumnheaders_columns_grid)).
|
|
21
|
+
*
|
|
22
|
+
* Use this component to group columns under a common header.
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
24
25
|
* ```html
|
|
@@ -23,7 +23,9 @@ export function isColumnComponent(column) {
|
|
|
23
23
|
return isPresent(column.field);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* Represents
|
|
26
|
+
* Represents a column in the Grid.
|
|
27
|
+
*
|
|
28
|
+
* Use the `kendo-grid-column` component to define columns in the Grid.
|
|
27
29
|
*
|
|
28
30
|
* @example
|
|
29
31
|
* ```html
|
|
@@ -33,51 +35,54 @@ export function isColumnComponent(column) {
|
|
|
33
35
|
* <kendo-grid-column field="UnitPrice" title="Unit Price"></kendo-grid-column>
|
|
34
36
|
* </kendo-grid>
|
|
35
37
|
* ```
|
|
38
|
+
* @remarks
|
|
39
|
+
* Supported children components are: {@link StringFilterCellComponent}, {@link NumericFilterCellComponent}, {@link BooleanFilterCellComponent}, {@link DateFilterCellComponent}, {@link StringFilterMenuComponent}, {@link NumericFilterMenuComponent}, {@link BooleanFilterMenuComponent}, {@link DateFilterMenuComponent}, {@link FilterCellOperatorsComponent}, {@link ColumnMenuAutoSizeAllColumnsComponent}, {@link ColumnMenuAutoSizeColumnComponent}, {@link ColumnMenuChooserComponent}, {@link ColumnMenuComponent}, {@link ColumnMenuFilterComponent}, {@link ColumnMenuItemComponent}, {@link ColumnMenuLockComponent}, {@link ColumnMenuPositionComponent}, {@link ColumnMenuSortComponent}, {@link ColumnMenuStickComponent}.
|
|
36
40
|
*/
|
|
37
41
|
export class ColumnComponent extends ColumnBase {
|
|
38
42
|
/**
|
|
39
|
-
*
|
|
43
|
+
* Sets the field that the column binds to.
|
|
40
44
|
*/
|
|
41
45
|
field;
|
|
42
46
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
47
|
+
* Sets the format for displaying the column value.
|
|
48
|
+
* For supported date and number formats, see the [Column Formats](slug:formats_columns_grid) article.
|
|
45
49
|
*/
|
|
46
50
|
format;
|
|
47
51
|
/**
|
|
48
|
-
*
|
|
52
|
+
* Enables sorting when the user clicks the column header. [See example](slug:sorting_grid).
|
|
53
|
+
* Emits the `sortChange` event.
|
|
49
54
|
*
|
|
50
55
|
* @default true
|
|
51
56
|
*/
|
|
52
57
|
sortable = true;
|
|
53
58
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
59
|
+
* Allows dragging the column to the group panel.
|
|
60
|
+
* Set to `false` to group by this column only through the Grid API.
|
|
56
61
|
*
|
|
57
62
|
* @default true
|
|
58
63
|
*/
|
|
59
64
|
groupable = true;
|
|
60
65
|
/**
|
|
61
|
-
*
|
|
62
|
-
* Used when the column enters
|
|
66
|
+
* Sets the editor type for the column. [See example](slug:inline_editing_grid#toc-using-reactive-forms).
|
|
67
|
+
* Used when the column enters edit mode.
|
|
63
68
|
*
|
|
64
69
|
* @default 'text'
|
|
65
70
|
*/
|
|
66
71
|
editor = 'text';
|
|
67
72
|
/**
|
|
68
|
-
*
|
|
73
|
+
* Sets the filter type for the filter row UI. [See example](slug:filtering_grid#toc-filter-data-types).
|
|
69
74
|
*
|
|
70
75
|
* @default 'text'
|
|
71
76
|
*/
|
|
72
77
|
filter = 'text';
|
|
73
78
|
/**
|
|
74
|
-
*
|
|
79
|
+
* Shows or hides the filter UI for this column. [See example](slug:filtering_grid).
|
|
75
80
|
*
|
|
76
81
|
* @default true
|
|
77
82
|
*/
|
|
78
83
|
filterable = true;
|
|
79
84
|
/**
|
|
80
|
-
*
|
|
85
|
+
* Sets whether the column is editable. [See example](slug:make_fields_uneditable_grid).
|
|
81
86
|
*
|
|
82
87
|
* @default true
|
|
83
88
|
*/
|
|
@@ -10,17 +10,16 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
import * as i1 from "./column-base";
|
|
11
11
|
import * as i2 from "../common/id.service";
|
|
12
12
|
/**
|
|
13
|
-
* Represents the command columns of the Grid.
|
|
14
|
-
*
|
|
15
|
-
* For more information and examples, refer to the [Command Column Directives](slug:editing_directives_grid#toc-command-column-directives) article.
|
|
13
|
+
* Represents the command columns of the Grid. Define the content of the column inside an `<ng-template>` tag.
|
|
14
|
+
* For more information and examples, see the [Command Column Directives](slug:editing_directives_grid#toc-command-column-directives) article.
|
|
16
15
|
*
|
|
17
16
|
* @example
|
|
18
17
|
* ```html
|
|
19
|
-
* <kendo-grid [data]="
|
|
20
|
-
* <kendo-grid-column field="
|
|
18
|
+
* <kendo-grid [data]="data">
|
|
19
|
+
* <kendo-grid-column field="ID"></kendo-grid-column>
|
|
21
20
|
* <kendo-grid-command-column title="command" [width]="220">
|
|
22
21
|
* <ng-template kendoGridCellTemplate>
|
|
23
|
-
* <button kendoGridEditCommand
|
|
22
|
+
* <button kendoGridEditCommand>Edit</button>
|
|
24
23
|
* <button kendoGridRemoveCommand>Remove</button>
|
|
25
24
|
* </ng-template>
|
|
26
25
|
* </kendo-grid-command-column>
|
|
@@ -38,7 +37,7 @@ export class CommandColumnComponent extends ColumnBase {
|
|
|
38
37
|
return this.template ? this.template.templateRef : undefined;
|
|
39
38
|
}
|
|
40
39
|
/**
|
|
41
|
-
*
|
|
40
|
+
* Sets a function to determine the rowspan of each column cell.
|
|
42
41
|
*/
|
|
43
42
|
set cellRowspan(cellRowspan) {
|
|
44
43
|
super.cellRowspan = cellRowspan;
|
|
@@ -11,7 +11,15 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
import * as i1 from "./column-base";
|
|
12
12
|
import * as i2 from "../common/id.service";
|
|
13
13
|
/**
|
|
14
|
-
* Represents the drag handle for reordering rows in the Grid
|
|
14
|
+
* Represents the drag handle for reordering rows in the Grid. [See example](slug:reordering_rows_grid).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```html
|
|
18
|
+
* <kendo-grid>
|
|
19
|
+
* <kendo-grid-rowreorder-column></kendo-grid-rowreorder-column>
|
|
20
|
+
* <kendo-grid-column field="ProductID"></kendo-grid-column>
|
|
21
|
+
* </kendo-grid>
|
|
22
|
+
* ```
|
|
15
23
|
*/
|
|
16
24
|
export class RowReorderColumnComponent extends ColumnBase {
|
|
17
25
|
parent;
|
|
@@ -56,7 +64,7 @@ export class RowReorderColumnComponent extends ColumnBase {
|
|
|
56
64
|
this.parent = parent;
|
|
57
65
|
}
|
|
58
66
|
/**
|
|
59
|
-
*
|
|
67
|
+
* Sets a function to determine the rowspan of each column cell.
|
|
60
68
|
*/
|
|
61
69
|
set cellRowspan(cellRowspan) {
|
|
62
70
|
super.cellRowspan = cellRowspan;
|
|
@@ -20,20 +20,20 @@ export function isSpanColumnComponent(column) {
|
|
|
20
20
|
return column.isSpanColumn;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Represents a column
|
|
24
|
-
* header and footer cells
|
|
25
|
-
*
|
|
23
|
+
* Represents a column that spans multiple data cells while keeping the individual
|
|
24
|
+
* header and footer cells ([see example]({% slug spanned_columns_grid %})).
|
|
25
|
+
* Use this column to create flexible layouts and keep built-in UI for
|
|
26
26
|
* [sorting]({% slug sorting_grid %}), [filtering]({% slug filtering_grid %}), and
|
|
27
|
-
* [grouping]({% slug grouping_grid %}). Wrap the columns
|
|
28
|
-
* merged inside the `<kendo-grid-span-column>` tag.
|
|
27
|
+
* [grouping]({% slug grouping_grid %}). Wrap the columns you want to merge inside the `<kendo-grid-span-column>` tag.
|
|
29
28
|
*
|
|
29
|
+
* @example
|
|
30
30
|
* ```html
|
|
31
31
|
* <kendo-grid-span-column>
|
|
32
|
-
* <kendo-grid-column field="
|
|
33
|
-
* <kendo-grid-column field="
|
|
32
|
+
* <kendo-grid-column field="ID"></kendo-grid-column>
|
|
33
|
+
* <kendo-grid-column field="Name"></kendo-grid-column>
|
|
34
34
|
* <ng-template kendoGridCellTemplate let-dataItem>
|
|
35
|
-
* <
|
|
36
|
-
* <p>{{ dataItem.
|
|
35
|
+
* <p>{{ dataItem.ID }}</p>
|
|
36
|
+
* <p>{{ dataItem.Name }}</p>
|
|
37
37
|
* </ng-template>
|
|
38
38
|
* </kendo-grid-span-column>
|
|
39
39
|
* ```
|
|
@@ -74,8 +74,8 @@ export class SpanColumnComponent extends ColumnBase {
|
|
|
74
74
|
*/
|
|
75
75
|
includeInChooser = false;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
78
|
-
* To enable
|
|
77
|
+
* Sets whether the edit template of the column is rendered.
|
|
78
|
+
* To enable editing for a spanned column, set an edit template for it ([see example](slug:custom_reactive_editing_grid)).
|
|
79
79
|
* @default false
|
|
80
80
|
*/
|
|
81
81
|
set editable(value) {
|
|
@@ -18,7 +18,7 @@ export class AdaptiveGridService {
|
|
|
18
18
|
ctx;
|
|
19
19
|
adaptiveService;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Emits when the ActionSheet view animation ends.
|
|
22
22
|
*/
|
|
23
23
|
get animationEnd() {
|
|
24
24
|
return this.animationEndSubject.asObservable();
|
|
@@ -56,7 +56,7 @@ export class AdaptiveGridService {
|
|
|
56
56
|
this.secondaryView = null;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Notifies that the ActionSheet animation has ended.
|
|
60
60
|
*/
|
|
61
61
|
notifyAnimationEnd() {
|
|
62
62
|
this.animationEndSubject.next();
|
|
@@ -15,8 +15,14 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
import * as i1 from "../grid.component";
|
|
16
16
|
import * as i2 from "./clipboard.service";
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* Enables built-in clipboard support for the Grid. Allows copy, cut, and paste interactions.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```html
|
|
22
|
+
* <kendo-grid kendoGridClipboard></kendo-grid>
|
|
23
|
+
* ```
|
|
24
|
+
* @remarks
|
|
25
|
+
* Applied to: {@link GridComponent}.
|
|
20
26
|
*/
|
|
21
27
|
export class GridClipboardDirective {
|
|
22
28
|
host;
|
|
@@ -24,9 +30,7 @@ export class GridClipboardDirective {
|
|
|
24
30
|
renderer;
|
|
25
31
|
zone;
|
|
26
32
|
/**
|
|
27
|
-
*
|
|
28
|
-
* - `activeCell`
|
|
29
|
-
* - `selection`
|
|
33
|
+
* Sets the clipboard operation target. Possible values are `'activeCell'` and `'selection'`.([See example]({% slug clipboard_grid %}#toc-clipboard-target))
|
|
30
34
|
*
|
|
31
35
|
* @default 'selection'
|
|
32
36
|
*/
|
|
@@ -47,9 +51,9 @@ export class GridClipboardDirective {
|
|
|
47
51
|
return this._target;
|
|
48
52
|
}
|
|
49
53
|
/**
|
|
50
|
-
*
|
|
54
|
+
* Configures the clipboard directive settings.
|
|
51
55
|
*
|
|
52
|
-
* @default { wholeRow: false, copyHeaders: false copy: true, cut: true, paste: true }
|
|
56
|
+
* @default { wholeRow: false, copyHeaders: false, copy: true, cut: true, paste: true }
|
|
53
57
|
*/
|
|
54
58
|
set clipboardSettings(value) {
|
|
55
59
|
this._clipboardSettings = Object.assign({}, this._clipboardSettings, value);
|
|
@@ -58,7 +62,7 @@ export class GridClipboardDirective {
|
|
|
58
62
|
return this._clipboardSettings;
|
|
59
63
|
}
|
|
60
64
|
/**
|
|
61
|
-
* Fires when
|
|
65
|
+
* Fires when a clipboard action (`cut`, `copy`, or `paste`) occurs in the Grid.
|
|
62
66
|
*/
|
|
63
67
|
clipboard = new EventEmitter();
|
|
64
68
|
_target = 'selection';
|
|
@@ -9,18 +9,14 @@ export class PreventableEvent {
|
|
|
9
9
|
prevented = false;
|
|
10
10
|
/**
|
|
11
11
|
* Prevents the default action for a specified event.
|
|
12
|
-
* In this way, the source component suppresses
|
|
13
|
-
* the built-in behavior that follows the event.
|
|
12
|
+
* In this way, the source component suppresses the built-in behavior that follows the event.
|
|
14
13
|
*/
|
|
15
14
|
preventDefault() {
|
|
16
15
|
this.prevented = true;
|
|
17
16
|
}
|
|
18
17
|
/**
|
|
19
|
-
* Returns
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* @returns `true` if the default action was prevented.
|
|
23
|
-
* Otherwise, returns `false`.
|
|
18
|
+
* Returns whether the default action for a specified event was prevented.
|
|
19
|
+
* @returns `true` if the default action was prevented. Otherwise, returns `false`.
|
|
24
20
|
*/
|
|
25
21
|
isDefaultPrevented() {
|
|
26
22
|
return this.prevented;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Configures size restrictions for a resizable Grid.
|
|
7
|
+
* Use this interface to set min and max width and height for the Grid.
|
|
7
8
|
*/
|
|
8
9
|
export {};
|
|
@@ -34,6 +34,9 @@ export class PopupCloseEvent extends PreventableEvent {
|
|
|
34
34
|
* The original DOM event that causes the popup to close.
|
|
35
35
|
*/
|
|
36
36
|
originalEvent;
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
37
40
|
constructor(e) {
|
|
38
41
|
super();
|
|
39
42
|
this.originalEvent = e;
|
|
@@ -41,8 +44,8 @@ export class PopupCloseEvent extends PreventableEvent {
|
|
|
41
44
|
}
|
|
42
45
|
const DEFAULT_POPUP_CLASS = 'k-grid-filter-popup';
|
|
43
46
|
/**
|
|
44
|
-
*
|
|
45
|
-
* ([see example]({% slug filter_menu %}#toc-filter-menu-with-popup)).
|
|
47
|
+
* Provides popup management for filter and column menus.
|
|
48
|
+
* Use this service to open and close popups for the Grid filter and column menus ([see example]({% slug filter_menu %}#toc-filter-menu-with-popup)).
|
|
46
49
|
*/
|
|
47
50
|
export class SinglePopupService {
|
|
48
51
|
popupService;
|
|
@@ -51,8 +54,8 @@ export class SinglePopupService {
|
|
|
51
54
|
ctx;
|
|
52
55
|
adaptiveGridService;
|
|
53
56
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
57
|
+
* Emits when the filter or column menu popup is about to close because the user clicked outside.
|
|
58
|
+
* Use this event to prevent the popup from closing.
|
|
56
59
|
*/
|
|
57
60
|
onClose = new Subject();
|
|
58
61
|
removeClick;
|
|
@@ -13,14 +13,18 @@ import * as i1 from "./grid.component";
|
|
|
13
13
|
import * as i2 from "./editing/local-data-changes.service";
|
|
14
14
|
import * as i3 from "./row-reordering/row-reorder.service";
|
|
15
15
|
/**
|
|
16
|
-
* A directive
|
|
17
|
-
* [sorting]({% slug sorting_grid %}), and [grouping]({% slug grouping_grid %})
|
|
18
|
-
*
|
|
16
|
+
* A directive that handles in-memory data operations like [paging]({% slug paging_grid %}),
|
|
17
|
+
* [sorting]({% slug sorting_grid %}), and [grouping]({% slug grouping_grid %}).
|
|
18
|
+
*
|
|
19
|
+
* Use this directive with local data and enable the Grid data operations with minimal configuration.
|
|
20
|
+
* ([More information and examples]({% slug local_data_grid %}#toc-using-the-data-binding-directive)).
|
|
19
21
|
*
|
|
20
22
|
* @example
|
|
21
23
|
* ```html
|
|
22
|
-
* <kendo-grid [kendoGridBinding]="gridData"
|
|
24
|
+
* <kendo-grid [kendoGridBinding]="gridData"></kendo-grid>
|
|
23
25
|
* ```
|
|
26
|
+
* @remarks
|
|
27
|
+
* Applied to: {@link GridComponent}.
|
|
24
28
|
*/
|
|
25
29
|
export class DataBindingDirective {
|
|
26
30
|
grid;
|
|
@@ -28,7 +32,8 @@ export class DataBindingDirective {
|
|
|
28
32
|
localDataChangesService;
|
|
29
33
|
rowReorderService;
|
|
30
34
|
/**
|
|
31
|
-
*
|
|
35
|
+
* Sets the number of records to skip in the Grid.
|
|
36
|
+
*
|
|
32
37
|
* @default 0
|
|
33
38
|
*/
|
|
34
39
|
set skip(value) {
|
|
@@ -41,31 +46,36 @@ export class DataBindingDirective {
|
|
|
41
46
|
}
|
|
42
47
|
}
|
|
43
48
|
/**
|
|
44
|
-
*
|
|
49
|
+
* Sets the sort descriptors for the Grid data.
|
|
50
|
+
*
|
|
45
51
|
*/
|
|
46
52
|
set sort(value) {
|
|
47
53
|
this.grid.sort = this.state.sort = value;
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
|
-
*
|
|
56
|
+
* Sets the filter descriptor for the Grid data.
|
|
57
|
+
*
|
|
51
58
|
*/
|
|
52
59
|
set filter(value) {
|
|
53
60
|
this.grid.filter = this.state.filter = value;
|
|
54
61
|
}
|
|
55
62
|
/**
|
|
56
|
-
*
|
|
63
|
+
* Sets the page size for the Grid pager.
|
|
64
|
+
*
|
|
57
65
|
*/
|
|
58
66
|
set pageSize(value) {
|
|
59
67
|
this.grid.pageSize = this.state.take = value;
|
|
60
68
|
}
|
|
61
69
|
/**
|
|
62
|
-
*
|
|
70
|
+
* Sets the group descriptors for the Grid data.
|
|
71
|
+
*
|
|
63
72
|
*/
|
|
64
73
|
set group(value) {
|
|
65
74
|
this.grid.group = this.state.group = value;
|
|
66
75
|
}
|
|
67
76
|
/**
|
|
68
|
-
*
|
|
77
|
+
* Sets the data array for the Grid.
|
|
78
|
+
*
|
|
69
79
|
*/
|
|
70
80
|
set data(value) {
|
|
71
81
|
this.originalData = value || [];
|
package/esm2022/directives.mjs
CHANGED
|
@@ -484,7 +484,16 @@ export const KENDO_GRID_PDF_EXPORT = [
|
|
|
484
484
|
PDFCommandToolbarDirective
|
|
485
485
|
];
|
|
486
486
|
/**
|
|
487
|
-
*
|
|
487
|
+
* Contains all Grid-related components and directives.
|
|
488
|
+
*
|
|
489
|
+
* @example
|
|
490
|
+
* ```typescript
|
|
491
|
+
* import { KENDO_GRID } from '@progress/kendo-angular-grid';
|
|
492
|
+
* @NgModule({
|
|
493
|
+
* imports: [KENDO_GRID]
|
|
494
|
+
* })
|
|
495
|
+
* export class AppModule {}
|
|
496
|
+
* ```
|
|
488
497
|
*/
|
|
489
498
|
export const KENDO_GRID = [
|
|
490
499
|
...KENDO_GRID_EXPORTS,
|
|
@@ -4,21 +4,19 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PreventableEvent } from '../common/preventable-event';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Provides the arguments for the `columnReorder` event.
|
|
8
8
|
*/
|
|
9
9
|
export class ColumnReorderEvent extends PreventableEvent {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Represents the reordered column.
|
|
12
12
|
*/
|
|
13
13
|
column;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* Relative to the collection of columns.
|
|
15
|
+
* Represents the new index of the column. This index is relative to the collection of columns.
|
|
17
16
|
*/
|
|
18
17
|
newIndex;
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
21
|
-
* Relative to the collection of columns.
|
|
19
|
+
* Represents the original index of the column before reordering. This index is relative to the collection of columns.
|
|
22
20
|
*/
|
|
23
21
|
oldIndex;
|
|
24
22
|
/**
|