impaktapps-ui-builder 1.0.45 → 1.0.47
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 +3 -13
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +7 -7
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +3 -13
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +1 -1
package/package.json
CHANGED
|
@@ -28,25 +28,15 @@ export default (FormData: any) => {
|
|
|
28
28
|
|
|
29
29
|
export const createLayoutFormat = (config: any[]) => {
|
|
30
30
|
if (_.isEmpty(config)) {
|
|
31
|
-
return {
|
|
32
|
-
xs: 12,
|
|
33
|
-
sm: 12,
|
|
34
|
-
md: 12,
|
|
35
|
-
lg: 12,
|
|
36
|
-
}
|
|
31
|
+
return { xs: 12, sm: 6, md: 4, lg: 3 }
|
|
37
32
|
}
|
|
38
|
-
let data: any = {
|
|
39
|
-
xs: 12,
|
|
40
|
-
sm: 12,
|
|
41
|
-
md: 6,
|
|
42
|
-
lg: 6,
|
|
43
|
-
};
|
|
33
|
+
let data: any = { xs: 12, sm: 6, md: 4, lg: 3 };
|
|
44
34
|
config.map((e: any) => {
|
|
45
35
|
data[e.key || "xs"] = +e.value || 5.5
|
|
46
36
|
})
|
|
47
37
|
return data;
|
|
48
38
|
};
|
|
49
|
-
export const flatObjectValueInArray = (config: any[]=[]) => {
|
|
39
|
+
export const flatObjectValueInArray = (config: any[] = []) => {
|
|
50
40
|
if (config.length < 1) {
|
|
51
41
|
return
|
|
52
42
|
}
|
|
@@ -141,7 +141,7 @@ function buildRule(configObj: any, tableName?: string, arrayHolderName?: boolean
|
|
|
141
141
|
export const buildSchema = (config: any, tableName?: string, isArrayType?: boolean) => {
|
|
142
142
|
buildRule(config, tableName, isArrayType);
|
|
143
143
|
if (config?.elements) {
|
|
144
|
-
if (
|
|
144
|
+
if ( config.type == "Array") {
|
|
145
145
|
if (!schema.properties[config.name]) {
|
|
146
146
|
schema.properties[config.name] = {
|
|
147
147
|
type: "array",
|