@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/CHANGELOG.md +24 -0
- package/dist/index.cjs +19474 -19191
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7557 -7273
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +11 -0
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +12 -1
- package/dist/pickers.js.map +1 -1
- package/package.json +3 -3
package/dist/pickers.cjs
CHANGED
|
@@ -4617,8 +4617,18 @@ function computedEmptyOf(field, document2) {
|
|
|
4617
4617
|
if (!hasFormula(field)) return { kind: "formula", sentence: "Worked out once its formula is in place" };
|
|
4618
4618
|
return { kind: "formula" };
|
|
4619
4619
|
}
|
|
4620
|
+
var SOURCE_ARCHIVED_WORDS = "Source archived";
|
|
4621
|
+
function sourceArchivedSentence(state) {
|
|
4622
|
+
if (!state.label) return "A column it reads is archived";
|
|
4623
|
+
return state.table ? `${state.label} on ${state.table} is archived` : `${state.label} is archived`;
|
|
4624
|
+
}
|
|
4625
|
+
function SourceArchivedValue({ state }) {
|
|
4626
|
+
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 });
|
|
4627
|
+
}
|
|
4620
4628
|
var ABSENCE_WORDS = ABSENCE_WORD_LABEL;
|
|
4621
4629
|
function renderValue(field, value, document2, labels, stillWaitingFor) {
|
|
4630
|
+
const archivedSource = (0, import_records14.sourceArchivedOf)(value);
|
|
4631
|
+
if (archivedSource) return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SourceArchivedValue, { state: archivedSource });
|
|
4622
4632
|
const envelope = envelopeFor(document2, field.key);
|
|
4623
4633
|
if (envelope?.absent) {
|
|
4624
4634
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-xs italic text-muted-foreground", title: `VAL-2: ${envelope.absent}`, children: ABSENCE_WORDS[String(envelope.absent)] ?? String(envelope.absent) });
|
|
@@ -4718,6 +4728,7 @@ function renderValue(field, value, document2, labels, stillWaitingFor) {
|
|
|
4718
4728
|
}
|
|
4719
4729
|
function scalarText(field, value, labels, stillWaitingFor) {
|
|
4720
4730
|
if (value === null || value === void 0) return "\u2014";
|
|
4731
|
+
if ((0, import_records14.sourceArchivedOf)(value)) return SOURCE_ARCHIVED_WORDS;
|
|
4721
4732
|
if (isSignatureField(field)) return signatureWords(value) ?? "\u2014";
|
|
4722
4733
|
const newerWords = (0, import_records14.newerKindWords)(field, value);
|
|
4723
4734
|
if (newerWords !== null) return newerWords;
|