@ai-matrx/records-ui 0.95.10 → 0.95.14

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
@@ -4583,7 +4583,7 @@ function KindValueCell({
4583
4583
  }
4584
4584
 
4585
4585
  // src/values.tsx
4586
- import { newerKindWords } from "@ai-matrx/records";
4586
+ import { newerKindWords, sourceArchivedOf } from "@ai-matrx/records";
4587
4587
  import { Fragment as Fragment6, jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
4588
4588
  function statusMark(field, item, document2) {
4589
4589
  const mark = statusMarkOf(field, item, document2);
@@ -4627,8 +4627,18 @@ function computedEmptyOf(field, document2) {
4627
4627
  if (!hasFormula(field)) return { kind: "formula", sentence: "Worked out once its formula is in place" };
4628
4628
  return { kind: "formula" };
4629
4629
  }
4630
+ var SOURCE_ARCHIVED_WORDS = "Source archived";
4631
+ function sourceArchivedSentence(state) {
4632
+ if (!state.label) return "A column it reads is archived";
4633
+ return state.table ? `${state.label} on ${state.table} is archived` : `${state.label} is archived`;
4634
+ }
4635
+ function SourceArchivedValue({ state }) {
4636
+ 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 });
4637
+ }
4630
4638
  var ABSENCE_WORDS = ABSENCE_WORD_LABEL;
4631
4639
  function renderValue(field, value, document2, labels, stillWaitingFor) {
4640
+ const archivedSource = sourceArchivedOf(value);
4641
+ if (archivedSource) return /* @__PURE__ */ jsx23(SourceArchivedValue, { state: archivedSource });
4632
4642
  const envelope = envelopeFor(document2, field.key);
4633
4643
  if (envelope?.absent) {
4634
4644
  return /* @__PURE__ */ jsx23("span", { className: "text-xs italic text-muted-foreground", title: `VAL-2: ${envelope.absent}`, children: ABSENCE_WORDS[String(envelope.absent)] ?? String(envelope.absent) });
@@ -4728,6 +4738,7 @@ function renderValue(field, value, document2, labels, stillWaitingFor) {
4728
4738
  }
4729
4739
  function scalarText(field, value, labels, stillWaitingFor) {
4730
4740
  if (value === null || value === void 0) return "\u2014";
4741
+ if (sourceArchivedOf(value)) return SOURCE_ARCHIVED_WORDS;
4731
4742
  if (isSignatureField(field)) return signatureWords(value) ?? "\u2014";
4732
4743
  const newerWords = newerKindWords(field, value);
4733
4744
  if (newerWords !== null) return newerWords;