impaktapps-ui-builder 0.0.101-alpha.71 → 0.0.101-alpha.73
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 +26 -14
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +5 -5
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +21 -18
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/event.ts +4 -4
- package/src/impaktapps-ui-builder/runtime/services/events.ts +8 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +5 -4
|
@@ -7720,7 +7720,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7720
7720
|
case "Text":
|
|
7721
7721
|
uiSchema.elements = [
|
|
7722
7722
|
getInputField("placeholder", "Placeholder"),
|
|
7723
|
-
|
|
7723
|
+
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7724
7724
|
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7725
7725
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
7726
7726
|
];
|
|
@@ -8525,7 +8525,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8525
8525
|
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8526
8526
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8527
8527
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8528
|
-
let pathArray = [{ label: config2.name, path: `/PageMaster?id=${id}` }];
|
|
8528
|
+
let pathArray = [{ label: config2.name, path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
8529
8529
|
if (path) {
|
|
8530
8530
|
const pathArrayAll = path.split(".");
|
|
8531
8531
|
const arr = [];
|
|
@@ -8540,7 +8540,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8540
8540
|
const data = _.get(config2, e);
|
|
8541
8541
|
pathArray.push({
|
|
8542
8542
|
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
8543
|
-
path: `/Component?path=${e}
|
|
8543
|
+
path: `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
8544
8544
|
});
|
|
8545
8545
|
});
|
|
8546
8546
|
}
|
|
@@ -9724,7 +9724,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9724
9724
|
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9725
9725
|
const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
|
|
9726
9726
|
const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
|
|
9727
|
-
let pathArray = [{ label: config2.name, path: `/PageMaster?id=${id}` }];
|
|
9727
|
+
let pathArray = [{ label: config2.name, path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9728
9728
|
if (path) {
|
|
9729
9729
|
const pathArrayAll = path.split(".");
|
|
9730
9730
|
const arr = [];
|
|
@@ -9739,7 +9739,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9739
9739
|
const data = _.get(config2, e);
|
|
9740
9740
|
pathArray.push({
|
|
9741
9741
|
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9742
|
-
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}
|
|
9742
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9743
9743
|
});
|
|
9744
9744
|
});
|
|
9745
9745
|
}
|
|
@@ -9761,7 +9761,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9761
9761
|
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
9762
9762
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9763
9763
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9764
|
-
let pathArray = [{ label: config2.name, path: `/PageMaster?id=${id}` }];
|
|
9764
|
+
let pathArray = [{ label: config2.name, path: `/PageMaster${id ? `?id=${id}` : ""}` }];
|
|
9765
9765
|
if (path) {
|
|
9766
9766
|
const pathArrayAll = path.split(".");
|
|
9767
9767
|
const arr = [];
|
|
@@ -9776,7 +9776,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9776
9776
|
const data = _.get(config2, e);
|
|
9777
9777
|
pathArray.push({
|
|
9778
9778
|
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
9779
|
-
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}
|
|
9779
|
+
path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
|
|
9780
9780
|
});
|
|
9781
9781
|
});
|
|
9782
9782
|
}
|
|
@@ -10011,16 +10011,17 @@ function executeCustomHandler(params) {
|
|
|
10011
10011
|
}
|
|
10012
10012
|
}
|
|
10013
10013
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
10014
|
+
var _a, _b, _c;
|
|
10014
10015
|
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10015
10016
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10016
10017
|
store2.setSchema((pre) => {
|
|
10017
|
-
var
|
|
10018
|
+
var _a2;
|
|
10018
10019
|
return {
|
|
10019
10020
|
...pre,
|
|
10020
10021
|
properties: {
|
|
10021
10022
|
...pre.properties,
|
|
10022
10023
|
[componentName]: {
|
|
10023
|
-
...(
|
|
10024
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
10024
10025
|
oneOf: handlerResponse.data
|
|
10025
10026
|
}
|
|
10026
10027
|
}
|
|
@@ -10030,13 +10031,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
10030
10031
|
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10031
10032
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10032
10033
|
store2.setSchema((pre) => {
|
|
10033
|
-
var
|
|
10034
|
+
var _a2;
|
|
10034
10035
|
return {
|
|
10035
10036
|
...pre,
|
|
10036
10037
|
properties: {
|
|
10037
10038
|
...pre.properties,
|
|
10038
10039
|
[componentName]: {
|
|
10039
|
-
...(
|
|
10040
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
10040
10041
|
type: "array",
|
|
10041
10042
|
items: {
|
|
10042
10043
|
oneOf: handlerResponse == null ? void 0 : handlerResponse.data
|
|
@@ -10056,6 +10057,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
10056
10057
|
return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
|
|
10057
10058
|
});
|
|
10058
10059
|
}
|
|
10060
|
+
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10061
|
+
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10062
|
+
formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
|
|
10063
|
+
formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
|
|
10064
|
+
store2.setFormdata((pre) => {
|
|
10065
|
+
return { ...pre, ...formDataHolder };
|
|
10066
|
+
});
|
|
10067
|
+
}
|
|
10059
10068
|
} else {
|
|
10060
10069
|
if (handlerResponse) {
|
|
10061
10070
|
formDataHolder[componentName] = handlerResponse.data;
|
|
@@ -10361,7 +10370,7 @@ var service = (funcParams) => {
|
|
|
10361
10370
|
service: funcParams.service,
|
|
10362
10371
|
serviceHolder: this,
|
|
10363
10372
|
eventGroups,
|
|
10364
|
-
formDataHolder
|
|
10373
|
+
formDataHolder: {}
|
|
10365
10374
|
});
|
|
10366
10375
|
funcParams.store.setSchema(
|
|
10367
10376
|
(pre) => {
|
|
@@ -10376,11 +10385,11 @@ var service = (funcParams) => {
|
|
|
10376
10385
|
funcParams.store.setUiSchema(uiSchema);
|
|
10377
10386
|
},
|
|
10378
10387
|
onCellRenderer: (cellParams) => {
|
|
10379
|
-
var _a, _b, _c;
|
|
10388
|
+
var _a, _b, _c, _d;
|
|
10380
10389
|
if (eventGroups.onCellRenderer) {
|
|
10381
10390
|
let finalResponse = {};
|
|
10382
10391
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_c = (_b = funcParams == null ? void 0 : funcParams.dynamicData) == null ? void 0 : _b.path) == null ? void 0 : _c.split(".")[0]);
|
|
10383
|
-
for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
|
|
10392
|
+
for (const eventConfig of (_d = eventGroups == null ? void 0 : eventGroups.onCellRenderer) == null ? void 0 : _d[path]) {
|
|
10384
10393
|
executeEventsParameters.store.functionParameters = cellParams;
|
|
10385
10394
|
finalResponse = executeEvents({
|
|
10386
10395
|
...executeEventsParameters,
|
|
@@ -10984,6 +10993,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
10984
10993
|
if (config2.style) {
|
|
10985
10994
|
inputField.config.style = JSON.parse(config2.style);
|
|
10986
10995
|
}
|
|
10996
|
+
if (config2.multiline) {
|
|
10997
|
+
inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
|
|
10998
|
+
}
|
|
10987
10999
|
if (config2.InputFormatingAndMasking) {
|
|
10988
11000
|
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
10989
11001
|
}
|