@univerjs/sheets-hyper-link-ui 1.0.0-rc.0 → 1.0.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.
Files changed (91) hide show
  1. package/lib/cjs/index.js +289 -185
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +289 -185
  22. package/lib/es/locale/ar-SA.js +1 -0
  23. package/lib/es/locale/ca-ES.js +1 -0
  24. package/lib/es/locale/de-DE.js +1 -0
  25. package/lib/es/locale/en-US.js +1 -0
  26. package/lib/es/locale/es-ES.js +1 -0
  27. package/lib/es/locale/fa-IR.js +1 -0
  28. package/lib/es/locale/fr-FR.js +1 -0
  29. package/lib/es/locale/id-ID.js +1 -0
  30. package/lib/es/locale/it-IT.js +1 -0
  31. package/lib/es/locale/ja-JP.js +1 -0
  32. package/lib/es/locale/ko-KR.js +1 -0
  33. package/lib/es/locale/pl-PL.js +1 -0
  34. package/lib/es/locale/pt-BR.js +1 -0
  35. package/lib/es/locale/ru-RU.js +1 -0
  36. package/lib/es/locale/sk-SK.js +1 -0
  37. package/lib/es/locale/vi-VN.js +1 -0
  38. package/lib/es/locale/zh-CN.js +1 -0
  39. package/lib/es/locale/zh-HK.js +1 -0
  40. package/lib/es/locale/zh-TW.js +1 -0
  41. package/lib/index.css +32 -4
  42. package/lib/index.js +289 -185
  43. package/lib/locale/ar-SA.js +1 -0
  44. package/lib/locale/ca-ES.js +1 -0
  45. package/lib/locale/de-DE.js +1 -0
  46. package/lib/locale/en-US.js +1 -0
  47. package/lib/locale/es-ES.js +1 -0
  48. package/lib/locale/fa-IR.js +1 -0
  49. package/lib/locale/fr-FR.js +1 -0
  50. package/lib/locale/id-ID.js +1 -0
  51. package/lib/locale/it-IT.js +1 -0
  52. package/lib/locale/ja-JP.js +1 -0
  53. package/lib/locale/ko-KR.js +1 -0
  54. package/lib/locale/pl-PL.js +1 -0
  55. package/lib/locale/pt-BR.js +1 -0
  56. package/lib/locale/ru-RU.js +1 -0
  57. package/lib/locale/sk-SK.js +1 -0
  58. package/lib/locale/vi-VN.js +1 -0
  59. package/lib/locale/zh-CN.js +1 -0
  60. package/lib/locale/zh-HK.js +1 -0
  61. package/lib/locale/zh-TW.js +1 -0
  62. package/lib/types/controllers/mobile/popup.controller.d.ts +2 -2
  63. package/lib/types/controllers/popup.controller.d.ts +2 -2
  64. package/lib/types/controllers/ui.controller.d.ts +4 -6
  65. package/lib/types/locale/en-US.d.ts +1 -0
  66. package/lib/types/menu/hyper-link-menu.controller.d.ts +20 -0
  67. package/lib/types/menu/mobile-hyper-link-menu.controller.d.ts +20 -0
  68. package/lib/types/menu/mobile-schema.d.ts +17 -0
  69. package/lib/types/views/CellLinkEdit/index.d.ts +19 -0
  70. package/lib/types/views/CellLinkPopup/index.d.ts +33 -0
  71. package/lib/umd/index.js +1 -1
  72. package/lib/umd/locale/ar-SA.js +1 -1
  73. package/lib/umd/locale/ca-ES.js +1 -1
  74. package/lib/umd/locale/de-DE.js +1 -1
  75. package/lib/umd/locale/en-US.js +1 -1
  76. package/lib/umd/locale/es-ES.js +1 -1
  77. package/lib/umd/locale/fa-IR.js +1 -1
  78. package/lib/umd/locale/fr-FR.js +1 -1
  79. package/lib/umd/locale/id-ID.js +1 -1
  80. package/lib/umd/locale/it-IT.js +1 -1
  81. package/lib/umd/locale/ja-JP.js +1 -1
  82. package/lib/umd/locale/ko-KR.js +1 -1
  83. package/lib/umd/locale/pl-PL.js +1 -1
  84. package/lib/umd/locale/pt-BR.js +1 -1
  85. package/lib/umd/locale/ru-RU.js +1 -1
  86. package/lib/umd/locale/sk-SK.js +1 -1
  87. package/lib/umd/locale/vi-VN.js +1 -1
  88. package/lib/umd/locale/zh-CN.js +1 -1
  89. package/lib/umd/locale/zh-HK.js +1 -1
  90. package/lib/umd/locale/zh-TW.js +1 -1
  91. package/package.json +17 -17
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/ar-SA.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "نص التلميح",
4
5
  addTitle: "إدراج ارتباط تشعبي",
5
6
  label: "التسمية",
6
7
  type: "النوع",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/ca-ES.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "Text d’ajuda",
4
5
  addTitle: "Insereix enllaç",
5
6
  label: "Etiqueta",
6
7
  type: "Tipus",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/de-DE.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "Hinweistext",
4
5
  addTitle: "Link einfügen",
5
6
  label: "Beschriftung",
6
7
  type: "Typ",
@@ -16,6 +16,7 @@
16
16
  */
17
17
  const locale = { "sheets-hyper-link-ui": {
18
18
  form: {
19
+ tooltip: "Screen tip",
19
20
  addTitle: "Insert Link",
20
21
  label: "Label",
21
22
  type: "Type",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/es-ES.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "Texto de ayuda",
4
5
  addTitle: "Insertar enlace",
5
6
  label: "Etiqueta",
6
7
  type: "Tipo",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/fa-IR.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "متن راهنما",
4
5
  addTitle: "درج لینک",
5
6
  label: "برچسب",
6
7
  type: "نوع",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/fr-FR.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "Info-bulle",
4
5
  addTitle: "Insérer un lien",
5
6
  label: "Titre",
6
7
  type: "Type",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/id-ID.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "Teks petunjuk",
4
5
  addTitle: "Sisipkan Tautan",
5
6
  label: "Label",
6
7
  type: "Tipe",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/it-IT.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "Suggerimento",
4
5
  addTitle: "Inserisci collegamento",
5
6
  label: "Etichetta",
6
7
  type: "Tipo",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/ja-JP.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "ヒント",
4
5
  addTitle: "リンクの挿入",
5
6
  label: "表示文字列",
6
7
  type: "種類",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/ko-KR.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "설명",
4
5
  addTitle: "링크 삽입",
5
6
  label: "표시 텍스트",
6
7
  type: "유형",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/pl-PL.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "Podpowiedź",
4
5
  addTitle: "Wstaw łącze",
5
6
  label: "Etykieta",
6
7
  type: "Typ",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/pt-BR.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "Texto de dica",
4
5
  addTitle: "Inserir Link",
5
6
  label: "Rótulo",
6
7
  type: "Tipo",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/ru-RU.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "Подсказка",
4
5
  addTitle: "Вставить ссылку",
5
6
  label: "Метка",
6
7
  type: "Тип",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/sk-SK.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "Pomocný text",
4
5
  addTitle: "Vložiť odkaz",
5
6
  label: "Popisok",
6
7
  type: "Typ",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/vi-VN.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "Văn bản gợi ý",
4
5
  addTitle: "Chèn liên kết",
5
6
  label: "Văn bản",
6
7
  labelPlaceholder: "Nhập văn bản",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/zh-CN.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "提示文字",
4
5
  addTitle: "插入链接",
5
6
  label: "文本",
6
7
  labelPlaceholder: "输入文本",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/zh-HK.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "提示文字",
4
5
  addTitle: "插入連結",
5
6
  label: "文字",
6
7
  labelPlaceholder: "輸入文字",
@@ -1,6 +1,7 @@
1
1
  //#region src/locale/zh-TW.ts
2
2
  const locale = { "sheets-hyper-link-ui": {
3
3
  form: {
4
+ tooltip: "提示文字",
4
5
  addTitle: "插入連結",
5
6
  label: "文字",
6
7
  labelPlaceholder: "輸入文字",
@@ -18,7 +18,7 @@ import { DocSelectionManagerService } from '@univerjs/docs';
18
18
  import { IRenderManagerService } from '@univerjs/engine-render';
19
19
  import { SheetPermissionCheckController } from '@univerjs/sheets';
20
20
  import { HoverManagerService, IEditorBridgeService } from '@univerjs/sheets-ui';
21
- import { SheetsHyperLinkPopupService } from '../../services/popup.service';
21
+ import { ISheetsHyperLinkPopupService } from '../../services/popup.service';
22
22
  export declare class SheetsHyperLinkMobilePopupController extends Disposable {
23
23
  private readonly _hoverManagerService;
24
24
  private readonly _sheetsHyperLinkPopupService;
@@ -29,7 +29,7 @@ export declare class SheetsHyperLinkMobilePopupController extends Disposable {
29
29
  private readonly _editorBridgeService;
30
30
  private readonly _textSelectionManagerService;
31
31
  private readonly _univerInstanceService;
32
- constructor(_hoverManagerService: HoverManagerService, _sheetsHyperLinkPopupService: SheetsHyperLinkPopupService, _renderManagerService: IRenderManagerService, _permissionService: IPermissionService, _sheetPermissionCheckController: SheetPermissionCheckController, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _textSelectionManagerService: DocSelectionManagerService, _univerInstanceService: IUniverInstanceService);
32
+ constructor(_hoverManagerService: HoverManagerService, _sheetsHyperLinkPopupService: ISheetsHyperLinkPopupService, _renderManagerService: IRenderManagerService, _permissionService: IPermissionService, _sheetPermissionCheckController: SheetPermissionCheckController, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _textSelectionManagerService: DocSelectionManagerService, _univerInstanceService: IUniverInstanceService);
33
33
  private _getLinkPermission;
34
34
  private _getCellHyperLinkInfo;
35
35
  private _initClickListener;
@@ -18,7 +18,7 @@ import { DocSelectionManagerService } from '@univerjs/docs';
18
18
  import { IRenderManagerService } from '@univerjs/engine-render';
19
19
  import { SheetPermissionCheckController } from '@univerjs/sheets';
20
20
  import { HoverManagerService, IEditorBridgeService } from '@univerjs/sheets-ui';
21
- import { SheetsHyperLinkPopupService } from '../services/popup.service';
21
+ import { ISheetsHyperLinkPopupService } from '../services/popup.service';
22
22
  export declare class SheetsHyperLinkPopupController extends Disposable {
23
23
  private readonly _hoverManagerService;
24
24
  private readonly _sheetsHyperLinkPopupService;
@@ -29,7 +29,7 @@ export declare class SheetsHyperLinkPopupController extends Disposable {
29
29
  private readonly _editorBridgeService;
30
30
  private readonly _textSelectionManagerService;
31
31
  private readonly _univerInstanceService;
32
- constructor(_hoverManagerService: HoverManagerService, _sheetsHyperLinkPopupService: SheetsHyperLinkPopupService, _renderManagerService: IRenderManagerService, _permissionService: IPermissionService, _sheetPermissionCheckController: SheetPermissionCheckController, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _textSelectionManagerService: DocSelectionManagerService, _univerInstanceService: IUniverInstanceService);
32
+ constructor(_hoverManagerService: HoverManagerService, _sheetsHyperLinkPopupService: ISheetsHyperLinkPopupService, _renderManagerService: IRenderManagerService, _permissionService: IPermissionService, _sheetPermissionCheckController: SheetPermissionCheckController, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _textSelectionManagerService: DocSelectionManagerService, _univerInstanceService: IUniverInstanceService);
33
33
  private _getLinkPermission;
34
34
  private _initHoverListener;
35
35
  private _initHoverEditingListener;
@@ -14,13 +14,11 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Disposable, ICommandService } from '@univerjs/core';
17
- import { IMenuManagerService, IShortcutService } from '@univerjs/ui';
17
+ import { IShortcutService } from '@univerjs/ui';
18
18
  export declare class SheetsHyperLinkUIController extends Disposable {
19
- private _commandService;
20
- private readonly _menuManagerService;
21
- private _shortcutService;
22
- constructor(_commandService: ICommandService, _menuManagerService: IMenuManagerService, _shortcutService: IShortcutService);
19
+ private readonly _commandService;
20
+ private readonly _shortcutService;
21
+ constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
23
22
  private _initCommands;
24
- private _initMenus;
25
23
  private _initShortCut;
26
24
  }
@@ -16,6 +16,7 @@
16
16
  declare const locale: {
17
17
  'sheets-hyper-link-ui': {
18
18
  form: {
19
+ tooltip: string;
19
20
  addTitle: string;
20
21
  label: string;
21
22
  type: string;
@@ -0,0 +1,20 @@
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 { Disposable } from '@univerjs/core';
17
+ import { IMenuManagerService } from '@univerjs/ui';
18
+ export declare class SheetsHyperLinkMenuController extends Disposable {
19
+ constructor(menuManagerService: IMenuManagerService);
20
+ }
@@ -0,0 +1,20 @@
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 { Disposable } from '@univerjs/core';
17
+ import { IMenuManagerService } from '@univerjs/ui';
18
+ export declare class SheetsHyperLinkMobileMenuController extends Disposable {
19
+ constructor(menuManagerService: IMenuManagerService);
20
+ }
@@ -0,0 +1,17 @@
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 { MenuSchemaType } from '@univerjs/ui';
17
+ export declare const mobileMenuSchema: MenuSchemaType;
@@ -0,0 +1,19 @@
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
+ export declare const CellLinkEdit: {
17
+ (): import("react/jsx-runtime").JSX.Element | null | undefined;
18
+ componentKey: string;
19
+ };
@@ -0,0 +1,33 @@
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 { ICustomRange, Nullable } from '@univerjs/core';
17
+ import { HyperLinkEditSourceType } from '../../types/enums/edit-source';
18
+ interface ICellLinkPopupPureProps {
19
+ customRange?: Nullable<ICustomRange>;
20
+ row: number;
21
+ col: number;
22
+ unitId: string;
23
+ subUnitId: string;
24
+ editPermission?: boolean;
25
+ copyPermission?: boolean;
26
+ type: HyperLinkEditSourceType;
27
+ }
28
+ export declare const CellLinkPopupPure: (props: ICellLinkPopupPureProps) => import("react/jsx-runtime").JSX.Element | null;
29
+ export declare const CellLinkPopup: {
30
+ (): import("react/jsx-runtime").JSX.Element | null;
31
+ componentKey: string;
32
+ };
33
+ export {};