@univerjs/sheets-ui 0.6.4-nightly.202503101606 → 0.6.4-nightly.202503111607

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/lib/es/index.js CHANGED
@@ -9466,7 +9466,7 @@ function B_(r, e) {
9466
9466
  var a;
9467
9467
  return (a = l.onCopyColumn) == null ? void 0 : a.call(l, n);
9468
9468
  }).filter((l) => !!l), o = qd(i);
9469
- return `<col ${Qd(o)}>`;
9469
+ return `<col ${Qd(o)} />`;
9470
9470
  }).join("")}</colgroup>`;
9471
9471
  }
9472
9472
  function qd(r) {
@@ -9475,7 +9475,7 @@ function qd(r) {
9475
9475
  }), e), {});
9476
9476
  }
9477
9477
  function Qd(r) {
9478
- return Object.keys(r).reduce((e, t) => (e += ` ${t}="${r[t]}"`, e), "");
9478
+ return Object.keys(r).reduce((e, t) => `${e} ${t}="${r[t]}"`, "");
9479
9479
  }
9480
9480
  class F_ {
9481
9481
  convert(e, t, n) {
@@ -18736,8 +18736,8 @@ const lu = (r, e) => {
18736
18736
  };
18737
18737
  };
18738
18738
  function rp(r, e, t) {
18739
- var c, d, u, h;
18740
- const n = (d = (c = e.documentSkeleton.getSkeletonData()) == null ? void 0 : c.pages[0].height) != null ? d : 0, i = (h = (u = e.documentSkeleton.getSkeletonData()) == null ? void 0 : u.pages[0].width) != null ? h : 0, o = e.verticalAlign, s = e.horizontalAlign;
18739
+ var c, d, u, h, g, m;
18740
+ const n = (u = (d = (c = e.documentSkeleton) == null ? void 0 : c.getSkeletonData()) == null ? void 0 : d.pages[0].height) != null ? u : 0, i = (m = (g = (h = e.documentSkeleton) == null ? void 0 : h.getSkeletonData()) == null ? void 0 : g.pages[0].width) != null ? m : 0, o = e.verticalAlign, s = e.horizontalAlign;
18741
18741
  let l = 0;
18742
18742
  switch (o) {
18743
18743
  case dn.UNSPECIFIED:
@@ -18947,6 +18947,7 @@ let Ar = class extends de {
18947
18947
  if (!(!(s != null && s.getCurrentScrollState()) || !i))
18948
18948
  return { currentRender: i, workbook: t, worksheet: n, skeletonParam: o };
18949
18949
  }
18950
+ // eslint-disable-next-line complexity
18950
18951
  _calcActiveCell(e, t, n, i, o, s) {
18951
18952
  var R, I, y;
18952
18953
  const l = rf(e, t, n, i, o, s), a = i.skeleton;
@@ -18955,7 +18956,7 @@ let Ar = class extends de {
18955
18956
  const { position: c, overflowLocation: d, location: u } = l, h = a.getFont(d.row, d.col);
18956
18957
  let g = null, m = null, f = null;
18957
18958
  const p = a.getCellWithCoordByIndex(d.row, d.col), S = n.getCell(d.row, d.col), { topOffset: v = 0, leftOffset: C = 0 } = (R = S == null ? void 0 : S.fontRenderExtension) != null ? R : {};
18958
- if (h) {
18959
+ if (h != null && h.documentSkeleton) {
18959
18960
  const { paddingLeft: M, paddingTop: P } = rp(p, h, (S == null ? void 0 : S.v) !== null && (S == null ? void 0 : S.v) !== void 0 ? !Number.isNaN(+S.v) : !1), E = iI(h.documentSkeleton, M, P), T = o - c.startX - C, A = s - c.startY - v;
18960
18961
  g = E.links.find((k) => k.rects.some((O) => O.left <= T && T <= O.right && O.top <= A && A <= O.bottom)), m = E.checkLists.find((k) => k.rect.left <= T && T <= k.rect.right && k.rect.top <= A && A <= k.rect.bottom), f = E.drawings.find((k) => k.rect.left <= T && T <= k.rect.right && k.rect.top <= A && A <= k.rect.bottom);
18961
18962
  }
@@ -1,6 +1,6 @@
1
1
  import { ICellData, ObjectMatrix } from '@univerjs/core';
2
- import { ISheetClipboardHook } from '../type';
3
2
  import { IDiscreteRange } from '../../../controllers/utils/range-tools';
3
+ import { ISheetClipboardHook } from '../type';
4
4
  export declare class USMToHtmlService {
5
5
  convert(matrix: ObjectMatrix<ICellData & {
6
6
  rowSpan?: number | undefined;