cloudmr-ux 4.1.8 → 4.2.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.
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.Mui-checked {
|
|
18
|
-
color: #
|
|
18
|
+
color: var(--cmr-checkbox-checked-color, #580f8b) !important; /* Default #580f8b; override via checkedColor prop */
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.MuiCheckbox-root:active, .MuiCheckbox-root:focus {
|
|
@@ -9,6 +9,8 @@ interface CmrCheckboxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
9
9
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
10
10
|
children?: any;
|
|
11
11
|
style?: any;
|
|
12
|
+
/** Checked state color (e.g. '#580F8B'). Defaults to #580f8b when not set. */
|
|
13
|
+
checkedColor?: string;
|
|
12
14
|
}
|
|
13
15
|
export declare const CmrCheckbox: (props: CmrCheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
export {};
|
|
@@ -25,6 +25,8 @@ import { Checkbox } from '@mui/material';
|
|
|
25
25
|
import './CmrCheckbox.css';
|
|
26
26
|
import { FormControlLabel } from '@mui/material';
|
|
27
27
|
export var CmrCheckbox = function (props) {
|
|
28
|
-
var
|
|
29
|
-
|
|
28
|
+
var _a;
|
|
29
|
+
var defaultChecked = props.defaultChecked, onChange = props.onChange, children = props.children, checkedColor = props.checkedColor, rest = __rest(props, ["defaultChecked", "onChange", "children", "checkedColor"]);
|
|
30
|
+
var wrapperStyle = __assign({ display: 'contents' }, (checkedColor != null && (_a = {}, _a['--cmr-checkbox-checked-color'] = checkedColor, _a)));
|
|
31
|
+
return (_jsx("div", __assign({ className: "cmr-checkbox-wrapper", style: wrapperStyle }, { children: _jsx(FormControlLabel, { disabled: props.disabled, style: props.style, className: props.className, control: _jsx(Checkbox, { style: props.style, checked: props.checked, defaultChecked: defaultChecked, onChange: onChange }), label: _jsx("span", __assign({ className: "cmr-label", style: { paddingRight: 0, color: 'var(--bs-card-color)' } }, { children: children })), labelPlacement: "end" }) })));
|
|
30
32
|
};
|
|
@@ -96,8 +96,7 @@ export var uploadJob = createAsyncThunk('UploadJob', function (_a, thunkAPI) {
|
|
|
96
96
|
switch (_a.label) {
|
|
97
97
|
case 0:
|
|
98
98
|
_a.trys.push([0, 2, , 7]);
|
|
99
|
-
return [4 /*yield*/,
|
|
100
|
-
// const response = await AuthenticatedHttpClient.put(partUrl, part, {
|
|
99
|
+
return [4 /*yield*/, AuthenticatedHttpClient.put(partUrl, part, {
|
|
101
100
|
headers: {
|
|
102
101
|
'Content-Type': ""
|
|
103
102
|
},
|
|
@@ -182,7 +181,7 @@ export var uploadJob = createAsyncThunk('UploadJob', function (_a, thunkAPI) {
|
|
|
182
181
|
}); }))];
|
|
183
182
|
case 4:
|
|
184
183
|
uploadedParts = _c.sent();
|
|
185
|
-
return [4 /*yield*/,
|
|
184
|
+
return [4 /*yield*/, axios.post(endpoints.JOB_UPLOAD_FINALIZE, {
|
|
186
185
|
uploadId: uploadId,
|
|
187
186
|
parts: uploadedParts,
|
|
188
187
|
Key: Key
|
|
@@ -233,8 +232,7 @@ var createPayload = function (uploadToken, file, fileAlias) { return __awaiter(v
|
|
|
233
232
|
case 2:
|
|
234
233
|
UploadHeaders = {
|
|
235
234
|
headers: {
|
|
236
|
-
'Content-Type': 'application/json'
|
|
237
|
-
'X-Api-Key': uploadToken
|
|
235
|
+
'Content-Type': 'application/json'
|
|
238
236
|
}
|
|
239
237
|
};
|
|
240
238
|
return [2 /*return*/, { destination: endpoints.JOB_UPLOAD_INIT, lambdaFile: lambdaFile, file: file, config: UploadHeaders }];
|