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
package/package.json
CHANGED
|
@@ -161,6 +161,21 @@ export const buildSchema = (config: any, tableName?: string, isArrayType?: boole
|
|
|
161
161
|
buildSchema(e, config.name, config.type === "Array" ? true : false)
|
|
162
162
|
})
|
|
163
163
|
}
|
|
164
|
+
else if(( config.type == "UploadArray")){
|
|
165
|
+
if (!schema.properties[config.name]) {
|
|
166
|
+
schema.properties[config.name] = {
|
|
167
|
+
type: "array",
|
|
168
|
+
items: {
|
|
169
|
+
type: "object",
|
|
170
|
+
properties: {},
|
|
171
|
+
required: []
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
config.elements.map((e, elemInd) => {
|
|
176
|
+
buildSchema(e, config.name, config.type === "UploadArray" ? true : false)
|
|
177
|
+
})
|
|
178
|
+
}
|
|
164
179
|
else {
|
|
165
180
|
config.elements.map((e, elemInd) => {
|
|
166
181
|
buildSchema(e)
|
|
@@ -6,6 +6,7 @@ export const ComponentSchema: any = {
|
|
|
6
6
|
oneOf: [
|
|
7
7
|
{ title: "Masked Aadhar Card", const: "AadharcardText" },
|
|
8
8
|
{ title: "Array", const: "Array" },
|
|
9
|
+
{ title: "Upload Array", const: "UploadArray" },
|
|
9
10
|
{ title: "Button", const: "Button" },
|
|
10
11
|
{ title: "Data Card", const: "card" },
|
|
11
12
|
{ title: "Check Box", const: "CheckBox" },
|