impaktapps-ui-builder 1.0.174 → 1.0.180

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 (64) hide show
  1. package/dist/impaktapps-ui-builder.es.js +746 -80
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +11 -11
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildAreaGraph.d.ts +2 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +1 -0
  14. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +50 -4
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
  17. package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +1 -1
  21. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
  22. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +2 -0
  23. package/package.json +1 -1
  24. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +66 -0
  25. package/src/impaktapps-ui-builder/builder/build/buildArray.ts +10 -6
  26. package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +1 -1
  27. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +19 -7
  28. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +26 -22
  29. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -49
  30. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  31. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +3 -3
  32. package/src/impaktapps-ui-builder/builder/build/buildImage.ts +6 -3
  33. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +3 -3
  34. package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
  35. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +3 -0
  36. package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
  37. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  38. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -3
  39. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
  40. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  41. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +3 -0
  42. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +3 -3
  43. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  44. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +2 -0
  45. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +0 -3
  46. package/src/impaktapps-ui-builder/builder/build/buildText.ts +3 -0
  47. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +33 -0
  48. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +7 -3
  49. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +2 -1
  50. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +172 -16
  51. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  52. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
  53. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +37 -4
  54. package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
  55. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
  56. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  57. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
  58. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +5 -6
  59. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
  60. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +80 -1
  61. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -0
  62. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -3
  63. package/src/impaktapps-ui-builder/builder/services/component.ts +143 -108
  64. package/src/impaktapps-ui-builder/runtime/services/service.ts +26 -4
@@ -127,6 +127,62 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
127
127
  ],
128
128
  }
129
129
  };
130
+ const getArrayControlMultiField = (parentScope: string, firstFieldScope: string, secondFieldScope: string, firstFieldLabel?: string, secondFieldLabel?: string, arrayLabel?: string) => {
131
+ return {
132
+ type: "Control",
133
+ scope: `#/properties/${parentScope}`,
134
+ options: {
135
+ widget: "Array"
136
+ },
137
+ config: {
138
+ layout: 12,
139
+ main: {
140
+ label: arrayLabel,
141
+ },
142
+ style: {
143
+ marginLeft: "-24px",
144
+ marginBottom: "24px !important",
145
+ labelStyle: {
146
+ marginLeft: "24px",
147
+ },
148
+ detailsStyle: {
149
+ marginLeft: "24px",
150
+ }
151
+ }
152
+ },
153
+ elements: [
154
+ {
155
+ type: "Control",
156
+ scope: `#/properties/${firstFieldScope}`,
157
+
158
+ options: {
159
+ widget: "InputField",
160
+ },
161
+ config: {
162
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
163
+ main: {
164
+ label: firstFieldLabel || "Labels for Tab",
165
+ },
166
+ },
167
+ },
168
+ {
169
+ type: "Control",
170
+ scope: `#/properties/${secondFieldScope}`,
171
+
172
+ options: {
173
+ widget: "InputField",
174
+ },
175
+ config: {
176
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
177
+ main: {
178
+ label: secondFieldLabel || "Labels for Tab",
179
+ },
180
+ },
181
+ },
182
+ emptyBox("ArrayControlEmpty2", { xs: 6, sm: 6, md: 4, lg: 4 }),
183
+ ],
184
+ }
185
+ };
130
186
  const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
131
187
  sizeHolder.elements[1] = {
132
188
  type: "Control",
@@ -261,6 +317,15 @@ const BaseSection = {
261
317
  export const buildPropertiesSection = function (type: String) {
262
318
  let uiSchema = _.cloneDeep(BaseSection);
263
319
  switch (type) {
320
+ case "OTP_Input":
321
+ uiSchema.elements = [
322
+ getInputField("seperator", "Seperator"),
323
+ getInputField("length", "OTP Length"),
324
+ getRadioInputField("masking", "OTP Masking", ["YES", "NO"]),
325
+ emptyBox("empty1", { xs: 12, sm: 6, md: 4, lg: 3 }),
326
+
327
+ ]
328
+ break;
264
329
  case "Array":
265
330
  uiSchema.elements = [
266
331
  getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
@@ -268,6 +333,10 @@ export const buildPropertiesSection = function (type: String) {
268
333
  getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
269
334
  getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
270
335
  getInputField("childElementLabel", "Child Element Label"),
336
+ getInputField("showKeyAsLabel", "ShowKey As Label"),
337
+ getInputField("rowSpacing", "Row Spacing"),
338
+ getInputField("columnSpacing", "Column Spacing"),
339
+ getInputField("spacing", "Spacing"),
271
340
  emptyBox("empty1", { xs: 12, sm: 6, md: 4, lg: 3 }),
272
341
 
273
342
  ]
@@ -327,6 +396,34 @@ export const buildPropertiesSection = function (type: String) {
327
396
  emptyBox("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
328
397
  ]
329
398
  break;
399
+
400
+ case "PopOver":
401
+ uiSchema.elements = [
402
+ getSelectField("positionVertical", "Attach To (Vertical)", [
403
+ { label: "Top", value: "top" },
404
+ { label: "Center", value: "center" },
405
+ { label: "Bottom", value: "bottom" }
406
+ ]),
407
+ getSelectField("positionHorizontal", "Attach To (Horizontal)", [
408
+ { label: "Left", value: "left" },
409
+ { label: "Center", value: "center" },
410
+ { label: "Right", value: "right" }
411
+ ]),
412
+ getSelectField("contentVertical", "Popover Start (Vertical)", [
413
+ { label: "Top", value: "top" },
414
+ { label: "Center", value: "center" },
415
+ { label: "Bottom", value: "bottom" }
416
+ ]),
417
+ getSelectField("contentHorizontal", "Popover Start (Horizontal)", [
418
+ { label: "Left", value: "left" },
419
+ { label: "Center", value: "center" },
420
+ { label: "Right", value: "right" }
421
+ ]),
422
+ getInputField("width", "Width"),
423
+ getInputField("gap", "Gap"),
424
+ emptyBox("PopUpEmpty", { xs: 6, sm: 0, md: 8, lg: 6 })
425
+ ]
426
+ break;
330
427
  case "Text":
331
428
  uiSchema.elements = [
332
429
  getInputField("placeholder", "Placeholder"),
@@ -343,7 +440,8 @@ export const buildPropertiesSection = function (type: String) {
343
440
  { label: "Right", value: "right" },
344
441
  { label: "Bottom", value: "bottom" }
345
442
  ]),
346
- emptyBox("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
443
+ getSelectField("iconName", "Start Icon", []),
444
+ emptyBox("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
347
445
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
348
446
  getInputField("keyName", "Event Key Name"),
349
447
  ]
@@ -411,6 +509,20 @@ export const buildPropertiesSection = function (type: String) {
411
509
  emptyBox("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
412
510
  ];
413
511
  break;
512
+ case "MetricCard":
513
+ uiSchema.elements = [
514
+ getInputField("url", "Image Url"),
515
+ getInputField("label", "Label"),
516
+ getInputField("cardValue", "Value"),
517
+ getInputField("description", "Description"),
518
+ getSelectField("growthRate", "Growth Rate", [
519
+ { label: "Positive", value: "positive" },
520
+ { label: "Negative", value: "negative" }
521
+ ]),
522
+ getInputField("color", "Card Color"),
523
+ emptyBox("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
524
+ ];
525
+ break;
414
526
  case "Button":
415
527
  uiSchema.elements = [
416
528
  getSelectField("buttonType", "Button Type", []),
@@ -424,6 +536,14 @@ export const buildPropertiesSection = function (type: String) {
424
536
  emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
425
537
  ];
426
538
  break;
539
+ case "ButtonGroup":
540
+ uiSchema.elements = [
541
+ getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
542
+ getInputField("size", "Size"),
543
+ getSelectField("color", "Color", []),
544
+ emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
545
+ ];
546
+ break;
427
547
  case "Box":
428
548
  uiSchema.elements = [
429
549
  getSelectField("iconName", "Icon Name", []),
@@ -434,36 +554,56 @@ export const buildPropertiesSection = function (type: String) {
434
554
  uiSchema.elements = [
435
555
  getInputField("height", "Height"),
436
556
  getInputField("heading", "Heading"),
557
+ getInputField("subHeader", "Sub Header"),
437
558
  getSelectField("graphType", "Graph Type", [
438
559
  { label: "Bar Graph", value: "BarGraph" },
439
560
  { label: "Stack Bar Graph", value: "StackBarGraph" },
440
561
  { label: "Line Graph", value: "LineGraph" },
441
562
  { label: "Pie Graph", value: "PieGraph" },
442
563
  { label: "Horizontal Bar Graph", value: "HorizontalBarGraph" },
443
- { label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" }
564
+ { label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" },
565
+ { label: "Area Graph", value: "AreaGraph" },
566
+ { label: "StackBar And Line Graph", value: "StackBarLineGraph" }
444
567
  ]),
445
568
  getInputField("leftLabel", "Left Label"),
569
+ getInputField("rightLabel", "Right Label"),
446
570
  getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
447
571
  getInputField("bottomLabel", "Bottom Label"),
448
572
  emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
449
573
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
450
574
  getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
451
- getInputField("yAxisValue", "Y-AxisValue"),
452
- getInputField("xAxisValue", "X-AxisValue"),
575
+ getInputField("yAxisValue", "Y-Axis Key"),
576
+ getInputField("xAxisValue", "X-Axis Key"),
577
+ getSelectField("xAxisType", "X-AxisType", [
578
+ { label: "Date", value: "date" },
579
+ { label: "String", value: "string" },
580
+ { label: "number", value: "number" }
581
+ ]),
453
582
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
454
583
  getInputField("leftMargin", "Left Margin"),
455
- emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
456
- getArrayControl("legendLabels", "label"),
457
- getArrayControl("pieArcColors", "color"),
584
+ getInputField("yAxisTickCount", "Y Axis TickCount"),
585
+ getInputField("xAxisTickCount", "X Axis TickCount"),
586
+ getSelectField("xAxisFormatType", "X Axis Format Type", [
587
+ { label: "Date and Month", value: "Date and Month" },
588
+ { label: "Month and Year", value: "Month and Year" }
589
+ ]),
590
+ getInputField("growthRateKey", "Growth Rate Key"),
591
+ getInputField("tooltipUnit", "Tooltip Unit"),
592
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
593
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors"),
458
594
  ];
459
595
  break;
460
596
  case "WrapperSection":
461
597
  uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]),
462
598
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
463
599
  , getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
464
- getInputField("rowSpacing", "Row Spacing"),
600
+
465
601
  getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
466
- emptyBox("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }), emptyBox("WrapperSectionEmpty2")
602
+ getInputField("rowSpacing", "Row Spacing"),
603
+ getInputField("columnSpacing", "Column Spacing"),
604
+ getInputField("spacing", "Spacing"),
605
+ getInputField("iconUrl", "Icon Url"),
606
+ emptyBox("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }), emptyBox("WrapperSectionEmpty2")
467
607
  ]
468
608
  break;
469
609
 
@@ -472,7 +612,7 @@ export const buildPropertiesSection = function (type: String) {
472
612
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
473
613
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
474
614
  emptyBox("TabEmpty"),
475
- getArrayControl("sectionLabels", "label"),
615
+ getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
476
616
  ]
477
617
  break;
478
618
  case "Table":
@@ -511,7 +651,6 @@ export const buildPropertiesSection = function (type: String) {
511
651
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
512
652
  // getRadioInputField("enableExpandAll", "Use All Row Expanding", ["YES", "NO"]),
513
653
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
514
- getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
515
654
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
516
655
  getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
517
656
  ]),
@@ -570,6 +709,12 @@ export const buildPropertiesSection = function (type: String) {
570
709
  ])
571
710
  ]
572
711
  break;
712
+ case "PdfViewer":
713
+ uiSchema.elements = [
714
+ getInputField("scale", "Zoom"),
715
+ emptyBox("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
716
+ ]
717
+ break;
573
718
  case "Date":
574
719
  uiSchema.elements = [
575
720
  getSelectField("variant", "Variant", [
@@ -584,7 +729,7 @@ export const buildPropertiesSection = function (type: String) {
584
729
  { label: "Right", value: "right" },
585
730
  { label: "Bottom", value: "bottom" }
586
731
  ]),
587
- emptyBox("DateEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
732
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
588
733
  ]
589
734
  break;
590
735
  case "DateTime":
@@ -601,7 +746,7 @@ export const buildPropertiesSection = function (type: String) {
601
746
  { label: "Right", value: "right" },
602
747
  { label: "Bottom", value: "bottom" }
603
748
  ]),
604
- emptyBox("DateTimeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
749
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
605
750
  ]
606
751
  break;
607
752
  case "Thought":
@@ -613,6 +758,13 @@ export const buildPropertiesSection = function (type: String) {
613
758
  uiSchema.elements = [
614
759
  getInputField("imageUrl", "Image URL"),
615
760
  getInputField("height", "Image Height"),
761
+ getInputField("toolTip", "Tooltip"),
762
+ getSelectField("toolTipPosition", "Tooltip Position", [
763
+ { label: "Top", value: "top" },
764
+ { label: "Left", value: "left" },
765
+ { label: "Right", value: "right" },
766
+ { label: "Bottom", value: "bottom" }
767
+ ]),
616
768
  emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
617
769
  ]
618
770
  break;
@@ -630,16 +782,20 @@ export const buildPropertiesSection = function (type: String) {
630
782
  { label: "Right", value: "right" },
631
783
  { label: "Bottom", value: "bottom" }
632
784
  ]),
633
- emptyBox("FileInputEmpty", { xs: 6, sm: 6, md: 4, lg: 3 })
785
+ getInputField("chooseButtonLabel", "ChooseButton Label"),
786
+ getInputField("noFileAvailableMessage", "No Found Message"),
787
+ getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
788
+ getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
789
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
634
790
  ]
635
791
  break;
636
792
  case "Camera":
637
793
  uiSchema.elements = [
638
794
  getSelectField("iconName", "Icon Name", []),
639
- getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
795
+ getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
640
796
  getSelectField("color", "Color", []),
641
797
  getInputField("tooltipMessage", "Tooltip Message"),
642
- getSelectField("variant", "Variant",[]),
798
+ getSelectField("variant", "Variant", []),
643
799
  emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
644
800
  ];
645
801
  }
@@ -0,0 +1,17 @@
1
+ export default {
2
+ type: "Control",
3
+ scope: "#/properties/buttonGroup",
4
+ options: {
5
+ widget: "ButtonGroup",
6
+ },
7
+ config: {
8
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
9
+ main: {
10
+ variant: "contained",
11
+ styleDefault:false,
12
+ size: "small",
13
+ },
14
+ style: {
15
+ },
16
+ },
17
+ };
@@ -173,7 +173,6 @@ export const CoreSection = {
173
173
  layout: { xs: 6, sm: 6, md: 4, lg: 4 },
174
174
  main: {
175
175
  label: "Screen Size",
176
-
177
176
  },
178
177
  },
179
178
  },
@@ -11,7 +11,7 @@ export const BarGraph = {
11
11
  type: "BarGraph",
12
12
  legendLabels: null
13
13
  },
14
- style: { containerStyle: {},labelStyle:{margin:{}} ,barStyle:{} }
14
+ style: { containerStyle: {},labelStyle:{margin:{}}}
15
15
  },
16
16
  };
17
17
 
@@ -27,7 +27,7 @@ export const PieGraph = {
27
27
  type: "PieGraph",
28
28
  legendLabels: null
29
29
  },
30
- style:{ containerStyle: {},labelStyle:{margin:{}} ,pieStyle:{} }
30
+ style:{ containerStyle: {},labelStyle:{margin:{}}}
31
31
  },
32
32
  };
33
33
  export const LineGraph = {
@@ -42,7 +42,7 @@ export const LineGraph = {
42
42
  type: "LineGraph",
43
43
  legendLabels: null
44
44
  },
45
- style: { containerStyle: {},labelStyle:{margin:{}} ,lineStyle:{} },
45
+ style: { containerStyle: {},labelStyle:{margin:{}}},
46
46
  },
47
47
  };
48
48
 
@@ -58,6 +58,39 @@ export const HorizontalBarGraph = {
58
58
  type: "HorizontalBarGraph",
59
59
  legendLabels: null
60
60
  },
61
- style:{ containerStyle: {},labelStyle:{margin:{}} ,barStyle:{} }
61
+ style:{ containerStyle: {},labelStyle:{margin:{}} }
62
62
  },
63
63
  };
64
+
65
+ export const AreaBarGraph = {
66
+ type: "Control",
67
+ scope: "#/properties/graph",
68
+ options: {
69
+ widget: "Graph",
70
+ },
71
+ config: {
72
+ layout: {xs :12,sm:12,md:12,lg:12},
73
+ main: {
74
+ type: "AreaGraph",
75
+ legendLabels: null
76
+ },
77
+ style:{ containerStyle: {},labelStyle:{margin:{}} }
78
+ },
79
+ };
80
+
81
+ export const StackBarLineG = {
82
+ type: "Control",
83
+ scope: "#/properties/graph",
84
+ options: {
85
+ widget: "Graph",
86
+ },
87
+ config: {
88
+ layout: {xs :12,sm:12,md:12,lg:12},
89
+ main: {
90
+ type: "StackBarLineGraph",
91
+ legendLabels: null
92
+ },
93
+ style:{ containerStyle: {},labelStyle:{margin:{}} }
94
+ },
95
+ };
96
+
@@ -0,0 +1,13 @@
1
+ export default {
2
+ type: "Control",
3
+ scope: "#/properties/metricpath",
4
+
5
+ options: {
6
+ widget: "MetricCard",
7
+ },
8
+ config: {
9
+ layout: { xs: 12, sm: 12, md: 3, lg: 3 },
10
+ main: {
11
+ },
12
+ },
13
+ };
@@ -14,5 +14,7 @@ export default {
14
14
  variant: "outlined",
15
15
  options: [],
16
16
  },
17
+ style: {
18
+ }
17
19
  },
18
20
  };
@@ -0,0 +1,18 @@
1
+ export default {
2
+ type: "Control",
3
+ scope: "#/properties/pdfviewer",
4
+ options: {
5
+ widget: "PdfViewer",
6
+ },
7
+ config: {
8
+ layout: {
9
+ xs: 12,
10
+ sm: 12,
11
+ md: 12,
12
+ lg: 12,
13
+ },
14
+ main: {
15
+ title: "PDF"
16
+ },
17
+ },
18
+ }
@@ -12,5 +12,7 @@ export default {
12
12
  type: "text",
13
13
  freeSole:false
14
14
  },
15
+ style: {
16
+ },
15
17
  },
16
18
  };
@@ -1,10 +1,10 @@
1
- export const TableSection = (theme) => {
1
+ export const TableSection = (theme,scopeName="elements") => {
2
2
  const uiSchema = {
3
3
  type: "HorizontalLayout",
4
4
  elements: [
5
5
  {
6
6
  type: "Control",
7
- scope: "#/properties/elements",
7
+ scope: `#/properties/${scopeName}`,
8
8
  options: {
9
9
  widget: "Table",
10
10
  },
@@ -15,8 +15,7 @@ export const TableSection = (theme) => {
15
15
  {
16
16
  widget: {
17
17
  type: "Control",
18
- scope: "#/properties/New_Record",
19
-
18
+ scope: `#/properties/${scopeName}_New_Record`,
20
19
  options: {
21
20
  widget: "IconButton",
22
21
  },
@@ -43,7 +42,7 @@ export const TableSection = (theme) => {
43
42
  {
44
43
  widget: {
45
44
  type: "Control",
46
- scope: "#/properties/Paste_Component",
45
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
47
46
  options: {
48
47
  widget: "IconButton",
49
48
  },
@@ -109,7 +108,7 @@ export const TableSection = (theme) => {
109
108
  },
110
109
  {
111
110
  type: "Control",
112
- scope: "#/properties/Copy_Component",
111
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
113
112
  options: {
114
113
  widget: "Button",
115
114
  },
@@ -3,9 +3,11 @@ export default {
3
3
  config: {
4
4
  layout: 12,
5
5
  main: {
6
- rowSpacing: 3,
7
6
  divider: true,
8
7
  label: "Default Label",
8
+ rowSpacing: 2,
9
+ columnSpacing:2,
10
+ spacing:2,
9
11
  },
10
12
  defaultStyle: true,
11
13
  },