@elice/material-runbox 1.260930.0 → 1.261005.0
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/cjs/components/material-runbox/MaterialAdminRunboxConfirmDialog.js +7 -7
- package/cjs/components/material-runbox/MaterialRunbox.js +2 -2
- package/cjs/components/material-runbox/MaterialRunboxAlert.js +3 -3
- package/cjs/components/material-runbox/MaterialRunboxContent.d.ts +1 -1
- package/cjs/components/material-runbox/MaterialRunboxContent.js +33 -23
- package/cjs/components/material-runbox/MaterialRunboxHeader.js +13 -11
- package/cjs/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +5 -5
- package/cjs/components/material-runbox/actions/MaterialRunboxActionDisconnect.js +6 -6
- package/cjs/components/material-runbox/actions/MaterialRunboxActionDisconnectDialog.js +11 -9
- package/cjs/components/material-runbox/actions/MaterialRunboxActionDisconnectMenuItem.js +7 -8
- package/cjs/components/material-runbox/actions/MaterialRunboxActionGrade.js +25 -24
- package/cjs/components/material-runbox/actions/MaterialRunboxActionMenu.js +11 -7
- package/cjs/components/material-runbox/actions/MaterialRunboxActionReset.js +15 -16
- package/cjs/components/material-runbox/actions/MaterialRunboxActionRestart.js +13 -14
- package/cjs/components/material-runbox/actions/MaterialRunboxActionShare.js +8 -8
- package/cjs/components/material-runbox/actions/MaterialRunboxActionSubmitLog.js +6 -6
- package/cjs/components/material-runbox/actions/MaterialRunboxActionSubmitLogDialog.js +46 -38
- package/cjs/components/material-runbox/contexts/MaterialRunboxCommandContext.js +2 -2
- package/cjs/components/material-runbox/contexts/MaterialRunboxContext.d.ts +1 -1
- package/cjs/components/material-runbox/disk/MaterialRunboxDiskUsageAlert.js +5 -5
- package/cjs/components/material-runbox/disk/MaterialRunboxDiskUsageDialog.js +17 -13
- package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetButton.d.ts +2 -2
- package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetButton.js +5 -6
- package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetDialog.js +20 -16
- package/cjs/components/material-runbox/hooks/useRunboxControl.js +2 -2
- package/cjs/components/material-runbox/runtime/RuntimeChangeMaterialDialog.js +7 -7
- package/cjs/components/material-runbox/runtime/RuntimeOverlayConflicted.js +39 -27
- package/cjs/components/material-runbox/runtime/RuntimeOverlayLoading.js +68 -49
- package/cjs/components/material-runbox/runtime/RuntimeOverlayTerminated.js +35 -27
- package/cjs/components/material-runbox/runtime/runtime-loading-tips.d.ts +2 -2
- package/cjs/components/material-runbox/status/MaterialRunboxStatusButton.js +7 -7
- package/cjs/components/material-runbox/status/MaterialRunboxStatusConnectionItem.d.ts +1 -1
- package/cjs/components/material-runbox/status/MaterialRunboxStatusConnectionItem.js +16 -10
- package/cjs/components/material-runbox/status/MaterialRunboxStatusPopover.d.ts +1 -1
- package/cjs/components/material-runbox/status/MaterialRunboxStatusPopover.js +24 -20
- package/cjs/components/material-runbox/status/MaterialRunboxStatusResourceItem.js +22 -14
- package/cjs/components/material-runbox/theme.d.ts +2 -2
- package/cjs/components/material-runbox/theme.js +3 -3
- package/cjs/components/material-runbox/timer/MaterialRunboxQuotaAlmostEndDialog.js +39 -25
- package/cjs/components/material-runbox/timer/MaterialRunboxQuotaAmount.js +7 -5
- package/cjs/components/material-runbox/timer/MaterialRunboxQuotaPerSessionAlmostEndDialog.js +39 -25
- package/cjs/components/material-runbox/timer/MaterialRunboxQuotaTimePart.js +9 -5
- package/cjs/components/material-runbox/timer/MaterialRunboxTimer.js +17 -13
- package/cjs/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.d.ts +1 -1
- package/cjs/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.js +76 -48
- package/cjs/components/shared/hooks/useBreakpoint.d.ts +2 -2
- package/cjs/components/shared/hooks/useBreakpoint.js +3 -3
- package/cjs/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.d.ts +1 -1
- package/cjs/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.js +12 -11
- package/es/components/material-runbox/MaterialAdminRunboxConfirmDialog.js +1 -1
- package/es/components/material-runbox/MaterialRunbox.js +1 -1
- package/es/components/material-runbox/MaterialRunboxAlert.js +1 -1
- package/es/components/material-runbox/MaterialRunboxContent.d.ts +1 -1
- package/es/components/material-runbox/MaterialRunboxContent.js +19 -9
- package/es/components/material-runbox/MaterialRunboxHeader.js +9 -7
- package/es/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +2 -2
- package/es/components/material-runbox/actions/MaterialRunboxActionDisconnect.js +3 -3
- package/es/components/material-runbox/actions/MaterialRunboxActionDisconnectDialog.js +4 -2
- package/es/components/material-runbox/actions/MaterialRunboxActionDisconnectMenuItem.js +4 -5
- package/es/components/material-runbox/actions/MaterialRunboxActionGrade.js +6 -5
- package/es/components/material-runbox/actions/MaterialRunboxActionMenu.js +8 -4
- package/es/components/material-runbox/actions/MaterialRunboxActionReset.js +5 -6
- package/es/components/material-runbox/actions/MaterialRunboxActionRestart.js +4 -5
- package/es/components/material-runbox/actions/MaterialRunboxActionShare.js +4 -4
- package/es/components/material-runbox/actions/MaterialRunboxActionSubmitLog.js +3 -3
- package/es/components/material-runbox/actions/MaterialRunboxActionSubmitLogDialog.js +28 -20
- package/es/components/material-runbox/contexts/MaterialRunboxCommandContext.js +1 -1
- package/es/components/material-runbox/contexts/MaterialRunboxContext.d.ts +1 -1
- package/es/components/material-runbox/disk/MaterialRunboxDiskUsageAlert.js +3 -3
- package/es/components/material-runbox/disk/MaterialRunboxDiskUsageDialog.js +10 -6
- package/es/components/material-runbox/disk/MaterialRunboxEnvResetButton.d.ts +2 -2
- package/es/components/material-runbox/disk/MaterialRunboxEnvResetButton.js +3 -4
- package/es/components/material-runbox/disk/MaterialRunboxEnvResetDialog.js +10 -6
- package/es/components/material-runbox/hooks/useRunboxControl.js +1 -1
- package/es/components/material-runbox/runtime/RuntimeChangeMaterialDialog.js +1 -1
- package/es/components/material-runbox/runtime/RuntimeOverlayConflicted.js +26 -14
- package/es/components/material-runbox/runtime/RuntimeOverlayLoading.js +38 -19
- package/es/components/material-runbox/runtime/RuntimeOverlayTerminated.js +20 -12
- package/es/components/material-runbox/runtime/runtime-loading-tips.d.ts +2 -2
- package/es/components/material-runbox/status/MaterialRunboxStatusButton.js +5 -5
- package/es/components/material-runbox/status/MaterialRunboxStatusConnectionItem.d.ts +1 -1
- package/es/components/material-runbox/status/MaterialRunboxStatusConnectionItem.js +13 -7
- package/es/components/material-runbox/status/MaterialRunboxStatusPopover.d.ts +1 -1
- package/es/components/material-runbox/status/MaterialRunboxStatusPopover.js +19 -15
- package/es/components/material-runbox/status/MaterialRunboxStatusResourceItem.js +17 -9
- package/es/components/material-runbox/theme.d.ts +2 -2
- package/es/components/material-runbox/theme.js +1 -1
- package/es/components/material-runbox/timer/MaterialRunboxQuotaAlmostEndDialog.js +26 -12
- package/es/components/material-runbox/timer/MaterialRunboxQuotaAmount.js +5 -3
- package/es/components/material-runbox/timer/MaterialRunboxQuotaPerSessionAlmostEndDialog.js +26 -12
- package/es/components/material-runbox/timer/MaterialRunboxQuotaTimePart.js +7 -3
- package/es/components/material-runbox/timer/MaterialRunboxTimer.js +11 -7
- package/es/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.d.ts +1 -1
- package/es/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.js +55 -27
- package/es/components/shared/hooks/useBreakpoint.d.ts +2 -2
- package/es/components/shared/hooks/useBreakpoint.js +1 -1
- package/es/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.d.ts +1 -1
- package/es/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.js +10 -9
- package/package.json +15 -19
package/cjs/components/material-runbox/timer/MaterialRunboxQuotaPerSessionAlmostEndDialog.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var edsMaterial = require('@elice/eds-material');
|
|
6
7
|
var intl = require('@elice/intl');
|
|
7
8
|
var runboxClient = require('@elice/runbox-client');
|
|
8
|
-
var material = require('@mui/material');
|
|
9
9
|
var useRunboxSessionEndWarning = require('../hooks/useRunboxSessionEndWarning.js');
|
|
10
10
|
var MaterialRunboxQuotaAmount = require('./MaterialRunboxQuotaAmount.js');
|
|
11
11
|
var time = require('../../../utils/time.js');
|
|
@@ -34,12 +34,12 @@ var MaterialRunboxQuotaPerSessionAlmostEndDialog = function MaterialRunboxQuotaP
|
|
|
34
34
|
remainingMinutes = _getTimeParts.minutes;
|
|
35
35
|
var isQuotaAlmostEnd = !quotaInfo.isUnlimited && quotaInfo.remainingQuota <= useRunboxSessionEndWarning.QUOTA_ALMOST_END_MINUTES;
|
|
36
36
|
var isQuotaPerSessionAlmostEnd = quotaPerSessionInfo.remainingQuota <= useRunboxSessionEndWarning.QUOTA_PER_SESSION_ALMOST_END_MINUTES;
|
|
37
|
-
return jsxRuntime.jsxs(
|
|
37
|
+
return jsxRuntime.jsxs(edsMaterial.Dialog, {
|
|
38
38
|
fullWidth: true,
|
|
39
39
|
maxWidth: "xs",
|
|
40
40
|
open: open,
|
|
41
41
|
onClose: onClose,
|
|
42
|
-
children: [jsxRuntime.jsx(
|
|
42
|
+
children: [jsxRuntime.jsx(edsMaterial.DialogTitle, {
|
|
43
43
|
children: intl$1.formatMessage({
|
|
44
44
|
id: 'runbox.timer.almost_end.dialog.quota_per_session.title'
|
|
45
45
|
}, {
|
|
@@ -53,30 +53,38 @@ var MaterialRunboxQuotaPerSessionAlmostEndDialog = function MaterialRunboxQuotaP
|
|
|
53
53
|
unitDisplay: 'short'
|
|
54
54
|
}) : null].filter(Boolean).join(' ')
|
|
55
55
|
})
|
|
56
|
-
}), jsxRuntime.jsx(
|
|
57
|
-
children: jsxRuntime.jsxs(
|
|
56
|
+
}), jsxRuntime.jsx(edsMaterial.DialogContent, {
|
|
57
|
+
children: jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
58
58
|
direction: "column",
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
sx: {
|
|
60
|
+
gap: '1.5rem'
|
|
61
|
+
},
|
|
62
|
+
children: [jsxRuntime.jsxs(edsMaterial.Card, {
|
|
61
63
|
elevation: 0,
|
|
62
64
|
sx: {
|
|
63
65
|
bgcolor: 'background.neutral'
|
|
64
66
|
},
|
|
65
|
-
children: [jsxRuntime.jsxs(
|
|
67
|
+
children: [jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
66
68
|
direction: "column",
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
sx: {
|
|
70
|
+
bgcolor: isQuotaAlmostEnd ? 'warning.opacity03' : undefined,
|
|
71
|
+
padding: '1rem',
|
|
72
|
+
gap: '0.5rem'
|
|
73
|
+
},
|
|
74
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
71
75
|
variant: "body2",
|
|
72
|
-
|
|
76
|
+
sx: {
|
|
77
|
+
fontWeight: 'bold'
|
|
78
|
+
},
|
|
73
79
|
children: intl$1.formatMessage({
|
|
74
80
|
id: 'runbox.timer.popover.quota.title'
|
|
75
81
|
})
|
|
76
|
-
}), quotaInfo.isUnlimited ? jsxRuntime.jsx(
|
|
82
|
+
}), quotaInfo.isUnlimited ? jsxRuntime.jsx(edsMaterial.Typography, {
|
|
77
83
|
component: "span",
|
|
78
84
|
variant: "h5",
|
|
79
|
-
|
|
85
|
+
sx: {
|
|
86
|
+
fontWeight: 'extraBold'
|
|
87
|
+
},
|
|
80
88
|
children: intl$1.formatMessage({
|
|
81
89
|
id: 'runbox.timer.unlimited'
|
|
82
90
|
})
|
|
@@ -85,14 +93,18 @@ var MaterialRunboxQuotaPerSessionAlmostEndDialog = function MaterialRunboxQuotaP
|
|
|
85
93
|
quota: quotaInfo.quota,
|
|
86
94
|
color: isQuotaAlmostEnd ? 'warning.main' : 'success.main'
|
|
87
95
|
})]
|
|
88
|
-
}), jsxRuntime.jsx(
|
|
96
|
+
}), jsxRuntime.jsx(edsMaterial.Divider, {}), jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
89
97
|
direction: "column",
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
sx: {
|
|
99
|
+
bgcolor: isQuotaPerSessionAlmostEnd ? 'warning.opacity03' : undefined,
|
|
100
|
+
padding: '1rem',
|
|
101
|
+
gap: '0.5rem'
|
|
102
|
+
},
|
|
103
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
94
104
|
variant: "body2",
|
|
95
|
-
|
|
105
|
+
sx: {
|
|
106
|
+
fontWeight: 'bold'
|
|
107
|
+
},
|
|
96
108
|
children: intl$1.formatMessage({
|
|
97
109
|
id: 'runbox.timer.popover.quota_per_session.title'
|
|
98
110
|
})
|
|
@@ -102,16 +114,18 @@ var MaterialRunboxQuotaPerSessionAlmostEndDialog = function MaterialRunboxQuotaP
|
|
|
102
114
|
color: isQuotaPerSessionAlmostEnd ? 'warning.main' : 'success.main'
|
|
103
115
|
})]
|
|
104
116
|
})]
|
|
105
|
-
}), jsxRuntime.jsx(
|
|
117
|
+
}), jsxRuntime.jsx(edsMaterial.Typography, {
|
|
106
118
|
variant: "body2",
|
|
107
|
-
|
|
119
|
+
sx: {
|
|
120
|
+
whiteSpace: 'pre-line'
|
|
121
|
+
},
|
|
108
122
|
children: intl$1.formatMessage({
|
|
109
123
|
id: 'runbox.timer.almost_end.dialog.quota_per_session.description'
|
|
110
124
|
})
|
|
111
125
|
})]
|
|
112
126
|
})
|
|
113
|
-
}), jsxRuntime.jsx(
|
|
114
|
-
children: jsxRuntime.jsx(
|
|
127
|
+
}), jsxRuntime.jsx(edsMaterial.DialogActions, {
|
|
128
|
+
children: jsxRuntime.jsx(edsMaterial.Button, {
|
|
115
129
|
variant: "contained",
|
|
116
130
|
color: "inherit",
|
|
117
131
|
onClick: onClose,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var edsMaterial = require('@elice/eds-material');
|
|
6
7
|
var intl = require('@elice/intl');
|
|
7
|
-
var material = require('@mui/material');
|
|
8
8
|
|
|
9
9
|
//
|
|
10
10
|
//
|
|
@@ -25,20 +25,24 @@ var MaterialRunboxQuotaTimePart = function MaterialRunboxQuotaTimePart(_ref) {
|
|
|
25
25
|
if (value === 0) {
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
28
|
-
return jsxRuntime.jsx(
|
|
28
|
+
return jsxRuntime.jsx(edsMaterial.Typography, {
|
|
29
29
|
component: "span",
|
|
30
30
|
variant: "h5",
|
|
31
|
-
fontWeight: "extraBold",
|
|
32
31
|
color: color,
|
|
32
|
+
sx: {
|
|
33
|
+
fontWeight: 'extraBold'
|
|
34
|
+
},
|
|
33
35
|
children: intl$1.formatNumberToParts(value, {
|
|
34
36
|
style: 'unit',
|
|
35
37
|
unit: unit,
|
|
36
38
|
unitDisplay: 'short'
|
|
37
39
|
}).map(function (part, index) {
|
|
38
|
-
return part.type === 'unit' ? jsxRuntime.jsx(
|
|
40
|
+
return part.type === 'unit' ? jsxRuntime.jsx(edsMaterial.Typography, {
|
|
39
41
|
component: "span",
|
|
40
42
|
variant: "body2",
|
|
41
|
-
|
|
43
|
+
sx: {
|
|
44
|
+
fontWeight: 'regular'
|
|
45
|
+
},
|
|
42
46
|
children: part.value
|
|
43
47
|
}, index) : jsxRuntime.jsx("span", {
|
|
44
48
|
children: part.value
|
|
@@ -7,11 +7,11 @@ var _styled = require('@emotion/styled/base');
|
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var React = require('react');
|
|
9
9
|
var reactUse = require('react-use');
|
|
10
|
+
var edsKit = require('@elice/eds-kit');
|
|
11
|
+
var edsMaterial = require('@elice/eds-material');
|
|
10
12
|
var intl = require('@elice/intl');
|
|
11
|
-
var muiElements = require('@elice/mui-elements');
|
|
12
13
|
var runboxClient = require('@elice/runbox-client');
|
|
13
14
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
14
|
-
var material = require('@mui/material');
|
|
15
15
|
var useRunboxSessionEndWarning = require('../hooks/useRunboxSessionEndWarning.js');
|
|
16
16
|
var MaterialRunboxQuotaAlmostEndDialog = require('./MaterialRunboxQuotaAlmostEndDialog.js');
|
|
17
17
|
var MaterialRunboxQuotaPerSessionAlmostEndDialog = require('./MaterialRunboxQuotaPerSessionAlmostEndDialog.js');
|
|
@@ -28,9 +28,9 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
28
28
|
//
|
|
29
29
|
//
|
|
30
30
|
//
|
|
31
|
-
var StyledChip = /*#__PURE__*/_styled__default.default(
|
|
31
|
+
var StyledChip = /*#__PURE__*/_styled__default.default(edsMaterial.Chip, {
|
|
32
32
|
target: "e15iaxbx0"
|
|
33
|
-
})("&[data-active='true']:not(.",
|
|
33
|
+
})("&[data-active='true']:not(.", edsMaterial.chipClasses.colorWarning, "){background-color:", function (_ref) {
|
|
34
34
|
var theme = _ref.theme;
|
|
35
35
|
return theme.palette.action.focus;
|
|
36
36
|
}, ";color:", function (_ref2) {
|
|
@@ -93,11 +93,13 @@ var MaterialRunboxTimer = function MaterialRunboxTimer(_ref3) {
|
|
|
93
93
|
var minutesString = minutes.toString().padStart(2, '0');
|
|
94
94
|
var timeString = "".concat(hoursString, " : ").concat(minutesString);
|
|
95
95
|
var isAlmostEnd = !quotaInfo.isUnlimited && quotaInfo.remainingQuota <= useRunboxSessionEndWarning.QUOTA_ALMOST_END_MINUTES;
|
|
96
|
-
return jsxRuntime.jsx(
|
|
96
|
+
return jsxRuntime.jsx(edsMaterial.Tooltip, {
|
|
97
97
|
arrow: true,
|
|
98
98
|
placement: "bottom",
|
|
99
|
-
title: jsxRuntime.jsx(
|
|
100
|
-
|
|
99
|
+
title: jsxRuntime.jsx(edsMaterial.Typography, {
|
|
100
|
+
sx: {
|
|
101
|
+
color: 'text.primary'
|
|
102
|
+
},
|
|
101
103
|
children: intl$1.formatMessage({
|
|
102
104
|
id: 'runbox.timer.tooltip.title'
|
|
103
105
|
})
|
|
@@ -118,23 +120,25 @@ var MaterialRunboxTimer = function MaterialRunboxTimer(_ref3) {
|
|
|
118
120
|
variant: isAlmostEnd ? 'filled' : 'outlined',
|
|
119
121
|
color: isAlmostEnd ? 'warning' : 'default',
|
|
120
122
|
size: isSmallTabletOrSmaller ? 'small' : 'medium',
|
|
121
|
-
icon: jsxRuntime.jsx(
|
|
123
|
+
icon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
122
124
|
icon: proSolidSvgIcons.faTimer
|
|
123
125
|
}),
|
|
124
126
|
"data-active": isTimerDetailPopoverOpen,
|
|
125
127
|
label: jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
126
|
-
children: [jsxRuntime.jsx(
|
|
128
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
127
129
|
component: "span",
|
|
128
130
|
variant: "body1",
|
|
129
131
|
children: intl$1.formatMessage({
|
|
130
132
|
id: 'runbox.timer.title'
|
|
131
133
|
})
|
|
132
|
-
}), jsxRuntime.jsx(
|
|
134
|
+
}), jsxRuntime.jsx(edsMaterial.Typography, {
|
|
133
135
|
component: "span",
|
|
134
136
|
variant: "body1",
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
sx: {
|
|
138
|
+
display: 'inline-block',
|
|
139
|
+
whiteSpace: 'pre',
|
|
140
|
+
fontWeight: 'bold'
|
|
141
|
+
},
|
|
138
142
|
children: quotaInfo.isUnlimited ? " : ".concat(intl$1.formatMessage({
|
|
139
143
|
id: 'runbox.timer.unlimited'
|
|
140
144
|
})) : " ".concat(timeString)
|
|
@@ -7,11 +7,11 @@ var tslib = require('tslib');
|
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var reactUse = require('react-use');
|
|
9
9
|
var apiClient = require('@elice/api-client');
|
|
10
|
+
var edsKit = require('@elice/eds-kit');
|
|
11
|
+
var edsMaterial = require('@elice/eds-material');
|
|
10
12
|
var intl = require('@elice/intl');
|
|
11
|
-
var muiElements = require('@elice/mui-elements');
|
|
12
13
|
var runboxClient = require('@elice/runbox-client');
|
|
13
14
|
var proRegularSvgIcons = require('@fortawesome/pro-regular-svg-icons');
|
|
14
|
-
var material = require('@mui/material');
|
|
15
15
|
var reactQuery = require('@tanstack/react-query');
|
|
16
16
|
var useRunboxSessionEndWarning = require('../hooks/useRunboxSessionEndWarning.js');
|
|
17
17
|
var MaterialRunboxQuotaAmount = require('./MaterialRunboxQuotaAmount.js');
|
|
@@ -79,13 +79,13 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
81
|
var renderCloseButton = function renderCloseButton() {
|
|
82
|
-
return jsxRuntime.jsx(
|
|
82
|
+
return jsxRuntime.jsx(edsMaterial.IconButton, {
|
|
83
83
|
sx: {
|
|
84
84
|
position: 'absolute',
|
|
85
85
|
top: '1rem',
|
|
86
86
|
right: '1rem'
|
|
87
87
|
},
|
|
88
|
-
children: jsxRuntime.jsx(
|
|
88
|
+
children: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
89
89
|
icon: proRegularSvgIcons.faXmarkLarge,
|
|
90
90
|
onClick: handleClickClose
|
|
91
91
|
})
|
|
@@ -96,19 +96,25 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
96
96
|
*/
|
|
97
97
|
var renderHeader = function renderHeader() {
|
|
98
98
|
var _a;
|
|
99
|
-
return jsxRuntime.jsxs(
|
|
99
|
+
return jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
100
100
|
direction: "column",
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
sx: {
|
|
102
|
+
gap: '0.5rem',
|
|
103
|
+
width: '100%'
|
|
104
|
+
},
|
|
105
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
104
106
|
variant: "subtitle2",
|
|
105
|
-
|
|
107
|
+
sx: {
|
|
108
|
+
fontWeight: 'extraBold'
|
|
109
|
+
},
|
|
106
110
|
children: intl$1.formatMessage({
|
|
107
111
|
id: 'runbox.timer.popover.title'
|
|
108
112
|
})
|
|
109
|
-
}), jsxRuntime.jsx(
|
|
113
|
+
}), jsxRuntime.jsx(edsMaterial.Typography, {
|
|
110
114
|
variant: "body2",
|
|
111
|
-
|
|
115
|
+
sx: {
|
|
116
|
+
whiteSpace: 'pre-line'
|
|
117
|
+
},
|
|
112
118
|
children: intl$1.formatMessage({
|
|
113
119
|
id: 'runbox.timer.popover.description'
|
|
114
120
|
}, {
|
|
@@ -122,20 +128,26 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
122
128
|
*/
|
|
123
129
|
var renderQuotaTotal = function renderQuotaTotal() {
|
|
124
130
|
if (quotaInfo.isUnlimited) {
|
|
125
|
-
return jsxRuntime.jsxs(
|
|
131
|
+
return jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
126
132
|
direction: "column",
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
133
|
+
sx: {
|
|
134
|
+
padding: '1rem',
|
|
135
|
+
gap: '0.5rem'
|
|
136
|
+
},
|
|
137
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
130
138
|
variant: "body2",
|
|
131
|
-
|
|
139
|
+
sx: {
|
|
140
|
+
fontWeight: 'bold'
|
|
141
|
+
},
|
|
132
142
|
children: intl$1.formatMessage({
|
|
133
143
|
id: 'runbox.timer.popover.quota.title'
|
|
134
144
|
})
|
|
135
|
-
}), jsxRuntime.jsx(
|
|
145
|
+
}), jsxRuntime.jsx(edsMaterial.Typography, {
|
|
136
146
|
component: "span",
|
|
137
147
|
variant: "h5",
|
|
138
|
-
|
|
148
|
+
sx: {
|
|
149
|
+
fontWeight: 'extraBold'
|
|
150
|
+
},
|
|
139
151
|
children: intl$1.formatMessage({
|
|
140
152
|
id: 'runbox.timer.unlimited'
|
|
141
153
|
})
|
|
@@ -144,14 +156,18 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
144
156
|
}
|
|
145
157
|
var quotaColor = quotaInfo.remainingQuota > useRunboxSessionEndWarning.QUOTA_ALMOST_END_MINUTES ? 'success.main' : 'warning.main';
|
|
146
158
|
var quotaBgColor = quotaInfo.remainingQuota > useRunboxSessionEndWarning.QUOTA_ALMOST_END_MINUTES ? undefined : 'warning.opacity03';
|
|
147
|
-
return jsxRuntime.jsxs(
|
|
159
|
+
return jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
148
160
|
direction: "column",
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
161
|
+
sx: {
|
|
162
|
+
bgcolor: quotaBgColor,
|
|
163
|
+
padding: '1rem',
|
|
164
|
+
gap: '0.5rem'
|
|
165
|
+
},
|
|
166
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
153
167
|
variant: "body2",
|
|
154
|
-
|
|
168
|
+
sx: {
|
|
169
|
+
fontWeight: 'bold'
|
|
170
|
+
},
|
|
155
171
|
children: intl$1.formatMessage({
|
|
156
172
|
id: 'runbox.timer.popover.quota.title'
|
|
157
173
|
})
|
|
@@ -167,9 +183,11 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
167
183
|
*/
|
|
168
184
|
var renderQuotaPerSession = function renderQuotaPerSession() {
|
|
169
185
|
if (quotaPerSessionInfo.isUnlimited) {
|
|
170
|
-
return jsxRuntime.jsxs(
|
|
186
|
+
return jsxRuntime.jsxs(edsMaterial.Typography, {
|
|
171
187
|
variant: "body2",
|
|
172
|
-
|
|
188
|
+
sx: {
|
|
189
|
+
fontWeight: 'bold'
|
|
190
|
+
},
|
|
173
191
|
children: [intl$1.formatMessage({
|
|
174
192
|
id: 'runbox.timer.popover.quota_per_session.title'
|
|
175
193
|
}), " : ", intl$1.formatMessage({
|
|
@@ -179,14 +197,18 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
179
197
|
}
|
|
180
198
|
var perSessionColor = quotaPerSessionInfo.remainingQuota > useRunboxSessionEndWarning.QUOTA_PER_SESSION_ALMOST_END_MINUTES ? 'success.main' : 'warning.main';
|
|
181
199
|
var perSessionBgColor = quotaPerSessionInfo.remainingQuota > useRunboxSessionEndWarning.QUOTA_PER_SESSION_ALMOST_END_MINUTES ? undefined : 'warning.opacity03';
|
|
182
|
-
return jsxRuntime.jsxs(
|
|
200
|
+
return jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
183
201
|
direction: "column",
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
202
|
+
sx: {
|
|
203
|
+
bgcolor: perSessionBgColor,
|
|
204
|
+
padding: '1rem',
|
|
205
|
+
gap: '0.5rem'
|
|
206
|
+
},
|
|
207
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
188
208
|
variant: "body2",
|
|
189
|
-
|
|
209
|
+
sx: {
|
|
210
|
+
fontWeight: 'bold'
|
|
211
|
+
},
|
|
190
212
|
children: intl$1.formatMessage({
|
|
191
213
|
id: 'runbox.timer.popover.quota_per_session.title'
|
|
192
214
|
})
|
|
@@ -194,9 +216,11 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
194
216
|
remainingQuota: quotaPerSessionInfo.remainingQuota,
|
|
195
217
|
quota: quotaPerSessionInfo.quota,
|
|
196
218
|
color: perSessionColor
|
|
197
|
-
}), jsxRuntime.jsx(
|
|
219
|
+
}), jsxRuntime.jsx(edsMaterial.Typography, {
|
|
198
220
|
variant: "body2",
|
|
199
|
-
|
|
221
|
+
sx: {
|
|
222
|
+
color: 'text.tertiary'
|
|
223
|
+
},
|
|
200
224
|
children: intl$1.formatMessage({
|
|
201
225
|
id: 'runbox.timer.popover.quota_per_session.description'
|
|
202
226
|
}, {
|
|
@@ -209,25 +233,29 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
209
233
|
})]
|
|
210
234
|
});
|
|
211
235
|
};
|
|
212
|
-
return jsxRuntime.jsx(
|
|
236
|
+
return jsxRuntime.jsx(edsMaterial.Popover, Object.assign({
|
|
213
237
|
open: open,
|
|
214
|
-
TransitionComponent: material.Fade,
|
|
215
238
|
onClose: onClose
|
|
216
239
|
}, props, {
|
|
217
|
-
|
|
218
|
-
|
|
240
|
+
slots: {
|
|
241
|
+
transition: edsMaterial.Fade
|
|
242
|
+
},
|
|
243
|
+
children: jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
219
244
|
direction: "column",
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
245
|
+
sx: {
|
|
246
|
+
bgcolor: 'background.paper',
|
|
247
|
+
width: '22rem',
|
|
248
|
+
gap: '1rem',
|
|
249
|
+
padding: '1.5rem',
|
|
250
|
+
position: 'relative'
|
|
251
|
+
},
|
|
252
|
+
children: [renderHeader(), renderCloseButton(), jsxRuntime.jsxs(edsMaterial.Card, {
|
|
225
253
|
elevation: 0,
|
|
226
254
|
sx: {
|
|
227
255
|
bgcolor: 'background.neutral'
|
|
228
256
|
},
|
|
229
|
-
children: [renderQuotaTotal(), jsxRuntime.jsx(
|
|
230
|
-
}), jsxRuntime.jsx(
|
|
257
|
+
children: [renderQuotaTotal(), jsxRuntime.jsx(edsMaterial.Divider, {}), renderQuotaPerSession()]
|
|
258
|
+
}), jsxRuntime.jsx(edsMaterial.Button, {
|
|
231
259
|
fullWidth: true,
|
|
232
260
|
variant: "contained",
|
|
233
261
|
size: "medium",
|
|
@@ -236,15 +264,15 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
236
264
|
children: intl$1.formatMessage({
|
|
237
265
|
id: 'runbox.timer.popover.quota.disconnect'
|
|
238
266
|
})
|
|
239
|
-
}), jsxRuntime.jsx(
|
|
240
|
-
control: jsxRuntime.jsx(
|
|
267
|
+
}), jsxRuntime.jsx(edsMaterial.FormControlLabel, {
|
|
268
|
+
control: jsxRuntime.jsx(edsMaterial.Checkbox, {
|
|
241
269
|
size: "small",
|
|
242
270
|
checked: notShowTimerDetailPopoverOnStart,
|
|
243
271
|
onChange: function onChange(event) {
|
|
244
272
|
return setNotShowTimerDetailPopoverOnStart(event.target.checked);
|
|
245
273
|
}
|
|
246
274
|
}),
|
|
247
|
-
label: jsxRuntime.jsx(
|
|
275
|
+
label: jsxRuntime.jsx(edsMaterial.Typography, {
|
|
248
276
|
variant: "body2",
|
|
249
277
|
children: intl$1.formatMessage({
|
|
250
278
|
id: 'runbox.timer.popover.do_not_open'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Breakpoint, Breakpoints } from '@
|
|
2
|
-
type Query = Exclude<keyof Breakpoints, 'keys' | 'values' | 'between' | 'unit'>;
|
|
1
|
+
import type { Breakpoint, Breakpoints } from '@elice/eds-material';
|
|
2
|
+
type Query = Exclude<keyof Breakpoints, 'keys' | 'values' | 'between' | 'unit' | 'internal_mediaKeys'>;
|
|
3
3
|
export declare const useBreakpoint: (key: Breakpoint, query?: Query) => boolean;
|
|
4
4
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var edsMaterial = require('@elice/eds-material');
|
|
4
4
|
|
|
5
5
|
var useBreakpoint = function useBreakpoint(key) {
|
|
6
6
|
var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'up';
|
|
7
|
-
var theme =
|
|
8
|
-
var matches =
|
|
7
|
+
var theme = edsMaterial.useTheme();
|
|
8
|
+
var matches = edsMaterial.useMediaQuery(theme.breakpoints[query](key));
|
|
9
9
|
return matches;
|
|
10
10
|
};
|
|
11
11
|
|
|
@@ -6,10 +6,10 @@ var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHel
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var reactUse = require('react-use');
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var edsKit = require('@elice/eds-kit');
|
|
10
|
+
var edsMaterial = require('@elice/eds-material');
|
|
11
|
+
var edsXSnackbar = require('@elice/eds-x-snackbar');
|
|
11
12
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
12
|
-
var material = require('@mui/material');
|
|
13
13
|
|
|
14
14
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
15
15
|
|
|
@@ -29,7 +29,7 @@ var MaterialRunboxSnackbar = function MaterialRunboxSnackbar(_ref) {
|
|
|
29
29
|
open = _ref.open,
|
|
30
30
|
once = _ref.once,
|
|
31
31
|
sx = _ref.sx;
|
|
32
|
-
var _useSnackbar =
|
|
32
|
+
var _useSnackbar = edsXSnackbar.useSnackbar(),
|
|
33
33
|
enqueueSnackbar = _useSnackbar.enqueueSnackbar,
|
|
34
34
|
closeSnackbar = _useSnackbar.closeSnackbar;
|
|
35
35
|
var _useLocalStorage = reactUse.useLocalStorage("MaterialRunboxSnackbar.".concat(snackbarKey, ".wasOpened"), {}),
|
|
@@ -49,21 +49,22 @@ var MaterialRunboxSnackbar = function MaterialRunboxSnackbar(_ref) {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
enqueueSnackbar(jsxRuntime.jsxs(
|
|
52
|
+
enqueueSnackbar(jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
53
53
|
direction: "row",
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
sx: [{
|
|
55
|
+
alignItems: 'center',
|
|
56
|
+
gap: '0.75rem'
|
|
57
|
+
}].concat(_rollupPluginBabelHelpers.toConsumableArray(Array.isArray(sx) ? sx : [sx])),
|
|
58
|
+
children: [jsxRuntime.jsx(edsKit.FaIcon, {
|
|
58
59
|
color: "warning",
|
|
59
60
|
icon: proSolidSvgIcons.faWarning
|
|
60
|
-
}), message, jsxRuntime.jsx(
|
|
61
|
+
}), message, jsxRuntime.jsx(edsMaterial.IconButton, {
|
|
61
62
|
size: "medium",
|
|
62
63
|
color: "inherit",
|
|
63
64
|
onClick: function onClick() {
|
|
64
65
|
return closeSnackbar(snackbarKey);
|
|
65
66
|
},
|
|
66
|
-
children: jsxRuntime.jsx(
|
|
67
|
+
children: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
67
68
|
icon: proSolidSvgIcons.faXmark,
|
|
68
69
|
sx: {
|
|
69
70
|
margin: 'auto !important'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Dialog, DialogTitle, DialogContent, DialogActions, Button } from '@elice/eds-material';
|
|
2
3
|
import { useRawEliceIntl } from '@elice/intl';
|
|
3
|
-
import { Dialog, DialogTitle, DialogContent, DialogActions, Button } from '@mui/material';
|
|
4
4
|
|
|
5
5
|
//
|
|
6
6
|
//
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest } from 'tslib';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { ThemeProvider } from '@elice/eds-material';
|
|
3
4
|
import { IntlComponentBuilder, RawEliceIntlProvider } from '@elice/intl';
|
|
4
|
-
import { ThemeProvider } from '@mui/material';
|
|
5
5
|
import MaterialRunboxContent from './MaterialRunboxContent.js';
|
|
6
6
|
import { runboxDarkTheme } from './theme.js';
|
|
7
7
|
import messageEn from './locales/en.json.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Alert, AlertTitle } from '@elice/eds-material';
|
|
2
3
|
import { useRawEliceIntl } from '@elice/intl';
|
|
3
|
-
import { Alert, AlertTitle } from '@mui/material';
|
|
4
4
|
import { useMaterialRunboxRunboxIdStarterGet } from './hooks/useMaterialRunboxRunboxIdStarterGet.js';
|
|
5
5
|
|
|
6
6
|
var MaterialRunboxAlert = function MaterialRunboxAlert(_ref) {
|