gloomberb 0.16.0 → 0.16.2
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/README.md +2 -1
- package/package.json +2 -1
- package/src/api-client/beneficial-owners.ts +92 -0
- package/src/api-client/data.ts +44 -11
- package/src/api-client/errors.ts +12 -0
- package/src/api-client/geo.ts +363 -0
- package/src/api-client/index.ts +5 -0
- package/src/api-client/market-discovery.ts +10 -0
- package/src/api-client/members.ts +26 -0
- package/src/api-client/paths.ts +30 -1
- package/src/api-client/perps.ts +41 -0
- package/src/api-client/request.ts +5 -2
- package/src/api-client/types.ts +9 -1
- package/src/app/global-shortcuts.ts +14 -6
- package/src/app/keybindings/actions.ts +1 -1
- package/src/app/runtime/update.ts +38 -2
- package/src/app.tsx +10 -6
- package/src/brokers/account-cache.ts +24 -0
- package/src/cli/commands/command-utils.ts +8 -0
- package/src/cli/commands/crypto-hints.ts +75 -0
- package/src/cli/commands/market.ts +414 -106
- package/src/cli/commands/overview.ts +77 -32
- package/src/cli/commands/ticker.ts +101 -43
- package/src/cli/desktop-pane-shot.ts +34 -4
- package/src/cli/freshness.ts +61 -0
- package/src/cli/help.ts +1 -0
- package/src/cli/helpers.ts +4 -8
- package/src/cli/index.ts +12 -2
- package/src/cli/listing-arg.ts +321 -0
- package/src/cli/pane-functions/access-gate.ts +42 -0
- package/src/cli/pane-functions/catalog.ts +28 -1
- package/src/cli/pane-functions/data.ts +3 -1
- package/src/cli/pane-functions/dom.ts +20 -2
- package/src/cli/pane-functions/freshness.ts +400 -0
- package/src/cli/pane-functions/function-help.ts +36 -22
- package/src/cli/pane-functions/headless.ts +39 -11
- package/src/cli/pane-functions/index.ts +15 -4
- package/src/cli/pane-functions/options.ts +3 -0
- package/src/cli/pane-functions/report.ts +4 -0
- package/src/cli/pane-functions/resolver.ts +35 -7
- package/src/cli/pane-functions/screenshot-evidence.ts +2 -0
- package/src/cli/pane-functions/screenshot.ts +7 -3
- package/src/cli/result.ts +41 -27
- package/src/cli/ticker-resolution.ts +7 -5
- package/src/components/chart/composite/composite-chart.tsx +88 -2536
- package/src/components/chart/composite/drawing-store.ts +59 -0
- package/src/components/chart/composite/legend.tsx +319 -0
- package/src/components/chart/composite/panel-bitmap.ts +139 -0
- package/src/components/chart/composite/panel-gestures.ts +59 -0
- package/src/components/chart/composite/panel-labels.ts +107 -0
- package/src/components/chart/composite/panel-surface.tsx +876 -0
- package/src/components/chart/composite/tool-catalog.ts +98 -0
- package/src/components/chart/composite/toolbar.tsx +186 -0
- package/src/components/chart/composite/tools.ts +8 -0
- package/src/components/chart/composite/use-composite-chart-keyboard.ts +703 -0
- package/src/components/chart/composite/use-composite-viewport.ts +143 -0
- package/src/components/command-bar/commands/collection.ts +5 -1
- package/src/components/command-bar/list/model.ts +5 -0
- package/src/components/command-bar/list/view.tsx +16 -3
- package/src/components/command-bar/pane-templates/workflow.ts +1 -0
- package/src/components/command-bar/routes/root/command-items.ts +9 -2
- package/src/components/command-bar/routes/root/plugin-install.ts +2 -2
- package/src/components/command-bar/routes/root/provider-search.ts +19 -5
- package/src/components/command-bar/routes/root/runtime.ts +14 -5
- package/src/components/command-bar/routes/ticker-search/actions.ts +5 -0
- package/src/components/command-bar/routes/ticker-search/results.ts +31 -5
- package/src/components/command-bar/routes/ticker-search/route.ts +2 -2
- package/src/components/command-bar/routing/actions.ts +2 -0
- package/src/components/command-bar/selection-runtime.ts +38 -0
- package/src/components/command-bar/surface/index.tsx +7 -2
- package/src/components/command-bar/workflow/ops.ts +1 -1
- package/src/components/command-bar/workflow/tickers.ts +6 -0
- package/src/components/data-table/view.tsx +29 -10
- package/src/components/feedback-dialog.tsx +2 -1
- package/src/components/form-modal/field-row.tsx +2 -2
- package/src/components/index.ts +2 -2
- package/src/components/layout/detached-pane-shell.tsx +6 -3
- package/src/components/layout/floating-pane.tsx +6 -0
- package/src/components/layout/header.tsx +24 -7
- package/src/components/layout/missing-pane.tsx +2 -2
- package/src/components/layout/pane/content.tsx +23 -10
- package/src/components/layout/pane/error-boundary.tsx +103 -0
- package/src/components/layout/pane/footer/registration.tsx +68 -23
- package/src/components/layout/pane/header.tsx +61 -28
- package/src/components/layout/pane/index.tsx +6 -0
- package/src/components/layout/pane/title.ts +31 -7
- package/src/components/layout/shell/drag/index.ts +6 -5
- package/src/components/layout/shell/drag/runtime.ts +3 -0
- package/src/components/layout/shell/index.tsx +6 -0
- package/src/components/layout/shell/menu.ts +2 -1
- package/src/components/layout/shell/pane/actions.ts +2 -1
- package/src/components/layout/shell/pane/layers.tsx +29 -10
- package/src/components/layout/shell/terminal-pointer-runtime.ts +24 -3
- package/src/components/layout/shell/ticker-link-menu.ts +23 -9
- package/src/components/metric-treemap/heat-surface.tsx +745 -0
- package/src/components/metric-treemap/heat-tiles.ts +228 -0
- package/src/components/metric-treemap/index.tsx +2 -0
- package/src/components/metric-treemap/layout.ts +8 -0
- package/src/components/metric-treemap/scene.ts +432 -0
- package/src/components/onboarding/onboarding-keyboard.ts +311 -0
- package/src/components/onboarding/onboarding-wizard.tsx +101 -788
- package/src/components/onboarding/use-onboarding-broker-form.ts +263 -0
- package/src/components/onboarding/use-onboarding-progress.ts +298 -0
- package/src/components/onboarding/use-onboarding-upgrade.ts +83 -0
- package/src/components/pane-settings-dialog/field-dialogs.tsx +1 -0
- package/src/components/ticker/list-table-view.tsx +13 -1
- package/src/components/toggle-list.tsx +38 -12
- package/src/components/ui/country-flag-art.tsx +449 -0
- package/src/components/ui/country-flag.tsx +41 -0
- package/src/components/ui/data-table/types.ts +13 -0
- package/src/components/ui/fields.tsx +8 -0
- package/src/components/ui/icon.tsx +2 -0
- package/src/components/ui/index.ts +4 -0
- package/src/components/ui/multi-select/dialog.tsx +108 -22
- package/src/components/ui/range-track.tsx +53 -0
- package/src/components/ui/status.tsx +8 -2
- package/src/components/ui/tabs.tsx +11 -4
- package/src/components/ui/text-prompt-dialog.tsx +4 -2
- package/src/core/state/app/types.ts +10 -1
- package/src/data/config/store/normalize.ts +17 -1
- package/src/i18n/es.ts +24 -4
- package/src/i18n/ja.ts +24 -4
- package/src/i18n/ko.ts +24 -4
- package/src/i18n/zh-cn.ts +24 -4
- package/src/i18n/zh-tw.ts +24 -4
- package/src/layout/ticker-navigation.ts +28 -2
- package/src/market-data/coordinator/chart.ts +1 -1
- package/src/market-data/coordinator/quotes.ts +23 -4
- package/src/market-data/fx-closes.ts +72 -0
- package/src/market-data/market/freshness.ts +78 -6
- package/src/market-data/market/session-close-note.ts +57 -0
- package/src/market-data/market/status.ts +151 -0
- package/src/market-data/published-apac-sessions.ts +66 -0
- package/src/market-data/quotes/contributions.ts +8 -0
- package/src/market-data/quotes/freshness.ts +36 -0
- package/src/market-data/quotes/resolution.ts +24 -8
- package/src/market-data/quotes/screener-live-quotes.ts +49 -4
- package/src/market-data/quotes/time.ts +16 -0
- package/src/plugins/builtin/account-management/pane.tsx +4 -0
- package/src/plugins/builtin/alerts/cli.ts +10 -5
- package/src/plugins/builtin/alerts/index.tsx +1 -0
- package/src/plugins/builtin/analytics/metrics.ts +8 -3
- package/src/plugins/builtin/analytics/risk-client.ts +330 -79
- package/src/plugins/builtin/analytics/risk-fx.ts +102 -0
- package/src/plugins/builtin/analytics/risk-headless.ts +61 -49
- package/src/plugins/builtin/analytics/risk-math.ts +33 -13
- package/src/plugins/builtin/analytics/risk-model.ts +282 -64
- package/src/plugins/builtin/analytics/risk-pane.tsx +62 -30
- package/src/plugins/builtin/analytics/risk-test-data.ts +206 -0
- package/src/plugins/builtin/attention/headless.ts +6 -4
- package/src/plugins/builtin/attention/index.tsx +1 -1
- package/src/plugins/builtin/attention/pane.tsx +1 -1
- package/src/plugins/builtin/awards/headless.ts +1 -0
- package/src/plugins/builtin/awards/pane.tsx +1 -1
- package/src/plugins/builtin/backtest/headless.ts +1 -0
- package/src/plugins/builtin/bond-calculator/headless.ts +1 -0
- package/src/plugins/builtin/buildout/cells.tsx +15 -12
- package/src/plugins/builtin/buildout/detail/company.tsx +3 -3
- package/src/plugins/builtin/buildout/detail/index.tsx +0 -1
- package/src/plugins/builtin/buildout/detail/intel.tsx +6 -6
- package/src/plugins/builtin/buildout/detail/site.tsx +4 -7
- package/src/plugins/builtin/buildout/detail/ui.tsx +0 -19
- package/src/plugins/builtin/buildout/index.tsx +1 -0
- package/src/plugins/builtin/catalysts/headless.ts +3 -1
- package/src/plugins/builtin/catalysts/index.tsx +2 -2
- package/src/plugins/builtin/catalysts/pane.tsx +3 -1
- package/src/plugins/builtin/cds/headless.ts +2 -0
- package/src/plugins/builtin/cds/index.tsx +1 -0
- package/src/plugins/builtin/central-bank-rates/headless.ts +1 -0
- package/src/plugins/builtin/chart-composer/headless.ts +38 -3
- package/src/plugins/builtin/chart-composer/index.tsx +3 -1
- package/src/plugins/builtin/chart-composer/series-expression.ts +18 -2
- package/src/plugins/builtin/chat/channels.ts +19 -3
- package/src/plugins/builtin/chat/content/composer-runtime.ts +28 -13
- package/src/plugins/builtin/chat/content/footer.tsx +15 -6
- package/src/plugins/builtin/chat/content/index.tsx +120 -21
- package/src/plugins/builtin/chat/content/new-dm-dialog.tsx +261 -113
- package/src/plugins/builtin/chat/content/transcript.tsx +20 -2
- package/src/plugins/builtin/chat/direct-messages.ts +200 -0
- package/src/plugins/builtin/chat/index.tsx +1 -0
- package/src/plugins/builtin/chat/message/desktop.tsx +3 -0
- package/src/plugins/builtin/chat/message/header.tsx +16 -6
- package/src/plugins/builtin/chat/message/inline-tokens.tsx +72 -32
- package/src/plugins/builtin/chat/message/profile-popover.tsx +96 -12
- package/src/plugins/builtin/chat/message/terminal.tsx +3 -0
- package/src/plugins/builtin/chat/message/types.ts +14 -2
- package/src/plugins/builtin/chat/profile-popover.ts +18 -13
- package/src/plugins/builtin/clinical-trials/index.tsx +1 -0
- package/src/plugins/builtin/cloud/askg/executor.ts +2 -1
- package/src/plugins/builtin/cloud/plugin.tsx +1 -0
- package/src/plugins/builtin/cloud/team/module.tsx +1 -0
- package/src/plugins/builtin/cloud/thesis/module.tsx +1 -0
- package/src/plugins/builtin/cloud-tweets/registration.ts +1 -0
- package/src/plugins/builtin/comment-letters/index.tsx +1 -0
- package/src/plugins/builtin/company-attention/headless.ts +5 -1
- package/src/plugins/builtin/company-attention/pane.tsx +1 -1
- package/src/plugins/builtin/company-kpis/headless.ts +1 -0
- package/src/plugins/builtin/congress-trades/headless.ts +1 -0
- package/src/plugins/builtin/correlation/compute.ts +59 -16
- package/src/plugins/builtin/correlation/geo.ts +34 -0
- package/src/plugins/builtin/correlation/headless-schema.ts +4 -1
- package/src/plugins/builtin/correlation/headless.ts +42 -8
- package/src/plugins/builtin/correlation/history.ts +2 -0
- package/src/plugins/builtin/correlation/index.tsx +68 -14
- package/src/plugins/builtin/correlation/matrix/model.ts +17 -2
- package/src/plugins/builtin/correlation/matrix/selection.ts +5 -3
- package/src/plugins/builtin/correlation/relationship/model.ts +1 -1
- package/src/plugins/builtin/correlation/relationship/pane.tsx +4 -2
- package/src/plugins/builtin/correlation/relationship/view-model.ts +16 -1
- package/src/plugins/builtin/correlation/settings.ts +1 -1
- package/src/plugins/builtin/cot/headless.ts +6 -3
- package/src/plugins/builtin/cot/index.tsx +3 -3
- package/src/plugins/builtin/cot/model.ts +36 -3
- package/src/plugins/builtin/cpi/headless.ts +4 -0
- package/src/plugins/builtin/credit-boards/headless.ts +2 -0
- package/src/plugins/builtin/credit-conditions/headless.ts +1 -0
- package/src/plugins/builtin/credit-documents/gauge.tsx +5 -8
- package/src/plugins/builtin/credit-documents/headless.ts +2 -0
- package/src/plugins/builtin/crypto-board/headless.ts +3 -0
- package/src/plugins/builtin/custom-view/loader.ts +1 -1
- package/src/plugins/builtin/debt-maturities/headless.ts +4 -0
- package/src/plugins/builtin/debt-maturities/wall-bar.tsx +14 -41
- package/src/plugins/builtin/dividend-yield/client.ts +4 -2
- package/src/plugins/builtin/dividend-yield/headless.ts +1 -0
- package/src/plugins/builtin/doe/headless.ts +7 -0
- package/src/plugins/builtin/doe/range-bar.tsx +7 -37
- package/src/plugins/builtin/earnings/client.ts +2 -2
- package/src/plugins/builtin/earnings/headless.ts +5 -0
- package/src/plugins/builtin/earnings-calls/headless.ts +1 -0
- package/src/plugins/builtin/earnings-calls/index.tsx +1 -0
- package/src/plugins/builtin/earnings-ripple/client.ts +91 -18
- package/src/plugins/builtin/earnings-ripple/headless.ts +28 -8
- package/src/plugins/builtin/earnings-ripple/index.tsx +2 -2
- package/src/plugins/builtin/earnings-ripple/model.ts +97 -7
- package/src/plugins/builtin/earnings-ripple/pane.tsx +148 -23
- package/src/plugins/builtin/econ/index.tsx +1 -0
- package/src/plugins/builtin/econ-statistics/headless.ts +2 -0
- package/src/plugins/builtin/equity-screener/headless.ts +2 -0
- package/src/plugins/builtin/estimate-revisions/headless.ts +1 -0
- package/src/plugins/builtin/executives/index.tsx +1 -0
- package/src/plugins/builtin/exposure/headless.ts +3 -1
- package/src/plugins/builtin/fear-greed/headless.ts +2 -0
- package/src/plugins/builtin/filing-events/index.tsx +1 -0
- package/src/plugins/builtin/futures-curve/client.ts +12 -3
- package/src/plugins/builtin/futures-curve/headless.ts +39 -10
- package/src/plugins/builtin/futures-curve/index.tsx +3 -3
- package/src/plugins/builtin/futures-curve/model.ts +188 -4
- package/src/plugins/builtin/futures-curve/pane.tsx +51 -9
- package/src/plugins/builtin/fx-matrix/direction.ts +81 -0
- package/src/plugins/builtin/fx-matrix/index.tsx +71 -33
- package/src/plugins/builtin/fx-matrix/live-legs.ts +17 -0
- package/src/plugins/builtin/fx-matrix/pairs.ts +68 -14
- package/src/plugins/builtin/fx-matrix/settings.ts +62 -0
- package/src/plugins/builtin/gpu/headless.ts +7 -3
- package/src/plugins/builtin/gpu/ladder.tsx +26 -30
- package/src/plugins/builtin/gpu/model.ts +27 -1
- package/src/plugins/builtin/holders/beneficial-client.ts +209 -0
- package/src/plugins/builtin/holders/beneficial-model.ts +279 -0
- package/src/plugins/builtin/holders/beneficial-report.ts +126 -0
- package/src/plugins/builtin/holders/beneficial-view.tsx +241 -0
- package/src/plugins/builtin/holders/headless.ts +139 -5
- package/src/plugins/builtin/holders/index.tsx +10 -3
- package/src/plugins/builtin/holders/pane.tsx +20 -3
- package/src/plugins/builtin/holders/report-header.ts +95 -0
- package/src/plugins/builtin/holders/table-model.ts +20 -5
- package/src/plugins/builtin/holders/thirteenf-match.ts +29 -1
- package/src/plugins/builtin/holders/types.ts +2 -1
- package/src/plugins/builtin/insider/headless.ts +2 -0
- package/src/plugins/builtin/ipo-calendar/headless.ts +1 -0
- package/src/plugins/builtin/iv-history/headless.ts +4 -1
- package/src/plugins/builtin/jobs/headless.ts +1 -0
- package/src/plugins/builtin/jobs/index.tsx +1 -0
- package/src/plugins/builtin/jobs/share-bars.tsx +5 -28
- package/src/plugins/builtin/kelly-sizer/index.tsx +1 -0
- package/src/plugins/builtin/macro-day/headless.ts +2 -0
- package/src/plugins/builtin/market-halts/index.tsx +1 -0
- package/src/plugins/builtin/market-heatmap/data.ts +30 -2
- package/src/plugins/builtin/market-heatmap/headless.ts +135 -0
- package/src/plugins/builtin/market-heatmap/index.tsx +245 -81
- package/src/plugins/builtin/market-heatmap/live.ts +88 -0
- package/src/plugins/builtin/market-heatmap/model.ts +146 -0
- package/src/plugins/builtin/market-heatmap/portfolio.ts +50 -11
- package/src/plugins/builtin/market-movers/client.ts +3 -2
- package/src/plugins/builtin/market-movers/headless.ts +10 -1
- package/src/plugins/builtin/market-movers/screener.ts +18 -5
- package/src/plugins/builtin/market-valuation/headless.ts +2 -0
- package/src/plugins/builtin/members/client.ts +53 -0
- package/src/plugins/builtin/members/headless.ts +35 -0
- package/src/plugins/builtin/members/index.tsx +20 -0
- package/src/plugins/builtin/members/model.ts +68 -0
- package/src/plugins/builtin/members/pane.tsx +175 -0
- package/src/plugins/builtin/mna/distress/headless.ts +1 -0
- package/src/plugins/builtin/mna/headless.ts +1 -0
- package/src/plugins/builtin/mna/index.tsx +2 -1
- package/src/plugins/builtin/mna/pane.tsx +5 -2
- package/src/plugins/builtin/money-markets/headless.ts +1 -0
- package/src/plugins/builtin/news/headless.ts +2 -0
- package/src/plugins/builtin/news/wire/index.tsx +8 -1
- package/src/plugins/builtin/notes/cli.ts +14 -6
- package/src/plugins/builtin/notes/index.tsx +1 -0
- package/src/plugins/builtin/openfda/index.tsx +1 -0
- package/src/plugins/builtin/options/index.tsx +2 -1
- package/src/plugins/builtin/options-calculator/headless.ts +2 -0
- package/src/plugins/builtin/options-positioning/headless.ts +3 -0
- package/src/plugins/builtin/options-scenario/headless.ts +5 -0
- package/src/plugins/builtin/pe-band/client.ts +74 -2
- package/src/plugins/builtin/pe-band/headless.ts +26 -8
- package/src/plugins/builtin/pe-band/model.ts +102 -22
- package/src/plugins/builtin/pe-band/pane.tsx +34 -16
- package/src/plugins/builtin/pe-band/report-dates.ts +78 -0
- package/src/plugins/builtin/perps/client.ts +66 -5
- package/src/plugins/builtin/perps/equity-identity.ts +16 -0
- package/src/plugins/builtin/perps/equity-row.tsx +6 -4
- package/src/plugins/builtin/perps/headless.ts +144 -16
- package/src/plugins/builtin/perps/index.tsx +6 -6
- package/src/plugins/builtin/perps/model.ts +189 -12
- package/src/plugins/builtin/perps/pane.tsx +248 -47
- package/src/plugins/builtin/plugin-marketplace/activation.ts +19 -0
- package/src/plugins/builtin/plugin-marketplace/pane.tsx +2 -2
- package/src/plugins/builtin/plugin-marketplace/store.ts +2 -0
- package/src/plugins/builtin/portfolio-list/allocation.ts +245 -0
- package/src/plugins/builtin/portfolio-list/cached-account.ts +33 -0
- package/src/plugins/builtin/portfolio-list/cell-version.ts +19 -1
- package/src/plugins/builtin/portfolio-list/cli/portfolio-command.ts +328 -29
- package/src/plugins/builtin/portfolio-list/cli/render.ts +230 -39
- package/src/plugins/builtin/portfolio-list/cli/shared.ts +67 -2
- package/src/plugins/builtin/portfolio-list/cli/watchlist-command.ts +35 -31
- package/src/plugins/builtin/portfolio-list/column-values.ts +124 -47
- package/src/plugins/builtin/portfolio-list/headless.ts +98 -16
- package/src/plugins/builtin/portfolio-list/index.tsx +14 -3
- package/src/plugins/builtin/portfolio-list/live-valuation.ts +7 -5
- package/src/plugins/builtin/portfolio-list/mutations.ts +55 -1
- package/src/plugins/builtin/portfolio-list/pane/data.ts +6 -0
- package/src/plugins/builtin/portfolio-list/pane/index.tsx +47 -13
- package/src/plugins/builtin/portfolio-list/quick-add/index.tsx +43 -2
- package/src/plugins/builtin/portfolio-list/quick-add/resolution.ts +48 -5
- package/src/plugins/builtin/portfolio-list/settings.ts +33 -2
- package/src/plugins/builtin/portfolio-list/summary/index.tsx +24 -1
- package/src/plugins/builtin/portfolio-list/summary/totals.ts +26 -7
- package/src/plugins/builtin/power/headless.ts +3 -1
- package/src/plugins/builtin/rate-path/headless.ts +2 -0
- package/src/plugins/builtin/realized-vol/headless.ts +2 -0
- package/src/plugins/builtin/relative-rotation/headless.ts +2 -0
- package/src/plugins/builtin/research/analyst-headless.ts +3 -0
- package/src/plugins/builtin/research/events-headless.ts +2 -0
- package/src/plugins/builtin/research/headless.ts +2 -0
- package/src/plugins/builtin/research/index.tsx +1 -0
- package/src/plugins/builtin/research/relative-valuation-headless.ts +10 -5
- package/src/plugins/builtin/research/relative-valuation-model.ts +11 -3
- package/src/plugins/builtin/research/relative-valuation-pane.tsx +3 -3
- package/src/plugins/builtin/research-search/index.tsx +1 -0
- package/src/plugins/builtin/revenue-breakdown/headless.ts +2 -0
- package/src/plugins/builtin/reverse-dcf/headless.ts +2 -0
- package/src/plugins/builtin/risk-factors/headless.ts +2 -0
- package/src/plugins/builtin/scanner/flow-history.ts +2 -13
- package/src/plugins/builtin/scanner/headless.ts +14 -0
- package/src/plugins/builtin/scanner/hilo-bars.tsx +12 -70
- package/src/plugins/builtin/scanner/hilo-model.ts +0 -18
- package/src/plugins/builtin/seasonality/headless.ts +2 -0
- package/src/plugins/builtin/sec/command-bar-search.ts +14 -4
- package/src/plugins/builtin/sec/filing-content.ts +42 -17
- package/src/plugins/builtin/sec/forms.ts +12 -0
- package/src/plugins/builtin/sec/headless.ts +2 -0
- package/src/plugins/builtin/sectors/client.ts +1 -0
- package/src/plugins/builtin/sectors/headless.ts +9 -1
- package/src/plugins/builtin/sectors/move-bar.tsx +10 -32
- package/src/plugins/builtin/sectors/sector-model.ts +2 -0
- package/src/plugins/builtin/shared/crypto-pair.ts +14 -0
- package/src/plugins/builtin/shared/locked-rows.tsx +1 -1
- package/src/plugins/builtin/shared/report-freshness.ts +57 -0
- package/src/plugins/builtin/shared/research-cells.tsx +4 -9
- package/src/plugins/builtin/short-interest/headless.ts +2 -0
- package/src/plugins/builtin/short-interest/watch-headless.ts +1 -0
- package/src/plugins/builtin/short-volume/headless.ts +1 -0
- package/src/plugins/builtin/social-mentions/headless.ts +1 -0
- package/src/plugins/builtin/social-mentions/index.tsx +1 -1
- package/src/plugins/builtin/supply-chain/headless.ts +7 -1
- package/src/plugins/builtin/supply-chain/index.tsx +10 -1
- package/src/plugins/builtin/supply-chain/model.ts +27 -2
- package/src/plugins/builtin/supply-chain/pane.tsx +71 -32
- package/src/plugins/builtin/themes/headless.ts +3 -0
- package/src/plugins/builtin/thirteenf/headless.ts +110 -25
- package/src/plugins/builtin/thirteenf/index.tsx +2 -1
- package/src/plugins/builtin/thirteenf/report-notes.ts +149 -0
- package/src/plugins/builtin/ticker-detail/headless.ts +7 -1
- package/src/plugins/builtin/ticker-detail/index.tsx +1 -0
- package/src/plugins/builtin/ticker-detail/overview/components.tsx +5 -60
- package/src/plugins/builtin/ticker-detail/overview/model.ts +9 -2
- package/src/plugins/builtin/ticker-detail/overview/pane.tsx +1 -1
- package/src/plugins/builtin/ticker-detail/overview-tab.tsx +26 -26
- package/src/plugins/builtin/ticker-detail/pane.tsx +1 -1
- package/src/plugins/builtin/ticker-detail/quote-footer.ts +7 -1
- package/src/plugins/builtin/ticker-detail/quote-monitor/card.tsx +20 -4
- package/src/plugins/builtin/ticker-detail/quote-monitor/index.tsx +2 -2
- package/src/plugins/builtin/time-sales/headless.ts +5 -1
- package/src/plugins/builtin/treasury-auctions/headless.ts +1 -0
- package/src/plugins/builtin/vol-surface/index.tsx +1 -1
- package/src/plugins/builtin/volatility/headless.ts +6 -1
- package/src/plugins/builtin/world-indices/headless.ts +2 -0
- package/src/plugins/builtin/world-venue-map/basemap-layer.tsx +157 -0
- package/src/plugins/builtin/world-venue-map/basemap.ts +214 -0
- package/src/plugins/builtin/world-venue-map/client.ts +45 -0
- package/src/plugins/builtin/world-venue-map/entity-detail.tsx +147 -0
- package/src/plugins/builtin/world-venue-map/entity-table.ts +59 -0
- package/src/plugins/builtin/world-venue-map/evidence.ts +77 -0
- package/src/plugins/builtin/world-venue-map/feed.ts +293 -0
- package/src/plugins/builtin/world-venue-map/geo-draw.tsx +248 -0
- package/src/plugins/builtin/world-venue-map/geo-series.ts +142 -0
- package/src/plugins/builtin/world-venue-map/geo-svg.tsx +447 -0
- package/src/plugins/builtin/world-venue-map/headless.ts +146 -0
- package/src/plugins/builtin/world-venue-map/ids.ts +1 -0
- package/src/plugins/builtin/world-venue-map/index.ts +67 -4
- package/src/plugins/builtin/world-venue-map/layered-pane.tsx +552 -0
- package/src/plugins/builtin/world-venue-map/layers.ts +348 -0
- package/src/plugins/builtin/world-venue-map/map-symbols.ts +220 -0
- package/src/plugins/builtin/world-venue-map/map.tsx +381 -45
- package/src/plugins/builtin/world-venue-map/model.ts +7 -4
- package/src/plugins/builtin/world-venue-map/natural-earth/index.chunk.ts +199 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/world-50m.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/pane.tsx +28 -43
- package/src/plugins/builtin/world-venue-map/use-geo.ts +55 -0
- package/src/plugins/builtin/world-venue-map/venue-header.tsx +32 -0
- package/src/plugins/builtin/yield-curve/headless.ts +16 -0
- package/src/plugins/catalog-browser.ts +2 -0
- package/src/plugins/catalog-manifest.ts +1 -0
- package/src/plugins/catalog-ui.ts +3 -1
- package/src/plugins/catalog.ts +1 -1
- package/src/plugins/host-link.ts +33 -1
- package/src/plugins/installer.ts +48 -12
- package/src/plugins/loader.ts +30 -3
- package/src/plugins/manager-node.ts +15 -5
- package/src/plugins/registry/index.ts +1 -1
- package/src/plugins/registry/pane-settings.ts +26 -7
- package/src/public/__snapshots__/public-api.test.ts.snap +2 -0
- package/src/renderers/dom/build-assets.ts +81 -3
- package/src/renderers/dom/data-table/row.tsx +52 -16
- package/src/renderers/dom/desktop/controls.tsx +7 -3
- package/src/renderers/dom/desktop/icons.tsx +1 -0
- package/src/renderers/dom/desktop/list-view.tsx +35 -10
- package/src/renderers/dom/desktop/popover.tsx +73 -14
- package/src/renderers/dom/host/box.tsx +69 -26
- package/src/renderers/dom/host/input.tsx +14 -3
- package/src/renderers/dom/host/tabs.tsx +37 -1
- package/src/renderers/dom/styles.css +41 -7
- package/src/renderers/electrobun/bun/desktop/backend-requests.ts +11 -6
- package/src/renderers/electrobun/bun/desktop/backend.ts +1 -0
- package/src/renderers/electrobun/bun/desktop/update.ts +181 -87
- package/src/renderers/electrobun/bun/index.ts +73 -6
- package/src/renderers/electrobun/bun/window/remembered-frame.ts +122 -0
- package/src/renderers/electrobun/shared/protocol.ts +3 -0
- package/src/renderers/electrobun/view/backend-rpc.ts +10 -4
- package/src/renderers/electrobun/view/cli-pane-shot-entry.tsx +3 -1
- package/src/renderers/electrobun/view/main.tsx +7 -1
- package/src/renderers/electrobun/view/renderer-window-error.ts +18 -0
- package/src/renderers/electrobun/view/rpc-timeout.ts +14 -3
- package/src/renderers/electrobun/view/update-host.ts +45 -21
- package/src/renderers/opentui/host.tsx +5 -0
- package/src/sources/gloomberb-cloud/index.ts +25 -4
- package/src/sources/gloomberb-cloud/normalizers.ts +36 -5
- package/src/sources/provider-router/cached-routes.ts +4 -1
- package/src/sources/provider-router/financials.ts +11 -8
- package/src/sources/provider-router/history.ts +15 -10
- package/src/sources/sec-registrant.ts +75 -0
- package/src/state/app/context/index.tsx +24 -8
- package/src/state/hooks/quote-streaming.ts +41 -26
- package/src/sync/core-contributors.ts +4 -0
- package/src/telemetry/benign-window-error.ts +7 -0
- package/src/telemetry/crash-reports-dom.ts +2 -0
- package/src/telemetry/crash-reports.ts +4 -1
- package/src/test-support/cli-context.ts +10 -2
- package/src/test-support/daily-nav.ts +25 -0
- package/src/theme/heat-colors.ts +357 -2
- package/src/tickers/instrument-kind.ts +34 -7
- package/src/tickers/search/asset-classes.ts +24 -9
- package/src/tickers/search/index.ts +44 -11
- package/src/tickers/search/ranking.ts +23 -3
- package/src/time-series/resolve.ts +1 -1
- package/src/time-series/use-chart-resolution.ts +1 -1
- package/src/types/context-menu.ts +6 -0
- package/src/types/data-provider.ts +2 -0
- package/src/types/financials.ts +5 -0
- package/src/types/headless.ts +79 -2
- package/src/types/plugin.ts +38 -6
- package/src/types/ticker.ts +15 -0
- package/src/ui/context-menu.tsx +1 -0
- package/src/ui/host.tsx +16 -0
- package/src/updater/index.ts +38 -13
- package/src/utils/async-deadline.ts +21 -0
- package/src/utils/cli-output.ts +5 -1
- package/src/utils/crypto-pair.ts +41 -0
- package/src/utils/currency-units.ts +14 -0
- package/src/utils/depositary-receipt.ts +26 -0
- package/src/utils/exchanges.ts +72 -0
- package/src/utils/fire-and-forget.ts +24 -0
- package/src/utils/format.ts +13 -0
- package/src/utils/price-earnings.ts +70 -3
- package/src/utils/price-history.ts +58 -13
- package/src/utils/rpc-timeout-error.ts +27 -0
- package/src/utils/sec.ts +13 -1
- package/src/utils/utc-time.ts +79 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { useEffect, useRef } from "react";
|
|
2
|
+
import { usePaneSettingValue } from "../../../state/app/context";
|
|
3
|
+
import { CHART_DRAWINGS_SETTING_KEY, parseChartDrawings, type ChartDrawing } from "./tools";
|
|
4
|
+
|
|
5
|
+
let nextDrawingSequence = 1;
|
|
6
|
+
|
|
7
|
+
export function nextDrawingId(): string {
|
|
8
|
+
return `drawing:${nextDrawingSequence++}`;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Levels are stored with the account, so their ids must not repeat across sessions. */
|
|
12
|
+
export function nextLevelId(): string {
|
|
13
|
+
return `${Date.now().toString(36)}-${(nextDrawingSequence++).toString(36)}`;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const NO_DRAWINGS: readonly ChartDrawing[] = [];
|
|
17
|
+
/** Coalesces a drag into one write instead of one per pointer move. */
|
|
18
|
+
const DRAWING_PERSIST_DELAY_MS = 400;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Drawings are anchored to data, so they outlive the mounted chart: they ride
|
|
22
|
+
* along with the pane settings that already carry the chart spec. Only mounted
|
|
23
|
+
* inside a pane, so a standalone chart still renders without app state.
|
|
24
|
+
*/
|
|
25
|
+
export function ChartDrawingStore({
|
|
26
|
+
paneInstanceId,
|
|
27
|
+
drawings,
|
|
28
|
+
onRestore,
|
|
29
|
+
}: {
|
|
30
|
+
paneInstanceId: string;
|
|
31
|
+
drawings: readonly ChartDrawing[];
|
|
32
|
+
onRestore: (drawings: readonly ChartDrawing[]) => void;
|
|
33
|
+
}) {
|
|
34
|
+
const [stored, setStored] = usePaneSettingValue<readonly ChartDrawing[]>(
|
|
35
|
+
CHART_DRAWINGS_SETTING_KEY,
|
|
36
|
+
NO_DRAWINGS,
|
|
37
|
+
paneInstanceId,
|
|
38
|
+
);
|
|
39
|
+
const restoredRef = useRef<readonly ChartDrawing[] | null>(null);
|
|
40
|
+
if (restoredRef.current === null) {
|
|
41
|
+
restoredRef.current = parseChartDrawings(stored);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
const restored = restoredRef.current;
|
|
46
|
+
if (restored && restored.length > 0) onRestore(restored);
|
|
47
|
+
// Restoring once on mount: later writes must not scroll back in time.
|
|
48
|
+
}, []);
|
|
49
|
+
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
const restored = restoredRef.current ?? NO_DRAWINGS;
|
|
52
|
+
if (drawings === restored) return;
|
|
53
|
+
if (drawings.length === 0 && restored.length === 0) return;
|
|
54
|
+
const timer = setTimeout(() => setStored(drawings), DRAWING_PERSIST_DELAY_MS);
|
|
55
|
+
return () => clearTimeout(timer);
|
|
56
|
+
}, [drawings, setStored]);
|
|
57
|
+
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { useEffect, useRef } from "react";
|
|
2
|
+
import { Box, ScrollBox, Text, useUiCapabilities, type ScrollBoxRenderable } from "../../../ui";
|
|
3
|
+
import { colors as themeColors, hoverBg } from "../../../theme/colors";
|
|
4
|
+
import { CANONICAL_EXCHANGE_ALIASES } from "../../../utils/exchanges";
|
|
5
|
+
import { displayWidth, formatPercentRaw, truncateToDisplayWidth } from "../../../utils/format";
|
|
6
|
+
import type { ResolvedSeries } from "../../../time-series/types";
|
|
7
|
+
import { consumeChartMouseEvent, type ChartMouseEvent } from "../core/pointer";
|
|
8
|
+
import { formatCompositePointDetails, formatCompositeSeriesValue, seriesPriceReference } from "./format";
|
|
9
|
+
import type { CompositeChartProps, CompositeChartScene } from "./types";
|
|
10
|
+
|
|
11
|
+
const LEGEND_WHEEL_DELTA_PER_CELL = 8;
|
|
12
|
+
|
|
13
|
+
function legendValue(
|
|
14
|
+
series: ResolvedSeries,
|
|
15
|
+
value: number | null,
|
|
16
|
+
formatValue: CompositeChartProps["formatValue"],
|
|
17
|
+
scene: CompositeChartScene | null,
|
|
18
|
+
): string {
|
|
19
|
+
if (value === null) return "—";
|
|
20
|
+
return formatValue ? formatValue(value, series) : formatCompositeSeriesValue(value, series, axisPriceReference(scene, series));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** The reference the axis holding a series keeps for its asset, so an average
|
|
24
|
+
* of the price shows the price's decimals rather than its own float tail. A
|
|
25
|
+
* series far from that price (another coin on a shared axis) keeps its own. */
|
|
26
|
+
function axisPriceReference(scene: CompositeChartScene | null, series: ResolvedSeries): number | undefined {
|
|
27
|
+
const own = seriesPriceReference(series);
|
|
28
|
+
for (const panel of scene?.panels ?? []) {
|
|
29
|
+
for (const domain of [panel.axes.left, panel.axes.right]) {
|
|
30
|
+
if (!domain?.seriesIds.includes(series.id)) continue;
|
|
31
|
+
const shared = domain.priceReferences?.[series.priceAssetCategory ?? ""];
|
|
32
|
+
if (shared === undefined || own === undefined) return own ?? shared;
|
|
33
|
+
const ratio = Math.abs(own / shared);
|
|
34
|
+
return ratio > 0.1 && ratio < 10 ? shared : own;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return own;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const LISTED_TICKER_PATTERN = /(^|[\s(])([A-Z0-9^][A-Z0-9.^=/-]*):([A-Z0-9]{2,})(?=$|[\s),])/g;
|
|
41
|
+
|
|
42
|
+
/** `Volume AAPL:XNAS Price` → `Volume AAPL Price`, for a legend name that must shorten. */
|
|
43
|
+
function withoutListingExchange(label: string): string {
|
|
44
|
+
return label.replace(LISTED_TICKER_PATTERN, (match, lead: string, symbol: string, exchange: string) => (
|
|
45
|
+
CANONICAL_EXCHANGE_ALIASES[exchange] ? `${lead}${symbol}` : match
|
|
46
|
+
));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CompositeLegend({
|
|
50
|
+
scene,
|
|
51
|
+
series,
|
|
52
|
+
visibleSeriesIds,
|
|
53
|
+
width,
|
|
54
|
+
accessory,
|
|
55
|
+
accessoryWidth,
|
|
56
|
+
formatValue,
|
|
57
|
+
showLatestChangePercent,
|
|
58
|
+
onActivate,
|
|
59
|
+
onToggleSeries,
|
|
60
|
+
isSeriesToggleable,
|
|
61
|
+
keyboardIndex,
|
|
62
|
+
}: {
|
|
63
|
+
scene: CompositeChartScene | null;
|
|
64
|
+
series: ResolvedSeries[];
|
|
65
|
+
visibleSeriesIds: ReadonlySet<string>;
|
|
66
|
+
width: number;
|
|
67
|
+
accessory: CompositeChartProps["legendAccessory"];
|
|
68
|
+
accessoryWidth: CompositeChartProps["legendAccessoryWidth"];
|
|
69
|
+
formatValue: CompositeChartProps["formatValue"];
|
|
70
|
+
showLatestChangePercent: CompositeChartProps["showLatestChangePercent"];
|
|
71
|
+
onActivate: CompositeChartProps["onActivate"];
|
|
72
|
+
onToggleSeries: CompositeChartProps["onToggleSeries"];
|
|
73
|
+
isSeriesToggleable: CompositeChartProps["isSeriesToggleable"];
|
|
74
|
+
keyboardIndex?: number | null;
|
|
75
|
+
}) {
|
|
76
|
+
const isDesktopWeb = useUiCapabilities().nativePaneChrome === true;
|
|
77
|
+
const scrollRef = useRef<ScrollBoxRenderable | null>(null);
|
|
78
|
+
const cursorValueById = new Map(
|
|
79
|
+
scene?.cursorValues.map((entry) => [entry.seriesId, entry] as const) ?? [],
|
|
80
|
+
);
|
|
81
|
+
const entries = series.map((entry) => {
|
|
82
|
+
const toggleable = !!onToggleSeries && (isSeriesToggleable?.(entry) ?? true);
|
|
83
|
+
const cursorValue = cursorValueById.get(entry.id);
|
|
84
|
+
const changeText = showLatestChangePercent
|
|
85
|
+
&& !scene?.cursorDate
|
|
86
|
+
&& typeof entry.latestChangePercent === "number"
|
|
87
|
+
&& Number.isFinite(entry.latestChangePercent)
|
|
88
|
+
? ` ${formatPercentRaw(entry.latestChangePercent)}`
|
|
89
|
+
: "";
|
|
90
|
+
const valueText = entry.points.length === 0
|
|
91
|
+
? entry.hidden ? "" : "no data"
|
|
92
|
+
: `${legendValue(
|
|
93
|
+
entry,
|
|
94
|
+
cursorValue?.value ?? null,
|
|
95
|
+
formatValue,
|
|
96
|
+
scene,
|
|
97
|
+
)}${changeText}`;
|
|
98
|
+
const fullText = [entry.label, valueText].filter(Boolean).join(" ");
|
|
99
|
+
const details = formatCompositePointDetails(cursorValue?.point);
|
|
100
|
+
const exactTotal = entry.unitGroup.split(":")[0] === "currency-total"
|
|
101
|
+
&& cursorValue?.value != null && Number.isFinite(cursorValue.value)
|
|
102
|
+
? `Value ${cursorValue.value} ${entry.unit}` : "";
|
|
103
|
+
const tooltip = [fullText, exactTotal, details].filter(Boolean).join(" · ");
|
|
104
|
+
const label = entry.label;
|
|
105
|
+
const compactLabel = withoutListingExchange(label);
|
|
106
|
+
const labelWidth = displayWidth(label);
|
|
107
|
+
const text = [label, valueText].filter(Boolean).join(" ");
|
|
108
|
+
return {
|
|
109
|
+
entry,
|
|
110
|
+
label,
|
|
111
|
+
compactLabel,
|
|
112
|
+
text,
|
|
113
|
+
width: Math.max(1, displayWidth(text)) + 2,
|
|
114
|
+
labelWidth,
|
|
115
|
+
valueText,
|
|
116
|
+
toggleable,
|
|
117
|
+
tooltip,
|
|
118
|
+
};
|
|
119
|
+
});
|
|
120
|
+
type LegendEntry = (typeof entries)[number];
|
|
121
|
+
const setEntryLabel = (target: LegendEntry, label: string, labelWidth: number) => {
|
|
122
|
+
target.label = label;
|
|
123
|
+
target.labelWidth = labelWidth;
|
|
124
|
+
target.text = [truncateToDisplayWidth(label, labelWidth), target.valueText].filter(Boolean).join(" ");
|
|
125
|
+
target.width = Math.max(1, displayWidth(target.text)) + 2;
|
|
126
|
+
};
|
|
127
|
+
const measureSeriesWidth = () => entries.reduce(
|
|
128
|
+
(total, entry, index) => total + entry.width + (index > 0 ? 1 : 0),
|
|
129
|
+
0,
|
|
130
|
+
);
|
|
131
|
+
// One cell in from the pane border, so the first marker and the legend text
|
|
132
|
+
// line up with the query bar and tables above and below the chart.
|
|
133
|
+
const inset = width > 1 ? 1 : 0;
|
|
134
|
+
const innerWidth = Math.max(0, width - inset);
|
|
135
|
+
const resolvedAccessoryWidth = accessory
|
|
136
|
+
? Math.max(1, Math.min(innerWidth, Math.floor(accessoryWidth ?? 14)))
|
|
137
|
+
: 0;
|
|
138
|
+
const reservedAccessoryGap = accessory && innerWidth > resolvedAccessoryWidth ? 1 : 0;
|
|
139
|
+
// The cursor date lives on the time axis, where the crosshair points at it.
|
|
140
|
+
const widthBeforeAccessory = Math.max(0, innerWidth - resolvedAccessoryWidth - reservedAccessoryGap);
|
|
141
|
+
// Names get the room the row has. When it overflows, the widest name
|
|
142
|
+
// shortens first: its listing exchange goes before any of the name is cut.
|
|
143
|
+
// The value (including its sign/unit) always stays intact. If the row cannot
|
|
144
|
+
// fit even with every name at a readable fragment, it keeps the old 30-cell
|
|
145
|
+
// entries and scrolls.
|
|
146
|
+
const minimumSeriesWidth = entries.reduce((total, entry, index) => {
|
|
147
|
+
const text = [truncateToDisplayWidth(entry.compactLabel, Math.min(8, displayWidth(entry.compactLabel))), entry.valueText]
|
|
148
|
+
.filter(Boolean).join(" ");
|
|
149
|
+
return total + Math.max(1, displayWidth(text)) + 2 + (index > 0 ? 1 : 0);
|
|
150
|
+
}, 0);
|
|
151
|
+
if (minimumSeriesWidth <= widthBeforeAccessory) {
|
|
152
|
+
while (measureSeriesWidth() > widthBeforeAccessory) {
|
|
153
|
+
const shrinkable = entries
|
|
154
|
+
.filter((entry) => entry.label !== entry.compactLabel || entry.labelWidth > 8)
|
|
155
|
+
.sort((left, right) => right.labelWidth - left.labelWidth)[0];
|
|
156
|
+
if (!shrinkable) break;
|
|
157
|
+
if (shrinkable.label !== shrinkable.compactLabel) {
|
|
158
|
+
setEntryLabel(shrinkable, shrinkable.compactLabel, Math.min(shrinkable.labelWidth, displayWidth(shrinkable.compactLabel)));
|
|
159
|
+
} else {
|
|
160
|
+
setEntryLabel(shrinkable, shrinkable.label, shrinkable.labelWidth - 1);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
} else {
|
|
164
|
+
for (const entry of entries) {
|
|
165
|
+
const budget = Math.max(0, 30 - (entry.valueText ? displayWidth(entry.valueText) + 1 : 0));
|
|
166
|
+
if (entry.labelWidth > budget) setEntryLabel(entry, entry.compactLabel, budget);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
const desiredSeriesWidth = measureSeriesWidth();
|
|
170
|
+
const seriesWidth = Math.min(desiredSeriesWidth, widthBeforeAccessory);
|
|
171
|
+
const accessorySpacerWidth = accessory
|
|
172
|
+
? Math.max(reservedAccessoryGap, innerWidth - seriesWidth - resolvedAccessoryWidth)
|
|
173
|
+
: 0;
|
|
174
|
+
const keyboardEntryStart = keyboardIndex === null || keyboardIndex === undefined
|
|
175
|
+
? null
|
|
176
|
+
: entries.slice(0, keyboardIndex).reduce(
|
|
177
|
+
(total, entry, index) => total + entry.width + (index > 0 ? 1 : 0),
|
|
178
|
+
0,
|
|
179
|
+
) + (keyboardIndex > 0 ? 1 : 0);
|
|
180
|
+
const keyboardEntryEnd = keyboardEntryStart === null
|
|
181
|
+
? null
|
|
182
|
+
: keyboardEntryStart + (entries[keyboardIndex!]?.width ?? 0);
|
|
183
|
+
|
|
184
|
+
useEffect(() => {
|
|
185
|
+
if (keyboardEntryStart === null || keyboardEntryEnd === null) return;
|
|
186
|
+
const scrollBox = scrollRef.current;
|
|
187
|
+
const viewportWidth = scrollBox?.viewport?.width || scrollBox?.width || seriesWidth;
|
|
188
|
+
if (!scrollBox || viewportWidth <= 0) return;
|
|
189
|
+
const currentLeft = scrollBox.scrollLeft ?? 0;
|
|
190
|
+
const nextLeft = keyboardEntryStart < currentLeft
|
|
191
|
+
? keyboardEntryStart
|
|
192
|
+
: keyboardEntryEnd > currentLeft + viewportWidth
|
|
193
|
+
? keyboardEntryEnd - viewportWidth
|
|
194
|
+
: currentLeft;
|
|
195
|
+
if (nextLeft === currentLeft) return;
|
|
196
|
+
scrollBox.scrollLeft = nextLeft;
|
|
197
|
+
scrollBox.scrollTo({ x: nextLeft, y: scrollBox.scrollTop });
|
|
198
|
+
}, [keyboardEntryEnd, keyboardEntryStart, seriesWidth]);
|
|
199
|
+
const handleMouseScroll = (event?: {
|
|
200
|
+
preventDefault?: () => void;
|
|
201
|
+
stopPropagation?: () => void;
|
|
202
|
+
scroll?: { direction?: string; delta?: number };
|
|
203
|
+
}) => {
|
|
204
|
+
const direction = event?.scroll?.direction;
|
|
205
|
+
const scrollBox = scrollRef.current;
|
|
206
|
+
const viewportWidth = scrollBox?.viewport?.width || scrollBox?.width || 0;
|
|
207
|
+
const contentWidth = Math.max(desiredSeriesWidth, scrollBox?.scrollWidth ?? 0);
|
|
208
|
+
if (!direction || !scrollBox || viewportWidth <= 0 || contentWidth <= viewportWidth) return;
|
|
209
|
+
|
|
210
|
+
event.preventDefault?.();
|
|
211
|
+
event.stopPropagation?.();
|
|
212
|
+
const rawDelta = Math.abs(event.scroll?.delta ?? 1);
|
|
213
|
+
const deltaCells = Math.max(1, Math.round(rawDelta / LEGEND_WHEEL_DELTA_PER_CELL));
|
|
214
|
+
const directionSign = direction === "right" || direction === "down" ? 1 : -1;
|
|
215
|
+
const nextLeft = Math.max(
|
|
216
|
+
0,
|
|
217
|
+
Math.min(
|
|
218
|
+
contentWidth - viewportWidth,
|
|
219
|
+
(scrollBox.scrollLeft ?? 0) + directionSign * deltaCells,
|
|
220
|
+
),
|
|
221
|
+
);
|
|
222
|
+
scrollBox.scrollLeft = nextLeft;
|
|
223
|
+
scrollBox.scrollTo({ x: nextLeft, y: scrollBox.scrollTop });
|
|
224
|
+
};
|
|
225
|
+
return (
|
|
226
|
+
<Box
|
|
227
|
+
flexDirection="row"
|
|
228
|
+
alignItems="flex-end"
|
|
229
|
+
width={width}
|
|
230
|
+
height={1}
|
|
231
|
+
paddingLeft={inset}
|
|
232
|
+
overflow="visible"
|
|
233
|
+
// Accessory dropdowns must escape above the sibling drawing toolbar.
|
|
234
|
+
zIndex={accessory ? 40 : 20}
|
|
235
|
+
data-gloom-role="composite-chart-legend"
|
|
236
|
+
>
|
|
237
|
+
{seriesWidth > 0 ? (
|
|
238
|
+
<ScrollBox
|
|
239
|
+
ref={scrollRef}
|
|
240
|
+
width={seriesWidth}
|
|
241
|
+
height={1}
|
|
242
|
+
flexShrink={0}
|
|
243
|
+
scrollX
|
|
244
|
+
focusable={false}
|
|
245
|
+
horizontalScrollbarOptions={{ visible: false }}
|
|
246
|
+
onMouseScroll={handleMouseScroll}
|
|
247
|
+
data-gloom-role="composite-chart-legend-scroll"
|
|
248
|
+
>
|
|
249
|
+
<Box flexDirection="row" width={desiredSeriesWidth} height={1} gap={1}>
|
|
250
|
+
{entries.map(({ entry, text, toggleable, tooltip, width: entryWidth }, index) => {
|
|
251
|
+
const entryVisible = visibleSeriesIds.has(entry.id);
|
|
252
|
+
return (
|
|
253
|
+
<Box
|
|
254
|
+
key={entry.id}
|
|
255
|
+
flexDirection="row"
|
|
256
|
+
alignItems="center"
|
|
257
|
+
width={entryWidth}
|
|
258
|
+
height={1}
|
|
259
|
+
flexShrink={0}
|
|
260
|
+
overflow="hidden"
|
|
261
|
+
backgroundColor={keyboardIndex === index ? themeColors.selected : undefined}
|
|
262
|
+
hoverBackgroundColor={toggleable ? hoverBg() : undefined}
|
|
263
|
+
onMouseDown={toggleable ? (event: ChartMouseEvent) => {
|
|
264
|
+
onActivate?.();
|
|
265
|
+
consumeChartMouseEvent(event);
|
|
266
|
+
onToggleSeries?.(entry.id);
|
|
267
|
+
} : undefined}
|
|
268
|
+
cursor={toggleable ? "pointer" : undefined}
|
|
269
|
+
data-gloom-interactive={toggleable ? "true" : undefined}
|
|
270
|
+
data-gloom-role="composite-chart-legend-series"
|
|
271
|
+
data-gloom-label={`${toggleable
|
|
272
|
+
? `${entryVisible ? "Hide" : "Show"} `
|
|
273
|
+
: ""}${tooltip}`}
|
|
274
|
+
data-visible={entryVisible ? "true" : "false"}
|
|
275
|
+
title={isDesktopWeb ? tooltip : undefined}
|
|
276
|
+
>
|
|
277
|
+
{isDesktopWeb ? (
|
|
278
|
+
<Box
|
|
279
|
+
flexShrink={0}
|
|
280
|
+
style={{
|
|
281
|
+
width: 8,
|
|
282
|
+
height: 8,
|
|
283
|
+
marginInlineEnd: 6,
|
|
284
|
+
borderRadius: 999,
|
|
285
|
+
border: `1px solid ${entry.color}`,
|
|
286
|
+
backgroundColor: entryVisible ? entry.color : "transparent",
|
|
287
|
+
}}
|
|
288
|
+
data-gloom-role="composite-chart-legend-marker"
|
|
289
|
+
/>
|
|
290
|
+
) : (
|
|
291
|
+
<Text fg={entryVisible ? entry.color : themeColors.textMuted}>● </Text>
|
|
292
|
+
)}
|
|
293
|
+
{/* The filled/hollow marker already says whether a series is
|
|
294
|
+
shown; the word only repeated it in every legend slot. */}
|
|
295
|
+
<Text fg={entryVisible ? themeColors.text : themeColors.textDim}>{text}</Text>
|
|
296
|
+
</Box>
|
|
297
|
+
);
|
|
298
|
+
})}
|
|
299
|
+
</Box>
|
|
300
|
+
</ScrollBox>
|
|
301
|
+
) : null}
|
|
302
|
+
{accessorySpacerWidth > 0 ? (
|
|
303
|
+
<Box width={accessorySpacerWidth} flexShrink={0} />
|
|
304
|
+
) : null}
|
|
305
|
+
{accessory ? (
|
|
306
|
+
<Box
|
|
307
|
+
position="relative"
|
|
308
|
+
width={resolvedAccessoryWidth}
|
|
309
|
+
flexShrink={0}
|
|
310
|
+
height={1}
|
|
311
|
+
overflow="visible"
|
|
312
|
+
zIndex={21}
|
|
313
|
+
>
|
|
314
|
+
{accessory}
|
|
315
|
+
</Box>
|
|
316
|
+
) : null}
|
|
317
|
+
</Box>
|
|
318
|
+
);
|
|
319
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
2
|
+
import type { NativeChartBitmap } from "../native/chart-rasterizer";
|
|
3
|
+
import type { StaticChartBitmapSize } from "./bitmap";
|
|
4
|
+
import { renderCompositePanelBitmap } from "./rasterizer";
|
|
5
|
+
import type { CompositeChartColors, CompositePanelScene } from "./types";
|
|
6
|
+
|
|
7
|
+
// A short resize-only delay coalesces geometry churn without delaying
|
|
8
|
+
// live-data paints or depending on a foreground animation frame.
|
|
9
|
+
const DESKTOP_BITMAP_RESIZE_DEBOUNCE_MS = 32;
|
|
10
|
+
|
|
11
|
+
function renderPanelBitmap(
|
|
12
|
+
panel: CompositePanelScene,
|
|
13
|
+
bitmapSize: StaticChartBitmapSize,
|
|
14
|
+
colors: CompositeChartColors,
|
|
15
|
+
snapGridToRows = false,
|
|
16
|
+
): NativeChartBitmap {
|
|
17
|
+
return renderCompositePanelBitmap(panel, {
|
|
18
|
+
pixelWidth: bitmapSize.pixelWidth,
|
|
19
|
+
pixelHeight: bitmapSize.pixelHeight,
|
|
20
|
+
colors,
|
|
21
|
+
snapGridToRows,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function useCompositePanelBitmap({
|
|
26
|
+
panel,
|
|
27
|
+
bitmapSize,
|
|
28
|
+
colors,
|
|
29
|
+
isDesktopWeb,
|
|
30
|
+
}: {
|
|
31
|
+
panel: CompositePanelScene;
|
|
32
|
+
bitmapSize: StaticChartBitmapSize | null;
|
|
33
|
+
colors: CompositeChartColors;
|
|
34
|
+
isDesktopWeb: boolean;
|
|
35
|
+
}): NativeChartBitmap | null {
|
|
36
|
+
const [desktopBitmap, setDesktopBitmap] = useState<NativeChartBitmap | null>(null);
|
|
37
|
+
const desktopBitmapRef = useRef<NativeChartBitmap | null>(null);
|
|
38
|
+
const desktopRenderInputRef = useRef<{
|
|
39
|
+
panel: CompositePanelScene;
|
|
40
|
+
pixelWidth: number;
|
|
41
|
+
pixelHeight: number;
|
|
42
|
+
colors: CompositeChartColors;
|
|
43
|
+
} | null>(null);
|
|
44
|
+
const desktopRequestedSizeRef = useRef<{ pixelWidth: number; pixelHeight: number } | null>(null);
|
|
45
|
+
const desktopRenderedSizeRef = useRef<{ pixelWidth: number; pixelHeight: number } | null>(null);
|
|
46
|
+
const desktopRenderTimerRef = useRef<ReturnType<typeof globalThis.setTimeout> | null>(null);
|
|
47
|
+
const desktopActiveRef = useRef(false);
|
|
48
|
+
const pixelWidth = bitmapSize?.pixelWidth ?? null;
|
|
49
|
+
const pixelHeight = bitmapSize?.pixelHeight ?? null;
|
|
50
|
+
|
|
51
|
+
desktopRenderInputRef.current = isDesktopWeb && pixelWidth !== null && pixelHeight !== null
|
|
52
|
+
? { panel, pixelWidth, pixelHeight, colors }
|
|
53
|
+
: null;
|
|
54
|
+
|
|
55
|
+
// The cursor is drawn as a separate overlay, so the plot raster stays cached
|
|
56
|
+
// (and resident in the terminal) while the crosshair moves.
|
|
57
|
+
const terminalBitmap = useMemo(() => {
|
|
58
|
+
if (isDesktopWeb || !bitmapSize) return null;
|
|
59
|
+
return renderPanelBitmap(panel, bitmapSize, colors, true);
|
|
60
|
+
}, [bitmapSize, colors, isDesktopWeb, panel]);
|
|
61
|
+
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
const cancelRender = () => {
|
|
64
|
+
if (desktopRenderTimerRef.current === null) return;
|
|
65
|
+
clearTimeout(desktopRenderTimerRef.current);
|
|
66
|
+
desktopRenderTimerRef.current = null;
|
|
67
|
+
};
|
|
68
|
+
const scheduleRender = (delay: number) => {
|
|
69
|
+
if (desktopRenderTimerRef.current !== null) return;
|
|
70
|
+
desktopRenderTimerRef.current = globalThis.setTimeout(() => {
|
|
71
|
+
desktopRenderTimerRef.current = null;
|
|
72
|
+
if (!desktopActiveRef.current) return;
|
|
73
|
+
const input = desktopRenderInputRef.current;
|
|
74
|
+
if (!input) return;
|
|
75
|
+
const next = renderPanelBitmap(
|
|
76
|
+
input.panel,
|
|
77
|
+
{ pixelWidth: input.pixelWidth, pixelHeight: input.pixelHeight },
|
|
78
|
+
input.colors,
|
|
79
|
+
);
|
|
80
|
+
if (!desktopActiveRef.current) return;
|
|
81
|
+
desktopRenderedSizeRef.current = {
|
|
82
|
+
pixelWidth: input.pixelWidth,
|
|
83
|
+
pixelHeight: input.pixelHeight,
|
|
84
|
+
};
|
|
85
|
+
desktopBitmapRef.current = next;
|
|
86
|
+
setDesktopBitmap(next);
|
|
87
|
+
}, delay);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
if (!isDesktopWeb) {
|
|
91
|
+
desktopActiveRef.current = false;
|
|
92
|
+
cancelRender();
|
|
93
|
+
desktopRequestedSizeRef.current = null;
|
|
94
|
+
desktopRenderedSizeRef.current = null;
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (pixelWidth === null || pixelHeight === null) {
|
|
98
|
+
desktopActiveRef.current = false;
|
|
99
|
+
cancelRender();
|
|
100
|
+
desktopRequestedSizeRef.current = null;
|
|
101
|
+
desktopRenderedSizeRef.current = null;
|
|
102
|
+
desktopBitmapRef.current = null;
|
|
103
|
+
setDesktopBitmap((current) => current === null ? current : null);
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
desktopActiveRef.current = true;
|
|
108
|
+
const nextSize = { pixelWidth, pixelHeight };
|
|
109
|
+
const requestedSize = desktopRequestedSizeRef.current;
|
|
110
|
+
const requestedSizeChanged = !requestedSize
|
|
111
|
+
|| requestedSize.pixelWidth !== pixelWidth
|
|
112
|
+
|| requestedSize.pixelHeight !== pixelHeight;
|
|
113
|
+
desktopRequestedSizeRef.current = nextSize;
|
|
114
|
+
const renderedSize = desktopRenderedSizeRef.current;
|
|
115
|
+
const sizeAlreadyRendered = !!renderedSize
|
|
116
|
+
&& renderedSize.pixelWidth === pixelWidth
|
|
117
|
+
&& renderedSize.pixelHeight === pixelHeight;
|
|
118
|
+
|
|
119
|
+
if (!desktopBitmapRef.current || sizeAlreadyRendered) {
|
|
120
|
+
if (requestedSizeChanged) cancelRender();
|
|
121
|
+
scheduleRender(0);
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (!requestedSizeChanged || desktopRenderTimerRef.current !== null) return;
|
|
126
|
+
scheduleRender(DESKTOP_BITMAP_RESIZE_DEBOUNCE_MS);
|
|
127
|
+
}, [colors, isDesktopWeb, panel, pixelHeight, pixelWidth]);
|
|
128
|
+
|
|
129
|
+
useEffect(() => () => {
|
|
130
|
+
desktopActiveRef.current = false;
|
|
131
|
+
if (desktopRenderTimerRef.current !== null) {
|
|
132
|
+
clearTimeout(desktopRenderTimerRef.current);
|
|
133
|
+
desktopRenderTimerRef.current = null;
|
|
134
|
+
}
|
|
135
|
+
}, []);
|
|
136
|
+
|
|
137
|
+
if (!bitmapSize) return null;
|
|
138
|
+
return isDesktopWeb ? desktopBitmap : terminalBitmap;
|
|
139
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { ChartMouseEvent } from "../core/pointer";
|
|
2
|
+
import { compositeViewportPositions, type CompositeNavigationFrame, type CompositeViewportRange } from "./interactions";
|
|
3
|
+
|
|
4
|
+
export const COMPOSITE_PANEL_ROLE = "composite-chart-panel";
|
|
5
|
+
|
|
6
|
+
export function isVerticalWheelDirection(
|
|
7
|
+
direction: "up" | "down" | "left" | "right",
|
|
8
|
+
): direction is "up" | "down" {
|
|
9
|
+
return direction === "up" || direction === "down";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface PanGesture {
|
|
13
|
+
kind: "pan";
|
|
14
|
+
startGlobalX: number;
|
|
15
|
+
frame: CompositeNavigationFrame;
|
|
16
|
+
startViewport: CompositeViewportRange;
|
|
17
|
+
positionsPerCell: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* A drag pans in the frame it started in; see `CompositeNavigationFrame`. The
|
|
22
|
+
* plot covers the viewport plus its reserved right offset, so a cell is worth
|
|
23
|
+
* that much time and the bars keep pace with the pointer.
|
|
24
|
+
*/
|
|
25
|
+
export function startPanGesture(
|
|
26
|
+
frame: CompositeNavigationFrame,
|
|
27
|
+
viewport: CompositeViewportRange,
|
|
28
|
+
plotWidth: number,
|
|
29
|
+
globalX: number,
|
|
30
|
+
plotSpanFactor: number,
|
|
31
|
+
): PanGesture {
|
|
32
|
+
const positions = compositeViewportPositions(frame, viewport);
|
|
33
|
+
const span = positions ? Math.max(positions.end - positions.start, Number.EPSILON) : 1;
|
|
34
|
+
return {
|
|
35
|
+
kind: "pan",
|
|
36
|
+
startGlobalX: globalX,
|
|
37
|
+
frame,
|
|
38
|
+
startViewport: viewport,
|
|
39
|
+
positionsPerCell: span * plotSpanFactor / Math.max(plotWidth, 1),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface PendingWheel {
|
|
44
|
+
/** Fraction of the visible span, positive toward older observations. */
|
|
45
|
+
panRatio: number;
|
|
46
|
+
zoomLog: number;
|
|
47
|
+
anchorRatio: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** Blurs a focused text field, the focus change a consumed mousedown prevents. */
|
|
51
|
+
export function releaseEditableFocus(event: ChartMouseEvent): void {
|
|
52
|
+
if (!event.target?.closest?.(`[data-gloom-role="${COMPOSITE_PANEL_ROLE}"]`)) return;
|
|
53
|
+
const active = (globalThis as {
|
|
54
|
+
document?: { activeElement?: { tagName?: string; blur?: () => void } };
|
|
55
|
+
}).document?.activeElement;
|
|
56
|
+
const tag = active?.tagName?.toUpperCase();
|
|
57
|
+
if (tag !== "INPUT" && tag !== "TEXTAREA") return;
|
|
58
|
+
active?.blur?.();
|
|
59
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { ChartSurfaceProps } from "../../../ui";
|
|
2
|
+
import type { NativeChartBitmap } from "../native/chart-rasterizer";
|
|
3
|
+
import { compositeAxisTicks, formatCompositeCursorValue, type CompositeAxisValueFormatter } from "./format";
|
|
4
|
+
import type { CompositeColumnLayout } from "./column-layout";
|
|
5
|
+
import { projectCompositeValue, unprojectCompositeValue } from "./scene";
|
|
6
|
+
import type { CompositeAxisDomain, CompositeChartScene, CompositePanelScene } from "./types";
|
|
7
|
+
|
|
8
|
+
export function resolvePanelCrosshair(
|
|
9
|
+
panel: CompositePanelScene,
|
|
10
|
+
columnLayout: CompositeColumnLayout,
|
|
11
|
+
bitmap: NativeChartBitmap | null,
|
|
12
|
+
cursorXRatio: number | null,
|
|
13
|
+
cursorYRatio: number | null,
|
|
14
|
+
color: string,
|
|
15
|
+
): ChartSurfaceProps["crosshair"] {
|
|
16
|
+
if (!bitmap || cursorXRatio === null) return null;
|
|
17
|
+
const markers = panel.series.flatMap((series) => {
|
|
18
|
+
// Column cohorts are drawn at their group center, not each observation's
|
|
19
|
+
// own timestamp, so match the position the bar actually occupies.
|
|
20
|
+
const cursorPoint = series.points.find((point) => {
|
|
21
|
+
const xRatio = series.source.style === "columns"
|
|
22
|
+
? columnLayout.groupByPoint.get(point)?.xRatio ?? point.xRatio
|
|
23
|
+
: point.xRatio;
|
|
24
|
+
return Math.abs(xRatio - cursorXRatio) < 1e-9;
|
|
25
|
+
});
|
|
26
|
+
return cursorPoint
|
|
27
|
+
? [{
|
|
28
|
+
pixelY: cursorPoint.yRatio * Math.max(bitmap.height - 1, 0),
|
|
29
|
+
color: series.source.color,
|
|
30
|
+
}]
|
|
31
|
+
: [];
|
|
32
|
+
});
|
|
33
|
+
return {
|
|
34
|
+
pixelX: cursorXRatio * Math.max(bitmap.width - 1, 0),
|
|
35
|
+
pixelY: cursorYRatio === null ? null : cursorYRatio * Math.max(bitmap.height - 1, 0),
|
|
36
|
+
color,
|
|
37
|
+
markers,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function axisLabelRows(lines: string[]): ReadonlyMap<number, string> {
|
|
42
|
+
return new Map(lines.flatMap((line, row) => {
|
|
43
|
+
const label = line.trim();
|
|
44
|
+
return label ? [[row, label] as const] : [];
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function cursorAxisLabel(
|
|
49
|
+
panel: CompositePanelScene,
|
|
50
|
+
side: "left" | "right",
|
|
51
|
+
cursorYRatio: number | null,
|
|
52
|
+
format?: CompositeAxisValueFormatter,
|
|
53
|
+
): string | null {
|
|
54
|
+
const domain = panel.axes[side];
|
|
55
|
+
if (!domain || cursorYRatio === null) return null;
|
|
56
|
+
const value = unprojectCompositeValue(cursorYRatio, domain);
|
|
57
|
+
if (value === null) return null;
|
|
58
|
+
return format ? format(value, domain) : formatCompositeCursorValue(value, domain);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const MINIMUM_AXIS_LABEL_WIDTH = 3;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Reserve cursor precision even when the tick values are round numbers. This
|
|
65
|
+
* keeps the plot stable while the pointer moves between integer tick values.
|
|
66
|
+
*/
|
|
67
|
+
export function compositeAxisLabelWidth(
|
|
68
|
+
domain: CompositeAxisDomain | undefined,
|
|
69
|
+
format: CompositeAxisValueFormatter | undefined,
|
|
70
|
+
includeCursor: boolean,
|
|
71
|
+
): number {
|
|
72
|
+
if (!domain) return 0;
|
|
73
|
+
const ticks = compositeAxisTicks(domain, format);
|
|
74
|
+
const labels = ticks.map((tick) => tick.label);
|
|
75
|
+
if (includeCursor) {
|
|
76
|
+
const cursorFormat = format ?? formatCompositeCursorValue;
|
|
77
|
+
for (const { value } of ticks) {
|
|
78
|
+
labels.push(cursorFormat(value, domain));
|
|
79
|
+
// Totals use two decimals at their compact scale; prices can use four
|
|
80
|
+
// below one currency unit. Probe those digits without changing the data.
|
|
81
|
+
const scale = domain.unitGroup.toLowerCase().split(":")[0] === "currency-total"
|
|
82
|
+
? 10 ** Math.max(0, Math.min(12, Math.floor(Math.log10(Math.abs(value) || 1) / 3) * 3))
|
|
83
|
+
: Math.abs(value) > 0 && Math.abs(value) < 0.01
|
|
84
|
+
? 10 ** Math.floor(Math.log10(Math.abs(value))) : 1;
|
|
85
|
+
const precisionValue = (value < 0 ? -1 : 1) * (Math.floor(Math.abs(value) / scale) + 0.1234) * scale;
|
|
86
|
+
labels.push(cursorFormat(precisionValue, domain));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return labels.reduce((widest, label) => Math.max(widest, [...label].length), 0);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
export function resolveSeriesCursorYRatio(
|
|
94
|
+
panel: CompositePanelScene,
|
|
95
|
+
scene: CompositeChartScene,
|
|
96
|
+
): number | null {
|
|
97
|
+
for (const series of panel.series) {
|
|
98
|
+
const value = scene.cursorValues.find(
|
|
99
|
+
(entry) => entry.seriesId === series.source.id,
|
|
100
|
+
)?.value ?? null;
|
|
101
|
+
const domain = panel.axes[series.source.axis];
|
|
102
|
+
if (value === null || !domain) continue;
|
|
103
|
+
const yRatio = projectCompositeValue(value, domain);
|
|
104
|
+
if (yRatio !== null) return yRatio;
|
|
105
|
+
}
|
|
106
|
+
return null;
|
|
107
|
+
}
|