impaktapps-ui-builder 0.0.91 → 0.0.92
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 +12 -5
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +5 -2
- package/src/impaktapps-ui-builder/runtime/services/events.ts +2 -2
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -1
|
@@ -7350,7 +7350,8 @@ const getTextArea = (scope, heading, hideButton, layout) => {
|
|
|
7350
7350
|
main: {
|
|
7351
7351
|
heading,
|
|
7352
7352
|
minRows: 8,
|
|
7353
|
-
hideButton
|
|
7353
|
+
hideButton,
|
|
7354
|
+
enableCodeEditor: true
|
|
7354
7355
|
}
|
|
7355
7356
|
}
|
|
7356
7357
|
};
|
|
@@ -7456,8 +7457,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7456
7457
|
case "TextArea":
|
|
7457
7458
|
uiSchema.elements = [
|
|
7458
7459
|
getInputField("placeholder", "Placeholder"),
|
|
7459
|
-
|
|
7460
|
-
|
|
7460
|
+
getRadioInputField("enableCodeEditor", "Enable Code Editor", ["YES", "NO"]),
|
|
7461
|
+
getInputField("codeEditorLanguage", "Enter Code Language")
|
|
7461
7462
|
];
|
|
7462
7463
|
break;
|
|
7463
7464
|
case "SpeedoMeter":
|
|
@@ -9268,7 +9269,7 @@ function executeCustomHandler(params) {
|
|
|
9268
9269
|
}
|
|
9269
9270
|
}
|
|
9270
9271
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
9271
|
-
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)
|
|
9272
|
+
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9272
9273
|
store2.setSchema((pre) => {
|
|
9273
9274
|
var _a;
|
|
9274
9275
|
return {
|
|
@@ -9282,7 +9283,7 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9282
9283
|
}
|
|
9283
9284
|
};
|
|
9284
9285
|
});
|
|
9285
|
-
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)
|
|
9286
|
+
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9286
9287
|
store2.setSchema((pre) => {
|
|
9287
9288
|
var _a;
|
|
9288
9289
|
return {
|
|
@@ -11228,6 +11229,12 @@ const buildTextArea = (config, componentScope) => {
|
|
|
11228
11229
|
if (config.placeholder) {
|
|
11229
11230
|
textArea.config.main.placeholder = config.placeholder;
|
|
11230
11231
|
}
|
|
11232
|
+
if (config.enableCodeEditor) {
|
|
11233
|
+
textArea.config.main.enableCodeEditor = config.enableCodeEditor === "YES" ? true : false;
|
|
11234
|
+
}
|
|
11235
|
+
if (config.codeEditorLanguage) {
|
|
11236
|
+
textArea.config.main.codeEditorLanguage = config.codeEditorLanguage;
|
|
11237
|
+
}
|
|
11231
11238
|
textArea.scope = componentScope;
|
|
11232
11239
|
return textArea;
|
|
11233
11240
|
};
|