impaktapps-ui-builder 1.0.131 → 1.0.133
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 +89 -32
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +102 -80
- package/src/impaktapps-ui-builder/builder/services/component.ts +23 -0
package/package.json
CHANGED
|
@@ -292,7 +292,8 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
292
292
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
293
293
|
columnFilterModeOptions: cellElem.filteringOptions,
|
|
294
294
|
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
295
|
-
columnKey: cellElem.columnKey
|
|
295
|
+
columnKey: cellElem.columnKey,
|
|
296
|
+
dateFormat: cellElem.dateFormat,
|
|
296
297
|
}
|
|
297
298
|
if (cellElem.type) {
|
|
298
299
|
const tableElem = {
|
|
@@ -325,7 +326,8 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
325
326
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
326
327
|
columnFilterModeOptions: cellElem.filteringOptions,
|
|
327
328
|
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
328
|
-
columnKey: cellElem.columnKey
|
|
329
|
+
columnKey: cellElem.columnKey,
|
|
330
|
+
dateFormat: cellElem.dateFormat,
|
|
329
331
|
}
|
|
330
332
|
if (cellElem.type) {
|
|
331
333
|
if (cellElem.elementType == "action") {
|
|
@@ -43,36 +43,65 @@ export const ComponentSchema: any = {
|
|
|
43
43
|
{ title: "Upload", const: "UploadFile" },
|
|
44
44
|
{ title: "Tree ", const: "TreeMap" },
|
|
45
45
|
{ title: "Column Group", const: "ColumnGroup" },
|
|
46
|
-
{ title: "Thought of the day", const: "Thought" }
|
|
47
|
-
]
|
|
46
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
47
|
+
],
|
|
48
48
|
},
|
|
49
49
|
elementType: {
|
|
50
50
|
oneOf: [
|
|
51
51
|
{ title: "Table Action Element", const: "action" },
|
|
52
52
|
{ title: "Table Header Element", const: "tableHeader" },
|
|
53
53
|
{ title: "Table Element", const: "element" },
|
|
54
|
-
]
|
|
54
|
+
],
|
|
55
55
|
},
|
|
56
56
|
columnFormat: {
|
|
57
57
|
oneOf: [
|
|
58
58
|
{ title: "Date Column", const: "date" },
|
|
59
59
|
{ title: "DateTime Column", const: "dateTime" },
|
|
60
60
|
{ title: "Amount Column", const: "amount" },
|
|
61
|
-
{ title: "Center Column", const: "action" }
|
|
62
|
-
]
|
|
61
|
+
{ title: "Center Column", const: "action" },
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
dateFormat: {
|
|
65
|
+
oneOf: [
|
|
66
|
+
{
|
|
67
|
+
title: "ISO DateTime (UTC) — YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
68
|
+
const: "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
title: "ISO DateTime — YYYY-MM-DDTHH:mm:ssZ",
|
|
72
|
+
const: "YYYY-MM-DDTHH:mm:ssZ",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
title: "ISO DateTime (No TZ) — YYYY-MM-DDTHH:mm:ss",
|
|
76
|
+
const: "YYYY-MM-DDTHH:mm:ss",
|
|
77
|
+
},
|
|
78
|
+
{ title: "ISO Date — YYYY-MM-DD", const: "YYYY-MM-DD" },
|
|
79
|
+
{ title: "Date (DD-MM-YYYY) — DD-MM-YYYY", const: "DD-MM-YYYY" },
|
|
80
|
+
{ title: "Date (MM/DD/YYYY) — MM/DD/YYYY", const: "MM/DD/YYYY" },
|
|
81
|
+
{
|
|
82
|
+
title: "DateTime (DB) — YYYY-MM-DD HH:mm:ss",
|
|
83
|
+
const: "YYYY-MM-DD HH:mm:ss",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
title: "DateTime (DB ms) — YYYY-MM-DD HH:mm:ss.SSS",
|
|
87
|
+
const: "YYYY-MM-DD HH:mm:ss.SSS",
|
|
88
|
+
},
|
|
89
|
+
{ title: "Epoch (Milliseconds)", const: "x" },
|
|
90
|
+
{ title: "Epoch (Seconds)", const: "X" },
|
|
91
|
+
],
|
|
63
92
|
},
|
|
64
93
|
variant: {
|
|
65
94
|
oneOf: [
|
|
66
95
|
{ title: "Outlined", const: "outlined" },
|
|
67
96
|
{ title: "Filled", const: "filled" },
|
|
68
97
|
{ title: "Standard", const: "standard" },
|
|
69
|
-
]
|
|
98
|
+
],
|
|
70
99
|
},
|
|
71
100
|
orientation: {
|
|
72
101
|
oneOf: [
|
|
73
102
|
{ title: "Horizontal", const: "horizontal" },
|
|
74
103
|
{ title: "Vertical", const: "vertical" },
|
|
75
|
-
]
|
|
104
|
+
],
|
|
76
105
|
},
|
|
77
106
|
method: {
|
|
78
107
|
type: "string",
|
|
@@ -81,7 +110,7 @@ export const ComponentSchema: any = {
|
|
|
81
110
|
{ title: "Post", const: "post" },
|
|
82
111
|
{ title: "Delete", const: "delete" },
|
|
83
112
|
{ title: "Put", const: "put" },
|
|
84
|
-
]
|
|
113
|
+
],
|
|
85
114
|
},
|
|
86
115
|
maxPageSize: {
|
|
87
116
|
type: "number",
|
|
@@ -91,16 +120,16 @@ export const ComponentSchema: any = {
|
|
|
91
120
|
{ title: "30", const: 30 },
|
|
92
121
|
{ title: "50", const: 50 },
|
|
93
122
|
{ title: "100", const: 100 },
|
|
94
|
-
{ title: "500", const: 500 }
|
|
95
|
-
]
|
|
123
|
+
{ title: "500", const: 500 },
|
|
124
|
+
],
|
|
96
125
|
},
|
|
97
|
-
initialDensity:{
|
|
126
|
+
initialDensity: {
|
|
98
127
|
type: "string",
|
|
99
|
-
|
|
128
|
+
oneOf: [
|
|
100
129
|
{ title: "Compact", const: "compact" },
|
|
101
130
|
{ title: "Comfortable", const: "comfortable" },
|
|
102
|
-
{ title: "Spacious", const: "spacious" }
|
|
103
|
-
]
|
|
131
|
+
{ title: "Spacious", const: "spacious" },
|
|
132
|
+
],
|
|
104
133
|
},
|
|
105
134
|
layout: {
|
|
106
135
|
type: "array",
|
|
@@ -116,9 +145,7 @@ export const ComponentSchema: any = {
|
|
|
116
145
|
{ title: "Large", const: "lg" },
|
|
117
146
|
],
|
|
118
147
|
},
|
|
119
|
-
value: {
|
|
120
|
-
|
|
121
|
-
},
|
|
148
|
+
value: {},
|
|
122
149
|
},
|
|
123
150
|
},
|
|
124
151
|
},
|
|
@@ -136,9 +163,7 @@ export const ComponentSchema: any = {
|
|
|
136
163
|
{ title: "Large", const: "lg" },
|
|
137
164
|
],
|
|
138
165
|
},
|
|
139
|
-
value: {
|
|
140
|
-
|
|
141
|
-
},
|
|
166
|
+
value: {},
|
|
142
167
|
},
|
|
143
168
|
},
|
|
144
169
|
},
|
|
@@ -195,7 +220,6 @@ export const ComponentSchema: any = {
|
|
|
195
220
|
label: {
|
|
196
221
|
type: "string",
|
|
197
222
|
},
|
|
198
|
-
|
|
199
223
|
},
|
|
200
224
|
},
|
|
201
225
|
},
|
|
@@ -207,7 +231,6 @@ export const ComponentSchema: any = {
|
|
|
207
231
|
KeyName: {
|
|
208
232
|
type: "string",
|
|
209
233
|
},
|
|
210
|
-
|
|
211
234
|
},
|
|
212
235
|
},
|
|
213
236
|
},
|
|
@@ -220,8 +243,8 @@ export const ComponentSchema: any = {
|
|
|
220
243
|
type: "string",
|
|
221
244
|
},
|
|
222
245
|
value: {
|
|
223
|
-
type: "string"
|
|
224
|
-
}
|
|
246
|
+
type: "string",
|
|
247
|
+
},
|
|
225
248
|
},
|
|
226
249
|
},
|
|
227
250
|
},
|
|
@@ -238,19 +261,19 @@ export const ComponentSchema: any = {
|
|
|
238
261
|
},
|
|
239
262
|
filteringOptions: {
|
|
240
263
|
oneOf: [
|
|
241
|
-
{ const:
|
|
242
|
-
{ const:
|
|
243
|
-
{ const:
|
|
244
|
-
{ const:
|
|
245
|
-
{ const:
|
|
246
|
-
{ const:
|
|
247
|
-
{ const:
|
|
248
|
-
{ const:
|
|
249
|
-
{ const:
|
|
250
|
-
{ const:
|
|
251
|
-
{ const:
|
|
252
|
-
{ const:
|
|
253
|
-
]
|
|
264
|
+
{ const: "fuzzy", title: "Fuzzy" },
|
|
265
|
+
{ const: "contains", title: "Contain" },
|
|
266
|
+
{ const: "startsWith", title: "Starts with" },
|
|
267
|
+
{ const: "endsWith", title: "Ends with" },
|
|
268
|
+
{ const: "equals", title: "Equals" },
|
|
269
|
+
{ const: "notEquals", title: "Not Equals" },
|
|
270
|
+
{ const: "between", title: "Between" },
|
|
271
|
+
{ const: "betweenInclusive", title: "Between inclusive" },
|
|
272
|
+
{ const: "greaterThan", title: "Greater than" },
|
|
273
|
+
{ const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
|
|
274
|
+
{ const: "lessThan", title: "Less than" },
|
|
275
|
+
{ const: "lessThanOrEqualTo", title: "Less than or equal to" },
|
|
276
|
+
],
|
|
254
277
|
},
|
|
255
278
|
|
|
256
279
|
legendLabels: {
|
|
@@ -261,7 +284,6 @@ export const ComponentSchema: any = {
|
|
|
261
284
|
label: {
|
|
262
285
|
type: "string",
|
|
263
286
|
},
|
|
264
|
-
|
|
265
287
|
},
|
|
266
288
|
},
|
|
267
289
|
},
|
|
@@ -273,7 +295,6 @@ export const ComponentSchema: any = {
|
|
|
273
295
|
label: {
|
|
274
296
|
type: "string",
|
|
275
297
|
},
|
|
276
|
-
|
|
277
298
|
},
|
|
278
299
|
},
|
|
279
300
|
},
|
|
@@ -285,7 +306,6 @@ export const ComponentSchema: any = {
|
|
|
285
306
|
formatElement: {
|
|
286
307
|
type: "string",
|
|
287
308
|
},
|
|
288
|
-
|
|
289
309
|
},
|
|
290
310
|
},
|
|
291
311
|
},
|
|
@@ -296,7 +316,6 @@ export const ComponentSchema: any = {
|
|
|
296
316
|
properties: {
|
|
297
317
|
componentName: {
|
|
298
318
|
type: "string",
|
|
299
|
-
|
|
300
319
|
},
|
|
301
320
|
validationType: {
|
|
302
321
|
type: "string",
|
|
@@ -306,7 +325,7 @@ export const ComponentSchema: any = {
|
|
|
306
325
|
{ const: "maxLength", title: "Maximum Length" },
|
|
307
326
|
{ const: "pattern", title: "Pattern" },
|
|
308
327
|
{ const: "readOnly", title: "Read Only" },
|
|
309
|
-
]
|
|
328
|
+
],
|
|
310
329
|
},
|
|
311
330
|
validationValue: {
|
|
312
331
|
type: "string",
|
|
@@ -320,14 +339,14 @@ export const ComponentSchema: any = {
|
|
|
320
339
|
{ title: "Button", const: "Button" },
|
|
321
340
|
{ title: "IconButton", const: "IconButton" },
|
|
322
341
|
{ title: "HybridButton", const: "ButtonWithIconAndText" },
|
|
323
|
-
]
|
|
342
|
+
],
|
|
324
343
|
},
|
|
325
344
|
defaultStyle: {
|
|
326
345
|
type: "string",
|
|
327
346
|
oneOf: [
|
|
328
347
|
{ title: "Apply Default Style", const: "true" },
|
|
329
348
|
{ title: "No Style", const: "false" },
|
|
330
|
-
]
|
|
349
|
+
],
|
|
331
350
|
},
|
|
332
351
|
graphType: {
|
|
333
352
|
type: "string",
|
|
@@ -337,8 +356,11 @@ export const ComponentSchema: any = {
|
|
|
337
356
|
{ title: "Line Graph", const: "LineGraph" },
|
|
338
357
|
{ title: "Pie Graph", const: "PieGraph" },
|
|
339
358
|
{ title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
|
|
340
|
-
{
|
|
341
|
-
|
|
359
|
+
{
|
|
360
|
+
title: "Stack Horizontal Bar Graph",
|
|
361
|
+
const: "HorizontalStackBarGraph",
|
|
362
|
+
},
|
|
363
|
+
],
|
|
342
364
|
},
|
|
343
365
|
iconName: {
|
|
344
366
|
type: "string",
|
|
@@ -361,36 +383,36 @@ export const ComponentSchema: any = {
|
|
|
361
383
|
{ title: "Download Icon", const: "DownloadIcon" },
|
|
362
384
|
{ title: "Download All Icon", const: "DownloadAllIcon" },
|
|
363
385
|
{ title: "Exception Icon", const: "ExceptionIcon" },
|
|
364
|
-
{
|
|
365
|
-
{
|
|
366
|
-
{
|
|
367
|
-
{
|
|
368
|
-
{
|
|
369
|
-
{
|
|
370
|
-
{
|
|
371
|
-
{
|
|
372
|
-
{
|
|
373
|
-
{
|
|
374
|
-
{
|
|
375
|
-
{
|
|
376
|
-
{
|
|
377
|
-
{
|
|
378
|
-
{
|
|
379
|
-
{
|
|
380
|
-
{
|
|
381
|
-
{
|
|
382
|
-
{
|
|
383
|
-
{
|
|
384
|
-
{
|
|
385
|
-
{
|
|
386
|
-
{
|
|
387
|
-
{
|
|
388
|
-
{
|
|
389
|
-
{
|
|
390
|
-
{
|
|
391
|
-
{
|
|
392
|
-
{
|
|
393
|
-
]
|
|
386
|
+
{ title: "Alarm Icon", const: "AlarmIcon" },
|
|
387
|
+
{ title: "Click Icon", const: "ClickIcon" },
|
|
388
|
+
{ title: "Content Copy Icon", const: "ContentCopyIcon" },
|
|
389
|
+
{ title: "File Copy Icon", const: "FileCopyIcon" },
|
|
390
|
+
{ title: "Pause Icon", const: "PauseIcon" },
|
|
391
|
+
{ title: "Play Icon", const: "PlayIcon" },
|
|
392
|
+
{ title: "Close Icon", const: "CloseIcon" },
|
|
393
|
+
{ title: "Replay Icon", const: "ReplayIcon" },
|
|
394
|
+
{ title: "Delete Icon", const: "DeleteIcon" },
|
|
395
|
+
{ title: "Drafts Icon", const: "DraftsIcon" },
|
|
396
|
+
{ title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
|
|
397
|
+
{ title: "Paste Icon", const: "PasteIcon" },
|
|
398
|
+
{ title: "Prev Icon", const: "PrevIcon" },
|
|
399
|
+
{ title: "Verified Icon", const: "VerifiedIcon" },
|
|
400
|
+
{ title: "Table Add Icon", const: "TableAddIcon" },
|
|
401
|
+
{ title: "Table Download Icon", const: "TableDownloadIcon" },
|
|
402
|
+
{ title: "Audit Trail Icon", const: "AuditTrailIcon" },
|
|
403
|
+
{ title: "View Component", const: "View" },
|
|
404
|
+
{ title: "Table Edit Icon", const: "TableEditIcon" },
|
|
405
|
+
{ title: "Maximize Icon", const: "Maximize" },
|
|
406
|
+
{ title: "Minimize Icon", const: "Minimize" },
|
|
407
|
+
{ title: "Subtract Icon", const: "Subtract" },
|
|
408
|
+
{ title: "Bin Icon", const: "Bin" },
|
|
409
|
+
{ title: "Export Icon", const: "Export" },
|
|
410
|
+
{ title: "Table Paste Icon", const: "TablePaste" },
|
|
411
|
+
{ title: "Clone Icon", const: "CloneIcon" },
|
|
412
|
+
{ title: "Detail Icon", const: "DetailIcon" },
|
|
413
|
+
{ title: "Report View Icon", const: "ReportViewIcon" },
|
|
414
|
+
{ title: "Payout", const: "Payout" },
|
|
415
|
+
],
|
|
394
416
|
},
|
|
395
417
|
color: {
|
|
396
418
|
type: "string",
|
|
@@ -400,19 +422,19 @@ export const ComponentSchema: any = {
|
|
|
400
422
|
{ title: "Error", const: "error" },
|
|
401
423
|
{ title: "Success", const: "success" },
|
|
402
424
|
{ title: "Info", const: "info" },
|
|
403
|
-
]
|
|
425
|
+
],
|
|
404
426
|
},
|
|
405
427
|
pageName: {
|
|
406
|
-
path: []
|
|
428
|
+
path: [],
|
|
407
429
|
},
|
|
408
430
|
name: {
|
|
409
431
|
type: "string",
|
|
410
432
|
},
|
|
411
|
-
label: { type:
|
|
433
|
+
label: { type: "string" },
|
|
412
434
|
RemoveItemButton: {
|
|
413
435
|
disabled: true,
|
|
414
436
|
},
|
|
415
437
|
},
|
|
416
438
|
|
|
417
|
-
required: ["name",
|
|
439
|
+
required: ["name"],
|
|
418
440
|
};
|
|
@@ -162,6 +162,29 @@ export function refreshPage(type: string, store: any) {
|
|
|
162
162
|
},
|
|
163
163
|
},
|
|
164
164
|
}
|
|
165
|
+
UiSchema.elements[0].elements[0].elements[10] = {
|
|
166
|
+
type: "Control",
|
|
167
|
+
scope: "#/properties/dateFormat",
|
|
168
|
+
options: {
|
|
169
|
+
widget: "SelectInputField",
|
|
170
|
+
},
|
|
171
|
+
config: {
|
|
172
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
173
|
+
main: {
|
|
174
|
+
label: "Date Time Format",
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
}
|
|
178
|
+
UiSchema.elements[0].elements[0].elements[11] = {
|
|
179
|
+
type: "Control",
|
|
180
|
+
scope: "#/properties/emptyBox",
|
|
181
|
+
options: {
|
|
182
|
+
widget: "EmptyBox",
|
|
183
|
+
},
|
|
184
|
+
config: {
|
|
185
|
+
layout: { xs: 0, sm: 0, md: 0, lg: 6 },
|
|
186
|
+
},
|
|
187
|
+
}
|
|
165
188
|
}
|
|
166
189
|
|
|
167
190
|
if (sessionStorage.getItem("copiedConfig") ) {
|