@ai-matrx/records-ui 0.101.28 → 0.101.29

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/dist/pickers.js CHANGED
@@ -4407,7 +4407,7 @@ function BindingDetails({
4407
4407
  import { useFields as useFields3, useRecord, useTable as useTable3 } from "@ai-matrx/records/react";
4408
4408
 
4409
4409
  // src/values.tsx
4410
- import { formatColumnValue } from "@ai-matrx/design-system/data-table";
4410
+ import { SWATCH_CLASS, formatColumnValue } from "@ai-matrx/design-system/data-table";
4411
4411
  import { formatFieldValue as formatFieldValue3 } from "@ai-matrx/design-system/field-formats";
4412
4412
  import { Badge as Badge5, cn as cn16 } from "@ai-matrx/design-system";
4413
4413
 
@@ -4649,7 +4649,7 @@ function SourceArchivedValue({ state }) {
4649
4649
  return /* @__PURE__ */ jsx23("span", { className: "text-xs italic text-muted-foreground", title: sourceArchivedSentence(state), "data-records-source-archived": state.field_id ?? "", children: SOURCE_ARCHIVED_WORDS });
4650
4650
  }
4651
4651
  var ABSENCE_WORDS = ABSENCE_WORD_LABEL;
4652
- function renderValue(field, value, document2, labels, stillWaitingFor) {
4652
+ function renderValue(field, value, document2, labels, stillWaitingFor, look) {
4653
4653
  const archivedSource = sourceArchivedOf2(value);
4654
4654
  if (archivedSource) return /* @__PURE__ */ jsx23(SourceArchivedValue, { state: archivedSource });
4655
4655
  const envelope = envelopeFor(document2, field.key);
@@ -4669,6 +4669,7 @@ function renderValue(field, value, document2, labels, stillWaitingFor) {
4669
4669
  if (computed?.why) {
4670
4670
  return /* @__PURE__ */ jsx23("span", { className: "text-muted-foreground", title: computed.why, "data-records-empty-why": computed.kind, children: "\u2014" });
4671
4671
  }
4672
+ if (look?.blankEmpty) return null;
4672
4673
  return /* @__PURE__ */ jsx23("span", { className: "text-muted-foreground", children: "\u2014" });
4673
4674
  }
4674
4675
  if (isSignatureField(field)) return /* @__PURE__ */ jsx23(SignatureValue, { value, fieldKey: field.key, document: document2 });
@@ -4684,8 +4685,8 @@ function renderValue(field, value, document2, labels, stillWaitingFor) {
4684
4685
  if (kv) return /* @__PURE__ */ jsx23(KindValueCell, { kv, where: "cell", title: field.label });
4685
4686
  const chosen = kind === "select" || kind === "multi_select";
4686
4687
  const chipOf = (item) => {
4687
- const look = choiceChipLookOf(field, item, scalarText(field, item, labels));
4688
- return { className: look.className, tinted: look.color !== null };
4688
+ const chipLook = choiceChipLookOf(field, item, scalarText(field, item, labels));
4689
+ return { className: chipLook.className, tinted: chipLook.color !== null, dot: SWATCH_CLASS[chipLook.color ?? "gray"] };
4689
4690
  };
4690
4691
  if (chosen) {
4691
4692
  const items = Array.isArray(value) ? value : [value];
@@ -4699,6 +4700,7 @@ function renderValue(field, value, document2, labels, stillWaitingFor) {
4699
4700
  "data-records-choice-chip": "",
4700
4701
  ...chip.tinted ? { "data-records-choice-tint": "" } : {},
4701
4702
  children: [
4703
+ look?.choiceDot ? /* @__PURE__ */ jsx23("span", { "aria-hidden": "true", "data-records-choice-dot": "", className: cn16("mr-1.5 inline-block size-1.5 shrink-0 rounded-full", chip.dot) }) : null,
4702
4704
  statusMark(field, item, Array.isArray(value) ? void 0 : document2),
4703
4705
  scalarText(field, item, labels, Array.isArray(value) ? void 0 : stillWaitingFor)
4704
4706
  ]