@progress/kendo-angular-spreadsheet 19.1.2-develop.3 → 19.1.2-develop.5
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/directives.d.ts +18 -1
- package/esm2022/directives.mjs +18 -1
- package/esm2022/localization/custom-messages.component.mjs +10 -1
- package/esm2022/localization/messages.mjs +111 -111
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/spreadsheet.component.mjs +12 -4
- package/esm2022/spreadsheet.module.mjs +11 -2
- package/esm2022/tools/colorpicker/spreadsheet-backcolor.component.mjs +4 -1
- package/esm2022/tools/colorpicker/spreadsheet-forecolor.component.mjs +4 -1
- package/esm2022/tools/font-family/spreadsheet-fontfamily-tool.component.mjs +2 -3
- package/esm2022/tools/font-size/spreadsheet-fontsize-tool.component.mjs +2 -3
- package/esm2022/utils.mjs +1 -1
- package/fesm2022/progress-kendo-angular-spreadsheet.mjs +177 -130
- package/localization/custom-messages.component.d.ts +10 -1
- package/localization/messages.d.ts +111 -111
- package/models/events.d.ts +14 -14
- package/models/main-menu-item.d.ts +5 -4
- package/package.json +17 -17
- package/schematics/ngAdd/index.js +2 -2
- package/spreadsheet.component.d.ts +12 -4
- package/spreadsheet.module.d.ts +11 -2
- package/tools/colorpicker/spreadsheet-backcolor.component.d.ts +4 -1
- package/tools/colorpicker/spreadsheet-forecolor.component.d.ts +4 -1
- package/tools/font-family/spreadsheet-fontfamily-tool.component.d.ts +2 -3
- package/tools/font-size/spreadsheet-fontsize-tool.component.d.ts +2 -3
@@ -72,6 +72,14 @@ import * as i6 from "@progress/kendo-angular-dialog";
|
|
72
72
|
import * as i7 from "@progress/kendo-angular-popup";
|
73
73
|
/**
|
74
74
|
* Represents the [Kendo UI Spreadsheet component for Angular]({% slug overview_spreadsheet %}).
|
75
|
+
*
|
76
|
+
* @example
|
77
|
+
* ```html
|
78
|
+
* <kendo-spreadsheet [sheets]="sheets"></kendo-spreadsheet>
|
79
|
+
* ```
|
80
|
+
*
|
81
|
+
* @remarks
|
82
|
+
* Supported children components are: {@link CustomMessagesComponent}
|
75
83
|
*/
|
76
84
|
export class SpreadsheetComponent {
|
77
85
|
ngZone;
|
@@ -134,7 +142,7 @@ export class SpreadsheetComponent {
|
|
134
142
|
return this._activeSheet || this.spreadsheetService.spreadsheet?.activeSheet()?.name();
|
135
143
|
}
|
136
144
|
/**
|
137
|
-
* An array
|
145
|
+
* An array of `SheetDescriptor` objects that describe the sheets in the Spreadsheet.
|
138
146
|
*/
|
139
147
|
set sheets(value) {
|
140
148
|
const items = value.map((item, index, items) => ({
|
@@ -217,18 +225,18 @@ export class SpreadsheetComponent {
|
|
217
225
|
/**
|
218
226
|
* Fired when the end user clicks the Export to Excel toolbar button.
|
219
227
|
* The event is preventable and exposes the `Workbook` object, a `preventDefault` method
|
220
|
-
* (if invoked, the generated file will not be saved), and the SpreadsheetWidget instance.
|
228
|
+
* (if invoked, the generated file will not be saved), and the `SpreadsheetWidget` instance.
|
221
229
|
*/
|
222
230
|
excelExport = new EventEmitter();
|
223
231
|
/**
|
224
232
|
* Fired when the end user clicks the Open toolbar button.
|
225
233
|
* The event is preventable and exposes the selected `File` or `Blob`, a `preventDefault` method
|
226
|
-
* (if invoked, the selected file will not be loaded), and the SpreadsheetWidget instance.
|
234
|
+
* (if invoked, the selected file will not be loaded), and the `SpreadsheetWidget` instance.
|
227
235
|
*/
|
228
236
|
excelImport = new EventEmitter();
|
229
237
|
/**
|
230
238
|
* Fired when the active sheet is about to change.
|
231
|
-
* The event exposes the new active `Sheet` and the SpreadsheetWidget instance.
|
239
|
+
* The event exposes the new active `Sheet` and the `SpreadsheetWidget` instance.
|
232
240
|
*/
|
233
241
|
activeSheetChange = new EventEmitter();
|
234
242
|
formulaFxIcon = formulaFxIcon;
|
@@ -43,8 +43,17 @@ import * as i31 from "./tools/align/horizontal-align-tool.directive";
|
|
43
43
|
import * as i32 from "./tools/align/vertical-align-tool.directive";
|
44
44
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
45
45
|
/**
|
46
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
47
|
-
*
|
46
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) definition for the Spreadsheet component.
|
47
|
+
*
|
48
|
+
* @example
|
49
|
+
* ```typescript
|
50
|
+
* import { SpreadsheetModule } from '@progress/kendo-angular-spreadsheet';
|
51
|
+
*
|
52
|
+
* @NgModule({
|
53
|
+
* imports: [SpreadsheetModule]
|
54
|
+
* })
|
55
|
+
* export class AppModule {}
|
56
|
+
* ```
|
48
57
|
*/
|
49
58
|
export class SpreadsheetModule {
|
50
59
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SpreadsheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -19,7 +19,10 @@ import * as i3 from "../../common/spreadsheet.service";
|
|
19
19
|
import * as i4 from "../tools.service";
|
20
20
|
import * as i5 from "@progress/kendo-angular-toolbar";
|
21
21
|
/**
|
22
|
-
* A component which
|
22
|
+
* A component which configures an existing `ColorPickerComponent` as a Spreadsheet tool to change the background color.
|
23
|
+
*
|
24
|
+
* The component associates a `kendo-colorpicker` with a Spreadsheet command that changes the background color of a content block and
|
25
|
+
* automatically defines the options of the color picker and sets its values. [See example](slug:toolbar_tools_spreadsheet#home-menu-item-tools).
|
23
26
|
* @hidden
|
24
27
|
*/
|
25
28
|
export class SpreadsheetBackColorComponent extends SpreadsheetDropDownToolBase {
|
@@ -19,7 +19,10 @@ import * as i3 from "../../common/spreadsheet.service";
|
|
19
19
|
import * as i4 from "../tools.service";
|
20
20
|
import * as i5 from "@progress/kendo-angular-toolbar";
|
21
21
|
/**
|
22
|
-
* A component which
|
22
|
+
* A component which configures an existing `ColorPickerComponent` as a Spreadsheet tool to change the text color.
|
23
|
+
*
|
24
|
+
* The component associates a `kendo-colorpicker` with a Spreadsheet command that changes the foreground color of a content block and
|
25
|
+
* automatically defines the options of the color picker and sets its values. [See example](slug:toolbar_tools_spreadsheet#home-menu-item-tools).
|
23
26
|
* @hidden
|
24
27
|
*/
|
25
28
|
export class SpreadsheetForeColorComponent extends SpreadsheetDropDownToolBase {
|
@@ -19,10 +19,9 @@ import * as i3 from "../../common/spreadsheet.service";
|
|
19
19
|
import * as i4 from "../tools.service";
|
20
20
|
import * as i5 from "@progress/kendo-angular-toolbar";
|
21
21
|
/**
|
22
|
-
* A component which configures an existing `DropDownListComponent` as a Spreadsheet tool
|
23
|
-
* ([see example](ToDo).
|
22
|
+
* A component which configures an existing `DropDownListComponent` as a Spreadsheet tool.
|
24
23
|
* The component associates a `kendo-toolbar-dropdownlist` with a Spreadsheet command that changes the font family of a content block and
|
25
|
-
* automatically defines the options of the drop-down list and sets its values
|
24
|
+
* automatically defines the options of the drop-down list and sets its values. [See example](slug:toolbar_tools_spreadsheet#home-menu-item-tools).
|
26
25
|
*
|
27
26
|
* @hidden
|
28
27
|
*/
|
@@ -19,10 +19,9 @@ import * as i3 from "../../common/spreadsheet.service";
|
|
19
19
|
import * as i4 from "../tools.service";
|
20
20
|
import * as i5 from "@progress/kendo-angular-toolbar";
|
21
21
|
/**
|
22
|
-
* A component which configures an existing `DropDownListComponent` as a Spreadsheet tool
|
23
|
-
* ([see example](ToDo).
|
22
|
+
* A component which configures an existing `DropDownListComponent` as a Spreadsheet tool.
|
24
23
|
* The component associates a `kendo-toolbar-dropdownlist` with a Spreadsheet command that changes the font size of a content block and
|
25
|
-
* automatically defines the options of the drop-down list and sets its values
|
24
|
+
* automatically defines the options of the drop-down list and sets its values. [See example](slug:toolbar_tools_spreadsheet#home-menu-item-tools).
|
26
25
|
*
|
27
26
|
* @hidden
|
28
27
|
*/
|
package/esm2022/utils.mjs
CHANGED
@@ -27,7 +27,7 @@ export const mapToSheetDescriptor = (sheetsArray) => {
|
|
27
27
|
/**
|
28
28
|
* @hidden
|
29
29
|
*/
|
30
|
-
export const replaceMessagePlaceholder = (message, name, value) => message.replace(new RegExp(
|
30
|
+
export const replaceMessagePlaceholder = (message, name, value) => message.replace(new RegExp(`{\\s*${name}\\s*}`, 'g'), value);
|
31
31
|
/**
|
32
32
|
* @hidden
|
33
33
|
*/
|