@ai-matrx/records-ui 0.116.32 → 0.116.34

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
@@ -182,7 +182,7 @@ import {
182
182
  withoutAddition,
183
183
  withoutLeadingBlank,
184
184
  workedOutErrorFor
185
- } from "./chunk-ECUJDR3W.js";
185
+ } from "./chunk-IL66BADF.js";
186
186
  import {
187
187
  CHART_PLOT_PX,
188
188
  EMBEDDED_ROW_PX,
@@ -234,7 +234,7 @@ import {
234
234
  HtmlSampleTokensProvider,
235
235
  SAMPLE_TOKEN_NAMES,
236
236
  sampleDocument
237
- } from "./chunk-GT27AGOI.js";
237
+ } from "./chunk-FFST26WB.js";
238
238
  import {
239
239
  ArchiveItemMenu,
240
240
  ArchivedBuiltOn,
@@ -20887,10 +20887,6 @@ function typedFormulaFields(all, rounds = FORMULA_TYPING_ROUNDS) {
20887
20887
  byRounds.set(rounds, cur);
20888
20888
  return cur;
20889
20889
  }
20890
- function formulaTypeOf(targetId, all, rounds = FORMULA_TYPING_ROUNDS) {
20891
- const expr = ownExpression(all.find((f) => f.id === targetId));
20892
- return expr ? formulaResultKind(expr, typedFormulaFields(all, rounds)) : "unknown";
20893
- }
20894
20890
  function formulaResultKind(node, all) {
20895
20891
  if (!node || typeof node !== "object" || Array.isArray(node)) return "unknown";
20896
20892
  const n = node;
@@ -20928,7 +20924,8 @@ function formulaResultKind(node, all) {
20928
20924
  return FORMULA_NODE_RESULTS[op] ?? "unknown";
20929
20925
  }
20930
20926
  function isDateFormula(field, all) {
20931
- return !!field && formulaTypeOf(field.id, all) === "date";
20927
+ const expr = ownExpression(field);
20928
+ return !!expr && formulaResultKind(expr, typedFormulaFields(all)) === "date";
20932
20929
  }
20933
20930
  function isComputedField(field) {
20934
20931
  return field?.type === "formula";