@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,65 +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 { ToolBarDropDownButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
7
|
-
import { SpreadsheetLocalizationService } from '../localization/spreadsheet-localization.service';
|
|
8
|
-
import { SpreadsheetService } from '../common/spreadsheet.service';
|
|
9
|
-
import { commandIcons, commandSVGIcons } from './shared/command-icons';
|
|
10
|
-
import { FORMATS } from './shared/constants';
|
|
11
|
-
import { Subscription } from 'rxjs';
|
|
12
|
-
import { SpreadsheetToolsService } from './tools.service';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
import * as i1 from "@progress/kendo-angular-toolbar";
|
|
15
|
-
import * as i2 from "../localization/spreadsheet-localization.service";
|
|
16
|
-
import * as i3 from "../common/spreadsheet.service";
|
|
17
|
-
import * as i4 from "./tools.service";
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
export class SpreadsheetFormatDirective {
|
|
22
|
-
host;
|
|
23
|
-
spreadsheetService;
|
|
24
|
-
toolsService;
|
|
25
|
-
data = FORMATS;
|
|
26
|
-
commandName = 'format';
|
|
27
|
-
subs = new Subscription();
|
|
28
|
-
constructor(host, localization, spreadsheetService, toolsService) {
|
|
29
|
-
this.host = host;
|
|
30
|
-
this.spreadsheetService = spreadsheetService;
|
|
31
|
-
this.toolsService = toolsService;
|
|
32
|
-
host.svgIcon = commandSVGIcons[this.commandName];
|
|
33
|
-
host.icon = commandIcons[this.commandName];
|
|
34
|
-
host.arrowIcon = true;
|
|
35
|
-
host.fillMode = 'flat';
|
|
36
|
-
host.data = this.data;
|
|
37
|
-
this.subs.add(host.itemClick.subscribe((e) => this.onItemClick(e)));
|
|
38
|
-
host.title = localization.get(this.commandName);
|
|
39
|
-
}
|
|
40
|
-
ngOnInit() {
|
|
41
|
-
this.subs.add(this.toolsService.stateChange.subscribe(state => this.host.data.forEach(i => i.cssClass = i.value === state[this.commandName] ? 'k-selected' : '')));
|
|
42
|
-
}
|
|
43
|
-
ngOnDestroy() {
|
|
44
|
-
this.subs.unsubscribe();
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
onItemClick = (item) => {
|
|
50
|
-
const value = item.value || null;
|
|
51
|
-
const options = {
|
|
52
|
-
command: 'PropertyChangeCommand', options: { property: this.commandName, value }
|
|
53
|
-
};
|
|
54
|
-
this.spreadsheetService.spreadsheet.executeCommand(options);
|
|
55
|
-
};
|
|
56
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetFormatDirective, deps: [{ token: i1.ToolBarDropDownButtonComponent }, { token: i2.SpreadsheetLocalizationService }, { token: i3.SpreadsheetService }, { token: i4.SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
57
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SpreadsheetFormatDirective, isStandalone: true, selector: "[kendoSpreadsheetFormat]", ngImport: i0 });
|
|
58
|
-
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetFormatDirective, decorators: [{
|
|
60
|
-
type: Directive,
|
|
61
|
-
args: [{
|
|
62
|
-
selector: '[kendoSpreadsheetFormat]',
|
|
63
|
-
standalone: true
|
|
64
|
-
}]
|
|
65
|
-
}], ctorParameters: () => [{ type: i1.ToolBarDropDownButtonComponent }, { type: i2.SpreadsheetLocalizationService }, { type: i3.SpreadsheetService }, { type: i4.SpreadsheetToolsService }] });
|
|
@@ -1,47 +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 SpreadsheetGridLinesDirective extends SpreadsheetCommandButton {
|
|
20
|
-
constructor(button, localization, spreadsheetService, toolsService) {
|
|
21
|
-
super('gridLines', button, localization, spreadsheetService, toolsService, {
|
|
22
|
-
command: 'GridLinesChangeCommand',
|
|
23
|
-
options: { property: 'gridLines',
|
|
24
|
-
value: !button.selected
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
clickHandler() {
|
|
29
|
-
const sheet = this.spreadsheetService.spreadsheet.activeSheet();
|
|
30
|
-
if (sheet) {
|
|
31
|
-
const value = !sheet.showGridLines();
|
|
32
|
-
const options = {
|
|
33
|
-
command: 'GridLinesChangeCommand', options: { property: 'gridLines', value }
|
|
34
|
-
};
|
|
35
|
-
this.spreadsheetService.spreadsheet.executeCommand(options);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetGridLinesDirective, deps: [{ token: i1.ToolBarButtonComponent }, { token: i2.SpreadsheetLocalizationService }, { token: i3.SpreadsheetService }, { token: i4.SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
39
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SpreadsheetGridLinesDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetGridLines]", usesInheritance: true, ngImport: i0 });
|
|
40
|
-
}
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetGridLinesDirective, decorators: [{
|
|
42
|
-
type: Directive,
|
|
43
|
-
args: [{
|
|
44
|
-
selector: 'kendo-toolbar-button[kendoSpreadsheetGridLines]',
|
|
45
|
-
standalone: true
|
|
46
|
-
}]
|
|
47
|
-
}], 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 SpreadsheetRedoDirective extends SpreadsheetCommandButton {
|
|
20
|
-
constructor(button, localization, spreadsheetService, toolsService) {
|
|
21
|
-
super('redo', button, localization, spreadsheetService, toolsService, {
|
|
22
|
-
options: { property: 'redo' }
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
clickHandler() {
|
|
26
|
-
this.spreadsheetService.spreadsheet.workbook.undoRedoStack['redo']();
|
|
27
|
-
}
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetRedoDirective, 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: SpreadsheetRedoDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetRedo]", usesInheritance: true, ngImport: i0 });
|
|
30
|
-
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetRedoDirective, decorators: [{
|
|
32
|
-
type: Directive,
|
|
33
|
-
args: [{
|
|
34
|
-
selector: 'kendo-toolbar-button[kendoSpreadsheetRedo]',
|
|
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 SpreadsheetUndoDirective extends SpreadsheetCommandButton {
|
|
20
|
-
constructor(button, localization, spreadsheetService, toolsService) {
|
|
21
|
-
super('undo', button, localization, spreadsheetService, toolsService, {
|
|
22
|
-
options: { property: 'undo' }
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
clickHandler() {
|
|
26
|
-
this.spreadsheetService.spreadsheet.workbook.undoRedoStack['undo']();
|
|
27
|
-
}
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetUndoDirective, 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: SpreadsheetUndoDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetUndo]", usesInheritance: true, ngImport: i0 });
|
|
30
|
-
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetUndoDirective, decorators: [{
|
|
32
|
-
type: Directive,
|
|
33
|
-
args: [{
|
|
34
|
-
selector: 'kendo-toolbar-button[kendoSpreadsheetUndo]',
|
|
35
|
-
standalone: true
|
|
36
|
-
}]
|
|
37
|
-
}], ctorParameters: () => [{ type: i1.ToolBarButtonComponent }, { type: i2.SpreadsheetLocalizationService }, { type: i3.SpreadsheetService }, { type: i4.SpreadsheetToolsService }] });
|
|
@@ -1,41 +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 SpreadsheetIncreaseDecimalDirective extends SpreadsheetCommandButton {
|
|
20
|
-
constructor(button, localization, spreadsheetService, toolsService) {
|
|
21
|
-
super('increaseDecimal', button, localization, spreadsheetService, toolsService, {
|
|
22
|
-
command: 'AdjustDecimalsCommand'
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
clickHandler() {
|
|
26
|
-
const options = {
|
|
27
|
-
command: 'AdjustDecimalsCommand',
|
|
28
|
-
options: { value: 1 }
|
|
29
|
-
};
|
|
30
|
-
this.spreadsheetService.spreadsheet.executeCommand(options);
|
|
31
|
-
}
|
|
32
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetIncreaseDecimalDirective, deps: [{ token: i1.ToolBarButtonComponent }, { token: i2.SpreadsheetLocalizationService }, { token: i3.SpreadsheetService }, { token: i4.SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
33
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SpreadsheetIncreaseDecimalDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetIncreaseDecimal]", usesInheritance: true, ngImport: i0 });
|
|
34
|
-
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetIncreaseDecimalDirective, decorators: [{
|
|
36
|
-
type: Directive,
|
|
37
|
-
args: [{
|
|
38
|
-
selector: 'kendo-toolbar-button[kendoSpreadsheetIncreaseDecimal]',
|
|
39
|
-
standalone: true
|
|
40
|
-
}]
|
|
41
|
-
}], ctorParameters: () => [{ type: i1.ToolBarButtonComponent }, { type: i2.SpreadsheetLocalizationService }, { type: i3.SpreadsheetService }, { type: i4.SpreadsheetToolsService }] });
|
package/esm2022/tools/index.mjs
DELETED
|
@@ -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
|
-
export { SpreadsheetBackColorComponent } from './colorpicker/spreadsheet-backcolor.component';
|
|
6
|
-
export { SpreadsheetForeColorComponent } from './colorpicker/spreadsheet-forecolor.component';
|
|
7
|
-
export { SpreadsheetFontFamilyComponent } from './font-family/spreadsheet-fontfamily-tool.component';
|
|
8
|
-
export { SpreadsheetFontSizeComponent } from './font-size/spreadsheet-fontsize-tool.component';
|
|
9
|
-
export { SpreadsheetRedoDirective } from './history/redo-tool';
|
|
10
|
-
export { SpreadsheetUndoDirective } from './history/undo-tool';
|
|
11
|
-
export { SpreadsheetBoldDirective } from './typographical-emphasis/bold-tool.directive';
|
|
12
|
-
export { SpreadsheetDataValidationDirective } from './data-validation-tool.directive';
|
|
13
|
-
export { SpreadsheetItalicDirective } from './typographical-emphasis/italic-tool.directive';
|
|
14
|
-
export { SpreadsheetUnderlineDirective } from './typographical-emphasis/underline-tool.directive';
|
|
15
|
-
export { SpreadsheetTextAlignDirective } from './align/align-tool.directive';
|
|
16
|
-
export { SpreadsheetFormatDirective } from './format-tool.directive';
|
|
17
|
-
export { SpreadsheetGridLinesDirective } from './gridlines-tool.directive';
|
|
18
|
-
export { SpreadsheetLoadFileComponent } from './load-file.component';
|
|
19
|
-
export { SpreadsheetSaveFileDirective } from './save-file-tool.directive';
|
|
20
|
-
export { SpreadsheetTextWrapDirective } from './text-wrap-tool.directive';
|
|
21
|
-
export { SpreadsheetInsertLinkDirective } from './insert/insert-link-tool.directive';
|
|
22
|
-
export { SpreadsheetIncreaseFontSizeDirective } from './font-size/increase-font-tool.directive';
|
|
23
|
-
export { SpreadsheetDecreaseFontSizeDirective } from './font-size/decrease-font-tool.directive';
|
|
24
|
-
export { SpreadsheetIncreaseDecimalDirective } from './increase-decimal-tool.directive';
|
|
25
|
-
export { SpreadsheetFilterDirective } from './filter-sort/filter-tool.directive';
|
|
26
|
-
export { SpreadsheetDecreaseDecimalDirective } from './decrease-decimal-tool.directive';
|
|
27
|
-
export { SpreadsheetHorizontalTextAlignDirective } from './align/horizontal-align-tool.directive';
|
|
28
|
-
export { SpreadsheetVerticalTextAlignDirective } from './align/vertical-align-tool.directive';
|
|
29
|
-
export { SpreadsheetSortDirective } from './filter-sort/sort-tool.directive';
|
|
30
|
-
export * from './tables';
|
|
@@ -1,53 +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 } from '@angular/core';
|
|
6
|
-
import { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
7
|
-
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
8
|
-
import { LabelComponent } from '@progress/kendo-angular-label';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "@progress/kendo-angular-dialog";
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export class InsertLinkDialogComponent extends DialogContentBase {
|
|
15
|
-
dialog;
|
|
16
|
-
urlLink = '';
|
|
17
|
-
title;
|
|
18
|
-
constructor(dialog) {
|
|
19
|
-
super(dialog);
|
|
20
|
-
this.dialog = dialog;
|
|
21
|
-
}
|
|
22
|
-
setData(args) {
|
|
23
|
-
this.urlLink = args.link;
|
|
24
|
-
}
|
|
25
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InsertLinkDialogComponent, deps: [{ token: i1.DialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: InsertLinkDialogComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
27
|
-
<form class="k-form k-form-md" method="dialog">
|
|
28
|
-
<div class="k-form-field">
|
|
29
|
-
<kendo-label [for]="textbox" text="URL"></kendo-label>
|
|
30
|
-
<kendo-textbox #textbox
|
|
31
|
-
[(value)]="urlLink">
|
|
32
|
-
</kendo-textbox>
|
|
33
|
-
</div>
|
|
34
|
-
</form>
|
|
35
|
-
`, isInline: true, dependencies: [{ kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: 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", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }] });
|
|
36
|
-
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InsertLinkDialogComponent, decorators: [{
|
|
38
|
-
type: Component,
|
|
39
|
-
args: [{
|
|
40
|
-
template: `
|
|
41
|
-
<form class="k-form k-form-md" method="dialog">
|
|
42
|
-
<div class="k-form-field">
|
|
43
|
-
<kendo-label [for]="textbox" text="URL"></kendo-label>
|
|
44
|
-
<kendo-textbox #textbox
|
|
45
|
-
[(value)]="urlLink">
|
|
46
|
-
</kendo-textbox>
|
|
47
|
-
</div>
|
|
48
|
-
</form>
|
|
49
|
-
`,
|
|
50
|
-
standalone: true,
|
|
51
|
-
imports: [LabelComponent, TextBoxComponent]
|
|
52
|
-
}]
|
|
53
|
-
}], ctorParameters: () => [{ type: i1.DialogRef }] });
|
|
@@ -1,97 +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 { take } from 'rxjs/operators';
|
|
7
|
-
import { isPresent } from '@progress/kendo-angular-common';
|
|
8
|
-
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
9
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
10
|
-
import { SpreadsheetLocalizationService } from '../../localization/spreadsheet-localization.service';
|
|
11
|
-
import { SpreadsheetService } from '../../common/spreadsheet.service';
|
|
12
|
-
import { SpreadsheetToolsService } from '../tools.service';
|
|
13
|
-
import { SpreadsheetCommandButton } from '../shared/spreadsheet-command-button';
|
|
14
|
-
import { InsertLinkDialogComponent } from './insert-link-dialog.component';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
import * as i1 from "@progress/kendo-angular-toolbar";
|
|
17
|
-
import * as i2 from "../../localization/spreadsheet-localization.service";
|
|
18
|
-
import * as i3 from "../../common/spreadsheet.service";
|
|
19
|
-
import * as i4 from "../tools.service";
|
|
20
|
-
import * as i5 from "@progress/kendo-angular-dialog";
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export class SpreadsheetInsertLinkDirective extends SpreadsheetCommandButton {
|
|
25
|
-
dialogService;
|
|
26
|
-
currentRange;
|
|
27
|
-
constructor(button, localization, spreadsheetService, toolsService, dialogService) {
|
|
28
|
-
super('insertLink', button, localization, spreadsheetService, toolsService, {
|
|
29
|
-
command: 'HyperlinkCommand'
|
|
30
|
-
});
|
|
31
|
-
this.dialogService = dialogService;
|
|
32
|
-
this.subs.add(spreadsheetService.selectionChanged.subscribe(range => this.currentRange = range));
|
|
33
|
-
}
|
|
34
|
-
ngOnDestroy() {
|
|
35
|
-
this.subs.unsubscribe();
|
|
36
|
-
}
|
|
37
|
-
clickHandler() {
|
|
38
|
-
const sheet = this.spreadsheetService.spreadsheet.activeSheet();
|
|
39
|
-
if (sheet) {
|
|
40
|
-
this.openDialog();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @hidden
|
|
45
|
-
*/
|
|
46
|
-
openDialog() {
|
|
47
|
-
const hasLink = isPresent(this.currentRange?.link());
|
|
48
|
-
const dialogSettings = {
|
|
49
|
-
appendTo: this.spreadsheetService.dialogContainer,
|
|
50
|
-
title: this.localization.get(this.command),
|
|
51
|
-
content: InsertLinkDialogComponent,
|
|
52
|
-
actions: [{
|
|
53
|
-
text: this.localization.get('dialogInsert'),
|
|
54
|
-
themeColor: 'primary'
|
|
55
|
-
}, {
|
|
56
|
-
text: this.localization.get('dialogCancel')
|
|
57
|
-
},
|
|
58
|
-
'spacer', {
|
|
59
|
-
text: this.localization.get('dialogRemoveLink'),
|
|
60
|
-
themeColor: 'primary',
|
|
61
|
-
fillMode: 'clear',
|
|
62
|
-
cssClass: hasLink ? '' : 'k-disabled'
|
|
63
|
-
}],
|
|
64
|
-
actionsLayout: 'start',
|
|
65
|
-
width: 400,
|
|
66
|
-
autoFocusedElement: '.k-textbox > .k-input-inner'
|
|
67
|
-
};
|
|
68
|
-
const dialog = this.dialogService.open(dialogSettings);
|
|
69
|
-
const dialogInstance = dialog.dialog.instance;
|
|
70
|
-
const dialogContent = dialog.content.instance;
|
|
71
|
-
if (hasLink) {
|
|
72
|
-
dialogContent.setData({ link: this.currentRange?.link() });
|
|
73
|
-
}
|
|
74
|
-
dialogInstance.action.pipe(take(1)).subscribe((event) => {
|
|
75
|
-
if (event.text === this.localization.get('dialogCancel')) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
let link = null;
|
|
79
|
-
if (event.text === this.localization.get('dialogInsert')) {
|
|
80
|
-
link = dialogContent.urlLink || null;
|
|
81
|
-
}
|
|
82
|
-
this.spreadsheetService.spreadsheet.executeCommand({
|
|
83
|
-
command: 'HyperlinkCommand',
|
|
84
|
-
options: { link }
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetInsertLinkDirective, deps: [{ token: i1.ToolBarButtonComponent }, { token: i2.SpreadsheetLocalizationService }, { token: i3.SpreadsheetService }, { token: i4.SpreadsheetToolsService }, { token: i5.DialogService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
89
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SpreadsheetInsertLinkDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoSpreadsheetInsertLink]", usesInheritance: true, ngImport: i0 });
|
|
90
|
-
}
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetInsertLinkDirective, decorators: [{
|
|
92
|
-
type: Directive,
|
|
93
|
-
args: [{
|
|
94
|
-
selector: 'kendo-toolbar-button[kendoSpreadsheetInsertLink]',
|
|
95
|
-
standalone: true
|
|
96
|
-
}]
|
|
97
|
-
}], ctorParameters: () => [{ type: i1.ToolBarButtonComponent }, { type: i2.SpreadsheetLocalizationService }, { type: i3.SpreadsheetService }, { type: i4.SpreadsheetToolsService }, { type: i5.DialogService }] });
|
|
@@ -1,226 +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, ElementRef, Inject, ViewChild, forwardRef } from '@angular/core';
|
|
6
|
-
import { ToolBarComponent, ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
|
|
7
|
-
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
8
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
9
|
-
import { SpreadsheetService } from '../common/spreadsheet.service';
|
|
10
|
-
import { commandIcons, commandSVGIcons } from './shared/command-icons';
|
|
11
|
-
import { SpreadsheetLocalizationService } from '../localization/spreadsheet-localization.service';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "../localization/spreadsheet-localization.service";
|
|
14
|
-
import * as i2 from "../common/spreadsheet.service";
|
|
15
|
-
import * as i3 from "@progress/kendo-angular-toolbar";
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export class SpreadsheetLoadFileComponent extends ToolBarToolComponent {
|
|
20
|
-
localization;
|
|
21
|
-
spreadsheetService;
|
|
22
|
-
toolbar;
|
|
23
|
-
overflowButtonElement;
|
|
24
|
-
button;
|
|
25
|
-
icon = commandIcons['folderOpen'];
|
|
26
|
-
svgIcon = commandSVGIcons['folderOpen'];
|
|
27
|
-
tabindex = -1;
|
|
28
|
-
constructor(localization, spreadsheetService, toolbar) {
|
|
29
|
-
super();
|
|
30
|
-
this.localization = localization;
|
|
31
|
-
this.spreadsheetService = spreadsheetService;
|
|
32
|
-
this.toolbar = toolbar;
|
|
33
|
-
this.isBuiltInTool = true;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
*/
|
|
38
|
-
messageFor(key) {
|
|
39
|
-
return this.localization.get(key);
|
|
40
|
-
}
|
|
41
|
-
onFileSelect = (e) => {
|
|
42
|
-
const file = e.target.files[0];
|
|
43
|
-
if (file) {
|
|
44
|
-
this.spreadsheetService.spreadsheet.executeCommand({ command: 'OpenCommand', options: { file } });
|
|
45
|
-
e.target.value = null;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* @hidden
|
|
50
|
-
*/
|
|
51
|
-
canFocus() {
|
|
52
|
-
return true;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* @hidden
|
|
56
|
-
*/
|
|
57
|
-
focus() {
|
|
58
|
-
this.tabindex = 0;
|
|
59
|
-
if (this.overflows) {
|
|
60
|
-
this.overflowButtonElement.nativeElement.focus();
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
this.button.focus();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* @hidden
|
|
68
|
-
*/
|
|
69
|
-
handleKey() {
|
|
70
|
-
this.tabindex = -1;
|
|
71
|
-
return false;
|
|
72
|
-
}
|
|
73
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetLoadFileComponent, deps: [{ token: i1.SpreadsheetLocalizationService }, { token: i2.SpreadsheetService }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
74
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: SpreadsheetLoadFileComponent, isStandalone: true, selector: "kendo-spreadsheet-load-file-tool", providers: [
|
|
75
|
-
{
|
|
76
|
-
provide: ToolBarToolComponent,
|
|
77
|
-
useExisting: forwardRef(() => SpreadsheetLoadFileComponent),
|
|
78
|
-
},
|
|
79
|
-
], viewQueries: [{ propertyName: "overflowButtonElement", first: true, predicate: ["overflowButton"], descendants: true, read: ElementRef }, { propertyName: "button", first: true, predicate: ["button"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
80
|
-
<ng-template #toolbarTemplate>
|
|
81
|
-
<button
|
|
82
|
-
#button
|
|
83
|
-
type="button"
|
|
84
|
-
kendoButton
|
|
85
|
-
[title]="messageFor('loadFile')"
|
|
86
|
-
fillMode="flat"
|
|
87
|
-
[icon]="icon"
|
|
88
|
-
[svgIcon]="svgIcon"
|
|
89
|
-
(click)="fileSelectEl.click()"></button>
|
|
90
|
-
<input
|
|
91
|
-
#fileSelectEl
|
|
92
|
-
type="file"
|
|
93
|
-
(change)="onFileSelect($event)"
|
|
94
|
-
[style.display]="'none'"
|
|
95
|
-
aria-hidden="true"
|
|
96
|
-
accept=".xlsx,.XLSX" />
|
|
97
|
-
</ng-template>
|
|
98
|
-
<ng-template #popupTemplate>
|
|
99
|
-
<div
|
|
100
|
-
#overflowButton
|
|
101
|
-
tabindex="-1"
|
|
102
|
-
role="menuitem"
|
|
103
|
-
class="k-item k-menu-item"
|
|
104
|
-
(click)="toolbar.toggle(false); popupFileSelectEl.click()">
|
|
105
|
-
<span
|
|
106
|
-
class="k-link k-menu-link">
|
|
107
|
-
<kendo-icon-wrapper
|
|
108
|
-
[name]="icon"
|
|
109
|
-
[svgIcon]="svgIcon"
|
|
110
|
-
></kendo-icon-wrapper>
|
|
111
|
-
<span class="k-menu-link-text">{{messageFor('loadFile')}}</span>
|
|
112
|
-
</span>
|
|
113
|
-
<input
|
|
114
|
-
#popupFileSelectEl
|
|
115
|
-
type="file"
|
|
116
|
-
(change)="onFileSelect($event)"
|
|
117
|
-
[style.display]="'none'"
|
|
118
|
-
aria-hidden="true"
|
|
119
|
-
accept=".xlsx,.XLSX" />
|
|
120
|
-
</div>
|
|
121
|
-
</ng-template>
|
|
122
|
-
<ng-template #sectionTemplate>
|
|
123
|
-
<button
|
|
124
|
-
#button
|
|
125
|
-
type="button"
|
|
126
|
-
kendoButton
|
|
127
|
-
[title]="messageFor('loadFile')"
|
|
128
|
-
fillMode="flat"
|
|
129
|
-
[icon]="icon"
|
|
130
|
-
[svgIcon]="svgIcon"
|
|
131
|
-
(click)="fileSelectEl.click()"></button>
|
|
132
|
-
<input
|
|
133
|
-
#fileSelectEl
|
|
134
|
-
type="file"
|
|
135
|
-
(change)="onFileSelect($event)"
|
|
136
|
-
[style.display]="'none'"
|
|
137
|
-
aria-hidden="true"
|
|
138
|
-
accept=".xlsx,.XLSX" />
|
|
139
|
-
</ng-template>
|
|
140
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
141
|
-
}
|
|
142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetLoadFileComponent, decorators: [{
|
|
143
|
-
type: Component,
|
|
144
|
-
args: [{
|
|
145
|
-
selector: 'kendo-spreadsheet-load-file-tool',
|
|
146
|
-
providers: [
|
|
147
|
-
{
|
|
148
|
-
provide: ToolBarToolComponent,
|
|
149
|
-
useExisting: forwardRef(() => SpreadsheetLoadFileComponent),
|
|
150
|
-
},
|
|
151
|
-
],
|
|
152
|
-
template: `
|
|
153
|
-
<ng-template #toolbarTemplate>
|
|
154
|
-
<button
|
|
155
|
-
#button
|
|
156
|
-
type="button"
|
|
157
|
-
kendoButton
|
|
158
|
-
[title]="messageFor('loadFile')"
|
|
159
|
-
fillMode="flat"
|
|
160
|
-
[icon]="icon"
|
|
161
|
-
[svgIcon]="svgIcon"
|
|
162
|
-
(click)="fileSelectEl.click()"></button>
|
|
163
|
-
<input
|
|
164
|
-
#fileSelectEl
|
|
165
|
-
type="file"
|
|
166
|
-
(change)="onFileSelect($event)"
|
|
167
|
-
[style.display]="'none'"
|
|
168
|
-
aria-hidden="true"
|
|
169
|
-
accept=".xlsx,.XLSX" />
|
|
170
|
-
</ng-template>
|
|
171
|
-
<ng-template #popupTemplate>
|
|
172
|
-
<div
|
|
173
|
-
#overflowButton
|
|
174
|
-
tabindex="-1"
|
|
175
|
-
role="menuitem"
|
|
176
|
-
class="k-item k-menu-item"
|
|
177
|
-
(click)="toolbar.toggle(false); popupFileSelectEl.click()">
|
|
178
|
-
<span
|
|
179
|
-
class="k-link k-menu-link">
|
|
180
|
-
<kendo-icon-wrapper
|
|
181
|
-
[name]="icon"
|
|
182
|
-
[svgIcon]="svgIcon"
|
|
183
|
-
></kendo-icon-wrapper>
|
|
184
|
-
<span class="k-menu-link-text">{{messageFor('loadFile')}}</span>
|
|
185
|
-
</span>
|
|
186
|
-
<input
|
|
187
|
-
#popupFileSelectEl
|
|
188
|
-
type="file"
|
|
189
|
-
(change)="onFileSelect($event)"
|
|
190
|
-
[style.display]="'none'"
|
|
191
|
-
aria-hidden="true"
|
|
192
|
-
accept=".xlsx,.XLSX" />
|
|
193
|
-
</div>
|
|
194
|
-
</ng-template>
|
|
195
|
-
<ng-template #sectionTemplate>
|
|
196
|
-
<button
|
|
197
|
-
#button
|
|
198
|
-
type="button"
|
|
199
|
-
kendoButton
|
|
200
|
-
[title]="messageFor('loadFile')"
|
|
201
|
-
fillMode="flat"
|
|
202
|
-
[icon]="icon"
|
|
203
|
-
[svgIcon]="svgIcon"
|
|
204
|
-
(click)="fileSelectEl.click()"></button>
|
|
205
|
-
<input
|
|
206
|
-
#fileSelectEl
|
|
207
|
-
type="file"
|
|
208
|
-
(change)="onFileSelect($event)"
|
|
209
|
-
[style.display]="'none'"
|
|
210
|
-
aria-hidden="true"
|
|
211
|
-
accept=".xlsx,.XLSX" />
|
|
212
|
-
</ng-template>
|
|
213
|
-
`,
|
|
214
|
-
standalone: true,
|
|
215
|
-
imports: [ButtonComponent, IconWrapperComponent]
|
|
216
|
-
}]
|
|
217
|
-
}], ctorParameters: () => [{ type: i1.SpreadsheetLocalizationService }, { type: i2.SpreadsheetService }, { type: i3.ToolBarComponent, decorators: [{
|
|
218
|
-
type: Inject,
|
|
219
|
-
args: [ToolBarComponent]
|
|
220
|
-
}] }], propDecorators: { overflowButtonElement: [{
|
|
221
|
-
type: ViewChild,
|
|
222
|
-
args: ['overflowButton', { read: ElementRef, static: false }]
|
|
223
|
-
}], button: [{
|
|
224
|
-
type: ViewChild,
|
|
225
|
-
args: ['button']
|
|
226
|
-
}] } });
|