diff --git a/client/src/components/center-calendar/CenterCalendar.js b/client/src/components/center-calendar/CenterCalendar.js index 696c4d8..44c4df4 100644 --- a/client/src/components/center-calendar/CenterCalendar.js +++ b/client/src/components/center-calendar/CenterCalendar.js @@ -911,7 +911,12 @@ const EventsCalendar = () => { } } - const dismissEventModal = () => { + const dismissEventModal = (e) => { + e?.preventDefault?.(); + e?.stopPropagation?.(); + try { + eventModalService?.close?.(); + } catch (_e) {} try { calendar?.config?.plugins?.eventModal?.close(); } catch (e) { @@ -933,13 +938,20 @@ const EventsCalendar = () => { style={{ border: 'none', background: 'transparent', - padding: 0, + padding: '8px', + marginTop: '4px', + marginRight: '4px', cursor: 'pointer', lineHeight: 1, - color: '#666' + color: '#666', + minWidth: '36px', + minHeight: '36px', + display: 'inline-flex', + alignItems: 'center', + justifyContent: 'center' }} > - + {calendarEvent?.doctor &&
{`${calendarEvent?.doctor}`}
} diff --git a/client/src/components/dashboard/DashboardCustomersList.js b/client/src/components/dashboard/DashboardCustomersList.js index 2b572b2..4816d4d 100644 --- a/client/src/components/dashboard/DashboardCustomersList.js +++ b/client/src/components/dashboard/DashboardCustomersList.js @@ -29,7 +29,7 @@ import { Spinner, Breadcrumb, BreadcrumbItem, Tabs, Tab, Dropdown, Modal } from import { Columns, Download, Filter, PencilSquare, PersonSquare, Plus } from "react-bootstrap-icons"; const DashboardCustomersList = ({ additionalButtons, showBreadcrumb = false, title = null }) => { - const HIDDEN_CUSTOMER_TYPE_FILTER_VALUES = [CUSTOMER_TYPE.TRANSFERRED, CUSTOMER_TYPE.DECEASED, CUSTOMER_TYPE.DISCHARGED]; + const HIDDEN_CUSTOMER_TYPE_FILTER_VALUES = [CUSTOMER_TYPE.SELF_PAY, CUSTOMER_TYPE.TRANSFERRED, CUSTOMER_TYPE.DECEASED, CUSTOMER_TYPE.DISCHARGED]; const DISCHARGE_ONLY_COLUMN_KEYS = new Set(['discharge_date', 'discharge_by', 'discharge_reason']); const CUSTOMER_COLUMNS = [ { key: 'customer_name', label: 'Customer Name', show: true }, diff --git a/client/src/components/events/EventsCalendar.js b/client/src/components/events/EventsCalendar.js index a9838b0..03c6491 100644 --- a/client/src/components/events/EventsCalendar.js +++ b/client/src/components/events/EventsCalendar.js @@ -317,7 +317,12 @@ const EventsCalendar = () => { setSelectedColorFilters([]); } - const dismissEventModal = () => { + const dismissEventModal = (e) => { + e?.preventDefault?.(); + e?.stopPropagation?.(); + try { + eventModalService?.close?.(); + } catch (_e) {} try { calendar?.config?.plugins?.eventModal?.close(); } catch (e) { @@ -338,13 +343,20 @@ const EventsCalendar = () => { style={{ border: 'none', background: 'transparent', - padding: 0, + padding: '8px', + marginTop: '4px', + marginRight: '4px', cursor: 'pointer', lineHeight: 1, - color: '#666' + color: '#666', + minWidth: '36px', + minHeight: '36px', + display: 'inline-flex', + alignItems: 'center', + justifyContent: 'center' }} > - + {calendarEvent?.doctor &&
{`${calendarEvent?.doctor}`}
} diff --git a/client/src/shared/components/Export.js b/client/src/shared/components/Export.js index d4ff4d6..3f87786 100644 --- a/client/src/shared/components/Export.js +++ b/client/src/shared/components/Export.js @@ -32,6 +32,17 @@ const Export = ({ columns, data, filename = "export", customActions = [], show, handleToggle(false); }; + const handleDeselectAll = () => { + scrollTopRef.current = scrollContainerRef.current?.scrollTop || 0; + const updatedColumns = exportColumns.map((col) => ({ ...col, show: false })); + setExportColumns(updatedColumns); + requestAnimationFrame(() => { + if (scrollContainerRef.current) { + scrollContainerRef.current.scrollTop = scrollTopRef.current; + } + }); + }; + const generateCSV = () => { const visibleColumns = exportColumns.filter(col => col.show); const headers = visibleColumns.map(col => col.label).join(','); @@ -145,7 +156,16 @@ const Export = ({ columns, data, filename = "export", customActions = [], show, )}
-
Select Columns:
+
+
Select Columns:
+ +
{exportColumns.map((column) => (
{ } }; + const handleDeselectAll = () => { + scrollTopRef.current = scrollContainerRef.current?.scrollTop || 0; + const updatedColumns = tempColumns.map((col) => ({ ...col, show: false })); + setTempColumns(updatedColumns); + requestAnimationFrame(() => { + if (scrollContainerRef.current) { + scrollContainerRef.current.scrollTop = scrollTopRef.current; + } + }); + }; + const customManageTableMenu = React.forwardRef( ({ children, style, className, 'aria-labelledby': labeledBy }, ref) => { return ( @@ -57,6 +68,15 @@ const ManageTable = ({ columns, onColumnsChange, show, onToggle }) => { aria-labelledby={labeledBy} >
Manage Table Columns
+
+ +