@progress/kendo-angular-spreadsheet 14.2.1-develop.1 → 14.3.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.
- package/action-bar/formula-input.directive.d.ts +2 -1
- package/action-bar/list.component.d.ts +2 -1
- package/common/spreadsheet.service.d.ts +1 -0
- package/esm2020/action-bar/formula-input.directive.mjs +22 -2
- package/esm2020/action-bar/list.component.mjs +7 -1
- package/esm2020/common/error-handling.service.mjs +14 -1
- package/esm2020/common/spreadsheet.service.mjs +1 -0
- package/esm2020/localization/messages.mjs +29 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/sheets-bar/action-dialog.component.mjs +1 -1
- package/esm2020/sheets-bar/sheets-bar.component.mjs +136 -59
- package/esm2020/sheets-bar/utils.mjs +22 -18
- package/esm2020/spreadsheet.component.mjs +397 -55
- package/esm2020/spreadsheet.module.mjs +4 -4
- package/esm2020/tools/align/horizontal-align-tool.directive.mjs +1 -3
- package/esm2020/tools/align/vertical-align-tool.directive.mjs +1 -3
- package/esm2020/tools/insert/insert-link-dialog.component.mjs +1 -1
- package/esm2020/tools/insert/insert-link-tool.directive.mjs +4 -1
- package/esm2020/tools/shared/command-icons.mjs +17 -3
- package/esm2020/utils.mjs +6 -1
- package/fesm2015/progress-kendo-angular-spreadsheet.mjs +644 -150
- package/fesm2020/progress-kendo-angular-spreadsheet.mjs +659 -158
- package/localization/messages.d.ts +64 -1
- package/models/sheet-info.d.ts +1 -0
- package/package.json +15 -15
- package/schematics/ngAdd/index.js +1 -1
- package/sheets-bar/sheets-bar.component.d.ts +6 -3
- package/sheets-bar/utils.d.ts +1 -1
- package/spreadsheet.component.d.ts +31 -5
- package/spreadsheet.module.d.ts +1 -1
- package/tools/insert/insert-link-tool.directive.d.ts +1 -0
- package/tools/shared/commands.d.ts +1 -1
- package/utils.d.ts +4 -0
@@ -47,7 +47,7 @@ import { DialogModule } from '@progress/kendo-angular-dialog';
|
|
47
47
|
import { FontFamilyDropDownListComponent } from './tools/font-family/font-family-dropdownlist.component';
|
48
48
|
import { FontSizeDropDownListComponent } from './tools/font-size/font-size-dropdownlist.component';
|
49
49
|
import { DialogContentComponent } from './tools/shared/dialog-content.component';
|
50
|
-
import {
|
50
|
+
import { MenusModule } 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';
|
@@ -195,7 +195,7 @@ SpreadsheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versi
|
|
195
195
|
EventsModule,
|
196
196
|
IconsModule,
|
197
197
|
IntlModule,
|
198
|
-
|
198
|
+
MenusModule,
|
199
199
|
PopupModule,
|
200
200
|
TabStripModule,
|
201
201
|
ToolBarModule,
|
@@ -241,7 +241,7 @@ SpreadsheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versi
|
|
241
241
|
EventsModule,
|
242
242
|
IconsModule,
|
243
243
|
IntlModule,
|
244
|
-
|
244
|
+
MenusModule,
|
245
245
|
PopupModule,
|
246
246
|
TabStripModule,
|
247
247
|
ToolBarModule,
|
@@ -263,7 +263,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
263
263
|
EventsModule,
|
264
264
|
IconsModule,
|
265
265
|
IntlModule,
|
266
|
-
|
266
|
+
MenusModule,
|
267
267
|
PopupModule,
|
268
268
|
TabStripModule,
|
269
269
|
ToolBarModule,
|
@@ -29,9 +29,7 @@ export class SpreadsheetHorizontalTextAlignDirective {
|
|
29
29
|
host.icon = commandIcons[this.commandName];
|
30
30
|
host.arrowIcon = true;
|
31
31
|
host.fillMode = 'flat';
|
32
|
-
host.data = ALIGNS
|
33
|
-
.filter(value => value.commandName === 'textAlign')
|
34
|
-
.map(item => ({ ...item, textKey: localization.get(item.commandId) }));
|
32
|
+
host.data = ALIGNS.flatMap(item => item.commandName === 'textAlign' ? [{ ...item, textKey: localization.get(item.commandId) }] : []);
|
35
33
|
this.subs.add(host.itemClick.subscribe((e) => this.onItemClick(e)));
|
36
34
|
host.title = localization.get(this.commandName);
|
37
35
|
host.textField = 'textKey';
|
@@ -29,9 +29,7 @@ export class SpreadsheetVerticalTextAlignDirective {
|
|
29
29
|
host.icon = commandIcons[this.commandName];
|
30
30
|
host.arrowIcon = true;
|
31
31
|
host.fillMode = 'flat';
|
32
|
-
host.data = ALIGNS
|
33
|
-
.filter(value => value.commandName === 'verticalAlign')
|
34
|
-
.map(item => ({ ...item, textKey: localization.get(item.commandId) }));
|
32
|
+
host.data = ALIGNS.flatMap(item => item.commandName === 'verticalAlign' ? [{ ...item, textKey: localization.get(item.commandId) }] : []);
|
35
33
|
this.subs.add(host.itemClick.subscribe((e) => this.onItemClick(e)));
|
36
34
|
host.title = localization.get(this.commandName);
|
37
35
|
host.textField = 'textKey';
|
@@ -31,7 +31,7 @@ InsertLinkDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
31
31
|
</kendo-textbox>
|
32
32
|
</div>
|
33
33
|
</form>
|
34
|
-
`, 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"] }] });
|
34
|
+
`, 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", "type", "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"] }] });
|
35
35
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: InsertLinkDialogComponent, decorators: [{
|
36
36
|
type: Component,
|
37
37
|
args: [{
|
@@ -27,7 +27,10 @@ export class SpreadsheetInsertLinkDirective extends SpreadsheetCommandButton {
|
|
27
27
|
command: 'HyperlinkCommand'
|
28
28
|
});
|
29
29
|
this.dialogService = dialogService;
|
30
|
-
spreadsheetService.selectionChanged.subscribe(range => this.currentRange = range);
|
30
|
+
this.subs.add(spreadsheetService.selectionChanged.subscribe(range => this.currentRange = range));
|
31
|
+
}
|
32
|
+
ngOnDestroy() {
|
33
|
+
this.subs.unsubscribe();
|
31
34
|
}
|
32
35
|
clickHandler() {
|
33
36
|
const sheet = this.spreadsheetService.spreadsheet.activeSheet();
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
|
-
import { alignCenterIcon, alignJustifyIcon, alignLeftIcon, alignRightIcon, boldIcon, dropletIcon, foregroundColorIcon, italicIcon, tableColumnDeleteIcon, tableColumnInsertLeftIcon, tableColumnInsertRightIcon, tableRowDeleteIcon, tableRowInsertAboveIcon, tableRowInsertBelowIcon, underlineIcon, arrowRotateCcwIcon, arrowRotateCwIcon, bordersNoneIcon, alignTopIcon, alignMiddleIcon, alignBottomIcon, textWrapIcon, folderOpenIcon, downloadIcon, customFormatIcon, fontSizeIcon, fontFamilyIcon, cellsMergeHorizontallyIcon, cellsMergeIcon, cellsMergeVerticallyIcon, tableUnmergeIcon, linkIcon, fontGrowIcon, fontShrinkIcon, decimalDecreaseIcon, decimalIncreaseIcon } from '@progress/kendo-svg-icons';
|
5
|
+
import { alignCenterIcon, alignJustifyIcon, alignLeftIcon, alignRightIcon, boldIcon, dropletIcon, foregroundColorIcon, italicIcon, tableColumnDeleteIcon, tableColumnInsertLeftIcon, tableColumnInsertRightIcon, tableRowDeleteIcon, tableRowInsertAboveIcon, tableRowInsertBelowIcon, underlineIcon, arrowRotateCcwIcon, arrowRotateCwIcon, bordersNoneIcon, alignTopIcon, alignMiddleIcon, alignBottomIcon, textWrapIcon, folderOpenIcon, downloadIcon, customFormatIcon, fontSizeIcon, fontFamilyIcon, cellsMergeHorizontallyIcon, cellsMergeIcon, cellsMergeVerticallyIcon, tableUnmergeIcon, linkIcon, fontGrowIcon, fontShrinkIcon, decimalDecreaseIcon, decimalIncreaseIcon, copyIcon, cutIcon, clipboardIcon, eyeSlashIcon, eyeIcon } from '@progress/kendo-svg-icons';
|
6
6
|
/**
|
7
7
|
* @hidden
|
8
8
|
*/
|
@@ -46,7 +46,14 @@ export const commandIcons = {
|
|
46
46
|
increaseFontSize: 'font-grow',
|
47
47
|
decreaseFontSize: 'font-shrink',
|
48
48
|
increaseDecimal: 'decimal-increase',
|
49
|
-
decreaseDecimal: 'decimal-decrease'
|
49
|
+
decreaseDecimal: 'decimal-decrease',
|
50
|
+
copy: 'copy',
|
51
|
+
cut: 'cut',
|
52
|
+
paste: 'clipboard',
|
53
|
+
hideRow: 'eye-slash',
|
54
|
+
unhideRow: 'eye',
|
55
|
+
hideColumn: 'eye-slash',
|
56
|
+
unhideColumn: 'eye'
|
50
57
|
};
|
51
58
|
/**
|
52
59
|
* @hidden
|
@@ -91,5 +98,12 @@ export const commandSVGIcons = {
|
|
91
98
|
increaseFontSize: fontGrowIcon,
|
92
99
|
decreaseFontSize: fontShrinkIcon,
|
93
100
|
decreaseDecimal: decimalDecreaseIcon,
|
94
|
-
increaseDecimal: decimalIncreaseIcon
|
101
|
+
increaseDecimal: decimalIncreaseIcon,
|
102
|
+
copy: copyIcon,
|
103
|
+
cut: cutIcon,
|
104
|
+
paste: clipboardIcon,
|
105
|
+
hideRow: eyeSlashIcon,
|
106
|
+
unhideRow: eyeIcon,
|
107
|
+
hideColumn: eyeSlashIcon,
|
108
|
+
unhideColumn: eyeIcon
|
95
109
|
};
|
package/esm2020/utils.mjs
CHANGED
@@ -19,7 +19,12 @@ export const mapToSheetDescriptor = (sheetsArray) => {
|
|
19
19
|
name: sheet.name(),
|
20
20
|
rows: sheet._rows,
|
21
21
|
selection: sheet.selection(),
|
22
|
-
showGridLines: sheet.showGridLines
|
22
|
+
showGridLines: sheet.showGridLines,
|
23
|
+
state: sheet.state()
|
23
24
|
};
|
24
25
|
});
|
25
26
|
};
|
27
|
+
/**
|
28
|
+
* @hidden
|
29
|
+
*/
|
30
|
+
export const replaceMessagePlaceholder = (message, name, value) => message.replace(new RegExp(`\{\\s*${name}\\s*\}`, 'g'), value);
|