impaktapps-ui-builder 0.0.96 → 0.0.99

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.
@@ -22,6 +22,7 @@ export declare const APISection: {
22
22
  heading: string;
23
23
  minRows: number;
24
24
  hideButton: boolean;
25
+ enableCodeEditor: boolean;
25
26
  };
26
27
  };
27
28
  } | {
@@ -59,6 +59,7 @@ export declare const getTextArea: (scope: string, heading: string, hideButton: b
59
59
  heading: string;
60
60
  minRows: number;
61
61
  hideButton: boolean;
62
+ enableCodeEditor: boolean;
62
63
  };
63
64
  };
64
65
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.96",
3
+ "version": "0.0.99",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -38,8 +38,11 @@ export const buildTable = (config: any, componentScope: string) => {
38
38
  if (config.downloadAllData) {
39
39
  table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false
40
40
  }
41
- if(config.disableFilters){
42
- table.config.main.disableFilters = config.disableFilters === "YES" ? true : false
41
+ if(config.disableGlobalSearch){
42
+ table.config.main.disableGlobalSearch = config.disableGlobalSearch === "YES" ? true : false
43
+ }
44
+ if(config.disableColumnFilter){
45
+ table.config.main.disableColumnFilter = config.disableColumnFilter === "YES" ? true : false
43
46
  }
44
47
  if(config.disableSorting){
45
48
  table.config.main.disableSorting = config.disableSorting === "YES" ? true : false
@@ -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
- 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
+ ]
328
331
  break;
329
332
 
330
333
  case "SpeedoMeter":
@@ -439,7 +442,8 @@ export const buildPropertiesSection = function (type: String) {
439
442
  getRadioInputField("ColumnResizingAvailable", "ColumnResizing ", ["YES", "NO"]),
440
443
  getRadioInputField("DragAvailable", "Row Dragging", ["YES", "NO"]),
441
444
  getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
442
- getRadioInputField("disableFilters", "Disable Filter", ["YES", "NO"]),
445
+ getRadioInputField("disableGlobalSearch", "Disable Global Search", ["YES", "NO"]),
446
+ getRadioInputField("disableColumnFilter", "Disable Column Filter", ["YES", "NO"]),
443
447
  getRadioInputField("disableSorting", "Disable Sorting", ["YES", "NO"]),
444
448
 
445
449
  getRadioInputField("disableEditColumn", "Disable Edit Column", ["YES", "NO"]),
@@ -449,7 +453,6 @@ export const buildPropertiesSection = function (type: String) {
449
453
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
450
454
  getInputField("selectKey", "Selection Key"),
451
455
  getMultiSelectField("filteringOptions", "Filtering Options"),
452
- emptyBox("LazyLoadingTableEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }),
453
456
  buildWrapper("Tree Table Properties", [
454
457
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
455
458
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
@@ -15,7 +15,7 @@ export default {
15
15
  styleDefault:false,
16
16
  icon:"",
17
17
  onClick: "onClick",
18
- size: "medium",
18
+ size: "small",
19
19
  },
20
20
  style: {
21
21
  },
@@ -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 && !_.isEmpty(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 && !_.isEmpty(handlerResponse?.data)) {
162
162
  store.setSchema((pre) => {
163
163
  return {
164
164
  ...pre, properties: {