feat: add lab tests, patient file management, and prescription improvements

This commit is contained in:
SajjadMahmoody
2026-04-17 20:15:38 +03:30
parent 6a301c5529
commit bf0ada051f
53 changed files with 3201 additions and 387 deletions
+269 -3
View File
@@ -133,12 +133,10 @@ @media (max-width: 639px) {
}
}
/* Hide FilePond dropzone in view-only file upload fields */
[data-hide-dropzone] .filepond--drop-label {
display: none !important;
}
/* Re-enable pointer events for media player controls inside disabled fields */
[data-hide-dropzone] .filepond--item,
[data-hide-dropzone] .filepond--file-wrapper,
[data-hide-dropzone] .filepond--media-preview-wrapper,
@@ -150,7 +148,6 @@ [data-hide-dropzone] .audioplayer {
pointer-events: auto !important;
}
/* Lift speed button above any overlay */
[data-hide-dropzone] .filepond--media-player-button-playbackrate {
position: relative !important;
z-index: 10 !important;
@@ -199,3 +196,272 @@ .fi-pagination .fi-pagination-records-per-page-select-ctn {
display: flex !important;
justify-content: flex-end !important;
}
.ProseMirror p {
margin-top: 0;
margin-bottom: 0;
min-height: 1.4em;
}
.fi-modal-content .prose p,
[dir="rtl"] .prose p {
margin-top: 0.1em;
margin-bottom: 0.1em;
}
.fi-photo-gallery .filepond--root {
min-height: 60px !important;
margin-top: 8px !important;
overflow: visible !important;
}
.fi-photo-gallery-view .filepond--root,
[data-hide-dropzone] .filepond--root {
background-color: transparent !important;
border: none !important;
box-shadow: none !important;
}
.fi-photo-gallery .filepond--list {
position: relative !important;
transform: none !important;
display: flex !important;
flex-wrap: wrap !important;
gap: 6px !important;
padding: 8px !important;
height: auto !important;
}
.fi-photo-gallery .filepond--item {
display: block !important;
position: relative !important;
transform: none !important;
width: 100px !important;
height: 56px !important;
margin: 0 !important;
overflow: hidden !important;
border-radius: 6px !important;
flex-shrink: 0 !important;
}
.fi-photo-gallery .filepond--image-preview-wrapper {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
max-height: none !important;
margin-top: 0 !important;
}
.fi-photo-gallery .filepond--image-preview-overlay,
.fi-photo-gallery .filepond--image-preview {
height: 56px !important;
max-height: 56px !important;
}
.fi-photo-gallery .filepond--image-preview canvas {
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
}
.fi-photo-gallery .filepond--panel-root,
.fi-photo-gallery .filepond--panel-top,
.fi-photo-gallery .filepond--panel-center,
.fi-photo-gallery .filepond--panel-bottom,
.fi-photo-gallery .filepond--item .filepond--panel {
background-color: transparent !important;
border: none !important;
box-shadow: none !important;
}
.fi-photo-gallery .filepond--file {
padding: 0 !important;
}
.fi-photo-gallery .filepond--file-action-button {
width: 1.4rem !important;
height: 1.4rem !important;
}
.fi-photo-gallery .filepond--file-info {
display: none !important;
}
.fi-photo-gallery .filepond--drop-label {
margin-top: 10px !important;
}
.fi-video-gallery .filepond--root {
min-height: 60px !important;
margin-top: 8px !important;
overflow: visible !important;
}
.fi-video-gallery .filepond--list {
position: relative !important;
transform: none !important;
display: flex !important;
flex-wrap: wrap !important;
gap: 6px !important;
padding: 8px !important;
height: auto !important;
}
.fi-video-gallery .filepond--item {
display: block !important;
position: relative !important;
transform: none !important;
width: 160px !important;
height: 90px !important;
margin: 0 !important;
overflow: hidden !important;
border-radius: 6px !important;
flex-shrink: 0 !important;
background-color: #111 !important;
}
.fi-video-gallery .filepond--media-preview-wrapper,
.fi-video-gallery .filepond--media-preview {
width: 100% !important;
height: 100% !important;
position: absolute !important;
top: 0 !important;
left: 0 !important;
}
.fi-video-gallery .filepond--media-preview video {
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
}
.fi-video-gallery .filepond--item .filepond--panel {
background-color: transparent !important;
border: none !important;
box-shadow: none !important;
}
.fi-video-gallery .filepond--file {
padding: 0 !important;
}
.fi-video-gallery .filepond--file-info {
display: none !important;
}
.fi-video-gallery .filepond--file-action-button {
width: 1.4rem !important;
height: 1.4rem !important;
}
.fi-video-gallery .filepond--drop-label {
margin-top: 10px !important;
}
.fi-photo-gallery-view .filepond--file-action-button.filepond--action-remove-item,
.fi-photo-gallery-view .filepond--file-action-button.filepond--action-revert-item-processing,
.fi-photo-gallery-view .filepond--file-action-button.filepond--action-abort-item-load,
[data-hide-dropzone] .filepond--file-action-button.filepond--action-remove-item,
[data-hide-dropzone] .filepond--file-action-button.filepond--action-revert-item-processing,
[data-hide-dropzone] .filepond--file-action-button.filepond--action-abort-item-load {
display: none !important;
}
#fi-lightbox {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.92);
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease;
direction: ltr;
}
#fi-lightbox.lb-open {
opacity: 1;
pointer-events: all;
}
#fi-lb-wrap {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
overflow: hidden;
}
#fi-lb-img {
max-width: 90vw;
max-height: 90vh;
object-fit: contain;
border-radius: 4px;
transition: opacity 0.15s ease, transform 0.2s ease;
transform-origin: center center;
user-select: none;
pointer-events: none;
cursor: default;
}
#fi-lb-img.lb-zoomed {
pointer-events: auto;
cursor: grab;
}
#fi-lb-img.lb-zoomed.lb-dragging {
cursor: grabbing;
transition: opacity 0.15s ease;
}
#fi-lb-close {
position: absolute;
top: 1rem;
right: 1rem;
z-index: 10;
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
background: rgba(255, 255, 255, 0.15);
border: none;
color: white;
font-size: 1.25rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
line-height: 1;
}
#fi-lb-close:hover {
background: rgba(255, 255, 255, 0.35);
}
#fi-lb-prev,
#fi-lb-next {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 10;
width: 3rem;
height: 3rem;
border-radius: 50%;
background: rgba(255, 255, 255, 0.15);
border: none;
color: white;
font-size: 1.75rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
line-height: 1;
}
#fi-lb-prev { left: 1rem; }
#fi-lb-next { right: 1rem; }
#fi-lb-prev:hover,
#fi-lb-next:hover {
background: rgba(255, 255, 255, 0.35);
}
#fi-lb-counter {
position: absolute;
bottom: 1.25rem;
left: 50%;
transform: translateX(-50%);
color: rgba(255, 255, 255, 0.85);
font-size: 0.875rem;
background: rgba(0, 0, 0, 0.45);
padding: 0.2rem 0.75rem;
border-radius: 9999px;
pointer-events: none;
white-space: nowrap;
}
#fi-lb-hint {
position: absolute;
bottom: 1.25rem;
right: 1.5rem;
color: rgba(255, 255, 255, 0.35);
font-size: 0.7rem;
pointer-events: none;
direction: rtl;
}