@univerjs/sheets-hyper-link-ui 0.24.0 → 0.25.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 +34 -33
- package/lib/cjs/locale/ar-SA.js +36 -0
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +36 -0
- 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/id-ID.js +36 -0
- package/lib/cjs/locale/it-IT.js +36 -0
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +36 -0
- package/lib/cjs/locale/pt-BR.js +36 -0
- 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-HK.js +36 -0
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +35 -34
- package/lib/es/locale/ar-SA.js +35 -0
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +35 -0
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +35 -0
- package/lib/es/locale/it-IT.js +35 -0
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +35 -0
- package/lib/es/locale/pt-BR.js +35 -0
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +35 -0
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +35 -34
- package/lib/locale/ar-SA.js +35 -0
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +35 -0
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +35 -0
- package/lib/locale/it-IT.js +35 -0
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +35 -0
- package/lib/locale/pt-BR.js +35 -0
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +35 -0
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/locale/ar-SA.d.ts +18 -0
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +1 -1
- package/lib/types/locale/id-ID.d.ts +18 -0
- package/lib/types/locale/it-IT.d.ts +18 -0
- package/lib/types/locale/pl-PL.d.ts +18 -0
- package/lib/types/locale/pt-BR.d.ts +18 -0
- package/lib/types/locale/zh-HK.d.ts +18 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -0
- 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/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- 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-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
|
@@ -63,7 +63,7 @@ const configSymbol = Symbol(SHEETS_HYPER_LINK_UI_PLUGIN_CONFIG_KEY);
|
|
|
63
63
|
const defaultPluginConfig = {};
|
|
64
64
|
|
|
65
65
|
//#endregion
|
|
66
|
-
//#region \0@oxc-project+runtime@0.
|
|
66
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
|
|
67
67
|
function __decorateParam(paramIndex, decorator) {
|
|
68
68
|
return function(target, key) {
|
|
69
69
|
decorator(target, key, paramIndex);
|
|
@@ -71,7 +71,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
//#endregion
|
|
74
|
-
//#region \0@oxc-project+runtime@0.
|
|
74
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
|
|
75
75
|
function __decorate(decorators, target, key, desc) {
|
|
76
76
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
77
77
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -123,14 +123,14 @@ let SheetsHyperLinkResolverService = class SheetsHyperLinkResolverService {
|
|
|
123
123
|
const worksheet = this._definedNamesService.getWorksheetByRef(unitId, formulaOrRefString);
|
|
124
124
|
if (!worksheet) {
|
|
125
125
|
this._messageService.show({
|
|
126
|
-
content: this._localeService.t("
|
|
126
|
+
content: this._localeService.t("sheets-hyper-link-ui.message.refError"),
|
|
127
127
|
type: _univerjs_design.MessageType.Error
|
|
128
128
|
});
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
if (worksheet.isSheetHidden()) {
|
|
132
132
|
this._messageService.show({
|
|
133
|
-
content: this._localeService.t("
|
|
133
|
+
content: this._localeService.t("sheets-hyper-link-ui.message.hiddenSheet"),
|
|
134
134
|
type: _univerjs_design.MessageType.Error
|
|
135
135
|
});
|
|
136
136
|
return;
|
|
@@ -172,14 +172,14 @@ let SheetsHyperLinkResolverService = class SheetsHyperLinkResolverService {
|
|
|
172
172
|
const targetSheet = workbook.getSheetBySheetId(subUnitId);
|
|
173
173
|
if (!targetSheet) {
|
|
174
174
|
this._messageService.show({
|
|
175
|
-
content: this._localeService.t("
|
|
175
|
+
content: this._localeService.t("sheets-hyper-link-ui.message.noSheet"),
|
|
176
176
|
type: _univerjs_design.MessageType.Error
|
|
177
177
|
});
|
|
178
178
|
return false;
|
|
179
179
|
}
|
|
180
180
|
if (workbook.getHiddenWorksheets().indexOf(subUnitId) > -1) {
|
|
181
181
|
this._messageService.show({
|
|
182
|
-
content: this._localeService.t("
|
|
182
|
+
content: this._localeService.t("sheets-hyper-link-ui.message.hiddenSheet"),
|
|
183
183
|
type: _univerjs_design.MessageType.Error
|
|
184
184
|
});
|
|
185
185
|
return false;
|
|
@@ -196,6 +196,7 @@ let SheetsHyperLinkResolverService = class SheetsHyperLinkResolverService {
|
|
|
196
196
|
}
|
|
197
197
|
async navigateToOtherWebsite(url) {
|
|
198
198
|
var _config$urlHandler;
|
|
199
|
+
if (!(0, _univerjs_core.isSafeUrl)(url)) return;
|
|
199
200
|
const config = this._configService.getConfig(SHEETS_HYPER_LINK_UI_PLUGIN_CONFIG_KEY);
|
|
200
201
|
if (config === null || config === void 0 || (_config$urlHandler = config.urlHandler) === null || _config$urlHandler === void 0 ? void 0 : _config$urlHandler.navigateToOtherWebsite) return config.urlHandler.navigateToOtherWebsite(url);
|
|
201
202
|
window.open(url, "_blank", "noopener noreferrer");
|
|
@@ -211,7 +212,7 @@ SheetsHyperLinkResolverService = __decorate([
|
|
|
211
212
|
], SheetsHyperLinkResolverService);
|
|
212
213
|
|
|
213
214
|
//#endregion
|
|
214
|
-
//#region \0@oxc-project+runtime@0.
|
|
215
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
|
|
215
216
|
function _typeof(o) {
|
|
216
217
|
"@babel/helpers - typeof";
|
|
217
218
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -222,7 +223,7 @@ function _typeof(o) {
|
|
|
222
223
|
}
|
|
223
224
|
|
|
224
225
|
//#endregion
|
|
225
|
-
//#region \0@oxc-project+runtime@0.
|
|
226
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
|
|
226
227
|
function toPrimitive(t, r) {
|
|
227
228
|
if ("object" != _typeof(t) || !t) return t;
|
|
228
229
|
var e = t[Symbol.toPrimitive];
|
|
@@ -235,14 +236,14 @@ function toPrimitive(t, r) {
|
|
|
235
236
|
}
|
|
236
237
|
|
|
237
238
|
//#endregion
|
|
238
|
-
//#region \0@oxc-project+runtime@0.
|
|
239
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
|
|
239
240
|
function toPropertyKey(t) {
|
|
240
241
|
var i = toPrimitive(t, "string");
|
|
241
242
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
242
243
|
}
|
|
243
244
|
|
|
244
245
|
//#endregion
|
|
245
|
-
//#region \0@oxc-project+runtime@0.
|
|
246
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
|
|
246
247
|
function _defineProperty(e, r, t) {
|
|
247
248
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
248
249
|
value: t,
|
|
@@ -533,19 +534,19 @@ const CellLinkEdit = () => {
|
|
|
533
534
|
}, [isFocusRangeSelector, editorBridgeService]);
|
|
534
535
|
const linkTypeOptions = [
|
|
535
536
|
{
|
|
536
|
-
label: localeService.t("
|
|
537
|
+
label: localeService.t("sheets-hyper-link-ui.form.link"),
|
|
537
538
|
value: _univerjs_sheets_hyper_link.SheetHyperLinkType.URL
|
|
538
539
|
},
|
|
539
540
|
{
|
|
540
|
-
label: localeService.t("
|
|
541
|
+
label: localeService.t("sheets-hyper-link-ui.form.range"),
|
|
541
542
|
value: _univerjs_sheets_hyper_link.SheetHyperLinkType.RANGE
|
|
542
543
|
},
|
|
543
544
|
{
|
|
544
|
-
label: localeService.t("
|
|
545
|
+
label: localeService.t("sheets-hyper-link-ui.form.worksheet"),
|
|
545
546
|
value: _univerjs_sheets_hyper_link.SheetHyperLinkType.SHEET
|
|
546
547
|
},
|
|
547
548
|
{
|
|
548
|
-
label: localeService.t("
|
|
549
|
+
label: localeService.t("sheets-hyper-link-ui.form.definedName"),
|
|
549
550
|
value: _univerjs_sheets_hyper_link.SheetHyperLinkType.DEFINE_NAME
|
|
550
551
|
},
|
|
551
552
|
...sidePanelOptions
|
|
@@ -636,15 +637,15 @@ const CellLinkEdit = () => {
|
|
|
636
637
|
className: (0, _univerjs_design.clsx)("univer-box-border univer-w-[296px] univer-rounded-xl univer-bg-white univer-p-4 univer-shadow-md dark:!univer-bg-gray-900", _univerjs_design.borderClassName),
|
|
637
638
|
children: [
|
|
638
639
|
showLabel ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
|
|
639
|
-
label: localeService.t("
|
|
640
|
-
error: showError && isBlankInput(display) ? localeService.t("
|
|
640
|
+
label: localeService.t("sheets-hyper-link-ui.form.label"),
|
|
641
|
+
error: showError && isBlankInput(display) ? localeService.t("sheets-hyper-link-ui.form.inputError") : "",
|
|
641
642
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Input, {
|
|
642
643
|
value: display,
|
|
643
644
|
onChange: (v) => {
|
|
644
645
|
setDisplay(v);
|
|
645
646
|
setByPayload.current = false;
|
|
646
647
|
},
|
|
647
|
-
placeholder: localeService.t("
|
|
648
|
+
placeholder: localeService.t("sheets-hyper-link-ui.form.labelPlaceholder"),
|
|
648
649
|
autoFocus: true,
|
|
649
650
|
onKeyDown: (e) => {
|
|
650
651
|
if (e.keyCode === _univerjs_ui.KeyCode.ENTER) handleSubmit();
|
|
@@ -652,7 +653,7 @@ const CellLinkEdit = () => {
|
|
|
652
653
|
})
|
|
653
654
|
}) : null,
|
|
654
655
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
|
|
655
|
-
label: localeService.t("
|
|
656
|
+
label: localeService.t("sheets-hyper-link-ui.form.type"),
|
|
656
657
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
|
|
657
658
|
className: "univer-w-full",
|
|
658
659
|
options: linkTypeOptions,
|
|
@@ -664,7 +665,7 @@ const CellLinkEdit = () => {
|
|
|
664
665
|
})
|
|
665
666
|
}),
|
|
666
667
|
type === _univerjs_sheets_hyper_link.SheetHyperLinkType.URL && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
|
|
667
|
-
error: showError ? !payload ? localeService.t("
|
|
668
|
+
error: showError ? !payload ? localeService.t("sheets-hyper-link-ui.form.inputError") : !isLegalLink(payload) ? localeService.t("sheets-hyper-link-ui.form.linkError") : "" : "",
|
|
668
669
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Input, {
|
|
669
670
|
value: payload,
|
|
670
671
|
onChange: (newLink) => {
|
|
@@ -674,7 +675,7 @@ const CellLinkEdit = () => {
|
|
|
674
675
|
setByPayload.current = true;
|
|
675
676
|
}
|
|
676
677
|
},
|
|
677
|
-
placeholder: localeService.t("
|
|
678
|
+
placeholder: localeService.t("sheets-hyper-link-ui.form.linkPlaceholder"),
|
|
678
679
|
autoFocus: true,
|
|
679
680
|
onKeyDown: (e) => {
|
|
680
681
|
if (e.keyCode === _univerjs_ui.KeyCode.ENTER) handleSubmit();
|
|
@@ -682,7 +683,7 @@ const CellLinkEdit = () => {
|
|
|
682
683
|
})
|
|
683
684
|
}),
|
|
684
685
|
type === _univerjs_sheets_hyper_link.SheetHyperLinkType.RANGE && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
|
|
685
|
-
error: showError && !payload ? localeService.t("
|
|
686
|
+
error: showError && !payload ? localeService.t("sheets-hyper-link-ui.form.inputError") : "",
|
|
686
687
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_sheets_formula_ui.RangeSelector, {
|
|
687
688
|
unitId: workbook.getUnitId(),
|
|
688
689
|
subUnitId,
|
|
@@ -742,7 +743,7 @@ const CellLinkEdit = () => {
|
|
|
742
743
|
})
|
|
743
744
|
}),
|
|
744
745
|
type === _univerjs_sheets_hyper_link.SheetHyperLinkType.SHEET && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
|
|
745
|
-
error: showError && !payload ? localeService.t("
|
|
746
|
+
error: showError && !payload ? localeService.t("sheets-hyper-link-ui.form.selectError") : "",
|
|
746
747
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
|
|
747
748
|
className: "univer-w-full",
|
|
748
749
|
options: sheetsOption,
|
|
@@ -760,7 +761,7 @@ const CellLinkEdit = () => {
|
|
|
760
761
|
})
|
|
761
762
|
}),
|
|
762
763
|
type === _univerjs_sheets_hyper_link.SheetHyperLinkType.DEFINE_NAME && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, {
|
|
763
|
-
error: showError && !payload ? localeService.t("
|
|
764
|
+
error: showError && !payload ? localeService.t("sheets-hyper-link-ui.form.selectError") : "",
|
|
764
765
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Select, {
|
|
765
766
|
className: "univer-w-full",
|
|
766
767
|
options: definedNames,
|
|
@@ -801,13 +802,13 @@ const CellLinkEdit = () => {
|
|
|
801
802
|
}, true);
|
|
802
803
|
commandService.executeCommand(CloseHyperLinkPopupOperation.id);
|
|
803
804
|
},
|
|
804
|
-
children: localeService.t("
|
|
805
|
+
children: localeService.t("sheets-hyper-link-ui.form.cancel")
|
|
805
806
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
|
|
806
807
|
variant: "primary",
|
|
807
808
|
onClick: async () => {
|
|
808
809
|
handleSubmit();
|
|
809
810
|
},
|
|
810
|
-
children: localeService.t("
|
|
811
|
+
children: localeService.t("sheets-hyper-link-ui.form.ok")
|
|
811
812
|
})]
|
|
812
813
|
})
|
|
813
814
|
]
|
|
@@ -872,13 +873,13 @@ const CellLinkPopupPure = (props) => {
|
|
|
872
873
|
navigator.clipboard.writeText(url.href);
|
|
873
874
|
} else navigator.clipboard.writeText(linkObj.url);
|
|
874
875
|
messageService.show({
|
|
875
|
-
content: localeService.t("
|
|
876
|
+
content: localeService.t("sheets-hyper-link-ui.message.coped"),
|
|
876
877
|
type: _univerjs_design.MessageType.Info
|
|
877
878
|
});
|
|
878
879
|
},
|
|
879
880
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Tooltip, {
|
|
880
881
|
placement: "bottom",
|
|
881
|
-
title: localeService.t("
|
|
882
|
+
title: localeService.t("sheets-hyper-link-ui.popup.copy"),
|
|
882
883
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.CopyIcon, { className: "dark:!univer-text-white" })
|
|
883
884
|
})
|
|
884
885
|
}), editPermission && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -895,7 +896,7 @@ const CellLinkPopupPure = (props) => {
|
|
|
895
896
|
},
|
|
896
897
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Tooltip, {
|
|
897
898
|
placement: "bottom",
|
|
898
|
-
title: localeService.t("
|
|
899
|
+
title: localeService.t("sheets-hyper-link-ui.popup.edit"),
|
|
899
900
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.WriteIcon, { className: "dark:!univer-text-white" })
|
|
900
901
|
})
|
|
901
902
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -913,7 +914,7 @@ const CellLinkPopupPure = (props) => {
|
|
|
913
914
|
},
|
|
914
915
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Tooltip, {
|
|
915
916
|
placement: "bottom",
|
|
916
|
-
title: localeService.t("
|
|
917
|
+
title: localeService.t("sheets-hyper-link-ui.popup.cancel"),
|
|
917
918
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.UnlinkIcon, { className: "dark:!univer-text-white" })
|
|
918
919
|
})
|
|
919
920
|
})] })]
|
|
@@ -1583,7 +1584,7 @@ const getLinkDisable$ = (accessor) => {
|
|
|
1583
1584
|
const linkMenu = {
|
|
1584
1585
|
commandId: InsertHyperLinkOperation.id,
|
|
1585
1586
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
1586
|
-
title: "
|
|
1587
|
+
title: "sheets-hyper-link-ui.menu.add",
|
|
1587
1588
|
icon: "LinkIcon"
|
|
1588
1589
|
};
|
|
1589
1590
|
const genZenEditorMenuId = (id) => `${id}-zen-editor`;
|
|
@@ -1604,7 +1605,7 @@ const zenEditorInsertLinkMenuFactory = (accessor) => {
|
|
|
1604
1605
|
};
|
|
1605
1606
|
};
|
|
1606
1607
|
const linkToolbarMenu = {
|
|
1607
|
-
tooltip: "
|
|
1608
|
+
tooltip: "sheets-hyper-link-ui.form.addTitle",
|
|
1608
1609
|
commandId: InsertHyperLinkToolbarOperation.id,
|
|
1609
1610
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
1610
1611
|
icon: "LinkIcon"
|
|
@@ -1634,7 +1635,7 @@ const InsertLinkShortcut = {
|
|
|
1634
1635
|
//#endregion
|
|
1635
1636
|
//#region package.json
|
|
1636
1637
|
var name = "@univerjs/sheets-hyper-link-ui";
|
|
1637
|
-
var version = "0.
|
|
1638
|
+
var version = "0.25.0";
|
|
1638
1639
|
|
|
1639
1640
|
//#endregion
|
|
1640
1641
|
//#region src/controllers/auto-fill.controller.ts
|
|
@@ -1774,7 +1775,7 @@ let SheetsHyperLinkPermissionController = class SheetsHyperLinkPermissionControl
|
|
|
1774
1775
|
_univerjs_sheets.WorksheetSetCellValuePermission,
|
|
1775
1776
|
_univerjs_sheets.WorksheetInsertHyperlinkPermission
|
|
1776
1777
|
]
|
|
1777
|
-
})) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.
|
|
1778
|
+
})) this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("sheets-hyper-link-ui.permission.hyperLinkErr"));
|
|
1778
1779
|
}
|
|
1779
1780
|
}));
|
|
1780
1781
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/ar-SA.ts
|
|
3
|
+
const locale = { "sheets-hyper-link-ui": {
|
|
4
|
+
form: {
|
|
5
|
+
editTitle: "تحرير الارتباط",
|
|
6
|
+
addTitle: "إدراج ارتباط تشعبي",
|
|
7
|
+
label: "التسمية",
|
|
8
|
+
type: "النوع",
|
|
9
|
+
link: "الرابط",
|
|
10
|
+
linkPlaceholder: "أدخل الرابط",
|
|
11
|
+
range: "النطاق",
|
|
12
|
+
worksheet: "ورقة العمل",
|
|
13
|
+
definedName: "الاسم المعرف",
|
|
14
|
+
ok: "تأكيد",
|
|
15
|
+
cancel: "إلغاء",
|
|
16
|
+
labelPlaceholder: "أدخل التسمية",
|
|
17
|
+
inputError: "الرجاء الإدخال",
|
|
18
|
+
selectError: "الرجاء التحديد",
|
|
19
|
+
linkError: "الرجاء إدخال رابط صالح"
|
|
20
|
+
},
|
|
21
|
+
menu: { add: "إدراج ارتباط تشعبي" },
|
|
22
|
+
message: {
|
|
23
|
+
noSheet: "تم حذف الورقة المستهدفة",
|
|
24
|
+
refError: "نطاق غير صالح",
|
|
25
|
+
hiddenSheet: "تعذر فتح الرابط لأن الورقة المرتبطة مخفية",
|
|
26
|
+
coped: "تم نسخ الرابط إلى الحافظة"
|
|
27
|
+
},
|
|
28
|
+
popup: {
|
|
29
|
+
copy: "نسخ الرابط",
|
|
30
|
+
edit: "تحرير الرابط",
|
|
31
|
+
cancel: "إلغاء الارتباط"
|
|
32
|
+
}
|
|
33
|
+
} };
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
module.exports = locale;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/de-DE.ts
|
|
3
|
+
const locale = { "sheets-hyper-link-ui": {
|
|
4
|
+
form: {
|
|
5
|
+
editTitle: "Link bearbeiten",
|
|
6
|
+
addTitle: "Link einfügen",
|
|
7
|
+
label: "Beschriftung",
|
|
8
|
+
type: "Typ",
|
|
9
|
+
link: "Link",
|
|
10
|
+
linkPlaceholder: "Link eingeben",
|
|
11
|
+
range: "Bereich",
|
|
12
|
+
worksheet: "Arbeitsblatt",
|
|
13
|
+
definedName: "Definierter Name",
|
|
14
|
+
ok: "Bestätigen",
|
|
15
|
+
cancel: "Abbrechen",
|
|
16
|
+
labelPlaceholder: "Beschriftung eingeben",
|
|
17
|
+
inputError: "Bitte eingeben",
|
|
18
|
+
selectError: "Bitte auswählen",
|
|
19
|
+
linkError: "Bitte einen gültigen Link eingeben"
|
|
20
|
+
},
|
|
21
|
+
menu: { add: "Link einfügen" },
|
|
22
|
+
message: {
|
|
23
|
+
noSheet: "Zielblatt wurde gelöscht",
|
|
24
|
+
refError: "Ungültiger Bereich",
|
|
25
|
+
hiddenSheet: "Der Link kann nicht geöffnet werden, da das verknüpfte Blatt ausgeblendet ist",
|
|
26
|
+
coped: "Link in Zwischenablage kopiert"
|
|
27
|
+
},
|
|
28
|
+
popup: {
|
|
29
|
+
copy: "Link kopieren",
|
|
30
|
+
edit: "Link bearbeiten",
|
|
31
|
+
cancel: "Link aufheben"
|
|
32
|
+
}
|
|
33
|
+
} };
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
module.exports = locale;
|
package/lib/cjs/locale/en-US.js
CHANGED
package/lib/cjs/locale/es-ES.js
CHANGED
package/lib/cjs/locale/fa-IR.js
CHANGED
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/id-ID.ts
|
|
3
|
+
const locale = { "sheets-hyper-link-ui": {
|
|
4
|
+
form: {
|
|
5
|
+
editTitle: "Edit Tautan",
|
|
6
|
+
addTitle: "Sisipkan Tautan",
|
|
7
|
+
label: "Label",
|
|
8
|
+
type: "Tipe",
|
|
9
|
+
link: "Tautan",
|
|
10
|
+
linkPlaceholder: "Masukkan tautan",
|
|
11
|
+
range: "Rentang",
|
|
12
|
+
worksheet: "Lembar Kerja",
|
|
13
|
+
definedName: "Nama yang Ditentukan",
|
|
14
|
+
ok: "Konfirmasi",
|
|
15
|
+
cancel: "Batal",
|
|
16
|
+
labelPlaceholder: "Masukkan label",
|
|
17
|
+
inputError: "Silakan masukkan",
|
|
18
|
+
selectError: "Silakan pilih",
|
|
19
|
+
linkError: "Silakan masukkan tautan yang valid"
|
|
20
|
+
},
|
|
21
|
+
menu: { add: "Sisipkan Tautan" },
|
|
22
|
+
message: {
|
|
23
|
+
noSheet: "Lembar target telah dihapus",
|
|
24
|
+
refError: "Rentang Tidak Valid",
|
|
25
|
+
hiddenSheet: "Tidak dapat membuka tautan karena lembar yang ditautkan tersembunyi",
|
|
26
|
+
coped: "Tautan disalin ke clipboard"
|
|
27
|
+
},
|
|
28
|
+
popup: {
|
|
29
|
+
copy: "Salin Tautan",
|
|
30
|
+
edit: "Edit Tautan",
|
|
31
|
+
cancel: "Batalkan Tautan"
|
|
32
|
+
}
|
|
33
|
+
} };
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
module.exports = locale;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/it-IT.ts
|
|
3
|
+
const locale = { "sheets-hyper-link-ui": {
|
|
4
|
+
form: {
|
|
5
|
+
editTitle: "Modifica collegamento",
|
|
6
|
+
addTitle: "Inserisci collegamento",
|
|
7
|
+
label: "Etichetta",
|
|
8
|
+
type: "Tipo",
|
|
9
|
+
link: "Collegamento",
|
|
10
|
+
linkPlaceholder: "Inserisci collegamento",
|
|
11
|
+
range: "Intervallo",
|
|
12
|
+
worksheet: "Foglio di lavoro",
|
|
13
|
+
definedName: "Nome definito",
|
|
14
|
+
ok: "Conferma",
|
|
15
|
+
cancel: "Annulla",
|
|
16
|
+
labelPlaceholder: "Inserisci etichetta",
|
|
17
|
+
inputError: "Inserisci",
|
|
18
|
+
selectError: "Seleziona",
|
|
19
|
+
linkError: "Inserisci un collegamento valido"
|
|
20
|
+
},
|
|
21
|
+
menu: { add: "Inserisci collegamento" },
|
|
22
|
+
message: {
|
|
23
|
+
noSheet: "Il foglio di destinazione è stato eliminato",
|
|
24
|
+
refError: "Intervallo non valido",
|
|
25
|
+
hiddenSheet: "Impossibile aprire il collegamento perché il foglio collegato è nascosto",
|
|
26
|
+
coped: "Collegamento copiato negli appunti"
|
|
27
|
+
},
|
|
28
|
+
popup: {
|
|
29
|
+
copy: "Copia collegamento",
|
|
30
|
+
edit: "Modifica collegamento",
|
|
31
|
+
cancel: "Annulla collegamento"
|
|
32
|
+
}
|
|
33
|
+
} };
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
module.exports = locale;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/pl-PL.ts
|
|
3
|
+
const locale = { "sheets-hyper-link-ui": {
|
|
4
|
+
form: {
|
|
5
|
+
editTitle: "Edytuj łącze",
|
|
6
|
+
addTitle: "Wstaw łącze",
|
|
7
|
+
label: "Etykieta",
|
|
8
|
+
type: "Typ",
|
|
9
|
+
link: "Łącze",
|
|
10
|
+
linkPlaceholder: "Wprowadź łącze",
|
|
11
|
+
range: "Zakres",
|
|
12
|
+
worksheet: "Arkusz",
|
|
13
|
+
definedName: "Nazwa zdefiniowana",
|
|
14
|
+
ok: "Potwierdź",
|
|
15
|
+
cancel: "Anuluj",
|
|
16
|
+
labelPlaceholder: "Wprowadź etykietę",
|
|
17
|
+
inputError: "Wprowadź wartość",
|
|
18
|
+
selectError: "Wybierz wartość",
|
|
19
|
+
linkError: "Wprowadź prawidłowe łącze"
|
|
20
|
+
},
|
|
21
|
+
menu: { add: "Wstaw łącze" },
|
|
22
|
+
message: {
|
|
23
|
+
noSheet: "Arkusz docelowy został usunięty",
|
|
24
|
+
refError: "Nieprawidłowy zakres",
|
|
25
|
+
hiddenSheet: "Nie można otworzyć łącza, ponieważ połączony arkusz jest ukryty",
|
|
26
|
+
coped: "Łącze skopiowane do schowka"
|
|
27
|
+
},
|
|
28
|
+
popup: {
|
|
29
|
+
copy: "Kopiuj łącze",
|
|
30
|
+
edit: "Edytuj łącze",
|
|
31
|
+
cancel: "Anuluj łącze"
|
|
32
|
+
}
|
|
33
|
+
} };
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
module.exports = locale;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/pt-BR.ts
|
|
3
|
+
const locale = { "sheets-hyper-link-ui": {
|
|
4
|
+
form: {
|
|
5
|
+
editTitle: "Editar Link",
|
|
6
|
+
addTitle: "Inserir Link",
|
|
7
|
+
label: "Rótulo",
|
|
8
|
+
type: "Tipo",
|
|
9
|
+
link: "Link",
|
|
10
|
+
linkPlaceholder: "Digite o link",
|
|
11
|
+
range: "Intervalo",
|
|
12
|
+
worksheet: "Planilha",
|
|
13
|
+
definedName: "Nome Definido",
|
|
14
|
+
ok: "Confirmar",
|
|
15
|
+
cancel: "Cancelar",
|
|
16
|
+
labelPlaceholder: "Digite o rótulo",
|
|
17
|
+
inputError: "Por favor, digite",
|
|
18
|
+
selectError: "Por favor, selecione",
|
|
19
|
+
linkError: "Por favor, digite um link válido"
|
|
20
|
+
},
|
|
21
|
+
menu: { add: "Inserir Link" },
|
|
22
|
+
message: {
|
|
23
|
+
noSheet: "A planilha de destino foi excluída",
|
|
24
|
+
refError: "Intervalo Inválido",
|
|
25
|
+
hiddenSheet: "Não é possível abrir o link porque a planilha vinculada está oculta",
|
|
26
|
+
coped: "Link copiado para a área de transferência"
|
|
27
|
+
},
|
|
28
|
+
popup: {
|
|
29
|
+
copy: "Copiar Link",
|
|
30
|
+
edit: "Editar Link",
|
|
31
|
+
cancel: "Cancelar Link"
|
|
32
|
+
}
|
|
33
|
+
} };
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
module.exports = locale;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
package/lib/cjs/locale/sk-SK.js
CHANGED
package/lib/cjs/locale/vi-VN.js
CHANGED
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/zh-HK.ts
|
|
3
|
+
const locale = { "sheets-hyper-link-ui": {
|
|
4
|
+
form: {
|
|
5
|
+
editTitle: "編輯連結",
|
|
6
|
+
addTitle: "插入連結",
|
|
7
|
+
label: "文本",
|
|
8
|
+
labelPlaceholder: "輸入文字",
|
|
9
|
+
type: "類型",
|
|
10
|
+
link: "連結",
|
|
11
|
+
linkPlaceholder: "輸入連結位址",
|
|
12
|
+
range: "儲存格",
|
|
13
|
+
worksheet: "工作表",
|
|
14
|
+
definedName: "定義的名稱",
|
|
15
|
+
ok: "確認",
|
|
16
|
+
cancel: "取消",
|
|
17
|
+
inputError: "請輸入",
|
|
18
|
+
selectError: "請選擇",
|
|
19
|
+
linkError: "請輸入合法的連結"
|
|
20
|
+
},
|
|
21
|
+
menu: { add: "新增連結" },
|
|
22
|
+
message: {
|
|
23
|
+
noSheet: "該子表已被刪除",
|
|
24
|
+
refError: "錯誤的引用",
|
|
25
|
+
hiddenSheet: "無法開啟被隱藏的子表",
|
|
26
|
+
coped: "連結已複製到剪貼簿"
|
|
27
|
+
},
|
|
28
|
+
popup: {
|
|
29
|
+
copy: "複製",
|
|
30
|
+
edit: "編輯",
|
|
31
|
+
cancel: "取消連結"
|
|
32
|
+
}
|
|
33
|
+
} };
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
module.exports = locale;
|