@progress/kendo-angular-grid 19.3.0-develop.3 → 19.3.0-develop.30
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/provider.service.d.ts +2 -0
- package/common/stacked-layout-settings.d.ts +24 -0
- package/data/data-mapping.service.d.ts +3 -1
- package/directives.d.ts +7 -4
- package/editing-directives/editing-directive-base.d.ts +3 -0
- package/esm2022/adaptiveness/adaptive-renderer.component.mjs +1 -2
- package/esm2022/column-menu/column-list.component.mjs +10 -10
- package/esm2022/column-menu/column-menu.component.mjs +1 -1
- 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/provider.service.mjs +1 -0
- package/esm2022/common/stacked-layout-settings.mjs +5 -0
- package/esm2022/common/toolbar-tool-base.directive.mjs +3 -2
- package/esm2022/data/data-mapping.service.mjs +14 -3
- package/esm2022/directives.mjs +8 -1
- package/esm2022/editing/form/form-formfield.component.mjs +2 -2
- package/esm2022/editing-directives/editing-directive-base.mjs +17 -2
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +3 -1
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +1 -1
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +1 -1
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +1 -2
- package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +1 -1
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +1 -1
- package/esm2022/filtering/filter-row.component.mjs +6 -3
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +1 -2
- package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +1 -1
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +1 -1
- package/esm2022/filtering/menu/filter-menu-input-wrapper.component.mjs +1 -1
- package/esm2022/filtering/menu/filter-menu.component.mjs +1 -1
- package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +1 -1
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +1 -1
- package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +1 -1
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +1 -1
- package/esm2022/grid.component.mjs +190 -39
- package/esm2022/grid.module.mjs +103 -100
- package/esm2022/grouping/group-header.component.mjs +39 -4
- package/esm2022/grouping/group-panel.component.mjs +7 -3
- package/esm2022/highlight/highlight-item.mjs +5 -0
- package/esm2022/highlight/highlight.directive.mjs +132 -0
- package/esm2022/index.mjs +4 -0
- package/esm2022/localization/messages.mjs +57 -3
- 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/navigation/toolbar-tool-name.mjs +2 -1
- 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 +14 -9
- package/esm2022/rendering/table-body.component.mjs +388 -171
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +290 -0
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-tool.directive.mjs +269 -0
- package/esm2022/rendering/toolbar/tools/ai-assistant/utils.mjs +47 -0
- 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/esm2022/selection/pair-set.mjs +87 -10
- package/esm2022/utils.mjs +0 -4
- package/fesm2022/progress-kendo-angular-grid.mjs +2460 -599
- package/filtering/filter-row.component.d.ts +1 -0
- package/grid.component.d.ts +29 -1
- package/grid.module.d.ts +102 -99
- package/grouping/group-header.component.d.ts +1 -0
- package/highlight/highlight-item.d.ts +17 -0
- package/highlight/highlight.directive.d.ts +56 -0
- package/index.d.ts +7 -0
- package/localization/messages.d.ts +39 -3
- 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/navigation/toolbar-tool-name.d.ts +1 -0
- package/package.json +22 -21
- package/rendering/cell.component.d.ts +30 -15
- 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 +3 -1
- package/rendering/toolbar/tools/ai-assistant/ai-assistant.component.d.ts +50 -0
- package/rendering/toolbar/tools/ai-assistant/ai-tool.directive.d.ts +119 -0
- package/rendering/toolbar/tools/ai-assistant/utils.d.ts +110 -0
- 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
- package/selection/pair-set.d.ts +36 -8
- package/utils.d.ts +0 -4
|
@@ -142,6 +142,42 @@ export class GridMessages extends ComponentMessages {
|
|
|
142
142
|
* [See example](slug:globalization_grid#toc-custom-messages).
|
|
143
143
|
*/
|
|
144
144
|
booleanFilterCellLabel;
|
|
145
|
+
/**
|
|
146
|
+
* The text of the AI Assistant Apply button.
|
|
147
|
+
*/
|
|
148
|
+
aiAssistantApplyButtonText;
|
|
149
|
+
/**
|
|
150
|
+
* The text of the AI Assistant toolbar tool.
|
|
151
|
+
*/
|
|
152
|
+
aiAssistantToolbarToolText;
|
|
153
|
+
/**
|
|
154
|
+
* The text of the AI Assistant Window title.
|
|
155
|
+
*/
|
|
156
|
+
aiAssistantWindowTitle;
|
|
157
|
+
/**
|
|
158
|
+
* The title of the AI Assistant Window close button.
|
|
159
|
+
*/
|
|
160
|
+
aiAssistantWindowCloseTitle;
|
|
161
|
+
/**
|
|
162
|
+
* The title of the AI Assistant Prompt Output Card.
|
|
163
|
+
*/
|
|
164
|
+
aiAssistantOutputCardTitle;
|
|
165
|
+
/**
|
|
166
|
+
* The success message dispayed in the AI Assistant Prompt Output Card's body.
|
|
167
|
+
*/
|
|
168
|
+
aiAssistantOutputCardBodyContent;
|
|
169
|
+
/**
|
|
170
|
+
* The title of the AI Assistant Window maximize button.
|
|
171
|
+
*/
|
|
172
|
+
aiAssistantWindowMaximizeTitle;
|
|
173
|
+
/**
|
|
174
|
+
* The title of the AI Assistant Window minimize button.
|
|
175
|
+
*/
|
|
176
|
+
aiAssistantWindowMinimizeTitle;
|
|
177
|
+
/**
|
|
178
|
+
* The title of the AI Assistant Window restore button.
|
|
179
|
+
*/
|
|
180
|
+
aiAssistantWindowRestoreTitle;
|
|
145
181
|
/**
|
|
146
182
|
* Sets the text for the `Equal` (**Is equal to**) filter operator.
|
|
147
183
|
*/
|
|
@@ -383,11 +419,11 @@ export class GridMessages extends ComponentMessages {
|
|
|
383
419
|
*/
|
|
384
420
|
columnsReset;
|
|
385
421
|
/**
|
|
386
|
-
* Sets the title for the expand icon of detail rows.
|
|
422
|
+
* Sets the title for the expand icon of detail rows. Applies also to the expand button text in stacked mode.
|
|
387
423
|
*/
|
|
388
424
|
detailExpand;
|
|
389
425
|
/**
|
|
390
|
-
* Sets the title for the collapse icon of detail rows.
|
|
426
|
+
* Sets the title for the collapse icon of detail rows. Applies also to the collapse button text in stacked mode.
|
|
391
427
|
*/
|
|
392
428
|
detailCollapse;
|
|
393
429
|
/**
|
|
@@ -538,7 +574,7 @@ export class GridMessages extends ComponentMessages {
|
|
|
538
574
|
*/
|
|
539
575
|
externalEditingCancelText;
|
|
540
576
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
541
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GridMessages, selector: "kendo-grid-messages-base", inputs: { groupPanelEmpty: "groupPanelEmpty", noRecords: "noRecords", pagerLabel: "pagerLabel", pagerFirstPage: "pagerFirstPage", pagerLastPage: "pagerLastPage", pagerPreviousPage: "pagerPreviousPage", pagerNextPage: "pagerNextPage", pagerPage: "pagerPage", pagerItemsPerPage: "pagerItemsPerPage", pagerOf: "pagerOf", pagerItems: "pagerItems", pagerPageNumberInputTitle: "pagerPageNumberInputTitle", pagerInputLabel: "pagerInputLabel", pagerSelectPage: "pagerSelectPage", filter: "filter", filterInputLabel: "filterInputLabel", filterMenuTitle: "filterMenuTitle", filterMenuOperatorsDropDownLabel: "filterMenuOperatorsDropDownLabel", filterMenuLogicDropDownLabel: "filterMenuLogicDropDownLabel", filterCellOperatorLabel: "filterCellOperatorLabel", booleanFilterCellLabel: "booleanFilterCellLabel", filterEqOperator: "filterEqOperator", filterNotEqOperator: "filterNotEqOperator", filterIsNullOperator: "filterIsNullOperator", filterIsNotNullOperator: "filterIsNotNullOperator", filterIsEmptyOperator: "filterIsEmptyOperator", filterIsNotEmptyOperator: "filterIsNotEmptyOperator", filterStartsWithOperator: "filterStartsWithOperator", filterContainsOperator: "filterContainsOperator", filterNotContainsOperator: "filterNotContainsOperator", filterEndsWithOperator: "filterEndsWithOperator", filterGteOperator: "filterGteOperator", filterGtOperator: "filterGtOperator", filterLteOperator: "filterLteOperator", filterLtOperator: "filterLtOperator", filterIsTrue: "filterIsTrue", filterIsFalse: "filterIsFalse", filterBooleanAll: "filterBooleanAll", adaptiveFilterOperatorsTitle: "adaptiveFilterOperatorsTitle", filterAfterOrEqualOperator: "filterAfterOrEqualOperator", filterAfterOperator: "filterAfterOperator", filterBeforeOperator: "filterBeforeOperator", filterBeforeOrEqualOperator: "filterBeforeOrEqualOperator", filterFilterButton: "filterFilterButton", filterClearButton: "filterClearButton", adaptiveCloseButtonTitle: "adaptiveCloseButtonTitle", adaptiveBackButtonTitle: "adaptiveBackButtonTitle", filterAndLogic: "filterAndLogic", filterOrLogic: "filterOrLogic", filterToolbarToolText: "filterToolbarToolText", loading: "loading", gridLabel: "gridLabel", columnMenu: "columnMenu", setColumnPosition: "setColumnPosition", columns: "columns", columnsSubtitle: "columnsSubtitle", adaptiveFilterTitle: "adaptiveFilterTitle", adaptiveSortTitle: "adaptiveSortTitle", adaptiveGroupTitle: "adaptiveGroupTitle", filterClearAllButton: "filterClearAllButton", groupClearButton: "groupClearButton", sortClearButton: "sortClearButton", sortDoneButton: "sortDoneButton", groupDoneButton: "groupDoneButton", lock: "lock", unlock: "unlock", stick: "stick", unstick: "unstick", sortable: "sortable", sortAscending: "sortAscending", sortDescending: "sortDescending", autosizeThisColumn: "autosizeThisColumn", autosizeAllColumns: "autosizeAllColumns", sortedAscending: "sortedAscending", sortedDescending: "sortedDescending", sortedDefault: "sortedDefault", sortToolbarToolText: "sortToolbarToolText", columnsApply: "columnsApply", columnsReset: "columnsReset", detailExpand: "detailExpand", detailCollapse: "detailCollapse", filterDateToday: "filterDateToday", filterDateToggle: "filterDateToggle", filterNumericDecrement: "filterNumericDecrement", filterNumericIncrement: "filterNumericIncrement", selectionCheckboxLabel: "selectionCheckboxLabel", selectAllCheckboxLabel: "selectAllCheckboxLabel", groupCollapse: "groupCollapse", groupExpand: "groupExpand", topToolbarLabel: "topToolbarLabel", bottomToolbarLabel: "bottomToolbarLabel", editToolbarToolText: "editToolbarToolText", saveToolbarToolText: "saveToolbarToolText", addToolbarToolText: "addToolbarToolText", cancelToolbarToolText: "cancelToolbarToolText", removeToolbarToolText: "removeToolbarToolText", excelExportToolbarToolText: "excelExportToolbarToolText", pdfExportToolbarToolText: "pdfExportToolbarToolText", groupPanelLabel: "groupPanelLabel", dragRowHandleLabel: "dragRowHandleLabel", columnMenuFilterTabTitle: "columnMenuFilterTabTitle", columnMenuGeneralTabTitle: "columnMenuGeneralTabTitle", columnMenuColumnsTabTitle: "columnMenuColumnsTabTitle", groupChipMenuPrevious: "groupChipMenuPrevious", groupChipMenuNext: "groupChipMenuNext", groupToolbarToolText: "groupToolbarToolText", formValidationErrorText: "formValidationErrorText", removeConfirmationDialogTitle: "removeConfirmationDialogTitle", removeConfirmationDialogContent: "removeConfirmationDialogContent", removeConfirmationDialogConfirmText: "removeConfirmationDialogConfirmText", removeConfirmationDialogRejectText: "removeConfirmationDialogRejectText", externalEditingTitle: "externalEditingTitle", externalEditingAddTitle: "externalEditingAddTitle", externalEditingSaveText: "externalEditingSaveText", externalEditingCancelText: "externalEditingCancelText" }, usesInheritance: true, ngImport: i0 });
|
|
577
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GridMessages, selector: "kendo-grid-messages-base", inputs: { groupPanelEmpty: "groupPanelEmpty", noRecords: "noRecords", pagerLabel: "pagerLabel", pagerFirstPage: "pagerFirstPage", pagerLastPage: "pagerLastPage", pagerPreviousPage: "pagerPreviousPage", pagerNextPage: "pagerNextPage", pagerPage: "pagerPage", pagerItemsPerPage: "pagerItemsPerPage", pagerOf: "pagerOf", pagerItems: "pagerItems", pagerPageNumberInputTitle: "pagerPageNumberInputTitle", pagerInputLabel: "pagerInputLabel", pagerSelectPage: "pagerSelectPage", filter: "filter", filterInputLabel: "filterInputLabel", filterMenuTitle: "filterMenuTitle", filterMenuOperatorsDropDownLabel: "filterMenuOperatorsDropDownLabel", filterMenuLogicDropDownLabel: "filterMenuLogicDropDownLabel", filterCellOperatorLabel: "filterCellOperatorLabel", booleanFilterCellLabel: "booleanFilterCellLabel", aiAssistantApplyButtonText: "aiAssistantApplyButtonText", aiAssistantToolbarToolText: "aiAssistantToolbarToolText", aiAssistantWindowTitle: "aiAssistantWindowTitle", aiAssistantWindowCloseTitle: "aiAssistantWindowCloseTitle", aiAssistantOutputCardTitle: "aiAssistantOutputCardTitle", aiAssistantOutputCardBodyContent: "aiAssistantOutputCardBodyContent", aiAssistantWindowMaximizeTitle: "aiAssistantWindowMaximizeTitle", aiAssistantWindowMinimizeTitle: "aiAssistantWindowMinimizeTitle", aiAssistantWindowRestoreTitle: "aiAssistantWindowRestoreTitle", filterEqOperator: "filterEqOperator", filterNotEqOperator: "filterNotEqOperator", filterIsNullOperator: "filterIsNullOperator", filterIsNotNullOperator: "filterIsNotNullOperator", filterIsEmptyOperator: "filterIsEmptyOperator", filterIsNotEmptyOperator: "filterIsNotEmptyOperator", filterStartsWithOperator: "filterStartsWithOperator", filterContainsOperator: "filterContainsOperator", filterNotContainsOperator: "filterNotContainsOperator", filterEndsWithOperator: "filterEndsWithOperator", filterGteOperator: "filterGteOperator", filterGtOperator: "filterGtOperator", filterLteOperator: "filterLteOperator", filterLtOperator: "filterLtOperator", filterIsTrue: "filterIsTrue", filterIsFalse: "filterIsFalse", filterBooleanAll: "filterBooleanAll", adaptiveFilterOperatorsTitle: "adaptiveFilterOperatorsTitle", filterAfterOrEqualOperator: "filterAfterOrEqualOperator", filterAfterOperator: "filterAfterOperator", filterBeforeOperator: "filterBeforeOperator", filterBeforeOrEqualOperator: "filterBeforeOrEqualOperator", filterFilterButton: "filterFilterButton", filterClearButton: "filterClearButton", adaptiveCloseButtonTitle: "adaptiveCloseButtonTitle", adaptiveBackButtonTitle: "adaptiveBackButtonTitle", filterAndLogic: "filterAndLogic", filterOrLogic: "filterOrLogic", filterToolbarToolText: "filterToolbarToolText", loading: "loading", gridLabel: "gridLabel", columnMenu: "columnMenu", setColumnPosition: "setColumnPosition", columns: "columns", columnsSubtitle: "columnsSubtitle", adaptiveFilterTitle: "adaptiveFilterTitle", adaptiveSortTitle: "adaptiveSortTitle", adaptiveGroupTitle: "adaptiveGroupTitle", filterClearAllButton: "filterClearAllButton", groupClearButton: "groupClearButton", sortClearButton: "sortClearButton", sortDoneButton: "sortDoneButton", groupDoneButton: "groupDoneButton", lock: "lock", unlock: "unlock", stick: "stick", unstick: "unstick", sortable: "sortable", sortAscending: "sortAscending", sortDescending: "sortDescending", autosizeThisColumn: "autosizeThisColumn", autosizeAllColumns: "autosizeAllColumns", sortedAscending: "sortedAscending", sortedDescending: "sortedDescending", sortedDefault: "sortedDefault", sortToolbarToolText: "sortToolbarToolText", columnsApply: "columnsApply", columnsReset: "columnsReset", detailExpand: "detailExpand", detailCollapse: "detailCollapse", filterDateToday: "filterDateToday", filterDateToggle: "filterDateToggle", filterNumericDecrement: "filterNumericDecrement", filterNumericIncrement: "filterNumericIncrement", selectionCheckboxLabel: "selectionCheckboxLabel", selectAllCheckboxLabel: "selectAllCheckboxLabel", groupCollapse: "groupCollapse", groupExpand: "groupExpand", topToolbarLabel: "topToolbarLabel", bottomToolbarLabel: "bottomToolbarLabel", editToolbarToolText: "editToolbarToolText", saveToolbarToolText: "saveToolbarToolText", addToolbarToolText: "addToolbarToolText", cancelToolbarToolText: "cancelToolbarToolText", removeToolbarToolText: "removeToolbarToolText", excelExportToolbarToolText: "excelExportToolbarToolText", pdfExportToolbarToolText: "pdfExportToolbarToolText", groupPanelLabel: "groupPanelLabel", dragRowHandleLabel: "dragRowHandleLabel", columnMenuFilterTabTitle: "columnMenuFilterTabTitle", columnMenuGeneralTabTitle: "columnMenuGeneralTabTitle", columnMenuColumnsTabTitle: "columnMenuColumnsTabTitle", groupChipMenuPrevious: "groupChipMenuPrevious", groupChipMenuNext: "groupChipMenuNext", groupToolbarToolText: "groupToolbarToolText", formValidationErrorText: "formValidationErrorText", removeConfirmationDialogTitle: "removeConfirmationDialogTitle", removeConfirmationDialogContent: "removeConfirmationDialogContent", removeConfirmationDialogConfirmText: "removeConfirmationDialogConfirmText", removeConfirmationDialogRejectText: "removeConfirmationDialogRejectText", externalEditingTitle: "externalEditingTitle", externalEditingAddTitle: "externalEditingAddTitle", externalEditingSaveText: "externalEditingSaveText", externalEditingCancelText: "externalEditingCancelText" }, usesInheritance: true, ngImport: i0 });
|
|
542
578
|
}
|
|
543
579
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridMessages, decorators: [{
|
|
544
580
|
type: Directive,
|
|
@@ -588,6 +624,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
588
624
|
type: Input
|
|
589
625
|
}], booleanFilterCellLabel: [{
|
|
590
626
|
type: Input
|
|
627
|
+
}], aiAssistantApplyButtonText: [{
|
|
628
|
+
type: Input
|
|
629
|
+
}], aiAssistantToolbarToolText: [{
|
|
630
|
+
type: Input
|
|
631
|
+
}], aiAssistantWindowTitle: [{
|
|
632
|
+
type: Input
|
|
633
|
+
}], aiAssistantWindowCloseTitle: [{
|
|
634
|
+
type: Input
|
|
635
|
+
}], aiAssistantOutputCardTitle: [{
|
|
636
|
+
type: Input
|
|
637
|
+
}], aiAssistantOutputCardBodyContent: [{
|
|
638
|
+
type: Input
|
|
639
|
+
}], aiAssistantWindowMaximizeTitle: [{
|
|
640
|
+
type: Input
|
|
641
|
+
}], aiAssistantWindowMinimizeTitle: [{
|
|
642
|
+
type: Input
|
|
643
|
+
}], aiAssistantWindowRestoreTitle: [{
|
|
644
|
+
type: Input
|
|
591
645
|
}], filterEqOperator: [{
|
|
592
646
|
type: Input
|
|
593
647
|
}], filterNotEqOperator: [{
|
|
@@ -15,6 +15,7 @@ const isNavigable = element => !element.disabled && (isButton(element) || isNavi
|
|
|
15
15
|
*/
|
|
16
16
|
export class DefaultFocusableElement {
|
|
17
17
|
renderer;
|
|
18
|
+
ctx;
|
|
18
19
|
get enabled() {
|
|
19
20
|
return this.focusable && !this.focusable.disabled;
|
|
20
21
|
}
|
|
@@ -23,8 +24,9 @@ export class DefaultFocusableElement {
|
|
|
23
24
|
}
|
|
24
25
|
element;
|
|
25
26
|
focusable;
|
|
26
|
-
constructor(host, renderer) {
|
|
27
|
+
constructor(host, renderer, ctx) {
|
|
27
28
|
this.renderer = renderer;
|
|
29
|
+
this.ctx = ctx;
|
|
28
30
|
this.element = host.nativeElement;
|
|
29
31
|
this.focusable = findFocusable(this.element, false) || this.element;
|
|
30
32
|
}
|
|
@@ -32,7 +34,17 @@ export class DefaultFocusableElement {
|
|
|
32
34
|
return this.canFocus() && isNavigable(this.element);
|
|
33
35
|
}
|
|
34
36
|
toggle(active) {
|
|
35
|
-
this.
|
|
37
|
+
if (this.ctx.grid?.isStacked) {
|
|
38
|
+
if (active) {
|
|
39
|
+
this.renderer.setAttribute(this.focusable, 'tabindex', '0');
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
this.renderer.removeAttribute(this.focusable, 'tabindex');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
this.renderer.setAttribute(this.focusable, 'tabindex', active ? '0' : '-1');
|
|
47
|
+
}
|
|
36
48
|
}
|
|
37
49
|
focus() {
|
|
38
50
|
if (this.focusable) {
|
|
@@ -70,7 +70,7 @@ export class FocusableDirective {
|
|
|
70
70
|
}
|
|
71
71
|
ngAfterViewInit() {
|
|
72
72
|
if (!this.element && this.ctx.navigable) {
|
|
73
|
-
this.element = new DefaultFocusableElement(this.hostElement, this.renderer);
|
|
73
|
+
this.element = new DefaultFocusableElement(this.hostElement, this.renderer, this.ctx);
|
|
74
74
|
}
|
|
75
75
|
if (this.group && this.element) {
|
|
76
76
|
this.toggle(this.group.isActive);
|
|
@@ -13,7 +13,7 @@ export class NavigationCursor {
|
|
|
13
13
|
set metadata(value) {
|
|
14
14
|
this._metadata = value;
|
|
15
15
|
if (isPresent(value)) {
|
|
16
|
-
const newActiveCol = value.hasDetailTemplate ? 1 : 0;
|
|
16
|
+
const newActiveCol = value.hasDetailTemplate && !this.metadata.isStacked ? 1 : 0;
|
|
17
17
|
const shouldChange = this.activeRow < value.headerRows && this.activeCol === 0;
|
|
18
18
|
if (shouldChange && newActiveCol !== this.activeCol) {
|
|
19
19
|
this.activeCol = newActiveCol;
|
|
@@ -133,6 +133,9 @@ export class NavigationCursor {
|
|
|
133
133
|
(this.metadata.hasDetailTemplate && (!row || !row.groupItem) ? 1 : 0);
|
|
134
134
|
}
|
|
135
135
|
offsetCol(offset) {
|
|
136
|
+
if (this.metadata.isStacked) {
|
|
137
|
+
return false;
|
|
138
|
+
}
|
|
136
139
|
const prevRow = this.model.findRow(this.virtualRow);
|
|
137
140
|
const lastIndex = this.lastCellIndex(prevRow);
|
|
138
141
|
const virtualCol = this.virtualCol;
|
|
@@ -212,6 +215,9 @@ export class NavigationCursor {
|
|
|
212
215
|
if (!cell && (this.metadata.virtualColumns || this.metadata.hasDetailTemplate)) {
|
|
213
216
|
return this.activate(this.virtualRow + offset, this.virtualCol);
|
|
214
217
|
}
|
|
218
|
+
if (!cell) {
|
|
219
|
+
return false;
|
|
220
|
+
}
|
|
215
221
|
this.virtualRow = cell.rowIndex;
|
|
216
222
|
return this.activate(this.virtualRow, cell.colIndex);
|
|
217
223
|
}
|
|
@@ -14,11 +14,12 @@ export class NavigationMetadata {
|
|
|
14
14
|
gridElement;
|
|
15
15
|
virtualColumns;
|
|
16
16
|
columns;
|
|
17
|
+
isStacked;
|
|
17
18
|
get maxLogicalRowIndex() {
|
|
18
19
|
const dataRows = this.hasDetailTemplate ? this.dataRows * 2 : this.dataRows;
|
|
19
20
|
return this.headerRows + dataRows - 1;
|
|
20
21
|
}
|
|
21
|
-
constructor(dataRows, headerRows, isVirtual, hasPager, hasDetailTemplate, gridElement, virtualColumns, columns) {
|
|
22
|
+
constructor(dataRows, headerRows, isVirtual, hasPager, hasDetailTemplate, gridElement, virtualColumns, columns, isStacked) {
|
|
22
23
|
this.dataRows = dataRows;
|
|
23
24
|
this.headerRows = headerRows;
|
|
24
25
|
this.isVirtual = isVirtual;
|
|
@@ -27,5 +28,6 @@ export class NavigationMetadata {
|
|
|
27
28
|
this.gridElement = gridElement;
|
|
28
29
|
this.virtualColumns = virtualColumns;
|
|
29
30
|
this.columns = columns;
|
|
31
|
+
this.isStacked = isStacked;
|
|
30
32
|
}
|
|
31
33
|
}
|
|
@@ -11,7 +11,7 @@ import { GridFocusableElement } from './grid-focusable-element';
|
|
|
11
11
|
import { NavigationCursor } from './navigation-cursor';
|
|
12
12
|
import { NavigationModel } from './navigation-model';
|
|
13
13
|
import { DomEventsService } from '../common/dom-events.service';
|
|
14
|
-
import { isDocumentAvailable, isPresent, Keys } from '@progress/kendo-angular-common';
|
|
14
|
+
import { hasClasses, isDocumentAvailable, isPresent, Keys } from '@progress/kendo-angular-common';
|
|
15
15
|
import { EditService } from '../editing/edit.service';
|
|
16
16
|
import { GroupsService } from '../grouping/groups.service';
|
|
17
17
|
import { PagerContextService } from '@progress/kendo-angular-pager';
|
|
@@ -212,7 +212,12 @@ export class NavigationService {
|
|
|
212
212
|
// Closing the editor will not always trigger focusout in Firefox.
|
|
213
213
|
// To get around this, we ensure that the cell is closed after editing.
|
|
214
214
|
this.editService.changes.pipe(filter(e => e.action !== 'edit' && this.mode === 2 /* NavigationMode.Content */), filter((e) => e.action === 'cellClose' && !e.prevented), switchMap(onStable))
|
|
215
|
-
.subscribe(() =>
|
|
215
|
+
.subscribe((e) => {
|
|
216
|
+
const isInStackedCell = closest(e.originalEvent?.target, (el) => hasClasses(el, 'k-grid-stack-content'));
|
|
217
|
+
if (!isInStackedCell) {
|
|
218
|
+
this.leaveCell();
|
|
219
|
+
}
|
|
220
|
+
}));
|
|
216
221
|
this.subs.add(this.pagerContextService.pageChange
|
|
217
222
|
.subscribe(() => this.cursor.reset(0, 0)));
|
|
218
223
|
this.subs.add(this.domEvents.keydown
|
|
@@ -394,7 +399,7 @@ export class NavigationService {
|
|
|
394
399
|
success = fwd ? this.cursor.moveDown(1) : this.cursor.moveUp(1);
|
|
395
400
|
if (success) {
|
|
396
401
|
const row = this.cursor.row;
|
|
397
|
-
const colIdx = fwd ? 0 : this.cursor.lastCellIndex(row);
|
|
402
|
+
const colIdx = fwd || this.isStackedMode ? 0 : this.cursor.lastCellIndex(row);
|
|
398
403
|
this.cursor.reset(row.index, colIdx);
|
|
399
404
|
}
|
|
400
405
|
}
|
|
@@ -412,6 +417,12 @@ export class NavigationService {
|
|
|
412
417
|
if (!cell) {
|
|
413
418
|
return;
|
|
414
419
|
}
|
|
420
|
+
if (this.tableCellEntered && this.isStackedMode) {
|
|
421
|
+
this.stackedCellEntered = true;
|
|
422
|
+
}
|
|
423
|
+
else {
|
|
424
|
+
this.tableCellEntered = true;
|
|
425
|
+
}
|
|
415
426
|
const group = cell.focusGroup;
|
|
416
427
|
const focusable = group && group.canFocus();
|
|
417
428
|
this.mode = focusable ? 2 /* NavigationMode.Content */ : 1 /* NavigationMode.Cursor */;
|
|
@@ -419,6 +430,9 @@ export class NavigationService {
|
|
|
419
430
|
if (focusable) {
|
|
420
431
|
this.activateRow();
|
|
421
432
|
group.focus();
|
|
433
|
+
if (this.isStackedMode && this.stackedFocusedCellIndex === -1) {
|
|
434
|
+
this.stackedFocusedCellIndex = 0;
|
|
435
|
+
}
|
|
422
436
|
}
|
|
423
437
|
}
|
|
424
438
|
leaveCell() {
|
|
@@ -426,11 +440,22 @@ export class NavigationService {
|
|
|
426
440
|
if (!cell) {
|
|
427
441
|
return;
|
|
428
442
|
}
|
|
443
|
+
if (this.tableCellEntered) {
|
|
444
|
+
if (this.stackedCellEntered) {
|
|
445
|
+
this.stackedCellEntered = false;
|
|
446
|
+
}
|
|
447
|
+
else {
|
|
448
|
+
this.tableCellEntered = false;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
429
451
|
const group = cell.focusGroup;
|
|
430
452
|
const focusable = group && group.canFocus();
|
|
431
453
|
if (!focusable) {
|
|
432
454
|
this.deactivateElements();
|
|
433
455
|
}
|
|
456
|
+
if (this.isStackedMode && this.stackedFocusedCellIndex > -1) {
|
|
457
|
+
this.stackedFocusedCellIndex = -1;
|
|
458
|
+
}
|
|
434
459
|
this.mode = 1 /* NavigationMode.Cursor */;
|
|
435
460
|
this.cursor.announce();
|
|
436
461
|
}
|
|
@@ -445,11 +470,11 @@ export class NavigationService {
|
|
|
445
470
|
.forEach(cell => cell.focusGroup && cell.focusGroup.activate());
|
|
446
471
|
}
|
|
447
472
|
moveCursorFwd() {
|
|
448
|
-
this.lastCellRowIndex = this.activeCell
|
|
473
|
+
this.lastCellRowIndex = this.activeCell?.rowIndex;
|
|
449
474
|
return this.ctx.localization.rtl ? this.cursor.moveLeft() : this.cursor.moveRight();
|
|
450
475
|
}
|
|
451
476
|
moveCursorBwd() {
|
|
452
|
-
this.lastCellRowIndex = this.activeCell
|
|
477
|
+
this.lastCellRowIndex = this.activeCell?.rowIndex;
|
|
453
478
|
return this.ctx.localization.rtl ? this.cursor.moveRight() : this.cursor.moveLeft();
|
|
454
479
|
}
|
|
455
480
|
onCursorKeydown(args) {
|
|
@@ -589,6 +614,15 @@ export class NavigationService {
|
|
|
589
614
|
break;
|
|
590
615
|
case Keys.Enter:
|
|
591
616
|
case Keys.F2: {
|
|
617
|
+
if (this.stackedCellEntered) {
|
|
618
|
+
if (args.keyCode === Keys.F2 && row.dataRowIndex > -1) {
|
|
619
|
+
this.zone.run(() => {
|
|
620
|
+
this.editService.beginEdit(row.dataRowIndex);
|
|
621
|
+
});
|
|
622
|
+
this.enterCell();
|
|
623
|
+
}
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
592
626
|
const groupItem = row.groupItem;
|
|
593
627
|
if (groupItem) {
|
|
594
628
|
this.zone.run(() => this.groupsService.toggleRow(groupItem));
|
|
@@ -597,6 +631,11 @@ export class NavigationService {
|
|
|
597
631
|
this.zone.run(() => this.detailsService.toggleRow(row.dataRowIndex, row.dataItem));
|
|
598
632
|
}
|
|
599
633
|
else {
|
|
634
|
+
if (args.keyCode === Keys.F2 && row.dataRowIndex > -1) {
|
|
635
|
+
this.zone.run(() => {
|
|
636
|
+
this.editService.beginEdit(row.dataRowIndex);
|
|
637
|
+
});
|
|
638
|
+
}
|
|
600
639
|
this.enterCell();
|
|
601
640
|
if (!this.cursor.cell.focusGroup.isNavigable()) {
|
|
602
641
|
preventDefault = true;
|
|
@@ -604,6 +643,17 @@ export class NavigationService {
|
|
|
604
643
|
}
|
|
605
644
|
break;
|
|
606
645
|
}
|
|
646
|
+
case Keys.Backspace:
|
|
647
|
+
case Keys.Delete:
|
|
648
|
+
if (this.activeRow && this.activeRow.dataRowIndex >= 0 && this.activeRow.dataItem) {
|
|
649
|
+
if (!row.groupItem && !this.cursor.cell.detailExpandCell) {
|
|
650
|
+
this.zone.run(() => {
|
|
651
|
+
this.editService.remove(this.activeRow.dataRowIndex);
|
|
652
|
+
});
|
|
653
|
+
preventDefault = true;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
break;
|
|
607
657
|
default:
|
|
608
658
|
if (!args.ctrlKey && !args.altKey && isPrintableCharacter(args.key)) {
|
|
609
659
|
this.enterCell();
|
|
@@ -627,6 +677,13 @@ export class NavigationService {
|
|
|
627
677
|
}
|
|
628
678
|
const confirm = !args.defaultPrevented && args.keyCode === Keys.Enter && isTextInput(args.target);
|
|
629
679
|
if (args.keyCode === Keys.Escape || args.keyCode === Keys.F2 || confirm) {
|
|
680
|
+
if (this.tableCellEntered && args.keyCode === Keys.F2 && this.activeRow.dataRowIndex > -1) {
|
|
681
|
+
this.zone.run(() => {
|
|
682
|
+
this.editService.beginEdit(this.activeRow.dataRowIndex);
|
|
683
|
+
});
|
|
684
|
+
this.enterCell();
|
|
685
|
+
return;
|
|
686
|
+
}
|
|
630
687
|
this.leaveCell();
|
|
631
688
|
this.cursor.reset();
|
|
632
689
|
args.stopPropagation();
|
|
@@ -695,6 +752,12 @@ export class NavigationService {
|
|
|
695
752
|
this.cursor.announce();
|
|
696
753
|
}
|
|
697
754
|
onKeydown(args) {
|
|
755
|
+
if (this.isStackedMode) {
|
|
756
|
+
this.handleStackedKeydown(args);
|
|
757
|
+
if (args.defaultPrevented) {
|
|
758
|
+
return;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
698
761
|
if (this.mode === 1 /* NavigationMode.Cursor */) {
|
|
699
762
|
this.onCursorKeydown(args);
|
|
700
763
|
}
|
|
@@ -783,6 +846,74 @@ export class NavigationService {
|
|
|
783
846
|
const offset = direction === 'Up' ? Math.abs(this.lastCellRowIndex - this.activeRowIndex) : (this.activeRowIndex + cellRowspan - this.lastCellRowIndex - 1);
|
|
784
847
|
return offset;
|
|
785
848
|
}
|
|
849
|
+
get isStackedMode() {
|
|
850
|
+
return this.ctx?.grid?.isStacked;
|
|
851
|
+
}
|
|
852
|
+
handleStackedKeydown(args) {
|
|
853
|
+
const target = args.target;
|
|
854
|
+
const stackedCell = closest(target, (el) => hasClasses(el, 'k-grid-stack-cell'));
|
|
855
|
+
const tableCell = closest(target, (el) => hasClasses(el, 'k-table-td'));
|
|
856
|
+
const isInStackedCell = closest(target, (el) => hasClasses(el, 'k-grid-stack-content'));
|
|
857
|
+
if (!stackedCell || !tableCell) {
|
|
858
|
+
return;
|
|
859
|
+
}
|
|
860
|
+
if (args.keyCode === Keys.Tab) {
|
|
861
|
+
this.handleStackedTabNavigation(args);
|
|
862
|
+
}
|
|
863
|
+
else if (args.keyCode === Keys.Backspace || args.keyCode === Keys.Delete) {
|
|
864
|
+
if (this.activeRow && this.activeRow.dataRowIndex >= 0 && this.activeRow.dataItem) {
|
|
865
|
+
const row = this.cursor.row;
|
|
866
|
+
if (!row.groupItem && !this.cursor.cell.detailExpandCell) {
|
|
867
|
+
this.zone.run(() => {
|
|
868
|
+
this.editService.remove(this.activeRow.dataRowIndex);
|
|
869
|
+
});
|
|
870
|
+
args.preventDefault();
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
else if (isInStackedCell && (args.keyCode === Keys.Enter || args.keyCode === Keys.Escape)) {
|
|
875
|
+
this.editService.closeCell(args);
|
|
876
|
+
this.activeCell.focusGroup.activate();
|
|
877
|
+
this.activeCell.focusGroup.focusableChildren[this.stackedFocusedCellIndex]?.focus();
|
|
878
|
+
args.preventDefault();
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
stackedFocusedCellIndex = -1;
|
|
882
|
+
tableCellEntered = false;
|
|
883
|
+
stackedCellEntered = false;
|
|
884
|
+
handleStackedTabNavigation(args) {
|
|
885
|
+
if (!isPresent(this.activeCell.focusGroup)) {
|
|
886
|
+
return;
|
|
887
|
+
}
|
|
888
|
+
if (this.stackedFocusedCellIndex === -1) {
|
|
889
|
+
return;
|
|
890
|
+
}
|
|
891
|
+
const stackedCells = this.activeCell.focusGroup.focusableChildren;
|
|
892
|
+
let nextIndex;
|
|
893
|
+
if (args.shiftKey) {
|
|
894
|
+
nextIndex = this.stackedFocusedCellIndex - 1;
|
|
895
|
+
if (nextIndex < 0) {
|
|
896
|
+
nextIndex = stackedCells.length - 1;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
else {
|
|
900
|
+
nextIndex = this.stackedFocusedCellIndex + 1;
|
|
901
|
+
if (nextIndex >= stackedCells.length) {
|
|
902
|
+
nextIndex = 0;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
let nextStackedCell = stackedCells[nextIndex];
|
|
906
|
+
if (nextStackedCell) {
|
|
907
|
+
if (nextStackedCell.hasFocus() || (isDocumentAvailable() && document.activeElement === nextStackedCell.hostElement.nativeElement)) {
|
|
908
|
+
// next cell is already focused (as a focusable child of the previous one), skip to the next one
|
|
909
|
+
nextIndex = args.shiftKey ? this.stackedFocusedCellIndex - 2 : this.stackedFocusedCellIndex + 2;
|
|
910
|
+
nextStackedCell = stackedCells[nextIndex];
|
|
911
|
+
}
|
|
912
|
+
nextStackedCell.focus();
|
|
913
|
+
this.stackedFocusedCellIndex = nextIndex;
|
|
914
|
+
args.preventDefault();
|
|
915
|
+
}
|
|
916
|
+
}
|
|
786
917
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationService, deps: [{ token: i0.NgZone }, { token: i1.DomEventsService }, { token: i2.PagerContextService }, { token: i3.ScrollRequestService }, { token: i4.GroupsService }, { token: i5.DetailsService }, { token: i6.FocusRoot }, { token: i7.EditService }, { token: i0.ChangeDetectorRef }, { token: i8.ContextService }, { token: i9.ColumnResizingService }, { token: i10.FocusableDirective, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
787
918
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationService });
|
|
788
919
|
}
|
|
@@ -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.3.0-develop.
|
|
13
|
+
publishDate: 1754574222,
|
|
14
|
+
version: '19.3.0-develop.30',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -80,11 +80,14 @@ const createTable = (colGroups, headers, bodies, footers, size) => {
|
|
|
80
80
|
for (let idx = 1; idx < colGroups.length; idx++) {
|
|
81
81
|
appendNodes(colGroup, colGroups[idx].querySelectorAll('col'));
|
|
82
82
|
}
|
|
83
|
-
const header = createTableElement(headers);
|
|
84
83
|
const body = createTableElement(bodies);
|
|
85
|
-
|
|
84
|
+
let header;
|
|
85
|
+
if (headers.length > 0) {
|
|
86
|
+
header = createTableElement(headers);
|
|
87
|
+
setFirstCellClass(header, headers);
|
|
88
|
+
}
|
|
86
89
|
table.appendChild(colGroup);
|
|
87
|
-
table.appendChild(header);
|
|
90
|
+
header && table.appendChild(header);
|
|
88
91
|
table.appendChild(body);
|
|
89
92
|
if (footers.length) {
|
|
90
93
|
const footer = createTableElement(footers);
|
|
@@ -101,17 +104,23 @@ export const exportElement = (wrapper, size) => {
|
|
|
101
104
|
let result;
|
|
102
105
|
if (content) {
|
|
103
106
|
const colGroups = [content.querySelector('colgroup')];
|
|
104
|
-
const headers = [query.header().querySelector('thead')];
|
|
105
107
|
const bodies = [content.querySelector('tbody')];
|
|
108
|
+
const header = query.header();
|
|
106
109
|
const footer = query.footer();
|
|
110
|
+
const headers = [];
|
|
107
111
|
const footers = [];
|
|
112
|
+
if (header) {
|
|
113
|
+
headers.push(header.querySelector('thead'));
|
|
114
|
+
}
|
|
108
115
|
if (footer) {
|
|
109
116
|
footers.push(footer.querySelector('tfoot'));
|
|
110
117
|
}
|
|
111
118
|
const lockedContent = query.content(true);
|
|
112
119
|
if (lockedContent) {
|
|
120
|
+
if (headers.length > 0) {
|
|
121
|
+
headers.unshift(query.header(true).querySelector('thead'));
|
|
122
|
+
}
|
|
113
123
|
colGroups.unshift(lockedContent.querySelector('colgroup'));
|
|
114
|
-
headers.unshift(query.header(true).querySelector('thead'));
|
|
115
124
|
bodies.unshift(lockedContent.querySelector('tbody'));
|
|
116
125
|
if (footer) {
|
|
117
126
|
footers.unshift(query.footer(true).querySelector('tfoot'));
|
|
@@ -164,7 +164,9 @@ export class PDFComponent extends PDFExportComponent {
|
|
|
164
164
|
const overlayContent = overlayQuery.content();
|
|
165
165
|
overlayContent.scrollTop = content.scrollTop;
|
|
166
166
|
overlayContent.scrollLeft = content.scrollLeft;
|
|
167
|
-
|
|
167
|
+
if (!this.ctx?.grid?.isStacked) {
|
|
168
|
+
overlayQuery.header().scrollLeft = query.header().scrollLeft;
|
|
169
|
+
}
|
|
168
170
|
const footer = query.footer();
|
|
169
171
|
if (footer) {
|
|
170
172
|
overlayQuery.footer().scrollLeft = footer.scrollLeft;
|