@vizzly/dashboard 0.14.0 → 0.14.1-dev-e0ca0009df3e30e44abcabf4d846020c4205cc61

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 (70) hide show
  1. package/dist/charts/src/PieChart/PieChart.d.ts +4 -0
  2. package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +54 -12
  3. package/dist/dashboard/src/types.d.ts +1 -0
  4. package/dist/index.js +1 -1
  5. package/dist/results-driver/src/driver/VizzlyQuery/AdditionalFilter/toQueries.d.ts +3 -1
  6. package/dist/shared-logic/src/AdditionalFilter/fromDashboardRequiredFilterGroups.d.ts +9 -0
  7. package/dist/shared-logic/src/Callbacks/cell.funcs.d.ts +5 -3
  8. package/dist/shared-logic/src/Component/types.d.ts +7 -0
  9. package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +1 -0
  10. package/dist/shared-logic/src/Drilldown/Drilldown.d.ts +6 -1
  11. package/dist/shared-logic/src/FeatureToggle/types.d.ts +2 -0
  12. package/dist/shared-logic/src/Filter/combineFilters.d.ts +2 -0
  13. package/dist/shared-logic/src/Filter/index.d.ts +1 -0
  14. package/dist/shared-logic/src/FormatPanelConfig/types.d.ts +1 -1
  15. package/dist/shared-logic/src/PieChart/onViewClick.d.ts +8 -3
  16. package/dist/shared-logic/src/Query/Query.d.ts +1 -1
  17. package/dist/shared-logic/src/Theme/types.d.ts +22 -0
  18. package/dist/shared-logic/src/VizzlyState/index.d.ts +3 -0
  19. package/dist/shared-ui/src/api/useQueryEffect/download.d.ts +1 -1
  20. package/dist/shared-ui/src/base/Alert/Alert.types.d.ts +1 -1
  21. package/dist/shared-ui/src/base/Button/IconButton.d.ts +2 -0
  22. package/dist/shared-ui/src/base/DateTime/CustomRangePicker.d.ts +1 -0
  23. package/dist/shared-ui/src/base/DateTime/DatePicker.styles.d.ts +1 -1
  24. package/dist/shared-ui/src/base/DateTime/DateTimeFilter.d.ts +1 -0
  25. package/dist/shared-ui/src/base/Icons/SVGs.d.ts +6 -10
  26. package/dist/shared-ui/src/base/Icons.d.ts +2 -0
  27. package/dist/shared-ui/src/base/Input/Input.styles.d.ts +1 -1
  28. package/dist/shared-ui/src/base/Input/InputContainer.d.ts +1 -0
  29. package/dist/shared-ui/src/base/InputWithVariables/InputWithVariables.d.ts +14 -0
  30. package/dist/shared-ui/src/base/Section/Section.d.ts +1 -0
  31. package/dist/shared-ui/src/base/Table/Table.styles.d.ts +9 -1
  32. package/dist/shared-ui/src/components/AdditionalFilter/AdditionalFilter.d.ts +1 -0
  33. package/dist/shared-ui/src/components/AdditionalFilter/AdvancedPicker/AdvancedDisplayValues.d.ts +0 -2
  34. package/dist/shared-ui/src/components/AdditionalFilter/AdvancedPicker/AdvancedPicker.d.ts +0 -1
  35. package/dist/shared-ui/src/components/AdditionalFilter/AdvancedPicker/AdvancedSelectFilter.d.ts +1 -0
  36. package/dist/shared-ui/src/components/AdditionalFilter/DateFilter/index.d.ts +1 -0
  37. package/dist/shared-ui/src/components/AdditionalFilter/usePopupPosition.d.ts +7 -0
  38. package/dist/shared-ui/src/components/BarChart/BarChartView.d.ts +3 -1
  39. package/dist/shared-ui/src/components/BarChart/types.d.ts +1 -1
  40. package/dist/shared-ui/src/components/ChartHelper.d.ts +2 -2
  41. package/dist/shared-ui/src/components/ClickSettings/AddClickSettingModal.d.ts +7 -0
  42. package/dist/shared-ui/src/components/ClickSettings/ClickSettingsModal.d.ts +7 -0
  43. package/dist/shared-ui/src/components/ComboChart/ComboChartView.d.ts +1 -1
  44. package/dist/shared-ui/src/components/DataTable/DataTable.d.ts +2 -2
  45. package/dist/shared-ui/src/components/DataTable/DataTableView.d.ts +1 -1
  46. package/dist/shared-ui/src/components/GlobalFilters/storedFilters.d.ts +6 -0
  47. package/dist/shared-ui/src/components/GlobalFilters/updateGlobalFilters.d.ts +13 -1
  48. package/dist/shared-ui/src/components/LineChart/LineChartView.d.ts +3 -0
  49. package/dist/shared-ui/src/components/MercatorMap/View.d.ts +3 -0
  50. package/dist/shared-ui/src/components/PieChart/PieChartView.d.ts +2 -0
  51. package/dist/shared-ui/src/components/SingleStat/SingleStatView.d.ts +2 -1
  52. package/dist/shared-ui/src/components/Studio/StudioContexts.d.ts +1 -1
  53. package/dist/shared-ui/src/contexts/DashboardBehaviour/context.d.ts +1 -1
  54. package/dist/shared-ui/src/contexts/DashboardBehaviour/defaultFormatMapping.d.ts +2 -0
  55. package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +10 -2
  56. package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +4 -1
  57. package/dist/shared-ui/src/headlessui/components/switch/switch.d.ts +1 -1
  58. package/dist/shared-ui/src/hooks/types.d.ts +9 -0
  59. package/dist/shared-ui/src/hooks/useDeveloperTools.d.ts +11 -0
  60. package/dist/shared-ui/src/hooks/useLocalStorage.d.ts +5 -0
  61. package/dist/shared-ui/src/library/ConditionalFormatting.d.ts +6 -1
  62. package/dist/shared-ui/src/library/Empty.d.ts +1 -0
  63. package/dist/shared-ui/src/library/StylePanel/GoalLine/GoalLineModal.d.ts +1 -8
  64. package/dist/shared-ui/src/library/StylePanel/GoalLine/GoalLineRules.d.ts +1 -2
  65. package/dist/shared-ui/src/library/StylePanel/GoalLine/types.d.ts +8 -0
  66. package/dist/shared-ui/src/library/StylePanel/GoalLine/useGoalLine.d.ts +1 -1
  67. package/dist/shared-ui/src/types.d.ts +9 -0
  68. package/package.json +4 -3
  69. package/dist/shared-logic/src/JSQueryEngine/compare.d.ts +0 -6
  70. package/dist/shared-ui/src/runQuery/compare.d.ts +0 -1
@@ -15,6 +15,9 @@ declare const memoized: React.NamedExoticComponent<{
15
15
  supportedAggregates: import("@vizzly/semantic-layer-public").SupportedAggregates;
16
16
  supportedTimeTruncFunctions: import("@vizzly/semantic-layer-public").SupportedTimeTruncFunctions;
17
17
  supportedTransformationFunctions: import("@vizzly/semantic-layer-public").SupportedTransformationFunctions;
18
+ defaultFormats: () => {
19
+ [functionId: string]: string;
20
+ };
18
21
  localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[];
19
22
  setLocalFilters: (localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[]) => void;
20
23
  setParameterUpdate: (payload: import("../../../../shared-logic/src/Parameters").UpdatedMetrics) => void;
@@ -12,6 +12,9 @@ declare const _default: (props: {
12
12
  supportedAggregates: import("@vizzly/semantic-layer-public").SupportedAggregates;
13
13
  supportedTimeTruncFunctions: import("@vizzly/semantic-layer-public").SupportedTimeTruncFunctions;
14
14
  supportedTransformationFunctions: import("@vizzly/semantic-layer-public").SupportedTransformationFunctions;
15
+ defaultFormats: () => {
16
+ [functionId: string]: string;
17
+ };
15
18
  localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[];
16
19
  setLocalFilters: (localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[]) => void;
17
20
  setParameterUpdate: (payload: import("../../../../shared-logic/src/Parameters").UpdatedMetrics) => void;
@@ -3,6 +3,7 @@ import { VizzlyComponents } from '../../types';
3
3
  import { Component } from '../../../../shared-logic/src/Component/types';
4
4
  import { DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
5
5
  import * as Drilldown from '../../../../shared-logic/src/Drilldown/Drilldown';
6
+ import * as OnViewClick from '../../../../shared-logic/src/Callbacks/cell.funcs';
6
7
  export declare type PieChartViewProps = VizzlyComponents.ViewProps<Component.PieChartAttributes> & {
7
8
  library?: boolean;
8
9
  numberFormatOptions: DashboardBehaviour['numberFormatOptions'];
@@ -10,6 +11,7 @@ export declare type PieChartViewProps = VizzlyComponents.ViewProps<Component.Pie
10
11
  drilldownSelections: Drilldown.SelectedDrilldown[];
11
12
  onResetDrilldown: () => void;
12
13
  editor?: boolean;
14
+ runViewClickQuery: OnViewClick.runViewClickQueryType;
13
15
  };
14
16
  export declare const defaultProps: Omit<Component.PieChartAttributes, 'dataSetId'>;
15
17
  declare const memoized: React.MemoExoticComponent<{
@@ -10,10 +10,11 @@ export declare type SingleStatViewProps = Omit<VizzlyComponents.ViewProps<Compon
10
10
  leftAlign?: boolean;
11
11
  viewFor: ViewForKey;
12
12
  displayCurrent?: boolean;
13
+ direction?: Component.SingleStatDirectionOptions;
13
14
  };
14
15
  export declare const defaultProps: Omit<Component.SingleStatAttributes, 'dataSetId'>;
15
16
  declare const SingleStatView: {
16
17
  (props: SingleStatViewProps): JSX.Element;
17
- defaultProps: Pick<Component.SingleStatAttributes, "filter" | "fontSize" | "offset" | "measure" | "limit" | "type" | "viewId" | "displayTitle" | "displaySubject" | "protectedByOrganisation" | "tags" | "conditionalFormattingRules" | "parameters" | "prefixes" | "postfixes" | "formatter" | "deltaTimeDimension">;
18
+ defaultProps: Pick<Component.SingleStatAttributes, "direction" | "filter" | "fontSize" | "offset" | "measure" | "limit" | "type" | "viewId" | "displayTitle" | "displaySubject" | "protectedByOrganisation" | "tags" | "conditionalFormattingRules" | "parameters" | "prefixes" | "postfixes" | "formatter" | "deltaTimeDimension">;
18
19
  };
19
20
  export default SingleStatView;
@@ -24,7 +24,7 @@ export declare type StudioProps = {
24
24
  implementationMeta: VizzlyComponents.ImplementationMeta;
25
25
  theme?: VizzlyTheming.Base;
26
26
  onError?: VizzlyComponents.OnError;
27
- onViewClick?: (data: Component.OnViewClick) => void;
27
+ onViewClick?: (data: Component.OnViewClick, query?: Component.OnViewClickQuery) => void;
28
28
  renderTableCell?: (data: Component.RenderTableCell) => React.ReactNode | string | undefined;
29
29
  onReset: () => Promise<Dashboard | null>;
30
30
  onDashboardUpdate?: (dashboard: Dashboard) => void;
@@ -14,7 +14,7 @@ export interface DashboardBehaviourProps {
14
14
  dashboardBehaviour?: Partial<Omit<DashboardBehaviourType, 'mode' | 'featureToggles'> & {
15
15
  featureToggles: Partial<DashboardBehaviourType['featureToggles']>;
16
16
  }>;
17
- onViewClick?: (data: Component.OnViewClick) => void;
17
+ onViewClick?: (data: Component.OnViewClick, loadUnderlyingData?: Component.OnViewClickQuery) => void;
18
18
  renderTableCell?: (data: Component.RenderTableCell) => React.ReactNode | string | undefined;
19
19
  disableToolbar?: boolean;
20
20
  cascadeFilterSelection?: boolean;
@@ -0,0 +1,2 @@
1
+ import { DashboardBehaviour } from './types';
2
+ export declare const defaultFormatMapping: ReturnType<DashboardBehaviour['defaultFormats']>;
@@ -17,6 +17,7 @@ import { CustomView } from '../../../../shared-logic/src/CustomView/types';
17
17
  import { ValueAlias as ValueAliasType } from '../../../../shared-logic/src/ValueAlias/types';
18
18
  import { VariablesCallback } from '../../../../shared-logic/src/Variables/types';
19
19
  import { UseVariableState } from '../Variables/types';
20
+ import { ClickSettingTypes } from '../../hooks/types';
20
21
  declare type OverrideDeveloperInfo = {
21
22
  overrideKey: string;
22
23
  componentProps: any;
@@ -55,7 +56,11 @@ export declare type DashboardBehaviour = {
55
56
  isProgrammaticParent: boolean;
56
57
  id?: string;
57
58
  featureToggles: FeatureToggles;
58
- developerTools: boolean | DeveloperTools;
59
+ developerTools: boolean | (DeveloperTools & {
60
+ viewClickSettingsInput?: ClickSettingTypes & {
61
+ viewId: string;
62
+ };
63
+ });
59
64
  componentOverrides: Partial<VizzlyComponents.ComponentOverrides>;
60
65
  customViews: CustomView[];
61
66
  onlyViewTypes: (dataSet: DataSet) => ComponentType[];
@@ -71,6 +76,9 @@ export declare type DashboardBehaviour = {
71
76
  dateTimeFormatOptions: {
72
77
  [id: string]: DateTimeFormatter;
73
78
  };
79
+ defaultFormats: () => {
80
+ [functionId: string]: string;
81
+ };
74
82
  datePickerFormat: 'DD/MM/YYYY' | 'MM/DD/YYYY' | 'YYYY/MM/DD';
75
83
  /**
76
84
  * This property has replaced dateTimeFilterOptions.
@@ -110,7 +118,7 @@ export declare type DashboardBehaviour = {
110
118
  }) => string | null | undefined;
111
119
  onDashboardFilterChange: (additionalFilters: AdditionalFilter[]) => void;
112
120
  onDashboardLoad?: (dashboard: DashboardCallback) => void;
113
- onViewClick?: (data: Component.OnViewClick) => void;
121
+ onViewClick?: (data: Component.OnViewClick, loadUnderlyingData?: Component.OnViewClickQuery) => void;
114
122
  renderTableCell?: (data: Component.RenderTableCell) => React.ReactNode | string | undefined;
115
123
  disableToolbar?: boolean;
116
124
  cascadeFilterSelection?: boolean;
@@ -22,6 +22,7 @@ import { AdvancedFilterModalProps } from '../../library/DataPanel/AdvancedFilter
22
22
  import { ProgressModalProps } from '../../library/DataPanel/Progress/types';
23
23
  import { ConditionalFormattingModalProps } from '../../library/StylePanel/ConditionalFormatting/types';
24
24
  import { TrendLinesModalProps } from '../../library/DataPanel/Trends/types';
25
+ import { GoalLineModalProps } from '../../library/StylePanel/GoalLine/types';
25
26
  export declare enum ModalType {
26
27
  Drilldown = "drilldown",
27
28
  AdvancedFilter = "advancedFilter",
@@ -36,7 +37,8 @@ export declare enum ModalType {
36
37
  TableDrilldown = "tableDrilldown",
37
38
  Progress = "progress",
38
39
  ConditionalFormatting = "conditionalFormatting",
39
- TrendLines = "trendLines"
40
+ TrendLines = "trendLines",
41
+ GoalLines = "goalLines"
40
42
  }
41
43
  export declare type EditorModalPropsMap = {
42
44
  [ModalType.Drilldown]: DrilldownModalProps;
@@ -53,6 +55,7 @@ export declare type EditorModalPropsMap = {
53
55
  [ModalType.Progress]: ProgressModalProps;
54
56
  [ModalType.ConditionalFormatting]: ConditionalFormattingModalProps;
55
57
  [ModalType.TrendLines]: TrendLinesModalProps;
58
+ [ModalType.GoalLines]: GoalLineModalProps;
56
59
  };
57
60
  declare type ModalChanges<T extends ModalType> = {
58
61
  modal: T;
@@ -20,7 +20,7 @@ export declare let Switch: (<TTag extends React.ElementType<any> = "button">(pro
20
20
  onChange?(checked: boolean): void;
21
21
  name?: string | undefined;
22
22
  value?: string | undefined;
23
- }) | (Pick<import("../../types").PropsOf<TTag>, Exclude<keyof import("../../types").PropsOf<TTag>, "value" | "children" | "className" | "as" | "refName">> & {
23
+ }) | (Pick<import("../../types").PropsOf<TTag>, Exclude<keyof import("../../types").PropsOf<TTag>, "children" | "value" | "className" | "as" | "refName">> & {
24
24
  as?: TTag | undefined;
25
25
  children?: string | number | boolean | {} | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | Iterable<React.ReactNode> | React.ReactPortal | ((bag: SwitchRenderPropArg) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>) | null | undefined;
26
26
  refName?: string | undefined;
@@ -0,0 +1,9 @@
1
+ import { Datum } from '../../../shared-logic/src/DatumKey';
2
+ import { DatumByKey } from '../../../shared-logic/src/Callbacks';
3
+ import { ClickDatumValues, PieEvent } from '../../../shared-logic/src/PieChart/onViewClick';
4
+ export declare type ClickSettingTypes = {
5
+ clickedValue?: Datum | undefined;
6
+ nearestDatum?: DatumByKey | undefined;
7
+ pieClickedValue?: ClickDatumValues;
8
+ pieEvent?: PieEvent;
9
+ };
@@ -0,0 +1,11 @@
1
+ import { DeveloperTools } from '../contexts/DashboardBehaviour/types';
2
+ import { ClickSettingTypes } from './types';
3
+ export declare function useDeveloperTools({ developerTools, viewId, onClickSettingsChange, }: {
4
+ developerTools: boolean | (DeveloperTools & {
5
+ viewClickSettingsInput?: ClickSettingTypes & {
6
+ viewId: string;
7
+ };
8
+ });
9
+ viewId: string;
10
+ onClickSettingsChange?: (value: ClickSettingTypes) => void;
11
+ }): void;
@@ -0,0 +1,5 @@
1
+ export declare function useLocalStorage<T>(key: string, initialValue: T): {
2
+ get: () => any;
3
+ set: (value: T | ((val: T) => T)) => void;
4
+ storedValue: T;
5
+ };
@@ -1,7 +1,12 @@
1
1
  import React from 'react';
2
- import { ComparisonFilter } from '../runQuery/compare';
3
2
  import { Component } from '../../../shared-logic/src/Component/types';
3
+ import { QueryAttributes } from '../../../shared-logic/src/QueryAttributes/types';
4
4
  export declare function getFormattedByRule({ type, value }: Component.ConditionalFormatting.DisplayRule): React.CSSProperties;
5
+ export declare type ComparisonFilter = {
6
+ op: QueryAttributes.Operator;
7
+ value: QueryAttributes.Filter['value'];
8
+ };
9
+ export declare const compare: (filter: ComparisonFilter, recordValue: unknown) => any;
5
10
  export declare const conditionIsMet: (filter: ComparisonFilter, value: number | string | boolean) => boolean;
6
11
  export declare function getFormattedCellClass({ filter, cellValue, type, value, }: Component.ConditionalFormatting.DisplayRule & {
7
12
  cellValue: number | string;
@@ -22,6 +22,7 @@ export declare const QueryUnderConstructionNotice: FunctionComponent<{
22
22
  title?: string;
23
23
  }>;
24
24
  export declare const FailedToLoadDataNotice: () => JSX.Element;
25
+ export declare const ResultsToLargeNotice: () => JSX.Element;
25
26
  export declare const ViewNoLongerExistsNotice: () => JSX.Element;
26
27
  export declare const NoResultContentToShowNotice: (props: React.PropsWithChildren<ViewHeaderProps>) => JSX.Element;
27
28
  export declare const ComponentErrorNotice: (props: {
@@ -1,10 +1,3 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { GoalLineRuleType } from './GoalLineRules';
3
- declare type GoalLineModalProps = {
4
- show: boolean;
5
- onClose: () => void;
6
- goalLine?: GoalLineRuleType;
7
- onSave: (goalLine: GoalLineRuleType) => void;
8
- };
2
+ import { GoalLineModalProps } from './types';
9
3
  export declare const GoalLineModal: FunctionComponent<GoalLineModalProps>;
10
- export {};
@@ -1,6 +1,5 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { Component } from '../../../../../shared-logic/src/Component/types';
3
- export declare type GoalLineRuleType = Component.GoalLine.Rule;
2
+ import { GoalLineRuleType } from './types';
4
3
  declare type Props = {
5
4
  goalLines: Array<GoalLineRuleType>;
6
5
  onSetGoalLineRules: (goalLines: Array<GoalLineRuleType>) => void;
@@ -0,0 +1,8 @@
1
+ import { Component } from '../../../../../shared-logic/src/Component/types';
2
+ export declare type GoalLineRuleType = Component.GoalLine.Rule;
3
+ export declare type GoalLineModalProps = {
4
+ show: boolean;
5
+ onClose: () => void;
6
+ goalLine?: GoalLineRuleType;
7
+ onSave: (goalLine: GoalLineRuleType) => void;
8
+ };
@@ -1,4 +1,4 @@
1
- import { GoalLineRuleType } from './GoalLineRules';
1
+ import { GoalLineRuleType } from './types';
2
2
  export declare function useGoalLine(initialGoalLine: GoalLineRuleType | undefined, onAddingGoalLine: (goalLine: GoalLineRuleType) => void): {
3
3
  handleUpsert: () => void;
4
4
  onChange: (partial: Partial<GoalLineRuleType>) => void;
@@ -96,6 +96,7 @@ export declare namespace VizzlyComponents {
96
96
  endTime?: string | null;
97
97
  prefix?: boolean;
98
98
  label?: string;
99
+ fixedWidth?: number;
99
100
  };
100
101
  type SelectOptions = {
101
102
  label: string | number | Function;
@@ -158,6 +159,7 @@ export declare namespace VizzlyComponents {
158
159
  onChange: (filter: MultiSelectFilter | NumericFilter) => void;
159
160
  showClearBtn?: boolean;
160
161
  type: Omit<DataType, 'date_time'>;
162
+ onOpenChange?: (open: boolean) => void;
161
163
  }>;
162
164
  }
163
165
  type Props<Rest> = Rest & {
@@ -224,6 +226,7 @@ export declare namespace VizzlyComponents {
224
226
  type renderAppendCellIcon = (props: {}) => JSX.Element | string;
225
227
  type renderLibraryIcon = (props: {}) => JSX.Element | string;
226
228
  type renderCreateComponentIcon = (props: {}) => JSX.Element | string;
229
+ type renderCogIcon = (props: {}) => JSX.Element | string;
227
230
  type AccordionIconProps = {
228
231
  isOpen: boolean;
229
232
  };
@@ -244,6 +247,7 @@ export declare namespace VizzlyComponents {
244
247
  type renderUserIcon = (props: UserIconProps) => JSX.Element | string;
245
248
  type renderAIChatIcon = (props: {}) => JSX.Element | string;
246
249
  type renderAIIcon = (props: {}) => JSX.Element | string;
250
+ type renderCodeIcon = (props: {}) => JSX.Element | string;
247
251
  type renderThumbsUpSelectedIcon = (props: {
248
252
  width?: number;
249
253
  height?: number;
@@ -362,6 +366,8 @@ export declare namespace VizzlyComponents {
362
366
  renderSwitchIcon: ComponentOverrides.renderSwitchIcon | null;
363
367
  renderPresentIcon: ComponentOverrides.renderPresentIcon | null;
364
368
  renderFullscreenIcon: ComponentOverrides.renderFullscreenIcon | null;
369
+ renderCodeIcon: ComponentOverrides.renderCodeIcon | null;
370
+ renderCogIcon: ComponentOverrides.renderCogIcon | null;
365
371
  renderArrowDownIcon: ComponentOverrides.renderArrowDownIcon | null;
366
372
  renderErrorIcon: ComponentOverrides.renderErrorIcon | null;
367
373
  renderArrowUpIcon: ComponentOverrides.renderArrowUpIcon | null;
@@ -394,6 +400,9 @@ export declare namespace VizzlyComponents {
394
400
  supportedAggregates: QueryEngineConfig['supportedAggregates'];
395
401
  supportedTimeTruncFunctions: QueryEngineConfig['supportedTimeTruncFunctions'];
396
402
  supportedTransformationFunctions: QueryEngineConfig['supportedTransformationFunctions'];
403
+ defaultFormats: () => {
404
+ [functionId: string]: string;
405
+ };
397
406
  localFilters: Component['localFilters'];
398
407
  setLocalFilters: (localFilters: Component['localFilters']) => void;
399
408
  setParameterUpdate: (payload: Component['updatesFromParameters']) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vizzly/dashboard",
3
3
  "author": "james@vizzly.co",
4
- "version": "0.14.0",
4
+ "version": "0.14.1-dev-e0ca0009df3e30e44abcabf4d846020c4205cc61",
5
5
  "source": "src/index.tsx",
6
6
  "types": "./dist/dashboard/src/index.d.ts",
7
7
  "main": "dist/index.js",
@@ -34,13 +34,14 @@
34
34
  "@emotion/styled": "^11.11.0",
35
35
  "@heroicons/react": "^1.0.6",
36
36
  "@popperjs/core": "^2.11.6",
37
+ "@react-hook/window-size": "^3.1.1",
37
38
  "@react-spring/web": "9.6.1",
38
39
  "@visx/visx": "^3.10.2",
39
40
  "@vizzly/api-client": "0.0.38",
40
41
  "@vizzly/dnd-backend": "0.0.4",
41
42
  "@vizzly/joi": "^17.7.0",
42
- "@vizzly/semantic-layer-public": "0.0.204",
43
- "@vizzly/sqlbuilder-public": "0.1.15",
43
+ "@vizzly/semantic-layer-public": "0.0.209",
44
+ "@vizzly/sqlbuilder-public": "0.1.16",
44
45
  "chroma-js": "2.4.2",
45
46
  "copy-to-clipboard": "^3.3.3",
46
47
  "cross-fetch": "^4.0.0",
@@ -1,6 +0,0 @@
1
- import { QueryAttributes } from '../QueryAttributes/types';
2
- export declare type ComparisonFilter = {
3
- op: QueryAttributes.Operator;
4
- value: QueryAttributes.Filter['value'];
5
- };
6
- export declare const compare: (filter: ComparisonFilter, recordValue: unknown) => any;
@@ -1 +0,0 @@
1
- export * from '../../../shared-logic/src/JSQueryEngine/compare';