@ohif/app 3.8.0-beta.27 → 3.8.0-beta.29
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.56b9d54b9c0af71af1d7.js → 12.bundle.abb6ab88fda1125f3b47.js} +9 -11
- package/dist/{125.bundle.253395f320b72180da63.js → 125.bundle.df666cb677e5a8982157.js} +4 -5
- package/dist/{170.bundle.80ad57e16afc8855b0fc.js → 170.bundle.57dff48fc09ba5fa844b.js} +50 -69
- package/dist/{181.bundle.87f1df4f401b8023cfd1.js → 181.bundle.ae92b8a551d041d06e90.js} +58 -70
- package/dist/181.css +1 -1
- package/dist/{185.bundle.2d7c72ca2f461d711df9.js → 185.bundle.0251703d5b77f265cc11.js} +21 -26
- package/dist/{19.bundle.3dd19edbc75a5aebd1de.js → 19.bundle.55796dd5a6dfecf02682.js} +112 -127
- package/dist/{199.bundle.30893a2f3da90d37b0d9.js → 199.bundle.f62693c1405b52bc6580.js} +18 -20
- package/dist/{202.bundle.a607e9ab460999d8c0c8.js → 202.bundle.0ca2f2479d2578f539b0.js} +9 -1
- 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.5634282a01bd6e15b70d.js → 250.bundle.09c69d348a5d965debc8.js} +17 -22
- package/dist/{281.bundle.fc5d5a58827c8ba054b0.js → 281.bundle.a934356f89499eb6ec48.js} +23 -25
- package/dist/{359.bundle.644102e1339a5769fe43.js → 359.bundle.1f2a03766e18f1e3cca4.js} +24 -27
- package/dist/{410.bundle.089c191e6500a09de5f5.js → 410.bundle.b59d9d09407856f9babc.js} +22 -26
- package/dist/{417.bundle.af0a207c29b109f84159.js → 417.bundle.5c66801d23d0e98c00e6.js} +2 -2
- package/dist/{451.bundle.57c21db5d003c75e9d61.js → 451.bundle.68a551a7d1746cf904cb.js} +26 -32
- package/dist/{420.bundle.208f94f15dcc2be09dc0.js → 456.bundle.475e0e878872ad61e39e.js} +1074 -645
- package/dist/{466.bundle.be8d38922b545c9657dd.js → 466.bundle.667b31151880a262d475.js} +101 -130
- package/dist/{471.bundle.49c8d281adbae4a2c4df.js → 471.bundle.5809b10f75c8fc2f7167.js} +27 -33
- package/dist/{483.bundle.4866c3396b19964a0010.js → 483.bundle.775438e850fbee318b63.js} +128 -170
- package/dist/{485.bundle.8667a696ac2eaf99e4fa.js → 485.bundle.5b6c33cc43d8f3470642.js} +1 -1
- package/dist/{506.bundle.9fbbe1b884e79e06a3f6.js → 506.bundle.dcae1c16f61651daa74d.js} +13 -18
- package/dist/{530.bundle.a03b6f942ace3e1baa1e.js → 530.bundle.f904325ef4195d69ac0e.js} +10 -3
- package/dist/{26.bundle.c92012465cee00a2a708.js → 566.bundle.4840518afd323372c70f.js} +1136 -442
- package/dist/{613.bundle.b3839caf45bff66f2667.js → 613.bundle.d080a15569910ff63fc8.js} +19 -24
- package/dist/{661.bundle.65dd579322b265c6e321.js → 661.bundle.28ef6d8cd035876bd8e2.js} +40 -12
- package/dist/{686.bundle.dccef1f36e4bc79bcc48.js → 686.bundle.62c827fe4f0d054c164e.js} +4 -5
- package/dist/{687.bundle.bc44675be7433cd8670b.js → 687.bundle.fc36244c7ec3b1146f13.js} +19 -35
- package/dist/{738.bundle.a9dd630892da1e5dcabf.js → 738.bundle.7c78f93180d8405b167c.js} +434 -596
- package/dist/{814.bundle.b5267cf0fefd476ea55d.js → 814.bundle.9c9805cd0d54a8ea9697.js} +9 -11
- package/dist/{822.bundle.775a62e1f79c403f3aed.js → 822.bundle.55759fd8e9b0b489cc6b.js} +13 -15
- package/dist/{886.bundle.c8dd3ecc42a4253de278.js → 886.bundle.4496fc7fb83b8c897d20.js} +18 -22
- package/dist/{95.bundle.db9d2d504abc5dd4fdfa.js → 95.bundle.d7a9f450bed3b770504d.js} +3 -3
- package/dist/{965.bundle.fc770e33fa48b72621cc.js → 965.bundle.26d8f982af77f304a038.js} +91 -115
- package/dist/{app.bundle.25093dca29b89b580c6b.js → app.bundle.88eb088709ac23e29da0.js} +4645 -5949
- package/dist/app.bundle.css +11 -11
- package/dist/{dicom-microscopy-viewer.bundle.2c146384eb9466d02ff8.js → dicom-microscopy-viewer.bundle.a7d5060eead13771e784.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +17 -17
- /package/dist/{420.css → 456.css} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[185],{
|
|
3
3
|
|
|
4
4
|
/***/ 59185:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -267,7 +267,6 @@ const toolbarButtons = [
|
|
|
267
267
|
}
|
|
268
268
|
// More...
|
|
269
269
|
];
|
|
270
|
-
|
|
271
270
|
/* harmony default export */ const src_toolbarButtons = (toolbarButtons);
|
|
272
271
|
;// CONCATENATED MODULE: ../../../modes/longitudinal/package.json
|
|
273
272
|
const package_namespaceObject = JSON.parse('{"u2":"@ohif/mode-longitudinal"}');
|
|
@@ -403,7 +402,6 @@ function initSRToolGroup(extensionManager, toolGroupService, commandsManager) {
|
|
|
403
402
|
}]
|
|
404
403
|
// disabled
|
|
405
404
|
};
|
|
406
|
-
|
|
407
405
|
const toolGroupId = 'SRToolGroup';
|
|
408
406
|
toolGroupService.createToolGroupAndAddTools(toolGroupId, tools);
|
|
409
407
|
}
|
|
@@ -485,7 +483,6 @@ function initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {
|
|
|
485
483
|
// enabled
|
|
486
484
|
// disabled
|
|
487
485
|
};
|
|
488
|
-
|
|
489
486
|
toolGroupService.createToolGroupAndAddTools('mpr', tools);
|
|
490
487
|
}
|
|
491
488
|
function initVolume3DToolGroup(extensionManager, toolGroupService) {
|
|
@@ -521,8 +518,8 @@ function initToolGroups(extensionManager, toolGroupService, commandsManager) {
|
|
|
521
518
|
initVolume3DToolGroup(extensionManager, toolGroupService);
|
|
522
519
|
}
|
|
523
520
|
/* harmony default export */ const src_initToolGroups = (initToolGroups);
|
|
524
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js +
|
|
525
|
-
var esm = __webpack_require__(
|
|
521
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 364 modules
|
|
522
|
+
var esm = __webpack_require__(27968);
|
|
526
523
|
;// CONCATENATED MODULE: ../../../modes/longitudinal/src/moreTools.ts
|
|
527
524
|
|
|
528
525
|
|
|
@@ -807,6 +804,8 @@ const moreToolsMpr = [{
|
|
|
807
804
|
}
|
|
808
805
|
}];
|
|
809
806
|
/* harmony default export */ const src_moreToolsMpr = (moreToolsMpr);
|
|
807
|
+
// EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
|
|
808
|
+
var i18next = __webpack_require__(73577);
|
|
810
809
|
;// CONCATENATED MODULE: ../../../modes/longitudinal/src/index.js
|
|
811
810
|
|
|
812
811
|
|
|
@@ -815,6 +814,7 @@ const moreToolsMpr = [{
|
|
|
815
814
|
|
|
816
815
|
|
|
817
816
|
|
|
817
|
+
|
|
818
818
|
// Allow this mode by excluding non-imaging modalities such as SR, SEG
|
|
819
819
|
// Also, SM is not a simple imaging modalities, so exclude it.
|
|
820
820
|
const NON_IMAGE_MODALITIES = ['SM', 'ECG', 'SR', 'SEG', 'RTSTRUCT'];
|
|
@@ -862,26 +862,24 @@ const extensionDependencies = {
|
|
|
862
862
|
'@ohif/extension-dicom-pdf': '^3.0.1',
|
|
863
863
|
'@ohif/extension-dicom-video': '^3.0.1'
|
|
864
864
|
};
|
|
865
|
-
function modeFactory(
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
} = _ref;
|
|
865
|
+
function modeFactory({
|
|
866
|
+
modeConfiguration
|
|
867
|
+
}) {
|
|
869
868
|
let _activatePanelTriggersSubscriptions = [];
|
|
870
869
|
return {
|
|
871
870
|
// TODO: We're using this as a route segment
|
|
872
871
|
// We should not be.
|
|
873
872
|
id: id,
|
|
874
873
|
routeName: 'viewer',
|
|
875
|
-
displayName: 'Basic Viewer',
|
|
874
|
+
displayName: i18next/* default */.Z.t('Modes:Basic Viewer'),
|
|
876
875
|
/**
|
|
877
876
|
* Lifecycle hooks
|
|
878
877
|
*/
|
|
879
|
-
onModeEnter:
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
} = _ref2;
|
|
878
|
+
onModeEnter: ({
|
|
879
|
+
servicesManager,
|
|
880
|
+
extensionManager,
|
|
881
|
+
commandsManager
|
|
882
|
+
}) => {
|
|
885
883
|
const {
|
|
886
884
|
measurementService,
|
|
887
885
|
toolbarService,
|
|
@@ -950,11 +948,9 @@ function modeFactory(_ref) {
|
|
|
950
948
|
// ]),
|
|
951
949
|
// ];
|
|
952
950
|
},
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
servicesManager
|
|
957
|
-
} = _ref3;
|
|
951
|
+
onModeExit: ({
|
|
952
|
+
servicesManager
|
|
953
|
+
}) => {
|
|
958
954
|
const {
|
|
959
955
|
toolGroupService,
|
|
960
956
|
syncGroupService,
|
|
@@ -973,10 +969,9 @@ function modeFactory(_ref) {
|
|
|
973
969
|
study: [],
|
|
974
970
|
series: []
|
|
975
971
|
},
|
|
976
|
-
isValidMode: function (
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
} = _ref4;
|
|
972
|
+
isValidMode: function ({
|
|
973
|
+
modalities
|
|
974
|
+
}) {
|
|
980
975
|
const modalities_list = modalities.split('\\');
|
|
981
976
|
|
|
982
977
|
// Exclude non-image modalities
|
|
@@ -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__) => {
|
|
@@ -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 => {
|
|
@@ -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,10 @@ 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
|
-
} = _ref;
|
|
805
|
+
function hydrateStructuredReport({
|
|
806
|
+
servicesManager,
|
|
807
|
+
extensionManager
|
|
808
|
+
}, ctx, evt) {
|
|
811
809
|
const {
|
|
812
810
|
displaySetService
|
|
813
811
|
} = servicesManager.services;
|
|
@@ -858,17 +856,16 @@ const SR_SOPCLASSHANDLERID = '@ohif/extension-cornerstone-dicom-sr.sopClassHandl
|
|
|
858
856
|
*
|
|
859
857
|
* @param {*} param0
|
|
860
858
|
*/
|
|
861
|
-
function TrackedMeasurementsContextProvider(
|
|
862
|
-
|
|
859
|
+
function TrackedMeasurementsContextProvider({
|
|
860
|
+
servicesManager,
|
|
861
|
+
commandsManager,
|
|
862
|
+
extensionManager
|
|
863
|
+
},
|
|
864
|
+
// Bound by consumer
|
|
865
|
+
{
|
|
866
|
+
children
|
|
867
|
+
} // Component props
|
|
863
868
|
) {
|
|
864
|
-
let {
|
|
865
|
-
servicesManager,
|
|
866
|
-
commandsManager,
|
|
867
|
-
extensionManager
|
|
868
|
-
} = _ref;
|
|
869
|
-
let {
|
|
870
|
-
children
|
|
871
|
-
} = _ref2;
|
|
872
869
|
const [appConfig] = (0,state/* useAppConfig */.M)();
|
|
873
870
|
const [viewportGrid, viewportGridService] = (0,src/* useViewportGrid */.O_)();
|
|
874
871
|
const {
|
|
@@ -1060,12 +1057,11 @@ TrackedMeasurementsContextProvider.propTypes = {
|
|
|
1060
1057
|
|
|
1061
1058
|
;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/getContextModule.tsx
|
|
1062
1059
|
|
|
1063
|
-
function getContextModule(
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
} = _ref;
|
|
1060
|
+
function getContextModule({
|
|
1061
|
+
servicesManager,
|
|
1062
|
+
extensionManager,
|
|
1063
|
+
commandsManager
|
|
1064
|
+
}) {
|
|
1069
1065
|
const BoundTrackedMeasurementsContextProvider = TrackedMeasurementsContextProvider.bind(null, {
|
|
1070
1066
|
servicesManager,
|
|
1071
1067
|
extensionManager,
|
|
@@ -1124,14 +1120,13 @@ const {
|
|
|
1124
1120
|
*
|
|
1125
1121
|
* @param {*} param0
|
|
1126
1122
|
*/
|
|
1127
|
-
function PanelStudyBrowserTracking(
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
} = _ref;
|
|
1123
|
+
function PanelStudyBrowserTracking({
|
|
1124
|
+
servicesManager,
|
|
1125
|
+
getImageSrc,
|
|
1126
|
+
getStudiesForPatientByMRN,
|
|
1127
|
+
requestDisplaySetCreationForStudy,
|
|
1128
|
+
dataSource
|
|
1129
|
+
}) {
|
|
1135
1130
|
const {
|
|
1136
1131
|
displaySetService,
|
|
1137
1132
|
uiDialogService,
|
|
@@ -1461,7 +1456,6 @@ viewportGridService, dataSource, displaySetService, uiDialogService, uiNotificat
|
|
|
1461
1456
|
displaySetInstanceUID
|
|
1462
1457
|
// .. Any other data to pass
|
|
1463
1458
|
},
|
|
1464
|
-
|
|
1465
1459
|
isTracked: trackedSeriesInstanceUIDs.includes(ds.SeriesInstanceUID),
|
|
1466
1460
|
isHydratedForDerivedDisplaySet: ds.isHydrated,
|
|
1467
1461
|
viewportIdentificator
|
|
@@ -1500,10 +1494,9 @@ viewportGridService, dataSource, displaySetService, uiDialogService, uiNotificat
|
|
|
1500
1494
|
const yesButton = document.querySelector('.reject-yes-button');
|
|
1501
1495
|
yesButton.focus();
|
|
1502
1496
|
},
|
|
1503
|
-
onSubmit: async
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
} = _ref2;
|
|
1497
|
+
onSubmit: async ({
|
|
1498
|
+
action
|
|
1499
|
+
}) => {
|
|
1507
1500
|
switch (action.id) {
|
|
1508
1501
|
case 'yes':
|
|
1509
1502
|
try {
|
|
@@ -1699,12 +1692,11 @@ function _getStudyForPatientUtility(extensionManager) {
|
|
|
1699
1692
|
* @param {object} commandsManager
|
|
1700
1693
|
* @param {object} extensionManager
|
|
1701
1694
|
*/
|
|
1702
|
-
function WrappedPanelStudyBrowserTracking(
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
} = _ref;
|
|
1695
|
+
function WrappedPanelStudyBrowserTracking({
|
|
1696
|
+
commandsManager,
|
|
1697
|
+
extensionManager,
|
|
1698
|
+
servicesManager
|
|
1699
|
+
}) {
|
|
1708
1700
|
const dataSource = extensionManager.getActiveDataSource()[0];
|
|
1709
1701
|
const getStudiesForPatientByMRN = _getStudyForPatientUtility(extensionManager);
|
|
1710
1702
|
const _getStudiesForPatientByMRN = getStudiesForPatientByMRN.bind(null, dataSource);
|
|
@@ -1752,12 +1744,11 @@ var hooks = __webpack_require__(10800);
|
|
|
1752
1744
|
|
|
1753
1745
|
|
|
1754
1746
|
|
|
1755
|
-
function ActionButtons(
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
} = _ref;
|
|
1747
|
+
function ActionButtons({
|
|
1748
|
+
onExportClick,
|
|
1749
|
+
onCreateReportClick,
|
|
1750
|
+
disabled
|
|
1751
|
+
}) {
|
|
1761
1752
|
const {
|
|
1762
1753
|
t
|
|
1763
1754
|
} = (0,es/* useTranslation */.$G)('MeasurementTable');
|
|
@@ -1812,12 +1803,10 @@ const DISPLAY_STUDY_SUMMARY_INITIAL_VALUE = {
|
|
|
1812
1803
|
// 'CT',
|
|
1813
1804
|
description: '' // 'CHEST/ABD/PELVIS W CONTRAST',
|
|
1814
1805
|
};
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
extensionManager
|
|
1820
|
-
} = _ref;
|
|
1806
|
+
function PanelMeasurementTableTracking({
|
|
1807
|
+
servicesManager,
|
|
1808
|
+
extensionManager
|
|
1809
|
+
}) {
|
|
1821
1810
|
const [viewportGrid] = (0,ui_src/* useViewportGrid */.O_)();
|
|
1822
1811
|
const [measurementChangeTimestamp, setMeasurementsUpdated] = (0,react.useState)(Date.now().toString());
|
|
1823
1812
|
const debouncedMeasurementChangeTimestamp = (0,hooks/* useDebounce */.N)(measurementChangeTimestamp, 200);
|
|
@@ -1909,32 +1898,29 @@ function PanelMeasurementTableTracking(_ref) {
|
|
|
1909
1898
|
const trackedMeasurements = measurements.filter(m => trackedStudy === m.referenceStudyUID && trackedSeries.includes(m.referenceSeriesUID));
|
|
1910
1899
|
downloadCSVReport(trackedMeasurements, measurementService);
|
|
1911
1900
|
}
|
|
1912
|
-
const jumpToImage =
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
} = _ref2;
|
|
1901
|
+
const jumpToImage = ({
|
|
1902
|
+
uid,
|
|
1903
|
+
isActive
|
|
1904
|
+
}) => {
|
|
1917
1905
|
measurementService.jumpToMeasurement(viewportGrid.activeViewportId, uid);
|
|
1918
1906
|
onMeasurementItemClickHandler({
|
|
1919
1907
|
uid,
|
|
1920
1908
|
isActive
|
|
1921
1909
|
});
|
|
1922
1910
|
};
|
|
1923
|
-
const onMeasurementItemEditHandler =
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
} = _ref3;
|
|
1911
|
+
const onMeasurementItemEditHandler = ({
|
|
1912
|
+
uid,
|
|
1913
|
+
isActive
|
|
1914
|
+
}) => {
|
|
1928
1915
|
const measurement = measurementService.getMeasurement(uid);
|
|
1929
1916
|
jumpToImage({
|
|
1930
1917
|
uid,
|
|
1931
1918
|
isActive
|
|
1932
1919
|
});
|
|
1933
|
-
const onSubmitHandler =
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
} = _ref4;
|
|
1920
|
+
const onSubmitHandler = ({
|
|
1921
|
+
action,
|
|
1922
|
+
value
|
|
1923
|
+
}) => {
|
|
1938
1924
|
switch (action.id) {
|
|
1939
1925
|
case 'save':
|
|
1940
1926
|
{
|
|
@@ -1960,11 +1946,10 @@ function PanelMeasurementTableTracking(_ref) {
|
|
|
1960
1946
|
value: {
|
|
1961
1947
|
label: measurement.label || ''
|
|
1962
1948
|
},
|
|
1963
|
-
body:
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
} = _ref5;
|
|
1949
|
+
body: ({
|
|
1950
|
+
value,
|
|
1951
|
+
setValue
|
|
1952
|
+
}) => {
|
|
1968
1953
|
const onChangeHandler = event => {
|
|
1969
1954
|
event.persist();
|
|
1970
1955
|
setValue(value => ({
|
|
@@ -2007,11 +1992,10 @@ function PanelMeasurementTableTracking(_ref) {
|
|
|
2007
1992
|
}
|
|
2008
1993
|
});
|
|
2009
1994
|
};
|
|
2010
|
-
const onMeasurementItemClickHandler =
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
} = _ref6;
|
|
1995
|
+
const onMeasurementItemClickHandler = ({
|
|
1996
|
+
uid,
|
|
1997
|
+
isActive
|
|
1998
|
+
}) => {
|
|
2015
1999
|
if (!isActive) {
|
|
2016
2000
|
const measurements = [...displayMeasurements];
|
|
2017
2001
|
const measurement = measurements.find(m => m.uid === uid);
|
|
@@ -2123,24 +2107,26 @@ function _mapMeasurementToDisplay(measurement, types, displaySetService) {
|
|
|
2123
2107
|
|
|
2124
2108
|
|
|
2125
2109
|
|
|
2110
|
+
// EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
|
|
2111
|
+
var i18next = __webpack_require__(73577);
|
|
2126
2112
|
;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/getPanelModule.tsx
|
|
2127
2113
|
|
|
2128
2114
|
|
|
2115
|
+
|
|
2129
2116
|
// TODO:
|
|
2130
2117
|
// - No loading UI exists yet
|
|
2131
2118
|
// - cancel promises when component is destroyed
|
|
2132
2119
|
// - show errors in UI for thumbnails if promise fails
|
|
2133
|
-
function getPanelModule(
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
} = _ref;
|
|
2120
|
+
function getPanelModule({
|
|
2121
|
+
commandsManager,
|
|
2122
|
+
extensionManager,
|
|
2123
|
+
servicesManager
|
|
2124
|
+
}) {
|
|
2139
2125
|
return [{
|
|
2140
2126
|
name: 'seriesList',
|
|
2141
2127
|
iconName: 'tab-studies',
|
|
2142
2128
|
iconLabel: 'Studies',
|
|
2143
|
-
label: 'Studies',
|
|
2129
|
+
label: i18next/* default */.Z.t('SidePanel:Studies'),
|
|
2144
2130
|
component: panels_PanelStudyBrowserTracking.bind(null, {
|
|
2145
2131
|
commandsManager,
|
|
2146
2132
|
extensionManager,
|
|
@@ -2150,7 +2136,7 @@ function getPanelModule(_ref) {
|
|
|
2150
2136
|
name: 'trackedMeasurements',
|
|
2151
2137
|
iconName: 'tab-linear',
|
|
2152
2138
|
iconLabel: 'Measure',
|
|
2153
|
-
label: 'Measurements',
|
|
2139
|
+
label: i18next/* default */.Z.t('SidePanel:Measurements'),
|
|
2154
2140
|
component: panels_PanelMeasurementTableTracking.bind(null, {
|
|
2155
2141
|
commandsManager,
|
|
2156
2142
|
extensionManager,
|
|
@@ -2170,12 +2156,11 @@ const OHIFCornerstoneViewport = props => {
|
|
|
2170
2156
|
fallback: /*#__PURE__*/react.createElement("div", null, "Loading...")
|
|
2171
2157
|
}, /*#__PURE__*/react.createElement(Component, props));
|
|
2172
2158
|
};
|
|
2173
|
-
function getViewportModule(
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
} = _ref;
|
|
2159
|
+
function getViewportModule({
|
|
2160
|
+
servicesManager,
|
|
2161
|
+
commandsManager,
|
|
2162
|
+
extensionManager
|
|
2163
|
+
}) {
|
|
2179
2164
|
const ExtendedOHIFCornerstoneTrackingViewport = props => {
|
|
2180
2165
|
return /*#__PURE__*/react.createElement(OHIFCornerstoneViewport, _extends({
|
|
2181
2166
|
servicesManager: servicesManager,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[199],{
|
|
3
3
|
|
|
4
4
|
/***/ 32199:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -451,7 +451,6 @@ function initSRToolGroup(extensionManager, toolGroupService, commandsManager) {
|
|
|
451
451
|
}]
|
|
452
452
|
// disabled
|
|
453
453
|
};
|
|
454
|
-
|
|
455
454
|
const toolGroupId = 'SRToolGroup';
|
|
456
455
|
toolGroupService.createToolGroupAndAddTools(toolGroupId, tools);
|
|
457
456
|
}
|
|
@@ -529,7 +528,6 @@ function initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {
|
|
|
529
528
|
// enabled
|
|
530
529
|
// disabled
|
|
531
530
|
};
|
|
532
|
-
|
|
533
531
|
toolGroupService.createToolGroupAndAddTools('mpr', tools);
|
|
534
532
|
}
|
|
535
533
|
function initToolGroups(extensionManager, toolGroupService, commandsManager) {
|
|
@@ -538,8 +536,8 @@ function initToolGroups(extensionManager, toolGroupService, commandsManager) {
|
|
|
538
536
|
initMPRToolGroup(extensionManager, toolGroupService, commandsManager);
|
|
539
537
|
}
|
|
540
538
|
/* harmony default export */ const src_initToolGroups = (initToolGroups);
|
|
541
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js +
|
|
542
|
-
var esm = __webpack_require__(
|
|
539
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 364 modules
|
|
540
|
+
var esm = __webpack_require__(27968);
|
|
543
541
|
;// CONCATENATED MODULE: ../../../modes/basic-test-mode/src/moreTools.ts
|
|
544
542
|
|
|
545
543
|
|
|
@@ -701,6 +699,8 @@ const moreToolsMpr = [{
|
|
|
701
699
|
}
|
|
702
700
|
}];
|
|
703
701
|
/* harmony default export */ const src_moreToolsMpr = (moreToolsMpr);
|
|
702
|
+
// EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
|
|
703
|
+
var i18next = __webpack_require__(73577);
|
|
704
704
|
;// CONCATENATED MODULE: ../../../modes/basic-test-mode/src/index.ts
|
|
705
705
|
|
|
706
706
|
|
|
@@ -709,6 +709,7 @@ const moreToolsMpr = [{
|
|
|
709
709
|
|
|
710
710
|
|
|
711
711
|
|
|
712
|
+
|
|
712
713
|
// Allow this mode by excluding non-imaging modalities such as SR, SEG
|
|
713
714
|
// Also, SM is not a simple imaging modalities, so exclude it.
|
|
714
715
|
const NON_IMAGE_MODALITIES = ['SM', 'ECG', 'SR', 'SEG'];
|
|
@@ -758,16 +759,15 @@ function modeFactory() {
|
|
|
758
759
|
// We should not be.
|
|
759
760
|
id: id,
|
|
760
761
|
routeName: 'basic-test',
|
|
761
|
-
displayName: 'Basic Test Mode',
|
|
762
|
+
displayName: i18next/* default */.Z.t('Modes:Basic Test Mode'),
|
|
762
763
|
/**
|
|
763
764
|
* Lifecycle hooks
|
|
764
765
|
*/
|
|
765
|
-
onModeEnter:
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
} = _ref;
|
|
766
|
+
onModeEnter: ({
|
|
767
|
+
servicesManager,
|
|
768
|
+
extensionManager,
|
|
769
|
+
commandsManager
|
|
770
|
+
}) => {
|
|
771
771
|
const {
|
|
772
772
|
measurementService,
|
|
773
773
|
toolbarService,
|
|
@@ -812,10 +812,9 @@ function modeFactory() {
|
|
|
812
812
|
toolbarService.createButtonSection(DEFAULT_TOOL_GROUP_ID, ['MeasurementTools', 'Zoom', 'WindowLevel', 'Pan', 'Capture', 'Layout', 'MPR', 'MoreTools']);
|
|
813
813
|
toolbarService.createButtonSection(MPR_TOOL_GROUP_ID, ['MeasurementTools', 'Zoom', 'WindowLevel', 'Pan', 'Capture', 'Layout', 'MPR', 'Crosshairs', 'MoreToolsMpr']);
|
|
814
814
|
},
|
|
815
|
-
onModeExit:
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
} = _ref2;
|
|
815
|
+
onModeExit: ({
|
|
816
|
+
servicesManager
|
|
817
|
+
}) => {
|
|
819
818
|
const {
|
|
820
819
|
toolGroupService,
|
|
821
820
|
syncGroupService,
|
|
@@ -831,10 +830,9 @@ function modeFactory() {
|
|
|
831
830
|
study: [],
|
|
832
831
|
series: []
|
|
833
832
|
},
|
|
834
|
-
isValidMode: function (
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
} = _ref3;
|
|
833
|
+
isValidMode: function ({
|
|
834
|
+
modalities
|
|
835
|
+
}) {
|
|
838
836
|
const modalities_list = modalities.split('\\');
|
|
839
837
|
|
|
840
838
|
// Exclude non-image modalities
|