impaktapps-ui-builder 0.0.81 → 0.0.83

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.81",
3
+ "version": "0.0.83",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -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
  }
@@ -325,7 +325,9 @@ export const buildPropertiesSection = function (type: String) {
325
325
  case "TextArea":
326
326
  uiSchema.elements = [
327
327
  getInputField("placeholder", "Placeholder"),
328
- emptyBox("TextAreaEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 }), emptyBox("TextAreaEmpty2", {xs: 0, sm: 0, md: 4, lg: 4 })]
328
+ getRadioInputField("enableCodeEditor", "Enable Code Editor",["YES", "NO"]),
329
+ getInputField("codeEditorLanguage", "Enter Code Language"),
330
+ ]
329
331
  break;
330
332
 
331
333
  case "SpeedoMeter":