@prismiq/react 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CustomSQLEditor-DYeId0Gp.d.ts → ChatBubble-ARocmvZD.d.cts} +48 -4
- package/dist/{CustomSQLEditor-BXB4rf1q.d.cts → ChatBubble-BN_CjIpk.d.ts} +48 -4
- package/dist/{DashboardDialog-B3vYC5Gs.d.ts → DashboardDialog-UhUGXx2h.d.ts} +6 -4
- package/dist/{DashboardDialog-LHmrtNQU.d.cts → DashboardDialog-Z-HypxmG.d.cts} +6 -4
- package/dist/{accessibility-2yy5yqRR.d.cts → accessibility-Bu2mNtaB.d.cts} +1 -1
- package/dist/{accessibility-2yy5yqRR.d.ts → accessibility-Bu2mNtaB.d.ts} +1 -1
- package/dist/charts/index.cjs +27 -27
- package/dist/charts/index.d.cts +2 -2
- package/dist/charts/index.d.ts +2 -2
- package/dist/charts/index.js +2 -2
- package/dist/{chunk-NK7HKX2J.cjs → chunk-73TPDGXB.cjs} +7 -7
- package/dist/{chunk-NK7HKX2J.cjs.map → chunk-73TPDGXB.cjs.map} +1 -1
- package/dist/{chunk-FEABEF3J.cjs → chunk-FKXCINUF.cjs} +551 -299
- package/dist/chunk-FKXCINUF.cjs.map +1 -0
- package/dist/{chunk-2H5WTH4K.js → chunk-FQ23KG6G.js} +3 -3
- package/dist/{chunk-2H5WTH4K.js.map → chunk-FQ23KG6G.js.map} +1 -1
- package/dist/{chunk-UPYINBZU.js → chunk-GELI7MDZ.js} +982 -51
- package/dist/chunk-GELI7MDZ.js.map +1 -0
- package/dist/{chunk-WWTT2OJ5.js → chunk-HKZFEXT6.js} +27 -9
- package/dist/chunk-HKZFEXT6.js.map +1 -0
- package/dist/{chunk-MOAEEF5P.js → chunk-JBJ5LEAG.js} +362 -110
- package/dist/chunk-JBJ5LEAG.js.map +1 -0
- package/dist/{chunk-4AVL6GQK.cjs → chunk-KXB2IZI2.cjs} +36 -9
- package/dist/chunk-KXB2IZI2.cjs.map +1 -0
- package/dist/{chunk-EX74SI67.js → chunk-LBE6GIBC.js} +36 -9
- package/dist/chunk-LBE6GIBC.js.map +1 -0
- package/dist/{chunk-NY6TZLST.cjs → chunk-PG7QBH3G.cjs} +988 -53
- package/dist/chunk-PG7QBH3G.cjs.map +1 -0
- package/dist/{chunk-MDXGGZSW.cjs → chunk-ZYVN6XAZ.cjs} +35 -37
- package/dist/chunk-ZYVN6XAZ.cjs.map +1 -0
- package/dist/components/index.cjs +63 -55
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +2 -2
- package/dist/dashboard/index.cjs +36 -36
- package/dist/dashboard/index.d.cts +7 -5
- package/dist/dashboard/index.d.ts +7 -5
- package/dist/dashboard/index.js +4 -4
- package/dist/export/index.cjs +7 -7
- package/dist/export/index.d.cts +6 -4
- package/dist/export/index.d.ts +6 -4
- package/dist/export/index.js +1 -1
- package/dist/{index-C-Qcuu4Y.d.cts → index-B8DelfpL.d.cts} +2 -2
- package/dist/{index-rPc7ijt8.d.ts → index-RbfYPQD_.d.ts} +2 -2
- package/dist/index.cjs +150 -134
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +97 -9
- package/dist/index.d.ts +97 -9
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/{types-WrCbOeAV.d.cts → types-ccB9Ps3k.d.cts} +59 -1
- package/dist/{types-WrCbOeAV.d.ts → types-ccB9Ps3k.d.ts} +59 -1
- package/dist/utils/index.cjs +15 -15
- package/dist/utils/index.d.cts +5 -21
- package/dist/utils/index.d.ts +5 -21
- package/dist/utils/index.js +1 -1
- package/package.json +3 -7
- package/dist/chunk-4AVL6GQK.cjs.map +0 -1
- package/dist/chunk-EX74SI67.js.map +0 -1
- package/dist/chunk-FEABEF3J.cjs.map +0 -1
- package/dist/chunk-MDXGGZSW.cjs.map +0 -1
- package/dist/chunk-MOAEEF5P.js.map +0 -1
- package/dist/chunk-NY6TZLST.cjs.map +0 -1
- package/dist/chunk-UPYINBZU.js.map +0 -1
- package/dist/chunk-WWTT2OJ5.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, HTMLAttributes, ReactElement, SVGAttributes, Component, ErrorInfo } from 'react';
|
|
3
|
-
import { c as TableSchema,
|
|
3
|
+
import { c as TableSchema, s as ColumnSchema, b as QueryTable, t as ColumnSelection, D as DatabaseSchema, F as FilterDefinition, v as FilterOperator, x as SortDefinition, A as AggregationType, Q as QueryResult, a as QueryDefinition, k as SavedQuery, o as ChatMessage } from './types-ccB9Ps3k.cjs';
|
|
4
4
|
|
|
5
5
|
interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
6
6
|
/** Button visual style. */
|
|
@@ -660,6 +660,8 @@ interface SchemaExplorerProps {
|
|
|
660
660
|
searchable?: boolean;
|
|
661
661
|
/** Whether tables are collapsible. */
|
|
662
662
|
collapsible?: boolean;
|
|
663
|
+
/** Optional element rendered at the right end of the header row. */
|
|
664
|
+
headerAction?: React.ReactNode;
|
|
663
665
|
/** Additional class name. */
|
|
664
666
|
className?: string;
|
|
665
667
|
/** Additional styles. */
|
|
@@ -678,7 +680,7 @@ interface SchemaExplorerProps {
|
|
|
678
680
|
* />
|
|
679
681
|
* ```
|
|
680
682
|
*/
|
|
681
|
-
declare function SchemaExplorer({ onTableSelect, onColumnSelect, onColumnDragStart, selectedTable, selectedColumns, searchable, collapsible, className, style, }: SchemaExplorerProps): JSX.Element;
|
|
683
|
+
declare function SchemaExplorer({ onTableSelect, onColumnSelect, onColumnDragStart, selectedTable, selectedColumns, searchable, collapsible, headerAction, className, style, }: SchemaExplorerProps): JSX.Element;
|
|
682
684
|
|
|
683
685
|
/**
|
|
684
686
|
* TableNode component for displaying a table in the schema explorer.
|
|
@@ -855,6 +857,8 @@ declare function FilterRow({ filter, tables, schema, onChange, onRemove, classNa
|
|
|
855
857
|
|
|
856
858
|
/**
|
|
857
859
|
* FilterValueInput component for entering filter values.
|
|
860
|
+
*
|
|
861
|
+
* Supports dynamic value loading from database when tableName and columnName are provided.
|
|
858
862
|
*/
|
|
859
863
|
|
|
860
864
|
interface FilterValueInputProps {
|
|
@@ -870,11 +874,16 @@ interface FilterValueInputProps {
|
|
|
870
874
|
disabled?: boolean;
|
|
871
875
|
/** Additional class name. */
|
|
872
876
|
className?: string;
|
|
877
|
+
/** Table name for fetching sample values. */
|
|
878
|
+
tableName?: string;
|
|
879
|
+
/** Column name for fetching sample values. */
|
|
880
|
+
columnName?: string;
|
|
873
881
|
}
|
|
874
882
|
/**
|
|
875
883
|
* Input component for filter values that adapts to the operator and data type.
|
|
884
|
+
* When tableName and columnName are provided, fetches sample values from database.
|
|
876
885
|
*/
|
|
877
|
-
declare function FilterValueInput({ operator, value, onChange, dataType, disabled, className, }: FilterValueInputProps): JSX.Element;
|
|
886
|
+
declare function FilterValueInput({ operator, value, onChange, dataType, disabled, className, tableName, columnName, }: FilterValueInputProps): JSX.Element;
|
|
878
887
|
|
|
879
888
|
/**
|
|
880
889
|
* SortBuilder component for defining sort order.
|
|
@@ -1294,4 +1303,39 @@ interface CustomSQLEditorProps {
|
|
|
1294
1303
|
*/
|
|
1295
1304
|
declare function CustomSQLEditor({ initialSql, onSqlChange, onExecute, placeholder, showResults, height, className, style, }: CustomSQLEditorProps): JSX.Element;
|
|
1296
1305
|
|
|
1297
|
-
|
|
1306
|
+
/**
|
|
1307
|
+
* Shared types for ChatPanel components.
|
|
1308
|
+
*/
|
|
1309
|
+
|
|
1310
|
+
interface ChatBubbleProps {
|
|
1311
|
+
/** The chat message to render. */
|
|
1312
|
+
message: ChatMessage;
|
|
1313
|
+
/** Callback when user clicks "Apply to Editor" on a SQL block. */
|
|
1314
|
+
onApplySql?: (sql: string) => void;
|
|
1315
|
+
}
|
|
1316
|
+
interface ChatPanelProps {
|
|
1317
|
+
/** Current SQL in the editor (passed as context to the agent). */
|
|
1318
|
+
currentSql: string | null;
|
|
1319
|
+
/** Callback when the user wants to apply SQL to the editor. */
|
|
1320
|
+
onApplySql: (sql: string) => void;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* Chat panel for LLM-assisted SQL generation.
|
|
1325
|
+
*
|
|
1326
|
+
* Side panel with message history, streaming indicator,
|
|
1327
|
+
* "Apply SQL" button, and input field.
|
|
1328
|
+
*/
|
|
1329
|
+
|
|
1330
|
+
declare function ChatPanel({ currentSql, onApplySql }: ChatPanelProps): JSX.Element;
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Chat message bubble component.
|
|
1334
|
+
*
|
|
1335
|
+
* Renders user and assistant messages with distinct styling.
|
|
1336
|
+
* Detects ```sql code blocks and adds an "Apply to Editor" button.
|
|
1337
|
+
*/
|
|
1338
|
+
|
|
1339
|
+
declare function ChatBubble({ message, onApplySql }: ChatBubbleProps): JSX.Element;
|
|
1340
|
+
|
|
1341
|
+
export { Pagination as $, AggregationPicker as A, Badge as B, ChatBubble as C, Dialog as D, EmptyDashboard as E, type EmptyDashboardProps as F, EmptyState as G, type EmptyStateProps as H, ErrorBoundary as I, type ErrorBoundaryProps as J, ErrorFallback as K, type ErrorFallbackProps as L, FilterBuilder as M, type FilterBuilderProps as N, FilterRow as O, type FilterRowProps as P, FilterValueInput as Q, type FilterValueInputProps as R, Icon as S, type IconName as T, type IconProps as U, Input as V, type InputProps as W, NoData as X, type NoDataProps as Y, NoResults as Z, type NoResultsProps as _, type AggregationPickerProps as a, type PaginationProps as a0, QueryBuilder as a1, type QueryBuilderProps as a2, type QueryBuilderState as a3, QueryBuilderToolbar as a4, type QueryBuilderToolbarProps as a5, QueryPreview as a6, type QueryPreviewProps as a7, ResultsTable as a8, type ResultsTableProps as a9, type TableHeaderProps as aA, TableNode as aB, type TableNodeProps as aC, TableRow as aD, type TableRowProps as aE, Tooltip as aF, type TooltipProps as aG, WidgetErrorBoundary as aH, type WidgetErrorBoundaryProps as aI, SavedQueryPicker as aa, type SavedQueryPickerProps as ab, SchemaExplorer as ac, type SchemaExplorerProps as ad, Select as ae, type SelectOption as af, type SelectProps as ag, SelectedColumn as ah, type SelectedColumnProps as ai, Skeleton as aj, SkeletonChart as ak, type SkeletonChartProps as al, SkeletonMetricCard as am, type SkeletonMetricCardProps as an, type SkeletonProps as ao, SkeletonTable as ap, type SkeletonTableProps as aq, SkeletonText as ar, type SkeletonTextProps as as, SortBuilder as at, type SortBuilderProps as au, SortRow as av, type SortRowProps as aw, TableCell as ax, type TableCellProps as ay, TableHeader as az, type BadgeProps as b, Button as c, type ButtonProps as d, type ChatBubbleProps as e, ChatPanel as f, type ChatPanelProps as g, Checkbox as h, type CheckboxProps as i, ColumnNode as j, type ColumnNodeProps as k, ColumnSelector as l, type ColumnSelectorProps as m, CustomSQLEditor as n, type CustomSQLEditorProps as o, DialogFooter as p, type DialogFooterProps as q, DialogHeader as r, type DialogHeaderProps as s, type DialogProps as t, Dropdown as u, DropdownItem as v, type DropdownItemProps as w, type DropdownProps as x, DropdownSeparator as y, type DropdownSeparatorProps as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, HTMLAttributes, ReactElement, SVGAttributes, Component, ErrorInfo } from 'react';
|
|
3
|
-
import { c as TableSchema,
|
|
3
|
+
import { c as TableSchema, s as ColumnSchema, b as QueryTable, t as ColumnSelection, D as DatabaseSchema, F as FilterDefinition, v as FilterOperator, x as SortDefinition, A as AggregationType, Q as QueryResult, a as QueryDefinition, k as SavedQuery, o as ChatMessage } from './types-ccB9Ps3k.js';
|
|
4
4
|
|
|
5
5
|
interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
6
6
|
/** Button visual style. */
|
|
@@ -660,6 +660,8 @@ interface SchemaExplorerProps {
|
|
|
660
660
|
searchable?: boolean;
|
|
661
661
|
/** Whether tables are collapsible. */
|
|
662
662
|
collapsible?: boolean;
|
|
663
|
+
/** Optional element rendered at the right end of the header row. */
|
|
664
|
+
headerAction?: React.ReactNode;
|
|
663
665
|
/** Additional class name. */
|
|
664
666
|
className?: string;
|
|
665
667
|
/** Additional styles. */
|
|
@@ -678,7 +680,7 @@ interface SchemaExplorerProps {
|
|
|
678
680
|
* />
|
|
679
681
|
* ```
|
|
680
682
|
*/
|
|
681
|
-
declare function SchemaExplorer({ onTableSelect, onColumnSelect, onColumnDragStart, selectedTable, selectedColumns, searchable, collapsible, className, style, }: SchemaExplorerProps): JSX.Element;
|
|
683
|
+
declare function SchemaExplorer({ onTableSelect, onColumnSelect, onColumnDragStart, selectedTable, selectedColumns, searchable, collapsible, headerAction, className, style, }: SchemaExplorerProps): JSX.Element;
|
|
682
684
|
|
|
683
685
|
/**
|
|
684
686
|
* TableNode component for displaying a table in the schema explorer.
|
|
@@ -855,6 +857,8 @@ declare function FilterRow({ filter, tables, schema, onChange, onRemove, classNa
|
|
|
855
857
|
|
|
856
858
|
/**
|
|
857
859
|
* FilterValueInput component for entering filter values.
|
|
860
|
+
*
|
|
861
|
+
* Supports dynamic value loading from database when tableName and columnName are provided.
|
|
858
862
|
*/
|
|
859
863
|
|
|
860
864
|
interface FilterValueInputProps {
|
|
@@ -870,11 +874,16 @@ interface FilterValueInputProps {
|
|
|
870
874
|
disabled?: boolean;
|
|
871
875
|
/** Additional class name. */
|
|
872
876
|
className?: string;
|
|
877
|
+
/** Table name for fetching sample values. */
|
|
878
|
+
tableName?: string;
|
|
879
|
+
/** Column name for fetching sample values. */
|
|
880
|
+
columnName?: string;
|
|
873
881
|
}
|
|
874
882
|
/**
|
|
875
883
|
* Input component for filter values that adapts to the operator and data type.
|
|
884
|
+
* When tableName and columnName are provided, fetches sample values from database.
|
|
876
885
|
*/
|
|
877
|
-
declare function FilterValueInput({ operator, value, onChange, dataType, disabled, className, }: FilterValueInputProps): JSX.Element;
|
|
886
|
+
declare function FilterValueInput({ operator, value, onChange, dataType, disabled, className, tableName, columnName, }: FilterValueInputProps): JSX.Element;
|
|
878
887
|
|
|
879
888
|
/**
|
|
880
889
|
* SortBuilder component for defining sort order.
|
|
@@ -1294,4 +1303,39 @@ interface CustomSQLEditorProps {
|
|
|
1294
1303
|
*/
|
|
1295
1304
|
declare function CustomSQLEditor({ initialSql, onSqlChange, onExecute, placeholder, showResults, height, className, style, }: CustomSQLEditorProps): JSX.Element;
|
|
1296
1305
|
|
|
1297
|
-
|
|
1306
|
+
/**
|
|
1307
|
+
* Shared types for ChatPanel components.
|
|
1308
|
+
*/
|
|
1309
|
+
|
|
1310
|
+
interface ChatBubbleProps {
|
|
1311
|
+
/** The chat message to render. */
|
|
1312
|
+
message: ChatMessage;
|
|
1313
|
+
/** Callback when user clicks "Apply to Editor" on a SQL block. */
|
|
1314
|
+
onApplySql?: (sql: string) => void;
|
|
1315
|
+
}
|
|
1316
|
+
interface ChatPanelProps {
|
|
1317
|
+
/** Current SQL in the editor (passed as context to the agent). */
|
|
1318
|
+
currentSql: string | null;
|
|
1319
|
+
/** Callback when the user wants to apply SQL to the editor. */
|
|
1320
|
+
onApplySql: (sql: string) => void;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* Chat panel for LLM-assisted SQL generation.
|
|
1325
|
+
*
|
|
1326
|
+
* Side panel with message history, streaming indicator,
|
|
1327
|
+
* "Apply SQL" button, and input field.
|
|
1328
|
+
*/
|
|
1329
|
+
|
|
1330
|
+
declare function ChatPanel({ currentSql, onApplySql }: ChatPanelProps): JSX.Element;
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Chat message bubble component.
|
|
1334
|
+
*
|
|
1335
|
+
* Renders user and assistant messages with distinct styling.
|
|
1336
|
+
* Detects ```sql code blocks and adds an "Apply to Editor" button.
|
|
1337
|
+
*/
|
|
1338
|
+
|
|
1339
|
+
declare function ChatBubble({ message, onApplySql }: ChatBubbleProps): JSX.Element;
|
|
1340
|
+
|
|
1341
|
+
export { Pagination as $, AggregationPicker as A, Badge as B, ChatBubble as C, Dialog as D, EmptyDashboard as E, type EmptyDashboardProps as F, EmptyState as G, type EmptyStateProps as H, ErrorBoundary as I, type ErrorBoundaryProps as J, ErrorFallback as K, type ErrorFallbackProps as L, FilterBuilder as M, type FilterBuilderProps as N, FilterRow as O, type FilterRowProps as P, FilterValueInput as Q, type FilterValueInputProps as R, Icon as S, type IconName as T, type IconProps as U, Input as V, type InputProps as W, NoData as X, type NoDataProps as Y, NoResults as Z, type NoResultsProps as _, type AggregationPickerProps as a, type PaginationProps as a0, QueryBuilder as a1, type QueryBuilderProps as a2, type QueryBuilderState as a3, QueryBuilderToolbar as a4, type QueryBuilderToolbarProps as a5, QueryPreview as a6, type QueryPreviewProps as a7, ResultsTable as a8, type ResultsTableProps as a9, type TableHeaderProps as aA, TableNode as aB, type TableNodeProps as aC, TableRow as aD, type TableRowProps as aE, Tooltip as aF, type TooltipProps as aG, WidgetErrorBoundary as aH, type WidgetErrorBoundaryProps as aI, SavedQueryPicker as aa, type SavedQueryPickerProps as ab, SchemaExplorer as ac, type SchemaExplorerProps as ad, Select as ae, type SelectOption as af, type SelectProps as ag, SelectedColumn as ah, type SelectedColumnProps as ai, Skeleton as aj, SkeletonChart as ak, type SkeletonChartProps as al, SkeletonMetricCard as am, type SkeletonMetricCardProps as an, type SkeletonProps as ao, SkeletonTable as ap, type SkeletonTableProps as aq, SkeletonText as ar, type SkeletonTextProps as as, SortBuilder as at, type SortBuilderProps as au, SortRow as av, type SortRowProps as aw, TableCell as ax, type TableCellProps as ay, TableHeader as az, type BadgeProps as b, Button as c, type ButtonProps as d, type ChatBubbleProps as e, ChatPanel as f, type ChatPanelProps as g, Checkbox as h, type CheckboxProps as i, ColumnNode as j, type ColumnNodeProps as k, ColumnSelector as l, type ColumnSelectorProps as m, CustomSQLEditor as n, type CustomSQLEditorProps as o, DialogFooter as p, type DialogFooterProps as q, DialogHeader as r, type DialogHeaderProps as s, type DialogProps as t, Dropdown as u, DropdownItem as v, type DropdownItemProps as w, type DropdownProps as x, DropdownSeparator as y, type DropdownSeparatorProps as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
import { a as QueryDefinition, Q as QueryResult, D as DatabaseSchema,
|
|
3
|
+
import { a as QueryDefinition, Q as QueryResult, D as DatabaseSchema, e as Dashboard$2, f as DashboardCreate, g as DashboardUpdate } from './types-ccB9Ps3k.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Dashboard type definitions for Prismiq.
|
|
@@ -119,6 +119,10 @@ interface WidgetConfig {
|
|
|
119
119
|
alignment?: 'Left' | 'Center' | 'Right';
|
|
120
120
|
/** Font size for text widgets. */
|
|
121
121
|
fontSize?: 'Small' | 'Normal' | 'Large' | 'XLarge';
|
|
122
|
+
/** Raw SQL query for SQL-mode widgets. When set, widget.query should be null. */
|
|
123
|
+
raw_sql?: string;
|
|
124
|
+
/** Editor mode used to build this widget ('guided', 'advanced', 'saved', or 'sql'). */
|
|
125
|
+
data_source_mode?: 'guided' | 'advanced' | 'saved' | 'sql';
|
|
122
126
|
}
|
|
123
127
|
/**
|
|
124
128
|
* Widget hyperlink configuration for linking to external URLs.
|
|
@@ -149,8 +153,6 @@ interface Widget$1 {
|
|
|
149
153
|
config: WidgetConfig;
|
|
150
154
|
/** Optional hyperlink to external URL (displayed as link icon in header). */
|
|
151
155
|
hyperlink?: WidgetHyperlink;
|
|
152
|
-
/** Data source mode last used when editing this widget. */
|
|
153
|
-
dataSourceMode?: 'guided' | 'advanced' | 'saved';
|
|
154
156
|
/** Creation timestamp (ISO string). */
|
|
155
157
|
created_at?: string;
|
|
156
158
|
/** Last update timestamp (ISO string). */
|
|
@@ -1103,4 +1105,4 @@ interface DashboardDialogProps {
|
|
|
1103
1105
|
*/
|
|
1104
1106
|
declare const DashboardDialog: react.ForwardRefExoticComponent<DashboardDialogProps & react.RefAttributes<HTMLDivElement>>;
|
|
1105
1107
|
|
|
1106
|
-
export {
|
|
1108
|
+
export { type WidgetEditorProps as $, type EditorToolbarProps as A, type FilterBarProps as B, type FilterOption as C, type DashboardLayout$1 as D, EditorToolbar as E, FilterBar as F, type FilterValue as G, type MultiSelectFilterProps as H, type SelectFilterProps as I, type TextFilterProps as J, type UseAutoRefreshResult as K, type LazyLoadingConfig as L, MultiSelectFilter as M, type NumberRangeValue as N, type UseDashboardFiltersResult as O, type UseFullscreenResult as P, type UseWidgetResult as Q, type ReferenceLine as R, SelectFilter as S, TextFilter as T, type UseAutoRefreshOptions as U, Widget as V, type Widget$1 as W, WidgetContent as X, type WidgetContentProps as Y, type WidgetCrossFilterConfig as Z, WidgetEditor as _, type WidgetPosition as a, WidgetHeader as a0, type WidgetHeaderProps as a1, type WidgetHyperlink as a2, WidgetPalette as a3, type WidgetPaletteProps as a4, type WidgetProps as a5, useAutoRefresh as a6, useDashboard as a7, useDashboardFilters as a8, useFullscreen as a9, useWidget as aa, type WidgetType as b, type WidgetConfig as c, Dashboard as d, DashboardCard as e, type DashboardCardProps as f, DashboardContext as g, type DashboardContextValue as h, type Dashboard$1 as i, DashboardDialog as j, type DashboardDialogProps as k, DashboardEditor as l, type DashboardEditorContextValue as m, type DashboardEditorProps as n, type DashboardFilter as o, type DashboardFilterType as p, DashboardLayout as q, type DashboardLayoutProps as r, DashboardList as s, type DashboardListProps as t, type DashboardProps as u, DashboardProvider as v, type DashboardProviderProps as w, DateRangeFilter as x, type DateRangeFilterProps as y, type DateRangeValue as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
import { a as QueryDefinition, Q as QueryResult, D as DatabaseSchema,
|
|
3
|
+
import { a as QueryDefinition, Q as QueryResult, D as DatabaseSchema, e as Dashboard$2, f as DashboardCreate, g as DashboardUpdate } from './types-ccB9Ps3k.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Dashboard type definitions for Prismiq.
|
|
@@ -119,6 +119,10 @@ interface WidgetConfig {
|
|
|
119
119
|
alignment?: 'Left' | 'Center' | 'Right';
|
|
120
120
|
/** Font size for text widgets. */
|
|
121
121
|
fontSize?: 'Small' | 'Normal' | 'Large' | 'XLarge';
|
|
122
|
+
/** Raw SQL query for SQL-mode widgets. When set, widget.query should be null. */
|
|
123
|
+
raw_sql?: string;
|
|
124
|
+
/** Editor mode used to build this widget ('guided', 'advanced', 'saved', or 'sql'). */
|
|
125
|
+
data_source_mode?: 'guided' | 'advanced' | 'saved' | 'sql';
|
|
122
126
|
}
|
|
123
127
|
/**
|
|
124
128
|
* Widget hyperlink configuration for linking to external URLs.
|
|
@@ -149,8 +153,6 @@ interface Widget$1 {
|
|
|
149
153
|
config: WidgetConfig;
|
|
150
154
|
/** Optional hyperlink to external URL (displayed as link icon in header). */
|
|
151
155
|
hyperlink?: WidgetHyperlink;
|
|
152
|
-
/** Data source mode last used when editing this widget. */
|
|
153
|
-
dataSourceMode?: 'guided' | 'advanced' | 'saved';
|
|
154
156
|
/** Creation timestamp (ISO string). */
|
|
155
157
|
created_at?: string;
|
|
156
158
|
/** Last update timestamp (ISO string). */
|
|
@@ -1103,4 +1105,4 @@ interface DashboardDialogProps {
|
|
|
1103
1105
|
*/
|
|
1104
1106
|
declare const DashboardDialog: react.ForwardRefExoticComponent<DashboardDialogProps & react.RefAttributes<HTMLDivElement>>;
|
|
1105
1107
|
|
|
1106
|
-
export {
|
|
1108
|
+
export { type WidgetEditorProps as $, type EditorToolbarProps as A, type FilterBarProps as B, type FilterOption as C, type DashboardLayout$1 as D, EditorToolbar as E, FilterBar as F, type FilterValue as G, type MultiSelectFilterProps as H, type SelectFilterProps as I, type TextFilterProps as J, type UseAutoRefreshResult as K, type LazyLoadingConfig as L, MultiSelectFilter as M, type NumberRangeValue as N, type UseDashboardFiltersResult as O, type UseFullscreenResult as P, type UseWidgetResult as Q, type ReferenceLine as R, SelectFilter as S, TextFilter as T, type UseAutoRefreshOptions as U, Widget as V, type Widget$1 as W, WidgetContent as X, type WidgetContentProps as Y, type WidgetCrossFilterConfig as Z, WidgetEditor as _, type WidgetPosition as a, WidgetHeader as a0, type WidgetHeaderProps as a1, type WidgetHyperlink as a2, WidgetPalette as a3, type WidgetPaletteProps as a4, type WidgetProps as a5, useAutoRefresh as a6, useDashboard as a7, useDashboardFilters as a8, useFullscreen as a9, useWidget as aa, type WidgetType as b, type WidgetConfig as c, Dashboard as d, DashboardCard as e, type DashboardCardProps as f, DashboardContext as g, type DashboardContextValue as h, type Dashboard$1 as i, DashboardDialog as j, type DashboardDialogProps as k, DashboardEditor as l, type DashboardEditorContextValue as m, type DashboardEditorProps as n, type DashboardFilter as o, type DashboardFilterType as p, DashboardLayout as q, type DashboardLayoutProps as r, DashboardList as s, type DashboardListProps as t, type DashboardProps as u, DashboardProvider as v, type DashboardProviderProps as w, DateRangeFilter as x, type DateRangeFilterProps as y, type DateRangeValue as z };
|
|
@@ -142,4 +142,4 @@ declare const skipLinkFocusStyles: React.CSSProperties;
|
|
|
142
142
|
*/
|
|
143
143
|
declare function useRovingTabIndex<T extends HTMLElement>(itemRefs: RefObject<T>[], options?: ArrowNavigationOptions): UseArrowNavigationResult;
|
|
144
144
|
|
|
145
|
-
export { type ArrowNavigationOptions as A, type FocusTrapOptions as F, type SkipLinkProps as S, type
|
|
145
|
+
export { type ArrowNavigationOptions as A, type FocusTrapOptions as F, type SkipLinkProps as S, type UseArrowNavigationResult as U, type UseFocusTrapResult as a, announceToScreenReader as b, skipLinkStyles as c, useFocusTrap as d, useFocusVisible as e, focusVisibleStyles as f, useRovingTabIndex as g, skipLinkFocusStyles as s, useArrowNavigation as u };
|
|
@@ -142,4 +142,4 @@ declare const skipLinkFocusStyles: React.CSSProperties;
|
|
|
142
142
|
*/
|
|
143
143
|
declare function useRovingTabIndex<T extends HTMLElement>(itemRefs: RefObject<T>[], options?: ArrowNavigationOptions): UseArrowNavigationResult;
|
|
144
144
|
|
|
145
|
-
export { type ArrowNavigationOptions as A, type FocusTrapOptions as F, type SkipLinkProps as S, type
|
|
145
|
+
export { type ArrowNavigationOptions as A, type FocusTrapOptions as F, type SkipLinkProps as S, type UseArrowNavigationResult as U, type UseFocusTrapResult as a, announceToScreenReader as b, skipLinkStyles as c, useFocusTrap as d, useFocusVisible as e, focusVisibleStyles as f, useRovingTabIndex as g, skipLinkFocusStyles as s, useArrowNavigation as u };
|
package/dist/charts/index.cjs
CHANGED
|
@@ -1,110 +1,110 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk73TPDGXB_cjs = require('../chunk-73TPDGXB.cjs');
|
|
4
4
|
require('../chunk-LMTG3LRC.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-KXB2IZI2.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "AreaChart", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk73TPDGXB_cjs.AreaChart; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "BarChart", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk73TPDGXB_cjs.BarChart; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "EChartWrapper", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk73TPDGXB_cjs.EChartWrapper; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "LineChart", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk73TPDGXB_cjs.LineChart; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "MetricCard", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk73TPDGXB_cjs.MetricCard; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "PieChart", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk73TPDGXB_cjs.PieChart; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "ScatterChart", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk73TPDGXB_cjs.ScatterChart; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "Sparkline", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk73TPDGXB_cjs.Sparkline; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "TrendIndicator", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunk73TPDGXB_cjs.TrendIndicator; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "adjustColorOpacity", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunk73TPDGXB_cjs.adjustColorOpacity; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "applyThemeToOption", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunk73TPDGXB_cjs.applyThemeToOption; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "createChartTheme", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunk73TPDGXB_cjs.createChartTheme; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "createEmptyStateGraphic", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunk73TPDGXB_cjs.createEmptyStateGraphic; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "createGradientColor", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunk73TPDGXB_cjs.createGradientColor; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "createMarkLines", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunk73TPDGXB_cjs.createMarkLines; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "dataPointsToChartData", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunk73TPDGXB_cjs.dataPointsToChartData; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "formatAxisLabel", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunk73TPDGXB_cjs.formatAxisLabel; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "formatCompact", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunk73TPDGXB_cjs.formatCompact; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "formatMetricValue", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunk73TPDGXB_cjs.formatMetricValue; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "getChartColors", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunk73TPDGXB_cjs.getChartColors; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "isChartDataEmpty", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunk73TPDGXB_cjs.isChartDataEmpty; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "isQueryResult", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunk73TPDGXB_cjs.isQueryResult; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "queryResultToChartData", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunk73TPDGXB_cjs.queryResultToChartData; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "suggestChartType", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunk73TPDGXB_cjs.suggestChartType; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "toChartData", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunk73TPDGXB_cjs.toChartData; }
|
|
108
108
|
});
|
|
109
109
|
//# sourceMappingURL=index.cjs.map
|
|
110
110
|
//# sourceMappingURL=index.cjs.map
|
package/dist/charts/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AreaChart,
|
|
2
|
-
import '../types-
|
|
1
|
+
export { A as AreaChart, c as AreaChartProps, d as AxisFormat, B as BarChart, e as BarChartProps, f as BaseChartProps, g as ChartClickParams, C as ChartDataOptions, h as ChartDataPoint, b as ChartDataResult, i as ChartSeries, j as ChartSuggestion, k as ChartType, E as EChartWrapper, l as EChartWrapperProps, L as LegendPosition, m as LineChart, n as LineChartProps, M as MetricCard, o as MetricCardProps, p as PieChart, q as PieChartProps, R as ReferenceLineConfig, S as ScatterChart, r as ScatterChartProps, s as Sparkline, t as SparklineProps, u as TrendConfig, v as TrendIndicator, w as TrendIndicatorProps, U as adjustColorOpacity, x as applyThemeToOption, y as createChartTheme, V as createEmptyStateGraphic, z as createGradientColor, W as createMarkLines, F as dataPointsToChartData, G as formatAxisLabel, H as formatCompact, I as formatMetricValue, J as getChartColors, K as isChartDataEmpty, X as isQueryResult, N as queryResultToChartData, O as suggestChartType, Q as toChartData } from '../index-B8DelfpL.cjs';
|
|
2
|
+
import '../types-ccB9Ps3k.cjs';
|
package/dist/charts/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AreaChart,
|
|
2
|
-
import '../types-
|
|
1
|
+
export { A as AreaChart, c as AreaChartProps, d as AxisFormat, B as BarChart, e as BarChartProps, f as BaseChartProps, g as ChartClickParams, C as ChartDataOptions, h as ChartDataPoint, b as ChartDataResult, i as ChartSeries, j as ChartSuggestion, k as ChartType, E as EChartWrapper, l as EChartWrapperProps, L as LegendPosition, m as LineChart, n as LineChartProps, M as MetricCard, o as MetricCardProps, p as PieChart, q as PieChartProps, R as ReferenceLineConfig, S as ScatterChart, r as ScatterChartProps, s as Sparkline, t as SparklineProps, u as TrendConfig, v as TrendIndicator, w as TrendIndicatorProps, U as adjustColorOpacity, x as applyThemeToOption, y as createChartTheme, V as createEmptyStateGraphic, z as createGradientColor, W as createMarkLines, F as dataPointsToChartData, G as formatAxisLabel, H as formatCompact, I as formatMetricValue, J as getChartColors, K as isChartDataEmpty, X as isQueryResult, N as queryResultToChartData, O as suggestChartType, Q as toChartData } from '../index-RbfYPQD_.js';
|
|
2
|
+
import '../types-ccB9Ps3k.js';
|
package/dist/charts/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { AreaChart, BarChart, EChartWrapper, LineChart, MetricCard, PieChart, ScatterChart, Sparkline, TrendIndicator, adjustColorOpacity, applyThemeToOption, createChartTheme, createEmptyStateGraphic, createGradientColor, createMarkLines, dataPointsToChartData, formatAxisLabel, formatCompact, formatMetricValue, getChartColors, isChartDataEmpty, isQueryResult, queryResultToChartData, suggestChartType, toChartData } from '../chunk-
|
|
1
|
+
export { AreaChart, BarChart, EChartWrapper, LineChart, MetricCard, PieChart, ScatterChart, Sparkline, TrendIndicator, adjustColorOpacity, applyThemeToOption, createChartTheme, createEmptyStateGraphic, createGradientColor, createMarkLines, dataPointsToChartData, formatAxisLabel, formatCompact, formatMetricValue, getChartColors, isChartDataEmpty, isQueryResult, queryResultToChartData, suggestChartType, toChartData } from '../chunk-FQ23KG6G.js';
|
|
2
2
|
import '../chunk-T6STUE7E.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-LBE6GIBC.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkLMTG3LRC_cjs = require('./chunk-LMTG3LRC.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkKXB2IZI2_cjs = require('./chunk-KXB2IZI2.cjs');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var ReactEChartsCore = require('echarts-for-react/esm/core');
|
|
7
7
|
var echarts = require('echarts/core');
|
|
@@ -924,7 +924,7 @@ function BarChart2({
|
|
|
924
924
|
[data, xAxis, yColumns]
|
|
925
925
|
);
|
|
926
926
|
const dateFormatter = react.useMemo(
|
|
927
|
-
() => xAxisFormat ?
|
|
927
|
+
() => xAxisFormat ? chunkKXB2IZI2_cjs.createDateFormatter(xAxisFormat) : null,
|
|
928
928
|
[xAxisFormat]
|
|
929
929
|
);
|
|
930
930
|
const formattedCategories = react.useMemo(() => {
|
|
@@ -1184,7 +1184,7 @@ function LineChart3({
|
|
|
1184
1184
|
};
|
|
1185
1185
|
}, [rawChartData, maxSeries]);
|
|
1186
1186
|
const dateFormatter = react.useMemo(
|
|
1187
|
-
() => xAxisFormat ?
|
|
1187
|
+
() => xAxisFormat ? chunkKXB2IZI2_cjs.createDateFormatter(xAxisFormat) : null,
|
|
1188
1188
|
[xAxisFormat]
|
|
1189
1189
|
);
|
|
1190
1190
|
const formattedCategories = react.useMemo(() => {
|
|
@@ -1422,7 +1422,7 @@ function AreaChart({
|
|
|
1422
1422
|
[data, xAxis, yColumns]
|
|
1423
1423
|
);
|
|
1424
1424
|
const dateFormatter = react.useMemo(
|
|
1425
|
-
() => xAxisFormat ?
|
|
1425
|
+
() => xAxisFormat ? chunkKXB2IZI2_cjs.createDateFormatter(xAxisFormat) : null,
|
|
1426
1426
|
[xAxisFormat]
|
|
1427
1427
|
);
|
|
1428
1428
|
const formattedCategories = react.useMemo(() => {
|
|
@@ -1688,7 +1688,7 @@ function PieChart2({
|
|
|
1688
1688
|
[data, labelColumn, valueColumn]
|
|
1689
1689
|
);
|
|
1690
1690
|
const dateFormatter = react.useMemo(
|
|
1691
|
-
() => labelFormat ?
|
|
1691
|
+
() => labelFormat ? chunkKXB2IZI2_cjs.createDateFormatter(labelFormat) : null,
|
|
1692
1692
|
[labelFormat]
|
|
1693
1693
|
);
|
|
1694
1694
|
const formattedCategories = react.useMemo(() => {
|
|
@@ -2455,5 +2455,5 @@ exports.isQueryResult = isQueryResult;
|
|
|
2455
2455
|
exports.queryResultToChartData = queryResultToChartData;
|
|
2456
2456
|
exports.suggestChartType = suggestChartType;
|
|
2457
2457
|
exports.toChartData = toChartData;
|
|
2458
|
-
//# sourceMappingURL=chunk-
|
|
2459
|
-
//# sourceMappingURL=chunk-
|
|
2458
|
+
//# sourceMappingURL=chunk-73TPDGXB.cjs.map
|
|
2459
|
+
//# sourceMappingURL=chunk-73TPDGXB.cjs.map
|