@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/dist/index.js CHANGED
@@ -68,6 +68,7 @@ import {
68
68
  WHOLE_VALUE_NOT_EDITABLE_HERE,
69
69
  WITHHELD_WORD,
70
70
  WholeValueEditor,
71
+ WithheldConditionFieldsContext,
71
72
  WithheldValue,
72
73
  archiveConfirmSentence,
73
74
  askOnce_exports,
@@ -179,13 +180,14 @@ import {
179
180
  wholeValueOpening,
180
181
  withFormulaDisplayNow,
181
182
  withOpenRecord,
183
+ withheldConditionFields,
182
184
  withheldKeysOf,
183
185
  withheldNoticeOf,
184
186
  withheldSentence,
185
187
  withoutAddition,
186
188
  withoutLeadingBlank,
187
189
  workedOutErrorFor
188
- } from "./chunk-X2WDIQIR.js";
190
+ } from "./chunk-QXPUBNYQ.js";
189
191
  import {
190
192
  CHART_PLOT_PX,
191
193
  EMBEDDED_ROW_PX,
@@ -40079,6 +40081,7 @@ function ViewFilter({ tableId, view, onApply, withheldKeys, className }) {
40079
40081
  );
40080
40082
  return [...own, ...reached];
40081
40083
  }, [fields.data, relations, linkedFields, withheldKeys]);
40084
+ const withheldFields = useMemo70(() => withheldConditionFields(fields.data ?? [], withheldKeys), [fields.data, withheldKeys]);
40082
40085
  if (!view) return null;
40083
40086
  const count = conditionCount(saved);
40084
40087
  const changed2 = JSON.stringify(draft) !== savedKey;
@@ -40116,7 +40119,7 @@ function ViewFilter({ tableId, view, onApply, withheldKeys, className }) {
40116
40119
  "This view asks: ",
40117
40120
  conditionInWords(saved, conditionFields),
40118
40121
  ". It cannot be drawn here; clear it to start a new filter."
40119
- ] }) : /* @__PURE__ */ jsx129(FilterTermsContext.Provider, { value: true, children: /* @__PURE__ */ jsx129(
40122
+ ] }) : /* @__PURE__ */ jsx129(FilterTermsContext.Provider, { value: true, children: /* @__PURE__ */ jsx129(WithheldConditionFieldsContext.Provider, { value: withheldFields, children: /* @__PURE__ */ jsx129(
40120
40123
  ConditionGroup,
40121
40124
  {
40122
40125
  lead: "Show records where",
@@ -40125,7 +40128,7 @@ function ViewFilter({ tableId, view, onApply, withheldKeys, className }) {
40125
40128
  fields: conditionFields,
40126
40129
  onChange: setDraft
40127
40130
  }
40128
- ) }),
40131
+ ) }) }),
40129
40132
  view.ruleId ? null : /* @__PURE__ */ jsxs122("div", { className: "flex items-center gap-1", children: [
40130
40133
  changed2 ? /* @__PURE__ */ jsx129(
40131
40134
  Button99,