@vizzly/dashboard 0.14.2 → 0.14.3-dev-e0dccd9be5caaf4dfe5560913b97a693152aedb8
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/index.js +1 -1
- package/dist/shared-ui/src/base/DeleteAction.d.ts +6 -0
- package/dist/shared-ui/src/components/CustomMetric/CustomMetric.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/MetricOverview.d.ts +5 -0
- package/dist/shared-ui/src/components/CustomMetric/buildCustomMetric.d.ts +2 -1
- package/dist/shared-ui/src/components/CustomMetric/formatFormula.d.ts +3 -0
- package/dist/shared-ui/src/components/CustomMetric/pickAvailableItems.d.ts +2 -2
- package/dist/shared-ui/src/components/CustomMetric/types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ export declare function deleteOperatorValue(value: Types.Operator, index: number
|
|
|
10
10
|
op: Types.OperatorType;
|
|
11
11
|
values: (Types.Operator | Types.IfLogic | Types.NumberInput | Types.Field | Types.Variable)[];
|
|
12
12
|
};
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function addToOperator(value: Types.Operator | Types.IfLogic | Types.NumberInput | Types.Field | Types.Variable, selected: PickerThing | undefined): {
|
|
14
14
|
type: Types.PropertyType.Operator;
|
|
15
15
|
op: Types.OperatorType;
|
|
16
16
|
values: (Types.Operator | Types.IfLogic | Types.NumberInput | Types.Field | Types.Variable)[];
|
|
@@ -32,3 +32,4 @@ export declare function addValue(value: Types.Operator | Types.IfLogic | Types.N
|
|
|
32
32
|
type: Types.PropertyType.Variable;
|
|
33
33
|
value: string;
|
|
34
34
|
};
|
|
35
|
+
export declare function addToIfStatement(selected: PickerThing | undefined): Types.Operator | Types.NumberInput | Types.Field | Types.Variable | Types.IfLogic | undefined;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as Types from './types';
|
|
2
|
+
import { TextOverride } from '../../../../shared-logic/src/Translations/types';
|
|
3
|
+
export declare const formatFormula: (obj: Types.Operator | Types.NumberInput | Types.Field | Types.Variable | Types.IfLogic | undefined, isNested: boolean | undefined, textOverride: TextOverride) => string;
|
|
@@ -6,7 +6,7 @@ declare type Selection = {
|
|
|
6
6
|
export declare const pickAvailableItems: (selection: Selection) => ({
|
|
7
7
|
things: any;
|
|
8
8
|
title: string;
|
|
9
|
-
id:
|
|
9
|
+
id: string;
|
|
10
10
|
} | {
|
|
11
11
|
things: any;
|
|
12
12
|
title: string;
|
|
@@ -14,7 +14,7 @@ export declare const pickAvailableItems: (selection: Selection) => ({
|
|
|
14
14
|
})[];
|
|
15
15
|
export declare const availableItems: () => ({
|
|
16
16
|
title: string;
|
|
17
|
-
id:
|
|
17
|
+
id: string;
|
|
18
18
|
things: {
|
|
19
19
|
id: Types.OperatorType;
|
|
20
20
|
type: Types.PropertyType;
|
|
@@ -2,7 +2,7 @@ import { QueryAttributes } from '../../../../shared-logic/src/QueryAttributes/ty
|
|
|
2
2
|
export declare enum PropertyType {
|
|
3
3
|
Operator = "operator",
|
|
4
4
|
IfLogic = "ifLogic",
|
|
5
|
-
NumberInput = "number
|
|
5
|
+
NumberInput = "number",
|
|
6
6
|
Variable = "variable",
|
|
7
7
|
Field = "field"
|
|
8
8
|
}
|
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
|
+
"version": "0.14.3-dev-e0dccd9be5caaf4dfe5560913b97a693152aedb8",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "./dist/dashboard/src/index.d.ts",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@vizzly/api-client": "0.0.43",
|
|
43
43
|
"@vizzly/dnd-backend": "0.0.4",
|
|
44
44
|
"@vizzly/joi": "^17.7.0",
|
|
45
|
-
"@vizzly/semantic-layer-public": "0.0.
|
|
45
|
+
"@vizzly/semantic-layer-public": "0.0.218",
|
|
46
46
|
"@vizzly/sqlbuilder-public": "0.1.24",
|
|
47
47
|
"chroma-js": "2.4.2",
|
|
48
48
|
"copy-to-clipboard": "^3.3.3",
|