@progress/kendo-angular-spreadsheet 21.4.1-develop.1 → 22.0.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/fesm2022/progress-kendo-angular-spreadsheet.mjs +183 -183
- package/package.json +22 -30
- package/schematics/ngAdd/index.js +2 -2
- package/tools/shared/spreadsheet-command-base.d.ts +1 -1
- package/tools/shared/spreadsheet-dropdown-tools-base.d.ts +1 -1
- package/tools/shared/spreadsheet-dropdownlist.base.d.ts +1 -1
- package/esm2022/action-bar/formula-input.directive.mjs +0 -183
- package/esm2022/action-bar/list.component.mjs +0 -91
- package/esm2022/action-bar/namebox.component.mjs +0 -134
- package/esm2022/common/calendar-editor.component.mjs +0 -48
- package/esm2022/common/error-handling.service.mjs +0 -99
- package/esm2022/common/list-editor.component.mjs +0 -146
- package/esm2022/common/main-menu.directive.mjs +0 -30
- package/esm2022/common/sheet-changes.mjs +0 -5
- package/esm2022/common/spreadsheet.service.mjs +0 -49
- package/esm2022/directives.mjs +0 -94
- package/esm2022/filter-menu/filter-menu-item-content-template.directive.mjs +0 -26
- package/esm2022/filter-menu/filter-menu-item.component.mjs +0 -271
- package/esm2022/index.mjs +0 -14
- package/esm2022/localization/custom-messages.component.mjs +0 -52
- package/esm2022/localization/localized-messages.directive.mjs +0 -35
- package/esm2022/localization/messages.mjs +0 -884
- package/esm2022/localization/spreadsheet-localization.service.mjs +0 -31
- package/esm2022/models/cell-editor-action-args.mjs +0 -5
- package/esm2022/models/cell-editor-options.mjs +0 -5
- package/esm2022/models/events.mjs +0 -5
- package/esm2022/models/filter-menu-item.mjs +0 -5
- package/esm2022/models/index.mjs +0 -11
- package/esm2022/models/main-menu-item.mjs +0 -5
- package/esm2022/models/range-filter-value.mjs +0 -5
- package/esm2022/models/sheet-info.mjs +0 -5
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/progress-kendo-angular-spreadsheet.mjs +0 -8
- package/esm2022/sheets-bar/action-dialog.component.mjs +0 -78
- package/esm2022/sheets-bar/sheets-bar.component.mjs +0 -433
- package/esm2022/sheets-bar/utils.mjs +0 -49
- package/esm2022/spreadsheet.component.mjs +0 -2408
- package/esm2022/spreadsheet.module.mjs +0 -72
- package/esm2022/tools/align/align-tool.directive.mjs +0 -62
- package/esm2022/tools/align/horizontal-align-tool.directive.mjs +0 -62
- package/esm2022/tools/align/vertical-align-tool.directive.mjs +0 -62
- package/esm2022/tools/colorpicker/spreadsheet-backcolor.component.mjs +0 -142
- package/esm2022/tools/colorpicker/spreadsheet-forecolor.component.mjs +0 -142
- package/esm2022/tools/data-validation-dialog.component.mjs +0 -481
- package/esm2022/tools/data-validation-tool.directive.mjs +0 -156
- package/esm2022/tools/decrease-decimal-tool.directive.mjs +0 -41
- package/esm2022/tools/filter-sort/filter-tool.directive.mjs +0 -89
- package/esm2022/tools/filter-sort/sort-tool.directive.mjs +0 -62
- package/esm2022/tools/font-family/font-family-dropdownlist.component.mjs +0 -59
- package/esm2022/tools/font-family/spreadsheet-fontfamily-tool.component.mjs +0 -114
- package/esm2022/tools/font-size/decrease-font-tool.directive.mjs +0 -52
- package/esm2022/tools/font-size/font-size-dropdownlist.component.mjs +0 -46
- package/esm2022/tools/font-size/increase-font-tool.directive.mjs +0 -52
- package/esm2022/tools/font-size/spreadsheet-fontsize-tool.component.mjs +0 -114
- package/esm2022/tools/format-tool.directive.mjs +0 -65
- package/esm2022/tools/gridlines-tool.directive.mjs +0 -47
- package/esm2022/tools/history/redo-tool.mjs +0 -37
- package/esm2022/tools/history/undo-tool.mjs +0 -37
- package/esm2022/tools/increase-decimal-tool.directive.mjs +0 -41
- package/esm2022/tools/index.mjs +0 -30
- package/esm2022/tools/insert/insert-link-dialog.component.mjs +0 -53
- package/esm2022/tools/insert/insert-link-tool.directive.mjs +0 -97
- package/esm2022/tools/load-file.component.mjs +0 -226
- package/esm2022/tools/save-file-tool.directive.mjs +0 -58
- package/esm2022/tools/shared/command-icons.mjs +0 -121
- package/esm2022/tools/shared/commands.mjs +0 -5
- package/esm2022/tools/shared/constants.mjs +0 -77
- package/esm2022/tools/shared/dialog-content.component.mjs +0 -130
- package/esm2022/tools/shared/spreadsheet-command-base.mjs +0 -73
- package/esm2022/tools/shared/spreadsheet-command-button.mjs +0 -31
- package/esm2022/tools/shared/spreadsheet-dropdown-tools-base.mjs +0 -194
- package/esm2022/tools/shared/spreadsheet-dropdownlist.base.mjs +0 -54
- package/esm2022/tools/tables/add-column-left-button.directive.mjs +0 -37
- package/esm2022/tools/tables/add-column-right-button.directive.mjs +0 -37
- package/esm2022/tools/tables/add-row-above-button.directive.mjs +0 -37
- package/esm2022/tools/tables/add-row-below-button.directive.mjs +0 -37
- package/esm2022/tools/tables/delete-column-button.directive.mjs +0 -35
- package/esm2022/tools/tables/delete-row-button.directive.mjs +0 -35
- package/esm2022/tools/tables/index.mjs +0 -11
- package/esm2022/tools/tables/merge-tool.directive.mjs +0 -72
- package/esm2022/tools/text-wrap-tool.directive.mjs +0 -48
- package/esm2022/tools/tools.service.mjs +0 -61
- package/esm2022/tools/typographical-emphasis/bold-tool.directive.mjs +0 -37
- package/esm2022/tools/typographical-emphasis/italic-tool.directive.mjs +0 -37
- package/esm2022/tools/typographical-emphasis/underline-tool.directive.mjs +0 -37
- package/esm2022/tools/utils.mjs +0 -35
- package/esm2022/utils.mjs +0 -32
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { EventEmitter, Injectable, NgZone, Output } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export class SpreadsheetToolsService {
|
|
11
|
-
ngZone;
|
|
12
|
-
stateChange = new EventEmitter();
|
|
13
|
-
set toolsState(state) {
|
|
14
|
-
this._toolsState = state;
|
|
15
|
-
}
|
|
16
|
-
get toolsState() {
|
|
17
|
-
return this._toolsState;
|
|
18
|
-
}
|
|
19
|
-
toolsFunctions = [
|
|
20
|
-
'bold',
|
|
21
|
-
'italic',
|
|
22
|
-
'underline',
|
|
23
|
-
'fontFamily',
|
|
24
|
-
'fontSize',
|
|
25
|
-
'color',
|
|
26
|
-
'background',
|
|
27
|
-
'textAlign',
|
|
28
|
-
'verticalAlign',
|
|
29
|
-
'wrap',
|
|
30
|
-
'gridLines',
|
|
31
|
-
'format'
|
|
32
|
-
];
|
|
33
|
-
_toolsState = {};
|
|
34
|
-
constructor(ngZone) {
|
|
35
|
-
this.ngZone = ngZone;
|
|
36
|
-
}
|
|
37
|
-
updateTools = (e) => {
|
|
38
|
-
this.ngZone.run(() => {
|
|
39
|
-
const state = {};
|
|
40
|
-
this.toolsFunctions.forEach(tool => {
|
|
41
|
-
if (typeof e.range[tool] === 'function') {
|
|
42
|
-
state[tool] = e.range[tool]();
|
|
43
|
-
}
|
|
44
|
-
else if (tool === 'gridLines') {
|
|
45
|
-
state[tool] = e.range.sheet().showGridLines();
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
if (this.toolsFunctions.some(k => state[k] !== this.toolsState[k])) {
|
|
49
|
-
this.toolsState = state;
|
|
50
|
-
this.stateChange.emit(state);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetToolsService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
55
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetToolsService });
|
|
56
|
-
}
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetToolsService, decorators: [{
|
|
58
|
-
type: Injectable
|
|
59
|
-
}], ctorParameters: () => [{ type: i0.NgZone }], propDecorators: { stateChange: [{
|
|
60
|
-
type: Output
|
|
61
|
-
}] } });
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 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 { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
7
|
-
import { SpreadsheetLocalizationService } from '../../localization/spreadsheet-localization.service';
|
|
8
|
-
import { SpreadsheetService } from '../../common/spreadsheet.service';
|
|
9
|
-
import { SpreadsheetToolsService } from '.././tools.service';
|
|
10
|
-
import { SpreadsheetCommandButton } from '.././shared/spreadsheet-command-button';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "@progress/kendo-angular-toolbar";
|
|
13
|
-
import * as i2 from "../../localization/spreadsheet-localization.service";
|
|
14
|
-
import * as i3 from "../../common/spreadsheet.service";
|
|
15
|
-
import * as i4 from ".././tools.service";
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export class SpreadsheetBoldDirective extends SpreadsheetCommandButton {
|
|
20
|
-
constructor(button, localization, spreadsheetService, toolsService) {
|
|
21
|
-
super('bold', button, localization, spreadsheetService, toolsService, {
|
|
22
|
-
command: 'PropertyChangeCommand',
|
|
23
|
-
options: { property: 'bold',
|
|
24
|
-
value: !button.selected
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetBoldDirective, deps: [{ token: i1.ToolBarButtonComponent }, { token: i2.SpreadsheetLocalizationService }, { token: i3.SpreadsheetService }, { token: i4.SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SpreadsheetBoldDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetBold]", usesInheritance: true, ngImport: i0 });
|
|
30
|
-
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetBoldDirective, decorators: [{
|
|
32
|
-
type: Directive,
|
|
33
|
-
args: [{
|
|
34
|
-
selector: 'kendo-toolbar-button[kendoSpreadsheetBold]',
|
|
35
|
-
standalone: true
|
|
36
|
-
}]
|
|
37
|
-
}], ctorParameters: () => [{ type: i1.ToolBarButtonComponent }, { type: i2.SpreadsheetLocalizationService }, { type: i3.SpreadsheetService }, { type: i4.SpreadsheetToolsService }] });
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 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 { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
7
|
-
import { SpreadsheetLocalizationService } from '../../localization/spreadsheet-localization.service';
|
|
8
|
-
import { SpreadsheetService } from '../../common/spreadsheet.service';
|
|
9
|
-
import { SpreadsheetToolsService } from '.././tools.service';
|
|
10
|
-
import { SpreadsheetCommandButton } from '.././shared/spreadsheet-command-button';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "@progress/kendo-angular-toolbar";
|
|
13
|
-
import * as i2 from "../../localization/spreadsheet-localization.service";
|
|
14
|
-
import * as i3 from "../../common/spreadsheet.service";
|
|
15
|
-
import * as i4 from ".././tools.service";
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export class SpreadsheetItalicDirective extends SpreadsheetCommandButton {
|
|
20
|
-
constructor(button, localization, spreadsheetService, toolsService) {
|
|
21
|
-
super('italic', button, localization, spreadsheetService, toolsService, {
|
|
22
|
-
command: 'PropertyChangeCommand',
|
|
23
|
-
options: { property: 'italic',
|
|
24
|
-
value: !button.selected
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetItalicDirective, deps: [{ token: i1.ToolBarButtonComponent }, { token: i2.SpreadsheetLocalizationService }, { token: i3.SpreadsheetService }, { token: i4.SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SpreadsheetItalicDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetItalic]", usesInheritance: true, ngImport: i0 });
|
|
30
|
-
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetItalicDirective, decorators: [{
|
|
32
|
-
type: Directive,
|
|
33
|
-
args: [{
|
|
34
|
-
selector: 'kendo-toolbar-button[kendoSpreadsheetItalic]',
|
|
35
|
-
standalone: true
|
|
36
|
-
}]
|
|
37
|
-
}], ctorParameters: () => [{ type: i1.ToolBarButtonComponent }, { type: i2.SpreadsheetLocalizationService }, { type: i3.SpreadsheetService }, { type: i4.SpreadsheetToolsService }] });
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 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 { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
7
|
-
import { SpreadsheetLocalizationService } from '../../localization/spreadsheet-localization.service';
|
|
8
|
-
import { SpreadsheetService } from '../../common/spreadsheet.service';
|
|
9
|
-
import { SpreadsheetToolsService } from '../tools.service';
|
|
10
|
-
import { SpreadsheetCommandButton } from '../shared/spreadsheet-command-button';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "@progress/kendo-angular-toolbar";
|
|
13
|
-
import * as i2 from "../../localization/spreadsheet-localization.service";
|
|
14
|
-
import * as i3 from "../../common/spreadsheet.service";
|
|
15
|
-
import * as i4 from "../tools.service";
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export class SpreadsheetUnderlineDirective extends SpreadsheetCommandButton {
|
|
20
|
-
constructor(button, localization, spreadsheetService, toolsService) {
|
|
21
|
-
super('underline', button, localization, spreadsheetService, toolsService, {
|
|
22
|
-
command: 'PropertyChangeCommand',
|
|
23
|
-
options: { property: 'underline',
|
|
24
|
-
value: !button.selected
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetUnderlineDirective, deps: [{ token: i1.ToolBarButtonComponent }, { token: i2.SpreadsheetLocalizationService }, { token: i3.SpreadsheetService }, { token: i4.SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SpreadsheetUnderlineDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetUnderline]", usesInheritance: true, ngImport: i0 });
|
|
30
|
-
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetUnderlineDirective, decorators: [{
|
|
32
|
-
type: Directive,
|
|
33
|
-
args: [{
|
|
34
|
-
selector: 'kendo-toolbar-button[kendoSpreadsheetUnderline]',
|
|
35
|
-
standalone: true
|
|
36
|
-
}]
|
|
37
|
-
}], ctorParameters: () => [{ type: i1.ToolBarButtonComponent }, { type: i2.SpreadsheetLocalizationService }, { type: i3.SpreadsheetService }, { type: i4.SpreadsheetToolsService }] });
|
package/esm2022/tools/utils.mjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { isPresent } from "@progress/kendo-angular-common";
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export function outerWidth(element) {
|
|
10
|
-
let width = element.offsetWidth;
|
|
11
|
-
const style = getComputedStyle(element);
|
|
12
|
-
width += parseFloat(style.marginLeft) || 0 + parseFloat(style.marginRight) || 0;
|
|
13
|
-
return width;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export const rangeValidator = (directive) => {
|
|
19
|
-
return (control) => {
|
|
20
|
-
const err = {
|
|
21
|
-
rangeError: {
|
|
22
|
-
message: 'Incorrect range format',
|
|
23
|
-
value: control.value
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
let range;
|
|
27
|
-
try {
|
|
28
|
-
range = directive.spreadsheetService.spreadsheet.activeSheet().range(control.value);
|
|
29
|
-
}
|
|
30
|
-
catch (_e) { /** noop */ }
|
|
31
|
-
if (!isPresent(range)) {
|
|
32
|
-
return err;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
};
|
package/esm2022/utils.mjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export const mapToSheetDescriptor = (sheetsArray) => {
|
|
9
|
-
return sheetsArray.map((sheet) => {
|
|
10
|
-
return {
|
|
11
|
-
activeCell: sheet.activeCell(),
|
|
12
|
-
columns: sheet._columns,
|
|
13
|
-
defaultCellStyle: sheet._defaultCellStyle,
|
|
14
|
-
drawings: sheet._drawings,
|
|
15
|
-
frozenColumns: sheet.frozenColumns,
|
|
16
|
-
frozenRows: sheet.frozenRows,
|
|
17
|
-
hyperlinks: sheet._hyperlinks,
|
|
18
|
-
mergedCells: sheet.mergedCells,
|
|
19
|
-
name: sheet.name(),
|
|
20
|
-
rows: sheet._rows,
|
|
21
|
-
selection: sheet.selection(),
|
|
22
|
-
showGridLines: sheet.showGridLines,
|
|
23
|
-
state: sheet.state()
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
export const rowAndColPresent = (value) => {
|
|
31
|
-
return (value && value.row !== null && value.col !== null && value.row > -1 && value.col > -1);
|
|
32
|
-
};
|