@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,99 +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 { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
|
-
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
7
|
-
import { Injectable } from '@angular/core';
|
|
8
|
-
import { Subject } from 'rxjs';
|
|
9
|
-
import { SpreadsheetService } from './spreadsheet.service';
|
|
10
|
-
import { take } from 'rxjs/operators';
|
|
11
|
-
import { replaceMessagePlaceholder } from '@progress/kendo-angular-common';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "./spreadsheet.service";
|
|
14
|
-
import * as i2 from "@progress/kendo-angular-l10n";
|
|
15
|
-
import * as i3 from "@progress/kendo-angular-dialog";
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export class ErrorHandlingService {
|
|
20
|
-
spreadsheetService;
|
|
21
|
-
localization;
|
|
22
|
-
dialogService;
|
|
23
|
-
spreadsheet;
|
|
24
|
-
sheetsChanged = new Subject();
|
|
25
|
-
activeSheetChanged = new Subject();
|
|
26
|
-
selectionChanged = new Subject();
|
|
27
|
-
dialogContainer;
|
|
28
|
-
constructor(spreadsheetService, localization, dialogService) {
|
|
29
|
-
this.spreadsheetService = spreadsheetService;
|
|
30
|
-
this.localization = localization;
|
|
31
|
-
this.dialogService = dialogService;
|
|
32
|
-
}
|
|
33
|
-
set currentActiveSheet(value) {
|
|
34
|
-
this._currentActiveSheet = value;
|
|
35
|
-
}
|
|
36
|
-
get currentActiveSheet() {
|
|
37
|
-
return this._currentActiveSheet;
|
|
38
|
-
}
|
|
39
|
-
get activeSheet() {
|
|
40
|
-
return this.spreadsheet.activeSheet()?.name();
|
|
41
|
-
}
|
|
42
|
-
_currentActiveSheet;
|
|
43
|
-
notifySheetsChange(actionType, sheetInfo) {
|
|
44
|
-
const sheets = this.spreadsheet.sheets();
|
|
45
|
-
this.sheetsChanged.next({ sheets, sheet: sheetInfo, actionType });
|
|
46
|
-
}
|
|
47
|
-
handleErrorMessage(messageData) {
|
|
48
|
-
this.openDialog(messageData);
|
|
49
|
-
}
|
|
50
|
-
openDialog(messageData) {
|
|
51
|
-
let dialogContent;
|
|
52
|
-
let dialogTitle;
|
|
53
|
-
if (messageData.name === 'message') {
|
|
54
|
-
const localizationMsg = this.messageFor('invalidNameError');
|
|
55
|
-
let inputValue = messageData.text.split(' ').pop();
|
|
56
|
-
if (messageData.text.startsWith('Parse')) {
|
|
57
|
-
inputValue = inputValue.substring(0, inputValue.length - 1);
|
|
58
|
-
}
|
|
59
|
-
dialogContent = replaceMessagePlaceholder(localizationMsg, 'inputValue', inputValue);
|
|
60
|
-
}
|
|
61
|
-
else if (messageData.name === 'validationError') {
|
|
62
|
-
dialogContent = messageData.text;
|
|
63
|
-
dialogTitle = messageData.title;
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
dialogContent = this.messageFor(messageData.name);
|
|
67
|
-
}
|
|
68
|
-
const dialogSettings = {
|
|
69
|
-
appendTo: this.spreadsheetService.dialogContainer,
|
|
70
|
-
title: dialogTitle ?? this.messageFor('dialogError'),
|
|
71
|
-
content: dialogContent,
|
|
72
|
-
actions: [{
|
|
73
|
-
text: this.messageFor('dialogOk'),
|
|
74
|
-
themeColor: 'primary'
|
|
75
|
-
}],
|
|
76
|
-
width: 400,
|
|
77
|
-
actionsLayout: 'start'
|
|
78
|
-
};
|
|
79
|
-
const dialog = this.dialogService.open(dialogSettings);
|
|
80
|
-
this.spreadsheetService.spreadsheetComponent.closePopup();
|
|
81
|
-
const dialogInstance = dialog.dialog?.instance;
|
|
82
|
-
dialogInstance.action.pipe(take(1)).subscribe((event) => {
|
|
83
|
-
if (event.text === this.messageFor('dialogOk')) {
|
|
84
|
-
messageData.close();
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
dialogInstance.close.pipe(take(1)).subscribe(() => {
|
|
88
|
-
messageData.close();
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
messageFor(text) {
|
|
92
|
-
return this.localization.get(text);
|
|
93
|
-
}
|
|
94
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ErrorHandlingService, deps: [{ token: i1.SpreadsheetService }, { token: i2.LocalizationService }, { token: i3.DialogService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
95
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ErrorHandlingService });
|
|
96
|
-
}
|
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ErrorHandlingService, decorators: [{
|
|
98
|
-
type: Injectable
|
|
99
|
-
}], ctorParameters: () => [{ type: i1.SpreadsheetService }, { type: i2.LocalizationService }, { type: i3.DialogService }] });
|
|
@@ -1,146 +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 { Component, EventEmitter, Output, ViewChildren, QueryList, ElementRef, NgZone } from '@angular/core';
|
|
6
|
-
import { Keys, normalizeKeys } from '@progress/kendo-angular-common';
|
|
7
|
-
import { SpreadsheetService } from './spreadsheet.service';
|
|
8
|
-
import { take } from 'rxjs/operators';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "./spreadsheet.service";
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export class ListEditorComponent {
|
|
15
|
-
ngZone;
|
|
16
|
-
spreadsheetService;
|
|
17
|
-
data = [];
|
|
18
|
-
focusedIndex = 0;
|
|
19
|
-
itemSelect = new EventEmitter();
|
|
20
|
-
close = new EventEmitter();
|
|
21
|
-
listItems;
|
|
22
|
-
constructor(ngZone, spreadsheetService) {
|
|
23
|
-
this.ngZone = ngZone;
|
|
24
|
-
this.spreadsheetService = spreadsheetService;
|
|
25
|
-
}
|
|
26
|
-
ngAfterViewInit() {
|
|
27
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
28
|
-
this.spreadsheetService.spreadsheet.view.clipboard.blur();
|
|
29
|
-
this.focusItem(0);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
onItemClick(item) {
|
|
33
|
-
this.itemSelect.emit(item);
|
|
34
|
-
}
|
|
35
|
-
onKeyDown(event, index) {
|
|
36
|
-
const code = normalizeKeys(event);
|
|
37
|
-
const altKey = event.altKey;
|
|
38
|
-
switch (code) {
|
|
39
|
-
case Keys.ArrowDown:
|
|
40
|
-
case Keys.ArrowRight:
|
|
41
|
-
event.preventDefault();
|
|
42
|
-
this.focusNext();
|
|
43
|
-
break;
|
|
44
|
-
case Keys.ArrowUp:
|
|
45
|
-
if (altKey) {
|
|
46
|
-
this.closeList();
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
this.focusPrev();
|
|
50
|
-
}
|
|
51
|
-
break;
|
|
52
|
-
case Keys.ArrowLeft:
|
|
53
|
-
event.preventDefault();
|
|
54
|
-
this.focusPrev();
|
|
55
|
-
break;
|
|
56
|
-
case Keys.Enter:
|
|
57
|
-
case Keys.Space:
|
|
58
|
-
event.preventDefault();
|
|
59
|
-
this.onItemClick(this.data[index]);
|
|
60
|
-
break;
|
|
61
|
-
case Keys.Escape:
|
|
62
|
-
event.preventDefault();
|
|
63
|
-
this.closeList();
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
focusNext() {
|
|
68
|
-
if (this.focusedIndex + 1 === this.data.length) {
|
|
69
|
-
this.focusItem(0);
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
this.focusItem(this.focusedIndex + 1);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
focusPrev() {
|
|
76
|
-
if (this.focusedIndex - 1 < 0) {
|
|
77
|
-
this.focusItem(this.data.length - 1);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
this.focusItem(this.focusedIndex - 1);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
closeList() {
|
|
84
|
-
this.close.emit();
|
|
85
|
-
this.spreadsheetService.spreadsheet.view.clipboard.focus();
|
|
86
|
-
}
|
|
87
|
-
focusItem(index) {
|
|
88
|
-
if (this.data.length === 0) {
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
this.focusedIndex = index;
|
|
92
|
-
const items = this.listItems.toArray();
|
|
93
|
-
if (items[index]) {
|
|
94
|
-
items[index].nativeElement.focus();
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListEditorComponent, deps: [{ token: i0.NgZone }, { token: i1.SpreadsheetService }], target: i0.ɵɵFactoryTarget.Component });
|
|
98
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ListEditorComponent, isStandalone: true, selector: "ng-component", outputs: { itemSelect: "itemSelect", close: "close" }, viewQueries: [{ propertyName: "listItems", predicate: ["listItem"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
99
|
-
<ul class="k-list k-reset k-list-ul" role="listbox">
|
|
100
|
-
@for (item of data; track item; let i = $index) {
|
|
101
|
-
<li
|
|
102
|
-
role="option"
|
|
103
|
-
class="k-list-item"
|
|
104
|
-
[class.k-focus]="i === focusedIndex"
|
|
105
|
-
[attr.aria-selected]="i === focusedIndex"
|
|
106
|
-
[attr.tabindex]="i === focusedIndex ? 0 : -1"
|
|
107
|
-
(click)="onItemClick(item)"
|
|
108
|
-
(keydown)="onKeyDown($event, i)"
|
|
109
|
-
#listItem>
|
|
110
|
-
<span class="k-list-item-text">{{item.value}}</span>
|
|
111
|
-
</li>
|
|
112
|
-
}
|
|
113
|
-
</ul>
|
|
114
|
-
`, isInline: true });
|
|
115
|
-
}
|
|
116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListEditorComponent, decorators: [{
|
|
117
|
-
type: Component,
|
|
118
|
-
args: [{
|
|
119
|
-
template: `
|
|
120
|
-
<ul class="k-list k-reset k-list-ul" role="listbox">
|
|
121
|
-
@for (item of data; track item; let i = $index) {
|
|
122
|
-
<li
|
|
123
|
-
role="option"
|
|
124
|
-
class="k-list-item"
|
|
125
|
-
[class.k-focus]="i === focusedIndex"
|
|
126
|
-
[attr.aria-selected]="i === focusedIndex"
|
|
127
|
-
[attr.tabindex]="i === focusedIndex ? 0 : -1"
|
|
128
|
-
(click)="onItemClick(item)"
|
|
129
|
-
(keydown)="onKeyDown($event, i)"
|
|
130
|
-
#listItem>
|
|
131
|
-
<span class="k-list-item-text">{{item.value}}</span>
|
|
132
|
-
</li>
|
|
133
|
-
}
|
|
134
|
-
</ul>
|
|
135
|
-
`,
|
|
136
|
-
standalone: true,
|
|
137
|
-
imports: []
|
|
138
|
-
}]
|
|
139
|
-
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i1.SpreadsheetService }], propDecorators: { itemSelect: [{
|
|
140
|
-
type: Output
|
|
141
|
-
}], close: [{
|
|
142
|
-
type: Output
|
|
143
|
-
}], listItems: [{
|
|
144
|
-
type: ViewChildren,
|
|
145
|
-
args: ['listItem', { read: ElementRef }]
|
|
146
|
-
}] } });
|
|
@@ -1,30 +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, ElementRef, Renderer2 } from '@angular/core';
|
|
6
|
-
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export class MainMenuDirective {
|
|
12
|
-
host;
|
|
13
|
-
renderer;
|
|
14
|
-
constructor(host, renderer) {
|
|
15
|
-
this.host = host;
|
|
16
|
-
this.renderer = renderer;
|
|
17
|
-
}
|
|
18
|
-
ngAfterViewInit() {
|
|
19
|
-
isDocumentAvailable() && this.renderer.addClass(this.host.nativeElement.firstElementChild, 'k-spreadsheet-menu');
|
|
20
|
-
}
|
|
21
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MainMenuDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
22
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: MainMenuDirective, isStandalone: true, selector: "[kendoSpreadsheetMenu]", ngImport: i0 });
|
|
23
|
-
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MainMenuDirective, decorators: [{
|
|
25
|
-
type: Directive,
|
|
26
|
-
args: [{
|
|
27
|
-
selector: '[kendoSpreadsheetMenu]',
|
|
28
|
-
standalone: true
|
|
29
|
-
}]
|
|
30
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
@@ -1,5 +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
|
-
export {};
|
|
@@ -1,49 +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 { Injectable } from '@angular/core';
|
|
6
|
-
import { Subject } from 'rxjs';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
let spreadsheetCounter = 0;
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export class SpreadsheetService {
|
|
13
|
-
spreadsheet;
|
|
14
|
-
spreadsheetComponent;
|
|
15
|
-
sheetsChanged = new Subject();
|
|
16
|
-
onSheetsBarFocus = new Subject();
|
|
17
|
-
activeSheetChanged = new Subject();
|
|
18
|
-
selectionChanged = new Subject();
|
|
19
|
-
componentInitialized = new Subject();
|
|
20
|
-
dialogContainer;
|
|
21
|
-
constructor() {
|
|
22
|
-
spreadsheetCounter++;
|
|
23
|
-
}
|
|
24
|
-
set currentActiveSheet(value) {
|
|
25
|
-
this._currentActiveSheet = value;
|
|
26
|
-
}
|
|
27
|
-
get currentActiveSheet() {
|
|
28
|
-
return this._currentActiveSheet;
|
|
29
|
-
}
|
|
30
|
-
get activeSheet() {
|
|
31
|
-
return this.spreadsheet.activeSheet()?.name();
|
|
32
|
-
}
|
|
33
|
-
get formulaListId() {
|
|
34
|
-
return `k-spreadsheet-${spreadsheetCounter}-formula-list`;
|
|
35
|
-
}
|
|
36
|
-
get tablistId() {
|
|
37
|
-
return `k-spreadsheet-${spreadsheetCounter}-tablist`;
|
|
38
|
-
}
|
|
39
|
-
_currentActiveSheet;
|
|
40
|
-
notifySheetsChange(actionType, sheetInfo) {
|
|
41
|
-
const sheets = this.spreadsheet.sheets();
|
|
42
|
-
this.sheetsChanged.next({ sheets, sheet: sheetInfo, actionType });
|
|
43
|
-
}
|
|
44
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
45
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetService });
|
|
46
|
-
}
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetService, decorators: [{
|
|
48
|
-
type: Injectable
|
|
49
|
-
}], ctorParameters: () => [] });
|
package/esm2022/directives.mjs
DELETED
|
@@ -1,94 +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 { SpreadsheetComponent } from './spreadsheet.component';
|
|
6
|
-
import { SpreadsheetBoldDirective } from './tools/typographical-emphasis/bold-tool.directive';
|
|
7
|
-
import { SpreadsheetItalicDirective } from './tools/typographical-emphasis/italic-tool.directive';
|
|
8
|
-
import { SpreadsheetUndoDirective } from './tools/history/undo-tool';
|
|
9
|
-
import { SpreadsheetRedoDirective } from './tools/history/redo-tool';
|
|
10
|
-
import { SpreadsheetUnderlineDirective } from './tools/typographical-emphasis/underline-tool.directive';
|
|
11
|
-
import { SpreadsheetLoadFileComponent } from './tools/load-file.component';
|
|
12
|
-
import { SpreadsheetSaveFileDirective } from './tools/save-file-tool.directive';
|
|
13
|
-
import { CustomMessagesComponent } from './localization/custom-messages.component';
|
|
14
|
-
import { SpreadsheetFormatDirective } from './tools/format-tool.directive';
|
|
15
|
-
import { SpreadsheetFontFamilyComponent } from './tools/font-family/spreadsheet-fontfamily-tool.component';
|
|
16
|
-
import { SpreadsheetFontSizeComponent } from './tools/font-size/spreadsheet-fontsize-tool.component';
|
|
17
|
-
import { SpreadsheetBackColorComponent } from './tools/colorpicker/spreadsheet-backcolor.component';
|
|
18
|
-
import { SpreadsheetForeColorComponent } from './tools/colorpicker/spreadsheet-forecolor.component';
|
|
19
|
-
import { SpreadsheetGridLinesDirective } from './tools/gridlines-tool.directive';
|
|
20
|
-
import { SpreadsheetAddColumnLeftButtonDirective } from './tools/tables/add-column-left-button.directive';
|
|
21
|
-
import { SpreadsheetAddColumnRightButtonDirective } from './tools/tables/add-column-right-button.directive';
|
|
22
|
-
import { SpreadsheetAddRowAboveButtonDirective } from './tools/tables/add-row-above-button.directive';
|
|
23
|
-
import { SpreadsheetAddRowBelowButtonDirective } from './tools/tables/add-row-below-button.directive';
|
|
24
|
-
import { SpreadsheetDeleteColumnButtonDirective } from './tools/tables/delete-column-button.directive';
|
|
25
|
-
import { SpreadsheetDeleteRowButtonDirective } from './tools/tables/delete-row-button.directive';
|
|
26
|
-
import { SpreadsheetTextAlignDirective } from './tools/align/align-tool.directive';
|
|
27
|
-
import { SpreadsheetTextWrapDirective } from './tools/text-wrap-tool.directive';
|
|
28
|
-
import { SpreadsheetMergeDirective } from './tools/tables/merge-tool.directive';
|
|
29
|
-
import { SpreadsheetInsertLinkDirective } from './tools/insert/insert-link-tool.directive';
|
|
30
|
-
import { SpreadsheetIncreaseFontSizeDirective } from './tools/font-size/increase-font-tool.directive';
|
|
31
|
-
import { SpreadsheetDecreaseFontSizeDirective } from './tools/font-size/decrease-font-tool.directive';
|
|
32
|
-
import { SpreadsheetIncreaseDecimalDirective } from './tools/increase-decimal-tool.directive';
|
|
33
|
-
import { SpreadsheetDecreaseDecimalDirective } from './tools/decrease-decimal-tool.directive';
|
|
34
|
-
import { SpreadsheetHorizontalTextAlignDirective } from './tools/align/horizontal-align-tool.directive';
|
|
35
|
-
import { SpreadsheetVerticalTextAlignDirective } from './tools/align/vertical-align-tool.directive';
|
|
36
|
-
import { SpreadsheetDataValidationDirective } from './tools/data-validation-tool.directive';
|
|
37
|
-
import { SpreadsheetFilterDirective } from './tools/filter-sort/filter-tool.directive';
|
|
38
|
-
import { SpreadsheetSortDirective } from './tools/filter-sort/sort-tool.directive';
|
|
39
|
-
/**
|
|
40
|
-
* Use this utility array to access all `@progress/kendo-angular-spreadsheet`-related components and directives in a standalone Angular component.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```typescript
|
|
44
|
-
* import { Component } from '@angular/core';
|
|
45
|
-
* import { KENDO_SPREADSHEET } from '@progress/kendo-angular-spreadsheet';
|
|
46
|
-
*
|
|
47
|
-
* @Component({
|
|
48
|
-
* selector: 'my-app',
|
|
49
|
-
* standalone: true,
|
|
50
|
-
* imports: [KENDO_SPREADSHEET],
|
|
51
|
-
* template: `<kendo-spreadsheet [sheets]="sheets"></kendo-spreadsheet>`
|
|
52
|
-
* })
|
|
53
|
-
*
|
|
54
|
-
* export class AppComponent {
|
|
55
|
-
* public sheets = SheetDescriptor[] = sampleSheet;
|
|
56
|
-
* }
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
export const KENDO_SPREADSHEET = [
|
|
60
|
-
SpreadsheetComponent,
|
|
61
|
-
CustomMessagesComponent,
|
|
62
|
-
SpreadsheetBoldDirective,
|
|
63
|
-
SpreadsheetDataValidationDirective,
|
|
64
|
-
SpreadsheetItalicDirective,
|
|
65
|
-
SpreadsheetUnderlineDirective,
|
|
66
|
-
SpreadsheetLoadFileComponent,
|
|
67
|
-
SpreadsheetSaveFileDirective,
|
|
68
|
-
SpreadsheetFormatDirective,
|
|
69
|
-
SpreadsheetUndoDirective,
|
|
70
|
-
SpreadsheetRedoDirective,
|
|
71
|
-
SpreadsheetFontFamilyComponent,
|
|
72
|
-
SpreadsheetFontSizeComponent,
|
|
73
|
-
SpreadsheetBackColorComponent,
|
|
74
|
-
SpreadsheetForeColorComponent,
|
|
75
|
-
SpreadsheetGridLinesDirective,
|
|
76
|
-
SpreadsheetAddColumnLeftButtonDirective,
|
|
77
|
-
SpreadsheetAddColumnRightButtonDirective,
|
|
78
|
-
SpreadsheetAddRowAboveButtonDirective,
|
|
79
|
-
SpreadsheetAddRowBelowButtonDirective,
|
|
80
|
-
SpreadsheetDeleteColumnButtonDirective,
|
|
81
|
-
SpreadsheetDeleteRowButtonDirective,
|
|
82
|
-
SpreadsheetTextAlignDirective,
|
|
83
|
-
SpreadsheetTextWrapDirective,
|
|
84
|
-
SpreadsheetMergeDirective,
|
|
85
|
-
SpreadsheetInsertLinkDirective,
|
|
86
|
-
SpreadsheetIncreaseFontSizeDirective,
|
|
87
|
-
SpreadsheetDecreaseFontSizeDirective,
|
|
88
|
-
SpreadsheetIncreaseDecimalDirective,
|
|
89
|
-
SpreadsheetDecreaseDecimalDirective,
|
|
90
|
-
SpreadsheetHorizontalTextAlignDirective,
|
|
91
|
-
SpreadsheetVerticalTextAlignDirective,
|
|
92
|
-
SpreadsheetFilterDirective,
|
|
93
|
-
SpreadsheetSortDirective
|
|
94
|
-
];
|
|
@@ -1,26 +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, Optional, TemplateRef } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export class FilterMenuItemContentTemplateDirective {
|
|
11
|
-
templateRef;
|
|
12
|
-
constructor(templateRef) {
|
|
13
|
-
this.templateRef = templateRef;
|
|
14
|
-
}
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterMenuItemContentTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: FilterMenuItemContentTemplateDirective, isStandalone: true, selector: "[kendoSpreadsheetFilterMenuItemContentTemplate]", ngImport: i0 });
|
|
17
|
-
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FilterMenuItemContentTemplateDirective, decorators: [{
|
|
19
|
-
type: Directive,
|
|
20
|
-
args: [{
|
|
21
|
-
selector: '[kendoSpreadsheetFilterMenuItemContentTemplate]',
|
|
22
|
-
standalone: true
|
|
23
|
-
}]
|
|
24
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
25
|
-
type: Optional
|
|
26
|
-
}] }] });
|