@univerjs/slides-ui 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var dn = Object.defineProperty;
|
|
2
2
|
var un = (i, e, t) => e in i ? dn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var I = (i, e, t) => un(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { Inject as X, Injector as
|
|
5
|
-
import { IRenderManagerService as Y, Viewport as
|
|
4
|
+
import { Inject as X, Injector as Ke, IUniverInstanceService as T, RxDisposable as pe, UniverInstanceType as E, debounce as gn, getColorStyle as hn, CommandType as V, Tools as mn, LocaleService as ee, ICommandService as B, generateRandomId as It, BasicShapes as vn, PageElementType as Ge, Disposable as Ve, DisposableCollection as Xe, IContextService as Ce, toDisposable as bt, FOCUSING_COMMON_DRAWINGS as pn, createInternalEditorID as Cn, createIdentifier as Pt, EDITOR_ACTIVATED as xe, FOCUSING_EDITOR_STANDALONE as Et, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE as Rt, DocumentDataModel as fn, HorizontalAlign as Ot, VerticalAlign as ye, IUndoRedoService as _n, WrapStrategy as nt, FOCUSING_EDITOR_BUT_HIDDEN as Sn, DEFAULT_EMPTY_DOCUMENT_VALUE as In, Direction as L, DocumentFlavor as bn, FOCUSING_UNIVER_EDITOR as xt, FORMULA_EDITOR_ACTIVATED as Pn, Plugin as En, merge as Rn, mergeOverrideWithDependencies as it, IConfigService as On } from "@univerjs/core";
|
|
5
|
+
import { IRenderManagerService as Y, Viewport as rt, ScrollBar as yt, getCurrentTypeOfRenderer as $e, Slide as xn, Rect as Tt, Scene as yn, ObjectType as ge, pxToNum as Tn, DeviceInputEventType as J, convertTextRotation as st, FIX_ONE_PIXEL_BLUR_OFFSET as se, fixLineWidthByScale as ot } from "@univerjs/engine-render";
|
|
6
6
|
import { ObjectProvider as Mn, SLIDE_KEY as oe } from "@univerjs/slides";
|
|
7
|
-
import { useDependency as x, ISidebarService as
|
|
7
|
+
import { useDependency as x, ISidebarService as Mt, ICanvasPopupService as wn, ILayoutService as Nn, KeyCode as M, ILocalFileService as Dn, useObservable as Un, DISABLE_AUTO_FOCUS_KEY as at, getMenuHiddenObservable as fe, MenuItemType as _e, RibbonStartGroup as Vn, MetaKeys as Bn, IMenuManagerService as jn, ComponentManager as Ln, IUIPartsService as An, IShortcutService as $n, BuiltInUIPart as ct, connectInjector as lt } from "@univerjs/ui";
|
|
8
8
|
import { jsxs as R, jsx as u } from "react/jsx-runtime";
|
|
9
|
-
import { Button as be,
|
|
10
|
-
import
|
|
11
|
-
import { BehaviorSubject as Q, Subject as
|
|
12
|
-
import { DocSelectionManagerService as kn, DocSkeletonManagerService as
|
|
13
|
-
import { IEditorService as
|
|
9
|
+
import { clsx as y, Button as be, Dropdown as wt, ColorPicker as Hn, InputNumber as de, Scrollbar as Fn } from "@univerjs/design";
|
|
10
|
+
import Nt, { forwardRef as $, useRef as Dt, createElement as H, useState as G, useEffect as me, useMemo as zn, useCallback as dt } from "react";
|
|
11
|
+
import { BehaviorSubject as Q, Subject as Ut, filter as Wn, takeUntil as ut } from "rxjs";
|
|
12
|
+
import { DocSelectionManagerService as kn, DocSkeletonManagerService as gt, RichTextEditingMutation as Kn } from "@univerjs/docs";
|
|
13
|
+
import { IEditorService as Ye, DocSelectionRenderService as ht, VIEWPORT_KEY as mt, DOCS_COMPONENT_MAIN_LAYER_INDEX as Gn, MoveSelectionOperation as Xn, MoveCursorOperation as Yn, DOCS_VIEW_KEY as Zn, DeleteLeftCommand as qn } from "@univerjs/docs-ui";
|
|
14
14
|
import { DRAWING_IMAGE_ALLOW_IMAGE_LIST as Jn, IImageIoService as Qn, getImageSize as ei } from "@univerjs/drawing";
|
|
15
15
|
var ti = Object.getOwnPropertyDescriptor, ni = (i, e, t, n) => {
|
|
16
16
|
for (var r = n > 1 ? void 0 : n ? ti(e, t) : e, s = i.length - 1, o; s >= 0; s--)
|
|
@@ -37,7 +37,7 @@ let ve = class extends pe {
|
|
|
37
37
|
this.createThumbs();
|
|
38
38
|
}, 300);
|
|
39
39
|
});
|
|
40
|
-
const o = new
|
|
40
|
+
const o = new rt(oe.VIEW, n, {
|
|
41
41
|
left: 0,
|
|
42
42
|
top: 0,
|
|
43
43
|
bottom: 0,
|
|
@@ -56,7 +56,7 @@ let ve = class extends pe {
|
|
|
56
56
|
o.onMouseWheel(l, h);
|
|
57
57
|
}), n.onFileLoaded$.subscribeEvent(() => {
|
|
58
58
|
this._refreshThumb();
|
|
59
|
-
}),
|
|
59
|
+
}), yt.attachTo(o);
|
|
60
60
|
const a = this._createSlide(n);
|
|
61
61
|
this._renderContext.mainComponent = a, this._createSlidePages(r, a), this.createThumbs(), t.runRenderLoop(() => {
|
|
62
62
|
n.render();
|
|
@@ -73,7 +73,7 @@ let ve = class extends pe {
|
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
_currentRender() {
|
|
76
|
-
return
|
|
76
|
+
return $e(E.UNIVER_SLIDE, this._univerInstanceService, this._renderManagerService);
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* @param mainScene
|
|
@@ -89,7 +89,7 @@ let ve = class extends pe {
|
|
|
89
89
|
return c.enableSelectedClipElement(), e.addObject(c), c;
|
|
90
90
|
}
|
|
91
91
|
_addBackgroundRect(e, t) {
|
|
92
|
-
const r = this._univerInstanceService.getCurrentUnitForType(E.UNIVER_SLIDE).getPageSize(), { width: s = 0, height: o = 0 } = r, a = new
|
|
92
|
+
const r = this._univerInstanceService.getCurrentUnitForType(E.UNIVER_SLIDE).getPageSize(), { width: s = 0, height: o = 0 } = r, a = new Tt("canvas", {
|
|
93
93
|
left: 0,
|
|
94
94
|
top: 0,
|
|
95
95
|
width: s,
|
|
@@ -187,7 +187,7 @@ let ve = class extends pe {
|
|
|
187
187
|
width: a,
|
|
188
188
|
height: c
|
|
189
189
|
});
|
|
190
|
-
new
|
|
190
|
+
new rt(`PageViewer_${e}`, h, {
|
|
191
191
|
left: 0,
|
|
192
192
|
top: 0,
|
|
193
193
|
bottom: 0,
|
|
@@ -250,8 +250,8 @@ let ve = class extends pe {
|
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
252
|
ve = ni([
|
|
253
|
-
Be(1, X(
|
|
254
|
-
Be(2,
|
|
253
|
+
Be(1, X(Ke)),
|
|
254
|
+
Be(2, T),
|
|
255
255
|
Be(3, Y)
|
|
256
256
|
], ve);
|
|
257
257
|
var ii = Object.getOwnPropertyDescriptor, ri = (i, e, t, n) => {
|
|
@@ -294,12 +294,12 @@ let N = class extends pe {
|
|
|
294
294
|
N = ri([
|
|
295
295
|
si(0, Y)
|
|
296
296
|
], N);
|
|
297
|
-
const oi = "slides-ui.config",
|
|
297
|
+
const oi = "slides-ui.config", vt = {}, Vt = {
|
|
298
298
|
id: "slide.operation.delete-element",
|
|
299
299
|
type: V.OPERATION,
|
|
300
300
|
handler: (i, e) => {
|
|
301
301
|
if (!(e != null && e.id)) return !1;
|
|
302
|
-
const t = e.unitId, r = i.get(
|
|
302
|
+
const t = e.unitId, r = i.get(T).getUnit(t);
|
|
303
303
|
if (!r) return !1;
|
|
304
304
|
const s = r.getActivePage();
|
|
305
305
|
return delete s.pageElements[e.id], r.updatePage(s.id, s), i.get(N).removeObjectById(e.id, s.id, t), !0;
|
|
@@ -321,12 +321,12 @@ var U = function() {
|
|
|
321
321
|
e.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(i, n[r]) && (t[n[r]] = i[n[r]]);
|
|
322
322
|
return t;
|
|
323
323
|
}, F = $(function(i, e) {
|
|
324
|
-
var t = i.icon, n = i.id, r = i.className, s = i.extend, o = ai(i, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(n, " ").concat(r || "").trim(), c =
|
|
325
|
-
return
|
|
324
|
+
var t = i.icon, n = i.id, r = i.className, s = i.extend, o = ai(i, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(n, " ").concat(r || "").trim(), c = Dt("_".concat(di()));
|
|
325
|
+
return Bt(t, "".concat(n), { defIds: t.defIds, idSuffix: c.current }, U({ ref: e, className: a }, o), s);
|
|
326
326
|
});
|
|
327
|
-
function
|
|
327
|
+
function Bt(i, e, t, n, r) {
|
|
328
328
|
return H(i.tag, U(U({ key: e }, ci(i, t, r)), n), (li(i, t).children || []).map(function(s, o) {
|
|
329
|
-
return
|
|
329
|
+
return Bt(s, "".concat(e, "-").concat(i.tag, "-").concat(o), t, void 0, r);
|
|
330
330
|
}));
|
|
331
331
|
}
|
|
332
332
|
function ci(i, e, t) {
|
|
@@ -351,109 +351,96 @@ function di() {
|
|
|
351
351
|
return Math.random().toString(36).substring(2, 8);
|
|
352
352
|
}
|
|
353
353
|
F.displayName = "UniverIcon";
|
|
354
|
-
var ui = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.2498 3.65005C2.2498 2.87685 2.87661 2.25005 3.64981 2.25005H7.9998C8.33118 2.25005 8.5998 1.98142 8.5998 1.65005C8.5998 1.31868 8.33118 1.05005 7.9998 1.05005H3.64981C2.21387 1.05005 1.0498 2.21411 1.0498 3.65005V12.35C1.0498 13.786 2.21386 14.95 3.6498 14.95H12.3498C13.7857 14.95 14.9498 13.786 14.9498 12.3501V8.00005C14.9498 7.66868 14.6812 7.40005 14.3498 7.40005C14.0184 7.40005 13.7498 7.66868 13.7498 8.00005V9.23974L12.2385 8.1063C11.7252 7.72129 11.0068 7.7723 10.5531 8.22605L9.00869 9.77041L6.73916 7.8251C6.24387 7.40055 5.5095 7.41278 5.02864 7.85359L2.2498 10.4009V3.65005ZM2.2498 12.0287V12.35C2.2498 13.1232 2.87661 13.75 3.6498 13.75H12.3498C13.123 13.75 13.7498 13.1232 13.7498 12.3501V10.7397L11.5186 9.06631C11.4829 9.03956 11.433 9.04314 11.4016 9.07458L9.92249 10.5537L11.1015 11.5642C11.3531 11.7799 11.3822 12.1587 11.1666 12.4103C10.9509 12.6619 10.5721 12.691 10.3205 12.4753L5.9582 8.7362C5.92384 8.70674 5.87288 8.70758 5.83952 8.73816L2.2498 12.0287Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M11.8097 1.14783C12.1411 1.14783 12.4097 1.41646 12.4097 1.74783V3.297H14.1541C14.4855 3.297 14.7541 3.56563 14.7541 3.897C14.7541 4.22837 14.4855 4.497 14.1541 4.497H12.4097V6.24167C12.4097 6.57304 12.1411 6.84167 11.8097 6.84167C11.4783 6.84167 11.2097 6.57304 11.2097 6.24167V4.497H9.6603C9.32893 4.497 9.0603 4.22837 9.0603 3.897C9.0603 3.56563 9.32893 3.297 9.6603 3.297H11.2097V1.74783C11.2097 1.41646 11.4783 1.14783 11.8097 1.14783Z" } }] },
|
|
354
|
+
var ui = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.2498 3.65005C2.2498 2.87685 2.87661 2.25005 3.64981 2.25005H7.9998C8.33118 2.25005 8.5998 1.98142 8.5998 1.65005C8.5998 1.31868 8.33118 1.05005 7.9998 1.05005H3.64981C2.21387 1.05005 1.0498 2.21411 1.0498 3.65005V12.35C1.0498 13.786 2.21386 14.95 3.6498 14.95H12.3498C13.7857 14.95 14.9498 13.786 14.9498 12.3501V8.00005C14.9498 7.66868 14.6812 7.40005 14.3498 7.40005C14.0184 7.40005 13.7498 7.66868 13.7498 8.00005V9.23974L12.2385 8.1063C11.7252 7.72129 11.0068 7.7723 10.5531 8.22605L9.00869 9.77041L6.73916 7.8251C6.24387 7.40055 5.5095 7.41278 5.02864 7.85359L2.2498 10.4009V3.65005ZM2.2498 12.0287V12.35C2.2498 13.1232 2.87661 13.75 3.6498 13.75H12.3498C13.123 13.75 13.7498 13.1232 13.7498 12.3501V10.7397L11.5186 9.06631C11.4829 9.03956 11.433 9.04314 11.4016 9.07458L9.92249 10.5537L11.1015 11.5642C11.3531 11.7799 11.3822 12.1587 11.1666 12.4103C10.9509 12.6619 10.5721 12.691 10.3205 12.4753L5.9582 8.7362C5.92384 8.70674 5.87288 8.70758 5.83952 8.73816L2.2498 12.0287Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M11.8097 1.14783C12.1411 1.14783 12.4097 1.41646 12.4097 1.74783V3.297H14.1541C14.4855 3.297 14.7541 3.56563 14.7541 3.897C14.7541 4.22837 14.4855 4.497 14.1541 4.497H12.4097V6.24167C12.4097 6.57304 12.1411 6.84167 11.8097 6.84167C11.4783 6.84167 11.2097 6.57304 11.2097 6.24167V4.497H9.6603C9.32893 4.497 9.0603 4.22837 9.0603 3.897C9.0603 3.56563 9.32893 3.297 9.6603 3.297H11.2097V1.74783C11.2097 1.41646 11.4783 1.14783 11.8097 1.14783Z" } }] }, jt = $(function(i, e) {
|
|
355
355
|
return H(F, Object.assign({}, i, {
|
|
356
356
|
id: "add-image-single",
|
|
357
357
|
ref: e,
|
|
358
358
|
icon: ui
|
|
359
359
|
}));
|
|
360
360
|
});
|
|
361
|
-
|
|
362
|
-
var gi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M11.0363 12.2367V14.0367C11.0363 14.3681 11.3049 14.6367 11.6363 14.6367C11.9676 14.6367 12.2363 14.3681 12.2363 14.0367V12.2367H14.0364C14.3677 12.2367 14.6364 11.9681 14.6364 11.6367C14.6364 11.3054 14.3677 11.0367 14.0364 11.0367H12.2363V9.23672C12.2363 8.90535 11.9676 8.63672 11.6363 8.63672C11.3049 8.63672 11.0363 8.90535 11.0363 9.23672V11.0367H9.23635C8.90498 11.0367 8.63635 11.3054 8.63635 11.6367C8.63635 11.9681 8.90498 12.2367 9.23635 12.2367H11.0363Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M2.56365 1.36377C1.90091 1.36377 1.36365 1.90103 1.36365 2.56377V6.16377C1.36365 6.82651 1.90091 7.36377 2.56365 7.36377H6.16365C6.82639 7.36377 7.36365 6.82651 7.36365 6.16377V2.56377C7.36365 1.90103 6.82639 1.36377 6.16365 1.36377H2.56365zM6.16365 2.56377H2.56365L2.56365 6.16377H6.16365V2.56377zM2.56365 8.63647C1.90091 8.63647 1.36365 9.17373 1.36365 9.83647V13.4365C1.36365 14.0992 1.90091 14.6365 2.56365 14.6365H6.16365C6.82639 14.6365 7.36365 14.0992 7.36365 13.4365V9.83647C7.36365 9.17373 6.82639 8.63647 6.16365 8.63647H2.56365zM6.16365 9.83647H2.56365L2.56365 13.4365H6.16365V9.83647zM9.83635 7.36377C9.17361 7.36377 8.63635 6.82651 8.63635 6.16377V2.56377C8.63635 1.90103 9.17361 1.36377 9.83635 1.36377H13.4364C14.0991 1.36377 14.6364 1.90103 14.6364 2.56377V6.16377C14.6364 6.82651 14.0991 7.36377 13.4364 7.36377H9.83635zM9.83635 6.16377V2.56377L13.4364 2.56377V6.16377H9.83635z", fillRule: "evenodd", clipRule: "evenodd" } }] },
|
|
361
|
+
jt.displayName = "AddImageSingle";
|
|
362
|
+
var gi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M11.0363 12.2367V14.0367C11.0363 14.3681 11.3049 14.6367 11.6363 14.6367C11.9676 14.6367 12.2363 14.3681 12.2363 14.0367V12.2367H14.0364C14.3677 12.2367 14.6364 11.9681 14.6364 11.6367C14.6364 11.3054 14.3677 11.0367 14.0364 11.0367H12.2363V9.23672C12.2363 8.90535 11.9676 8.63672 11.6363 8.63672C11.3049 8.63672 11.0363 8.90535 11.0363 9.23672V11.0367H9.23635C8.90498 11.0367 8.63635 11.3054 8.63635 11.6367C8.63635 11.9681 8.90498 12.2367 9.23635 12.2367H11.0363Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M2.56365 1.36377C1.90091 1.36377 1.36365 1.90103 1.36365 2.56377V6.16377C1.36365 6.82651 1.90091 7.36377 2.56365 7.36377H6.16365C6.82639 7.36377 7.36365 6.82651 7.36365 6.16377V2.56377C7.36365 1.90103 6.82639 1.36377 6.16365 1.36377H2.56365zM6.16365 2.56377H2.56365L2.56365 6.16377H6.16365V2.56377zM2.56365 8.63647C1.90091 8.63647 1.36365 9.17373 1.36365 9.83647V13.4365C1.36365 14.0992 1.90091 14.6365 2.56365 14.6365H6.16365C6.82639 14.6365 7.36365 14.0992 7.36365 13.4365V9.83647C7.36365 9.17373 6.82639 8.63647 6.16365 8.63647H2.56365zM6.16365 9.83647H2.56365L2.56365 13.4365H6.16365V9.83647zM9.83635 7.36377C9.17361 7.36377 8.63635 6.82651 8.63635 6.16377V2.56377C8.63635 1.90103 9.17361 1.36377 9.83635 1.36377H13.4364C14.0991 1.36377 14.6364 1.90103 14.6364 2.56377V6.16377C14.6364 6.82651 14.0991 7.36377 13.4364 7.36377H9.83635zM9.83635 6.16377V2.56377L13.4364 2.56377V6.16377H9.83635z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Lt = $(function(i, e) {
|
|
363
363
|
return H(F, Object.assign({}, i, {
|
|
364
364
|
id: "autofill",
|
|
365
365
|
ref: e,
|
|
366
366
|
icon: gi
|
|
367
367
|
}));
|
|
368
368
|
});
|
|
369
|
-
|
|
370
|
-
var hi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.0045 4.4334C14.8881 4.4334 15.6045 3.71705 15.6045 2.8334 15.6045 1.94974 14.8881 1.2334 14.0045 1.2334H3.70449C2.82084 1.2334 2.10449 1.94974 2.10449 2.8334 2.10449 3.71705 2.82084 4.4334 3.70449 4.4334H14.0045zM14.4045 2.8334C14.4045 3.05431 14.2254 3.2334 14.0045 3.2334H3.70449C3.48358 3.2334 3.30449 3.05431 3.30449 2.8334 3.30449 2.61248 3.48358 2.4334 3.70449 2.4334H14.0045C14.2254 2.4334 14.4045 2.61249 14.4045 2.8334zM14.1544 8.5999C15.038 8.5999 15.7544 7.88356 15.7544 6.9999 15.7544 6.11625 15.038 5.3999 14.1544 5.3999H3.85439C2.97074 5.3999 2.25439 6.11625 2.25439 6.9999 2.25439 7.88356 2.97074 8.5999 3.85439 8.5999H14.1544zM14.5544 6.9999C14.5544 7.22082 14.3753 7.3999 14.1544 7.3999H3.85439C3.63348 7.3999 3.45439 7.22082 3.45439 6.9999 3.45439 6.77899 3.63348 6.5999 3.85439 6.5999H14.1544C14.3753 6.5999 14.5544 6.77899 14.5544 6.9999z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M8.57975 14.5902L6.58023 12.5907C6.34591 12.3564 6.34591 11.9765 6.58023 11.7421 6.81454 11.5078 7.19444 11.5078 7.42876 11.7421L8.40449 12.7179V10.1664C8.40449 9.83504 8.67312 9.56641 9.00449 9.56641 9.33586 9.56641 9.60449 9.83504 9.60449 10.1664V12.7179L10.5802 11.7421C10.8145 11.5078 11.1944 11.5078 11.4288 11.7421 11.6631 11.9765 11.6631 12.3564 11.4288 12.5907L9.42923 14.5902M8.57975 14.5902C8.58121 14.5917 8.58268 14.5931 8.58416 14.5946 8.64077 14.6502 8.70566 14.6923 8.77482 14.7209 8.84557 14.7502 8.92314 14.7664 9.00449 14.7664 9.08585 14.7664 9.16342 14.7502 9.23416 14.7209 9.30332 14.6923 9.36821 14.6502 9.42482 14.5946" } }] },
|
|
369
|
+
Lt.displayName = "Autofill";
|
|
370
|
+
var hi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.0045 4.4334C14.8881 4.4334 15.6045 3.71705 15.6045 2.8334 15.6045 1.94974 14.8881 1.2334 14.0045 1.2334H3.70449C2.82084 1.2334 2.10449 1.94974 2.10449 2.8334 2.10449 3.71705 2.82084 4.4334 3.70449 4.4334H14.0045zM14.4045 2.8334C14.4045 3.05431 14.2254 3.2334 14.0045 3.2334H3.70449C3.48358 3.2334 3.30449 3.05431 3.30449 2.8334 3.30449 2.61248 3.48358 2.4334 3.70449 2.4334H14.0045C14.2254 2.4334 14.4045 2.61249 14.4045 2.8334zM14.1544 8.5999C15.038 8.5999 15.7544 7.88356 15.7544 6.9999 15.7544 6.11625 15.038 5.3999 14.1544 5.3999H3.85439C2.97074 5.3999 2.25439 6.11625 2.25439 6.9999 2.25439 7.88356 2.97074 8.5999 3.85439 8.5999H14.1544zM14.5544 6.9999C14.5544 7.22082 14.3753 7.3999 14.1544 7.3999H3.85439C3.63348 7.3999 3.45439 7.22082 3.45439 6.9999 3.45439 6.77899 3.63348 6.5999 3.85439 6.5999H14.1544C14.3753 6.5999 14.5544 6.77899 14.5544 6.9999z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M8.57975 14.5902L6.58023 12.5907C6.34591 12.3564 6.34591 11.9765 6.58023 11.7421 6.81454 11.5078 7.19444 11.5078 7.42876 11.7421L8.40449 12.7179V10.1664C8.40449 9.83504 8.67312 9.56641 9.00449 9.56641 9.33586 9.56641 9.60449 9.83504 9.60449 10.1664V12.7179L10.5802 11.7421C10.8145 11.5078 11.1944 11.5078 11.4288 11.7421 11.6631 11.9765 11.6631 12.3564 11.4288 12.5907L9.42923 14.5902M8.57975 14.5902C8.58121 14.5917 8.58268 14.5931 8.58416 14.5946 8.64077 14.6502 8.70566 14.6923 8.77482 14.7209 8.84557 14.7502 8.92314 14.7664 9.00449 14.7664 9.08585 14.7664 9.16342 14.7502 9.23416 14.7209 9.30332 14.6923 9.36821 14.6502 9.42482 14.5946" } }] }, At = $(function(i, e) {
|
|
371
371
|
return H(F, Object.assign({}, i, {
|
|
372
372
|
id: "bottom-single",
|
|
373
373
|
ref: e,
|
|
374
374
|
icon: hi
|
|
375
375
|
}));
|
|
376
376
|
});
|
|
377
|
-
|
|
378
|
-
var mi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "g", attrs: { clipPath: "url(#graph-single_clip0_1293_28)" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M6.29541 11.1896C3.83208 10.7489 1.9624 8.59552 1.9624 6.00544C1.9624 3.09673 4.32036 0.73877 7.22907 0.73877C9.93483 0.73877 12.164 2.77918 12.4619 5.40527H13.5621C14.998 5.40527 16.1621 6.56933 16.1621 8.00527V12.6719C16.1621 14.1079 14.998 15.2719 13.5621 15.2719H8.89541C7.45947 15.2719 6.29541 14.1079 6.29541 12.6719V11.1896ZM3.1624 6.00544C3.1624 3.75947 4.98311 1.93877 7.22907 1.93877C9.27112 1.93877 10.9616 3.44388 11.2518 5.40527H8.89541C7.45947 5.40527 6.29541 6.56933 6.29541 8.00527V9.96442C4.49946 9.5425 3.1624 7.93012 3.1624 6.00544ZM7.49541 8.00527C7.49541 7.23207 8.12221 6.60527 8.89541 6.60527H13.5621C14.3353 6.60527 14.9621 7.23207 14.9621 8.00527V12.6719C14.9621 13.4451 14.3353 14.0719 13.5621 14.0719H8.89541C8.12221 14.0719 7.49541 13.4451 7.49541 12.6719V8.00527Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, { tag: "defs", attrs: {}, children: [{ tag: "clipPath", attrs: { id: "graph-single_clip0_1293_28" }, children: [{ tag: "path", attrs: { fill: "#fff", d: "M0 0H16V16H0z", transform: "translate(.9)" } }] }] }], defIds: ["graph-single_clip0_1293_28"] },
|
|
377
|
+
At.displayName = "BottomSingle";
|
|
378
|
+
var mi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "g", attrs: { clipPath: "url(#graph-single_clip0_1293_28)" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M6.29541 11.1896C3.83208 10.7489 1.9624 8.59552 1.9624 6.00544C1.9624 3.09673 4.32036 0.73877 7.22907 0.73877C9.93483 0.73877 12.164 2.77918 12.4619 5.40527H13.5621C14.998 5.40527 16.1621 6.56933 16.1621 8.00527V12.6719C16.1621 14.1079 14.998 15.2719 13.5621 15.2719H8.89541C7.45947 15.2719 6.29541 14.1079 6.29541 12.6719V11.1896ZM3.1624 6.00544C3.1624 3.75947 4.98311 1.93877 7.22907 1.93877C9.27112 1.93877 10.9616 3.44388 11.2518 5.40527H8.89541C7.45947 5.40527 6.29541 6.56933 6.29541 8.00527V9.96442C4.49946 9.5425 3.1624 7.93012 3.1624 6.00544ZM7.49541 8.00527C7.49541 7.23207 8.12221 6.60527 8.89541 6.60527H13.5621C14.3353 6.60527 14.9621 7.23207 14.9621 8.00527V12.6719C14.9621 13.4451 14.3353 14.0719 13.5621 14.0719H8.89541C8.12221 14.0719 7.49541 13.4451 7.49541 12.6719V8.00527Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, { tag: "defs", attrs: {}, children: [{ tag: "clipPath", attrs: { id: "graph-single_clip0_1293_28" }, children: [{ tag: "path", attrs: { fill: "#fff", d: "M0 0H16V16H0z", transform: "translate(.9)" } }] }] }], defIds: ["graph-single_clip0_1293_28"] }, $t = $(function(i, e) {
|
|
379
379
|
return H(F, Object.assign({}, i, {
|
|
380
380
|
id: "graph-single",
|
|
381
381
|
ref: e,
|
|
382
382
|
icon: mi
|
|
383
383
|
}));
|
|
384
384
|
});
|
|
385
|
-
|
|
386
|
-
var vi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] },
|
|
385
|
+
$t.displayName = "GraphSingle";
|
|
386
|
+
var vi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ze = $(function(i, e) {
|
|
387
387
|
return H(F, Object.assign({}, i, {
|
|
388
388
|
id: "more-down-single",
|
|
389
389
|
ref: e,
|
|
390
390
|
icon: vi
|
|
391
391
|
}));
|
|
392
392
|
});
|
|
393
|
-
|
|
394
|
-
var pi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.25 2.96401C1.25 3.84767 1.96634 4.56401 2.85 4.56401H13.15C14.0337 4.56401 14.75 3.84767 14.75 2.96401C14.75 2.08036 14.0337 1.36401 13.15 1.36401H2.85C1.96635 1.36401 1.25 2.08036 1.25 2.96401ZM2.85 3.36401C2.62909 3.36401 2.45 3.18493 2.45 2.96401C2.45 2.7431 2.62909 2.56401 2.85 2.56401H13.15C13.3709 2.56401 13.55 2.7431 13.55 2.96401C13.55 3.18493 13.3709 3.36401 13.15 3.36401H2.85Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.57564 11.6118C5.80995 11.3774 6.18985 11.3774 6.42417 11.6118L7.3999 12.5875V6.36951C7.3999 6.03814 7.66853 5.76951 7.9999 5.76951C8.33127 5.76951 8.5999 6.03814 8.5999 6.36951V12.5875L9.57564 11.6118C9.80995 11.3774 10.1899 11.3774 10.4242 11.6118C10.6585 11.8461 10.6585 12.226 10.4242 12.4603L8.4324 14.452C8.32324 14.5655 8.16982 14.6362 7.9999 14.6362C7.82998 14.6362 7.67655 14.5655 7.56739 14.452L5.57564 12.4603C5.34132 12.226 5.34132 11.8461 5.57564 11.6118Z" } }] },
|
|
393
|
+
Ze.displayName = "MoreDownSingle";
|
|
394
|
+
var pi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.25 2.96401C1.25 3.84767 1.96634 4.56401 2.85 4.56401H13.15C14.0337 4.56401 14.75 3.84767 14.75 2.96401C14.75 2.08036 14.0337 1.36401 13.15 1.36401H2.85C1.96635 1.36401 1.25 2.08036 1.25 2.96401ZM2.85 3.36401C2.62909 3.36401 2.45 3.18493 2.45 2.96401C2.45 2.7431 2.62909 2.56401 2.85 2.56401H13.15C13.3709 2.56401 13.55 2.7431 13.55 2.96401C13.55 3.18493 13.3709 3.36401 13.15 3.36401H2.85Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.57564 11.6118C5.80995 11.3774 6.18985 11.3774 6.42417 11.6118L7.3999 12.5875V6.36951C7.3999 6.03814 7.66853 5.76951 7.9999 5.76951C8.33127 5.76951 8.5999 6.03814 8.5999 6.36951V12.5875L9.57564 11.6118C9.80995 11.3774 10.1899 11.3774 10.4242 11.6118C10.6585 11.8461 10.6585 12.226 10.4242 12.4603L8.4324 14.452C8.32324 14.5655 8.16982 14.6362 7.9999 14.6362C7.82998 14.6362 7.67655 14.5655 7.56739 14.452L5.57564 12.4603C5.34132 12.226 5.34132 11.8461 5.57564 11.6118Z" } }] }, Ht = $(function(i, e) {
|
|
395
395
|
return H(F, Object.assign({}, i, {
|
|
396
396
|
id: "move-down-single",
|
|
397
397
|
ref: e,
|
|
398
398
|
icon: pi
|
|
399
399
|
}));
|
|
400
400
|
});
|
|
401
|
-
|
|
402
|
-
var Ci = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.25 13.036C1.25 12.1523 1.96634 11.436 2.85 11.436H13.15C14.0337 11.436 14.75 12.1523 14.75 13.036C14.75 13.9196 14.0337 14.636 13.15 14.636H2.85C1.96635 14.636 1.25 13.9196 1.25 13.036ZM2.85 12.636C2.62909 12.636 2.45 12.8151 2.45 13.036C2.45 13.2569 2.62909 13.436 2.85 13.436H13.15C13.3709 13.436 13.55 13.2569 13.55 13.036C13.55 12.8151 13.3709 12.636 13.15 12.636H2.85Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.57564 4.38825C5.80995 4.62256 6.18985 4.62256 6.42417 4.38825L7.3999 3.41251V9.63049C7.3999 9.96186 7.66853 10.2305 7.9999 10.2305C8.33127 10.2305 8.5999 9.96186 8.5999 9.63049V3.41251L9.57564 4.38825C9.80995 4.62256 10.1899 4.62256 10.4242 4.38825C10.6585 4.15393 10.6585 3.77403 10.4242 3.53972L8.4324 1.54796C8.32324 1.43445 8.16982 1.36382 7.9999 1.36382C7.82998 1.36382 7.67655 1.43446 7.56739 1.54797L5.57564 3.53972C5.34132 3.77403 5.34132 4.15393 5.57564 4.38825Z" } }] },
|
|
401
|
+
Ht.displayName = "MoveDownSingle";
|
|
402
|
+
var Ci = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.25 13.036C1.25 12.1523 1.96634 11.436 2.85 11.436H13.15C14.0337 11.436 14.75 12.1523 14.75 13.036C14.75 13.9196 14.0337 14.636 13.15 14.636H2.85C1.96635 14.636 1.25 13.9196 1.25 13.036ZM2.85 12.636C2.62909 12.636 2.45 12.8151 2.45 13.036C2.45 13.2569 2.62909 13.436 2.85 13.436H13.15C13.3709 13.436 13.55 13.2569 13.55 13.036C13.55 12.8151 13.3709 12.636 13.15 12.636H2.85Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.57564 4.38825C5.80995 4.62256 6.18985 4.62256 6.42417 4.38825L7.3999 3.41251V9.63049C7.3999 9.96186 7.66853 10.2305 7.9999 10.2305C8.33127 10.2305 8.5999 9.96186 8.5999 9.63049V3.41251L9.57564 4.38825C9.80995 4.62256 10.1899 4.62256 10.4242 4.38825C10.6585 4.15393 10.6585 3.77403 10.4242 3.53972L8.4324 1.54796C8.32324 1.43445 8.16982 1.36382 7.9999 1.36382C7.82998 1.36382 7.67655 1.43446 7.56739 1.54797L5.57564 3.53972C5.34132 3.77403 5.34132 4.15393 5.57564 4.38825Z" } }] }, Ft = $(function(i, e) {
|
|
403
403
|
return H(F, Object.assign({}, i, {
|
|
404
404
|
id: "move-up-single",
|
|
405
405
|
ref: e,
|
|
406
406
|
icon: Ci
|
|
407
407
|
}));
|
|
408
408
|
});
|
|
409
|
-
|
|
410
|
-
var fi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] },
|
|
409
|
+
Ft.displayName = "MoveUpSingle";
|
|
410
|
+
var fi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, zt = $(function(i, e) {
|
|
411
411
|
return H(F, Object.assign({}, i, {
|
|
412
412
|
id: "paint-bucket",
|
|
413
413
|
ref: e,
|
|
414
414
|
icon: fi
|
|
415
415
|
}));
|
|
416
416
|
});
|
|
417
|
-
|
|
418
|
-
var _i = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "g", attrs: { fill: "currentColor", clipPath: "url(#text-single_clip0_1293_26)" }, children: [{ tag: "path", attrs: { d: "M2.22891 2.07227C1.89754 2.07227 1.62891 2.34089 1.62891 2.67227C1.62891 3.00364 1.89754 3.27227 2.22891 3.27227H6.29541V14.0056C6.29541 14.337 6.56404 14.6056 6.89541 14.6056C7.22678 14.6056 7.49541 14.337 7.49541 14.0056V3.27227H11.5622C11.8936 3.27227 12.1622 3.00364 12.1622 2.67227C12.1622 2.34089 11.8936 2.07227 11.5622 2.07227H2.22891Z" } }, { tag: "path", attrs: { d: "M10.2289 6.40552C9.89754 6.40552 9.62891 6.67415 9.62891 7.00552C9.62891 7.33689 9.89754 7.60552 10.2289 7.60552H12.2954V14.0055C12.2954 14.3369 12.564 14.6055 12.8954 14.6055C13.2268 14.6055 13.4954 14.3369 13.4954 14.0055V7.60552H15.5622C15.8936 7.60552 16.1622 7.33689 16.1622 7.00552C16.1622 6.67415 15.8936 6.40552 15.5622 6.40552H10.2289Z" } }] }, { tag: "defs", attrs: {}, children: [{ tag: "clipPath", attrs: { id: "text-single_clip0_1293_26" }, children: [{ tag: "path", attrs: { fill: "#fff", d: "M0 0H16V16H0z", transform: "translate(.9)" } }] }] }], defIds: ["text-single_clip0_1293_26"] },
|
|
417
|
+
zt.displayName = "PaintBucket";
|
|
418
|
+
var _i = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "g", attrs: { fill: "currentColor", clipPath: "url(#text-single_clip0_1293_26)" }, children: [{ tag: "path", attrs: { d: "M2.22891 2.07227C1.89754 2.07227 1.62891 2.34089 1.62891 2.67227C1.62891 3.00364 1.89754 3.27227 2.22891 3.27227H6.29541V14.0056C6.29541 14.337 6.56404 14.6056 6.89541 14.6056C7.22678 14.6056 7.49541 14.337 7.49541 14.0056V3.27227H11.5622C11.8936 3.27227 12.1622 3.00364 12.1622 2.67227C12.1622 2.34089 11.8936 2.07227 11.5622 2.07227H2.22891Z" } }, { tag: "path", attrs: { d: "M10.2289 6.40552C9.89754 6.40552 9.62891 6.67415 9.62891 7.00552C9.62891 7.33689 9.89754 7.60552 10.2289 7.60552H12.2954V14.0055C12.2954 14.3369 12.564 14.6055 12.8954 14.6055C13.2268 14.6055 13.4954 14.3369 13.4954 14.0055V7.60552H15.5622C15.8936 7.60552 16.1622 7.33689 16.1622 7.00552C16.1622 6.67415 15.8936 6.40552 15.5622 6.40552H10.2289Z" } }] }, { tag: "defs", attrs: {}, children: [{ tag: "clipPath", attrs: { id: "text-single_clip0_1293_26" }, children: [{ tag: "path", attrs: { fill: "#fff", d: "M0 0H16V16H0z", transform: "translate(.9)" } }] }] }], defIds: ["text-single_clip0_1293_26"] }, Wt = $(function(i, e) {
|
|
419
419
|
return H(F, Object.assign({}, i, {
|
|
420
420
|
id: "text-single",
|
|
421
421
|
ref: e,
|
|
422
422
|
icon: _i
|
|
423
423
|
}));
|
|
424
424
|
});
|
|
425
|
-
|
|
426
|
-
var Si = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.82994 1.40913C7.88746 1.35161 7.95376 1.30821 8.02453 1.27893C8.09527 1.24959 8.17285 1.2334 8.2542 1.2334C8.33555 1.2334 8.41313 1.24959 8.48387 1.27893C8.55464 1.30821 8.62094 1.35161 8.67846 1.40913L10.6785 3.40913C10.9128 3.64345 10.9128 4.02335 10.6785 4.25766C10.4441 4.49198 10.0642 4.49198 9.82994 4.25766L8.8542 3.28193V5.8334C8.8542 6.16477 8.58557 6.4334 8.2542 6.4334C7.92283 6.4334 7.6542 6.16477 7.6542 5.8334V3.28193L6.67846 4.25766C6.44415 4.49198 6.06425 4.49198 5.82994 4.25766C5.59562 4.02335 5.59562 3.64345 5.82994 3.40913L7.82994 1.40913Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.50439 9C1.50439 8.11634 2.22074 7.4 3.10439 7.4H13.4044C14.288 7.4 15.0044 8.11634 15.0044 9 15.0044 9.88366 14.2881 10.6 13.4044 10.6H3.1044C2.22074 10.6 1.50439 9.88366 1.50439 9zM3.10439 8.6C2.88348 8.6 2.70439 8.77909 2.70439 9 2.70439 9.22091 2.88348 9.4 3.1044 9.4H13.4044C13.6253 9.4 13.8044 9.22091 13.8044 9 13.8044 8.77909 13.6253 8.6 13.4044 8.6H3.10439zM1.6543 13.1665C1.6543 12.2828 2.37064 11.5665 3.2543 11.5665H13.5543C14.438 11.5665 15.1543 12.2828 15.1543 13.1665 15.1543 14.0502 14.438 14.7665 13.5543 14.7665H3.2543C2.37064 14.7665 1.6543 14.0502 1.6543 13.1665zM3.2543 12.7665C3.03338 12.7665 2.8543 12.9456 2.8543 13.1665 2.8543 13.3874 3.03338 13.5665 3.2543 13.5665H13.5543C13.7752 13.5665 13.9543 13.3874 13.9543 13.1665 13.9543 12.9456 13.7752 12.7665 13.5543 12.7665H3.2543z", fillRule: "evenodd", clipRule: "evenodd" } }] },
|
|
425
|
+
Wt.displayName = "TextSingle";
|
|
426
|
+
var Si = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.82994 1.40913C7.88746 1.35161 7.95376 1.30821 8.02453 1.27893C8.09527 1.24959 8.17285 1.2334 8.2542 1.2334C8.33555 1.2334 8.41313 1.24959 8.48387 1.27893C8.55464 1.30821 8.62094 1.35161 8.67846 1.40913L10.6785 3.40913C10.9128 3.64345 10.9128 4.02335 10.6785 4.25766C10.4441 4.49198 10.0642 4.49198 9.82994 4.25766L8.8542 3.28193V5.8334C8.8542 6.16477 8.58557 6.4334 8.2542 6.4334C7.92283 6.4334 7.6542 6.16477 7.6542 5.8334V3.28193L6.67846 4.25766C6.44415 4.49198 6.06425 4.49198 5.82994 4.25766C5.59562 4.02335 5.59562 3.64345 5.82994 3.40913L7.82994 1.40913Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.50439 9C1.50439 8.11634 2.22074 7.4 3.10439 7.4H13.4044C14.288 7.4 15.0044 8.11634 15.0044 9 15.0044 9.88366 14.2881 10.6 13.4044 10.6H3.1044C2.22074 10.6 1.50439 9.88366 1.50439 9zM3.10439 8.6C2.88348 8.6 2.70439 8.77909 2.70439 9 2.70439 9.22091 2.88348 9.4 3.1044 9.4H13.4044C13.6253 9.4 13.8044 9.22091 13.8044 9 13.8044 8.77909 13.6253 8.6 13.4044 8.6H3.10439zM1.6543 13.1665C1.6543 12.2828 2.37064 11.5665 3.2543 11.5665H13.5543C14.438 11.5665 15.1543 12.2828 15.1543 13.1665 15.1543 14.0502 14.438 14.7665 13.5543 14.7665H3.2543C2.37064 14.7665 1.6543 14.0502 1.6543 13.1665zM3.2543 12.7665C3.03338 12.7665 2.8543 12.9456 2.8543 13.1665 2.8543 13.3874 3.03338 13.5665 3.2543 13.5665H13.5543C13.7752 13.5665 13.9543 13.3874 13.9543 13.1665 13.9543 12.9456 13.7752 12.7665 13.5543 12.7665H3.2543z", fillRule: "evenodd", clipRule: "evenodd" } }] }, kt = $(function(i, e) {
|
|
427
427
|
return H(F, Object.assign({}, i, {
|
|
428
428
|
id: "topmost-single",
|
|
429
429
|
ref: e,
|
|
430
430
|
icon: Si
|
|
431
431
|
}));
|
|
432
432
|
});
|
|
433
|
-
|
|
434
|
-
function kt(i) {
|
|
435
|
-
var e, t, n = "";
|
|
436
|
-
if (typeof i == "string" || typeof i == "number") n += i;
|
|
437
|
-
else if (typeof i == "object") if (Array.isArray(i)) {
|
|
438
|
-
var r = i.length;
|
|
439
|
-
for (e = 0; e < r; e++) i[e] && (t = kt(i[e])) && (n && (n += " "), n += t);
|
|
440
|
-
} else for (t in i) i[t] && (n && (n += " "), n += t);
|
|
441
|
-
return n;
|
|
442
|
-
}
|
|
443
|
-
function M() {
|
|
444
|
-
for (var i, e, t = 0, n = "", r = arguments.length; t < r; t++) (i = arguments[t]) && (e = kt(i)) && (n && (n += " "), n += e);
|
|
445
|
-
return n;
|
|
446
|
-
}
|
|
433
|
+
kt.displayName = "TopmostSingle";
|
|
447
434
|
const k = {
|
|
448
435
|
id: "slide.operation.update-element",
|
|
449
436
|
type: V.OPERATION,
|
|
450
437
|
handler: (i, e) => {
|
|
451
|
-
const { oKey: t, props: n } = e, r = i.get(
|
|
438
|
+
const { oKey: t, props: n } = e, r = i.get(T), s = e == null ? void 0 : e.unitId, o = r.getUnit(s);
|
|
452
439
|
if (!o) return !1;
|
|
453
440
|
const a = o.getActivePage();
|
|
454
441
|
return a.pageElements[t] = mn.deepMerge(a.pageElements[t], n), o.updatePage(a.id, a), !0;
|
|
455
442
|
}
|
|
456
|
-
}, Ii = "univer-image-common-panel-grid", bi = "univer-image-common-panel-border", Pi = "univer-image-common-panel-title", Ei = "univer-image-common-panel-row", Ri = "univer-image-common-panel-column", Oi = "univer-image-common-panel-inline", xi = "univer-image-common-panel-span2", yi = "univer-image-common-panel-span3", Ti = "univer-image-common-panel-input",
|
|
443
|
+
}, Ii = "univer-image-common-panel-grid", bi = "univer-image-common-panel-border", Pi = "univer-image-common-panel-title", Ei = "univer-image-common-panel-row", Ri = "univer-image-common-panel-column", Oi = "univer-image-common-panel-inline", xi = "univer-image-common-panel-span2", yi = "univer-image-common-panel-span3", Ti = "univer-image-common-panel-input", g = {
|
|
457
444
|
imageCommonPanelGrid: Ii,
|
|
458
445
|
imageCommonPanelBorder: bi,
|
|
459
446
|
imageCommonPanelTitle: Pi,
|
|
@@ -462,10 +449,9 @@ const k = {
|
|
|
462
449
|
imageCommonPanelInline: Oi,
|
|
463
450
|
imageCommonPanelSpan2: xi,
|
|
464
451
|
imageCommonPanelSpan3: yi,
|
|
465
|
-
imageCommonPanelInput: Ti
|
|
466
|
-
slidePanelColorPicker: Mi
|
|
452
|
+
imageCommonPanelInput: Ti
|
|
467
453
|
};
|
|
468
|
-
function
|
|
454
|
+
function Mi(i) {
|
|
469
455
|
const { pageId: e, unitId: t } = i, n = x(ee), r = x(N), s = x(B), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
|
|
470
456
|
if (!a) return null;
|
|
471
457
|
const c = a.getTransformer();
|
|
@@ -489,50 +475,50 @@ function wi(i) {
|
|
|
489
475
|
});
|
|
490
476
|
};
|
|
491
477
|
return /* @__PURE__ */ R("div", { className: g.imageCommonPanelGrid, children: [
|
|
492
|
-
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className:
|
|
478
|
+
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelTitle), children: /* @__PURE__ */ u("div", { children: n.t("image-panel.arrange.title") }) }) }),
|
|
493
479
|
/* @__PURE__ */ R("div", { className: g.imageCommonPanelRow, children: [
|
|
494
|
-
/* @__PURE__ */ u("div", { className:
|
|
480
|
+
/* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { size: "small", onClick: () => {
|
|
495
481
|
d(
|
|
496
482
|
0
|
|
497
483
|
/* forward */
|
|
498
484
|
);
|
|
499
485
|
}, children: /* @__PURE__ */ R("span", { className: g.imageCommonPanelInline, children: [
|
|
500
|
-
/* @__PURE__ */ u(
|
|
486
|
+
/* @__PURE__ */ u(Ft, {}),
|
|
501
487
|
n.t("image-panel.arrange.forward")
|
|
502
488
|
] }) }) }),
|
|
503
|
-
/* @__PURE__ */ u("div", { className:
|
|
489
|
+
/* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { size: "small", onClick: () => {
|
|
504
490
|
d(
|
|
505
491
|
1
|
|
506
492
|
/* backward */
|
|
507
493
|
);
|
|
508
494
|
}, children: /* @__PURE__ */ R("span", { className: g.imageCommonPanelInline, children: [
|
|
509
|
-
/* @__PURE__ */ u(
|
|
495
|
+
/* @__PURE__ */ u(Ht, {}),
|
|
510
496
|
n.t("image-panel.arrange.backward")
|
|
511
497
|
] }) }) })
|
|
512
498
|
] }),
|
|
513
499
|
/* @__PURE__ */ R("div", { className: g.imageCommonPanelRow, children: [
|
|
514
|
-
/* @__PURE__ */ u("div", { className:
|
|
500
|
+
/* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { size: "small", onClick: () => {
|
|
515
501
|
d(
|
|
516
502
|
2
|
|
517
503
|
/* front */
|
|
518
504
|
);
|
|
519
505
|
}, children: /* @__PURE__ */ R("span", { className: g.imageCommonPanelInline, children: [
|
|
520
|
-
/* @__PURE__ */ u(
|
|
506
|
+
/* @__PURE__ */ u(kt, {}),
|
|
521
507
|
n.t("image-panel.arrange.front")
|
|
522
508
|
] }) }) }),
|
|
523
|
-
/* @__PURE__ */ u("div", { className:
|
|
509
|
+
/* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(be, { size: "small", onClick: () => {
|
|
524
510
|
d(
|
|
525
511
|
3
|
|
526
512
|
/* back */
|
|
527
513
|
);
|
|
528
514
|
}, children: /* @__PURE__ */ R("span", { className: g.imageCommonPanelInline, children: [
|
|
529
|
-
/* @__PURE__ */ u(
|
|
515
|
+
/* @__PURE__ */ u(At, {}),
|
|
530
516
|
n.t("image-panel.arrange.back")
|
|
531
517
|
] }) }) })
|
|
532
518
|
] })
|
|
533
519
|
] });
|
|
534
520
|
}
|
|
535
|
-
function
|
|
521
|
+
function wi(i) {
|
|
536
522
|
var C, p;
|
|
537
523
|
const { pageId: e, unitId: t } = i, n = x(ee), r = x(N), s = x(B), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
|
|
538
524
|
if (!a) return null;
|
|
@@ -540,7 +526,7 @@ function Ni(i) {
|
|
|
540
526
|
if (!c) return null;
|
|
541
527
|
const l = c.getSelectedObjectMap().values().next().value;
|
|
542
528
|
if (!l) return null;
|
|
543
|
-
const [d, v] =
|
|
529
|
+
const [d, v] = Nt.useState((p = (C = l.fill) == null ? void 0 : C.toString()) != null ? p : "");
|
|
544
530
|
function f(m) {
|
|
545
531
|
l == null || l.setProps({
|
|
546
532
|
fill: m
|
|
@@ -561,16 +547,13 @@ function Ni(i) {
|
|
|
561
547
|
return /* @__PURE__ */ u(
|
|
562
548
|
"div",
|
|
563
549
|
{
|
|
564
|
-
className:
|
|
550
|
+
className: y(g.imageCommonPanelGrid, g.imageCommonPanelBorder),
|
|
565
551
|
children: /* @__PURE__ */ R("div", { className: g.imageCommonPanelGrid, children: [
|
|
566
|
-
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className:
|
|
567
|
-
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className:
|
|
568
|
-
|
|
552
|
+
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelTitle), children: /* @__PURE__ */ u("div", { children: n.t("slide.panel.fill.title") }) }) }),
|
|
553
|
+
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan2), children: /* @__PURE__ */ u(
|
|
554
|
+
wt,
|
|
569
555
|
{
|
|
570
|
-
|
|
571
|
-
offset: [0, 18]
|
|
572
|
-
},
|
|
573
|
-
overlay: /* @__PURE__ */ u("section", { className: g.slidePanelColorPicker, children: /* @__PURE__ */ u(
|
|
556
|
+
overlay: /* @__PURE__ */ u("div", { className: "univer-rounded-lg univer-p-4", children: /* @__PURE__ */ u(
|
|
574
557
|
Hn,
|
|
575
558
|
{
|
|
576
559
|
value: "#fff",
|
|
@@ -578,8 +561,8 @@ function Ni(i) {
|
|
|
578
561
|
}
|
|
579
562
|
) }),
|
|
580
563
|
children: /* @__PURE__ */ R("a", { className: g.uiPluginSheetsBorderPanelButton, children: [
|
|
581
|
-
/* @__PURE__ */ u(
|
|
582
|
-
/* @__PURE__ */ u("span", { className: g.uiPluginSheetsBorderPanelMoreIcon, children: /* @__PURE__ */ u(
|
|
564
|
+
/* @__PURE__ */ u(zt, { extend: { colorChannel1: d != null ? d : "rgb(var(--primary-color))" } }),
|
|
565
|
+
/* @__PURE__ */ u("span", { className: g.uiPluginSheetsBorderPanelMoreIcon, children: /* @__PURE__ */ u(Ze, {}) })
|
|
583
566
|
] })
|
|
584
567
|
}
|
|
585
568
|
) }) })
|
|
@@ -587,7 +570,7 @@ function Ni(i) {
|
|
|
587
570
|
}
|
|
588
571
|
);
|
|
589
572
|
}
|
|
590
|
-
function
|
|
573
|
+
function Ni(i) {
|
|
591
574
|
const { pageId: e, unitId: t } = i, n = x(ee), r = x(N), s = x(B), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
|
|
592
575
|
if (!a) return null;
|
|
593
576
|
const c = a.getTransformer();
|
|
@@ -670,11 +653,11 @@ function Di(i) {
|
|
|
670
653
|
return /* @__PURE__ */ R(
|
|
671
654
|
"div",
|
|
672
655
|
{
|
|
673
|
-
className:
|
|
656
|
+
className: y(g.imageCommonPanelGrid, g.imageCommonPanelBorder),
|
|
674
657
|
children: [
|
|
675
|
-
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className:
|
|
658
|
+
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelTitle), children: /* @__PURE__ */ u("div", { children: n.t("image-panel.transform.title") }) }) }),
|
|
676
659
|
/* @__PURE__ */ R("div", { className: g.imageCommonPanelRow, children: [
|
|
677
|
-
/* @__PURE__ */ u("div", { className:
|
|
660
|
+
/* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
|
|
678
661
|
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: g.imageCommonPanelColumn, children: n.t("image-panel.transform.width") }) }),
|
|
679
662
|
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: g.imageCommonPanelColumn, children: /* @__PURE__ */ u(
|
|
680
663
|
de,
|
|
@@ -688,7 +671,7 @@ function Di(i) {
|
|
|
688
671
|
}
|
|
689
672
|
) }) })
|
|
690
673
|
] }) }),
|
|
691
|
-
/* @__PURE__ */ u("div", { className:
|
|
674
|
+
/* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
|
|
692
675
|
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: g.imageCommonPanelColumn, children: n.t("image-panel.transform.height") }) }),
|
|
693
676
|
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: g.imageCommonPanelColumn, children: /* @__PURE__ */ u(
|
|
694
677
|
de,
|
|
@@ -704,7 +687,7 @@ function Di(i) {
|
|
|
704
687
|
] }) })
|
|
705
688
|
] }),
|
|
706
689
|
/* @__PURE__ */ R("div", { className: g.imageCommonPanelRow, children: [
|
|
707
|
-
/* @__PURE__ */ u("div", { className:
|
|
690
|
+
/* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
|
|
708
691
|
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: g.imageCommonPanelColumn, children: n.t("image-panel.transform.x") }) }),
|
|
709
692
|
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: g.imageCommonPanelColumn, children: /* @__PURE__ */ u(
|
|
710
693
|
de,
|
|
@@ -719,7 +702,7 @@ function Di(i) {
|
|
|
719
702
|
}
|
|
720
703
|
) }) })
|
|
721
704
|
] }) }),
|
|
722
|
-
/* @__PURE__ */ u("div", { className:
|
|
705
|
+
/* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
|
|
723
706
|
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: g.imageCommonPanelColumn, children: n.t("image-panel.transform.y") }) }),
|
|
724
707
|
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: g.imageCommonPanelColumn, children: /* @__PURE__ */ u(
|
|
725
708
|
de,
|
|
@@ -734,7 +717,7 @@ function Di(i) {
|
|
|
734
717
|
}
|
|
735
718
|
) }) })
|
|
736
719
|
] }) }),
|
|
737
|
-
/* @__PURE__ */ u("div", { className:
|
|
720
|
+
/* @__PURE__ */ u("div", { className: y(g.imageCommonPanelColumn, g.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
|
|
738
721
|
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: g.imageCommonPanelColumn, children: n.t("image-panel.transform.rotate") }) }),
|
|
739
722
|
/* @__PURE__ */ u("div", { className: g.imageCommonPanelRow, children: /* @__PURE__ */ u("div", { className: g.imageCommonPanelColumn, children: /* @__PURE__ */ u(
|
|
740
723
|
de,
|
|
@@ -751,12 +734,12 @@ function Di(i) {
|
|
|
751
734
|
}
|
|
752
735
|
);
|
|
753
736
|
}
|
|
754
|
-
const
|
|
755
|
-
imageCommonPanel:
|
|
737
|
+
const Di = "univer-image-common-panel", Ui = {
|
|
738
|
+
imageCommonPanel: Di
|
|
756
739
|
}, Oe = "COMPONENT_SLIDE_SIDEBAR";
|
|
757
|
-
function
|
|
740
|
+
function Vi() {
|
|
758
741
|
var h, l, d;
|
|
759
|
-
const i = x(
|
|
742
|
+
const i = x(T), e = x(N), t = i.getCurrentUnitForType(E.UNIVER_SLIDE), n = (h = t == null ? void 0 : t.getActivePage()) == null ? void 0 : h.id;
|
|
760
743
|
if (!n) return null;
|
|
761
744
|
const s = (l = e.getRenderUnitByPageId(n, n).scene) == null ? void 0 : l.getTransformer();
|
|
762
745
|
if (!s) return null;
|
|
@@ -764,25 +747,25 @@ function Bi() {
|
|
|
764
747
|
if (!a)
|
|
765
748
|
return null;
|
|
766
749
|
const c = ((d = i.getFocusedUnit()) == null ? void 0 : d.getUnitId()) || "";
|
|
767
|
-
return /* @__PURE__ */ R("section", { className:
|
|
768
|
-
/* @__PURE__ */ u(
|
|
769
|
-
/* @__PURE__ */ u(
|
|
770
|
-
a.objectType === ge.RECT && /* @__PURE__ */ u(
|
|
750
|
+
return /* @__PURE__ */ R("section", { className: Ui.imageCommonPanel, children: [
|
|
751
|
+
/* @__PURE__ */ u(Mi, { pageId: n, unitId: c }),
|
|
752
|
+
/* @__PURE__ */ u(Ni, { pageId: n, unitId: c }),
|
|
753
|
+
a.objectType === ge.RECT && /* @__PURE__ */ u(wi, { pageId: n, unitId: c })
|
|
771
754
|
] });
|
|
772
755
|
}
|
|
773
|
-
const
|
|
756
|
+
const qe = {
|
|
774
757
|
id: "slide.command.insert-float-shape",
|
|
775
758
|
type: V.COMMAND,
|
|
776
759
|
handler: async (i) => {
|
|
777
760
|
var r;
|
|
778
|
-
const e = i.get(B), n = (r = i.get(
|
|
761
|
+
const e = i.get(B), n = (r = i.get(T).getFocusedUnit()) == null ? void 0 : r.getUnitId();
|
|
779
762
|
return e.executeCommand(Kt.id, { unitId: n });
|
|
780
763
|
}
|
|
781
764
|
}, Kt = {
|
|
782
765
|
id: "slide.operation.insert-float-shape",
|
|
783
766
|
type: V.OPERATION,
|
|
784
767
|
handler: async (i, e) => {
|
|
785
|
-
const t =
|
|
768
|
+
const t = It(6), n = i.get(T), r = e.unitId, s = n.getUnit(r);
|
|
786
769
|
if (!s) return !1;
|
|
787
770
|
const o = s.getActivePage(), a = Object.values(o.pageElements), c = a != null && a.length ? Math.max(...a.map((v) => v.zIndex)) : 20, h = {
|
|
788
771
|
id: t,
|
|
@@ -793,7 +776,7 @@ const Ze = {
|
|
|
793
776
|
height: 250,
|
|
794
777
|
title: t,
|
|
795
778
|
description: "",
|
|
796
|
-
type:
|
|
779
|
+
type: Ge.SHAPE,
|
|
797
780
|
shape: {
|
|
798
781
|
shapeType: vn.Rect,
|
|
799
782
|
text: "",
|
|
@@ -808,11 +791,11 @@ const Ze = {
|
|
|
808
791
|
const l = i.get(N), d = l.createObjectToPage(h, o.id, r);
|
|
809
792
|
return d && l.setObjectActiveByPage(d, o.id, r), !0;
|
|
810
793
|
}
|
|
811
|
-
},
|
|
794
|
+
}, He = {
|
|
812
795
|
id: "sidebar.operation.slide-shape",
|
|
813
796
|
type: V.COMMAND,
|
|
814
797
|
handler: async (i, e) => {
|
|
815
|
-
const { visible: t, objectType: n } = e, r = i.get(
|
|
798
|
+
const { visible: t, objectType: n } = e, r = i.get(Mt), s = i.get(ee);
|
|
816
799
|
let o = "", a = "";
|
|
817
800
|
return n === ge.RECT ? (o = "slide.sidebar.shape", a = Oe) : n === ge.IMAGE ? (o = "slide.sidebar.image", a = Oe) : n === ge.RICH_TEXT && (o = "slide.sidebar.text", a = Oe), t ? r.open({
|
|
818
801
|
header: { title: s.t(o) },
|
|
@@ -823,13 +806,13 @@ const Ze = {
|
|
|
823
806
|
}) : r.close(), !0;
|
|
824
807
|
}
|
|
825
808
|
}, Gt = "COMPONENT_SLIDE_IMAGE_POPUP_MENU";
|
|
826
|
-
var
|
|
827
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
809
|
+
var Bi = Object.getOwnPropertyDescriptor, ji = (i, e, t, n) => {
|
|
810
|
+
for (var r = n > 1 ? void 0 : n ? Bi(e, t) : e, s = i.length - 1, o; s >= 0; s--)
|
|
828
811
|
(o = i[s]) && (r = o(r) || r);
|
|
829
812
|
return r;
|
|
830
813
|
}, Pe = (i, e) => (t, n) => e(t, n, i);
|
|
831
|
-
function
|
|
832
|
-
const t =
|
|
814
|
+
function Li(i, e) {
|
|
815
|
+
const t = pt(i.left, i.top, e), n = pt(i.right, i.bottom, e);
|
|
833
816
|
return {
|
|
834
817
|
left: t.x,
|
|
835
818
|
top: t.y,
|
|
@@ -837,7 +820,7 @@ function Ai(i, e) {
|
|
|
837
820
|
bottom: n.y
|
|
838
821
|
};
|
|
839
822
|
}
|
|
840
|
-
function
|
|
823
|
+
function pt(i, e, t) {
|
|
841
824
|
const { scaleX: n, scaleY: r } = t.getAncestorScale(), s = t.getViewport(oe.VIEW);
|
|
842
825
|
if (!s)
|
|
843
826
|
return {
|
|
@@ -862,14 +845,14 @@ let Te = class extends Ve {
|
|
|
862
845
|
right: c + l,
|
|
863
846
|
top: h,
|
|
864
847
|
bottom: h + d
|
|
865
|
-
}, p = a.getCanvasElement(), m = p.getBoundingClientRect(), _ = Tn(p.style.width), { scaleX: b, scaleY: P } = o.getAncestorScale(), w =
|
|
848
|
+
}, p = a.getCanvasElement(), m = p.getBoundingClientRect(), _ = Tn(p.style.width), { scaleX: b, scaleY: P } = o.getAncestorScale(), w = Li(C, o), { top: D, left: j, width: O } = m, K = O / _;
|
|
866
849
|
return {
|
|
867
850
|
left: w.left * K * b + j + v,
|
|
868
851
|
right: w.right * K * b + j + v,
|
|
869
852
|
top: w.top * K * P + D + f,
|
|
870
853
|
bottom: w.bottom * K * P + D + f
|
|
871
854
|
};
|
|
872
|
-
})(), r = new Q(n), s = new
|
|
855
|
+
})(), r = new Q(n), s = new Xe();
|
|
873
856
|
return {
|
|
874
857
|
position: n,
|
|
875
858
|
position$: r,
|
|
@@ -898,14 +881,14 @@ let Te = class extends Ve {
|
|
|
898
881
|
};
|
|
899
882
|
}
|
|
900
883
|
};
|
|
901
|
-
Te =
|
|
884
|
+
Te = ji([
|
|
902
885
|
Pe(0, X(wn)),
|
|
903
886
|
Pe(1, Y),
|
|
904
|
-
Pe(2,
|
|
887
|
+
Pe(2, T),
|
|
905
888
|
Pe(3, B)
|
|
906
889
|
], Te);
|
|
907
|
-
var
|
|
908
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
890
|
+
var Ai = Object.getOwnPropertyDescriptor, $i = (i, e, t, n) => {
|
|
891
|
+
for (var r = n > 1 ? void 0 : n ? Ai(e, t) : e, s = i.length - 1, o; s >= 0; s--)
|
|
909
892
|
(o = i[s]) && (r = o(r) || r);
|
|
910
893
|
return r;
|
|
911
894
|
}, q = (i, e) => (t, n) => e(t, n, i);
|
|
@@ -936,7 +919,7 @@ let Me = class extends pe {
|
|
|
936
919
|
if (!a) return;
|
|
937
920
|
let c;
|
|
938
921
|
this.disposeWithMe(
|
|
939
|
-
|
|
922
|
+
bt(
|
|
940
923
|
a.createControl$.subscribe(() => {
|
|
941
924
|
const l = a.getSelectedObjectMap();
|
|
942
925
|
if (l.size > 1) {
|
|
@@ -954,7 +937,7 @@ let Me = class extends pe {
|
|
|
954
937
|
extraProps: {
|
|
955
938
|
menuItems: this._getMenuItemsByObjectType(d.objectType, v, e)
|
|
956
939
|
}
|
|
957
|
-
})), this._sidebarService.visible && this._commandService.executeCommand(
|
|
940
|
+
})), this._sidebarService.visible && this._commandService.executeCommand(He.id, {
|
|
958
941
|
visible: !0,
|
|
959
942
|
objectType: d.objectType
|
|
960
943
|
});
|
|
@@ -991,7 +974,7 @@ let Me = class extends pe {
|
|
|
991
974
|
return [{
|
|
992
975
|
label: "slide.popup.edit",
|
|
993
976
|
index: 0,
|
|
994
|
-
commandId:
|
|
977
|
+
commandId: He.id,
|
|
995
978
|
commandParams: {
|
|
996
979
|
visible: !0,
|
|
997
980
|
objectType: e
|
|
@@ -1000,7 +983,7 @@ let Me = class extends pe {
|
|
|
1000
983
|
}, {
|
|
1001
984
|
label: "slide.popup.delete",
|
|
1002
985
|
index: 5,
|
|
1003
|
-
commandId:
|
|
986
|
+
commandId: Vt.id,
|
|
1004
987
|
commandParams: {
|
|
1005
988
|
id: t,
|
|
1006
989
|
unitId: n
|
|
@@ -1009,13 +992,13 @@ let Me = class extends pe {
|
|
|
1009
992
|
}];
|
|
1010
993
|
}
|
|
1011
994
|
};
|
|
1012
|
-
Me =
|
|
995
|
+
Me = $i([
|
|
1013
996
|
q(0, X(Te)),
|
|
1014
997
|
q(1, Y),
|
|
1015
|
-
q(2,
|
|
998
|
+
q(2, T),
|
|
1016
999
|
q(3, Ce),
|
|
1017
1000
|
q(4, X(N)),
|
|
1018
|
-
q(5,
|
|
1001
|
+
q(5, Mt),
|
|
1019
1002
|
q(6, B)
|
|
1020
1003
|
], Me);
|
|
1021
1004
|
const we = {
|
|
@@ -1023,13 +1006,13 @@ const we = {
|
|
|
1023
1006
|
type: V.OPERATION,
|
|
1024
1007
|
handler: () => !0
|
|
1025
1008
|
}, he = Cn("SLIDE_EDITOR");
|
|
1026
|
-
var
|
|
1027
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
1009
|
+
var Hi = Object.getOwnPropertyDescriptor, Fi = (i, e, t, n) => {
|
|
1010
|
+
for (var r = n > 1 ? void 0 : n ? Hi(e, t) : e, s = i.length - 1, o; s >= 0; s--)
|
|
1028
1011
|
(o = i[s]) && (r = o(r) || r);
|
|
1029
1012
|
return r;
|
|
1030
1013
|
}, je = (i, e) => (t, n) => e(t, n, i);
|
|
1031
|
-
const
|
|
1032
|
-
let
|
|
1014
|
+
const Je = Pt("univer.slide-editor-bridge.service");
|
|
1015
|
+
let Fe = class extends Ve {
|
|
1033
1016
|
constructor(e, t, n) {
|
|
1034
1017
|
super();
|
|
1035
1018
|
I(this, "_editorUnitId", he);
|
|
@@ -1047,7 +1030,7 @@ let He = class extends Ve {
|
|
|
1047
1030
|
I(this, "visible$", this._visible$.asObservable());
|
|
1048
1031
|
I(this, "_afterVisible$", new Q(this._visibleParam));
|
|
1049
1032
|
I(this, "afterVisible$", this._afterVisible$.asObservable());
|
|
1050
|
-
I(this, "endEditing$", new
|
|
1033
|
+
I(this, "endEditing$", new Ut());
|
|
1051
1034
|
I(this, "_currentEditRectInfo");
|
|
1052
1035
|
this._editorService = e, this._contextService = t, this._renderManagerService = n;
|
|
1053
1036
|
}
|
|
@@ -1062,7 +1045,7 @@ let He = class extends Ve {
|
|
|
1062
1045
|
* @editorInfo editorInfo
|
|
1063
1046
|
*/
|
|
1064
1047
|
setEditorRect(e) {
|
|
1065
|
-
this._currentEditRectInfo = e, this._editorService.getFocusEditor() || (this._editorService.focus(he), this._contextService.setContextValue(xe, !1), this._contextService.setContextValue(
|
|
1048
|
+
this._currentEditRectInfo = e, this._editorService.getFocusEditor() || (this._editorService.focus(he), this._contextService.setContextValue(xe, !1), this._contextService.setContextValue(Et, !1), this._contextService.setContextValue(Rt, !1));
|
|
1066
1049
|
const t = this.getEditRectState();
|
|
1067
1050
|
this._currentEditRectState = t, this._currentEditRectState$.next(t);
|
|
1068
1051
|
}
|
|
@@ -1087,7 +1070,7 @@ let He = class extends Ve {
|
|
|
1087
1070
|
textRotation: { a: 0, v: 0 },
|
|
1088
1071
|
wrapStrategy: 0,
|
|
1089
1072
|
verticalAlign: ye.TOP,
|
|
1090
|
-
horizontalAlign:
|
|
1073
|
+
horizontalAlign: Ot.LEFT,
|
|
1091
1074
|
paddingData: { t: 0, b: 1, l: 2, r: 2 }
|
|
1092
1075
|
}, a = t.richTextObj.width, c = t.richTextObj.height, h = t.richTextObj.left, l = t.richTextObj.top, d = {
|
|
1093
1076
|
left: 0,
|
|
@@ -1166,12 +1149,12 @@ let He = class extends Ve {
|
|
|
1166
1149
|
};
|
|
1167
1150
|
}
|
|
1168
1151
|
};
|
|
1169
|
-
|
|
1170
|
-
je(0,
|
|
1152
|
+
Fe = Fi([
|
|
1153
|
+
je(0, Ye),
|
|
1171
1154
|
je(1, Ce),
|
|
1172
1155
|
je(2, Y)
|
|
1173
|
-
],
|
|
1174
|
-
class
|
|
1156
|
+
], Fe);
|
|
1157
|
+
class zi {
|
|
1175
1158
|
constructor() {
|
|
1176
1159
|
I(this, "_state", null);
|
|
1177
1160
|
I(this, "_rect", null);
|
|
@@ -1205,16 +1188,16 @@ class Wi {
|
|
|
1205
1188
|
this._state$.next(e);
|
|
1206
1189
|
}
|
|
1207
1190
|
}
|
|
1208
|
-
const
|
|
1191
|
+
const Qe = Pt(
|
|
1209
1192
|
"univer.slide-editor-manager.service"
|
|
1210
1193
|
);
|
|
1211
|
-
var Z = /* @__PURE__ */ ((i) => (i[i.InitialState = 0] = "InitialState", i[i.StartEditor = 1] = "StartEditor", i[i.CursorChange = 2] = "CursorChange", i))(Z || {}),
|
|
1212
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
1194
|
+
var Z = /* @__PURE__ */ ((i) => (i[i.InitialState = 0] = "InitialState", i[i.StartEditor = 1] = "StartEditor", i[i.CursorChange = 2] = "CursorChange", i))(Z || {}), Wi = Object.getOwnPropertyDescriptor, ki = (i, e, t, n) => {
|
|
1195
|
+
for (var r = n > 1 ? void 0 : n ? Wi(e, t) : e, s = i.length - 1, o; s >= 0; s--)
|
|
1213
1196
|
(o = i[s]) && (r = o(r) || r);
|
|
1214
1197
|
return r;
|
|
1215
1198
|
}, A = (i, e) => (t, n) => e(t, n, i);
|
|
1216
|
-
const
|
|
1217
|
-
let
|
|
1199
|
+
const Ct = -1e3, ft = 5, Ki = 2;
|
|
1200
|
+
let ze = class extends Ve {
|
|
1218
1201
|
constructor(e, t, n, r, s, o, a, c, h, l, d, v) {
|
|
1219
1202
|
super();
|
|
1220
1203
|
/**
|
|
@@ -1228,7 +1211,7 @@ let Fe = class extends Ve {
|
|
|
1228
1211
|
f && f.getUnitId() === this._renderContext.unitId ? this._d = this._init() : (this._disposeCurrent(), this._isUnitEditing && (this._handleEditorInvisible({
|
|
1229
1212
|
visible: !1,
|
|
1230
1213
|
eventType: J.Keyboard,
|
|
1231
|
-
keycode:
|
|
1214
|
+
keycode: M.ESC,
|
|
1232
1215
|
unitId: this._renderContext.unitId
|
|
1233
1216
|
}), this._isUnitEditing = !1));
|
|
1234
1217
|
})), this._initEditorVisibilityListener();
|
|
@@ -1241,7 +1224,7 @@ let Fe = class extends Ve {
|
|
|
1241
1224
|
(e = this._d) == null || e.dispose(), this._d = null;
|
|
1242
1225
|
}
|
|
1243
1226
|
_init() {
|
|
1244
|
-
const e = new
|
|
1227
|
+
const e = new Xe();
|
|
1245
1228
|
return this._subscribeToCurrentCell(e), this._initialKeyboardListener(e), this._initialCursorSync(e), this._listenEditorFocus(e), this._commandExecutedListener(e), setTimeout(() => {
|
|
1246
1229
|
this._cursorStateListener(e);
|
|
1247
1230
|
}, 1e3), e;
|
|
@@ -1258,17 +1241,16 @@ let Fe = class extends Ve {
|
|
|
1258
1241
|
}
|
|
1259
1242
|
_getEditorSkeleton(e) {
|
|
1260
1243
|
var t;
|
|
1261
|
-
return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(
|
|
1244
|
+
return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(gt).getSkeleton();
|
|
1262
1245
|
}
|
|
1263
1246
|
_getEditorViewModel(e) {
|
|
1264
1247
|
var t;
|
|
1265
|
-
return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(
|
|
1248
|
+
return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(gt).getViewModel();
|
|
1266
1249
|
}
|
|
1267
1250
|
_initialCursorSync(e) {
|
|
1268
1251
|
e.add(this._cellEditorManagerService.focus$.pipe(Wn((t) => !!t)).subscribe(() => {
|
|
1269
|
-
var
|
|
1270
|
-
|
|
1271
|
-
t && t.sync();
|
|
1252
|
+
var t;
|
|
1253
|
+
(t = $e(E.UNIVER_DOC, this._instanceSrv, this._renderManagerService)) == null || t.with(ht).sync();
|
|
1272
1254
|
}));
|
|
1273
1255
|
}
|
|
1274
1256
|
/**
|
|
@@ -1277,21 +1259,19 @@ let Fe = class extends Ve {
|
|
|
1277
1259
|
*/
|
|
1278
1260
|
_subscribeToCurrentCell(e) {
|
|
1279
1261
|
e.add(this._editorBridgeService.currentEditRectState$.subscribe((t) => {
|
|
1280
|
-
var
|
|
1281
|
-
if (t == null || this._contextService.getContextValue(
|
|
1262
|
+
var d;
|
|
1263
|
+
if (t == null || this._contextService.getContextValue(Et) || this._contextService.getContextValue(Rt))
|
|
1282
1264
|
return;
|
|
1283
1265
|
const {
|
|
1284
1266
|
position: { startX: n, endX: r },
|
|
1285
1267
|
documentLayoutObject: { textRotation: s, wrapStrategy: o, documentModel: a },
|
|
1286
1268
|
scaleX: c,
|
|
1287
1269
|
editorUnitId: h
|
|
1288
|
-
} = t, { vertexAngle: l } =
|
|
1289
|
-
a.updateDocumentId(h), o ===
|
|
1270
|
+
} = t, { vertexAngle: l } = st(s);
|
|
1271
|
+
a.updateDocumentId(h), o === nt.WRAP && l === 0 && a.updateDocumentDataPageSize((r - n) / c), this._instanceSrv.changeDoc(h, a), this._contextService.setContextValue(Sn, !0), this._textSelectionManagerService.replaceTextRanges([{
|
|
1290
1272
|
startOffset: 0,
|
|
1291
1273
|
endOffset: 0
|
|
1292
|
-
}]);
|
|
1293
|
-
const d = (v = this._renderManagerService.getCurrentTypeOfRenderer(E.UNIVER_DOC)) == null ? void 0 : v.with(gt);
|
|
1294
|
-
d && d.activate(pt, pt);
|
|
1274
|
+
}]), (d = $e(E.UNIVER_DOC, this._instanceSrv, this._renderManagerService)) == null || d.with(ht).activate(Ct, Ct);
|
|
1295
1275
|
}));
|
|
1296
1276
|
}
|
|
1297
1277
|
/**
|
|
@@ -1331,8 +1311,8 @@ let Fe = class extends Ve {
|
|
|
1331
1311
|
* to determine whether it needs to be automatically widened.
|
|
1332
1312
|
*/
|
|
1333
1313
|
_predictingSize(e, t, n, r, s = 1, o = 1) {
|
|
1334
|
-
const { startX: a, endX: c } = e, { textRotation: h, wrapStrategy: l } = r, d = r.documentModel, { vertexAngle: v } =
|
|
1335
|
-
if (l ===
|
|
1314
|
+
const { startX: a, endX: c } = e, { textRotation: h, wrapStrategy: l } = r, d = r.documentModel, { vertexAngle: v } = st(h), f = document.body.clientWidth;
|
|
1315
|
+
if (l === nt.WRAP && v === 0) {
|
|
1336
1316
|
const { actualWidth: m, actualHeight: _ } = n.getActualSize();
|
|
1337
1317
|
return {
|
|
1338
1318
|
actualWidth: m * s,
|
|
@@ -1342,8 +1322,8 @@ let Fe = class extends Ve {
|
|
|
1342
1322
|
d == null || d.updateDocumentDataPageSize((f - a - t.left) / s), n.calculate();
|
|
1343
1323
|
const C = n.getActualSize();
|
|
1344
1324
|
let p = c - a;
|
|
1345
|
-
return p < C.actualWidth * s +
|
|
1346
|
-
horizontalAlign:
|
|
1325
|
+
return p < C.actualWidth * s + ft * s && (p = C.actualWidth * s + ft * s), d == null || d.updateDocumentDataPageSize(p / s), d == null || d.updateDocumentRenderConfig({
|
|
1326
|
+
horizontalAlign: Ot.UNSPECIFIED,
|
|
1347
1327
|
cellValueType: void 0
|
|
1348
1328
|
}), {
|
|
1349
1329
|
actualWidth: p,
|
|
@@ -1365,9 +1345,9 @@ let Fe = class extends Ve {
|
|
|
1365
1345
|
const d = this._renderContext.engine.getCanvasElement(), v = d.getBoundingClientRect(), f = h(d.style.width), { top: C, left: p, width: m } = v, _ = m / f;
|
|
1366
1346
|
let { startX: b, startY: P } = n;
|
|
1367
1347
|
b += r.left, P += r.top;
|
|
1368
|
-
const { document: w, scene: D, engine: j } = c, O = D.getViewport(
|
|
1348
|
+
const { document: w, scene: D, engine: j } = c, O = D.getViewport(mt.VIEW_MAIN), K = document.body.clientHeight - P - r.top - Ki * 2, ae = document.body.clientWidth - b - r.left;
|
|
1369
1349
|
let z = t, W = O == null ? void 0 : O.getScrollBar();
|
|
1370
|
-
z > K ? (z = K, W == null ? O && new
|
|
1350
|
+
z > K ? (z = K, W == null ? O && new yt(O, { enableHorizontal: !1, barSize: 8 }) : O == null || O.resetCanvasSizeAndUpdateScroll()) : (W = null, (S = O == null ? void 0 : O.getScrollBar()) == null || S.dispose()), e += (W == null ? void 0 : W.barSize) || 0, e = Math.min(e, ae), b -= se, P -= se, this._addBackground(D, e / o, t / a, s);
|
|
1371
1351
|
const { scaleX: te, scaleY: ne } = D.getPrecisionScale();
|
|
1372
1352
|
D.transformByState({
|
|
1373
1353
|
width: e * _ / o,
|
|
@@ -1376,8 +1356,8 @@ let Fe = class extends Ve {
|
|
|
1376
1356
|
scaleY: a * _
|
|
1377
1357
|
}), w.resize(e / o, t / a), setTimeout(() => {
|
|
1378
1358
|
j.resizeBySize(
|
|
1379
|
-
|
|
1380
|
-
|
|
1359
|
+
ot(e, te),
|
|
1360
|
+
ot(z, ne)
|
|
1381
1361
|
);
|
|
1382
1362
|
}, 0);
|
|
1383
1363
|
const Se = this._layoutService.getContentElement().getBoundingClientRect(), Ie = d.getBoundingClientRect();
|
|
@@ -1396,7 +1376,7 @@ let Fe = class extends Ve {
|
|
|
1396
1376
|
const s = "_backgroundRectHelperColor_", o = e.getObject(s);
|
|
1397
1377
|
o == null && r == null || (o == null ? e.addObjects(
|
|
1398
1378
|
[
|
|
1399
|
-
new
|
|
1379
|
+
new Tt(s, {
|
|
1400
1380
|
width: t,
|
|
1401
1381
|
height: n,
|
|
1402
1382
|
fill: r,
|
|
@@ -1444,7 +1424,7 @@ let Fe = class extends Ve {
|
|
|
1444
1424
|
return;
|
|
1445
1425
|
this._fitTextSize(r, o, C, s, a, c);
|
|
1446
1426
|
const p = f.getBody().dataStream.length - 2 || 0;
|
|
1447
|
-
(m = v.getViewport(
|
|
1427
|
+
(m = v.getViewport(mt.VIEW_MAIN)) == null || m.scrollToViewportPos({
|
|
1448
1428
|
viewportScrollX: Number.POSITIVE_INFINITY
|
|
1449
1429
|
}), this._textSelectionManagerService.replaceTextRanges([
|
|
1450
1430
|
{
|
|
@@ -1488,7 +1468,7 @@ let Fe = class extends Ve {
|
|
|
1488
1468
|
this._handleEditorVisible({ visible: !0, eventType: 3, unitId: n });
|
|
1489
1469
|
}
|
|
1490
1470
|
_getEditorObject() {
|
|
1491
|
-
return
|
|
1471
|
+
return Gi(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
|
|
1492
1472
|
}
|
|
1493
1473
|
async _handleEditorInvisible(e) {
|
|
1494
1474
|
const { keycode: t } = e;
|
|
@@ -1510,22 +1490,22 @@ let Fe = class extends Ve {
|
|
|
1510
1490
|
_moveCursor(e) {
|
|
1511
1491
|
if (e != null)
|
|
1512
1492
|
switch (L.LEFT, e) {
|
|
1513
|
-
case
|
|
1493
|
+
case M.ENTER:
|
|
1514
1494
|
L.DOWN;
|
|
1515
1495
|
break;
|
|
1516
|
-
case
|
|
1496
|
+
case M.TAB:
|
|
1517
1497
|
L.RIGHT;
|
|
1518
1498
|
break;
|
|
1519
|
-
case
|
|
1499
|
+
case M.ARROW_DOWN:
|
|
1520
1500
|
L.DOWN;
|
|
1521
1501
|
break;
|
|
1522
|
-
case
|
|
1502
|
+
case M.ARROW_UP:
|
|
1523
1503
|
L.UP;
|
|
1524
1504
|
break;
|
|
1525
|
-
case
|
|
1505
|
+
case M.ARROW_LEFT:
|
|
1526
1506
|
L.LEFT;
|
|
1527
1507
|
break;
|
|
1528
|
-
case
|
|
1508
|
+
case M.ARROW_RIGHT:
|
|
1529
1509
|
L.RIGHT;
|
|
1530
1510
|
break;
|
|
1531
1511
|
}
|
|
@@ -1539,34 +1519,34 @@ let Fe = class extends Ve {
|
|
|
1539
1519
|
if (!t)
|
|
1540
1520
|
return;
|
|
1541
1521
|
const { document: n } = t;
|
|
1542
|
-
e.add(
|
|
1522
|
+
e.add(bt(n.onPointerDown$.subscribeEvent(() => {
|
|
1543
1523
|
this._cursorChange === Z.StartEditor && (this._cursorChange = Z.CursorChange);
|
|
1544
1524
|
})));
|
|
1545
1525
|
}
|
|
1546
1526
|
// TODO: @JOCS, is it necessary to move these commands MoveSelectionOperation\MoveCursorOperation to shortcut? and use multi-commands?
|
|
1547
1527
|
_moveInEditor(e, t) {
|
|
1548
1528
|
let n = L.LEFT;
|
|
1549
|
-
e ===
|
|
1529
|
+
e === M.ARROW_DOWN ? n = L.DOWN : e === M.ARROW_UP ? n = L.UP : e === M.ARROW_RIGHT && (n = L.RIGHT), t ? this._commandService.executeCommand(Xn.id, {
|
|
1550
1530
|
direction: n
|
|
1551
1531
|
}) : this._commandService.executeCommand(Yn.id, {
|
|
1552
1532
|
direction: n
|
|
1553
1533
|
});
|
|
1554
1534
|
}
|
|
1555
1535
|
};
|
|
1556
|
-
|
|
1536
|
+
ze = ki([
|
|
1557
1537
|
A(1, Nn),
|
|
1558
1538
|
A(2, _n),
|
|
1559
1539
|
A(3, Ce),
|
|
1560
|
-
A(4,
|
|
1540
|
+
A(4, T),
|
|
1561
1541
|
A(5, Y),
|
|
1562
|
-
A(6,
|
|
1563
|
-
A(7,
|
|
1542
|
+
A(6, Je),
|
|
1543
|
+
A(7, Qe),
|
|
1564
1544
|
A(8, X(kn)),
|
|
1565
1545
|
A(9, B),
|
|
1566
1546
|
A(10, X(ee)),
|
|
1567
|
-
A(11,
|
|
1568
|
-
],
|
|
1569
|
-
function
|
|
1547
|
+
A(11, Ye)
|
|
1548
|
+
], ze);
|
|
1549
|
+
function Gi(i, e) {
|
|
1570
1550
|
if (i == null)
|
|
1571
1551
|
return;
|
|
1572
1552
|
const t = e.getRenderById(i);
|
|
@@ -1580,12 +1560,12 @@ function Xi(i, e) {
|
|
|
1580
1560
|
engine: s
|
|
1581
1561
|
};
|
|
1582
1562
|
}
|
|
1583
|
-
var
|
|
1584
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
1563
|
+
var Xi = Object.getOwnPropertyDescriptor, Yi = (i, e, t, n) => {
|
|
1564
|
+
for (var r = n > 1 ? void 0 : n ? Xi(e, t) : e, s = i.length - 1, o; s >= 0; s--)
|
|
1585
1565
|
(o = i[s]) && (r = o(r) || r);
|
|
1586
1566
|
return r;
|
|
1587
1567
|
}, Le = (i, e) => (t, n) => e(t, n, i);
|
|
1588
|
-
let
|
|
1568
|
+
let We = class extends pe {
|
|
1589
1569
|
constructor(e, t, n, r) {
|
|
1590
1570
|
super();
|
|
1591
1571
|
/**
|
|
@@ -1594,7 +1574,7 @@ let ze = class extends pe {
|
|
|
1594
1574
|
// private _cursorChange: CursorChange = CursorChange.InitialState;
|
|
1595
1575
|
/** If the corresponding unit is active and prepared for editing. */
|
|
1596
1576
|
// private _isUnitEditing = false;
|
|
1597
|
-
I(this, "setSlideTextEditor$", new
|
|
1577
|
+
I(this, "setSlideTextEditor$", new Ut());
|
|
1598
1578
|
I(this, "_curRichText", null);
|
|
1599
1579
|
I(this, "_d");
|
|
1600
1580
|
this._renderContext = e, this._instanceSrv = t, this._commandService = n, this._editorBridgeService = r, this.disposeWithMe(this._instanceSrv.getCurrentTypeOfUnit$(E.UNIVER_SLIDE).subscribe((s) => {
|
|
@@ -1602,7 +1582,7 @@ let ze = class extends pe {
|
|
|
1602
1582
|
}));
|
|
1603
1583
|
}
|
|
1604
1584
|
_init() {
|
|
1605
|
-
const e = new
|
|
1585
|
+
const e = new Xe();
|
|
1606
1586
|
return this._initEventListener(e), e;
|
|
1607
1587
|
}
|
|
1608
1588
|
_disposeCurrent() {
|
|
@@ -1693,17 +1673,17 @@ let ze = class extends pe {
|
|
|
1693
1673
|
this._editorBridgeService.changeVisible({ visible: e, eventType: J.PointerDown, unitId: t });
|
|
1694
1674
|
}
|
|
1695
1675
|
};
|
|
1696
|
-
|
|
1697
|
-
Le(1,
|
|
1676
|
+
We = Yi([
|
|
1677
|
+
Le(1, T),
|
|
1698
1678
|
Le(2, B),
|
|
1699
|
-
Le(3,
|
|
1700
|
-
],
|
|
1679
|
+
Le(3, Je)
|
|
1680
|
+
], We);
|
|
1701
1681
|
const Xt = {
|
|
1702
1682
|
id: "slide.operation.activate-slide",
|
|
1703
1683
|
type: V.OPERATION,
|
|
1704
1684
|
handler: (i, e) => {
|
|
1705
1685
|
var h, l;
|
|
1706
|
-
const t = e.unitId, n = i.get(N), s = i.get(
|
|
1686
|
+
const t = e.unitId, n = i.get(N), s = i.get(T).getUnit(t), o = (h = s == null ? void 0 : s.getActivePage()) == null ? void 0 : h.id;
|
|
1707
1687
|
if (!o) return !1;
|
|
1708
1688
|
const a = n.getRenderUnitByPageId(o, t);
|
|
1709
1689
|
if (!a) return !1;
|
|
@@ -1715,14 +1695,14 @@ const Xt = {
|
|
|
1715
1695
|
type: V.OPERATION,
|
|
1716
1696
|
handler: (i, e) => {
|
|
1717
1697
|
const t = e.unitId;
|
|
1718
|
-
return i.get(
|
|
1698
|
+
return i.get(T).getUnit(t) ? (i.get(N).appendPage(t), !0) : !1;
|
|
1719
1699
|
}
|
|
1720
|
-
},
|
|
1700
|
+
}, et = {
|
|
1721
1701
|
id: "slide.command.insert-float-image",
|
|
1722
1702
|
type: V.COMMAND,
|
|
1723
1703
|
handler: async (i, e) => {
|
|
1724
1704
|
var j;
|
|
1725
|
-
const t = i.get(
|
|
1705
|
+
const t = i.get(T), n = (j = t.getCurrentUnitForType(E.UNIVER_SLIDE)) == null ? void 0 : j.getUnitId();
|
|
1726
1706
|
if (!n) return !1;
|
|
1727
1707
|
const s = await i.get(Dn).openFile({
|
|
1728
1708
|
multiple: !0,
|
|
@@ -1742,7 +1722,7 @@ const Xt = {
|
|
|
1742
1722
|
height: f,
|
|
1743
1723
|
title: "",
|
|
1744
1724
|
description: "",
|
|
1745
|
-
type:
|
|
1725
|
+
type: Ge.IMAGE,
|
|
1746
1726
|
image: {
|
|
1747
1727
|
imageProperties: {
|
|
1748
1728
|
contentUrl: d,
|
|
@@ -1757,19 +1737,19 @@ const Xt = {
|
|
|
1757
1737
|
const w = i.get(N), D = w.createObjectToPage(P, m.id, n);
|
|
1758
1738
|
return D && w.setObjectActiveByPage(D, m.id, n), !0;
|
|
1759
1739
|
}
|
|
1760
|
-
},
|
|
1740
|
+
}, tt = {
|
|
1761
1741
|
id: "slide.command.add-text",
|
|
1762
1742
|
type: V.COMMAND,
|
|
1763
1743
|
handler: async (i) => {
|
|
1764
1744
|
var r;
|
|
1765
|
-
const e = i.get(B), n = (r = i.get(
|
|
1745
|
+
const e = i.get(B), n = (r = i.get(T).getFocusedUnit()) == null ? void 0 : r.getUnitId();
|
|
1766
1746
|
return await e.executeCommand(Zt.id, { unitId: n });
|
|
1767
1747
|
}
|
|
1768
1748
|
}, Zt = {
|
|
1769
1749
|
id: "slide.operation.add-text",
|
|
1770
1750
|
type: V.OPERATION,
|
|
1771
1751
|
handler: async (i, e) => {
|
|
1772
|
-
const t = e.unitId, n =
|
|
1752
|
+
const t = e.unitId, n = It(6), r = 220, s = 40, o = 230, a = 142, c = (e == null ? void 0 : e.text) || "A New Text", l = i.get(T).getUnit(t);
|
|
1773
1753
|
if (!l) return !1;
|
|
1774
1754
|
const d = l.getActivePage(), v = Object.values(d.pageElements), f = v != null && v.length ? Math.max(...v.map((_) => _.zIndex)) : 21, C = {
|
|
1775
1755
|
id: n,
|
|
@@ -1780,7 +1760,7 @@ const Xt = {
|
|
|
1780
1760
|
height: s,
|
|
1781
1761
|
title: "text",
|
|
1782
1762
|
description: "",
|
|
1783
|
-
type:
|
|
1763
|
+
type: Ge.TEXT,
|
|
1784
1764
|
richText: {
|
|
1785
1765
|
text: c,
|
|
1786
1766
|
fs: 30,
|
|
@@ -1798,13 +1778,14 @@ const Xt = {
|
|
|
1798
1778
|
id: "slide.operation.set-slide-page-thumb",
|
|
1799
1779
|
type: V.OPERATION,
|
|
1800
1780
|
handler: (i, e) => (i.get(N).createThumbs(e.unitId), !0)
|
|
1801
|
-
},
|
|
1802
|
-
imagePopupMenu:
|
|
1803
|
-
imagePopupMenuItem:
|
|
1804
|
-
imagePopupMenuItemTitle:
|
|
1805
|
-
btnContainer:
|
|
1806
|
-
btnContainerExpand:
|
|
1807
|
-
}
|
|
1781
|
+
}, Zi = "univer-image-popup-menu", qi = "univer-image-popup-menu-item", Ji = "univer-image-popup-menu-item-title", Qi = "univer-btn-container", er = "univer-btn-container-expand", ue = {
|
|
1782
|
+
imagePopupMenu: Zi,
|
|
1783
|
+
imagePopupMenuItem: qi,
|
|
1784
|
+
imagePopupMenuItemTitle: Ji,
|
|
1785
|
+
btnContainer: Qi,
|
|
1786
|
+
btnContainerExpand: er
|
|
1787
|
+
};
|
|
1788
|
+
function tr(i) {
|
|
1808
1789
|
var C, p;
|
|
1809
1790
|
const e = (p = (C = i.popup) == null ? void 0 : C.extraProps) == null ? void 0 : p.menuItems;
|
|
1810
1791
|
if (!e)
|
|
@@ -1824,36 +1805,43 @@ const Xt = {
|
|
|
1824
1805
|
onMouseEnter: c,
|
|
1825
1806
|
onMouseLeave: h,
|
|
1826
1807
|
children: /* @__PURE__ */ u(
|
|
1827
|
-
|
|
1808
|
+
wt,
|
|
1828
1809
|
{
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
"li",
|
|
1810
|
+
align: "start",
|
|
1811
|
+
overlay: /* @__PURE__ */ u(
|
|
1812
|
+
"ul",
|
|
1833
1813
|
{
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1814
|
+
className: y(ue.imagePopupMenu, `
|
|
1815
|
+
univer-box-border univer-p-2 univer-text-sm univer-theme
|
|
1816
|
+
`),
|
|
1817
|
+
children: f.map((m) => /* @__PURE__ */ u(
|
|
1818
|
+
"li",
|
|
1819
|
+
{
|
|
1820
|
+
onClick: () => d(m),
|
|
1821
|
+
className: ue.imagePopupMenuItem,
|
|
1822
|
+
children: /* @__PURE__ */ u("span", { className: ue.imagePopupMenuItemTitle, children: n.t(m.label) })
|
|
1823
|
+
},
|
|
1824
|
+
m.index
|
|
1825
|
+
))
|
|
1826
|
+
}
|
|
1827
|
+
),
|
|
1828
|
+
open: r,
|
|
1829
|
+
onOpenChange: l,
|
|
1842
1830
|
children: /* @__PURE__ */ R(
|
|
1843
1831
|
"div",
|
|
1844
1832
|
{
|
|
1845
|
-
className:
|
|
1833
|
+
className: y(ue.btnContainer, {
|
|
1846
1834
|
[ue.btnContainerExpand]: r
|
|
1847
1835
|
}),
|
|
1848
1836
|
children: [
|
|
1849
1837
|
/* @__PURE__ */ u(
|
|
1850
|
-
|
|
1838
|
+
Lt,
|
|
1851
1839
|
{
|
|
1852
1840
|
style: { color: "#35322B" },
|
|
1853
1841
|
extend: { colorChannel1: "rgb(var(--green-700, #409f11))" }
|
|
1854
1842
|
}
|
|
1855
1843
|
),
|
|
1856
|
-
v && /* @__PURE__ */ u(
|
|
1844
|
+
v && /* @__PURE__ */ u(Ze, { style: { color: "#CCCCCC", fontSize: "8px", marginLeft: "8px" } })
|
|
1857
1845
|
]
|
|
1858
1846
|
}
|
|
1859
1847
|
)
|
|
@@ -1861,20 +1849,21 @@ const Xt = {
|
|
|
1861
1849
|
)
|
|
1862
1850
|
}
|
|
1863
1851
|
);
|
|
1864
|
-
}
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1852
|
+
}
|
|
1853
|
+
const nr = "univer-slide-bar", ir = "univer-slide-bar-content", rr = "univer-slide-bar-content-header", sr = "univer-slide-bar-item", or = "univer-slide-bar-box", ar = "univer-slide-bar-item-active", ie = {
|
|
1854
|
+
slideBar: nr,
|
|
1855
|
+
slideBarContent: ir,
|
|
1856
|
+
slideBarContentHeader: rr,
|
|
1857
|
+
slideBarItem: sr,
|
|
1858
|
+
slideBarBox: or,
|
|
1859
|
+
slideBarItemActive: ar
|
|
1871
1860
|
};
|
|
1872
|
-
function
|
|
1861
|
+
function cr() {
|
|
1873
1862
|
var C, p;
|
|
1874
|
-
const i = x(
|
|
1863
|
+
const i = x(T), e = x(B), t = x(Y), n = x(ee), r = Dt(null), s = i.getCurrentUnitForType(E.UNIVER_SLIDE), o = s == null ? void 0 : s.getPages(), a = s == null ? void 0 : s.getPageOrder();
|
|
1875
1864
|
if (!o || !a)
|
|
1876
1865
|
return null;
|
|
1877
|
-
const c = a.map((m) => o[m]), [h, l] = G((p = (C = s == null ? void 0 : s.getActivePage()) == null ? void 0 : C.id) != null ? p : null), d = zn(() => c.map(() =>
|
|
1866
|
+
const c = a.map((m) => o[m]), [h, l] = G((p = (C = s == null ? void 0 : s.getActivePage()) == null ? void 0 : C.id) != null ? p : null), d = zn(() => c.map(() => Nt.createRef()), [c]);
|
|
1878
1867
|
me(() => {
|
|
1879
1868
|
const m = s == null ? void 0 : s.activePage$.subscribe((_) => {
|
|
1880
1869
|
var P;
|
|
@@ -1893,9 +1882,9 @@ function lr() {
|
|
|
1893
1882
|
}
|
|
1894
1883
|
}), d.length > 0 && e.syncExecuteCommand(qt.id, { unitId: s == null ? void 0 : s.getUnitId() });
|
|
1895
1884
|
}, [d, c, t, e, s]);
|
|
1896
|
-
const v =
|
|
1885
|
+
const v = dt((m) => {
|
|
1897
1886
|
e.syncExecuteCommand(Xt.id, { id: m, unitId: s == null ? void 0 : s.getUnitId() });
|
|
1898
|
-
}, [e, s]), f =
|
|
1887
|
+
}, [e, s]), f = dt(() => {
|
|
1899
1888
|
e.syncExecuteCommand(Yt.id, { unitId: s == null ? void 0 : s.getUnitId() });
|
|
1900
1889
|
}, [e, s]);
|
|
1901
1890
|
return /* @__PURE__ */ u("aside", { className: ie.slideBar, ref: r, children: /* @__PURE__ */ u(Fn, { children: /* @__PURE__ */ R("div", { className: ie.slideBarContent, children: [
|
|
@@ -1903,7 +1892,7 @@ function lr() {
|
|
|
1903
1892
|
c.map((m, _) => /* @__PURE__ */ R(
|
|
1904
1893
|
"div",
|
|
1905
1894
|
{
|
|
1906
|
-
className:
|
|
1895
|
+
className: y(ie.slideBarItem, {
|
|
1907
1896
|
[ie.slideBarItemActive]: m.id === h
|
|
1908
1897
|
}),
|
|
1909
1898
|
onClick: () => v(m.id),
|
|
@@ -1916,21 +1905,21 @@ function lr() {
|
|
|
1916
1905
|
))
|
|
1917
1906
|
] }) }) });
|
|
1918
1907
|
}
|
|
1919
|
-
const
|
|
1920
|
-
slideEditorContainer:
|
|
1921
|
-
}, Ne = -1e3,
|
|
1908
|
+
const lr = "univer-slide-editor-container", dr = {
|
|
1909
|
+
slideEditorContainer: lr
|
|
1910
|
+
}, Ne = -1e3, _t = {
|
|
1922
1911
|
width: 0,
|
|
1923
1912
|
height: 0,
|
|
1924
1913
|
top: Ne,
|
|
1925
1914
|
left: Ne
|
|
1926
|
-
},
|
|
1915
|
+
}, ur = () => {
|
|
1927
1916
|
const [i, e] = G({
|
|
1928
|
-
...
|
|
1929
|
-
}), t = x(
|
|
1930
|
-
() => r.subscribeContextValue$(
|
|
1917
|
+
..._t
|
|
1918
|
+
}), t = x(Qe), n = x(Ye), r = x(Ce), s = Un(
|
|
1919
|
+
() => r.subscribeContextValue$(at),
|
|
1931
1920
|
!1,
|
|
1932
1921
|
void 0,
|
|
1933
|
-
[r,
|
|
1922
|
+
[r, at]
|
|
1934
1923
|
);
|
|
1935
1924
|
return bn.UNSPECIFIED, me(() => {
|
|
1936
1925
|
t.state$.subscribe((o) => {
|
|
@@ -1945,7 +1934,7 @@ const dr = "univer-slide-editor-container", ur = {
|
|
|
1945
1934
|
} = o;
|
|
1946
1935
|
if (!d)
|
|
1947
1936
|
e({
|
|
1948
|
-
...
|
|
1937
|
+
..._t
|
|
1949
1938
|
});
|
|
1950
1939
|
else {
|
|
1951
1940
|
e({
|
|
@@ -1966,7 +1955,7 @@ const dr = "univer-slide-editor-container", ur = {
|
|
|
1966
1955
|
}, [s, i]), /* @__PURE__ */ u(
|
|
1967
1956
|
"div",
|
|
1968
1957
|
{
|
|
1969
|
-
className:
|
|
1958
|
+
className: dr.slideEditorContainer,
|
|
1970
1959
|
style: {
|
|
1971
1960
|
left: i.left,
|
|
1972
1961
|
top: i.top,
|
|
@@ -1976,7 +1965,7 @@ const dr = "univer-slide-editor-container", ur = {
|
|
|
1976
1965
|
}
|
|
1977
1966
|
);
|
|
1978
1967
|
}, Jt = "addition-and-subtraction-single", Qt = "slide.menu.image";
|
|
1979
|
-
function
|
|
1968
|
+
function gr(i) {
|
|
1980
1969
|
return {
|
|
1981
1970
|
id: Qt,
|
|
1982
1971
|
type: _e.SUBITEMS,
|
|
@@ -1985,16 +1974,16 @@ function hr(i) {
|
|
|
1985
1974
|
hidden$: fe(i, E.UNIVER_SLIDE)
|
|
1986
1975
|
};
|
|
1987
1976
|
}
|
|
1988
|
-
function
|
|
1977
|
+
function hr(i) {
|
|
1989
1978
|
return {
|
|
1990
|
-
id:
|
|
1979
|
+
id: et.id,
|
|
1991
1980
|
title: "slide.image.insert.float",
|
|
1992
1981
|
type: _e.BUTTON,
|
|
1993
1982
|
hidden$: fe(i, E.UNIVER_SLIDE)
|
|
1994
1983
|
};
|
|
1995
1984
|
}
|
|
1996
1985
|
const en = "graph-single", tn = "slide.menu.shape";
|
|
1997
|
-
function
|
|
1986
|
+
function mr(i) {
|
|
1998
1987
|
return {
|
|
1999
1988
|
id: tn,
|
|
2000
1989
|
type: _e.SUBITEMS,
|
|
@@ -2004,68 +1993,68 @@ function vr(i) {
|
|
|
2004
1993
|
// disabled$: getCurrentRangeDisable$(accessor, { workbookTypes: [WorkbookEditablePermission], worksheetTypes: [WorksheetEditPermission], rangeTypes: [RangeProtectionPermissionEditPoint] }),
|
|
2005
1994
|
};
|
|
2006
1995
|
}
|
|
2007
|
-
function
|
|
1996
|
+
function vr(i) {
|
|
2008
1997
|
return {
|
|
2009
|
-
id:
|
|
1998
|
+
id: qe.id,
|
|
2010
1999
|
title: "slide.shape.insert.rectangle",
|
|
2011
2000
|
type: _e.BUTTON,
|
|
2012
2001
|
hidden$: fe(i, E.UNIVER_SLIDE)
|
|
2013
2002
|
};
|
|
2014
2003
|
}
|
|
2015
2004
|
const nn = "text-single";
|
|
2016
|
-
function
|
|
2005
|
+
function pr(i) {
|
|
2017
2006
|
return {
|
|
2018
|
-
id:
|
|
2007
|
+
id: tt.id,
|
|
2019
2008
|
type: _e.BUTTON,
|
|
2020
2009
|
icon: nn,
|
|
2021
2010
|
tooltip: "slide.text.insert.title",
|
|
2022
2011
|
hidden$: fe(i, E.UNIVER_SLIDE)
|
|
2023
2012
|
};
|
|
2024
2013
|
}
|
|
2025
|
-
const
|
|
2014
|
+
const Cr = {
|
|
2026
2015
|
[Vn.FORMAT]: {
|
|
2027
|
-
[
|
|
2016
|
+
[tt.id]: {
|
|
2028
2017
|
order: 0,
|
|
2029
|
-
menuItemFactory:
|
|
2018
|
+
menuItemFactory: pr
|
|
2030
2019
|
},
|
|
2031
2020
|
[Qt]: {
|
|
2032
2021
|
order: 0,
|
|
2033
|
-
menuItemFactory:
|
|
2034
|
-
[
|
|
2022
|
+
menuItemFactory: gr,
|
|
2023
|
+
[et.id]: {
|
|
2035
2024
|
order: 0,
|
|
2036
|
-
menuItemFactory:
|
|
2025
|
+
menuItemFactory: hr
|
|
2037
2026
|
}
|
|
2038
2027
|
},
|
|
2039
2028
|
[tn]: {
|
|
2040
2029
|
order: 0,
|
|
2041
|
-
menuItemFactory:
|
|
2042
|
-
[
|
|
2030
|
+
menuItemFactory: mr,
|
|
2031
|
+
[qe.id]: {
|
|
2043
2032
|
order: 0,
|
|
2044
|
-
menuItemFactory:
|
|
2033
|
+
menuItemFactory: vr
|
|
2045
2034
|
}
|
|
2046
2035
|
}
|
|
2047
2036
|
}
|
|
2048
2037
|
};
|
|
2049
|
-
function
|
|
2050
|
-
return i.getContextValue(
|
|
2038
|
+
function ke(i) {
|
|
2039
|
+
return i.getContextValue(xt) && i.getContextValue(xe);
|
|
2051
2040
|
}
|
|
2052
|
-
function
|
|
2053
|
-
return i.getContextValue(Pn) && i.getContextValue(
|
|
2041
|
+
function fr(i) {
|
|
2042
|
+
return i.getContextValue(Pn) && i.getContextValue(xt);
|
|
2054
2043
|
}
|
|
2055
2044
|
const rn = [
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2045
|
+
M.ARROW_DOWN,
|
|
2046
|
+
M.ARROW_UP,
|
|
2047
|
+
M.ARROW_LEFT,
|
|
2048
|
+
M.ARROW_RIGHT
|
|
2060
2049
|
];
|
|
2061
|
-
[
|
|
2062
|
-
function
|
|
2050
|
+
[M.ENTER, M.TAB, ...rn];
|
|
2051
|
+
function _r() {
|
|
2063
2052
|
const i = [];
|
|
2064
2053
|
for (const e of rn)
|
|
2065
2054
|
i.push({
|
|
2066
2055
|
id: we.id,
|
|
2067
2056
|
binding: e,
|
|
2068
|
-
preconditions: (t) =>
|
|
2057
|
+
preconditions: (t) => ke(t),
|
|
2069
2058
|
staticParameters: {
|
|
2070
2059
|
visible: !1,
|
|
2071
2060
|
eventType: J.Keyboard,
|
|
@@ -2075,7 +2064,7 @@ function Sr() {
|
|
|
2075
2064
|
}), i.push({
|
|
2076
2065
|
id: we.id,
|
|
2077
2066
|
binding: e | Bn.SHIFT,
|
|
2078
|
-
preconditions: (t) =>
|
|
2067
|
+
preconditions: (t) => ke(t),
|
|
2079
2068
|
staticParameters: {
|
|
2080
2069
|
visible: !1,
|
|
2081
2070
|
eventType: J.Keyboard,
|
|
@@ -2085,13 +2074,13 @@ function Sr() {
|
|
|
2085
2074
|
});
|
|
2086
2075
|
return i;
|
|
2087
2076
|
}
|
|
2088
|
-
const
|
|
2077
|
+
const Sr = {
|
|
2089
2078
|
id: qn.id,
|
|
2090
|
-
preconditions: (i) =>
|
|
2091
|
-
binding:
|
|
2079
|
+
preconditions: (i) => ke(i) || fr(i),
|
|
2080
|
+
binding: M.BACKSPACE
|
|
2092
2081
|
};
|
|
2093
|
-
var
|
|
2094
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
2082
|
+
var Ir = Object.getOwnPropertyDescriptor, br = (i, e, t, n) => {
|
|
2083
|
+
for (var r = n > 1 ? void 0 : n ? Ir(e, t) : e, s = i.length - 1, o; s >= 0; s--)
|
|
2095
2084
|
(o = i[s]) && (r = o(r) || r);
|
|
2096
2085
|
return r;
|
|
2097
2086
|
}, re = (i, e) => (t, n) => e(t, n, i);
|
|
@@ -2100,24 +2089,24 @@ let De = class extends Ve {
|
|
|
2100
2089
|
super(), this._injector = i, this._menuManagerService = e, this._componentManager = t, this._uiPartsService = n, this._commandService = r, this._shortcutService = s, this._initCommands(), this._initCustomComponents(), this._initUIComponents(), this._initMenus(), this._initShortcuts();
|
|
2101
2090
|
}
|
|
2102
2091
|
_initMenus() {
|
|
2103
|
-
this._menuManagerService.mergeMenu(
|
|
2092
|
+
this._menuManagerService.mergeMenu(Cr);
|
|
2104
2093
|
}
|
|
2105
2094
|
_initCustomComponents() {
|
|
2106
2095
|
const i = this._componentManager;
|
|
2107
|
-
this.disposeWithMe(i.register(Jt,
|
|
2096
|
+
this.disposeWithMe(i.register(Jt, jt)), this.disposeWithMe(i.register(nn, Wt)), this.disposeWithMe(i.register(en, $t)), this.disposeWithMe(i.register(Gt, tr)), this.disposeWithMe(i.register(Oe, Vi));
|
|
2108
2097
|
}
|
|
2109
2098
|
_initCommands() {
|
|
2110
2099
|
[
|
|
2111
2100
|
Yt,
|
|
2112
2101
|
Xt,
|
|
2113
2102
|
qt,
|
|
2114
|
-
Qe,
|
|
2115
|
-
Zt,
|
|
2116
2103
|
et,
|
|
2104
|
+
Zt,
|
|
2105
|
+
tt,
|
|
2117
2106
|
Kt,
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2107
|
+
qe,
|
|
2108
|
+
He,
|
|
2109
|
+
Vt,
|
|
2121
2110
|
k,
|
|
2122
2111
|
// commands for editor
|
|
2123
2112
|
we
|
|
@@ -2125,30 +2114,30 @@ let De = class extends Ve {
|
|
|
2125
2114
|
}
|
|
2126
2115
|
_initUIComponents() {
|
|
2127
2116
|
this.disposeWithMe(
|
|
2128
|
-
this._uiPartsService.registerComponent(
|
|
2117
|
+
this._uiPartsService.registerComponent(ct.LEFT_SIDEBAR, () => lt(cr, this._injector))
|
|
2129
2118
|
), this.disposeWithMe(
|
|
2130
|
-
this._uiPartsService.registerComponent(
|
|
2119
|
+
this._uiPartsService.registerComponent(ct.CONTENT, () => lt(ur, this._injector))
|
|
2131
2120
|
);
|
|
2132
2121
|
}
|
|
2133
2122
|
_initShortcuts() {
|
|
2134
2123
|
[
|
|
2135
|
-
|
|
2136
|
-
...
|
|
2124
|
+
Sr,
|
|
2125
|
+
..._r()
|
|
2137
2126
|
].forEach((i) => {
|
|
2138
2127
|
this.disposeWithMe(this._shortcutService.registerShortcut(i));
|
|
2139
2128
|
});
|
|
2140
2129
|
}
|
|
2141
2130
|
};
|
|
2142
|
-
De =
|
|
2143
|
-
re(0, X(
|
|
2131
|
+
De = br([
|
|
2132
|
+
re(0, X(Ke)),
|
|
2144
2133
|
re(1, jn),
|
|
2145
2134
|
re(2, X(Ln)),
|
|
2146
2135
|
re(3, An),
|
|
2147
2136
|
re(4, B),
|
|
2148
2137
|
re(5, $n)
|
|
2149
2138
|
], De);
|
|
2150
|
-
var
|
|
2151
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
2139
|
+
var Pr = Object.getOwnPropertyDescriptor, Er = (i, e, t, n) => {
|
|
2140
|
+
for (var r = n > 1 ? void 0 : n ? Pr(e, t) : e, s = i.length - 1, o; s >= 0; s--)
|
|
2152
2141
|
(o = i[s]) && (r = o(r) || r);
|
|
2153
2142
|
return r;
|
|
2154
2143
|
}, Ae = (i, e) => (t, n) => e(t, n, i);
|
|
@@ -2161,14 +2150,14 @@ let Ue = class extends pe {
|
|
|
2161
2150
|
this._initSlideDataListener(), this._initContextListener();
|
|
2162
2151
|
}
|
|
2163
2152
|
_initSlideDataListener() {
|
|
2164
|
-
this._instanceSrv.getTypeOfUnitAdded$(E.UNIVER_SLIDE).pipe(
|
|
2153
|
+
this._instanceSrv.getTypeOfUnitAdded$(E.UNIVER_SLIDE).pipe(ut(this.dispose$)).subscribe((i) => {
|
|
2165
2154
|
this._createRenderer(i == null ? void 0 : i.getUnitId());
|
|
2166
2155
|
}), this._instanceSrv.getAllUnitsForType(E.UNIVER_SLIDE).forEach((i) => {
|
|
2167
2156
|
this._createRenderer(i.getUnitId());
|
|
2168
|
-
}), this._instanceSrv.getTypeOfUnitDisposed$(E.UNIVER_SLIDE).pipe(
|
|
2157
|
+
}), this._instanceSrv.getTypeOfUnitDisposed$(E.UNIVER_SLIDE).pipe(ut(this.dispose$)).subscribe((i) => this._disposeRenderer(i));
|
|
2169
2158
|
}
|
|
2170
2159
|
_createRenderer(i) {
|
|
2171
|
-
i == null || this._instanceSrv.getUnit(i, E.UNIVER_SLIDE) == null ||
|
|
2160
|
+
i == null || this._instanceSrv.getUnit(i, E.UNIVER_SLIDE) == null || this._renderManagerService.createRender(i);
|
|
2172
2161
|
}
|
|
2173
2162
|
_disposeRenderer(i) {
|
|
2174
2163
|
const e = i.getUnitId();
|
|
@@ -2177,34 +2166,34 @@ let Ue = class extends pe {
|
|
|
2177
2166
|
_initContextListener() {
|
|
2178
2167
|
}
|
|
2179
2168
|
};
|
|
2180
|
-
Ue =
|
|
2169
|
+
Ue = Er([
|
|
2181
2170
|
Ae(0, Ce),
|
|
2182
|
-
Ae(1,
|
|
2171
|
+
Ae(1, T),
|
|
2183
2172
|
Ae(2, Y)
|
|
2184
2173
|
], Ue);
|
|
2185
|
-
var
|
|
2186
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
2174
|
+
var Rr = Object.getOwnPropertyDescriptor, Or = (i, e, t, n) => {
|
|
2175
|
+
for (var r = n > 1 ? void 0 : n ? Rr(e, t) : e, s = i.length - 1, o; s >= 0; s--)
|
|
2187
2176
|
(o = i[s]) && (r = o(r) || r);
|
|
2188
2177
|
return r;
|
|
2189
2178
|
}, Ee = (i, e) => (t, n) => e(t, n, i);
|
|
2190
|
-
const
|
|
2179
|
+
const xr = "SLIDE_UI";
|
|
2191
2180
|
var Re;
|
|
2192
|
-
let
|
|
2193
|
-
constructor(i =
|
|
2181
|
+
let St = (Re = class extends En {
|
|
2182
|
+
constructor(i = vt, e, t, n, r) {
|
|
2194
2183
|
super(), this._config = i, this._injector = e, this._renderManagerService = t, this._univerInstanceService = n, this._configService = r;
|
|
2195
2184
|
const { menu: s, ...o } = Rn(
|
|
2196
2185
|
{},
|
|
2197
|
-
|
|
2186
|
+
vt,
|
|
2198
2187
|
this._config
|
|
2199
2188
|
);
|
|
2200
2189
|
s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig(oi, o);
|
|
2201
2190
|
}
|
|
2202
2191
|
onStarting() {
|
|
2203
|
-
|
|
2192
|
+
it([
|
|
2204
2193
|
[Ue],
|
|
2205
|
-
[
|
|
2194
|
+
[Je, { useClass: Fe }],
|
|
2206
2195
|
// used by SlideUIController --> EditorContainer
|
|
2207
|
-
[
|
|
2196
|
+
[Qe, { useClass: zi }],
|
|
2208
2197
|
[Te]
|
|
2209
2198
|
], this._config.override).forEach((i) => this._injector.add(i));
|
|
2210
2199
|
}
|
|
@@ -2214,7 +2203,7 @@ let _t = (Re = class extends En {
|
|
|
2214
2203
|
[ve]
|
|
2215
2204
|
].forEach((i) => {
|
|
2216
2205
|
this.disposeWithMe(this._renderManagerService.registerRenderModule(E.UNIVER_SLIDE, i));
|
|
2217
|
-
}),
|
|
2206
|
+
}), it([
|
|
2218
2207
|
[N],
|
|
2219
2208
|
// cannot register in _renderManagerService now.
|
|
2220
2209
|
// [ISlideEditorBridgeService, { useClass: SlideEditorBridgeService }],
|
|
@@ -2234,8 +2223,8 @@ let _t = (Re = class extends En {
|
|
|
2234
2223
|
[
|
|
2235
2224
|
// need slideEditorBridgeService
|
|
2236
2225
|
// need TextSelectionRenderService which init by EditorContainer
|
|
2237
|
-
[
|
|
2238
|
-
[
|
|
2226
|
+
[We],
|
|
2227
|
+
[ze]
|
|
2239
2228
|
].forEach((i) => {
|
|
2240
2229
|
this.disposeWithMe(this._renderManagerService.registerRenderModule(E.UNIVER_SLIDE, i));
|
|
2241
2230
|
}), this._markSlideAsFocused(), this._injector.get(De);
|
|
@@ -2251,33 +2240,33 @@ let _t = (Re = class extends En {
|
|
|
2251
2240
|
} catch {
|
|
2252
2241
|
}
|
|
2253
2242
|
}
|
|
2254
|
-
}, I(Re, "pluginName",
|
|
2255
|
-
|
|
2256
|
-
Ee(1, X(
|
|
2243
|
+
}, I(Re, "pluginName", xr), I(Re, "type", E.UNIVER_SLIDE), Re);
|
|
2244
|
+
St = Or([
|
|
2245
|
+
Ee(1, X(Ke)),
|
|
2257
2246
|
Ee(2, Y),
|
|
2258
|
-
Ee(3,
|
|
2247
|
+
Ee(3, T),
|
|
2259
2248
|
Ee(4, On)
|
|
2260
|
-
],
|
|
2249
|
+
], St);
|
|
2261
2250
|
export {
|
|
2262
2251
|
Xt as ActivateSlidePageOperation,
|
|
2263
2252
|
Yt as AppendSlideOperation,
|
|
2264
2253
|
N as CanvasView,
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2254
|
+
Vt as DeleteSlideElementOperation,
|
|
2255
|
+
Je as ISlideEditorBridgeService,
|
|
2256
|
+
et as InsertSlideFloatImageCommand,
|
|
2257
|
+
qe as InsertSlideShapeRectangleCommand,
|
|
2269
2258
|
Kt as InsertSlideShapeRectangleOperation,
|
|
2270
2259
|
tn as SHAPE_MENU_ID,
|
|
2271
2260
|
Qt as SLIDES_IMAGE_MENU_ID,
|
|
2272
2261
|
he as SLIDE_EDITOR_ID,
|
|
2273
2262
|
qt as SetSlidePageThumbOperation,
|
|
2274
|
-
|
|
2263
|
+
tt as SlideAddTextCommand,
|
|
2275
2264
|
Zt as SlideAddTextOperation,
|
|
2276
2265
|
Te as SlideCanvasPopMangerService,
|
|
2277
|
-
|
|
2278
|
-
|
|
2266
|
+
ur as SlideEditorContainer,
|
|
2267
|
+
cr as SlideSideBar,
|
|
2279
2268
|
De as SlidesUIController,
|
|
2280
|
-
|
|
2281
|
-
|
|
2269
|
+
Cr as SlidesUIMenuSchema,
|
|
2270
|
+
St as UniverSlidesUIPlugin,
|
|
2282
2271
|
k as UpdateSlideElementOperation
|
|
2283
2272
|
};
|