@ohif/app 3.8.0-beta.79 → 3.8.0-beta.80

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 (28) hide show
  1. package/dist/{121.bundle.bd8acf52b6a7047ae832.js → 121.bundle.787f5a848ed632a4d5fc.js} +5 -0
  2. package/dist/{206.bundle.9d1fa8c5c6527d5577e6.js → 206.bundle.f957e0d1cdff66dbac69.js} +6 -4
  3. package/dist/{295.bundle.688b6bbff493cd904ae7.js → 295.bundle.6f734abf8fa85b1a310d.js} +5 -0
  4. package/dist/{325.bundle.dd0e466d544c86c6de0c.js → 325.bundle.84909a08305556e9f924.js} +66 -12
  5. package/dist/{335.bundle.2048d4a4764a366499d5.js → 335.bundle.c39d4aefe33aecab958f.js} +3 -3
  6. package/dist/{606.bundle.97b10da82b21f72df781.js → 41.bundle.7c943bb857ed37831905.js} +457 -32
  7. package/dist/{41.bundle.b720bbff6d0a8847b77a.js → 422.bundle.bd6529c536f59807fbee.js} +1 -1
  8. package/dist/{487.bundle.0910e5f0cf0c9e255ab4.js → 487.bundle.7890ca42826941ebcd60.js} +1 -1
  9. package/dist/{574.bundle.3ce3583da9b5ab902557.js → 574.bundle.be075ac52fb52b442a8b.js} +45 -29
  10. package/dist/{app.bundle.f57f833ce0358673a21a.js → app.bundle.6c090a2d6d3ccc97a81d.js} +67 -63
  11. package/dist/app.bundle.css +1 -1
  12. package/dist/index.html +1 -1
  13. package/dist/sw.js +1 -1
  14. package/package.json +17 -17
  15. /package/dist/{164.bundle.989a4ada32dcf32a4569.js → 164.bundle.d4598e491783753a8b6b.js} +0 -0
  16. /package/dist/{188.bundle.5f381d9783df8735f3e6.js → 188.bundle.b80554ec7df7dcd435a5.js} +0 -0
  17. /package/dist/{606.css → 41.css} +0 -0
  18. /package/dist/{448.bundle.8e35640d81b9cf06e002.js → 448.bundle.deedeff5744e77510734.js} +0 -0
  19. /package/dist/{540.bundle.fd7f8cb69114e4b80605.js → 540.bundle.079d43a6717e95c24392.js} +0 -0
  20. /package/dist/{594.bundle.d8a118d205da29aa4ef7.js → 594.bundle.0b1165661dd638820082.js} +0 -0
  21. /package/dist/{633.bundle.39398415cab1ba43b071.js → 633.bundle.c1658e76f104cbd14cab.js} +0 -0
  22. /package/dist/{699.bundle.2b231db64d73635192c9.js → 699.bundle.4f01772e7ce6637de339.js} +0 -0
  23. /package/dist/{724.bundle.0e99ca1d14fa8c73b5db.js → 724.bundle.e5794460c391ee9cba2c.js} +0 -0
  24. /package/dist/{889.bundle.efdc2cc8419be1616a3e.js → 889.bundle.7858e4b7ca1a2b12b64f.js} +0 -0
  25. /package/dist/{905.bundle.b09656972daa071cb47c.js → 905.bundle.170908fe660fc6b40649.js} +0 -0
  26. /package/dist/{907.bundle.0301d1f194afd0e08677.js → 907.bundle.dee4e30420caf07caea6.js} +0 -0
  27. /package/dist/{94.bundle.ac3f837897688b61b5e3.js → 94.bundle.c452d9b0645277c2cf4e.js} +0 -0
  28. /package/dist/{961.bundle.b7eb25f8a8177258aa02.js → 961.bundle.aaaaaba0ec015a3b85d8.js} +0 -0
@@ -78,6 +78,11 @@ function _askHydrate(uiViewportDialogService, viewportId) {
78
78
  onOutsideClick: () => {
79
79
  uiViewportDialogService.hide();
80
80
  resolve(RESPONSE.CANCEL);
81
+ },
82
+ onKeyPress: event => {
83
+ if (event.key === 'Enter') {
84
+ onSubmit(RESPONSE.HYDRATE_SEG);
85
+ }
81
86
  }
82
87
  });
83
88
  });
@@ -2750,8 +2750,8 @@ function ViewerHeader({
2750
2750
  hotkeyDefinitions,
2751
2751
  hotkeyDefaults
2752
2752
  } = hotkeysManager;
2753
- const versionNumber = "3.8.0-beta.79";
2754
- const commitHash = "df49a653be61a93f6e9fb3663aabe9775c31fd13";
2753
+ const versionNumber = "3.8.0-beta.80";
2754
+ const commitHash = "e80fc6f47708e1d6b1a1e1de438196a4b74ec637";
2755
2755
  const menuOptions = [{
2756
2756
  title: t('Header:About'),
2757
2757
  icon: 'info',
@@ -2761,7 +2761,8 @@ function ViewerHeader({
2761
2761
  contentProps: {
2762
2762
  versionNumber,
2763
2763
  commitHash
2764
- }
2764
+ },
2765
+ containerDimensions: 'max-w-4xl max-h-4xl'
2765
2766
  })
2766
2767
  }, {
2767
2768
  title: t('Header:Preferences'),
@@ -2819,7 +2820,7 @@ function ViewerHeader({
2819
2820
  }, /*#__PURE__*/react.createElement(ui_src/* ErrorBoundary */.tH, {
2820
2821
  context: "Primary Toolbar"
2821
2822
  }, /*#__PURE__*/react.createElement("div", {
2822
- className: "relative flex justify-center"
2823
+ className: "relative flex justify-center gap-[4px]"
2823
2824
  }, /*#__PURE__*/react.createElement(Toolbar, {
2824
2825
  servicesManager: servicesManager
2825
2826
  }))));
@@ -6660,6 +6661,7 @@ const commandsModule = ({
6660
6661
  displaySetInstanceUID,
6661
6662
  onClose: UIModalService.hide
6662
6663
  },
6664
+ containerDimensions: 'max-w-4xl max-h-4xl',
6663
6665
  title: 'DICOM Tag Browser'
6664
6666
  });
6665
6667
  },
@@ -85,6 +85,11 @@ function _askHydrate(uiViewportDialogService, viewportId) {
85
85
  onOutsideClick: () => {
86
86
  uiViewportDialogService.hide();
87
87
  resolve(RESPONSE.CANCEL);
88
+ },
89
+ onKeyPress: event => {
90
+ if (event.key === 'Enter') {
91
+ onSubmit(RESPONSE.HYDRATE_SEG);
92
+ }
88
93
  }
89
94
  });
90
95
  });
@@ -880,6 +880,12 @@ function promptHydrateStructuredReport_askTrackMeasurements(uiViewportDialogServ
880
880
  onOutsideClick: () => {
881
881
  uiViewportDialogService.hide();
882
882
  resolve(promptHydrateStructuredReport_RESPONSE.CANCEL);
883
+ },
884
+ onKeyPress: event => {
885
+ if (event.key === 'Enter') {
886
+ const action = actions.find(action => action.value === promptHydrateStructuredReport_RESPONSE.HYDRATE_REPORT);
887
+ onSubmit(action.value);
888
+ }
883
889
  }
884
890
  });
885
891
  });
@@ -1505,19 +1511,9 @@ function PanelStudyBrowserTracking({
1505
1511
  setExpandedStudyInstanceUIDs(updatedExpandedStudyInstanceUIDs);
1506
1512
  }
1507
1513
  }, [expandedStudyInstanceUIDs, jumpToDisplaySet, tabs]);
1508
- return /*#__PURE__*/react.createElement(ui_src/* StudyBrowser */.M4, {
1509
- tabs: tabs,
1510
- servicesManager: servicesManager,
1511
- activeTabName: activeTabName,
1512
- expandedStudyInstanceUIDs: expandedStudyInstanceUIDs,
1513
- onClickStudy: _handleStudyClick,
1514
- onClickTab: clickedTabName => {
1515
- setActiveTabName(clickedTabName);
1516
- },
1517
- onClickUntrack: displaySetInstanceUID => {
1514
+ const onClickUntrack = displaySetInstanceUID => {
1515
+ const onConfirm = () => {
1518
1516
  const displaySet = displaySetService.getDisplaySetByUID(displaySetInstanceUID);
1519
- // TODO: shift this somewhere else where we're centralizing this logic?
1520
- // Potentially a helper from displaySetInstanceUID to this
1521
1517
  sendTrackedMeasurementsEvent('UNTRACK_SERIES', {
1522
1518
  SeriesInstanceUID: displaySet.SeriesInstanceUID
1523
1519
  });
@@ -1527,6 +1523,64 @@ function PanelStudyBrowserTracking({
1527
1523
  measurementService.remove(m.uid);
1528
1524
  }
1529
1525
  });
1526
+ };
1527
+ uiDialogService.create({
1528
+ id: 'untrack-series',
1529
+ centralize: true,
1530
+ isDraggable: false,
1531
+ showOverlay: true,
1532
+ content: ui_src/* Dialog */.lG,
1533
+ contentProps: {
1534
+ title: 'Untrack Series',
1535
+ body: () => /*#__PURE__*/react.createElement("div", {
1536
+ className: "bg-primary-dark p-4 text-white"
1537
+ }, /*#__PURE__*/react.createElement("p", null, "Are you sure you want to untrack this series?"), /*#__PURE__*/react.createElement("p", {
1538
+ className: "mt-2"
1539
+ }, "This action cannot be undone and will delete all your existing measurements.")),
1540
+ actions: [{
1541
+ id: 'cancel',
1542
+ text: 'Cancel',
1543
+ type: ui_src/* ButtonEnums.type */.Ny.NW.secondary
1544
+ }, {
1545
+ id: 'yes',
1546
+ text: 'Yes',
1547
+ type: ui_src/* ButtonEnums.type */.Ny.NW.primary,
1548
+ classes: ['untrack-yes-button']
1549
+ }],
1550
+ onClose: () => uiDialogService.dismiss({
1551
+ id: 'untrack-series'
1552
+ }),
1553
+ onSubmit: async ({
1554
+ action
1555
+ }) => {
1556
+ switch (action.id) {
1557
+ case 'yes':
1558
+ onConfirm();
1559
+ uiDialogService.dismiss({
1560
+ id: 'untrack-series'
1561
+ });
1562
+ break;
1563
+ case 'cancel':
1564
+ uiDialogService.dismiss({
1565
+ id: 'untrack-series'
1566
+ });
1567
+ break;
1568
+ }
1569
+ }
1570
+ }
1571
+ });
1572
+ };
1573
+ return /*#__PURE__*/react.createElement(ui_src/* StudyBrowser */.M4, {
1574
+ tabs: tabs,
1575
+ servicesManager: servicesManager,
1576
+ activeTabName: activeTabName,
1577
+ expandedStudyInstanceUIDs: expandedStudyInstanceUIDs,
1578
+ onClickStudy: _handleStudyClick,
1579
+ onClickTab: clickedTabName => {
1580
+ setActiveTabName(clickedTabName);
1581
+ },
1582
+ onClickUntrack: displaySetInstanceUID => {
1583
+ onClickUntrack(displaySetInstanceUID);
1530
1584
  },
1531
1585
  onClickThumbnail: () => {},
1532
1586
  onDoubleClickThumbnail: onDoubleClickThumbnailHandler,
@@ -863,7 +863,7 @@ function PanelPetSUV({
863
863
  return /*#__PURE__*/react.createElement("div", {
864
864
  className: "ohif-scrollbar flex min-h-0 flex-auto select-none flex-col justify-between overflow-auto"
865
865
  }, /*#__PURE__*/react.createElement("div", {
866
- className: "flex min-h-0 flex-col bg-black text-[13px] font-[300]"
866
+ className: "flex min-h-0 flex-1 flex-col bg-black text-[13px] font-[300]"
867
867
  }, /*#__PURE__*/react.createElement(src/* PanelSection */.aU, {
868
868
  title: t('Patient Information')
869
869
  }, /*#__PURE__*/react.createElement("div", {
@@ -1050,7 +1050,7 @@ function PanelRoiThresholdSegmentation({
1050
1050
  disabled: tmtvValue === null
1051
1051
  }];
1052
1052
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
1053
- className: "mt-1 flex flex-col"
1053
+ className: "mt-2 mb-10 flex flex-col"
1054
1054
  }, /*#__PURE__*/react.createElement("div", {
1055
1055
  className: "invisible-scrollbar overflow-y-auto overflow-x-hidden"
1056
1056
  }, tmtvValue !== null ? /*#__PURE__*/react.createElement("div", {
@@ -1060,7 +1060,7 @@ function PanelRoiThresholdSegmentation({
1060
1060
  }, 'TMTV:'), /*#__PURE__*/react.createElement("div", {
1061
1061
  className: "text-white"
1062
1062
  }, `${tmtvValue} mL`)) : null, /*#__PURE__*/react.createElement("div", {
1063
- className: "mt-1 flex justify-center"
1063
+ className: "mt-2 flex justify-center"
1064
1064
  }, /*#__PURE__*/react.createElement(src/* ActionButtons */.wr, {
1065
1065
  actions: actions,
1066
1066
  t: t