@fileverse-dev/dsheet 1.0.79 → 1.0.81

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) {
@@ -160773,7 +160774,8 @@ var D9 = function() {
160773
160774
  transform: "scale(".concat(f.zoomRatio, ")"),
160774
160775
  transformOrigin: "left top",
160775
160776
  width: "".concat(100 / f.zoomRatio, "%"),
160776
- height: "".concat(100 / f.zoomRatio, "%")
160777
+ height: "".concat(100 / f.zoomRatio, "%"),
160778
+ color: "black"
160777
160779
  },
160778
160780
  "aria-autocomplete": "list",
160779
160781
  onChange: T,
@@ -163252,13 +163254,11 @@ var Nyt = function() {
163252
163254
  xmlns: "http://www.w3.org/2000/svg",
163253
163255
  width: "16",
163254
163256
  height: "16",
163255
- viewBox: "0 0 24 24",
163256
- fill: s
163257
+ viewBox: "0 0 24 24"
163257
163258
  }, /* @__PURE__ */ z.createElement("path", {
163258
163259
  fillRule: "evenodd",
163259
163260
  clipRule: "evenodd",
163260
- d: "M11.9997 3C12.3784 3 12.7248 3.21402 12.8942 3.55273L20.8942 19.5527L20.9352 19.6465C21.115 20.1204 20.9101 20.663 20.447 20.8945C19.9839 21.1259 19.4272 20.9642 19.1559 20.5361L19.1052 20.4473L16.8815 16H7.11786L4.89422 20.4473C4.64719 20.9412 4.04636 21.1415 3.55243 20.8945C3.05867 20.6475 2.85831 20.0466 3.10516 19.5527L11.1052 3.55273L11.1764 3.43164C11.3613 3.16376 11.6684 3.0001 11.9997 3ZM8.11786 14H15.8815L11.9997 6.23633L8.11786 14Z",
163261
- fill: s
163261
+ d: "M11.9997 3C12.3784 3 12.7248 3.21402 12.8942 3.55273L20.8942 19.5527L20.9352 19.6465C21.115 20.1204 20.9101 20.663 20.447 20.8945C19.9839 21.1259 19.4272 20.9642 19.1559 20.5361L19.1052 20.4473L16.8815 16H7.11786L4.89422 20.4473C4.64719 20.9412 4.04636 21.1415 3.55243 20.8945C3.05867 20.6475 2.85831 20.0466 3.10516 19.5527L11.1052 3.55273L11.1764 3.43164C11.3613 3.16376 11.6684 3.0001 11.9997 3ZM8.11786 14H15.8815L11.9997 6.23633L8.11786 14Z"
163262
163262
  })))) : /* @__PURE__ */ z.createElement(Yl, {
163263
163263
  text: t,
163264
163264
  placement: "bottom"
@@ -166416,16 +166416,17 @@ var lbt = function(r) {
166416
166416
  className: "w-full",
166417
166417
  id: "denomination-warning",
166418
166418
  style: {
166419
- position: "fixed",
166419
+ zIndex: 1003,
166420
+ position: "absolute",
166420
166421
  display: "none",
166422
+ bottom: "31px",
166421
166423
  backgroundColor: "#F8F9FA",
166422
166424
  borderBottom: "1px solid #E8EBEC",
166423
166425
  color: "#77818A",
166424
166426
  fontFamily: "Helvetica Neue",
166425
166427
  fontSize: "var(--font-size-2xsm, 12px)",
166426
166428
  fontStyle: "normal",
166427
- fontWeight: "400",
166428
- bottom: "31px"
166429
+ fontWeight: "400"
166429
166430
  }
166430
166431
  }, /* @__PURE__ */ z.createElement("div", {
166431
166432
  className: "max-w-7xl mx-auto px-4 py-1 ".concat(r && "w-full flex justify-between")
@@ -172841,7 +172842,7 @@ var g8t = function(r) {
172841
172842
  }
172842
172843
  }
172843
172844
  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;
172845
+ 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
172846
  }), 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
172847
  }, [y.currentSheetId, y.luckysheet_select_save, I.hooks]);
172847
172848
  var T = Zr(function() {