@elice/material-assignment 1.240718.0-trasncript.2 → 1.240718.1
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-assignment/MaterialAssignment.js +17 -23
- package/cjs/components/material-assignment/MaterialAssignmentContent.js +194 -281
- package/cjs/components/material-assignment/MaterialAssignmentUploadModal.js +138 -181
- package/cjs/components/material-assignment/constants/color.js +1 -1
- package/cjs/components/material-assignment-admin/MaterialAssignmentAdmin.js +24 -32
- package/cjs/components/material-assignment-admin/MaterialAssignmentAdmin.styled.js +9 -19
- package/cjs/components/material-assignment-admin/MaterialAssignmentAdminContent.js +548 -774
- package/cjs/components/material-assignment-admin/MaterialAssignmentAdminContentTa.js +303 -436
- package/cjs/components/shared/MaterialAssignmentContainer.js +13 -23
- package/es/components/material-assignment/MaterialAssignment.js +17 -18
- package/es/components/material-assignment/MaterialAssignmentContent.js +194 -276
- package/es/components/material-assignment/MaterialAssignmentUploadModal.js +139 -177
- package/es/components/material-assignment/constants/color.js +1 -1
- package/es/components/material-assignment-admin/MaterialAssignmentAdmin.js +25 -29
- package/es/components/material-assignment-admin/MaterialAssignmentAdmin.styled.js +9 -15
- package/es/components/material-assignment-admin/MaterialAssignmentAdminContent.js +549 -770
- package/es/components/material-assignment-admin/MaterialAssignmentAdminContentTa.js +304 -432
- package/es/components/shared/MaterialAssignmentContainer.js +13 -19
- package/package.json +12 -9
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -383
- package/cjs/components/index.js +0 -9
- package/cjs/components/material-assignment/index.js +0 -7
- package/cjs/components/material-assignment/locales/index.js +0 -13
- package/cjs/components/material-assignment-admin/index.js +0 -7
- package/es/_virtual/_rollupPluginBabelHelpers.js +0 -374
- package/es/components/index.js +0 -2
- package/es/components/material-assignment/index.js +0 -1
- package/es/components/material-assignment/locales/index.js +0 -4
- package/es/components/material-assignment-admin/index.js +0 -1
|
@@ -1,104 +1,77 @@
|
|
|
1
|
-
import { slicedToArray as _slicedToArray, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { useForm, Controller } from 'react-hook-form';
|
|
5
3
|
import { postOrgMaterialAssignmentSubmissionAdd } from '@elice/api-client';
|
|
6
|
-
import { Files, Modal, Alert, Vspace, Radio, RadioButton, Input, Checkbox, Text
|
|
4
|
+
import { Files, Notification, Modal, Alert, Vspace, Radio, RadioButton, Input, Checkbox, Text } from '@elice/blocks';
|
|
7
5
|
import { base } from '@elice/design-tokens';
|
|
8
6
|
import { useRawEliceIntl } from '@elice/intl';
|
|
9
7
|
import { validateUrl } from '@elice/utils';
|
|
10
8
|
import styled from 'styled-components';
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
const StyledAssignmentContentFiles = styled(Files).withConfig({
|
|
13
11
|
componentId: "sc-9bizrf-0"
|
|
14
12
|
})(["width:100%;.eb-files__choose-button{border-color:", ";background-color:", ";}"], base.color.primary5, base.color.primary5);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
const MaterialAssignmentUploadModal = ({
|
|
14
|
+
materialAssignment,
|
|
15
|
+
onClose,
|
|
16
|
+
onSubmitCallback
|
|
17
|
+
}) => {
|
|
18
|
+
const intl = useRawEliceIntl();
|
|
19
|
+
const abortCtrl = React.useRef(new AbortController());
|
|
21
20
|
/** Select submission method */
|
|
22
|
-
|
|
23
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
24
|
-
assignmentMode = _React$useState2[0],
|
|
25
|
-
setAssignmentMode = _React$useState2[1];
|
|
21
|
+
const [assignmentMode, setAssignmentMode] = React.useState('attachment');
|
|
26
22
|
/** Check "Once you submit it, you cannot submit it again." */
|
|
27
|
-
|
|
28
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
29
|
-
isAgreedSubmit = _React$useState4[0],
|
|
30
|
-
setAgreedSubmit = _React$useState4[1];
|
|
23
|
+
const [isAgreedSubmit, setAgreedSubmit] = React.useState(false);
|
|
31
24
|
/** Check if the submission time is past */
|
|
32
|
-
|
|
25
|
+
const isAssignmentClosed = Boolean(materialAssignment.closeDatetime < Date.now());
|
|
33
26
|
/** Check if it is possible to resubmit */
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
27
|
+
const isAssignmentResubmitEnabled = Boolean(materialAssignment.isResubmitEnabled);
|
|
28
|
+
const {
|
|
29
|
+
control,
|
|
30
|
+
formState,
|
|
31
|
+
handleSubmit,
|
|
32
|
+
reset
|
|
33
|
+
} = useForm({
|
|
34
|
+
mode: 'onChange'
|
|
35
|
+
});
|
|
42
36
|
/**
|
|
43
37
|
* Submit assignment.
|
|
44
38
|
*/
|
|
45
|
-
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
if (!(_context.t0.name === 'AbortError')) {
|
|
72
|
-
_context.next = 12;
|
|
73
|
-
break;
|
|
74
|
-
}
|
|
75
|
-
return _context.abrupt("return", Notification.error(intl.formatMessage({
|
|
76
|
-
id: 'materialAssignment.notification.submit.cancel'
|
|
77
|
-
})));
|
|
78
|
-
case 12:
|
|
79
|
-
Notification.error(intl.formatMessage({
|
|
80
|
-
id: 'materialAssignment.notification.submit.failure'
|
|
81
|
-
}));
|
|
82
|
-
case 13:
|
|
83
|
-
case "end":
|
|
84
|
-
return _context.stop();
|
|
85
|
-
}
|
|
86
|
-
}, _callee, null, [[0, 8]]);
|
|
87
|
-
}));
|
|
88
|
-
return function (_x) {
|
|
89
|
-
return _ref2.apply(this, arguments);
|
|
90
|
-
};
|
|
91
|
-
}());
|
|
39
|
+
const submitAssignment = handleSubmit(async data => {
|
|
40
|
+
var _a;
|
|
41
|
+
try {
|
|
42
|
+
await postOrgMaterialAssignmentSubmissionAdd(Object.assign(Object.assign({}, data), {
|
|
43
|
+
materialAssignmentId: (_a = materialAssignment === null || materialAssignment === void 0 ? void 0 : materialAssignment.id) !== null && _a !== void 0 ? _a : 0
|
|
44
|
+
}), {
|
|
45
|
+
signal: abortCtrl.current.signal
|
|
46
|
+
});
|
|
47
|
+
onClose();
|
|
48
|
+
Notification.success(intl.formatMessage({
|
|
49
|
+
id: 'materialAssignment.notification.submit.success'
|
|
50
|
+
}));
|
|
51
|
+
if (typeof onSubmitCallback === 'function') {
|
|
52
|
+
onSubmitCallback();
|
|
53
|
+
}
|
|
54
|
+
} catch (error) {
|
|
55
|
+
if (error.name === 'AbortError') {
|
|
56
|
+
return Notification.error(intl.formatMessage({
|
|
57
|
+
id: 'materialAssignment.notification.submit.cancel'
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
Notification.error(intl.formatMessage({
|
|
61
|
+
id: 'materialAssignment.notification.submit.failure'
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
});
|
|
92
65
|
//
|
|
93
66
|
//
|
|
94
67
|
//
|
|
95
|
-
React.useEffect(
|
|
96
|
-
|
|
97
|
-
return
|
|
68
|
+
React.useEffect(() => {
|
|
69
|
+
const _abortCtrl = abortCtrl.current;
|
|
70
|
+
return () => {
|
|
98
71
|
_abortCtrl.abort();
|
|
99
72
|
};
|
|
100
73
|
}, []);
|
|
101
|
-
return
|
|
74
|
+
return React.createElement(Modal, {
|
|
102
75
|
title: intl.formatMessage({
|
|
103
76
|
id: 'materialAssignment.modal.title'
|
|
104
77
|
}),
|
|
@@ -116,108 +89,97 @@ var MaterialAssignmentUploadModal = function MaterialAssignmentUploadModal(_ref)
|
|
|
116
89
|
role: 'gray1',
|
|
117
90
|
onClick: onClose
|
|
118
91
|
}],
|
|
119
|
-
onHide: onClose
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
onChange
|
|
174
|
-
if (Array.isArray(newFiles) && newFiles[0] instanceof File) {
|
|
175
|
-
field.onChange(newFiles[0]);
|
|
176
|
-
} else {
|
|
177
|
-
field.onChange(undefined);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}));
|
|
181
|
-
}
|
|
182
|
-
}) : jsx(Controller, {
|
|
183
|
-
control: control,
|
|
184
|
-
name: "assignmentUrl",
|
|
185
|
-
rules: {
|
|
186
|
-
required: true,
|
|
187
|
-
validate: function validate(url) {
|
|
188
|
-
return validateUrl(url !== null && url !== void 0 ? url : '') ? true : intl.formatMessage({
|
|
189
|
-
id: 'materialAssignment.input.invalid'
|
|
190
|
-
});
|
|
92
|
+
onHide: onClose
|
|
93
|
+
}, React.createElement(Alert, {
|
|
94
|
+
role: isAssignmentResubmitEnabled ? 'primary' : 'warning'
|
|
95
|
+
}, intl.formatMessage({
|
|
96
|
+
id: isAssignmentResubmitEnabled ? 'materialAssignment.alert.oftenSubmit' : 'materialAssignment.alert.onceSubmit'
|
|
97
|
+
})), React.createElement(Vspace, {
|
|
98
|
+
height: 1.5
|
|
99
|
+
}), React.createElement(Radio, {
|
|
100
|
+
purpleWhite: true,
|
|
101
|
+
borderRound: true,
|
|
102
|
+
value: assignmentMode,
|
|
103
|
+
onChange: value => {
|
|
104
|
+
reset();
|
|
105
|
+
setAgreedSubmit(false);
|
|
106
|
+
setAssignmentMode(value);
|
|
107
|
+
}
|
|
108
|
+
}, React.createElement(RadioButton, {
|
|
109
|
+
value: "attachment"
|
|
110
|
+
}, intl.formatMessage({
|
|
111
|
+
id: 'materialAssignment.radio.option.attachment'
|
|
112
|
+
})), React.createElement(RadioButton, {
|
|
113
|
+
value: "url"
|
|
114
|
+
}, intl.formatMessage({
|
|
115
|
+
id: 'materialAssignment.radio.option.url'
|
|
116
|
+
}))), React.createElement(Vspace, {
|
|
117
|
+
height: 1
|
|
118
|
+
}), assignmentMode === 'attachment' ? React.createElement(Controller, {
|
|
119
|
+
control: control,
|
|
120
|
+
name: "assignmentFile",
|
|
121
|
+
rules: {
|
|
122
|
+
required: true
|
|
123
|
+
},
|
|
124
|
+
render: ({
|
|
125
|
+
field
|
|
126
|
+
}) => React.createElement(StyledAssignmentContentFiles, Object.assign({}, field, {
|
|
127
|
+
ref: null,
|
|
128
|
+
files: field.value ? [field.value] : undefined,
|
|
129
|
+
accept: "*",
|
|
130
|
+
maxCount: 1,
|
|
131
|
+
maxSize: 300,
|
|
132
|
+
disabled: isAssignmentClosed,
|
|
133
|
+
dropMessage: intl.formatMessage({
|
|
134
|
+
id: 'materialAssignment.attachment.dropMessage'
|
|
135
|
+
}),
|
|
136
|
+
buttonMessage: intl.formatMessage({
|
|
137
|
+
id: 'materialAssignment.attachment.button'
|
|
138
|
+
}),
|
|
139
|
+
maxSizeMessage: intl.formatMessage({
|
|
140
|
+
id: 'materialAssignment.attachment.maxSizeMessage'
|
|
141
|
+
}),
|
|
142
|
+
onChange: newFiles => {
|
|
143
|
+
if (Array.isArray(newFiles) && newFiles[0] instanceof File) {
|
|
144
|
+
field.onChange(newFiles[0]);
|
|
145
|
+
} else {
|
|
146
|
+
field.onChange(undefined);
|
|
191
147
|
}
|
|
192
|
-
},
|
|
193
|
-
render: function render(_ref4) {
|
|
194
|
-
var field = _ref4.field,
|
|
195
|
-
fieldState = _ref4.fieldState;
|
|
196
|
-
var _a;
|
|
197
|
-
return jsx(Input, Object.assign({}, field, {
|
|
198
|
-
width: "full",
|
|
199
|
-
size: "small",
|
|
200
|
-
placeholder: "http(s)://",
|
|
201
|
-
invalid: fieldState.invalid,
|
|
202
|
-
invalidText: (_a = fieldState.error) === null || _a === void 0 ? void 0 : _a.message
|
|
203
|
-
}));
|
|
204
148
|
}
|
|
205
|
-
})
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
149
|
+
}))
|
|
150
|
+
}) : React.createElement(Controller, {
|
|
151
|
+
control: control,
|
|
152
|
+
name: "assignmentUrl",
|
|
153
|
+
rules: {
|
|
154
|
+
required: true,
|
|
155
|
+
validate: url => validateUrl(url !== null && url !== void 0 ? url : '') ? true : intl.formatMessage({
|
|
156
|
+
id: 'materialAssignment.input.invalid'
|
|
157
|
+
})
|
|
158
|
+
},
|
|
159
|
+
render: ({
|
|
160
|
+
field,
|
|
161
|
+
fieldState
|
|
162
|
+
}) => {
|
|
163
|
+
var _a;
|
|
164
|
+
return React.createElement(Input, Object.assign({}, field, {
|
|
165
|
+
width: "full",
|
|
209
166
|
size: "small",
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
167
|
+
placeholder: "http(s)://",
|
|
168
|
+
invalid: fieldState.invalid,
|
|
169
|
+
invalidText: (_a = fieldState.error) === null || _a === void 0 ? void 0 : _a.message
|
|
170
|
+
}));
|
|
171
|
+
}
|
|
172
|
+
}), isAssignmentResubmitEnabled ? null : React.createElement(React.Fragment, null, React.createElement(Vspace, {
|
|
173
|
+
height: 1
|
|
174
|
+
}), React.createElement(Checkbox, {
|
|
175
|
+
size: "small",
|
|
176
|
+
value: isAgreedSubmit,
|
|
177
|
+
onChange: setAgreedSubmit
|
|
178
|
+
}, React.createElement(Text, {
|
|
179
|
+
size: "small"
|
|
180
|
+
}, intl.formatMessage({
|
|
181
|
+
id: 'materialAssignment.attachment.checkbox.onceSubmit'
|
|
182
|
+
})))));
|
|
221
183
|
};
|
|
222
184
|
|
|
223
185
|
export { MaterialAssignmentUploadModal as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef } from 'react';
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
3
2
|
import { config } from '@elice/api-client';
|
|
4
3
|
import { Flex, Spinner } from '@elice/blocks';
|
|
5
4
|
import { IntlProvider } from '@elice/intl';
|
|
@@ -10,49 +9,46 @@ import MaterialAssignmentAdminContent from './MaterialAssignmentAdminContent.js'
|
|
|
10
9
|
import MaterialAssignmentAdminContentTa from './MaterialAssignmentAdminContentTa.js';
|
|
11
10
|
import { StyledMaterialAssignmentAdminContainer } from './MaterialAssignmentAdmin.styled.js';
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
const MaterialAssignmentAdmin = forwardRef(({
|
|
13
|
+
locale = 'en',
|
|
14
|
+
className,
|
|
15
|
+
materialAssignmentId,
|
|
16
|
+
userId,
|
|
17
|
+
adminUserId,
|
|
18
|
+
courseRole,
|
|
19
|
+
updateMaterialUserBrowserResponse
|
|
20
|
+
}, ref) => {
|
|
21
|
+
const prefixCls = 'em-material-assignment-admin';
|
|
23
22
|
// TODO: initialize in custom hook or withMaterial hoc.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
const isReady = useMaterialConfigApiClientUpdate(config.init);
|
|
24
|
+
const isCourseRoleAboveTa = courseRole > enums.CourseRole.TA;
|
|
25
|
+
const renderContent = () => {
|
|
27
26
|
if (!isReady) {
|
|
28
|
-
return
|
|
27
|
+
return React.createElement(Flex, {
|
|
29
28
|
align: "center",
|
|
30
29
|
justify: "center",
|
|
31
30
|
width: "100%",
|
|
32
|
-
height: "100%"
|
|
33
|
-
|
|
34
|
-
});
|
|
31
|
+
height: "100%"
|
|
32
|
+
}, React.createElement(Spinner, null));
|
|
35
33
|
}
|
|
36
|
-
return isCourseRoleAboveTa ?
|
|
34
|
+
return isCourseRoleAboveTa ? React.createElement(MaterialAssignmentAdminContent, {
|
|
37
35
|
ref: ref,
|
|
38
36
|
userId: userId,
|
|
39
37
|
adminUserId: adminUserId,
|
|
40
38
|
materialAssignmentId: materialAssignmentId,
|
|
41
39
|
updateMaterialUserBrowserResponse: updateMaterialUserBrowserResponse
|
|
42
|
-
}) :
|
|
40
|
+
}) : React.createElement(MaterialAssignmentAdminContentTa, {
|
|
43
41
|
userId: userId,
|
|
44
42
|
adminUserId: adminUserId,
|
|
45
43
|
materialAssignmentId: materialAssignmentId
|
|
46
44
|
});
|
|
47
45
|
};
|
|
48
|
-
return
|
|
49
|
-
className: classnames(prefixCls, className)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
})
|
|
55
|
-
});
|
|
46
|
+
return React.createElement(StyledMaterialAssignmentAdminContainer, {
|
|
47
|
+
className: classnames(prefixCls, className)
|
|
48
|
+
}, React.createElement(IntlProvider, {
|
|
49
|
+
locale: locale,
|
|
50
|
+
defaultLocale: "en"
|
|
51
|
+
}, renderContent()));
|
|
56
52
|
});
|
|
57
53
|
|
|
58
54
|
export { MaterialAssignmentAdmin as default };
|
|
@@ -2,32 +2,26 @@ import { Flex, Text } from '@elice/blocks';
|
|
|
2
2
|
import { base } from '@elice/design-tokens';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const StyledMaterialAssignmentAdminContainer = styled.div.withConfig({
|
|
6
6
|
componentId: "sc-1czd3o6-0"
|
|
7
7
|
})(["display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:", ";"], base.color.navy9);
|
|
8
|
-
|
|
8
|
+
const StyledMaterialAssignmentAdminHeader = styled(Flex).withConfig({
|
|
9
9
|
componentId: "sc-1czd3o6-1"
|
|
10
10
|
})(["background-color:", ";"], base.color.navy8);
|
|
11
|
-
|
|
11
|
+
const StyledMaterialAssignmentAdminHeaderCell = styled.div.withConfig({
|
|
12
12
|
componentId: "sc-1czd3o6-2"
|
|
13
13
|
})(["display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;padding:0 1.5rem;height:100%;border-right:1px solid ", ";&:last-of-type{border-right:none;}"], base.color.gray6);
|
|
14
|
-
|
|
14
|
+
const StyledMaterialAssignmentAdminGradeWrapper = styled(Flex).withConfig({
|
|
15
15
|
componentId: "sc-1czd3o6-3"
|
|
16
16
|
})(["background-color:", ";width:100%;padding:0 1.5rem;height:4.5rem;border:1px solid ", ";border-radius:0.5rem;"], base.color.navy7, base.color.navy6);
|
|
17
|
-
|
|
17
|
+
const StyledMaterialAssignmentAdminTextareaWrapper = styled.div.withConfig({
|
|
18
18
|
componentId: "sc-1czd3o6-4"
|
|
19
19
|
})(["background-color:", ";"], base.color.gray2);
|
|
20
|
-
|
|
20
|
+
const StyledMaterialAssignmentAdminManualScoreEditButtonWrapper = styled.div.withConfig({
|
|
21
21
|
componentId: "sc-1czd3o6-5"
|
|
22
|
-
})(["cursor:", ";opacity:", ";"],
|
|
23
|
-
|
|
24
|
-
}, function (props) {
|
|
25
|
-
return props.disabled ? 0.5 : 1;
|
|
26
|
-
});
|
|
27
|
-
var StyledMaterialAssignmentAdminManualScoreEditButton = styled(Text).withConfig({
|
|
22
|
+
})(["cursor:", ";opacity:", ";"], props => props.disabled ? 'not-allowed' : 'pointer', props => props.disabled ? 0.5 : 1);
|
|
23
|
+
const StyledMaterialAssignmentAdminManualScoreEditButton = styled(Text).withConfig({
|
|
28
24
|
componentId: "sc-1czd3o6-6"
|
|
29
|
-
})(["pointer-events:", ";"],
|
|
30
|
-
return props.disabled ? 'none' : 'auto';
|
|
31
|
-
});
|
|
25
|
+
})(["pointer-events:", ";"], props => props.disabled ? 'none' : 'auto');
|
|
32
26
|
|
|
33
27
|
export { StyledMaterialAssignmentAdminContainer, StyledMaterialAssignmentAdminGradeWrapper, StyledMaterialAssignmentAdminHeader, StyledMaterialAssignmentAdminHeaderCell, StyledMaterialAssignmentAdminManualScoreEditButton, StyledMaterialAssignmentAdminManualScoreEditButtonWrapper, StyledMaterialAssignmentAdminTextareaWrapper };
|