@ohif/app 3.8.0-beta.5 → 3.8.0-beta.50
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/{12.bundle.1c0fcebb2e63f538b03b.js → 12.bundle.aebca43849fb89e4487c.js} +9 -11
- package/dist/{125.bundle.253395f320b72180da63.js → 125.bundle.df666cb677e5a8982157.js} +4 -5
- package/dist/{663.bundle.68a67d3504dc24cccc1a.js → 170.bundle.c897981826842ee375b5.js} +97 -89
- package/dist/{181.bundle.2ddc6f90740895a3949c.js → 181.bundle.aff453c348111303ceac.js} +107 -74
- package/dist/181.css +1 -1
- package/dist/{370.bundle.085badd6055e8feea84f.js → 185.bundle.87b32cd8145a37e8d07b.js} +338 -209
- package/dist/{19.bundle.05ccf775cb70682dfcdf.js → 19.bundle.89cb082532a16f04ce74.js} +127 -136
- package/dist/{99.bundle.51efd3493cd1de6bf63c.js → 199.bundle.08204857a65f29ec5dca.js} +215 -162
- package/dist/202.bundle.495cba6bbee744cf8f72.js +18239 -0
- package/dist/20fc4c659b85ccd2a9c0.wasm +0 -0
- package/dist/{220.bundle.f7e1c96c94245e70f2be.js → 223.bundle.d4ac6ef2cfe47a9c4afc.js} +4422 -3671
- package/dist/{23.bundle.e008ad788170f2ed5569.js → 23.bundle.9d989522a6e4fdcb9c72.js} +1 -1
- package/dist/{250.bundle.8084960e3318cda37317.js → 250.bundle.577da106dd763c7bf9d0.js} +22 -27
- package/dist/{281.bundle.64640869327edc0d2cae.js → 281.bundle.987f88c6aea8b8bc35e4.js} +23 -25
- package/dist/{82.bundle.9e269153bafc15562988.js → 290.bundle.fac1e48a4027ad949764.js} +1244 -695
- package/dist/{359.bundle.e2f5680a854894c32944.js → 359.bundle.deef89c05907539f5718.js} +27 -30
- package/dist/{410.bundle.8bb12b01e1f838340950.js → 410.bundle.0c7d688cd70a4980fdbb.js} +24 -28
- package/dist/{417.bundle.af0a207c29b109f84159.js → 417.bundle.5c66801d23d0e98c00e6.js} +2 -2
- package/dist/{451.bundle.9fd36f52ff69594f0669.js → 451.bundle.311cd3be9916e08450e9.js} +28 -41
- package/dist/{221.bundle.da7732c6f158b6f2b0d8.js → 466.bundle.e0169e052354437a4fd0.js} +161 -151
- package/dist/{471.bundle.b3d77b83b1593c09a504.js → 471.bundle.eeb78105b59e688832a6.js} +31 -35
- package/dist/{788.bundle.428c065311327135d817.js → 483.bundle.17425951eb8bd48dce01.js} +131 -180
- package/dist/{506.bundle.c3d01c4b6cc01096ce9e.js → 506.bundle.65012c25d91e5be25425.js} +13 -18
- package/dist/{530.bundle.a03b6f942ace3e1baa1e.js → 530.bundle.f904325ef4195d69ac0e.js} +10 -3
- package/dist/{613.bundle.de79995392c3fd2e9637.js → 613.bundle.a1e84b764ea6f872169a.js} +76 -50
- package/dist/{774.bundle.4b2dc46a35012b898e1a.js → 661.bundle.949c984fe2f9f753b65c.js} +1851 -8944
- package/dist/{686.bundle.dccef1f36e4bc79bcc48.js → 686.bundle.62c827fe4f0d054c164e.js} +4 -5
- package/dist/{687.bundle.763e03b2624b6cc03ad2.js → 687.bundle.72ba0b232154d01b3b5c.js} +19 -35
- package/dist/{342.bundle.22d2df5cf6d83b24acee.js → 738.bundle.443a3c3dd2aaa0d02a38.js} +925 -554
- package/dist/{814.bundle.d45ba7f8b856fbd4e75d.js → 814.bundle.f6d799e21bcc5b5b0ab3.js} +9 -11
- package/dist/{822.bundle.891f2e57b1b7bc2f4cb4.js → 822.bundle.8b745e28bc9eb9afbc61.js} +14 -16
- package/dist/{757.bundle.ec8301d8e70d2b990f65.js → 831.bundle.127a3064e8844d6d2c82.js} +1 -368
- package/dist/{886.bundle.d5116d9b8ea4964b68a0.js → 886.bundle.94a4536167d0f8cae1ae.js} +19 -23
- package/dist/95.bundle.2236101be3cc36b322e8.js +8769 -0
- package/dist/{236.bundle.09d155c6f44b5a44e4bf.js → 965.bundle.527f031a2bf5fc4202a0.js} +104 -126
- package/dist/{app.bundle.671d2bb084d88c0cf3b7.js → app.bundle.be53f58aee6b64f5a624.js} +185194 -61390
- package/dist/app.bundle.css +11 -11
- package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
- package/dist/{dicom-microscopy-viewer.bundle.2c146384eb9466d02ff8.js → dicom-microscopy-viewer.bundle.a7d5060eead13771e784.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/{index.worker.e62ecca63f1a2e124230.worker.js → index.worker.64c896c4316fcd506666.worker.js} +2 -2
- package/dist/index.worker.64c896c4316fcd506666.worker.js.map +1 -0
- package/dist/serve.json +12 -0
- package/dist/sw.js +1 -1
- package/package.json +21 -21
- package/dist/202.bundle.d3490836f71e001dd30f.js +0 -6336
- package/dist/604.bundle.a51f83e64004bca5f497.js +0 -1848
- package/dist/743.bundle.489f7df3a089d4d374e1.js +0 -78007
- package/dist/75788f12450d4c5ed494.wasm +0 -0
- package/dist/775.bundle.2285e7e0e67878948c0d.js +0 -1009
- package/dist/957.bundle.9ea4506963ef8b2d84ba.js +0 -30077
- package/dist/index.worker.e62ecca63f1a2e124230.worker.js.map +0 -1
- /package/dist/{82.css → 290.css} +0 -0
- /package/dist/{221.css → 466.css} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[19,579],{
|
|
3
3
|
|
|
4
4
|
/***/ 41832:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -20,8 +20,8 @@ var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
|
20
20
|
var es = __webpack_require__(261);
|
|
21
21
|
// EXTERNAL MODULE: ../../../node_modules/@xstate/react/es/index.js + 8 modules
|
|
22
22
|
var react_es = __webpack_require__(44530);
|
|
23
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
24
|
-
var src = __webpack_require__(
|
|
23
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
|
|
24
|
+
var src = __webpack_require__(18414);
|
|
25
25
|
;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/contexts/TrackedMeasurementsContext/measurementTrackingMachine.js
|
|
26
26
|
|
|
27
27
|
const RESPONSE = {
|
|
@@ -350,8 +350,11 @@ const defaultOptions = {
|
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
352
|
|
|
353
|
+
// EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
|
|
354
|
+
var i18next = __webpack_require__(73577);
|
|
353
355
|
;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/contexts/TrackedMeasurementsContext/promptBeginTracking.js
|
|
354
356
|
|
|
357
|
+
|
|
355
358
|
const promptBeginTracking_RESPONSE = {
|
|
356
359
|
NO_NEVER: -1,
|
|
357
360
|
CANCEL: 0,
|
|
@@ -359,11 +362,10 @@ const promptBeginTracking_RESPONSE = {
|
|
|
359
362
|
ADD_SERIES: 2,
|
|
360
363
|
SET_STUDY_AND_SERIES: 3
|
|
361
364
|
};
|
|
362
|
-
function promptBeginTracking(
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
} = _ref;
|
|
365
|
+
function promptBeginTracking({
|
|
366
|
+
servicesManager,
|
|
367
|
+
extensionManager
|
|
368
|
+
}, ctx, evt) {
|
|
367
369
|
const {
|
|
368
370
|
uiViewportDialogService
|
|
369
371
|
} = servicesManager.services;
|
|
@@ -384,21 +386,21 @@ function promptBeginTracking(_ref, ctx, evt) {
|
|
|
384
386
|
}
|
|
385
387
|
function _askTrackMeasurements(uiViewportDialogService, viewportId) {
|
|
386
388
|
return new Promise(function (resolve, reject) {
|
|
387
|
-
const message = 'Track measurements for this series?';
|
|
389
|
+
const message = i18next/* default */.Z.t('MeasurementTable:Track measurements for this series?');
|
|
388
390
|
const actions = [{
|
|
389
391
|
id: 'prompt-begin-tracking-cancel',
|
|
390
392
|
type: src/* ButtonEnums.type */.LZ.dt.secondary,
|
|
391
|
-
text: 'No',
|
|
393
|
+
text: i18next/* default */.Z.t('Common:No'),
|
|
392
394
|
value: promptBeginTracking_RESPONSE.CANCEL
|
|
393
395
|
}, {
|
|
394
396
|
id: 'prompt-begin-tracking-no-do-not-ask-again',
|
|
395
397
|
type: src/* ButtonEnums.type */.LZ.dt.secondary,
|
|
396
|
-
text: 'No, do not ask again',
|
|
398
|
+
text: i18next/* default */.Z.t('MeasurementTable:No, do not ask again'),
|
|
397
399
|
value: promptBeginTracking_RESPONSE.NO_NEVER
|
|
398
400
|
}, {
|
|
399
401
|
id: 'prompt-begin-tracking-yes',
|
|
400
402
|
type: src/* ButtonEnums.type */.LZ.dt.primary,
|
|
401
|
-
text: 'Yes',
|
|
403
|
+
text: i18next/* default */.Z.t('Common:Yes'),
|
|
402
404
|
value: promptBeginTracking_RESPONSE.SET_STUDY_AND_SERIES
|
|
403
405
|
}];
|
|
404
406
|
const onSubmit = result => {
|
|
@@ -430,11 +432,10 @@ const promptTrackNewSeries_RESPONSE = {
|
|
|
430
432
|
SET_STUDY_AND_SERIES: 3,
|
|
431
433
|
NO_NOT_FOR_SERIES: 4
|
|
432
434
|
};
|
|
433
|
-
function promptTrackNewSeries(
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
} = _ref;
|
|
435
|
+
function promptTrackNewSeries({
|
|
436
|
+
servicesManager,
|
|
437
|
+
extensionManager
|
|
438
|
+
}, ctx, evt) {
|
|
438
439
|
const {
|
|
439
440
|
UIViewportDialogService
|
|
440
441
|
} = servicesManager.services;
|
|
@@ -525,6 +526,7 @@ function _askSaveDiscardOrCancel(UIViewportDialogService, viewportId) {
|
|
|
525
526
|
}
|
|
526
527
|
/* harmony default export */ const TrackedMeasurementsContext_promptTrackNewSeries = (promptTrackNewSeries);
|
|
527
528
|
;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/contexts/TrackedMeasurementsContext/promptTrackNewStudy.js
|
|
529
|
+
|
|
528
530
|
const promptTrackNewStudy_RESPONSE = {
|
|
529
531
|
NO_NEVER: -1,
|
|
530
532
|
CANCEL: 0,
|
|
@@ -533,11 +535,10 @@ const promptTrackNewStudy_RESPONSE = {
|
|
|
533
535
|
SET_STUDY_AND_SERIES: 3,
|
|
534
536
|
NO_NOT_FOR_SERIES: 4
|
|
535
537
|
};
|
|
536
|
-
function promptTrackNewStudy(
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
} = _ref;
|
|
538
|
+
function promptTrackNewStudy({
|
|
539
|
+
servicesManager,
|
|
540
|
+
extensionManager
|
|
541
|
+
}, ctx, evt) {
|
|
541
542
|
const {
|
|
542
543
|
UIViewportDialogService
|
|
543
544
|
} = servicesManager.services;
|
|
@@ -562,18 +563,18 @@ function promptTrackNewStudy(_ref, ctx, evt) {
|
|
|
562
563
|
}
|
|
563
564
|
function promptTrackNewStudy_askTrackMeasurements(UIViewportDialogService, viewportId) {
|
|
564
565
|
return new Promise(function (resolve, reject) {
|
|
565
|
-
const message = 'Track measurements for this series?';
|
|
566
|
+
const message = i18next/* default */.Z.t('MeasurementTable:Track measurements for this series?');
|
|
566
567
|
const actions = [{
|
|
567
568
|
type: 'cancel',
|
|
568
|
-
text: 'No',
|
|
569
|
+
text: i18next/* default */.Z.t('MeasurementTable:No'),
|
|
569
570
|
value: promptTrackNewStudy_RESPONSE.CANCEL
|
|
570
571
|
}, {
|
|
571
572
|
type: 'secondary',
|
|
572
|
-
text: 'No, do not ask again
|
|
573
|
+
text: i18next/* default */.Z.t('MeasurementTable:No, do not ask again'),
|
|
573
574
|
value: promptTrackNewStudy_RESPONSE.NO_NOT_FOR_SERIES
|
|
574
575
|
}, {
|
|
575
576
|
type: 'primary',
|
|
576
|
-
text: 'Yes',
|
|
577
|
+
text: i18next/* default */.Z.t('MeasurementTable:Yes'),
|
|
577
578
|
value: promptTrackNewStudy_RESPONSE.SET_STUDY_AND_SERIES
|
|
578
579
|
}];
|
|
579
580
|
const onSubmit = result => {
|
|
@@ -627,8 +628,8 @@ function promptTrackNewStudy_askSaveDiscardOrCancel(UIViewportDialogService, vie
|
|
|
627
628
|
});
|
|
628
629
|
}
|
|
629
630
|
/* harmony default export */ const TrackedMeasurementsContext_promptTrackNewStudy = (promptTrackNewStudy);
|
|
630
|
-
// EXTERNAL MODULE: ../../../extensions/default/src/index.ts +
|
|
631
|
-
var default_src = __webpack_require__(
|
|
631
|
+
// EXTERNAL MODULE: ../../../extensions/default/src/index.ts + 78 modules
|
|
632
|
+
var default_src = __webpack_require__(78738);
|
|
632
633
|
;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/_shared/getNextSRSeriesNumber.js
|
|
633
634
|
const MIN_SR_SERIES_NUMBER = 4700;
|
|
634
635
|
function getNextSRSeriesNumber(displaySetService) {
|
|
@@ -652,12 +653,11 @@ const PROMPT_RESPONSES_RESPONSE = {
|
|
|
652
653
|
|
|
653
654
|
|
|
654
655
|
|
|
655
|
-
function promptSaveReport(
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
} = _ref;
|
|
656
|
+
function promptSaveReport({
|
|
657
|
+
servicesManager,
|
|
658
|
+
commandsManager,
|
|
659
|
+
extensionManager
|
|
660
|
+
}, ctx, evt) {
|
|
661
661
|
const {
|
|
662
662
|
uiDialogService,
|
|
663
663
|
measurementService,
|
|
@@ -731,12 +731,11 @@ const promptHydrateStructuredReport_RESPONSE = {
|
|
|
731
731
|
NO_NOT_FOR_SERIES: 4,
|
|
732
732
|
HYDRATE_REPORT: 5
|
|
733
733
|
};
|
|
734
|
-
function promptHydrateStructuredReport(
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
} = _ref;
|
|
734
|
+
function promptHydrateStructuredReport({
|
|
735
|
+
servicesManager,
|
|
736
|
+
extensionManager,
|
|
737
|
+
appConfig
|
|
738
|
+
}, ctx, evt) {
|
|
740
739
|
const {
|
|
741
740
|
uiViewportDialogService,
|
|
742
741
|
displaySetService
|
|
@@ -803,11 +802,11 @@ function promptHydrateStructuredReport_askTrackMeasurements(uiViewportDialogServ
|
|
|
803
802
|
/* harmony default export */ const TrackedMeasurementsContext_promptHydrateStructuredReport = (promptHydrateStructuredReport);
|
|
804
803
|
;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/contexts/TrackedMeasurementsContext/hydrateStructuredReport.tsx
|
|
805
804
|
|
|
806
|
-
function hydrateStructuredReport(
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
805
|
+
function hydrateStructuredReport({
|
|
806
|
+
servicesManager,
|
|
807
|
+
extensionManager,
|
|
808
|
+
appConfig
|
|
809
|
+
}, ctx, evt) {
|
|
811
810
|
const {
|
|
812
811
|
displaySetService
|
|
813
812
|
} = servicesManager.services;
|
|
@@ -819,7 +818,8 @@ function hydrateStructuredReport(_ref, ctx, evt) {
|
|
|
819
818
|
return new Promise((resolve, reject) => {
|
|
820
819
|
const hydrationResult = (0,cornerstone_dicom_sr_src.hydrateStructuredReport)({
|
|
821
820
|
servicesManager,
|
|
822
|
-
extensionManager
|
|
821
|
+
extensionManager,
|
|
822
|
+
appConfig
|
|
823
823
|
}, displaySetInstanceUID);
|
|
824
824
|
const StudyInstanceUID = hydrationResult.StudyInstanceUID;
|
|
825
825
|
const SeriesInstanceUIDs = hydrationResult.SeriesInstanceUIDs;
|
|
@@ -858,17 +858,16 @@ const SR_SOPCLASSHANDLERID = '@ohif/extension-cornerstone-dicom-sr.sopClassHandl
|
|
|
858
858
|
*
|
|
859
859
|
* @param {*} param0
|
|
860
860
|
*/
|
|
861
|
-
function TrackedMeasurementsContextProvider(
|
|
862
|
-
|
|
861
|
+
function TrackedMeasurementsContextProvider({
|
|
862
|
+
servicesManager,
|
|
863
|
+
commandsManager,
|
|
864
|
+
extensionManager
|
|
865
|
+
},
|
|
866
|
+
// Bound by consumer
|
|
867
|
+
{
|
|
868
|
+
children
|
|
869
|
+
} // Component props
|
|
863
870
|
) {
|
|
864
|
-
let {
|
|
865
|
-
servicesManager,
|
|
866
|
-
commandsManager,
|
|
867
|
-
extensionManager
|
|
868
|
-
} = _ref;
|
|
869
|
-
let {
|
|
870
|
-
children
|
|
871
|
-
} = _ref2;
|
|
872
871
|
const [appConfig] = (0,state/* useAppConfig */.M)();
|
|
873
872
|
const [viewportGrid, viewportGridService] = (0,src/* useViewportGrid */.O_)();
|
|
874
873
|
const {
|
|
@@ -1060,12 +1059,11 @@ TrackedMeasurementsContextProvider.propTypes = {
|
|
|
1060
1059
|
|
|
1061
1060
|
;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/getContextModule.tsx
|
|
1062
1061
|
|
|
1063
|
-
function getContextModule(
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
} = _ref;
|
|
1062
|
+
function getContextModule({
|
|
1063
|
+
servicesManager,
|
|
1064
|
+
extensionManager,
|
|
1065
|
+
commandsManager
|
|
1066
|
+
}) {
|
|
1069
1067
|
const BoundTrackedMeasurementsContextProvider = TrackedMeasurementsContextProvider.bind(null, {
|
|
1070
1068
|
servicesManager,
|
|
1071
1069
|
extensionManager,
|
|
@@ -1106,8 +1104,8 @@ var dist = __webpack_require__(62474);
|
|
|
1106
1104
|
var es = __webpack_require__(69190);
|
|
1107
1105
|
// EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
|
|
1108
1106
|
var src = __webpack_require__(71771);
|
|
1109
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
1110
|
-
var ui_src = __webpack_require__(
|
|
1107
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
|
|
1108
|
+
var ui_src = __webpack_require__(18414);
|
|
1111
1109
|
;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/panels/PanelStudyBrowserTracking/PanelStudyBrowserTracking.tsx
|
|
1112
1110
|
|
|
1113
1111
|
|
|
@@ -1124,14 +1122,13 @@ const {
|
|
|
1124
1122
|
*
|
|
1125
1123
|
* @param {*} param0
|
|
1126
1124
|
*/
|
|
1127
|
-
function PanelStudyBrowserTracking(
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
} = _ref;
|
|
1125
|
+
function PanelStudyBrowserTracking({
|
|
1126
|
+
servicesManager,
|
|
1127
|
+
getImageSrc,
|
|
1128
|
+
getStudiesForPatientByMRN,
|
|
1129
|
+
requestDisplaySetCreationForStudy,
|
|
1130
|
+
dataSource
|
|
1131
|
+
}) {
|
|
1135
1132
|
const {
|
|
1136
1133
|
displaySetService,
|
|
1137
1134
|
uiDialogService,
|
|
@@ -1461,7 +1458,6 @@ viewportGridService, dataSource, displaySetService, uiDialogService, uiNotificat
|
|
|
1461
1458
|
displaySetInstanceUID
|
|
1462
1459
|
// .. Any other data to pass
|
|
1463
1460
|
},
|
|
1464
|
-
|
|
1465
1461
|
isTracked: trackedSeriesInstanceUIDs.includes(ds.SeriesInstanceUID),
|
|
1466
1462
|
isHydratedForDerivedDisplaySet: ds.isHydrated,
|
|
1467
1463
|
viewportIdentificator
|
|
@@ -1500,10 +1496,9 @@ viewportGridService, dataSource, displaySetService, uiDialogService, uiNotificat
|
|
|
1500
1496
|
const yesButton = document.querySelector('.reject-yes-button');
|
|
1501
1497
|
yesButton.focus();
|
|
1502
1498
|
},
|
|
1503
|
-
onSubmit: async
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
} = _ref2;
|
|
1499
|
+
onSubmit: async ({
|
|
1500
|
+
action
|
|
1501
|
+
}) => {
|
|
1507
1502
|
switch (action.id) {
|
|
1508
1503
|
case 'yes':
|
|
1509
1504
|
try {
|
|
@@ -1699,16 +1694,15 @@ function _getStudyForPatientUtility(extensionManager) {
|
|
|
1699
1694
|
* @param {object} commandsManager
|
|
1700
1695
|
* @param {object} extensionManager
|
|
1701
1696
|
*/
|
|
1702
|
-
function WrappedPanelStudyBrowserTracking(
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
} = _ref;
|
|
1697
|
+
function WrappedPanelStudyBrowserTracking({
|
|
1698
|
+
commandsManager,
|
|
1699
|
+
extensionManager,
|
|
1700
|
+
servicesManager
|
|
1701
|
+
}) {
|
|
1708
1702
|
const dataSource = extensionManager.getActiveDataSource()[0];
|
|
1709
1703
|
const getStudiesForPatientByMRN = _getStudyForPatientUtility(extensionManager);
|
|
1710
1704
|
const _getStudiesForPatientByMRN = getStudiesForPatientByMRN.bind(null, dataSource);
|
|
1711
|
-
const _getImageSrcFromImageId = _createGetImageSrcFromImageIdFn(extensionManager);
|
|
1705
|
+
const _getImageSrcFromImageId = (0,react.useCallback)(_createGetImageSrcFromImageIdFn(extensionManager), []);
|
|
1712
1706
|
const _requestDisplaySetCreationForStudy = PanelStudyBrowserTracking_requestDisplaySetCreationForStudy.bind(null, dataSource);
|
|
1713
1707
|
return /*#__PURE__*/react.createElement(PanelStudyBrowserTracking_PanelStudyBrowserTracking, {
|
|
1714
1708
|
servicesManager: servicesManager,
|
|
@@ -1747,17 +1741,18 @@ WrappedPanelStudyBrowserTracking.propTypes = {
|
|
|
1747
1741
|
/* harmony default export */ const panels_PanelStudyBrowserTracking = (WrappedPanelStudyBrowserTracking);
|
|
1748
1742
|
// EXTERNAL MODULE: ./hooks/index.js + 1 modules
|
|
1749
1743
|
var hooks = __webpack_require__(10800);
|
|
1744
|
+
// EXTERNAL MODULE: ./state/index.js + 1 modules
|
|
1745
|
+
var state = __webpack_require__(62657);
|
|
1750
1746
|
;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/panels/PanelMeasurementTableTracking/ActionButtons.tsx
|
|
1751
1747
|
|
|
1752
1748
|
|
|
1753
1749
|
|
|
1754
1750
|
|
|
1755
|
-
function ActionButtons(
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
} = _ref;
|
|
1751
|
+
function ActionButtons({
|
|
1752
|
+
onExportClick,
|
|
1753
|
+
onCreateReportClick,
|
|
1754
|
+
disabled
|
|
1755
|
+
}) {
|
|
1761
1756
|
const {
|
|
1762
1757
|
t
|
|
1763
1758
|
} = (0,es/* useTranslation */.$G)('MeasurementTable');
|
|
@@ -1797,6 +1792,7 @@ var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce
|
|
|
1797
1792
|
|
|
1798
1793
|
|
|
1799
1794
|
|
|
1795
|
+
|
|
1800
1796
|
const {
|
|
1801
1797
|
downloadCSVReport
|
|
1802
1798
|
} = src.utils;
|
|
@@ -1812,12 +1808,10 @@ const DISPLAY_STUDY_SUMMARY_INITIAL_VALUE = {
|
|
|
1812
1808
|
// 'CT',
|
|
1813
1809
|
description: '' // 'CHEST/ABD/PELVIS W CONTRAST',
|
|
1814
1810
|
};
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
extensionManager
|
|
1820
|
-
} = _ref;
|
|
1811
|
+
function PanelMeasurementTableTracking({
|
|
1812
|
+
servicesManager,
|
|
1813
|
+
extensionManager
|
|
1814
|
+
}) {
|
|
1821
1815
|
const [viewportGrid] = (0,ui_src/* useViewportGrid */.O_)();
|
|
1822
1816
|
const [measurementChangeTimestamp, setMeasurementsUpdated] = (0,react.useState)(Date.now().toString());
|
|
1823
1817
|
const debouncedMeasurementChangeTimestamp = (0,hooks/* useDebounce */.N)(measurementChangeTimestamp, 200);
|
|
@@ -1834,6 +1828,7 @@ function PanelMeasurementTableTracking(_ref) {
|
|
|
1834
1828
|
const [displayStudySummary, setDisplayStudySummary] = (0,react.useState)(DISPLAY_STUDY_SUMMARY_INITIAL_VALUE);
|
|
1835
1829
|
const [displayMeasurements, setDisplayMeasurements] = (0,react.useState)([]);
|
|
1836
1830
|
const measurementsPanelRef = (0,react.useRef)(null);
|
|
1831
|
+
const [appConfig] = (0,state/* useAppConfig */.M)();
|
|
1837
1832
|
(0,react.useEffect)(() => {
|
|
1838
1833
|
const measurements = measurementService.getMeasurements();
|
|
1839
1834
|
const filteredMeasurements = measurements.filter(m => trackedStudy === m.referenceStudyUID && trackedSeries.includes(m.referenceSeriesUID));
|
|
@@ -1909,32 +1904,29 @@ function PanelMeasurementTableTracking(_ref) {
|
|
|
1909
1904
|
const trackedMeasurements = measurements.filter(m => trackedStudy === m.referenceStudyUID && trackedSeries.includes(m.referenceSeriesUID));
|
|
1910
1905
|
downloadCSVReport(trackedMeasurements, measurementService);
|
|
1911
1906
|
}
|
|
1912
|
-
const jumpToImage =
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
} = _ref2;
|
|
1907
|
+
const jumpToImage = ({
|
|
1908
|
+
uid,
|
|
1909
|
+
isActive
|
|
1910
|
+
}) => {
|
|
1917
1911
|
measurementService.jumpToMeasurement(viewportGrid.activeViewportId, uid);
|
|
1918
1912
|
onMeasurementItemClickHandler({
|
|
1919
1913
|
uid,
|
|
1920
1914
|
isActive
|
|
1921
1915
|
});
|
|
1922
1916
|
};
|
|
1923
|
-
const onMeasurementItemEditHandler =
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
} = _ref3;
|
|
1917
|
+
const onMeasurementItemEditHandler = ({
|
|
1918
|
+
uid,
|
|
1919
|
+
isActive
|
|
1920
|
+
}) => {
|
|
1928
1921
|
const measurement = measurementService.getMeasurement(uid);
|
|
1929
1922
|
jumpToImage({
|
|
1930
1923
|
uid,
|
|
1931
1924
|
isActive
|
|
1932
1925
|
});
|
|
1933
|
-
const onSubmitHandler =
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
} = _ref4;
|
|
1926
|
+
const onSubmitHandler = ({
|
|
1927
|
+
action,
|
|
1928
|
+
value
|
|
1929
|
+
}) => {
|
|
1938
1930
|
switch (action.id) {
|
|
1939
1931
|
case 'save':
|
|
1940
1932
|
{
|
|
@@ -1960,11 +1952,10 @@ function PanelMeasurementTableTracking(_ref) {
|
|
|
1960
1952
|
value: {
|
|
1961
1953
|
label: measurement.label || ''
|
|
1962
1954
|
},
|
|
1963
|
-
body:
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
} = _ref5;
|
|
1955
|
+
body: ({
|
|
1956
|
+
value,
|
|
1957
|
+
setValue
|
|
1958
|
+
}) => {
|
|
1968
1959
|
const onChangeHandler = event => {
|
|
1969
1960
|
event.persist();
|
|
1970
1961
|
setValue(value => ({
|
|
@@ -2007,11 +1998,10 @@ function PanelMeasurementTableTracking(_ref) {
|
|
|
2007
1998
|
}
|
|
2008
1999
|
});
|
|
2009
2000
|
};
|
|
2010
|
-
const onMeasurementItemClickHandler =
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
} = _ref6;
|
|
2001
|
+
const onMeasurementItemClickHandler = ({
|
|
2002
|
+
uid,
|
|
2003
|
+
isActive
|
|
2004
|
+
}) => {
|
|
2015
2005
|
if (!isActive) {
|
|
2016
2006
|
const measurements = [...displayMeasurements];
|
|
2017
2007
|
const measurement = measurements.find(m => m.uid === uid);
|
|
@@ -2042,7 +2032,7 @@ function PanelMeasurementTableTracking(_ref) {
|
|
|
2042
2032
|
servicesManager: servicesManager,
|
|
2043
2033
|
onClick: jumpToImage,
|
|
2044
2034
|
onEdit: onMeasurementItemEditHandler
|
|
2045
|
-
})), /*#__PURE__*/react.createElement("div", {
|
|
2035
|
+
})), !appConfig?.disableEditing && /*#__PURE__*/react.createElement("div", {
|
|
2046
2036
|
className: "flex justify-center p-4"
|
|
2047
2037
|
}, /*#__PURE__*/react.createElement(PanelMeasurementTableTracking_ActionButtons, {
|
|
2048
2038
|
onExportClick: exportReport,
|
|
@@ -2123,24 +2113,26 @@ function _mapMeasurementToDisplay(measurement, types, displaySetService) {
|
|
|
2123
2113
|
|
|
2124
2114
|
|
|
2125
2115
|
|
|
2116
|
+
// EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
|
|
2117
|
+
var i18next = __webpack_require__(73577);
|
|
2126
2118
|
;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/getPanelModule.tsx
|
|
2127
2119
|
|
|
2128
2120
|
|
|
2121
|
+
|
|
2129
2122
|
// TODO:
|
|
2130
2123
|
// - No loading UI exists yet
|
|
2131
2124
|
// - cancel promises when component is destroyed
|
|
2132
2125
|
// - show errors in UI for thumbnails if promise fails
|
|
2133
|
-
function getPanelModule(
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
} = _ref;
|
|
2126
|
+
function getPanelModule({
|
|
2127
|
+
commandsManager,
|
|
2128
|
+
extensionManager,
|
|
2129
|
+
servicesManager
|
|
2130
|
+
}) {
|
|
2139
2131
|
return [{
|
|
2140
2132
|
name: 'seriesList',
|
|
2141
2133
|
iconName: 'tab-studies',
|
|
2142
2134
|
iconLabel: 'Studies',
|
|
2143
|
-
label: 'Studies',
|
|
2135
|
+
label: i18next/* default */.Z.t('SidePanel:Studies'),
|
|
2144
2136
|
component: panels_PanelStudyBrowserTracking.bind(null, {
|
|
2145
2137
|
commandsManager,
|
|
2146
2138
|
extensionManager,
|
|
@@ -2150,7 +2142,7 @@ function getPanelModule(_ref) {
|
|
|
2150
2142
|
name: 'trackedMeasurements',
|
|
2151
2143
|
iconName: 'tab-linear',
|
|
2152
2144
|
iconLabel: 'Measure',
|
|
2153
|
-
label: 'Measurements',
|
|
2145
|
+
label: i18next/* default */.Z.t('SidePanel:Measurements'),
|
|
2154
2146
|
component: panels_PanelMeasurementTableTracking.bind(null, {
|
|
2155
2147
|
commandsManager,
|
|
2156
2148
|
extensionManager,
|
|
@@ -2170,12 +2162,11 @@ const OHIFCornerstoneViewport = props => {
|
|
|
2170
2162
|
fallback: /*#__PURE__*/react.createElement("div", null, "Loading...")
|
|
2171
2163
|
}, /*#__PURE__*/react.createElement(Component, props));
|
|
2172
2164
|
};
|
|
2173
|
-
function getViewportModule(
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
} = _ref;
|
|
2165
|
+
function getViewportModule({
|
|
2166
|
+
servicesManager,
|
|
2167
|
+
commandsManager,
|
|
2168
|
+
extensionManager
|
|
2169
|
+
}) {
|
|
2179
2170
|
const ExtendedOHIFCornerstoneTrackingViewport = props => {
|
|
2180
2171
|
return /*#__PURE__*/react.createElement(OHIFCornerstoneViewport, _extends({
|
|
2181
2172
|
servicesManager: servicesManager,
|