@progress/kendo-angular-spreadsheet 18.5.0-develop.8 → 18.5.0
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.
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
13
|
-
publishDate:
|
14
|
-
version: '18.5.0
|
13
|
+
publishDate: 1744288427,
|
14
|
+
version: '18.5.0',
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning',
|
16
16
|
};
|
@@ -3,14 +3,14 @@
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { Directive, Renderer2 } from '@angular/core';
|
6
|
+
import { take } from 'rxjs/operators';
|
6
7
|
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
8
|
+
import { DialogService } from '@progress/kendo-angular-dialog';
|
7
9
|
import { SpreadsheetLocalizationService } from '../localization/spreadsheet-localization.service';
|
8
10
|
import { SpreadsheetService } from '../common/spreadsheet.service';
|
9
11
|
import { SpreadsheetToolsService } from './tools.service';
|
10
12
|
import { SpreadsheetCommandButton } from './shared/spreadsheet-command-button';
|
11
|
-
import { DialogService } from '@progress/kendo-angular-dialog';
|
12
13
|
import { DataValidationDialogComponent } from './data-validation-dialog.component';
|
13
|
-
import { take } from 'rxjs/operators';
|
14
14
|
import * as i0 from "@angular/core";
|
15
15
|
import * as i1 from "@progress/kendo-angular-toolbar";
|
16
16
|
import * as i2 from "../localization/spreadsheet-localization.service";
|
@@ -69,7 +69,8 @@ export class SpreadsheetDataValidationDirective extends SpreadsheetCommandButton
|
|
69
69
|
appendTo: this.spreadsheetService.dialogContainer,
|
70
70
|
title: this.localization.get(this.command),
|
71
71
|
content: DataValidationDialogComponent,
|
72
|
-
minWidth: 400
|
72
|
+
minWidth: 400,
|
73
|
+
maxHeight: '90%',
|
73
74
|
};
|
74
75
|
const dialog = this.dialogService.open(dialogSettings);
|
75
76
|
const dialogContent = dialog.content.instance;
|
@@ -116,7 +117,15 @@ export class SpreadsheetDataValidationDirective extends SpreadsheetCommandButton
|
|
116
117
|
titleTemplate: dialogContent.showHint ? dialogContent.hintTitle : null
|
117
118
|
};
|
118
119
|
if (dialogContent.criteria.type === 'list' || dialogContent.criteria.type === 'text') {
|
119
|
-
|
120
|
+
const isWrappedInQuotes = options.from.startsWith('"') && options.from.endsWith('"');
|
121
|
+
let isRangeValue = true;
|
122
|
+
try {
|
123
|
+
isRangeValue = Boolean(this.spreadsheetService.spreadsheet.activeSheet().range(dialogContent.from));
|
124
|
+
}
|
125
|
+
catch (e) {
|
126
|
+
isRangeValue = false;
|
127
|
+
}
|
128
|
+
if (!isWrappedInQuotes && !isRangeValue) {
|
120
129
|
options = Object.assign(options, { from: `"${options.from}"` });
|
121
130
|
}
|
122
131
|
}
|
@@ -41,8 +41,8 @@ const packageMetadata = {
|
|
41
41
|
productName: 'Kendo UI for Angular',
|
42
42
|
productCode: 'KENDOUIANGULAR',
|
43
43
|
productCodes: ['KENDOUIANGULAR'],
|
44
|
-
publishDate:
|
45
|
-
version: '18.5.0
|
44
|
+
publishDate: 1744288427,
|
45
|
+
version: '18.5.0',
|
46
46
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning',
|
47
47
|
};
|
48
48
|
|
@@ -4563,7 +4563,8 @@ class SpreadsheetDataValidationDirective extends SpreadsheetCommandButton {
|
|
4563
4563
|
appendTo: this.spreadsheetService.dialogContainer,
|
4564
4564
|
title: this.localization.get(this.command),
|
4565
4565
|
content: DataValidationDialogComponent,
|
4566
|
-
minWidth: 400
|
4566
|
+
minWidth: 400,
|
4567
|
+
maxHeight: '90%',
|
4567
4568
|
};
|
4568
4569
|
const dialog = this.dialogService.open(dialogSettings);
|
4569
4570
|
const dialogContent = dialog.content.instance;
|
@@ -4610,7 +4611,15 @@ class SpreadsheetDataValidationDirective extends SpreadsheetCommandButton {
|
|
4610
4611
|
titleTemplate: dialogContent.showHint ? dialogContent.hintTitle : null
|
4611
4612
|
};
|
4612
4613
|
if (dialogContent.criteria.type === 'list' || dialogContent.criteria.type === 'text') {
|
4613
|
-
|
4614
|
+
const isWrappedInQuotes = options.from.startsWith('"') && options.from.endsWith('"');
|
4615
|
+
let isRangeValue = true;
|
4616
|
+
try {
|
4617
|
+
isRangeValue = Boolean(this.spreadsheetService.spreadsheet.activeSheet().range(dialogContent.from));
|
4618
|
+
}
|
4619
|
+
catch (e) {
|
4620
|
+
isRangeValue = false;
|
4621
|
+
}
|
4622
|
+
if (!isWrappedInQuotes && !isRangeValue) {
|
4614
4623
|
options = Object.assign(options, { from: `"${options.from}"` });
|
4615
4624
|
}
|
4616
4625
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@progress/kendo-angular-spreadsheet",
|
3
|
-
"version": "18.5.0
|
3
|
+
"version": "18.5.0",
|
4
4
|
"description": "A Spreadsheet Component for Angular",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
6
6
|
"author": "Progress",
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"package": {
|
20
20
|
"productName": "Kendo UI for Angular",
|
21
21
|
"productCode": "KENDOUIANGULAR",
|
22
|
-
"publishDate":
|
22
|
+
"publishDate": 1744288427,
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"
|
24
24
|
}
|
25
25
|
},
|
@@ -29,24 +29,24 @@
|
|
29
29
|
"@angular/core": "16 - 19",
|
30
30
|
"@angular/platform-browser": "16 - 19",
|
31
31
|
"@progress/kendo-licensing": "^1.5.0",
|
32
|
-
"@progress/kendo-angular-buttons": "18.5.0
|
33
|
-
"@progress/kendo-angular-common": "18.5.0
|
34
|
-
"@progress/kendo-angular-dialog": "18.5.0
|
35
|
-
"@progress/kendo-angular-dropdowns": "18.5.0
|
36
|
-
"@progress/kendo-angular-icons": "18.5.0
|
37
|
-
"@progress/kendo-angular-inputs": "18.5.0
|
38
|
-
"@progress/kendo-angular-intl": "18.5.0
|
39
|
-
"@progress/kendo-angular-l10n": "18.5.0
|
40
|
-
"@progress/kendo-angular-label": "18.5.0
|
41
|
-
"@progress/kendo-angular-layout": "18.5.0
|
42
|
-
"@progress/kendo-angular-menu": "18.5.0
|
43
|
-
"@progress/kendo-angular-popup": "18.5.0
|
44
|
-
"@progress/kendo-angular-toolbar": "18.5.0
|
32
|
+
"@progress/kendo-angular-buttons": "18.5.0",
|
33
|
+
"@progress/kendo-angular-common": "18.5.0",
|
34
|
+
"@progress/kendo-angular-dialog": "18.5.0",
|
35
|
+
"@progress/kendo-angular-dropdowns": "18.5.0",
|
36
|
+
"@progress/kendo-angular-icons": "18.5.0",
|
37
|
+
"@progress/kendo-angular-inputs": "18.5.0",
|
38
|
+
"@progress/kendo-angular-intl": "18.5.0",
|
39
|
+
"@progress/kendo-angular-l10n": "18.5.0",
|
40
|
+
"@progress/kendo-angular-label": "18.5.0",
|
41
|
+
"@progress/kendo-angular-layout": "18.5.0",
|
42
|
+
"@progress/kendo-angular-menu": "18.5.0",
|
43
|
+
"@progress/kendo-angular-popup": "18.5.0",
|
44
|
+
"@progress/kendo-angular-toolbar": "18.5.0",
|
45
45
|
"rxjs": "^6.5.3 || ^7.0.0"
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
48
|
"tslib": "^2.3.1",
|
49
|
-
"@progress/kendo-angular-schematics": "18.5.0
|
49
|
+
"@progress/kendo-angular-schematics": "18.5.0",
|
50
50
|
"@progress/jszip-esm": "^1.0.3",
|
51
51
|
"@progress/kendo-common": "^1.0.1",
|
52
52
|
"@progress/kendo-date-math": "^1.5.10",
|
@@ -6,8 +6,8 @@ function default_1(options) {
|
|
6
6
|
// Peer dependency of icons
|
7
7
|
'@progress/kendo-svg-icons': '^4.0.0',
|
8
8
|
// peer deps of the dropdowns
|
9
|
-
'@progress/kendo-angular-navigation': '18.5.0
|
10
|
-
'@progress/kendo-angular-treeview': '18.5.0
|
9
|
+
'@progress/kendo-angular-navigation': '18.5.0',
|
10
|
+
'@progress/kendo-angular-treeview': '18.5.0'
|
11
11
|
} });
|
12
12
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
13
13
|
}
|
@@ -4,11 +4,11 @@
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { AfterViewInit, Renderer2 } from '@angular/core';
|
6
6
|
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
7
|
+
import { DialogService } from '@progress/kendo-angular-dialog';
|
7
8
|
import { SpreadsheetLocalizationService } from '../localization/spreadsheet-localization.service';
|
8
9
|
import { SpreadsheetService } from '../common/spreadsheet.service';
|
9
10
|
import { SpreadsheetToolsService } from './tools.service';
|
10
11
|
import { SpreadsheetCommandButton } from './shared/spreadsheet-command-button';
|
11
|
-
import { DialogService } from '@progress/kendo-angular-dialog';
|
12
12
|
import * as i0 from "@angular/core";
|
13
13
|
/**
|
14
14
|
* @hidden
|