@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Dialog, DialogTitle, DialogContent, Stack, Card, Typography, Divider, DialogActions, Button } from '@elice/eds-material';
|
|
2
3
|
import { useRawEliceIntl } from '@elice/intl';
|
|
3
4
|
import { useEliceRunboxQuota } from '@elice/runbox-client';
|
|
4
|
-
import { Dialog, DialogTitle, DialogContent, Stack, Card, Typography, Divider, DialogActions, Button } from '@mui/material';
|
|
5
5
|
import { QUOTA_ALMOST_END_MINUTES, QUOTA_PER_SESSION_ALMOST_END_MINUTES } from '../hooks/useRunboxSessionEndWarning.js';
|
|
6
6
|
import MaterialRunboxQuotaAmount from './MaterialRunboxQuotaAmount.js';
|
|
7
7
|
import { getTimeParts } from '../../../utils/time.js';
|
|
@@ -51,7 +51,9 @@ var MaterialRunboxQuotaAlmostEndDialog = function MaterialRunboxQuotaAlmostEndDi
|
|
|
51
51
|
}), jsx(DialogContent, {
|
|
52
52
|
children: jsxs(Stack, {
|
|
53
53
|
direction: "column",
|
|
54
|
-
|
|
54
|
+
sx: {
|
|
55
|
+
gap: '1.5rem'
|
|
56
|
+
},
|
|
55
57
|
children: [jsxs(Card, {
|
|
56
58
|
elevation: 0,
|
|
57
59
|
sx: {
|
|
@@ -59,12 +61,16 @@ var MaterialRunboxQuotaAlmostEndDialog = function MaterialRunboxQuotaAlmostEndDi
|
|
|
59
61
|
},
|
|
60
62
|
children: [jsxs(Stack, {
|
|
61
63
|
direction: "column",
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
sx: {
|
|
65
|
+
bgcolor: isQuotaAlmostEnd ? 'warning.opacity03' : undefined,
|
|
66
|
+
padding: '1rem',
|
|
67
|
+
gap: '0.5rem'
|
|
68
|
+
},
|
|
65
69
|
children: [jsx(Typography, {
|
|
66
70
|
variant: "body2",
|
|
67
|
-
|
|
71
|
+
sx: {
|
|
72
|
+
fontWeight: 'bold'
|
|
73
|
+
},
|
|
68
74
|
children: intl.formatMessage({
|
|
69
75
|
id: 'runbox.timer.popover.quota.title'
|
|
70
76
|
})
|
|
@@ -75,19 +81,25 @@ var MaterialRunboxQuotaAlmostEndDialog = function MaterialRunboxQuotaAlmostEndDi
|
|
|
75
81
|
})]
|
|
76
82
|
}), jsx(Divider, {}), jsxs(Stack, {
|
|
77
83
|
direction: "column",
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
84
|
+
sx: {
|
|
85
|
+
bgcolor: isQuotaPerSessionAlmostEnd ? 'warning.opacity03' : undefined,
|
|
86
|
+
padding: '1rem',
|
|
87
|
+
gap: '0.5rem'
|
|
88
|
+
},
|
|
81
89
|
children: [jsx(Typography, {
|
|
82
90
|
variant: "body2",
|
|
83
|
-
|
|
91
|
+
sx: {
|
|
92
|
+
fontWeight: 'bold'
|
|
93
|
+
},
|
|
84
94
|
children: intl.formatMessage({
|
|
85
95
|
id: 'runbox.timer.popover.quota_per_session.title'
|
|
86
96
|
})
|
|
87
97
|
}), quotaPerSessionInfo.isUnlimited ? jsx(Typography, {
|
|
88
98
|
component: "span",
|
|
89
99
|
variant: "h5",
|
|
90
|
-
|
|
100
|
+
sx: {
|
|
101
|
+
fontWeight: 'extraBold'
|
|
102
|
+
},
|
|
91
103
|
children: intl.formatMessage({
|
|
92
104
|
id: 'runbox.timer.unlimited'
|
|
93
105
|
})
|
|
@@ -99,7 +111,9 @@ var MaterialRunboxQuotaAlmostEndDialog = function MaterialRunboxQuotaAlmostEndDi
|
|
|
99
111
|
})]
|
|
100
112
|
}), jsx(Typography, {
|
|
101
113
|
variant: "body2",
|
|
102
|
-
|
|
114
|
+
sx: {
|
|
115
|
+
whiteSpace: 'pre-line'
|
|
116
|
+
},
|
|
103
117
|
children: intl.formatMessage({
|
|
104
118
|
id: 'runbox.timer.almost_end.dialog.quota.description'
|
|
105
119
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Typography, Stack } from '@elice/eds-material';
|
|
2
3
|
import { useRawEliceIntl } from '@elice/intl';
|
|
3
|
-
import { Typography, Stack } from '@mui/material';
|
|
4
4
|
import MaterialRunboxQuotaTimePart from './MaterialRunboxQuotaTimePart.js';
|
|
5
5
|
import { getTimeParts } from '../../../utils/time.js';
|
|
6
6
|
|
|
@@ -25,9 +25,11 @@ var MaterialRunboxQuotaAmount = function MaterialRunboxQuotaAmount(_ref) {
|
|
|
25
25
|
variant: "body2",
|
|
26
26
|
children: [jsxs(Stack, {
|
|
27
27
|
component: "span",
|
|
28
|
-
display: "inline-flex",
|
|
29
28
|
direction: "row",
|
|
30
|
-
|
|
29
|
+
sx: {
|
|
30
|
+
gap: '0.25rem',
|
|
31
|
+
display: 'inline-flex'
|
|
32
|
+
},
|
|
31
33
|
children: [jsx(MaterialRunboxQuotaTimePart, {
|
|
32
34
|
value: remainingHours,
|
|
33
35
|
unit: "hour",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Dialog, DialogTitle, DialogContent, Stack, Card, Typography, Divider, DialogActions, Button } from '@elice/eds-material';
|
|
2
3
|
import { useRawEliceIntl } from '@elice/intl';
|
|
3
4
|
import { useEliceRunboxQuota } from '@elice/runbox-client';
|
|
4
|
-
import { Dialog, DialogTitle, DialogContent, Stack, Card, Typography, Divider, DialogActions, Button } from '@mui/material';
|
|
5
5
|
import { QUOTA_ALMOST_END_MINUTES, QUOTA_PER_SESSION_ALMOST_END_MINUTES } from '../hooks/useRunboxSessionEndWarning.js';
|
|
6
6
|
import MaterialRunboxQuotaAmount from './MaterialRunboxQuotaAmount.js';
|
|
7
7
|
import { getTimeParts } from '../../../utils/time.js';
|
|
@@ -52,7 +52,9 @@ var MaterialRunboxQuotaPerSessionAlmostEndDialog = function MaterialRunboxQuotaP
|
|
|
52
52
|
}), jsx(DialogContent, {
|
|
53
53
|
children: jsxs(Stack, {
|
|
54
54
|
direction: "column",
|
|
55
|
-
|
|
55
|
+
sx: {
|
|
56
|
+
gap: '1.5rem'
|
|
57
|
+
},
|
|
56
58
|
children: [jsxs(Card, {
|
|
57
59
|
elevation: 0,
|
|
58
60
|
sx: {
|
|
@@ -60,19 +62,25 @@ var MaterialRunboxQuotaPerSessionAlmostEndDialog = function MaterialRunboxQuotaP
|
|
|
60
62
|
},
|
|
61
63
|
children: [jsxs(Stack, {
|
|
62
64
|
direction: "column",
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
sx: {
|
|
66
|
+
bgcolor: isQuotaAlmostEnd ? 'warning.opacity03' : undefined,
|
|
67
|
+
padding: '1rem',
|
|
68
|
+
gap: '0.5rem'
|
|
69
|
+
},
|
|
66
70
|
children: [jsx(Typography, {
|
|
67
71
|
variant: "body2",
|
|
68
|
-
|
|
72
|
+
sx: {
|
|
73
|
+
fontWeight: 'bold'
|
|
74
|
+
},
|
|
69
75
|
children: intl.formatMessage({
|
|
70
76
|
id: 'runbox.timer.popover.quota.title'
|
|
71
77
|
})
|
|
72
78
|
}), quotaInfo.isUnlimited ? jsx(Typography, {
|
|
73
79
|
component: "span",
|
|
74
80
|
variant: "h5",
|
|
75
|
-
|
|
81
|
+
sx: {
|
|
82
|
+
fontWeight: 'extraBold'
|
|
83
|
+
},
|
|
76
84
|
children: intl.formatMessage({
|
|
77
85
|
id: 'runbox.timer.unlimited'
|
|
78
86
|
})
|
|
@@ -83,12 +91,16 @@ var MaterialRunboxQuotaPerSessionAlmostEndDialog = function MaterialRunboxQuotaP
|
|
|
83
91
|
})]
|
|
84
92
|
}), jsx(Divider, {}), jsxs(Stack, {
|
|
85
93
|
direction: "column",
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
94
|
+
sx: {
|
|
95
|
+
bgcolor: isQuotaPerSessionAlmostEnd ? 'warning.opacity03' : undefined,
|
|
96
|
+
padding: '1rem',
|
|
97
|
+
gap: '0.5rem'
|
|
98
|
+
},
|
|
89
99
|
children: [jsx(Typography, {
|
|
90
100
|
variant: "body2",
|
|
91
|
-
|
|
101
|
+
sx: {
|
|
102
|
+
fontWeight: 'bold'
|
|
103
|
+
},
|
|
92
104
|
children: intl.formatMessage({
|
|
93
105
|
id: 'runbox.timer.popover.quota_per_session.title'
|
|
94
106
|
})
|
|
@@ -100,7 +112,9 @@ var MaterialRunboxQuotaPerSessionAlmostEndDialog = function MaterialRunboxQuotaP
|
|
|
100
112
|
})]
|
|
101
113
|
}), jsx(Typography, {
|
|
102
114
|
variant: "body2",
|
|
103
|
-
|
|
115
|
+
sx: {
|
|
116
|
+
whiteSpace: 'pre-line'
|
|
117
|
+
},
|
|
104
118
|
children: intl.formatMessage({
|
|
105
119
|
id: 'runbox.timer.almost_end.dialog.quota_per_session.description'
|
|
106
120
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Typography } from '@elice/eds-material';
|
|
2
3
|
import { useRawEliceIntl } from '@elice/intl';
|
|
3
|
-
import { Typography } from '@mui/material';
|
|
4
4
|
|
|
5
5
|
//
|
|
6
6
|
//
|
|
@@ -24,8 +24,10 @@ var MaterialRunboxQuotaTimePart = function MaterialRunboxQuotaTimePart(_ref) {
|
|
|
24
24
|
return jsx(Typography, {
|
|
25
25
|
component: "span",
|
|
26
26
|
variant: "h5",
|
|
27
|
-
fontWeight: "extraBold",
|
|
28
27
|
color: color,
|
|
28
|
+
sx: {
|
|
29
|
+
fontWeight: 'extraBold'
|
|
30
|
+
},
|
|
29
31
|
children: intl.formatNumberToParts(value, {
|
|
30
32
|
style: 'unit',
|
|
31
33
|
unit: unit,
|
|
@@ -34,7 +36,9 @@ var MaterialRunboxQuotaTimePart = function MaterialRunboxQuotaTimePart(_ref) {
|
|
|
34
36
|
return part.type === 'unit' ? jsx(Typography, {
|
|
35
37
|
component: "span",
|
|
36
38
|
variant: "body2",
|
|
37
|
-
|
|
39
|
+
sx: {
|
|
40
|
+
fontWeight: 'regular'
|
|
41
|
+
},
|
|
38
42
|
children: part.value
|
|
39
43
|
}, index) : jsx("span", {
|
|
40
44
|
children: part.value
|
|
@@ -3,11 +3,11 @@ import _styled from '@emotion/styled/base';
|
|
|
3
3
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useLocalStorage } from 'react-use';
|
|
6
|
+
import { FaIcon } from '@elice/eds-kit';
|
|
7
|
+
import { Chip, chipClasses, Tooltip, Typography } from '@elice/eds-material';
|
|
6
8
|
import { useRawEliceIntl } from '@elice/intl';
|
|
7
|
-
import { EliceIcon } from '@elice/mui-elements';
|
|
8
9
|
import { useEliceRunboxRunning, useEliceRunboxQuota } from '@elice/runbox-client';
|
|
9
10
|
import { faTimer } from '@fortawesome/pro-solid-svg-icons';
|
|
10
|
-
import { Chip, chipClasses, Tooltip, Typography } from '@mui/material';
|
|
11
11
|
import { useRunboxSessionEndWarning, QUOTA_ALMOST_END_MINUTES } from '../hooks/useRunboxSessionEndWarning.js';
|
|
12
12
|
import MaterialRunboxQuotaAlmostEndDialog from './MaterialRunboxQuotaAlmostEndDialog.js';
|
|
13
13
|
import MaterialRunboxQuotaPerSessionAlmostEndDialog from './MaterialRunboxQuotaPerSessionAlmostEndDialog.js';
|
|
@@ -88,7 +88,9 @@ var MaterialRunboxTimer = function MaterialRunboxTimer(_ref3) {
|
|
|
88
88
|
arrow: true,
|
|
89
89
|
placement: "bottom",
|
|
90
90
|
title: jsx(Typography, {
|
|
91
|
-
|
|
91
|
+
sx: {
|
|
92
|
+
color: 'text.primary'
|
|
93
|
+
},
|
|
92
94
|
children: intl.formatMessage({
|
|
93
95
|
id: 'runbox.timer.tooltip.title'
|
|
94
96
|
})
|
|
@@ -109,7 +111,7 @@ var MaterialRunboxTimer = function MaterialRunboxTimer(_ref3) {
|
|
|
109
111
|
variant: isAlmostEnd ? 'filled' : 'outlined',
|
|
110
112
|
color: isAlmostEnd ? 'warning' : 'default',
|
|
111
113
|
size: isSmallTabletOrSmaller ? 'small' : 'medium',
|
|
112
|
-
icon: jsx(
|
|
114
|
+
icon: jsx(FaIcon, {
|
|
113
115
|
icon: faTimer
|
|
114
116
|
}),
|
|
115
117
|
"data-active": isTimerDetailPopoverOpen,
|
|
@@ -123,9 +125,11 @@ var MaterialRunboxTimer = function MaterialRunboxTimer(_ref3) {
|
|
|
123
125
|
}), jsx(Typography, {
|
|
124
126
|
component: "span",
|
|
125
127
|
variant: "body1",
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
128
|
+
sx: {
|
|
129
|
+
display: 'inline-block',
|
|
130
|
+
whiteSpace: 'pre',
|
|
131
|
+
fontWeight: 'bold'
|
|
132
|
+
},
|
|
129
133
|
children: quotaInfo.isUnlimited ? " : ".concat(intl.formatMessage({
|
|
130
134
|
id: 'runbox.timer.unlimited'
|
|
131
135
|
})) : " ".concat(timeString)
|
|
@@ -3,11 +3,11 @@ import { __rest } from 'tslib';
|
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import { useLocalStorage } from 'react-use';
|
|
5
5
|
import { getOrgUserGet } from '@elice/api-client';
|
|
6
|
+
import { FaIcon } from '@elice/eds-kit';
|
|
7
|
+
import { Popover, Fade, Stack, Card, Divider, Button, FormControlLabel, Typography, Checkbox, IconButton } from '@elice/eds-material';
|
|
6
8
|
import { useRawEliceIntl } from '@elice/intl';
|
|
7
|
-
import { EliceIcon } from '@elice/mui-elements';
|
|
8
9
|
import { useEliceRunboxQuota } from '@elice/runbox-client';
|
|
9
10
|
import { faXmarkLarge } from '@fortawesome/pro-regular-svg-icons';
|
|
10
|
-
import { Popover, Fade, Stack, Card, Divider, Button, FormControlLabel, Typography, Checkbox, IconButton } from '@mui/material';
|
|
11
11
|
import { useQuery } from '@tanstack/react-query';
|
|
12
12
|
import { QUOTA_ALMOST_END_MINUTES, QUOTA_PER_SESSION_ALMOST_END_MINUTES } from '../hooks/useRunboxSessionEndWarning.js';
|
|
13
13
|
import MaterialRunboxQuotaAmount from './MaterialRunboxQuotaAmount.js';
|
|
@@ -81,7 +81,7 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
81
81
|
top: '1rem',
|
|
82
82
|
right: '1rem'
|
|
83
83
|
},
|
|
84
|
-
children: jsx(
|
|
84
|
+
children: jsx(FaIcon, {
|
|
85
85
|
icon: faXmarkLarge,
|
|
86
86
|
onClick: handleClickClose
|
|
87
87
|
})
|
|
@@ -94,17 +94,23 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
94
94
|
var _a;
|
|
95
95
|
return jsxs(Stack, {
|
|
96
96
|
direction: "column",
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
sx: {
|
|
98
|
+
gap: '0.5rem',
|
|
99
|
+
width: '100%'
|
|
100
|
+
},
|
|
99
101
|
children: [jsx(Typography, {
|
|
100
102
|
variant: "subtitle2",
|
|
101
|
-
|
|
103
|
+
sx: {
|
|
104
|
+
fontWeight: 'extraBold'
|
|
105
|
+
},
|
|
102
106
|
children: intl.formatMessage({
|
|
103
107
|
id: 'runbox.timer.popover.title'
|
|
104
108
|
})
|
|
105
109
|
}), jsx(Typography, {
|
|
106
110
|
variant: "body2",
|
|
107
|
-
|
|
111
|
+
sx: {
|
|
112
|
+
whiteSpace: 'pre-line'
|
|
113
|
+
},
|
|
108
114
|
children: intl.formatMessage({
|
|
109
115
|
id: 'runbox.timer.popover.description'
|
|
110
116
|
}, {
|
|
@@ -120,18 +126,24 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
120
126
|
if (quotaInfo.isUnlimited) {
|
|
121
127
|
return jsxs(Stack, {
|
|
122
128
|
direction: "column",
|
|
123
|
-
|
|
124
|
-
|
|
129
|
+
sx: {
|
|
130
|
+
padding: '1rem',
|
|
131
|
+
gap: '0.5rem'
|
|
132
|
+
},
|
|
125
133
|
children: [jsx(Typography, {
|
|
126
134
|
variant: "body2",
|
|
127
|
-
|
|
135
|
+
sx: {
|
|
136
|
+
fontWeight: 'bold'
|
|
137
|
+
},
|
|
128
138
|
children: intl.formatMessage({
|
|
129
139
|
id: 'runbox.timer.popover.quota.title'
|
|
130
140
|
})
|
|
131
141
|
}), jsx(Typography, {
|
|
132
142
|
component: "span",
|
|
133
143
|
variant: "h5",
|
|
134
|
-
|
|
144
|
+
sx: {
|
|
145
|
+
fontWeight: 'extraBold'
|
|
146
|
+
},
|
|
135
147
|
children: intl.formatMessage({
|
|
136
148
|
id: 'runbox.timer.unlimited'
|
|
137
149
|
})
|
|
@@ -142,12 +154,16 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
142
154
|
var quotaBgColor = quotaInfo.remainingQuota > QUOTA_ALMOST_END_MINUTES ? undefined : 'warning.opacity03';
|
|
143
155
|
return jsxs(Stack, {
|
|
144
156
|
direction: "column",
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
157
|
+
sx: {
|
|
158
|
+
bgcolor: quotaBgColor,
|
|
159
|
+
padding: '1rem',
|
|
160
|
+
gap: '0.5rem'
|
|
161
|
+
},
|
|
148
162
|
children: [jsx(Typography, {
|
|
149
163
|
variant: "body2",
|
|
150
|
-
|
|
164
|
+
sx: {
|
|
165
|
+
fontWeight: 'bold'
|
|
166
|
+
},
|
|
151
167
|
children: intl.formatMessage({
|
|
152
168
|
id: 'runbox.timer.popover.quota.title'
|
|
153
169
|
})
|
|
@@ -165,7 +181,9 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
165
181
|
if (quotaPerSessionInfo.isUnlimited) {
|
|
166
182
|
return jsxs(Typography, {
|
|
167
183
|
variant: "body2",
|
|
168
|
-
|
|
184
|
+
sx: {
|
|
185
|
+
fontWeight: 'bold'
|
|
186
|
+
},
|
|
169
187
|
children: [intl.formatMessage({
|
|
170
188
|
id: 'runbox.timer.popover.quota_per_session.title'
|
|
171
189
|
}), " : ", intl.formatMessage({
|
|
@@ -177,12 +195,16 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
177
195
|
var perSessionBgColor = quotaPerSessionInfo.remainingQuota > QUOTA_PER_SESSION_ALMOST_END_MINUTES ? undefined : 'warning.opacity03';
|
|
178
196
|
return jsxs(Stack, {
|
|
179
197
|
direction: "column",
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
198
|
+
sx: {
|
|
199
|
+
bgcolor: perSessionBgColor,
|
|
200
|
+
padding: '1rem',
|
|
201
|
+
gap: '0.5rem'
|
|
202
|
+
},
|
|
183
203
|
children: [jsx(Typography, {
|
|
184
204
|
variant: "body2",
|
|
185
|
-
|
|
205
|
+
sx: {
|
|
206
|
+
fontWeight: 'bold'
|
|
207
|
+
},
|
|
186
208
|
children: intl.formatMessage({
|
|
187
209
|
id: 'runbox.timer.popover.quota_per_session.title'
|
|
188
210
|
})
|
|
@@ -192,7 +214,9 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
192
214
|
color: perSessionColor
|
|
193
215
|
}), jsx(Typography, {
|
|
194
216
|
variant: "body2",
|
|
195
|
-
|
|
217
|
+
sx: {
|
|
218
|
+
color: 'text.tertiary'
|
|
219
|
+
},
|
|
196
220
|
children: intl.formatMessage({
|
|
197
221
|
id: 'runbox.timer.popover.quota_per_session.description'
|
|
198
222
|
}, {
|
|
@@ -207,16 +231,20 @@ var MaterialRunboxTimerDetailPopover = function MaterialRunboxTimerDetailPopover
|
|
|
207
231
|
};
|
|
208
232
|
return jsx(Popover, Object.assign({
|
|
209
233
|
open: open,
|
|
210
|
-
TransitionComponent: Fade,
|
|
211
234
|
onClose: onClose
|
|
212
235
|
}, props, {
|
|
236
|
+
slots: {
|
|
237
|
+
transition: Fade
|
|
238
|
+
},
|
|
213
239
|
children: jsxs(Stack, {
|
|
214
|
-
position: "relative",
|
|
215
240
|
direction: "column",
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
241
|
+
sx: {
|
|
242
|
+
bgcolor: 'background.paper',
|
|
243
|
+
width: '22rem',
|
|
244
|
+
gap: '1rem',
|
|
245
|
+
padding: '1.5rem',
|
|
246
|
+
position: 'relative'
|
|
247
|
+
},
|
|
220
248
|
children: [renderHeader(), renderCloseButton(), jsxs(Card, {
|
|
221
249
|
elevation: 0,
|
|
222
250
|
sx: {
|
|
@@ -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
|
-
import { slicedToArray as _slicedToArray, defineProperty as _defineProperty } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import { slicedToArray as _slicedToArray, defineProperty as _defineProperty, toConsumableArray as _toConsumableArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { useLocalStorage } from 'react-use';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { FaIcon } from '@elice/eds-kit';
|
|
6
|
+
import { Stack, IconButton } from '@elice/eds-material';
|
|
7
|
+
import { useSnackbar } from '@elice/eds-x-snackbar';
|
|
7
8
|
import { faWarning, faXmark } from '@fortawesome/pro-solid-svg-icons';
|
|
8
|
-
import { Stack, IconButton } from '@mui/material';
|
|
9
9
|
|
|
10
10
|
//
|
|
11
11
|
//
|
|
@@ -43,10 +43,11 @@ var MaterialRunboxSnackbar = function MaterialRunboxSnackbar(_ref) {
|
|
|
43
43
|
}
|
|
44
44
|
enqueueSnackbar(jsxs(Stack, {
|
|
45
45
|
direction: "row",
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
sx: [{
|
|
47
|
+
alignItems: 'center',
|
|
48
|
+
gap: '0.75rem'
|
|
49
|
+
}].concat(_toConsumableArray(Array.isArray(sx) ? sx : [sx])),
|
|
50
|
+
children: [jsx(FaIcon, {
|
|
50
51
|
color: "warning",
|
|
51
52
|
icon: faWarning
|
|
52
53
|
}), message, jsx(IconButton, {
|
|
@@ -55,7 +56,7 @@ var MaterialRunboxSnackbar = function MaterialRunboxSnackbar(_ref) {
|
|
|
55
56
|
onClick: function onClick() {
|
|
56
57
|
return closeSnackbar(snackbarKey);
|
|
57
58
|
},
|
|
58
|
-
children: jsx(
|
|
59
|
+
children: jsx(FaIcon, {
|
|
59
60
|
icon: faXmark,
|
|
60
61
|
sx: {
|
|
61
62
|
margin: 'auto !important'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-runbox",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.261005.0",
|
|
4
4
|
"description": "User view and editing components of Elice material runbox",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@elice/api-client": "^1",
|
|
22
|
+
"@elice/eds-kit": "^1.261005.0",
|
|
23
|
+
"@elice/eds-material": "^1.261005.0",
|
|
24
|
+
"@elice/eds-x-snackbar": "^1.261005.0",
|
|
22
25
|
"@elice/intl": "^0",
|
|
23
|
-
"@elice/mui-elements": "^5",
|
|
24
|
-
"@elice/mui-system": "^5",
|
|
25
|
-
"@elice/mui-x-snackbar": "^5",
|
|
26
26
|
"@elice/openapi-client-material-runbox": "^1",
|
|
27
27
|
"@elice/runbox-client": "^1",
|
|
28
28
|
"@elice/types": "^1",
|
|
@@ -30,15 +30,13 @@
|
|
|
30
30
|
"@emotion/styled": "^11.10.0",
|
|
31
31
|
"@fortawesome/pro-regular-svg-icons": "^6",
|
|
32
32
|
"@fortawesome/pro-solid-svg-icons": "^6",
|
|
33
|
-
"@mui/icons-material": "^
|
|
34
|
-
"@mui/lab": "^5.0.0-alpha.112",
|
|
35
|
-
"@mui/material": "^5.10.16",
|
|
33
|
+
"@mui/icons-material": "^9.1.0",
|
|
36
34
|
"@tanstack/react-query": "^4",
|
|
37
|
-
"react": "^
|
|
35
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
38
36
|
"react-transition-group": "^4.4.0",
|
|
39
37
|
"react-use": "^17.0.0",
|
|
40
|
-
"@elice/material-shared-types": "1.
|
|
41
|
-
"@elice/material-shared-utils": "1.
|
|
38
|
+
"@elice/material-shared-types": "1.261005.0",
|
|
39
|
+
"@elice/material-shared-utils": "1.261005.0"
|
|
42
40
|
},
|
|
43
41
|
"dependencies": {
|
|
44
42
|
"classnames": "^2.2.0",
|
|
@@ -50,21 +48,19 @@
|
|
|
50
48
|
},
|
|
51
49
|
"devDependencies": {
|
|
52
50
|
"@elice/api-client": "1.260529.0",
|
|
51
|
+
"@elice/eds-kit": "1.261005.0",
|
|
52
|
+
"@elice/eds-material": "1.261005.0",
|
|
53
|
+
"@elice/eds-x-snackbar": "1.261005.0",
|
|
53
54
|
"@elice/intl": "0.260526.0",
|
|
54
|
-
"@elice/mui-elements": "5.251204.0",
|
|
55
|
-
"@elice/mui-system": "5.251204.0",
|
|
56
|
-
"@elice/mui-x-snackbar": "^5.250108.0-controllabel.0",
|
|
57
55
|
"@elice/openapi-client-material-runbox": "1.260910.0",
|
|
58
56
|
"@elice/rollup-config": "^1.260406.0",
|
|
59
|
-
"@elice/runbox-client": "1.
|
|
57
|
+
"@elice/runbox-client": "1.260915.0-edsmigration.1",
|
|
60
58
|
"@elice/types": "1.260608.0",
|
|
61
59
|
"@emotion/react": "^11.10.0",
|
|
62
60
|
"@emotion/styled": "^11.10.0",
|
|
63
61
|
"@fortawesome/pro-regular-svg-icons": "^6.4.2",
|
|
64
62
|
"@fortawesome/pro-solid-svg-icons": "^6.4.2",
|
|
65
|
-
"@mui/icons-material": "
|
|
66
|
-
"@mui/lab": "^5.0.0-alpha.112",
|
|
67
|
-
"@mui/material": "^5.10.16",
|
|
63
|
+
"@mui/icons-material": "9.1.0",
|
|
68
64
|
"@tanstack/react-query": "^4.29.3",
|
|
69
65
|
"@types/classnames": "^2.3.1",
|
|
70
66
|
"@types/react": "^18.2.0",
|
|
@@ -77,8 +73,8 @@
|
|
|
77
73
|
"react-use": "^17.2.4",
|
|
78
74
|
"rollup": "^4.0.0",
|
|
79
75
|
"typescript": "~5.9.3",
|
|
80
|
-
"@elice/material-shared-types": "1.
|
|
81
|
-
"@elice/material-shared-utils": "1.
|
|
76
|
+
"@elice/material-shared-types": "1.261005.0",
|
|
77
|
+
"@elice/material-shared-utils": "1.261005.0"
|
|
82
78
|
},
|
|
83
79
|
"scripts": {
|
|
84
80
|
"start": "run-s watch",
|