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
|
@@ -6475,23 +6475,20 @@ const ComponentSchema = {
|
|
|
6475
6475
|
}
|
|
6476
6476
|
},
|
|
6477
6477
|
filteringOptions: {
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
{ const: "lessThanOrEqualTo", title: "Less than or equal to" }
|
|
6493
|
-
]
|
|
6494
|
-
}
|
|
6478
|
+
oneOf: [
|
|
6479
|
+
{ const: "fuzzy", title: "Fuzzy" },
|
|
6480
|
+
{ const: "contains", title: "Contain" },
|
|
6481
|
+
{ const: "startsWith", title: "Starts with" },
|
|
6482
|
+
{ const: "endsWith", title: "Ends with" },
|
|
6483
|
+
{ const: "equals", title: "Equals" },
|
|
6484
|
+
{ const: "notEquals", title: "Not Equals" },
|
|
6485
|
+
{ const: "between", title: "Between" },
|
|
6486
|
+
{ const: "betweenInclusive", title: "Between inclusive" },
|
|
6487
|
+
{ const: "greaterThan", title: "Greater than" },
|
|
6488
|
+
{ const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
|
|
6489
|
+
{ const: "lessThan", title: "Less than" },
|
|
6490
|
+
{ const: "lessThanOrEqualTo", title: "Less than or equal to" }
|
|
6491
|
+
]
|
|
6495
6492
|
},
|
|
6496
6493
|
legendLabels: {
|
|
6497
6494
|
type: "array",
|
|
@@ -8487,7 +8484,7 @@ function refreshPage(type, store2) {
|
|
|
8487
8484
|
widget: "SelectInputField"
|
|
8488
8485
|
},
|
|
8489
8486
|
config: {
|
|
8490
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
8487
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8491
8488
|
main: {
|
|
8492
8489
|
label: "Column Format"
|
|
8493
8490
|
}
|
|
@@ -8500,7 +8497,7 @@ function refreshPage(type, store2) {
|
|
|
8500
8497
|
widget: "RadioInputField"
|
|
8501
8498
|
},
|
|
8502
8499
|
config: {
|
|
8503
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
8500
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8504
8501
|
main: {
|
|
8505
8502
|
label: "Enable Filter",
|
|
8506
8503
|
options: ["Yes", "No"]
|
|
@@ -8513,27 +8510,27 @@ function refreshPage(type, store2) {
|
|
|
8513
8510
|
widget: "SelectInputField"
|
|
8514
8511
|
},
|
|
8515
8512
|
config: {
|
|
8516
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
8513
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8517
8514
|
main: {
|
|
8518
8515
|
label: "Filter Mode",
|
|
8519
8516
|
multiple: true
|
|
8520
8517
|
}
|
|
8521
8518
|
}
|
|
8522
8519
|
};
|
|
8523
|
-
UiSchema.elements[
|
|
8520
|
+
UiSchema.elements[1].elements[0].elements[6] = {
|
|
8524
8521
|
type: "Control",
|
|
8525
8522
|
scope: "#/properties/enableSorting",
|
|
8526
8523
|
options: {
|
|
8527
8524
|
widget: "RadioInputField"
|
|
8528
8525
|
},
|
|
8529
8526
|
config: {
|
|
8530
|
-
layout: { xs: 6, sm: 6, md: 4, lg:
|
|
8527
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8531
8528
|
main: {
|
|
8532
8529
|
label: "Enable Sorting",
|
|
8533
8530
|
options: ["Yes", "No"]
|
|
8534
8531
|
}
|
|
8535
8532
|
}
|
|
8536
|
-
}, UiSchema.elements[
|
|
8533
|
+
}, UiSchema.elements[1].elements[0].elements[7] = {
|
|
8537
8534
|
type: "Control",
|
|
8538
8535
|
scope: "#/properties/columnKey",
|
|
8539
8536
|
options: {
|
|
@@ -12470,28 +12467,25 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12470
12467
|
});
|
|
12471
12468
|
}
|
|
12472
12469
|
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12473
|
-
var _a
|
|
12470
|
+
var _a;
|
|
12471
|
+
const commonProperties = {
|
|
12472
|
+
accessorKey: cellElem.name,
|
|
12473
|
+
type: cellElem.columnFormat,
|
|
12474
|
+
header: cellElem.label || cellElem.name,
|
|
12475
|
+
size: sizeMap[cellElem.name] || 180,
|
|
12476
|
+
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
|
|
12477
|
+
columnFilterModeOptions: config2.filteringOptions,
|
|
12478
|
+
enableSorting: config2.enableSorting === "No" ? false : true,
|
|
12479
|
+
columnKey: config2.columnKey
|
|
12480
|
+
};
|
|
12474
12481
|
if (cellElem.type) {
|
|
12475
12482
|
return {
|
|
12476
|
-
accessorKey: cellElem.name,
|
|
12477
|
-
header: cellElem.label || cellElem.name,
|
|
12478
|
-
size: sizeMap[cellElem.name] || 180,
|
|
12479
|
-
type: cellElem.columnFormat,
|
|
12480
12483
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12481
12484
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12482
|
-
|
|
12483
|
-
columnFilterModeOptions: config2.filteringOptions,
|
|
12484
|
-
enableSorting: config2.enableSorting === "No" ? false : true
|
|
12485
|
+
...commonProperties
|
|
12485
12486
|
};
|
|
12486
12487
|
} else {
|
|
12487
|
-
return
|
|
12488
|
-
accessorKey: cellElem.name,
|
|
12489
|
-
type: cellElem.columnFormat,
|
|
12490
|
-
header: cellElem.label || cellElem.name,
|
|
12491
|
-
size: sizeMap[cellElem.name] || 180,
|
|
12492
|
-
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
|
|
12493
|
-
columnFilterModeOptions: config2.filteringOptions
|
|
12494
|
-
};
|
|
12488
|
+
return commonProperties;
|
|
12495
12489
|
}
|
|
12496
12490
|
});
|
|
12497
12491
|
} else if (config2.type == "Array") {
|