impaktapps-ui-builder 1.0.621 → 1.0.622

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 +2002 -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 +21 -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 +7 -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 +315 -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 +174 -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,74 @@ 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
+ emptyBox("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }), emptyBox("WrapperSectionEmpty2")
445
622
  ]
446
623
  break;
447
624
 
@@ -450,7 +627,7 @@ export const buildPropertiesSection = function (type: String) {
450
627
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
451
628
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
452
629
  emptyBox("TabEmpty"),
453
- getArrayControl("sectionLabels", "label"),
630
+ getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
454
631
  ]
455
632
  break;
456
633
  case "Table":
@@ -469,16 +646,28 @@ export const buildPropertiesSection = function (type: String) {
469
646
  getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
470
647
  getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
471
648
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
472
- getInputField("selectKey", "Selection Key"),
649
+ getInputField("selectKey", "Selection Key"),//defaultColumnSize
473
650
  getMultiSelectField("filteringOptions", "Filtering Options"),
651
+ getSelectField("maxPageSize", "Max Page Size", [
652
+ { label: "10", value: 10 },
653
+ { label: "20", value: 20 },
654
+ { label: "30", value: 30 },
655
+ { label: "50", value: 50 },
656
+ { label: "100", value: 100 },
657
+ { label: "500", value: 500 }
658
+ ]),
659
+ getSelectField("initialDensity", "Initial Toggle Density", [
660
+ { label: "Compact", value: "compact" },
661
+ { label: "Comfortable", value: "comfortable" },
662
+ { label: "Spacious", value: "spacious" }
663
+ ]),
474
664
  buildWrapper("Tree Table Properties", [
475
665
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
476
666
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
477
667
  // getRadioInputField("enableExpandAll", "Use All Row Expanding", ["YES", "NO"]),
478
668
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
479
- getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
480
669
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
481
- emptyBox("LazyLoadingTableEmpty2"), emptyBox("LazyLoadingTableEmpty3")
670
+ getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
482
671
  ]),
483
672
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
484
673
  sizeHolder,
@@ -487,6 +676,15 @@ export const buildPropertiesSection = function (type: String) {
487
676
  break;
488
677
  case "Radio":
489
678
  uiSchema.elements = [
679
+ getInputField("errorMessage", "Error Message"),
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 }),
490
688
  getArrayControl("sectionLabels", "label", "Options Of Radio"),
491
689
  ]
492
690
  break;
@@ -499,7 +697,14 @@ export const buildPropertiesSection = function (type: String) {
499
697
  { label: "Filled", value: "filled" },
500
698
  { label: "Standard", value: "standard" },
501
699
  ]),
502
- 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 })
503
708
  ]
504
709
  break;
505
710
  case "MultipleSelect":
@@ -510,8 +715,53 @@ export const buildPropertiesSection = function (type: String) {
510
715
  { label: "Filled", value: "filled" },
511
716
  { label: "Standard", value: "standard" },
512
717
  ]),
513
- emptyBox("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
514
- 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 })
731
+ ]
732
+ break;
733
+ case "Date":
734
+ uiSchema.elements = [
735
+ getSelectField("variant", "Variant", [
736
+ { label: "Outlined", value: "outlined" },
737
+ { label: "Filled", value: "filled" },
738
+ { label: "Standard", value: "standard" },
739
+ ]),
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 }),
748
+ ]
749
+ break;
750
+ case "DateTime":
751
+ uiSchema.elements = [
752
+ getSelectField("variant", "Variant", [
753
+ { label: "Outlined", value: "outlined" },
754
+ { label: "Filled", value: "filled" },
755
+ { label: "Standard", value: "standard" },
756
+ ]),
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 }),
515
765
  ]
516
766
  break;
517
767
  case "Thought":
@@ -519,6 +769,50 @@ export const buildPropertiesSection = function (type: String) {
519
769
  getTextArea("thought", "Today's thought", false),
520
770
  ]
521
771
  break;
772
+ case "Image":
773
+ uiSchema.elements = [
774
+ getInputField("imageUrl", "Image URL"),
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
+ ]),
783
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
784
+ ]
785
+ break;
786
+ case "FileInput":
787
+ uiSchema.elements = [
788
+ getRadioInputField("variant", "Variant", ["Outlined", "Standard"]),
789
+ getRadioInputField("disableUpload", "Disable Upload", ["YES", "NO"]),
790
+ getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
791
+ getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
792
+ getInputField("description", "Enter description"),
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 }),
805
+ ]
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
+ ];
522
816
  }
523
817
  return uiSchema;
524
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
+ };