@ai-matrx/records-ui 0.116.63 → 0.116.65
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 +26 -1
- package/dist/{SaveToTable-VPLDWCSU.js → SaveToTable-OYJH3OKN.js} +3 -3
- package/dist/{chunk-WXYI4DKC.js → chunk-EACZUXJO.js} +2 -2
- package/dist/{chunk-X2WDIQIR.js → chunk-GLSY7IZC.js} +23 -4
- package/dist/{chunk-X2WDIQIR.js.map → chunk-GLSY7IZC.js.map} +1 -1
- package/dist/{chunk-4KWCNW7V.js → chunk-ZX4EFZSB.js} +2 -2
- package/dist/{chunk-4KWCNW7V.js.map → chunk-ZX4EFZSB.js.map} +1 -1
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.js +1 -1
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +22 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +15 -2
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +2 -2
- package/package.json +5 -5
- /package/dist/{SaveToTable-VPLDWCSU.js.map → SaveToTable-OYJH3OKN.js.map} +0 -0
- /package/dist/{chunk-WXYI4DKC.js.map → chunk-EACZUXJO.js.map} +0 -0
package/dist/pickers.cjs
CHANGED
|
@@ -1463,7 +1463,7 @@ var init_enumLabels = __esm({
|
|
|
1463
1463
|
FIELD_SENSITIVITY_LABEL = {
|
|
1464
1464
|
public: "Anyone who can open the record",
|
|
1465
1465
|
internal: "People in this organization",
|
|
1466
|
-
confidential: "
|
|
1466
|
+
confidential: "Administrators and anyone granted it",
|
|
1467
1467
|
restricted: "Administrators only"
|
|
1468
1468
|
};
|
|
1469
1469
|
CONTEXT_POLICY_LABEL = {
|
|
@@ -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",
|