[IDC-1129] - DICOM Tag Viewer extension (#2022)
* WIP render top level tags. * Add drop down to select series. * Fix errors with type 2 sequences. * WIP swap instance. * Fix formatting and make fullscreen. * Remove debuggers. * Finish formatting. * Fix error with double SeriesNumber deconstruction. * Address reviewer comments.
This commit is contained in:
1 parent
a7b5f1847a
commit
0ef88e88eb
23 files changed
+612
-7
No files matched your search
@@ -38,6 +38,7 @@ function _show({
|
||||
onClose = null,
|
||||
closeButton = true,
|
||||
title = null,
|
||||
fullscreen = false,
|
||||
customClassName = null,
|
||||
}) {
|
||||
return serviceImplementation._show({
|
||||
@@ -48,6 +49,7 @@ function _show({
|
||||
onClose,
|
||||
closeButton,
|
||||
title,
|
||||
fullscreen,
|
||||
customClassName,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ const OHIFModal = ({
|
||||
closeButton,
|
||||
shouldCloseOnEsc,
|
||||
isOpen,
|
||||
fullscreen,
|
||||
title,
|
||||
onClose,
|
||||
children,
|
||||
@@ -41,9 +42,13 @@ const OHIFModal = ({
|
||||
);
|
||||
};
|
||||
|
||||
const classes = fullscreen
|
||||
? classNames('OHIFModal', className, 'OHIFModal-fullscreen')
|
||||
: classNames('OHIFModal', className);
|
||||
|
||||
return (
|
||||
<Modal
|
||||
className={classNames('OHIFModal', className)}
|
||||
className={classes}
|
||||
data-cy="modal"
|
||||
shouldCloseOnEsc={shouldCloseOnEsc}
|
||||
isOpen={isOpen}
|
||||
|
||||
@@ -18,9 +18,17 @@
|
||||
@media (min-width: 768px)
|
||||
width: 600px
|
||||
|
||||
&.OHIFModal-fullscreen
|
||||
width: 95%
|
||||
|
||||
@media (min-width: 992px)
|
||||
width: 900px
|
||||
|
||||
&.OHIFModal-fullscreen
|
||||
width: 95%
|
||||
|
||||
|
||||
|
||||
&__content
|
||||
padding: 20px
|
||||
max-height: 90vh;
|
||||
|
||||
@@ -36,6 +36,7 @@ const ModalProvider = ({ children, modal: Modal, service }) => {
|
||||
closeButton: true,
|
||||
title: null,
|
||||
customClassName: '',
|
||||
fullscreen: false,
|
||||
};
|
||||
|
||||
const [options, setOptions] = useState(DEFAULT_OPTIONS);
|
||||
@@ -78,6 +79,7 @@ const ModalProvider = ({ children, modal: Modal, service }) => {
|
||||
title,
|
||||
customClassName,
|
||||
shouldCloseOnEsc,
|
||||
fullscreen,
|
||||
closeButton,
|
||||
} = options;
|
||||
|
||||
@@ -89,6 +91,7 @@ const ModalProvider = ({ children, modal: Modal, service }) => {
|
||||
shouldCloseOnEsc={shouldCloseOnEsc}
|
||||
isOpen={isOpen}
|
||||
title={title}
|
||||
fullscreen={fullscreen}
|
||||
closeButton={closeButton}
|
||||
onClose={() => {
|
||||
if (onClose) {
|
||||
|
||||
@@ -29,6 +29,7 @@ import OHIFDicomSegmentationExtension from '@ohif/extension-dicom-segmentation';
|
||||
import OHIFDicomRtExtension from '@ohif/extension-dicom-rt';
|
||||
import OHIFDicomMicroscopyExtension from '@ohif/extension-dicom-microscopy';
|
||||
import OHIFDicomPDFExtension from '@ohif/extension-dicom-pdf';
|
||||
import OHIFDicomTagBrowserExtension from '@ohif/extension-dicom-tag-browser';
|
||||
// Add this for Debugging purposes:
|
||||
//import OHIFDebuggingExtension from '@ohif/extension-debugging';
|
||||
import { version } from '../package.json';
|
||||
@@ -53,6 +54,7 @@ const appProps = {
|
||||
OHIFDicomPDFExtension,
|
||||
OHIFDicomSegmentationExtension,
|
||||
OHIFDicomRtExtension,
|
||||
OHIFDicomTagBrowserExtension,
|
||||
//OHIFDebuggingExtension,
|
||||
],
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user