@haniffalab/cherita-react 0.2.0-dev.2024-12-16.f02cfae4 → 0.2.0-dev.2024-12-16.6be54149
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/components/dotplot/Dotplot.js +8 -1
- package/dist/components/full-page/FullPage.js +31 -1
- package/dist/components/heatmap/Heatmap.js +8 -1
- package/dist/components/matrixplot/Matrixplot.js +8 -1
- package/dist/components/obs-list/ObsItem.js +69 -21
- package/dist/components/obs-list/ObsList.js +19 -3
- package/dist/components/pseudospatial/Pseudospatial.js +9 -2
- package/dist/components/pseudospatial/PseudospatialToolbar.js +3 -1
- package/dist/components/scatterplot/Scatterplot.js +26 -108
- package/dist/components/var-list/VarItem.js +24 -50
- package/dist/components/var-list/VarList.js +5 -2
- package/dist/components/violin/Violin.js +9 -2
- package/dist/context/DatasetContext.js +16 -2
- package/dist/context/FilterContext.js +10 -25
- package/dist/context/ZarrDataContext.js +37 -0
- package/dist/css/cherita.css +5 -0
- package/dist/css/cherita.css.map +1 -1
- package/dist/helpers/zarr-helper.js +36 -18
- package/dist/index.js +6 -0
- package/dist/utils/Filter.js +155 -0
- package/dist/utils/Histogram.js +54 -0
- package/dist/utils/Legend.js +3 -2
- package/dist/utils/VirtualizedList.js +2 -2
- package/dist/utils/requests.js +8 -2
- package/dist/utils/search.js +4 -2
- package/dist/utils/string.js +4 -0
- package/package.json +2 -2
- package/scss/cherita.scss +5 -0
package/dist/utils/search.js
CHANGED
|
@@ -16,7 +16,8 @@ const useDiseaseSearch = () => {
|
|
|
16
16
|
text: ""
|
|
17
17
|
});
|
|
18
18
|
const data = (0, _requests.useFetch)(ENDPOINT, params, {
|
|
19
|
-
enabled: !!params.text.length
|
|
19
|
+
enabled: !!params.text.length,
|
|
20
|
+
refetchOnMount: true
|
|
20
21
|
});
|
|
21
22
|
return {
|
|
22
23
|
params,
|
|
@@ -34,7 +35,8 @@ const useVarSearch = () => {
|
|
|
34
35
|
text: ""
|
|
35
36
|
});
|
|
36
37
|
const data = (0, _requests.useFetch)(ENDPOINT, params, {
|
|
37
|
-
enabled: !!params.text.length
|
|
38
|
+
enabled: !!params.text.length,
|
|
39
|
+
refetchOnMount: true
|
|
38
40
|
});
|
|
39
41
|
return {
|
|
40
42
|
params,
|
package/dist/utils/string.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.FORMATS = void 0;
|
|
7
7
|
exports.formatNumerical = formatNumerical;
|
|
8
|
+
exports.formatString = formatString;
|
|
8
9
|
var _numbro = _interopRequireDefault(require("numbro"));
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
11
|
const FORMATS = exports.FORMATS = {
|
|
@@ -61,4 +62,7 @@ function formatNumerical(n) {
|
|
|
61
62
|
default:
|
|
62
63
|
return formatThousand(n, precision);
|
|
63
64
|
}
|
|
65
|
+
}
|
|
66
|
+
function formatString(s) {
|
|
67
|
+
return s.trim().replace(/_/g, " ");
|
|
64
68
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haniffalab/cherita-react",
|
|
3
|
-
"version": "0.2.0-dev.2024-12-16.
|
|
3
|
+
"version": "0.2.0-dev.2024-12-16.6be54149",
|
|
4
4
|
"author": "",
|
|
5
5
|
"license": "",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"url": "https://github.com/haniffalab/cherita-react/issues"
|
|
102
102
|
},
|
|
103
103
|
"homepage": "https://github.com/haniffalab/cherita-react#readme",
|
|
104
|
-
"prereleaseSha": "
|
|
104
|
+
"prereleaseSha": "6be54149744ec54b8d96989fae19ecd277e68a71"
|
|
105
105
|
}
|
package/scss/cherita.scss
CHANGED
|
@@ -128,6 +128,10 @@
|
|
|
128
128
|
background-color: #cce3ed;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
+
.obs-item {
|
|
132
|
+
box-sizing: border-box;
|
|
133
|
+
}
|
|
134
|
+
|
|
131
135
|
.obs-value-list-check {
|
|
132
136
|
padding-right: 1rem;
|
|
133
137
|
word-break: auto-phrase;
|
|
@@ -268,6 +272,7 @@
|
|
|
268
272
|
@extend .col-xxl-6;
|
|
269
273
|
|
|
270
274
|
position: relative;
|
|
275
|
+
max-height: 100%;
|
|
271
276
|
}
|
|
272
277
|
|
|
273
278
|
.cherita-app-obs {
|