@evoke-platform/ui-components 1.11.0-dev.4 → 1.11.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.
|
@@ -401,7 +401,7 @@ export const convertDocToParameters = (obj) => {
|
|
|
401
401
|
export const propertyToParameter = (property) => {
|
|
402
402
|
return {
|
|
403
403
|
...omit(property, ['searchable', 'formula', 'formulaType', 'mask', 'textTransform']),
|
|
404
|
-
validation:
|
|
404
|
+
validation: propertyValidationToParameterValidation(property),
|
|
405
405
|
};
|
|
406
406
|
};
|
|
407
407
|
export const propertyValidationToParameterValidation = (property) => {
|
|
@@ -409,9 +409,15 @@ export const propertyValidationToParameterValidation = (property) => {
|
|
|
409
409
|
if ('from' in property.validation || 'to' in property.validation) {
|
|
410
410
|
return undefined;
|
|
411
411
|
}
|
|
412
|
-
return { ...property.validation };
|
|
413
412
|
}
|
|
414
|
-
|
|
413
|
+
let paramValidation = property.validation;
|
|
414
|
+
if (property.mask) {
|
|
415
|
+
paramValidation = {
|
|
416
|
+
...(paramValidation ?? {}),
|
|
417
|
+
mask: property.mask,
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
return paramValidation;
|
|
415
421
|
};
|
|
416
422
|
export const convertPropertiesToParams = (object) => {
|
|
417
423
|
return object.properties
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evoke-platform/ui-components",
|
|
3
|
-
"version": "1.11.0
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/published/index.js",
|
|
6
6
|
"module": "dist/published/index.js",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"yalc": "^1.0.0-pre.53"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
|
-
"@evoke-platform/context": "^1.6.0
|
|
99
|
+
"@evoke-platform/context": "^1.6.0",
|
|
100
100
|
"react": "^18.1.0",
|
|
101
101
|
"react-dom": "^18.1.0"
|
|
102
102
|
},
|