@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,72 +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 { NgModule } from '@angular/core';
|
|
6
|
-
import { KENDO_SPREADSHEET } from './directives';
|
|
7
|
-
import { IconsService } from '@progress/kendo-angular-icons';
|
|
8
|
-
import { PopupService } from '@progress/kendo-angular-popup';
|
|
9
|
-
import { ResizeBatchService } from '@progress/kendo-angular-common';
|
|
10
|
-
import { DialogContainerService, DialogService, WindowService, WindowContainerService } from '@progress/kendo-angular-dialog';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "./spreadsheet.component";
|
|
13
|
-
import * as i2 from "./localization/custom-messages.component";
|
|
14
|
-
import * as i3 from "./tools/typographical-emphasis/bold-tool.directive";
|
|
15
|
-
import * as i4 from "./tools/data-validation-tool.directive";
|
|
16
|
-
import * as i5 from "./tools/typographical-emphasis/italic-tool.directive";
|
|
17
|
-
import * as i6 from "./tools/typographical-emphasis/underline-tool.directive";
|
|
18
|
-
import * as i7 from "./tools/load-file.component";
|
|
19
|
-
import * as i8 from "./tools/save-file-tool.directive";
|
|
20
|
-
import * as i9 from "./tools/format-tool.directive";
|
|
21
|
-
import * as i10 from "./tools/history/undo-tool";
|
|
22
|
-
import * as i11 from "./tools/history/redo-tool";
|
|
23
|
-
import * as i12 from "./tools/font-family/spreadsheet-fontfamily-tool.component";
|
|
24
|
-
import * as i13 from "./tools/font-size/spreadsheet-fontsize-tool.component";
|
|
25
|
-
import * as i14 from "./tools/colorpicker/spreadsheet-backcolor.component";
|
|
26
|
-
import * as i15 from "./tools/colorpicker/spreadsheet-forecolor.component";
|
|
27
|
-
import * as i16 from "./tools/gridlines-tool.directive";
|
|
28
|
-
import * as i17 from "./tools/tables/add-column-left-button.directive";
|
|
29
|
-
import * as i18 from "./tools/tables/add-column-right-button.directive";
|
|
30
|
-
import * as i19 from "./tools/tables/add-row-above-button.directive";
|
|
31
|
-
import * as i20 from "./tools/tables/add-row-below-button.directive";
|
|
32
|
-
import * as i21 from "./tools/tables/delete-column-button.directive";
|
|
33
|
-
import * as i22 from "./tools/tables/delete-row-button.directive";
|
|
34
|
-
import * as i23 from "./tools/align/align-tool.directive";
|
|
35
|
-
import * as i24 from "./tools/text-wrap-tool.directive";
|
|
36
|
-
import * as i25 from "./tools/tables/merge-tool.directive";
|
|
37
|
-
import * as i26 from "./tools/insert/insert-link-tool.directive";
|
|
38
|
-
import * as i27 from "./tools/font-size/increase-font-tool.directive";
|
|
39
|
-
import * as i28 from "./tools/font-size/decrease-font-tool.directive";
|
|
40
|
-
import * as i29 from "./tools/increase-decimal-tool.directive";
|
|
41
|
-
import * as i30 from "./tools/decrease-decimal-tool.directive";
|
|
42
|
-
import * as i31 from "./tools/align/horizontal-align-tool.directive";
|
|
43
|
-
import * as i32 from "./tools/align/vertical-align-tool.directive";
|
|
44
|
-
import * as i33 from "./tools/filter-sort/filter-tool.directive";
|
|
45
|
-
import * as i34 from "./tools/filter-sort/sort-tool.directive";
|
|
46
|
-
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
47
|
-
/**
|
|
48
|
-
* Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) definition for the Spreadsheet component.
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```typescript
|
|
52
|
-
* import { SpreadsheetModule } from '@progress/kendo-angular-spreadsheet';
|
|
53
|
-
*
|
|
54
|
-
* @NgModule({
|
|
55
|
-
* imports: [SpreadsheetModule]
|
|
56
|
-
* })
|
|
57
|
-
* export class AppModule {}
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
export class SpreadsheetModule {
|
|
61
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
62
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetModule, imports: [i1.SpreadsheetComponent, i2.CustomMessagesComponent, i3.SpreadsheetBoldDirective, i4.SpreadsheetDataValidationDirective, i5.SpreadsheetItalicDirective, i6.SpreadsheetUnderlineDirective, i7.SpreadsheetLoadFileComponent, i8.SpreadsheetSaveFileDirective, i9.SpreadsheetFormatDirective, i10.SpreadsheetUndoDirective, i11.SpreadsheetRedoDirective, i12.SpreadsheetFontFamilyComponent, i13.SpreadsheetFontSizeComponent, i14.SpreadsheetBackColorComponent, i15.SpreadsheetForeColorComponent, i16.SpreadsheetGridLinesDirective, i17.SpreadsheetAddColumnLeftButtonDirective, i18.SpreadsheetAddColumnRightButtonDirective, i19.SpreadsheetAddRowAboveButtonDirective, i20.SpreadsheetAddRowBelowButtonDirective, i21.SpreadsheetDeleteColumnButtonDirective, i22.SpreadsheetDeleteRowButtonDirective, i23.SpreadsheetTextAlignDirective, i24.SpreadsheetTextWrapDirective, i25.SpreadsheetMergeDirective, i26.SpreadsheetInsertLinkDirective, i27.SpreadsheetIncreaseFontSizeDirective, i28.SpreadsheetDecreaseFontSizeDirective, i29.SpreadsheetIncreaseDecimalDirective, i30.SpreadsheetDecreaseDecimalDirective, i31.SpreadsheetHorizontalTextAlignDirective, i32.SpreadsheetVerticalTextAlignDirective, i33.SpreadsheetFilterDirective, i34.SpreadsheetSortDirective], exports: [i1.SpreadsheetComponent, i2.CustomMessagesComponent, i3.SpreadsheetBoldDirective, i4.SpreadsheetDataValidationDirective, i5.SpreadsheetItalicDirective, i6.SpreadsheetUnderlineDirective, i7.SpreadsheetLoadFileComponent, i8.SpreadsheetSaveFileDirective, i9.SpreadsheetFormatDirective, i10.SpreadsheetUndoDirective, i11.SpreadsheetRedoDirective, i12.SpreadsheetFontFamilyComponent, i13.SpreadsheetFontSizeComponent, i14.SpreadsheetBackColorComponent, i15.SpreadsheetForeColorComponent, i16.SpreadsheetGridLinesDirective, i17.SpreadsheetAddColumnLeftButtonDirective, i18.SpreadsheetAddColumnRightButtonDirective, i19.SpreadsheetAddRowAboveButtonDirective, i20.SpreadsheetAddRowBelowButtonDirective, i21.SpreadsheetDeleteColumnButtonDirective, i22.SpreadsheetDeleteRowButtonDirective, i23.SpreadsheetTextAlignDirective, i24.SpreadsheetTextWrapDirective, i25.SpreadsheetMergeDirective, i26.SpreadsheetInsertLinkDirective, i27.SpreadsheetIncreaseFontSizeDirective, i28.SpreadsheetDecreaseFontSizeDirective, i29.SpreadsheetIncreaseDecimalDirective, i30.SpreadsheetDecreaseDecimalDirective, i31.SpreadsheetHorizontalTextAlignDirective, i32.SpreadsheetVerticalTextAlignDirective, i33.SpreadsheetFilterDirective, i34.SpreadsheetSortDirective] });
|
|
63
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [i1.SpreadsheetComponent, i7.SpreadsheetLoadFileComponent, i12.SpreadsheetFontFamilyComponent, i13.SpreadsheetFontSizeComponent, i14.SpreadsheetBackColorComponent, i15.SpreadsheetForeColorComponent] });
|
|
64
|
-
}
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetModule, decorators: [{
|
|
66
|
-
type: NgModule,
|
|
67
|
-
args: [{
|
|
68
|
-
exports: [...KENDO_SPREADSHEET],
|
|
69
|
-
imports: [...KENDO_SPREADSHEET],
|
|
70
|
-
providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService]
|
|
71
|
-
}]
|
|
72
|
-
}] });
|
|
@@ -1,62 +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 { SpreadsheetLocalizationService } from '../../localization/spreadsheet-localization.service';
|
|
7
|
-
import { SpreadsheetService } from '../../common/spreadsheet.service';
|
|
8
|
-
import { commandIcons, commandSVGIcons } from '../shared/command-icons';
|
|
9
|
-
import { ALIGNS } from '../shared/constants';
|
|
10
|
-
import { ToolBarDropDownButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
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 SpreadsheetTextAlignDirective {
|
|
22
|
-
host;
|
|
23
|
-
spreadsheetService;
|
|
24
|
-
toolsService;
|
|
25
|
-
commandName = 'align';
|
|
26
|
-
subs = new Subscription();
|
|
27
|
-
constructor(host, localization, spreadsheetService, toolsService) {
|
|
28
|
-
this.host = host;
|
|
29
|
-
this.spreadsheetService = spreadsheetService;
|
|
30
|
-
this.toolsService = toolsService;
|
|
31
|
-
host.svgIcon = commandSVGIcons[this.commandName];
|
|
32
|
-
host.icon = commandIcons[this.commandName];
|
|
33
|
-
host.arrowIcon = true;
|
|
34
|
-
host.fillMode = 'flat';
|
|
35
|
-
host.data = ALIGNS.map(item => ({ ...item, textKey: localization.get(item.commandId) }));
|
|
36
|
-
this.subs.add(host.itemClick.subscribe((e) => this.onItemClick(e)));
|
|
37
|
-
host.title = localization.get(this.commandName);
|
|
38
|
-
host.textField = 'textKey';
|
|
39
|
-
}
|
|
40
|
-
ngOnInit() {
|
|
41
|
-
this.subs.add(this.toolsService.stateChange.subscribe(state => this.host.data.forEach(i => i.cssClass = i.value === state[i.commandName] ? 'k-selected' : '')));
|
|
42
|
-
}
|
|
43
|
-
ngOnDestroy() {
|
|
44
|
-
this.subs.unsubscribe();
|
|
45
|
-
}
|
|
46
|
-
onItemClick(item) {
|
|
47
|
-
const value = item.value || null;
|
|
48
|
-
const options = {
|
|
49
|
-
command: 'PropertyChangeCommand', options: { property: item.commandName, value }
|
|
50
|
-
};
|
|
51
|
-
this.spreadsheetService.spreadsheet.executeCommand(options);
|
|
52
|
-
}
|
|
53
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetTextAlignDirective, deps: [{ token: i1.ToolBarDropDownButtonComponent }, { token: i2.SpreadsheetLocalizationService }, { token: i3.SpreadsheetService }, { token: i4.SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
54
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SpreadsheetTextAlignDirective, isStandalone: true, selector: "[kendoSpreadsheetTextAlign]", ngImport: i0 });
|
|
55
|
-
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetTextAlignDirective, decorators: [{
|
|
57
|
-
type: Directive,
|
|
58
|
-
args: [{
|
|
59
|
-
selector: '[kendoSpreadsheetTextAlign]',
|
|
60
|
-
standalone: true
|
|
61
|
-
}]
|
|
62
|
-
}], ctorParameters: () => [{ type: i1.ToolBarDropDownButtonComponent }, { type: i2.SpreadsheetLocalizationService }, { type: i3.SpreadsheetService }, { type: i4.SpreadsheetToolsService }] });
|
|
@@ -1,62 +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 { SpreadsheetLocalizationService } from '../../localization/spreadsheet-localization.service';
|
|
7
|
-
import { SpreadsheetService } from '../../common/spreadsheet.service';
|
|
8
|
-
import { commandIcons, commandSVGIcons } from '../shared/command-icons';
|
|
9
|
-
import { ALIGNS } from '../shared/constants';
|
|
10
|
-
import { ToolBarDropDownButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
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 SpreadsheetHorizontalTextAlignDirective {
|
|
22
|
-
host;
|
|
23
|
-
spreadsheetService;
|
|
24
|
-
toolsService;
|
|
25
|
-
commandName = 'alignHorizontal';
|
|
26
|
-
subs = new Subscription();
|
|
27
|
-
constructor(host, localization, spreadsheetService, toolsService) {
|
|
28
|
-
this.host = host;
|
|
29
|
-
this.spreadsheetService = spreadsheetService;
|
|
30
|
-
this.toolsService = toolsService;
|
|
31
|
-
host.svgIcon = commandSVGIcons[this.commandName];
|
|
32
|
-
host.icon = commandIcons[this.commandName];
|
|
33
|
-
host.arrowIcon = true;
|
|
34
|
-
host.fillMode = 'flat';
|
|
35
|
-
host.data = ALIGNS.flatMap(item => item.commandName === 'textAlign' ? [{ ...item, textKey: localization.get(item.commandId) }] : []);
|
|
36
|
-
this.subs.add(host.itemClick.subscribe((e) => this.onItemClick(e)));
|
|
37
|
-
host.title = localization.get(this.commandName);
|
|
38
|
-
host.textField = 'textKey';
|
|
39
|
-
}
|
|
40
|
-
ngOnInit() {
|
|
41
|
-
this.subs.add(this.toolsService.stateChange.subscribe(state => this.host.data.forEach(i => i.cssClass = i.value === state[i.commandName] ? 'k-selected' : '')));
|
|
42
|
-
}
|
|
43
|
-
ngOnDestroy() {
|
|
44
|
-
this.subs.unsubscribe();
|
|
45
|
-
}
|
|
46
|
-
onItemClick(item) {
|
|
47
|
-
const value = item.value || null;
|
|
48
|
-
const options = {
|
|
49
|
-
command: 'PropertyChangeCommand', options: { property: item.commandName, value }
|
|
50
|
-
};
|
|
51
|
-
this.spreadsheetService.spreadsheet.executeCommand(options);
|
|
52
|
-
}
|
|
53
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetHorizontalTextAlignDirective, deps: [{ token: i1.ToolBarDropDownButtonComponent }, { token: i2.SpreadsheetLocalizationService }, { token: i3.SpreadsheetService }, { token: i4.SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
54
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SpreadsheetHorizontalTextAlignDirective, isStandalone: true, selector: "[kendoSpreadsheetHorizontalTextAlign]", ngImport: i0 });
|
|
55
|
-
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetHorizontalTextAlignDirective, decorators: [{
|
|
57
|
-
type: Directive,
|
|
58
|
-
args: [{
|
|
59
|
-
selector: '[kendoSpreadsheetHorizontalTextAlign]',
|
|
60
|
-
standalone: true
|
|
61
|
-
}]
|
|
62
|
-
}], ctorParameters: () => [{ type: i1.ToolBarDropDownButtonComponent }, { type: i2.SpreadsheetLocalizationService }, { type: i3.SpreadsheetService }, { type: i4.SpreadsheetToolsService }] });
|
|
@@ -1,62 +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 { SpreadsheetLocalizationService } from '../../localization/spreadsheet-localization.service';
|
|
7
|
-
import { SpreadsheetService } from '../../common/spreadsheet.service';
|
|
8
|
-
import { commandIcons, commandSVGIcons } from '../shared/command-icons';
|
|
9
|
-
import { ALIGNS } from '../shared/constants';
|
|
10
|
-
import { ToolBarDropDownButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
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 SpreadsheetVerticalTextAlignDirective {
|
|
22
|
-
host;
|
|
23
|
-
spreadsheetService;
|
|
24
|
-
toolsService;
|
|
25
|
-
commandName = 'alignVertical';
|
|
26
|
-
subs = new Subscription();
|
|
27
|
-
constructor(host, localization, spreadsheetService, toolsService) {
|
|
28
|
-
this.host = host;
|
|
29
|
-
this.spreadsheetService = spreadsheetService;
|
|
30
|
-
this.toolsService = toolsService;
|
|
31
|
-
host.svgIcon = commandSVGIcons[this.commandName];
|
|
32
|
-
host.icon = commandIcons[this.commandName];
|
|
33
|
-
host.arrowIcon = true;
|
|
34
|
-
host.fillMode = 'flat';
|
|
35
|
-
host.data = ALIGNS.flatMap(item => item.commandName === 'verticalAlign' ? [{ ...item, textKey: localization.get(item.commandId) }] : []);
|
|
36
|
-
this.subs.add(host.itemClick.subscribe((e) => this.onItemClick(e)));
|
|
37
|
-
host.title = localization.get(this.commandName);
|
|
38
|
-
host.textField = 'textKey';
|
|
39
|
-
}
|
|
40
|
-
ngOnInit() {
|
|
41
|
-
this.subs.add(this.toolsService.stateChange.subscribe(state => this.host.data.forEach(i => i.cssClass = i.value === state[i.commandName] ? 'k-selected' : '')));
|
|
42
|
-
}
|
|
43
|
-
ngOnDestroy() {
|
|
44
|
-
this.subs.unsubscribe();
|
|
45
|
-
}
|
|
46
|
-
onItemClick(item) {
|
|
47
|
-
const value = item.value || null;
|
|
48
|
-
const options = {
|
|
49
|
-
command: 'PropertyChangeCommand', options: { property: item.commandName, value }
|
|
50
|
-
};
|
|
51
|
-
this.spreadsheetService.spreadsheet.executeCommand(options);
|
|
52
|
-
}
|
|
53
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetVerticalTextAlignDirective, deps: [{ token: i1.ToolBarDropDownButtonComponent }, { token: i2.SpreadsheetLocalizationService }, { token: i3.SpreadsheetService }, { token: i4.SpreadsheetToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
54
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SpreadsheetVerticalTextAlignDirective, isStandalone: true, selector: "[kendoSpreadsheetVerticalTextAlign]", ngImport: i0 });
|
|
55
|
-
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetVerticalTextAlignDirective, decorators: [{
|
|
57
|
-
type: Directive,
|
|
58
|
-
args: [{
|
|
59
|
-
selector: '[kendoSpreadsheetVerticalTextAlign]',
|
|
60
|
-
standalone: true
|
|
61
|
-
}]
|
|
62
|
-
}], ctorParameters: () => [{ type: i1.ToolBarDropDownButtonComponent }, { type: i2.SpreadsheetLocalizationService }, { type: i3.SpreadsheetService }, { type: i4.SpreadsheetToolsService }] });
|
|
@@ -1,142 +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, forwardRef, Inject } from '@angular/core';
|
|
6
|
-
import { ToolBarComponent, ToolBarToolComponent } 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 { SpreadsheetDropDownToolBase } from '../shared/spreadsheet-dropdown-tools-base';
|
|
11
|
-
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
12
|
-
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
13
|
-
import { ColorPickerComponent } from '@progress/kendo-angular-inputs';
|
|
14
|
-
import * as i0 from "@angular/core";
|
|
15
|
-
import * as i1 from "@progress/kendo-angular-dialog";
|
|
16
|
-
import * as i2 from "../../localization/spreadsheet-localization.service";
|
|
17
|
-
import * as i3 from "../../common/spreadsheet.service";
|
|
18
|
-
import * as i4 from "../tools.service";
|
|
19
|
-
import * as i5 from "@progress/kendo-angular-toolbar";
|
|
20
|
-
/**
|
|
21
|
-
* A component which configures an existing `ColorPickerComponent` as a Spreadsheet tool to change the background color.
|
|
22
|
-
*
|
|
23
|
-
* The component associates a `kendo-colorpicker` with a Spreadsheet command that changes the background color of a content block and
|
|
24
|
-
* automatically defines the options of the color picker and sets its values. [See example](slug:toolbar_tools_spreadsheet#home-menu-item-tools).
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
export class SpreadsheetBackColorComponent extends SpreadsheetDropDownToolBase {
|
|
28
|
-
constructor(dialogService, localization, spreadsheetService, toolsService, toolbar) {
|
|
29
|
-
super('background', dialogService, localization, spreadsheetService, toolsService, toolbar);
|
|
30
|
-
}
|
|
31
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetBackColorComponent, deps: [{ token: i1.DialogService }, { token: i2.SpreadsheetLocalizationService }, { token: i3.SpreadsheetService }, { token: i4.SpreadsheetToolsService }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SpreadsheetBackColorComponent, isStandalone: true, selector: "kendo-spreadsheet-backcolor-tool", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetBackColorComponent) }], usesInheritance: true, ngImport: i0, template: `
|
|
33
|
-
<ng-template #toolbarTemplate>
|
|
34
|
-
<div class="k-toolbar-item">
|
|
35
|
-
<kendo-colorpicker
|
|
36
|
-
#element
|
|
37
|
-
[attr.title]="messageFor(command)"
|
|
38
|
-
[format]="'hex'"
|
|
39
|
-
[(value)]="value"
|
|
40
|
-
[tabindex]="tabindex"
|
|
41
|
-
(valueChange)="onValueChange($event)"
|
|
42
|
-
[clearButton]="false"
|
|
43
|
-
fillMode="flat"
|
|
44
|
-
[icon]="icon"
|
|
45
|
-
[preview]="true"
|
|
46
|
-
[svgIcon]="svgIcon"></kendo-colorpicker>
|
|
47
|
-
</div>
|
|
48
|
-
</ng-template>
|
|
49
|
-
<ng-template #popupTemplate>
|
|
50
|
-
<div #popupButton
|
|
51
|
-
[tabindex]="tabindex"
|
|
52
|
-
role="menuitem"
|
|
53
|
-
class="k-item k-menu-item"
|
|
54
|
-
(click)="openDialog()">
|
|
55
|
-
<span
|
|
56
|
-
class="k-link k-menu-link">
|
|
57
|
-
<kendo-icon-wrapper [name]="icon" [svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
58
|
-
@if (messageFor(command)) {
|
|
59
|
-
<span class="k-menu-link-text">{{messageFor(command)}}</span>
|
|
60
|
-
}
|
|
61
|
-
</span>
|
|
62
|
-
</div>
|
|
63
|
-
</ng-template>
|
|
64
|
-
<ng-template #sectionTemplate>
|
|
65
|
-
<div class="k-toolbar-item">
|
|
66
|
-
<kendo-colorpicker
|
|
67
|
-
#element
|
|
68
|
-
[attr.title]="messageFor(command)"
|
|
69
|
-
[format]="'hex'"
|
|
70
|
-
[(value)]="value"
|
|
71
|
-
[tabindex]="tabindex"
|
|
72
|
-
(valueChange)="onValueChange($event)"
|
|
73
|
-
[clearButton]="false"
|
|
74
|
-
fillMode="flat"
|
|
75
|
-
[icon]="icon"
|
|
76
|
-
[preview]="true"
|
|
77
|
-
[svgIcon]="svgIcon"></kendo-colorpicker>
|
|
78
|
-
</div>
|
|
79
|
-
</ng-template>
|
|
80
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "adaptiveMode", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "adaptiveTitle", "adaptiveSubtitle", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "clearButtonClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
81
|
-
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetBackColorComponent, decorators: [{
|
|
83
|
-
type: Component,
|
|
84
|
-
args: [{
|
|
85
|
-
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetBackColorComponent) }],
|
|
86
|
-
selector: 'kendo-spreadsheet-backcolor-tool',
|
|
87
|
-
template: `
|
|
88
|
-
<ng-template #toolbarTemplate>
|
|
89
|
-
<div class="k-toolbar-item">
|
|
90
|
-
<kendo-colorpicker
|
|
91
|
-
#element
|
|
92
|
-
[attr.title]="messageFor(command)"
|
|
93
|
-
[format]="'hex'"
|
|
94
|
-
[(value)]="value"
|
|
95
|
-
[tabindex]="tabindex"
|
|
96
|
-
(valueChange)="onValueChange($event)"
|
|
97
|
-
[clearButton]="false"
|
|
98
|
-
fillMode="flat"
|
|
99
|
-
[icon]="icon"
|
|
100
|
-
[preview]="true"
|
|
101
|
-
[svgIcon]="svgIcon"></kendo-colorpicker>
|
|
102
|
-
</div>
|
|
103
|
-
</ng-template>
|
|
104
|
-
<ng-template #popupTemplate>
|
|
105
|
-
<div #popupButton
|
|
106
|
-
[tabindex]="tabindex"
|
|
107
|
-
role="menuitem"
|
|
108
|
-
class="k-item k-menu-item"
|
|
109
|
-
(click)="openDialog()">
|
|
110
|
-
<span
|
|
111
|
-
class="k-link k-menu-link">
|
|
112
|
-
<kendo-icon-wrapper [name]="icon" [svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
113
|
-
@if (messageFor(command)) {
|
|
114
|
-
<span class="k-menu-link-text">{{messageFor(command)}}</span>
|
|
115
|
-
}
|
|
116
|
-
</span>
|
|
117
|
-
</div>
|
|
118
|
-
</ng-template>
|
|
119
|
-
<ng-template #sectionTemplate>
|
|
120
|
-
<div class="k-toolbar-item">
|
|
121
|
-
<kendo-colorpicker
|
|
122
|
-
#element
|
|
123
|
-
[attr.title]="messageFor(command)"
|
|
124
|
-
[format]="'hex'"
|
|
125
|
-
[(value)]="value"
|
|
126
|
-
[tabindex]="tabindex"
|
|
127
|
-
(valueChange)="onValueChange($event)"
|
|
128
|
-
[clearButton]="false"
|
|
129
|
-
fillMode="flat"
|
|
130
|
-
[icon]="icon"
|
|
131
|
-
[preview]="true"
|
|
132
|
-
[svgIcon]="svgIcon"></kendo-colorpicker>
|
|
133
|
-
</div>
|
|
134
|
-
</ng-template>
|
|
135
|
-
`,
|
|
136
|
-
standalone: true,
|
|
137
|
-
imports: [ColorPickerComponent, IconWrapperComponent]
|
|
138
|
-
}]
|
|
139
|
-
}], ctorParameters: () => [{ type: i1.DialogService }, { type: i2.SpreadsheetLocalizationService }, { type: i3.SpreadsheetService }, { type: i4.SpreadsheetToolsService }, { type: i5.ToolBarComponent, decorators: [{
|
|
140
|
-
type: Inject,
|
|
141
|
-
args: [ToolBarComponent]
|
|
142
|
-
}] }] });
|
|
@@ -1,142 +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, forwardRef, Inject } from '@angular/core';
|
|
6
|
-
import { ToolBarComponent, ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
|
|
7
|
-
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
8
|
-
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
9
|
-
import { ColorPickerComponent } from '@progress/kendo-angular-inputs';
|
|
10
|
-
import { SpreadsheetLocalizationService } from '../../localization/spreadsheet-localization.service';
|
|
11
|
-
import { SpreadsheetService } from '../../common/spreadsheet.service';
|
|
12
|
-
import { SpreadsheetToolsService } from '../tools.service';
|
|
13
|
-
import { SpreadsheetDropDownToolBase } from '../shared/spreadsheet-dropdown-tools-base';
|
|
14
|
-
import * as i0 from "@angular/core";
|
|
15
|
-
import * as i1 from "@progress/kendo-angular-dialog";
|
|
16
|
-
import * as i2 from "../../localization/spreadsheet-localization.service";
|
|
17
|
-
import * as i3 from "../../common/spreadsheet.service";
|
|
18
|
-
import * as i4 from "../tools.service";
|
|
19
|
-
import * as i5 from "@progress/kendo-angular-toolbar";
|
|
20
|
-
/**
|
|
21
|
-
* A component which configures an existing `ColorPickerComponent` as a Spreadsheet tool to change the text color.
|
|
22
|
-
*
|
|
23
|
-
* The component associates a `kendo-colorpicker` with a Spreadsheet command that changes the foreground color of a content block and
|
|
24
|
-
* automatically defines the options of the color picker and sets its values. [See example](slug:toolbar_tools_spreadsheet#home-menu-item-tools).
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
export class SpreadsheetForeColorComponent extends SpreadsheetDropDownToolBase {
|
|
28
|
-
constructor(dialogService, localization, spreadsheetService, toolsService, toolbar) {
|
|
29
|
-
super('color', dialogService, localization, spreadsheetService, toolsService, toolbar);
|
|
30
|
-
}
|
|
31
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetForeColorComponent, deps: [{ token: i1.DialogService }, { token: i2.SpreadsheetLocalizationService }, { token: i3.SpreadsheetService }, { token: i4.SpreadsheetToolsService }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SpreadsheetForeColorComponent, isStandalone: true, selector: "kendo-spreadsheet-forecolor-tool", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetForeColorComponent) }], usesInheritance: true, ngImport: i0, template: `
|
|
33
|
-
<ng-template #toolbarTemplate>
|
|
34
|
-
<div class="k-toolbar-item">
|
|
35
|
-
<kendo-colorpicker
|
|
36
|
-
#element
|
|
37
|
-
[attr.title]="messageFor(command)"
|
|
38
|
-
[format]="'hex'"
|
|
39
|
-
[(value)]="value"
|
|
40
|
-
[tabindex]="tabindex"
|
|
41
|
-
(valueChange)="onValueChange($event)"
|
|
42
|
-
[clearButton]="false"
|
|
43
|
-
fillMode="flat"
|
|
44
|
-
[icon]="icon"
|
|
45
|
-
[svgIcon]="svgIcon"
|
|
46
|
-
[preview]="true"></kendo-colorpicker>
|
|
47
|
-
</div>
|
|
48
|
-
</ng-template>
|
|
49
|
-
<ng-template #popupTemplate>
|
|
50
|
-
<div #popupButton
|
|
51
|
-
[tabindex]="tabindex"
|
|
52
|
-
role="menuitem"
|
|
53
|
-
class="k-item k-menu-item"
|
|
54
|
-
(click)="openDialog()">
|
|
55
|
-
<span
|
|
56
|
-
class="k-link k-menu-link">
|
|
57
|
-
<kendo-icon-wrapper [name]="icon" [svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
58
|
-
@if (messageFor(command)) {
|
|
59
|
-
<span class="k-menu-link-text">{{messageFor(command)}}</span>
|
|
60
|
-
}
|
|
61
|
-
</span>
|
|
62
|
-
</div>
|
|
63
|
-
</ng-template>
|
|
64
|
-
<ng-template #sectionTemplate>
|
|
65
|
-
<div class="k-toolbar-item">
|
|
66
|
-
<kendo-colorpicker
|
|
67
|
-
#element
|
|
68
|
-
[attr.title]="messageFor(command)"
|
|
69
|
-
[format]="'hex'"
|
|
70
|
-
[(value)]="value"
|
|
71
|
-
[tabindex]="tabindex"
|
|
72
|
-
(valueChange)="onValueChange($event)"
|
|
73
|
-
[clearButton]="false"
|
|
74
|
-
fillMode="flat"
|
|
75
|
-
[icon]="icon"
|
|
76
|
-
[svgIcon]="svgIcon"
|
|
77
|
-
[preview]="true"></kendo-colorpicker>
|
|
78
|
-
</div>
|
|
79
|
-
</ng-template>
|
|
80
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "adaptiveMode", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "adaptiveTitle", "adaptiveSubtitle", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "clearButtonClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
81
|
-
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpreadsheetForeColorComponent, decorators: [{
|
|
83
|
-
type: Component,
|
|
84
|
-
args: [{
|
|
85
|
-
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => SpreadsheetForeColorComponent) }],
|
|
86
|
-
selector: 'kendo-spreadsheet-forecolor-tool',
|
|
87
|
-
template: `
|
|
88
|
-
<ng-template #toolbarTemplate>
|
|
89
|
-
<div class="k-toolbar-item">
|
|
90
|
-
<kendo-colorpicker
|
|
91
|
-
#element
|
|
92
|
-
[attr.title]="messageFor(command)"
|
|
93
|
-
[format]="'hex'"
|
|
94
|
-
[(value)]="value"
|
|
95
|
-
[tabindex]="tabindex"
|
|
96
|
-
(valueChange)="onValueChange($event)"
|
|
97
|
-
[clearButton]="false"
|
|
98
|
-
fillMode="flat"
|
|
99
|
-
[icon]="icon"
|
|
100
|
-
[svgIcon]="svgIcon"
|
|
101
|
-
[preview]="true"></kendo-colorpicker>
|
|
102
|
-
</div>
|
|
103
|
-
</ng-template>
|
|
104
|
-
<ng-template #popupTemplate>
|
|
105
|
-
<div #popupButton
|
|
106
|
-
[tabindex]="tabindex"
|
|
107
|
-
role="menuitem"
|
|
108
|
-
class="k-item k-menu-item"
|
|
109
|
-
(click)="openDialog()">
|
|
110
|
-
<span
|
|
111
|
-
class="k-link k-menu-link">
|
|
112
|
-
<kendo-icon-wrapper [name]="icon" [svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
113
|
-
@if (messageFor(command)) {
|
|
114
|
-
<span class="k-menu-link-text">{{messageFor(command)}}</span>
|
|
115
|
-
}
|
|
116
|
-
</span>
|
|
117
|
-
</div>
|
|
118
|
-
</ng-template>
|
|
119
|
-
<ng-template #sectionTemplate>
|
|
120
|
-
<div class="k-toolbar-item">
|
|
121
|
-
<kendo-colorpicker
|
|
122
|
-
#element
|
|
123
|
-
[attr.title]="messageFor(command)"
|
|
124
|
-
[format]="'hex'"
|
|
125
|
-
[(value)]="value"
|
|
126
|
-
[tabindex]="tabindex"
|
|
127
|
-
(valueChange)="onValueChange($event)"
|
|
128
|
-
[clearButton]="false"
|
|
129
|
-
fillMode="flat"
|
|
130
|
-
[icon]="icon"
|
|
131
|
-
[svgIcon]="svgIcon"
|
|
132
|
-
[preview]="true"></kendo-colorpicker>
|
|
133
|
-
</div>
|
|
134
|
-
</ng-template>
|
|
135
|
-
`,
|
|
136
|
-
standalone: true,
|
|
137
|
-
imports: [ColorPickerComponent, IconWrapperComponent]
|
|
138
|
-
}]
|
|
139
|
-
}], ctorParameters: () => [{ type: i1.DialogService }, { type: i2.SpreadsheetLocalizationService }, { type: i3.SpreadsheetService }, { type: i4.SpreadsheetToolsService }, { type: i5.ToolBarComponent, decorators: [{
|
|
140
|
-
type: Inject,
|
|
141
|
-
args: [ToolBarComponent]
|
|
142
|
-
}] }] });
|