impaktapps-ui-builder 0.0.83 → 0.0.86

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.
@@ -1,2 +1 @@
1
1
  export declare const buildTable: (config: any, componentScope: string) => any;
2
- export declare const buildLazyLoadingTable: (config: any, componentScope: string) => any;
@@ -22,7 +22,6 @@ export declare const APISection: {
22
22
  heading: string;
23
23
  minRows: number;
24
24
  hideButton: boolean;
25
- enableCodeEditor: boolean;
26
25
  };
27
26
  };
28
27
  } | {
@@ -59,7 +59,6 @@ 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;
63
62
  };
64
63
  };
65
64
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.83",
3
+ "version": "0.0.86",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -1,7 +1,5 @@
1
1
  import Table from "./uischema/table";
2
2
  import _ from "lodash";
3
- import buildUiSchema from "./buildUiSchema";
4
- import lazyLoadingTable from "./uischema/lazyLoadingTable";
5
3
 
6
4
  export const buildTable = (config: any, componentScope: string) => {
7
5
  const table: any = _.cloneDeep(Table);
@@ -58,6 +56,9 @@ export const buildTable = (config: any, componentScope: string) => {
58
56
  if(config.disableDownloadFile){
59
57
  table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false
60
58
  }
59
+ if(config.disablePagination){
60
+ table.config.main.disablePagination = config.disablePagination === "YES" ? true : false
61
+ }
61
62
  if (config.Table_Download_Keys_Name) {
62
63
  table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map(e => e.KeyName);
63
64
  }
@@ -65,50 +66,4 @@ export const buildTable = (config: any, componentScope: string) => {
65
66
  table.config.main.selectKey = config.selectKey
66
67
  }
67
68
  return table;
68
- }
69
-
70
- export const buildLazyLoadingTable = (config: any, componentScope: string) => {
71
- const table: any = _.cloneDeep(lazyLoadingTable);
72
- table.scope = componentScope;
73
- if (config.style) {
74
- table.config.style = JSON.parse(config.style)
75
- }
76
- if (config.SelectionAvailable) {
77
- table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false
78
- };
79
- if (config.ColumnResizingAvailable) {
80
- table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ? false : true
81
- };
82
- if (config.DragAvailable) {
83
- table.config.main.enableDrag = config.DragAvailable === "YES" ? true : false
84
- };
85
- if (config.selectKey) {
86
- table.config.main.selectKey = config.selectKey
87
- }
88
- if (config.downloadAllData) {
89
- table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false
90
- }
91
- if(config.disableFilters){
92
- table.config.main.disableFilters = config.disableFilters === "YES" ? true : false
93
- }
94
- if(config.disableSorting){
95
- table.config.main.disableSorting = config.disableSorting === "YES" ? true : false
96
- }
97
- if(config.disableEditColumn){
98
- table.config.main.disableEditColumn = config.disableEditColumn === "YES" ? true : false
99
- }
100
- if(config.disableFullScreenToggle){
101
- table.config.main.disableFullScreenToggle = config.disableFullScreenToggle === "YES" ? true : false
102
- }
103
- if(config.disableDensityToggle){
104
- table.config.main.disableDensityToggle = config.disableDensityToggle === "YES" ? true : false
105
- }
106
- if(config.disableDownloadFile){
107
- table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false
108
- }
109
- if (config.Table_Download_Keys_Name) {
110
- table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map(e => e.KeyName);
111
- }
112
- table.config.main.label = config.label;
113
- return table;
114
- }
69
+ };
@@ -45,12 +45,6 @@ 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
- }
54
48
  textArea.scope = componentScope;
55
49
  return textArea;
56
50
  }
@@ -14,7 +14,7 @@ import { buildWrapperSection } from "./buildWrapperSection";
14
14
  import { buildTextField } from "./buildText";
15
15
  import { buildSelect } from "./buildSelect";
16
16
  import { buildButton } from "./buildButton";
17
- import { buildLazyLoadingTable, buildTable } from "./buildTable";
17
+ import { buildTable } from "./buildTable";
18
18
  import { buildLabel } from "./buildLabel";
19
19
  import { buildUploadFile } from "./buildUplaodFile";
20
20
  import { buildDownloadFile } from "./buildDownloadFile";
@@ -230,9 +230,6 @@ const buildUiSchema = (config: any, store?: any) => {
230
230
  case "Array":
231
231
  elements = buildArray(config, componentScope);
232
232
  break;
233
- case "LazyLoadingTable":
234
- elements = buildLazyLoadingTable(config, componentScope)
235
- break;
236
233
  case "Box":
237
234
  elements = buildLabel(config, componentScope);
238
235
  break;
@@ -206,8 +206,7 @@ export const getTextArea = (scope: string, heading: string, hideButton: boolean,
206
206
  main: {
207
207
  heading: heading,
208
208
  minRows: 8,
209
- hideButton: hideButton,
210
- enableCodeEditor: true
209
+ hideButton: hideButton
211
210
  },
212
211
  },
213
212
  }
@@ -325,9 +324,7 @@ export const buildPropertiesSection = function (type: String) {
325
324
  case "TextArea":
326
325
  uiSchema.elements = [
327
326
  getInputField("placeholder", "Placeholder"),
328
- getRadioInputField("enableCodeEditor", "Enable Code Editor",["YES", "NO"]),
329
- getInputField("codeEditorLanguage", "Enter Code Language"),
330
- ]
327
+ emptyBox("TextAreaEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 }), emptyBox("TextAreaEmpty2", {xs: 0, sm: 0, md: 4, lg: 4 })]
331
328
  break;
332
329
 
333
330
  case "SpeedoMeter":
@@ -434,7 +431,6 @@ export const buildPropertiesSection = function (type: String) {
434
431
  ]
435
432
  break;
436
433
  case "Table":
437
- case "LazyLoadingTable":
438
434
  uiSchema.elements = [
439
435
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
440
436
  getRadioInputField("SelectionAvailable", "Row Selection", ["YES", "NO"]),
@@ -448,11 +444,10 @@ export const buildPropertiesSection = function (type: String) {
448
444
  getRadioInputField("disableFullScreenToggle", "Disable Full Screen", ["YES", "NO"]),
449
445
  getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
450
446
  getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
447
+ getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
451
448
  getInputField("selectKey", "Selection Key"),
452
449
  getMultiSelectField("filteringOptions", "Filtering Options"),
453
450
  emptyBox("LazyLoadingTableEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }),
454
- emptyBox("LazyLoadingTableEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }),
455
-
456
451
  buildWrapper("Tree Table Properties", [
457
452
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
458
453
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
@@ -69,7 +69,7 @@ export const ComponentSchema: any = {
69
69
  type: "array",
70
70
  items: {
71
71
  type: "object",
72
- properties: {
72
+ properties: {
73
73
  key: {
74
74
  type: "string",
75
75
  oneOf: [
@@ -205,6 +205,16 @@ export default (funcParams: funcParamsProps) => {
205
205
  );
206
206
  const schema = pageData?.schema ?? { type: "object", properties: {} };
207
207
  eventGroups = {}
208
+ funcParams.store.setSchema(
209
+ (pre: any) => {
210
+ return {
211
+ ...schema, properties:
212
+ { ...schema.properties, ...pre.properties, }
213
+ }
214
+ }
215
+ )
216
+ uiSchema.elements.push(notifyUiSchema);
217
+ funcParams.store.setUiSchema(uiSchema);
208
218
  eventGroups = extractEvents(config);
209
219
  executeEventsParameters = {
210
220
  config: {}, componentName: "",
@@ -217,16 +227,7 @@ export default (funcParams: funcParamsProps) => {
217
227
  store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
218
228
  serviceHolder: this, eventGroups, formDataHolder
219
229
  })
220
- funcParams.store.setSchema(
221
- (pre: any) => {
222
- return {
223
- ...schema, properties:
224
- { ...schema.properties, ...pre.properties, }
225
- }
226
- }
227
- )
228
- uiSchema.elements.push(notifyUiSchema);
229
- funcParams.store.setUiSchema(uiSchema);
230
+
230
231
  },
231
232
  onCellRenderer: (cellParams) => {
232
233
  if (eventGroups.onCellRenderer) {
@@ -1,15 +0,0 @@
1
- declare const _default: {
2
- type: string;
3
- scope: string;
4
- options: {
5
- widget: string;
6
- };
7
- elements: any[];
8
- config: {
9
- main: {
10
- onMount: string;
11
- columns: {};
12
- };
13
- };
14
- };
15
- export default _default;
@@ -1,15 +0,0 @@
1
- export default {
2
- type: "Control",
3
- scope: "#/properties/LazyLoadingTable",
4
- options: {
5
- widget: "LazyLoadingTable",
6
- },
7
- elements:[],
8
- config: {
9
- main: {
10
- onMount:"onMount",
11
- columns: {
12
- },
13
- },
14
- },
15
- };