impaktapps-ui-builder 1.0.98 → 1.0.100
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 +10 -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/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +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/buildTable.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +12 -2
|
@@ -55,7 +55,7 @@ export declare const getTextArea: (scope: string, heading: string, hideButton: b
|
|
|
55
55
|
};
|
|
56
56
|
export declare const getSelectField: (scope: string, label: string, options: {
|
|
57
57
|
label: string;
|
|
58
|
-
value: string;
|
|
58
|
+
value: string | number;
|
|
59
59
|
}[]) => {
|
|
60
60
|
type: string;
|
|
61
61
|
scope: string;
|
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
|
}
|
|
@@ -209,7 +209,7 @@ export const getTextArea = (scope: string, heading: string, hideButton: boolean,
|
|
|
209
209
|
},
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
export const getSelectField = (scope: string, label: string, options: { label: string, value: string }[]) => {
|
|
212
|
+
export const getSelectField = (scope: string, label: string, options: { label: string, value: string | number }[]) => {
|
|
213
213
|
return {
|
|
214
214
|
type: "Control",
|
|
215
215
|
scope: `#/properties/${scope}`,
|
|
@@ -479,6 +479,14 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
479
479
|
getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
|
|
480
480
|
getInputField("selectKey", "Selection Key"),
|
|
481
481
|
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
482
|
+
getSelectField("maxPageSize", "Max Page Size", [
|
|
483
|
+
{ label: "10", value: 10 },
|
|
484
|
+
{ label: "20", value: 20 },
|
|
485
|
+
{ label: "30", value: 30 },
|
|
486
|
+
{ label: "50", value: 50 },
|
|
487
|
+
{ label: "100", value: 100 },
|
|
488
|
+
{ label: "500", value: 500 }
|
|
489
|
+
]),
|
|
482
490
|
buildWrapper("Tree Table Properties", [
|
|
483
491
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
484
492
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
@@ -495,7 +503,9 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
495
503
|
break;
|
|
496
504
|
case "Radio":
|
|
497
505
|
uiSchema.elements = [
|
|
498
|
-
|
|
506
|
+
getInputField("errorMessage", "Error Message"),
|
|
507
|
+
emptyBox("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
|
|
508
|
+
getArrayControl("sectionLabels", "label", "Options Of Radio")
|
|
499
509
|
]
|
|
500
510
|
break;
|
|
501
511
|
case "Select":
|