impaktapps-ui-builder 1.0.77-test.1 → 1.0.77-test.3
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 +15 -0
- 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/buildUiSchema.ts +15 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
|
@@ -6222,6 +6222,7 @@ const ComponentSchema = {
|
|
|
6222
6222
|
oneOf: [
|
|
6223
6223
|
{ title: "Masked Aadhar Card", const: "AadharcardText" },
|
|
6224
6224
|
{ title: "Array", const: "Array" },
|
|
6225
|
+
{ title: "Upload Array", const: "UploadArray" },
|
|
6225
6226
|
{ title: "Button", const: "Button" },
|
|
6226
6227
|
{ title: "Data Card", const: "card" },
|
|
6227
6228
|
{ title: "Check Box", const: "CheckBox" },
|
|
@@ -12417,6 +12418,20 @@ const buildSchema = (config2, tableName, isArrayType) => {
|
|
|
12417
12418
|
config2.elements.map((e, elemInd) => {
|
|
12418
12419
|
buildSchema(e, config2.name, config2.type === "Array" ? true : false);
|
|
12419
12420
|
});
|
|
12421
|
+
} else if (config2.type == "UploadArray") {
|
|
12422
|
+
if (!schema.properties[config2.name]) {
|
|
12423
|
+
schema.properties[config2.name] = {
|
|
12424
|
+
type: "array",
|
|
12425
|
+
items: {
|
|
12426
|
+
type: "object",
|
|
12427
|
+
properties: {},
|
|
12428
|
+
required: []
|
|
12429
|
+
}
|
|
12430
|
+
};
|
|
12431
|
+
}
|
|
12432
|
+
config2.elements.map((e, elemInd) => {
|
|
12433
|
+
buildSchema(e, config2.name, config2.type === "UploadArray" ? true : false);
|
|
12434
|
+
});
|
|
12420
12435
|
} else {
|
|
12421
12436
|
config2.elements.map((e, elemInd) => {
|
|
12422
12437
|
buildSchema(e);
|