@kodiak-finance/orderly-portfolio 2.8.19 → 2.8.21-alpha.0
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.d.mts +0 -3
- package/dist/index.d.ts +0 -3
- package/dist/index.js +46 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +46 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +18 -18
package/dist/index.mjs
CHANGED
|
@@ -4441,7 +4441,6 @@ var init_useAssetHistory = __esm({
|
|
|
4441
4441
|
// calculatedData,
|
|
4442
4442
|
aggregateValue,
|
|
4443
4443
|
createFakeData,
|
|
4444
|
-
volumeUpdateDate: data?.[data.length - 1]?.date ?? "",
|
|
4445
4444
|
filterItems,
|
|
4446
4445
|
onFilter,
|
|
4447
4446
|
dateRange,
|
|
@@ -4674,7 +4673,6 @@ var init_performance_ui = __esm({
|
|
|
4674
4673
|
aggregateValue,
|
|
4675
4674
|
invisible,
|
|
4676
4675
|
visible,
|
|
4677
|
-
volumeUpdateDate,
|
|
4678
4676
|
curPeriod,
|
|
4679
4677
|
filterItems,
|
|
4680
4678
|
onFilter
|
|
@@ -4769,18 +4767,15 @@ var init_performance_ui = __esm({
|
|
|
4769
4767
|
classNames: {
|
|
4770
4768
|
label: "oui-w-full"
|
|
4771
4769
|
},
|
|
4772
|
-
label: /* @__PURE__ */
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
{
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
) }),
|
|
4782
|
-
/* @__PURE__ */ jsx("span", { children: volumeUpdateDate })
|
|
4783
|
-
] }),
|
|
4770
|
+
label: /* @__PURE__ */ jsx(
|
|
4771
|
+
LabelWithHint,
|
|
4772
|
+
{
|
|
4773
|
+
label: t("portfolio.overview.performance.volume", {
|
|
4774
|
+
period: curPeriod
|
|
4775
|
+
}),
|
|
4776
|
+
hint: t("portfolio.overview.performance.volume.tooltip")
|
|
4777
|
+
}
|
|
4778
|
+
),
|
|
4784
4779
|
valueProps: { visible },
|
|
4785
4780
|
children: invisible ? "--" : aggregateValue.vol
|
|
4786
4781
|
}
|
|
@@ -7401,6 +7396,12 @@ var PortfolioHandleMobile = (props) => {
|
|
|
7401
7396
|
name: t("trading.history")
|
|
7402
7397
|
});
|
|
7403
7398
|
};
|
|
7399
|
+
const onGotoSymbolPerformance = () => {
|
|
7400
|
+
props.routerAdapter?.onRouteChange({
|
|
7401
|
+
href: "/portfolio/symbol-performance" /* SymbolPerformance */,
|
|
7402
|
+
name: t("portfolio.symbolPerformance")
|
|
7403
|
+
});
|
|
7404
|
+
};
|
|
7404
7405
|
return /* @__PURE__ */ jsxs(
|
|
7405
7406
|
Flex,
|
|
7406
7407
|
{
|
|
@@ -7479,6 +7480,37 @@ var PortfolioHandleMobile = (props) => {
|
|
|
7479
7480
|
/* @__PURE__ */ jsx(Text, { className: "oui-text-base-80 oui-text-2xs", children: t("trading.history") })
|
|
7480
7481
|
]
|
|
7481
7482
|
}
|
|
7483
|
+
),
|
|
7484
|
+
/* @__PURE__ */ jsxs(
|
|
7485
|
+
Flex,
|
|
7486
|
+
{
|
|
7487
|
+
direction: "column",
|
|
7488
|
+
gapY: 2,
|
|
7489
|
+
itemAlign: "center",
|
|
7490
|
+
className: "oui-flex-1 oui-cursor-pointer",
|
|
7491
|
+
onClick: onGotoSymbolPerformance,
|
|
7492
|
+
children: [
|
|
7493
|
+
/* @__PURE__ */ jsx("div", { className: "oui-flex oui-size-[48px] oui-items-center oui-justify-center oui-rounded-xl oui-bg-base-9", children: /* @__PURE__ */ jsx(
|
|
7494
|
+
"svg",
|
|
7495
|
+
{
|
|
7496
|
+
width: "28",
|
|
7497
|
+
height: "28",
|
|
7498
|
+
viewBox: "0 0 18 18",
|
|
7499
|
+
fill: "none",
|
|
7500
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7501
|
+
className: "oui-text-white",
|
|
7502
|
+
children: /* @__PURE__ */ jsx(
|
|
7503
|
+
"path",
|
|
7504
|
+
{
|
|
7505
|
+
d: "M13.5 3.75C12.8096 3.75 12.375 4.18467 12.375 4.875V12.375C12.375 13.0654 12.8096 13.5 13.5 13.5H14.625C15.3154 13.5 15.75 13.0654 15.75 12.375V4.875C15.75 4.18467 15.3154 3.75 14.625 3.75H13.5ZM13.5 5.25H14.625V12.375H13.5V5.25ZM8.25 6.75C7.55964 6.75 7.125 7.18467 7.125 7.875V12.375C7.125 13.0654 7.55964 13.5 8.25 13.5H9.375C10.0654 13.5 10.5 13.0654 10.5 12.375V7.875C10.5 7.18467 10.0654 6.75 9.375 6.75H8.25ZM8.25 8.25H9.375V12.375H8.25V8.25ZM3 9.75C2.30964 9.75 1.875 10.1847 1.875 10.875V12.375C1.875 13.0654 2.30964 13.5 3 13.5H4.125C4.81536 13.5 5.25 13.0654 5.25 12.375V10.875C5.25 10.1847 4.81536 9.75 4.125 9.75H3ZM3 11.25H4.125V12.375H3V11.25Z",
|
|
7506
|
+
fill: "currentColor"
|
|
7507
|
+
}
|
|
7508
|
+
)
|
|
7509
|
+
}
|
|
7510
|
+
) }),
|
|
7511
|
+
/* @__PURE__ */ jsx(Text, { className: "oui-text-base-80 oui-text-2xs", children: t("portfolio.symbolPerformance") })
|
|
7512
|
+
]
|
|
7513
|
+
}
|
|
7482
7514
|
)
|
|
7483
7515
|
]
|
|
7484
7516
|
}
|