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