impaktapps-ui-builder 0.0.393-alpha.4 → 0.0.393-alpha.6

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": "0.0.393-alpha.4",
3
+ "version": "0.0.393-alpha.6",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -84,6 +84,20 @@ function buildRule(configObj: any, tableName?: string, arrayHolderName?: boolean
84
84
  }
85
85
  }
86
86
  }
87
+ else if ((configObj.type === "Select" || configObj.type === "MultipleSelect") && configObj.value?.length === 0){
88
+ if (configObj.type === "Select") {
89
+ schema.properties[configObj.name] = {
90
+ oneOf: {}
91
+ }
92
+ }
93
+ else if (configObj.type === "MultipleSelect") {
94
+ schema.properties[configObj.name] = {
95
+ items: {
96
+ oneOf: {}
97
+ }
98
+ }
99
+ }
100
+ }
87
101
  if (configObj.validation) {
88
102
  configObj.validation.forEach((rule: any) => {
89
103
  if (tableName) {
@@ -76,7 +76,7 @@ export default (funcParams: funcParamsProps) => {
76
76
  (pre: any) => {
77
77
  return {
78
78
  ...funcParams.schema, properties:
79
- { ...funcParams.schema.properties, ...pre.properties, }
79
+ { ...pre.properties,...funcParams.schema.properties,}
80
80
  }
81
81
  }
82
82
  )