@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.
@@ -0,0 +1,6 @@
1
+ import { FunctionComponent } from 'react';
2
+ export declare const DeleteAction: FunctionComponent<{
3
+ onDeleteItem: () => void;
4
+ id: string;
5
+ label: string;
6
+ }>;
@@ -4,5 +4,5 @@ import * as Types from './types';
4
4
  export declare const CustomMetric: FunctionComponent<{
5
5
  dataSet: DataSet;
6
6
  metric: Types.Metric;
7
- onChange?: (metric: Types.Metric) => void;
7
+ onChange?: (metric: Types.Metric | undefined) => void;
8
8
  }>;
@@ -0,0 +1,5 @@
1
+ import { FunctionComponent } from 'react';
2
+ import * as Types from './types';
3
+ export declare const MetricOverview: FunctionComponent<{
4
+ metric: Types.Metric | undefined;
5
+ }>;
@@ -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 addValue(value: Types.Operator | Types.IfLogic | Types.NumberInput | Types.Field | Types.Variable, selected: PickerThing | undefined): {
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: Types.PropertyType;
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: Types.PropertyType;
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-input",
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.2",
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.216",
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",