@vizzly/dashboard 0.14.4-dev-ccaf75085dc6cf02a2e1f26d9978e485cb4a195e → 0.14.4-dev-fe28df18fa05120d1244df24b563dc85883e8f02

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.
@@ -11926,6 +11926,11 @@ function filterFields(originalFields, options) {
11926
11926
  return !isCustomBuildMetric(field);
11927
11927
  });
11928
11928
  }
11929
+ if (options != null && options.removeAggregateCustomBuildMetric) {
11930
+ fields = fields.filter(function (field) {
11931
+ return !isCustomBuildMetric(field) || field.metric.type === PropertyType.Field || field.metric.type === PropertyType.NumberInput;
11932
+ });
11933
+ }
11929
11934
  if (options != null && options.removeConditional) {
11930
11935
  fields = fields.filter(function (field) {
11931
11936
  return !isConditional(field);
@@ -12126,7 +12131,8 @@ var buildDownloadQuery = function buildDownloadQuery(dataSet, maxCSVDownloadLimi
12126
12131
  var fields = filterFields(dataSet.fields, {
12127
12132
  removeAggregateMaths: true,
12128
12133
  removePercentage: true,
12129
- removeConditional: true
12134
+ removeConditional: true,
12135
+ removeAggregateCustomBuildMetric: true
12130
12136
  });
12131
12137
  var measure = [].concat(fields).map(function (field) {
12132
12138
  return {
@@ -1,2 +1,2 @@
1
- import { Aggregate, IfLogic, NumberInput, Operator, Field as FieldMetric, Variable } from '../../../../shared-logic/src/CustomField/CustomMetric/types';
1
+ import { Aggregate, IfLogic, NumberInput, Operator, Field as FieldMetric, Variable } from './CustomMetric/types';
2
2
  export declare function metricValuesHaveAggregates(values: (Operator | IfLogic | Aggregate | NumberInput | FieldMetric | Variable)[] | undefined): boolean;
@@ -9,6 +9,7 @@ export declare type FieldFilterOptions = {
9
9
  removeDateCalculations?: boolean;
10
10
  removeConditional?: boolean;
11
11
  removeCustomBuildMetric?: boolean;
12
+ removeAggregateCustomBuildMetric?: boolean;
12
13
  onlyDimensions?: boolean;
13
14
  onlyMeasures?: boolean;
14
15
  forComponent?: ComponentType;
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-ccaf75085dc6cf02a2e1f26d9978e485cb4a195e",
4
+ "version": "0.14.4-dev-fe28df18fa05120d1244df24b563dc85883e8f02",
5
5
  "source": "src/index.tsx",
6
6
  "types": "./dist/dashboard/src/index.d.ts",
7
7
  "module": "./dist/dashboard.esm.js",
@@ -56,7 +56,7 @@
56
56
  "@vizzly/api-client": "0.0.53",
57
57
  "@vizzly/joi": "^17.7.0",
58
58
  "@vizzly/semantic-layer-public": "0.0.231",
59
- "@vizzly/sqlbuilder-public": "0.1.41",
59
+ "@vizzly/sqlbuilder-public": "0.1.42",
60
60
  "chroma-js": "2.4.2",
61
61
  "copy-to-clipboard": "^3.3.3",
62
62
  "cross-fetch": "^4.0.0",