impaktapps-ui-builder 0.0.382460 → 1.0.1-alpha.1

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.
Files changed (49) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1316 -1121
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +16 -16
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildPhoneInput.d.ts +1 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +62 -59
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +17 -21
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +10 -2
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +23 -32
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +26 -33
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/phoneInput.d.ts +20 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +52 -38
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/styleSection.d.ts +7 -8
  14. package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +29 -33
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +6 -0
  17. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +56 -36
  18. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
  19. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -0
  20. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +8 -0
  21. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -1
  22. package/package.json +1 -1
  23. package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -0
  24. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +6 -1
  25. package/src/impaktapps-ui-builder/builder/build/buildPhoneInput.ts +26 -0
  26. package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
  27. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +42 -29
  28. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +111 -96
  29. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +113 -61
  30. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +8 -4
  31. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +108 -88
  32. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +39 -17
  33. package/src/impaktapps-ui-builder/builder/build/uischema/phoneInput.ts +16 -0
  34. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +44 -44
  35. package/src/impaktapps-ui-builder/builder/build/uischema/styleSection.ts +9 -13
  36. package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
  37. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +40 -18
  38. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +73 -2
  39. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +63 -45
  40. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +51 -44
  41. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +232 -309
  42. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +166 -224
  43. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
  44. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +147 -205
  45. package/src/impaktapps-ui-builder/builder/services/component.ts +228 -57
  46. package/src/impaktapps-ui-builder/builder/services/event.ts +182 -66
  47. package/src/impaktapps-ui-builder/builder/services/utils.ts +2 -2
  48. package/src/impaktapps-ui-builder/runtime/services/events.ts +32 -21
  49. package/src/impaktapps-ui-builder/runtime/services/service.ts +18 -29
@@ -22,15 +22,20 @@ export const TableSection = (theme) => {
22
22
  },
23
23
  config: {
24
24
  main: {
25
- color: "info",
26
25
  onClick: "widgetAddClickHandler",
27
26
  size: "small",
28
- icon: "AddIcon",
29
- iconLabel: "Add New",
27
+ icon: "TableAddIcon",
28
+ iconLabel: "Add",
30
29
  styleDefault: true,
31
30
  },
32
31
  style: {
33
32
  mt: "6px",
33
+ color: "inherit",
34
+ fill: "inherit",
35
+ "&:hover": {
36
+ color: "inherit",
37
+ fill: "inherit",
38
+ }
34
39
  },
35
40
  },
36
41
  }
@@ -39,21 +44,25 @@ export const TableSection = (theme) => {
39
44
  widget: {
40
45
  type: "Control",
41
46
  scope: "#/properties/Paste_Component",
42
-
43
47
  options: {
44
48
  widget: "IconButton",
45
49
  },
46
50
  config: {
47
51
  main: {
48
- // color: "info",
49
52
  onClick: "copyPasteElement",
50
53
  size: "small",
51
- icon: "PasteIcon",
54
+ icon: "TablePaste",
52
55
  iconLabel: "Paste",
53
56
  styleDefault: true,
54
57
  },
55
58
  style: {
56
59
  mt: "6px",
60
+ color: "inherit",
61
+ fill: "inherit",
62
+ "&:hover": {
63
+ color: "inherit",
64
+ fill: "inherit",
65
+ }
57
66
  },
58
67
  },
59
68
  }
@@ -69,16 +78,21 @@ export const TableSection = (theme) => {
69
78
  elements: [
70
79
  {
71
80
  accessorKey: "name",
72
- header: "Name"
81
+ header: "Name",
82
+ type: "string",
83
+ size: 300,
73
84
  },
74
85
  {
75
86
  accessorKey: "type",
76
- header: "Type"
87
+ header: "Type",
88
+ type: "string",
89
+ size: 200,
77
90
  },
78
91
  {
79
92
  header: "Edit Record",
80
93
  field: "Reject_Records",
81
- flex: 1,
94
+ size: 150,
95
+ type: "action",
82
96
  widget: {
83
97
  type: "Control",
84
98
  scope: "#/properties/RejectButton",
@@ -87,14 +101,16 @@ export const TableSection = (theme) => {
87
101
  },
88
102
  config: {
89
103
  main: {
90
- icon: "EditIcon",
91
- color: "primary",
104
+ icon: "TableEditIcon",
105
+ size: "small",
92
106
  onClick: "editComponents",
93
107
  tooltipMessage: "Reject This Record",
94
108
  },
95
-
96
109
  style: {
97
- color: theme.palette.primary.main,
110
+ fill: theme.palette.primary.main,
111
+ "& :hover": {
112
+ fill: theme.palette.primary.dark,
113
+ },
98
114
  },
99
115
  },
100
116
  },
@@ -102,7 +118,8 @@ export const TableSection = (theme) => {
102
118
  {
103
119
  header: "Delete",
104
120
  field: "Reject_Records",
105
- flex: 1,
121
+ size: 150,
122
+ type: "action",
106
123
  widget: {
107
124
  type: "Control",
108
125
  scope: "#/properties/RejectButton",
@@ -111,18 +128,24 @@ export const TableSection = (theme) => {
111
128
  },
112
129
  config: {
113
130
  main: {
114
- icon: "RejectIcon",
115
- color: "error",
131
+ icon: "Bin",
116
132
  onClick: "deletePopUpComponent",
117
133
  tooltipMessage: "Reject This Record",
118
134
  },
135
+ style: {
136
+ fill: theme.palette.primary.main,
137
+ "& :hover": {
138
+ fill: theme.palette.primary.dark,
139
+ },
140
+ },
119
141
  },
120
142
  },
121
143
  },
122
144
  {
123
145
  header: "Copy",
124
146
  field: "Copy_Component",
125
- flex: 1,
147
+ size: 150,
148
+ type: "action",
126
149
  widget: {
127
150
  type: "Control",
128
151
  scope: "#/properties/Copy_Component",
@@ -132,7 +155,6 @@ export const TableSection = (theme) => {
132
155
  config: {
133
156
  main: {
134
157
  icon: "FileCopyIcon",
135
- // color: "error",
136
158
  onClick: "copyPasteElement",
137
159
  styleDefault: true,
138
160
  disabled: false
@@ -1,7 +1,13 @@
1
1
  export const ValidationSection = {
2
- type: "HorizontalLayout",
2
+ type: "WrapperLayout",
3
+ config: {
4
+ main: {
5
+ label: " ",
6
+ gap: "8px"
7
+ }
8
+ },
3
9
  elements: [
4
- {
10
+ {
5
11
  type: "Control",
6
12
  scope: "#/properties/validation",
7
13
  layout: 11.5,
@@ -53,5 +59,70 @@ export const ValidationSection = {
53
59
  },
54
60
 
55
61
  },
62
+
63
+ // {
64
+ // type: "Control",
65
+ // scope: "#/properties/validation",
66
+ // options: {
67
+ // widget: "Array",
68
+ // },
69
+ // config: {
70
+ // layout: 12,
71
+ // main: {
72
+ // label: "Validation",
73
+ // childElementLabel: "Validation",
74
+ // },
75
+ // style: {
76
+ // marginLeft: "-24px",
77
+ // marginBottom: "24px !important",
78
+ // labelStyle: {
79
+ // marginLeft: "24px",
80
+ // },
81
+ // detailsStyle: {
82
+ // marginLeft: "24px",
83
+ // }
84
+ // }
85
+ // },
86
+ // elements: [
87
+ // {
88
+ // type: "Control",
89
+ // scope: "#/properties/validationType",
90
+ // options: {
91
+ // widget: "SelectInputField",
92
+ // },
93
+ // config: {
94
+ // layout: { xs: 6, sm: 6, md: 4, lg: 4 },
95
+ // main: {
96
+ // label: "Validation Type",
97
+ // },
98
+ // },
99
+ // },
100
+ // {
101
+ // type: "Control",
102
+ // scope: "#/properties/validationValue",
103
+
104
+ // options: {
105
+ // widget: "InputField",
106
+ // },
107
+ // config: {
108
+ // layout: { xs: 6, sm: 6, md: 4, lg: 4 },
109
+ // main: {
110
+ // label: "Validation Value",
111
+ // },
112
+ // },
113
+ // },
114
+ // {
115
+ // type: "Control",
116
+ // scope: "#/properties/emptyBox",
117
+ // options: {
118
+ // widget: "EmptyBox"
119
+ // },
120
+ // config: {
121
+ // layout: {xs: 0, sm: 0, md: 4, lg: 4}
122
+ // }
123
+ // }
124
+ // ],
125
+ // },
126
+
56
127
  ]
57
128
  };
@@ -1,57 +1,75 @@
1
- import { OptionArray } from "./coreSection";
2
-
3
1
  export const ValueTab = {
4
- type: "HorizontalLayout",
2
+ type: "WrapperLayout",
3
+ config: {
4
+ main: {
5
+ label: " ",
6
+ gap: "8px"
7
+ }
8
+ },
5
9
  elements: [
6
10
  {
7
11
  type: "Control",
8
12
  scope: "#/properties/value",
9
- layout: 12,
10
13
  options: {
11
- detail: {
12
- type: "HorizontalLayout",
13
- elements: [
14
- {
15
- type: "Control",
16
- scope: "#/properties/label",
17
- options: {
18
- widget: "InputField",
19
- },
20
- config: {
21
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
22
- main: {
23
- label: "Label",
24
- },
25
- },
14
+ widget: "Array",
15
+ },
16
+ config: {
17
+ layout: 12,
18
+ main: {
19
+ label: "Value",
20
+ childElementLabel: "Value",
21
+ },
22
+ style: {
23
+ marginLeft: "-24px",
24
+ marginBottom: "24px !important",
25
+ labelStyle: {
26
+ marginLeft: "24px",
27
+ },
28
+ detailsStyle: {
29
+ marginLeft: "24px",
30
+ }
31
+ }
32
+ },
33
+ elements: [
34
+ {
35
+ type: "Control",
36
+ scope: "#/properties/label",
37
+ options: {
38
+ widget: "InputField",
39
+ },
40
+ config: {
41
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
42
+ main: {
43
+ label: "Label",
26
44
  },
27
- {
28
- type: "Control",
29
- scope: "#/properties/value",
30
-
31
- options: {
32
- widget: "InputField",
33
- },
34
- config: {
35
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
36
- main: {
37
- label: "Value",
38
-
39
- },
40
- },
45
+ },
46
+ },
47
+ {
48
+ type: "Control",
49
+ scope: "#/properties/value",
50
+
51
+ options: {
52
+ widget: "InputField",
53
+ },
54
+ config: {
55
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
56
+ main: {
57
+ label: "Value",
58
+
41
59
  },
42
- {
43
- type: "Control",
44
- scope: "#/properties/emptyBox",
45
- options: {
46
- widget: "EmptyBox"
47
- },
48
- config: {
49
- layout: { xs: 0, sm: 0, md: 4, lg: 4 },
50
- }
51
- }
52
- ],
60
+ },
53
61
  },
54
- },
62
+ {
63
+ type: "Control",
64
+ scope: "#/properties/emptyBox",
65
+ options: {
66
+ widget: "EmptyBox"
67
+ },
68
+ config: {
69
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 },
70
+ }
71
+ }
72
+ ],
55
73
  }
56
74
  ],
57
75
  };
@@ -1,47 +1,55 @@
1
+ //headerIcons //action //elements
1
2
  export const ComponentSchema: any = {
2
3
  type: "object",
3
4
  properties: {
4
5
  type: {
5
- // type: "string",
6
6
  oneOf: [
7
- { title: "AadharcardText", const: "AadharcardText" },
7
+ { title: "Masked Aadhar Card", const: "AadharcardText" },
8
8
  { title: "Array", const: "Array" },
9
9
  { title: "Button", const: "Button" },
10
- { title: "Card", const: "card" },
11
- { title: "CheckBox", const: "CheckBox" },
10
+ { title: "Data Card", const: "card" },
11
+ { title: "Check Box", const: "CheckBox" },
12
12
  { title: "Container", const: "WrapperSection" },
13
- { title: "DataGrid", const: "DataGrid" },
13
+ { title: "Data Grid", const: "DataGrid" },
14
14
  { title: "Date", const: "Date" },
15
- { title: "DateTime", const: "DateTime" },
16
- { title: "Download File", const: "DownloadFile" },
15
+ { title: "Time Stamp", const: "DateTime" },
16
+ { title: "Download", const: "DownloadFile" },
17
17
  { title: "Empty Box", const: "EmptyBox" },
18
- { title: "File", const: "FileInput" },
18
+ { title: "File Handler", const: "FileInput" },
19
19
  { title: "Graph", const: "Graph" },
20
20
  { title: "Input Slider", const: "InputSlider" },
21
21
  { title: "Label", const: "Box" },
22
- { title: "LeaderBoard", const: "LeaderBoard" },
23
- { title: "MultipleSelect", const: "MultipleSelect" },
24
- { title: "PanCardText", const: "PanCardText" },
25
- { title: "Popup Container", const: "PopUp" },
26
- { title: "ProgressBar", const: "ProgressBar" },
27
- { title: "ProgressBar Card", const: "ProgressBarCard" },
28
- { title: "Select", const: "Select" },
22
+ { title: "Leaderboard", const: "LeaderBoard" },
23
+ { title: "Multi-Select Dropdown", const: "MultipleSelect" },
24
+ { title: "Pan Card Masked", const: "PanCardText" },
25
+ { title: "Pop Up", const: "PopUp" },
26
+ { title: "Progress Bar", const: "ProgressBar" },
27
+ { title: "Progress Bar Card", const: "ProgressBarCard" },
28
+ { title: "Dropdown", const: "Select" },
29
29
  { title: "Slider", const: "Slider" },
30
- { title: "SpeedoMeter", const: "SpeedoMeter" },
30
+ { title: "Speedometer", const: "SpeedoMeter" },
31
31
  { title: "Stepper Container", const: "Stepper" },
32
32
  { title: "Radio", const: "Radio" },
33
33
  { title: "Rank", const: "Rank" },
34
34
  { title: "Rank Card", const: "RankCard" },
35
- { title: "Runner Boy Progress Bar", const: "RunnerBoyProgressBar" },
35
+ { title: "Runner Boy", const: "RunnerBoyProgressBar" },
36
36
  { title: "Table", const: "Table" },
37
37
  { title: "Tabs", const: "TabSection" },
38
38
  { title: "Text", const: "Text" },
39
39
  { title: "Text Area", const: "TextArea" },
40
40
  { title: "Timer", const: "Timer" },
41
- { title: "Upload File", const: "UploadFile" },
42
- { title: "TreeMap", const: "TreeMap" },
43
- { title: "ColumnGroup", const: "ColumnGroup" },
44
- { title: "Thought of the Day", const: "Thought" },
41
+ { title: "Upload", const: "UploadFile" },
42
+ { title: "Tree ", const: "TreeMap" },
43
+ { title: "Column Group", const: "ColumnGroup" },
44
+ { title: "Thought of the day", const: "Thought" },
45
+ { title: "Phone Input", const: "PhoneInput" }
46
+ ]
47
+ },
48
+ elementType: {
49
+ oneOf: [
50
+ { title: "Table Action Element", const: "action" },
51
+ { title: "Table Header Element", const: "tableHeader" },
52
+ { title: "Table Element", const: "element" },
45
53
  ]
46
54
  },
47
55
  columnFormat: {
@@ -70,7 +78,7 @@ export const ComponentSchema: any = {
70
78
  type: "array",
71
79
  items: {
72
80
  type: "object",
73
- properties: {
81
+ properties: {
74
82
  key: {
75
83
  type: "string",
76
84
  oneOf: [
@@ -81,7 +89,6 @@ export const ComponentSchema: any = {
81
89
  ],
82
90
  },
83
91
  value: {
84
- // type: "string",
85
92
 
86
93
  },
87
94
  },
@@ -102,7 +109,6 @@ export const ComponentSchema: any = {
102
109
  ],
103
110
  },
104
111
  value: {
105
- // type: "string",
106
112
 
107
113
  },
108
114
  },
@@ -191,7 +197,7 @@ export const ComponentSchema: any = {
191
197
  },
192
198
  },
193
199
  },
194
- enableColumnFilter:{
200
+ enableColumnFilter: {
195
201
  type: "array",
196
202
  items: {
197
203
  type: "object",
@@ -202,25 +208,23 @@ export const ComponentSchema: any = {
202
208
  },
203
209
  },
204
210
  },
205
- filteringOptions:{
206
- type: "array",
207
- items:{
208
- oneOf: [
209
- { const: 'fuzzy', title: 'Fuzzy' },
210
- { const: 'contains', title: 'Contain' },
211
- { const: 'startsWith', title: 'Starts with' },
212
- { const: 'endsWith', title: 'Ends with' },
213
- { const: 'equals', title: 'Equals' },
214
- { const: 'notEquals', title: 'Not Equals' },
215
- { const: 'between', title: 'Between' },
216
- { const: 'betweenInclusive', title: 'Between inclusive' },
217
- { const: 'greaterThan', title: 'Greater than' },
218
- { const: 'greaterThanOrEqualTo', title: 'Greater than or equal to' },
219
- { const: 'lessThan', title: 'Less than' },
220
- { const: 'lessThanOrEqualTo', title: 'Less than or equal to' },
221
- ]
222
- },
211
+ filteringOptions: {
212
+ oneOf: [
213
+ { const: 'fuzzy', title: 'Fuzzy' },
214
+ { const: 'contains', title: 'Contain' },
215
+ { const: 'startsWith', title: 'Starts with' },
216
+ { const: 'endsWith', title: 'Ends with' },
217
+ { const: 'equals', title: 'Equals' },
218
+ { const: 'notEquals', title: 'Not Equals' },
219
+ { const: 'between', title: 'Between' },
220
+ { const: 'betweenInclusive', title: 'Between inclusive' },
221
+ { const: 'greaterThan', title: 'Greater than' },
222
+ { const: 'greaterThanOrEqualTo', title: 'Greater than or equal to' },
223
+ { const: 'lessThan', title: 'Less than' },
224
+ { const: 'lessThanOrEqualTo', title: 'Less than or equal to' },
225
+ ]
223
226
  },
227
+
224
228
  legendLabels: {
225
229
  type: "array",
226
230
  items: {
@@ -339,11 +343,14 @@ export const ComponentSchema: any = {
339
343
  { title: "Info", const: "info" },
340
344
  ]
341
345
  },
346
+ pageName: {
347
+ path: []
348
+ },
342
349
  name: {
343
350
  type: "string",
344
351
  },
345
352
  label: { type: 'string' },
346
- RemoveItemButton:{
353
+ RemoveItemButton: {
347
354
  disabled: true,
348
355
  },
349
356
  },