@univerjs-pro/boards-ui 1.0.0-rc.0 → 1.0.1

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 (128) hide show
  1. package/README.md +7 -0
  2. package/lib/cjs/facade.js +1 -1
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/locale/ar-SA.js +1 -1
  5. package/lib/cjs/locale/ca-ES.js +1 -1
  6. package/lib/cjs/locale/de-DE.js +1 -1
  7. package/lib/cjs/locale/en-US.js +1 -1
  8. package/lib/cjs/locale/es-ES.js +1 -1
  9. package/lib/cjs/locale/fa-IR.js +1 -1
  10. package/lib/cjs/locale/fr-FR.js +1 -1
  11. package/lib/cjs/locale/id-ID.js +1 -1
  12. package/lib/cjs/locale/it-IT.js +1 -1
  13. package/lib/cjs/locale/ja-JP.js +1 -1
  14. package/lib/cjs/locale/ko-KR.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/vi-VN.js +1 -1
  20. package/lib/cjs/locale/zh-CN.js +1 -1
  21. package/lib/cjs/locale/zh-HK.js +1 -1
  22. package/lib/cjs/locale/zh-TW.js +1 -1
  23. package/lib/cjs/shape-preset-labels-C4G0G9GI.js +1 -1
  24. package/lib/es/facade.js +1 -1
  25. package/lib/es/index.js +1 -1
  26. package/lib/es/locale/ar-SA.js +1 -1
  27. package/lib/es/locale/ca-ES.js +1 -1
  28. package/lib/es/locale/de-DE.js +1 -1
  29. package/lib/es/locale/en-US.js +1 -1
  30. package/lib/es/locale/es-ES.js +1 -1
  31. package/lib/es/locale/fa-IR.js +1 -1
  32. package/lib/es/locale/fr-FR.js +1 -1
  33. package/lib/es/locale/id-ID.js +1 -1
  34. package/lib/es/locale/it-IT.js +1 -1
  35. package/lib/es/locale/ja-JP.js +1 -1
  36. package/lib/es/locale/ko-KR.js +1 -1
  37. package/lib/es/locale/pl-PL.js +1 -1
  38. package/lib/es/locale/pt-BR.js +1 -1
  39. package/lib/es/locale/ru-RU.js +1 -1
  40. package/lib/es/locale/sk-SK.js +1 -1
  41. package/lib/es/locale/vi-VN.js +1 -1
  42. package/lib/es/locale/zh-CN.js +1 -1
  43. package/lib/es/locale/zh-HK.js +1 -1
  44. package/lib/es/locale/zh-TW.js +1 -1
  45. package/lib/es/shape-preset-labels-092BdVw3.js +1 -1
  46. package/lib/facade.js +1 -1
  47. package/lib/index.css +180 -0
  48. package/lib/index.js +1 -1
  49. package/lib/locale/ar-SA.js +1 -1
  50. package/lib/locale/ca-ES.js +1 -1
  51. package/lib/locale/de-DE.js +1 -1
  52. package/lib/locale/en-US.js +1 -1
  53. package/lib/locale/es-ES.js +1 -1
  54. package/lib/locale/fa-IR.js +1 -1
  55. package/lib/locale/fr-FR.js +1 -1
  56. package/lib/locale/id-ID.js +1 -1
  57. package/lib/locale/it-IT.js +1 -1
  58. package/lib/locale/ja-JP.js +1 -1
  59. package/lib/locale/ko-KR.js +1 -1
  60. package/lib/locale/pl-PL.js +1 -1
  61. package/lib/locale/pt-BR.js +1 -1
  62. package/lib/locale/ru-RU.js +1 -1
  63. package/lib/locale/sk-SK.js +1 -1
  64. package/lib/locale/vi-VN.js +1 -1
  65. package/lib/locale/zh-CN.js +1 -1
  66. package/lib/locale/zh-HK.js +1 -1
  67. package/lib/locale/zh-TW.js +1 -1
  68. package/lib/shape-preset-labels-092BdVw3.js +1 -1
  69. package/lib/types/controllers/board-shape-floating-toolbar.render-controller.d.ts +7 -4
  70. package/lib/types/controllers/board-ui.controller.d.ts +4 -2
  71. package/lib/types/controllers/board-viewport-bar.render-controller.d.ts +8 -0
  72. package/lib/types/controllers/components.controller.d.ts +2 -2
  73. package/lib/types/controllers/mobile/board-image-mobile.render-controller.d.ts +36 -0
  74. package/lib/types/controllers/mobile/board-shape-floating-toolbar.render-controller.d.ts +15 -0
  75. package/lib/types/controllers/mobile/board-ui.controller.d.ts +8 -0
  76. package/lib/types/controllers/mobile/components.controller.d.ts +7 -0
  77. package/lib/types/index.d.ts +2 -0
  78. package/lib/types/locale/en-US.d.ts +11 -0
  79. package/lib/types/mobile-plugin.d.ts +37 -0
  80. package/lib/types/plugin.d.ts +8 -0
  81. package/lib/types/render-objects/board-adjust-point-object.d.ts +2 -2
  82. package/lib/types/services/board-canvas-pop-manager.service.d.ts +1 -1
  83. package/lib/types/services/board-container-rename.service.d.ts +3 -0
  84. package/lib/types/services/board-swimlane-lane-rename.service.d.ts +3 -0
  85. package/lib/types/services/mobile/board-container-rename.service.d.ts +13 -0
  86. package/lib/types/services/mobile/board-swimlane-lane-rename.service.d.ts +13 -0
  87. package/lib/types/views/BoardConnectorFloatingToolbarControls.d.ts +17 -1
  88. package/lib/types/views/BoardConnectorQuickShapeMenu.d.ts +1 -0
  89. package/lib/types/views/BoardFloatingToolPanel.d.ts +1 -1
  90. package/lib/types/views/BoardPanelSlot.d.ts +5 -0
  91. package/lib/types/views/BoardRenamePopup.d.ts +9 -0
  92. package/lib/types/views/BoardShapeTextEditorContainer.d.ts +6 -0
  93. package/lib/types/views/BoardTableSizePicker.d.ts +2 -0
  94. package/lib/types/views/mobile/BoardMobileConnectorMenu.d.ts +17 -0
  95. package/lib/types/views/mobile/BoardMobileConnectorQuickShapeMenu.d.ts +3 -0
  96. package/lib/types/views/mobile/BoardMobileConnectorToolbar.d.ts +10 -0
  97. package/lib/types/views/mobile/BoardMobileImageMenu.d.ts +11 -0
  98. package/lib/types/views/mobile/BoardMobileObjectListPanel.d.ts +8 -0
  99. package/lib/types/views/mobile/BoardMobilePanelLayer.d.ts +1 -0
  100. package/lib/types/views/mobile/BoardMobileRenamePopup.d.ts +2 -0
  101. package/lib/types/views/mobile/BoardMobileShapeMenu.d.ts +14 -0
  102. package/lib/types/views/mobile/BoardMobileShapeTextEditor.d.ts +1 -0
  103. package/lib/types/views/mobile/BoardMobileShapeToolbar.d.ts +24 -0
  104. package/lib/types/views/mobile/BoardMobileToolPanel.d.ts +5 -0
  105. package/lib/types/views/mobile/BoardMobileWorkbench.d.ts +5 -0
  106. package/lib/types/views/mobile/BoardMobileWorkbenchHost.d.ts +1 -0
  107. package/lib/umd/facade.js +1 -1
  108. package/lib/umd/index.js +1 -1
  109. package/lib/umd/locale/ar-SA.js +1 -1
  110. package/lib/umd/locale/ca-ES.js +1 -1
  111. package/lib/umd/locale/de-DE.js +1 -1
  112. package/lib/umd/locale/en-US.js +1 -1
  113. package/lib/umd/locale/es-ES.js +1 -1
  114. package/lib/umd/locale/fa-IR.js +1 -1
  115. package/lib/umd/locale/fr-FR.js +1 -1
  116. package/lib/umd/locale/id-ID.js +1 -1
  117. package/lib/umd/locale/it-IT.js +1 -1
  118. package/lib/umd/locale/ja-JP.js +1 -1
  119. package/lib/umd/locale/ko-KR.js +1 -1
  120. package/lib/umd/locale/pl-PL.js +1 -1
  121. package/lib/umd/locale/pt-BR.js +1 -1
  122. package/lib/umd/locale/ru-RU.js +1 -1
  123. package/lib/umd/locale/sk-SK.js +1 -1
  124. package/lib/umd/locale/vi-VN.js +1 -1
  125. package/lib/umd/locale/zh-CN.js +1 -1
  126. package/lib/umd/locale/zh-HK.js +1 -1
  127. package/lib/umd/locale/zh-TW.js +1 -1
  128. package/package.json +23 -20
package/README.md CHANGED
@@ -40,6 +40,13 @@ univer.registerPlugin(UniverBoardsUIPlugin);
40
40
  - Import the package stylesheet once in the application entry before rendering Univer UI.
41
41
  - Import locale files only for the languages your application enables.
42
42
 
43
+ ### Viewport bars
44
+
45
+ When enabled, viewport bars remain hidden while the Board is idle. Panning or zooming reveals them until
46
+ one second after the last viewport change. Moving the pointer within 24 pixels of the bottom or right edge
47
+ reveals the corresponding bar; dragging a bar keeps it visible until the gesture ends. Hidden bars do not
48
+ capture pointer input.
49
+
43
50
  ### Screenshot readiness
44
51
 
45
52
  Board screenshots wait for render resources and measured connector labels, not just successful data insertion.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x3665bb=_0x55e1;(function(_0x25aebd,_0x15a7ec){var _0x2f8d6d=_0x55e1,_0x325b23=_0x25aebd();while(!![]){try{var _0x5d80fd=-parseInt(_0x2f8d6d(0x9d))/0x1*(parseInt(_0x2f8d6d(0x9c))/0x2)+parseInt(_0x2f8d6d(0xa9))/0x3*(parseInt(_0x2f8d6d(0x8e))/0x4)+-parseInt(_0x2f8d6d(0x97))/0x5*(parseInt(_0x2f8d6d(0x8f))/0x6)+parseInt(_0x2f8d6d(0x8c))/0x7*(-parseInt(_0x2f8d6d(0x8d))/0x8)+parseInt(_0x2f8d6d(0x98))/0x9*(-parseInt(_0x2f8d6d(0x9a))/0xa)+parseInt(_0x2f8d6d(0x92))/0xb*(-parseInt(_0x2f8d6d(0xa5))/0xc)+-parseInt(_0x2f8d6d(0xa3))/0xd*(-parseInt(_0x2f8d6d(0xa4))/0xe);if(_0x5d80fd===_0x15a7ec)break;else _0x325b23['push'](_0x325b23['shift']());}catch(_0x56e223){_0x325b23['push'](_0x325b23['shift']());}}}(_0x1161,0x4b295));let e=require('@univerjs-pro/boards-ui'),t=require('@univerjs-pro/boards/facade'),n=require('@univerjs/core/facade');var r=class extends t[_0x3665bb(0xa0)]{[_0x3665bb(0x91)](_0xc4d250){var _0x3535cf=_0x3665bb;return this[_0x3535cf(0x93)][_0x3535cf(0x9e)](e['AnalyzeBoardRenderedLayoutCommand']['id'],{'unitId':this['id'],'subUnitId':this[_0x3535cf(0x8b)][_0x3535cf(0x9f)](),'focusPadding':_0xc4d250});}[_0x3665bb(0x94)](_0x374277){var _0x5a7d59=_0x3665bb;return this['_commandService']['executeCommand'](e[_0x5a7d59(0xac)]['id'],{..._0x374277,'unitId':this['id'],'subUnitId':this[_0x5a7d59(0x8b)]['getActivePageId']()});}};t[_0x3665bb(0xa0)][_0x3665bb(0xab)](r);var i=class extends n[_0x3665bb(0xae)]{get[_0x3665bb(0x99)](){var _0x19b0fd=_0x3665bb;return e[_0x19b0fd(0x99)];}};function _0x55e1(_0x27109a,_0x5a04bc){_0x27109a=_0x27109a-0x8b;var _0x11610b=_0x1161();var _0x55e1af=_0x11610b[_0x27109a];return _0x55e1af;}function _0x1161(){var _0x30c842=['SetBoardInteractionModeOperation','10pZeaEY','18iHOuHF','BoardInteractionMode','674940qmCLyh','SetBoardSettingsOperation','18106OyHQQX','26ebfgER','syncExecuteCommand','getActivePageId','FBoard','FocusBoardElementOperation','getSettings','2749097DzpTjt','70LFXQNk','28824WGsSBY','setSettings','GetBoardInteractionModeOperation','GetBoardObjectListPanelOpenOperation','3rTlBAs','getElementViewportPoint','extend','CaptureBoardScreenshotCommand','setObjectListPanelOpen','FEnum','_boardModel','175lpJgha','102728pGLyoi','1940140TuPduw','1060110cZyFiG','getObjectListPanelOpen','analyzeRenderedLayout','869sgVxBn','_commandService','getScreenshot','GetBoardElementViewportPointOperation'];_0x1161=function(){return _0x30c842;};return _0x1161();}n[_0x3665bb(0xae)][_0x3665bb(0xab)](i);var a=class extends t[_0x3665bb(0xa0)]{['getInteractionMode'](){var _0x2b1acd=_0x3665bb;return this[_0x2b1acd(0x93)][_0x2b1acd(0x9e)](e[_0x2b1acd(0xa7)]['id'],{'unitId':this['id']});}['setInteractionMode'](_0x39c869){var _0x3d50fb=_0x3665bb;return this[_0x3d50fb(0x93)]['executeCommand'](e[_0x3d50fb(0x96)]['id'],{'unitId':this['id'],'mode':_0x39c869});}[_0x3665bb(0xa2)](){var _0x4e9e2d=_0x3665bb;return this[_0x4e9e2d(0x93)][_0x4e9e2d(0x9e)](e['GetBoardSettingsOperation']['id'],{'unitId':this['id']});}[_0x3665bb(0xa6)](_0x13b08b){var _0x3eedf7=_0x3665bb;return this['_commandService'][_0x3eedf7(0x9e)](e[_0x3eedf7(0x9b)]['id'],{'unitId':this['id'],'settings':_0x13b08b});}[_0x3665bb(0x90)](){var _0x3e2e70=_0x3665bb;return this['_commandService'][_0x3e2e70(0x9e)](e[_0x3e2e70(0xa8)]['id'],{'unitId':this['id']});}[_0x3665bb(0xad)](_0x477a19){var _0x428e39=_0x3665bb;return this['_commandService'][_0x428e39(0x9e)](e['SetBoardObjectListPanelOpenOperation']['id'],{'unitId':this['id'],'open':_0x477a19});}['findElementsByText'](_0x15e286){return this['_commandService']['syncExecuteCommand'](e['FindBoardElementsByTextOperation']['id'],{'unitId':this['id'],'query':_0x15e286});}['focusElement'](_0x5cea47,_0x39c67f){var _0x8a4b73=_0x3665bb;return this[_0x8a4b73(0x93)][_0x8a4b73(0x9e)](e[_0x8a4b73(0xa1)]['id'],{'unitId':this['id'],'elementId':_0x5cea47,'viewportPoint':_0x39c67f});}[_0x3665bb(0xaa)](_0x1428f3){var _0x115a9c=_0x3665bb;return this[_0x115a9c(0x93)][_0x115a9c(0x9e)](e[_0x115a9c(0x95)]['id'],{'unitId':this['id'],'elementId':_0x1428f3});}};t[_0x3665bb(0xa0)][_0x3665bb(0xab)](a);
1
+ function _0x1082(_0x2140d1,_0x3ab382){_0x2140d1=_0x2140d1-0x1e8;var _0x25ec78=_0x25ec();var _0x1082d4=_0x25ec78[_0x2140d1];return _0x1082d4;}var _0x5969c2=_0x1082;(function(_0x15b444,_0x5a4aeb){var _0x576583=_0x1082,_0x494a3b=_0x15b444();while(!![]){try{var _0x3dcd84=-parseInt(_0x576583(0x1f1))/0x1+parseInt(_0x576583(0x200))/0x2*(parseInt(_0x576583(0x1ea))/0x3)+-parseInt(_0x576583(0x1fe))/0x4+-parseInt(_0x576583(0x1ff))/0x5*(-parseInt(_0x576583(0x201))/0x6)+-parseInt(_0x576583(0x1fc))/0x7*(-parseInt(_0x576583(0x1e9))/0x8)+parseInt(_0x576583(0x1f7))/0x9+parseInt(_0x576583(0x206))/0xa;if(_0x3dcd84===_0x5a4aeb)break;else _0x494a3b['push'](_0x494a3b['shift']());}catch(_0x298ba6){_0x494a3b['push'](_0x494a3b['shift']());}}}(_0x25ec,0x3bfb6));let e=require('@univerjs-pro/boards-ui'),t=require('@univerjs-pro/boards/facade'),n=require('@univerjs/core/facade');var r=class extends t[_0x5969c2(0x203)]{[_0x5969c2(0x1fd)](_0x2770b2){var _0x49ce57=_0x5969c2;return this[_0x49ce57(0x1f5)][_0x49ce57(0x1ed)](e[_0x49ce57(0x207)]['id'],{'unitId':this['id'],'subUnitId':this['_boardModel'][_0x49ce57(0x1f6)](),'focusPadding':_0x2770b2});}[_0x5969c2(0x1f4)](_0x4a2a67){var _0x555430=_0x5969c2;return this[_0x555430(0x1f5)][_0x555430(0x1ec)](e['CaptureBoardScreenshotCommand']['id'],{..._0x4a2a67,'unitId':this['id'],'subUnitId':this['_boardModel'][_0x555430(0x1f6)]()});}};t[_0x5969c2(0x203)]['extend'](r);function _0x25ec(){var _0x393091=['GetBoardElementViewportPointOperation','BoardInteractionMode','1937520bYDVcg','AnalyzeBoardRenderedLayoutCommand','SetBoardInteractionModeOperation','getInteractionMode','GetBoardObjectListPanelOpenOperation','16avOWrm','1053933ObHVIY','findElementsByText','executeCommand','syncExecuteCommand','extend','focusElement','getElementViewportPoint','346260xprmgV','SetBoardSettingsOperation','FindBoardElementsByTextOperation','getScreenshot','_commandService','getActivePageId','1016262pXVqNp','setInteractionMode','SetBoardObjectListPanelOpenOperation','GetBoardInteractionModeOperation','getObjectListPanelOpen','47306ftkwcK','analyzeRenderedLayout','484480gxgLfz','5tuMMZh','2oAlDjm','249414iVeVCW','getSettings','FBoard'];_0x25ec=function(){return _0x393091;};return _0x25ec();}var i=class extends n['FEnum']{get[_0x5969c2(0x205)](){var _0x326bf8=_0x5969c2;return e[_0x326bf8(0x205)];}};n['FEnum']['extend'](i);var a=class extends t['FBoard']{[_0x5969c2(0x209)](){var _0x389ee7=_0x5969c2;return this[_0x389ee7(0x1f5)][_0x389ee7(0x1ed)](e[_0x389ee7(0x1fa)]['id'],{'unitId':this['id']});}[_0x5969c2(0x1f8)](_0x52b78c){var _0x2da7b1=_0x5969c2;return this[_0x2da7b1(0x1f5)][_0x2da7b1(0x1ec)](e[_0x2da7b1(0x208)]['id'],{'unitId':this['id'],'mode':_0x52b78c});}[_0x5969c2(0x202)](){var _0x198a39=_0x5969c2;return this[_0x198a39(0x1f5)][_0x198a39(0x1ed)](e['GetBoardSettingsOperation']['id'],{'unitId':this['id']});}['setSettings'](_0x420c10){var _0x1636b4=_0x5969c2;return this[_0x1636b4(0x1f5)]['syncExecuteCommand'](e[_0x1636b4(0x1f2)]['id'],{'unitId':this['id'],'settings':_0x420c10});}[_0x5969c2(0x1fb)](){var _0x4ab69a=_0x5969c2;return this['_commandService'][_0x4ab69a(0x1ed)](e[_0x4ab69a(0x1e8)]['id'],{'unitId':this['id']});}['setObjectListPanelOpen'](_0x449645){var _0xb81691=_0x5969c2;return this[_0xb81691(0x1f5)]['syncExecuteCommand'](e[_0xb81691(0x1f9)]['id'],{'unitId':this['id'],'open':_0x449645});}[_0x5969c2(0x1eb)](_0x47d045){var _0x2afbc2=_0x5969c2;return this[_0x2afbc2(0x1f5)][_0x2afbc2(0x1ed)](e[_0x2afbc2(0x1f3)]['id'],{'unitId':this['id'],'query':_0x47d045});}[_0x5969c2(0x1ef)](_0x582dd5,_0x2f7251){var _0x41cb08=_0x5969c2;return this[_0x41cb08(0x1f5)][_0x41cb08(0x1ed)](e['FocusBoardElementOperation']['id'],{'unitId':this['id'],'elementId':_0x582dd5,'viewportPoint':_0x2f7251});}[_0x5969c2(0x1f0)](_0x22b789){var _0x2cda1c=_0x5969c2;return this[_0x2cda1c(0x1f5)][_0x2cda1c(0x1ed)](e[_0x2cda1c(0x204)]['id'],{'unitId':this['id'],'elementId':_0x22b789});}};t[_0x5969c2(0x203)][_0x5969c2(0x1ee)](a);