@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,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart Settings SSOT Data Schema (TradingView Parity)
|
|
3
|
+
*/
|
|
4
|
+
export type CandleStyle = "candle" | "hollow" | "bar" | "line" | "area";
|
|
5
|
+
export type PriceScaleMode = "normal" | "logarithmic" | "percentage";
|
|
6
|
+
export type GridLineStyle = "solid" | "dashed" | "dotted";
|
|
7
|
+
export type CrosshairMode = "cross" | "dot" | "magnet";
|
|
8
|
+
export type ThemePresetName = "classic-dark" | "modern-light" | "trading-night" | "neutral-pro" | "high-contrast" | "midnight-blue";
|
|
9
|
+
export type OverlayStyle = "candle" | "hollow" | "step" | "area";
|
|
10
|
+
export interface SymbolSettings {
|
|
11
|
+
candleStyle: CandleStyle;
|
|
12
|
+
upColor: string;
|
|
13
|
+
downColor: string;
|
|
14
|
+
borderUpColor: string;
|
|
15
|
+
borderDownColor: string;
|
|
16
|
+
wickUpColor: string;
|
|
17
|
+
wickDownColor: string;
|
|
18
|
+
showLastPriceLine: boolean;
|
|
19
|
+
lastPriceLineColor?: string;
|
|
20
|
+
showPrevClosePriceLine: boolean;
|
|
21
|
+
prevClosePriceLineColor?: string;
|
|
22
|
+
showHighLowPriceLines: boolean;
|
|
23
|
+
precision: "default" | "0" | "1" | "2" | "3" | "4";
|
|
24
|
+
timezone: string;
|
|
25
|
+
}
|
|
26
|
+
export interface StatusLineSettings {
|
|
27
|
+
showLogo: boolean;
|
|
28
|
+
showTicker: boolean;
|
|
29
|
+
showOhlc: boolean;
|
|
30
|
+
showBarChange: boolean;
|
|
31
|
+
showVolume: boolean;
|
|
32
|
+
showIndicatorTitles: boolean;
|
|
33
|
+
showIndicatorArguments: boolean;
|
|
34
|
+
showIndicatorValues: boolean;
|
|
35
|
+
backgroundOpacity: number;
|
|
36
|
+
}
|
|
37
|
+
export interface ScalesSettings {
|
|
38
|
+
priceScaleMode: PriceScaleMode;
|
|
39
|
+
invertScale: boolean;
|
|
40
|
+
priceAxisPosition: "right" | "left";
|
|
41
|
+
showSymbolLastValue: boolean;
|
|
42
|
+
showPrevCloseValue: boolean;
|
|
43
|
+
showIndicatorValues: boolean;
|
|
44
|
+
showCountdownToBarClose: boolean;
|
|
45
|
+
showTimeScrollbar: boolean;
|
|
46
|
+
dateFormat: "yyyy-mm-dd" | "dd/mm/yyyy" | "mm/dd/yyyy";
|
|
47
|
+
timeFormat: "24h" | "12h";
|
|
48
|
+
}
|
|
49
|
+
export interface AppearanceSettings {
|
|
50
|
+
backgroundType: "solid" | "gradient";
|
|
51
|
+
backgroundColor: string;
|
|
52
|
+
backgroundGradientTop?: string;
|
|
53
|
+
backgroundGradientBottom?: string;
|
|
54
|
+
vertGridVisible: boolean;
|
|
55
|
+
vertGridColor: string;
|
|
56
|
+
vertGridStyle: GridLineStyle;
|
|
57
|
+
horzGridVisible: boolean;
|
|
58
|
+
horzGridColor: string;
|
|
59
|
+
horzGridStyle: GridLineStyle;
|
|
60
|
+
crosshairMode: CrosshairMode;
|
|
61
|
+
crosshairColor: string;
|
|
62
|
+
crosshairWidth: number;
|
|
63
|
+
showWatermark: boolean;
|
|
64
|
+
watermarkOpacity: number;
|
|
65
|
+
scalesFontSize: 10 | 11 | 12 | 14;
|
|
66
|
+
marginTopRatio: number;
|
|
67
|
+
marginBottomRatio: number;
|
|
68
|
+
}
|
|
69
|
+
export interface PanesLayoutSettings {
|
|
70
|
+
maxVisiblePanes: number;
|
|
71
|
+
showNonTradingDays: boolean;
|
|
72
|
+
overlayTimeframe?: string;
|
|
73
|
+
overlayStyle: OverlayStyle;
|
|
74
|
+
}
|
|
75
|
+
export interface TradingEventsSettings {
|
|
76
|
+
showCorporateEvents: boolean;
|
|
77
|
+
showWhaleFlow: boolean;
|
|
78
|
+
whaleThreshold: number;
|
|
79
|
+
showCVD: boolean;
|
|
80
|
+
cvdMode: "oscillator" | "histogram";
|
|
81
|
+
alertAudioEnabled: boolean;
|
|
82
|
+
showPaperOrders: boolean;
|
|
83
|
+
showPaperPositions: boolean;
|
|
84
|
+
dataAdapterName: "binance" | "local" | "vnstocks" | string;
|
|
85
|
+
}
|
|
86
|
+
export interface ThemeSettings {
|
|
87
|
+
mode: "dark" | "light";
|
|
88
|
+
presetName: ThemePresetName;
|
|
89
|
+
}
|
|
90
|
+
export interface ChartSettingsState {
|
|
91
|
+
version: 1;
|
|
92
|
+
symbol: SymbolSettings;
|
|
93
|
+
statusLine: StatusLineSettings;
|
|
94
|
+
scales: ScalesSettings;
|
|
95
|
+
appearance: AppearanceSettings;
|
|
96
|
+
panesLayout: PanesLayoutSettings;
|
|
97
|
+
tradingEvents: TradingEventsSettings;
|
|
98
|
+
theme: ThemeSettings;
|
|
99
|
+
}
|
|
100
|
+
export type SettingsTabId = "symbol" | "statusLine" | "scales" | "appearance" | "panes" | "indicators" | "indicatorSets" | "trading" | "theme" | "licensing" | "reset";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Indicator cross-chart share (explicit "apply to all" only).
|
|
3
|
+
*
|
|
4
|
+
* v1 scope: indicator SERIES (never symbols/timeframes/layout). Price-pane main
|
|
5
|
+
* series (series[0]), compare overlays (overlaySymbolId) and derived-on-derived
|
|
6
|
+
* series (sourceType indicator, unresolvable cross-chart) are never shared.
|
|
7
|
+
* Shared copies drop identity + data-source bindings so targets compute from
|
|
8
|
+
* their own bars (same minimal shape the composer writes).
|
|
9
|
+
*/
|
|
10
|
+
import type { PaneDescriptor, SeriesConfig } from "../../../../lib/core/types/pane-descriptor";
|
|
11
|
+
export declare const INDICATORS_SHARE_EVENT = "vnsc-indicators-share";
|
|
12
|
+
export interface SharedIndicator {
|
|
13
|
+
paneId: string;
|
|
14
|
+
paneLabel: string;
|
|
15
|
+
series: SeriesConfig;
|
|
16
|
+
}
|
|
17
|
+
export interface IndicatorsShareDetail {
|
|
18
|
+
sourceChartId: string | null;
|
|
19
|
+
indicators: SharedIndicator[];
|
|
20
|
+
}
|
|
21
|
+
/** Collect shareable indicator series with pane attribution (pure, no mutation). */
|
|
22
|
+
export declare function extractShareableIndicators(panes: readonly PaneDescriptor[]): SharedIndicator[];
|
|
23
|
+
/**
|
|
24
|
+
* Merge shared indicators into a target layout (pure, no mutation).
|
|
25
|
+
* Returns the ORIGINAL array reference when nothing was added (no-op signal).
|
|
26
|
+
* Never touches the target price-pane main series; creates missing non-price
|
|
27
|
+
* panes as visible shells (heightRatio 0.15 matches volume-class panes).
|
|
28
|
+
*/
|
|
29
|
+
export declare function mergeIndicatorsIntoLayout(panes: readonly PaneDescriptor[], indicators: readonly SharedIndicator[]): readonly PaneDescriptor[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart-centric storage keys (Settings S1).
|
|
3
|
+
* SSOT for namespacing per-chart settings. Pattern follows M1 paper-trading
|
|
4
|
+
* namespace (`liveNamespace`: suffix chartId, legacy fallback when absent).
|
|
5
|
+
*/
|
|
6
|
+
import type { StorageAdapter } from "@vninvestcharts/engine-react";
|
|
7
|
+
export declare const LEGACY_COMPOSITE_KEY = "vnsc_chart_settings_v1";
|
|
8
|
+
/** Normalize empty chartId to undefined (single-chart legacy mode). */
|
|
9
|
+
export declare function normalizeChartId(chartId?: string | null): string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Composite settings key. Multi-chart cell -> `vnsc_chart_settings_<chartId>`;
|
|
12
|
+
* single-chart (no chartId) -> legacy global key (backward compatible).
|
|
13
|
+
*/
|
|
14
|
+
export declare function settingsCompositeKey(chartId?: string | null): string;
|
|
15
|
+
/** Scoped single-setting key: `<base>_<chartId>` in multi, `<base>` in single. */
|
|
16
|
+
export declare function scopedSingleKey(base: string, chartId?: string | null): string;
|
|
17
|
+
/** Read scoped-first, fall back to legacy global (one-time migration path). */
|
|
18
|
+
export declare function readScopedSetting(adapter: StorageAdapter | undefined, base: string, chartId?: string | null): string | null;
|
|
19
|
+
/** Write to scoped key in multi, legacy key in single (never both). */
|
|
20
|
+
export declare function writeScopedSetting(adapter: StorageAdapter | undefined, base: string, value: string, chartId?: string | null): void;
|
|
21
|
+
/** Remove scoped key (reset scope = own chart only). */
|
|
22
|
+
export declare function removeScopedSetting(adapter: StorageAdapter | undefined, base: string, chartId?: string | null): void;
|
|
23
|
+
/**
|
|
24
|
+
* Two-way envelope guard (S2). Multi-chart receiver (`myChartId` set) only
|
|
25
|
+
* accepts events carrying exactly its chartId — legacy/global events are
|
|
26
|
+
* ignored so one chart can never be overwritten by another. Single-chart
|
|
27
|
+
* receiver (no id) only accepts global events and ignores foreign envelopes.
|
|
28
|
+
*/
|
|
29
|
+
export declare function shouldAcceptSettingsEvent(myChartId?: string | null, incomingChartId?: string | null): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Indicator Parameters Form
|
|
3
|
+
* Generates parameter fields, input source selectors, and styling per indicator
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import type { PaneDescriptor, SeriesConfig } from "../../../../lib/core";
|
|
7
|
+
export interface IndicatorParamsFormProps {
|
|
8
|
+
pane: PaneDescriptor;
|
|
9
|
+
series: SeriesConfig;
|
|
10
|
+
seriesIndex: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function IndicatorParamsForm(props: IndicatorParamsFormProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tab 6: Indicators Settings & Indicator Sets
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { type SeriesTier } from "../../../../lib/core";
|
|
6
|
+
export interface IndicatorsSettingsTabProps {
|
|
7
|
+
/** Owning chart id (multi) — share source attribution; absent = single (no share button). */
|
|
8
|
+
chartId?: string;
|
|
9
|
+
selectedPaneId?: string;
|
|
10
|
+
onSelectedPaneIdChange?: (paneId: string) => void;
|
|
11
|
+
comparisonOverlays?: ReadonlyArray<{
|
|
12
|
+
symbolId: string;
|
|
13
|
+
visible: boolean;
|
|
14
|
+
color: string;
|
|
15
|
+
yAxis: "left" | "right";
|
|
16
|
+
lineWidth: number;
|
|
17
|
+
lineStyle: "solid" | "dashed" | "dotted";
|
|
18
|
+
fillArea: boolean;
|
|
19
|
+
normalizeToBaseline: boolean;
|
|
20
|
+
}>;
|
|
21
|
+
onComparisonRemove?: (symbolId: string) => void;
|
|
22
|
+
onComparisonUpdate?: (symbolId: string, updates: Partial<{
|
|
23
|
+
visible: boolean;
|
|
24
|
+
color: string;
|
|
25
|
+
yAxis: "left" | "right";
|
|
26
|
+
lineWidth: number;
|
|
27
|
+
lineStyle: "solid" | "dashed" | "dotted";
|
|
28
|
+
fillArea: boolean;
|
|
29
|
+
normalizeToBaseline: boolean;
|
|
30
|
+
}>) => void;
|
|
31
|
+
/** S3b-2: tier gate cho composer thêm series (undefined = không gate, legacy). */
|
|
32
|
+
seriesTier?: SeriesTier;
|
|
33
|
+
}
|
|
34
|
+
export declare function IndicatorsSettingsTab(props: IndicatorsSettingsTabProps): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tab 5: Panes & Layout Settings
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
export interface PanesLayoutSettingsTabProps {
|
|
6
|
+
selectedPaneId?: string;
|
|
7
|
+
onSelectedPaneIdChange?: (paneId: string) => void;
|
|
8
|
+
onExportLayout?: () => void;
|
|
9
|
+
onImportLayout?: (layoutJson: string) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function PanesLayoutSettingsTab(props: PanesLayoutSettingsTabProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tab 8: Theme & Palette Settings
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
export interface ThemePaletteSettingsTabProps {
|
|
6
|
+
toggleTheme?: () => void;
|
|
7
|
+
isDark?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function ThemePaletteSettingsTab(props: ThemePaletteSettingsTabProps): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* P3 split: tool glyph renderer extracted from DrawingToolbar (pure move,
|
|
3
|
+
* zero behavior change). Prefers the shared `drawingToolIcons` registry and
|
|
4
|
+
* falls back to the legacy inline SVG set for ids the registry lacks.
|
|
5
|
+
*/
|
|
6
|
+
export interface DrawingToolIconProps {
|
|
7
|
+
/** Drawing tool id (e.g. "trendLine", "fibonacci", "cursor"). */
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function DrawingToolIcon({ id }: DrawingToolIconProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WE2 P2-02: DrawingToolbar
|
|
3
|
+
*
|
|
4
|
+
* Left-side drawing toolbar with tool groups, recent tools, favorites,
|
|
5
|
+
* magnet snap toggle, and search.
|
|
6
|
+
*
|
|
7
|
+
* Connects to VNInvestChartsStateContext for active tool state.
|
|
8
|
+
* Uses .vnsc- CSS prefix for widget namespace.
|
|
9
|
+
*/
|
|
10
|
+
import type { PatTier } from "@vninvestcharts/engine-core";
|
|
11
|
+
export interface DrawingToolbarProps {
|
|
12
|
+
/** Current active tool name (e.g., "trendLine", "fibonacci") */
|
|
13
|
+
activeTool?: string;
|
|
14
|
+
/** Called when user selects a tool */
|
|
15
|
+
onToolSelect?: (tool: string) => void;
|
|
16
|
+
/** Current magnet snap sensitivity: 0=off, 1=weak, 2=normal, 3=strong */
|
|
17
|
+
magnetSensitivity?: number;
|
|
18
|
+
/** Called when user cycles magnet sensitivity (M key equivalent) */
|
|
19
|
+
onMagnetCycle?: () => void;
|
|
20
|
+
/** Current PAT tier for premium tool gating */
|
|
21
|
+
patTier?: PatTier;
|
|
22
|
+
/** Called when a premium tool is clicked but blocked (insufficient tier) */
|
|
23
|
+
onPremiumToolClick?: (tool: string) => void;
|
|
24
|
+
/** Whether the drawing dock is open */
|
|
25
|
+
isDockOpen?: boolean;
|
|
26
|
+
/** Called when user toggles the drawing dock panel */
|
|
27
|
+
onToggleDock?: () => void;
|
|
28
|
+
/** Whether the toolbar is locked (docked) */
|
|
29
|
+
isLocked?: boolean;
|
|
30
|
+
/** Called when user toggles lock/dock state */
|
|
31
|
+
onToggleLock?: () => void;
|
|
32
|
+
}
|
|
33
|
+
export declare function DrawingToolbar({ activeTool, onToolSelect, magnetSensitivity, onMagnetCycle, patTier, onPremiumToolClick, isDockOpen, onToggleDock, isLocked, onToggleLock, }: DrawingToolbarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FloatingChartBar — hover-revealed chart navigation bar (GoCharting style).
|
|
3
|
+
*
|
|
4
|
+
* Rendered as last child of `.rsc-engine-surface`; auto-hide handled by
|
|
5
|
+
* `styles/floating-chart-bar.css`. All labels via `useWidgetI18n` (Rule 1).
|
|
6
|
+
* Root stops click/mousedown/pointerdown/contextmenu/doubleclick propagation
|
|
7
|
+
* so bar interaction never leaks into fork surface handlers (P3 drawings,
|
|
8
|
+
* price-scale menu). Toggle button only renders in multi-chart cells.
|
|
9
|
+
*/
|
|
10
|
+
export interface FloatingChartBarProps {
|
|
11
|
+
onZoomIn: () => void;
|
|
12
|
+
onZoomOut: () => void;
|
|
13
|
+
onPanLeft: () => void;
|
|
14
|
+
onPanRight: () => void;
|
|
15
|
+
onFitToData: () => void;
|
|
16
|
+
onToggleLayout?: () => void;
|
|
17
|
+
isSoloMode?: boolean;
|
|
18
|
+
panDisabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare function FloatingChartBar(props: FloatingChartBarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* P3 R-P3-02: floating quick-favorites bar.
|
|
3
|
+
*
|
|
4
|
+
* Draggable (grip handle) overlay listing the user's pinned drawing tools.
|
|
5
|
+
* Renders through the widget portal root (falls back to document.body, the
|
|
6
|
+
* MobileToolbar pattern) so host `overflow:hidden` containers never clip it.
|
|
7
|
+
* Tools persist via useFavoriteTools (`vnsc_favTools`); bar position persists
|
|
8
|
+
* in `vnsc_favToolsBarPos`. Hidden while no tool is pinned.
|
|
9
|
+
*/
|
|
10
|
+
export interface FloatingFavoritesBarProps {
|
|
11
|
+
favoriteTools: readonly string[];
|
|
12
|
+
activeTool?: string;
|
|
13
|
+
onToolSelect: (tool: string) => void;
|
|
14
|
+
onUnpin: (tool: string) => void;
|
|
15
|
+
isVisible?: boolean;
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function FloatingFavoritesBar({ favoriteTools, activeTool, onToolSelect, onUnpin, isVisible, onClose, }: FloatingFavoritesBarProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ChartLayout } from "../../VNInvestMultiCharts";
|
|
2
|
+
export interface MultiChartTopbarProps {
|
|
3
|
+
layout: ChartLayout;
|
|
4
|
+
onLayoutChange: (layout: ChartLayout) => void;
|
|
5
|
+
activeChartId: string | null;
|
|
6
|
+
activeSymbol?: string;
|
|
7
|
+
activeTimeframe?: string;
|
|
8
|
+
onSymbolChange: (symbol: string) => void;
|
|
9
|
+
onTimeframeChange: (timeframe: string) => void;
|
|
10
|
+
syncSettings: {
|
|
11
|
+
visibleRange: boolean;
|
|
12
|
+
crosshair: boolean;
|
|
13
|
+
drawings: boolean;
|
|
14
|
+
symbolLinks: boolean;
|
|
15
|
+
timeframe: boolean;
|
|
16
|
+
chartType: boolean;
|
|
17
|
+
replay: boolean;
|
|
18
|
+
};
|
|
19
|
+
onSyncChange: (key: string, value: boolean) => void;
|
|
20
|
+
onSaveWorkspace?: () => void;
|
|
21
|
+
onAddChart?: () => void;
|
|
22
|
+
onThemeToggle?: () => void;
|
|
23
|
+
isDark?: boolean;
|
|
24
|
+
isMobile?: boolean;
|
|
25
|
+
/** Mobile-only: search toggle */
|
|
26
|
+
onSearchToggle?: () => void;
|
|
27
|
+
/** Mobile-only: fullscreen toggle */
|
|
28
|
+
onFullscreenClick?: () => void;
|
|
29
|
+
isFullscreen?: boolean;
|
|
30
|
+
/** Mobile-only: snapshot click */
|
|
31
|
+
onSnapshotClick?: () => void;
|
|
32
|
+
/** Mobile-only: chart type */
|
|
33
|
+
chartType?: string;
|
|
34
|
+
onChartTypeChange?: (chartType: string) => void;
|
|
35
|
+
/** Mobile-only: compare toggle */
|
|
36
|
+
compareOpen?: boolean;
|
|
37
|
+
onCompareToggle?: () => void;
|
|
38
|
+
/** Mobile-only: replay */
|
|
39
|
+
replayPlaying?: boolean;
|
|
40
|
+
onReplayPlay?: () => void;
|
|
41
|
+
onReplayPause?: () => void;
|
|
42
|
+
/** System menu trigger (mobile) */
|
|
43
|
+
onSystemMenuOpen?: () => void;
|
|
44
|
+
/** Tier PAT đã xác minh — cổng cho chart type pro. Vắng ⇒ khoá (fail-closed). */
|
|
45
|
+
patTier?: string;
|
|
46
|
+
}
|
|
47
|
+
export declare function MultiChartTopbar({ layout, onLayoutChange, activeChartId, activeSymbol, activeTimeframe, onSymbolChange, onTimeframeChange, syncSettings, onSyncChange, onSaveWorkspace, onAddChart, onThemeToggle, isDark, isMobile, onSearchToggle, onFullscreenClick, isFullscreen, onSnapshotClick, chartType, onChartTypeChange, compareOpen, onCompareToggle, replayPlaying, onReplayPlay, onReplayPause, patTier, }: MultiChartTopbarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PatTier } from "@vninvestcharts/engine-core";
|
|
3
|
+
interface UnifiedDrawingToolbarProps {
|
|
4
|
+
/** The active chart ID to control */
|
|
5
|
+
activeChartId: string | null;
|
|
6
|
+
/** Chart refs map to access drawing managers */
|
|
7
|
+
chartRefs: Map<string, React.RefObject<any>>;
|
|
8
|
+
/** Whether the toolbar is locked open */
|
|
9
|
+
locked?: boolean;
|
|
10
|
+
/** Callback when lock state changes */
|
|
11
|
+
onLockChange?: (locked: boolean) => void;
|
|
12
|
+
/** Whether the toolbar is collapsed */
|
|
13
|
+
collapsed?: boolean;
|
|
14
|
+
/** Callback when collapse state changes */
|
|
15
|
+
onCollapseChange?: (collapsed: boolean) => void;
|
|
16
|
+
/** Custom className */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** Current PAT tier for premium tool gating */
|
|
19
|
+
patTier?: PatTier;
|
|
20
|
+
/** Called when a premium tool is clicked but blocked (insufficient tier) */
|
|
21
|
+
onPremiumToolClick?: (tool: string) => void;
|
|
22
|
+
/** Whether the drawing dock is open */
|
|
23
|
+
isDockOpen?: boolean;
|
|
24
|
+
/** Called when user toggles the drawing dock panel */
|
|
25
|
+
onToggleDock?: () => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const UnifiedDrawingToolbar: React.FC<UnifiedDrawingToolbarProps>;
|
|
28
|
+
export default UnifiedDrawingToolbar;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WE2 P2-07: PaperTradePanel
|
|
3
|
+
*
|
|
4
|
+
* @deprecated Task 11 — chỉ giữ làm compatibility shim cho public API.
|
|
5
|
+
* Dùng TradingBottomPanel (5 tabs) cho mọi bề mặt mới. Khối sizing trùng lặp
|
|
6
|
+
* đã gỡ (chỉ giữ 1 khối local-state). Panel showing paper trading positions,
|
|
7
|
+
* journal, and performance stats. Uses .vnsc- CSS classes for theme
|
|
8
|
+
* inheritance from .vnsc-root.
|
|
9
|
+
*/
|
|
10
|
+
export interface PaperTradePosition {
|
|
11
|
+
id: string;
|
|
12
|
+
side: "long" | "short";
|
|
13
|
+
entryPrice: number;
|
|
14
|
+
currentPrice: number;
|
|
15
|
+
quantity: number;
|
|
16
|
+
entryBar: number;
|
|
17
|
+
unrealizedPnl?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface PaperTradeJournalEntry {
|
|
20
|
+
id: string;
|
|
21
|
+
side: "long" | "short";
|
|
22
|
+
entryPrice: number;
|
|
23
|
+
exitPrice: number;
|
|
24
|
+
quantity: number;
|
|
25
|
+
pnl: number;
|
|
26
|
+
barsHeld: number;
|
|
27
|
+
}
|
|
28
|
+
export interface PaperTradeSizingConfig {
|
|
29
|
+
mode: "fixed" | "percent";
|
|
30
|
+
riskPercent: number;
|
|
31
|
+
initialEquity: number;
|
|
32
|
+
}
|
|
33
|
+
export interface PaperTradePanelProps {
|
|
34
|
+
positions: readonly PaperTradePosition[];
|
|
35
|
+
journal: readonly PaperTradeJournalEntry[];
|
|
36
|
+
sizing?: PaperTradeSizingConfig;
|
|
37
|
+
onSizingChange?: (cfg: PaperTradeSizingConfig) => void;
|
|
38
|
+
onReset?: () => void;
|
|
39
|
+
onClose?: () => void;
|
|
40
|
+
}
|
|
41
|
+
export declare function PaperTradePanel({ positions, journal, sizing, onSizingChange, onReset, onClose, }: PaperTradePanelProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { type CSSProperties, type ReactNode } from "react";
|
|
2
|
+
import type { StorageAdapter } from "@vninvestcharts/engine-react";
|
|
3
|
+
export interface WorkspaceInfo {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
updatedAt: number;
|
|
7
|
+
}
|
|
8
|
+
export interface WorkspaceToolbarProps {
|
|
9
|
+
currentWorkspaceId?: string;
|
|
10
|
+
currentWorkspaceName?: string;
|
|
11
|
+
workspaces: WorkspaceInfo[];
|
|
12
|
+
onSave: (workspaceId: string, name: string) => Promise<void>;
|
|
13
|
+
onLoad: (workspaceId: string) => Promise<void>;
|
|
14
|
+
onDelete?: (workspaceId: string) => Promise<void>;
|
|
15
|
+
onImport?: (file: File) => Promise<void>;
|
|
16
|
+
onExport?: (workspaceId: string) => Promise<void>;
|
|
17
|
+
storageAdapter?: StorageAdapter;
|
|
18
|
+
className?: string;
|
|
19
|
+
style?: CSSProperties;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
autoSaveEnabled?: boolean;
|
|
22
|
+
onAutoSaveToggle?: (enabled: boolean) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare const WorkspaceToolbar: React.FC<WorkspaceToolbarProps>;
|
|
25
|
+
export default WorkspaceToolbar;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool group configuration for drawing toolbar inside the widget.
|
|
3
|
+
* Covers 14 groups.
|
|
4
|
+
* Each group has id (for tracking) and labelKey (for i18n lookup in tool.group.*).
|
|
5
|
+
*/
|
|
6
|
+
export interface ToolGroup {
|
|
7
|
+
id: string;
|
|
8
|
+
labelKey: string;
|
|
9
|
+
tools: string[];
|
|
10
|
+
}
|
|
11
|
+
export declare const TOOL_GROUPS_V2: ToolGroup[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* P4: single source of truth for drawing-tool keyboard shortcuts.
|
|
3
|
+
* Merges the legacy single-letter map with the P4 additions. Uppercase keys
|
|
4
|
+
* are Shift-modified (e.key arrives uppercased while Shift is held).
|
|
5
|
+
*
|
|
6
|
+
* NOTE: `E` stays bound to `ellipse` (existing muscle memory); the eraser is
|
|
7
|
+
* toolbar-only.
|
|
8
|
+
*
|
|
9
|
+
* **2026-09-30:** this file is now the *only* shortcut source. The legacy
|
|
10
|
+
* `DRAWING_SHORTCUTS` table in `@vninvestcharts/engine-drawing` (`shortcutMap.ts`) and
|
|
11
|
+
* `SHORTCUTS` in `engine-react/adapters/KeyboardAdapter.ts` were both **deleted** as
|
|
12
|
+
* breaking changes in engine 3.0.0 — they had zero consumers and were a wrong second copy
|
|
13
|
+
* (bare `C`/`H`/`M` and `Ctrl+H` collided with bindings that really run). There is no
|
|
14
|
+
* longer a competing table to drift from.
|
|
15
|
+
*/
|
|
16
|
+
/** KeyboardEvent.key → DrawingToolType. Uppercase = Shift-held. */
|
|
17
|
+
export declare const TOOL_SHORTCUT_KEYS: Record<string, string>;
|
|
18
|
+
/** Display label for a shortcut key (Shift-held uppercase keys shown as such). */
|
|
19
|
+
export declare function shortcutDisplayLabel(key: string): string;
|
|
20
|
+
/** DrawingToolType → display shortcut label (tools without a binding map to ""). */
|
|
21
|
+
export declare const TOOL_SHORTCUT_LABELS: Record<string, string>;
|
|
22
|
+
/**
|
|
23
|
+
* P3: Alt-held industry bindings (TradingView parity). `KeyboardEvent.key`
|
|
24
|
+
* stays lowercase for letters while Alt is held (unlike Shift), so the map
|
|
25
|
+
* keys are lowercase. All four tools are free-tier — no PAT gating needed.
|
|
26
|
+
*/
|
|
27
|
+
export declare const ALT_TOOL_SHORTCUTS: Record<string, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const COMPARISON_COLORS: string[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Symbol search SSOT constants (SYMBOL_SEARCH P1).
|
|
3
|
+
* Single definition surface for futures/crypto fallbacks, timeframe
|
|
4
|
+
* aliases, recent-storage key and exchange filter options.
|
|
5
|
+
*/
|
|
6
|
+
import type { SymbolSearchItem } from "../types/symbolSearch";
|
|
7
|
+
export declare const RECENT_SYMBOLS_KEY = "vni_recent_symbols";
|
|
8
|
+
export declare const MAX_RECENT = 10;
|
|
9
|
+
export type ExchangeFilter = "ALL" | "HOSE" | "HNX" | "UPCOM";
|
|
10
|
+
export declare const EXCHANGE_OPTIONS: ExchangeFilter[];
|
|
11
|
+
export declare const TIMEFRAME_ALIASES: Record<string, string>;
|
|
12
|
+
export declare const FUTURES_SYMBOLS: SymbolSearchItem[];
|
|
13
|
+
export declare const CRYPTO_SYMBOLS: SymbolSearchItem[];
|
|
14
|
+
export { VN30_SYMBOLS } from "./vn30";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VN30 basket — single source of truth (moved from VNSymbolSearch).
|
|
3
|
+
* Consumed by symbol search sections and the Phase 4b watchlist fallback.
|
|
4
|
+
*/
|
|
5
|
+
export declare const VN30_SYMBOLS: string[];
|
|
6
|
+
/** Static display names for the VN30 basket (watchlist fallback rows). */
|
|
7
|
+
export declare const VN30_NAMES: Record<string, string>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
import { type IChartDataProvider } from "../types/dataProvider";
|
|
3
|
+
export declare const DataProviderContext: React.Context<IChartDataProvider | null>;
|
|
4
|
+
export declare function DataProviderProvider({ provider, children, }: {
|
|
5
|
+
provider: IChartDataProvider | null;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}): React.FunctionComponentElement<React.ProviderProps<IChartDataProvider | null>>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WE2 P1-05: HoverEmitter
|
|
3
|
+
*
|
|
4
|
+
* Ref-based EventTarget emitter for high-frequency hover/mouse coordinate events.
|
|
5
|
+
*
|
|
6
|
+
* Why not React state?
|
|
7
|
+
* Hover events fire on every pixel the mouse moves. Pushing these through
|
|
8
|
+
* React state would trigger a re-render on every pixel — causing jank.
|
|
9
|
+
*
|
|
10
|
+
* Why not mitt?
|
|
11
|
+
* EventTarget is a native browser API — zero bundle size impact.
|
|
12
|
+
* CustomEvent supports structured data via the `detail` property.
|
|
13
|
+
*
|
|
14
|
+
* Usage:
|
|
15
|
+
* // In provider:
|
|
16
|
+
* const hoverEmitterRef = useRef<EventTarget>(createHoverEmitter());
|
|
17
|
+
*
|
|
18
|
+
* // Emit from canvas surface:
|
|
19
|
+
* emitHover(hoverEmitterRef, { datum, pixelX, pixelY, paneId });
|
|
20
|
+
*
|
|
21
|
+
* // Subscribe in OHLCHeader, tooltip, etc:
|
|
22
|
+
* useHoverSubscription(hoverEmitterRef, (payload) => { ... });
|
|
23
|
+
*/
|
|
24
|
+
import { type RefObject } from "react";
|
|
25
|
+
import type { EnrichedDatum } from "../../lib/core/calculators/types";
|
|
26
|
+
export interface HoverEventPayload {
|
|
27
|
+
datum: EnrichedDatum | undefined;
|
|
28
|
+
pixelX: number;
|
|
29
|
+
pixelY: number;
|
|
30
|
+
paneId: string | undefined;
|
|
31
|
+
}
|
|
32
|
+
export type HoverEmitter = EventTarget;
|
|
33
|
+
export declare function createHoverEmitter(): HoverEmitter;
|
|
34
|
+
/** Emit a hover event — safe to call on every mouse move. */
|
|
35
|
+
export declare function emitHover(emitter: HoverEmitter, payload: HoverEventPayload): void;
|
|
36
|
+
/** Clear hover state (e.g., when mouse leaves chart). */
|
|
37
|
+
export declare function clearHover(emitter: HoverEmitter): void;
|
|
38
|
+
/**
|
|
39
|
+
* Subscribe to hover events without causing React re-renders on every pixel.
|
|
40
|
+
* The callback receives the payload and can update local DOM refs directly.
|
|
41
|
+
*
|
|
42
|
+
* If you DO want React state updates, pass a setState function as the callback,
|
|
43
|
+
* but be aware this will trigger re-renders on every hover event.
|
|
44
|
+
*/
|
|
45
|
+
export declare function useHoverSubscription(emitterRef: RefObject<HoverEmitter | null>, callback: (payload: HoverEventPayload) => void): void;
|
|
46
|
+
/**
|
|
47
|
+
* React hook that bridges hover events into React state.
|
|
48
|
+
* Use sparingly — only when a component truly needs hover data in its render output.
|
|
49
|
+
*/
|
|
50
|
+
export declare function useHoverState(emitterRef: RefObject<HoverEmitter | null>): HoverEventPayload | null;
|