@apollo-office/sheets-note-ui 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.
- package/LICENSE +176 -0
- package/MODIFICATIONS.md +26 -0
- package/NOTICE +14 -0
- package/README.md +42 -0
- package/lib/cjs/index.js +789 -0
- package/lib/cjs/locale/ar-SA.js +13 -0
- package/lib/cjs/locale/ca-ES.js +13 -0
- package/lib/cjs/locale/de-DE.js +13 -0
- package/lib/cjs/locale/en-US.js +28 -0
- package/lib/cjs/locale/es-ES.js +13 -0
- package/lib/cjs/locale/fa-IR.js +13 -0
- package/lib/cjs/locale/fr-FR.js +13 -0
- package/lib/cjs/locale/id-ID.js +13 -0
- package/lib/cjs/locale/it-IT.js +13 -0
- package/lib/cjs/locale/ja-JP.js +13 -0
- package/lib/cjs/locale/ko-KR.js +13 -0
- package/lib/cjs/locale/pl-PL.js +13 -0
- package/lib/cjs/locale/pt-BR.js +13 -0
- package/lib/cjs/locale/ru-RU.js +13 -0
- package/lib/cjs/locale/sk-SK.js +13 -0
- package/lib/cjs/locale/vi-VN.js +13 -0
- package/lib/cjs/locale/zh-CN.js +13 -0
- package/lib/cjs/locale/zh-HK.js +13 -0
- package/lib/cjs/locale/zh-TW.js +13 -0
- package/lib/es/index.js +764 -0
- package/lib/es/locale/ar-SA.js +12 -0
- package/lib/es/locale/ca-ES.js +12 -0
- package/lib/es/locale/de-DE.js +12 -0
- package/lib/es/locale/en-US.js +27 -0
- package/lib/es/locale/es-ES.js +12 -0
- package/lib/es/locale/fa-IR.js +12 -0
- package/lib/es/locale/fr-FR.js +12 -0
- package/lib/es/locale/id-ID.js +12 -0
- package/lib/es/locale/it-IT.js +12 -0
- package/lib/es/locale/ja-JP.js +12 -0
- package/lib/es/locale/ko-KR.js +12 -0
- package/lib/es/locale/pl-PL.js +12 -0
- package/lib/es/locale/pt-BR.js +12 -0
- package/lib/es/locale/ru-RU.js +12 -0
- package/lib/es/locale/sk-SK.js +12 -0
- package/lib/es/locale/vi-VN.js +12 -0
- package/lib/es/locale/zh-CN.js +12 -0
- package/lib/es/locale/zh-HK.js +12 -0
- package/lib/es/locale/zh-TW.js +12 -0
- package/lib/index.css +31 -0
- package/lib/index.js +764 -0
- package/lib/locale/ar-SA.js +12 -0
- package/lib/locale/ca-ES.js +12 -0
- package/lib/locale/de-DE.js +12 -0
- package/lib/locale/en-US.js +27 -0
- package/lib/locale/es-ES.js +12 -0
- package/lib/locale/fa-IR.js +12 -0
- package/lib/locale/fr-FR.js +12 -0
- package/lib/locale/id-ID.js +12 -0
- package/lib/locale/it-IT.js +12 -0
- package/lib/locale/ja-JP.js +12 -0
- package/lib/locale/ko-KR.js +12 -0
- package/lib/locale/pl-PL.js +12 -0
- package/lib/locale/pt-BR.js +12 -0
- package/lib/locale/ru-RU.js +12 -0
- package/lib/locale/sk-SK.js +12 -0
- package/lib/locale/vi-VN.js +12 -0
- package/lib/locale/zh-CN.js +12 -0
- package/lib/locale/zh-HK.js +12 -0
- package/lib/locale/zh-TW.js +12 -0
- package/lib/types/commands/operations/add-note-popup.operation.d.ts +20 -0
- package/lib/types/config/config.d.ts +26 -0
- package/lib/types/controllers/sheets-cell-content.controller.d.ts +28 -0
- package/lib/types/controllers/sheets-note-attachment.controller.d.ts +31 -0
- package/lib/types/controllers/sheets-note-popup.controller.d.ts +36 -0
- package/lib/types/controllers/sheets-note-ui.controller.d.ts +26 -0
- package/lib/types/index.d.ts +22 -0
- package/lib/types/locale/ar-SA.d.ts +18 -0
- package/lib/types/locale/ca-ES.d.ts +18 -0
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +28 -0
- package/lib/types/locale/es-ES.d.ts +18 -0
- package/lib/types/locale/fa-IR.d.ts +18 -0
- package/lib/types/locale/fr-FR.d.ts +18 -0
- package/lib/types/locale/id-ID.d.ts +18 -0
- package/lib/types/locale/it-IT.d.ts +18 -0
- package/lib/types/locale/ja-JP.d.ts +18 -0
- package/lib/types/locale/ko-KR.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/ru-RU.d.ts +18 -0
- package/lib/types/locale/sk-SK.d.ts +18 -0
- package/lib/types/locale/vi-VN.d.ts +18 -0
- package/lib/types/locale/zh-CN.d.ts +18 -0
- package/lib/types/locale/zh-HK.d.ts +18 -0
- package/lib/types/locale/zh-TW.d.ts +18 -0
- package/lib/types/menu/note.menu.d.ts +21 -0
- package/lib/types/menu/schema.d.ts +17 -0
- package/lib/types/plugin.d.ts +30 -0
- package/lib/types/services/sheets-note-popup.service.d.ts +41 -0
- package/lib/types/views/Note.d.ts +27 -0
- package/lib/types/views/config.d.ts +16 -0
- package/lib/umd/index.js +1 -0
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/es-ES.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/fr-FR.js +1 -0
- 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 -0
- package/lib/umd/locale/ko-KR.js +1 -0
- 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 -0
- package/lib/umd/locale/sk-SK.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-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/locale/ar-SA.ts
|
|
2
|
+
const locale = { "sheets-note-ui": {
|
|
3
|
+
note: { placeholder: "اكتب هنا" },
|
|
4
|
+
rightClick: {
|
|
5
|
+
addNote: "إضافة ملاحظة",
|
|
6
|
+
deleteNote: "حذف الملاحظة",
|
|
7
|
+
toggleNote: "إظهار/إخفاء الملاحظة"
|
|
8
|
+
}
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { locale as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/locale/ca-ES.ts
|
|
2
|
+
const locale = { "sheets-note-ui": {
|
|
3
|
+
note: { placeholder: "Escriu aquí" },
|
|
4
|
+
rightClick: {
|
|
5
|
+
addNote: "Afegeix nota",
|
|
6
|
+
deleteNote: "Elimina nota",
|
|
7
|
+
toggleNote: "Mostra/Amaga nota"
|
|
8
|
+
}
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { locale as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/locale/de-DE.ts
|
|
2
|
+
const locale = { "sheets-note-ui": {
|
|
3
|
+
note: { placeholder: "Hier eingeben" },
|
|
4
|
+
rightClick: {
|
|
5
|
+
addNote: "Notiz hinzufügen",
|
|
6
|
+
deleteNote: "Notiz löschen",
|
|
7
|
+
toggleNote: "Notiz anzeigen/ausblenden"
|
|
8
|
+
}
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { locale as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region src/locale/en-US.ts
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
const locale = { "sheets-note-ui": {
|
|
18
|
+
note: { placeholder: "Type here" },
|
|
19
|
+
rightClick: {
|
|
20
|
+
addNote: "Add Note",
|
|
21
|
+
deleteNote: "Delete Note",
|
|
22
|
+
toggleNote: "Show/Hide Note"
|
|
23
|
+
}
|
|
24
|
+
} };
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { locale as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/locale/es-ES.ts
|
|
2
|
+
const locale = { "sheets-note-ui": {
|
|
3
|
+
note: { placeholder: "Escribe aquí" },
|
|
4
|
+
rightClick: {
|
|
5
|
+
addNote: "Agregar nota",
|
|
6
|
+
deleteNote: "Eliminar nota",
|
|
7
|
+
toggleNote: "Mostrar/Ocultar nota"
|
|
8
|
+
}
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { locale as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/locale/fa-IR.ts
|
|
2
|
+
const locale = { "sheets-note-ui": {
|
|
3
|
+
note: { placeholder: "اینجا تایپ کنید" },
|
|
4
|
+
rightClick: {
|
|
5
|
+
addNote: "افزودن یادداشت",
|
|
6
|
+
deleteNote: "حذف یادداشت",
|
|
7
|
+
toggleNote: "نمایش/پنهان کردن یادداشت"
|
|
8
|
+
}
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { locale as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/locale/fr-FR.ts
|
|
2
|
+
const locale = { "sheets-note-ui": {
|
|
3
|
+
note: { placeholder: "Écrivez ici" },
|
|
4
|
+
rightClick: {
|
|
5
|
+
addNote: "Ajouter une note",
|
|
6
|
+
deleteNote: "Supprimer la note",
|
|
7
|
+
toggleNote: "Afficher/Masquer la note"
|
|
8
|
+
}
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { locale as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/locale/id-ID.ts
|
|
2
|
+
const locale = { "sheets-note-ui": {
|
|
3
|
+
note: { placeholder: "Ketik di sini" },
|
|
4
|
+
rightClick: {
|
|
5
|
+
addNote: "Tambah Catatan",
|
|
6
|
+
deleteNote: "Hapus Catatan",
|
|
7
|
+
toggleNote: "Tampilkan/Sembunyikan Catatan"
|
|
8
|
+
}
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { locale as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/locale/it-IT.ts
|
|
2
|
+
const locale = { "sheets-note-ui": {
|
|
3
|
+
note: { placeholder: "Scrivi qui" },
|
|
4
|
+
rightClick: {
|
|
5
|
+
addNote: "Aggiungi nota",
|
|
6
|
+
deleteNote: "Elimina nota",
|
|
7
|
+
toggleNote: "Mostra/Nascondi nota"
|
|
8
|
+
}
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { locale as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/locale/pl-PL.ts
|
|
2
|
+
const locale = { "sheets-note-ui": {
|
|
3
|
+
note: { placeholder: "Wpisz tutaj" },
|
|
4
|
+
rightClick: {
|
|
5
|
+
addNote: "Dodaj notatkę",
|
|
6
|
+
deleteNote: "Usuń notatkę",
|
|
7
|
+
toggleNote: "Pokaż/Ukryj notatkę"
|
|
8
|
+
}
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { locale as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/locale/pt-BR.ts
|
|
2
|
+
const locale = { "sheets-note-ui": {
|
|
3
|
+
note: { placeholder: "Digite aqui" },
|
|
4
|
+
rightClick: {
|
|
5
|
+
addNote: "Adicionar Nota",
|
|
6
|
+
deleteNote: "Excluir Nota",
|
|
7
|
+
toggleNote: "Exibir/Ocultar Nota"
|
|
8
|
+
}
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { locale as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/locale/ru-RU.ts
|
|
2
|
+
const locale = { "sheets-note-ui": {
|
|
3
|
+
note: { placeholder: "Введите текст здесь" },
|
|
4
|
+
rightClick: {
|
|
5
|
+
addNote: "Добавить примечание",
|
|
6
|
+
deleteNote: "Удалить примечание",
|
|
7
|
+
toggleNote: "Показать/Скрыть примечание"
|
|
8
|
+
}
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { locale as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/locale/sk-SK.ts
|
|
2
|
+
const locale = { "sheets-note-ui": {
|
|
3
|
+
note: { placeholder: "Píšte sem" },
|
|
4
|
+
rightClick: {
|
|
5
|
+
addNote: "Pridať poznámku",
|
|
6
|
+
deleteNote: "Odstrániť poznámku",
|
|
7
|
+
toggleNote: "Zobraziť/Skryť poznámku"
|
|
8
|
+
}
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { locale as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/locale/vi-VN.ts
|
|
2
|
+
const locale = { "sheets-note-ui": {
|
|
3
|
+
note: { placeholder: "Nhập tại đây" },
|
|
4
|
+
rightClick: {
|
|
5
|
+
addNote: "Thêm ghi chú",
|
|
6
|
+
deleteNote: "Xóa ghi chú",
|
|
7
|
+
toggleNote: "Hiện/Ẩn ghi chú"
|
|
8
|
+
}
|
|
9
|
+
} };
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { locale as default };
|
|
@@ -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 type { ICommand } from '@apollo-office/core';
|
|
17
|
+
export interface IAddNotePopupOperationParams {
|
|
18
|
+
trigger?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const AddNotePopupOperation: ICommand;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { MenuConfig } from '@apollo-office/ui';
|
|
17
|
+
export declare const SHEETS_NOTE_UI_PLUGIN_CONFIG_KEY = "sheets-note-ui.config";
|
|
18
|
+
export declare const configSymbol: unique symbol;
|
|
19
|
+
export interface IUniverSheetsNoteUIConfig {
|
|
20
|
+
menu?: MenuConfig;
|
|
21
|
+
defaultNoteSize?: {
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare const defaultPluginConfig: IUniverSheetsNoteUIConfig;
|
|
@@ -0,0 +1,28 @@
|
|
|
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, IUniverInstanceService } from '@apollo-office/core';
|
|
17
|
+
import { IRenderManagerService } from '@apollo-office/engine-render';
|
|
18
|
+
import { SheetInterceptorService } from '@apollo-office/sheets';
|
|
19
|
+
import { SheetsNoteModel } from '@apollo-office/sheets-note';
|
|
20
|
+
export declare class SheetsCellContentController extends Disposable {
|
|
21
|
+
private readonly _sheetInterceptorService;
|
|
22
|
+
private readonly _sheetsNoteModel;
|
|
23
|
+
private readonly _renderManagerService;
|
|
24
|
+
private readonly _univerInstanceService;
|
|
25
|
+
constructor(_sheetInterceptorService: SheetInterceptorService, _sheetsNoteModel: SheetsNoteModel, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService);
|
|
26
|
+
private _initViewModelIntercept;
|
|
27
|
+
private _initSkeletonChange;
|
|
28
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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, IUniverInstanceService } from '@apollo-office/core';
|
|
17
|
+
import { SheetsNoteModel } from '@apollo-office/sheets-note';
|
|
18
|
+
import { CellPopupManagerService } from '@apollo-office/sheets-ui';
|
|
19
|
+
import { SheetsNotePopupService } from '../services/sheets-note-popup.service';
|
|
20
|
+
export declare class SheetsNoteAttachmentController extends Disposable {
|
|
21
|
+
private readonly _sheetsNoteModel;
|
|
22
|
+
private readonly _univerInstanceService;
|
|
23
|
+
private readonly _cellPopupManagerService;
|
|
24
|
+
private readonly _sheetsNotePopupService;
|
|
25
|
+
private _noteMatrix;
|
|
26
|
+
constructor(_sheetsNoteModel: SheetsNoteModel, _univerInstanceService: IUniverInstanceService, _cellPopupManagerService: CellPopupManagerService, _sheetsNotePopupService: SheetsNotePopupService);
|
|
27
|
+
private _showPopup;
|
|
28
|
+
dispose(): void;
|
|
29
|
+
private _initSheet;
|
|
30
|
+
private _initNoteChangeListener;
|
|
31
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 '@apollo-office/core';
|
|
17
|
+
import { IRenderManagerService } from '@apollo-office/engine-render';
|
|
18
|
+
import { SheetsSelectionsService } from '@apollo-office/sheets';
|
|
19
|
+
import { SheetsNoteModel } from '@apollo-office/sheets-note';
|
|
20
|
+
import { HoverManagerService, IEditorBridgeService } from '@apollo-office/sheets-ui';
|
|
21
|
+
import { SheetsNotePopupService } from '../services/sheets-note-popup.service';
|
|
22
|
+
export declare class SheetsNotePopupController extends Disposable {
|
|
23
|
+
private readonly _sheetsNotePopupService;
|
|
24
|
+
private readonly _sheetsNoteModel;
|
|
25
|
+
private readonly _sheetSelectionService;
|
|
26
|
+
private readonly _editorBridgeService;
|
|
27
|
+
private readonly _renderManagerService;
|
|
28
|
+
private readonly _hoverManagerService;
|
|
29
|
+
private _isSwitchingSheet;
|
|
30
|
+
constructor(_sheetsNotePopupService: SheetsNotePopupService, _sheetsNoteModel: SheetsNoteModel, _sheetSelectionService: SheetsSelectionsService, _editorBridgeService: IEditorBridgeService, _renderManagerService: IRenderManagerService, _hoverManagerService: HoverManagerService);
|
|
31
|
+
private _handleSelectionChange;
|
|
32
|
+
private _initSelectionUpdateListener;
|
|
33
|
+
private _initEditorBridge;
|
|
34
|
+
private _initHoverEvent;
|
|
35
|
+
private _initDeleteNoteListener;
|
|
36
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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, ICommandService } from '@apollo-office/core';
|
|
17
|
+
import { ComponentManager, IMenuManagerService } from '@apollo-office/ui';
|
|
18
|
+
export declare class SheetsNoteUIController extends Disposable {
|
|
19
|
+
private readonly _componentManager;
|
|
20
|
+
private readonly _menuManagerService;
|
|
21
|
+
private readonly _commandService;
|
|
22
|
+
constructor(_componentManager: ComponentManager, _menuManagerService: IMenuManagerService, _commandService: ICommandService);
|
|
23
|
+
private _initComponents;
|
|
24
|
+
private _initMenu;
|
|
25
|
+
private _initCommands;
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 './global.css';
|
|
17
|
+
export type { IUniverSheetsNoteUIConfig } from './config/config';
|
|
18
|
+
export { SheetsCellContentController } from './controllers/sheets-cell-content.controller';
|
|
19
|
+
export { SheetsNotePopupController } from './controllers/sheets-note-popup.controller';
|
|
20
|
+
export { UniverSheetsNoteUIPlugin } from './plugin';
|
|
21
|
+
export { SheetsNotePopupService } from './services/sheets-note-popup.service';
|
|
22
|
+
export { SheetsNote } from './views/Note';
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
declare const locale: {
|
|
17
|
+
'sheets-note-ui': {
|
|
18
|
+
note: {
|
|
19
|
+
placeholder: string;
|
|
20
|
+
};
|
|
21
|
+
rightClick: {
|
|
22
|
+
addNote: string;
|
|
23
|
+
deleteNote: string;
|
|
24
|
+
toggleNote: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default locale;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|