@univerjs/ui 0.17.0 → 0.18.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 (172) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +377 -43
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -391
  16. package/lib/es/index.js +378 -12224
  17. package/lib/es/locale/ca-ES.js +1 -85
  18. package/lib/es/locale/en-US.js +1 -85
  19. package/lib/es/locale/es-ES.js +1 -85
  20. package/lib/es/locale/fa-IR.js +1 -85
  21. package/lib/es/locale/fr-FR.js +1 -85
  22. package/lib/es/locale/ja-JP.js +1 -85
  23. package/lib/es/locale/ko-KR.js +1 -85
  24. package/lib/es/locale/ru-RU.js +1 -85
  25. package/lib/es/locale/sk-SK.js +1 -85
  26. package/lib/es/locale/vi-VN.js +1 -85
  27. package/lib/es/locale/zh-CN.js +1 -85
  28. package/lib/es/locale/zh-TW.js +1 -85
  29. package/lib/facade.js +1 -391
  30. package/lib/index.css +1662 -1
  31. package/lib/index.js +378 -12224
  32. package/lib/locale/ca-ES.js +1 -85
  33. package/lib/locale/en-US.js +1 -85
  34. package/lib/locale/es-ES.js +1 -85
  35. package/lib/locale/fa-IR.js +1 -85
  36. package/lib/locale/fr-FR.js +1 -85
  37. package/lib/locale/ja-JP.js +1 -85
  38. package/lib/locale/ko-KR.js +1 -85
  39. package/lib/locale/ru-RU.js +1 -85
  40. package/lib/locale/sk-SK.js +1 -85
  41. package/lib/locale/vi-VN.js +1 -85
  42. package/lib/locale/zh-CN.js +1 -85
  43. package/lib/locale/zh-TW.js +1 -85
  44. package/lib/types/commands/operations/toggle-shortcut-panel.operation.d.ts +16 -1
  45. package/lib/types/common/component-manager.d.ts +17 -1
  46. package/lib/types/common/lifecycle.d.ts +16 -1
  47. package/lib/types/common/menu-hidden-observable.d.ts +16 -1
  48. package/lib/types/common/menu-merge-configs.d.ts +16 -1
  49. package/lib/types/components/custom-label/CustomLabel.d.ts +18 -3
  50. package/lib/types/components/font-family/FontFamily.d.ts +16 -1
  51. package/lib/types/components/font-family/interface.d.ts +17 -2
  52. package/lib/types/components/font-size/FontSize.d.ts +16 -1
  53. package/lib/types/components/font-size/interface.d.ts +17 -2
  54. package/lib/types/components/heading-item/index.d.ts +16 -1
  55. package/lib/types/components/hooks/layout.d.ts +16 -1
  56. package/lib/types/components/hooks/locale.d.ts +15 -0
  57. package/lib/types/components/hooks/update-effect.d.ts +15 -0
  58. package/lib/types/components/hooks/use-click-out-side.d.ts +16 -1
  59. package/lib/types/components/menu/common/hook.d.ts +16 -1
  60. package/lib/types/components/menu/desktop/DesignTinyMenuGroup.d.ts +30 -0
  61. package/lib/types/components/menu/desktop/TinyMenuGroup.d.ts +17 -2
  62. package/lib/types/components/menu/mobile/MobileMenu.d.ts +20 -3
  63. package/lib/types/components/menu/mobile/MobileMenu.stories.d.ts +16 -1
  64. package/lib/types/components/menu/types.d.ts +29 -0
  65. package/lib/types/components/notification/Notification.d.ts +17 -1
  66. package/lib/types/components/notification/Notification.stories.d.ts +16 -1
  67. package/lib/types/components/slider/Slider.stories.d.ts +16 -1
  68. package/lib/types/config/config.d.ts +18 -3
  69. package/lib/types/controllers/error/error.controller.d.ts +15 -0
  70. package/lib/types/controllers/menus/menus.d.ts +17 -2
  71. package/lib/types/controllers/shared-shortcut.controller.d.ts +17 -1
  72. package/lib/types/controllers/shortcut-display/menu.d.ts +16 -1
  73. package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +15 -0
  74. package/lib/types/controllers/ui/ui-desktop.controller.d.ts +18 -2
  75. package/lib/types/controllers/ui/ui-mobile.controller.d.ts +25 -4
  76. package/lib/types/controllers/ui/ui-shared.controller.d.ts +19 -3
  77. package/lib/types/controllers/ui/ui.controller.d.ts +17 -2
  78. package/lib/types/facade/f-enum.d.ts +15 -0
  79. package/lib/types/facade/f-hooks.d.ts +16 -1
  80. package/lib/types/facade/f-menu-builder.d.ts +17 -1
  81. package/lib/types/facade/f-shortcut.d.ts +17 -1
  82. package/lib/types/facade/f-univer.d.ts +21 -4
  83. package/lib/types/index.d.ts +1 -2
  84. package/lib/types/locale/ca-ES.d.ts +16 -1
  85. package/lib/types/locale/es-ES.d.ts +16 -1
  86. package/lib/types/locale/fa-IR.d.ts +16 -1
  87. package/lib/types/locale/fr-FR.d.ts +16 -1
  88. package/lib/types/locale/ja-JP.d.ts +16 -1
  89. package/lib/types/locale/ko-KR.d.ts +16 -1
  90. package/lib/types/locale/ru-RU.d.ts +16 -1
  91. package/lib/types/locale/sk-SK.d.ts +16 -1
  92. package/lib/types/locale/vi-VN.d.ts +16 -1
  93. package/lib/types/locale/zh-CN.d.ts +16 -1
  94. package/lib/types/locale/zh-TW.d.ts +16 -1
  95. package/lib/types/menu/schema.d.ts +16 -1
  96. package/lib/types/mobile-plugin.d.ts +16 -1
  97. package/lib/types/plugin.d.ts +16 -1
  98. package/lib/types/services/before-close/before-close.service.d.ts +17 -2
  99. package/lib/types/services/clipboard/clipboard-interface.service.d.ts +16 -1
  100. package/lib/types/services/clipboard/clipboard.command.d.ts +16 -1
  101. package/lib/types/services/confirm/desktop-confirm.service.d.ts +18 -2
  102. package/lib/types/services/contextmenu/contextmenu-host.service.d.ts +18 -2
  103. package/lib/types/services/contextmenu/contextmenu.service.d.ts +19 -3
  104. package/lib/types/services/dialog/desktop-dialog.service.d.ts +20 -4
  105. package/lib/types/services/dialog/dialog.service.d.ts +19 -4
  106. package/lib/types/services/dom/canvas-dom-layer.service.d.ts +17 -2
  107. package/lib/types/services/font.service.d.ts +18 -2
  108. package/lib/types/services/gallery/desktop-gallery.service.d.ts +19 -3
  109. package/lib/types/services/gallery/gallery.service.d.ts +19 -4
  110. package/lib/types/services/global-zone/desktop-global-zone.service.d.ts +18 -3
  111. package/lib/types/services/global-zone/global-zone.service.d.ts +18 -3
  112. package/lib/types/services/layout/layout.service.d.ts +18 -2
  113. package/lib/types/services/local-file/desktop-local-file.service.d.ts +16 -1
  114. package/lib/types/services/local-file/local-file.service.d.ts +1 -1
  115. package/lib/types/services/local-storage/local-storage.service.d.ts +16 -1
  116. package/lib/types/services/menu/menu-manager.service.d.ts +21 -4
  117. package/lib/types/services/menu/menu.d.ts +18 -2
  118. package/lib/types/services/menu/types.d.ts +5 -1
  119. package/lib/types/services/message/__testing__/mock-message.service.d.ts +18 -3
  120. package/lib/types/services/message/desktop-message.service.d.ts +19 -3
  121. package/lib/types/services/message/message.service.d.ts +18 -3
  122. package/lib/types/services/notification/desktop-notification.service.d.ts +19 -3
  123. package/lib/types/services/notification/notification.service.d.ts +18 -3
  124. package/lib/types/services/parts/parts.service.d.ts +20 -4
  125. package/lib/types/services/platform/platform.service.d.ts +1 -1
  126. package/lib/types/services/popup/canvas-popup.service.d.ts +21 -5
  127. package/lib/types/services/ribbon/ribbon.service.d.ts +19 -3
  128. package/lib/types/services/shortcut/shortcut-panel.service.d.ts +16 -1
  129. package/lib/types/services/shortcut/shortcut.service.d.ts +20 -4
  130. package/lib/types/services/sidebar/desktop-sidebar.service.d.ts +18 -3
  131. package/lib/types/services/sidebar/sidebar.service.d.ts +20 -5
  132. package/lib/types/services/theme-switcher/theme-switcher.service.d.ts +16 -1
  133. package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +20 -4
  134. package/lib/types/services/zen-zone/zen-zone.service.d.ts +19 -4
  135. package/lib/types/utils/cell.d.ts +16 -1
  136. package/lib/types/utils/di.d.ts +19 -4
  137. package/lib/types/views/components/ComponentContainer.d.ts +18 -3
  138. package/lib/types/views/components/confirm-part/interface.d.ts +17 -2
  139. package/lib/types/views/components/context-menu/AnchoredContextMenu.d.ts +16 -1
  140. package/lib/types/views/components/context-menu/ContextMenuPanel.d.ts +17 -1
  141. package/lib/types/views/components/context-menu/MobileContextMenu.d.ts +1 -1
  142. package/lib/types/views/components/dialog-part/interface.d.ts +17 -2
  143. package/lib/types/views/components/dom/FloatDom.d.ts +17 -2
  144. package/lib/types/views/components/dom/print.d.ts +17 -2
  145. package/lib/types/views/components/popup/CanvasPopup.d.ts +17 -2
  146. package/lib/types/views/components/popup/RectPopup.d.ts +18 -3
  147. package/lib/types/views/components/ribbon/MobileRibbon.d.ts +22 -0
  148. package/lib/types/views/components/ribbon/Ribbon.d.ts +17 -2
  149. package/lib/types/views/components/ribbon/ToolbarItem.d.ts +18 -3
  150. package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +19 -4
  151. package/lib/types/views/components/ribbon/hook.d.ts +16 -1
  152. package/lib/types/views/components/ribbon/ribbon-menu/ClassicMenu.d.ts +16 -1
  153. package/lib/types/views/components/ribbon/ribbon-menu/DefaultMenu.d.ts +16 -1
  154. package/lib/types/views/components/sidebar/Sidebar.d.ts +17 -2
  155. package/lib/types/views/mobile-workbench/MobileWorkbench.d.ts +16 -1
  156. package/lib/types/views/workbench/Workbench.d.ts +16 -1
  157. package/lib/umd/facade.js +1 -1
  158. package/lib/umd/index.js +384 -43
  159. package/lib/umd/locale/ca-ES.js +1 -1
  160. package/lib/umd/locale/en-US.js +1 -1
  161. package/lib/umd/locale/es-ES.js +1 -1
  162. package/lib/umd/locale/fa-IR.js +1 -1
  163. package/lib/umd/locale/fr-FR.js +1 -1
  164. package/lib/umd/locale/ja-JP.js +1 -1
  165. package/lib/umd/locale/ko-KR.js +1 -1
  166. package/lib/umd/locale/ru-RU.js +1 -1
  167. package/lib/umd/locale/sk-SK.js +1 -1
  168. package/lib/umd/locale/vi-VN.js +1 -1
  169. package/lib/umd/locale/zh-CN.js +1 -1
  170. package/lib/umd/locale/zh-TW.js +1 -1
  171. package/package.json +10 -9
  172. package/lib/types/components/menu/desktop/Menu.d.ts +0 -17
@@ -1,6 +1,22 @@
1
- import { IDisposable, IConfigService } from '@univerjs/core';
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 { IDisposable } from '@univerjs/core';
17
+ import { IConfigService } from '@univerjs/core';
2
18
  import { BehaviorSubject } from 'rxjs';
3
- export declare const IFontService: import('@wendellhu/redi').IdentifierDecorator<IFontService>;
19
+ export declare const IFontService: import("@wendellhu/redi").IdentifierDecorator<IFontService>;
4
20
  /**
5
21
  * Font configuration interface
6
22
  */
@@ -1,6 +1,22 @@
1
- import { IDisposable, Disposable, Injector } from '@univerjs/core';
2
- import { IGalleryProps } from '@univerjs/design';
3
- import { IGalleryService } from './gallery.service';
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 { IDisposable } from '@univerjs/core';
17
+ import type { IGalleryProps } from '@univerjs/design';
18
+ import type { IGalleryService } from './gallery.service';
19
+ import { Disposable, Injector } from '@univerjs/core';
4
20
  import { Subject } from 'rxjs';
5
21
  import { IUIPartsService } from '../parts/parts.service';
6
22
  export declare class DesktopGalleryService extends Disposable implements IGalleryService {
@@ -1,7 +1,22 @@
1
- import { IDisposable } from '@univerjs/core';
2
- import { IGalleryProps } from '@univerjs/design';
3
- import { Subject } from 'rxjs';
4
- export declare const IGalleryService: import('@wendellhu/redi').IdentifierDecorator<IGalleryService>;
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 { IDisposable } from '@univerjs/core';
17
+ import type { IGalleryProps } from '@univerjs/design';
18
+ import type { Subject } from 'rxjs';
19
+ export declare const IGalleryService: import("@wendellhu/redi").IdentifierDecorator<IGalleryService>;
5
20
  export interface IGalleryService {
6
21
  gallery$: Subject<IGalleryProps>;
7
22
  open(params: IGalleryProps): IDisposable;
@@ -1,6 +1,21 @@
1
- import { IDisposable } from '@univerjs/core';
2
- import { ForwardRefExoticComponent } from 'react';
3
- import { IGlobalZoneService } from './global-zone.service';
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 { IDisposable } from '@univerjs/core';
17
+ import type { ForwardRefExoticComponent } from 'react';
18
+ import type { IGlobalZoneService } from './global-zone.service';
4
19
  import { Subject } from 'rxjs';
5
20
  import { ComponentManager } from '../../common/component-manager';
6
21
  export declare class DesktopGlobalZoneService implements IGlobalZoneService {
@@ -1,6 +1,21 @@
1
- import { IDisposable } from '@univerjs/core';
2
- import { Subject } from 'rxjs';
3
- export declare const IGlobalZoneService: import('@wendellhu/redi').IdentifierDecorator<IGlobalZoneService>;
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 { IDisposable } from '@univerjs/core';
17
+ import type { Subject } from 'rxjs';
18
+ export declare const IGlobalZoneService: import("@wendellhu/redi").IdentifierDecorator<IGlobalZoneService>;
4
19
  export interface IGlobalZoneService {
5
20
  readonly visible$: Subject<boolean>;
6
21
  readonly componentKey$: Subject<string>;
@@ -1,4 +1,20 @@
1
- import { ContextService, IDisposable, Nullable, Disposable, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
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 { ContextService, IDisposable, Nullable } from '@univerjs/core';
17
+ import { Disposable, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
2
18
  type FocusHandlerFn = (unitId: string) => void;
3
19
  export declare const FOCUSING_UNIVER = "FOCUSING_UNIVER";
4
20
  export interface ILayoutService {
@@ -18,7 +34,7 @@ export interface ILayoutService {
18
34
  checkElementInCurrentContainers(element: HTMLElement): boolean;
19
35
  checkContentIsFocused(): boolean;
20
36
  }
21
- export declare const ILayoutService: import('@wendellhu/redi').IdentifierDecorator<ILayoutService>;
37
+ export declare const ILayoutService: import("@wendellhu/redi").IdentifierDecorator<ILayoutService>;
22
38
  /**
23
39
  * This service is responsible for storing layout information of the current
24
40
  * Univer application instance.
@@ -1,4 +1,19 @@
1
- import { ILocalFileService, IOpenFileOptions } from './local-file.service';
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 { ILocalFileService, IOpenFileOptions } from './local-file.service';
2
17
  import { Disposable } from '@univerjs/core';
3
18
  export declare class DesktopLocalFileService extends Disposable implements ILocalFileService {
4
19
  openFile(options?: IOpenFileOptions): Promise<File[]>;
@@ -20,7 +20,7 @@ export interface IOpenFileOptions {
20
20
  /**
21
21
  * This service is used to upload files.
22
22
  */
23
- export declare const ILocalFileService: import('@wendellhu/redi').IdentifierDecorator<ILocalFileService>;
23
+ export declare const ILocalFileService: import("@wendellhu/redi").IdentifierDecorator<ILocalFileService>;
24
24
  export interface ILocalFileService {
25
25
  openFile(options?: IOpenFileOptions): Promise<File[]>;
26
26
  downloadFile(data: Blob, fileName: string): void;
@@ -1,4 +1,19 @@
1
- import { ILocalStorageService } from '@univerjs/core';
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 { ILocalStorageService } from '@univerjs/core';
2
17
  export declare class DesktopLocalStorageService implements ILocalStorageService {
3
18
  getItem<T>(key: string): Promise<T | null>;
4
19
  setItem<T>(key: string, value: T): Promise<T>;
@@ -1,7 +1,24 @@
1
- import { IAccessor, Disposable, IConfigService, Injector } from '@univerjs/core';
2
- import { Observable, Subject } from 'rxjs';
3
- import { IMenuItem } from './menu';
4
- export declare const IMenuManagerService: import('@wendellhu/redi').IdentifierDecorator<IMenuManagerService>;
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 { IAccessor } from '@univerjs/core';
17
+ import type { Observable } from 'rxjs';
18
+ import type { IMenuItem } from './menu';
19
+ import { Disposable, IConfigService, Injector } from '@univerjs/core';
20
+ import { Subject } from 'rxjs';
21
+ export declare const IMenuManagerService: import("@wendellhu/redi").IdentifierDecorator<IMenuManagerService>;
5
22
  export type ContextMenuQuickLayout = 'icon' | 'tile';
6
23
  export interface IMenuSchema {
7
24
  key: string;
@@ -1,5 +1,20 @@
1
- import { IAccessor } from '@univerjs/core';
2
- import { Observable } from 'rxjs';
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 { IAccessor } from '@univerjs/core';
17
+ import type { Observable } from 'rxjs';
3
18
  export type OneOrMany<T> = T | T[];
4
19
  export declare enum MenuItemType {
5
20
  /** Button style menu item. */
@@ -49,6 +64,7 @@ export interface IValueOption<T = undefined> {
49
64
  id?: string;
50
65
  value?: string | number;
51
66
  value$?: Observable<T>;
67
+ params?: any;
52
68
  slot?: boolean;
53
69
  label?: string | {
54
70
  name: string;
@@ -63,7 +63,11 @@ export declare enum ContextMenuPosition {
63
63
  /**
64
64
  * paragraph context menu in doc
65
65
  */
66
- PARAGRAPH = "contextMenu.paragraph"
66
+ PARAGRAPH = "contextMenu.paragraph",
67
+ /**
68
+ * drawing context menu, now only used in drawing group operation
69
+ */
70
+ DRAWING = "contextMenu.drawing"
67
71
  }
68
72
  export declare enum ContextMenuGroup {
69
73
  /**
@@ -1,6 +1,21 @@
1
- import { IDisposable } from '@univerjs/core';
2
- import { IMessageProps } from '@univerjs/design';
3
- import { IMessageService } from '../message.service';
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 { IDisposable } from '@univerjs/core';
17
+ import type { IMessageProps } from '@univerjs/design';
18
+ import type { IMessageService } from '../message.service';
4
19
  /**
5
20
  * This is a mocked message service for testing purposes.
6
21
  *
@@ -1,6 +1,22 @@
1
- import { IDisposable, Disposable, Injector } from '@univerjs/core';
2
- import { IMessageProps } from '@univerjs/design';
3
- import { IMessageService } from './message.service';
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 { IDisposable } from '@univerjs/core';
17
+ import type { IMessageProps } from '@univerjs/design';
18
+ import type { IMessageService } from './message.service';
19
+ import { Disposable, Injector } from '@univerjs/core';
4
20
  import { IUIPartsService } from '../parts/parts.service';
5
21
  export declare class DesktopMessageService extends Disposable implements IMessageService {
6
22
  protected readonly _injector: Injector;
@@ -1,6 +1,21 @@
1
- import { IDisposable } from '@univerjs/core';
2
- import { IMessageProps } from '@univerjs/design';
3
- export declare const IMessageService: import('@wendellhu/redi').IdentifierDecorator<IMessageService>;
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 { IDisposable } from '@univerjs/core';
17
+ import type { IMessageProps } from '@univerjs/design';
18
+ export declare const IMessageService: import("@wendellhu/redi").IdentifierDecorator<IMessageService>;
4
19
  export interface IMessageService {
5
20
  show(options: IMessageProps): IDisposable;
6
21
  remove(id: string): void;
@@ -1,6 +1,22 @@
1
- import { IDisposable, Disposable, Injector } from '@univerjs/core';
2
- import { INotificationOptions } from '../../components/notification/Notification';
3
- import { INotificationService } from './notification.service';
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 { IDisposable } from '@univerjs/core';
17
+ import type { INotificationOptions } from '../../components/notification/Notification';
18
+ import type { INotificationService } from './notification.service';
19
+ import { Disposable, Injector } from '@univerjs/core';
4
20
  import { IUIPartsService } from '../parts/parts.service';
5
21
  export declare class DesktopNotificationService extends Disposable implements INotificationService {
6
22
  private readonly _injector;
@@ -1,6 +1,21 @@
1
- import { IDisposable } from '@univerjs/core';
2
- import { INotificationOptions } from '../../components/notification/Notification';
3
- export declare const INotificationService: import('@wendellhu/redi').IdentifierDecorator<INotificationService>;
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 { IDisposable } from '@univerjs/core';
17
+ import type { INotificationOptions } from '../../components/notification/Notification';
18
+ export declare const INotificationService: import("@wendellhu/redi").IdentifierDecorator<INotificationService>;
4
19
  export interface INotificationService {
5
20
  show(params: INotificationOptions): IDisposable;
6
21
  }
@@ -1,6 +1,22 @@
1
- import { IDisposable, Disposable } from '@univerjs/core';
2
- import { Observable } from 'rxjs';
3
- import { ComponentType } from '../../common/component-manager';
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 { IDisposable } from '@univerjs/core';
17
+ import type { Observable } from 'rxjs';
18
+ import type { ComponentType } from '../../common/component-manager';
19
+ import { Disposable } from '@univerjs/core';
4
20
  export type ComponentRenderer = () => ComponentType;
5
21
  type ComponentPartKey = BuiltInUIPart | string;
6
22
  export declare enum BuiltInUIPart {
@@ -29,7 +45,7 @@ export interface IUIPartsService {
29
45
  setUIVisible(part: ComponentPartKey, visible: boolean): void;
30
46
  isUIVisible(part: ComponentPartKey): boolean;
31
47
  }
32
- export declare const IUIPartsService: import('@wendellhu/redi').IdentifierDecorator<IUIPartsService>;
48
+ export declare const IUIPartsService: import("@wendellhu/redi").IdentifierDecorator<IUIPartsService>;
33
49
  export declare class UIPartsService extends Disposable implements IUIPartsService {
34
50
  private _componentsByPart;
35
51
  private readonly _componentRegistered$;
@@ -21,7 +21,7 @@ export interface IPlatformService {
21
21
  readonly isWindows: boolean;
22
22
  readonly isLinux: boolean;
23
23
  }
24
- export declare const IPlatformService: import('@wendellhu/redi').IdentifierDecorator<IPlatformService>;
24
+ export declare const IPlatformService: import("@wendellhu/redi").IdentifierDecorator<IPlatformService>;
25
25
  export declare class PlatformService implements IPlatformService {
26
26
  get isMac(): boolean;
27
27
  get isWindows(): boolean;
@@ -1,7 +1,23 @@
1
- import { Nullable, Disposable } from '@univerjs/core';
2
- import { IBoundRectNoAngle } from '@univerjs/engine-render';
3
- import { Observable } from 'rxjs';
4
- import { IRectPopupProps } from '../../views/components/popup/RectPopup';
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 { Nullable } from '@univerjs/core';
17
+ import type { IBoundRectNoAngle } from '@univerjs/engine-render';
18
+ import type { Observable } from 'rxjs';
19
+ import type { IRectPopupProps } from '../../views/components/popup/RectPopup';
20
+ import { Disposable } from '@univerjs/core';
5
21
  export interface IPopup<T = Record<string, unknown>> extends Omit<IRectPopupProps, 'children' | 'hidden' | 'excludeRects' | 'anchorRect$'> {
6
22
  anchorRect$: Observable<IBoundRectNoAngle>;
7
23
  anchorRect?: IBoundRectNoAngle;
@@ -30,7 +46,7 @@ export interface ICanvasPopupService {
30
46
  */
31
47
  get activePopupId(): Nullable<string>;
32
48
  }
33
- export declare const ICanvasPopupService: import('@wendellhu/redi').IdentifierDecorator<ICanvasPopupService>;
49
+ export declare const ICanvasPopupService: import("@wendellhu/redi").IdentifierDecorator<ICanvasPopupService>;
34
50
  export declare class CanvasPopupService extends Disposable implements ICanvasPopupService {
35
51
  private readonly _popupMap;
36
52
  private readonly _popups$;
@@ -1,7 +1,23 @@
1
- import { Observable } from 'rxjs';
2
- import { IMenuSchema, IMenuManagerService } from '../menu/menu-manager.service';
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 { Observable } from 'rxjs';
17
+ import type { IMenuSchema } from '../menu/menu-manager.service';
3
18
  import { Disposable, IUniverInstanceService } from '@univerjs/core';
4
- export declare const IRibbonService: import('@wendellhu/redi').IdentifierDecorator<IRibbonService>;
19
+ import { IMenuManagerService } from '../menu/menu-manager.service';
20
+ export declare const IRibbonService: import("@wendellhu/redi").IdentifierDecorator<IRibbonService>;
5
21
  export interface IRibbonService {
6
22
  ribbon$: Observable<IMenuSchema[]>;
7
23
  activatedTab$: Observable<string>;
@@ -1,7 +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
+ */
1
16
  import { Disposable } from '@univerjs/core';
2
17
  export declare class ShortcutPanelService extends Disposable {
3
18
  private _open$;
4
- open$: import('rxjs').Observable<boolean>;
19
+ open$: import("rxjs").Observable<boolean>;
5
20
  get isOpen(): boolean;
6
21
  dispose(): void;
7
22
  open(): void;
@@ -1,6 +1,22 @@
1
- import { IDisposable, Disposable, ICommandService, IContextService } from '@univerjs/core';
2
- import { Observable } from 'rxjs';
3
- import { KeyCode } from './keycode';
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 { IDisposable } from '@univerjs/core';
17
+ import type { Observable } from 'rxjs';
18
+ import type { KeyCode } from './keycode';
19
+ import { Disposable, ICommandService, IContextService } from '@univerjs/core';
4
20
  import { ILayoutService } from '../layout/layout.service';
5
21
  import { IPlatformService } from '../platform/platform.service';
6
22
  /**
@@ -56,7 +72,7 @@ export interface IShortcutItem<P extends object = object> {
56
72
  /**
57
73
  * The dependency injection identifier of the {@link IShortcutService}.
58
74
  */
59
- export declare const IShortcutService: import('@wendellhu/redi').IdentifierDecorator<IShortcutService>;
75
+ export declare const IShortcutService: import("@wendellhu/redi").IdentifierDecorator<IShortcutService>;
60
76
  /**
61
77
  * The interface of the shortcut service.
62
78
  */
@@ -1,6 +1,21 @@
1
- import { IDisposable } from '@univerjs/core';
2
- import { ISidebarMethodOptions } from '../../views/components/sidebar/Sidebar';
3
- import { ISidebarService } from './sidebar.service';
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 { IDisposable } from '@univerjs/core';
17
+ import type { ISidebarMethodOptions } from '../../views/components/sidebar/Sidebar';
18
+ import type { ISidebarService } from './sidebar.service';
4
19
  import { Subject } from 'rxjs';
5
20
  export declare class DesktopSidebarService implements ISidebarService {
6
21
  private _sidebarOptions;