@vizzly/dashboard 0.14.4-dev-78fb4397022e1606f7c0da5d46b2127876d1554d → 0.14.4-dev-d473758fee30bb90a645bebc2b12058901ef984c

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.
@@ -66764,6 +66764,9 @@ var MathModal = function MathModal(props) {
66764
66764
  removeConditional: true,
66765
66765
  removeCustomBuildMetric: true
66766
66766
  };
66767
+ var aggregateMathsFieldOptions = _extends({}, numberFieldsOptions, {
66768
+ onlyFieldTypes: ['number', 'string']
66769
+ });
66767
66770
  var numberFields = filterFields(props.dataSet.fields, numberFieldsOptions);
66768
66771
  var options = getMathRadioButtonOptions(props.componentType);
66769
66772
  var getValue = function getValue(fieldValue) {
@@ -66904,7 +66907,7 @@ var MathModal = function MathModal(props) {
66904
66907
  measure: left && isFlatField(left) ? [left] : left != null && left.left ? [left == null ? void 0 : left.left] : []
66905
66908
  },
66906
66909
  dataSet: props.dataSet,
66907
- fieldFilterOptions: numberFieldsOptions
66910
+ fieldFilterOptions: aggregateMathsFieldOptions
66908
66911
  }, "" + left)
66909
66912
  }), left && !!isNestedField(left) && jsxs(Fragment, {
66910
66913
  children: [jsx(View, {
@@ -66942,7 +66945,7 @@ var MathModal = function MathModal(props) {
66942
66945
  measure: left != null && left.right ? [left == null ? void 0 : left.right] : []
66943
66946
  },
66944
66947
  dataSet: props.dataSet,
66945
- fieldFilterOptions: numberFieldsOptions
66948
+ fieldFilterOptions: aggregateMathsFieldOptions
66946
66949
  })
66947
66950
  })]
66948
66951
  }), jsx(View, {
@@ -66996,7 +66999,7 @@ var MathModal = function MathModal(props) {
66996
66999
  measure: right && isFlatField(right) ? [right] : right != null && right.left ? [right == null ? void 0 : right.left] : []
66997
67000
  },
66998
67001
  dataSet: props.dataSet,
66999
- fieldFilterOptions: numberFieldsOptions
67002
+ fieldFilterOptions: aggregateMathsFieldOptions
67000
67003
  }, "" + right)
67001
67004
  }), right && isNestedField(right) && jsxs(Fragment, {
67002
67005
  children: [jsx(View, {
@@ -67035,7 +67038,7 @@ var MathModal = function MathModal(props) {
67035
67038
  measure: right.right ? [right.right] : []
67036
67039
  },
67037
67040
  dataSet: props.dataSet,
67038
- fieldFilterOptions: numberFieldsOptions
67041
+ fieldFilterOptions: aggregateMathsFieldOptions
67039
67042
  })
67040
67043
  })]
67041
67044
  }), jsx(View, {
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-78fb4397022e1606f7c0da5d46b2127876d1554d",
4
+ "version": "0.14.4-dev-d473758fee30bb90a645bebc2b12058901ef984c",
5
5
  "source": "src/index.tsx",
6
6
  "types": "./dist/dashboard/src/index.d.ts",
7
7
  "module": "./dist/dashboard.esm.js",