@progress/kendo-angular-spreadsheet 17.0.0-develop.21 → 17.0.0-develop.22

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 (86) hide show
  1. package/action-bar/formula-input.directive.d.ts +1 -1
  2. package/action-bar/list.component.d.ts +5 -4
  3. package/action-bar/namebox.component.d.ts +1 -1
  4. package/{esm2020 → esm2022}/action-bar/formula-input.directive.mjs +63 -54
  5. package/{esm2020 → esm2022}/action-bar/list.component.mjs +21 -16
  6. package/{esm2020 → esm2022}/action-bar/namebox.component.mjs +20 -12
  7. package/{esm2020 → esm2022}/common/error-handling.service.mjs +12 -6
  8. package/{esm2020 → esm2022}/common/main-menu.directive.mjs +5 -3
  9. package/{esm2020 → esm2022}/common/spreadsheet.service.mjs +10 -7
  10. package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
  11. package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +7 -6
  12. package/esm2022/localization/messages.mjs +494 -0
  13. package/{esm2020 → esm2022}/localization/spreadsheet-localization.service.mjs +3 -3
  14. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  15. package/{esm2020 → esm2022}/sheets-bar/action-dialog.component.mjs +8 -4
  16. package/{esm2020 → esm2022}/sheets-bar/sheets-bar.component.mjs +100 -86
  17. package/{esm2020 → esm2022}/spreadsheet.component.mjs +211 -179
  18. package/{esm2020 → esm2022}/spreadsheet.module.mjs +4 -4
  19. package/{esm2020 → esm2022}/tools/align/align-tool.directive.mjs +8 -5
  20. package/{esm2020 → esm2022}/tools/align/horizontal-align-tool.directive.mjs +8 -5
  21. package/{esm2020 → esm2022}/tools/align/vertical-align-tool.directive.mjs +8 -5
  22. package/{esm2020 → esm2022}/tools/colorpicker/spreadsheet-backcolor.component.mjs +4 -4
  23. package/{esm2020 → esm2022}/tools/colorpicker/spreadsheet-forecolor.component.mjs +4 -4
  24. package/{esm2020 → esm2022}/tools/decrease-decimal-tool.directive.mjs +3 -3
  25. package/{esm2020 → esm2022}/tools/font-family/font-family-dropdownlist.component.mjs +4 -4
  26. package/{esm2020 → esm2022}/tools/font-family/spreadsheet-fontfamily-tool.component.mjs +4 -4
  27. package/{esm2020 → esm2022}/tools/font-size/decrease-font-tool.directive.mjs +4 -3
  28. package/{esm2020 → esm2022}/tools/font-size/font-size-dropdownlist.component.mjs +4 -4
  29. package/{esm2020 → esm2022}/tools/font-size/increase-font-tool.directive.mjs +4 -3
  30. package/{esm2020 → esm2022}/tools/font-size/spreadsheet-fontsize-tool.component.mjs +4 -4
  31. package/{esm2020 → esm2022}/tools/format-tool.directive.mjs +19 -16
  32. package/{esm2020 → esm2022}/tools/gridlines-tool.directive.mjs +3 -3
  33. package/{esm2020 → esm2022}/tools/history/redo-tool.mjs +3 -3
  34. package/{esm2020 → esm2022}/tools/history/undo-tool.mjs +3 -3
  35. package/{esm2020 → esm2022}/tools/increase-decimal-tool.directive.mjs +3 -3
  36. package/{esm2020 → esm2022}/tools/insert/insert-link-dialog.component.mjs +7 -5
  37. package/{esm2020 → esm2022}/tools/insert/insert-link-tool.directive.mjs +5 -3
  38. package/{esm2020 → esm2022}/tools/load-file.component.mjs +26 -27
  39. package/{esm2020 → esm2022}/tools/save-file-tool.directive.mjs +7 -4
  40. package/{esm2020 → esm2022}/tools/shared/dialog-content.component.mjs +10 -5
  41. package/{esm2020 → esm2022}/tools/shared/spreadsheet-command-base.mjs +9 -4
  42. package/{esm2020 → esm2022}/tools/shared/spreadsheet-command-button.mjs +6 -0
  43. package/{esm2020 → esm2022}/tools/shared/spreadsheet-dropdown-tools-base.mjs +25 -18
  44. package/{esm2020 → esm2022}/tools/shared/spreadsheet-dropdownlist.base.mjs +12 -8
  45. package/{esm2020 → esm2022}/tools/tables/add-column-left-button.directive.mjs +3 -3
  46. package/{esm2020 → esm2022}/tools/tables/add-column-right-button.directive.mjs +3 -3
  47. package/{esm2020 → esm2022}/tools/tables/add-row-above-button.directive.mjs +3 -3
  48. package/{esm2020 → esm2022}/tools/tables/add-row-below-button.directive.mjs +3 -3
  49. package/{esm2020 → esm2022}/tools/tables/delete-column-button.directive.mjs +3 -3
  50. package/{esm2020 → esm2022}/tools/tables/delete-row-button.directive.mjs +3 -3
  51. package/{esm2020 → esm2022}/tools/tables/merge-tool.directive.mjs +8 -5
  52. package/{esm2020 → esm2022}/tools/text-wrap-tool.directive.mjs +3 -3
  53. package/esm2022/tools/tools.service.mjs +61 -0
  54. package/{esm2020 → esm2022}/tools/typographical-emphasis/bold-tool.directive.mjs +3 -3
  55. package/{esm2020 → esm2022}/tools/typographical-emphasis/italic-tool.directive.mjs +3 -3
  56. package/{esm2020 → esm2022}/tools/typographical-emphasis/underline-tool.directive.mjs +3 -3
  57. package/{fesm2020 → fesm2022}/progress-kendo-angular-spreadsheet.mjs +1070 -615
  58. package/localization/messages.d.ts +1 -1
  59. package/models/sheet-info.d.ts +2 -2
  60. package/package.json +23 -29
  61. package/schematics/ngAdd/index.js +2 -2
  62. package/sheets-bar/sheets-bar.component.d.ts +1 -1
  63. package/spreadsheet.component.d.ts +1 -1
  64. package/tools/load-file.component.d.ts +0 -3
  65. package/tools/shared/commands.d.ts +1 -1
  66. package/tools/shared/spreadsheet-dropdown-tools-base.d.ts +1 -3
  67. package/tools/shared/spreadsheet-dropdownlist.base.d.ts +1 -1
  68. package/esm2020/localization/messages.mjs +0 -175
  69. package/esm2020/tools/tools.service.mjs +0 -60
  70. package/fesm2015/progress-kendo-angular-spreadsheet.mjs +0 -4610
  71. /package/{esm2020 → esm2022}/common/sheet-changes.mjs +0 -0
  72. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  73. /package/{esm2020 → esm2022}/index.mjs +0 -0
  74. /package/{esm2020 → esm2022}/models/events.mjs +0 -0
  75. /package/{esm2020 → esm2022}/models/index.mjs +0 -0
  76. /package/{esm2020 → esm2022}/models/main-menu-item.mjs +0 -0
  77. /package/{esm2020 → esm2022}/models/sheet-info.mjs +0 -0
  78. /package/{esm2020 → esm2022}/progress-kendo-angular-spreadsheet.mjs +0 -0
  79. /package/{esm2020 → esm2022}/sheets-bar/utils.mjs +0 -0
  80. /package/{esm2020 → esm2022}/tools/index.mjs +0 -0
  81. /package/{esm2020 → esm2022}/tools/shared/command-icons.mjs +0 -0
  82. /package/{esm2020 → esm2022}/tools/shared/commands.mjs +0 -0
  83. /package/{esm2020 → esm2022}/tools/shared/constants.mjs +0 -0
  84. /package/{esm2020 → esm2022}/tools/tables/index.mjs +0 -0
  85. /package/{esm2020 → esm2022}/tools/utils.mjs +0 -0
  86. /package/{esm2020 → esm2022}/utils.mjs +0 -0
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from '@angular/core';
6
- import { Injectable, EventEmitter, Output, Inject, Optional, Component, HostBinding, Input, Directive, ElementRef, ViewChild, ViewChildren, HostListener, InjectionToken, forwardRef, ViewContainerRef, NgModule } from '@angular/core';
6
+ import { Injectable, EventEmitter, Output, Inject, Optional, Component, Input, Directive, HostBinding, ElementRef, ViewChild, ViewChildren, HostListener, InjectionToken, forwardRef, ViewContainerRef, NgModule } from '@angular/core';
7
7
  import { NgFor, NgIf, NgStyle, NgSwitch, NgSwitchCase } from '@angular/common';
8
8
  import { Subject, Subscription } from 'rxjs';
9
9
  import { take, map } from 'rxjs/operators';
@@ -38,8 +38,8 @@ const packageMetadata = {
38
38
  name: '@progress/kendo-angular-spreadsheet',
39
39
  productName: 'Kendo UI for Angular',
40
40
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
41
- publishDate: 1729874289,
42
- version: '17.0.0-develop.21',
41
+ publishDate: 1730103635,
42
+ version: '17.0.0-develop.22',
43
43
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning',
44
44
  };
45
45
 
@@ -48,11 +48,13 @@ let spreadsheetCounter = 0;
48
48
  * @hidden
49
49
  */
50
50
  class SpreadsheetService {
51
+ spreadsheet;
52
+ sheetsChanged = new Subject();
53
+ onSheetsBarFocus = new Subject();
54
+ activeSheetChanged = new Subject();
55
+ selectionChanged = new Subject();
56
+ dialogContainer;
51
57
  constructor() {
52
- this.sheetsChanged = new Subject();
53
- this.onSheetsBarFocus = new Subject();
54
- this.activeSheetChanged = new Subject();
55
- this.selectionChanged = new Subject();
56
58
  spreadsheetCounter++;
57
59
  }
58
60
  set currentActiveSheet(value) {
@@ -70,14 +72,15 @@ class SpreadsheetService {
70
72
  get tablistId() {
71
73
  return `k-spreadsheet-${spreadsheetCounter}-tablist`;
72
74
  }
75
+ _currentActiveSheet;
73
76
  notifySheetsChange(actionType, sheetInfo) {
74
77
  const sheets = this.spreadsheet.sheets();
75
78
  this.sheetsChanged.next({ sheets, sheet: sheetInfo, actionType });
76
79
  }
80
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
81
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetService });
77
82
  }
78
- SpreadsheetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
79
- SpreadsheetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetService });
80
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetService, decorators: [{
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetService, decorators: [{
81
84
  type: Injectable
82
85
  }], ctorParameters: function () { return []; } });
83
86
 
@@ -85,52 +88,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
85
88
  * @hidden
86
89
  */
87
90
  class SpreadsheetToolsService {
88
- constructor(ngZone) {
89
- this.ngZone = ngZone;
90
- this.stateChange = new EventEmitter();
91
- this.toolsFunctions = [
92
- 'bold',
93
- 'italic',
94
- 'underline',
95
- 'fontFamily',
96
- 'fontSize',
97
- 'color',
98
- 'background',
99
- 'textAlign',
100
- 'verticalAlign',
101
- 'wrap',
102
- 'gridLines',
103
- 'format'
104
- ];
105
- this._toolsState = {};
106
- this.updateTools = (e) => {
107
- this.ngZone.run(() => {
108
- const state = {};
109
- this.toolsFunctions.forEach(tool => {
110
- if (typeof e.range[tool] === 'function') {
111
- state[tool] = e.range[tool]();
112
- }
113
- else if (tool === 'gridLines') {
114
- state[tool] = e.range.sheet().showGridLines();
115
- }
116
- });
117
- if (this.toolsFunctions.some(k => state[k] !== this.toolsState[k])) {
118
- this.toolsState = state;
119
- this.stateChange.emit(state);
120
- }
121
- });
122
- };
123
- }
91
+ ngZone;
92
+ stateChange = new EventEmitter();
124
93
  set toolsState(state) {
125
94
  this._toolsState = state;
126
95
  }
127
96
  get toolsState() {
128
97
  return this._toolsState;
129
98
  }
99
+ toolsFunctions = [
100
+ 'bold',
101
+ 'italic',
102
+ 'underline',
103
+ 'fontFamily',
104
+ 'fontSize',
105
+ 'color',
106
+ 'background',
107
+ 'textAlign',
108
+ 'verticalAlign',
109
+ 'wrap',
110
+ 'gridLines',
111
+ 'format'
112
+ ];
113
+ _toolsState = {};
114
+ constructor(ngZone) {
115
+ this.ngZone = ngZone;
116
+ }
117
+ updateTools = (e) => {
118
+ this.ngZone.run(() => {
119
+ const state = {};
120
+ this.toolsFunctions.forEach(tool => {
121
+ if (typeof e.range[tool] === 'function') {
122
+ state[tool] = e.range[tool]();
123
+ }
124
+ else if (tool === 'gridLines') {
125
+ state[tool] = e.range.sheet().showGridLines();
126
+ }
127
+ });
128
+ if (this.toolsFunctions.some(k => state[k] !== this.toolsState[k])) {
129
+ this.toolsState = state;
130
+ this.stateChange.emit(state);
131
+ }
132
+ });
133
+ };
134
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetToolsService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
135
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetToolsService });
130
136
  }
131
- SpreadsheetToolsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetToolsService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
132
- SpreadsheetToolsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetToolsService });
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetToolsService, decorators: [{
137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetToolsService, decorators: [{
134
138
  type: Injectable
135
139
  }], ctorParameters: function () { return [{ type: i0.NgZone }]; }, propDecorators: { stateChange: [{
136
140
  type: Output
@@ -143,10 +147,10 @@ class SpreadsheetLocalizationService extends LocalizationService {
143
147
  constructor(prefix, messageService, _rtl) {
144
148
  super(prefix, messageService, _rtl);
145
149
  }
150
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i2.MessageService, optional: true }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
151
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetLocalizationService });
146
152
  }
147
- SpreadsheetLocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i2.MessageService, optional: true }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
148
- SpreadsheetLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetLocalizationService });
149
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetLocalizationService, decorators: [{
153
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetLocalizationService, decorators: [{
150
154
  type: Injectable
151
155
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
152
156
  type: Inject,
@@ -191,19 +195,26 @@ const replaceMessagePlaceholder = (message, name, value) => message.replace(new
191
195
  * @hidden
192
196
  */
193
197
  class FormulaListComponent {
194
- constructor(element, spreadsheetService) {
198
+ element;
199
+ spreadsheetService;
200
+ renderer;
201
+ maxHeight;
202
+ data = [];
203
+ itemClick;
204
+ formulaFxIcon = formulaFxIcon;
205
+ constructor(element, spreadsheetService, renderer) {
195
206
  this.element = element;
196
207
  this.spreadsheetService = spreadsheetService;
197
- this.id = this.spreadsheetService.formulaListId;
198
- this.data = [];
199
- this.formulaFxIcon = formulaFxIcon;
200
- this.handleMouseDown = (ev) => {
201
- ev.preventDefault();
202
- };
208
+ this.renderer = renderer;
203
209
  }
204
- }
205
- FormulaListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormulaListComponent, deps: [{ token: i0.ElementRef }, { token: SpreadsheetService }], target: i0.ɵɵFactoryTarget.Component });
206
- FormulaListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FormulaListComponent, isStandalone: true, selector: "kendo-spreadsheet-formula-list", inputs: { maxHeight: "maxHeight", data: "data", itemClick: "itemClick" }, host: { properties: { "attr.id": "this.id" } }, ngImport: i0, template: `
210
+ ngOnInit() {
211
+ this.renderer.setAttribute(this.element.nativeElement, 'id', this.spreadsheetService.formulaListId);
212
+ }
213
+ handleMouseDown = (ev) => {
214
+ ev.preventDefault();
215
+ };
216
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormulaListComponent, deps: [{ token: i0.ElementRef }, { token: SpreadsheetService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
217
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormulaListComponent, isStandalone: true, selector: "kendo-spreadsheet-formula-list", inputs: { maxHeight: "maxHeight", data: "data", itemClick: "itemClick" }, ngImport: i0, template: `
207
218
  <ul #ulRef
208
219
  class="k-spreadsheet-formula-list k-list-ul k-list-md k-group k-reset"
209
220
  role="menu"
@@ -222,7 +233,8 @@ FormulaListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
222
233
  </li>
223
234
  </ul>
224
235
  `, isInline: true, dependencies: [{ kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
225
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormulaListComponent, decorators: [{
236
+ }
237
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormulaListComponent, decorators: [{
226
238
  type: Component,
227
239
  args: [{
228
240
  selector: 'kendo-spreadsheet-formula-list',
@@ -248,10 +260,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
248
260
  standalone: true,
249
261
  imports: [EventsOutsideAngularDirective, NgFor, IconWrapperComponent]
250
262
  }]
251
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: SpreadsheetService }]; }, propDecorators: { id: [{
252
- type: HostBinding,
253
- args: ['attr.id']
254
- }], maxHeight: [{
263
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: SpreadsheetService }, { type: i0.Renderer2 }]; }, propDecorators: { maxHeight: [{
255
264
  type: Input
256
265
  }], data: [{
257
266
  type: Input
@@ -263,63 +272,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
263
272
  * @hidden
264
273
  */
265
274
  class FormulaInputDirective {
266
- constructor(element, popupService, spreadsheetService, localization) {
267
- this.element = element;
268
- this.popupService = popupService;
269
- this.spreadsheetService = spreadsheetService;
270
- this.localization = localization;
271
- this.hostClasses = true;
272
- this.role = 'combobox';
273
- this.ariaHasPopup = 'menu';
274
- this.ariaExpanded = 'false';
275
- this.focusedItem = () => this.list?.element.nativeElement.querySelector('.k-focus');
276
- this.unfocus = () => {
277
- const focused = this.focusedItem();
278
- if (focused) {
279
- focused.classList.remove('k-focus');
280
- }
281
- };
282
- this.focusNext = (dir) => {
283
- const element = this.list?.element.nativeElement.firstElementChild;
284
- const items = Array.from((element && element.children) || []);
285
- const focused = this.focusedItem();
286
- let next;
287
- if (focused) {
288
- const index = items.indexOf(focused);
289
- focused.classList.remove('k-focus');
290
- next = items[index + dir] ? items[index + dir] : (dir === 1 ? items[0] : items[items.length - 1]);
291
- }
292
- else {
293
- next = (dir === 1 ? items[0] : items[items.length - 1]);
294
- }
295
- if (next) {
296
- next.classList.add('k-focus');
297
- const { offsetTop, offsetHeight, parentElement } = next;
298
- if (dir > 0) {
299
- if (offsetTop + offsetHeight >= parentElement.offsetHeight + parentElement.scrollTop) {
300
- parentElement.scrollTop = Math.min(parentElement.scrollTop + offsetHeight, parentElement.scrollHeight - parentElement.offsetHeight);
301
- }
302
- if (next === items[0]) {
303
- next.scrollIntoView();
304
- }
305
- }
306
- else {
307
- if (offsetTop <= parentElement.scrollTop) {
308
- parentElement.scrollTop = Math.max(parentElement.scrollTop - offsetHeight, 0);
309
- }
310
- if (next === items[items.length - 1]) {
311
- next.scrollIntoView();
312
- }
313
- }
314
- }
315
- };
316
- }
275
+ element;
276
+ popupService;
277
+ spreadsheetService;
278
+ localization;
279
+ hostClasses = true;
317
280
  get title() {
318
281
  return this.localization.get('formulaInput');
319
282
  }
283
+ role = 'combobox';
284
+ ariaHasPopup = 'menu';
285
+ ariaExpanded = 'false';
320
286
  get ariaControls() {
321
287
  return this.ariaExpanded === 'true' ? this.spreadsheetService.formulaListId : null;
322
288
  }
289
+ formulaListMaxHeight;
290
+ list;
291
+ data;
292
+ constructor(element, popupService, spreadsheetService, localization) {
293
+ this.element = element;
294
+ this.popupService = popupService;
295
+ this.spreadsheetService = spreadsheetService;
296
+ this.localization = localization;
297
+ }
298
+ popupRef;
299
+ handler;
323
300
  get listElement() {
324
301
  return this.list?.element.nativeElement.firstElementChild;
325
302
  }
@@ -392,10 +369,51 @@ class FormulaInputDirective {
392
369
  }
393
370
  };
394
371
  }
372
+ focusedItem = () => this.list?.element.nativeElement.querySelector('.k-focus');
373
+ unfocus = () => {
374
+ const focused = this.focusedItem();
375
+ if (focused) {
376
+ focused.classList.remove('k-focus');
377
+ }
378
+ };
379
+ focusNext = (dir) => {
380
+ const element = this.list?.element.nativeElement.firstElementChild;
381
+ const items = Array.from((element && element.children) || []);
382
+ const focused = this.focusedItem();
383
+ let next;
384
+ if (focused) {
385
+ const index = items.indexOf(focused);
386
+ focused.classList.remove('k-focus');
387
+ next = items[index + dir] ? items[index + dir] : (dir === 1 ? items[0] : items[items.length - 1]);
388
+ }
389
+ else {
390
+ next = (dir === 1 ? items[0] : items[items.length - 1]);
391
+ }
392
+ if (next) {
393
+ next.classList.add('k-focus');
394
+ const { offsetTop, offsetHeight, parentElement } = next;
395
+ if (dir > 0) {
396
+ if (offsetTop + offsetHeight >= parentElement.offsetHeight + parentElement.scrollTop) {
397
+ parentElement.scrollTop = Math.min(parentElement.scrollTop + offsetHeight, parentElement.scrollHeight - parentElement.offsetHeight);
398
+ }
399
+ if (next === items[0]) {
400
+ next.scrollIntoView();
401
+ }
402
+ }
403
+ else {
404
+ if (offsetTop <= parentElement.scrollTop) {
405
+ parentElement.scrollTop = Math.max(parentElement.scrollTop - offsetHeight, 0);
406
+ }
407
+ if (next === items[items.length - 1]) {
408
+ next.scrollIntoView();
409
+ }
410
+ }
411
+ }
412
+ };
413
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormulaInputDirective, deps: [{ token: i0.ElementRef }, { token: i1.PopupService }, { token: SpreadsheetService }, { token: SpreadsheetLocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
414
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FormulaInputDirective, isStandalone: true, selector: "[kendoSpreadsheetFormulaInput]", inputs: { formulaListMaxHeight: "formulaListMaxHeight" }, host: { properties: { "class.k-spreadsheet-formula-input": "this.hostClasses", "attr.title": "this.title", "attr.role": "this.role", "attr.aria-haspopup": "this.ariaHasPopup", "attr.aria-expanded": "this.ariaExpanded", "attr.aria-controls": "this.ariaControls" } }, ngImport: i0 });
395
415
  }
396
- FormulaInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormulaInputDirective, deps: [{ token: i0.ElementRef }, { token: i1.PopupService }, { token: SpreadsheetService }, { token: SpreadsheetLocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
397
- FormulaInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FormulaInputDirective, isStandalone: true, selector: "[kendoSpreadsheetFormulaInput]", inputs: { formulaListMaxHeight: "formulaListMaxHeight" }, host: { properties: { "class.k-spreadsheet-formula-input": "this.hostClasses", "attr.title": "this.title", "attr.role": "this.role", "attr.aria-haspopup": "this.ariaHasPopup", "attr.aria-expanded": "this.ariaExpanded", "attr.aria-controls": "this.ariaControls" } }, ngImport: i0 });
398
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormulaInputDirective, decorators: [{
416
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormulaInputDirective, decorators: [{
399
417
  type: Directive,
400
418
  args: [{
401
419
  selector: '[kendoSpreadsheetFormulaInput]',
@@ -472,13 +490,18 @@ const getSheetActions = (items, item) => {
472
490
  * @hidden
473
491
  */
474
492
  class ErrorHandlingService {
493
+ spreadsheetService;
494
+ localization;
495
+ dialogService;
496
+ spreadsheet;
497
+ sheetsChanged = new Subject();
498
+ activeSheetChanged = new Subject();
499
+ selectionChanged = new Subject();
500
+ dialogContainer;
475
501
  constructor(spreadsheetService, localization, dialogService) {
476
502
  this.spreadsheetService = spreadsheetService;
477
503
  this.localization = localization;
478
504
  this.dialogService = dialogService;
479
- this.sheetsChanged = new Subject();
480
- this.activeSheetChanged = new Subject();
481
- this.selectionChanged = new Subject();
482
505
  }
483
506
  set currentActiveSheet(value) {
484
507
  this._currentActiveSheet = value;
@@ -489,6 +512,7 @@ class ErrorHandlingService {
489
512
  get activeSheet() {
490
513
  return this.spreadsheet.activeSheet()?.name();
491
514
  }
515
+ _currentActiveSheet;
492
516
  notifySheetsChange(actionType, sheetInfo) {
493
517
  const sheets = this.spreadsheet.sheets();
494
518
  this.sheetsChanged.next({ sheets, sheet: sheetInfo, actionType });
@@ -534,10 +558,10 @@ class ErrorHandlingService {
534
558
  messageFor(text) {
535
559
  return this.localization.get(text);
536
560
  }
561
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorHandlingService, deps: [{ token: SpreadsheetService }, { token: i2.LocalizationService }, { token: i1$1.DialogService }], target: i0.ɵɵFactoryTarget.Injectable });
562
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorHandlingService });
537
563
  }
538
- ErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ErrorHandlingService, deps: [{ token: SpreadsheetService }, { token: i2.LocalizationService }, { token: i1$1.DialogService }], target: i0.ɵɵFactoryTarget.Injectable });
539
- ErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ErrorHandlingService });
540
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ErrorHandlingService, decorators: [{
564
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorHandlingService, decorators: [{
541
565
  type: Injectable
542
566
  }], ctorParameters: function () { return [{ type: SpreadsheetService }, { type: i2.LocalizationService }, { type: i1$1.DialogService }]; } });
543
567
 
@@ -650,17 +674,18 @@ const commandSVGIcons = {
650
674
  * @hidden
651
675
  */
652
676
  class InsertLinkDialogComponent extends DialogContentBase {
677
+ dialog;
678
+ urlLink = '';
679
+ title;
653
680
  constructor(dialog) {
654
681
  super(dialog);
655
682
  this.dialog = dialog;
656
- this.urlLink = '';
657
683
  }
658
684
  setData(args) {
659
685
  this.urlLink = args.link;
660
686
  }
661
- }
662
- InsertLinkDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsertLinkDialogComponent, deps: [{ token: i1$1.DialogRef }], target: i0.ɵɵFactoryTarget.Component });
663
- InsertLinkDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: InsertLinkDialogComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
687
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InsertLinkDialogComponent, deps: [{ token: i1$1.DialogRef }], target: i0.ɵɵFactoryTarget.Component });
688
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: InsertLinkDialogComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
664
689
  <form class="k-form k-form-md" method="dialog">
665
690
  <div class="k-form-field">
666
691
  <kendo-label [for]="textbox" text="URL"></kendo-label>
@@ -670,7 +695,8 @@ InsertLinkDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
670
695
  </div>
671
696
  </form>
672
697
  `, isInline: true, dependencies: [{ kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }] });
673
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsertLinkDialogComponent, decorators: [{
698
+ }
699
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InsertLinkDialogComponent, decorators: [{
674
700
  type: Component,
675
701
  args: [{
676
702
  template: `
@@ -692,6 +718,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
692
718
  * @hidden
693
719
  */
694
720
  class ActionDialogComponent extends DialogContentBase {
721
+ dialog;
722
+ commandName;
723
+ value;
724
+ tabindex;
695
725
  constructor(dialog) {
696
726
  super(dialog);
697
727
  this.dialog = dialog;
@@ -701,9 +731,8 @@ class ActionDialogComponent extends DialogContentBase {
701
731
  this.tabindex = args.tabindex;
702
732
  this.commandName = args.commandName;
703
733
  }
704
- }
705
- ActionDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ActionDialogComponent, deps: [{ token: i1$1.DialogRef }], target: i0.ɵɵFactoryTarget.Component });
706
- ActionDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ActionDialogComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
734
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionDialogComponent, deps: [{ token: i1$1.DialogRef }], target: i0.ɵɵFactoryTarget.Component });
735
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ActionDialogComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
707
736
  <ng-container *ngIf="commandName === 'delete'">
708
737
  <p>The deleted sheet data will be lost.</p>
709
738
  <p>Are you sure you want to proceed?</p>
@@ -722,7 +751,8 @@ ActionDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
722
751
  </div>
723
752
  </form>
724
753
  `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }] });
725
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ActionDialogComponent, decorators: [{
754
+ }
755
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionDialogComponent, decorators: [{
726
756
  type: Component,
727
757
  args: [{
728
758
  template: `
@@ -753,6 +783,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
753
783
  * @hidden
754
784
  */
755
785
  class SheetsBarComponent {
786
+ spreadsheetService;
787
+ element;
788
+ renderer;
789
+ localization;
790
+ dialogService;
791
+ ngZone;
792
+ hostClasses = true;
793
+ sheets;
794
+ sheetDescriptors;
795
+ subs = new Subscription();
756
796
  constructor(spreadsheetService, element, renderer, localization, dialogService, ngZone) {
757
797
  this.spreadsheetService = spreadsheetService;
758
798
  this.element = element;
@@ -760,93 +800,33 @@ class SheetsBarComponent {
760
800
  this.localization = localization;
761
801
  this.dialogService = dialogService;
762
802
  this.ngZone = ngZone;
763
- this.hostClasses = true;
764
- this.subs = new Subscription();
765
- this.plusIcon = plusIcon;
766
- this.menuIcon = menuIcon;
767
- this.caretAltDownIcon = caretAltDownIcon;
768
- this.caretAltLeftIcon = caretAltLeftIcon;
769
- this.caretAltRightIcon = caretAltRightIcon;
770
- this.selected = false;
771
- this.sheetsMenuList = [];
772
- this.openedDdb = null;
773
- this.hiddenStateIcons = {
774
- hidden: 'eye-slash',
775
- visible: 'eye'
776
- };
777
- this.hiddenStateSVGIcons = {
778
- hidden: eyeSlashIcon,
779
- visible: eyeIcon
780
- };
781
- this.onAddClick = () => {
782
- if (this.spreadsheetService.spreadsheet) {
783
- this.spreadsheetService.spreadsheet.view.sheetsbar.onAddSelect();
784
- this.notifySheetsChange();
785
- }
786
- };
787
- this.actionsCallback = {
788
- copy: (sheetInfo) => {
789
- let copies = 0;
790
- const regex = this.getCopyRegex(sheetInfo.text);
791
- this.sheets.forEach(sheet => {
792
- const isPresent = regex.test(sheet.text);
793
- if (isPresent) {
794
- copies += 1;
795
- }
796
- });
797
- const sheetToCopy = this.spreadsheetService.spreadsheet.sheets().find(s => s.name() === sheetInfo.text);
798
- const newName = `${sheetInfo.text} (${copies + 1})`;
799
- this.spreadsheetService.spreadsheet.insertSheet({ data: { ...sheetToCopy.toJSON(), name: newName }, index: sheetInfo.index + 1 });
800
- this.selectSheet(newName);
801
- },
802
- move: (sheetInfo, itemKey) => {
803
- const isMoveRight = itemKey === 'sheetMoveRight';
804
- let oldIndex = -1;
805
- let newIndex = -1;
806
- const sheets = this.spreadsheetService.spreadsheet.sheets();
807
- if (isMoveRight) {
808
- for (let i = 0; i < sheets.length; i++) {
809
- if (sheets[i].name() === sheetInfo.text) {
810
- oldIndex = i;
811
- }
812
- if (oldIndex > -1 && i > oldIndex && sheets[i]._state() === 'visible') {
813
- newIndex = i;
814
- break;
815
- }
816
- }
817
- }
818
- else {
819
- for (let i = sheets.length - 1; i >= 0; i--) {
820
- if (sheets[i].name() === sheetInfo.text) {
821
- oldIndex = i;
822
- }
823
- if (oldIndex > -1 && (i < oldIndex) && sheets[i]._state() === 'visible') {
824
- newIndex = i;
825
- break;
826
- }
827
- }
828
- }
829
- const sheetsBar = this.spreadsheetService.spreadsheet.view.sheetsbar;
830
- sheetsBar.onSheetReorderEnd({ oldIndex, newIndex });
831
- this.selectSheet(sheetInfo.text);
832
- this.notifySheetsChange();
833
- },
834
- hide: (sheet) => {
835
- sheet.state = 'hidden';
836
- const sheets = this.spreadsheetService.spreadsheet.sheets();
837
- const sheetIndex = sheets.findIndex(s => s.name() === sheet.text);
838
- sheets[sheetIndex]._state('hidden');
839
- const newSelectedIndex = sheetIndex < sheets.length - 1 ? sheetIndex + 1 : 0;
840
- const sheetToSelect = sheets[newSelectedIndex].name();
841
- this.selectSheet(sheetToSelect);
842
- this.notifySheetsChange();
843
- }
844
- };
845
803
  this.subs.add(spreadsheetService.onSheetsBarFocus.subscribe(() => ngZone.run(() => this.tabstrip.selectTab(this.sheets.findIndex(sh => sh.text === spreadsheetService.currentActiveSheet)))));
846
804
  }
805
+ addButton;
806
+ menuButton;
807
+ tabstrip;
808
+ actionDdbs;
809
+ actionDdbRefs;
847
810
  get activeSheet() {
848
811
  return this.spreadsheetService.spreadsheet?.activeSheet()?.name();
849
812
  }
813
+ plusIcon = plusIcon;
814
+ menuIcon = menuIcon;
815
+ caretAltDownIcon = caretAltDownIcon;
816
+ caretAltLeftIcon = caretAltLeftIcon;
817
+ caretAltRightIcon = caretAltRightIcon;
818
+ selected = false;
819
+ sheetsMenuList = [];
820
+ openedDdb = null;
821
+ tabListSub;
822
+ hiddenStateIcons = {
823
+ hidden: 'eye-slash',
824
+ visible: 'eye'
825
+ };
826
+ hiddenStateSVGIcons = {
827
+ hidden: eyeSlashIcon,
828
+ visible: eyeIcon
829
+ };
850
830
  get tablistId() {
851
831
  return this.spreadsheetService.tablistId;
852
832
  }
@@ -882,6 +862,12 @@ class SheetsBarComponent {
882
862
  }
883
863
  this.subs.unsubscribe();
884
864
  }
865
+ onAddClick = () => {
866
+ if (this.spreadsheetService.spreadsheet) {
867
+ this.spreadsheetService.spreadsheet.view.sheetsbar.onAddSelect();
868
+ this.notifySheetsChange();
869
+ }
870
+ };
885
871
  onTabSelect(ev) {
886
872
  if (ev.title !== this.activeSheet) {
887
873
  this.selectSheet(ev.title);
@@ -957,6 +943,64 @@ class SheetsBarComponent {
957
943
  const st = `(${newName})\\s?\\(`;
958
944
  return new RegExp(st, 's');
959
945
  }
946
+ actionsCallback = {
947
+ copy: (sheetInfo) => {
948
+ let copies = 0;
949
+ const regex = this.getCopyRegex(sheetInfo.text);
950
+ this.sheets.forEach(sheet => {
951
+ const isPresent = regex.test(sheet.text);
952
+ if (isPresent) {
953
+ copies += 1;
954
+ }
955
+ });
956
+ const sheetToCopy = this.spreadsheetService.spreadsheet.sheets().find(s => s.name() === sheetInfo.text);
957
+ const newName = `${sheetInfo.text} (${copies + 1})`;
958
+ this.spreadsheetService.spreadsheet.insertSheet({ data: { ...sheetToCopy.toJSON(), name: newName }, index: sheetInfo.index + 1 });
959
+ this.selectSheet(newName);
960
+ },
961
+ move: (sheetInfo, itemKey) => {
962
+ const isMoveRight = itemKey === 'sheetMoveRight';
963
+ let oldIndex = -1;
964
+ let newIndex = -1;
965
+ const sheets = this.spreadsheetService.spreadsheet.sheets();
966
+ if (isMoveRight) {
967
+ for (let i = 0; i < sheets.length; i++) {
968
+ if (sheets[i].name() === sheetInfo.text) {
969
+ oldIndex = i;
970
+ }
971
+ if (oldIndex > -1 && i > oldIndex && sheets[i]._state() === 'visible') {
972
+ newIndex = i;
973
+ break;
974
+ }
975
+ }
976
+ }
977
+ else {
978
+ for (let i = sheets.length - 1; i >= 0; i--) {
979
+ if (sheets[i].name() === sheetInfo.text) {
980
+ oldIndex = i;
981
+ }
982
+ if (oldIndex > -1 && (i < oldIndex) && sheets[i]._state() === 'visible') {
983
+ newIndex = i;
984
+ break;
985
+ }
986
+ }
987
+ }
988
+ const sheetsBar = this.spreadsheetService.spreadsheet.view.sheetsbar;
989
+ sheetsBar.onSheetReorderEnd({ oldIndex, newIndex });
990
+ this.selectSheet(sheetInfo.text);
991
+ this.notifySheetsChange();
992
+ },
993
+ hide: (sheet) => {
994
+ sheet.state = 'hidden';
995
+ const sheets = this.spreadsheetService.spreadsheet.sheets();
996
+ const sheetIndex = sheets.findIndex(s => s.name() === sheet.text);
997
+ sheets[sheetIndex]._state('hidden');
998
+ const newSelectedIndex = sheetIndex < sheets.length - 1 ? sheetIndex + 1 : 0;
999
+ const sheetToSelect = sheets[newSelectedIndex].name();
1000
+ this.selectSheet(sheetToSelect);
1001
+ this.notifySheetsChange();
1002
+ }
1003
+ };
960
1004
  selectSheet(sheetName) {
961
1005
  const spreadsheetSheet = this.spreadsheetService.spreadsheet.sheets().find(s => s.name() === sheetName);
962
1006
  this.spreadsheetService.spreadsheet.activeSheet(spreadsheetSheet);
@@ -1003,9 +1047,8 @@ class SheetsBarComponent {
1003
1047
  });
1004
1048
  this.ngZone.onStable.pipe(take(1)).subscribe(() => this.spreadsheetService.spreadsheet.view.clipboard.focus());
1005
1049
  }
1006
- }
1007
- SheetsBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SheetsBarComponent, deps: [{ token: SpreadsheetService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SpreadsheetLocalizationService }, { token: i1$1.DialogService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1008
- SheetsBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SheetsBarComponent, isStandalone: true, selector: "[kendoSpreadsheetSheetsBar]", inputs: { sheets: "sheets", sheetDescriptors: "sheetDescriptors" }, host: { properties: { "class.k-spreadsheet-sheets-bar": "this.hostClasses" } }, viewQueries: [{ propertyName: "addButton", first: true, predicate: ["addButton"], descendants: true }, { propertyName: "menuButton", first: true, predicate: ["menuButton"], descendants: true }, { propertyName: "tabstrip", first: true, predicate: ["tabstrip"], descendants: true }, { propertyName: "actionDdbs", predicate: ["sheetDdb"], descendants: true }, { propertyName: "actionDdbRefs", predicate: ["sheetDdb"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: `
1050
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SheetsBarComponent, deps: [{ token: SpreadsheetService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SpreadsheetLocalizationService }, { token: i1$1.DialogService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1051
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SheetsBarComponent, isStandalone: true, selector: "[kendoSpreadsheetSheetsBar]", inputs: { sheets: "sheets", sheetDescriptors: "sheetDescriptors" }, host: { properties: { "class.k-spreadsheet-sheets-bar": "this.hostClasses" } }, viewQueries: [{ propertyName: "addButton", first: true, predicate: ["addButton"], descendants: true }, { propertyName: "menuButton", first: true, predicate: ["menuButton"], descendants: true }, { propertyName: "tabstrip", first: true, predicate: ["tabstrip"], descendants: true }, { propertyName: "actionDdbs", predicate: ["sheetDdb"], descendants: true }, { propertyName: "actionDdbRefs", predicate: ["sheetDdb"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: `
1009
1052
  <button kendoButton #addButton
1010
1053
  [title]="messageFor('addSheet')"
1011
1054
  type="button"
@@ -1061,7 +1104,8 @@ SheetsBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
1061
1104
  </ng-container>
1062
1105
  </kendo-tabstrip>
1063
1106
  `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { kind: "component", type: TabStripComponent, selector: "kendo-tabstrip", inputs: ["height", "animate", "tabAlignment", "tabPosition", "keepTabContent", "closable", "scrollable", "closeIcon", "closeIconClass", "closeSVGIcon", "showContentArea"], outputs: ["tabSelect", "tabClose", "tabScroll"], exportAs: ["kendoTabStrip"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TabStripTabComponent, selector: "kendo-tabstrip-tab", inputs: ["title", "disabled", "cssClass", "cssStyle", "selected", "closable", "closeIcon", "closeIconClass", "closeSVGIcon"], exportAs: ["kendoTabStripTab"] }, { kind: "directive", type: TabTemplateDirective, selector: "[kendoTabTemplate]" }] });
1064
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SheetsBarComponent, decorators: [{
1107
+ }
1108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SheetsBarComponent, decorators: [{
1065
1109
  type: Component,
1066
1110
  args: [{
1067
1111
  selector: '[kendoSpreadsheetSheetsBar]',
@@ -1152,14 +1196,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1152
1196
  * @hidden
1153
1197
  */
1154
1198
  class NameBoxComponent {
1155
- constructor(ngZone, host, localization, renderer) {
1156
- this.ngZone = ngZone;
1157
- this.host = host;
1158
- this.localization = localization;
1159
- this.renderer = renderer;
1160
- this.hostClass = true;
1161
- this.valueNormalizer = (text) => text.pipe(map((content) => ({ name: content })));
1162
- }
1199
+ ngZone;
1200
+ host;
1201
+ localization;
1202
+ renderer;
1203
+ hostClass = true;
1163
1204
  keyDownHandler() {
1164
1205
  const editor = this.spreadsheetWidget.view.nameEditor;
1165
1206
  if (editor) {
@@ -1167,10 +1208,20 @@ class NameBoxComponent {
1167
1208
  editor.trigger('enter', { value: name });
1168
1209
  }
1169
1210
  }
1211
+ combobox;
1212
+ data;
1213
+ spreadsheetWidget;
1214
+ constructor(ngZone, host, localization, renderer) {
1215
+ this.ngZone = ngZone;
1216
+ this.host = host;
1217
+ this.localization = localization;
1218
+ this.renderer = renderer;
1219
+ }
1170
1220
  ngAfterViewInit() {
1171
1221
  this.renderer.setAttribute(this.inputElement, 'title', this.title);
1172
1222
  this.renderer.setAttribute(this.inputElement, 'aria-label', this.title);
1173
1223
  }
1224
+ value;
1174
1225
  get inputElement() {
1175
1226
  return this.host.nativeElement.querySelector('.k-input-inner');
1176
1227
  }
@@ -1208,9 +1259,9 @@ class NameBoxComponent {
1208
1259
  this.data = editor.readData();
1209
1260
  }
1210
1261
  }
1211
- }
1212
- NameBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NameBoxComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: SpreadsheetLocalizationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1213
- NameBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: NameBoxComponent, isStandalone: true, selector: "[kendoSpreadsheetNameBox]", inputs: { data: "data", spreadsheetWidget: "spreadsheetWidget" }, host: { listeners: { "keydown.enter": "keyDownHandler()" }, properties: { "class.k-spreadsheet-name-editor": "this.hostClass" } }, viewQueries: [{ propertyName: "combobox", first: true, predicate: ["combobox"], descendants: true }], ngImport: i0, template: `
1262
+ valueNormalizer = (text) => text.pipe(map((content) => ({ name: content })));
1263
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NameBoxComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: SpreadsheetLocalizationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1264
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: NameBoxComponent, isStandalone: true, selector: "[kendoSpreadsheetNameBox]", inputs: { data: "data", spreadsheetWidget: "spreadsheetWidget" }, host: { listeners: { "keydown.enter": "keyDownHandler()" }, properties: { "class.k-spreadsheet-name-editor": "this.hostClass" } }, viewQueries: [{ propertyName: "combobox", first: true, predicate: ["combobox"], descendants: true }], ngImport: i0, template: `
1214
1265
  <kendo-combobox #combobox
1215
1266
  [popupSettings]="{popupClass: 'k-spreadsheet-names-popup'}"
1216
1267
  fillMode="flat"
@@ -1226,7 +1277,8 @@ NameBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
1226
1277
  [attr.title]="title"
1227
1278
  ></kendo-combobox>
1228
1279
  `, isInline: true, dependencies: [{ kind: "component", type: ComboBoxComponent, selector: "kendo-combobox", inputs: ["icon", "svgIcon", "inputAttributes", "showStickyHeader", "focusableId", "allowCustom", "data", "value", "textField", "valueField", "valuePrimitive", "valueNormalizer", "placeholder", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "loading", "suggest", "clearButton", "disabled", "itemDisabled", "readonly", "tabindex", "tabIndex", "filterable", "virtual", "size", "rounded", "fillMode"], outputs: ["valueChange", "selectionChange", "filterChange", "open", "opened", "close", "closed", "focus", "blur", "inputFocus", "inputBlur", "escape"], exportAs: ["kendoComboBox"] }] });
1229
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NameBoxComponent, decorators: [{
1280
+ }
1281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NameBoxComponent, decorators: [{
1230
1282
  type: Component,
1231
1283
  args: [{
1232
1284
  selector: '[kendoSpreadsheetNameBox]',
@@ -1333,13 +1385,18 @@ const MY_TOKEN = new InjectionToken('COMMAND_TOKEN');
1333
1385
  * @hidden
1334
1386
  */
1335
1387
  class SpreadsheetCommandBaseDirective {
1388
+ command;
1389
+ button;
1390
+ localization;
1391
+ spreadsheetService;
1392
+ toolsService;
1393
+ subs = new Subscription();
1336
1394
  constructor(command, button, localization, spreadsheetService, toolsService) {
1337
1395
  this.command = command;
1338
1396
  this.button = button;
1339
1397
  this.localization = localization;
1340
1398
  this.spreadsheetService = spreadsheetService;
1341
1399
  this.toolsService = toolsService;
1342
- this.subs = new Subscription();
1343
1400
  const text = this.localization.get(this.command);
1344
1401
  if (text) {
1345
1402
  this.button.showText = 'overflow';
@@ -1367,10 +1424,10 @@ class SpreadsheetCommandBaseDirective {
1367
1424
  }
1368
1425
  clickHandler() { }
1369
1426
  pointerdownHandler(_event) { }
1427
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetCommandBaseDirective, deps: [{ token: MY_TOKEN }, { token: i1$2.ToolBarButtonComponent }, { token: i2.LocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1428
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetCommandBaseDirective, selector: "[kendoSpreadsheetCommandBase]", ngImport: i0 });
1370
1429
  }
1371
- SpreadsheetCommandBaseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetCommandBaseDirective, deps: [{ token: MY_TOKEN }, { token: i1$2.ToolBarButtonComponent }, { token: i2.LocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1372
- SpreadsheetCommandBaseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetCommandBaseDirective, selector: "[kendoSpreadsheetCommandBase]", ngImport: i0 });
1373
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetCommandBaseDirective, decorators: [{
1430
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetCommandBaseDirective, decorators: [{
1374
1431
  type: Directive,
1375
1432
  args: [{
1376
1433
  selector: '[kendoSpreadsheetCommandBase]'
@@ -1384,6 +1441,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1384
1441
  * @hidden
1385
1442
  */
1386
1443
  class SpreadsheetCommandButton extends SpreadsheetCommandBaseDirective {
1444
+ command;
1445
+ button;
1446
+ localization;
1447
+ spreadsheetService;
1448
+ toolsService;
1449
+ commandOptions;
1387
1450
  constructor(command, button, localization, spreadsheetService, toolsService, commandOptions) {
1388
1451
  super(command, button, localization, spreadsheetService, toolsService);
1389
1452
  this.command = command;
@@ -1423,10 +1486,10 @@ class SpreadsheetGridLinesDirective extends SpreadsheetCommandButton {
1423
1486
  this.spreadsheetService.spreadsheet.executeCommand(options);
1424
1487
  }
1425
1488
  }
1489
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetGridLinesDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1490
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetGridLinesDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetGridLines]", usesInheritance: true, ngImport: i0 });
1426
1491
  }
1427
- SpreadsheetGridLinesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetGridLinesDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1428
- SpreadsheetGridLinesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetGridLinesDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetGridLines]", usesInheritance: true, ngImport: i0 });
1429
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetGridLinesDirective, decorators: [{
1492
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetGridLinesDirective, decorators: [{
1430
1493
  type: Directive,
1431
1494
  args: [{
1432
1495
  selector: 'kendo-toolbar-button[kendoSpreadsheetGridLines]',
@@ -1438,11 +1501,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1438
1501
  * @hidden
1439
1502
  */
1440
1503
  class SpreadsheetMergeDirective {
1504
+ host;
1505
+ spreadsheetService;
1506
+ commandName = 'merge';
1507
+ subs = new Subscription();
1508
+ selectedRange;
1441
1509
  constructor(host, localization, spreadsheetService) {
1442
1510
  this.host = host;
1443
1511
  this.spreadsheetService = spreadsheetService;
1444
- this.commandName = 'merge';
1445
- this.subs = new Subscription();
1446
1512
  host.svgIcon = commandSVGIcons[this.commandName];
1447
1513
  host.icon = commandIcons[this.commandName];
1448
1514
  host.arrowIcon = true;
@@ -1478,10 +1544,10 @@ class SpreadsheetMergeDirective {
1478
1544
  const range = sheet._ref(this.selectedRange);
1479
1545
  return sheet._getMergedCells(range).hasMerged;
1480
1546
  }
1547
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetMergeDirective, deps: [{ token: i1$2.ToolBarDropDownButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }], target: i0.ɵɵFactoryTarget.Directive });
1548
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetMergeDirective, isStandalone: true, selector: "[kendoSpreadsheetMerge]", ngImport: i0 });
1481
1549
  }
1482
- SpreadsheetMergeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetMergeDirective, deps: [{ token: i1$2.ToolBarDropDownButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }], target: i0.ɵɵFactoryTarget.Directive });
1483
- SpreadsheetMergeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetMergeDirective, isStandalone: true, selector: "[kendoSpreadsheetMerge]", ngImport: i0 });
1484
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetMergeDirective, decorators: [{
1550
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetMergeDirective, decorators: [{
1485
1551
  type: Directive,
1486
1552
  args: [{
1487
1553
  selector: '[kendoSpreadsheetMerge]',
@@ -1505,10 +1571,10 @@ class SpreadsheetIncreaseDecimalDirective extends SpreadsheetCommandButton {
1505
1571
  };
1506
1572
  this.spreadsheetService.spreadsheet.executeCommand(options);
1507
1573
  }
1574
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetIncreaseDecimalDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1575
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetIncreaseDecimalDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetIncreaseDecimal]", usesInheritance: true, ngImport: i0 });
1508
1576
  }
1509
- SpreadsheetIncreaseDecimalDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetIncreaseDecimalDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1510
- SpreadsheetIncreaseDecimalDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetIncreaseDecimalDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetIncreaseDecimal]", usesInheritance: true, ngImport: i0 });
1511
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetIncreaseDecimalDirective, decorators: [{
1577
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetIncreaseDecimalDirective, decorators: [{
1512
1578
  type: Directive,
1513
1579
  args: [{
1514
1580
  selector: 'kendo-toolbar-button[kendoSpreadsheetIncreaseDecimal]',
@@ -1532,10 +1598,10 @@ class SpreadsheetDecreaseDecimalDirective extends SpreadsheetCommandButton {
1532
1598
  };
1533
1599
  this.spreadsheetService.spreadsheet.executeCommand(options);
1534
1600
  }
1601
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetDecreaseDecimalDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1602
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetDecreaseDecimalDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetDecreaseDecimal]", usesInheritance: true, ngImport: i0 });
1535
1603
  }
1536
- SpreadsheetDecreaseDecimalDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetDecreaseDecimalDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1537
- SpreadsheetDecreaseDecimalDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetDecreaseDecimalDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetDecreaseDecimal]", usesInheritance: true, ngImport: i0 });
1538
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetDecreaseDecimalDirective, decorators: [{
1604
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetDecreaseDecimalDirective, decorators: [{
1539
1605
  type: Directive,
1540
1606
  args: [{
1541
1607
  selector: 'kendo-toolbar-button[kendoSpreadsheetDecreaseDecimal]',
@@ -1553,10 +1619,10 @@ class SpreadsheetDeleteRowButtonDirective extends SpreadsheetCommandButton {
1553
1619
  options: { property: 'deleteRow' }
1554
1620
  });
1555
1621
  }
1622
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetDeleteRowButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1623
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetDeleteRowButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetDeleteRowButton]", usesInheritance: true, ngImport: i0 });
1556
1624
  }
1557
- SpreadsheetDeleteRowButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetDeleteRowButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1558
- SpreadsheetDeleteRowButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetDeleteRowButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetDeleteRowButton]", usesInheritance: true, ngImport: i0 });
1559
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetDeleteRowButtonDirective, decorators: [{
1625
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetDeleteRowButtonDirective, decorators: [{
1560
1626
  type: Directive,
1561
1627
  args: [{
1562
1628
  selector: 'kendo-toolbar-button[kendoSpreadsheetDeleteRowButton]',
@@ -1574,10 +1640,10 @@ class SpreadsheetDeleteColumnButtonDirective extends SpreadsheetCommandButton {
1574
1640
  options: { property: 'deleteColumn' }
1575
1641
  });
1576
1642
  }
1643
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetDeleteColumnButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1644
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetDeleteColumnButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetDeleteColumnButton]", usesInheritance: true, ngImport: i0 });
1577
1645
  }
1578
- SpreadsheetDeleteColumnButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetDeleteColumnButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1579
- SpreadsheetDeleteColumnButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetDeleteColumnButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetDeleteColumnButton]", usesInheritance: true, ngImport: i0 });
1580
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetDeleteColumnButtonDirective, decorators: [{
1646
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetDeleteColumnButtonDirective, decorators: [{
1581
1647
  type: Directive,
1582
1648
  args: [{
1583
1649
  selector: 'kendo-toolbar-button[kendoSpreadsheetDeleteColumnButton]',
@@ -1597,10 +1663,10 @@ class SpreadsheetAddRowAboveButtonDirective extends SpreadsheetCommandButton {
1597
1663
  }
1598
1664
  });
1599
1665
  }
1666
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetAddRowAboveButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1667
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetAddRowAboveButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetAddRowAboveButton]", usesInheritance: true, ngImport: i0 });
1600
1668
  }
1601
- SpreadsheetAddRowAboveButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetAddRowAboveButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1602
- SpreadsheetAddRowAboveButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetAddRowAboveButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetAddRowAboveButton]", usesInheritance: true, ngImport: i0 });
1603
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetAddRowAboveButtonDirective, decorators: [{
1669
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetAddRowAboveButtonDirective, decorators: [{
1604
1670
  type: Directive,
1605
1671
  args: [{
1606
1672
  selector: 'kendo-toolbar-button[kendoSpreadsheetAddRowAboveButton]',
@@ -1620,10 +1686,10 @@ class SpreadsheetAddRowBelowButtonDirective extends SpreadsheetCommandButton {
1620
1686
  }
1621
1687
  });
1622
1688
  }
1689
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetAddRowBelowButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1690
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetAddRowBelowButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetAddRowBelowButton]", usesInheritance: true, ngImport: i0 });
1623
1691
  }
1624
- SpreadsheetAddRowBelowButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetAddRowBelowButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1625
- SpreadsheetAddRowBelowButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetAddRowBelowButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetAddRowBelowButton]", usesInheritance: true, ngImport: i0 });
1626
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetAddRowBelowButtonDirective, decorators: [{
1692
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetAddRowBelowButtonDirective, decorators: [{
1627
1693
  type: Directive,
1628
1694
  args: [{
1629
1695
  selector: 'kendo-toolbar-button[kendoSpreadsheetAddRowBelowButton]',
@@ -1643,10 +1709,10 @@ class SpreadsheetAddColumnRightButtonDirective extends SpreadsheetCommandButton
1643
1709
  }
1644
1710
  });
1645
1711
  }
1712
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetAddColumnRightButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1713
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetAddColumnRightButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetAddColumnRightButton]", usesInheritance: true, ngImport: i0 });
1646
1714
  }
1647
- SpreadsheetAddColumnRightButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetAddColumnRightButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1648
- SpreadsheetAddColumnRightButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetAddColumnRightButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetAddColumnRightButton]", usesInheritance: true, ngImport: i0 });
1649
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetAddColumnRightButtonDirective, decorators: [{
1715
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetAddColumnRightButtonDirective, decorators: [{
1650
1716
  type: Directive,
1651
1717
  args: [{
1652
1718
  selector: 'kendo-toolbar-button[kendoSpreadsheetAddColumnRightButton]',
@@ -1666,10 +1732,10 @@ class SpreadsheetAddColumnLeftButtonDirective extends SpreadsheetCommandButton {
1666
1732
  }
1667
1733
  });
1668
1734
  }
1735
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetAddColumnLeftButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1736
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetAddColumnLeftButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetAddColumnLeftButton]", usesInheritance: true, ngImport: i0 });
1669
1737
  }
1670
- SpreadsheetAddColumnLeftButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetAddColumnLeftButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1671
- SpreadsheetAddColumnLeftButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetAddColumnLeftButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetAddColumnLeftButton]", usesInheritance: true, ngImport: i0 });
1672
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetAddColumnLeftButtonDirective, decorators: [{
1738
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetAddColumnLeftButtonDirective, decorators: [{
1673
1739
  type: Directive,
1674
1740
  args: [{
1675
1741
  selector: 'kendo-toolbar-button[kendoSpreadsheetAddColumnLeftButton]',
@@ -1681,6 +1747,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1681
1747
  * @hidden
1682
1748
  */
1683
1749
  class SpreadsheetInsertLinkDirective extends SpreadsheetCommandButton {
1750
+ dialogService;
1751
+ currentRange;
1684
1752
  constructor(button, localization, spreadsheetService, toolsService, dialogService) {
1685
1753
  super('insertLink', button, localization, spreadsheetService, toolsService, {
1686
1754
  command: 'HyperlinkCommand'
@@ -1742,10 +1810,10 @@ class SpreadsheetInsertLinkDirective extends SpreadsheetCommandButton {
1742
1810
  });
1743
1811
  });
1744
1812
  }
1813
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetInsertLinkDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }, { token: i1$1.DialogService }], target: i0.ɵɵFactoryTarget.Directive });
1814
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetInsertLinkDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetInsertLink]", usesInheritance: true, ngImport: i0 });
1745
1815
  }
1746
- SpreadsheetInsertLinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetInsertLinkDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }, { token: i1$1.DialogService }], target: i0.ɵɵFactoryTarget.Directive });
1747
- SpreadsheetInsertLinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetInsertLinkDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetInsertLink]", usesInheritance: true, ngImport: i0 });
1748
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetInsertLinkDirective, decorators: [{
1816
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetInsertLinkDirective, decorators: [{
1749
1817
  type: Directive,
1750
1818
  args: [{
1751
1819
  selector: 'kendo-toolbar-button[kendoSpreadsheetInsertLink]',
@@ -1757,23 +1825,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1757
1825
  * @hidden
1758
1826
  */
1759
1827
  class SpreadsheetFormatDirective {
1828
+ host;
1829
+ spreadsheetService;
1830
+ toolsService;
1831
+ data = FORMATS;
1832
+ commandName = 'format';
1833
+ subs = new Subscription();
1760
1834
  constructor(host, localization, spreadsheetService, toolsService) {
1761
1835
  this.host = host;
1762
1836
  this.spreadsheetService = spreadsheetService;
1763
1837
  this.toolsService = toolsService;
1764
- this.data = FORMATS;
1765
- this.commandName = 'format';
1766
- this.subs = new Subscription();
1767
- /**
1768
- * @hidden
1769
- */
1770
- this.onItemClick = (item) => {
1771
- const value = item.value || null;
1772
- const options = {
1773
- command: 'PropertyChangeCommand', options: { property: this.commandName, value }
1774
- };
1775
- this.spreadsheetService.spreadsheet.executeCommand(options);
1776
- };
1777
1838
  host.svgIcon = commandSVGIcons[this.commandName];
1778
1839
  host.icon = commandIcons[this.commandName];
1779
1840
  host.arrowIcon = true;
@@ -1788,10 +1849,20 @@ class SpreadsheetFormatDirective {
1788
1849
  ngOnDestroy() {
1789
1850
  this.subs.unsubscribe();
1790
1851
  }
1852
+ /**
1853
+ * @hidden
1854
+ */
1855
+ onItemClick = (item) => {
1856
+ const value = item.value || null;
1857
+ const options = {
1858
+ command: 'PropertyChangeCommand', options: { property: this.commandName, value }
1859
+ };
1860
+ this.spreadsheetService.spreadsheet.executeCommand(options);
1861
+ };
1862
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetFormatDirective, deps: [{ token: i1$2.ToolBarDropDownButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1863
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetFormatDirective, isStandalone: true, selector: "[kendoSpreadsheetFormat]", ngImport: i0 });
1791
1864
  }
1792
- SpreadsheetFormatDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetFormatDirective, deps: [{ token: i1$2.ToolBarDropDownButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1793
- SpreadsheetFormatDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetFormatDirective, isStandalone: true, selector: "[kendoSpreadsheetFormat]", ngImport: i0 });
1794
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetFormatDirective, decorators: [{
1865
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetFormatDirective, decorators: [{
1795
1866
  type: Directive,
1796
1867
  args: [{
1797
1868
  selector: '[kendoSpreadsheetFormat]',
@@ -1822,10 +1893,10 @@ class SpreadsheetTextWrapDirective extends SpreadsheetCommandButton {
1822
1893
  this.spreadsheetService.spreadsheet.executeCommand(options);
1823
1894
  }
1824
1895
  }
1896
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetTextWrapDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1897
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetTextWrapDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetTextWrap]", usesInheritance: true, ngImport: i0 });
1825
1898
  }
1826
- SpreadsheetTextWrapDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetTextWrapDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1827
- SpreadsheetTextWrapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetTextWrapDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetTextWrap]", usesInheritance: true, ngImport: i0 });
1828
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetTextWrapDirective, decorators: [{
1899
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetTextWrapDirective, decorators: [{
1829
1900
  type: Directive,
1830
1901
  args: [{
1831
1902
  selector: 'kendo-toolbar-button[kendoSpreadsheetTextWrap]',
@@ -1837,12 +1908,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1837
1908
  * @hidden
1838
1909
  */
1839
1910
  class SpreadsheetVerticalTextAlignDirective {
1911
+ host;
1912
+ spreadsheetService;
1913
+ toolsService;
1914
+ commandName = 'alignVertical';
1915
+ subs = new Subscription();
1840
1916
  constructor(host, localization, spreadsheetService, toolsService) {
1841
1917
  this.host = host;
1842
1918
  this.spreadsheetService = spreadsheetService;
1843
1919
  this.toolsService = toolsService;
1844
- this.commandName = 'alignVertical';
1845
- this.subs = new Subscription();
1846
1920
  host.svgIcon = commandSVGIcons[this.commandName];
1847
1921
  host.icon = commandIcons[this.commandName];
1848
1922
  host.arrowIcon = true;
@@ -1865,10 +1939,10 @@ class SpreadsheetVerticalTextAlignDirective {
1865
1939
  };
1866
1940
  this.spreadsheetService.spreadsheet.executeCommand(options);
1867
1941
  }
1942
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetVerticalTextAlignDirective, deps: [{ token: i1$2.ToolBarDropDownButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1943
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetVerticalTextAlignDirective, isStandalone: true, selector: "[kendoSpreadsheetVerticalTextAlign]", ngImport: i0 });
1868
1944
  }
1869
- SpreadsheetVerticalTextAlignDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetVerticalTextAlignDirective, deps: [{ token: i1$2.ToolBarDropDownButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1870
- SpreadsheetVerticalTextAlignDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetVerticalTextAlignDirective, isStandalone: true, selector: "[kendoSpreadsheetVerticalTextAlign]", ngImport: i0 });
1871
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetVerticalTextAlignDirective, decorators: [{
1945
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetVerticalTextAlignDirective, decorators: [{
1872
1946
  type: Directive,
1873
1947
  args: [{
1874
1948
  selector: '[kendoSpreadsheetVerticalTextAlign]',
@@ -1880,12 +1954,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1880
1954
  * @hidden
1881
1955
  */
1882
1956
  class SpreadsheetHorizontalTextAlignDirective {
1957
+ host;
1958
+ spreadsheetService;
1959
+ toolsService;
1960
+ commandName = 'alignHorizontal';
1961
+ subs = new Subscription();
1883
1962
  constructor(host, localization, spreadsheetService, toolsService) {
1884
1963
  this.host = host;
1885
1964
  this.spreadsheetService = spreadsheetService;
1886
1965
  this.toolsService = toolsService;
1887
- this.commandName = 'alignHorizontal';
1888
- this.subs = new Subscription();
1889
1966
  host.svgIcon = commandSVGIcons[this.commandName];
1890
1967
  host.icon = commandIcons[this.commandName];
1891
1968
  host.arrowIcon = true;
@@ -1908,10 +1985,10 @@ class SpreadsheetHorizontalTextAlignDirective {
1908
1985
  };
1909
1986
  this.spreadsheetService.spreadsheet.executeCommand(options);
1910
1987
  }
1988
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetHorizontalTextAlignDirective, deps: [{ token: i1$2.ToolBarDropDownButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1989
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetHorizontalTextAlignDirective, isStandalone: true, selector: "[kendoSpreadsheetHorizontalTextAlign]", ngImport: i0 });
1911
1990
  }
1912
- SpreadsheetHorizontalTextAlignDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetHorizontalTextAlignDirective, deps: [{ token: i1$2.ToolBarDropDownButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
1913
- SpreadsheetHorizontalTextAlignDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetHorizontalTextAlignDirective, isStandalone: true, selector: "[kendoSpreadsheetHorizontalTextAlign]", ngImport: i0 });
1914
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetHorizontalTextAlignDirective, decorators: [{
1991
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetHorizontalTextAlignDirective, decorators: [{
1915
1992
  type: Directive,
1916
1993
  args: [{
1917
1994
  selector: '[kendoSpreadsheetHorizontalTextAlign]',
@@ -1933,21 +2010,25 @@ function outerWidth(element) {
1933
2010
  * @hidden
1934
2011
  */
1935
2012
  class DropDownListBase {
1936
- constructor() {
1937
- this.display = 'inline-flex';
1938
- this.fillMode = 'flat';
1939
- this.valueChange = new EventEmitter();
1940
- }
2013
+ display = 'inline-flex';
2014
+ data;
2015
+ value;
2016
+ title;
2017
+ tabindex;
2018
+ fillMode = 'flat';
2019
+ valueChange = new EventEmitter();
2020
+ element;
2021
+ dropDownList;
1941
2022
  onValueChange(value) {
1942
2023
  this.valueChange.emit(value);
1943
2024
  }
1944
2025
  focus() {
1945
2026
  this.dropDownList.focus();
1946
2027
  }
2028
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownListBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2029
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DropDownListBase, selector: "kendo-spreadsheet-dropdownlist-base", inputs: { data: "data", value: "value", title: "title", tabindex: "tabindex" }, outputs: { valueChange: "valueChange" }, host: { properties: { "style.display": "this.display" } }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, static: true }, { propertyName: "dropDownList", first: true, predicate: ["element"], descendants: true, read: DropDownListComponent, static: true }], ngImport: i0 });
1947
2030
  }
1948
- DropDownListBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownListBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1949
- DropDownListBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DropDownListBase, selector: "kendo-spreadsheet-dropdownlist-base", inputs: { data: "data", value: "value", title: "title", tabindex: "tabindex" }, outputs: { valueChange: "valueChange" }, host: { properties: { "style.display": "this.display" } }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, static: true }, { propertyName: "dropDownList", first: true, predicate: ["element"], descendants: true, read: DropDownListComponent, static: true }], ngImport: i0 });
1950
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownListBase, decorators: [{
2031
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownListBase, decorators: [{
1951
2032
  type: Directive,
1952
2033
  args: [{
1953
2034
  selector: 'kendo-spreadsheet-dropdownlist-base'
@@ -1977,9 +2058,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1977
2058
  * @hidden
1978
2059
  */
1979
2060
  class FontSizeDropDownListComponent extends DropDownListBase {
1980
- }
1981
- FontSizeDropDownListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FontSizeDropDownListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1982
- FontSizeDropDownListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FontSizeDropDownListComponent, isStandalone: true, selector: "kendo-spreadsheet-fontsize-dropdownlist", usesInheritance: true, ngImport: i0, template: `
2061
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontSizeDropDownListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2062
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FontSizeDropDownListComponent, isStandalone: true, selector: "kendo-spreadsheet-fontsize-dropdownlist", usesInheritance: true, ngImport: i0, template: `
1983
2063
  <kendo-dropdownlist
1984
2064
  #element
1985
2065
  class="k-toolbar-dropdownlist"
@@ -1991,7 +2071,8 @@ FontSizeDropDownListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "1
1991
2071
  [leftRightArrowsNavigation]="false"
1992
2072
  [fillMode]="fillMode"></kendo-dropdownlist>
1993
2073
  `, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }] });
1994
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FontSizeDropDownListComponent, decorators: [{
2074
+ }
2075
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontSizeDropDownListComponent, decorators: [{
1995
2076
  type: Component,
1996
2077
  args: [{
1997
2078
  selector: 'kendo-spreadsheet-fontsize-dropdownlist',
@@ -2016,9 +2097,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2016
2097
  * @hidden
2017
2098
  */
2018
2099
  class FontFamilyDropDownListComponent extends DropDownListBase {
2019
- }
2020
- FontFamilyDropDownListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FontFamilyDropDownListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2021
- FontFamilyDropDownListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FontFamilyDropDownListComponent, isStandalone: true, selector: "kendo-spreadsheet-fontfamily-dropdownlist", usesInheritance: true, ngImport: i0, template: `
2100
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontFamilyDropDownListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2101
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FontFamilyDropDownListComponent, isStandalone: true, selector: "kendo-spreadsheet-fontfamily-dropdownlist", usesInheritance: true, ngImport: i0, template: `
2022
2102
  <kendo-dropdownlist
2023
2103
  #element
2024
2104
  class="k-toolbar-dropdownlist"
@@ -2036,7 +2116,8 @@ FontFamilyDropDownListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
2036
2116
  </ng-template>
2037
2117
  </kendo-dropdownlist>
2038
2118
  `, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: ItemTemplateDirective, selector: "[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]" }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
2039
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FontFamilyDropDownListComponent, decorators: [{
2119
+ }
2120
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontFamilyDropDownListComponent, decorators: [{
2040
2121
  type: Component,
2041
2122
  args: [{
2042
2123
  selector: 'kendo-spreadsheet-fontfamily-dropdownlist',
@@ -2067,10 +2148,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2067
2148
  * @hidden
2068
2149
  */
2069
2150
  class DialogContentComponent extends DialogContentBase {
2151
+ dialog;
2152
+ data = [];
2153
+ value;
2154
+ tabindex;
2155
+ componentType;
2156
+ title;
2070
2157
  constructor(dialog) {
2071
2158
  super(dialog);
2072
2159
  this.dialog = dialog;
2073
- this.data = [];
2074
2160
  }
2075
2161
  setData(args) {
2076
2162
  this.data = args.data;
@@ -2078,9 +2164,8 @@ class DialogContentComponent extends DialogContentBase {
2078
2164
  this.tabindex = args.tabindex;
2079
2165
  this.componentType = args.componentType;
2080
2166
  }
2081
- }
2082
- DialogContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogContentComponent, deps: [{ token: i1$1.DialogRef }], target: i0.ɵɵFactoryTarget.Component });
2083
- DialogContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DialogContentComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
2167
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContentComponent, deps: [{ token: i1$1.DialogRef }], target: i0.ɵɵFactoryTarget.Component });
2168
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DialogContentComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
2084
2169
  <div
2085
2170
  [ngSwitch]="componentType"
2086
2171
  class="k-d-flex k-align-items-center k-justify-content-center">
@@ -2120,7 +2205,8 @@ DialogContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
2120
2205
  ></kendo-colorpicker>
2121
2206
  </div>
2122
2207
  `, isInline: true, dependencies: [{ kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: FontFamilyDropDownListComponent, selector: "kendo-spreadsheet-fontfamily-dropdownlist" }, { kind: "component", type: FontSizeDropDownListComponent, selector: "kendo-spreadsheet-fontsize-dropdownlist" }, { kind: "component", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "clearButtonClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }] });
2123
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialogContentComponent, decorators: [{
2208
+ }
2209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContentComponent, decorators: [{
2124
2210
  type: Component,
2125
2211
  args: [{
2126
2212
  template: `
@@ -2172,6 +2258,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2172
2258
  * @hidden
2173
2259
  */
2174
2260
  class SpreadsheetDropDownToolBase extends ToolBarToolComponent {
2261
+ command;
2262
+ dialogService;
2263
+ localization;
2264
+ spreadsheetService;
2265
+ toolsService;
2266
+ toolbar;
2267
+ element;
2268
+ dropDownListRef;
2269
+ popupButton;
2270
+ data;
2175
2271
  constructor(command, dialogService, localization, spreadsheetService, toolsService, toolbar) {
2176
2272
  super();
2177
2273
  this.command = command;
@@ -2180,17 +2276,20 @@ class SpreadsheetDropDownToolBase extends ToolBarToolComponent {
2180
2276
  this.spreadsheetService = spreadsheetService;
2181
2277
  this.toolsService = toolsService;
2182
2278
  this.toolbar = toolbar;
2183
- /**
2184
- * Fires when the user updates the value of the drop-down list.
2185
- */
2186
- this.valueChange = new EventEmitter();
2187
- this.tabindex = -1;
2188
- this.svgIcon = commandSVGIcons[this.command];
2189
- this.icon = commandIcons[this.command];
2190
2279
  this.value = DEFAULT_FONT_VALUES[this.command];
2191
2280
  this.data = FONT_DATA[this.command];
2192
2281
  this.isBuiltInTool = true;
2193
2282
  }
2283
+ /**
2284
+ * Fires when the user updates the value of the drop-down list.
2285
+ */
2286
+ valueChange = new EventEmitter();
2287
+ value;
2288
+ tabindex = -1;
2289
+ itemDisabled;
2290
+ svgIcon = commandSVGIcons[this.command];
2291
+ icon = commandIcons[this.command];
2292
+ subs;
2194
2293
  ngOnInit() {
2195
2294
  this.value = this.toolsService.toolsState[this.command];
2196
2295
  this.subs = this.toolsService.stateChange.subscribe(state => {
@@ -2302,10 +2401,10 @@ class SpreadsheetDropDownToolBase extends ToolBarToolComponent {
2302
2401
  this.tabindex = -1;
2303
2402
  return false;
2304
2403
  }
2404
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetDropDownToolBase, deps: [{ token: MY_TOKEN }, { token: i1$1.DialogService }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }, { token: i1$2.ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
2405
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetDropDownToolBase, selector: "ng-component", outputs: { valueChange: "valueChange" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, read: ElementRef }, { propertyName: "dropDownListRef", first: true, predicate: ["element"], descendants: true }, { propertyName: "popupButton", first: true, predicate: ["popupButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
2305
2406
  }
2306
- SpreadsheetDropDownToolBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetDropDownToolBase, deps: [{ token: MY_TOKEN }, { token: i1$1.DialogService }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }, { token: i1$2.ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
2307
- SpreadsheetDropDownToolBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetDropDownToolBase, selector: "ng-component", outputs: { valueChange: "valueChange" }, viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "element", first: true, predicate: ["element"], descendants: true, read: ElementRef }, { propertyName: "dropDownListRef", first: true, predicate: ["element"], descendants: true }, { propertyName: "popupButton", first: true, predicate: ["popupButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
2308
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetDropDownToolBase, decorators: [{
2407
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetDropDownToolBase, decorators: [{
2309
2408
  type: Component,
2310
2409
  args: [{
2311
2410
  template: ``
@@ -2313,13 +2412,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2313
2412
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2314
2413
  type: Inject,
2315
2414
  args: [MY_TOKEN]
2316
- }] }, { type: i1$1.DialogService }, { type: SpreadsheetLocalizationService }, { type: SpreadsheetService }, { type: SpreadsheetToolsService }, { type: i1$2.ToolBarComponent }]; }, propDecorators: { toolbarTemplate: [{
2317
- type: ViewChild,
2318
- args: ['toolbarTemplate', { static: true }]
2319
- }], popupTemplate: [{
2320
- type: ViewChild,
2321
- args: ['popupTemplate', { static: true }]
2322
- }], element: [{
2415
+ }] }, { type: i1$1.DialogService }, { type: SpreadsheetLocalizationService }, { type: SpreadsheetService }, { type: SpreadsheetToolsService }, { type: i1$2.ToolBarComponent }]; }, propDecorators: { element: [{
2323
2416
  type: ViewChild,
2324
2417
  args: ['element', { read: ElementRef }]
2325
2418
  }], dropDownListRef: [{
@@ -2340,9 +2433,8 @@ class SpreadsheetBackColorComponent extends SpreadsheetDropDownToolBase {
2340
2433
  constructor(dialogService, localization, spreadsheetService, toolsService, toolbar) {
2341
2434
  super('background', dialogService, localization, spreadsheetService, toolsService, toolbar);
2342
2435
  }
2343
- }
2344
- SpreadsheetBackColorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetBackColorComponent, deps: [{ token: i1$1.DialogService }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
2345
- SpreadsheetBackColorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetBackColorComponent, isStandalone: true, selector: "kendo-spreadsheet-backcolor-tool", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetBackColorComponent) }], usesInheritance: true, ngImport: i0, template: `
2436
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetBackColorComponent, deps: [{ token: i1$1.DialogService }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
2437
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetBackColorComponent, isStandalone: true, selector: "kendo-spreadsheet-backcolor-tool", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetBackColorComponent) }], usesInheritance: true, ngImport: i0, template: `
2346
2438
  <ng-template #toolbarTemplate>
2347
2439
  <div class="k-toolbar-item">
2348
2440
  <kendo-colorpicker
@@ -2373,7 +2465,8 @@ SpreadsheetBackColorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "1
2373
2465
  </div>
2374
2466
  </ng-template>
2375
2467
  `, isInline: true, dependencies: [{ kind: "component", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "clearButtonClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2376
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetBackColorComponent, decorators: [{
2468
+ }
2469
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetBackColorComponent, decorators: [{
2377
2470
  type: Component,
2378
2471
  args: [{
2379
2472
  providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetBackColorComponent) }],
@@ -2425,9 +2518,8 @@ class SpreadsheetForeColorComponent extends SpreadsheetDropDownToolBase {
2425
2518
  constructor(dialogService, localization, spreadsheetService, toolsService, toolbar) {
2426
2519
  super('color', dialogService, localization, spreadsheetService, toolsService, toolbar);
2427
2520
  }
2428
- }
2429
- SpreadsheetForeColorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetForeColorComponent, deps: [{ token: i1$1.DialogService }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
2430
- SpreadsheetForeColorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetForeColorComponent, isStandalone: true, selector: "kendo-spreadsheet-forecolor-tool", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetForeColorComponent) }], usesInheritance: true, ngImport: i0, template: `
2521
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetForeColorComponent, deps: [{ token: i1$1.DialogService }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
2522
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetForeColorComponent, isStandalone: true, selector: "kendo-spreadsheet-forecolor-tool", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetForeColorComponent) }], usesInheritance: true, ngImport: i0, template: `
2431
2523
  <ng-template #toolbarTemplate>
2432
2524
  <div class="k-toolbar-item">
2433
2525
  <kendo-colorpicker
@@ -2458,7 +2550,8 @@ SpreadsheetForeColorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "1
2458
2550
  </div>
2459
2551
  </ng-template>
2460
2552
  `, isInline: true, dependencies: [{ kind: "component", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "clearButtonClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2461
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetForeColorComponent, decorators: [{
2553
+ }
2554
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetForeColorComponent, decorators: [{
2462
2555
  type: Component,
2463
2556
  args: [{
2464
2557
  providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetForeColorComponent) }],
@@ -2514,10 +2607,10 @@ class SpreadsheetUnderlineDirective extends SpreadsheetCommandButton {
2514
2607
  }
2515
2608
  });
2516
2609
  }
2610
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetUnderlineDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
2611
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetUnderlineDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetUnderline]", usesInheritance: true, ngImport: i0 });
2517
2612
  }
2518
- SpreadsheetUnderlineDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetUnderlineDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
2519
- SpreadsheetUnderlineDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetUnderlineDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetUnderline]", usesInheritance: true, ngImport: i0 });
2520
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetUnderlineDirective, decorators: [{
2613
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetUnderlineDirective, decorators: [{
2521
2614
  type: Directive,
2522
2615
  args: [{
2523
2616
  selector: 'kendo-toolbar-button[kendoSpreadsheetUnderline]',
@@ -2537,10 +2630,10 @@ class SpreadsheetItalicDirective extends SpreadsheetCommandButton {
2537
2630
  }
2538
2631
  });
2539
2632
  }
2633
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetItalicDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
2634
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetItalicDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetItalic]", usesInheritance: true, ngImport: i0 });
2540
2635
  }
2541
- SpreadsheetItalicDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetItalicDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
2542
- SpreadsheetItalicDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetItalicDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetItalic]", usesInheritance: true, ngImport: i0 });
2543
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetItalicDirective, decorators: [{
2636
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetItalicDirective, decorators: [{
2544
2637
  type: Directive,
2545
2638
  args: [{
2546
2639
  selector: 'kendo-toolbar-button[kendoSpreadsheetItalic]',
@@ -2560,10 +2653,10 @@ class SpreadsheetBoldDirective extends SpreadsheetCommandButton {
2560
2653
  }
2561
2654
  });
2562
2655
  }
2656
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetBoldDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
2657
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetBoldDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetBold]", usesInheritance: true, ngImport: i0 });
2563
2658
  }
2564
- SpreadsheetBoldDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetBoldDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
2565
- SpreadsheetBoldDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetBoldDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetBold]", usesInheritance: true, ngImport: i0 });
2566
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetBoldDirective, decorators: [{
2659
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetBoldDirective, decorators: [{
2567
2660
  type: Directive,
2568
2661
  args: [{
2569
2662
  selector: 'kendo-toolbar-button[kendoSpreadsheetBold]',
@@ -2575,6 +2668,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2575
2668
  * @hidden
2576
2669
  */
2577
2670
  class SpreadsheetDecreaseFontSizeDirective extends SpreadsheetCommandButton {
2671
+ value;
2578
2672
  constructor(button, localization, spreadsheetService, toolsService) {
2579
2673
  super('decreaseFontSize', button, localization, spreadsheetService, toolsService, {
2580
2674
  command: 'PropertyChangeCommand',
@@ -2596,10 +2690,10 @@ class SpreadsheetDecreaseFontSizeDirective extends SpreadsheetCommandButton {
2596
2690
  this.value = state['fontSize'];
2597
2691
  }));
2598
2692
  }
2693
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetDecreaseFontSizeDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
2694
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetDecreaseFontSizeDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetDecreaseFontSize]", usesInheritance: true, ngImport: i0 });
2599
2695
  }
2600
- SpreadsheetDecreaseFontSizeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetDecreaseFontSizeDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
2601
- SpreadsheetDecreaseFontSizeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetDecreaseFontSizeDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetDecreaseFontSize]", usesInheritance: true, ngImport: i0 });
2602
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetDecreaseFontSizeDirective, decorators: [{
2696
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetDecreaseFontSizeDirective, decorators: [{
2603
2697
  type: Directive,
2604
2698
  args: [{
2605
2699
  selector: 'kendo-toolbar-button[kendoSpreadsheetDecreaseFontSize]',
@@ -2611,6 +2705,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2611
2705
  * @hidden
2612
2706
  */
2613
2707
  class SpreadsheetIncreaseFontSizeDirective extends SpreadsheetCommandButton {
2708
+ value;
2614
2709
  constructor(button, localization, spreadsheetService, toolsService) {
2615
2710
  super('increaseFontSize', button, localization, spreadsheetService, toolsService, {
2616
2711
  command: 'PropertyChangeCommand',
@@ -2632,10 +2727,10 @@ class SpreadsheetIncreaseFontSizeDirective extends SpreadsheetCommandButton {
2632
2727
  this.value = state['fontSize'];
2633
2728
  }));
2634
2729
  }
2730
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetIncreaseFontSizeDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
2731
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetIncreaseFontSizeDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetIncreaseFontSize]", usesInheritance: true, ngImport: i0 });
2635
2732
  }
2636
- SpreadsheetIncreaseFontSizeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetIncreaseFontSizeDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
2637
- SpreadsheetIncreaseFontSizeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetIncreaseFontSizeDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetIncreaseFontSize]", usesInheritance: true, ngImport: i0 });
2638
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetIncreaseFontSizeDirective, decorators: [{
2733
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetIncreaseFontSizeDirective, decorators: [{
2639
2734
  type: Directive,
2640
2735
  args: [{
2641
2736
  selector: 'kendo-toolbar-button[kendoSpreadsheetIncreaseFontSize]',
@@ -2655,9 +2750,8 @@ class SpreadsheetFontSizeComponent extends SpreadsheetDropDownToolBase {
2655
2750
  constructor(dialogService, localization, spreadsheetService, toolsService, toolbar) {
2656
2751
  super('fontSize', dialogService, localization, spreadsheetService, toolsService, toolbar);
2657
2752
  }
2658
- }
2659
- SpreadsheetFontSizeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetFontSizeComponent, deps: [{ token: i1$1.DialogService }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
2660
- SpreadsheetFontSizeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetFontSizeComponent, isStandalone: true, selector: "kendo-toolbar-dropdownlist[kendoSpreadsheetFontSize]", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetFontSizeComponent) }], usesInheritance: true, ngImport: i0, template: `
2753
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetFontSizeComponent, deps: [{ token: i1$1.DialogService }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
2754
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetFontSizeComponent, isStandalone: true, selector: "kendo-toolbar-dropdownlist[kendoSpreadsheetFontSize]", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetFontSizeComponent) }], usesInheritance: true, ngImport: i0, template: `
2661
2755
  <ng-template #toolbarTemplate>
2662
2756
  <kendo-spreadsheet-fontsize-dropdownlist
2663
2757
  #element
@@ -2681,7 +2775,8 @@ SpreadsheetFontSizeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14
2681
2775
  </div>
2682
2776
  </ng-template>
2683
2777
  `, isInline: true, dependencies: [{ kind: "component", type: FontSizeDropDownListComponent, selector: "kendo-spreadsheet-fontsize-dropdownlist" }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2684
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetFontSizeComponent, decorators: [{
2778
+ }
2779
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetFontSizeComponent, decorators: [{
2685
2780
  type: Component,
2686
2781
  args: [{
2687
2782
  providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetFontSizeComponent) }],
@@ -2730,9 +2825,8 @@ class SpreadsheetFontFamilyComponent extends SpreadsheetDropDownToolBase {
2730
2825
  constructor(dialogService, localization, spreadsheetService, toolsService, toolbar) {
2731
2826
  super('fontFamily', dialogService, localization, spreadsheetService, toolsService, toolbar);
2732
2827
  }
2733
- }
2734
- SpreadsheetFontFamilyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetFontFamilyComponent, deps: [{ token: i1$1.DialogService }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
2735
- SpreadsheetFontFamilyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetFontFamilyComponent, isStandalone: true, selector: "kendo-toolbar-dropdownlist[kendoSpreadsheetFontFamily]", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetFontFamilyComponent) }], usesInheritance: true, ngImport: i0, template: `
2828
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetFontFamilyComponent, deps: [{ token: i1$1.DialogService }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
2829
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetFontFamilyComponent, isStandalone: true, selector: "kendo-toolbar-dropdownlist[kendoSpreadsheetFontFamily]", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetFontFamilyComponent) }], usesInheritance: true, ngImport: i0, template: `
2736
2830
  <ng-template #toolbarTemplate>
2737
2831
  <kendo-spreadsheet-fontfamily-dropdownlist
2738
2832
  #element
@@ -2756,7 +2850,8 @@ SpreadsheetFontFamilyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
2756
2850
  </div>
2757
2851
  </ng-template>
2758
2852
  `, isInline: true, dependencies: [{ kind: "component", type: FontFamilyDropDownListComponent, selector: "kendo-spreadsheet-fontfamily-dropdownlist" }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2759
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetFontFamilyComponent, decorators: [{
2853
+ }
2854
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetFontFamilyComponent, decorators: [{
2760
2855
  type: Component,
2761
2856
  args: [{
2762
2857
  providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetFontFamilyComponent) }],
@@ -2805,10 +2900,10 @@ class SpreadsheetRedoDirective extends SpreadsheetCommandButton {
2805
2900
  clickHandler() {
2806
2901
  this.spreadsheetService.spreadsheet.workbook.undoRedoStack['redo']();
2807
2902
  }
2903
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetRedoDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
2904
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetRedoDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetRedo]", usesInheritance: true, ngImport: i0 });
2808
2905
  }
2809
- SpreadsheetRedoDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetRedoDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
2810
- SpreadsheetRedoDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetRedoDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetRedo]", usesInheritance: true, ngImport: i0 });
2811
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetRedoDirective, decorators: [{
2906
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetRedoDirective, decorators: [{
2812
2907
  type: Directive,
2813
2908
  args: [{
2814
2909
  selector: 'kendo-toolbar-button[kendoSpreadsheetRedo]',
@@ -2828,10 +2923,10 @@ class SpreadsheetUndoDirective extends SpreadsheetCommandButton {
2828
2923
  clickHandler() {
2829
2924
  this.spreadsheetService.spreadsheet.workbook.undoRedoStack['undo']();
2830
2925
  }
2926
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetUndoDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
2927
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetUndoDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetUndo]", usesInheritance: true, ngImport: i0 });
2831
2928
  }
2832
- SpreadsheetUndoDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetUndoDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
2833
- SpreadsheetUndoDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetUndoDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetUndo]", usesInheritance: true, ngImport: i0 });
2834
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetUndoDirective, decorators: [{
2929
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetUndoDirective, decorators: [{
2835
2930
  type: Directive,
2836
2931
  args: [{
2837
2932
  selector: 'kendo-toolbar-button[kendoSpreadsheetUndo]',
@@ -2843,11 +2938,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2843
2938
  * @hidden
2844
2939
  */
2845
2940
  class SpreadsheetSaveFileDirective {
2941
+ button;
2942
+ localization;
2943
+ spreadsheetService;
2944
+ subs = new Subscription();
2846
2945
  constructor(button, localization, spreadsheetService) {
2847
2946
  this.button = button;
2848
2947
  this.localization = localization;
2849
2948
  this.spreadsheetService = spreadsheetService;
2850
- this.subs = new Subscription();
2851
2949
  }
2852
2950
  ngOnInit() {
2853
2951
  this.button.title = this.localization.get('saveFile');
@@ -2868,10 +2966,10 @@ class SpreadsheetSaveFileDirective {
2868
2966
  ngOnDestroy() {
2869
2967
  this.subs.unsubscribe();
2870
2968
  }
2969
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetSaveFileDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }], target: i0.ɵɵFactoryTarget.Directive });
2970
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetSaveFileDirective, isStandalone: true, selector: "[kendoSpreadsheetSaveFile]", ngImport: i0 });
2871
2971
  }
2872
- SpreadsheetSaveFileDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetSaveFileDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }], target: i0.ɵɵFactoryTarget.Directive });
2873
- SpreadsheetSaveFileDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetSaveFileDirective, isStandalone: true, selector: "[kendoSpreadsheetSaveFile]", ngImport: i0 });
2874
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetSaveFileDirective, decorators: [{
2972
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetSaveFileDirective, decorators: [{
2875
2973
  type: Directive,
2876
2974
  args: [{
2877
2975
  selector: '[kendoSpreadsheetSaveFile]',
@@ -2883,21 +2981,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2883
2981
  * @hidden
2884
2982
  */
2885
2983
  class SpreadsheetLoadFileComponent extends ToolBarToolComponent {
2984
+ localization;
2985
+ spreadsheetService;
2986
+ toolbar;
2987
+ overflowButtonElement;
2988
+ button;
2989
+ icon = commandIcons['folderOpen'];
2990
+ svgIcon = commandSVGIcons['folderOpen'];
2991
+ tabindex = -1;
2886
2992
  constructor(localization, spreadsheetService, toolbar) {
2887
2993
  super();
2888
2994
  this.localization = localization;
2889
2995
  this.spreadsheetService = spreadsheetService;
2890
2996
  this.toolbar = toolbar;
2891
- this.icon = commandIcons['folderOpen'];
2892
- this.svgIcon = commandSVGIcons['folderOpen'];
2893
- this.tabindex = -1;
2894
- this.onFileSelect = (e) => {
2895
- const file = e.target.files[0];
2896
- if (file) {
2897
- this.spreadsheetService.spreadsheet.executeCommand({ command: 'OpenCommand', options: { file } });
2898
- e.target.value = null;
2899
- }
2900
- };
2901
2997
  this.isBuiltInTool = true;
2902
2998
  }
2903
2999
  /**
@@ -2906,6 +3002,13 @@ class SpreadsheetLoadFileComponent extends ToolBarToolComponent {
2906
3002
  messageFor(key) {
2907
3003
  return this.localization.get(key);
2908
3004
  }
3005
+ onFileSelect = (e) => {
3006
+ const file = e.target.files[0];
3007
+ if (file) {
3008
+ this.spreadsheetService.spreadsheet.executeCommand({ command: 'OpenCommand', options: { file } });
3009
+ e.target.value = null;
3010
+ }
3011
+ };
2909
3012
  /**
2910
3013
  * @hidden
2911
3014
  */
@@ -2931,14 +3034,13 @@ class SpreadsheetLoadFileComponent extends ToolBarToolComponent {
2931
3034
  this.tabindex = -1;
2932
3035
  return false;
2933
3036
  }
2934
- }
2935
- SpreadsheetLoadFileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetLoadFileComponent, deps: [{ token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
2936
- SpreadsheetLoadFileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetLoadFileComponent, isStandalone: true, selector: "kendo-spreadsheet-load-file-tool", providers: [
2937
- {
2938
- provide: ToolBarToolComponent,
2939
- useExisting: forwardRef(() => SpreadsheetLoadFileComponent),
2940
- },
2941
- ], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "overflowButtonElement", first: true, predicate: ["overflowButton"], descendants: true, read: ElementRef }, { propertyName: "button", first: true, predicate: ["button"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
3037
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetLoadFileComponent, deps: [{ token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
3038
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetLoadFileComponent, isStandalone: true, selector: "kendo-spreadsheet-load-file-tool", providers: [
3039
+ {
3040
+ provide: ToolBarToolComponent,
3041
+ useExisting: forwardRef(() => SpreadsheetLoadFileComponent),
3042
+ },
3043
+ ], viewQueries: [{ propertyName: "overflowButtonElement", first: true, predicate: ["overflowButton"], descendants: true, read: ElementRef }, { propertyName: "button", first: true, predicate: ["button"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
2942
3044
  <ng-template #toolbarTemplate>
2943
3045
  <button
2944
3046
  #button
@@ -2982,7 +3084,8 @@ SpreadsheetLoadFileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14
2982
3084
  </div>
2983
3085
  </ng-template>
2984
3086
  `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
2985
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetLoadFileComponent, decorators: [{
3087
+ }
3088
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetLoadFileComponent, decorators: [{
2986
3089
  type: Component,
2987
3090
  args: [{
2988
3091
  selector: 'kendo-spreadsheet-load-file-tool',
@@ -3042,13 +3145,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3042
3145
  }], ctorParameters: function () { return [{ type: SpreadsheetLocalizationService }, { type: SpreadsheetService }, { type: i1$2.ToolBarComponent, decorators: [{
3043
3146
  type: Inject,
3044
3147
  args: [ToolBarComponent]
3045
- }] }]; }, propDecorators: { toolbarTemplate: [{
3046
- type: ViewChild,
3047
- args: ['toolbarTemplate', { static: true }]
3048
- }], popupTemplate: [{
3049
- type: ViewChild,
3050
- args: ['popupTemplate', { static: true }]
3051
- }], overflowButtonElement: [{
3148
+ }] }]; }, propDecorators: { overflowButtonElement: [{
3052
3149
  type: ViewChild,
3053
3150
  args: ['overflowButton', { read: ElementRef, static: false }]
3054
3151
  }], button: [{
@@ -3060,6 +3157,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3060
3157
  * @hidden
3061
3158
  */
3062
3159
  class MainMenuDirective {
3160
+ host;
3161
+ renderer;
3063
3162
  constructor(host, renderer) {
3064
3163
  this.host = host;
3065
3164
  this.renderer = renderer;
@@ -3067,10 +3166,10 @@ class MainMenuDirective {
3067
3166
  ngAfterViewInit() {
3068
3167
  isDocumentAvailable() && this.renderer.addClass(this.host.nativeElement.firstElementChild, 'k-spreadsheet-menu');
3069
3168
  }
3169
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MainMenuDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
3170
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: MainMenuDirective, isStandalone: true, selector: "[kendoSpreadsheetMenu]", ngImport: i0 });
3070
3171
  }
3071
- MainMenuDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MainMenuDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
3072
- MainMenuDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MainMenuDirective, isStandalone: true, selector: "[kendoSpreadsheetMenu]", ngImport: i0 });
3073
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MainMenuDirective, decorators: [{
3172
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MainMenuDirective, decorators: [{
3074
3173
  type: Directive,
3075
3174
  args: [{
3076
3175
  selector: '[kendoSpreadsheetMenu]',
@@ -3082,10 +3181,329 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3082
3181
  * @hidden
3083
3182
  */
3084
3183
  class MessagesDirective extends ComponentMessages {
3184
+ /* Tabs */
3185
+ /**
3186
+ * The name of the "Home" toolbar tab
3187
+ */
3188
+ home;
3189
+ /**
3190
+ * The name of the "File" toolbar tab
3191
+ */
3192
+ file;
3193
+ /**
3194
+ * The name of the "Insert" toolbar tab
3195
+ */
3196
+ insert;
3197
+ /**
3198
+ * The name of the "Format" toolbar tab
3199
+ */
3200
+ formatTab;
3201
+ /* Section of Tools Messages */
3202
+ /**
3203
+ * The title of the Save File tool
3204
+ */
3205
+ saveFile;
3206
+ /**
3207
+ * The title of the Load File tool
3208
+ */
3209
+ loadFile;
3210
+ /**
3211
+ * The title of the Bold tool
3212
+ */
3213
+ bold;
3214
+ /**
3215
+ * The title of the Italic tool
3216
+ */
3217
+ italic;
3218
+ /**
3219
+ * The title of the Underline tool
3220
+ */
3221
+ underline;
3222
+ /**
3223
+ * The title of the Format tool
3224
+ */
3225
+ format;
3226
+ /**
3227
+ * The title of the Font Family tool
3228
+ */
3229
+ fontFamily;
3230
+ /**
3231
+ * The title of the Font Size tool
3232
+ */
3233
+ fontSize;
3234
+ /**
3235
+ * The title of the Undo tool
3236
+ */
3237
+ undo;
3238
+ /**
3239
+ * The title of the Redo tool
3240
+ */
3241
+ redo;
3242
+ /**
3243
+ * The title of the tool that changes the text background color
3244
+ */
3245
+ background;
3246
+ /**
3247
+ * The title of the tool that changes the text font color
3248
+ */
3249
+ color;
3250
+ /**
3251
+ * The title of the Grid Lines tool
3252
+ */
3253
+ gridLines;
3254
+ /**
3255
+ * The title of the tool that adds new column before currently selected column
3256
+ */
3257
+ addColumnLeft;
3258
+ /**
3259
+ * The title of the tool that adds new column after currently selected column
3260
+ */
3261
+ addColumnRight;
3262
+ /**
3263
+ * The title of the tool that adds new row below currently selected row
3264
+ */
3265
+ addRowBelow;
3266
+ /**
3267
+ * The title of the tool that adds new row above currently selected row
3268
+ */
3269
+ addRowAbove;
3270
+ /**
3271
+ * The title of the tool that deletes a column
3272
+ */
3273
+ deleteColumn;
3274
+ /**
3275
+ * The title of the tool that deletes a row
3276
+ */
3277
+ deleteRow;
3278
+ /**
3279
+ * The title of the Text Wrap tool
3280
+ */
3281
+ wrap;
3282
+ /**
3283
+ * The title of the Text Align tool
3284
+ */
3285
+ align;
3286
+ /**
3287
+ * The title of the Text Align Horizontal tool
3288
+ */
3289
+ alignHorizontal;
3290
+ /**
3291
+ * The title of the Text Align Vertical tool
3292
+ */
3293
+ alignVertical;
3294
+ /**
3295
+ * The title of the Text Align Left tool
3296
+ */
3297
+ alignLeft;
3298
+ /**
3299
+ * The title of the Text Align Center tool
3300
+ */
3301
+ alignCenter;
3302
+ /**
3303
+ * The title of the Text Align Right tool
3304
+ */
3305
+ alignRight;
3306
+ /**
3307
+ * The title of the Text Align Justify tool
3308
+ */
3309
+ alignJustify;
3310
+ /**
3311
+ * The title of the Text Align Top tool
3312
+ */
3313
+ alignTop;
3314
+ /**
3315
+ * The title of the Text Align Middle tool
3316
+ */
3317
+ alignMiddle;
3318
+ /**
3319
+ * The title of the Text Align Bottom tool
3320
+ */
3321
+ alignBottom;
3322
+ /* Dialogs */
3323
+ /**
3324
+ * The text of the Apply button in all Spreadsheet dialogs
3325
+ */
3326
+ dialogApply;
3327
+ /* Dialogs */
3328
+ /**
3329
+ * The text of the Cancel button in all Spreadsheet dialogs
3330
+ */
3331
+ dialogCancel;
3332
+ /**
3333
+ * The text of the Delete button in the Delete sheet dialog
3334
+ */
3335
+ dialogDelete;
3336
+ /**
3337
+ * The text of the Rename button in the Rename sheet dialog
3338
+ */
3339
+ dialogRename;
3340
+ /**
3341
+ * The text of the **Insert** button in all Spreadsheet dialogs
3342
+ */
3343
+ dialogInsert;
3344
+ /**
3345
+ * The text of the **Remove link** button in the Link tool dialog
3346
+ */
3347
+ dialogRemoveLink;
3348
+ /**
3349
+ * The title of the Delete sheet dialog
3350
+ */
3351
+ delete;
3352
+ /**
3353
+ * The title of the Rename sheet dialog
3354
+ */
3355
+ rename;
3356
+ /**
3357
+ * The title of the Name Box input
3358
+ */
3359
+ nameBox;
3360
+ /**
3361
+ * The title of the Formula input
3362
+ */
3363
+ formulaInput;
3364
+ /**
3365
+ * The title of the Add new sheet button
3366
+ */
3367
+ addSheet;
3368
+ /**
3369
+ * The title of the Sheets menu button
3370
+ */
3371
+ sheetsMenu;
3372
+ /**
3373
+ * The text of the View toolbar tab
3374
+ */
3375
+ view;
3376
+ /**
3377
+ * The title of the Cells Merge tool
3378
+ */
3379
+ merge;
3380
+ /**
3381
+ * The title of the Merge horizontally tool
3382
+ */
3383
+ mergeHorizontally;
3384
+ /**
3385
+ * The title of the Merge vertically tool
3386
+ */
3387
+ mergeVertically;
3388
+ /**
3389
+ * The title of the Merge all tool
3390
+ */
3391
+ mergeAll;
3392
+ /**
3393
+ * The title of the Unmerge tool
3394
+ */
3395
+ unmerge;
3396
+ /**
3397
+ * The title of the tool that inserts a link
3398
+ */
3399
+ insertLink;
3400
+ /**
3401
+ * The title of the tool that inserts a link
3402
+ */
3403
+ increaseDecimal;
3404
+ /**
3405
+ * The title of the tool that inserts a link
3406
+ */
3407
+ decreaseDecimal;
3408
+ /**
3409
+ * The title of the tool that increases the cell font size
3410
+ */
3411
+ increaseFontSize;
3412
+ /**
3413
+ * The title of the tool that decreases the cell font size
3414
+ */
3415
+ decreaseFontSize;
3416
+ /**
3417
+ * The content of the dialog that warns about an unsupported file type
3418
+ */
3419
+ openUnsupported;
3420
+ /**
3421
+ * The content of the dialog that warns about modifying a merged cell
3422
+ */
3423
+ modifyMerged;
3424
+ /**
3425
+ * The content of the dialog that warns about modifying a disabled cell
3426
+ */
3427
+ cannotModifyDisabled;
3428
+ /**
3429
+ * The text of the **OK** dialog button
3430
+ */
3431
+ dialogOk;
3432
+ /**
3433
+ * The title of an error dialog
3434
+ */
3435
+ dialogError;
3436
+ /**
3437
+ * The content of the dialog that warns about duplicated sheet name
3438
+ */
3439
+ duplicateSheetName;
3440
+ /**
3441
+ * The Copy command text
3442
+ */
3443
+ copy;
3444
+ /**
3445
+ * The Cut command text
3446
+ */
3447
+ cut;
3448
+ /**
3449
+ * The Paste command text
3450
+ */
3451
+ paste;
3452
+ /**
3453
+ * The Hide row command text
3454
+ */
3455
+ hideRow;
3456
+ /**
3457
+ * The Unhide row command text
3458
+ */
3459
+ unhideRow;
3460
+ /**
3461
+ * The Hide column command text
3462
+ */
3463
+ hideColumn;
3464
+ /**
3465
+ * The Unhide column command text
3466
+ */
3467
+ unhideColumn;
3468
+ /**
3469
+ * The text of the Sheet menu Delete option
3470
+ */
3471
+ sheetDelete;
3472
+ /**
3473
+ * The text of the Sheet menu Rename option
3474
+ */
3475
+ sheetRename;
3476
+ /**
3477
+ * The text of the Sheet menu Hide option
3478
+ */
3479
+ sheetHide;
3480
+ /**
3481
+ * The text of the Sheet menu Duplicate option
3482
+ */
3483
+ sheetDuplicate;
3484
+ /**
3485
+ * The text of the Sheet menu Move Left option
3486
+ */
3487
+ sheetMoveLeft;
3488
+ /**
3489
+ * The text of the Sheet menu Move Right option
3490
+ */
3491
+ sheetMoveRight;
3492
+ /**
3493
+ * The content of the dialog that warns about invalid name input.
3494
+ *
3495
+ * The content consists of a two-part message - the input value and a localizable string.
3496
+ * For user value input **A1%**, the default dialog content will be **Invalid name: A1%**.
3497
+ *
3498
+ * To allow reordering the input value and the localizable part, the `invalidNameError` accepts a string with a
3499
+ * placeholder for the input value, for example, **{inputValue} is invalid**. The `{inputValue}` placeholder will be replaced
3500
+ * internally with the current value, and the resulting label will be rendered as **A1% is invalid**.
3501
+ */
3502
+ invalidNameError;
3503
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessagesDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
3504
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: MessagesDirective, isStandalone: true, selector: "[kendoSpreadsheetMessages]", inputs: { home: "home", file: "file", insert: "insert", formatTab: "formatTab", saveFile: "saveFile", loadFile: "loadFile", bold: "bold", italic: "italic", underline: "underline", format: "format", fontFamily: "fontFamily", fontSize: "fontSize", undo: "undo", redo: "redo", background: "background", color: "color", gridLines: "gridLines", addColumnLeft: "addColumnLeft", addColumnRight: "addColumnRight", addRowBelow: "addRowBelow", addRowAbove: "addRowAbove", deleteColumn: "deleteColumn", deleteRow: "deleteRow", wrap: "wrap", align: "align", alignHorizontal: "alignHorizontal", alignVertical: "alignVertical", alignLeft: "alignLeft", alignCenter: "alignCenter", alignRight: "alignRight", alignJustify: "alignJustify", alignTop: "alignTop", alignMiddle: "alignMiddle", alignBottom: "alignBottom", dialogApply: "dialogApply", dialogCancel: "dialogCancel", dialogDelete: "dialogDelete", dialogRename: "dialogRename", dialogInsert: "dialogInsert", dialogRemoveLink: "dialogRemoveLink", delete: "delete", rename: "rename", nameBox: "nameBox", formulaInput: "formulaInput", addSheet: "addSheet", sheetsMenu: "sheetsMenu", view: "view", merge: "merge", mergeHorizontally: "mergeHorizontally", mergeVertically: "mergeVertically", mergeAll: "mergeAll", unmerge: "unmerge", insertLink: "insertLink", increaseDecimal: "increaseDecimal", decreaseDecimal: "decreaseDecimal", increaseFontSize: "increaseFontSize", decreaseFontSize: "decreaseFontSize", openUnsupported: "openUnsupported", modifyMerged: "modifyMerged", cannotModifyDisabled: "cannotModifyDisabled", dialogOk: "dialogOk", dialogError: "dialogError", duplicateSheetName: "duplicateSheetName", copy: "copy", cut: "cut", paste: "paste", hideRow: "hideRow", unhideRow: "unhideRow", hideColumn: "hideColumn", unhideColumn: "unhideColumn", sheetDelete: "sheetDelete", sheetRename: "sheetRename", sheetHide: "sheetHide", sheetDuplicate: "sheetDuplicate", sheetMoveLeft: "sheetMoveLeft", sheetMoveRight: "sheetMoveRight", invalidNameError: "invalidNameError" }, usesInheritance: true, ngImport: i0 });
3085
3505
  }
3086
- MessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessagesDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
3087
- MessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MessagesDirective, isStandalone: true, selector: "[kendoSpreadsheetMessages]", inputs: { home: "home", file: "file", insert: "insert", formatTab: "formatTab", saveFile: "saveFile", loadFile: "loadFile", bold: "bold", italic: "italic", underline: "underline", format: "format", fontFamily: "fontFamily", fontSize: "fontSize", undo: "undo", redo: "redo", background: "background", color: "color", gridLines: "gridLines", addColumnLeft: "addColumnLeft", addColumnRight: "addColumnRight", addRowBelow: "addRowBelow", addRowAbove: "addRowAbove", deleteColumn: "deleteColumn", deleteRow: "deleteRow", wrap: "wrap", align: "align", alignHorizontal: "alignHorizontal", alignVertical: "alignVertical", alignLeft: "alignLeft", alignCenter: "alignCenter", alignRight: "alignRight", alignJustify: "alignJustify", alignTop: "alignTop", alignMiddle: "alignMiddle", alignBottom: "alignBottom", dialogApply: "dialogApply", dialogCancel: "dialogCancel", dialogDelete: "dialogDelete", dialogRename: "dialogRename", dialogInsert: "dialogInsert", dialogRemoveLink: "dialogRemoveLink", delete: "delete", rename: "rename", nameBox: "nameBox", formulaInput: "formulaInput", addSheet: "addSheet", sheetsMenu: "sheetsMenu", view: "view", merge: "merge", mergeHorizontally: "mergeHorizontally", mergeVertically: "mergeVertically", mergeAll: "mergeAll", unmerge: "unmerge", insertLink: "insertLink", increaseDecimal: "increaseDecimal", decreaseDecimal: "decreaseDecimal", increaseFontSize: "increaseFontSize", decreaseFontSize: "decreaseFontSize", openUnsupported: "openUnsupported", modifyMerged: "modifyMerged", cannotModifyDisabled: "cannotModifyDisabled", dialogOk: "dialogOk", dialogError: "dialogError", duplicateSheetName: "duplicateSheetName", copy: "copy", cut: "cut", paste: "paste", hideRow: "hideRow", unhideRow: "unhideRow", hideColumn: "hideColumn", unhideColumn: "unhideColumn", sheetDelete: "sheetDelete", sheetRename: "sheetRename", sheetHide: "sheetHide", sheetDuplicate: "sheetDuplicate", sheetMoveLeft: "sheetMoveLeft", sheetMoveRight: "sheetMoveRight", invalidNameError: "invalidNameError" }, usesInheritance: true, ngImport: i0 });
3088
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessagesDirective, decorators: [{
3506
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessagesDirective, decorators: [{
3089
3507
  type: Directive,
3090
3508
  args: [{
3091
3509
  selector: '[kendoSpreadsheetMessages]',
@@ -3251,17 +3669,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3251
3669
  * @hidden
3252
3670
  */
3253
3671
  class LocalizedMessagesDirective extends MessagesDirective {
3672
+ service;
3254
3673
  constructor(service) {
3255
3674
  super();
3256
3675
  this.service = service;
3257
3676
  }
3677
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
3678
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoSpreadsheetLocalizedMessages]", providers: [{
3679
+ provide: MessagesDirective,
3680
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
3681
+ }], usesInheritance: true, ngImport: i0 });
3258
3682
  }
3259
- LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
3260
- LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoSpreadsheetLocalizedMessages]", providers: [{
3261
- provide: MessagesDirective,
3262
- useExisting: forwardRef(() => LocalizedMessagesDirective)
3263
- }], usesInheritance: true, ngImport: i0 });
3264
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
3683
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
3265
3684
  type: Directive,
3266
3685
  args: [{
3267
3686
  providers: [{
@@ -3277,167 +3696,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3277
3696
  * Represents the [Kendo UI Spreadsheet component for Angular]({% slug overview_spreadsheet %}).
3278
3697
  */
3279
3698
  class SpreadsheetComponent {
3280
- constructor(ngZone, intl, host, localization, spreadsheetService, toolsService, errorService, dialogService) {
3281
- this.ngZone = ngZone;
3282
- this.intl = intl;
3283
- this.host = host;
3284
- this.localization = localization;
3285
- this.spreadsheetService = spreadsheetService;
3286
- this.toolsService = toolsService;
3287
- this.errorService = errorService;
3288
- this.dialogService = dialogService;
3289
- this.hostClass = true;
3290
- this.role = 'application';
3291
- /**
3292
- * Sets the overflow option of the built-in Toolbar components.
3293
- * @default false
3294
- */
3295
- this.overflow = false;
3296
- /**
3297
- * Sets the height of the formula list container.
3298
- * Accepts same values as the CSS [`style.height`](https://developer.mozilla.org/en-US/docs/Web/CSS/height) property.
3299
- *
3300
- * @default '300px'
3301
- */
3302
- this.formulaListMaxHeight = '300px';
3303
- /**
3304
- * The number of columns in the document.
3305
- *
3306
- * @default 50
3307
- */
3308
- this.columns = 50;
3309
- /**
3310
- * The initial column width in pixels.
3311
- *
3312
- * @default 100
3313
- */
3314
- this.columnWidth = 100;
3315
- /**
3316
- * The height of the header row in pixels.
3317
- *
3318
- * @default 30
3319
- */
3320
- this.headerHeight = 30;
3321
- /**
3322
- * The width of the header column in pixels.
3323
- *
3324
- * @default 32
3325
- */
3326
- this.headerWidth = 32;
3327
- /**
3328
- * The initial row height in pixels.
3329
- *
3330
- * @default 30
3331
- */
3332
- this.rowHeight = 30;
3333
- /**
3334
- * The number of rows in the document.
3335
- *
3336
- * @default 200
3337
- */
3338
- this.rows = 200;
3339
- /**
3340
- * Fired when a value in the Spreadsheet is changed. Exposes the `SpreadsheetWidget` instance and the selected `Range` as event data.
3341
- */
3342
- this.change = new EventEmitter();
3343
- /**
3344
- * Fired when the selected range format is changed from the UI. Exposes the `SpreadsheetWidget` instance and the selected `Range` as event data.
3345
- */
3346
- this.formatChange = new EventEmitter();
3347
- /**
3348
- * Fired when the selection is changed by the end user. Exposes the `SpreadsheetWidget` instance and the selected `Range` as event data.
3349
- */
3350
- this.selectionChange = new EventEmitter();
3351
- /**
3352
- * Fired when the end user clicks the Export to Excel toolbar button.
3353
- * The event is preventable and exposes the `Workbook` object, a `preventDefault` method
3354
- * (if invoked, the generated file will not be saved), and the SpreadsheetWidget instance.
3355
- */
3356
- this.excelExport = new EventEmitter();
3357
- /**
3358
- * Fired when the end user clicks the Open toolbar button.
3359
- * The event is preventable and exposes the selected `File` or `Blob`, a `preventDefault` method
3360
- * (if invoked, the selected file will not be loaded), and the SpreadsheetWidget instance.
3361
- */
3362
- this.excelImport = new EventEmitter();
3363
- /**
3364
- * Fired when the active sheet is about to change.
3365
- * The event exposes the new active `Sheet` and the SpreadsheetWidget instance.
3366
- */
3367
- this.activeSheetChange = new EventEmitter();
3368
- this.formulaFxIcon = formulaFxIcon;
3369
- this.folderOpenIcon = folderOpenIcon;
3370
- this.downloadIcon = downloadIcon;
3371
- this.showLicenseWatermark = false;
3372
- this.contextMenuItems = [];
3373
- this.subs = new Subscription();
3374
- /**
3375
- * @hidden
3376
- */
3377
- this.onKeyDown = (e) => {
3378
- const isCtrl = e.ctrlKey || e.metaKey;
3379
- const shift = e.shiftKey;
3380
- if (isCtrl && shift && e.keyCode === Keys.KeyS) {
3381
- this.spreadsheetService.onSheetsBarFocus.next();
3382
- }
3383
- };
3384
- this.onChange = (e) => {
3385
- hasObservers(this.change) && this.change.emit(e);
3386
- this.spreadsheetService.selectionChanged.next(e.range);
3387
- };
3388
- this.onSelectionChange = (e) => {
3389
- hasObservers(this.selectionChange) && this.selectionChange.emit(e);
3390
- this.spreadsheetService.selectionChanged.next(e.range);
3391
- };
3392
- this.onChangeFormat = (e) => {
3393
- hasObservers(this.formatChange) && this.formatChange.emit(e);
3394
- this.spreadsheetService.selectionChanged.next(e.range);
3395
- };
3396
- this.onExcelExport = (e) => hasObservers(this.excelExport) && this.excelExport.emit(e);
3397
- this.onExcelImport = (e) => hasObservers(this.excelImport) && this.excelImport.emit(e);
3398
- this.onActiveSheetChanged = (sheet) => {
3399
- const eventArgs = { sender: this.spreadsheetService.spreadsheet, sheet };
3400
- hasObservers(this.activeSheetChange) && this.activeSheetChange.emit(eventArgs);
3401
- const range = sheet.range(sheet.activeCell());
3402
- this.spreadsheetService.selectionChanged.next(range);
3403
- };
3404
- this.updateState = (e) => {
3405
- this.toolsService.updateTools(e);
3406
- if (e.reason?.sheetSelection) {
3407
- this.sheets = mapToSheetDescriptor(this.spreadsheetService.spreadsheet.sheets());
3408
- }
3409
- };
3410
- this.onMessage = (e) => {
3411
- this.ngZone.run(() => {
3412
- this.errorService.handleErrorMessage(e);
3413
- });
3414
- };
3415
- const isValid = validatePackage(packageMetadata);
3416
- this.showLicenseWatermark = shouldShowValidationUI(isValid);
3417
- ngZone.onStable.pipe(take(1)).subscribe(() => {
3418
- if (!this.menuItems) {
3419
- this._menuItems = [{
3420
- id: 'file',
3421
- text: this.messageFor('file')
3422
- }, {
3423
- id: 'home',
3424
- text: this.messageFor('home'),
3425
- active: true,
3426
- cssClass: 'k-active'
3427
- }, {
3428
- id: 'insert',
3429
- text: this.messageFor('insert')
3430
- }, {
3431
- id: 'format',
3432
- text: this.messageFor('formatTab')
3433
- }, {
3434
- id: 'view',
3435
- text: this.messageFor('view')
3436
- }];
3437
- }
3438
- this.selectedMenuItem = this.menuItems[1];
3439
- });
3440
- }
3699
+ ngZone;
3700
+ intl;
3701
+ host;
3702
+ localization;
3703
+ spreadsheetService;
3704
+ toolsService;
3705
+ errorService;
3706
+ dialogService;
3707
+ formulaBarInputRef;
3708
+ formulaCellInputRef;
3709
+ nameBoxRef;
3710
+ dialogContainer;
3711
+ contextMenu;
3712
+ hostClass = true;
3713
+ role = 'application';
3441
3714
  /**
3442
3715
  * The menu items configuration.
3443
3716
  */
@@ -3458,6 +3731,18 @@ class SpreadsheetComponent {
3458
3731
  get menuItems() {
3459
3732
  return this._menuItems;
3460
3733
  }
3734
+ /**
3735
+ * Sets the overflow option of the built-in Toolbar components.
3736
+ * @default false
3737
+ */
3738
+ overflow = false;
3739
+ /**
3740
+ * Sets the height of the formula list container.
3741
+ * Accepts same values as the CSS [`style.height`](https://developer.mozilla.org/en-US/docs/Web/CSS/height) property.
3742
+ *
3743
+ * @default '300px'
3744
+ */
3745
+ formulaListMaxHeight = '300px';
3461
3746
  /**
3462
3747
  * The name of the currently active sheet. Must match one of the sheet names.
3463
3748
  */
@@ -3487,9 +3772,134 @@ class SpreadsheetComponent {
3487
3772
  get sheetsInfo() {
3488
3773
  return this._sheetsInfo;
3489
3774
  }
3775
+ /**
3776
+ * The number of columns in the document.
3777
+ *
3778
+ * @default 50
3779
+ */
3780
+ columns = 50;
3781
+ /**
3782
+ * The initial column width in pixels.
3783
+ *
3784
+ * @default 100
3785
+ */
3786
+ columnWidth = 100;
3787
+ /**
3788
+ * The initial styles applies to the sheet cells.
3789
+ */
3790
+ defaultCellStyle;
3791
+ /**
3792
+ * The height of the header row in pixels.
3793
+ *
3794
+ * @default 30
3795
+ */
3796
+ headerHeight = 30;
3797
+ /**
3798
+ * The width of the header column in pixels.
3799
+ *
3800
+ * @default 32
3801
+ */
3802
+ headerWidth = 32;
3803
+ /**
3804
+ * The initial row height in pixels.
3805
+ *
3806
+ * @default 30
3807
+ */
3808
+ rowHeight = 30;
3809
+ /**
3810
+ * The number of rows in the document.
3811
+ *
3812
+ * @default 200
3813
+ */
3814
+ rows = 200;
3815
+ /**
3816
+ * An object containing any images used in the Spreadsheet. The keys should be image IDs (they are referenced by this ID in `sheets.drawings`),
3817
+ * and the values should be image URLs. The image URLs can be either [`data URLs`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs)
3818
+ * (in which case the images are fully contained by the JSON), or external URLs.
3819
+ */
3820
+ images;
3821
+ /**
3822
+ * Configures the Excel export settings of the Spreadsheet.
3823
+ */
3824
+ excel;
3825
+ /**
3826
+ * Fired when a value in the Spreadsheet is changed. Exposes the `SpreadsheetWidget` instance and the selected `Range` as event data.
3827
+ */
3828
+ change = new EventEmitter();
3829
+ /**
3830
+ * Fired when the selected range format is changed from the UI. Exposes the `SpreadsheetWidget` instance and the selected `Range` as event data.
3831
+ */
3832
+ formatChange = new EventEmitter();
3833
+ /**
3834
+ * Fired when the selection is changed by the end user. Exposes the `SpreadsheetWidget` instance and the selected `Range` as event data.
3835
+ */
3836
+ selectionChange = new EventEmitter();
3837
+ /**
3838
+ * Fired when the end user clicks the Export to Excel toolbar button.
3839
+ * The event is preventable and exposes the `Workbook` object, a `preventDefault` method
3840
+ * (if invoked, the generated file will not be saved), and the SpreadsheetWidget instance.
3841
+ */
3842
+ excelExport = new EventEmitter();
3843
+ /**
3844
+ * Fired when the end user clicks the Open toolbar button.
3845
+ * The event is preventable and exposes the selected `File` or `Blob`, a `preventDefault` method
3846
+ * (if invoked, the selected file will not be loaded), and the SpreadsheetWidget instance.
3847
+ */
3848
+ excelImport = new EventEmitter();
3849
+ /**
3850
+ * Fired when the active sheet is about to change.
3851
+ * The event exposes the new active `Sheet` and the SpreadsheetWidget instance.
3852
+ */
3853
+ activeSheetChange = new EventEmitter();
3854
+ formulaFxIcon = formulaFxIcon;
3855
+ folderOpenIcon = folderOpenIcon;
3856
+ downloadIcon = downloadIcon;
3857
+ selectedMenuItem;
3490
3858
  get spreadsheetWidget() {
3491
3859
  return this.spreadsheetService.spreadsheet;
3492
3860
  }
3861
+ showLicenseWatermark = false;
3862
+ contextMenuItems = [];
3863
+ _sheetsInfo;
3864
+ _activeSheet;
3865
+ _menuItems;
3866
+ currentRange;
3867
+ subs = new Subscription();
3868
+ constructor(ngZone, intl, host, localization, spreadsheetService, toolsService, errorService, dialogService) {
3869
+ this.ngZone = ngZone;
3870
+ this.intl = intl;
3871
+ this.host = host;
3872
+ this.localization = localization;
3873
+ this.spreadsheetService = spreadsheetService;
3874
+ this.toolsService = toolsService;
3875
+ this.errorService = errorService;
3876
+ this.dialogService = dialogService;
3877
+ const isValid = validatePackage(packageMetadata);
3878
+ this.showLicenseWatermark = shouldShowValidationUI(isValid);
3879
+ ngZone.onStable.pipe(take(1)).subscribe(() => {
3880
+ if (!this.menuItems) {
3881
+ this._menuItems = [{
3882
+ id: 'file',
3883
+ text: this.messageFor('file')
3884
+ }, {
3885
+ id: 'home',
3886
+ text: this.messageFor('home'),
3887
+ active: true,
3888
+ cssClass: 'k-active'
3889
+ }, {
3890
+ id: 'insert',
3891
+ text: this.messageFor('insert')
3892
+ }, {
3893
+ id: 'format',
3894
+ text: this.messageFor('formatTab')
3895
+ }, {
3896
+ id: 'view',
3897
+ text: this.messageFor('view')
3898
+ }];
3899
+ }
3900
+ this.selectedMenuItem = this.menuItems[1];
3901
+ });
3902
+ }
3493
3903
  ngAfterViewInit() {
3494
3904
  if (!isDocumentAvailable()) {
3495
3905
  return;
@@ -3629,6 +4039,16 @@ class SpreadsheetComponent {
3629
4039
  this.spreadsheetWidget.executeCommand(command);
3630
4040
  }
3631
4041
  }
4042
+ /**
4043
+ * @hidden
4044
+ */
4045
+ onKeyDown = (e) => {
4046
+ const isCtrl = e.ctrlKey || e.metaKey;
4047
+ const shift = e.shiftKey;
4048
+ if (isCtrl && shift && e.keyCode === Keys.KeyS) {
4049
+ this.spreadsheetService.onSheetsBarFocus.next();
4050
+ }
4051
+ };
3632
4052
  /**
3633
4053
  * @hidden
3634
4054
  */
@@ -3649,6 +4069,37 @@ class SpreadsheetComponent {
3649
4069
  this.selectedMenuItem = this.menuItems.find(item => item.active);
3650
4070
  }
3651
4071
  }
4072
+ onChange = (e) => {
4073
+ hasObservers(this.change) && this.change.emit(e);
4074
+ this.spreadsheetService.selectionChanged.next(e.range);
4075
+ };
4076
+ onSelectionChange = (e) => {
4077
+ hasObservers(this.selectionChange) && this.selectionChange.emit(e);
4078
+ this.spreadsheetService.selectionChanged.next(e.range);
4079
+ };
4080
+ onChangeFormat = (e) => {
4081
+ hasObservers(this.formatChange) && this.formatChange.emit(e);
4082
+ this.spreadsheetService.selectionChanged.next(e.range);
4083
+ };
4084
+ onExcelExport = (e) => hasObservers(this.excelExport) && this.excelExport.emit(e);
4085
+ onExcelImport = (e) => hasObservers(this.excelImport) && this.excelImport.emit(e);
4086
+ onActiveSheetChanged = (sheet) => {
4087
+ const eventArgs = { sender: this.spreadsheetService.spreadsheet, sheet };
4088
+ hasObservers(this.activeSheetChange) && this.activeSheetChange.emit(eventArgs);
4089
+ const range = sheet.range(sheet.activeCell());
4090
+ this.spreadsheetService.selectionChanged.next(range);
4091
+ };
4092
+ updateState = (e) => {
4093
+ this.toolsService.updateTools(e);
4094
+ if (e.reason?.sheetSelection) {
4095
+ this.sheets = mapToSheetDescriptor(this.spreadsheetService.spreadsheet.sheets());
4096
+ }
4097
+ };
4098
+ onMessage = (e) => {
4099
+ this.ngZone.run(() => {
4100
+ this.errorService.handleErrorMessage(e);
4101
+ });
4102
+ };
3652
4103
  updateActiveSheet(name) {
3653
4104
  this.ngZone.run(() => this.spreadsheetService.currentActiveSheet = name);
3654
4105
  }
@@ -3838,23 +4289,22 @@ class SpreadsheetComponent {
3838
4289
  });
3839
4290
  });
3840
4291
  }
3841
- }
3842
- SpreadsheetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetComponent, deps: [{ token: i0.NgZone }, { token: i1$3.IntlService }, { token: i0.ElementRef }, { token: i2.LocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }, { token: ErrorHandlingService }, { token: i1$1.DialogService }], target: i0.ɵɵFactoryTarget.Component });
3843
- SpreadsheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetComponent, isStandalone: true, selector: "kendo-spreadsheet", inputs: { menuItems: "menuItems", overflow: "overflow", formulaListMaxHeight: "formulaListMaxHeight", activeSheet: "activeSheet", sheets: "sheets", columns: "columns", columnWidth: "columnWidth", defaultCellStyle: "defaultCellStyle", headerHeight: "headerHeight", headerWidth: "headerWidth", rowHeight: "rowHeight", rows: "rows", images: "images", excel: "excel" }, outputs: { change: "change", formatChange: "formatChange", selectionChange: "selectionChange", excelExport: "excelExport", excelImport: "excelImport", activeSheetChange: "activeSheetChange" }, host: { properties: { "class.k-spreadsheet": "this.hostClass", "attr.role": "this.role" } }, providers: [
3844
- SpreadsheetLocalizationService,
3845
- SpreadsheetService,
3846
- {
3847
- provide: LocalizationService,
3848
- useExisting: SpreadsheetLocalizationService
3849
- },
3850
- {
3851
- provide: L10N_PREFIX,
3852
- useValue: 'kendo.spreadsheet'
3853
- },
3854
- SpreadsheetToolsService,
3855
- PopupService,
3856
- ErrorHandlingService
3857
- ], viewQueries: [{ propertyName: "formulaBarInputRef", first: true, predicate: ["formulaBar"], descendants: true, read: FormulaInputDirective }, { propertyName: "formulaCellInputRef", first: true, predicate: ["formulaCell"], descendants: true, read: FormulaInputDirective }, { propertyName: "nameBoxRef", first: true, predicate: ["nameBox"], descendants: true }, { propertyName: "dialogContainer", first: true, predicate: ["dialogContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "contextMenu", first: true, predicate: ["contextMenu"], descendants: true }], exportAs: ["kendo-spreadsheet"], usesOnChanges: true, ngImport: i0, template: `
4292
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetComponent, deps: [{ token: i0.NgZone }, { token: i1$3.IntlService }, { token: i0.ElementRef }, { token: i2.LocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }, { token: ErrorHandlingService }, { token: i1$1.DialogService }], target: i0.ɵɵFactoryTarget.Component });
4293
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetComponent, isStandalone: true, selector: "kendo-spreadsheet", inputs: { menuItems: "menuItems", overflow: "overflow", formulaListMaxHeight: "formulaListMaxHeight", activeSheet: "activeSheet", sheets: "sheets", columns: "columns", columnWidth: "columnWidth", defaultCellStyle: "defaultCellStyle", headerHeight: "headerHeight", headerWidth: "headerWidth", rowHeight: "rowHeight", rows: "rows", images: "images", excel: "excel" }, outputs: { change: "change", formatChange: "formatChange", selectionChange: "selectionChange", excelExport: "excelExport", excelImport: "excelImport", activeSheetChange: "activeSheetChange" }, host: { properties: { "class.k-spreadsheet": "this.hostClass", "attr.role": "this.role" } }, providers: [
4294
+ SpreadsheetLocalizationService,
4295
+ SpreadsheetService,
4296
+ {
4297
+ provide: LocalizationService,
4298
+ useExisting: SpreadsheetLocalizationService
4299
+ },
4300
+ {
4301
+ provide: L10N_PREFIX,
4302
+ useValue: 'kendo.spreadsheet'
4303
+ },
4304
+ SpreadsheetToolsService,
4305
+ PopupService,
4306
+ ErrorHandlingService
4307
+ ], viewQueries: [{ propertyName: "formulaBarInputRef", first: true, predicate: ["formulaBar"], descendants: true, read: FormulaInputDirective }, { propertyName: "formulaCellInputRef", first: true, predicate: ["formulaCell"], descendants: true, read: FormulaInputDirective }, { propertyName: "nameBoxRef", first: true, predicate: ["nameBox"], descendants: true }, { propertyName: "dialogContainer", first: true, predicate: ["dialogContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "contextMenu", first: true, predicate: ["contextMenu"], descendants: true }], exportAs: ["kendo-spreadsheet"], usesOnChanges: true, ngImport: i0, template: `
3858
4308
  <ng-container
3859
4309
  kendoSpreadsheetLocalizedMessages
3860
4310
  i18n-background="kendo.spreadsheet.background|The title of the tool that changes the text background color."
@@ -4125,7 +4575,8 @@ SpreadsheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
4125
4575
 
4126
4576
  <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
4127
4577
  `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoSpreadsheetLocalizedMessages]" }, { kind: "component", type: MenuComponent, selector: "kendo-menu", inputs: ["appendTo", "menuItemTemplate", "ariaRole", "menuItemLinkTemplate"], outputs: ["select", "open", "close"], exportAs: ["kendoMenu"] }, { kind: "directive", type: MainMenuDirective, selector: "[kendoSpreadsheetMenu]" }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: MenuItemComponent, selector: "kendo-menu-item", inputs: ["text", "url", "disabled", "cssClass", "cssStyle", "icon", "svgIcon", "data", "separator"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "fillMode", "tabindex", "size", "tabIndex"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { kind: "component", type: SpreadsheetLoadFileComponent, selector: "kendo-spreadsheet-load-file-tool" }, { kind: "component", type: ToolBarButtonComponent, selector: "kendo-toolbar-button", inputs: ["showText", "showIcon", "text", "style", "className", "title", "disabled", "toggleable", "look", "togglable", "selected", "fillMode", "themeColor", "icon", "iconClass", "svgIcon", "imageUrl"], outputs: ["click", "pointerdown", "selectedChange"], exportAs: ["kendoToolBarButton"] }, { kind: "directive", type: SpreadsheetSaveFileDirective, selector: "[kendoSpreadsheetSaveFile]" }, { kind: "component", type: ToolBarButtonGroupComponent, selector: "kendo-toolbar-buttongroup", inputs: ["disabled", "fillMode", "selection", "width", "look"], exportAs: ["kendoToolBarButtonGroup"] }, { kind: "directive", type: SpreadsheetUndoDirective, selector: "kendo-toolbar-button[kendoSpreadsheetUndo]" }, { kind: "directive", type: SpreadsheetRedoDirective, selector: "kendo-toolbar-button[kendoSpreadsheetRedo]" }, { kind: "component", type: ToolBarSeparatorComponent, selector: "kendo-toolbar-separator", exportAs: ["kendoToolBarSeparator"] }, { kind: "component", type: SpreadsheetFontFamilyComponent, selector: "kendo-toolbar-dropdownlist[kendoSpreadsheetFontFamily]" }, { kind: "component", type: SpreadsheetFontSizeComponent, selector: "kendo-toolbar-dropdownlist[kendoSpreadsheetFontSize]" }, { kind: "directive", type: SpreadsheetIncreaseFontSizeDirective, selector: "kendo-toolbar-button[kendoSpreadsheetIncreaseFontSize]" }, { kind: "directive", type: SpreadsheetDecreaseFontSizeDirective, selector: "kendo-toolbar-button[kendoSpreadsheetDecreaseFontSize]" }, { kind: "directive", type: SpreadsheetBoldDirective, selector: "kendo-toolbar-button[kendoSpreadsheetBold]" }, { kind: "directive", type: SpreadsheetItalicDirective, selector: "kendo-toolbar-button[kendoSpreadsheetItalic]" }, { kind: "directive", type: SpreadsheetUnderlineDirective, selector: "kendo-toolbar-button[kendoSpreadsheetUnderline]" }, { kind: "component", type: SpreadsheetForeColorComponent, selector: "kendo-spreadsheet-forecolor-tool" }, { kind: "component", type: SpreadsheetBackColorComponent, selector: "kendo-spreadsheet-backcolor-tool" }, { kind: "component", type: ToolBarDropDownButtonComponent, selector: "kendo-toolbar-dropdownbutton", inputs: ["arrowIcon", "title", "showText", "showIcon", "text", "icon", "svgIcon", "iconClass", "imageUrl", "popupSettings", "look", "primary", "fillMode", "themeColor", "buttonClass", "textField", "disabled", "data"], outputs: ["itemClick", "open", "close"], exportAs: ["kendoToolBarDropDownButton"] }, { kind: "directive", type: SpreadsheetHorizontalTextAlignDirective, selector: "[kendoSpreadsheetHorizontalTextAlign]" }, { kind: "directive", type: SpreadsheetVerticalTextAlignDirective, selector: "[kendoSpreadsheetVerticalTextAlign]" }, { kind: "directive", type: SpreadsheetTextWrapDirective, selector: "kendo-toolbar-button[kendoSpreadsheetTextWrap]" }, { kind: "directive", type: SpreadsheetFormatDirective, selector: "[kendoSpreadsheetFormat]" }, { kind: "directive", type: SpreadsheetInsertLinkDirective, selector: "kendo-toolbar-button[kendoSpreadsheetInsertLink]" }, { kind: "directive", type: SpreadsheetAddColumnLeftButtonDirective, selector: "kendo-toolbar-button[kendoSpreadsheetAddColumnLeftButton]" }, { kind: "directive", type: SpreadsheetAddColumnRightButtonDirective, selector: "kendo-toolbar-button[kendoSpreadsheetAddColumnRightButton]" }, { kind: "directive", type: SpreadsheetAddRowBelowButtonDirective, selector: "kendo-toolbar-button[kendoSpreadsheetAddRowBelowButton]" }, { kind: "directive", type: SpreadsheetAddRowAboveButtonDirective, selector: "kendo-toolbar-button[kendoSpreadsheetAddRowAboveButton]" }, { kind: "directive", type: SpreadsheetDeleteColumnButtonDirective, selector: "kendo-toolbar-button[kendoSpreadsheetDeleteColumnButton]" }, { kind: "directive", type: SpreadsheetDeleteRowButtonDirective, selector: "kendo-toolbar-button[kendoSpreadsheetDeleteRowButton]" }, { kind: "directive", type: SpreadsheetDecreaseDecimalDirective, selector: "kendo-toolbar-button[kendoSpreadsheetDecreaseDecimal]" }, { kind: "directive", type: SpreadsheetIncreaseDecimalDirective, selector: "kendo-toolbar-button[kendoSpreadsheetIncreaseDecimal]" }, { kind: "directive", type: SpreadsheetMergeDirective, selector: "[kendoSpreadsheetMerge]" }, { kind: "directive", type: SpreadsheetGridLinesDirective, selector: "kendo-toolbar-button[kendoSpreadsheetGridLines]" }, { kind: "component", type: NameBoxComponent, selector: "[kendoSpreadsheetNameBox]", inputs: ["data", "spreadsheetWidget"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: FormulaInputDirective, selector: "[kendoSpreadsheetFormulaInput]", inputs: ["formulaListMaxHeight"] }, { kind: "component", type: SheetsBarComponent, selector: "[kendoSpreadsheetSheetsBar]", inputs: ["sheets", "sheetDescriptors"] }, { kind: "component", type: ContextMenuComponent, selector: "kendo-contextmenu", inputs: ["showOn", "target", "filter", "alignToAnchor", "vertical", "popupAnimate", "popupAlign", "anchorAlign", "collision", "appendTo", "ariaLabel"], outputs: ["popupOpen", "popupClose", "select", "open", "close"], exportAs: ["kendoContextMenu"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }] });
4128
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetComponent, decorators: [{
4578
+ }
4579
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetComponent, decorators: [{
4129
4580
  type: Component,
4130
4581
  args: [{
4131
4582
  exportAs: 'kendo-spreadsheet',
@@ -4486,6 +4937,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
4486
4937
  * Custom component messages override default component messages.
4487
4938
  */
4488
4939
  class CustomMessagesComponent extends MessagesDirective {
4940
+ service;
4489
4941
  constructor(service) {
4490
4942
  super();
4491
4943
  this.service = service;
@@ -4493,15 +4945,15 @@ class CustomMessagesComponent extends MessagesDirective {
4493
4945
  get override() {
4494
4946
  return true;
4495
4947
  }
4948
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
4949
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-spreadsheet-messages", providers: [
4950
+ {
4951
+ provide: MessagesDirective,
4952
+ useExisting: forwardRef(() => CustomMessagesComponent)
4953
+ }
4954
+ ], usesInheritance: true, ngImport: i0 });
4496
4955
  }
4497
- CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
4498
- CustomMessagesComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-spreadsheet-messages", providers: [
4499
- {
4500
- provide: MessagesDirective,
4501
- useExisting: forwardRef(() => CustomMessagesComponent)
4502
- }
4503
- ], usesInheritance: true, ngImport: i0 });
4504
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, decorators: [{
4956
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, decorators: [{
4505
4957
  type: Directive,
4506
4958
  args: [{
4507
4959
  providers: [
@@ -4520,12 +4972,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
4520
4972
  * @hidden
4521
4973
  */
4522
4974
  class SpreadsheetTextAlignDirective {
4975
+ host;
4976
+ spreadsheetService;
4977
+ toolsService;
4978
+ commandName = 'align';
4979
+ subs = new Subscription();
4523
4980
  constructor(host, localization, spreadsheetService, toolsService) {
4524
4981
  this.host = host;
4525
4982
  this.spreadsheetService = spreadsheetService;
4526
4983
  this.toolsService = toolsService;
4527
- this.commandName = 'align';
4528
- this.subs = new Subscription();
4529
4984
  host.svgIcon = commandSVGIcons[this.commandName];
4530
4985
  host.icon = commandIcons[this.commandName];
4531
4986
  host.arrowIcon = true;
@@ -4548,10 +5003,10 @@ class SpreadsheetTextAlignDirective {
4548
5003
  };
4549
5004
  this.spreadsheetService.spreadsheet.executeCommand(options);
4550
5005
  }
5006
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetTextAlignDirective, deps: [{ token: i1$2.ToolBarDropDownButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
5007
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SpreadsheetTextAlignDirective, isStandalone: true, selector: "[kendoSpreadsheetTextAlign]", ngImport: i0 });
4551
5008
  }
4552
- SpreadsheetTextAlignDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetTextAlignDirective, deps: [{ token: i1$2.ToolBarDropDownButtonComponent }, { token: SpreadsheetLocalizationService }, { token: SpreadsheetService }, { token: SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
4553
- SpreadsheetTextAlignDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SpreadsheetTextAlignDirective, isStandalone: true, selector: "[kendoSpreadsheetTextAlign]", ngImport: i0 });
4554
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetTextAlignDirective, decorators: [{
5009
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetTextAlignDirective, decorators: [{
4555
5010
  type: Directive,
4556
5011
  args: [{
4557
5012
  selector: '[kendoSpreadsheetTextAlign]',
@@ -4602,11 +5057,11 @@ const KENDO_SPREADSHEET = [
4602
5057
  * definition for the Spreadsheet component.
4603
5058
  */
4604
5059
  class SpreadsheetModule {
5060
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5061
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetModule, imports: [SpreadsheetComponent, CustomMessagesComponent, SpreadsheetBoldDirective, SpreadsheetItalicDirective, SpreadsheetUnderlineDirective, SpreadsheetLoadFileComponent, SpreadsheetSaveFileDirective, SpreadsheetFormatDirective, SpreadsheetUndoDirective, SpreadsheetRedoDirective, SpreadsheetFontFamilyComponent, SpreadsheetFontSizeComponent, SpreadsheetBackColorComponent, SpreadsheetForeColorComponent, SpreadsheetGridLinesDirective, SpreadsheetAddColumnLeftButtonDirective, SpreadsheetAddColumnRightButtonDirective, SpreadsheetAddRowAboveButtonDirective, SpreadsheetAddRowBelowButtonDirective, SpreadsheetDeleteColumnButtonDirective, SpreadsheetDeleteRowButtonDirective, SpreadsheetTextAlignDirective, SpreadsheetTextWrapDirective, SpreadsheetMergeDirective, SpreadsheetInsertLinkDirective, SpreadsheetIncreaseFontSizeDirective, SpreadsheetDecreaseFontSizeDirective, SpreadsheetIncreaseDecimalDirective, SpreadsheetDecreaseDecimalDirective, SpreadsheetHorizontalTextAlignDirective, SpreadsheetVerticalTextAlignDirective], exports: [SpreadsheetComponent, CustomMessagesComponent, SpreadsheetBoldDirective, SpreadsheetItalicDirective, SpreadsheetUnderlineDirective, SpreadsheetLoadFileComponent, SpreadsheetSaveFileDirective, SpreadsheetFormatDirective, SpreadsheetUndoDirective, SpreadsheetRedoDirective, SpreadsheetFontFamilyComponent, SpreadsheetFontSizeComponent, SpreadsheetBackColorComponent, SpreadsheetForeColorComponent, SpreadsheetGridLinesDirective, SpreadsheetAddColumnLeftButtonDirective, SpreadsheetAddColumnRightButtonDirective, SpreadsheetAddRowAboveButtonDirective, SpreadsheetAddRowBelowButtonDirective, SpreadsheetDeleteColumnButtonDirective, SpreadsheetDeleteRowButtonDirective, SpreadsheetTextAlignDirective, SpreadsheetTextWrapDirective, SpreadsheetMergeDirective, SpreadsheetInsertLinkDirective, SpreadsheetIncreaseFontSizeDirective, SpreadsheetDecreaseFontSizeDirective, SpreadsheetIncreaseDecimalDirective, SpreadsheetDecreaseDecimalDirective, SpreadsheetHorizontalTextAlignDirective, SpreadsheetVerticalTextAlignDirective] });
5062
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [SpreadsheetComponent, SpreadsheetLoadFileComponent, SpreadsheetFontFamilyComponent, SpreadsheetFontSizeComponent, SpreadsheetBackColorComponent, SpreadsheetForeColorComponent] });
4605
5063
  }
4606
- SpreadsheetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4607
- SpreadsheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetModule, imports: [SpreadsheetComponent, CustomMessagesComponent, SpreadsheetBoldDirective, SpreadsheetItalicDirective, SpreadsheetUnderlineDirective, SpreadsheetLoadFileComponent, SpreadsheetSaveFileDirective, SpreadsheetFormatDirective, SpreadsheetUndoDirective, SpreadsheetRedoDirective, SpreadsheetFontFamilyComponent, SpreadsheetFontSizeComponent, SpreadsheetBackColorComponent, SpreadsheetForeColorComponent, SpreadsheetGridLinesDirective, SpreadsheetAddColumnLeftButtonDirective, SpreadsheetAddColumnRightButtonDirective, SpreadsheetAddRowAboveButtonDirective, SpreadsheetAddRowBelowButtonDirective, SpreadsheetDeleteColumnButtonDirective, SpreadsheetDeleteRowButtonDirective, SpreadsheetTextAlignDirective, SpreadsheetTextWrapDirective, SpreadsheetMergeDirective, SpreadsheetInsertLinkDirective, SpreadsheetIncreaseFontSizeDirective, SpreadsheetDecreaseFontSizeDirective, SpreadsheetIncreaseDecimalDirective, SpreadsheetDecreaseDecimalDirective, SpreadsheetHorizontalTextAlignDirective, SpreadsheetVerticalTextAlignDirective], exports: [SpreadsheetComponent, CustomMessagesComponent, SpreadsheetBoldDirective, SpreadsheetItalicDirective, SpreadsheetUnderlineDirective, SpreadsheetLoadFileComponent, SpreadsheetSaveFileDirective, SpreadsheetFormatDirective, SpreadsheetUndoDirective, SpreadsheetRedoDirective, SpreadsheetFontFamilyComponent, SpreadsheetFontSizeComponent, SpreadsheetBackColorComponent, SpreadsheetForeColorComponent, SpreadsheetGridLinesDirective, SpreadsheetAddColumnLeftButtonDirective, SpreadsheetAddColumnRightButtonDirective, SpreadsheetAddRowAboveButtonDirective, SpreadsheetAddRowBelowButtonDirective, SpreadsheetDeleteColumnButtonDirective, SpreadsheetDeleteRowButtonDirective, SpreadsheetTextAlignDirective, SpreadsheetTextWrapDirective, SpreadsheetMergeDirective, SpreadsheetInsertLinkDirective, SpreadsheetIncreaseFontSizeDirective, SpreadsheetDecreaseFontSizeDirective, SpreadsheetIncreaseDecimalDirective, SpreadsheetDecreaseDecimalDirective, SpreadsheetHorizontalTextAlignDirective, SpreadsheetVerticalTextAlignDirective] });
4608
- SpreadsheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [SpreadsheetComponent, SpreadsheetLoadFileComponent, SpreadsheetFontFamilyComponent, SpreadsheetFontSizeComponent, SpreadsheetBackColorComponent, SpreadsheetForeColorComponent] });
4609
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SpreadsheetModule, decorators: [{
5064
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetModule, decorators: [{
4610
5065
  type: NgModule,
4611
5066
  args: [{
4612
5067
  exports: [...KENDO_SPREADSHEET],