impaktapps-ui-builder 1.0.77-test.2 → 1.0.77-test.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.77-test.2",
3
+ "version": "1.0.77-test.4",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -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)
@@ -20,7 +20,7 @@ const sectionLabels = {
20
20
  SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
21
21
  card: ["Core", "Properties", "Events", "Style", "Validation"],
22
22
  UploadFile: ["Core", "Events", "Style", "Validation"],
23
- UploadFileIcon: ["Core", "Events", "Style"],
23
+ UploadFileIcon: ["Core", "Events", "Style","Validation"],
24
24
  DeleteFileIcon: ["Core", "Events", "Style"],
25
25
  Graph: ["Core", "Properties", "Events", "Style", "Validation"],
26
26
  DownloadFile: ["Core", "Events", "Style", "Validation"],