@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,21 @@
1
- import { IDisposable } from '@univerjs/core';
2
- import { Subject } from 'rxjs';
3
- import { ISidebarMethodOptions } from '../../views/components/sidebar/Sidebar';
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
+ import type { ISidebarMethodOptions } from '../../views/components/sidebar/Sidebar';
4
19
  export interface ISidebarService {
5
20
  readonly sidebarOptions$: Subject<ISidebarMethodOptions>;
6
21
  readonly scrollEvent$: Subject<Event>;
@@ -11,5 +26,5 @@ export interface ISidebarService {
11
26
  getContainer(): HTMLElement | undefined;
12
27
  setContainer(element?: HTMLElement): void;
13
28
  }
14
- export declare const ILeftSidebarService: import('@wendellhu/redi').IdentifierDecorator<ISidebarService>;
15
- export declare const ISidebarService: import('@wendellhu/redi').IdentifierDecorator<ISidebarService>;
29
+ export declare const ILeftSidebarService: import("@wendellhu/redi").IdentifierDecorator<ISidebarService>;
30
+ export declare const ISidebarService: import("@wendellhu/redi").IdentifierDecorator<ISidebarService>;
@@ -1,4 +1,19 @@
1
- import { Theme } from '@univerjs/themes';
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 { Theme } from '@univerjs/themes';
2
17
  import { Disposable } from '@univerjs/core';
3
18
  export declare class ThemeSwitcherService extends Disposable {
4
19
  private _styleSheetId;
@@ -1,13 +1,29 @@
1
- import { IDisposable } from '@univerjs/core';
2
- import { ComponentType, ComponentManager } from '../../common/component-manager';
3
- import { IZenZoneService } from './zen-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 { ComponentType } from '../../common/component-manager';
18
+ import type { IZenZoneService } from './zen-zone.service';
4
19
  import { BehaviorSubject, ReplaySubject } from 'rxjs';
20
+ import { ComponentManager } from '../../common/component-manager';
5
21
  export declare class DesktopZenZoneService implements IZenZoneService, IDisposable {
6
22
  private readonly _componentManager;
7
23
  readonly visible$: BehaviorSubject<boolean>;
8
24
  readonly componentKey$: ReplaySubject<string>;
9
25
  private readonly _temporaryHidden$;
10
- readonly temporaryHidden$: import('rxjs').Observable<boolean>;
26
+ readonly temporaryHidden$: import("rxjs").Observable<boolean>;
11
27
  private _visible;
12
28
  get visible(): boolean;
13
29
  get temporaryHidden(): boolean;
@@ -1,7 +1,22 @@
1
- import { IDisposable } from '@univerjs/core';
2
- import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
3
- import { ComponentType } from '../../common/component-manager';
4
- export declare const IZenZoneService: import('@wendellhu/redi').IdentifierDecorator<IZenZoneService>;
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 { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
18
+ import type { ComponentType } from '../../common/component-manager';
19
+ export declare const IZenZoneService: import("@wendellhu/redi").IdentifierDecorator<IZenZoneService>;
5
20
  export interface IZenZoneService {
6
21
  readonly visible$: BehaviorSubject<boolean>;
7
22
  readonly componentKey$: ReplaySubject<string>;
@@ -1,4 +1,19 @@
1
- import { IDocumentData, IRange, IStyleData } 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 { IDocumentData, IRange, IStyleData } from '@univerjs/core';
2
17
  /**
3
18
  * The entire list of DOM spans is parsed into a rich-text JSON style sheet
4
19
  * @param $dom
@@ -1,7 +1,22 @@
1
- import { Nullable } from '@univerjs/core';
2
- import { RefObject } from 'react';
3
- import { Observable } from 'rxjs';
4
- export * from '@wendellhu/redi/react-bindings';
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 { RefObject } from 'react';
18
+ import type { Observable } from 'rxjs';
19
+ export { connectDependencies, connectInjector, RediConsumer, RediContext, RediProvider, useDependency, useInjector, useObservable, useUpdateBinder, WithDependency, } from '@wendellhu/redi/react-bindings';
5
20
  type ObservableOrFn<T> = Observable<T> | (() => Observable<T>);
6
21
  declare module '@univerjs/ui' {
7
22
  function useObservable<T>(observable: ObservableOrFn<T>, defaultValue: T | undefined, shouldHaveSyncValue?: true): T;
@@ -1,6 +1,21 @@
1
- import { Injector } from '@univerjs/core';
2
- import { ComponentType, ReactNode } from 'react';
3
- import { ComponentRenderer } from '../../services/parts/parts.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 { Injector } from '@univerjs/core';
17
+ import type { ComponentType, ReactNode } from 'react';
18
+ import type { ComponentRenderer } from '../../services/parts/parts.service';
4
19
  export interface IComponentContainerProps {
5
20
  components?: Set<ComponentType>;
6
21
  fallback?: ReactNode;
@@ -1,5 +1,20 @@
1
- import { IConfirmProps } from '@univerjs/design';
2
- import { ICustomLabelProps } from '../../../components/custom-label/CustomLabel';
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 { IConfirmProps } from '@univerjs/design';
17
+ import type { ICustomLabelProps } from '../../../components/custom-label/CustomLabel';
3
18
  export interface IConfirmChildrenProps {
4
19
  hooks: {
5
20
  beforeConfirm?: () => Record<string, any>;
@@ -1,4 +1,19 @@
1
- import { IValueOption } from '../../../services/menu/menu';
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 { IValueOption } from '../../../services/menu/menu';
2
17
  export interface IContextMenuAnchorRect {
3
18
  left: number;
4
19
  top: number;
@@ -1,7 +1,23 @@
1
- import { IValueOption } from '../../../services/menu/menu';
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 { IValueOption } from '../../../services/menu/menu';
2
17
  interface IContextMenuPanelProps {
3
18
  menuType: string;
4
19
  menuSessionVersion?: number;
20
+ className?: string;
5
21
  onOptionSelect?: (option: IValueOption) => void;
6
22
  }
7
23
  export declare const CONTEXT_MENU_SUBMENU_PORTAL_ATTR = "data-u-context-menu-submenu";
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare function MobileContextMenu(): import("react/jsx-runtime").JSX.Element;
16
+ export declare function MobileContextMenu(): import("react").ReactPortal | null;
@@ -1,5 +1,20 @@
1
- import { IDialogProps } from '@univerjs/design';
2
- import { ICustomLabelProps } from '../../../components/custom-label/CustomLabel';
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 { IDialogProps } from '@univerjs/design';
17
+ import type { ICustomLabelProps } from '../../../components/custom-label/CustomLabel';
3
18
  export type IDialogPartMethodOptions = {
4
19
  id: string;
5
20
  children?: ICustomLabelProps;
@@ -1,5 +1,20 @@
1
- import { IFloatDom } from '../../../services/dom/canvas-dom-layer.service';
2
- export declare const FloatDomSingle: import('react').MemoExoticComponent<(props: {
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 { IFloatDom } from '../../../services/dom/canvas-dom-layer.service';
17
+ export declare const FloatDomSingle: import("react").MemoExoticComponent<(props: {
3
18
  layer: IFloatDom;
4
19
  id: string;
5
20
  }) => import("react/jsx-runtime").JSX.Element | null>;
@@ -1,5 +1,20 @@
1
- import { IFloatDom, IFloatDomLayout } from '../../../services/dom/canvas-dom-layer.service';
2
- export declare const PrintFloatDomSingle: import('react').MemoExoticComponent<(props: {
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 { IFloatDom, IFloatDomLayout } from '../../../services/dom/canvas-dom-layer.service';
17
+ export declare const PrintFloatDomSingle: import("react").MemoExoticComponent<(props: {
3
18
  layer: IFloatDom;
4
19
  id: string;
5
20
  position: IFloatDomLayout;
@@ -1,5 +1,20 @@
1
- import { ReactNode } from 'react';
2
- import { IPopup } from '../../../services/popup/canvas-popup.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 { ReactNode } from 'react';
17
+ import type { IPopup } from '../../../services/popup/canvas-popup.service';
3
18
  interface ISingleCanvasPopupProps {
4
19
  popup: IPopup;
5
20
  children?: ReactNode;
@@ -1,6 +1,21 @@
1
- import { Nullable } from '@univerjs/core';
2
- import { ReactNode, RefObject } from 'react';
3
- 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 { Nullable } from '@univerjs/core';
17
+ import type { ReactNode, RefObject } from 'react';
18
+ import type { Observable } from 'rxjs';
4
19
  interface IAbsolutePosition {
5
20
  left: number;
6
21
  right: number;
@@ -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 type { ComponentType } from 'react';
17
+ interface IMobileRibbonProps {
18
+ headerMenuComponents?: Set<ComponentType>;
19
+ headerMenu?: boolean;
20
+ }
21
+ export declare function MobileRibbon(props: IMobileRibbonProps): import("react/jsx-runtime").JSX.Element | null;
22
+ export {};
@@ -1,5 +1,20 @@
1
- import { ComponentType } from 'react';
2
- import { RibbonType } from '../../../controllers/ui/ui.controller';
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 { ComponentType } from 'react';
17
+ import type { RibbonType } from '../../../controllers/ui/ui.controller';
3
18
  interface IRibbonProps {
4
19
  ribbonType: RibbonType;
5
20
  headerMenuComponents?: Set<ComponentType>;
@@ -1,3 +1,18 @@
1
- import { IDisplayMenuItem, IMenuItem } from '../../../services/menu/menu';
2
- import { ITooltipWrapperRef } from './TooltipButtonWrapper';
3
- export declare const ToolbarItem: import('react').ForwardRefExoticComponent<IDisplayMenuItem<IMenuItem> & import('react').RefAttributes<ITooltipWrapperRef>>;
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 { IDisplayMenuItem, IMenuItem } from '../../../services/menu/menu';
17
+ import type { ITooltipWrapperRef } from './TooltipButtonWrapper';
18
+ export declare const ToolbarItem: import("react").ForwardRefExoticComponent<IDisplayMenuItem<IMenuItem> & import("react").RefAttributes<ITooltipWrapperRef>>;
@@ -1,10 +1,25 @@
1
- import { IDropdownProps, ITooltipProps } from '@univerjs/design';
2
- import { ReactNode } from 'react';
3
- import { IValueOption } from '../../../services/menu/menu';
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 { IDropdownProps, ITooltipProps } from '@univerjs/design';
17
+ import type { ReactNode } from 'react';
18
+ import type { IValueOption } from '../../../services/menu/menu';
4
19
  export interface ITooltipWrapperRef {
5
20
  el: HTMLSpanElement | null;
6
21
  }
7
- export declare const TooltipWrapper: import('react').ForwardRefExoticComponent<ITooltipProps & import('react').RefAttributes<ITooltipWrapperRef>>;
22
+ export declare const TooltipWrapper: import("react").ForwardRefExoticComponent<ITooltipProps & import("react").RefAttributes<ITooltipWrapperRef>>;
8
23
  export declare function DropdownWrapper(props: Omit<Partial<IDropdownProps>, 'overlay'> & {
9
24
  overlay: ReactNode;
10
25
  align?: 'start' | 'end' | 'center';
@@ -1,4 +1,19 @@
1
- import { IDisplayMenuItem, IMenuItem } from '../../../services/menu/menu';
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 { IDisplayMenuItem, IMenuItem } from '../../../services/menu/menu';
2
17
  export interface IToolbarItemStatus {
3
18
  disabled: boolean;
4
19
  value: any;
@@ -1,4 +1,19 @@
1
- import { IMenuSchema } from '../../../../services/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 { IMenuSchema } from '../../../../services/menu/menu-manager.service';
2
17
  export declare function ClassicMenu({ ribbon, activatedTab, onSelectTab, }: {
3
18
  ribbon: IMenuSchema[];
4
19
  activatedTab: string;
@@ -1,4 +1,19 @@
1
- import { IMenuSchema } from '../../../../services/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 { IMenuSchema } from '../../../../services/menu/menu-manager.service';
2
17
  export declare function DefaultMenu({ ribbon, activatedTab, onSelectTab, }: {
3
18
  ribbon: IMenuSchema[];
4
19
  activatedTab: string;
@@ -1,5 +1,20 @@
1
- import { CSSProperties } from 'react';
2
- import { ICustomLabelProps } from '../../../components/custom-label/CustomLabel';
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 { CSSProperties } from 'react';
17
+ import type { ICustomLabelProps } from '../../../components/custom-label/CustomLabel';
3
18
  export interface ISidebarMethodOptions {
4
19
  id?: string;
5
20
  header?: ICustomLabelProps;
@@ -1,4 +1,19 @@
1
- import { IWorkbenchOptions } from '../../controllers/ui/ui.controller';
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 { IWorkbenchOptions } from '../../controllers/ui/ui.controller';
2
17
  export interface IUniverAppProps extends IWorkbenchOptions {
3
18
  mountContainer: HTMLElement;
4
19
  onRendered?: (container: HTMLElement) => void;
@@ -1,4 +1,19 @@
1
- import { IWorkbenchOptions } from '../../controllers/ui/ui.controller';
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 { IWorkbenchOptions } from '../../controllers/ui/ui.controller';
2
17
  export interface IUniverWorkbenchProps extends IWorkbenchOptions {
3
18
  mountContainer: HTMLElement;
4
19
  onRendered?: (containerElement: HTMLElement) => void;