@elice/material-exercise 1.260915.0-edsmigration.0 → 1.260921.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/_virtual/_rollupPluginBabelHelpers.js +0 -8
- package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +7 -9
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +4 -6
- package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +5 -7
- package/cjs/components/material-exercise/exercise-runner/action/ControllerActionCancel.js +2 -2
- package/cjs/components/material-exercise/exercise-runner/action/ControllerActionGrade.js +9 -7
- package/cjs/components/material-exercise/exercise-runner/action/ControllerActionRun.js +6 -5
- package/cjs/components/material-exercise/exercise-runner/action/ControllerActionSyncRequest.js +2 -2
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialog.d.ts +1 -1
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialog.js +44 -33
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialogNativeMock.js +20 -15
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialogSteps.js +19 -15
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionCompile.js +6 -5
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionUpload.js +6 -5
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerButtonGroup.js +4 -6
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerStatusMessage.js +18 -25
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoErrorDialog.js +21 -7
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialog.js +43 -31
- package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialogChecklist.js +18 -14
- package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +28 -40
- package/es/_virtual/_rollupPluginBabelHelpers.js +1 -8
- package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +4 -6
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +3 -5
- package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +2 -4
- package/es/components/material-exercise/exercise-runner/action/ControllerActionCancel.js +2 -2
- package/es/components/material-exercise/exercise-runner/action/ControllerActionGrade.js +4 -2
- package/es/components/material-exercise/exercise-runner/action/ControllerActionRun.js +3 -2
- package/es/components/material-exercise/exercise-runner/action/ControllerActionSyncRequest.js +2 -2
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialog.d.ts +1 -1
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialog.js +18 -17
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialogNativeMock.js +5 -3
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoConnectionPreflightDialogSteps.js +7 -9
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionCompile.js +3 -2
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionUpload.js +3 -2
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoControllerButtonGroup.js +3 -5
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoControllerStatusMessage.js +10 -17
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoErrorDialog.js +6 -1
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialog.js +18 -16
- package/es/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialogChecklist.js +6 -8
- package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +22 -34
- package/package.json +16 -15
- package/cjs/components/shared/image-viewer/ImageViewer.d.ts +0 -23
- package/cjs/components/shared/image-viewer/ImageViewer.js +0 -149
- package/cjs/components/shared/image-viewer/ImageViewerContent.d.ts +0 -9
- package/cjs/components/shared/image-viewer/ImageViewerContent.js +0 -94
- package/cjs/components/shared/image-viewer/ImageViewerToolbar.d.ts +0 -11
- package/cjs/components/shared/image-viewer/ImageViewerToolbar.js +0 -80
- package/cjs/components/shared/image-viewer/image-viewer.classes.d.ts +0 -14
- package/cjs/components/shared/image-viewer/image-viewer.classes.js +0 -20
- package/cjs/components/shared/image-viewer/index.d.ts +0 -3
- package/cjs/components/shared/image-viewer/index.js +0 -9
- package/cjs/components/shared/image-viewer/locales/en.json.js +0 -7
- package/cjs/components/shared/image-viewer/locales/ko.json.js +0 -7
- package/es/components/shared/image-viewer/ImageViewer.d.ts +0 -23
- package/es/components/shared/image-viewer/ImageViewer.js +0 -141
- package/es/components/shared/image-viewer/ImageViewerContent.d.ts +0 -9
- package/es/components/shared/image-viewer/ImageViewerContent.js +0 -85
- package/es/components/shared/image-viewer/ImageViewerToolbar.d.ts +0 -11
- package/es/components/shared/image-viewer/ImageViewerToolbar.js +0 -76
- package/es/components/shared/image-viewer/image-viewer.classes.d.ts +0 -14
- package/es/components/shared/image-viewer/image-viewer.classes.js +0 -18
- package/es/components/shared/image-viewer/index.d.ts +0 -3
- package/es/components/shared/image-viewer/index.js +0 -2
- package/es/components/shared/image-viewer/locales/en.json.js +0 -3
- package/es/components/shared/image-viewer/locales/ko.json.js +0 -3
package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionCompile.js
CHANGED
|
@@ -5,8 +5,9 @@ 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 edsMaterial = require('@elice/eds-material');
|
|
9
8
|
var intl = require('@elice/intl');
|
|
9
|
+
var muiSystem = require('@elice/mui-system');
|
|
10
|
+
var lab = require('@mui/lab');
|
|
10
11
|
var _context = require('./_context.js');
|
|
11
12
|
var useControllerActionRun = require('../action/useControllerActionRun.js');
|
|
12
13
|
var useExericseShortcut = require('../../../../hooks/useExericseShortcut.js');
|
|
@@ -62,7 +63,7 @@ var ArduinoControllerActionCompile = function ArduinoControllerActionCompile() {
|
|
|
62
63
|
if (isHidden) {
|
|
63
64
|
return null;
|
|
64
65
|
}
|
|
65
|
-
return jsxRuntime.jsx(
|
|
66
|
+
return jsxRuntime.jsx(lab.LoadingButton, {
|
|
66
67
|
size: "small",
|
|
67
68
|
variant: "contained",
|
|
68
69
|
color: "primary",
|
|
@@ -70,11 +71,11 @@ var ArduinoControllerActionCompile = function ArduinoControllerActionCompile() {
|
|
|
70
71
|
disabled: isCompileDisabled,
|
|
71
72
|
sx: {
|
|
72
73
|
color: function color(theme) {
|
|
73
|
-
return theme.palette.getContrastText(
|
|
74
|
+
return theme.palette.getContrastText(muiSystem.colors.elicepurple[500]);
|
|
74
75
|
},
|
|
75
|
-
bgcolor:
|
|
76
|
+
bgcolor: muiSystem.colors.elicepurple[500],
|
|
76
77
|
'&:hover, &:active': {
|
|
77
|
-
bgcolor:
|
|
78
|
+
bgcolor: muiSystem.colors.elicepurple[600]
|
|
78
79
|
}
|
|
79
80
|
},
|
|
80
81
|
onClick: compile,
|
package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerActionUpload.js
CHANGED
|
@@ -5,9 +5,10 @@ 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 edsMaterial = require('@elice/eds-material');
|
|
9
8
|
var intl = require('@elice/intl');
|
|
10
9
|
var mcuBridge = require('@elice/mcu-bridge');
|
|
10
|
+
var muiSystem = require('@elice/mui-system');
|
|
11
|
+
var lab = require('@mui/lab');
|
|
11
12
|
var _context = require('./_context.js');
|
|
12
13
|
var useControllerActionRun = require('../action/useControllerActionRun.js');
|
|
13
14
|
|
|
@@ -76,18 +77,18 @@ var ArduinoControllerActionUpload = function ArduinoControllerActionUpload() {
|
|
|
76
77
|
if (isHidden) {
|
|
77
78
|
return null;
|
|
78
79
|
}
|
|
79
|
-
return jsxRuntime.jsx(
|
|
80
|
+
return jsxRuntime.jsx(lab.LoadingButton, {
|
|
80
81
|
size: "small",
|
|
81
82
|
variant: "contained",
|
|
82
83
|
loading: isUploadLoading,
|
|
83
84
|
disabled: isUploadDisabled,
|
|
84
85
|
sx: {
|
|
85
86
|
color: function color(theme) {
|
|
86
|
-
return theme.palette.getContrastText(
|
|
87
|
+
return theme.palette.getContrastText(muiSystem.colors.elicepurple[700]);
|
|
87
88
|
},
|
|
88
|
-
bgcolor:
|
|
89
|
+
bgcolor: muiSystem.colors.elicepurple[700],
|
|
89
90
|
'&:hover, &:active': {
|
|
90
|
-
bgcolor:
|
|
91
|
+
bgcolor: muiSystem.colors.elicepurple[800]
|
|
91
92
|
}
|
|
92
93
|
},
|
|
93
94
|
onClick: upload,
|
package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerButtonGroup.js
CHANGED
|
@@ -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 material = require('@mui/material');
|
|
7
7
|
var ArduinoControllerActionCompile = require('./ArduinoControllerActionCompile.js');
|
|
8
8
|
var ArduinoControllerActionUpload = require('./ArduinoControllerActionUpload.js');
|
|
9
9
|
var ControllerActionGrade = require('../action/ControllerActionGrade.js');
|
|
@@ -13,12 +13,10 @@ var ControllerActionCancel = require('../action/ControllerActionCancel.js');
|
|
|
13
13
|
//
|
|
14
14
|
//
|
|
15
15
|
var ArduinoControllerButtonGroup = function ArduinoControllerButtonGroup() {
|
|
16
|
-
return jsxRuntime.jsxs(
|
|
16
|
+
return jsxRuntime.jsxs(material.Stack, {
|
|
17
17
|
direction: "row",
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
gap: '0.5rem'
|
|
21
|
-
},
|
|
18
|
+
alignItems: "center",
|
|
19
|
+
gap: "0.5rem",
|
|
22
20
|
children: [jsxRuntime.jsx(ArduinoControllerActionCompile.default, {}), jsxRuntime.jsx(ArduinoControllerActionUpload.default, {}), jsxRuntime.jsx(ControllerActionGrade.default, {}), jsxRuntime.jsx(ControllerActionCancel.default, {})]
|
|
23
21
|
});
|
|
24
22
|
};
|
package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoControllerStatusMessage.js
CHANGED
|
@@ -5,9 +5,10 @@ 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 blocks = require('@elice/blocks');
|
|
8
|
-
var edsMaterial = require('@elice/eds-material');
|
|
9
8
|
var intl = require('@elice/intl');
|
|
10
9
|
var mcuBridge = require('@elice/mcu-bridge');
|
|
10
|
+
var lab = require('@mui/lab');
|
|
11
|
+
var material = require('@mui/material');
|
|
11
12
|
var ExerciseRunnerControllerStatusMessage = require('../ExerciseRunnerControllerStatusMessage.js');
|
|
12
13
|
var _context = require('./_context.js');
|
|
13
14
|
var ArduinoHelpDialogButton = require('./ArduinoHelpDialogButton.js');
|
|
@@ -118,12 +119,12 @@ var ArduinoControllerStatusMessage = function ArduinoControllerStatusMessage() {
|
|
|
118
119
|
}
|
|
119
120
|
return jsxRuntime.jsx(mcuBridge.BaudRateSelect, {
|
|
120
121
|
size: "small",
|
|
121
|
-
sx: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, ".".concat(
|
|
122
|
+
sx: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, ".".concat(material.inputLabelClasses.root), {
|
|
122
123
|
display: 'none'
|
|
123
|
-
}), ".".concat(
|
|
124
|
+
}), ".".concat(material.inputBaseClasses.root), {
|
|
124
125
|
width: '10rem',
|
|
125
126
|
minHeight: '1rem'
|
|
126
|
-
}), ".".concat(
|
|
127
|
+
}), ".".concat(material.inputBaseClasses.input), {
|
|
127
128
|
paddingTop: '0.25rem',
|
|
128
129
|
paddingBottom: '0.25rem'
|
|
129
130
|
})
|
|
@@ -133,13 +134,11 @@ var ArduinoControllerStatusMessage = function ArduinoControllerStatusMessage() {
|
|
|
133
134
|
*
|
|
134
135
|
*/
|
|
135
136
|
var renderArduinoStatus = function renderArduinoStatus() {
|
|
136
|
-
return jsxRuntime.jsxs(
|
|
137
|
+
return jsxRuntime.jsxs(material.Stack, {
|
|
137
138
|
direction: "row",
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
},
|
|
142
|
-
children: [jsxRuntime.jsx(edsMaterial.Box, {
|
|
139
|
+
alignItems: "center",
|
|
140
|
+
gap: "0.5rem",
|
|
141
|
+
children: [jsxRuntime.jsx(material.Box, {
|
|
143
142
|
sx: {
|
|
144
143
|
width: '6px',
|
|
145
144
|
height: '6px',
|
|
@@ -158,13 +157,11 @@ var ArduinoControllerStatusMessage = function ArduinoControllerStatusMessage() {
|
|
|
158
157
|
*
|
|
159
158
|
*/
|
|
160
159
|
var renderArduinoConnectButton = function renderArduinoConnectButton() {
|
|
161
|
-
return jsxRuntime.jsxs(
|
|
160
|
+
return jsxRuntime.jsxs(material.Stack, {
|
|
162
161
|
direction: "row",
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
},
|
|
167
|
-
children: [jsxRuntime.jsx(edsMaterial.Button, {
|
|
162
|
+
alignItems: "center",
|
|
163
|
+
gap: "0.5rem",
|
|
164
|
+
children: [jsxRuntime.jsx(lab.LoadingButton, {
|
|
168
165
|
color: isConnected ? 'error' : 'success',
|
|
169
166
|
size: "small",
|
|
170
167
|
disabled: !isBrowserSupported || isTransitioning || isFlashing,
|
|
@@ -181,16 +178,12 @@ var ArduinoControllerStatusMessage = function ArduinoControllerStatusMessage() {
|
|
|
181
178
|
//
|
|
182
179
|
//
|
|
183
180
|
//
|
|
184
|
-
return jsxRuntime.jsxs(
|
|
181
|
+
return jsxRuntime.jsxs(material.Stack, {
|
|
185
182
|
direction: "row",
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
children: [renderArduinoBaudRate(), jsxRuntime.jsxs(edsMaterial.Stack, {
|
|
191
|
-
sx: {
|
|
192
|
-
alignItems: 'flex-end'
|
|
193
|
-
},
|
|
183
|
+
alignItems: "center",
|
|
184
|
+
gap: "1rem",
|
|
185
|
+
children: [renderArduinoBaudRate(), jsxRuntime.jsxs(material.Stack, {
|
|
186
|
+
alignItems: "flex-end",
|
|
194
187
|
children: [jsxRuntime.jsx(ExerciseRunnerControllerStatusMessage.default, {}), renderArduinoStatus()]
|
|
195
188
|
}), renderArduinoConnectButton()]
|
|
196
189
|
});
|
|
@@ -4,9 +4,23 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _rollupPluginBabelHelpers = require('../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
var edsMaterial = require('@elice/eds-material');
|
|
8
7
|
var intl = require('@elice/intl');
|
|
9
8
|
var mcuBridge = require('@elice/mcu-bridge');
|
|
9
|
+
var Button = require('@mui/material/Button');
|
|
10
|
+
var Dialog = require('@mui/material/Dialog');
|
|
11
|
+
var DialogActions = require('@mui/material/DialogActions');
|
|
12
|
+
var DialogContent = require('@mui/material/DialogContent');
|
|
13
|
+
var DialogTitle = require('@mui/material/DialogTitle');
|
|
14
|
+
var Stack = require('@mui/material/Stack');
|
|
15
|
+
|
|
16
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
17
|
+
|
|
18
|
+
var Button__default = /*#__PURE__*/_interopDefaultCompat(Button);
|
|
19
|
+
var Dialog__default = /*#__PURE__*/_interopDefaultCompat(Dialog);
|
|
20
|
+
var DialogActions__default = /*#__PURE__*/_interopDefaultCompat(DialogActions);
|
|
21
|
+
var DialogContent__default = /*#__PURE__*/_interopDefaultCompat(DialogContent);
|
|
22
|
+
var DialogTitle__default = /*#__PURE__*/_interopDefaultCompat(DialogTitle);
|
|
23
|
+
var Stack__default = /*#__PURE__*/_interopDefaultCompat(Stack);
|
|
10
24
|
|
|
11
25
|
//
|
|
12
26
|
//
|
|
@@ -59,7 +73,7 @@ var ArduinoErrorDialog = function ArduinoErrorDialog() {
|
|
|
59
73
|
*
|
|
60
74
|
*/
|
|
61
75
|
var renderErrorDialogTitle = function renderErrorDialogTitle() {
|
|
62
|
-
return jsxRuntime.jsx(
|
|
76
|
+
return jsxRuntime.jsx(DialogTitle__default.default, {
|
|
63
77
|
children: intl$1.formatMessage({
|
|
64
78
|
id: 'exerciseRunner.arduino.error.title'
|
|
65
79
|
})
|
|
@@ -69,8 +83,8 @@ var ArduinoErrorDialog = function ArduinoErrorDialog() {
|
|
|
69
83
|
*
|
|
70
84
|
*/
|
|
71
85
|
var renderErrorDialogContent = function renderErrorDialogContent() {
|
|
72
|
-
return jsxRuntime.jsx(
|
|
73
|
-
children: jsxRuntime.jsxs(
|
|
86
|
+
return jsxRuntime.jsx(DialogContent__default.default, {
|
|
87
|
+
children: jsxRuntime.jsxs(Stack__default.default, {
|
|
74
88
|
spacing: 1.5,
|
|
75
89
|
children: [permissionPhase === 'denied' ? jsxRuntime.jsx(mcuBridge.PermissionAlert, {
|
|
76
90
|
onRetry: handleRetry
|
|
@@ -86,8 +100,8 @@ var ArduinoErrorDialog = function ArduinoErrorDialog() {
|
|
|
86
100
|
*
|
|
87
101
|
*/
|
|
88
102
|
var renderErrorDialogActions = function renderErrorDialogActions() {
|
|
89
|
-
return jsxRuntime.jsx(
|
|
90
|
-
children: jsxRuntime.jsx(
|
|
103
|
+
return jsxRuntime.jsx(DialogActions__default.default, {
|
|
104
|
+
children: jsxRuntime.jsx(Button__default.default, {
|
|
91
105
|
color: "inherit",
|
|
92
106
|
onClick: handleClose,
|
|
93
107
|
children: intl$1.formatMessage({
|
|
@@ -99,7 +113,7 @@ var ArduinoErrorDialog = function ArduinoErrorDialog() {
|
|
|
99
113
|
//
|
|
100
114
|
//
|
|
101
115
|
//
|
|
102
|
-
return jsxRuntime.jsxs(
|
|
116
|
+
return jsxRuntime.jsxs(Dialog__default.default, {
|
|
103
117
|
fullWidth: true,
|
|
104
118
|
open: isErrorDialogOpen,
|
|
105
119
|
maxWidth: "sm",
|
|
@@ -5,16 +5,36 @@ 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');
|
|
10
8
|
var intl = require('@elice/intl');
|
|
9
|
+
var muiElements = require('@elice/mui-elements');
|
|
11
10
|
var proRegularSvgIcons = require('@fortawesome/pro-regular-svg-icons');
|
|
11
|
+
var material = require('@mui/material');
|
|
12
|
+
var Box = require('@mui/material/Box');
|
|
13
|
+
var Button = require('@mui/material/Button');
|
|
14
|
+
var Checkbox = require('@mui/material/Checkbox');
|
|
15
|
+
var Dialog = require('@mui/material/Dialog');
|
|
16
|
+
var DialogActions = require('@mui/material/DialogActions');
|
|
17
|
+
var DialogContent = require('@mui/material/DialogContent');
|
|
18
|
+
var DialogTitle = require('@mui/material/DialogTitle');
|
|
19
|
+
var FormControlLabel = require('@mui/material/FormControlLabel');
|
|
20
|
+
var Stack = require('@mui/material/Stack');
|
|
21
|
+
var Typography = require('@mui/material/Typography');
|
|
12
22
|
var _context = require('./_context.js');
|
|
13
23
|
var ArduinoHelpDialogChecklist = require('./ArduinoHelpDialogChecklist.js');
|
|
14
24
|
|
|
15
25
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
16
26
|
|
|
17
27
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
28
|
+
var Box__default = /*#__PURE__*/_interopDefaultCompat(Box);
|
|
29
|
+
var Button__default = /*#__PURE__*/_interopDefaultCompat(Button);
|
|
30
|
+
var Checkbox__default = /*#__PURE__*/_interopDefaultCompat(Checkbox);
|
|
31
|
+
var Dialog__default = /*#__PURE__*/_interopDefaultCompat(Dialog);
|
|
32
|
+
var DialogActions__default = /*#__PURE__*/_interopDefaultCompat(DialogActions);
|
|
33
|
+
var DialogContent__default = /*#__PURE__*/_interopDefaultCompat(DialogContent);
|
|
34
|
+
var DialogTitle__default = /*#__PURE__*/_interopDefaultCompat(DialogTitle);
|
|
35
|
+
var FormControlLabel__default = /*#__PURE__*/_interopDefaultCompat(FormControlLabel);
|
|
36
|
+
var Stack__default = /*#__PURE__*/_interopDefaultCompat(Stack);
|
|
37
|
+
var Typography__default = /*#__PURE__*/_interopDefaultCompat(Typography);
|
|
18
38
|
|
|
19
39
|
//
|
|
20
40
|
//
|
|
@@ -66,9 +86,9 @@ var ArduinoHelpDialog = function ArduinoHelpDialog() {
|
|
|
66
86
|
*
|
|
67
87
|
*/
|
|
68
88
|
var renderDialogManual = function renderDialogManual() {
|
|
69
|
-
return jsxRuntime.jsx(
|
|
89
|
+
return jsxRuntime.jsx(material.Card, {
|
|
70
90
|
variant: "outlined",
|
|
71
|
-
children: jsxRuntime.jsx(
|
|
91
|
+
children: jsxRuntime.jsx(material.CardActionArea, {
|
|
72
92
|
component: "a",
|
|
73
93
|
href: ARDUINO_FAQ_URL,
|
|
74
94
|
target: "_blank",
|
|
@@ -76,37 +96,31 @@ var ArduinoHelpDialog = function ArduinoHelpDialog() {
|
|
|
76
96
|
sx: {
|
|
77
97
|
p: 1.5
|
|
78
98
|
},
|
|
79
|
-
children: jsxRuntime.jsxs(
|
|
99
|
+
children: jsxRuntime.jsxs(Stack__default.default, {
|
|
80
100
|
direction: "row",
|
|
81
101
|
spacing: 1.5,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
children: [jsxRuntime.jsx(edsKit.FaIcon, {
|
|
102
|
+
alignItems: "center",
|
|
103
|
+
children: [jsxRuntime.jsx(muiElements.EliceIcon, {
|
|
86
104
|
icon: proRegularSvgIcons.faBookAlt
|
|
87
|
-
}), jsxRuntime.jsxs(
|
|
105
|
+
}), jsxRuntime.jsxs(Box__default.default, {
|
|
88
106
|
sx: {
|
|
89
107
|
flex: 1,
|
|
90
108
|
minWidth: 0
|
|
91
109
|
},
|
|
92
|
-
children: [jsxRuntime.jsx(
|
|
110
|
+
children: [jsxRuntime.jsx(Typography__default.default, {
|
|
93
111
|
variant: "body2",
|
|
94
|
-
|
|
95
|
-
fontWeight: 700
|
|
96
|
-
},
|
|
112
|
+
fontWeight: 700,
|
|
97
113
|
children: intl$1.formatMessage({
|
|
98
114
|
id: 'exerciseRunner.arduino.help.manual.title'
|
|
99
115
|
})
|
|
100
|
-
}), jsxRuntime.jsx(
|
|
116
|
+
}), jsxRuntime.jsx(Typography__default.default, {
|
|
101
117
|
variant: "caption",
|
|
102
|
-
|
|
103
|
-
color: 'text.secondary'
|
|
104
|
-
},
|
|
118
|
+
color: "text.secondary",
|
|
105
119
|
children: intl$1.formatMessage({
|
|
106
120
|
id: 'exerciseRunner.arduino.help.manual.detail'
|
|
107
121
|
})
|
|
108
122
|
})]
|
|
109
|
-
}), jsxRuntime.jsx(
|
|
123
|
+
}), jsxRuntime.jsx(muiElements.EliceIcon, {
|
|
110
124
|
icon: proRegularSvgIcons.faArrowRight
|
|
111
125
|
})]
|
|
112
126
|
})
|
|
@@ -116,34 +130,32 @@ var ArduinoHelpDialog = function ArduinoHelpDialog() {
|
|
|
116
130
|
//
|
|
117
131
|
//
|
|
118
132
|
//
|
|
119
|
-
return jsxRuntime.jsxs(
|
|
133
|
+
return jsxRuntime.jsxs(Dialog__default.default, {
|
|
120
134
|
fullWidth: true,
|
|
121
135
|
open: isHelpDialogOpen,
|
|
122
136
|
maxWidth: "sm",
|
|
123
137
|
onClose: handleClose,
|
|
124
|
-
children: [jsxRuntime.jsx(
|
|
138
|
+
children: [jsxRuntime.jsx(DialogTitle__default.default, {
|
|
125
139
|
children: intl$1.formatMessage({
|
|
126
140
|
id: 'exerciseRunner.arduino.help.title'
|
|
127
141
|
})
|
|
128
|
-
}), jsxRuntime.jsx(
|
|
129
|
-
children: jsxRuntime.jsxs(
|
|
142
|
+
}), jsxRuntime.jsx(DialogContent__default.default, {
|
|
143
|
+
children: jsxRuntime.jsxs(Stack__default.default, {
|
|
130
144
|
spacing: 2.5,
|
|
131
|
-
children: [jsxRuntime.jsx(
|
|
145
|
+
children: [jsxRuntime.jsx(Typography__default.default, {
|
|
132
146
|
variant: "body2",
|
|
133
|
-
|
|
134
|
-
color: 'text.secondary'
|
|
135
|
-
},
|
|
147
|
+
color: "text.secondary",
|
|
136
148
|
children: intl$1.formatMessage({
|
|
137
149
|
id: 'exerciseRunner.arduino.help.greeting'
|
|
138
150
|
})
|
|
139
151
|
}), jsxRuntime.jsx(ArduinoHelpDialogChecklist.default, {}), renderDialogManual()]
|
|
140
152
|
})
|
|
141
|
-
}), jsxRuntime.jsxs(
|
|
153
|
+
}), jsxRuntime.jsxs(DialogActions__default.default, {
|
|
142
154
|
sx: {
|
|
143
155
|
justifyContent: 'space-between'
|
|
144
156
|
},
|
|
145
|
-
children: [wasAutoOpened ? jsxRuntime.jsx(
|
|
146
|
-
control: jsxRuntime.jsx(
|
|
157
|
+
children: [wasAutoOpened ? jsxRuntime.jsx(FormControlLabel__default.default, {
|
|
158
|
+
control: jsxRuntime.jsx(Checkbox__default.default, {
|
|
147
159
|
size: "small",
|
|
148
160
|
checked: dontShowAgain,
|
|
149
161
|
onChange: function onChange(e) {
|
|
@@ -153,7 +165,7 @@ var ArduinoHelpDialog = function ArduinoHelpDialog() {
|
|
|
153
165
|
label: intl$1.formatMessage({
|
|
154
166
|
id: 'exerciseRunner.arduino.help.dontShowAgain'
|
|
155
167
|
})
|
|
156
|
-
}) : jsxRuntime.jsx(
|
|
168
|
+
}) : jsxRuntime.jsx(Box__default.default, {}), jsxRuntime.jsx(Button__default.default, {
|
|
157
169
|
color: "inherit",
|
|
158
170
|
onClick: handleClose,
|
|
159
171
|
children: intl$1.formatMessage({
|
package/cjs/components/material-exercise/exercise-runner/arduino/ArduinoHelpDialogChecklist.js
CHANGED
|
@@ -3,8 +3,16 @@
|
|
|
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');
|
|
7
6
|
var intl = require('@elice/intl');
|
|
7
|
+
var Box = require('@mui/material/Box');
|
|
8
|
+
var Stack = require('@mui/material/Stack');
|
|
9
|
+
var Typography = require('@mui/material/Typography');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
+
|
|
13
|
+
var Box__default = /*#__PURE__*/_interopDefaultCompat(Box);
|
|
14
|
+
var Stack__default = /*#__PURE__*/_interopDefaultCompat(Stack);
|
|
15
|
+
var Typography__default = /*#__PURE__*/_interopDefaultCompat(Typography);
|
|
8
16
|
|
|
9
17
|
//
|
|
10
18
|
//
|
|
@@ -19,7 +27,7 @@ var ArduinoHelpDialogChecklist = function ArduinoHelpDialogChecklist() {
|
|
|
19
27
|
*
|
|
20
28
|
*/
|
|
21
29
|
var renderStepBadge = function renderStepBadge(step) {
|
|
22
|
-
return jsxRuntime.jsx(
|
|
30
|
+
return jsxRuntime.jsx(Box__default.default, {
|
|
23
31
|
"aria-hidden": "true",
|
|
24
32
|
sx: {
|
|
25
33
|
width: 24,
|
|
@@ -47,27 +55,23 @@ var ArduinoHelpDialogChecklist = function ArduinoHelpDialogChecklist() {
|
|
|
47
55
|
var body = intl$1.formatMessage({
|
|
48
56
|
id: "exerciseRunner.arduino.help.checklist.".concat(step, ".body")
|
|
49
57
|
});
|
|
50
|
-
return jsxRuntime.jsxs(
|
|
58
|
+
return jsxRuntime.jsxs(Stack__default.default, {
|
|
51
59
|
direction: "row",
|
|
52
60
|
spacing: 1.5,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
children: [renderStepBadge(step), jsxRuntime.jsxs(edsMaterial.Box, {
|
|
61
|
+
alignItems: "flex-start",
|
|
62
|
+
children: [renderStepBadge(step), jsxRuntime.jsxs(Box__default.default, {
|
|
57
63
|
sx: {
|
|
58
64
|
flex: 1,
|
|
59
65
|
pt: 0.25
|
|
60
66
|
},
|
|
61
|
-
children: [jsxRuntime.jsx(
|
|
67
|
+
children: [jsxRuntime.jsx(Typography__default.default, {
|
|
62
68
|
variant: "body2",
|
|
63
|
-
|
|
64
|
-
fontWeight: 700
|
|
65
|
-
},
|
|
69
|
+
fontWeight: 700,
|
|
66
70
|
children: title
|
|
67
|
-
}), jsxRuntime.jsx(
|
|
71
|
+
}), jsxRuntime.jsx(Typography__default.default, {
|
|
68
72
|
variant: "caption",
|
|
73
|
+
color: "text.secondary",
|
|
69
74
|
sx: {
|
|
70
|
-
color: 'text.secondary',
|
|
71
75
|
display: 'block',
|
|
72
76
|
mt: 0.25
|
|
73
77
|
},
|
|
@@ -79,7 +83,7 @@ var ArduinoHelpDialogChecklist = function ArduinoHelpDialogChecklist() {
|
|
|
79
83
|
//
|
|
80
84
|
//
|
|
81
85
|
//
|
|
82
|
-
return jsxRuntime.jsx(
|
|
86
|
+
return jsxRuntime.jsx(Stack__default.default, {
|
|
83
87
|
spacing: 1.5,
|
|
84
88
|
children: CHECKLIST_STEPS.map(function (step) {
|
|
85
89
|
return renderItem(step);
|
|
@@ -7,9 +7,9 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var apiClient = require('@elice/api-client');
|
|
9
9
|
var blocks = require('@elice/blocks');
|
|
10
|
-
var edsMaterial = require('@elice/eds-material');
|
|
11
10
|
var intl = require('@elice/intl');
|
|
12
11
|
var types = require('@elice/types');
|
|
12
|
+
var material = require('@mui/material');
|
|
13
13
|
var dayjs = require('dayjs');
|
|
14
14
|
var humps = require('humps');
|
|
15
15
|
var recoil = require('recoil');
|
|
@@ -446,30 +446,24 @@ var ExerciseSubmitHistory = function ExerciseSubmitHistory(_ref) {
|
|
|
446
446
|
*
|
|
447
447
|
*/
|
|
448
448
|
var renderEmptySubmitHistoryView = function renderEmptySubmitHistoryView() {
|
|
449
|
-
return jsxRuntime.jsxs(
|
|
449
|
+
return jsxRuntime.jsxs(material.Stack, {
|
|
450
|
+
width: "100%",
|
|
451
|
+
height: "100%",
|
|
452
|
+
overflow: "hidden",
|
|
453
|
+
justifyContent: "center",
|
|
454
|
+
alignItems: "center",
|
|
450
455
|
direction: "column",
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
height: '100%',
|
|
454
|
-
overflow: 'hidden',
|
|
455
|
-
justifyContent: 'center',
|
|
456
|
-
alignItems: 'center',
|
|
457
|
-
gap: '1rem'
|
|
458
|
-
},
|
|
459
|
-
children: [jsxRuntime.jsx(edsMaterial.Box, {
|
|
456
|
+
gap: "1rem",
|
|
457
|
+
children: [jsxRuntime.jsx(material.Box, {
|
|
460
458
|
component: "img",
|
|
459
|
+
width: "9.375rem",
|
|
460
|
+
height: "9.375rem",
|
|
461
461
|
src: empty.default,
|
|
462
|
-
alt: "emptyImage"
|
|
463
|
-
|
|
464
|
-
width: '9.375rem',
|
|
465
|
-
height: '9.375rem'
|
|
466
|
-
}
|
|
467
|
-
}), jsxRuntime.jsx(edsMaterial.Typography, {
|
|
462
|
+
alt: "emptyImage"
|
|
463
|
+
}), jsxRuntime.jsx(material.Typography, {
|
|
468
464
|
variant: "body1",
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
return theme.palette.primary.contrastText;
|
|
472
|
-
}
|
|
465
|
+
color: function color(theme) {
|
|
466
|
+
return theme.palette.primary.contrastText;
|
|
473
467
|
},
|
|
474
468
|
children: __intl.formatMessage({
|
|
475
469
|
id: 'exerciseSubmitHistory.empty'
|
|
@@ -481,27 +475,21 @@ var ExerciseSubmitHistory = function ExerciseSubmitHistory(_ref) {
|
|
|
481
475
|
*
|
|
482
476
|
*/
|
|
483
477
|
var renderSubmitHistory = function renderSubmitHistory() {
|
|
484
|
-
return jsxRuntime.jsxs(
|
|
478
|
+
return jsxRuntime.jsxs(material.Stack, {
|
|
479
|
+
width: "100%",
|
|
480
|
+
height: "100%",
|
|
481
|
+
overflow: "hidden",
|
|
485
482
|
direction: "row",
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
children: [jsxRuntime.jsx(edsMaterial.Box, {
|
|
492
|
-
sx: {
|
|
493
|
-
maxWidth: '15rem',
|
|
494
|
-
width: '100%',
|
|
495
|
-
height: '100%',
|
|
496
|
-
overflow: 'hidden'
|
|
497
|
-
},
|
|
483
|
+
children: [jsxRuntime.jsx(material.Box, {
|
|
484
|
+
maxWidth: "15rem",
|
|
485
|
+
width: "100%",
|
|
486
|
+
height: "100%",
|
|
487
|
+
overflow: "hidden",
|
|
498
488
|
children: renderRunningVersionList()
|
|
499
|
-
}), jsxRuntime.jsxs(
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
width: '100%'
|
|
504
|
-
},
|
|
489
|
+
}), jsxRuntime.jsxs(material.Stack, {
|
|
490
|
+
height: "100%",
|
|
491
|
+
overflow: "hidden",
|
|
492
|
+
width: "100%",
|
|
505
493
|
children: [renderRunningContent(), renderRunningOutput()]
|
|
506
494
|
})]
|
|
507
495
|
});
|
|
@@ -251,13 +251,6 @@ function _regeneratorDefine(e, r, n, t) {
|
|
|
251
251
|
function _slicedToArray(r, e) {
|
|
252
252
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
253
253
|
}
|
|
254
|
-
function _taggedTemplateLiteral(e, t) {
|
|
255
|
-
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
256
|
-
raw: {
|
|
257
|
-
value: Object.freeze(t)
|
|
258
|
-
}
|
|
259
|
-
}));
|
|
260
|
-
}
|
|
261
254
|
function _toConsumableArray(r) {
|
|
262
255
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
263
256
|
}
|
|
@@ -292,4 +285,4 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
292
285
|
}
|
|
293
286
|
}
|
|
294
287
|
|
|
295
|
-
export { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _arrayWithoutHoles as arrayWithoutHoles, _asyncToGenerator as asyncToGenerator, _classCallCheck as classCallCheck, _createClass as createClass, _createForOfIteratorHelper as createForOfIteratorHelper, _defineProperty as defineProperty, _iterableToArray as iterableToArray, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _nonIterableSpread as nonIterableSpread, _regenerator as regenerator, _regeneratorDefine as regeneratorDefine, _slicedToArray as slicedToArray,
|
|
288
|
+
export { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _arrayWithoutHoles as arrayWithoutHoles, _asyncToGenerator as asyncToGenerator, _classCallCheck as classCallCheck, _createClass as createClass, _createForOfIteratorHelper as createForOfIteratorHelper, _defineProperty as defineProperty, _iterableToArray as iterableToArray, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _nonIterableSpread as nonIterableSpread, _regenerator as regenerator, _regeneratorDefine as regeneratorDefine, _slicedToArray as slicedToArray, _toConsumableArray as toConsumableArray, _toPrimitive as toPrimitive, _toPropertyKey as toPropertyKey, _typeof as typeof, _unsupportedIterableToArray as unsupportedIterableToArray };
|
|
@@ -3,15 +3,15 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Flex, Text, Hspace, NotificationCount, IconButton, Icon, Vspace } from '@elice/blocks';
|
|
5
5
|
import { base } from '@elice/design-tokens';
|
|
6
|
-
import { Stack, Typography } from '@elice/eds-material';
|
|
7
6
|
import { eilAttachment, eilMathsignMultiplyBasic, eilFolder, eilDownload } from '@elice/icons';
|
|
8
7
|
import { useRawEliceIntl } from '@elice/intl';
|
|
8
|
+
import { ImageViewer } from '@elice/mui-elements';
|
|
9
|
+
import { Stack, Typography } from '@mui/material';
|
|
9
10
|
import { useRecoilValue } from 'recoil';
|
|
10
11
|
import { DARK_TEXT_SECONDARY_COLOR } from '../../../constants/color.js';
|
|
11
12
|
import { StyledMenuButtonFileCount, StyledFilePopoverContent, StyledFilePopoverHeader, StyledFilePopoverBody, StyledFilePopoverBodyList, StyledFilePopoverBodyListItem, StyledFilePopoverBodyListItemContentFile, StyledFilePopoverBodyListItemDownloadButton, StyledFilePopoverBodyListItemContentImageWrap, StyledFilePopoverBodyListItemContentImage } from './ExerciseMenuStdioFileBrowser.styled.js';
|
|
12
13
|
import { exerciseRunnerStdioFilesState } from '../context/recoil.js';
|
|
13
14
|
import ExerciseMenuButton from '../../shared/exercise-menu-button/ExerciseMenuButton.js';
|
|
14
|
-
import ImageViewer from '../../shared/image-viewer/ImageViewer.js';
|
|
15
15
|
|
|
16
16
|
var ExerciseMenuStdioFileBrowser = function ExerciseMenuStdioFileBrowser() {
|
|
17
17
|
var intl = useRawEliceIntl();
|
|
@@ -95,9 +95,9 @@ var ExerciseMenuStdioFileBrowser = function ExerciseMenuStdioFileBrowser() {
|
|
|
95
95
|
height: 0.5
|
|
96
96
|
}), jsx(Typography, {
|
|
97
97
|
variant: "body2",
|
|
98
|
+
textAlign: "center",
|
|
98
99
|
color: DARK_TEXT_SECONDARY_COLOR,
|
|
99
100
|
sx: {
|
|
100
|
-
textAlign: 'center',
|
|
101
101
|
whiteSpace: 'pre-wrap'
|
|
102
102
|
},
|
|
103
103
|
children: intl.formatMessage({
|
|
@@ -181,9 +181,7 @@ var ExerciseMenuStdioFileBrowser = function ExerciseMenuStdioFileBrowser() {
|
|
|
181
181
|
//
|
|
182
182
|
//
|
|
183
183
|
return jsxs(Stack, {
|
|
184
|
-
|
|
185
|
-
position: 'relative'
|
|
186
|
-
},
|
|
184
|
+
position: "relative",
|
|
187
185
|
children: [jsx(ExerciseMenuButton, {
|
|
188
186
|
icon: eilAttachment,
|
|
189
187
|
active: open,
|
package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Stack } from '@
|
|
2
|
+
import { Stack } from '@mui/material';
|
|
3
3
|
import ControllerActionRun from './action/ControllerActionRun.js';
|
|
4
4
|
import ControllerActionGrade from './action/ControllerActionGrade.js';
|
|
5
5
|
import ControllerActionCancel from './action/ControllerActionCancel.js';
|
|
@@ -11,10 +11,8 @@ import ControllerActionSyncRequest from './action/ControllerActionSyncRequest.js
|
|
|
11
11
|
var ExerciseRunnerControllerButtonGroup = function ExerciseRunnerControllerButtonGroup() {
|
|
12
12
|
return jsxs(Stack, {
|
|
13
13
|
direction: "row",
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
gap: '0.5rem'
|
|
17
|
-
},
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
gap: "0.5rem",
|
|
18
16
|
children: [jsx(ControllerActionRun, {}), jsx(ControllerActionGrade, {}), jsx(ControllerActionCancel, {}), jsx(ControllerActionSyncRequest, {})]
|
|
19
17
|
});
|
|
20
18
|
};
|