@ws-ui/shared 1.13.9 → 1.13.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/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +879 -859
- package/dist/index.es.js.map +1 -1
- package/dist/types/webform-editor.d.ts +2 -1
- package/dist/utils/datasources.d.ts +11 -0
- package/package.json +2 -2
|
@@ -110,7 +110,8 @@ export declare enum ESetting {
|
|
|
110
110
|
BACKGROUND = "background",
|
|
111
111
|
SELECTBOXLENGTH = "selectBoxLength",
|
|
112
112
|
I18NFIELD = "i18nField",
|
|
113
|
-
DATE_INTERVALS = "dateIntervals"
|
|
113
|
+
DATE_INTERVALS = "dateIntervals",
|
|
114
|
+
SEARCH_MODE = "searchMode"
|
|
114
115
|
}
|
|
115
116
|
export interface I4DComponentInfo {
|
|
116
117
|
displayName: string;
|
|
@@ -17,6 +17,17 @@ export declare function splitDatasourceID(source?: string): ISplitDatasource;
|
|
|
17
17
|
* @returns whether the attribute is a scalar or not
|
|
18
18
|
*/
|
|
19
19
|
export declare function isSimpleAttribute(attribute: datasources.IAttribute): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Normalized data type used across the application.
|
|
22
|
+
*/
|
|
23
|
+
export type TNormalizedDataType = 'bool' | 'string' | 'number' | 'object' | 'date' | 'blob' | 'image';
|
|
24
|
+
/**
|
|
25
|
+
* Converts a specific attribute/data type to its normalized data type.
|
|
26
|
+
*
|
|
27
|
+
* @param type the specific data type to normalize (e.g. 'short', 'text', 'uuid')
|
|
28
|
+
* @returns the normalized data type, or `undefined` when the type is unknown
|
|
29
|
+
*/
|
|
30
|
+
export declare function getNormalizedDataType(type?: string): TNormalizedDataType | undefined;
|
|
20
31
|
/**
|
|
21
32
|
*
|
|
22
33
|
* @param attribute the attribute to check
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/shared",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@radix-ui/react-popover": "^0.1.6",
|
|
28
28
|
"@radix-ui/react-tooltip": "^0.1.7",
|
|
29
29
|
"@ws-ui/craftjs-core": "0.2.26",
|
|
30
|
-
"@ws-ui/icons": "1.13.
|
|
30
|
+
"@ws-ui/icons": "1.13.10",
|
|
31
31
|
"classnames": "^2.3.1",
|
|
32
32
|
"hotkeys-js": "^3.8.7",
|
|
33
33
|
"jsonschema": "^1.5.0",
|