@vizzly/dashboard 0.12.12 → 0.12.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts/src/PieChart/PieChart.d.ts +2 -1
- package/dist/charts/src/ScatterChart/ScatterChart.d.ts +1 -1
- package/dist/charts/src/XYChart/ChartTooltip.styles.d.ts +0 -4
- package/dist/charts/src/types.d.ts +11 -0
- package/dist/charts/src/utils/buildTooltipStyles.d.ts +6 -0
- package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +6 -0
- package/dist/dashboard/src/types.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/shared-logic/src/AdditionalFilter/AdditionalFilter.d.ts +10 -1
- package/dist/shared-logic/src/AdditionalFilter/constants.d.ts +7 -0
- package/dist/shared-logic/src/AdditionalFilter/types.d.ts +10 -3
- package/dist/shared-logic/src/Callbacks/cell.funcs.d.ts +0 -2
- package/dist/shared-logic/src/Component/types.d.ts +1 -0
- package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +1 -0
- package/dist/shared-logic/src/Drilldown/Drilldown.d.ts +3 -1
- package/dist/shared-logic/src/Field/types.d.ts +1 -1
- package/dist/shared-logic/src/FormatPanelConfig/types.d.ts +1 -1
- package/dist/shared-logic/src/Theme/types.d.ts +44 -20
- package/dist/shared-logic/src/ValueAlias/ValueAlias.d.ts +1 -1
- package/dist/shared-logic/src/VizzlyState/index.d.ts +5 -0
- package/dist/shared-logic/src/api/queryEngine/createSqlPreview.d.ts +1 -1
- package/dist/shared-logic/src/api/queryEngine/saveConnection.d.ts +1 -1
- package/dist/shared-logic/src/utils/DateTime.d.ts +2 -1
- package/dist/shared-logic/src/utils/numberHelpers.d.ts +1 -0
- package/dist/shared-ui/src/base/Alert/Alert.types.d.ts +1 -0
- package/dist/shared-ui/src/base/DateTime/CustomRangePicker.d.ts +2 -0
- package/dist/shared-ui/src/base/DateTime/DateTimeFilter.d.ts +1 -0
- package/dist/shared-ui/src/base/DateTime/DateTimePickerInput.d.ts +2 -0
- package/dist/shared-ui/src/base/DateTime/FixedRange.d.ts +1 -1
- package/dist/shared-ui/src/base/Dragging/DragLayer.d.ts +7 -1
- package/dist/shared-ui/src/base/Empty/EmptyContainer.d.ts +1 -0
- package/dist/shared-ui/src/base/Panel/Panel.d.ts +1 -0
- package/dist/shared-ui/src/base/Tooltip/Tooltip.styles.d.ts +6 -1
- package/dist/shared-ui/src/components/AdditionalFilter/AdvancedPicker/AdvancedDisplayValues.d.ts +1 -0
- package/dist/shared-ui/src/components/AdditionalFilter/AdvancedPicker/DisplayChips.d.ts +0 -2
- package/dist/shared-ui/src/components/AdditionalFilter/{MultiSelectFilter → AdvancedPicker}/advancedFilters.d.ts +2 -2
- package/dist/shared-ui/src/components/AdditionalFilter/AdvancedPicker/displayChips.funcs.d.ts +15 -2
- package/dist/shared-ui/src/components/AdditionalFilter/{MultiSelectFilter/AdvancedSelectFilter.d.ts → AdvancedSelectFilter.d.ts} +4 -7
- package/dist/shared-ui/src/components/AdditionalFilter/useBuildDashboardFilter.d.ts +2 -8
- package/dist/shared-ui/src/components/BarChart/BarChartView.d.ts +1 -0
- package/dist/shared-ui/src/components/BarChart/types.d.ts +1 -0
- package/dist/shared-ui/src/components/ChartHelper.d.ts +1 -0
- package/dist/shared-ui/src/components/DragAndDrop/WidthChangingDnd.d.ts +8 -0
- package/dist/shared-ui/src/components/PieChart/PieChartView.d.ts +1 -1
- package/dist/shared-ui/src/components/Studio/StudioApp/ComponentOptions.d.ts +0 -1
- package/dist/shared-ui/src/components/Studio/StudioApp/DragHandle.d.ts +6 -1
- package/dist/shared-ui/src/components/Studio/StudioApp/DragHandle.styles.d.ts +1 -1
- package/dist/shared-ui/src/components/Studio/StudioContexts.d.ts +2 -1
- package/dist/shared-ui/src/components/Studio/StudioViews.d.ts +16 -0
- package/dist/shared-ui/src/contexts/DashboardBehaviour/dateTimeFormatOptions.d.ts +1 -0
- package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +1 -0
- package/dist/shared-ui/src/contexts/DashboardContext/context.d.ts +2 -1
- package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +2 -1
- package/dist/shared-ui/src/hooks/useVizzly.d.ts +2 -1
- package/dist/shared-ui/src/library/DataPanel/DrilldownInput/DrilldownSelect.d.ts +1 -0
- package/dist/shared-ui/src/library/Empty.d.ts +1 -0
- package/dist/shared-ui/src/library/ResizableRow.d.ts +6 -5
- package/dist/shared-ui/src/types.d.ts +2 -1
- package/package.json +3 -3
- package/dist/shared-logic/src/ProtectedFields/isProtectedField.d.ts +0 -5
- package/dist/shared-logic/src/ProtectedFields/upcastProtectedFields.d.ts +0 -2
- package/dist/shared-logic/src/QueryEngineDataSet/index.d.ts +0 -1
- package/dist/shared-logic/src/QueryEngineDataSet/init.d.ts +0 -2
- package/dist/shared-logic/src/VizzlyConfig/index.d.ts +0 -3
- package/dist/shared-logic/src/VizzlyConfig/init.d.ts +0 -8
- package/dist/shared-logic/src/VizzlyConfig/validate.d.ts +0 -12
- package/dist/shared-ui/src/components/ClickSettings/ClickSettingsModal.d.ts +0 -9
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DashboardBehaviour } from './types';
|
|
2
2
|
import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
|
|
3
|
+
export declare const FUNCTIONS_WHICH_USE_STRING_INSTEAD_OF_DATE: Array<keyof typeof defaultDateTimeFormatOptions>;
|
|
3
4
|
export declare const defaultDateTimeFormatOptions: DashboardBehaviour['dateTimeFormatOptions'];
|
|
4
5
|
/**
|
|
5
6
|
* Build the date format options, and validate
|
|
@@ -2,11 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import { VizzlyComponents, VizzlyTheming, trackEventCallback } from '../../types';
|
|
3
3
|
import { ProvidedValues, StudioState } from './types';
|
|
4
4
|
import { Dashboard } from '../../../../shared-logic/src/Dashboard/types';
|
|
5
|
+
import { SavingState } from '../../../../shared-logic/src/VizzlyState';
|
|
5
6
|
export interface WithDashboardContextProps {
|
|
6
7
|
children: React.ReactNode;
|
|
7
8
|
dashboard: Dashboard;
|
|
8
9
|
runQueriesCallback: VizzlyComponents.runQueriesCallback;
|
|
9
|
-
|
|
10
|
+
saving: SavingState;
|
|
10
11
|
trackEvent?: trackEventCallback;
|
|
11
12
|
theme?: VizzlyTheming.Base;
|
|
12
13
|
componentEditor?: StudioState['componentEditor'];
|
|
@@ -11,6 +11,7 @@ import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/
|
|
|
11
11
|
import { DashboardBehaviour } from '../DashboardBehaviour/types';
|
|
12
12
|
import { UpdatedMetrics } from '../../../../shared-logic/src/Parameters';
|
|
13
13
|
import { HeaderComponent } from '../../../../shared-logic/src/Header/types';
|
|
14
|
+
import { SavingState } from '../../../../shared-logic/src/VizzlyState';
|
|
14
15
|
export declare type DisplayTarget = {
|
|
15
16
|
rowIndex: number;
|
|
16
17
|
cellIndex: number;
|
|
@@ -34,7 +35,7 @@ export declare type ProvidedValues = StudioState & {
|
|
|
34
35
|
dispatch: Dispatch<StudioAction>;
|
|
35
36
|
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
36
37
|
trackEvent: trackEventCallback;
|
|
37
|
-
|
|
38
|
+
saving: SavingState;
|
|
38
39
|
};
|
|
39
40
|
export declare type SaveComponentAction = {
|
|
40
41
|
type: 'saveComponent';
|
|
@@ -3,6 +3,7 @@ import { QueryEngineConfig } from '../../../shared-logic/src/QueryEngineConfig/t
|
|
|
3
3
|
import { Dashboard } from '../../../shared-logic/src/Dashboard/types';
|
|
4
4
|
import { DashboardAccessConfig, IdentityConfig } from '../../../shared-logic/src/IdentityConfig/types';
|
|
5
5
|
import { GlobalLibrary } from '../../../shared-logic/src/GlobalLibrary/types';
|
|
6
|
+
import { SavingState } from '../../../shared-logic/src/VizzlyState';
|
|
6
7
|
export declare type LoadedVizzlyHook = Omit<State, 'loading'> & {
|
|
7
8
|
createDashboard: (params: CreateDashboardParams) => Promise<Dashboard | null>;
|
|
8
9
|
updateDashboard: (params: UpdateDashboardParams) => Promise<Dashboard | null>;
|
|
@@ -28,7 +29,7 @@ declare type State = {
|
|
|
28
29
|
dashboards: Dashboard[];
|
|
29
30
|
loading: boolean;
|
|
30
31
|
error: Error | undefined;
|
|
31
|
-
|
|
32
|
+
saving?: SavingState;
|
|
32
33
|
};
|
|
33
34
|
export declare const useVizzly: (properties: VizzlyServicesProperties, options?: {
|
|
34
35
|
apiHost?: string | undefined;
|
|
@@ -13,6 +13,7 @@ export declare type DrilldownSelectProps = {
|
|
|
13
13
|
onClose: (payload?: DrilldownPayload) => void;
|
|
14
14
|
options?: Component.DrilldownOptions[];
|
|
15
15
|
dataSet: DataSet;
|
|
16
|
+
required?: boolean;
|
|
16
17
|
disabled?: boolean;
|
|
17
18
|
};
|
|
18
19
|
export declare const DrilldownSelect: FunctionComponent<DrilldownSelectProps>;
|
|
@@ -4,6 +4,7 @@ import { ViewHeaderProps } from '../components/ViewHeader/ViewHeader';
|
|
|
4
4
|
export declare const Empty: (props: {
|
|
5
5
|
title: string | JSX.Element;
|
|
6
6
|
renderExtra?: () => React.ReactNode;
|
|
7
|
+
emptyClassName?: string;
|
|
7
8
|
}) => JSX.Element;
|
|
8
9
|
export declare const FailedToStartDashboardSessionNotice: () => JSX.Element;
|
|
9
10
|
export declare const FailedToLoadQueryEngineConfigNotice: () => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { DisplayRow } from '../../../shared-logic/src/Display/types';
|
|
3
3
|
import { ResizableRowCellProps } from './ResizableRowCell';
|
|
4
|
-
export declare const ResizableRow:
|
|
4
|
+
export declare const ResizableRow: React.ForwardRefExoticComponent<Pick<ResizableRowCellProps, "height" | "maxCSVDownloadLimit" | "rowIndex" | "trackEvent" | "generatingPDF" | "onRemoveCell" | "onCreateNew" | "onPickFromLibrary"> & {
|
|
5
5
|
displayRow: DisplayRow;
|
|
6
6
|
onColSpanChange: (newColSpans: Array<{
|
|
7
7
|
colSpan: number;
|
|
@@ -11,7 +11,8 @@ export declare const ResizableRow: FunctionComponent<Omit<ResizableRowCellProps,
|
|
|
11
11
|
columns: string[];
|
|
12
12
|
onAppendCell: () => void;
|
|
13
13
|
onAddHeaderRow: () => void;
|
|
14
|
-
hideAddNewHeaderRow?: boolean;
|
|
14
|
+
hideAddNewHeaderRow?: boolean | undefined;
|
|
15
15
|
generatingPDF: boolean;
|
|
16
|
-
marginBottom?: number;
|
|
17
|
-
|
|
16
|
+
marginBottom?: number | undefined;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -16,6 +16,7 @@ import { GlobalFilterViewProps } from './components/GlobalFilters/types';
|
|
|
16
16
|
import { api } from '../../shared-logic/src/api';
|
|
17
17
|
import { CustomView as CustomViewType } from '../../shared-logic/src/CustomView/types';
|
|
18
18
|
import { runQueriesCallback as runQueriesCallbackImported } from '../../shared-logic/src/api/queryEngine/getRunQueriesCallback';
|
|
19
|
+
import { SavingState } from '../../shared-logic/src/VizzlyState';
|
|
19
20
|
declare global {
|
|
20
21
|
var disableViewCheck: boolean;
|
|
21
22
|
var disableResizing: boolean;
|
|
@@ -71,7 +72,7 @@ export declare namespace VizzlyComponents {
|
|
|
71
72
|
id?: string;
|
|
72
73
|
};
|
|
73
74
|
type SavingDashboardProps = {
|
|
74
|
-
saving:
|
|
75
|
+
saving: SavingState;
|
|
75
76
|
};
|
|
76
77
|
/**
|
|
77
78
|
* Represents the input props for a DateTimeRangeInputChange event.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizzly/dashboard",
|
|
3
3
|
"author": "james@vizzly.co",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.13",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "./dist/dashboard/src/index.d.ts",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@vizzly/api-client": "0.0.38",
|
|
47
47
|
"@vizzly/dnd-backend": "0.0.4",
|
|
48
48
|
"@vizzly/joi": "^17.7.0",
|
|
49
|
-
"@vizzly/semantic-layer-public": "0.0.
|
|
50
|
-
"@vizzly/sqlbuilder-public": "0.1.
|
|
49
|
+
"@vizzly/semantic-layer-public": "0.0.118",
|
|
50
|
+
"@vizzly/sqlbuilder-public": "0.1.9",
|
|
51
51
|
"chroma-js": "^2.4.2",
|
|
52
52
|
"copy-to-clipboard": "^3.3.3",
|
|
53
53
|
"cross-fetch": "^4.0.0",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Component } from '../Component/types';
|
|
2
|
-
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
|
-
declare type FieldToCheck = QueryAttributes.Dimension | QueryAttributes.TimeDimension | QueryAttributes.Measure | undefined;
|
|
4
|
-
declare const isProtectedField: (attributes: Partial<Component.Attributes> | undefined, fieldToCheck: FieldToCheck) => boolean;
|
|
5
|
-
export default isProtectedField;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './init';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Joi from '@vizzly/joi';
|
|
2
|
-
export declare const ALLOWED_ID_REGEX: RegExp;
|
|
3
|
-
export declare const ID_REGEX_ERROR_MESSAGE = "IDs must only use alpha numeric characters and _";
|
|
4
|
-
export declare const bigQuerySchema: Joi.ObjectSchema<any>;
|
|
5
|
-
export declare const postgresSchema: Joi.ObjectSchema<any>;
|
|
6
|
-
export declare const redshiftSchema: Joi.ObjectSchema<any>;
|
|
7
|
-
export declare const mariadbSchema: Joi.ObjectSchema<any>;
|
|
8
|
-
export declare const mySQLSchema: Joi.ObjectSchema<any>;
|
|
9
|
-
export declare const snowflakeSchema: Joi.ObjectSchema<any>;
|
|
10
|
-
export declare const microsoftSQLServerSchema: Joi.ObjectSchema<any>;
|
|
11
|
-
declare const _default: (config: any) => Joi.ValidationResult;
|
|
12
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
3
|
-
export declare const ClickSettingsModal: FunctionComponent<{
|
|
4
|
-
component: ComponentType;
|
|
5
|
-
show: boolean;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
cellIndex: number;
|
|
8
|
-
rowIndex: number;
|
|
9
|
-
}>;
|