impaktapps-ui-builder 0.0.409 → 0.0.411
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 +467 -258
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +13 -13
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +4 -2
- package/dist/src/impaktapps-ui-builder/builder/build/buildTreeMap.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +2 -2
- package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +7 -5
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +7 -8
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +9 -6
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +0 -7
- package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +58 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +45 -49
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +16 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +20 -8
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +19 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +24 -18
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +19 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/component.ts +55 -53
- package/src/impaktapps-ui-builder/builder/services/event.ts +5 -2
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +5 -5
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +129 -90
- package/src/impaktapps-ui-builder/runtime/services/service.ts +73 -45
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const buildTreeMap: (config: any, componentScope: any) => any;
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
export declare const getRadioInputField: (scope: String, label: String, options: string[]) => {
|
|
2
|
+
type: string;
|
|
3
|
+
scope: string;
|
|
4
|
+
options: {
|
|
5
|
+
widget: string;
|
|
6
|
+
};
|
|
7
|
+
config: {
|
|
8
|
+
layout: {
|
|
9
|
+
xs: number;
|
|
10
|
+
sm: number;
|
|
11
|
+
md: number;
|
|
12
|
+
lg: number;
|
|
13
|
+
};
|
|
14
|
+
main: {
|
|
15
|
+
label: String;
|
|
16
|
+
options: string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
1
20
|
export declare const getTextArea: (scope: string, heading: string, hideButton: boolean, layout?: any) => {
|
|
2
21
|
type: string;
|
|
3
22
|
scope: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
interface funcParamsProps {
|
|
2
2
|
store: any;
|
|
3
3
|
dynamicData: any;
|
|
4
|
+
pageConfigProvider: any;
|
|
4
5
|
submitHandler: any;
|
|
5
6
|
service: any;
|
|
6
|
-
config?: any;
|
|
7
7
|
}
|
|
8
8
|
declare const _default: (funcParams: funcParamsProps) => {
|
|
9
9
|
setPage: () => Promise<void>;
|
|
10
|
-
getFormdata: () => any
|
|
10
|
+
getFormdata: () => Promise<any>;
|
|
11
11
|
getUiSchema: () => any;
|
|
12
12
|
getSchema: () => {
|
|
13
13
|
type: string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { handlersProps } from "./interface";
|
|
2
|
-
export declare const executeEvents: (params: handlersProps) =>
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
2
|
+
export declare const executeEvents: (params: handlersProps) => any;
|
|
3
|
+
export declare function getRefreshElements(eventConfig: any, eventGropus: any): string[];
|
|
4
|
+
export declare function executeRefreshHandler(params: handlersProps): Promise<any[][]>;
|
|
5
|
+
export declare function executeApiRequest(params: any): any;
|
|
6
|
+
export declare function shouldEventExecute(params: handlersProps): any;
|
|
7
|
+
export declare function buildApiPayload(compConfig: any, body: any, headers: any, store: any, dynamicData: any, userValue: any, service: any): {
|
|
5
8
|
body: any;
|
|
6
9
|
headers: any;
|
|
7
|
-
}
|
|
8
|
-
export declare function getRefreshElements(eventConfig: any, eventGropus: any): string[];
|
|
10
|
+
};
|
|
9
11
|
export declare function asyncOperation(): Promise<unknown>;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
export declare const extractEvents: (eventConfig: any) => any;
|
|
2
1
|
interface funcParamsProps {
|
|
3
2
|
store: any;
|
|
4
3
|
dynamicData: any;
|
|
5
|
-
config: any;
|
|
6
|
-
uiSchema: any;
|
|
7
|
-
schema: any;
|
|
8
4
|
service: any;
|
|
9
5
|
userValue: any;
|
|
6
|
+
pageDataProvider: any;
|
|
10
7
|
functionsProvider?: Record<string, any>;
|
|
11
8
|
}
|
|
9
|
+
export declare const extractEvents: (eventConfig: any) => any;
|
|
12
10
|
declare const _default: (funcParams: funcParamsProps) => {
|
|
13
11
|
setPage: () => Promise<void>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
onCellRenderer: (cellParams: any) => {};
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
onMount: () => void;
|
|
15
|
+
onFileDownload: () => void;
|
|
16
|
+
onFileUpload: () => void;
|
|
18
17
|
backHandler: () => void;
|
|
19
18
|
onPaginationChange: (paginationValues: any) => Promise<any>;
|
|
20
19
|
getSelectOptions: (param: any) => Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
export const buildBasicUiSchema = (config)=>{
|
|
2
|
-
return
|
|
1
|
+
export const buildBasicUiSchema = (config) => {
|
|
2
|
+
return {
|
|
3
3
|
"type": "HorizontalLayout",
|
|
4
|
-
pageName
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
pageName: config.name,
|
|
5
|
+
name: config.name,
|
|
6
|
+
accessorKey: config.name,
|
|
7
|
+
header: config.label || config.name,
|
|
8
|
+
"elements": []
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -3,13 +3,6 @@ import _ from "lodash";
|
|
|
3
3
|
export default (FormData: any) => {
|
|
4
4
|
const formData = _.cloneDeep(FormData)
|
|
5
5
|
let component: any = {};
|
|
6
|
-
// if (formData?.layout) {
|
|
7
|
-
// component.layout = createData(FormData?.layout, "layout");
|
|
8
|
-
// delete formData.layout
|
|
9
|
-
// }
|
|
10
|
-
// if(!formData.type ){
|
|
11
|
-
// component.type = "page";
|
|
12
|
-
// }
|
|
13
6
|
if (formData.pageName) {
|
|
14
7
|
delete formData.pageName
|
|
15
8
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { createLayoutFormat } from "./buildConfig";
|
|
2
|
+
import _ from "lodash";
|
|
3
|
+
|
|
4
|
+
const TreeMap = {
|
|
5
|
+
"type": "Control",
|
|
6
|
+
"scope": "#/properties/TreeMap2",
|
|
7
|
+
"config": {
|
|
8
|
+
"main": {
|
|
9
|
+
"layout": "cartsian",
|
|
10
|
+
orientation: "vertical",
|
|
11
|
+
header: "Territory Hierarchy",
|
|
12
|
+
"linkType": "step",
|
|
13
|
+
graphHeight: "500px",
|
|
14
|
+
},
|
|
15
|
+
"style": {
|
|
16
|
+
BoxStyle: {
|
|
17
|
+
borderRadius: "5px",
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"options": {
|
|
22
|
+
"widget": "TreeMap"
|
|
23
|
+
},
|
|
24
|
+
elements: [
|
|
25
|
+
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export const buildTreeMap = (config, componentScope) => {
|
|
31
|
+
const treMap: any = _.cloneDeep(TreeMap);
|
|
32
|
+
treMap.scope = componentScope;
|
|
33
|
+
if (config.label) {
|
|
34
|
+
treMap.config.main.header = config.label;
|
|
35
|
+
}
|
|
36
|
+
if (config.layout) {
|
|
37
|
+
treMap.config.layout = createLayoutFormat(config.layout);
|
|
38
|
+
}
|
|
39
|
+
if (config.orientation) {
|
|
40
|
+
treMap.config.main.orientation = config.orientation;
|
|
41
|
+
}
|
|
42
|
+
if (config.linkType) {
|
|
43
|
+
treMap.config.main.linkType = config.linkType;
|
|
44
|
+
}
|
|
45
|
+
if (config.graphHeight) {
|
|
46
|
+
treMap.config.main.graphHeight = config.graphHeight;
|
|
47
|
+
}
|
|
48
|
+
if (config.graphWidth) {
|
|
49
|
+
treMap.config.main.graphWidth = config.graphWidth;
|
|
50
|
+
}
|
|
51
|
+
if (config.graphZoomHeight) {
|
|
52
|
+
treMap.config.main.graphZoomHeight = config.graphZoomHeight;
|
|
53
|
+
}
|
|
54
|
+
if (config.graphZoomWidth) {
|
|
55
|
+
treMap.config.main.graphZoomWidth = config.graphZoomWidth;
|
|
56
|
+
}
|
|
57
|
+
return treMap;
|
|
58
|
+
}
|
|
@@ -38,6 +38,7 @@ import { buildStepper } from "./buildStepper";
|
|
|
38
38
|
import { buildPopUp } from "./buildPop";
|
|
39
39
|
import { buildDataGrid } from "./buildDataGrid";
|
|
40
40
|
import { buildInputSlider } from "./buildInputSlider";
|
|
41
|
+
import { buildTreeMap } from "./buildTreeMap";
|
|
41
42
|
export let schema = {
|
|
42
43
|
type: "object",
|
|
43
44
|
properties: {},
|
|
@@ -168,6 +169,9 @@ const buildUiSchema = (config: any) => {
|
|
|
168
169
|
let elements: any = {};
|
|
169
170
|
const componentScope = `#/properties/${config.name}`;
|
|
170
171
|
switch (config.type) {
|
|
172
|
+
case "TreeMap":
|
|
173
|
+
elements = buildTreeMap(config, componentScope)
|
|
174
|
+
break;
|
|
171
175
|
case "DateTime":
|
|
172
176
|
elements = buildDateTime(config, componentScope);
|
|
173
177
|
break;
|
|
@@ -285,7 +289,13 @@ const buildUiSchema = (config: any) => {
|
|
|
285
289
|
case "Timer":
|
|
286
290
|
elements = buildTimer(config, componentScope);
|
|
287
291
|
break;
|
|
288
|
-
|
|
292
|
+
case "ColumnGroup":
|
|
293
|
+
elements = {
|
|
294
|
+
accessorKey: config.name,
|
|
295
|
+
header: config.label || config.name,
|
|
296
|
+
elements: [],
|
|
297
|
+
}
|
|
298
|
+
break;
|
|
289
299
|
case "MultipleSelect":
|
|
290
300
|
elements = buildMultiSelect(config, componentScope);
|
|
291
301
|
break;
|
|
@@ -305,6 +315,23 @@ const buildUiSchema = (config: any) => {
|
|
|
305
315
|
if (config?.type === "LeaderBoard") {
|
|
306
316
|
return elements;
|
|
307
317
|
}
|
|
318
|
+
else if (config.type == "ColumnGroup") {
|
|
319
|
+
const sizeMap = {}
|
|
320
|
+
if (config.sizeHolder) {
|
|
321
|
+
config.sizeHolder.map((e, i) => {
|
|
322
|
+
sizeMap[e.keyName] = e.value
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
elements.elements = config.elements.map((cellElem, elemInd) => {
|
|
326
|
+
return {
|
|
327
|
+
accessorKey: cellElem.name,
|
|
328
|
+
header: cellElem.label || cellElem.name,
|
|
329
|
+
size: sizeMap[cellElem.name] || 180,
|
|
330
|
+
type: cellElem.columnFormat,
|
|
331
|
+
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
|
|
332
|
+
}
|
|
333
|
+
})
|
|
334
|
+
}
|
|
308
335
|
else if (config.type == "Table") {
|
|
309
336
|
const sizeMap = {}
|
|
310
337
|
if (config.sizeHolder) {
|
|
@@ -312,22 +339,25 @@ const buildUiSchema = (config: any) => {
|
|
|
312
339
|
sizeMap[e.keyName] = e.value
|
|
313
340
|
});
|
|
314
341
|
}
|
|
315
|
-
elements.elements = config.elements.map((
|
|
316
|
-
if (
|
|
342
|
+
elements.elements = config.elements.map((cellElem, elemInd) => {
|
|
343
|
+
if (cellElem.type) {
|
|
317
344
|
return {
|
|
318
|
-
accessorKey:
|
|
319
|
-
header:
|
|
320
|
-
size: sizeMap[
|
|
321
|
-
type:
|
|
322
|
-
widget: buildUiSchema(
|
|
345
|
+
accessorKey: cellElem.name,
|
|
346
|
+
header: cellElem.label || cellElem.name,
|
|
347
|
+
size: sizeMap[cellElem.name] || 180,
|
|
348
|
+
type: cellElem.columnFormat,
|
|
349
|
+
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem) : undefined,
|
|
350
|
+
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
|
|
351
|
+
}
|
|
352
|
+
} else {
|
|
353
|
+
return {
|
|
354
|
+
accessorKey: cellElem.name,
|
|
355
|
+
type: cellElem.columnFormat,
|
|
356
|
+
header: cellElem.label || cellElem.name,
|
|
357
|
+
size: sizeMap[cellElem.name] || 180
|
|
323
358
|
}
|
|
324
359
|
}
|
|
325
|
-
|
|
326
|
-
type: e.type,
|
|
327
|
-
accessorKey: e.name,
|
|
328
|
-
header: e.label || e.name,
|
|
329
|
-
size: sizeMap[e.name] || 180
|
|
330
|
-
}
|
|
360
|
+
|
|
331
361
|
})
|
|
332
362
|
}
|
|
333
363
|
else if (config.type == "Array") {
|
|
@@ -345,38 +375,4 @@ const buildUiSchema = (config: any) => {
|
|
|
345
375
|
}
|
|
346
376
|
|
|
347
377
|
|
|
348
|
-
export default buildUiSchema;
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
378
|
+
export default buildUiSchema;
|
|
@@ -2,17 +2,20 @@ import { createLayoutFormat } from "./buildConfig";
|
|
|
2
2
|
import WrapperSection from "./uischema/wrapperSection";
|
|
3
3
|
import _ from "lodash";
|
|
4
4
|
|
|
5
|
-
export const buildWrapperSection = (config,componentScope) =>{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
export const buildWrapperSection = (config, componentScope) => {
|
|
6
|
+
const wrapper: any = _.cloneDeep(WrapperSection);
|
|
7
|
+
wrapper.scope = componentScope;
|
|
8
|
+
wrapper.config.main.label = config.label;
|
|
9
|
+
wrapper.config.main.divider = config.divider === "YES" ? true : false;
|
|
10
|
+
wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
|
|
11
|
+
if(config.defaultStyle){
|
|
12
|
+
wrapper.config.defaultStyle = config.defaultStyle ==="YES" ? true : false;
|
|
13
|
+
}
|
|
14
|
+
if (config.style) {
|
|
15
|
+
wrapper.config.style = JSON.parse(config.style)
|
|
16
|
+
}
|
|
17
|
+
if (config.layout) {
|
|
18
|
+
wrapper.config.layout = createLayoutFormat(config.layout)
|
|
19
|
+
}
|
|
20
|
+
return wrapper;
|
|
18
21
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import _ from "lodash";
|
|
3
|
+
import emptyBox from "./emptyBox";
|
|
3
4
|
const EmptyBox = {
|
|
4
5
|
type: "Control",
|
|
5
6
|
scope: `#/properties/empty`,
|
|
@@ -19,7 +20,7 @@ const EmptyBox = {
|
|
|
19
20
|
},
|
|
20
21
|
},
|
|
21
22
|
};
|
|
22
|
-
const cardLayout =
|
|
23
|
+
const cardLayout = {
|
|
23
24
|
type: "Control",
|
|
24
25
|
scope: "#/properties/cardLayout",
|
|
25
26
|
layout: 11.5,
|
|
@@ -42,7 +43,7 @@ const cardLayout = {
|
|
|
42
43
|
},
|
|
43
44
|
main: {
|
|
44
45
|
label: "Screen Size",
|
|
45
|
-
|
|
46
|
+
|
|
46
47
|
},
|
|
47
48
|
},
|
|
48
49
|
},
|
|
@@ -62,11 +63,11 @@ const cardLayout = {
|
|
|
62
63
|
},
|
|
63
64
|
main: {
|
|
64
65
|
label: "Value",
|
|
65
|
-
type:"number",
|
|
66
|
+
type: "number",
|
|
66
67
|
// freeSolo:true,
|
|
67
|
-
helperText:'Number should be in range of 0 to 12',
|
|
68
|
-
errorMessage:"Number Can't be greater than 12 and can't be less than 0.",
|
|
69
|
-
|
|
68
|
+
helperText: 'Number should be in range of 0 to 12',
|
|
69
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0.",
|
|
70
|
+
|
|
70
71
|
},
|
|
71
72
|
},
|
|
72
73
|
},
|
|
@@ -151,7 +152,7 @@ const getInputField = (scope: String, label: String) => {
|
|
|
151
152
|
};
|
|
152
153
|
};
|
|
153
154
|
|
|
154
|
-
const getRadioInputField = (scope: String, label: String, options: string[]) => {
|
|
155
|
+
export const getRadioInputField = (scope: String, label: String, options: string[]) => {
|
|
155
156
|
return {
|
|
156
157
|
type: "Control",
|
|
157
158
|
scope: `#/properties/${scope}`,
|
|
@@ -235,6 +236,15 @@ const GraphSection = {
|
|
|
235
236
|
export const buildPropertiesSection = function (type: String) {
|
|
236
237
|
let uiSchema = _.cloneDeep(GraphSection);
|
|
237
238
|
switch (type) {
|
|
239
|
+
|
|
240
|
+
case "TreeMap":
|
|
241
|
+
uiSchema.elements = [
|
|
242
|
+
getSelectField("orientation", "orientation", []),
|
|
243
|
+
getInputField("linkType", "linkType"),
|
|
244
|
+
getInputField("graphHeight", "Graph Height"),
|
|
245
|
+
getInputField("graphWidth", "Graph Width"),
|
|
246
|
+
getInputField("graphZoomHeight", "Zoom Height"),
|
|
247
|
+
]
|
|
238
248
|
case "InputSlider":
|
|
239
249
|
uiSchema.elements = [
|
|
240
250
|
getInputField("max", "Max Limit"),
|
|
@@ -370,7 +380,9 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
370
380
|
case "WrapperSection":
|
|
371
381
|
uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
372
382
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"])
|
|
373
|
-
|
|
383
|
+
, getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
384
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
385
|
+
]
|
|
374
386
|
break;
|
|
375
387
|
|
|
376
388
|
case "TabSection":
|
|
@@ -54,6 +54,25 @@ export const CoreSection = {
|
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
|
+
{
|
|
58
|
+
type: "Control",
|
|
59
|
+
scope: "#/properties/columnFormat",
|
|
60
|
+
options: {
|
|
61
|
+
widget: "SelectInputField",
|
|
62
|
+
},
|
|
63
|
+
config: {
|
|
64
|
+
layout: {
|
|
65
|
+
xs: 12,
|
|
66
|
+
sm: 12,
|
|
67
|
+
md: 6,
|
|
68
|
+
lg: 6,
|
|
69
|
+
},
|
|
70
|
+
main: {
|
|
71
|
+
label: "Column Format",
|
|
72
|
+
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
57
76
|
{
|
|
58
77
|
type: "Control",
|
|
59
78
|
scope: "#/properties/proc",
|
|
@@ -4,7 +4,7 @@ export const ComponentSchema: any = {
|
|
|
4
4
|
type: {
|
|
5
5
|
// type: "string",
|
|
6
6
|
oneOf: [
|
|
7
|
-
{ title: "AadharcardText", const: "AadharcardText"},
|
|
7
|
+
{ title: "AadharcardText", const: "AadharcardText" },
|
|
8
8
|
{ title: "Array", const: "Array" },
|
|
9
9
|
{ title: "Button", const: "Button" },
|
|
10
10
|
{ title: "Card", const: "card" },
|
|
@@ -12,7 +12,7 @@ export const ComponentSchema: any = {
|
|
|
12
12
|
{ title: "Container", const: "WrapperSection" },
|
|
13
13
|
{ title: "DataGrid", const: "DataGrid" },
|
|
14
14
|
{ title: "Date", const: "Date" },
|
|
15
|
-
{ title: "DateTime", const: "DateTime"},
|
|
15
|
+
{ title: "DateTime", const: "DateTime" },
|
|
16
16
|
{ title: "Download File", const: "DownloadFile" },
|
|
17
17
|
{ title: "Empty Box", const: "EmptyBox" },
|
|
18
18
|
{ title: "File", const: "FileInput" },
|
|
@@ -39,19 +39,25 @@ export const ComponentSchema: any = {
|
|
|
39
39
|
{ title: "Text Area", const: "TextArea" },
|
|
40
40
|
{ title: "Timer", const: "Timer" },
|
|
41
41
|
{ title: "Upload File", const: "UploadFile" },
|
|
42
|
-
{ title: "Text Area", const: "TextArea" },
|
|
43
42
|
{ title: "Timer", const: "Timer" },
|
|
44
43
|
{ title: "Upload File", const: "UploadFile" },
|
|
44
|
+
{ title: "TreeMap", const: "TreeMap" },
|
|
45
|
+
{ title: "ColumnGroup", const: "ColumnGroup" },
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
columnFormat: {
|
|
49
|
+
oneOf: [
|
|
45
50
|
{ title: "Date Column", const: "date" },
|
|
46
51
|
{ title: "DateTime Column", const: "dateTime" },
|
|
47
52
|
{ title: "Amount Column", const: "amount" },
|
|
48
53
|
]
|
|
49
54
|
},
|
|
50
|
-
orientation:{
|
|
55
|
+
orientation: {
|
|
51
56
|
oneOf: [
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
57
|
+
{ title: "Horizontal", const: "horizontal" },
|
|
58
|
+
{ title: "Vertical", const: "vertical" },
|
|
59
|
+
]
|
|
60
|
+
},
|
|
55
61
|
method: {
|
|
56
62
|
type: "string",
|
|
57
63
|
oneOf: [
|
|
@@ -77,7 +83,7 @@ export const ComponentSchema: any = {
|
|
|
77
83
|
},
|
|
78
84
|
value: {
|
|
79
85
|
// type: "string",
|
|
80
|
-
|
|
86
|
+
|
|
81
87
|
},
|
|
82
88
|
},
|
|
83
89
|
},
|
|
@@ -98,7 +104,7 @@ export const ComponentSchema: any = {
|
|
|
98
104
|
},
|
|
99
105
|
value: {
|
|
100
106
|
// type: "string",
|
|
101
|
-
|
|
107
|
+
|
|
102
108
|
},
|
|
103
109
|
},
|
|
104
110
|
},
|
|
@@ -180,8 +186,8 @@ export const ComponentSchema: any = {
|
|
|
180
186
|
keyName: {
|
|
181
187
|
type: "string",
|
|
182
188
|
},
|
|
183
|
-
value:{
|
|
184
|
-
type:"string"
|
|
189
|
+
value: {
|
|
190
|
+
type: "string"
|
|
185
191
|
}
|
|
186
192
|
},
|
|
187
193
|
},
|
|
@@ -271,9 +277,9 @@ export const ComponentSchema: any = {
|
|
|
271
277
|
{ title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
|
|
272
278
|
]
|
|
273
279
|
},
|
|
274
|
-
iconName:{
|
|
275
|
-
type:"string",
|
|
276
|
-
oneOf:[
|
|
280
|
+
iconName: {
|
|
281
|
+
type: "string",
|
|
282
|
+
oneOf: [
|
|
277
283
|
{ title: "Search Icon", const: "SearchIcon" },
|
|
278
284
|
{ title: "Edit Icon", const: "EditIcon" },
|
|
279
285
|
{ title: "Add Icon", const: "AddIcon" },
|
|
@@ -293,8 +299,8 @@ export const ComponentSchema: any = {
|
|
|
293
299
|
{ title: "Exception Icon", const: "ExceptionIcon" },
|
|
294
300
|
]
|
|
295
301
|
},
|
|
296
|
-
color:{
|
|
297
|
-
type:"string",
|
|
302
|
+
color: {
|
|
303
|
+
type: "string",
|
|
298
304
|
oneOf: [
|
|
299
305
|
{ title: "Primary", const: "primary" },
|
|
300
306
|
{ title: "Secondary", const: "secondary" },
|
|
@@ -308,6 +314,6 @@ export const ComponentSchema: any = {
|
|
|
308
314
|
},
|
|
309
315
|
label: { type: 'string' }
|
|
310
316
|
},
|
|
311
|
-
|
|
312
|
-
required: [
|
|
317
|
+
|
|
318
|
+
required: ["name",]
|
|
313
319
|
};
|
|
@@ -148,7 +148,25 @@ export const componentBasicUiSchema: any = {
|
|
|
148
148
|
},
|
|
149
149
|
},
|
|
150
150
|
},
|
|
151
|
-
|
|
151
|
+
{
|
|
152
|
+
type: "Control",
|
|
153
|
+
scope: "#/properties/columnFormat",
|
|
154
|
+
options: {
|
|
155
|
+
widget: "SelectInputField",
|
|
156
|
+
},
|
|
157
|
+
config: {
|
|
158
|
+
layout: {
|
|
159
|
+
xs: 12,
|
|
160
|
+
sm: 12,
|
|
161
|
+
md: 6,
|
|
162
|
+
lg: 6,
|
|
163
|
+
},
|
|
164
|
+
main: {
|
|
165
|
+
label: "Column Format",
|
|
166
|
+
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
},
|
|
152
170
|
{
|
|
153
171
|
type: "Control",
|
|
154
172
|
scope: "#/properties/proc",
|
|
@@ -44,7 +44,7 @@ export const EventSchema = {
|
|
|
44
44
|
{ title: "Mount Event", const: "onMount" },
|
|
45
45
|
{ title: "Success", const: "Success" },
|
|
46
46
|
{ title: "onStart", const: "onStart" },
|
|
47
|
-
|
|
47
|
+
{ title: "Cell Renderer", const: "onCellRenderer" },
|
|
48
48
|
{ title: "File Upload Event", const: "onUpload" },
|
|
49
49
|
{ title: "Back Event", const: "onBack" },
|
|
50
50
|
{ title: "Next Event", const: "onNext" },
|
|
@@ -66,7 +66,7 @@ export const EventSchema = {
|
|
|
66
66
|
oneOf: [
|
|
67
67
|
{ title: "RankProvider", const: "RankProvider" },
|
|
68
68
|
{ title: "Download File", const: "downloadFile" },
|
|
69
|
-
{ title: "Download", const: "download" }
|
|
69
|
+
{ title: "Download", const: "download" },
|
|
70
70
|
]
|
|
71
71
|
},
|
|
72
72
|
body: {
|