cloudmr-ux 1.7.2 → 1.7.4
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/dist/index.js +1 -5
- package/dist/index.mjs +1 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1134,9 +1134,6 @@ var CMRSelectUpload = (props) => {
|
|
|
1134
1134
|
props.onSelected(props.fileSelection[fileIndex]);
|
|
1135
1135
|
setOpen(false);
|
|
1136
1136
|
};
|
|
1137
|
-
const sortedFiles = [...props.fileSelection].sort(
|
|
1138
|
-
(a, b) => a.fileName.localeCompare(b.fileName)
|
|
1139
|
-
);
|
|
1140
1137
|
const selectionDialog = /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_Dialog6.default, { open, onClose: handleClose, children: [
|
|
1141
1138
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_DialogTitle6.default, { children: "Select or Upload" }),
|
|
1142
1139
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_DialogContent6.default, { sx: { width: 520 }, children: [
|
|
@@ -1145,7 +1142,7 @@ var CMRSelectUpload = (props) => {
|
|
|
1145
1142
|
import_Autocomplete.default,
|
|
1146
1143
|
{
|
|
1147
1144
|
disabled: uploading,
|
|
1148
|
-
options:
|
|
1145
|
+
options: props.fileSelection,
|
|
1149
1146
|
filterOptions: (options, state) => {
|
|
1150
1147
|
const input = state.inputValue.toLowerCase();
|
|
1151
1148
|
const filtered = options.filter(
|
|
@@ -1157,7 +1154,6 @@ var CMRSelectUpload = (props) => {
|
|
|
1157
1154
|
},
|
|
1158
1155
|
getOptionLabel: (option) => option.fileName,
|
|
1159
1156
|
isOptionEqualToValue: (option, value) => option.id === value.id,
|
|
1160
|
-
value: fileIndex === -1 ? null : props.fileSelection[fileIndex],
|
|
1161
1157
|
onChange: (event, newValue) => {
|
|
1162
1158
|
if (newValue) {
|
|
1163
1159
|
const index = props.fileSelection.findIndex((file) => file.id === newValue.id);
|
package/dist/index.mjs
CHANGED
|
@@ -1086,9 +1086,6 @@ var CMRSelectUpload = (props) => {
|
|
|
1086
1086
|
props.onSelected(props.fileSelection[fileIndex]);
|
|
1087
1087
|
setOpen(false);
|
|
1088
1088
|
};
|
|
1089
|
-
const sortedFiles = [...props.fileSelection].sort(
|
|
1090
|
-
(a, b) => a.fileName.localeCompare(b.fileName)
|
|
1091
|
-
);
|
|
1092
1089
|
const selectionDialog = /* @__PURE__ */ jsxs12(Dialog6, { open, onClose: handleClose, children: [
|
|
1093
1090
|
/* @__PURE__ */ jsx18(DialogTitle6, { children: "Select or Upload" }),
|
|
1094
1091
|
/* @__PURE__ */ jsxs12(DialogContent6, { sx: { width: 520 }, children: [
|
|
@@ -1097,7 +1094,7 @@ var CMRSelectUpload = (props) => {
|
|
|
1097
1094
|
Autocomplete,
|
|
1098
1095
|
{
|
|
1099
1096
|
disabled: uploading,
|
|
1100
|
-
options:
|
|
1097
|
+
options: props.fileSelection,
|
|
1101
1098
|
filterOptions: (options, state) => {
|
|
1102
1099
|
const input = state.inputValue.toLowerCase();
|
|
1103
1100
|
const filtered = options.filter(
|
|
@@ -1109,7 +1106,6 @@ var CMRSelectUpload = (props) => {
|
|
|
1109
1106
|
},
|
|
1110
1107
|
getOptionLabel: (option) => option.fileName,
|
|
1111
1108
|
isOptionEqualToValue: (option, value) => option.id === value.id,
|
|
1112
|
-
value: fileIndex === -1 ? null : props.fileSelection[fileIndex],
|
|
1113
1109
|
onChange: (event, newValue) => {
|
|
1114
1110
|
if (newValue) {
|
|
1115
1111
|
const index = props.fileSelection.findIndex((file) => file.id === newValue.id);
|