impaktapps-ui-builder 1.0.131 → 1.0.132

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.131",
3
+ "version": "1.0.132",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -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,67 @@ 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: "Time (24h) — HH:mm:ss", const: "HH:mm:ss" },
90
+ { title: "Time (12h) — hh:mm:ss A", const: "hh:mm:ss A" },
91
+ { title: "Epoch (Milliseconds)", const: "x" },
92
+ { title: "Epoch (Seconds)", const: "X" },
93
+ ],
63
94
  },
64
95
  variant: {
65
96
  oneOf: [
66
97
  { title: "Outlined", const: "outlined" },
67
98
  { title: "Filled", const: "filled" },
68
99
  { title: "Standard", const: "standard" },
69
- ]
100
+ ],
70
101
  },
71
102
  orientation: {
72
103
  oneOf: [
73
104
  { title: "Horizontal", const: "horizontal" },
74
105
  { title: "Vertical", const: "vertical" },
75
- ]
106
+ ],
76
107
  },
77
108
  method: {
78
109
  type: "string",
@@ -81,7 +112,7 @@ export const ComponentSchema: any = {
81
112
  { title: "Post", const: "post" },
82
113
  { title: "Delete", const: "delete" },
83
114
  { title: "Put", const: "put" },
84
- ]
115
+ ],
85
116
  },
86
117
  maxPageSize: {
87
118
  type: "number",
@@ -91,16 +122,16 @@ export const ComponentSchema: any = {
91
122
  { title: "30", const: 30 },
92
123
  { title: "50", const: 50 },
93
124
  { title: "100", const: 100 },
94
- { title: "500", const: 500 }
95
- ]
125
+ { title: "500", const: 500 },
126
+ ],
96
127
  },
97
- initialDensity:{
128
+ initialDensity: {
98
129
  type: "string",
99
- oneOf: [
130
+ oneOf: [
100
131
  { title: "Compact", const: "compact" },
101
132
  { title: "Comfortable", const: "comfortable" },
102
- { title: "Spacious", const: "spacious" }
103
- ]
133
+ { title: "Spacious", const: "spacious" },
134
+ ],
104
135
  },
105
136
  layout: {
106
137
  type: "array",
@@ -116,9 +147,7 @@ export const ComponentSchema: any = {
116
147
  { title: "Large", const: "lg" },
117
148
  ],
118
149
  },
119
- value: {
120
-
121
- },
150
+ value: {},
122
151
  },
123
152
  },
124
153
  },
@@ -136,9 +165,7 @@ export const ComponentSchema: any = {
136
165
  { title: "Large", const: "lg" },
137
166
  ],
138
167
  },
139
- value: {
140
-
141
- },
168
+ value: {},
142
169
  },
143
170
  },
144
171
  },
@@ -195,7 +222,6 @@ export const ComponentSchema: any = {
195
222
  label: {
196
223
  type: "string",
197
224
  },
198
-
199
225
  },
200
226
  },
201
227
  },
@@ -207,7 +233,6 @@ export const ComponentSchema: any = {
207
233
  KeyName: {
208
234
  type: "string",
209
235
  },
210
-
211
236
  },
212
237
  },
213
238
  },
@@ -220,8 +245,8 @@ export const ComponentSchema: any = {
220
245
  type: "string",
221
246
  },
222
247
  value: {
223
- type: "string"
224
- }
248
+ type: "string",
249
+ },
225
250
  },
226
251
  },
227
252
  },
@@ -238,19 +263,19 @@ export const ComponentSchema: any = {
238
263
  },
239
264
  filteringOptions: {
240
265
  oneOf: [
241
- { const: 'fuzzy', title: 'Fuzzy' },
242
- { const: 'contains', title: 'Contain' },
243
- { const: 'startsWith', title: 'Starts with' },
244
- { const: 'endsWith', title: 'Ends with' },
245
- { const: 'equals', title: 'Equals' },
246
- { const: 'notEquals', title: 'Not Equals' },
247
- { const: 'between', title: 'Between' },
248
- { const: 'betweenInclusive', title: 'Between inclusive' },
249
- { const: 'greaterThan', title: 'Greater than' },
250
- { const: 'greaterThanOrEqualTo', title: 'Greater than or equal to' },
251
- { const: 'lessThan', title: 'Less than' },
252
- { const: 'lessThanOrEqualTo', title: 'Less than or equal to' },
253
- ]
266
+ { const: "fuzzy", title: "Fuzzy" },
267
+ { const: "contains", title: "Contain" },
268
+ { const: "startsWith", title: "Starts with" },
269
+ { const: "endsWith", title: "Ends with" },
270
+ { const: "equals", title: "Equals" },
271
+ { const: "notEquals", title: "Not Equals" },
272
+ { const: "between", title: "Between" },
273
+ { const: "betweenInclusive", title: "Between inclusive" },
274
+ { const: "greaterThan", title: "Greater than" },
275
+ { const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
276
+ { const: "lessThan", title: "Less than" },
277
+ { const: "lessThanOrEqualTo", title: "Less than or equal to" },
278
+ ],
254
279
  },
255
280
 
256
281
  legendLabels: {
@@ -261,7 +286,6 @@ export const ComponentSchema: any = {
261
286
  label: {
262
287
  type: "string",
263
288
  },
264
-
265
289
  },
266
290
  },
267
291
  },
@@ -273,7 +297,6 @@ export const ComponentSchema: any = {
273
297
  label: {
274
298
  type: "string",
275
299
  },
276
-
277
300
  },
278
301
  },
279
302
  },
@@ -285,7 +308,6 @@ export const ComponentSchema: any = {
285
308
  formatElement: {
286
309
  type: "string",
287
310
  },
288
-
289
311
  },
290
312
  },
291
313
  },
@@ -296,7 +318,6 @@ export const ComponentSchema: any = {
296
318
  properties: {
297
319
  componentName: {
298
320
  type: "string",
299
-
300
321
  },
301
322
  validationType: {
302
323
  type: "string",
@@ -306,7 +327,7 @@ export const ComponentSchema: any = {
306
327
  { const: "maxLength", title: "Maximum Length" },
307
328
  { const: "pattern", title: "Pattern" },
308
329
  { const: "readOnly", title: "Read Only" },
309
- ]
330
+ ],
310
331
  },
311
332
  validationValue: {
312
333
  type: "string",
@@ -320,14 +341,14 @@ export const ComponentSchema: any = {
320
341
  { title: "Button", const: "Button" },
321
342
  { title: "IconButton", const: "IconButton" },
322
343
  { title: "HybridButton", const: "ButtonWithIconAndText" },
323
- ]
344
+ ],
324
345
  },
325
346
  defaultStyle: {
326
347
  type: "string",
327
348
  oneOf: [
328
349
  { title: "Apply Default Style", const: "true" },
329
350
  { title: "No Style", const: "false" },
330
- ]
351
+ ],
331
352
  },
332
353
  graphType: {
333
354
  type: "string",
@@ -337,8 +358,11 @@ export const ComponentSchema: any = {
337
358
  { title: "Line Graph", const: "LineGraph" },
338
359
  { title: "Pie Graph", const: "PieGraph" },
339
360
  { title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
340
- { title: "Stack Horizontal Bar Graph", const: "HorizontalStackBarGraph" }
341
- ]
361
+ {
362
+ title: "Stack Horizontal Bar Graph",
363
+ const: "HorizontalStackBarGraph",
364
+ },
365
+ ],
342
366
  },
343
367
  iconName: {
344
368
  type: "string",
@@ -361,36 +385,36 @@ export const ComponentSchema: any = {
361
385
  { title: "Download Icon", const: "DownloadIcon" },
362
386
  { title: "Download All Icon", const: "DownloadAllIcon" },
363
387
  { title: "Exception Icon", const: "ExceptionIcon" },
364
- { "title": "Alarm Icon", "const": "AlarmIcon" },
365
- { "title": "Click Icon", "const": "ClickIcon" },
366
- { "title": "Content Copy Icon", "const": "ContentCopyIcon" },
367
- { "title": "File Copy Icon", "const": "FileCopyIcon" },
368
- { "title": "Pause Icon", "const": "PauseIcon" },
369
- { "title": "Play Icon", "const": "PlayIcon" },
370
- { "title": "Close Icon", "const": "CloseIcon" },
371
- { "title": "Replay Icon", "const": "ReplayIcon" },
372
- { "title": "Delete Icon", "const": "DeleteIcon" },
373
- { "title": "Drafts Icon", "const": "DraftsIcon" },
374
- { "title": "Perm Phone Msg Icon", "const": "PermPhoneMsgIcon" },
375
- { "title": "Paste Icon", "const": "PasteIcon" },
376
- { "title": "Prev Icon", "const": "PrevIcon" },
377
- { "title": "Verified Icon", "const": "VerifiedIcon" },
378
- { "title": "Table Add Icon", "const": "TableAddIcon" },
379
- { "title": "Table Download Icon", "const": "TableDownloadIcon" },
380
- { "title": "Audit Trail Icon", "const": "AuditTrailIcon" },
381
- { "title": "View Component", "const": "View" },
382
- { "title": "Table Edit Icon", "const": "TableEditIcon" },
383
- { "title": "Maximize Icon", "const": "Maximize" },
384
- { "title": "Minimize Icon", "const": "Minimize" },
385
- { "title": "Subtract Icon", "const": "Subtract" },
386
- { "title": "Bin Icon", "const": "Bin" },
387
- { "title": "Export Icon", "const": "Export" },
388
- { "title": "Table Paste Icon", "const": "TablePaste" },
389
- { "title": "Clone Icon", "const": "CloneIcon" },
390
- { "title": "Detail Icon", "const": "DetailIcon" },
391
- { "title": "Report View Icon", "const": "ReportViewIcon" },
392
- { "title": "Payout", "const": "Payout" },
393
- ]
388
+ { title: "Alarm Icon", const: "AlarmIcon" },
389
+ { title: "Click Icon", const: "ClickIcon" },
390
+ { title: "Content Copy Icon", const: "ContentCopyIcon" },
391
+ { title: "File Copy Icon", const: "FileCopyIcon" },
392
+ { title: "Pause Icon", const: "PauseIcon" },
393
+ { title: "Play Icon", const: "PlayIcon" },
394
+ { title: "Close Icon", const: "CloseIcon" },
395
+ { title: "Replay Icon", const: "ReplayIcon" },
396
+ { title: "Delete Icon", const: "DeleteIcon" },
397
+ { title: "Drafts Icon", const: "DraftsIcon" },
398
+ { title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
399
+ { title: "Paste Icon", const: "PasteIcon" },
400
+ { title: "Prev Icon", const: "PrevIcon" },
401
+ { title: "Verified Icon", const: "VerifiedIcon" },
402
+ { title: "Table Add Icon", const: "TableAddIcon" },
403
+ { title: "Table Download Icon", const: "TableDownloadIcon" },
404
+ { title: "Audit Trail Icon", const: "AuditTrailIcon" },
405
+ { title: "View Component", const: "View" },
406
+ { title: "Table Edit Icon", const: "TableEditIcon" },
407
+ { title: "Maximize Icon", const: "Maximize" },
408
+ { title: "Minimize Icon", const: "Minimize" },
409
+ { title: "Subtract Icon", const: "Subtract" },
410
+ { title: "Bin Icon", const: "Bin" },
411
+ { title: "Export Icon", const: "Export" },
412
+ { title: "Table Paste Icon", const: "TablePaste" },
413
+ { title: "Clone Icon", const: "CloneIcon" },
414
+ { title: "Detail Icon", const: "DetailIcon" },
415
+ { title: "Report View Icon", const: "ReportViewIcon" },
416
+ { title: "Payout", const: "Payout" },
417
+ ],
394
418
  },
395
419
  color: {
396
420
  type: "string",
@@ -400,19 +424,19 @@ export const ComponentSchema: any = {
400
424
  { title: "Error", const: "error" },
401
425
  { title: "Success", const: "success" },
402
426
  { title: "Info", const: "info" },
403
- ]
427
+ ],
404
428
  },
405
429
  pageName: {
406
- path: []
430
+ path: [],
407
431
  },
408
432
  name: {
409
433
  type: "string",
410
434
  },
411
- label: { type: 'string' },
435
+ label: { type: "string" },
412
436
  RemoveItemButton: {
413
437
  disabled: true,
414
438
  },
415
439
  },
416
440
 
417
- required: ["name",]
441
+ required: ["name"],
418
442
  };
@@ -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") ) {