@univerjs/uniscript 0.17.0 → 0.18.0
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 +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -237
- package/lib/es/locale/ca-ES.js +1 -20
- package/lib/es/locale/en-US.js +1 -20
- package/lib/es/locale/es-ES.js +1 -20
- package/lib/es/locale/fa-IR.js +1 -20
- package/lib/es/locale/fr-FR.js +1 -20
- package/lib/es/locale/ja-JP.js +1 -20
- package/lib/es/locale/ko-KR.js +1 -20
- package/lib/es/locale/ru-RU.js +1 -20
- package/lib/es/locale/sk-SK.js +1 -20
- package/lib/es/locale/vi-VN.js +1 -20
- package/lib/es/locale/zh-CN.js +1 -20
- package/lib/es/locale/zh-TW.js +1 -20
- package/lib/index.css +19 -1
- package/lib/index.js +1 -237
- package/lib/locale/ca-ES.js +1 -20
- package/lib/locale/en-US.js +1 -20
- package/lib/locale/es-ES.js +1 -20
- package/lib/locale/fa-IR.js +1 -20
- package/lib/locale/fr-FR.js +1 -20
- package/lib/locale/ja-JP.js +1 -20
- package/lib/locale/ko-KR.js +1 -20
- package/lib/locale/ru-RU.js +1 -20
- package/lib/locale/sk-SK.js +1 -20
- package/lib/locale/vi-VN.js +1 -20
- package/lib/locale/zh-CN.js +1 -20
- package/lib/locale/zh-TW.js +1 -20
- package/lib/types/commands/operations/panel.operation.d.ts +16 -1
- package/lib/types/config/config.d.ts +16 -1
- package/lib/types/controllers/uniscript.controller.d.ts +15 -0
- package/lib/types/locale/ca-ES.d.ts +16 -1
- package/lib/types/locale/es-ES.d.ts +16 -1
- package/lib/types/locale/fa-IR.d.ts +16 -1
- package/lib/types/locale/fr-FR.d.ts +16 -1
- package/lib/types/locale/ja-JP.d.ts +16 -1
- package/lib/types/locale/ko-KR.d.ts +16 -1
- package/lib/types/locale/ru-RU.d.ts +16 -1
- package/lib/types/locale/sk-SK.d.ts +16 -1
- package/lib/types/locale/vi-VN.d.ts +16 -1
- package/lib/types/locale/zh-CN.d.ts +16 -1
- package/lib/types/locale/zh-TW.d.ts +16 -1
- package/lib/types/menu/menu.d.ts +17 -2
- package/lib/types/menu/schema.d.ts +16 -1
- package/lib/types/plugin.d.ts +16 -1
- package/lib/types/services/script-editor.service.d.ts +18 -2
- package/lib/types/services/script-execution.service.d.ts +16 -1
- package/lib/types/services/script-panel.service.d.ts +16 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +11 -11
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`@univerjs/core`),t=require(`@univerjs/ui`),n=require(`rxjs`),r=require(`@univerjs/sheets`),i=require(`@univerjs/sheets-ui`),a=require(`@univerjs/design`),o=require(`monaco-editor`),s=require(`react`),c=require(`@univerjs/core/facade`),l=require(`react/jsx-runtime`);function u(e){"@babel/helpers - typeof";return u=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},u(e)}function d(e,t){if(u(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(u(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function f(e){var t=d(e,`string`);return u(t)==`symbol`?t:t+``}function p(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=class extends e.Disposable{constructor(...e){super(...e),p(this,`_open$`,new n.BehaviorSubject(!1)),p(this,`open$`,this._open$.pipe((0,n.distinctUntilChanged)()))}get isOpen(){return this._open$.getValue()}dispose(){super.dispose(),this._open$.next(!1),this._open$.complete()}open(){this._open$.next(!0)}close(){this._open$.next(!1)}};const h=`ScriptPanel`,g={type:e.CommandType.OPERATION,id:`univer.operation.toggle-script-panel`,handler:e=>{let n=e.get(m),r=e.get(t.ISidebarService);return n.isOpen?(n.close(),r.close()):(n.open(),r.open({header:{title:`script-panel.title`},children:{label:h},width:600})),!0}};var _=`@univerjs/uniscript`,v=`0.18.0`;const y=`uniscript.config`;Symbol(y);const b={};function x(n){return{id:g.id,title:`toggle-script-panel`,tooltip:`script-panel.tooltip.menu-button`,icon:`CodeIcon`,type:t.MenuItemType.BUTTON,hidden$:(0,t.getMenuHiddenObservable)(n,e.UniverInstanceType.UNIVER_SHEET),disabled$:(0,i.getCurrentRangeDisable$)(n,{workbookTypes:[r.WorkbookEditablePermission],worksheetTypes:[r.WorksheetEditPermission,r.WorksheetSetCellStylePermission,r.WorksheetSetCellValuePermission],rangeTypes:[r.RangeProtectionPermissionEditPoint]})}}const S={[t.RibbonOthersGroup.OTHERS]:{[g.id]:{order:0,menuItemFactory:x}}};function C(e,t){return function(n,r){t(n,r,e)}}function w(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}let T=class extends e.Disposable{constructor(e){super(),this._configService=e,p(this,`_editorInstance`,null)}dispose(){super.dispose(),this._editorInstance&&this._editorInstance.dispose()}setEditorInstance(t){return this._editorInstance=t,(0,e.toDisposable)(()=>this._editorInstance=null)}getEditorInstance(){return this._editorInstance}requireVscodeEditor(){if(!window.MonacoEnvironment){let e=this._configService.getConfig(y);window.MonacoEnvironment={getWorkerUrl:e==null?void 0:e.getWorkerUrl}}}};T=w([C(0,e.IConfigService)],T);const E=(0,e.createIdentifier)(`univer.uniscript.execution-service`);let D=class extends e.Disposable{constructor(e,t){super(),this._logService=e,this._injector=t}async execute(e){this._logService.log(`[UniscriptExecutionService]`,`executing Uniscript...`);let t=c.FUniver.newAPI(this._injector),n=Function(`univerAPI`,`(() => {${e}})()`);try{return n(t),!0}catch(e){return this._logService.error(e),!1}}};D=w([C(0,e.ILogService),C(1,(0,e.Inject)(e.Injector))],D);function O(){let n=(0,s.useRef)(null),r=(0,s.useRef)(null),i=(0,s.useRef)(null),c=(0,t.useDependency)(e.LocaleService),u=(0,t.useDependency)(t.IShortcutService),d=(0,t.useDependency)(T),f=(0,t.useDependency)(e.ThemeService);(0,s.useEffect)(()=>{let t=r.current,a=n.current,s=null,c=null;if(t&&a){d.requireVscodeEditor();let n=i.current=o.editor.create(t,{value:``,language:`javascript`,theme:f.darkMode?`vs-dark`:`vs-light`});c=new ResizeObserver(()=>{let e=requestIdleCallback(()=>{if(!e)return;let{height:t,width:r}=a.getBoundingClientRect();n.layout({width:r,height:t}),e=void 0})}),c.observe(a);let r;s=new e.DisposableCollection,s.add(d.setEditorInstance(n)),s.add(n.onDidFocusEditorWidget(()=>{r=u.forceEscape()})),s.add(n.onDidBlurEditorWidget(()=>{r==null||r.dispose(),r=void 0})),s.add((0,e.toDisposable)(()=>r==null?void 0:r.dispose()))}return()=>{c&&a&&c.unobserve(a),s==null||s.dispose()}},[d,u]);let p=k(i);return(0,l.jsxs)(`div`,{className:`univer-h-full`,children:[(0,l.jsx)(`div`,{ref:n,className:`univer-h-[calc(100%-60px)] univer-w-full univer-overflow-hidden`,children:(0,l.jsx)(`div`,{ref:r})}),(0,l.jsx)(`div`,{className:`univer-mt-2.5`,children:(0,l.jsx)(a.Button,{variant:`primary`,onClick:p,children:c.t(`script-panel.panel.execute`)})})]})}function k(n){let r=(0,t.useDependency)(E),i=(0,t.useDependency)(t.IMessageService),o=(0,t.useDependency)(e.LocaleService);return(0,s.useCallback)(()=>{var e;let t=(e=n.current)==null?void 0:e.getModel();t&&r.execute(t.getValue()).then(()=>{i.show({content:o.t(`uniscript.message.success`),type:a.MessageType.Success})}).catch(()=>{i.show({content:o.t(`uniscript.message.failed`),type:a.MessageType.Error})})},[o,i,n,r])}let A=class extends e.Disposable{constructor(e,t,n){super(),this._menuManagerService=e,this._menuManagerService.mergeMenu(S),this.disposeWithMe(n.register(h,O)),this.disposeWithMe(t.registerCommand(g))}};A=w([C(0,t.IMenuManagerService),C(1,e.ICommandService),C(2,(0,e.Inject)(t.ComponentManager))],A);let j=class extends e.Plugin{constructor(t=b,n,r){super(),this._config=t,this._injector=n,this._configService=r;let{menu:i,...a}=(0,e.merge)({},b,this._config);i&&this._configService.setConfig(`menu`,i,{merge:!0}),this._configService.setConfig(y,a)}onStarting(){let e=this._injector;[[A],[T],[m]].forEach(t=>e.add(t)),this.registerExecution()}onSteady(){this._injector.get(A)}registerExecution(){this._injector.add([E,{useClass:D}])}};p(j,`pluginName`,`UNIVER_UNISCRIPT_PLUGIN`),p(j,`packageName`,_),p(j,`version`,v),j=w([C(1,(0,e.Inject)(e.Injector)),C(2,e.IConfigService)],j),exports.IUniscriptExecutionService=E,Object.defineProperty(exports,`ScriptEditorService`,{enumerable:!0,get:function(){return T}}),exports.ToggleScriptPanelOperation=g,Object.defineProperty(exports,`UniverUniscriptPlugin`,{enumerable:!0,get:function(){return j}});
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Mostra/Oculta el panell Uniscript`},panel:{execute:`Executa l'script`}},uniscript:{message:{success:`Execució correcta`,failed:`Execució fallida`}}};module.exports=e;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Toggle Uniscript Panel`},panel:{execute:`Execute Script`}},uniscript:{message:{success:`Execution Success`,failed:`Execution Failed`}}};module.exports=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Mostrar/Ocultar panel de Uniscript`},panel:{execute:`Ejecutar script`}},uniscript:{message:{success:`Ejecución exitosa`,failed:`Ejecución fallida`}}};module.exports=e;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`نمایش/مخفی کردن پنل Uniscript`},panel:{execute:`اجرای اسکریپت`}},uniscript:{message:{success:`اجرای موفق`,failed:`اجرای ناموفق`}}};module.exports=e;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Basculer le panneau Uniscript`},panel:{execute:`Exécuter le script`}},uniscript:{message:{success:`Exécution réussie`,failed:`Échec de l'exécution`}}};module.exports=e;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Uniscriptパネルを切り替え`},panel:{execute:`スクリプトを実行`}},uniscript:{message:{success:`実行に成功しました`,failed:`実行に失敗しました`}}};module.exports=e;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Uniscript 패널 전환`},panel:{execute:`스크립트 실행`}},uniscript:{message:{success:`실행 성공`,failed:`실행 실패`}}};module.exports=e;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={"script-panel":{title:`Юнискрипт`,tooltip:{"menu-button":`Переключить панель Юнискрипт`},panel:{execute:`Выполнить скрипт`}},uniscript:{message:{success:`Выполнение успешно`,failed:`Выполнение не удалось`}}};module.exports=e;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Prepnúť panel Uniscript`},panel:{execute:`Spustiť skript`}},uniscript:{message:{success:`Spustenie úspešné`,failed:`Spustenie zlyhalo`}}};module.exports=e;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Mở/Thu gọn bảng điều khiển Uniscript`},panel:{execute:`Thực thi Uniscript`}},uniscript:{message:{success:`Thực thi thành công`,failed:`Thực thi thất bại`}}};module.exports=e;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`打开收起 Uniscript 面板`},panel:{execute:`执行 Uniscript`}},uniscript:{message:{success:`执行成功`,failed:`执行失败`}}};module.exports=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`打開收起 Uniscript 面板`},panel:{execute:`執行 Uniscript`}},uniscript:{message:{success:`執行成功`,failed:`執行失敗`}}};module.exports=e;
|
package/lib/es/index.js
CHANGED
|
@@ -1,237 +1 @@
|
|
|
1
|
-
var L = Object.defineProperty;
|
|
2
|
-
var q = (t, e, r) => e in t ? L(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
-
var l = (t, e, r) => q(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
import { Disposable as f, CommandType as A, UniverInstanceType as H, toDisposable as M, IConfigService as T, createIdentifier as z, ILogService as K, Inject as E, Injector as D, LocaleService as N, ThemeService as Y, DisposableCollection as J, ICommandService as Q, Plugin as X, merge as Z } from "@univerjs/core";
|
|
5
|
-
import { ISidebarService as ee, getMenuHiddenObservable as te, MenuItemType as re, RibbonOthersGroup as ne, useDependency as u, IShortcutService as ie, IMessageService as se, IMenuManagerService as oe, ComponentManager as ce } from "@univerjs/ui";
|
|
6
|
-
import { BehaviorSubject as ae, distinctUntilChanged as le } from "rxjs";
|
|
7
|
-
import { RangeProtectionPermissionEditPoint as ue, WorksheetEditPermission as pe, WorksheetSetCellStylePermission as de, WorksheetSetCellValuePermission as ve, WorkbookEditablePermission as ge } from "@univerjs/sheets";
|
|
8
|
-
import { getCurrentRangeDisable$ as he } from "@univerjs/sheets-ui";
|
|
9
|
-
import { jsxs as me, jsx as h } from "react/jsx-runtime";
|
|
10
|
-
import { Button as _e, MessageType as w } from "@univerjs/design";
|
|
11
|
-
import { editor as fe } from "monaco-editor";
|
|
12
|
-
import { useRef as S, useEffect as Se, useCallback as Ie } from "react";
|
|
13
|
-
import { FUniver as Pe } from "@univerjs/core/facade";
|
|
14
|
-
class R extends f {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
l(this, "_open$", new ae(!1));
|
|
18
|
-
l(this, "open$", this._open$.pipe(le()));
|
|
19
|
-
}
|
|
20
|
-
get isOpen() {
|
|
21
|
-
return this._open$.getValue();
|
|
22
|
-
}
|
|
23
|
-
dispose() {
|
|
24
|
-
super.dispose(), this._open$.next(!1), this._open$.complete();
|
|
25
|
-
}
|
|
26
|
-
open() {
|
|
27
|
-
this._open$.next(!0);
|
|
28
|
-
}
|
|
29
|
-
close() {
|
|
30
|
-
this._open$.next(!1);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
const k = "ScriptPanel", C = {
|
|
34
|
-
type: A.OPERATION,
|
|
35
|
-
id: "univer.operation.toggle-script-panel",
|
|
36
|
-
handler: (t) => {
|
|
37
|
-
const e = t.get(R), r = t.get(ee);
|
|
38
|
-
return e.isOpen ? (e.close(), r.close()) : (e.open(), r.open({
|
|
39
|
-
header: { title: "script-panel.title" },
|
|
40
|
-
children: { label: k },
|
|
41
|
-
width: 600
|
|
42
|
-
})), !0;
|
|
43
|
-
}
|
|
44
|
-
}, Ee = "@univerjs/uniscript", Ce = "0.17.0", x = {
|
|
45
|
-
name: Ee,
|
|
46
|
-
version: Ce
|
|
47
|
-
}, W = "uniscript.config", y = {};
|
|
48
|
-
function be(t) {
|
|
49
|
-
return {
|
|
50
|
-
id: C.id,
|
|
51
|
-
title: "toggle-script-panel",
|
|
52
|
-
tooltip: "script-panel.tooltip.menu-button",
|
|
53
|
-
icon: "CodeIcon",
|
|
54
|
-
type: re.BUTTON,
|
|
55
|
-
// FIXME hidden$ and disabled$ are not correctly in doc
|
|
56
|
-
hidden$: te(t, H.UNIVER_SHEET),
|
|
57
|
-
disabled$: he(t, { workbookTypes: [ge], worksheetTypes: [pe, de, ve], rangeTypes: [ue] })
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
const Oe = {
|
|
61
|
-
[ne.OTHERS]: {
|
|
62
|
-
[C.id]: {
|
|
63
|
-
order: 0,
|
|
64
|
-
menuItemFactory: be
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
var we = Object.getOwnPropertyDescriptor, xe = (t, e, r, n) => {
|
|
69
|
-
for (var i = n > 1 ? void 0 : n ? we(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
70
|
-
(o = t[s]) && (i = o(i) || i);
|
|
71
|
-
return i;
|
|
72
|
-
}, ye = (t, e) => (r, n) => e(r, n, t);
|
|
73
|
-
let m = class extends f {
|
|
74
|
-
constructor(e) {
|
|
75
|
-
super();
|
|
76
|
-
l(this, "_editorInstance", null);
|
|
77
|
-
this._configService = e;
|
|
78
|
-
}
|
|
79
|
-
dispose() {
|
|
80
|
-
super.dispose(), this._editorInstance && this._editorInstance.dispose();
|
|
81
|
-
}
|
|
82
|
-
setEditorInstance(e) {
|
|
83
|
-
return this._editorInstance = e, M(() => this._editorInstance = null);
|
|
84
|
-
}
|
|
85
|
-
getEditorInstance() {
|
|
86
|
-
return this._editorInstance;
|
|
87
|
-
}
|
|
88
|
-
requireVscodeEditor() {
|
|
89
|
-
if (!window.MonacoEnvironment) {
|
|
90
|
-
const e = this._configService.getConfig(W);
|
|
91
|
-
window.MonacoEnvironment = { getWorkerUrl: e == null ? void 0 : e.getWorkerUrl };
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
m = xe([
|
|
96
|
-
ye(0, T)
|
|
97
|
-
], m);
|
|
98
|
-
var $e = Object.getOwnPropertyDescriptor, Ue = (t, e, r, n) => {
|
|
99
|
-
for (var i = n > 1 ? void 0 : n ? $e(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
100
|
-
(o = t[s]) && (i = o(i) || i);
|
|
101
|
-
return i;
|
|
102
|
-
}, $ = (t, e) => (r, n) => e(r, n, t);
|
|
103
|
-
const F = z("univer.uniscript.execution-service");
|
|
104
|
-
let P = class extends f {
|
|
105
|
-
constructor(t, e) {
|
|
106
|
-
super(), this._logService = t, this._injector = e;
|
|
107
|
-
}
|
|
108
|
-
async execute(t) {
|
|
109
|
-
this._logService.log("[UniscriptExecutionService]", "executing Uniscript...");
|
|
110
|
-
const e = Pe.newAPI(this._injector), r = new Function("univerAPI", `(() => {${t}})()`);
|
|
111
|
-
try {
|
|
112
|
-
return r(e), !0;
|
|
113
|
-
} catch (n) {
|
|
114
|
-
return this._logService.error(n), !1;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
P = Ue([
|
|
119
|
-
$(0, K),
|
|
120
|
-
$(1, E(D))
|
|
121
|
-
], P);
|
|
122
|
-
function je() {
|
|
123
|
-
const t = S(null), e = S(null), r = S(null), n = u(N), i = u(ie), s = u(m), o = u(Y);
|
|
124
|
-
Se(() => {
|
|
125
|
-
const b = e.current, p = t.current;
|
|
126
|
-
let c = null, v = null;
|
|
127
|
-
if (b && p) {
|
|
128
|
-
s.requireVscodeEditor();
|
|
129
|
-
const g = r.current = fe.create(b, {
|
|
130
|
-
value: "",
|
|
131
|
-
language: "javascript",
|
|
132
|
-
theme: o.darkMode ? "vs-dark" : "vs-light"
|
|
133
|
-
});
|
|
134
|
-
v = new ResizeObserver(() => {
|
|
135
|
-
let O = requestIdleCallback(() => {
|
|
136
|
-
if (!O) return;
|
|
137
|
-
const { height: B, width: G } = p.getBoundingClientRect();
|
|
138
|
-
g.layout({ width: G, height: B }), O = void 0;
|
|
139
|
-
});
|
|
140
|
-
}), v.observe(p);
|
|
141
|
-
let a;
|
|
142
|
-
c = new J(), c.add(s.setEditorInstance(g)), c.add(
|
|
143
|
-
g.onDidFocusEditorWidget(() => {
|
|
144
|
-
a = i.forceEscape();
|
|
145
|
-
})
|
|
146
|
-
), c.add(
|
|
147
|
-
g.onDidBlurEditorWidget(() => {
|
|
148
|
-
a == null || a.dispose(), a = void 0;
|
|
149
|
-
})
|
|
150
|
-
), c.add(M(() => a == null ? void 0 : a.dispose()));
|
|
151
|
-
}
|
|
152
|
-
return () => {
|
|
153
|
-
v && p && v.unobserve(p), c == null || c.dispose();
|
|
154
|
-
};
|
|
155
|
-
}, [s, i]);
|
|
156
|
-
const V = Me(r);
|
|
157
|
-
return /* @__PURE__ */ me("div", { className: "univer-h-full", children: [
|
|
158
|
-
/* @__PURE__ */ h("div", { ref: t, className: "univer-h-[calc(100%-60px)] univer-w-full univer-overflow-hidden", children: /* @__PURE__ */ h("div", { ref: e }) }),
|
|
159
|
-
/* @__PURE__ */ h("div", { className: "univer-mt-2.5", children: /* @__PURE__ */ h(_e, { variant: "primary", onClick: V, children: n.t("script-panel.panel.execute") }) })
|
|
160
|
-
] });
|
|
161
|
-
}
|
|
162
|
-
function Me(t) {
|
|
163
|
-
const e = u(F), r = u(se), n = u(N);
|
|
164
|
-
return Ie(() => {
|
|
165
|
-
var s;
|
|
166
|
-
const i = (s = t.current) == null ? void 0 : s.getModel();
|
|
167
|
-
i && e.execute(i.getValue()).then(() => {
|
|
168
|
-
r.show({
|
|
169
|
-
content: n.t("uniscript.message.success"),
|
|
170
|
-
type: w.Success
|
|
171
|
-
});
|
|
172
|
-
}).catch(() => {
|
|
173
|
-
r.show({
|
|
174
|
-
content: n.t("uniscript.message.failed"),
|
|
175
|
-
type: w.Error
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
}, [n, r, t, e]);
|
|
179
|
-
}
|
|
180
|
-
var Te = Object.getOwnPropertyDescriptor, De = (t, e, r, n) => {
|
|
181
|
-
for (var i = n > 1 ? void 0 : n ? Te(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
182
|
-
(o = t[s]) && (i = o(i) || i);
|
|
183
|
-
return i;
|
|
184
|
-
}, I = (t, e) => (r, n) => e(r, n, t);
|
|
185
|
-
let _ = class extends f {
|
|
186
|
-
constructor(t, e, r) {
|
|
187
|
-
super(), this._menuManagerService = t, this._menuManagerService.mergeMenu(Oe), this.disposeWithMe(r.register(k, je)), this.disposeWithMe(e.registerCommand(C));
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
_ = De([
|
|
191
|
-
I(0, oe),
|
|
192
|
-
I(1, Q),
|
|
193
|
-
I(2, E(ce))
|
|
194
|
-
], _);
|
|
195
|
-
var Ne = Object.getOwnPropertyDescriptor, Re = (t, e, r, n) => {
|
|
196
|
-
for (var i = n > 1 ? void 0 : n ? Ne(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
197
|
-
(o = t[s]) && (i = o(i) || i);
|
|
198
|
-
return i;
|
|
199
|
-
}, U = (t, e) => (r, n) => e(r, n, t), d;
|
|
200
|
-
let j = (d = class extends X {
|
|
201
|
-
constructor(t = y, e, r) {
|
|
202
|
-
super(), this._config = t, this._injector = e, this._configService = r;
|
|
203
|
-
const { menu: n, ...i } = Z(
|
|
204
|
-
{},
|
|
205
|
-
y,
|
|
206
|
-
this._config
|
|
207
|
-
);
|
|
208
|
-
n && this._configService.setConfig("menu", n, { merge: !0 }), this._configService.setConfig(W, i);
|
|
209
|
-
}
|
|
210
|
-
onStarting() {
|
|
211
|
-
const t = this._injector;
|
|
212
|
-
[
|
|
213
|
-
[_],
|
|
214
|
-
[m],
|
|
215
|
-
[R]
|
|
216
|
-
].forEach((r) => t.add(r)), this.registerExecution();
|
|
217
|
-
}
|
|
218
|
-
onSteady() {
|
|
219
|
-
this._injector.get(_);
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Allows being overridden, replacing with a new UniscriptExecutionService.
|
|
223
|
-
*/
|
|
224
|
-
registerExecution() {
|
|
225
|
-
this._injector.add([F, { useClass: P }]);
|
|
226
|
-
}
|
|
227
|
-
}, l(d, "pluginName", "UNIVER_UNISCRIPT_PLUGIN"), l(d, "packageName", x.name), l(d, "version", x.version), d);
|
|
228
|
-
j = Re([
|
|
229
|
-
U(1, E(D)),
|
|
230
|
-
U(2, T)
|
|
231
|
-
], j);
|
|
232
|
-
export {
|
|
233
|
-
F as IUniscriptExecutionService,
|
|
234
|
-
m as ScriptEditorService,
|
|
235
|
-
C as ToggleScriptPanelOperation,
|
|
236
|
-
j as UniverUniscriptPlugin
|
|
237
|
-
};
|
|
1
|
+
import{CommandType as e,Disposable as t,DisposableCollection as n,ICommandService as r,IConfigService as i,ILogService as a,Inject as o,Injector as s,LocaleService as c,Plugin as l,ThemeService as u,UniverInstanceType as d,createIdentifier as f,merge as p,toDisposable as m}from"@univerjs/core";import{ComponentManager as h,IMenuManagerService as g,IMessageService as _,IShortcutService as v,ISidebarService as y,MenuItemType as b,RibbonOthersGroup as x,getMenuHiddenObservable as S,useDependency as C}from"@univerjs/ui";import{BehaviorSubject as ee,distinctUntilChanged as te}from"rxjs";import{RangeProtectionPermissionEditPoint as ne,WorkbookEditablePermission as re,WorksheetEditPermission as ie,WorksheetSetCellStylePermission as ae,WorksheetSetCellValuePermission as oe}from"@univerjs/sheets";import{getCurrentRangeDisable$ as w}from"@univerjs/sheets-ui";import{Button as T,MessageType as E}from"@univerjs/design";import{editor as D}from"monaco-editor";import{useCallback as O,useEffect as k,useRef as A}from"react";import{FUniver as j}from"@univerjs/core/facade";import{jsx as M,jsxs as N}from"react/jsx-runtime";function P(e){"@babel/helpers - typeof";return P=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},P(e)}function F(e,t){if(P(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(P(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function I(e){var t=F(e,`string`);return P(t)==`symbol`?t:t+``}function L(e,t,n){return(t=I(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=class extends t{constructor(...e){super(...e),L(this,`_open$`,new ee(!1)),L(this,`open$`,this._open$.pipe(te()))}get isOpen(){return this._open$.getValue()}dispose(){super.dispose(),this._open$.next(!1),this._open$.complete()}open(){this._open$.next(!0)}close(){this._open$.next(!1)}};const z=`ScriptPanel`,B={type:e.OPERATION,id:`univer.operation.toggle-script-panel`,handler:e=>{let t=e.get(R),n=e.get(y);return t.isOpen?(t.close(),n.close()):(t.open(),n.open({header:{title:`script-panel.title`},children:{label:z},width:600})),!0}};var V=`@univerjs/uniscript`,H=`0.18.0`;const U=`uniscript.config`;Symbol(U);const W={};function G(e){return{id:B.id,title:`toggle-script-panel`,tooltip:`script-panel.tooltip.menu-button`,icon:`CodeIcon`,type:b.BUTTON,hidden$:S(e,d.UNIVER_SHEET),disabled$:w(e,{workbookTypes:[re],worksheetTypes:[ie,ae,oe],rangeTypes:[ne]})}}const K={[x.OTHERS]:{[B.id]:{order:0,menuItemFactory:G}}};function q(e,t){return function(n,r){t(n,r,e)}}function J(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}let Y=class extends t{constructor(e){super(),this._configService=e,L(this,`_editorInstance`,null)}dispose(){super.dispose(),this._editorInstance&&this._editorInstance.dispose()}setEditorInstance(e){return this._editorInstance=e,m(()=>this._editorInstance=null)}getEditorInstance(){return this._editorInstance}requireVscodeEditor(){if(!window.MonacoEnvironment){let e=this._configService.getConfig(U);window.MonacoEnvironment={getWorkerUrl:e==null?void 0:e.getWorkerUrl}}}};Y=J([q(0,i)],Y);const X=f(`univer.uniscript.execution-service`);let Z=class extends t{constructor(e,t){super(),this._logService=e,this._injector=t}async execute(e){this._logService.log(`[UniscriptExecutionService]`,`executing Uniscript...`);let t=j.newAPI(this._injector),n=Function(`univerAPI`,`(() => {${e}})()`);try{return n(t),!0}catch(e){return this._logService.error(e),!1}}};Z=J([q(0,a),q(1,o(s))],Z);function se(){let e=A(null),t=A(null),r=A(null),i=C(c),a=C(v),o=C(Y),s=C(u);k(()=>{let i=t.current,c=e.current,l=null,u=null;if(i&&c){o.requireVscodeEditor();let e=r.current=D.create(i,{value:``,language:`javascript`,theme:s.darkMode?`vs-dark`:`vs-light`});u=new ResizeObserver(()=>{let t=requestIdleCallback(()=>{if(!t)return;let{height:n,width:r}=c.getBoundingClientRect();e.layout({width:r,height:n}),t=void 0})}),u.observe(c);let t;l=new n,l.add(o.setEditorInstance(e)),l.add(e.onDidFocusEditorWidget(()=>{t=a.forceEscape()})),l.add(e.onDidBlurEditorWidget(()=>{t==null||t.dispose(),t=void 0})),l.add(m(()=>t==null?void 0:t.dispose()))}return()=>{u&&c&&u.unobserve(c),l==null||l.dispose()}},[o,a]);let l=ce(r);return N(`div`,{className:`univer-h-full`,children:[M(`div`,{ref:e,className:`univer-h-[calc(100%-60px)] univer-w-full univer-overflow-hidden`,children:M(`div`,{ref:t})}),M(`div`,{className:`univer-mt-2.5`,children:M(T,{variant:`primary`,onClick:l,children:i.t(`script-panel.panel.execute`)})})]})}function ce(e){let t=C(X),n=C(_),r=C(c);return O(()=>{var i;let a=(i=e.current)==null?void 0:i.getModel();a&&t.execute(a.getValue()).then(()=>{n.show({content:r.t(`uniscript.message.success`),type:E.Success})}).catch(()=>{n.show({content:r.t(`uniscript.message.failed`),type:E.Error})})},[r,n,e,t])}let Q=class extends t{constructor(e,t,n){super(),this._menuManagerService=e,this._menuManagerService.mergeMenu(K),this.disposeWithMe(n.register(z,se)),this.disposeWithMe(t.registerCommand(B))}};Q=J([q(0,g),q(1,r),q(2,o(h))],Q);let $=class extends l{constructor(e=W,t,n){super(),this._config=e,this._injector=t,this._configService=n;let{menu:r,...i}=p({},W,this._config);r&&this._configService.setConfig(`menu`,r,{merge:!0}),this._configService.setConfig(U,i)}onStarting(){let e=this._injector;[[Q],[Y],[R]].forEach(t=>e.add(t)),this.registerExecution()}onSteady(){this._injector.get(Q)}registerExecution(){this._injector.add([X,{useClass:Z}])}};L($,`pluginName`,`UNIVER_UNISCRIPT_PLUGIN`),L($,`packageName`,V),L($,`version`,H),$=J([q(1,o(s)),q(2,i)],$);export{X as IUniscriptExecutionService,Y as ScriptEditorService,B as ToggleScriptPanelOperation,$ as UniverUniscriptPlugin};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
const e
|
|
2
|
-
"script-panel": {
|
|
3
|
-
title: "Uniscript",
|
|
4
|
-
tooltip: {
|
|
5
|
-
"menu-button": "Mostra/Oculta el panell Uniscript"
|
|
6
|
-
},
|
|
7
|
-
panel: {
|
|
8
|
-
execute: "Executa l'script"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
uniscript: {
|
|
12
|
-
message: {
|
|
13
|
-
success: "Execució correcta",
|
|
14
|
-
failed: "Execució fallida"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
e as default
|
|
20
|
-
};
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Mostra/Oculta el panell Uniscript`},panel:{execute:`Executa l'script`}},uniscript:{message:{success:`Execució correcta`,failed:`Execució fallida`}}};export{e as default};
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
const e
|
|
2
|
-
"script-panel": {
|
|
3
|
-
title: "Uniscript",
|
|
4
|
-
tooltip: {
|
|
5
|
-
"menu-button": "Toggle Uniscript Panel"
|
|
6
|
-
},
|
|
7
|
-
panel: {
|
|
8
|
-
execute: "Execute Script"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
uniscript: {
|
|
12
|
-
message: {
|
|
13
|
-
success: "Execution Success",
|
|
14
|
-
failed: "Execution Failed"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
e as default
|
|
20
|
-
};
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Toggle Uniscript Panel`},panel:{execute:`Execute Script`}},uniscript:{message:{success:`Execution Success`,failed:`Execution Failed`}}};export{e as default};
|
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
const e
|
|
2
|
-
"script-panel": {
|
|
3
|
-
title: "Uniscript",
|
|
4
|
-
tooltip: {
|
|
5
|
-
"menu-button": "Mostrar/Ocultar panel de Uniscript"
|
|
6
|
-
},
|
|
7
|
-
panel: {
|
|
8
|
-
execute: "Ejecutar script"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
uniscript: {
|
|
12
|
-
message: {
|
|
13
|
-
success: "Ejecución exitosa",
|
|
14
|
-
failed: "Ejecución fallida"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
e as default
|
|
20
|
-
};
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Mostrar/Ocultar panel de Uniscript`},panel:{execute:`Ejecutar script`}},uniscript:{message:{success:`Ejecución exitosa`,failed:`Ejecución fallida`}}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
const e
|
|
2
|
-
"script-panel": {
|
|
3
|
-
title: "Uniscript",
|
|
4
|
-
tooltip: {
|
|
5
|
-
"menu-button": "نمایش/مخفی کردن پنل Uniscript"
|
|
6
|
-
},
|
|
7
|
-
panel: {
|
|
8
|
-
execute: "اجرای اسکریپت"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
uniscript: {
|
|
12
|
-
message: {
|
|
13
|
-
success: "اجرای موفق",
|
|
14
|
-
failed: "اجرای ناموفق"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
e as default
|
|
20
|
-
};
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`نمایش/مخفی کردن پنل Uniscript`},panel:{execute:`اجرای اسکریپت`}},uniscript:{message:{success:`اجرای موفق`,failed:`اجرای ناموفق`}}};export{e as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
const e
|
|
2
|
-
"script-panel": {
|
|
3
|
-
title: "Uniscript",
|
|
4
|
-
tooltip: {
|
|
5
|
-
"menu-button": "Basculer le panneau Uniscript"
|
|
6
|
-
},
|
|
7
|
-
panel: {
|
|
8
|
-
execute: "Exécuter le script"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
uniscript: {
|
|
12
|
-
message: {
|
|
13
|
-
success: "Exécution réussie",
|
|
14
|
-
failed: "Échec de l'exécution"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
e as default
|
|
20
|
-
};
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Basculer le panneau Uniscript`},panel:{execute:`Exécuter le script`}},uniscript:{message:{success:`Exécution réussie`,failed:`Échec de l'exécution`}}};export{e as default};
|
package/lib/es/locale/ja-JP.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
const e
|
|
2
|
-
"script-panel": {
|
|
3
|
-
title: "Uniscript",
|
|
4
|
-
tooltip: {
|
|
5
|
-
"menu-button": "Uniscriptパネルを切り替え"
|
|
6
|
-
},
|
|
7
|
-
panel: {
|
|
8
|
-
execute: "スクリプトを実行"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
uniscript: {
|
|
12
|
-
message: {
|
|
13
|
-
success: "実行に成功しました",
|
|
14
|
-
failed: "実行に失敗しました"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
e as default
|
|
20
|
-
};
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Uniscriptパネルを切り替え`},panel:{execute:`スクリプトを実行`}},uniscript:{message:{success:`実行に成功しました`,failed:`実行に失敗しました`}}};export{e as default};
|
package/lib/es/locale/ko-KR.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
const e
|
|
2
|
-
"script-panel": {
|
|
3
|
-
title: "Uniscript",
|
|
4
|
-
tooltip: {
|
|
5
|
-
"menu-button": "Uniscript 패널 전환"
|
|
6
|
-
},
|
|
7
|
-
panel: {
|
|
8
|
-
execute: "스크립트 실행"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
uniscript: {
|
|
12
|
-
message: {
|
|
13
|
-
success: "실행 성공",
|
|
14
|
-
failed: "실행 실패"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
e as default
|
|
20
|
-
};
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Uniscript 패널 전환`},panel:{execute:`스크립트 실행`}},uniscript:{message:{success:`실행 성공`,failed:`실행 실패`}}};export{e as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
const e
|
|
2
|
-
"script-panel": {
|
|
3
|
-
title: "Юнискрипт",
|
|
4
|
-
tooltip: {
|
|
5
|
-
"menu-button": "Переключить панель Юнискрипт"
|
|
6
|
-
},
|
|
7
|
-
panel: {
|
|
8
|
-
execute: "Выполнить скрипт"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
uniscript: {
|
|
12
|
-
message: {
|
|
13
|
-
success: "Выполнение успешно",
|
|
14
|
-
failed: "Выполнение не удалось"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
e as default
|
|
20
|
-
};
|
|
1
|
+
const e={"script-panel":{title:`Юнискрипт`,tooltip:{"menu-button":`Переключить панель Юнискрипт`},panel:{execute:`Выполнить скрипт`}},uniscript:{message:{success:`Выполнение успешно`,failed:`Выполнение не удалось`}}};export{e as default};
|
package/lib/es/locale/sk-SK.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
const e
|
|
2
|
-
"script-panel": {
|
|
3
|
-
title: "Uniscript",
|
|
4
|
-
tooltip: {
|
|
5
|
-
"menu-button": "Prepnúť panel Uniscript"
|
|
6
|
-
},
|
|
7
|
-
panel: {
|
|
8
|
-
execute: "Spustiť skript"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
uniscript: {
|
|
12
|
-
message: {
|
|
13
|
-
success: "Spustenie úspešné",
|
|
14
|
-
failed: "Spustenie zlyhalo"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
e as default
|
|
20
|
-
};
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Prepnúť panel Uniscript`},panel:{execute:`Spustiť skript`}},uniscript:{message:{success:`Spustenie úspešné`,failed:`Spustenie zlyhalo`}}};export{e as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
"script-panel": {
|
|
3
|
-
title: "Uniscript",
|
|
4
|
-
tooltip: {
|
|
5
|
-
"menu-button": "Mở/Thu gọn bảng điều khiển Uniscript"
|
|
6
|
-
},
|
|
7
|
-
panel: {
|
|
8
|
-
execute: "Thực thi Uniscript"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
uniscript: {
|
|
12
|
-
message: {
|
|
13
|
-
success: "Thực thi thành công",
|
|
14
|
-
failed: "Thực thi thất bại"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
t as default
|
|
20
|
-
};
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`Mở/Thu gọn bảng điều khiển Uniscript`},panel:{execute:`Thực thi Uniscript`}},uniscript:{message:{success:`Thực thi thành công`,failed:`Thực thi thất bại`}}};export{e as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
"script-panel": {
|
|
3
|
-
title: "Uniscript",
|
|
4
|
-
tooltip: {
|
|
5
|
-
"menu-button": "打开收起 Uniscript 面板"
|
|
6
|
-
},
|
|
7
|
-
panel: {
|
|
8
|
-
execute: "执行 Uniscript"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
uniscript: {
|
|
12
|
-
message: {
|
|
13
|
-
success: "执行成功",
|
|
14
|
-
failed: "执行失败"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
t as default
|
|
20
|
-
};
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`打开收起 Uniscript 面板`},panel:{execute:`执行 Uniscript`}},uniscript:{message:{success:`执行成功`,failed:`执行失败`}}};export{e as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
"script-panel": {
|
|
3
|
-
title: "Uniscript",
|
|
4
|
-
tooltip: {
|
|
5
|
-
"menu-button": "打開收起 Uniscript 面板"
|
|
6
|
-
},
|
|
7
|
-
panel: {
|
|
8
|
-
execute: "執行 Uniscript"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
uniscript: {
|
|
12
|
-
message: {
|
|
13
|
-
success: "執行成功",
|
|
14
|
-
failed: "執行失敗"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
t as default
|
|
20
|
-
};
|
|
1
|
+
const e={"script-panel":{title:`Uniscript`,tooltip:{"menu-button":`打開收起 Uniscript 面板`},panel:{execute:`執行 Uniscript`}},uniscript:{message:{success:`執行成功`,failed:`執行失敗`}}};export{e as default};
|