@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.
Files changed (171) hide show
  1. package/column-menu/column-chooser.component.d.ts +4 -4
  2. package/column-menu/column-menu-autosize-all.component.d.ts +2 -4
  3. package/column-menu/column-menu-autosize.component.d.ts +1 -3
  4. package/column-menu/column-menu-chooser.component.d.ts +3 -3
  5. package/column-menu/column-menu-filter.component.d.ts +3 -3
  6. package/column-menu/column-menu-lock.component.d.ts +3 -3
  7. package/column-menu/column-menu-position.component.d.ts +4 -4
  8. package/column-menu/column-menu-settings.interface.d.ts +5 -0
  9. package/column-menu/column-menu-sort.component.d.ts +6 -3
  10. package/column-menu/column-menu-stick.component.d.ts +3 -3
  11. package/column-menu/column-menu.component.d.ts +39 -5
  12. package/column-menu/column-menu.module.d.ts +2 -1
  13. package/column-resizing/column-handle.directive.d.ts +3 -3
  14. package/common/provider.service.d.ts +3 -1
  15. package/common/single-popup.service.d.ts +3 -3
  16. package/editing/add-command.directive.d.ts +2 -2
  17. package/editing/cancel-command.directive.d.ts +2 -2
  18. package/editing/edit-command.directive.d.ts +2 -2
  19. package/editing/remove-command.directive.d.ts +2 -2
  20. package/editing/save-command.directive.d.ts +2 -2
  21. package/esm2020/column-menu/column-chooser.component.mjs +17 -17
  22. package/esm2020/column-menu/column-list.component.mjs +3 -3
  23. package/esm2020/column-menu/column-menu-autosize-all.component.mjs +15 -18
  24. package/esm2020/column-menu/column-menu-autosize.component.mjs +9 -12
  25. package/esm2020/column-menu/column-menu-chooser.component.mjs +13 -13
  26. package/esm2020/column-menu/column-menu-filter.component.mjs +9 -9
  27. package/esm2020/column-menu/column-menu-item.component.mjs +1 -1
  28. package/esm2020/column-menu/column-menu-lock.component.mjs +7 -7
  29. package/esm2020/column-menu/column-menu-position.component.mjs +9 -9
  30. package/esm2020/column-menu/column-menu-sort.component.mjs +13 -10
  31. package/esm2020/column-menu/column-menu-stick.component.mjs +7 -7
  32. package/esm2020/column-menu/column-menu.component.mjs +257 -17
  33. package/esm2020/column-menu/column-menu.module.mjs +4 -3
  34. package/esm2020/column-resizing/column-handle.directive.mjs +7 -7
  35. package/esm2020/common/provider.service.mjs +6 -3
  36. package/esm2020/common/single-popup.service.mjs +8 -8
  37. package/esm2020/editing/add-command.directive.mjs +7 -7
  38. package/esm2020/editing/cancel-command.directive.mjs +7 -7
  39. package/esm2020/editing/edit-command.directive.mjs +7 -7
  40. package/esm2020/editing/remove-command.directive.mjs +7 -7
  41. package/esm2020/editing/save-command.directive.mjs +7 -7
  42. package/esm2020/excel/excel-command.directive.mjs +7 -7
  43. package/esm2020/excel/excel.component.mjs +7 -7
  44. package/esm2020/filtering/boolean-filter.component.mjs +13 -13
  45. package/esm2020/filtering/cell/autocomplete-filter-cell.component.mjs +7 -7
  46. package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +7 -7
  47. package/esm2020/filtering/cell/date-filter-cell.component.mjs +9 -9
  48. package/esm2020/filtering/cell/filter-cell-operators.component.mjs +7 -7
  49. package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +10 -10
  50. package/esm2020/filtering/cell/string-filter-cell.component.mjs +7 -7
  51. package/esm2020/filtering/date-filter.component.mjs +9 -9
  52. package/esm2020/filtering/filter-row.component.mjs +7 -7
  53. package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +10 -8
  54. package/esm2020/filtering/menu/date-filter-menu-input.component.mjs +8 -8
  55. package/esm2020/filtering/menu/date-filter-menu.component.mjs +9 -9
  56. package/esm2020/filtering/menu/filter-menu-container.component.mjs +20 -20
  57. package/esm2020/filtering/menu/filter-menu-input-wrapper.component.mjs +10 -8
  58. package/esm2020/filtering/menu/filter-menu.component.mjs +8 -8
  59. package/esm2020/filtering/menu/menu-tabbing.service.mjs +1 -0
  60. package/esm2020/filtering/menu/numeric-filter-menu-input.component.mjs +8 -8
  61. package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +9 -9
  62. package/esm2020/filtering/menu/string-filter-menu-input.component.mjs +7 -7
  63. package/esm2020/filtering/menu/string-filter-menu.component.mjs +9 -9
  64. package/esm2020/filtering/numeric-filter.component.mjs +9 -9
  65. package/esm2020/filtering/operators/after-eq-filter-operator.component.mjs +5 -5
  66. package/esm2020/filtering/operators/after-filter-operator.component.mjs +5 -5
  67. package/esm2020/filtering/operators/before-eq-filter-operator.component.mjs +5 -5
  68. package/esm2020/filtering/operators/before-filter-operator.component.mjs +5 -5
  69. package/esm2020/filtering/operators/contains-filter-operator.component.mjs +5 -5
  70. package/esm2020/filtering/operators/ends-with-filter-operator.component.mjs +5 -5
  71. package/esm2020/filtering/operators/eq-filter-operator.component.mjs +5 -5
  72. package/esm2020/filtering/operators/filter-operator.base.mjs +9 -9
  73. package/esm2020/filtering/operators/gt-filter-operator.component.mjs +5 -5
  74. package/esm2020/filtering/operators/gte-filter-operator.component.mjs +5 -5
  75. package/esm2020/filtering/operators/is-empty-filter-operator.component.mjs +5 -5
  76. package/esm2020/filtering/operators/is-not-empty-filter-operator.component.mjs +5 -5
  77. package/esm2020/filtering/operators/is-not-null-filter-operator.component.mjs +5 -5
  78. package/esm2020/filtering/operators/isnull-filter-operator.component.mjs +5 -5
  79. package/esm2020/filtering/operators/lt-filter-operator.component.mjs +5 -5
  80. package/esm2020/filtering/operators/lte-filter-operator.component.mjs +5 -5
  81. package/esm2020/filtering/operators/neq-filter-operator.component.mjs +5 -5
  82. package/esm2020/filtering/operators/not-contains-filter-operator.component.mjs +5 -5
  83. package/esm2020/filtering/operators/starts-with-filter-operator.component.mjs +5 -5
  84. package/esm2020/filtering/string-filter.component.mjs +8 -8
  85. package/esm2020/grid.component.mjs +33 -15
  86. package/esm2020/grouping/group-header.component.mjs +32 -15
  87. package/esm2020/grouping/group-panel.component.mjs +10 -10
  88. package/esm2020/localization/messages.mjs +7 -1
  89. package/esm2020/navigation/navigation.service.mjs +8 -8
  90. package/esm2020/package-metadata.mjs +2 -2
  91. package/esm2020/pager/pager-element.component.mjs +25 -8
  92. package/esm2020/pager/pager-info.component.mjs +6 -6
  93. package/esm2020/pager/pager-input.component.mjs +6 -6
  94. package/esm2020/pager/pager-next-buttons.component.mjs +14 -17
  95. package/esm2020/pager/pager-numeric-buttons.component.mjs +6 -6
  96. package/esm2020/pager/pager-page-sizes.component.mjs +7 -7
  97. package/esm2020/pager/pager-prev-buttons.component.mjs +14 -17
  98. package/esm2020/pager/pager.component.mjs +7 -7
  99. package/esm2020/pdf/pdf-command.directive.mjs +7 -7
  100. package/esm2020/rendering/cell.component.mjs +9 -9
  101. package/esm2020/rendering/common/loading.component.mjs +7 -7
  102. package/esm2020/rendering/header/header.component.mjs +27 -30
  103. package/esm2020/rendering/list.component.mjs +7 -7
  104. package/esm2020/rendering/table-body.component.mjs +12 -12
  105. package/excel/excel-command.directive.d.ts +2 -2
  106. package/excel/excel.component.d.ts +3 -3
  107. package/fesm2015/progress-kendo-angular-grid.mjs +858 -558
  108. package/fesm2020/progress-kendo-angular-grid.mjs +855 -558
  109. package/filtering/base-filter-cell.component.d.ts +1 -1
  110. package/filtering/boolean-filter.component.d.ts +3 -3
  111. package/filtering/cell/autocomplete-filter-cell.component.d.ts +3 -3
  112. package/filtering/cell/boolean-filter-cell.component.d.ts +2 -2
  113. package/filtering/cell/date-filter-cell.component.d.ts +3 -3
  114. package/filtering/cell/filter-cell-operators.component.d.ts +3 -3
  115. package/filtering/cell/numeric-filter-cell.component.d.ts +4 -4
  116. package/filtering/cell/string-filter-cell.component.d.ts +2 -2
  117. package/filtering/date-filter.component.d.ts +3 -3
  118. package/filtering/filter-row.component.d.ts +3 -3
  119. package/filtering/menu/boolean-filter-menu.component.d.ts +2 -2
  120. package/filtering/menu/date-filter-menu-input.component.d.ts +3 -3
  121. package/filtering/menu/date-filter-menu.component.d.ts +2 -2
  122. package/filtering/menu/filter-menu-container.component.d.ts +3 -3
  123. package/filtering/menu/filter-menu-input-wrapper.component.d.ts +3 -3
  124. package/filtering/menu/filter-menu.component.d.ts +3 -3
  125. package/filtering/menu/menu-tabbing.service.d.ts +1 -0
  126. package/filtering/menu/numeric-filter-menu-input.component.d.ts +3 -3
  127. package/filtering/menu/numeric-filter-menu.component.d.ts +2 -2
  128. package/filtering/menu/string-filter-menu-input.component.d.ts +3 -3
  129. package/filtering/menu/string-filter-menu.component.d.ts +2 -2
  130. package/filtering/numeric-filter.component.d.ts +3 -3
  131. package/filtering/operators/after-eq-filter-operator.component.d.ts +2 -2
  132. package/filtering/operators/after-filter-operator.component.d.ts +2 -2
  133. package/filtering/operators/before-eq-filter-operator.component.d.ts +2 -2
  134. package/filtering/operators/before-filter-operator.component.d.ts +2 -2
  135. package/filtering/operators/contains-filter-operator.component.d.ts +2 -2
  136. package/filtering/operators/ends-with-filter-operator.component.d.ts +2 -2
  137. package/filtering/operators/eq-filter-operator.component.d.ts +2 -2
  138. package/filtering/operators/filter-operator.base.d.ts +3 -3
  139. package/filtering/operators/gt-filter-operator.component.d.ts +2 -2
  140. package/filtering/operators/gte-filter-operator.component.d.ts +2 -2
  141. package/filtering/operators/is-empty-filter-operator.component.d.ts +2 -2
  142. package/filtering/operators/is-not-empty-filter-operator.component.d.ts +2 -2
  143. package/filtering/operators/is-not-null-filter-operator.component.d.ts +2 -2
  144. package/filtering/operators/isnull-filter-operator.component.d.ts +2 -2
  145. package/filtering/operators/lt-filter-operator.component.d.ts +2 -2
  146. package/filtering/operators/lte-filter-operator.component.d.ts +2 -2
  147. package/filtering/operators/neq-filter-operator.component.d.ts +2 -2
  148. package/filtering/operators/not-contains-filter-operator.component.d.ts +2 -2
  149. package/filtering/operators/starts-with-filter-operator.component.d.ts +2 -2
  150. package/filtering/string-filter.component.d.ts +3 -3
  151. package/grouping/group-header.component.d.ts +8 -5
  152. package/grouping/group-panel.component.d.ts +3 -3
  153. package/localization/messages.d.ts +13 -1
  154. package/navigation/navigation.service.d.ts +3 -3
  155. package/package.json +16 -15
  156. package/pager/pager-element.component.d.ts +12 -3
  157. package/pager/pager-info.component.d.ts +2 -2
  158. package/pager/pager-input.component.d.ts +2 -2
  159. package/pager/pager-next-buttons.component.d.ts +2 -5
  160. package/pager/pager-numeric-buttons.component.d.ts +2 -2
  161. package/pager/pager-page-sizes.component.d.ts +2 -2
  162. package/pager/pager-prev-buttons.component.d.ts +2 -5
  163. package/pager/pager.component.d.ts +3 -3
  164. package/pdf/pdf-command.directive.d.ts +2 -2
  165. package/rendering/cell.component.d.ts +3 -3
  166. package/rendering/common/loading.component.d.ts +3 -3
  167. package/rendering/header/header.component.d.ts +1 -3
  168. package/rendering/list.component.d.ts +3 -3
  169. package/rendering/table-body.component.d.ts +3 -3
  170. package/schematics/ngAdd/index.js +5 -3
  171. 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 "@progress/kendo-angular-l10n";
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 visibility of the Grid columns. [See example](slug:columnmenu_grid#toc-using-standalone-column-chooser).
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(localization, columnInfoService, popupService, ngZone, renderer, changeDetector) {
35
- this.localization = localization;
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.LocalizationService }, { token: i2.ColumnInfoService }, { token: i3.PopupService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
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.LocalizationService }, { type: i2.ColumnInfoService }, { type: i3.PopupService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { autoSync: [{
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 { LocalizationService } from "@progress/kendo-angular-l10n";
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 "@progress/kendo-angular-l10n";
14
- import * as i2 from "../common/provider.service";
15
- import * as i3 from "./column-menu-item.component";
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(localization, ctx) {
34
+ constructor(ctx) {
37
35
  super();
38
- this.localization = localization;
39
36
  this.ctx = ctx;
40
- this.displayInlineBlockIcon = displayInlineBlockIcon;
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.LocalizationService }, { token: i2.ContextService }], target: i0.ɵɵFactoryTarget.Component });
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-block"
61
- [svgIcon]="displayInlineBlockIcon"
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: i3.ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
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-block"
74
- [svgIcon]="displayInlineBlockIcon"
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.LocalizationService }, { type: i2.ContextService }]; } });
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 "@progress/kendo-angular-l10n";
14
- import * as i2 from "../common/provider.service";
15
- import * as i3 from "./column-menu-item.component";
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(localization, ctx) {
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.LocalizationService }, { token: i2.ContextService }], target: i0.ɵɵFactoryTarget.Component });
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: i3.ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "disabled", "expanded"], outputs: ["itemClick", "expand", "collapse"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
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.LocalizationService }, { type: i2.ContextService }]; }, propDecorators: { column: [{
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 "@progress/kendo-angular-l10n";
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(localization, columnInfoService, changeDetector, hostElement) {
33
+ constructor(ctx, columnInfoService, changeDetector, hostElement) {
34
34
  super();
35
- this.localization = localization;
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.LocalizationService }, { token: i2.ColumnInfoService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
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.LocalizationService }, { type: i2.ColumnInfoService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { expand: [{
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 "@progress/kendo-angular-l10n";
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(localization, hostElement) {
32
+ constructor(ctx, hostElement) {
33
33
  super();
34
- this.localization = localization;
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.LocalizationService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
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.LocalizationService }, { type: i0.ElementRef }]; }, propDecorators: { expand: [{
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 "@progress/kendo-angular-l10n";
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(localization, columnInfoService, changeDetector) {
32
+ constructor(ctx, columnInfoService, changeDetector) {
33
33
  super();
34
- this.localization = localization;
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.LocalizationService }, { token: i2.ColumnInfoService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
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.LocalizationService }, { type: i2.ColumnInfoService }, { type: i0.ChangeDetectorRef }]; } });
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 "@progress/kendo-angular-l10n";
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-filter` component. [See example](slug:columnmenu_grid#toc-set-column-position-item).
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(localization, hostElement) {
34
+ constructor(ctx, hostElement) {
35
35
  super();
36
- this.localization = localization;
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.LocalizationService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
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.LocalizationService }, { type: i0.ElementRef }]; }, propDecorators: { expand: [{
161
+ }], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i0.ElementRef }]; }, propDecorators: { expand: [{
162
162
  type: Output
163
163
  }], collapse: [{
164
164
  type: Output