impaktapps-ui-builder 0.0.596 → 0.0.751
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 +2208 -1683
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +14 -14
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildCard.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildTable.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +23 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +170 -82
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +55 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +52 -23
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +10 -301
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +6 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +50 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/{lazyLoadingTable.d.ts → thoughtOfTheDay.d.ts} +6 -4
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +1 -14
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +3 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +3 -0
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +8 -2
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +5 -0
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +5 -0
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +4 -4
- package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -1
- package/package.json +5 -1
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +11 -7
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +21 -13
- package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +18 -13
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -2
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +7 -16
- package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +4 -10
- package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +19 -4
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +23 -29
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +22 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +27 -12
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +10 -10
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +111 -56
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +188 -90
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +11 -11
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +44 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +13 -29
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +10 -367
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +45 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +14 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +2 -16
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +3 -3
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +37 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +283 -182
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +4 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +344 -130
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +194 -80
- package/src/impaktapps-ui-builder/builder/services/component.ts +105 -26
- package/src/impaktapps-ui-builder/builder/services/event.ts +50 -9
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +32 -14
- package/src/impaktapps-ui-builder/builder/services/utils.ts +13 -13
- package/src/impaktapps-ui-builder/lib/index.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +26 -23
- package/src/impaktapps-ui-builder/runtime/services/service.ts +61 -62
- package/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.ts +0 -15
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
|
|
2
2
|
import _ from "lodash";
|
|
3
|
-
import emptyBox from "./emptyBox";
|
|
4
3
|
import { buildLabel } from "../buildLabel";
|
|
5
4
|
import Box from "./box";
|
|
6
|
-
|
|
7
|
-
// type: "Control",
|
|
8
|
-
// scope: `#/properties/empty`,
|
|
5
|
+
const emptyBox = (scope:string,layout?: any) => {
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
if(layout !== undefined){
|
|
8
|
+
return {
|
|
9
|
+
type: "Control",
|
|
10
|
+
scope: `#/properties/${scope}`,
|
|
11
|
+
options: {
|
|
12
|
+
widget: "EmptyBox",
|
|
13
|
+
},
|
|
14
|
+
config: {
|
|
15
|
+
//[{},{},{}]
|
|
16
|
+
layout: layout,
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
type: "Control",
|
|
22
|
+
scope: "#/properties/empty",
|
|
16
23
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
24
|
+
options: {
|
|
25
|
+
widget: "EmptyBox",
|
|
26
|
+
},
|
|
27
|
+
config: {
|
|
28
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
29
|
+
},
|
|
30
|
+
}
|
|
31
|
+
}
|
|
20
32
|
const cardLayout = {
|
|
21
33
|
type: "Control",
|
|
22
34
|
scope: "#/properties/cardLayout",
|
|
@@ -32,7 +44,7 @@ const cardLayout = {
|
|
|
32
44
|
widget: "SelectInputField",
|
|
33
45
|
},
|
|
34
46
|
config: {
|
|
35
|
-
layout: { xs:
|
|
47
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
36
48
|
main: {
|
|
37
49
|
label: "Screen Size",
|
|
38
50
|
|
|
@@ -47,7 +59,7 @@ const cardLayout = {
|
|
|
47
59
|
widget: "InputField",
|
|
48
60
|
},
|
|
49
61
|
config: {
|
|
50
|
-
layout: { xs:
|
|
62
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
51
63
|
main: {
|
|
52
64
|
label: "Value",
|
|
53
65
|
type: "number",
|
|
@@ -58,7 +70,7 @@ const cardLayout = {
|
|
|
58
70
|
},
|
|
59
71
|
},
|
|
60
72
|
},
|
|
61
|
-
emptyBox
|
|
73
|
+
emptyBox("cardEmpty")
|
|
62
74
|
],
|
|
63
75
|
},
|
|
64
76
|
},
|
|
@@ -81,14 +93,14 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
|
|
|
81
93
|
widget: "InputField",
|
|
82
94
|
},
|
|
83
95
|
config: {
|
|
84
|
-
layout: { xs:
|
|
96
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
85
97
|
main: {
|
|
86
98
|
label: childLabel || "Labels for Tab",
|
|
87
99
|
},
|
|
88
100
|
},
|
|
89
101
|
},
|
|
90
|
-
emptyBox,
|
|
91
|
-
emptyBox
|
|
102
|
+
emptyBox("ArrayControlEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
103
|
+
emptyBox("ArrayControlEmpty2", {xs: 0, sm: 0, md: 4, lg: 4 })
|
|
92
104
|
],
|
|
93
105
|
},
|
|
94
106
|
},
|
|
@@ -103,13 +115,13 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
103
115
|
widget: "InputField",
|
|
104
116
|
},
|
|
105
117
|
config: {
|
|
106
|
-
layout: { xs:
|
|
118
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
107
119
|
main: {
|
|
108
120
|
label: "Size",
|
|
109
121
|
},
|
|
110
122
|
},
|
|
111
123
|
};
|
|
112
|
-
sizeHolder.options.detail.elements[2] = emptyBox
|
|
124
|
+
sizeHolder.options.detail.elements[2] = emptyBox("sizeHolderempty")
|
|
113
125
|
const getInputField = (scope: String, label: String) => {
|
|
114
126
|
return {
|
|
115
127
|
type: "Control",
|
|
@@ -119,7 +131,7 @@ const getInputField = (scope: String, label: String) => {
|
|
|
119
131
|
widget: "InputField",
|
|
120
132
|
},
|
|
121
133
|
config: {
|
|
122
|
-
layout: { xs:
|
|
134
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
123
135
|
main: {
|
|
124
136
|
label: label,
|
|
125
137
|
},
|
|
@@ -136,7 +148,7 @@ export const getRadioInputField = (scope: String, label: String, options: string
|
|
|
136
148
|
widget: "RadioInputField",
|
|
137
149
|
},
|
|
138
150
|
config: {
|
|
139
|
-
layout: { xs:
|
|
151
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
140
152
|
main: {
|
|
141
153
|
label: label,
|
|
142
154
|
|
|
@@ -156,9 +168,11 @@ export const buildWrapper = (label: string, elements: any[]) => {
|
|
|
156
168
|
wrapperStyle: {
|
|
157
169
|
marginTop: '-6px',
|
|
158
170
|
marginBottom: '-8px',
|
|
171
|
+
marginLeft: "-34px",
|
|
172
|
+
width: "108%"
|
|
159
173
|
},
|
|
160
174
|
componentsBoxStyle: {
|
|
161
|
-
marginLeft: "
|
|
175
|
+
marginLeft: "12px",
|
|
162
176
|
},
|
|
163
177
|
defaultStyle: true
|
|
164
178
|
},
|
|
@@ -192,7 +206,8 @@ export const getTextArea = (scope: string, heading: string, hideButton: boolean,
|
|
|
192
206
|
main: {
|
|
193
207
|
heading: heading,
|
|
194
208
|
minRows: 8,
|
|
195
|
-
hideButton: hideButton
|
|
209
|
+
hideButton: hideButton,
|
|
210
|
+
enableCodeEditor: true
|
|
196
211
|
},
|
|
197
212
|
},
|
|
198
213
|
}
|
|
@@ -206,7 +221,7 @@ export const getSelectField = (scope: string, label: string, options: { label: s
|
|
|
206
221
|
widget: "SelectInputField",
|
|
207
222
|
},
|
|
208
223
|
config: {
|
|
209
|
-
layout: { xs:
|
|
224
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
210
225
|
main: {
|
|
211
226
|
label: label,
|
|
212
227
|
type: "text",
|
|
@@ -215,10 +230,28 @@ export const getSelectField = (scope: string, label: string, options: { label: s
|
|
|
215
230
|
},
|
|
216
231
|
}
|
|
217
232
|
}
|
|
233
|
+
export const getMultiSelectField = (scope: string, label: string) => {
|
|
234
|
+
return {
|
|
235
|
+
type: "Control",
|
|
236
|
+
scope: `#/properties/${scope}`,
|
|
237
|
+
|
|
238
|
+
options: {
|
|
239
|
+
widget: "MultipleSelect",
|
|
240
|
+
},
|
|
241
|
+
config: {
|
|
242
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
243
|
+
main: {
|
|
244
|
+
multiple: true,
|
|
245
|
+
label: label,
|
|
246
|
+
options: [],
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
}
|
|
250
|
+
}
|
|
218
251
|
|
|
219
252
|
|
|
220
253
|
const GraphSection = {
|
|
221
|
-
type: "
|
|
254
|
+
type: "WrapperLayout",
|
|
222
255
|
elements: [],
|
|
223
256
|
};
|
|
224
257
|
|
|
@@ -233,7 +266,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
233
266
|
getInputField("graphHeight", "Graph Height"),
|
|
234
267
|
getInputField("graphWidth", "Graph Width"),
|
|
235
268
|
getInputField("graphZoomHeight", "Zoom Height"),
|
|
236
|
-
emptyBox
|
|
269
|
+
emptyBox("TreeEmpty", {xs: 6, sm: 6, md: 4, lg: 4})
|
|
237
270
|
]
|
|
238
271
|
break;
|
|
239
272
|
case "InputSlider":
|
|
@@ -241,8 +274,9 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
241
274
|
getInputField("max", "Max Limit"),
|
|
242
275
|
getInputField("step", "Step"),
|
|
243
276
|
getInputField("min", "Min Limit"),
|
|
277
|
+
emptyBox("InputSliderEmpty1", {xs: 6, sm: 0, md: 0, lg: 0}),
|
|
244
278
|
getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
|
|
245
|
-
emptyBox,
|
|
279
|
+
emptyBox("InputSliderEmpty2", {xs: 0, sm: 0, md: 8, lg: 8})
|
|
246
280
|
]
|
|
247
281
|
break;
|
|
248
282
|
case "DataGrid":
|
|
@@ -251,8 +285,8 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
251
285
|
getInputField("elevation", "Card Elevation"),
|
|
252
286
|
getInputField("height", "Grid height"),
|
|
253
287
|
getInputField("justifyContent", "justifyContent"),
|
|
254
|
-
emptyBox,
|
|
255
|
-
emptyBox,
|
|
288
|
+
emptyBox("DataGridEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
289
|
+
emptyBox("DataGridEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
256
290
|
cardLayout,
|
|
257
291
|
]
|
|
258
292
|
break;
|
|
@@ -266,7 +300,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
266
300
|
{ label: "Horizontal", value: "horizontal" },
|
|
267
301
|
{ label: "Vertical", value: "vertical" },
|
|
268
302
|
]),
|
|
269
|
-
emptyBox,
|
|
303
|
+
emptyBox("Stepper", {xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
270
304
|
|
|
271
305
|
getArrayControl("sectionLabels", "label")
|
|
272
306
|
|
|
@@ -277,20 +311,23 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
277
311
|
getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
|
|
278
312
|
getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
|
|
279
313
|
getInputField("maxWidth", "Max. Width"),
|
|
314
|
+
emptyBox("PopUpEmpty", {xs: 6, sm: 6, md: 0, lg: 0 })
|
|
280
315
|
]
|
|
281
316
|
break;
|
|
282
317
|
case "Text":
|
|
283
318
|
uiSchema.elements = [
|
|
284
319
|
getInputField("placeholder", "Placeholder"),
|
|
285
|
-
emptyBox,
|
|
286
|
-
emptyBox,
|
|
320
|
+
emptyBox("TextEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
321
|
+
emptyBox("TextEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
287
322
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
288
323
|
]
|
|
289
324
|
break;
|
|
290
325
|
case "TextArea":
|
|
291
326
|
uiSchema.elements = [
|
|
292
327
|
getInputField("placeholder", "Placeholder"),
|
|
293
|
-
|
|
328
|
+
getRadioInputField("enableCodeEditor", "Enable Code Editor",["YES", "NO"]),
|
|
329
|
+
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
330
|
+
]
|
|
294
331
|
break;
|
|
295
332
|
|
|
296
333
|
case "SpeedoMeter":
|
|
@@ -300,25 +337,24 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
300
337
|
getInputField("heading", "Container Heading"),
|
|
301
338
|
getInputField("speedoCaption", "Speedometer Caption"),
|
|
302
339
|
getInputField("width", "Speedometer Width"),
|
|
303
|
-
emptyBox
|
|
340
|
+
emptyBox("SpeedoMeterEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 })
|
|
304
341
|
]
|
|
305
342
|
break;
|
|
306
343
|
case "RankCard":
|
|
307
344
|
uiSchema.elements = [
|
|
308
345
|
getInputField("rank", "Rank"),
|
|
309
|
-
getInputField("
|
|
310
|
-
|
|
311
|
-
getInputField("description", "Card Description"),
|
|
312
|
-
emptyBox, emptyBox];
|
|
346
|
+
getInputField("height", "Height"),
|
|
347
|
+
emptyBox("RankCardEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 })];
|
|
313
348
|
break;
|
|
314
349
|
case "LeaderBoard":
|
|
315
350
|
uiSchema.elements = [
|
|
316
|
-
getInputField("valueLabel", "Value Label"),
|
|
317
351
|
getInputField("firstImage", "First Image url"),
|
|
318
352
|
getInputField("secondImage", "Second Image url"),
|
|
319
353
|
getInputField("thirdImage", "Third Image url"),
|
|
320
|
-
|
|
321
|
-
|
|
354
|
+
getInputField("nameKey", "Key for Name"),
|
|
355
|
+
getInputField("imageKey", "Key for Image"),
|
|
356
|
+
getInputField("scoreKey", "Key for comparing parameter"),
|
|
357
|
+
emptyBox("LeaderBoardEmpty1", {xs: 6, sm: 6, md: 0, lg: 0 }),
|
|
322
358
|
];
|
|
323
359
|
break;
|
|
324
360
|
case "CardSlider":
|
|
@@ -332,15 +368,16 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
332
368
|
getInputField("bottomLabel_1", "First BottomLabel"),
|
|
333
369
|
getInputField("bottomLabel_2", "Second BottomLabel"),
|
|
334
370
|
getInputField("bottomLabel_3", "Third BottomLabel"),
|
|
335
|
-
emptyBox, emptyBox
|
|
371
|
+
emptyBox("ProgressBarCardEmpty1"), emptyBox("ProgressBarCardEmpty2")
|
|
336
372
|
];
|
|
337
373
|
break;
|
|
338
374
|
case "card":
|
|
339
375
|
uiSchema.elements = [
|
|
340
376
|
getInputField("url", "Image Url"),
|
|
341
377
|
getInputField("label", "Label"),
|
|
378
|
+
getInputField("titleIcon", "Unicode of Icon for title"),
|
|
342
379
|
getInputField("description", "Description"),
|
|
343
|
-
emptyBox
|
|
380
|
+
emptyBox("cardEmpty", {xs: 0, sm: 0, md: 8, lg: 8 })
|
|
344
381
|
];
|
|
345
382
|
break;
|
|
346
383
|
case "Button":
|
|
@@ -353,7 +390,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
353
390
|
{ label: "Apply Default Style", value: "true" },
|
|
354
391
|
{ label: "No Style", value: "false" },
|
|
355
392
|
]),
|
|
356
|
-
emptyBox
|
|
393
|
+
emptyBox("ButtonEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 })
|
|
357
394
|
];
|
|
358
395
|
break;
|
|
359
396
|
case "Graph":
|
|
@@ -366,13 +403,17 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
366
403
|
{ label: "Line Graph", value: "LineGraph" },
|
|
367
404
|
{ label: "Pie Graph", value: "PieGraph" },
|
|
368
405
|
{ label: "Horizontal Bar Graph", value: "HorizontalBarGraph" },
|
|
406
|
+
{ label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" }
|
|
369
407
|
]),
|
|
370
408
|
getInputField("leftLabel", "Left Label"),
|
|
371
409
|
getInputField("bottomLabel", "Bottom Label"),
|
|
410
|
+
emptyBox("GraphEmpty1", {xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
372
411
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
373
412
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
374
413
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
375
|
-
|
|
414
|
+
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
415
|
+
getInputField("leftMargin", "Left Margin"),
|
|
416
|
+
emptyBox("GraphEmpty1", {xs: 6, sm: 0, md: 8, lg: 8 }),
|
|
376
417
|
getArrayControl("legendLabels", "label"),
|
|
377
418
|
getArrayControl("pieArcColors", "color"),
|
|
378
419
|
];
|
|
@@ -382,7 +423,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
382
423
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
|
|
383
424
|
, getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
384
425
|
getInputField("rowSpacing", "Row Spacing"),
|
|
385
|
-
emptyBox, emptyBox
|
|
426
|
+
emptyBox("WrapperSectionEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }), emptyBox("WrapperSectionEmpty2")
|
|
386
427
|
]
|
|
387
428
|
break;
|
|
388
429
|
|
|
@@ -390,30 +431,39 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
390
431
|
uiSchema.elements = [
|
|
391
432
|
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
|
|
392
433
|
getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
|
|
393
|
-
emptyBox,
|
|
434
|
+
emptyBox("TabEmpty"),
|
|
394
435
|
getArrayControl("sectionLabels", "label"),
|
|
395
436
|
]
|
|
396
437
|
break;
|
|
397
438
|
case "Table":
|
|
398
|
-
case "LazyLoadingTable":
|
|
399
439
|
uiSchema.elements = [
|
|
400
440
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
401
441
|
getRadioInputField("SelectionAvailable", "Row Selection", ["YES", "NO"]),
|
|
402
442
|
getRadioInputField("ColumnResizingAvailable", "ColumnResizing ", ["YES", "NO"]),
|
|
403
443
|
getRadioInputField("DragAvailable", "Row Dragging", ["YES", "NO"]),
|
|
404
444
|
getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
|
|
405
|
-
|
|
445
|
+
getRadioInputField("disableGlobalSearch", "Disable Global Search", ["YES", "NO"]),
|
|
446
|
+
getRadioInputField("disableColumnFilter", "Disable Column Filter", ["YES", "NO"]),
|
|
447
|
+
getRadioInputField("disableSorting", "Disable Sorting", ["YES", "NO"]),
|
|
448
|
+
|
|
449
|
+
getRadioInputField("disableEditColumn", "Disable Edit Column", ["YES", "NO"]),
|
|
450
|
+
getRadioInputField("disableFullScreenToggle", "Disable Full Screen", ["YES", "NO"]),
|
|
451
|
+
getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
|
|
452
|
+
getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
|
|
453
|
+
getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
|
|
454
|
+
getInputField("selectKey", "Selection Key"),
|
|
455
|
+
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
406
456
|
buildWrapper("Tree Table Properties", [
|
|
407
457
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
408
458
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
409
459
|
// getRadioInputField("enableExpandAll", "Use All Row Expanding", ["YES", "NO"]),
|
|
410
460
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
411
461
|
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
412
|
-
emptyBox, emptyBox
|
|
462
|
+
emptyBox("LazyLoadingTableEmpty2"), emptyBox("LazyLoadingTableEmpty3")
|
|
413
463
|
]),
|
|
414
464
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
415
465
|
sizeHolder,
|
|
416
|
-
|
|
466
|
+
getArrayControl("enableColumnFilter", "keyName", "Component Name"),
|
|
417
467
|
]
|
|
418
468
|
break;
|
|
419
469
|
case "Radio":
|
|
@@ -425,14 +475,19 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
425
475
|
uiSchema.elements = [
|
|
426
476
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
427
477
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
428
|
-
emptyBox
|
|
478
|
+
emptyBox("SelectEmpty")
|
|
429
479
|
]
|
|
430
480
|
break;
|
|
431
481
|
case "MultipleSelect":
|
|
432
482
|
uiSchema.elements = [
|
|
433
483
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
434
|
-
emptyBox,
|
|
435
|
-
emptyBox
|
|
484
|
+
emptyBox("MultipleSelectEmpty1", {xs: 0, sm: 6, md: 4, lg: 4 }),
|
|
485
|
+
emptyBox("MultipleSelectEmpty2")
|
|
486
|
+
]
|
|
487
|
+
break;
|
|
488
|
+
case "Thought":
|
|
489
|
+
uiSchema.elements = [
|
|
490
|
+
getTextArea("thought", "Today's thought", false),
|
|
436
491
|
]
|
|
437
492
|
break;
|
|
438
493
|
}
|