@topconsultnpm/sdkui-react-beta 6.9.61 → 6.9.63
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/lib/helper/helpers.d.ts +1 -1
- package/lib/helper/helpers.js +2 -0
- package/package.json +2 -2
package/lib/helper/helpers.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare const calcResponsiveSizes: (deviceType: DeviceType | undefined, desktopS
|
|
|
11
11
|
declare const getColor: (color: ColorsType) => string;
|
|
12
12
|
declare const makeID: (length: number) => string;
|
|
13
13
|
declare function genUniqueId(): string;
|
|
14
|
-
export declare const captionToDataField: (caption: string) => string;
|
|
14
|
+
export declare const captionToDataField: (caption: string | undefined) => string;
|
|
15
15
|
export declare const getDataColumnName: (fromTID: number | undefined, dtColumn: DataColumnDescriptor | undefined) => string;
|
|
16
16
|
export declare const searchResultDescriptorToSimpleArray: (searchResult: SearchResultDescriptor | undefined) => any[] | undefined;
|
|
17
17
|
export declare const getCompleteMetadataName: (dcmtTypeName: string | undefined, metadataName: string | undefined) => string;
|
package/lib/helper/helpers.js
CHANGED
|
@@ -108,6 +108,8 @@ function genUniqueId() {
|
|
|
108
108
|
return `${dateStr}-${randomStr}`;
|
|
109
109
|
}
|
|
110
110
|
export const captionToDataField = (caption) => {
|
|
111
|
+
if (!caption)
|
|
112
|
+
return '';
|
|
111
113
|
//Data field names cannot be equal to this and should not contain the following characters: ., :, [, and ].
|
|
112
114
|
return caption.replace('this', '_').replace('.', '_').replace(':', '_').replace('[', '_').replace(']', '_');
|
|
113
115
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdkui-react-beta",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.63",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"lib"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@topconsultnpm/sdk-ts-beta": "^6.9.
|
|
31
|
+
"@topconsultnpm/sdk-ts-beta": "^6.9.7",
|
|
32
32
|
"buffer": "^6.0.3",
|
|
33
33
|
"devextreme": "24.1.7",
|
|
34
34
|
"devextreme-react": "24.1.7",
|