impaktapps-ui-builder 0.0.304 → 0.0.305

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.304",
3
+ "version": "0.0.305",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -3,45 +3,38 @@ import _ from "lodash";
3
3
  import { createLayoutFormat } from "./buildConfig";
4
4
 
5
5
 
6
- const TextField = {
7
- type: "Control",
8
- scope: "#/properties/text",
9
-
10
- options: {
11
- widget: "InputField",
12
- },
13
- config: {
14
- layout: {
15
- xs: 11,
16
- sm: 11,
17
- md: 5.5,
18
- lg: 5.5,
19
- },
20
- main: {
21
- label:"Aadhaar No.",
22
- max:2000,
23
- step:200,
24
- autoFormat:true,
25
- // patternRegex:"^[A-Z]{5}[0-9]{4}[A-Z]$",
26
- patternRegex:"^[0-9\\s]*$",
27
- // valueLength:14,
28
- spaceIndex:4,
29
- autoMaskLength:4,
30
- autoMask:true,
31
- defaultStyle:true
32
- },
33
- style:{}
6
+ const TextField = {
7
+ "type": "Control",
8
+ "scope": "#/properties/AAdhar",
9
+ "layout": 12,
10
+ "options": {
11
+ "widget": "InputField"
34
12
  },
13
+ config:{
14
+ main:{
15
+ label:"Adhaar Card",
16
+ max:2000,
17
+ step:200,
18
+ placeholder:"XXXX XXXX XXXX",
19
+ autoFormat:true,
20
+ patternRegex:"^[0-9\\s]*$",
21
+ valueLength:14,
22
+ spaceIndex:4,
23
+ autoMaskLength:4,
24
+ autoMask:true,
25
+ defaultStyle:true
26
+ }
35
27
  }
28
+ };
36
29
 
37
- export const buildAdhaarField = (config:any,componentScope:string) =>{
30
+ export const buildAdhaarField = (config: any, componentScope: string) => {
38
31
  const inputField: any = _.cloneDeep(TextField);
39
32
  inputField.config.main.label = config.label;
40
33
  if (config.style) {
41
- inputField.config.style = JSON.parse(config.style)
34
+ inputField.config.style = JSON.parse(config.style)
42
35
  }
43
36
  if (config.layout) {
44
- inputField.config.layout = createLayoutFormat(config.layout)
37
+ inputField.config.layout = createLayoutFormat(config.layout)
45
38
  }
46
39
  inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
47
40
  inputField.scope = componentScope;
@@ -49,45 +42,35 @@ export const buildAdhaarField = (config:any,componentScope:string) =>{
49
42
  }
50
43
 
51
44
 
52
- const PanField = {
53
- type: "Control",
54
- scope: "#/properties/text",
55
-
56
- options: {
57
- widget: "InputField",
58
- },
59
- config: {
60
- layout: {
61
- xs: 11,
62
- sm: 11,
63
- md: 5.5,
64
- lg: 5.5,
65
- },
66
- main: {
67
- label:"Aadhaar No.",
68
- max:2000,
69
- step:200,
70
- // autoFormat:true,
71
- patternRegex:"^[A-Z]{5}[0-9]{4}[A-Z]$",
72
- // patternRegex:"^[0-9\\s]*$",
73
- // valueLength:14,
74
- spaceIndex:4,
75
- autoMaskLength:4,
76
- // autoMask:true,
77
- defaultStyle:true
78
- },
79
- style:{}
45
+ const PanField = {
46
+ "type": "Control",
47
+ "scope": "#/properties/pan",
48
+ "layout": 12,
49
+ "options": {
50
+ "widget": "InputField"
80
51
  },
52
+ config:{
53
+ main:{
54
+ label:"Pan Card",
55
+ placeholder:"Enter Pan card",
56
+ patternRegex:"^[A-Z]{0,5}\\d{0,4}[A-Z]?$",
57
+ valueLength:10,
58
+ spaceIndex:4,
59
+ autoMaskLength:5,
60
+ autoMask:true,
61
+ defaultStyle:true
62
+ }
81
63
  }
64
+ };
82
65
 
83
- export const buildPanField = (config:any,componentScope:string) =>{
66
+ export const buildPanField = (config: any, componentScope: string) => {
84
67
  const inputField: any = _.cloneDeep(PanField);
85
68
  inputField.config.main.label = config.label;
86
69
  if (config.style) {
87
- inputField.config.style = JSON.parse(config.style)
70
+ inputField.config.style = JSON.parse(config.style)
88
71
  }
89
72
  if (config.layout) {
90
- inputField.config.layout = createLayoutFormat(config.layout)
73
+ inputField.config.layout = createLayoutFormat(config.layout)
91
74
  }
92
75
  inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
93
76
  inputField.scope = componentScope;