@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
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var edsKit = require('@elice/eds-kit');
|
|
7
|
+
var edsMaterial = require('@elice/eds-material');
|
|
6
8
|
var intl = require('@elice/intl');
|
|
7
|
-
var muiElements = require('@elice/mui-elements');
|
|
8
9
|
var runboxClient = require('@elice/runbox-client');
|
|
9
10
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
10
|
-
var material = require('@mui/material');
|
|
11
11
|
var theme = require('../theme.js');
|
|
12
12
|
var terminated = require('../../../assets/terminated.png.js');
|
|
13
13
|
var en = require('../locales/en.json.js');
|
|
@@ -41,16 +41,16 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
41
41
|
*
|
|
42
42
|
*/
|
|
43
43
|
var renderConnectButton = function renderConnectButton() {
|
|
44
|
-
return jsxRuntime.jsx(
|
|
44
|
+
return jsxRuntime.jsx(edsMaterial.Box, {
|
|
45
45
|
sx: {
|
|
46
46
|
width: '20rem',
|
|
47
47
|
maxWidth: '100%'
|
|
48
48
|
},
|
|
49
|
-
children: jsxRuntime.jsx(
|
|
49
|
+
children: jsxRuntime.jsx(edsMaterial.Button, {
|
|
50
50
|
fullWidth: true,
|
|
51
51
|
variant: "contained",
|
|
52
52
|
color: "primary",
|
|
53
|
-
startIcon: jsxRuntime.jsx(
|
|
53
|
+
startIcon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
54
54
|
icon: proSolidSvgIcons.faLinkSimple
|
|
55
55
|
}),
|
|
56
56
|
onClick: handleClickConnect,
|
|
@@ -64,7 +64,7 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
64
64
|
*
|
|
65
65
|
*/
|
|
66
66
|
var renderContactButton = function renderContactButton() {
|
|
67
|
-
return jsxRuntime.jsx(
|
|
67
|
+
return jsxRuntime.jsx(edsMaterial.Button, {
|
|
68
68
|
variant: "text",
|
|
69
69
|
color: "primary",
|
|
70
70
|
onClick: showMessenger,
|
|
@@ -77,7 +77,7 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
77
77
|
*
|
|
78
78
|
*/
|
|
79
79
|
var renderUsageCard = function renderUsageCard(args) {
|
|
80
|
-
return jsxRuntime.jsx(
|
|
80
|
+
return jsxRuntime.jsx(edsMaterial.Card, {
|
|
81
81
|
elevation: 0,
|
|
82
82
|
sx: {
|
|
83
83
|
width: '20rem',
|
|
@@ -86,24 +86,26 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
86
86
|
bgcolor: 'grey.100',
|
|
87
87
|
padding: '1rem'
|
|
88
88
|
},
|
|
89
|
-
children: jsxRuntime.jsx(
|
|
89
|
+
children: jsxRuntime.jsx(edsMaterial.Stack, {
|
|
90
90
|
direction: "row",
|
|
91
|
-
|
|
92
|
-
gap: "1.5rem",
|
|
93
|
-
divider: jsxRuntime.jsx(material.Divider, {
|
|
91
|
+
divider: jsxRuntime.jsx(edsMaterial.Divider, {
|
|
94
92
|
flexItem: true,
|
|
95
93
|
orientation: "vertical",
|
|
96
94
|
sx: {
|
|
97
95
|
borderColor: 'grey.200'
|
|
98
96
|
}
|
|
99
97
|
}),
|
|
98
|
+
sx: {
|
|
99
|
+
gap: '1.5rem',
|
|
100
|
+
alignItems: 'center'
|
|
101
|
+
},
|
|
100
102
|
children: args.items.map(function (item, index) {
|
|
101
|
-
return jsxRuntime.jsxs(
|
|
103
|
+
return jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
102
104
|
direction: "column",
|
|
103
|
-
children: [jsxRuntime.jsx(
|
|
105
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
104
106
|
variant: "body2",
|
|
105
107
|
children: item.title
|
|
106
|
-
}), jsxRuntime.jsx(
|
|
108
|
+
}), jsxRuntime.jsx(edsMaterial.Typography, {
|
|
107
109
|
variant: "subtitle1",
|
|
108
110
|
children: item.value
|
|
109
111
|
})]
|
|
@@ -122,9 +124,9 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
122
124
|
// useRawEliceIntl (e.g. MaterialRunboxEnvResetButton and its dialog).
|
|
123
125
|
jsxRuntime.jsx(intl.RawEliceIntlProvider, {
|
|
124
126
|
value: intl$1,
|
|
125
|
-
children: jsxRuntime.jsx(
|
|
127
|
+
children: jsxRuntime.jsx(edsMaterial.ThemeProvider, {
|
|
126
128
|
theme: theme.runboxLightTheme,
|
|
127
|
-
children: jsxRuntime.jsx(
|
|
129
|
+
children: jsxRuntime.jsx(edsMaterial.Box, {
|
|
128
130
|
sx: {
|
|
129
131
|
display: 'flex',
|
|
130
132
|
justifyContent: 'center',
|
|
@@ -134,10 +136,12 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
134
136
|
backgroundColor: 'background.paper',
|
|
135
137
|
color: 'text.primary'
|
|
136
138
|
},
|
|
137
|
-
children: jsxRuntime.jsxs(
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
children: jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
140
|
+
sx: {
|
|
141
|
+
alignItems: 'center',
|
|
142
|
+
gap: '1.5rem'
|
|
143
|
+
},
|
|
144
|
+
children: [jsxRuntime.jsx(edsMaterial.Box, {
|
|
141
145
|
component: "img",
|
|
142
146
|
src: terminated.default,
|
|
143
147
|
alt: "terminated",
|
|
@@ -145,15 +149,19 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
145
149
|
maxWidth: '10rem',
|
|
146
150
|
height: 'auto'
|
|
147
151
|
}
|
|
148
|
-
}), jsxRuntime.jsx(
|
|
152
|
+
}), jsxRuntime.jsx(edsMaterial.Typography, {
|
|
149
153
|
variant: "h6",
|
|
150
|
-
|
|
151
|
-
|
|
154
|
+
sx: {
|
|
155
|
+
whiteSpace: 'pre-line',
|
|
156
|
+
textAlign: 'center'
|
|
157
|
+
},
|
|
152
158
|
children: args.title
|
|
153
|
-
}), jsxRuntime.jsx(
|
|
159
|
+
}), jsxRuntime.jsx(edsMaterial.Typography, {
|
|
154
160
|
variant: "body1",
|
|
155
|
-
|
|
156
|
-
|
|
161
|
+
sx: {
|
|
162
|
+
whiteSpace: 'pre-line',
|
|
163
|
+
textAlign: 'center'
|
|
164
|
+
},
|
|
157
165
|
children: args.description
|
|
158
166
|
}), args.body]
|
|
159
167
|
})
|
|
@@ -176,7 +184,7 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
176
184
|
}),
|
|
177
185
|
body: jsxRuntime.jsx(MaterialRunboxEnvResetButton.default, {
|
|
178
186
|
variant: "contained",
|
|
179
|
-
startIcon: jsxRuntime.jsx(
|
|
187
|
+
startIcon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
180
188
|
icon: proSolidSvgIcons.faArrowsRotate
|
|
181
189
|
}),
|
|
182
190
|
runtimeTemplateId: runtimeTemplateId,
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
|
+
var edsKit = require('@elice/eds-kit');
|
|
9
|
+
var edsMaterial = require('@elice/eds-material');
|
|
8
10
|
var intl = require('@elice/intl');
|
|
9
|
-
var muiElements = require('@elice/mui-elements');
|
|
10
11
|
var runboxClient = require('@elice/runbox-client');
|
|
11
12
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
12
|
-
var material = require('@mui/material');
|
|
13
13
|
var MaterialRunboxStatusPopover = require('./MaterialRunboxStatusPopover.js');
|
|
14
14
|
var useBreakpoint = require('../../shared/hooks/useBreakpoint.js');
|
|
15
15
|
var useRunboxDiskUsage = require('../hooks/useRunboxDiskUsage.js');
|
|
@@ -50,7 +50,7 @@ var MaterialRunboxStatusButton = function MaterialRunboxStatusButton(_ref) {
|
|
|
50
50
|
*/
|
|
51
51
|
var buttonProps = severity ? {
|
|
52
52
|
color: severity,
|
|
53
|
-
startIcon: jsxRuntime.jsx(
|
|
53
|
+
startIcon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
54
54
|
icon: proSolidSvgIcons.faDiscDrive
|
|
55
55
|
}),
|
|
56
56
|
children: isSmallTabletOrSmaller ? undefined : "DISK ".concat(intl$1.formatDataSize(diskCurrent, {
|
|
@@ -62,11 +62,11 @@ var MaterialRunboxStatusButton = function MaterialRunboxStatusButton(_ref) {
|
|
|
62
62
|
}))
|
|
63
63
|
} : {
|
|
64
64
|
color: 'inherit',
|
|
65
|
-
startIcon: jsxRuntime.jsx(
|
|
65
|
+
startIcon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
66
66
|
icon: proSolidSvgIcons.faWifi
|
|
67
67
|
}),
|
|
68
68
|
// The label follows the header, but the icon keeps reporting the runtime.
|
|
69
|
-
sx: _rollupPluginBabelHelpers.defineProperty({}, "& .".concat(
|
|
69
|
+
sx: _rollupPluginBabelHelpers.defineProperty({}, "& .".concat(edsMaterial.buttonClasses.startIcon), {
|
|
70
70
|
color: isRunboxRunning ? 'success.main' : 'text.disabled'
|
|
71
71
|
}),
|
|
72
72
|
children: isSmallTabletOrSmaller ? undefined : intl$1.formatMessage({
|
|
@@ -83,10 +83,10 @@ var MaterialRunboxStatusButton = function MaterialRunboxStatusButton(_ref) {
|
|
|
83
83
|
//
|
|
84
84
|
//
|
|
85
85
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
86
|
-
children: [jsxRuntime.jsx(
|
|
86
|
+
children: [jsxRuntime.jsx(edsMaterial.Button, Object.assign({
|
|
87
87
|
variant: "text",
|
|
88
88
|
size: "small",
|
|
89
|
-
endIcon: jsxRuntime.jsx(
|
|
89
|
+
endIcon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
90
90
|
icon: proSolidSvgIcons.faAngleDown
|
|
91
91
|
}),
|
|
92
92
|
onClick: function onClick(e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TypographyProps } from '@
|
|
1
|
+
import type { TypographyProps } from '@elice/eds-material';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
export interface MaterialRunboxStatusConnectionItemProps {
|
|
4
4
|
/** Leading icon element, or a progress indicator while connecting. */
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var
|
|
6
|
+
var edsMaterial = require('@elice/eds-material');
|
|
7
7
|
|
|
8
8
|
//
|
|
9
9
|
//
|
|
@@ -13,20 +13,26 @@ var MaterialRunboxStatusConnectionItem = function MaterialRunboxStatusConnection
|
|
|
13
13
|
label = _ref.label,
|
|
14
14
|
_ref$color = _ref.color,
|
|
15
15
|
color = _ref$color === void 0 ? 'text.disabled' : _ref$color;
|
|
16
|
-
return jsxRuntime.jsxs(
|
|
16
|
+
return jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
17
17
|
direction: "row",
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
sx: {
|
|
19
|
+
padding: '0 0.75rem',
|
|
20
|
+
minHeight: '2.5rem',
|
|
21
|
+
gap: '0.75rem',
|
|
22
|
+
alignItems: 'center'
|
|
23
|
+
},
|
|
24
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
23
25
|
component: "span",
|
|
24
|
-
display: "inline-flex",
|
|
25
26
|
color: color,
|
|
27
|
+
sx: {
|
|
28
|
+
display: 'inline-flex'
|
|
29
|
+
},
|
|
26
30
|
children: icon
|
|
27
|
-
}), jsxRuntime.jsx(
|
|
31
|
+
}), jsxRuntime.jsx(edsMaterial.Typography, {
|
|
28
32
|
variant: "body2",
|
|
29
|
-
|
|
33
|
+
sx: {
|
|
34
|
+
color: 'text.tertiary'
|
|
35
|
+
},
|
|
30
36
|
children: label
|
|
31
37
|
})]
|
|
32
38
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PopoverProps } from '@
|
|
1
|
+
import type { PopoverProps } from '@elice/eds-material';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
export interface MaterialRunboxStatusPopoverProps extends Omit<PopoverProps, 'open' | 'onClose' | 'children'> {
|
|
4
4
|
/** Whether the popover is open. */
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
6
|
var tslib = require('tslib');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
var edsKit = require('@elice/eds-kit');
|
|
9
|
+
var edsMaterial = require('@elice/eds-material');
|
|
8
10
|
var intl = require('@elice/intl');
|
|
9
|
-
var muiElements = require('@elice/mui-elements');
|
|
10
11
|
var runboxClient = require('@elice/runbox-client');
|
|
11
12
|
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
12
|
-
var material = require('@mui/material');
|
|
13
13
|
var MaterialRunboxStatusConnectionItem = require('./MaterialRunboxStatusConnectionItem.js');
|
|
14
14
|
var MaterialRunboxStatusResourceItem = require('./MaterialRunboxStatusResourceItem.js');
|
|
15
15
|
var useRunboxNetworkStatus = require('../hooks/useRunboxNetworkStatus.js');
|
|
@@ -47,21 +47,25 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
47
47
|
//
|
|
48
48
|
//
|
|
49
49
|
//
|
|
50
|
-
return jsxRuntime.jsx(
|
|
50
|
+
return jsxRuntime.jsx(edsMaterial.Popover, Object.assign({
|
|
51
51
|
open: open,
|
|
52
|
-
TransitionComponent: material.Fade,
|
|
53
52
|
onClose: onClose
|
|
54
53
|
}, props, {
|
|
55
|
-
|
|
54
|
+
slots: {
|
|
55
|
+
transition: edsMaterial.Fade
|
|
56
|
+
},
|
|
57
|
+
children: jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
56
58
|
direction: "column",
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
sx: {
|
|
60
|
+
bgcolor: 'background.paper',
|
|
61
|
+
width: POPOVER_WIDTH,
|
|
62
|
+
padding: '0.75rem',
|
|
63
|
+
gap: '0.75rem'
|
|
64
|
+
},
|
|
65
|
+
children: [jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
62
66
|
direction: "column",
|
|
63
67
|
children: [networkStatus ? jsxRuntime.jsx(MaterialRunboxStatusConnectionItem.default, {
|
|
64
|
-
icon: jsxRuntime.jsx(
|
|
68
|
+
icon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
65
69
|
icon: NETWORK_ICON[networkStatus],
|
|
66
70
|
fontSize: "small"
|
|
67
71
|
}),
|
|
@@ -70,10 +74,10 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
70
74
|
}),
|
|
71
75
|
color: NETWORK_COLOR[networkStatus]
|
|
72
76
|
}) : null, jsxRuntime.jsx(MaterialRunboxStatusConnectionItem.default, {
|
|
73
|
-
icon: isRunboxConnecting ? jsxRuntime.jsx(
|
|
77
|
+
icon: isRunboxConnecting ? jsxRuntime.jsx(edsMaterial.CircularProgress, {
|
|
74
78
|
color: "inherit",
|
|
75
79
|
size: "1rem"
|
|
76
|
-
}) : jsxRuntime.jsx(
|
|
80
|
+
}) : jsxRuntime.jsx(edsKit.FaIcon, {
|
|
77
81
|
icon: isRunboxRunning ? proSolidSvgIcons.faLinkSimple : proSolidSvgIcons.faLinkSimpleSlash,
|
|
78
82
|
fontSize: "small"
|
|
79
83
|
}),
|
|
@@ -83,10 +87,10 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
83
87
|
color: isRunboxRunning ? 'success.main' : 'text.disabled'
|
|
84
88
|
})]
|
|
85
89
|
}), stats || isRunboxConnecting ? jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
86
|
-
children: [jsxRuntime.jsx(
|
|
90
|
+
children: [jsxRuntime.jsx(edsMaterial.Divider, {}), jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
87
91
|
direction: "column",
|
|
88
92
|
children: [jsxRuntime.jsx(MaterialRunboxStatusResourceItem.default, {
|
|
89
|
-
icon: jsxRuntime.jsx(
|
|
93
|
+
icon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
90
94
|
icon: proSolidSvgIcons.faMicrochip,
|
|
91
95
|
fontSize: "small"
|
|
92
96
|
}),
|
|
@@ -96,7 +100,7 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
96
100
|
maximumFractionDigits: 2
|
|
97
101
|
}) : preparing
|
|
98
102
|
}), jsxRuntime.jsx(MaterialRunboxStatusResourceItem.default, {
|
|
99
|
-
icon: jsxRuntime.jsx(
|
|
103
|
+
icon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
100
104
|
icon: proSolidSvgIcons.faMemory,
|
|
101
105
|
fontSize: "small"
|
|
102
106
|
}),
|
|
@@ -109,7 +113,7 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
109
113
|
maximumFractionDigits: 2
|
|
110
114
|
})) : preparing
|
|
111
115
|
}), jsxRuntime.jsx(MaterialRunboxStatusResourceItem.default, {
|
|
112
|
-
icon: jsxRuntime.jsx(
|
|
116
|
+
icon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
113
117
|
icon: proSolidSvgIcons.faArrowUpRight,
|
|
114
118
|
fontSize: "small"
|
|
115
119
|
}),
|
|
@@ -118,7 +122,7 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
118
122
|
unitSystem: 'iec'
|
|
119
123
|
}), "/s") : preparing
|
|
120
124
|
}), jsxRuntime.jsx(MaterialRunboxStatusResourceItem.default, {
|
|
121
|
-
icon: jsxRuntime.jsx(
|
|
125
|
+
icon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
122
126
|
icon: proSolidSvgIcons.faArrowDownLeft,
|
|
123
127
|
fontSize: "small"
|
|
124
128
|
}),
|
|
@@ -127,7 +131,7 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
127
131
|
unitSystem: 'iec'
|
|
128
132
|
}), "/s") : preparing
|
|
129
133
|
}), jsxRuntime.jsx(MaterialRunboxStatusResourceItem.default, {
|
|
130
|
-
icon: jsxRuntime.jsx(
|
|
134
|
+
icon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
131
135
|
icon: proSolidSvgIcons.faDiscDrive,
|
|
132
136
|
fontSize: "small"
|
|
133
137
|
}),
|
|
@@ -146,7 +150,7 @@ var MaterialRunboxStatusPopover = function MaterialRunboxStatusPopover(_a) {
|
|
|
146
150
|
variant: "contained",
|
|
147
151
|
color: "error",
|
|
148
152
|
disabled: !isRunboxRunning,
|
|
149
|
-
startIcon: jsxRuntime.jsx(
|
|
153
|
+
startIcon: jsxRuntime.jsx(edsKit.FaIcon, {
|
|
150
154
|
icon: proSolidSvgIcons.faArrowsRotate
|
|
151
155
|
}),
|
|
152
156
|
runtimeTemplateId: runtimeTemplateId,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var
|
|
6
|
+
var edsMaterial = require('@elice/eds-material');
|
|
7
7
|
|
|
8
8
|
//
|
|
9
9
|
//
|
|
@@ -12,26 +12,34 @@ var MaterialRunboxStatusResourceItem = function MaterialRunboxStatusResourceItem
|
|
|
12
12
|
var icon = _ref.icon,
|
|
13
13
|
label = _ref.label,
|
|
14
14
|
value = _ref.value;
|
|
15
|
-
return jsxRuntime.jsxs(
|
|
15
|
+
return jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
16
16
|
direction: "row",
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
sx: {
|
|
18
|
+
padding: '0.375rem 0.75rem',
|
|
19
|
+
gap: '0.75rem',
|
|
20
|
+
alignItems: 'center'
|
|
21
|
+
},
|
|
22
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
21
23
|
component: "span",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
sx: {
|
|
25
|
+
color: 'text.tertiary',
|
|
26
|
+
display: 'inline-flex'
|
|
27
|
+
},
|
|
24
28
|
children: icon
|
|
25
|
-
}), jsxRuntime.jsxs(
|
|
29
|
+
}), jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
26
30
|
direction: "column",
|
|
27
|
-
children: [jsxRuntime.jsx(
|
|
31
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
28
32
|
variant: "body2",
|
|
29
|
-
|
|
33
|
+
sx: {
|
|
34
|
+
color: 'text.tertiary'
|
|
35
|
+
},
|
|
30
36
|
children: label
|
|
31
|
-
}), jsxRuntime.jsx(
|
|
37
|
+
}), jsxRuntime.jsx(edsMaterial.Typography, {
|
|
32
38
|
variant: "caption",
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
sx: {
|
|
40
|
+
color: 'text.tertiary',
|
|
41
|
+
fontFamily: "'JetBrains Mono', monospace"
|
|
42
|
+
},
|
|
35
43
|
children: value
|
|
36
44
|
})]
|
|
37
45
|
})]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const runboxDarkTheme: import("@
|
|
2
|
-
export declare const runboxLightTheme: import("@
|
|
1
|
+
export declare const runboxDarkTheme: import("@elice/eds-material").Theme;
|
|
2
|
+
export declare const runboxLightTheme: import("@elice/eds-material").Theme;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var edsMaterial = require('@elice/eds-material');
|
|
4
4
|
|
|
5
|
-
var runboxDarkTheme =
|
|
5
|
+
var runboxDarkTheme = edsMaterial.createEliceTheme({
|
|
6
6
|
paletteName: 'purple',
|
|
7
7
|
paletteMode: 'dark'
|
|
8
8
|
});
|
|
9
|
-
var runboxLightTheme =
|
|
9
|
+
var runboxLightTheme = edsMaterial.createEliceTheme({
|
|
10
10
|
paletteName: 'purple',
|
|
11
11
|
paletteMode: 'light'
|
|
12
12
|
});
|
|
@@ -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');
|
|
@@ -33,12 +33,12 @@ var MaterialRunboxQuotaAlmostEndDialog = function MaterialRunboxQuotaAlmostEndDi
|
|
|
33
33
|
remainingMinutes = _getTimeParts.minutes;
|
|
34
34
|
var isQuotaAlmostEnd = quotaInfo.remainingQuota <= useRunboxSessionEndWarning.QUOTA_ALMOST_END_MINUTES;
|
|
35
35
|
var isQuotaPerSessionAlmostEnd = !quotaPerSessionInfo.isUnlimited && quotaPerSessionInfo.remainingQuota <= useRunboxSessionEndWarning.QUOTA_PER_SESSION_ALMOST_END_MINUTES;
|
|
36
|
-
return jsxRuntime.jsxs(
|
|
36
|
+
return jsxRuntime.jsxs(edsMaterial.Dialog, {
|
|
37
37
|
fullWidth: true,
|
|
38
38
|
maxWidth: "xs",
|
|
39
39
|
open: open,
|
|
40
40
|
onClose: onClose,
|
|
41
|
-
children: [jsxRuntime.jsx(
|
|
41
|
+
children: [jsxRuntime.jsx(edsMaterial.DialogTitle, {
|
|
42
42
|
children: intl$1.formatMessage({
|
|
43
43
|
id: 'runbox.timer.almost_end.dialog.quota.title'
|
|
44
44
|
}, {
|
|
@@ -52,23 +52,29 @@ var MaterialRunboxQuotaAlmostEndDialog = function MaterialRunboxQuotaAlmostEndDi
|
|
|
52
52
|
unitDisplay: 'short'
|
|
53
53
|
}) : null].filter(Boolean).join(' ')
|
|
54
54
|
})
|
|
55
|
-
}), jsxRuntime.jsx(
|
|
56
|
-
children: jsxRuntime.jsxs(
|
|
55
|
+
}), jsxRuntime.jsx(edsMaterial.DialogContent, {
|
|
56
|
+
children: jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
57
57
|
direction: "column",
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
sx: {
|
|
59
|
+
gap: '1.5rem'
|
|
60
|
+
},
|
|
61
|
+
children: [jsxRuntime.jsxs(edsMaterial.Card, {
|
|
60
62
|
elevation: 0,
|
|
61
63
|
sx: {
|
|
62
64
|
bgcolor: 'background.neutral'
|
|
63
65
|
},
|
|
64
|
-
children: [jsxRuntime.jsxs(
|
|
66
|
+
children: [jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
65
67
|
direction: "column",
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
sx: {
|
|
69
|
+
bgcolor: isQuotaAlmostEnd ? 'warning.opacity03' : undefined,
|
|
70
|
+
padding: '1rem',
|
|
71
|
+
gap: '0.5rem'
|
|
72
|
+
},
|
|
73
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
70
74
|
variant: "body2",
|
|
71
|
-
|
|
75
|
+
sx: {
|
|
76
|
+
fontWeight: 'bold'
|
|
77
|
+
},
|
|
72
78
|
children: intl$1.formatMessage({
|
|
73
79
|
id: 'runbox.timer.popover.quota.title'
|
|
74
80
|
})
|
|
@@ -77,21 +83,27 @@ var MaterialRunboxQuotaAlmostEndDialog = function MaterialRunboxQuotaAlmostEndDi
|
|
|
77
83
|
quota: quotaInfo.quota,
|
|
78
84
|
color: isQuotaAlmostEnd ? 'warning.main' : 'success.main'
|
|
79
85
|
})]
|
|
80
|
-
}), jsxRuntime.jsx(
|
|
86
|
+
}), jsxRuntime.jsx(edsMaterial.Divider, {}), jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
81
87
|
direction: "column",
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
88
|
+
sx: {
|
|
89
|
+
bgcolor: isQuotaPerSessionAlmostEnd ? 'warning.opacity03' : undefined,
|
|
90
|
+
padding: '1rem',
|
|
91
|
+
gap: '0.5rem'
|
|
92
|
+
},
|
|
93
|
+
children: [jsxRuntime.jsx(edsMaterial.Typography, {
|
|
86
94
|
variant: "body2",
|
|
87
|
-
|
|
95
|
+
sx: {
|
|
96
|
+
fontWeight: 'bold'
|
|
97
|
+
},
|
|
88
98
|
children: intl$1.formatMessage({
|
|
89
99
|
id: 'runbox.timer.popover.quota_per_session.title'
|
|
90
100
|
})
|
|
91
|
-
}), quotaPerSessionInfo.isUnlimited ? jsxRuntime.jsx(
|
|
101
|
+
}), quotaPerSessionInfo.isUnlimited ? jsxRuntime.jsx(edsMaterial.Typography, {
|
|
92
102
|
component: "span",
|
|
93
103
|
variant: "h5",
|
|
94
|
-
|
|
104
|
+
sx: {
|
|
105
|
+
fontWeight: 'extraBold'
|
|
106
|
+
},
|
|
95
107
|
children: intl$1.formatMessage({
|
|
96
108
|
id: 'runbox.timer.unlimited'
|
|
97
109
|
})
|
|
@@ -101,16 +113,18 @@ var MaterialRunboxQuotaAlmostEndDialog = function MaterialRunboxQuotaAlmostEndDi
|
|
|
101
113
|
color: isQuotaPerSessionAlmostEnd ? 'warning.main' : 'success.main'
|
|
102
114
|
})]
|
|
103
115
|
})]
|
|
104
|
-
}), jsxRuntime.jsx(
|
|
116
|
+
}), jsxRuntime.jsx(edsMaterial.Typography, {
|
|
105
117
|
variant: "body2",
|
|
106
|
-
|
|
118
|
+
sx: {
|
|
119
|
+
whiteSpace: 'pre-line'
|
|
120
|
+
},
|
|
107
121
|
children: intl$1.formatMessage({
|
|
108
122
|
id: 'runbox.timer.almost_end.dialog.quota.description'
|
|
109
123
|
})
|
|
110
124
|
})]
|
|
111
125
|
})
|
|
112
|
-
}), jsxRuntime.jsx(
|
|
113
|
-
children: jsxRuntime.jsx(
|
|
126
|
+
}), jsxRuntime.jsx(edsMaterial.DialogActions, {
|
|
127
|
+
children: jsxRuntime.jsx(edsMaterial.Button, {
|
|
114
128
|
variant: "contained",
|
|
115
129
|
color: "inherit",
|
|
116
130
|
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
|
var MaterialRunboxQuotaTimePart = require('./MaterialRunboxQuotaTimePart.js');
|
|
9
9
|
var time = require('../../../utils/time.js');
|
|
10
10
|
|
|
@@ -25,13 +25,15 @@ var MaterialRunboxQuotaAmount = function MaterialRunboxQuotaAmount(_ref) {
|
|
|
25
25
|
var _getTimeParts2 = time.getTimeParts(quota * 60),
|
|
26
26
|
totalHours = _getTimeParts2.hours,
|
|
27
27
|
totalMinutes = _getTimeParts2.minutes;
|
|
28
|
-
return jsxRuntime.jsxs(
|
|
28
|
+
return jsxRuntime.jsxs(edsMaterial.Typography, {
|
|
29
29
|
variant: "body2",
|
|
30
|
-
children: [jsxRuntime.jsxs(
|
|
30
|
+
children: [jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
31
31
|
component: "span",
|
|
32
|
-
display: "inline-flex",
|
|
33
32
|
direction: "row",
|
|
34
|
-
|
|
33
|
+
sx: {
|
|
34
|
+
gap: '0.25rem',
|
|
35
|
+
display: 'inline-flex'
|
|
36
|
+
},
|
|
35
37
|
children: [jsxRuntime.jsx(MaterialRunboxQuotaTimePart.default, {
|
|
36
38
|
value: remainingHours,
|
|
37
39
|
unit: "hour",
|