@vizzly/dashboard 0.8.1 → 0.8.2-dev-4ac76b0195bc8bd9f3866e4cdcdac08e26caeff3

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 (151) hide show
  1. package/dist/charts/src/PieChart/CorePieChart.d.ts +1 -0
  2. package/dist/charts/src/XYChart/Annotations.d.ts +1 -0
  3. package/dist/charts/src/XYChart/XYChart.d.ts +1 -0
  4. package/dist/charts/src/XYChart/getCurveType.d.ts +7 -0
  5. package/dist/charts/src/XYChart/logic/constants.d.ts +2 -0
  6. package/dist/charts/src/XYChart/types.d.ts +1 -1
  7. package/dist/charts/src/types.d.ts +2 -0
  8. package/dist/charts/src/utils/buildStyleOverrides.d.ts +1 -1
  9. package/dist/dashboard/src/SetupError.d.ts +1 -0
  10. package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +6 -0
  11. package/dist/dashboard/src/index.d.ts +1 -0
  12. package/dist/dashboard/src/types.d.ts +1 -0
  13. package/dist/index.js +1 -1
  14. package/dist/shared-logic/src/Aggregate/Aggregate.d.ts +2 -0
  15. package/dist/shared-logic/src/Callbacks/labelFormat.d.ts +2 -0
  16. package/dist/shared-logic/src/Component/types.d.ts +8 -0
  17. package/dist/shared-logic/src/DashboardAPI/dashboardAPI/updating.d.ts +2 -0
  18. package/dist/shared-logic/src/Logger/Logger.d.ts +2 -0
  19. package/dist/shared-logic/src/Logger/types.d.ts +1 -1
  20. package/dist/shared-logic/src/Query/validate.d.ts +1 -0
  21. package/dist/shared-logic/src/QueryEngineConfig/redshift.d.ts +2 -0
  22. package/dist/shared-logic/src/Theme/types.d.ts +2 -0
  23. package/dist/shared-logic/src/Translations/translation.types.d.ts +7 -0
  24. package/dist/shared-logic/src/VizzlyConfig/validate.d.ts +1 -0
  25. package/dist/shared-logic/src/api/queryEngine/createDashboard.d.ts +3 -1
  26. package/dist/shared-logic/src/api/vizzly/createDashboard.d.ts +3 -1
  27. package/dist/shared-logic/src/api/vizzly/updateDashboard.d.ts +2 -0
  28. package/dist/shared-ui/src/api/useQueryEffect/download.d.ts +1 -1
  29. package/dist/shared-ui/src/base/AppStyles/AppStyles.styles.d.ts +1 -1
  30. package/dist/shared-ui/src/base/Button/Button.d.ts +1 -0
  31. package/dist/shared-ui/src/base/DateTime/DateRangePicker.d.ts +7 -0
  32. package/dist/shared-ui/src/base/DateTime/DateTimeFilter.d.ts +0 -4
  33. package/dist/shared-ui/src/base/DateTimeInput.d.ts +1 -0
  34. package/dist/shared-ui/src/base/EmptyState/Illustration.d.ts +1 -0
  35. package/dist/shared-ui/src/base/HeroCenteredForm/Notice.d.ts +1 -0
  36. package/dist/shared-ui/src/base/ListView/index.d.ts +2 -2
  37. package/dist/shared-ui/src/base/Section/Section.d.ts +1 -1
  38. package/dist/shared-ui/src/base/Select/Select.types.d.ts +1 -0
  39. package/dist/shared-ui/src/base/Select/Wrapper.d.ts +1 -0
  40. package/dist/shared-ui/src/base/layout/View.d.ts +1 -0
  41. package/dist/shared-ui/src/base/utils/titleFormat.d.ts +1 -0
  42. package/dist/shared-ui/src/buildStyleOverrides.d.ts +1 -1
  43. package/dist/shared-ui/src/components/AdditionalFilter/AdditionalFilter.d.ts +1 -0
  44. package/dist/shared-ui/src/components/AdditionalFilter/AdditionalSingleSelectFilter/index.d.ts +1 -0
  45. package/dist/shared-ui/src/components/AdditionalFilter/DateFilter/index.d.ts +1 -0
  46. package/dist/shared-ui/src/components/AreaChart/AreaChart.d.ts +1 -0
  47. package/dist/shared-ui/src/components/ChartHelper.d.ts +3 -3
  48. package/dist/shared-ui/src/components/ComboChart/ComboChart.d.ts +1 -0
  49. package/dist/shared-ui/src/components/Component.d.ts +1 -0
  50. package/dist/shared-ui/src/components/CustomComponent/CustomComponent.d.ts +1 -0
  51. package/dist/shared-ui/src/components/DataPropsEditor/DataPanelFromConfig.d.ts +1 -0
  52. package/dist/shared-ui/src/components/DataPropsEditor.d.ts +1 -0
  53. package/dist/shared-ui/src/components/DataTable/DataTable.d.ts +1 -0
  54. package/dist/shared-ui/src/components/DataTable/DataTableView.d.ts +1 -0
  55. package/dist/shared-ui/src/components/DataTable/TableHeader.d.ts +1 -0
  56. package/dist/shared-ui/src/components/DataTable/buildTableRepresentation.d.ts +1 -1
  57. package/dist/shared-ui/src/components/GlobalFilters/GlobalFilters.d.ts +1 -0
  58. package/dist/shared-ui/src/components/GlobalFilters/GlobalFiltersView.d.ts +1 -0
  59. package/dist/shared-ui/src/components/Icons/ComponentIcons.d.ts +1 -0
  60. package/dist/shared-ui/src/components/LineChart/LineChart.d.ts +1 -0
  61. package/dist/shared-ui/src/components/LocalFilter/DateTimeFilter/DataProps.d.ts +1 -0
  62. package/dist/shared-ui/src/components/LocalFilter/SelectFilter/DataProps.d.ts +1 -0
  63. package/dist/shared-ui/src/components/LocalFilter/View.d.ts +1 -0
  64. package/dist/shared-ui/src/components/MercatorMap/MercatorMap.d.ts +1 -0
  65. package/dist/shared-ui/src/components/MercatorMap/View.d.ts +1 -0
  66. package/dist/shared-ui/src/components/Parameters/ChangeViewMeasures.d.ts +5 -2
  67. package/dist/shared-ui/src/components/Parameters/ParametersView.d.ts +1 -0
  68. package/dist/shared-ui/src/components/Pickers/MetricsSelect.d.ts +1 -0
  69. package/dist/shared-ui/src/components/PieChart/PieChart.d.ts +1 -0
  70. package/dist/shared-ui/src/components/Progress/Progress.d.ts +1 -0
  71. package/dist/shared-ui/src/components/Progress/ProgressView.d.ts +1 -0
  72. package/dist/shared-ui/src/components/ScatterChart/ScatterChart.d.ts +1 -0
  73. package/dist/shared-ui/src/components/SingleStat/SingleStat.d.ts +1 -0
  74. package/dist/shared-ui/src/components/Studio/AdminTools/AdminTools.d.ts +2 -0
  75. package/dist/shared-ui/src/components/Studio/Studio.d.ts +1 -0
  76. package/dist/shared-ui/src/components/Studio/StudioApp/Cell.d.ts +1 -0
  77. package/dist/shared-ui/src/components/Studio/StudioApp/ComponentOptions.d.ts +1 -0
  78. package/dist/shared-ui/src/components/Studio/StudioApp.d.ts +1 -0
  79. package/dist/shared-ui/src/components/Studio/StudioContexts.d.ts +2 -1
  80. package/dist/shared-ui/src/components/StylePropsEditor.d.ts +1 -0
  81. package/dist/shared-ui/src/components/Table/PrefixModal.d.ts +1 -0
  82. package/dist/shared-ui/src/components/ViewHeader/ViewHeader.d.ts +1 -0
  83. package/dist/shared-ui/src/contexts/DashboardBehaviour/context.d.ts +4 -3
  84. package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +3 -0
  85. package/dist/shared-ui/src/headlessui/components/dialog/dialog.d.ts +10 -10
  86. package/dist/shared-ui/src/headlessui/components/disclosure/disclosure.d.ts +3 -3
  87. package/dist/shared-ui/src/headlessui/components/focus-trap/focus-trap.d.ts +1 -1
  88. package/dist/shared-ui/src/headlessui/components/label/label.d.ts +1 -1
  89. package/dist/shared-ui/src/headlessui/components/popover/popover.d.ts +10 -10
  90. package/dist/shared-ui/src/headlessui/components/portal/portal.d.ts +1 -1
  91. package/dist/shared-ui/src/headlessui/components/switch/switch.d.ts +15 -15
  92. package/dist/shared-ui/src/headlessui/components/tabs/tabs.d.ts +9 -9
  93. package/dist/shared-ui/src/headlessui/hooks/use-id.d.ts +1 -2
  94. package/dist/shared-ui/src/headlessui/internal/focus-sentinel.d.ts +1 -0
  95. package/dist/shared-ui/src/headlessui/internal/hidden.d.ts +1 -1
  96. package/dist/shared-ui/src/index.d.ts +1 -0
  97. package/dist/shared-ui/src/library/Accordion.d.ts +1 -0
  98. package/dist/shared-ui/src/library/Button/index.d.ts +1 -0
  99. package/dist/shared-ui/src/library/ComboBox.d.ts +1 -0
  100. package/dist/shared-ui/src/library/DataPanel/AxesInput.d.ts +1 -0
  101. package/dist/shared-ui/src/library/DataPanel/Comparison/DeltaTimeTruncListViewOptions.d.ts +1 -0
  102. package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/PercentageModal.d.ts +1 -0
  103. package/dist/shared-ui/src/library/DataPanel/CustomMetricsInput.d.ts +1 -0
  104. package/dist/shared-ui/src/library/DataPanel/DimensionInput.d.ts +1 -0
  105. package/dist/shared-ui/src/library/DataPanel/FieldCollectorInput.d.ts +1 -0
  106. package/dist/shared-ui/src/library/DataPanel/FieldsInput.d.ts +1 -0
  107. package/dist/shared-ui/src/library/DataPanel/FilterInput/AttributesToFields.d.ts +3 -3
  108. package/dist/shared-ui/src/library/DataPanel/FilterInput/FilterInputForm.d.ts +1 -0
  109. package/dist/shared-ui/src/library/DataPanel/FilterInput/IndividualFilter.d.ts +1 -0
  110. package/dist/shared-ui/src/library/DataPanel/FilterInput/attributesToFieldsFuncs.d.ts +3 -0
  111. package/dist/shared-ui/src/library/DataPanel/FilterInput/queryFilterToWipFilter.d.ts +2 -1
  112. package/dist/shared-ui/src/library/DataPanel/FilterInput/useFilterInputForm.d.ts +2 -1
  113. package/dist/shared-ui/src/library/DataPanel/FilterInput.d.ts +1 -0
  114. package/dist/shared-ui/src/library/DataPanel/MeasuresInput.d.ts +1 -0
  115. package/dist/shared-ui/src/library/DataPanel/QueryOpInput.d.ts +1 -0
  116. package/dist/shared-ui/src/library/DataPanel/SelectDataSet.d.ts +1 -0
  117. package/dist/shared-ui/src/library/DataPanel/SortInput.d.ts +1 -0
  118. package/dist/shared-ui/src/library/DataPanel/TimeDimensionInput.d.ts +1 -0
  119. package/dist/shared-ui/src/library/DataPanel/sections/AdvancedFilterSection.d.ts +1 -0
  120. package/dist/shared-ui/src/library/DataPanel/sections/ComboChartCompareSection.d.ts +1 -0
  121. package/dist/shared-ui/src/library/DataPanel/sections/ComboChartMetricInputSection.d.ts +1 -0
  122. package/dist/shared-ui/src/library/DataPanel/sections/CustomMetricsSection.d.ts +1 -0
  123. package/dist/shared-ui/src/library/DataPanel/sections/DataSetSection.d.ts +1 -0
  124. package/dist/shared-ui/src/library/DataPanel/sections/DrilldownSection.d.ts +1 -0
  125. package/dist/shared-ui/src/library/DataPanel/sections/FieldCollectorSection.d.ts +1 -0
  126. package/dist/shared-ui/src/library/DataPanel/sections/FieldsInputSection.d.ts +1 -0
  127. package/dist/shared-ui/src/library/DataPanel/sections/LabelledMetricSection.d.ts +1 -0
  128. package/dist/shared-ui/src/library/DataPanel/sections/LimitSection.d.ts +1 -0
  129. package/dist/shared-ui/src/library/DataPanel/sections/PaginationSection.d.ts +1 -0
  130. package/dist/shared-ui/src/library/DataPanel/sections/SortSection.d.ts +1 -0
  131. package/dist/shared-ui/src/library/DataPanel/sections/ViewsSection.d.ts +1 -0
  132. package/dist/shared-ui/src/library/DisplayStatusReport.d.ts +1 -0
  133. package/dist/shared-ui/src/library/Editor/View.d.ts +1 -0
  134. package/dist/shared-ui/src/library/Editor.d.ts +1 -0
  135. package/dist/shared-ui/src/library/Library/ComponentInLibrary.d.ts +1 -0
  136. package/dist/shared-ui/src/library/Library/ViewsInLibrary.d.ts +1 -0
  137. package/dist/shared-ui/src/library/OverridesDeveloperInfoModal.d.ts +1 -0
  138. package/dist/shared-ui/src/library/PanelInput/NumberInput.d.ts +1 -0
  139. package/dist/shared-ui/src/library/SetupNotice.d.ts +1 -0
  140. package/dist/shared-ui/src/library/SetupReportModal.d.ts +1 -0
  141. package/dist/shared-ui/src/library/Stepper.d.ts +1 -0
  142. package/dist/shared-ui/src/library/StepperIcons.d.ts +1 -0
  143. package/dist/shared-ui/src/library/StylePanel/BooleanInput.d.ts +1 -0
  144. package/dist/shared-ui/src/library/StylePanel/ColourInput.d.ts +1 -0
  145. package/dist/shared-ui/src/library/StylePanel/FontFamilyInput.d.ts +1 -0
  146. package/dist/shared-ui/src/library/StylePanel/FormatSelectInput.d.ts +1 -0
  147. package/dist/shared-ui/src/library/StylePanel/TextInput.d.ts +1 -0
  148. package/dist/shared-ui/src/library/effectHooks/useHeight.d.ts +1 -1
  149. package/dist/shared-ui/src/library/effectHooks/useWidth.d.ts +1 -1
  150. package/dist/shared-ui/src/types.d.ts +11 -6
  151. package/package.json +3 -7
@@ -1,7 +1,9 @@
1
1
  import { SupportedAggregates } from './types';
2
+ import { DataType } from '../Field/types';
2
3
  declare const vizzlyManagedAggregates: SupportedAggregates;
3
4
  export declare const supportedAggregates: (keys?: string[] | undefined) => SupportedAggregates;
4
5
  export declare const isSupportedAggregateFunction: (supportedAggregateFunctions: SupportedAggregates, proposedFunction: string) => boolean;
5
6
  export declare const isSupportedAggregate: (value: string | undefined, supportedAggregates: SupportedAggregates) => boolean;
6
7
  export declare const getPublicName: (id: keyof typeof vizzlyManagedAggregates) => string;
8
+ export declare const hasValidDataType: (fieldDefinitions: SupportedAggregates, fieldName: string, dataType: DataType) => boolean;
7
9
  export {};
@@ -0,0 +1,2 @@
1
+ import { Component } from '../Component/types';
2
+ export declare function validateLabelFormat(labelFormatFunc?: (options?: Component.LabelFormatOptions) => string | undefined): (options?: Component.LabelFormatOptions | undefined) => string | undefined;
@@ -288,6 +288,14 @@ export declare namespace Component {
288
288
  };
289
289
  }
290
290
  export type OnViewClick = TableOnViewClick | ChartOnViewClick;
291
+ export type LabelFormatOptions = {
292
+ fieldId: string;
293
+ func: string;
294
+ type: ComponentType;
295
+ defaultLabel: string;
296
+ viewId: string;
297
+ values: Array<string>;
298
+ };
291
299
  export type Parameters = {
292
300
  measure?: ParameterMeasure;
293
301
  group?: ParameterGroup;
@@ -8,7 +8,9 @@ import { QueryEngineConfig } from '../../QueryEngineConfig/types';
8
8
  export declare function postUpdateDashboard(dashboardStorageStrategy: DashboardStorageStrategy, vizzlyAPI: ReturnType<typeof api>, updateParams: {
9
9
  dashboardSessionToken: string;
10
10
  definition?: Dashboard.SaveableDashboardDefinition;
11
+ /** @deprecated - use `metadata` instead */
11
12
  meta?: any;
13
+ metadata?: any;
12
14
  deleted?: boolean;
13
15
  }): Promise<UnEncryptedDashboardUpdateResponse>;
14
16
  export declare function updateDashboardFromUpdateResponse(updatedDashboardResponse: UnEncryptedDashboardUpdateResponse, dataSets: DataSet[], dashboards: DashboardType[], params: Omit<UpdateDashboardParams, 'dashboardSessionToken'>, queryEngineConfig: QueryEngineConfig | undefined): {
@@ -5,8 +5,10 @@ export declare const setupLogger: (newLogLevel: LogLevel, onLogLevelChange?: ((n
5
5
  logError: (...message: any) => void;
6
6
  logInfo: (...message: any) => void;
7
7
  logWarning: (...message: any) => void;
8
+ logProperties: (...message: any) => void;
8
9
  };
9
10
  export declare const logDebug: (...message: any) => void;
10
11
  export declare const logInfo: (...message: any) => void;
12
+ export declare const logProperties: (...message: any) => void;
11
13
  export declare const logWarning: (...message: any) => void;
12
14
  export declare const logError: (...message: any) => void;
@@ -1 +1 @@
1
- export declare type LogLevel = 'info' | 'debug' | 'warning' | 'error';
1
+ export declare type LogLevel = 'info' | 'debug' | 'warning' | 'error' | 'properties';
@@ -12,5 +12,6 @@ export declare const snowflakeQuerySchema: Joi.AlternativesSchema<unknown>;
12
12
  export declare const mariadbQuerySchema: Joi.AlternativesSchema<unknown>;
13
13
  export declare const mysqlQuerySchema: Joi.AlternativesSchema<unknown>;
14
14
  export declare const bigqueryQuerySchema: Joi.AlternativesSchema<unknown>;
15
+ export declare const redshiftSchema: Joi.AlternativesSchema<unknown>;
15
16
  export declare const validate: (queries: Array<unknown>, queryEngineConfig: QueryEngineConfig, joiOptions: JoiOptions) => Array<Query>;
16
17
  export {};
@@ -0,0 +1,2 @@
1
+ import { QueryEngineConfig } from './types';
2
+ export declare const queryEngineConfig: () => QueryEngineConfig;
@@ -308,11 +308,13 @@ export declare namespace VizzlyTheming {
308
308
  color?: CSSProperties['fill'];
309
309
  fontWeight?: CSSProperties['fontWeight'];
310
310
  fontSize?: CSSProperties['fontSize'];
311
+ fontFamily?: CSSProperties['fontFamily'];
311
312
  };
312
313
  type ChartAxisTitle = {
313
314
  color?: CSSProperties['fill'];
314
315
  fontWeight?: CSSProperties['fontWeight'];
315
316
  fontSize?: CSSProperties['fontSize'];
317
+ fontFamily?: CSSProperties['fontFamily'];
316
318
  };
317
319
  type ChartGrid = {
318
320
  stroke: CSSProperties['stroke'];
@@ -1675,6 +1675,13 @@ export declare type VizzlyTranslations = {
1675
1675
  * String containing the translation.
1676
1676
  */
1677
1677
  add_prefix: string;
1678
+ /**
1679
+ * @default 'Goals need to be set'
1680
+ *
1681
+ * @returns
1682
+ * String containing the translation.
1683
+ */
1684
+ 'progress.goals_need to be set': string;
1678
1685
  /**
1679
1686
  * @default 'Linear'
1680
1687
  *
@@ -3,6 +3,7 @@ export declare const ALLOWED_ID_REGEX: RegExp;
3
3
  export declare const ID_REGEX_ERROR_MESSAGE = "IDs must only use alpha numeric characters and _";
4
4
  export declare const bigQuerySchema: Joi.ObjectSchema<any>;
5
5
  export declare const postgresSchema: Joi.ObjectSchema<any>;
6
+ export declare const redshiftSchema: Joi.ObjectSchema<any>;
6
7
  export declare const mariadbSchema: Joi.ObjectSchema<any>;
7
8
  export declare const mySQLSchema: Joi.ObjectSchema<any>;
8
9
  export declare const snowflakeSchema: Joi.ObjectSchema<any>;
@@ -8,7 +8,9 @@ export declare type Response = {
8
8
  export declare type CreateDashboardParams = {
9
9
  dashboardAccessToken: string;
10
10
  definition: SaveableDashboardDefinition;
11
- meta: any;
11
+ /** @deprecated - use `metadata` instead */
12
+ meta?: any;
13
+ metadata?: any;
12
14
  parentDashboardId: string | null;
13
15
  permissions: Array<any>;
14
16
  };
@@ -8,7 +8,9 @@ export declare type Response = {
8
8
  export declare type CreateDashboardParams = {
9
9
  dashboardAccessToken: string;
10
10
  definition: SaveableDashboardDefinition;
11
- meta: any;
11
+ /** @deprecated - use `metadata` instead */
12
+ meta?: any;
13
+ metadata?: any;
12
14
  parentDashboardId: string | null;
13
15
  permissions: Array<any>;
14
16
  };
@@ -11,7 +11,9 @@ declare type UpdateDashboardResponse = EncryptedDashboardUpdateResponse | UnEncr
11
11
  export declare type UpdateDashboardParams = {
12
12
  dashboardSessionToken: string;
13
13
  definition?: SaveableDashboardDefinition;
14
+ /** @deprecated - use `metadata` instead */
14
15
  meta?: any;
16
+ metadata?: any;
15
17
  deleted?: boolean;
16
18
  };
17
19
  export declare const updateDashboard: (httpClient: HttpClient) => (params: UpdateDashboardParams) => Promise<UpdateDashboardResponse>;
@@ -7,5 +7,5 @@ import { TableRepresentation } from '../../../../shared-logic/src/DataTable/type
7
7
  export declare type DownloadType = 'data-set-download-type' | 'view-download-type';
8
8
  declare type OnCSVGenerated = (csvContent: string) => void;
9
9
  export declare const _toCSV: (tableRepresentation: TableRepresentation | null | undefined, onCSVGenerated: OnCSVGenerated) => void;
10
- export declare const download: (downloadType: DownloadType, dataSet: DataSetType, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, maxCSVDownloadLimit: number, attributes: Component.Attributes, dateTimeFormatOptions: DashboardBehaviour['dateTimeFormatOptions'], numberFormatOptions: DashboardBehaviour['numberFormatOptions'], queryEngineConfig: DashboardBehaviour['queryEngineConfig'], populatedFilterConfig: FilterConfig, onCSVGenerated?: (csvContent: string) => void) => Promise<void>;
10
+ export declare const download: (downloadType: DownloadType, dataSet: DataSetType, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, maxCSVDownloadLimit: number, attributes: Component.Attributes, dateTimeFormatOptions: DashboardBehaviour['dateTimeFormatOptions'], numberFormatOptions: DashboardBehaviour['numberFormatOptions'], queryEngineConfig: DashboardBehaviour['queryEngineConfig'], populatedFilterConfig: FilterConfig, onCSVGenerated: ((csvContent: string) => void) | undefined, labelFormat: DashboardBehaviour['labelFormat']) => Promise<void>;
11
11
  export {};
@@ -6,5 +6,5 @@ export declare const H1: number;
6
6
  export declare const H2: number;
7
7
  export declare const H3: number;
8
8
  export declare const H4: number;
9
- declare const appStyles: import("@emotion/react").SerializedStyles;
9
+ declare const appStyles: import("@emotion/utils").SerializedStyles;
10
10
  export default appStyles;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VizzlyComponents, VizzlyTheming } from '../../types';
2
3
  import { CustomThemeClassNamespaces } from '../classNames';
3
4
  declare type Props = VizzlyComponents.ComponentOverrides.Props.Button & {
@@ -1,8 +1,14 @@
1
+ /// <reference types="react" />
1
2
  import { TextOverride } from '../../../../shared-logic/src/Translations/types';
2
3
  import { DateRangeFormat } from './Input';
3
4
  import { TimeRangeFormat } from './TimePickerCore';
4
5
  import { VizzlyComponents } from '../../types';
6
+ import moment from 'moment';
5
7
  export declare type DatePickerChangeProps = VizzlyComponents.ComponentOverrides.Props.DateTimeRangeInputChangeProps;
8
+ export declare const DEFAULTS_TIMES: {
9
+ Start: string;
10
+ End: string;
11
+ };
6
12
  declare type DatePickerProps = {
7
13
  id?: string | number;
8
14
  dynamicWidth?: boolean;
@@ -12,3 +18,4 @@ declare type DatePickerProps = {
12
18
  } & VizzlyComponents.ComponentOverrides.Props.DateTimeRangeInput;
13
19
  declare const _default: (props: DatePickerProps) => JSX.Element;
14
20
  export default _default;
21
+ export declare function buildDateTime(startTime: moment.Moment | null | undefined, startDate: Date, endTime: moment.Moment | null | undefined, endDate: Date): DatePickerChangeProps;
@@ -15,7 +15,3 @@ export declare const DateTimeFilter: FunctionComponent<{
15
15
  textOverride?: DashboardBehaviour['textOverride'];
16
16
  fixedWidth?: number;
17
17
  }>;
18
- export declare function buildDateTime(startTime: string | null | undefined, startDate: Date, endTime: string | null | undefined, endDate: Date): string | {
19
- startDate: Date;
20
- endDate: Date;
21
- } | null;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { VizzlyComponents } from '../types';
2
3
  export declare const DateTimeInput: (props: VizzlyComponents.ComponentOverrides.Props.DateTimeInput) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const Illustration: (props: {
2
3
  height?: number;
3
4
  color: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const Notice: (props: {
2
3
  success: boolean;
3
4
  title: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const List: import("react").FunctionComponent<{
3
3
  children: import("react").ReactNode;
4
- as?: "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "center" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "menuitem" | "legend" | "desc" | "title" | "select" | "input" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "ins" | "kbd" | "keygen" | "label" | "li" | "link" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "slot" | "script" | "section" | "source" | "span" | "strong" | "summary" | "sup" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | undefined;
4
+ as?: "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "menuitem" | "legend" | "desc" | "title" | "select" | "input" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "ins" | "kbd" | "keygen" | "label" | "li" | "link" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "slot" | "script" | "section" | "source" | "span" | "strong" | "summary" | "sup" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | undefined;
5
5
  paddingRight?: string | number | (string & {}) | undefined;
6
6
  }> & {
7
7
  Cell: import("react").ForwardRefExoticComponent<{
@@ -25,6 +25,6 @@ export declare const List: import("react").FunctionComponent<{
25
25
  Item: any;
26
26
  Heading: import("react").FunctionComponent<{
27
27
  children: import("react").ReactNode;
28
- as?: "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "center" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "menuitem" | "legend" | "desc" | "title" | "select" | "input" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "ins" | "kbd" | "keygen" | "label" | "li" | "link" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "slot" | "script" | "section" | "source" | "span" | "strong" | "summary" | "sup" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | undefined;
28
+ as?: "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "menuitem" | "legend" | "desc" | "title" | "select" | "input" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "ins" | "kbd" | "keygen" | "label" | "li" | "link" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "slot" | "script" | "section" | "source" | "span" | "strong" | "summary" | "sup" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | undefined;
29
29
  }>;
30
30
  };
@@ -14,7 +14,7 @@ export declare const Section: React.FunctionComponent<RawSectionProps> & {
14
14
  Panel: React.FunctionComponent<{
15
15
  title?: string | ReactNode;
16
16
  children: ReactNode;
17
- as?: "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "center" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "menuitem" | "legend" | "desc" | "title" | "select" | "input" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "ins" | "kbd" | "keygen" | "label" | "li" | "link" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "slot" | "script" | "section" | "source" | "span" | "strong" | "summary" | "sup" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | undefined;
17
+ as?: "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "menuitem" | "legend" | "desc" | "title" | "select" | "input" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "ins" | "kbd" | "keygen" | "label" | "li" | "link" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "slot" | "script" | "section" | "source" | "span" | "strong" | "summary" | "sup" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | undefined;
18
18
  }>;
19
19
  Container: React.FunctionComponent<{
20
20
  children: ReactNode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare type SelectOption = {
2
3
  label: string | number | Function;
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CustomThemeClassNamespaces } from '../classNames';
2
3
  import { VizzlyComponents } from '../../types';
3
4
  import { SelectOption } from '../Select/Select.types';
@@ -7,5 +7,6 @@ export interface ViewProps extends ViewStyleProps {
7
7
  className?: string;
8
8
  as?: keyof JSX.IntrinsicElements;
9
9
  role?: React.AriaRole;
10
+ 'data-testid'?: string;
10
11
  }
11
12
  export declare const View: FunctionComponent<ViewProps>;
@@ -0,0 +1 @@
1
+ export declare const titleFormat: (field?: string | undefined, aggregate?: string | undefined, values?: (string | number | string[] | null)[]) => string;
@@ -10,7 +10,7 @@ declare type StyleConfig = CSSObject & {
10
10
  };
11
11
  export declare const _buildStyleOverridesCSSProperties: <T extends StyleConfig>(styleConfig: T) => (variantOptions?: {
12
12
  [key: string]: any;
13
- } | undefined) => Pick<T, Exclude<keyof T, string>>;
13
+ } | undefined) => any;
14
14
  export declare const buildStyleOverrides: <T extends StyleConfig>(styleConfig: T) => {
15
15
  (variantOptions: Object): string;
16
16
  toString: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AdditionalFilter as AdditionalFilterType } from '../../../../shared-logic/src/AdditionalFilter/types';
2
3
  import { DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
3
4
  import { DataSet } from '../../../../shared-logic/src/DataSet/types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SingleSelectFilter as SingleSelectFilterType } from '../../../../../shared-logic/src/AdditionalFilter/types';
2
3
  import { DataSet } from '../../../../../shared-logic/src/DataSet/types';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DateAndTimeFilter, DateFilter as DateFilterType } from '../../../../../shared-logic/src/AdditionalFilter/types';
2
3
  import { DashboardBehaviour } from '../../../contexts/DashboardBehaviour/types';
3
4
  import { DataSet } from '../../../../../shared-logic/src/DataSet/types';
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { AreaChartProps } from './types';
2
3
  export declare const AreaChart: (props: AreaChartProps) => JSX.Element;
@@ -1,9 +1,9 @@
1
1
  import { DataSet as DataSetType } from '../../../shared-logic/src/DataSet/types';
2
- import { Component as ActualComponent, FormatType } from '../../../shared-logic/src/Component/types';
2
+ import { Component as ActualComponent, ComponentType, FormatType } from '../../../shared-logic/src/Component/types';
3
3
  import { QueryAttributes as QueryAttributesType } from '../../../shared-logic/src/QueryAttributes/types';
4
4
  import { Result as ResultType } from '../../../shared-logic/src/Result/types';
5
5
  import { QueryEngineConfig } from '../../../shared-logic/src/QueryEngineConfig/types';
6
- import { DashboardBehaviour } from '../contexts/DashboardBehaviour/types';
6
+ import { DashboardBehaviour, LabelFormat } from '../contexts/DashboardBehaviour/types';
7
7
  import { ConditionalFormattingOption } from '../../../charts/src/Legend/Legend';
8
8
  import * as Dimension from '../../../shared-logic/src/Dimension';
9
9
  import { ConditionalFormattingBoundary } from './DataTable/buildConditionalFormattingBoundaries';
@@ -24,7 +24,7 @@ export declare const getExplanationsOfConditionFormattingRulesThatApplyToSeries:
24
24
  export declare const applyConditionFormattingRules: (dimensions: QueryAttributesType.Dimension[], conditionalFormattingRules: ConditionalFormattingBoundary[], datum: Datum | undefined, key: string, dataSet: DataSetType) => ActualComponent.ConditionalFormatting.DisplayRule | undefined;
25
25
  export declare const formatXAxisLabel: (timeDimension: QueryAttributesType.TimeDimension | null, supportedTimeTruncFunctions: QueryEngineConfig['supportedTimeTruncFunctions'], axisLabelConfig: AxisLabelConfig) => (value: any) => string;
26
26
  export declare const formatYAxisLabel: (textOverride: TextOverride, axisLabelConfig?: AxisLabelConfig | undefined) => (value: any) => string;
27
- export declare const formatSeriesName: (result: ResultType | null | undefined, textOverride: TextOverride) => (key: string) => string | undefined;
27
+ export declare const formatSeriesName: (result: ResultType | null | undefined, textOverride: TextOverride, type: ComponentType, id: string, labelFormat: LabelFormat) => (key: string) => string | undefined;
28
28
  export declare const convertValueToFormat: (value: any, numberFormatOptions?: {
29
29
  [id: string]: import("../contexts/DashboardBehaviour/types").NumberFormatter;
30
30
  } | undefined, format?: string | null | undefined) => any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VizzlyComponents } from '../../types';
2
3
  import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
3
4
  import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VizzlyComponents } from '../types';
2
3
  import { Component as ComponentType } from '../../../shared-logic/src/Component/types';
3
4
  import { Result } from '../../../shared-logic/src/Result/types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Component } from '../../../../shared-logic/src/Component/types';
2
3
  declare type Props = {
3
4
  component: Component<Component.CustomComponentAttributes>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VizzlyComponents } from '../../types';
2
3
  import { DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
3
4
  import { SelectViewProps } from '../../library/DataPanel/SelectView';
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const DataPropsEditor: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VizzlyComponents } from '../../types';
2
3
  import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
3
4
  import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import 'twin.macro';
2
3
  import { Component } from '../../../../shared-logic/src/Component/types';
3
4
  import { TableColumnTypes } from './TableHeader';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
2
3
  import { DataTableViewProps } from './DataTableView';
3
4
  import { QueryAttributes } from '../../../../shared-logic/src/QueryAttributes/types';
@@ -5,7 +5,7 @@ import { DataTableViewProps } from './DataTableView';
5
5
  import { DataType } from '../../../../shared-logic/src/Field/types';
6
6
  import { QueryAttributes } from '../../../../shared-logic/src/QueryAttributes/types';
7
7
  export * from './headerFormatting';
8
- export declare const buildTableRepresentation: (type: string, result: ResultType | null | undefined, exportNames: DataTableViewProps['exportNames'] | undefined, prefixes: DataTableViewProps['prefixes'] | undefined, dateTimeFormat: DataTableViewProps['dateTimeFormat'] | undefined, dateTimeFormatOptions: DataTableViewProps['dateTimeFormatOptions'], numberFormat: DataTableViewProps['numberFormat'] | undefined, numberFormatOptions: DataTableViewProps['numberFormatOptions'], supportedAggregates: DashboardBehaviour['queryEngineConfig']['supportedAggregates'], supportedTimeTruncFunctions: DashboardBehaviour['queryEngineConfig']['supportedTimeTruncFunctions'], nullReplacement?: string | undefined, measure?: QueryAttributes.Measure[] | undefined, xMeasure?: QueryAttributes.Measure | null | undefined, yMeasure?: QueryAttributes.Measure | undefined, dimension?: QueryAttributes.Dimension[] | undefined) => TableRepresentation | null;
8
+ export declare const buildTableRepresentation: (type: string, result: ResultType | null | undefined, exportNames: DataTableViewProps['exportNames'] | undefined, prefixes: DataTableViewProps['prefixes'] | undefined, dateTimeFormat: DataTableViewProps['dateTimeFormat'] | undefined, dateTimeFormatOptions: DataTableViewProps['dateTimeFormatOptions'], numberFormat: DataTableViewProps['numberFormat'] | undefined, numberFormatOptions: DataTableViewProps['numberFormatOptions'], supportedAggregates: DashboardBehaviour['queryEngineConfig']['supportedAggregates'], supportedTimeTruncFunctions: DashboardBehaviour['queryEngineConfig']['supportedTimeTruncFunctions'], labelFormat: DashboardBehaviour['labelFormat'], nullReplacement?: string | undefined, measure?: QueryAttributes.Measure[] | undefined, xMeasure?: QueryAttributes.Measure | null | undefined, yMeasure?: QueryAttributes.Measure | undefined, dimension?: QueryAttributes.Dimension[] | undefined, viewId?: string | undefined) => TableRepresentation | null;
9
9
  export declare const formatTableContent: (fields: Array<{
10
10
  id: string;
11
11
  dataType: DataType;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import 'twin.macro';
2
3
  export declare const GlobalFilters: () => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GlobalFilterViewProps } from './types';
2
3
  declare const GlobalFiltersView: (props: GlobalFilterViewProps) => JSX.Element;
3
4
  export default GlobalFiltersView;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import 'twin.macro';
2
3
  export declare const AreaChart: (props: any) => JSX.Element;
3
4
  export declare const PieChart: (props: any) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { LineChartProps } from './types';
2
3
  export declare const LineChart: (props: LineChartProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VizzlyComponents } from '../../../types';
2
3
  import 'twin.macro';
3
4
  import { DateFilter } from '../../../../../shared-logic/src/AdditionalFilter/types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VizzlyComponents } from '../../../types';
2
3
  import 'twin.macro';
3
4
  import { SingleSelectFilter } from '../../../../../shared-logic/src/AdditionalFilter/types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AdditionalFilter as AdditionalFilterType } from '../../../../shared-logic/src/AdditionalFilter/types';
2
3
  import { DataSet } from '../../../../shared-logic/src/DataSet/types';
3
4
  declare const LocalFilterView: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Component } from '../../../../shared-logic/src/Component/types';
2
3
  import { VizzlyComponents } from '../../types';
3
4
  import { Result } from '../../../../shared-logic/src/Result/types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MapPosition } from '../../../../charts/src';
2
3
  import { Component } from '../../../../shared-logic/src/Component/types';
3
4
  import { VizzlyComponents } from '../../types';
@@ -1,14 +1,17 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { Component } from '../../../../shared-logic/src/Component/types';
2
+ import { Component, ComponentType } from '../../../../shared-logic/src/Component/types';
3
3
  import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
4
4
  import { SelectOption } from '../../base/Select/Select.types';
5
5
  import { SupportedAggregates } from '../../../../shared-logic/src/Aggregate/types';
6
6
  import { QueryAttributes } from '../../../../shared-logic/src/QueryAttributes/types';
7
+ import { LabelFormat } from '../../contexts/DashboardBehaviour/types';
7
8
  export declare const ChangeViewMeasures: FunctionComponent<{
8
9
  measures?: Component.ParameterMeasure;
9
10
  dataSet: DataSetType;
10
11
  activeMeasures?: QueryAttributes.Measure[];
11
12
  setMeasure: (newValue: QueryAttributes.Measure, currentValue: QueryAttributes.Measure) => void;
13
+ componentType: ComponentType;
14
+ viewId: string;
12
15
  }>;
13
16
  export declare function getCurrentSelection(options: SelectOption[], activeMeasures?: QueryAttributes.Measure[]): QueryAttributes.Measure;
14
- export declare function buildOptions(measure: string, supportedAggregates: SupportedAggregates, dataSet: DataSetType, measures: Component.ParameterMeasure): SelectOption[];
17
+ export declare function buildOptions(measure: string, supportedAggregates: SupportedAggregates, dataSet: DataSetType, measures: Component.ParameterMeasure, labelFormat: LabelFormat, componentType: ComponentType, viewId: string): SelectOption[];
@@ -6,6 +6,7 @@ import { UpdatedMetrics } from '../../../../shared-logic/src/Parameters';
6
6
  export declare const ParametersView: FunctionComponent<{
7
7
  parameters?: Component.Parameters;
8
8
  componentType: ComponentType;
9
+ viewId: string;
9
10
  dataSet: DataSetType;
10
11
  activeMeasures?: QueryAttributes.Measure[];
11
12
  activeDimension?: QueryAttributes.Dimension[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSet } from '../../../../shared-logic/src/DataSet/types';
2
3
  export declare function MetricsSelect(props: {
3
4
  testId?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VizzlyComponents } from '../../types';
2
3
  import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
3
4
  import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VizzlyComponents } from '../../types';
2
3
  import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
3
4
  import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VizzlyComponents } from '../../types';
2
3
  import { Component } from '../../../../shared-logic/src/Component/types';
3
4
  import { Result as ResultType } from '../../../../shared-logic/src/Result/types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VizzlyComponents } from '../../types';
2
3
  import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
3
4
  import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VizzlyComponents } from '../../types';
2
3
  import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
3
4
  import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
@@ -1,5 +1,7 @@
1
+ import * as Dashboard from '../../../../../shared-logic/src/Dashboard';
1
2
  import { FunctionComponent } from 'react';
2
3
  import 'twin.macro';
4
+ export declare const watchForChangesToSave: (saveableDashboard: Dashboard.SaveableDashboardDefinition) => string;
3
5
  export declare const AdminTools: FunctionComponent<{
4
6
  isProgrammaticParent: boolean;
5
7
  }>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { StudioProps } from './StudioContexts';
2
3
  export declare const Studio: (props: StudioProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VizzlyComponents } from '../../../types';
2
3
  import { Component as ComponentType } from '../../../../../shared-logic/src/Component/types';
3
4
  import { Result } from '../../../../../shared-logic/src/Result/types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import 'twin.macro';
2
3
  import { VizzlyComponents } from '../../../types';
3
4
  import { Component } from '../../../../../shared-logic/src/Component/types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import 'twin.macro';
2
3
  declare const StudioApp: () => JSX.Element;
3
4
  export default StudioApp;