impaktapps-ui-builder 0.0.307 → 0.0.308

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.
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  config: {
9
9
  main: {
10
10
  allRowData: any[];
11
+ downloadAllData: boolean;
11
12
  columns: {
12
13
  dataColumns: any[];
13
14
  actionColumns: any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.307",
3
+ "version": "0.0.308",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -1,6 +1,6 @@
1
1
  import Table from "./uischema/table";
2
2
  import _ from "lodash";
3
- import buildUiSchema from "./buildUiSchema";
3
+ import buildUiSchema from "./buildUiSchema";
4
4
  import lazyLoadingTable from "./uischema/lazyLoadingTable";
5
5
 
6
6
  export const buildTable = (config: any, componentScope: string) => {
@@ -21,6 +21,12 @@ export const buildTable = (config: any, componentScope: string) => {
21
21
  if (config.DragAvailable) {
22
22
  table.config.main.enableDrag = config.DragAvailable === "YES" ? true : false
23
23
  };
24
+ if (config.downloadAllData) {
25
+ table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false
26
+ }
27
+ if (config.Table_Download_Keys_Name) {
28
+ table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map(e => e.KeyName);
29
+ }
24
30
  if (config.selectKey) {
25
31
  table.config.main.selectKey = config.selectKey
26
32
  }
@@ -45,6 +51,12 @@ export const buildLazyLoadingTable = (config: any, componentScope: string) => {
45
51
  if (config.selectKey) {
46
52
  table.config.main.selectKey = config.selectKey
47
53
  }
54
+ if (config.downloadAllData) {
55
+ table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false
56
+ }
57
+ if (config.Table_Download_Keys_Name) {
58
+ table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map(e => e.KeyName);
59
+ }
48
60
  table.config.main.label = config.label;
49
61
  return table;
50
62
  }
@@ -243,8 +243,9 @@ export const buildPropertiesSection = function (type: String) {
243
243
  getRadioInputField("SelectionAvailable", "Selection Available", ["YES", "NO"]),
244
244
  getRadioInputField("ColumnResizingAvailable", "ColumnResizing Available", ["YES", "NO"]),
245
245
  getRadioInputField("DragAvailable", "Drag Available", ["YES", "NO"]),
246
+ getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
246
247
  getInputField("selectKey", "Selection Key"),
247
- EmptyBox
248
+ getArrayControl("Table_Download_Keys_Name", "KeyName","Table Key Name"),
248
249
  ]
249
250
  }
250
251
  else if (type === "Radio") {
@@ -9,6 +9,7 @@ export default {
9
9
  main: {
10
10
  //@ts-ignore
11
11
  allRowData:[],
12
+ downloadAllData:false,
12
13
  columns: {
13
14
  //@ts-ignore
14
15
  dataColumns: [],
@@ -121,6 +121,18 @@ export const ComponentSchema: any = {
121
121
  },
122
122
  },
123
123
  },
124
+ Table_Download_Keys_Name: {
125
+ type: "array",
126
+ items: {
127
+ type: "object",
128
+ properties: {
129
+ KeyName: {
130
+ type: "string",
131
+ },
132
+
133
+ },
134
+ },
135
+ },
124
136
  legendLabels: {
125
137
  type: "array",
126
138
  items: {