@progress/kendo-angular-spreadsheet 14.1.1-develop.7 → 14.2.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.
- package/esm2020/localization/messages.mjs +21 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/sheets-bar/action-dialog.component.mjs +8 -7
- package/esm2020/spreadsheet.component.mjs +103 -20
- package/esm2020/spreadsheet.module.mjs +48 -10
- package/esm2020/tools/{align-tool.directive.mjs → align/align-tool.directive.mjs} +8 -8
- package/esm2020/tools/align/horizontal-align-tool.directive.mjs +58 -0
- package/esm2020/tools/align/vertical-align-tool.directive.mjs +58 -0
- package/esm2020/tools/decrease-decimal-tool.directive.mjs +40 -0
- package/esm2020/tools/font-family/font-family-dropdownlist.component.mjs +0 -2
- package/esm2020/tools/font-size/decrease-font-tool.directive.mjs +50 -0
- package/esm2020/tools/font-size/increase-font-tool.directive.mjs +50 -0
- package/esm2020/tools/increase-decimal-tool.directive.mjs +40 -0
- package/esm2020/tools/index.mjs +8 -1
- package/esm2020/tools/insert/insert-link-dialog.component.mjs +49 -0
- package/esm2020/tools/insert/insert-link-tool.directive.mjs +91 -0
- package/esm2020/tools/shared/command-icons.mjs +17 -3
- package/fesm2015/progress-kendo-angular-spreadsheet.mjs +490 -31
- package/fesm2020/progress-kendo-angular-spreadsheet.mjs +489 -31
- package/localization/messages.d.ts +41 -1
- package/models/main-menu-item.d.ts +1 -1
- package/package.json +13 -13
- package/schematics/ngAdd/index.js +1 -1
- package/spreadsheet.module.d.ts +23 -15
- package/tools/{align-tool.directive.d.ts → align/align-tool.directive.d.ts} +3 -3
- package/tools/align/horizontal-align-tool.directive.d.ts +25 -0
- package/tools/align/vertical-align-tool.directive.d.ts +25 -0
- package/tools/decrease-decimal-tool.directive.d.ts +19 -0
- package/tools/font-size/decrease-font-tool.directive.d.ts +22 -0
- package/tools/font-size/increase-font-tool.directive.d.ts +22 -0
- package/tools/increase-decimal-tool.directive.d.ts +19 -0
- package/tools/index.d.ts +8 -1
- package/tools/insert/insert-link-dialog.component.d.ts +18 -0
- package/tools/insert/insert-link-tool.directive.d.ts +26 -0
- package/tools/shared/commands.d.ts +1 -1
|
@@ -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", 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", insertLink: "insertLink", increaseDecimal: "increaseDecimal", decreaseDecimal: "decreaseDecimal", increaseFontSize: "increaseFontSize", decreaseFontSize: "decreaseFontSize" }, 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,10 @@ 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
|
|
68
74
|
}], dialogApply: [{
|
|
69
75
|
type: Input
|
|
70
76
|
}], dialogCancel: [{
|
|
@@ -73,6 +79,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
73
79
|
type: Input
|
|
74
80
|
}], dialogRename: [{
|
|
75
81
|
type: Input
|
|
82
|
+
}], dialogInsert: [{
|
|
83
|
+
type: Input
|
|
84
|
+
}], dialogRemoveLink: [{
|
|
85
|
+
type: Input
|
|
76
86
|
}], delete: [{
|
|
77
87
|
type: Input
|
|
78
88
|
}], rename: [{
|
|
@@ -87,4 +97,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
87
97
|
type: Input
|
|
88
98
|
}], merge: [{
|
|
89
99
|
type: Input
|
|
100
|
+
}], insertLink: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], increaseDecimal: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}], decreaseDecimal: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], increaseFontSize: [{
|
|
107
|
+
type: Input
|
|
108
|
+
}], decreaseFontSize: [{
|
|
109
|
+
type: Input
|
|
90
110
|
}] } });
|
|
@@ -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:
|
|
13
|
-
version: '14.
|
|
12
|
+
publishDate: 1700562915,
|
|
13
|
+
version: '14.2.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
|
};
|
|
@@ -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-
|
|
10
|
-
import * as i3 from "@angular
|
|
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
|
|
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:
|
|
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
|
|
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">
|
|
@@ -40,21 +40,27 @@ import * as i18 from "@angular/common";
|
|
|
40
40
|
import * as i19 from "./tools/save-file-tool.directive";
|
|
41
41
|
import * as i20 from "./tools/history/undo-tool";
|
|
42
42
|
import * as i21 from "./tools/history/redo-tool";
|
|
43
|
-
import * as i22 from "./tools/
|
|
44
|
-
import * as i23 from "./tools/
|
|
45
|
-
import * as i24 from "./tools/typographical-emphasis/
|
|
46
|
-
import * as i25 from "./tools/
|
|
47
|
-
import * as i26 from "./tools/
|
|
48
|
-
import * as i27 from "./tools/
|
|
49
|
-
import * as i28 from "./tools/
|
|
50
|
-
import * as i29 from "./tools/
|
|
51
|
-
import * as i30 from "./tools/
|
|
52
|
-
import * as i31 from "./tools/
|
|
53
|
-
import * as i32 from "./tools/tables/
|
|
54
|
-
import * as i33 from "./tools/tables/
|
|
55
|
-
import * as i34 from "./tools/tables/
|
|
56
|
-
import * as i35 from "./tools/
|
|
57
|
-
import * as i36 from "./
|
|
43
|
+
import * as i22 from "./tools/font-size/increase-font-tool.directive";
|
|
44
|
+
import * as i23 from "./tools/font-size/decrease-font-tool.directive";
|
|
45
|
+
import * as i24 from "./tools/typographical-emphasis/bold-tool.directive";
|
|
46
|
+
import * as i25 from "./tools/typographical-emphasis/italic-tool.directive";
|
|
47
|
+
import * as i26 from "./tools/typographical-emphasis/underline-tool.directive";
|
|
48
|
+
import * as i27 from "./tools/align/horizontal-align-tool.directive";
|
|
49
|
+
import * as i28 from "./tools/align/vertical-align-tool.directive";
|
|
50
|
+
import * as i29 from "./tools/text-wrap-tool.directive";
|
|
51
|
+
import * as i30 from "./tools/format-tool.directive";
|
|
52
|
+
import * as i31 from "./tools/insert/insert-link-tool.directive";
|
|
53
|
+
import * as i32 from "./tools/tables/add-column-left-button.directive";
|
|
54
|
+
import * as i33 from "./tools/tables/add-column-right-button.directive";
|
|
55
|
+
import * as i34 from "./tools/tables/add-row-below-button.directive";
|
|
56
|
+
import * as i35 from "./tools/tables/add-row-above-button.directive";
|
|
57
|
+
import * as i36 from "./tools/tables/delete-column-button.directive";
|
|
58
|
+
import * as i37 from "./tools/tables/delete-row-button.directive";
|
|
59
|
+
import * as i38 from "./tools/decrease-decimal-tool.directive";
|
|
60
|
+
import * as i39 from "./tools/increase-decimal-tool.directive";
|
|
61
|
+
import * as i40 from "./tools/tables/merge-tool.directive";
|
|
62
|
+
import * as i41 from "./tools/gridlines-tool.directive";
|
|
63
|
+
import * as i42 from "./action-bar/formula-input.directive";
|
|
58
64
|
/**
|
|
59
65
|
* Represents the [Kendo UI Spreadsheet component for Angular]({% slug overview_spreadsheet %}).
|
|
60
66
|
*/
|
|
@@ -145,17 +151,25 @@ export class SpreadsheetComponent {
|
|
|
145
151
|
* @hidden
|
|
146
152
|
*/
|
|
147
153
|
this.showLicenseWatermark = false;
|
|
148
|
-
this.onChange = (e) =>
|
|
154
|
+
this.onChange = (e) => {
|
|
155
|
+
hasObservers(this.change) && this.change.emit(e);
|
|
156
|
+
this.spreadsheetService.selectionChanged.next(e.range);
|
|
157
|
+
};
|
|
149
158
|
this.onSelectionChange = (e) => {
|
|
150
159
|
hasObservers(this.selectionChange) && this.selectionChange.emit(e);
|
|
151
160
|
this.spreadsheetService.selectionChanged.next(e.range);
|
|
152
161
|
};
|
|
153
|
-
this.onChangeFormat = (e) =>
|
|
162
|
+
this.onChangeFormat = (e) => {
|
|
163
|
+
hasObservers(this.formatChange) && this.formatChange.emit(e);
|
|
164
|
+
this.spreadsheetService.selectionChanged.next(e.range);
|
|
165
|
+
};
|
|
154
166
|
this.onExcelExport = (e) => hasObservers(this.excelExport) && this.excelExport.emit(e);
|
|
155
167
|
this.onExcelImport = (e) => hasObservers(this.excelImport) && this.excelImport.emit(e);
|
|
156
168
|
this.onActiveSheetChanged = (sheet) => {
|
|
157
169
|
const eventArgs = { sender: this.spreadsheetService.spreadsheet, sheet };
|
|
158
170
|
hasObservers(this.activeSheetChange) && this.activeSheetChange.emit(eventArgs);
|
|
171
|
+
const range = sheet.range(sheet.activeCell());
|
|
172
|
+
this.spreadsheetService.selectionChanged.next(range);
|
|
159
173
|
};
|
|
160
174
|
this.updateState = (e) => {
|
|
161
175
|
this.toolsService.updateTools(e);
|
|
@@ -178,6 +192,9 @@ export class SpreadsheetComponent {
|
|
|
178
192
|
}, {
|
|
179
193
|
id: 'insert',
|
|
180
194
|
text: this.messageFor('insert')
|
|
195
|
+
}, {
|
|
196
|
+
id: 'format',
|
|
197
|
+
text: this.messageFor('formatTab')
|
|
181
198
|
}, {
|
|
182
199
|
id: 'view',
|
|
183
200
|
text: this.messageFor('view')
|
|
@@ -386,6 +403,8 @@ SpreadsheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
386
403
|
file="File"
|
|
387
404
|
i18n-insert="kendo.spreadsheet.insert|The text of the Insert toolbar tab."
|
|
388
405
|
insert="Insert"
|
|
406
|
+
i18n-formatTab="kendo.spreadsheet.formatTab|The text of the Format toolbar tab."
|
|
407
|
+
formatTab="Format"
|
|
389
408
|
i18n-view="kendo.spreadsheet.view|The text of the View toolbar tab."
|
|
390
409
|
view="View"
|
|
391
410
|
i18n-undo="kendo.spreadsheet.undo|The title of the Undo tool."
|
|
@@ -410,8 +429,22 @@ SpreadsheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
410
429
|
wrap="Text wrap"
|
|
411
430
|
i18n-align="kendo.spreadsheet.align|The title of the Text Align tool."
|
|
412
431
|
align="Align"
|
|
432
|
+
i18n-alignHorizontal="kendo.spreadsheet.alignHorizontal|The title of the Text Align Horizontal tool."
|
|
433
|
+
alignHorizontal="Align horizontally"
|
|
434
|
+
i18n-alignVertical="kendo.spreadsheet.alignVertical|The title of the Text Align Vertical tool."
|
|
435
|
+
alignVertical="Align vertically"
|
|
413
436
|
i18n-merge="kendo.spreadsheet.merge|The title of the Cells Merge tool."
|
|
414
437
|
merge="Merge"
|
|
438
|
+
i18n-insertLink="kendo.spreadsheet.insertLink|The title of the tool that inserts a link."
|
|
439
|
+
insertLink="Insert link"
|
|
440
|
+
i18n-decreaseDecimal="kendo.spreadsheet.decreaseDecimal|The title of the tool that decreases decimals."
|
|
441
|
+
decreaseDecimal="Decrease decimal"
|
|
442
|
+
i18n-increaseDecimal="kendo.spreadsheet.increaseDecimal|The title of the tool that increases decimals."
|
|
443
|
+
increaseDecimal="Increase decimal"
|
|
444
|
+
i18n-increaseFontSize="kendo.spreadsheet.increaseFontSize|The title of the tool that increases the cell font size."
|
|
445
|
+
increaseFontSize="Increase font size"
|
|
446
|
+
i18n-decreaseFontSize="kendo.spreadsheet.decreaseFontSize|The title of the tool that decreases the cell font size."
|
|
447
|
+
decreaseFontSize="Decrease font size"
|
|
415
448
|
i18n-dialogApply="kendo.spreadsheet.dialogApply|The text of the **Apply** button in all Spreadsheet dialogs."
|
|
416
449
|
dialogApply="Apply"
|
|
417
450
|
i18n-dialogCancel="kendo.spreadsheet.dialogCancel|The text of the **Cancel** button in all Spreadsheet dialogs."
|
|
@@ -420,6 +453,10 @@ SpreadsheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
420
453
|
dialogDelete="Delete"
|
|
421
454
|
i18n-dialogRename="kendo.spreadsheet.dialogRename|The text of the **Rename** button in the Rename sheet dialog."
|
|
422
455
|
dialogRename="Rename"
|
|
456
|
+
i18n-dialogInsert="kendo.spreadsheet.dialogInsert|The text of the **Insert** button in all Spreadsheet dialogs."
|
|
457
|
+
dialogInsert="Insert"
|
|
458
|
+
i18n-dialogRemoveLink="kendo.spreadsheet.dialogRemoveLink|The text of the **Remove link** button in the Link tool dialog."
|
|
459
|
+
dialogRemoveLink="Remove link"
|
|
423
460
|
i18n-rename="kendo.spreadsheet.rename|The title of the Rename sheet dialog."
|
|
424
461
|
rename="Rename Sheet"
|
|
425
462
|
i18n-delete="kendo.spreadsheet.delete|The title of the Delete sheet dialog."
|
|
@@ -453,6 +490,9 @@ SpreadsheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
453
490
|
<kendo-toolbar-separator></kendo-toolbar-separator>
|
|
454
491
|
<kendo-toolbar-dropdownlist kendoSpreadsheetFontFamily></kendo-toolbar-dropdownlist>
|
|
455
492
|
<kendo-toolbar-dropdownlist kendoSpreadsheetFontSize></kendo-toolbar-dropdownlist>
|
|
493
|
+
<kendo-toolbar-button kendoSpreadsheetIncreaseFontSize></kendo-toolbar-button>
|
|
494
|
+
<kendo-toolbar-button kendoSpreadsheetDecreaseFontSize></kendo-toolbar-button>
|
|
495
|
+
<kendo-toolbar-separator></kendo-toolbar-separator>
|
|
456
496
|
<kendo-toolbar-buttongroup>
|
|
457
497
|
<kendo-toolbar-button kendoSpreadsheetBold></kendo-toolbar-button>
|
|
458
498
|
<kendo-toolbar-button kendoSpreadsheetItalic></kendo-toolbar-button>
|
|
@@ -462,7 +502,8 @@ SpreadsheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
462
502
|
<kendo-toolbar-separator></kendo-toolbar-separator>
|
|
463
503
|
<kendo-spreadsheet-backcolor-tool></kendo-spreadsheet-backcolor-tool>
|
|
464
504
|
<kendo-toolbar-separator></kendo-toolbar-separator>
|
|
465
|
-
<kendo-toolbar-dropdownbutton
|
|
505
|
+
<kendo-toolbar-dropdownbutton kendoSpreadsheetHorizontalTextAlign></kendo-toolbar-dropdownbutton>
|
|
506
|
+
<kendo-toolbar-dropdownbutton kendoSpreadsheetVerticalTextAlign></kendo-toolbar-dropdownbutton>
|
|
466
507
|
<kendo-toolbar-button kendoSpreadsheetTextWrap></kendo-toolbar-button>
|
|
467
508
|
<kendo-toolbar-separator></kendo-toolbar-separator>
|
|
468
509
|
<kendo-toolbar-dropdownbutton kendoSpreadsheetFormat></kendo-toolbar-dropdownbutton>
|
|
@@ -471,6 +512,8 @@ SpreadsheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
471
512
|
[attr.aria-label]="messageFor('insert')"
|
|
472
513
|
class="k-spreadsheet-toolbar"
|
|
473
514
|
[overflow]="overflow">
|
|
515
|
+
<kendo-toolbar-button kendoSpreadsheetInsertLink></kendo-toolbar-button>
|
|
516
|
+
<kendo-toolbar-separator></kendo-toolbar-separator>
|
|
474
517
|
<kendo-toolbar-button kendoSpreadsheetAddColumnLeftButton></kendo-toolbar-button>
|
|
475
518
|
<kendo-toolbar-button kendoSpreadsheetAddColumnRightButton></kendo-toolbar-button>
|
|
476
519
|
<kendo-toolbar-button kendoSpreadsheetAddRowBelowButton></kendo-toolbar-button>
|
|
@@ -479,6 +522,13 @@ SpreadsheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
479
522
|
<kendo-toolbar-button kendoSpreadsheetDeleteColumnButton></kendo-toolbar-button>
|
|
480
523
|
<kendo-toolbar-button kendoSpreadsheetDeleteRowButton></kendo-toolbar-button>
|
|
481
524
|
</kendo-toolbar>
|
|
525
|
+
<kendo-toolbar *ngIf="selectedMenuItem?.active && selectedMenuItem.id === 'format'"
|
|
526
|
+
[attr.aria-label]="messageFor('formatTab')"
|
|
527
|
+
class="k-spreadsheet-toolbar"
|
|
528
|
+
[overflow]="overflow">
|
|
529
|
+
<kendo-toolbar-button kendoSpreadsheetDecreaseDecimal></kendo-toolbar-button>
|
|
530
|
+
<kendo-toolbar-button kendoSpreadsheetIncreaseDecimal></kendo-toolbar-button>
|
|
531
|
+
</kendo-toolbar>
|
|
482
532
|
<kendo-toolbar *ngIf="selectedMenuItem?.active && selectedMenuItem.id === 'view'"
|
|
483
533
|
[attr.aria-label]="messageFor('view')"
|
|
484
534
|
class="k-spreadsheet-toolbar"
|
|
@@ -516,7 +566,7 @@ SpreadsheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
516
566
|
<ng-container #dialogContainer></ng-container>
|
|
517
567
|
|
|
518
568
|
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
|
519
|
-
`, isInline: true, components: [{ type: i5.MenuComponent, selector: "kendo-menu", inputs: ["menuItemTemplate", "ariaRole", "menuItemLinkTemplate"], outputs: ["select", "open", "close"], exportAs: ["kendoMenu"] }, { type: i5.MenuItemComponent, selector: "kendo-menu-item", inputs: ["text", "url", "disabled", "cssClass", "cssStyle", "icon", "svgIcon", "data", "separator"] }, { type: i6.ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "tabindex", "size", "tabIndex"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { type: i7.SpreadsheetLoadFileComponent, selector: "kendo-spreadsheet-load-file-tool" }, { type: i6.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"] }, { type: i6.ToolBarButtonGroupComponent, selector: "kendo-toolbar-buttongroup", inputs: ["disabled", "selection", "width", "look"], exportAs: ["kendoToolBarButtonGroup"] }, { type: i6.ToolBarSeparatorComponent, selector: "kendo-toolbar-separator", exportAs: ["kendoToolBarSeparator"] }, { type: i8.SpreadsheetFontFamilyComponent, selector: "kendo-toolbar-dropdownlist[kendoSpreadsheetFontFamily]" }, { type: i9.SpreadsheetFontSizeComponent, selector: "kendo-toolbar-dropdownlist[kendoSpreadsheetFontSize]" }, { type: i10.SpreadsheetForeColorComponent, selector: "kendo-spreadsheet-forecolor-tool" }, { type: i11.SpreadsheetBackColorComponent, selector: "kendo-spreadsheet-backcolor-tool" }, { type: i6.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"] }, { type: i12.NameBoxComponent, selector: "[kendoSpreadsheetNameBox]", inputs: ["data", "spreadsheetWidget"] }, { type: i13.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { type: i14.SheetsBarComponent, selector: "[kendoSpreadsheetSheetsBar]", inputs: ["sheets", "sheetDescriptors"] }, { type: i15.WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }], directives: [{ type: i16.LocalizedMessagesDirective, selector: "[kendoSpreadsheetLocalizedMessages]" }, { type: i17.MainMenuDirective, selector: "[kendoSpreadsheetMenu]" }, { type: i18.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i18.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i19.SpreadsheetSaveFileDirective, selector: "[kendoSpreadsheetSaveFile]" }, { type: i20.SpreadsheetUndoDirective, selector: "kendo-toolbar-button[kendoSpreadsheetUndo]" }, { type: i21.SpreadsheetRedoDirective, selector: "kendo-toolbar-button[kendoSpreadsheetRedo]" }, { type: i22.SpreadsheetBoldDirective, selector: "kendo-toolbar-button[kendoSpreadsheetBold]" }, { type:
|
|
569
|
+
`, isInline: true, components: [{ type: i5.MenuComponent, selector: "kendo-menu", inputs: ["menuItemTemplate", "ariaRole", "menuItemLinkTemplate"], outputs: ["select", "open", "close"], exportAs: ["kendoMenu"] }, { type: i5.MenuItemComponent, selector: "kendo-menu-item", inputs: ["text", "url", "disabled", "cssClass", "cssStyle", "icon", "svgIcon", "data", "separator"] }, { type: i6.ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "tabindex", "size", "tabIndex"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { type: i7.SpreadsheetLoadFileComponent, selector: "kendo-spreadsheet-load-file-tool" }, { type: i6.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"] }, { type: i6.ToolBarButtonGroupComponent, selector: "kendo-toolbar-buttongroup", inputs: ["disabled", "selection", "width", "look"], exportAs: ["kendoToolBarButtonGroup"] }, { type: i6.ToolBarSeparatorComponent, selector: "kendo-toolbar-separator", exportAs: ["kendoToolBarSeparator"] }, { type: i8.SpreadsheetFontFamilyComponent, selector: "kendo-toolbar-dropdownlist[kendoSpreadsheetFontFamily]" }, { type: i9.SpreadsheetFontSizeComponent, selector: "kendo-toolbar-dropdownlist[kendoSpreadsheetFontSize]" }, { type: i10.SpreadsheetForeColorComponent, selector: "kendo-spreadsheet-forecolor-tool" }, { type: i11.SpreadsheetBackColorComponent, selector: "kendo-spreadsheet-backcolor-tool" }, { type: i6.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"] }, { type: i12.NameBoxComponent, selector: "[kendoSpreadsheetNameBox]", inputs: ["data", "spreadsheetWidget"] }, { type: i13.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { type: i14.SheetsBarComponent, selector: "[kendoSpreadsheetSheetsBar]", inputs: ["sheets", "sheetDescriptors"] }, { type: i15.WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }], directives: [{ type: i16.LocalizedMessagesDirective, selector: "[kendoSpreadsheetLocalizedMessages]" }, { type: i17.MainMenuDirective, selector: "[kendoSpreadsheetMenu]" }, { type: i18.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i18.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i19.SpreadsheetSaveFileDirective, selector: "[kendoSpreadsheetSaveFile]" }, { type: i20.SpreadsheetUndoDirective, selector: "kendo-toolbar-button[kendoSpreadsheetUndo]" }, { type: i21.SpreadsheetRedoDirective, selector: "kendo-toolbar-button[kendoSpreadsheetRedo]" }, { type: i22.SpreadsheetIncreaseFontSizeDirective, selector: "kendo-toolbar-button[kendoSpreadsheetIncreaseFontSize]" }, { type: i23.SpreadsheetDecreaseFontSizeDirective, selector: "kendo-toolbar-button[kendoSpreadsheetDecreaseFontSize]" }, { type: i24.SpreadsheetBoldDirective, selector: "kendo-toolbar-button[kendoSpreadsheetBold]" }, { type: i25.SpreadsheetItalicDirective, selector: "kendo-toolbar-button[kendoSpreadsheetItalic]" }, { type: i26.SpreadsheetUnderlineDirective, selector: "kendo-toolbar-button[kendoSpreadsheetUnderline]" }, { type: i27.SpreadsheetHorizontalTextAlignDirective, selector: "[kendoSpreadsheetHorizontalTextAlign]" }, { type: i28.SpreadsheetVerticalTextAlignDirective, selector: "[kendoSpreadsheetVerticalTextAlign]" }, { type: i29.SpreadsheetTextWrapDirective, selector: "kendo-toolbar-button[kendoSpreadsheetTextWrap]" }, { type: i30.SpreadsheetFormatDirective, selector: "[kendoSpreadsheetFormat]" }, { type: i31.SpreadsheetInsertLinkDirective, selector: "kendo-toolbar-button[kendoSpreadsheetInsertLink]" }, { type: i32.SpreadsheetAddColumnLeftButtonDirective, selector: "kendo-toolbar-button[kendoSpreadsheetAddColumnLeftButton]" }, { type: i33.SpreadsheetAddColumnRightButtonDirective, selector: "kendo-toolbar-button[kendoSpreadsheetAddColumnRightButton]" }, { type: i34.SpreadsheetAddRowBelowButtonDirective, selector: "kendo-toolbar-button[kendoSpreadsheetAddRowBelowButton]" }, { type: i35.SpreadsheetAddRowAboveButtonDirective, selector: "kendo-toolbar-button[kendoSpreadsheetAddRowAboveButton]" }, { type: i36.SpreadsheetDeleteColumnButtonDirective, selector: "kendo-toolbar-button[kendoSpreadsheetDeleteColumnButton]" }, { type: i37.SpreadsheetDeleteRowButtonDirective, selector: "kendo-toolbar-button[kendoSpreadsheetDeleteRowButton]" }, { type: i38.SpreadsheetDecreaseDecimalDirective, selector: "kendo-toolbar-button[kendoSpreadsheetDecreaseDecimal]" }, { type: i39.SpreadsheetIncreaseDecimalDirective, selector: "kendo-toolbar-button[kendoSpreadsheetIncreaseDecimal]" }, { type: i40.SpreadsheetMergeDirective, selector: "[kendoSpreadsheetMerge]" }, { type: i41.SpreadsheetGridLinesDirective, selector: "kendo-toolbar-button[kendoSpreadsheetGridLines]" }, { type: i42.FormulaInputDirective, selector: "[kendoSpreadsheetFormulaInput]" }] });
|
|
520
570
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SpreadsheetComponent, decorators: [{
|
|
521
571
|
type: Component,
|
|
522
572
|
args: [{
|
|
@@ -564,6 +614,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
564
614
|
file="File"
|
|
565
615
|
i18n-insert="kendo.spreadsheet.insert|The text of the Insert toolbar tab."
|
|
566
616
|
insert="Insert"
|
|
617
|
+
i18n-formatTab="kendo.spreadsheet.formatTab|The text of the Format toolbar tab."
|
|
618
|
+
formatTab="Format"
|
|
567
619
|
i18n-view="kendo.spreadsheet.view|The text of the View toolbar tab."
|
|
568
620
|
view="View"
|
|
569
621
|
i18n-undo="kendo.spreadsheet.undo|The title of the Undo tool."
|
|
@@ -588,8 +640,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
588
640
|
wrap="Text wrap"
|
|
589
641
|
i18n-align="kendo.spreadsheet.align|The title of the Text Align tool."
|
|
590
642
|
align="Align"
|
|
643
|
+
i18n-alignHorizontal="kendo.spreadsheet.alignHorizontal|The title of the Text Align Horizontal tool."
|
|
644
|
+
alignHorizontal="Align horizontally"
|
|
645
|
+
i18n-alignVertical="kendo.spreadsheet.alignVertical|The title of the Text Align Vertical tool."
|
|
646
|
+
alignVertical="Align vertically"
|
|
591
647
|
i18n-merge="kendo.spreadsheet.merge|The title of the Cells Merge tool."
|
|
592
648
|
merge="Merge"
|
|
649
|
+
i18n-insertLink="kendo.spreadsheet.insertLink|The title of the tool that inserts a link."
|
|
650
|
+
insertLink="Insert link"
|
|
651
|
+
i18n-decreaseDecimal="kendo.spreadsheet.decreaseDecimal|The title of the tool that decreases decimals."
|
|
652
|
+
decreaseDecimal="Decrease decimal"
|
|
653
|
+
i18n-increaseDecimal="kendo.spreadsheet.increaseDecimal|The title of the tool that increases decimals."
|
|
654
|
+
increaseDecimal="Increase decimal"
|
|
655
|
+
i18n-increaseFontSize="kendo.spreadsheet.increaseFontSize|The title of the tool that increases the cell font size."
|
|
656
|
+
increaseFontSize="Increase font size"
|
|
657
|
+
i18n-decreaseFontSize="kendo.spreadsheet.decreaseFontSize|The title of the tool that decreases the cell font size."
|
|
658
|
+
decreaseFontSize="Decrease font size"
|
|
593
659
|
i18n-dialogApply="kendo.spreadsheet.dialogApply|The text of the **Apply** button in all Spreadsheet dialogs."
|
|
594
660
|
dialogApply="Apply"
|
|
595
661
|
i18n-dialogCancel="kendo.spreadsheet.dialogCancel|The text of the **Cancel** button in all Spreadsheet dialogs."
|
|
@@ -598,6 +664,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
598
664
|
dialogDelete="Delete"
|
|
599
665
|
i18n-dialogRename="kendo.spreadsheet.dialogRename|The text of the **Rename** button in the Rename sheet dialog."
|
|
600
666
|
dialogRename="Rename"
|
|
667
|
+
i18n-dialogInsert="kendo.spreadsheet.dialogInsert|The text of the **Insert** button in all Spreadsheet dialogs."
|
|
668
|
+
dialogInsert="Insert"
|
|
669
|
+
i18n-dialogRemoveLink="kendo.spreadsheet.dialogRemoveLink|The text of the **Remove link** button in the Link tool dialog."
|
|
670
|
+
dialogRemoveLink="Remove link"
|
|
601
671
|
i18n-rename="kendo.spreadsheet.rename|The title of the Rename sheet dialog."
|
|
602
672
|
rename="Rename Sheet"
|
|
603
673
|
i18n-delete="kendo.spreadsheet.delete|The title of the Delete sheet dialog."
|
|
@@ -631,6 +701,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
631
701
|
<kendo-toolbar-separator></kendo-toolbar-separator>
|
|
632
702
|
<kendo-toolbar-dropdownlist kendoSpreadsheetFontFamily></kendo-toolbar-dropdownlist>
|
|
633
703
|
<kendo-toolbar-dropdownlist kendoSpreadsheetFontSize></kendo-toolbar-dropdownlist>
|
|
704
|
+
<kendo-toolbar-button kendoSpreadsheetIncreaseFontSize></kendo-toolbar-button>
|
|
705
|
+
<kendo-toolbar-button kendoSpreadsheetDecreaseFontSize></kendo-toolbar-button>
|
|
706
|
+
<kendo-toolbar-separator></kendo-toolbar-separator>
|
|
634
707
|
<kendo-toolbar-buttongroup>
|
|
635
708
|
<kendo-toolbar-button kendoSpreadsheetBold></kendo-toolbar-button>
|
|
636
709
|
<kendo-toolbar-button kendoSpreadsheetItalic></kendo-toolbar-button>
|
|
@@ -640,7 +713,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
640
713
|
<kendo-toolbar-separator></kendo-toolbar-separator>
|
|
641
714
|
<kendo-spreadsheet-backcolor-tool></kendo-spreadsheet-backcolor-tool>
|
|
642
715
|
<kendo-toolbar-separator></kendo-toolbar-separator>
|
|
643
|
-
<kendo-toolbar-dropdownbutton
|
|
716
|
+
<kendo-toolbar-dropdownbutton kendoSpreadsheetHorizontalTextAlign></kendo-toolbar-dropdownbutton>
|
|
717
|
+
<kendo-toolbar-dropdownbutton kendoSpreadsheetVerticalTextAlign></kendo-toolbar-dropdownbutton>
|
|
644
718
|
<kendo-toolbar-button kendoSpreadsheetTextWrap></kendo-toolbar-button>
|
|
645
719
|
<kendo-toolbar-separator></kendo-toolbar-separator>
|
|
646
720
|
<kendo-toolbar-dropdownbutton kendoSpreadsheetFormat></kendo-toolbar-dropdownbutton>
|
|
@@ -649,6 +723,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
649
723
|
[attr.aria-label]="messageFor('insert')"
|
|
650
724
|
class="k-spreadsheet-toolbar"
|
|
651
725
|
[overflow]="overflow">
|
|
726
|
+
<kendo-toolbar-button kendoSpreadsheetInsertLink></kendo-toolbar-button>
|
|
727
|
+
<kendo-toolbar-separator></kendo-toolbar-separator>
|
|
652
728
|
<kendo-toolbar-button kendoSpreadsheetAddColumnLeftButton></kendo-toolbar-button>
|
|
653
729
|
<kendo-toolbar-button kendoSpreadsheetAddColumnRightButton></kendo-toolbar-button>
|
|
654
730
|
<kendo-toolbar-button kendoSpreadsheetAddRowBelowButton></kendo-toolbar-button>
|
|
@@ -657,6 +733,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
657
733
|
<kendo-toolbar-button kendoSpreadsheetDeleteColumnButton></kendo-toolbar-button>
|
|
658
734
|
<kendo-toolbar-button kendoSpreadsheetDeleteRowButton></kendo-toolbar-button>
|
|
659
735
|
</kendo-toolbar>
|
|
736
|
+
<kendo-toolbar *ngIf="selectedMenuItem?.active && selectedMenuItem.id === 'format'"
|
|
737
|
+
[attr.aria-label]="messageFor('formatTab')"
|
|
738
|
+
class="k-spreadsheet-toolbar"
|
|
739
|
+
[overflow]="overflow">
|
|
740
|
+
<kendo-toolbar-button kendoSpreadsheetDecreaseDecimal></kendo-toolbar-button>
|
|
741
|
+
<kendo-toolbar-button kendoSpreadsheetIncreaseDecimal></kendo-toolbar-button>
|
|
742
|
+
</kendo-toolbar>
|
|
660
743
|
<kendo-toolbar *ngIf="selectedMenuItem?.active && selectedMenuItem.id === 'view'"
|
|
661
744
|
[attr.aria-label]="messageFor('view')"
|
|
662
745
|
class="k-spreadsheet-toolbar"
|
|
@@ -2,20 +2,20 @@
|
|
|
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 { LabelModule } from '@progress/kendo-angular-label';
|
|
6
|
-
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
7
|
-
import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
8
|
-
import { IntlModule } from '@progress/kendo-angular-intl';
|
|
9
5
|
import { NgModule } from '@angular/core';
|
|
10
6
|
import { CommonModule } from '@angular/common';
|
|
11
|
-
import { SpreadsheetComponent } from './spreadsheet.component';
|
|
12
7
|
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
13
8
|
import { TabStripModule } from '@progress/kendo-angular-layout';
|
|
14
9
|
import { EventsModule, WatermarkModule } from '@progress/kendo-angular-common';
|
|
15
10
|
import { FormulaListComponent } from './action-bar/list.component';
|
|
16
11
|
import { FormulaInputDirective } from './action-bar/formula-input.directive';
|
|
17
12
|
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
13
|
+
import { LabelModule } from '@progress/kendo-angular-label';
|
|
14
|
+
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
15
|
+
import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
16
|
+
import { IntlModule } from '@progress/kendo-angular-intl';
|
|
18
17
|
import { ComboBoxModule, DropDownListModule } from '@progress/kendo-angular-dropdowns';
|
|
18
|
+
import { SpreadsheetComponent } from './spreadsheet.component';
|
|
19
19
|
import { NameBoxComponent } from './action-bar/namebox.component';
|
|
20
20
|
import { SheetsBarComponent } from './sheets-bar/sheets-bar.component';
|
|
21
21
|
import { ToolBarModule } from '@progress/kendo-angular-toolbar';
|
|
@@ -41,7 +41,7 @@ import { SpreadsheetAddRowAboveButtonDirective } from './tools/tables/add-row-ab
|
|
|
41
41
|
import { SpreadsheetAddRowBelowButtonDirective } from './tools/tables/add-row-below-button.directive';
|
|
42
42
|
import { SpreadsheetDeleteColumnButtonDirective } from './tools/tables/delete-column-button.directive';
|
|
43
43
|
import { SpreadsheetDeleteRowButtonDirective } from './tools/tables/delete-row-button.directive';
|
|
44
|
-
import { SpreadsheetTextAlignDirective } from './tools/align-tool.directive';
|
|
44
|
+
import { SpreadsheetTextAlignDirective } from './tools/align/align-tool.directive';
|
|
45
45
|
import { SpreadsheetTextWrapDirective } from './tools/text-wrap-tool.directive';
|
|
46
46
|
import { DialogModule } from '@progress/kendo-angular-dialog';
|
|
47
47
|
import { FontFamilyDropDownListComponent } from './tools/font-family/font-family-dropdownlist.component';
|
|
@@ -51,6 +51,14 @@ import { MenuModule } from '@progress/kendo-angular-menu';
|
|
|
51
51
|
import { MainMenuDirective } from './common/main-menu.directive';
|
|
52
52
|
import { ActionDialogComponent } from './sheets-bar/action-dialog.component';
|
|
53
53
|
import { SpreadsheetMergeDirective } from './tools/tables/merge-tool.directive';
|
|
54
|
+
import { SpreadsheetInsertLinkDirective } from './tools/insert/insert-link-tool.directive';
|
|
55
|
+
import { InsertLinkDialogComponent } from './tools/insert/insert-link-dialog.component';
|
|
56
|
+
import { SpreadsheetIncreaseFontSizeDirective } from './tools/font-size/increase-font-tool.directive';
|
|
57
|
+
import { SpreadsheetDecreaseFontSizeDirective } from './tools/font-size/decrease-font-tool.directive';
|
|
58
|
+
import { SpreadsheetIncreaseDecimalDirective } from './tools/increase-decimal-tool.directive';
|
|
59
|
+
import { SpreadsheetDecreaseDecimalDirective } from './tools/decrease-decimal-tool.directive';
|
|
60
|
+
import { SpreadsheetHorizontalTextAlignDirective } from './tools/align/horizontal-align-tool.directive';
|
|
61
|
+
import { SpreadsheetVerticalTextAlignDirective } from './tools/align/vertical-align-tool.directive';
|
|
54
62
|
import * as i0 from "@angular/core";
|
|
55
63
|
const DIRECTIVES = [
|
|
56
64
|
SpreadsheetComponent,
|
|
@@ -87,7 +95,15 @@ const DIRECTIVES = [
|
|
|
87
95
|
DialogContentComponent,
|
|
88
96
|
MainMenuDirective,
|
|
89
97
|
ActionDialogComponent,
|
|
90
|
-
SpreadsheetMergeDirective
|
|
98
|
+
SpreadsheetMergeDirective,
|
|
99
|
+
SpreadsheetInsertLinkDirective,
|
|
100
|
+
InsertLinkDialogComponent,
|
|
101
|
+
SpreadsheetIncreaseFontSizeDirective,
|
|
102
|
+
SpreadsheetDecreaseFontSizeDirective,
|
|
103
|
+
SpreadsheetIncreaseDecimalDirective,
|
|
104
|
+
SpreadsheetDecreaseDecimalDirective,
|
|
105
|
+
SpreadsheetHorizontalTextAlignDirective,
|
|
106
|
+
SpreadsheetVerticalTextAlignDirective
|
|
91
107
|
];
|
|
92
108
|
const EXPORTS = [
|
|
93
109
|
SpreadsheetComponent,
|
|
@@ -113,7 +129,14 @@ const EXPORTS = [
|
|
|
113
129
|
SpreadsheetDeleteRowButtonDirective,
|
|
114
130
|
SpreadsheetTextAlignDirective,
|
|
115
131
|
SpreadsheetTextWrapDirective,
|
|
116
|
-
SpreadsheetMergeDirective
|
|
132
|
+
SpreadsheetMergeDirective,
|
|
133
|
+
SpreadsheetInsertLinkDirective,
|
|
134
|
+
SpreadsheetIncreaseFontSizeDirective,
|
|
135
|
+
SpreadsheetDecreaseFontSizeDirective,
|
|
136
|
+
SpreadsheetIncreaseDecimalDirective,
|
|
137
|
+
SpreadsheetDecreaseDecimalDirective,
|
|
138
|
+
SpreadsheetHorizontalTextAlignDirective,
|
|
139
|
+
SpreadsheetVerticalTextAlignDirective
|
|
117
140
|
];
|
|
118
141
|
/**
|
|
119
142
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
@@ -156,7 +179,15 @@ SpreadsheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versi
|
|
|
156
179
|
DialogContentComponent,
|
|
157
180
|
MainMenuDirective,
|
|
158
181
|
ActionDialogComponent,
|
|
159
|
-
SpreadsheetMergeDirective
|
|
182
|
+
SpreadsheetMergeDirective,
|
|
183
|
+
SpreadsheetInsertLinkDirective,
|
|
184
|
+
InsertLinkDialogComponent,
|
|
185
|
+
SpreadsheetIncreaseFontSizeDirective,
|
|
186
|
+
SpreadsheetDecreaseFontSizeDirective,
|
|
187
|
+
SpreadsheetIncreaseDecimalDirective,
|
|
188
|
+
SpreadsheetDecreaseDecimalDirective,
|
|
189
|
+
SpreadsheetHorizontalTextAlignDirective,
|
|
190
|
+
SpreadsheetVerticalTextAlignDirective], imports: [CommonModule,
|
|
160
191
|
ButtonsModule,
|
|
161
192
|
ComboBoxModule,
|
|
162
193
|
DropDownListModule,
|
|
@@ -193,7 +224,14 @@ SpreadsheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versi
|
|
|
193
224
|
SpreadsheetDeleteRowButtonDirective,
|
|
194
225
|
SpreadsheetTextAlignDirective,
|
|
195
226
|
SpreadsheetTextWrapDirective,
|
|
196
|
-
SpreadsheetMergeDirective
|
|
227
|
+
SpreadsheetMergeDirective,
|
|
228
|
+
SpreadsheetInsertLinkDirective,
|
|
229
|
+
SpreadsheetIncreaseFontSizeDirective,
|
|
230
|
+
SpreadsheetDecreaseFontSizeDirective,
|
|
231
|
+
SpreadsheetIncreaseDecimalDirective,
|
|
232
|
+
SpreadsheetDecreaseDecimalDirective,
|
|
233
|
+
SpreadsheetHorizontalTextAlignDirective,
|
|
234
|
+
SpreadsheetVerticalTextAlignDirective] });
|
|
197
235
|
SpreadsheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SpreadsheetModule, imports: [[
|
|
198
236
|
CommonModule,
|
|
199
237
|
ButtonsModule,
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Directive } from '@angular/core';
|
|
6
|
-
import { SpreadsheetLocalizationService } from '
|
|
7
|
-
import { SpreadsheetService } from '
|
|
8
|
-
import { commandIcons, commandSVGIcons } from '
|
|
9
|
-
import { ALIGNS } from '
|
|
6
|
+
import { SpreadsheetLocalizationService } from '../../localization/spreadsheet-localization.service';
|
|
7
|
+
import { SpreadsheetService } from '../../common/spreadsheet.service';
|
|
8
|
+
import { commandIcons, commandSVGIcons } from '../shared/command-icons';
|
|
9
|
+
import { ALIGNS } from '../shared/constants';
|
|
10
10
|
import { ToolBarDropDownButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
11
11
|
import { Subscription } from 'rxjs';
|
|
12
|
-
import { SpreadsheetToolsService } from '
|
|
12
|
+
import { SpreadsheetToolsService } from '../tools.service';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
import * as i1 from "@progress/kendo-angular-toolbar";
|
|
15
|
-
import * as i2 from "
|
|
16
|
-
import * as i3 from "
|
|
17
|
-
import * as i4 from "
|
|
15
|
+
import * as i2 from "../../localization/spreadsheet-localization.service";
|
|
16
|
+
import * as i3 from "../../common/spreadsheet.service";
|
|
17
|
+
import * as i4 from "../tools.service";
|
|
18
18
|
/**
|
|
19
19
|
* @hidden
|
|
20
20
|
*/
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { Directive } from '@angular/core';
|
|
6
|
+
import { SpreadsheetLocalizationService } from '../../localization/spreadsheet-localization.service';
|
|
7
|
+
import { SpreadsheetService } from '../../common/spreadsheet.service';
|
|
8
|
+
import { commandIcons, commandSVGIcons } from '../shared/command-icons';
|
|
9
|
+
import { ALIGNS } from '../shared/constants';
|
|
10
|
+
import { ToolBarDropDownButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
11
|
+
import { Subscription } from 'rxjs';
|
|
12
|
+
import { SpreadsheetToolsService } from '../tools.service';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
import * as i1 from "@progress/kendo-angular-toolbar";
|
|
15
|
+
import * as i2 from "../../localization/spreadsheet-localization.service";
|
|
16
|
+
import * as i3 from "../../common/spreadsheet.service";
|
|
17
|
+
import * as i4 from "../tools.service";
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export class SpreadsheetHorizontalTextAlignDirective {
|
|
22
|
+
constructor(host, localization, spreadsheetService, toolsService) {
|
|
23
|
+
this.host = host;
|
|
24
|
+
this.spreadsheetService = spreadsheetService;
|
|
25
|
+
this.toolsService = toolsService;
|
|
26
|
+
this.commandName = 'alignHorizontal';
|
|
27
|
+
this.subs = new Subscription();
|
|
28
|
+
host.svgIcon = commandSVGIcons[this.commandName];
|
|
29
|
+
host.icon = commandIcons[this.commandName];
|
|
30
|
+
host.arrowIcon = true;
|
|
31
|
+
host.fillMode = 'flat';
|
|
32
|
+
host.data = ALIGNS.filter(value => value.commandName === 'textAlign');
|
|
33
|
+
this.subs.add(host.itemClick.subscribe((e) => this.onItemClick(e)));
|
|
34
|
+
host.title = localization.get(this.commandName);
|
|
35
|
+
host.textField = 'textKey';
|
|
36
|
+
}
|
|
37
|
+
ngOnInit() {
|
|
38
|
+
this.subs.add(this.toolsService.stateChange.subscribe(state => this.host.data.forEach(i => i.cssClass = i.value === state[i.commandName] ? 'k-selected' : '')));
|
|
39
|
+
}
|
|
40
|
+
ngOnDestroy() {
|
|
41
|
+
this.subs.unsubscribe();
|
|
42
|
+
}
|
|
43
|
+
onItemClick(item) {
|
|
44
|
+
const value = item.value || null;
|
|
45
|
+
const options = {
|
|
46
|
+
command: 'PropertyChangeCommand', options: { property: item.commandName, value }
|
|
47
|
+
};
|
|
48
|
+
this.spreadsheetService.spreadsheet.executeCommand(options);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
SpreadsheetHorizontalTextAlignDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SpreadsheetHorizontalTextAlignDirective, deps: [{ token: i1.ToolBarDropDownButtonComponent }, { token: i2.SpreadsheetLocalizationService }, { token: i3.SpreadsheetService }, { token: i4.SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
52
|
+
SpreadsheetHorizontalTextAlignDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: SpreadsheetHorizontalTextAlignDirective, selector: "[kendoSpreadsheetHorizontalTextAlign]", ngImport: i0 });
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SpreadsheetHorizontalTextAlignDirective, decorators: [{
|
|
54
|
+
type: Directive,
|
|
55
|
+
args: [{
|
|
56
|
+
selector: '[kendoSpreadsheetHorizontalTextAlign]',
|
|
57
|
+
}]
|
|
58
|
+
}], ctorParameters: function () { return [{ type: i1.ToolBarDropDownButtonComponent }, { type: i2.SpreadsheetLocalizationService }, { type: i3.SpreadsheetService }, { type: i4.SpreadsheetToolsService }]; } });
|