@ai-matrx/records-ui 0.116.63 → 0.116.64
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 +16 -1
- package/dist/{chunk-X2WDIQIR.js → chunk-QXPUBNYQ.js} +21 -2
- package/dist/{chunk-X2WDIQIR.js.map → chunk-QXPUBNYQ.js.map} +1 -1
- package/dist/index.cjs +21 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +14 -1
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +1 -1
- package/package.json +6 -6
package/dist/pickers.cjs
CHANGED
|
@@ -9859,6 +9859,7 @@ function linkedOf(expr) {
|
|
|
9859
9859
|
return { via: rel["field"], inner: a["field"], op: match === "any" ? "eq" : "ne", value: b["const"] };
|
|
9860
9860
|
}
|
|
9861
9861
|
var FilterTermsContext = (0, import_react57.createContext)(false);
|
|
9862
|
+
var WithheldConditionFieldsContext = (0, import_react57.createContext)([]);
|
|
9862
9863
|
var RELATIVE_DAY_TERMS = [
|
|
9863
9864
|
{ kind: "today", label: "is today" },
|
|
9864
9865
|
{ kind: "tomorrow", label: "is tomorrow" },
|
|
@@ -10112,6 +10113,7 @@ function conditionValue(typed) {
|
|
|
10112
10113
|
function ConditionRow({ lead, expr, fields, onChange, emptyLabel = "always", className }) {
|
|
10113
10114
|
const node = expr ?? null;
|
|
10114
10115
|
const filterTerms = (0, import_react57.useContext)(FilterTermsContext);
|
|
10116
|
+
const withheldFields = (0, import_react57.useContext)(WithheldConditionFieldsContext);
|
|
10115
10117
|
const choiceListTerms = (0, import_react57.useContext)(ChoiceListTermsContext) || filterTerms;
|
|
10116
10118
|
const relative = relativeDayOf(expr);
|
|
10117
10119
|
const reader = meOf(expr);
|
|
@@ -10177,7 +10179,18 @@ function ConditionRow({ lead, expr, fields, onChange, emptyLabel = "always", cla
|
|
|
10177
10179
|
attrs: { "data-condition": "field" }
|
|
10178
10180
|
}
|
|
10179
10181
|
),
|
|
10180
|
-
onField && !fields.some((f) => f.id === onField) ? /* @__PURE__ */ (0, import_jsx_runtime38.
|
|
10182
|
+
onField && !fields.some((f) => f.id === onField) && withheldFields.some((f) => f.id === onField) ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
10183
|
+
"span",
|
|
10184
|
+
{
|
|
10185
|
+
className: "rounded bg-muted px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground",
|
|
10186
|
+
title: "This column is withheld from you, so this condition is skipped.",
|
|
10187
|
+
"data-records-condition-withheld": "",
|
|
10188
|
+
children: [
|
|
10189
|
+
withheldFields.find((f) => f.id === onField).label,
|
|
10190
|
+
" (withheld)"
|
|
10191
|
+
]
|
|
10192
|
+
}
|
|
10193
|
+
) : onField && !fields.some((f) => f.id === onField) ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
10181
10194
|
"span",
|
|
10182
10195
|
{
|
|
10183
10196
|
className: "rounded bg-destructive px-1.5 py-0.5 text-[11px] font-medium text-destructive-foreground",
|