impaktapps-ui-builder 1.0.130 → 1.0.131-alpha.10
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 +173 -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/buildTable.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +5 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +75 -19
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +108 -76
- package/src/impaktapps-ui-builder/builder/services/component.ts +23 -0
|
@@ -6277,6 +6277,37 @@ const ComponentSchema = {
|
|
|
6277
6277
|
{ title: "Center Column", const: "action" }
|
|
6278
6278
|
]
|
|
6279
6279
|
},
|
|
6280
|
+
dateFormat: {
|
|
6281
|
+
oneOf: [
|
|
6282
|
+
{
|
|
6283
|
+
title: "ISO DateTime (UTC) \u2014 YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
6284
|
+
const: "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
6285
|
+
},
|
|
6286
|
+
{
|
|
6287
|
+
title: "ISO DateTime \u2014 YYYY-MM-DDTHH:mm:ssZ",
|
|
6288
|
+
const: "YYYY-MM-DDTHH:mm:ssZ"
|
|
6289
|
+
},
|
|
6290
|
+
{
|
|
6291
|
+
title: "ISO DateTime (No TZ) \u2014 YYYY-MM-DDTHH:mm:ss",
|
|
6292
|
+
const: "YYYY-MM-DDTHH:mm:ss"
|
|
6293
|
+
},
|
|
6294
|
+
{ title: "ISO Date \u2014 YYYY-MM-DD", const: "YYYY-MM-DD" },
|
|
6295
|
+
{ title: "Date (DD-MM-YYYY) \u2014 DD-MM-YYYY", const: "DD-MM-YYYY" },
|
|
6296
|
+
{ title: "Date (MM/DD/YYYY) \u2014 MM/DD/YYYY", const: "MM/DD/YYYY" },
|
|
6297
|
+
{
|
|
6298
|
+
title: "DateTime (DB) \u2014 YYYY-MM-DD HH:mm:ss",
|
|
6299
|
+
const: "YYYY-MM-DD HH:mm:ss"
|
|
6300
|
+
},
|
|
6301
|
+
{
|
|
6302
|
+
title: "DateTime (DB ms) \u2014 YYYY-MM-DD HH:mm:ss.SSS",
|
|
6303
|
+
const: "YYYY-MM-DD HH:mm:ss.SSS"
|
|
6304
|
+
},
|
|
6305
|
+
{ title: "Time (24h) \u2014 HH:mm:ss", const: "HH:mm:ss" },
|
|
6306
|
+
{ title: "Time (12h) \u2014 hh:mm:ss A", const: "hh:mm:ss A" },
|
|
6307
|
+
{ title: "Epoch (Milliseconds)", const: "x" },
|
|
6308
|
+
{ title: "Epoch (Seconds)", const: "X" }
|
|
6309
|
+
]
|
|
6310
|
+
},
|
|
6280
6311
|
variant: {
|
|
6281
6312
|
oneOf: [
|
|
6282
6313
|
{ title: "Outlined", const: "outlined" },
|
|
@@ -6310,6 +6341,14 @@ const ComponentSchema = {
|
|
|
6310
6341
|
{ title: "500", const: 500 }
|
|
6311
6342
|
]
|
|
6312
6343
|
},
|
|
6344
|
+
initialDensity: {
|
|
6345
|
+
type: "string",
|
|
6346
|
+
oneOf: [
|
|
6347
|
+
{ title: "Compact", const: "compact" },
|
|
6348
|
+
{ title: "Comfortable", const: "comfortable" },
|
|
6349
|
+
{ title: "Spacious", const: "spacious" }
|
|
6350
|
+
]
|
|
6351
|
+
},
|
|
6313
6352
|
layout: {
|
|
6314
6353
|
type: "array",
|
|
6315
6354
|
items: {
|
|
@@ -6520,7 +6559,10 @@ const ComponentSchema = {
|
|
|
6520
6559
|
{ title: "Line Graph", const: "LineGraph" },
|
|
6521
6560
|
{ title: "Pie Graph", const: "PieGraph" },
|
|
6522
6561
|
{ title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
|
|
6523
|
-
{
|
|
6562
|
+
{
|
|
6563
|
+
title: "Stack Horizontal Bar Graph",
|
|
6564
|
+
const: "HorizontalStackBarGraph"
|
|
6565
|
+
}
|
|
6524
6566
|
]
|
|
6525
6567
|
},
|
|
6526
6568
|
iconName: {
|
|
@@ -6544,35 +6586,35 @@ const ComponentSchema = {
|
|
|
6544
6586
|
{ title: "Download Icon", const: "DownloadIcon" },
|
|
6545
6587
|
{ title: "Download All Icon", const: "DownloadAllIcon" },
|
|
6546
6588
|
{ title: "Exception Icon", const: "ExceptionIcon" },
|
|
6547
|
-
{
|
|
6548
|
-
{
|
|
6549
|
-
{
|
|
6550
|
-
{
|
|
6551
|
-
{
|
|
6552
|
-
{
|
|
6553
|
-
{
|
|
6554
|
-
{
|
|
6555
|
-
{
|
|
6556
|
-
{
|
|
6557
|
-
{
|
|
6558
|
-
{
|
|
6559
|
-
{
|
|
6560
|
-
{
|
|
6561
|
-
{
|
|
6562
|
-
{
|
|
6563
|
-
{
|
|
6564
|
-
{
|
|
6565
|
-
{
|
|
6566
|
-
{
|
|
6567
|
-
{
|
|
6568
|
-
{
|
|
6569
|
-
{
|
|
6570
|
-
{
|
|
6571
|
-
{
|
|
6572
|
-
{
|
|
6573
|
-
{
|
|
6574
|
-
{
|
|
6575
|
-
{
|
|
6589
|
+
{ title: "Alarm Icon", const: "AlarmIcon" },
|
|
6590
|
+
{ title: "Click Icon", const: "ClickIcon" },
|
|
6591
|
+
{ title: "Content Copy Icon", const: "ContentCopyIcon" },
|
|
6592
|
+
{ title: "File Copy Icon", const: "FileCopyIcon" },
|
|
6593
|
+
{ title: "Pause Icon", const: "PauseIcon" },
|
|
6594
|
+
{ title: "Play Icon", const: "PlayIcon" },
|
|
6595
|
+
{ title: "Close Icon", const: "CloseIcon" },
|
|
6596
|
+
{ title: "Replay Icon", const: "ReplayIcon" },
|
|
6597
|
+
{ title: "Delete Icon", const: "DeleteIcon" },
|
|
6598
|
+
{ title: "Drafts Icon", const: "DraftsIcon" },
|
|
6599
|
+
{ title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
|
|
6600
|
+
{ title: "Paste Icon", const: "PasteIcon" },
|
|
6601
|
+
{ title: "Prev Icon", const: "PrevIcon" },
|
|
6602
|
+
{ title: "Verified Icon", const: "VerifiedIcon" },
|
|
6603
|
+
{ title: "Table Add Icon", const: "TableAddIcon" },
|
|
6604
|
+
{ title: "Table Download Icon", const: "TableDownloadIcon" },
|
|
6605
|
+
{ title: "Audit Trail Icon", const: "AuditTrailIcon" },
|
|
6606
|
+
{ title: "View Component", const: "View" },
|
|
6607
|
+
{ title: "Table Edit Icon", const: "TableEditIcon" },
|
|
6608
|
+
{ title: "Maximize Icon", const: "Maximize" },
|
|
6609
|
+
{ title: "Minimize Icon", const: "Minimize" },
|
|
6610
|
+
{ title: "Subtract Icon", const: "Subtract" },
|
|
6611
|
+
{ title: "Bin Icon", const: "Bin" },
|
|
6612
|
+
{ title: "Export Icon", const: "Export" },
|
|
6613
|
+
{ title: "Table Paste Icon", const: "TablePaste" },
|
|
6614
|
+
{ title: "Clone Icon", const: "CloneIcon" },
|
|
6615
|
+
{ title: "Detail Icon", const: "DetailIcon" },
|
|
6616
|
+
{ title: "Report View Icon", const: "ReportViewIcon" },
|
|
6617
|
+
{ title: "Payout", const: "Payout" }
|
|
6576
6618
|
]
|
|
6577
6619
|
},
|
|
6578
6620
|
color: {
|
|
@@ -7270,6 +7312,76 @@ const CoreSection = {
|
|
|
7270
7312
|
}
|
|
7271
7313
|
}
|
|
7272
7314
|
},
|
|
7315
|
+
{
|
|
7316
|
+
type: "Control",
|
|
7317
|
+
scope: "#/properties/proc5",
|
|
7318
|
+
config: {
|
|
7319
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7320
|
+
},
|
|
7321
|
+
options: {
|
|
7322
|
+
widget: "EmptyBox"
|
|
7323
|
+
}
|
|
7324
|
+
},
|
|
7325
|
+
{
|
|
7326
|
+
type: "Control",
|
|
7327
|
+
scope: "#/properties/proc6",
|
|
7328
|
+
config: {
|
|
7329
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7330
|
+
},
|
|
7331
|
+
options: {
|
|
7332
|
+
widget: "EmptyBox"
|
|
7333
|
+
}
|
|
7334
|
+
},
|
|
7335
|
+
{
|
|
7336
|
+
type: "Control",
|
|
7337
|
+
scope: "#/properties/proc7",
|
|
7338
|
+
config: {
|
|
7339
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7340
|
+
},
|
|
7341
|
+
options: {
|
|
7342
|
+
widget: "EmptyBox"
|
|
7343
|
+
}
|
|
7344
|
+
},
|
|
7345
|
+
{
|
|
7346
|
+
type: "Control",
|
|
7347
|
+
scope: "#/properties/proc8",
|
|
7348
|
+
config: {
|
|
7349
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7350
|
+
},
|
|
7351
|
+
options: {
|
|
7352
|
+
widget: "EmptyBox"
|
|
7353
|
+
}
|
|
7354
|
+
},
|
|
7355
|
+
{
|
|
7356
|
+
type: "Control",
|
|
7357
|
+
scope: "#/properties/proc9",
|
|
7358
|
+
config: {
|
|
7359
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7360
|
+
},
|
|
7361
|
+
options: {
|
|
7362
|
+
widget: "EmptyBox"
|
|
7363
|
+
}
|
|
7364
|
+
},
|
|
7365
|
+
{
|
|
7366
|
+
type: "Control",
|
|
7367
|
+
scope: "#/properties/proc10",
|
|
7368
|
+
config: {
|
|
7369
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7370
|
+
},
|
|
7371
|
+
options: {
|
|
7372
|
+
widget: "EmptyBox"
|
|
7373
|
+
}
|
|
7374
|
+
},
|
|
7375
|
+
{
|
|
7376
|
+
type: "Control",
|
|
7377
|
+
scope: "#/properties/proc11",
|
|
7378
|
+
config: {
|
|
7379
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 3 }
|
|
7380
|
+
},
|
|
7381
|
+
options: {
|
|
7382
|
+
widget: "EmptyBox"
|
|
7383
|
+
}
|
|
7384
|
+
},
|
|
7273
7385
|
{
|
|
7274
7386
|
type: "Control",
|
|
7275
7387
|
scope: "#/properties/proc",
|
|
@@ -7932,6 +8044,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7932
8044
|
getInputField("selectKey", "Selection Key"),
|
|
7933
8045
|
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
7934
8046
|
getSelectField("maxPageSize", "Max Page Size"),
|
|
8047
|
+
getSelectField("initialDensity", "Initial Toggle Density"),
|
|
7935
8048
|
buildWrapper("Tree Table Properties", [
|
|
7936
8049
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
7937
8050
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
@@ -8610,6 +8723,29 @@ function refreshPage(type, store2) {
|
|
|
8610
8723
|
}
|
|
8611
8724
|
}
|
|
8612
8725
|
};
|
|
8726
|
+
UiSchema.elements[0].elements[0].elements[10] = {
|
|
8727
|
+
type: "Control",
|
|
8728
|
+
scope: "#/properties/dateFormat",
|
|
8729
|
+
options: {
|
|
8730
|
+
widget: "SelectInputField"
|
|
8731
|
+
},
|
|
8732
|
+
config: {
|
|
8733
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8734
|
+
main: {
|
|
8735
|
+
label: "Date Time Format"
|
|
8736
|
+
}
|
|
8737
|
+
}
|
|
8738
|
+
};
|
|
8739
|
+
UiSchema.elements[0].elements[0].elements[11] = {
|
|
8740
|
+
type: "Control",
|
|
8741
|
+
scope: "#/properties/emptyBox",
|
|
8742
|
+
options: {
|
|
8743
|
+
widget: "EmptyBox"
|
|
8744
|
+
},
|
|
8745
|
+
config: {
|
|
8746
|
+
layout: { xs: 0, sm: 0, md: 0, lg: 6 }
|
|
8747
|
+
}
|
|
8748
|
+
};
|
|
8613
8749
|
}
|
|
8614
8750
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8615
8751
|
this.ElementPathSetter(UiSchema);
|
|
@@ -11266,6 +11402,9 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11266
11402
|
if (config2.maxPageSize) {
|
|
11267
11403
|
table.config.main.maxPageSize = config2.maxPageSize;
|
|
11268
11404
|
}
|
|
11405
|
+
if (config2.initialDensity) {
|
|
11406
|
+
table.config.main.initialDensity = config2.initialDensity;
|
|
11407
|
+
}
|
|
11269
11408
|
return table;
|
|
11270
11409
|
};
|
|
11271
11410
|
const Box = {
|
|
@@ -12630,7 +12769,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12630
12769
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12631
12770
|
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12632
12771
|
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12633
|
-
columnKey: cellElem.columnKey
|
|
12772
|
+
columnKey: cellElem.columnKey,
|
|
12773
|
+
dateFormat: cellElem.dateFormat
|
|
12634
12774
|
};
|
|
12635
12775
|
if (cellElem.type) {
|
|
12636
12776
|
const tableElem = {
|
|
@@ -12662,7 +12802,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12662
12802
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
12663
12803
|
columnFilterModeOptions: cellElem.filteringOptions,
|
|
12664
12804
|
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
12665
|
-
columnKey: cellElem.columnKey
|
|
12805
|
+
columnKey: cellElem.columnKey,
|
|
12806
|
+
dateFormat: cellElem.dateFormat
|
|
12666
12807
|
};
|
|
12667
12808
|
if (cellElem.type) {
|
|
12668
12809
|
if (cellElem.elementType == "action") {
|