impaktapps-ui-builder 0.0.307 → 0.0.309
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/dist/impaktapps-ui-builder.es.js +26 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +3 -3
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +13 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +2 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +13 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Table from "./uischema/table";
|
|
2
2
|
import _ from "lodash";
|
|
3
|
-
import 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
|
-
|
|
248
|
+
getArrayControl("Table_Download_Keys_Name", "KeyName","Table Key Name"),
|
|
248
249
|
]
|
|
249
250
|
}
|
|
250
251
|
else if (type === "Radio") {
|
|
@@ -2,7 +2,7 @@ export const ComponentSchema: any = {
|
|
|
2
2
|
type: "object",
|
|
3
3
|
properties: {
|
|
4
4
|
type: {
|
|
5
|
-
type: "string",
|
|
5
|
+
// type: "string",
|
|
6
6
|
oneOf: [
|
|
7
7
|
{ title: "AadharcardText", const: "AadharcardText"},
|
|
8
8
|
{ title: "Array", const: "Array" },
|
|
@@ -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: {
|