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
package/package.json
CHANGED
|
@@ -45,6 +45,12 @@ export const buildTextArea = (config:any,componentScope:string) =>{
|
|
|
45
45
|
if (config.placeholder) {
|
|
46
46
|
textArea.config.main.placeholder = config.placeholder;
|
|
47
47
|
}
|
|
48
|
+
if(config.enableCodeEditor){
|
|
49
|
+
textArea.config.main.enableCodeEditor = config.enableCodeEditor === "YES" ? true : false
|
|
50
|
+
}
|
|
51
|
+
if(config.codeEditorLanguage){
|
|
52
|
+
textArea.config.main.codeEditorLanguage = config.codeEditorLanguage;
|
|
53
|
+
}
|
|
48
54
|
textArea.scope = componentScope;
|
|
49
55
|
return textArea;
|
|
50
56
|
}
|
|
@@ -206,7 +206,8 @@ export const getTextArea = (scope: string, heading: string, hideButton: boolean,
|
|
|
206
206
|
main: {
|
|
207
207
|
heading: heading,
|
|
208
208
|
minRows: 8,
|
|
209
|
-
hideButton: hideButton
|
|
209
|
+
hideButton: hideButton,
|
|
210
|
+
enableCodeEditor: true
|
|
210
211
|
},
|
|
211
212
|
},
|
|
212
213
|
}
|
|
@@ -324,7 +325,9 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
324
325
|
case "TextArea":
|
|
325
326
|
uiSchema.elements = [
|
|
326
327
|
getInputField("placeholder", "Placeholder"),
|
|
327
|
-
|
|
328
|
+
getRadioInputField("enableCodeEditor", "Enable Code Editor",["YES", "NO"]),
|
|
329
|
+
getInputField("codeEditorLanguage", "Enter Code Language"),
|
|
330
|
+
]
|
|
328
331
|
break;
|
|
329
332
|
|
|
330
333
|
case "SpeedoMeter":
|
|
@@ -146,7 +146,7 @@ function executeCustomHandler(params: handlersProps) {
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
function mergeFormdata(handlerResponse: any, componentName: string, eventConfig: any, store: any, service: any, formDataHolder: any) {
|
|
149
|
-
if (eventConfig.type === "Select" && handlerResponse?.data
|
|
149
|
+
if (eventConfig.type === "Select" && handlerResponse?.data) {
|
|
150
150
|
store.setSchema((pre) => {
|
|
151
151
|
return {
|
|
152
152
|
...pre, properties: {
|
|
@@ -158,7 +158,7 @@ function mergeFormdata(handlerResponse: any, componentName: string, eventConfig:
|
|
|
158
158
|
}
|
|
159
159
|
})
|
|
160
160
|
}
|
|
161
|
-
else if (eventConfig.type === "MultipleSelect" && handlerResponse?.data
|
|
161
|
+
else if (eventConfig.type === "MultipleSelect" && handlerResponse?.data) {
|
|
162
162
|
store.setSchema((pre) => {
|
|
163
163
|
return {
|
|
164
164
|
...pre, properties: {
|
|
@@ -93,7 +93,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
93
93
|
const event = new CustomEvent('pageNameChanged', {
|
|
94
94
|
detail: { pageName: config.label }
|
|
95
95
|
});
|
|
96
|
-
|
|
96
|
+
window.dispatchEvent(event)
|
|
97
97
|
const theme = funcParams?.store?.theme?.myTheme;
|
|
98
98
|
uiSchema.elements.push(
|
|
99
99
|
|