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,745 @@
|
|
|
1
|
+
import { memo, useEffect, useMemo, useRef, useState, type CSSProperties } from "react";
|
|
2
|
+
import { Box, Text, TextAttributes, useUiCapabilities } from "../../ui";
|
|
3
|
+
import { blendHex } from "../../theme/colors";
|
|
4
|
+
import {
|
|
5
|
+
heatmapColorDistance,
|
|
6
|
+
resolveHeatmapSelectedTileColors,
|
|
7
|
+
resolveHeatmapSelectionRing,
|
|
8
|
+
resolveHeatmapTileColors,
|
|
9
|
+
} from "../../theme/heat-colors";
|
|
10
|
+
import { useThemeColors } from "../../theme/theme-context";
|
|
11
|
+
import { t } from "../../i18n";
|
|
12
|
+
import { clipToDisplayWidth, padTo } from "../../utils/format";
|
|
13
|
+
import type { FloatMetricTreemapTile, MetricTreemapItem } from "./layout";
|
|
14
|
+
import {
|
|
15
|
+
buildMetricTreemapScene,
|
|
16
|
+
type MetricTreemapHeader,
|
|
17
|
+
type MetricTreemapScene,
|
|
18
|
+
type MetricTreemapSceneOptions,
|
|
19
|
+
type TreemapRect,
|
|
20
|
+
} from "./scene";
|
|
21
|
+
import {
|
|
22
|
+
HeatPulseTracker,
|
|
23
|
+
heatTileLabelCells,
|
|
24
|
+
heatTileLabelPx,
|
|
25
|
+
heatTileMotion,
|
|
26
|
+
heatTileValueWithSuffix,
|
|
27
|
+
} from "./heat-tiles";
|
|
28
|
+
|
|
29
|
+
type PreventableMouseEvent = { preventDefault(): void };
|
|
30
|
+
type PointerEvent = { x?: number; y?: number; pixelX?: number; pixelY?: number; source?: unknown };
|
|
31
|
+
|
|
32
|
+
export interface HeatTreemapCanvas {
|
|
33
|
+
/** Layout units: px on the desktop and the web, cells in the terminal. */
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
options: MetricTreemapSceneOptions;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const NARROW_CANVAS_PX = 600;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The canvas a heat map is laid out on. The pane and the surface both build
|
|
43
|
+
* the scene from this, so keyboard navigation walks the tiles the user sees.
|
|
44
|
+
*/
|
|
45
|
+
export function heatTreemapCanvas(
|
|
46
|
+
width: number,
|
|
47
|
+
height: number,
|
|
48
|
+
capabilities: { nativePaneChrome?: boolean; cellWidthPx?: number; cellHeightPx?: number },
|
|
49
|
+
): HeatTreemapCanvas {
|
|
50
|
+
const cellWidthPx = capabilities.cellWidthPx ?? 8;
|
|
51
|
+
const cellHeightPx = capabilities.cellHeightPx ?? 18;
|
|
52
|
+
if (capabilities.nativePaneChrome) {
|
|
53
|
+
const pxWidth = Math.max(1, width * cellWidthPx);
|
|
54
|
+
const pxHeight = Math.max(1, height * cellHeightPx);
|
|
55
|
+
const narrow = pxWidth < NARROW_CANVAS_PX;
|
|
56
|
+
return {
|
|
57
|
+
width: pxWidth,
|
|
58
|
+
height: pxHeight,
|
|
59
|
+
options: {
|
|
60
|
+
snap: false,
|
|
61
|
+
aspect: 1,
|
|
62
|
+
groupInset: narrow ? 1.5 : 2,
|
|
63
|
+
subgroupInset: 1,
|
|
64
|
+
headerHeight: narrow ? [14, 12] : [16, 13],
|
|
65
|
+
headerMin: [{ width: 44, height: 40 }, { width: 84, height: 56 }],
|
|
66
|
+
minTile: { width: 7, height: 7 },
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
width: Math.max(1, width - 2),
|
|
72
|
+
height: Math.max(1, height),
|
|
73
|
+
options: {
|
|
74
|
+
snap: true,
|
|
75
|
+
aspect: Math.max(0.5, Math.min(4, cellHeightPx / Math.max(1, cellWidthPx))),
|
|
76
|
+
groupInset: 0,
|
|
77
|
+
subgroupInset: 0,
|
|
78
|
+
headerHeight: [1, 1],
|
|
79
|
+
headerMin: [{ width: 8, height: 4 }, { width: 16, height: 7 }],
|
|
80
|
+
minTile: { width: 3, height: 1 },
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function buildHeatTreemapScene<T>(
|
|
86
|
+
items: readonly MetricTreemapItem<T>[],
|
|
87
|
+
canvas: HeatTreemapCanvas,
|
|
88
|
+
previous?: MetricTreemapScene<T> | null,
|
|
89
|
+
): MetricTreemapScene<T> {
|
|
90
|
+
return buildMetricTreemapScene(items, canvas.width, canvas.height, canvas.options, previous);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface HeatTreemapSurfaceProps<T> {
|
|
94
|
+
/** Geometry, from `buildHeatTreemapScene`; rebuilt only when sizes change. */
|
|
95
|
+
scene: MetricTreemapScene<T>;
|
|
96
|
+
/** Current colours and text, by id; they change with every tick. */
|
|
97
|
+
items: readonly MetricTreemapItem<T>[];
|
|
98
|
+
width: number;
|
|
99
|
+
height: number;
|
|
100
|
+
selectedId: string | null;
|
|
101
|
+
onSelect: (item: MetricTreemapItem<T>) => void;
|
|
102
|
+
onActivate?: (item: MetricTreemapItem<T>) => void;
|
|
103
|
+
emptyStateTitle?: string;
|
|
104
|
+
/** Hover text for the Other block, given the names it holds. */
|
|
105
|
+
otherTooltip?: (items: readonly MetricTreemapItem<T>[]) => readonly string[];
|
|
106
|
+
/** One short line under the Other label, where there is room for it. */
|
|
107
|
+
otherSummary?: (items: readonly MetricTreemapItem<T>[]) => string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
interface SurfaceEvents {
|
|
111
|
+
select(id: string): void;
|
|
112
|
+
activate(id: string): void;
|
|
113
|
+
hover(id: string, event: PointerEvent | undefined, selects: boolean): void;
|
|
114
|
+
leave(id: string): void;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function useLatest<T>(value: T) {
|
|
118
|
+
const ref = useRef(value);
|
|
119
|
+
ref.current = value;
|
|
120
|
+
return ref;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Hover selects the tile under the pointer only when the pointer really moved:
|
|
125
|
+
* a relayout under a resting pointer must not take the keyboard's selection.
|
|
126
|
+
*/
|
|
127
|
+
function usePointerMoved(): (event: PointerEvent | undefined) => boolean {
|
|
128
|
+
const lastRef = useRef<string | null>(null);
|
|
129
|
+
return useMemo(() => (event: PointerEvent | undefined) => {
|
|
130
|
+
const x = event?.pixelX ?? event?.x;
|
|
131
|
+
const y = event?.pixelY ?? event?.y;
|
|
132
|
+
if (typeof x !== "number" || typeof y !== "number") return true;
|
|
133
|
+
const position = `${x}:${y}`;
|
|
134
|
+
if (lastRef.current === position) return false;
|
|
135
|
+
lastRef.current = position;
|
|
136
|
+
return true;
|
|
137
|
+
}, []);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
interface MediaQueryLike {
|
|
141
|
+
matches: boolean;
|
|
142
|
+
addEventListener?(type: "change", listener: () => void): void;
|
|
143
|
+
removeEventListener?(type: "change", listener: () => void): void;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function reducedMotionQuery(): MediaQueryLike | null {
|
|
147
|
+
const matchMedia = (globalThis as { matchMedia?: (query: string) => MediaQueryLike }).matchMedia;
|
|
148
|
+
return typeof matchMedia === "function" ? matchMedia.call(globalThis, "(prefers-reduced-motion: reduce)") : null;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function usePrefersReducedMotion(): boolean {
|
|
152
|
+
const [reduced, setReduced] = useState(() => reducedMotionQuery()?.matches === true);
|
|
153
|
+
useEffect(() => {
|
|
154
|
+
const query = reducedMotionQuery();
|
|
155
|
+
if (!query) return;
|
|
156
|
+
const update = () => setReduced(query.matches);
|
|
157
|
+
update();
|
|
158
|
+
query.addEventListener?.("change", update);
|
|
159
|
+
return () => query.removeEventListener?.("change", update);
|
|
160
|
+
}, []);
|
|
161
|
+
return reduced;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function useSurfaceEvents<T>(
|
|
165
|
+
itemsById: ReadonlyMap<string, MetricTreemapItem<T>>,
|
|
166
|
+
onSelect: (item: MetricTreemapItem<T>) => void,
|
|
167
|
+
onActivate: ((item: MetricTreemapItem<T>) => void) | undefined,
|
|
168
|
+
onHover?: (id: string | null, event: PointerEvent | undefined) => void,
|
|
169
|
+
): SurfaceEvents {
|
|
170
|
+
const latest = useLatest({ itemsById, onSelect, onActivate, onHover });
|
|
171
|
+
const pointerMoved = usePointerMoved();
|
|
172
|
+
return useMemo<SurfaceEvents>(() => ({
|
|
173
|
+
select(id) {
|
|
174
|
+
const item = latest.current.itemsById.get(id);
|
|
175
|
+
if (item) latest.current.onSelect(item);
|
|
176
|
+
},
|
|
177
|
+
activate(id) {
|
|
178
|
+
const item = latest.current.itemsById.get(id);
|
|
179
|
+
if (item) latest.current.onActivate?.(item);
|
|
180
|
+
},
|
|
181
|
+
hover(id, event, selects) {
|
|
182
|
+
latest.current.onHover?.(id, event);
|
|
183
|
+
if (!selects || !pointerMoved(event)) return;
|
|
184
|
+
const item = latest.current.itemsById.get(id);
|
|
185
|
+
if (item) latest.current.onSelect(item);
|
|
186
|
+
},
|
|
187
|
+
leave(id) {
|
|
188
|
+
latest.current.onHover?.(null, undefined);
|
|
189
|
+
void id;
|
|
190
|
+
},
|
|
191
|
+
}), [latest, pointerMoved]);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function pct(value: number, total: number): string {
|
|
195
|
+
return `${total > 0 ? value / total * 100 : 0}%`;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function useItemsById<T>(scene: MetricTreemapScene<T>, items: readonly MetricTreemapItem<T>[]) {
|
|
199
|
+
return useMemo(() => {
|
|
200
|
+
const byId = new Map<string, MetricTreemapItem<T>>();
|
|
201
|
+
for (const tile of scene.tiles) byId.set(tile.item.id, tile.item);
|
|
202
|
+
for (const item of items) byId.set(item.id, item);
|
|
203
|
+
return byId;
|
|
204
|
+
}, [items, scene]);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// ---------------------------------------------------------------------------
|
|
208
|
+
// Desktop and web: real DOM boxes, CSS transitions for fades and glides.
|
|
209
|
+
|
|
210
|
+
const VISIBLE_FADE_DISTANCE = 0.03;
|
|
211
|
+
|
|
212
|
+
const DomHeatTile = memo(function DomHeatTile({
|
|
213
|
+
id, rect, canvasWidth, canvasHeight, gap, label, value, valueSuffix, background, foreground,
|
|
214
|
+
selected, reducedMotion, glide, pulseCount, events,
|
|
215
|
+
}: {
|
|
216
|
+
id: string;
|
|
217
|
+
rect: TreemapRect;
|
|
218
|
+
canvasWidth: number;
|
|
219
|
+
canvasHeight: number;
|
|
220
|
+
gap: number;
|
|
221
|
+
label: string;
|
|
222
|
+
value: string | null;
|
|
223
|
+
valueSuffix: string | null;
|
|
224
|
+
background: string;
|
|
225
|
+
foreground: string;
|
|
226
|
+
selected: boolean;
|
|
227
|
+
reducedMotion: boolean;
|
|
228
|
+
glide: boolean;
|
|
229
|
+
pulseCount: number;
|
|
230
|
+
events: SurfaceEvents;
|
|
231
|
+
}) {
|
|
232
|
+
const text = heatTileLabelPx(rect.width - gap * 2, rect.height - gap * 2, label, value);
|
|
233
|
+
const shownValue = heatTileValueWithSuffix(value, valueSuffix, { width: rect.width - gap * 2, valuePx: text.valuePx });
|
|
234
|
+
// Where this tile sat before the last relayout, kept to slide it from there.
|
|
235
|
+
const placedRef = useRef(rect);
|
|
236
|
+
const glideRef = useRef<{ dx: number; dy: number; count: number }>({ dx: 0, dy: 0, count: 0 });
|
|
237
|
+
if (placedRef.current !== rect) {
|
|
238
|
+
const dx = placedRef.current.x - rect.x;
|
|
239
|
+
const dy = placedRef.current.y - rect.y;
|
|
240
|
+
if (glide && (Math.abs(dx) >= 0.5 || Math.abs(dy) >= 0.5)) {
|
|
241
|
+
glideRef.current = { dx, dy, count: glideRef.current.count + 1 };
|
|
242
|
+
}
|
|
243
|
+
placedRef.current = rect;
|
|
244
|
+
}
|
|
245
|
+
const motion = heatTileMotion({ reducedMotion, glide, glideCount: glideRef.current.count, pulseCount });
|
|
246
|
+
const colors = useThemeColors();
|
|
247
|
+
const ring = resolveHeatmapSelectionRing(colors);
|
|
248
|
+
// The colour this tile showed before, kept to fade out over the new one.
|
|
249
|
+
const shownRef = useRef(background);
|
|
250
|
+
const fadeRef = useRef<{ from: string; key: number } | null>(null);
|
|
251
|
+
const paletteRef = useRef(colors);
|
|
252
|
+
// A theme switch recolours every tile at once; only a move fades.
|
|
253
|
+
const themeChanged = paletteRef.current !== colors;
|
|
254
|
+
paletteRef.current = colors;
|
|
255
|
+
if (shownRef.current !== background) {
|
|
256
|
+
// A step too small to see snaps: a fade costs a compositor layer for its whole run.
|
|
257
|
+
const visible = heatmapColorDistance(shownRef.current, background) >= VISIBLE_FADE_DISTANCE;
|
|
258
|
+
if (!motion.fadeAnimation || themeChanged) fadeRef.current = null;
|
|
259
|
+
else if (visible) fadeRef.current = { from: shownRef.current, key: (fadeRef.current?.key ?? 0) + 1 };
|
|
260
|
+
shownRef.current = background;
|
|
261
|
+
}
|
|
262
|
+
const fade = fadeRef.current;
|
|
263
|
+
// A finished overlay leaves the DOM, so idle tiles carry no extra nodes.
|
|
264
|
+
const [, setOverlayVersion] = useState(0);
|
|
265
|
+
const pulseDoneRef = useRef(0);
|
|
266
|
+
const pulsing = motion.pulseAnimation != null && pulseCount > pulseDoneRef.current;
|
|
267
|
+
const style: CSSProperties = {
|
|
268
|
+
position: "absolute",
|
|
269
|
+
left: `calc(${pct(rect.x, canvasWidth)} + ${gap}px)`,
|
|
270
|
+
top: `calc(${pct(rect.y, canvasHeight)} + ${gap}px)`,
|
|
271
|
+
width: `max(1px, calc(${pct(rect.width, canvasWidth)} - ${gap * 2}px))`,
|
|
272
|
+
height: `max(1px, calc(${pct(rect.height, canvasHeight)} - ${gap * 2}px))`,
|
|
273
|
+
backgroundColor: background,
|
|
274
|
+
color: foreground,
|
|
275
|
+
borderRadius: 1,
|
|
276
|
+
overflow: "hidden",
|
|
277
|
+
// A tick restyles one tile; containment keeps it from re-laying out or repainting its neighbours.
|
|
278
|
+
contain: "strict",
|
|
279
|
+
display: "flex",
|
|
280
|
+
flexDirection: "column",
|
|
281
|
+
alignItems: "center",
|
|
282
|
+
justifyContent: "center",
|
|
283
|
+
gap: 0,
|
|
284
|
+
cursor: "pointer",
|
|
285
|
+
// The theme's text tone against the page, then a hairline of the page: one
|
|
286
|
+
// of the two stands out on any tile, bright or dim.
|
|
287
|
+
boxShadow: selected ? `inset 0 0 0 2px ${ring.outer}, inset 0 0 0 3px ${ring.inner}` : undefined,
|
|
288
|
+
zIndex: selected ? 1 : undefined,
|
|
289
|
+
...(motion.glideAnimation
|
|
290
|
+
? {
|
|
291
|
+
"--heat-glide-x": `${glideRef.current.dx}px`,
|
|
292
|
+
"--heat-glide-y": `${glideRef.current.dy}px`,
|
|
293
|
+
animation: motion.glideAnimation,
|
|
294
|
+
} as CSSProperties
|
|
295
|
+
: {}),
|
|
296
|
+
};
|
|
297
|
+
const overlayStyle: CSSProperties = {
|
|
298
|
+
position: "absolute",
|
|
299
|
+
left: 0,
|
|
300
|
+
top: 0,
|
|
301
|
+
width: "100%",
|
|
302
|
+
height: "100%",
|
|
303
|
+
pointerEvents: "none",
|
|
304
|
+
};
|
|
305
|
+
const lineStyle: CSSProperties = {
|
|
306
|
+
position: "relative",
|
|
307
|
+
display: "block",
|
|
308
|
+
maxWidth: "100%",
|
|
309
|
+
overflow: "hidden",
|
|
310
|
+
whiteSpace: "nowrap",
|
|
311
|
+
textAlign: "center",
|
|
312
|
+
letterSpacing: 0,
|
|
313
|
+
color: foreground,
|
|
314
|
+
};
|
|
315
|
+
return (
|
|
316
|
+
<Box
|
|
317
|
+
data-gloom-role="heat-tile"
|
|
318
|
+
style={style}
|
|
319
|
+
onMouseDown={(event: PreventableMouseEvent) => {
|
|
320
|
+
event.preventDefault();
|
|
321
|
+
events.select(id);
|
|
322
|
+
}}
|
|
323
|
+
onDoubleClick={() => events.activate(id)}
|
|
324
|
+
onMouseOver={(event: PointerEvent) => events.hover(id, event, false)}
|
|
325
|
+
onMouseMove={(event: PointerEvent) => events.hover(id, event, true)}
|
|
326
|
+
onMouseOut={() => events.leave(id)}
|
|
327
|
+
>
|
|
328
|
+
{fade && (
|
|
329
|
+
<Box
|
|
330
|
+
key={`fade:${fade.key}`}
|
|
331
|
+
// Invisible at rest: if animations are off the old colour must not stay on top.
|
|
332
|
+
style={{ ...overlayStyle, backgroundColor: fade.from, opacity: 0, animation: motion.fadeAnimation }}
|
|
333
|
+
onAnimationEnd={() => {
|
|
334
|
+
if (fadeRef.current?.key !== fade.key) return;
|
|
335
|
+
fadeRef.current = null;
|
|
336
|
+
setOverlayVersion((version) => version + 1);
|
|
337
|
+
}}
|
|
338
|
+
/>
|
|
339
|
+
)}
|
|
340
|
+
{pulsing && (
|
|
341
|
+
<Box
|
|
342
|
+
key={`pulse:${pulseCount}`}
|
|
343
|
+
style={{ ...overlayStyle, backgroundColor: "#ffffff", opacity: 0, animation: motion.pulseAnimation }}
|
|
344
|
+
onAnimationEnd={() => {
|
|
345
|
+
pulseDoneRef.current = Math.max(pulseDoneRef.current, pulseCount);
|
|
346
|
+
setOverlayVersion((version) => version + 1);
|
|
347
|
+
}}
|
|
348
|
+
/>
|
|
349
|
+
)}
|
|
350
|
+
{text.tier !== "none" && (
|
|
351
|
+
<Text style={{ ...lineStyle, fontSize: text.tickerPx, fontWeight: 700, lineHeight: 1.12 }}>{label}</Text>
|
|
352
|
+
)}
|
|
353
|
+
{text.tier === "full" && value && (
|
|
354
|
+
<Text style={{ ...lineStyle, fontSize: text.valuePx, fontWeight: 500, lineHeight: 1.12 }}>{shownValue}</Text>
|
|
355
|
+
)}
|
|
356
|
+
</Box>
|
|
357
|
+
);
|
|
358
|
+
});
|
|
359
|
+
|
|
360
|
+
function headerLabel(header: MetricTreemapHeader): string {
|
|
361
|
+
return header.other ? t("Other") : header.label;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
function DomHeader({ header, canvasWidth, canvasHeight }: { header: MetricTreemapHeader; canvasWidth: number; canvasHeight: number }) {
|
|
365
|
+
const colors = useThemeColors();
|
|
366
|
+
const sector = header.level === 0 && !header.other;
|
|
367
|
+
return (
|
|
368
|
+
<Box
|
|
369
|
+
data-gloom-role="heat-header"
|
|
370
|
+
style={{
|
|
371
|
+
position: "absolute",
|
|
372
|
+
left: pct(header.rect.x, canvasWidth),
|
|
373
|
+
top: pct(header.rect.y, canvasHeight),
|
|
374
|
+
width: pct(header.rect.width, canvasWidth),
|
|
375
|
+
height: pct(header.rect.height, canvasHeight),
|
|
376
|
+
display: "flex",
|
|
377
|
+
flexDirection: "row",
|
|
378
|
+
alignItems: "center",
|
|
379
|
+
justifyContent: "flex-start",
|
|
380
|
+
paddingLeft: 2,
|
|
381
|
+
overflow: "hidden",
|
|
382
|
+
pointerEvents: "none",
|
|
383
|
+
}}
|
|
384
|
+
>
|
|
385
|
+
<Text
|
|
386
|
+
style={{
|
|
387
|
+
display: "block",
|
|
388
|
+
minWidth: 0,
|
|
389
|
+
overflow: "hidden",
|
|
390
|
+
textOverflow: "ellipsis",
|
|
391
|
+
whiteSpace: "nowrap",
|
|
392
|
+
textTransform: "uppercase",
|
|
393
|
+
letterSpacing: "0.07em",
|
|
394
|
+
fontSize: header.level === 0 ? 10.5 : 9,
|
|
395
|
+
fontWeight: header.level === 0 ? 700 : 600,
|
|
396
|
+
lineHeight: 1,
|
|
397
|
+
color: sector ? colors.textBright : colors.textDim,
|
|
398
|
+
}}
|
|
399
|
+
>
|
|
400
|
+
{headerLabel(header)}
|
|
401
|
+
</Text>
|
|
402
|
+
</Box>
|
|
403
|
+
);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
interface TooltipState {
|
|
407
|
+
id: string;
|
|
408
|
+
x: number;
|
|
409
|
+
y: number;
|
|
410
|
+
boundsWidth: number;
|
|
411
|
+
boundsHeight: number;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
const OTHER_ID = "\u0000other";
|
|
415
|
+
|
|
416
|
+
function DomTooltip<T>({ state, itemsById, otherLines }: {
|
|
417
|
+
state: TooltipState | null;
|
|
418
|
+
itemsById: ReadonlyMap<string, MetricTreemapItem<T>>;
|
|
419
|
+
otherLines: readonly string[] | null;
|
|
420
|
+
}) {
|
|
421
|
+
const colors = useThemeColors();
|
|
422
|
+
if (!state) return null;
|
|
423
|
+
const lines = state.id === OTHER_ID
|
|
424
|
+
? otherLines
|
|
425
|
+
: itemsById.get(state.id)?.tooltip ?? [itemsById.get(state.id)?.label ?? ""];
|
|
426
|
+
if (!lines || lines.length === 0) return null;
|
|
427
|
+
const flipX = state.x > state.boundsWidth * 0.6;
|
|
428
|
+
const flipY = state.y > state.boundsHeight * 0.72;
|
|
429
|
+
return (
|
|
430
|
+
<Box
|
|
431
|
+
data-gloom-role="heat-tooltip"
|
|
432
|
+
style={{
|
|
433
|
+
position: "absolute",
|
|
434
|
+
left: state.x + (flipX ? -12 : 14),
|
|
435
|
+
top: state.y + (flipY ? -10 : 16),
|
|
436
|
+
transform: `translate(${flipX ? "-100%" : "0"}, ${flipY ? "-100%" : "0"})`,
|
|
437
|
+
zIndex: 5,
|
|
438
|
+
pointerEvents: "none",
|
|
439
|
+
backgroundColor: blendHex(colors.bg, colors.panel, 0.5),
|
|
440
|
+
border: `1px solid ${colors.border}`,
|
|
441
|
+
borderRadius: 3,
|
|
442
|
+
padding: "4px 7px",
|
|
443
|
+
boxShadow: `0 4px 14px ${blendHex(colors.bg, "#000000", 0.6)}`,
|
|
444
|
+
display: "flex",
|
|
445
|
+
flexDirection: "column",
|
|
446
|
+
gap: 2,
|
|
447
|
+
maxWidth: 400,
|
|
448
|
+
}}
|
|
449
|
+
>
|
|
450
|
+
{lines.map((line, index) => (
|
|
451
|
+
<Text
|
|
452
|
+
key={index}
|
|
453
|
+
style={{
|
|
454
|
+
display: "block",
|
|
455
|
+
whiteSpace: "nowrap",
|
|
456
|
+
overflow: "hidden",
|
|
457
|
+
textOverflow: "ellipsis",
|
|
458
|
+
fontSize: 11.5,
|
|
459
|
+
lineHeight: 1.25,
|
|
460
|
+
fontWeight: index === 0 ? 700 : 400,
|
|
461
|
+
color: index === 0 ? colors.textBright : colors.textDim,
|
|
462
|
+
}}
|
|
463
|
+
>
|
|
464
|
+
{line}
|
|
465
|
+
</Text>
|
|
466
|
+
))}
|
|
467
|
+
</Box>
|
|
468
|
+
);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
const EMPTY_PULSES: ReadonlyMap<string, number> = new Map();
|
|
472
|
+
|
|
473
|
+
function DomHeatTreemap<T>({
|
|
474
|
+
scene, items, width, height, selectedId, onSelect, onActivate, otherTooltip, otherSummary: summarizeOther,
|
|
475
|
+
}: HeatTreemapSurfaceProps<T>) {
|
|
476
|
+
const reducedMotion = usePrefersReducedMotion();
|
|
477
|
+
const colors = useThemeColors();
|
|
478
|
+
const itemsById = useItemsById(scene, items);
|
|
479
|
+
const chartRef = useRef<{ getBoundingClientRect?: () => { x: number; y: number; width: number; height: number } } | null>(null);
|
|
480
|
+
const [tooltip, setTooltip] = useState<TooltipState | null>(null);
|
|
481
|
+
const onHover = useMemo(() => (id: string | null, event: PointerEvent | undefined) => {
|
|
482
|
+
if (id == null) {
|
|
483
|
+
setTooltip(null);
|
|
484
|
+
return;
|
|
485
|
+
}
|
|
486
|
+
const bounds = chartRef.current?.getBoundingClientRect?.();
|
|
487
|
+
if (!bounds || typeof event?.pixelX !== "number" || typeof event?.pixelY !== "number") return;
|
|
488
|
+
setTooltip({ id, x: event.pixelX - bounds.x, y: event.pixelY - bounds.y, boundsWidth: bounds.width, boundsHeight: bounds.height });
|
|
489
|
+
}, []);
|
|
490
|
+
const events = useSurfaceEvents(itemsById, onSelect, onActivate, onHover);
|
|
491
|
+
|
|
492
|
+
const trackerRef = useRef<HeatPulseTracker | null>(null);
|
|
493
|
+
trackerRef.current ??= new HeatPulseTracker();
|
|
494
|
+
const pulses = useMemo(() => {
|
|
495
|
+
if (reducedMotion) return EMPTY_PULSES;
|
|
496
|
+
return trackerRef.current!.update(
|
|
497
|
+
scene.tiles.map((tile) => [tile.item.id, itemsById.get(tile.item.id)?.colorValue ?? null] as const),
|
|
498
|
+
Date.now(),
|
|
499
|
+
);
|
|
500
|
+
}, [itemsById, reducedMotion, scene]);
|
|
501
|
+
|
|
502
|
+
// A resize relays out every tile; following the window with a glide would lag it.
|
|
503
|
+
const sizeKey = `${scene.width}x${scene.height}`;
|
|
504
|
+
const lastSizeRef = useRef(sizeKey);
|
|
505
|
+
const glide = lastSizeRef.current === sizeKey;
|
|
506
|
+
useEffect(() => {
|
|
507
|
+
lastSizeRef.current = sizeKey;
|
|
508
|
+
}, [sizeKey]);
|
|
509
|
+
|
|
510
|
+
const gap = scene.width < NARROW_CANVAS_PX ? 0.5 : 1;
|
|
511
|
+
const otherLines = useMemo(
|
|
512
|
+
() => (scene.other ? otherTooltip?.(scene.other.items) ?? [`${t("Other")} · ${scene.other.items.length}`] : null),
|
|
513
|
+
[otherTooltip, scene.other],
|
|
514
|
+
);
|
|
515
|
+
const other = scene.other;
|
|
516
|
+
|
|
517
|
+
return (
|
|
518
|
+
<Box
|
|
519
|
+
width={width}
|
|
520
|
+
height={height}
|
|
521
|
+
style={{ position: "relative", backgroundColor: colors.bg, overflow: "hidden" }}
|
|
522
|
+
>
|
|
523
|
+
<Box
|
|
524
|
+
ref={chartRef}
|
|
525
|
+
data-gloom-role="heat-treemap"
|
|
526
|
+
style={{ position: "absolute", left: 0, top: 0, width: "100%", height: "100%", contain: "strict" }}
|
|
527
|
+
>
|
|
528
|
+
{scene.headers.map((header) => (
|
|
529
|
+
<DomHeader key={header.id} header={header} canvasWidth={scene.width} canvasHeight={scene.height} />
|
|
530
|
+
))}
|
|
531
|
+
{other && (
|
|
532
|
+
<Box
|
|
533
|
+
data-gloom-role="heat-other"
|
|
534
|
+
style={{
|
|
535
|
+
position: "absolute",
|
|
536
|
+
left: pct(other.rect.x, scene.width),
|
|
537
|
+
top: pct(other.rect.y, scene.height),
|
|
538
|
+
width: pct(other.rect.width, scene.width),
|
|
539
|
+
height: pct(other.rect.height, scene.height),
|
|
540
|
+
backgroundColor: blendHex(colors.bg, colors.textMuted, 0.1),
|
|
541
|
+
borderRadius: 1,
|
|
542
|
+
overflow: "hidden",
|
|
543
|
+
paddingLeft: 3,
|
|
544
|
+
paddingTop: 2,
|
|
545
|
+
}}
|
|
546
|
+
onMouseOver={(event: PointerEvent) => onHover(OTHER_ID, event)}
|
|
547
|
+
onMouseMove={(event: PointerEvent) => onHover(OTHER_ID, event)}
|
|
548
|
+
onMouseOut={() => onHover(null, undefined)}
|
|
549
|
+
>
|
|
550
|
+
{other.showLabel && (
|
|
551
|
+
<Text style={{ display: "block", fontSize: 10.5, fontWeight: 700, letterSpacing: "0.07em", textTransform: "uppercase", color: colors.textDim, lineHeight: 1.2 }}>
|
|
552
|
+
{t("Other")}
|
|
553
|
+
</Text>
|
|
554
|
+
)}
|
|
555
|
+
{(other.showLabel || (other.rect.width >= 44 && other.rect.height >= 24)) && summarizeOther && (
|
|
556
|
+
<Text style={{ display: "block", fontSize: 10, color: colors.textMuted, lineHeight: 1.3, whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }}>
|
|
557
|
+
{summarizeOther(other.items)}
|
|
558
|
+
</Text>
|
|
559
|
+
)}
|
|
560
|
+
</Box>
|
|
561
|
+
)}
|
|
562
|
+
{scene.tiles.map((tile) => {
|
|
563
|
+
const item = itemsById.get(tile.item.id) ?? tile.item;
|
|
564
|
+
const tileColors = resolveHeatmapTileColors(item.colorValue, colors);
|
|
565
|
+
return (
|
|
566
|
+
<DomHeatTile
|
|
567
|
+
key={tile.item.id}
|
|
568
|
+
id={tile.item.id}
|
|
569
|
+
rect={tileRect(tile)}
|
|
570
|
+
canvasWidth={scene.width}
|
|
571
|
+
canvasHeight={scene.height}
|
|
572
|
+
gap={gap}
|
|
573
|
+
label={item.label}
|
|
574
|
+
value={item.primaryText ?? null}
|
|
575
|
+
valueSuffix={item.primaryTextSuffix ?? null}
|
|
576
|
+
background={tileColors.background}
|
|
577
|
+
foreground={tileColors.foreground}
|
|
578
|
+
selected={tile.item.id === selectedId}
|
|
579
|
+
reducedMotion={reducedMotion}
|
|
580
|
+
glide={glide}
|
|
581
|
+
pulseCount={pulses.get(tile.item.id) ?? 0}
|
|
582
|
+
events={events}
|
|
583
|
+
/>
|
|
584
|
+
);
|
|
585
|
+
})}
|
|
586
|
+
<DomTooltip state={tooltip} itemsById={itemsById} otherLines={otherLines} />
|
|
587
|
+
</Box>
|
|
588
|
+
</Box>
|
|
589
|
+
);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
const tileRectCache = new WeakMap<object, TreemapRect>();
|
|
593
|
+
|
|
594
|
+
/** One rect object per tile, so a memoized tile sees the same prop until the layout changes. */
|
|
595
|
+
function tileRect(tile: FloatMetricTreemapTile<unknown>): TreemapRect {
|
|
596
|
+
let rect = tileRectCache.get(tile);
|
|
597
|
+
if (!rect) {
|
|
598
|
+
rect = { x: tile.x, y: tile.y, width: tile.width, height: tile.height };
|
|
599
|
+
tileRectCache.set(tile, rect);
|
|
600
|
+
}
|
|
601
|
+
return rect;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
// ---------------------------------------------------------------------------
|
|
605
|
+
// Terminal: whole cells, a one-cell gutter right of and under each tile.
|
|
606
|
+
|
|
607
|
+
const TerminalHeatTile = memo(function TerminalHeatTile({
|
|
608
|
+
id, x, y, width, height, label, value, valueSuffix, colorValue, selected, events,
|
|
609
|
+
}: {
|
|
610
|
+
id: string;
|
|
611
|
+
x: number;
|
|
612
|
+
y: number;
|
|
613
|
+
width: number;
|
|
614
|
+
height: number;
|
|
615
|
+
label: string;
|
|
616
|
+
value: string | null;
|
|
617
|
+
valueSuffix: string | null;
|
|
618
|
+
colorValue: number | null;
|
|
619
|
+
selected: boolean;
|
|
620
|
+
events: SurfaceEvents;
|
|
621
|
+
}) {
|
|
622
|
+
// Read here, not passed down: a theme switch reaches every tile even though its props are the same.
|
|
623
|
+
const colors = useThemeColors();
|
|
624
|
+
const { background, foreground } = selected
|
|
625
|
+
? resolveHeatmapSelectedTileColors(colorValue, colors)
|
|
626
|
+
: resolveHeatmapTileColors(colorValue, colors);
|
|
627
|
+
const renderWidth = Math.max(1, width - (width >= 3 ? 1 : 0));
|
|
628
|
+
const renderHeight = Math.max(1, height - (height >= 2 ? 1 : 0));
|
|
629
|
+
const tier = heatTileLabelCells(renderWidth, renderHeight, label, value);
|
|
630
|
+
const shownValue = heatTileValueWithSuffix(value, valueSuffix, { width: renderWidth });
|
|
631
|
+
const lines = tier === "full" && shownValue ? [label, shownValue] : tier === "none" ? [] : [label];
|
|
632
|
+
const top = Math.max(0, Math.floor((renderHeight - lines.length) / 2));
|
|
633
|
+
return (
|
|
634
|
+
<Box
|
|
635
|
+
position="absolute"
|
|
636
|
+
left={x}
|
|
637
|
+
top={y}
|
|
638
|
+
width={renderWidth}
|
|
639
|
+
height={renderHeight}
|
|
640
|
+
backgroundColor={background}
|
|
641
|
+
onMouseDown={(event: PreventableMouseEvent) => {
|
|
642
|
+
event.preventDefault();
|
|
643
|
+
events.select(id);
|
|
644
|
+
}}
|
|
645
|
+
onMouseMove={(event: PointerEvent) => events.hover(id, event, true)}
|
|
646
|
+
// A held button sends no moves here, only "over" from the press it
|
|
647
|
+
// started; a relayout's "over" has no source.
|
|
648
|
+
onMouseOver={(event: PointerEvent) => {
|
|
649
|
+
if (event.source) events.hover(id, event, true);
|
|
650
|
+
}}
|
|
651
|
+
onDoubleClick={() => events.activate(id)}
|
|
652
|
+
>
|
|
653
|
+
{lines.map((line, index) => (
|
|
654
|
+
<Box key={index} position="absolute" left={0} top={top + index} width={renderWidth} height={1}>
|
|
655
|
+
<Text fg={foreground} attributes={index === 0 ? TextAttributes.BOLD : TextAttributes.NONE}>
|
|
656
|
+
{padTo(line, renderWidth, "center")}
|
|
657
|
+
</Text>
|
|
658
|
+
</Box>
|
|
659
|
+
))}
|
|
660
|
+
</Box>
|
|
661
|
+
);
|
|
662
|
+
});
|
|
663
|
+
|
|
664
|
+
function TerminalHeatTreemap<T>({
|
|
665
|
+
scene, items, width, height, selectedId, onSelect, onActivate, otherSummary: summarizeOther,
|
|
666
|
+
}: HeatTreemapSurfaceProps<T>) {
|
|
667
|
+
const colors = useThemeColors();
|
|
668
|
+
const itemsById = useItemsById(scene, items);
|
|
669
|
+
const events = useSurfaceEvents(itemsById, onSelect, onActivate);
|
|
670
|
+
const other = scene.other;
|
|
671
|
+
const otherSummary = other ? summarizeOther?.(other.items) ?? null : null;
|
|
672
|
+
return (
|
|
673
|
+
<Box width={width} height={height} paddingX={1} backgroundColor={colors.bg}>
|
|
674
|
+
<Box position="relative" width={scene.width} height={scene.height} backgroundColor={colors.bg}>
|
|
675
|
+
{scene.headers.map((header) => (
|
|
676
|
+
<Box key={header.id} position="absolute" left={header.rect.x} top={header.rect.y} width={header.rect.width} height={1}>
|
|
677
|
+
<Text
|
|
678
|
+
fg={header.level === 0 && !header.other ? colors.textBright : colors.textDim}
|
|
679
|
+
attributes={header.level === 0 ? TextAttributes.BOLD : TextAttributes.NONE}
|
|
680
|
+
>
|
|
681
|
+
{clipToDisplayWidth(headerLabel(header).toUpperCase(), Math.max(0, header.rect.width - 1))}
|
|
682
|
+
</Text>
|
|
683
|
+
</Box>
|
|
684
|
+
))}
|
|
685
|
+
{other && other.rect.width > 0 && other.rect.height > 0 && (
|
|
686
|
+
<Box
|
|
687
|
+
position="absolute"
|
|
688
|
+
left={other.rect.x}
|
|
689
|
+
top={other.rect.y}
|
|
690
|
+
width={Math.max(1, other.rect.width - (other.rect.width >= 3 ? 1 : 0))}
|
|
691
|
+
height={Math.max(1, other.rect.height - (other.rect.height >= 2 ? 1 : 0))}
|
|
692
|
+
backgroundColor={colors.panel}
|
|
693
|
+
>
|
|
694
|
+
{other.showLabel && other.rect.width >= 7 && (
|
|
695
|
+
<Text fg={colors.textDim} attributes={TextAttributes.BOLD}>{clipToDisplayWidth(t("Other").toUpperCase(), other.rect.width - 1)}</Text>
|
|
696
|
+
)}
|
|
697
|
+
{/* A count is whole or absent: "2 nam…" says less than nothing. */}
|
|
698
|
+
{other.rect.height >= (other.showLabel ? 3 : 2) && otherSummary && otherSummary.length <= other.rect.width - 1 && (
|
|
699
|
+
<Text fg={colors.textMuted}>{otherSummary}</Text>
|
|
700
|
+
)}
|
|
701
|
+
</Box>
|
|
702
|
+
)}
|
|
703
|
+
{scene.tiles.map((tile) => {
|
|
704
|
+
const item = itemsById.get(tile.item.id) ?? tile.item;
|
|
705
|
+
return (
|
|
706
|
+
<TerminalHeatTile
|
|
707
|
+
key={tile.item.id}
|
|
708
|
+
id={tile.item.id}
|
|
709
|
+
x={tile.x}
|
|
710
|
+
y={tile.y}
|
|
711
|
+
width={tile.width}
|
|
712
|
+
height={tile.height}
|
|
713
|
+
label={item.label}
|
|
714
|
+
value={item.primaryText ?? null}
|
|
715
|
+
valueSuffix={item.primaryTextSuffix ?? null}
|
|
716
|
+
colorValue={item.colorValue ?? null}
|
|
717
|
+
selected={tile.item.id === selectedId}
|
|
718
|
+
events={events}
|
|
719
|
+
/>
|
|
720
|
+
);
|
|
721
|
+
})}
|
|
722
|
+
</Box>
|
|
723
|
+
</Box>
|
|
724
|
+
);
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* The heat map look of the treemap: optional sector and industry blocks,
|
|
729
|
+
* calm tiles (ticker, then the move, as space allows), a continuous scale
|
|
730
|
+
* from the theme's down colour to its up colour, and on the desktop a hover
|
|
731
|
+
* tooltip, colour fades, a short pulse on a tile whose move jumps and a glide
|
|
732
|
+
* when sizes change.
|
|
733
|
+
*/
|
|
734
|
+
export function HeatTreemapSurface<T>(props: HeatTreemapSurfaceProps<T>) {
|
|
735
|
+
const { nativePaneChrome } = useUiCapabilities();
|
|
736
|
+
const colors = useThemeColors();
|
|
737
|
+
if (props.scene.tiles.length === 0) {
|
|
738
|
+
return (
|
|
739
|
+
<Box width={props.width} height={props.height} paddingX={1} paddingY={1}>
|
|
740
|
+
<Text fg={colors.textDim}>{t(props.emptyStateTitle ?? "No chart data")}</Text>
|
|
741
|
+
</Box>
|
|
742
|
+
);
|
|
743
|
+
}
|
|
744
|
+
return nativePaneChrome ? <DomHeatTreemap {...props} /> : <TerminalHeatTreemap {...props} />;
|
|
745
|
+
}
|