@progress/kendo-angular-grid 12.2.0-develop.7 → 13.0.0-develop.10
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 +2 -4
- package/column-menu/column-menu-autosize.component.d.ts +1 -3
- package/column-menu/column-menu-chooser.component.d.ts +3 -3
- package/column-menu/column-menu-filter.component.d.ts +3 -3
- package/column-menu/column-menu-lock.component.d.ts +3 -3
- package/column-menu/column-menu-position.component.d.ts +4 -4
- package/column-menu/column-menu-settings.interface.d.ts +5 -0
- package/column-menu/column-menu-sort.component.d.ts +6 -3
- 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-list.component.mjs +3 -3
- package/esm2020/column-menu/column-menu-autosize-all.component.mjs +15 -18
- package/esm2020/column-menu/column-menu-autosize.component.mjs +9 -12
- package/esm2020/column-menu/column-menu-chooser.component.mjs +13 -13
- package/esm2020/column-menu/column-menu-filter.component.mjs +9 -9
- package/esm2020/column-menu/column-menu-item.component.mjs +1 -1
- package/esm2020/column-menu/column-menu-lock.component.mjs +7 -7
- package/esm2020/column-menu/column-menu-position.component.mjs +9 -9
- package/esm2020/column-menu/column-menu-sort.component.mjs +13 -10
- 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 +7 -7
- package/esm2020/editing/cancel-command.directive.mjs +7 -7
- package/esm2020/editing/edit-command.directive.mjs +7 -7
- package/esm2020/editing/remove-command.directive.mjs +7 -7
- package/esm2020/editing/save-command.directive.mjs +7 -7
- package/esm2020/excel/excel-command.directive.mjs +7 -7
- 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 +20 -20
- package/esm2020/filtering/menu/filter-menu-input-wrapper.component.mjs +10 -8
- package/esm2020/filtering/menu/filter-menu.component.mjs +8 -8
- 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 +33 -15
- package/esm2020/grouping/group-header.component.mjs +32 -15
- 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 +25 -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 +14 -17
- package/esm2020/pager/pager-numeric-buttons.component.mjs +6 -6
- package/esm2020/pager/pager-page-sizes.component.mjs +7 -7
- package/esm2020/pager/pager-prev-buttons.component.mjs +14 -17
- package/esm2020/pager/pager.component.mjs +7 -7
- package/esm2020/pdf/pdf-command.directive.mjs +7 -7
- package/esm2020/rendering/cell.component.mjs +9 -9
- 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 +12 -12
- package/excel/excel-command.directive.d.ts +2 -2
- package/excel/excel.component.d.ts +3 -3
- package/fesm2015/progress-kendo-angular-grid.mjs +858 -558
- package/fesm2020/progress-kendo-angular-grid.mjs +855 -558
- 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 +8 -5
- 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 +12 -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 -5
- 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 -5
- 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
- package/scrolling/scroll-request.service.d.ts +6 -0
|
@@ -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
|
|
19
|
+
* Represents the component for toggling visibility of 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
|
|
@@ -20,7 +20,7 @@ export class ColumnListComponent {
|
|
|
20
20
|
this.columnChange = new EventEmitter();
|
|
21
21
|
this.autoSync = true;
|
|
22
22
|
this.allowHideAll = false;
|
|
23
|
-
this.actionsClass = 'k-actions';
|
|
23
|
+
this.actionsClass = 'k-actions k-actions-stretched k-actions-horizontal';
|
|
24
24
|
this.unlockedCount = 0;
|
|
25
25
|
}
|
|
26
26
|
get className() {
|
|
@@ -159,8 +159,8 @@ ColumnListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
159
159
|
</label>
|
|
160
160
|
</div>
|
|
161
161
|
<div [ngClass]="actionsClass" *ngIf="!autoSync">
|
|
162
|
-
<button type="button" class="k-button k-button-solid-base k-button-solid k-button-md k-rounded-md k-button-rectangle" (click)="cancelChanges()">{{ resetText }}</button>
|
|
163
162
|
<button #applyButton type="button" (keydown.tab)="onTab($event)" class="k-button k-button-solid-primary k-button-solid k-button-md k-rounded-md k-button-rectangle" (click)="applyChanges()">{{ applyText }}</button>
|
|
163
|
+
<button type="button" class="k-button k-button-solid-base k-button-solid k-button-md k-rounded-md k-button-rectangle" (click)="cancelChanges()">{{ resetText }}</button>
|
|
164
164
|
</div>
|
|
165
165
|
`, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
166
166
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnListComponent, decorators: [{
|
|
@@ -174,8 +174,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
174
174
|
</label>
|
|
175
175
|
</div>
|
|
176
176
|
<div [ngClass]="actionsClass" *ngIf="!autoSync">
|
|
177
|
-
<button type="button" class="k-button k-button-solid-base k-button-solid k-button-md k-rounded-md k-button-rectangle" (click)="cancelChanges()">{{ resetText }}</button>
|
|
178
177
|
<button #applyButton type="button" (keydown.tab)="onTab($event)" class="k-button k-button-solid-primary k-button-solid k-button-md k-rounded-md k-button-rectangle" (click)="applyChanges()">{{ applyText }}</button>
|
|
178
|
+
<button type="button" class="k-button k-button-solid-base k-button-solid k-button-md k-rounded-md k-button-rectangle" (click)="cancelChanges()">{{ resetText }}</button>
|
|
179
179
|
</div>
|
|
180
180
|
`
|
|
181
181
|
}]
|
|
@@ -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, 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).
|
|
@@ -33,11 +31,10 @@ import * as i4 from "@angular/common";
|
|
|
33
31
|
* ```
|
|
34
32
|
*/
|
|
35
33
|
export class ColumnMenuAutoSizeAllColumnsComponent extends ColumnMenuItemBase {
|
|
36
|
-
constructor(
|
|
34
|
+
constructor(ctx) {
|
|
37
35
|
super();
|
|
38
|
-
this.localization = localization;
|
|
39
36
|
this.ctx = ctx;
|
|
40
|
-
this.
|
|
37
|
+
this.displayInlineFlexIcon = displayInlineFlexIcon;
|
|
41
38
|
}
|
|
42
39
|
ngOnInit() {
|
|
43
40
|
const isVirtualColumns = this.ctx.grid.columnMenuTemplate && this.ctx.grid.virtualColumns;
|
|
@@ -52,16 +49,16 @@ export class ColumnMenuAutoSizeAllColumnsComponent extends ColumnMenuItemBase {
|
|
|
52
49
|
autoSizeColumn(this.ctx.grid, this.service);
|
|
53
50
|
}
|
|
54
51
|
}
|
|
55
|
-
ColumnMenuAutoSizeAllColumnsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuAutoSizeAllColumnsComponent, deps: [{ token: i1.
|
|
52
|
+
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
53
|
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
54
|
<kendo-grid-columnmenu-item
|
|
58
55
|
*ngIf="!this.ctx.grid.virtualColumns"
|
|
59
|
-
[text]="localization.get('autosizeAllColumns')"
|
|
60
|
-
icon="display-inline-
|
|
61
|
-
[svgIcon]="
|
|
56
|
+
[text]="ctx.localization.get('autosizeAllColumns')"
|
|
57
|
+
icon="display-inline-flex"
|
|
58
|
+
[svgIcon]="displayInlineFlexIcon"
|
|
62
59
|
(itemClick)="autoSizeAllColumns()"
|
|
63
60
|
></kendo-grid-columnmenu-item>
|
|
64
|
-
`, isInline: true, components: [{ type:
|
|
61
|
+
`, 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
62
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuAutoSizeAllColumnsComponent, decorators: [{
|
|
66
63
|
type: Component,
|
|
67
64
|
args: [{
|
|
@@ -69,11 +66,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
69
66
|
template: `
|
|
70
67
|
<kendo-grid-columnmenu-item
|
|
71
68
|
*ngIf="!this.ctx.grid.virtualColumns"
|
|
72
|
-
[text]="localization.get('autosizeAllColumns')"
|
|
73
|
-
icon="display-inline-
|
|
74
|
-
[svgIcon]="
|
|
69
|
+
[text]="ctx.localization.get('autosizeAllColumns')"
|
|
70
|
+
icon="display-inline-flex"
|
|
71
|
+
[svgIcon]="displayInlineFlexIcon"
|
|
75
72
|
(itemClick)="autoSizeAllColumns()"
|
|
76
73
|
></kendo-grid-columnmenu-item>
|
|
77
74
|
`
|
|
78
75
|
}]
|
|
79
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
76
|
+
}], 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,11 +4,11 @@
|
|
|
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";
|
|
@@ -30,9 +30,9 @@ import * as i5 from "./column-menu-item-content-template.directive";
|
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
32
|
export class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
33
|
-
constructor(
|
|
33
|
+
constructor(ctx, columnInfoService, changeDetector, hostElement) {
|
|
34
34
|
super();
|
|
35
|
-
this.
|
|
35
|
+
this.ctx = ctx;
|
|
36
36
|
this.columnInfoService = columnInfoService;
|
|
37
37
|
this.changeDetector = changeDetector;
|
|
38
38
|
this.hostElement = hostElement;
|
|
@@ -56,7 +56,7 @@ export class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
|
56
56
|
/**
|
|
57
57
|
* @hidden
|
|
58
58
|
*/
|
|
59
|
-
this.actionsClass = 'k-actions';
|
|
59
|
+
this.actionsClass = 'k-actions k-actions-stretched k-actions-horizontal';
|
|
60
60
|
this.columnsIcon = columnsIcon;
|
|
61
61
|
}
|
|
62
62
|
get columns() {
|
|
@@ -90,10 +90,10 @@ export class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
|
90
90
|
this.expand.emit();
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
ColumnMenuChooserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuChooserComponent, deps: [{ token: i1.
|
|
93
|
+
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
94
|
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
95
|
<kendo-grid-columnmenu-item
|
|
96
|
-
[text]="localization.get('columns')"
|
|
96
|
+
[text]="ctx.localization.get('columns')"
|
|
97
97
|
icon="columns"
|
|
98
98
|
[svgIcon]="columnsIcon"
|
|
99
99
|
[expanded]="expanded"
|
|
@@ -101,8 +101,8 @@ ColumnMenuChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
101
101
|
(expand)="onExpand()">
|
|
102
102
|
<ng-template kendoGridColumnMenuItemContentTemplate>
|
|
103
103
|
<kendo-grid-columnlist
|
|
104
|
-
[applyText]="localization.get('columnsApply')"
|
|
105
|
-
[resetText]="localization.get('columnsReset')"
|
|
104
|
+
[applyText]="ctx.localization.get('columnsApply')"
|
|
105
|
+
[resetText]="ctx.localization.get('columnsReset')"
|
|
106
106
|
[columns]="columns"
|
|
107
107
|
[autoSync]="false"
|
|
108
108
|
[allowHideAll]="false"
|
|
@@ -121,7 +121,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
121
121
|
selector: 'kendo-grid-columnmenu-chooser',
|
|
122
122
|
template: `
|
|
123
123
|
<kendo-grid-columnmenu-item
|
|
124
|
-
[text]="localization.get('columns')"
|
|
124
|
+
[text]="ctx.localization.get('columns')"
|
|
125
125
|
icon="columns"
|
|
126
126
|
[svgIcon]="columnsIcon"
|
|
127
127
|
[expanded]="expanded"
|
|
@@ -129,8 +129,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
129
129
|
(expand)="onExpand()">
|
|
130
130
|
<ng-template kendoGridColumnMenuItemContentTemplate>
|
|
131
131
|
<kendo-grid-columnlist
|
|
132
|
-
[applyText]="localization.get('columnsApply')"
|
|
133
|
-
[resetText]="localization.get('columnsReset')"
|
|
132
|
+
[applyText]="ctx.localization.get('columnsApply')"
|
|
133
|
+
[resetText]="ctx.localization.get('columnsReset')"
|
|
134
134
|
[columns]="columns"
|
|
135
135
|
[autoSync]="false"
|
|
136
136
|
[allowHideAll]="false"
|
|
@@ -144,7 +144,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
144
144
|
</kendo-grid-columnmenu-item>
|
|
145
145
|
`
|
|
146
146
|
}]
|
|
147
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
147
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i2.ColumnInfoService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { expand: [{
|
|
148
148
|
type: Output
|
|
149
149
|
}], collapse: [{
|
|
150
150
|
type: Output
|
|
@@ -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 { 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";
|
|
@@ -29,9 +29,9 @@ import * as i4 from "./column-menu-item-content-template.directive";
|
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
31
|
export class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
32
|
-
constructor(
|
|
32
|
+
constructor(ctx, hostElement) {
|
|
33
33
|
super();
|
|
34
|
-
this.
|
|
34
|
+
this.ctx = ctx;
|
|
35
35
|
this.hostElement = hostElement;
|
|
36
36
|
/**
|
|
37
37
|
* Fires when the content is expanded.
|
|
@@ -53,7 +53,7 @@ export class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
|
53
53
|
/**
|
|
54
54
|
* @hidden
|
|
55
55
|
*/
|
|
56
|
-
this.actionsClass = 'k-actions';
|
|
56
|
+
this.actionsClass = 'k-actions k-actions-stretched k-actions-horizontal';
|
|
57
57
|
this.filterIcon = filterIcon;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
@@ -74,10 +74,10 @@ export class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
|
74
74
|
this.expand.emit();
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
ColumnMenuFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuFilterComponent, deps: [{ token: i1.
|
|
77
|
+
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
78
|
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
79
|
<kendo-grid-columnmenu-item
|
|
80
|
-
[text]="localization.get('filter')"
|
|
80
|
+
[text]="ctx.localization.get('filter')"
|
|
81
81
|
icon="filter"
|
|
82
82
|
[svgIcon]="filterIcon"
|
|
83
83
|
[expanded]="expanded"
|
|
@@ -103,7 +103,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
103
103
|
selector: 'kendo-grid-columnmenu-filter',
|
|
104
104
|
template: `
|
|
105
105
|
<kendo-grid-columnmenu-item
|
|
106
|
-
[text]="localization.get('filter')"
|
|
106
|
+
[text]="ctx.localization.get('filter')"
|
|
107
107
|
icon="filter"
|
|
108
108
|
[svgIcon]="filterIcon"
|
|
109
109
|
[expanded]="expanded"
|
|
@@ -124,7 +124,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
124
124
|
</kendo-grid-columnmenu-item>
|
|
125
125
|
`
|
|
126
126
|
}]
|
|
127
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
127
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i0.ElementRef }]; }, propDecorators: { expand: [{
|
|
128
128
|
type: Output
|
|
129
129
|
}], collapse: [{
|
|
130
130
|
type: Output
|
|
@@ -81,7 +81,7 @@ ColumnMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
81
81
|
<ng-container [ngTemplateOutlet]="contentTemplate.templateRef">
|
|
82
82
|
</ng-container>
|
|
83
83
|
<div>
|
|
84
|
-
`, isInline: true, components: [{ type: i1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
|
|
84
|
+
`, isInline: true, components: [{ type: i1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
|
|
85
85
|
trigger('state', [
|
|
86
86
|
state('collapsed', style({ display: 'none' })),
|
|
87
87
|
state('expanded', style({ display: 'block' })),
|
|
@@ -3,12 +3,12 @@
|
|
|
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
|
/**
|
|
@@ -29,16 +29,16 @@ import * as i3 from "./column-menu-item.component";
|
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
31
|
export class ColumnMenuLockComponent extends ColumnMenuItemBase {
|
|
32
|
-
constructor(
|
|
32
|
+
constructor(ctx, columnInfoService, changeDetector) {
|
|
33
33
|
super();
|
|
34
|
-
this.
|
|
34
|
+
this.ctx = ctx;
|
|
35
35
|
this.columnInfoService = columnInfoService;
|
|
36
36
|
this.changeDetector = changeDetector;
|
|
37
37
|
this.unlockIcon = unlockIcon;
|
|
38
38
|
this.lockIcon = lockIcon;
|
|
39
39
|
}
|
|
40
40
|
get text() {
|
|
41
|
-
return this.localization.get(this.locked ? 'unlock' : 'lock');
|
|
41
|
+
return this.ctx.localization.get(this.locked ? 'unlock' : 'lock');
|
|
42
42
|
}
|
|
43
43
|
get icon() {
|
|
44
44
|
return this.locked ? 'unlock' : 'lock';
|
|
@@ -78,7 +78,7 @@ export class ColumnMenuLockComponent extends ColumnMenuItemBase {
|
|
|
78
78
|
return this.service.column.locked;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
ColumnMenuLockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuLockComponent, deps: [{ token: i1.
|
|
81
|
+
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
82
|
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
83
|
<kendo-grid-columnmenu-item
|
|
84
84
|
[text]="text"
|
|
@@ -102,4 +102,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
102
102
|
</kendo-grid-columnmenu-item>
|
|
103
103
|
`
|
|
104
104
|
}]
|
|
105
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
105
|
+
}], 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";
|
|
@@ -18,7 +18,7 @@ import * as i6 from "@angular/common";
|
|
|
18
18
|
*
|
|
19
19
|
* The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
20
20
|
* To register the component as a known column menu item, set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by
|
|
21
|
-
* the template to the service input of the `kendo-grid-columnmenu-
|
|
21
|
+
* the template to the service input of the `kendo-grid-columnmenu-position` component. [See example](slug:columnmenu_grid#toc-set-column-position-item).
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* ```html
|
|
@@ -31,9 +31,9 @@ import * as i6 from "@angular/common";
|
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
33
|
export class ColumnMenuPositionComponent extends ColumnMenuItemBase {
|
|
34
|
-
constructor(
|
|
34
|
+
constructor(ctx, hostElement) {
|
|
35
35
|
super();
|
|
36
|
-
this.
|
|
36
|
+
this.ctx = ctx;
|
|
37
37
|
this.hostElement = hostElement;
|
|
38
38
|
/**
|
|
39
39
|
* Fires when the content is expanded.
|
|
@@ -106,10 +106,10 @@ export class ColumnMenuPositionComponent extends ColumnMenuItemBase {
|
|
|
106
106
|
return menuItems[lastFocusableIndex];
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
ColumnMenuPositionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuPositionComponent, deps: [{ token: i1.
|
|
109
|
+
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
110
|
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
111
|
<kendo-grid-columnmenu-item
|
|
112
|
-
[text]="localization.get('setColumnPosition')"
|
|
112
|
+
[text]="ctx.localization.get('setColumnPosition')"
|
|
113
113
|
icon="set-column-position"
|
|
114
114
|
[svgIcon]="setColumnPositionIcon"
|
|
115
115
|
[expanded]="expanded"
|
|
@@ -136,7 +136,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
136
136
|
selector: 'kendo-grid-columnmenu-position',
|
|
137
137
|
template: `
|
|
138
138
|
<kendo-grid-columnmenu-item
|
|
139
|
-
[text]="localization.get('setColumnPosition')"
|
|
139
|
+
[text]="ctx.localization.get('setColumnPosition')"
|
|
140
140
|
icon="set-column-position"
|
|
141
141
|
[svgIcon]="setColumnPositionIcon"
|
|
142
142
|
[expanded]="expanded"
|
|
@@ -158,7 +158,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
158
158
|
</kendo-grid-columnmenu-item>
|
|
159
159
|
`
|
|
160
160
|
}]
|
|
161
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
161
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i0.ElementRef }]; }, propDecorators: { expand: [{
|
|
162
162
|
type: Output
|
|
163
163
|
}], collapse: [{
|
|
164
164
|
type: Output
|