impaktapps-ui-builder 1.0.60 → 1.0.61-alpha.1
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 +38 -112
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +11 -11
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +20 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +16 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +3 -112
|
@@ -96,11 +96,25 @@ 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
|
+
},
|
|
99
113
|
{
|
|
100
114
|
type: "Control",
|
|
101
115
|
scope: "#/properties/EmptyBox",
|
|
102
116
|
config: {
|
|
103
|
-
layout: { xs: 0, sm:
|
|
117
|
+
layout: { xs: 0, sm: 6, md: 0, lg: 3 }
|
|
104
118
|
},
|
|
105
119
|
options: {
|
|
106
120
|
widget: "EmptyBox"
|
|
@@ -7933,6 +7947,18 @@ const buildPropertiesSection = function(type) {
|
|
|
7933
7947
|
emptyBox$1("MultipleSelectEmpty2")
|
|
7934
7948
|
];
|
|
7935
7949
|
break;
|
|
7950
|
+
case "Date":
|
|
7951
|
+
uiSchema.elements = [
|
|
7952
|
+
getSelectField("variant", "Variant"),
|
|
7953
|
+
emptyBox$1("DateEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
7954
|
+
];
|
|
7955
|
+
break;
|
|
7956
|
+
case "DateTime":
|
|
7957
|
+
uiSchema.elements = [
|
|
7958
|
+
getSelectField("variant", "Variant"),
|
|
7959
|
+
emptyBox$1("DateTimeEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
7960
|
+
];
|
|
7961
|
+
break;
|
|
7936
7962
|
case "Thought":
|
|
7937
7963
|
uiSchema.elements = [
|
|
7938
7964
|
getTextArea("thought", "Today's thought", false)
|
|
@@ -10331,127 +10357,21 @@ var service = (funcParams) => {
|
|
|
10331
10357
|
};
|
|
10332
10358
|
return {
|
|
10333
10359
|
setPage: async function() {
|
|
10334
|
-
var _a, _b, _c
|
|
10360
|
+
var _a, _b, _c;
|
|
10335
10361
|
funcParams.store.setAdditionalErrors([]);
|
|
10336
|
-
funcParams.store.setFormdata({});
|
|
10362
|
+
funcParams.store.setFormdata((funcParams == null ? void 0 : funcParams.initFormData()) || {});
|
|
10337
10363
|
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
10338
10364
|
funcParams.store.newData = {};
|
|
10339
10365
|
eventGroups = {};
|
|
10340
10366
|
pageData = await funcParams.pageDataProvider();
|
|
10341
10367
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10342
|
-
funcParams == null ? void 0 : funcParams.setExternaldata();
|
|
10343
10368
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10344
10369
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10345
|
-
detail: { pageName: config2.label, hasBackIcon: true }
|
|
10370
|
+
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10346
10371
|
});
|
|
10347
10372
|
window.dispatchEvent(event2);
|
|
10348
|
-
|
|
10349
|
-
|
|
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: {} };
|
|
10373
|
+
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
10374
|
+
const schema2 = (_c = pageData == null ? void 0 : pageData.schema) != null ? _c : { type: "object", properties: {} };
|
|
10455
10375
|
eventGroups = extractEvents(config2);
|
|
10456
10376
|
executeEventsParameters = {
|
|
10457
10377
|
config: {},
|
|
@@ -11665,6 +11585,9 @@ const buildDate = (config2, componentScope2) => {
|
|
|
11665
11585
|
if (config2.layout) {
|
|
11666
11586
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11667
11587
|
}
|
|
11588
|
+
if (config2.variant) {
|
|
11589
|
+
dateInputField.config.main.variant = config2.variant;
|
|
11590
|
+
}
|
|
11668
11591
|
return dateInputField;
|
|
11669
11592
|
};
|
|
11670
11593
|
const buildDateTime = (config2, componentScope2) => {
|
|
@@ -11675,6 +11598,9 @@ const buildDateTime = (config2, componentScope2) => {
|
|
|
11675
11598
|
if (config2.layout) {
|
|
11676
11599
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11677
11600
|
}
|
|
11601
|
+
if (config2.variant) {
|
|
11602
|
+
dateTimeInputField.config.main.variant = config2.variant;
|
|
11603
|
+
}
|
|
11678
11604
|
return dateTimeInputField;
|
|
11679
11605
|
};
|
|
11680
11606
|
var RankCard = {
|