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.
- package/dist/impaktapps-ui-builder.es.js +0 -67
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +9 -9
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildTable.d.ts +0 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +1 -52
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +1 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +0 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.d.ts +0 -15
- package/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.ts +0 -15
package/package.json
CHANGED
|
@@ -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 {
|
|
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"]),
|