@ai-matrx/records-ui 0.101.27 → 0.101.28
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 +6 -0
- package/dist/index.cjs +9 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records-ui
|
|
2
2
|
|
|
3
|
+
## 0.101.28
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/records-ui/v0.101.27..npm/records-ui/v0.101.28 -- apps/shared/records-ui`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
3
9
|
## 0.101.27
|
|
4
10
|
|
|
5
11
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/index.cjs
CHANGED
|
@@ -13747,6 +13747,14 @@ function asField(f) {
|
|
|
13747
13747
|
relation_target: f.relation_target ?? null
|
|
13748
13748
|
};
|
|
13749
13749
|
}
|
|
13750
|
+
function CustomValue({ field: field2, value }) {
|
|
13751
|
+
const choice = isChoiceField(field2);
|
|
13752
|
+
const index = useChoiceOptions(choice ? [field2] : [], choice ? [field2.key] : []);
|
|
13753
|
+
const options = index.get(field2.key);
|
|
13754
|
+
if (!choice || !options) return renderValue(field2, value);
|
|
13755
|
+
const worded = (v) => optionFor(options, v)?.label ?? v;
|
|
13756
|
+
return renderValue(field2, Array.isArray(value) ? value.map(worded) : worded(value));
|
|
13757
|
+
}
|
|
13750
13758
|
function CustomFieldsSection({
|
|
13751
13759
|
entityToken,
|
|
13752
13760
|
recordId,
|
|
@@ -14066,7 +14074,7 @@ function CustomFieldsSection({
|
|
|
14066
14074
|
setCellValue(values[f.key]);
|
|
14067
14075
|
setCellKey(f.key);
|
|
14068
14076
|
},
|
|
14069
|
-
children: isEmptyValue(values[f.key]) ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-muted-foreground", children: "\u2014" }) :
|
|
14077
|
+
children: isEmptyValue(values[f.key]) ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-muted-foreground", children: "\u2014" }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(CustomValue, { field: asField(f), value: values[f.key] })
|
|
14070
14078
|
}
|
|
14071
14079
|
) })
|
|
14072
14080
|
] }, f.id)) })
|