@ai-matrx/records-ui 0.101.28 → 0.101.30
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 +12 -0
- package/dist/index.cjs +2209 -2183
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +57 -31
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +5 -3
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +6 -4
- package/dist/pickers.js.map +1 -1
- package/package.json +7 -5
package/dist/pickers.cjs
CHANGED
|
@@ -4639,7 +4639,7 @@ function SourceArchivedValue({ state }) {
|
|
|
4639
4639
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-xs italic text-muted-foreground", title: sourceArchivedSentence(state), "data-records-source-archived": state.field_id ?? "", children: SOURCE_ARCHIVED_WORDS });
|
|
4640
4640
|
}
|
|
4641
4641
|
var ABSENCE_WORDS = ABSENCE_WORD_LABEL;
|
|
4642
|
-
function renderValue(field, value, document2, labels, stillWaitingFor) {
|
|
4642
|
+
function renderValue(field, value, document2, labels, stillWaitingFor, look) {
|
|
4643
4643
|
const archivedSource = (0, import_records15.sourceArchivedOf)(value);
|
|
4644
4644
|
if (archivedSource) return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SourceArchivedValue, { state: archivedSource });
|
|
4645
4645
|
const envelope = envelopeFor(document2, field.key);
|
|
@@ -4659,6 +4659,7 @@ function renderValue(field, value, document2, labels, stillWaitingFor) {
|
|
|
4659
4659
|
if (computed?.why) {
|
|
4660
4660
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-muted-foreground", title: computed.why, "data-records-empty-why": computed.kind, children: "\u2014" });
|
|
4661
4661
|
}
|
|
4662
|
+
if (look?.blankEmpty) return null;
|
|
4662
4663
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-muted-foreground", children: "\u2014" });
|
|
4663
4664
|
}
|
|
4664
4665
|
if (isSignatureField(field)) return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SignatureValue, { value, fieldKey: field.key, document: document2 });
|
|
@@ -4674,8 +4675,8 @@ function renderValue(field, value, document2, labels, stillWaitingFor) {
|
|
|
4674
4675
|
if (kv) return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(KindValueCell, { kv, where: "cell", title: field.label });
|
|
4675
4676
|
const chosen = kind === "select" || kind === "multi_select";
|
|
4676
4677
|
const chipOf = (item) => {
|
|
4677
|
-
const
|
|
4678
|
-
return { className:
|
|
4678
|
+
const chipLook = choiceChipLookOf(field, item, scalarText(field, item, labels));
|
|
4679
|
+
return { className: chipLook.className, tinted: chipLook.color !== null, dot: import_data_table4.SWATCH_CLASS[chipLook.color ?? "gray"] };
|
|
4679
4680
|
};
|
|
4680
4681
|
if (chosen) {
|
|
4681
4682
|
const items = Array.isArray(value) ? value : [value];
|
|
@@ -4689,6 +4690,7 @@ function renderValue(field, value, document2, labels, stillWaitingFor) {
|
|
|
4689
4690
|
"data-records-choice-chip": "",
|
|
4690
4691
|
...chip.tinted ? { "data-records-choice-tint": "" } : {},
|
|
4691
4692
|
children: [
|
|
4693
|
+
look?.choiceDot ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { "aria-hidden": "true", "data-records-choice-dot": "", className: (0, import_design_system20.cn)("mr-1.5 inline-block size-1.5 shrink-0 rounded-full", chip.dot) }) : null,
|
|
4692
4694
|
statusMark(field, item, Array.isArray(value) ? void 0 : document2),
|
|
4693
4695
|
scalarText(field, item, labels, Array.isArray(value) ? void 0 : stillWaitingFor)
|
|
4694
4696
|
]
|