impaktapps-ui-builder 0.0.102 → 0.0.104
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 +11 -7
- 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/build/buildText.ts +21 -18
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +2 -2
|
@@ -7799,7 +7799,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7799
7799
|
case "Text":
|
|
7800
7800
|
uiSchema.elements = [
|
|
7801
7801
|
getInputField("placeholder", "Placeholder"),
|
|
7802
|
-
|
|
7802
|
+
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7803
7803
|
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7804
7804
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
7805
7805
|
];
|
|
@@ -9898,16 +9898,17 @@ function executeCustomHandler(params) {
|
|
|
9898
9898
|
}
|
|
9899
9899
|
}
|
|
9900
9900
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
9901
|
+
var _a, _b, _c;
|
|
9901
9902
|
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9902
9903
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9903
9904
|
store2.setSchema((pre) => {
|
|
9904
|
-
var
|
|
9905
|
+
var _a2;
|
|
9905
9906
|
return {
|
|
9906
9907
|
...pre,
|
|
9907
9908
|
properties: {
|
|
9908
9909
|
...pre.properties,
|
|
9909
9910
|
[componentName]: {
|
|
9910
|
-
...(
|
|
9911
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9911
9912
|
oneOf: handlerResponse.data
|
|
9912
9913
|
}
|
|
9913
9914
|
}
|
|
@@ -9917,13 +9918,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9917
9918
|
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9918
9919
|
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9919
9920
|
store2.setSchema((pre) => {
|
|
9920
|
-
var
|
|
9921
|
+
var _a2;
|
|
9921
9922
|
return {
|
|
9922
9923
|
...pre,
|
|
9923
9924
|
properties: {
|
|
9924
9925
|
...pre.properties,
|
|
9925
9926
|
[componentName]: {
|
|
9926
|
-
...(
|
|
9927
|
+
...(_a2 = pre.properties) == null ? void 0 : _a2[componentName],
|
|
9927
9928
|
type: "array",
|
|
9928
9929
|
items: {
|
|
9929
9930
|
oneOf: handlerResponse == null ? void 0 : handlerResponse.data
|
|
@@ -9945,8 +9946,8 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9945
9946
|
}
|
|
9946
9947
|
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
9947
9948
|
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9948
|
-
formDataHolder[componentName] = handlerResponse.data;
|
|
9949
|
-
formDataHolder[`${componentName}_RowCount`] = handlerResponse.data;
|
|
9949
|
+
formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
|
|
9950
|
+
formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
|
|
9950
9951
|
store2.setFormdata((pre) => {
|
|
9951
9952
|
return { ...pre, ...formDataHolder };
|
|
9952
9953
|
});
|
|
@@ -10879,6 +10880,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
10879
10880
|
if (config2.style) {
|
|
10880
10881
|
inputField.config.style = JSON.parse(config2.style);
|
|
10881
10882
|
}
|
|
10883
|
+
if (config2.multiline) {
|
|
10884
|
+
inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
|
|
10885
|
+
}
|
|
10882
10886
|
if (config2.InputFormatingAndMasking) {
|
|
10883
10887
|
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
10884
10888
|
}
|