@fileverse-dev/dsheet 1.0.79 → 1.0.80

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.es.js CHANGED
@@ -83277,11 +83277,12 @@ function L1(e, r, t) {
83277
83277
  }), e.formulaRangeHighlight = n;
83278
83278
  }
83279
83279
  function Kd(e, r, t, a) {
83280
+ var n, i;
83280
83281
  try {
83281
- var n = r, i = document.createRange(), o = window.getSelection();
83282
- i.setStart(n.childNodes[t], a), i.collapse(!0), o == null || o.removeAllRanges(), o == null || o.addRange(i), n.focus();
83283
- } catch (c) {
83284
- console.error(c), GD(e.formulaCache.rangeResizeTo[0]);
83282
+ var o = r, c = document.createRange(), f = window.getSelection(), s = document.querySelector(".luckysheet-formula-text-string"), l = ((i = (n = s == null ? void 0 : s.firstChild) === null || n === void 0 ? void 0 : n.nodeValue) === null || i === void 0 ? void 0 : i.trim()) || "", u = s == null ? void 0 : s.querySelector(".fortune-formula-functionrange-cell");
83283
+ u && s && (l += u.textContent, o.innerHTML = l), c.setStart(o.childNodes[t], a), c.collapse(!0), f == null || f.removeAllRanges(), f == null || f.addRange(c), o.focus();
83284
+ } catch (d) {
83285
+ console.error(d), GD(e.formulaCache.rangeResizeTo[0]);
83285
83286
  }
83286
83287
  }
83287
83288
  function bfe(e, r, t, a) {
@@ -166416,16 +166417,17 @@ var lbt = function(r) {
166416
166417
  className: "w-full",
166417
166418
  id: "denomination-warning",
166418
166419
  style: {
166419
- position: "fixed",
166420
+ zIndex: 1003,
166421
+ position: "absolute",
166420
166422
  display: "none",
166423
+ bottom: "31px",
166421
166424
  backgroundColor: "#F8F9FA",
166422
166425
  borderBottom: "1px solid #E8EBEC",
166423
166426
  color: "#77818A",
166424
166427
  fontFamily: "Helvetica Neue",
166425
166428
  fontSize: "var(--font-size-2xsm, 12px)",
166426
166429
  fontStyle: "normal",
166427
- fontWeight: "400",
166428
- bottom: "31px"
166430
+ fontWeight: "400"
166429
166431
  }
166430
166432
  }, /* @__PURE__ */ z.createElement("div", {
166431
166433
  className: "max-w-7xl mx-auto px-4 py-1 ".concat(r && "w-full flex justify-between")
@@ -172841,7 +172843,7 @@ var g8t = function(r) {
172841
172843
  }
172842
172844
  }
172843
172845
  var se = document.getElementById("denomination-warning"), ve = document.getElementsByClassName("luckysheet-scrollbar-x")[0];
172844
- return oe && se ? (se.style.display = "block", se.style.left = "0px", ve && (ve.style.bottom = "40px !important", ve.style.backgroundColor = "red !important")) : !oe && se && (se.style.display = "none", se.style.left = "-9999px", ve && (ve.style.bottom = "12px !important")), J;
172846
+ return oe && se ? (se.style.display = "block", se.style.left = "0px", ve && ve.setAttribute("style", "bottom: 36px !important; width: calc(100% - 60px);")) : !oe && se && (se.style.display = "none", se.style.left = "-9999px", ve && ve.setAttribute("style", "bottom: 10px !important; width: calc(100% - 60px);")), J;
172845
172847
  }), y.luckysheet_select_save != null && ((P = (X = I.hooks) === null || X === void 0 ? void 0 : X.afterSelectionChange) === null || P === void 0 || P.call(X, y.currentSheetId, y.luckysheet_select_save[0]));
172846
172848
  }, [y.currentSheetId, y.luckysheet_select_save, I.hooks]);
172847
172849
  var T = Zr(function() {