@univerjs/ui 0.16.0 → 0.16.1-insiders.20260311-074e8ca
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +14 -14
- package/lib/es/facade.js +8 -8
- package/lib/es/index.js +1692 -1685
- package/lib/facade.js +8 -8
- package/lib/index.js +1692 -1685
- package/lib/types/components/font-size/interface.d.ts +3 -3
- package/lib/types/{controllers/config.schema.d.ts → config/config.d.ts} +1 -1
- package/lib/types/controllers/ui/ui-desktop.controller.d.ts +1 -1
- package/lib/types/controllers/ui/ui-mobile.controller.d.ts +1 -1
- package/lib/types/controllers/ui/ui.controller.d.ts +1 -1
- package/lib/types/index.d.ts +4 -4
- package/lib/types/menu/schema.d.ts +2 -0
- package/lib/types/mobile-plugin.d.ts +3 -2
- package/lib/types/plugin.d.ts +3 -2
- package/lib/types/services/menu/menu-manager.service.d.ts +1 -1
- package/lib/umd/index.js +15 -15
- package/package.json +7 -7
- package/LICENSE +0 -176
- package/lib/types/controllers/menus/menu.schema.d.ts +0 -2
package/lib/es/facade.js
CHANGED
|
@@ -3,8 +3,8 @@ var R = (n, e, t) => e in n ? B(n, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var o = (n, e, t) => R(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { FBase as C, FUniver as M, FHooks as j, FEnum as y } from "@univerjs/core/facade";
|
|
5
5
|
import { IRenderManagerService as U } from "@univerjs/engine-render";
|
|
6
|
-
import {
|
|
7
|
-
import { Inject as m, Injector as f,
|
|
6
|
+
import { MenuItemType as P, RibbonStartGroup as w, RibbonPosition as T, MenuManagerPosition as O, IMenuManagerService as E, IShortcutService as G, CopyCommand as v, PasteCommand as _, ISidebarService as V, IDialogService as $, ComponentManager as I, IMessageService as N, IUIPartsService as g, connectInjector as H, IFontService as K, SheetPasteShortKeyCommandName as k, BuiltInUIPart as L, KeyCode as A } from "@univerjs/ui";
|
|
7
|
+
import { Inject as m, Injector as f, generateRandomId as W, CommandType as q, ICommandService as d, UniverInstanceType as z, IUniverInstanceService as J } from "@univerjs/core";
|
|
8
8
|
var Q = Object.getOwnPropertyDescriptor, x = (n, e, t, r) => {
|
|
9
9
|
for (var i = r > 1 ? void 0 : r ? Q(e, t) : e, s = n.length - 1, c; s >= 0; s--)
|
|
10
10
|
(c = n[s]) && (i = c(i) || i);
|
|
@@ -59,7 +59,7 @@ let p = (a = class extends D {
|
|
|
59
59
|
// eslint-disable-next-line ts/explicit-function-return-type
|
|
60
60
|
menuItemFactory: () => ({
|
|
61
61
|
id: e.id,
|
|
62
|
-
type:
|
|
62
|
+
type: P.BUTTON,
|
|
63
63
|
// we only support button for now
|
|
64
64
|
icon: e.icon,
|
|
65
65
|
title: e.title,
|
|
@@ -84,7 +84,7 @@ let p = (a = class extends D {
|
|
|
84
84
|
p = x([
|
|
85
85
|
u(1, m(f)),
|
|
86
86
|
u(2, d),
|
|
87
|
-
u(3,
|
|
87
|
+
u(3, E)
|
|
88
88
|
], p);
|
|
89
89
|
let l = class extends D {
|
|
90
90
|
constructor(e, t, r) {
|
|
@@ -96,7 +96,7 @@ let l = class extends D {
|
|
|
96
96
|
// eslint-disable-next-line ts/explicit-function-return-type
|
|
97
97
|
menuItemFactory: () => ({
|
|
98
98
|
id: e.id,
|
|
99
|
-
type:
|
|
99
|
+
type: P.SUBITEMS,
|
|
100
100
|
icon: e.icon,
|
|
101
101
|
title: e.title,
|
|
102
102
|
tooltip: e.tooltip
|
|
@@ -188,7 +188,7 @@ let l = class extends D {
|
|
|
188
188
|
};
|
|
189
189
|
l = x([
|
|
190
190
|
u(1, m(f)),
|
|
191
|
-
u(2,
|
|
191
|
+
u(2, E)
|
|
192
192
|
], l);
|
|
193
193
|
var X = Object.getOwnPropertyDescriptor, Y = (n, e, t, r) => {
|
|
194
194
|
for (var i = r > 1 ? void 0 : r ? X(e, t) : e, s = n.length - 1, c; s >= 0; s--)
|
|
@@ -259,7 +259,7 @@ let b = class extends C {
|
|
|
259
259
|
* ```
|
|
260
260
|
*/
|
|
261
261
|
triggerShortcut(e) {
|
|
262
|
-
const t = this._univerInstanceService.getCurrentUnitForType(
|
|
262
|
+
const t = this._univerInstanceService.getCurrentUnitForType(z.UNIVER_SHEET);
|
|
263
263
|
if (!t)
|
|
264
264
|
return;
|
|
265
265
|
const r = this._renderManagerService.getRenderById(t.getUnitId());
|
|
@@ -288,7 +288,7 @@ let b = class extends C {
|
|
|
288
288
|
b = Y([
|
|
289
289
|
h(0, m(f)),
|
|
290
290
|
h(1, m(U)),
|
|
291
|
-
h(2,
|
|
291
|
+
h(2, J),
|
|
292
292
|
h(3, G)
|
|
293
293
|
], b);
|
|
294
294
|
class Z extends M {
|