impaktapps-ui-builder 1.0.50-alpha.23 → 1.0.50-alpha.25
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 +168 -25
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +12 -12
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +6 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +6 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildCheckbox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +16 -4
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/array.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +26 -0
- package/src/impaktapps-ui-builder/runtime/services/service.ts +105 -105
|
@@ -6550,7 +6550,33 @@ const ComponentSchema = {
|
|
|
6550
6550
|
{ title: "Error Icon", const: "ErrorIcon" },
|
|
6551
6551
|
{ title: "Refresh Icon", const: "RefreshIcon" },
|
|
6552
6552
|
{ title: "Download Icon", const: "DownloadIcon" },
|
|
6553
|
-
{ title: "Exception Icon", const: "ExceptionIcon" }
|
|
6553
|
+
{ title: "Exception Icon", const: "ExceptionIcon" },
|
|
6554
|
+
{ "title": "Alarm Icon", "const": "AlarmIcon" },
|
|
6555
|
+
{ "title": "Click Icon", "const": "ClickIcon" },
|
|
6556
|
+
{ "title": "Content Copy Icon", "const": "ContentCopyIcon" },
|
|
6557
|
+
{ "title": "File Copy Icon", "const": "FileCopyIcon" },
|
|
6558
|
+
{ "title": "Pause Icon", "const": "PauseIcon" },
|
|
6559
|
+
{ "title": "Play Icon", "const": "PlayIcon" },
|
|
6560
|
+
{ "title": "Close Icon", "const": "CloseIcon" },
|
|
6561
|
+
{ "title": "Replay Icon", "const": "ReplayIcon" },
|
|
6562
|
+
{ "title": "Delete Icon", "const": "DeleteIcon" },
|
|
6563
|
+
{ "title": "Drafts Icon", "const": "DraftsIcon" },
|
|
6564
|
+
{ "title": "Perm Phone Msg Icon", "const": "PermPhoneMsgIcon" },
|
|
6565
|
+
{ "title": "Paste Icon", "const": "PasteIcon" },
|
|
6566
|
+
{ "title": "Prev Icon", "const": "PrevIcon" },
|
|
6567
|
+
{ "title": "Verified Icon", "const": "VerifiedIcon" },
|
|
6568
|
+
{ "title": "Table Add Icon", "const": "TableAddIcon" },
|
|
6569
|
+
{ "title": "Table Download Icon", "const": "TableDownloadIcon" },
|
|
6570
|
+
{ "title": "Audit Trail Icon", "const": "AuditTrailIcon" },
|
|
6571
|
+
{ "title": "View Component", "const": "View" },
|
|
6572
|
+
{ "title": "Table Edit Icon", "const": "TableEditIcon" },
|
|
6573
|
+
{ "title": "Maximize Icon", "const": "Maximize" },
|
|
6574
|
+
{ "title": "Minimize Icon", "const": "Minimize" },
|
|
6575
|
+
{ "title": "Subtract Icon", "const": "Subtract" },
|
|
6576
|
+
{ "title": "Bin Icon", "const": "Bin" },
|
|
6577
|
+
{ "title": "Export Icon", "const": "Export" },
|
|
6578
|
+
{ "title": "Table Paste Icon", "const": "TablePaste" },
|
|
6579
|
+
{ "title": "Clone Icon", "const": "CloneIcon" }
|
|
6554
6580
|
]
|
|
6555
6581
|
},
|
|
6556
6582
|
color: {
|
|
@@ -8268,12 +8294,21 @@ var buildConfig = (FormData) => {
|
|
|
8268
8294
|
component = { ...formData, ...component };
|
|
8269
8295
|
return component;
|
|
8270
8296
|
};
|
|
8271
|
-
const createLayoutFormat = (
|
|
8272
|
-
if (_.isEmpty(
|
|
8273
|
-
|
|
8297
|
+
const createLayoutFormat = (layout, type) => {
|
|
8298
|
+
if (_.isEmpty(layout)) {
|
|
8299
|
+
const fullLayoutComponents = ["Array", "WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "Table", "TabSection", "TextArea", "TreeMap", "Thought"];
|
|
8300
|
+
if (fullLayoutComponents.includes(type)) {
|
|
8301
|
+
return { xs: 12, sm: 12, md: 12, lg: 12 };
|
|
8302
|
+
} else if (type === "Graph") {
|
|
8303
|
+
return { xs: 12, sm: 12, md: 12, lg: 6 };
|
|
8304
|
+
} else if (type === "Button") {
|
|
8305
|
+
return { xs: 4, sm: 2.5, md: 2, lg: 1.5 };
|
|
8306
|
+
} else {
|
|
8307
|
+
return { xs: 6, sm: 6, md: 4, lg: 3 };
|
|
8308
|
+
}
|
|
8274
8309
|
}
|
|
8275
8310
|
let data = {};
|
|
8276
|
-
|
|
8311
|
+
layout.map((e) => {
|
|
8277
8312
|
data[e.key || "xs"] = +e.value || 5.5;
|
|
8278
8313
|
});
|
|
8279
8314
|
return data;
|
|
@@ -10282,7 +10317,7 @@ var service = (funcParams) => {
|
|
|
10282
10317
|
};
|
|
10283
10318
|
return {
|
|
10284
10319
|
setPage: async function() {
|
|
10285
|
-
var _a, _b, _c;
|
|
10320
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
10286
10321
|
funcParams.store.setAdditionalErrors([]);
|
|
10287
10322
|
funcParams.store.setFormdata({});
|
|
10288
10323
|
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
@@ -10295,8 +10330,113 @@ var service = (funcParams) => {
|
|
|
10295
10330
|
detail: { pageName: config2.label, hasBackIcon: true }
|
|
10296
10331
|
});
|
|
10297
10332
|
window.dispatchEvent(event2);
|
|
10298
|
-
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
10299
|
-
|
|
10333
|
+
const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
10334
|
+
uiSchema.elements.push(
|
|
10335
|
+
{
|
|
10336
|
+
type: "HorizontalLayout",
|
|
10337
|
+
config: {
|
|
10338
|
+
main: {
|
|
10339
|
+
direction: "row"
|
|
10340
|
+
},
|
|
10341
|
+
style: {
|
|
10342
|
+
flexDirection: "row",
|
|
10343
|
+
position: "absolute",
|
|
10344
|
+
bottom: 0,
|
|
10345
|
+
height: "fit-content",
|
|
10346
|
+
overflow: "hidden",
|
|
10347
|
+
zIndex: 1e3,
|
|
10348
|
+
width: "inherit"
|
|
10349
|
+
}
|
|
10350
|
+
},
|
|
10351
|
+
elements: [
|
|
10352
|
+
{
|
|
10353
|
+
type: "Control",
|
|
10354
|
+
scope: "#/properties/FooterText",
|
|
10355
|
+
options: {
|
|
10356
|
+
widget: "Box"
|
|
10357
|
+
},
|
|
10358
|
+
config: {
|
|
10359
|
+
main: {
|
|
10360
|
+
heading: "Copywriter@ACT21.IO"
|
|
10361
|
+
},
|
|
10362
|
+
style: {
|
|
10363
|
+
color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
|
|
10364
|
+
fontSize: "11px",
|
|
10365
|
+
textAlign: "center",
|
|
10366
|
+
lineHeight: 2,
|
|
10367
|
+
width: "fit-content",
|
|
10368
|
+
left: "50%",
|
|
10369
|
+
position: "relative",
|
|
10370
|
+
margin: 0,
|
|
10371
|
+
flexGrow: 1,
|
|
10372
|
+
height: 0,
|
|
10373
|
+
transform: "translate(-50%, 0%)"
|
|
10374
|
+
}
|
|
10375
|
+
}
|
|
10376
|
+
},
|
|
10377
|
+
{
|
|
10378
|
+
type: "Control",
|
|
10379
|
+
scope: "#/properties/FooterBackIcon",
|
|
10380
|
+
options: {
|
|
10381
|
+
widget: "Box"
|
|
10382
|
+
},
|
|
10383
|
+
config: {
|
|
10384
|
+
main: {
|
|
10385
|
+
iconName: "PrevIcon",
|
|
10386
|
+
onClick: "backHandler",
|
|
10387
|
+
width: "fit-content"
|
|
10388
|
+
},
|
|
10389
|
+
style: {
|
|
10390
|
+
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
|
|
10391
|
+
width: 20,
|
|
10392
|
+
height: 0,
|
|
10393
|
+
top: 0,
|
|
10394
|
+
right: { xs: "12px", sm: "84px" },
|
|
10395
|
+
position: "absolute",
|
|
10396
|
+
fontSize: "12px",
|
|
10397
|
+
cursor: "pointer",
|
|
10398
|
+
":hover": {
|
|
10399
|
+
fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
|
|
10400
|
+
},
|
|
10401
|
+
marginRight: "20px"
|
|
10402
|
+
}
|
|
10403
|
+
}
|
|
10404
|
+
},
|
|
10405
|
+
{
|
|
10406
|
+
type: "Control",
|
|
10407
|
+
scope: "#/properties/FooterBackHandlerText",
|
|
10408
|
+
options: {
|
|
10409
|
+
widget: "Box"
|
|
10410
|
+
},
|
|
10411
|
+
config: {
|
|
10412
|
+
main: {
|
|
10413
|
+
heading: "Previous Page",
|
|
10414
|
+
onClick: "backHandler"
|
|
10415
|
+
},
|
|
10416
|
+
style: {
|
|
10417
|
+
display: { xs: "none", sm: "flex" },
|
|
10418
|
+
textAlign: "left",
|
|
10419
|
+
lineHeight: 1,
|
|
10420
|
+
height: 0,
|
|
10421
|
+
width: "fit-content",
|
|
10422
|
+
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
|
|
10423
|
+
fontSize: "12px",
|
|
10424
|
+
cursor: "pointer",
|
|
10425
|
+
marginLeft: "2px",
|
|
10426
|
+
top: 3,
|
|
10427
|
+
right: "12px",
|
|
10428
|
+
position: "absolute",
|
|
10429
|
+
":hover": {
|
|
10430
|
+
color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
|
|
10431
|
+
},
|
|
10432
|
+
marginRight: "4px"
|
|
10433
|
+
}
|
|
10434
|
+
}
|
|
10435
|
+
}
|
|
10436
|
+
]
|
|
10437
|
+
}
|
|
10438
|
+
);
|
|
10439
|
+
const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
|
|
10300
10440
|
eventGroups = extractEvents(config2);
|
|
10301
10441
|
executeEventsParameters = {
|
|
10302
10442
|
config: {},
|
|
@@ -10897,6 +11037,7 @@ const buildTabSection = (config2, componentScope2) => {
|
|
|
10897
11037
|
var WrapperSection = {
|
|
10898
11038
|
type: "WrapperLayout",
|
|
10899
11039
|
config: {
|
|
11040
|
+
layout: 12,
|
|
10900
11041
|
main: {
|
|
10901
11042
|
rowSpacing: 3,
|
|
10902
11043
|
divider: true,
|
|
@@ -10930,7 +11071,7 @@ var TextInputField = {
|
|
|
10930
11071
|
widget: "InputField"
|
|
10931
11072
|
},
|
|
10932
11073
|
config: {
|
|
10933
|
-
layout: { xs:
|
|
11074
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
10934
11075
|
main: {
|
|
10935
11076
|
label: ""
|
|
10936
11077
|
},
|
|
@@ -10966,7 +11107,7 @@ var SelectInputField = {
|
|
|
10966
11107
|
widget: "SelectInputField"
|
|
10967
11108
|
},
|
|
10968
11109
|
config: {
|
|
10969
|
-
layout: { xs:
|
|
11110
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
10970
11111
|
main: {
|
|
10971
11112
|
label: "",
|
|
10972
11113
|
type: "text",
|
|
@@ -10999,7 +11140,7 @@ var Button = {
|
|
|
10999
11140
|
widget: "Button"
|
|
11000
11141
|
},
|
|
11001
11142
|
config: {
|
|
11002
|
-
layout:
|
|
11143
|
+
layout: { xs: 4, sm: 2.5, md: 2, lg: 1.5 },
|
|
11003
11144
|
main: {
|
|
11004
11145
|
name: "Compare",
|
|
11005
11146
|
variant: "contained",
|
|
@@ -11055,6 +11196,7 @@ var Table = {
|
|
|
11055
11196
|
},
|
|
11056
11197
|
elements: [],
|
|
11057
11198
|
config: {
|
|
11199
|
+
layout: 12,
|
|
11058
11200
|
main: {
|
|
11059
11201
|
onMount: "onMount",
|
|
11060
11202
|
enableExpandAll: true,
|
|
@@ -11146,7 +11288,7 @@ const Box = {
|
|
|
11146
11288
|
widget: "Box"
|
|
11147
11289
|
},
|
|
11148
11290
|
config: {
|
|
11149
|
-
layout:
|
|
11291
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11150
11292
|
main: {},
|
|
11151
11293
|
style: {}
|
|
11152
11294
|
}
|
|
@@ -11176,7 +11318,7 @@ const uploadFile = {
|
|
|
11176
11318
|
"style": {
|
|
11177
11319
|
"backgroundColor": "none"
|
|
11178
11320
|
},
|
|
11179
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
11321
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 }
|
|
11180
11322
|
},
|
|
11181
11323
|
"options": {
|
|
11182
11324
|
"widget": "UploadFile"
|
|
@@ -11193,7 +11335,7 @@ const downloadFile = {
|
|
|
11193
11335
|
"style": {
|
|
11194
11336
|
"backgroundColor": "none"
|
|
11195
11337
|
},
|
|
11196
|
-
layout: { xs:
|
|
11338
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 }
|
|
11197
11339
|
},
|
|
11198
11340
|
"options": {
|
|
11199
11341
|
"widget": "DownloadFile"
|
|
@@ -11464,7 +11606,7 @@ var DateInputField = {
|
|
|
11464
11606
|
widget: "DateInputField"
|
|
11465
11607
|
},
|
|
11466
11608
|
config: {
|
|
11467
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
11609
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11468
11610
|
main: {
|
|
11469
11611
|
label: "",
|
|
11470
11612
|
type: "date"
|
|
@@ -11478,7 +11620,7 @@ const DateTime = {
|
|
|
11478
11620
|
widget: "DateTimeInputField"
|
|
11479
11621
|
},
|
|
11480
11622
|
config: {
|
|
11481
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
11623
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11482
11624
|
main: {
|
|
11483
11625
|
label: "DateTime",
|
|
11484
11626
|
type: "date"
|
|
@@ -11586,7 +11728,7 @@ var MultipleSelect = {
|
|
|
11586
11728
|
widget: "MultipleSelect"
|
|
11587
11729
|
},
|
|
11588
11730
|
config: {
|
|
11589
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
11731
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11590
11732
|
main: {
|
|
11591
11733
|
label: "",
|
|
11592
11734
|
type: "text",
|
|
@@ -11630,7 +11772,7 @@ const TextArea = {
|
|
|
11630
11772
|
widget: "TextArea"
|
|
11631
11773
|
},
|
|
11632
11774
|
config: {
|
|
11633
|
-
layout:
|
|
11775
|
+
layout: 12,
|
|
11634
11776
|
style: {
|
|
11635
11777
|
containerStyle: {
|
|
11636
11778
|
borderRadius: "20px"
|
|
@@ -11696,11 +11838,11 @@ const buildSlider = (config2, componentScope2) => {
|
|
|
11696
11838
|
const Checkbox = {
|
|
11697
11839
|
"type": "Control",
|
|
11698
11840
|
"scope": "#/properties/username1",
|
|
11699
|
-
"layout": 12,
|
|
11700
11841
|
"options": {
|
|
11701
11842
|
"widget": "CheckBox"
|
|
11702
11843
|
},
|
|
11703
11844
|
"config": {
|
|
11845
|
+
"layout": { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11704
11846
|
"main": {
|
|
11705
11847
|
"label": "Welcome to Hyperform"
|
|
11706
11848
|
}
|
|
@@ -11766,7 +11908,7 @@ const RadioUiSchema = {
|
|
|
11766
11908
|
widget: "RadioInputField"
|
|
11767
11909
|
},
|
|
11768
11910
|
config: {
|
|
11769
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
11911
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
11770
11912
|
main: {
|
|
11771
11913
|
label: "Enabled",
|
|
11772
11914
|
options: ["YES", "NO"],
|
|
@@ -11796,7 +11938,7 @@ var emptyBox = {
|
|
|
11796
11938
|
widget: "EmptyBox"
|
|
11797
11939
|
},
|
|
11798
11940
|
config: {
|
|
11799
|
-
layout: { xs:
|
|
11941
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11800
11942
|
main: {},
|
|
11801
11943
|
style: {}
|
|
11802
11944
|
}
|
|
@@ -11811,7 +11953,7 @@ const buildEmptyBox = (config2, componentScope2) => {
|
|
|
11811
11953
|
const ArrayUiSchema = {
|
|
11812
11954
|
type: "Control",
|
|
11813
11955
|
scope: "#/properties/adjustments",
|
|
11814
|
-
layout:
|
|
11956
|
+
layout: 12,
|
|
11815
11957
|
elements: [],
|
|
11816
11958
|
config: {
|
|
11817
11959
|
main: {}
|
|
@@ -11838,7 +11980,7 @@ const TextField = {
|
|
|
11838
11980
|
"widget": "InputField"
|
|
11839
11981
|
},
|
|
11840
11982
|
config: {
|
|
11841
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
11983
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
11842
11984
|
main: {
|
|
11843
11985
|
label: "Adhaar Card",
|
|
11844
11986
|
formatStrArray: ["9", "9", "9", "9", " ", "9", "9", "9", "9", " ", "X9", "X9", "X9", "X9"],
|
|
@@ -11867,7 +12009,7 @@ const PanField = {
|
|
|
11867
12009
|
"widget": "InputField"
|
|
11868
12010
|
},
|
|
11869
12011
|
config: {
|
|
11870
|
-
layout: { xs: 12, sm: 6, md: 4, lg:
|
|
12012
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
11871
12013
|
main: {
|
|
11872
12014
|
label: "Pan Card",
|
|
11873
12015
|
placeholder: "AAAAA0000A",
|
|
@@ -11895,7 +12037,7 @@ const FileInput = {
|
|
|
11895
12037
|
widget: "FileInputField"
|
|
11896
12038
|
},
|
|
11897
12039
|
config: {
|
|
11898
|
-
layout: { xs:
|
|
12040
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
11899
12041
|
main: {
|
|
11900
12042
|
required: false,
|
|
11901
12043
|
onUpload: "onFileUpload",
|
|
@@ -12085,6 +12227,7 @@ const TreeMap = {
|
|
|
12085
12227
|
"type": "Control",
|
|
12086
12228
|
"scope": "#/properties/TreeMap2",
|
|
12087
12229
|
"config": {
|
|
12230
|
+
layout: 12,
|
|
12088
12231
|
"main": {
|
|
12089
12232
|
"layout": "cartsian",
|
|
12090
12233
|
orientation: "vertical",
|