@univerjs/ui 0.9.2 → 0.9.3
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/facade.js +1 -1
- package/lib/cjs/index.js +10 -10
- package/lib/cjs/locale/ca-ES.js +1 -0
- package/lib/cjs/locale/es-ES.js +1 -0
- package/lib/es/facade.js +15 -15
- package/lib/es/index.js +1533 -1504
- package/lib/es/locale/ca-ES.js +87 -0
- package/lib/es/locale/es-ES.js +87 -0
- package/lib/facade.js +15 -15
- package/lib/index.js +1533 -1504
- package/lib/locale/ca-ES.js +87 -0
- package/lib/locale/es-ES.js +87 -0
- package/lib/types/locale/ca-ES.d.ts +3 -0
- package/lib/types/locale/es-ES.d.ts +3 -0
- package/lib/types/mobile-plugin.d.ts +9 -4
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +9 -9
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/es-ES.js +1 -0
- package/package.json +8 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e={toolbar:{heading:{normal:"Normal",title:"Títol",subTitle:"Subtítol",1:"Encapçalament 1",2:"Encapçalament 2",3:"Encapçalament 3",4:"Encapçalament 4",5:"Encapçalament 5",6:"Encapçalament 6",tooltip:"Estableix l'encapçalament"}},ribbon:{start:"Inici",startDesc:"Inicia el full de càlcul i estableix els paràmetres bàsics.",insert:"Insereix",insertDesc:"Insereix files, columnes, gràfics i altres elements.",formulas:"Fórmules",formulasDesc:"Utilitza funcions i fórmules per a càlculs de dades.",data:"Dades",dataDesc:"Gestiona les dades, incloent importació, ordenació i filtratge.",view:"Vista",viewDesc:"Canvia els modes de vista i ajusta l'efecte de visualització.",others:"Altres",othersDesc:"Altres funcions i configuracions.",more:"Més"},fontFamily:{TimesNewRoman:"Times New Roman",Arial:"Arial",Tahoma:"Tahoma",Verdana:"Verdana",MicrosoftYaHei:"Microsoft YaHei",SimSun:"SimSun",SimHei:"SimHei",Kaiti:"Kaiti",FangSong:"FangSong",NSimSun:"NSimSun",STXinwei:"STXinwei",STXingkai:"STXingkai",STLiti:"STLiti",HanaleiFill:"HanaleiFill",Anton:"Anton",Pacifico:"Pacifico"},"shortcut-panel":{title:"Dreceres"},shortcut:{undo:"Desfer",redo:"Refer",cut:"Retalla",copy:"Copia",paste:"Enganxa","shortcut-panel":"Alterna el panell de dreceres"},"common-edit":"Dreceres d'edició comunes","toggle-shortcut-panel":"Alterna el panell de dreceres",clipboard:{authentication:{title:"Permís denegat",content:"Si us plau, permet que Univer accedeixi al teu porta-retalls."}},textEditor:{formulaError:"Si us plau, introdueix una fórmula vàlida, com ara =SUMA(A1)",rangeError:"Si us plau, introdueix un interval vàlid, com ara A1:B10"},rangeSelector:{title:"Selecciona un interval de dades",addAnotherRange:"Afegeix interval",buttonTooltip:"Selecciona interval de dades",placeHolder:"Selecciona un interval o escriu.",confirm:"Confirma",cancel:"Cancel·la"},"global-shortcut":"Drecera global","zoom-slider":{resetTo:"Restableix a"}};module.exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a={toolbar:{heading:{normal:"Normal",title:"Título",subTitle:"Subtítulo",1:"Encabezado 1",2:"Encabezado 2",3:"Encabezado 3",4:"Encabezado 4",5:"Encabezado 5",6:"Encabezado 6",tooltip:"Establecer encabezado"}},ribbon:{start:"Inicio",startDesc:"Inicia la hoja de cálculo y establece los parámetros básicos.",insert:"Insertar",insertDesc:"Inserta filas, columnas, gráficos y otros elementos.",formulas:"Fórmulas",formulasDesc:"Utiliza funciones y fórmulas para cálculos de datos.",data:"Datos",dataDesc:"Gestiona los datos, incluyendo importación, ordenación y filtrado.",view:"Vista",viewDesc:"Cambia los modos de vista y ajusta el efecto de visualización.",others:"Otros",othersDesc:"Otras funciones y configuraciones.",more:"Más"},fontFamily:{TimesNewRoman:"Times New Roman",Arial:"Arial",Tahoma:"Tahoma",Verdana:"Verdana",MicrosoftYaHei:"Microsoft YaHei",SimSun:"SimSun",SimHei:"SimHei",Kaiti:"Kaiti",FangSong:"FangSong",NSimSun:"NSimSun",STXinwei:"STXinwei",STXingkai:"STXingkai",STLiti:"STLiti",HanaleiFill:"HanaleiFill",Anton:"Anton",Pacifico:"Pacifico"},"shortcut-panel":{title:"Atajos"},shortcut:{undo:"Deshacer",redo:"Rehacer",cut:"Cortar",copy:"Copiar",paste:"Pegar","shortcut-panel":"Alternar panel de atajos"},"common-edit":"Atajos de edición comunes","toggle-shortcut-panel":"Alternar panel de atajos",clipboard:{authentication:{title:"Permiso denegado",content:"Por favor, permite que Univer acceda a tu portapapeles."}},textEditor:{formulaError:"Por favor, introduce una fórmula válida, como =SUMA(A1)",rangeError:"Por favor, introduce un rango válido, como A1:B10"},rangeSelector:{title:"Selecciona un rango de datos",addAnotherRange:"Agregar rango",buttonTooltip:"Seleccionar rango de datos",placeHolder:"Selecciona un rango o escribe.",confirm:"Confirmar",cancel:"Cancelar"},"global-shortcut":"Atajo global","zoom-slider":{resetTo:"Restablecer a"}};module.exports=a;
|
package/lib/es/facade.js
CHANGED
|
@@ -3,8 +3,8 @@ var R = (n, e, t) => e in n ? F(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 x, RibbonStartGroup as
|
|
7
|
-
import { Inject as m, Injector as f, ICommandService as u,
|
|
6
|
+
import { IMenuManagerService as P, MenuItemType as x, RibbonStartGroup as w, RibbonPosition as T, MenuManagerPosition as O, IShortcutService as G, CopyCommand as v, PasteCommand as p, ISidebarService as V, IDialogService as $, ComponentManager as I, IMessageService as N, IUIPartsService as g, connectInjector as H, SheetPasteShortKeyCommandName as K, BuiltInUIPart as k, KeyCode as L } from "@univerjs/ui";
|
|
7
|
+
import { Inject as m, Injector as f, ICommandService as u, generateRandomId as A, CommandType as W, IUniverInstanceService as q, UniverInstanceType as z } from "@univerjs/core";
|
|
8
8
|
var J = Object.getOwnPropertyDescriptor, D = (n, e, t, r) => {
|
|
9
9
|
for (var i = r > 1 ? void 0 : r ? J(e, t) : e, s = n.length - 1, c; s >= 0; s--)
|
|
10
10
|
(c = n[s]) && (i = c(i) || i);
|
|
@@ -48,13 +48,13 @@ class E extends C {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
var a;
|
|
51
|
-
let
|
|
51
|
+
let _ = (a = class extends E {
|
|
52
52
|
constructor(e, t, r, i) {
|
|
53
53
|
super();
|
|
54
54
|
o(this, "_commandToRegister", /* @__PURE__ */ new Map());
|
|
55
55
|
o(this, "_buildingSchema");
|
|
56
56
|
this._item = e, this._injector = t, this._commandService = r, this._menuManagerService = i;
|
|
57
|
-
const s = typeof e.action == "string" ? e.action : A
|
|
57
|
+
const s = typeof e.action == "string" ? e.action : A(12);
|
|
58
58
|
s !== e.action && this._commandToRegister.set(s, e.action), this._buildingSchema = {
|
|
59
59
|
// eslint-disable-next-line ts/explicit-function-return-type
|
|
60
60
|
menuItemFactory: () => ({
|
|
@@ -80,13 +80,13 @@ let p = (a = class extends E {
|
|
|
80
80
|
});
|
|
81
81
|
}), { [this._item.id]: this._buildingSchema };
|
|
82
82
|
}
|
|
83
|
-
}, o(a, "RibbonStartGroup",
|
|
84
|
-
|
|
83
|
+
}, o(a, "RibbonStartGroup", w), o(a, "RibbonPosition", T), o(a, "MenuManagerPosition", O), a);
|
|
84
|
+
_ = D([
|
|
85
85
|
d(1, m(f)),
|
|
86
86
|
d(2, u),
|
|
87
87
|
d(3, P)
|
|
88
|
-
],
|
|
89
|
-
let
|
|
88
|
+
], _);
|
|
89
|
+
let l = class extends E {
|
|
90
90
|
constructor(e, t, r) {
|
|
91
91
|
super();
|
|
92
92
|
o(this, "_menuByGroups", []);
|
|
@@ -186,10 +186,10 @@ let _ = class extends E {
|
|
|
186
186
|
}), { [this._item.id]: Object.assign(this._buildingSchema, e) };
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
|
-
|
|
189
|
+
l = D([
|
|
190
190
|
d(1, m(f)),
|
|
191
191
|
d(2, P)
|
|
192
|
-
],
|
|
192
|
+
], l);
|
|
193
193
|
var Q = Object.getOwnPropertyDescriptor, X = (n, e, t, r) => {
|
|
194
194
|
for (var i = r > 1 ? void 0 : r ? Q(e, t) : e, s = n.length - 1, c; s >= 0; s--)
|
|
195
195
|
(c = n[s]) && (i = c(i) || i);
|
|
@@ -302,13 +302,13 @@ class Y extends M {
|
|
|
302
302
|
return this._commandService.executeCommand(v.id);
|
|
303
303
|
}
|
|
304
304
|
paste() {
|
|
305
|
-
return this._commandService.executeCommand(
|
|
305
|
+
return this._commandService.executeCommand(p.id);
|
|
306
306
|
}
|
|
307
307
|
createMenu(e) {
|
|
308
|
-
return this._injector.createInstance(
|
|
308
|
+
return this._injector.createInstance(_, e);
|
|
309
309
|
}
|
|
310
310
|
createSubmenu(e) {
|
|
311
|
-
return this._injector.createInstance(
|
|
311
|
+
return this._injector.createInstance(l, e);
|
|
312
312
|
}
|
|
313
313
|
openSiderbar(e) {
|
|
314
314
|
return this._injector.get(V).open(e);
|
|
@@ -364,12 +364,12 @@ class Z extends j {
|
|
|
364
364
|
}
|
|
365
365
|
onBeforePaste(e) {
|
|
366
366
|
return this._injector.get(u).beforeCommandExecuted((r) => {
|
|
367
|
-
r.id ===
|
|
367
|
+
r.id === p.id && e();
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
370
|
onPaste(e) {
|
|
371
371
|
return this._injector.get(u).onCommandExecuted((r) => {
|
|
372
|
-
(r.id ===
|
|
372
|
+
(r.id === p.id || r.id === K) && e();
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
}
|