@progress/kendo-angular-grid 19.3.0-develop.4 → 19.3.0-develop.41
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 +21 -0
- package/common/grid-col-size.d.ts +13 -0
- package/common/provider.service.d.ts +2 -0
- package/common/toolbar-tool-base.directive.d.ts +1 -0
- package/data/data-mapping.service.d.ts +3 -1
- package/directives.d.ts +7 -4
- package/editing/toolbar-editing-tool-base.directive.d.ts +3 -2
- package/editing-directives/editing-directive-base.d.ts +3 -0
- package/editing-directives/in-cell-editing.directive.d.ts +1 -1
- package/editing-directives/reactive-editing.directive.d.ts +1 -1
- package/editing-directives/template-editing.directive.d.ts +1 -1
- package/esm2022/adaptiveness/adaptive-renderer.component.mjs +1 -2
- package/esm2022/column-menu/column-chooser.component.mjs +1 -1
- package/esm2022/column-menu/column-list.component.mjs +8 -7
- package/esm2022/column-menu/column-menu-item.directive.mjs +1 -1
- 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/grid-col-size.mjs +5 -0
- package/esm2022/common/provider.service.mjs +1 -0
- package/esm2022/common/toolbar-tool-base.directive.mjs +6 -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/toolbar-editing-tool-base.directive.mjs +5 -0
- package/esm2022/editing-directives/editing-directive-base.mjs +17 -2
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +5 -3
- package/esm2022/editing-directives/reactive-editing.directive.mjs +1 -1
- package/esm2022/editing-directives/template-editing.directive.mjs +1 -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 +3 -4
- 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-dropdownlist.directive.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 +191 -39
- package/esm2022/grid.module.mjs +103 -100
- package/esm2022/grouping/group-header.component.mjs +39 -4
- package/esm2022/grouping/group-panel.component.mjs +13 -8
- 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/navigation-cursor.mjs +7 -1
- package/esm2022/navigation/navigation-metadata.mjs +3 -1
- package/esm2022/navigation/navigation.service.mjs +162 -16
- 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 +21 -7
- package/esm2022/rendering/details-expand.directive.mjs +5 -2
- package/esm2022/rendering/footer/footer.component.mjs +117 -54
- package/esm2022/rendering/header/header.component.mjs +13 -9
- package/esm2022/rendering/list.component.mjs +19 -12
- package/esm2022/rendering/loading-template.directive.mjs +1 -0
- package/esm2022/rendering/table-body.component.mjs +394 -174
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +305 -0
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-tool.directive.mjs +269 -0
- package/esm2022/rendering/toolbar/tools/ai-assistant/utils.mjs +74 -0
- package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +0 -3
- package/esm2022/rendering/toolbar/tools/group-toolbar-tool.component.mjs +11 -9
- 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/selection/selection-checkbox.directive.mjs +1 -1
- package/esm2022/selection/selection.directive.mjs +1 -1
- package/esm2022/utils.mjs +0 -4
- package/fesm2022/progress-kendo-angular-grid.mjs +2568 -642
- 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/grouping/group-panel.component.d.ts +1 -1
- package/highlight/highlight-item.d.ts +17 -0
- package/highlight/highlight.directive.d.ts +56 -0
- package/index.d.ts +8 -1
- package/localization/messages.d.ts +39 -3
- 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/details-expand.directive.d.ts +5 -2
- 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/loading-template.directive.d.ts +1 -0
- package/rendering/table-body.component.d.ts +3 -1
- package/rendering/toolbar/tools/ai-assistant/ai-assistant.component.d.ts +49 -0
- package/rendering/toolbar/tools/ai-assistant/ai-tool.directive.d.ts +115 -0
- package/rendering/toolbar/tools/ai-assistant/utils.d.ts +124 -0
- package/rendering/toolbar/tools/column-chooser-tool.directive.d.ts +0 -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
- package/selection/pair-set.d.ts +36 -8
- package/selection/selection.directive.d.ts +1 -1
- package/utils.d.ts +0 -4
|
@@ -35,6 +35,11 @@ export class ToolbarEditingToolBase extends ToolbarToolBase {
|
|
|
35
35
|
this.editService = editService;
|
|
36
36
|
this.selection = selection;
|
|
37
37
|
}
|
|
38
|
+
ngAfterViewInit() {
|
|
39
|
+
super.ngAfterViewInit();
|
|
40
|
+
const commandText = this.ctx.localization.get(`${this.commandName}ToolbarToolText`);
|
|
41
|
+
this.buttonElement?.setAttribute('title', commandText);
|
|
42
|
+
}
|
|
38
43
|
ngDoCheck() {
|
|
39
44
|
if (!isPresent(this.editService)) {
|
|
40
45
|
return;
|
|
@@ -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
|
}
|
|
@@ -15,7 +15,7 @@ import * as i2 from "../editing/local-data-changes.service";
|
|
|
15
15
|
* Represent the directive that manages in-cell editing operations in the Grid when using Reactive Forms ([see example]({% slug editing_directives_grid %}#toc-in-cell-editing)).
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
|
-
* ```
|
|
18
|
+
* ```html
|
|
19
19
|
* <kendo-grid [data]="data" kendoGridInCellEditing></kendo-grid>
|
|
20
20
|
* ```
|
|
21
21
|
* @remarks
|
|
@@ -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
|
}
|
|
@@ -73,12 +74,13 @@ export class InCellEditingDirective extends EditingDirectiveBase {
|
|
|
73
74
|
args.preventDefault();
|
|
74
75
|
}
|
|
75
76
|
else if (formGroup.dirty) {
|
|
76
|
-
if (args.originalEvent && args.originalEvent.
|
|
77
|
+
if (args.originalEvent && args.originalEvent.code === Keys.Escape) {
|
|
77
78
|
return;
|
|
78
79
|
}
|
|
79
80
|
this.editService.assignValues(dataItem, formGroup.value);
|
|
80
81
|
this.editService.update(dataItem);
|
|
81
82
|
}
|
|
83
|
+
this.cdr.markForCheck();
|
|
82
84
|
}
|
|
83
85
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InCellEditingDirective, deps: [{ token: i1.GridComponent }, { token: i2.LocalDataChangesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
84
86
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: InCellEditingDirective, isStandalone: true, selector: "[kendoGridInCellEditing]", inputs: { createFormGroup: ["kendoGridInCellEditing", "createFormGroup"] }, usesInheritance: true, ngImport: i0 });
|
|
@@ -14,7 +14,7 @@ import * as i2 from "../editing/local-data-changes.service";
|
|
|
14
14
|
* Represents the directive that manages editing operations in the Grid when using Reactive Forms ([see example](slug:editing_directives_grid#toc-reactive-editing-directive)).
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
|
-
* ```
|
|
17
|
+
* ```html
|
|
18
18
|
* <kendo-grid [data]="data" kendoGridReactiveEditing></kendo-grid>
|
|
19
19
|
* ```
|
|
20
20
|
* @remarks
|
|
@@ -13,7 +13,7 @@ import * as i2 from "../editing/local-data-changes.service";
|
|
|
13
13
|
* Represents the directive that manages editing operations in the Grid when using Template-Driven Angular Forms ([see example]({% slug editing_directives_grid %}#toc-template-editing-directive)).
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
|
-
* ```
|
|
16
|
+
* ```html
|
|
17
17
|
* <kendo-grid [data]="data" kendoGridTemplateEditing></kendo-grid>
|
|
18
18
|
* ```
|
|
19
19
|
* @remarks
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
import { Component, ChangeDetectorRef } from '@angular/core';
|
|
6
6
|
import { FilterService } from '../filter.service';
|
|
7
7
|
import { BooleanFilterComponent } from '../boolean-filter.component';
|
|
8
|
-
import { replaceMessagePlaceholder } from '../../utils';
|
|
9
8
|
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
10
9
|
import { ContextService } from '../../common/provider.service';
|
|
11
10
|
import { FocusableDirective } from '../../navigation/focusable.directive';
|
|
12
11
|
import { FilterInputDirective } from '../filter-input.directive';
|
|
13
12
|
import { FilterCellWrapperComponent } from './filter-cell-wrapper.component';
|
|
14
13
|
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
14
|
+
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
16
|
import * as i1 from "../filter.service";
|
|
17
17
|
import * as i2 from "../../common/provider.service";
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
import { Component, Input } from '@angular/core';
|
|
6
6
|
import { FilterService } from '../filter.service';
|
|
7
7
|
import { DateFilterComponent } from '../date-filter.component';
|
|
8
|
-
import { replaceMessagePlaceholder } from '../../utils';
|
|
9
8
|
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
10
9
|
import { ContextService } from '../../common/provider.service';
|
|
11
10
|
import { FocusableDirective } from '../../navigation/focusable.directive';
|
|
12
11
|
import { FilterInputDirective } from '../filter-input.directive';
|
|
13
12
|
import { FilterCellWrapperComponent } from './filter-cell-wrapper.component';
|
|
14
13
|
import { DatePickerComponent, DatePickerCustomMessagesComponent } from '@progress/kendo-angular-dateinputs';
|
|
14
|
+
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
16
|
import * as i1 from "../filter.service";
|
|
17
17
|
import * as i2 from "../../common/provider.service";
|
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, Output, EventEmitter, HostBinding, ViewChild } from '@angular/core';
|
|
6
6
|
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
7
|
-
import { Keys } from '@progress/kendo-angular-common';
|
|
7
|
+
import { Keys, replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
8
8
|
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
9
9
|
import { filterClearIcon, filterIcon } from '@progress/kendo-svg-icons';
|
|
10
10
|
import { ContextService } from '../../common/provider.service';
|
|
11
|
-
import { replaceMessagePlaceholder } from '../../utils';
|
|
12
11
|
import { ColumnComponent } from '../../columns/column.component';
|
|
13
12
|
import { FocusableDirective } from '../../navigation/focusable.directive';
|
|
14
13
|
import { NgIf } from '@angular/common';
|
|
@@ -115,7 +114,7 @@ export class FilterCellOperatorsComponent {
|
|
|
115
114
|
* @hidden
|
|
116
115
|
*/
|
|
117
116
|
clearKeydown(args) {
|
|
118
|
-
if (args.
|
|
117
|
+
if (args.code === Keys.Enter || args.code === Keys.NumpadEnter || args.code === Keys.Space) {
|
|
119
118
|
this.clear.emit();
|
|
120
119
|
}
|
|
121
120
|
}
|
|
@@ -126,7 +125,7 @@ export class FilterCellOperatorsComponent {
|
|
|
126
125
|
if (args.defaultPrevented) {
|
|
127
126
|
return;
|
|
128
127
|
}
|
|
129
|
-
if (args.
|
|
128
|
+
if ((args.code === Keys.Enter || args.code === Keys.NumpadEnter) && !this.dropdown.isOpen) {
|
|
130
129
|
this.dropdown.toggle(true);
|
|
131
130
|
args.preventDefault();
|
|
132
131
|
}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
import { Component, Input } from '@angular/core';
|
|
6
6
|
import { FilterService } from '../filter.service';
|
|
7
7
|
import { NumericFilterComponent } from '../numeric-filter.component';
|
|
8
|
-
import { replaceMessagePlaceholder } from '../../utils';
|
|
9
8
|
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
10
9
|
import { ContextService } from '../../common/provider.service';
|
|
11
10
|
import { FilterInputDirective } from '../filter-input.directive';
|
|
12
11
|
import { FocusableDirective } from '../../navigation/focusable.directive';
|
|
13
12
|
import { FilterCellWrapperComponent } from './filter-cell-wrapper.component';
|
|
14
13
|
import { NumericTextBoxComponent, NumericTextBoxCustomMessagesComponent } from '@progress/kendo-angular-inputs';
|
|
14
|
+
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
16
|
import * as i1 from "../filter.service";
|
|
17
17
|
import * as i2 from "../../common/provider.service";
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import { Component, Input } from '@angular/core';
|
|
6
6
|
import { FilterService } from '../filter.service';
|
|
7
7
|
import { StringFilterComponent } from "../string-filter.component";
|
|
8
|
-
import { replaceMessagePlaceholder } from '../../utils';
|
|
9
8
|
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
10
9
|
import { ContextService } from '../../common/provider.service';
|
|
11
10
|
import { FormsModule } from '@angular/forms';
|
|
@@ -13,6 +12,7 @@ import { FilterInputDirective } from '../filter-input.directive';
|
|
|
13
12
|
import { FocusableDirective } from '../../navigation/focusable.directive';
|
|
14
13
|
import { FilterCellWrapperComponent } from './filter-cell-wrapper.component';
|
|
15
14
|
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
15
|
+
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
import * as i1 from "../filter.service";
|
|
18
18
|
import * as i2 from "../../common/provider.service";
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
import { ColumnInfoService } from './../common/column-info.service';
|
|
6
6
|
import { Component, Input, HostBinding } from '@angular/core';
|
|
7
7
|
import { DetailTemplateDirective } from '../rendering/details/detail-template.directive';
|
|
8
|
-
import { replaceMessagePlaceholder } from '../utils';
|
|
9
8
|
import { ContextService } from '../common/provider.service';
|
|
10
9
|
import { LogicalCellDirective } from '../navigation/logical-cell.directive';
|
|
11
10
|
import { FilterCellComponent } from './cell/filter-cell.component';
|
|
12
11
|
import { NgFor, NgIf, NgStyle, NgClass } from '@angular/common';
|
|
12
|
+
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
import * as i1 from "../common/provider.service";
|
|
15
15
|
import * as i2 from "./../common/column-info.service";
|
|
@@ -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"
|
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
import { Component, Input, HostBinding, QueryList, ViewChildren } from '@angular/core';
|
|
6
6
|
import { FilterService } from '../filter.service';
|
|
7
7
|
import { BooleanFilterComponent } from '../boolean-filter.component';
|
|
8
|
-
import { guid } from '@progress/kendo-angular-common';
|
|
8
|
+
import { guid, replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
9
9
|
import { BooleanFilterRadioButtonDirective } from './filter-radio-button.directive';
|
|
10
|
-
import { replaceMessagePlaceholder } from '../../utils';
|
|
11
10
|
import { MenuTabbingService } from './menu-tabbing.service';
|
|
12
11
|
import { ContextService } from '../../common/provider.service';
|
|
13
12
|
import { NgFor } from '@angular/common';
|
|
@@ -9,10 +9,10 @@ import { FilterService } from '../filter.service';
|
|
|
9
9
|
import { SinglePopupService } from '../../common/single-popup.service';
|
|
10
10
|
import { filter } from 'rxjs/operators';
|
|
11
11
|
import { DatePickerComponent, DatePickerCustomMessagesComponent } from '@progress/kendo-angular-dateinputs';
|
|
12
|
-
import { replaceMessagePlaceholder } from '../../utils';
|
|
13
12
|
import { ContextService } from '../../common/provider.service';
|
|
14
13
|
import { FilterInputDirective } from '../filter-input.directive';
|
|
15
14
|
import { FilterMenuInputWrapperComponent } from './filter-menu-input-wrapper.component';
|
|
15
|
+
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
import * as i1 from "../../common/single-popup.service";
|
|
18
18
|
import * as i2 from "../../common/provider.service";
|
|
@@ -7,12 +7,12 @@ import { Component, Input, HostBinding } from '@angular/core';
|
|
|
7
7
|
import { FilterService } from '../filter.service';
|
|
8
8
|
import { DateFilterComponent } from '../date-filter.component';
|
|
9
9
|
import { setFilter, logicOperators } from '../base-filter-cell.component';
|
|
10
|
-
import { replaceMessagePlaceholder } from '../../utils';
|
|
11
10
|
import { ContextService } from '../../common/provider.service';
|
|
12
11
|
import { FilterMenuDropDownListDirective } from './filter-menu-dropdownlist.directive';
|
|
13
12
|
import { NgIf } from '@angular/common';
|
|
14
13
|
import { DateFilterMenuInputComponent } from './date-filter-menu-input.component';
|
|
15
14
|
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
15
|
+
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
import * as i1 from "../../common/provider.service";
|
|
18
18
|
/**
|
|
@@ -25,7 +25,7 @@ export class FilterMenuDropDownListDirective {
|
|
|
25
25
|
this.host.wrapper.nativeElement.removeEventListener('keydown', this.keydownHandler);
|
|
26
26
|
}
|
|
27
27
|
keydownHandler = (e) => {
|
|
28
|
-
if (e.
|
|
28
|
+
if (e.code === Keys.Escape && this.host.isOpen) {
|
|
29
29
|
e.stopPropagation();
|
|
30
30
|
this.host.toggle(false);
|
|
31
31
|
}
|
|
@@ -7,11 +7,11 @@ import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
|
7
7
|
import { MenuTabbingService } from './menu-tabbing.service';
|
|
8
8
|
import { FilterService } from '../filter.service';
|
|
9
9
|
import { FilterInputWrapperComponent } from "../filter-input-wrapper.component";
|
|
10
|
-
import { replaceMessagePlaceholder } from '../../utils';
|
|
11
10
|
import { ContextService } from '../../common/provider.service';
|
|
12
11
|
import { FilterMenuDropDownListDirective } from './filter-menu-dropdownlist.directive';
|
|
13
12
|
import { AdaptiveGridService } from '../../common/adaptiveness.service';
|
|
14
13
|
import { Subscription } from 'rxjs';
|
|
14
|
+
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
16
|
import * as i1 from "../../common/provider.service";
|
|
17
17
|
import * as i2 from "../../common/adaptiveness.service";
|
|
@@ -8,13 +8,13 @@ import { FilterService } from "../filter.service";
|
|
|
8
8
|
import { ColumnComponent } from '../../columns/column.component';
|
|
9
9
|
import { SinglePopupService } from '../../common/single-popup.service';
|
|
10
10
|
import { filtersByField } from '../base-filter-cell.component';
|
|
11
|
-
import { replaceMessagePlaceholder } from '../../utils';
|
|
12
11
|
import { filterIcon } from '@progress/kendo-svg-icons';
|
|
13
12
|
import { ContextService } from '../../common/provider.service';
|
|
14
13
|
import { IdService } from '../../common/id.service';
|
|
15
14
|
import { FilterMenuContainerComponent } from './filter-menu-container.component';
|
|
16
15
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
17
16
|
import { AdaptiveGridService } from '../../common/adaptiveness.service';
|
|
17
|
+
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
18
18
|
import * as i0 from "@angular/core";
|
|
19
19
|
import * as i1 from "../filter.service";
|
|
20
20
|
import * as i2 from "../../common/single-popup.service";
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
import { Component, Input } from '@angular/core';
|
|
6
6
|
import { ColumnComponent } from "../../columns/column.component";
|
|
7
7
|
import { FilterService } from '../filter.service';
|
|
8
|
-
import { replaceMessagePlaceholder } from '../../utils';
|
|
9
8
|
import { MenuTabbingService } from './menu-tabbing.service';
|
|
10
9
|
import { ContextService } from '../../common/provider.service';
|
|
11
10
|
import { FilterInputDirective } from '../filter-input.directive';
|
|
12
11
|
import { FilterMenuInputWrapperComponent } from './filter-menu-input-wrapper.component';
|
|
13
12
|
import { NumericTextBoxComponent, NumericTextBoxCustomMessagesComponent } from '@progress/kendo-angular-inputs';
|
|
13
|
+
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
import * as i1 from "../../common/provider.service";
|
|
16
16
|
/**
|
|
@@ -6,13 +6,13 @@ import { Component, Input, HostBinding } from '@angular/core';
|
|
|
6
6
|
import { FilterService } from '../filter.service';
|
|
7
7
|
import { NumericFilterComponent } from '../numeric-filter.component';
|
|
8
8
|
import { setFilter, logicOperators } from '../base-filter-cell.component';
|
|
9
|
-
import { replaceMessagePlaceholder } from '../../utils';
|
|
10
9
|
import { MenuTabbingService } from './menu-tabbing.service';
|
|
11
10
|
import { ContextService } from '../../common/provider.service';
|
|
12
11
|
import { FilterMenuDropDownListDirective } from './filter-menu-dropdownlist.directive';
|
|
13
12
|
import { NgIf } from '@angular/common';
|
|
14
13
|
import { NumericFilterMenuInputComponent } from './numeric-filter-menu-input.component';
|
|
15
14
|
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
15
|
+
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
import * as i1 from "../../common/provider.service";
|
|
18
18
|
/**
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
import { Component, Input } from '@angular/core';
|
|
6
6
|
import { ColumnComponent } from "../../columns/column.component";
|
|
7
7
|
import { FilterService } from '../filter.service';
|
|
8
|
-
import { replaceMessagePlaceholder } from '../../utils';
|
|
9
8
|
import { MenuTabbingService } from './menu-tabbing.service';
|
|
10
9
|
import { ContextService } from '../../common/provider.service';
|
|
11
10
|
import { FilterInputDirective } from '../filter-input.directive';
|
|
12
11
|
import { FormsModule } from '@angular/forms';
|
|
13
12
|
import { FilterMenuInputWrapperComponent } from './filter-menu-input-wrapper.component';
|
|
14
13
|
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
14
|
+
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
16
|
import * as i1 from "../../common/provider.service";
|
|
17
17
|
import * as i2 from "@angular/forms";
|
|
@@ -7,12 +7,12 @@ import { Component, Input, HostBinding } from '@angular/core';
|
|
|
7
7
|
import { StringFilterComponent } from '../string-filter.component';
|
|
8
8
|
import { FilterService } from '../filter.service';
|
|
9
9
|
import { setFilter, logicOperators } from '../base-filter-cell.component';
|
|
10
|
-
import { replaceMessagePlaceholder } from '../../utils';
|
|
11
10
|
import { ContextService } from '../../common/provider.service';
|
|
12
11
|
import { FilterMenuDropDownListDirective } from './filter-menu-dropdownlist.directive';
|
|
13
12
|
import { NgIf } from '@angular/common';
|
|
14
13
|
import { StringFilterMenuInputComponent } from './string-filter-menu-input.component';
|
|
15
14
|
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
15
|
+
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
import * as i1 from "../../common/provider.service";
|
|
18
18
|
/**
|