@universe-platform/ui 0.1.0-beta.63 → 0.1.0-beta.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
@@ -3947,7 +3947,9 @@ var FormulaDisplay = ({ value, column }) => {
3947
3947
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SmartTextCell, { value: text2, tooltipText: text2, readOnly: true });
3948
3948
  };
3949
3949
  var FormulaInputRenderer = ({ value, column, context }) => {
3950
- const live = (context == null ? void 0 : context.rowData) ? computeFormulaValue(column, context.rowData) : value;
3950
+ var _a, _b, _c, _d;
3951
+ const hasExternalRefs = ((_d = (_c = (_b = (_a = column == null ? void 0 : column.config) == null ? void 0 : _a.formula) == null ? void 0 : _b.externalRefs) == null ? void 0 : _c.length) != null ? _d : 0) > 0;
3952
+ const live = (context == null ? void 0 : context.rowData) && !hasExternalRefs ? computeFormulaValue(column, context.rowData) : value;
3951
3953
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FormulaDisplay, { value: live, column });
3952
3954
  };
3953
3955
 
package/dist/index.mjs CHANGED
@@ -3792,7 +3792,9 @@ var FormulaDisplay = ({ value, column }) => {
3792
3792
  return /* @__PURE__ */ jsx8(SmartTextCell, { value: text2, tooltipText: text2, readOnly: true });
3793
3793
  };
3794
3794
  var FormulaInputRenderer = ({ value, column, context }) => {
3795
- const live = (context == null ? void 0 : context.rowData) ? computeFormulaValue(column, context.rowData) : value;
3795
+ var _a, _b, _c, _d;
3796
+ const hasExternalRefs = ((_d = (_c = (_b = (_a = column == null ? void 0 : column.config) == null ? void 0 : _a.formula) == null ? void 0 : _b.externalRefs) == null ? void 0 : _c.length) != null ? _d : 0) > 0;
3797
+ const live = (context == null ? void 0 : context.rowData) && !hasExternalRefs ? computeFormulaValue(column, context.rowData) : value;
3796
3798
  return /* @__PURE__ */ jsx8(FormulaDisplay, { value: live, column });
3797
3799
  };
3798
3800
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@universe-platform/ui",
3
- "version": "0.1.0-beta.63",
3
+ "version": "0.1.0-beta.64",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",