@vizzly/dashboard 0.14.4-dev-125bf775444301efad7fc0dd44a48d3ff789043d → 0.14.4-dev-d73f29b3b6ca549def0e91cbf6ffb96cc4b133a2
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/BarChart/BarChart.d.ts +19 -0
- package/dist/charts/src/v2/components/BarChart/index.d.ts +1 -0
- package/dist/charts/src/v2/components/BarChart/utils.d.ts +7 -0
- package/dist/charts/src/v2/index.d.ts +1 -0
- package/dist/charts/src/v2/utils/buildMargin.d.ts +9 -0
- package/dist/charts/src/v2/utils/getTooltipData.d.ts +3 -1
- package/dist/dashboard.cjs.development.js +239 -236
- package/dist/dashboard.cjs.production.min.js +1 -1
- package/dist/dashboard.esm.js +240 -237
- package/dist/shared-logic/src/BarChartV2/adjustTicks.d.ts +1 -0
- package/dist/shared-logic/src/BarChartV2/types.d.ts +74 -0
- package/dist/shared-logic/src/ChartsV2/types.d.ts +5 -0
- package/dist/shared-logic/src/ConditionalFormatting/utils.d.ts +7 -0
- package/dist/shared-logic/src/LineChartV2/getScaleAndTicks.d.ts +2 -1
- package/dist/shared-logic/src/LineChartV2/types.d.ts +1 -5
- package/dist/shared-ui/src/components/ChartHelper.d.ts +1 -0
- package/dist/shared-ui/src/components/DataTable/buildConditionalFormattingBoundaries.d.ts +1 -0
- package/dist/shared-ui/src/library/ConditionalFormatting.d.ts +2 -8
- package/package.json +1 -1
- package/dist/charts/src/v2/components/LineChart/buildMargin.d.ts +0 -9
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Tick } from '../ChartsV2/types';
|
|
1
2
|
import { DataType } from '../Field/types';
|
|
2
3
|
export declare type KeyId = string;
|
|
3
4
|
export declare type Operator = string;
|
|
@@ -35,11 +36,6 @@ export declare type Key = {
|
|
|
35
36
|
keyFormatted: string;
|
|
36
37
|
dataType: DataType;
|
|
37
38
|
};
|
|
38
|
-
export declare type Tick<DataType> = {
|
|
39
|
-
value: DataType;
|
|
40
|
-
formattedValue: string | null;
|
|
41
|
-
scaleValue: DataType | null;
|
|
42
|
-
};
|
|
43
39
|
export declare type LineChartRepresentation = {
|
|
44
40
|
keys: {
|
|
45
41
|
[key: KeyId]: Key;
|
|
@@ -6,6 +6,7 @@ import { DashboardBehaviour, LabelFormat } from '../contexts/DashboardBehaviour/
|
|
|
6
6
|
import { ConditionalFormattingOption } from '../../../charts/src/Legend/Legend';
|
|
7
7
|
import { ConditionalFormattingBoundary } from './DataTable/buildConditionalFormattingBoundaries';
|
|
8
8
|
import { TextOverride } from '../../../shared-logic/src/Translations/types';
|
|
9
|
+
import * as ConditionalFormatting from '../../../shared-logic/src/ConditionalFormatting/utils';
|
|
9
10
|
export declare type AxisLabelConfig = {
|
|
10
11
|
prefix?: string;
|
|
11
12
|
postfix?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
2
2
|
import { Result as ResultType } from '../../../../shared-logic/src/Result/types';
|
|
3
|
+
import * as ConditionalFormatting from '../../../../shared-logic/src/ConditionalFormatting/utils';
|
|
3
4
|
export declare type ConditionalFormattingBoundary = Component.ConditionalFormatting.Rule & {
|
|
4
5
|
boundaries?: number[];
|
|
5
6
|
};
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Component } from '../../../shared-logic/src/Component/types';
|
|
3
|
-
import
|
|
3
|
+
import * as ConditionalFormatting from '../../../shared-logic/src/ConditionalFormatting/utils';
|
|
4
4
|
export declare function getFormattedByRule({ type, value }: Component.ConditionalFormatting.DisplayRule): React.CSSProperties;
|
|
5
|
-
export declare type ComparisonFilter = {
|
|
6
|
-
op: QueryAttributes.Operator;
|
|
7
|
-
value: QueryAttributes.Filter['value'];
|
|
8
|
-
};
|
|
9
|
-
export declare const compare: (filter: ComparisonFilter, recordValue: unknown) => any;
|
|
10
|
-
export declare const conditionIsMet: (filter: ComparisonFilter, value: number | string | boolean) => boolean;
|
|
11
5
|
export declare function getFormattedCellClass({ filter, cellValue, type, value, }: Component.ConditionalFormatting.DisplayRule & {
|
|
12
6
|
cellValue: number | string;
|
|
13
|
-
filter: ComparisonFilter;
|
|
7
|
+
filter: ConditionalFormatting.ComparisonFilter;
|
|
14
8
|
}): React.CSSProperties;
|
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-d73f29b3b6ca549def0e91cbf6ffb96cc4b133a2",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "./dist/dashboard/src/index.d.ts",
|
|
7
7
|
"module": "./dist/dashboard.esm.js",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LineChartRepresentation } from '../../../../../shared-logic/src/LineChartV2/types';
|
|
2
|
-
export declare const buildMargin: (chart: LineChartRepresentation, showYAxisLabels: boolean) => {
|
|
3
|
-
top: number;
|
|
4
|
-
right: number;
|
|
5
|
-
bottom: number;
|
|
6
|
-
left: number;
|
|
7
|
-
bottomTitleOffset: number;
|
|
8
|
-
leftTitleOffset: number;
|
|
9
|
-
};
|