impaktapps-ui-builder 1.0.98 → 1.0.99
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/impaktapps-ui-builder.es.js +6 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +4 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +3 -1
package/package.json
CHANGED
|
@@ -12,8 +12,7 @@ const RadioUiSchema = {
|
|
|
12
12
|
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
13
13
|
main: {
|
|
14
14
|
label: "Enabled",
|
|
15
|
-
options: ["YES", "NO"]
|
|
16
|
-
errorMessage: "Enabled is not marked as YES or NO",
|
|
15
|
+
options: ["YES", "NO"]
|
|
17
16
|
},
|
|
18
17
|
},
|
|
19
18
|
};
|
|
@@ -31,5 +30,8 @@ const RadioUiSchema = {
|
|
|
31
30
|
if (config.style) {
|
|
32
31
|
Radio.config.style = JSON.parse(config.style)
|
|
33
32
|
}
|
|
33
|
+
if (config.errorMessage) {
|
|
34
|
+
Radio.config.main.errorMessage = config.errorMessage
|
|
35
|
+
}
|
|
34
36
|
return Radio;
|
|
35
37
|
}
|
|
@@ -495,7 +495,9 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
495
495
|
break;
|
|
496
496
|
case "Radio":
|
|
497
497
|
uiSchema.elements = [
|
|
498
|
-
|
|
498
|
+
getInputField("errorMessage", "Error Message"),
|
|
499
|
+
emptyBox("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
|
|
500
|
+
getArrayControl("sectionLabels", "label", "Options Of Radio")
|
|
499
501
|
]
|
|
500
502
|
break;
|
|
501
503
|
case "Select":
|