@ai-matrx/design-system 0.49.48 → 0.49.50

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ### Unreleased
4
+
5
+ - **The drill chart's value axis says the number the Measure printed, never the raw value** (localhost walk of `/administration/usage`, 2026-09-30). When a Measure's format converts its unit (the usage explorer stores dollars and prints points at 20,000 a dollar) and the printed tick is too long for the axis, the tick used to compact the RAW value, so a 9,000,000-point day read `450` under "Cost (points) by day". `drillChartAxisNumber` now compacts the number the format printed (`9.0M`), keeping a one-character currency sign (`$1.2k`). Proof: `drill-chart-axis.test.ts`. Consumer action: none.
6
+
7
+ ## 0.49.50
8
+
9
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
10
+ `git diff npm/design-system/v0.49.48..npm/design-system/v0.49.50 -- apps/shared/design-system`).
11
+ No source changes intended and no consumer action required.
12
+
13
+ ## 0.49.49
14
+
15
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
16
+ `git diff npm/design-system/v0.49.48..npm/design-system/v0.49.49 -- apps/shared/design-system`).
17
+ No source changes intended and no consumer action required.
18
+
3
19
  ## 0.49.48
4
20
 
5
21
  Automatic changed-only republish (docs/metadata drift since the last tag — see
package/README.md CHANGED
@@ -162,6 +162,16 @@ The gate validates declarations and exports against the packed tarball, installs
162
162
 
163
163
  ## Data tables
164
164
 
165
+ The browser-only table playground has two explicit presets: **Capability examples** is its
166
+ illustrative starting configuration, while **Package defaults** reflects the table source's
167
+ defaults. The latter uses normal density unless a host provides one, standalone zebra rows,
168
+ sticky headers, view tabs, column resizing/reordering, copy, selection, and 25-row pagination;
169
+ grouping, saved views, summary, spreadsheet, editing, formatting, styling, facets, detail, and
170
+ validation require configuration. Its Status review and Owner review views are
171
+ provided local starting examples using the same saved-view host contract as user-created views.
172
+ They are editable and persist only in that browser's local storage; production hosts own
173
+ durable storage, authorization, and any database-backed truth.
174
+
165
175
  Desktop columns are adjustable by default. Optional `summary` supplies KPI
166
176
  metrics above the toolbar and totals aligned to column IDs below the rows.
167
177
  Callbacks receive the filtered rows before pagination, plus `isFiltered` and
@@ -503,7 +503,16 @@ function drillChartAxisNumber(measure, value) {
503
503
  const compact = Math.abs(value) < 1e3 && !Number.isInteger(value) ? String(Math.round(value * 10) / 10) : (0, import_format2.formatCount)(value, { style: "compact" });
504
504
  if (!measure?.format) return compact;
505
505
  const said = measure.format(value);
506
- return said.length <= 7 ? said : compact;
506
+ if (said.length <= 7) return said;
507
+ const printed = said.match(/^([^\d-]*)(-?\d[\d,]*(?:\.\d+)?)/);
508
+ if (!printed) return compact;
509
+ const numeric = printed[2];
510
+ if (!numeric) return compact;
511
+ const n = Number(numeric.replace(/,/g, ""));
512
+ if (!Number.isFinite(n)) return compact;
513
+ const prefix = printed[1]?.trim() ?? "";
514
+ const shown = Math.abs(n) < 1e3 && !Number.isInteger(n) ? String(Math.round(n * 10) / 10) : (0, import_format2.formatCount)(n, { style: "compact" });
515
+ return prefix.length <= 1 ? `${prefix}${shown}` : shown;
507
516
  }
508
517
  var axisNumber = drillChartAxisNumber;
509
518
  function MatrxDrillChart({