@progress/kendo-angular-grid 12.2.0-develop.6 → 13.0.0-develop.1
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
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
import { Component, Input, NgZone, Renderer2, ChangeDetectorRef } from '@angular/core';
|
|
6
6
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
7
7
|
import { ColumnInfoService } from '../common/column-info.service';
|
|
8
|
-
import { LocalizationService } from "@progress/kendo-angular-l10n";
|
|
9
8
|
import { closest } from '../rendering/common/dom-queries';
|
|
10
9
|
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
11
10
|
import { columnsIcon } from '@progress/kendo-svg-icons';
|
|
11
|
+
import { ContextService } from '../common/provider.service';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "
|
|
13
|
+
import * as i1 from "../common/provider.service";
|
|
14
14
|
import * as i2 from "../common/column-info.service";
|
|
15
15
|
import * as i3 from "@progress/kendo-angular-popup";
|
|
16
16
|
import * as i4 from "@progress/kendo-angular-buttons";
|
|
17
17
|
import * as i5 from "./column-list.component";
|
|
18
18
|
/**
|
|
19
|
-
* Represents the component for toggling the
|
|
19
|
+
* Represents the component for toggling the Grid columns visibility. [See example](slug:columnmenu_grid#toc-using-standalone-column-chooser).
|
|
20
20
|
* To show and hide the columns without including the column chooser item in the [Column Menu](slug:columnmenu_grid),
|
|
21
21
|
* add the component inside the [ToolbarTemplate](slug:toolbartemplate_grid) directive.
|
|
22
22
|
*
|
|
@@ -31,8 +31,8 @@ import * as i5 from "./column-list.component";
|
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
33
|
export class ColumnChooserComponent {
|
|
34
|
-
constructor(
|
|
35
|
-
this.
|
|
34
|
+
constructor(ctx, columnInfoService, popupService, ngZone, renderer, changeDetector) {
|
|
35
|
+
this.ctx = ctx;
|
|
36
36
|
this.columnInfoService = columnInfoService;
|
|
37
37
|
this.popupService = popupService;
|
|
38
38
|
this.ngZone = ngZone;
|
|
@@ -66,7 +66,7 @@ export class ColumnChooserComponent {
|
|
|
66
66
|
*/
|
|
67
67
|
toggle(anchor, template) {
|
|
68
68
|
if (!this.popupRef) {
|
|
69
|
-
const direction = this.localization.rtl ? 'right' : 'left';
|
|
69
|
+
const direction = this.ctx.localization.rtl ? 'right' : 'left';
|
|
70
70
|
this.popupRef = this.popupService.open({
|
|
71
71
|
anchor: anchor.element,
|
|
72
72
|
content: template,
|
|
@@ -74,7 +74,7 @@ export class ColumnChooserComponent {
|
|
|
74
74
|
anchorAlign: { vertical: 'bottom', horizontal: direction },
|
|
75
75
|
popupAlign: { vertical: 'top', horizontal: direction }
|
|
76
76
|
});
|
|
77
|
-
this.renderer.setAttribute(this.popupRef.popupElement, 'dir', this.localization.rtl ? 'rtl' : 'ltr');
|
|
77
|
+
this.renderer.setAttribute(this.popupRef.popupElement, 'dir', this.ctx.localization.rtl ? 'rtl' : 'ltr');
|
|
78
78
|
if (!isDocumentAvailable()) {
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
@@ -119,22 +119,22 @@ export class ColumnChooserComponent {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
ColumnChooserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnChooserComponent, deps: [{ token: i1.
|
|
122
|
+
ColumnChooserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnChooserComponent, deps: [{ token: i1.ContextService }, { token: i2.ColumnInfoService }, { token: i3.PopupService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
123
123
|
ColumnChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ColumnChooserComponent, selector: "kendo-grid-column-chooser", inputs: { autoSync: "autoSync", allowHideAll: "allowHideAll" }, ngImport: i0, template: `
|
|
124
124
|
<button #anchor
|
|
125
125
|
kendoButton
|
|
126
126
|
type="button"
|
|
127
127
|
(click)="toggle(anchor, template)"
|
|
128
128
|
fillMode="flat"
|
|
129
|
-
[attr.title]="localization.get('columns')"
|
|
129
|
+
[attr.title]="ctx.localization.get('columns')"
|
|
130
130
|
icon="columns"
|
|
131
131
|
[svgIcon]="columnsIcon"></button>
|
|
132
132
|
<ng-template #template>
|
|
133
|
-
<span class='k-column-chooser-title'>{{ localization.get('columns') }}</span>
|
|
133
|
+
<span class='k-column-chooser-title'>{{ ctx.localization.get('columns') }}</span>
|
|
134
134
|
<kendo-grid-columnlist
|
|
135
135
|
[columns]="columns"
|
|
136
|
-
[applyText]="localization.get('columnsApply')"
|
|
137
|
-
[resetText]="localization.get('columnsReset')"
|
|
136
|
+
[applyText]="ctx.localization.get('columnsApply')"
|
|
137
|
+
[resetText]="ctx.localization.get('columnsReset')"
|
|
138
138
|
[autoSync]="autoSync"
|
|
139
139
|
[allowHideAll]="allowHideAll"
|
|
140
140
|
(apply)="onApply($event)"
|
|
@@ -152,15 +152,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
152
152
|
type="button"
|
|
153
153
|
(click)="toggle(anchor, template)"
|
|
154
154
|
fillMode="flat"
|
|
155
|
-
[attr.title]="localization.get('columns')"
|
|
155
|
+
[attr.title]="ctx.localization.get('columns')"
|
|
156
156
|
icon="columns"
|
|
157
157
|
[svgIcon]="columnsIcon"></button>
|
|
158
158
|
<ng-template #template>
|
|
159
|
-
<span class='k-column-chooser-title'>{{ localization.get('columns') }}</span>
|
|
159
|
+
<span class='k-column-chooser-title'>{{ ctx.localization.get('columns') }}</span>
|
|
160
160
|
<kendo-grid-columnlist
|
|
161
161
|
[columns]="columns"
|
|
162
|
-
[applyText]="localization.get('columnsApply')"
|
|
163
|
-
[resetText]="localization.get('columnsReset')"
|
|
162
|
+
[applyText]="ctx.localization.get('columnsApply')"
|
|
163
|
+
[resetText]="ctx.localization.get('columnsReset')"
|
|
164
164
|
[autoSync]="autoSync"
|
|
165
165
|
[allowHideAll]="allowHideAll"
|
|
166
166
|
(apply)="onApply($event)"
|
|
@@ -169,7 +169,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
169
169
|
</ng-template>
|
|
170
170
|
`
|
|
171
171
|
}]
|
|
172
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
172
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i2.ColumnInfoService }, { type: i3.PopupService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { autoSync: [{
|
|
173
173
|
type: Input
|
|
174
174
|
}], allowHideAll: [{
|
|
175
175
|
type: Input
|
|
@@ -3,24 +3,23 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, isDevMode } from '@angular/core';
|
|
6
|
-
import {
|
|
7
|
-
import { displayInlineBlockIcon } from '@progress/kendo-svg-icons';
|
|
6
|
+
import { displayInlineFlexIcon } from '@progress/kendo-svg-icons';
|
|
8
7
|
import { ColunnMenuErrorMessages } from '../common/error-messages';
|
|
9
8
|
import { ContextService } from '../common/provider.service';
|
|
10
9
|
import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
11
10
|
import { autoSizeColumn } from './utils';
|
|
12
11
|
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "
|
|
14
|
-
import * as i2 from "
|
|
15
|
-
import * as i3 from "
|
|
16
|
-
import * as i4 from "@angular/common";
|
|
12
|
+
import * as i1 from "../common/provider.service";
|
|
13
|
+
import * as i2 from "./column-menu-item.component";
|
|
14
|
+
import * as i3 from "@angular/common";
|
|
17
15
|
/**
|
|
18
16
|
* Represents the column-menu item for resizing all columns to the minimum possible width so that they fit the widest header or cell content without wrapping.
|
|
19
17
|
* [See example](slug:columnmenu_grid#toc-autosize-all-columns-item).
|
|
20
|
-
*
|
|
21
18
|
* The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
22
|
-
*
|
|
23
|
-
*
|
|
19
|
+
* [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
20
|
+
*
|
|
21
|
+
* You have to set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by
|
|
22
|
+
* the template to the `service` input of the `kendo-grid-columnmenu-autosize-all-columns` component.
|
|
24
23
|
*
|
|
25
24
|
* @example
|
|
26
25
|
* ```html
|
|
@@ -33,11 +32,10 @@ import * as i4 from "@angular/common";
|
|
|
33
32
|
* ```
|
|
34
33
|
*/
|
|
35
34
|
export class ColumnMenuAutoSizeAllColumnsComponent extends ColumnMenuItemBase {
|
|
36
|
-
constructor(
|
|
35
|
+
constructor(ctx) {
|
|
37
36
|
super();
|
|
38
|
-
this.localization = localization;
|
|
39
37
|
this.ctx = ctx;
|
|
40
|
-
this.
|
|
38
|
+
this.displayInlineFlexIcon = displayInlineFlexIcon;
|
|
41
39
|
}
|
|
42
40
|
ngOnInit() {
|
|
43
41
|
const isVirtualColumns = this.ctx.grid.columnMenuTemplate && this.ctx.grid.virtualColumns;
|
|
@@ -52,16 +50,16 @@ export class ColumnMenuAutoSizeAllColumnsComponent extends ColumnMenuItemBase {
|
|
|
52
50
|
autoSizeColumn(this.ctx.grid, this.service);
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
|
-
ColumnMenuAutoSizeAllColumnsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuAutoSizeAllColumnsComponent, deps: [{ token: i1.
|
|
53
|
+
ColumnMenuAutoSizeAllColumnsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuAutoSizeAllColumnsComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
56
54
|
ColumnMenuAutoSizeAllColumnsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ColumnMenuAutoSizeAllColumnsComponent, selector: "kendo-grid-columnmenu-autosize-all-columns", usesInheritance: true, ngImport: i0, template: `
|
|
57
55
|
<kendo-grid-columnmenu-item
|
|
58
56
|
*ngIf="!this.ctx.grid.virtualColumns"
|
|
59
|
-
[text]="localization.get('autosizeAllColumns')"
|
|
60
|
-
icon="display-inline-
|
|
61
|
-
[svgIcon]="
|
|
57
|
+
[text]="ctx.localization.get('autosizeAllColumns')"
|
|
58
|
+
icon="display-inline-flex"
|
|
59
|
+
[svgIcon]="displayInlineFlexIcon"
|
|
62
60
|
(itemClick)="autoSizeAllColumns()"
|
|
63
61
|
></kendo-grid-columnmenu-item>
|
|
64
|
-
`, isInline: true, components: [{ type:
|
|
62
|
+
`, isInline: true, components: [{ type: i2.ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
65
63
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuAutoSizeAllColumnsComponent, decorators: [{
|
|
66
64
|
type: Component,
|
|
67
65
|
args: [{
|
|
@@ -69,11 +67,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
69
67
|
template: `
|
|
70
68
|
<kendo-grid-columnmenu-item
|
|
71
69
|
*ngIf="!this.ctx.grid.virtualColumns"
|
|
72
|
-
[text]="localization.get('autosizeAllColumns')"
|
|
73
|
-
icon="display-inline-
|
|
74
|
-
[svgIcon]="
|
|
70
|
+
[text]="ctx.localization.get('autosizeAllColumns')"
|
|
71
|
+
icon="display-inline-flex"
|
|
72
|
+
[svgIcon]="displayInlineFlexIcon"
|
|
75
73
|
(itemClick)="autoSizeAllColumns()"
|
|
76
74
|
></kendo-grid-columnmenu-item>
|
|
77
75
|
`
|
|
78
76
|
}]
|
|
79
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
77
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; } });
|
|
@@ -3,17 +3,15 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, isDevMode } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from "@progress/kendo-angular-l10n";
|
|
7
6
|
import { maxWidthIcon } from '@progress/kendo-svg-icons';
|
|
8
7
|
import { ColunnMenuErrorMessages } from '../common/error-messages';
|
|
9
8
|
import { ContextService } from '../common/provider.service';
|
|
10
9
|
import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
11
10
|
import { autoSizeColumn } from './utils';
|
|
12
11
|
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "
|
|
14
|
-
import * as i2 from "
|
|
15
|
-
import * as i3 from "
|
|
16
|
-
import * as i4 from "@angular/common";
|
|
12
|
+
import * as i1 from "../common/provider.service";
|
|
13
|
+
import * as i2 from "./column-menu-item.component";
|
|
14
|
+
import * as i3 from "@angular/common";
|
|
17
15
|
/**
|
|
18
16
|
* Represents the column-menu item for resizing the specified column to the minimum possible width so that it fits the header or cell content without wrapping.
|
|
19
17
|
* [See example](slug:slug:columnmenu_grid#toc-autosize-column-item).
|
|
@@ -34,9 +32,8 @@ import * as i4 from "@angular/common";
|
|
|
34
32
|
* ```
|
|
35
33
|
*/
|
|
36
34
|
export class ColumnMenuAutoSizeColumnComponent extends ColumnMenuItemBase {
|
|
37
|
-
constructor(
|
|
35
|
+
constructor(ctx) {
|
|
38
36
|
super();
|
|
39
|
-
this.localization = localization;
|
|
40
37
|
this.ctx = ctx;
|
|
41
38
|
this.maxWidthIcon = maxWidthIcon;
|
|
42
39
|
}
|
|
@@ -53,17 +50,17 @@ export class ColumnMenuAutoSizeColumnComponent extends ColumnMenuItemBase {
|
|
|
53
50
|
autoSizeColumn(this.ctx.grid, this.service, this.column);
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
|
-
ColumnMenuAutoSizeColumnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuAutoSizeColumnComponent, deps: [{ token: i1.
|
|
53
|
+
ColumnMenuAutoSizeColumnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuAutoSizeColumnComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
57
54
|
ColumnMenuAutoSizeColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ColumnMenuAutoSizeColumnComponent, selector: "kendo-grid-columnmenu-autosize-column", inputs: { column: "column" }, usesInheritance: true, ngImport: i0, template: `
|
|
58
55
|
<kendo-grid-columnmenu-item
|
|
59
56
|
*ngIf="!this.ctx.grid.virtualColumns"
|
|
60
57
|
class="k-grid-columnmenu-autosize-column"
|
|
61
|
-
[text]="localization.get('autosizeThisColumn')"
|
|
58
|
+
[text]="ctx.localization.get('autosizeThisColumn')"
|
|
62
59
|
icon="max-width"
|
|
63
60
|
[svgIcon]="maxWidthIcon"
|
|
64
61
|
(itemClick)="autoSizeColumn()"
|
|
65
62
|
></kendo-grid-columnmenu-item>
|
|
66
|
-
`, isInline: true, components: [{ type:
|
|
63
|
+
`, isInline: true, components: [{ type: i2.ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
67
64
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuAutoSizeColumnComponent, decorators: [{
|
|
68
65
|
type: Component,
|
|
69
66
|
args: [{
|
|
@@ -72,13 +69,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
72
69
|
<kendo-grid-columnmenu-item
|
|
73
70
|
*ngIf="!this.ctx.grid.virtualColumns"
|
|
74
71
|
class="k-grid-columnmenu-autosize-column"
|
|
75
|
-
[text]="localization.get('autosizeThisColumn')"
|
|
72
|
+
[text]="ctx.localization.get('autosizeThisColumn')"
|
|
76
73
|
icon="max-width"
|
|
77
74
|
[svgIcon]="maxWidthIcon"
|
|
78
75
|
(itemClick)="autoSizeColumn()"
|
|
79
76
|
></kendo-grid-columnmenu-item>
|
|
80
77
|
`
|
|
81
78
|
}]
|
|
82
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
79
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; }, propDecorators: { column: [{
|
|
83
80
|
type: Input
|
|
84
81
|
}] } });
|
|
@@ -4,21 +4,22 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, Output, EventEmitter, ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
6
6
|
import { ColumnInfoService } from '../common/column-info.service';
|
|
7
|
-
import { LocalizationService } from "@progress/kendo-angular-l10n";
|
|
8
7
|
import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
9
8
|
import { columnsIcon } from '@progress/kendo-svg-icons';
|
|
9
|
+
import { ContextService } from '../common/provider.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "
|
|
11
|
+
import * as i1 from "../common/provider.service";
|
|
12
12
|
import * as i2 from "../common/column-info.service";
|
|
13
13
|
import * as i3 from "./column-menu-item.component";
|
|
14
14
|
import * as i4 from "./column-list.component";
|
|
15
15
|
import * as i5 from "./column-menu-item-content-template.directive";
|
|
16
16
|
/**
|
|
17
17
|
* Represents the column-menu item for selecting columns in the Grid. [See example](slug:columnmenu_grid#toc-column-chooser-item).
|
|
18
|
-
*
|
|
19
18
|
* The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
20
|
+
*
|
|
21
|
+
* You have to set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by
|
|
22
|
+
* the template to the service input of the `kendo-grid-columnmenu-chooser` component.
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
24
25
|
* ```html
|
|
@@ -30,9 +31,9 @@ import * as i5 from "./column-menu-item-content-template.directive";
|
|
|
30
31
|
* ```
|
|
31
32
|
*/
|
|
32
33
|
export class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
33
|
-
constructor(
|
|
34
|
+
constructor(ctx, columnInfoService, changeDetector, hostElement) {
|
|
34
35
|
super();
|
|
35
|
-
this.
|
|
36
|
+
this.ctx = ctx;
|
|
36
37
|
this.columnInfoService = columnInfoService;
|
|
37
38
|
this.changeDetector = changeDetector;
|
|
38
39
|
this.hostElement = hostElement;
|
|
@@ -90,10 +91,10 @@ export class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
|
90
91
|
this.expand.emit();
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
|
-
ColumnMenuChooserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuChooserComponent, deps: [{ token: i1.
|
|
94
|
+
ColumnMenuChooserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuChooserComponent, deps: [{ token: i1.ContextService }, { token: i2.ColumnInfoService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
94
95
|
ColumnMenuChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ColumnMenuChooserComponent, selector: "kendo-grid-columnmenu-chooser", inputs: { expanded: "expanded", isLast: "isLast" }, outputs: { expand: "expand", collapse: "collapse" }, usesInheritance: true, ngImport: i0, template: `
|
|
95
96
|
<kendo-grid-columnmenu-item
|
|
96
|
-
[text]="localization.get('columns')"
|
|
97
|
+
[text]="ctx.localization.get('columns')"
|
|
97
98
|
icon="columns"
|
|
98
99
|
[svgIcon]="columnsIcon"
|
|
99
100
|
[expanded]="expanded"
|
|
@@ -101,8 +102,8 @@ ColumnMenuChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
101
102
|
(expand)="onExpand()">
|
|
102
103
|
<ng-template kendoGridColumnMenuItemContentTemplate>
|
|
103
104
|
<kendo-grid-columnlist
|
|
104
|
-
[applyText]="localization.get('columnsApply')"
|
|
105
|
-
[resetText]="localization.get('columnsReset')"
|
|
105
|
+
[applyText]="ctx.localization.get('columnsApply')"
|
|
106
|
+
[resetText]="ctx.localization.get('columnsReset')"
|
|
106
107
|
[columns]="columns"
|
|
107
108
|
[autoSync]="false"
|
|
108
109
|
[allowHideAll]="false"
|
|
@@ -121,7 +122,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
121
122
|
selector: 'kendo-grid-columnmenu-chooser',
|
|
122
123
|
template: `
|
|
123
124
|
<kendo-grid-columnmenu-item
|
|
124
|
-
[text]="localization.get('columns')"
|
|
125
|
+
[text]="ctx.localization.get('columns')"
|
|
125
126
|
icon="columns"
|
|
126
127
|
[svgIcon]="columnsIcon"
|
|
127
128
|
[expanded]="expanded"
|
|
@@ -129,8 +130,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
129
130
|
(expand)="onExpand()">
|
|
130
131
|
<ng-template kendoGridColumnMenuItemContentTemplate>
|
|
131
132
|
<kendo-grid-columnlist
|
|
132
|
-
[applyText]="localization.get('columnsApply')"
|
|
133
|
-
[resetText]="localization.get('columnsReset')"
|
|
133
|
+
[applyText]="ctx.localization.get('columnsApply')"
|
|
134
|
+
[resetText]="ctx.localization.get('columnsReset')"
|
|
134
135
|
[columns]="columns"
|
|
135
136
|
[autoSync]="false"
|
|
136
137
|
[allowHideAll]="false"
|
|
@@ -144,7 +145,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
144
145
|
</kendo-grid-columnmenu-item>
|
|
145
146
|
`
|
|
146
147
|
}]
|
|
147
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
148
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i2.ColumnInfoService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { expand: [{
|
|
148
149
|
type: Output
|
|
149
150
|
}], collapse: [{
|
|
150
151
|
type: Output
|
|
@@ -3,20 +3,21 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, Output, EventEmitter, ElementRef } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from "@progress/kendo-angular-l10n";
|
|
7
6
|
import { filterIcon } from '@progress/kendo-svg-icons';
|
|
7
|
+
import { ContextService } from '../common/provider.service';
|
|
8
8
|
import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "
|
|
10
|
+
import * as i1 from "../common/provider.service";
|
|
11
11
|
import * as i2 from "./column-menu-item.component";
|
|
12
12
|
import * as i3 from "../filtering/menu/filter-menu-container.component";
|
|
13
13
|
import * as i4 from "./column-menu-item-content-template.directive";
|
|
14
14
|
/**
|
|
15
15
|
* Represents the column-menu item for editing column filters in the Grid. [See example](slug:columnmenu_grid#toc-filter-item).
|
|
16
|
-
*
|
|
17
16
|
* The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
18
|
+
*
|
|
19
|
+
* You have to set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by
|
|
20
|
+
* the template to the service input of the `kendo-grid-columnmenu-filter` component.
|
|
20
21
|
*
|
|
21
22
|
* @example
|
|
22
23
|
* ```html
|
|
@@ -29,9 +30,9 @@ import * as i4 from "./column-menu-item-content-template.directive";
|
|
|
29
30
|
* ```
|
|
30
31
|
*/
|
|
31
32
|
export class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
32
|
-
constructor(
|
|
33
|
+
constructor(ctx, hostElement) {
|
|
33
34
|
super();
|
|
34
|
-
this.
|
|
35
|
+
this.ctx = ctx;
|
|
35
36
|
this.hostElement = hostElement;
|
|
36
37
|
/**
|
|
37
38
|
* Fires when the content is expanded.
|
|
@@ -74,10 +75,10 @@ export class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
|
74
75
|
this.expand.emit();
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
|
-
ColumnMenuFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuFilterComponent, deps: [{ token: i1.
|
|
78
|
+
ColumnMenuFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuFilterComponent, deps: [{ token: i1.ContextService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
78
79
|
ColumnMenuFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ColumnMenuFilterComponent, selector: "kendo-grid-columnmenu-filter", inputs: { expanded: "expanded", isLast: "isLast" }, outputs: { expand: "expand", collapse: "collapse" }, usesInheritance: true, ngImport: i0, template: `
|
|
79
80
|
<kendo-grid-columnmenu-item
|
|
80
|
-
[text]="localization.get('filter')"
|
|
81
|
+
[text]="ctx.localization.get('filter')"
|
|
81
82
|
icon="filter"
|
|
82
83
|
[svgIcon]="filterIcon"
|
|
83
84
|
[expanded]="expanded"
|
|
@@ -103,7 +104,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
103
104
|
selector: 'kendo-grid-columnmenu-filter',
|
|
104
105
|
template: `
|
|
105
106
|
<kendo-grid-columnmenu-item
|
|
106
|
-
[text]="localization.get('filter')"
|
|
107
|
+
[text]="ctx.localization.get('filter')"
|
|
107
108
|
icon="filter"
|
|
108
109
|
[svgIcon]="filterIcon"
|
|
109
110
|
[expanded]="expanded"
|
|
@@ -124,7 +125,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
124
125
|
</kendo-grid-columnmenu-item>
|
|
125
126
|
`
|
|
126
127
|
}]
|
|
127
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
128
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i0.ElementRef }]; }, propDecorators: { expand: [{
|
|
128
129
|
type: Output
|
|
129
130
|
}], collapse: [{
|
|
130
131
|
type: Output
|
|
@@ -3,20 +3,21 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, ChangeDetectorRef } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from "@progress/kendo-angular-l10n";
|
|
7
6
|
import { lockIcon, unlockIcon } from '@progress/kendo-svg-icons';
|
|
8
7
|
import { ColumnInfoService } from '../common/column-info.service';
|
|
8
|
+
import { ContextService } from '../common/provider.service';
|
|
9
9
|
import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "
|
|
11
|
+
import * as i1 from "../common/provider.service";
|
|
12
12
|
import * as i2 from "../common/column-info.service";
|
|
13
13
|
import * as i3 from "./column-menu-item.component";
|
|
14
14
|
/**
|
|
15
15
|
* Represents the column-menu item for locking and unlocking columns in the Grid. [See example](slug:columnmenu_grid#toc-lock-and-unlock-items).
|
|
16
|
-
*
|
|
17
16
|
* The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
18
|
+
*
|
|
19
|
+
* You have to set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by
|
|
20
|
+
* the template to the service input of the `kendo-grid-columnmenu-lock` component.
|
|
20
21
|
*
|
|
21
22
|
* @example
|
|
22
23
|
* ```html
|
|
@@ -29,16 +30,16 @@ import * as i3 from "./column-menu-item.component";
|
|
|
29
30
|
* ```
|
|
30
31
|
*/
|
|
31
32
|
export class ColumnMenuLockComponent extends ColumnMenuItemBase {
|
|
32
|
-
constructor(
|
|
33
|
+
constructor(ctx, columnInfoService, changeDetector) {
|
|
33
34
|
super();
|
|
34
|
-
this.
|
|
35
|
+
this.ctx = ctx;
|
|
35
36
|
this.columnInfoService = columnInfoService;
|
|
36
37
|
this.changeDetector = changeDetector;
|
|
37
38
|
this.unlockIcon = unlockIcon;
|
|
38
39
|
this.lockIcon = lockIcon;
|
|
39
40
|
}
|
|
40
41
|
get text() {
|
|
41
|
-
return this.localization.get(this.locked ? 'unlock' : 'lock');
|
|
42
|
+
return this.ctx.localization.get(this.locked ? 'unlock' : 'lock');
|
|
42
43
|
}
|
|
43
44
|
get icon() {
|
|
44
45
|
return this.locked ? 'unlock' : 'lock';
|
|
@@ -78,7 +79,7 @@ export class ColumnMenuLockComponent extends ColumnMenuItemBase {
|
|
|
78
79
|
return this.service.column.locked;
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
|
-
ColumnMenuLockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuLockComponent, deps: [{ token: i1.
|
|
82
|
+
ColumnMenuLockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuLockComponent, deps: [{ token: i1.ContextService }, { token: i2.ColumnInfoService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
82
83
|
ColumnMenuLockComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ColumnMenuLockComponent, selector: "kendo-grid-columnmenu-lock", usesInheritance: true, ngImport: i0, template: `
|
|
83
84
|
<kendo-grid-columnmenu-item
|
|
84
85
|
[text]="text"
|
|
@@ -102,4 +103,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
102
103
|
</kendo-grid-columnmenu-item>
|
|
103
104
|
`
|
|
104
105
|
}]
|
|
105
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
106
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i2.ColumnInfoService }, { type: i0.ChangeDetectorRef }]; } });
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, Output, EventEmitter, ElementRef } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from "@progress/kendo-angular-l10n";
|
|
7
6
|
import { setColumnPositionIcon } from '@progress/kendo-svg-icons';
|
|
7
|
+
import { ContextService } from '../common/provider.service';
|
|
8
8
|
import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "
|
|
10
|
+
import * as i1 from "../common/provider.service";
|
|
11
11
|
import * as i2 from "./column-menu-item.component";
|
|
12
12
|
import * as i3 from "./column-menu-lock.component";
|
|
13
13
|
import * as i4 from "./column-menu-stick.component";
|
|
@@ -15,10 +15,11 @@ import * as i5 from "./column-menu-item-content-template.directive";
|
|
|
15
15
|
import * as i6 from "@angular/common";
|
|
16
16
|
/**
|
|
17
17
|
* Represents the column-menu item which combines the lock and sticky column functionalities.
|
|
18
|
-
*
|
|
18
|
+
* [See example](slug:columnmenu_grid#toc-set-column-position-item).
|
|
19
19
|
* The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
20
|
-
*
|
|
21
|
-
*
|
|
20
|
+
*
|
|
21
|
+
* You have to set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by
|
|
22
|
+
* the template to the service input of the `kendo-grid-columnmenu-filter` component.
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
24
25
|
* ```html
|
|
@@ -31,9 +32,9 @@ import * as i6 from "@angular/common";
|
|
|
31
32
|
* ```
|
|
32
33
|
*/
|
|
33
34
|
export class ColumnMenuPositionComponent extends ColumnMenuItemBase {
|
|
34
|
-
constructor(
|
|
35
|
+
constructor(ctx, hostElement) {
|
|
35
36
|
super();
|
|
36
|
-
this.
|
|
37
|
+
this.ctx = ctx;
|
|
37
38
|
this.hostElement = hostElement;
|
|
38
39
|
/**
|
|
39
40
|
* Fires when the content is expanded.
|
|
@@ -106,10 +107,10 @@ export class ColumnMenuPositionComponent extends ColumnMenuItemBase {
|
|
|
106
107
|
return menuItems[lastFocusableIndex];
|
|
107
108
|
}
|
|
108
109
|
}
|
|
109
|
-
ColumnMenuPositionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuPositionComponent, deps: [{ token: i1.
|
|
110
|
+
ColumnMenuPositionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuPositionComponent, deps: [{ token: i1.ContextService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
110
111
|
ColumnMenuPositionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ColumnMenuPositionComponent, selector: "kendo-grid-columnmenu-position", inputs: { expanded: "expanded", showLock: "showLock", showStick: "showStick", isLast: "isLast" }, outputs: { expand: "expand", collapse: "collapse" }, usesInheritance: true, ngImport: i0, template: `
|
|
111
112
|
<kendo-grid-columnmenu-item
|
|
112
|
-
[text]="localization.get('setColumnPosition')"
|
|
113
|
+
[text]="ctx.localization.get('setColumnPosition')"
|
|
113
114
|
icon="set-column-position"
|
|
114
115
|
[svgIcon]="setColumnPositionIcon"
|
|
115
116
|
[expanded]="expanded"
|
|
@@ -136,7 +137,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
136
137
|
selector: 'kendo-grid-columnmenu-position',
|
|
137
138
|
template: `
|
|
138
139
|
<kendo-grid-columnmenu-item
|
|
139
|
-
[text]="localization.get('setColumnPosition')"
|
|
140
|
+
[text]="ctx.localization.get('setColumnPosition')"
|
|
140
141
|
icon="set-column-position"
|
|
141
142
|
[svgIcon]="setColumnPositionIcon"
|
|
142
143
|
[expanded]="expanded"
|
|
@@ -158,7 +159,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
158
159
|
</kendo-grid-columnmenu-item>
|
|
159
160
|
`
|
|
160
161
|
}]
|
|
161
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
162
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i0.ElementRef }]; }, propDecorators: { expand: [{
|
|
162
163
|
type: Output
|
|
163
164
|
}], collapse: [{
|
|
164
165
|
type: Output
|