udp-react-enterprise-component-library 25.18.4-beta.103 → 25.18.4-beta.105
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/{UdpTransactionsPage-ComQ7Ny2.js → UdpTransactionsPage-DXdZwL7g.js} +12 -10
- package/dist/{UdpTransactionsPage-ComQ7Ny2.js.map → UdpTransactionsPage-DXdZwL7g.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/hooks/useUdpGridFilterModel.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/udp/pages/UdpPages/index.js +1 -1
- package/dist/udp/pages/UdpTransactionsPage/index.js +1 -1
- package/export-map.json +1 -1
- package/package.json +2 -2
|
@@ -2677,19 +2677,16 @@ const useUdpGridFilterModel = () => {
|
|
|
2677
2677
|
};
|
|
2678
2678
|
else {
|
|
2679
2679
|
const { filterType, filterKey, parsedValue } = parseFilterValue(value);
|
|
2680
|
-
|
|
2680
|
+
const condition = {
|
|
2681
2681
|
filterType,
|
|
2682
|
-
type: operator,
|
|
2683
|
-
[filterKey]: parsedValue
|
|
2684
|
-
}
|
|
2682
|
+
type: operator === "isNull" ? value === "true" ? "blank" : "notBlank" : operator,
|
|
2683
|
+
...filterKey !== null && { [filterKey]: parsedValue }
|
|
2684
|
+
};
|
|
2685
|
+
if (constructedFilterModel[field]) constructedFilterModel[field].conditions.push(condition);
|
|
2685
2686
|
else constructedFilterModel[field] = {
|
|
2686
2687
|
filterType,
|
|
2687
2688
|
operator: "OR",
|
|
2688
|
-
conditions: [
|
|
2689
|
-
filterType,
|
|
2690
|
-
type: operator,
|
|
2691
|
-
[filterKey]: parsedValue
|
|
2692
|
-
}]
|
|
2689
|
+
conditions: [condition]
|
|
2693
2690
|
};
|
|
2694
2691
|
}
|
|
2695
2692
|
}
|
|
@@ -2699,6 +2696,11 @@ const useUdpGridFilterModel = () => {
|
|
|
2699
2696
|
}, [searchParams]);
|
|
2700
2697
|
};
|
|
2701
2698
|
const parseFilterValue = (value) => {
|
|
2699
|
+
if (value === "true" || value === "false") return {
|
|
2700
|
+
filterType: "text",
|
|
2701
|
+
filterKey: null,
|
|
2702
|
+
parsedValue: null
|
|
2703
|
+
};
|
|
2702
2704
|
if (!isNaN(Date.parse(value)) && (value.includes("-") || value.includes("/"))) return {
|
|
2703
2705
|
filterType: "date",
|
|
2704
2706
|
filterKey: "dateFrom",
|
|
@@ -2846,4 +2848,4 @@ var UdpTransactionsPage_exports = /* @__PURE__ */ __exportAll({ default: () => U
|
|
|
2846
2848
|
//#endregion
|
|
2847
2849
|
export { allowedExtensions as i, UdpTransactionsPage as n, MAX_FILE_SIZE_MB as r, UdpTransactionsPage_exports as t };
|
|
2848
2850
|
|
|
2849
|
-
//# sourceMappingURL=UdpTransactionsPage-
|
|
2851
|
+
//# sourceMappingURL=UdpTransactionsPage-DXdZwL7g.js.map
|