@prismiq/react 0.1.0 → 0.1.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.
Files changed (57) hide show
  1. package/dist/{CustomSQLEditor-BXB4rf1q.d.cts → CustomSQLEditor-CYlOtecq.d.ts} +10 -3
  2. package/dist/{CustomSQLEditor-DYeId0Gp.d.ts → CustomSQLEditor-d84v_Cgp.d.cts} +10 -3
  3. package/dist/{DashboardDialog-LHmrtNQU.d.cts → DashboardDialog-CZD8I-6z.d.cts} +4 -4
  4. package/dist/{DashboardDialog-B3vYC5Gs.d.ts → DashboardDialog-DBNTVVSp.d.ts} +4 -4
  5. package/dist/{accessibility-2yy5yqRR.d.cts → accessibility-Bu2mNtaB.d.cts} +1 -1
  6. package/dist/{accessibility-2yy5yqRR.d.ts → accessibility-Bu2mNtaB.d.ts} +1 -1
  7. package/dist/charts/index.cjs +27 -27
  8. package/dist/charts/index.d.cts +2 -2
  9. package/dist/charts/index.d.ts +2 -2
  10. package/dist/charts/index.js +2 -2
  11. package/dist/{chunk-MOAEEF5P.js → chunk-3LDRRDJ6.js} +185 -91
  12. package/dist/chunk-3LDRRDJ6.js.map +1 -0
  13. package/dist/{chunk-NK7HKX2J.cjs → chunk-73TPDGXB.cjs} +7 -7
  14. package/dist/{chunk-NK7HKX2J.cjs.map → chunk-73TPDGXB.cjs.map} +1 -1
  15. package/dist/{chunk-UPYINBZU.js → chunk-ET7GCREP.js} +502 -46
  16. package/dist/chunk-ET7GCREP.js.map +1 -0
  17. package/dist/{chunk-2H5WTH4K.js → chunk-FQ23KG6G.js} +3 -3
  18. package/dist/{chunk-2H5WTH4K.js.map → chunk-FQ23KG6G.js.map} +1 -1
  19. package/dist/{chunk-4AVL6GQK.cjs → chunk-KXB2IZI2.cjs} +36 -9
  20. package/dist/chunk-KXB2IZI2.cjs.map +1 -0
  21. package/dist/{chunk-EX74SI67.js → chunk-LBE6GIBC.js} +36 -9
  22. package/dist/chunk-LBE6GIBC.js.map +1 -0
  23. package/dist/{chunk-NY6TZLST.cjs → chunk-URJH4H6G.cjs} +505 -49
  24. package/dist/chunk-URJH4H6G.cjs.map +1 -0
  25. package/dist/{chunk-FEABEF3J.cjs → chunk-VQDFS6VS.cjs} +374 -280
  26. package/dist/chunk-VQDFS6VS.cjs.map +1 -0
  27. package/dist/components/index.cjs +55 -55
  28. package/dist/components/index.d.cts +2 -2
  29. package/dist/components/index.d.ts +2 -2
  30. package/dist/components/index.js +2 -2
  31. package/dist/dashboard/index.cjs +36 -36
  32. package/dist/dashboard/index.d.cts +3 -3
  33. package/dist/dashboard/index.d.ts +3 -3
  34. package/dist/dashboard/index.js +4 -4
  35. package/dist/export/index.d.cts +1 -1
  36. package/dist/export/index.d.ts +1 -1
  37. package/dist/{index-C-Qcuu4Y.d.cts → index-CvKj3SWO.d.cts} +2 -2
  38. package/dist/{index-rPc7ijt8.d.ts → index-DXGLs1yY.d.ts} +2 -2
  39. package/dist/index.cjs +127 -127
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.d.cts +30 -9
  42. package/dist/index.d.ts +30 -9
  43. package/dist/index.js +6 -6
  44. package/dist/index.js.map +1 -1
  45. package/dist/{types-WrCbOeAV.d.cts → types-j0kPJ9Hz.d.cts} +16 -1
  46. package/dist/{types-WrCbOeAV.d.ts → types-j0kPJ9Hz.d.ts} +16 -1
  47. package/dist/utils/index.cjs +15 -15
  48. package/dist/utils/index.d.cts +5 -21
  49. package/dist/utils/index.d.ts +5 -21
  50. package/dist/utils/index.js +1 -1
  51. package/package.json +2 -2
  52. package/dist/chunk-4AVL6GQK.cjs.map +0 -1
  53. package/dist/chunk-EX74SI67.js.map +0 -1
  54. package/dist/chunk-FEABEF3J.cjs.map +0 -1
  55. package/dist/chunk-MOAEEF5P.js.map +0 -1
  56. package/dist/chunk-NY6TZLST.cjs.map +0 -1
  57. package/dist/chunk-UPYINBZU.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, o as ColumnSchema, b as QueryTable, q as ColumnSelection, D as DatabaseSchema, r as FilterDefinition, F as FilterOperator, t as SortDefinition, A as AggregationType, Q as QueryResult, a as QueryDefinition, j as SavedQuery } from './types-WrCbOeAV.cjs';
3
+ import { c as TableSchema, p as ColumnSchema, b as QueryTable, q as ColumnSelection, D as DatabaseSchema, F as FilterDefinition, s as FilterOperator, u as SortDefinition, A as AggregationType, Q as QueryResult, a as QueryDefinition, k as SavedQuery } from './types-j0kPJ9Hz.js';
4
4
 
5
5
  interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
6
6
  /** Button visual style. */
@@ -855,6 +855,8 @@ declare function FilterRow({ filter, tables, schema, onChange, onRemove, classNa
855
855
 
856
856
  /**
857
857
  * FilterValueInput component for entering filter values.
858
+ *
859
+ * Supports dynamic value loading from database when tableName and columnName are provided.
858
860
  */
859
861
 
860
862
  interface FilterValueInputProps {
@@ -870,11 +872,16 @@ interface FilterValueInputProps {
870
872
  disabled?: boolean;
871
873
  /** Additional class name. */
872
874
  className?: string;
875
+ /** Table name for fetching sample values. */
876
+ tableName?: string;
877
+ /** Column name for fetching sample values. */
878
+ columnName?: string;
873
879
  }
874
880
  /**
875
881
  * Input component for filter values that adapts to the operator and data type.
882
+ * When tableName and columnName are provided, fetches sample values from database.
876
883
  */
877
- declare function FilterValueInput({ operator, value, onChange, dataType, disabled, className, }: FilterValueInputProps): JSX.Element;
884
+ declare function FilterValueInput({ operator, value, onChange, dataType, disabled, className, tableName, columnName, }: FilterValueInputProps): JSX.Element;
878
885
 
879
886
  /**
880
887
  * SortBuilder component for defining sort order.
@@ -1294,4 +1301,4 @@ interface CustomSQLEditorProps {
1294
1301
  */
1295
1302
  declare function CustomSQLEditor({ initialSql, onSqlChange, onExecute, placeholder, showResults, height, className, style, }: CustomSQLEditorProps): JSX.Element;
1296
1303
 
1297
- export { TableNode as $, SkeletonMetricCard as A, Button as B, Checkbox as C, Dropdown as D, type SkeletonProps as E, type SkeletonTextProps as F, type SkeletonChartProps as G, type SkeletonTableProps as H, Input as I, type SkeletonMetricCardProps as J, ErrorBoundary as K, ErrorFallback as L, type ErrorBoundaryProps as M, type ErrorFallbackProps as N, type WidgetErrorBoundaryProps as O, EmptyState as P, NoData as Q, NoResults as R, Select as S, Tooltip as T, EmptyDashboard as U, type EmptyStateProps as V, WidgetErrorBoundary as W, type NoDataProps as X, type NoResultsProps as Y, type EmptyDashboardProps as Z, SchemaExplorer as _, Badge as a, ColumnNode as a0, type SchemaExplorerProps as a1, type TableNodeProps as a2, type ColumnNodeProps as a3, ColumnSelector as a4, SelectedColumn as a5, type ColumnSelectorProps as a6, type SelectedColumnProps as a7, FilterBuilder as a8, FilterRow as a9, type QueryPreviewProps as aA, SavedQueryPicker as aB, type SavedQueryPickerProps as aC, CustomSQLEditor as aD, type CustomSQLEditorProps as aE, FilterValueInput as aa, type FilterBuilderProps as ab, type FilterRowProps as ac, type FilterValueInputProps as ad, SortBuilder as ae, SortRow as af, type SortBuilderProps as ag, type SortRowProps as ah, AggregationPicker as ai, type AggregationPickerProps as aj, ResultsTable as ak, TableHeader as al, TableRow as am, TableCell as an, Pagination as ao, type ResultsTableProps as ap, type TableHeaderProps as aq, type TableRowProps as ar, type TableCellProps as as, type PaginationProps as at, QueryBuilder as au, QueryBuilderToolbar as av, QueryPreview as aw, type QueryBuilderProps as ax, type QueryBuilderState as ay, type QueryBuilderToolbarProps as az, DropdownItem as b, DropdownSeparator as c, Icon as d, Dialog as e, DialogHeader as f, DialogFooter as g, type ButtonProps as h, type InputProps as i, type SelectProps as j, type SelectOption as k, type CheckboxProps as l, type BadgeProps as m, type TooltipProps as n, type DropdownProps as o, type DropdownItemProps as p, type DropdownSeparatorProps as q, type IconProps as r, type IconName as s, type DialogProps as t, type DialogHeaderProps as u, type DialogFooterProps as v, Skeleton as w, SkeletonText as x, SkeletonChart as y, SkeletonTable as z };
1304
+ export { type QueryBuilderState as $, AggregationPicker as A, Badge as B, Checkbox as C, Dialog as D, EmptyDashboard as E, type ErrorBoundaryProps as F, ErrorFallback as G, type ErrorFallbackProps as H, FilterBuilder as I, type FilterBuilderProps as J, FilterRow as K, type FilterRowProps as L, FilterValueInput as M, type FilterValueInputProps as N, Icon as O, type IconName as P, type IconProps as Q, Input as R, type InputProps as S, NoData as T, type NoDataProps as U, NoResults as V, type NoResultsProps as W, Pagination as X, type PaginationProps as Y, QueryBuilder as Z, type QueryBuilderProps as _, type AggregationPickerProps as a, QueryBuilderToolbar as a0, type QueryBuilderToolbarProps as a1, QueryPreview as a2, type QueryPreviewProps as a3, ResultsTable as a4, type ResultsTableProps as a5, SavedQueryPicker as a6, type SavedQueryPickerProps as a7, SchemaExplorer as a8, type SchemaExplorerProps as a9, type TableRowProps as aA, Tooltip as aB, type TooltipProps as aC, WidgetErrorBoundary as aD, type WidgetErrorBoundaryProps as aE, Select as aa, type SelectOption as ab, type SelectProps as ac, SelectedColumn as ad, type SelectedColumnProps as ae, Skeleton as af, SkeletonChart as ag, type SkeletonChartProps as ah, SkeletonMetricCard as ai, type SkeletonMetricCardProps as aj, type SkeletonProps as ak, SkeletonTable as al, type SkeletonTableProps as am, SkeletonText as an, type SkeletonTextProps as ao, SortBuilder as ap, type SortBuilderProps as aq, SortRow as ar, type SortRowProps as as, TableCell as at, type TableCellProps as au, TableHeader as av, type TableHeaderProps as aw, TableNode as ax, type TableNodeProps as ay, TableRow as az, type BadgeProps as b, Button as c, type ButtonProps as d, type CheckboxProps as e, ColumnNode as f, type ColumnNodeProps as g, ColumnSelector as h, type ColumnSelectorProps as i, CustomSQLEditor as j, type CustomSQLEditorProps as k, DialogFooter as l, type DialogFooterProps as m, DialogHeader as n, type DialogHeaderProps as o, type DialogProps as p, Dropdown as q, DropdownItem as r, type DropdownItemProps as s, type DropdownProps as t, DropdownSeparator as u, type DropdownSeparatorProps as v, type EmptyDashboardProps as w, EmptyState as x, type EmptyStateProps as y, ErrorBoundary 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, o as ColumnSchema, b as QueryTable, q as ColumnSelection, D as DatabaseSchema, r as FilterDefinition, F as FilterOperator, t as SortDefinition, A as AggregationType, Q as QueryResult, a as QueryDefinition, j as SavedQuery } from './types-WrCbOeAV.js';
3
+ import { c as TableSchema, p as ColumnSchema, b as QueryTable, q as ColumnSelection, D as DatabaseSchema, F as FilterDefinition, s as FilterOperator, u as SortDefinition, A as AggregationType, Q as QueryResult, a as QueryDefinition, k as SavedQuery } from './types-j0kPJ9Hz.cjs';
4
4
 
5
5
  interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
6
6
  /** Button visual style. */
@@ -855,6 +855,8 @@ declare function FilterRow({ filter, tables, schema, onChange, onRemove, classNa
855
855
 
856
856
  /**
857
857
  * FilterValueInput component for entering filter values.
858
+ *
859
+ * Supports dynamic value loading from database when tableName and columnName are provided.
858
860
  */
859
861
 
860
862
  interface FilterValueInputProps {
@@ -870,11 +872,16 @@ interface FilterValueInputProps {
870
872
  disabled?: boolean;
871
873
  /** Additional class name. */
872
874
  className?: string;
875
+ /** Table name for fetching sample values. */
876
+ tableName?: string;
877
+ /** Column name for fetching sample values. */
878
+ columnName?: string;
873
879
  }
874
880
  /**
875
881
  * Input component for filter values that adapts to the operator and data type.
882
+ * When tableName and columnName are provided, fetches sample values from database.
876
883
  */
877
- declare function FilterValueInput({ operator, value, onChange, dataType, disabled, className, }: FilterValueInputProps): JSX.Element;
884
+ declare function FilterValueInput({ operator, value, onChange, dataType, disabled, className, tableName, columnName, }: FilterValueInputProps): JSX.Element;
878
885
 
879
886
  /**
880
887
  * SortBuilder component for defining sort order.
@@ -1294,4 +1301,4 @@ interface CustomSQLEditorProps {
1294
1301
  */
1295
1302
  declare function CustomSQLEditor({ initialSql, onSqlChange, onExecute, placeholder, showResults, height, className, style, }: CustomSQLEditorProps): JSX.Element;
1296
1303
 
1297
- export { TableNode as $, SkeletonMetricCard as A, Button as B, Checkbox as C, Dropdown as D, type SkeletonProps as E, type SkeletonTextProps as F, type SkeletonChartProps as G, type SkeletonTableProps as H, Input as I, type SkeletonMetricCardProps as J, ErrorBoundary as K, ErrorFallback as L, type ErrorBoundaryProps as M, type ErrorFallbackProps as N, type WidgetErrorBoundaryProps as O, EmptyState as P, NoData as Q, NoResults as R, Select as S, Tooltip as T, EmptyDashboard as U, type EmptyStateProps as V, WidgetErrorBoundary as W, type NoDataProps as X, type NoResultsProps as Y, type EmptyDashboardProps as Z, SchemaExplorer as _, Badge as a, ColumnNode as a0, type SchemaExplorerProps as a1, type TableNodeProps as a2, type ColumnNodeProps as a3, ColumnSelector as a4, SelectedColumn as a5, type ColumnSelectorProps as a6, type SelectedColumnProps as a7, FilterBuilder as a8, FilterRow as a9, type QueryPreviewProps as aA, SavedQueryPicker as aB, type SavedQueryPickerProps as aC, CustomSQLEditor as aD, type CustomSQLEditorProps as aE, FilterValueInput as aa, type FilterBuilderProps as ab, type FilterRowProps as ac, type FilterValueInputProps as ad, SortBuilder as ae, SortRow as af, type SortBuilderProps as ag, type SortRowProps as ah, AggregationPicker as ai, type AggregationPickerProps as aj, ResultsTable as ak, TableHeader as al, TableRow as am, TableCell as an, Pagination as ao, type ResultsTableProps as ap, type TableHeaderProps as aq, type TableRowProps as ar, type TableCellProps as as, type PaginationProps as at, QueryBuilder as au, QueryBuilderToolbar as av, QueryPreview as aw, type QueryBuilderProps as ax, type QueryBuilderState as ay, type QueryBuilderToolbarProps as az, DropdownItem as b, DropdownSeparator as c, Icon as d, Dialog as e, DialogHeader as f, DialogFooter as g, type ButtonProps as h, type InputProps as i, type SelectProps as j, type SelectOption as k, type CheckboxProps as l, type BadgeProps as m, type TooltipProps as n, type DropdownProps as o, type DropdownItemProps as p, type DropdownSeparatorProps as q, type IconProps as r, type IconName as s, type DialogProps as t, type DialogHeaderProps as u, type DialogFooterProps as v, Skeleton as w, SkeletonText as x, SkeletonChart as y, SkeletonTable as z };
1304
+ export { type QueryBuilderState as $, AggregationPicker as A, Badge as B, Checkbox as C, Dialog as D, EmptyDashboard as E, type ErrorBoundaryProps as F, ErrorFallback as G, type ErrorFallbackProps as H, FilterBuilder as I, type FilterBuilderProps as J, FilterRow as K, type FilterRowProps as L, FilterValueInput as M, type FilterValueInputProps as N, Icon as O, type IconName as P, type IconProps as Q, Input as R, type InputProps as S, NoData as T, type NoDataProps as U, NoResults as V, type NoResultsProps as W, Pagination as X, type PaginationProps as Y, QueryBuilder as Z, type QueryBuilderProps as _, type AggregationPickerProps as a, QueryBuilderToolbar as a0, type QueryBuilderToolbarProps as a1, QueryPreview as a2, type QueryPreviewProps as a3, ResultsTable as a4, type ResultsTableProps as a5, SavedQueryPicker as a6, type SavedQueryPickerProps as a7, SchemaExplorer as a8, type SchemaExplorerProps as a9, type TableRowProps as aA, Tooltip as aB, type TooltipProps as aC, WidgetErrorBoundary as aD, type WidgetErrorBoundaryProps as aE, Select as aa, type SelectOption as ab, type SelectProps as ac, SelectedColumn as ad, type SelectedColumnProps as ae, Skeleton as af, SkeletonChart as ag, type SkeletonChartProps as ah, SkeletonMetricCard as ai, type SkeletonMetricCardProps as aj, type SkeletonProps as ak, SkeletonTable as al, type SkeletonTableProps as am, SkeletonText as an, type SkeletonTextProps as ao, SortBuilder as ap, type SortBuilderProps as aq, SortRow as ar, type SortRowProps as as, TableCell as at, type TableCellProps as au, TableHeader as av, type TableHeaderProps as aw, TableNode as ax, type TableNodeProps as ay, TableRow as az, type BadgeProps as b, Button as c, type ButtonProps as d, type CheckboxProps as e, ColumnNode as f, type ColumnNodeProps as g, ColumnSelector as h, type ColumnSelectorProps as i, CustomSQLEditor as j, type CustomSQLEditorProps as k, DialogFooter as l, type DialogFooterProps as m, DialogHeader as n, type DialogHeaderProps as o, type DialogProps as p, Dropdown as q, DropdownItem as r, type DropdownItemProps as s, type DropdownProps as t, DropdownSeparator as u, type DropdownSeparatorProps as v, type EmptyDashboardProps as w, EmptyState as x, type EmptyStateProps as y, ErrorBoundary 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, d as Dashboard$2, e as DashboardCreate, f as DashboardUpdate } from './types-WrCbOeAV.cjs';
3
+ import { a as QueryDefinition, Q as QueryResult, D as DatabaseSchema, e as Dashboard$2, f as DashboardCreate, g as DashboardUpdate } from './types-j0kPJ9Hz.cjs';
4
4
 
5
5
  /**
6
6
  * Dashboard type definitions for Prismiq.
@@ -119,6 +119,8 @@ interface WidgetConfig {
119
119
  alignment?: 'Left' | 'Center' | 'Right';
120
120
  /** Font size for text widgets. */
121
121
  fontSize?: 'Small' | 'Normal' | 'Large' | 'XLarge';
122
+ /** Editor mode used to build this widget ('guided', 'advanced', or 'saved'). */
123
+ data_source_mode?: 'guided' | 'advanced' | 'saved';
122
124
  }
123
125
  /**
124
126
  * Widget hyperlink configuration for linking to external URLs.
@@ -149,8 +151,6 @@ interface Widget$1 {
149
151
  config: WidgetConfig;
150
152
  /** Optional hyperlink to external URL (displayed as link icon in header). */
151
153
  hyperlink?: WidgetHyperlink;
152
- /** Data source mode last used when editing this widget. */
153
- dataSourceMode?: 'guided' | 'advanced' | 'saved';
154
154
  /** Creation timestamp (ISO string). */
155
155
  created_at?: string;
156
156
  /** Last update timestamp (ISO string). */
@@ -1103,4 +1103,4 @@ interface DashboardDialogProps {
1103
1103
  */
1104
1104
  declare const DashboardDialog: react.ForwardRefExoticComponent<DashboardDialogProps & react.RefAttributes<HTMLDivElement>>;
1105
1105
 
1106
- export { TextFilter as $, useWidget as A, type UseWidgetResult as B, useAutoRefresh as C, type DashboardLayout$1 as D, type UseAutoRefreshOptions as E, type FilterOption as F, type UseAutoRefreshResult as G, useFullscreen as H, type UseFullscreenResult as I, Dashboard as J, DashboardLayout as K, type LazyLoadingConfig as L, type MultiSelectFilterProps as M, type NumberRangeValue as N, Widget as O, WidgetHeader as P, WidgetContent as Q, type ReferenceLine as R, type SelectFilterProps as S, type TextFilterProps as T, type UseDashboardFiltersResult as U, type WidgetContentProps as V, type Widget$1 as W, FilterBar as X, DateRangeFilter as Y, SelectFilter as Z, MultiSelectFilter as _, type WidgetPosition as a, DashboardEditor as a0, EditorToolbar as a1, WidgetPalette as a2, WidgetEditor as a3, type EditorToolbarProps as a4, DashboardList as a5, DashboardCard as a6, DashboardDialog as a7, type DashboardListProps as a8, type DashboardCardProps as a9, type DashboardDialogProps as aa, type WidgetType as b, type WidgetConfig as c, type WidgetCrossFilterConfig as d, type WidgetHyperlink as e, type DashboardFilterType as f, type DashboardFilter as g, type FilterValue as h, type DateRangeValue as i, type Dashboard$1 as j, type DashboardContextValue as k, type DashboardEditorContextValue as l, type DashboardProviderProps as m, type DashboardProps as n, type DashboardEditorProps as o, type DashboardLayoutProps as p, type WidgetProps as q, type WidgetHeaderProps as r, type FilterBarProps as s, type DateRangeFilterProps as t, type WidgetPaletteProps as u, type WidgetEditorProps as v, DashboardProvider as w, DashboardContext as x, useDashboard as y, useDashboardFilters as z };
1106
+ 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, d as Dashboard$2, e as DashboardCreate, f as DashboardUpdate } from './types-WrCbOeAV.js';
3
+ import { a as QueryDefinition, Q as QueryResult, D as DatabaseSchema, e as Dashboard$2, f as DashboardCreate, g as DashboardUpdate } from './types-j0kPJ9Hz.js';
4
4
 
5
5
  /**
6
6
  * Dashboard type definitions for Prismiq.
@@ -119,6 +119,8 @@ interface WidgetConfig {
119
119
  alignment?: 'Left' | 'Center' | 'Right';
120
120
  /** Font size for text widgets. */
121
121
  fontSize?: 'Small' | 'Normal' | 'Large' | 'XLarge';
122
+ /** Editor mode used to build this widget ('guided', 'advanced', or 'saved'). */
123
+ data_source_mode?: 'guided' | 'advanced' | 'saved';
122
124
  }
123
125
  /**
124
126
  * Widget hyperlink configuration for linking to external URLs.
@@ -149,8 +151,6 @@ interface Widget$1 {
149
151
  config: WidgetConfig;
150
152
  /** Optional hyperlink to external URL (displayed as link icon in header). */
151
153
  hyperlink?: WidgetHyperlink;
152
- /** Data source mode last used when editing this widget. */
153
- dataSourceMode?: 'guided' | 'advanced' | 'saved';
154
154
  /** Creation timestamp (ISO string). */
155
155
  created_at?: string;
156
156
  /** Last update timestamp (ISO string). */
@@ -1103,4 +1103,4 @@ interface DashboardDialogProps {
1103
1103
  */
1104
1104
  declare const DashboardDialog: react.ForwardRefExoticComponent<DashboardDialogProps & react.RefAttributes<HTMLDivElement>>;
1105
1105
 
1106
- export { TextFilter as $, useWidget as A, type UseWidgetResult as B, useAutoRefresh as C, type DashboardLayout$1 as D, type UseAutoRefreshOptions as E, type FilterOption as F, type UseAutoRefreshResult as G, useFullscreen as H, type UseFullscreenResult as I, Dashboard as J, DashboardLayout as K, type LazyLoadingConfig as L, type MultiSelectFilterProps as M, type NumberRangeValue as N, Widget as O, WidgetHeader as P, WidgetContent as Q, type ReferenceLine as R, type SelectFilterProps as S, type TextFilterProps as T, type UseDashboardFiltersResult as U, type WidgetContentProps as V, type Widget$1 as W, FilterBar as X, DateRangeFilter as Y, SelectFilter as Z, MultiSelectFilter as _, type WidgetPosition as a, DashboardEditor as a0, EditorToolbar as a1, WidgetPalette as a2, WidgetEditor as a3, type EditorToolbarProps as a4, DashboardList as a5, DashboardCard as a6, DashboardDialog as a7, type DashboardListProps as a8, type DashboardCardProps as a9, type DashboardDialogProps as aa, type WidgetType as b, type WidgetConfig as c, type WidgetCrossFilterConfig as d, type WidgetHyperlink as e, type DashboardFilterType as f, type DashboardFilter as g, type FilterValue as h, type DateRangeValue as i, type Dashboard$1 as j, type DashboardContextValue as k, type DashboardEditorContextValue as l, type DashboardProviderProps as m, type DashboardProps as n, type DashboardEditorProps as o, type DashboardLayoutProps as p, type WidgetProps as q, type WidgetHeaderProps as r, type FilterBarProps as s, type DateRangeFilterProps as t, type WidgetPaletteProps as u, type WidgetEditorProps as v, DashboardProvider as w, DashboardContext as x, useDashboard as y, useDashboardFilters as z };
1106
+ 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 UseFocusTrapResult as U, useArrowNavigation as a, useRovingTabIndex as b, useFocusVisible as c, announceToScreenReader as d, skipLinkFocusStyles as e, focusVisibleStyles as f, type UseArrowNavigationResult as g, skipLinkStyles as s, useFocusTrap as u };
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 UseFocusTrapResult as U, useArrowNavigation as a, useRovingTabIndex as b, useFocusVisible as c, announceToScreenReader as d, skipLinkFocusStyles as e, focusVisibleStyles as f, type UseArrowNavigationResult as g, skipLinkStyles as s, useFocusTrap as u };
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 };
@@ -1,110 +1,110 @@
1
1
  'use strict';
2
2
 
3
- var chunkNK7HKX2J_cjs = require('../chunk-NK7HKX2J.cjs');
3
+ var chunk73TPDGXB_cjs = require('../chunk-73TPDGXB.cjs');
4
4
  require('../chunk-LMTG3LRC.cjs');
5
- require('../chunk-4AVL6GQK.cjs');
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 chunkNK7HKX2J_cjs.AreaChart; }
11
+ get: function () { return chunk73TPDGXB_cjs.AreaChart; }
12
12
  });
13
13
  Object.defineProperty(exports, "BarChart", {
14
14
  enumerable: true,
15
- get: function () { return chunkNK7HKX2J_cjs.BarChart; }
15
+ get: function () { return chunk73TPDGXB_cjs.BarChart; }
16
16
  });
17
17
  Object.defineProperty(exports, "EChartWrapper", {
18
18
  enumerable: true,
19
- get: function () { return chunkNK7HKX2J_cjs.EChartWrapper; }
19
+ get: function () { return chunk73TPDGXB_cjs.EChartWrapper; }
20
20
  });
21
21
  Object.defineProperty(exports, "LineChart", {
22
22
  enumerable: true,
23
- get: function () { return chunkNK7HKX2J_cjs.LineChart; }
23
+ get: function () { return chunk73TPDGXB_cjs.LineChart; }
24
24
  });
25
25
  Object.defineProperty(exports, "MetricCard", {
26
26
  enumerable: true,
27
- get: function () { return chunkNK7HKX2J_cjs.MetricCard; }
27
+ get: function () { return chunk73TPDGXB_cjs.MetricCard; }
28
28
  });
29
29
  Object.defineProperty(exports, "PieChart", {
30
30
  enumerable: true,
31
- get: function () { return chunkNK7HKX2J_cjs.PieChart; }
31
+ get: function () { return chunk73TPDGXB_cjs.PieChart; }
32
32
  });
33
33
  Object.defineProperty(exports, "ScatterChart", {
34
34
  enumerable: true,
35
- get: function () { return chunkNK7HKX2J_cjs.ScatterChart; }
35
+ get: function () { return chunk73TPDGXB_cjs.ScatterChart; }
36
36
  });
37
37
  Object.defineProperty(exports, "Sparkline", {
38
38
  enumerable: true,
39
- get: function () { return chunkNK7HKX2J_cjs.Sparkline; }
39
+ get: function () { return chunk73TPDGXB_cjs.Sparkline; }
40
40
  });
41
41
  Object.defineProperty(exports, "TrendIndicator", {
42
42
  enumerable: true,
43
- get: function () { return chunkNK7HKX2J_cjs.TrendIndicator; }
43
+ get: function () { return chunk73TPDGXB_cjs.TrendIndicator; }
44
44
  });
45
45
  Object.defineProperty(exports, "adjustColorOpacity", {
46
46
  enumerable: true,
47
- get: function () { return chunkNK7HKX2J_cjs.adjustColorOpacity; }
47
+ get: function () { return chunk73TPDGXB_cjs.adjustColorOpacity; }
48
48
  });
49
49
  Object.defineProperty(exports, "applyThemeToOption", {
50
50
  enumerable: true,
51
- get: function () { return chunkNK7HKX2J_cjs.applyThemeToOption; }
51
+ get: function () { return chunk73TPDGXB_cjs.applyThemeToOption; }
52
52
  });
53
53
  Object.defineProperty(exports, "createChartTheme", {
54
54
  enumerable: true,
55
- get: function () { return chunkNK7HKX2J_cjs.createChartTheme; }
55
+ get: function () { return chunk73TPDGXB_cjs.createChartTheme; }
56
56
  });
57
57
  Object.defineProperty(exports, "createEmptyStateGraphic", {
58
58
  enumerable: true,
59
- get: function () { return chunkNK7HKX2J_cjs.createEmptyStateGraphic; }
59
+ get: function () { return chunk73TPDGXB_cjs.createEmptyStateGraphic; }
60
60
  });
61
61
  Object.defineProperty(exports, "createGradientColor", {
62
62
  enumerable: true,
63
- get: function () { return chunkNK7HKX2J_cjs.createGradientColor; }
63
+ get: function () { return chunk73TPDGXB_cjs.createGradientColor; }
64
64
  });
65
65
  Object.defineProperty(exports, "createMarkLines", {
66
66
  enumerable: true,
67
- get: function () { return chunkNK7HKX2J_cjs.createMarkLines; }
67
+ get: function () { return chunk73TPDGXB_cjs.createMarkLines; }
68
68
  });
69
69
  Object.defineProperty(exports, "dataPointsToChartData", {
70
70
  enumerable: true,
71
- get: function () { return chunkNK7HKX2J_cjs.dataPointsToChartData; }
71
+ get: function () { return chunk73TPDGXB_cjs.dataPointsToChartData; }
72
72
  });
73
73
  Object.defineProperty(exports, "formatAxisLabel", {
74
74
  enumerable: true,
75
- get: function () { return chunkNK7HKX2J_cjs.formatAxisLabel; }
75
+ get: function () { return chunk73TPDGXB_cjs.formatAxisLabel; }
76
76
  });
77
77
  Object.defineProperty(exports, "formatCompact", {
78
78
  enumerable: true,
79
- get: function () { return chunkNK7HKX2J_cjs.formatCompact; }
79
+ get: function () { return chunk73TPDGXB_cjs.formatCompact; }
80
80
  });
81
81
  Object.defineProperty(exports, "formatMetricValue", {
82
82
  enumerable: true,
83
- get: function () { return chunkNK7HKX2J_cjs.formatMetricValue; }
83
+ get: function () { return chunk73TPDGXB_cjs.formatMetricValue; }
84
84
  });
85
85
  Object.defineProperty(exports, "getChartColors", {
86
86
  enumerable: true,
87
- get: function () { return chunkNK7HKX2J_cjs.getChartColors; }
87
+ get: function () { return chunk73TPDGXB_cjs.getChartColors; }
88
88
  });
89
89
  Object.defineProperty(exports, "isChartDataEmpty", {
90
90
  enumerable: true,
91
- get: function () { return chunkNK7HKX2J_cjs.isChartDataEmpty; }
91
+ get: function () { return chunk73TPDGXB_cjs.isChartDataEmpty; }
92
92
  });
93
93
  Object.defineProperty(exports, "isQueryResult", {
94
94
  enumerable: true,
95
- get: function () { return chunkNK7HKX2J_cjs.isQueryResult; }
95
+ get: function () { return chunk73TPDGXB_cjs.isQueryResult; }
96
96
  });
97
97
  Object.defineProperty(exports, "queryResultToChartData", {
98
98
  enumerable: true,
99
- get: function () { return chunkNK7HKX2J_cjs.queryResultToChartData; }
99
+ get: function () { return chunk73TPDGXB_cjs.queryResultToChartData; }
100
100
  });
101
101
  Object.defineProperty(exports, "suggestChartType", {
102
102
  enumerable: true,
103
- get: function () { return chunkNK7HKX2J_cjs.suggestChartType; }
103
+ get: function () { return chunk73TPDGXB_cjs.suggestChartType; }
104
104
  });
105
105
  Object.defineProperty(exports, "toChartData", {
106
106
  enumerable: true,
107
- get: function () { return chunkNK7HKX2J_cjs.toChartData; }
107
+ get: function () { return chunk73TPDGXB_cjs.toChartData; }
108
108
  });
109
109
  //# sourceMappingURL=index.cjs.map
110
110
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- export { A as AreaChart, F as AreaChartProps, v as AxisFormat, B as BarChart, y as BarChartProps, r as BaseChartProps, u as ChartClickParams, C as ChartDataOptions, o as ChartDataPoint, b as ChartDataResult, p as ChartSeries, Q as ChartSuggestion, O as ChartType, E as EChartWrapper, x as EChartWrapperProps, w as LegendPosition, L as LineChart, z as LineChartProps, M as MetricCard, J as MetricCardProps, d as PieChart, G as PieChartProps, R as ReferenceLineConfig, e as ScatterChart, H as ScatterChartProps, S as Sparkline, N as SparklineProps, I as TrendConfig, c as TrendIndicator, K as TrendIndicatorProps, V as adjustColorOpacity, h as applyThemeToOption, g as createChartTheme, X as createEmptyStateGraphic, m as createGradientColor, W as createMarkLines, f as dataPointsToChartData, i as formatAxisLabel, j as formatCompact, k as formatMetricValue, l as getChartColors, n as isChartDataEmpty, U as isQueryResult, q as queryResultToChartData, s as suggestChartType, t as toChartData } from '../index-C-Qcuu4Y.cjs';
2
- import '../types-WrCbOeAV.cjs';
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-CvKj3SWO.cjs';
2
+ import '../types-j0kPJ9Hz.cjs';
@@ -1,2 +1,2 @@
1
- export { A as AreaChart, F as AreaChartProps, v as AxisFormat, B as BarChart, y as BarChartProps, r as BaseChartProps, u as ChartClickParams, C as ChartDataOptions, o as ChartDataPoint, b as ChartDataResult, p as ChartSeries, Q as ChartSuggestion, O as ChartType, E as EChartWrapper, x as EChartWrapperProps, w as LegendPosition, L as LineChart, z as LineChartProps, M as MetricCard, J as MetricCardProps, d as PieChart, G as PieChartProps, R as ReferenceLineConfig, e as ScatterChart, H as ScatterChartProps, S as Sparkline, N as SparklineProps, I as TrendConfig, c as TrendIndicator, K as TrendIndicatorProps, V as adjustColorOpacity, h as applyThemeToOption, g as createChartTheme, X as createEmptyStateGraphic, m as createGradientColor, W as createMarkLines, f as dataPointsToChartData, i as formatAxisLabel, j as formatCompact, k as formatMetricValue, l as getChartColors, n as isChartDataEmpty, U as isQueryResult, q as queryResultToChartData, s as suggestChartType, t as toChartData } from '../index-rPc7ijt8.js';
2
- import '../types-WrCbOeAV.js';
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-DXGLs1yY.js';
2
+ import '../types-j0kPJ9Hz.js';
@@ -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-2H5WTH4K.js';
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-EX74SI67.js';
3
+ import '../chunk-LBE6GIBC.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map