@univerjs/sheets-hyper-link-ui 0.1.17 → 0.2.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/index.js +2 -2
- package/lib/es/index.js +205 -206
- package/lib/locale/ru-RU.json +23 -23
- package/lib/types/index.d.ts +1 -2
- package/lib/umd/index.js +2 -2
- package/package.json +22 -22
package/lib/es/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Gt = (e, t, n) => t in e ?
|
|
1
|
+
var zt = Object.defineProperty;
|
|
2
|
+
var Gt = (e, t, n) => t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var D = (e, t, n) => Gt(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { Disposable as O, UniverInstanceType as w, OnLifecycle as N, LifecycleStages as $, IUniverInstanceService as ue, BooleanNumber as qt, ThemeService as Xt, isValidRange as
|
|
5
|
-
import { RemoveSheetCommand as on, SheetInterceptorService as et, INTERCEPTOR_POINT as sn, SetSelectionsOperation as an, NORMAL_SELECTION_PLUGIN_NAME as cn, SetWorksheetActiveOperation as Oe, getSheetCommandTarget as Ct, SelectionManagerService as yt, SetRangeValuesMutation as fe, SetRangeValuesUndoMutationFactory as dt, SetRangeValuesCommand as ln, ClearSelectionContentCommand as dn, ClearSelectionAllCommand as un, ClearSelectionFormatCommand as pn, WorkbookViewPermission as hn, WorksheetViewPermission as mn, RangeProtectionPermissionViewPoint as gn, WorkbookEditablePermission as Ne, WorksheetEditPermission as $e, WorksheetInsertHyperlinkPermission as
|
|
6
|
-
import { Inject as h, Injector as
|
|
4
|
+
import { Disposable as O, UniverInstanceType as w, OnLifecycle as N, LifecycleStages as $, IUniverInstanceService as ue, BooleanNumber as qt, ThemeService as Xt, isValidRange as ze, LocaleService as pe, RANGE_TYPE as lt, Rectangle as ee, ICommandService as W, Tools as te, DEFAULT_EMPTY_DOCUMENT_VALUE as Jt, createInternalEditorID as Qt, CommandType as He, CellValueType as en, ObjectMatrix as _t, Range as Qe, IPermissionService as tn, Plugin as nn, DependentOn as rn } from "@univerjs/core";
|
|
5
|
+
import { RemoveSheetCommand as on, SheetInterceptorService as et, INTERCEPTOR_POINT as sn, SetSelectionsOperation as an, NORMAL_SELECTION_PLUGIN_NAME as cn, SetWorksheetActiveOperation as Oe, getSheetCommandTarget as Ct, SelectionManagerService as yt, SetRangeValuesMutation as fe, SetRangeValuesUndoMutationFactory as dt, SetRangeValuesCommand as ln, ClearSelectionContentCommand as dn, ClearSelectionAllCommand as un, ClearSelectionFormatCommand as pn, WorkbookViewPermission as hn, WorksheetViewPermission as mn, RangeProtectionPermissionViewPoint as gn, WorkbookEditablePermission as Ne, WorksheetEditPermission as $e, WorksheetInsertHyperlinkPermission as Be, RangeProtectionPermissionEditPoint as Ve, WorkbookCopyPermission as fn, WorksheetCopyPermission as vn, WorksheetSetCellValuePermission as tt } from "@univerjs/sheets";
|
|
6
|
+
import { Inject as h, Injector as Ae } from "@wendellhu/redi";
|
|
7
7
|
import { RemoveHyperLinkMutation as M, AddHyperLinkMutation as x, HyperLinkModel as T, ERROR_RANGE as Ge, UpdateHyperLinkCommand as St, AddHyperLinkCommand as Lt, CancelHyperLinkCommand as _n, UniverSheetsHyperLinkPlugin as Cn } from "@univerjs/sheets-hyper-link";
|
|
8
|
-
import { SheetSkeletonManagerService as It, ScrollToRangeOperation as kt, SheetCanvasPopManagerService as yn, HoverManagerService as Sn, SheetPermissionInterceptorBaseController as Pt, whenSheetEditorFocused as Ln, getCurrentRangeDisable$ as bt, APPLY_TYPE as
|
|
8
|
+
import { SheetSkeletonManagerService as It, ScrollToRangeOperation as kt, SheetCanvasPopManagerService as yn, HoverManagerService as Sn, SheetPermissionInterceptorBaseController as Pt, whenSheetEditorFocused as Ln, getCurrentRangeDisable$ as bt, APPLY_TYPE as re, IAutoFillService as In, virtualizeDiscreteRanges as qe, getAutoFillRepeatRange as kn, COPY_TYPE as ut, rangeToDiscreteRange as Pn, PREDEFINED_HOOK_NAME as ve, getRepeatRange as bn, ISheetClipboardService as Rn } from "@univerjs/sheets-ui";
|
|
9
9
|
import { IRenderManagerService as nt } from "@univerjs/engine-render";
|
|
10
10
|
import { Subject as wn, BehaviorSubject as On, debounceTime as En } from "rxjs";
|
|
11
|
-
import Mn, { forwardRef as Z, useRef as Rt, createElement as
|
|
11
|
+
import Mn, { forwardRef as Z, useRef as Rt, createElement as K, useState as ie, useEffect as xn, useMemo as Tn } from "react";
|
|
12
12
|
import { useDependency as k } from "@wendellhu/redi/react-bindings";
|
|
13
13
|
import pt from "clsx";
|
|
14
|
-
import { MessageType as
|
|
15
|
-
import { IMessageService as wt, useObservable as Ot, useEvent as Un, RangeSelector as jn, ISidebarService as Et, KeyCode as Hn, MetaKeys as Nn, MenuItemType as Mt, MenuPosition as xt, getMenuHiddenObservable as Tt, MenuGroup as $n, ComponentManager as
|
|
16
|
-
import { deserializeRangeWithSheet as Ee, serializeRangeWithSheet as Ut, IDefinedNamesService as jt, serializeRangeToRefString as Dn, serializeRange as
|
|
17
|
-
var
|
|
14
|
+
import { MessageType as ce, FormLayout as X, Input as ht, Select as Ze, Button as mt, Tooltip as _e } from "@univerjs/design";
|
|
15
|
+
import { IMessageService as wt, useObservable as Ot, useEvent as Un, RangeSelector as jn, ISidebarService as Et, KeyCode as Hn, MetaKeys as Nn, MenuItemType as Mt, MenuPosition as xt, getMenuHiddenObservable as Tt, MenuGroup as $n, ComponentManager as Bn, IShortcutService as Vn, IMenuService as An } from "@univerjs/ui";
|
|
16
|
+
import { deserializeRangeWithSheet as Ee, serializeRangeWithSheet as Ut, IDefinedNamesService as jt, serializeRangeToRefString as Dn, serializeRange as Fn } from "@univerjs/engine-formula";
|
|
17
|
+
var Wn = Object.defineProperty, Zn = Object.getOwnPropertyDescriptor, Kn = (e, t, n, r) => {
|
|
18
18
|
for (var i = r > 1 ? void 0 : r ? Zn(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
19
19
|
(s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
|
|
20
|
-
return r && i &&
|
|
21
|
-
},
|
|
20
|
+
return r && i && Wn(t, n, i), i;
|
|
21
|
+
}, Ke = (e, t) => (n, r) => t(n, r, e);
|
|
22
22
|
let ye = class extends O {
|
|
23
23
|
constructor(e, t, n) {
|
|
24
24
|
super(), this._sheetInterceptorService = e, this._univerInstanceService = t, this._hyperLinkModel = n, this._initSheetChange();
|
|
@@ -58,16 +58,16 @@ let ye = class extends O {
|
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
ye =
|
|
61
|
+
ye = Kn([
|
|
62
62
|
N($.Ready, ye),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
Ke(0, h(et)),
|
|
64
|
+
Ke(1, ue),
|
|
65
|
+
Ke(2, h(T))
|
|
66
66
|
], ye);
|
|
67
|
-
var
|
|
68
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
67
|
+
var Yn = Object.defineProperty, zn = Object.getOwnPropertyDescriptor, Ht = (e, t, n, r) => {
|
|
68
|
+
for (var i = r > 1 ? void 0 : r ? zn(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
69
69
|
(s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
|
|
70
|
-
return r && i &&
|
|
70
|
+
return r && i && Yn(t, n, i), i;
|
|
71
71
|
}, Q = (e, t) => (n, r) => t(n, r, e);
|
|
72
72
|
let Xe = class extends O {
|
|
73
73
|
constructor(e, t, n, r) {
|
|
@@ -166,13 +166,13 @@ var d = Nt.exports, b = function() {
|
|
|
166
166
|
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
167
167
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
168
168
|
return n;
|
|
169
|
-
},
|
|
169
|
+
}, Y = Z(function(e, t) {
|
|
170
170
|
var n = e.icon, r = e.id, i = e.className, o = e.extend, s = tr(e, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(r, " ").concat(i || "").trim(), a = Rt("_".concat(ir()));
|
|
171
|
-
return
|
|
171
|
+
return Bt(n, "".concat(r), { defIds: n.defIds, idSuffix: a.current }, b({ ref: t, className: c }, s), o);
|
|
172
172
|
});
|
|
173
|
-
function
|
|
174
|
-
return
|
|
175
|
-
return
|
|
173
|
+
function Bt(e, t, n, r, i) {
|
|
174
|
+
return K(e.tag, b(b({ key: t }, nr(e, n, i)), r), (rr(e, n).children || []).map(function(o, s) {
|
|
175
|
+
return Bt(o, "".concat(t, "-").concat(e.tag, "-").concat(s), n, void 0, i);
|
|
176
176
|
}));
|
|
177
177
|
}
|
|
178
178
|
function nr(e, t, n) {
|
|
@@ -193,41 +193,41 @@ function rr(e, t) {
|
|
|
193
193
|
function ir() {
|
|
194
194
|
return Math.random().toString(36).substring(2, 8);
|
|
195
195
|
}
|
|
196
|
-
|
|
196
|
+
Y.displayName = "UniverIcon";
|
|
197
197
|
var or = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.9999 1.12915C8.03875 1.12915 8.07673 1.13284 8.11352 1.13989H12.2599C13.6958 1.13989 14.8599 2.30395 14.8599 3.73989V7.88619C14.867 7.92301 14.8707 7.96102 14.8707 7.9999C14.8707 8.03878 14.867 8.0768 14.8599 8.11362V12.2599C14.8599 13.6958 13.6958 14.8599 12.2599 14.8599H8.11362C8.0768 14.867 8.03878 14.8707 7.9999 14.8707C7.96102 14.8707 7.92301 14.867 7.88619 14.8599H3.73989C2.30396 14.8599 1.13989 13.6958 1.13989 12.2599V8.11352C1.13284 8.07673 1.12915 8.03875 1.12915 7.9999C1.12915 7.96106 1.13284 7.92308 1.13989 7.88629V3.73989C1.13989 2.30396 2.30395 1.13989 3.73989 1.13989H7.88629C7.92308 1.13284 7.96106 1.12915 7.9999 1.12915ZM2.33989 8.5999V12.2599C2.33989 13.0331 2.9667 13.6599 3.73989 13.6599H7.3999V8.5999H2.33989ZM7.3999 7.3999H2.33989V3.73989C2.33989 2.9667 2.96669 2.33989 3.73989 2.33989H7.3999V7.3999ZM8.5999 8.5999V13.6599H12.2599C13.0331 13.6599 13.6599 13.0331 13.6599 12.2599V8.5999H8.5999ZM13.6599 7.3999H8.5999V2.33989H12.2599C13.0331 2.33989 13.6599 2.96669 13.6599 3.73989V7.3999Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Le = Z(function(e, t) {
|
|
198
|
-
return
|
|
198
|
+
return K(Y, Object.assign({}, e, {
|
|
199
199
|
id: "all-border-single",
|
|
200
200
|
ref: t,
|
|
201
201
|
icon: or
|
|
202
202
|
}));
|
|
203
203
|
});
|
|
204
204
|
Le.displayName = "AllBorderSingle";
|
|
205
|
-
var sr = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.02547 12.4251C5.15328 13.7417 6.26305 14.7708 7.61318 14.7708H12.6132C14.0491 14.7708 15.2132 13.6067 15.2132 12.1708V6.1708C15.2132 4.78586 14.1303 3.65383 12.7651 3.57517C12.6373 2.25858 11.5275 1.22949 10.1774 1.22949H5.17739C3.74145 1.22949 2.57739 2.39355 2.57739 3.82949V9.82949C2.57739 11.2144 3.66024 12.3465 5.02547 12.4251ZM11.5535 3.5708H7.61318C6.17724 3.5708 5.01318 4.73486 5.01318 6.1708V11.22C4.31736 11.1387 3.77739 10.5471 3.77739 9.82949V3.82949C3.77739 3.05629 4.40419 2.42949 5.17739 2.42949H10.1774C10.8622 2.42949 11.4322 2.92119 11.5535 3.5708ZM14.0132 6.1708C14.0132 5.3976 13.3864 4.7708 12.6132 4.7708H7.61318C6.83998 4.7708 6.21318 5.3976 6.21318 6.1708V12.1708C6.21318 12.944 6.83998 13.5708 7.61318 13.5708H12.6132C13.3864 13.5708 14.0132 12.944 14.0132 12.1708V6.1708Z", fillRule: "evenodd", clipRule: "evenodd" } }] },
|
|
206
|
-
return
|
|
205
|
+
var sr = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.02547 12.4251C5.15328 13.7417 6.26305 14.7708 7.61318 14.7708H12.6132C14.0491 14.7708 15.2132 13.6067 15.2132 12.1708V6.1708C15.2132 4.78586 14.1303 3.65383 12.7651 3.57517C12.6373 2.25858 11.5275 1.22949 10.1774 1.22949H5.17739C3.74145 1.22949 2.57739 2.39355 2.57739 3.82949V9.82949C2.57739 11.2144 3.66024 12.3465 5.02547 12.4251ZM11.5535 3.5708H7.61318C6.17724 3.5708 5.01318 4.73486 5.01318 6.1708V11.22C4.31736 11.1387 3.77739 10.5471 3.77739 9.82949V3.82949C3.77739 3.05629 4.40419 2.42949 5.17739 2.42949H10.1774C10.8622 2.42949 11.4322 2.92119 11.5535 3.5708ZM14.0132 6.1708C14.0132 5.3976 13.3864 4.7708 12.6132 4.7708H7.61318C6.83998 4.7708 6.21318 5.3976 6.21318 6.1708V12.1708C6.21318 12.944 6.83998 13.5708 7.61318 13.5708H12.6132C13.3864 13.5708 14.0132 12.944 14.0132 12.1708V6.1708Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Vt = Z(function(e, t) {
|
|
206
|
+
return K(Y, Object.assign({}, e, {
|
|
207
207
|
id: "copy-single",
|
|
208
208
|
ref: t,
|
|
209
209
|
icon: sr
|
|
210
210
|
}));
|
|
211
211
|
});
|
|
212
|
-
|
|
212
|
+
Vt.displayName = "CopySingle";
|
|
213
213
|
var ar = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.9564 2.91332C4.91407 1.87102 3.22413 1.87101 2.18182 2.91333L2.18182 2.91333C1.13953 3.95567 1.13952 5.6456 2.18182 6.68791L8.27777 12.7838C9.72408 14.2302 12.069 14.2302 13.5154 12.7839L13.0911 12.3596L13.5154 12.7839C14.9617 11.3375 14.9617 8.99257 13.5154 7.54626L8.39476 2.42566C8.16044 2.19134 7.78054 2.19134 7.54623 2.42566C7.31191 2.65997 7.31191 3.03987 7.54623 3.27419L12.6668 8.39479L13.0911 7.97052L12.6668 8.39479C13.6445 9.37247 13.6445 10.9576 12.6668 11.9353L13.0399 12.3084L12.6668 11.9353C11.6891 12.913 10.104 12.913 9.1263 11.9353L3.03035 5.83938C2.45668 5.26571 2.45667 4.33556 3.03036 3.76184C3.60403 3.18818 4.53416 3.18817 5.10788 3.76185C5.10788 3.76186 5.10788 3.76186 5.10789 3.76186L11.2038 9.8578L11.601 9.46061L11.2038 9.8578C11.3735 10.0275 11.3735 10.3026 11.2038 10.4723L11.2038 10.4723C11.0341 10.642 10.759 10.642 10.5893 10.4723L5.46874 5.35171C5.23442 5.1174 4.85452 5.1174 4.62021 5.35171C4.38589 5.58602 4.38589 5.96592 4.62021 6.20024L9.74078 11.3208C10.3791 11.9591 11.414 11.9591 12.0523 11.3208C12.0523 11.3208 12.0523 11.3208 12.0523 11.3208M12.0523 11.3208C12.6907 10.6825 12.6906 9.64757 12.0523 9.00927L5.95641 2.91333L5.9564 2.91332", fillRule: "evenodd", clipRule: "evenodd" } }] }, Me = Z(function(e, t) {
|
|
214
|
-
return
|
|
214
|
+
return K(Y, Object.assign({}, e, {
|
|
215
215
|
id: "link-single",
|
|
216
216
|
ref: t,
|
|
217
217
|
icon: ar
|
|
218
218
|
}));
|
|
219
219
|
});
|
|
220
220
|
Me.displayName = "LinkSingle";
|
|
221
|
-
var cr = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 17", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.5935 3.47302C11.6354 2.51492 10.082 2.51492 9.12388 3.47302L7.83534 4.76157C7.60102 4.99588 7.22112 4.99588 6.98681 4.76157 6.75249 4.52725 6.75249 4.14735 6.98681 3.91304L8.27535 2.62449C9.70209 1.19776 12.0153 1.19776 13.442 2.62449 14.8688 4.05123 14.8688 6.36442 13.442 7.79116L12.1535 9.0797C11.9192 9.31402 11.5393 9.31402 11.3049 9.0797 11.0706 8.84539 11.0706 8.46549 11.3049 8.23117L12.5935 6.94263C13.5516 5.98452 13.5516 4.43113 12.5935 3.47302zM3.40637 12.6606C2.44827 11.7025 2.44827 10.1491 3.40637 9.19102L4.69492 7.90248C4.92923 7.66816 4.92923 7.28826 4.69492 7.05395 4.4606 6.81963 4.0807 6.81963 3.84639 7.05395L2.55784 8.34249C1.13111 9.76923 1.13111 12.0824 2.55784 13.5092 3.98458 14.9359 6.29777 14.9359 7.72451 13.5092L9.01305 12.2206C9.24737 11.9863 9.24737 11.6064 9.01305 11.3721 8.77874 11.1378 8.39884 11.1378 8.16452 11.3721L6.87598 12.6606C5.91787 13.6187 4.36448 13.6187 3.40637 12.6606zM3.5852 2.80332C3.35088 2.569 2.97098 2.569 2.73667 2.80332 2.50235 3.03763 2.50235 3.41753 2.73667 3.65185L12.4151 13.3302C12.6494 13.5646 13.0293 13.5646 13.2636 13.3302 13.4979 13.0959 13.4979 12.716 13.2636 12.4817L3.5852 2.80332z" } }] },
|
|
222
|
-
return
|
|
221
|
+
var cr = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 17", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.5935 3.47302C11.6354 2.51492 10.082 2.51492 9.12388 3.47302L7.83534 4.76157C7.60102 4.99588 7.22112 4.99588 6.98681 4.76157 6.75249 4.52725 6.75249 4.14735 6.98681 3.91304L8.27535 2.62449C9.70209 1.19776 12.0153 1.19776 13.442 2.62449 14.8688 4.05123 14.8688 6.36442 13.442 7.79116L12.1535 9.0797C11.9192 9.31402 11.5393 9.31402 11.3049 9.0797 11.0706 8.84539 11.0706 8.46549 11.3049 8.23117L12.5935 6.94263C13.5516 5.98452 13.5516 4.43113 12.5935 3.47302zM3.40637 12.6606C2.44827 11.7025 2.44827 10.1491 3.40637 9.19102L4.69492 7.90248C4.92923 7.66816 4.92923 7.28826 4.69492 7.05395 4.4606 6.81963 4.0807 6.81963 3.84639 7.05395L2.55784 8.34249C1.13111 9.76923 1.13111 12.0824 2.55784 13.5092 3.98458 14.9359 6.29777 14.9359 7.72451 13.5092L9.01305 12.2206C9.24737 11.9863 9.24737 11.6064 9.01305 11.3721 8.77874 11.1378 8.39884 11.1378 8.16452 11.3721L6.87598 12.6606C5.91787 13.6187 4.36448 13.6187 3.40637 12.6606zM3.5852 2.80332C3.35088 2.569 2.97098 2.569 2.73667 2.80332 2.50235 3.03763 2.50235 3.41753 2.73667 3.65185L12.4151 13.3302C12.6494 13.5646 13.0293 13.5646 13.2636 13.3302 13.4979 13.0959 13.4979 12.716 13.2636 12.4817L3.5852 2.80332z" } }] }, At = Z(function(e, t) {
|
|
222
|
+
return K(Y, Object.assign({}, e, {
|
|
223
223
|
id: "unlink-single",
|
|
224
224
|
ref: t,
|
|
225
225
|
icon: cr
|
|
226
226
|
}));
|
|
227
227
|
});
|
|
228
|
-
|
|
228
|
+
At.displayName = "UnlinkSingle";
|
|
229
229
|
var lr = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.6551 1.98906C11.7476 1.08113 10.2757 1.08149 9.3686 1.98987L4.82542 6.53955C4.75087 6.61421 4.69336 6.70411 4.65682 6.80309L3.2461 10.625C3.16506 10.8446 3.21909 11.0912 3.3845 11.2568C3.54991 11.4224 3.79651 11.4767 4.01616 11.3959L7.85031 9.98517C7.94979 9.94856 8.04014 9.89077 8.11508 9.81579L12.6552 5.27327C13.5618 4.36621 13.5618 2.89607 12.6551 1.98906ZM10.2177 2.83779C10.6562 2.39869 11.3677 2.39851 11.8064 2.8374C12.2447 3.27584 12.2447 3.9865 11.8065 4.42497L7.3392 8.89457L4.82213 9.82068L5.74706 7.31487L10.2177 2.83779Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.79238 13.2999C1.46101 13.2999 1.19238 13.5685 1.19238 13.8999C1.19238 14.2313 1.46101 14.4999 1.79238 14.4999H14.4924C14.8238 14.4999 15.0924 14.2313 15.0924 13.8999C15.0924 13.5685 14.8238 13.2999 14.4924 13.2999H1.79238Z" } }] }, Dt = Z(function(e, t) {
|
|
230
|
-
return
|
|
230
|
+
return K(Y, Object.assign({}, e, {
|
|
231
231
|
id: "write-single",
|
|
232
232
|
ref: t,
|
|
233
233
|
icon: lr
|
|
@@ -235,7 +235,7 @@ var lr = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em"
|
|
|
235
235
|
});
|
|
236
236
|
Dt.displayName = "WriteSingle";
|
|
237
237
|
var dr = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "#35BD4B", d: "M3.36396 1.12549C2.61066 1.12549 2 1.73615 2 2.48945V13.5104C2 14.2637 2.61066 14.8744 3.36396 14.8744H12.457C13.2103 14.8744 13.821 14.2637 13.821 13.5104V5.0992L9.91954 1.12549H3.36396Z" } }, { tag: "path", attrs: { fill: "#32A846", d: "M9.91797 1.12549L13.8209 5.09842H10.5846C10.2164 5.09842 9.91797 4.79994 9.91797 4.43175V1.12549Z" } }, { tag: "path", attrs: { fill: "#fff", d: "M7.71926 10.2949L6.28687 12.403C6.17306 12.5705 5.94501 12.614 5.77751 12.5002C5.61002 12.3864 5.56649 12.1584 5.6803 11.9909L7.27596 9.64252L5.85088 7.54519C5.73707 7.37769 5.78059 7.14964 5.94809 7.03583C6.11558 6.92202 6.34363 6.96555 6.45744 7.13304L7.71926 8.9901L8.98108 7.13304C9.09489 6.96555 9.32294 6.92202 9.49044 7.03583C9.65793 7.14964 9.70146 7.37769 9.58765 7.54519L8.16256 9.64252L9.75822 11.9909C9.87203 12.1584 9.82851 12.3864 9.66101 12.5002C9.49351 12.614 9.26547 12.5705 9.15166 12.403L7.71926 10.2949Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Je = Z(function(e, t) {
|
|
238
|
-
return
|
|
238
|
+
return K(Y, Object.assign({}, e, {
|
|
239
239
|
id: "xlsx",
|
|
240
240
|
ref: t,
|
|
241
241
|
icon: dr
|
|
@@ -246,7 +246,7 @@ var ur = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, hr = (e, t
|
|
|
246
246
|
for (var i = r > 1 ? void 0 : r ? pr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
247
247
|
(s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
|
|
248
248
|
return r && i && ur(t, n, i), i;
|
|
249
|
-
},
|
|
249
|
+
}, oe = (e, t) => (n, r) => t(n, r, e);
|
|
250
250
|
function mr(e, t) {
|
|
251
251
|
const n = t.getMergeData(), r = t.getMaxColumns() - 1, i = t.getMaxRows() - 1;
|
|
252
252
|
if (r < e.endColumn && (e.endColumn = r), i < e.endRow && (e.endRow = i), e.rangeType === lt.COLUMN || lt.ROW)
|
|
@@ -256,7 +256,7 @@ function mr(e, t) {
|
|
|
256
256
|
ee.intersects(e, s) && o.push(s);
|
|
257
257
|
}), ee.realUnion(e, ...o);
|
|
258
258
|
}
|
|
259
|
-
let
|
|
259
|
+
let F = class {
|
|
260
260
|
constructor(e, t, n, r, i) {
|
|
261
261
|
this._univerInstanceService = e, this._commandService = t, this._definedNamesService = n, this._messageService = r, this._localeService = i;
|
|
262
262
|
}
|
|
@@ -268,7 +268,7 @@ let W = class {
|
|
|
268
268
|
const o = t ? i.getSheetBySheetId(t) : i.getActiveSheet(), s = (c = o == null ? void 0 : o.getName()) != null ? c : "";
|
|
269
269
|
if (n) {
|
|
270
270
|
const a = Ee(n).range;
|
|
271
|
-
return
|
|
271
|
+
return ze(a) && n !== Ge ? {
|
|
272
272
|
type: "range",
|
|
273
273
|
name: Ut(s, a)
|
|
274
274
|
} : {
|
|
@@ -306,7 +306,7 @@ let W = class {
|
|
|
306
306
|
if (r && this.navigateToDefineName(o, r), !!t) {
|
|
307
307
|
if (n) {
|
|
308
308
|
const s = Ee(n);
|
|
309
|
-
|
|
309
|
+
ze(s.range) && n !== Ge && this.navigateToRange(o, t, s.range);
|
|
310
310
|
return;
|
|
311
311
|
}
|
|
312
312
|
this.navigateToSheetById(o, t);
|
|
@@ -369,14 +369,14 @@ let W = class {
|
|
|
369
369
|
if (!i) {
|
|
370
370
|
this._messageService.show({
|
|
371
371
|
content: this._localeService.t("hyperLink.message.noSheet"),
|
|
372
|
-
type:
|
|
372
|
+
type: ce.Error
|
|
373
373
|
});
|
|
374
374
|
return;
|
|
375
375
|
}
|
|
376
376
|
const o = i.getSheetId();
|
|
377
377
|
return n.getHiddenWorksheets().indexOf(o) > -1 && this._messageService.show({
|
|
378
378
|
content: this._localeService.t("hyperLink.message.hiddenSheet"),
|
|
379
|
-
type:
|
|
379
|
+
type: ce.Error
|
|
380
380
|
}), await this._commandService.executeCommand(Oe.id, { unitId: e, subUnitId: o });
|
|
381
381
|
}
|
|
382
382
|
async navigateToSheetById(e, t) {
|
|
@@ -391,10 +391,10 @@ let W = class {
|
|
|
391
391
|
const i = n.getSheetBySheetId(t);
|
|
392
392
|
return i ? n.getHiddenWorksheets().indexOf(t) > -1 ? (this._messageService.show({
|
|
393
393
|
content: this._localeService.t("hyperLink.message.hiddenSheet"),
|
|
394
|
-
type:
|
|
394
|
+
type: ce.Error
|
|
395
395
|
}), !1) : await this._commandService.executeCommand(Oe.id, { unitId: e, subUnitId: t }) ? i : !1 : (this._messageService.show({
|
|
396
396
|
content: this._localeService.t("hyperLink.message.noSheet"),
|
|
397
|
-
type:
|
|
397
|
+
type: ce.Error
|
|
398
398
|
}), !1);
|
|
399
399
|
}
|
|
400
400
|
async navigateToDefineName(e, t) {
|
|
@@ -404,31 +404,30 @@ let W = class {
|
|
|
404
404
|
window.open(e, "_blank", "noopener noreferrer");
|
|
405
405
|
}
|
|
406
406
|
};
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
],
|
|
414
|
-
const gr = /[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/gi, fr = new RegExp(gr);
|
|
407
|
+
F = hr([
|
|
408
|
+
oe(0, ue),
|
|
409
|
+
oe(1, W),
|
|
410
|
+
oe(2, jt),
|
|
411
|
+
oe(3, wt),
|
|
412
|
+
oe(4, h(pe))
|
|
413
|
+
], F);
|
|
415
414
|
function de(e) {
|
|
416
|
-
return
|
|
415
|
+
return te.isLegalUrl(e);
|
|
417
416
|
}
|
|
418
|
-
function
|
|
417
|
+
function gr(e) {
|
|
419
418
|
return /^[a-zA-Z]+:\/\//.test(e);
|
|
420
419
|
}
|
|
421
|
-
function
|
|
420
|
+
function fr(e) {
|
|
422
421
|
return /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(e);
|
|
423
422
|
}
|
|
424
423
|
function rt(e) {
|
|
425
424
|
if (de(e)) {
|
|
426
|
-
const t =
|
|
425
|
+
const t = gr(e) ? e : fr(e) ? `mailto://${e}` : `http://${e}`, n = new URL(t);
|
|
427
426
|
return n.hostname === location.hostname && n.port === location.port && n.protocol === location.protocol && n.pathname === location.pathname && n.hash && !n.search ? n.hash : t;
|
|
428
427
|
}
|
|
429
428
|
return e;
|
|
430
429
|
}
|
|
431
|
-
function
|
|
430
|
+
function vr(e) {
|
|
432
431
|
if (e === null)
|
|
433
432
|
return "";
|
|
434
433
|
if (e != null && e.p) {
|
|
@@ -440,14 +439,14 @@ function Cr(e) {
|
|
|
440
439
|
}
|
|
441
440
|
return e == null ? void 0 : e.v;
|
|
442
441
|
}
|
|
443
|
-
const
|
|
444
|
-
cellLinkEditButtons:
|
|
442
|
+
const _r = "univer-cell-link-edit-buttons", Cr = {
|
|
443
|
+
cellLinkEditButtons: _r
|
|
445
444
|
}, xe = () => {
|
|
446
|
-
var
|
|
447
|
-
const [e, t] =
|
|
445
|
+
var ne;
|
|
446
|
+
const [e, t] = ie(""), [n, r] = ie(""), [i, o] = ie(
|
|
448
447
|
"link"
|
|
449
448
|
/* link */
|
|
450
|
-
), [s, c] =
|
|
449
|
+
), [s, c] = ie(""), a = k(pe), p = k(jt), m = k(ue), f = k(H), l = Ot(f.currentEditing$), g = k(T), S = k(F), v = k(W), [I, A] = ie(!1), y = Rt(!1);
|
|
451
450
|
xn(() => {
|
|
452
451
|
var u, C, L;
|
|
453
452
|
if ((l == null ? void 0 : l.row) !== void 0 && l.column !== void 0) {
|
|
@@ -470,14 +469,14 @@ const yr = "univer-cell-link-edit-buttons", Sr = {
|
|
|
470
469
|
return;
|
|
471
470
|
}
|
|
472
471
|
if (j.range) {
|
|
473
|
-
const
|
|
472
|
+
const Yt = j.gid && (L = (C = (u = m.getUnit(l.unitId)) == null ? void 0 : u.getSheetBySheetId(j.gid)) == null ? void 0 : C.getName()) != null ? L : "";
|
|
474
473
|
if (o(
|
|
475
474
|
"range"
|
|
476
475
|
/* range */
|
|
477
476
|
), j.range === Ge)
|
|
478
477
|
c("");
|
|
479
478
|
else {
|
|
480
|
-
const ct = Ut(
|
|
479
|
+
const ct = Ut(Yt, Ee(j.range).range);
|
|
481
480
|
c(ct), ct === _.display && (y.current = !0);
|
|
482
481
|
}
|
|
483
482
|
return;
|
|
@@ -491,11 +490,11 @@ const yr = "univer-cell-link-edit-buttons", Sr = {
|
|
|
491
490
|
}
|
|
492
491
|
}
|
|
493
492
|
}
|
|
494
|
-
const U = m.getUnit(l.unitId), R = U == null ? void 0 : U.getSheetBySheetId(l.subUnitId),
|
|
493
|
+
const U = m.getUnit(l.unitId), R = U == null ? void 0 : U.getSheetBySheetId(l.subUnitId), Kt = R == null ? void 0 : R.getCellRaw(l.row, l.column), We = vr(Kt);
|
|
495
494
|
o(
|
|
496
495
|
"link"
|
|
497
496
|
/* link */
|
|
498
|
-
), c(""), r((
|
|
497
|
+
), c(""), r((We != null ? We : "").toString()), t("");
|
|
499
498
|
return;
|
|
500
499
|
}
|
|
501
500
|
o(
|
|
@@ -503,7 +502,7 @@ const yr = "univer-cell-link-edit-buttons", Sr = {
|
|
|
503
502
|
/* link */
|
|
504
503
|
), c(""), r(""), t("");
|
|
505
504
|
}, [l, g, S, m]);
|
|
506
|
-
const
|
|
505
|
+
const z = Tn(() => s, [i]), B = [
|
|
507
506
|
{
|
|
508
507
|
label: a.t("hyperLink.form.link"),
|
|
509
508
|
value: "link"
|
|
@@ -527,7 +526,7 @@ const yr = "univer-cell-link-edit-buttons", Sr = {
|
|
|
527
526
|
], P = m.getCurrentUnitForType(w.UNIVER_SHEET);
|
|
528
527
|
if (!P)
|
|
529
528
|
return;
|
|
530
|
-
const G = P.getHiddenWorksheets(),
|
|
529
|
+
const G = P.getHiddenWorksheets(), V = P.getSheets().map((u) => ({ label: u.getName(), value: u.getSheetId() })).filter((u) => G.indexOf(u.value) === -1), q = Object.values((ne = p.getDefinedNameMap(P.getUnitId())) != null ? ne : {}).map((u) => ({
|
|
531
530
|
label: u.name,
|
|
532
531
|
value: u.id
|
|
533
532
|
})), he = (u, C) => {
|
|
@@ -536,13 +535,13 @@ const yr = "univer-cell-link-edit-buttons", Sr = {
|
|
|
536
535
|
if (u === "range") {
|
|
537
536
|
const L = Ee(C), _ = P.getSheetBySheetName(L.sheetName);
|
|
538
537
|
if (_)
|
|
539
|
-
return `#gid=${_.getSheetId()}&range=${
|
|
538
|
+
return `#gid=${_.getSheetId()}&range=${Fn(L.range)}`;
|
|
540
539
|
}
|
|
541
540
|
return `#${u}=${C}`;
|
|
542
|
-
},
|
|
541
|
+
}, Fe = Un((u) => {
|
|
543
542
|
var _;
|
|
544
543
|
const C = u[0];
|
|
545
|
-
if (!C || !
|
|
544
|
+
if (!C || !ze(C.range))
|
|
546
545
|
return;
|
|
547
546
|
C.sheetName || (C.sheetName = ((_ = P.getActiveSheet()) == null ? void 0 : _.getName()) || "");
|
|
548
547
|
const L = Dn(C);
|
|
@@ -560,7 +559,7 @@ const yr = "univer-cell-link-edit-buttons", Sr = {
|
|
|
560
559
|
unitId: l.unitId,
|
|
561
560
|
subUnitId: l.subUnitId,
|
|
562
561
|
link: {
|
|
563
|
-
id:
|
|
562
|
+
id: te.generateRandomId(),
|
|
564
563
|
row: l.row,
|
|
565
564
|
column: l.column,
|
|
566
565
|
payload: he(i, s),
|
|
@@ -571,7 +570,7 @@ const yr = "univer-cell-link-edit-buttons", Sr = {
|
|
|
571
570
|
unitId: l.unitId,
|
|
572
571
|
subUnitId: l.subUnitId
|
|
573
572
|
});
|
|
574
|
-
const u =
|
|
573
|
+
const u = 1;
|
|
575
574
|
await v.executeCommand(kt.id, {
|
|
576
575
|
range: {
|
|
577
576
|
startRow: Math.max(l.row - u, 0),
|
|
@@ -604,7 +603,7 @@ const yr = "univer-cell-link-edit-buttons", Sr = {
|
|
|
604
603
|
/* @__PURE__ */ d.jsx(X, { label: a.t("hyperLink.form.type"), children: /* @__PURE__ */ d.jsx(
|
|
605
604
|
Ze,
|
|
606
605
|
{
|
|
607
|
-
options:
|
|
606
|
+
options: B,
|
|
608
607
|
value: i,
|
|
609
608
|
onChange: (u) => {
|
|
610
609
|
o(u), c("");
|
|
@@ -633,19 +632,19 @@ const yr = "univer-cell-link-edit-buttons", Sr = {
|
|
|
633
632
|
openForSheetUnitId: P.getUnitId(),
|
|
634
633
|
id: Qt("hyper-link-edit"),
|
|
635
634
|
isSingleChoice: !0,
|
|
636
|
-
value:
|
|
637
|
-
onChange:
|
|
635
|
+
value: z,
|
|
636
|
+
onChange: Fe
|
|
638
637
|
}
|
|
639
638
|
) }),
|
|
640
639
|
i === "gid" && /* @__PURE__ */ d.jsx(X, { error: I && !s ? a.t("hyperLink.form.selectError") : "", children: /* @__PURE__ */ d.jsx(
|
|
641
640
|
Ze,
|
|
642
641
|
{
|
|
643
|
-
options:
|
|
642
|
+
options: V,
|
|
644
643
|
value: s,
|
|
645
644
|
onChange: (u) => {
|
|
646
645
|
var _, U;
|
|
647
646
|
c(u);
|
|
648
|
-
const C = (_ =
|
|
647
|
+
const C = (_ = V.find((R) => R.value === u)) == null ? void 0 : _.label, L = (U = V.find((R) => R.value === s)) == null ? void 0 : U.label;
|
|
649
648
|
C && (y.current || !n || n === L) && (r(C), y.current = !0);
|
|
650
649
|
}
|
|
651
650
|
}
|
|
@@ -663,7 +662,7 @@ const yr = "univer-cell-link-edit-buttons", Sr = {
|
|
|
663
662
|
}
|
|
664
663
|
}
|
|
665
664
|
) }),
|
|
666
|
-
/* @__PURE__ */ d.jsxs("div", { className:
|
|
665
|
+
/* @__PURE__ */ d.jsxs("div", { className: Cr.cellLinkEditButtons, children: [
|
|
667
666
|
/* @__PURE__ */ d.jsx(
|
|
668
667
|
mt,
|
|
669
668
|
{
|
|
@@ -683,7 +682,7 @@ const yr = "univer-cell-link-edit-buttons", Sr = {
|
|
|
683
682
|
style: { marginLeft: 8 },
|
|
684
683
|
onClick: async () => {
|
|
685
684
|
if (!n || !s || i === "link" && !de(s)) {
|
|
686
|
-
|
|
685
|
+
A(!0);
|
|
687
686
|
return;
|
|
688
687
|
}
|
|
689
688
|
me();
|
|
@@ -725,7 +724,7 @@ const it = {
|
|
|
725
724
|
const t = e.get(ue), n = Ct(t);
|
|
726
725
|
if (!n)
|
|
727
726
|
return !1;
|
|
728
|
-
const r = e.get(
|
|
727
|
+
const r = e.get(W), o = e.get(yt).getFirst();
|
|
729
728
|
if (!(o != null && o.primary))
|
|
730
729
|
return !1;
|
|
731
730
|
const s = o.primary.startRow, c = o.primary.startColumn;
|
|
@@ -740,19 +739,19 @@ const it = {
|
|
|
740
739
|
type: He.OPERATION,
|
|
741
740
|
id: "sheet.operation.insert-hyper-link-toolbar",
|
|
742
741
|
handler(e) {
|
|
743
|
-
const t = e.get(
|
|
742
|
+
const t = e.get(W);
|
|
744
743
|
return e.get(H).currentEditing ? t.executeCommand(Te.id) : t.executeCommand(ot.id);
|
|
745
744
|
}
|
|
746
|
-
},
|
|
747
|
-
cellLink:
|
|
748
|
-
cellLinkType:
|
|
749
|
-
cellLinkContent:
|
|
750
|
-
cellLinkContentError:
|
|
751
|
-
cellLinkUrl:
|
|
752
|
-
cellLinkOperations:
|
|
753
|
-
cellLinkOperation:
|
|
754
|
-
cellLinkOperationError:
|
|
755
|
-
},
|
|
745
|
+
}, yr = "univer-cell-link", Sr = "univer-cell-link-type", Lr = "univer-cell-link-content", Ir = "univer-cell-link-content-error", kr = "univer-cell-link-url", Pr = "univer-cell-link-operations", br = "univer-cell-link-operation", Rr = "univer-cell-link-operation-error", E = {
|
|
746
|
+
cellLink: yr,
|
|
747
|
+
cellLinkType: Sr,
|
|
748
|
+
cellLinkContent: Lr,
|
|
749
|
+
cellLinkContentError: Ir,
|
|
750
|
+
cellLinkUrl: kr,
|
|
751
|
+
cellLinkOperations: Pr,
|
|
752
|
+
cellLinkOperation: br,
|
|
753
|
+
cellLinkOperationError: Rr
|
|
754
|
+
}, wr = {
|
|
756
755
|
outer: /* @__PURE__ */ d.jsx(Me, {}),
|
|
757
756
|
link: /* @__PURE__ */ d.jsx(Me, {}),
|
|
758
757
|
sheet: /* @__PURE__ */ d.jsx(Je, {}),
|
|
@@ -761,7 +760,7 @@ const it = {
|
|
|
761
760
|
"range-error": /* @__PURE__ */ d.jsx(Le, {}),
|
|
762
761
|
"sheet-error": /* @__PURE__ */ d.jsx(Je, {})
|
|
763
762
|
}, Ue = () => {
|
|
764
|
-
const e = k(H), t = k(T), n = k(
|
|
763
|
+
const e = k(H), t = k(T), n = k(W), r = k(wt), i = k(pe), o = Ot(e.currentPopup$, e.currentPopup), s = k(F);
|
|
765
764
|
if (!o)
|
|
766
765
|
return null;
|
|
767
766
|
const { unitId: c, subUnitId: a, id: p } = o, m = t.getHyperLink(c, a, p);
|
|
@@ -770,7 +769,7 @@ const it = {
|
|
|
770
769
|
const f = s.parseHyperLink(m.payload), l = f.type.indexOf("error") > -1;
|
|
771
770
|
return /* @__PURE__ */ d.jsxs("div", { className: E.cellLink, onClick: () => e.hideCurrentPopup(), children: [
|
|
772
771
|
/* @__PURE__ */ d.jsxs("div", { className: pt(E.cellLinkContent, { [E.cellLinkContentError]: l }), onClick: f.handler, children: [
|
|
773
|
-
/* @__PURE__ */ d.jsx("div", { className: E.cellLinkType, children:
|
|
772
|
+
/* @__PURE__ */ d.jsx("div", { className: E.cellLinkType, children: wr[f.type] }),
|
|
774
773
|
/* @__PURE__ */ d.jsx(_e, { showIfEllipsis: !0, title: f.name, children: /* @__PURE__ */ d.jsx("span", { className: E.cellLinkUrl, children: f.name }) })
|
|
775
774
|
] }),
|
|
776
775
|
/* @__PURE__ */ d.jsxs("div", { className: E.cellLinkOperations, children: [
|
|
@@ -787,11 +786,11 @@ const it = {
|
|
|
787
786
|
navigator.clipboard.writeText(f.url);
|
|
788
787
|
r.show({
|
|
789
788
|
content: i.t("hyperLink.message.coped"),
|
|
790
|
-
type:
|
|
789
|
+
type: ce.Info
|
|
791
790
|
});
|
|
792
791
|
}
|
|
793
792
|
},
|
|
794
|
-
children: /* @__PURE__ */ d.jsx(_e, { placement: "bottom", title: i.t("hyperLink.popup.copy"), children: /* @__PURE__ */ d.jsx(
|
|
793
|
+
children: /* @__PURE__ */ d.jsx(_e, { placement: "bottom", title: i.t("hyperLink.popup.copy"), children: /* @__PURE__ */ d.jsx(Vt, {}) })
|
|
795
794
|
}
|
|
796
795
|
),
|
|
797
796
|
o.editPermission && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
@@ -821,7 +820,7 @@ const it = {
|
|
|
821
820
|
id: m.id
|
|
822
821
|
});
|
|
823
822
|
},
|
|
824
|
-
children: /* @__PURE__ */ d.jsx(_e, { placement: "bottom", title: i.t("hyperLink.popup.cancel"), children: /* @__PURE__ */ d.jsx(
|
|
823
|
+
children: /* @__PURE__ */ d.jsx(_e, { placement: "bottom", title: i.t("hyperLink.popup.cancel"), children: /* @__PURE__ */ d.jsx(At, {}) })
|
|
825
824
|
}
|
|
826
825
|
)
|
|
827
826
|
] })
|
|
@@ -829,12 +828,12 @@ const it = {
|
|
|
829
828
|
] });
|
|
830
829
|
};
|
|
831
830
|
Ue.componentKey = "univer.sheet.cell-link-popup";
|
|
832
|
-
var
|
|
833
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
831
|
+
var Or = Object.defineProperty, Er = Object.getOwnPropertyDescriptor, Mr = (e, t, n, r) => {
|
|
832
|
+
for (var i = r > 1 ? void 0 : r ? Er(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
834
833
|
(s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
|
|
835
|
-
return r && i &&
|
|
834
|
+
return r && i && Or(t, n, i), i;
|
|
836
835
|
}, gt = (e, t) => (n, r) => t(n, r, e);
|
|
837
|
-
const
|
|
836
|
+
const xr = (e, t) => e.unitId === t.unitId && e.subUnitId === t.subUnitId && e.row === t.row && e.col === t.col;
|
|
838
837
|
let H = class extends O {
|
|
839
838
|
constructor(t, n) {
|
|
840
839
|
super();
|
|
@@ -854,7 +853,7 @@ let H = class extends O {
|
|
|
854
853
|
return this._currentEditing$.getValue();
|
|
855
854
|
}
|
|
856
855
|
showPopup(t) {
|
|
857
|
-
if (this._currentPopup &&
|
|
856
|
+
if (this._currentPopup && xr(t, this._currentPopup))
|
|
858
857
|
return;
|
|
859
858
|
this.hideCurrentPopup();
|
|
860
859
|
const { unitId: n, subUnitId: r, row: i, col: o } = t, s = this._hyperLinkModel.getHyperLinkByLocation(n, r, i, o);
|
|
@@ -890,15 +889,15 @@ let H = class extends O {
|
|
|
890
889
|
this._currentEditing$.next(null);
|
|
891
890
|
}
|
|
892
891
|
};
|
|
893
|
-
H =
|
|
892
|
+
H = Mr([
|
|
894
893
|
gt(0, h(T)),
|
|
895
894
|
gt(1, h(yn))
|
|
896
895
|
], H);
|
|
897
|
-
var
|
|
898
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
896
|
+
var Tr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, jr = (e, t, n, r) => {
|
|
897
|
+
for (var i = r > 1 ? void 0 : r ? Ur(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
899
898
|
(s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
|
|
900
|
-
return r && i &&
|
|
901
|
-
},
|
|
899
|
+
return r && i && Tr(t, n, i), i;
|
|
900
|
+
}, se = (e, t) => (n, r) => t(n, r, e);
|
|
902
901
|
let Ie = class extends O {
|
|
903
902
|
constructor(e, t, n, r, i) {
|
|
904
903
|
super(), this._sheetInterceptorService = e, this._injector = t, this._hyperLinkModel = n, this._selectionManagerService = r, this._univerInstanceService = i, this._initCommandInterceptor();
|
|
@@ -992,7 +991,7 @@ let Ie = class extends O {
|
|
|
992
991
|
const p = (S = a == null ? void 0 : a.v) != null ? S : (g = (l = a == null ? void 0 : a.p) == null ? void 0 : l.body) == null ? void 0 : g.dataStream.slice(0, -2), m = (p != null ? p : "").toString(), f = this._hyperLinkModel.getHyperLinkByLocation(n, r, s, c);
|
|
993
992
|
if (!f) {
|
|
994
993
|
if (de(m)) {
|
|
995
|
-
const v =
|
|
994
|
+
const v = te.generateRandomId();
|
|
996
995
|
o.push({
|
|
997
996
|
id: M.id,
|
|
998
997
|
params: {
|
|
@@ -1087,19 +1086,19 @@ let Ie = class extends O {
|
|
|
1087
1086
|
return (o = (i = this._univerInstanceService.getUnit(e, w.UNIVER_SHEET)) == null ? void 0 : i.getSheetBySheetId(t)) == null ? void 0 : o.getCell(n, r);
|
|
1088
1087
|
}
|
|
1089
1088
|
};
|
|
1090
|
-
Ie =
|
|
1089
|
+
Ie = jr([
|
|
1091
1090
|
N($.Starting, Ie),
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1091
|
+
se(0, h(et)),
|
|
1092
|
+
se(1, h(Ae)),
|
|
1093
|
+
se(2, h(T)),
|
|
1094
|
+
se(3, h(yt)),
|
|
1095
|
+
se(4, ue)
|
|
1097
1096
|
], Ie);
|
|
1098
|
-
var
|
|
1099
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1097
|
+
var Hr = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, $r = (e, t, n, r) => {
|
|
1098
|
+
for (var i = r > 1 ? void 0 : r ? Nr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
1100
1099
|
(s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
|
|
1101
|
-
return r && i &&
|
|
1102
|
-
},
|
|
1100
|
+
return r && i && Hr(t, n, i), i;
|
|
1101
|
+
}, ae = (e, t) => (n, r) => t(n, r, e);
|
|
1103
1102
|
let ke = class extends O {
|
|
1104
1103
|
constructor(e, t, n, r, i) {
|
|
1105
1104
|
super(), this._hoverManagerService = e, this._sheetsHyperLinkPopupService = t, this._renderManagerService = n, this._permissionService = r, this._sheetPermissionInterceptorBaseController = i, this._initHoverListener();
|
|
@@ -1126,8 +1125,8 @@ let ke = class extends O {
|
|
|
1126
1125
|
}
|
|
1127
1126
|
const c = this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
|
|
1128
1127
|
workbookTypes: [Ne],
|
|
1129
|
-
worksheetTypes: [$e,
|
|
1130
|
-
rangeTypes: [
|
|
1128
|
+
worksheetTypes: [$e, Be],
|
|
1129
|
+
rangeTypes: [Ve]
|
|
1131
1130
|
}, [{ startRow: r, startColumn: n, endRow: r, endColumn: n }]), a = e.location.unitId, p = e.location.subUnitId, m = this._permissionService.composePermission([new fn(a).id, new vn(a, p).id]).every((g) => g.value);
|
|
1132
1131
|
this._sheetsHyperLinkPopupService.showPopup({
|
|
1133
1132
|
...e.location,
|
|
@@ -1140,23 +1139,23 @@ let ke = class extends O {
|
|
|
1140
1139
|
);
|
|
1141
1140
|
}
|
|
1142
1141
|
};
|
|
1143
|
-
ke =
|
|
1142
|
+
ke = $r([
|
|
1144
1143
|
N($.Rendered, ke),
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1144
|
+
ae(0, h(Sn)),
|
|
1145
|
+
ae(1, h(H)),
|
|
1146
|
+
ae(2, h(nt)),
|
|
1147
|
+
ae(3, h(tn)),
|
|
1148
|
+
ae(4, h(Pt))
|
|
1150
1149
|
], ke);
|
|
1151
|
-
const
|
|
1150
|
+
const Br = (e) => ({
|
|
1152
1151
|
id: ot.id,
|
|
1153
1152
|
type: Mt.BUTTON,
|
|
1154
1153
|
positions: [xt.CONTEXT_MENU],
|
|
1155
1154
|
title: "hyperLink.menu.add",
|
|
1156
1155
|
hidden$: Tt(e, w.UNIVER_SHEET),
|
|
1157
1156
|
icon: "LinkSingle",
|
|
1158
|
-
disabled$: bt(e, { workbookTypes: [Ne], worksheetTypes: [$e, tt,
|
|
1159
|
-
}),
|
|
1157
|
+
disabled$: bt(e, { workbookTypes: [Ne], worksheetTypes: [$e, tt, Be], rangeTypes: [Ve] })
|
|
1158
|
+
}), Vr = (e) => ({
|
|
1160
1159
|
tooltip: "hyperLink.form.addTitle",
|
|
1161
1160
|
positions: xt.TOOLBAR_START,
|
|
1162
1161
|
group: $n.TOOLBAR_OTHERS,
|
|
@@ -1164,18 +1163,18 @@ const Vr = (e) => ({
|
|
|
1164
1163
|
type: Mt.BUTTON,
|
|
1165
1164
|
icon: "LinkSingle",
|
|
1166
1165
|
hidden$: Tt(e, w.UNIVER_SHEET),
|
|
1167
|
-
disabled$: bt(e, { workbookTypes: [Ne], worksheetTypes: [$e, tt,
|
|
1168
|
-
}),
|
|
1166
|
+
disabled$: bt(e, { workbookTypes: [Ne], worksheetTypes: [$e, tt, Be], rangeTypes: [Ve] })
|
|
1167
|
+
}), Ft = {
|
|
1169
1168
|
id: st.id,
|
|
1170
1169
|
binding: Hn.K | Nn.CTRL_COMMAND,
|
|
1171
1170
|
preconditions: Ln
|
|
1172
1171
|
};
|
|
1173
|
-
var
|
|
1174
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1172
|
+
var Ar = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, Fr = (e, t, n, r) => {
|
|
1173
|
+
for (var i = r > 1 ? void 0 : r ? Dr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
1175
1174
|
(s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
|
|
1176
|
-
return r && i &&
|
|
1175
|
+
return r && i && Ar(t, n, i), i;
|
|
1177
1176
|
}, J = (e, t) => (n, r) => t(n, r, e);
|
|
1178
|
-
let
|
|
1177
|
+
let le = class extends O {
|
|
1179
1178
|
constructor(e, t, n, r, i, o, s) {
|
|
1180
1179
|
super(), this._config = e, this._componentManager = t, this._commandService = n, this._localeService = r, this._menuService = i, this._injector = o, this._shortcutService = s, this._initComponents(), this._initCommands(), this._initMenus(), this._initShortCut();
|
|
1181
1180
|
}
|
|
@@ -1200,26 +1199,26 @@ let ce = class extends O {
|
|
|
1200
1199
|
}
|
|
1201
1200
|
_initMenus() {
|
|
1202
1201
|
var e, t, n, r;
|
|
1203
|
-
this._menuService.addMenuItem(
|
|
1202
|
+
this._menuService.addMenuItem(Br(this._injector), (t = (e = this._config) == null ? void 0 : e.menu) != null ? t : {}), this._menuService.addMenuItem(Vr(this._injector), (r = (n = this._config) == null ? void 0 : n.menu) != null ? r : {});
|
|
1204
1203
|
}
|
|
1205
1204
|
_initShortCut() {
|
|
1206
|
-
this._shortcutService.registerShortcut(
|
|
1205
|
+
this._shortcutService.registerShortcut(Ft);
|
|
1207
1206
|
}
|
|
1208
1207
|
};
|
|
1209
|
-
|
|
1210
|
-
N($.Ready,
|
|
1211
|
-
J(1, h(
|
|
1212
|
-
J(2,
|
|
1208
|
+
le = Fr([
|
|
1209
|
+
N($.Ready, le),
|
|
1210
|
+
J(1, h(Bn)),
|
|
1211
|
+
J(2, W),
|
|
1213
1212
|
J(3, h(pe)),
|
|
1214
|
-
J(4,
|
|
1215
|
-
J(5, h(
|
|
1216
|
-
J(6, h(
|
|
1217
|
-
],
|
|
1213
|
+
J(4, An),
|
|
1214
|
+
J(5, h(Ae)),
|
|
1215
|
+
J(6, h(Vn))
|
|
1216
|
+
], le);
|
|
1218
1217
|
const at = "SHEET_HYPER_LINK_UI_PLUGIN";
|
|
1219
|
-
var
|
|
1220
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1218
|
+
var Wr = Object.defineProperty, Zr = Object.getOwnPropertyDescriptor, Kr = (e, t, n, r) => {
|
|
1219
|
+
for (var i = r > 1 ? void 0 : r ? Zr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
1221
1220
|
(s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
|
|
1222
|
-
return r && i &&
|
|
1221
|
+
return r && i && Wr(t, n, i), i;
|
|
1223
1222
|
}, ft = (e, t) => (n, r) => t(n, r, e);
|
|
1224
1223
|
let Pe = class extends O {
|
|
1225
1224
|
constructor(e, t) {
|
|
@@ -1232,8 +1231,8 @@ let Pe = class extends O {
|
|
|
1232
1231
|
row: m.startRow,
|
|
1233
1232
|
col: m.startColumn
|
|
1234
1233
|
}, S = kn(m, f), v = [], I = [];
|
|
1235
|
-
return S.forEach((
|
|
1236
|
-
const y =
|
|
1234
|
+
return S.forEach((A) => {
|
|
1235
|
+
const y = A.repeatStartCell, z = A.relativeRange, B = {
|
|
1237
1236
|
startRow: g.row,
|
|
1238
1237
|
startColumn: g.col,
|
|
1239
1238
|
endColumn: g.col,
|
|
@@ -1244,26 +1243,26 @@ let Pe = class extends O {
|
|
|
1244
1243
|
endColumn: y.col,
|
|
1245
1244
|
endRow: y.row
|
|
1246
1245
|
};
|
|
1247
|
-
Qe.foreach(
|
|
1246
|
+
Qe.foreach(z, (G, V) => {
|
|
1248
1247
|
const q = ee.getPositionRange(
|
|
1249
1248
|
{
|
|
1250
1249
|
startRow: G,
|
|
1251
|
-
startColumn:
|
|
1252
|
-
endColumn:
|
|
1250
|
+
startColumn: V,
|
|
1251
|
+
endColumn: V,
|
|
1253
1252
|
endRow: G
|
|
1254
1253
|
},
|
|
1255
|
-
|
|
1256
|
-
), { row: he, col:
|
|
1254
|
+
B
|
|
1255
|
+
), { row: he, col: Fe } = l(q.startRow, q.startColumn), me = this._hyperLinkModel.getHyperLinkByLocation(c, a, he, Fe);
|
|
1257
1256
|
if (me) {
|
|
1258
|
-
const
|
|
1257
|
+
const ne = ee.getPositionRange(
|
|
1259
1258
|
{
|
|
1260
1259
|
startRow: G,
|
|
1261
|
-
startColumn:
|
|
1262
|
-
endColumn:
|
|
1260
|
+
startColumn: V,
|
|
1261
|
+
endColumn: V,
|
|
1263
1262
|
endRow: G
|
|
1264
1263
|
},
|
|
1265
1264
|
P
|
|
1266
|
-
), { row: u, col: C } = l(
|
|
1265
|
+
), { row: u, col: C } = l(ne.startRow, ne.startColumn), L = te.generateRandomId(), _ = this._hyperLinkModel.getHyperLinkByLocation(c, a, u, C);
|
|
1267
1266
|
_ && v.push({
|
|
1268
1267
|
id: M.id,
|
|
1269
1268
|
params: {
|
|
@@ -1271,7 +1270,7 @@ let Pe = class extends O {
|
|
|
1271
1270
|
subUnitId: a,
|
|
1272
1271
|
id: _.id
|
|
1273
1272
|
}
|
|
1274
|
-
}), (
|
|
1273
|
+
}), (re.COPY === i || re.SERIES === i) && (v.push({
|
|
1275
1274
|
id: x.id,
|
|
1276
1275
|
params: {
|
|
1277
1276
|
unitId: c,
|
|
@@ -1306,20 +1305,20 @@ let Pe = class extends O {
|
|
|
1306
1305
|
};
|
|
1307
1306
|
}, n = {
|
|
1308
1307
|
id: at,
|
|
1309
|
-
onFillData: (r, i, o) => o ===
|
|
1308
|
+
onFillData: (r, i, o) => o === re.COPY || o === re.ONLY_FORMAT || o === re.SERIES ? t(r, o) : e()
|
|
1310
1309
|
};
|
|
1311
1310
|
this.disposeWithMe(this._autoFillService.addHook(n));
|
|
1312
1311
|
}
|
|
1313
1312
|
};
|
|
1314
|
-
Pe =
|
|
1313
|
+
Pe = Kr([
|
|
1315
1314
|
N($.Ready, Pe),
|
|
1316
1315
|
ft(0, In),
|
|
1317
1316
|
ft(1, h(T))
|
|
1318
1317
|
], Pe);
|
|
1319
|
-
var
|
|
1320
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1318
|
+
var Yr = Object.defineProperty, zr = Object.getOwnPropertyDescriptor, Gr = (e, t, n, r) => {
|
|
1319
|
+
for (var i = r > 1 ? void 0 : r ? zr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
1321
1320
|
(s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
|
|
1322
|
-
return r && i &&
|
|
1321
|
+
return r && i && Yr(t, n, i), i;
|
|
1323
1322
|
}, Ce = (e, t) => (n, r) => t(n, r, e);
|
|
1324
1323
|
let be = class extends O {
|
|
1325
1324
|
constructor(t, n, r, i) {
|
|
@@ -1348,7 +1347,7 @@ let be = class extends O {
|
|
|
1348
1347
|
id: v.id
|
|
1349
1348
|
}
|
|
1350
1349
|
});
|
|
1351
|
-
const I =
|
|
1350
|
+
const I = te.generateRandomId();
|
|
1352
1351
|
p.push({
|
|
1353
1352
|
id: x.id,
|
|
1354
1353
|
params: {
|
|
@@ -1432,24 +1431,24 @@ let be = class extends O {
|
|
|
1432
1431
|
endColumn: S
|
|
1433
1432
|
},
|
|
1434
1433
|
f
|
|
1435
|
-
),
|
|
1436
|
-
|
|
1434
|
+
), A = this._hyperLinkModel.getHyperLink(r, i, v), { row: y, col: z } = p(I.startRow, I.startColumn), B = this._hyperLinkModel.getHyperLinkByLocation(n.unitId, n.subUnitId, y, z), P = te.generateRandomId();
|
|
1435
|
+
B && o.push({
|
|
1437
1436
|
id: M.id,
|
|
1438
1437
|
params: {
|
|
1439
1438
|
unitId: n.unitId,
|
|
1440
1439
|
subUnitId: n.subUnitId,
|
|
1441
|
-
id:
|
|
1440
|
+
id: B.id
|
|
1442
1441
|
}
|
|
1443
|
-
}),
|
|
1442
|
+
}), A && (o.push({
|
|
1444
1443
|
id: x.id,
|
|
1445
1444
|
params: {
|
|
1446
1445
|
unitId: n.unitId,
|
|
1447
1446
|
subUnitId: n.subUnitId,
|
|
1448
1447
|
link: {
|
|
1449
|
-
...
|
|
1448
|
+
...A,
|
|
1450
1449
|
id: P,
|
|
1451
1450
|
row: y,
|
|
1452
|
-
column:
|
|
1451
|
+
column: z
|
|
1453
1452
|
}
|
|
1454
1453
|
}
|
|
1455
1454
|
}), s.push({
|
|
@@ -1459,12 +1458,12 @@ let be = class extends O {
|
|
|
1459
1458
|
subUnitId: n.subUnitId,
|
|
1460
1459
|
id: P
|
|
1461
1460
|
}
|
|
1462
|
-
})),
|
|
1461
|
+
})), B && s.push({
|
|
1463
1462
|
id: x.id,
|
|
1464
1463
|
params: {
|
|
1465
1464
|
unitId: n.unitId,
|
|
1466
1465
|
subUnitId: n.subUnitId,
|
|
1467
|
-
link:
|
|
1466
|
+
link: B
|
|
1468
1467
|
}
|
|
1469
1468
|
});
|
|
1470
1469
|
});
|
|
@@ -1474,18 +1473,18 @@ let be = class extends O {
|
|
|
1474
1473
|
};
|
|
1475
1474
|
}
|
|
1476
1475
|
};
|
|
1477
|
-
be =
|
|
1476
|
+
be = Gr([
|
|
1478
1477
|
N($.Ready, be),
|
|
1479
1478
|
Ce(0, Rn),
|
|
1480
1479
|
Ce(1, h(T)),
|
|
1481
|
-
Ce(2, h(
|
|
1482
|
-
Ce(3, h(
|
|
1480
|
+
Ce(2, h(Ae)),
|
|
1481
|
+
Ce(3, h(F))
|
|
1483
1482
|
], be);
|
|
1484
|
-
var
|
|
1485
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1483
|
+
var qr = Object.defineProperty, Xr = Object.getOwnPropertyDescriptor, Jr = (e, t, n, r) => {
|
|
1484
|
+
for (var i = r > 1 ? void 0 : r ? Xr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
1486
1485
|
(s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
|
|
1487
|
-
return r && i &&
|
|
1488
|
-
},
|
|
1486
|
+
return r && i && qr(t, n, i), i;
|
|
1487
|
+
}, Qr = (e, t) => (n, r) => t(n, r, e);
|
|
1489
1488
|
let Re = class extends O {
|
|
1490
1489
|
constructor(e) {
|
|
1491
1490
|
super(), this._resolverService = e, this._handleInitUrl();
|
|
@@ -1495,15 +1494,15 @@ let Re = class extends O {
|
|
|
1495
1494
|
e && this._resolverService.parseHyperLink(e).handler();
|
|
1496
1495
|
}
|
|
1497
1496
|
};
|
|
1498
|
-
Re =
|
|
1497
|
+
Re = Jr([
|
|
1499
1498
|
N($.Rendered, Re),
|
|
1500
|
-
|
|
1499
|
+
Qr(0, h(F))
|
|
1501
1500
|
], Re);
|
|
1502
|
-
var
|
|
1503
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1501
|
+
var ei = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, ni = (e, t, n, r) => {
|
|
1502
|
+
for (var i = r > 1 ? void 0 : r ? ti(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
1504
1503
|
(s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
|
|
1505
|
-
return r && i &&
|
|
1506
|
-
},
|
|
1504
|
+
return r && i && ei(t, n, i), i;
|
|
1505
|
+
}, Ye = (e, t) => (n, r) => t(n, r, e);
|
|
1507
1506
|
let we = class extends O {
|
|
1508
1507
|
constructor(e, t, n) {
|
|
1509
1508
|
super(), this._localeService = e, this._commandService = t, this._sheetPermissionInterceptorBaseController = n, this._commandExecutedListener();
|
|
@@ -1511,42 +1510,42 @@ let we = class extends O {
|
|
|
1511
1510
|
_commandExecutedListener() {
|
|
1512
1511
|
this.disposeWithMe(
|
|
1513
1512
|
this._commandService.beforeCommandExecuted((e) => {
|
|
1514
|
-
e.id ===
|
|
1513
|
+
e.id === Ft.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
|
|
1515
1514
|
workbookTypes: [Ne],
|
|
1516
|
-
rangeTypes: [
|
|
1517
|
-
worksheetTypes: [$e, tt,
|
|
1515
|
+
rangeTypes: [Ve],
|
|
1516
|
+
worksheetTypes: [$e, tt, Be]
|
|
1518
1517
|
}) || this._sheetPermissionInterceptorBaseController.haveNotPermissionHandle(this._localeService.t("permission.dialog.hyperLinkErr")));
|
|
1519
1518
|
})
|
|
1520
1519
|
);
|
|
1521
1520
|
}
|
|
1522
1521
|
};
|
|
1523
|
-
we =
|
|
1522
|
+
we = ni([
|
|
1524
1523
|
N($.Rendered, we),
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1524
|
+
Ye(0, h(pe)),
|
|
1525
|
+
Ye(1, W),
|
|
1526
|
+
Ye(2, h(Pt))
|
|
1528
1527
|
], we);
|
|
1529
|
-
var
|
|
1530
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1528
|
+
var Wt = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, ii = (e, t, n) => t in e ? Wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, oi = (e, t, n, r) => {
|
|
1529
|
+
for (var i = r > 1 ? void 0 : r ? ri(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
1531
1530
|
(s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
|
|
1532
|
-
return r && i &&
|
|
1533
|
-
}, vt = (e, t) => (n, r) => t(n, r, e), Zt = (e, t, n) =>
|
|
1531
|
+
return r && i && Wt(t, n, i), i;
|
|
1532
|
+
}, vt = (e, t) => (n, r) => t(n, r, e), Zt = (e, t, n) => ii(e, typeof t != "symbol" ? t + "" : t, n);
|
|
1534
1533
|
let je = class extends nn {
|
|
1535
1534
|
constructor(e, t, n) {
|
|
1536
1535
|
super(), this._config = e, this._injector = t, this._renderManagerService = n;
|
|
1537
1536
|
}
|
|
1538
1537
|
onStarting(e) {
|
|
1539
1538
|
[
|
|
1540
|
-
[
|
|
1539
|
+
[F],
|
|
1541
1540
|
[H],
|
|
1542
1541
|
[ye],
|
|
1543
1542
|
[Se],
|
|
1544
1543
|
[Ie],
|
|
1545
1544
|
[ke],
|
|
1546
1545
|
[
|
|
1547
|
-
|
|
1546
|
+
le,
|
|
1548
1547
|
{
|
|
1549
|
-
useFactory: () => this._injector.createInstance(
|
|
1548
|
+
useFactory: () => this._injector.createInstance(le, this._config)
|
|
1550
1549
|
}
|
|
1551
1550
|
],
|
|
1552
1551
|
[Pe],
|
|
@@ -1558,15 +1557,15 @@ let je = class extends nn {
|
|
|
1558
1557
|
};
|
|
1559
1558
|
Zt(je, "pluginName", at);
|
|
1560
1559
|
Zt(je, "type", w.UNIVER_SHEET);
|
|
1561
|
-
je =
|
|
1560
|
+
je = oi([
|
|
1562
1561
|
rn(Cn),
|
|
1563
|
-
vt(1, h(
|
|
1562
|
+
vt(1, h(Ae)),
|
|
1564
1563
|
vt(2, nt)
|
|
1565
1564
|
], je);
|
|
1566
1565
|
export {
|
|
1567
1566
|
Te as CloseHyperLinkSidebarOperation,
|
|
1568
1567
|
ot as InsertHyperLinkOperation,
|
|
1569
|
-
|
|
1568
|
+
Ft as InsertLinkShortcut,
|
|
1570
1569
|
it as OpenHyperLinkSidebarOperation,
|
|
1571
1570
|
Ie as SheetHyperLinkSetRangeController,
|
|
1572
1571
|
Re as SheetHyperLinkUrlController,
|
|
@@ -1577,7 +1576,7 @@ export {
|
|
|
1577
1576
|
ye as SheetsHyperLinkRemoveSheetController,
|
|
1578
1577
|
Xe as SheetsHyperLinkRenderController,
|
|
1579
1578
|
Se as SheetsHyperLinkRenderManagerController,
|
|
1580
|
-
|
|
1581
|
-
|
|
1579
|
+
F as SheetsHyperLinkResolverService,
|
|
1580
|
+
le as SheetsHyperLinkUIController,
|
|
1582
1581
|
je as UniverSheetsHyperLinkUIPlugin
|
|
1583
1582
|
};
|