@funnest/charts-ui 0.11.29 → 0.11.30
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 +5 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5703,7 +5703,6 @@ function IntervalPicker({ ctx }) {
|
|
|
5703
5703
|
const groups = ctx.intervalGroups.filter((g3) => g3.id !== "ticks" || g3.intervals.some(isSupported));
|
|
5704
5704
|
const listed = new Set(ctx.intervalGroups.flatMap((g3) => g3.intervals));
|
|
5705
5705
|
const custom = s3.customIntervals.filter((r3) => !listed.has(r3)).sort((a4, b) => resolutionToMs3(a4) - resolutionToMs3(b));
|
|
5706
|
-
const order = [...ctx.intervalGroups.flatMap((g3) => g3.intervals), ...custom];
|
|
5707
5706
|
const [amount, setAmount] = d2("2");
|
|
5708
5707
|
const [unit, setUnit] = d2(1);
|
|
5709
5708
|
const add = () => {
|
|
@@ -5714,7 +5713,11 @@ function IntervalPicker({ ctx }) {
|
|
|
5714
5713
|
select(r3);
|
|
5715
5714
|
};
|
|
5716
5715
|
const favorites = s3.favoriteIntervals;
|
|
5717
|
-
const byTime = (a4, b) =>
|
|
5716
|
+
const byTime = (a4, b) => {
|
|
5717
|
+
const ta = tickCount(a4), tb = tickCount(b);
|
|
5718
|
+
if (ta !== null || tb !== null) return ta === null ? 1 : tb === null ? -1 : ta - tb;
|
|
5719
|
+
return resolutionToMs3(a4) - resolutionToMs3(b);
|
|
5720
|
+
};
|
|
5718
5721
|
const chips = [.../* @__PURE__ */ new Set([...favorites, ...s3.resolution ? [s3.resolution] : []])].sort(byTime);
|
|
5719
5722
|
const select = (r3) => {
|
|
5720
5723
|
setOpen(false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funnest/charts-ui",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.30",
|
|
4
4
|
"description": "Pro trading UI (toolbar, drawing tools, sheets) for Funnest Charts. Framework-agnostic.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chart",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"NOTICE"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@funnest/charts": "0.11.
|
|
45
|
+
"@funnest/charts": "0.11.30"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"preact": "^11.2.0"
|