@univerjs/sheets-hyper-link-ui 0.4.2 → 0.5.0-beta.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/facade.js +1 -0
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/facade.js +1 -0
- package/lib/es/index.js +1349 -2024
- package/lib/es/locale/en-US.js +38 -0
- package/lib/es/locale/fa-IR.js +38 -0
- package/lib/es/locale/ru-RU.js +38 -0
- package/lib/es/locale/vi-VN.js +38 -0
- package/lib/es/locale/zh-CN.js +38 -0
- package/lib/es/locale/zh-TW.js +38 -0
- package/lib/index.css +1 -1
- package/lib/types/controllers/menu.d.ts +1 -5
- package/lib/types/controllers/url.controller.d.ts +3 -1
- package/lib/types/facade/f-workbook.d.ts +13 -0
- package/lib/types/{types/interfaces/i-sheet-url-params.d.ts → facade/index.d.ts} +0 -6
- package/lib/types/index.d.ts +0 -4
- package/lib/types/services/popup.service.d.ts +6 -6
- package/lib/types/services/resolver.service.d.ts +5 -9
- package/lib/types/views/CellLinkPopup/index.d.ts +14 -0
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +2 -2
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +44 -25
- package/lib/locale/en-US.json +0 -35
- package/lib/locale/fa-IR.json +0 -35
- package/lib/locale/ru-RU.json +0 -35
- package/lib/locale/vi-VN.json +0 -35
- package/lib/locale/zh-CN.json +0 -35
- package/lib/locale/zh-TW.json +0 -35
- package/lib/types/commands/commands/add-hyper-link.command.d.ts +0 -19
- package/lib/types/commands/commands/remove-hyper-link.command.d.ts +0 -19
- package/lib/types/commands/commands/update-hyper-link.command.d.ts +0 -17
- package/lib/types/controllers/remove-sheet.controller.d.ts +0 -10
- package/lib/types/controllers/rich-text-ref-range.controller.d.ts +0 -15
- package/lib/types/controllers/set-range.controller.d.ts +0 -18
- package/lib/types/types/interfaces/i-sheet-hyper-link-info.d.ts +0 -10
- package/lib/types/types/interfaces/index.d.ts +0 -17
package/lib/locale/en-US.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hyperLink": {
|
|
3
|
-
"form": {
|
|
4
|
-
"editTitle": "Edit Link",
|
|
5
|
-
"addTitle": "Insert Link",
|
|
6
|
-
"label": "Label",
|
|
7
|
-
"type": "Type",
|
|
8
|
-
"link": "Link",
|
|
9
|
-
"linkPlaceholder": "Enter link",
|
|
10
|
-
"range": "Range",
|
|
11
|
-
"worksheet": "Worksheet",
|
|
12
|
-
"definedName": "Defined Name",
|
|
13
|
-
"ok": "Confirm",
|
|
14
|
-
"cancel": "Cancel",
|
|
15
|
-
"labelPlaceholder": "Enter label",
|
|
16
|
-
"inputError": "Please enter",
|
|
17
|
-
"selectError": "Please select",
|
|
18
|
-
"linkError": "Please enter a legal link"
|
|
19
|
-
},
|
|
20
|
-
"menu": {
|
|
21
|
-
"add": "Insert Link"
|
|
22
|
-
},
|
|
23
|
-
"message": {
|
|
24
|
-
"noSheet": "Target sheet has been delete",
|
|
25
|
-
"refError": "Invalid Range",
|
|
26
|
-
"hiddenSheet": "Cannot open the link because the linked sheet is hidden",
|
|
27
|
-
"coped": "Link copied to clipboard"
|
|
28
|
-
},
|
|
29
|
-
"popup": {
|
|
30
|
-
"copy": "Copy Link",
|
|
31
|
-
"edit": "Edit Link",
|
|
32
|
-
"cancel": "Cancel Link"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
package/lib/locale/fa-IR.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hyperLink": {
|
|
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": {
|
|
21
|
-
"add": "درج لینک"
|
|
22
|
-
},
|
|
23
|
-
"message": {
|
|
24
|
-
"noSheet": "برگ هدف حذف شده است",
|
|
25
|
-
"refError": "محدوده نامعتبر",
|
|
26
|
-
"hiddenSheet": "نمیتوان لینک را باز کرد زیرا برگ مرتبط پنهان است",
|
|
27
|
-
"coped": "لینک به کلیپ بورد کپی شد"
|
|
28
|
-
},
|
|
29
|
-
"popup": {
|
|
30
|
-
"copy": "کپی لینک",
|
|
31
|
-
"edit": "ویرایش لینک",
|
|
32
|
-
"cancel": "لینک را لغو کنید"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
package/lib/locale/ru-RU.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hyperLink": {
|
|
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": {
|
|
21
|
-
"add": "Вставить ссылку"
|
|
22
|
-
},
|
|
23
|
-
"message": {
|
|
24
|
-
"noSheet": "Целевой лист был удален",
|
|
25
|
-
"refError": "Недопустимый диапазон",
|
|
26
|
-
"hiddenSheet": "Невозможно открыть ссылку, так как связанный лист скрыт",
|
|
27
|
-
"coped": "Ссылка скопирована в буфер обмена"
|
|
28
|
-
},
|
|
29
|
-
"popup": {
|
|
30
|
-
"copy": "Копировать ссылку",
|
|
31
|
-
"edit": "Редактировать ссылку",
|
|
32
|
-
"cancel": "Отменить ссылку"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
package/lib/locale/vi-VN.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hyperLink": {
|
|
3
|
-
"form": {
|
|
4
|
-
"editTitle": "Chỉnh sửa liên kết",
|
|
5
|
-
"addTitle": "Chèn liên kết",
|
|
6
|
-
"label": "Văn bản",
|
|
7
|
-
"labelPlaceholder": "Nhập văn bản",
|
|
8
|
-
"type": "Loại",
|
|
9
|
-
"link": "Liên kết",
|
|
10
|
-
"linkPlaceholder": "Nhập địa chỉ liên kết",
|
|
11
|
-
"range": "Ô",
|
|
12
|
-
"worksheet": "Bảng tính",
|
|
13
|
-
"definedName": "Tên đã xác định",
|
|
14
|
-
"ok": "Xác nhận",
|
|
15
|
-
"cancel": "Hủy",
|
|
16
|
-
"inputError": "Vui lòng nhập",
|
|
17
|
-
"selectError": "Vui lòng chọn",
|
|
18
|
-
"linkError": "Vui lòng nhập liên kết hợp lệ"
|
|
19
|
-
},
|
|
20
|
-
"menu": {
|
|
21
|
-
"add": "Thêm liên kết"
|
|
22
|
-
},
|
|
23
|
-
"message": {
|
|
24
|
-
"noSheet": "Bảng con này đã bị xóa",
|
|
25
|
-
"refError": "Tham chiếu lỗi",
|
|
26
|
-
"hiddenSheet": "Không thể mở bảng con bị ẩn",
|
|
27
|
-
"coped": "Liên kết đã được sao chép vào clipboard"
|
|
28
|
-
},
|
|
29
|
-
"popup": {
|
|
30
|
-
"copy": "Sao chép",
|
|
31
|
-
"edit": "Chỉnh sửa",
|
|
32
|
-
"cancel": "Hủy liên kết"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
package/lib/locale/zh-CN.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hyperLink": {
|
|
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": {
|
|
21
|
-
"add": "添加链接"
|
|
22
|
-
},
|
|
23
|
-
"message": {
|
|
24
|
-
"noSheet": "该子表已被删除",
|
|
25
|
-
"refError": "错误的引用",
|
|
26
|
-
"hiddenSheet": "无法打开被隐藏的子表",
|
|
27
|
-
"coped": "链接已被复制到剪贴板"
|
|
28
|
-
},
|
|
29
|
-
"popup": {
|
|
30
|
-
"copy": "复制",
|
|
31
|
-
"edit": "编辑",
|
|
32
|
-
"cancel": "取消链接"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
package/lib/locale/zh-TW.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hyperLink": {
|
|
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": {
|
|
21
|
-
"add": "新增連結"
|
|
22
|
-
},
|
|
23
|
-
"message": {
|
|
24
|
-
"noSheet": "該子表已被刪除",
|
|
25
|
-
"refError": "錯誤的引用",
|
|
26
|
-
"hiddenSheet": "無法開啟被隱藏的子表",
|
|
27
|
-
"coped": "連結已複製到剪貼簿"
|
|
28
|
-
},
|
|
29
|
-
"popup": {
|
|
30
|
-
"copy": "複製",
|
|
31
|
-
"edit": "編輯",
|
|
32
|
-
"cancel": "取消連結"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ICommand } from '@univerjs/core';
|
|
2
|
-
import { ICellHyperLink } from '@univerjs/sheets-hyper-link';
|
|
3
|
-
export interface IAddHyperLinkCommandParams {
|
|
4
|
-
unitId: string;
|
|
5
|
-
subUnitId: string;
|
|
6
|
-
link: ICellHyperLink;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Command for add hyperlink
|
|
10
|
-
*/
|
|
11
|
-
export declare const AddHyperLinkCommand: ICommand<IAddHyperLinkCommandParams>;
|
|
12
|
-
export interface IAddRichHyperLinkCommandParams {
|
|
13
|
-
/**
|
|
14
|
-
* url of link
|
|
15
|
-
*/
|
|
16
|
-
documentId: string;
|
|
17
|
-
link: ICellHyperLink;
|
|
18
|
-
}
|
|
19
|
-
export declare const AddRichHyperLinkCommand: ICommand<IAddRichHyperLinkCommandParams>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ICommand } from '@univerjs/core';
|
|
2
|
-
export interface ICancelHyperLinkCommandParams {
|
|
3
|
-
unitId: string;
|
|
4
|
-
subUnitId: string;
|
|
5
|
-
/**
|
|
6
|
-
* id of link
|
|
7
|
-
*/
|
|
8
|
-
id: string;
|
|
9
|
-
row: number;
|
|
10
|
-
column: number;
|
|
11
|
-
}
|
|
12
|
-
export declare const CancelHyperLinkCommand: ICommand<ICancelHyperLinkCommandParams>;
|
|
13
|
-
export interface ICancelRichHyperLinkCommandParams extends ICancelHyperLinkCommandParams {
|
|
14
|
-
/**
|
|
15
|
-
* document id
|
|
16
|
-
*/
|
|
17
|
-
documentId: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const CancelRichHyperLinkCommand: ICommand<ICancelRichHyperLinkCommandParams>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ICommand } from '@univerjs/core';
|
|
2
|
-
import { ICellLinkContent } from '@univerjs/sheets-hyper-link';
|
|
3
|
-
export interface IUpdateHyperLinkCommandParams {
|
|
4
|
-
unitId: string;
|
|
5
|
-
subUnitId: string;
|
|
6
|
-
id: string;
|
|
7
|
-
payload: ICellLinkContent;
|
|
8
|
-
row: number;
|
|
9
|
-
column: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const UpdateHyperLinkCommand: ICommand<IUpdateHyperLinkCommandParams>;
|
|
12
|
-
export interface IUpdateRichHyperLinkCommandParams {
|
|
13
|
-
documentId: string;
|
|
14
|
-
id: string;
|
|
15
|
-
payload: ICellLinkContent;
|
|
16
|
-
}
|
|
17
|
-
export declare const UpdateRichHyperLinkCommand: ICommand<IUpdateRichHyperLinkCommandParams>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
-
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
3
|
-
import { HyperLinkModel } from '@univerjs/sheets-hyper-link';
|
|
4
|
-
export declare class SheetsHyperLinkRemoveSheetController extends Disposable {
|
|
5
|
-
private _sheetInterceptorService;
|
|
6
|
-
private _univerInstanceService;
|
|
7
|
-
private _hyperLinkModel;
|
|
8
|
-
constructor(_sheetInterceptorService: SheetInterceptorService, _univerInstanceService: IUniverInstanceService, _hyperLinkModel: HyperLinkModel);
|
|
9
|
-
private _initSheetChange;
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
-
import { RefRangeService } from '@univerjs/sheets';
|
|
3
|
-
export declare class SheetsHyperLinkRichTextRefRangeController extends Disposable {
|
|
4
|
-
private readonly _commandService;
|
|
5
|
-
private readonly _univerInstanceService;
|
|
6
|
-
private readonly _refRangeService;
|
|
7
|
-
private _refRangeMap;
|
|
8
|
-
constructor(_commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _refRangeService: RefRangeService);
|
|
9
|
-
private _enusreMap;
|
|
10
|
-
private _isLegalRangeUrl;
|
|
11
|
-
private _registerRange;
|
|
12
|
-
private _initWorkbookLoad;
|
|
13
|
-
private _initWorkbookUnload;
|
|
14
|
-
private _initSetRangesListener;
|
|
15
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
-
import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
|
-
import { HyperLinkModel } from '@univerjs/sheets-hyper-link';
|
|
5
|
-
import { IEditorBridgeService } from '@univerjs/sheets-ui';
|
|
6
|
-
export declare class SheetHyperLinkSetRangeController extends Disposable {
|
|
7
|
-
private readonly _sheetInterceptorService;
|
|
8
|
-
private readonly _hyperLinkModel;
|
|
9
|
-
private readonly _selectionManagerService;
|
|
10
|
-
private readonly _univerInstanceService;
|
|
11
|
-
private readonly _editorBridgeService;
|
|
12
|
-
private readonly _renderManagerService;
|
|
13
|
-
constructor(_sheetInterceptorService: SheetInterceptorService, _hyperLinkModel: HyperLinkModel, _selectionManagerService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _editorBridgeService: IEditorBridgeService, _renderManagerService: IRenderManagerService);
|
|
14
|
-
private _initCommandInterceptor;
|
|
15
|
-
private _initSetRangeValuesCommandInterceptor;
|
|
16
|
-
private _initClearSelectionCommandInterceptor;
|
|
17
|
-
private _initAfterEditor;
|
|
18
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Nullable } from '@univerjs/core';
|
|
2
|
-
import { SheetHyperLinkType } from '@univerjs/sheets-hyper-link';
|
|
3
|
-
import { ISheetUrlParams } from './i-sheet-url-params';
|
|
4
|
-
export interface ISheetHyperLinkInfo {
|
|
5
|
-
type: SheetHyperLinkType;
|
|
6
|
-
name: string;
|
|
7
|
-
url: string;
|
|
8
|
-
searchObj: Nullable<ISheetUrlParams>;
|
|
9
|
-
handler: () => void;
|
|
10
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Inc.
|
|
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
|
-
export type { ISheetHyperLinkInfo } from './i-sheet-hyper-link-info';
|
|
17
|
-
export type { ISheetUrlParams } from './i-sheet-url-params';
|