@univerjs/ui 1.3.0 → 1.4.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 (79) hide show
  1. package/lib/cjs/facade.js +10 -21
  2. package/lib/cjs/index.js +558 -516
  3. package/lib/cjs/locale/ar-SA.js +2 -4
  4. package/lib/cjs/locale/ca-ES.js +2 -4
  5. package/lib/cjs/locale/de-DE.js +2 -4
  6. package/lib/cjs/locale/en-US.js +2 -4
  7. package/lib/cjs/locale/es-ES.js +2 -4
  8. package/lib/cjs/locale/fa-IR.js +2 -4
  9. package/lib/cjs/locale/fr-FR.js +2 -4
  10. package/lib/cjs/locale/id-ID.js +2 -4
  11. package/lib/cjs/locale/it-IT.js +2 -4
  12. package/lib/cjs/locale/ja-JP.js +2 -4
  13. package/lib/cjs/locale/ko-KR.js +2 -4
  14. package/lib/cjs/locale/pl-PL.js +2 -4
  15. package/lib/cjs/locale/pt-BR.js +2 -4
  16. package/lib/cjs/locale/ru-RU.js +2 -4
  17. package/lib/cjs/locale/sk-SK.js +2 -4
  18. package/lib/cjs/locale/vi-VN.js +2 -4
  19. package/lib/cjs/locale/zh-CN.js +2 -4
  20. package/lib/cjs/locale/zh-HK.js +2 -4
  21. package/lib/cjs/locale/zh-TW.js +2 -4
  22. package/lib/es/facade.js +10 -20
  23. package/lib/es/index.js +472 -425
  24. package/lib/es/locale/ar-SA.js +2 -4
  25. package/lib/es/locale/ca-ES.js +2 -4
  26. package/lib/es/locale/de-DE.js +2 -4
  27. package/lib/es/locale/en-US.js +2 -4
  28. package/lib/es/locale/es-ES.js +2 -4
  29. package/lib/es/locale/fa-IR.js +2 -4
  30. package/lib/es/locale/fr-FR.js +2 -4
  31. package/lib/es/locale/id-ID.js +2 -4
  32. package/lib/es/locale/it-IT.js +2 -4
  33. package/lib/es/locale/ja-JP.js +2 -4
  34. package/lib/es/locale/ko-KR.js +2 -4
  35. package/lib/es/locale/pl-PL.js +2 -4
  36. package/lib/es/locale/pt-BR.js +2 -4
  37. package/lib/es/locale/ru-RU.js +2 -4
  38. package/lib/es/locale/sk-SK.js +2 -4
  39. package/lib/es/locale/vi-VN.js +2 -4
  40. package/lib/es/locale/zh-CN.js +2 -4
  41. package/lib/es/locale/zh-HK.js +2 -4
  42. package/lib/es/locale/zh-TW.js +2 -4
  43. package/lib/facade.js +10 -20
  44. package/lib/index.css +49 -14
  45. package/lib/index.js +472 -425
  46. package/lib/locale/ar-SA.js +2 -4
  47. package/lib/locale/ca-ES.js +2 -4
  48. package/lib/locale/de-DE.js +2 -4
  49. package/lib/locale/en-US.js +2 -4
  50. package/lib/locale/es-ES.js +2 -4
  51. package/lib/locale/fa-IR.js +2 -4
  52. package/lib/locale/fr-FR.js +2 -4
  53. package/lib/locale/id-ID.js +2 -4
  54. package/lib/locale/it-IT.js +2 -4
  55. package/lib/locale/ja-JP.js +2 -4
  56. package/lib/locale/ko-KR.js +2 -4
  57. package/lib/locale/pl-PL.js +2 -4
  58. package/lib/locale/pt-BR.js +2 -4
  59. package/lib/locale/ru-RU.js +2 -4
  60. package/lib/locale/sk-SK.js +2 -4
  61. package/lib/locale/vi-VN.js +2 -4
  62. package/lib/locale/zh-CN.js +2 -4
  63. package/lib/locale/zh-HK.js +2 -4
  64. package/lib/locale/zh-TW.js +2 -4
  65. package/lib/types/menu/shortcut-panel.menu.d.ts +2 -1
  66. package/lib/types/services/menu/menu-manager.service.d.ts +2 -0
  67. package/lib/types/services/menu/menu.d.ts +1 -0
  68. package/lib/types/utils/di.d.ts +6 -10
  69. package/lib/types/views/components/mobile-drawer/MobileDrawer.d.ts +1 -0
  70. package/lib/types/views/components/popup/RectPopup.d.ts +8 -6
  71. package/lib/types/views/components/ribbon/ToolbarButton.d.ts +3 -5
  72. package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +2 -1
  73. package/lib/types/views/components/ribbon/ribbon-grid-layout.d.ts +2 -0
  74. package/lib/types/views/components/ribbon/ribbon-menu/use-ribbon-tabs.d.ts +18 -0
  75. package/lib/types/views/custom-label/CustomLabel.d.ts +1 -0
  76. package/lib/types/views/emoji-picker/emoji-picker-utils.d.ts +2 -2
  77. package/lib/types/views/font-family/FontFamily.d.ts +1 -1
  78. package/lib/umd/index.js +23 -22
  79. package/package.json +13 -13
package/lib/cjs/facade.js CHANGED
@@ -3,7 +3,7 @@ let _univerjs_core_facade = require("@univerjs/core/facade");
3
3
  let _univerjs_engine_render = require("@univerjs/engine-render");
4
4
  let _univerjs_ui = require("@univerjs/ui");
5
5
 
6
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
6
+ // \0@oxc-project+runtime@0.156.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) {
@@ -13,8 +13,7 @@ function _typeof(o) {
13
13
  }, _typeof(o);
14
14
  }
15
15
 
16
- //#endregion
17
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
16
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
18
17
  function toPrimitive(t, r) {
19
18
  if ("object" != _typeof(t) || !t) return t;
20
19
  var e = t[Symbol.toPrimitive];
@@ -26,15 +25,13 @@ function toPrimitive(t, r) {
26
25
  return ("string" === r ? String : Number)(t);
27
26
  }
28
27
 
29
- //#endregion
30
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
28
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
31
29
  function toPropertyKey(t) {
32
30
  var i = toPrimitive(t, "string");
33
31
  return "symbol" == _typeof(i) ? i : i + "";
34
32
  }
35
33
 
36
- //#endregion
37
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
34
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
38
35
  function _defineProperty(e, r, t) {
39
36
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
40
37
  value: t,
@@ -44,16 +41,14 @@ function _defineProperty(e, r, t) {
44
41
  }) : e[r] = t, e;
45
42
  }
46
43
 
47
- //#endregion
48
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
44
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/decorateParam.js
49
45
  function __decorateParam(paramIndex, decorator) {
50
46
  return function(target, key) {
51
47
  decorator(target, key, paramIndex);
52
48
  };
53
49
  }
54
50
 
55
- //#endregion
56
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
51
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
57
52
  function __decorate(decorators, target, key, desc) {
58
53
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
59
54
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -61,8 +56,7 @@ function __decorate(decorators, target, key, desc) {
61
56
  return c > 3 && r && Object.defineProperty(target, key, r), r;
62
57
  }
63
58
 
64
- //#endregion
65
- //#region src/facade/f-menu-builder.ts
59
+ // src/facade/f-menu-builder.ts
66
60
  /**
67
61
  * @ignore
68
62
  */
@@ -264,8 +258,7 @@ let FSubmenu = class FSubmenu extends FMenuBase {
264
258
  };
265
259
  FSubmenu = __decorate([__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_core.Injector)), __decorateParam(2, _univerjs_ui.IMenuManagerService)], FSubmenu);
266
260
 
267
- //#endregion
268
- //#region src/facade/f-shortcut.ts
261
+ // src/facade/f-shortcut.ts
269
262
  let FShortcut = class FShortcut extends _univerjs_core_facade.FBase {
270
263
  constructor(_injector, _renderManagerService, _univerInstanceService, _shortcutService) {
271
264
  super();
@@ -371,8 +364,7 @@ FShortcut = __decorate([
371
364
  __decorateParam(3, _univerjs_ui.IShortcutService)
372
365
  ], FShortcut);
373
366
 
374
- //#endregion
375
- //#region src/facade/f-univer.ts
367
+ // src/facade/f-univer.ts
376
368
  /**
377
369
  * @ignore
378
370
  */
@@ -452,8 +444,7 @@ var FUniverUIMixin = class extends _univerjs_core_facade.FUniver {
452
444
  };
453
445
  _univerjs_core_facade.FUniver.extend(FUniverUIMixin);
454
446
 
455
- //#endregion
456
- //#region src/facade/f-enum.ts
447
+ // src/facade/f-enum.ts
457
448
  /**
458
449
  * Copyright 2023-present DreamNum Co., Ltd.
459
450
  *
@@ -481,5 +472,3 @@ var FUIEnumMixin = class extends _univerjs_core_facade.FEnum {
481
472
  }
482
473
  };
483
474
  _univerjs_core_facade.FEnum.extend(FUIEnumMixin);
484
-
485
- //#endregion