@univerjs/ui 0.15.2 → 0.15.3-insiders.20260131-cbd5fac

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.
@@ -0,0 +1 @@
1
+ "use strict";const a={toolbar:{heading:{normal:"Normálne",title:"Nadpis",subTitle:"Podnadpis",1:"Nadpis 1",2:"Nadpis 2",3:"Nadpis 3",4:"Nadpis 4",5:"Nadpis 5",6:"Nadpis 6",tooltip:"Nastaviť nadpis"}},ribbon:{start:"Začiatok",startDesc:"Inicializujte hárok a nastavte základné parametre.",insert:"Vložiť",insertDesc:"Vložte riadky, stĺpce, grafy a ďalšie prvky.",formulas:"Vzorce",formulasDesc:"Používajte funkcie a vzorce na výpočty údajov.",data:"Údaje",dataDesc:"Spravujte údaje vrátane importu, triedenia a filtrovania.",view:"Zobrazenie",viewDesc:"Prepínajte režimy zobrazenia a upravte efekt zobrazenia.",others:"Ostatné",othersDesc:"Ďalšie funkcie a nastavenia.",more:"Viac"},fontFamily:{"not-supported":"Toto písmo sa v systéme nenašlo, používa sa predvolené písmo.",arial:"Arial","times-new-roman":"Times New Roman",tahoma:"Tahoma",verdana:"Verdana","microsoft-yahei":"Microsoft YaHei",simsun:"SimSun",simhei:"SimHei",kaiti:"Kaiti",fangsong:"FangSong",nsimsun:"NSimSun",stxinwei:"STXinwei",stxingkai:"STXingkai",stliti:"STLiti"},"shortcut-panel":{title:"Skratky"},shortcut:{undo:"Späť",redo:"Znova",cut:"Vystrihnúť",copy:"Kopírovať",paste:"Prilepiť","shortcut-panel":"Prepnúť panel skratiek"},"common-edit":"Bežné úpravové skratky","toggle-shortcut-panel":"Prepnúť panel skratiek",clipboard:{authentication:{title:"Povolenie zamietnuté",content:"Povoľte Univeru prístup k schránke."}},textEditor:{formulaError:"Zadajte platný vzorec, napríklad =SUMA(A1)",rangeError:"Zadajte platný rozsah, napríklad A1:B10"},rangeSelector:{title:"Vyberte rozsah údajov",addAnotherRange:"Pridať rozsah",buttonTooltip:"Vybrať rozsah údajov",placeHolder:"Vyberte rozsah alebo zadajte.",confirm:"Potvrdiť",cancel:"Zrušiť"},"global-shortcut":"Globálna skratka","zoom-slider":{resetTo:"Obnoviť na"}};module.exports=a;
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 { IMenuManagerService as P, MenuItemType as E, RibbonStartGroup as w, RibbonPosition as T, MenuManagerPosition as O, 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, ICommandService as d, generateRandomId as W, CommandType as q, IUniverInstanceService as z, UniverInstanceType as J } from "@univerjs/core";
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: E.BUTTON,
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, P)
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: E.SUBITEMS,
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, P)
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(J.UNIVER_SHEET);
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, z),
291
+ h(2, J),
292
292
  h(3, G)
293
293
  ], b);
294
294
  class Z extends M {