@univerjs/sheets-note-ui 0.15.4 → 0.15.5
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/index.js +1 -1
- package/lib/es/index.js +362 -318
- package/lib/index.js +362 -318
- package/lib/types/controllers/sheets-note-popup.controller.d.ts +1 -0
- package/lib/types/views/note.d.ts +6 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/index.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { Inject as
|
|
5
|
-
import { IRenderManagerService as
|
|
6
|
-
import { SheetInterceptorService as
|
|
7
|
-
import { SheetsNoteModel as
|
|
8
|
-
import { debounceTime as
|
|
9
|
-
import { CellPopupManagerService as
|
|
10
|
-
import { debounceTime as
|
|
11
|
-
import { IZenZoneService as
|
|
12
|
-
import { useRef as
|
|
13
|
-
import { jsx as
|
|
14
|
-
import { Textarea as
|
|
15
|
-
var
|
|
16
|
-
for (var
|
|
17
|
-
(n = i[s]) && (
|
|
18
|
-
return
|
|
19
|
-
},
|
|
20
|
-
let
|
|
21
|
-
constructor(i, e, t,
|
|
22
|
-
super(), this._sheetInterceptorService = i, this._sheetsNoteModel = e, this._renderManagerService = t, this._univerInstanceService =
|
|
1
|
+
var Ee = Object.defineProperty;
|
|
2
|
+
var ye = (i, e, t) => e in i ? Ee(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var P = (i, e, t) => ye(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { Inject as g, IUniverInstanceService as Z, Disposable as E, InterceptorEffectEnum as $e, UniverInstanceType as y, DisposableCollection as xe, RANGE_TYPE as ne, Rectangle as He, ObjectMatrix as F, CommandType as Oe, LocaleService as Te, ICommandService as de, DependentOn as Le, Injector as Ue, IConfigService as Re, Plugin as De, merge as Ve, touchDependencies as se } from "@univerjs/core";
|
|
5
|
+
import { IRenderManagerService as z } from "@univerjs/engine-render";
|
|
6
|
+
import { SheetInterceptorService as Ze, INTERCEPTOR_POINT as ke, SheetsSelectionsService as G, WorksheetEditPermission as _e, WorkbookEditablePermission as fe, getSheetCommandTarget as je } from "@univerjs/sheets";
|
|
7
|
+
import { SheetsNoteModel as $, SheetUpdateNoteCommand as Be, SheetToggleNotePopupCommand as Ce, SheetDeleteNoteCommand as ge, UniverSheetsNotePlugin as Ae } from "@univerjs/sheets-note";
|
|
8
|
+
import { debounceTime as Fe, BehaviorSubject as We, switchMap as ze, of as Ge, map as k, combineLatest as Ke } from "rxjs";
|
|
9
|
+
import { CellPopupManagerService as ve, IEditorBridgeService as qe, HoverManagerService as Ye, SheetSkeletonManagerService as ce, getCurrentRangeDisable$ as me } from "@univerjs/sheets-ui";
|
|
10
|
+
import { debounceTime as Je } from "rxjs/operators";
|
|
11
|
+
import { IZenZoneService as Qe, useDependency as b, useConfigValue as Xe, useDebounceFn as et, MenuItemType as K, getMenuHiddenObservable as tt, ContextMenuPosition as it, ContextMenuGroup as ot, ComponentManager as rt, IMenuManagerService as nt } from "@univerjs/ui";
|
|
12
|
+
import { useRef as Se, createElement as j, forwardRef as q, useState as st, useEffect as ae, useCallback as ue } from "react";
|
|
13
|
+
import { jsx as ct } from "react/jsx-runtime";
|
|
14
|
+
import { Textarea as at, clsx as ut } from "@univerjs/design";
|
|
15
|
+
var lt = Object.getOwnPropertyDescriptor, pt = (i, e, t, o) => {
|
|
16
|
+
for (var r = o > 1 ? void 0 : o ? lt(e, t) : e, s = i.length - 1, n; s >= 0; s--)
|
|
17
|
+
(n = i[s]) && (r = n(r) || r);
|
|
18
|
+
return r;
|
|
19
|
+
}, H = (i, e) => (t, o) => e(t, o, i);
|
|
20
|
+
let T = class extends E {
|
|
21
|
+
constructor(i, e, t, o) {
|
|
22
|
+
super(), this._sheetInterceptorService = i, this._sheetsNoteModel = e, this._renderManagerService = t, this._univerInstanceService = o, this._initViewModelIntercept(), this._initSkeletonChange();
|
|
23
23
|
}
|
|
24
24
|
_initViewModelIntercept() {
|
|
25
25
|
this.disposeWithMe(
|
|
26
26
|
this._sheetInterceptorService.intercept(
|
|
27
|
-
|
|
27
|
+
ke.CELL_CONTENT,
|
|
28
28
|
{
|
|
29
|
-
effect:
|
|
29
|
+
effect: $e.Style,
|
|
30
30
|
handler: (i, e, t) => {
|
|
31
|
-
const { row:
|
|
32
|
-
return this._sheetsNoteModel.getNote(s, n,
|
|
31
|
+
const { row: o, col: r, unitId: s, subUnitId: n } = e;
|
|
32
|
+
return this._sheetsNoteModel.getNote(s, n, { row: o, col: r }) && ((!i || i === e.rawData) && (i = { ...e.rawData }), i.markers = {
|
|
33
33
|
...i == null ? void 0 : i.markers,
|
|
34
34
|
tr: {
|
|
35
35
|
color: "#FFBD37",
|
|
@@ -44,36 +44,36 @@ let $ = class extends N {
|
|
|
44
44
|
}
|
|
45
45
|
_initSkeletonChange() {
|
|
46
46
|
const i = () => {
|
|
47
|
-
var
|
|
48
|
-
const e = this._univerInstanceService.getCurrentUnitForType(
|
|
47
|
+
var r;
|
|
48
|
+
const e = this._univerInstanceService.getCurrentUnitForType(y.UNIVER_SHEET);
|
|
49
49
|
if (!e) return;
|
|
50
|
-
const t = e.getUnitId(),
|
|
51
|
-
(
|
|
50
|
+
const t = e.getUnitId(), o = this._renderManagerService.getRenderById(t);
|
|
51
|
+
(r = o == null ? void 0 : o.mainComponent) == null || r.makeForceDirty();
|
|
52
52
|
};
|
|
53
|
-
this.disposeWithMe(this._sheetsNoteModel.change$.pipe(
|
|
53
|
+
this.disposeWithMe(this._sheetsNoteModel.change$.pipe(Fe(16)).subscribe(() => {
|
|
54
54
|
i();
|
|
55
55
|
}));
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
],
|
|
64
|
-
const
|
|
65
|
-
var
|
|
66
|
-
for (var
|
|
67
|
-
(n = i[s]) && (
|
|
68
|
-
return
|
|
69
|
-
},
|
|
70
|
-
let
|
|
58
|
+
T = pt([
|
|
59
|
+
H(0, g(Ze)),
|
|
60
|
+
H(1, g($)),
|
|
61
|
+
H(2, z),
|
|
62
|
+
H(3, Z)
|
|
63
|
+
], T);
|
|
64
|
+
const Y = "SHEET_NOTE_COMPONENT";
|
|
65
|
+
var ht = Object.getOwnPropertyDescriptor, dt = (i, e, t, o) => {
|
|
66
|
+
for (var r = o > 1 ? void 0 : o ? ht(e, t) : e, s = i.length - 1, n; s >= 0; s--)
|
|
67
|
+
(n = i[s]) && (r = n(r) || r);
|
|
68
|
+
return r;
|
|
69
|
+
}, le = (i, e) => (t, o) => e(t, o, i);
|
|
70
|
+
let I = class extends E {
|
|
71
71
|
constructor(e, t) {
|
|
72
72
|
super();
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
P(this, "_lastPopup", null);
|
|
74
|
+
P(this, "_activePopup");
|
|
75
|
+
P(this, "_activePopup$", new We(null));
|
|
76
|
+
P(this, "activePopup$", this._activePopup$.asObservable());
|
|
77
77
|
this._zenZoneService = e, this._cellPopupManagerService = t, this._initZenVisible(), this.disposeWithMe(() => {
|
|
78
78
|
this._activePopup$.complete();
|
|
79
79
|
});
|
|
@@ -90,24 +90,24 @@ let S = class extends N {
|
|
|
90
90
|
super.dispose(), this.hidePopup();
|
|
91
91
|
}
|
|
92
92
|
showPopup(e, t) {
|
|
93
|
-
var
|
|
94
|
-
const { row:
|
|
95
|
-
if (this._activePopup &&
|
|
93
|
+
var l;
|
|
94
|
+
const { row: o, col: r, unitId: s, subUnitId: n } = e;
|
|
95
|
+
if (this._activePopup && o === this._activePopup.row && r === this._activePopup.col && s === this._activePopup.unitId && n === ((l = this.activePopup) == null ? void 0 : l.subUnitId)) {
|
|
96
96
|
this._activePopup = e, this._activePopup$.next(e);
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
99
|
if (this._lastPopup && this._lastPopup.dispose(), this._zenZoneService.visible)
|
|
100
100
|
return;
|
|
101
101
|
this._activePopup = e, this._activePopup$.next(e);
|
|
102
|
-
const
|
|
102
|
+
const c = this._cellPopupManagerService.showPopup(
|
|
103
103
|
{
|
|
104
104
|
unitId: s,
|
|
105
105
|
subUnitId: n,
|
|
106
|
-
row:
|
|
107
|
-
col:
|
|
106
|
+
row: o,
|
|
107
|
+
col: r
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
componentKey:
|
|
110
|
+
componentKey: Y,
|
|
111
111
|
onClickOutside: () => {
|
|
112
112
|
this.hidePopup();
|
|
113
113
|
},
|
|
@@ -118,10 +118,10 @@ let S = class extends N {
|
|
|
118
118
|
priority: 3
|
|
119
119
|
}
|
|
120
120
|
);
|
|
121
|
-
if (!
|
|
121
|
+
if (!c)
|
|
122
122
|
throw new Error("[SheetsNotePopupService]: cannot show popup!");
|
|
123
|
-
const u = new
|
|
124
|
-
u.add(
|
|
123
|
+
const u = new xe();
|
|
124
|
+
u.add(c), u.add({
|
|
125
125
|
dispose: () => {
|
|
126
126
|
t == null || t();
|
|
127
127
|
}
|
|
@@ -137,37 +137,38 @@ let S = class extends N {
|
|
|
137
137
|
}, this._activePopup$.next(this._activePopup));
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
],
|
|
144
|
-
var
|
|
145
|
-
for (var
|
|
146
|
-
(n = i[s]) && (
|
|
147
|
-
return
|
|
148
|
-
},
|
|
149
|
-
let
|
|
150
|
-
constructor(e, t,
|
|
140
|
+
I = dt([
|
|
141
|
+
le(0, Qe),
|
|
142
|
+
le(1, g(ve))
|
|
143
|
+
], I);
|
|
144
|
+
var _t = Object.getOwnPropertyDescriptor, ft = (i, e, t, o) => {
|
|
145
|
+
for (var r = o > 1 ? void 0 : o ? _t(e, t) : e, s = i.length - 1, n; s >= 0; s--)
|
|
146
|
+
(n = i[s]) && (r = n(r) || r);
|
|
147
|
+
return r;
|
|
148
|
+
}, w = (i, e) => (t, o) => e(t, o, i);
|
|
149
|
+
let L = class extends E {
|
|
150
|
+
constructor(e, t, o, r, s, n) {
|
|
151
151
|
super();
|
|
152
|
-
|
|
153
|
-
this._sheetsNotePopupService = e, this._sheetsNoteModel = t, this._sheetSelectionService =
|
|
152
|
+
P(this, "_isSwitchingSheet", !1);
|
|
153
|
+
this._sheetsNotePopupService = e, this._sheetsNoteModel = t, this._sheetSelectionService = o, this._editorBridgeService = r, this._renderManagerService = s, this._hoverManagerService = n, this._initSelectionUpdateListener(), this._initEditorBridge(), this._initHoverEvent(), this._initDeleteNoteListener();
|
|
154
154
|
}
|
|
155
|
-
_handleSelectionChange(e, t,
|
|
156
|
-
var d, _,
|
|
157
|
-
const
|
|
158
|
-
if (!n || !
|
|
155
|
+
_handleSelectionChange(e, t, o) {
|
|
156
|
+
var d, _, m;
|
|
157
|
+
const r = (d = e[0]) == null ? void 0 : d.range, s = this._renderManagerService.getRenderById(t), n = (_ = s == null ? void 0 : s.with(ce).getSkeletonParam(o)) == null ? void 0 : _.skeleton;
|
|
158
|
+
if (!n || !r)
|
|
159
159
|
return;
|
|
160
|
-
const
|
|
161
|
-
if ((((
|
|
160
|
+
const c = n.getCellWithCoordByIndex(r.startRow, r.startColumn);
|
|
161
|
+
if ((((m = r.rangeType) != null ? m : ne.NORMAL) !== ne.NORMAL || r.endColumn - r.startColumn > 0 || r.endRow - r.startRow > 0) && !((c.isMerged || c.isMergedMainCell) && He.equals(c.mergeInfo, r))) {
|
|
162
162
|
this._sheetsNotePopupService.hidePopup();
|
|
163
163
|
return;
|
|
164
164
|
}
|
|
165
|
-
const
|
|
165
|
+
const l = c.actualRow, a = c.actualColumn, p = this._sheetsNoteModel.getNote(t, o, { row: l, col: a });
|
|
166
166
|
p != null && p.show || (p ? this._sheetsNotePopupService.showPopup({
|
|
167
167
|
unitId: t,
|
|
168
|
-
subUnitId:
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
subUnitId: o,
|
|
169
|
+
noteId: p.id,
|
|
170
|
+
row: l,
|
|
171
|
+
col: a
|
|
171
172
|
}) : this._sheetsNotePopupService.hidePopup(!0));
|
|
172
173
|
}
|
|
173
174
|
_initSelectionUpdateListener() {
|
|
@@ -189,57 +190,82 @@ let x = class extends N {
|
|
|
189
190
|
}
|
|
190
191
|
_initHoverEvent() {
|
|
191
192
|
this.disposeWithMe(
|
|
192
|
-
this._hoverManagerService.currentCell$.pipe(
|
|
193
|
+
this._hoverManagerService.currentCell$.pipe(Je(100)).subscribe((e) => {
|
|
194
|
+
var p;
|
|
193
195
|
if (!(e != null && e.location)) return;
|
|
194
|
-
const { unitId: t, subUnitId:
|
|
195
|
-
|
|
196
|
+
const { unitId: t, subUnitId: o, row: r, col: s } = e.location, n = this._renderManagerService.getRenderById(t), c = (p = n == null ? void 0 : n.with(ce).getSkeletonParam(o)) == null ? void 0 : p.skeleton;
|
|
197
|
+
let u = r, l = s, a = this._sheetsNoteModel.getNote(t, o, { row: u, col: l });
|
|
198
|
+
if (!a && c) {
|
|
199
|
+
const d = c.getCellWithCoordByIndex(r, s), { startRow: _, endRow: m, startColumn: N, endColumn: S } = d.mergeInfo;
|
|
200
|
+
if (_ !== m || N !== S) {
|
|
201
|
+
const h = this._sheetsNoteModel.getSheetNotes(t, o);
|
|
202
|
+
if (h) {
|
|
203
|
+
for (const [C, f] of h)
|
|
204
|
+
if (f.row >= _ && f.row <= m && f.col >= N && f.col <= S) {
|
|
205
|
+
a = f, u = f.row, l = f.col;
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
a != null && a.show || (a ? this._sheetsNotePopupService.showPopup({
|
|
196
212
|
unitId: t,
|
|
197
|
-
subUnitId:
|
|
198
|
-
|
|
199
|
-
|
|
213
|
+
subUnitId: o,
|
|
214
|
+
noteId: a.id,
|
|
215
|
+
row: u,
|
|
216
|
+
col: l,
|
|
200
217
|
temp: !0
|
|
201
218
|
}) : this._sheetsNotePopupService.hidePopup());
|
|
202
219
|
})
|
|
203
220
|
);
|
|
204
221
|
}
|
|
222
|
+
_initDeleteNoteListener() {
|
|
223
|
+
this.disposeWithMe(
|
|
224
|
+
this._sheetsNoteModel.change$.subscribe((e) => {
|
|
225
|
+
if (!this._sheetsNotePopupService.activePopup) return;
|
|
226
|
+
const { unitId: t, subUnitId: o, noteId: r, row: s, col: n } = this._sheetsNotePopupService.activePopup, { oldNote: c, newNote: u } = e;
|
|
227
|
+
u === null && e.unitId === t && e.subUnitId === o && (c != null && c.id && c.id === r || (c == null ? void 0 : c.row) === s && c.col === n) && this._sheetsNotePopupService.hidePopup(!0);
|
|
228
|
+
})
|
|
229
|
+
);
|
|
230
|
+
}
|
|
205
231
|
};
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
],
|
|
214
|
-
const
|
|
215
|
-
var
|
|
216
|
-
for (var
|
|
217
|
-
(n = i[s]) && (
|
|
218
|
-
return
|
|
219
|
-
},
|
|
220
|
-
let
|
|
221
|
-
constructor(e, t,
|
|
232
|
+
L = ft([
|
|
233
|
+
w(0, g(I)),
|
|
234
|
+
w(1, g($)),
|
|
235
|
+
w(2, g(G)),
|
|
236
|
+
w(3, qe),
|
|
237
|
+
w(4, z),
|
|
238
|
+
w(5, g(Ye))
|
|
239
|
+
], L);
|
|
240
|
+
const Ne = "sheets-note-ui.config", pe = {};
|
|
241
|
+
var Ct = Object.getOwnPropertyDescriptor, gt = (i, e, t, o) => {
|
|
242
|
+
for (var r = o > 1 ? void 0 : o ? Ct(e, t) : e, s = i.length - 1, n; s >= 0; s--)
|
|
243
|
+
(n = i[s]) && (r = n(r) || r);
|
|
244
|
+
return r;
|
|
245
|
+
}, O = (i, e) => (t, o) => e(t, o, i);
|
|
246
|
+
let U = class extends E {
|
|
247
|
+
constructor(e, t, o, r) {
|
|
222
248
|
super();
|
|
223
|
-
|
|
224
|
-
this._sheetsNoteModel = e, this._univerInstanceService = t, this._cellPopupManagerService =
|
|
249
|
+
P(this, "_noteMatrix", new F());
|
|
250
|
+
this._sheetsNoteModel = e, this._univerInstanceService = t, this._cellPopupManagerService = o, this._sheetsNotePopupService = r, this._initNoteChangeListener();
|
|
225
251
|
}
|
|
226
|
-
_showPopup(e, t,
|
|
252
|
+
_showPopup(e, t, o, r) {
|
|
227
253
|
return this._sheetsNotePopupService.hidePopup(!0), this._cellPopupManagerService.showPopup(
|
|
228
254
|
{
|
|
229
255
|
unitId: e,
|
|
230
256
|
subUnitId: t,
|
|
231
|
-
row:
|
|
232
|
-
col:
|
|
257
|
+
row: o,
|
|
258
|
+
col: r
|
|
233
259
|
},
|
|
234
260
|
{
|
|
235
|
-
componentKey:
|
|
261
|
+
componentKey: Y,
|
|
236
262
|
direction: "horizontal",
|
|
237
263
|
extraProps: {
|
|
238
264
|
location: {
|
|
239
265
|
unitId: e,
|
|
240
266
|
subUnitId: t,
|
|
241
|
-
row:
|
|
242
|
-
col:
|
|
267
|
+
row: o,
|
|
268
|
+
col: r
|
|
243
269
|
}
|
|
244
270
|
},
|
|
245
271
|
priority: 3
|
|
@@ -247,42 +273,42 @@ let H = class extends N {
|
|
|
247
273
|
);
|
|
248
274
|
}
|
|
249
275
|
dispose() {
|
|
250
|
-
super.dispose(), this._noteMatrix.forValue((e, t,
|
|
251
|
-
|
|
276
|
+
super.dispose(), this._noteMatrix.forValue((e, t, o) => {
|
|
277
|
+
o.dispose();
|
|
252
278
|
});
|
|
253
279
|
}
|
|
254
280
|
_initSheet(e, t) {
|
|
255
281
|
var s;
|
|
256
|
-
this._noteMatrix.forValue((n,
|
|
282
|
+
this._noteMatrix.forValue((n, c, u) => {
|
|
257
283
|
u.dispose();
|
|
258
|
-
}), this._noteMatrix = new
|
|
259
|
-
const
|
|
260
|
-
const p = this._noteMatrix, d = p.getValue(u,
|
|
261
|
-
if (
|
|
284
|
+
}), this._noteMatrix = new F();
|
|
285
|
+
const r = (n, c, u, l, a) => {
|
|
286
|
+
const p = this._noteMatrix, d = p.getValue(u, l);
|
|
287
|
+
if (a != null && a.show) {
|
|
262
288
|
if (!d) {
|
|
263
|
-
const _ = this._showPopup(n,
|
|
264
|
-
_ && p.setValue(u,
|
|
289
|
+
const _ = this._showPopup(n, c, u, l);
|
|
290
|
+
_ && p.setValue(u, l, _);
|
|
265
291
|
}
|
|
266
292
|
} else
|
|
267
|
-
d && (d.dispose(), p.realDeleteValue(u,
|
|
293
|
+
d && (d.dispose(), p.realDeleteValue(u, l));
|
|
268
294
|
};
|
|
269
|
-
return (s = this._sheetsNoteModel.getSheetNotes(e, t)) == null || s.
|
|
270
|
-
|
|
295
|
+
return (s = this._sheetsNoteModel.getSheetNotes(e, t)) == null || s.forEach((n) => {
|
|
296
|
+
r(e, t, n.row, n.col, n);
|
|
271
297
|
}), this._sheetsNoteModel.change$.subscribe((n) => {
|
|
272
|
-
if (!(n.unitId !== e || n.
|
|
298
|
+
if (!(n.unitId !== e || n.subUnitId !== t))
|
|
273
299
|
switch (n.type) {
|
|
274
300
|
case "ref": {
|
|
275
|
-
const { unitId:
|
|
276
|
-
if (!
|
|
277
|
-
const
|
|
278
|
-
|
|
279
|
-
const
|
|
280
|
-
|
|
301
|
+
const { unitId: c, subUnitId: u, oldNote: l, newNote: a } = n;
|
|
302
|
+
if (!a.show) return;
|
|
303
|
+
const p = this._noteMatrix, { row: d, col: _ } = l, { row: m, col: N } = a, S = p.getValue(d, _);
|
|
304
|
+
S && (S.dispose(), p.realDeleteValue(d, _));
|
|
305
|
+
const h = this._showPopup(c, u, m, N);
|
|
306
|
+
h && p.setValue(m, N, h);
|
|
281
307
|
break;
|
|
282
308
|
}
|
|
283
309
|
case "update": {
|
|
284
|
-
const { unitId:
|
|
285
|
-
|
|
310
|
+
const { unitId: c, subUnitId: u, oldNote: l, newNote: a } = n, p = a ? a.row : l.row, d = a ? a.col : l.col;
|
|
311
|
+
r(c, u, p, d, a);
|
|
286
312
|
break;
|
|
287
313
|
}
|
|
288
314
|
}
|
|
@@ -290,10 +316,10 @@ let H = class extends N {
|
|
|
290
316
|
}
|
|
291
317
|
_initNoteChangeListener() {
|
|
292
318
|
this.disposeWithMe(
|
|
293
|
-
this._univerInstanceService.getCurrentTypeOfUnit$(
|
|
294
|
-
|
|
319
|
+
this._univerInstanceService.getCurrentTypeOfUnit$(y.UNIVER_SHEET).pipe(
|
|
320
|
+
ze((e) => {
|
|
295
321
|
var t;
|
|
296
|
-
return (t = e == null ? void 0 : e.activeSheet$) != null ? t :
|
|
322
|
+
return (t = e == null ? void 0 : e.activeSheet$) != null ? t : Ge(null);
|
|
297
323
|
})
|
|
298
324
|
).subscribe((e) => {
|
|
299
325
|
if (e) {
|
|
@@ -302,66 +328,66 @@ let H = class extends N {
|
|
|
302
328
|
t.unsubscribe();
|
|
303
329
|
};
|
|
304
330
|
} else
|
|
305
|
-
this._noteMatrix.forValue((t,
|
|
306
|
-
|
|
307
|
-
}), this._noteMatrix = new
|
|
331
|
+
this._noteMatrix.forValue((t, o, r) => {
|
|
332
|
+
r.dispose();
|
|
333
|
+
}), this._noteMatrix = new F();
|
|
308
334
|
})
|
|
309
335
|
);
|
|
310
336
|
}
|
|
311
337
|
};
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
],
|
|
318
|
-
function
|
|
319
|
-
const { icon: t, id:
|
|
320
|
-
return
|
|
338
|
+
U = gt([
|
|
339
|
+
O(0, g($)),
|
|
340
|
+
O(1, g(Z)),
|
|
341
|
+
O(2, g(ve)),
|
|
342
|
+
O(3, g(I))
|
|
343
|
+
], U);
|
|
344
|
+
function B({ ref: i, ...e }) {
|
|
345
|
+
const { icon: t, id: o, className: r, extend: s, ...n } = e, c = `univerjs-icon univerjs-icon-${o} ${r || ""}`.trim(), u = Se(`_${St()}`);
|
|
346
|
+
return Pe(t, `${o}`, {
|
|
321
347
|
defIds: t.defIds,
|
|
322
348
|
idSuffix: u.current
|
|
323
349
|
}, {
|
|
324
350
|
ref: i,
|
|
325
|
-
className:
|
|
351
|
+
className: c,
|
|
326
352
|
...n
|
|
327
353
|
}, s);
|
|
328
354
|
}
|
|
329
|
-
function
|
|
330
|
-
return
|
|
355
|
+
function Pe(i, e, t, o, r) {
|
|
356
|
+
return j(i.tag, {
|
|
331
357
|
key: e,
|
|
332
|
-
...
|
|
333
|
-
...
|
|
334
|
-
}, (
|
|
358
|
+
...vt(i, t, r),
|
|
359
|
+
...o
|
|
360
|
+
}, (mt(i, t).children || []).map((s, n) => Pe(s, `${e}-${i.tag}-${n}`, t, void 0, r)));
|
|
335
361
|
}
|
|
336
|
-
function
|
|
337
|
-
const
|
|
338
|
-
t != null && t.colorChannel1 &&
|
|
339
|
-
s === "mask" && typeof n == "string" && (
|
|
362
|
+
function vt(i, e, t) {
|
|
363
|
+
const o = { ...i.attrs };
|
|
364
|
+
t != null && t.colorChannel1 && o.fill === "colorChannel1" && (o.fill = t.colorChannel1), i.tag === "mask" && o.id && (o.id = o.id + e.idSuffix), Object.entries(o).forEach(([s, n]) => {
|
|
365
|
+
s === "mask" && typeof n == "string" && (o[s] = n.replace(/url\(#(.*)\)/, `url(#$1${e.idSuffix})`));
|
|
340
366
|
});
|
|
341
|
-
const { defIds:
|
|
342
|
-
return !
|
|
343
|
-
typeof n == "string" && (
|
|
344
|
-
})),
|
|
367
|
+
const { defIds: r } = e;
|
|
368
|
+
return !r || r.length === 0 || (i.tag === "use" && o["xlink:href"] && (o["xlink:href"] = o["xlink:href"] + e.idSuffix), Object.entries(o).forEach(([s, n]) => {
|
|
369
|
+
typeof n == "string" && (o[s] = n.replace(/url\(#(.*)\)/, `url(#$1${e.idSuffix})`));
|
|
370
|
+
})), o;
|
|
345
371
|
}
|
|
346
|
-
function
|
|
347
|
-
var
|
|
372
|
+
function mt(i, e) {
|
|
373
|
+
var o;
|
|
348
374
|
const { defIds: t } = e;
|
|
349
|
-
return !t || t.length === 0 ? i : i.tag === "defs" && ((
|
|
375
|
+
return !t || t.length === 0 ? i : i.tag === "defs" && ((o = i.children) != null && o.length) ? {
|
|
350
376
|
...i,
|
|
351
|
-
children: i.children.map((
|
|
352
|
-
...
|
|
377
|
+
children: i.children.map((r) => typeof r.attrs.id == "string" && t && t.includes(r.attrs.id) ? {
|
|
378
|
+
...r,
|
|
353
379
|
attrs: {
|
|
354
|
-
...
|
|
355
|
-
id:
|
|
380
|
+
...r.attrs,
|
|
381
|
+
id: r.attrs.id + e.idSuffix
|
|
356
382
|
}
|
|
357
|
-
} :
|
|
383
|
+
} : r)
|
|
358
384
|
} : i;
|
|
359
385
|
}
|
|
360
|
-
function
|
|
386
|
+
function St() {
|
|
361
387
|
return Math.random().toString(36).substring(2, 8);
|
|
362
388
|
}
|
|
363
|
-
|
|
364
|
-
const
|
|
389
|
+
B.displayName = "UniverIcon";
|
|
390
|
+
const Nt = {
|
|
365
391
|
tag: "svg",
|
|
366
392
|
attrs: {
|
|
367
393
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -414,15 +440,15 @@ const Ct = {
|
|
|
414
440
|
}
|
|
415
441
|
}
|
|
416
442
|
]
|
|
417
|
-
},
|
|
418
|
-
return
|
|
443
|
+
}, Ie = q(function(e, t) {
|
|
444
|
+
return j(B, Object.assign({}, e, {
|
|
419
445
|
id: "add-note-icon",
|
|
420
446
|
ref: t,
|
|
421
|
-
icon:
|
|
447
|
+
icon: Nt
|
|
422
448
|
}));
|
|
423
449
|
});
|
|
424
|
-
|
|
425
|
-
const
|
|
450
|
+
Ie.displayName = "AddNoteIcon";
|
|
451
|
+
const Pt = {
|
|
426
452
|
tag: "svg",
|
|
427
453
|
attrs: {
|
|
428
454
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -468,15 +494,15 @@ const ft = {
|
|
|
468
494
|
}
|
|
469
495
|
}
|
|
470
496
|
]
|
|
471
|
-
},
|
|
472
|
-
return
|
|
497
|
+
}, we = q(function(e, t) {
|
|
498
|
+
return j(B, Object.assign({}, e, {
|
|
473
499
|
id: "delete-note-icon",
|
|
474
500
|
ref: t,
|
|
475
|
-
icon:
|
|
501
|
+
icon: Pt
|
|
476
502
|
}));
|
|
477
503
|
});
|
|
478
|
-
|
|
479
|
-
const
|
|
504
|
+
we.displayName = "DeleteNoteIcon";
|
|
505
|
+
const It = {
|
|
480
506
|
tag: "svg",
|
|
481
507
|
attrs: {
|
|
482
508
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -529,158 +555,176 @@ const vt = {
|
|
|
529
555
|
}
|
|
530
556
|
}
|
|
531
557
|
]
|
|
532
|
-
},
|
|
533
|
-
return
|
|
558
|
+
}, Me = q(function(e, t) {
|
|
559
|
+
return j(B, Object.assign({}, e, {
|
|
534
560
|
id: "hide-note-icon",
|
|
535
561
|
ref: t,
|
|
536
|
-
icon:
|
|
562
|
+
icon: It
|
|
537
563
|
}));
|
|
538
564
|
});
|
|
539
|
-
|
|
540
|
-
const
|
|
565
|
+
Me.displayName = "HideNoteIcon";
|
|
566
|
+
const R = {
|
|
541
567
|
id: "sheet.operation.add-note-popup",
|
|
542
|
-
type:
|
|
568
|
+
type: Oe.OPERATION,
|
|
543
569
|
handler: async (i, e) => {
|
|
544
|
-
|
|
570
|
+
var l;
|
|
571
|
+
const t = i.get(G), o = i.get(I), s = i.get(Z).getCurrentUnitForType(y.UNIVER_SHEET);
|
|
545
572
|
if (!s)
|
|
546
573
|
return !1;
|
|
547
|
-
const n = s.getActiveSheet(),
|
|
548
|
-
if (!(
|
|
574
|
+
const n = s.getActiveSheet(), c = t.getCurrentLastSelection();
|
|
575
|
+
if (!(c != null && c.primary))
|
|
549
576
|
return !1;
|
|
550
|
-
const { primary: u } =
|
|
551
|
-
return
|
|
577
|
+
const { primary: u } = c;
|
|
578
|
+
return o.showPopup({
|
|
552
579
|
unitId: s.getUnitId(),
|
|
553
580
|
subUnitId: n.getSheetId(),
|
|
554
581
|
row: u.actualRow,
|
|
555
582
|
col: u.actualColumn,
|
|
556
583
|
temp: !1,
|
|
557
|
-
trigger: e == null ? void 0 : e.trigger
|
|
584
|
+
trigger: (l = e == null ? void 0 : e.trigger) != null ? l : "add-note"
|
|
558
585
|
}), !0;
|
|
559
586
|
}
|
|
560
|
-
},
|
|
561
|
-
var
|
|
562
|
-
const { popup: e } = i, t = b(
|
|
563
|
-
if (!
|
|
587
|
+
}, wt = (i) => {
|
|
588
|
+
var S;
|
|
589
|
+
const { popup: e } = i, t = b($), o = b(Te), r = b(z), s = b(I), n = Xe(Ne), c = (S = e.extraProps) == null ? void 0 : S.location;
|
|
590
|
+
if (!c)
|
|
564
591
|
return console.error("Popup extraProps or location is undefined."), null;
|
|
565
|
-
const
|
|
566
|
-
|
|
567
|
-
var
|
|
568
|
-
const { unitId:
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
l(g), d(g);
|
|
588
|
-
}, [c]), f = X((C, g) => {
|
|
589
|
-
if (!c) return;
|
|
590
|
-
const w = { ...c, width: C, height: g };
|
|
591
|
-
l(w), d(w);
|
|
592
|
+
const u = Se(null), l = r.getRenderById(c.unitId), [a, p] = st(null);
|
|
593
|
+
ae(() => {
|
|
594
|
+
var Q, X, ee, te, ie, oe;
|
|
595
|
+
const { unitId: h, subUnitId: C, row: f, col: x } = c, v = t.getNote(h, C, { row: f, col: x }), A = (ee = (X = v == null ? void 0 : v.width) != null ? X : (Q = n == null ? void 0 : n.defaultNoteSize) == null ? void 0 : Q.width) != null ? ee : 160, M = (oe = (ie = v == null ? void 0 : v.height) != null ? ie : (te = n == null ? void 0 : n.defaultNoteSize) == null ? void 0 : te.height) != null ? oe : 72;
|
|
596
|
+
if (v)
|
|
597
|
+
p(v);
|
|
598
|
+
else {
|
|
599
|
+
const re = {
|
|
600
|
+
width: A,
|
|
601
|
+
height: M,
|
|
602
|
+
note: ""
|
|
603
|
+
};
|
|
604
|
+
p(re), _(re);
|
|
605
|
+
}
|
|
606
|
+
u.current && (u.current.style.width = `${A}px`, u.current.style.height = `${M}px`);
|
|
607
|
+
}, [c, u]), ae(() => {
|
|
608
|
+
if (!c || c.temp || !c.trigger || !u.current) return;
|
|
609
|
+
const h = requestAnimationFrame(() => {
|
|
610
|
+
var C;
|
|
611
|
+
(C = u.current) == null || C.focus();
|
|
612
|
+
});
|
|
613
|
+
return () => cancelAnimationFrame(h);
|
|
592
614
|
}, [c]);
|
|
593
|
-
|
|
594
|
-
|
|
615
|
+
const d = b(de), _ = et((h) => {
|
|
616
|
+
if (!c) return;
|
|
617
|
+
const { unitId: C, subUnitId: f, row: x, col: v } = c;
|
|
618
|
+
if (!d.syncExecuteCommand(Be.id, {
|
|
619
|
+
unitId: C,
|
|
620
|
+
sheetId: f,
|
|
621
|
+
row: x,
|
|
622
|
+
col: v,
|
|
623
|
+
note: h
|
|
624
|
+
})) {
|
|
625
|
+
const M = t.getNote(C, f, { noteId: h.id, row: x, col: v });
|
|
626
|
+
M ? p(M) : s.hidePopup(!0);
|
|
627
|
+
}
|
|
628
|
+
}), m = ue((h) => {
|
|
629
|
+
if (!a || h === a.note) return;
|
|
630
|
+
const C = { ...a, note: h };
|
|
631
|
+
p(C), _(C);
|
|
632
|
+
}, [a]), N = ue((h, C) => {
|
|
633
|
+
if (!a || h === a.width && C === a.height) return;
|
|
634
|
+
const f = { ...a, width: h, height: C };
|
|
635
|
+
p(f), _(f);
|
|
636
|
+
}, [a]);
|
|
637
|
+
return /* @__PURE__ */ ct(
|
|
638
|
+
at,
|
|
595
639
|
{
|
|
596
|
-
ref:
|
|
640
|
+
ref: u,
|
|
597
641
|
"data-u-comp": "note-textarea",
|
|
598
|
-
className:
|
|
599
|
-
value:
|
|
600
|
-
placeholder:
|
|
601
|
-
onResize:
|
|
602
|
-
onValueChange:
|
|
603
|
-
onWheel: (
|
|
604
|
-
document.activeElement !==
|
|
642
|
+
className: ut("univer-ml-px univer-min-h-1 univer-min-w-1 univer-bg-white !univer-text-sm univer-shadow dark:!univer-bg-gray-800"),
|
|
643
|
+
value: a == null ? void 0 : a.note,
|
|
644
|
+
placeholder: o.t("note.placeholder"),
|
|
645
|
+
onResize: N,
|
|
646
|
+
onValueChange: m,
|
|
647
|
+
onWheel: (h) => {
|
|
648
|
+
document.activeElement !== u.current && l.engine.getCanvasElement().dispatchEvent(new WheelEvent(h.type, h.nativeEvent));
|
|
605
649
|
}
|
|
606
650
|
}
|
|
607
651
|
);
|
|
608
652
|
};
|
|
609
|
-
function
|
|
610
|
-
const e = i.get(
|
|
611
|
-
return e.selectionMoveEnd$.pipe(
|
|
612
|
-
const
|
|
613
|
-
if (!(
|
|
614
|
-
const
|
|
615
|
-
if (!
|
|
616
|
-
const { actualColumn: s, actualRow: n } =
|
|
617
|
-
return !!i.get(
|
|
653
|
+
function J(i) {
|
|
654
|
+
const e = i.get(G), t = i.get(Z);
|
|
655
|
+
return e.selectionMoveEnd$.pipe(k(() => {
|
|
656
|
+
const o = e.getCurrentLastSelection();
|
|
657
|
+
if (!(o != null && o.primary)) return !1;
|
|
658
|
+
const r = je(t);
|
|
659
|
+
if (!r) return !1;
|
|
660
|
+
const { actualColumn: s, actualRow: n } = o.primary;
|
|
661
|
+
return !!i.get($).getNote(r.unitId, r.subUnitId, { row: n, col: s });
|
|
618
662
|
}));
|
|
619
663
|
}
|
|
620
|
-
function
|
|
664
|
+
function Mt(i) {
|
|
621
665
|
return {
|
|
622
|
-
id:
|
|
623
|
-
type:
|
|
666
|
+
id: R.id,
|
|
667
|
+
type: K.BUTTON,
|
|
624
668
|
title: "rightClick.addNote",
|
|
625
669
|
icon: "AddNoteIcon",
|
|
626
|
-
hidden$:
|
|
627
|
-
disabled$:
|
|
628
|
-
commandId:
|
|
670
|
+
hidden$: Ke([tt(i, y.UNIVER_SHEET), J(i)]).pipe(k(([e, t]) => e || t)),
|
|
671
|
+
disabled$: me(i, { workbookTypes: [fe], worksheetTypes: [_e] }),
|
|
672
|
+
commandId: R.id
|
|
629
673
|
};
|
|
630
674
|
}
|
|
631
|
-
function
|
|
675
|
+
function bt(i) {
|
|
632
676
|
return {
|
|
633
|
-
id:
|
|
634
|
-
type:
|
|
677
|
+
id: ge.id,
|
|
678
|
+
type: K.BUTTON,
|
|
635
679
|
title: "rightClick.deleteNote",
|
|
636
680
|
icon: "DeleteNoteIcon",
|
|
637
|
-
hidden$:
|
|
638
|
-
disabled$:
|
|
681
|
+
hidden$: J(i).pipe(k((e) => !e)),
|
|
682
|
+
disabled$: me(i, { workbookTypes: [fe], worksheetTypes: [_e] })
|
|
639
683
|
};
|
|
640
684
|
}
|
|
641
|
-
function
|
|
685
|
+
function Et(i) {
|
|
642
686
|
return {
|
|
643
|
-
id:
|
|
644
|
-
type:
|
|
687
|
+
id: Ce.id,
|
|
688
|
+
type: K.BUTTON,
|
|
645
689
|
title: "rightClick.toggleNote",
|
|
646
690
|
icon: "HideNoteIcon",
|
|
647
|
-
hidden$:
|
|
691
|
+
hidden$: J(i).pipe(k((e) => !e))
|
|
648
692
|
};
|
|
649
693
|
}
|
|
650
|
-
const
|
|
651
|
-
[
|
|
652
|
-
[
|
|
694
|
+
const yt = {
|
|
695
|
+
[it.MAIN_AREA]: {
|
|
696
|
+
[ot.OTHERS]: {
|
|
653
697
|
order: 0,
|
|
654
|
-
[
|
|
698
|
+
[R.id]: {
|
|
655
699
|
order: 0,
|
|
656
|
-
menuItemFactory:
|
|
700
|
+
menuItemFactory: Mt
|
|
657
701
|
},
|
|
658
|
-
[
|
|
702
|
+
[ge.id]: {
|
|
659
703
|
order: 0,
|
|
660
|
-
menuItemFactory:
|
|
704
|
+
menuItemFactory: bt
|
|
661
705
|
},
|
|
662
|
-
[
|
|
706
|
+
[Ce.id]: {
|
|
663
707
|
order: 0,
|
|
664
|
-
menuItemFactory:
|
|
708
|
+
menuItemFactory: Et
|
|
665
709
|
}
|
|
666
710
|
}
|
|
667
711
|
}
|
|
668
712
|
};
|
|
669
|
-
var
|
|
670
|
-
for (var
|
|
671
|
-
(n = i[s]) && (
|
|
672
|
-
return
|
|
673
|
-
},
|
|
674
|
-
let
|
|
713
|
+
var $t = Object.getOwnPropertyDescriptor, xt = (i, e, t, o) => {
|
|
714
|
+
for (var r = o > 1 ? void 0 : o ? $t(e, t) : e, s = i.length - 1, n; s >= 0; s--)
|
|
715
|
+
(n = i[s]) && (r = n(r) || r);
|
|
716
|
+
return r;
|
|
717
|
+
}, W = (i, e) => (t, o) => e(t, o, i);
|
|
718
|
+
let D = class extends E {
|
|
675
719
|
constructor(i, e, t) {
|
|
676
720
|
super(), this._componentManager = i, this._menuManagerService = e, this._commandService = t, this._initComponents(), this._initMenu(), this._initCommands();
|
|
677
721
|
}
|
|
678
722
|
_initComponents() {
|
|
679
723
|
[
|
|
680
|
-
[
|
|
681
|
-
["AddNoteIcon",
|
|
682
|
-
["DeleteNoteIcon",
|
|
683
|
-
["HideNoteIcon",
|
|
724
|
+
[Y, wt],
|
|
725
|
+
["AddNoteIcon", Ie],
|
|
726
|
+
["DeleteNoteIcon", we],
|
|
727
|
+
["HideNoteIcon", Me]
|
|
684
728
|
].forEach(([i, e]) => {
|
|
685
729
|
this.disposeWithMe(
|
|
686
730
|
this._componentManager.register(i, e)
|
|
@@ -688,68 +732,68 @@ let T = class extends N {
|
|
|
688
732
|
});
|
|
689
733
|
}
|
|
690
734
|
_initMenu() {
|
|
691
|
-
this._menuManagerService.mergeMenu(
|
|
735
|
+
this._menuManagerService.mergeMenu(yt);
|
|
692
736
|
}
|
|
693
737
|
_initCommands() {
|
|
694
|
-
this._commandService.registerCommand(
|
|
738
|
+
this._commandService.registerCommand(R);
|
|
695
739
|
}
|
|
696
740
|
};
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
],
|
|
702
|
-
var
|
|
703
|
-
for (var
|
|
704
|
-
(n = i[s]) && (
|
|
705
|
-
return
|
|
706
|
-
},
|
|
707
|
-
const
|
|
708
|
-
let
|
|
709
|
-
constructor(i =
|
|
741
|
+
D = xt([
|
|
742
|
+
W(0, g(rt)),
|
|
743
|
+
W(1, g(nt)),
|
|
744
|
+
W(2, de)
|
|
745
|
+
], D);
|
|
746
|
+
var Ht = Object.defineProperty, Ot = Object.getOwnPropertyDescriptor, Tt = (i, e, t) => e in i ? Ht(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Lt = (i, e, t, o) => {
|
|
747
|
+
for (var r = o > 1 ? void 0 : o ? Ot(e, t) : e, s = i.length - 1, n; s >= 0; s--)
|
|
748
|
+
(n = i[s]) && (r = n(r) || r);
|
|
749
|
+
return r;
|
|
750
|
+
}, he = (i, e) => (t, o) => e(t, o, i), be = (i, e, t) => Tt(i, typeof e != "symbol" ? e + "" : e, t);
|
|
751
|
+
const Ut = "SHEET_NOTE_UI_PLUGIN";
|
|
752
|
+
let V = class extends De {
|
|
753
|
+
constructor(i = pe, e, t) {
|
|
710
754
|
super(), this._config = i, this._injector = e, this._configService = t;
|
|
711
|
-
const { menu:
|
|
755
|
+
const { menu: o, ...r } = Ve(
|
|
712
756
|
{},
|
|
713
|
-
|
|
757
|
+
pe,
|
|
714
758
|
this._config
|
|
715
759
|
);
|
|
716
|
-
|
|
760
|
+
o && this._configService.setConfig("menu", o, { merge: !0 }), this._configService.setConfig(Ne, r);
|
|
717
761
|
}
|
|
718
762
|
onStarting() {
|
|
719
763
|
[
|
|
720
|
-
[
|
|
721
|
-
[$],
|
|
722
|
-
[x],
|
|
764
|
+
[I],
|
|
723
765
|
[T],
|
|
724
|
-
[
|
|
766
|
+
[L],
|
|
767
|
+
[D],
|
|
768
|
+
[U]
|
|
725
769
|
].forEach((i) => {
|
|
726
770
|
this._injector.add(i);
|
|
727
771
|
});
|
|
728
772
|
}
|
|
729
773
|
onReady() {
|
|
730
|
-
|
|
731
|
-
[
|
|
732
|
-
[
|
|
774
|
+
se(this._injector, [
|
|
775
|
+
[D],
|
|
776
|
+
[T]
|
|
733
777
|
]);
|
|
734
778
|
}
|
|
735
779
|
onRendered() {
|
|
736
|
-
|
|
737
|
-
[
|
|
738
|
-
[
|
|
780
|
+
se(this._injector, [
|
|
781
|
+
[L],
|
|
782
|
+
[U]
|
|
739
783
|
]);
|
|
740
784
|
}
|
|
741
785
|
};
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
],
|
|
786
|
+
be(V, "pluginName", Ut);
|
|
787
|
+
be(V, "type", y.UNIVER_SHEET);
|
|
788
|
+
V = Lt([
|
|
789
|
+
Le(Ae),
|
|
790
|
+
he(1, g(Ue)),
|
|
791
|
+
he(2, Re)
|
|
792
|
+
], V);
|
|
749
793
|
export {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
794
|
+
T as SheetsCellContentController,
|
|
795
|
+
wt as SheetsNote,
|
|
796
|
+
L as SheetsNotePopupController,
|
|
797
|
+
I as SheetsNotePopupService,
|
|
798
|
+
V as UniverSheetsNoteUIPlugin
|
|
755
799
|
};
|