@vizzly/dashboard 0.14.4-dev-97acb8d43347ac757049612930b3f8e69e913e55 → 0.14.4-dev-452014891c726bda8e71210563e32bb225b30c86
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/v2/components/Axis/AxisLeft.d.ts +2 -1
- package/dist/charts/src/v2/components/BarChart/BarChart.d.ts +18 -2
- package/dist/charts/src/v2/components/BarChart/useBarXScale.d.ts +2 -0
- package/dist/charts/src/v2/components/ComboChart/ComboChart.d.ts +22 -0
- package/dist/charts/src/v2/components/Legend/Legend.d.ts +7 -5
- package/dist/charts/src/v2/components/LineChart/LineChart.d.ts +16 -1
- package/dist/charts/src/v2/components/Tooltip/Tooltip.d.ts +6 -4
- package/dist/charts/src/v2/components/WaterfallChart/Legend.d.ts +3 -1
- package/dist/charts/src/v2/components/WaterfallChart/WaterfallChart.d.ts +3 -1
- package/dist/charts/src/v2/components/hooks/useFlattenedData.d.ts +3 -8
- package/dist/charts/src/v2/components/hooks/useYScale.d.ts +2 -0
- package/dist/charts/src/v2/constants/PADDING.d.ts +4 -0
- package/dist/charts/src/v2/{components/BarChart → utils}/getBarFill.d.ts +2 -2
- package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +12 -12
- package/dist/dashboard.cjs.development.js +435 -344
- package/dist/dashboard.cjs.production.min.js +1 -1
- package/dist/dashboard.esm.js +440 -349
- package/dist/shared-logic/src/ChartsV2/types.d.ts +8 -7
- package/dist/shared-logic/src/ComboChartV2/types.d.ts +15 -0
- package/dist/shared-logic/src/Component/types.d.ts +2 -0
- package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +1 -0
- package/dist/shared-logic/src/FeatureToggle/types.d.ts +0 -3
- package/dist/shared-logic/src/FormatPanelConfig/types.d.ts +2 -1
- package/dist/shared-ui/src/library/StylePanel/WaterfallColorsSection.d.ts +7 -0
- package/package.json +1 -1
- package/dist/charts/src/v2/components/WaterfallChart/getBarFill.d.ts +0 -5
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { DataType } from '../Field/types';
|
|
2
|
+
export declare type Scale<SupportedVizzlyDataTypes> = {
|
|
3
|
+
dataType: DataType;
|
|
4
|
+
key: KeyId | null;
|
|
5
|
+
ordering: 'asc' | 'desc' | null;
|
|
6
|
+
min: SupportedVizzlyDataTypes | null;
|
|
7
|
+
max: SupportedVizzlyDataTypes | null;
|
|
8
|
+
};
|
|
2
9
|
export declare type Axis<SupportedVizzlyDataTypes, AxisKeys> = {
|
|
3
10
|
ticks: Tick<SupportedVizzlyDataTypes>[];
|
|
4
|
-
scale:
|
|
5
|
-
dataType: DataType;
|
|
6
|
-
key: KeyId | null;
|
|
7
|
-
ordering: 'asc' | 'desc' | null;
|
|
8
|
-
min: SupportedVizzlyDataTypes | null;
|
|
9
|
-
max: SupportedVizzlyDataTypes | null;
|
|
10
|
-
};
|
|
11
|
+
scale: Scale<SupportedVizzlyDataTypes>;
|
|
11
12
|
postfix: string;
|
|
12
13
|
prefix: string;
|
|
13
14
|
title: string | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BarStyles } from '../BarChartV2/types';
|
|
2
|
+
import { ShapeDefinition, ConditionalFormattingRule, GoalLine, BaseChartRepresentation, KeyId, Axis } from '../ChartsV2/types';
|
|
3
|
+
import { LineStyles } from '../LineChartV2/types';
|
|
4
|
+
export declare type ComboYAxis = Axis<number, {
|
|
5
|
+
lineKeys: KeyId[];
|
|
6
|
+
barKeys: KeyId[];
|
|
7
|
+
}>;
|
|
8
|
+
export interface ComboChartRepresentation extends Omit<BaseChartRepresentation, 'y'> {
|
|
9
|
+
barConditionalFormattingRules: ConditionalFormattingRule[];
|
|
10
|
+
lineConditionalFormattingRules: ConditionalFormattingRule[];
|
|
11
|
+
goalLines: GoalLine[];
|
|
12
|
+
bars: ShapeDefinition<BarStyles>[];
|
|
13
|
+
lines: ShapeDefinition<LineStyles>[];
|
|
14
|
+
y: ComboYAxis;
|
|
15
|
+
}
|
|
@@ -417,6 +417,8 @@ export declare namespace Component {
|
|
|
417
417
|
parameters?: Parameters;
|
|
418
418
|
axisTitles?: AxisTitles;
|
|
419
419
|
headline?: Headline;
|
|
420
|
+
increaseColor: string;
|
|
421
|
+
decreaseColor: string;
|
|
420
422
|
};
|
|
421
423
|
export type ViewType = 'areaChart' | 'barChart' | 'basicTable' | 'bubbleChart' | 'comboChart' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'areaChartV2' | 'barChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat' | 'waterfallChart' | 'radarChart';
|
|
422
424
|
export type Attributes = AreaChartAttributes | BarChartAttributes | BasicTableAttributes | BubbleChartAttributes | ComboChartAttributes | CustomViewAttributes | DataTableAttributes | FunnelChartAttributes | HorizontalBarChartAttributes | LineChartAttributes | LineChartV2Attributes | BarChartV2Attributes | AreaChartV2Attributes | MercatorMapAttributes | PieChartAttributes | ProgressAttributes | RichTextAttributes | ScatterChartAttributes | SingleStatAttributes | WaterfallChartAttributes | RadarChartAttributes;
|
|
@@ -106,6 +106,7 @@ export interface FormatPanelNamespaces {
|
|
|
106
106
|
};
|
|
107
107
|
goal_line?: Section<'goalLine'>;
|
|
108
108
|
map_colors?: Section<'mapColors'>;
|
|
109
|
+
waterfall_colors?: Section<'waterfallColors'>;
|
|
109
110
|
headline?: Section<'headline'>;
|
|
110
111
|
trends?: Section<'trends'>;
|
|
111
112
|
prefixes?: Section<'prefixes'>;
|
|
@@ -25,9 +25,6 @@ export declare type FeatureToggles = {
|
|
|
25
25
|
/** Show/Hide the Date and Time Filter
|
|
26
26
|
* @default false */
|
|
27
27
|
showDateAndTimeFilter: boolean;
|
|
28
|
-
/** Show/Hide the Simple Multi Select Filter
|
|
29
|
-
* @default false */
|
|
30
|
-
simpleMultiSelectFilter: boolean;
|
|
31
28
|
/** Show/Hide the Date Filter
|
|
32
29
|
* @default true */
|
|
33
30
|
showDateFilter: boolean;
|
|
@@ -26,6 +26,7 @@ export declare type AxisLabelsSection = Section<'axisLabels'> & {
|
|
|
26
26
|
export declare type LabelsSection = Section<'statsLabels'> & LabelSection<'statsLabels'>;
|
|
27
27
|
export declare type PrefixSection = Section<'prefixes'>;
|
|
28
28
|
export declare type MapColorsSection = Section<'mapColors'>;
|
|
29
|
+
export declare type WaterfallColorsSection = Section<'waterfallColors'>;
|
|
29
30
|
export declare type HeadlineSection = Section<'headline'>;
|
|
30
31
|
export declare type RichTextFormatSection = Section<'richText'>;
|
|
31
32
|
export interface ConditionalFormattingSection extends Section<'conditionalFormatting'> {
|
|
@@ -41,5 +42,5 @@ export interface ProgressTypeSection<T> extends Omit<Section<T>, 'type'> {
|
|
|
41
42
|
progressType?: Omit<Section<T>, 'type'>;
|
|
42
43
|
}
|
|
43
44
|
export declare type ProgressTypesSection = Section<'progressType'> & ProgressTypeSection<'progressType'>;
|
|
44
|
-
export declare type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | ConditionalFormattingSection | GoalLineSection | ProgressTypesSection | HeadlineSection | RichTextFormatSection | Section<'trends'>;
|
|
45
|
+
export declare type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | WaterfallColorsSection | ConditionalFormattingSection | GoalLineSection | ProgressTypesSection | HeadlineSection | RichTextFormatSection | Section<'trends'>;
|
|
45
46
|
export declare type FormatPanelConfig = Array<FormatPanelSection>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { VizzlyComponents } from '../../types';
|
|
3
|
+
import { WaterfallColorsSection as WaterfallColorsSectionType } from '../../../../shared-logic/src/FormatPanelConfig/types';
|
|
4
|
+
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
5
|
+
declare type Props = VizzlyComponents.ComponentOverrides.Props.SectionProps<WaterfallColorsSectionType> & VizzlyComponents.EditorSectionProps<Component.Attributes>;
|
|
6
|
+
export declare const WaterfallColorsSection: FunctionComponent<Props>;
|
|
7
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizzly/dashboard",
|
|
3
3
|
"author": "james@vizzly.co",
|
|
4
|
-
"version": "0.14.4-dev-
|
|
4
|
+
"version": "0.14.4-dev-452014891c726bda8e71210563e32bb225b30c86",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "./dist/dashboard/src/index.d.ts",
|
|
7
7
|
"module": "./dist/dashboard.esm.js",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ConditionalFormattingRule } from '../../../../../shared-logic/src/ChartsV2/types';
|
|
2
|
-
import { LegendItem } from '../../../../../shared-logic/src/WaterfallChart/types';
|
|
3
|
-
export declare function getBarFill(bars: LegendItem[], conditionalFormattingRules: ConditionalFormattingRule[], barKey: string, barValues?: {
|
|
4
|
-
[keyId: string]: string | number | Date | null;
|
|
5
|
-
} | number): string | undefined;
|