@univerjs-pro/sheets-shape-ui 1.0.0-alpha.2 → 1.0.0-alpha.3

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 (103) hide show
  1. package/README.md +5 -3
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/index.js +1 -1
  23. package/lib/es/locale/ar-SA.js +1 -1
  24. package/lib/es/locale/ca-ES.js +1 -1
  25. package/lib/es/locale/de-DE.js +1 -1
  26. package/lib/es/locale/en-US.js +1 -1
  27. package/lib/es/locale/es-ES.js +1 -1
  28. package/lib/es/locale/fa-IR.js +1 -1
  29. package/lib/es/locale/fr-FR.js +1 -1
  30. package/lib/es/locale/id-ID.js +1 -1
  31. package/lib/es/locale/it-IT.js +1 -1
  32. package/lib/es/locale/ja-JP.js +1 -1
  33. package/lib/es/locale/ko-KR.js +1 -1
  34. package/lib/es/locale/pl-PL.js +1 -1
  35. package/lib/es/locale/pt-BR.js +1 -1
  36. package/lib/es/locale/ru-RU.js +1 -1
  37. package/lib/es/locale/sk-SK.js +1 -1
  38. package/lib/es/locale/vi-VN.js +1 -1
  39. package/lib/es/locale/zh-CN.js +1 -1
  40. package/lib/es/locale/zh-HK.js +1 -1
  41. package/lib/es/locale/zh-TW.js +1 -1
  42. package/lib/index.css +21 -0
  43. package/lib/index.js +1 -1
  44. package/lib/locale/ar-SA.js +1 -1
  45. package/lib/locale/ca-ES.js +1 -1
  46. package/lib/locale/de-DE.js +1 -1
  47. package/lib/locale/en-US.js +1 -1
  48. package/lib/locale/es-ES.js +1 -1
  49. package/lib/locale/fa-IR.js +1 -1
  50. package/lib/locale/fr-FR.js +1 -1
  51. package/lib/locale/id-ID.js +1 -1
  52. package/lib/locale/it-IT.js +1 -1
  53. package/lib/locale/ja-JP.js +1 -1
  54. package/lib/locale/ko-KR.js +1 -1
  55. package/lib/locale/pl-PL.js +1 -1
  56. package/lib/locale/pt-BR.js +1 -1
  57. package/lib/locale/ru-RU.js +1 -1
  58. package/lib/locale/sk-SK.js +1 -1
  59. package/lib/locale/vi-VN.js +1 -1
  60. package/lib/locale/zh-CN.js +1 -1
  61. package/lib/locale/zh-HK.js +1 -1
  62. package/lib/locale/zh-TW.js +1 -1
  63. package/lib/types/command-util.d.ts +9 -3
  64. package/lib/types/commands/menu/menu-dependencies.d.ts +2 -0
  65. package/lib/types/commands/menu/object-list.menu.d.ts +4 -0
  66. package/lib/types/commands/operations/open-object-list-panel.operation.d.ts +5 -0
  67. package/lib/types/const.d.ts +2 -1
  68. package/lib/types/controllers/components.controller.d.ts +4 -2
  69. package/lib/types/controllers/shape-update.controller.d.ts +1 -0
  70. package/lib/types/controllers/sheet-shape-adjust.controller.d.ts +3 -6
  71. package/lib/types/controllers/sheet-shape-printing.controller.d.ts +12 -0
  72. package/lib/types/controllers/sheet-shape-render.controller.d.ts +8 -3
  73. package/lib/types/index.d.ts +1 -7
  74. package/lib/types/locale/en-US.d.ts +18 -0
  75. package/lib/types/services/shape-text-editing.service.d.ts +8 -0
  76. package/lib/types/utils/shape-text-document.d.ts +1 -11
  77. package/lib/types/view-model/drawing-shape.d.ts +6 -2
  78. package/lib/types/view-model/shape-data-model.d.ts +7 -5
  79. package/lib/types/views/ShapePicker.d.ts +4 -0
  80. package/lib/types/views/object-list-panel/SheetDrawingObjectListPanel.d.ts +1 -0
  81. package/lib/types/views/shape-editor-panel/ShapeFillEditor.d.ts +1 -2
  82. package/lib/umd/index.js +1 -1
  83. package/lib/umd/locale/ar-SA.js +1 -1
  84. package/lib/umd/locale/ca-ES.js +1 -1
  85. package/lib/umd/locale/de-DE.js +1 -1
  86. package/lib/umd/locale/en-US.js +1 -1
  87. package/lib/umd/locale/es-ES.js +1 -1
  88. package/lib/umd/locale/fa-IR.js +1 -1
  89. package/lib/umd/locale/fr-FR.js +1 -1
  90. package/lib/umd/locale/id-ID.js +1 -1
  91. package/lib/umd/locale/it-IT.js +1 -1
  92. package/lib/umd/locale/ja-JP.js +1 -1
  93. package/lib/umd/locale/ko-KR.js +1 -1
  94. package/lib/umd/locale/pl-PL.js +1 -1
  95. package/lib/umd/locale/pt-BR.js +1 -1
  96. package/lib/umd/locale/ru-RU.js +1 -1
  97. package/lib/umd/locale/sk-SK.js +1 -1
  98. package/lib/umd/locale/vi-VN.js +1 -1
  99. package/lib/umd/locale/zh-CN.js +1 -1
  100. package/lib/umd/locale/zh-HK.js +1 -1
  101. package/lib/umd/locale/zh-TW.js +1 -1
  102. package/package.json +20 -19
  103. package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -1
@@ -1 +1 @@
1
- function _0x38e0(_0x1e8d5d,_0x1b22b1){_0x1e8d5d=_0x1e8d5d-0x1b8;const _0x59a6b4=_0x59a6();let _0x38e0d5=_0x59a6b4[_0x1e8d5d];return _0x38e0d5;}const _0x329935=_0x38e0;(function(_0x229347,_0x374cf2){const _0xa90387=_0x38e0,_0x29a9cd=_0x229347();while(!![]){try{const _0x2d3dd4=-parseInt(_0xa90387(0x1d5))/0x1+parseInt(_0xa90387(0x1cb))/0x2+-parseInt(_0xa90387(0x1bf))/0x3*(parseInt(_0xa90387(0x1d6))/0x4)+-parseInt(_0xa90387(0x1bd))/0x5+-parseInt(_0xa90387(0x1bb))/0x6+parseInt(_0xa90387(0x1d9))/0x7+parseInt(_0xa90387(0x1d3))/0x8*(parseInt(_0xa90387(0x1dc))/0x9);if(_0x2d3dd4===_0x374cf2)break;else _0x29a9cd['push'](_0x29a9cd['shift']());}catch(_0x4f7ba9){_0x29a9cd['push'](_0x29a9cd['shift']());}}}(_0x59a6,0xce065));const e={'sheets-shape-ui':{'align':{'top':_0x329935(0x1c2),'middle':_0x329935(0x1cf),'bottom':_0x329935(0x1bc),'left':_0x329935(0x1cd),'center':'置中','right':_0x329935(0x1c6)},'toolbar':{'verticalAlignMode':{'main':'垂直對齊'},'horizontalAlignMode':{'main':_0x329935(0x1c7)},'fillColor':{'main':_0x329935(0x1c0)},'fontSize':_0x329935(0x1c8),'fontSizeIncrease':_0x329935(0x1d7),'fontSizeDecrease':_0x329935(0x1db),'alignLeft':_0x329935(0x1b9),'alignCenter':'Align\x20Center','alignRight':_0x329935(0x1c5),'alignJustify':_0x329935(0x1da),'bold':_0x329935(0x1d8),'italic':_0x329935(0x1ca),'underline':'Underline','strikethrough':_0x329935(0x1d1),'textColor':_0x329935(0x1c9),'textBackgroundColor':_0x329935(0x1d4),'resetColor':_0x329935(0x1c3)},'imagePanel':{'crop':{'shape':_0x329935(0x1cc)}},'permission':{'editErr':'該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。\x20'},'title':'形狀','insertShape':'插入形狀','openPanel':_0x329935(0x1b8),'deleteShape':_0x329935(0x1d0),'hidePanel':'隱藏形狀面板','formatShape':_0x329935(0x1ba),'shapeStyle':'圖形樣式','shapePosition':_0x329935(0x1c4),'toggleFlipH':_0x329935(0x1be),'toggleFlipV':_0x329935(0x1ce),'rotateRight90':_0x329935(0x1d2),'rotateLeft90':'逆時針\x2090\x20度旋轉','toggleTextVertical':_0x329935(0x1c1)}};export{e as default};function _0x59a6(){const _0x4a124a=['填滿色彩','切換文本竖排','靠上對齊','重置顏色','圖形位置','Align\x20Right','靠右對齊','水平對齊','字型大小','Text\x20color','Italic','1183944GfXsLD','裁切為形狀','靠左對齊','切換垂直翻轉','垂直置中','刪除形狀','Strikethrough','順時針\x2090\x20度旋轉','8LJHckE','Text\x20Background\x20color','959069DwTkuD','2684icyxEj','放大字型','Bold','5747798ZJYMvA','Justify','縮小字型','23419701YKyBgO','打開形狀面板','Align\x20Left','格式化形狀','3993402DfMoCT','靠下對齊','6079795NnhcFt','切換水平翻轉','1479qBigxk'];_0x59a6=function(){return _0x4a124a;};return _0x59a6();}
1
+ const _0x4e6d8c=_0x5cb8;function _0x5cb8(_0xa55d1a,_0x54bc2d){_0xa55d1a=_0xa55d1a-0x1f0;const _0xbdaeb5=_0xbdae();let _0x5cb8f7=_0xbdaeb5[_0xa55d1a];return _0x5cb8f7;}function _0xbdae(){const _0x3995b9=['3711272vvvOev','311755YdfgZU','21842316byWYat','文字背景色','文字顏色','51601plEJbu','刪除形狀','重置顏色','物件名稱','左對齊','開啟圖層面板','22dDdhgH','刪除線','兩端對齊','靠右對齊','填滿色彩','4569230LfrxXr','右對齊','下移一層','1827942eGKpLy','選取物件以編輯詳細資料','逆時針\x2090\x20度旋轉','上移一層','插入形狀','圖形樣式','暫無物件','垂直置中','詳細資料','7cMcYEg','該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。\x20','11DtFaUq','靠左對齊','順時針\x2090\x20度旋轉','新增描述','9cDmhMS','垂直對齊','隱藏形狀面板','放大字型','靠下對齊','靠上對齊','4XnjsFu','全部隱藏','打開形狀面板','切換水平翻轉','裁切為形狀','圖形位置','1712349TfVcxx','切換文本竖排','切換垂直翻轉'];_0xbdae=function(){return _0x3995b9;};return _0xbdae();}(function(_0x5a7e51,_0x3f319a){const _0x26e737=_0x5cb8,_0x51bb0e=_0x5a7e51();while(!![]){try{const _0x1da9e0=-parseInt(_0x26e737(0x214))/0x1*(parseInt(_0x26e737(0x21a))/0x2)+-parseInt(_0x26e737(0x20c))/0x3+-parseInt(_0x26e737(0x206))/0x4*(parseInt(_0x26e737(0x210))/0x5)+-parseInt(_0x26e737(0x1f1))/0x6*(parseInt(_0x26e737(0x1fa))/0x7)+parseInt(_0x26e737(0x20f))/0x8*(-parseInt(_0x26e737(0x200))/0x9)+-parseInt(_0x26e737(0x21f))/0xa*(-parseInt(_0x26e737(0x1fc))/0xb)+parseInt(_0x26e737(0x211))/0xc;if(_0x1da9e0===_0x3f319a)break;else _0x51bb0e['push'](_0x51bb0e['shift']());}catch(_0x57ccf1){_0x51bb0e['push'](_0x51bb0e['shift']());}}}(_0xbdae,0x4b25d));const e={'sheets-shape-ui':{'align':{'top':_0x4e6d8c(0x205),'middle':_0x4e6d8c(0x1f8),'bottom':_0x4e6d8c(0x204),'left':_0x4e6d8c(0x1fd),'center':'置中','right':_0x4e6d8c(0x21d)},'toolbar':{'verticalAlignMode':{'main':_0x4e6d8c(0x201)},'horizontalAlignMode':{'main':'水平對齊'},'fillColor':{'main':_0x4e6d8c(0x21e)},'fontSize':'字型大小','fontSizeIncrease':_0x4e6d8c(0x203),'fontSizeDecrease':'縮小字型','alignLeft':_0x4e6d8c(0x218),'alignCenter':'居中對齊','alignRight':_0x4e6d8c(0x220),'alignJustify':_0x4e6d8c(0x21c),'bold':'粗體','italic':'斜體','underline':'底線','strikethrough':_0x4e6d8c(0x21b),'textColor':_0x4e6d8c(0x213),'textBackgroundColor':_0x4e6d8c(0x212),'resetColor':_0x4e6d8c(0x216)},'imagePanel':{'crop':{'shape':_0x4e6d8c(0x20a)}},'permission':{'editErr':_0x4e6d8c(0x1fb)},'title':'形狀','insertShape':_0x4e6d8c(0x1f5),'openPanel':_0x4e6d8c(0x208),'deleteShape':_0x4e6d8c(0x215),'hidePanel':_0x4e6d8c(0x202),'formatShape':'格式化形狀','shapeStyle':_0x4e6d8c(0x1f6),'shapePosition':_0x4e6d8c(0x20b),'toggleFlipH':_0x4e6d8c(0x209),'toggleFlipV':_0x4e6d8c(0x20e),'rotateRight90':_0x4e6d8c(0x1fe),'rotateLeft90':_0x4e6d8c(0x1f3),'toggleTextVertical':_0x4e6d8c(0x20d),'objectListPanel':{'title':'圖層','open':_0x4e6d8c(0x219),'empty':_0x4e6d8c(0x1f7),'showAll':'全部顯示','hideAll':_0x4e6d8c(0x207),'show':'顯示','hide':'隱藏','moveForward':_0x4e6d8c(0x1f4),'moveBackward':_0x4e6d8c(0x1f0),'close':'關閉','name':'名稱','nameInput':_0x4e6d8c(0x217),'description':'描述','descriptionPlaceholder':_0x4e6d8c(0x1ff),'details':_0x4e6d8c(0x1f9),'noSelection':_0x4e6d8c(0x1f2)}}};export{e as default};
package/lib/index.css CHANGED
@@ -2,6 +2,23 @@
2
2
  box-sizing: border-box;
3
3
  }
4
4
 
5
+ .univer-flex {
6
+ display: flex;
7
+ }
8
+
9
+ .univer-size-full {
10
+ width: 100%;
11
+ height: 100%;
12
+ }
13
+
14
+ .univer-items-center {
15
+ align-items: center;
16
+ }
17
+
18
+ .univer-justify-center {
19
+ justify-content: center;
20
+ }
21
+
5
22
  .univer-px-4 {
6
23
  padding-left: 1rem;
7
24
  padding-right: 1rem;
@@ -11,3 +28,7 @@
11
28
  font-size: .875rem;
12
29
  line-height: 1.25rem;
13
30
  }
31
+
32
+ .univer-text-gray-500 {
33
+ color: var(--univer-gray-500);
34
+ }