@ohif/app 3.7.0-beta.1 → 3.7.0-beta.11
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/{192.bundle.4fee0d418ae32bb7ab30.js → 192.bundle.950e5380ea63c6d635d5.js} +2 -2
- package/dist/{199.bundle.290ef76d4ab8358e29bb.js → 199.bundle.f50ffd85a4334de2f5c1.js} +0 -5
- package/dist/{208.bundle.29fe1842c33000edc75d.js → 208.bundle.7f610a302dc54c4924da.js} +2 -2
- package/dist/{283.bundle.7cf0fabc69d49a8a2c5d.js → 283.bundle.1015e87c3a47b1f1379c.js} +12 -19
- package/dist/{351.bundle.2d4bc19d8b493879dbbe.js → 351.bundle.0742237651aef9694a65.js} +3 -3
- package/dist/{404.bundle.902c664e3e581335a5d2.js → 404.bundle.3d65ff813eead20462d3.js} +2 -2
- package/dist/{55.bundle.5f5e5ef9087b0beee35c.js → 55.bundle.550a823e75eb608e8d5e.js} +2 -2
- package/dist/{569.bundle.0ed8d8178ffd43fe1c34.js → 569.bundle.c8e771a8d28e237b32be.js} +19 -8
- package/dist/{581.bundle.360d26f97b37da8faec3.js → 581.bundle.dc6197189f7c88c27d4c.js} +5 -4
- package/dist/{616.bundle.b76c70aeeed8b142593c.js → 616.bundle.de530ae226dfa5573f6e.js} +4 -4
- package/dist/{707.bundle.832f50366089fd23e93b.js → 707.bundle.f774f3e4a687ddd60a32.js} +44 -44
- package/dist/{744.bundle.392a124e4ee20ad6a657.js → 744.bundle.4c4b884f90eb70482821.js} +47 -45
- package/dist/{790.bundle.aa7a8bebec3483d90f3f.js → 790.bundle.7327fec7833ceea2784b.js} +2 -2
- package/dist/{799.bundle.ca18bdf4abe4d9abea26.js → 799.bundle.758558e64147e5aad612.js} +1 -1
- package/dist/{82.bundle.da0c036b2e572719dbc5.js → 82.bundle.9a0e7f08d4bce18d302f.js} +13 -14
- package/dist/{953.bundle.9e3a7225f07336bfcb41.js → 953.bundle.3b0189ebc11cf0946f18.js} +1 -1
- package/dist/{976.bundle.2305e2f8244de8ccbaee.js → 976.bundle.9cc2382162214ea0af2b.js} +4 -4
- package/dist/{app.bundle.3ad961046deb5f47678a.js → app.bundle.3d598a4738bdc22950d3.js} +320 -210
- package/dist/app.bundle.css +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +18 -18
- /package/dist/{50.bundle.03f455d441f2138ce49e.js → 50.bundle.65ff60818862eda39d12.js} +0 -0
- /package/dist/{642.bundle.89f15ef57fbad2a1019b.js → 642.bundle.8905e515ce593e57ceb1.js} +0 -0
- /package/dist/{917.bundle.06cb87cf1c42b9f20bd2.js → 917.bundle.b9983325adf849bff6fd.js} +0 -0
- /package/dist/{973.bundle.a51bb5b329263c9e75e2.js → 973.bundle.4584df05b320b94cace5.js} +0 -0
- /package/dist/{984.bundle.4e002ef9b3468bddb68b.js → 984.bundle.119557c018e6371b4628.js} +0 -0
|
@@ -4330,8 +4330,8 @@ Compose.propTypes = {
|
|
|
4330
4330
|
components: (prop_types_default()).array,
|
|
4331
4331
|
children: (prop_types_default()).node.isRequired
|
|
4332
4332
|
};
|
|
4333
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
4334
|
-
var ui_src = __webpack_require__(
|
|
4333
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
|
|
4334
|
+
var ui_src = __webpack_require__(28619);
|
|
4335
4335
|
// EXTERNAL MODULE: ./state/index.js + 1 modules
|
|
4336
4336
|
var state = __webpack_require__(22896);
|
|
4337
4337
|
// EXTERNAL MODULE: ../../core/src/index.ts + 101 modules
|
|
@@ -5092,7 +5092,7 @@ function WorkList(_ref) {
|
|
|
5092
5092
|
key: i,
|
|
5093
5093
|
to: `${dataPath ? '../../' : ''}${mode.routeName}${dataPath || ''}?${query.toString()}`
|
|
5094
5094
|
// to={`${mode.routeName}/dicomweb?StudyInstanceUIDs=${studyInstanceUid}`}
|
|
5095
|
-
}, /*#__PURE__*/react.createElement(ui_src/*
|
|
5095
|
+
}, /*#__PURE__*/react.createElement(ui_src/* LegacyButton */.mN, {
|
|
5096
5096
|
rounded: "full",
|
|
5097
5097
|
variant: isValidMode ? 'contained' : 'disabled',
|
|
5098
5098
|
disabled: !isValidMode,
|
|
@@ -5100,7 +5100,7 @@ function WorkList(_ref) {
|
|
|
5100
5100
|
name: "launch-arrow"
|
|
5101
5101
|
}) // launch-arrow | launch-info
|
|
5102
5102
|
,
|
|
5103
|
-
className: classnames_default()(
|
|
5103
|
+
className: classnames_default()({
|
|
5104
5104
|
'ml-2': !isFirst
|
|
5105
5105
|
}),
|
|
5106
5106
|
onClick: () => {}
|
|
@@ -5111,8 +5111,8 @@ function WorkList(_ref) {
|
|
|
5111
5111
|
};
|
|
5112
5112
|
});
|
|
5113
5113
|
const hasStudies = numOfStudies > 0;
|
|
5114
|
-
const versionNumber = "3.7.0-beta.
|
|
5115
|
-
const commitHash = "
|
|
5114
|
+
const versionNumber = "3.7.0-beta.11";
|
|
5115
|
+
const commitHash = "d51211f6b97a7ad07cd87470a8f251a728cd7b28";
|
|
5116
5116
|
const menuOptions = [{
|
|
5117
5117
|
title: t('Header:About'),
|
|
5118
5118
|
icon: 'info',
|
|
@@ -7131,7 +7131,7 @@ function App(_ref) {
|
|
|
7131
7131
|
i18n: src["default"]
|
|
7132
7132
|
}], [ui_src/* ThemeWrapper */.$S], [ui_src/* ViewportGridProvider */.CW, {
|
|
7133
7133
|
service: viewportGridService
|
|
7134
|
-
}], [ui_src/* ViewportDialogProvider */.
|
|
7134
|
+
}], [ui_src/* ViewportDialogProvider */.DF, {
|
|
7135
7135
|
service: uiViewportDialogService
|
|
7136
7136
|
}], [ui_src/* CineProvider */.bC, {
|
|
7137
7137
|
service: cineService
|
|
@@ -19929,7 +19929,7 @@ const detectionOptions = {
|
|
|
19929
19929
|
}
|
|
19930
19930
|
});
|
|
19931
19931
|
;// CONCATENATED MODULE: ../../i18n/package.json
|
|
19932
|
-
const package_namespaceObject = JSON.parse('{"i8":"3.7.0-beta.
|
|
19932
|
+
const package_namespaceObject = JSON.parse('{"i8":"3.7.0-beta.10"}');
|
|
19933
19933
|
;// CONCATENATED MODULE: ../../i18n/src/utils.js
|
|
19934
19934
|
const languagesMap = {
|
|
19935
19935
|
ar: 'Arabic',
|
|
@@ -20015,7 +20015,7 @@ const UserPreferencesModal_namespaceObject = JSON.parse('{"No hotkeys found":"Ne
|
|
|
20015
20015
|
;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/AboutModal.json
|
|
20016
20016
|
const AboutModal_namespaceObject = JSON.parse('{"Browser":"Browser","Build Number":"Build Number","Latest Master Commits":"Latest Master Commits","More details":"More details","Name":"Name","OHIF Viewer - About":"OHIF Viewer - About","OS":"OS","Report an issue":"Report an issue","Repository URL":"Repository URL","Value":"Value","Version Information":"Version Information","Visit the forum":"Visit the forum"}');
|
|
20017
20017
|
;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/Buttons.json
|
|
20018
|
-
const Buttons_namespaceObject = JSON.parse('{"Acquired":"Acquired","Angle":"Angle","Axial":"Axial","Bidirectional":"Bidirectional","Brush":"Brush","CINE":"CINE","Cancel":"Cancel","Circle":"Circle","Clear":"Clear","Coronal":"Coronal","Crosshairs":"Crosshairs","Download":"Download","Ellipse":"Ellipse","Elliptical":"Elliptical","Flip H":"Flip H","Flip V":"Flip V","Freehand":"Freehand","Invert":"Invert","Layout":"$t(Common:Layout)","Length":"Length","Levels":"Levels","Magnify":"Magnify","Manual":"Manual","Measurements":"Measurements","More":"$t(Common:More)","Next":"$t(Common:Next)","Pan":"Pan","Play":"$t(Common:Play)","Previous":"$t(Common:Previous)","Probe":"Probe","ROI Window":"ROI Window","Rectangle":"Rectangle","Reset":"$t(Common:Reset)","Reset to Defaults":"$t(Common:Reset) to Defaults","Rotate Right":"Rotate Right","Sagittal":"Sagittal","Save":"Save","Stack Scroll":"Stack Scroll","Stop":"$t(Common:Stop)","Themes":"Themes","Zoom":"Zoom"}');
|
|
20018
|
+
const Buttons_namespaceObject = JSON.parse('{"Acquired":"Acquired","Angle":"Angle","Annotation":"Annotation","Axial":"Axial","Bidirectional":"Bidirectional","Brush":"Brush","Cine":"Cine","CINE":"CINE","Cancel":"Cancel","Capture":"Capture","Circle":"Circle","Clear":"Clear","Coronal":"Coronal","Crosshairs":"Crosshairs","Download":"Download","Ellipse":"Ellipse","Elliptical":"Elliptical","Flip H":"Flip H","Flip Horizontally":"Flip Horizontally","Flip V":"Flip V","Freehand":"Freehand","Grid Layout":"Grid Layout","Invert":"Invert","Layout":"$t(Common:Layout)","Length":"Length","Levels":"Levels","Magnify":"Magnify","Manual":"Manual","Measurements":"Measurements","More":"$t(Common:More)","More Tools":"More Tools","Next":"$t(Common:Next)","Pan":"Pan","Play":"$t(Common:Play)","Previous":"$t(Common:Previous)","Probe":"Probe","ROI Window":"ROI Window","Rectangle":"Rectangle","Reference Lines":"Reference Lines","Reset":"$t(Common:Reset)","Reset to Defaults":"$t(Common:Reset) to Defaults","Rotate Right":"Rotate Right","Sagittal":"Sagittal","Save":"Save","Stack Scroll":"Stack Scroll","Stack Image Sync":"Stack Image Sync","Stop":"$t(Common:Stop)","Themes":"Themes","Zoom":"Zoom"}');
|
|
20019
20019
|
;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/CineDialog.json
|
|
20020
20020
|
const CineDialog_namespaceObject = JSON.parse('{"Next image":"$t(Common:Next) $t(Common:Image)","Play / Stop":"$t(Common:Play) / $t(Common:Stop)","Previous image":"$t(Common:Previous) $t(Common:Image)","Skip to first image":"Skip to first $t(Common:Image)","Skip to last image":"Skip to last $t(Common:Image)","fps":"fps"}');
|
|
20021
20021
|
;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/Common.json
|
|
@@ -20252,7 +20252,7 @@ const vi_UserPreferencesModal_namespaceObject = JSON.parse('{"Cancel":"$t(Button
|
|
|
20252
20252
|
}
|
|
20253
20253
|
});
|
|
20254
20254
|
;// CONCATENATED MODULE: ../../i18n/src/locales/zh/Buttons.json
|
|
20255
|
-
const zh_Buttons_namespaceObject = JSON.parse('{"Acquired":"已获取","Angle":"角度","Axial":"轴状面","Bidirectional":"双向","Brush":"橡皮擦","CINE":"播放动画","Cancel":"取消","Circle":"圆","Clear":"清除","Coronal":"冠状面","Crosshairs":"十字线","Ellipse":"椭圆","Elliptical":"椭圆的","Flip H":"左右翻转","Flip V":"上下翻转","Freehand":"自由画线","Invert":"灰度反转","Layout":"显示窗口","Length":"长度","Levels":"层级","Magnify":"放大镜","Manual":"手动","Measurements":"测量","More":"更多","Next":"下一个","Pan":"移动","Play":"播放","Previous":"上一个","Probe":"探针","ROI Window":"选择对比度","Rectangle":"矩形","Reset":"复原","Reset to Defaults":"返回默认","Rotate Right":"顺时针旋转","Sagittal":"矢状面","Save":"保存","Stack Scroll":"滑动切换图层","Stop":"停止","Themes":"主题","Zoom":"放大"}');
|
|
20255
|
+
const zh_Buttons_namespaceObject = JSON.parse('{"Acquired":"已获取","Angle":"角度","Annotation":"注释","Axial":"轴状面","Bidirectional":"双向","Brush":"橡皮擦","Cine":"播放动画","CINE":"播放动画","Cancel":"取消","Capture":"下载","Circle":"圆","Clear":"清除","Coronal":"冠状面","Crosshairs":"十字线","Ellipse":"椭圆","Elliptical":"椭圆的","Flip H":"左右翻转","Flip Horizontally":"左右翻转","Flip V":"上下翻转","Freehand":"自由画线","Grid Layout":"窗口布局","Invert":"灰度反转","Layout":"显示窗口","Length":"长度","Levels":"层级","Magnify":"放大镜","Manual":"手动","Measurements":"测量","More":"更多","More Tools":"更多工具","More Measure Tools":"更多测量工具","Next":"下一个","Pan":"移动","Play":"播放","Previous":"上一个","Probe":"探针","ROI Window":"选择对比度","Rectangle":"矩形","Reference Lines":"参考线","Reset":"复原","Reset to Defaults":"返回默认","Rotate Right":"顺时针旋转","Sagittal":"矢状面","Save":"保存","Stack Scroll":"滑动切换图层","Stack Image Sync":"影像联动","Stop":"停止","Themes":"主题","Zoom":"放大"}');
|
|
20256
20256
|
;// CONCATENATED MODULE: ../../i18n/src/locales/zh/CineDialog.json
|
|
20257
20257
|
const zh_CineDialog_namespaceObject = JSON.parse('{"Next image":"下一个图像","Play / Stop":"播放/停止","Previous image":"上一个图像","Skip to first image":"跳转到第一个图像","Skip to last image":"跳转到最后一个图像","fps":"帧率"}');
|
|
20258
20258
|
;// CONCATENATED MODULE: ../../i18n/src/locales/zh/Common.json
|
|
@@ -23363,7 +23363,7 @@ Typography.propTypes = {
|
|
|
23363
23363
|
|
|
23364
23364
|
/***/ }),
|
|
23365
23365
|
|
|
23366
|
-
/***/
|
|
23366
|
+
/***/ 28619:
|
|
23367
23367
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
23368
23368
|
|
|
23369
23369
|
"use strict";
|
|
@@ -23372,6 +23372,7 @@ Typography.propTypes = {
|
|
|
23372
23372
|
__webpack_require__.d(__webpack_exports__, {
|
|
23373
23373
|
tk: () => (/* reexport */ components_AboutModal),
|
|
23374
23374
|
zx: () => (/* reexport */ components_Button),
|
|
23375
|
+
LZ: () => (/* reexport */ ButtonEnums_namespaceObject),
|
|
23375
23376
|
hE: () => (/* reexport */ components_ButtonGroup),
|
|
23376
23377
|
H6: () => (/* reexport */ components_CinePlayer),
|
|
23377
23378
|
bC: () => (/* reexport */ CineProvider),
|
|
@@ -23388,6 +23389,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
23388
23389
|
OX: () => (/* reexport */ components_InputRange),
|
|
23389
23390
|
__: () => (/* reexport */ components_Label),
|
|
23390
23391
|
OF: () => (/* reexport */ components_LayoutSelector),
|
|
23392
|
+
mN: () => (/* reexport */ components_LegacyButton),
|
|
23391
23393
|
LE: () => (/* reexport */ components_LoadingIndicatorProgress),
|
|
23392
23394
|
bk: () => (/* reexport */ components_LoadingIndicatorTotalPercent),
|
|
23393
23395
|
wt: () => (/* reexport */ components_MeasurementTable),
|
|
@@ -23415,7 +23417,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
23415
23417
|
ux: () => (/* reexport */ UserAuthenticationProvider),
|
|
23416
23418
|
i1: () => (/* reexport */ components_UserPreferences),
|
|
23417
23419
|
uY: () => (/* reexport */ components_ViewportActionBar),
|
|
23418
|
-
|
|
23420
|
+
DF: () => (/* reexport */ contextProviders_ViewportDialogProvider),
|
|
23419
23421
|
mQ: () => (/* reexport */ ViewportDownloadForm_ViewportDownloadForm),
|
|
23420
23422
|
_e: () => (/* reexport */ components_ViewportGrid),
|
|
23421
23423
|
CW: () => (/* reexport */ ViewportGridProvider),
|
|
@@ -23442,6 +23444,14 @@ __webpack_require__.d(NativeTypes_namespaceObject, {
|
|
|
23442
23444
|
URL: () => (NativeTypes_URL)
|
|
23443
23445
|
});
|
|
23444
23446
|
|
|
23447
|
+
// NAMESPACE OBJECT: ../../ui/src/components/Button/ButtonEnums.ts
|
|
23448
|
+
var ButtonEnums_namespaceObject = {};
|
|
23449
|
+
__webpack_require__.r(ButtonEnums_namespaceObject);
|
|
23450
|
+
__webpack_require__.d(ButtonEnums_namespaceObject, {
|
|
23451
|
+
d: () => (size),
|
|
23452
|
+
U: () => (type)
|
|
23453
|
+
});
|
|
23454
|
+
|
|
23445
23455
|
// EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
|
|
23446
23456
|
var prop_types = __webpack_require__(60216);
|
|
23447
23457
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
@@ -32072,153 +32082,67 @@ AboutModal.propTypes = {
|
|
|
32072
32082
|
;// CONCATENATED MODULE: ../../ui/src/components/AboutModal/index.js
|
|
32073
32083
|
|
|
32074
32084
|
/* harmony default export */ const components_AboutModal = (AboutModal_AboutModal);
|
|
32085
|
+
;// CONCATENATED MODULE: ../../ui/src/components/Button/ButtonEnums.ts
|
|
32086
|
+
var type = /*#__PURE__*/function (type) {
|
|
32087
|
+
type["primary"] = "primary";
|
|
32088
|
+
type["secondary"] = "secondary";
|
|
32089
|
+
return type;
|
|
32090
|
+
}(type || {});
|
|
32091
|
+
var size = /*#__PURE__*/function (size) {
|
|
32092
|
+
size["medium"] = "medium";
|
|
32093
|
+
size["small"] = "small";
|
|
32094
|
+
return size;
|
|
32095
|
+
}(size || {});
|
|
32096
|
+
|
|
32075
32097
|
;// CONCATENATED MODULE: ../../ui/src/components/Button/Button.tsx
|
|
32076
|
-
function Button_extends() { Button_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 Button_extends.apply(this, arguments); }
|
|
32077
32098
|
|
|
32078
32099
|
|
|
32079
32100
|
|
|
32080
|
-
|
|
32101
|
+
|
|
32102
|
+
const sizeClasses = {
|
|
32103
|
+
[size.small]: 'h-[26px] text-[13px]',
|
|
32104
|
+
[size.medium]: 'h-[32px] text-[14px]'
|
|
32105
|
+
};
|
|
32106
|
+
const layoutClasses = 'box-content inline-flex flex-row items-center justify-center gap-[5px] justify center px-[10px] outline-none rounded';
|
|
32107
|
+
const baseFontTextClasses = 'leading-[1.2] font-sans text-center whitespace-nowrap';
|
|
32108
|
+
const fontTextClasses = {
|
|
32109
|
+
[type.primary]: classnames_default()(baseFontTextClasses, 'font-semibold'),
|
|
32110
|
+
[type.secondary]: classnames_default()(baseFontTextClasses, 'font-400')
|
|
32111
|
+
};
|
|
32112
|
+
const baseEnabledEffectClasses = 'transition duration-300 ease-in-out focus:outline-none';
|
|
32113
|
+
const enabledEffectClasses = {
|
|
32114
|
+
[type.primary]: classnames_default()(baseEnabledEffectClasses, 'hover:bg-customblue-80 active:bg-customblue-40'),
|
|
32115
|
+
[type.secondary]: classnames_default()(baseEnabledEffectClasses, 'hover:bg-customblue-50 active:bg-customblue-20')
|
|
32116
|
+
};
|
|
32117
|
+
const baseEnabledClasses = 'text-white';
|
|
32118
|
+
const enabledClasses = {
|
|
32119
|
+
[type.primary]: classnames_default()('bg-primary-main', baseEnabledClasses, enabledEffectClasses[type.primary]),
|
|
32120
|
+
[type.secondary]: classnames_default()('bg-customblue-30', baseEnabledClasses, enabledEffectClasses[type.secondary])
|
|
32121
|
+
};
|
|
32122
|
+
const disabledClasses = 'bg-inputfield-placeholder text-common-light cursor-default';
|
|
32081
32123
|
const defaults = {
|
|
32082
32124
|
color: 'default',
|
|
32083
32125
|
disabled: false,
|
|
32084
|
-
|
|
32085
|
-
|
|
32086
|
-
|
|
32087
|
-
size: 'medium',
|
|
32088
|
-
type: 'button',
|
|
32089
|
-
variant: 'contained'
|
|
32090
|
-
};
|
|
32091
|
-
const roundedClasses = {
|
|
32092
|
-
none: '',
|
|
32093
|
-
small: 'rounded',
|
|
32094
|
-
medium: 'rounded-md',
|
|
32095
|
-
large: 'rounded-lg',
|
|
32096
|
-
full: 'rounded-full'
|
|
32097
|
-
};
|
|
32098
|
-
const variants = {
|
|
32099
|
-
text: {
|
|
32100
|
-
default: 'text-primary-light hover:bg-primary-light hover:text-white active:opacity-80 focus:bg-primary-light focus:text-white',
|
|
32101
|
-
primary: 'text-primary-main hover:bg-primary-main hover:text-white active:opacity-80 focus:bg-primary-main focus:text-white',
|
|
32102
|
-
secondary: 'text-secondary-light hover:bg-secondary-light hover:text-white active:opacity-80 focus:bg-secondary-light focus:text-white',
|
|
32103
|
-
white: 'text-white hover:bg-white hover:text-black active:opacity-80 focus:bg-white focus:text-black',
|
|
32104
|
-
black: 'text-black hover:bg-black hover:text-white focus:bg-black focus:text-white active:opacity-80'
|
|
32105
|
-
},
|
|
32106
|
-
outlined: {
|
|
32107
|
-
default: 'text-primary-light hover:bg-primary-light hover:text-black focus:text-black focus:bg-primary-light active:opacity-80',
|
|
32108
|
-
primary: 'text-primary-main hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
32109
|
-
secondary: 'text-secondary-light hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
32110
|
-
translucent: 'text-white hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
32111
|
-
white: 'text-black hover:bg-primary-main focus:bg-primary-main hover:border-black focus:border-black',
|
|
32112
|
-
black: 'text-white hover:bg-primary-main focus:bg-primary-main hover:border-black focus:border-black',
|
|
32113
|
-
primaryActive: 'text-primary-active hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
32114
|
-
primaryLight: 'border bg-transparent border-primary-main text-white hover:opacity-80 active:opacity-100 focus:opacity-80'
|
|
32115
|
-
},
|
|
32116
|
-
contained: {
|
|
32117
|
-
default: 'text-black hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
32118
|
-
primary: 'text-white hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
32119
|
-
primaryDark: 'text-primary-active hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
32120
|
-
secondary: 'text-white hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
32121
|
-
white: 'text-black hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
32122
|
-
black: 'text-white hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
32123
|
-
light: 'border text-black hover:opacity-80 active:opacity-100 focus:opacity-80'
|
|
32124
|
-
},
|
|
32125
|
-
disabled: {
|
|
32126
|
-
default: 'cursor-not-allowed opacity-50 text-black',
|
|
32127
|
-
primary: 'cursor-not-allowed opacity-50 text-white',
|
|
32128
|
-
secondary: 'cursor-not-allowed opacity-50 text-white',
|
|
32129
|
-
white: 'cursor-not-allowed opacity-50 text-black',
|
|
32130
|
-
black: 'cursor-not-allowed opacity-50 text-white',
|
|
32131
|
-
light: 'cursor-not-allowed opacity-50 border text-black'
|
|
32132
|
-
}
|
|
32133
|
-
};
|
|
32134
|
-
const defaultVariantBackGroundColor = {
|
|
32135
|
-
text: {
|
|
32136
|
-
default: '',
|
|
32137
|
-
primary: '',
|
|
32138
|
-
secondary: '',
|
|
32139
|
-
white: '',
|
|
32140
|
-
black: ''
|
|
32141
|
-
},
|
|
32142
|
-
outlined: {
|
|
32143
|
-
default: 'bg-transparent',
|
|
32144
|
-
primary: 'bg-transparent',
|
|
32145
|
-
secondary: 'bg-transparent',
|
|
32146
|
-
black: 'bg-black',
|
|
32147
|
-
white: ''
|
|
32148
|
-
},
|
|
32149
|
-
contained: {
|
|
32150
|
-
default: 'bg-primary-light',
|
|
32151
|
-
primary: 'bg-primary-main',
|
|
32152
|
-
primaryDark: 'bg-primary-dark',
|
|
32153
|
-
secondary: 'bg-secondary-light',
|
|
32154
|
-
white: 'bg-white',
|
|
32155
|
-
black: 'bg-black',
|
|
32156
|
-
light: 'bg-primary-light'
|
|
32157
|
-
},
|
|
32158
|
-
disabled: {
|
|
32159
|
-
default: 'bg-primary-light',
|
|
32160
|
-
primary: 'bg-primary-main',
|
|
32161
|
-
secondary: 'bg-secondary-light',
|
|
32162
|
-
white: 'bg-white',
|
|
32163
|
-
black: 'bg-black',
|
|
32164
|
-
light: 'bg-primary-light'
|
|
32165
|
-
}
|
|
32166
|
-
};
|
|
32167
|
-
const _getVariantClass = function (variant, color) {
|
|
32168
|
-
let bgColor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
32169
|
-
const defaultBackgroundColor = defaultVariantBackGroundColor[variant][color];
|
|
32170
|
-
if (!bgColor) {
|
|
32171
|
-
bgColor = defaultBackgroundColor;
|
|
32172
|
-
}
|
|
32173
|
-
return `${variants[variant][color]} ${bgColor}`;
|
|
32174
|
-
};
|
|
32175
|
-
const borderClasses = {
|
|
32176
|
-
none: '',
|
|
32177
|
-
light: 'border border-primary-light',
|
|
32178
|
-
primary: 'border border-primary-main',
|
|
32179
|
-
primaryActive: 'border border-primary-active',
|
|
32180
|
-
secondary: 'border border-secondary-light',
|
|
32181
|
-
white: 'border border-white',
|
|
32182
|
-
black: 'border border-black'
|
|
32183
|
-
};
|
|
32184
|
-
const sizeClasses = {
|
|
32185
|
-
small: 'py-2 px-2 text-sm min-w-md',
|
|
32186
|
-
medium: 'py-2 px-2 text-lg min-w-md',
|
|
32187
|
-
large: 'py-2 px-6 text-xl min-w-md',
|
|
32188
|
-
initial: ''
|
|
32189
|
-
};
|
|
32190
|
-
const fullWidthClasses = {
|
|
32191
|
-
true: 'flex w-full',
|
|
32192
|
-
false: 'inline-flex'
|
|
32126
|
+
rounded: 'small',
|
|
32127
|
+
size: size.medium,
|
|
32128
|
+
type: type.primary
|
|
32193
32129
|
};
|
|
32194
32130
|
const Button = _ref => {
|
|
32195
32131
|
let {
|
|
32196
32132
|
children,
|
|
32197
|
-
variant = defaults.variant,
|
|
32198
|
-
color = defaults.color,
|
|
32199
|
-
border = defaults.border,
|
|
32200
32133
|
size = defaults.size,
|
|
32201
|
-
rounded = defaults.rounded,
|
|
32202
32134
|
disabled = defaults.disabled,
|
|
32203
32135
|
type = defaults.type,
|
|
32204
|
-
fullWidth = defaults.fullWidth,
|
|
32205
|
-
bgColor = null,
|
|
32206
32136
|
startIcon: startIconProp,
|
|
32207
32137
|
endIcon: endIconProp,
|
|
32208
32138
|
name,
|
|
32209
32139
|
className,
|
|
32210
|
-
onClick
|
|
32211
|
-
/** TODO: All possible props should be explicitly defined -- avoid spreading props */
|
|
32212
|
-
...rest
|
|
32140
|
+
onClick
|
|
32213
32141
|
} = _ref;
|
|
32214
|
-
const startIcon = startIconProp && /*#__PURE__*/react.createElement(
|
|
32215
|
-
className: "mr-2"
|
|
32216
|
-
}, /*#__PURE__*/react.cloneElement(startIconProp, {
|
|
32142
|
+
const startIcon = startIconProp && /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.cloneElement(startIconProp, {
|
|
32217
32143
|
className: classnames_default()('w-4 h-4 fill-current')
|
|
32218
32144
|
}));
|
|
32219
|
-
const endIcon = endIconProp && /*#__PURE__*/react.createElement(
|
|
32220
|
-
className: "ml-2"
|
|
32221
|
-
}, /*#__PURE__*/react.cloneElement(endIconProp, {
|
|
32145
|
+
const endIcon = endIconProp && /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.cloneElement(endIconProp, {
|
|
32222
32146
|
className: classnames_default()('w-4 h-4 fill-current')
|
|
32223
32147
|
}));
|
|
32224
32148
|
const buttonElement = (0,react.useRef)(null);
|
|
@@ -32228,21 +32152,23 @@ const Button = _ref => {
|
|
|
32228
32152
|
onClick(e);
|
|
32229
32153
|
}
|
|
32230
32154
|
};
|
|
32231
|
-
const finalClassName = classnames_default()(
|
|
32232
|
-
|
|
32155
|
+
const finalClassName = classnames_default()(layoutClasses, fontTextClasses[type], disabled ? disabledClasses : enabledClasses[type], sizeClasses[size], children ? 'min-w-[32px]' : '',
|
|
32156
|
+
// minimum width for buttons with text; icon only button does NOT get a minimum width
|
|
32157
|
+
className);
|
|
32158
|
+
return /*#__PURE__*/react.createElement("button", {
|
|
32233
32159
|
className: finalClassName,
|
|
32234
32160
|
disabled: disabled,
|
|
32235
32161
|
ref: buttonElement,
|
|
32236
32162
|
onClick: handleOnClick,
|
|
32237
|
-
type: type,
|
|
32238
32163
|
"data-cy": `${name}-btn`
|
|
32239
|
-
},
|
|
32164
|
+
}, startIcon, children, endIcon);
|
|
32240
32165
|
};
|
|
32241
32166
|
Button.defaultProps = {
|
|
32242
|
-
color: defaults.color,
|
|
32243
32167
|
disabled: false,
|
|
32244
32168
|
children: '',
|
|
32245
|
-
onClick: () => {}
|
|
32169
|
+
onClick: () => {},
|
|
32170
|
+
type: defaults.type,
|
|
32171
|
+
size: defaults.size
|
|
32246
32172
|
};
|
|
32247
32173
|
Button.propTypes = {
|
|
32248
32174
|
/** What is inside the button, can be text or react component */
|
|
@@ -32250,32 +32176,24 @@ Button.propTypes = {
|
|
|
32250
32176
|
/** Callback to be called when the button is clicked */
|
|
32251
32177
|
onClick: (prop_types_default()).func.isRequired,
|
|
32252
32178
|
/** Button size */
|
|
32253
|
-
size: prop_types_default().oneOf([
|
|
32254
|
-
/** Button corner roundness */
|
|
32255
|
-
rounded: prop_types_default().oneOf(['none', 'small', 'medium', 'large', 'full']),
|
|
32256
|
-
variant: prop_types_default().oneOf(['text', 'outlined', 'contained', 'disabled']),
|
|
32257
|
-
/* color prop must have all the possible keys of variants defined above */
|
|
32258
|
-
color: prop_types_default().oneOf(['default', 'primary', 'primaryDark', 'primaryActive', 'secondary', 'white', 'black', 'inherit', 'light', 'translucent']),
|
|
32259
|
-
border: prop_types_default().oneOf(['none', 'light', 'default', 'primary', 'primaryActive', 'secondary', 'white', 'black']),
|
|
32260
|
-
/** Whether the button should have full width */
|
|
32261
|
-
fullWidth: (prop_types_default()).bool,
|
|
32179
|
+
size: prop_types_default().oneOf([size.medium, size.small]),
|
|
32262
32180
|
/** Whether the button should be disabled */
|
|
32263
32181
|
disabled: (prop_types_default()).bool,
|
|
32264
32182
|
/** Button type */
|
|
32265
|
-
type:
|
|
32183
|
+
type: prop_types_default().oneOf([type.primary, type.secondary]),
|
|
32266
32184
|
name: (prop_types_default()).string,
|
|
32267
32185
|
/** Button start icon name - if any icon is specified */
|
|
32268
32186
|
startIcon: (prop_types_default()).node,
|
|
32269
32187
|
/** Button end icon name - if any icon is specified */
|
|
32270
32188
|
endIcon: (prop_types_default()).node,
|
|
32271
32189
|
/** Additional TailwindCSS classnames */
|
|
32272
|
-
className: (prop_types_default()).string
|
|
32273
|
-
/** Background color for the button to override*/
|
|
32274
|
-
bgColor: (prop_types_default()).string
|
|
32190
|
+
className: (prop_types_default()).string
|
|
32275
32191
|
};
|
|
32276
32192
|
/* harmony default export */ const Button_Button = (Button);
|
|
32277
32193
|
;// CONCATENATED MODULE: ../../ui/src/components/Button/index.js
|
|
32278
32194
|
|
|
32195
|
+
|
|
32196
|
+
|
|
32279
32197
|
/* harmony default export */ const components_Button = (Button_Button);
|
|
32280
32198
|
;// CONCATENATED MODULE: ../../ui/src/components/ButtonGroup/ButtonGroup.tsx
|
|
32281
32199
|
function ButtonGroup_extends() { ButtonGroup_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 ButtonGroup_extends.apply(this, arguments); }
|
|
@@ -32283,7 +32201,7 @@ function ButtonGroup_extends() { ButtonGroup_extends = Object.assign ? Object.as
|
|
|
32283
32201
|
|
|
32284
32202
|
|
|
32285
32203
|
const baseButtonClass = 'border outline-none';
|
|
32286
|
-
const
|
|
32204
|
+
const roundedClasses = {
|
|
32287
32205
|
vertical: {
|
|
32288
32206
|
none: '',
|
|
32289
32207
|
small: 'first:rounded-t last:rounded-b',
|
|
@@ -32299,7 +32217,7 @@ const ButtonGroup_roundedClasses = {
|
|
|
32299
32217
|
full: 'first:rounded-l-full last:rounded-r-full'
|
|
32300
32218
|
}
|
|
32301
32219
|
};
|
|
32302
|
-
const
|
|
32220
|
+
const borderClasses = {
|
|
32303
32221
|
text: {
|
|
32304
32222
|
vertical: 'border-t-0 border-l-0 border-r-0 last:border-b-0',
|
|
32305
32223
|
horizontal: 'border-l-0 border-t-0 border-b-0 last:border-r-0'
|
|
@@ -32363,7 +32281,7 @@ const ButtonGroup = _ref => {
|
|
|
32363
32281
|
...other
|
|
32364
32282
|
} = _ref;
|
|
32365
32283
|
const ref = (0,react.useRef)(null);
|
|
32366
|
-
const buttonClasses = classnames_default()(baseButtonClass,
|
|
32284
|
+
const buttonClasses = classnames_default()(baseButtonClass, borderClasses[variant] && borderClasses[variant][orientation], variantClasses[variant] && variantClasses[variant][color], roundedClasses[orientation] && roundedClasses[orientation][rounded]);
|
|
32367
32285
|
return /*#__PURE__*/react.createElement("div", ButtonGroup_extends({
|
|
32368
32286
|
role: "group",
|
|
32369
32287
|
className: classnames_default()('group', className, orientationClasses[orientation], fullWidth ? fullWidthDisplayClass : baseDisplayClass),
|
|
@@ -32889,7 +32807,6 @@ const Footer = _ref => {
|
|
|
32889
32807
|
className: classnames_default()(flex, padding, className)
|
|
32890
32808
|
}, actions.map((action, index) => {
|
|
32891
32809
|
const isFirst = index === 0;
|
|
32892
|
-
const isPrimary = action.type === 'primary';
|
|
32893
32810
|
const onClickHandler = event => onSubmit({
|
|
32894
32811
|
action,
|
|
32895
32812
|
value,
|
|
@@ -32900,12 +32817,8 @@ const Footer = _ref => {
|
|
|
32900
32817
|
className: classnames_default()({
|
|
32901
32818
|
'ml-2': !isFirst
|
|
32902
32819
|
}, action.classes),
|
|
32903
|
-
|
|
32904
|
-
onClick: onClickHandler
|
|
32905
|
-
style: {
|
|
32906
|
-
transition: 'all .15s ease',
|
|
32907
|
-
height: 34
|
|
32908
|
-
}
|
|
32820
|
+
type: action.type,
|
|
32821
|
+
onClick: onClickHandler
|
|
32909
32822
|
}, action.text);
|
|
32910
32823
|
}));
|
|
32911
32824
|
};
|
|
@@ -32917,7 +32830,7 @@ Footer.propTypes = {
|
|
|
32917
32830
|
id: (prop_types_default()).string.isRequired,
|
|
32918
32831
|
text: (prop_types_default()).string.isRequired,
|
|
32919
32832
|
value: (prop_types_default()).any,
|
|
32920
|
-
type: prop_types_default().oneOf([
|
|
32833
|
+
type: prop_types_default().oneOf([type.primary, type.secondary]).isRequired,
|
|
32921
32834
|
classes: prop_types_default().arrayOf((prop_types_default()).string)
|
|
32922
32835
|
})).isRequired
|
|
32923
32836
|
};
|
|
@@ -33450,7 +33363,7 @@ Modal.propTypes = {
|
|
|
33450
33363
|
|
|
33451
33364
|
|
|
33452
33365
|
|
|
33453
|
-
const
|
|
33366
|
+
const baseClasses = 'text-center items-center justify-center transition duration-300 ease-in-out outline-none font-bold focus:outline-none';
|
|
33454
33367
|
const IconButton_roundedClasses = {
|
|
33455
33368
|
none: '',
|
|
33456
33369
|
small: 'rounded',
|
|
@@ -33458,7 +33371,7 @@ const IconButton_roundedClasses = {
|
|
|
33458
33371
|
large: 'rounded-lg',
|
|
33459
33372
|
full: 'rounded-full'
|
|
33460
33373
|
};
|
|
33461
|
-
const
|
|
33374
|
+
const IconButton_disabledClasses = {
|
|
33462
33375
|
true: 'cursor-not-allowed',
|
|
33463
33376
|
false: ''
|
|
33464
33377
|
};
|
|
@@ -33521,7 +33434,7 @@ const iconSizeClasses = {
|
|
|
33521
33434
|
large: 'w-6 h-6',
|
|
33522
33435
|
toolbar: 'w-5 h-5'
|
|
33523
33436
|
};
|
|
33524
|
-
const
|
|
33437
|
+
const fullWidthClasses = {
|
|
33525
33438
|
true: 'flex w-full',
|
|
33526
33439
|
false: 'inline-flex'
|
|
33527
33440
|
};
|
|
@@ -33549,7 +33462,7 @@ const IconButton = _ref => {
|
|
|
33549
33462
|
};
|
|
33550
33463
|
const bgColorToUse = bgColor ? bgColor : backgroundClasses[variant][color];
|
|
33551
33464
|
return /*#__PURE__*/react.createElement("button", {
|
|
33552
|
-
className: classnames_default()(
|
|
33465
|
+
className: classnames_default()(baseClasses, IconButton_variantClasses[variant][color], IconButton_roundedClasses[rounded], IconButton_sizeClasses[size], fullWidthClasses[fullWidth], IconButton_disabledClasses[disabled], bgColorToUse, className),
|
|
33553
33466
|
style: {
|
|
33554
33467
|
padding: size === 'toolbar' ? '10px' : null
|
|
33555
33468
|
},
|
|
@@ -40761,6 +40674,211 @@ LayoutSelector.propTypes = {
|
|
|
40761
40674
|
;// CONCATENATED MODULE: ../../ui/src/components/LayoutSelector/index.js
|
|
40762
40675
|
|
|
40763
40676
|
/* harmony default export */ const components_LayoutSelector = (LayoutSelector_LayoutSelector);
|
|
40677
|
+
;// CONCATENATED MODULE: ../../ui/src/components/LegacyButton/LegacyButton.tsx
|
|
40678
|
+
function LegacyButton_extends() { LegacyButton_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 LegacyButton_extends.apply(this, arguments); }
|
|
40679
|
+
|
|
40680
|
+
|
|
40681
|
+
|
|
40682
|
+
const LegacyButton_baseClasses = 'leading-none font-sans text-center justify-center items-center outline-none transition duration-300 ease-in-out focus:outline-none';
|
|
40683
|
+
const LegacyButton_defaults = {
|
|
40684
|
+
color: 'default',
|
|
40685
|
+
disabled: false,
|
|
40686
|
+
fullWidth: false,
|
|
40687
|
+
rounded: 'medium',
|
|
40688
|
+
border: 'none',
|
|
40689
|
+
size: 'medium',
|
|
40690
|
+
type: 'button',
|
|
40691
|
+
variant: 'contained'
|
|
40692
|
+
};
|
|
40693
|
+
const LegacyButton_roundedClasses = {
|
|
40694
|
+
none: '',
|
|
40695
|
+
small: 'rounded',
|
|
40696
|
+
medium: 'rounded-md',
|
|
40697
|
+
large: 'rounded-lg',
|
|
40698
|
+
full: 'rounded-full'
|
|
40699
|
+
};
|
|
40700
|
+
const variants = {
|
|
40701
|
+
text: {
|
|
40702
|
+
default: 'text-primary-light hover:bg-primary-light hover:text-white active:opacity-80 focus:bg-primary-light focus:text-white',
|
|
40703
|
+
primary: 'text-primary-main hover:bg-primary-main hover:text-white active:opacity-80 focus:bg-primary-main focus:text-white',
|
|
40704
|
+
secondary: 'text-secondary-light hover:bg-secondary-light hover:text-white active:opacity-80 focus:bg-secondary-light focus:text-white',
|
|
40705
|
+
white: 'text-white hover:bg-white hover:text-black active:opacity-80 focus:bg-white focus:text-black',
|
|
40706
|
+
black: 'text-black hover:bg-black hover:text-white focus:bg-black focus:text-white active:opacity-80'
|
|
40707
|
+
},
|
|
40708
|
+
outlined: {
|
|
40709
|
+
default: 'text-primary-light hover:bg-primary-light hover:text-black focus:text-black focus:bg-primary-light active:opacity-80',
|
|
40710
|
+
primary: 'text-primary-main hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
40711
|
+
secondary: 'text-secondary-light hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
40712
|
+
translucent: 'text-white hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
40713
|
+
white: 'text-black hover:bg-primary-main focus:bg-primary-main hover:border-black focus:border-black',
|
|
40714
|
+
black: 'text-white hover:bg-primary-main focus:bg-primary-main hover:border-black focus:border-black',
|
|
40715
|
+
primaryActive: 'text-primary-active hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
40716
|
+
primaryLight: 'border bg-transparent border-primary-main text-white hover:opacity-80 active:opacity-100 focus:opacity-80'
|
|
40717
|
+
},
|
|
40718
|
+
contained: {
|
|
40719
|
+
default: 'text-black hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
40720
|
+
primary: 'text-white hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
40721
|
+
primaryDark: 'text-primary-active hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
40722
|
+
secondary: 'text-white hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
40723
|
+
white: 'text-black hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
40724
|
+
black: 'text-white hover:opacity-80 active:opacity-100 focus:opacity-80',
|
|
40725
|
+
light: 'border text-black hover:opacity-80 active:opacity-100 focus:opacity-80'
|
|
40726
|
+
},
|
|
40727
|
+
disabled: {
|
|
40728
|
+
default: 'cursor-not-allowed opacity-50 text-black',
|
|
40729
|
+
primary: 'cursor-not-allowed opacity-50 text-white',
|
|
40730
|
+
secondary: 'cursor-not-allowed opacity-50 text-white',
|
|
40731
|
+
white: 'cursor-not-allowed opacity-50 text-black',
|
|
40732
|
+
black: 'cursor-not-allowed opacity-50 text-white',
|
|
40733
|
+
light: 'cursor-not-allowed opacity-50 border text-black'
|
|
40734
|
+
}
|
|
40735
|
+
};
|
|
40736
|
+
const defaultVariantBackGroundColor = {
|
|
40737
|
+
text: {
|
|
40738
|
+
default: '',
|
|
40739
|
+
primary: '',
|
|
40740
|
+
secondary: '',
|
|
40741
|
+
white: '',
|
|
40742
|
+
black: ''
|
|
40743
|
+
},
|
|
40744
|
+
outlined: {
|
|
40745
|
+
default: 'bg-transparent',
|
|
40746
|
+
primary: 'bg-transparent',
|
|
40747
|
+
secondary: 'bg-transparent',
|
|
40748
|
+
black: 'bg-black',
|
|
40749
|
+
white: ''
|
|
40750
|
+
},
|
|
40751
|
+
contained: {
|
|
40752
|
+
default: 'bg-primary-light',
|
|
40753
|
+
primary: 'bg-primary-main',
|
|
40754
|
+
primaryDark: 'bg-primary-dark',
|
|
40755
|
+
secondary: 'bg-secondary-light',
|
|
40756
|
+
white: 'bg-white',
|
|
40757
|
+
black: 'bg-black',
|
|
40758
|
+
light: 'bg-primary-light'
|
|
40759
|
+
},
|
|
40760
|
+
disabled: {
|
|
40761
|
+
default: 'bg-primary-light',
|
|
40762
|
+
primary: 'bg-primary-main',
|
|
40763
|
+
secondary: 'bg-secondary-light',
|
|
40764
|
+
white: 'bg-white',
|
|
40765
|
+
black: 'bg-black',
|
|
40766
|
+
light: 'bg-primary-light'
|
|
40767
|
+
}
|
|
40768
|
+
};
|
|
40769
|
+
const _getVariantClass = function (variant, color) {
|
|
40770
|
+
let bgColor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
40771
|
+
const defaultBackgroundColor = defaultVariantBackGroundColor[variant][color];
|
|
40772
|
+
if (!bgColor) {
|
|
40773
|
+
bgColor = defaultBackgroundColor;
|
|
40774
|
+
}
|
|
40775
|
+
return `${variants[variant][color]} ${bgColor}`;
|
|
40776
|
+
};
|
|
40777
|
+
const LegacyButton_borderClasses = {
|
|
40778
|
+
none: '',
|
|
40779
|
+
light: 'border border-primary-light',
|
|
40780
|
+
primary: 'border border-primary-main',
|
|
40781
|
+
primaryActive: 'border border-primary-active',
|
|
40782
|
+
secondary: 'border border-secondary-light',
|
|
40783
|
+
white: 'border border-white',
|
|
40784
|
+
black: 'border border-black'
|
|
40785
|
+
};
|
|
40786
|
+
const LegacyButton_sizeClasses = {
|
|
40787
|
+
small: 'py-2 px-2 text-sm min-w-md',
|
|
40788
|
+
medium: 'py-2 px-2 text-lg min-w-md',
|
|
40789
|
+
large: 'py-2 px-6 text-xl min-w-md',
|
|
40790
|
+
initial: ''
|
|
40791
|
+
};
|
|
40792
|
+
const LegacyButton_fullWidthClasses = {
|
|
40793
|
+
true: 'flex w-full',
|
|
40794
|
+
false: 'inline-flex'
|
|
40795
|
+
};
|
|
40796
|
+
const LegacyButton = _ref => {
|
|
40797
|
+
let {
|
|
40798
|
+
children,
|
|
40799
|
+
variant = LegacyButton_defaults.variant,
|
|
40800
|
+
color = LegacyButton_defaults.color,
|
|
40801
|
+
border = LegacyButton_defaults.border,
|
|
40802
|
+
size = LegacyButton_defaults.size,
|
|
40803
|
+
rounded = LegacyButton_defaults.rounded,
|
|
40804
|
+
disabled = LegacyButton_defaults.disabled,
|
|
40805
|
+
type = LegacyButton_defaults.type,
|
|
40806
|
+
fullWidth = LegacyButton_defaults.fullWidth,
|
|
40807
|
+
bgColor = null,
|
|
40808
|
+
startIcon: startIconProp,
|
|
40809
|
+
endIcon: endIconProp,
|
|
40810
|
+
name,
|
|
40811
|
+
className,
|
|
40812
|
+
onClick,
|
|
40813
|
+
/** TODO: All possible props should be explicitly defined -- avoid spreading props */
|
|
40814
|
+
...rest
|
|
40815
|
+
} = _ref;
|
|
40816
|
+
const startIcon = startIconProp && /*#__PURE__*/react.createElement("div", {
|
|
40817
|
+
className: "mr-2"
|
|
40818
|
+
}, /*#__PURE__*/react.cloneElement(startIconProp, {
|
|
40819
|
+
className: classnames_default()('w-4 h-4 fill-current')
|
|
40820
|
+
}));
|
|
40821
|
+
const endIcon = endIconProp && /*#__PURE__*/react.createElement("div", {
|
|
40822
|
+
className: "ml-2"
|
|
40823
|
+
}, /*#__PURE__*/react.cloneElement(endIconProp, {
|
|
40824
|
+
className: classnames_default()('w-4 h-4 fill-current')
|
|
40825
|
+
}));
|
|
40826
|
+
const buttonElement = (0,react.useRef)(null);
|
|
40827
|
+
const handleOnClick = e => {
|
|
40828
|
+
buttonElement.current.blur();
|
|
40829
|
+
if (!disabled) {
|
|
40830
|
+
onClick(e);
|
|
40831
|
+
}
|
|
40832
|
+
};
|
|
40833
|
+
const finalClassName = classnames_default()(LegacyButton_baseClasses, _getVariantClass(variant, color, bgColor), LegacyButton_borderClasses[border], LegacyButton_roundedClasses[rounded], LegacyButton_sizeClasses[size], LegacyButton_fullWidthClasses[fullWidth], className);
|
|
40834
|
+
return /*#__PURE__*/react.createElement("button", LegacyButton_extends({
|
|
40835
|
+
className: finalClassName,
|
|
40836
|
+
disabled: disabled,
|
|
40837
|
+
ref: buttonElement,
|
|
40838
|
+
onClick: handleOnClick,
|
|
40839
|
+
type: type,
|
|
40840
|
+
"data-cy": `${name}-btn`
|
|
40841
|
+
}, rest), startIcon, children, endIcon);
|
|
40842
|
+
};
|
|
40843
|
+
LegacyButton.defaultProps = {
|
|
40844
|
+
color: LegacyButton_defaults.color,
|
|
40845
|
+
disabled: false,
|
|
40846
|
+
children: '',
|
|
40847
|
+
onClick: () => {}
|
|
40848
|
+
};
|
|
40849
|
+
LegacyButton.propTypes = {
|
|
40850
|
+
/** What is inside the button, can be text or react component */
|
|
40851
|
+
children: (prop_types_default()).node,
|
|
40852
|
+
/** Callback to be called when the button is clicked */
|
|
40853
|
+
onClick: (prop_types_default()).func.isRequired,
|
|
40854
|
+
/** Button size */
|
|
40855
|
+
size: prop_types_default().oneOf(['small', 'medium', 'large', 'initial', 'inherit']),
|
|
40856
|
+
/** Button corner roundness */
|
|
40857
|
+
rounded: prop_types_default().oneOf(['none', 'small', 'medium', 'large', 'full']),
|
|
40858
|
+
variant: prop_types_default().oneOf(['text', 'outlined', 'contained', 'disabled']),
|
|
40859
|
+
/* color prop must have all the possible keys of variants defined above */
|
|
40860
|
+
color: prop_types_default().oneOf(['default', 'primary', 'primaryDark', 'primaryActive', 'secondary', 'white', 'black', 'inherit', 'light', 'translucent']),
|
|
40861
|
+
border: prop_types_default().oneOf(['none', 'light', 'default', 'primary', 'primaryActive', 'secondary', 'white', 'black']),
|
|
40862
|
+
/** Whether the button should have full width */
|
|
40863
|
+
fullWidth: (prop_types_default()).bool,
|
|
40864
|
+
/** Whether the button should be disabled */
|
|
40865
|
+
disabled: (prop_types_default()).bool,
|
|
40866
|
+
/** Button type */
|
|
40867
|
+
type: (prop_types_default()).string,
|
|
40868
|
+
name: (prop_types_default()).string,
|
|
40869
|
+
/** Button start icon name - if any icon is specified */
|
|
40870
|
+
startIcon: (prop_types_default()).node,
|
|
40871
|
+
/** Button end icon name - if any icon is specified */
|
|
40872
|
+
endIcon: (prop_types_default()).node,
|
|
40873
|
+
/** Additional TailwindCSS classnames */
|
|
40874
|
+
className: (prop_types_default()).string,
|
|
40875
|
+
/** Background color for the button to override*/
|
|
40876
|
+
bgColor: (prop_types_default()).string
|
|
40877
|
+
};
|
|
40878
|
+
/* harmony default export */ const LegacyButton_LegacyButton = (LegacyButton);
|
|
40879
|
+
;// CONCATENATED MODULE: ../../ui/src/components/LegacyButton/index.js
|
|
40880
|
+
|
|
40881
|
+
/* harmony default export */ const components_LegacyButton = (LegacyButton_LegacyButton);
|
|
40764
40882
|
;// CONCATENATED MODULE: ../../ui/src/components/LegacyCinePlayer/LegacyCinePlayerCustomInputRange.css
|
|
40765
40883
|
// extracted by mini-css-extract-plugin
|
|
40766
40884
|
|
|
@@ -41103,7 +41221,7 @@ const LegacyViewportActionBar = _ref => {
|
|
|
41103
41221
|
style: {
|
|
41104
41222
|
pointerEvents: 'all'
|
|
41105
41223
|
}
|
|
41106
|
-
}, /*#__PURE__*/react.createElement(components_ButtonGroup, null, /*#__PURE__*/react.createElement(
|
|
41224
|
+
}, /*#__PURE__*/react.createElement(components_ButtonGroup, null, /*#__PURE__*/react.createElement(components_LegacyButton, {
|
|
41107
41225
|
size: "initial",
|
|
41108
41226
|
className: "px-2 py-1 bg-black",
|
|
41109
41227
|
border: "light",
|
|
@@ -41111,7 +41229,7 @@ const LegacyViewportActionBar = _ref => {
|
|
|
41111
41229
|
}, /*#__PURE__*/react.createElement(Icon/* default */.Z, {
|
|
41112
41230
|
name: "chevron-left",
|
|
41113
41231
|
className: "w-4 text-white"
|
|
41114
|
-
})), /*#__PURE__*/react.createElement(
|
|
41232
|
+
})), /*#__PURE__*/react.createElement(components_LegacyButton, {
|
|
41115
41233
|
size: "initial",
|
|
41116
41234
|
border: "light",
|
|
41117
41235
|
className: "px-2 py-1 bg-black",
|
|
@@ -41401,7 +41519,7 @@ const Notification = _ref => {
|
|
|
41401
41519
|
color: 'text-yellow-500'
|
|
41402
41520
|
},
|
|
41403
41521
|
info: {
|
|
41404
|
-
icon: 'info',
|
|
41522
|
+
icon: 'notifications-info',
|
|
41405
41523
|
color: 'text-primary-main'
|
|
41406
41524
|
},
|
|
41407
41525
|
success: {
|
|
@@ -41421,27 +41539,24 @@ const Notification = _ref => {
|
|
|
41421
41539
|
} = getIconData();
|
|
41422
41540
|
return /*#__PURE__*/react.createElement("div", {
|
|
41423
41541
|
ref: notificationRef,
|
|
41424
|
-
className: "flex flex-col p-2 mx-2 mt-2 rounded bg-
|
|
41542
|
+
className: "flex flex-col p-2 mx-2 mt-2 border-2 rounded-md border-customblue-10 bg-customblue-400",
|
|
41425
41543
|
"data-cy": id
|
|
41426
41544
|
}, /*#__PURE__*/react.createElement("div", {
|
|
41427
|
-
className: "flex grow"
|
|
41545
|
+
className: "flex items-center grow"
|
|
41428
41546
|
}, /*#__PURE__*/react.createElement(Icon/* default */.Z, {
|
|
41429
41547
|
name: icon,
|
|
41430
|
-
className: classnames_default()('w-
|
|
41548
|
+
className: classnames_default()('w-6 h-6', color)
|
|
41431
41549
|
}), /*#__PURE__*/react.createElement("span", {
|
|
41432
|
-
className: "ml-2 text-
|
|
41550
|
+
className: "ml-2 text-[13px] text-black"
|
|
41433
41551
|
}, message)), /*#__PURE__*/react.createElement("div", {
|
|
41434
|
-
className: "flex justify-end mt-2"
|
|
41552
|
+
className: "flex flex-wrap gap-2 justify-end mt-2"
|
|
41435
41553
|
}, actions.map((action, index) => {
|
|
41436
41554
|
const isFirst = index === 0;
|
|
41437
|
-
const isPrimary = action.type === 'primary';
|
|
41438
41555
|
return /*#__PURE__*/react.createElement(components_Button, {
|
|
41439
|
-
|
|
41556
|
+
name: action.id,
|
|
41440
41557
|
key: index,
|
|
41441
|
-
|
|
41442
|
-
|
|
41443
|
-
}),
|
|
41444
|
-
color: isPrimary ? 'primary' : undefined,
|
|
41558
|
+
type: action.type,
|
|
41559
|
+
size: action.size || size.small,
|
|
41445
41560
|
onClick: () => {
|
|
41446
41561
|
onSubmit(action.value);
|
|
41447
41562
|
}
|
|
@@ -41458,7 +41573,8 @@ Notification.propTypes = {
|
|
|
41458
41573
|
actions: prop_types_default().arrayOf(prop_types_default().shape({
|
|
41459
41574
|
text: (prop_types_default()).string.isRequired,
|
|
41460
41575
|
value: (prop_types_default()).any.isRequired,
|
|
41461
|
-
type: prop_types_default().oneOf([
|
|
41576
|
+
type: prop_types_default().oneOf([type.primary, type.secondary]).isRequired,
|
|
41577
|
+
size: prop_types_default().oneOf([size.small, size.medium])
|
|
41462
41578
|
})).isRequired,
|
|
41463
41579
|
onSubmit: (prop_types_default()).func.isRequired,
|
|
41464
41580
|
/** Can be used as a callback to dismiss the notification for clicks that occur outside of it */
|
|
@@ -54848,7 +54964,7 @@ const SidePanel = _ref => {
|
|
|
54848
54964
|
},
|
|
54849
54965
|
|
|
54850
54966
|
"data-cy": `side-panel-header-${side}`
|
|
54851
|
-
}, /*#__PURE__*/react.createElement(
|
|
54967
|
+
}, /*#__PURE__*/react.createElement(components_LegacyButton, {
|
|
54852
54968
|
variant: "text",
|
|
54853
54969
|
color: "inherit",
|
|
54854
54970
|
border: "none",
|
|
@@ -56006,7 +56122,7 @@ const StudyBrowser = _ref => {
|
|
|
56006
56122
|
false: 'default'
|
|
56007
56123
|
};
|
|
56008
56124
|
const color = classStudyBrowser[`${isActive}`];
|
|
56009
|
-
return /*#__PURE__*/react.createElement(
|
|
56125
|
+
return /*#__PURE__*/react.createElement(components_LegacyButton, {
|
|
56010
56126
|
key: name,
|
|
56011
56127
|
className: 'text-white text-base p-2 min-w-18',
|
|
56012
56128
|
size: "initial",
|
|
@@ -56396,7 +56512,7 @@ const StudyListFilter = _ref => {
|
|
|
56396
56512
|
name: "icon-upload"
|
|
56397
56513
|
}), /*#__PURE__*/react.createElement("span", null, "Upload"))), /*#__PURE__*/react.createElement("div", {
|
|
56398
56514
|
className: "flex flex-row"
|
|
56399
|
-
}, isFiltering && /*#__PURE__*/react.createElement(
|
|
56515
|
+
}, isFiltering && /*#__PURE__*/react.createElement(components_LegacyButton, {
|
|
56400
56516
|
rounded: "full",
|
|
56401
56517
|
variant: "outlined",
|
|
56402
56518
|
color: "primaryActive",
|
|
@@ -56523,21 +56639,21 @@ const StudyListPagination = _ref => {
|
|
|
56523
56639
|
className: "flex items-center"
|
|
56524
56640
|
}, /*#__PURE__*/react.createElement(Typography/* default */.Z, {
|
|
56525
56641
|
className: "opacity-60 mr-4 text-base"
|
|
56526
|
-
}, t('Page'), " ", currentPage), /*#__PURE__*/react.createElement(components_ButtonGroup, null, /*#__PURE__*/react.createElement(
|
|
56642
|
+
}, t('Page'), " ", currentPage), /*#__PURE__*/react.createElement(components_ButtonGroup, null, /*#__PURE__*/react.createElement(components_LegacyButton, {
|
|
56527
56643
|
size: "initial",
|
|
56528
56644
|
className: "px-4 py-2 text-base",
|
|
56529
56645
|
color: "translucent",
|
|
56530
56646
|
border: "primary",
|
|
56531
56647
|
variant: "outlined",
|
|
56532
56648
|
onClick: () => navigateToPage(1)
|
|
56533
|
-
}, `<<`), /*#__PURE__*/react.createElement(
|
|
56649
|
+
}, `<<`), /*#__PURE__*/react.createElement(components_LegacyButton, {
|
|
56534
56650
|
size: "initial",
|
|
56535
56651
|
className: "py-2 px-2 text-base",
|
|
56536
56652
|
color: "translucent",
|
|
56537
56653
|
border: "primary",
|
|
56538
56654
|
variant: "outlined",
|
|
56539
56655
|
onClick: () => navigateToPage(currentPage - 1)
|
|
56540
|
-
}, t('Previous')), /*#__PURE__*/react.createElement(
|
|
56656
|
+
}, t('Previous')), /*#__PURE__*/react.createElement(components_LegacyButton, {
|
|
56541
56657
|
size: "initial",
|
|
56542
56658
|
className: "py-2 px-4 text-base",
|
|
56543
56659
|
color: "translucent",
|
|
@@ -57368,19 +57484,15 @@ const ViewportDownloadForm = _ref => {
|
|
|
57368
57484
|
}, t('Active viewport has no displayed image')))), /*#__PURE__*/react.createElement("div", {
|
|
57369
57485
|
className: "flex justify-end mt-4"
|
|
57370
57486
|
}, /*#__PURE__*/react.createElement(components_Button, {
|
|
57371
|
-
|
|
57372
|
-
|
|
57373
|
-
|
|
57374
|
-
color: "black",
|
|
57375
|
-
border: "secondary",
|
|
57376
|
-
onClick: onClose,
|
|
57377
|
-
className: "p-2"
|
|
57487
|
+
name: "cancel",
|
|
57488
|
+
type: type.secondary,
|
|
57489
|
+
onClick: onClose
|
|
57378
57490
|
}, t('Cancel')), /*#__PURE__*/react.createElement(components_Button, {
|
|
57379
57491
|
className: "ml-2",
|
|
57380
57492
|
disabled: hasError,
|
|
57381
57493
|
onClick: downloadImage,
|
|
57382
|
-
|
|
57383
|
-
|
|
57494
|
+
type: type.primary,
|
|
57495
|
+
name: 'download'
|
|
57384
57496
|
}, t('Download'))));
|
|
57385
57497
|
};
|
|
57386
57498
|
/* harmony default export */ const ViewportDownloadForm_ViewportDownloadForm = (ViewportDownloadForm);
|
|
@@ -57974,6 +58086,7 @@ HotkeysPreferences.defaultProps = {
|
|
|
57974
58086
|
|
|
57975
58087
|
|
|
57976
58088
|
|
|
58089
|
+
|
|
57977
58090
|
const UserPreferences = _ref => {
|
|
57978
58091
|
let {
|
|
57979
58092
|
availableLanguages,
|
|
@@ -58070,21 +58183,16 @@ const UserPreferences = _ref => {
|
|
|
58070
58183
|
})), /*#__PURE__*/react.createElement("div", {
|
|
58071
58184
|
className: "flex flex-row justify-between"
|
|
58072
58185
|
}, /*#__PURE__*/react.createElement(components_Button, {
|
|
58073
|
-
|
|
58074
|
-
border: "light",
|
|
58186
|
+
type: type.secondary,
|
|
58075
58187
|
onClick: onResetHandler,
|
|
58076
58188
|
disabled: disabled
|
|
58077
58189
|
}, t('Reset to Defaults')), /*#__PURE__*/react.createElement("div", {
|
|
58078
58190
|
className: "flex flex-row"
|
|
58079
58191
|
}, /*#__PURE__*/react.createElement(components_Button, {
|
|
58080
|
-
|
|
58081
|
-
border: "light",
|
|
58192
|
+
type: type.secondary,
|
|
58082
58193
|
onClick: onCancelHandler
|
|
58083
58194
|
}, t('Cancel')), /*#__PURE__*/react.createElement(components_Button, {
|
|
58084
|
-
variant: "contained",
|
|
58085
58195
|
disabled: state.isDisabled,
|
|
58086
|
-
color: "light",
|
|
58087
|
-
border: "light",
|
|
58088
58196
|
className: "ml-2",
|
|
58089
58197
|
onClick: onSubmitHandler
|
|
58090
58198
|
}, t('Save')))));
|
|
@@ -58807,6 +58915,8 @@ ViewportActionBar.propTypes = {
|
|
|
58807
58915
|
|
|
58808
58916
|
|
|
58809
58917
|
|
|
58918
|
+
|
|
58919
|
+
|
|
58810
58920
|
|
|
58811
58921
|
|
|
58812
58922
|
|
|
@@ -153878,7 +153988,7 @@ var selectOrdinal = function selectOrdinal() {
|
|
|
153878
153988
|
/******/ // This function allow to reference async chunks
|
|
153879
153989
|
/******/ __webpack_require__.u = (chunkId) => {
|
|
153880
153990
|
/******/ // return url for filenames based on template
|
|
153881
|
-
/******/ return "" + (chunkId === 18 ? "dicom-microscopy-viewer" : chunkId) + ".bundle." + {"18":"aa60bdf008c32c39cfd7","50":"
|
|
153991
|
+
/******/ return "" + (chunkId === 18 ? "dicom-microscopy-viewer" : chunkId) + ".bundle." + {"18":"aa60bdf008c32c39cfd7","50":"65ff60818862eda39d12","55":"550a823e75eb608e8d5e","82":"9a0e7f08d4bce18d302f","151":"31ea35044218837bf73f","192":"950e5380ea63c6d635d5","199":"f50ffd85a4334de2f5c1","205":"b5a473c200dcf2bbcdb4","208":"7f610a302dc54c4924da","270":"4564621556b0f963a004","283":"1015e87c3a47b1f1379c","295":"957b1159fec14b9199a1","331":"bd0c13931a21d53086c9","351":"0742237651aef9694a65","381":"0905e683605fcbc0895f","404":"3d65ff813eead20462d3","531":"2a82fb1d69e5b57cc72b","569":"c8e771a8d28e237b32be","581":"dc6197189f7c88c27d4c","606":"5d876f5f3dd8287f0a28","616":"de530ae226dfa5573f6e","642":"8905e515ce593e57ceb1","664":"09abae984223969d1bde","707":"f774f3e4a687ddd60a32","728":"d13856835357400fef82","744":"4c4b884f90eb70482821","780":"fd0f13dc92e9caa0581e","790":"7327fec7833ceea2784b","799":"758558e64147e5aad612","806":"2e7934d0833c4315c292","917":"b9983325adf849bff6fd","926":"dbc9d0e591cb9217fda2","935":"deeffff0e4f7b528e3c3","953":"3b0189ebc11cf0946f18","973":"4584df05b320b94cace5","976":"9cc2382162214ea0af2b","984":"119557c018e6371b4628"}[chunkId] + ".js";
|
|
153882
153992
|
/******/ };
|
|
153883
153993
|
/******/ })();
|
|
153884
153994
|
/******/
|