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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -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 (config.type == "Table" || config.type == "Array") {
144
+ if ( config.type == "Array") {
145
145
  if (!schema.properties[config.name]) {
146
146
  schema.properties[config.name] = {
147
147
  type: "array",