@progress/kendo-angular-spreadsheet 18.4.1-develop.2 → 18.5.0-develop.10
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/common/list-editor.component.d.ts +29 -0
- package/directives.d.ts +2 -1
- package/esm2022/action-bar/formula-input.directive.mjs +3 -5
- package/esm2022/common/error-handling.service.mjs +6 -1
- package/esm2022/common/list-editor.component.mjs +142 -0
- package/esm2022/directives.mjs +2 -0
- package/esm2022/localization/messages.mjs +205 -1
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/spreadsheet.component.mjs +236 -10
- package/esm2022/spreadsheet.module.mjs +31 -30
- package/esm2022/tools/data-validation-dialog.component.mjs +468 -0
- package/esm2022/tools/data-validation-tool.directive.mjs +147 -0
- package/esm2022/tools/index.mjs +1 -0
- package/esm2022/tools/shared/command-icons.mjs +3 -1
- package/esm2022/tools/utils.mjs +22 -0
- package/esm2022/utils.mjs +6 -0
- package/fesm2022/progress-kendo-angular-spreadsheet.mjs +1279 -108
- package/localization/messages.d.ts +137 -1
- package/models/main-menu-item.d.ts +1 -1
- package/package.json +16 -16
- package/schematics/ngAdd/index.js +2 -2
- package/spreadsheet.component.d.ts +6 -1
- package/spreadsheet.module.d.ts +30 -29
- package/tools/data-validation-dialog.component.d.ts +57 -0
- package/tools/data-validation-tool.directive.d.ts +29 -0
- package/tools/index.d.ts +1 -0
- package/tools/shared/commands.d.ts +1 -1
- package/tools/utils.d.ts +4 -0
- package/utils.d.ts +4 -0
@@ -2,7 +2,7 @@
|
|
2
2
|
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
|
-
import { alignCenterIcon, alignJustifyIcon, alignLeftIcon, alignRightIcon, boldIcon, dropletIcon, foregroundColorIcon, italicIcon, tableColumnDeleteIcon, tableColumnInsertLeftIcon, tableColumnInsertRightIcon, tableRowDeleteIcon, tableRowInsertAboveIcon, tableRowInsertBelowIcon, underlineIcon, arrowRotateCcwIcon, arrowRotateCwIcon, bordersNoneIcon, alignTopIcon, alignMiddleIcon, alignBottomIcon, textWrapIcon, folderOpenIcon, downloadIcon, customFormatIcon, fontSizeIcon, fontFamilyIcon, cellsMergeHorizontallyIcon, cellsMergeIcon, cellsMergeVerticallyIcon, tableUnmergeIcon, linkIcon, fontGrowIcon, fontShrinkIcon, decimalDecreaseIcon, decimalIncreaseIcon, copyIcon, cutIcon, clipboardIcon, eyeSlashIcon, eyeIcon } from '@progress/kendo-svg-icons';
|
5
|
+
import { alignCenterIcon, alignJustifyIcon, alignLeftIcon, alignRightIcon, boldIcon, dropletIcon, foregroundColorIcon, italicIcon, tableColumnDeleteIcon, tableColumnInsertLeftIcon, tableColumnInsertRightIcon, tableRowDeleteIcon, tableRowInsertAboveIcon, tableRowInsertBelowIcon, underlineIcon, arrowRotateCcwIcon, arrowRotateCwIcon, bordersNoneIcon, alignTopIcon, alignMiddleIcon, alignBottomIcon, textWrapIcon, folderOpenIcon, downloadIcon, customFormatIcon, fontSizeIcon, fontFamilyIcon, cellsMergeHorizontallyIcon, cellsMergeIcon, cellsMergeVerticallyIcon, tableUnmergeIcon, linkIcon, fontGrowIcon, fontShrinkIcon, decimalDecreaseIcon, decimalIncreaseIcon, copyIcon, cutIcon, clipboardIcon, eyeSlashIcon, eyeIcon, exclamationCircleIcon } from '@progress/kendo-svg-icons';
|
6
6
|
/**
|
7
7
|
* @hidden
|
8
8
|
*/
|
@@ -47,6 +47,7 @@ export const commandIcons = {
|
|
47
47
|
decreaseFontSize: 'font-shrink',
|
48
48
|
increaseDecimal: 'decimal-increase',
|
49
49
|
decreaseDecimal: 'decimal-decrease',
|
50
|
+
dataValidation: 'exclamation-circle',
|
50
51
|
copy: 'copy',
|
51
52
|
cut: 'cut',
|
52
53
|
paste: 'clipboard',
|
@@ -98,6 +99,7 @@ export const commandSVGIcons = {
|
|
98
99
|
increaseFontSize: fontGrowIcon,
|
99
100
|
decreaseFontSize: fontShrinkIcon,
|
100
101
|
decreaseDecimal: decimalDecreaseIcon,
|
102
|
+
dataValidation: exclamationCircleIcon,
|
101
103
|
increaseDecimal: decimalIncreaseIcon,
|
102
104
|
copy: copyIcon,
|
103
105
|
cut: cutIcon,
|
package/esm2022/tools/utils.mjs
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
|
+
import { isPresent } from "@progress/kendo-angular-common";
|
5
6
|
/**
|
6
7
|
* @hidden
|
7
8
|
*/
|
@@ -11,3 +12,24 @@ export function outerWidth(element) {
|
|
11
12
|
width += parseFloat(style.marginLeft) || 0 + parseFloat(style.marginRight) || 0;
|
12
13
|
return width;
|
13
14
|
}
|
15
|
+
/**
|
16
|
+
* @hidden
|
17
|
+
*/
|
18
|
+
export const rangeValidator = (directive) => {
|
19
|
+
return (control) => {
|
20
|
+
const err = {
|
21
|
+
rangeError: {
|
22
|
+
message: 'Incorrect range format',
|
23
|
+
value: control.value
|
24
|
+
}
|
25
|
+
};
|
26
|
+
let range;
|
27
|
+
try {
|
28
|
+
range = directive.spreadsheetService.spreadsheet.activeSheet().range(control.value);
|
29
|
+
}
|
30
|
+
catch (e) { /** noop */ }
|
31
|
+
if (!isPresent(range)) {
|
32
|
+
return err;
|
33
|
+
}
|
34
|
+
};
|
35
|
+
};
|
package/esm2022/utils.mjs
CHANGED
@@ -28,3 +28,9 @@ export const mapToSheetDescriptor = (sheetsArray) => {
|
|
28
28
|
* @hidden
|
29
29
|
*/
|
30
30
|
export const replaceMessagePlaceholder = (message, name, value) => message.replace(new RegExp(`\{\\s*${name}\\s*\}`, 'g'), value);
|
31
|
+
/**
|
32
|
+
* @hidden
|
33
|
+
*/
|
34
|
+
export const rowAndColPresent = (value) => {
|
35
|
+
return (value && value.row !== null && value.col !== null && value.row > -1 && value.col > -1);
|
36
|
+
};
|