impaktapps-ui-builder 0.0.410 → 0.0.412

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 (57) hide show
  1. package/dist/impaktapps-ui-builder.es.js +697 -872
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +14 -14
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +4 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildDate.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildInputSlider.d.ts +1 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildTreeMap.d.ts +1 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +19 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.d.ts +19 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -1
  14. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +6 -0
  15. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -4
  16. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +5 -3
  17. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +9 -5
  18. package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +8 -5
  19. package/dist/src/impaktapps-ui-builder/runtime/services/interface.d.ts +1 -0
  20. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +9 -7
  21. package/package.json +1 -1
  22. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +9 -5
  23. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +11 -15
  24. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +11 -1
  25. package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +46 -0
  26. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +8 -6
  27. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +6 -0
  28. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +22 -23
  29. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +9 -2
  30. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +1 -1
  31. package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +58 -0
  32. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +54 -49
  33. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +16 -11
  34. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +34 -8
  35. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +1 -1
  36. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +19 -0
  37. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +20 -0
  38. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +1 -1
  39. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +1 -2
  40. package/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.ts +1 -0
  41. package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
  42. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +2 -4
  43. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -1
  44. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +32 -17
  45. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +19 -213
  46. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +8 -1
  47. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +67 -274
  48. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -1
  49. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +1 -104
  50. package/src/impaktapps-ui-builder/builder/services/component.ts +59 -74
  51. package/src/impaktapps-ui-builder/builder/services/event.ts +15 -13
  52. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +17 -26
  53. package/src/impaktapps-ui-builder/builder/services/utils.ts +1 -1
  54. package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +1 -1
  55. package/src/impaktapps-ui-builder/runtime/services/events.ts +141 -95
  56. package/src/impaktapps-ui-builder/runtime/services/interface.ts +2 -1
  57. package/src/impaktapps-ui-builder/runtime/services/service.ts +85 -47
@@ -19,7 +19,7 @@ import { buildLabel } from "./buildLabel";
19
19
  import { buildUploadFile } from "./buildUplaodFile";
20
20
  import { buildDownloadFile } from "./buildDownloadFile";
21
21
  import { buildCard } from "./buildCard";
22
- import { buildDate } from "./buildDate";
22
+ import { buildDate, buildDateTime } from "./buildDate";
23
23
  import { buildRankCard } from "./buildRankCard";
24
24
  import { buildRollAndDice } from "./buildRollAndDice";
25
25
  import { buildTimer } from "./buildTimer";
@@ -37,6 +37,8 @@ import { buildFileInput } from "./buildFileInput";
37
37
  import { buildStepper } from "./buildStepper";
38
38
  import { buildPopUp } from "./buildPop";
39
39
  import { buildDataGrid } from "./buildDataGrid";
40
+ import { buildInputSlider } from "./buildInputSlider";
41
+ import { buildTreeMap } from "./buildTreeMap";
40
42
  export let schema = {
41
43
  type: "object",
42
44
  properties: {},
@@ -167,6 +169,15 @@ const buildUiSchema = (config: any) => {
167
169
  let elements: any = {};
168
170
  const componentScope = `#/properties/${config.name}`;
169
171
  switch (config.type) {
172
+ case "TreeMap":
173
+ elements = buildTreeMap(config, componentScope)
174
+ break;
175
+ case "DateTime":
176
+ elements = buildDateTime(config, componentScope);
177
+ break;
178
+ case "InputSlider":
179
+ elements = buildInputSlider(config, componentScope);
180
+ break;
170
181
  case "DataGrid":
171
182
  elements = buildDataGrid(config, componentScope);
172
183
  break;
@@ -278,7 +289,13 @@ const buildUiSchema = (config: any) => {
278
289
  case "Timer":
279
290
  elements = buildTimer(config, componentScope);
280
291
  break;
281
-
292
+ case "ColumnGroup":
293
+ elements = {
294
+ accessorKey: config.name,
295
+ header: config.label || config.name,
296
+ elements: [],
297
+ }
298
+ break;
282
299
  case "MultipleSelect":
283
300
  elements = buildMultiSelect(config, componentScope);
284
301
  break;
@@ -298,27 +315,49 @@ const buildUiSchema = (config: any) => {
298
315
  if (config?.type === "LeaderBoard") {
299
316
  return elements;
300
317
  }
318
+ else if (config.type == "ColumnGroup") {
319
+ const sizeMap = {}
320
+ if (config.sizeHolder) {
321
+ config.sizeHolder.map((e, i) => {
322
+ sizeMap[e.keyName] = e.value
323
+ });
324
+ }
325
+ elements.elements = config.elements.map((cellElem, elemInd) => {
326
+ return {
327
+ accessorKey: cellElem.name,
328
+ header: cellElem.label || cellElem.name,
329
+ size: sizeMap[cellElem.name] || 180,
330
+ type: cellElem.columnFormat,
331
+ elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
332
+ }
333
+ })
334
+ }
301
335
  else if (config.type == "Table") {
302
336
  const sizeMap = {}
303
337
  if (config.sizeHolder) {
304
- config.sizeHolder.map((e, i) => {
338
+ config.sizeHolder.map((e, i) => {
305
339
  sizeMap[e.keyName] = e.value
306
340
  });
307
341
  }
308
- elements.elements = config.elements.map((e, elemInd) => {
309
- if (e.type) {
342
+ elements.elements = config.elements.map((cellElem, elemInd) => {
343
+ if (cellElem.type) {
310
344
  return {
311
- accessorKey: e.name,
312
- header: e.label || e.name,
313
- size: sizeMap[e.name]|| 180,
314
- widget: buildUiSchema(e)
345
+ accessorKey: cellElem.name,
346
+ header: cellElem.label || cellElem.name,
347
+ size: sizeMap[cellElem.name] || 180,
348
+ type: cellElem.columnFormat,
349
+ widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem) : undefined,
350
+ elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
351
+ }
352
+ } else {
353
+ return {
354
+ accessorKey: cellElem.name,
355
+ type: cellElem.columnFormat,
356
+ header: cellElem.label || cellElem.name,
357
+ size: sizeMap[cellElem.name] || 180
315
358
  }
316
359
  }
317
- return {
318
- accessorKey: e.name,
319
- header: e.label || e.name,
320
- size: sizeMap[e.name]|| 180
321
- }
360
+
322
361
  })
323
362
  }
324
363
  else if (config.type == "Array") {
@@ -336,38 +375,4 @@ const buildUiSchema = (config: any) => {
336
375
  }
337
376
 
338
377
 
339
- export default buildUiSchema;
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
-
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
-
378
+ export default buildUiSchema;
@@ -2,15 +2,20 @@ import { createLayoutFormat } from "./buildConfig";
2
2
  import WrapperSection from "./uischema/wrapperSection";
3
3
  import _ from "lodash";
4
4
 
5
- export const buildWrapperSection = (config,componentScope) =>{
6
- const wrapper: any = _.cloneDeep(WrapperSection);
7
- wrapper.config.main.label = config.label;
8
- wrapper.config.main.divider = config.divider === "YES" ? true : false;
9
- if (config.style) {
10
- wrapper.config.style = JSON.parse(config.style)
11
- }
12
- if (config.layout) {
13
- wrapper.config.layout = createLayoutFormat(config.layout)
14
- }
15
- return wrapper;
5
+ export const buildWrapperSection = (config, componentScope) => {
6
+ const wrapper: any = _.cloneDeep(WrapperSection);
7
+ wrapper.scope = componentScope;
8
+ wrapper.config.main.label = config.label;
9
+ wrapper.config.main.divider = config.divider === "YES" ? true : false;
10
+ wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
11
+ if(config.defaultStyle){
12
+ wrapper.config.defaultStyle = config.defaultStyle ==="YES" ? true : false;
13
+ }
14
+ if (config.style) {
15
+ wrapper.config.style = JSON.parse(config.style)
16
+ }
17
+ if (config.layout) {
18
+ wrapper.config.layout = createLayoutFormat(config.layout)
19
+ }
20
+ return wrapper;
16
21
  }
@@ -1,5 +1,6 @@
1
1
 
2
2
  import _ from "lodash";
3
+ import emptyBox from "./emptyBox";
3
4
  const EmptyBox = {
4
5
  type: "Control",
5
6
  scope: `#/properties/empty`,
@@ -19,7 +20,7 @@ const EmptyBox = {
19
20
  },
20
21
  },
21
22
  };
22
- const cardLayout = {
23
+ const cardLayout = {
23
24
  type: "Control",
24
25
  scope: "#/properties/cardLayout",
25
26
  layout: 11.5,
@@ -42,7 +43,7 @@ const cardLayout = {
42
43
  },
43
44
  main: {
44
45
  label: "Screen Size",
45
-
46
+
46
47
  },
47
48
  },
48
49
  },
@@ -62,11 +63,11 @@ const cardLayout = {
62
63
  },
63
64
  main: {
64
65
  label: "Value",
65
- type:"number",
66
+ type: "number",
66
67
  // freeSolo:true,
67
- helperText:'Number should be in range of 0 to 12',
68
- errorMessage:"Number Can't be greater than 12 and can't be less than 0.",
69
-
68
+ helperText: 'Number should be in range of 0 to 12',
69
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0.",
70
+
70
71
  },
71
72
  },
72
73
  },
@@ -151,7 +152,7 @@ const getInputField = (scope: String, label: String) => {
151
152
  };
152
153
  };
153
154
 
154
- const getRadioInputField = (scope: String, label: String, options: string[]) => {
155
+ export const getRadioInputField = (scope: String, label: String, options: string[]) => {
155
156
  return {
156
157
  type: "Control",
157
158
  scope: `#/properties/${scope}`,
@@ -235,6 +236,23 @@ const GraphSection = {
235
236
  export const buildPropertiesSection = function (type: String) {
236
237
  let uiSchema = _.cloneDeep(GraphSection);
237
238
  switch (type) {
239
+
240
+ case "TreeMap":
241
+ uiSchema.elements = [
242
+ getSelectField("orientation", "orientation", []),
243
+ getInputField("linkType", "linkType"),
244
+ getInputField("graphHeight", "Graph Height"),
245
+ getInputField("graphWidth", "Graph Width"),
246
+ getInputField("graphZoomHeight", "Zoom Height"),
247
+ ]
248
+ case "InputSlider":
249
+ uiSchema.elements = [
250
+ getInputField("max", "Max Limit"),
251
+ getInputField("step", "Step"),
252
+ getInputField("min", "Min Limit"),
253
+ getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
254
+ ]
255
+ break;
238
256
  case "DataGrid":
239
257
  uiSchema.elements = [
240
258
  getRadioInputField("divider", "Use Header divider", ["YES", "NO"]),
@@ -353,16 +371,24 @@ export const buildPropertiesSection = function (type: String) {
353
371
  getInputField("leftLabel", "Left Label"),
354
372
  getInputField("bottomLabel", "Bottom Label"),
355
373
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
374
+ getInputField("yAxisValue", "Y-AxisValue"),
375
+ getInputField("xAxisValue", "X-AxisValue"),
356
376
  getArrayControl("legendLabels", "label"),
357
377
  getArrayControl("pieArcColors", "color"),
358
378
  ];
359
379
  break;
360
380
  case "WrapperSection":
361
- uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), EmptyBox]
381
+ uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]),
382
+ getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
383
+ , getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
384
+ getInputField("rowSpacing", "Row Spacing"),
385
+ ]
362
386
  break;
363
387
 
364
388
  case "TabSection":
365
389
  uiSchema.elements = [
390
+ getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
391
+ getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
366
392
  getArrayControl("sectionLabels", "label"),
367
393
  ]
368
394
  break;
@@ -48,7 +48,7 @@ export default {
48
48
  scope: "#/properties/programType",
49
49
  config: {
50
50
  main: {
51
- url: "$",
51
+ url: "https://www.svgrepo.com/show/500606/loading.svg",
52
52
  },
53
53
  style: {
54
54
  color: "#f5effc",
@@ -54,6 +54,25 @@ export const CoreSection = {
54
54
  },
55
55
  },
56
56
  },
57
+ {
58
+ type: "Control",
59
+ scope: "#/properties/columnFormat",
60
+ options: {
61
+ widget: "SelectInputField",
62
+ },
63
+ config: {
64
+ layout: {
65
+ xs: 12,
66
+ sm: 12,
67
+ md: 6,
68
+ lg: 6,
69
+ },
70
+ main: {
71
+ label: "Column Format",
72
+
73
+ },
74
+ },
75
+ },
57
76
  {
58
77
  type: "Control",
59
78
  scope: "#/properties/proc",
@@ -18,3 +18,23 @@ export default {
18
18
  },
19
19
  },
20
20
  };
21
+ export const DateTime = {
22
+ type: "Control",
23
+ scope: "#/properties/date",
24
+ options: {
25
+ widget: "DateTimeInputField",
26
+ },
27
+
28
+ config: {
29
+ layout: {
30
+ xs: 11,
31
+ sm: 11,
32
+ md: 5.5,
33
+ lg: 5.5,
34
+ },
35
+ main: {
36
+ label: "DateTime",
37
+ type: "date",
38
+ },
39
+ },
40
+ };
@@ -117,7 +117,7 @@ export const EventSection = {
117
117
  icon: "RejectIcon",
118
118
  color: "error",
119
119
  tooltipMessage: "Reject This Record",
120
- onClick: "deletePopUpEvent",
120
+ onClick: "deleteEvent",
121
121
  },
122
122
  },
123
123
  },
@@ -88,7 +88,6 @@ export const PieGraph = {
88
88
  type: "PieGraph",
89
89
  bottomLabel: "Name of Employe",
90
90
  leftLabel: "Value",
91
- // tooltipDataKey: ["HDFC", "SBI", "Kotak","Sbi"],
92
91
  axisLeft: true,
93
92
  axisBottom: true,
94
93
  legendAvailable: true,
@@ -134,7 +133,7 @@ export const LineGraph = {
134
133
  leftLabel: "Incentive",
135
134
  gridHidden: true,
136
135
  numHidden: false,
137
- tooltipDataKey: ["MAMA New Project", "Second", "Third"],
136
+ tooltipDataKey: ["First", "Second", "Third"],
138
137
  axisLeft: true,
139
138
  axisBottom: true,
140
139
  hideLeftAxisLine: false,
@@ -7,6 +7,7 @@ export default {
7
7
  elements:[],
8
8
  config: {
9
9
  main: {
10
+ onMount:"onMount",
10
11
  columns: {
11
12
  },
12
13
  },
@@ -7,6 +7,7 @@ export default {
7
7
  elements:[],
8
8
  config: {
9
9
  main: {
10
+ onMount:"onMount",
10
11
  //@ts-ignore
11
12
  allRowData:[],
12
13
  downloadAllData:false,
@@ -110,16 +110,14 @@ export const TableSection = {
110
110
  main: {
111
111
  icon: "RejectIcon",
112
112
  color: "error",
113
- onClick: "deletePopUpComponent",
113
+ onClick: "deleteComponents",
114
114
  tooltipMessage: "Reject This Record",
115
115
  },
116
116
  },
117
117
  },
118
118
  }
119
119
  ]
120
- }
121
- ]
122
- }
120
+ }]}
123
121
  ]}
124
122
 
125
123
  export const TableSectionSchema = {
@@ -2,7 +2,7 @@ export default {
2
2
  type: "WrapperLayout",
3
3
  config: {
4
4
  main: {
5
- label: "Default Label",
5
+ rowSpacing: 3,
6
6
  divider: true,
7
7
  },
8
8
  defaultStyle: true,
@@ -4,7 +4,7 @@ export const ComponentSchema: any = {
4
4
  type: {
5
5
  // type: "string",
6
6
  oneOf: [
7
- { title: "AadharcardText", const: "AadharcardText"},
7
+ { title: "AadharcardText", const: "AadharcardText" },
8
8
  { title: "Array", const: "Array" },
9
9
  { title: "Button", const: "Button" },
10
10
  { title: "Card", const: "card" },
@@ -12,10 +12,12 @@ export const ComponentSchema: any = {
12
12
  { title: "Container", const: "WrapperSection" },
13
13
  { title: "DataGrid", const: "DataGrid" },
14
14
  { title: "Date", const: "Date" },
15
+ { title: "DateTime", const: "DateTime" },
15
16
  { title: "Download File", const: "DownloadFile" },
16
17
  { title: "Empty Box", const: "EmptyBox" },
17
18
  { title: "File", const: "FileInput" },
18
19
  { title: "Graph", const: "Graph" },
20
+ { title: "Input Slider", const: "InputSlider" },
19
21
  { title: "Label", const: "Box" },
20
22
  { title: "LeaderBoard", const: "LeaderBoard" },
21
23
  { title: "MultipleSelect", const: "MultipleSelect" },
@@ -36,13 +38,26 @@ export const ComponentSchema: any = {
36
38
  { title: "Text", const: "Text" },
37
39
  { title: "Text Area", const: "TextArea" },
38
40
  { title: "Timer", const: "Timer" },
39
- { title: "Upload File", const: "UploadFile" },]
41
+ { title: "Upload File", const: "UploadFile" },
42
+ { title: "Timer", const: "Timer" },
43
+ { title: "Upload File", const: "UploadFile" },
44
+ { title: "TreeMap", const: "TreeMap" },
45
+ { title: "ColumnGroup", const: "ColumnGroup" },
46
+ ]
40
47
  },
41
- orientation:{
48
+ columnFormat: {
42
49
  oneOf: [
43
- { title: "Horizontal", const: "horizontal" },
44
- { title: "Vertical", const: "vertical" },
45
- ]},
50
+ { title: "Date Column", const: "date" },
51
+ { title: "DateTime Column", const: "dateTime" },
52
+ { title: "Amount Column", const: "amount" },
53
+ ]
54
+ },
55
+ orientation: {
56
+ oneOf: [
57
+ { title: "Horizontal", const: "horizontal" },
58
+ { title: "Vertical", const: "vertical" },
59
+ ]
60
+ },
46
61
  method: {
47
62
  type: "string",
48
63
  oneOf: [
@@ -68,7 +83,7 @@ export const ComponentSchema: any = {
68
83
  },
69
84
  value: {
70
85
  // type: "string",
71
-
86
+
72
87
  },
73
88
  },
74
89
  },
@@ -89,7 +104,7 @@ export const ComponentSchema: any = {
89
104
  },
90
105
  value: {
91
106
  // type: "string",
92
-
107
+
93
108
  },
94
109
  },
95
110
  },
@@ -171,8 +186,8 @@ export const ComponentSchema: any = {
171
186
  keyName: {
172
187
  type: "string",
173
188
  },
174
- value:{
175
- type:"string"
189
+ value: {
190
+ type: "string"
176
191
  }
177
192
  },
178
193
  },
@@ -262,9 +277,9 @@ export const ComponentSchema: any = {
262
277
  { title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
263
278
  ]
264
279
  },
265
- iconName:{
266
- type:"string",
267
- oneOf:[
280
+ iconName: {
281
+ type: "string",
282
+ oneOf: [
268
283
  { title: "Search Icon", const: "SearchIcon" },
269
284
  { title: "Edit Icon", const: "EditIcon" },
270
285
  { title: "Add Icon", const: "AddIcon" },
@@ -284,8 +299,8 @@ export const ComponentSchema: any = {
284
299
  { title: "Exception Icon", const: "ExceptionIcon" },
285
300
  ]
286
301
  },
287
- color:{
288
- type:"string",
302
+ color: {
303
+ type: "string",
289
304
  oneOf: [
290
305
  { title: "Primary", const: "primary" },
291
306
  { title: "Secondary", const: "secondary" },
@@ -299,6 +314,6 @@ export const ComponentSchema: any = {
299
314
  },
300
315
  label: { type: 'string' }
301
316
  },
302
-
303
- required: [ "name", ]
317
+
318
+ required: ["name",]
304
319
  };