@univerjs/ui 0.24.0 → 0.25.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 (105) hide show
  1. package/lib/cjs/facade.js +8 -7
  2. package/lib/cjs/index.js +374 -173
  3. package/lib/cjs/locale/ar-SA.js +81 -0
  4. package/lib/cjs/locale/ca-ES.js +5 -3
  5. package/lib/cjs/locale/de-DE.js +81 -0
  6. package/lib/cjs/locale/en-US.js +5 -3
  7. package/lib/cjs/locale/es-ES.js +5 -3
  8. package/lib/cjs/locale/fa-IR.js +5 -3
  9. package/lib/cjs/locale/fr-FR.js +5 -3
  10. package/lib/cjs/locale/id-ID.js +81 -0
  11. package/lib/cjs/locale/it-IT.js +81 -0
  12. package/lib/cjs/locale/ja-JP.js +5 -3
  13. package/lib/cjs/locale/ko-KR.js +5 -3
  14. package/lib/cjs/locale/pl-PL.js +81 -0
  15. package/lib/cjs/locale/pt-BR.js +81 -0
  16. package/lib/cjs/locale/ru-RU.js +5 -3
  17. package/lib/cjs/locale/sk-SK.js +5 -3
  18. package/lib/cjs/locale/vi-VN.js +5 -3
  19. package/lib/cjs/locale/zh-CN.js +5 -3
  20. package/lib/cjs/locale/zh-HK.js +81 -0
  21. package/lib/cjs/locale/zh-TW.js +5 -3
  22. package/lib/es/facade.js +8 -7
  23. package/lib/es/index.js +375 -158
  24. package/lib/es/locale/ar-SA.js +80 -0
  25. package/lib/es/locale/ca-ES.js +5 -3
  26. package/lib/es/locale/de-DE.js +80 -0
  27. package/lib/es/locale/en-US.js +5 -3
  28. package/lib/es/locale/es-ES.js +5 -3
  29. package/lib/es/locale/fa-IR.js +5 -3
  30. package/lib/es/locale/fr-FR.js +5 -3
  31. package/lib/es/locale/id-ID.js +80 -0
  32. package/lib/es/locale/it-IT.js +80 -0
  33. package/lib/es/locale/ja-JP.js +5 -3
  34. package/lib/es/locale/ko-KR.js +5 -3
  35. package/lib/es/locale/pl-PL.js +80 -0
  36. package/lib/es/locale/pt-BR.js +80 -0
  37. package/lib/es/locale/ru-RU.js +5 -3
  38. package/lib/es/locale/sk-SK.js +5 -3
  39. package/lib/es/locale/vi-VN.js +5 -3
  40. package/lib/es/locale/zh-CN.js +5 -3
  41. package/lib/es/locale/zh-HK.js +80 -0
  42. package/lib/es/locale/zh-TW.js +5 -3
  43. package/lib/facade.js +8 -7
  44. package/lib/index.css +9 -4
  45. package/lib/index.js +375 -158
  46. package/lib/locale/ar-SA.js +80 -0
  47. package/lib/locale/ca-ES.js +5 -3
  48. package/lib/locale/de-DE.js +80 -0
  49. package/lib/locale/en-US.js +5 -3
  50. package/lib/locale/es-ES.js +5 -3
  51. package/lib/locale/fa-IR.js +5 -3
  52. package/lib/locale/fr-FR.js +5 -3
  53. package/lib/locale/id-ID.js +80 -0
  54. package/lib/locale/it-IT.js +80 -0
  55. package/lib/locale/ja-JP.js +5 -3
  56. package/lib/locale/ko-KR.js +5 -3
  57. package/lib/locale/pl-PL.js +80 -0
  58. package/lib/locale/pt-BR.js +80 -0
  59. package/lib/locale/ru-RU.js +5 -3
  60. package/lib/locale/sk-SK.js +5 -3
  61. package/lib/locale/vi-VN.js +5 -3
  62. package/lib/locale/zh-CN.js +5 -3
  63. package/lib/locale/zh-HK.js +80 -0
  64. package/lib/locale/zh-TW.js +5 -3
  65. package/lib/types/components/menu/desktop/DesignTinyMenuGroup.d.ts +1 -0
  66. package/lib/types/components/menu/desktop/TinyMenuGroup.d.ts +4 -0
  67. package/lib/types/facade/f-shortcut.d.ts +2 -1
  68. package/lib/types/facade/f-univer.d.ts +8 -4
  69. package/lib/types/index.d.ts +0 -1
  70. package/lib/types/{components/hooks/locale.d.ts → locale/ar-SA.d.ts} +3 -3
  71. package/lib/types/locale/de-DE.d.ts +18 -0
  72. package/lib/types/locale/en-US.d.ts +79 -75
  73. package/lib/types/locale/id-ID.d.ts +18 -0
  74. package/lib/types/locale/it-IT.d.ts +18 -0
  75. package/lib/types/locale/pl-PL.d.ts +18 -0
  76. package/lib/types/locale/pt-BR.d.ts +18 -0
  77. package/lib/types/locale/zh-HK.d.ts +18 -0
  78. package/lib/types/services/before-close/before-close.service.d.ts +5 -1
  79. package/lib/types/services/clipboard/clipboard-interface.service.d.ts +2 -2
  80. package/lib/types/services/menu/menu-manager.service.d.ts +1 -0
  81. package/lib/types/services/ribbon/ribbon.service.d.ts +2 -0
  82. package/lib/types/services/shortcut/shortcut.service.d.ts +8 -0
  83. package/lib/types/views/components/context-menu/ContextMenuPanel.d.ts +5 -0
  84. package/lib/umd/facade.js +1 -1
  85. package/lib/umd/index.js +51 -36
  86. package/lib/umd/locale/ar-SA.js +1 -0
  87. package/lib/umd/locale/ca-ES.js +1 -1
  88. package/lib/umd/locale/de-DE.js +1 -0
  89. package/lib/umd/locale/en-US.js +1 -1
  90. package/lib/umd/locale/es-ES.js +1 -1
  91. package/lib/umd/locale/fa-IR.js +1 -1
  92. package/lib/umd/locale/fr-FR.js +1 -1
  93. package/lib/umd/locale/id-ID.js +1 -0
  94. package/lib/umd/locale/it-IT.js +1 -0
  95. package/lib/umd/locale/ja-JP.js +1 -1
  96. package/lib/umd/locale/ko-KR.js +1 -1
  97. package/lib/umd/locale/pl-PL.js +1 -0
  98. package/lib/umd/locale/pt-BR.js +1 -0
  99. package/lib/umd/locale/ru-RU.js +1 -1
  100. package/lib/umd/locale/sk-SK.js +1 -1
  101. package/lib/umd/locale/vi-VN.js +1 -1
  102. package/lib/umd/locale/zh-CN.js +1 -1
  103. package/lib/umd/locale/zh-HK.js +1 -0
  104. package/lib/umd/locale/zh-TW.js +1 -1
  105. package/package.json +8 -8
package/lib/cjs/facade.js CHANGED
@@ -3,7 +3,7 @@ let _univerjs_engine_render = require("@univerjs/engine-render");
3
3
  let _univerjs_ui = require("@univerjs/ui");
4
4
  let _univerjs_core = require("@univerjs/core");
5
5
 
6
- //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
6
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
7
7
  function _typeof(o) {
8
8
  "@babel/helpers - typeof";
9
9
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -14,7 +14,7 @@ function _typeof(o) {
14
14
  }
15
15
 
16
16
  //#endregion
17
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
17
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
18
18
  function toPrimitive(t, r) {
19
19
  if ("object" != _typeof(t) || !t) return t;
20
20
  var e = t[Symbol.toPrimitive];
@@ -27,14 +27,14 @@ function toPrimitive(t, r) {
27
27
  }
28
28
 
29
29
  //#endregion
30
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
30
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
31
31
  function toPropertyKey(t) {
32
32
  var i = toPrimitive(t, "string");
33
33
  return "symbol" == _typeof(i) ? i : i + "";
34
34
  }
35
35
 
36
36
  //#endregion
37
- //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
37
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
38
38
  function _defineProperty(e, r, t) {
39
39
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
40
40
  value: t,
@@ -45,7 +45,7 @@ function _defineProperty(e, r, t) {
45
45
  }
46
46
 
47
47
  //#endregion
48
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorateParam.js
48
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
49
49
  function __decorateParam(paramIndex, decorator) {
50
50
  return function(target, key) {
51
51
  decorator(target, key, paramIndex);
@@ -53,7 +53,7 @@ function __decorateParam(paramIndex, decorator) {
53
53
  }
54
54
 
55
55
  //#endregion
56
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
56
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
57
57
  function __decorate(decorators, target, key, desc) {
58
58
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
59
59
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -309,7 +309,8 @@ let FShortcut = class FShortcut extends _univerjs_core_facade.FBase {
309
309
  * ```typescript
310
310
  * // Assum the current sheet is empty sheet.
311
311
  * const fWorkbook = univerAPI.getActiveWorkbook();
312
- * const fWorksheet = fWorkbook.getActiveSheet();
312
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
313
+ * if (!fWorksheet) return;
313
314
  * const fRange = fWorksheet.getRange('A1');
314
315
  *
315
316
  * // Set A1 cell active and set value to 'Hello Univer'.