@vninvestcharts/widget 0.0.0-stage → 0.2.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/LICENSE +201 -0
- package/NOTICE.md +83 -0
- package/README.md +851 -3
- package/dist/AlertsModal-WKEUDTUZ.js +2 -0
- package/dist/ConnectedTradingPanel-KWJMIKTN.css +2 -0
- package/dist/ConnectedTradingPanel-XDKMOQY5.js +2 -0
- package/dist/PineEditorPanel-AUXB4FD3.js +2 -0
- package/dist/PineEditorPanel-V6YN2OTU.css +2 -0
- package/dist/RightSidebarDockHost-6FPZ6EKV.css +2 -0
- package/dist/RightSidebarDockHost-OBFXKSIY.js +2 -0
- package/dist/StrategyTesterPanel-6IUTS2P4.js +2 -0
- package/dist/StrategyTesterPanel-LEWEUMXP.css +2 -0
- package/dist/VolumeProfileWorker-UREKVPUE.js +189 -0
- package/dist/adapters/index.cjs +2532 -0
- package/dist/adapters/index.d.mts +673 -0
- package/dist/adapters/index.d.ts +673 -0
- package/dist/adapters/index.js +2521 -0
- package/dist/adapters/index.umd.js +2535 -0
- package/dist/chunk-5T6DGB3V.js +2 -0
- package/dist/chunk-66JBEGR3.js +4 -0
- package/dist/chunk-6D7DVBIK.js +2 -0
- package/dist/chunk-76E7CKUD.js +2 -0
- package/dist/chunk-AKWVXRQ6.js +2 -0
- package/dist/chunk-FHHSTO6Z.js +2 -0
- package/dist/chunk-HPL723JA.js +2 -0
- package/dist/chunk-NVGTF73S.js +2 -0
- package/dist/chunk-PNIB4OM3.js +2 -0
- package/dist/chunk-UKJ5AKQX.js +595 -0
- package/dist/chunk-UYJTX3SD.js +2 -0
- package/dist/combined.css +3068 -0
- package/dist/css-modules-manifest.json +297 -0
- package/dist/dist-Y6PZ2RN3.js +12 -0
- package/dist/drawing/index.cjs +53 -0
- package/dist/drawing/index.d.mts +2 -0
- package/dist/drawing/index.d.ts +2 -0
- package/dist/drawing/index.js +2 -0
- package/dist/drawing/index.umd.js +54 -0
- package/dist/dts/drawing-shim.d.ts +3 -0
- package/dist/dts/index.d.ts +31 -0
- package/dist/dts/lib/Chart.d.ts +31 -0
- package/dist/dts/lib/ChartContext.d.ts +10 -0
- package/dist/dts/lib/EventCapture.d.ts +3 -0
- package/dist/dts/lib/GenericChartComponent.d.ts +5 -0
- package/dist/dts/lib/GenericComponent.d.ts +124 -0
- package/dist/dts/lib/StockChartContext.d.ts +53 -0
- package/dist/dts/lib/adapters/BaseAdapter.d.ts +25 -0
- package/dist/dts/lib/adapters/BinanceAdapter.d.ts +51 -0
- package/dist/dts/lib/adapters/CSVAdapter.d.ts +17 -0
- package/dist/dts/lib/adapters/ContinuousContractAdapter.d.ts +63 -0
- package/dist/dts/lib/adapters/ContinuousContractTypes.d.ts +154 -0
- package/dist/dts/lib/adapters/DBAdapter.d.ts +16 -0
- package/dist/dts/lib/adapters/DataAdapter.d.ts +136 -0
- package/dist/dts/lib/adapters/DjangoVnstockAdapter.d.ts +15 -0
- package/dist/dts/lib/adapters/LocalCacheAdapter.d.ts +18 -0
- package/dist/dts/lib/adapters/MockAdapter.d.ts +22 -0
- package/dist/dts/lib/adapters/RESTAdapter.d.ts +16 -0
- package/dist/dts/lib/adapters/StockDataAdapter.d.ts +1 -0
- package/dist/dts/lib/adapters/UDFDataAdapter.d.ts +29 -0
- package/dist/dts/lib/adapters/VNStocksAdapter.d.ts +8 -0
- package/dist/dts/lib/adapters/WSAdapter.d.ts +30 -0
- package/dist/dts/lib/adapters/gapFixture.d.ts +71 -0
- package/dist/dts/lib/adapters/index.d.ts +15 -0
- package/dist/dts/lib/adapters/rollAlgorithms.d.ts +68 -0
- package/dist/dts/lib/advisory/AdvisoryPanel.d.ts +5 -0
- package/dist/dts/lib/alerts/AlertEvaluator.d.ts +5 -0
- package/dist/dts/lib/alerts/AlertManager.d.ts +123 -0
- package/dist/dts/lib/alerts/types.d.ts +58 -0
- package/dist/dts/lib/cache/cacheDebug.d.ts +3 -0
- package/dist/dts/lib/calendars/ExchangeCalendar.d.ts +23 -0
- package/dist/dts/lib/calendars/calendarRegistry.d.ts +10 -0
- package/dist/dts/lib/calendars/index.d.ts +3 -0
- package/dist/dts/lib/core/ChartPane.d.ts +8 -0
- package/dist/dts/lib/core/ChartSplitter.d.ts +70 -0
- package/dist/dts/lib/core/ChartTerminal.d.ts +12 -0
- package/dist/dts/lib/core/ErrorBoundary.d.ts +17 -0
- package/dist/dts/lib/core/IndicatorLegend.d.ts +47 -0
- package/dist/dts/lib/core/PaneHeader.d.ts +24 -0
- package/dist/dts/lib/core/PaneLabel.d.ts +8 -0
- package/dist/dts/lib/core/PaneSplitter.d.ts +9 -0
- package/dist/dts/lib/core/SeriesPicker.d.ts +10 -0
- package/dist/dts/lib/core/calculators/alignBarsByDate.d.ts +38 -0
- package/dist/dts/lib/core/calculators/buildIndicatorComputationPlan.d.ts +16 -0
- package/dist/dts/lib/core/calculators/calcCVDApprox.d.ts +6 -0
- package/dist/dts/lib/core/calculators/calcStrengthElder.d.ts +7 -0
- package/dist/dts/lib/core/calculators/calcWhaleApprox.d.ts +6 -0
- package/dist/dts/lib/core/calculators/computationHelpers.d.ts +12 -0
- package/dist/dts/lib/core/calculators/computeIndicatorComputationResult.d.ts +3 -0
- package/dist/dts/lib/core/calculators/computeMarketStructure.d.ts +8 -0
- package/dist/dts/lib/core/calculators/computeMomentum.d.ts +22 -0
- package/dist/dts/lib/core/calculators/computeMovingAverage.d.ts +15 -0
- package/dist/dts/lib/core/calculators/computeProfile.d.ts +9 -0
- package/dist/dts/lib/core/calculators/computeTrend.d.ts +10 -0
- package/dist/dts/lib/core/calculators/computeVolatility.d.ts +14 -0
- package/dist/dts/lib/core/calculators/computeVolumeFlow.d.ts +19 -0
- package/dist/dts/lib/core/calculators/enrichData.d.ts +7 -0
- package/dist/dts/lib/core/calculators/enrichDataWithCanonicalStore.d.ts +33 -0
- package/dist/dts/lib/core/calculators/exoticChartData.d.ts +140 -0
- package/dist/dts/lib/core/calculators/fixtures/mockData.d.ts +2 -0
- package/dist/dts/lib/core/calculators/indicatorComputation.d.ts +27 -0
- package/dist/dts/lib/core/calculators/indicatorComputationTypes.d.ts +249 -0
- package/dist/dts/lib/core/calculators/materializeIndicatorValues.d.ts +3 -0
- package/dist/dts/lib/core/calculators/normalizePrices.d.ts +36 -0
- package/dist/dts/lib/core/calculators/resolveCalculationOrder.d.ts +17 -0
- package/dist/dts/lib/core/calculators/types.d.ts +269 -0
- package/dist/dts/lib/core/canvas/ChartRenderContext.d.ts +14 -0
- package/dist/dts/lib/core/canvas/OverlayCanvas.d.ts +19 -0
- package/dist/dts/lib/core/context/ChartSyncContext.d.ts +21 -0
- package/dist/dts/lib/core/context/DataContext.d.ts +15 -0
- package/dist/dts/lib/core/context/PaneManagerContext.d.ts +10 -0
- package/dist/dts/lib/core/hooks/paneSizingHelpers.d.ts +13 -0
- package/dist/dts/lib/core/hooks/useCanvasResize.d.ts +8 -0
- package/dist/dts/lib/core/hooks/useChartTheme.d.ts +12 -0
- package/dist/dts/lib/core/hooks/useDynamicPanes.d.ts +155 -0
- package/dist/dts/lib/core/hooks/useIndicatorSets.d.ts +20 -0
- package/dist/dts/lib/core/hooks/usePaneManager.d.ts +39 -0
- package/dist/dts/lib/core/hooks/usePaneSizes.d.ts +52 -0
- package/dist/dts/lib/core/index.d.ts +41 -0
- package/dist/dts/lib/core/paneScaleSlotDomains.d.ts +3 -0
- package/dist/dts/lib/core/registry/SeriesRegistry.d.ts +22 -0
- package/dist/dts/lib/core/registry/filterPanesBySeriesTier.d.ts +43 -0
- package/dist/dts/lib/core/registry/marketStructure.d.ts +7 -0
- package/dist/dts/lib/core/registry/momentum.d.ts +20 -0
- package/dist/dts/lib/core/registry/movingAverage.d.ts +14 -0
- package/dist/dts/lib/core/registry/priceChartTypes.d.ts +16 -0
- package/dist/dts/lib/core/registry/profile.d.ts +8 -0
- package/dist/dts/lib/core/registry/registerAll.d.ts +1 -0
- package/dist/dts/lib/core/registry/registerPhaseOne.d.ts +3 -0
- package/dist/dts/lib/core/registry/registryCore.d.ts +77 -0
- package/dist/dts/lib/core/registry/trend.d.ts +11 -0
- package/dist/dts/lib/core/registry/volatility.d.ts +11 -0
- package/dist/dts/lib/core/registry/volumeFlow.d.ts +20 -0
- package/dist/dts/lib/core/replay/BarReplayController.d.ts +62 -0
- package/dist/dts/lib/core/replay/ReplayEventBus.d.ts +68 -0
- package/dist/dts/lib/core/replay/ReplayFillSimulator.d.ts +33 -0
- package/dist/dts/lib/core/replay/ReplayOrderBook.d.ts +24 -0
- package/dist/dts/lib/core/replay/ReplayPositionManager.d.ts +30 -0
- package/dist/dts/lib/core/replay/ReplaySessionAnalytics.d.ts +31 -0
- package/dist/dts/lib/core/replay/createReplayTradeMarkerPrimitives.d.ts +7 -0
- package/dist/dts/lib/core/replay/pnlUtils.d.ts +2 -0
- package/dist/dts/lib/core/replay/replayBrokerAdapters.d.ts +51 -0
- package/dist/dts/lib/core/replay/replayTradingTypes.d.ts +61 -0
- package/dist/dts/lib/core/scales/computeScales.d.ts +8 -0
- package/dist/dts/lib/core/seriesValueResolver.d.ts +27 -0
- package/dist/dts/lib/core/sets/builtins.d.ts +2 -0
- package/dist/dts/lib/core/sets/indicatorSetCodec.d.ts +15 -0
- package/dist/dts/lib/core/trading/AnalyticsEngine.d.ts +56 -0
- package/dist/dts/lib/core/trading/BrokerAPI.d.ts +40 -0
- package/dist/dts/lib/core/trading/ExecutionSimulator.d.ts +53 -0
- package/dist/dts/lib/core/trading/FillSettlement.d.ts +38 -0
- package/dist/dts/lib/core/trading/MarketDataPort.d.ts +41 -0
- package/dist/dts/lib/core/trading/MarketRules.d.ts +58 -0
- package/dist/dts/lib/core/trading/OrderManagementSystem.d.ts +57 -0
- package/dist/dts/lib/core/trading/PositionManager.d.ts +79 -0
- package/dist/dts/lib/core/trading/RiskEngine.d.ts +40 -0
- package/dist/dts/lib/core/trading/SettlementCalendar.d.ts +10 -0
- package/dist/dts/lib/core/trading/VirtualBrokerEngine.d.ts +92 -0
- package/dist/dts/lib/core/trading/orderMargin.d.ts +3 -0
- package/dist/dts/lib/core/trading/storage/InMemoryStorageAdapter.d.ts +10 -0
- package/dist/dts/lib/core/trading/storage/TradingStorage.d.ts +34 -0
- package/dist/dts/lib/core/trading/types.d.ts +99 -0
- package/dist/dts/lib/core/types/chart.d.ts +21 -0
- package/dist/dts/lib/core/types/indicator-catalog.d.ts +38 -0
- package/dist/dts/lib/core/types/indicator-set.d.ts +19 -0
- package/dist/dts/lib/core/types/pane-descriptor.d.ts +46 -0
- package/dist/dts/lib/core/types/seriesComponents.d.ts +15 -0
- package/dist/dts/lib/credentials/credentialStore.d.ts +93 -0
- package/dist/dts/lib/helper/SaveChartAsImage.d.ts +90 -0
- package/dist/dts/lib/indicator/defaultOptionsForAppearance.d.ts +105 -0
- package/dist/dts/lib/indicators/builtin/MTFWrapper.d.ts +3 -0
- package/dist/dts/lib/indicators/builtin/VolumeProfileWorker.d.ts +19 -0
- package/dist/dts/lib/indicators/builtin/ac.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/alligator.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/anchoredVwap.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/ao.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/bbi.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/bias.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/bollinger.d.ts +9 -0
- package/dist/dts/lib/indicators/builtin/brar.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cci.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/chaikinOscillator.d.ts +14 -0
- package/dist/dts/lib/indicators/builtin/chaikinVol.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/ci.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cmf.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cr.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cvd.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/deltaProfile.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/dema.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/dma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/dmi.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/donchian.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/ema.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/emv.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/footprint.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/fractals.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/gator.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/hma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/hv.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/ichimoku.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/kdj.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/keltner.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/ma.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/maRibbon.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/macd.d.ts +9 -0
- package/dist/dts/lib/indicators/builtin/marketProfile.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/mfi.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/mtm.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/obv.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/pivotHighLow.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/pivotStandard.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/psy.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/pvt.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/roc.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/rsi.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/sar.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/sma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/smfi.d.ts +8 -0
- package/dist/dts/lib/indicators/builtin/stdDev.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/strengthRelative.d.ts +7 -0
- package/dist/dts/lib/indicators/builtin/supertrend.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/tema.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/trix.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/volOsc.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/volume.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/volumeProfile.d.ts +8 -0
- package/dist/dts/lib/indicators/builtin/vr.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/vwap.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/vwma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/wma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/wr.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/wyckoffWave.d.ts +15 -0
- package/dist/dts/lib/indicators/index.d.ts +63 -0
- package/dist/dts/lib/indicators/indicatorValueShapes.d.ts +15 -0
- package/dist/dts/lib/indicators/outputKeys.d.ts +50 -0
- package/dist/dts/lib/indicators/overlays/CVDIndicator.d.ts +26 -0
- package/dist/dts/lib/indicators/overlays/DarkFlowBadge.d.ts +19 -0
- package/dist/dts/lib/indicators/overlays/ExternalCVDOverlay.d.ts +15 -0
- package/dist/dts/lib/indicators/overlays/WhaleBubbleOverlay.d.ts +14 -0
- package/dist/dts/lib/indicators/overlays/WhaleMarketBubbleOverlay.d.ts +27 -0
- package/dist/dts/lib/indicators/overlays/whaleDetector.d.ts +66 -0
- package/dist/dts/lib/indicators/registry.d.ts +6 -0
- package/dist/dts/lib/indicators/types.d.ts +5 -0
- package/dist/dts/lib/indicators/utils.d.ts +259 -0
- package/dist/dts/lib/pinescript/PineCompiler.d.ts +34 -0
- package/dist/dts/lib/pinescript/ast.d.ts +73 -0
- package/dist/dts/lib/pinescript/compile.d.ts +40 -0
- package/dist/dts/lib/pinescript/grammar.d.ts +12 -0
- package/dist/dts/lib/pinescript/pine.worker.d.ts +1 -0
- package/dist/dts/lib/pinescript/pineBlocks.d.ts +54 -0
- package/dist/dts/lib/pinescript/pineBuiltins.d.ts +47 -0
- package/dist/dts/lib/pinescript/pineEnv.d.ts +46 -0
- package/dist/dts/lib/pinescript/pineMath.d.ts +13 -0
- package/dist/dts/lib/pinescript/pineParse.d.ts +25 -0
- package/dist/dts/lib/pinescript/pineStrings.d.ts +50 -0
- package/dist/dts/lib/pinescript/runtime.d.ts +5 -0
- package/dist/dts/lib/pinescript/scriptRegistry.d.ts +40 -0
- package/dist/dts/lib/pinescript/series-value.d.ts +64 -0
- package/dist/dts/lib/pinescript/vnscript-completion.d.ts +1 -0
- package/dist/dts/lib/pinescript/vnscript-grammar.d.ts +19 -0
- package/dist/dts/lib/scale/discontinuousTimeScaleProvider.d.ts +3 -0
- package/dist/dts/lib/scale/financeDiscontinuousScale.d.ts +15 -0
- package/dist/dts/lib/scale/index.d.ts +1 -0
- package/dist/dts/lib/scale/levels.d.ts +12 -0
- package/dist/dts/lib/series/AlternatingFillAreaSeries.d.ts +13 -0
- package/dist/dts/lib/series/AreaOnlySeries.d.ts +10 -0
- package/dist/dts/lib/series/AreaSeries.d.ts +30 -0
- package/dist/dts/lib/series/BarSeries.d.ts +40 -0
- package/dist/dts/lib/series/BollingerSeries.d.ts +11 -0
- package/dist/dts/lib/series/CandlestickSeries.d.ts +56 -0
- package/dist/dts/lib/series/CircleMarker.d.ts +28 -0
- package/dist/dts/lib/series/ElderRaySeries.d.ts +14 -0
- package/dist/dts/lib/series/FootprintSeries.d.ts +21 -0
- package/dist/dts/lib/series/GroupedBarSeries.d.ts +9 -0
- package/dist/dts/lib/series/HTFOverlaySeries.d.ts +32 -0
- package/dist/dts/lib/series/HistogramSeries.d.ts +51 -0
- package/dist/dts/lib/series/KagiSeries.d.ts +9 -0
- package/dist/dts/lib/series/LineBreakSeries.d.ts +28 -0
- package/dist/dts/lib/series/LineSeries.d.ts +54 -0
- package/dist/dts/lib/series/MACDSeries.d.ts +28 -0
- package/dist/dts/lib/series/MarketProfileSeries.d.ts +18 -0
- package/dist/dts/lib/series/OHLCSeries.d.ts +9 -0
- package/dist/dts/lib/series/OverlayBarSeries.d.ts +9 -0
- package/dist/dts/lib/series/PointAndFigureSeries.d.ts +45 -0
- package/dist/dts/lib/series/RSISeries.d.ts +38 -0
- package/dist/dts/lib/series/RenkoSeries.d.ts +9 -0
- package/dist/dts/lib/series/SARSeries.d.ts +10 -0
- package/dist/dts/lib/series/SVGComponent.d.ts +5 -0
- package/dist/dts/lib/series/ScatterSeries.d.ts +9 -0
- package/dist/dts/lib/series/SquareMarker.d.ts +28 -0
- package/dist/dts/lib/series/StackedBarSeries.d.ts +19 -0
- package/dist/dts/lib/series/StochasticSeries.d.ts +9 -0
- package/dist/dts/lib/series/StraightLine.d.ts +18 -0
- package/dist/dts/lib/series/TriangleMarker.d.ts +30 -0
- package/dist/dts/lib/series/VolumeProfileSeries.d.ts +9 -0
- package/dist/dts/lib/series/index.d.ts +28 -0
- package/dist/dts/lib/strategy/BrokerSimulator.d.ts +11 -0
- package/dist/dts/lib/strategy/types.d.ts +35 -0
- package/dist/dts/lib/tape/TapePanel.d.ts +5 -0
- package/dist/dts/lib/types/adapter.d.ts +1 -0
- package/dist/dts/lib/types/index.d.ts +5 -0
- package/dist/dts/lib/types/indicator.d.ts +11 -0
- package/dist/dts/lib/types/ohlcv.d.ts +1 -0
- package/dist/dts/lib/types/pane.d.ts +23 -0
- package/dist/dts/lib/types/runtime.d.ts +11 -0
- package/dist/dts/lib/types/vninvest.d.ts +320 -0
- package/dist/dts/lib/types.d.ts +45 -0
- package/dist/dts/lib/utils/ChartDataUtil.d.ts +26 -0
- package/dist/dts/lib/utils/PureComponent.d.ts +5 -0
- package/dist/dts/lib/utils/accumulatingWindow.d.ts +1 -0
- package/dist/dts/lib/utils/axisPriceFormat.d.ts +6 -0
- package/dist/dts/lib/utils/barWidth.d.ts +14 -0
- package/dist/dts/lib/utils/identity.d.ts +1 -0
- package/dist/dts/lib/utils/index.d.ts +70 -0
- package/dist/dts/lib/utils/logger.d.ts +28 -0
- package/dist/dts/lib/utils/mappedSlidingWindow.d.ts +1 -0
- package/dist/dts/lib/utils/merge.d.ts +6 -0
- package/dist/dts/lib/utils/noop.d.ts +1 -0
- package/dist/dts/lib/utils/rebind.d.ts +1 -0
- package/dist/dts/lib/utils/shallowEqual.d.ts +1 -0
- package/dist/dts/lib/utils/slidingWindow.d.ts +1 -0
- package/dist/dts/lib/utils/storage.d.ts +32 -0
- package/dist/dts/lib/utils/strokeDasharray.d.ts +3 -0
- package/dist/dts/lib/utils/timezoneFormatter.d.ts +14 -0
- package/dist/dts/lib/utils/zipper.d.ts +4 -0
- package/dist/dts/public-api.d.ts +31 -0
- package/dist/dts/widget/BackfillWorkerFlags.d.ts +12 -0
- package/dist/dts/widget/CanaryRollbackHelper.d.ts +95 -0
- package/dist/dts/widget/CanaryRolloutConfig.d.ts +100 -0
- package/dist/dts/widget/DrawingPriceLabelsOverlay.d.ts +20 -0
- package/dist/dts/widget/ForkDrawingsOverlay.d.ts +16 -0
- package/dist/dts/widget/MeasurementOverlay.d.ts +24 -0
- package/dist/dts/widget/VNInvestCharts.d.ts +5 -0
- package/dist/dts/widget/VNInvestChartsProps.d.ts +302 -0
- package/dist/dts/widget/VNInvestMultiCharts.d.ts +8 -0
- package/dist/dts/widget/VNInvestMultiCharts.types.d.ts +130 -0
- package/dist/dts/widget/WidgetEmptyState.d.ts +11 -0
- package/dist/dts/widget/WidgetErrorBoundary.d.ts +26 -0
- package/dist/dts/widget/adapters/ContinuousFuturesStockDataAdapter.d.ts +18 -0
- package/dist/dts/widget/adapters/DataProviderAdapterWrapper.d.ts +14 -0
- package/dist/dts/widget/adapters/MultiSourceDataAdapter.d.ts +24 -0
- package/dist/dts/widget/adapters/VNInvestClient.d.ts +161 -0
- package/dist/dts/widget/adapters/VNInvestDataAdapter.d.ts +77 -0
- package/dist/dts/widget/adapters/VNInvestWebSocketClient.d.ts +79 -0
- package/dist/dts/widget/adapters/barsPagingPolicy.d.ts +18 -0
- package/dist/dts/widget/adapters/corporateEvents.d.ts +13 -0
- package/dist/dts/widget/adapters/index.d.ts +20 -0
- package/dist/dts/widget/adapters/nativeShapes.d.ts +32 -0
- package/dist/dts/widget/adapters/watchlistRealtimeSync.d.ts +16 -0
- package/dist/dts/widget/alerts/DrawingAlertsHost.d.ts +18 -0
- package/dist/dts/widget/alerts/useDrawingAlerts.d.ts +37 -0
- package/dist/dts/widget/canaryBarFiltering.d.ts +35 -0
- package/dist/dts/widget/capabilities/CapabilityResolver.d.ts +71 -0
- package/dist/dts/widget/capabilities/capabilityProbe.d.ts +28 -0
- package/dist/dts/widget/capabilities/useTierGatedFeatures.d.ts +48 -0
- package/dist/dts/widget/components/BottomPanelHost.d.ts +80 -0
- package/dist/dts/widget/components/BottomPanelSplitter.d.ts +15 -0
- package/dist/dts/widget/components/CapabilityGate.d.ts +65 -0
- package/dist/dts/widget/components/ChartDiagOverlay.d.ts +31 -0
- package/dist/dts/widget/components/ConfirmDialog.d.ts +12 -0
- package/dist/dts/widget/components/DowngradeBanner.d.ts +9 -0
- package/dist/dts/widget/components/ForkPaneSeparators.d.ts +11 -0
- package/dist/dts/widget/components/ForkPaneTooltips.d.ts +23 -0
- package/dist/dts/widget/components/ForkXAxisOverlay.d.ts +11 -0
- package/dist/dts/widget/components/ForkYAxisCrosshairLabels.d.ts +9 -0
- package/dist/dts/widget/components/LayoutDesigner.d.ts +26 -0
- package/dist/dts/widget/components/PremiumFeatureGate.d.ts +10 -0
- package/dist/dts/widget/components/ShortcutHelpModal.d.ts +44 -0
- package/dist/dts/widget/components/SystemMenu.d.ts +66 -0
- package/dist/dts/widget/components/Toast.d.ts +20 -0
- package/dist/dts/widget/components/canvas/BarCountdownBadge.d.ts +8 -0
- package/dist/dts/widget/components/canvas/ChartA11ySummary.d.ts +40 -0
- package/dist/dts/widget/components/canvas/ChartStatusLine.d.ts +39 -0
- package/dist/dts/widget/components/canvas/PricePaneHeader.d.ts +24 -0
- package/dist/dts/widget/components/canvas/PriceScaleMenu.d.ts +27 -0
- package/dist/dts/widget/components/canvas/TimeAxisScrollbar.d.ts +18 -0
- package/dist/dts/widget/components/common/Icons.d.ts +67 -0
- package/dist/dts/widget/components/dock/DataWindow.d.ts +7 -0
- package/dist/dts/widget/components/dock/DockUpgradeNudge.d.ts +10 -0
- package/dist/dts/widget/components/dock/RightSidebarDockHost.d.ts +57 -0
- package/dist/dts/widget/components/dock/WatchlistPanel.d.ts +7 -0
- package/dist/dts/widget/components/dock/WorkspaceRightDockSlot.d.ts +46 -0
- package/dist/dts/widget/components/dock/dockAccess.d.ts +20 -0
- package/dist/dts/widget/components/dock/drawingDockContentBuilders.d.ts +29 -0
- package/dist/dts/widget/components/drawing/DrawingDock.d.ts +47 -0
- package/dist/dts/widget/components/drawing/DrawingInspector.d.ts +94 -0
- package/dist/dts/widget/components/drawing/DrawingListPanel.d.ts +62 -0
- package/dist/dts/widget/components/drawing/DrawingSemanticPointLegend.d.ts +14 -0
- package/dist/dts/widget/components/drawing/FloatingDrawingInspector.d.ts +18 -0
- package/dist/dts/widget/components/drawing/IconPickerPanel.d.ts +5 -0
- package/dist/dts/widget/components/drawing/InlineTextEditor.d.ts +20 -0
- package/dist/dts/widget/components/drawing/PatternScanPanel.d.ts +27 -0
- package/dist/dts/widget/components/drawing/TemplateManagerPanel.d.ts +18 -0
- package/dist/dts/widget/components/events/CorporateEventsOverlay.d.ts +23 -0
- package/dist/dts/widget/components/events/EventMarkerIcon.d.ts +6 -0
- package/dist/dts/widget/components/footer/ChartFooter.d.ts +26 -0
- package/dist/dts/widget/components/footer/MultiChartsFooter.d.ts +37 -0
- package/dist/dts/widget/components/footer/TimeframeFooter.d.ts +25 -0
- package/dist/dts/widget/components/footer/useBarCountdown.d.ts +5 -0
- package/dist/dts/widget/components/header/OHLCHeader.d.ts +72 -0
- package/dist/dts/widget/components/layout/DrawingConflictNotice.d.ts +4 -0
- package/dist/dts/widget/components/layout/GridContainer.d.ts +70 -0
- package/dist/dts/widget/components/layout/GridSlotErrorBoundary.d.ts +17 -0
- package/dist/dts/widget/components/layout/Splitter.d.ts +23 -0
- package/dist/dts/widget/components/layout/gridSplitterMath.d.ts +40 -0
- package/dist/dts/widget/components/layout/useGridSplitterDrag.d.ts +18 -0
- package/dist/dts/widget/components/mobile/MobileChartCarousel.d.ts +11 -0
- package/dist/dts/widget/components/mobile/MobileToolbar.d.ts +29 -0
- package/dist/dts/widget/components/overlays/AdvisoryPanel.d.ts +25 -0
- package/dist/dts/widget/components/overlays/TapePanel.d.ts +25 -0
- package/dist/dts/widget/components/overlays/WhalePanel.d.ts +5 -0
- package/dist/dts/widget/components/panels/AdvisoryPanel.d.ts +25 -0
- package/dist/dts/widget/components/panels/PineEditorPanel.d.ts +18 -0
- package/dist/dts/widget/components/panels/StrategyTesterPanel.d.ts +7 -0
- package/dist/dts/widget/components/panels/TapePanel.d.ts +17 -0
- package/dist/dts/widget/components/panels/index.d.ts +8 -0
- package/dist/dts/widget/components/replay/FloatingReplayToolbar.d.ts +24 -0
- package/dist/dts/widget/components/replay/ReplayCutOverlay.d.ts +8 -0
- package/dist/dts/widget/components/search/SymbolCompareModal.d.ts +24 -0
- package/dist/dts/widget/components/search/SymbolSearchModal.d.ts +12 -0
- package/dist/dts/widget/components/search/VNSymbolSearch.d.ts +83 -0
- package/dist/dts/widget/components/settings/AlertsModal.d.ts +74 -0
- package/dist/dts/widget/components/settings/SettingsContext.d.ts +58 -0
- package/dist/dts/widget/components/settings/SettingsModal.d.ts +78 -0
- package/dist/dts/widget/components/settings/SettingsRangeSlider.d.ts +17 -0
- package/dist/dts/widget/components/settings/SnapshotPreviewModal.d.ts +16 -0
- package/dist/dts/widget/components/settings/WorkspaceSettingsContext.d.ts +27 -0
- package/dist/dts/widget/components/settings/helpers/seriesFormatters.d.ts +11 -0
- package/dist/dts/widget/components/settings/model/appearancePayload.d.ts +31 -0
- package/dist/dts/widget/components/settings/model/chartSettingsSchema.d.ts +100 -0
- package/dist/dts/widget/components/settings/model/defaultSettings.d.ts +5 -0
- package/dist/dts/widget/components/settings/model/indicatorShare.d.ts +29 -0
- package/dist/dts/widget/components/settings/storageKeys.d.ts +29 -0
- package/dist/dts/widget/components/settings/tabs/AppearanceSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/IndicatorParamsForm.d.ts +12 -0
- package/dist/dts/widget/components/settings/tabs/IndicatorsSettingsTab.d.ts +34 -0
- package/dist/dts/widget/components/settings/tabs/LicensingSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/PanesLayoutSettingsTab.d.ts +11 -0
- package/dist/dts/widget/components/settings/tabs/ResetSettingsTab.d.ts +8 -0
- package/dist/dts/widget/components/settings/tabs/ScalesSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/StatusLineSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/SymbolSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/ThemePaletteSettingsTab.d.ts +9 -0
- package/dist/dts/widget/components/settings/tabs/TradingEventsSettingsTab.d.ts +8 -0
- package/dist/dts/widget/components/toolbar/DrawingToolIcon.d.ts +10 -0
- package/dist/dts/widget/components/toolbar/DrawingToolbar.d.ts +33 -0
- package/dist/dts/widget/components/toolbar/FloatingChartBar.d.ts +20 -0
- package/dist/dts/widget/components/toolbar/FloatingFavoritesBar.d.ts +18 -0
- package/dist/dts/widget/components/toolbar/MultiChartTopbar.d.ts +47 -0
- package/dist/dts/widget/components/toolbar/UnifiedDrawingToolbar.d.ts +28 -0
- package/dist/dts/widget/components/trading/PaperTradePanel.d.ts +41 -0
- package/dist/dts/widget/components/workspace/WorkspaceToolbar.d.ts +25 -0
- package/dist/dts/widget/config/toolGroups.d.ts +11 -0
- package/dist/dts/widget/config/toolShortcuts.d.ts +27 -0
- package/dist/dts/widget/constants/comparison.d.ts +1 -0
- package/dist/dts/widget/constants/symbolSearch.d.ts +14 -0
- package/dist/dts/widget/constants/vn30.d.ts +7 -0
- package/dist/dts/widget/context/DataProviderContext.d.ts +7 -0
- package/dist/dts/widget/context/HoverEmitter.d.ts +50 -0
- package/dist/dts/widget/context/SyncContextShare.d.ts +11 -0
- package/dist/dts/widget/context/VNInvestChartsConfigContext.d.ts +24 -0
- package/dist/dts/widget/context/VNInvestChartsContext.d.ts +70 -0
- package/dist/dts/widget/context/VNInvestChartsStateContext.d.ts +50 -0
- package/dist/dts/widget/context/WidgetI18nContext.d.ts +25 -0
- package/dist/dts/widget/context/WorkspaceLiveTradingContext.d.ts +30 -0
- package/dist/dts/widget/context/WorkspacePaperVisibilityContext.d.ts +23 -0
- package/dist/dts/widget/context/WorkspaceReplayTradingContext.d.ts +36 -0
- package/dist/dts/widget/contexts/SaaSFeatureContext.d.ts +23 -0
- package/dist/dts/widget/data/DataEnvelope.d.ts +100 -0
- package/dist/dts/widget/drawingPriceLabelInputs.d.ts +3 -0
- package/dist/dts/widget/export/chartCsv.d.ts +59 -0
- package/dist/dts/widget/forkAnchorReconciliation.d.ts +6 -0
- package/dist/dts/widget/forkInteractionHelpers.d.ts +69 -0
- package/dist/dts/widget/grid/DeviceProfiles.d.ts +49 -0
- package/dist/dts/widget/grid/GridChartRegistry.d.ts +9 -0
- package/dist/dts/widget/grid/MemoryBudgetManager.d.ts +63 -0
- package/dist/dts/widget/grid/PerformanceMonitor.d.ts +70 -0
- package/dist/dts/widget/grid/customPresets.d.ts +42 -0
- package/dist/dts/widget/grid/presets.d.ts +18 -0
- package/dist/dts/widget/grid/types.d.ts +39 -0
- package/dist/dts/widget/history/BackfillDedupContext.d.ts +63 -0
- package/dist/dts/widget/history/RequestCoordinator.d.ts +59 -0
- package/dist/dts/widget/history/SharedBarStoreContext.d.ts +22 -0
- package/dist/dts/widget/history/cache/IndexedDBCacheMatrix.d.ts +16 -0
- package/dist/dts/widget/history/cache/LocalCacheMatrix.d.ts +86 -0
- package/dist/dts/widget/history/cache/index.d.ts +3 -0
- package/dist/dts/widget/history/chunkStore.d.ts +77 -0
- package/dist/dts/widget/history/externalBarsNormalization.d.ts +9 -0
- package/dist/dts/widget/history/externalBarsNormalization.worker.d.ts +1 -0
- package/dist/dts/widget/history/externalBarsNormalizationAsync.d.ts +25 -0
- package/dist/dts/widget/history/historyDataUtils.d.ts +82 -0
- package/dist/dts/widget/history/historyWindowPlanner.d.ts +89 -0
- package/dist/dts/widget/history/inflightController.d.ts +15 -0
- package/dist/dts/widget/history/requestCoalescing.d.ts +10 -0
- package/dist/dts/widget/history/sessionGuards.d.ts +3 -0
- package/dist/dts/widget/history/singleWriterLane.d.ts +4 -0
- package/dist/dts/widget/history/useExternalBarsNormalization.d.ts +5 -0
- package/dist/dts/widget/hooks/ShortcutManager.d.ts +65 -0
- package/dist/dts/widget/hooks/overlays/PaneHeaderWrapper.d.ts +11 -0
- package/dist/dts/widget/hooks/overlays/overlayHelpers.d.ts +60 -0
- package/dist/dts/widget/hooks/overlays/useDrawingDockNode.d.ts +15 -0
- package/dist/dts/widget/hooks/overlays/useLegendChrome.d.ts +36 -0
- package/dist/dts/widget/hooks/overlays/useMultiSelectActions.d.ts +22 -0
- package/dist/dts/widget/hooks/overlays/useSidebarResize.d.ts +13 -0
- package/dist/dts/widget/hooks/resolveEntitlement.d.ts +73 -0
- package/dist/dts/widget/hooks/useBottomPanelBehavior.d.ts +38 -0
- package/dist/dts/widget/hooks/useBottomPanelHeight.d.ts +39 -0
- package/dist/dts/widget/hooks/useCanvasTheme.d.ts +24 -0
- package/dist/dts/widget/hooks/useChartImperativeHandle.d.ts +57 -0
- package/dist/dts/widget/hooks/useClockAdapter.d.ts +11 -0
- package/dist/dts/widget/hooks/useComparisonState.d.ts +29 -0
- package/dist/dts/widget/hooks/useDialogFocus.d.ts +25 -0
- package/dist/dts/widget/hooks/useDrawingToolShortcuts.d.ts +16 -0
- package/dist/dts/widget/hooks/useFeatureGate.d.ts +28 -0
- package/dist/dts/widget/hooks/useFloatingChartBar.d.ts +33 -0
- package/dist/dts/widget/hooks/useForkRuntime.d.ts +155 -0
- package/dist/dts/widget/hooks/useIndicatorsShareApplier.d.ts +1 -0
- package/dist/dts/widget/hooks/useIntersectionObserver.d.ts +49 -0
- package/dist/dts/widget/hooks/useKeyboardAdapter.d.ts +9 -0
- package/dist/dts/widget/hooks/useLayoutHistory.d.ts +8 -0
- package/dist/dts/widget/hooks/useLicenseDiagnostics.d.ts +15 -0
- package/dist/dts/widget/hooks/useMultiChartReplaySync.d.ts +31 -0
- package/dist/dts/widget/hooks/useMultiWorkspacePersistence.d.ts +49 -0
- package/dist/dts/widget/hooks/usePaperTradeConfig.d.ts +27 -0
- package/dist/dts/widget/hooks/usePaperTradeInteraction.d.ts +27 -0
- package/dist/dts/widget/hooks/usePatTierAuthentication.d.ts +42 -0
- package/dist/dts/widget/hooks/usePineScriptRestore.d.ts +23 -0
- package/dist/dts/widget/hooks/usePortalAdapter.d.ts +8 -0
- package/dist/dts/widget/hooks/useRecentSymbols.d.ts +3 -0
- package/dist/dts/widget/hooks/useReplayState.d.ts +28 -0
- package/dist/dts/widget/hooks/useReplayTrading.d.ts +26 -0
- package/dist/dts/widget/hooks/useResizeAdapter.d.ts +13 -0
- package/dist/dts/widget/hooks/useScaleOverlays.d.ts +62 -0
- package/dist/dts/widget/hooks/useScriptPersistence.d.ts +72 -0
- package/dist/dts/widget/hooks/useSymbolSearch.d.ts +30 -0
- package/dist/dts/widget/hooks/useViewportBreakpoint.d.ts +15 -0
- package/dist/dts/widget/hooks/useWidgetCoordinateBridge.d.ts +70 -0
- package/dist/dts/widget/hooks/useWidgetData.d.ts +138 -0
- package/dist/dts/widget/hooks/useWidgetDataBackfill.d.ts +67 -0
- package/dist/dts/widget/hooks/useWidgetDataEnrichment.d.ts +32 -0
- package/dist/dts/widget/hooks/useWidgetDrawings.d.ts +38 -0
- package/dist/dts/widget/hooks/useWidgetForkInteraction.d.ts +68 -0
- package/dist/dts/widget/hooks/useWidgetInteractionActions.d.ts +36 -0
- package/dist/dts/widget/hooks/useWidgetOverlays.d.ts +190 -0
- package/dist/dts/widget/hooks/useWidgetRuntime.d.ts +20 -0
- package/dist/dts/widget/hooks/useWidgetSettings.d.ts +244 -0
- package/dist/dts/widget/hooks/useWidgetWorkspaceIO.d.ts +24 -0
- package/dist/dts/widget/hooks/useWorkspaceDockPanels.d.ts +11 -0
- package/dist/dts/widget/hooks/useWorkspaceLiveTrading.d.ts +28 -0
- package/dist/dts/widget/hooks/useWorkspaceReplayTrading.d.ts +22 -0
- package/dist/dts/widget/i18n/a11y.messages.en.d.ts +8 -0
- package/dist/dts/widget/i18n/a11y.messages.vi.d.ts +3 -0
- package/dist/dts/widget/i18n/capability.messages.en.d.ts +7 -0
- package/dist/dts/widget/i18n/capability.messages.vi.d.ts +3 -0
- package/dist/dts/widget/i18n/dock.messages.en.d.ts +2 -0
- package/dist/dts/widget/i18n/dock.messages.vi.d.ts +2 -0
- package/dist/dts/widget/i18n/messages.en.d.ts +2 -0
- package/dist/dts/widget/i18n/messages.licensing.d.ts +48 -0
- package/dist/dts/widget/i18n/messages.vi.d.ts +2 -0
- package/dist/dts/widget/i18n/trading.messages.en.d.ts +2 -0
- package/dist/dts/widget/i18n/trading.messages.vi.d.ts +2 -0
- package/dist/dts/widget/i18n/types.d.ts +3 -0
- package/dist/dts/widget/iframe/builtInAdapters.d.ts +63 -0
- package/dist/dts/widget/iframe/host-entry.d.ts +11 -0
- package/dist/dts/widget/iframe/hostSDK.d.ts +151 -0
- package/dist/dts/widget/iframe/iframeBridge.d.ts +165 -0
- package/dist/dts/widget/iframe/iframeEntry.d.ts +52 -0
- package/dist/dts/widget/iframe/iframeFrame.d.ts +15 -0
- package/dist/dts/widget/iframe/iframeQuotes.d.ts +20 -0
- package/dist/dts/widget/iframe/messageProtocol.d.ts +545 -0
- package/dist/dts/widget/iframe/quoteHub.d.ts +20 -0
- package/dist/dts/widget/iframe/useVNInvestChartsHost.d.ts +8 -0
- package/dist/dts/widget/iife-entry.d.ts +61 -0
- package/dist/dts/widget/iifeWidgetInstance.d.ts +60 -0
- package/dist/dts/widget/index.d.ts +56 -0
- package/dist/dts/widget/multiChartDefaults.d.ts +18 -0
- package/dist/dts/widget/paneInteractionUtils.d.ts +25 -0
- package/dist/dts/widget/patterns/autoPatternScan.d.ts +77 -0
- package/dist/dts/widget/patterns/patternDrawingFactory.d.ts +87 -0
- package/dist/dts/widget/plugin/ProPluginRegistry.d.ts +40 -0
- package/dist/dts/widget/runtime/ChartScaleAdapter.d.ts +73 -0
- package/dist/dts/widget/runtime/ChartSerializer.d.ts +12 -0
- package/dist/dts/widget/runtime/ForkRuntimeAdapter.d.ts +19 -0
- package/dist/dts/widget/runtime/IRuntimeEngine.d.ts +40 -0
- package/dist/dts/widget/runtime/WorkspaceSerializer.d.ts +31 -0
- package/dist/dts/widget/runtimePolicy.d.ts +36 -0
- package/dist/dts/widget/styles/injectStyles.d.ts +9 -0
- package/dist/dts/widget/theme/ThemeConfig.d.ts +21 -0
- package/dist/dts/widget/theme/applyTheme.d.ts +3 -0
- package/dist/dts/widget/trading/chart/DraggableOrderHandles.d.ts +15 -0
- package/dist/dts/widget/trading/chart/InteractivePositionOverlay.d.ts +19 -0
- package/dist/dts/widget/trading/chart/PendingOrderOverlay.d.ts +11 -0
- package/dist/dts/widget/trading/chart/QuickTradingHeader.d.ts +20 -0
- package/dist/dts/widget/trading/chart/TradingChartSurface.d.ts +8 -0
- package/dist/dts/widget/trading/chart/TradingOverlaysHost.d.ts +28 -0
- package/dist/dts/widget/trading/chart/priceTicks.d.ts +1 -0
- package/dist/dts/widget/trading/chart/useFloatingDrag.d.ts +40 -0
- package/dist/dts/widget/trading/chart/useTradingHotkeys.d.ts +21 -0
- package/dist/dts/widget/trading/config/paperRuntimeConfig.d.ts +53 -0
- package/dist/dts/widget/trading/context/PaperPanelRegistry.d.ts +45 -0
- package/dist/dts/widget/trading/context/TradingContext.d.ts +80 -0
- package/dist/dts/widget/trading/context/WorkspaceTradingSync.d.ts +24 -0
- package/dist/dts/widget/trading/hooks/usePaperRuntimeConfig.d.ts +36 -0
- package/dist/dts/widget/trading/index.d.ts +5 -0
- package/dist/dts/widget/trading/panel/AccountSummaryTab.d.ts +7 -0
- package/dist/dts/widget/trading/panel/ActiveChartPaperPanel.d.ts +26 -0
- package/dist/dts/widget/trading/panel/ConnectedTradingPanel.d.ts +3 -0
- package/dist/dts/widget/trading/panel/HistoryTab.d.ts +5 -0
- package/dist/dts/widget/trading/panel/MarketFallbackBanner.d.ts +4 -0
- package/dist/dts/widget/trading/panel/OrdersTab.d.ts +8 -0
- package/dist/dts/widget/trading/panel/PaperCapitalDialog.d.ts +8 -0
- package/dist/dts/widget/trading/panel/PaperSettingsModal.d.ts +17 -0
- package/dist/dts/widget/trading/panel/PositionsTab.d.ts +15 -0
- package/dist/dts/widget/trading/panel/TradeHistoryTab.d.ts +5 -0
- package/dist/dts/widget/trading/panel/TradingBottomPanel.d.ts +36 -0
- package/dist/dts/widget/trading/panel/TradingLogTab.d.ts +8 -0
- package/dist/dts/widget/trading/panel/TradingPanelHeader.d.ts +17 -0
- package/dist/dts/widget/trading/panel/csvExport.d.ts +18 -0
- package/dist/dts/widget/trading/ticket/ConnectedTradingDockPanel.d.ts +5 -0
- package/dist/dts/widget/trading/ticket/OrderTicketForm.d.ts +31 -0
- package/dist/dts/widget/trading/ticket/OrderTicketModal.d.ts +29 -0
- package/dist/dts/widget/trading/ticket/RegistryTradingDockPanel.d.ts +9 -0
- package/dist/dts/widget/trading/ticket/RiskCalculatorView.d.ts +9 -0
- package/dist/dts/widget/trading/ticket/TradingDockPanel.d.ts +36 -0
- package/dist/dts/widget/trading/ticket/orderTicketModel.d.ts +49 -0
- package/dist/dts/widget/trading/visibility/paperVisibility.d.ts +38 -0
- package/dist/dts/widget/types/dataProvider.d.ts +8 -0
- package/dist/dts/widget/types/fullChartHandle.d.ts +25 -0
- package/dist/dts/widget/types/saas.d.ts +83 -0
- package/dist/dts/widget/types/symbolSearch.d.ts +9 -0
- package/dist/dts/widget/types/watchlist.d.ts +26 -0
- package/dist/dts/widget/utils/axisHit.d.ts +16 -0
- package/dist/dts/widget/utils/chartRange.d.ts +12 -0
- package/dist/dts/widget/utils/chartTypeOptions.d.ts +38 -0
- package/dist/dts/widget/utils/clickOutside.d.ts +1 -0
- package/dist/dts/widget/utils/coordinateBridge.d.ts +31 -0
- package/dist/dts/widget/utils/crosshairSync.d.ts +50 -0
- package/dist/dts/widget/utils/drawingSync.d.ts +198 -0
- package/dist/dts/widget/utils/enrichedHash.d.ts +15 -0
- package/dist/dts/widget/utils/headerSync.d.ts +12 -0
- package/dist/dts/widget/utils/numberFormat.d.ts +13 -0
- package/dist/dts/widget/utils/paperTradeAdapters.d.ts +11 -0
- package/dist/dts/widget/utils/pineSeriesData.d.ts +71 -0
- package/dist/dts/widget/utils/rangeSync.d.ts +29 -0
- package/dist/dts/widget/utils/telemetry.d.ts +19 -0
- package/dist/dts/widget/utils/widgetEquality.d.ts +57 -0
- package/dist/dts/widget/utils/widgetErrors.d.ts +29 -0
- package/dist/dts/widget/utils/widgetHelpers.d.ts +395 -0
- package/dist/dts/widget/utils/xAxisTickFormatter.d.ts +33 -0
- package/dist/dts/widget/visibleRangeBridge.d.ts +28 -0
- package/dist/dts/widget/visibleRangeDiagnostics.d.ts +10 -0
- package/dist/dts/widget/visibleRangePolicies.d.ts +6 -0
- package/dist/dts/widget/workspace/WorkspaceManager.d.ts +23 -0
- package/dist/dts/widget/workspace/WorkspaceStore.d.ts +85 -0
- package/dist/dts/widget/workspace/types.d.ts +21 -0
- package/dist/externalBarsNormalization.worker.js +108 -0
- package/dist/iframe/index.html +63 -0
- package/dist/iframe/injected.css +6456 -0
- package/dist/iframe/vninvestchart.iframe.css +2 -0
- package/dist/iframe/vninvestchart.iframe.js +945 -0
- package/dist/iframe-host/host-entry.cjs +687 -0
- package/dist/iframe-host/host-entry.d.mts +818 -0
- package/dist/iframe-host/host-entry.d.ts +818 -0
- package/dist/iframe-host/host-entry.js +680 -0
- package/dist/index.cjs +7253 -0
- package/dist/index.css +3390 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +6461 -0
- package/dist/injected.css +6456 -0
- package/dist/rollAlgorithms-2P2ZKKHO.js +2 -0
- package/dist/types/runtime.cjs +8 -0
- package/dist/types/runtime.d.mts +92 -0
- package/dist/types/runtime.d.ts +92 -0
- package/dist/types/runtime.js +5 -0
- package/dist/types/runtime.umd.js +14 -0
- package/dist/vninvestchart.iife.css +2 -0
- package/dist/vninvestchart.iife.js +945 -0
- package/package.json +225 -5
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { DrawingObject } from "@vninvestcharts/engine-drawing";
|
|
2
|
+
export interface DrawingListPanelLabels {
|
|
3
|
+
title: string;
|
|
4
|
+
empty: string;
|
|
5
|
+
visible: string;
|
|
6
|
+
hidden: string;
|
|
7
|
+
locked: string;
|
|
8
|
+
unlocked: string;
|
|
9
|
+
selected: string;
|
|
10
|
+
delete: string;
|
|
11
|
+
/** Optional search input placeholder; renders a search box when provided. */
|
|
12
|
+
search?: string;
|
|
13
|
+
/** CE25: Bulk operations */
|
|
14
|
+
bulkDelete?: string;
|
|
15
|
+
bulkGroup?: string;
|
|
16
|
+
bulkLock?: string;
|
|
17
|
+
bulkUnlock?: string;
|
|
18
|
+
bulkHide?: string;
|
|
19
|
+
bulkShow?: string;
|
|
20
|
+
groupBy?: string;
|
|
21
|
+
groupByType?: string;
|
|
22
|
+
groupByGroupId?: string;
|
|
23
|
+
selectAll?: string;
|
|
24
|
+
deselectAll?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface DrawingListPanelProps {
|
|
27
|
+
drawings: DrawingObject[];
|
|
28
|
+
selectedId: string | null;
|
|
29
|
+
labels: DrawingListPanelLabels;
|
|
30
|
+
embedded?: boolean;
|
|
31
|
+
position?: {
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
};
|
|
35
|
+
onSelect: (id: string) => void;
|
|
36
|
+
onToggleVisible: (id: string) => void;
|
|
37
|
+
onToggleLocked: (id: string) => void;
|
|
38
|
+
onDelete: (id: string) => void;
|
|
39
|
+
/** GAP-10: Optional callback to reorder drawings (enables drag-and-drop). */
|
|
40
|
+
onReorderDrawings?: (reorderedDrawings: DrawingObject[]) => void;
|
|
41
|
+
/** CE25: Bulk operations */
|
|
42
|
+
selectedIds?: Set<string>;
|
|
43
|
+
onSelectMultiple?: (ids: Set<string>) => void;
|
|
44
|
+
onBulkDelete?: (ids: string[]) => void;
|
|
45
|
+
onBulkGroup?: (ids: string[], groupId: string) => void;
|
|
46
|
+
onBulkLock?: (ids: string[], locked: boolean) => void;
|
|
47
|
+
onBulkHide?: (ids: string[], hidden: boolean) => void;
|
|
48
|
+
/** P1.3: Inline rename callback */
|
|
49
|
+
onRename?: (id: string, label: string) => void;
|
|
50
|
+
/** P1.4: Z-order callbacks */
|
|
51
|
+
onBringToFront?: (id: string) => void;
|
|
52
|
+
onSendToBack?: (id: string) => void;
|
|
53
|
+
/** P1.4: Z-order labels */
|
|
54
|
+
bringToFrontLabel?: string;
|
|
55
|
+
sendToBackLabel?: string;
|
|
56
|
+
}
|
|
57
|
+
export declare function generateDrawingLabel(drawing: DrawingObject, t?: (key: string) => string): string;
|
|
58
|
+
/** GAP-10: Filter drawings by case-insensitive match on tool label or custom label. */
|
|
59
|
+
export declare function filterDrawings(drawings: DrawingObject[], query: string, t?: (key: string) => string): DrawingObject[];
|
|
60
|
+
/** GAP-10: Immutably reorder drawings by moving fromId to the position of toId. */
|
|
61
|
+
export declare function reorderDrawings(drawings: DrawingObject[], fromId: string, toId: string): DrawingObject[];
|
|
62
|
+
export default function DrawingListPanel({ drawings, selectedId, labels, embedded, position, onSelect, onToggleVisible, onToggleLocked, onDelete, onReorderDrawings, selectedIds: propSelectedIds, onSelectMultiple, onBulkDelete, onBulkGroup, onBulkLock, onBulkHide, onRename, onBringToFront, onSendToBack, bringToFrontLabel, sendToBackLabel, }: DrawingListPanelProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DrawingObject } from "@vninvestcharts/engine-drawing";
|
|
2
|
+
export interface DrawingSemanticPointLegendLabels {
|
|
3
|
+
title: string;
|
|
4
|
+
empty: string;
|
|
5
|
+
hint: string;
|
|
6
|
+
clear: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DrawingSemanticPointLegendProps {
|
|
9
|
+
drawing: DrawingObject | null;
|
|
10
|
+
labels: DrawingSemanticPointLegendLabels;
|
|
11
|
+
activePointIndex: number | null;
|
|
12
|
+
onPointFocusChange: (index: number | null) => void;
|
|
13
|
+
}
|
|
14
|
+
export default function DrawingSemanticPointLegend({ drawing, labels, activePointIndex, onPointFocusChange }: DrawingSemanticPointLegendProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DrawingObject } from "@vninvestcharts/engine-drawing";
|
|
2
|
+
import type { DrawingInspectorTextEditorProps } from "./DrawingInspector";
|
|
3
|
+
export interface FloatingDrawingInspectorProps {
|
|
4
|
+
drawing: DrawingObject;
|
|
5
|
+
isDark: boolean;
|
|
6
|
+
t: (key: string) => string;
|
|
7
|
+
textEditor?: DrawingInspectorTextEditorProps;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
onUpdate: (patch: any) => void;
|
|
10
|
+
onDelete: () => void;
|
|
11
|
+
onClone: () => void;
|
|
12
|
+
onToggleLock: () => void;
|
|
13
|
+
onToggleVisible: () => void;
|
|
14
|
+
onBringToFront: () => void;
|
|
15
|
+
onSendToBack: () => void;
|
|
16
|
+
plotData?: readonly any[];
|
|
17
|
+
}
|
|
18
|
+
export default function FloatingDrawingInspector({ drawing, isDark, t, textEditor, onClose, onUpdate, onDelete, onClone, onToggleLock, onToggleVisible, onBringToFront, onSendToBack, plotData, }: FloatingDrawingInspectorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DrawingObject } from "@vninvestcharts/engine-drawing";
|
|
2
|
+
import type { WidgetPaneRuntimeSnapshot } from "../../utils/widgetHelpers";
|
|
3
|
+
import type { EnrichedDatum } from "../../../lib/core/calculators/types";
|
|
4
|
+
export interface InlineTextEditorProps {
|
|
5
|
+
selectedDrawing: DrawingObject | null;
|
|
6
|
+
paneSnapshots: readonly WidgetPaneRuntimeSnapshot[];
|
|
7
|
+
isEditingText: boolean;
|
|
8
|
+
drawingTextDraft: string;
|
|
9
|
+
setDrawingTextDraft: (value: string) => void;
|
|
10
|
+
handleCommitTextEdit: (commitCallback: (draft: string) => void) => void;
|
|
11
|
+
handleCancelTextEdit: () => void;
|
|
12
|
+
handleUpdateDrawing: (id: string, patch: any) => void;
|
|
13
|
+
plotData: readonly EnrichedDatum[];
|
|
14
|
+
visibleDomainRef: React.MutableRefObject<[Date, Date] | null>;
|
|
15
|
+
shellSize: {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export default function InlineTextEditor({ selectedDrawing, paneSnapshots, isEditingText, drawingTextDraft, setDrawingTextDraft, handleCommitTextEdit, handleCancelTextEdit, handleUpdateDrawing, plotData, visibleDomainRef, shellSize, }: InlineTextEditorProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A10 — the pattern picker.
|
|
3
|
+
*
|
|
4
|
+
* PLAN_FRONTEND_PROPLUS_TRACKA_2026-09-28 §3.9. A panel the user opens
|
|
5
|
+
* deliberately, which is what makes §3.9.4 hold: the scan runs when the user
|
|
6
|
+
* asks for it, never in the background while they pan or zoom.
|
|
7
|
+
*
|
|
8
|
+
* The tier and device gate is not re-implemented here. `auto_pattern` is
|
|
9
|
+
* already `pro`-gated and already in `DEVICE_HEAVY` in `CapabilityResolver`,
|
|
10
|
+
* so `CapabilityGate` gives the plan's §3.9.3 (off at `free`, off on mobile)
|
|
11
|
+
* and §9.1.8 (`LockedFeature`, not a silent hide) for free — and gives them
|
|
12
|
+
* in the one place they are auditable.
|
|
13
|
+
*
|
|
14
|
+
* Every string goes through `t()`. The shape names and the detail line are
|
|
15
|
+
* the only user-visible text and both are resolved by the host's dictionary.
|
|
16
|
+
*/
|
|
17
|
+
import type { DetectedPattern, PatternBar } from "@vninvestcharts/engine-core";
|
|
18
|
+
export interface PatternScanPanelProps {
|
|
19
|
+
readonly bars: readonly PatternBar[];
|
|
20
|
+
/** How many trailing bars are still forming; 1 on a live chart. */
|
|
21
|
+
readonly formingBars?: number;
|
|
22
|
+
/** Called with the scan result so the host can create the drawings. */
|
|
23
|
+
readonly onDraw: (patterns: readonly DetectedPattern[]) => void;
|
|
24
|
+
/** `false` while the user is panning or zooming — plan §3.9.4. */
|
|
25
|
+
readonly idle?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare function PatternScanPanel({ bars, formingBars, onDraw, idle }: PatternScanPanelProps): React.ReactNode;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DrawingObject, DrawingToolType } from "@vninvestcharts/engine-drawing";
|
|
2
|
+
export interface TemplateManagerLabels {
|
|
3
|
+
loadTemplate?: string;
|
|
4
|
+
saveAs?: string;
|
|
5
|
+
deleteTemplate?: string;
|
|
6
|
+
load?: string;
|
|
7
|
+
save?: string;
|
|
8
|
+
delete?: string;
|
|
9
|
+
namePlaceholder?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface TemplateManagerPanelProps {
|
|
12
|
+
drawingType: DrawingToolType;
|
|
13
|
+
drawing?: DrawingObject;
|
|
14
|
+
locked?: boolean;
|
|
15
|
+
onUpdate?: (updates: Partial<DrawingObject>) => void;
|
|
16
|
+
labels?: TemplateManagerLabels;
|
|
17
|
+
}
|
|
18
|
+
export default function TemplateManagerPanel({ drawingType, drawing, locked, onUpdate, labels, }: TemplateManagerPanelProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface CorporateEvent {
|
|
2
|
+
id: string;
|
|
3
|
+
type: "D" | "E" | "N" | "S";
|
|
4
|
+
timeIndex: number;
|
|
5
|
+
timestamp: number;
|
|
6
|
+
date: string;
|
|
7
|
+
label: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
data: Record<string, any>;
|
|
11
|
+
}
|
|
12
|
+
export interface CorporateEventsOverlayProps {
|
|
13
|
+
events?: readonly CorporateEvent[];
|
|
14
|
+
showEvents?: boolean;
|
|
15
|
+
isMobile?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* UI-B: clearance (px) above the X-axis strip so badges stay fully inside
|
|
18
|
+
* the plot area. Defaults to axis-strip height + 4px gap.
|
|
19
|
+
*/
|
|
20
|
+
axisClearancePx?: number;
|
|
21
|
+
onEventClick?: (event: CorporateEvent) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare function CorporateEventsOverlay({ events, showEvents, isMobile, axisClearancePx, onEventClick, }: CorporateEventsOverlayProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { Timeframe } from "../../../lib/types/adapter";
|
|
3
|
+
import { type ScaleMode } from "./TimeframeFooter";
|
|
4
|
+
export type BottomTabId = "pine_editor" | "strategy_tester" | "paper_trade";
|
|
5
|
+
export interface ChartFooterProps {
|
|
6
|
+
showFooter?: boolean;
|
|
7
|
+
renderFooter?: (ctx: {
|
|
8
|
+
timeframe?: string;
|
|
9
|
+
range?: string;
|
|
10
|
+
}) => ReactNode;
|
|
11
|
+
timeframe: Timeframe;
|
|
12
|
+
localRange: string | undefined;
|
|
13
|
+
onTimeframeChange: (tf: Timeframe) => void;
|
|
14
|
+
onRangeChange: (range: string) => void;
|
|
15
|
+
scaleMode: ScaleMode;
|
|
16
|
+
onScaleModeChange: (mode: ScaleMode) => void;
|
|
17
|
+
timezone: string;
|
|
18
|
+
t: (key: string) => string | undefined;
|
|
19
|
+
activeBottomTab: BottomTabId | null;
|
|
20
|
+
onBottomTabChange: (tab: BottomTabId | null) => void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* BL-03B extraction from VNInvestCharts.tsx (behavior-identical move).
|
|
24
|
+
* Footer with timeframe/range/scale controls + bottom-tab toggles.
|
|
25
|
+
*/
|
|
26
|
+
export declare function ChartFooter({ showFooter, renderFooter, timeframe, localRange, onTimeframeChange, onRangeChange, scaleMode, onScaleModeChange, timezone, t, activeBottomTab, onBottomTabChange, }: ChartFooterProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LayoutPreset } from '../../grid/types';
|
|
3
|
+
import { BottomTab } from '../BottomPanelHost';
|
|
4
|
+
interface MultiChartsFooterProps {
|
|
5
|
+
currentLayout: LayoutPreset;
|
|
6
|
+
onLayoutChange: (preset: LayoutPreset) => void;
|
|
7
|
+
chartCount: number;
|
|
8
|
+
activeTab?: BottomTab;
|
|
9
|
+
onTabChange?: (tab: BottomTab) => void;
|
|
10
|
+
/** UI-D2: Solo/Grid toggle for the focused chart (shown when provided). */
|
|
11
|
+
isMaximized?: boolean;
|
|
12
|
+
onToggleMaximize?: () => void;
|
|
13
|
+
syncSettings: {
|
|
14
|
+
visibleRange: boolean;
|
|
15
|
+
crosshair: boolean;
|
|
16
|
+
drawings: boolean;
|
|
17
|
+
symbolLinks: boolean;
|
|
18
|
+
timeframe: boolean;
|
|
19
|
+
chartType: boolean;
|
|
20
|
+
replay: boolean;
|
|
21
|
+
};
|
|
22
|
+
onSyncChange: (settings: Partial<MultiChartsFooterProps['syncSettings']>) => void;
|
|
23
|
+
className?: string;
|
|
24
|
+
autoHide?: boolean;
|
|
25
|
+
isChartFocused?: boolean;
|
|
26
|
+
onSystemMenuOpen?: () => void;
|
|
27
|
+
activeIndex?: number;
|
|
28
|
+
onActiveIndexChange?: (index: number) => void;
|
|
29
|
+
chartsData?: Array<{
|
|
30
|
+
id: string;
|
|
31
|
+
symbol: string;
|
|
32
|
+
timeframe: string;
|
|
33
|
+
}>;
|
|
34
|
+
isMobile?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export declare const MultiChartsFooter: React.FC<MultiChartsFooterProps>;
|
|
37
|
+
export default MultiChartsFooter;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WE2 P2-04: TimeframeFooter
|
|
3
|
+
*
|
|
4
|
+
* Bottom bar with timeframe chips and range selectors.
|
|
5
|
+
* Uses .vnsc- CSS prefix.
|
|
6
|
+
*/
|
|
7
|
+
import { type ReactNode } from "react";
|
|
8
|
+
import type { Timeframe } from "../../../lib/types/adapter";
|
|
9
|
+
export type ScaleMode = "auto" | "log" | "percent";
|
|
10
|
+
export interface TimeframeFooterProps {
|
|
11
|
+
timeframe?: Timeframe;
|
|
12
|
+
onTimeframeChange?: (tf: Timeframe) => void;
|
|
13
|
+
range?: string;
|
|
14
|
+
onRangeChange?: (range: string) => void;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
/** Price scale mode (UI-only until engine log/percent lands in Phase 5b). */
|
|
17
|
+
scaleMode?: ScaleMode;
|
|
18
|
+
onScaleModeChange?: (mode: ScaleMode) => void;
|
|
19
|
+
/** IANA timezone shown as badge (e.g. "Asia/Ho_Chi_Minh" -> "UTC+7"). */
|
|
20
|
+
timezone?: string;
|
|
21
|
+
showClock?: boolean;
|
|
22
|
+
/** UI-AUDIT: trailing node inside the right cluster (e.g. shortcut hint). */
|
|
23
|
+
trailingNode?: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
export declare function TimeframeFooter({ timeframe, onTimeframeChange, range, onRangeChange, children, scaleMode, onScaleModeChange, timezone, showClock, trailingNode, }: TimeframeFooterProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function parseTimeframeIntervalMs(timeframe: string | undefined | null): number | null;
|
|
2
|
+
export declare function formatCountdown(remainingMs: number, intervalMs: number): string;
|
|
3
|
+
export declare function useNow(enabled?: boolean): number;
|
|
4
|
+
/** Remaining time in the current bar as "mm:ss" / "h:mm:ss", or null when N/A. */
|
|
5
|
+
export declare function useBarCountdown(timeframe: string | undefined, now: number): string | null;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { ReplayAnalyticsStats } from "../../../lib/core/replay/ReplaySessionAnalytics";
|
|
2
|
+
import type { CrosshairMode } from "@vninvestcharts/engine-core";
|
|
3
|
+
export interface OHLCHeaderProps {
|
|
4
|
+
symbol?: string;
|
|
5
|
+
timeframe?: string;
|
|
6
|
+
chartType?: string;
|
|
7
|
+
onChartTypeChange?: (chartType: string) => void;
|
|
8
|
+
replayPlaying?: boolean;
|
|
9
|
+
replaySpeed?: number;
|
|
10
|
+
replayCurrentBar?: number;
|
|
11
|
+
replayTotalBars?: number;
|
|
12
|
+
onReplayPlay?: () => void;
|
|
13
|
+
onReplayPause?: () => void;
|
|
14
|
+
onReplayStop?: () => void;
|
|
15
|
+
onReplayStepForward?: () => void;
|
|
16
|
+
onReplayStepBack?: () => void;
|
|
17
|
+
onReplayRewind?: () => void;
|
|
18
|
+
onReplaySpeedChange?: (speed: number) => void;
|
|
19
|
+
onReplaySeek?: (barIndex: number) => void;
|
|
20
|
+
replayAwaitingStartBar?: boolean;
|
|
21
|
+
showReplayBar?: boolean;
|
|
22
|
+
onShowReplayBarChange?: (show: boolean) => void;
|
|
23
|
+
replayInterval?: string;
|
|
24
|
+
onReplayStartBarSelect?: (date: Date | number) => void;
|
|
25
|
+
onReplayEnterSelectionMode?: () => void;
|
|
26
|
+
onReplayCancelSelection?: () => void;
|
|
27
|
+
onReplayIntervalChange?: (interval: string) => void;
|
|
28
|
+
replayTotalPnl?: number;
|
|
29
|
+
replayAnalytics?: ReplayAnalyticsStats;
|
|
30
|
+
compareOpen?: boolean;
|
|
31
|
+
onCompareToggle?: () => void;
|
|
32
|
+
crosshairMode?: CrosshairMode;
|
|
33
|
+
onCrosshairModeChange?: (mode: CrosshairMode) => void;
|
|
34
|
+
showMenu?: boolean;
|
|
35
|
+
isFullscreen?: boolean;
|
|
36
|
+
searchOpen?: boolean;
|
|
37
|
+
onSearchToggle?: () => void;
|
|
38
|
+
onSettingsClick?: () => void;
|
|
39
|
+
onFullscreenClick?: () => void;
|
|
40
|
+
onSnapshotClick?: () => void;
|
|
41
|
+
onCsvExportClick?: () => void;
|
|
42
|
+
onAlertsClick?: () => void;
|
|
43
|
+
onSaveTemplate?: () => void;
|
|
44
|
+
onLoadTemplate?: () => void;
|
|
45
|
+
onSystemMenuOpen?: () => void;
|
|
46
|
+
showLogo?: boolean;
|
|
47
|
+
showOHLCV?: boolean;
|
|
48
|
+
showTicker?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* AUTH-03: replay entitlement, resolved by the host widget from the same
|
|
51
|
+
* feature flag that gates the imperative replay API. Defaults to true so the
|
|
52
|
+
* header stays a pure presentational component that renders standalone.
|
|
53
|
+
*/
|
|
54
|
+
canUseReplay?: boolean;
|
|
55
|
+
showBarChange?: boolean;
|
|
56
|
+
ohlcData?: {
|
|
57
|
+
open: number;
|
|
58
|
+
high: number;
|
|
59
|
+
low: number;
|
|
60
|
+
close: number;
|
|
61
|
+
volume?: number;
|
|
62
|
+
change?: number;
|
|
63
|
+
changePercent?: number;
|
|
64
|
+
};
|
|
65
|
+
onTimeframeChange?: (timeframe: string) => void;
|
|
66
|
+
upgradeUrl?: string;
|
|
67
|
+
quickTimeframes?: string[];
|
|
68
|
+
isMobile?: boolean;
|
|
69
|
+
/** Tier PAT đã xác minh — cổng cho chart type pro (`chart_baseline`/`chart_exotic`). */
|
|
70
|
+
patTier?: string;
|
|
71
|
+
}
|
|
72
|
+
export declare function OHLCHeader({ symbol, timeframe, chartType, onChartTypeChange, replayPlaying, replaySpeed, replayCurrentBar, replayTotalBars, onReplayPlay, onReplayPause, onReplayStop, onReplayStepForward, onReplayStepBack, onReplayRewind, onReplaySpeedChange, onReplaySeek, replayAwaitingStartBar, showReplayBar, onShowReplayBarChange, onReplayStartBarSelect, onReplayEnterSelectionMode, onReplayCancelSelection, replayInterval, onReplayIntervalChange, replayTotalPnl, replayAnalytics, showMenu, isFullscreen, compareOpen, onCompareToggle, crosshairMode, onCrosshairModeChange, searchOpen, onSearchToggle, onSettingsClick, onFullscreenClick, onSnapshotClick, onCsvExportClick, onAlertsClick, onSaveTemplate, onLoadTemplate, onSystemMenuOpen, showLogo, showOHLCV, showTicker, showBarChange, ohlcData, onTimeframeChange, upgradeUrl, quickTimeframes, isMobile, canUseReplay, patTier, }: OHLCHeaderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { GridLayout } from "../../grid/types";
|
|
3
|
+
import { type VNInvestChartsProps } from "../../VNInvestCharts";
|
|
4
|
+
import { type CorporateEvent } from "../events/CorporateEventsOverlay";
|
|
5
|
+
import type { FullChartHandle } from "../../types/fullChartHandle";
|
|
6
|
+
import type { DrawingWorkspaceController } from "@vninvestcharts/engine-react";
|
|
7
|
+
import type { MultiChartConfig } from "../../VNInvestMultiCharts";
|
|
8
|
+
/**
|
|
9
|
+
* TRADEMARK_FIX: style contract for the price-pane header wrapper.
|
|
10
|
+
* Keeps the left axis/rail clearance from `paneHeaderStyle` but forces the
|
|
11
|
+
* designed full-bleed right side (⚙ margin-right:88px + trademark absolute
|
|
12
|
+
* right:12px overlay the right Y gutter). Insetting the right side dragged
|
|
13
|
+
* the trademark ~48px off the edge in multi-chart cells.
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolvePriceHeaderWrapStyle(paneHeaderStyle: React.CSSProperties | undefined): React.CSSProperties;
|
|
16
|
+
interface GridContainerProps {
|
|
17
|
+
charts: MultiChartConfig[];
|
|
18
|
+
layout: GridLayout;
|
|
19
|
+
activeChartId: string | null;
|
|
20
|
+
syncSettings: {
|
|
21
|
+
visibleRange: boolean;
|
|
22
|
+
crosshair: boolean;
|
|
23
|
+
drawings: boolean;
|
|
24
|
+
symbolLinks: boolean;
|
|
25
|
+
timeframe: boolean;
|
|
26
|
+
chartType: boolean;
|
|
27
|
+
replay: boolean;
|
|
28
|
+
time: boolean;
|
|
29
|
+
};
|
|
30
|
+
defaultChartProps: Partial<VNInvestChartsProps>;
|
|
31
|
+
resizeAdapter?: VNInvestChartsProps["resizeAdapter"];
|
|
32
|
+
keyboardAdapter?: VNInvestChartsProps["keyboardAdapter"];
|
|
33
|
+
clockAdapter?: VNInvestChartsProps["clockAdapter"];
|
|
34
|
+
storageAdapter?: VNInvestChartsProps["storageAdapter"];
|
|
35
|
+
portalAdapter?: VNInvestChartsProps["portalAdapter"];
|
|
36
|
+
registryAdapter?: VNInvestChartsProps["registryAdapter"];
|
|
37
|
+
portalRoot?: HTMLElement | null;
|
|
38
|
+
shadowRoot?: ShadowRoot | null;
|
|
39
|
+
chartRefs: React.MutableRefObject<Map<string, React.RefObject<FullChartHandle | null>>>;
|
|
40
|
+
chartHandles: React.MutableRefObject<Map<string, FullChartHandle>>;
|
|
41
|
+
setActiveChart: (chartId: string) => void;
|
|
42
|
+
addChart: (config: MultiChartConfig, row?: number, col?: number) => void;
|
|
43
|
+
hoverEmitterRefs?: React.MutableRefObject<Map<string, React.RefObject<{
|
|
44
|
+
current: unknown;
|
|
45
|
+
} | null>> | {
|
|
46
|
+
emitterMap?: Map<string, unknown>;
|
|
47
|
+
}>;
|
|
48
|
+
onDrawingWorkspaceChange?: (chartId: string, workspace: DrawingWorkspaceController) => void;
|
|
49
|
+
onLayoutChange?: (layout: GridLayout) => void;
|
|
50
|
+
onChartConfigChange?: (chartId: string, updates: Partial<MultiChartConfig>) => void;
|
|
51
|
+
onSymbolSearchClick?: (chartId: string) => void;
|
|
52
|
+
onComparisonChange?: (chartId: string, overlays: any[]) => void;
|
|
53
|
+
showSymbolBadges?: boolean;
|
|
54
|
+
renderRightPanel?: (context: {
|
|
55
|
+
chartId: string;
|
|
56
|
+
activeChartHandle: any;
|
|
57
|
+
}) => React.ReactNode;
|
|
58
|
+
syncOverrideMap?: Record<string, Record<string, boolean>>;
|
|
59
|
+
onToggleSyncOverride?: (chartId: string, type: string) => void;
|
|
60
|
+
showCorporateEvents?: boolean;
|
|
61
|
+
corporateEvents?: readonly CorporateEvent[];
|
|
62
|
+
activeTool?: string;
|
|
63
|
+
/** Khi true, Alt+click luôn chọn replay start bar (truyền từ showReplayBar của multi-chart). */
|
|
64
|
+
replaySelectionEnabled?: boolean;
|
|
65
|
+
/** UI-D2: controlled maximize. Khi undefined, GridContainer tự quản lý nội bộ. */
|
|
66
|
+
maximizedChartId?: string | null;
|
|
67
|
+
onMaximizedChange?: (chartId: string | null) => void;
|
|
68
|
+
}
|
|
69
|
+
export declare const GridContainer: React.FC<GridContainerProps>;
|
|
70
|
+
export default GridContainer;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component, type ErrorInfo, type ReactNode } from "react";
|
|
2
|
+
interface GridSlotErrorBoundaryProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
chartId: string;
|
|
5
|
+
}
|
|
6
|
+
interface GridSlotErrorBoundaryState {
|
|
7
|
+
hasError: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class GridSlotErrorBoundary extends Component<GridSlotErrorBoundaryProps, GridSlotErrorBoundaryState> {
|
|
10
|
+
state: GridSlotErrorBoundaryState;
|
|
11
|
+
static getDerivedStateFromError(): {
|
|
12
|
+
hasError: boolean;
|
|
13
|
+
};
|
|
14
|
+
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
15
|
+
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { type CSSProperties } from "react";
|
|
2
|
+
export type SplitterDirection = "horizontal" | "vertical";
|
|
3
|
+
export interface SplitterProps {
|
|
4
|
+
direction: SplitterDirection;
|
|
5
|
+
minSize: number;
|
|
6
|
+
maxSize: number;
|
|
7
|
+
onResize: (sizes: number[]) => void;
|
|
8
|
+
keyboardStep?: number;
|
|
9
|
+
initialSizes?: number[];
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: CSSProperties;
|
|
12
|
+
"aria-label"?: string;
|
|
13
|
+
"aria-valuemin"?: number;
|
|
14
|
+
"aria-valuemax"?: number;
|
|
15
|
+
"aria-valuenow"?: number;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use `useGridSplitterDrag` for multi-chart grid layouts or `ChartSplitter` for pane layouts.
|
|
20
|
+
* Generic percentage-based container splitter. Maintained for backwards compatibility.
|
|
21
|
+
*/
|
|
22
|
+
export declare const Splitter: React.FC<SplitterProps>;
|
|
23
|
+
export default Splitter;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const MIN_TRACK_PX = 100;
|
|
2
|
+
/**
|
|
3
|
+
* Resolve a grid-track token ("1fr"/"120px"/"20%") to rendered px so the dragged track can be sized in px even with fr units.
|
|
4
|
+
*/
|
|
5
|
+
export declare function resolveTrackPx(token: string, containerSize: number, allTokens: string[], gap?: number): number;
|
|
6
|
+
/**
|
|
7
|
+
* Get the current computed or approximated pixel size for a track.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getTrackPixelValue(trackSizes: {
|
|
10
|
+
rows: string[];
|
|
11
|
+
cols: string[];
|
|
12
|
+
}, type: 'row' | 'col', index: number, containerEl: HTMLDivElement | null): number;
|
|
13
|
+
export interface NeighborDeltaOptions {
|
|
14
|
+
baseTracksPx: number[];
|
|
15
|
+
index: number;
|
|
16
|
+
deltaPx: number;
|
|
17
|
+
minPx?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Zero-sum neighbor compensation:
|
|
21
|
+
* Track `index` changes by deltaPx, while the adjacent neighbor `nextIndex` absorbs -deltaPx.
|
|
22
|
+
* Both tracks are clamped to `>= minPx`.
|
|
23
|
+
* All other tracks remain exactly at their base size. Total px across all tracks is strictly preserved.
|
|
24
|
+
*/
|
|
25
|
+
export declare function applyNeighborDeltaPx({ baseTracksPx, index, deltaPx, minPx, }: NeighborDeltaOptions): number[];
|
|
26
|
+
/**
|
|
27
|
+
* Convert pixel track sizes to normalized `fr` strings with fixed 2 decimal places.
|
|
28
|
+
* Uses largest-remainder apportionment (integer hundredths) so the parsed sum
|
|
29
|
+
* is exactly totalTracks — plain per-track toFixed(2) can drift (e.g. 3.01).
|
|
30
|
+
*/
|
|
31
|
+
export declare function convertPxToFr(tracksPx: number[], totalTracks: number): string[];
|
|
32
|
+
/**
|
|
33
|
+
* Calculate standard ARIA values (0-100%) for a track splitter separator.
|
|
34
|
+
*/
|
|
35
|
+
export declare function calculateAriaValues(trackPx: number, totalPx: number, minPx?: number): {
|
|
36
|
+
valueNow: number;
|
|
37
|
+
valueMin: number;
|
|
38
|
+
valueMax: number;
|
|
39
|
+
valueText: string;
|
|
40
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type PointerEvent as ReactPointerEvent, type KeyboardEvent as ReactKeyboardEvent } from 'react';
|
|
2
|
+
import type { GridLayout } from '../../grid/types';
|
|
3
|
+
export interface UseGridSplitterDragOptions {
|
|
4
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
5
|
+
layout: GridLayout;
|
|
6
|
+
onLayoutChange?: (layout: GridLayout) => void;
|
|
7
|
+
minTrackPx?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function useGridSplitterDrag({ containerRef, layout, onLayoutChange, minTrackPx, }: UseGridSplitterDragOptions): {
|
|
10
|
+
trackSizes: {
|
|
11
|
+
rows: string[];
|
|
12
|
+
cols: string[];
|
|
13
|
+
};
|
|
14
|
+
handlePointerDown: (e: ReactPointerEvent<HTMLDivElement>, type: "row" | "col", index: number) => void;
|
|
15
|
+
handleKeyDown: (e: ReactKeyboardEvent<HTMLDivElement>, type: "row" | "col", index: number) => void;
|
|
16
|
+
handleDoubleClick: (type: "row" | "col") => void;
|
|
17
|
+
isDragging: boolean;
|
|
18
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { MultiChartConfig } from "../../VNInvestMultiCharts";
|
|
3
|
+
interface MobileChartCarouselProps {
|
|
4
|
+
charts: MultiChartConfig[];
|
|
5
|
+
activeIndex: number;
|
|
6
|
+
onChange: (index: number) => void;
|
|
7
|
+
renderChart: (config: MultiChartConfig, isActive: boolean) => React.ReactNode;
|
|
8
|
+
activeTool?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function MobileChartCarousel({ charts, activeIndex, onChange, renderChart, activeTool, }: MobileChartCarouselProps): React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { PatTier } from "@vninvestcharts/engine-core";
|
|
3
|
+
interface MobileToolbarProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
activeTool: string;
|
|
7
|
+
onToolSelect: (tool: string) => void;
|
|
8
|
+
timeframes?: string[];
|
|
9
|
+
activeTimeframe?: string;
|
|
10
|
+
onTimeframeChange?: (tf: string) => void;
|
|
11
|
+
portalRoot?: HTMLElement | null;
|
|
12
|
+
charts?: Array<{
|
|
13
|
+
id: string;
|
|
14
|
+
symbol: string;
|
|
15
|
+
timeframe: string;
|
|
16
|
+
}>;
|
|
17
|
+
activeChartId?: string | null;
|
|
18
|
+
onChartSelect?: (id: string) => void;
|
|
19
|
+
onSaveWorkspace?: () => void;
|
|
20
|
+
onThemeToggle?: () => void;
|
|
21
|
+
isDark?: boolean;
|
|
22
|
+
activeTab?: "strategy_tester" | "pine_editor" | null;
|
|
23
|
+
onTabChange?: (tab: "strategy_tester" | "pine_editor" | null) => void;
|
|
24
|
+
isChartFocused?: boolean;
|
|
25
|
+
patTier?: PatTier;
|
|
26
|
+
onPremiumToolClick?: (tool: string) => void;
|
|
27
|
+
}
|
|
28
|
+
export declare function MobileToolbar({ isOpen, onClose, activeTool, onToolSelect, timeframes, activeTimeframe, onTimeframeChange, portalRoot, activeTab, onTabChange, isChartFocused, charts, activeChartId, onChartSelect, patTier, onPremiumToolClick, }: MobileToolbarProps): React.ReactPortal | null;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WE2 P3a-03: AdvisoryPanel (moved from src/lib/advisory/AdvisoryPanel.tsx)
|
|
3
|
+
*
|
|
4
|
+
* Pure-presentational panel displaying AI advisory session results.
|
|
5
|
+
* Data is fetched externally (demo shell → VNInvestClient) and passed
|
|
6
|
+
* via props so this component has zero API dependency (testable).
|
|
7
|
+
* All text goes through useWidgetI18n().t() — no hardcoded Vietnamese.
|
|
8
|
+
*
|
|
9
|
+
* Layout: vertical card — decision badge + confidence + 4 agent rows + explanation.
|
|
10
|
+
*/
|
|
11
|
+
import type { AdvisoryResult, AdvisorySessionV2 } from "../../../lib/types/vninvest";
|
|
12
|
+
export interface AdvisoryPanelProps {
|
|
13
|
+
show: boolean;
|
|
14
|
+
result: AdvisoryResult | null;
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
symbol?: string;
|
|
17
|
+
onRefresh?: () => void;
|
|
18
|
+
onClose?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Follow-up advisory V2: native session from GET .../ai-advisory-session/.
|
|
21
|
+
* When provided (even empty), the V2 view renders instead of the legacy result view.
|
|
22
|
+
*/
|
|
23
|
+
session?: AdvisorySessionV2 | null;
|
|
24
|
+
}
|
|
25
|
+
export declare function AdvisoryPanel({ show, result, isLoading, symbol, onRefresh, onClose, session, }: AdvisoryPanelProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WE2 P3a-02: TapePanel (moved from src/lib/tape/TapePanel.tsx)
|
|
3
|
+
*
|
|
4
|
+
* Pure-presentational Time-and-Sales (tape) panel.
|
|
5
|
+
* Data is fetched externally (demo shell) and passed via props.
|
|
6
|
+
* All text goes through useWidgetI18n().t() — no hardcoded Vietnamese.
|
|
7
|
+
*
|
|
8
|
+
* Layout: vertical scrollable list — each row is 22px:
|
|
9
|
+
* [time] [price] [volume] [value] [side badge]
|
|
10
|
+
* Whale rows get a yellow background.
|
|
11
|
+
* Auto-scrolls to the bottom when new entries arrive.
|
|
12
|
+
*/
|
|
13
|
+
import type { TapeEntry } from "../../../lib/types/vninvest";
|
|
14
|
+
export interface TapePanelProps {
|
|
15
|
+
show: boolean;
|
|
16
|
+
/** Ordered list of tape entries — most recent last (appended to bottom). */
|
|
17
|
+
entries: readonly TapeEntry[];
|
|
18
|
+
isLoading: boolean;
|
|
19
|
+
symbol?: string;
|
|
20
|
+
/** Filter threshold in billion VND — entries below this are hidden (0 = show all). */
|
|
21
|
+
filterBillions: number;
|
|
22
|
+
onFilterChange?: (billions: number) => void;
|
|
23
|
+
onClose?: () => void;
|
|
24
|
+
}
|
|
25
|
+
export declare function TapePanel({ show, entries, isLoading, symbol, filterBillions, onFilterChange, onClose, }: TapePanelProps): import("react").JSX.Element | null;
|