@univerjs/sheets-ui 0.5.0-alpha.0 → 0.5.0-beta.0
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/cjs/facade.js +1 -1
- package/lib/cjs/index.js +13 -13
- package/lib/es/facade.js +6 -6
- package/lib/es/index.js +5119 -5034
- package/lib/types/consts/permission.d.ts +1 -0
- package/lib/types/controllers/config.schema.d.ts +1 -0
- package/lib/types/controllers/permission/sheet-permission-render.controller.d.ts +5 -3
- package/lib/types/controllers/render-controllers/header-move.render-controller.d.ts +2 -2
- package/lib/types/facade/f-range.d.ts +2 -2
- package/lib/types/index.d.ts +8 -4
- package/lib/types/services/mark-selection/mark-selection.service.d.ts +3 -1
- package/lib/types/services/scroll-manager.service.d.ts +1 -1
- package/lib/types/services/selection/base-selection-render.service.d.ts +72 -59
- package/lib/types/services/selection/const.d.ts +3 -0
- package/lib/types/services/selection/mobile-selection-render.service.d.ts +7 -7
- package/lib/types/services/selection/mobile-selection-shape.d.ts +9 -4
- package/lib/types/services/selection/selection-control.d.ts +44 -22
- package/lib/types/services/selection/selection-render-model.d.ts +14 -7
- package/lib/types/services/selection/selection-render.service.d.ts +14 -3
- package/lib/types/services/selection/selection-shape-extension.d.ts +35 -13
- package/lib/types/services/selection/util.d.ts +18 -4
- package/lib/types/services/sheet-skeleton-manager.service.d.ts +0 -1
- package/lib/types/services/utils/doc-skeleton-util.d.ts +2 -2
- package/lib/types/services/utils/selection-util.d.ts +1 -1
- package/lib/types/views/permission/extensions/range-protection.render.d.ts +1 -1
- package/lib/types/views/permission/extensions/worksheet-permission.render.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +13 -13
- package/package.json +16 -17
package/lib/es/facade.js
CHANGED
|
@@ -88,7 +88,7 @@ S.extend(j);
|
|
|
88
88
|
class O extends m {
|
|
89
89
|
getCell() {
|
|
90
90
|
const e = this._injector.get(p), t = this._workbook.getUnitId(), r = this._worksheet.getSheetId();
|
|
91
|
-
return e.getRenderById(t).with(b).getWorksheetSkeleton(r).skeleton.
|
|
91
|
+
return e.getRenderById(t).with(b).getWorksheetSkeleton(r).skeleton.getCellWithCoordByIndex(this._range.startRow, this._range.startColumn);
|
|
92
92
|
}
|
|
93
93
|
getCellRect() {
|
|
94
94
|
const { startX: e, startY: t, endX: r, endY: o } = this.getCell(), s = { x: e, y: t, width: r - e, height: o - t, top: t, left: e, bottom: o, right: r };
|
|
@@ -104,7 +104,7 @@ class O extends m {
|
|
|
104
104
|
return (t = e == null ? void 0 : e.html) != null ? t : "";
|
|
105
105
|
}
|
|
106
106
|
attachPopup(e) {
|
|
107
|
-
const { key: t, disposableCollection: r } =
|
|
107
|
+
const { key: t, disposableCollection: r } = W(e, this._injector.get(P)), s = this._injector.get(w).attachPopupToCell(
|
|
108
108
|
this._range.startRow,
|
|
109
109
|
this._range.startColumn,
|
|
110
110
|
{ ...e, componentKey: t },
|
|
@@ -133,7 +133,7 @@ class O extends m {
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
m.extend(O);
|
|
136
|
-
function
|
|
136
|
+
function W(n, e) {
|
|
137
137
|
const { componentKey: t, isVue3: r } = n;
|
|
138
138
|
let o;
|
|
139
139
|
const s = new v();
|
|
@@ -142,10 +142,10 @@ function F(n, e) {
|
|
|
142
142
|
disposableCollection: s
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
var
|
|
145
|
+
var F = Object.defineProperty, E = Object.getOwnPropertyDescriptor, H = (n, e, t, r) => {
|
|
146
146
|
for (var o = r > 1 ? void 0 : r ? E(e, t) : e, s = n.length - 1, a; s >= 0; s--)
|
|
147
147
|
(a = n[s]) && (o = (r ? a(e, t, o) : a(o)) || o);
|
|
148
|
-
return r && o &&
|
|
148
|
+
return r && o && F(e, t, o), o;
|
|
149
149
|
}, g = (n, e) => (t, r) => e(t, r, n);
|
|
150
150
|
let l = class {
|
|
151
151
|
constructor(n, e, t) {
|
|
@@ -191,5 +191,5 @@ l = H([
|
|
|
191
191
|
], l);
|
|
192
192
|
export {
|
|
193
193
|
l as FSheetHooks,
|
|
194
|
-
|
|
194
|
+
W as transformComponentKey
|
|
195
195
|
};
|