@argusoft/medplat-app-shell 1.0.5 → 1.0.7

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.
Files changed (263) hide show
  1. package/package.json +139 -141
  2. package/src/GlobalErrorBoundary.jsx +31 -0
  3. package/src/SilentErrorFallback.jsx +68 -0
  4. package/src/TrackingProviderWrapper.jsx +40 -0
  5. package/src/_tests_/__mocks__/MockTranslationProvider.jsx +21 -0
  6. package/src/_tests_/__mocks__/ckeditor.js +45 -0
  7. package/src/_tests_/__mocks__/fileMock.js +1 -0
  8. package/src/_tests_/__mocks__/useranalytics.js +5 -0
  9. package/src/_tests_/views/components/Dashboard/DashboardUI.test.jsx +137 -0
  10. package/src/_tests_/views/components/Dashboard/DashboardUIMock.js +877 -0
  11. package/src/_tests_/views/components/ForgotPassword/ForgotPassword.test.jsx +314 -0
  12. package/src/_tests_/views/components/LocationDirective/LocationDirective.test.jsx.disable +229 -0
  13. package/src/_tests_/views/components/LocationDirective/mockLocationDirective.js +810 -0
  14. package/src/_tests_/views/components/LocationType/MockLocationType.js +42259 -0
  15. package/src/_tests_/views/components/LocationType/addlocationtype.test.jsx.disable +276 -0
  16. package/src/_tests_/views/components/LocationType/editlocationtype.test.jsx.disable +262 -0
  17. package/src/_tests_/views/components/LocationType/locationtype.test.jsx.disable +148 -0
  18. package/src/_tests_/views/components/Profile/UpdateProfileModalData.js +4396 -0
  19. package/src/_tests_/views/components/Profile/updateprofilemodal.test.jsx +282 -0
  20. package/src/_tests_/views/components/SideBar/MockSideBar.js +1379 -0
  21. package/src/_tests_/views/components/SideBar/SideBar.test.jsx +98 -0
  22. package/src/_tests_/views/components/SystemConfig/ManageSystemConfig/AddManageSystemConfig.test.jsx.disable +164 -0
  23. package/src/_tests_/views/components/SystemConfig/ManageSystemConfig/UpdateManageSystemConfig.test.jsx.disable +157 -0
  24. package/src/_tests_/views/components/SystemConfig/MockSystemConfig.js +1280 -0
  25. package/src/_tests_/views/components/SystemConfig/SystemConfig.test.jsx.disable +165 -0
  26. package/src/_tests_/views/components/login/Login.test.jsx +276 -0
  27. package/src/_tests_/views/components/login/MockAuthorise.js +2414 -0
  28. package/src/_tests_/views/components/login/ServiceResponse.js +595 -0
  29. package/src/_tests_/views/components/user/MockManageUser.js +7965 -0
  30. package/src/_tests_/views/components/user/manageuser.test.jsx.disable +989 -0
  31. package/src/_tests_/views/components/user/mockUsersData.js +582 -0
  32. package/src/assets/img/OASISLogin.png +0 -0
  33. package/src/assets/img/bahaarNew.png +0 -0
  34. package/src/assets/img/dnhdd4K.png +0 -0
  35. package/src/assets/img/govtofup.png +0 -0
  36. package/src/assets/img/sewarural4K.png +0 -0
  37. package/src/assets/img/techo4K.png +0 -0
  38. package/src/assets/img/up4K.png +0 -0
  39. package/src/common/HolidayList.jsx +573 -0
  40. package/src/common/MalaciaousInputUtil.js +23 -0
  41. package/src/common/SafeHtml.jsx +17 -0
  42. package/src/common/VersionManager.jsx +109 -0
  43. package/src/common/constants/PerformanceDashboard.js +514 -0
  44. package/src/common/constants/app.constant.js +781 -0
  45. package/src/common/constants/cccVerificationConstants.js +18 -0
  46. package/src/common/constants/fhsrConstant.js +33 -0
  47. package/src/common/constants/gvk-verification.constant.js +76 -0
  48. package/src/common/constants/search.constant.js +23 -0
  49. package/src/common/constants/teleconsulatationConstant.jsx +1339 -0
  50. package/src/common/directives/SearchTemplate.jsx +784 -0
  51. package/src/common/directives/SearchTemplate.scss +14 -0
  52. package/src/common/dynamicView/DynamicView.jsx +353 -0
  53. package/src/common/dynamicView/InputFieldComponent.jsx +1501 -0
  54. package/src/common/dynamicView/InputViewComponent.jsx +298 -0
  55. package/src/common/dynamicView/InputViewComponent.scss +15 -0
  56. package/src/common/env.js +5 -0
  57. package/src/common/filters/locationNameFilter.js +26 -0
  58. package/src/common/fontAwesomeIcons/FontAwesomeIcons.jsx +27 -0
  59. package/src/common/fontAwesomeIcons/FontAwesomeIconsNames.js +1968 -0
  60. package/src/common/fontPreferences/fontSizeProvider.jsx +34 -0
  61. package/src/common/fontPreferences/fontSizeSelector.jsx +116 -0
  62. package/src/common/getAssignedFeature/getAssignedFeature.js +32 -0
  63. package/src/common/interceptors/AxiosInterceptor.js +216 -0
  64. package/src/common/languageTranslator/TranslationContext.js +5 -0
  65. package/src/common/languageTranslator/TranslationProvider.jsx +24 -0
  66. package/src/common/languageTranslator/i18n.js +49 -0
  67. package/src/common/services/AuthenticateService.js +116 -0
  68. package/src/common/services/DownloadFile.js +35 -0
  69. package/src/common/services/ForgotPassword.js +18 -0
  70. package/src/common/services/FormConfiguratorService.js +195 -0
  71. package/src/common/services/GlobalApis.js +84 -0
  72. package/src/common/services/InterceptorNavigationService.js +17 -0
  73. package/src/common/services/LocationService.js +65 -0
  74. package/src/common/services/LocationType.js +11 -0
  75. package/src/common/services/QueryBuilder.js +36 -0
  76. package/src/common/services/Roles.js +28 -0
  77. package/src/common/services/SyncWithServer.js +15 -0
  78. package/src/common/services/SystemConfig.js +15 -0
  79. package/src/common/services/TranslationService.js +70 -0
  80. package/src/common/services/TwoFactorService.js +7 -0
  81. package/src/common/services/Users.js +91 -0
  82. package/src/common/services/Webtasks.js +27 -0
  83. package/src/common/services/util/Convert-pad-data-to-API-format.jsx +167 -0
  84. package/src/common/services/util/Convert-to-UI-format.jsx +82 -0
  85. package/src/common/services/util/EmptyPrescriptionPadData.jsx +11 -0
  86. package/src/common/services/util/GeneralUtil.js +456 -0
  87. package/src/common/services/util/Prescription-pad-util.js +339 -0
  88. package/src/common/services/util/PrescriptionPadData.js +67 -0
  89. package/src/common/services/util/PrescriptionpadCommonUtil.js +96 -0
  90. package/src/common/services/util/ReportFieldUtil.jsx +398 -0
  91. package/src/common/services/util/WebSocketContext.jsx +261 -0
  92. package/src/common/syncWithServer/SyncWithServerDialog.jsx +170 -0
  93. package/src/common/syncWithServer/SyncWithServerDialogSkeleton.jsx +67 -0
  94. package/src/common/tests/CustomWrapper.jsx +49 -0
  95. package/src/common/tests/TranslationWrapper.jsx +38 -0
  96. package/src/common/themeProvider/ColorInputs.jsx +97 -0
  97. package/src/common/themeProvider/EditableColorInput.jsx +128 -0
  98. package/src/common/themeProvider/ThemeEditor.jsx +319 -0
  99. package/src/common/themeProvider/ThemeProvider.jsx +210 -0
  100. package/src/common/themeProvider/themeConfig.js +558 -0
  101. package/src/common/toaster/toaster.jsx +30 -0
  102. package/src/firebaseConfig.js +24 -0
  103. package/src/global.scss +221 -0
  104. package/src/hooks/.gitkeep +0 -0
  105. package/src/hooks/useAESEncryption.js +56 -0
  106. package/src/hooks/useCaching.js +43 -0
  107. package/src/hooks/useDebounce.js +34 -0
  108. package/src/hooks/useDebounceFn.js +50 -0
  109. package/src/hooks/useDownloadPdf.js +358 -0
  110. package/src/hooks/useDownloadXlsx.js +55 -0
  111. package/src/hooks/useListValueFieldValues.js +30 -0
  112. package/src/hooks/useLocationHierarchies.js +63 -0
  113. package/src/hooks/useLocationHierarchyTranslate.js +16 -0
  114. package/src/hooks/useOnline.js +27 -0
  115. package/src/hooks/usePagination.js +63 -0
  116. package/src/hooks/useRefreshToken.js +87 -0
  117. package/src/hooks/useScript.js +25 -0
  118. package/src/hooks/useStopwatch.js +75 -0
  119. package/src/hooks/useTrackEvent.js +22 -0
  120. package/src/hooks/useWebAudioRecorder.js +115 -0
  121. package/src/layout/LoaderComponet.jsx +22 -0
  122. package/src/layout/LoaderContext.jsx +29 -0
  123. package/src/layout/mainLayout/AdaptiveZoom.jsx +27 -0
  124. package/src/layout/mainLayout/Chatbot.jsx +243 -0
  125. package/src/layout/mainLayout/Layout.jsx +445 -0
  126. package/src/layout/mainLayout/Profile/UpdateProfileModal.jsx +684 -0
  127. package/src/layout/mainLayout/header/LogoutModal.jsx +131 -0
  128. package/src/layout/mainLayout/header/Navbar.jsx +1677 -0
  129. package/src/layout/mainLayout/header/Navbar.scss +4 -0
  130. package/src/layout/mainLayout/header/index.js +0 -0
  131. package/src/layout/mainLayout/sidebar/SideBar.jsx +1402 -0
  132. package/src/layout/mainLayout/sidebar/Sidebar.css +159 -0
  133. package/src/layout/mainLayout/sidebar/index.js +0 -0
  134. package/src/logo.svg +1 -0
  135. package/src/reportWebVitals.js +13 -0
  136. package/src/setupFirebaseMessaging.js +28 -0
  137. package/src/setupTests.js +8 -0
  138. package/src/store/actions/AuthenticationActions.js +0 -0
  139. package/src/store/actions/ReportsActions.js +0 -0
  140. package/src/store/actions/TranslationAction.js +0 -0
  141. package/src/store/index.js +8 -0
  142. package/src/store/reducer.js +46 -0
  143. package/src/store/reducers/AuthenticationReducer.js +50 -0
  144. package/src/store/reducers/CalendarEventReducer.js +41 -0
  145. package/src/store/reducers/ConditionClipboardReducer.js +45 -0
  146. package/src/store/reducers/FeatureReducer.js +27 -0
  147. package/src/store/reducers/FormConfiguratorReducer.js +38 -0
  148. package/src/store/reducers/LoadingReducer.js +20 -0
  149. package/src/store/reducers/MembersAuthenticationReducer.js +28 -0
  150. package/src/store/reducers/PrescriptionPadReducer.js +329 -0
  151. package/src/store/reducers/QuestionaireReducer.js +29 -0
  152. package/src/store/reducers/ReportsReducer.js +24 -0
  153. package/src/store/reducers/SkeletonReducer.js +20 -0
  154. package/src/store/reducers/ThemeReducer.js +106 -0
  155. package/src/store/reducers/TranslationReducer.js +126 -0
  156. package/src/store/reducers/dashboardEditorSlice.js +77 -0
  157. package/src/store/reducers/districtHealthDashboardSlice.js +58 -0
  158. package/src/store/reducers/immunizationSlice.js +234 -0
  159. package/src/store/slices/dashboardPagesSlice.js +51 -0
  160. package/src/utils/.gitkeep +0 -0
  161. package/src/utils/FormConstants.js +2629 -0
  162. package/src/utils/GujaratTopoChart.jsx +483 -0
  163. package/src/utils/UUIDgenerator.js +8 -0
  164. package/src/utils/appointment-utils/appointment-utils.js +123 -0
  165. package/src/utils/feature.js +42 -0
  166. package/src/utils/getThemeColor.js +12 -0
  167. package/src/utils/localStorageHelper.js +11 -0
  168. package/src/utils/notifications/enable-push-notifications.js +27 -0
  169. package/src/utils/resolveAppliedStyle.js +11 -0
  170. package/src/utils/themeConfigs.js +1483 -0
  171. package/src/views/custom-components/.gitkeep +0 -0
  172. package/src/views/custom-components/AgIconButton/RIf.jsx +14 -0
  173. package/src/views/custom-components/AgIconButton/button.jsx +108 -0
  174. package/src/views/custom-components/AgIconButton/waterDrop.jsx +95 -0
  175. package/src/views/custom-components/AgIconButton/waterDrop.scss +37 -0
  176. package/src/views/custom-components/AlertPlaceholder.jsx +32 -0
  177. package/src/views/custom-components/AllFaIconsSelector.jsx +56 -0
  178. package/src/views/custom-components/CkEditor/CkEditor.js +102 -0
  179. package/src/views/custom-components/CustomAccordion.jsx +72 -0
  180. package/src/views/custom-components/CustomActionIcons.jsx +118 -0
  181. package/src/views/custom-components/CustomAutoComplete.jsx +188 -0
  182. package/src/views/custom-components/CustomCheckBox.jsx +60 -0
  183. package/src/views/custom-components/CustomConfirmationModal.jsx +118 -0
  184. package/src/views/custom-components/CustomCountrySelect.jsx +129 -0
  185. package/src/views/custom-components/CustomDatePicker.jsx +122 -0
  186. package/src/views/custom-components/CustomDropdown.jsx +191 -0
  187. package/src/views/custom-components/CustomFileUpload.jsx +387 -0
  188. package/src/views/custom-components/CustomFullCalendar.jsx +514 -0
  189. package/src/views/custom-components/CustomInfiniteScroll.jsx +126 -0
  190. package/src/views/custom-components/CustomRadioComponent.jsx +65 -0
  191. package/src/views/custom-components/CustomStatsComponent.jsx +114 -0
  192. package/src/views/custom-components/CustomSvgUpload.jsx +170 -0
  193. package/src/views/custom-components/CustomSwitch.jsx +37 -0
  194. package/src/views/custom-components/CustomTabPanel.jsx +19 -0
  195. package/src/views/custom-components/CustomTextArea.jsx +62 -0
  196. package/src/views/custom-components/CustomTextArea.scss +27 -0
  197. package/src/views/custom-components/CustomTextField.jsx +116 -0
  198. package/src/views/custom-components/CustomToggleSwitch.jsx +138 -0
  199. package/src/views/custom-components/CustomTooltip.jsx +51 -0
  200. package/src/views/custom-components/CustomZoomImage.jsx +134 -0
  201. package/src/views/custom-components/CustomizedTable/CustomizedTableV2.jsx +1407 -0
  202. package/src/views/custom-components/CustomizedTable/VirtualizeTableBody.jsx +295 -0
  203. package/src/views/custom-components/CustomizedTable/helper.jsx +159 -0
  204. package/src/views/custom-components/CustomizedTable.jsx +532 -0
  205. package/src/views/custom-components/EditInputField.jsx +174 -0
  206. package/src/views/custom-components/FieldDescription.jsx +22 -0
  207. package/src/views/custom-components/FileDisplayComponent.jsx +138 -0
  208. package/src/views/custom-components/FormItem.jsx +53 -0
  209. package/src/views/custom-components/GenericChart.jsx +80 -0
  210. package/src/views/custom-components/InfoBadge.jsx +60 -0
  211. package/src/views/custom-components/PostgresEditor.jsx +801 -0
  212. package/src/views/custom-components/ResizableEditAutocompleteField.jsx +249 -0
  213. package/src/views/custom-components/ResizableEditInputField.jsx +215 -0
  214. package/src/views/custom-components/ResizeableEditSelectField.jsx +197 -0
  215. package/src/views/custom-components/SideOverlay.jsx +113 -0
  216. package/src/views/custom-components/SideOverlay.scss +42 -0
  217. package/src/views/custom-components/calendar.scss +571 -0
  218. package/src/views/feature-components/.gitkeep +0 -0
  219. package/src/views/feature-components/Dashboard/DashboardUI.jsx +1043 -0
  220. package/src/views/feature-components/Dashboard/DhnddModal/AshaDataQualityVerificationModal.jsx +278 -0
  221. package/src/views/feature-components/Dashboard/PinFeatureModal.jsx +143 -0
  222. package/src/views/feature-components/Dashboard/QuickLinks.jsx +163 -0
  223. package/src/views/feature-components/Dashboard/Taskbar.jsx +56 -0
  224. package/src/views/feature-components/Dashboard/WebtasksFilterForm.jsx +109 -0
  225. package/src/views/feature-components/Dashboard/WidgetCard.jsx +161 -0
  226. package/src/views/feature-components/Dashboard/actionModal.jsx +263 -0
  227. package/src/views/feature-components/Dashboard/ekavachModal/HealthWorkerIncorrectDetailsModal.jsx +332 -0
  228. package/src/views/feature-components/Dashboard/ekavachModal/MoMaternalDeathVerifcationModal.jsx +275 -0
  229. package/src/views/feature-components/Dashboard/ekavachModal/MoVerficationForChildScreeningMoadal.jsx +566 -0
  230. package/src/views/feature-components/FeatureUsageAnalytics/FeatureUsageAnalytics.jsx +989 -0
  231. package/src/views/feature-components/Features/NewServerManagement.jsx +217 -0
  232. package/src/views/feature-components/Features/ServerManagement.scss +120 -0
  233. package/src/views/feature-components/ForgotPassword/ForgotPassword.jsx +226 -0
  234. package/src/views/feature-components/LocationDirective/LocationDirective.jsx +992 -0
  235. package/src/views/feature-components/LocationDirective/LocationDirectiveV2.jsx +909 -0
  236. package/src/views/feature-components/NotFound.jsx +66 -0
  237. package/src/views/feature-components/Onboarding/Onboarding.jsx +1400 -0
  238. package/src/views/feature-components/Skeletons.js +115 -0
  239. package/src/views/feature-components/Unauthorized.jsx +48 -0
  240. package/src/views/feature-components/VerifyRoute.jsx +88 -0
  241. package/src/views/feature-components/YearlyRecap/YearlyRecap.jsx +357 -0
  242. package/src/views/feature-components/YearlyRecap/components/RecapSlide.jsx +183 -0
  243. package/src/views/feature-components/YearlyRecap/languageTranslator/TranslationContext.js +5 -0
  244. package/src/views/feature-components/YearlyRecap/languageTranslator/TranslationProvider.jsx +26 -0
  245. package/src/views/feature-components/YearlyRecap/languageTranslator/i18n.js +46 -0
  246. package/src/views/feature-components/YearlyRecap/languageTranslator/translations.json +167 -0
  247. package/src/views/feature-components/YearlyRecap/slides/IntroSlide.jsx +233 -0
  248. package/src/views/feature-components/YearlyRecap/slides/MaternalHealthSlide.jsx +146 -0
  249. package/src/views/feature-components/YearlyRecap/slides/MetricSlide.jsx +227 -0
  250. package/src/views/feature-components/YearlyRecap/slides/OutroSlide.jsx +701 -0
  251. package/src/views/feature-components/YearlyRecap/slides/ReachSlide.jsx +273 -0
  252. package/src/views/feature-components/login/Login.jsx +840 -0
  253. package/src/views/feature-components/login/Login.scss +154 -0
  254. package/src/views/feature-components/login/LoginConfigurator.jsx +1149 -0
  255. package/src/views/feature-components/login/TwoFactorSetupModal.jsx +411 -0
  256. package/src/views/feature-components/login/simplifyMenu.js +45 -0
  257. package/src/views/feature-components/system-config/ManageSystemConfigs.jsx +284 -0
  258. package/src/views/feature-components/system-config/SystemConfig.jsx +299 -0
  259. package/src/views/feature-components/users/ChangePasswordModal.jsx +243 -0
  260. package/src/views/feature-components/users/PasswordField.jsx +56 -0
  261. package/dist/index.css +0 -1
  262. package/dist/index.js +0 -32001
  263. package/dist/index.js.map +0 -1
@@ -0,0 +1,113 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { Button, Drawer } from '@mui/material';
4
+ import Grid from '@mui/material/Grid2';
5
+ import '@/views/custom-components/SideOverlay.scss';
6
+ import useTrackEvent from '@/hooks/useTrackEvent';
7
+ import { useSelector } from 'react-redux';
8
+ import { getUseSkeleton } from '@/store/reducers/SkeletonReducer';
9
+ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
10
+ import { faArrowCircleUp } from '@fortawesome/free-solid-svg-icons';
11
+
12
+ export default function SideOverlay({
13
+ title,
14
+ onResetClick = () => {},
15
+ showSideBarTitle = true,
16
+ resetButtonLabel,
17
+ ModalProps = {},
18
+ FormBody,
19
+ handleOverlayState,
20
+ overlayOpen,
21
+ setHasMore = false,
22
+ isForm = true,
23
+ formProps,
24
+ dataTestId,
25
+ }) {
26
+ const useSkeleton = useSelector(getUseSkeleton);
27
+ const trackEvent = useTrackEvent();
28
+ // console.log(overlayOpen);
29
+ return (
30
+ <div className="side-overlay">
31
+ {formProps?.isLoading && useSkeleton ? (
32
+ <div className="bg-gray-300 animate-pulse rounded-sm fixed top-1/2 right-0 transform -translate-y-1/2 w-8 h-20"></div>
33
+ ) : (
34
+ <>
35
+ {showSideBarTitle && (
36
+ <Grid className="button-container z-1200">
37
+ <Button
38
+ size="small"
39
+ className={`overlay-button ${overlayOpen ? 'overlay-active' : ''}`}
40
+ onClick={handleOverlayState}
41
+ data-testid={dataTestId}
42
+ >
43
+ {title}&nbsp;&nbsp;
44
+ <FontAwesomeIcon icon={faArrowCircleUp} className="" />
45
+ </Button>
46
+ </Grid>
47
+ )}
48
+ </>
49
+ )}
50
+
51
+ <Drawer
52
+ classes={{
53
+ paper: `overlay ${overlayOpen ? 'open' : ''} w-full sm:w-[350px]`,
54
+ }}
55
+ ModalProps={ModalProps}
56
+ anchor="right"
57
+ open={overlayOpen}
58
+ onClose={() => {
59
+ trackEvent('button_click', {
60
+ button_name: `${title}-close-button`,
61
+ button_type: 'filter_close',
62
+ button_id: dataTestId,
63
+ });
64
+ handleOverlayState();
65
+ }}
66
+ >
67
+ <div className="p-2.5 px-5 flex border-b font-medium text-lg justify-between">
68
+ {formProps?.isLoading && useSkeleton ? (
69
+ <div className="w-full flex">
70
+ <div className="bg-gray-300 animate-pulse rounded-sm h-[30px] w-[160px]"></div>
71
+ </div>
72
+ ) : (
73
+ title.toUpperCase()
74
+ )}
75
+ {resetButtonLabel && (
76
+ <Button
77
+ size="small"
78
+ className="reset-button"
79
+ variant="contained"
80
+ color="error"
81
+ onClick={onResetClick}
82
+ data-testid={`${dataTestId}-reset-button`}
83
+ >
84
+ {resetButtonLabel || 'Reset'}
85
+ </Button>
86
+ )}
87
+ </div>
88
+
89
+ <div className="overlay-body overflow-y-auto max-h-[90vh]">
90
+ {isForm && FormBody && (
91
+ <FormBody handleOverlayState={handleOverlayState} setHasMore={setHasMore} {...formProps} />
92
+ )}
93
+ {!isForm && FormBody}
94
+ </div>
95
+ </Drawer>
96
+ </div>
97
+ );
98
+ }
99
+
100
+ SideOverlay.propTypes = {
101
+ title: PropTypes.any,
102
+ FormBody: PropTypes.any,
103
+ handleOverlayState: PropTypes.any,
104
+ overlayOpen: PropTypes.any,
105
+ setHasMore: PropTypes.any,
106
+ isForm: PropTypes.bool,
107
+ formProps: PropTypes.any,
108
+ dataTestId: PropTypes.any,
109
+ onResetClick: PropTypes.any,
110
+ resetButtonLabel: PropTypes.any,
111
+ ModalProps: PropTypes.any,
112
+ showSideBarTitle: PropTypes.bool,
113
+ };
@@ -0,0 +1,42 @@
1
+ .side-overlay {
2
+ position: relative;
3
+ }
4
+
5
+ .button-container {
6
+ position: fixed;
7
+ top: 50%;
8
+ right: 0;
9
+ transform: translateY(-50%);
10
+ }
11
+
12
+ .overlay-button {
13
+ background-color: #4caf50 !important;
14
+ color: #fff !important;
15
+ padding: 2px 20px;
16
+ border: none;
17
+ cursor: pointer;
18
+ font-size: 16px;
19
+ transform: rotate(90deg);
20
+ transform-origin: top right;
21
+ position: absolute;
22
+ right: 0;
23
+ top: 0;
24
+ white-space: nowrap;
25
+ }
26
+
27
+ .overlay {
28
+ width: 350px;
29
+ top: 0;
30
+ bottom: 0;
31
+ }
32
+
33
+ .overlay-active {
34
+ right: 350px;
35
+ }
36
+
37
+ .overlay-footer {
38
+ margin-top: 2rem;
39
+ margin-right: 1rem;
40
+ display: flex;
41
+ justify-content: flex-end;
42
+ }
@@ -0,0 +1,571 @@
1
+ .doctor-appointments {
2
+ height: calc(100vh - 138px) !important;
3
+
4
+ .left-box {
5
+ background-color: var(--color-background2);
6
+ padding: 12px;
7
+ border-radius: 10px;
8
+ height: 100%;
9
+ }
10
+
11
+ .left-box-new {
12
+ background-color: var(--color-background2);
13
+ border-radius: 5px;
14
+ border-top-left-radius: 0px;
15
+ height: 100%;
16
+ }
17
+
18
+ .right-box {
19
+ background-color: var(--color-background2);
20
+ padding: 12px;
21
+ border-radius: 10px;
22
+ height: 100%;
23
+ }
24
+ }
25
+
26
+ // full calendar customization for Today -view
27
+
28
+ .doctor-appointments {
29
+ .left-box,
30
+ .left-box-new {
31
+ .blocked_day {
32
+ background-color: #e6eef1 !important;
33
+ }
34
+ .fc-timegrid-more-link {
35
+ height: 50px;
36
+ }
37
+ .fc-timegrid-body tr {
38
+ height: 50px;
39
+ }
40
+
41
+ .fc-filterButton-button {
42
+ background-color: #29bf91;
43
+ color: #ffffff;
44
+ margin: 3px 15px !important;
45
+ padding: 4.8px 7.8px !important;
46
+
47
+ &:active,
48
+ &:focus {
49
+ background-color: #29bf91;
50
+ box-shadow: none;
51
+ }
52
+ }
53
+
54
+ .fc-daygrid-more-link {
55
+ display: none;
56
+ }
57
+
58
+ .small-screen-toolbar {
59
+ display: flex;
60
+ flex-wrap: wrap;
61
+ gap: 0.3rem;
62
+ /* Optional: Adds space between items */
63
+ align-items: center;
64
+ justify-content: center;
65
+ }
66
+
67
+ .fc-toolbar-title {
68
+ color: var(--color-primary);
69
+ font-weight: 500;
70
+ line-height: 28px;
71
+ }
72
+
73
+ .fc-header-toolbar {
74
+ width: 100%;
75
+ margin-bottom: 0.5rem;
76
+ // padding: 5px;
77
+ }
78
+
79
+ .fc-toolbar-title {
80
+ color: var(--color-primary);
81
+ font-weight: 500;
82
+ line-height: 28px;
83
+ }
84
+
85
+ .fc-toolbar-chunk {
86
+ display: flex;
87
+ // margin-right: 5px;
88
+ }
89
+
90
+ .fc-toolbar-chunk:nth-child(1) {
91
+ width: 45%;
92
+ min-width: fit-content;
93
+ }
94
+
95
+ .fc-toolbar-chunk:nth-child(2) {
96
+ width: 25%;
97
+ min-width: fit-content;
98
+ margin-left: 7px;
99
+ }
100
+
101
+ .fc-toolbar-chunk:nth-child(3) {
102
+ width: 30%;
103
+ min-width: fit-content;
104
+ justify-content: space-around;
105
+ margin-right: 7px;
106
+ }
107
+
108
+ .fc-direction-ltr .fc-toolbar > * > :not(:first-child) {
109
+ margin-left: 0em;
110
+ }
111
+
112
+ .fc-button-group {
113
+ .fc-button {
114
+ width: 33%;
115
+ padding: 9px;
116
+ }
117
+
118
+ // button{
119
+ // padding: 9px;
120
+ // }
121
+ }
122
+
123
+ .fc-today-button {
124
+ width: 50px;
125
+ }
126
+
127
+ // event details
128
+ .fc-patient-name {
129
+ margin: 0 0 0 2px;
130
+ line-height: 19px;
131
+ font-weight: 500;
132
+ overflow: hidden;
133
+ white-space: nowrap;
134
+ text-overflow: ellipsis;
135
+ }
136
+
137
+ .fc-event {
138
+ background-color: transparent !important;
139
+ border: none !important;
140
+ display: flex;
141
+ cursor: pointer;
142
+ }
143
+
144
+ .fc-day-today {
145
+ background-color: var(--color-background2);
146
+ }
147
+
148
+ .fc-scrollgrid {
149
+ border-left: none !important;
150
+ }
151
+
152
+ // .fc-scroller {
153
+ // scrollbar-width: none;
154
+ // }
155
+
156
+ .fc-scroller {
157
+ overflow: auto auto !important;
158
+ }
159
+
160
+ .fc-timegrid-slot-label-cushion {
161
+ line-height: 14px;
162
+ font-weight: 500;
163
+ color: var(--color-primary);
164
+ margin: auto 0;
165
+ }
166
+
167
+ // event item take equivalent visual space
168
+ .fc-event-main {
169
+ display: flex;
170
+ height: fit-content !important;
171
+ cursor: pointer;
172
+ // margin: auto 0;
173
+ width: 100%;
174
+ background-color: transparent !important;
175
+ }
176
+
177
+ .fc-button-group button {
178
+ width: 90px;
179
+ height: 40px;
180
+ background-color: var(--color-background2) !important;
181
+ color: var(--color-primary) !important;
182
+ border: 0.73px solid #e6eef1 !important;
183
+ padding: 10px;
184
+ border-radius: 6px 0 0 6px;
185
+ box-shadow: none !important;
186
+ }
187
+
188
+ .fc-button-group .fc-button-active {
189
+ background-color: #e6eef1 !important;
190
+ }
191
+
192
+ .fc-timegrid-event-harness > .fc-timegrid-event {
193
+ position: absolute;
194
+ }
195
+
196
+ .fc-col-header-cell {
197
+ line-height: 15px;
198
+ font-weight: 500;
199
+ color: var(--color-primary);
200
+ }
201
+
202
+ .fc-timegrid-event-harness-inset .fc-timegrid-event,
203
+ .fc-timegrid-event.fc-event-mirror,
204
+ .fc-timegrid-more-link {
205
+ box-shadow: none !important;
206
+ }
207
+ colgroup col {
208
+ width: 70px !important;
209
+ background-color: var(--color-background2);
210
+ }
211
+
212
+ // previous and next button
213
+ .fc-prev-button,
214
+ .fc-next-button {
215
+ width: 35px !important;
216
+ height: 35px !important;
217
+ padding: 0 !important;
218
+ border-radius: 6px !important;
219
+
220
+ .fc-icon {
221
+ color: var(--color-primary);
222
+ }
223
+ }
224
+
225
+ .fc-next-button {
226
+ margin-left: 10px !important;
227
+ }
228
+
229
+ // Today button
230
+ .fc-today-button {
231
+ background-color: var(--color-primary) !important;
232
+ width: 70px !important;
233
+ height: 35px !important;
234
+ margin-right: 10px !important;
235
+ margin-left: 10px !important;
236
+ }
237
+
238
+ // table header for current date
239
+ .fc-col-header {
240
+ .fc-day-today {
241
+ background-color: var(--color-primary) !important;
242
+ color: white;
243
+ }
244
+ }
245
+
246
+ // calendar resize fix when sidebar collapse
247
+ .fc-col-header,
248
+ .fc-daygrid-body,
249
+ .fc-scrollgrid-sync-table,
250
+ .fc-timegrid-body,
251
+ .fc-timegrid-body table {
252
+ width: 100% !important;
253
+ }
254
+
255
+ .fc-daygrid-event {
256
+ background-color: transparent;
257
+ }
258
+
259
+ // month view change cell height
260
+ .fc-scrollgrid-sync-table {
261
+ .fc-scrollgrid-sync-inner {
262
+ height: 112px !important;
263
+ min-height: 112px !important;
264
+ }
265
+ }
266
+
267
+ .fc-scrollgrid-section-body {
268
+ .fc-day {
269
+ height: 112px !important;
270
+ min-height: 112px !important;
271
+ }
272
+ }
273
+
274
+ .fc-listWeek-view {
275
+ overflow-x: auto;
276
+ }
277
+
278
+ .fc-listWeek-button {
279
+ border-radius: 0 6px 6px 0 !important;
280
+ }
281
+
282
+ .fc-list-table .fc-list-event:hover td.fc-list-event-time {
283
+ border-radius: 20px 0 0 20px;
284
+ }
285
+
286
+ .fc-list-table .fc-list-event:hover td.fc-list-event-title {
287
+ border-radius: 0 20px 20px 0;
288
+ }
289
+
290
+ .fc-list-event {
291
+ border-radius: 10px;
292
+ box-shadow: 0 2px 3px rgba(180, 179, 179, 0.3);
293
+ border: none !important;
294
+ margin: 10px;
295
+ }
296
+
297
+ .fc-list-event,
298
+ .fc-list-day-cushion {
299
+ td {
300
+ border: none;
301
+ }
302
+ }
303
+
304
+ .fc-list-event-time {
305
+ width: 15%;
306
+ line-height: 19px;
307
+ display: flex;
308
+ align-items: center;
309
+ }
310
+
311
+ .fc-list-event-title {
312
+ width: 85%;
313
+
314
+ .list-patient-name {
315
+ // width: 100%;
316
+ line-height: 19px;
317
+ font-weight: 500;
318
+ overflow: hidden;
319
+ white-space: nowrap;
320
+ text-overflow: ellipsis;
321
+ color: #616161;
322
+ }
323
+
324
+ .list-patient-detail {
325
+ line-height: 19px;
326
+ font-weight: 400;
327
+ // overflow: hidden;
328
+ white-space: nowrap;
329
+ text-overflow: ellipsis;
330
+ color: #616161;
331
+ }
332
+ }
333
+
334
+ .fc-list-event-dot {
335
+ display: none;
336
+ }
337
+
338
+ .fc-list-day {
339
+ .fc-list-day-cushion {
340
+ background-color: var(--color-background2);
341
+ }
342
+
343
+ .fc-list-day-text {
344
+ color: var(--color-primary);
345
+ font-weight: 600;
346
+ line-height: 20px;
347
+ }
348
+
349
+ .fc-list-day-side-text {
350
+ color: var(--color-primary);
351
+ font-weight: 600;
352
+ line-height: 20px;
353
+ }
354
+ }
355
+
356
+ .appointment-count {
357
+ display: flex;
358
+ align-items: center;
359
+ justify-content: center;
360
+ width: 30px;
361
+ height: 30px;
362
+ border-radius: 50%;
363
+ background-color: #29bf91;
364
+ color: white;
365
+ font-weight: 500;
366
+ }
367
+ }
368
+ }
369
+
370
+ .doctor-appointments {
371
+ .left-box,
372
+ .left-box-new {
373
+ // existing styles here
374
+
375
+ @media (max-width: 1200px) {
376
+ .fc-patient-name {
377
+ font-size: 12px;
378
+ }
379
+
380
+ .fc-toolbar-title {
381
+ font-size: 12px;
382
+ }
383
+
384
+ .fc-timegrid-slot-label-cushion {
385
+ font-size: 9px;
386
+ }
387
+
388
+ .fc-button-group {
389
+ .fc-button {
390
+ font-size: 12px;
391
+ }
392
+ }
393
+
394
+ .fc-today-button {
395
+ font-size: 12px;
396
+ }
397
+
398
+ .fc-list-day {
399
+ .fc-list-day-cushion {
400
+ background-color: var(--color-background2);
401
+ }
402
+
403
+ .fc-list-day-text {
404
+ font-size: 12px;
405
+ }
406
+
407
+ .fc-list-day-side-text {
408
+ font-size: 12px;
409
+ }
410
+ }
411
+
412
+ .fc-list-event-title {
413
+ width: 85%;
414
+
415
+ .list-patient-name {
416
+ font-size: 12px;
417
+ }
418
+
419
+ .list-patient-detail {
420
+ font-size: 12px;
421
+ }
422
+ }
423
+
424
+ .fc-list-event-time {
425
+ font-size: 9px;
426
+ }
427
+
428
+ .appointment-count {
429
+ font-size: 14px;
430
+ }
431
+
432
+ .fc-col-header-cell {
433
+ font-size: 11px;
434
+ }
435
+ }
436
+
437
+ @media (min-width: 1201px) and (max-width: 1536px) {
438
+ .fc-patient-name {
439
+ font-size: 13px;
440
+ }
441
+
442
+ .fc-toolbar-title {
443
+ font-size: 13px;
444
+ }
445
+
446
+ .fc-timegrid-slot-label-cushion {
447
+ font-size: 10px;
448
+ }
449
+
450
+ .fc-button-group {
451
+ .fc-button {
452
+ font-size: 13px;
453
+ }
454
+ }
455
+
456
+ .fc-today-button {
457
+ font-size: 13px;
458
+ }
459
+
460
+ .fc-list-day {
461
+ .fc-list-day-cushion {
462
+ background-color: var(--color-background2);
463
+ }
464
+
465
+ .fc-list-day-text {
466
+ font-size: 13px;
467
+ }
468
+
469
+ .fc-list-day-side-text {
470
+ font-size: 13px;
471
+ }
472
+ }
473
+
474
+ .fc-list-event-title {
475
+ width: 85%;
476
+
477
+ .list-patient-name {
478
+ font-size: 13px;
479
+ }
480
+
481
+ .list-patient-detail {
482
+ font-size: 13px;
483
+ }
484
+ }
485
+
486
+ .fc-list-event-time {
487
+ font-size: 10px;
488
+ }
489
+
490
+ .appointment-count {
491
+ font-size: 15px;
492
+ }
493
+
494
+ .fc-col-header-cell {
495
+ font-size: 12px;
496
+ }
497
+ }
498
+
499
+ @media (min-width: 1537px) {
500
+ .fc-patient-name {
501
+ font-size: 14px;
502
+ }
503
+
504
+ .fc-toolbar-title {
505
+ font-size: 14px;
506
+ }
507
+
508
+ .fc-timegrid-slot-label-cushion {
509
+ font-size: 11px;
510
+ }
511
+
512
+ .fc-button-group {
513
+ .fc-button {
514
+ font-size: 14px;
515
+ }
516
+ }
517
+
518
+ .fc-today-button {
519
+ font-size: 14px;
520
+ }
521
+
522
+ .fc-list-day {
523
+ .fc-list-day-cushion {
524
+ background-color: var(--color-background2);
525
+ }
526
+
527
+ .fc-list-day-text {
528
+ font-size: 14px;
529
+ }
530
+
531
+ .fc-list-day-side-text {
532
+ font-size: 14px;
533
+ }
534
+ }
535
+
536
+ .fc-list-event-title {
537
+ width: 85%;
538
+
539
+ .list-patient-name {
540
+ font-size: 14px;
541
+ }
542
+
543
+ .list-patient-detail {
544
+ font-size: 14px;
545
+ }
546
+ }
547
+
548
+ .fc-list-event-time {
549
+ font-size: 11px;
550
+ }
551
+
552
+ .appointment-count {
553
+ font-size: 16px;
554
+ }
555
+
556
+ .fc-col-header-cell {
557
+ font-size: 13px;
558
+ }
559
+ }
560
+ }
561
+ }
562
+
563
+ .appointment-card {
564
+ padding: 12px;
565
+ border-radius: 10px;
566
+ border: none;
567
+ box-shadow: none;
568
+ line-height: normal;
569
+ background-color: #f2f6f8;
570
+ margin: 15px 0;
571
+ }
File without changes