@progress/kendo-angular-grid 12.2.0-develop.7 → 13.0.0-develop.2
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/column-menu/column-chooser.component.d.ts +4 -4
- package/column-menu/column-menu-autosize-all.component.d.ts +6 -7
- package/column-menu/column-menu-autosize.component.d.ts +1 -3
- package/column-menu/column-menu-chooser.component.d.ts +7 -6
- package/column-menu/column-menu-filter.component.d.ts +7 -6
- package/column-menu/column-menu-lock.component.d.ts +7 -6
- package/column-menu/column-menu-position.component.d.ts +7 -6
- package/column-menu/column-menu-settings.interface.d.ts +5 -0
- package/column-menu/column-menu-sort.component.d.ts +7 -6
- package/column-menu/column-menu-stick.component.d.ts +3 -3
- package/column-menu/column-menu.component.d.ts +39 -5
- package/column-menu/column-menu.module.d.ts +2 -1
- package/column-resizing/column-handle.directive.d.ts +3 -3
- package/common/provider.service.d.ts +3 -1
- package/common/single-popup.service.d.ts +3 -3
- package/editing/add-command.directive.d.ts +2 -2
- package/editing/cancel-command.directive.d.ts +2 -2
- package/editing/edit-command.directive.d.ts +2 -2
- package/editing/remove-command.directive.d.ts +2 -2
- package/editing/save-command.directive.d.ts +2 -2
- package/esm2020/column-menu/column-chooser.component.mjs +17 -17
- package/esm2020/column-menu/column-menu-autosize-all.component.mjs +19 -21
- package/esm2020/column-menu/column-menu-autosize.component.mjs +9 -12
- package/esm2020/column-menu/column-menu-chooser.component.mjs +16 -15
- package/esm2020/column-menu/column-menu-filter.component.mjs +12 -11
- package/esm2020/column-menu/column-menu-lock.component.mjs +11 -10
- package/esm2020/column-menu/column-menu-position.component.mjs +12 -11
- package/esm2020/column-menu/column-menu-sort.component.mjs +14 -13
- package/esm2020/column-menu/column-menu-stick.component.mjs +7 -7
- package/esm2020/column-menu/column-menu.component.mjs +257 -17
- package/esm2020/column-menu/column-menu.module.mjs +4 -3
- package/esm2020/column-resizing/column-handle.directive.mjs +7 -7
- package/esm2020/common/provider.service.mjs +6 -3
- package/esm2020/common/single-popup.service.mjs +8 -8
- package/esm2020/editing/add-command.directive.mjs +6 -6
- package/esm2020/editing/cancel-command.directive.mjs +6 -6
- package/esm2020/editing/edit-command.directive.mjs +6 -6
- package/esm2020/editing/remove-command.directive.mjs +6 -6
- package/esm2020/editing/save-command.directive.mjs +6 -6
- package/esm2020/excel/excel-command.directive.mjs +6 -6
- package/esm2020/excel/excel.component.mjs +7 -7
- package/esm2020/filtering/boolean-filter.component.mjs +13 -13
- package/esm2020/filtering/cell/autocomplete-filter-cell.component.mjs +7 -7
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +7 -7
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +9 -9
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +7 -7
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +10 -10
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +7 -7
- package/esm2020/filtering/date-filter.component.mjs +9 -9
- package/esm2020/filtering/filter-row.component.mjs +7 -7
- package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +10 -8
- package/esm2020/filtering/menu/date-filter-menu-input.component.mjs +8 -8
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +9 -9
- package/esm2020/filtering/menu/filter-menu-container.component.mjs +9 -9
- package/esm2020/filtering/menu/filter-menu-input-wrapper.component.mjs +10 -8
- package/esm2020/filtering/menu/filter-menu.component.mjs +7 -7
- package/esm2020/filtering/menu/menu-tabbing.service.mjs +1 -0
- package/esm2020/filtering/menu/numeric-filter-menu-input.component.mjs +8 -8
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +9 -9
- package/esm2020/filtering/menu/string-filter-menu-input.component.mjs +7 -7
- package/esm2020/filtering/menu/string-filter-menu.component.mjs +9 -9
- package/esm2020/filtering/numeric-filter.component.mjs +9 -9
- package/esm2020/filtering/operators/after-eq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/after-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/before-eq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/before-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/contains-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/ends-with-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/eq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/filter-operator.base.mjs +9 -9
- package/esm2020/filtering/operators/gt-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/gte-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/is-empty-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/is-not-empty-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/is-not-null-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/isnull-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/lt-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/lte-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/neq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/not-contains-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/starts-with-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/string-filter.component.mjs +8 -8
- package/esm2020/grid.component.mjs +18 -0
- package/esm2020/grouping/group-header.component.mjs +7 -7
- package/esm2020/grouping/group-panel.component.mjs +10 -10
- package/esm2020/localization/messages.mjs +7 -1
- package/esm2020/navigation/navigation.service.mjs +8 -8
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-element.component.mjs +8 -8
- package/esm2020/pager/pager-info.component.mjs +6 -6
- package/esm2020/pager/pager-input.component.mjs +6 -6
- package/esm2020/pager/pager-next-buttons.component.mjs +6 -6
- package/esm2020/pager/pager-numeric-buttons.component.mjs +6 -6
- package/esm2020/pager/pager-page-sizes.component.mjs +6 -6
- package/esm2020/pager/pager-prev-buttons.component.mjs +6 -6
- package/esm2020/pager/pager.component.mjs +7 -7
- package/esm2020/pdf/pdf-command.directive.mjs +6 -6
- package/esm2020/rendering/cell.component.mjs +8 -8
- package/esm2020/rendering/common/loading.component.mjs +7 -7
- package/esm2020/rendering/header/header.component.mjs +27 -30
- package/esm2020/rendering/list.component.mjs +7 -7
- package/esm2020/rendering/table-body.component.mjs +11 -11
- package/excel/excel-command.directive.d.ts +2 -2
- package/excel/excel.component.d.ts +3 -3
- package/fesm2015/progress-kendo-angular-grid.mjs +778 -504
- package/fesm2020/progress-kendo-angular-grid.mjs +775 -504
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/filtering/boolean-filter.component.d.ts +3 -3
- package/filtering/cell/autocomplete-filter-cell.component.d.ts +3 -3
- package/filtering/cell/boolean-filter-cell.component.d.ts +2 -2
- package/filtering/cell/date-filter-cell.component.d.ts +3 -3
- package/filtering/cell/filter-cell-operators.component.d.ts +3 -3
- package/filtering/cell/numeric-filter-cell.component.d.ts +4 -4
- package/filtering/cell/string-filter-cell.component.d.ts +2 -2
- package/filtering/date-filter.component.d.ts +3 -3
- package/filtering/filter-row.component.d.ts +3 -3
- package/filtering/menu/boolean-filter-menu.component.d.ts +2 -2
- package/filtering/menu/date-filter-menu-input.component.d.ts +3 -3
- package/filtering/menu/date-filter-menu.component.d.ts +2 -2
- package/filtering/menu/filter-menu-container.component.d.ts +3 -3
- package/filtering/menu/filter-menu-input-wrapper.component.d.ts +3 -3
- package/filtering/menu/filter-menu.component.d.ts +3 -3
- package/filtering/menu/menu-tabbing.service.d.ts +1 -0
- package/filtering/menu/numeric-filter-menu-input.component.d.ts +3 -3
- package/filtering/menu/numeric-filter-menu.component.d.ts +2 -2
- package/filtering/menu/string-filter-menu-input.component.d.ts +3 -3
- package/filtering/menu/string-filter-menu.component.d.ts +2 -2
- package/filtering/numeric-filter.component.d.ts +3 -3
- package/filtering/operators/after-eq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/after-filter-operator.component.d.ts +2 -2
- package/filtering/operators/before-eq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/before-filter-operator.component.d.ts +2 -2
- package/filtering/operators/contains-filter-operator.component.d.ts +2 -2
- package/filtering/operators/ends-with-filter-operator.component.d.ts +2 -2
- package/filtering/operators/eq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/filter-operator.base.d.ts +3 -3
- package/filtering/operators/gt-filter-operator.component.d.ts +2 -2
- package/filtering/operators/gte-filter-operator.component.d.ts +2 -2
- package/filtering/operators/is-empty-filter-operator.component.d.ts +2 -2
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +2 -2
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +2 -2
- package/filtering/operators/isnull-filter-operator.component.d.ts +2 -2
- package/filtering/operators/lt-filter-operator.component.d.ts +2 -2
- package/filtering/operators/lte-filter-operator.component.d.ts +2 -2
- package/filtering/operators/neq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/not-contains-filter-operator.component.d.ts +2 -2
- package/filtering/operators/starts-with-filter-operator.component.d.ts +2 -2
- package/filtering/string-filter.component.d.ts +3 -3
- package/grouping/group-header.component.d.ts +3 -3
- package/grouping/group-panel.component.d.ts +3 -3
- package/localization/messages.d.ts +13 -1
- package/navigation/navigation.service.d.ts +3 -3
- package/package.json +16 -15
- package/pager/pager-element.component.d.ts +3 -3
- package/pager/pager-info.component.d.ts +2 -2
- package/pager/pager-input.component.d.ts +2 -2
- package/pager/pager-next-buttons.component.d.ts +2 -2
- package/pager/pager-numeric-buttons.component.d.ts +2 -2
- package/pager/pager-page-sizes.component.d.ts +2 -2
- package/pager/pager-prev-buttons.component.d.ts +2 -2
- package/pager/pager.component.d.ts +3 -3
- package/pdf/pdf-command.directive.d.ts +2 -2
- package/rendering/cell.component.d.ts +3 -3
- package/rendering/common/loading.component.d.ts +3 -3
- package/rendering/header/header.component.d.ts +1 -3
- package/rendering/list.component.d.ts +3 -3
- package/rendering/table-body.component.d.ts +3 -3
- package/schematics/ngAdd/index.js +5 -3
|
@@ -11,12 +11,12 @@ import { columnsToRender } from "../columns/column-common";
|
|
|
11
11
|
import { isPresent, isNullOrEmptyString, extractFormat } from '../utils';
|
|
12
12
|
import { CELL_CONTEXT } from './common/cell-context';
|
|
13
13
|
import { IdService } from '../common/id.service';
|
|
14
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
15
14
|
import { reorderIcon } from '@progress/kendo-svg-icons';
|
|
15
|
+
import { ContextService } from '../common/provider.service';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
import * as i1 from "../editing/edit.service";
|
|
18
18
|
import * as i2 from "../common/id.service";
|
|
19
|
-
import * as i3 from "
|
|
19
|
+
import * as i3 from "../common/provider.service";
|
|
20
20
|
import * as i4 from "@progress/kendo-angular-icons";
|
|
21
21
|
import * as i5 from "@progress/kendo-angular-inputs";
|
|
22
22
|
import * as i6 from "@progress/kendo-angular-dateinputs";
|
|
@@ -29,10 +29,10 @@ import * as i11 from "./common/field-accessor.pipe";
|
|
|
29
29
|
* @hidden
|
|
30
30
|
*/
|
|
31
31
|
export class CellComponent {
|
|
32
|
-
constructor(editService, idService,
|
|
32
|
+
constructor(editService, idService, ctx, cellContext) {
|
|
33
33
|
this.editService = editService;
|
|
34
34
|
this.idService = idService;
|
|
35
|
-
this.
|
|
35
|
+
this.ctx = ctx;
|
|
36
36
|
this.cellContext = cellContext;
|
|
37
37
|
this.isNew = false;
|
|
38
38
|
this.isLoading = false;
|
|
@@ -48,7 +48,7 @@ export class CellComponent {
|
|
|
48
48
|
return isRowReorderColumn(this.column);
|
|
49
49
|
}
|
|
50
50
|
get dragRowHandleLabel() {
|
|
51
|
-
return isRowReorderColumn(this.column) ? this.
|
|
51
|
+
return isRowReorderColumn(this.column) ? this.ctx.localization.get('dragRowHandleLabel') : undefined;
|
|
52
52
|
}
|
|
53
53
|
set rowIndex(index) {
|
|
54
54
|
this._rowIndex = index;
|
|
@@ -98,7 +98,7 @@ export class CellComponent {
|
|
|
98
98
|
return this.idService.selectionCheckboxId(this.rowIndex);
|
|
99
99
|
}
|
|
100
100
|
get selectionCheckboxLabel() {
|
|
101
|
-
return this.
|
|
101
|
+
return this.ctx.localization.get('selectionCheckboxLabel');
|
|
102
102
|
}
|
|
103
103
|
get isSpanColumn() {
|
|
104
104
|
return isSpanColumn(this.column) && !this.column.templateRef;
|
|
@@ -154,7 +154,7 @@ export class CellComponent {
|
|
|
154
154
|
context.$implicit = this.dataItem;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
CellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CellComponent, deps: [{ token: i1.EditService }, { token: i2.IdService }, { token: i3.
|
|
157
|
+
CellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CellComponent, deps: [{ token: i1.EditService }, { token: i2.IdService }, { token: i3.ContextService }, { token: CELL_CONTEXT, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
158
158
|
CellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: CellComponent, selector: "[kendoGridCell]", inputs: { column: "column", columnIndex: "columnIndex", isNew: "isNew", isLoading: "isLoading", isVirtual: "isVirtual", loadingTemplate: "loadingTemplate", rowIndex: "rowIndex", dataItem: "dataItem" }, host: { properties: { "class.k-command-cell": "this.commandCellClass", "class.k-drag-cell": "this.dragHandleCellClass", "class.k-touch-action-none": "this.dragHandleCellClass", "attr.aria-label": "this.dragRowHandleLabel" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
159
159
|
<ng-container [ngSwitch]="isEdited">
|
|
160
160
|
<ng-container *ngSwitchCase="false">
|
|
@@ -314,7 +314,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
314
314
|
</ng-container>
|
|
315
315
|
`
|
|
316
316
|
}]
|
|
317
|
-
}], ctorParameters: function () { return [{ type: i1.EditService }, { type: i2.IdService }, { type: i3.
|
|
317
|
+
}], ctorParameters: function () { return [{ type: i1.EditService }, { type: i2.IdService }, { type: i3.ContextService }, { type: undefined, decorators: [{
|
|
318
318
|
type: Optional
|
|
319
319
|
}, {
|
|
320
320
|
type: Inject,
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, HostBinding, Input } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { ContextService } from '../../common/provider.service';
|
|
7
7
|
import { LoadingTemplateDirective } from '../loading-template.directive';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "
|
|
9
|
+
import * as i1 from "../../common/provider.service";
|
|
10
10
|
import * as i2 from "@angular/common";
|
|
11
11
|
/**
|
|
12
12
|
* @hidden
|
|
13
13
|
*/
|
|
14
14
|
export class LoadingComponent {
|
|
15
|
-
constructor(
|
|
16
|
-
this.
|
|
15
|
+
constructor(ctx) {
|
|
16
|
+
this.ctx = ctx;
|
|
17
17
|
this.hostClass = true;
|
|
18
18
|
}
|
|
19
19
|
get loadingText() {
|
|
20
|
-
return this.localization.get('loading');
|
|
20
|
+
return this.ctx.localization.get('loading');
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
LoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LoadingComponent, deps: [{ token: i1.
|
|
23
|
+
LoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LoadingComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
24
|
LoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: LoadingComponent, selector: "[kendoGridLoading]", inputs: { loadingTemplate: "loadingTemplate" }, host: { properties: { "class.k-loading-mask": "this.hostClass" } }, ngImport: i0, template: `
|
|
25
25
|
<ng-container *ngIf="!loadingTemplate">
|
|
26
26
|
<span class="k-loading-text">{{ loadingText }}</span>
|
|
@@ -44,7 +44,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
44
44
|
</ng-template>
|
|
45
45
|
`
|
|
46
46
|
}]
|
|
47
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
47
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; }, propDecorators: { hostClass: [{
|
|
48
48
|
type: HostBinding,
|
|
49
49
|
args: ['class.k-loading-mask']
|
|
50
50
|
}], loadingTemplate: [{
|
|
@@ -6,7 +6,6 @@ import { ColumnInfoService } from './../../common/column-info.service';
|
|
|
6
6
|
import { Component, ChangeDetectorRef, HostBinding, Input, QueryList, ViewChildren, TemplateRef } from '@angular/core';
|
|
7
7
|
import { Subscription, of, merge } from "rxjs";
|
|
8
8
|
import { filter, map, switchMap, tap, takeUntil } from 'rxjs/operators';
|
|
9
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
9
|
import { isColumnComponent } from '../../columns/column.component';
|
|
11
10
|
import { isColumnGroupComponent } from '../../columns/column-group.component';
|
|
12
11
|
import { isCheckboxColumn } from '../../columns/column-base';
|
|
@@ -38,23 +37,22 @@ import * as i3 from "../../dragdrop/drop-cue.service";
|
|
|
38
37
|
import * as i4 from "../../dragdrop/column-reorder.service";
|
|
39
38
|
import * as i5 from "../../common/id.service";
|
|
40
39
|
import * as i6 from "../../common/sort.service";
|
|
41
|
-
import * as i7 from "
|
|
42
|
-
import * as i8 from "
|
|
43
|
-
import * as i9 from "../../
|
|
44
|
-
import * as i10 from "../../
|
|
45
|
-
import * as i11 from "
|
|
46
|
-
import * as i12 from "
|
|
47
|
-
import * as i13 from "
|
|
48
|
-
import * as i14 from "
|
|
49
|
-
import * as i15 from "../../navigation/logical-
|
|
50
|
-
import * as i16 from "../../
|
|
51
|
-
import * as i17 from "
|
|
52
|
-
import * as i18 from "
|
|
53
|
-
import * as i19 from "
|
|
54
|
-
import * as i20 from "
|
|
55
|
-
import * as i21 from "../../
|
|
56
|
-
import * as i22 from "../../
|
|
57
|
-
import * as i23 from "../../column-resizing/column-handle.directive";
|
|
40
|
+
import * as i7 from "./../../common/column-info.service";
|
|
41
|
+
import * as i8 from "../../common/provider.service";
|
|
42
|
+
import * as i9 from "../../filtering/menu/filter-menu.component";
|
|
43
|
+
import * as i10 from "../../column-menu/column-menu.component";
|
|
44
|
+
import * as i11 from "@progress/kendo-angular-icons";
|
|
45
|
+
import * as i12 from "../../filtering/filter-row.component";
|
|
46
|
+
import * as i13 from "@angular/common";
|
|
47
|
+
import * as i14 from "../../navigation/logical-row.directive";
|
|
48
|
+
import * as i15 from "../../navigation/logical-cell.directive";
|
|
49
|
+
import * as i16 from "../../dragdrop/drop-target.directive";
|
|
50
|
+
import * as i17 from "@progress/kendo-angular-common";
|
|
51
|
+
import * as i18 from "../../dragdrop/draggable-column.directive";
|
|
52
|
+
import * as i19 from "../common/template-context.directive";
|
|
53
|
+
import * as i20 from "../../selection/selectall-checkbox.directive";
|
|
54
|
+
import * as i21 from "../../navigation/focusable.directive";
|
|
55
|
+
import * as i22 from "../../column-resizing/column-handle.directive";
|
|
58
56
|
const mergeObjects = (...args) => Object.assign.apply(null, [{}].concat(args));
|
|
59
57
|
const directions = initialDirection => initialDirection === "asc" ? ["asc", "desc"] : ["desc", "asc"];
|
|
60
58
|
/**
|
|
@@ -80,14 +78,13 @@ const modifierKeys = ['alt', 'ctrl', 'shift', 'meta'];
|
|
|
80
78
|
* @hidden
|
|
81
79
|
*/
|
|
82
80
|
export class HeaderComponent {
|
|
83
|
-
constructor(popupService, hint, cue, reorderService, idService, sortService,
|
|
81
|
+
constructor(popupService, hint, cue, reorderService, idService, sortService, columnInfoService, cd, contextService) {
|
|
84
82
|
this.popupService = popupService;
|
|
85
83
|
this.hint = hint;
|
|
86
84
|
this.cue = cue;
|
|
87
85
|
this.reorderService = reorderService;
|
|
88
86
|
this.idService = idService;
|
|
89
87
|
this.sortService = sortService;
|
|
90
|
-
this.localization = localization;
|
|
91
88
|
this.columnInfoService = columnInfoService;
|
|
92
89
|
this.cd = cd;
|
|
93
90
|
this.contextService = contextService;
|
|
@@ -113,7 +110,7 @@ export class HeaderComponent {
|
|
|
113
110
|
return !this.scrollable;
|
|
114
111
|
}
|
|
115
112
|
get sortableLabel() {
|
|
116
|
-
return this.localization.get('sortable');
|
|
113
|
+
return this.contextService.localization.get('sortable');
|
|
117
114
|
}
|
|
118
115
|
get columnMenuSettings() {
|
|
119
116
|
return this.columnMenu;
|
|
@@ -179,7 +176,7 @@ export class HeaderComponent {
|
|
|
179
176
|
args.preventDefault();
|
|
180
177
|
const columnsCount = this.columnInfoService.leafNamedColumns.length;
|
|
181
178
|
const reorderDirection = args.keyCode === Keys.ArrowLeft ? -1 : 1;
|
|
182
|
-
const rtlMultiplier = this.localization.rtl ? -1 : 1;
|
|
179
|
+
const rtlMultiplier = this.contextService.localization.rtl ? -1 : 1;
|
|
183
180
|
const reorderDirectionOffset = reorderDirection * rtlMultiplier;
|
|
184
181
|
const newIndex = column.leafIndex + reorderDirectionOffset;
|
|
185
182
|
const normalizedNewIndex = Math.min(Math.max(0, newIndex), columnsCount - 1);
|
|
@@ -237,7 +234,7 @@ export class HeaderComponent {
|
|
|
237
234
|
else if (state.dir === 'desc') {
|
|
238
235
|
msg = 'sortedDescending';
|
|
239
236
|
}
|
|
240
|
-
return this.localization.get(msg);
|
|
237
|
+
return this.contextService.localization.get(msg);
|
|
241
238
|
}
|
|
242
239
|
/**
|
|
243
240
|
*
|
|
@@ -283,7 +280,7 @@ export class HeaderComponent {
|
|
|
283
280
|
}
|
|
284
281
|
}
|
|
285
282
|
ngOnInit() {
|
|
286
|
-
this.subscription.add(this.localization.changes
|
|
283
|
+
this.subscription.add(this.contextService.localization.changes
|
|
287
284
|
.subscribe(() => this.cd.markForCheck()));
|
|
288
285
|
}
|
|
289
286
|
ngOnDestroy() {
|
|
@@ -299,7 +296,7 @@ export class HeaderComponent {
|
|
|
299
296
|
return this.idService.selectAllCheckboxId();
|
|
300
297
|
}
|
|
301
298
|
get selectAllCheckboxLabel() {
|
|
302
|
-
return this.localization.get('selectAllCheckboxLabel');
|
|
299
|
+
return this.contextService.localization.get('selectAllCheckboxLabel');
|
|
303
300
|
}
|
|
304
301
|
isFirstOnRow(column, index) {
|
|
305
302
|
const isTailing = (c) => c &&
|
|
@@ -437,7 +434,7 @@ export class HeaderComponent {
|
|
|
437
434
|
const halfWidth = targetElement.offsetWidth / 2;
|
|
438
435
|
const middle = left + halfWidth;
|
|
439
436
|
before = middle > mouseEvent.pageX;
|
|
440
|
-
if (this.localization.rtl) {
|
|
437
|
+
if (this.contextService.localization.rtl) {
|
|
441
438
|
before = !before;
|
|
442
439
|
}
|
|
443
440
|
}
|
|
@@ -448,7 +445,7 @@ export class HeaderComponent {
|
|
|
448
445
|
}
|
|
449
446
|
enter({ target, before }) {
|
|
450
447
|
this.hint.enable();
|
|
451
|
-
if (this.localization.rtl) {
|
|
448
|
+
if (this.contextService.localization.rtl) {
|
|
452
449
|
before = !before;
|
|
453
450
|
}
|
|
454
451
|
this.cue.position(position(target.element.nativeElement, before));
|
|
@@ -466,7 +463,7 @@ export class HeaderComponent {
|
|
|
466
463
|
});
|
|
467
464
|
}
|
|
468
465
|
}
|
|
469
|
-
HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: HeaderComponent, deps: [{ token: i1.SinglePopupService }, { token: i2.DragHintService }, { token: i3.DropCueService }, { token: i4.ColumnReorderService }, { token: i5.IdService }, { token: i6.SortService }, { token: i7.
|
|
466
|
+
HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: HeaderComponent, deps: [{ token: i1.SinglePopupService }, { token: i2.DragHintService }, { token: i3.DropCueService }, { token: i4.ColumnReorderService }, { token: i5.IdService }, { token: i6.SortService }, { token: i7.ColumnInfoService }, { token: i0.ChangeDetectorRef }, { token: i8.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
470
467
|
HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: HeaderComponent, selector: "[kendoGridHeader]", inputs: { totalColumnLevels: "totalColumnLevels", columns: "columns", groups: "groups", detailTemplate: "detailTemplate", scrollable: "scrollable", filterable: "filterable", sort: "sort", filter: "filter", sortable: "sortable", groupable: "groupable", lockedColumnsCount: "lockedColumnsCount", resizable: "resizable", reorderable: "reorderable", columnMenu: "columnMenu", columnMenuTemplate: "columnMenuTemplate", totalColumnsCount: "totalColumnsCount", tabIndex: "tabIndex", size: "size" }, host: { properties: { "class.k-grid-header": "this.headerClass", "class.k-table-thead": "this.hostClass" } }, viewQueries: [{ propertyName: "dropTargets", predicate: DropTargetDirective, descendants: true }, { propertyName: "filterMenus", predicate: FilterMenuComponent, descendants: true }, { propertyName: "columnMenus", predicate: ColumnMenuComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
471
468
|
<ng-container>
|
|
472
469
|
<tr *ngFor="let i of columnLevels; let levelIndex = index"
|
|
@@ -692,7 +689,7 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
692
689
|
[logicalSlaveCellsCount]="unlockedColumnsCount"
|
|
693
690
|
></tr>
|
|
694
691
|
</ng-container>
|
|
695
|
-
`, isInline: true, components: [{ type:
|
|
692
|
+
`, isInline: true, components: [{ type: i9.FilterMenuComponent, selector: "kendo-grid-filter-menu", inputs: ["column", "filter", "tabIndex"] }, { type: i10.ColumnMenuComponent, selector: "kendo-grid-column-menu", inputs: ["standalone", "column", "settings", "sort", "filter", "sortable", "columnMenuTemplate", "tabIndex"] }, { type: i11.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i12.FilterRowComponent, selector: "[kendoGridFilterRow]", inputs: ["columns", "filter", "groups", "detailTemplate", "logicalRowIndex", "lockedColumnsCount"] }], directives: [{ type: i13.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i14.LogicalRowDirective, selector: "[kendoGridLogicalRow]", inputs: ["logicalRowIndex", "logicalSlaveRow", "logicalCellsCount", "logicalSlaveCellsCount", "dataRowIndex", "dataItem"] }, { type: i13.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i15.LogicalCellDirective, selector: "[kendoGridLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "colIndex", "colSpan", "rowSpan", "groupItem", "dataRowIndex", "dataItem", "detailExpandCell", "headerLabelText"] }, { type: i16.DropTargetDirective, selector: "[kendoDropTarget]", inputs: ["context"], outputs: ["enter", "leave", "drop"] }, { type: i17.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i18.DraggableColumnDirective, selector: "[kendoDraggableColumn]", inputs: ["context", "enableDrag"], outputs: ["drag"] }, { type: i13.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i13.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i19.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i20.SelectAllCheckboxDirective, selector: "[kendoGridSelectAllCheckbox]", inputs: ["state"], outputs: ["selectAllChange"] }, { type: i21.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { type: i22.ColumnHandleDirective, selector: "[kendoGridColumnHandle]", inputs: ["columns", "column"] }] });
|
|
696
693
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
697
694
|
type: Component,
|
|
698
695
|
args: [{
|
|
@@ -924,7 +921,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
924
921
|
</ng-container>
|
|
925
922
|
`
|
|
926
923
|
}]
|
|
927
|
-
}], ctorParameters: function () { return [{ type: i1.SinglePopupService }, { type: i2.DragHintService }, { type: i3.DropCueService }, { type: i4.ColumnReorderService }, { type: i5.IdService }, { type: i6.SortService }, { type: i7.
|
|
924
|
+
}], ctorParameters: function () { return [{ type: i1.SinglePopupService }, { type: i2.DragHintService }, { type: i3.DropCueService }, { type: i4.ColumnReorderService }, { type: i5.IdService }, { type: i6.SortService }, { type: i7.ColumnInfoService }, { type: i0.ChangeDetectorRef }, { type: i8.ContextService }]; }, propDecorators: { totalColumnLevels: [{
|
|
928
925
|
type: Input
|
|
929
926
|
}], columns: [{
|
|
930
927
|
type: Input
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import { Component, Input, Output, EventEmitter, HostBinding, ViewChild, ElementRef, Inject, InjectionToken, QueryList, NgZone, Renderer2, ViewChildren, ChangeDetectorRef, TemplateRef } from '@angular/core';
|
|
6
6
|
import { Subject, fromEvent, merge } from 'rxjs';
|
|
7
7
|
import { delay, map, filter, tap, take, switchMapTo } from 'rxjs/operators';
|
|
8
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
8
|
import { RowHeightService } from '../scrolling/row-height.service';
|
|
10
9
|
import { ScrollerService, PageAction, ScrollAction, ScrollBottomAction } from '../scrolling/scroller.service';
|
|
11
10
|
import { ScrollRequestService } from '../scrolling/scroll-request.service';
|
|
@@ -34,6 +33,7 @@ import { hasClasses, rtlScrollPosition } from './common/dom-queries';
|
|
|
34
33
|
import { PDFService } from '../pdf/pdf.service';
|
|
35
34
|
import { ColumnInfoService } from '../common/column-info.service';
|
|
36
35
|
import { NON_DATA_CELL_CLASSES } from './constants';
|
|
36
|
+
import { ContextService } from '../common/provider.service';
|
|
37
37
|
import * as i0 from "@angular/core";
|
|
38
38
|
import * as i1 from "./details/details.service";
|
|
39
39
|
import * as i2 from "../data/change-notification.service";
|
|
@@ -45,7 +45,7 @@ import * as i7 from "../editing/edit.service";
|
|
|
45
45
|
import * as i8 from "../layout/browser-support.service";
|
|
46
46
|
import * as i9 from "../navigation/navigation.service";
|
|
47
47
|
import * as i10 from "../scrolling/scroll-request.service";
|
|
48
|
-
import * as i11 from "
|
|
48
|
+
import * as i11 from "../common/provider.service";
|
|
49
49
|
import * as i12 from "../column-resizing/column-resizing.service";
|
|
50
50
|
import * as i13 from "../pdf/pdf.service";
|
|
51
51
|
import * as i14 from "../common/column-info.service";
|
|
@@ -105,7 +105,7 @@ const bufferSize = 1;
|
|
|
105
105
|
* @hidden
|
|
106
106
|
*/
|
|
107
107
|
export class ListComponent {
|
|
108
|
-
constructor(scrollerFactory, detailsService, changeNotification, suspendService, groupsService, ngZone, renderer, scrollSyncService, resizeService, editService, supportService, navigationService, scrollRequestService,
|
|
108
|
+
constructor(scrollerFactory, detailsService, changeNotification, suspendService, groupsService, ngZone, renderer, scrollSyncService, resizeService, editService, supportService, navigationService, scrollRequestService, ctx, columnResizingService, changeDetector, pdfService, columnInfo) {
|
|
109
109
|
this.changeNotification = changeNotification;
|
|
110
110
|
this.suspendService = suspendService;
|
|
111
111
|
this.groupsService = groupsService;
|
|
@@ -116,7 +116,7 @@ export class ListComponent {
|
|
|
116
116
|
this.editService = editService;
|
|
117
117
|
this.supportService = supportService;
|
|
118
118
|
this.navigationService = navigationService;
|
|
119
|
-
this.
|
|
119
|
+
this.ctx = ctx;
|
|
120
120
|
this.columnResizingService = columnResizingService;
|
|
121
121
|
this.changeDetector = changeDetector;
|
|
122
122
|
this.pdfService = pdfService;
|
|
@@ -192,7 +192,7 @@ export class ListComponent {
|
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
194
|
}));
|
|
195
|
-
this.subscriptions.add(this.localization.changes.subscribe(({ rtl }) => this.rtl = rtl));
|
|
195
|
+
this.subscriptions.add(this.ctx.localization.changes.subscribe(({ rtl }) => this.rtl = rtl));
|
|
196
196
|
}
|
|
197
197
|
ngOnChanges(changes) {
|
|
198
198
|
if (!isDocumentAvailable()) {
|
|
@@ -587,7 +587,7 @@ export class ListComponent {
|
|
|
587
587
|
return element.offsetLeft;
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ListComponent, deps: [{ token: SCROLLER_FACTORY_TOKEN }, { token: i1.DetailsService }, { token: i2.ChangeNotificationService }, { token: i3.SuspendService }, { token: i4.GroupsService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i5.ScrollSyncService }, { token: i6.ResizeService }, { token: i7.EditService }, { token: i8.BrowserSupportService }, { token: i9.NavigationService }, { token: i10.ScrollRequestService }, { token: i11.
|
|
590
|
+
ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ListComponent, deps: [{ token: SCROLLER_FACTORY_TOKEN }, { token: i1.DetailsService }, { token: i2.ChangeNotificationService }, { token: i3.SuspendService }, { token: i4.GroupsService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i5.ScrollSyncService }, { token: i6.ResizeService }, { token: i7.EditService }, { token: i8.BrowserSupportService }, { token: i9.NavigationService }, { token: i10.ScrollRequestService }, { token: i11.ContextService }, { token: i12.ColumnResizingService }, { token: i0.ChangeDetectorRef }, { token: i13.PDFService }, { token: i14.ColumnInfoService }], target: i0.ɵɵFactoryTarget.Component });
|
|
591
591
|
ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ListComponent, selector: "kendo-grid-list", inputs: { data: "data", groups: "groups", total: "total", rowHeight: "rowHeight", stickyRowHeight: "stickyRowHeight", detailRowHeight: "detailRowHeight", take: "take", skip: "skip", columns: "columns", detailTemplate: "detailTemplate", noRecordsTemplate: "noRecordsTemplate", selectable: "selectable", groupable: "groupable", filterable: "filterable", rowClass: "rowClass", rowSticky: "rowSticky", loading: "loading", trackBy: "trackBy", virtualColumns: "virtualColumns", isVirtual: "isVirtual", cellLoadingTemplate: "cellLoadingTemplate", loadingTemplate: "loadingTemplate", sort: "sort", size: "size" }, outputs: { contentScroll: "contentScroll", pageChange: "pageChange", scrollBottom: "scrollBottom" }, host: { properties: { "class.k-grid-container": "this.hostClass", "attr.role": "this.hostRole" } }, providers: [
|
|
592
592
|
{
|
|
593
593
|
provide: SCROLLER_FACTORY_TOKEN,
|
|
@@ -825,7 +825,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
825
825
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
826
826
|
type: Inject,
|
|
827
827
|
args: [SCROLLER_FACTORY_TOKEN]
|
|
828
|
-
}] }, { type: i1.DetailsService }, { type: i2.ChangeNotificationService }, { type: i3.SuspendService }, { type: i4.GroupsService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i5.ScrollSyncService }, { type: i6.ResizeService }, { type: i7.EditService }, { type: i8.BrowserSupportService }, { type: i9.NavigationService }, { type: i10.ScrollRequestService }, { type: i11.
|
|
828
|
+
}] }, { type: i1.DetailsService }, { type: i2.ChangeNotificationService }, { type: i3.SuspendService }, { type: i4.GroupsService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i5.ScrollSyncService }, { type: i6.ResizeService }, { type: i7.EditService }, { type: i8.BrowserSupportService }, { type: i9.NavigationService }, { type: i10.ScrollRequestService }, { type: i11.ContextService }, { type: i12.ColumnResizingService }, { type: i0.ChangeDetectorRef }, { type: i13.PDFService }, { type: i14.ColumnInfoService }]; }, propDecorators: { hostClass: [{
|
|
829
829
|
type: HostBinding,
|
|
830
830
|
args: ['class.k-grid-container']
|
|
831
831
|
}], hostRole: [{
|
|
@@ -10,7 +10,6 @@ import { ChangeNotificationService } from '../data/change-notification.service';
|
|
|
10
10
|
import { isChanged, isPresent } from '../utils';
|
|
11
11
|
import { NoRecordsTemplateDirective } from './no-records-template.directive';
|
|
12
12
|
import { EditService } from '../editing/edit.service';
|
|
13
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
14
13
|
import { columnsSpan, columnsToRender } from "../columns/column-common";
|
|
15
14
|
import { closest, closestInScope, hasClasses, isFocusableWithTabKey, matchesClasses, matchesNodeName } from './common/dom-queries';
|
|
16
15
|
import { DomEventsService } from '../common/dom-events.service';
|
|
@@ -24,12 +23,13 @@ import { DetailsService } from './details/details.service';
|
|
|
24
23
|
import { NON_DATA_CELL_CLASSES, NON_DATA_ROW_CLASSES, IGNORE_TARGET_CLASSSES, IGNORE_CONTAINER_CLASSES } from './constants';
|
|
25
24
|
import { CellSelectionService } from '../selection/cell-selection.service';
|
|
26
25
|
import { minusIcon, plusIcon } from '@progress/kendo-svg-icons';
|
|
26
|
+
import { ContextService } from '../common/provider.service';
|
|
27
27
|
import * as i0 from "@angular/core";
|
|
28
28
|
import * as i1 from "./details/details.service";
|
|
29
29
|
import * as i2 from "../grouping/groups.service";
|
|
30
30
|
import * as i3 from "../data/change-notification.service";
|
|
31
31
|
import * as i4 from "../editing/edit.service";
|
|
32
|
-
import * as i5 from "
|
|
32
|
+
import * as i5 from "../common/provider.service";
|
|
33
33
|
import * as i6 from "../common/dom-events.service";
|
|
34
34
|
import * as i7 from "../selection/selection.service";
|
|
35
35
|
import * as i8 from "../selection/cell-selection.service";
|
|
@@ -58,12 +58,12 @@ const columnCellIndex = (cell, cells) => {
|
|
|
58
58
|
* @hidden
|
|
59
59
|
*/
|
|
60
60
|
export class TableBodyComponent {
|
|
61
|
-
constructor(detailsService, groupsService, changeNotification, editService,
|
|
61
|
+
constructor(detailsService, groupsService, changeNotification, editService, ctx, ngZone, renderer, element, domEvents, selectionService, cellSelectionService, columnInfoService, navigationService) {
|
|
62
62
|
this.detailsService = detailsService;
|
|
63
63
|
this.groupsService = groupsService;
|
|
64
64
|
this.changeNotification = changeNotification;
|
|
65
65
|
this.editService = editService;
|
|
66
|
-
this.
|
|
66
|
+
this.ctx = ctx;
|
|
67
67
|
this.ngZone = ngZone;
|
|
68
68
|
this.renderer = renderer;
|
|
69
69
|
this.element = element;
|
|
@@ -75,7 +75,7 @@ export class TableBodyComponent {
|
|
|
75
75
|
this.columns = [];
|
|
76
76
|
this.groups = [];
|
|
77
77
|
this.skip = 0;
|
|
78
|
-
this.noRecordsText = this.localization.get('noRecords');
|
|
78
|
+
this.noRecordsText = this.ctx.localization.get('noRecords');
|
|
79
79
|
this.isLocked = false;
|
|
80
80
|
this.skipGroupDecoration = false;
|
|
81
81
|
this.showGroupFooters = false;
|
|
@@ -118,7 +118,7 @@ export class TableBodyComponent {
|
|
|
118
118
|
}
|
|
119
119
|
detailButtonTitle(viewItem) {
|
|
120
120
|
const messageKey = this.isExpanded(viewItem) ? 'detailCollapse' : 'detailExpand';
|
|
121
|
-
return this.localization.get(messageKey);
|
|
121
|
+
return this.ctx.localization.get(messageKey);
|
|
122
122
|
}
|
|
123
123
|
isGroup(item) {
|
|
124
124
|
return item.type === 'group';
|
|
@@ -227,10 +227,10 @@ export class TableBodyComponent {
|
|
|
227
227
|
touchendSubscription();
|
|
228
228
|
};
|
|
229
229
|
});
|
|
230
|
-
let originalNoRecordText = this.localization.get('noRecords');
|
|
231
|
-
this.l10nSubscription = this.localization.changes.subscribe(() => {
|
|
230
|
+
let originalNoRecordText = this.ctx.localization.get('noRecords');
|
|
231
|
+
this.l10nSubscription = this.ctx.localization.changes.subscribe(() => {
|
|
232
232
|
if (this.noRecordsText === originalNoRecordText) {
|
|
233
|
-
this.noRecordsText = this.localization.get('noRecords');
|
|
233
|
+
this.noRecordsText = this.ctx.localization.get('noRecords');
|
|
234
234
|
originalNoRecordText = this.noRecordsText;
|
|
235
235
|
}
|
|
236
236
|
});
|
|
@@ -388,7 +388,7 @@ export class TableBodyComponent {
|
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
TableBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TableBodyComponent, deps: [{ token: i1.DetailsService }, { token: i2.GroupsService }, { token: i3.ChangeNotificationService }, { token: i4.EditService }, { token: i5.
|
|
391
|
+
TableBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TableBodyComponent, deps: [{ token: i1.DetailsService }, { token: i2.GroupsService }, { token: i3.ChangeNotificationService }, { token: i4.EditService }, { token: i5.ContextService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i6.DomEventsService }, { token: i7.SelectionService }, { token: i8.CellSelectionService }, { token: i9.ColumnInfoService }, { token: i10.NavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
392
392
|
TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: TableBodyComponent, selector: "[kendoGridTableBody]", inputs: { columns: "columns", allColumns: "allColumns", groups: "groups", detailTemplate: "detailTemplate", noRecordsTemplate: "noRecordsTemplate", data: "data", skip: "skip", selectable: "selectable", filterable: "filterable", noRecordsText: "noRecordsText", isLocked: "isLocked", isLoading: "isLoading", isVirtual: "isVirtual", cellLoadingTemplate: "cellLoadingTemplate", skipGroupDecoration: "skipGroupDecoration", showGroupFooters: "showGroupFooters", lockedColumnsCount: "lockedColumnsCount", totalColumnsCount: "totalColumnsCount", virtualColumns: "virtualColumns", trackBy: "trackBy", rowSticky: "rowSticky", rowClass: "rowClass" }, host: { properties: { "class.k-table-tbody": "this.hostClass" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
393
393
|
<ng-container *ngIf="editService.hasNewItem">
|
|
394
394
|
<tr class="k-grid-add-row k-grid-edit-row k-master-row"
|
|
@@ -838,7 +838,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
838
838
|
<kendo-resize-sensor *ngIf="rowSticky" (resize)="resizeHandler()"></kendo-resize-sensor>
|
|
839
839
|
`
|
|
840
840
|
}]
|
|
841
|
-
}], ctorParameters: function () { return [{ type: i1.DetailsService }, { type: i2.GroupsService }, { type: i3.ChangeNotificationService }, { type: i4.EditService }, { type: i5.
|
|
841
|
+
}], ctorParameters: function () { return [{ type: i1.DetailsService }, { type: i2.GroupsService }, { type: i3.ChangeNotificationService }, { type: i4.EditService }, { type: i5.ContextService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i6.DomEventsService }, { type: i7.SelectionService }, { type: i8.CellSelectionService }, { type: i9.ColumnInfoService }, { type: i10.NavigationService }]; }, propDecorators: { columns: [{
|
|
842
842
|
type: Input
|
|
843
843
|
}], allColumns: [{
|
|
844
844
|
type: Input
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ElementRef, Renderer2 as Renderer, NgZone } from '@angular/core';
|
|
6
6
|
import { Button } from '@progress/kendo-angular-buttons';
|
|
7
|
-
import {
|
|
7
|
+
import { ContextService } from '../common/provider.service';
|
|
8
8
|
import { ExcelService } from './excel.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
@@ -36,7 +36,7 @@ export declare class ExcelCommandDirective extends Button {
|
|
|
36
36
|
* @hidden
|
|
37
37
|
*/
|
|
38
38
|
get excelClass(): boolean;
|
|
39
|
-
constructor(excelService: ExcelService, element: ElementRef, renderer: Renderer,
|
|
39
|
+
constructor(excelService: ExcelService, element: ElementRef, renderer: Renderer, ctx: ContextService, ngZone: NgZone);
|
|
40
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExcelCommandDirective, never>;
|
|
41
41
|
static ɵcmp: i0.ɵɵComponentDeclaration<ExcelCommandDirective, "[kendoGridExcelCommand]", never, {}, {}, never, ["*"]>;
|
|
42
42
|
}
|
|
@@ -6,14 +6,14 @@ import { OnDestroy, QueryList, NgZone } from '@angular/core';
|
|
|
6
6
|
import { ExcelExportData, ColumnBase, CellOptions } from '@progress/kendo-angular-excel-export';
|
|
7
7
|
import { GridComponent } from '../grid.component';
|
|
8
8
|
import { ExcelService } from './excel.service';
|
|
9
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
9
|
import { FetchDataCallback } from '../common/fetch-data-callback';
|
|
10
|
+
import { ContextService } from '../common/provider.service';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
13
|
* Configures the settings for the export of Grid in Excel ([see example]({% slug excelexport_grid %})).
|
|
14
14
|
*/
|
|
15
15
|
export declare class ExcelComponent implements OnDestroy {
|
|
16
|
-
private
|
|
16
|
+
private ctx;
|
|
17
17
|
private zone;
|
|
18
18
|
/**
|
|
19
19
|
* Specifies the file name of the exported Excel file.
|
|
@@ -76,7 +76,7 @@ export declare class ExcelComponent implements OnDestroy {
|
|
|
76
76
|
columns: QueryList<ColumnBase>;
|
|
77
77
|
private saveSubscription;
|
|
78
78
|
private dataSubscription;
|
|
79
|
-
constructor(excelService: ExcelService,
|
|
79
|
+
constructor(excelService: ExcelService, ctx: ContextService, zone: NgZone);
|
|
80
80
|
ngOnDestroy(): void;
|
|
81
81
|
protected save(component: GridComponent): void;
|
|
82
82
|
protected exportData(component: GridComponent, result: ExcelExportData): void;
|