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.
- package/dist/impaktapps-ui-builder.es.js +2002 -897
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +15 -15
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildAreaGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildCamera.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildImage.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +2 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +4 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +173 -171
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +18 -50
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +50 -4
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.d.ts +22 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.d.ts +13 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +15 -66
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
- package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +5 -2
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +8 -4
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +66 -0
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +23 -9
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +35 -13
- package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +7 -0
- package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -28
- package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
- package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +35 -0
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +9 -3
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.ts +15 -0
- package/src/impaktapps-ui-builder/builder/build/buildImage.ts +38 -0
- package/src/impaktapps-ui-builder/builder/build/buildLabel.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +9 -3
- package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +6 -3
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
- package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +10 -2
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +9 -3
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +5 -0
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +21 -11
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +144 -124
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +7 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +4 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +315 -21
- package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -169
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +74 -19
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +30 -54
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +37 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.ts +11 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +34 -60
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +219 -75
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +61 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +94 -106
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -3
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +31 -55
- package/src/impaktapps-ui-builder/builder/services/component.ts +174 -86
- package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -15
- package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
- package/src/impaktapps-ui-builder/lib/index.ts +10 -9
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +42 -22
- package/src/impaktapps-ui-builder/runtime/services/events.ts +9 -11
- 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 "
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
431
|
-
getInputField("
|
|
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
|
-
|
|
435
|
-
|
|
436
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
514
|
-
|
|
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
|
+
};
|