@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
@@ -3,8 +3,10 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Injectable, Renderer2 } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
6
7
  import { GridToolbarNavigationService } from '../rendering/toolbar/toolbar-navigation.service';
7
8
  import * as i0 from "@angular/core";
9
+ import * as i1 from "@progress/kendo-angular-l10n";
8
10
  /**
9
11
  * @hidden
10
12
  *
@@ -15,14 +17,15 @@ import * as i0 from "@angular/core";
15
17
  * and a avoids dependency cycles between components.
16
18
  */
17
19
  export class ContextService {
18
- constructor(renderer) {
20
+ constructor(renderer, localization) {
19
21
  this.renderer = renderer;
22
+ this.localization = localization;
20
23
  this.topToolbarNavigation = new GridToolbarNavigationService(this.renderer);
21
24
  this.bottomToolbarNavigation = new GridToolbarNavigationService(this.renderer);
22
25
  }
23
26
  }
24
- ContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ContextService, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Injectable });
27
+ ContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ContextService, deps: [{ token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
25
28
  ContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ContextService });
26
29
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ContextService, decorators: [{
27
30
  type: Injectable
28
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; } });
31
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i1.LocalizationService }]; } });
@@ -7,13 +7,13 @@ import { Injectable, Renderer2, NgZone } from '@angular/core';
7
7
  import { isPresent } from '../utils';
8
8
  import { PreventableEvent } from './preventable-event';
9
9
  import { Subject, Subscription } from 'rxjs';
10
- import { LocalizationService } from '@progress/kendo-angular-l10n';
11
10
  import { ScrollSyncService } from '../scrolling/scroll-sync.service';
12
11
  import { isDocumentAvailable } from '@progress/kendo-angular-common';
12
+ import { ContextService } from './provider.service';
13
13
  import * as i0 from "@angular/core";
14
14
  import * as i1 from "@progress/kendo-angular-popup";
15
15
  import * as i2 from "../scrolling/scroll-sync.service";
16
- import * as i3 from "@progress/kendo-angular-l10n";
16
+ import * as i3 from "./provider.service";
17
17
  const contains = (node, predicate) => {
18
18
  while (node) {
19
19
  if (predicate(node)) {
@@ -41,11 +41,11 @@ export class SinglePopupService {
41
41
  /**
42
42
  * @hidden
43
43
  */
44
- constructor(popupService, renderer, ngZone, scrollSyncService, localization) {
44
+ constructor(popupService, renderer, ngZone, scrollSyncService, ctx) {
45
45
  this.popupService = popupService;
46
46
  this.renderer = renderer;
47
47
  this.ngZone = ngZone;
48
- this.localization = localization;
48
+ this.ctx = ctx;
49
49
  /**
50
50
  * Fires when the filter or column menus are about to close because the user clicked outside their popups.
51
51
  * Used to prevent the popup from closing.
@@ -61,7 +61,7 @@ export class SinglePopupService {
61
61
  const toggle = isPresent(popupRef) && this.popupRef === popupRef;
62
62
  this.destroy();
63
63
  if (!toggle) {
64
- const direction = this.localization.rtl ? 'right' : 'left';
64
+ const direction = this.ctx.localization.rtl ? 'right' : 'left';
65
65
  this.popupRef = this.popupService.open({
66
66
  anchorAlign: { vertical: 'bottom', horizontal: direction },
67
67
  popupAlign: { vertical: 'top', horizontal: direction },
@@ -70,7 +70,7 @@ export class SinglePopupService {
70
70
  content: template,
71
71
  positionMode: "absolute"
72
72
  });
73
- this.renderer.setAttribute(this.popupRef.popupElement, 'dir', this.localization.rtl ? 'rtl' : 'ltr');
73
+ this.renderer.setAttribute(this.popupRef.popupElement, 'dir', this.ctx.localization.rtl ? 'rtl' : 'ltr');
74
74
  this.attachClose(anchor);
75
75
  }
76
76
  const popupEl = this.popupRef?.popupElement;
@@ -129,8 +129,8 @@ export class SinglePopupService {
129
129
  });
130
130
  }
131
131
  }
132
- SinglePopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SinglePopupService, deps: [{ token: i1.PopupService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i2.ScrollSyncService }, { token: i3.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
132
+ SinglePopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SinglePopupService, deps: [{ token: i1.PopupService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i2.ScrollSyncService }, { token: i3.ContextService }], target: i0.ɵɵFactoryTarget.Injectable });
133
133
  SinglePopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SinglePopupService });
134
134
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SinglePopupService, decorators: [{
135
135
  type: Injectable
136
- }], ctorParameters: function () { return [{ type: i1.PopupService }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i2.ScrollSyncService }, { type: i3.LocalizationService }]; } });
136
+ }], ctorParameters: function () { return [{ type: i1.PopupService }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i2.ScrollSyncService }, { type: i3.ContextService }]; } });
@@ -4,11 +4,11 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, HostListener, HostBinding, ElementRef, Renderer2 as Renderer, NgZone } from '@angular/core';
6
6
  import { Button } from '@progress/kendo-angular-buttons';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { ContextService } from '../common/provider.service';
8
8
  import { EditService } from './edit.service';
9
9
  import * as i0 from "@angular/core";
10
10
  import * as i1 from "./edit.service";
11
- import * as i2 from "@progress/kendo-angular-l10n";
11
+ import * as i2 from "../common/provider.service";
12
12
  import * as i3 from "@progress/kendo-angular-icons";
13
13
  import * as i4 from "@angular/common";
14
14
  /**
@@ -28,8 +28,8 @@ import * as i4 from "@angular/common";
28
28
  * ```
29
29
  */
30
30
  export class AddCommandDirective extends Button {
31
- constructor(editService, element, renderer, localization, ngZone) {
32
- super(element, renderer, null, localization, ngZone);
31
+ constructor(editService, element, renderer, ctx, ngZone) {
32
+ super(element, renderer, null, ctx.localization, ngZone);
33
33
  this.editService = editService;
34
34
  }
35
35
  /**
@@ -46,7 +46,7 @@ export class AddCommandDirective extends Button {
46
46
  return true;
47
47
  }
48
48
  }
49
- AddCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AddCommandDirective, deps: [{ token: i1.EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
49
+ AddCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AddCommandDirective, deps: [{ token: i1.EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.ContextService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
50
50
  AddCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AddCommandDirective, selector: "[kendoGridAddCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-grid-add-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
51
51
  <kendo-icon-wrapper
52
52
  *ngIf="icon || svgIcon"
@@ -58,7 +58,7 @@ AddCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
58
58
  </span>
59
59
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
60
60
  <span class="k-button-text"><ng-content></ng-content></span>
61
- `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
61
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
62
62
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AddCommandDirective, decorators: [{
63
63
  type: Component,
64
64
  args: [{
@@ -76,7 +76,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
76
76
  <span class="k-button-text"><ng-content></ng-content></span>
77
77
  `
78
78
  }]
79
- }], ctorParameters: function () { return [{ type: i1.EditService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { onClick: [{
79
+ }], ctorParameters: function () { return [{ type: i1.EditService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.ContextService }, { type: i0.NgZone }]; }, propDecorators: { onClick: [{
80
80
  type: HostListener,
81
81
  args: ['click', ['$event']]
82
82
  }], commandClass: [{
@@ -4,12 +4,12 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, HostListener, HostBinding, Inject, ElementRef, Renderer2 as Renderer, NgZone } from '@angular/core';
6
6
  import { Button } from '@progress/kendo-angular-buttons';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
7
  import { EditService } from './edit.service';
9
8
  import { CELL_CONTEXT } from '../rendering/common/cell-context';
9
+ import { ContextService } from '../common/provider.service';
10
10
  import * as i0 from "@angular/core";
11
11
  import * as i1 from "./edit.service";
12
- import * as i2 from "@progress/kendo-angular-l10n";
12
+ import * as i2 from "../common/provider.service";
13
13
  import * as i3 from "@progress/kendo-angular-icons";
14
14
  import * as i4 from "@angular/common";
15
15
  /**
@@ -34,8 +34,8 @@ import * as i4 from "@angular/common";
34
34
  * ```
35
35
  */
36
36
  export class CancelCommandDirective extends Button {
37
- constructor(editService, cellContext, element, renderer, localization, ngZone) {
38
- super(element, renderer, null, localization, ngZone);
37
+ constructor(editService, cellContext, element, renderer, ctx, ngZone) {
38
+ super(element, renderer, null, ctx.localization, ngZone);
39
39
  this.editService = editService;
40
40
  this.cellContext = cellContext;
41
41
  /**
@@ -65,7 +65,7 @@ export class CancelCommandDirective extends Button {
65
65
  }
66
66
  }
67
67
  }
68
- CancelCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CancelCommandDirective, deps: [{ token: i1.EditService }, { token: CELL_CONTEXT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
68
+ CancelCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CancelCommandDirective, deps: [{ token: i1.EditService }, { token: CELL_CONTEXT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.ContextService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
69
69
  CancelCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: CancelCommandDirective, selector: "[kendoGridCancelCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "style.display": "this.visible", "class.k-grid-cancel-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
70
70
  <kendo-icon-wrapper
71
71
  *ngIf="icon || svgIcon"
@@ -77,7 +77,7 @@ CancelCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
77
77
  </span>
78
78
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
79
79
  <span class="k-button-text"><ng-content></ng-content></span>
80
- `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
80
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
81
81
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CancelCommandDirective, decorators: [{
82
82
  type: Component,
83
83
  args: [{
@@ -98,7 +98,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
98
98
  }], ctorParameters: function () { return [{ type: i1.EditService }, { type: undefined, decorators: [{
99
99
  type: Inject,
100
100
  args: [CELL_CONTEXT]
101
- }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { visible: [{
101
+ }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.ContextService }, { type: i0.NgZone }]; }, propDecorators: { visible: [{
102
102
  type: HostBinding,
103
103
  args: ['style.display']
104
104
  }], commandClass: [{
@@ -4,12 +4,12 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, HostListener, HostBinding, Inject, ElementRef, Renderer2 as Renderer, NgZone } from '@angular/core';
6
6
  import { Button } from '@progress/kendo-angular-buttons';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
7
  import { EditService } from './edit.service';
9
8
  import { CELL_CONTEXT } from '../rendering/common/cell-context';
9
+ import { ContextService } from '../common/provider.service';
10
10
  import * as i0 from "@angular/core";
11
11
  import * as i1 from "./edit.service";
12
- import * as i2 from "@progress/kendo-angular-l10n";
12
+ import * as i2 from "../common/provider.service";
13
13
  import * as i3 from "@progress/kendo-angular-icons";
14
14
  import * as i4 from "@angular/common";
15
15
  /**
@@ -34,8 +34,8 @@ import * as i4 from "@angular/common";
34
34
  *
35
35
  */
36
36
  export class EditCommandDirective extends Button {
37
- constructor(editService, cellContext, element, renderer, localization, ngZone) {
38
- super(element, renderer, null, localization, ngZone);
37
+ constructor(editService, cellContext, element, renderer, ctx, ngZone) {
38
+ super(element, renderer, null, ctx.localization, ngZone);
39
39
  this.editService = editService;
40
40
  this.cellContext = cellContext;
41
41
  /**
@@ -63,7 +63,7 @@ export class EditCommandDirective extends Button {
63
63
  }
64
64
  }
65
65
  }
66
- EditCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EditCommandDirective, deps: [{ token: i1.EditService }, { token: CELL_CONTEXT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
66
+ EditCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EditCommandDirective, deps: [{ token: i1.EditService }, { token: CELL_CONTEXT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.ContextService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
67
67
  EditCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: EditCommandDirective, selector: "[kendoGridEditCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "style.display": "this.visible", "class.k-grid-edit-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
68
68
  <kendo-icon-wrapper
69
69
  *ngIf="icon || svgIcon"
@@ -75,7 +75,7 @@ EditCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
75
75
  </span>
76
76
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
77
77
  <span class="k-button-text"><ng-content></ng-content></span>
78
- `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
78
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
79
79
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EditCommandDirective, decorators: [{
80
80
  type: Component,
81
81
  args: [{
@@ -96,7 +96,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
96
96
  }], ctorParameters: function () { return [{ type: i1.EditService }, { type: undefined, decorators: [{
97
97
  type: Inject,
98
98
  args: [CELL_CONTEXT]
99
- }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { visible: [{
99
+ }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.ContextService }, { type: i0.NgZone }]; }, propDecorators: { visible: [{
100
100
  type: HostBinding,
101
101
  args: ['style.display']
102
102
  }], commandClass: [{
@@ -4,12 +4,12 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, HostListener, HostBinding, Inject, ElementRef, Renderer2 as Renderer, NgZone } from '@angular/core';
6
6
  import { Button } from '@progress/kendo-angular-buttons';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
7
  import { EditService } from './edit.service';
9
8
  import { CELL_CONTEXT } from '../rendering/common/cell-context';
9
+ import { ContextService } from '../common/provider.service';
10
10
  import * as i0 from "@angular/core";
11
11
  import * as i1 from "./edit.service";
12
- import * as i2 from "@progress/kendo-angular-l10n";
12
+ import * as i2 from "../common/provider.service";
13
13
  import * as i3 from "@progress/kendo-angular-icons";
14
14
  import * as i4 from "@angular/common";
15
15
  /**
@@ -33,8 +33,8 @@ import * as i4 from "@angular/common";
33
33
  * ```
34
34
  */
35
35
  export class RemoveCommandDirective extends Button {
36
- constructor(editService, cellContext, element, renderer, localization, ngZone) {
37
- super(element, renderer, null, localization, ngZone);
36
+ constructor(editService, cellContext, element, renderer, ctx, ngZone) {
37
+ super(element, renderer, null, ctx.localization, ngZone);
38
38
  this.editService = editService;
39
39
  this.cellContext = cellContext;
40
40
  /**
@@ -62,7 +62,7 @@ export class RemoveCommandDirective extends Button {
62
62
  }
63
63
  }
64
64
  }
65
- RemoveCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RemoveCommandDirective, deps: [{ token: i1.EditService }, { token: CELL_CONTEXT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
65
+ RemoveCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RemoveCommandDirective, deps: [{ token: i1.EditService }, { token: CELL_CONTEXT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.ContextService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
66
66
  RemoveCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: RemoveCommandDirective, selector: "[kendoGridRemoveCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "style.display": "this.visible", "class.k-grid-remove-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
67
67
  <kendo-icon-wrapper
68
68
  *ngIf="icon || svgIcon"
@@ -74,7 +74,7 @@ RemoveCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
74
74
  </span>
75
75
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
76
76
  <span class="k-button-text"><ng-content></ng-content></span>
77
- `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
77
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
78
78
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RemoveCommandDirective, decorators: [{
79
79
  type: Component,
80
80
  args: [{
@@ -95,7 +95,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
95
95
  }], ctorParameters: function () { return [{ type: i1.EditService }, { type: undefined, decorators: [{
96
96
  type: Inject,
97
97
  args: [CELL_CONTEXT]
98
- }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { visible: [{
98
+ }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.ContextService }, { type: i0.NgZone }]; }, propDecorators: { visible: [{
99
99
  type: HostBinding,
100
100
  args: ['style.display']
101
101
  }], commandClass: [{
@@ -4,12 +4,12 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, HostListener, HostBinding, Inject, ElementRef, Renderer2 as Renderer, NgZone } from '@angular/core';
6
6
  import { Button } from '@progress/kendo-angular-buttons';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
7
  import { EditService } from './edit.service';
9
8
  import { CELL_CONTEXT } from '../rendering/common/cell-context';
9
+ import { ContextService } from '../common/provider.service';
10
10
  import * as i0 from "@angular/core";
11
11
  import * as i1 from "./edit.service";
12
- import * as i2 from "@progress/kendo-angular-l10n";
12
+ import * as i2 from "../common/provider.service";
13
13
  import * as i3 from "@progress/kendo-angular-icons";
14
14
  import * as i4 from "@angular/common";
15
15
  /**
@@ -34,8 +34,8 @@ import * as i4 from "@angular/common";
34
34
  * ```
35
35
  */
36
36
  export class SaveCommandDirective extends Button {
37
- constructor(editService, cellContext, element, renderer, localization, ngZone) {
38
- super(element, renderer, null, localization, ngZone);
37
+ constructor(editService, cellContext, element, renderer, ctx, ngZone) {
38
+ super(element, renderer, null, ctx.localization, ngZone);
39
39
  this.editService = editService;
40
40
  this.cellContext = cellContext;
41
41
  /**
@@ -65,7 +65,7 @@ export class SaveCommandDirective extends Button {
65
65
  }
66
66
  }
67
67
  }
68
- SaveCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SaveCommandDirective, deps: [{ token: i1.EditService }, { token: CELL_CONTEXT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
68
+ SaveCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SaveCommandDirective, deps: [{ token: i1.EditService }, { token: CELL_CONTEXT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.ContextService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
69
69
  SaveCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SaveCommandDirective, selector: "[kendoGridSaveCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "style.display": "this.visible", "class.k-grid-save-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
70
70
  <kendo-icon-wrapper
71
71
  *ngIf="icon || svgIcon"
@@ -77,7 +77,7 @@ SaveCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
77
77
  </span>
78
78
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
79
79
  <span class="k-button-text"><ng-content></ng-content></span>
80
- `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
80
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
81
81
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SaveCommandDirective, decorators: [{
82
82
  type: Component,
83
83
  args: [{
@@ -98,7 +98,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
98
98
  }], ctorParameters: function () { return [{ type: i1.EditService }, { type: undefined, decorators: [{
99
99
  type: Inject,
100
100
  args: [CELL_CONTEXT]
101
- }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { visible: [{
101
+ }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.ContextService }, { type: i0.NgZone }]; }, propDecorators: { visible: [{
102
102
  type: HostBinding,
103
103
  args: ['style.display']
104
104
  }], commandClass: [{
@@ -4,11 +4,11 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, HostListener, HostBinding, ElementRef, Renderer2 as Renderer, NgZone } from '@angular/core';
6
6
  import { Button } from '@progress/kendo-angular-buttons';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { ContextService } from '../common/provider.service';
8
8
  import { ExcelService } from './excel.service';
9
9
  import * as i0 from "@angular/core";
10
10
  import * as i1 from "./excel.service";
11
- import * as i2 from "@progress/kendo-angular-l10n";
11
+ import * as i2 from "../common/provider.service";
12
12
  import * as i3 from "@progress/kendo-angular-icons";
13
13
  import * as i4 from "@angular/common";
14
14
  /**
@@ -31,8 +31,8 @@ import * as i4 from "@angular/common";
31
31
  * ```
32
32
  */
33
33
  export class ExcelCommandDirective extends Button {
34
- constructor(excelService, element, renderer, localization, ngZone) {
35
- super(element, renderer, null, localization, ngZone);
34
+ constructor(excelService, element, renderer, ctx, ngZone) {
35
+ super(element, renderer, null, ctx.localization, ngZone);
36
36
  this.excelService = excelService;
37
37
  this.ngZone = ngZone;
38
38
  }
@@ -50,7 +50,7 @@ export class ExcelCommandDirective extends Button {
50
50
  return true;
51
51
  }
52
52
  }
53
- ExcelCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ExcelCommandDirective, deps: [{ token: i1.ExcelService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
53
+ ExcelCommandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ExcelCommandDirective, deps: [{ token: i1.ExcelService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.ContextService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
54
54
  ExcelCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ExcelCommandDirective, selector: "[kendoGridExcelCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-grid-excel": "this.excelClass" } }, usesInheritance: true, ngImport: i0, template: `
55
55
  <kendo-icon-wrapper
56
56
  *ngIf="icon || svgIcon"
@@ -62,7 +62,7 @@ ExcelCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
62
62
  </span>
63
63
  <span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
64
64
  <span class="k-button-text"><ng-content></ng-content></span>
65
- `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
65
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
66
66
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ExcelCommandDirective, decorators: [{
67
67
  type: Component,
68
68
  args: [{
@@ -80,7 +80,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
80
80
  <span class="k-button-text"><ng-content></ng-content></span>
81
81
  `
82
82
  }]
83
- }], ctorParameters: function () { return [{ type: i1.ExcelService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { onClick: [{
83
+ }], ctorParameters: function () { return [{ type: i1.ExcelService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.ContextService }, { type: i0.NgZone }]; }, propDecorators: { onClick: [{
84
84
  type: HostListener,
85
85
  args: ['click', ['$event']]
86
86
  }], excelClass: [{
@@ -9,12 +9,12 @@ import { saveAs } from '@progress/kendo-file-saver';
9
9
  import { toDataURL, workbookOptions, ColumnBase } from '@progress/kendo-angular-excel-export';
10
10
  import { ExcelService } from './excel.service';
11
11
  import { ExcelExportEvent } from './excel-export-event';
12
- import { LocalizationService } from '@progress/kendo-angular-l10n';
13
12
  import { orderBy } from '@progress/kendo-data-query';
14
13
  import { sortColumns } from '../columns/column-common';
14
+ import { ContextService } from '../common/provider.service';
15
15
  import * as i0 from "@angular/core";
16
16
  import * as i1 from "./excel.service";
17
- import * as i2 from "@progress/kendo-angular-l10n";
17
+ import * as i2 from "../common/provider.service";
18
18
  const fetchComponentData = (component) => {
19
19
  return {
20
20
  data: component.view.map(item => item),
@@ -60,8 +60,8 @@ const componentColumns = (component) => {
60
60
  * Configures the settings for the export of Grid in Excel ([see example]({% slug excelexport_grid %})).
61
61
  */
62
62
  export class ExcelComponent {
63
- constructor(excelService, localization, zone) {
64
- this.localization = localization;
63
+ constructor(excelService, ctx, zone) {
64
+ this.ctx = ctx;
65
65
  this.zone = zone;
66
66
  /**
67
67
  * Specifies the file name of the exported Excel file.
@@ -106,7 +106,7 @@ export class ExcelComponent {
106
106
  date: this.date,
107
107
  paddingCellOptions: this.paddingCellOptions,
108
108
  headerPaddingCellOptions: this.headerPaddingCellOptions,
109
- rtl: this.localization.rtl,
109
+ rtl: this.ctx.localization.rtl,
110
110
  collapsible: this.collapsible
111
111
  });
112
112
  const args = new ExcelExportEvent(options);
@@ -124,7 +124,7 @@ export class ExcelComponent {
124
124
  });
125
125
  }
126
126
  }
127
- ExcelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ExcelComponent, deps: [{ token: i1.ExcelService }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
127
+ ExcelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ExcelComponent, deps: [{ token: i1.ExcelService }, { token: i2.ContextService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
128
128
  ExcelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ExcelComponent, selector: "kendo-grid-excel", inputs: { fileName: "fileName", filterable: "filterable", creator: "creator", date: "date", forceProxy: "forceProxy", proxyURL: "proxyURL", fetchData: "fetchData", paddingCellOptions: "paddingCellOptions", headerPaddingCellOptions: "headerPaddingCellOptions", collapsible: "collapsible" }, queries: [{ propertyName: "columns", predicate: ColumnBase, descendants: true }], ngImport: i0, template: ``, isInline: true });
129
129
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ExcelComponent, decorators: [{
130
130
  type: Component,
@@ -132,7 +132,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
132
132
  selector: 'kendo-grid-excel',
133
133
  template: ``
134
134
  }]
135
- }], ctorParameters: function () { return [{ type: i1.ExcelService }, { type: i2.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { fileName: [{
135
+ }], ctorParameters: function () { return [{ type: i1.ExcelService }, { type: i2.ContextService }, { type: i0.NgZone }]; }, propDecorators: { fileName: [{
136
136
  type: Input
137
137
  }], filterable: [{
138
138
  type: Input
@@ -7,17 +7,17 @@ import { Input, HostBinding, Component } from '@angular/core';
7
7
  import { ColumnComponent } from '../columns/column.component';
8
8
  import { FilterService } from './filter.service';
9
9
  import { BaseFilterCellComponent } from './base-filter-cell.component';
10
- import { LocalizationService } from '@progress/kendo-angular-l10n';
10
+ import { ContextService } from '../common/provider.service';
11
11
  import * as i0 from "@angular/core";
12
12
  import * as i1 from "./filter.service";
13
- import * as i2 from "@progress/kendo-angular-l10n";
13
+ import * as i2 from "../common/provider.service";
14
14
  /**
15
15
  * @hidden
16
16
  */
17
17
  export class BooleanFilterComponent extends BaseFilterCellComponent {
18
- constructor(filterService, localization) {
18
+ constructor(filterService, ctx) {
19
19
  super(filterService);
20
- this.localization = localization;
20
+ this.ctx = ctx;
21
21
  /**
22
22
  * @hidden
23
23
  */
@@ -26,13 +26,13 @@ export class BooleanFilterComponent extends BaseFilterCellComponent {
26
26
  * @hidden
27
27
  */
28
28
  this.items = [
29
- { text: this.localization.get("filterIsTrue"), value: true },
30
- { text: this.localization.get("filterIsFalse"), value: false }
29
+ { text: this.ctx.localization.get("filterIsTrue"), value: true },
30
+ { text: this.ctx.localization.get("filterIsFalse"), value: false }
31
31
  ];
32
32
  /**
33
33
  * @hidden
34
34
  */
35
- this.defaultItem = { text: this.localization.get("filterBooleanAll"), value: null };
35
+ this.defaultItem = { text: this.ctx.localization.get("filterBooleanAll"), value: null };
36
36
  }
37
37
  /**
38
38
  * @hidden
@@ -57,7 +57,7 @@ export class BooleanFilterComponent extends BaseFilterCellComponent {
57
57
  return this.currentFilter ? this.currentFilter.operator : this.operator;
58
58
  }
59
59
  ngOnInit() {
60
- this.subscription = this.localization.changes.subscribe(this.localizationChange.bind(this));
60
+ this.subscription = this.ctx.localization.changes.subscribe(this.localizationChange.bind(this));
61
61
  }
62
62
  ngOnDestroy() {
63
63
  if (this.subscription) {
@@ -67,13 +67,13 @@ export class BooleanFilterComponent extends BaseFilterCellComponent {
67
67
  }
68
68
  localizationChange() {
69
69
  this.items = [
70
- { text: this.localization.get("filterIsTrue"), value: true },
71
- { text: this.localization.get("filterIsFalse"), value: false }
70
+ { text: this.ctx.localization.get("filterIsTrue"), value: true },
71
+ { text: this.ctx.localization.get("filterIsFalse"), value: false }
72
72
  ];
73
- this.defaultItem = { text: this.localization.get("filterBooleanAll"), value: null };
73
+ this.defaultItem = { text: this.ctx.localization.get("filterBooleanAll"), value: null };
74
74
  }
75
75
  }
76
- BooleanFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BooleanFilterComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
76
+ BooleanFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BooleanFilterComponent, deps: [{ token: i1.FilterService }, { token: i2.ContextService }], target: i0.ɵɵFactoryTarget.Component });
77
77
  BooleanFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: BooleanFilterComponent, selector: "kendo-grid-boolean-filter-base", inputs: { column: "column", filter: "filter" }, host: { properties: { "class.k-filtercell-boolean": "this.hostClasses" } }, usesInheritance: true, ngImport: i0, template: ``, isInline: true });
78
78
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BooleanFilterComponent, decorators: [{
79
79
  type: Component,
@@ -81,7 +81,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
81
81
  selector: 'kendo-grid-boolean-filter-base',
82
82
  template: ``
83
83
  }]
84
- }], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.LocalizationService }]; }, propDecorators: { hostClasses: [{
84
+ }], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.ContextService }]; }, propDecorators: { hostClasses: [{
85
85
  type: HostBinding,
86
86
  args: ['class.k-filtercell-boolean']
87
87
  }], column: [{
@@ -7,12 +7,12 @@ import { Component, Input } from '@angular/core';
7
7
  import { ColumnComponent } from '../../columns/column.component';
8
8
  import { FilterService } from '../filter.service';
9
9
  import { BaseFilterCellComponent, localizeOperators } from '../base-filter-cell.component';
10
- import { LocalizationService } from '@progress/kendo-angular-l10n';
11
10
  import { SizingOptionsService } from '../../layout/sizing-options.service';
11
+ import { ContextService } from '../../common/provider.service';
12
12
  import * as i0 from "@angular/core";
13
13
  import * as i1 from "../filter.service";
14
14
  import * as i2 from "../../columns/column.component";
15
- import * as i3 from "@progress/kendo-angular-l10n";
15
+ import * as i3 from "../../common/provider.service";
16
16
  import * as i4 from "../../layout/sizing-options.service";
17
17
  import * as i5 from "./filter-cell-wrapper.component";
18
18
  import * as i6 from "@progress/kendo-angular-dropdowns";
@@ -33,12 +33,12 @@ const stringOperators = localizeOperators({
33
33
  * @hidden
34
34
  */
35
35
  export class AutoCompleteFilterCellComponent extends BaseFilterCellComponent {
36
- constructor(filterService, column, localization, sizingOptionsService) {
36
+ constructor(filterService, column, ctx, sizingOptionsService) {
37
37
  super(filterService);
38
- this.localization = localization;
38
+ this.ctx = ctx;
39
39
  this.showOperators = true;
40
40
  this.size = 'medium';
41
- this.defaultOperators = stringOperators(this.localization);
41
+ this.defaultOperators = stringOperators(this.ctx.localization);
42
42
  this.column = column;
43
43
  this.subs = sizingOptionsService.changes.subscribe(size => this.size = size);
44
44
  }
@@ -60,7 +60,7 @@ export class AutoCompleteFilterCellComponent extends BaseFilterCellComponent {
60
60
  }
61
61
  }
62
62
  }
63
- AutoCompleteFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AutoCompleteFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.ColumnComponent }, { token: i3.LocalizationService }, { token: i4.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
63
+ AutoCompleteFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AutoCompleteFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.ColumnComponent }, { token: i3.ContextService }, { token: i4.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
64
64
  AutoCompleteFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AutoCompleteFilterCellComponent, selector: "kendo-grid-autocomplete-filter-cell", inputs: { showOperators: "showOperators", column: "column", filter: "filter", data: "data", valueField: "valueField" }, usesInheritance: true, ngImport: i0, template: `
65
65
  <kendo-grid-filter-wrapper-cell
66
66
  [column]="column"
@@ -96,7 +96,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
96
96
  </kendo-grid-filter-wrapper-cell>
97
97
  `
98
98
  }]
99
- }], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.ColumnComponent }, { type: i3.LocalizationService }, { type: i4.SizingOptionsService }]; }, propDecorators: { showOperators: [{
99
+ }], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.ColumnComponent }, { type: i3.ContextService }, { type: i4.SizingOptionsService }]; }, propDecorators: { showOperators: [{
100
100
  type: Input
101
101
  }], column: [{
102
102
  type: Input