@univerjs/ui 0.2.2 → 0.2.4-alpha.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 (57) hide show
  1. package/README.md +11 -4
  2. package/lib/cjs/index.js +14 -14
  3. package/lib/es/index.js +3781 -3733
  4. package/lib/index.css +1 -1
  5. package/lib/locale/vi-VN.json +61 -0
  6. package/lib/locale/zh-TW.json +61 -0
  7. package/lib/types/common/component-manager.d.ts +1 -1
  8. package/lib/types/common/lifecycle.d.ts +1 -1
  9. package/lib/types/common/menu-hidden-observable.d.ts +1 -2
  10. package/lib/types/const.d.ts +19 -0
  11. package/lib/types/controllers/menus/menus.d.ts +1 -1
  12. package/lib/types/controllers/shared-shortcut.controller.d.ts +1 -2
  13. package/lib/types/controllers/shortcut-display/menu.d.ts +1 -1
  14. package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +1 -2
  15. package/lib/types/controllers/ui/ui-desktop.controller.d.ts +1 -2
  16. package/lib/types/controllers/ui/ui-mobile.controller.d.ts +1 -2
  17. package/lib/types/controllers/ui/ui.controller.d.ts +1 -1
  18. package/lib/types/index.d.ts +12 -6
  19. package/lib/types/locale/vi-VN.d.ts +4 -0
  20. package/lib/types/locale/zh-TW.d.ts +4 -0
  21. package/lib/types/mobile-ui-plugin.d.ts +1 -2
  22. package/lib/types/services/before-close/before-close.service.d.ts +2 -2
  23. package/lib/types/services/clipboard/clipboard-interface.service.d.ts +1 -1
  24. package/lib/types/services/confirm/confirm.service.d.ts +2 -2
  25. package/lib/types/services/confirm/desktop-confirm.service.d.ts +1 -2
  26. package/lib/types/services/contextmenu/contextmenu.service.d.ts +2 -3
  27. package/lib/types/services/dialog/desktop-dialog.service.d.ts +1 -2
  28. package/lib/types/services/dialog/dialog.service.d.ts +2 -2
  29. package/lib/types/services/editor/editor.service.d.ts +2 -3
  30. package/lib/types/services/global-zone/desktop-global-zone.service.d.ts +1 -1
  31. package/lib/types/services/global-zone/global-zone.service.d.ts +2 -2
  32. package/lib/types/services/layout/layout.service.d.ts +2 -3
  33. package/lib/types/services/menu/menu.d.ts +1 -1
  34. package/lib/types/services/menu/menu.service.d.ts +2 -3
  35. package/lib/types/services/message/__testing__/mock-message.service.d.ts +2 -1
  36. package/lib/types/services/message/desktop-message.service.d.ts +2 -1
  37. package/lib/types/services/message/message.service.d.ts +3 -2
  38. package/lib/types/services/notification/desktop-notification.service.d.ts +1 -2
  39. package/lib/types/services/notification/notification.service.d.ts +2 -2
  40. package/lib/types/services/parts/parts.service.d.ts +4 -4
  41. package/lib/types/services/platform/platform.service.d.ts +1 -1
  42. package/lib/types/services/popup/canvas-popup.service.d.ts +1 -1
  43. package/lib/types/services/progress/progress.service.d.ts +2 -3
  44. package/lib/types/services/range-selector/range-selector.service.d.ts +2 -3
  45. package/lib/types/services/shortcut/keycode.d.ts +2 -0
  46. package/lib/types/services/shortcut/shortcut.service.d.ts +2 -3
  47. package/lib/types/services/sidebar/desktop-sidebar.service.d.ts +2 -1
  48. package/lib/types/services/sidebar/sidebar.service.d.ts +3 -2
  49. package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +1 -1
  50. package/lib/types/services/zen-zone/zen-zone.service.d.ts +2 -2
  51. package/lib/types/ui-plugin.d.ts +2 -3
  52. package/lib/types/utils/util.d.ts +1 -0
  53. package/lib/types/views/components/ComponentContainer.d.ts +1 -1
  54. package/lib/types/views/workbench/Workbench.d.ts +8 -0
  55. package/lib/umd/index.js +14 -14
  56. package/package.json +14 -16
  57. package/lib/types/views/DesktopApp.d.ts +0 -8
package/README.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # @univerjs/ui
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/@univerjs/ui)](https://npmjs.org/package/@univerjs/ui)
4
- [![license](https://img.shields.io/npm/l/@univerjs/ui)](https://img.shields.io/npm/l/@univerjs/ui)
5
- ![CSS Included](https://img.shields.io/badge/CSS_Included-blue?logo=CSS3)
6
- ![i18n](https://img.shields.io/badge/zh--CN%20%7C%20en--US-cornflowerblue?label=i18n)
3
+ ## Package Overview
4
+
5
+ | Package Name | UMD Namespace | Version | License | Downloads | Contains CSS | Contains i18n locales |
6
+ | --- | --- | --- | --- | --- | :---: | :---: |
7
+ | `@univerjs/ui` | `UniveUi` | [![][npm-version-shield]][npm-version-link] | ![][npm-license-shield] | ![][npm-downloads-shield] | ⭕️ | ⭕️ |
7
8
 
8
9
  ## Introduction
9
10
 
@@ -37,3 +38,9 @@ These UI services include:
37
38
  ### Workbench
38
39
 
39
40
  In addition to UI services, `@univerjs/ui` also implements a workspace based on React, which includes elements such as the title bar, toolbar, main content area, context menu, sidebar, and more. Businesses can customize the rendered content using the APIs provided by the Workbench.
41
+
42
+ <!-- Links -->
43
+ [npm-version-shield]: https://img.shields.io/npm/v/@univerjs/ui?style=flat-square
44
+ [npm-version-link]: https://npmjs.com/package/@univerjs/ui
45
+ [npm-license-shield]: https://img.shields.io/npm/l/@univerjs/ui?style=flat-square
46
+ [npm-downloads-shield]: https://img.shields.io/npm/dm/@univerjs/ui?style=flat-square