impaktapps-ui-builder 0.0.85 → 0.0.87

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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.85",
3
+ "version": "0.0.87",
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);
@@ -68,53 +66,4 @@ export const buildTable = (config: any, componentScope: string) => {
68
66
  table.config.main.selectKey = config.selectKey
69
67
  }
70
68
  return table;
71
- }
72
-
73
- export const buildLazyLoadingTable = (config: any, componentScope: string) => {
74
- const table: any = _.cloneDeep(lazyLoadingTable);
75
- table.scope = componentScope;
76
- if (config.style) {
77
- table.config.style = JSON.parse(config.style)
78
- }
79
- if (config.SelectionAvailable) {
80
- table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false
81
- };
82
- if (config.ColumnResizingAvailable) {
83
- table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ? false : true
84
- };
85
- if (config.DragAvailable) {
86
- table.config.main.enableDrag = config.DragAvailable === "YES" ? true : false
87
- };
88
- if (config.selectKey) {
89
- table.config.main.selectKey = config.selectKey
90
- }
91
- if (config.downloadAllData) {
92
- table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false
93
- }
94
- if(config.disableFilters){
95
- table.config.main.disableFilters = config.disableFilters === "YES" ? true : false
96
- }
97
- if(config.disableSorting){
98
- table.config.main.disableSorting = config.disableSorting === "YES" ? true : false
99
- }
100
- if(config.disableEditColumn){
101
- table.config.main.disableEditColumn = config.disableEditColumn === "YES" ? true : false
102
- }
103
- if(config.disableFullScreenToggle){
104
- table.config.main.disableFullScreenToggle = config.disableFullScreenToggle === "YES" ? true : false
105
- }
106
- if(config.disableDensityToggle){
107
- table.config.main.disableDensityToggle = config.disableDensityToggle === "YES" ? true : false
108
- }
109
- if(config.disableDownloadFile){
110
- table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false
111
- }
112
- if(config.disablePagination){
113
- table.config.main.disablePagination = config.disablePagination === "YES" ? true : false
114
- }
115
- if (config.Table_Download_Keys_Name) {
116
- table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map(e => e.KeyName);
117
- }
118
- table.config.main.label = config.label;
119
- return table;
120
- }
69
+ };
@@ -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;
@@ -431,7 +431,6 @@ export const buildPropertiesSection = function (type: String) {
431
431
  ]
432
432
  break;
433
433
  case "Table":
434
- case "LazyLoadingTable":
435
434
  uiSchema.elements = [
436
435
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
437
436
  getRadioInputField("SelectionAvailable", "Row Selection", ["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: [
@@ -90,7 +90,6 @@ export function getRefreshElements(eventConfig: any, eventGropus: any) {
90
90
  } else {
91
91
  if (eventGropus?.onLoad) {
92
92
  result = Object.keys(eventGropus?.onLoad)
93
- result.push(result[0]);
94
93
  }
95
94
  }
96
95
  return result;
@@ -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
- };