@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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const e = {
|
|
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
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
e as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const e = {
|
|
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
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
e as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const e = {
|
|
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
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
e as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const n = {
|
|
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
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
n as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const e = {
|
|
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
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
e as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const e = {
|
|
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
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
e as default
|
|
38
|
+
};
|
package/lib/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.univer-cell-link-edit{padding:16px;background-color:rgb(var(--color-white));width:296px;box-sizing:border-box;border-radius:var(--border-radius-xl);border:1px solid rgb(var(--grey-200));box-shadow:0 4px 10px -1px #1116281a}.univer-cell-link-edit-buttons{display:flex;flex-direction:row;justify-content:flex-end}.univer-cell-link{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;box-shadow:var(--box-shadow-base);border-radius:8px;border:1px solid rgb(var(--grey-200));background:rgb(var(--color-white));max-width:328px;overflow:hidden}.univer-cell-link-type{height:20px;width:20px;font-size:16px;margin-right:8px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;color:rgb(var(--color-black))}.univer-cell-link-content{height:24px;display:flex;flex-direction:row;align-items:center;font-size:13px;line-height:20px;color:rgb(var(--blue-500));cursor:pointer;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-cell-link-content-error{color:rgb(var(--grey-500))}.univer-cell-link-url{flex:1;overflow:hidden;text-overflow:ellipsis}.univer-cell-link-operations{display:flex;flex-direction:row;justify-content:center;align-items:center;height:24px;flex-basis:auto;flex-grow:0;flex-shrink:0}.univer-cell-link-operation{width:24px;height:24px;margin-left:8px;font-size:16px;display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:pointer;border-radius:4px}.univer-cell-link-operation-error{color:rgb(var(--grey-500))}.univer-cell-link-operation:hover{background:#ccc}
|
|
1
|
+
.univer-cell-link-edit{padding:16px;background-color:rgb(var(--color-white));width:296px;box-sizing:border-box;border-radius:var(--border-radius-xl);border:1px solid rgb(var(--grey-200));box-shadow:0 4px 10px -1px #1116281a}.univer-cell-link-edit-buttons{display:flex;flex-direction:row;justify-content:flex-end}.univer-cell-link{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;box-shadow:var(--box-shadow-base);border-radius:8px;border:1px solid rgb(var(--grey-200));background:rgb(var(--color-white));max-width:328px;overflow:hidden;margin-bottom:var(--margin-xxs)}.univer-cell-link-type{height:20px;width:20px;font-size:16px;margin-right:8px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;color:rgb(var(--color-black))}.univer-cell-link-content{height:24px;display:flex;flex-direction:row;align-items:center;font-size:13px;line-height:20px;color:rgb(var(--blue-500));cursor:pointer;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-cell-link-content-error{color:rgb(var(--grey-500))}.univer-cell-link-url{flex:1;overflow:hidden;text-overflow:ellipsis}.univer-cell-link-operations{display:flex;flex-direction:row;justify-content:center;align-items:center;height:24px;flex-basis:auto;flex-grow:0;flex-shrink:0}.univer-cell-link-operation{width:24px;height:24px;margin-left:8px;font-size:16px;display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:pointer;border-radius:4px}.univer-cell-link-operation-error{color:rgb(var(--grey-500))}.univer-cell-link-operation:hover{background:#ccc}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAccessor } from '@univerjs/core';
|
|
2
|
-
import { IMenuItem, IShortcutItem,
|
|
2
|
+
import { IMenuItem, IShortcutItem, MenuItemType } from '@univerjs/ui';
|
|
3
3
|
export declare const genZenEditorMenuId: (id: string) => string;
|
|
4
4
|
export declare const insertLinkMenuFactory: (accessor: IAccessor) => IMenuItem;
|
|
5
5
|
export declare const zenEditorInsertLinkMenuFactory: (accessor: IAccessor) => IMenuItem;
|
|
@@ -8,8 +8,6 @@ export declare const insertLinkMenuToolbarFactory: (accessor: IAccessor) => {
|
|
|
8
8
|
hidden$: import('rxjs').Observable<boolean>;
|
|
9
9
|
disabled$: import('rxjs').Observable<boolean>;
|
|
10
10
|
tooltip: string;
|
|
11
|
-
positions: MenuPosition;
|
|
12
|
-
group: MenuGroup;
|
|
13
11
|
commandId: string;
|
|
14
12
|
type: MenuItemType;
|
|
15
13
|
icon: string;
|
|
@@ -19,8 +17,6 @@ export declare const zenEditorInsertLinkMenuToolbarFactory: (accessor: IAccessor
|
|
|
19
17
|
hidden$: import('rxjs').Observable<boolean>;
|
|
20
18
|
disabled$: import('rxjs').Observable<boolean>;
|
|
21
19
|
tooltip: string;
|
|
22
|
-
positions: MenuPosition;
|
|
23
|
-
group: MenuGroup;
|
|
24
20
|
commandId: string;
|
|
25
21
|
type: MenuItemType;
|
|
26
22
|
icon: string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { SheetsHyperLinkParserService } from '@univerjs/sheets-hyper-link';
|
|
2
3
|
import { SheetsHyperLinkResolverService } from '../services/resolver.service';
|
|
3
4
|
export declare class SheetHyperLinkUrlController extends Disposable {
|
|
5
|
+
private readonly _parserService;
|
|
4
6
|
private _resolverService;
|
|
5
|
-
constructor(_resolverService: SheetsHyperLinkResolverService);
|
|
7
|
+
constructor(_parserService: SheetsHyperLinkParserService, _resolverService: SheetsHyperLinkResolverService);
|
|
6
8
|
private _handleInitUrl;
|
|
7
9
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FWorkbook } from '@univerjs/sheets/facade';
|
|
2
|
+
interface IFWorkbookHyperlinkUIMixin {
|
|
3
|
+
/**
|
|
4
|
+
* navigate to the sheet hyperlink
|
|
5
|
+
* @param hyperlink the hyperlink string
|
|
6
|
+
*/
|
|
7
|
+
navigateToSheetHyperlink(this: FWorkbook, hyperlink: string): void;
|
|
8
|
+
}
|
|
9
|
+
declare module '@univerjs/sheets/facade' {
|
|
10
|
+
interface FWorkbook extends IFWorkbookHyperlinkUIMixin {
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -19,8 +19,4 @@ export { UniverSheetsHyperLinkUIPlugin } from './plugin';
|
|
|
19
19
|
export { SheetsHyperLinkPopupService } from './services/popup.service';
|
|
20
20
|
export { SheetsHyperLinkResolverService } from './services/resolver.service';
|
|
21
21
|
export { type ICustomHyperLinkView, SheetsHyperLinkSidePanelService } from './services/side-panel.service';
|
|
22
|
-
export type { ISheetHyperLinkInfo, ISheetUrlParams } from './types/interfaces';
|
|
23
|
-
export { AddHyperLinkCommand, type IAddHyperLinkCommandParams } from './commands/commands/add-hyper-link.command';
|
|
24
|
-
export { CancelHyperLinkCommand, type ICancelHyperLinkCommandParams } from './commands/commands/remove-hyper-link.command';
|
|
25
|
-
export { type IUpdateHyperLinkCommandParams, UpdateHyperLinkCommand } from './commands/commands/update-hyper-link.command';
|
|
26
22
|
export { CloseHyperLinkPopupOperation, InsertHyperLinkOperation, type IOpenHyperLinkEditPanelOperationParams, OpenHyperLinkEditPanelOperation, } from './commands/operations/popup.operations';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ICustomRange, INeedCheckDisposable, Nullable, Disposable, Injector, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
-
import { IBoundRectNoAngle } from '@univerjs/engine-render';
|
|
3
2
|
import { ISheetLocationBase } from '@univerjs/sheets';
|
|
4
3
|
import { DocSelectionManagerService } from '@univerjs/docs';
|
|
5
|
-
import { DocCanvasPopManagerService
|
|
4
|
+
import { DocCanvasPopManagerService } from '@univerjs/docs-ui';
|
|
5
|
+
import { IBoundRectNoAngle } from '@univerjs/engine-render';
|
|
6
6
|
import { IEditorBridgeService, SheetCanvasPopManagerService } from '@univerjs/sheets-ui';
|
|
7
7
|
import { IZenZoneService } from '@univerjs/ui';
|
|
8
8
|
import { HyperLinkEditSourceType } from '../types/enums/edit-source';
|
|
@@ -14,8 +14,9 @@ export interface IHyperLinkPopup {
|
|
|
14
14
|
col: number;
|
|
15
15
|
editPermission?: boolean;
|
|
16
16
|
copyPermission?: boolean;
|
|
17
|
-
customRange?: ICustomRange
|
|
17
|
+
customRange?: Nullable<ICustomRange>;
|
|
18
18
|
type: HyperLinkEditSourceType;
|
|
19
|
+
showAll?: boolean;
|
|
19
20
|
}
|
|
20
21
|
interface IHyperLinkEditing {
|
|
21
22
|
unitId: string;
|
|
@@ -30,6 +31,7 @@ interface IHyperLinkPopupOptions extends ISheetLocationBase {
|
|
|
30
31
|
copyPermission?: boolean;
|
|
31
32
|
customRange?: Nullable<ICustomRange>;
|
|
32
33
|
customRangeRect?: Nullable<IBoundRectNoAngle>;
|
|
34
|
+
showAll?: boolean;
|
|
33
35
|
type: HyperLinkEditSourceType;
|
|
34
36
|
}
|
|
35
37
|
export declare class SheetsHyperLinkPopupService extends Disposable {
|
|
@@ -39,8 +41,6 @@ export declare class SheetsHyperLinkPopupService extends Disposable {
|
|
|
39
41
|
private readonly _editorBridgeService;
|
|
40
42
|
private readonly _textSelectionManagerService;
|
|
41
43
|
private readonly _docCanvasPopManagerService;
|
|
42
|
-
private readonly _editorService;
|
|
43
|
-
private readonly _rangeSelectorService;
|
|
44
44
|
private readonly _zenZoneService;
|
|
45
45
|
private _currentPopup;
|
|
46
46
|
private _currentPopup$;
|
|
@@ -57,7 +57,7 @@ export declare class SheetsHyperLinkPopupService extends Disposable {
|
|
|
57
57
|
customRange?: ICustomRange;
|
|
58
58
|
label?: string;
|
|
59
59
|
}) | null;
|
|
60
|
-
constructor(_sheetCanvasPopManagerService: SheetCanvasPopManagerService, _injector: Injector, _univerInstanceService: IUniverInstanceService, _editorBridgeService: IEditorBridgeService, _textSelectionManagerService: DocSelectionManagerService, _docCanvasPopManagerService: DocCanvasPopManagerService,
|
|
60
|
+
constructor(_sheetCanvasPopManagerService: SheetCanvasPopManagerService, _injector: Injector, _univerInstanceService: IUniverInstanceService, _editorBridgeService: IEditorBridgeService, _textSelectionManagerService: DocSelectionManagerService, _docCanvasPopManagerService: DocCanvasPopManagerService, _zenZoneService: IZenZoneService);
|
|
61
61
|
setIsKeepVisible(v: boolean): void;
|
|
62
62
|
getIsKeepVisible(): boolean;
|
|
63
63
|
showPopup(location: IHyperLinkPopupOptions): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IRange, Worksheet, ICommandService, IConfigService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
|
-
import { ISheetHyperLinkInfo } from '
|
|
3
|
-
import { ISheetUrlParams } from '../types/interfaces/i-sheet-url-params';
|
|
2
|
+
import { ISheetHyperLinkInfo } from '@univerjs/sheets-hyper-link';
|
|
4
3
|
import { IDefinedNamesService } from '@univerjs/engine-formula';
|
|
5
4
|
import { IMessageService } from '@univerjs/ui';
|
|
6
5
|
export declare class SheetsHyperLinkResolverService {
|
|
@@ -11,13 +10,10 @@ export declare class SheetsHyperLinkResolverService {
|
|
|
11
10
|
private _localeService;
|
|
12
11
|
private _configService;
|
|
13
12
|
constructor(_univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _definedNamesService: IDefinedNamesService, _messageService: IMessageService, _localeService: LocaleService, _configService: IConfigService);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
parseHyperLink(urlStr: string): ISheetHyperLinkInfo;
|
|
18
|
-
navigateToRange(unitId: string, subUnitId: string, range: IRange): Promise<void>;
|
|
19
|
-
navigateToSheet(unitId: string, sheetName: string): Promise<boolean | undefined>;
|
|
13
|
+
navigate(info: ISheetHyperLinkInfo): void;
|
|
14
|
+
private _navigateToUniver;
|
|
15
|
+
navigateToRange(unitId: string, subUnitId: string, range: IRange, forceTop?: boolean): Promise<void>;
|
|
20
16
|
navigateToSheetById(unitId: string, subUnitId: string): Promise<false | Worksheet>;
|
|
21
|
-
navigateToDefineName(unitId: string,
|
|
17
|
+
navigateToDefineName(unitId: string, rangeId: string): Promise<boolean>;
|
|
22
18
|
navigateToOtherWebsite(url: string): Promise<void>;
|
|
23
19
|
}
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
import { ICustomRange, Nullable } from '@univerjs/core';
|
|
1
2
|
import { default as React } from 'react';
|
|
3
|
+
import { HyperLinkEditSourceType } from '../../types/enums/edit-source';
|
|
4
|
+
interface ICellLinkPopupPureProps {
|
|
5
|
+
customRange?: Nullable<ICustomRange>;
|
|
6
|
+
row: number;
|
|
7
|
+
col: number;
|
|
8
|
+
unitId: string;
|
|
9
|
+
subUnitId: string;
|
|
10
|
+
editPermission?: boolean;
|
|
11
|
+
copyPermission?: boolean;
|
|
12
|
+
type: HyperLinkEditSourceType;
|
|
13
|
+
}
|
|
14
|
+
export declare const CellLinkPopupPure: (props: ICellLinkPopupPureProps) => React.JSX.Element | null;
|
|
2
15
|
export declare const CellLinkPopup: {
|
|
3
16
|
(): React.JSX.Element | null;
|
|
4
17
|
componentKey: string;
|
|
5
18
|
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(n){typeof define=="function"&&define.amd?define(n):n()})(function(){"use strict"});
|