@univerjs/ui 0.15.0-insiders.20260108-47c73e3 → 0.15.0-insiders.20260108-7b9120d
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 +8 -8
- package/lib/es/index.js +501 -498
- package/lib/index.js +501 -498
- package/lib/types/controllers/ui/ui-shared.controller.d.ts +1 -0
- package/lib/umd/index.js +9 -9
- package/package.json +6 -6
package/lib/es/index.js
CHANGED
|
@@ -4,22 +4,22 @@ var C2 = (e) => {
|
|
|
4
4
|
};
|
|
5
5
|
var v2 = (e, t, n) => t in e ? f2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
6
|
var B = (e, t, n) => v2(e, typeof t != "symbol" ? t + "" : t, n);
|
|
7
|
-
var
|
|
8
|
-
import { Disposable as d1, createIdentifier as h1, CommandType as
|
|
9
|
-
import { BehaviorSubject as S1, distinctUntilChanged as
|
|
10
|
-
import { useRef as J, createElement as x, forwardRef as H, useEffect as W, useMemo as G, useState as z, useCallback as
|
|
11
|
-
import { jsx as f, Fragment as
|
|
7
|
+
var v3 = (e, t, n) => t.has(e) ? C2("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n);
|
|
8
|
+
import { Disposable as d1, createIdentifier as h1, CommandType as Qe, toDisposable as c1, IUniverInstanceService as N1, DocumentFlavor as Ot, LocaleService as m1, ColorKit as S3, NAMED_STYLE_MAP as g2, IConfigService as Y1, ICommandService as F1, NamedStyleType as B1, Workbook as p2, UniverInstanceType as g3, DocumentDataModel as d9, SlideDataModel as m2, remove as $t, FOCUSING_UNIVER_EDITOR as Oe, IContextService as fe, Inject as g1, Injector as I1, merge as $e, convertObservableToBehaviorSubject as b2, isRealNum as L2, ErrorService as w2, RedoCommand as j3, UndoCommand as U3, IUndoRedoService as y2, EDITOR_ACTIVATED as h9, FOCUSING_FX_BAR_EDITOR as f9, Optional as C9, dedupeBy as _2, generateRandomId as ue, throttle as M2, ThemeService as z3, LifecycleStages as p3, LifecycleUnreachableError as I2, isInternalEditorID as x2, LifecycleService as v9, ILogService as H2, IConfirmService as W3, DependentOn as g9, Plugin as p9, registerDependencies as m9, mergeOverrideWithDependencies as b9, ILocalStorageService as L9, touchDependencies as K1, BaselineOffset as m3, getBorderStyleType as O1, BorderStyleTypes as S2, Tools as w9 } from "@univerjs/core";
|
|
9
|
+
import { BehaviorSubject as S1, distinctUntilChanged as y9, Observable as de, switchMap as R2, isObservable as Ee, fromEvent as V2, Subject as $1, of as Ce, combineLatest as W1, merge as O2, first as $2, throttleTime as b3, animationFrameScheduler as L3, map as _9, filter as Et, debounceTime as E2, startWith as N2, ReplaySubject as D2 } from "rxjs";
|
|
10
|
+
import { useRef as J, createElement as x, forwardRef as H, useEffect as W, useMemo as G, useState as z, useCallback as Ke, memo as M9, createContext as I9, useContext as e3, useImperativeHandle as T2, Fragment as Nt, useLayoutEffect as R3, cloneElement as Z2 } from "react";
|
|
11
|
+
import { jsx as f, Fragment as t3, jsxs as q } from "react/jsx-runtime";
|
|
12
12
|
import { useDependency as P, useObservable as r1, useInjector as A2, connectInjector as R1 } from "@wendellhu/redi/react-bindings";
|
|
13
13
|
export * from "@wendellhu/redi/react-bindings";
|
|
14
|
-
import { clsx as K, isBrowser as B2, resizeObserverCtor as P2, Button as
|
|
15
|
-
import { map as
|
|
14
|
+
import { clsx as K, isBrowser as B2, resizeObserverCtor as P2, Button as w3, DropdownMenu as V3, Tooltip as Y3, InputNumber as F2, TinyMenuGroup as k2, Menu as j2, MenuItem as O3, MenuItemGroup as $3, SubMenu as Dt, MessageType as U2, KBD as z2, divideYClassName as W2, HoverCard as Y2, borderClassName as G2, Dropdown as x9, divideXClassName as Tt, borderBottomClassName as Ne, Popup as H9, borderLeftBottomClassName as X2, scrollbarClassName as q2, ConfigProvider as S9, ConfigContext as J2, ColorPicker as Q2, unmount as R9, render as V9, Confirm as K2, Dialog as e4, Gallery as t4, Messager as n4, removeMessage as Le, message as r4, toast as i4, Toaster as o4 } from "@univerjs/design";
|
|
15
|
+
import { map as Zt, startWith as y3 } from "rxjs/operators";
|
|
16
16
|
import { IRenderManagerService as O9, UniverRenderEnginePlugin as $9, ptToPx as s4 } from "@univerjs/engine-render";
|
|
17
17
|
import { createPortal as E9 } from "react-dom";
|
|
18
|
-
class
|
|
18
|
+
class G3 extends d1 {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|
|
21
21
|
B(this, "_open$", new S1(!1));
|
|
22
|
-
B(this, "open$", this._open$.pipe(
|
|
22
|
+
B(this, "open$", this._open$.pipe(y9()));
|
|
23
23
|
}
|
|
24
24
|
get isOpen() {
|
|
25
25
|
return this._open$.getValue();
|
|
@@ -34,11 +34,11 @@ class X3 extends d1 {
|
|
|
34
34
|
this._open$.next(!1);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
const i7 = h1("ui.left-sidebar.service"), ve = h1("ui.sidebar.service"), N9 = "ShortcutPanel",
|
|
37
|
+
const i7 = h1("ui.left-sidebar.service"), ve = h1("ui.sidebar.service"), N9 = "ShortcutPanel", n3 = {
|
|
38
38
|
id: "base-ui.operation.toggle-shortcut-panel",
|
|
39
|
-
type:
|
|
39
|
+
type: Qe.OPERATION,
|
|
40
40
|
handler: (e) => {
|
|
41
|
-
const t = e.get(
|
|
41
|
+
const t = e.get(G3), n = e.get(ve);
|
|
42
42
|
return t.isOpen ? (t.close(), n.close()) : (t.open(), n.open({
|
|
43
43
|
header: { title: "shortcut-panel.title" },
|
|
44
44
|
children: { label: N9 }
|
|
@@ -664,14 +664,14 @@ const M4 = {
|
|
|
664
664
|
clipRule: "evenodd"
|
|
665
665
|
}
|
|
666
666
|
}]
|
|
667
|
-
},
|
|
667
|
+
}, X3 = H(function(t, n) {
|
|
668
668
|
return x(R, Object.assign({}, t, {
|
|
669
669
|
id: "check-mark-icon",
|
|
670
670
|
ref: n,
|
|
671
671
|
icon: M4
|
|
672
672
|
}));
|
|
673
673
|
});
|
|
674
|
-
|
|
674
|
+
X3.displayName = "CheckMarkIcon";
|
|
675
675
|
const I4 = {
|
|
676
676
|
tag: "svg",
|
|
677
677
|
attrs: {
|
|
@@ -688,14 +688,14 @@ const I4 = {
|
|
|
688
688
|
d: "M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z"
|
|
689
689
|
}
|
|
690
690
|
}]
|
|
691
|
-
},
|
|
691
|
+
}, q3 = H(function(t, n) {
|
|
692
692
|
return x(R, Object.assign({}, t, {
|
|
693
693
|
id: "close-icon",
|
|
694
694
|
ref: n,
|
|
695
695
|
icon: I4
|
|
696
696
|
}));
|
|
697
697
|
});
|
|
698
|
-
|
|
698
|
+
q3.displayName = "CloseIcon";
|
|
699
699
|
const x4 = {
|
|
700
700
|
tag: "svg",
|
|
701
701
|
attrs: {
|
|
@@ -1252,14 +1252,14 @@ const j4 = {
|
|
|
1252
1252
|
clipRule: "evenodd"
|
|
1253
1253
|
}
|
|
1254
1254
|
}]
|
|
1255
|
-
},
|
|
1255
|
+
}, J3 = H(function(t, n) {
|
|
1256
1256
|
return x(R, Object.assign({}, t, {
|
|
1257
1257
|
id: "function-icon",
|
|
1258
1258
|
ref: n,
|
|
1259
1259
|
icon: j4
|
|
1260
1260
|
}));
|
|
1261
1261
|
});
|
|
1262
|
-
|
|
1262
|
+
J3.displayName = "FunctionIcon";
|
|
1263
1263
|
const U4 = {
|
|
1264
1264
|
tag: "svg",
|
|
1265
1265
|
attrs: {
|
|
@@ -1970,14 +1970,14 @@ const a0 = {
|
|
|
1970
1970
|
}
|
|
1971
1971
|
}
|
|
1972
1972
|
]
|
|
1973
|
-
},
|
|
1973
|
+
}, Q3 = H(function(t, n) {
|
|
1974
1974
|
return x(R, Object.assign({}, t, {
|
|
1975
1975
|
id: "more-function-icon",
|
|
1976
1976
|
ref: n,
|
|
1977
1977
|
icon: a0
|
|
1978
1978
|
}));
|
|
1979
1979
|
});
|
|
1980
|
-
|
|
1980
|
+
Q3.displayName = "MoreFunctionIcon";
|
|
1981
1981
|
const c0 = {
|
|
1982
1982
|
tag: "svg",
|
|
1983
1983
|
attrs: {
|
|
@@ -1996,14 +1996,14 @@ const c0 = {
|
|
|
1996
1996
|
clipRule: "evenodd"
|
|
1997
1997
|
}
|
|
1998
1998
|
}]
|
|
1999
|
-
},
|
|
1999
|
+
}, E3 = H(function(t, n) {
|
|
2000
2000
|
return x(R, Object.assign({}, t, {
|
|
2001
2001
|
id: "more-icon",
|
|
2002
2002
|
ref: n,
|
|
2003
2003
|
icon: c0
|
|
2004
2004
|
}));
|
|
2005
2005
|
});
|
|
2006
|
-
|
|
2006
|
+
E3.displayName = "MoreIcon";
|
|
2007
2007
|
const u0 = {
|
|
2008
2008
|
tag: "svg",
|
|
2009
2009
|
attrs: {
|
|
@@ -2373,14 +2373,14 @@ const m0 = {
|
|
|
2373
2373
|
clipRule: "evenodd"
|
|
2374
2374
|
}
|
|
2375
2375
|
}]
|
|
2376
|
-
},
|
|
2376
|
+
}, K3 = H(function(t, n) {
|
|
2377
2377
|
return x(R, Object.assign({}, t, {
|
|
2378
2378
|
id: "reduce-icon",
|
|
2379
2379
|
ref: n,
|
|
2380
2380
|
icon: m0
|
|
2381
2381
|
}));
|
|
2382
2382
|
});
|
|
2383
|
-
|
|
2383
|
+
K3.displayName = "ReduceIcon";
|
|
2384
2384
|
const b0 = {
|
|
2385
2385
|
tag: "svg",
|
|
2386
2386
|
attrs: {
|
|
@@ -4783,7 +4783,7 @@ const we = {
|
|
|
4783
4783
|
FreezeColumnIcon: u6,
|
|
4784
4784
|
FreezeRowIcon: d6,
|
|
4785
4785
|
FreezeToSelectedIcon: h6,
|
|
4786
|
-
FunctionIcon:
|
|
4786
|
+
FunctionIcon: J3,
|
|
4787
4787
|
GridIcon: f6,
|
|
4788
4788
|
HeaderFooterIcon: C6,
|
|
4789
4789
|
HideDoubleIcon: mn,
|
|
@@ -4823,7 +4823,7 @@ const we = {
|
|
|
4823
4823
|
RedoIcon: T6,
|
|
4824
4824
|
ReduceDigitsIcon: Z6,
|
|
4825
4825
|
ReduceDoubleIcon: Nn,
|
|
4826
|
-
ReduceIcon:
|
|
4826
|
+
ReduceIcon: K3,
|
|
4827
4827
|
RightBorderDoubleIcon: Dn,
|
|
4828
4828
|
RightDoubleDiagonalDoubleIcon: Tn,
|
|
4829
4829
|
RightInsertColumnDoubleIcon: Zn,
|
|
@@ -4898,8 +4898,8 @@ class M1 extends d1 {
|
|
|
4898
4898
|
this._components.delete(n);
|
|
4899
4899
|
}
|
|
4900
4900
|
}
|
|
4901
|
-
var
|
|
4902
|
-
class
|
|
4901
|
+
var F3, k3;
|
|
4902
|
+
class De {
|
|
4903
4903
|
constructor() {
|
|
4904
4904
|
B(this, "_list", /* @__PURE__ */ new Map());
|
|
4905
4905
|
}
|
|
@@ -4919,7 +4919,7 @@ class Te {
|
|
|
4919
4919
|
}), t;
|
|
4920
4920
|
}
|
|
4921
4921
|
}
|
|
4922
|
-
|
|
4922
|
+
F3 = new WeakMap(), k3 = new WeakMap(), v3(De, F3, 2147483647), v3(De, k3, -2147483647);
|
|
4923
4923
|
function o7(e, t, n, r) {
|
|
4924
4924
|
const i = e.get(N1);
|
|
4925
4925
|
return new de((o) => {
|
|
@@ -4942,12 +4942,12 @@ function s7(e) {
|
|
|
4942
4942
|
if (s == null)
|
|
4943
4943
|
return n.next(!0);
|
|
4944
4944
|
const a = t.getUniverDocInstance(s), d = a == null ? void 0 : a.getSnapshot().documentStyle.documentFlavor;
|
|
4945
|
-
n.next(d !==
|
|
4945
|
+
n.next(d !== Ot.TRADITIONAL);
|
|
4946
4946
|
}), i = t.getCurrentUniverDocInstance();
|
|
4947
4947
|
if (i == null)
|
|
4948
4948
|
return n.next(!0);
|
|
4949
4949
|
const o = i == null ? void 0 : i.getSnapshot().documentStyle.documentFlavor;
|
|
4950
|
-
return n.next(o !==
|
|
4950
|
+
return n.next(o !== Ot.TRADITIONAL), () => r.unsubscribe();
|
|
4951
4951
|
});
|
|
4952
4952
|
}
|
|
4953
4953
|
function w5(e, t) {
|
|
@@ -5012,13 +5012,13 @@ function L1(e) {
|
|
|
5012
5012
|
const O = G(() => o != null ? o : C, [C, o]);
|
|
5013
5013
|
W(() => {
|
|
5014
5014
|
let w = null;
|
|
5015
|
-
return
|
|
5015
|
+
return Ee(r) ? w = r.subscribe((I) => {
|
|
5016
5016
|
p(I);
|
|
5017
5017
|
}) : p(r != null ? r : ""), () => {
|
|
5018
5018
|
w == null || w.unsubscribe();
|
|
5019
5019
|
};
|
|
5020
5020
|
}, [r]);
|
|
5021
|
-
const _ = G(() => O && typeof O == "string" ? new
|
|
5021
|
+
const _ = G(() => O && typeof O == "string" ? new S3(O).isValid : !1, [O]);
|
|
5022
5022
|
if (r) {
|
|
5023
5023
|
const w = d.get(c != null ? c : "");
|
|
5024
5024
|
w && L.push(
|
|
@@ -5057,7 +5057,7 @@ function L1(e) {
|
|
|
5057
5057
|
}
|
|
5058
5058
|
return n && L.push(
|
|
5059
5059
|
/* @__PURE__ */ f("span", { className: t, children: typeof n == "string" ? a.t(n) : n }, M++)
|
|
5060
|
-
), /* @__PURE__ */ f(
|
|
5060
|
+
), /* @__PURE__ */ f(t3, { children: L });
|
|
5061
5061
|
}
|
|
5062
5062
|
const H5 = (e) => {
|
|
5063
5063
|
var o, s;
|
|
@@ -5078,7 +5078,7 @@ const H5 = (e) => {
|
|
|
5078
5078
|
}, S5 = "UI_COMPONENT_HEADING_ITEM";
|
|
5079
5079
|
function ee(e) {
|
|
5080
5080
|
const t = J(e);
|
|
5081
|
-
return t.current = e,
|
|
5081
|
+
return t.current = e, Ke(
|
|
5082
5082
|
((...n) => {
|
|
5083
5083
|
var r;
|
|
5084
5084
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
@@ -5172,14 +5172,14 @@ function l7(e) {
|
|
|
5172
5172
|
}),
|
|
5173
5173
|
children: [
|
|
5174
5174
|
/* @__PURE__ */ f(
|
|
5175
|
-
|
|
5175
|
+
w3,
|
|
5176
5176
|
{
|
|
5177
5177
|
className: "univer-size-6 univer-p-0",
|
|
5178
5178
|
size: "small",
|
|
5179
5179
|
variant: "text",
|
|
5180
5180
|
disabled: t <= n || i,
|
|
5181
5181
|
onClick: () => p(-10),
|
|
5182
|
-
children: /* @__PURE__ */ f(
|
|
5182
|
+
children: /* @__PURE__ */ f(K3, {})
|
|
5183
5183
|
}
|
|
5184
5184
|
),
|
|
5185
5185
|
/* @__PURE__ */ f(
|
|
@@ -5218,7 +5218,7 @@ function l7(e) {
|
|
|
5218
5218
|
}
|
|
5219
5219
|
),
|
|
5220
5220
|
/* @__PURE__ */ f(
|
|
5221
|
-
|
|
5221
|
+
w3,
|
|
5222
5222
|
{
|
|
5223
5223
|
className: "univer-size-6 univer-p-0",
|
|
5224
5224
|
size: "small",
|
|
@@ -5229,14 +5229,14 @@ function l7(e) {
|
|
|
5229
5229
|
}
|
|
5230
5230
|
),
|
|
5231
5231
|
/* @__PURE__ */ f(
|
|
5232
|
-
|
|
5232
|
+
V3,
|
|
5233
5233
|
{
|
|
5234
5234
|
align: "end",
|
|
5235
5235
|
items: _,
|
|
5236
5236
|
open: C,
|
|
5237
5237
|
onOpenChange: v,
|
|
5238
5238
|
children: /* @__PURE__ */ q(
|
|
5239
|
-
|
|
5239
|
+
w3,
|
|
5240
5240
|
{
|
|
5241
5241
|
size: "small",
|
|
5242
5242
|
variant: "text",
|
|
@@ -5252,13 +5252,13 @@ function l7(e) {
|
|
|
5252
5252
|
}
|
|
5253
5253
|
);
|
|
5254
5254
|
}
|
|
5255
|
-
const O5 = "UI_COLOR_PICKER_COMPONENT", ie = "ui.config",
|
|
5255
|
+
const O5 = "UI_COLOR_PICKER_COMPONENT", ie = "ui.config", Te = {};
|
|
5256
5256
|
var $5 = Object.getOwnPropertyDescriptor, E5 = (e, t, n, r) => {
|
|
5257
5257
|
for (var i = r > 1 ? void 0 : r ? $5(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
5258
5258
|
(s = e[o]) && (i = s(i) || i);
|
|
5259
5259
|
return i;
|
|
5260
5260
|
}, N5 = (e, t) => (n, r) => t(n, r, e);
|
|
5261
|
-
const
|
|
5261
|
+
const et = h1("univer.font-service"), _e = [{
|
|
5262
5262
|
value: "Arial",
|
|
5263
5263
|
label: "fontFamily.arial",
|
|
5264
5264
|
category: "sans-serif"
|
|
@@ -5311,7 +5311,7 @@ const tt = h1("univer.font-service"), _e = [{
|
|
|
5311
5311
|
label: "fontFamily.stliti",
|
|
5312
5312
|
category: "serif"
|
|
5313
5313
|
}];
|
|
5314
|
-
let
|
|
5314
|
+
let N3 = class {
|
|
5315
5315
|
constructor(e) {
|
|
5316
5316
|
B(this, "fonts$", new S1([]));
|
|
5317
5317
|
this._configService = e;
|
|
@@ -5366,11 +5366,11 @@ let D3 = class {
|
|
|
5366
5366
|
this.fonts$.next([..._e]);
|
|
5367
5367
|
}
|
|
5368
5368
|
};
|
|
5369
|
-
|
|
5369
|
+
N3 = E5([
|
|
5370
5370
|
N5(0, Y1)
|
|
5371
|
-
],
|
|
5371
|
+
], N3);
|
|
5372
5372
|
const D5 = ({ id: e, value: t, disabled$: n }) => {
|
|
5373
|
-
const r = r1(n), i = P(F1), o = P(m1), s = P(
|
|
5373
|
+
const r = r1(n), i = P(F1), o = P(m1), s = P(et), [a, d] = z(""), [C, v] = z([]);
|
|
5374
5374
|
W(() => {
|
|
5375
5375
|
const I = s.fonts$.subscribe((S) => {
|
|
5376
5376
|
v(S);
|
|
@@ -5434,7 +5434,7 @@ const D5 = ({ id: e, value: t, disabled$: n }) => {
|
|
|
5434
5434
|
}
|
|
5435
5435
|
);
|
|
5436
5436
|
}, T5 = ({ id: e, value: t }) => {
|
|
5437
|
-
const n = P(F1), r = P(
|
|
5437
|
+
const n = P(F1), r = P(et), [i, o] = z([]);
|
|
5438
5438
|
W(() => {
|
|
5439
5439
|
const d = r.fonts$.subscribe((C) => {
|
|
5440
5440
|
o(C);
|
|
@@ -5463,7 +5463,7 @@ const D5 = ({ id: e, value: t, disabled$: n }) => {
|
|
|
5463
5463
|
onClick: () => a(d.value),
|
|
5464
5464
|
children: [
|
|
5465
5465
|
s.t(d.label),
|
|
5466
|
-
!r.isFontSupported(d.value) && /* @__PURE__ */ f(
|
|
5466
|
+
!r.isFontSupported(d.value) && /* @__PURE__ */ f(Y3, { title: s.t("fontFamily.not-supported"), children: /* @__PURE__ */ f(
|
|
5467
5467
|
b6,
|
|
5468
5468
|
{
|
|
5469
5469
|
className: "univer-text-gray-300 dark:!univer-text-gray-400"
|
|
@@ -5610,13 +5610,13 @@ function d7(e, t) {
|
|
|
5610
5610
|
}
|
|
5611
5611
|
function h7(e, t = 300) {
|
|
5612
5612
|
const n = J(null);
|
|
5613
|
-
return
|
|
5613
|
+
return Ke((...r) => {
|
|
5614
5614
|
n.current && clearTimeout(n.current), n.current = setTimeout(() => {
|
|
5615
5615
|
e(...r);
|
|
5616
5616
|
}, t);
|
|
5617
5617
|
}, [e, t]);
|
|
5618
5618
|
}
|
|
5619
|
-
const
|
|
5619
|
+
const At = (e) => typeof e == "number";
|
|
5620
5620
|
function F5(e) {
|
|
5621
5621
|
const t = J(e);
|
|
5622
5622
|
return t.current = e, t;
|
|
@@ -5633,7 +5633,7 @@ const f7 = (e, t) => {
|
|
|
5633
5633
|
}
|
|
5634
5634
|
return N - E;
|
|
5635
5635
|
}, M = (S) => {
|
|
5636
|
-
if (
|
|
5636
|
+
if (At(o.current))
|
|
5637
5637
|
return Math.floor(S / o.current);
|
|
5638
5638
|
let E = 0, y = 0;
|
|
5639
5639
|
for (let N = 0; N < e.length; N++) {
|
|
@@ -5644,7 +5644,7 @@ const f7 = (e, t) => {
|
|
|
5644
5644
|
}
|
|
5645
5645
|
}
|
|
5646
5646
|
return y + 1;
|
|
5647
|
-
}, O = (S) => typeof o.current == "number" ? S * o.current : e.slice(0, S).reduce((y, N, D) => y + o.current(D, e[D]), 0), _ = G(() =>
|
|
5647
|
+
}, O = (S) => typeof o.current == "number" ? S * o.current : e.slice(0, S).reduce((y, N, D) => y + o.current(D, e[D]), 0), _ = G(() => At(o.current) ? e.length * o.current : e.reduce(
|
|
5648
5648
|
(S, E, y) => S + o.current(y, e[y]),
|
|
5649
5649
|
0
|
|
5650
5650
|
), [e]), w = () => {
|
|
@@ -5703,7 +5703,7 @@ var k5 = Object.getOwnPropertyDescriptor, j5 = (e, t, n, r) => {
|
|
|
5703
5703
|
for (var i = r > 1 ? void 0 : r ? k5(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
5704
5704
|
(s = e[o]) && (i = s(i) || i);
|
|
5705
5705
|
return i;
|
|
5706
|
-
},
|
|
5706
|
+
}, Bt = (e, t) => (n, r) => t(n, r, e);
|
|
5707
5707
|
const U5 = "FOCUSING_UNIVER", z5 = [
|
|
5708
5708
|
"app-layout",
|
|
5709
5709
|
// 'univer-toolbar-btn',
|
|
@@ -5713,7 +5713,7 @@ const U5 = "FOCUSING_UNIVER", z5 = [
|
|
|
5713
5713
|
"render-canvas",
|
|
5714
5714
|
"workbench-layout"
|
|
5715
5715
|
], k1 = h1("ui.layout-service");
|
|
5716
|
-
let
|
|
5716
|
+
let Ze = class extends d1 {
|
|
5717
5717
|
constructor(t, n) {
|
|
5718
5718
|
super();
|
|
5719
5719
|
B(this, "_rootContainerElement", null);
|
|
@@ -5735,7 +5735,7 @@ let Ae = class extends d1 {
|
|
|
5735
5735
|
if (!t)
|
|
5736
5736
|
return;
|
|
5737
5737
|
let n;
|
|
5738
|
-
t instanceof p2 ? n = this._focusHandlers.get(
|
|
5738
|
+
t instanceof p2 ? n = this._focusHandlers.get(g3.UNIVER_SHEET) : t instanceof d9 ? n = this._focusHandlers.get(g3.UNIVER_DOC) : t instanceof m2 && (n = this._focusHandlers.get(g3.UNIVER_SLIDE)), n && n(t.getUnitId());
|
|
5739
5739
|
}
|
|
5740
5740
|
registerFocusHandler(t, n) {
|
|
5741
5741
|
if (this._focusHandlers.has(t))
|
|
@@ -5744,7 +5744,7 @@ let Ae = class extends d1 {
|
|
|
5744
5744
|
}
|
|
5745
5745
|
registerContentElement(t) {
|
|
5746
5746
|
if (this._contentElements.indexOf(t) === -1)
|
|
5747
|
-
return this._contentElements.push(t), c1(() =>
|
|
5747
|
+
return this._contentElements.push(t), c1(() => $t(this._contentElements, t));
|
|
5748
5748
|
throw new Error("[DesktopLayoutService]: content container already registered!");
|
|
5749
5749
|
}
|
|
5750
5750
|
getContentElement() {
|
|
@@ -5761,7 +5761,7 @@ let Ae = class extends d1 {
|
|
|
5761
5761
|
}
|
|
5762
5762
|
registerContainerElement(t) {
|
|
5763
5763
|
if (this._allContainers.indexOf(t) === -1)
|
|
5764
|
-
return this._allContainers.push(t), c1(() =>
|
|
5764
|
+
return this._allContainers.push(t), c1(() => $t(this._allContainers, t));
|
|
5765
5765
|
throw new Error("[LayoutService]: container already registered!");
|
|
5766
5766
|
}
|
|
5767
5767
|
checkElementInCurrentContainers(t) {
|
|
@@ -5779,34 +5779,34 @@ let Ae = class extends d1 {
|
|
|
5779
5779
|
queueMicrotask(() => this.focus());
|
|
5780
5780
|
return;
|
|
5781
5781
|
}
|
|
5782
|
-
n && this.checkElementInCurrentContainers(n) ? this._isFocused = !0 : this._isFocused = !1, this._contextService.setContextValue(U5, this._isFocused), this._contextService.setContextValue(
|
|
5782
|
+
n && this.checkElementInCurrentContainers(n) ? this._isFocused = !0 : this._isFocused = !1, this._contextService.setContextValue(U5, this._isFocused), this._contextService.setContextValue(Oe, Pt());
|
|
5783
5783
|
})
|
|
5784
5784
|
);
|
|
5785
5785
|
}
|
|
5786
5786
|
_initEditorStatus() {
|
|
5787
|
-
this._contextService.setContextValue(
|
|
5787
|
+
this._contextService.setContextValue(Oe, Pt());
|
|
5788
5788
|
}
|
|
5789
5789
|
};
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
],
|
|
5794
|
-
function
|
|
5790
|
+
Ze = j5([
|
|
5791
|
+
Bt(0, fe),
|
|
5792
|
+
Bt(1, N1)
|
|
5793
|
+
], Ze);
|
|
5794
|
+
function Pt() {
|
|
5795
5795
|
var e;
|
|
5796
5796
|
return ((e = document.activeElement) == null ? void 0 : e.dataset.uComp) === "editor";
|
|
5797
5797
|
}
|
|
5798
|
-
var _1 = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.SELECTOR = 1] = "SELECTOR", e[e.BUTTON_SELECTOR = 2] = "BUTTON_SELECTOR", e[e.SUBITEMS = 3] = "SUBITEMS", e))(_1 || {}),
|
|
5798
|
+
var _1 = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.SELECTOR = 1] = "SELECTOR", e[e.BUTTON_SELECTOR = 2] = "BUTTON_SELECTOR", e[e.SUBITEMS = 3] = "SUBITEMS", e))(_1 || {}), Ae = /* @__PURE__ */ ((e) => (e.RIBBON = "ribbon", e.CONTEXT_MENU = "contextMenu", e))(Ae || {}), p1 = /* @__PURE__ */ ((e) => (e.START = "ribbon.start", e.INSERT = "ribbon.insert", e.FORMULAS = "ribbon.formulas", e.DATA = "ribbon.data", e.VIEW = "ribbon.view", e.OTHERS = "ribbon.others", e))(p1 || {}), z1 = /* @__PURE__ */ ((e) => (e.HISTORY = "ribbon.start.history", e.FORMAT = "ribbon.start.format", e.LAYOUT = "ribbon.start.layout", e.OTHERS = "ribbon.start.others", e))(z1 || {}), Re = /* @__PURE__ */ ((e) => (e.EDIT = "ribbon.insert.edit", e.MEDIA = "ribbon.insert.media", e.OTHERS = "ribbon.insert.others", e))(Re || {}), D3 = /* @__PURE__ */ ((e) => (e.BASIC = "ribbon.formulas.basic", e.OTHERS = "ribbon.formulas.others", e))(D3 || {}), ae = /* @__PURE__ */ ((e) => (e.FORMULAS = "ribbon.data.formulas", e.RULES = "ribbon.data.rules", e.ORGANIZATION = "ribbon.data.organization", e.OTHERS = "ribbon.data.others", e))(ae || {}), Ve = /* @__PURE__ */ ((e) => (e.DISPLAY = "ribbon.view.display", e.VISIBILITY = "ribbon.view.Visibility", e.OTHERS = "ribbon.view.others", e))(Ve || {}), Fn = /* @__PURE__ */ ((e) => (e.OTHERS = "ribbon.others.others", e))(Fn || {}), U1 = /* @__PURE__ */ ((e) => (e.MAIN_AREA = "contextMenu.mainArea", e.COL_HEADER = "contextMenu.colHeader", e.ROW_HEADER = "contextMenu.rowHeader", e.FOOTER_TABS = "contextMenu.footerTabs", e.FOOTER_MENU = "contextMenu.footerMenu", e.PARAGRAPH = "contextMenu.paragraph", e))(U1 || {}), l1 = /* @__PURE__ */ ((e) => (e.QUICK = "contextMenu.quick", e.FORMAT = "contextMenu.format", e.LAYOUT = "contextMenu.layout", e.DATA = "contextMenu.data", e.OTHERS = "contextMenu.others", e))(l1 || {}), W5 = Object.getOwnPropertyDescriptor, Y5 = (e, t, n, r) => {
|
|
5799
5799
|
for (var i = r > 1 ? void 0 : r ? W5(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
5800
5800
|
(s = e[o]) && (i = s(i) || i);
|
|
5801
5801
|
return i;
|
|
5802
|
-
},
|
|
5802
|
+
}, Ft = (e, t) => (n, r) => t(n, r, e);
|
|
5803
5803
|
const D1 = h1("univer.menu-manager-service");
|
|
5804
|
-
let
|
|
5804
|
+
let Be = class extends d1 {
|
|
5805
5805
|
constructor(t, n) {
|
|
5806
5806
|
super();
|
|
5807
5807
|
B(this, "menuChanged$", new $1());
|
|
5808
5808
|
B(this, "_menu", {
|
|
5809
|
-
[
|
|
5809
|
+
[Ae.RIBBON]: {
|
|
5810
5810
|
[p1.START]: {
|
|
5811
5811
|
order: 0,
|
|
5812
5812
|
[z1.HISTORY]: {
|
|
@@ -5824,22 +5824,22 @@ let Pe = class extends d1 {
|
|
|
5824
5824
|
},
|
|
5825
5825
|
[p1.INSERT]: {
|
|
5826
5826
|
order: 1,
|
|
5827
|
-
[
|
|
5827
|
+
[Re.EDIT]: {
|
|
5828
5828
|
order: 0
|
|
5829
5829
|
},
|
|
5830
|
-
[
|
|
5830
|
+
[Re.MEDIA]: {
|
|
5831
5831
|
order: 1
|
|
5832
5832
|
},
|
|
5833
|
-
[
|
|
5833
|
+
[Re.OTHERS]: {
|
|
5834
5834
|
order: 2
|
|
5835
5835
|
}
|
|
5836
5836
|
},
|
|
5837
5837
|
[p1.FORMULAS]: {
|
|
5838
5838
|
order: 2,
|
|
5839
|
-
[
|
|
5839
|
+
[D3.BASIC]: {
|
|
5840
5840
|
order: 0
|
|
5841
5841
|
},
|
|
5842
|
-
[
|
|
5842
|
+
[D3.OTHERS]: {
|
|
5843
5843
|
order: 1
|
|
5844
5844
|
}
|
|
5845
5845
|
},
|
|
@@ -5860,13 +5860,13 @@ let Pe = class extends d1 {
|
|
|
5860
5860
|
},
|
|
5861
5861
|
[p1.VIEW]: {
|
|
5862
5862
|
order: 4,
|
|
5863
|
-
[
|
|
5863
|
+
[Ve.DISPLAY]: {
|
|
5864
5864
|
order: 0
|
|
5865
5865
|
},
|
|
5866
|
-
[
|
|
5866
|
+
[Ve.VISIBILITY]: {
|
|
5867
5867
|
order: 0
|
|
5868
5868
|
},
|
|
5869
|
-
[
|
|
5869
|
+
[Ve.OTHERS]: {
|
|
5870
5870
|
order: 0
|
|
5871
5871
|
}
|
|
5872
5872
|
},
|
|
@@ -5877,7 +5877,7 @@ let Pe = class extends d1 {
|
|
|
5877
5877
|
}
|
|
5878
5878
|
}
|
|
5879
5879
|
},
|
|
5880
|
-
[
|
|
5880
|
+
[Ae.CONTEXT_MENU]: {
|
|
5881
5881
|
[U1.MAIN_AREA]: {
|
|
5882
5882
|
order: 0,
|
|
5883
5883
|
[l1.QUICK]: {
|
|
@@ -5982,11 +5982,11 @@ let Pe = class extends d1 {
|
|
|
5982
5982
|
for (const [i, o] of Object.entries(r))
|
|
5983
5983
|
if (i in t) {
|
|
5984
5984
|
const s = i;
|
|
5985
|
-
r[s] =
|
|
5985
|
+
r[s] = $e({}, r[s], t[s]), this.menuChanged$.next();
|
|
5986
5986
|
} else typeof o == "object" && this.mergeMenu(t, o);
|
|
5987
5987
|
}
|
|
5988
5988
|
appendRootMenu(t) {
|
|
5989
|
-
this._menu =
|
|
5989
|
+
this._menu = $e({}, this._menu, t), this.menuChanged$.next();
|
|
5990
5990
|
}
|
|
5991
5991
|
_buildMenuSchema(t) {
|
|
5992
5992
|
const n = [];
|
|
@@ -6048,10 +6048,10 @@ let Pe = class extends d1 {
|
|
|
6048
6048
|
return r(n);
|
|
6049
6049
|
}
|
|
6050
6050
|
};
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
],
|
|
6051
|
+
Be = Y5([
|
|
6052
|
+
Ft(0, g1(I1)),
|
|
6053
|
+
Ft(1, Y1)
|
|
6054
|
+
], Be);
|
|
6055
6055
|
function G5(e) {
|
|
6056
6056
|
const { item: t, onOptionSelect: n } = e, [r, i] = z([]), o = P(M1), s = P(m1);
|
|
6057
6057
|
return W(() => {
|
|
@@ -6093,7 +6093,7 @@ function G5(e) {
|
|
|
6093
6093
|
}
|
|
6094
6094
|
) : null;
|
|
6095
6095
|
}
|
|
6096
|
-
const ce = "univer-inline-flex univer-gap-2 univer-items-center",
|
|
6096
|
+
const ce = "univer-inline-flex univer-gap-2 univer-items-center", kt = "univer-size-3.5 univer-text-gray-900 dark:!univer-text-white";
|
|
6097
6097
|
function kn(e) {
|
|
6098
6098
|
const { menuType: t, onOptionSelect: n } = e, r = P(m1), i = P(D1), o = G(() => t ? i.getMenuByPositionKey(t) : [], [t, i]), [s, a] = z({}), d = G(() => o.filter((C) => {
|
|
6099
6099
|
var c;
|
|
@@ -6122,7 +6122,7 @@ function kn(e) {
|
|
|
6122
6122
|
}, [o]), t ? d && d.map((C) => {
|
|
6123
6123
|
var v;
|
|
6124
6124
|
return C.item ? /* @__PURE__ */ f(
|
|
6125
|
-
|
|
6125
|
+
jt,
|
|
6126
6126
|
{
|
|
6127
6127
|
menuItem: C.item,
|
|
6128
6128
|
onClick: (c) => {
|
|
@@ -6130,8 +6130,8 @@ function kn(e) {
|
|
|
6130
6130
|
}
|
|
6131
6131
|
},
|
|
6132
6132
|
C.key
|
|
6133
|
-
) : (v = C.children) != null && v.length ? C.key === l1.QUICK ? /* @__PURE__ */ f(G5, { item: C, onOptionSelect: n }, C.key) : /* @__PURE__ */ f(
|
|
6134
|
-
|
|
6133
|
+
) : (v = C.children) != null && v.length ? C.key === l1.QUICK ? /* @__PURE__ */ f(G5, { item: C, onOptionSelect: n }, C.key) : /* @__PURE__ */ f($3, { eventKey: C.key, title: C.title ? r.t(C.title) : void 0, children: C.children.map((c) => c.item && /* @__PURE__ */ f(
|
|
6134
|
+
jt,
|
|
6135
6135
|
{
|
|
6136
6136
|
menuItem: c.item,
|
|
6137
6137
|
onClick: (p) => {
|
|
@@ -6156,14 +6156,14 @@ function jn(e) {
|
|
|
6156
6156
|
}, c = K({
|
|
6157
6157
|
"univer-bg-none": typeof s.label != "string" && !((L = s.label) != null && L.hoverable)
|
|
6158
6158
|
});
|
|
6159
|
-
return /* @__PURE__ */ f(
|
|
6159
|
+
return /* @__PURE__ */ f(O3, { disabled: s.disabled, eventKey: d, className: c, onClick: v, children: /* @__PURE__ */ q(
|
|
6160
6160
|
"span",
|
|
6161
6161
|
{
|
|
6162
6162
|
className: K(ce, {
|
|
6163
6163
|
"univer-relative univer-pl-5": !(typeof s.label != "string" && !((M = s.label) != null && M.hoverable))
|
|
6164
6164
|
}),
|
|
6165
6165
|
children: [
|
|
6166
|
-
typeof n < "u" && String(n) === String(s.value) && /* @__PURE__ */ f("span", { className: "univer-absolute univer-left-0 univer-inline-flex univer-items-center", children: /* @__PURE__ */ f(
|
|
6166
|
+
typeof n < "u" && String(n) === String(s.value) && /* @__PURE__ */ f("span", { className: "univer-absolute univer-left-0 univer-inline-flex univer-items-center", children: /* @__PURE__ */ f(X3, { className: "univer-text-primary-600" }) }),
|
|
6167
6167
|
/* @__PURE__ */ f(
|
|
6168
6168
|
L1,
|
|
6169
6169
|
{
|
|
@@ -6198,8 +6198,8 @@ const X5 = (e) => {
|
|
|
6198
6198
|
}
|
|
6199
6199
|
);
|
|
6200
6200
|
};
|
|
6201
|
-
function
|
|
6202
|
-
const n = P(D1), r = r1(e.disabled$, !1), i = r1(e.activated$, !1), o = r1(e.hidden$, !1), s = r1(e.value$), a = e, d = r1(
|
|
6201
|
+
function jt({ menuItem: e, onClick: t }) {
|
|
6202
|
+
const n = P(D1), r = r1(e.disabled$, !1), i = r1(e.activated$, !1), o = r1(e.hidden$, !1), s = r1(e.value$), a = e, d = r1(Ee(a.selections) ? a.selections : void 0), [C, v] = z(s);
|
|
6203
6203
|
if (W(() => {
|
|
6204
6204
|
v(s);
|
|
6205
6205
|
}, [s]), o)
|
|
@@ -6210,7 +6210,7 @@ function Ut({ menuItem: e, onClick: t }) {
|
|
|
6210
6210
|
}, p = () => {
|
|
6211
6211
|
const _ = e, { title: w, label: I } = _;
|
|
6212
6212
|
return /* @__PURE__ */ f(
|
|
6213
|
-
|
|
6213
|
+
O3,
|
|
6214
6214
|
{
|
|
6215
6215
|
eventKey: _.id,
|
|
6216
6216
|
disabled: r,
|
|
@@ -6237,7 +6237,7 @@ function Ut({ menuItem: e, onClick: t }) {
|
|
|
6237
6237
|
var w;
|
|
6238
6238
|
const _ = (w = d != null ? d : a.selections) != null ? w : [];
|
|
6239
6239
|
return _.length > 0 ? /* @__PURE__ */ f(
|
|
6240
|
-
|
|
6240
|
+
Dt,
|
|
6241
6241
|
{
|
|
6242
6242
|
eventKey: a.id,
|
|
6243
6243
|
popupOffset: [18, 0],
|
|
@@ -6254,8 +6254,8 @@ function Ut({ menuItem: e, onClick: t }) {
|
|
|
6254
6254
|
),
|
|
6255
6255
|
a.shortcut && ` (${a.shortcut})`
|
|
6256
6256
|
] }),
|
|
6257
|
-
expandIcon: /* @__PURE__ */ f(
|
|
6258
|
-
children: /* @__PURE__ */ f(
|
|
6257
|
+
expandIcon: /* @__PURE__ */ f(E3, { className: kt }),
|
|
6258
|
+
children: /* @__PURE__ */ f($3, { children: _.length > 0 && /* @__PURE__ */ f(
|
|
6259
6259
|
jn,
|
|
6260
6260
|
{
|
|
6261
6261
|
parentKey: a.id,
|
|
@@ -6268,7 +6268,7 @@ function Ut({ menuItem: e, onClick: t }) {
|
|
|
6268
6268
|
) })
|
|
6269
6269
|
},
|
|
6270
6270
|
a.id
|
|
6271
|
-
) : /* @__PURE__ */ f(
|
|
6271
|
+
) : /* @__PURE__ */ f(O3, { eventKey: a.id, children: /* @__PURE__ */ q("span", { className: ce, children: [
|
|
6272
6272
|
/* @__PURE__ */ f(
|
|
6273
6273
|
L1,
|
|
6274
6274
|
{
|
|
@@ -6284,18 +6284,18 @@ function Ut({ menuItem: e, onClick: t }) {
|
|
|
6284
6284
|
}, M = e.id ? n.getMenuByPositionKey(e.id) : [], O = () => {
|
|
6285
6285
|
const _ = e;
|
|
6286
6286
|
return /* @__PURE__ */ f(
|
|
6287
|
-
|
|
6287
|
+
Dt,
|
|
6288
6288
|
{
|
|
6289
6289
|
eventKey: _.id,
|
|
6290
6290
|
popupOffset: [18, 0],
|
|
6291
6291
|
title: /* @__PURE__ */ f("span", { className: ce, children: /* @__PURE__ */ f(L1, { title: _.title, icon: _.icon, label: _.label, onChange: c }) }),
|
|
6292
|
-
expandIcon: /* @__PURE__ */ f(
|
|
6293
|
-
children: /* @__PURE__ */ f(
|
|
6292
|
+
expandIcon: /* @__PURE__ */ f(E3, { className: kt }),
|
|
6293
|
+
children: /* @__PURE__ */ f($3, { children: M.length && /* @__PURE__ */ f(kn, { menuType: _.id, parentKey: _.id, onOptionSelect: t }) })
|
|
6294
6294
|
},
|
|
6295
6295
|
_.id
|
|
6296
6296
|
);
|
|
6297
6297
|
};
|
|
6298
|
-
return /* @__PURE__ */ q(
|
|
6298
|
+
return /* @__PURE__ */ q(t3, { children: [
|
|
6299
6299
|
e.type === _1.SELECTOR && L(),
|
|
6300
6300
|
e.type === _1.SUBITEMS && O(),
|
|
6301
6301
|
e.type === _1.BUTTON && p()
|
|
@@ -6331,7 +6331,7 @@ function v7(e) {
|
|
|
6331
6331
|
"univer-hidden univer-w-0": !C
|
|
6332
6332
|
}),
|
|
6333
6333
|
children: [
|
|
6334
|
-
/* @__PURE__ */ f(
|
|
6334
|
+
/* @__PURE__ */ f(Y3, { showIfEllipsis: !0, title: a, children: /* @__PURE__ */ f("span", { className: "univer-w-24 univer-truncate univer-text-right univer-text-xs", children: a }) }),
|
|
6335
6335
|
/* @__PURE__ */ f("div", { className: "univer-h-1 univer-w-40 univer-overflow-hidden univer-rounded-lg univer-bg-gray-200", children: /* @__PURE__ */ f(
|
|
6336
6336
|
"div",
|
|
6337
6337
|
{
|
|
@@ -6349,7 +6349,7 @@ function v7(e) {
|
|
|
6349
6349
|
type: "button",
|
|
6350
6350
|
onClick: r,
|
|
6351
6351
|
children: /* @__PURE__ */ f(
|
|
6352
|
-
|
|
6352
|
+
q3,
|
|
6353
6353
|
{
|
|
6354
6354
|
className: "univer-size-3.5 dark:!univer-text-white"
|
|
6355
6355
|
}
|
|
@@ -6360,12 +6360,12 @@ function v7(e) {
|
|
|
6360
6360
|
}
|
|
6361
6361
|
);
|
|
6362
6362
|
}
|
|
6363
|
-
const g7 = "UNI_DISABLE_CHANGING_FOCUS",
|
|
6363
|
+
const g7 = "UNI_DISABLE_CHANGING_FOCUS", tt = h1("ui.message.service");
|
|
6364
6364
|
var q5 = Object.getOwnPropertyDescriptor, J5 = (e, t, n, r) => {
|
|
6365
6365
|
for (var i = r > 1 ? void 0 : r ? q5(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
6366
6366
|
(s = e[o]) && (i = s(i) || i);
|
|
6367
6367
|
return i;
|
|
6368
|
-
},
|
|
6368
|
+
}, Ut = (e, t) => (n, r) => t(n, r, e);
|
|
6369
6369
|
let te = class extends d1 {
|
|
6370
6370
|
constructor(e, t) {
|
|
6371
6371
|
super(), this._errorService = e, this._messageService = t, this.disposeWithMe(this._errorService.error$.subscribe((n) => {
|
|
@@ -6377,12 +6377,12 @@ let te = class extends d1 {
|
|
|
6377
6377
|
}
|
|
6378
6378
|
};
|
|
6379
6379
|
te = J5([
|
|
6380
|
-
|
|
6381
|
-
|
|
6380
|
+
Ut(0, g1(w2)),
|
|
6381
|
+
Ut(1, tt)
|
|
6382
6382
|
], te);
|
|
6383
6383
|
function Q5() {
|
|
6384
6384
|
return {
|
|
6385
|
-
id:
|
|
6385
|
+
id: n3.id,
|
|
6386
6386
|
title: "toggle-shortcut-panel",
|
|
6387
6387
|
tooltip: "toggle-shortcut-panel",
|
|
6388
6388
|
icon: "ShortcutIcon",
|
|
@@ -6392,13 +6392,13 @@ function Q5() {
|
|
|
6392
6392
|
const Un = (e, t) => {
|
|
6393
6393
|
const n = e.get(y2), r = e.get(fe);
|
|
6394
6394
|
return W1([
|
|
6395
|
-
n.undoRedoStatus$.pipe(
|
|
6395
|
+
n.undoRedoStatus$.pipe(Zt((i) => t ? i.undos <= 0 : i.redos <= 0)),
|
|
6396
6396
|
O2([Ce({}), r.contextChanged$])
|
|
6397
|
-
]).pipe(
|
|
6397
|
+
]).pipe(Zt(([i]) => i || r.getContextValue(h9) || r.getContextValue(f9)));
|
|
6398
6398
|
};
|
|
6399
6399
|
function K5(e) {
|
|
6400
6400
|
return {
|
|
6401
|
-
id:
|
|
6401
|
+
id: U3.id,
|
|
6402
6402
|
type: _1.BUTTON,
|
|
6403
6403
|
icon: "UndoIcon",
|
|
6404
6404
|
title: "Undo",
|
|
@@ -6408,7 +6408,7 @@ function K5(e) {
|
|
|
6408
6408
|
}
|
|
6409
6409
|
function ei(e) {
|
|
6410
6410
|
return {
|
|
6411
|
-
id:
|
|
6411
|
+
id: j3.id,
|
|
6412
6412
|
type: _1.BUTTON,
|
|
6413
6413
|
icon: "RedoIcon",
|
|
6414
6414
|
title: "Redo",
|
|
@@ -6418,43 +6418,43 @@ function ei(e) {
|
|
|
6418
6418
|
}
|
|
6419
6419
|
const ti = {
|
|
6420
6420
|
[z1.HISTORY]: {
|
|
6421
|
-
[
|
|
6421
|
+
[U3.id]: {
|
|
6422
6422
|
order: 0,
|
|
6423
6423
|
menuItemFactory: K5
|
|
6424
6424
|
},
|
|
6425
|
-
[
|
|
6425
|
+
[j3.id]: {
|
|
6426
6426
|
order: 1,
|
|
6427
6427
|
menuItemFactory: ei
|
|
6428
6428
|
}
|
|
6429
6429
|
},
|
|
6430
6430
|
[z1.OTHERS]: {
|
|
6431
|
-
[
|
|
6431
|
+
[n3.id]: {
|
|
6432
6432
|
order: 1,
|
|
6433
6433
|
menuItemFactory: Q5
|
|
6434
6434
|
}
|
|
6435
6435
|
}
|
|
6436
|
-
},
|
|
6437
|
-
id:
|
|
6438
|
-
name:
|
|
6436
|
+
}, zt = "univer.command.copy", zn = {
|
|
6437
|
+
id: zt,
|
|
6438
|
+
name: zt,
|
|
6439
6439
|
multi: !0,
|
|
6440
6440
|
priority: 0,
|
|
6441
|
-
type:
|
|
6441
|
+
type: Qe.COMMAND,
|
|
6442
6442
|
preconditions: () => !1,
|
|
6443
6443
|
handler: () => !0
|
|
6444
|
-
},
|
|
6445
|
-
id:
|
|
6446
|
-
name:
|
|
6444
|
+
}, Wt = "univer.command.cut", Wn = {
|
|
6445
|
+
id: Wt,
|
|
6446
|
+
name: Wt,
|
|
6447
6447
|
multi: !0,
|
|
6448
6448
|
priority: 0,
|
|
6449
|
-
type:
|
|
6449
|
+
type: Qe.COMMAND,
|
|
6450
6450
|
preconditions: () => !1,
|
|
6451
6451
|
handler: async () => !0
|
|
6452
|
-
},
|
|
6453
|
-
id:
|
|
6454
|
-
name:
|
|
6452
|
+
}, Yt = "univer.command.paste", Yn = {
|
|
6453
|
+
id: Yt,
|
|
6454
|
+
name: Yt,
|
|
6455
6455
|
multi: !0,
|
|
6456
6456
|
priority: 0,
|
|
6457
|
-
type:
|
|
6457
|
+
type: Qe.COMMAND,
|
|
6458
6458
|
preconditions: () => !1,
|
|
6459
6459
|
handler: () => !0
|
|
6460
6460
|
}, p7 = "sheet.command.paste-by-short-key";
|
|
@@ -6528,7 +6528,7 @@ var b1 = /* @__PURE__ */ ((e) => (e[e.SHIFT = 1024] = "SHIFT", e[e.ALT = 2048] =
|
|
|
6528
6528
|
function ri(e, t, n) {
|
|
6529
6529
|
return window.addEventListener(e, t, n), c1(() => window.removeEventListener(e, t, n));
|
|
6530
6530
|
}
|
|
6531
|
-
const
|
|
6531
|
+
const nt = h1("ui.platform.service");
|
|
6532
6532
|
class Gn {
|
|
6533
6533
|
get isMac() {
|
|
6534
6534
|
return /Mac/.test(navigator.appVersion);
|
|
@@ -6546,7 +6546,7 @@ var ii = Object.getOwnPropertyDescriptor, oi = (e, t, n, r) => {
|
|
|
6546
6546
|
return i;
|
|
6547
6547
|
}, Me = (e, t) => (n, r) => t(n, r, e);
|
|
6548
6548
|
const ge = h1("ui.shortcut.service");
|
|
6549
|
-
let
|
|
6549
|
+
let Pe = class extends d1 {
|
|
6550
6550
|
constructor(t, n, r, i) {
|
|
6551
6551
|
super();
|
|
6552
6552
|
B(this, "_shortCutMapping", /* @__PURE__ */ new Map());
|
|
@@ -6631,22 +6631,22 @@ let Fe = class extends d1 {
|
|
|
6631
6631
|
return n && (s |= b1.SHIFT), i && (s |= b1.ALT), (this._platformService.isMac ? r : t.ctrlKey) && (s |= b1.CTRL_COMMAND), this._platformService.isMac && t.ctrlKey && (s |= b1.MAC_CTRL), s;
|
|
6632
6632
|
}
|
|
6633
6633
|
};
|
|
6634
|
-
|
|
6634
|
+
Pe = oi([
|
|
6635
6635
|
Me(0, F1),
|
|
6636
|
-
Me(1,
|
|
6636
|
+
Me(1, nt),
|
|
6637
6637
|
Me(2, fe),
|
|
6638
|
-
Me(3,
|
|
6639
|
-
],
|
|
6638
|
+
Me(3, C9(k1))
|
|
6639
|
+
], Pe);
|
|
6640
6640
|
var si = Object.getOwnPropertyDescriptor, li = (e, t, n, r) => {
|
|
6641
6641
|
for (var i = r > 1 ? void 0 : r ? si(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
6642
6642
|
(s = e[o]) && (i = s(i) || i);
|
|
6643
6643
|
return i;
|
|
6644
|
-
},
|
|
6644
|
+
}, Gt = (e, t) => (n, r) => t(n, r, e);
|
|
6645
6645
|
function Xn(e) {
|
|
6646
|
-
return e.getContextValue(
|
|
6646
|
+
return e.getContextValue(Oe);
|
|
6647
6647
|
}
|
|
6648
6648
|
function qn(e) {
|
|
6649
|
-
return e.getContextValue(
|
|
6649
|
+
return e.getContextValue(Oe) && !(e.getContextValue(h9) || e.getContextValue(f9));
|
|
6650
6650
|
}
|
|
6651
6651
|
const ai = {
|
|
6652
6652
|
id: zn.id,
|
|
@@ -6667,13 +6667,13 @@ const ai = {
|
|
|
6667
6667
|
binding: G1.V | b1.CTRL_COMMAND,
|
|
6668
6668
|
preconditions: () => !1
|
|
6669
6669
|
}, di = {
|
|
6670
|
-
id:
|
|
6670
|
+
id: U3.id,
|
|
6671
6671
|
description: "shortcut.undo",
|
|
6672
6672
|
group: "1_common-edit",
|
|
6673
6673
|
binding: G1.Z | b1.CTRL_COMMAND,
|
|
6674
6674
|
preconditions: qn
|
|
6675
6675
|
}, hi = {
|
|
6676
|
-
id:
|
|
6676
|
+
id: j3.id,
|
|
6677
6677
|
description: "shortcut.redo",
|
|
6678
6678
|
group: "1_common-edit",
|
|
6679
6679
|
binding: G1.Y | b1.CTRL_COMMAND,
|
|
@@ -6697,11 +6697,11 @@ let ne = class extends d1 {
|
|
|
6697
6697
|
}
|
|
6698
6698
|
};
|
|
6699
6699
|
ne = li([
|
|
6700
|
-
|
|
6701
|
-
|
|
6700
|
+
Gt(0, ge),
|
|
6701
|
+
Gt(1, F1)
|
|
6702
6702
|
], ne);
|
|
6703
6703
|
function fi() {
|
|
6704
|
-
const e = P(ge), t = P(m1), n = r1(t.currentLocale$), [r, i] = z([]), o =
|
|
6704
|
+
const e = P(ge), t = P(m1), n = r1(t.currentLocale$), [r, i] = z([]), o = Ke(() => {
|
|
6705
6705
|
var C;
|
|
6706
6706
|
const s = /* @__PURE__ */ new Map(), a = e.getAllShortcuts().filter((v) => !!v.group);
|
|
6707
6707
|
for (const v of a) {
|
|
@@ -6760,14 +6760,14 @@ var Ci = Object.getOwnPropertyDescriptor, vi = (e, t, n, r) => {
|
|
|
6760
6760
|
return i;
|
|
6761
6761
|
}, le = (e, t) => (n, r) => t(n, r, e);
|
|
6762
6762
|
const gi = {
|
|
6763
|
-
id:
|
|
6763
|
+
id: n3.id,
|
|
6764
6764
|
binding: b1.CTRL_COMMAND | G1.BACK_SLASH,
|
|
6765
6765
|
description: "shortcut.shortcut-panel",
|
|
6766
6766
|
group: "10_global-shortcut"
|
|
6767
6767
|
};
|
|
6768
6768
|
let re = class extends d1 {
|
|
6769
6769
|
constructor(e, t, n, r, i) {
|
|
6770
|
-
super(), this._menuManagerService = r, this.disposeWithMe(t.register(N9, fi)), this.disposeWithMe(i.registerCommand(
|
|
6770
|
+
super(), this._menuManagerService = r, this.disposeWithMe(t.register(N9, fi)), this.disposeWithMe(i.registerCommand(n3)), this.disposeWithMe(n.registerShortcut(gi));
|
|
6771
6771
|
}
|
|
6772
6772
|
};
|
|
6773
6773
|
re = vi([
|
|
@@ -6809,7 +6809,7 @@ class Jn extends d1 {
|
|
|
6809
6809
|
return /* @__PURE__ */ new Set([...this._componentsByPart.get(n) || /* @__PURE__ */ new Set()]);
|
|
6810
6810
|
}
|
|
6811
6811
|
}
|
|
6812
|
-
class
|
|
6812
|
+
class rt {
|
|
6813
6813
|
constructor() {
|
|
6814
6814
|
B(this, "_domLayerMap", /* @__PURE__ */ new Map());
|
|
6815
6815
|
B(this, "_domLayers$", new S1([]));
|
|
@@ -6838,10 +6838,10 @@ class it {
|
|
|
6838
6838
|
this._domLayerMap.clear(), this._notice();
|
|
6839
6839
|
}
|
|
6840
6840
|
}
|
|
6841
|
-
const pi =
|
|
6841
|
+
const pi = M9((e) => {
|
|
6842
6842
|
var w, I;
|
|
6843
6843
|
const { layer: t, id: n } = e, r = G(() => t.position$.pipe(
|
|
6844
|
-
|
|
6844
|
+
y9(
|
|
6845
6845
|
(S, E) => S.absolute.left === E.absolute.left && S.absolute.top === E.absolute.top && S.endX - S.startX === E.endX - E.startX && S.endY - S.startY === E.endY - E.startY
|
|
6846
6846
|
)
|
|
6847
6847
|
), [t.position$]), i = P(N1), o = r1(G(() => t.position$.pipe($2()), [t.position$])), s = J(null), a = J(null), d = J(`transform: rotate(${o == null ? void 0 : o.rotate}deg) translate(${o == null ? void 0 : o.startX}px, ${o == null ? void 0 : o.startY}px)`), C = J((w = o == null ? void 0 : o.startY) != null ? w : 0), v = J((I = o == null ? void 0 : o.startX) != null ? I : 0), c = J({}), p = typeof t.componentKey == "string" ? P(M1).get(t.componentKey) : t.componentKey, L = G(() => ({
|
|
@@ -6869,7 +6869,7 @@ const pi = I9((e) => {
|
|
|
6869
6869
|
S.unsubscribe(), E.unsubscribe();
|
|
6870
6870
|
};
|
|
6871
6871
|
}, [t.position$, r]);
|
|
6872
|
-
const M = i.getUnit(t.unitId), O = M instanceof
|
|
6872
|
+
const M = i.getUnit(t.unitId), O = M instanceof d9 ? M.getDisabled() : void 0, _ = G(() => p ? /* @__PURE__ */ f(
|
|
6873
6873
|
p,
|
|
6874
6874
|
{
|
|
6875
6875
|
...L,
|
|
@@ -6923,7 +6923,7 @@ const pi = I9((e) => {
|
|
|
6923
6923
|
) : null;
|
|
6924
6924
|
}), Qn = ({ unitId: e }) => {
|
|
6925
6925
|
var s;
|
|
6926
|
-
const t = P(N1), n = P(
|
|
6926
|
+
const t = P(N1), n = P(rt), r = r1(n.domLayers$), i = r1(t.focused$), o = e || i;
|
|
6927
6927
|
return (s = r == null ? void 0 : r.filter((a) => a[1].unitId === o)) == null ? void 0 : s.map((a) => {
|
|
6928
6928
|
var d;
|
|
6929
6929
|
return /* @__PURE__ */ f(
|
|
@@ -6935,7 +6935,7 @@ const pi = I9((e) => {
|
|
|
6935
6935
|
a[0]
|
|
6936
6936
|
);
|
|
6937
6937
|
});
|
|
6938
|
-
},
|
|
6938
|
+
}, it = h1("ui.popup.service");
|
|
6939
6939
|
class Kn extends d1 {
|
|
6940
6940
|
constructor() {
|
|
6941
6941
|
super(...arguments);
|
|
@@ -6972,7 +6972,7 @@ class Kn extends d1 {
|
|
|
6972
6972
|
this._popupMap.clear(), this._update();
|
|
6973
6973
|
}
|
|
6974
6974
|
}
|
|
6975
|
-
const er =
|
|
6975
|
+
const er = I9({ current: void 0 }), J1 = 8;
|
|
6976
6976
|
function tr(e) {
|
|
6977
6977
|
const { position: t, width: n, height: r, containerHeight: i, containerWidth: o, direction: s = "vertical", noPushMinimumGap: a = !1 } = e, d = a ? -1 / 0 : J1, C = a ? 1 / 0 : i - r - J1, v = a ? -1 / 0 : J1, c = a ? 1 / 0 : o - n - J1;
|
|
6978
6978
|
if (s === "vertical" || s.indexOf("top") === 0 || s.indexOf("bottom") === 0) {
|
|
@@ -6996,7 +6996,7 @@ function tr(e) {
|
|
|
6996
6996
|
} : w = L + r > i ? Math.max(O - r, d) < J1 ? { top: Math.max(Math.min(L, C), d) } : { top: Math.max(Math.min(O - r, C), d) } : { top: Math.max(Math.min(L, C), d) };
|
|
6997
6997
|
return { ...w, ..._ };
|
|
6998
6998
|
}
|
|
6999
|
-
function
|
|
6999
|
+
function ot(e) {
|
|
7000
7000
|
var X;
|
|
7001
7001
|
const {
|
|
7002
7002
|
mask: t,
|
|
@@ -7076,7 +7076,7 @@ function st(e) {
|
|
|
7076
7076
|
window.removeEventListener("contextmenu", U);
|
|
7077
7077
|
};
|
|
7078
7078
|
}, [y]);
|
|
7079
|
-
const o1 = /* @__PURE__ */ q(
|
|
7079
|
+
const o1 = /* @__PURE__ */ q(t3, { children: [
|
|
7080
7080
|
t && /* @__PURE__ */ f(
|
|
7081
7081
|
"div",
|
|
7082
7082
|
{
|
|
@@ -7106,12 +7106,12 @@ function st(e) {
|
|
|
7106
7106
|
] });
|
|
7107
7107
|
return n ? document.getElementById(n1) ? E9(o1, document.getElementById(n1)) : null : o1;
|
|
7108
7108
|
}
|
|
7109
|
-
|
|
7110
|
-
|
|
7109
|
+
ot.calcPopupPosition = tr;
|
|
7110
|
+
ot.useContext = () => e3(er);
|
|
7111
7111
|
const mi = ({ popup: e, children: t }) => {
|
|
7112
7112
|
const [n, r] = z(!1), i = G(() => e.anchorRect$.pipe(
|
|
7113
|
-
|
|
7114
|
-
|
|
7113
|
+
b3(0, L3),
|
|
7114
|
+
_9((c) => {
|
|
7115
7115
|
var I;
|
|
7116
7116
|
const { bottom: p, left: L, right: M, top: O } = c, [_ = 0, w = 0] = (I = e.offset) != null ? I : [];
|
|
7117
7117
|
return {
|
|
@@ -7123,10 +7123,10 @@ const mi = ({ popup: e, children: t }) => {
|
|
|
7123
7123
|
})
|
|
7124
7124
|
), [e.anchorRect$, e.offset]), o = G(() => {
|
|
7125
7125
|
var c, p;
|
|
7126
|
-
return (p = (c = e.hiddenRects$) == null ? void 0 : c.pipe(
|
|
7126
|
+
return (p = (c = e.hiddenRects$) == null ? void 0 : c.pipe(b3(0, L3))) != null ? p : Ce([]);
|
|
7127
7127
|
}, [e.hiddenRects$]), s = G(() => {
|
|
7128
7128
|
var c;
|
|
7129
|
-
return (c = e.excludeRects$) == null ? void 0 : c.pipe(
|
|
7129
|
+
return (c = e.excludeRects$) == null ? void 0 : c.pipe(b3(0, L3));
|
|
7130
7130
|
}, [e.excludeRects$]), a = M5(s, e.excludeRects), { canvasElement: d, hideOnInvisible: C = !0, hiddenType: v = "destroy" } = e;
|
|
7131
7131
|
return W(() => {
|
|
7132
7132
|
if (!C)
|
|
@@ -7140,7 +7140,7 @@ const mi = ({ popup: e, children: t }) => {
|
|
|
7140
7140
|
});
|
|
7141
7141
|
return () => c.unsubscribe();
|
|
7142
7142
|
}, [d, C, i, o]), n && v === "destroy" ? null : /* @__PURE__ */ f(
|
|
7143
|
-
|
|
7143
|
+
ot,
|
|
7144
7144
|
{
|
|
7145
7145
|
...e,
|
|
7146
7146
|
hidden: n,
|
|
@@ -7166,7 +7166,7 @@ const mi = ({ popup: e, children: t }) => {
|
|
|
7166
7166
|
);
|
|
7167
7167
|
};
|
|
7168
7168
|
function nr() {
|
|
7169
|
-
const e = P(
|
|
7169
|
+
const e = P(it), t = P(M1);
|
|
7170
7170
|
return r1(e.popups$, void 0, !0).map((r) => {
|
|
7171
7171
|
const [i, o] = r, s = t.get(o.componentKey);
|
|
7172
7172
|
return /* @__PURE__ */ f(
|
|
@@ -7183,9 +7183,9 @@ var bi = Object.getOwnPropertyDescriptor, Li = (e, t, n, r) => {
|
|
|
7183
7183
|
for (var i = r > 1 ? void 0 : r ? bi(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
7184
7184
|
(s = e[o]) && (i = s(i) || i);
|
|
7185
7185
|
return i;
|
|
7186
|
-
},
|
|
7186
|
+
}, Xt = (e, t) => (n, r) => t(n, r, e);
|
|
7187
7187
|
const rr = h1("univer.ribbon-service");
|
|
7188
|
-
let
|
|
7188
|
+
let T3 = class extends d1 {
|
|
7189
7189
|
constructor(t, n) {
|
|
7190
7190
|
super();
|
|
7191
7191
|
B(this, "_ribbon$", new S1([]));
|
|
@@ -7210,8 +7210,8 @@ let Z3 = class extends d1 {
|
|
|
7210
7210
|
_initRibbonSubscription() {
|
|
7211
7211
|
this.disposeWithMe(
|
|
7212
7212
|
W1([
|
|
7213
|
-
this._menuManagerService.menuChanged$.pipe(
|
|
7214
|
-
this._univerInstanceService.focused$.pipe(
|
|
7213
|
+
this._menuManagerService.menuChanged$.pipe(y3(void 0)),
|
|
7214
|
+
this._univerInstanceService.focused$.pipe(y3(void 0))
|
|
7215
7215
|
]).subscribe(() => {
|
|
7216
7216
|
this._updateRibbon();
|
|
7217
7217
|
})
|
|
@@ -7219,7 +7219,7 @@ let Z3 = class extends d1 {
|
|
|
7219
7219
|
}
|
|
7220
7220
|
_updateRibbon() {
|
|
7221
7221
|
var i;
|
|
7222
|
-
const t = this._menuManagerService.getMenuByPositionKey(
|
|
7222
|
+
const t = this._menuManagerService.getMenuByPositionKey(Ae.RIBBON), n = [], r = [];
|
|
7223
7223
|
for (const o of t)
|
|
7224
7224
|
if (o.children) {
|
|
7225
7225
|
for (const s of o.children)
|
|
@@ -7231,7 +7231,7 @@ let Z3 = class extends d1 {
|
|
|
7231
7231
|
this._ribbon$.next(t);
|
|
7232
7232
|
return;
|
|
7233
7233
|
}
|
|
7234
|
-
W1(n).pipe(
|
|
7234
|
+
W1(n).pipe(y3(new Array(n.length).fill(!1))).subscribe((o) => {
|
|
7235
7235
|
var d, C, v, c, p, L;
|
|
7236
7236
|
const s = [], a = o.map((M, O) => M ? r[O] : null).filter((M) => !!M);
|
|
7237
7237
|
for (const M of t) {
|
|
@@ -7259,10 +7259,10 @@ let Z3 = class extends d1 {
|
|
|
7259
7259
|
}).unsubscribe();
|
|
7260
7260
|
}
|
|
7261
7261
|
};
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
],
|
|
7262
|
+
T3 = Li([
|
|
7263
|
+
Xt(0, D1),
|
|
7264
|
+
Xt(1, N1)
|
|
7265
|
+
], T3);
|
|
7266
7266
|
function y1(e) {
|
|
7267
7267
|
const { components: t, fallback: n, sharedProps: r } = e;
|
|
7268
7268
|
return !t || t.size === 0 ? n != null ? n : null : Array.from(t.values()).map((i, o) => {
|
|
@@ -7272,11 +7272,11 @@ function y1(e) {
|
|
|
7272
7272
|
}
|
|
7273
7273
|
function w1(e, t) {
|
|
7274
7274
|
var a;
|
|
7275
|
-
const n = (a = t == null ? void 0 : t.get(V1)) != null ? a : P(V1), r = G(() => n.uiVisibleChange$.pipe(
|
|
7275
|
+
const n = (a = t == null ? void 0 : t.get(V1)) != null ? a : P(V1), r = G(() => n.uiVisibleChange$.pipe(Et((d) => d.ui === e)), [e, n]), i = r1(r), o = J(0), s = r1(
|
|
7276
7276
|
() => n.componentRegistered$.pipe(
|
|
7277
|
-
|
|
7277
|
+
Et((d) => d === e),
|
|
7278
7278
|
E2(200),
|
|
7279
|
-
|
|
7279
|
+
_9(() => o.current += 1),
|
|
7280
7280
|
N2(o.current += 1)
|
|
7281
7281
|
// trigger update when subscribe
|
|
7282
7282
|
),
|
|
@@ -7328,10 +7328,10 @@ function wi({
|
|
|
7328
7328
|
const yi = {
|
|
7329
7329
|
[p1.START]: v6,
|
|
7330
7330
|
[p1.INSERT]: L6,
|
|
7331
|
-
[p1.FORMULAS]:
|
|
7331
|
+
[p1.FORMULAS]: J3,
|
|
7332
7332
|
[p1.DATA]: K9,
|
|
7333
7333
|
[p1.VIEW]: o6,
|
|
7334
|
-
[p1.OTHERS]:
|
|
7334
|
+
[p1.OTHERS]: Q3
|
|
7335
7335
|
};
|
|
7336
7336
|
function _i({
|
|
7337
7337
|
ribbon: e,
|
|
@@ -7461,7 +7461,7 @@ function Ii(e) {
|
|
|
7461
7461
|
return t && L.push(t.subscribe((M) => d(M))), n && L.push(n.subscribe((M) => p(M))), r && L.push(r.subscribe((M) => v(M))), i && L.push(i.subscribe((M) => s(M))), () => L.forEach((M) => M.unsubscribe());
|
|
7462
7462
|
}, [r, t, n, i]), { disabled: a, value: o, activated: C, hidden: c };
|
|
7463
7463
|
}
|
|
7464
|
-
const
|
|
7464
|
+
const st = I9({
|
|
7465
7465
|
dropdownVisible: !1,
|
|
7466
7466
|
setDropdownVisible: (e) => {
|
|
7467
7467
|
}
|
|
@@ -7480,22 +7480,22 @@ const lt = x9({
|
|
|
7480
7480
|
return T2(t, () => ({
|
|
7481
7481
|
el: i.current
|
|
7482
7482
|
})), r.title ? /* @__PURE__ */ f(
|
|
7483
|
-
|
|
7483
|
+
Y3,
|
|
7484
7484
|
{
|
|
7485
7485
|
visible: o,
|
|
7486
7486
|
onVisibleChange: C,
|
|
7487
7487
|
...r,
|
|
7488
|
-
children: /* @__PURE__ */ f("span", { ref: i, children: /* @__PURE__ */ f(
|
|
7488
|
+
children: /* @__PURE__ */ f("span", { ref: i, children: /* @__PURE__ */ f(st.Provider, { value: c, children: n }) })
|
|
7489
7489
|
}
|
|
7490
7490
|
) : /* @__PURE__ */ f("span", { ref: i, children: n });
|
|
7491
7491
|
});
|
|
7492
7492
|
function Hi(e) {
|
|
7493
|
-
const { children: t, overlay: n, disabled: r, align: i = "start" } = e, { dropdownVisible: o, setDropdownVisible: s } =
|
|
7493
|
+
const { children: t, overlay: n, disabled: r, align: i = "start" } = e, { dropdownVisible: o, setDropdownVisible: s } = e3(st);
|
|
7494
7494
|
function a(d) {
|
|
7495
7495
|
s(d);
|
|
7496
7496
|
}
|
|
7497
7497
|
return /* @__PURE__ */ f(
|
|
7498
|
-
|
|
7498
|
+
x9,
|
|
7499
7499
|
{
|
|
7500
7500
|
align: i,
|
|
7501
7501
|
overlay: /* @__PURE__ */ f("div", { className: "univer-grid univer-gap-2", children: n }),
|
|
@@ -7519,7 +7519,7 @@ function Ie({ icon: e, value: t, option: n, onOptionSelect: r }) {
|
|
|
7519
7519
|
}),
|
|
7520
7520
|
children: [
|
|
7521
7521
|
o && String(t) === String(n.value) && /* @__PURE__ */ f(
|
|
7522
|
-
|
|
7522
|
+
X3,
|
|
7523
7523
|
{
|
|
7524
7524
|
className: "univer-absolute univer-left-1 univer-top-0.5 univer-text-primary-600"
|
|
7525
7525
|
}
|
|
@@ -7539,7 +7539,7 @@ function Ie({ icon: e, value: t, option: n, onOptionSelect: r }) {
|
|
|
7539
7539
|
}
|
|
7540
7540
|
);
|
|
7541
7541
|
}
|
|
7542
|
-
function
|
|
7542
|
+
function qt({
|
|
7543
7543
|
menuId: e,
|
|
7544
7544
|
slot: t,
|
|
7545
7545
|
value: n,
|
|
@@ -7549,7 +7549,7 @@ function Jt({
|
|
|
7549
7549
|
onOptionSelect: s
|
|
7550
7550
|
}) {
|
|
7551
7551
|
var O;
|
|
7552
|
-
const { dropdownVisible: a, setDropdownVisible: d } =
|
|
7552
|
+
const { dropdownVisible: a, setDropdownVisible: d } = e3(st), C = P(D1), [v, c] = z({}), p = G(() => e ? C.getMenuByPositionKey(e) : [], [e]), L = G(() => p.filter((_) => {
|
|
7553
7553
|
var I;
|
|
7554
7554
|
if (!_.children)
|
|
7555
7555
|
return !v[_.key];
|
|
@@ -7658,7 +7658,7 @@ function Jt({
|
|
|
7658
7658
|
});
|
|
7659
7659
|
}
|
|
7660
7660
|
return /* @__PURE__ */ f(
|
|
7661
|
-
|
|
7661
|
+
V3,
|
|
7662
7662
|
{
|
|
7663
7663
|
align: "start",
|
|
7664
7664
|
items: _,
|
|
@@ -7699,7 +7699,7 @@ function Jt({
|
|
|
7699
7699
|
});
|
|
7700
7700
|
} else (O = w.children) != null && O.length;
|
|
7701
7701
|
return /* @__PURE__ */ f(
|
|
7702
|
-
|
|
7702
|
+
V3,
|
|
7703
7703
|
{
|
|
7704
7704
|
align: "start",
|
|
7705
7705
|
items: _,
|
|
@@ -7714,9 +7714,9 @@ function Jt({
|
|
|
7714
7714
|
const xe = H((e, t) => {
|
|
7715
7715
|
const n = P(m1), r = P(F1), i = P(k1), o = P(M1), { value: s, hidden: a, disabled: d, activated: C } = Ii(e), v = (X, U) => {
|
|
7716
7716
|
i.focus(), r.executeCommand(X, U);
|
|
7717
|
-
}, { tooltip: c, shortcut: p, icon: L, title: M, label: O, id: _, commandId: w, type: I, slot: S, params: E } = e, y = n.t(c != null ? c : "") + (p ? ` (${p})` : ""), { selections: N } = e, D = G(() =>
|
|
7717
|
+
}, { tooltip: c, shortcut: p, icon: L, title: M, label: O, id: _, commandId: w, type: I, slot: S, params: E } = e, y = n.t(c != null ? c : "") + (p ? ` (${p})` : ""), { selections: N } = e, D = G(() => Ee(N) ? N : new de((X) => {
|
|
7718
7718
|
X.next(N);
|
|
7719
|
-
}), [N]), k = r1(D), j = G(() =>
|
|
7719
|
+
}), [N]), k = r1(D), j = G(() => Ee(L) ? L : new de((X) => {
|
|
7720
7720
|
var s1, f1;
|
|
7721
7721
|
const U = (f1 = (s1 = k == null ? void 0 : k.find((x1) => x1.value === s)) == null ? void 0 : s1.icon) != null ? f1 : L;
|
|
7722
7722
|
X.next(U);
|
|
@@ -7766,7 +7766,7 @@ const xe = H((e, t) => {
|
|
|
7766
7766
|
}
|
|
7767
7767
|
),
|
|
7768
7768
|
/* @__PURE__ */ f(
|
|
7769
|
-
|
|
7769
|
+
qt,
|
|
7770
7770
|
{
|
|
7771
7771
|
menuId: _,
|
|
7772
7772
|
slot: S,
|
|
@@ -7791,7 +7791,7 @@ const xe = H((e, t) => {
|
|
|
7791
7791
|
]
|
|
7792
7792
|
}
|
|
7793
7793
|
) : /* @__PURE__ */ f(
|
|
7794
|
-
|
|
7794
|
+
qt,
|
|
7795
7795
|
{
|
|
7796
7796
|
menuId: _,
|
|
7797
7797
|
slot: S,
|
|
@@ -7889,7 +7889,7 @@ function Si(e) {
|
|
|
7889
7889
|
}), _;
|
|
7890
7890
|
}
|
|
7891
7891
|
return d;
|
|
7892
|
-
}, [t, d]), L =
|
|
7892
|
+
}, [t, d]), L = Ke((_) => {
|
|
7893
7893
|
a.current = {}, i.setActivatedTab(_.key);
|
|
7894
7894
|
}, []), M = G(() => {
|
|
7895
7895
|
var S, E;
|
|
@@ -7938,10 +7938,10 @@ function Si(e) {
|
|
|
7938
7938
|
"aria-hidden": "true",
|
|
7939
7939
|
className: K("univer-invisible univer-absolute -univer-left-[99999] -univer-top-[99999] univer-box-border univer-flex univer-h-10 univer-min-w-min univer-items-center univer-px-3 univer-opacity-0", {
|
|
7940
7940
|
"univer-hidden": !c
|
|
7941
|
-
},
|
|
7941
|
+
}, Tt, Ne),
|
|
7942
7942
|
children: M.allGroups.map((_, w) => {
|
|
7943
7943
|
var I, S;
|
|
7944
|
-
return (((I = _.children) == null ? void 0 : I.length) || _.item) && /* @__PURE__ */ f(
|
|
7944
|
+
return (((I = _.children) == null ? void 0 : I.length) || _.item) && /* @__PURE__ */ f(Nt, { children: /* @__PURE__ */ f("div", { className: "univer-grid univer-shrink-0 univer-grid-flow-col univer-gap-2 univer-px-2", children: _.children && ((S = _.children) == null ? void 0 : S.map((E) => E.item && /* @__PURE__ */ f(
|
|
7945
7945
|
xe,
|
|
7946
7946
|
{
|
|
7947
7947
|
...E.item,
|
|
@@ -7960,7 +7960,7 @@ function Si(e) {
|
|
|
7960
7960
|
})
|
|
7961
7961
|
}
|
|
7962
7962
|
), [M.allGroups, c]);
|
|
7963
|
-
return /* @__PURE__ */ q(
|
|
7963
|
+
return /* @__PURE__ */ q(t3, { children: [
|
|
7964
7964
|
/* @__PURE__ */ q(
|
|
7965
7965
|
"div",
|
|
7966
7966
|
{
|
|
@@ -7994,7 +7994,7 @@ function Si(e) {
|
|
|
7994
7994
|
"univer-grid-cols-[1fr] univer-justify-center": t === "classic",
|
|
7995
7995
|
"univer-grid-cols-[auto,1fr]": p.length > 1 && t !== "classic",
|
|
7996
7996
|
"univer-grid-cols-none": p.length === 1
|
|
7997
|
-
},
|
|
7997
|
+
}, Ne),
|
|
7998
7998
|
children: [
|
|
7999
7999
|
t === "default" && p.length > 1 && /* @__PURE__ */ f(
|
|
8000
8000
|
_i,
|
|
@@ -8009,7 +8009,7 @@ function Si(e) {
|
|
|
8009
8009
|
{
|
|
8010
8010
|
"data-u-comp": "ribbon-toolbar",
|
|
8011
8011
|
ref: s,
|
|
8012
|
-
className: K("univer-flex univer-overflow-hidden",
|
|
8012
|
+
className: K("univer-flex univer-overflow-hidden", Tt, {
|
|
8013
8013
|
"univer-justify-center": t === "classic"
|
|
8014
8014
|
}),
|
|
8015
8015
|
role: "toolbar",
|
|
@@ -8017,7 +8017,7 @@ function Si(e) {
|
|
|
8017
8017
|
children: [
|
|
8018
8018
|
M.visibleGroups.map((_) => {
|
|
8019
8019
|
var w, I;
|
|
8020
|
-
return (((w = _.children) == null ? void 0 : w.length) || _.item) && /* @__PURE__ */ f(
|
|
8020
|
+
return (((w = _.children) == null ? void 0 : w.length) || _.item) && /* @__PURE__ */ f(Nt, { children: /* @__PURE__ */ f("div", { className: "univer-grid univer-shrink-0 univer-grid-flow-col univer-gap-2 univer-px-2", children: _.children && ((I = _.children) == null ? void 0 : I.map((S) => S.item && /* @__PURE__ */ f(xe, { ...S.item }, S.key))) }) }, _.key);
|
|
8021
8021
|
}),
|
|
8022
8022
|
v.length > 0 && /* @__PURE__ */ f(
|
|
8023
8023
|
"div",
|
|
@@ -8025,7 +8025,7 @@ function Si(e) {
|
|
|
8025
8025
|
"data-u-comp": "ribbon-toolbar-more",
|
|
8026
8026
|
className: "univer-pl-2 rtl:univer-pr-2",
|
|
8027
8027
|
children: /* @__PURE__ */ f(
|
|
8028
|
-
|
|
8028
|
+
x9,
|
|
8029
8029
|
{
|
|
8030
8030
|
collisionPadding: { right: 12, left: 12 },
|
|
8031
8031
|
onOpenAutoFocus: (_) => _.preventDefault(),
|
|
@@ -8053,7 +8053,7 @@ function Si(e) {
|
|
|
8053
8053
|
className: ir,
|
|
8054
8054
|
"aria-label": o.t("ribbon.more"),
|
|
8055
8055
|
"aria-haspopup": "true",
|
|
8056
|
-
children: /* @__PURE__ */ f(
|
|
8056
|
+
children: /* @__PURE__ */ f(Q3, {})
|
|
8057
8057
|
}
|
|
8058
8058
|
)
|
|
8059
8059
|
}
|
|
@@ -8069,7 +8069,7 @@ function Si(e) {
|
|
|
8069
8069
|
O
|
|
8070
8070
|
] });
|
|
8071
8071
|
}
|
|
8072
|
-
class
|
|
8072
|
+
class r3 extends d1 {
|
|
8073
8073
|
constructor() {
|
|
8074
8074
|
super(...arguments);
|
|
8075
8075
|
B(this, "_styleSheetId", "univer-theme-css-variables");
|
|
@@ -8097,7 +8097,7 @@ ${i}
|
|
|
8097
8097
|
super.dispose();
|
|
8098
8098
|
}
|
|
8099
8099
|
}
|
|
8100
|
-
const
|
|
8100
|
+
const i3 = h1("ui.contextmenu.service");
|
|
8101
8101
|
class or extends d1 {
|
|
8102
8102
|
constructor() {
|
|
8103
8103
|
super(...arguments);
|
|
@@ -8129,7 +8129,7 @@ class or extends d1 {
|
|
|
8129
8129
|
}
|
|
8130
8130
|
}
|
|
8131
8131
|
function Ri() {
|
|
8132
|
-
const e = J(null), [t, n] = z(!1), [r, i] = z(""), [o, s] = z([0, 0]), a = J(t), d = P(
|
|
8132
|
+
const e = J(null), [t, n] = z(!1), [r, i] = z(""), [o, s] = z([0, 0]), a = J(t), d = P(i3), C = P(F1), v = A2();
|
|
8133
8133
|
a.current = t, W(() => {
|
|
8134
8134
|
const L = d.registerContextMenuHandler({
|
|
8135
8135
|
handleContextMenu: c,
|
|
@@ -8155,7 +8155,7 @@ function Ri() {
|
|
|
8155
8155
|
function p() {
|
|
8156
8156
|
n(!1);
|
|
8157
8157
|
}
|
|
8158
|
-
return /* @__PURE__ */ f(
|
|
8158
|
+
return /* @__PURE__ */ f(H9, { visible: t, offset: o, children: /* @__PURE__ */ f("section", { ref: e, children: r && /* @__PURE__ */ f(
|
|
8159
8159
|
X5,
|
|
8160
8160
|
{
|
|
8161
8161
|
menuType: r,
|
|
@@ -8166,9 +8166,9 @@ function Ri() {
|
|
|
8166
8166
|
}
|
|
8167
8167
|
) }) });
|
|
8168
8168
|
}
|
|
8169
|
-
const
|
|
8169
|
+
const lt = h1("univer.global-zone-service");
|
|
8170
8170
|
function sr() {
|
|
8171
|
-
const e = P(
|
|
8171
|
+
const e = P(lt), [t, n] = z(!1), r = r1(e.componentKey$, e.componentKey), i = P(M1), o = G(() => {
|
|
8172
8172
|
const s = i.get(r != null ? r : "");
|
|
8173
8173
|
if (s)
|
|
8174
8174
|
return s;
|
|
@@ -8253,7 +8253,7 @@ function lr() {
|
|
|
8253
8253
|
{
|
|
8254
8254
|
className: "univer-cursor-pointer univer-text-gray-500 dark:!univer-text-gray-300",
|
|
8255
8255
|
onClick: o,
|
|
8256
|
-
children: /* @__PURE__ */ f(
|
|
8256
|
+
children: /* @__PURE__ */ f(q3, {})
|
|
8257
8257
|
}
|
|
8258
8258
|
)
|
|
8259
8259
|
]
|
|
@@ -8273,9 +8273,9 @@ function lr() {
|
|
|
8273
8273
|
}
|
|
8274
8274
|
);
|
|
8275
8275
|
}
|
|
8276
|
-
const
|
|
8276
|
+
const at = h1("univer.zen-zone-service");
|
|
8277
8277
|
function ar() {
|
|
8278
|
-
const e = P(
|
|
8278
|
+
const e = P(at), [t, n] = z(!1), [r, i] = z(), o = r1(e.temporaryHidden$), s = P(M1);
|
|
8279
8279
|
W(() => {
|
|
8280
8280
|
const d = [
|
|
8281
8281
|
e.visible$.subscribe((C) => {
|
|
@@ -8322,8 +8322,8 @@ function Oi(e) {
|
|
|
8322
8322
|
ribbonType: s = "default",
|
|
8323
8323
|
mountContainer: a,
|
|
8324
8324
|
onRendered: d
|
|
8325
|
-
} = e, C = P(m1), v = P(
|
|
8326
|
-
|
|
8325
|
+
} = e, C = P(m1), v = P(z3), c = P(r3), p = J(null), M = P(Y1).getConfig(ie), O = w1(a1.CUSTOM_HEADER), _ = w1(a1.FOOTER), w = w1(a1.HEADER), I = w1(a1.HEADER_MENU), S = w1(a1.CONTENT), E = w1(a1.LEFT_SIDEBAR), y = w1(a1.GLOBAL), N = w1(a1.TOOLBAR), D = (o1 = M == null ? void 0 : M.popupRootId) != null ? o1 : "univer-popup-portal";
|
|
8326
|
+
R3(() => {
|
|
8327
8327
|
const X = v.currentTheme$.subscribe((U) => {
|
|
8328
8328
|
c.injectThemeToHead(U);
|
|
8329
8329
|
});
|
|
@@ -8332,7 +8332,7 @@ function Oi(e) {
|
|
|
8332
8332
|
};
|
|
8333
8333
|
}, []);
|
|
8334
8334
|
const [k, j] = z(!1);
|
|
8335
|
-
|
|
8335
|
+
R3(() => {
|
|
8336
8336
|
const X = v.darkMode$.subscribe((U) => {
|
|
8337
8337
|
j(U), U ? document.documentElement.classList.add("univer-dark") : document.documentElement.classList.remove("univer-dark");
|
|
8338
8338
|
});
|
|
@@ -8353,7 +8353,7 @@ function Oi(e) {
|
|
|
8353
8353
|
return () => {
|
|
8354
8354
|
X.forEach((U) => U.unsubscribe()), document.body.removeChild(i1);
|
|
8355
8355
|
};
|
|
8356
|
-
}, [C, a, i1]), /* @__PURE__ */ q(
|
|
8356
|
+
}, [C, a, i1]), /* @__PURE__ */ q(S9, { locale: Q == null ? void 0 : Q.design, mountContainer: i1, children: [
|
|
8357
8357
|
/* @__PURE__ */ q(
|
|
8358
8358
|
"div",
|
|
8359
8359
|
{
|
|
@@ -8401,7 +8401,7 @@ function Oi(e) {
|
|
|
8401
8401
|
/* @__PURE__ */ q(
|
|
8402
8402
|
"section",
|
|
8403
8403
|
{
|
|
8404
|
-
className: K("univer-relative univer-grid univer-flex-1 univer-grid-rows-[auto_1fr] univer-overflow-hidden univer-bg-white dark:!univer-bg-gray-800",
|
|
8404
|
+
className: K("univer-relative univer-grid univer-flex-1 univer-grid-rows-[auto_1fr] univer-overflow-hidden univer-bg-white dark:!univer-bg-gray-800", Ne),
|
|
8405
8405
|
children: [
|
|
8406
8406
|
/* @__PURE__ */ f("header", { children: t && /* @__PURE__ */ f(y1, { components: w }, "header") }),
|
|
8407
8407
|
/* @__PURE__ */ f(
|
|
@@ -8435,7 +8435,7 @@ function Oi(e) {
|
|
|
8435
8435
|
] });
|
|
8436
8436
|
}
|
|
8437
8437
|
function $i() {
|
|
8438
|
-
const { mountContainer: e } =
|
|
8438
|
+
const { mountContainer: e } = e3(J2), t = w1(a1.FLOATING);
|
|
8439
8439
|
return E9(/* @__PURE__ */ f(y1, { components: t }, "floating"), e);
|
|
8440
8440
|
}
|
|
8441
8441
|
const Ei = 3e3;
|
|
@@ -8443,18 +8443,19 @@ class cr extends d1 {
|
|
|
8443
8443
|
constructor(n, r, i, o, s) {
|
|
8444
8444
|
super();
|
|
8445
8445
|
B(this, "_steadyTimeout");
|
|
8446
|
+
B(this, "_renderedTimeout");
|
|
8446
8447
|
B(this, "_renderTimeout");
|
|
8447
8448
|
B(this, "_currentRenderId", null);
|
|
8448
8449
|
this._injector = n, this._instanceService = r, this._layoutService = i, this._lifecycleService = o, this._renderManagerService = s;
|
|
8449
8450
|
}
|
|
8450
8451
|
dispose() {
|
|
8451
|
-
super.dispose(), clearTimeout(this._steadyTimeout), clearTimeout(this._renderTimeout), delete this._instanceService, delete this._layoutService, delete this._lifecycleService, delete this._renderManagerService;
|
|
8452
|
+
super.dispose(), clearTimeout(this._steadyTimeout), clearTimeout(this._renderedTimeout), clearTimeout(this._renderTimeout), delete this._instanceService, delete this._layoutService, delete this._lifecycleService, delete this._renderManagerService;
|
|
8452
8453
|
}
|
|
8453
8454
|
_bootstrapWorkbench() {
|
|
8454
8455
|
this.disposeWithMe(this.bootstrap(async (n, r) => {
|
|
8455
8456
|
this._layoutService && (this.disposeWithMe(this._layoutService.registerRootContainerElement(r)), this.disposeWithMe(this._layoutService.registerContentElement(n)));
|
|
8456
8457
|
try {
|
|
8457
|
-
await this._lifecycleService.onStage(
|
|
8458
|
+
await this._lifecycleService.onStage(p3.Ready), this._renderTimeout = window.setTimeout(() => {
|
|
8458
8459
|
const i = this._renderManagerService.getRenderAll();
|
|
8459
8460
|
for (const [o] of i)
|
|
8460
8461
|
if (this._changeRenderUnit(o, n)) break;
|
|
@@ -8465,12 +8466,14 @@ class cr extends d1 {
|
|
|
8465
8466
|
o.unitId === ((s = this._instanceService.getFocusedUnit()) == null ? void 0 : s.getUnitId()) && this._changeRenderUnit(o.unitId, n);
|
|
8466
8467
|
})), this.disposeWithMe(this._renderManagerService.disposed$.subscribe((o) => {
|
|
8467
8468
|
this._currentRenderId === o && (this._currentRenderId = null);
|
|
8468
|
-
})), this.
|
|
8469
|
-
this._lifecycleService.stage =
|
|
8470
|
-
|
|
8469
|
+
})), this._renderedTimeout = window.setTimeout(() => {
|
|
8470
|
+
this._lifecycleService.stage = p3.Rendered, this._steadyTimeout = window.setTimeout(() => {
|
|
8471
|
+
this._lifecycleService.stage = p3.Steady;
|
|
8472
|
+
}, Ei);
|
|
8473
|
+
}, 0);
|
|
8471
8474
|
}, 300);
|
|
8472
8475
|
} catch (i) {
|
|
8473
|
-
if (i instanceof I2)
|
|
8476
|
+
if (clearTimeout(this._steadyTimeout), clearTimeout(this._renderedTimeout), clearTimeout(this._renderTimeout), i instanceof I2)
|
|
8474
8477
|
return;
|
|
8475
8478
|
throw i;
|
|
8476
8479
|
}
|
|
@@ -8489,7 +8492,7 @@ var Ni = Object.getOwnPropertyDescriptor, Di = (e, t, n, r) => {
|
|
|
8489
8492
|
(s = e[o]) && (i = s(i) || i);
|
|
8490
8493
|
return i;
|
|
8491
8494
|
}, P1 = (e, t) => (n, r) => t(n, r, e);
|
|
8492
|
-
let
|
|
8495
|
+
let Z3 = class extends cr {
|
|
8493
8496
|
constructor(e, t, n, r, i, o, s, a, d) {
|
|
8494
8497
|
super(t, o, i, n, r), this._config = e, this._componentManager = d, s.mergeMenu(ti), this._initBuiltinComponents(a), this._registerComponents(), this._bootstrapWorkbench();
|
|
8495
8498
|
}
|
|
@@ -8517,26 +8520,26 @@ let A3 = class extends cr {
|
|
|
8517
8520
|
this.disposeWithMe(e.registerComponent(a1.FLOATING, () => R1(nr, this._injector))), this.disposeWithMe(e.registerComponent(a1.CONTENT, () => R1(Qn, this._injector))), this.disposeWithMe(e.registerComponent(a1.TOOLBAR, () => R1(Si, this._injector)));
|
|
8518
8521
|
}
|
|
8519
8522
|
};
|
|
8520
|
-
|
|
8523
|
+
Z3 = Di([
|
|
8521
8524
|
P1(1, g1(I1)),
|
|
8522
|
-
P1(2, g1(
|
|
8525
|
+
P1(2, g1(v9)),
|
|
8523
8526
|
P1(3, O9),
|
|
8524
8527
|
P1(4, k1),
|
|
8525
8528
|
P1(5, N1),
|
|
8526
8529
|
P1(6, D1),
|
|
8527
8530
|
P1(7, V1),
|
|
8528
8531
|
P1(8, g1(M1))
|
|
8529
|
-
],
|
|
8532
|
+
], Z3);
|
|
8530
8533
|
function Ti(e, t, n) {
|
|
8531
8534
|
let r;
|
|
8532
8535
|
const i = t.container;
|
|
8533
8536
|
if (typeof i == "string") {
|
|
8534
8537
|
const d = document.getElementById(i);
|
|
8535
|
-
d ? r = d : r =
|
|
8536
|
-
} else i instanceof HTMLElement ? r = i : r =
|
|
8538
|
+
d ? r = d : r = Jt(i);
|
|
8539
|
+
} else i instanceof HTMLElement ? r = i : r = Jt("univer");
|
|
8537
8540
|
const o = R1(Vi, e), s = (d) => n(d, r);
|
|
8538
8541
|
function a() {
|
|
8539
|
-
|
|
8542
|
+
V9(
|
|
8540
8543
|
/* @__PURE__ */ f(
|
|
8541
8544
|
o,
|
|
8542
8545
|
{
|
|
@@ -8549,14 +8552,14 @@ function Ti(e, t, n) {
|
|
|
8549
8552
|
);
|
|
8550
8553
|
}
|
|
8551
8554
|
return a(), c1(() => {
|
|
8552
|
-
|
|
8555
|
+
R9(r);
|
|
8553
8556
|
});
|
|
8554
8557
|
}
|
|
8555
|
-
function
|
|
8558
|
+
function Jt(e) {
|
|
8556
8559
|
const t = document.createElement("div");
|
|
8557
8560
|
return t.id = e, t;
|
|
8558
8561
|
}
|
|
8559
|
-
const
|
|
8562
|
+
const Fe = h1("univer.ui.ui-controller");
|
|
8560
8563
|
function Zi(e) {
|
|
8561
8564
|
const { menuType: t, onOptionSelect: n } = e, r = P(D1);
|
|
8562
8565
|
if (!t)
|
|
@@ -8604,7 +8607,7 @@ function Ai(e) {
|
|
|
8604
8607
|
);
|
|
8605
8608
|
}
|
|
8606
8609
|
function Bi() {
|
|
8607
|
-
const [e, t] = z(!1), [n, r] = z(""), [i, o] = z([0, 0]), s = J(e), a = P(
|
|
8610
|
+
const [e, t] = z(!1), [n, r] = z(""), [i, o] = z([0, 0]), s = J(e), a = P(i3), d = P(F1);
|
|
8608
8611
|
s.current = e, W(() => {
|
|
8609
8612
|
const c = a.registerContextMenuHandler({
|
|
8610
8613
|
handleContextMenu: C,
|
|
@@ -8625,7 +8628,7 @@ function Bi() {
|
|
|
8625
8628
|
function v() {
|
|
8626
8629
|
t(!1);
|
|
8627
8630
|
}
|
|
8628
|
-
return /* @__PURE__ */ f(
|
|
8631
|
+
return /* @__PURE__ */ f(H9, { visible: e, offset: i, children: /* @__PURE__ */ f("section", { onPointerDown: (c) => c.stopPropagation(), children: n && // TODO@wzhudev: change to mobile menu
|
|
8629
8632
|
/* @__PURE__ */ f(
|
|
8630
8633
|
Zi,
|
|
8631
8634
|
{
|
|
@@ -8644,7 +8647,7 @@ function Pi(e) {
|
|
|
8644
8647
|
contextMenu: r = !0,
|
|
8645
8648
|
mountContainer: i,
|
|
8646
8649
|
onRendered: o
|
|
8647
|
-
} = e, s = P(m1), a = P(
|
|
8650
|
+
} = e, s = P(m1), a = P(z3), d = P(r3), C = J(null), v = w1(a1.FOOTER), c = w1(a1.HEADER), p = w1(a1.CONTENT), L = w1(a1.LEFT_SIDEBAR), M = w1(a1.GLOBAL), [O, _] = z(!1);
|
|
8648
8651
|
W(() => {
|
|
8649
8652
|
const E = a.darkMode$.subscribe((y) => {
|
|
8650
8653
|
_(y);
|
|
@@ -8656,7 +8659,7 @@ function Pi(e) {
|
|
|
8656
8659
|
C.current && (o == null || o(C.current));
|
|
8657
8660
|
}, [o]);
|
|
8658
8661
|
const [w, I] = z(s.getLocales()), S = G(() => document.createElement("div"), []);
|
|
8659
|
-
return
|
|
8662
|
+
return R3(() => {
|
|
8660
8663
|
const E = a.currentTheme$.subscribe((y) => {
|
|
8661
8664
|
d.injectThemeToHead(y);
|
|
8662
8665
|
});
|
|
@@ -8673,7 +8676,7 @@ function Pi(e) {
|
|
|
8673
8676
|
return () => {
|
|
8674
8677
|
E.forEach((y) => y.unsubscribe()), document.body.removeChild(S);
|
|
8675
8678
|
};
|
|
8676
|
-
}, [s, i, S]), /* @__PURE__ */ q(
|
|
8679
|
+
}, [s, i, S]), /* @__PURE__ */ q(S9, { locale: w == null ? void 0 : w.design, mountContainer: S, children: [
|
|
8677
8680
|
/* @__PURE__ */ q(
|
|
8678
8681
|
"div",
|
|
8679
8682
|
{
|
|
@@ -8695,7 +8698,7 @@ function Pi(e) {
|
|
|
8695
8698
|
/* @__PURE__ */ q(
|
|
8696
8699
|
"section",
|
|
8697
8700
|
{
|
|
8698
|
-
className: K("univer-relative univer-grid univer-flex-1 univer-grid-rows-[auto_1fr] univer-overflow-hidden univer-bg-white dark:!univer-bg-gray-800",
|
|
8701
|
+
className: K("univer-relative univer-grid univer-flex-1 univer-grid-rows-[auto_1fr] univer-overflow-hidden univer-bg-white dark:!univer-bg-gray-800", Ne),
|
|
8699
8702
|
children: [
|
|
8700
8703
|
/* @__PURE__ */ f("header", { className: "univer-w-screen", children: t && /* @__PURE__ */ f(y1, { components: c }, "header") }),
|
|
8701
8704
|
/* @__PURE__ */ f(
|
|
@@ -8731,7 +8734,7 @@ var Fi = Object.getOwnPropertyDescriptor, ki = (e, t, n, r) => {
|
|
|
8731
8734
|
(s = e[o]) && (i = s(i) || i);
|
|
8732
8735
|
return i;
|
|
8733
8736
|
}, Q1 = (e, t) => (n, r) => t(n, r, e);
|
|
8734
|
-
let
|
|
8737
|
+
let A3 = class extends cr {
|
|
8735
8738
|
constructor(e, t, n, r, i, o, s) {
|
|
8736
8739
|
super(t, o, i, n, r), this._config = e, this._initBuiltinComponents(s), this._bootstrapWorkbench();
|
|
8737
8740
|
}
|
|
@@ -8742,24 +8745,24 @@ let B3 = class extends cr {
|
|
|
8742
8745
|
this.disposeWithMe(e.registerComponent(a1.CONTENT, () => R1(nr, this._injector))), this.disposeWithMe(e.registerComponent(a1.CONTENT, () => R1(Qn, this._injector)));
|
|
8743
8746
|
}
|
|
8744
8747
|
};
|
|
8745
|
-
|
|
8748
|
+
A3 = ki([
|
|
8746
8749
|
Q1(1, g1(I1)),
|
|
8747
|
-
Q1(2, g1(
|
|
8750
|
+
Q1(2, g1(v9)),
|
|
8748
8751
|
Q1(3, O9),
|
|
8749
8752
|
Q1(4, k1),
|
|
8750
8753
|
Q1(5, N1),
|
|
8751
8754
|
Q1(6, V1)
|
|
8752
|
-
],
|
|
8755
|
+
], A3);
|
|
8753
8756
|
function ji(e, t, n) {
|
|
8754
8757
|
let r;
|
|
8755
8758
|
const i = t.container;
|
|
8756
8759
|
if (typeof i == "string") {
|
|
8757
8760
|
const d = document.getElementById(i);
|
|
8758
|
-
d ? r = d : r =
|
|
8759
|
-
} else i instanceof HTMLElement ? r = i : r =
|
|
8761
|
+
d ? r = d : r = Qt(i);
|
|
8762
|
+
} else i instanceof HTMLElement ? r = i : r = Qt("univer");
|
|
8760
8763
|
const o = R1(Pi, e), s = (d) => n(d, r);
|
|
8761
8764
|
function a() {
|
|
8762
|
-
|
|
8765
|
+
V9(
|
|
8763
8766
|
/* @__PURE__ */ f(
|
|
8764
8767
|
o,
|
|
8765
8768
|
{
|
|
@@ -8772,21 +8775,21 @@ function ji(e, t, n) {
|
|
|
8772
8775
|
);
|
|
8773
8776
|
}
|
|
8774
8777
|
return a(), c1(() => {
|
|
8775
|
-
|
|
8778
|
+
R9(r);
|
|
8776
8779
|
});
|
|
8777
8780
|
}
|
|
8778
|
-
function
|
|
8781
|
+
function Qt(e) {
|
|
8779
8782
|
const t = document.createElement("div");
|
|
8780
8783
|
return t.id = e, t;
|
|
8781
8784
|
}
|
|
8782
|
-
const
|
|
8785
|
+
const o3 = h1("ui.notification.service");
|
|
8783
8786
|
var Ui = Object.getOwnPropertyDescriptor, zi = (e, t, n, r) => {
|
|
8784
8787
|
for (var i = r > 1 ? void 0 : r ? Ui(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
8785
8788
|
(s = e[o]) && (i = s(i) || i);
|
|
8786
8789
|
return i;
|
|
8787
8790
|
}, Wi = (e, t) => (n, r) => t(n, r, e);
|
|
8788
8791
|
const ur = h1("univer.ui.before-close-service");
|
|
8789
|
-
let
|
|
8792
|
+
let ke = class {
|
|
8790
8793
|
constructor(e) {
|
|
8791
8794
|
B(this, "_beforeUnloadCallbacks", []);
|
|
8792
8795
|
B(this, "_onCloseCallbacks", []);
|
|
@@ -8822,9 +8825,9 @@ let je = class {
|
|
|
8822
8825
|
});
|
|
8823
8826
|
}
|
|
8824
8827
|
};
|
|
8825
|
-
|
|
8826
|
-
Wi(0,
|
|
8827
|
-
],
|
|
8828
|
+
ke = zi([
|
|
8829
|
+
Wi(0, o3)
|
|
8830
|
+
], ke);
|
|
8828
8831
|
function Yi() {
|
|
8829
8832
|
return typeof navigator.clipboard < "u" && typeof navigator.clipboard.readText < "u";
|
|
8830
8833
|
}
|
|
@@ -8832,8 +8835,8 @@ var Gi = Object.getOwnPropertyDescriptor, Xi = (e, t, n, r) => {
|
|
|
8832
8835
|
for (var i = r > 1 ? void 0 : r ? Gi(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
8833
8836
|
(s = e[o]) && (i = s(i) || i);
|
|
8834
8837
|
return i;
|
|
8835
|
-
},
|
|
8836
|
-
const
|
|
8838
|
+
}, _3 = (e, t) => (n, r) => t(n, r, e);
|
|
8839
|
+
const Kt = "text/plain", e9 = "text/html", qi = "image/png", Ji = "image/jpeg", Qi = "image/bmp", Ki = "image/webp", m7 = "image/svg+xml", b7 = /* @__PURE__ */ new Set([
|
|
8837
8840
|
Qi,
|
|
8838
8841
|
Ji,
|
|
8839
8842
|
Ki,
|
|
@@ -8841,7 +8844,7 @@ const e9 = "text/plain", t9 = "text/html", qi = "image/png", Ji = "image/jpeg",
|
|
|
8841
8844
|
]), dr = h1(
|
|
8842
8845
|
"univer.clipboard-interface-service"
|
|
8843
8846
|
);
|
|
8844
|
-
let
|
|
8847
|
+
let je = class extends d1 {
|
|
8845
8848
|
constructor(e, t, n) {
|
|
8846
8849
|
super(), this._localeService = e, this._logService = t, this._notificationService = n;
|
|
8847
8850
|
}
|
|
@@ -8854,8 +8857,8 @@ let Ue = class extends d1 {
|
|
|
8854
8857
|
try {
|
|
8855
8858
|
return await navigator.clipboard.write([
|
|
8856
8859
|
new ClipboardItem({
|
|
8857
|
-
[
|
|
8858
|
-
[
|
|
8860
|
+
[Kt]: new Blob([e], { type: Kt }),
|
|
8861
|
+
[e9]: new Blob([t], { type: e9 })
|
|
8859
8862
|
})
|
|
8860
8863
|
]);
|
|
8861
8864
|
} catch (n) {
|
|
@@ -8893,7 +8896,7 @@ let Ue = class extends d1 {
|
|
|
8893
8896
|
const t = document.activeElement, n = to();
|
|
8894
8897
|
document.body.appendChild(n), n.innerHTML = e;
|
|
8895
8898
|
try {
|
|
8896
|
-
|
|
8899
|
+
t9(n), document.execCommand("copy");
|
|
8897
8900
|
} finally {
|
|
8898
8901
|
t instanceof HTMLElement && t.focus(), document.body.removeChild(n);
|
|
8899
8902
|
}
|
|
@@ -8902,7 +8905,7 @@ let Ue = class extends d1 {
|
|
|
8902
8905
|
const t = document.activeElement, n = eo();
|
|
8903
8906
|
document.body.appendChild(n), n.value = e;
|
|
8904
8907
|
try {
|
|
8905
|
-
|
|
8908
|
+
t9(n), document.execCommand("copy");
|
|
8906
8909
|
} finally {
|
|
8907
8910
|
t instanceof HTMLElement && t.focus(), document.body.removeChild(n);
|
|
8908
8911
|
}
|
|
@@ -8916,11 +8919,11 @@ let Ue = class extends d1 {
|
|
|
8916
8919
|
});
|
|
8917
8920
|
}
|
|
8918
8921
|
};
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
],
|
|
8922
|
+
je = Xi([
|
|
8923
|
+
_3(0, g1(m1)),
|
|
8924
|
+
_3(1, H2),
|
|
8925
|
+
_3(2, C9(o3))
|
|
8926
|
+
], je);
|
|
8924
8927
|
function eo() {
|
|
8925
8928
|
const e = document.createElement("textarea");
|
|
8926
8929
|
return e.style.position = "absolute", e.style.height = "1px", e.style.width = "1px", e.style.opacity = "0", e.readOnly = !0, e;
|
|
@@ -8929,7 +8932,7 @@ function to() {
|
|
|
8929
8932
|
const e = document.createElement("div");
|
|
8930
8933
|
return e.contentEditable = "true", e.style.position = "absolute", e.style.opacity = "0", e.style.height = "1px", e.style.width = "1px", e;
|
|
8931
8934
|
}
|
|
8932
|
-
function
|
|
8935
|
+
function t9(e) {
|
|
8933
8936
|
if (e instanceof HTMLTextAreaElement) {
|
|
8934
8937
|
const r = e.hasAttribute("readonly");
|
|
8935
8938
|
return r || e.setAttribute("readonly", ""), e.select(), e.setSelectionRange(0, e.value.length), r || e.removeAttribute("readonly"), e.value;
|
|
@@ -8975,7 +8978,7 @@ const no = (e) => {
|
|
|
8975
8978
|
);
|
|
8976
8979
|
};
|
|
8977
8980
|
function ro() {
|
|
8978
|
-
const e = P(
|
|
8981
|
+
const e = P(W3), [t, n] = z([]);
|
|
8979
8982
|
W(() => {
|
|
8980
8983
|
const i = e.confirmOptions$.subscribe((o) => {
|
|
8981
8984
|
n(o);
|
|
@@ -8998,8 +9001,8 @@ var io = Object.getOwnPropertyDescriptor, oo = (e, t, n, r) => {
|
|
|
8998
9001
|
for (var i = r > 1 ? void 0 : r ? io(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
8999
9002
|
(s = e[o]) && (i = s(i) || i);
|
|
9000
9003
|
return i;
|
|
9001
|
-
},
|
|
9002
|
-
let
|
|
9004
|
+
}, n9 = (e, t) => (n, r) => t(n, r, e);
|
|
9005
|
+
let Ue = class extends d1 {
|
|
9003
9006
|
constructor(t, n) {
|
|
9004
9007
|
super();
|
|
9005
9008
|
B(this, "_confirmOptions", []);
|
|
@@ -9042,13 +9045,13 @@ let ze = class extends d1 {
|
|
|
9042
9045
|
);
|
|
9043
9046
|
}
|
|
9044
9047
|
};
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
],
|
|
9049
|
-
const
|
|
9048
|
+
Ue = oo([
|
|
9049
|
+
n9(0, g1(I1)),
|
|
9050
|
+
n9(1, V1)
|
|
9051
|
+
], Ue);
|
|
9052
|
+
const ct = h1("univer.ui.dialog-service");
|
|
9050
9053
|
function so() {
|
|
9051
|
-
const e = P(
|
|
9054
|
+
const e = P(ct), [t, n] = z([]);
|
|
9052
9055
|
W(() => {
|
|
9053
9056
|
const o = e.getDialogs$().subscribe((s) => {
|
|
9054
9057
|
n(s);
|
|
@@ -9069,8 +9072,8 @@ var lo = Object.getOwnPropertyDescriptor, ao = (e, t, n, r) => {
|
|
|
9069
9072
|
for (var i = r > 1 ? void 0 : r ? lo(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
9070
9073
|
(s = e[o]) && (i = s(i) || i);
|
|
9071
9074
|
return i;
|
|
9072
|
-
},
|
|
9073
|
-
let
|
|
9075
|
+
}, r9 = (e, t) => (n, r) => t(n, r, e);
|
|
9076
|
+
let ze = class extends d1 {
|
|
9074
9077
|
constructor(t, n) {
|
|
9075
9078
|
super();
|
|
9076
9079
|
B(this, "_dialogOptions", []);
|
|
@@ -9113,21 +9116,21 @@ let We = class extends d1 {
|
|
|
9113
9116
|
);
|
|
9114
9117
|
}
|
|
9115
9118
|
};
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
],
|
|
9120
|
-
const
|
|
9119
|
+
ze = ao([
|
|
9120
|
+
r9(0, g1(I1)),
|
|
9121
|
+
r9(1, V1)
|
|
9122
|
+
], ze);
|
|
9123
|
+
const ut = h1("univer.ui.gallery-service");
|
|
9121
9124
|
function co() {
|
|
9122
|
-
const e = P(
|
|
9125
|
+
const e = P(ut), t = r1(e.gallery$);
|
|
9123
9126
|
return t ? /* @__PURE__ */ f(t4, { ...t }) : null;
|
|
9124
9127
|
}
|
|
9125
9128
|
var uo = Object.getOwnPropertyDescriptor, ho = (e, t, n, r) => {
|
|
9126
9129
|
for (var i = r > 1 ? void 0 : r ? uo(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
9127
9130
|
(s = e[o]) && (i = s(i) || i);
|
|
9128
9131
|
return i;
|
|
9129
|
-
},
|
|
9130
|
-
let
|
|
9132
|
+
}, i9 = (e, t) => (n, r) => t(n, r, e);
|
|
9133
|
+
let We = class extends d1 {
|
|
9131
9134
|
constructor(t, n) {
|
|
9132
9135
|
super();
|
|
9133
9136
|
B(this, "gallery$", new $1());
|
|
@@ -9156,16 +9159,16 @@ let Ye = class extends d1 {
|
|
|
9156
9159
|
);
|
|
9157
9160
|
}
|
|
9158
9161
|
};
|
|
9159
|
-
|
|
9160
|
-
|
|
9161
|
-
|
|
9162
|
-
],
|
|
9162
|
+
We = ho([
|
|
9163
|
+
i9(0, g1(I1)),
|
|
9164
|
+
i9(1, V1)
|
|
9165
|
+
], We);
|
|
9163
9166
|
var fo = Object.getOwnPropertyDescriptor, Co = (e, t, n, r) => {
|
|
9164
9167
|
for (var i = r > 1 ? void 0 : r ? fo(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
9165
9168
|
(s = e[o]) && (i = s(i) || i);
|
|
9166
9169
|
return i;
|
|
9167
9170
|
}, vo = (e, t) => (n, r) => t(n, r, e);
|
|
9168
|
-
let
|
|
9171
|
+
let Ye = class {
|
|
9169
9172
|
constructor(e) {
|
|
9170
9173
|
B(this, "visible$", new $1());
|
|
9171
9174
|
B(this, "componentKey$", new $1());
|
|
@@ -9187,9 +9190,9 @@ let Ge = class {
|
|
|
9187
9190
|
this.visible$.next(!1);
|
|
9188
9191
|
}
|
|
9189
9192
|
};
|
|
9190
|
-
|
|
9193
|
+
Ye = Co([
|
|
9191
9194
|
vo(0, g1(M1))
|
|
9192
|
-
],
|
|
9195
|
+
], Ye);
|
|
9193
9196
|
class hr extends d1 {
|
|
9194
9197
|
openFile(t) {
|
|
9195
9198
|
return new Promise((n) => {
|
|
@@ -9214,10 +9217,10 @@ function go(e) {
|
|
|
9214
9217
|
function Se(e) {
|
|
9215
9218
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
9216
9219
|
}
|
|
9217
|
-
var
|
|
9218
|
-
var
|
|
9220
|
+
var M3 = { exports: {} };
|
|
9221
|
+
var o9;
|
|
9219
9222
|
function po() {
|
|
9220
|
-
return
|
|
9223
|
+
return o9 || (o9 = 1, (function(e, t) {
|
|
9221
9224
|
(function(n) {
|
|
9222
9225
|
e.exports = n();
|
|
9223
9226
|
})(function() {
|
|
@@ -10002,8 +10005,8 @@ function po() {
|
|
|
10002
10005
|
function Hr() {
|
|
10003
10006
|
return typeof openDatabase == "function";
|
|
10004
10007
|
}
|
|
10005
|
-
var Z1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Sr = "~~local_forage_type~",
|
|
10006
|
-
function
|
|
10008
|
+
var Z1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Sr = "~~local_forage_type~", ht = /^~~local_forage_type~([^~]+)~/, me = "__lfsc__:", s3 = me.length, l3 = "arbf", a3 = "blob", ft = "si08", Ct = "ui08", vt = "uic8", gt = "si16", pt = "si32", mt = "ur16", bt = "ui32", Lt = "fl32", wt = "fl64", yt = s3 + l3.length, _t = Object.prototype.toString;
|
|
10009
|
+
function Mt(l) {
|
|
10007
10010
|
var h = l.length * 0.75, u = l.length, m, b = 0, g, V, $, T;
|
|
10008
10011
|
l[l.length - 1] === "=" && (h--, l[l.length - 2] === "=" && h--);
|
|
10009
10012
|
var Z = new ArrayBuffer(h), A = new Uint8Array(Z);
|
|
@@ -10011,7 +10014,7 @@ function po() {
|
|
|
10011
10014
|
g = Z1.indexOf(l[m]), V = Z1.indexOf(l[m + 1]), $ = Z1.indexOf(l[m + 2]), T = Z1.indexOf(l[m + 3]), A[b++] = g << 2 | V >> 4, A[b++] = (V & 15) << 4 | $ >> 2, A[b++] = ($ & 3) << 6 | T & 63;
|
|
10012
10015
|
return Z;
|
|
10013
10016
|
}
|
|
10014
|
-
function
|
|
10017
|
+
function c3(l) {
|
|
10015
10018
|
var h = new Uint8Array(l), u = "", m;
|
|
10016
10019
|
for (m = 0; m < h.length; m += 3)
|
|
10017
10020
|
u += Z1[h[m] >> 2], u += Z1[(h[m] & 3) << 4 | h[m + 1] >> 4], u += Z1[(h[m + 1] & 15) << 2 | h[m + 2] >> 6], u += Z1[h[m + 2] & 63];
|
|
@@ -10019,14 +10022,14 @@ function po() {
|
|
|
10019
10022
|
}
|
|
10020
10023
|
function Rr(l, h) {
|
|
10021
10024
|
var u = "";
|
|
10022
|
-
if (l && (u =
|
|
10025
|
+
if (l && (u = _t.call(l)), l && (u === "[object ArrayBuffer]" || l.buffer && _t.call(l.buffer) === "[object ArrayBuffer]")) {
|
|
10023
10026
|
var m, b = me;
|
|
10024
|
-
l instanceof ArrayBuffer ? (m = l, b +=
|
|
10027
|
+
l instanceof ArrayBuffer ? (m = l, b += l3) : (m = l.buffer, u === "[object Int8Array]" ? b += ft : u === "[object Uint8Array]" ? b += Ct : u === "[object Uint8ClampedArray]" ? b += vt : u === "[object Int16Array]" ? b += gt : u === "[object Uint16Array]" ? b += mt : u === "[object Int32Array]" ? b += pt : u === "[object Uint32Array]" ? b += bt : u === "[object Float32Array]" ? b += Lt : u === "[object Float64Array]" ? b += wt : h(new Error("Failed to get type for BinaryArray"))), h(b + c3(m));
|
|
10025
10028
|
} else if (u === "[object Blob]") {
|
|
10026
10029
|
var g = new FileReader();
|
|
10027
10030
|
g.onload = function() {
|
|
10028
|
-
var V = Sr + l.type + "~" +
|
|
10029
|
-
h(me +
|
|
10031
|
+
var V = Sr + l.type + "~" + c3(this.result);
|
|
10032
|
+
h(me + a3 + V);
|
|
10030
10033
|
}, g.readAsArrayBuffer(l);
|
|
10031
10034
|
} else
|
|
10032
10035
|
try {
|
|
@@ -10036,48 +10039,48 @@ function po() {
|
|
|
10036
10039
|
}
|
|
10037
10040
|
}
|
|
10038
10041
|
function Vr(l) {
|
|
10039
|
-
if (l.substring(0,
|
|
10042
|
+
if (l.substring(0, s3) !== me)
|
|
10040
10043
|
return JSON.parse(l);
|
|
10041
|
-
var h = l.substring(
|
|
10042
|
-
if (u ===
|
|
10043
|
-
var b = h.match(
|
|
10044
|
+
var h = l.substring(yt), u = l.substring(s3, yt), m;
|
|
10045
|
+
if (u === a3 && ht.test(h)) {
|
|
10046
|
+
var b = h.match(ht);
|
|
10044
10047
|
m = b[1], h = h.substring(b[0].length);
|
|
10045
10048
|
}
|
|
10046
|
-
var g =
|
|
10049
|
+
var g = Mt(h);
|
|
10047
10050
|
switch (u) {
|
|
10048
|
-
case
|
|
10051
|
+
case l3:
|
|
10049
10052
|
return g;
|
|
10050
|
-
case
|
|
10053
|
+
case a3:
|
|
10051
10054
|
return v([g], { type: m });
|
|
10052
|
-
case
|
|
10055
|
+
case ft:
|
|
10053
10056
|
return new Int8Array(g);
|
|
10054
|
-
case
|
|
10057
|
+
case Ct:
|
|
10055
10058
|
return new Uint8Array(g);
|
|
10056
|
-
case
|
|
10059
|
+
case vt:
|
|
10057
10060
|
return new Uint8ClampedArray(g);
|
|
10058
|
-
case
|
|
10061
|
+
case gt:
|
|
10059
10062
|
return new Int16Array(g);
|
|
10060
|
-
case bt:
|
|
10061
|
-
return new Uint16Array(g);
|
|
10062
10063
|
case mt:
|
|
10064
|
+
return new Uint16Array(g);
|
|
10065
|
+
case pt:
|
|
10063
10066
|
return new Int32Array(g);
|
|
10064
|
-
case
|
|
10067
|
+
case bt:
|
|
10065
10068
|
return new Uint32Array(g);
|
|
10066
|
-
case
|
|
10069
|
+
case Lt:
|
|
10067
10070
|
return new Float32Array(g);
|
|
10068
|
-
case
|
|
10071
|
+
case wt:
|
|
10069
10072
|
return new Float64Array(g);
|
|
10070
10073
|
default:
|
|
10071
10074
|
throw new Error("Unkown type: " + u);
|
|
10072
10075
|
}
|
|
10073
10076
|
}
|
|
10074
|
-
var
|
|
10077
|
+
var u3 = {
|
|
10075
10078
|
serialize: Rr,
|
|
10076
10079
|
deserialize: Vr,
|
|
10077
|
-
stringToBuffer:
|
|
10078
|
-
bufferToString:
|
|
10080
|
+
stringToBuffer: Mt,
|
|
10081
|
+
bufferToString: c3
|
|
10079
10082
|
};
|
|
10080
|
-
function
|
|
10083
|
+
function It(l, h, u, m) {
|
|
10081
10084
|
l.executeSql("CREATE TABLE IF NOT EXISTS " + h.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], u, m);
|
|
10082
10085
|
}
|
|
10083
10086
|
function Or(l) {
|
|
@@ -10094,19 +10097,19 @@ function po() {
|
|
|
10094
10097
|
return V($);
|
|
10095
10098
|
}
|
|
10096
10099
|
u.db.transaction(function($) {
|
|
10097
|
-
|
|
10100
|
+
It($, u, function() {
|
|
10098
10101
|
h._dbInfo = u, g();
|
|
10099
10102
|
}, function(T, Z) {
|
|
10100
10103
|
V(Z);
|
|
10101
10104
|
});
|
|
10102
10105
|
}, V);
|
|
10103
10106
|
});
|
|
10104
|
-
return u.serializer =
|
|
10107
|
+
return u.serializer = u3, b;
|
|
10105
10108
|
}
|
|
10106
10109
|
function A1(l, h, u, m, b, g) {
|
|
10107
10110
|
l.executeSql(u, m, b, function(V, $) {
|
|
10108
10111
|
$.code === $.SYNTAX_ERR ? V.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [h.storeName], function(T, Z) {
|
|
10109
|
-
Z.rows.length ? g(T, $) :
|
|
10112
|
+
Z.rows.length ? g(T, $) : It(T, h, function() {
|
|
10110
10113
|
T.executeSql(u, m, b, g);
|
|
10111
10114
|
}, g);
|
|
10112
10115
|
}, g) : g(V, $);
|
|
@@ -10152,7 +10155,7 @@ function po() {
|
|
|
10152
10155
|
});
|
|
10153
10156
|
return p(m, h), m;
|
|
10154
10157
|
}
|
|
10155
|
-
function
|
|
10158
|
+
function xt(l, h, u, m) {
|
|
10156
10159
|
var b = this;
|
|
10157
10160
|
l = M(l);
|
|
10158
10161
|
var g = new c(function(V, $) {
|
|
@@ -10169,7 +10172,7 @@ function po() {
|
|
|
10169
10172
|
}, function(Y) {
|
|
10170
10173
|
if (Y.code === Y.QUOTA_ERR) {
|
|
10171
10174
|
if (m > 0) {
|
|
10172
|
-
V(
|
|
10175
|
+
V(xt.apply(b, [l, T, u, m - 1]));
|
|
10173
10176
|
return;
|
|
10174
10177
|
}
|
|
10175
10178
|
$(Y);
|
|
@@ -10181,7 +10184,7 @@ function po() {
|
|
|
10181
10184
|
return p(g, u), g;
|
|
10182
10185
|
}
|
|
10183
10186
|
function Nr(l, h, u) {
|
|
10184
|
-
return
|
|
10187
|
+
return xt.apply(this, [l, h, u, 1]);
|
|
10185
10188
|
}
|
|
10186
10189
|
function Dr(l, h) {
|
|
10187
10190
|
var u = this;
|
|
@@ -10340,7 +10343,7 @@ function po() {
|
|
|
10340
10343
|
return !1;
|
|
10341
10344
|
}
|
|
10342
10345
|
}
|
|
10343
|
-
function
|
|
10346
|
+
function Ht(l, h) {
|
|
10344
10347
|
var u = l.name + "/";
|
|
10345
10348
|
return l.storeName !== h.storeName && (u += l.storeName + "/"), u;
|
|
10346
10349
|
}
|
|
@@ -10360,7 +10363,7 @@ function po() {
|
|
|
10360
10363
|
if (l)
|
|
10361
10364
|
for (var m in l)
|
|
10362
10365
|
u[m] = l[m];
|
|
10363
|
-
return u.keyPrefix =
|
|
10366
|
+
return u.keyPrefix = Ht(l, h._defaultConfig), zr() ? (h._dbInfo = u, u.serializer = u3, c.resolve()) : c.reject();
|
|
10364
10367
|
}
|
|
10365
10368
|
function Yr(l) {
|
|
10366
10369
|
var h = this, u = h.ready().then(function() {
|
|
@@ -10459,7 +10462,7 @@ function po() {
|
|
|
10459
10462
|
}
|
|
10460
10463
|
var m = this, b;
|
|
10461
10464
|
return l.name ? b = new c(function(g) {
|
|
10462
|
-
l.storeName ? g(
|
|
10465
|
+
l.storeName ? g(Ht(l, m._defaultConfig)) : g(l.name + "/");
|
|
10463
10466
|
}).then(function(g) {
|
|
10464
10467
|
for (var V = localStorage.length - 1; V >= 0; V--) {
|
|
10465
10468
|
var $ = localStorage.key(V);
|
|
@@ -10489,13 +10492,13 @@ function po() {
|
|
|
10489
10492
|
b++;
|
|
10490
10493
|
}
|
|
10491
10494
|
return !1;
|
|
10492
|
-
},
|
|
10495
|
+
}, St = Array.isArray || function(l) {
|
|
10493
10496
|
return Object.prototype.toString.call(l) === "[object Array]";
|
|
10494
|
-
}, oe = {},
|
|
10497
|
+
}, oe = {}, Rt = {}, q1 = {
|
|
10495
10498
|
INDEXEDDB: xr,
|
|
10496
10499
|
WEBSQL: kr,
|
|
10497
10500
|
LOCALSTORAGE: n2
|
|
10498
|
-
}, o2 = [q1.INDEXEDDB._driver, q1.WEBSQL._driver, q1.LOCALSTORAGE._driver], be = ["dropInstance"],
|
|
10501
|
+
}, o2 = [q1.INDEXEDDB._driver, q1.WEBSQL._driver, q1.LOCALSTORAGE._driver], be = ["dropInstance"], d3 = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(be), s2 = {
|
|
10499
10502
|
description: "",
|
|
10500
10503
|
driver: o2.slice(),
|
|
10501
10504
|
name: "localforage",
|
|
@@ -10513,12 +10516,12 @@ function po() {
|
|
|
10513
10516
|
});
|
|
10514
10517
|
};
|
|
10515
10518
|
}
|
|
10516
|
-
function
|
|
10519
|
+
function h3() {
|
|
10517
10520
|
for (var l = 1; l < arguments.length; l++) {
|
|
10518
10521
|
var h = arguments[l];
|
|
10519
10522
|
if (h)
|
|
10520
10523
|
for (var u in h)
|
|
10521
|
-
h.hasOwnProperty(u) && (
|
|
10524
|
+
h.hasOwnProperty(u) && (St(h[u]) ? arguments[0][u] = h[u].slice() : arguments[0][u] = h[u]);
|
|
10522
10525
|
}
|
|
10523
10526
|
return arguments[0];
|
|
10524
10527
|
}
|
|
@@ -10530,7 +10533,7 @@ function po() {
|
|
|
10530
10533
|
var m = q1[u], b = m._driver;
|
|
10531
10534
|
this[u] = b, oe[b] || this.defineDriver(m);
|
|
10532
10535
|
}
|
|
10533
|
-
this._defaultConfig =
|
|
10536
|
+
this._defaultConfig = h3({}, s2), this._config = h3({}, this._defaultConfig, h), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
|
|
10534
10537
|
});
|
|
10535
10538
|
}
|
|
10536
10539
|
return l.prototype.config = function(u) {
|
|
@@ -10552,7 +10555,7 @@ function po() {
|
|
|
10552
10555
|
$(Z);
|
|
10553
10556
|
return;
|
|
10554
10557
|
}
|
|
10555
|
-
for (var A =
|
|
10558
|
+
for (var A = d3.concat("_initStorage"), F = 0, Y = A.length; F < Y; F++) {
|
|
10556
10559
|
var e1 = A[F], t1 = !i2(be, e1);
|
|
10557
10560
|
if ((t1 || u[e1]) && typeof u[e1] != "function") {
|
|
10558
10561
|
$(Z);
|
|
@@ -10562,17 +10565,17 @@ function po() {
|
|
|
10562
10565
|
var C1 = function() {
|
|
10563
10566
|
for (var se = function(d2) {
|
|
10564
10567
|
return function() {
|
|
10565
|
-
var h2 = new Error("Method " + d2 + " is not implemented by the current driver"),
|
|
10566
|
-
return p(
|
|
10568
|
+
var h2 = new Error("Method " + d2 + " is not implemented by the current driver"), Vt = c.reject(h2);
|
|
10569
|
+
return p(Vt, arguments[arguments.length - 1]), Vt;
|
|
10567
10570
|
};
|
|
10568
|
-
},
|
|
10569
|
-
var
|
|
10570
|
-
u[
|
|
10571
|
+
}, f3 = 0, u2 = be.length; f3 < u2; f3++) {
|
|
10572
|
+
var C3 = be[f3];
|
|
10573
|
+
u[C3] || (u[C3] = se(C3));
|
|
10571
10574
|
}
|
|
10572
10575
|
};
|
|
10573
10576
|
C1();
|
|
10574
10577
|
var u1 = function(se) {
|
|
10575
|
-
oe[T] && console.info("Redefining LocalForage driver: " + T), oe[T] = u,
|
|
10578
|
+
oe[T] && console.info("Redefining LocalForage driver: " + T), oe[T] = u, Rt[T] = se, V();
|
|
10576
10579
|
};
|
|
10577
10580
|
"_support" in u ? u._support && typeof u._support == "function" ? u._support().then(u1, $) : u1(!!u._support) : u1(!0);
|
|
10578
10581
|
} catch (H1) {
|
|
@@ -10586,7 +10589,7 @@ function po() {
|
|
|
10586
10589
|
var g = oe[u] ? c.resolve(oe[u]) : c.reject(new Error("Driver not found."));
|
|
10587
10590
|
return L(g, m, b), g;
|
|
10588
10591
|
}, l.prototype.getSerializer = function(u) {
|
|
10589
|
-
var m = c.resolve(
|
|
10592
|
+
var m = c.resolve(u3);
|
|
10590
10593
|
return L(m, u), m;
|
|
10591
10594
|
}, l.prototype.ready = function(u) {
|
|
10592
10595
|
var m = this, b = m._driverSet.then(function() {
|
|
@@ -10595,7 +10598,7 @@ function po() {
|
|
|
10595
10598
|
return L(b, u, u), b;
|
|
10596
10599
|
}, l.prototype.setDriver = function(u, m, b) {
|
|
10597
10600
|
var g = this;
|
|
10598
|
-
|
|
10601
|
+
St(u) || (u = [u]);
|
|
10599
10602
|
var V = this._getSupportedDrivers(u);
|
|
10600
10603
|
function $() {
|
|
10601
10604
|
g._config.driver = g.driver();
|
|
@@ -10632,9 +10635,9 @@ function po() {
|
|
|
10632
10635
|
return g._driverSet = c.reject(F), g._driverSet;
|
|
10633
10636
|
}), L(this._driverSet, m, b), this._driverSet;
|
|
10634
10637
|
}, l.prototype.supports = function(u) {
|
|
10635
|
-
return !!
|
|
10638
|
+
return !!Rt[u];
|
|
10636
10639
|
}, l.prototype._extend = function(u) {
|
|
10637
|
-
|
|
10640
|
+
h3(this, u);
|
|
10638
10641
|
}, l.prototype._getSupportedDrivers = function(u) {
|
|
10639
10642
|
for (var m = [], b = 0, g = u.length; b < g; b++) {
|
|
10640
10643
|
var V = u[b];
|
|
@@ -10642,8 +10645,8 @@ function po() {
|
|
|
10642
10645
|
}
|
|
10643
10646
|
return m;
|
|
10644
10647
|
}, l.prototype._wrapLibraryMethodsWithReady = function() {
|
|
10645
|
-
for (var u = 0, m =
|
|
10646
|
-
l2(this,
|
|
10648
|
+
for (var u = 0, m = d3.length; u < m; u++)
|
|
10649
|
+
l2(this, d3[u]);
|
|
10647
10650
|
}, l.prototype.createInstance = function(u) {
|
|
10648
10651
|
return new l(u);
|
|
10649
10652
|
}, l;
|
|
@@ -10651,7 +10654,7 @@ function po() {
|
|
|
10651
10654
|
r.exports = c2;
|
|
10652
10655
|
}, { 3: 3 }] }, {}, [4])(4);
|
|
10653
10656
|
});
|
|
10654
|
-
})(
|
|
10657
|
+
})(M3)), M3.exports;
|
|
10655
10658
|
}
|
|
10656
10659
|
var mo = po();
|
|
10657
10660
|
const j1 = /* @__PURE__ */ go(mo);
|
|
@@ -10682,8 +10685,8 @@ var bo = Object.getOwnPropertyDescriptor, Lo = (e, t, n, r) => {
|
|
|
10682
10685
|
for (var i = r > 1 ? void 0 : r ? bo(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
10683
10686
|
(s = e[o]) && (i = s(i) || i);
|
|
10684
10687
|
return i;
|
|
10685
|
-
},
|
|
10686
|
-
let
|
|
10688
|
+
}, s9 = (e, t) => (n, r) => t(n, r, e);
|
|
10689
|
+
let Ge = class extends d1 {
|
|
10687
10690
|
constructor(e, t) {
|
|
10688
10691
|
super(), this._injector = e, this._uiPartsService = t, this._initUIPart();
|
|
10689
10692
|
}
|
|
@@ -10706,12 +10709,12 @@ let Xe = class extends d1 {
|
|
|
10706
10709
|
Le();
|
|
10707
10710
|
}
|
|
10708
10711
|
};
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
],
|
|
10712
|
+
Ge = Lo([
|
|
10713
|
+
s9(0, g1(I1)),
|
|
10714
|
+
s9(1, V1)
|
|
10715
|
+
], Ge);
|
|
10713
10716
|
function wo() {
|
|
10714
|
-
const e = P(
|
|
10717
|
+
const e = P(z3), t = r1(e.darkMode$);
|
|
10715
10718
|
return /* @__PURE__ */ f(o4, { theme: t ? "dark" : "light" });
|
|
10716
10719
|
}
|
|
10717
10720
|
const yo = {
|
|
@@ -10736,8 +10739,8 @@ var _o = Object.getOwnPropertyDescriptor, Mo = (e, t, n, r) => {
|
|
|
10736
10739
|
for (var i = r > 1 ? void 0 : r ? _o(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
10737
10740
|
(s = e[o]) && (i = s(i) || i);
|
|
10738
10741
|
return i;
|
|
10739
|
-
},
|
|
10740
|
-
let
|
|
10742
|
+
}, l9 = (e, t) => (n, r) => t(n, r, e);
|
|
10743
|
+
let Xe = class extends d1 {
|
|
10741
10744
|
constructor(e, t) {
|
|
10742
10745
|
super(), this._injector = e, this._uiPartsService = t, this._initUIPart();
|
|
10743
10746
|
}
|
|
@@ -10751,10 +10754,10 @@ let qe = class extends d1 {
|
|
|
10751
10754
|
);
|
|
10752
10755
|
}
|
|
10753
10756
|
};
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
],
|
|
10757
|
+
Xe = Mo([
|
|
10758
|
+
l9(0, g1(I1)),
|
|
10759
|
+
l9(1, V1)
|
|
10760
|
+
], Xe);
|
|
10758
10761
|
class vr {
|
|
10759
10762
|
constructor() {
|
|
10760
10763
|
B(this, "_sidebarOptions", {});
|
|
@@ -10795,7 +10798,7 @@ var Io = Object.getOwnPropertyDescriptor, xo = (e, t, n, r) => {
|
|
|
10795
10798
|
(s = e[o]) && (i = s(i) || i);
|
|
10796
10799
|
return i;
|
|
10797
10800
|
}, Ho = (e, t) => (n, r) => t(n, r, e);
|
|
10798
|
-
let
|
|
10801
|
+
let qe = class {
|
|
10799
10802
|
constructor(e) {
|
|
10800
10803
|
B(this, "visible$", new S1(!1));
|
|
10801
10804
|
B(this, "componentKey$", new D2());
|
|
@@ -10831,57 +10834,57 @@ let Je = class {
|
|
|
10831
10834
|
this._visible = !1, this.visible$.next(!1);
|
|
10832
10835
|
}
|
|
10833
10836
|
};
|
|
10834
|
-
|
|
10837
|
+
qe = xo([
|
|
10835
10838
|
Ho(0, g1(M1))
|
|
10836
|
-
],
|
|
10839
|
+
], qe);
|
|
10837
10840
|
var So = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, Vo = (e, t, n) => t in e ? So(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Oo = (e, t, n, r) => {
|
|
10838
10841
|
for (var i = r > 1 ? void 0 : r ? Ro(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
10839
10842
|
(s = e[o]) && (i = s(i) || i);
|
|
10840
10843
|
return i;
|
|
10841
|
-
},
|
|
10844
|
+
}, I3 = (e, t) => (n, r) => t(n, r, e), $o = (e, t, n) => Vo(e, t + "", n);
|
|
10842
10845
|
const Eo = "UNIVER_MOBILE_UI_PLUGIN", No = "DISABLE_AUTO_FOCUS";
|
|
10843
|
-
let
|
|
10844
|
-
constructor(e =
|
|
10846
|
+
let B3 = class extends p9 {
|
|
10847
|
+
constructor(e = Te, t, n, r) {
|
|
10845
10848
|
super(), this._config = e, this._contextService = t, this._injector = n, this._configService = r;
|
|
10846
|
-
const { menu: i, ...o } =
|
|
10849
|
+
const { menu: i, ...o } = $e(
|
|
10847
10850
|
{
|
|
10848
10851
|
popupRootId: `univer-popup-portal-${ue(6)}`
|
|
10849
10852
|
},
|
|
10850
|
-
|
|
10853
|
+
Te,
|
|
10851
10854
|
this._config
|
|
10852
10855
|
);
|
|
10853
10856
|
o.disableAutoFocus && this._contextService.setContextValue(No, !0), i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(ie, o);
|
|
10854
10857
|
}
|
|
10855
10858
|
onStarting() {
|
|
10856
|
-
|
|
10859
|
+
m9(this._injector, b9([
|
|
10857
10860
|
[M1],
|
|
10858
|
-
[
|
|
10859
|
-
[
|
|
10860
|
-
[
|
|
10861
|
+
[r3],
|
|
10862
|
+
[De],
|
|
10863
|
+
[G3],
|
|
10861
10864
|
[V1, { useClass: Jn }],
|
|
10862
|
-
[k1, { useClass:
|
|
10863
|
-
[ge, { useClass:
|
|
10864
|
-
[
|
|
10865
|
-
[D1, { useClass:
|
|
10866
|
-
[
|
|
10867
|
-
[dr, { useClass:
|
|
10868
|
-
[
|
|
10869
|
-
[dt, { useClass: Ye, lazy: !0 }],
|
|
10865
|
+
[k1, { useClass: Ze }],
|
|
10866
|
+
[ge, { useClass: Pe }],
|
|
10867
|
+
[nt, { useClass: Gn }],
|
|
10868
|
+
[D1, { useClass: Be }],
|
|
10869
|
+
[i3, { useClass: or }],
|
|
10870
|
+
[dr, { useClass: je, lazy: !0 }],
|
|
10871
|
+
[o3, { useClass: Xe, lazy: !0 }],
|
|
10870
10872
|
[ut, { useClass: We, lazy: !0 }],
|
|
10871
|
-
[
|
|
10873
|
+
[ct, { useClass: ze, lazy: !0 }],
|
|
10874
|
+
[W3, { useClass: Ue, lazy: !0 }],
|
|
10872
10875
|
[ve, { useClass: vr, lazy: !0 }],
|
|
10873
|
-
[
|
|
10874
|
-
[
|
|
10875
|
-
[
|
|
10876
|
-
[
|
|
10877
|
-
[ur, { useClass:
|
|
10876
|
+
[at, { useClass: qe, lazy: !0 }],
|
|
10877
|
+
[lt, { useClass: Ye, lazy: !0 }],
|
|
10878
|
+
[tt, { useClass: Ge, lazy: !0 }],
|
|
10879
|
+
[L9, { useClass: Cr, lazy: !0 }],
|
|
10880
|
+
[ur, { useClass: ke }],
|
|
10878
10881
|
[fr, { useClass: hr }],
|
|
10879
|
-
[
|
|
10880
|
-
[
|
|
10882
|
+
[it, { useClass: Kn }],
|
|
10883
|
+
[rt],
|
|
10881
10884
|
[
|
|
10882
|
-
|
|
10885
|
+
Fe,
|
|
10883
10886
|
{
|
|
10884
|
-
useFactory: (e) => e.createInstance(
|
|
10887
|
+
useFactory: (e) => e.createInstance(A3, this._config),
|
|
10885
10888
|
deps: [I1]
|
|
10886
10889
|
}
|
|
10887
10890
|
],
|
|
@@ -10889,7 +10892,7 @@ let P3 = class extends m9 {
|
|
|
10889
10892
|
[te],
|
|
10890
10893
|
[re]
|
|
10891
10894
|
], this._config.override)), K1(this._injector, [
|
|
10892
|
-
[
|
|
10895
|
+
[Fe],
|
|
10893
10896
|
[te]
|
|
10894
10897
|
]);
|
|
10895
10898
|
}
|
|
@@ -10904,68 +10907,68 @@ let P3 = class extends m9 {
|
|
|
10904
10907
|
]);
|
|
10905
10908
|
}
|
|
10906
10909
|
};
|
|
10907
|
-
$o(
|
|
10908
|
-
|
|
10909
|
-
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
10913
|
-
],
|
|
10910
|
+
$o(B3, "pluginName", Eo);
|
|
10911
|
+
B3 = Oo([
|
|
10912
|
+
g9($9),
|
|
10913
|
+
I3(1, fe),
|
|
10914
|
+
I3(2, g1(I1)),
|
|
10915
|
+
I3(3, Y1)
|
|
10916
|
+
], B3);
|
|
10914
10917
|
var Do = Object.defineProperty, To = Object.getOwnPropertyDescriptor, Zo = (e, t, n) => t in e ? Do(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ao = (e, t, n, r) => {
|
|
10915
10918
|
for (var i = r > 1 ? void 0 : r ? To(t, n) : t, o = e.length - 1, s; o >= 0; o--)
|
|
10916
10919
|
(s = e[o]) && (i = s(i) || i);
|
|
10917
10920
|
return i;
|
|
10918
|
-
},
|
|
10921
|
+
}, x3 = (e, t) => (n, r) => t(n, r, e), Bo = (e, t, n) => Zo(e, t + "", n);
|
|
10919
10922
|
const Po = "UNIVER_UI_PLUGIN", Fo = "DISABLE_AUTO_FOCUS";
|
|
10920
|
-
let
|
|
10921
|
-
constructor(e =
|
|
10923
|
+
let P3 = class extends p9 {
|
|
10924
|
+
constructor(e = Te, t, n, r) {
|
|
10922
10925
|
super(), this._config = e, this._contextService = t, this._injector = n, this._configService = r;
|
|
10923
|
-
const { menu: i, ...o } =
|
|
10926
|
+
const { menu: i, ...o } = $e(
|
|
10924
10927
|
{
|
|
10925
10928
|
popupRootId: `univer-popup-portal-${ue(6)}`
|
|
10926
10929
|
},
|
|
10927
|
-
|
|
10930
|
+
Te,
|
|
10928
10931
|
this._config
|
|
10929
10932
|
);
|
|
10930
10933
|
o.disableAutoFocus && this._contextService.setContextValue(Fo, !0), i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(ie, o);
|
|
10931
10934
|
}
|
|
10932
10935
|
onStarting() {
|
|
10933
|
-
|
|
10936
|
+
m9(this._injector, b9([
|
|
10934
10937
|
[M1],
|
|
10935
|
-
[
|
|
10936
|
-
[
|
|
10937
|
-
[
|
|
10938
|
+
[r3],
|
|
10939
|
+
[De],
|
|
10940
|
+
[G3],
|
|
10938
10941
|
[V1, { useClass: Jn }],
|
|
10939
|
-
[k1, { useClass:
|
|
10940
|
-
[rr, { useClass:
|
|
10941
|
-
[ge, { useClass:
|
|
10942
|
-
[
|
|
10943
|
-
[D1, { useClass:
|
|
10944
|
-
[
|
|
10945
|
-
[dr, { useClass:
|
|
10946
|
-
[
|
|
10947
|
-
[dt, { useClass: Ye, lazy: !0 }],
|
|
10942
|
+
[k1, { useClass: Ze }],
|
|
10943
|
+
[rr, { useClass: T3 }],
|
|
10944
|
+
[ge, { useClass: Pe }],
|
|
10945
|
+
[nt, { useClass: Gn }],
|
|
10946
|
+
[D1, { useClass: Be }],
|
|
10947
|
+
[i3, { useClass: or }],
|
|
10948
|
+
[dr, { useClass: je, lazy: !0 }],
|
|
10949
|
+
[o3, { useClass: Xe, lazy: !0 }],
|
|
10948
10950
|
[ut, { useClass: We, lazy: !0 }],
|
|
10949
|
-
[
|
|
10951
|
+
[ct, { useClass: ze, lazy: !0 }],
|
|
10952
|
+
[W3, { useClass: Ue, lazy: !0 }],
|
|
10950
10953
|
[ve, { useClass: vr, lazy: !0 }],
|
|
10951
|
-
[
|
|
10952
|
-
[
|
|
10953
|
-
[
|
|
10954
|
-
[
|
|
10955
|
-
[ur, { useClass:
|
|
10954
|
+
[at, { useClass: qe, lazy: !0 }],
|
|
10955
|
+
[lt, { useClass: Ye, lazy: !0 }],
|
|
10956
|
+
[tt, { useClass: Ge, lazy: !0 }],
|
|
10957
|
+
[L9, { useClass: Cr, lazy: !0 }],
|
|
10958
|
+
[ur, { useClass: ke }],
|
|
10956
10959
|
[fr, { useClass: hr }],
|
|
10957
|
-
[
|
|
10958
|
-
[
|
|
10959
|
-
[
|
|
10960
|
-
[
|
|
10961
|
-
useFactory: (e) => e.createInstance(
|
|
10960
|
+
[it, { useClass: Kn }],
|
|
10961
|
+
[et, { useClass: N3 }],
|
|
10962
|
+
[rt],
|
|
10963
|
+
[Fe, {
|
|
10964
|
+
useFactory: (e) => e.createInstance(Z3, this._config),
|
|
10962
10965
|
deps: [I1]
|
|
10963
10966
|
}],
|
|
10964
10967
|
[ne],
|
|
10965
10968
|
[te],
|
|
10966
10969
|
[re]
|
|
10967
10970
|
], this._config.override)), K1(this._injector, [
|
|
10968
|
-
[
|
|
10971
|
+
[Fe],
|
|
10969
10972
|
[te]
|
|
10970
10973
|
]);
|
|
10971
10974
|
}
|
|
@@ -10980,13 +10983,13 @@ let F3 = class extends m9 {
|
|
|
10980
10983
|
]);
|
|
10981
10984
|
}
|
|
10982
10985
|
};
|
|
10983
|
-
Bo(
|
|
10984
|
-
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
|
|
10988
|
-
|
|
10989
|
-
],
|
|
10986
|
+
Bo(P3, "pluginName", Po);
|
|
10987
|
+
P3 = Ao([
|
|
10988
|
+
g9($9),
|
|
10989
|
+
x3(1, fe),
|
|
10990
|
+
x3(2, g1(I1)),
|
|
10991
|
+
x3(3, Y1)
|
|
10992
|
+
], P3);
|
|
10990
10993
|
class L7 {
|
|
10991
10994
|
show(t) {
|
|
10992
10995
|
return c1(() => {
|
|
@@ -11010,10 +11013,10 @@ const w7 = (e) => {
|
|
|
11010
11013
|
};
|
|
11011
11014
|
}, [e, n]);
|
|
11012
11015
|
};
|
|
11013
|
-
function
|
|
11016
|
+
function H3(e) {
|
|
11014
11017
|
return e.length === 0 ? e : e.replace(/^\s+|\s+$/gm, "");
|
|
11015
11018
|
}
|
|
11016
|
-
const ko = 0.75,
|
|
11019
|
+
const ko = 0.75, a9 = 78, c9 = 9;
|
|
11017
11020
|
function gr(e) {
|
|
11018
11021
|
var a;
|
|
11019
11022
|
let t = e.childNodes;
|
|
@@ -11028,7 +11031,7 @@ function gr(e) {
|
|
|
11028
11031
|
for (let d = 0; d < t.length; d++) {
|
|
11029
11032
|
let C = t[`${d}`], v;
|
|
11030
11033
|
C.nodeName === "#text" ? (v = (a = C.textContent) != null ? a : "", C = C.parentElement) : v = C.innerText;
|
|
11031
|
-
const c =
|
|
11034
|
+
const c = dt(C);
|
|
11032
11035
|
jo(v).forEach((L) => {
|
|
11033
11036
|
const M = L.length;
|
|
11034
11037
|
i += M, r = i - M;
|
|
@@ -11050,7 +11053,7 @@ function gr(e) {
|
|
|
11050
11053
|
documentStyle: {}
|
|
11051
11054
|
};
|
|
11052
11055
|
}
|
|
11053
|
-
function
|
|
11056
|
+
function dt(e, t = "") {
|
|
11054
11057
|
var s, a;
|
|
11055
11058
|
let n = (a = (s = e == null ? void 0 : e.style) == null ? void 0 : s.cssText) != null ? a : "";
|
|
11056
11059
|
if (n += t, n = n.replace(/[\r\n]+/g, ""), n.length === 0)
|
|
@@ -11063,24 +11066,24 @@ function ht(e, t = "") {
|
|
|
11063
11066
|
};
|
|
11064
11067
|
return r.forEach((d) => {
|
|
11065
11068
|
var p;
|
|
11066
|
-
const C = d.toLowerCase(), v =
|
|
11069
|
+
const C = d.toLowerCase(), v = H3(C.substr(0, C.indexOf(":"))), c = H3(C.substr(C.indexOf(":") + 1));
|
|
11067
11070
|
if (v === "font-weight")
|
|
11068
11071
|
c === "bold" || c === "700" ? i.bl = 1 : i.bl = 0;
|
|
11069
11072
|
else if (v === "font-style")
|
|
11070
11073
|
c === "italic" ? i.it = 1 : i.it = 0;
|
|
11071
11074
|
else if (v === "font-family") {
|
|
11072
|
-
const L =
|
|
11075
|
+
const L = H3(d), M = Wo(L);
|
|
11073
11076
|
i.ff = M;
|
|
11074
11077
|
} else if (v === "font-size") {
|
|
11075
11078
|
let L = Number.parseInt(c);
|
|
11076
11079
|
n.indexOf("vertical-align") > -1 && (n.indexOf("sub") > -1 || n.indexOf("sup") > -1) && (L *= 2), c.indexOf("px") !== -1 && (L = zo(Number.parseInt(c, 10))), i.fs = L;
|
|
11077
11080
|
} else if (v === "color") {
|
|
11078
|
-
const L = new
|
|
11081
|
+
const L = new S3(c);
|
|
11079
11082
|
i.cl = {
|
|
11080
11083
|
rgb: L.isValid ? L.toRgbString() : "rgb(0,0,0)"
|
|
11081
11084
|
};
|
|
11082
11085
|
} else if (v === "background" || v === "background-color") {
|
|
11083
|
-
const L = new
|
|
11086
|
+
const L = new S3(c);
|
|
11084
11087
|
L.isValid && (i.bg = {
|
|
11085
11088
|
rgb: L.toRgbString()
|
|
11086
11089
|
});
|
|
@@ -11102,7 +11105,7 @@ function ht(e, t = "") {
|
|
|
11102
11105
|
}
|
|
11103
11106
|
if (v === "univer-underline" && (i.ul = {
|
|
11104
11107
|
s: 1
|
|
11105
|
-
}), v === "vertical-align" && (c === "sub" ? i.va =
|
|
11108
|
+
}), v === "vertical-align" && (c === "sub" ? i.va = m3.SUBSCRIPT : c === "super" ? i.va = m3.SUPERSCRIPT : c === "top" ? i.vt = 1 : c === "middle" ? i.vt = 2 : c === "bottom" ? i.vt = 3 : i.va = m3.NORMAL), v === "transform") {
|
|
11106
11109
|
const L = c.split(")"), M = L.findIndex((O) => O.includes("rotate"));
|
|
11107
11110
|
if (M > -1) {
|
|
11108
11111
|
const O = L[M].match(/\d+/g);
|
|
@@ -11114,7 +11117,7 @@ function ht(e, t = "") {
|
|
|
11114
11117
|
}
|
|
11115
11118
|
}
|
|
11116
11119
|
if (v === "text-align" && (c === "left" ? i.ht = 1 : c === "center" ? i.ht = 2 : c === "right" ? i.ht = 3 : c === "justify" ? i.ht = 4 : i.ht = 0), i.tb !== 1 && (v === "overflow-wrap" || v === "word-wrap" ? c === "break-word" && (i.tb = 3) : v === "text-overflow" ? c === "clip" && (i.tb = 2) : v === "text-break" && c === "overflow" && (i.tb = 1)), v === "white-space" && (c === "nowrap" ? i.tb = 1 : c === "normal" ? i.tb = 3 : c === "clip" && (i.tb = 2)), v === "border-color") {
|
|
11117
|
-
const L =
|
|
11120
|
+
const L = u9(c, ")");
|
|
11118
11121
|
if (i.bd)
|
|
11119
11122
|
for (const M in L)
|
|
11120
11123
|
i.bd[M].cl.rgb = L[M];
|
|
@@ -11150,7 +11153,7 @@ function ht(e, t = "") {
|
|
|
11150
11153
|
}
|
|
11151
11154
|
}
|
|
11152
11155
|
if (v === "border-width" || v === "border-style") {
|
|
11153
|
-
const L =
|
|
11156
|
+
const L = u9(c, " ");
|
|
11154
11157
|
for (const M in L)
|
|
11155
11158
|
o[M] += ` ${L[M]}`;
|
|
11156
11159
|
i.bd ? (i.bd.b.s = O1(o.b), i.bd.t.s = O1(o.t), i.bd.l.s = O1(o.l), i.bd.r.s = O1(o.r)) : i.bd = {
|
|
@@ -11207,7 +11210,7 @@ function ht(e, t = "") {
|
|
|
11207
11210
|
typeof i[d] == "object" && !Object.keys(i[d]).length && delete i[d];
|
|
11208
11211
|
}), i;
|
|
11209
11212
|
}
|
|
11210
|
-
function
|
|
11213
|
+
function u9(e, t) {
|
|
11211
11214
|
let n;
|
|
11212
11215
|
t === " " ? n = e.trim().split(t) : n = e.trim().split(t).slice(0, -1), n.forEach((i) => `${i.trim()})`);
|
|
11213
11216
|
let r = {};
|
|
@@ -11248,17 +11251,17 @@ function y7(e) {
|
|
|
11248
11251
|
const o = r[i], s = o.getAttribute("span");
|
|
11249
11252
|
if (s && +s > 1)
|
|
11250
11253
|
for (let a = 0; a < +s; a++) {
|
|
11251
|
-
const d =
|
|
11254
|
+
const d = Je(o.getAttribute("width"), 72);
|
|
11252
11255
|
n.push(d);
|
|
11253
11256
|
}
|
|
11254
11257
|
else {
|
|
11255
|
-
const a =
|
|
11258
|
+
const a = Je(o.getAttribute("width"), 72);
|
|
11256
11259
|
n.push(a);
|
|
11257
11260
|
}
|
|
11258
11261
|
}
|
|
11259
11262
|
return n;
|
|
11260
11263
|
}
|
|
11261
|
-
function
|
|
11264
|
+
function Je(e, t) {
|
|
11262
11265
|
if (!e) return t;
|
|
11263
11266
|
let n;
|
|
11264
11267
|
return e.includes("pt") ? n = s4(Number.parseFloat(e)) : e.includes("px") ? n = Number.parseFloat(e) : n = Number.parseFloat(e) * 72 / 96, n;
|
|
@@ -11270,11 +11273,11 @@ function _7(e) {
|
|
|
11270
11273
|
if (!r.length) return [];
|
|
11271
11274
|
for (let i = 0; i < r.length; i++) {
|
|
11272
11275
|
const s = r[i].querySelectorAll("td");
|
|
11273
|
-
let a =
|
|
11276
|
+
let a = Je(s[0].style.height, 19);
|
|
11274
11277
|
for (let d = 0; d < s.length; d++) {
|
|
11275
11278
|
const C = s[d].getAttribute("rowSpan");
|
|
11276
11279
|
if (!(C && +C > 1)) {
|
|
11277
|
-
a =
|
|
11280
|
+
a = Je(s[d].style.height, 19);
|
|
11278
11281
|
break;
|
|
11279
11282
|
}
|
|
11280
11283
|
}
|
|
@@ -11307,8 +11310,8 @@ function M7(e) {
|
|
|
11307
11310
|
}
|
|
11308
11311
|
const c = C.innerText;
|
|
11309
11312
|
c.trim().length === 0 ? v.v = "" : v.v = c;
|
|
11310
|
-
const p =
|
|
11311
|
-
for (
|
|
11313
|
+
const p = dt(C);
|
|
11314
|
+
for (w9.isPlainObject(p) && (v.s = p); d < r && t[s][d] != null; )
|
|
11312
11315
|
d++;
|
|
11313
11316
|
if (d !== r) {
|
|
11314
11317
|
if (t[s][d] == null) {
|
|
@@ -11393,8 +11396,8 @@ function H7(e) {
|
|
|
11393
11396
|
let O = "";
|
|
11394
11397
|
for (const S in i)
|
|
11395
11398
|
p.classList.contains(S) && (O += i[S]);
|
|
11396
|
-
const _ =
|
|
11397
|
-
for (
|
|
11399
|
+
const _ = dt(p, O);
|
|
11400
|
+
for (w9.isPlainObject(_) && (L.s = _); c < o && t[d][c] != null; )
|
|
11398
11401
|
c++;
|
|
11399
11402
|
if (c !== o) {
|
|
11400
11403
|
if (t[d][c] == null) {
|
|
@@ -11427,13 +11430,13 @@ function Uo(e) {
|
|
|
11427
11430
|
}
|
|
11428
11431
|
function zo(e) {
|
|
11429
11432
|
const t = Math.round(e * ko);
|
|
11430
|
-
return t <
|
|
11433
|
+
return t < c9 ? c9 : t > a9 ? a9 : t;
|
|
11431
11434
|
}
|
|
11432
11435
|
function Wo(e) {
|
|
11433
11436
|
const t = /font-family:\s*(?:"([^"]+)"|'([^']+)'|([^;]+))/i, n = e.match(t);
|
|
11434
11437
|
return n ? (n[1] || n[2] || n[3]).trim() : null;
|
|
11435
11438
|
}
|
|
11436
|
-
const S7 =
|
|
11439
|
+
const S7 = M9((e) => {
|
|
11437
11440
|
var O, _;
|
|
11438
11441
|
const { layer: t, id: n, position: r } = e, i = P(N1), o = J(null), s = J(null), a = J(`transform: rotate(${r == null ? void 0 : r.rotate}deg) translate(${r == null ? void 0 : r.startX}px, ${r == null ? void 0 : r.startY}px)`), d = J((O = r == null ? void 0 : r.startY) != null ? O : 0), C = J((_ = r == null ? void 0 : r.startX) != null ? _ : 0), v = typeof t.componentKey == "string" ? P(M1).get(t.componentKey) : t.componentKey, c = G(() => ({
|
|
11439
11442
|
data: t.data,
|
|
@@ -11497,11 +11500,11 @@ const S7 = I9((e) => {
|
|
|
11497
11500
|
) : null;
|
|
11498
11501
|
});
|
|
11499
11502
|
export {
|
|
11500
|
-
|
|
11503
|
+
je as BrowserClipboardService,
|
|
11501
11504
|
a1 as BuiltInUIPart,
|
|
11502
11505
|
O5 as COLOR_PICKER_COMPONENT,
|
|
11503
11506
|
x5 as COMMON_LABEL_COMPONENT,
|
|
11504
|
-
|
|
11507
|
+
rt as CanvasFloatDomService,
|
|
11505
11508
|
nr as CanvasPopup,
|
|
11506
11509
|
Kn as CanvasPopupService,
|
|
11507
11510
|
I5 as CommonLabel,
|
|
@@ -11517,21 +11520,21 @@ export {
|
|
|
11517
11520
|
Wn as CutCommand,
|
|
11518
11521
|
ci as CutShortcutItem,
|
|
11519
11522
|
Fo as DISABLE_AUTO_FOCUS_KEY,
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
|
|
11523
|
+
ke as DesktopBeforeCloseService,
|
|
11524
|
+
Ue as DesktopConfirmService,
|
|
11525
|
+
ze as DesktopDialogService,
|
|
11526
|
+
We as DesktopGalleryService,
|
|
11527
|
+
Ye as DesktopGlobalZoneService,
|
|
11528
|
+
Ze as DesktopLayoutService,
|
|
11526
11529
|
hr as DesktopLocalFileService,
|
|
11527
11530
|
Cr as DesktopLocalStorageService,
|
|
11528
11531
|
X5 as DesktopMenu,
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
+
Ge as DesktopMessageService,
|
|
11533
|
+
Xe as DesktopNotificationService,
|
|
11534
|
+
T3 as DesktopRibbonService,
|
|
11532
11535
|
vr as DesktopSidebarService,
|
|
11533
|
-
|
|
11534
|
-
|
|
11536
|
+
Z3 as DesktopUIController,
|
|
11537
|
+
qe as DesktopZenZoneService,
|
|
11535
11538
|
te as ErrorController,
|
|
11536
11539
|
qi as FILE_PNG_CLIPBOARD_MIME_TYPE,
|
|
11537
11540
|
m7 as FILE_SVG_XML_CLIPBOARD_MIME_TYPE,
|
|
@@ -11550,62 +11553,62 @@ export {
|
|
|
11550
11553
|
sr as GlobalZone,
|
|
11551
11554
|
S5 as HEADING_ITEM_COMPONENT,
|
|
11552
11555
|
c7 as HEADING_LIST,
|
|
11553
|
-
|
|
11556
|
+
e9 as HTML_CLIPBOARD_MIME_TYPE,
|
|
11554
11557
|
H5 as HeadingItem,
|
|
11555
11558
|
ur as IBeforeCloseService,
|
|
11556
|
-
|
|
11559
|
+
it as ICanvasPopupService,
|
|
11557
11560
|
dr as IClipboardInterfaceService,
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
|
|
11562
|
-
|
|
11561
|
+
i3 as IContextMenuService,
|
|
11562
|
+
ct as IDialogService,
|
|
11563
|
+
et as IFontService,
|
|
11564
|
+
ut as IGalleryService,
|
|
11565
|
+
lt as IGlobalZoneService,
|
|
11563
11566
|
k1 as ILayoutService,
|
|
11564
11567
|
i7 as ILeftSidebarService,
|
|
11565
11568
|
fr as ILocalFileService,
|
|
11566
11569
|
D1 as IMenuManagerService,
|
|
11567
|
-
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
+
tt as IMessageService,
|
|
11571
|
+
o3 as INotificationService,
|
|
11572
|
+
nt as IPlatformService,
|
|
11570
11573
|
rr as IRibbonService,
|
|
11571
11574
|
ge as IShortcutService,
|
|
11572
11575
|
ve as ISidebarService,
|
|
11573
|
-
|
|
11576
|
+
Fe as IUIController,
|
|
11574
11577
|
V1 as IUIPartsService,
|
|
11575
|
-
|
|
11578
|
+
at as IZenZoneService,
|
|
11576
11579
|
G1 as KeyCode,
|
|
11577
11580
|
_1 as MenuItemType,
|
|
11578
|
-
|
|
11579
|
-
|
|
11581
|
+
Ae as MenuManagerPosition,
|
|
11582
|
+
Be as MenuManagerService,
|
|
11580
11583
|
b1 as MetaKeys,
|
|
11581
11584
|
Bi as MobileContextMenu,
|
|
11582
11585
|
L7 as MockMessageService,
|
|
11583
|
-
|
|
11586
|
+
Kt as PLAIN_TEXT_CLIPBOARD_MIME_TYPE,
|
|
11584
11587
|
Yn as PasteCommand,
|
|
11585
11588
|
Gn as PlatformService,
|
|
11586
11589
|
S7 as PrintFloatDomSingle,
|
|
11587
11590
|
v7 as ProgressBar,
|
|
11588
|
-
|
|
11591
|
+
ot as RectPopup,
|
|
11589
11592
|
hi as RedoShortcutItem,
|
|
11590
11593
|
Si as Ribbon,
|
|
11591
11594
|
ae as RibbonDataGroup,
|
|
11592
|
-
|
|
11593
|
-
|
|
11595
|
+
D3 as RibbonFormulasGroup,
|
|
11596
|
+
Re as RibbonInsertGroup,
|
|
11594
11597
|
Fn as RibbonOthersGroup,
|
|
11595
11598
|
p1 as RibbonPosition,
|
|
11596
11599
|
z1 as RibbonStartGroup,
|
|
11597
|
-
|
|
11600
|
+
Ve as RibbonViewGroup,
|
|
11598
11601
|
ne as SharedController,
|
|
11599
11602
|
p7 as SheetPasteShortKeyCommandName,
|
|
11600
11603
|
re as ShortcutPanelController,
|
|
11601
|
-
|
|
11602
|
-
|
|
11604
|
+
G3 as ShortcutPanelService,
|
|
11605
|
+
Pe as ShortcutService,
|
|
11603
11606
|
lr as Sidebar,
|
|
11604
11607
|
mi as SingleCanvasPopup,
|
|
11605
11608
|
cr as SingleUnitUIController,
|
|
11606
11609
|
l7 as Slider,
|
|
11607
|
-
|
|
11608
|
-
|
|
11610
|
+
r3 as ThemeSwitcherService,
|
|
11611
|
+
n3 as ToggleShortcutPanelOperation,
|
|
11609
11612
|
Mi as ToolbarButton,
|
|
11610
11613
|
xe as ToolbarItem,
|
|
11611
11614
|
X5 as UIMenu,
|
|
@@ -11615,9 +11618,9 @@ export {
|
|
|
11615
11618
|
Po as UNIVER_UI_PLUGIN_NAME,
|
|
11616
11619
|
g7 as UNI_DISABLE_CHANGING_FOCUS_KEY,
|
|
11617
11620
|
di as UndoShortcutItem,
|
|
11618
|
-
|
|
11619
|
-
|
|
11620
|
-
|
|
11621
|
+
B3 as UniverMobileUIPlugin,
|
|
11622
|
+
P3 as UniverUIPlugin,
|
|
11623
|
+
De as ZIndexManager,
|
|
11621
11624
|
ar as ZenZone,
|
|
11622
11625
|
s7 as getHeaderFooterMenuHiddenObservable,
|
|
11623
11626
|
o7 as getMenuHiddenObservable,
|
|
@@ -11625,7 +11628,7 @@ export {
|
|
|
11625
11628
|
M7 as handelTableToJson,
|
|
11626
11629
|
gr as handleDomToJson,
|
|
11627
11630
|
I7 as handlePlainToJson,
|
|
11628
|
-
|
|
11631
|
+
dt as handleStringToStyle,
|
|
11629
11632
|
y7 as handleTableColgroup,
|
|
11630
11633
|
x7 as handleTableMergeData,
|
|
11631
11634
|
_7 as handleTableRowGroup,
|
|
@@ -11634,7 +11637,7 @@ export {
|
|
|
11634
11637
|
jo as splitSpanText,
|
|
11635
11638
|
Yi as supportClipboardAPI,
|
|
11636
11639
|
C7 as t,
|
|
11637
|
-
|
|
11640
|
+
H3 as textTrim,
|
|
11638
11641
|
d7 as useClickOutSide,
|
|
11639
11642
|
w1 as useComponentsOfPart,
|
|
11640
11643
|
V5 as useConfigValue,
|