@haniffalab/cherita-react 1.4.3-dev.2025-11-03.51357614 → 1.4.4-dev.2025-11-05.37677c93
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/cjs/components/var-list/VarItem.js +3 -5
- package/dist/cjs/components/var-list/VarSet.js +4 -6
- package/dist/cjs/context/DatasetContext.js +1 -1
- package/dist/cjs/context/SettingsContext.js +2 -2
- package/dist/esm/components/var-list/VarItem.js +4 -6
- package/dist/esm/components/var-list/VarSet.js +5 -7
- package/dist/esm/context/DatasetContext.js +1 -1
- package/dist/esm/context/SettingsContext.js +2 -2
- package/package.json +2 -2
|
@@ -165,13 +165,11 @@ function SelectionItem(_ref3) {
|
|
|
165
165
|
selectVar();
|
|
166
166
|
},
|
|
167
167
|
disabled: isNotInData,
|
|
168
|
-
title: isNotInData ? 'Not present in data' : 'Set as color encoding',
|
|
169
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFontawesome.FontAwesomeIcon, {
|
|
168
|
+
title: isNotInData ? 'Not present in data' : isMultiple ? isActive ? 'Remove from plot' : 'Add to plot' : 'Set as color encoding',
|
|
169
|
+
children: [!isMultiple && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFontawesome.FontAwesomeIcon, {
|
|
170
170
|
icon: _freeSolidSvgIcons.faDroplet
|
|
171
171
|
}), isMultiple && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFontawesome.FontAwesomeIcon, {
|
|
172
|
-
icon: _freeSolidSvgIcons.
|
|
173
|
-
size: "xs",
|
|
174
|
-
className: "ps-xs-1"
|
|
172
|
+
icon: _freeSolidSvgIcons.faCheck
|
|
175
173
|
})]
|
|
176
174
|
}, item.matrix_index), showRemove && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Button, {
|
|
177
175
|
type: "button",
|
|
@@ -9,10 +9,10 @@ var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
|
9
9
|
var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
10
10
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
11
11
|
var _reactBootstrap = require("react-bootstrap");
|
|
12
|
-
var _VarItem = require("./VarItem");
|
|
13
12
|
var _constants = require("../../constants/constants");
|
|
14
13
|
var _SettingsContext = require("../../context/SettingsContext");
|
|
15
14
|
var _SearchBar = require("../search-bar/SearchBar");
|
|
15
|
+
var _VarItem = require("./VarItem");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
18
|
// @TODO: add button to score genes and plot
|
|
@@ -101,13 +101,11 @@ function SelectionSet(_ref) {
|
|
|
101
101
|
selectSet();
|
|
102
102
|
},
|
|
103
103
|
disabled: !set.vars.length,
|
|
104
|
-
title:
|
|
105
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFontawesome.FontAwesomeIcon, {
|
|
104
|
+
title: !set.vars.length ? 'No variables in set' : isMultiple ? isActive ? 'Remove from plot' : 'Add to plot' : 'Set as color encoding',
|
|
105
|
+
children: [!isMultiple && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFontawesome.FontAwesomeIcon, {
|
|
106
106
|
icon: _freeSolidSvgIcons.faDroplet
|
|
107
107
|
}), isMultiple && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFontawesome.FontAwesomeIcon, {
|
|
108
|
-
icon: _freeSolidSvgIcons.
|
|
109
|
-
size: "xs",
|
|
110
|
-
className: "ps-xs-1"
|
|
108
|
+
icon: _freeSolidSvgIcons.faCheck
|
|
111
109
|
})]
|
|
112
110
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactBootstrap.Button, {
|
|
113
111
|
type: "button",
|
|
@@ -173,7 +173,7 @@ function SettingsProvider(_ref2) {
|
|
|
173
173
|
|
|
174
174
|
// If the buster is not set or does not match the current package version,
|
|
175
175
|
// reset localSettings to avoid stale data
|
|
176
|
-
if (!buster || buster !== "1.4.
|
|
176
|
+
if (!buster || buster !== "1.4.4-dev.2025-11-05.37677c93") {
|
|
177
177
|
localSettings = {};
|
|
178
178
|
}
|
|
179
179
|
const initSettings = (0, _react.useRef)(initializer({
|
|
@@ -198,7 +198,7 @@ function SettingsProvider(_ref2) {
|
|
|
198
198
|
if (canOverrideSettings && settings) {
|
|
199
199
|
try {
|
|
200
200
|
localStorage.setItem(DATASET_STORAGE_KEY, JSON.stringify(_objectSpread({
|
|
201
|
-
buster: "1.4.
|
|
201
|
+
buster: "1.4.4-dev.2025-11-05.37677c93" || '0.0.0',
|
|
202
202
|
timestamp: Date.now()
|
|
203
203
|
}, _lodash.default.omit(settings, 'data'))));
|
|
204
204
|
} catch (err) {
|
|
@@ -4,7 +4,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
4
4
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
5
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
6
|
import { useEffect, useState } from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import { faCheck, faDroplet, faTrash } from '@fortawesome/free-solid-svg-icons';
|
|
8
8
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
9
9
|
import { MoreVert } from '@mui/icons-material';
|
|
10
10
|
import _ from 'lodash';
|
|
@@ -156,13 +156,11 @@ export function SelectionItem(_ref3) {
|
|
|
156
156
|
selectVar();
|
|
157
157
|
},
|
|
158
158
|
disabled: isNotInData,
|
|
159
|
-
title: isNotInData ? 'Not present in data' : 'Set as color encoding',
|
|
160
|
-
children: [/*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
159
|
+
title: isNotInData ? 'Not present in data' : isMultiple ? isActive ? 'Remove from plot' : 'Add to plot' : 'Set as color encoding',
|
|
160
|
+
children: [!isMultiple && /*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
161
161
|
icon: faDroplet
|
|
162
162
|
}), isMultiple && /*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
163
|
-
icon:
|
|
164
|
-
size: "xs",
|
|
165
|
-
className: "ps-xs-1"
|
|
163
|
+
icon: faCheck
|
|
166
164
|
})]
|
|
167
165
|
}, item.matrix_index), showRemove && /*#__PURE__*/_jsx(Button, {
|
|
168
166
|
type: "button",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
-
import { faChevronDown, faChevronUp, faCircleInfo, faDroplet, faPlus, faTrash } from '@fortawesome/free-solid-svg-icons';
|
|
2
|
+
import { faCheck, faChevronDown, faChevronUp, faCircleInfo, faDroplet, faPlus, faTrash } from '@fortawesome/free-solid-svg-icons';
|
|
3
3
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
4
4
|
import _ from 'lodash';
|
|
5
5
|
import { Button, Collapse, ListGroup, OverlayTrigger, Tooltip } from 'react-bootstrap';
|
|
6
|
-
import { SelectionItem } from './VarItem';
|
|
7
6
|
import { COLOR_ENCODINGS, SELECTION_MODES } from '../../constants/constants';
|
|
8
7
|
import { useSettings, useSettingsDispatch } from '../../context/SettingsContext';
|
|
9
8
|
import { SearchModal } from '../search-bar/SearchBar';
|
|
9
|
+
import { SelectionItem } from './VarItem';
|
|
10
10
|
|
|
11
11
|
// @TODO: add button to score genes and plot
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -95,13 +95,11 @@ function SelectionSet(_ref) {
|
|
|
95
95
|
selectSet();
|
|
96
96
|
},
|
|
97
97
|
disabled: !set.vars.length,
|
|
98
|
-
title:
|
|
99
|
-
children: [/*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
98
|
+
title: !set.vars.length ? 'No variables in set' : isMultiple ? isActive ? 'Remove from plot' : 'Add to plot' : 'Set as color encoding',
|
|
99
|
+
children: [!isMultiple && /*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
100
100
|
icon: faDroplet
|
|
101
101
|
}), isMultiple && /*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
102
|
-
icon:
|
|
103
|
-
size: "xs",
|
|
104
|
-
className: "ps-xs-1"
|
|
102
|
+
icon: faCheck
|
|
105
103
|
})]
|
|
106
104
|
}), /*#__PURE__*/_jsx(Button, {
|
|
107
105
|
type: "button",
|
|
@@ -163,7 +163,7 @@ export function SettingsProvider(_ref2) {
|
|
|
163
163
|
|
|
164
164
|
// If the buster is not set or does not match the current package version,
|
|
165
165
|
// reset localSettings to avoid stale data
|
|
166
|
-
if (!buster || buster !== "1.4.
|
|
166
|
+
if (!buster || buster !== "1.4.4-dev.2025-11-05.37677c93") {
|
|
167
167
|
localSettings = {};
|
|
168
168
|
}
|
|
169
169
|
const initSettings = useRef(initializer({
|
|
@@ -188,7 +188,7 @@ export function SettingsProvider(_ref2) {
|
|
|
188
188
|
if (canOverrideSettings && settings) {
|
|
189
189
|
try {
|
|
190
190
|
localStorage.setItem(DATASET_STORAGE_KEY, JSON.stringify(_objectSpread({
|
|
191
|
-
buster: "1.4.
|
|
191
|
+
buster: "1.4.4-dev.2025-11-05.37677c93" || '0.0.0',
|
|
192
192
|
timestamp: Date.now()
|
|
193
193
|
}, _.omit(settings, 'data'))));
|
|
194
194
|
} catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haniffalab/cherita-react",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4-dev.2025-11-05.37677c93",
|
|
4
4
|
"author": "Haniffa Lab",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -140,5 +140,5 @@
|
|
|
140
140
|
"url": "https://github.com/haniffalab/cherita-react/issues"
|
|
141
141
|
},
|
|
142
142
|
"homepage": "https://github.com/haniffalab/cherita-react#readme",
|
|
143
|
-
"prereleaseSha": "
|
|
143
|
+
"prereleaseSha": "37677c93d42286cfbb4284e2d5368cca2a26df09"
|
|
144
144
|
}
|