@progress/kendo-angular-grid 19.3.0-develop.22 → 19.3.0-develop.24
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/columns/columns-container.d.ts +2 -0
- package/common/data-layout-mode.d.ts +19 -0
- package/common/stacked-layout-settings.d.ts +24 -0
- package/directives.d.ts +4 -3
- package/editing-directives/editing-directive-base.d.ts +3 -0
- package/esm2022/columns/column-base.mjs +4 -4
- package/esm2022/columns/column.component.mjs +1 -1
- package/esm2022/columns/columns-container.mjs +3 -0
- package/esm2022/common/column-info.service.mjs +1 -1
- package/esm2022/common/data-layout-mode.mjs +5 -0
- package/esm2022/common/stacked-layout-settings.mjs +5 -0
- package/esm2022/directives.mjs +3 -1
- package/esm2022/editing-directives/editing-directive-base.mjs +17 -2
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +2 -1
- package/esm2022/filtering/filter-row.component.mjs +5 -2
- package/esm2022/grid.component.mjs +111 -33
- package/esm2022/grid.module.mjs +101 -100
- package/esm2022/grouping/group-header.component.mjs +39 -4
- package/esm2022/index.mjs +1 -0
- package/esm2022/localization/messages.mjs +2 -2
- package/esm2022/navigation/default-focusable-element.mjs +14 -2
- package/esm2022/navigation/focusable.directive.mjs +1 -1
- package/esm2022/navigation/navigation-cursor.mjs +7 -1
- package/esm2022/navigation/navigation-metadata.mjs +3 -1
- package/esm2022/navigation/navigation.service.mjs +136 -5
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pdf/export-element.mjs +14 -5
- package/esm2022/pdf/pdf.component.mjs +3 -1
- package/esm2022/rendering/cell.component.mjs +466 -188
- package/esm2022/rendering/common/col-group.component.mjs +20 -7
- package/esm2022/rendering/footer/footer.component.mjs +117 -54
- package/esm2022/rendering/header/header.component.mjs +5 -2
- package/esm2022/rendering/list.component.mjs +13 -8
- package/esm2022/rendering/table-body.component.mjs +384 -171
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +7 -3
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-tool.directive.mjs +1 -1
- package/esm2022/rendering/toolbar/tools/select-all-command-tool.directive.mjs +93 -0
- package/esm2022/row-reordering/row-reorder.service.mjs +2 -2
- package/esm2022/row-reordering/utils.mjs +6 -4
- package/esm2022/selection/cell-selection.service.mjs +6 -3
- package/fesm2022/progress-kendo-angular-grid.mjs +1515 -567
- package/filtering/filter-row.component.d.ts +1 -0
- package/grid.component.d.ts +22 -1
- package/grid.module.d.ts +100 -99
- package/grouping/group-header.component.d.ts +1 -0
- package/index.d.ts +3 -0
- package/localization/messages.d.ts +2 -2
- package/navigation/default-focusable-element.d.ts +3 -1
- package/navigation/focus-group.d.ts +1 -1
- package/navigation/navigation-metadata.d.ts +2 -1
- package/navigation/navigation.service.d.ts +6 -0
- package/package.json +21 -21
- package/rendering/cell.component.d.ts +32 -17
- package/rendering/common/col-group.component.d.ts +5 -0
- package/rendering/footer/footer.component.d.ts +4 -1
- package/rendering/header/header.component.d.ts +1 -0
- package/rendering/list.component.d.ts +4 -1
- package/rendering/table-body.component.d.ts +2 -1
- package/rendering/toolbar/tools/ai-assistant/ai-assistant.component.d.ts +1 -0
- package/rendering/toolbar/tools/ai-assistant/ai-tool.directive.d.ts +1 -1
- package/rendering/toolbar/tools/select-all-command-tool.directive.d.ts +36 -0
- package/row-reordering/row-reorder.service.d.ts +1 -1
- package/row-reordering/utils.d.ts +1 -1
- package/schematics/ngAdd/index.js +4 -4
- package/selection/cell-selection.service.d.ts +1 -0
|
@@ -16,6 +16,7 @@ export declare class ColumnsContainer {
|
|
|
16
16
|
lockedLeafColumns: QueryList<ColumnBase>;
|
|
17
17
|
nonLockedLeafColumns: QueryList<ColumnBase>;
|
|
18
18
|
totalLevels: number;
|
|
19
|
+
isStacked: boolean;
|
|
19
20
|
changes: EventEmitter<any>;
|
|
20
21
|
leafColumnsToRender: ColumnBase[];
|
|
21
22
|
lockedColumnsToRender: ColumnBase[];
|
|
@@ -24,6 +25,7 @@ export declare class ColumnsContainer {
|
|
|
24
25
|
hasGroupFooter: boolean;
|
|
25
26
|
hasFooter: boolean;
|
|
26
27
|
unlockedWidth: number;
|
|
28
|
+
totalColumnsWidth: number;
|
|
27
29
|
constructor(columns: Function);
|
|
28
30
|
refresh(): boolean;
|
|
29
31
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { StackedLayoutSettings } from "./stacked-layout-settings";
|
|
6
|
+
/**
|
|
7
|
+
* Specifies the Grid data layout display mode.
|
|
8
|
+
*/
|
|
9
|
+
export type DataLayoutMode = 'columns' | 'stacked';
|
|
10
|
+
export interface DataLayoutModeSettings {
|
|
11
|
+
/**
|
|
12
|
+
* Specifies the Grid data layout display mode.
|
|
13
|
+
*/
|
|
14
|
+
mode?: DataLayoutMode;
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the settings for the stacked layout mode.
|
|
17
|
+
*/
|
|
18
|
+
stackedLayoutSettings?: StackedLayoutSettings;
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Specifies settings for the stacked columns layout of the Grid.
|
|
7
|
+
*/
|
|
8
|
+
export interface StackedLayoutSettings {
|
|
9
|
+
/**
|
|
10
|
+
* Configures the stacked columns layout and widths. The possible options are:
|
|
11
|
+
* * - as a `number` - Sets the number of columns with default widths.
|
|
12
|
+
* * - as an `Array<number | string | GridColSize>` - The size of the array represents the number of columns, and the values represent the column widths
|
|
13
|
+
*/
|
|
14
|
+
cols?: number | Array<number | string | GridColSize>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Represents the size of a column in the stacked layout of the Grid.
|
|
18
|
+
*/
|
|
19
|
+
export interface GridColSize {
|
|
20
|
+
/**
|
|
21
|
+
* Sets the width of the column. When a number is provided, it is interpreted as pixels.
|
|
22
|
+
*/
|
|
23
|
+
width?: string | number;
|
|
24
|
+
}
|
package/directives.d.ts
CHANGED
|
@@ -152,6 +152,7 @@ import { CancelCommandToolbarDirective } from "./editing/cancel-command-tool.dir
|
|
|
152
152
|
import { GroupCommandToolbarDirective } from "./rendering/toolbar/tools/group-command-tool.directive";
|
|
153
153
|
import { HighlightDirective } from "./highlight/highlight.directive";
|
|
154
154
|
import { AIAssistantToolbarDirective } from "./rendering/toolbar/tools/ai-assistant/ai-tool.directive";
|
|
155
|
+
import { SelectAllToolbarToolComponent } from "./rendering/toolbar/tools/select-all-command-tool.directive";
|
|
155
156
|
/**
|
|
156
157
|
* @hidden
|
|
157
158
|
*
|
|
@@ -233,7 +234,7 @@ export declare const KENDO_GRID_FOOTER_EXPORTS: readonly [typeof FooterComponent
|
|
|
233
234
|
*
|
|
234
235
|
* Utility array that contains the Body module exports
|
|
235
236
|
*/
|
|
236
|
-
export declare const KENDO_GRID_BODY_EXPORTS: readonly [typeof CommandColumnComponent, typeof CheckboxColumnComponent, typeof SelectionCheckboxDirective, typeof CellTemplateDirective, typeof EditTemplateDirective, typeof RowDragHandleTemplateDirective, typeof RowDragHintTemplateDirective, typeof TableBodyComponent, typeof NoRecordsTemplateDirective, typeof CellComponent, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof AddCommandToolbarDirective, typeof EditCommandToolbarDirective, typeof SaveCommandToolbarDirective, typeof RemoveCommandToolbarDirective, typeof CancelCommandToolbarDirective, typeof CellLoadingTemplateDirective, typeof LoadingTemplateDirective, typeof RowReorderColumnComponent, typeof SortCommandToolbarDirective, typeof FilterCommandToolbarDirective, typeof AIAssistantToolbarDirective, typeof GroupCommandToolbarDirective];
|
|
237
|
+
export declare const KENDO_GRID_BODY_EXPORTS: readonly [typeof CommandColumnComponent, typeof CheckboxColumnComponent, typeof SelectionCheckboxDirective, typeof CellTemplateDirective, typeof EditTemplateDirective, typeof RowDragHandleTemplateDirective, typeof RowDragHintTemplateDirective, typeof TableBodyComponent, typeof NoRecordsTemplateDirective, typeof CellComponent, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof AddCommandToolbarDirective, typeof EditCommandToolbarDirective, typeof SaveCommandToolbarDirective, typeof RemoveCommandToolbarDirective, typeof CancelCommandToolbarDirective, typeof CellLoadingTemplateDirective, typeof LoadingTemplateDirective, typeof RowReorderColumnComponent, typeof SortCommandToolbarDirective, typeof FilterCommandToolbarDirective, typeof AIAssistantToolbarDirective, typeof GroupCommandToolbarDirective, typeof SelectAllToolbarToolComponent];
|
|
237
238
|
/**
|
|
238
239
|
* @hidden
|
|
239
240
|
*
|
|
@@ -245,7 +246,7 @@ export declare const KENDO_GRID_DECLARATIONS: readonly [typeof GridComponent, ty
|
|
|
245
246
|
*
|
|
246
247
|
* Utility array that contains the Grid module exports
|
|
247
248
|
*/
|
|
248
|
-
export declare const KENDO_GRID_EXPORTS: readonly [typeof GridComponent, typeof ToolbarTemplateDirective, typeof ToolbarComponent, typeof GridSpacerComponent, typeof StatusBarTemplateDirective, typeof DataBindingDirective, typeof SelectionDirective, typeof HighlightDirective, typeof CustomMessagesComponent, typeof GroupBindingDirective, typeof TemplateEditingDirective, typeof ReactiveEditingDirective, typeof InCellEditingDirective, typeof ExternalEditingDirective, typeof ExpandDetailsDirective, typeof ExpandGroupDirective, typeof GridToolbarFocusableDirective, typeof GroupHeaderTemplateDirective, typeof GroupHeaderColumnTemplateDirective, typeof GroupFooterTemplateDirective, typeof GroupHeaderComponent, typeof GroupPanelComponent, typeof ColumnComponent, typeof ColumnGroupComponent, typeof LogicalCellDirective, typeof LogicalRowDirective, typeof FocusableDirective, typeof FooterTemplateDirective, typeof ColGroupComponent, typeof ResizableContainerDirective, typeof TemplateContextDirective, typeof FieldAccessorPipe, typeof DetailTemplateDirective, typeof SpanColumnComponent, typeof LoadingComponent, typeof GridTableDirective, typeof CommandColumnComponent, typeof CheckboxColumnComponent, typeof SelectionCheckboxDirective, typeof CellTemplateDirective, typeof EditTemplateDirective, typeof RowDragHandleTemplateDirective, typeof RowDragHintTemplateDirective, typeof TableBodyComponent, typeof NoRecordsTemplateDirective, typeof CellComponent, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof AddCommandToolbarDirective, typeof EditCommandToolbarDirective, typeof SaveCommandToolbarDirective, typeof RemoveCommandToolbarDirective, typeof CancelCommandToolbarDirective, typeof CellLoadingTemplateDirective, typeof LoadingTemplateDirective, typeof RowReorderColumnComponent, typeof SortCommandToolbarDirective, typeof FilterCommandToolbarDirective, typeof AIAssistantToolbarDirective, typeof GroupCommandToolbarDirective, typeof HeaderComponent, typeof HeaderTemplateDirective, typeof ColumnHandleDirective, typeof SelectAllCheckboxDirective, typeof FilterRowComponent, typeof FilterCellComponent, typeof FilterCellTemplateDirective, typeof StringFilterCellComponent, typeof NumericFilterCellComponent, typeof AutoCompleteFilterCellComponent, typeof BooleanFilterCellComponent, typeof FilterCellHostDirective, typeof FilterCellWrapperComponent, typeof DateFilterCellComponent, typeof FilterCellOperatorsComponent, typeof ContainsFilterOperatorComponent, typeof DoesNotContainFilterOperatorComponent, typeof EndsWithFilterOperatorComponent, typeof EqualFilterOperatorComponent, typeof IsEmptyFilterOperatorComponent, typeof IsNotEmptyFilterOperatorComponent, typeof IsNotNullFilterOperatorComponent, typeof IsNullFilterOperatorComponent, typeof NotEqualFilterOperatorComponent, typeof StartsWithFilterOperatorComponent, typeof GreaterFilterOperatorComponent, typeof GreaterOrEqualToFilterOperatorComponent, typeof LessFilterOperatorComponent, typeof LessOrEqualToFilterOperatorComponent, typeof AfterFilterOperatorComponent, typeof AfterEqFilterOperatorComponent, typeof BeforeEqFilterOperatorComponent, typeof BeforeFilterOperatorComponent, typeof FilterMenuComponent, typeof FilterMenuContainerComponent, typeof FilterMenuInputWrapperComponent, typeof StringFilterMenuInputComponent, typeof StringFilterMenuComponent, typeof FilterMenuTemplateDirective, typeof NumericFilterMenuComponent, typeof NumericFilterMenuInputComponent, typeof DateFilterMenuInputComponent, typeof DateFilterMenuComponent, typeof FilterMenuHostDirective, typeof BooleanFilterMenuComponent, typeof FilterMenuDropDownListDirective, typeof BooleanFilterRadioButtonDirective, typeof ColumnChooserComponent, typeof ColumnChooserToolbarDirective, typeof ColumnMenuFilterComponent, typeof ColumnMenuItemComponent, typeof ColumnMenuItemContentTemplateDirective, typeof ColumnMenuSortComponent, typeof ColumnMenuLockComponent, typeof ColumnMenuStickComponent, typeof ColumnMenuPositionComponent, typeof ColumnMenuChooserComponent, typeof ColumnMenuTemplateDirective, typeof ColumnMenuContainerComponent, typeof ColumnMenuItemDirective, typeof ColumnMenuComponent, typeof ColumnMenuAutoSizeColumnComponent, typeof ColumnMenuAutoSizeAllColumnsComponent, typeof GridClipboardDirective, typeof UndoRedoDirective, typeof UndoCommandToolbarDirective, typeof RedoCommandToolbarDirective];
|
|
249
|
+
export declare const KENDO_GRID_EXPORTS: readonly [typeof GridComponent, typeof ToolbarTemplateDirective, typeof ToolbarComponent, typeof GridSpacerComponent, typeof StatusBarTemplateDirective, typeof DataBindingDirective, typeof SelectionDirective, typeof HighlightDirective, typeof CustomMessagesComponent, typeof GroupBindingDirective, typeof TemplateEditingDirective, typeof ReactiveEditingDirective, typeof InCellEditingDirective, typeof ExternalEditingDirective, typeof ExpandDetailsDirective, typeof ExpandGroupDirective, typeof GridToolbarFocusableDirective, typeof GroupHeaderTemplateDirective, typeof GroupHeaderColumnTemplateDirective, typeof GroupFooterTemplateDirective, typeof GroupHeaderComponent, typeof GroupPanelComponent, typeof ColumnComponent, typeof ColumnGroupComponent, typeof LogicalCellDirective, typeof LogicalRowDirective, typeof FocusableDirective, typeof FooterTemplateDirective, typeof ColGroupComponent, typeof ResizableContainerDirective, typeof TemplateContextDirective, typeof FieldAccessorPipe, typeof DetailTemplateDirective, typeof SpanColumnComponent, typeof LoadingComponent, typeof GridTableDirective, typeof CommandColumnComponent, typeof CheckboxColumnComponent, typeof SelectionCheckboxDirective, typeof CellTemplateDirective, typeof EditTemplateDirective, typeof RowDragHandleTemplateDirective, typeof RowDragHintTemplateDirective, typeof TableBodyComponent, typeof NoRecordsTemplateDirective, typeof CellComponent, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof AddCommandToolbarDirective, typeof EditCommandToolbarDirective, typeof SaveCommandToolbarDirective, typeof RemoveCommandToolbarDirective, typeof CancelCommandToolbarDirective, typeof CellLoadingTemplateDirective, typeof LoadingTemplateDirective, typeof RowReorderColumnComponent, typeof SortCommandToolbarDirective, typeof FilterCommandToolbarDirective, typeof AIAssistantToolbarDirective, typeof GroupCommandToolbarDirective, typeof SelectAllToolbarToolComponent, typeof HeaderComponent, typeof HeaderTemplateDirective, typeof ColumnHandleDirective, typeof SelectAllCheckboxDirective, typeof FilterRowComponent, typeof FilterCellComponent, typeof FilterCellTemplateDirective, typeof StringFilterCellComponent, typeof NumericFilterCellComponent, typeof AutoCompleteFilterCellComponent, typeof BooleanFilterCellComponent, typeof FilterCellHostDirective, typeof FilterCellWrapperComponent, typeof DateFilterCellComponent, typeof FilterCellOperatorsComponent, typeof ContainsFilterOperatorComponent, typeof DoesNotContainFilterOperatorComponent, typeof EndsWithFilterOperatorComponent, typeof EqualFilterOperatorComponent, typeof IsEmptyFilterOperatorComponent, typeof IsNotEmptyFilterOperatorComponent, typeof IsNotNullFilterOperatorComponent, typeof IsNullFilterOperatorComponent, typeof NotEqualFilterOperatorComponent, typeof StartsWithFilterOperatorComponent, typeof GreaterFilterOperatorComponent, typeof GreaterOrEqualToFilterOperatorComponent, typeof LessFilterOperatorComponent, typeof LessOrEqualToFilterOperatorComponent, typeof AfterFilterOperatorComponent, typeof AfterEqFilterOperatorComponent, typeof BeforeEqFilterOperatorComponent, typeof BeforeFilterOperatorComponent, typeof FilterMenuComponent, typeof FilterMenuContainerComponent, typeof FilterMenuInputWrapperComponent, typeof StringFilterMenuInputComponent, typeof StringFilterMenuComponent, typeof FilterMenuTemplateDirective, typeof NumericFilterMenuComponent, typeof NumericFilterMenuInputComponent, typeof DateFilterMenuInputComponent, typeof DateFilterMenuComponent, typeof FilterMenuHostDirective, typeof BooleanFilterMenuComponent, typeof FilterMenuDropDownListDirective, typeof BooleanFilterRadioButtonDirective, typeof ColumnChooserComponent, typeof ColumnChooserToolbarDirective, typeof ColumnMenuFilterComponent, typeof ColumnMenuItemComponent, typeof ColumnMenuItemContentTemplateDirective, typeof ColumnMenuSortComponent, typeof ColumnMenuLockComponent, typeof ColumnMenuStickComponent, typeof ColumnMenuPositionComponent, typeof ColumnMenuChooserComponent, typeof ColumnMenuTemplateDirective, typeof ColumnMenuContainerComponent, typeof ColumnMenuItemDirective, typeof ColumnMenuComponent, typeof ColumnMenuAutoSizeColumnComponent, typeof ColumnMenuAutoSizeAllColumnsComponent, typeof GridClipboardDirective, typeof UndoRedoDirective, typeof UndoCommandToolbarDirective, typeof RedoCommandToolbarDirective];
|
|
249
250
|
/**
|
|
250
251
|
* @hidden
|
|
251
252
|
*
|
|
@@ -270,4 +271,4 @@ export declare const KENDO_GRID_PDF_EXPORT: readonly [typeof PDFComponent, typeo
|
|
|
270
271
|
* export class AppModule {}
|
|
271
272
|
* ```
|
|
272
273
|
*/
|
|
273
|
-
export declare const KENDO_GRID: readonly [typeof GridComponent, typeof ToolbarTemplateDirective, typeof ToolbarComponent, typeof GridSpacerComponent, typeof StatusBarTemplateDirective, typeof DataBindingDirective, typeof SelectionDirective, typeof HighlightDirective, typeof CustomMessagesComponent, typeof GroupBindingDirective, typeof TemplateEditingDirective, typeof ReactiveEditingDirective, typeof InCellEditingDirective, typeof ExternalEditingDirective, typeof ExpandDetailsDirective, typeof ExpandGroupDirective, typeof GridToolbarFocusableDirective, typeof GroupHeaderTemplateDirective, typeof GroupHeaderColumnTemplateDirective, typeof GroupFooterTemplateDirective, typeof GroupHeaderComponent, typeof GroupPanelComponent, typeof ColumnComponent, typeof ColumnGroupComponent, typeof LogicalCellDirective, typeof LogicalRowDirective, typeof FocusableDirective, typeof FooterTemplateDirective, typeof ColGroupComponent, typeof ResizableContainerDirective, typeof TemplateContextDirective, typeof FieldAccessorPipe, typeof DetailTemplateDirective, typeof SpanColumnComponent, typeof LoadingComponent, typeof GridTableDirective, typeof CommandColumnComponent, typeof CheckboxColumnComponent, typeof SelectionCheckboxDirective, typeof CellTemplateDirective, typeof EditTemplateDirective, typeof RowDragHandleTemplateDirective, typeof RowDragHintTemplateDirective, typeof TableBodyComponent, typeof NoRecordsTemplateDirective, typeof CellComponent, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof AddCommandToolbarDirective, typeof EditCommandToolbarDirective, typeof SaveCommandToolbarDirective, typeof RemoveCommandToolbarDirective, typeof CancelCommandToolbarDirective, typeof CellLoadingTemplateDirective, typeof LoadingTemplateDirective, typeof RowReorderColumnComponent, typeof SortCommandToolbarDirective, typeof FilterCommandToolbarDirective, typeof AIAssistantToolbarDirective, typeof GroupCommandToolbarDirective, typeof HeaderComponent, typeof HeaderTemplateDirective, typeof ColumnHandleDirective, typeof SelectAllCheckboxDirective, typeof FilterRowComponent, typeof FilterCellComponent, typeof FilterCellTemplateDirective, typeof StringFilterCellComponent, typeof NumericFilterCellComponent, typeof AutoCompleteFilterCellComponent, typeof BooleanFilterCellComponent, typeof FilterCellHostDirective, typeof FilterCellWrapperComponent, typeof DateFilterCellComponent, typeof FilterCellOperatorsComponent, typeof ContainsFilterOperatorComponent, typeof DoesNotContainFilterOperatorComponent, typeof EndsWithFilterOperatorComponent, typeof EqualFilterOperatorComponent, typeof IsEmptyFilterOperatorComponent, typeof IsNotEmptyFilterOperatorComponent, typeof IsNotNullFilterOperatorComponent, typeof IsNullFilterOperatorComponent, typeof NotEqualFilterOperatorComponent, typeof StartsWithFilterOperatorComponent, typeof GreaterFilterOperatorComponent, typeof GreaterOrEqualToFilterOperatorComponent, typeof LessFilterOperatorComponent, typeof LessOrEqualToFilterOperatorComponent, typeof AfterFilterOperatorComponent, typeof AfterEqFilterOperatorComponent, typeof BeforeEqFilterOperatorComponent, typeof BeforeFilterOperatorComponent, typeof FilterMenuComponent, typeof FilterMenuContainerComponent, typeof FilterMenuInputWrapperComponent, typeof StringFilterMenuInputComponent, typeof StringFilterMenuComponent, typeof FilterMenuTemplateDirective, typeof NumericFilterMenuComponent, typeof NumericFilterMenuInputComponent, typeof DateFilterMenuInputComponent, typeof DateFilterMenuComponent, typeof FilterMenuHostDirective, typeof BooleanFilterMenuComponent, typeof FilterMenuDropDownListDirective, typeof BooleanFilterRadioButtonDirective, typeof ColumnChooserComponent, typeof ColumnChooserToolbarDirective, typeof ColumnMenuFilterComponent, typeof ColumnMenuItemComponent, typeof ColumnMenuItemContentTemplateDirective, typeof ColumnMenuSortComponent, typeof ColumnMenuLockComponent, typeof ColumnMenuStickComponent, typeof ColumnMenuPositionComponent, typeof ColumnMenuChooserComponent, typeof ColumnMenuTemplateDirective, typeof ColumnMenuContainerComponent, typeof ColumnMenuItemDirective, typeof ColumnMenuComponent, typeof ColumnMenuAutoSizeColumnComponent, typeof ColumnMenuAutoSizeAllColumnsComponent, typeof GridClipboardDirective, typeof UndoRedoDirective, typeof UndoCommandToolbarDirective, typeof RedoCommandToolbarDirective, typeof ExcelComponent, typeof ExcelCommandDirective, typeof ExcelCommandToolbarDirective, typeof ExcelColumnComponent, typeof ExcelColumnGroupComponent, typeof ExcelFooterTemplateDirective, typeof ExcelGroupFooterTemplateDirective, typeof ExcelGroupHeaderColumnTemplateDirective, typeof ExcelGroupHeaderTemplateDirective, typeof PDFComponent, typeof PDFMarginComponent, typeof PDFCommandDirective, typeof PDFTemplateDirective, typeof PDFCommandToolbarDirective];
|
|
274
|
+
export declare const KENDO_GRID: readonly [typeof GridComponent, typeof ToolbarTemplateDirective, typeof ToolbarComponent, typeof GridSpacerComponent, typeof StatusBarTemplateDirective, typeof DataBindingDirective, typeof SelectionDirective, typeof HighlightDirective, typeof CustomMessagesComponent, typeof GroupBindingDirective, typeof TemplateEditingDirective, typeof ReactiveEditingDirective, typeof InCellEditingDirective, typeof ExternalEditingDirective, typeof ExpandDetailsDirective, typeof ExpandGroupDirective, typeof GridToolbarFocusableDirective, typeof GroupHeaderTemplateDirective, typeof GroupHeaderColumnTemplateDirective, typeof GroupFooterTemplateDirective, typeof GroupHeaderComponent, typeof GroupPanelComponent, typeof ColumnComponent, typeof ColumnGroupComponent, typeof LogicalCellDirective, typeof LogicalRowDirective, typeof FocusableDirective, typeof FooterTemplateDirective, typeof ColGroupComponent, typeof ResizableContainerDirective, typeof TemplateContextDirective, typeof FieldAccessorPipe, typeof DetailTemplateDirective, typeof SpanColumnComponent, typeof LoadingComponent, typeof GridTableDirective, typeof CommandColumnComponent, typeof CheckboxColumnComponent, typeof SelectionCheckboxDirective, typeof CellTemplateDirective, typeof EditTemplateDirective, typeof RowDragHandleTemplateDirective, typeof RowDragHintTemplateDirective, typeof TableBodyComponent, typeof NoRecordsTemplateDirective, typeof CellComponent, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof AddCommandToolbarDirective, typeof EditCommandToolbarDirective, typeof SaveCommandToolbarDirective, typeof RemoveCommandToolbarDirective, typeof CancelCommandToolbarDirective, typeof CellLoadingTemplateDirective, typeof LoadingTemplateDirective, typeof RowReorderColumnComponent, typeof SortCommandToolbarDirective, typeof FilterCommandToolbarDirective, typeof AIAssistantToolbarDirective, typeof GroupCommandToolbarDirective, typeof SelectAllToolbarToolComponent, typeof HeaderComponent, typeof HeaderTemplateDirective, typeof ColumnHandleDirective, typeof SelectAllCheckboxDirective, typeof FilterRowComponent, typeof FilterCellComponent, typeof FilterCellTemplateDirective, typeof StringFilterCellComponent, typeof NumericFilterCellComponent, typeof AutoCompleteFilterCellComponent, typeof BooleanFilterCellComponent, typeof FilterCellHostDirective, typeof FilterCellWrapperComponent, typeof DateFilterCellComponent, typeof FilterCellOperatorsComponent, typeof ContainsFilterOperatorComponent, typeof DoesNotContainFilterOperatorComponent, typeof EndsWithFilterOperatorComponent, typeof EqualFilterOperatorComponent, typeof IsEmptyFilterOperatorComponent, typeof IsNotEmptyFilterOperatorComponent, typeof IsNotNullFilterOperatorComponent, typeof IsNullFilterOperatorComponent, typeof NotEqualFilterOperatorComponent, typeof StartsWithFilterOperatorComponent, typeof GreaterFilterOperatorComponent, typeof GreaterOrEqualToFilterOperatorComponent, typeof LessFilterOperatorComponent, typeof LessOrEqualToFilterOperatorComponent, typeof AfterFilterOperatorComponent, typeof AfterEqFilterOperatorComponent, typeof BeforeEqFilterOperatorComponent, typeof BeforeFilterOperatorComponent, typeof FilterMenuComponent, typeof FilterMenuContainerComponent, typeof FilterMenuInputWrapperComponent, typeof StringFilterMenuInputComponent, typeof StringFilterMenuComponent, typeof FilterMenuTemplateDirective, typeof NumericFilterMenuComponent, typeof NumericFilterMenuInputComponent, typeof DateFilterMenuInputComponent, typeof DateFilterMenuComponent, typeof FilterMenuHostDirective, typeof BooleanFilterMenuComponent, typeof FilterMenuDropDownListDirective, typeof BooleanFilterRadioButtonDirective, typeof ColumnChooserComponent, typeof ColumnChooserToolbarDirective, typeof ColumnMenuFilterComponent, typeof ColumnMenuItemComponent, typeof ColumnMenuItemContentTemplateDirective, typeof ColumnMenuSortComponent, typeof ColumnMenuLockComponent, typeof ColumnMenuStickComponent, typeof ColumnMenuPositionComponent, typeof ColumnMenuChooserComponent, typeof ColumnMenuTemplateDirective, typeof ColumnMenuContainerComponent, typeof ColumnMenuItemDirective, typeof ColumnMenuComponent, typeof ColumnMenuAutoSizeColumnComponent, typeof ColumnMenuAutoSizeAllColumnsComponent, typeof GridClipboardDirective, typeof UndoRedoDirective, typeof UndoCommandToolbarDirective, typeof RedoCommandToolbarDirective, typeof ExcelComponent, typeof ExcelCommandDirective, typeof ExcelCommandToolbarDirective, typeof ExcelColumnComponent, typeof ExcelColumnGroupComponent, typeof ExcelFooterTemplateDirective, typeof ExcelGroupFooterTemplateDirective, typeof ExcelGroupHeaderColumnTemplateDirective, typeof ExcelGroupHeaderTemplateDirective, typeof PDFComponent, typeof PDFMarginComponent, typeof PDFCommandDirective, typeof PDFTemplateDirective, typeof PDFCommandToolbarDirective];
|
|
@@ -10,6 +10,7 @@ import { LocalDataChangesService } from '../editing/local-data-changes.service';
|
|
|
10
10
|
import { RemoveConfirmationCallback } from '../common/remove-confirmation';
|
|
11
11
|
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
12
12
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
13
|
+
import { NavigationService } from '../navigation/navigation.service';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
/**
|
|
15
16
|
* @hidden
|
|
@@ -37,6 +38,7 @@ export declare abstract class EditingDirectiveBase implements OnInit, OnDestroy
|
|
|
37
38
|
protected subscriptions: Subscription;
|
|
38
39
|
protected defaultEditService: EditService;
|
|
39
40
|
protected userEditService: EditService;
|
|
41
|
+
protected navigationService: NavigationService;
|
|
40
42
|
protected abstract createModel(args: any): any;
|
|
41
43
|
protected abstract saveModel(args: any): any;
|
|
42
44
|
constructor(grid: GridComponent, localDataChangesService: LocalDataChangesService);
|
|
@@ -55,6 +57,7 @@ export declare abstract class EditingDirectiveBase implements OnInit, OnDestroy
|
|
|
55
57
|
protected removeHandler({ dataItem }: any): void;
|
|
56
58
|
protected onStateChange(): void;
|
|
57
59
|
protected closeEditor(rowIndex?: number): void;
|
|
60
|
+
private returnFocusToGrid;
|
|
58
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditingDirectiveBase, never>;
|
|
59
62
|
static ɵdir: i0.ɵɵDirectiveDeclaration<EditingDirectiveBase, "[kendoGridEditingDirectiveBase]", never, { "editService": { "alias": "editService"; "required": false; }; "removeConfirmation": { "alias": "removeConfirmation"; "required": false; }; }, {}, never, never, false, never>;
|
|
60
63
|
}
|
|
@@ -14,16 +14,16 @@ import * as i1 from "../common/id.service";
|
|
|
14
14
|
/**
|
|
15
15
|
* @hidden
|
|
16
16
|
*/
|
|
17
|
-
export const isSpanColumn = column => column
|
|
17
|
+
export const isSpanColumn = column => column?.isSpanColumn;
|
|
18
18
|
/**
|
|
19
19
|
* @hidden
|
|
20
20
|
*/
|
|
21
|
-
export const isCheckboxColumn = column => column
|
|
21
|
+
export const isCheckboxColumn = column => column?.isCheckboxColumn;
|
|
22
22
|
/**
|
|
23
23
|
* @hidden
|
|
24
24
|
*/
|
|
25
|
-
export const isRowReorderColumn = column => column
|
|
26
|
-
const isColumnContainer = column => column
|
|
25
|
+
export const isRowReorderColumn = column => column?.isRowReorderColumn;
|
|
26
|
+
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.
|
|
@@ -26,6 +26,7 @@ export class ColumnsContainer {
|
|
|
26
26
|
lockedLeafColumns = new QueryList();
|
|
27
27
|
nonLockedLeafColumns = new QueryList();
|
|
28
28
|
totalLevels = 0;
|
|
29
|
+
isStacked = false;
|
|
29
30
|
changes = new EventEmitter();
|
|
30
31
|
leafColumnsToRender = [];
|
|
31
32
|
lockedColumnsToRender = [];
|
|
@@ -34,6 +35,7 @@ export class ColumnsContainer {
|
|
|
34
35
|
hasGroupFooter = false;
|
|
35
36
|
hasFooter = false;
|
|
36
37
|
unlockedWidth = 0;
|
|
38
|
+
totalColumnsWidth = 0;
|
|
37
39
|
constructor(columns) {
|
|
38
40
|
this.columns = columns;
|
|
39
41
|
}
|
|
@@ -77,6 +79,7 @@ export class ColumnsContainer {
|
|
|
77
79
|
else {
|
|
78
80
|
column.leafIndex = leafIndex++;
|
|
79
81
|
}
|
|
82
|
+
this.totalColumnsWidth += column.width || 0;
|
|
80
83
|
}
|
|
81
84
|
containerColumns.push(column);
|
|
82
85
|
allColumns.push(column);
|
|
@@ -26,7 +26,7 @@ export class ColumnInfoService {
|
|
|
26
26
|
return this.columnsContainer.nonLockedLeafColumns;
|
|
27
27
|
}
|
|
28
28
|
get isLocked() {
|
|
29
|
-
return this.lockedLeafColumns.length > 0;
|
|
29
|
+
return this.lockedLeafColumns.length > 0 && !this.columnsContainer.isStacked;
|
|
30
30
|
}
|
|
31
31
|
get totalLevels() {
|
|
32
32
|
return this.columnsContainer.totalLevels;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
package/esm2022/directives.mjs
CHANGED
|
@@ -160,6 +160,7 @@ import { CancelCommandToolbarDirective } from "./editing/cancel-command-tool.dir
|
|
|
160
160
|
import { GroupCommandToolbarDirective } from "./rendering/toolbar/tools/group-command-tool.directive";
|
|
161
161
|
import { HighlightDirective } from "./highlight/highlight.directive";
|
|
162
162
|
import { AIAssistantToolbarDirective } from "./rendering/toolbar/tools/ai-assistant/ai-tool.directive";
|
|
163
|
+
import { SelectAllToolbarToolComponent } from "./rendering/toolbar/tools/select-all-command-tool.directive";
|
|
163
164
|
/**
|
|
164
165
|
* @hidden
|
|
165
166
|
*
|
|
@@ -389,7 +390,8 @@ export const KENDO_GRID_BODY_EXPORTS = [
|
|
|
389
390
|
SortCommandToolbarDirective,
|
|
390
391
|
FilterCommandToolbarDirective,
|
|
391
392
|
AIAssistantToolbarDirective,
|
|
392
|
-
GroupCommandToolbarDirective
|
|
393
|
+
GroupCommandToolbarDirective,
|
|
394
|
+
SelectAllToolbarToolComponent
|
|
393
395
|
];
|
|
394
396
|
/**
|
|
395
397
|
* @hidden
|
|
@@ -11,6 +11,7 @@ import { take } from 'rxjs/operators';
|
|
|
11
11
|
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
12
12
|
import { checkIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
13
13
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
14
|
+
import { NavigationService } from '../navigation/navigation.service';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
import * as i1 from "../grid.component";
|
|
16
17
|
import * as i2 from "../editing/local-data-changes.service";
|
|
@@ -64,12 +65,14 @@ export class EditingDirectiveBase {
|
|
|
64
65
|
subscriptions = new Subscription();
|
|
65
66
|
defaultEditService;
|
|
66
67
|
userEditService;
|
|
68
|
+
navigationService;
|
|
67
69
|
constructor(grid, localDataChangesService) {
|
|
68
70
|
this.grid = grid;
|
|
69
71
|
this.localDataChangesService = localDataChangesService;
|
|
70
72
|
this.defaultEditService = this.createDefaultService();
|
|
71
73
|
this.dialogService = inject(DialogService);
|
|
72
74
|
this.localization = inject(LocalizationService);
|
|
75
|
+
this.navigationService = inject(NavigationService);
|
|
73
76
|
}
|
|
74
77
|
/**
|
|
75
78
|
* @hidden
|
|
@@ -118,13 +121,20 @@ export class EditingDirectiveBase {
|
|
|
118
121
|
const confirmationCallback = typeof this.removeConfirmation === 'boolean' ? this.defaultRemoveConfirmation : this.removeConfirmation;
|
|
119
122
|
const result = confirmationCallback(dataItem);
|
|
120
123
|
if (result instanceof Promise) {
|
|
121
|
-
result.then(
|
|
124
|
+
result.then((res) => {
|
|
125
|
+
removeItem(res);
|
|
126
|
+
this.returnFocusToGrid();
|
|
127
|
+
});
|
|
122
128
|
}
|
|
123
129
|
else if (result instanceof Observable) {
|
|
124
|
-
result.pipe(take(1)).subscribe(
|
|
130
|
+
result.pipe(take(1)).subscribe((res) => {
|
|
131
|
+
removeItem(res);
|
|
132
|
+
this.returnFocusToGrid();
|
|
133
|
+
});
|
|
125
134
|
}
|
|
126
135
|
else {
|
|
127
136
|
removeItem(result);
|
|
137
|
+
this.returnFocusToGrid();
|
|
128
138
|
}
|
|
129
139
|
}
|
|
130
140
|
else {
|
|
@@ -137,6 +147,11 @@ export class EditingDirectiveBase {
|
|
|
137
147
|
closeEditor(rowIndex) {
|
|
138
148
|
this.grid.closeRow(rowIndex);
|
|
139
149
|
}
|
|
150
|
+
returnFocusToGrid() {
|
|
151
|
+
if (!this.navigationService.focusCell()) {
|
|
152
|
+
this.navigationService.focusPrevCell() || this.navigationService.focusNextCell();
|
|
153
|
+
}
|
|
154
|
+
}
|
|
140
155
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditingDirectiveBase, deps: [{ token: i1.GridComponent }, { token: i2.LocalDataChangesService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
141
156
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditingDirectiveBase, selector: "[kendoGridEditingDirectiveBase]", inputs: { editService: "editService", removeConfirmation: "removeConfirmation" }, ngImport: i0 });
|
|
142
157
|
}
|
|
@@ -63,7 +63,8 @@ export class InCellEditingDirective extends EditingDirectiveBase {
|
|
|
63
63
|
}
|
|
64
64
|
cellClickHandler(args) {
|
|
65
65
|
if (!args.isEdited && args.type !== 'contextmenu') {
|
|
66
|
-
this.grid.
|
|
66
|
+
const colIndex = this.grid.isStacked ? args.column.leafIndex : args.columnIndex;
|
|
67
|
+
this.grid.editCell(args.rowIndex, colIndex, this.createFormGroup(args));
|
|
67
68
|
this.cdr.markForCheck();
|
|
68
69
|
}
|
|
69
70
|
}
|
|
@@ -43,6 +43,9 @@ export class FilterRowComponent {
|
|
|
43
43
|
const colIndex = this.lockedColumnsCount + columnIndex;
|
|
44
44
|
return this.detailTemplate?.templateRef ? colIndex + 1 : colIndex;
|
|
45
45
|
}
|
|
46
|
+
get isStacked() {
|
|
47
|
+
return this.ctx.grid?.isStacked;
|
|
48
|
+
}
|
|
46
49
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterRowComponent, deps: [{ token: i1.ContextService }, { token: i2.ColumnInfoService }], target: i0.ɵɵFactoryTarget.Component });
|
|
47
50
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FilterRowComponent, isStandalone: true, selector: "[kendoGridFilterRow]", inputs: { columns: "columns", filter: "filter", groups: "groups", detailTemplate: "detailTemplate", logicalRowIndex: "logicalRowIndex", lockedColumnsCount: "lockedColumnsCount" }, host: { properties: { "class.k-filter-row": "this.filterRowClass" } }, ngImport: i0, template: `
|
|
48
51
|
<td
|
|
@@ -52,7 +55,7 @@ export class FilterRowComponent {
|
|
|
52
55
|
</td>
|
|
53
56
|
<td
|
|
54
57
|
class="k-table-td k-hierarchy-cell"
|
|
55
|
-
*ngIf="detailTemplate?.templateRef"
|
|
58
|
+
*ngIf="detailTemplate?.templateRef && !isStacked"
|
|
56
59
|
role="presentation">
|
|
57
60
|
</td>
|
|
58
61
|
<td *ngFor="let column of columns; let columnIndex = index"
|
|
@@ -82,7 +85,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
82
85
|
</td>
|
|
83
86
|
<td
|
|
84
87
|
class="k-table-td k-hierarchy-cell"
|
|
85
|
-
*ngIf="detailTemplate?.templateRef"
|
|
88
|
+
*ngIf="detailTemplate?.templateRef && !isStacked"
|
|
86
89
|
role="presentation">
|
|
87
90
|
</td>
|
|
88
91
|
<td *ngFor="let column of columns; let columnIndex = index"
|