impaktapps-ui-builder 1.0.200 → 1.0.202

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 (86) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1125 -525
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +13 -13
  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/buildCamera.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.d.ts +1 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
  14. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +1 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
  17. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +173 -197
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +25 -5
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.d.ts +22 -0
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
  21. package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
  22. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  23. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
  24. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +1 -1
  25. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
  26. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
  27. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +3 -0
  28. package/package.json +1 -1
  29. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +22 -14
  30. package/src/impaktapps-ui-builder/builder/build/buildArray.ts +10 -6
  31. package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
  32. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
  33. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +19 -7
  34. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +32 -16
  35. package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +6 -0
  36. package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +4 -0
  37. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -43
  38. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  39. package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +35 -0
  40. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +3 -3
  41. package/src/impaktapps-ui-builder/builder/build/buildImage.ts +6 -3
  42. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +3 -3
  43. package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
  44. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +9 -0
  45. package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
  46. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  47. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -3
  48. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
  49. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  50. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
  51. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +6 -0
  52. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +9 -0
  53. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +3 -3
  54. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  55. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +2 -0
  56. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +4 -3
  57. package/src/impaktapps-ui-builder/builder/build/buildText.ts +9 -0
  58. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +41 -3
  59. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
  60. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +7 -2
  61. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +2 -1
  62. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +242 -25
  63. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  64. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -188
  65. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
  66. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +22 -6
  67. package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +13 -0
  68. package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
  69. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
  70. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  71. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
  72. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +5 -6
  73. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
  74. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +96 -2
  75. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -0
  76. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +3 -4
  77. package/src/impaktapps-ui-builder/builder/services/component.ts +150 -107
  78. package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
  79. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +4 -1
  80. package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
  81. package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +6 -7
  82. package/src/impaktapps-ui-builder/runtime/services/service.ts +34 -5
  83. package/dist/src/impaktapps-ui-builder/builder/build/buildDataCard.d.ts +0 -1
  84. package/dist/src/impaktapps-ui-builder/builder/build/uischema/dataCard.d.ts +0 -320
  85. package/src/impaktapps-ui-builder/builder/build/buildDataCard.tsx +0 -44
  86. package/src/impaktapps-ui-builder/builder/build/uischema/dataCard.ts +0 -207
@@ -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"),
@@ -336,7 +433,15 @@ export const buildPropertiesSection = function (type: String) {
336
433
  { label: "Filled", value: "filled" },
337
434
  { label: "Standard", value: "standard" },
338
435
  ]),
339
- emptyBox("TextEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 }),
436
+ getInputField("toolTip", "Tooltip"),
437
+ getSelectField("toolTipPosition", "Tooltip Position", [
438
+ { label: "Top", value: "top" },
439
+ { label: "Left", value: "left" },
440
+ { label: "Right", value: "right" },
441
+ { label: "Bottom", value: "bottom" }
442
+ ]),
443
+ getSelectField("iconName", "Start Icon", []),
444
+ emptyBox("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
340
445
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
341
446
  getInputField("keyName", "Event Key Name"),
342
447
  ]
@@ -389,7 +494,10 @@ export const buildPropertiesSection = function (type: String) {
389
494
  getInputField("bottomLabel_1", "First BottomLabel"),
390
495
  getInputField("bottomLabel_2", "Second BottomLabel"),
391
496
  getInputField("bottomLabel_3", "Third BottomLabel"),
392
- emptyBox("ProgressBarCardEmpty1"), emptyBox("ProgressBarCardEmpty2")
497
+ getInputField("size", "Size"),
498
+ getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
499
+
500
+ getArrayControl("pieArcColors", "color", "Color"),
393
501
  ];
394
502
  break;
395
503
  case "card":
@@ -401,15 +509,33 @@ export const buildPropertiesSection = function (type: String) {
401
509
  emptyBox("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
402
510
  ];
403
511
  break;
404
- case "DataCard":
512
+ case "HierarchyChart":
513
+ uiSchema.elements = [
514
+ getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
515
+ getSelectField("linkType", "Link Type", [
516
+ { label: "Step", value: "step" },
517
+ { label: "Diagonal", value: "diagonal" },
518
+ { label: "Line", value: "line" },
519
+ ]),
520
+ getInputField("nodeWidth", "Node Width"),
521
+ getInputField("nodeHeight", "Node Height"),
522
+ getInputField("chartHeight", "Chart Height"),
523
+ getInputField("stepPercent", "Link Bend Position"),
524
+ emptyBox("HierarchyChart", { xs: 0, sm: 0, md: 4, lg: 6 }),
525
+ ];
526
+ break;
527
+ case "MetricCard":
405
528
  uiSchema.elements = [
406
529
  getInputField("url", "Image Url"),
407
530
  getInputField("label", "Label"),
531
+ getInputField("cardValue", "Value"),
408
532
  getInputField("description", "Description"),
409
- getInputField("value", "value"),
410
- getInputField("trendIconUrl", "Trend Icon Url"),
411
-
412
- emptyBox("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
533
+ getSelectField("growthRate", "Growth Rate", [
534
+ { label: "Positive", value: "positive" },
535
+ { label: "Negative", value: "negative" }
536
+ ]),
537
+ getInputField("color", "Card Color"),
538
+ emptyBox("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
413
539
  ];
414
540
  break;
415
541
  case "Button":
@@ -425,6 +551,14 @@ export const buildPropertiesSection = function (type: String) {
425
551
  emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
426
552
  ];
427
553
  break;
554
+ case "ButtonGroup":
555
+ uiSchema.elements = [
556
+ getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
557
+ getInputField("size", "Size"),
558
+ getSelectField("color", "Color", []),
559
+ emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
560
+ ];
561
+ break;
428
562
  case "Box":
429
563
  uiSchema.elements = [
430
564
  getSelectField("iconName", "Icon Name", []),
@@ -443,30 +577,48 @@ export const buildPropertiesSection = function (type: String) {
443
577
  { label: "Pie Graph", value: "PieGraph" },
444
578
  { label: "Horizontal Bar Graph", value: "HorizontalBarGraph" },
445
579
  { label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" },
446
- { label: "Area Graph", value: "AreaGraph" }
580
+ { label: "Area Graph", value: "AreaGraph" },
581
+ { label: "StackBar And Line Graph", value: "StackBarLineGraph" }
447
582
  ]),
448
583
  getInputField("leftLabel", "Left Label"),
584
+ getInputField("rightLabel", "Right Label"),
449
585
  getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
450
586
  getInputField("bottomLabel", "Bottom Label"),
451
587
  emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
452
588
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
453
589
  getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
454
- getInputField("yAxisValue", "Y-AxisValue"),
455
- getInputField("xAxisValue", "X-AxisValue"),
590
+ getInputField("yAxisValue", "Y-Axis Key"),
591
+ getInputField("xAxisValue", "X-Axis Key"),
592
+ getSelectField("xAxisType", "X-AxisType", [
593
+ { label: "Date", value: "date" },
594
+ { label: "String", value: "string" },
595
+ { label: "number", value: "number" }
596
+ ]),
456
597
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
457
598
  getInputField("leftMargin", "Left Margin"),
458
- emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
459
- getArrayControl("legendLabels", "label"),
460
- getArrayControl("pieArcColors", "color"),
461
- getRadioInputField("xAxisFormatType", "X Axis Format Type", ["Date and Month", "Month and Year"]),
599
+ getInputField("yAxisTickCount", "Y Axis TickCount"),
600
+ getInputField("xAxisTickCount", "X Axis TickCount"),
601
+ getSelectField("xAxisFormatType", "X Axis Format Type", [
602
+ { label: "Date and Month", value: "Date and Month" },
603
+ { label: "Month and Year", value: "Month and Year" }
604
+ ]),
605
+ getInputField("growthRateKey", "Growth Rate Key"),
606
+ getInputField("tooltipUnit", "Tooltip Unit"),
607
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
608
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors"),
462
609
  ];
463
610
  break;
464
611
  case "WrapperSection":
465
612
  uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]),
466
613
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
467
614
  , getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
615
+
616
+ getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
468
617
  getInputField("rowSpacing", "Row Spacing"),
469
- emptyBox("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }), emptyBox("WrapperSectionEmpty2")
618
+ getInputField("columnSpacing", "Column Spacing"),
619
+ getInputField("spacing", "Spacing"),
620
+ getInputField("iconUrl", "Icon Url"),
621
+ emptyBox("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }), emptyBox("WrapperSectionEmpty2")
470
622
  ]
471
623
  break;
472
624
 
@@ -475,7 +627,7 @@ export const buildPropertiesSection = function (type: String) {
475
627
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
476
628
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
477
629
  emptyBox("TabEmpty"),
478
- getArrayControl("sectionLabels", "label"),
630
+ getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
479
631
  ]
480
632
  break;
481
633
  case "Table":
@@ -514,7 +666,6 @@ export const buildPropertiesSection = function (type: String) {
514
666
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
515
667
  // getRadioInputField("enableExpandAll", "Use All Row Expanding", ["YES", "NO"]),
516
668
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
517
- getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
518
669
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
519
670
  getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
520
671
  ]),
@@ -526,8 +677,15 @@ export const buildPropertiesSection = function (type: String) {
526
677
  case "Radio":
527
678
  uiSchema.elements = [
528
679
  getInputField("errorMessage", "Error Message"),
529
- emptyBox("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
530
- getArrayControl("sectionLabels", "label", "Options Of Radio")
680
+ getInputField("toolTip", "Tooltip"),
681
+ getSelectField("toolTipPosition", "Tooltip Position", [
682
+ { label: "Top", value: "top" },
683
+ { label: "Left", value: "left" },
684
+ { label: "Right", value: "right" },
685
+ { label: "Bottom", value: "bottom" }
686
+ ]),
687
+ emptyBox("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
688
+ getArrayControl("sectionLabels", "label", "Options Of Radio"),
531
689
  ]
532
690
  break;
533
691
  case "Select":
@@ -539,7 +697,14 @@ export const buildPropertiesSection = function (type: String) {
539
697
  { label: "Filled", value: "filled" },
540
698
  { label: "Standard", value: "standard" },
541
699
  ]),
542
- emptyBox("SelectEmpty")
700
+ getInputField("toolTip", "Tooltip"),
701
+ getSelectField("toolTipPosition", "Tooltip Position", [
702
+ { label: "Top", value: "top" },
703
+ { label: "Left", value: "left" },
704
+ { label: "Right", value: "right" },
705
+ { label: "Bottom", value: "bottom" }
706
+ ]),
707
+ emptyBox("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
543
708
  ]
544
709
  break;
545
710
  case "MultipleSelect":
@@ -550,8 +715,19 @@ export const buildPropertiesSection = function (type: String) {
550
715
  { label: "Filled", value: "filled" },
551
716
  { label: "Standard", value: "standard" },
552
717
  ]),
553
- emptyBox("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
554
- emptyBox("MultipleSelectEmpty2")
718
+ getInputField("toolTip", "Tooltip"),
719
+ getSelectField("toolTipPosition", "Tooltip Position", [
720
+ { label: "Top", value: "top" },
721
+ { label: "Left", value: "left" },
722
+ { label: "Right", value: "right" },
723
+ { label: "Bottom", value: "bottom" }
724
+ ])
725
+ ]
726
+ break;
727
+ case "PdfViewer":
728
+ uiSchema.elements = [
729
+ getInputField("scale", "Zoom"),
730
+ emptyBox("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
555
731
  ]
556
732
  break;
557
733
  case "Date":
@@ -561,7 +737,14 @@ export const buildPropertiesSection = function (type: String) {
561
737
  { label: "Filled", value: "filled" },
562
738
  { label: "Standard", value: "standard" },
563
739
  ]),
564
- emptyBox("DateEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 }),
740
+ getInputField("toolTip", "Tooltip"),
741
+ getSelectField("toolTipPosition", "Tooltip Position", [
742
+ { label: "Top", value: "top" },
743
+ { label: "Left", value: "left" },
744
+ { label: "Right", value: "right" },
745
+ { label: "Bottom", value: "bottom" }
746
+ ]),
747
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
565
748
  ]
566
749
  break;
567
750
  case "DateTime":
@@ -571,7 +754,14 @@ export const buildPropertiesSection = function (type: String) {
571
754
  { label: "Filled", value: "filled" },
572
755
  { label: "Standard", value: "standard" },
573
756
  ]),
574
- emptyBox("DateTimeEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 }),
757
+ getInputField("toolTip", "Tooltip"),
758
+ getSelectField("toolTipPosition", "Tooltip Position", [
759
+ { label: "Top", value: "top" },
760
+ { label: "Left", value: "left" },
761
+ { label: "Right", value: "right" },
762
+ { label: "Bottom", value: "bottom" }
763
+ ]),
764
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
575
765
  ]
576
766
  break;
577
767
  case "Thought":
@@ -583,6 +773,13 @@ export const buildPropertiesSection = function (type: String) {
583
773
  uiSchema.elements = [
584
774
  getInputField("imageUrl", "Image URL"),
585
775
  getInputField("height", "Image Height"),
776
+ getInputField("toolTip", "Tooltip"),
777
+ getSelectField("toolTipPosition", "Tooltip Position", [
778
+ { label: "Top", value: "top" },
779
+ { label: "Left", value: "left" },
780
+ { label: "Right", value: "right" },
781
+ { label: "Bottom", value: "bottom" }
782
+ ]),
586
783
  emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
587
784
  ]
588
785
  break;
@@ -593,9 +790,29 @@ export const buildPropertiesSection = function (type: String) {
593
790
  getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
594
791
  getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
595
792
  getInputField("description", "Enter description"),
596
- emptyBox("FileInputEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
793
+ getInputField("toolTip", "Tooltip"),
794
+ getSelectField("toolTipPosition", "Tooltip Position", [
795
+ { label: "Top", value: "top" },
796
+ { label: "Left", value: "left" },
797
+ { label: "Right", value: "right" },
798
+ { label: "Bottom", value: "bottom" }
799
+ ]),
800
+ getInputField("chooseButtonLabel", "ChooseButton Label"),
801
+ getInputField("noFileAvailableMessage", "No Found Message"),
802
+ getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
803
+ getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
804
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
597
805
  ]
598
806
  break;
807
+ case "Camera":
808
+ uiSchema.elements = [
809
+ getSelectField("iconName", "Icon Name", []),
810
+ getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
811
+ getSelectField("color", "Color", []),
812
+ getInputField("tooltipMessage", "Tooltip Message"),
813
+ getSelectField("variant", "Variant", []),
814
+ emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
815
+ ];
599
816
  }
600
817
  return uiSchema;
601
818
  };
@@ -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
+ };