impaktapps-ui-builder 1.0.621 → 1.0.622-copy.2

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 (100) hide show
  1. package/dist/impaktapps-ui-builder.es.js +2016 -897
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  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/buildHorizontalLayout.d.ts +1 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/buildImage.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
  14. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  17. package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +2 -1
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +4 -1
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +1 -1
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
  21. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +173 -171
  22. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +18 -50
  23. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +50 -4
  24. package/dist/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.d.ts +22 -0
  25. package/dist/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.d.ts +13 -0
  26. package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
  27. package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
  28. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  29. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
  30. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +15 -66
  31. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
  32. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
  33. package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -0
  34. package/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +5 -2
  35. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +8 -4
  36. package/package.json +1 -1
  37. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +66 -0
  38. package/src/impaktapps-ui-builder/builder/build/buildArray.ts +13 -0
  39. package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
  40. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
  41. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +23 -9
  42. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +35 -13
  43. package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +7 -0
  44. package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +4 -0
  45. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -28
  46. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  47. package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +35 -0
  48. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +9 -3
  49. package/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.ts +15 -0
  50. package/src/impaktapps-ui-builder/builder/build/buildImage.ts +38 -0
  51. package/src/impaktapps-ui-builder/builder/build/buildLabel.ts +3 -0
  52. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +3 -0
  53. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +9 -3
  54. package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
  55. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +9 -0
  56. package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
  57. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  58. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +6 -3
  59. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
  60. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  61. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
  62. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +10 -2
  63. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +9 -0
  64. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +9 -3
  65. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  66. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +5 -0
  67. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +27 -11
  68. package/src/impaktapps-ui-builder/builder/build/buildText.ts +9 -0
  69. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +144 -124
  70. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
  71. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +8 -2
  72. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +4 -1
  73. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +319 -21
  74. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  75. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -169
  76. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +74 -19
  77. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +30 -54
  78. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +1 -1
  79. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +37 -4
  80. package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +13 -0
  81. package/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.ts +11 -0
  82. package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
  83. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
  84. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  85. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
  86. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +34 -60
  87. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
  88. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +219 -75
  89. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +61 -1
  90. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +94 -106
  91. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -3
  92. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +31 -55
  93. package/src/impaktapps-ui-builder/builder/services/component.ts +177 -86
  94. package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
  95. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -15
  96. package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
  97. package/src/impaktapps-ui-builder/lib/index.ts +10 -9
  98. package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +42 -22
  99. package/src/impaktapps-ui-builder/runtime/services/events.ts +9 -11
  100. package/src/impaktapps-ui-builder/runtime/services/service.ts +118 -158
@@ -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",
@@ -209,7 +265,7 @@ export const getTextArea = (scope: string, heading: string, hideButton: boolean,
209
265
  },
210
266
  }
211
267
  }
212
- export const getSelectField = (scope: string, label: string, options: { label: string, value: string }[]) => {
268
+ export const getSelectField = (scope: string, label: string, options: { label: string, value: string | number }[]) => {
213
269
  return {
214
270
  type: "Control",
215
271
  scope: `#/properties/${scope}`,
@@ -261,12 +317,27 @@ const BaseSection = {
261
317
  export const buildPropertiesSection = function (type: String) {
262
318
  let uiSchema = _.cloneDeep(BaseSection);
263
319
  switch (type) {
264
- case "Array": // // allExpanded childElementLabel label
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;
329
+ case "Array":
265
330
  uiSchema.elements = [
266
331
  getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
332
+ getRadioInputField("disableAddButton", "Disable Add Button", ["YES", "NO"]),
333
+ getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
334
+ getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
267
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"),
268
340
  emptyBox("empty1", { xs: 12, sm: 6, md: 4, lg: 3 }),
269
- emptyBox("empty2", { xs: 0, sm: 0, md: 4, lg: 3 }),
270
341
 
271
342
  ]
272
343
  break;
@@ -325,7 +396,35 @@ export const buildPropertiesSection = function (type: String) {
325
396
  emptyBox("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
326
397
  ]
327
398
  break;
328
- case "Text":
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;
427
+ case "Text":
329
428
  uiSchema.elements = [
330
429
  getInputField("placeholder", "Placeholder"),
331
430
  getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
@@ -334,7 +433,15 @@ export const buildPropertiesSection = function (type: String) {
334
433
  { label: "Filled", value: "filled" },
335
434
  { label: "Standard", value: "standard" },
336
435
  ]),
337
- 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 }),
338
445
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
339
446
  getInputField("keyName", "Event Key Name"),
340
447
  ]
@@ -372,7 +479,8 @@ export const buildPropertiesSection = function (type: String) {
372
479
  getInputField("nameKey", "Key for Name"),
373
480
  getInputField("imageKey", "Key for Image"),
374
481
  getInputField("scoreKey", "Key for comparing parameter"),
375
- emptyBox("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 0 }),
482
+ getRadioInputField("isScoreAmount", "Is Score an Amount Type", ["YES", "No"]),
483
+ emptyBox("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 })
376
484
  ];
377
485
  break;
378
486
  case "CardSlider":
@@ -386,7 +494,10 @@ export const buildPropertiesSection = function (type: String) {
386
494
  getInputField("bottomLabel_1", "First BottomLabel"),
387
495
  getInputField("bottomLabel_2", "Second BottomLabel"),
388
496
  getInputField("bottomLabel_3", "Third BottomLabel"),
389
- emptyBox("ProgressBarCardEmpty1"), emptyBox("ProgressBarCardEmpty2")
497
+ getInputField("size", "Size"),
498
+ getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
499
+
500
+ getArrayControl("pieArcColors", "color", "Color"),
390
501
  ];
391
502
  break;
392
503
  case "card":
@@ -398,6 +509,35 @@ export const buildPropertiesSection = function (type: String) {
398
509
  emptyBox("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
399
510
  ];
400
511
  break;
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":
528
+ uiSchema.elements = [
529
+ getInputField("url", "Image Url"),
530
+ getInputField("label", "Label"),
531
+ getInputField("cardValue", "Value"),
532
+ getInputField("description", "Description"),
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 }),
539
+ ];
540
+ break;
401
541
  case "Button":
402
542
  uiSchema.elements = [
403
543
  getSelectField("buttonType", "Button Type", []),
@@ -411,37 +551,75 @@ export const buildPropertiesSection = function (type: String) {
411
551
  emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
412
552
  ];
413
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;
562
+ case "Box":
563
+ uiSchema.elements = [
564
+ getSelectField("iconName", "Icon Name", []),
565
+ emptyBox("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
566
+ ];
567
+ break;
414
568
  case "Graph":
415
569
  uiSchema.elements = [
416
570
  getInputField("height", "Height"),
417
571
  getInputField("heading", "Heading"),
572
+ getInputField("subHeader", "Sub Header"),
418
573
  getSelectField("graphType", "Graph Type", [
419
574
  { label: "Bar Graph", value: "BarGraph" },
420
575
  { label: "Stack Bar Graph", value: "StackBarGraph" },
421
576
  { label: "Line Graph", value: "LineGraph" },
422
577
  { label: "Pie Graph", value: "PieGraph" },
423
578
  { label: "Horizontal Bar Graph", value: "HorizontalBarGraph" },
424
- { label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" }
579
+ { label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" },
580
+ { label: "Area Graph", value: "AreaGraph" },
581
+ { label: "StackBar And Line Graph", value: "StackBarLineGraph" }
425
582
  ]),
426
583
  getInputField("leftLabel", "Left Label"),
584
+ getInputField("rightLabel", "Right Label"),
585
+ getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
427
586
  getInputField("bottomLabel", "Bottom Label"),
428
587
  emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
429
588
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
430
- getInputField("yAxisValue", "Y-AxisValue"),
431
- getInputField("xAxisValue", "X-AxisValue"),
589
+ getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
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
+ ]),
432
597
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
433
598
  getInputField("leftMargin", "Left Margin"),
434
- emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
435
- getArrayControl("legendLabels", "label"),
436
- getArrayControl("pieArcColors", "color"),
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"),
437
609
  ];
438
610
  break;
439
611
  case "WrapperSection":
440
612
  uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]),
441
613
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
442
614
  , getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
615
+
616
+ getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
443
617
  getInputField("rowSpacing", "Row Spacing"),
444
- 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
+ getInputField("wrapperId", "Wrapper Id"),
622
+ emptyBox("WrapperSectionEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 }), emptyBox("WrapperSectionEmpty2")
445
623
  ]
446
624
  break;
447
625
 
@@ -450,7 +628,7 @@ export const buildPropertiesSection = function (type: String) {
450
628
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
451
629
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
452
630
  emptyBox("TabEmpty"),
453
- getArrayControl("sectionLabels", "label"),
631
+ getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
454
632
  ]
455
633
  break;
456
634
  case "Table":
@@ -469,16 +647,31 @@ export const buildPropertiesSection = function (type: String) {
469
647
  getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
470
648
  getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
471
649
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
472
- getInputField("selectKey", "Selection Key"),
650
+ getInputField("selectKey", "Selection Key"),//defaultColumnSize
473
651
  getMultiSelectField("filteringOptions", "Filtering Options"),
652
+ getSelectField("maxPageSize", "Max Page Size", [
653
+ { label: "10", value: 10 },
654
+ { label: "20", value: 20 },
655
+ { label: "30", value: 30 },
656
+ { label: "50", value: 50 },
657
+ { label: "100", value: 100 },
658
+ { label: "500", value: 500 }
659
+ ]),
660
+ getSelectField("initialDensity", "Initial Toggle Density", [
661
+ { label: "Compact", value: "compact" },
662
+ { label: "Comfortable", value: "comfortable" },
663
+ { label: "Spacious", value: "spacious" }
664
+ ]),
665
+ getInputField("rowIdKey", "Row ID Key"),
666
+ getInputField("parentIdKey", "Parent ID Key"),
667
+ emptyBox("TreeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
474
668
  buildWrapper("Tree Table Properties", [
475
669
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
476
670
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
477
671
  // getRadioInputField("enableExpandAll", "Use All Row Expanding", ["YES", "NO"]),
478
672
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
479
- getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
480
673
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
481
- emptyBox("LazyLoadingTableEmpty2"), emptyBox("LazyLoadingTableEmpty3")
674
+ getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
482
675
  ]),
483
676
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
484
677
  sizeHolder,
@@ -487,6 +680,15 @@ export const buildPropertiesSection = function (type: String) {
487
680
  break;
488
681
  case "Radio":
489
682
  uiSchema.elements = [
683
+ getInputField("errorMessage", "Error Message"),
684
+ getInputField("toolTip", "Tooltip"),
685
+ getSelectField("toolTipPosition", "Tooltip Position", [
686
+ { label: "Top", value: "top" },
687
+ { label: "Left", value: "left" },
688
+ { label: "Right", value: "right" },
689
+ { label: "Bottom", value: "bottom" }
690
+ ]),
691
+ emptyBox("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
490
692
  getArrayControl("sectionLabels", "label", "Options Of Radio"),
491
693
  ]
492
694
  break;
@@ -499,7 +701,14 @@ export const buildPropertiesSection = function (type: String) {
499
701
  { label: "Filled", value: "filled" },
500
702
  { label: "Standard", value: "standard" },
501
703
  ]),
502
- emptyBox("SelectEmpty")
704
+ getInputField("toolTip", "Tooltip"),
705
+ getSelectField("toolTipPosition", "Tooltip Position", [
706
+ { label: "Top", value: "top" },
707
+ { label: "Left", value: "left" },
708
+ { label: "Right", value: "right" },
709
+ { label: "Bottom", value: "bottom" }
710
+ ]),
711
+ emptyBox("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
503
712
  ]
504
713
  break;
505
714
  case "MultipleSelect":
@@ -510,8 +719,53 @@ export const buildPropertiesSection = function (type: String) {
510
719
  { label: "Filled", value: "filled" },
511
720
  { label: "Standard", value: "standard" },
512
721
  ]),
513
- emptyBox("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
514
- emptyBox("MultipleSelectEmpty2")
722
+ getInputField("toolTip", "Tooltip"),
723
+ getSelectField("toolTipPosition", "Tooltip Position", [
724
+ { label: "Top", value: "top" },
725
+ { label: "Left", value: "left" },
726
+ { label: "Right", value: "right" },
727
+ { label: "Bottom", value: "bottom" }
728
+ ])
729
+ ]
730
+ break;
731
+ case "PdfViewer":
732
+ uiSchema.elements = [
733
+ getInputField("scale", "Zoom"),
734
+ emptyBox("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
735
+ ]
736
+ break;
737
+ case "Date":
738
+ uiSchema.elements = [
739
+ getSelectField("variant", "Variant", [
740
+ { label: "Outlined", value: "outlined" },
741
+ { label: "Filled", value: "filled" },
742
+ { label: "Standard", value: "standard" },
743
+ ]),
744
+ getInputField("toolTip", "Tooltip"),
745
+ getSelectField("toolTipPosition", "Tooltip Position", [
746
+ { label: "Top", value: "top" },
747
+ { label: "Left", value: "left" },
748
+ { label: "Right", value: "right" },
749
+ { label: "Bottom", value: "bottom" }
750
+ ]),
751
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
752
+ ]
753
+ break;
754
+ case "DateTime":
755
+ uiSchema.elements = [
756
+ getSelectField("variant", "Variant", [
757
+ { label: "Outlined", value: "outlined" },
758
+ { label: "Filled", value: "filled" },
759
+ { label: "Standard", value: "standard" },
760
+ ]),
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
+ ]),
768
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
515
769
  ]
516
770
  break;
517
771
  case "Thought":
@@ -519,6 +773,50 @@ export const buildPropertiesSection = function (type: String) {
519
773
  getTextArea("thought", "Today's thought", false),
520
774
  ]
521
775
  break;
776
+ case "Image":
777
+ uiSchema.elements = [
778
+ getInputField("imageUrl", "Image URL"),
779
+ getInputField("height", "Image Height"),
780
+ getInputField("toolTip", "Tooltip"),
781
+ getSelectField("toolTipPosition", "Tooltip Position", [
782
+ { label: "Top", value: "top" },
783
+ { label: "Left", value: "left" },
784
+ { label: "Right", value: "right" },
785
+ { label: "Bottom", value: "bottom" }
786
+ ]),
787
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
788
+ ]
789
+ break;
790
+ case "FileInput":
791
+ uiSchema.elements = [
792
+ getRadioInputField("variant", "Variant", ["Outlined", "Standard"]),
793
+ getRadioInputField("disableUpload", "Disable Upload", ["YES", "NO"]),
794
+ getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
795
+ getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
796
+ getInputField("description", "Enter description"),
797
+ getInputField("toolTip", "Tooltip"),
798
+ getSelectField("toolTipPosition", "Tooltip Position", [
799
+ { label: "Top", value: "top" },
800
+ { label: "Left", value: "left" },
801
+ { label: "Right", value: "right" },
802
+ { label: "Bottom", value: "bottom" }
803
+ ]),
804
+ getInputField("chooseButtonLabel", "ChooseButton Label"),
805
+ getInputField("noFileAvailableMessage", "No Found Message"),
806
+ getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
807
+ getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
808
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
809
+ ]
810
+ break;
811
+ case "Camera":
812
+ uiSchema.elements = [
813
+ getSelectField("iconName", "Icon Name", []),
814
+ getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
815
+ getSelectField("color", "Color", []),
816
+ getInputField("tooltipMessage", "Tooltip Message"),
817
+ getSelectField("variant", "Variant", []),
818
+ emptyBox("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
819
+ ];
522
820
  }
523
821
  return uiSchema;
524
822
  };
@@ -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
+ };