finance-shared 0.0.12 → 0.0.14
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/finance-shared-library.es.js +18 -14
- package/dist/finance-shared-library.es.js.map +1 -1
- package/dist/finance-shared-library.umd.js +1 -1
- package/dist/finance-shared-library.umd.js.map +1 -1
- package/dist/finance-shared.css +1 -1
- package/dist/index.d.ts +13 -12
- package/package.json +1 -1
|
@@ -21806,14 +21806,15 @@ const getUserList = (roleIds, tenantId, pageIndexParam, searchTerm) => async (di
|
|
|
21806
21806
|
dispatch(setIsUserListLoading(false));
|
|
21807
21807
|
}
|
|
21808
21808
|
};
|
|
21809
|
-
const getTenantListForDropdown = ({ pageIndex = 0 } = {}) => async (dispatch, getState) => {
|
|
21809
|
+
const getTenantListForDropdown = ({ pageIndex = 0, pageSize: pageSize2 } = {}) => async (dispatch, getState) => {
|
|
21810
21810
|
try {
|
|
21811
21811
|
const pagination = getTenantListForDropdownPaginationData(getState());
|
|
21812
21812
|
const filters = getDropdownFilters(getState());
|
|
21813
21813
|
const pageIndexQuery = pageIndex || pagination.pageIndex;
|
|
21814
|
+
const pageSizeQuery = pageSize2 || pagination.pageSize;
|
|
21814
21815
|
dispatch(setTenantListForDropdownLoading(true));
|
|
21815
21816
|
const queryParams = [
|
|
21816
|
-
|
|
21817
|
+
pageSizeQuery && `PageSize=${pageSizeQuery}`,
|
|
21817
21818
|
pageIndexQuery !== void 0 && `PageIndex=${pageIndexQuery + 1}`,
|
|
21818
21819
|
filters.searchKeyword && `Search=${filters.searchKeyword}`,
|
|
21819
21820
|
filters.status && `Status=${filters.status}`
|
|
@@ -27951,7 +27952,7 @@ function RemarksDialog({
|
|
|
27951
27952
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27952
27953
|
variant === "simple" ? (
|
|
27953
27954
|
// Simple variant: Icon button trigger
|
|
27954
|
-
remarksList.length > 0 && /* @__PURE__ */ jsx(IconButton$1, { onClick: handleOpen, className: "m-0 p-3", children: /* @__PURE__ */ jsx(Badge, { badgeContent: remarksList.length, color: "error", className: "text-white", children: /* @__PURE__ */ jsx(MessageOutlinedIcon, { color: "warning" }) }) })
|
|
27955
|
+
remarksList.length > 0 && /* @__PURE__ */ jsx(IconButton$1, { onClick: handleOpen, className: "m-0 p-3", disabled: isApplicationRejected, children: /* @__PURE__ */ jsx(Badge, { badgeContent: remarksList.length, color: "error", className: "text-white", children: /* @__PURE__ */ jsx(MessageOutlinedIcon, { color: "warning" }) }) })
|
|
27955
27956
|
) : (
|
|
27956
27957
|
// Full variant: Button trigger
|
|
27957
27958
|
/* @__PURE__ */ jsx(Badge, { badgeContent: displayCount, color: "error", children: /* @__PURE__ */ jsx(
|
|
@@ -27964,6 +27965,7 @@ function RemarksDialog({
|
|
|
27964
27965
|
startIcon: /* @__PURE__ */ jsx(PendingActionsIcon, {}),
|
|
27965
27966
|
onClick: handleOpen,
|
|
27966
27967
|
sx: remarksButtonStyle,
|
|
27968
|
+
disabled: isApplicationRejected,
|
|
27967
27969
|
children: t2("REMARKS")
|
|
27968
27970
|
}
|
|
27969
27971
|
) })
|
|
@@ -41542,7 +41544,8 @@ const TenantAutocomplete = ({
|
|
|
41542
41544
|
status = "",
|
|
41543
41545
|
style: style2 = {},
|
|
41544
41546
|
disableClearable = false,
|
|
41545
|
-
autoSelectFirst = false
|
|
41547
|
+
autoSelectFirst = false,
|
|
41548
|
+
pageSize: pageSize2 = 20
|
|
41546
41549
|
}) => {
|
|
41547
41550
|
const dispatch = useDispatch();
|
|
41548
41551
|
const hasAutoSelected = useRef(false);
|
|
@@ -41551,11 +41554,11 @@ const TenantAutocomplete = ({
|
|
|
41551
41554
|
onChange(selectedValue, isAutoSelection);
|
|
41552
41555
|
};
|
|
41553
41556
|
const fetchTenants = useCallback(
|
|
41554
|
-
async ({ status: status2, pageSize:
|
|
41557
|
+
async ({ status: status2, pageSize: pageSize22, pageIndex, searchKeyword = "" }) => {
|
|
41555
41558
|
const statusString = status2.length > 0 ? status2.join(",") : "";
|
|
41556
41559
|
dispatch(setDropdownFilters({ status: statusString, searchKeyword }));
|
|
41557
|
-
dispatch(setTenantListForDropdownPagination({ pageSize:
|
|
41558
|
-
const result = await dispatch(getTenantListForDropdown({ pageIndex }));
|
|
41560
|
+
dispatch(setTenantListForDropdownPagination({ pageSize: pageSize22, pageIndex }));
|
|
41561
|
+
const result = await dispatch(getTenantListForDropdown({ pageIndex, pageSize: pageSize22 }));
|
|
41559
41562
|
return result;
|
|
41560
41563
|
},
|
|
41561
41564
|
[dispatch]
|
|
@@ -41565,7 +41568,7 @@ const TenantAutocomplete = ({
|
|
|
41565
41568
|
const statusArray = Array.isArray(status) ? status : [status].filter((s4) => s4 !== "");
|
|
41566
41569
|
const tenants = await fetchTenants({
|
|
41567
41570
|
status: statusArray,
|
|
41568
|
-
pageSize:
|
|
41571
|
+
pageSize: pageSize2,
|
|
41569
41572
|
pageIndex,
|
|
41570
41573
|
searchKeyword: searchTerm || ""
|
|
41571
41574
|
});
|
|
@@ -41574,7 +41577,7 @@ const TenantAutocomplete = ({
|
|
|
41574
41577
|
label: item.name
|
|
41575
41578
|
}))) || [];
|
|
41576
41579
|
},
|
|
41577
|
-
[fetchTenants, status]
|
|
41580
|
+
[fetchTenants, status, pageSize2]
|
|
41578
41581
|
);
|
|
41579
41582
|
useEffect(() => {
|
|
41580
41583
|
const autoSelectFirstTenant = async () => {
|
|
@@ -41627,16 +41630,17 @@ const CustomPopover = ({
|
|
|
41627
41630
|
vertical: "top",
|
|
41628
41631
|
horizontal: "left"
|
|
41629
41632
|
},
|
|
41630
|
-
children: /* @__PURE__ */ jsxs(Box$1, { className: "
|
|
41631
|
-
showCancelButton && /* @__PURE__ */ jsx(
|
|
41633
|
+
children: /* @__PURE__ */ jsxs(Box$1, { className: "pt-8 pb-18 px-8 min-w-[230px] relative pointer-events-auto overflow-visible", children: [
|
|
41634
|
+
showCancelButton && /* @__PURE__ */ jsx(Box$1, { className: "absolute top-1 right-0 flex justify-end pr-4 mr-4", children: /* @__PURE__ */ jsx(
|
|
41632
41635
|
IconButton$1,
|
|
41633
41636
|
{
|
|
41634
41637
|
onClick: handleClose,
|
|
41635
|
-
className: "
|
|
41638
|
+
className: "cursor-pointer pointer-events-auto hover:bg-transparent p-1",
|
|
41639
|
+
size: "small",
|
|
41636
41640
|
children: /* @__PURE__ */ jsx(CloseIcon, { fontSize: "small" })
|
|
41637
41641
|
}
|
|
41638
|
-
),
|
|
41639
|
-
content
|
|
41642
|
+
) }),
|
|
41643
|
+
/* @__PURE__ */ jsx(Box$1, { className: "mt-4", children: content })
|
|
41640
41644
|
] })
|
|
41641
41645
|
}
|
|
41642
41646
|
);
|