impaktapps-ui-builder 1.0.58 → 1.0.60-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 +42 -113
- 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/runtime/services/service.d.ts +2 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +16 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +7 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +16 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +7 -109
|
@@ -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"
|
|
@@ -6304,6 +6318,13 @@ const ComponentSchema = {
|
|
|
6304
6318
|
{ title: "Amount Column", const: "amount" }
|
|
6305
6319
|
]
|
|
6306
6320
|
},
|
|
6321
|
+
variant: {
|
|
6322
|
+
oneOf: [
|
|
6323
|
+
{ title: "Outlined", const: "outlined" },
|
|
6324
|
+
{ title: "Filled", const: "filled" },
|
|
6325
|
+
{ title: "Standard", const: "standard" }
|
|
6326
|
+
]
|
|
6327
|
+
},
|
|
6307
6328
|
orientation: {
|
|
6308
6329
|
oneOf: [
|
|
6309
6330
|
{ title: "Horizontal", const: "horizontal" },
|
|
@@ -7760,7 +7781,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7760
7781
|
uiSchema.elements = [
|
|
7761
7782
|
getInputField("placeholder", "Placeholder"),
|
|
7762
7783
|
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7763
|
-
|
|
7784
|
+
getSelectField("variant", "Variant"),
|
|
7785
|
+
emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 }),
|
|
7764
7786
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
|
|
7765
7787
|
getInputField("keyName", "Event Key Name")
|
|
7766
7788
|
];
|
|
@@ -7913,12 +7935,14 @@ const buildPropertiesSection = function(type) {
|
|
|
7913
7935
|
uiSchema.elements = [
|
|
7914
7936
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
7915
7937
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
7938
|
+
getSelectField("variant", "Variant"),
|
|
7916
7939
|
emptyBox$1("SelectEmpty")
|
|
7917
7940
|
];
|
|
7918
7941
|
break;
|
|
7919
7942
|
case "MultipleSelect":
|
|
7920
7943
|
uiSchema.elements = [
|
|
7921
7944
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
7945
|
+
getSelectField("variant", "Variant"),
|
|
7922
7946
|
emptyBox$1("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
|
|
7923
7947
|
emptyBox$1("MultipleSelectEmpty2")
|
|
7924
7948
|
];
|
|
@@ -10321,7 +10345,7 @@ var service = (funcParams) => {
|
|
|
10321
10345
|
};
|
|
10322
10346
|
return {
|
|
10323
10347
|
setPage: async function() {
|
|
10324
|
-
var _a, _b, _c
|
|
10348
|
+
var _a, _b, _c;
|
|
10325
10349
|
funcParams.store.setAdditionalErrors([]);
|
|
10326
10350
|
funcParams.store.setFormdata({});
|
|
10327
10351
|
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
@@ -10329,118 +10353,14 @@ var service = (funcParams) => {
|
|
|
10329
10353
|
eventGroups = {};
|
|
10330
10354
|
pageData = await funcParams.pageDataProvider();
|
|
10331
10355
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10356
|
+
funcParams == null ? void 0 : funcParams.setExternaldata();
|
|
10332
10357
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10333
10358
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10334
|
-
detail: { pageName: config2.label, hasBackIcon:
|
|
10359
|
+
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon }
|
|
10335
10360
|
});
|
|
10336
10361
|
window.dispatchEvent(event2);
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
{
|
|
10340
|
-
type: "HorizontalLayout",
|
|
10341
|
-
config: {
|
|
10342
|
-
main: {
|
|
10343
|
-
direction: "row"
|
|
10344
|
-
},
|
|
10345
|
-
style: {
|
|
10346
|
-
flexDirection: "row",
|
|
10347
|
-
position: "absolute",
|
|
10348
|
-
bottom: 0,
|
|
10349
|
-
height: "fit-content",
|
|
10350
|
-
overflow: "hidden",
|
|
10351
|
-
zIndex: 1e3,
|
|
10352
|
-
width: "inherit"
|
|
10353
|
-
}
|
|
10354
|
-
},
|
|
10355
|
-
elements: [
|
|
10356
|
-
{
|
|
10357
|
-
type: "Control",
|
|
10358
|
-
scope: "#/properties/FooterText",
|
|
10359
|
-
options: {
|
|
10360
|
-
widget: "Box"
|
|
10361
|
-
},
|
|
10362
|
-
config: {
|
|
10363
|
-
main: {
|
|
10364
|
-
heading: "Copywriter@ACT21.IO"
|
|
10365
|
-
},
|
|
10366
|
-
style: {
|
|
10367
|
-
color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
|
|
10368
|
-
fontSize: "11px",
|
|
10369
|
-
textAlign: "center",
|
|
10370
|
-
lineHeight: 2,
|
|
10371
|
-
width: "fit-content",
|
|
10372
|
-
left: "50%",
|
|
10373
|
-
position: "relative",
|
|
10374
|
-
margin: 0,
|
|
10375
|
-
flexGrow: 1,
|
|
10376
|
-
height: 0,
|
|
10377
|
-
transform: "translate(-50%, 0%)"
|
|
10378
|
-
}
|
|
10379
|
-
}
|
|
10380
|
-
},
|
|
10381
|
-
{
|
|
10382
|
-
type: "Control",
|
|
10383
|
-
scope: "#/properties/FooterBackIcon",
|
|
10384
|
-
options: {
|
|
10385
|
-
widget: "Box"
|
|
10386
|
-
},
|
|
10387
|
-
config: {
|
|
10388
|
-
main: {
|
|
10389
|
-
iconName: "PrevIcon",
|
|
10390
|
-
onClick: "backHandler",
|
|
10391
|
-
width: "fit-content"
|
|
10392
|
-
},
|
|
10393
|
-
style: {
|
|
10394
|
-
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
|
|
10395
|
-
width: 20,
|
|
10396
|
-
height: 0,
|
|
10397
|
-
top: 0,
|
|
10398
|
-
right: { xs: "12px", sm: "84px" },
|
|
10399
|
-
position: "absolute",
|
|
10400
|
-
fontSize: "12px",
|
|
10401
|
-
cursor: "pointer",
|
|
10402
|
-
":hover": {
|
|
10403
|
-
fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
|
|
10404
|
-
},
|
|
10405
|
-
marginRight: "20px"
|
|
10406
|
-
}
|
|
10407
|
-
}
|
|
10408
|
-
},
|
|
10409
|
-
{
|
|
10410
|
-
type: "Control",
|
|
10411
|
-
scope: "#/properties/FooterBackHandlerText",
|
|
10412
|
-
options: {
|
|
10413
|
-
widget: "Box"
|
|
10414
|
-
},
|
|
10415
|
-
config: {
|
|
10416
|
-
main: {
|
|
10417
|
-
heading: "Previous Page",
|
|
10418
|
-
onClick: "backHandler"
|
|
10419
|
-
},
|
|
10420
|
-
style: {
|
|
10421
|
-
display: { xs: "none", sm: "flex" },
|
|
10422
|
-
textAlign: "left",
|
|
10423
|
-
lineHeight: 1,
|
|
10424
|
-
height: 0,
|
|
10425
|
-
width: "fit-content",
|
|
10426
|
-
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
|
|
10427
|
-
fontSize: "12px",
|
|
10428
|
-
cursor: "pointer",
|
|
10429
|
-
marginLeft: "2px",
|
|
10430
|
-
top: 3,
|
|
10431
|
-
right: "12px",
|
|
10432
|
-
position: "absolute",
|
|
10433
|
-
":hover": {
|
|
10434
|
-
color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
|
|
10435
|
-
},
|
|
10436
|
-
marginRight: "4px"
|
|
10437
|
-
}
|
|
10438
|
-
}
|
|
10439
|
-
}
|
|
10440
|
-
]
|
|
10441
|
-
}
|
|
10442
|
-
);
|
|
10443
|
-
const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
|
|
10362
|
+
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
10363
|
+
const schema2 = (_c = pageData == null ? void 0 : pageData.schema) != null ? _c : { type: "object", properties: {} };
|
|
10444
10364
|
eventGroups = extractEvents(config2);
|
|
10445
10365
|
executeEventsParameters = {
|
|
10446
10366
|
config: {},
|
|
@@ -10500,7 +10420,7 @@ var service = (funcParams) => {
|
|
|
10500
10420
|
onKeyDown: function() {
|
|
10501
10421
|
this.callHandler("onKeyDown");
|
|
10502
10422
|
},
|
|
10503
|
-
onFileDelete: function() {
|
|
10423
|
+
onFileDelete: async function() {
|
|
10504
10424
|
this.callHandler("onFileDelete");
|
|
10505
10425
|
},
|
|
10506
10426
|
onMount: function() {
|
|
@@ -11106,6 +11026,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
11106
11026
|
if (config2.placeholder) {
|
|
11107
11027
|
inputField.config.main.placeholder = config2.placeholder;
|
|
11108
11028
|
}
|
|
11029
|
+
if (config2.variant) {
|
|
11030
|
+
inputField.config.main.variant = config2.variant;
|
|
11031
|
+
}
|
|
11109
11032
|
if (config2.layout) {
|
|
11110
11033
|
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11111
11034
|
}
|
|
@@ -11140,6 +11063,9 @@ const buildSelect = (config2, componentScope2) => {
|
|
|
11140
11063
|
if (config2.lazyLoading) {
|
|
11141
11064
|
selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11142
11065
|
}
|
|
11066
|
+
if (config2.variant) {
|
|
11067
|
+
selectInputField.config.main.variant = config2.variant;
|
|
11068
|
+
}
|
|
11143
11069
|
if (config2.layout) {
|
|
11144
11070
|
selectInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11145
11071
|
}
|
|
@@ -11746,7 +11672,7 @@ var MultipleSelect = {
|
|
|
11746
11672
|
label: "",
|
|
11747
11673
|
type: "text",
|
|
11748
11674
|
multiple: true,
|
|
11749
|
-
variant: "
|
|
11675
|
+
variant: "outlined",
|
|
11750
11676
|
options: []
|
|
11751
11677
|
}
|
|
11752
11678
|
}
|
|
@@ -11763,6 +11689,9 @@ const buildMultiSelect = (config2, componentScope2) => {
|
|
|
11763
11689
|
if (config2.value) {
|
|
11764
11690
|
multipleSelect.config.main.options = config2.value;
|
|
11765
11691
|
}
|
|
11692
|
+
if (config2.variant) {
|
|
11693
|
+
multipleSelect.config.main.variant = config2.variant;
|
|
11694
|
+
}
|
|
11766
11695
|
if (config2.lazyLoading) {
|
|
11767
11696
|
multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11768
11697
|
}
|