rez-table-listing-mui 1.3.23 → 1.3.24
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/listing/components/filter/components/forms/components/Textfield.tsx +1 -1
- package/src/listing/components/filter/components/forms/index.tsx +16 -1
- package/src/listing/components/login/index.tsx +3 -3
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@ const FormTextfield = ({
|
|
|
33
33
|
padding: "12px 20px",
|
|
34
34
|
},
|
|
35
35
|
}}
|
|
36
|
-
type={filter?.filter_attribute_data_type || "text"}
|
|
36
|
+
type={filter?.filter_attribute_data_type || "text" || "number"}
|
|
37
37
|
placeholder={"Enter value"}
|
|
38
38
|
disabled={isLoading}
|
|
39
39
|
onChange={(e) => {
|
|
@@ -852,12 +852,15 @@ const FilterForm = ({
|
|
|
852
852
|
<Box>
|
|
853
853
|
{(() => {
|
|
854
854
|
const fieldValue = formValues[
|
|
855
|
-
filter?.filter_attribute_name as
|
|
855
|
+
filter?.filter_attribute_name as string
|
|
856
856
|
] as
|
|
857
857
|
| { value: string | string[]; operator: string }
|
|
858
858
|
| undefined;
|
|
859
859
|
|
|
860
|
+
console.log("fieldValue:", fieldValue);
|
|
861
|
+
|
|
860
862
|
const operator = fieldValue?.operator;
|
|
863
|
+
console.log("Operator", operator);
|
|
861
864
|
|
|
862
865
|
// Operators that should show a Date Picker
|
|
863
866
|
const dateAllowedOperators = [
|
|
@@ -887,6 +890,12 @@ const FilterForm = ({
|
|
|
887
890
|
(!operator ||
|
|
888
891
|
!dateAllowedOperators.includes(operator));
|
|
889
892
|
|
|
893
|
+
console.log("Show Date Picker:", showDatePicker);
|
|
894
|
+
console.log(
|
|
895
|
+
"Show Text Instead:",
|
|
896
|
+
showTextInsteadOfDate
|
|
897
|
+
);
|
|
898
|
+
|
|
890
899
|
// Now render exactly same logic except date override
|
|
891
900
|
if (
|
|
892
901
|
filter?.filter_attribute_data_type === "text" ||
|
|
@@ -914,6 +923,7 @@ const FilterForm = ({
|
|
|
914
923
|
|
|
915
924
|
// ⬇️ NEW DATE LOGIC
|
|
916
925
|
if (showDatePicker) {
|
|
926
|
+
console.log("Inside Date", showDatePicker);
|
|
917
927
|
return (
|
|
918
928
|
<FormDatePicker
|
|
919
929
|
filter={filter}
|
|
@@ -924,6 +934,11 @@ const FilterForm = ({
|
|
|
924
934
|
}
|
|
925
935
|
|
|
926
936
|
if (showTextInsteadOfDate) {
|
|
937
|
+
console.log(
|
|
938
|
+
"Inside Show text",
|
|
939
|
+
showTextInsteadOfDate
|
|
940
|
+
);
|
|
941
|
+
|
|
927
942
|
return (
|
|
928
943
|
<FormTextfield
|
|
929
944
|
filter={filter}
|
|
@@ -7,8 +7,8 @@ const LoginButton = () => {
|
|
|
7
7
|
|
|
8
8
|
const handleLogin = async () => {
|
|
9
9
|
setLoading(true);
|
|
10
|
-
|
|
11
|
-
const api_url = "http://localhost:4011/api";
|
|
10
|
+
const api_url = "https://api.eth-qa.rezolut.in/api/admin/auth";
|
|
11
|
+
// const api_url = "http://localhost:4011/api/admin/auth";
|
|
12
12
|
const email_id = "kartik.shetty@rezolut.in";
|
|
13
13
|
const email_otp = "123456";
|
|
14
14
|
const sub_domain = "nair";
|
|
@@ -16,7 +16,7 @@ const LoginButton = () => {
|
|
|
16
16
|
setLoading(true);
|
|
17
17
|
|
|
18
18
|
await axios
|
|
19
|
-
.post(`${api_url}/
|
|
19
|
+
.post(`${api_url}/sso/check-email`, {
|
|
20
20
|
email_id: email_id,
|
|
21
21
|
subdomain: sub_domain,
|
|
22
22
|
})
|