@progress/kendo-angular-spreadsheet 13.6.0-develop.6
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/LICENSE.md +11 -0
- package/NOTICE.txt +654 -0
- package/README.md +32 -0
- package/action-bar/formula-input.directive.d.ts +33 -0
- package/action-bar/list.component.d.ts +23 -0
- package/action-bar/namebox.component.d.ts +30 -0
- package/common/main-menu.directive.d.ts +17 -0
- package/common/sheet-changes.d.ts +23 -0
- package/common/spreadsheet.service.d.ts +28 -0
- package/esm2020/action-bar/formula-input.directive.mjs +142 -0
- package/esm2020/action-bar/list.component.mjs +75 -0
- package/esm2020/action-bar/namebox.component.mjs +110 -0
- package/esm2020/common/main-menu.directive.mjs +25 -0
- package/esm2020/common/sheet-changes.mjs +5 -0
- package/esm2020/common/spreadsheet.service.mjs +42 -0
- package/esm2020/index.mjs +12 -0
- package/esm2020/localization/custom-messages.component.mjs +42 -0
- package/esm2020/localization/localized-messages.directive.mjs +33 -0
- package/esm2020/localization/messages.mjs +80 -0
- package/esm2020/localization/spreadsheet-localization.service.mjs +31 -0
- package/esm2020/models/events.mjs +5 -0
- package/esm2020/models/index.mjs +7 -0
- package/esm2020/models/main-menu-item.mjs +5 -0
- package/esm2020/models/sheet-info.mjs +5 -0
- package/esm2020/package-metadata.mjs +15 -0
- package/esm2020/progress-kendo-angular-spreadsheet.mjs +8 -0
- package/esm2020/sheets-bar/action-dialog.component.mjs +68 -0
- package/esm2020/sheets-bar/remove.directive.mjs +25 -0
- package/esm2020/sheets-bar/sheets-bar.component.mjs +278 -0
- package/esm2020/sheets-bar/utils.mjs +45 -0
- package/esm2020/spreadsheet.component.mjs +725 -0
- package/esm2020/spreadsheet.module.mjs +235 -0
- package/esm2020/tools/align-tool.directive.mjs +58 -0
- package/esm2020/tools/colorpicker/spreadsheet-backcolor.component.mjs +98 -0
- package/esm2020/tools/colorpicker/spreadsheet-forecolor.component.mjs +98 -0
- package/esm2020/tools/font-family/font-family-dropdownlist.component.mjs +57 -0
- package/esm2020/tools/font-family/spreadsheet-fontfamily-tool.component.mjs +92 -0
- package/esm2020/tools/font-size/font-size-dropdownlist.component.mjs +42 -0
- package/esm2020/tools/font-size/spreadsheet-fontsize-tool.component.mjs +92 -0
- package/esm2020/tools/format-tool.directive.mjs +61 -0
- package/esm2020/tools/gridlines-tool.directive.mjs +46 -0
- package/esm2020/tools/history/redo-tool.mjs +36 -0
- package/esm2020/tools/history/undo-tool.mjs +36 -0
- package/esm2020/tools/index.mjs +20 -0
- package/esm2020/tools/load-file.component.mjs +186 -0
- package/esm2020/tools/save-file-tool.directive.mjs +52 -0
- package/esm2020/tools/shared/command-icons.mjs +71 -0
- package/esm2020/tools/shared/commands.mjs +5 -0
- package/esm2020/tools/shared/constants.mjs +61 -0
- package/esm2020/tools/shared/dialog-content.component.mjs +114 -0
- package/esm2020/tools/shared/spreadsheet-command-base.mjs +75 -0
- package/esm2020/tools/shared/spreadsheet-command-button.mjs +25 -0
- package/esm2020/tools/shared/spreadsheet-dropdown-tools-base.mjs +184 -0
- package/esm2020/tools/shared/spreadsheet-dropdownlist.base.mjs +50 -0
- package/esm2020/tools/tables/add-column-left-button.directive.mjs +36 -0
- package/esm2020/tools/tables/add-column-right-button.directive.mjs +36 -0
- package/esm2020/tools/tables/add-row-above-button.directive.mjs +36 -0
- package/esm2020/tools/tables/add-row-below-button.directive.mjs +36 -0
- package/esm2020/tools/tables/delete-column-button.directive.mjs +34 -0
- package/esm2020/tools/tables/delete-row-button.directive.mjs +34 -0
- package/esm2020/tools/tables/index.mjs +10 -0
- package/esm2020/tools/text-wrap-tool.directive.mjs +47 -0
- package/esm2020/tools/tools.service.mjs +60 -0
- package/esm2020/tools/typographical-emphasis/bold-tool.directive.mjs +36 -0
- package/esm2020/tools/typographical-emphasis/italic-tool.directive.mjs +36 -0
- package/esm2020/tools/typographical-emphasis/underline-tool.directive.mjs +36 -0
- package/esm2020/tools/utils.mjs +13 -0
- package/esm2020/utils.mjs +25 -0
- package/fesm2015/progress-kendo-angular-spreadsheet.mjs +3372 -0
- package/fesm2020/progress-kendo-angular-spreadsheet.mjs +3382 -0
- package/index.d.ts +13 -0
- package/localization/custom-messages.component.d.ts +18 -0
- package/localization/localized-messages.directive.d.ts +16 -0
- package/localization/messages.d.ts +133 -0
- package/localization/spreadsheet-localization.service.d.ts +14 -0
- package/models/events.d.ts +65 -0
- package/models/index.d.ts +7 -0
- package/models/main-menu-item.d.ts +19 -0
- package/models/sheet-info.d.ts +26 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +65 -0
- package/progress-kendo-angular-spreadsheet.d.ts +9 -0
- package/schematics/collection.json +12 -0
- package/schematics/ngAdd/index.js +13 -0
- package/schematics/ngAdd/schema.json +24 -0
- package/sheets-bar/action-dialog.component.d.ts +19 -0
- package/sheets-bar/remove.directive.d.ts +13 -0
- package/sheets-bar/sheets-bar.component.d.ts +53 -0
- package/sheets-bar/utils.d.ts +10 -0
- package/spreadsheet.component.d.ts +176 -0
- package/spreadsheet.module.d.ts +62 -0
- package/tools/align-tool.directive.d.ts +25 -0
- package/tools/colorpicker/spreadsheet-backcolor.component.d.ts +20 -0
- package/tools/colorpicker/spreadsheet-forecolor.component.d.ts +20 -0
- package/tools/font-family/font-family-dropdownlist.component.d.ts +13 -0
- package/tools/font-family/spreadsheet-fontfamily-tool.component.d.ts +24 -0
- package/tools/font-size/font-size-dropdownlist.component.d.ts +13 -0
- package/tools/font-size/spreadsheet-fontsize-tool.component.d.ts +24 -0
- package/tools/format-tool.directive.d.ts +36 -0
- package/tools/gridlines-tool.directive.d.ts +19 -0
- package/tools/history/redo-tool.d.ts +19 -0
- package/tools/history/undo-tool.d.ts +19 -0
- package/tools/index.d.ts +20 -0
- package/tools/load-file.component.d.ts +41 -0
- package/tools/save-file-tool.directive.d.ts +22 -0
- package/tools/shared/command-icons.d.ts +14 -0
- package/tools/shared/commands.d.ts +8 -0
- package/tools/shared/constants.d.ts +50 -0
- package/tools/shared/dialog-content.component.d.ts +21 -0
- package/tools/shared/spreadsheet-command-base.d.ts +29 -0
- package/tools/shared/spreadsheet-command-button.d.ts +23 -0
- package/tools/shared/spreadsheet-dropdown-tools-base.d.ts +76 -0
- package/tools/shared/spreadsheet-dropdownlist.base.d.ts +25 -0
- package/tools/tables/add-column-left-button.directive.d.ts +18 -0
- package/tools/tables/add-column-right-button.directive.d.ts +18 -0
- package/tools/tables/add-row-above-button.directive.d.ts +18 -0
- package/tools/tables/add-row-below-button.directive.d.ts +18 -0
- package/tools/tables/delete-column-button.directive.d.ts +18 -0
- package/tools/tables/delete-row-button.directive.d.ts +18 -0
- package/tools/tables/index.d.ts +10 -0
- package/tools/text-wrap-tool.directive.d.ts +19 -0
- package/tools/tools.service.d.ts +21 -0
- package/tools/typographical-emphasis/bold-tool.directive.d.ts +18 -0
- package/tools/typographical-emphasis/italic-tool.directive.d.ts +18 -0
- package/tools/typographical-emphasis/underline-tool.directive.d.ts +18 -0
- package/tools/utils.d.ts +8 -0
- package/utils.d.ts +9 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
export { SpreadsheetComponent } from './spreadsheet.component';
|
|
6
|
+
export { SpreadsheetModule } from './spreadsheet.module';
|
|
7
|
+
export { FormulaListComponent } from './action-bar/list.component';
|
|
8
|
+
export { FormulaInputDirective } from './action-bar/formula-input.directive';
|
|
9
|
+
export { NameBoxComponent } from './action-bar/namebox.component';
|
|
10
|
+
export { SheetsBarComponent } from './sheets-bar/sheets-bar.component';
|
|
11
|
+
export { SheetInfo, SpreadsheetMainMenuItem as ToolbarTab, SpreadsheetChangeEvent, SpreadsheetExcelExportEvent, SpreadsheetExcelImportEvent, SpreadsheetMainMenuItem } from './models';
|
|
12
|
+
export * from './tools';
|
|
13
|
+
export { CustomMessagesComponent } from './localization/custom-messages.component';
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { MessagesDirective } from './messages';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Custom component messages override default component messages
|
|
10
|
+
* ([see example]({% slug globalization_spreadsheet %}#toc-localization)).
|
|
11
|
+
*/
|
|
12
|
+
export declare class CustomMessagesComponent extends MessagesDirective {
|
|
13
|
+
protected service: LocalizationService;
|
|
14
|
+
constructor(service: LocalizationService);
|
|
15
|
+
protected get override(): boolean;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomMessagesComponent, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CustomMessagesComponent, "kendo-spreadsheet-messages", never, {}, {}, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { MessagesDirective } from './messages';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare class LocalizedMessagesDirective extends MessagesDirective {
|
|
12
|
+
protected service: LocalizationService;
|
|
13
|
+
constructor(service: LocalizationService);
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedMessagesDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedMessagesDirective, "[kendoSpreadsheetLocalizedMessages]", never, {}, {}, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
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 { ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export declare class MessagesDirective extends ComponentMessages {
|
|
11
|
+
/**
|
|
12
|
+
* The name of the "Home" toolbar tab
|
|
13
|
+
*/
|
|
14
|
+
home: string;
|
|
15
|
+
/**
|
|
16
|
+
* The name of the "File" toolbar tab
|
|
17
|
+
*/
|
|
18
|
+
file: string;
|
|
19
|
+
/**
|
|
20
|
+
* The name of the "Insert" toolbar tab
|
|
21
|
+
*/
|
|
22
|
+
insert: string;
|
|
23
|
+
/**
|
|
24
|
+
* The title of the Save File tool
|
|
25
|
+
*/
|
|
26
|
+
saveFile: string;
|
|
27
|
+
/**
|
|
28
|
+
* The title of the Load File tool
|
|
29
|
+
*/
|
|
30
|
+
loadFile: string;
|
|
31
|
+
/**
|
|
32
|
+
* The title of the Bold tool
|
|
33
|
+
*/
|
|
34
|
+
bold: string;
|
|
35
|
+
/**
|
|
36
|
+
* The title of the Italic tool
|
|
37
|
+
*/
|
|
38
|
+
italic: string;
|
|
39
|
+
/**
|
|
40
|
+
* The title of the Underline tool
|
|
41
|
+
*/
|
|
42
|
+
underline: string;
|
|
43
|
+
/**
|
|
44
|
+
* The title of the Format tool
|
|
45
|
+
*/
|
|
46
|
+
format: string;
|
|
47
|
+
/**
|
|
48
|
+
* The title of the Font Family tool
|
|
49
|
+
*/
|
|
50
|
+
fontFamily: string;
|
|
51
|
+
/**
|
|
52
|
+
* The title of the Font Size tool
|
|
53
|
+
*/
|
|
54
|
+
fontSize: string;
|
|
55
|
+
/**
|
|
56
|
+
* The title of the Undo tool
|
|
57
|
+
*/
|
|
58
|
+
undo: string;
|
|
59
|
+
/**
|
|
60
|
+
* The title of the Redo tool
|
|
61
|
+
*/
|
|
62
|
+
redo: string;
|
|
63
|
+
/**
|
|
64
|
+
* The title of the tool that changes the text background color
|
|
65
|
+
*/
|
|
66
|
+
background: string;
|
|
67
|
+
/**
|
|
68
|
+
* The title of the tool that changes the text font color
|
|
69
|
+
*/
|
|
70
|
+
color: string;
|
|
71
|
+
/**
|
|
72
|
+
* The title of the Grid Lines tool
|
|
73
|
+
*/
|
|
74
|
+
gridLines: string;
|
|
75
|
+
/**
|
|
76
|
+
* The title of the tool that adds new column before currently selected column
|
|
77
|
+
*/
|
|
78
|
+
addColumnLeft: string;
|
|
79
|
+
/**
|
|
80
|
+
* The title of the tool that adds new column after currently selected column
|
|
81
|
+
*/
|
|
82
|
+
addColumnRight: string;
|
|
83
|
+
/**
|
|
84
|
+
* The title of the tool that adds new row below currently selected row
|
|
85
|
+
*/
|
|
86
|
+
addRowBelow: string;
|
|
87
|
+
/**
|
|
88
|
+
* The title of the tool that adds new row above currently selected row
|
|
89
|
+
*/
|
|
90
|
+
addRowAbove: string;
|
|
91
|
+
/**
|
|
92
|
+
* The title of the tool that deletes a column
|
|
93
|
+
*/
|
|
94
|
+
deleteColumn: string;
|
|
95
|
+
/**
|
|
96
|
+
* The title of the tool that deletes a row
|
|
97
|
+
*/
|
|
98
|
+
deleteRow: string;
|
|
99
|
+
/**
|
|
100
|
+
* The title of the Text Wrap tool
|
|
101
|
+
*/
|
|
102
|
+
wrap: string;
|
|
103
|
+
/**
|
|
104
|
+
* The title of the Text Align tool
|
|
105
|
+
*/
|
|
106
|
+
align: string;
|
|
107
|
+
/**
|
|
108
|
+
* The text of the Apply button in all Spreadsheet dialogs
|
|
109
|
+
*/
|
|
110
|
+
dialogApply: string;
|
|
111
|
+
/**
|
|
112
|
+
* The text of the Cancel button in all Spreadsheet dialogs
|
|
113
|
+
*/
|
|
114
|
+
dialogCancel: string;
|
|
115
|
+
/**
|
|
116
|
+
* The text of the Delete button in the Delete sheet dialog
|
|
117
|
+
*/
|
|
118
|
+
dialogDelete: string;
|
|
119
|
+
/**
|
|
120
|
+
* The text of the Rename button in the Rename sheet dialog
|
|
121
|
+
*/
|
|
122
|
+
dialogRename: string;
|
|
123
|
+
/**
|
|
124
|
+
* The title of the Delete sheet dialog
|
|
125
|
+
*/
|
|
126
|
+
delete: string;
|
|
127
|
+
/**
|
|
128
|
+
* The title of the Rename sheet dialog
|
|
129
|
+
*/
|
|
130
|
+
rename: string;
|
|
131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessagesDirective, never>;
|
|
132
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MessagesDirective, "[kendoSpreadsheetMessages]", never, { "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"; }, {}, never>;
|
|
133
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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, MessageService } from '@progress/kendo-angular-l10n';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export declare class SpreadsheetLocalizationService extends LocalizationService {
|
|
11
|
+
constructor(prefix: string, messageService: MessageService, _rtl: boolean);
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpreadsheetLocalizationService, [null, { optional: true; }, { optional: true; }]>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpreadsheetLocalizationService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { Range, Sheet, SpreadsheetWidget, Workbook } from "@progress/kendo-spreadsheet-common";
|
|
6
|
+
/**
|
|
7
|
+
* The event data of the Spreadsheet `change` event.
|
|
8
|
+
*/
|
|
9
|
+
export interface SpreadsheetChangeEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The selected `Range` in the active sheet.
|
|
12
|
+
*/
|
|
13
|
+
range: Range;
|
|
14
|
+
/**
|
|
15
|
+
* The `SpreadsheetWidget` instance, used in the Spreadsheet component.
|
|
16
|
+
*/
|
|
17
|
+
sender: SpreadsheetWidget;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The event data of the Spreadsheet `excelExport` event.
|
|
21
|
+
*/
|
|
22
|
+
export interface SpreadsheetExcelExportEvent {
|
|
23
|
+
/**
|
|
24
|
+
* The `SpreadsheetWidget` instance.
|
|
25
|
+
*/
|
|
26
|
+
sender: SpreadsheetWidget;
|
|
27
|
+
/**
|
|
28
|
+
* The Excel workbook configuration object. Modifications of the workbook will be reflected in the output Excel document.
|
|
29
|
+
*/
|
|
30
|
+
workbook: Workbook;
|
|
31
|
+
/**
|
|
32
|
+
* If invoked, the Spreadsheet will not save the generated file.
|
|
33
|
+
*/
|
|
34
|
+
preventDefault: Function;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The event data of the Spreadsheet `excelImport` event.
|
|
38
|
+
*/
|
|
39
|
+
export interface SpreadsheetExcelImportEvent {
|
|
40
|
+
/**
|
|
41
|
+
* The `SpreadsheetWidget` instance.
|
|
42
|
+
*/
|
|
43
|
+
sender: SpreadsheetWidget;
|
|
44
|
+
/**
|
|
45
|
+
* The selected file.
|
|
46
|
+
*/
|
|
47
|
+
file: File | Blob;
|
|
48
|
+
/**
|
|
49
|
+
* If invoked, the Spreadsheet will not load the selected file.
|
|
50
|
+
*/
|
|
51
|
+
preventDefault: Function;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The event data of the Spreadsheet `activeSheetChange` event.
|
|
55
|
+
*/
|
|
56
|
+
export interface SpreadsheetActiveSheetChangeEvent {
|
|
57
|
+
/**
|
|
58
|
+
* The `SpreadsheetWidget` instance.
|
|
59
|
+
*/
|
|
60
|
+
sender: SpreadsheetWidget;
|
|
61
|
+
/**
|
|
62
|
+
* The new active sheet.
|
|
63
|
+
*/
|
|
64
|
+
sheet: Sheet;
|
|
65
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
export * from './sheet-info';
|
|
6
|
+
export * from './main-menu-item';
|
|
7
|
+
export * from './events';
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* The configuration object for customizing the built-in menu items.
|
|
7
|
+
* Allows rendering a specific set of menu items in the desired order and choosing the initially active one.
|
|
8
|
+
*/
|
|
9
|
+
export interface SpreadsheetMainMenuItem {
|
|
10
|
+
/**
|
|
11
|
+
* The built-in menu items identifiers.
|
|
12
|
+
*/
|
|
13
|
+
id: 'file' | 'home' | 'insert';
|
|
14
|
+
/**
|
|
15
|
+
* Determines whether the menu item is initially active. If no item is set as active, the first one will be active by default.
|
|
16
|
+
* If more than one items are set as active, the first of them will be active.
|
|
17
|
+
*/
|
|
18
|
+
active?: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { SheetDescriptor } from '@progress/kendo-spreadsheet-common';
|
|
6
|
+
import { ListItemModel } from '@progress/kendo-angular-buttons';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export declare type SheetAction = ListItemModel & {
|
|
11
|
+
commandName: string;
|
|
12
|
+
dialogButton?: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export declare type SheetInfo = SheetDescriptor & {
|
|
18
|
+
last: boolean;
|
|
19
|
+
first: boolean;
|
|
20
|
+
text: string;
|
|
21
|
+
sheetActions: SheetAction[];
|
|
22
|
+
copies?: number;
|
|
23
|
+
inEdit?: boolean;
|
|
24
|
+
active?: boolean;
|
|
25
|
+
index?: number;
|
|
26
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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 { PackageMetadata } from '@progress/kendo-licensing';
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export declare const packageMetadata: PackageMetadata;
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@progress/kendo-angular-spreadsheet",
|
|
3
|
+
"version": "13.6.0-develop.6",
|
|
4
|
+
"description": "A Spreadsheet Component for Angular",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
|
+
"author": "Progress",
|
|
7
|
+
"homepage": "https://www.telerik.com/kendo-angular-ui/components/",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/telerik/kendo-angular"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"Angular",
|
|
13
|
+
"Kendo UI",
|
|
14
|
+
"Spreadsheet",
|
|
15
|
+
"Progress"
|
|
16
|
+
],
|
|
17
|
+
"@progress": {
|
|
18
|
+
"friendlyName": "Spreadsheet"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"@angular/animations": "13 - 16",
|
|
22
|
+
"@angular/common": "13 - 16",
|
|
23
|
+
"@angular/core": "13 - 16",
|
|
24
|
+
"@angular/platform-browser": "13 - 16",
|
|
25
|
+
"@progress/kendo-licensing": "^1.0.2",
|
|
26
|
+
"@progress/kendo-angular-buttons": "13.6.0-develop.6",
|
|
27
|
+
"@progress/kendo-angular-common": "13.6.0-develop.6",
|
|
28
|
+
"@progress/kendo-angular-dialog": "13.6.0-develop.6",
|
|
29
|
+
"@progress/kendo-angular-dropdowns": "13.6.0-develop.6",
|
|
30
|
+
"@progress/kendo-angular-icons": "13.6.0-develop.6",
|
|
31
|
+
"@progress/kendo-angular-l10n": "13.6.0-develop.6",
|
|
32
|
+
"@progress/kendo-angular-layout": "13.6.0-develop.6",
|
|
33
|
+
"@progress/kendo-angular-menu": "13.6.0-develop.6",
|
|
34
|
+
"@progress/kendo-angular-popup": "13.6.0-develop.6",
|
|
35
|
+
"@progress/kendo-angular-toolbar": "13.6.0-develop.6",
|
|
36
|
+
"@progress/kendo-angular-intl": "13.6.0-develop.6",
|
|
37
|
+
"rxjs": "^6.5.3 || ^7.0.0"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"tslib": "^2.3.1",
|
|
41
|
+
"@progress/kendo-angular-schematics": "13.6.0-develop.6",
|
|
42
|
+
"@progress/kendo-spreadsheet-common": "1.0.0-develop.13"
|
|
43
|
+
},
|
|
44
|
+
"schematics": "./schematics/collection.json",
|
|
45
|
+
"module": "fesm2015/progress-kendo-angular-spreadsheet.mjs",
|
|
46
|
+
"es2020": "fesm2020/progress-kendo-angular-spreadsheet.mjs",
|
|
47
|
+
"esm2020": "esm2020/progress-kendo-angular-spreadsheet.mjs",
|
|
48
|
+
"fesm2020": "fesm2020/progress-kendo-angular-spreadsheet.mjs",
|
|
49
|
+
"fesm2015": "fesm2015/progress-kendo-angular-spreadsheet.mjs",
|
|
50
|
+
"typings": "progress-kendo-angular-spreadsheet.d.ts",
|
|
51
|
+
"exports": {
|
|
52
|
+
"./package.json": {
|
|
53
|
+
"default": "./package.json"
|
|
54
|
+
},
|
|
55
|
+
".": {
|
|
56
|
+
"types": "./progress-kendo-angular-spreadsheet.d.ts",
|
|
57
|
+
"esm2020": "./esm2020/progress-kendo-angular-spreadsheet.mjs",
|
|
58
|
+
"es2020": "./fesm2020/progress-kendo-angular-spreadsheet.mjs",
|
|
59
|
+
"es2015": "./fesm2015/progress-kendo-angular-spreadsheet.mjs",
|
|
60
|
+
"node": "./fesm2015/progress-kendo-angular-spreadsheet.mjs",
|
|
61
|
+
"default": "./fesm2020/progress-kendo-angular-spreadsheet.mjs"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"sideEffects": false
|
|
65
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* Generated bundle index. Do not edit.
|
|
7
|
+
*/
|
|
8
|
+
/// <amd-module name="@progress/kendo-angular-spreadsheet" />
|
|
9
|
+
export * from './index';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"ng-add": {
|
|
5
|
+
"description": "Adds Kendo Angular Package to the application.",
|
|
6
|
+
"factory": "./ngAdd",
|
|
7
|
+
"schema": "./ngAdd/schema.json",
|
|
8
|
+
"hidden": true,
|
|
9
|
+
"private": true
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
+
function default_1(options) {
|
|
5
|
+
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'SpreadsheetModule', package: 'spreadsheet', peerDependencies: {
|
|
6
|
+
// Peer dependency of icons
|
|
7
|
+
'@progress/kendo-svg-icons': '^1.0.0',
|
|
8
|
+
// peer dep of the dropdowns
|
|
9
|
+
'@progress/kendo-angular-treeview': '13.6.0-develop.6'
|
|
10
|
+
} });
|
|
11
|
+
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
12
|
+
}
|
|
13
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "SchematicsKendoAngularSpreadsheet",
|
|
4
|
+
"title": "Kendo Angular Spreadsheet Options Schema",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"theme": {
|
|
8
|
+
"enum": ["default", "bootstrap", "material"],
|
|
9
|
+
"default": "default",
|
|
10
|
+
"description": "The theme to apply"
|
|
11
|
+
},
|
|
12
|
+
"export": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"default": false,
|
|
15
|
+
"description": "Specifies if declaring module exports the component."
|
|
16
|
+
},
|
|
17
|
+
"skipInstall": {
|
|
18
|
+
"description": "Skip installing Kendo dependency packages.",
|
|
19
|
+
"type": "boolean",
|
|
20
|
+
"default": false
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": []
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export declare class ActionDialogComponent extends DialogContentBase {
|
|
11
|
+
dialog: DialogRef;
|
|
12
|
+
commandName: string;
|
|
13
|
+
value: any;
|
|
14
|
+
tabindex: number;
|
|
15
|
+
constructor(dialog: DialogRef);
|
|
16
|
+
setData(args: any): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionDialogComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionDialogComponent, "ng-component", never, {}, {}, never, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export declare class RemoveDirective {
|
|
10
|
+
hostDisplay: string;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RemoveDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RemoveDirective, "[kendoRemoveDirective]", never, {}, {}, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { AfterViewInit, ElementRef, NgZone, Renderer2 } from '@angular/core';
|
|
6
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
7
|
+
import { SheetInfo } from '../models/sheet-info';
|
|
8
|
+
import { SpreadsheetService } from '../common/spreadsheet.service';
|
|
9
|
+
import { SheetDescriptor } from '@progress/kendo-spreadsheet-common';
|
|
10
|
+
import { SheetAction } from '../models/sheet-info';
|
|
11
|
+
import { DropDownButtonComponent } from '@progress/kendo-angular-buttons';
|
|
12
|
+
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
13
|
+
import { SpreadsheetLocalizationService } from '../localization/spreadsheet-localization.service';
|
|
14
|
+
import { SelectEvent } from '@progress/kendo-angular-layout';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export declare class SheetsBarComponent implements AfterViewInit {
|
|
20
|
+
private spreadsheetService;
|
|
21
|
+
private element;
|
|
22
|
+
private renderer;
|
|
23
|
+
private localization;
|
|
24
|
+
private dialogService;
|
|
25
|
+
private ngZone;
|
|
26
|
+
hostClasses: boolean;
|
|
27
|
+
sheets: SheetInfo[];
|
|
28
|
+
sheetDescriptors: SheetDescriptor[];
|
|
29
|
+
constructor(spreadsheetService: SpreadsheetService, element: ElementRef, renderer: Renderer2, localization: SpreadsheetLocalizationService, dialogService: DialogService, ngZone: NgZone);
|
|
30
|
+
get activeSheet(): string;
|
|
31
|
+
plusIcon: SVGIcon;
|
|
32
|
+
menuIcon: SVGIcon;
|
|
33
|
+
caretAltDownIcon: SVGIcon;
|
|
34
|
+
caretAltLeftIcon: SVGIcon;
|
|
35
|
+
caretAltRightIcon: SVGIcon;
|
|
36
|
+
selected: boolean;
|
|
37
|
+
private openedDdb;
|
|
38
|
+
private eyeIcon;
|
|
39
|
+
get sheetsMenuList(): any[];
|
|
40
|
+
ngAfterViewInit(): void;
|
|
41
|
+
onAddClick: () => void;
|
|
42
|
+
onTabSelect(ev: SelectEvent): void;
|
|
43
|
+
onOpen(ddb: DropDownButtonComponent): void;
|
|
44
|
+
onClose(): void;
|
|
45
|
+
onActionClick(dataItem: SheetAction, sheet: SheetInfo): void;
|
|
46
|
+
onMenuItemClick(item: any): void;
|
|
47
|
+
private openDialog;
|
|
48
|
+
private actionsCallback;
|
|
49
|
+
private selectSheet;
|
|
50
|
+
private notifySheetsChange;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SheetsBarComponent, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SheetsBarComponent, "[kendoSpreadsheetSheetsBar]", never, { "sheets": "sheets"; "sheetDescriptors": "sheetDescriptors"; }, {}, never, never>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 { SheetDescriptor } from '@progress/kendo-spreadsheet-common';
|
|
6
|
+
import { SheetAction, SheetInfo } from '../models';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export declare const getSheetActions: (index: number, items: SheetDescriptor[] | SheetInfo[]) => SheetAction[];
|