impaktapps-ui-builder 0.0.1051 → 0.0.1054
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 +33 -39
- 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/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +13 -15
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +19 -21
- package/src/impaktapps-ui-builder/builder/services/component.ts +6 -6
package/package.json
CHANGED
|
@@ -351,27 +351,25 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
351
351
|
})
|
|
352
352
|
}
|
|
353
353
|
elements.elements = config.elements.map((cellElem, elemInd) => {
|
|
354
|
+
const commonProperties = {
|
|
355
|
+
accessorKey: cellElem.name,
|
|
356
|
+
type: cellElem.columnFormat,
|
|
357
|
+
header: cellElem.label || cellElem.name,
|
|
358
|
+
size: sizeMap[cellElem.name] || 180,
|
|
359
|
+
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : filterMap[cellElem.name] ?? false,
|
|
360
|
+
columnFilterModeOptions: config.filteringOptions,
|
|
361
|
+
enableSorting: config.enableSorting === "No" ? false : true,
|
|
362
|
+
columnKey: config.columnKey
|
|
363
|
+
}
|
|
354
364
|
if (cellElem.type) {
|
|
355
365
|
return {
|
|
356
|
-
accessorKey: cellElem.name,
|
|
357
|
-
header: cellElem.label || cellElem.name,
|
|
358
|
-
size: sizeMap[cellElem.name] || 180,
|
|
359
|
-
type: cellElem.columnFormat,
|
|
360
366
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store) : undefined,
|
|
361
367
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store)) : [],
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
enableSorting: config.enableSorting === "No" ? false : true
|
|
368
|
+
...commonProperties
|
|
369
|
+
|
|
365
370
|
}
|
|
366
371
|
} else {
|
|
367
|
-
return
|
|
368
|
-
accessorKey: cellElem.name,
|
|
369
|
-
type: cellElem.columnFormat,
|
|
370
|
-
header: cellElem.label || cellElem.name,
|
|
371
|
-
size: sizeMap[cellElem.name] || 180,
|
|
372
|
-
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : filterMap[cellElem.name] ?? false,
|
|
373
|
-
columnFilterModeOptions: config.filteringOptions
|
|
374
|
-
}
|
|
372
|
+
return commonProperties
|
|
375
373
|
}
|
|
376
374
|
|
|
377
375
|
})
|
|
@@ -70,7 +70,7 @@ export const ComponentSchema: any = {
|
|
|
70
70
|
type: "array",
|
|
71
71
|
items: {
|
|
72
72
|
type: "object",
|
|
73
|
-
properties: {
|
|
73
|
+
properties: {
|
|
74
74
|
key: {
|
|
75
75
|
type: "string",
|
|
76
76
|
oneOf: [
|
|
@@ -191,7 +191,7 @@ export const ComponentSchema: any = {
|
|
|
191
191
|
},
|
|
192
192
|
},
|
|
193
193
|
},
|
|
194
|
-
enableColumnFilter:{
|
|
194
|
+
enableColumnFilter: {
|
|
195
195
|
type: "array",
|
|
196
196
|
items: {
|
|
197
197
|
type: "object",
|
|
@@ -202,25 +202,23 @@ export const ComponentSchema: any = {
|
|
|
202
202
|
},
|
|
203
203
|
},
|
|
204
204
|
},
|
|
205
|
-
filteringOptions:{
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
{ const: 'lessThanOrEqualTo', title: 'Less than or equal to' },
|
|
221
|
-
]
|
|
222
|
-
},
|
|
205
|
+
filteringOptions: {
|
|
206
|
+
oneOf: [
|
|
207
|
+
{ const: 'fuzzy', title: 'Fuzzy' },
|
|
208
|
+
{ const: 'contains', title: 'Contain' },
|
|
209
|
+
{ const: 'startsWith', title: 'Starts with' },
|
|
210
|
+
{ const: 'endsWith', title: 'Ends with' },
|
|
211
|
+
{ const: 'equals', title: 'Equals' },
|
|
212
|
+
{ const: 'notEquals', title: 'Not Equals' },
|
|
213
|
+
{ const: 'between', title: 'Between' },
|
|
214
|
+
{ const: 'betweenInclusive', title: 'Between inclusive' },
|
|
215
|
+
{ const: 'greaterThan', title: 'Greater than' },
|
|
216
|
+
{ const: 'greaterThanOrEqualTo', title: 'Greater than or equal to' },
|
|
217
|
+
{ const: 'lessThan', title: 'Less than' },
|
|
218
|
+
{ const: 'lessThanOrEqualTo', title: 'Less than or equal to' },
|
|
219
|
+
]
|
|
223
220
|
},
|
|
221
|
+
|
|
224
222
|
legendLabels: {
|
|
225
223
|
type: "array",
|
|
226
224
|
items: {
|
|
@@ -343,7 +341,7 @@ export const ComponentSchema: any = {
|
|
|
343
341
|
type: "string",
|
|
344
342
|
},
|
|
345
343
|
label: { type: 'string' },
|
|
346
|
-
RemoveItemButton:{
|
|
344
|
+
RemoveItemButton: {
|
|
347
345
|
disabled: true,
|
|
348
346
|
},
|
|
349
347
|
},
|
|
@@ -75,7 +75,7 @@ export function refreshPage(type: string, store: any) {
|
|
|
75
75
|
widget: "SelectInputField",
|
|
76
76
|
},
|
|
77
77
|
config: {
|
|
78
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
78
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
79
79
|
main: {
|
|
80
80
|
label: "Column Format",
|
|
81
81
|
|
|
@@ -90,7 +90,7 @@ export function refreshPage(type: string, store: any) {
|
|
|
90
90
|
widget: "RadioInputField",
|
|
91
91
|
},
|
|
92
92
|
config: {
|
|
93
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
93
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
94
94
|
main: {
|
|
95
95
|
label: "Enable Filter",
|
|
96
96
|
options: ["Yes", "No"],
|
|
@@ -105,7 +105,7 @@ export function refreshPage(type: string, store: any) {
|
|
|
105
105
|
widget: "SelectInputField",
|
|
106
106
|
},
|
|
107
107
|
config: {
|
|
108
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
108
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
109
109
|
main: {
|
|
110
110
|
label: "Filter Mode",
|
|
111
111
|
multiple: true
|
|
@@ -113,7 +113,7 @@ export function refreshPage(type: string, store: any) {
|
|
|
113
113
|
},
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
-
UiSchema.elements[
|
|
116
|
+
UiSchema.elements[1].elements[0].elements[6] =
|
|
117
117
|
{
|
|
118
118
|
type: "Control",
|
|
119
119
|
scope: "#/properties/enableSorting",
|
|
@@ -121,14 +121,14 @@ export function refreshPage(type: string, store: any) {
|
|
|
121
121
|
widget: "RadioInputField",
|
|
122
122
|
},
|
|
123
123
|
config: {
|
|
124
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
124
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
125
125
|
main: {
|
|
126
126
|
label: "Enable Sorting",
|
|
127
127
|
options: ["Yes", "No"],
|
|
128
128
|
},
|
|
129
129
|
},
|
|
130
130
|
},
|
|
131
|
-
UiSchema.elements[
|
|
131
|
+
UiSchema.elements[1].elements[0].elements[7] =
|
|
132
132
|
{
|
|
133
133
|
type: "Control",
|
|
134
134
|
scope: "#/properties/columnKey",
|