@vizzly/dashboard 0.12.13 → 0.12.14

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/charts/src/PieChart/CorePieChart.d.ts +4 -3
  2. package/dist/charts/src/PieChart/PieChart.d.ts +6 -1
  3. package/dist/charts/src/ScatterChart/ScatterChart.d.ts +1 -1
  4. package/dist/charts/src/XYChart/components/Threshold.d.ts +1 -0
  5. package/dist/charts/src/XYChart/components/threshold.utils.d.ts +2 -2
  6. package/dist/index.js +1 -1
  7. package/dist/services/src/schemaValidations/dashboard.d.ts +2 -0
  8. package/dist/shared-logic/src/AdditionalFilter/AdditionalFilter.d.ts +7 -4
  9. package/dist/shared-logic/src/AdditionalFilter/FilterConfig.d.ts +4 -0
  10. package/dist/shared-logic/src/AdditionalFilter/constants.d.ts +3 -0
  11. package/dist/shared-logic/src/AdditionalFilter/filterHelpers.d.ts +1 -0
  12. package/dist/shared-logic/src/AdditionalFilter/schema.d.ts +2 -0
  13. package/dist/shared-logic/src/AdditionalFilter/toQueryAttributesFilter.d.ts +5 -0
  14. package/dist/shared-logic/src/AdditionalFilter/types.d.ts +5 -0
  15. package/dist/shared-logic/src/Component/types.d.ts +2 -1
  16. package/dist/shared-logic/src/Dashboard/Dashboard.d.ts +6 -1
  17. package/dist/shared-logic/src/Dashboard/types.d.ts +1 -0
  18. package/dist/shared-logic/src/DateTimeField/DateTimeField.d.ts +2 -0
  19. package/dist/shared-logic/src/Downloads/downloadToJSON.d.ts +4 -0
  20. package/dist/shared-logic/src/Downloads/index.d.ts +1 -0
  21. package/dist/shared-logic/src/Drilldown/schema.d.ts +3 -0
  22. package/dist/shared-logic/src/PDFGenerator/index.d.ts +1 -1
  23. package/dist/shared-logic/src/PieChart/onViewClick.d.ts +10 -0
  24. package/dist/shared-logic/src/QueryEngine/types.d.ts +1 -1
  25. package/dist/shared-logic/src/Theme/types.d.ts +12 -0
  26. package/dist/shared-ui/src/base/DateTime/DateTimeFilter.d.ts +1 -0
  27. package/dist/shared-ui/src/base/DateTime/TimePickerCore.d.ts +1 -1
  28. package/dist/shared-ui/src/base/FileUpload/FileUpload.d.ts +20 -0
  29. package/dist/shared-ui/src/base/FileUpload/index.d.ts +1 -0
  30. package/dist/shared-ui/src/base/Icons/SVGs.d.ts +13 -4
  31. package/dist/shared-ui/src/base/ListView/index.d.ts +2 -2
  32. package/dist/shared-ui/src/base/Modal/Modal.types.d.ts +1 -0
  33. package/dist/shared-ui/src/base/Modal.d.ts +4 -2
  34. package/dist/shared-ui/src/base/Panel/Panel.d.ts +1 -1
  35. package/dist/shared-ui/src/base/Section/Section.d.ts +1 -1
  36. package/dist/shared-ui/src/base/Toolbar/Toolbar.d.ts +0 -32
  37. package/dist/shared-ui/src/components/AdditionalFilter/AdvancedPicker/AdvancedDisplayValues.d.ts +4 -0
  38. package/dist/shared-ui/src/components/AdditionalFilter/AdvancedPicker/AdvancedSelectFilter.d.ts +10 -0
  39. package/dist/shared-ui/src/components/AdditionalFilter/AdvancedPicker/advancedFilters.d.ts +2 -0
  40. package/dist/shared-ui/src/components/AdditionalFilter/DateFilter/index.d.ts +5 -5
  41. package/dist/shared-ui/src/components/AdditionalFilter/DateFilter/index.func.d.ts +6 -0
  42. package/dist/shared-ui/src/components/AdditionalFilter/useBuildDashboardFilter.d.ts +1 -0
  43. package/dist/shared-ui/src/components/Drilldown/useDrilldownSelection.d.ts +11 -0
  44. package/dist/shared-ui/src/components/PieChart/PieChart.d.ts +1 -0
  45. package/dist/shared-ui/src/components/PieChart/PieChartView.d.ts +6 -1
  46. package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +5 -1
  47. package/dist/shared-ui/src/headlessui/components/dialog/dialog.d.ts +6 -6
  48. package/dist/shared-ui/src/headlessui/components/popover/popover.d.ts +7 -7
  49. package/dist/shared-ui/src/headlessui/components/switch/switch.d.ts +11 -11
  50. package/dist/shared-ui/src/headlessui/components/tabs/tabs.d.ts +4 -4
  51. package/dist/shared-ui/src/library/DataPanel/DrilldownInput/DrilldownBreadcrumb.d.ts +1 -1
  52. package/dist/shared-ui/src/library/DataPanel/DrilldownInput/DrilldownInput.d.ts +2 -1
  53. package/dist/shared-ui/src/library/DataPanel/DrilldownInput/DrilldownModal.d.ts +2 -1
  54. package/dist/shared-ui/src/library/DataPanel/DrilldownInput/drilldown.func.d.ts +3 -1
  55. package/dist/shared-ui/src/types.d.ts +12 -1
  56. package/package.json +12 -12
  57. package/dist/shared-ui/src/components/AdditionalFilter/AdvancedSelectFilter.d.ts +0 -12
@@ -1,4 +1,6 @@
1
1
  import { QueryEngineConfig } from '../../../shared-logic/src/QueryEngineConfig/types';
2
2
  import { CreateDashboardParams, UpdateDashboardParams } from '..';
3
+ import { JoiOptions } from '../../../shared-logic/src/validations';
4
+ export declare const validateDashboardJoiOptions: JoiOptions;
3
5
  export declare const validateCreateDashboardParams: (params: CreateDashboardParams, queryEngineConfig: QueryEngineConfig | undefined) => void;
4
6
  export declare const validateUpdateDashboardParams: (params: UpdateDashboardParams, queryEngineConfig: QueryEngineConfig) => void;
@@ -1,18 +1,21 @@
1
1
  import { DataType } from '../Field/types';
2
- import { AdditionalFilter, TimeRangeOptions, FilterConfig, OptionalFilters, DateFilter, DateAndTimeFilter, LegacyNumericFilterValue, Field } from './types';
2
+ import { AdditionalFilter, OptionalFilters, DateFilter, DateAndTimeFilter, LegacyNumericFilterValue, Field } from './types';
3
3
  import { DataSet } from '../DataSet/types';
4
4
  import * as Filter from '../Filter';
5
5
  import { DateTimeFilterOptions } from '../DateTime/types';
6
6
  import { TextOverride } from '../Translations/types';
7
7
  import { QueryAttributes } from '../QueryAttributes/types';
8
+ import { QueryEngineConfig } from '../QueryEngineConfig/types';
8
9
  export declare const typeToString: (type: AdditionalFilter['type'], textOverride: TextOverride) => string;
9
10
  export declare const NULL_VALUE_OPT = "__vizzly_null_value_option";
10
11
  export declare const allowedDataTypesForFilter: (type: AdditionalFilter['type']) => Array<DataType>;
12
+ export declare function upcastDateTimeFilter(dumped: AdditionalFilter): import("./types").NumericFilter | import("./types").SingleSelectFilter | DateFilter | import("./types").DateTimeFilter | import("./types").MultiSelectFilter | import("./types").AdvancedFilter;
13
+ export declare function removeBrokenFiltersThenLoad(filters: AdditionalFilter[], componentInterfaceConfig: {
14
+ queryEngineConfig: QueryEngineConfig;
15
+ } | undefined): AdditionalFilter[];
11
16
  export declare const dump: (hydrated: AdditionalFilter) => AdditionalFilter;
12
17
  export declare const load: (dumped: AdditionalFilter, componentInterfaceConfig?: import("../ComponentInterface/types").ComponentInterfaceConfig | undefined) => AdditionalFilter;
13
- export declare const toQueryAttributesFilter: (dataSet: DataSet, filter: AdditionalFilter, customTimeRangeFuncs: TimeRangeOptions) => QueryAttributes.Filter[];
14
18
  export declare const toRelativeQueryAttributesFilters: (filters: DateAndTimeFilter | DateFilter, startDate?: Date | undefined) => QueryAttributes.Filter[];
15
- export declare const fromFilterConfig: (filterConfig: FilterConfig, dataSet: DataSet, timeRangeOptions: TimeRangeOptions) => QueryAttributes.Filter[];
16
19
  export declare const hasActiveFilter: (additionalFilters: AdditionalFilter[]) => boolean;
17
20
  export declare const getTitle: (additionalFilter: AdditionalFilter, dataSets: DataSet[], textOverride?: TextOverride | undefined) => string;
18
21
  export declare const requiredFiltersAreSet: (filter: AdditionalFilter | AdditionalFilter[]) => boolean;
@@ -40,5 +43,5 @@ export declare enum DateOp {
40
43
  export declare function inclusiveExclusiveCurrent(op: DateOp, filter: DateFilter | DateAndTimeFilter): string;
41
44
  export declare function getCascadeOptionsFilters(globalFilters: AdditionalFilter[], dataSets: DataSet[], dateFilterOptions: DateTimeFilterOptions, cascadeFilterSelection?: boolean): OptionalFilters | undefined;
42
45
  export declare const updateFilterForOptionalPulledFromOptions: (filter: AdditionalFilter) => AdditionalFilter;
43
- export declare const buildAdvancedFilters: (filterValue: QueryAttributes.Filter[][], field: Field, dataSetId: string) => never[] | QueryAttributes.Filter;
46
+ export declare const buildAdvancedFilters: (filterValue: QueryAttributes.Filter[][], field: Field, dataSetId: string) => QueryAttributes.Filter[];
44
47
  export declare function getFilterDataType(filter: AdditionalFilter, dataSets: DataSet[]): "string" | "number" | "boolean" | "date_time" | "string[]" | undefined;
@@ -0,0 +1,4 @@
1
+ import { FilterConfig, TimeRangeOptions } from './types';
2
+ import { QueryAttributes } from '../QueryAttributes/types';
3
+ import { DataSet } from '../DataSet/types';
4
+ export declare const fromFilterConfig: (filterConfig: FilterConfig, dataSet: DataSet, timeRangeOptions: TimeRangeOptions) => QueryAttributes.Filter[];
@@ -3,6 +3,9 @@ export declare const DATE_FILTER = "dateFilter";
3
3
  * @deprecated The "dateTimeFilter" has been deprecated. Use "dateFilter".
4
4
  */
5
5
  export declare const DATE_TIME_FILTER = "dateTimeFilter";
6
+ /**
7
+ * @deprecated The "dateAndTimeFilter" has been deprecated. Use "dateFilter" and set the option "allowTimeSelection" to true.
8
+ */
6
9
  export declare const DATE_AND_TIME_FILTER = "dateAndTimeFilter";
7
10
  export declare const SINGLE_SELECT_FILTER = "singleSelectFilter";
8
11
  /**
@@ -0,0 +1 @@
1
+ export declare const getUTCDate: (date: Date | null) => any;
@@ -1,4 +1,6 @@
1
1
  import Joi from '@vizzly/joi';
2
2
  import { QueryEngineConfig } from '../QueryEngineConfig/types';
3
+ export declare const advancedFilterSchema: (queryEngineConfig: QueryEngineConfig, shouldAlwaysHaveValue?: boolean | undefined) => Joi.Schema;
4
+ export declare const advancedFilterValueSchema: (queryEngineConfig: QueryEngineConfig, shouldAlwaysHaveValue?: boolean | undefined) => Joi.Schema;
3
5
  export declare const additionalFilterSchema: (queryEngineConfig: QueryEngineConfig, shouldAlwaysHaveValue?: boolean | undefined) => Joi.Schema;
4
6
  export declare function globalFilterSchema(queryEngineConfig: QueryEngineConfig | undefined): Joi.SchemaLike<any> | Joi.SchemaLike<any>[] | undefined;
@@ -0,0 +1,5 @@
1
+ import { DataSet } from '../DataSet/types';
2
+ import { QueryAttributes } from '../QueryAttributes/types';
3
+ import { AdditionalFilter, TimeRangeOptions } from './types';
4
+ import * as Filter from '../Filter';
5
+ export declare const toQueryAttributesFilter: (dataSet: DataSet, filter: AdditionalFilter, customTimeRangeFuncs: TimeRangeOptions) => QueryAttributes.Filter[];
@@ -17,6 +17,7 @@ declare type BaseAdditionalFilter<T extends AdditionalFilterType> = {
17
17
  /**
18
18
  * NOTE:
19
19
  * - The "dateTimeFilter" type value has been deprecated. Use "dateFilter".
20
+ * - The "dateAndTimeFilter" type value has been deprecated. Use "dateFilter".
20
21
  * - The "multiSelectFilter" type value has been deprecated. Use "advancedFilter".
21
22
  * - The "numericFilter" type value has been deprecated. Use "advancedFilter".
22
23
  */
@@ -57,7 +58,11 @@ declare type RelativeValue = {
57
58
  export declare type DateFilter = BaseAdditionalFilter<typeof FilterType.DATE_FILTER> & {
58
59
  value: FixedRangeValue | RelativeValue | RelativeRangeValue | null;
59
60
  inclusiveDate?: boolean;
61
+ allowTimeSelection?: boolean;
60
62
  };
63
+ /**
64
+ * @deprecated The "dateAndTimeFilter" has been deprecated. Use "dateFilter" and set the option "allowTimeSelection" to true.
65
+ */
61
66
  export declare type DateAndTimeFilter = BaseAdditionalFilter<typeof FilterType.DATE_AND_TIME_FILTER> & {
62
67
  value: FixedRangeValue | RelativeValue | RelativeRangeValue | null;
63
68
  inclusiveDate?: boolean;
@@ -159,6 +159,7 @@ export declare namespace Component {
159
159
  labels?: boolean;
160
160
  labelFormat: FormatType;
161
161
  parameters?: Parameters;
162
+ drilldownOptions: Array<DrilldownOptions> | undefined;
162
163
  };
163
164
  export type AreaChartAttributes = BaseAttributes & BaseQueryAttributes & {
164
165
  type: 'areaChart';
@@ -322,7 +323,7 @@ export declare namespace Component {
322
323
  };
323
324
  }
324
325
  export interface ChartOnViewClick extends BaseOnViewClick {
325
- type: 'barChart' | 'horizontalBarChart';
326
+ type: 'barChart' | 'horizontalBarChart' | 'pieChart';
326
327
  clicked: {
327
328
  grouping?: Array<ReturnedField>;
328
329
  value?: ReturnedField;
@@ -1,7 +1,7 @@
1
1
  import { Component as ComponentType } from '../Component/types';
2
2
  import { DataSet } from '../DataSet/types';
3
3
  import { CustomField } from '../CustomField/types';
4
- import { Dashboard, SaveableDashboardDefinition } from './types';
4
+ import { Dashboard, SaveableDashboardDefinition, ImportableDashboard } from './types';
5
5
  export * from './saveableDashboardDefinitionSchema';
6
6
  export * from './fromRaw';
7
7
  export declare const indexOfDataSet: (dashboard: Dashboard, dataSetId: string) => number;
@@ -9,6 +9,11 @@ export declare const getDataSet: (dashboard: Dashboard, dataSetId: string) => Da
9
9
  export declare const hasDataSet: (dashboard: Dashboard, dataSetId: string) => boolean;
10
10
  export declare const getComponentsUsingDataSet: (dashboard: Dashboard, dataSetId: string) => ComponentType[];
11
11
  export declare const toSaveableDefinition: (dashboard: Dashboard) => SaveableDashboardDefinition;
12
+ export declare const prepareDashboardForImport: (dashboardToImport: Dashboard | ImportableDashboard) => ImportableDashboard;
13
+ export declare const mergeDashboardInStateAndDashboardToImport: ({ dashboardToImport, dashboardInState, }: {
14
+ dashboardToImport: ImportableDashboard;
15
+ dashboardInState: Dashboard;
16
+ }) => Dashboard;
12
17
  export declare const setDataSets: (dashboardWithoutDataSets: Omit<Dashboard, 'dataSets'>, dataSets: DataSet[], customFields: {
13
18
  [dataSetId: string]: CustomField[];
14
19
  }) => Dashboard;
@@ -45,3 +45,4 @@ export declare type SaveableDashboardDefinition = {
45
45
  project_id?: string;
46
46
  id?: string;
47
47
  };
48
+ export declare type ImportableDashboard = Omit<Dashboard, 'id' | 'parentDashboardId' | 'webhookId' | 'createdAt' | 'updatedAt' | 'isProgrammatic' | 'theme' | 'data' | 'permission' | 'protectedByOrganisation' | 'isPlayground'>;
@@ -0,0 +1,2 @@
1
+ import { QueryAttributes } from '../QueryAttributes/types';
2
+ export declare const filterIsDate: (filter: QueryAttributes.Filter) => boolean;
@@ -0,0 +1,4 @@
1
+ export declare const downloadToJSON: ({ data, fileName }: {
2
+ data: Object;
3
+ fileName: string;
4
+ }) => "Success" | "Sorry, the data supplied to downloadToJSON was not a valid object";
@@ -0,0 +1 @@
1
+ export * from './downloadToJSON';
@@ -0,0 +1,3 @@
1
+ import Joi from '@vizzly/joi';
2
+ import { QueryEngineConfig } from '../QueryEngineConfig/types';
3
+ export declare function drilldownSchema(queryEngineConfig: QueryEngineConfig): Joi.SchemaLike<any> | Joi.SchemaLike<any>[] | undefined;
@@ -1,7 +1,7 @@
1
1
  import { Options, TargetElementFinder } from './types';
2
2
  import jsPDF from 'jspdf';
3
3
  export type { Options };
4
- export declare const generatePDF: (targetRefOrFunction: TargetElementFinder, customOptions?: (Pick<Partial<import("./types").ConversionOptions>, "filename" | "method" | "resolution"> & {
4
+ export declare const generatePDF: (targetRefOrFunction: TargetElementFinder, customOptions?: (Pick<Partial<import("./types").ConversionOptions>, "method" | "filename" | "resolution"> & {
5
5
  page?: Partial<import("./types").PageConversionOptions> | undefined;
6
6
  canvas?: Partial<Pick<import("html2canvas").Options, "useCORS" | "logging"> & {
7
7
  mimeType: "image/jpeg" | "image/png";
@@ -0,0 +1,10 @@
1
+ import { Component } from '../Component/types';
2
+ declare type ClickDatumValues = {
3
+ datum: {
4
+ [key: string]: number | string;
5
+ };
6
+ index: number;
7
+ key: string;
8
+ };
9
+ export declare function buildPieOnViewClick(onViewClick: ((data: Component.OnViewClick) => void) | undefined, clickedValue: ClickDatumValues, viewId: string): void;
10
+ export {};
@@ -35,7 +35,7 @@ export declare type QueryEngineDescription = {
35
35
  connections: Array<{
36
36
  id: string;
37
37
  name: string;
38
- pingResult: boolean;
38
+ pingResult: boolean | null;
39
39
  client: Client;
40
40
  }>;
41
41
  dataSets: Array<{
@@ -47,6 +47,7 @@ export declare namespace VizzlyTheming {
47
47
  tabs?: Tabs;
48
48
  titles?: FontStyle;
49
49
  tooltips?: Tooltip;
50
+ chips?: Chips;
50
51
  }
51
52
  interface Buttons {
52
53
  primary?: ButtonType;
@@ -60,6 +61,10 @@ export declare namespace VizzlyTheming {
60
61
  interface ButtonType extends ButtonState {
61
62
  padding?: CSSProperties['padding'];
62
63
  fontWeight?: CSSProperties['fontWeight'];
64
+ fontFamily?: CSSProperties['fontFamily'];
65
+ '-webkitFontSmoothing'?: CSSProperties['WebkitFontSmoothing'];
66
+ '-mozOsxFontSmoothing'?: CSSProperties['MozOsxFontSmoothing'];
67
+ textShadow?: CSSProperties['textShadow'];
63
68
  boxShadow?: CSSProperties['boxShadow'];
64
69
  borderRadius?: CSSProperties['borderRadius'];
65
70
  fontSize?: CSSProperties['fontSize'];
@@ -588,5 +593,12 @@ export declare namespace VizzlyTheming {
588
593
  lineHeight?: CSSProperties['lineHeight'];
589
594
  padding?: CSSProperties['padding'];
590
595
  };
596
+ type Chips = {
597
+ background?: CSSProperties['background'];
598
+ borderRadius?: CSSProperties['borderRadius'];
599
+ color?: CSSProperties['color'];
600
+ fontSize?: CSSProperties['fontSize'];
601
+ fontWeight?: CSSProperties['fontWeight'];
602
+ };
591
603
  }
592
604
  export declare type ThemeVersion = 1 | 2;
@@ -20,4 +20,5 @@ export declare const DateTimeFilter: FunctionComponent<{
20
20
  queryEngineConfig?: QueryEngineConfig;
21
21
  data?: DataSet[];
22
22
  fixedWidth?: number;
23
+ allowTimeSelection: boolean;
23
24
  }>;
@@ -3,7 +3,7 @@ import moment from 'moment';
3
3
  export declare const TIME_FORMATS: {
4
4
  readonly HHmm: "HH:mm";
5
5
  };
6
- export declare type TimeRangeFormat = typeof TIME_FORMATS[keyof typeof TIME_FORMATS];
6
+ export declare type TimeRangeFormat = (typeof TIME_FORMATS)[keyof typeof TIME_FORMATS];
7
7
  export declare const TimePickerCore: FunctionComponent<{
8
8
  className?: string;
9
9
  onChange: (value: moment.Moment) => void;
@@ -0,0 +1,20 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export declare const defaultFilesState: {
3
+ fileList: null;
4
+ value: string;
5
+ };
6
+ export declare const FileUpload: FunctionComponent<{
7
+ label?: string;
8
+ onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
9
+ setFiles: React.Dispatch<React.SetStateAction<{
10
+ fileList: FileList | null;
11
+ value: string | number | readonly string[] | undefined;
12
+ }>>;
13
+ setError: React.Dispatch<React.SetStateAction<string | null>>;
14
+ files: FileList | null;
15
+ accept?: string;
16
+ allowMultipleFiles?: false;
17
+ value: string | number | readonly string[] | undefined;
18
+ uploadButtonTitle?: string;
19
+ uploadButtonDescription?: string;
20
+ }>;
@@ -0,0 +1 @@
1
+ export * from './FileUpload';
@@ -1,11 +1,11 @@
1
- import { CSSProperties, SVGProps } from 'react';
1
+ import React, { CSSProperties, SVGProps } from 'react';
2
2
  declare type renderSvg<P> = (props: SVGProps<SVGElement> & P) => JSX.Element;
3
3
  export declare const Filter: renderSvg<{
4
4
  active: boolean;
5
5
  size?: 'sm' | 'md' | 'lg';
6
6
  fill?: CSSProperties['fill'];
7
7
  }>;
8
- export declare const Close: renderSvg<{}>;
8
+ export declare const Close: ({ fill, width, height, ...props }: React.SVGAttributes<SVGElement>) => JSX.Element;
9
9
  export declare const Undo: renderSvg<{}>;
10
10
  export declare const Completed: renderSvg<{}>;
11
11
  export declare const InProgress: renderSvg<{}>;
@@ -29,10 +29,12 @@ export declare const Accordion: renderSvg<{
29
29
  isOpen: boolean;
30
30
  }>;
31
31
  export declare const Report: renderSvg<{}>;
32
- export declare const Vizzly: (props?: {
32
+ export declare const Vizzly: ({ fill, gradient, ...props }: {
33
33
  width?: number | undefined;
34
34
  height?: number | undefined;
35
- } | undefined) => JSX.Element;
35
+ fill?: string | undefined;
36
+ gradient?: boolean | undefined;
37
+ }) => JSX.Element;
36
38
  export declare const VizzlyLogoWithName: () => JSX.Element;
37
39
  export declare const Parameters: renderSvg<{
38
40
  active: boolean;
@@ -96,4 +98,11 @@ export declare const Fullscreen: renderSvg<{
96
98
  width?: number;
97
99
  height?: number;
98
100
  }>;
101
+ export declare const ExternalLink: renderSvg<{
102
+ width?: number;
103
+ height?: number;
104
+ fill?: string;
105
+ }>;
106
+ export declare const Upload: ({ fill, ...props }: React.SVGAttributes<SVGElement>) => JSX.Element;
107
+ export declare const File: ({ fill, ...props }: React.SVGAttributes<SVGElement>) => JSX.Element;
99
108
  export {};
@@ -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" | "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" | "big" | "link" | "sup" | "select" | "input" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "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" | "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" | "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,7 +25,7 @@ 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" | "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" | "big" | "link" | "sup" | "select" | "input" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "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" | "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" | "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
  themeClassName?: import("../..").VizzlyTheming.FontStyle | undefined;
30
30
  className?: string | undefined;
31
31
  id?: string | undefined;
@@ -8,6 +8,7 @@ export declare type ModalProps = {
8
8
  width: 'sm' | 'xl' | '2xl' | '4xl' | '7xl' | null;
9
9
  'data-testid'?: string;
10
10
  namespace?: CustomThemeClassNamespaces;
11
+ disableDnD?: boolean;
11
12
  transparentBackground?: boolean;
12
13
  hideCloseIcon?: boolean;
13
14
  options?: {
@@ -23,12 +23,13 @@ export declare const ModalContent: (props: {
23
23
  'data-component'?: string;
24
24
  }) => JSX.Element;
25
25
  export declare const BaseModal: (props: ModalProps) => JSX.Element;
26
- export declare const ModalBody: React.FunctionComponent<{
26
+ declare type ModalBodyProps = {
27
27
  children?: React.ReactNode;
28
28
  vizzlyPrefix: string;
29
29
  'data-component'?: string;
30
30
  disableDnD?: boolean;
31
- }>;
31
+ };
32
+ export declare const ModalBody: React.FunctionComponent<ModalBodyProps>;
32
33
  export declare const ModalOverlay: React.FunctionComponent<{
33
34
  dark?: boolean;
34
35
  position?: 'fixed' | 'absolute';
@@ -60,3 +61,4 @@ export declare const Modal: ((props: ModalProps) => JSX.Element) & {
60
61
  'data-component'?: string;
61
62
  }) => JSX.Element;
62
63
  };
64
+ export {};
@@ -4,7 +4,7 @@ export declare const Panel: React.ForwardRefExoticComponent<{
4
4
  testId?: string | undefined;
5
5
  vizzlyPrefix?: string | undefined;
6
6
  transform?: boolean | undefined;
7
- role?: (string & {}) | "grid" | "none" | "button" | "checkbox" | "listbox" | "radio" | "region" | "cell" | "table" | "row" | "menu" | "listitem" | "menubar" | "menuitem" | "progressbar" | "separator" | "tab" | "tabpanel" | "toolbar" | "tooltip" | "treeitem" | "scrollbar" | "heading" | "article" | "dialog" | "figure" | "form" | "img" | "link" | "main" | "option" | "switch" | "alert" | "alertdialog" | "application" | "banner" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "directory" | "document" | "feed" | "gridcell" | "group" | "list" | "log" | "marquee" | "math" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "presentation" | "radiogroup" | "rowgroup" | "rowheader" | "search" | "searchbox" | "slider" | "spinbutton" | "status" | "tablist" | "term" | "textbox" | "timer" | "tree" | "treegrid" | undefined;
7
+ role?: (string & {}) | "grid" | "none" | "button" | "checkbox" | "listbox" | "radio" | "region" | "cell" | "table" | "row" | "menu" | "listitem" | "menubar" | "menuitem" | "progressbar" | "separator" | "tab" | "tabpanel" | "toolbar" | "tooltip" | "treeitem" | "scrollbar" | "heading" | "search" | "link" | "article" | "dialog" | "figure" | "form" | "img" | "main" | "option" | "switch" | "alert" | "alertdialog" | "application" | "banner" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "directory" | "document" | "feed" | "gridcell" | "group" | "list" | "log" | "marquee" | "math" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "presentation" | "radiogroup" | "rowgroup" | "rowheader" | "searchbox" | "slider" | "spinbutton" | "status" | "tablist" | "term" | "textbox" | "timer" | "tree" | "treegrid" | undefined;
8
8
  onHover?: ((active: boolean) => void) | undefined;
9
9
  width?: CSSProperties['width'];
10
10
  padding?: CSSProperties['padding'];
@@ -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" | "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" | "big" | "link" | "sup" | "select" | "input" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "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" | "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" | "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;
@@ -9,35 +9,3 @@ export declare const Toolbar: FunctionComponent<{
9
9
  'data-component': string;
10
10
  padding?: CSSProperties['padding'];
11
11
  }>;
12
- export declare const divider: {
13
- (variantOptions: Object): string;
14
- toString: any;
15
- };
16
- export declare const toolbarButtonStyle: {
17
- background: string;
18
- color: string;
19
- border: string;
20
- padding: string;
21
- borderRadius: number;
22
- fontFamily: string;
23
- '&:hover': {
24
- background: string;
25
- border: string;
26
- color: string;
27
- };
28
- '&:focus': {
29
- background: string;
30
- border: string;
31
- color: string;
32
- };
33
- '&:disabled': {
34
- background: string;
35
- opacity: number;
36
- };
37
- '&:hover:disabled': {
38
- background: string;
39
- opacity: number;
40
- };
41
- fontSize: number;
42
- fontWeight: number;
43
- };
@@ -1,6 +1,8 @@
1
1
  import { FunctionComponent } from 'react';
2
2
  import { TextOverride } from '../../../../../shared-logic/src/Translations/types';
3
3
  import { DisplayChipsType } from './displayChips.funcs';
4
+ import { MultiSelectFilter, NumericFilter } from '../../../../../shared-logic/src/AdditionalFilter/types';
5
+ import { DataType } from '../../../../../shared-logic/src/Field/types';
4
6
  export declare const AdvancedDisplayValues: FunctionComponent<{
5
7
  prefix?: boolean;
6
8
  label?: string;
@@ -12,4 +14,6 @@ export declare const AdvancedDisplayValues: FunctionComponent<{
12
14
  clearDisabled?: boolean;
13
15
  onClick: (open: boolean) => void;
14
16
  id: string;
17
+ filter: MultiSelectFilter | NumericFilter;
18
+ type: Omit<DataType, 'date_time'>;
15
19
  }>;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { MultiSelectFilter as MultiSelectFilterType, NumericFilter } from '../../../../../shared-logic/src/AdditionalFilter/types';
3
+ export declare const AdvancedSelectFilter: (props: import("react").PropsWithChildren<{
4
+ filterIndex: number;
5
+ filter: NumericFilter | MultiSelectFilterType;
6
+ dataSets: import("../../../../../dashboard/src").DataSet<import("../../../../../dashboard/src").DataSet.Field>[];
7
+ onChange: (filter: NumericFilter | MultiSelectFilterType) => void;
8
+ showClearBtn?: boolean | undefined;
9
+ type: Pick<import("../../../../../shared-logic/src/Field/types").DataType, number | "replace" | "fixed" | "repeat" | "slice" | "small" | "sub" | "bold" | "blink" | "toString" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "search" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "length" | "substr" | "valueOf" | "codePointAt" | "includes" | "endsWith" | "normalize" | "startsWith" | "anchor" | "big" | "fontcolor" | "fontsize" | "italics" | "link" | "strike" | "sup" | "padStart" | "padEnd" | "trimEnd" | "trimStart" | "trimLeft" | "trimRight" | "matchAll" | "replaceAll" | "at">;
10
+ }>) => JSX.Element;
@@ -1,5 +1,7 @@
1
1
  import { QueryAttributes } from '../../../../../shared-logic/src/QueryAttributes/types';
2
2
  import { MultiSelectFilter as MultiSelectFilterType, NumericFilter } from '../../../../../shared-logic/src/AdditionalFilter/types';
3
3
  import { DataType } from '../../../../../shared-logic/src/Field/types';
4
+ import { CompletedWipFilter } from '../../../library/DataPanel/FilterInput/types';
4
5
  export declare const definingForFilterInput: (filter: MultiSelectFilterType | NumericFilter, type: Omit<DataType, 'date_time'>) => QueryAttributes.Filter[][];
5
6
  export declare function buildForEachAppliesToField(completedFilters: QueryAttributes.Filter[][], filter: NumericFilter | MultiSelectFilterType): QueryAttributes.Filter[];
7
+ export declare function changeValueOnWipFilterChange(filter: Partial<CompletedWipFilter>, completedFilters: QueryAttributes.Filter[][], orFilterIndex: number, andFilterIndex: number): Partial<CompletedWipFilter>;
@@ -1,17 +1,17 @@
1
- /// <reference types="react" />
2
1
  import { DateAndTimeFilter, DateFilter as DateFilterType } from '../../../../../shared-logic/src/AdditionalFilter/types';
3
2
  import { DashboardBehaviour } from '../../../contexts/DashboardBehaviour/types';
4
3
  import { DataSet } from '../../../../../shared-logic/src/DataSet/types';
5
4
  import * as FilterType from '../../../../../shared-logic/src/AdditionalFilter/constants';
5
+ import { FunctionComponent } from 'react';
6
6
  /**
7
7
  * Used by global and local filters to provide a way of editing
8
8
  * date time filters
9
9
  */
10
- export declare const DateFilter: (props: {
10
+ export declare const DateFilter: FunctionComponent<{
11
11
  filter: DateFilterType | DateAndTimeFilter;
12
12
  onChange: (additionalFilter: DateFilterType | DateAndTimeFilter) => void;
13
13
  dateFilterOptions: DashboardBehaviour['dateFilterOptions'];
14
14
  dataSets: DataSet[];
15
- showClearBtn?: boolean | undefined;
16
- type: typeof FilterType.DATE_FILTER | typeof FilterType.DATE_AND_TIME_FILTER;
17
- }) => JSX.Element | null;
15
+ showClearBtn?: boolean;
16
+ type: typeof FilterType.DATE_FILTER;
17
+ }>;
@@ -0,0 +1,6 @@
1
+ import { DateAndTimeFilter, DateFilter as DateFilterType } from '../../../../../shared-logic/src/AdditionalFilter/types';
2
+ import { QueryAttributes } from '../../../../../shared-logic/src/QueryAttributes/types';
3
+ export declare function buildDateTimePayload(type: 'dateFilter' | 'dateAndTimeFilter', filter: DateFilterType | DateAndTimeFilter, value: string | {
4
+ startDate: Date;
5
+ endDate: Date;
6
+ } | QueryAttributes.Filter[][] | null): DateFilterType | DateAndTimeFilter;
@@ -4,6 +4,7 @@ import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/
4
4
  import { MultiSelectOptions } from '../../base/MultiSelect';
5
5
  export declare type AdvancedOptions = {
6
6
  inclusiveDate?: boolean;
7
+ allowTimeSelection?: boolean;
7
8
  };
8
9
  declare type SetSelectedDataSets = {
9
10
  type: 'setSelectedDataSets';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Component } from '../../../../shared-logic/src/Component/types';
3
+ import { DataSet } from '../../../../shared-logic/src/DataSet/types';
4
+ import { Result } from '../../../../shared-logic/src/Result/types';
5
+ import * as Drilldown from '../../../../shared-logic/src/Drilldown/Drilldown';
6
+ export declare type AcceptedDrilldownAttributes = Component.PieChartAttributes | Component.BarChartAttributes | Component.HorizontalBarChartAttributes;
7
+ export declare function useDrilldownSelection(results: (Result | null)[], attributes: AcceptedDrilldownAttributes, setAttributes: (newAttributes: AcceptedDrilldownAttributes) => void, dataSet: DataSet): {
8
+ onDrilldownChange: ({ existingField, newField }: Drilldown.SelectedDrilldown) => void;
9
+ setDrilldownSelections: import("react").Dispatch<import("react").SetStateAction<Drilldown.SelectedDrilldown[]>>;
10
+ drilldownSelections: Drilldown.SelectedDrilldown[];
11
+ };
@@ -16,5 +16,6 @@ export declare type PieChartProps = {
16
16
  id: string;
17
17
  dashboardBehaviour: DashboardBehaviour;
18
18
  library?: boolean;
19
+ editor?: boolean;
19
20
  };
20
21
  export declare const PieChart: (props: PieChartProps) => JSX.Element;
@@ -2,13 +2,18 @@ import React from 'react';
2
2
  import { VizzlyComponents } from '../../types';
3
3
  import { Component } from '../../../../shared-logic/src/Component/types';
4
4
  import { DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
5
+ import * as Drilldown from '../../../../shared-logic/src/Drilldown/Drilldown';
5
6
  export declare type PieChartViewProps = VizzlyComponents.ViewProps<Component.PieChartAttributes> & {
6
7
  library?: boolean;
7
8
  numberFormatOptions: DashboardBehaviour['numberFormatOptions'];
9
+ onDrilldownChange: (payload: Drilldown.SelectedDrilldown) => void;
10
+ drilldownSelections: Drilldown.SelectedDrilldown[];
11
+ onResetDrilldown: () => void;
12
+ editor?: boolean;
8
13
  };
9
14
  export declare const defaultProps: Omit<Component.PieChartAttributes, 'dataSetId'>;
10
15
  declare const memoized: React.MemoExoticComponent<{
11
16
  (props: PieChartViewProps): JSX.Element;
12
- defaultProps: Pick<Component.PieChartAttributes, "filter" | "order" | "offset" | "measure" | "dimension" | "timeDimension" | "limit" | "type" | "viewId" | "displayTitle" | "displaySubject" | "protectedByOrganisation" | "tags" | "conditionalFormattingRules" | "legend" | "parameters" | "labelFormat" | "labelsAsPercentage" | "labels">;
17
+ defaultProps: Pick<Component.PieChartAttributes, "filter" | "order" | "offset" | "measure" | "dimension" | "timeDimension" | "limit" | "type" | "viewId" | "displayTitle" | "displaySubject" | "protectedByOrganisation" | "tags" | "conditionalFormattingRules" | "legend" | "parameters" | "drilldownOptions" | "labelFormat" | "labelsAsPercentage" | "labels">;
13
18
  }>;
14
19
  export default memoized;