impaktapps-ui-builder 0.0.101-alpha.28 → 0.0.101-alpha.282
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 -222
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +16 -16
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +5 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +6 -0
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +8 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +38 -30
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +7 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +1 -60
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +0 -52
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -50
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +33 -28
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +26 -164
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +23 -97
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +15 -12
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +19 -93
- package/src/impaktapps-ui-builder/builder/services/component.ts +220 -56
- package/src/impaktapps-ui-builder/builder/services/event.ts +175 -58
- package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +15 -131
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +0 -19
- package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +0 -22
- package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +0 -18
|
@@ -6,6 +6,7 @@ export default function Card(theme: any): {
|
|
|
6
6
|
position: string;
|
|
7
7
|
top: string;
|
|
8
8
|
transform: string;
|
|
9
|
+
marginBottom: number;
|
|
9
10
|
};
|
|
10
11
|
componentsBoxStyle: {
|
|
11
12
|
boxShadow: string;
|
|
@@ -50,6 +51,7 @@ export default function Card(theme: any): {
|
|
|
50
51
|
};
|
|
51
52
|
wrapperStyle: {
|
|
52
53
|
background: string;
|
|
54
|
+
marginBottom: number;
|
|
53
55
|
};
|
|
54
56
|
componentsBoxStyle: {
|
|
55
57
|
flexDirection: string;
|
|
@@ -71,6 +73,7 @@ export default function Card(theme: any): {
|
|
|
71
73
|
};
|
|
72
74
|
wrapperStyle: {
|
|
73
75
|
background: string;
|
|
76
|
+
marginBottom: number;
|
|
74
77
|
};
|
|
75
78
|
componentsBoxStyle: {
|
|
76
79
|
flexDirection: string;
|
|
@@ -106,6 +109,7 @@ export default function Card(theme: any): {
|
|
|
106
109
|
justifyContent: string;
|
|
107
110
|
width: string;
|
|
108
111
|
margin: string;
|
|
112
|
+
marginLeft: string;
|
|
109
113
|
height: number;
|
|
110
114
|
position?: undefined;
|
|
111
115
|
left?: undefined;
|
|
@@ -135,6 +139,7 @@ export default function Card(theme: any): {
|
|
|
135
139
|
margin: string;
|
|
136
140
|
position: string;
|
|
137
141
|
left: string;
|
|
142
|
+
marginLeft?: undefined;
|
|
138
143
|
height?: undefined;
|
|
139
144
|
};
|
|
140
145
|
};
|
|
@@ -165,7 +170,6 @@ export default function Card(theme: any): {
|
|
|
165
170
|
xs: string;
|
|
166
171
|
md: string;
|
|
167
172
|
};
|
|
168
|
-
lineHeight: string;
|
|
169
173
|
};
|
|
170
174
|
layout: number;
|
|
171
175
|
wrapperStyle?: undefined;
|
|
@@ -22,5 +22,7 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
22
22
|
RemoveItemButton: (paramStore?: any) => void;
|
|
23
23
|
elementPathHandler: (parentPath: string, rowId: any, elementType: string) => string;
|
|
24
24
|
ElementPathSetter: (uiSchema: any, copiedFormData?: any) => void;
|
|
25
|
+
onNavigatePopupYes: () => void;
|
|
26
|
+
onNavigatePopupNo: () => void;
|
|
25
27
|
};
|
|
26
28
|
export default _default;
|
|
@@ -79,6 +79,12 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
79
79
|
RemoveItemButton: {
|
|
80
80
|
disabled: boolean;
|
|
81
81
|
};
|
|
82
|
+
pageName: {
|
|
83
|
+
path: {
|
|
84
|
+
label: string;
|
|
85
|
+
path: string;
|
|
86
|
+
}[];
|
|
87
|
+
};
|
|
82
88
|
};
|
|
83
89
|
required: string[];
|
|
84
90
|
};
|
|
@@ -92,5 +98,7 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
92
98
|
deletePopUpEvent: () => void;
|
|
93
99
|
copyPasteElement: () => void;
|
|
94
100
|
RemoveItemButton: () => void;
|
|
101
|
+
onNavigatePopupYes: () => void;
|
|
102
|
+
onNavigatePopupNo: () => void;
|
|
95
103
|
};
|
|
96
104
|
export default _default;
|
package/package.json
CHANGED
|
@@ -2,22 +2,25 @@ import _ from "lodash";
|
|
|
2
2
|
import TextInputField from "./uischema/textInputField";
|
|
3
3
|
import { createLayoutFormat } from "./buildConfig";
|
|
4
4
|
|
|
5
|
-
export const buildTextField = (config:any,componentScope:string) =>{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
inputField.
|
|
22
|
-
|
|
5
|
+
export const buildTextField = (config: any, componentScope: string) => {
|
|
6
|
+
const inputField: any = _.cloneDeep(TextInputField);
|
|
7
|
+
inputField.config.main.label = config.label;
|
|
8
|
+
if (config.style) {
|
|
9
|
+
inputField.config.style = JSON.parse(config.style)
|
|
10
|
+
}
|
|
11
|
+
if (config.multiline) {
|
|
12
|
+
inputField.config.main.multiline = config.multiline === "YES" ? true : false;
|
|
13
|
+
}
|
|
14
|
+
if (config.InputFormatingAndMasking) {
|
|
15
|
+
inputField.config.main.formatStrArray = config.InputFormatingAndMasking.map(e => e.formatElement);
|
|
16
|
+
}
|
|
17
|
+
if (config.placeholder) {
|
|
18
|
+
inputField.config.main.placeholder = config.placeholder;
|
|
19
|
+
}
|
|
20
|
+
if (config.layout) {
|
|
21
|
+
inputField.config.layout = createLayoutFormat(config.layout)
|
|
22
|
+
}
|
|
23
|
+
inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
|
|
24
|
+
inputField.scope = componentScope;
|
|
25
|
+
return inputField;
|
|
23
26
|
}
|
|
@@ -14,7 +14,7 @@ import { buildWrapperSection } from "./buildWrapperSection";
|
|
|
14
14
|
import { buildTextField } from "./buildText";
|
|
15
15
|
import { buildSelect } from "./buildSelect";
|
|
16
16
|
import { buildButton } from "./buildButton";
|
|
17
|
-
import {
|
|
17
|
+
import { buildTable } from "./buildTable";
|
|
18
18
|
import { buildLabel } from "./buildLabel";
|
|
19
19
|
import { buildUploadFile } from "./buildUplaodFile";
|
|
20
20
|
import { buildDownloadFile } from "./buildDownloadFile";
|
|
@@ -40,7 +40,6 @@ import { buildDataGrid } from "./buildDataGrid";
|
|
|
40
40
|
import { buildInputSlider } from "./buildInputSlider";
|
|
41
41
|
import { buildTreeMap } from "./buildTreeMap";
|
|
42
42
|
import { buildThoughtOfTheDay } from "./buildThoughtOfTheDay";
|
|
43
|
-
import { buildPdfViewer } from "./buildPdfViewer";
|
|
44
43
|
export let schema = {
|
|
45
44
|
type: "object",
|
|
46
45
|
properties: {},
|
|
@@ -308,8 +307,6 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
308
307
|
case "Thought":
|
|
309
308
|
elements = buildThoughtOfTheDay(config, componentScope);
|
|
310
309
|
break;
|
|
311
|
-
case "PdfViewer":
|
|
312
|
-
elements = buildPdfViewer(config);
|
|
313
310
|
break;
|
|
314
311
|
default:
|
|
315
312
|
schema = {
|
|
@@ -340,53 +337,64 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
340
337
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store)) : []
|
|
341
338
|
}
|
|
342
339
|
})
|
|
343
|
-
}
|
|
344
|
-
else if (config.type == "Table") {
|
|
340
|
+
} else if (config.type == "Table") {
|
|
345
341
|
const sizeMap = {}
|
|
346
|
-
|
|
342
|
+
|
|
347
343
|
if (config.sizeHolder) {
|
|
348
344
|
config.sizeHolder.map((e, i) => {
|
|
349
345
|
sizeMap[e.keyName] = e.value
|
|
350
346
|
});
|
|
351
347
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
348
|
+
const tableHeaderElements = [];
|
|
349
|
+
const tableActionElement = [];
|
|
350
|
+
const rowElements = []
|
|
351
|
+
config.elements.filter((cellElem, elemInd) => {
|
|
352
|
+
const commonProperties = {
|
|
353
|
+
accessorKey: cellElem.name,
|
|
354
|
+
type: cellElem.columnFormat,
|
|
355
|
+
header: cellElem.label || cellElem.name,
|
|
356
|
+
size: sizeMap[cellElem.name] || 180,
|
|
357
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
358
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
359
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
360
|
+
columnKey: cellElem.columnKey
|
|
361
|
+
}
|
|
358
362
|
if (cellElem.type) {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
363
|
+
if (cellElem.elementType == "action") {
|
|
364
|
+
const actionElem = buildUiSchema(cellElem, store);
|
|
365
|
+
tableActionElement.push(actionElem);
|
|
366
|
+
return false;
|
|
367
|
+
}
|
|
368
|
+
if (cellElem.elementType == "tableHeader") {
|
|
369
|
+
const headerElem = buildUiSchema(cellElem, store);
|
|
370
|
+
tableHeaderElements.push({widget:headerElem});
|
|
371
|
+
return false;
|
|
372
|
+
}
|
|
373
|
+
const tableElem = {
|
|
364
374
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store) : undefined,
|
|
365
375
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store)) : [],
|
|
366
|
-
|
|
367
|
-
|
|
376
|
+
...commonProperties
|
|
377
|
+
|
|
368
378
|
}
|
|
379
|
+
rowElements.push(tableElem)
|
|
369
380
|
} else {
|
|
370
|
-
|
|
371
|
-
accessorKey: cellElem.name,
|
|
372
|
-
type: cellElem.columnFormat,
|
|
373
|
-
header: cellElem.label || cellElem.name,
|
|
374
|
-
size: sizeMap[cellElem.name] || 180,
|
|
375
|
-
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : filterMap[cellElem.name] ?? false,
|
|
376
|
-
columnFilterModeOptions: config.filteringOptions
|
|
377
|
-
}
|
|
381
|
+
rowElements.push({ ...commonProperties })
|
|
378
382
|
}
|
|
379
383
|
|
|
380
384
|
})
|
|
385
|
+
elements.elements = rowElements;
|
|
386
|
+
elements.config.action = tableActionElement;
|
|
387
|
+
elements.config.main.headerIcons.elements = tableHeaderElements;
|
|
381
388
|
}
|
|
389
|
+
|
|
382
390
|
else if (config.type == "Array") {
|
|
383
391
|
elements.options.detail.elements = config.elements.map((e: any, elemInd: number) => {
|
|
384
|
-
return buildUiSchema(e,store)
|
|
392
|
+
return buildUiSchema(e, store)
|
|
385
393
|
});
|
|
386
394
|
}
|
|
387
395
|
else {
|
|
388
396
|
elements.elements = config.elements.map((e: any, elemInd: number) => {
|
|
389
|
-
return buildUiSchema(e,store)
|
|
397
|
+
return buildUiSchema(e, store)
|
|
390
398
|
});
|
|
391
399
|
}
|
|
392
400
|
}
|
|
@@ -322,7 +322,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
322
322
|
case "Text":
|
|
323
323
|
uiSchema.elements = [
|
|
324
324
|
getInputField("placeholder", "Placeholder"),
|
|
325
|
-
|
|
325
|
+
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
326
326
|
emptyBox("TextEmpty1", {xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
327
327
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
328
328
|
]
|
|
@@ -6,7 +6,8 @@ export default function Card(theme){
|
|
|
6
6
|
wrapperStyle: {
|
|
7
7
|
position: "relative",
|
|
8
8
|
top: "50%",
|
|
9
|
-
transform: "translateY(-50%)"
|
|
9
|
+
transform: "translateY(-50%)",
|
|
10
|
+
marginBottom: 0
|
|
10
11
|
},
|
|
11
12
|
componentsBoxStyle: {
|
|
12
13
|
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
@@ -46,6 +47,7 @@ export default function Card(theme){
|
|
|
46
47
|
},
|
|
47
48
|
wrapperStyle: {
|
|
48
49
|
background: "transparent",
|
|
50
|
+
marginBottom: 0
|
|
49
51
|
},
|
|
50
52
|
componentsBoxStyle: {
|
|
51
53
|
flexDirection: "column",
|
|
@@ -67,6 +69,7 @@ export default function Card(theme){
|
|
|
67
69
|
},
|
|
68
70
|
wrapperStyle: {
|
|
69
71
|
background: "transparent",
|
|
72
|
+
marginBottom: 0
|
|
70
73
|
},
|
|
71
74
|
componentsBoxStyle: {
|
|
72
75
|
flexDirection: "row",
|
|
@@ -99,6 +102,7 @@ export default function Card(theme){
|
|
|
99
102
|
justifyContent: "flex-start",
|
|
100
103
|
width: "auto",
|
|
101
104
|
margin: "-8px",
|
|
105
|
+
marginLeft: "-24px",
|
|
102
106
|
height: 0
|
|
103
107
|
},
|
|
104
108
|
// layout: 1,
|
|
@@ -124,7 +128,7 @@ export default function Card(theme){
|
|
|
124
128
|
width: "auto",
|
|
125
129
|
margin: "-8px",
|
|
126
130
|
position: "absolute",
|
|
127
|
-
left: "
|
|
131
|
+
left: "24px"
|
|
128
132
|
},
|
|
129
133
|
// layout: 11,
|
|
130
134
|
},
|
|
@@ -149,8 +153,7 @@ export default function Card(theme){
|
|
|
149
153
|
background: "inherit",
|
|
150
154
|
width: "calc(100%+8px)",
|
|
151
155
|
margin: "-8px",
|
|
152
|
-
marginTop: {xs: "
|
|
153
|
-
lineHeight: "1",
|
|
156
|
+
marginTop: {xs: "16px", md: "20px"},
|
|
154
157
|
},
|
|
155
158
|
layout: 12,
|
|
156
159
|
},
|
|
@@ -214,63 +214,4 @@ export const CoreSection = {
|
|
|
214
214
|
],
|
|
215
215
|
},
|
|
216
216
|
],
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
// export const OptionArray: any = {
|
|
220
|
-
// type: "Control",
|
|
221
|
-
// scope: "#/properties/value",
|
|
222
|
-
// layout: 11.5,
|
|
223
|
-
// options: {
|
|
224
|
-
// detail: {
|
|
225
|
-
// type: "HorizontalLayout",
|
|
226
|
-
// elements: [
|
|
227
|
-
// {
|
|
228
|
-
// type: "Control",
|
|
229
|
-
// scope: "#/properties/label",
|
|
230
|
-
// options: {
|
|
231
|
-
// widget: "SelectInputField",
|
|
232
|
-
// },
|
|
233
|
-
// config: {
|
|
234
|
-
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
235
|
-
// main: {
|
|
236
|
-
// label: "Label",
|
|
237
|
-
// },
|
|
238
|
-
// },
|
|
239
|
-
// },
|
|
240
|
-
// {
|
|
241
|
-
// type: "Control",
|
|
242
|
-
// scope: "#/properties/value",
|
|
243
|
-
|
|
244
|
-
// options: {
|
|
245
|
-
// widget: "InputField",
|
|
246
|
-
// },
|
|
247
|
-
// config: {
|
|
248
|
-
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
249
|
-
// main: {
|
|
250
|
-
// label: "Value",
|
|
251
|
-
// helperText: 'Number should be in range of 0 to 12',
|
|
252
|
-
// errorMessage: "Number Can't be greater than 12 and can't be less than 0.",
|
|
253
|
-
// },
|
|
254
|
-
// },
|
|
255
|
-
// },
|
|
256
|
-
// ],
|
|
257
|
-
// },
|
|
258
|
-
// },
|
|
259
|
-
// };
|
|
260
|
-
|
|
261
|
-
// export const OptionArraySchema = {
|
|
262
|
-
// value: {
|
|
263
|
-
// type: "array",
|
|
264
|
-
// items: {
|
|
265
|
-
// type: "object",
|
|
266
|
-
// properties: {
|
|
267
|
-
// label: {
|
|
268
|
-
// type: "string",
|
|
269
|
-
// },
|
|
270
|
-
// value: {
|
|
271
|
-
// type: "string",
|
|
272
|
-
// },
|
|
273
|
-
// },
|
|
274
|
-
// },
|
|
275
|
-
// },
|
|
276
|
-
// };
|
|
217
|
+
};
|
|
@@ -79,7 +79,7 @@ export const EventSection = (theme)=>{
|
|
|
79
79
|
|
|
80
80
|
{
|
|
81
81
|
accessorKey: "eventType",
|
|
82
|
-
header: "Event Type",
|
|
82
|
+
header: "Event's Type",
|
|
83
83
|
type: "string",
|
|
84
84
|
size: 300,
|
|
85
85
|
},
|
|
@@ -91,7 +91,7 @@ export const EventSection = (theme)=>{
|
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
accessorKey: "Edit_Approve_Records",
|
|
94
|
-
header: "Edit
|
|
94
|
+
header: "Edit",
|
|
95
95
|
size: 150,
|
|
96
96
|
type: "action",
|
|
97
97
|
widget: {
|
|
@@ -7,58 +7,6 @@ export const ValidationSection = {
|
|
|
7
7
|
}
|
|
8
8
|
},
|
|
9
9
|
elements: [
|
|
10
|
-
// {
|
|
11
|
-
// type: "Control",
|
|
12
|
-
// scope: "#/properties/validation",
|
|
13
|
-
// layout: 11.5,
|
|
14
|
-
// options: {
|
|
15
|
-
// "elementLabelProp": "validationType",
|
|
16
|
-
// detail: {
|
|
17
|
-
// type: "HorizontalLayout",
|
|
18
|
-
// elements: [
|
|
19
|
-
// {
|
|
20
|
-
// type: "Control",
|
|
21
|
-
// scope: "#/properties/validationType",
|
|
22
|
-
|
|
23
|
-
// options: {
|
|
24
|
-
// widget: "SelectInputField",
|
|
25
|
-
// },
|
|
26
|
-
// config: {
|
|
27
|
-
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
28
|
-
// main: {
|
|
29
|
-
// label: "Validation Type",
|
|
30
|
-
// },
|
|
31
|
-
// },
|
|
32
|
-
// },
|
|
33
|
-
// {
|
|
34
|
-
// type: "Control",
|
|
35
|
-
// scope: "#/properties/validationValue",
|
|
36
|
-
|
|
37
|
-
// options: {
|
|
38
|
-
// widget: "InputField",
|
|
39
|
-
// },
|
|
40
|
-
// config: {
|
|
41
|
-
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
42
|
-
// main: {
|
|
43
|
-
// label: "Validation Value",
|
|
44
|
-
// },
|
|
45
|
-
// },
|
|
46
|
-
// },
|
|
47
|
-
// {
|
|
48
|
-
// type: "Control",
|
|
49
|
-
// scope: "#/properties/emptyBox",
|
|
50
|
-
// options: {
|
|
51
|
-
// widget: "EmptyBox"
|
|
52
|
-
// },
|
|
53
|
-
// config: {
|
|
54
|
-
// layout: {xs: 0, sm: 0, md: 4}
|
|
55
|
-
// }
|
|
56
|
-
// }
|
|
57
|
-
// ],
|
|
58
|
-
// },
|
|
59
|
-
// },
|
|
60
|
-
|
|
61
|
-
// },
|
|
62
10
|
{
|
|
63
11
|
type: "Control",
|
|
64
12
|
scope: "#/properties/validation",
|
|
@@ -7,56 +7,6 @@ export const ValueTab = {
|
|
|
7
7
|
}
|
|
8
8
|
},
|
|
9
9
|
elements: [
|
|
10
|
-
// {
|
|
11
|
-
// type: "Control",
|
|
12
|
-
// scope: "#/properties/value",
|
|
13
|
-
// layout: 12,
|
|
14
|
-
// options: {
|
|
15
|
-
// detail: {
|
|
16
|
-
// type: "HorizontalLayout",
|
|
17
|
-
// elements: [
|
|
18
|
-
// {
|
|
19
|
-
// type: "Control",
|
|
20
|
-
// scope: "#/properties/label",
|
|
21
|
-
// options: {
|
|
22
|
-
// widget: "InputField",
|
|
23
|
-
// },
|
|
24
|
-
// config: {
|
|
25
|
-
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
26
|
-
// main: {
|
|
27
|
-
// label: "Label",
|
|
28
|
-
// },
|
|
29
|
-
// },
|
|
30
|
-
// },
|
|
31
|
-
// {
|
|
32
|
-
// type: "Control",
|
|
33
|
-
// scope: "#/properties/value",
|
|
34
|
-
|
|
35
|
-
// options: {
|
|
36
|
-
// widget: "InputField",
|
|
37
|
-
// },
|
|
38
|
-
// config: {
|
|
39
|
-
// layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
40
|
-
// main: {
|
|
41
|
-
// label: "Value",
|
|
42
|
-
|
|
43
|
-
// },
|
|
44
|
-
// },
|
|
45
|
-
// },
|
|
46
|
-
// {
|
|
47
|
-
// type: "Control",
|
|
48
|
-
// scope: "#/properties/emptyBox",
|
|
49
|
-
// options: {
|
|
50
|
-
// widget: "EmptyBox"
|
|
51
|
-
// },
|
|
52
|
-
// config: {
|
|
53
|
-
// layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
54
|
-
// }
|
|
55
|
-
// }
|
|
56
|
-
// ],
|
|
57
|
-
// },
|
|
58
|
-
// },
|
|
59
|
-
// }
|
|
60
10
|
{
|
|
61
11
|
type: "Control",
|
|
62
12
|
scope: "#/properties/value",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
//headerIcons //action //elements
|
|
1
2
|
export const ComponentSchema: any = {
|
|
2
3
|
type: "object",
|
|
3
4
|
properties: {
|
|
4
5
|
type: {
|
|
5
|
-
// type: "string",
|
|
6
6
|
oneOf: [
|
|
7
|
-
{ title: "Masked
|
|
7
|
+
{ title: "Masked Aadhar Card", const: "AadharcardText" },
|
|
8
8
|
{ title: "Array", const: "Array" },
|
|
9
9
|
{ title: "Button", const: "Button" },
|
|
10
10
|
{ title: "Data Card", const: "card" },
|
|
@@ -19,7 +19,7 @@ export const ComponentSchema: any = {
|
|
|
19
19
|
{ title: "Graph", const: "Graph" },
|
|
20
20
|
{ title: "Input Slider", const: "InputSlider" },
|
|
21
21
|
{ title: "Label", const: "Box" },
|
|
22
|
-
{ title: "
|
|
22
|
+
{ title: "Leaderboard", const: "LeaderBoard" },
|
|
23
23
|
{ title: "Multi-Select Dropdown", const: "MultipleSelect" },
|
|
24
24
|
{ title: "Pan Card Masked", const: "PanCardText" },
|
|
25
25
|
{ title: "Pop Up", const: "PopUp" },
|
|
@@ -41,8 +41,14 @@ export const ComponentSchema: any = {
|
|
|
41
41
|
{ title: "Upload", const: "UploadFile" },
|
|
42
42
|
{ title: "Tree ", const: "TreeMap" },
|
|
43
43
|
{ title: "Column Group", const: "ColumnGroup" },
|
|
44
|
-
{ title: "Thought of the day", const: "Thought" }
|
|
45
|
-
|
|
44
|
+
{ title: "Thought of the day", const: "Thought" }
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
elementType: {
|
|
48
|
+
oneOf: [
|
|
49
|
+
{ title: "Table Action Element", const: "action" },
|
|
50
|
+
{ title: "Table Header Element", const: "tableHeader" },
|
|
51
|
+
{ title: "Table Element", const: "element" },
|
|
46
52
|
]
|
|
47
53
|
},
|
|
48
54
|
columnFormat: {
|
|
@@ -71,7 +77,7 @@ export const ComponentSchema: any = {
|
|
|
71
77
|
type: "array",
|
|
72
78
|
items: {
|
|
73
79
|
type: "object",
|
|
74
|
-
properties: {
|
|
80
|
+
properties: {
|
|
75
81
|
key: {
|
|
76
82
|
type: "string",
|
|
77
83
|
oneOf: [
|
|
@@ -82,7 +88,6 @@ export const ComponentSchema: any = {
|
|
|
82
88
|
],
|
|
83
89
|
},
|
|
84
90
|
value: {
|
|
85
|
-
// type: "string",
|
|
86
91
|
|
|
87
92
|
},
|
|
88
93
|
},
|
|
@@ -103,7 +108,6 @@ export const ComponentSchema: any = {
|
|
|
103
108
|
],
|
|
104
109
|
},
|
|
105
110
|
value: {
|
|
106
|
-
// type: "string",
|
|
107
111
|
|
|
108
112
|
},
|
|
109
113
|
},
|
|
@@ -192,7 +196,7 @@ export const ComponentSchema: any = {
|
|
|
192
196
|
},
|
|
193
197
|
},
|
|
194
198
|
},
|
|
195
|
-
enableColumnFilter:{
|
|
199
|
+
enableColumnFilter: {
|
|
196
200
|
type: "array",
|
|
197
201
|
items: {
|
|
198
202
|
type: "object",
|
|
@@ -203,25 +207,23 @@ export const ComponentSchema: any = {
|
|
|
203
207
|
},
|
|
204
208
|
},
|
|
205
209
|
},
|
|
206
|
-
filteringOptions:{
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
{ const: 'lessThanOrEqualTo', title: 'Less than or equal to' },
|
|
222
|
-
]
|
|
223
|
-
},
|
|
210
|
+
filteringOptions: {
|
|
211
|
+
oneOf: [
|
|
212
|
+
{ const: 'fuzzy', title: 'Fuzzy' },
|
|
213
|
+
{ const: 'contains', title: 'Contain' },
|
|
214
|
+
{ const: 'startsWith', title: 'Starts with' },
|
|
215
|
+
{ const: 'endsWith', title: 'Ends with' },
|
|
216
|
+
{ const: 'equals', title: 'Equals' },
|
|
217
|
+
{ const: 'notEquals', title: 'Not Equals' },
|
|
218
|
+
{ const: 'between', title: 'Between' },
|
|
219
|
+
{ const: 'betweenInclusive', title: 'Between inclusive' },
|
|
220
|
+
{ const: 'greaterThan', title: 'Greater than' },
|
|
221
|
+
{ const: 'greaterThanOrEqualTo', title: 'Greater than or equal to' },
|
|
222
|
+
{ const: 'lessThan', title: 'Less than' },
|
|
223
|
+
{ const: 'lessThanOrEqualTo', title: 'Less than or equal to' },
|
|
224
|
+
]
|
|
224
225
|
},
|
|
226
|
+
|
|
225
227
|
legendLabels: {
|
|
226
228
|
type: "array",
|
|
227
229
|
items: {
|
|
@@ -340,11 +342,14 @@ export const ComponentSchema: any = {
|
|
|
340
342
|
{ title: "Info", const: "info" },
|
|
341
343
|
]
|
|
342
344
|
},
|
|
345
|
+
pageName: {
|
|
346
|
+
path: []
|
|
347
|
+
},
|
|
343
348
|
name: {
|
|
344
349
|
type: "string",
|
|
345
350
|
},
|
|
346
351
|
label: { type: 'string' },
|
|
347
|
-
RemoveItemButton:{
|
|
352
|
+
RemoveItemButton: {
|
|
348
353
|
disabled: true,
|
|
349
354
|
},
|
|
350
355
|
},
|