@opencloning/ui 1.7.1 → 1.7.2
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @opencloning/ui
|
|
2
2
|
|
|
3
|
+
## 1.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#675](https://github.com/manulera/OpenCloning_frontend/pull/675) [`1f08cca`](https://github.com/manulera/OpenCloning_frontend/commit/1f08ccab8422d9cf9a9355d2770fa8997e53c96b) Thanks [@manulera](https://github.com/manulera)! - Improve loading files from server in Assembler
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @opencloning/store@1.7.2
|
|
11
|
+
- @opencloning/utils@1.7.2
|
|
12
|
+
|
|
3
13
|
## 1.7.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"license": "MIT",
|
|
3
3
|
"name": "@opencloning/ui",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
7
|
"scripts": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@mui/icons-material": "^5.15.17",
|
|
34
34
|
"@mui/material": "^5.15.17",
|
|
35
35
|
"@mui/x-data-grid": "^8.25.0",
|
|
36
|
-
"@opencloning/store": "1.7.
|
|
37
|
-
"@opencloning/utils": "1.7.
|
|
36
|
+
"@opencloning/store": "1.7.2",
|
|
37
|
+
"@opencloning/utils": "1.7.2",
|
|
38
38
|
"@teselagen/bio-parsers": "^0.4.34",
|
|
39
39
|
"@teselagen/ove": "^0.8.34",
|
|
40
40
|
"@teselagen/range-utils": "^0.3.20",
|
|
@@ -16,11 +16,13 @@ function ServerStaticFileSelect({ onFileSelected, multiple = false, type = 'sequ
|
|
|
16
16
|
if (type !== 'sequence') {
|
|
17
17
|
return index.syntaxes;
|
|
18
18
|
}
|
|
19
|
+
const sequencesIdAdded = index.sequences.map((sequence, index) => ({...sequence, id: index}));
|
|
19
20
|
const prePendArray = multiple ? ['__all__'] : [];
|
|
20
21
|
if (selectedCategory === '') {
|
|
21
|
-
return [...prePendArray, ...
|
|
22
|
+
return [...prePendArray, ...sequencesIdAdded];
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
+
|
|
25
|
+
return [...prePendArray, ...sequencesIdAdded.filter((sequence) => sequence.categories?.includes(selectedCategory))];
|
|
24
26
|
}, [type, index, selectedCategory, multiple]);
|
|
25
27
|
|
|
26
28
|
const categoryOptions = React.useMemo(() => {
|
|
@@ -112,6 +114,7 @@ function ServerStaticFileSelect({ onFileSelected, multiple = false, type = 'sequ
|
|
|
112
114
|
options={options}
|
|
113
115
|
value={selectedOptions}
|
|
114
116
|
onChange={onOptionsChange}
|
|
117
|
+
getOptionKey={(option) => option.id || option}
|
|
115
118
|
getOptionLabel={(option) => (option === '__all__' ? 'Select all' : option?.name || option?.path || '')}
|
|
116
119
|
disableCloseOnSelect={multiple}
|
|
117
120
|
renderInput={(params) => (
|
package/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Version placeholder - replaced at publish time via prepack script
|
|
2
|
-
export const version = "1.7.
|
|
2
|
+
export const version = "1.7.2";
|