impaktapps-ui-builder 0.0.76 → 0.0.79-alpha.1
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 +76 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +20 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +30 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +28 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +19 -0
|
@@ -84,6 +84,26 @@ export declare const getSelectField: (scope: string, label: string, options: {
|
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
|
+
export declare const getMultiSelectField: (scope: string, label: string) => {
|
|
88
|
+
type: string;
|
|
89
|
+
scope: string;
|
|
90
|
+
options: {
|
|
91
|
+
widget: string;
|
|
92
|
+
};
|
|
93
|
+
config: {
|
|
94
|
+
layout: {
|
|
95
|
+
xs: number;
|
|
96
|
+
sm: number;
|
|
97
|
+
md: number;
|
|
98
|
+
lg: number;
|
|
99
|
+
};
|
|
100
|
+
main: {
|
|
101
|
+
multiple: boolean;
|
|
102
|
+
label: string;
|
|
103
|
+
options: any[];
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
87
107
|
export declare const buildPropertiesSection: (type: String) => {
|
|
88
108
|
type: string;
|
|
89
109
|
elements: any[];
|
package/package.json
CHANGED
|
@@ -46,6 +46,18 @@ export const buildTable = (config: any, componentScope: string) => {
|
|
|
46
46
|
if(config.disableSorting){
|
|
47
47
|
table.config.main.disableSorting = config.disableSorting === "YES" ? true : false
|
|
48
48
|
}
|
|
49
|
+
if(config.disableEditColumn){
|
|
50
|
+
table.config.main.disableEditColumn = config.disableEditColumn === "YES" ? true : false
|
|
51
|
+
}
|
|
52
|
+
if(config.disableFullScreenToggle){
|
|
53
|
+
table.config.main.disableFullScreenToggle = config.disableFullScreenToggle === "YES" ? true : false
|
|
54
|
+
}
|
|
55
|
+
if(config.disableDensityToggle){
|
|
56
|
+
table.config.main.disableDensityToggle = config.disableDensityToggle === "YES" ? true : false
|
|
57
|
+
}
|
|
58
|
+
if(config.disableDownloadFile){
|
|
59
|
+
table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false
|
|
60
|
+
}
|
|
49
61
|
if (config.Table_Download_Keys_Name) {
|
|
50
62
|
table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map(e => e.KeyName);
|
|
51
63
|
}
|
|
@@ -76,6 +88,24 @@ export const buildLazyLoadingTable = (config: any, componentScope: string) => {
|
|
|
76
88
|
if (config.downloadAllData) {
|
|
77
89
|
table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false
|
|
78
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
|
+
}
|
|
79
109
|
if (config.Table_Download_Keys_Name) {
|
|
80
110
|
table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map(e => e.KeyName);
|
|
81
111
|
}
|
|
@@ -355,7 +355,8 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
355
355
|
type: cellElem.columnFormat,
|
|
356
356
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store) : undefined,
|
|
357
357
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store)) : [],
|
|
358
|
-
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : filterMap[cellElem.name] ?? false
|
|
358
|
+
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : filterMap[cellElem.name] ?? false,
|
|
359
|
+
columnFilterModeOptions: config.filteringOptions
|
|
359
360
|
}
|
|
360
361
|
} else {
|
|
361
362
|
return {
|
|
@@ -363,7 +364,8 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
363
364
|
type: cellElem.columnFormat,
|
|
364
365
|
header: cellElem.label || cellElem.name,
|
|
365
366
|
size: sizeMap[cellElem.name] || 180,
|
|
366
|
-
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : filterMap[cellElem.name] ?? false
|
|
367
|
+
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : filterMap[cellElem.name] ?? false,
|
|
368
|
+
columnFilterModeOptions: config.filteringOptions
|
|
367
369
|
}
|
|
368
370
|
}
|
|
369
371
|
|
|
@@ -229,6 +229,24 @@ export const getSelectField = (scope: string, label: string, options: { label: s
|
|
|
229
229
|
},
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
+
export const getMultiSelectField = (scope: string, label: string) => {
|
|
233
|
+
return {
|
|
234
|
+
type: "Control",
|
|
235
|
+
scope: `#/properties/${scope}`,
|
|
236
|
+
|
|
237
|
+
options: {
|
|
238
|
+
widget: "MultipleSelect",
|
|
239
|
+
},
|
|
240
|
+
config: {
|
|
241
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
242
|
+
main: {
|
|
243
|
+
multiple: true,
|
|
244
|
+
label: label,
|
|
245
|
+
options: [],
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
}
|
|
249
|
+
}
|
|
232
250
|
|
|
233
251
|
|
|
234
252
|
const GraphSection = {
|
|
@@ -422,7 +440,16 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
422
440
|
getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
|
|
423
441
|
getRadioInputField("disableFilters", "Disable Filter", ["YES", "NO"]),
|
|
424
442
|
getRadioInputField("disableSorting", "Disable Sorting", ["YES", "NO"]),
|
|
425
|
-
|
|
443
|
+
|
|
444
|
+
getRadioInputField("disableEditColumn", "Disable Edit Column", ["YES", "NO"]),
|
|
445
|
+
getRadioInputField("disableFullScreenToggle", "Disable Full Screen", ["YES", "NO"]),
|
|
446
|
+
getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
|
|
447
|
+
getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
|
|
448
|
+
getInputField("selectKey", "Selection Key"),
|
|
449
|
+
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
450
|
+
emptyBox("LazyLoadingTableEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
451
|
+
emptyBox("LazyLoadingTableEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
452
|
+
|
|
426
453
|
buildWrapper("Tree Table Properties", [
|
|
427
454
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
428
455
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
@@ -201,6 +201,25 @@ export const ComponentSchema: any = {
|
|
|
201
201
|
},
|
|
202
202
|
},
|
|
203
203
|
},
|
|
204
|
+
filteringOptions:{
|
|
205
|
+
type: "array",
|
|
206
|
+
items:{
|
|
207
|
+
oneOf: [
|
|
208
|
+
{ const: 'fuzzy', title: 'Fuzzy' },
|
|
209
|
+
{ const: 'contains', title: 'Contain' },
|
|
210
|
+
{ const: 'startsWith', title: 'Starts with' },
|
|
211
|
+
{ const: 'endsWith', title: 'Ends with' },
|
|
212
|
+
{ const: 'equals', title: 'Equals' },
|
|
213
|
+
{ const: 'notEquals', title: 'Not Equals' },
|
|
214
|
+
{ const: 'between', title: 'Between' },
|
|
215
|
+
{ const: 'betweenInclusive', title: 'Between inclusive' },
|
|
216
|
+
{ const: 'greaterThan', title: 'Greater than' },
|
|
217
|
+
{ const: 'greaterThanOrEqualTo', title: 'Greater than or equal to' },
|
|
218
|
+
{ const: 'lessThan', title: 'Less than' },
|
|
219
|
+
{ const: 'lessThanOrEqualTo', title: 'Less than or equal to' },
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
},
|
|
204
223
|
legendLabels: {
|
|
205
224
|
type: "array",
|
|
206
225
|
items: {
|