impaktapps-ui-builder 0.0.393-alpha.21 → 0.0.393-alpha.24

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.21",
3
+ "version": "0.0.393-alpha.24",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -66,18 +66,7 @@ function buildRule(configObj: any, tableName?: string, arrayHolderName?: boolean
66
66
  }
67
67
  }
68
68
  }
69
- }
70
- else if ((configObj.type === "Select" || configObj.type === "MultipleSelect") && configObj.value?.length >= 0) {
71
- // if (configObj.type === "Select") {
72
- // let oneOfOptions = configObj.value && configObj.value.length > 0
73
- // ? configObj.value.map((e) => ({ const: e.value, title: e.label }))
74
- // : [{ const: "", title: "No options available" }];
75
-
76
- // schema.properties[configObj.name] = {
77
- // oneOf: oneOfOptions
78
- // };
79
- // }
80
-
69
+ } else if ((configObj.type === "Select" || configObj.type === "MultipleSelect") && configObj.value?.length > 0) {
81
70
  if (configObj.type === "Select") {
82
71
  schema.properties[configObj.name] = {
83
72
  oneOf: configObj.value.map((e) => {
@@ -95,28 +84,6 @@ function buildRule(configObj: any, tableName?: string, arrayHolderName?: boolean
95
84
  }
96
85
  }
97
86
  }
98
- // else if ((configObj.type === "Select" || configObj.type === "MultipleSelect") && configObj.value?.length >= 0) {
99
-
100
- // if (configObj.type === "Select") {
101
- // schema.properties[configObj.name] = {
102
- // oneOf: configObj.value.length > 0
103
- // ? configObj.value.map((e) => {
104
- // return { const: e.value, title: e.label };
105
- // })
106
- // : [{ const: "", title: "" }]
107
- // };
108
- // } else if (configObj.type === "MultipleSelect") {
109
- // schema.properties[configObj.name] = {
110
- // items: {
111
- // oneOf: configObj.value.length > 0
112
- // ? configObj.value.map((e) => {
113
- // return { const: e.value, title: e.label };
114
- // })
115
- // : [{ const: "", title: "" }]
116
- // }
117
- // };
118
- // }
119
- // }
120
87
  if (configObj.validation) {
121
88
  configObj.validation.forEach((rule: any) => {
122
89
  if (tableName) {