@ohif/app 3.7.0-beta.2 → 3.7.0-beta.21

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 (33) hide show
  1. package/dist/{192.bundle.16d0f44e62ff52432731.js → 192.bundle.c08c5ab814e2b37f7de8.js} +4 -4
  2. package/dist/{199.bundle.7bb7f07334adb5994b07.js → 199.bundle.fff9b2c82296ac60e336.js} +2 -7
  3. package/dist/{208.bundle.fc090e7d0989c68bd18e.js → 208.bundle.44dbeaafde7c957eb5ec.js} +4 -4
  4. package/dist/{270.bundle.4564621556b0f963a004.js → 270.bundle.cddac4adcfdf8d1082a3.js} +13 -7
  5. package/dist/{283.bundle.c467b98efe62399505f9.js → 283.bundle.e0463be176208a49ae07.js} +14 -21
  6. package/dist/{331.bundle.bd0c13931a21d53086c9.js → 331.bundle.af86275686a78739ec4c.js} +27 -13
  7. package/dist/{351.bundle.2d4bc19d8b493879dbbe.js → 351.bundle.bbd6e3b383ac731edc94.js} +5 -5
  8. package/dist/{404.bundle.4b84daa465888ef7fc56.js → 404.bundle.6ab9072b6ca4fdc8e5ad.js} +6 -5
  9. package/dist/{55.bundle.5f5e5ef9087b0beee35c.js → 55.bundle.e9bf24eb17d84049c640.js} +4 -4
  10. package/dist/{569.bundle.0ed8d8178ffd43fe1c34.js → 569.bundle.f71780087b8c9a75d44e.js} +23 -12
  11. package/dist/{581.bundle.360d26f97b37da8faec3.js → 581.bundle.0b1b8273eb694c11366d.js} +7 -6
  12. package/dist/{616.bundle.377b54c860b461f9f68e.js → 616.bundle.5b72d71408acf40a8372.js} +6 -6
  13. package/dist/{642.bundle.a9b710e5bf6294f74e9f.js → 642.bundle.81fd0ee19e55de71af16.js} +2 -2
  14. package/dist/{707.bundle.57d5f86eceb59d415c4e.js → 707.bundle.112a221af4d036185312.js} +54 -60
  15. package/dist/{744.bundle.bfb752eba913c0a86d0a.js → 744.bundle.480d918dc1d9eb8293da.js} +58 -52
  16. package/dist/{790.bundle.e28eaccb6818de78ae48.js → 790.bundle.981ed07d900d4a0a4b53.js} +4 -4
  17. package/dist/{799.bundle.ca18bdf4abe4d9abea26.js → 799.bundle.6fbb7a97bccfb55dc79f.js} +5 -5
  18. package/dist/{82.bundle.2b4c115ba19903aa6bba.js → 82.bundle.dbd076c633a0568628be.js} +45 -40
  19. package/dist/{917.bundle.ab1b2df827119f94a898.js → 917.bundle.3f61a417e9a607b190da.js} +2 -2
  20. package/dist/{953.bundle.9e3a7225f07336bfcb41.js → 953.bundle.bad442420f62f5ab0c4b.js} +2 -2
  21. package/dist/{973.bundle.50644c5c4630221c00ac.js → 973.bundle.b833bec4e621fe4283c4.js} +2 -2
  22. package/dist/{976.bundle.2ee705b3311b8db2de5f.js → 976.bundle.0ec9edf8d307c412df16.js} +6 -6
  23. package/dist/{984.bundle.894dafd69ff965b87709.js → 984.bundle.1a1fe6f2b122b329a61d.js} +4 -4
  24. package/dist/app-config.js +1 -2
  25. package/dist/{app.bundle.a8d0e8aa74cb37c1479a.js → app.bundle.7793ce08e52aee1382ca.js} +779 -245
  26. package/dist/app.bundle.css +1 -1
  27. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  28. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  29. package/dist/google.js +1 -1
  30. package/dist/index.html +1 -1
  31. package/dist/sw.js +1 -1
  32. package/package.json +19 -19
  33. /package/dist/{50.bundle.aef33d7bd8482846aa40.js → 50.bundle.f3f85e8e2fb4532bb16b.js} +0 -0
@@ -29,8 +29,8 @@ __webpack_require__.d(utils_namespaceObject, {
29
29
 
30
30
  // EXTERNAL MODULE: ../../../node_modules/dicomweb-client/build/dicomweb-client.es.js
31
31
  var dicomweb_client_es = __webpack_require__(75935);
32
- // EXTERNAL MODULE: ../../core/src/index.ts + 101 modules
33
- var src = __webpack_require__(48501);
32
+ // EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
33
+ var src = __webpack_require__(62771);
34
34
  // EXTERNAL MODULE: ../../core/src/utils/sortStudy.ts
35
35
  var sortStudy = __webpack_require__(87853);
36
36
  ;// CONCATENATED MODULE: ../../../extensions/default/src/DicomWebDataSource/qido.js
@@ -999,21 +999,41 @@ function createDicomWebApi(dicomWebConfig, userAuthenticationService) {
999
999
  supportsWildcard,
1000
1000
  supportsReject,
1001
1001
  staticWado,
1002
- singlepart
1002
+ singlepart,
1003
+ omitQuotationForMultipartRequest,
1004
+ acceptHeader,
1005
+ requestTransferSyntaxUID
1003
1006
  } = dicomWebConfig;
1004
1007
  const dicomWebConfigCopy = JSON.parse(JSON.stringify(dicomWebConfig));
1008
+ const getAuthrorizationHeader = () => {
1009
+ const xhrRequestHeaders = {};
1010
+ const authHeaders = userAuthenticationService.getAuthorizationHeader();
1011
+ if (authHeaders && authHeaders.Authorization) {
1012
+ xhrRequestHeaders.Authorization = authHeaders.Authorization;
1013
+ }
1014
+ return xhrRequestHeaders;
1015
+ };
1016
+ const generateWadoHeader = () => {
1017
+ let authorizationHeader = getAuthrorizationHeader();
1018
+ //Generate accept header depending on config params
1019
+ let formattedAcceptHeader = src.utils.generateAcceptHeader(acceptHeader, requestTransferSyntaxUID, omitQuotationForMultipartRequest);
1020
+ return {
1021
+ ...authorizationHeader,
1022
+ Accept: formattedAcceptHeader
1023
+ };
1024
+ };
1005
1025
  const qidoConfig = {
1006
1026
  url: qidoRoot,
1007
1027
  staticWado,
1008
1028
  singlepart,
1009
- headers: userAuthenticationService.getAuthorizationHeader(),
1029
+ headers: getAuthrorizationHeader(),
1010
1030
  errorInterceptor: src/* errorHandler */.Po.getHTTPErrorHandler()
1011
1031
  };
1012
1032
  const wadoConfig = {
1013
1033
  url: wadoRoot,
1014
1034
  staticWado,
1015
1035
  singlepart,
1016
- headers: userAuthenticationService.getAuthorizationHeader(),
1036
+ headers: generateWadoHeader(),
1017
1037
  errorInterceptor: src/* errorHandler */.Po.getHTTPErrorHandler()
1018
1038
  };
1019
1039
 
@@ -1039,10 +1059,7 @@ function createDicomWebApi(dicomWebConfig, userAuthenticationService) {
1039
1059
  studies: {
1040
1060
  mapParams: mapParams.bind(),
1041
1061
  search: async function (origParams) {
1042
- const headers = userAuthenticationService.getAuthorizationHeader();
1043
- if (headers) {
1044
- qidoDicomWebClient.headers = headers;
1045
- }
1062
+ qidoDicomWebClient.headers = getAuthrorizationHeader();
1046
1063
  const {
1047
1064
  studyInstanceUid,
1048
1065
  seriesInstanceUid,
@@ -1059,10 +1076,7 @@ function createDicomWebApi(dicomWebConfig, userAuthenticationService) {
1059
1076
  series: {
1060
1077
  // mapParams: mapParams.bind(),
1061
1078
  search: async function (studyInstanceUid) {
1062
- const headers = userAuthenticationService.getAuthorizationHeader();
1063
- if (headers) {
1064
- qidoDicomWebClient.headers = headers;
1065
- }
1079
+ qidoDicomWebClient.headers = getAuthrorizationHeader();
1066
1080
  const results = await seriesInStudy(qidoDicomWebClient, studyInstanceUid);
1067
1081
  return processSeriesResults(results);
1068
1082
  }
@@ -1071,10 +1085,7 @@ function createDicomWebApi(dicomWebConfig, userAuthenticationService) {
1071
1085
 
1072
1086
  instances: {
1073
1087
  search: (studyInstanceUid, queryParameters) => {
1074
- const headers = userAuthenticationService.getAuthorizationHeader();
1075
- if (headers) {
1076
- qidoDicomWebClient.headers = headers;
1077
- }
1088
+ qidoDicomWebClient.headers = getAuthrorizationHeader();
1078
1089
  search.call(undefined, qidoDicomWebClient, studyInstanceUid, null, queryParameters);
1079
1090
  }
1080
1091
  }
@@ -1102,6 +1113,7 @@ function createDicomWebApi(dicomWebConfig, userAuthenticationService) {
1102
1113
  StudyInstanceUID,
1103
1114
  BulkDataURI
1104
1115
  } = _ref2;
1116
+ qidoDicomWebClient.headers = getAuthrorizationHeader();
1105
1117
  const options = {
1106
1118
  multipart: false,
1107
1119
  BulkDataURI,
@@ -1121,10 +1133,6 @@ function createDicomWebApi(dicomWebConfig, userAuthenticationService) {
1121
1133
  sortFunction,
1122
1134
  madeInClient = false
1123
1135
  } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1124
- const headers = userAuthenticationService.getAuthorizationHeader();
1125
- if (headers) {
1126
- wadoDicomWebClient.headers = headers;
1127
- }
1128
1136
  if (!StudyInstanceUID) {
1129
1137
  throw new Error('Unable to query for SeriesMetadata without StudyInstanceUID');
1130
1138
  }
@@ -1137,10 +1145,7 @@ function createDicomWebApi(dicomWebConfig, userAuthenticationService) {
1137
1145
  },
1138
1146
  store: {
1139
1147
  dicom: async (dataset, request) => {
1140
- const headers = userAuthenticationService.getAuthorizationHeader();
1141
- if (headers) {
1142
- wadoDicomWebClient.headers = headers;
1143
- }
1148
+ wadoDicomWebClient.headers = getAuthrorizationHeader();
1144
1149
  if (dataset instanceof ArrayBuffer) {
1145
1150
  const options = {
1146
1151
  datasets: [dataset],
@@ -1170,7 +1175,7 @@ function createDicomWebApi(dicomWebConfig, userAuthenticationService) {
1170
1175
  },
1171
1176
  _retrieveSeriesMetadataSync: async (StudyInstanceUID, filters, sortCriteria, sortFunction, madeInClient) => {
1172
1177
  const enableStudyLazyLoad = false;
1173
-
1178
+ wadoDicomWebClient.headers = generateWadoHeader();
1174
1179
  // data is all SOPInstanceUIDs
1175
1180
  const data = await retrieveStudyMetadata(wadoDicomWebClient, StudyInstanceUID, enableStudyLazyLoad, filters, sortCriteria, sortFunction);
1176
1181
 
@@ -1215,6 +1220,7 @@ function createDicomWebApi(dicomWebConfig, userAuthenticationService) {
1215
1220
  _retrieveSeriesMetadataAsync: async function (StudyInstanceUID, filters, sortCriteria, sortFunction) {
1216
1221
  let madeInClient = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
1217
1222
  const enableStudyLazyLoad = true;
1223
+ wadoDicomWebClient.headers = generateWadoHeader();
1218
1224
  // Get Series
1219
1225
  const {
1220
1226
  preLoadData: seriesSummaryMetadata,
@@ -1988,8 +1994,8 @@ var dist = __webpack_require__(65783);
1988
1994
  var es = __webpack_require__(21572);
1989
1995
  // EXTERNAL MODULE: ../node_modules/react-router/dist/index.js
1990
1996
  var react_router_dist = __webpack_require__(14935);
1991
- // EXTERNAL MODULE: ../../ui/src/index.js + 449 modules
1992
- var ui_src = __webpack_require__(43803);
1997
+ // EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
1998
+ var ui_src = __webpack_require__(28619);
1993
1999
  // EXTERNAL MODULE: ../../i18n/src/index.js + 95 modules
1994
2000
  var i18n_src = __webpack_require__(93058);
1995
2001
  // EXTERNAL MODULE: ./state/index.js + 1 modules
@@ -2143,8 +2149,8 @@ function ViewerLayout(_ref) {
2143
2149
  hotkeyDefinitions,
2144
2150
  hotkeyDefaults
2145
2151
  } = hotkeysManager;
2146
- const versionNumber = "3.7.0-beta.2";
2147
- const commitHash = "14369414cf0193f00243ae5c9f8415cf7079a753";
2152
+ const versionNumber = "3.7.0-beta.21";
2153
+ const commitHash = "3efa793e602a3d85409ece95b4e970b4c40d03b1";
2148
2154
  const menuOptions = [{
2149
2155
  title: t('Header:About'),
2150
2156
  icon: 'info',
@@ -2801,10 +2807,10 @@ function ActionButtons(_ref) {
2801
2807
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(ui_src/* ButtonGroup */.hE, {
2802
2808
  color: "black",
2803
2809
  size: "inherit"
2804
- }, /*#__PURE__*/react.createElement(ui_src/* Button */.zx, {
2810
+ }, /*#__PURE__*/react.createElement(ui_src/* LegacyButton */.mN, {
2805
2811
  className: "px-2 py-2 text-base",
2806
2812
  onClick: onExportClick
2807
- }, t('Export CSV')), /*#__PURE__*/react.createElement(ui_src/* Button */.zx, {
2813
+ }, t('Export CSV')), /*#__PURE__*/react.createElement(ui_src/* LegacyButton */.mN, {
2808
2814
  className: "px-2 py-2 text-base",
2809
2815
  onClick: onCreateReportClick
2810
2816
  }, t('Create Report'))));
@@ -2906,11 +2912,11 @@ function createReportDialogPrompt(uiDialogService, _ref) {
2906
2912
  actions: [{
2907
2913
  id: 'cancel',
2908
2914
  text: 'Cancel',
2909
- type: 'primary'
2915
+ type: ui_src/* ButtonEnums.type */.LZ.U.secondary
2910
2916
  }, {
2911
2917
  id: 'save',
2912
2918
  text: 'Save',
2913
- type: 'secondary'
2919
+ type: ui_src/* ButtonEnums.type */.LZ.U.primary
2914
2920
  }],
2915
2921
  // TODO: Should be on button press...
2916
2922
  onSubmit: _handleFormSubmit,
@@ -3262,16 +3268,14 @@ function PanelMeasurementTable(_ref) {
3262
3268
  onKeyPress: onKeyPressHandler
3263
3269
  });
3264
3270
  },
3265
- actions: [
3266
- // temp: swap button types until colors are updated
3267
- {
3271
+ actions: [{
3268
3272
  id: 'cancel',
3269
3273
  text: 'Cancel',
3270
- type: 'primary'
3274
+ type: ui_src/* ButtonEnums.type */.LZ.U.secondary
3271
3275
  }, {
3272
3276
  id: 'save',
3273
3277
  text: 'Save',
3274
- type: 'secondary'
3278
+ type: ui_src/* ButtonEnums.type */.LZ.U.primary
3275
3279
  }],
3276
3280
  onSubmit: onSubmitHandler
3277
3281
  }
@@ -5746,7 +5750,8 @@ function DataSourceSelector() {
5746
5750
  }, /*#__PURE__*/react.createElement("h1", {
5747
5751
  className: "text-white"
5748
5752
  }, ds.friendlyName), /*#__PURE__*/react.createElement(ui_src/* Button */.zx, {
5749
- className: classnames_default()('font-bold', 'ml-2'),
5753
+ type: ui_src/* ButtonEnums.type */.LZ.U.primary,
5754
+ className: classnames_default()('ml-2'),
5750
5755
  onClick: () => {
5751
5756
  navigate({
5752
5757
  pathname: '/',
@@ -21,8 +21,8 @@ const package_namespaceObject = JSON.parse('{"u2":"@ohif/extension-dicom-video"}
21
21
  const id = package_namespaceObject.u2;
22
22
  const SOPClassHandlerId = `${id}.sopClassHandlerModule.dicom-video`;
23
23
 
24
- // EXTERNAL MODULE: ../../core/src/index.ts + 101 modules
25
- var src = __webpack_require__(48501);
24
+ // EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
25
+ var src = __webpack_require__(62771);
26
26
  ;// CONCATENATED MODULE: ../../../extensions/dicom-video/src/getSopClassHandlerModule.js
27
27
 
28
28
 
@@ -12,9 +12,9 @@ __webpack_require__.r(__webpack_exports__);
12
12
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
13
13
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32735);
14
14
  /* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21572);
15
- /* harmony import */ var _ohif_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48501);
15
+ /* harmony import */ var _ohif_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(62771);
16
16
  /* harmony import */ var _tools_modules_dicomSRModule__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94709);
17
- /* harmony import */ var _ohif_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43803);
17
+ /* harmony import */ var _ohif_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28619);
18
18
  /* harmony import */ var _utils_hydrateStructuredReport__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(68525);
19
19
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
20
20
 
@@ -13,8 +13,8 @@ __webpack_require__.d(__webpack_exports__, {
13
13
  "default": () => (/* binding */ microscopy_src)
14
14
  });
15
15
 
16
- // EXTERNAL MODULE: ../../core/src/index.ts + 101 modules
17
- var src = __webpack_require__(48501);
16
+ // EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
17
+ var src = __webpack_require__(62771);
18
18
  ;// CONCATENATED MODULE: ../../../modes/microscopy/package.json
19
19
  const package_namespaceObject = JSON.parse('{"u2":"@ohif/mode-microscopy"}');
20
20
  ;// CONCATENATED MODULE: ../../../modes/microscopy/src/id.js
@@ -20,10 +20,10 @@ const id = package_namespaceObject.u2;
20
20
 
21
21
  // EXTERNAL MODULE: ../../../node_modules/react/index.js
22
22
  var react = __webpack_require__(32735);
23
- // EXTERNAL MODULE: ../../ui/src/index.js + 449 modules
24
- var src = __webpack_require__(43803);
25
- // EXTERNAL MODULE: ../../core/src/index.ts + 101 modules
26
- var core_src = __webpack_require__(48501);
23
+ // EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
24
+ var src = __webpack_require__(28619);
25
+ // EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
26
+ var core_src = __webpack_require__(62771);
27
27
  // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
28
28
  var es = __webpack_require__(21572);
29
29
  // EXTERNAL MODULE: ../../../node_modules/mathjs/lib/esm/index.js + 972 modules
@@ -1418,11 +1418,11 @@ function callInputDialog(_ref) {
1418
1418
  actions: [{
1419
1419
  id: 'cancel',
1420
1420
  text: 'Cancel',
1421
- type: 'primary'
1421
+ type: src/* ButtonEnums.type */.LZ.U.secondary
1422
1422
  }, {
1423
1423
  id: 'save',
1424
1424
  text: 'Save',
1425
- type: 'secondary'
1425
+ type: src/* ButtonEnums.type */.LZ.U.primary
1426
1426
  }],
1427
1427
  onSubmit: onSubmitHandler,
1428
1428
  body: _ref3 => {
@@ -25,8 +25,8 @@ const id = package_namespaceObject.u2;
25
25
  const SOPClassHandlerName = 'dicom-sr';
26
26
  const SOPClassHandlerId = `${id}.sopClassHandlerModule.${SOPClassHandlerName}`;
27
27
 
28
- // EXTERNAL MODULE: ../../core/src/index.ts + 101 modules
29
- var src = __webpack_require__(48501);
28
+ // EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
29
+ var src = __webpack_require__(62771);
30
30
  // EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/index.js + 10 modules
31
31
  var esm = __webpack_require__(88256);
32
32
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js + 321 modules
@@ -1585,8 +1585,8 @@ __webpack_require__.d(__webpack_exports__, {
1585
1585
 
1586
1586
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 335 modules
1587
1587
  var esm = __webpack_require__(77331);
1588
- // EXTERNAL MODULE: ../../core/src/index.ts + 101 modules
1589
- var src = __webpack_require__(48501);
1588
+ // EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
1589
+ var src = __webpack_require__(62771);
1590
1590
  ;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/utils/getLabelFromDCMJSImportedToolData.js
1591
1591
  /**
1592
1592
  * Extracts the label from the toolData imported from dcmjs. We need to do this
@@ -11,7 +11,6 @@ window.config = {
11
11
  // some windows systems have issues with more than 3 web workers
12
12
  maxNumberOfWebWorkers: 3,
13
13
  // below flag is for performance reasons, but it might not work for all servers
14
- omitQuotationForMultipartRequest: true,
15
14
  showWarningMessageForCrossOrigin: true,
16
15
  showCPUFallbackMessage: true,
17
16
  showLoadingIndicator: true,
@@ -51,7 +50,6 @@ window.config = {
51
50
  wadoUriRoot: 'https://d33do7qe4w26qo.cloudfront.net/dicomweb',
52
51
  qidoRoot: 'https://d33do7qe4w26qo.cloudfront.net/dicomweb',
53
52
  wadoRoot: 'https://d33do7qe4w26qo.cloudfront.net/dicomweb',
54
-
55
53
  qidoSupportsIncludeField: false,
56
54
  supportsReject: false,
57
55
  imageRendering: 'wadors',
@@ -68,6 +66,7 @@ window.config = {
68
66
  enabled: true,
69
67
  relativeResolution: 'studies',
70
68
  },
69
+ omitQuotationForMultipartRequest: true,
71
70
  },
72
71
  },
73
72
  {