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.
- package/dist/impaktapps-ui-builder.es.js +17 -84
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +10 -10
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildTable.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +0 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +4 -49
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +0 -6
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +1 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +3 -8
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +11 -10
- 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);
|
|
@@ -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 {
|
|
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
|
-
|
|
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"]),
|
|
@@ -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
|
-
|
|
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) {
|