impaktapps-ui-builder 1.0.60-alpha.1 → 1.0.60
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 +110 -19
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +10 -10
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +1 -16
- package/src/impaktapps-ui-builder/runtime/services/service.ts +107 -1
|
@@ -96,25 +96,11 @@ const PageMasterUiSchema = (theme) => {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
-
{
|
|
100
|
-
type: "Control",
|
|
101
|
-
scope: "#/properties/hasBackIcon",
|
|
102
|
-
options: {
|
|
103
|
-
widget: "RadioInputField"
|
|
104
|
-
},
|
|
105
|
-
config: {
|
|
106
|
-
layout: { xs: 12, sm: 6, md: 4, lg: 3 },
|
|
107
|
-
main: {
|
|
108
|
-
label: "Back Icon",
|
|
109
|
-
options: [{ label: "Yes", const: "YES" }, { label: "No", const: "NO" }]
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
99
|
{
|
|
114
100
|
type: "Control",
|
|
115
101
|
scope: "#/properties/EmptyBox",
|
|
116
102
|
config: {
|
|
117
|
-
layout: { xs: 0, sm:
|
|
103
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 6 }
|
|
118
104
|
},
|
|
119
105
|
options: {
|
|
120
106
|
widget: "EmptyBox"
|
|
@@ -10345,7 +10331,7 @@ var service = (funcParams) => {
|
|
|
10345
10331
|
};
|
|
10346
10332
|
return {
|
|
10347
10333
|
setPage: async function() {
|
|
10348
|
-
var _a, _b, _c;
|
|
10334
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
10349
10335
|
funcParams.store.setAdditionalErrors([]);
|
|
10350
10336
|
funcParams.store.setFormdata({});
|
|
10351
10337
|
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
@@ -10356,11 +10342,116 @@ var service = (funcParams) => {
|
|
|
10356
10342
|
funcParams == null ? void 0 : funcParams.setExternaldata();
|
|
10357
10343
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10358
10344
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10359
|
-
detail: { pageName: config2.label, hasBackIcon:
|
|
10345
|
+
detail: { pageName: config2.label, hasBackIcon: true }
|
|
10360
10346
|
});
|
|
10361
10347
|
window.dispatchEvent(event2);
|
|
10362
|
-
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
10363
|
-
|
|
10348
|
+
const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
10349
|
+
uiSchema.elements.push(
|
|
10350
|
+
{
|
|
10351
|
+
type: "HorizontalLayout",
|
|
10352
|
+
config: {
|
|
10353
|
+
main: {
|
|
10354
|
+
direction: "row"
|
|
10355
|
+
},
|
|
10356
|
+
style: {
|
|
10357
|
+
flexDirection: "row",
|
|
10358
|
+
position: "absolute",
|
|
10359
|
+
bottom: 0,
|
|
10360
|
+
height: "fit-content",
|
|
10361
|
+
overflow: "hidden",
|
|
10362
|
+
zIndex: 1e3,
|
|
10363
|
+
width: "inherit"
|
|
10364
|
+
}
|
|
10365
|
+
},
|
|
10366
|
+
elements: [
|
|
10367
|
+
{
|
|
10368
|
+
type: "Control",
|
|
10369
|
+
scope: "#/properties/FooterText",
|
|
10370
|
+
options: {
|
|
10371
|
+
widget: "Box"
|
|
10372
|
+
},
|
|
10373
|
+
config: {
|
|
10374
|
+
main: {
|
|
10375
|
+
heading: "Copywriter@ACT21.IO"
|
|
10376
|
+
},
|
|
10377
|
+
style: {
|
|
10378
|
+
color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
|
|
10379
|
+
fontSize: "11px",
|
|
10380
|
+
textAlign: "center",
|
|
10381
|
+
lineHeight: 2,
|
|
10382
|
+
width: "fit-content",
|
|
10383
|
+
left: "50%",
|
|
10384
|
+
position: "relative",
|
|
10385
|
+
margin: 0,
|
|
10386
|
+
flexGrow: 1,
|
|
10387
|
+
height: 0,
|
|
10388
|
+
transform: "translate(-50%, 0%)"
|
|
10389
|
+
}
|
|
10390
|
+
}
|
|
10391
|
+
},
|
|
10392
|
+
{
|
|
10393
|
+
type: "Control",
|
|
10394
|
+
scope: "#/properties/FooterBackIcon",
|
|
10395
|
+
options: {
|
|
10396
|
+
widget: "Box"
|
|
10397
|
+
},
|
|
10398
|
+
config: {
|
|
10399
|
+
main: {
|
|
10400
|
+
iconName: "PrevIcon",
|
|
10401
|
+
onClick: "backHandler",
|
|
10402
|
+
width: "fit-content"
|
|
10403
|
+
},
|
|
10404
|
+
style: {
|
|
10405
|
+
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
|
|
10406
|
+
width: 20,
|
|
10407
|
+
height: 0,
|
|
10408
|
+
top: 0,
|
|
10409
|
+
right: { xs: "12px", sm: "84px" },
|
|
10410
|
+
position: "absolute",
|
|
10411
|
+
fontSize: "12px",
|
|
10412
|
+
cursor: "pointer",
|
|
10413
|
+
":hover": {
|
|
10414
|
+
fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
|
|
10415
|
+
},
|
|
10416
|
+
marginRight: "20px"
|
|
10417
|
+
}
|
|
10418
|
+
}
|
|
10419
|
+
},
|
|
10420
|
+
{
|
|
10421
|
+
type: "Control",
|
|
10422
|
+
scope: "#/properties/FooterBackHandlerText",
|
|
10423
|
+
options: {
|
|
10424
|
+
widget: "Box"
|
|
10425
|
+
},
|
|
10426
|
+
config: {
|
|
10427
|
+
main: {
|
|
10428
|
+
heading: "Previous Page",
|
|
10429
|
+
onClick: "backHandler"
|
|
10430
|
+
},
|
|
10431
|
+
style: {
|
|
10432
|
+
display: { xs: "none", sm: "flex" },
|
|
10433
|
+
textAlign: "left",
|
|
10434
|
+
lineHeight: 1,
|
|
10435
|
+
height: 0,
|
|
10436
|
+
width: "fit-content",
|
|
10437
|
+
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
|
|
10438
|
+
fontSize: "12px",
|
|
10439
|
+
cursor: "pointer",
|
|
10440
|
+
marginLeft: "2px",
|
|
10441
|
+
top: 3,
|
|
10442
|
+
right: "12px",
|
|
10443
|
+
position: "absolute",
|
|
10444
|
+
":hover": {
|
|
10445
|
+
color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
|
|
10446
|
+
},
|
|
10447
|
+
marginRight: "4px"
|
|
10448
|
+
}
|
|
10449
|
+
}
|
|
10450
|
+
}
|
|
10451
|
+
]
|
|
10452
|
+
}
|
|
10453
|
+
);
|
|
10454
|
+
const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
|
|
10364
10455
|
eventGroups = extractEvents(config2);
|
|
10365
10456
|
executeEventsParameters = {
|
|
10366
10457
|
config: {},
|