impaktapps-ui-builder 1.0.50-alpha.20 → 1.0.50-alpha.21
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 +31 -1
- 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 +2 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +17 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +16 -1
package/package.json
CHANGED
|
@@ -357,7 +357,8 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
357
357
|
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
358
358
|
columnFilterModeOptions: cellElem.filteringOptions,
|
|
359
359
|
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
360
|
-
columnKey: cellElem.columnKey
|
|
360
|
+
columnKey: cellElem.columnKey,
|
|
361
|
+
filterVariant: cellElem.filterVariant,
|
|
361
362
|
}
|
|
362
363
|
if (cellElem.type) {
|
|
363
364
|
if (cellElem.elementType == "action") {
|
|
@@ -58,6 +58,23 @@ export const ComponentSchema: any = {
|
|
|
58
58
|
{ title: "Amount Column", const: "amount" },
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
|
+
filterVariant: {
|
|
62
|
+
oneOf: [
|
|
63
|
+
{ title: "Text", const: "text" },
|
|
64
|
+
{ title: "Autocomplete", const: "autocomplete" },
|
|
65
|
+
{ title: "Select", const: "select" },
|
|
66
|
+
{ title: "Multi-Select", const: "multi-select" },
|
|
67
|
+
{ title: "Range", const: "range" },
|
|
68
|
+
{ title: "Range Slider", const: "range-slider" },
|
|
69
|
+
{ title: "Date", const: "date" },
|
|
70
|
+
{ title: "DateTime", const: "datetime" },
|
|
71
|
+
{ title: "Date Range", const: "date-range" },
|
|
72
|
+
{ title: "DateTime Range", const: "datetime-range" },
|
|
73
|
+
{ title: "Time", const: "time" },
|
|
74
|
+
{ title: "Time Range", const: "time-range" },
|
|
75
|
+
{ title: "Checkbox", const: "checkbox" }
|
|
76
|
+
]
|
|
77
|
+
},
|
|
61
78
|
orientation: {
|
|
62
79
|
oneOf: [
|
|
63
80
|
{ title: "Horizontal", const: "horizontal" },
|
|
@@ -155,7 +155,22 @@ export function refreshPage(type: string, store: any) {
|
|
|
155
155
|
label: "Element Type",
|
|
156
156
|
},
|
|
157
157
|
},
|
|
158
|
-
}
|
|
158
|
+
},
|
|
159
|
+
UiSchema.elements[0].elements[0].elements[10] =
|
|
160
|
+
{
|
|
161
|
+
type: "Control",
|
|
162
|
+
scope: "#/properties/filterVariant",
|
|
163
|
+
options: {
|
|
164
|
+
widget: "SelectInputField",
|
|
165
|
+
},
|
|
166
|
+
config: {
|
|
167
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
168
|
+
main: {
|
|
169
|
+
label: "Filter Variant",
|
|
170
|
+
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
};
|
|
159
174
|
}
|
|
160
175
|
|
|
161
176
|
if (sessionStorage.getItem("copiedConfig") ) {
|