@progress/kendo-angular-spreadsheet 14.2.0 → 14.3.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,7 @@ import { ElementRef } from '@angular/core';
6
6
  import { FormulaListComponent } from './list.component';
7
7
  import { PopupService } from '@progress/kendo-angular-popup';
8
8
  import { SpreadsheetService } from '../common/spreadsheet.service';
9
+ import { SpreadsheetLocalizationService } from '../localization/spreadsheet-localization.service';
9
10
  import * as i0 from "@angular/core";
10
11
  /**
11
12
  * @hidden
@@ -14,13 +15,16 @@ export declare class FormulaInputDirective {
14
15
  element: ElementRef;
15
16
  private popupService;
16
17
  private spreadsheetService;
18
+ private localization;
17
19
  hostClasses: boolean;
20
+ get title(): string;
21
+ role: string;
18
22
  ariaHasPopup: string;
19
23
  ariaExpanded: string;
20
24
  get ariaControls(): string;
21
25
  list: FormulaListComponent;
22
26
  data: any[];
23
- constructor(element: ElementRef, popupService: PopupService, spreadsheetService: SpreadsheetService);
27
+ constructor(element: ElementRef, popupService: PopupService, spreadsheetService: SpreadsheetService, localization: SpreadsheetLocalizationService);
24
28
  private popupRef;
25
29
  private handler;
26
30
  private get listElement();
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { ElementRef, NgZone } from '@angular/core';
5
+ import { AfterViewInit, ElementRef, NgZone, Renderer2 } from '@angular/core';
6
6
  import { SpreadsheetWidget } from '@progress/kendo-spreadsheet-common';
7
7
  import { Observable } from 'rxjs';
8
8
  import { SpreadsheetLocalizationService } from '../localization/spreadsheet-localization.service';
@@ -10,17 +10,20 @@ import * as i0 from "@angular/core";
10
10
  /**
11
11
  * @hidden
12
12
  */
13
- export declare class NameBoxComponent {
13
+ export declare class NameBoxComponent implements AfterViewInit {
14
14
  private ngZone;
15
15
  private host;
16
16
  protected localization: SpreadsheetLocalizationService;
17
+ private renderer;
17
18
  hostClass: boolean;
18
19
  keyDownHandler(): void;
19
20
  private combobox;
20
21
  data: any[];
21
22
  spreadsheetWidget: SpreadsheetWidget;
22
- constructor(ngZone: NgZone, host: ElementRef, localization: SpreadsheetLocalizationService);
23
+ constructor(ngZone: NgZone, host: ElementRef, localization: SpreadsheetLocalizationService, renderer: Renderer2);
24
+ ngAfterViewInit(): void;
23
25
  value: any;
26
+ get inputElement(): any;
24
27
  get current(): any;
25
28
  get title(): string;
26
29
  onSelectionChange(value: any): void;
@@ -6,18 +6,22 @@ import { Directive, ElementRef, HostBinding } from '@angular/core';
6
6
  import { FormulaListComponent } from './list.component';
7
7
  import { PopupService } from '@progress/kendo-angular-popup';
8
8
  import { SpreadsheetService } from '../common/spreadsheet.service';
9
+ import { SpreadsheetLocalizationService } from '../localization/spreadsheet-localization.service';
9
10
  import * as i0 from "@angular/core";
10
11
  import * as i1 from "@progress/kendo-angular-popup";
11
12
  import * as i2 from "../common/spreadsheet.service";
13
+ import * as i3 from "../localization/spreadsheet-localization.service";
12
14
  /**
13
15
  * @hidden
14
16
  */
15
17
  export class FormulaInputDirective {
16
- constructor(element, popupService, spreadsheetService) {
18
+ constructor(element, popupService, spreadsheetService, localization) {
17
19
  this.element = element;
18
20
  this.popupService = popupService;
19
21
  this.spreadsheetService = spreadsheetService;
22
+ this.localization = localization;
20
23
  this.hostClasses = true;
24
+ this.role = 'combobox';
21
25
  this.ariaHasPopup = 'menu';
22
26
  this.ariaExpanded = 'false';
23
27
  this.focusedItem = () => this.list?.element.nativeElement.querySelector('.k-focus');
@@ -45,6 +49,9 @@ export class FormulaInputDirective {
45
49
  }
46
50
  };
47
51
  }
52
+ get title() {
53
+ return this.localization.get('formulaInput');
54
+ }
48
55
  get ariaControls() {
49
56
  return this.ariaExpanded === 'true' ? this.spreadsheetService.formulaListId : null;
50
57
  }
@@ -120,16 +127,22 @@ export class FormulaInputDirective {
120
127
  };
121
128
  }
122
129
  }
123
- FormulaInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormulaInputDirective, deps: [{ token: i0.ElementRef }, { token: i1.PopupService }, { token: i2.SpreadsheetService }], target: i0.ɵɵFactoryTarget.Directive });
124
- FormulaInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: FormulaInputDirective, selector: "[kendoSpreadsheetFormulaInput]", host: { properties: { "class.k-spreadsheet-formula-input": "this.hostClasses", "attr.aria-haspopup": "this.ariaHasPopup", "attr.aria-expanded": "this.ariaExpanded", "attr.aria-controls": "this.ariaControls" } }, ngImport: i0 });
130
+ FormulaInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormulaInputDirective, deps: [{ token: i0.ElementRef }, { token: i1.PopupService }, { token: i2.SpreadsheetService }, { token: i3.SpreadsheetLocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
131
+ FormulaInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: FormulaInputDirective, selector: "[kendoSpreadsheetFormulaInput]", 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 });
125
132
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormulaInputDirective, decorators: [{
126
133
  type: Directive,
127
134
  args: [{
128
135
  selector: '[kendoSpreadsheetFormulaInput]',
129
136
  }]
130
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.PopupService }, { type: i2.SpreadsheetService }]; }, propDecorators: { hostClasses: [{
137
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.PopupService }, { type: i2.SpreadsheetService }, { type: i3.SpreadsheetLocalizationService }]; }, propDecorators: { hostClasses: [{
131
138
  type: HostBinding,
132
139
  args: ['class.k-spreadsheet-formula-input']
140
+ }], title: [{
141
+ type: HostBinding,
142
+ args: ['attr.title']
143
+ }], role: [{
144
+ type: HostBinding,
145
+ args: ['attr.role']
133
146
  }], ariaHasPopup: [{
134
147
  type: HostBinding,
135
148
  args: ['attr.aria-haspopup']
@@ -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 { ComboBoxComponent } from '@progress/kendo-angular-dropdowns';
6
- import { Component, ElementRef, HostBinding, HostListener, Input, NgZone, ViewChild } from '@angular/core';
6
+ import { Component, ElementRef, HostBinding, HostListener, Input, NgZone, Renderer2, ViewChild } from '@angular/core';
7
7
  import { SpreadsheetWidget } from '@progress/kendo-spreadsheet-common';
8
8
  import { map } from 'rxjs/operators';
9
9
  import { SpreadsheetLocalizationService } from '../localization/spreadsheet-localization.service';
@@ -14,20 +14,28 @@ import * as i2 from "@progress/kendo-angular-dropdowns";
14
14
  * @hidden
15
15
  */
16
16
  export class NameBoxComponent {
17
- constructor(ngZone, host, localization) {
17
+ constructor(ngZone, host, localization, renderer) {
18
18
  this.ngZone = ngZone;
19
19
  this.host = host;
20
20
  this.localization = localization;
21
+ this.renderer = renderer;
21
22
  this.hostClass = true;
22
23
  this.valueNormalizer = (text) => text.pipe(map((content) => ({ name: content })));
23
24
  }
24
25
  keyDownHandler() {
25
26
  const editor = this.spreadsheetWidget.view.nameEditor;
26
27
  if (editor) {
27
- const name = this.host.nativeElement.querySelector('.k-input-inner').value;
28
+ const name = this.inputElement.value;
28
29
  editor.trigger('enter', { value: name });
29
30
  }
30
31
  }
32
+ ngAfterViewInit() {
33
+ this.renderer.setAttribute(this.inputElement, 'title', this.title);
34
+ this.renderer.setAttribute(this.inputElement, 'aria-label', this.title);
35
+ }
36
+ get inputElement() {
37
+ return this.host.nativeElement.querySelector('.k-input-inner');
38
+ }
31
39
  get current() {
32
40
  return {
33
41
  value: (val) => {
@@ -64,7 +72,7 @@ export class NameBoxComponent {
64
72
  }
65
73
  ;
66
74
  }
67
- NameBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NameBoxComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i1.SpreadsheetLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
75
+ NameBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NameBoxComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i1.SpreadsheetLocalizationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
68
76
  NameBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NameBoxComponent, 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: `
69
77
  <kendo-combobox #combobox
70
78
  [popupSettings]="{popupClass: 'k-spreadsheet-names-popup'}"
@@ -102,7 +110,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
102
110
  ></kendo-combobox>
103
111
  `
104
112
  }]
105
- }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i1.SpreadsheetLocalizationService }]; }, propDecorators: { hostClass: [{
113
+ }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i1.SpreadsheetLocalizationService }, { type: i0.Renderer2 }]; }, propDecorators: { hostClass: [{
106
114
  type: HostBinding,
107
115
  args: ['class.k-spreadsheet-name-editor']
108
116
  }], keyDownHandler: [{
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
11
11
  export class MessagesDirective extends ComponentMessages {
12
12
  }
13
13
  MessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessagesDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
- MessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: MessagesDirective, 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", 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" }, usesInheritance: true, ngImport: i0 });
14
+ MessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: MessagesDirective, 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" }, usesInheritance: true, ngImport: i0 });
15
15
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessagesDirective, decorators: [{
16
16
  type: Directive,
17
17
  args: [{
@@ -103,6 +103,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
103
103
  type: Input
104
104
  }], nameBox: [{
105
105
  type: Input
106
+ }], formulaInput: [{
107
+ type: Input
106
108
  }], addSheet: [{
107
109
  type: Input
108
110
  }], sheetsMenu: [{
@@ -141,4 +143,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
141
143
  type: Input
142
144
  }], duplicateSheetName: [{
143
145
  type: Input
146
+ }], copy: [{
147
+ type: Input
148
+ }], cut: [{
149
+ type: Input
150
+ }], paste: [{
151
+ type: Input
152
+ }], hideRow: [{
153
+ type: Input
154
+ }], unhideRow: [{
155
+ type: Input
156
+ }], hideColumn: [{
157
+ type: Input
158
+ }], unhideColumn: [{
159
+ type: Input
144
160
  }] } });
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-spreadsheet',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1701270719,
13
- version: '14.2.0',
12
+ publishDate: 1701695065,
13
+ version: '14.3.0-develop.1',
14
14
  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',
15
15
  };