impaktapps-ui-builder 0.0.277 → 0.0.279

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.
@@ -102,33 +102,33 @@ export const componentBasicUiSchema: any = {
102
102
  main: {
103
103
  label: "Type",
104
104
  options: [
105
- { label: "Select", value: "Select" },
106
- { label: "Date", value: "Date" },
107
- { label: "CheckBox", value: "CheckBox" },
108
- { label: "Table", value: "Table" },
109
- { label: "Array", value: "Array" },
110
- { label: "Container", value: "WrapperSection" },
111
- { label: "Tabs", value: "TabSection" },
112
- { label: "Text", value: "Text" },
113
- { label: "Radio", value: "Radio" },
114
- { label: "Text Area", value: "TextArea" },
115
- { label: "Button", value: "Button" },
116
- { label: "Card", value: "card" },
117
- { label: "Rank", value: "Rank" },
118
- { label: "SpeedoMeter", value: "SpeedoMeter" },
119
- { label: "ProgressBar", value: "ProgressBar" },
120
- { label: "Graph", value: "Graph" },
121
- { label: "Label", value: "Box" },
122
- { label: "Upload File", value: "UploadFile" },
123
- { label: "Download File", value: "DownloadFile" },
124
- { label: "Empty Box", value: "EmptyBox" },
125
- { label: "ProgressBar Card", value: "ProgressBarCard" },
126
- { label: "Rank Card", value: "RankCard" },
127
- { label: "Runner Boy Progress Bar", value: "RunnerBoyProgressBar" },
128
- { label: "Slider", value: "Slider" },
129
- { label: "Timer", value: "Timer" },
130
- { label: "MultipleSelect", value: "MultipleSelect" },
131
- { label: "LeaderBoard", value: "LeaderBoard" }
105
+ { title: "Select", const: "Select" },
106
+ { title: "Date", const: "Date" },
107
+ { title: "CheckBox", const: "CheckBox" },
108
+ { title: "Table", const: "Table" },
109
+ { title: "Array", const: "Array" },
110
+ { title: "Container", const: "WrapperSection" },
111
+ { title: "Tabs", const: "TabSection" },
112
+ { title: "Text", const: "Text" },
113
+ { title: "Radio", const: "Radio" },
114
+ { title: "Text Area", const: "TextArea" },
115
+ { title: "Button", const: "Button" },
116
+ { title: "Card", const: "card" },
117
+ { title: "Rank", const: "Rank" },
118
+ { title: "SpeedoMeter", const: "SpeedoMeter" },
119
+ { title: "ProgressBar", const: "ProgressBar" },
120
+ { title: "Graph", const: "Graph" },
121
+ { title: "Label", const: "Box" },
122
+ { title: "Upload File", const: "UploadFile" },
123
+ { title: "Download File", const: "DownloadFile" },
124
+ { title: "Empty Box", const: "EmptyBox" },
125
+ { title: "ProgressBar Card", const: "ProgressBarCard" },
126
+ { title: "Rank Card", const: "RankCard" },
127
+ { title: "Runner Boy Progress Bar", const: "RunnerBoyProgressBar" },
128
+ { title: "Slider", const: "Slider" },
129
+ { title: "Timer", const: "Timer" },
130
+ { title: "MultipleSelect", const: "MultipleSelect" },
131
+ { title: "LeaderBoard", const: "LeaderBoard" }
132
132
  ],
133
133
  },
134
134
  },
@@ -212,10 +212,10 @@ export const componentBasicUiSchema: any = {
212
212
  main: {
213
213
  label: "Screen Size",
214
214
  options: [
215
- { label: "Extra Small", value: "xs" },
216
- { label: "Small", value: "sm" },
217
- { label: "Medium", value: "md" },
218
- { label: "Large", value: "lg" },
215
+ { title: "Extra Small", const: "xs" },
216
+ { title: "Small", const: "sm" },
217
+ { title: "Medium", const: "md" },
218
+ { title: "Large", const: "lg" },
219
219
  ],
220
220
  },
221
221
  },
@@ -237,10 +237,10 @@ export const componentBasicUiSchema: any = {
237
237
  main: {
238
238
  label: "Value",
239
239
  options: [
240
- { label: "3", value: "3" },
241
- { label: "5.5", value: "5.5" },
242
- { label: "8", value: "8" },
243
- { label: "12", value: "12" },
240
+ { title: "3", const: "3" },
241
+ { title: "5.5", const: "5.5" },
242
+ { title: "8", const: "8" },
243
+ { title: "12", const: "12" },
244
244
  ],
245
245
  },
246
246
  },
@@ -88,7 +88,7 @@ export const PageMasterUiSchema: any = {
88
88
  main: {
89
89
  label: "Template",
90
90
  programType: true,
91
- options: [{ "label": "Basic Template", value: 1 }],
91
+ options: [{ title: "Basic Template", const: 1 }],
92
92
 
93
93
  required: true,
94
94
  },
@@ -103,22 +103,22 @@ export const EventUiSchema: any = {
103
103
  label: "Event Type",
104
104
  type: "text",
105
105
  options: [
106
- { label: "Click Event", value: "onClick" },
107
- { label: "onStart", value: "onStart" },
108
- { label: "Load Event", value: "onLoad" },
109
- { label: "Change Event", value: "onChange" },
110
- { label: "Success", value: "Success" },
111
- { label: "Fail", value: "Fail" }
106
+ { title: "Click Event", const: "onClick" },
107
+ { title: "onStart", const: "onStart" },
108
+ { title: "Load Event", const: "onLoad" },
109
+ { title: "Change Event", const: "onChange" },
110
+ { title: "Success", const: "Success" },
111
+ { title: "Fail", const: "Fail" }
112
112
  ]
113
113
 
114
114
  },
115
115
  },
116
116
  },
117
117
  getSelectField("Handler", "Handler", [
118
- { label: "Custom", value: "custom" },
119
- { label: "Api", value: "api" },
120
- { label: "Inbuilt Function", value: "inBuiltFunction" },
121
- { label: "Refresh", value: "refresh" },
118
+ { title: "Custom", const: "custom" },
119
+ { title: "Api", const: "api" },
120
+ { title: "Inbuilt Function", const: "inBuiltFunction" },
121
+ { title: "Refresh", const: "refresh" },
122
122
  ]),
123
123
  ],
124
124
  },
@@ -29,8 +29,8 @@ export default (
29
29
 
30
30
  } else if (handlerType === "inBuiltFunction") {
31
31
  uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name", [
32
- { label: "RankProvider", value: "RankProvider" },
33
- { label: "Download File", value: "downloadFile" },
32
+ { title: "RankProvider", const: "RankProvider" },
33
+ { title: "Download File", const: "downloadFile" },
34
34
  ])
35
35
  uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, { xs: 12, sm: 12, md: 6 })
36
36
  } else if (handlerType === "refresh") {
@@ -156,7 +156,7 @@ async function mergeFormdata(handlerResponse: any, componentName: string, eventC
156
156
  ...pre, properties: {
157
157
  ...pre.properties, [componentName]: {
158
158
  // ...pre?.properties?. [componentName],
159
- enum: handlerResponse.data
159
+ oneOf: handlerResponse.data
160
160
  }
161
161
  }
162
162
  }