@columenlabs/lumen-ui 0.0.0-stage → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/NOTICE +12 -0
- package/README.md +4 -2
- package/dist/add-column.d.ts +23 -0
- package/dist/add-column.js +62 -0
- package/dist/api-fetch.d.ts +9 -0
- package/dist/api-fetch.js +60 -0
- package/dist/app-switcher.d.ts +21 -0
- package/dist/app-switcher.js +12 -0
- package/dist/app-views.d.ts +18 -0
- package/dist/app-views.js +41 -0
- package/dist/assistant-context.d.ts +72 -0
- package/dist/assistant-context.js +30 -0
- package/dist/assistant-panel.d.ts +58 -0
- package/dist/assistant-panel.js +244 -0
- package/dist/assistant-screen.d.ts +124 -0
- package/dist/assistant-screen.js +252 -0
- package/dist/card-switch.d.ts +16 -0
- package/dist/card-switch.js +16 -0
- package/dist/color-dot.d.ts +14 -0
- package/dist/color-dot.js +19 -0
- package/dist/confirm.d.ts +18 -0
- package/dist/confirm.js +5 -0
- package/dist/connections.d.ts +45 -0
- package/dist/connections.js +275 -0
- package/dist/coverage-calendar-map.d.ts +27 -0
- package/dist/coverage-calendar-map.js +84 -0
- package/dist/coverage-cells.d.ts +55 -0
- package/dist/coverage-cells.js +85 -0
- package/dist/coverage-map.d.ts +112 -0
- package/dist/coverage-map.js +428 -0
- package/dist/details-table.d.ts +20 -0
- package/dist/details-table.js +13 -0
- package/dist/drawer-section.d.ts +27 -0
- package/dist/drawer-section.js +23 -0
- package/dist/floating-head.d.ts +2 -0
- package/dist/floating-head.js +57 -0
- package/dist/fold.d.ts +16 -0
- package/dist/fold.js +70 -0
- package/dist/form-issues.d.ts +32 -0
- package/dist/form-issues.js +60 -0
- package/dist/formula-input.d.ts +17 -0
- package/dist/formula-input.js +104 -0
- package/dist/frame-script.d.ts +7 -0
- package/dist/frame-script.js +103 -0
- package/dist/freshness.d.ts +24 -0
- package/dist/freshness.js +99 -0
- package/dist/group-button.d.ts +33 -0
- package/dist/group-button.js +67 -0
- package/dist/growth-chart.d.ts +77 -0
- package/dist/growth-chart.js +195 -0
- package/dist/hooks/use-keyboard-fit.d.ts +15 -0
- package/dist/hooks/use-keyboard-fit.js +29 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +15 -0
- package/dist/icon-button.d.ts +21 -0
- package/dist/icon-button.js +22 -0
- package/dist/icon-picker.d.ts +14 -0
- package/dist/icon-picker.js +36 -0
- package/dist/index.d.ts +83 -0
- package/dist/index.js +90 -0
- package/dist/integrations.d.ts +57 -0
- package/dist/integrations.js +73 -0
- package/dist/joins.d.ts +128 -0
- package/dist/joins.js +767 -0
- package/dist/kit-config.d.ts +13 -0
- package/dist/kit-config.js +15 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +5 -0
- package/dist/lumen-boundary.d.ts +7 -0
- package/dist/lumen-boundary.js +10 -0
- package/dist/lumen-code-editor-impl.d.ts +2 -0
- package/dist/lumen-code-editor-impl.js +16 -0
- package/dist/lumen-code-editor.d.ts +11 -0
- package/dist/lumen-code-editor.js +11 -0
- package/dist/lumen-code.d.ts +22 -0
- package/dist/lumen-code.js +75 -0
- package/dist/lumen-drawer.d.ts +30 -0
- package/dist/lumen-drawer.js +27 -0
- package/dist/lumen-echart.d.ts +58 -0
- package/dist/lumen-echart.js +129 -0
- package/dist/lumen-filter.d.ts +75 -0
- package/dist/lumen-filter.js +546 -0
- package/dist/lumen-finder.d.ts +62 -0
- package/dist/lumen-finder.js +275 -0
- package/dist/lumen-form.d.ts +34 -0
- package/dist/lumen-form.js +81 -0
- package/dist/lumen-geo-map.d.ts +9 -0
- package/dist/lumen-geo-map.js +135 -0
- package/dist/lumen-grid.d.ts +49 -0
- package/dist/lumen-grid.js +203 -0
- package/dist/lumen-layout.d.ts +150 -0
- package/dist/lumen-layout.js +661 -0
- package/dist/lumen-links.d.ts +96 -0
- package/dist/lumen-links.js +213 -0
- package/dist/lumen-page-state.d.ts +20 -0
- package/dist/lumen-page-state.js +15 -0
- package/dist/lumen-selector.d.ts +139 -0
- package/dist/lumen-selector.js +308 -0
- package/dist/lumen-source.d.ts +137 -0
- package/dist/lumen-source.js +327 -0
- package/dist/lumen-tab-drawer.d.ts +27 -0
- package/dist/lumen-tab-drawer.js +26 -0
- package/dist/lumen-tabs.d.ts +21 -0
- package/dist/lumen-tabs.js +6 -0
- package/dist/lumen-toast.d.ts +11 -0
- package/dist/lumen-toast.js +16 -0
- package/dist/lumen-trend.d.ts +18 -0
- package/dist/lumen-trend.js +157 -0
- package/dist/lumen-view-card.d.ts +35 -0
- package/dist/lumen-view-card.js +50 -0
- package/dist/lumen-view.d.ts +172 -0
- package/dist/lumen-view.js +645 -0
- package/dist/lumen-widget-charts.d.ts +57 -0
- package/dist/lumen-widget-charts.js +69 -0
- package/dist/lumen-widget.d.ts +720 -0
- package/dist/lumen-widget.js +609 -0
- package/dist/market/compare-chart.d.ts +34 -0
- package/dist/market/compare-chart.js +292 -0
- package/dist/market/indicator-picker.d.ts +29 -0
- package/dist/market/indicator-picker.js +125 -0
- package/dist/market/indicators.d.ts +63 -0
- package/dist/market/indicators.js +314 -0
- package/dist/market/live.d.ts +120 -0
- package/dist/market/live.js +444 -0
- package/dist/market/lumen-chart.d.ts +88 -0
- package/dist/market/lumen-chart.js +645 -0
- package/dist/market/market-widget.d.ts +45 -0
- package/dist/market/market-widget.js +346 -0
- package/dist/market/option-chain.d.ts +19 -0
- package/dist/market/option-chain.js +53 -0
- package/dist/market/price-chart.d.ts +128 -0
- package/dist/market/price-chart.js +619 -0
- package/dist/mcp-settings.d.ts +20 -0
- package/dist/mcp-settings.js +65 -0
- package/dist/nav.d.ts +77 -0
- package/dist/nav.js +73 -0
- package/dist/note-line.d.ts +13 -0
- package/dist/note-line.js +5 -0
- package/dist/notifications.d.ts +9 -0
- package/dist/notifications.js +166 -0
- package/dist/origin-legend.d.ts +14 -0
- package/dist/origin-legend.js +38 -0
- package/dist/overview.d.ts +84 -0
- package/dist/overview.js +105 -0
- package/dist/page-inputs.d.ts +14 -0
- package/dist/page-inputs.js +16 -0
- package/dist/page.d.ts +32 -0
- package/dist/page.js +45 -0
- package/dist/pager.d.ts +10 -0
- package/dist/pager.js +14 -0
- package/dist/prefs.d.ts +71 -0
- package/dist/prefs.js +126 -0
- package/dist/query-client.d.ts +7 -0
- package/dist/query-client.js +19 -0
- package/dist/refresh.d.ts +4 -0
- package/dist/refresh.js +19 -0
- package/dist/rename-field.d.ts +11 -0
- package/dist/rename-field.js +26 -0
- package/dist/reset-button.d.ts +9 -0
- package/dist/reset-button.js +10 -0
- package/dist/route-error.d.ts +42 -0
- package/dist/route-error.js +229 -0
- package/dist/schedules.d.ts +88 -0
- package/dist/schedules.js +221 -0
- package/dist/settings.d.ts +51 -0
- package/dist/settings.js +181 -0
- package/dist/shell.d.ts +99 -0
- package/dist/shell.js +137 -0
- package/dist/source-health.d.ts +12 -0
- package/dist/source-health.js +58 -0
- package/dist/sourced-card.d.ts +10 -0
- package/dist/sourced-card.js +69 -0
- package/dist/spotlight.d.ts +23 -0
- package/dist/spotlight.js +138 -0
- package/dist/status-health.d.ts +16 -0
- package/dist/status-health.js +41 -0
- package/dist/status.d.ts +9 -0
- package/dist/status.js +12 -0
- package/dist/summary-cards.d.ts +56 -0
- package/dist/summary-cards.js +270 -0
- package/dist/symbol-sheet-context.d.ts +4 -0
- package/dist/symbol-sheet-context.js +5 -0
- package/dist/symbol-sheet.d.ts +9 -0
- package/dist/symbol-sheet.js +24 -0
- package/dist/tasks.d.ts +29 -0
- package/dist/tasks.js +278 -0
- package/dist/theme.css +606 -0
- package/dist/tile.d.ts +37 -0
- package/dist/tile.js +23 -0
- package/dist/ui/alert-dialog.d.ts +18 -0
- package/dist/ui/alert-dialog.js +41 -0
- package/dist/ui/alert.d.ts +10 -0
- package/dist/ui/alert.js +27 -0
- package/dist/ui/avatar.d.ts +11 -0
- package/dist/ui/avatar.js +22 -0
- package/dist/ui/badge.d.ts +9 -0
- package/dist/ui/badge.js +27 -0
- package/dist/ui/breadcrumb.d.ts +11 -0
- package/dist/ui/breadcrumb.js +27 -0
- package/dist/ui/button-group.d.ts +11 -0
- package/dist/ui/button-group.js +27 -0
- package/dist/ui/button.d.ts +10 -0
- package/dist/ui/button.js +38 -0
- package/dist/ui/card.d.ts +11 -0
- package/dist/ui/card.js +24 -0
- package/dist/ui/chart.d.ts +44 -0
- package/dist/ui/chart.js +117 -0
- package/dist/ui/checkbox.d.ts +4 -0
- package/dist/ui/checkbox.js +8 -0
- package/dist/ui/collapsible.d.ts +5 -0
- package/dist/ui/collapsible.js +12 -0
- package/dist/ui/combobox.d.ts +24 -0
- package/dist/ui/combobox.js +60 -0
- package/dist/ui/command.d.ts +18 -0
- package/dist/ui/command.js +34 -0
- package/dist/ui/dialog.d.ts +23 -0
- package/dist/ui/dialog.js +50 -0
- package/dist/ui/dropdown-menu.d.ts +29 -0
- package/dist/ui/dropdown-menu.js +50 -0
- package/dist/ui/emoji-picker.d.ts +6 -0
- package/dist/ui/emoji-picker.js +28 -0
- package/dist/ui/empty.d.ts +11 -0
- package/dist/ui/empty.js +33 -0
- package/dist/ui/field.d.ts +24 -0
- package/dist/ui/field.js +65 -0
- package/dist/ui/hover-card.d.ts +6 -0
- package/dist/ui/hover-card.js +13 -0
- package/dist/ui/input-group.d.ts +16 -0
- package/dist/ui/input-group.js +56 -0
- package/dist/ui/input.d.ts +3 -0
- package/dist/ui/input.js +6 -0
- package/dist/ui/item.d.ts +23 -0
- package/dist/ui/item.js +67 -0
- package/dist/ui/kbd.d.ts +3 -0
- package/dist/ui/kbd.js +9 -0
- package/dist/ui/label.d.ts +4 -0
- package/dist/ui/label.js +7 -0
- package/dist/ui/popover.d.ts +10 -0
- package/dist/ui/popover.js +25 -0
- package/dist/ui/progress.d.ts +4 -0
- package/dist/ui/progress.js +9 -0
- package/dist/ui/resizable.d.ts +7 -0
- package/dist/ui/resizable.js +13 -0
- package/dist/ui/scroll-area.d.ts +5 -0
- package/dist/ui/scroll-area.js +10 -0
- package/dist/ui/select.d.ts +15 -0
- package/dist/ui/select.js +36 -0
- package/dist/ui/separator.d.ts +4 -0
- package/dist/ui/separator.js +7 -0
- package/dist/ui/sheet.d.ts +14 -0
- package/dist/ui/sheet.js +54 -0
- package/dist/ui/sidebar.d.ts +69 -0
- package/dist/ui/sidebar.js +206 -0
- package/dist/ui/skeleton.d.ts +2 -0
- package/dist/ui/skeleton.js +6 -0
- package/dist/ui/slider.d.ts +4 -0
- package/dist/ui/slider.js +9 -0
- package/dist/ui/sonner.d.ts +3 -0
- package/dist/ui/sonner.js +24 -0
- package/dist/ui/spinner.d.ts +2 -0
- package/dist/ui/spinner.js +7 -0
- package/dist/ui/switch.d.ts +6 -0
- package/dist/ui/switch.js +7 -0
- package/dist/ui/table.d.ts +10 -0
- package/dist/ui/table.js +31 -0
- package/dist/ui/tabs.d.ts +7 -0
- package/dist/ui/tabs.js +22 -0
- package/dist/ui/textarea.d.ts +3 -0
- package/dist/ui/textarea.js +6 -0
- package/dist/ui/toggle-group.d.ts +10 -0
- package/dist/ui/toggle-group.js +22 -0
- package/dist/ui/toggle.d.ts +9 -0
- package/dist/ui/toggle.js +25 -0
- package/dist/ui/tooltip.d.ts +7 -0
- package/dist/ui/tooltip.js +16 -0
- package/dist/view-edit-cell.d.ts +49 -0
- package/dist/view-edit-cell.js +198 -0
- package/dist/view-editor.d.ts +52 -0
- package/dist/view-editor.js +1081 -0
- package/dist/view-formulas.d.ts +61 -0
- package/dist/view-formulas.js +247 -0
- package/dist/view-icons.d.ts +20 -0
- package/dist/view-icons.js +70 -0
- package/dist/view-model.d.ts +390 -0
- package/dist/view-model.js +316 -0
- package/dist/whats-new.d.ts +3 -0
- package/dist/whats-new.js +53 -0
- package/dist/widget-controls.d.ts +9 -0
- package/dist/widget-controls.js +26 -0
- package/dist/widget-data.d.ts +4 -0
- package/dist/widget-data.js +32 -0
- package/dist/widget-settings.d.ts +516 -0
- package/dist/widget-settings.js +290 -0
- package/dist/widget-thumbs.d.ts +3 -0
- package/dist/widget-thumbs.js +29 -0
- package/dist/workspace-keys.d.ts +12 -0
- package/dist/workspace-keys.js +13 -0
- package/dist/workspaces.d.ts +57 -0
- package/dist/workspaces.js +473 -0
- package/package.json +82 -4
|
@@ -0,0 +1,720 @@
|
|
|
1
|
+
import { type CustomViewConfig, type ViewCard, type ViewCardKind, type ViewWidget } from '@columenlabs/lumen-ui-types/views';
|
|
2
|
+
import { type LucideIcon } from 'lucide-react';
|
|
3
|
+
import { type ReactNode } from 'react';
|
|
4
|
+
import { type FilterField } from './lumen-filter.js';
|
|
5
|
+
import { type LinkColor } from './lumen-links.js';
|
|
6
|
+
import { type LumenLoad } from './lumen-source.js';
|
|
7
|
+
import { type ViewDomain, type ViewField } from './view-model.js';
|
|
8
|
+
/** A card's icon, from its kind and style. */
|
|
9
|
+
export declare const cardIcon: (c: {
|
|
10
|
+
kind: ViewCardKind;
|
|
11
|
+
style?: string;
|
|
12
|
+
}) => LucideIcon;
|
|
13
|
+
/** The widths a card can take, in columns of the desktop's 6. */
|
|
14
|
+
export declare const CARD_COLUMNS: readonly [1, 2, 3, 4, 5, 6];
|
|
15
|
+
/** The longest name a widget takes. */
|
|
16
|
+
export declare const CARD_TITLE_MAX = 40;
|
|
17
|
+
export declare const cardTitle: (b: ViewCard, viewName: string) => string;
|
|
18
|
+
/** The domain's fields as the filter box reads them, for a card's own tokens. */
|
|
19
|
+
export declare function cardFilterFields<T>(fields: ViewField<T>[]): FilterField<T>[];
|
|
20
|
+
/** A chart, top-N or market widget's body over `rows` (the view's shown rows). */
|
|
21
|
+
export declare function WidgetBody<T>({ card, domain, rows, fields, merge, onDetails, }: {
|
|
22
|
+
card: ViewCard;
|
|
23
|
+
domain: ViewDomain<T>;
|
|
24
|
+
/** Every row of the view (not the table's filter). */
|
|
25
|
+
rows: T[];
|
|
26
|
+
fields: FilterField<T>[];
|
|
27
|
+
/** Folds rows the way the view's flat table does (one line per symbol). */
|
|
28
|
+
merge: (rows: T[]) => T[];
|
|
29
|
+
onDetails?: (row: T) => void;
|
|
30
|
+
}): import("react").JSX.Element | null;
|
|
31
|
+
export type CardAction = 'edit' | 'duplicate' | 'up' | 'down' | 'remove';
|
|
32
|
+
/** What LumenLayout gives each of its cards: the layout's edit state and the card's place in it. */
|
|
33
|
+
export interface CardControls {
|
|
34
|
+
/** The page's layout is being edited. */
|
|
35
|
+
layout: boolean;
|
|
36
|
+
/** The person may change this view (an app view is read-only). */
|
|
37
|
+
editable: boolean;
|
|
38
|
+
first: boolean;
|
|
39
|
+
last: boolean;
|
|
40
|
+
/** A card given its own height by its corner: back to as tall as it draws. */
|
|
41
|
+
onFit?: () => void;
|
|
42
|
+
onAction: (a: CardAction) => void;
|
|
43
|
+
/** A card the page draws itself: it moves and sizes, but has no Edit, Duplicate or Remove. */
|
|
44
|
+
fixed?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/** A card's link colour on its frame. */
|
|
47
|
+
export interface CardLink {
|
|
48
|
+
color: LinkColor | null;
|
|
49
|
+
onPick: (c: LinkColor | null) => void;
|
|
50
|
+
/** What it follows from other cards' linked chips: `IRA, Roth`. */
|
|
51
|
+
follows?: string;
|
|
52
|
+
/** Its own filter's linked chips (the phone's count beside the funnel). */
|
|
53
|
+
linked?: number;
|
|
54
|
+
}
|
|
55
|
+
export declare function LumenWidget({ id, kind, icon, title, note, controls, tools, filter, filterCount, load, rows, loadNote, pad, pinned, compact, className, children, link: given, help, assistant, strip, shown, style, }: {
|
|
56
|
+
id: string;
|
|
57
|
+
/** Its controls (Edit widget ▸ Controls): Ask the assistant, Refresh, Filter box and
|
|
58
|
+
* Footer show or hide here; missing keys take the type's default. */
|
|
59
|
+
shown?: ViewCard['controls'];
|
|
60
|
+
/** Its style, where it sets the type (a trend's spark or tracker is a Metric). */
|
|
61
|
+
style?: string;
|
|
62
|
+
/** ⓘ How to read: a few lines on what the card shows and how to read it,
|
|
63
|
+
* opened from the header. */
|
|
64
|
+
help?: ReactNode;
|
|
65
|
+
/** ✦ Ask the assistant on every card where the assistant answers: what the assistant needs beyond the
|
|
66
|
+
* card's title to read it ("Tune tn_… of playbook …: read it with tune_read"); false: no button. */
|
|
67
|
+
assistant?: string | false;
|
|
68
|
+
/** Its link colour: the square before the title, what it follows after it,
|
|
69
|
+
* and how many of its filter's chips are linked. Left out: the page's colour for `id` (every
|
|
70
|
+
* card carries the square); false: none (a form, with no data to link). */
|
|
71
|
+
link?: CardLink | false;
|
|
72
|
+
/** The card's kind; null for a card a page builds in code (not in the view's config). */
|
|
73
|
+
kind: ViewCardKind | null;
|
|
74
|
+
icon?: LucideIcon;
|
|
75
|
+
title: string;
|
|
76
|
+
note?: ReactNode;
|
|
77
|
+
/** Left out: a card the layout cannot edit. */
|
|
78
|
+
controls?: CardControls;
|
|
79
|
+
/** Buttons before the ↻, e.g. a view's pager. */
|
|
80
|
+
tools?: ReactNode;
|
|
81
|
+
/** The card's own filter (a view's LumenTokenizedFilter and Group): on the title's line
|
|
82
|
+
* when the header is wide, on a line under it when narrow, behind a funnel button on phone. */
|
|
83
|
+
filter?: ReactNode;
|
|
84
|
+
/** Active filter tokens, the count on the phone's funnel button. */
|
|
85
|
+
filterCount?: number;
|
|
86
|
+
/**
|
|
87
|
+
* A line under the header and filter (widget anatomy zone 4): what the card
|
|
88
|
+
* follows, or an offer such as Link to Holdings by Symbol.
|
|
89
|
+
*/
|
|
90
|
+
strip?: ReactNode;
|
|
91
|
+
/** The card's source: its ↻, and its load time below the body. */
|
|
92
|
+
load?: LumenLoad;
|
|
93
|
+
rows?: number;
|
|
94
|
+
/** Said in the load line instead of rows, e.g. "from the view's rows". */
|
|
95
|
+
loadNote?: string;
|
|
96
|
+
pad?: boolean;
|
|
97
|
+
/** The header stays in sight while a wide view scrolls sideways under it. */
|
|
98
|
+
pinned?: boolean;
|
|
99
|
+
/** A LumenCard (one number): its title is a small label over the number, no rule under it. */
|
|
100
|
+
compact?: boolean;
|
|
101
|
+
className?: string;
|
|
102
|
+
children: ReactNode;
|
|
103
|
+
}): import("react").JSX.Element;
|
|
104
|
+
/**
|
|
105
|
+
* One widget in its card. Widgets over the view's rows (tiles,
|
|
106
|
+
* charts, top N) load with the view: its states, its ↻. Market and price chart widgets read their own
|
|
107
|
+
* data and start once their card scrolls into view.
|
|
108
|
+
*/
|
|
109
|
+
export declare function LumenSavedWidget<T>({ widget, title, domain, rows, fields, merge, onDetails, load, tiles, controls, link, }: {
|
|
110
|
+
widget: ViewWidget;
|
|
111
|
+
/** Its link colour and what it follows (the layout narrows `rows` by it). */
|
|
112
|
+
link?: CardLink;
|
|
113
|
+
title: string;
|
|
114
|
+
domain: ViewDomain<T>;
|
|
115
|
+
/** Every row of the view (not the table's filter). */
|
|
116
|
+
rows: T[];
|
|
117
|
+
fields: FilterField<T>[];
|
|
118
|
+
/** Folds rows the way the view's flat table does (one line per symbol). */
|
|
119
|
+
merge: (rows: T[]) => T[];
|
|
120
|
+
onDetails?: (row: T) => void;
|
|
121
|
+
/** The view's rows' loading state, for widgets drawn from them. */
|
|
122
|
+
load?: LumenLoad;
|
|
123
|
+
/** The tiles widget's tiles, drawn by the layout. */
|
|
124
|
+
tiles?: ReactNode;
|
|
125
|
+
controls?: CardControls;
|
|
126
|
+
}): import("react").JSX.Element;
|
|
127
|
+
/** The page header's layout slot while a page's layout is edited: Add widget, Cancel and Save,
|
|
128
|
+
* icons only (in the header, not a bar of their own: Cancel
|
|
129
|
+
* drops the changes and leaves, in place of Reset). */
|
|
130
|
+
export declare function LayoutActions({ onCancel, onAdd, onSave, onReset, }: {
|
|
131
|
+
onCancel: () => void;
|
|
132
|
+
onAdd: () => void;
|
|
133
|
+
onSave: () => void;
|
|
134
|
+
/** A built-in page the person changed: puts it back to its default. */
|
|
135
|
+
onReset?: () => void;
|
|
136
|
+
}): import("react").JSX.Element;
|
|
137
|
+
/** The chip beside the title while a page's layout is edited. */
|
|
138
|
+
export declare function LayoutChip(): import("react").JSX.Element;
|
|
139
|
+
/** An id not yet used in `cards`: `base`, else `base_2`, `base_3`... */
|
|
140
|
+
export declare function freeId(cards: ViewCard[], base: string): string;
|
|
141
|
+
/** A new card of a style (`kind:style`) with sensible fields of this domain. */
|
|
142
|
+
export declare function draftOf<T>(styleId: string, domain: ViewDomain<T>, cards: ViewCard[]): ViewCard;
|
|
143
|
+
/** Whether the app can draw a style: Market needs its live feed, Price its history route, Growth
|
|
144
|
+
* of $1 a domain that draws curves. */
|
|
145
|
+
export declare function useOffered<T>(domain: ViewDomain<T>): (styleId: string) => boolean;
|
|
146
|
+
/** Add widget: the domain's pre-built widgets, or a kind to build. */
|
|
147
|
+
export declare function AddWidgetDialog<T>({ open, onOpenChange, domain, cards, onAdd, onBuild, name, }: {
|
|
148
|
+
open: boolean;
|
|
149
|
+
onOpenChange: (o: boolean) => void;
|
|
150
|
+
domain: ViewDomain<T>;
|
|
151
|
+
cards: ViewCard[];
|
|
152
|
+
/** The page's name, for the data picker's "this page" row. */
|
|
153
|
+
name?: string;
|
|
154
|
+
/** Adds a ready card (a pre-built widget, or the view's tiles or the view itself). */
|
|
155
|
+
onAdd: (card: ViewCard) => void;
|
|
156
|
+
/** Opens Edit widget on a new card of a kind. */
|
|
157
|
+
onBuild: (card: ViewCard) => void;
|
|
158
|
+
}): import("react").JSX.Element;
|
|
159
|
+
/** A page's cards after `action` on card `i`, or null for Edit (the caller opens a dialog). */
|
|
160
|
+
export declare function cardsAfter(cards: ViewCard[], i: number, action: CardAction): ({
|
|
161
|
+
id: string;
|
|
162
|
+
title: string | null;
|
|
163
|
+
w: number;
|
|
164
|
+
h?: number | undefined;
|
|
165
|
+
x?: number | undefined;
|
|
166
|
+
y?: number | undefined;
|
|
167
|
+
phone?: {
|
|
168
|
+
x: number;
|
|
169
|
+
y: number;
|
|
170
|
+
w: number;
|
|
171
|
+
h?: number | undefined;
|
|
172
|
+
} | undefined;
|
|
173
|
+
filter: {
|
|
174
|
+
key: string;
|
|
175
|
+
value: string;
|
|
176
|
+
not?: boolean | undefined;
|
|
177
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
178
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
179
|
+
}[];
|
|
180
|
+
source?: string | undefined;
|
|
181
|
+
connections?: {
|
|
182
|
+
to: string;
|
|
183
|
+
on: {
|
|
184
|
+
from: string;
|
|
185
|
+
to: string;
|
|
186
|
+
}[];
|
|
187
|
+
}[] | undefined;
|
|
188
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
189
|
+
controls?: Partial<Record<"ask" | "columns" | "download" | "filter" | "footer" | "group" | "header" | "legend" | "pager" | "refresh" | "window", boolean>> | undefined;
|
|
190
|
+
kind: "table";
|
|
191
|
+
style: "table";
|
|
192
|
+
table?: {
|
|
193
|
+
shape: "group" | "pivot" | "table";
|
|
194
|
+
columns: string[];
|
|
195
|
+
hidden?: string[] | undefined;
|
|
196
|
+
chips: {
|
|
197
|
+
key: string;
|
|
198
|
+
placement: "column" | "inline";
|
|
199
|
+
}[];
|
|
200
|
+
formats?: Record<string, "compact" | "integer" | "number" | "percent" | "price" | "price_rounded" | "price_signed" | "rounded" | "signed" | "weight"> | undefined;
|
|
201
|
+
aggs?: Record<string, "count" | "distinct" | "first" | "last" | "max" | "mean" | "min" | "none" | "sum"> | undefined;
|
|
202
|
+
group: {
|
|
203
|
+
fields: string[];
|
|
204
|
+
default: string | null;
|
|
205
|
+
};
|
|
206
|
+
subgroup?: string | null | undefined;
|
|
207
|
+
pivot: {
|
|
208
|
+
rows: string;
|
|
209
|
+
columns: string;
|
|
210
|
+
value: string;
|
|
211
|
+
agg: "count" | "distinct" | "first" | "last" | "max" | "mean" | "min" | "sum";
|
|
212
|
+
} | null;
|
|
213
|
+
sort: {
|
|
214
|
+
key: string;
|
|
215
|
+
desc: boolean;
|
|
216
|
+
} | null;
|
|
217
|
+
pagination: {
|
|
218
|
+
on: boolean;
|
|
219
|
+
size: 25 | 50 | 100 | 250;
|
|
220
|
+
};
|
|
221
|
+
width?: "fit" | "scroll" | undefined;
|
|
222
|
+
} | undefined;
|
|
223
|
+
} | {
|
|
224
|
+
id: string;
|
|
225
|
+
title: string | null;
|
|
226
|
+
w: number;
|
|
227
|
+
h?: number | undefined;
|
|
228
|
+
x?: number | undefined;
|
|
229
|
+
y?: number | undefined;
|
|
230
|
+
phone?: {
|
|
231
|
+
x: number;
|
|
232
|
+
y: number;
|
|
233
|
+
w: number;
|
|
234
|
+
h?: number | undefined;
|
|
235
|
+
} | undefined;
|
|
236
|
+
filter: {
|
|
237
|
+
key: string;
|
|
238
|
+
value: string;
|
|
239
|
+
not?: boolean | undefined;
|
|
240
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
241
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
242
|
+
}[];
|
|
243
|
+
source?: string | undefined;
|
|
244
|
+
connections?: {
|
|
245
|
+
to: string;
|
|
246
|
+
on: {
|
|
247
|
+
from: string;
|
|
248
|
+
to: string;
|
|
249
|
+
}[];
|
|
250
|
+
}[] | undefined;
|
|
251
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
252
|
+
controls?: Partial<Record<"ask" | "columns" | "download" | "filter" | "footer" | "group" | "header" | "legend" | "pager" | "refresh" | "window", boolean>> | undefined;
|
|
253
|
+
kind: "table";
|
|
254
|
+
style: "top_n";
|
|
255
|
+
sort: string;
|
|
256
|
+
desc: boolean;
|
|
257
|
+
n: number;
|
|
258
|
+
columns: string[];
|
|
259
|
+
} | {
|
|
260
|
+
id: string;
|
|
261
|
+
title: string | null;
|
|
262
|
+
h?: number | undefined;
|
|
263
|
+
x?: number | undefined;
|
|
264
|
+
y?: number | undefined;
|
|
265
|
+
phone?: {
|
|
266
|
+
x: number;
|
|
267
|
+
y: number;
|
|
268
|
+
w: number;
|
|
269
|
+
h?: number | undefined;
|
|
270
|
+
} | undefined;
|
|
271
|
+
filter: {
|
|
272
|
+
key: string;
|
|
273
|
+
value: string;
|
|
274
|
+
not?: boolean | undefined;
|
|
275
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
276
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
277
|
+
}[];
|
|
278
|
+
source?: string | undefined;
|
|
279
|
+
connections?: {
|
|
280
|
+
to: string;
|
|
281
|
+
on: {
|
|
282
|
+
from: string;
|
|
283
|
+
to: string;
|
|
284
|
+
}[];
|
|
285
|
+
}[] | undefined;
|
|
286
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
287
|
+
controls?: Partial<Record<"ask" | "columns" | "download" | "filter" | "footer" | "group" | "header" | "legend" | "pager" | "refresh" | "window", boolean>> | undefined;
|
|
288
|
+
kind: "metric";
|
|
289
|
+
style: "number" | "progress_bar" | "progress_circle";
|
|
290
|
+
w: number;
|
|
291
|
+
tile: {
|
|
292
|
+
key: string;
|
|
293
|
+
label: string;
|
|
294
|
+
field: string;
|
|
295
|
+
agg: "count" | "distinct" | "first" | "last" | "max" | "mean" | "min" | "sum";
|
|
296
|
+
filter: {
|
|
297
|
+
key: string;
|
|
298
|
+
value: string;
|
|
299
|
+
not?: boolean | undefined;
|
|
300
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
301
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
302
|
+
}[];
|
|
303
|
+
sign: boolean;
|
|
304
|
+
suffix: string;
|
|
305
|
+
lines: ({
|
|
306
|
+
kind: "value";
|
|
307
|
+
field: string;
|
|
308
|
+
agg: "count" | "distinct" | "first" | "last" | "max" | "mean" | "min" | "sum";
|
|
309
|
+
filter: {
|
|
310
|
+
key: string;
|
|
311
|
+
value: string;
|
|
312
|
+
not?: boolean | undefined;
|
|
313
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
314
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
315
|
+
}[];
|
|
316
|
+
suffix: string;
|
|
317
|
+
} | {
|
|
318
|
+
kind: "pct";
|
|
319
|
+
field: string;
|
|
320
|
+
agg: "count" | "distinct" | "first" | "last" | "max" | "mean" | "min" | "sum";
|
|
321
|
+
} | {
|
|
322
|
+
kind: "text";
|
|
323
|
+
text: string;
|
|
324
|
+
})[];
|
|
325
|
+
} | {
|
|
326
|
+
key: string;
|
|
327
|
+
};
|
|
328
|
+
target?: number | undefined;
|
|
329
|
+
meter?: "health" | "usage" | undefined;
|
|
330
|
+
bands?: {
|
|
331
|
+
warn: number;
|
|
332
|
+
bad: number;
|
|
333
|
+
} | undefined;
|
|
334
|
+
} | {
|
|
335
|
+
id: string;
|
|
336
|
+
title: string | null;
|
|
337
|
+
w: number;
|
|
338
|
+
h?: number | undefined;
|
|
339
|
+
x?: number | undefined;
|
|
340
|
+
y?: number | undefined;
|
|
341
|
+
phone?: {
|
|
342
|
+
x: number;
|
|
343
|
+
y: number;
|
|
344
|
+
w: number;
|
|
345
|
+
h?: number | undefined;
|
|
346
|
+
} | undefined;
|
|
347
|
+
filter: {
|
|
348
|
+
key: string;
|
|
349
|
+
value: string;
|
|
350
|
+
not?: boolean | undefined;
|
|
351
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
352
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
353
|
+
}[];
|
|
354
|
+
source?: string | undefined;
|
|
355
|
+
connections?: {
|
|
356
|
+
to: string;
|
|
357
|
+
on: {
|
|
358
|
+
from: string;
|
|
359
|
+
to: string;
|
|
360
|
+
}[];
|
|
361
|
+
}[] | undefined;
|
|
362
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
363
|
+
controls?: Partial<Record<"ask" | "columns" | "download" | "filter" | "footer" | "group" | "header" | "legend" | "pager" | "refresh" | "window", boolean>> | undefined;
|
|
364
|
+
kind: "metric";
|
|
365
|
+
style: "row";
|
|
366
|
+
tiles?: ({
|
|
367
|
+
key: string;
|
|
368
|
+
label: string;
|
|
369
|
+
field: string;
|
|
370
|
+
agg: "count" | "distinct" | "first" | "last" | "max" | "mean" | "min" | "sum";
|
|
371
|
+
filter: {
|
|
372
|
+
key: string;
|
|
373
|
+
value: string;
|
|
374
|
+
not?: boolean | undefined;
|
|
375
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
376
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
377
|
+
}[];
|
|
378
|
+
sign: boolean;
|
|
379
|
+
suffix: string;
|
|
380
|
+
lines: ({
|
|
381
|
+
kind: "value";
|
|
382
|
+
field: string;
|
|
383
|
+
agg: "count" | "distinct" | "first" | "last" | "max" | "mean" | "min" | "sum";
|
|
384
|
+
filter: {
|
|
385
|
+
key: string;
|
|
386
|
+
value: string;
|
|
387
|
+
not?: boolean | undefined;
|
|
388
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
389
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
390
|
+
}[];
|
|
391
|
+
suffix: string;
|
|
392
|
+
} | {
|
|
393
|
+
kind: "pct";
|
|
394
|
+
field: string;
|
|
395
|
+
agg: "count" | "distinct" | "first" | "last" | "max" | "mean" | "min" | "sum";
|
|
396
|
+
} | {
|
|
397
|
+
kind: "text";
|
|
398
|
+
text: string;
|
|
399
|
+
})[];
|
|
400
|
+
} | {
|
|
401
|
+
key: string;
|
|
402
|
+
})[] | undefined;
|
|
403
|
+
rank?: string | undefined;
|
|
404
|
+
cash?: boolean | undefined;
|
|
405
|
+
} | {
|
|
406
|
+
id: string;
|
|
407
|
+
title: string | null;
|
|
408
|
+
h?: number | undefined;
|
|
409
|
+
x?: number | undefined;
|
|
410
|
+
y?: number | undefined;
|
|
411
|
+
phone?: {
|
|
412
|
+
x: number;
|
|
413
|
+
y: number;
|
|
414
|
+
w: number;
|
|
415
|
+
h?: number | undefined;
|
|
416
|
+
} | undefined;
|
|
417
|
+
filter: {
|
|
418
|
+
key: string;
|
|
419
|
+
value: string;
|
|
420
|
+
not?: boolean | undefined;
|
|
421
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
422
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
423
|
+
}[];
|
|
424
|
+
source?: string | undefined;
|
|
425
|
+
connections?: {
|
|
426
|
+
to: string;
|
|
427
|
+
on: {
|
|
428
|
+
from: string;
|
|
429
|
+
to: string;
|
|
430
|
+
}[];
|
|
431
|
+
}[] | undefined;
|
|
432
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
433
|
+
controls?: Partial<Record<"ask" | "columns" | "download" | "filter" | "footer" | "group" | "header" | "legend" | "pager" | "refresh" | "window", boolean>> | undefined;
|
|
434
|
+
w: number;
|
|
435
|
+
date: string;
|
|
436
|
+
values: string[];
|
|
437
|
+
bucket: "day" | "month" | "week" | "year";
|
|
438
|
+
agg: "count" | "last" | "mean" | "sum";
|
|
439
|
+
kind: "metric";
|
|
440
|
+
style: "spark" | "tracker";
|
|
441
|
+
} | {
|
|
442
|
+
id: string;
|
|
443
|
+
title: string | null;
|
|
444
|
+
w: number;
|
|
445
|
+
h?: number | undefined;
|
|
446
|
+
x?: number | undefined;
|
|
447
|
+
y?: number | undefined;
|
|
448
|
+
phone?: {
|
|
449
|
+
x: number;
|
|
450
|
+
y: number;
|
|
451
|
+
w: number;
|
|
452
|
+
h?: number | undefined;
|
|
453
|
+
} | undefined;
|
|
454
|
+
filter: {
|
|
455
|
+
key: string;
|
|
456
|
+
value: string;
|
|
457
|
+
not?: boolean | undefined;
|
|
458
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
459
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
460
|
+
}[];
|
|
461
|
+
source?: string | undefined;
|
|
462
|
+
connections?: {
|
|
463
|
+
to: string;
|
|
464
|
+
on: {
|
|
465
|
+
from: string;
|
|
466
|
+
to: string;
|
|
467
|
+
}[];
|
|
468
|
+
}[] | undefined;
|
|
469
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
470
|
+
controls?: Partial<Record<"ask" | "columns" | "download" | "filter" | "footer" | "group" | "header" | "legend" | "pager" | "refresh" | "window", boolean>> | undefined;
|
|
471
|
+
kind: "allocation";
|
|
472
|
+
style: "bar";
|
|
473
|
+
by: string;
|
|
474
|
+
value: string;
|
|
475
|
+
max: number;
|
|
476
|
+
} | {
|
|
477
|
+
id: string;
|
|
478
|
+
title: string | null;
|
|
479
|
+
w: number;
|
|
480
|
+
h?: number | undefined;
|
|
481
|
+
x?: number | undefined;
|
|
482
|
+
y?: number | undefined;
|
|
483
|
+
phone?: {
|
|
484
|
+
x: number;
|
|
485
|
+
y: number;
|
|
486
|
+
w: number;
|
|
487
|
+
h?: number | undefined;
|
|
488
|
+
} | undefined;
|
|
489
|
+
filter: {
|
|
490
|
+
key: string;
|
|
491
|
+
value: string;
|
|
492
|
+
not?: boolean | undefined;
|
|
493
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
494
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
495
|
+
}[];
|
|
496
|
+
source?: string | undefined;
|
|
497
|
+
connections?: {
|
|
498
|
+
to: string;
|
|
499
|
+
on: {
|
|
500
|
+
from: string;
|
|
501
|
+
to: string;
|
|
502
|
+
}[];
|
|
503
|
+
}[] | undefined;
|
|
504
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
505
|
+
controls?: Partial<Record<"ask" | "columns" | "download" | "filter" | "footer" | "group" | "header" | "legend" | "pager" | "refresh" | "window", boolean>> | undefined;
|
|
506
|
+
kind: "allocation";
|
|
507
|
+
style: "donut";
|
|
508
|
+
by: string;
|
|
509
|
+
value: string;
|
|
510
|
+
max: number;
|
|
511
|
+
} | {
|
|
512
|
+
id: string;
|
|
513
|
+
title: string | null;
|
|
514
|
+
w: number;
|
|
515
|
+
h?: number | undefined;
|
|
516
|
+
x?: number | undefined;
|
|
517
|
+
y?: number | undefined;
|
|
518
|
+
phone?: {
|
|
519
|
+
x: number;
|
|
520
|
+
y: number;
|
|
521
|
+
w: number;
|
|
522
|
+
h?: number | undefined;
|
|
523
|
+
} | undefined;
|
|
524
|
+
filter: {
|
|
525
|
+
key: string;
|
|
526
|
+
value: string;
|
|
527
|
+
not?: boolean | undefined;
|
|
528
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
529
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
530
|
+
}[];
|
|
531
|
+
source?: string | undefined;
|
|
532
|
+
connections?: {
|
|
533
|
+
to: string;
|
|
534
|
+
on: {
|
|
535
|
+
from: string;
|
|
536
|
+
to: string;
|
|
537
|
+
}[];
|
|
538
|
+
}[] | undefined;
|
|
539
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
540
|
+
controls?: Partial<Record<"ask" | "columns" | "download" | "filter" | "footer" | "group" | "header" | "legend" | "pager" | "refresh" | "window", boolean>> | undefined;
|
|
541
|
+
kind: "allocation";
|
|
542
|
+
style: "bar_list";
|
|
543
|
+
by: string;
|
|
544
|
+
value: string;
|
|
545
|
+
signed: boolean;
|
|
546
|
+
stack?: string | undefined;
|
|
547
|
+
desc: boolean;
|
|
548
|
+
n: number;
|
|
549
|
+
} | {
|
|
550
|
+
id: string;
|
|
551
|
+
title: string | null;
|
|
552
|
+
w: number;
|
|
553
|
+
h?: number | undefined;
|
|
554
|
+
x?: number | undefined;
|
|
555
|
+
y?: number | undefined;
|
|
556
|
+
phone?: {
|
|
557
|
+
x: number;
|
|
558
|
+
y: number;
|
|
559
|
+
w: number;
|
|
560
|
+
h?: number | undefined;
|
|
561
|
+
} | undefined;
|
|
562
|
+
filter: {
|
|
563
|
+
key: string;
|
|
564
|
+
value: string;
|
|
565
|
+
not?: boolean | undefined;
|
|
566
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
567
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
568
|
+
}[];
|
|
569
|
+
source?: string | undefined;
|
|
570
|
+
connections?: {
|
|
571
|
+
to: string;
|
|
572
|
+
on: {
|
|
573
|
+
from: string;
|
|
574
|
+
to: string;
|
|
575
|
+
}[];
|
|
576
|
+
}[] | undefined;
|
|
577
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
578
|
+
controls?: Partial<Record<"ask" | "columns" | "download" | "filter" | "footer" | "group" | "header" | "legend" | "pager" | "refresh" | "window", boolean>> | undefined;
|
|
579
|
+
kind: "chart";
|
|
580
|
+
style: "price";
|
|
581
|
+
symbol: string;
|
|
582
|
+
window: "1D" | "1M" | "1Y" | "5D" | "5Y" | "6M" | "Max" | "YTD";
|
|
583
|
+
type: "candles" | "line";
|
|
584
|
+
} | {
|
|
585
|
+
id: string;
|
|
586
|
+
title: string | null;
|
|
587
|
+
w: number;
|
|
588
|
+
h?: number | undefined;
|
|
589
|
+
x?: number | undefined;
|
|
590
|
+
y?: number | undefined;
|
|
591
|
+
phone?: {
|
|
592
|
+
x: number;
|
|
593
|
+
y: number;
|
|
594
|
+
w: number;
|
|
595
|
+
h?: number | undefined;
|
|
596
|
+
} | undefined;
|
|
597
|
+
filter: {
|
|
598
|
+
key: string;
|
|
599
|
+
value: string;
|
|
600
|
+
not?: boolean | undefined;
|
|
601
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
602
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
603
|
+
}[];
|
|
604
|
+
source?: string | undefined;
|
|
605
|
+
connections?: {
|
|
606
|
+
to: string;
|
|
607
|
+
on: {
|
|
608
|
+
from: string;
|
|
609
|
+
to: string;
|
|
610
|
+
}[];
|
|
611
|
+
}[] | undefined;
|
|
612
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
613
|
+
controls?: Partial<Record<"ask" | "columns" | "download" | "filter" | "footer" | "group" | "header" | "legend" | "pager" | "refresh" | "window", boolean>> | undefined;
|
|
614
|
+
kind: "chart";
|
|
615
|
+
style: "growth";
|
|
616
|
+
scale: "linear" | "log";
|
|
617
|
+
} | {
|
|
618
|
+
id: string;
|
|
619
|
+
title: string | null;
|
|
620
|
+
w: number;
|
|
621
|
+
h?: number | undefined;
|
|
622
|
+
x?: number | undefined;
|
|
623
|
+
y?: number | undefined;
|
|
624
|
+
phone?: {
|
|
625
|
+
x: number;
|
|
626
|
+
y: number;
|
|
627
|
+
w: number;
|
|
628
|
+
h?: number | undefined;
|
|
629
|
+
} | undefined;
|
|
630
|
+
filter: {
|
|
631
|
+
key: string;
|
|
632
|
+
value: string;
|
|
633
|
+
not?: boolean | undefined;
|
|
634
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
635
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
636
|
+
}[];
|
|
637
|
+
source?: string | undefined;
|
|
638
|
+
connections?: {
|
|
639
|
+
to: string;
|
|
640
|
+
on: {
|
|
641
|
+
from: string;
|
|
642
|
+
to: string;
|
|
643
|
+
}[];
|
|
644
|
+
}[] | undefined;
|
|
645
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
646
|
+
controls?: Partial<Record<"ask" | "columns" | "download" | "filter" | "footer" | "group" | "header" | "legend" | "pager" | "refresh" | "window", boolean>> | undefined;
|
|
647
|
+
kind: "chart";
|
|
648
|
+
style: "market";
|
|
649
|
+
symbols: string[];
|
|
650
|
+
layout: "lines" | "tiles" | "today";
|
|
651
|
+
} | {
|
|
652
|
+
id: string;
|
|
653
|
+
title: string | null;
|
|
654
|
+
h?: number | undefined;
|
|
655
|
+
x?: number | undefined;
|
|
656
|
+
y?: number | undefined;
|
|
657
|
+
phone?: {
|
|
658
|
+
x: number;
|
|
659
|
+
y: number;
|
|
660
|
+
w: number;
|
|
661
|
+
h?: number | undefined;
|
|
662
|
+
} | undefined;
|
|
663
|
+
filter: {
|
|
664
|
+
key: string;
|
|
665
|
+
value: string;
|
|
666
|
+
not?: boolean | undefined;
|
|
667
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
668
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
669
|
+
}[];
|
|
670
|
+
source?: string | undefined;
|
|
671
|
+
connections?: {
|
|
672
|
+
to: string;
|
|
673
|
+
on: {
|
|
674
|
+
from: string;
|
|
675
|
+
to: string;
|
|
676
|
+
}[];
|
|
677
|
+
}[] | undefined;
|
|
678
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
679
|
+
controls?: Partial<Record<"ask" | "columns" | "download" | "filter" | "footer" | "group" | "header" | "legend" | "pager" | "refresh" | "window", boolean>> | undefined;
|
|
680
|
+
w: number;
|
|
681
|
+
date: string;
|
|
682
|
+
values: string[];
|
|
683
|
+
bucket: "day" | "month" | "week" | "year";
|
|
684
|
+
agg: "count" | "last" | "mean" | "sum";
|
|
685
|
+
kind: "chart";
|
|
686
|
+
style: "area" | "bars" | "combo" | "line" | "stacked";
|
|
687
|
+
} | {
|
|
688
|
+
id: string;
|
|
689
|
+
title: string | null;
|
|
690
|
+
w: number;
|
|
691
|
+
h?: number | undefined;
|
|
692
|
+
x?: number | undefined;
|
|
693
|
+
y?: number | undefined;
|
|
694
|
+
phone?: {
|
|
695
|
+
x: number;
|
|
696
|
+
y: number;
|
|
697
|
+
w: number;
|
|
698
|
+
h?: number | undefined;
|
|
699
|
+
} | undefined;
|
|
700
|
+
filter: {
|
|
701
|
+
key: string;
|
|
702
|
+
value: string;
|
|
703
|
+
not?: boolean | undefined;
|
|
704
|
+
op?: "between" | "eq" | "gt" | "lt" | undefined;
|
|
705
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
706
|
+
}[];
|
|
707
|
+
source?: string | undefined;
|
|
708
|
+
connections?: {
|
|
709
|
+
to: string;
|
|
710
|
+
on: {
|
|
711
|
+
from: string;
|
|
712
|
+
to: string;
|
|
713
|
+
}[];
|
|
714
|
+
}[] | undefined;
|
|
715
|
+
link?: "amber" | "blue" | "lime" | "pink" | "teal" | undefined;
|
|
716
|
+
controls?: Partial<Record<"ask" | "columns" | "download" | "filter" | "footer" | "group" | "header" | "legend" | "pager" | "refresh" | "window", boolean>> | undefined;
|
|
717
|
+
kind: "page";
|
|
718
|
+
amount?: number | undefined;
|
|
719
|
+
})[] | null;
|
|
720
|
+
export type { CustomViewConfig };
|