@progress/kendo-angular-spreadsheet 14.1.1-develop.8 → 14.2.0-develop.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/common/error-handling.service.d.ts +37 -0
  2. package/esm2020/common/error-handling.service.mjs +74 -0
  3. package/esm2020/localization/messages.mjs +55 -1
  4. package/esm2020/package-metadata.mjs +2 -2
  5. package/esm2020/sheets-bar/action-dialog.component.mjs +8 -7
  6. package/esm2020/spreadsheet.component.mjs +208 -44
  7. package/esm2020/spreadsheet.module.mjs +48 -10
  8. package/esm2020/tools/{align-tool.directive.mjs → align/align-tool.directive.mjs} +9 -9
  9. package/esm2020/tools/align/horizontal-align-tool.directive.mjs +60 -0
  10. package/esm2020/tools/align/vertical-align-tool.directive.mjs +60 -0
  11. package/esm2020/tools/decrease-decimal-tool.directive.mjs +40 -0
  12. package/esm2020/tools/font-family/font-family-dropdownlist.component.mjs +0 -2
  13. package/esm2020/tools/font-size/decrease-font-tool.directive.mjs +50 -0
  14. package/esm2020/tools/font-size/increase-font-tool.directive.mjs +50 -0
  15. package/esm2020/tools/increase-decimal-tool.directive.mjs +40 -0
  16. package/esm2020/tools/index.mjs +8 -1
  17. package/esm2020/tools/insert/insert-link-dialog.component.mjs +49 -0
  18. package/esm2020/tools/insert/insert-link-tool.directive.mjs +91 -0
  19. package/esm2020/tools/load-file.component.mjs +1 -1
  20. package/esm2020/tools/shared/command-icons.mjs +17 -3
  21. package/esm2020/tools/shared/constants.mjs +11 -11
  22. package/esm2020/tools/tables/merge-tool.directive.mjs +1 -1
  23. package/fesm2015/progress-kendo-angular-spreadsheet.mjs +722 -83
  24. package/fesm2020/progress-kendo-angular-spreadsheet.mjs +719 -83
  25. package/localization/messages.d.ts +109 -1
  26. package/models/main-menu-item.d.ts +1 -1
  27. package/package.json +14 -14
  28. package/schematics/ngAdd/index.js +1 -1
  29. package/spreadsheet.component.d.ts +4 -1
  30. package/spreadsheet.module.d.ts +23 -15
  31. package/tools/{align-tool.directive.d.ts → align/align-tool.directive.d.ts} +3 -3
  32. package/tools/align/horizontal-align-tool.directive.d.ts +25 -0
  33. package/tools/align/vertical-align-tool.directive.d.ts +25 -0
  34. package/tools/decrease-decimal-tool.directive.d.ts +19 -0
  35. package/tools/font-size/decrease-font-tool.directive.d.ts +22 -0
  36. package/tools/font-size/increase-font-tool.directive.d.ts +22 -0
  37. package/tools/increase-decimal-tool.directive.d.ts +19 -0
  38. package/tools/index.d.ts +8 -1
  39. package/tools/insert/insert-link-dialog.component.d.ts +18 -0
  40. package/tools/insert/insert-link-tool.directive.d.ts +26 -0
  41. package/tools/shared/commands.d.ts +1 -1
  42. package/tools/shared/constants.d.ts +2 -0
@@ -0,0 +1,37 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
6
+ import { DialogService } from '@progress/kendo-angular-dialog';
7
+ import { ViewContainerRef } from '@angular/core';
8
+ import { Range, Sheet, SpreadsheetWidget } from '@progress/kendo-spreadsheet-common';
9
+ import { Subject } from 'rxjs';
10
+ import { SheetsChanges } from './sheet-changes';
11
+ import { SheetInfo } from '../models';
12
+ import { SpreadsheetService } from './spreadsheet.service';
13
+ import * as i0 from "@angular/core";
14
+ /**
15
+ * @hidden
16
+ */
17
+ export declare class ErrorHandlingService {
18
+ private spreadsheetService;
19
+ private localization;
20
+ private dialogService;
21
+ spreadsheet: SpreadsheetWidget;
22
+ sheetsChanged: Subject<SheetsChanges>;
23
+ activeSheetChanged: Subject<Sheet>;
24
+ selectionChanged: Subject<Range>;
25
+ dialogContainer: ViewContainerRef;
26
+ constructor(spreadsheetService: SpreadsheetService, localization: LocalizationService, dialogService: DialogService);
27
+ set currentActiveSheet(value: string);
28
+ get currentActiveSheet(): string;
29
+ get activeSheet(): string;
30
+ private _currentActiveSheet;
31
+ notifySheetsChange(actionType: string, sheetInfo?: SheetInfo): void;
32
+ handleErrorMessage(messageData: any): void;
33
+ private openDialog;
34
+ private messageFor;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorHandlingService, never>;
36
+ static ɵprov: i0.ɵɵInjectableDeclaration<ErrorHandlingService>;
37
+ }
@@ -0,0 +1,74 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
6
+ import { DialogService } from '@progress/kendo-angular-dialog';
7
+ import { Injectable } from '@angular/core';
8
+ import { Subject } from 'rxjs';
9
+ import { SpreadsheetService } from './spreadsheet.service';
10
+ import { take } from 'rxjs/operators';
11
+ import * as i0 from "@angular/core";
12
+ import * as i1 from "./spreadsheet.service";
13
+ import * as i2 from "@progress/kendo-angular-l10n";
14
+ import * as i3 from "@progress/kendo-angular-dialog";
15
+ /**
16
+ * @hidden
17
+ */
18
+ export class ErrorHandlingService {
19
+ constructor(spreadsheetService, localization, dialogService) {
20
+ this.spreadsheetService = spreadsheetService;
21
+ this.localization = localization;
22
+ this.dialogService = dialogService;
23
+ this.sheetsChanged = new Subject();
24
+ this.activeSheetChanged = new Subject();
25
+ this.selectionChanged = new Subject();
26
+ }
27
+ set currentActiveSheet(value) {
28
+ this._currentActiveSheet = value;
29
+ }
30
+ get currentActiveSheet() {
31
+ return this._currentActiveSheet;
32
+ }
33
+ get activeSheet() {
34
+ return this.spreadsheet.activeSheet()?.name();
35
+ }
36
+ notifySheetsChange(actionType, sheetInfo) {
37
+ const sheets = this.spreadsheet.sheets();
38
+ this.sheetsChanged.next({ sheets, sheet: sheetInfo, actionType });
39
+ }
40
+ handleErrorMessage(messageData) {
41
+ this.openDialog(messageData);
42
+ }
43
+ openDialog(messageData) {
44
+ const dialogSettings = {
45
+ appendTo: this.spreadsheetService.dialogContainer,
46
+ title: this.messageFor('dialogError'),
47
+ content: this.messageFor(messageData.name),
48
+ actions: [{
49
+ text: this.messageFor('dialogOk'),
50
+ themeColor: 'primary'
51
+ }],
52
+ width: 400,
53
+ actionsLayout: 'start'
54
+ };
55
+ const dialog = this.dialogService.open(dialogSettings);
56
+ const dialogInstance = dialog.dialog?.instance;
57
+ dialogInstance.action.pipe(take(1)).subscribe((event) => {
58
+ if (event.text === this.messageFor('dialogOk')) {
59
+ messageData.close();
60
+ }
61
+ });
62
+ dialogInstance.close.pipe(take(1)).subscribe(() => {
63
+ messageData.close();
64
+ });
65
+ }
66
+ messageFor(text) {
67
+ return this.localization.get(text);
68
+ }
69
+ }
70
+ ErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ErrorHandlingService, deps: [{ token: i1.SpreadsheetService }, { token: i2.LocalizationService }, { token: i3.DialogService }], target: i0.ɵɵFactoryTarget.Injectable });
71
+ ErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ErrorHandlingService });
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ErrorHandlingService, decorators: [{
73
+ type: Injectable
74
+ }], ctorParameters: function () { return [{ type: i1.SpreadsheetService }, { type: i2.LocalizationService }, { type: i3.DialogService }]; } });
@@ -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", 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", dialogApply: "dialogApply", dialogCancel: "dialogCancel", dialogDelete: "dialogDelete", dialogRename: "dialogRename", delete: "delete", rename: "rename", nameBox: "nameBox", addSheet: "addSheet", sheetsMenu: "sheetsMenu", view: "view", merge: "merge" }, 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", 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 });
15
15
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MessagesDirective, decorators: [{
16
16
  type: Directive,
17
17
  args: [{
@@ -23,6 +23,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
23
23
  type: Input
24
24
  }], insert: [{
25
25
  type: Input
26
+ }], formatTab: [{
27
+ type: Input
26
28
  }], saveFile: [{
27
29
  type: Input
28
30
  }], loadFile: [{
@@ -65,6 +67,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
65
67
  type: Input
66
68
  }], align: [{
67
69
  type: Input
70
+ }], alignHorizontal: [{
71
+ type: Input
72
+ }], alignVertical: [{
73
+ type: Input
74
+ }], alignLeft: [{
75
+ type: Input
76
+ }], alignCenter: [{
77
+ type: Input
78
+ }], alignRight: [{
79
+ type: Input
80
+ }], alignJustify: [{
81
+ type: Input
82
+ }], alignTop: [{
83
+ type: Input
84
+ }], alignMiddle: [{
85
+ type: Input
86
+ }], alignBottom: [{
87
+ type: Input
68
88
  }], dialogApply: [{
69
89
  type: Input
70
90
  }], dialogCancel: [{
@@ -73,6 +93,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
73
93
  type: Input
74
94
  }], dialogRename: [{
75
95
  type: Input
96
+ }], dialogInsert: [{
97
+ type: Input
98
+ }], dialogRemoveLink: [{
99
+ type: Input
76
100
  }], delete: [{
77
101
  type: Input
78
102
  }], rename: [{
@@ -87,4 +111,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
87
111
  type: Input
88
112
  }], merge: [{
89
113
  type: Input
114
+ }], mergeHorizontally: [{
115
+ type: Input
116
+ }], mergeVertically: [{
117
+ type: Input
118
+ }], mergeAll: [{
119
+ type: Input
120
+ }], unmerge: [{
121
+ type: Input
122
+ }], insertLink: [{
123
+ type: Input
124
+ }], increaseDecimal: [{
125
+ type: Input
126
+ }], decreaseDecimal: [{
127
+ type: Input
128
+ }], increaseFontSize: [{
129
+ type: Input
130
+ }], decreaseFontSize: [{
131
+ type: Input
132
+ }], openUnsupported: [{
133
+ type: Input
134
+ }], modifyMerged: [{
135
+ type: Input
136
+ }], cannotModifyDisabled: [{
137
+ type: Input
138
+ }], dialogOk: [{
139
+ type: Input
140
+ }], dialogError: [{
141
+ type: Input
142
+ }], duplicateSheetName: [{
143
+ type: Input
90
144
  }] } });
@@ -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: 1700478634,
13
- version: '14.1.1-develop.8',
12
+ publishDate: 1701248930,
13
+ version: '14.2.0-develop.10',
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
  };
@@ -6,8 +6,9 @@ import { Component } from '@angular/core';
6
6
  import { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
7
7
  import * as i0 from "@angular/core";
8
8
  import * as i1 from "@progress/kendo-angular-dialog";
9
- import * as i2 from "@progress/kendo-angular-inputs";
10
- import * as i3 from "@angular/common";
9
+ import * as i2 from "@progress/kendo-angular-label";
10
+ import * as i3 from "@progress/kendo-angular-inputs";
11
+ import * as i4 from "@angular/common";
11
12
  /**
12
13
  * @hidden
13
14
  */
@@ -31,9 +32,9 @@ ActionDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
31
32
 
32
33
  <form class="k-form k-form-md" *ngIf="commandName === 'rename'" method="dialog">
33
34
  <div class="k-form-field">
34
- <label class="k-label k-form-label">Rename sheet</label>
35
+ <kendo-label [for]="textbox" text="Rename sheet"></kendo-label>
35
36
  <div class="k-form-field-wrap">
36
- <kendo-textbox
37
+ <kendo-textbox #textbox
37
38
  autocomplete="off"
38
39
  placeholder="Sheet name"
39
40
  [(value)]="value">
@@ -41,7 +42,7 @@ ActionDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
41
42
  </div>
42
43
  </div>
43
44
  </form>
44
- `, isInline: true, components: [{ type: i2.TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
45
+ `, isInline: true, components: [{ type: i2.LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { type: i3.TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
45
46
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ActionDialogComponent, decorators: [{
46
47
  type: Component,
47
48
  args: [{
@@ -53,9 +54,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
53
54
 
54
55
  <form class="k-form k-form-md" *ngIf="commandName === 'rename'" method="dialog">
55
56
  <div class="k-form-field">
56
- <label class="k-label k-form-label">Rename sheet</label>
57
+ <kendo-label [for]="textbox" text="Rename sheet"></kendo-label>
57
58
  <div class="k-form-field-wrap">
58
- <kendo-textbox
59
+ <kendo-textbox #textbox
59
60
  autocomplete="off"
60
61
  placeholder="Sheet name"
61
62
  [(value)]="value">