@object-ui/components 4.4.0 → 4.5.0

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,32 @@
1
1
  # @object-ui/components
2
2
 
3
+ ## 4.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6b6afd1: `page:tabs` items now render their optional `icon` (lucide name) and `count`
8
+ badge after the label. Counts >= 1000 are shortened to compact form
9
+ (e.g. `1.2k`). Spec-aligned: `PageTabsItem.icon` and `PageTabsItem.count`.
10
+ - aa7855f: `page:tabs` now auto-derives count badges from any descendant `record:related_list`.
11
+
12
+ For every tab item whose `count` is not set explicitly, the renderer walks the tab's children (depth-first) to find the first `record:related_list` schema node and issues a `limit:1` find through the active `dataSource` to read the matching `total`. The badge appears in the tab strip without spec authors having to wire counts manually.
13
+
14
+ Behavior:
15
+ - Explicit `count` in the spec always wins.
16
+ - Probe is filtered by the parent record id via `relationshipField` when present (skipped until the parent record is loaded).
17
+ - Best-effort: a failed probe just omits the badge — no error surface.
18
+ - Cancellable on unmount.
19
+
20
+ ### Patch Changes
21
+
22
+ - 170d89f: PageTabsRenderer auto-count now descends into accordion (`properties.items`) and sums counts when a tab contains multiple `record:related_list` widgets — matches Salesforce "Related" tab semantics. Previously only the first list was probed (or none, if wrapped in an accordion).
23
+ - Updated dependencies [ab5e281]
24
+ - Updated dependencies [22fa558]
25
+ - @object-ui/types@4.5.0
26
+ - @object-ui/i18n@4.5.0
27
+ - @object-ui/core@4.5.0
28
+ - @object-ui/react@4.5.0
29
+
3
30
  ## 4.4.0
4
31
 
5
32
  ### Patch Changes
package/dist/index.css CHANGED
@@ -549,6 +549,9 @@
549
549
  .mr-1 {
550
550
  margin-right: calc(var(--spacing) * 1);
551
551
  }
552
+ .mr-1\.5 {
553
+ margin-right: calc(var(--spacing) * 1.5);
554
+ }
552
555
  .mr-2 {
553
556
  margin-right: calc(var(--spacing) * 2);
554
557
  }
@@ -585,6 +588,9 @@
585
588
  .ml-1 {
586
589
  margin-left: calc(var(--spacing) * 1);
587
590
  }
591
+ .ml-1\.5 {
592
+ margin-left: calc(var(--spacing) * 1.5);
593
+ }
588
594
  .ml-2 {
589
595
  margin-left: calc(var(--spacing) * 2);
590
596
  }
@@ -1112,6 +1118,9 @@
1112
1118
  .min-w-11 {
1113
1119
  min-width: calc(var(--spacing) * 11);
1114
1120
  }
1121
+ .min-w-\[1rem\] {
1122
+ min-width: 1rem;
1123
+ }
1115
1124
  .min-w-\[8rem\] {
1116
1125
  min-width: 8rem;
1117
1126
  }