@progress/kendo-angular-grid 7.0.0-next.202203311511 → 7.0.0-next.202204010834
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/bundles/kendo-angular-grid.umd.js +1 -1
- package/common/provider.service.d.ts +1 -1
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/editing-directives/in-cell-editing.directive.d.ts +1 -1
- package/editing-directives/reactive-editing.directive.d.ts +1 -1
- package/esm2015/grid.component.js +1 -1
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/selection/selection-default.js +13 -13
- package/esm2015/selection/selection.directive.js +9 -9
- package/excel/excel.component.d.ts +1 -1
- package/fesm2015/kendo-angular-grid.js +33 -33
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/package.json +1 -1
- package/rendering/header/header.component.d.ts +1 -1
- package/selection/selection-default.d.ts +3 -3
- package/selection/selection.directive.d.ts +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import type { GridComponent } from '
|
|
5
|
+
import type { GridComponent } from '../grid.component';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
@@ -7,7 +7,7 @@ import { GridComponent } from '../grid.component';
|
|
|
7
7
|
import { EditService } from './edit-service.interface';
|
|
8
8
|
import { Subscription } from 'rxjs';
|
|
9
9
|
import { LocalDataChangesService } from '../editing/local-data-changes.service';
|
|
10
|
-
import { RemoveConfirmationCallback } from '
|
|
10
|
+
import { RemoveConfirmationCallback } from '../common/remove-confirmation';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
13
|
* @hidden
|
|
@@ -6,7 +6,7 @@ import { ChangeDetectorRef } from '@angular/core';
|
|
|
6
6
|
import { EditingDirectiveBase } from './editing-directive-base';
|
|
7
7
|
import { GridComponent } from '../grid.component';
|
|
8
8
|
import { LocalDataChangesService } from '../editing/local-data-changes.service';
|
|
9
|
-
import { CreateFormGroup } from '
|
|
9
|
+
import { CreateFormGroup } from '../common/create-form-group';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
12
|
* A directive which encapsulates the editing operations of the Grid when using the in-cell
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { RowEditingDirectiveBase } from './row-editing-directive-base';
|
|
6
6
|
import { GridComponent } from '../grid.component';
|
|
7
7
|
import { LocalDataChangesService } from '../editing/local-data-changes.service';
|
|
8
|
-
import { CreateFormGroup } from '
|
|
8
|
+
import { CreateFormGroup } from '../common/create-form-group';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
11
|
* A directive which encapsulates the editing operations of the Grid when using the
|
|
@@ -1690,7 +1690,7 @@ export class GridComponent {
|
|
|
1690
1690
|
return;
|
|
1691
1691
|
}
|
|
1692
1692
|
if (!this.selectionDirective && !isPresent(this.defaultSelection)) {
|
|
1693
|
-
this.defaultSelection = new Selection(this, this.changeDetectorRef);
|
|
1693
|
+
this.defaultSelection = new Selection(this.providerService, this.changeDetectorRef);
|
|
1694
1694
|
}
|
|
1695
1695
|
const cellSelectionMode = this.selectable['cell'];
|
|
1696
1696
|
const activeService = cellSelectionMode ? this.cellSelectionService : this.selectionService;
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-grid',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1648801798,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -6,13 +6,13 @@ import { Input, EventEmitter, Output, Directive } from '@angular/core';
|
|
|
6
6
|
import { isPresent } from "../utils";
|
|
7
7
|
import { PairSet } from './pair-set';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../
|
|
9
|
+
import * as i1 from "../common/provider.service";
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
13
|
export class Selection {
|
|
14
|
-
constructor(
|
|
15
|
-
this.
|
|
14
|
+
constructor(ctx, cd) {
|
|
15
|
+
this.ctx = ctx;
|
|
16
16
|
this.cd = cd;
|
|
17
17
|
/**
|
|
18
18
|
* Defines the collection that will store the selected item keys.
|
|
@@ -27,7 +27,7 @@ export class Selection {
|
|
|
27
27
|
this.init();
|
|
28
28
|
}
|
|
29
29
|
get isCellSelectionMode() {
|
|
30
|
-
return isPresent(this.grid.selectable) && this.grid.selectable['cell'];
|
|
30
|
+
return isPresent(this.ctx.grid.selectable) && this.ctx.grid.selectable['cell'];
|
|
31
31
|
}
|
|
32
32
|
ngOnChanges(changes) {
|
|
33
33
|
// skip reinitialization if the user data is the same as the last state change
|
|
@@ -36,11 +36,11 @@ export class Selection {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
init() {
|
|
39
|
-
if (!isPresent(this.grid.rowSelected)) {
|
|
40
|
-
this.grid.rowSelected = (row) => this.rowSelectionState.has(this.getItemKey(row));
|
|
39
|
+
if (!isPresent(this.ctx.grid.rowSelected)) {
|
|
40
|
+
this.ctx.grid.rowSelected = (row) => this.rowSelectionState.has(this.getItemKey(row));
|
|
41
41
|
}
|
|
42
|
-
if (!isPresent(this.grid.cellSelected)) {
|
|
43
|
-
this.grid.cellSelected = (row, column, colIndex) => {
|
|
42
|
+
if (!isPresent(this.ctx.grid.cellSelected)) {
|
|
43
|
+
this.ctx.grid.cellSelected = (row, column, colIndex) => {
|
|
44
44
|
const contender = this.getSelectionItem(row, column, colIndex);
|
|
45
45
|
return {
|
|
46
46
|
selected: this.cellSelectionState.has(contender.itemKey, contender.columnKey),
|
|
@@ -48,7 +48,7 @@ export class Selection {
|
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
this.selectionChangeSubscription = this.grid
|
|
51
|
+
this.selectionChangeSubscription = this.ctx.grid
|
|
52
52
|
.selectionChange
|
|
53
53
|
.subscribe(this.onSelectionChange.bind(this));
|
|
54
54
|
}
|
|
@@ -101,7 +101,7 @@ export class Selection {
|
|
|
101
101
|
const itemKey = this.getItemKey(item);
|
|
102
102
|
this.rowSelectionState.delete(itemKey);
|
|
103
103
|
});
|
|
104
|
-
if (this.grid.selectableSettings.mode === "single" && this.rowSelectionState.size > 0) {
|
|
104
|
+
if (this.ctx.grid.selectableSettings.mode === "single" && this.rowSelectionState.size > 0) {
|
|
105
105
|
this.reset();
|
|
106
106
|
}
|
|
107
107
|
selection.selectedRows.forEach((item) => {
|
|
@@ -113,7 +113,7 @@ export class Selection {
|
|
|
113
113
|
selection.deselectedCells.forEach(({ itemKey, columnKey }) => {
|
|
114
114
|
this.cellSelectionState.delete(itemKey, columnKey);
|
|
115
115
|
});
|
|
116
|
-
if (this.grid.selectableSettings.mode === "single" && this.cellSelectionState.size > 0) {
|
|
116
|
+
if (this.ctx.grid.selectableSettings.mode === "single" && this.cellSelectionState.size > 0) {
|
|
117
117
|
this.reset();
|
|
118
118
|
}
|
|
119
119
|
selection.selectedCells.forEach(({ itemKey, columnKey }) => {
|
|
@@ -142,7 +142,7 @@ export class Selection {
|
|
|
142
142
|
Array.from(this.rowSelectionState);
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
Selection.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Selection, deps: [{ token: i1.
|
|
145
|
+
Selection.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Selection, deps: [{ token: i1.ProviderService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
146
146
|
Selection.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: Selection, selector: "kendo-grid-selection-base", inputs: { selectedKeys: "selectedKeys", selectionKey: ["kendoGridSelectBy", "selectionKey"], columnKey: "columnKey" }, outputs: { selectedKeysChange: "selectedKeysChange" }, usesOnChanges: true, ngImport: i0 });
|
|
147
147
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Selection, decorators: [{
|
|
148
148
|
type: Directive,
|
|
@@ -150,7 +150,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
150
150
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
151
151
|
selector: 'kendo-grid-selection-base'
|
|
152
152
|
}]
|
|
153
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
153
|
+
}], ctorParameters: function () { return [{ type: i1.ProviderService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { selectedKeys: [{
|
|
154
154
|
type: Input
|
|
155
155
|
}], selectionKey: [{
|
|
156
156
|
type: Input,
|
|
@@ -5,24 +5,24 @@
|
|
|
5
5
|
import { Directive } from '@angular/core';
|
|
6
6
|
import { Selection } from "./selection-default";
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "../
|
|
8
|
+
import * as i1 from "../common/provider.service";
|
|
9
9
|
/**
|
|
10
10
|
* A directive which stores the row selection state of the Grid in memory
|
|
11
11
|
* ([see example]({% slug selection_grid %}#toc-during-data-operations)).
|
|
12
12
|
*/
|
|
13
13
|
export class SelectionDirective extends Selection {
|
|
14
|
-
constructor(
|
|
15
|
-
super(
|
|
16
|
-
this.
|
|
14
|
+
constructor(ctx, cd) {
|
|
15
|
+
super(ctx, cd);
|
|
16
|
+
this.ctx = ctx;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* @hidden
|
|
20
20
|
*/
|
|
21
21
|
ngOnInit() {
|
|
22
|
-
if (this.grid.selectable === false) {
|
|
23
|
-
this.grid.selectable = true;
|
|
22
|
+
if (this.ctx.grid.selectable === false) {
|
|
23
|
+
this.ctx.grid.selectable = true;
|
|
24
24
|
}
|
|
25
|
-
this.grid.selectionDirective = this;
|
|
25
|
+
this.ctx.grid.selectionDirective = this;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* @hidden
|
|
@@ -31,11 +31,11 @@ export class SelectionDirective extends Selection {
|
|
|
31
31
|
super.destroy();
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
SelectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SelectionDirective, deps: [{ token: i1.
|
|
34
|
+
SelectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SelectionDirective, deps: [{ token: i1.ProviderService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
35
35
|
SelectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SelectionDirective, selector: "[kendoGridSelectBy]", usesInheritance: true, ngImport: i0 });
|
|
36
36
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SelectionDirective, decorators: [{
|
|
37
37
|
type: Directive,
|
|
38
38
|
args: [{
|
|
39
39
|
selector: '[kendoGridSelectBy]'
|
|
40
40
|
}]
|
|
41
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
41
|
+
}], ctorParameters: function () { return [{ type: i1.ProviderService }, { type: i0.ChangeDetectorRef }]; } });
|
|
@@ -7,7 +7,7 @@ import { ExcelExportData, ColumnBase, CellOptions } from '@progress/kendo-angula
|
|
|
7
7
|
import { GridComponent } from '../grid.component';
|
|
8
8
|
import { ExcelService } from './excel.service';
|
|
9
9
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
|
-
import { FetchDataCallback } from '
|
|
10
|
+
import { FetchDataCallback } from '../common/fetch-data-callback';
|
|
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 %})).
|
|
@@ -2822,7 +2822,7 @@ const packageMetadata = {
|
|
|
2822
2822
|
name: '@progress/kendo-angular-grid',
|
|
2823
2823
|
productName: 'Kendo UI for Angular',
|
|
2824
2824
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
2825
|
-
publishDate:
|
|
2825
|
+
publishDate: 1648801798,
|
|
2826
2826
|
version: '',
|
|
2827
2827
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
2828
2828
|
};
|
|
@@ -4847,12 +4847,23 @@ class PairSet {
|
|
|
4847
4847
|
}
|
|
4848
4848
|
}
|
|
4849
4849
|
|
|
4850
|
+
/**
|
|
4851
|
+
* @hidden
|
|
4852
|
+
*/
|
|
4853
|
+
class ProviderService {
|
|
4854
|
+
}
|
|
4855
|
+
ProviderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProviderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4856
|
+
ProviderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProviderService });
|
|
4857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProviderService, decorators: [{
|
|
4858
|
+
type: Injectable
|
|
4859
|
+
}] });
|
|
4860
|
+
|
|
4850
4861
|
/**
|
|
4851
4862
|
* @hidden
|
|
4852
4863
|
*/
|
|
4853
4864
|
class Selection {
|
|
4854
|
-
constructor(
|
|
4855
|
-
this.
|
|
4865
|
+
constructor(ctx, cd) {
|
|
4866
|
+
this.ctx = ctx;
|
|
4856
4867
|
this.cd = cd;
|
|
4857
4868
|
/**
|
|
4858
4869
|
* Defines the collection that will store the selected item keys.
|
|
@@ -4867,7 +4878,7 @@ class Selection {
|
|
|
4867
4878
|
this.init();
|
|
4868
4879
|
}
|
|
4869
4880
|
get isCellSelectionMode() {
|
|
4870
|
-
return isPresent(this.grid.selectable) && this.grid.selectable['cell'];
|
|
4881
|
+
return isPresent(this.ctx.grid.selectable) && this.ctx.grid.selectable['cell'];
|
|
4871
4882
|
}
|
|
4872
4883
|
ngOnChanges(changes) {
|
|
4873
4884
|
// skip reinitialization if the user data is the same as the last state change
|
|
@@ -4876,11 +4887,11 @@ class Selection {
|
|
|
4876
4887
|
}
|
|
4877
4888
|
}
|
|
4878
4889
|
init() {
|
|
4879
|
-
if (!isPresent(this.grid.rowSelected)) {
|
|
4880
|
-
this.grid.rowSelected = (row) => this.rowSelectionState.has(this.getItemKey(row));
|
|
4890
|
+
if (!isPresent(this.ctx.grid.rowSelected)) {
|
|
4891
|
+
this.ctx.grid.rowSelected = (row) => this.rowSelectionState.has(this.getItemKey(row));
|
|
4881
4892
|
}
|
|
4882
|
-
if (!isPresent(this.grid.cellSelected)) {
|
|
4883
|
-
this.grid.cellSelected = (row, column, colIndex) => {
|
|
4893
|
+
if (!isPresent(this.ctx.grid.cellSelected)) {
|
|
4894
|
+
this.ctx.grid.cellSelected = (row, column, colIndex) => {
|
|
4884
4895
|
const contender = this.getSelectionItem(row, column, colIndex);
|
|
4885
4896
|
return {
|
|
4886
4897
|
selected: this.cellSelectionState.has(contender.itemKey, contender.columnKey),
|
|
@@ -4888,7 +4899,7 @@ class Selection {
|
|
|
4888
4899
|
};
|
|
4889
4900
|
};
|
|
4890
4901
|
}
|
|
4891
|
-
this.selectionChangeSubscription = this.grid
|
|
4902
|
+
this.selectionChangeSubscription = this.ctx.grid
|
|
4892
4903
|
.selectionChange
|
|
4893
4904
|
.subscribe(this.onSelectionChange.bind(this));
|
|
4894
4905
|
}
|
|
@@ -4941,7 +4952,7 @@ class Selection {
|
|
|
4941
4952
|
const itemKey = this.getItemKey(item);
|
|
4942
4953
|
this.rowSelectionState.delete(itemKey);
|
|
4943
4954
|
});
|
|
4944
|
-
if (this.grid.selectableSettings.mode === "single" && this.rowSelectionState.size > 0) {
|
|
4955
|
+
if (this.ctx.grid.selectableSettings.mode === "single" && this.rowSelectionState.size > 0) {
|
|
4945
4956
|
this.reset();
|
|
4946
4957
|
}
|
|
4947
4958
|
selection.selectedRows.forEach((item) => {
|
|
@@ -4953,7 +4964,7 @@ class Selection {
|
|
|
4953
4964
|
selection.deselectedCells.forEach(({ itemKey, columnKey }) => {
|
|
4954
4965
|
this.cellSelectionState.delete(itemKey, columnKey);
|
|
4955
4966
|
});
|
|
4956
|
-
if (this.grid.selectableSettings.mode === "single" && this.cellSelectionState.size > 0) {
|
|
4967
|
+
if (this.ctx.grid.selectableSettings.mode === "single" && this.cellSelectionState.size > 0) {
|
|
4957
4968
|
this.reset();
|
|
4958
4969
|
}
|
|
4959
4970
|
selection.selectedCells.forEach(({ itemKey, columnKey }) => {
|
|
@@ -4982,7 +4993,7 @@ class Selection {
|
|
|
4982
4993
|
Array.from(this.rowSelectionState);
|
|
4983
4994
|
}
|
|
4984
4995
|
}
|
|
4985
|
-
Selection.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Selection, deps: [{ token:
|
|
4996
|
+
Selection.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Selection, deps: [{ token: ProviderService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4986
4997
|
Selection.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: Selection, selector: "kendo-grid-selection-base", inputs: { selectedKeys: "selectedKeys", selectionKey: ["kendoGridSelectBy", "selectionKey"], columnKey: "columnKey" }, outputs: { selectedKeysChange: "selectedKeysChange" }, usesOnChanges: true, ngImport: i0 });
|
|
4987
4998
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Selection, decorators: [{
|
|
4988
4999
|
type: Directive,
|
|
@@ -4990,7 +5001,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4990
5001
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
4991
5002
|
selector: 'kendo-grid-selection-base'
|
|
4992
5003
|
}]
|
|
4993
|
-
}], ctorParameters: function () { return [{ type:
|
|
5004
|
+
}], ctorParameters: function () { return [{ type: ProviderService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { selectedKeys: [{
|
|
4994
5005
|
type: Input
|
|
4995
5006
|
}], selectionKey: [{
|
|
4996
5007
|
type: Input,
|
|
@@ -6486,17 +6497,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
6486
6497
|
type: Optional
|
|
6487
6498
|
}] }]; } });
|
|
6488
6499
|
|
|
6489
|
-
/**
|
|
6490
|
-
* @hidden
|
|
6491
|
-
*/
|
|
6492
|
-
class ProviderService {
|
|
6493
|
-
}
|
|
6494
|
-
ProviderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProviderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6495
|
-
ProviderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProviderService });
|
|
6496
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProviderService, decorators: [{
|
|
6497
|
-
type: Injectable
|
|
6498
|
-
}] });
|
|
6499
|
-
|
|
6500
6500
|
/**
|
|
6501
6501
|
* Creates a loading template that overrides the default loading indicator of the Grid Component.
|
|
6502
6502
|
* To define a loading template, nest an `<ng-template>` tag with the `kendoGridLoadingTemplate` directive inside the `<kendo-grid>` tag
|
|
@@ -19668,7 +19668,7 @@ class GridComponent {
|
|
|
19668
19668
|
return;
|
|
19669
19669
|
}
|
|
19670
19670
|
if (!this.selectionDirective && !isPresent(this.defaultSelection)) {
|
|
19671
|
-
this.defaultSelection = new Selection(this, this.changeDetectorRef);
|
|
19671
|
+
this.defaultSelection = new Selection(this.providerService, this.changeDetectorRef);
|
|
19672
19672
|
}
|
|
19673
19673
|
const cellSelectionMode = this.selectable['cell'];
|
|
19674
19674
|
const activeService = cellSelectionMode ? this.cellSelectionService : this.selectionService;
|
|
@@ -21407,18 +21407,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
21407
21407
|
* ([see example]({% slug selection_grid %}#toc-during-data-operations)).
|
|
21408
21408
|
*/
|
|
21409
21409
|
class SelectionDirective extends Selection {
|
|
21410
|
-
constructor(
|
|
21411
|
-
super(
|
|
21412
|
-
this.
|
|
21410
|
+
constructor(ctx, cd) {
|
|
21411
|
+
super(ctx, cd);
|
|
21412
|
+
this.ctx = ctx;
|
|
21413
21413
|
}
|
|
21414
21414
|
/**
|
|
21415
21415
|
* @hidden
|
|
21416
21416
|
*/
|
|
21417
21417
|
ngOnInit() {
|
|
21418
|
-
if (this.grid.selectable === false) {
|
|
21419
|
-
this.grid.selectable = true;
|
|
21418
|
+
if (this.ctx.grid.selectable === false) {
|
|
21419
|
+
this.ctx.grid.selectable = true;
|
|
21420
21420
|
}
|
|
21421
|
-
this.grid.selectionDirective = this;
|
|
21421
|
+
this.ctx.grid.selectionDirective = this;
|
|
21422
21422
|
}
|
|
21423
21423
|
/**
|
|
21424
21424
|
* @hidden
|
|
@@ -21427,14 +21427,14 @@ class SelectionDirective extends Selection {
|
|
|
21427
21427
|
super.destroy();
|
|
21428
21428
|
}
|
|
21429
21429
|
}
|
|
21430
|
-
SelectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SelectionDirective, deps: [{ token:
|
|
21430
|
+
SelectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SelectionDirective, deps: [{ token: ProviderService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21431
21431
|
SelectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SelectionDirective, selector: "[kendoGridSelectBy]", usesInheritance: true, ngImport: i0 });
|
|
21432
21432
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SelectionDirective, decorators: [{
|
|
21433
21433
|
type: Directive,
|
|
21434
21434
|
args: [{
|
|
21435
21435
|
selector: '[kendoGridSelectBy]'
|
|
21436
21436
|
}]
|
|
21437
|
-
}], ctorParameters: function () { return [{ type:
|
|
21437
|
+
}], ctorParameters: function () { return [{ type: ProviderService }, { type: i0.ChangeDetectorRef }]; } });
|
|
21438
21438
|
|
|
21439
21439
|
/**
|
|
21440
21440
|
* A directive which controls the expanded state of the master detail rows.
|
|
@@ -7,7 +7,7 @@ import { FilterService } from './filter.service';
|
|
|
7
7
|
import { CompositeFilterDescriptor, FilterDescriptor } from '@progress/kendo-data-query';
|
|
8
8
|
import { FilterOperatorBase } from './operators/filter-operator.base';
|
|
9
9
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
|
-
import { FilterOperator } from '
|
|
10
|
+
import { FilterOperator } from '../common/filter-operator.interface';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
13
|
* @hidden
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-grid",
|
|
3
|
-
"version": "7.0.0-next.
|
|
3
|
+
"version": "7.0.0-next.202204010834",
|
|
4
4
|
"description": "Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -22,7 +22,7 @@ import { ColumnReorderService } from '../../dragdrop/column-reorder.service';
|
|
|
22
22
|
import { SortService } from '../../common/sort.service';
|
|
23
23
|
import { FilterMenuComponent } from '../../filtering/menu/filter-menu.component';
|
|
24
24
|
import { ColumnMenuComponent } from '../../column-menu/column-menu.component';
|
|
25
|
-
import { ColumnMenuSettings } from '
|
|
25
|
+
import { ColumnMenuSettings } from '../../column-menu/column-menu-settings.interface';
|
|
26
26
|
import * as i0 from "@angular/core";
|
|
27
27
|
/**
|
|
28
28
|
* @hidden
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { EventEmitter, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
6
|
-
import { GridComponent } from "../grid.component";
|
|
7
6
|
import { Subscription } from "rxjs";
|
|
8
7
|
import { RowArgs } from "../rendering/common/row-args";
|
|
9
8
|
import { SelectionEvent, CellSelectionItem } from "./types";
|
|
10
9
|
import { ColumnComponent } from '../columns/column.component';
|
|
11
10
|
import { PairSet } from './pair-set';
|
|
11
|
+
import { ProviderService } from '../common/provider.service';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
/**
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
16
|
export declare class Selection {
|
|
17
|
-
protected
|
|
17
|
+
protected ctx: ProviderService;
|
|
18
18
|
protected cd: ChangeDetectorRef;
|
|
19
19
|
/**
|
|
20
20
|
* Defines the collection that will store the selected item keys.
|
|
@@ -40,7 +40,7 @@ export declare class Selection {
|
|
|
40
40
|
protected lastSelectionState: any[];
|
|
41
41
|
protected selectionChangeSubscription: Subscription;
|
|
42
42
|
private get isCellSelectionMode();
|
|
43
|
-
constructor(
|
|
43
|
+
constructor(ctx: ProviderService, cd: ChangeDetectorRef);
|
|
44
44
|
ngOnChanges(changes: SimpleChanges): void;
|
|
45
45
|
protected init(): void;
|
|
46
46
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { ProviderService } from '../common/provider.service';
|
|
7
7
|
import { Selection } from "./selection-default";
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
@@ -11,8 +11,8 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* ([see example]({% slug selection_grid %}#toc-during-data-operations)).
|
|
12
12
|
*/
|
|
13
13
|
export declare class SelectionDirective extends Selection implements OnInit, OnDestroy {
|
|
14
|
-
protected
|
|
15
|
-
constructor(
|
|
14
|
+
protected ctx: ProviderService;
|
|
15
|
+
constructor(ctx: ProviderService, cd: ChangeDetectorRef);
|
|
16
16
|
/**
|
|
17
17
|
* @hidden
|
|
18
18
|
*/
|