@malloydata/render 0.0.119-dev240118211537 → 0.0.119-dev240123183113

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.
@@ -61,7 +61,7 @@ function getColumnWidth(f, metadata) {
61
61
  let width = 0;
62
62
  if (f.isAtomicField()) {
63
63
  // TODO: get font styles from theme
64
- const font = `12px Inter, sans-serif`;
64
+ const font = '12px Inter, sans-serif';
65
65
  const titleWidth = (0, util_1.getTextWidth)(f.name, font);
66
66
  if (f.isAtomicField() && f.isString()) {
67
67
  width =
@@ -69,7 +69,7 @@ function getColumnWidth(f, metadata) {
69
69
  COLUMN_BUFFER;
70
70
  }
71
71
  else if (f.isAtomicField() && f.isNumber()) {
72
- const formattedValue = (0, render_numeric_field_1.renderNumericField)(f, fieldMeta.max);
72
+ const formattedValue = fieldMeta.max === null ? '∅' : (0, render_numeric_field_1.renderNumericField)(f, fieldMeta.max);
73
73
  width =
74
74
  Math.max((0, util_1.getTextWidth)(formattedValue, font), titleWidth) +
75
75
  COLUMN_BUFFER;
@@ -28,7 +28,7 @@ exports.default = meta;
28
28
  exports.ProductsTable = {
29
29
  args: {
30
30
  source: 'products',
31
- view: `records`,
31
+ view: 'records',
32
32
  },
33
33
  };
34
34
  exports.ProductsTableCustomTheme = {
@@ -28,19 +28,19 @@ exports.default = meta;
28
28
  exports.ModelThemeOverride = {
29
29
  args: {
30
30
  source: 'products',
31
- view: `records`,
31
+ view: 'records',
32
32
  },
33
33
  };
34
34
  exports.ViewThemeOverride = {
35
35
  args: {
36
36
  source: 'products',
37
- view: `records_override`,
37
+ view: 'records_override',
38
38
  },
39
39
  };
40
40
  exports.ViewThemeOverrideCSS = {
41
41
  args: {
42
42
  source: 'products',
43
- view: `records_override`,
43
+ view: 'records_override',
44
44
  classes: 'night',
45
45
  },
46
46
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/render",
3
- "version": "0.0.119-dev240118211537",
3
+ "version": "0.0.119-dev240123183113",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@lit/context": "^1.1.0",
28
- "@malloydata/malloy": "^0.0.119-dev240118211537",
28
+ "@malloydata/malloy": "^0.0.119-dev240123183113",
29
29
  "@types/luxon": "^2.4.0",
30
30
  "lit": "^3.0.2",
31
31
  "lodash": "^4.17.20",