@ai-matrx/records-ui 0.116.33 → 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/CHANGELOG.md +1 -1
- package/dist/index.cjs +2 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -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
|
-
|
|
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";
|