rez-table-listing-mui 1.3.23 → 1.3.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez-table-listing-mui",
3
- "version": "1.3.23",
3
+ "version": "1.3.25",
4
4
  "type": "module",
5
5
  "description": "A rez table listing component built on TanStack Table",
6
6
  "main": "dist/index.js",
@@ -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 keyof FormValues
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}
@@ -921,9 +931,7 @@ const FilterForm = ({
921
931
  onValueChange={updateFiltersFromForm}
922
932
  />
923
933
  );
924
- }
925
-
926
- if (showTextInsteadOfDate) {
934
+ } else {
927
935
  return (
928
936
  <FormTextfield
929
937
  filter={filter}
@@ -933,6 +941,21 @@ const FilterForm = ({
933
941
  );
934
942
  }
935
943
 
944
+ // if (showTextInsteadOfDate) {
945
+ // console.log(
946
+ // "Inside Show text",
947
+ // showTextInsteadOfDate
948
+ // );
949
+
950
+ // return (
951
+ // <FormTextfield
952
+ // filter={filter}
953
+ // control={control}
954
+ // onValueChange={updateFiltersFromForm}
955
+ // />
956
+ // );
957
+ // }
958
+
936
959
  if (
937
960
  filter?.filter_attribute_data_type === "select"
938
961
  ) {
@@ -7,8 +7,8 @@ const LoginButton = () => {
7
7
 
8
8
  const handleLogin = async () => {
9
9
  setLoading(true);
10
- // const api_url = "https://api.eth-qa.rezolut.in/api/admin/auth";
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}/admin/auth/sso/check-email`, {
19
+ .post(`${api_url}/sso/check-email`, {
20
20
  email_id: email_id,
21
21
  subdomain: sub_domain,
22
22
  })