@univerjs-pro/boards-ui 1.0.0-rc.0 → 1.0.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.
- package/README.md +7 -0
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/cjs/shape-preset-labels-C4G0G9GI.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/es/shape-preset-labels-092BdVw3.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.css +180 -0
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/shape-preset-labels-092BdVw3.js +1 -1
- package/lib/types/controllers/board-shape-floating-toolbar.render-controller.d.ts +7 -4
- package/lib/types/controllers/board-ui.controller.d.ts +4 -2
- package/lib/types/controllers/board-viewport-bar.render-controller.d.ts +8 -0
- package/lib/types/controllers/components.controller.d.ts +2 -2
- package/lib/types/controllers/mobile/board-image-mobile.render-controller.d.ts +36 -0
- package/lib/types/controllers/mobile/board-shape-floating-toolbar.render-controller.d.ts +15 -0
- package/lib/types/controllers/mobile/board-ui.controller.d.ts +8 -0
- package/lib/types/controllers/mobile/components.controller.d.ts +7 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/locale/en-US.d.ts +11 -0
- package/lib/types/mobile-plugin.d.ts +37 -0
- package/lib/types/plugin.d.ts +8 -0
- package/lib/types/render-objects/board-adjust-point-object.d.ts +2 -2
- package/lib/types/services/board-canvas-pop-manager.service.d.ts +1 -1
- package/lib/types/services/board-container-rename.service.d.ts +3 -0
- package/lib/types/services/board-swimlane-lane-rename.service.d.ts +3 -0
- package/lib/types/services/mobile/board-container-rename.service.d.ts +13 -0
- package/lib/types/services/mobile/board-swimlane-lane-rename.service.d.ts +13 -0
- package/lib/types/views/BoardConnectorFloatingToolbarControls.d.ts +17 -1
- package/lib/types/views/BoardConnectorQuickShapeMenu.d.ts +1 -0
- package/lib/types/views/BoardFloatingToolPanel.d.ts +1 -1
- package/lib/types/views/BoardPanelSlot.d.ts +5 -0
- package/lib/types/views/BoardRenamePopup.d.ts +9 -0
- package/lib/types/views/BoardShapeTextEditorContainer.d.ts +6 -0
- package/lib/types/views/BoardTableSizePicker.d.ts +2 -0
- package/lib/types/views/mobile/BoardMobileConnectorMenu.d.ts +17 -0
- package/lib/types/views/mobile/BoardMobileConnectorQuickShapeMenu.d.ts +3 -0
- package/lib/types/views/mobile/BoardMobileConnectorToolbar.d.ts +10 -0
- package/lib/types/views/mobile/BoardMobileImageMenu.d.ts +11 -0
- package/lib/types/views/mobile/BoardMobileObjectListPanel.d.ts +8 -0
- package/lib/types/views/mobile/BoardMobilePanelLayer.d.ts +1 -0
- package/lib/types/views/mobile/BoardMobileRenamePopup.d.ts +2 -0
- package/lib/types/views/mobile/BoardMobileShapeMenu.d.ts +14 -0
- package/lib/types/views/mobile/BoardMobileShapeTextEditor.d.ts +1 -0
- package/lib/types/views/mobile/BoardMobileShapeToolbar.d.ts +24 -0
- package/lib/types/views/mobile/BoardMobileToolPanel.d.ts +5 -0
- package/lib/types/views/mobile/BoardMobileWorkbench.d.ts +5 -0
- package/lib/types/views/mobile/BoardMobileWorkbenchHost.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +22 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4343fd=_0x540c;(function(_0x515bd6,_0x479494){const _0x365e59=_0x540c,_0x28b931=_0x515bd6();while(!![]){try{const _0x550508=-parseInt(_0x365e59(0x11d))/0x1*(parseInt(_0x365e59(0x14f))/0x2)+parseInt(_0x365e59(0x146))/0x3*(-parseInt(_0x365e59(0x102))/0x4)+parseInt(_0x365e59(0x12a))/0x5+parseInt(_0x365e59(0x116))/0x6+-parseInt(_0x365e59(0x13b))/0x7*(-parseInt(_0x365e59(0x115))/0x8)+parseInt(_0x365e59(0x160))/0x9*(-parseInt(_0x365e59(0x155))/0xa)+parseInt(_0x365e59(0xff))/0xb;if(_0x550508===_0x479494)break;else _0x28b931['push'](_0x28b931['shift']());}catch(_0x486380){_0x28b931['push'](_0x28b931['shift']());}}}(_0x3091,0x970cd));function _0x3091(){const _0x509a88=['Left\x20circular\x20arrow','Callout\x201','Border\x20callout\x203','6-point\x20star','Ribbon\x202','Heptagon','16-point\x20star','Funnel','Cloud\x20callout','Terminator','Dodecagon','Teardrop','Four-way\x20arrow\x20callout','Notched\x20right\x20arrow','Diagonal\x20snip\x20corner\x20rectangle','8-point\x20star','389320gbqYsL','4323630rnihif','7-point\x20star','Brace\x20pair','Curved\x20left\x20arrow','Decagon','Online\x20storage','Plaque\x20tabs','463jczdff','Summing\x20junction','Delay','Left\x20bracket','Down\x20arrow\x20callout','Callout\x203','Right\x20bracket','Offline\x20storage','Sound\x20button','Back\x20or\x20previous\x20button','Bent-up\x20arrow','Explosion\x201','10-point\x20star','5698310UupMys','End\x20button','Swoosh\x20arrow','Gear\x206','Accent\x20callout\x203','Square\x20tabs','Same-side\x20snip\x20corner\x20rectangle','Bracket\x20pair','Lightning\x20bolt','Left-right\x20circular\x20arrow','Heart','Bent\x20arrow','No\x20symbol','Left-right\x20arrow\x20callout','Circular\x20arrow','Up\x20arrow','Left-right-up\x20arrow','112lIvSyh','Same-side\x20round\x20corner\x20rectangle','12-point\x20star','Vertical\x20scroll','Up-down\x20arrow','Curved\x20up\x20arrow','Arc','Display','Pie','Rectangular\x20callout','Ellipse\x20ribbon','156EagKJh','Ribbon','Snip\x20and\x20round\x20corner\x20rectangle','Merge','Single\x20snip\x20corner\x20rectangle','Accent\x20border\x20callout\x203','Decision','Callout\x202','Forward\x20or\x20next\x20button','2388rcfiqa','Information\x20button','Magnetic\x20tape','Home\x20button','Wave','Movie\x20button','41710BdIsca','Gear\x209','Magnetic\x20drum','Accent\x20callout\x201','Accent\x20callout\x202','Magnetic\x20disk','Manual\x20input','Preparation','Striped\x20right\x20arrow','Double\x20wave','Extract','1197PUavLx','Chart\x20plus','Collate','Inverse\x20line','Document','Process','Input/output','Cube','Left-right\x20ribbon','Chart\x20star','24-point\x20star','Multiply','Diagonal\x20round\x20corner\x20rectangle','Corner','Bevel','Sort','Horizontal\x20scroll','Punched\x20tape','Return\x20button','Ellipse\x20ribbon\x202','Down\x20arrow','Right\x20arrow\x20callout','Minus','Left\x20arrow\x20callout','Curved\x20down\x20arrow','Frame','Sun','Not\x20equal','2282973BjjfTL','Curved\x20right\x20arrow','Internal\x20storage','86168IWhmOy','Manual\x20operation','Left-up\x20arrow'];_0x3091=function(){return _0x509a88;};return _0x3091();}const e={'snip1Rect':_0x4343fd(0x14a),'snip2SameRect':_0x4343fd(0x130),'snip2DiagRect':_0x4343fd(0x113),'snipRoundRect':_0x4343fd(0x148),'round1Rect':'Single\x20round\x20corner\x20rectangle','round2SameRect':_0x4343fd(0x13c),'round2DiagRect':_0x4343fd(0xef),'heptagon':_0x4343fd(0x10a),'decagon':_0x4343fd(0x11a),'dodecagon':_0x4343fd(0x10f),'pie':_0x4343fd(0x143),'chord':'Chord','teardrop':_0x4343fd(0x110),'frame':_0x4343fd(0xfc),'halfFrame':'Half\x20frame','corner':_0x4343fd(0xf0),'diagStripe':'Diagonal\x20stripe','plaque':'Plaque','cube':_0x4343fd(0xea),'bevel':_0x4343fd(0xf1),'donut':'Donut','noSmoking':_0x4343fd(0x136),'blockArc':'Block\x20arc','foldedCorner':'Folded\x20corner','smileyFace':'Smiley\x20face','heart':_0x4343fd(0x134),'lightningBolt':_0x4343fd(0x132),'sun':_0x4343fd(0xfd),'moon':'Moon','arc':_0x4343fd(0x141),'bracketPair':_0x4343fd(0x131),'bracePair':_0x4343fd(0x118),'leftBracket':_0x4343fd(0x120),'rightBracket':_0x4343fd(0x123),'upArrow':_0x4343fd(0x139),'downArrow':_0x4343fd(0xf7),'upDownArrow':_0x4343fd(0x13f),'quadArrow':'Four-way\x20arrow','leftRightUpArrow':_0x4343fd(0x13a),'bentArrow':_0x4343fd(0x135),'uturnArrow':'U-turn\x20arrow','leftUpArrow':_0x4343fd(0x104),'bentUpArrow':_0x4343fd(0x127),'curvedRightArrow':_0x4343fd(0x100),'curvedLeftArrow':_0x4343fd(0x119),'curvedUpArrow':_0x4343fd(0x140),'curvedDownArrow':_0x4343fd(0xfb),'stripedRightArrow':_0x4343fd(0x15d),'notchedRightArrow':_0x4343fd(0x112),'rightArrowCallout':_0x4343fd(0xf8),'downArrowCallout':_0x4343fd(0x121),'leftArrowCallout':_0x4343fd(0xfa),'upArrowCallout':'Up\x20arrow\x20callout','leftRightArrowCallout':_0x4343fd(0x137),'quadArrowCallout':_0x4343fd(0x111),'circularArrow':_0x4343fd(0x138),'mathMinus':_0x4343fd(0xf9),'mathMultiply':_0x4343fd(0xee),'mathDivide':'Divide','mathEqual':'Equal','mathNotEqual':_0x4343fd(0xfe),'flowChartProcess':_0x4343fd(0x165),'flowChartAlternateProcess':'Alternate\x20process','flowChartDecision':_0x4343fd(0x14c),'flowChartInputOutput':_0x4343fd(0xe9),'flowChartPredefinedProcess':'Predefined\x20process','flowChartInternalStorage':_0x4343fd(0x101),'flowChartDocument':_0x4343fd(0x164),'flowChartMultidocument':'Multiple\x20documents','flowChartTerminator':_0x4343fd(0x10e),'flowChartPreparation':_0x4343fd(0x15c),'flowChartManualInput':_0x4343fd(0x15b),'flowChartManualOperation':_0x4343fd(0x103),'flowChartConnector':'Connector','flowChartOffpageConnector':'Off-page\x20connector','flowChartPunchedCard':'Punched\x20card','flowChartPunchedTape':_0x4343fd(0xf4),'flowChartSummingJunction':_0x4343fd(0x11e),'flowChartOr':'Or','flowChartCollate':_0x4343fd(0x162),'flowChartSort':_0x4343fd(0xf2),'flowChartExtract':_0x4343fd(0x15f),'flowChartMerge':_0x4343fd(0x149),'flowChartOnlineStorage':_0x4343fd(0x11b),'flowChartDelay':_0x4343fd(0x11f),'flowChartMagneticTape':_0x4343fd(0x151),'flowChartMagneticDisk':_0x4343fd(0x15a),'flowChartMagneticDrum':_0x4343fd(0x157),'flowChartDisplay':_0x4343fd(0x142),'irregularSeal1':_0x4343fd(0x128),'irregularSeal2':'Explosion\x202','star4':'4-point\x20star','star6':_0x4343fd(0x108),'star7':_0x4343fd(0x117),'star8':_0x4343fd(0x114),'star10':_0x4343fd(0x129),'star12':_0x4343fd(0x13d),'star16':_0x4343fd(0x10b),'star24':_0x4343fd(0xed),'star32':'32-point\x20star','ribbon2':_0x4343fd(0x109),'ribbon':_0x4343fd(0x147),'ellipseRibbon2':_0x4343fd(0xf6),'ellipseRibbon':_0x4343fd(0x145),'verticalScroll':_0x4343fd(0x13e),'horizontalScroll':_0x4343fd(0xf3),'wave':_0x4343fd(0x153),'doubleWave':_0x4343fd(0x15e),'wedgeRectCallout':_0x4343fd(0x144),'cloudCallout':_0x4343fd(0x10d),'borderCallout1':'Border\x20callout\x201','borderCallout2':'Border\x20callout\x202','borderCallout3':_0x4343fd(0x107),'accentCallout1':_0x4343fd(0x158),'accentCallout2':_0x4343fd(0x159),'accentCallout3':_0x4343fd(0x12e),'callout1':_0x4343fd(0x106),'callout2':_0x4343fd(0x14d),'callout3':_0x4343fd(0x122),'accentBorderCallout1':'Accent\x20border\x20callout\x201','accentBorderCallout2':'Accent\x20border\x20callout\x202','accentBorderCallout3':_0x4343fd(0x14b),'leftCircularArrow':_0x4343fd(0x105),'leftRightCircularArrow':_0x4343fd(0x133),'swooshArrow':_0x4343fd(0x12c),'leftRightRibbon':_0x4343fd(0xeb),'pieWedge':'Pie\x20wedge','funnel':_0x4343fd(0x10c),'gear6':_0x4343fd(0x12d),'gear9':_0x4343fd(0x156),'cornerTabs':'Corner\x20tabs','actionButtonBackPrevious':_0x4343fd(0x126),'actionButtonForwardNext':_0x4343fd(0x14e),'actionButtonBeginning':'Beginning\x20button','actionButtonEnd':_0x4343fd(0x12b),'actionButtonHome':_0x4343fd(0x152),'actionButtonInformation':_0x4343fd(0x150),'actionButtonReturn':_0x4343fd(0xf5),'actionButtonMovie':_0x4343fd(0x154),'actionButtonDocument':'Document\x20button','actionButtonSound':_0x4343fd(0x125),'actionButtonHelp':'Help\x20button','actionButtonBlank':'Blank\x20button','chartPlus':_0x4343fd(0x161),'chartStar':_0x4343fd(0xec),'chartX':'Chart\x20X','flowChartOfflineStorage':_0x4343fd(0x124),'lineInv':_0x4343fd(0x163),'plaqueTabs':_0x4343fd(0x11c),'squareTabs':_0x4343fd(0x12f),'upDownArrowCallout':'Up-down\x20arrow\x20callout'};function _0x540c(_0x47e5c6,_0x1c3140){_0x47e5c6=_0x47e5c6-0xe9;const _0x3091f8=_0x3091();let _0x540c63=_0x3091f8[_0x47e5c6];return _0x540c63;}export{e as t};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { UnitModel } from '@univerjs/core';
|
|
2
2
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import type { IBoardCanvasPopup } from '../services/board-canvas-pop-manager.service';
|
|
3
4
|
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
5
|
import { RxDisposable } from '@univerjs/core';
|
|
5
6
|
import { BoardCanvasPopManagerService } from '../services/board-canvas-pop-manager.service';
|
|
@@ -8,22 +9,24 @@ import { IBoardInkEditService } from '../services/board-ink-edit.service';
|
|
|
8
9
|
import { BoardInteractionSurfaceService } from '../services/board-interaction-surface.service';
|
|
9
10
|
import { BoardTextEditingService } from '../services/board-text-editing.service';
|
|
10
11
|
export declare class BoardShapeFloatingToolbarRenderController extends RxDisposable implements IRenderModule {
|
|
11
|
-
|
|
12
|
+
protected readonly _renderContext: IRenderContext<UnitModel>;
|
|
12
13
|
private readonly _boardCanvasPopManagerService;
|
|
13
14
|
private readonly _boardElementService;
|
|
14
|
-
|
|
15
|
+
protected readonly _elementStateService: IBoardElementStateService;
|
|
15
16
|
private readonly _boardTextEditingService;
|
|
16
17
|
private readonly _inkEditService;
|
|
17
18
|
private readonly _interactionSurfaceService;
|
|
19
|
+
protected _editorVisible: boolean;
|
|
18
20
|
private _popupDisposable;
|
|
19
21
|
private _popupSelectionKey;
|
|
20
22
|
constructor(_renderContext: IRenderContext<UnitModel>, _boardCanvasPopManagerService: BoardCanvasPopManagerService, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _boardTextEditingService: BoardTextEditingService, _inkEditService: IBoardInkEditService, _interactionSurfaceService: BoardInteractionSurfaceService);
|
|
21
23
|
dispose(): void;
|
|
22
24
|
private _init;
|
|
23
|
-
|
|
25
|
+
protected _clearPopup(): void;
|
|
24
26
|
private _clearPopupIfSelectionChanged;
|
|
25
27
|
private _isPopupSelectionStillActive;
|
|
26
28
|
private _buildPopupSelectionKey;
|
|
27
|
-
|
|
29
|
+
protected _showPopupForSelection(): void;
|
|
30
|
+
protected _getPopupPosition(): Pick<IBoardCanvasPopup, 'direction' | 'offset'>;
|
|
28
31
|
private _resolveSelectedEntry;
|
|
29
32
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Disposable, IConfigService, Injector } from '@univerjs/core';
|
|
2
2
|
import { IUIPartsService } from '@univerjs/ui';
|
|
3
|
+
import { BoardWorkbench } from '../views/BoardWorkbench';
|
|
3
4
|
export declare class BoardUIController extends Disposable {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
protected readonly _injector: Injector;
|
|
6
|
+
protected readonly _uiPartsService: IUIPartsService;
|
|
6
7
|
private readonly _configService;
|
|
7
8
|
constructor(_injector: Injector, _uiPartsService: IUIPartsService, _configService: IConfigService);
|
|
9
|
+
protected _getWorkbenchComponent(): typeof BoardWorkbench;
|
|
8
10
|
private _initWorkbenchParts;
|
|
9
11
|
}
|
|
@@ -21,15 +21,23 @@ export declare class BoardViewportBarRenderController extends RxDisposable imple
|
|
|
21
21
|
private _viewportPointerActive;
|
|
22
22
|
private _horizontalEnabled;
|
|
23
23
|
private _verticalEnabled;
|
|
24
|
+
private _nearHorizontalEdge;
|
|
25
|
+
private _nearVerticalEdge;
|
|
26
|
+
private _scrolling;
|
|
27
|
+
private _hideTimer;
|
|
24
28
|
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _configService: IConfigService, _stateService: IBoardUIStateService, _themeService: ThemeService);
|
|
25
29
|
dispose(): void;
|
|
26
30
|
private _init;
|
|
31
|
+
private _subscribeToViewportChanges;
|
|
27
32
|
private _subscribeToWindowInputInterruptions;
|
|
28
33
|
private _createInitialObjectState;
|
|
29
34
|
private _syncTheme;
|
|
30
35
|
private _handleElementChanges;
|
|
31
36
|
private _scheduleLayoutSync;
|
|
32
37
|
private _syncLayout;
|
|
38
|
+
private _clearHideTimer;
|
|
39
|
+
private _syncBarVisibility;
|
|
40
|
+
private _updateEdgeProximity;
|
|
33
41
|
private _resolveViewportPixelSize;
|
|
34
42
|
private _resolveContentBounds;
|
|
35
43
|
private _toWorldRect;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Disposable } from '@univerjs/core';
|
|
2
2
|
import { ComponentManager } from '@univerjs/ui';
|
|
3
3
|
export declare class ComponentsController extends Disposable {
|
|
4
|
-
|
|
4
|
+
protected readonly _componentManager: ComponentManager;
|
|
5
5
|
constructor(_componentManager: ComponentManager);
|
|
6
|
-
|
|
6
|
+
protected _registerComponents(): void;
|
|
7
7
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { IBoardElementData } from '@univerjs-pro/boards';
|
|
2
|
+
import type { UnitModel } from '@univerjs/core';
|
|
3
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
4
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
5
|
+
import { ICommandService, IPermissionService, RxDisposable } from '@univerjs/core';
|
|
6
|
+
import { BoardCanvasPopManagerService } from '../../services/board-canvas-pop-manager.service';
|
|
7
|
+
import { IBoardElementStateService } from '../../services/board-element-state.service';
|
|
8
|
+
import { BoardInteractionSurfaceService } from '../../services/board-interaction-surface.service';
|
|
9
|
+
import { IBoardSidePanelService } from '../../services/board-side-panel.service';
|
|
10
|
+
import { IBoardUIStateService } from '../../services/board-ui-state.service';
|
|
11
|
+
export declare class BoardImageMobileRenderController extends RxDisposable implements IRenderModule {
|
|
12
|
+
private readonly _renderContext;
|
|
13
|
+
private readonly _elements;
|
|
14
|
+
private readonly _selection;
|
|
15
|
+
private readonly _uiState;
|
|
16
|
+
private readonly _commands;
|
|
17
|
+
private readonly _permissions;
|
|
18
|
+
private readonly _popups;
|
|
19
|
+
private readonly _surfaces;
|
|
20
|
+
private readonly _panels;
|
|
21
|
+
private _popup;
|
|
22
|
+
private _popupObject;
|
|
23
|
+
private _panelOpen;
|
|
24
|
+
private _crop;
|
|
25
|
+
private readonly _cropping$;
|
|
26
|
+
readonly cropping$: import("rxjs").Observable<boolean>;
|
|
27
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _elements: IBoardElementService, _selection: IBoardElementStateService, _uiState: IBoardUIStateService, _commands: ICommandService, _permissions: IPermissionService, _popups: BoardCanvasPopManagerService, _surfaces: BoardInteractionSurfaceService, _panels: IBoardSidePanelService);
|
|
28
|
+
get isCropping(): boolean;
|
|
29
|
+
startCrop(target: IBoardElementData): boolean;
|
|
30
|
+
applyCrop(): Promise<boolean>;
|
|
31
|
+
cancelCrop(): void;
|
|
32
|
+
dispose(): void;
|
|
33
|
+
private _image;
|
|
34
|
+
private _clearPopup;
|
|
35
|
+
private _refresh;
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { UnitModel } from '@univerjs/core';
|
|
2
|
+
import type { IRenderContext } from '@univerjs/engine-render';
|
|
3
|
+
import type { IBoardCanvasPopup } from '../../services/board-canvas-pop-manager.service';
|
|
4
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
5
|
+
import { MobileShapeEditorService } from '@univerjs-pro/shape-editor-ui';
|
|
6
|
+
import { BoardCanvasPopManagerService } from '../../services/board-canvas-pop-manager.service';
|
|
7
|
+
import { IBoardElementStateService } from '../../services/board-element-state.service';
|
|
8
|
+
import { IBoardInkEditService } from '../../services/board-ink-edit.service';
|
|
9
|
+
import { BoardInteractionSurfaceService } from '../../services/board-interaction-surface.service';
|
|
10
|
+
import { BoardTextEditingService } from '../../services/board-text-editing.service';
|
|
11
|
+
import { BoardShapeFloatingToolbarRenderController } from '../board-shape-floating-toolbar.render-controller';
|
|
12
|
+
export declare class MobileBoardShapeFloatingToolbarRenderController extends BoardShapeFloatingToolbarRenderController {
|
|
13
|
+
constructor(context: IRenderContext<UnitModel>, popups: BoardCanvasPopManagerService, elements: IBoardElementService, selection: IBoardElementStateService, editing: BoardTextEditingService, inkEditing: IBoardInkEditService, surfaces: BoardInteractionSurfaceService, mobileEditor: MobileShapeEditorService);
|
|
14
|
+
protected _getPopupPosition(): Pick<IBoardCanvasPopup, 'direction' | 'offset'>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Disposable, IConfigService, Injector } from '@univerjs/core';
|
|
2
|
+
import { IUIPartsService, IWorkbenchService } from '@univerjs/ui';
|
|
3
|
+
export declare class MobileBoardUIController extends Disposable {
|
|
4
|
+
private readonly _injector;
|
|
5
|
+
private readonly _uiPartsService;
|
|
6
|
+
private readonly _configService;
|
|
7
|
+
constructor(_injector: Injector, _uiPartsService: IUIPartsService, _configService: IConfigService, workbenchService: IWorkbenchService);
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { ComponentManager } from '@univerjs/ui';
|
|
3
|
+
export declare class MobileComponentsController extends Disposable {
|
|
4
|
+
protected readonly _componentManager: ComponentManager;
|
|
5
|
+
constructor(_componentManager: ComponentManager);
|
|
6
|
+
protected _registerComponents(): void;
|
|
7
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export type { BoardToolbarToolConfig, IBoardSettings, IBoardViewportBarConfig, I
|
|
|
13
13
|
export { BOARD_RENDER_LAYER_INDEX, BOARD_RENDER_OBJECT_Z_INDEX, } from './const';
|
|
14
14
|
export { BOARD_MAIN_VIEWPORT_KEY } from './controllers/board-render.controller';
|
|
15
15
|
export { BoardContainerContextMenuPosition, BoardElementContextMenuPosition, BoardSwimlaneLaneContextMenuPosition, } from './menu/board-contextmenu';
|
|
16
|
+
export { UniverBoardsMobileUIPlugin } from './mobile-plugin';
|
|
16
17
|
export { UniverBoardsUIPlugin } from './plugin';
|
|
17
18
|
export { BOARD_ELEMENT_RENDER_ADAPTERS, createBoardElementRenderObject, getBoardElementRenderObjectKey, parseBoardElementRenderObjectKey, syncBoardElementRenderObject, } from './render-adapters/board-element-render-adapter';
|
|
18
19
|
export type { IBoardElementRenderAdapter, IBoardElementRenderAdapterContext, IBoardElementRenderAdapterSyncContext, } from './render-adapters/board-element-render-adapter';
|
|
@@ -55,6 +56,7 @@ export type { BoardFloatingToolbarOwner, IBoardFloatingToolbarSelection, IResolv
|
|
|
55
56
|
export { resolveBoardInteractionConfig } from './utils/board-interaction-config.util';
|
|
56
57
|
export { resolveBoardElementBounds } from './utils/board-selection-geometry.util';
|
|
57
58
|
export { hitTestBoardElementAtPoint } from './utils/board-selection-hit-test.util';
|
|
59
|
+
export { isBoardShortcutAvailable } from './utils/board-shortcut-preconditions.util';
|
|
58
60
|
export { resolveBoardWheelViewportAction } from './utils/board-viewport-input.util';
|
|
59
61
|
export { getBoardPointFromClient } from './utils/board-viewport.util';
|
|
60
62
|
export type { IBoardViewportPoint } from './utils/board-viewport.util';
|
|
@@ -9,6 +9,17 @@ declare const locale: {
|
|
|
9
9
|
viewingDescription: string;
|
|
10
10
|
switchFailed: string;
|
|
11
11
|
};
|
|
12
|
+
image: {
|
|
13
|
+
edit: string;
|
|
14
|
+
crop: string;
|
|
15
|
+
width: string;
|
|
16
|
+
height: string;
|
|
17
|
+
rotation: string;
|
|
18
|
+
};
|
|
19
|
+
mobile: {
|
|
20
|
+
style: string;
|
|
21
|
+
tools: string;
|
|
22
|
+
};
|
|
12
23
|
line: {
|
|
13
24
|
title: string;
|
|
14
25
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Dependency } from '@univerjs/core';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
3
|
+
import type { IUniverBoardsUIConfig } from './config/config';
|
|
4
|
+
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
5
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
6
|
+
import { IMenuManagerService, IUIPartsService } from '@univerjs/ui';
|
|
7
|
+
export declare const BOARDS_UI_PLUGIN_NAME = "UNIVER_BOARDS_UI_PLUGIN";
|
|
8
|
+
export declare class UniverBoardsMobileUIPlugin extends Plugin {
|
|
9
|
+
private readonly _config;
|
|
10
|
+
protected readonly _injector: Injector;
|
|
11
|
+
private readonly _renderManagerService;
|
|
12
|
+
private readonly _uiPartsService;
|
|
13
|
+
private readonly _commandService;
|
|
14
|
+
private readonly _menuManagerService;
|
|
15
|
+
private readonly _configService;
|
|
16
|
+
static pluginName: string;
|
|
17
|
+
static packageName: string;
|
|
18
|
+
static version: string;
|
|
19
|
+
static type: UniverInstanceType;
|
|
20
|
+
private static readonly _runtimeScopedDependencies;
|
|
21
|
+
private static _getRuntimeScopedDependencies;
|
|
22
|
+
static getRuntimeScopedDependencies(injector: Injector): readonly Dependency[];
|
|
23
|
+
static registerRuntimeScopedDependencies(injector: Injector, dependencies: readonly Dependency[]): void;
|
|
24
|
+
constructor(_config: Partial<IUniverBoardsUIConfig> | undefined, _injector: Injector, _renderManagerService: IRenderManagerService, _uiPartsService: IUIPartsService, _commandService: ICommandService, _menuManagerService: IMenuManagerService, _configService: IConfigService);
|
|
25
|
+
onStarting(): void;
|
|
26
|
+
protected _registerShapeTextEditor(): void;
|
|
27
|
+
protected _getShapeTextEditorComponent(): ComponentType<{
|
|
28
|
+
positionRoot?: HTMLElement;
|
|
29
|
+
}>;
|
|
30
|
+
protected _getDependencies(): Dependency[];
|
|
31
|
+
private _disableBuiltinToolbar;
|
|
32
|
+
onReady(): void;
|
|
33
|
+
onRendered(): void;
|
|
34
|
+
protected _registerShapeTextFloatMenu(): void;
|
|
35
|
+
protected _getRenderModules(): Dependency[];
|
|
36
|
+
private _registerRenderModules;
|
|
37
|
+
}
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Dependency } from '@univerjs/core';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
2
3
|
import type { IUniverBoardsUIConfig } from './config/config';
|
|
3
4
|
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
4
5
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
@@ -22,8 +23,15 @@ export declare class UniverBoardsUIPlugin extends Plugin {
|
|
|
22
23
|
static registerRuntimeScopedDependencies(injector: Injector, dependencies: readonly Dependency[]): void;
|
|
23
24
|
constructor(_config: Partial<IUniverBoardsUIConfig> | undefined, _injector: Injector, _renderManagerService: IRenderManagerService, _uiPartsService: IUIPartsService, _commandService: ICommandService, _menuManagerService: IMenuManagerService, _configService: IConfigService);
|
|
24
25
|
onStarting(): void;
|
|
26
|
+
protected _registerShapeTextEditor(): void;
|
|
27
|
+
protected _getShapeTextEditorComponent(): ComponentType<{
|
|
28
|
+
positionRoot?: HTMLElement;
|
|
29
|
+
}>;
|
|
30
|
+
protected _getDependencies(): Dependency[];
|
|
25
31
|
private _disableBuiltinToolbar;
|
|
26
32
|
onReady(): void;
|
|
27
33
|
onRendered(): void;
|
|
34
|
+
protected _registerShapeTextFloatMenu(): void;
|
|
35
|
+
protected _getRenderModules(): Dependency[];
|
|
28
36
|
private _registerRenderModules;
|
|
29
37
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IObjectFullState, IViewportInfo, UniverRenderingContext } from '@univerjs/engine-render';
|
|
2
|
-
import {
|
|
2
|
+
import { Control } from '@univerjs/engine-render';
|
|
3
3
|
export declare const BOARD_ADJ_HANDLE_SIZE = 4;
|
|
4
4
|
export interface IBoardAdjustPointObjectProps extends IObjectFullState {
|
|
5
5
|
adjName: string;
|
|
@@ -8,7 +8,7 @@ export interface IBoardAdjustPointObjectProps extends IObjectFullState {
|
|
|
8
8
|
stroke?: string;
|
|
9
9
|
strokeWidth?: number;
|
|
10
10
|
}
|
|
11
|
-
export declare class BoardAdjustPointObject extends
|
|
11
|
+
export declare class BoardAdjustPointObject extends Control {
|
|
12
12
|
readonly adjName: string;
|
|
13
13
|
private readonly _handleShape;
|
|
14
14
|
private _handleStyle;
|
|
@@ -6,7 +6,7 @@ import { Disposable } from '@univerjs/core';
|
|
|
6
6
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
7
7
|
import { ICanvasPopupService } from '@univerjs/ui';
|
|
8
8
|
import { IBoardUIStateService } from './board-ui-state.service';
|
|
9
|
-
export interface IBoardCanvasPopup extends Pick<IPopup, 'componentKey' | 'direction' | 'excludeOutside' | 'hideOnInvisible' | 'offset' | 'onClickOutside'> {
|
|
9
|
+
export interface IBoardCanvasPopup extends Pick<IPopup, 'componentKey' | 'direction' | 'excludeOutside' | 'hideOnInvisible' | 'hiddenType' | 'offset' | 'onClickOutside'> {
|
|
10
10
|
anchorBoundResolver?: (targetObject: BaseObject) => IBoundRectNoAngle;
|
|
11
11
|
anchorUpdates$?: Observable<unknown>;
|
|
12
12
|
extraProps?: Record<string, unknown>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { IBoardRenamePopupProps } from '../views/BoardRenamePopup';
|
|
1
3
|
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
2
4
|
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
3
5
|
import { BoardDomLayerService } from './board-dom-layer.service';
|
|
@@ -19,5 +21,6 @@ export declare class BoardContainerRenameService extends Disposable {
|
|
|
19
21
|
close(): void;
|
|
20
22
|
openFocusedContainerRenamePopup(): boolean;
|
|
21
23
|
openContainerRenamePopup(unitId: string, subUnitId: string, containerId: string): boolean;
|
|
24
|
+
protected _createRenamePopup(props: IBoardRenamePopupProps): ReactElement;
|
|
22
25
|
private _resolveContainer;
|
|
23
26
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { IBoardRenamePopupProps } from '../views/BoardRenamePopup';
|
|
1
3
|
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
2
4
|
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
3
5
|
import { BoardDomLayerService } from './board-dom-layer.service';
|
|
@@ -17,5 +19,6 @@ export declare class BoardSwimlaneLaneRenameService extends Disposable {
|
|
|
17
19
|
dispose(): void;
|
|
18
20
|
close(): void;
|
|
19
21
|
openFocusedLaneRenamePopup(): boolean;
|
|
22
|
+
protected _createRenamePopup(props: IBoardRenamePopupProps): ReactElement;
|
|
20
23
|
private _resolveSwimlaneContainer;
|
|
21
24
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { IBoardRenamePopupProps } from '../../views/BoardRenamePopup';
|
|
3
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
|
+
import { IUniverInstanceService } from '@univerjs/core';
|
|
5
|
+
import { BoardContainerRenameService } from '../board-container-rename.service';
|
|
6
|
+
import { BoardDomLayerService } from '../board-dom-layer.service';
|
|
7
|
+
import { BoardElementEditService } from '../board-element-edit.service';
|
|
8
|
+
import { IBoardElementStateService } from '../board-element-state.service';
|
|
9
|
+
import { BoardInteractionSurfaceService } from '../board-interaction-surface.service';
|
|
10
|
+
export declare class MobileBoardContainerRenameService extends BoardContainerRenameService {
|
|
11
|
+
constructor(domLayerService: BoardDomLayerService, editService: BoardElementEditService, elementStateService: IBoardElementStateService, elementService: IBoardElementService, instanceService: IUniverInstanceService, interactionSurfaceService: BoardInteractionSurfaceService);
|
|
12
|
+
protected _createRenamePopup(props: IBoardRenamePopupProps): ReactElement;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { IBoardRenamePopupProps } from '../../views/BoardRenamePopup';
|
|
3
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
|
+
import { IUniverInstanceService } from '@univerjs/core';
|
|
5
|
+
import { BoardDomLayerService } from '../board-dom-layer.service';
|
|
6
|
+
import { BoardElementEditService } from '../board-element-edit.service';
|
|
7
|
+
import { IBoardElementStateService } from '../board-element-state.service';
|
|
8
|
+
import { BoardInteractionSurfaceService } from '../board-interaction-surface.service';
|
|
9
|
+
import { BoardSwimlaneLaneRenameService } from '../board-swimlane-lane-rename.service';
|
|
10
|
+
export declare class MobileBoardSwimlaneLaneRenameService extends BoardSwimlaneLaneRenameService {
|
|
11
|
+
constructor(domLayerService: BoardDomLayerService, editService: BoardElementEditService, elementStateService: IBoardElementStateService, elementService: IBoardElementService, instanceService: IUniverInstanceService, interactionSurfaceService: BoardInteractionSurfaceService);
|
|
12
|
+
protected _createRenamePopup(props: IBoardRenamePopupProps): ReactElement;
|
|
13
|
+
}
|
|
@@ -1,8 +1,22 @@
|
|
|
1
|
-
import type { BoardConnectorRouting, BoardConnectorStylePatch, IBoardConnectorLabel, IBoardConnectorLabelStylePatch, IBoardConnectorMarker, IBoardConnectorStyle } from '@univerjs-pro/boards';
|
|
1
|
+
import type { BoardConnectorAnimationMode, BoardConnectorRouting, BoardConnectorStylePatch, IBoardConnectorLabel, IBoardConnectorLabelStyle, IBoardConnectorLabelStylePatch, IBoardConnectorMarker, IBoardConnectorStyle } from '@univerjs-pro/boards';
|
|
2
2
|
import type { IShapeData } from '@univerjs-pro/engine-shape';
|
|
3
3
|
import type { ITextStyle } from '@univerjs/core';
|
|
4
4
|
import type { ReactNode } from 'react';
|
|
5
|
+
import type { LocaleKey } from '../locale/types';
|
|
5
6
|
import { HorizontalAlign, RichTextBuilder } from '@univerjs/core';
|
|
7
|
+
export declare const BOARD_CONNECTOR_DEFAULT_ANIMATION: {
|
|
8
|
+
readonly mode: "dash";
|
|
9
|
+
readonly direction: "forward";
|
|
10
|
+
readonly speed: 1;
|
|
11
|
+
};
|
|
12
|
+
export declare const BOARD_CONNECTOR_ANIMATION_MODE_OPTIONS: Array<{
|
|
13
|
+
mode: BoardConnectorAnimationMode;
|
|
14
|
+
labelKey: LocaleKey;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const BOARD_CONNECTOR_ANIMATION_SPEED_OPTIONS: Array<{
|
|
17
|
+
speed: number;
|
|
18
|
+
labelKey: LocaleKey;
|
|
19
|
+
}>;
|
|
6
20
|
export declare function connectorStyleToShapeStrokeData(style: IBoardConnectorStyle): IShapeData;
|
|
7
21
|
export declare function shapeStrokeToBoardConnectorStylePatch(shapeData?: IShapeData): Partial<IBoardConnectorStyle>;
|
|
8
22
|
export declare function ToolbarButton(props: {
|
|
@@ -32,6 +46,8 @@ export declare function applyConnectorRoutingStyleOption(option: {
|
|
|
32
46
|
routing: BoardConnectorRouting;
|
|
33
47
|
cornerStyle?: IBoardConnectorStyle['cornerStyle'];
|
|
34
48
|
}, onRouting: (routing: BoardConnectorRouting) => void | Promise<void>, onStyle: (style: BoardConnectorStylePatch) => void | Promise<void>): Promise<void>;
|
|
49
|
+
export declare function connectorLabelStyleToShapeData(style: IBoardConnectorLabelStyle | undefined): IShapeData;
|
|
50
|
+
export declare function resolveConnectorLabelStrokePatch(currentStyle: IBoardConnectorLabelStyle | undefined, shapeData: IShapeData | undefined): IBoardConnectorLabelStylePatch['stroke'] | undefined;
|
|
35
51
|
export declare function createConnectorLabelRichTextBuilder(label: IBoardConnectorLabel): RichTextBuilder;
|
|
36
52
|
export declare function isConnectorLabelSettingsNestedPopupTarget(target: EventTarget | null): boolean;
|
|
37
53
|
export declare function shouldCloseConnectorLabelStylePanel(panel: Element, target: EventTarget | null): boolean;
|
|
@@ -8,5 +8,6 @@ interface IBoardConnectorQuickShapeMenuProps {
|
|
|
8
8
|
extraProps?: IBoardConnectorQuickShapeMenuExtraProps;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
+
export declare function useBoardConnectorQuickShapes(): import("../common/shape-presets").IBoardShapePreset[];
|
|
11
12
|
export declare function BoardConnectorQuickShapeMenu({ popup }: IBoardConnectorQuickShapeMenuProps): import("react").JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -56,7 +56,7 @@ export declare function resolveMindMapPresetInsertTemplate(preset: IBoardMindMap
|
|
|
56
56
|
root: IResolvedBoardMindMapPresetBlueprintNode;
|
|
57
57
|
} | undefined;
|
|
58
58
|
};
|
|
59
|
-
declare const BOARD_CONTAINER_PRESETS: readonly [{
|
|
59
|
+
export declare const BOARD_CONTAINER_PRESETS: readonly [{
|
|
60
60
|
readonly key: "custom";
|
|
61
61
|
readonly labelKey: "boards-ui.panel.customContainer";
|
|
62
62
|
readonly width: 720;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { IBoardSidePanelDescriptor } from '../services/board-side-panel.service';
|
|
3
|
+
export declare function BoardPanelSlot({ value }: {
|
|
4
|
+
value: IBoardSidePanelDescriptor['children'] | IBoardSidePanelDescriptor['header'];
|
|
5
|
+
}): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
import { IContextService } from '@univerjs/core';
|
|
1
2
|
export interface IBoardRenamePopupProps {
|
|
2
3
|
kind: 'container' | 'lane';
|
|
3
4
|
initialTitle: string;
|
|
4
5
|
onCancel: () => void;
|
|
5
6
|
onSubmit: (title: string) => void | Promise<void>;
|
|
6
7
|
}
|
|
8
|
+
export declare function useBoardRenamePopup(props: IBoardRenamePopupProps): {
|
|
9
|
+
contextService: IContextService;
|
|
10
|
+
popupRef: import("react").RefObject<HTMLDivElement | null>;
|
|
11
|
+
value: string;
|
|
12
|
+
setValue: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
13
|
+
cancel: () => void;
|
|
14
|
+
submit: () => void | Promise<void>;
|
|
15
|
+
};
|
|
7
16
|
export declare function BoardRenamePopup(props: IBoardRenamePopupProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IBoardConnectorElement, IBoardElementData } from '@univerjs-pro/boards';
|
|
2
2
|
import type { ICustomShapeTextData, IShapeRect } from '@univerjs-pro/engine-shape';
|
|
3
|
+
import type { IShapeTextEditorModel } from '@univerjs-pro/shape-editor-ui';
|
|
3
4
|
import type { ITransformState, Nullable } from '@univerjs/core';
|
|
4
5
|
import type { CSSProperties } from 'react';
|
|
5
6
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
@@ -31,6 +32,11 @@ export declare function previewBoardShapeTextHostSize(options: {
|
|
|
31
32
|
width: number;
|
|
32
33
|
}): boolean;
|
|
33
34
|
export declare function getBoardShapeTextEditingContainerStyle(elementData: IBoardElementData | undefined, labelId?: string): CSSProperties | undefined;
|
|
35
|
+
export declare function createBoardShapeTextModel(options: {
|
|
36
|
+
elementData: IBoardElementData;
|
|
37
|
+
labelId?: string;
|
|
38
|
+
renderManagerService: IRenderManagerService;
|
|
39
|
+
}): IShapeTextEditorModel;
|
|
34
40
|
export declare function resolveBoardConnectorLabelTextEditorRect(rect: IShapeRect): IShapeRect;
|
|
35
41
|
export declare function resolveBoardConnectorLabelShapeTextData(element: IBoardConnectorElement, labelId?: string): ICustomShapeTextData;
|
|
36
42
|
export declare function resolveBoardShapeTextData(elementData: IBoardElementData): ICustomShapeTextData;
|
|
@@ -14,5 +14,7 @@ export interface IBoardTableSizePickerProps {
|
|
|
14
14
|
direction?: 'ltr' | 'rtl';
|
|
15
15
|
onConfirm: (size: IBoardTableSize) => void;
|
|
16
16
|
}
|
|
17
|
+
export declare const DEFAULT_MAX_ROWS = 50;
|
|
18
|
+
export declare const DEFAULT_MAX_COLUMNS = 50;
|
|
17
19
|
export declare function normalizeBoardTableSizeValue(value: number, min: number, max: number): number;
|
|
18
20
|
export declare function BoardTableSizePicker(props: IBoardTableSizePickerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { BoardConnectorRouting, BoardConnectorStylePatch, IBoardConnectorLabel, IBoardConnectorLabelStylePatch, IBoardConnectorStyle } from '@univerjs-pro/boards';
|
|
2
|
+
import type { HorizontalAlign, ITextStyle } from '@univerjs/core';
|
|
3
|
+
export declare function BoardMobileConnectorMenu(props: {
|
|
4
|
+
style: IBoardConnectorStyle;
|
|
5
|
+
routing?: BoardConnectorRouting;
|
|
6
|
+
onStyle: (style: BoardConnectorStylePatch) => Promise<void>;
|
|
7
|
+
onRouting: (routing: BoardConnectorRouting) => Promise<void>;
|
|
8
|
+
onText: () => unknown;
|
|
9
|
+
onDelete: () => unknown;
|
|
10
|
+
label?: IBoardConnectorLabel;
|
|
11
|
+
onLabelStyle: (style: IBoardConnectorLabelStylePatch) => void;
|
|
12
|
+
onLabelTextFormat: (options: {
|
|
13
|
+
horizontalAlign?: HorizontalAlign;
|
|
14
|
+
textStyle?: ITextStyle;
|
|
15
|
+
}) => void;
|
|
16
|
+
onDeleteLabel: () => void;
|
|
17
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import type { BoardConnectorQuickShapeMenu } from '../BoardConnectorQuickShapeMenu';
|
|
3
|
+
export declare function BoardMobileConnectorQuickShapeMenu({ popup }: ComponentProps<typeof BoardConnectorQuickShapeMenu>): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const BOARD_CONNECTOR_FLOATING_TOOLBAR_KEY = "board.connector.floating-toolbar";
|
|
2
|
+
export declare function BoardMobileConnectorToolbar({ popup }: {
|
|
3
|
+
popup: {
|
|
4
|
+
extraProps?: {
|
|
5
|
+
unitId: string;
|
|
6
|
+
subUnitId: string;
|
|
7
|
+
elementId: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IBoardElementData } from '@univerjs-pro/boards';
|
|
2
|
+
import type { IPopup } from '@univerjs/ui';
|
|
3
|
+
export declare const BOARD_MOBILE_IMAGE_MENU = "board.mobile.image-menu";
|
|
4
|
+
type BoardImageTarget = Pick<IBoardElementData, 'unitId' | 'subUnitId' | 'elementId'>;
|
|
5
|
+
export declare function BoardMobileImagePanel({ target }: {
|
|
6
|
+
target: BoardImageTarget;
|
|
7
|
+
}): import("react").JSX.Element | null;
|
|
8
|
+
export declare function BoardMobileImageMenu({ popup }: {
|
|
9
|
+
popup: IPopup<BoardImageTarget>;
|
|
10
|
+
}): import("react").JSX.Element | null;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface IBoardObjectListContainerProps {
|
|
3
|
+
title: string;
|
|
4
|
+
closeLabel: string;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function BoardMobileObjectListPanel(): import("react").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function BoardMobilePanelLayer(): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IShapeData } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { IShapeFloatingToolbarExtensionGroup, IShapeFloatingToolbarLayerActions } from '@univerjs-pro/shape-editor-ui';
|
|
3
|
+
import type { ComponentProps } from 'react';
|
|
4
|
+
import { MobileShapeStyleDrawer } from '@univerjs-pro/shape-editor-ui';
|
|
5
|
+
export declare function BoardMobileShapeMenu(props: {
|
|
6
|
+
shapeData?: IShapeData;
|
|
7
|
+
textStyle?: ComponentProps<typeof MobileShapeStyleDrawer>['textStyle'];
|
|
8
|
+
onUpdateText?: ComponentProps<typeof MobileShapeStyleDrawer>['onUpdateText'];
|
|
9
|
+
layerActions?: IShapeFloatingToolbarLayerActions;
|
|
10
|
+
extensionGroups: IShapeFloatingToolbarExtensionGroup[];
|
|
11
|
+
onText?: () => void;
|
|
12
|
+
onUpdate: (shapeData: IShapeData) => unknown;
|
|
13
|
+
onDelete: () => unknown;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function BoardMobileShapeTextEditor(): import("react").JSX.Element | null;
|