dockview-core 7.0.4 → 8.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.
Files changed (374) hide show
  1. package/LICENCE.md +21 -0
  2. package/README.md +17 -86
  3. package/dist/cjs/api/component.api.d.ts +100 -9
  4. package/dist/cjs/api/dockviewGroupPanelApi.d.ts +45 -1
  5. package/dist/cjs/api/dockviewPanelApi.d.ts +21 -0
  6. package/dist/cjs/dismissableLayer.d.ts +57 -0
  7. package/dist/cjs/dnd/backend.d.ts +2 -2
  8. package/dist/cjs/dnd/dropTargetAnchorContainer.d.ts +12 -0
  9. package/dist/cjs/dnd/droptarget.d.ts +94 -0
  10. package/dist/cjs/dnd/ghost.d.ts +1 -0
  11. package/dist/cjs/dnd/pointer/longPress.d.ts +2 -2
  12. package/dist/cjs/dnd/pointer/pointerDragController.d.ts +5 -2
  13. package/dist/cjs/dnd/pointer/pointerDragSource.d.ts +1 -1
  14. package/dist/cjs/dnd/pointer/pointerDropTarget.d.ts +30 -1
  15. package/dist/cjs/dnd/pointer/pointerGhost.d.ts +1 -1
  16. package/dist/cjs/dockview/accessibilityMessages.d.ts +6 -0
  17. package/dist/cjs/dockview/advancedDnDService.d.ts +46 -0
  18. package/dist/cjs/dockview/components/panel/content.d.ts +1 -1
  19. package/dist/cjs/dockview/components/tab/defaultTab.d.ts +2 -0
  20. package/dist/cjs/dockview/components/tab/tab.d.ts +2 -0
  21. package/dist/cjs/dockview/components/titlebar/floatingTitleBar.d.ts +2 -2
  22. package/dist/cjs/dockview/components/titlebar/groupDragSource.d.ts +1 -1
  23. package/dist/cjs/dockview/components/titlebar/tabGroupChip.d.ts +1 -1
  24. package/dist/cjs/dockview/components/titlebar/tabGroupIndicator.d.ts +73 -2
  25. package/dist/cjs/dockview/components/titlebar/tabGroups.d.ts +1 -1
  26. package/dist/cjs/dockview/components/titlebar/tabReorderController.d.ts +295 -0
  27. package/dist/cjs/dockview/components/titlebar/tabs.d.ts +120 -50
  28. package/dist/cjs/dockview/components/titlebar/tabsContainer.d.ts +48 -0
  29. package/dist/cjs/dockview/dndCapabilities.d.ts +1 -1
  30. package/dist/cjs/dockview/dockviewComponent.d.ts +303 -19
  31. package/dist/cjs/dockview/dockviewGroupPanel.d.ts +5 -0
  32. package/dist/cjs/dockview/dockviewGroupPanelModel.d.ts +52 -2
  33. package/dist/cjs/dockview/dockviewPanel.d.ts +12 -0
  34. package/dist/cjs/dockview/dockviewShell.d.ts +48 -24
  35. package/dist/cjs/dockview/edgeGroupService.d.ts +20 -0
  36. package/dist/cjs/dockview/events.d.ts +6 -0
  37. package/dist/cjs/dockview/liveRegionService.d.ts +18 -5
  38. package/dist/cjs/dockview/moduleContracts.d.ts +480 -14
  39. package/dist/cjs/dockview/modules.d.ts +101 -22
  40. package/dist/cjs/dockview/options.d.ts +337 -30
  41. package/dist/cjs/dockview/optionsModules.d.ts +73 -0
  42. package/dist/cjs/dockview/popoutWindowService.d.ts +15 -10
  43. package/dist/cjs/dockview/rootDropTargetService.d.ts +11 -0
  44. package/dist/cjs/dockview/tabGroupAccent.d.ts +1 -1
  45. package/dist/cjs/dockview/tabGroupChipsService.d.ts +10 -0
  46. package/dist/cjs/dockview/theme.d.ts +2 -2
  47. package/dist/cjs/dockview/types.d.ts +3 -0
  48. package/dist/cjs/dom.d.ts +9 -1
  49. package/dist/cjs/gridview/baseComponentGridview.d.ts +2 -2
  50. package/dist/cjs/gridview/gridview.d.ts +2 -0
  51. package/dist/cjs/index.d.ts +35 -29
  52. package/dist/cjs/lifecycle.d.ts +1 -0
  53. package/dist/cjs/overlay/overlay.d.ts +4 -2
  54. package/dist/cjs/overlay/overlayRenderContainer.d.ts +8 -0
  55. package/dist/cjs/paneview/paneview.d.ts +2 -1
  56. package/dist/cjs/paneview/paneviewComponent.d.ts +3 -0
  57. package/dist/cjs/paneview/paneviewPanel.d.ts +5 -0
  58. package/dist/cjs/svg.d.ts +1 -0
  59. package/dist/cjs/types.d.ts +8 -0
  60. package/dist/dockview-core.js +18391 -19679
  61. package/dist/dockview-core.min.js +4138 -6
  62. package/dist/dockview-core.min.noStyle.js +6 -7
  63. package/dist/dockview-core.noStyle.js +18390 -19656
  64. package/dist/package/main.cjs.js +18002 -19268
  65. package/dist/package/main.cjs.min.js +6 -6
  66. package/dist/package/main.esm.min.mjs +6 -6
  67. package/dist/package/main.esm.mjs +17959 -19260
  68. package/package.json +81 -77
  69. package/dist/cjs/api/component.api.js +0 -1242
  70. package/dist/cjs/api/dockviewGroupPanelApi.js +0 -200
  71. package/dist/cjs/api/dockviewPanelApi.js +0 -172
  72. package/dist/cjs/api/entryPoints.js +0 -27
  73. package/dist/cjs/api/gridviewPanelApi.js +0 -45
  74. package/dist/cjs/api/panelApi.js +0 -133
  75. package/dist/cjs/api/paneviewPanelApi.js +0 -57
  76. package/dist/cjs/api/splitviewPanelApi.js +0 -47
  77. package/dist/cjs/array.js +0 -66
  78. package/dist/cjs/constants.js +0 -11
  79. package/dist/cjs/dnd/backend.js +0 -171
  80. package/dist/cjs/dnd/dataTransfer.js +0 -100
  81. package/dist/cjs/dnd/dnd.js +0 -74
  82. package/dist/cjs/dnd/dropOverlay.js +0 -197
  83. package/dist/cjs/dnd/dropTargetAnchorContainer.js +0 -104
  84. package/dist/cjs/dnd/droptarget.js +0 -362
  85. package/dist/cjs/dnd/ghost.js +0 -17
  86. package/dist/cjs/dnd/pointer/index.js +0 -13
  87. package/dist/cjs/dnd/pointer/longPress.js +0 -151
  88. package/dist/cjs/dnd/pointer/pointerDragController.js +0 -243
  89. package/dist/cjs/dnd/pointer/pointerDragSource.js +0 -197
  90. package/dist/cjs/dnd/pointer/pointerDropTarget.js +0 -198
  91. package/dist/cjs/dnd/pointer/pointerGhost.js +0 -44
  92. package/dist/cjs/dnd/pointer/types.js +0 -2
  93. package/dist/cjs/dockview/accessibilityMessages.js +0 -51
  94. package/dist/cjs/dockview/allModules.js +0 -25
  95. package/dist/cjs/dockview/components/panel/content.js +0 -213
  96. package/dist/cjs/dockview/components/popupService.js +0 -132
  97. package/dist/cjs/dockview/components/tab/defaultTab.js +0 -70
  98. package/dist/cjs/dockview/components/tab/tab.js +0 -281
  99. package/dist/cjs/dockview/components/titlebar/floatingTitleBar.js +0 -95
  100. package/dist/cjs/dockview/components/titlebar/groupDragSource.js +0 -218
  101. package/dist/cjs/dockview/components/titlebar/tabGroupChip.js +0 -104
  102. package/dist/cjs/dockview/components/titlebar/tabGroupIndicator.js +0 -477
  103. package/dist/cjs/dockview/components/titlebar/tabGroups.js +0 -854
  104. package/dist/cjs/dockview/components/titlebar/tabOverflowControl.js +0 -19
  105. package/dist/cjs/dockview/components/titlebar/tabs.js +0 -2016
  106. package/dist/cjs/dockview/components/titlebar/tabsContainer.js +0 -458
  107. package/dist/cjs/dockview/components/titlebar/voidContainer.js +0 -120
  108. package/dist/cjs/dockview/components/watermark/watermark.js +0 -40
  109. package/dist/cjs/dockview/deserializer.js +0 -39
  110. package/dist/cjs/dockview/dndCapabilities.js +0 -39
  111. package/dist/cjs/dockview/dockviewComponent.js +0 -3896
  112. package/dist/cjs/dockview/dockviewFloatingGroupPanel.js +0 -70
  113. package/dist/cjs/dockview/dockviewGroupPanel.js +0 -204
  114. package/dist/cjs/dockview/dockviewGroupPanelModel.js +0 -1514
  115. package/dist/cjs/dockview/dockviewPanel.js +0 -265
  116. package/dist/cjs/dockview/dockviewPanelModel.js +0 -105
  117. package/dist/cjs/dockview/dockviewShell.js +0 -744
  118. package/dist/cjs/dockview/edgeGroupService.js +0 -128
  119. package/dist/cjs/dockview/events.js +0 -67
  120. package/dist/cjs/dockview/floatingGroupService.js +0 -231
  121. package/dist/cjs/dockview/framework.js +0 -2
  122. package/dist/cjs/dockview/headerActionsService.js +0 -149
  123. package/dist/cjs/dockview/liveRegionService.js +0 -185
  124. package/dist/cjs/dockview/moduleContracts.js +0 -2
  125. package/dist/cjs/dockview/modules.js +0 -304
  126. package/dist/cjs/dockview/options.js +0 -103
  127. package/dist/cjs/dockview/popoutWindowService.js +0 -261
  128. package/dist/cjs/dockview/rootDropTargetService.js +0 -87
  129. package/dist/cjs/dockview/strictEventsSequencing.js +0 -63
  130. package/dist/cjs/dockview/tabGroup.js +0 -219
  131. package/dist/cjs/dockview/tabGroupAccent.js +0 -126
  132. package/dist/cjs/dockview/theme.js +0 -139
  133. package/dist/cjs/dockview/types.js +0 -2
  134. package/dist/cjs/dockview/validate.js +0 -76
  135. package/dist/cjs/dockview/watermarkService.js +0 -61
  136. package/dist/cjs/dom.js +0 -543
  137. package/dist/cjs/events.js +0 -296
  138. package/dist/cjs/framwork.js +0 -2
  139. package/dist/cjs/gridview/baseComponentGridview.js +0 -330
  140. package/dist/cjs/gridview/basePanelView.js +0 -162
  141. package/dist/cjs/gridview/branchNode.js +0 -372
  142. package/dist/cjs/gridview/gridview.js +0 -776
  143. package/dist/cjs/gridview/gridviewComponent.js +0 -363
  144. package/dist/cjs/gridview/gridviewPanel.js +0 -249
  145. package/dist/cjs/gridview/leafNode.js +0 -169
  146. package/dist/cjs/gridview/options.js +0 -17
  147. package/dist/cjs/gridview/types.js +0 -2
  148. package/dist/cjs/index.js +0 -105
  149. package/dist/cjs/lifecycle.js +0 -80
  150. package/dist/cjs/math.js +0 -38
  151. package/dist/cjs/overlay/overlay.js +0 -602
  152. package/dist/cjs/overlay/overlayRenderContainer.js +0 -309
  153. package/dist/cjs/panel/types.js +0 -2
  154. package/dist/cjs/paneview/defaultPaneviewHeader.js +0 -92
  155. package/dist/cjs/paneview/draggablePaneviewPanel.js +0 -141
  156. package/dist/cjs/paneview/options.js +0 -44
  157. package/dist/cjs/paneview/paneview.js +0 -203
  158. package/dist/cjs/paneview/paneviewComponent.js +0 -430
  159. package/dist/cjs/paneview/paneviewPanel.js +0 -275
  160. package/dist/cjs/popoutWindow.js +0 -244
  161. package/dist/cjs/resizable.js +0 -97
  162. package/dist/cjs/scrollbar.js +0 -169
  163. package/dist/cjs/splitview/options.js +0 -19
  164. package/dist/cjs/splitview/splitview.js +0 -999
  165. package/dist/cjs/splitview/splitviewComponent.js +0 -401
  166. package/dist/cjs/splitview/splitviewPanel.js +0 -179
  167. package/dist/cjs/splitview/viewItem.js +0 -119
  168. package/dist/cjs/svg.js +0 -43
  169. package/dist/cjs/types.js +0 -2
  170. package/dist/dockview-core.min.js.map +0 -1
  171. package/dist/dockview-core.min.noStyle.js.map +0 -1
  172. package/dist/esm/api/component.api.d.ts +0 -640
  173. package/dist/esm/api/component.api.js +0 -887
  174. package/dist/esm/api/dockviewGroupPanelApi.d.ts +0 -109
  175. package/dist/esm/api/dockviewGroupPanelApi.js +0 -155
  176. package/dist/esm/api/dockviewPanelApi.d.ts +0 -84
  177. package/dist/esm/api/dockviewPanelApi.js +0 -124
  178. package/dist/esm/api/entryPoints.d.ts +0 -9
  179. package/dist/esm/api/entryPoints.js +0 -21
  180. package/dist/esm/api/gridviewPanelApi.d.ts +0 -37
  181. package/dist/esm/api/gridviewPanelApi.js +0 -23
  182. package/dist/esm/api/panelApi.d.ts +0 -100
  183. package/dist/esm/api/panelApi.js +0 -87
  184. package/dist/esm/api/paneviewPanelApi.d.ts +0 -26
  185. package/dist/esm/api/paneviewPanelApi.js +0 -27
  186. package/dist/esm/api/splitviewPanelApi.d.ts +0 -32
  187. package/dist/esm/api/splitviewPanelApi.js +0 -25
  188. package/dist/esm/array.d.ts +0 -13
  189. package/dist/esm/array.js +0 -57
  190. package/dist/esm/constants.d.ts +0 -8
  191. package/dist/esm/constants.js +0 -8
  192. package/dist/esm/dnd/backend.d.ts +0 -70
  193. package/dist/esm/dnd/backend.js +0 -148
  194. package/dist/esm/dnd/dataTransfer.d.ts +0 -31
  195. package/dist/esm/dnd/dataTransfer.js +0 -67
  196. package/dist/esm/dnd/dnd.d.ts +0 -32
  197. package/dist/esm/dnd/dnd.js +0 -51
  198. package/dist/esm/dnd/dropOverlay.d.ts +0 -20
  199. package/dist/esm/dnd/dropOverlay.js +0 -192
  200. package/dist/esm/dnd/dropTargetAnchorContainer.d.ts +0 -16
  201. package/dist/esm/dnd/dropTargetAnchorContainer.js +0 -73
  202. package/dist/esm/dnd/droptarget.d.ts +0 -116
  203. package/dist/esm/dnd/droptarget.js +0 -316
  204. package/dist/esm/dnd/ghost.d.ts +0 -4
  205. package/dist/esm/dnd/ghost.js +0 -14
  206. package/dist/esm/dnd/pointer/index.d.ts +0 -11
  207. package/dist/esm/dnd/pointer/index.js +0 -5
  208. package/dist/esm/dnd/pointer/longPress.d.ts +0 -32
  209. package/dist/esm/dnd/pointer/longPress.js +0 -127
  210. package/dist/esm/dnd/pointer/pointerDragController.d.ts +0 -60
  211. package/dist/esm/dnd/pointer/pointerDragController.js +0 -193
  212. package/dist/esm/dnd/pointer/pointerDragSource.d.ts +0 -61
  213. package/dist/esm/dnd/pointer/pointerDragSource.js +0 -173
  214. package/dist/esm/dnd/pointer/pointerDropTarget.d.ts +0 -39
  215. package/dist/esm/dnd/pointer/pointerDropTarget.js +0 -168
  216. package/dist/esm/dnd/pointer/pointerGhost.d.ts +0 -30
  217. package/dist/esm/dnd/pointer/pointerGhost.js +0 -39
  218. package/dist/esm/dnd/pointer/types.d.ts +0 -16
  219. package/dist/esm/dnd/pointer/types.js +0 -1
  220. package/dist/esm/dockview/accessibilityMessages.d.ts +0 -32
  221. package/dist/esm/dockview/accessibilityMessages.js +0 -30
  222. package/dist/esm/dockview/allModules.d.ts +0 -8
  223. package/dist/esm/dockview/allModules.js +0 -22
  224. package/dist/esm/dockview/components/panel/content.d.ts +0 -54
  225. package/dist/esm/dockview/components/panel/content.js +0 -185
  226. package/dist/esm/dockview/components/popupService.d.ts +0 -21
  227. package/dist/esm/dockview/components/popupService.js +0 -108
  228. package/dist/esm/dockview/components/tab/defaultTab.d.ts +0 -12
  229. package/dist/esm/dockview/components/tab/defaultTab.js +0 -43
  230. package/dist/esm/dockview/components/tab/tab.d.ts +0 -44
  231. package/dist/esm/dockview/components/tab/tab.js +0 -242
  232. package/dist/esm/dockview/components/titlebar/floatingTitleBar.d.ts +0 -34
  233. package/dist/esm/dockview/components/titlebar/floatingTitleBar.js +0 -65
  234. package/dist/esm/dockview/components/titlebar/groupDragSource.d.ts +0 -51
  235. package/dist/esm/dockview/components/titlebar/groupDragSource.js +0 -178
  236. package/dist/esm/dockview/components/titlebar/tabGroupChip.d.ts +0 -37
  237. package/dist/esm/dockview/components/titlebar/tabGroupChip.js +0 -77
  238. package/dist/esm/dockview/components/titlebar/tabGroupIndicator.d.ts +0 -72
  239. package/dist/esm/dockview/components/titlebar/tabGroupIndicator.js +0 -360
  240. package/dist/esm/dockview/components/titlebar/tabGroups.d.ts +0 -107
  241. package/dist/esm/dockview/components/titlebar/tabGroups.js +0 -621
  242. package/dist/esm/dockview/components/titlebar/tabOverflowControl.d.ts +0 -8
  243. package/dist/esm/dockview/components/titlebar/tabOverflowControl.js +0 -16
  244. package/dist/esm/dockview/components/titlebar/tabs.d.ts +0 -167
  245. package/dist/esm/dockview/components/titlebar/tabs.js +0 -1653
  246. package/dist/esm/dockview/components/titlebar/tabsContainer.d.ts +0 -104
  247. package/dist/esm/dockview/components/titlebar/tabsContainer.js +0 -359
  248. package/dist/esm/dockview/components/titlebar/voidContainer.d.ts +0 -21
  249. package/dist/esm/dockview/components/titlebar/voidContainer.js +0 -92
  250. package/dist/esm/dockview/components/watermark/watermark.d.ts +0 -8
  251. package/dist/esm/dockview/components/watermark/watermark.js +0 -14
  252. package/dist/esm/dockview/deserializer.d.ts +0 -12
  253. package/dist/esm/dockview/deserializer.js +0 -34
  254. package/dist/esm/dockview/dndCapabilities.d.ts +0 -19
  255. package/dist/esm/dockview/dndCapabilities.js +0 -36
  256. package/dist/esm/dockview/dockviewComponent.d.ts +0 -626
  257. package/dist/esm/dockview/dockviewComponent.js +0 -3214
  258. package/dist/esm/dockview/dockviewFloatingGroupPanel.d.ts +0 -45
  259. package/dist/esm/dockview/dockviewFloatingGroupPanel.js +0 -44
  260. package/dist/esm/dockview/dockviewGroupPanel.d.ts +0 -35
  261. package/dist/esm/dockview/dockviewGroupPanel.js +0 -142
  262. package/dist/esm/dockview/dockviewGroupPanelModel.d.ts +0 -358
  263. package/dist/esm/dockview/dockviewGroupPanelModel.js +0 -1180
  264. package/dist/esm/dockview/dockviewPanel.d.ts +0 -69
  265. package/dist/esm/dockview/dockviewPanel.js +0 -178
  266. package/dist/esm/dockview/dockviewPanelModel.d.ts +0 -37
  267. package/dist/esm/dockview/dockviewPanelModel.js +0 -81
  268. package/dist/esm/dockview/dockviewShell.d.ts +0 -150
  269. package/dist/esm/dockview/dockviewShell.js +0 -678
  270. package/dist/esm/dockview/edgeGroupService.d.ts +0 -38
  271. package/dist/esm/dockview/edgeGroupService.js +0 -63
  272. package/dist/esm/dockview/events.d.ts +0 -38
  273. package/dist/esm/dockview/events.js +0 -34
  274. package/dist/esm/dockview/floatingGroupService.d.ts +0 -37
  275. package/dist/esm/dockview/floatingGroupService.js +0 -150
  276. package/dist/esm/dockview/framework.d.ts +0 -65
  277. package/dist/esm/dockview/framework.js +0 -1
  278. package/dist/esm/dockview/headerActionsService.d.ts +0 -32
  279. package/dist/esm/dockview/headerActionsService.js +0 -86
  280. package/dist/esm/dockview/liveRegionService.d.ts +0 -53
  281. package/dist/esm/dockview/liveRegionService.js +0 -159
  282. package/dist/esm/dockview/moduleContracts.d.ts +0 -119
  283. package/dist/esm/dockview/moduleContracts.js +0 -1
  284. package/dist/esm/dockview/modules.d.ts +0 -110
  285. package/dist/esm/dockview/modules.js +0 -170
  286. package/dist/esm/dockview/options.d.ts +0 -474
  287. package/dist/esm/dockview/options.js +0 -77
  288. package/dist/esm/dockview/popoutWindowService.d.ts +0 -95
  289. package/dist/esm/dockview/popoutWindowService.js +0 -175
  290. package/dist/esm/dockview/rootDropTargetService.d.ts +0 -35
  291. package/dist/esm/dockview/rootDropTargetService.js +0 -82
  292. package/dist/esm/dockview/strictEventsSequencing.d.ts +0 -7
  293. package/dist/esm/dockview/strictEventsSequencing.js +0 -41
  294. package/dist/esm/dockview/tabGroup.d.ts +0 -99
  295. package/dist/esm/dockview/tabGroup.js +0 -144
  296. package/dist/esm/dockview/tabGroupAccent.d.ts +0 -65
  297. package/dist/esm/dockview/tabGroupAccent.js +0 -114
  298. package/dist/esm/dockview/theme.d.ts +0 -86
  299. package/dist/esm/dockview/theme.js +0 -136
  300. package/dist/esm/dockview/types.d.ts +0 -53
  301. package/dist/esm/dockview/types.js +0 -1
  302. package/dist/esm/dockview/validate.d.ts +0 -0
  303. package/dist/esm/dockview/validate.js +0 -76
  304. package/dist/esm/dockview/watermarkService.d.ts +0 -30
  305. package/dist/esm/dockview/watermarkService.js +0 -56
  306. package/dist/esm/dom.d.ts +0 -60
  307. package/dist/esm/dom.js +0 -375
  308. package/dist/esm/events.d.ts +0 -79
  309. package/dist/esm/events.js +0 -219
  310. package/dist/esm/framwork.d.ts +0 -4
  311. package/dist/esm/framwork.js +0 -1
  312. package/dist/esm/gridview/baseComponentGridview.d.ts +0 -111
  313. package/dist/esm/gridview/baseComponentGridview.js +0 -237
  314. package/dist/esm/gridview/basePanelView.d.ts +0 -40
  315. package/dist/esm/gridview/basePanelView.js +0 -91
  316. package/dist/esm/gridview/branchNode.d.ts +0 -57
  317. package/dist/esm/gridview/branchNode.js +0 -257
  318. package/dist/esm/gridview/gridview.d.ts +0 -158
  319. package/dist/esm/gridview/gridview.js +0 -681
  320. package/dist/esm/gridview/gridviewComponent.d.ts +0 -88
  321. package/dist/esm/gridview/gridviewComponent.js +0 -265
  322. package/dist/esm/gridview/gridviewPanel.d.ts +0 -77
  323. package/dist/esm/gridview/gridviewPanel.js +0 -182
  324. package/dist/esm/gridview/leafNode.d.ts +0 -34
  325. package/dist/esm/gridview/leafNode.js +0 -102
  326. package/dist/esm/gridview/options.d.ts +0 -15
  327. package/dist/esm/gridview/options.js +0 -14
  328. package/dist/esm/gridview/types.d.ts +0 -3
  329. package/dist/esm/gridview/types.js +0 -1
  330. package/dist/esm/index.d.ts +0 -58
  331. package/dist/esm/index.js +0 -44
  332. package/dist/esm/lifecycle.d.ts +0 -25
  333. package/dist/esm/lifecycle.js +0 -56
  334. package/dist/esm/math.d.ts +0 -5
  335. package/dist/esm/math.js +0 -32
  336. package/dist/esm/overlay/overlay.d.ts +0 -91
  337. package/dist/esm/overlay/overlay.js +0 -520
  338. package/dist/esm/overlay/overlayRenderContainer.d.ts +0 -24
  339. package/dist/esm/overlay/overlayRenderContainer.js +0 -249
  340. package/dist/esm/panel/types.d.ts +0 -33
  341. package/dist/esm/panel/types.js +0 -1
  342. package/dist/esm/paneview/defaultPaneviewHeader.d.ts +0 -21
  343. package/dist/esm/paneview/defaultPaneviewHeader.js +0 -65
  344. package/dist/esm/paneview/draggablePaneviewPanel.d.ts +0 -38
  345. package/dist/esm/paneview/draggablePaneviewPanel.js +0 -107
  346. package/dist/esm/paneview/options.d.ts +0 -30
  347. package/dist/esm/paneview/options.js +0 -22
  348. package/dist/esm/paneview/paneview.d.ts +0 -41
  349. package/dist/esm/paneview/paneview.js +0 -148
  350. package/dist/esm/paneview/paneviewComponent.d.ts +0 -133
  351. package/dist/esm/paneview/paneviewComponent.js +0 -306
  352. package/dist/esm/paneview/paneviewPanel.d.ts +0 -98
  353. package/dist/esm/paneview/paneviewPanel.js +0 -192
  354. package/dist/esm/popoutWindow.d.ts +0 -38
  355. package/dist/esm/popoutWindow.js +0 -170
  356. package/dist/esm/resizable.d.ts +0 -12
  357. package/dist/esm/resizable.js +0 -66
  358. package/dist/esm/scrollbar.d.ts +0 -15
  359. package/dist/esm/scrollbar.js +0 -139
  360. package/dist/esm/splitview/options.d.ts +0 -21
  361. package/dist/esm/splitview/options.js +0 -16
  362. package/dist/esm/splitview/splitview.d.ts +0 -145
  363. package/dist/esm/splitview/splitview.js +0 -770
  364. package/dist/esm/splitview/splitviewComponent.d.ts +0 -101
  365. package/dist/esm/splitview/splitviewComponent.js +0 -267
  366. package/dist/esm/splitview/splitviewPanel.d.ts +0 -45
  367. package/dist/esm/splitview/splitviewPanel.js +0 -108
  368. package/dist/esm/splitview/viewItem.d.ts +0 -25
  369. package/dist/esm/splitview/viewItem.js +0 -74
  370. package/dist/esm/svg.d.ts +0 -3
  371. package/dist/esm/svg.js +0 -31
  372. package/dist/esm/types.d.ts +0 -31
  373. package/dist/esm/types.js +0 -1
  374. package/dist/styles/dockview.css +0 -3436
@@ -1,887 +0,0 @@
1
- export class SplitviewApi {
2
- /**
3
- * The minimum size the component can reach where size is measured in the direction of orientation provided.
4
- */
5
- get minimumSize() {
6
- return this.component.minimumSize;
7
- }
8
- /**
9
- * The maximum size the component can reach where size is measured in the direction of orientation provided.
10
- */
11
- get maximumSize() {
12
- return this.component.maximumSize;
13
- }
14
- /**
15
- * Width of the component.
16
- */
17
- get width() {
18
- return this.component.width;
19
- }
20
- /**
21
- * Height of the component.
22
- */
23
- get height() {
24
- return this.component.height;
25
- }
26
- /**
27
- * The current number of panels.
28
- */
29
- get length() {
30
- return this.component.length;
31
- }
32
- /**
33
- * The current orientation of the component.
34
- */
35
- get orientation() {
36
- return this.component.orientation;
37
- }
38
- /**
39
- * The list of current panels.
40
- */
41
- get panels() {
42
- return this.component.panels;
43
- }
44
- /**
45
- * Invoked after a layout is loaded through the `fromJSON` method.
46
- */
47
- get onDidLayoutFromJSON() {
48
- return this.component.onDidLayoutFromJSON;
49
- }
50
- /**
51
- * Invoked whenever any aspect of the layout changes.
52
- * If listening to this event it may be worth debouncing ouputs.
53
- */
54
- get onDidLayoutChange() {
55
- return this.component.onDidLayoutChange;
56
- }
57
- /**
58
- * Invoked when a view is added.
59
- */
60
- get onDidAddView() {
61
- return this.component.onDidAddView;
62
- }
63
- /**
64
- * Invoked when a view is removed.
65
- */
66
- get onDidRemoveView() {
67
- return this.component.onDidRemoveView;
68
- }
69
- constructor(component) {
70
- this.component = component;
71
- }
72
- /**
73
- * Removes an existing panel and optionally provide a `Sizing` method
74
- * for the subsequent resize.
75
- */
76
- removePanel(panel, sizing) {
77
- this.component.removePanel(panel, sizing);
78
- }
79
- /**
80
- * Focus the component.
81
- */
82
- focus() {
83
- this.component.focus();
84
- }
85
- /**
86
- * Get the reference to a panel given it's `string` id.
87
- */
88
- getPanel(id) {
89
- return this.component.getPanel(id);
90
- }
91
- /**
92
- * Layout the panel with a width and height.
93
- */
94
- layout(width, height) {
95
- return this.component.layout(width, height);
96
- }
97
- /**
98
- * Add a new panel and return the created instance.
99
- */
100
- addPanel(options) {
101
- return this.component.addPanel(options);
102
- }
103
- /**
104
- * Move a panel given it's current and desired index.
105
- */
106
- movePanel(from, to) {
107
- this.component.movePanel(from, to);
108
- }
109
- /**
110
- * Deserialize a layout to built a splitivew.
111
- */
112
- fromJSON(data) {
113
- this.component.fromJSON(data);
114
- }
115
- /** Serialize a layout */
116
- toJSON() {
117
- return this.component.toJSON();
118
- }
119
- /**
120
- * Remove all panels and clear the component.
121
- */
122
- clear() {
123
- this.component.clear();
124
- }
125
- /**
126
- * Update configuratable options.
127
- */
128
- updateOptions(options) {
129
- this.component.updateOptions(options);
130
- }
131
- /**
132
- * Release resources and teardown component. Do not call when using framework versions of dockview.
133
- */
134
- dispose() {
135
- this.component.dispose();
136
- }
137
- }
138
- export class PaneviewApi {
139
- /**
140
- * The minimum size the component can reach where size is measured in the direction of orientation provided.
141
- */
142
- get minimumSize() {
143
- return this.component.minimumSize;
144
- }
145
- /**
146
- * The maximum size the component can reach where size is measured in the direction of orientation provided.
147
- */
148
- get maximumSize() {
149
- return this.component.maximumSize;
150
- }
151
- /**
152
- * Width of the component.
153
- */
154
- get width() {
155
- return this.component.width;
156
- }
157
- /**
158
- * Height of the component.
159
- */
160
- get height() {
161
- return this.component.height;
162
- }
163
- /**
164
- * All panel objects.
165
- */
166
- get panels() {
167
- return this.component.panels;
168
- }
169
- /**
170
- * Invoked when any layout change occures, an aggregation of many events.
171
- */
172
- get onDidLayoutChange() {
173
- return this.component.onDidLayoutChange;
174
- }
175
- /**
176
- * Invoked after a layout is deserialzied using the `fromJSON` method.
177
- */
178
- get onDidLayoutFromJSON() {
179
- return this.component.onDidLayoutFromJSON;
180
- }
181
- /**
182
- * Invoked when a panel is added. May be called multiple times when moving panels.
183
- */
184
- get onDidAddView() {
185
- return this.component.onDidAddView;
186
- }
187
- /**
188
- * Invoked when a panel is removed. May be called multiple times when moving panels.
189
- */
190
- get onDidRemoveView() {
191
- return this.component.onDidRemoveView;
192
- }
193
- /**
194
- * Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality.
195
- */
196
- get onDidDrop() {
197
- return this.component.onDidDrop;
198
- }
199
- get onUnhandledDragOver() {
200
- return this.component.onUnhandledDragOver;
201
- }
202
- constructor(component) {
203
- this.component = component;
204
- }
205
- /**
206
- * Remove a panel given the panel object.
207
- */
208
- removePanel(panel) {
209
- this.component.removePanel(panel);
210
- }
211
- /**
212
- * Get a panel object given a `string` id. May return `undefined`.
213
- */
214
- getPanel(id) {
215
- return this.component.getPanel(id);
216
- }
217
- /**
218
- * Move a panel given it's current and desired index.
219
- */
220
- movePanel(from, to) {
221
- this.component.movePanel(from, to);
222
- }
223
- /**
224
- * Focus the component. Will try to focus an active panel if one exists.
225
- */
226
- focus() {
227
- this.component.focus();
228
- }
229
- /**
230
- * Force resize the component to an exact width and height. Read about auto-resizing before using.
231
- */
232
- layout(width, height) {
233
- this.component.layout(width, height);
234
- }
235
- /**
236
- * Add a panel and return the created object.
237
- */
238
- addPanel(options) {
239
- return this.component.addPanel(options);
240
- }
241
- /**
242
- * Create a component from a serialized object.
243
- */
244
- fromJSON(data) {
245
- this.component.fromJSON(data);
246
- }
247
- /**
248
- * Create a serialized object of the current component.
249
- */
250
- toJSON() {
251
- return this.component.toJSON();
252
- }
253
- /**
254
- * Reset the component back to an empty and default state.
255
- */
256
- clear() {
257
- this.component.clear();
258
- }
259
- /**
260
- * Update configuratable options.
261
- */
262
- updateOptions(options) {
263
- this.component.updateOptions(options);
264
- }
265
- /**
266
- * Release resources and teardown component. Do not call when using framework versions of dockview.
267
- */
268
- dispose() {
269
- this.component.dispose();
270
- }
271
- }
272
- export class GridviewApi {
273
- /**
274
- * Width of the component.
275
- */
276
- get width() {
277
- return this.component.width;
278
- }
279
- /**
280
- * Height of the component.
281
- */
282
- get height() {
283
- return this.component.height;
284
- }
285
- /**
286
- * Minimum height of the component.
287
- */
288
- get minimumHeight() {
289
- return this.component.minimumHeight;
290
- }
291
- /**
292
- * Maximum height of the component.
293
- */
294
- get maximumHeight() {
295
- return this.component.maximumHeight;
296
- }
297
- /**
298
- * Minimum width of the component.
299
- */
300
- get minimumWidth() {
301
- return this.component.minimumWidth;
302
- }
303
- /**
304
- * Maximum width of the component.
305
- */
306
- get maximumWidth() {
307
- return this.component.maximumWidth;
308
- }
309
- /**
310
- * Invoked when any layout change occures, an aggregation of many events.
311
- */
312
- get onDidLayoutChange() {
313
- return this.component.onDidLayoutChange;
314
- }
315
- /**
316
- * Invoked when a panel is added. May be called multiple times when moving panels.
317
- */
318
- get onDidAddPanel() {
319
- return this.component.onDidAddGroup;
320
- }
321
- /**
322
- * Invoked when a panel is removed. May be called multiple times when moving panels.
323
- */
324
- get onDidRemovePanel() {
325
- return this.component.onDidRemoveGroup;
326
- }
327
- /**
328
- * Invoked when the active panel changes. May be undefined if no panel is active.
329
- */
330
- get onDidActivePanelChange() {
331
- return this.component.onDidActiveGroupChange;
332
- }
333
- /**
334
- * Invoked after a layout is deserialzied using the `fromJSON` method.
335
- */
336
- get onDidLayoutFromJSON() {
337
- return this.component.onDidLayoutFromJSON;
338
- }
339
- /**
340
- * All panel objects.
341
- */
342
- get panels() {
343
- return this.component.groups;
344
- }
345
- /**
346
- * Current orientation. Can be changed after initialization.
347
- */
348
- get orientation() {
349
- return this.component.orientation;
350
- }
351
- set orientation(value) {
352
- this.component.updateOptions({ orientation: value });
353
- }
354
- constructor(component) {
355
- this.component = component;
356
- }
357
- /**
358
- * Focus the component. Will try to focus an active panel if one exists.
359
- */
360
- focus() {
361
- this.component.focus();
362
- }
363
- /**
364
- * Force resize the component to an exact width and height. Read about auto-resizing before using.
365
- */
366
- layout(width, height, force = false) {
367
- this.component.layout(width, height, force);
368
- }
369
- /**
370
- * Add a panel and return the created object.
371
- */
372
- addPanel(options) {
373
- return this.component.addPanel(options);
374
- }
375
- /**
376
- * Remove a panel given the panel object.
377
- */
378
- removePanel(panel, sizing) {
379
- this.component.removePanel(panel, sizing);
380
- }
381
- /**
382
- * Move a panel in a particular direction relative to another panel.
383
- */
384
- movePanel(panel, options) {
385
- this.component.movePanel(panel, options);
386
- }
387
- /**
388
- * Get a panel object given a `string` id. May return `undefined`.
389
- */
390
- getPanel(id) {
391
- return this.component.getPanel(id);
392
- }
393
- /**
394
- * Create a component from a serialized object.
395
- */
396
- fromJSON(data) {
397
- return this.component.fromJSON(data);
398
- }
399
- /**
400
- * Create a serialized object of the current component.
401
- */
402
- toJSON() {
403
- return this.component.toJSON();
404
- }
405
- /**
406
- * Reset the component back to an empty and default state.
407
- */
408
- clear() {
409
- this.component.clear();
410
- }
411
- updateOptions(options) {
412
- this.component.updateOptions(options);
413
- }
414
- /**
415
- * Release resources and teardown component. Do not call when using framework versions of dockview.
416
- */
417
- dispose() {
418
- this.component.dispose();
419
- }
420
- }
421
- export class DockviewApi {
422
- /**
423
- * The unique identifier for this instance. Used to manage scope of Drag'n'Drop events.
424
- */
425
- get id() {
426
- return this.component.id;
427
- }
428
- /**
429
- * Width of the component.
430
- */
431
- get width() {
432
- return this.component.width;
433
- }
434
- /**
435
- * Height of the component.
436
- */
437
- get height() {
438
- return this.component.height;
439
- }
440
- /**
441
- * Minimum height of the component.
442
- */
443
- get minimumHeight() {
444
- return this.component.minimumHeight;
445
- }
446
- /**
447
- * Maximum height of the component.
448
- */
449
- get maximumHeight() {
450
- return this.component.maximumHeight;
451
- }
452
- /**
453
- * Minimum width of the component.
454
- */
455
- get minimumWidth() {
456
- return this.component.minimumWidth;
457
- }
458
- /**
459
- * Maximum width of the component.
460
- */
461
- get maximumWidth() {
462
- return this.component.maximumWidth;
463
- }
464
- /**
465
- * Total number of groups.
466
- */
467
- get size() {
468
- return this.component.size;
469
- }
470
- /**
471
- * The active tab-group color palette. Reflects the configured
472
- * `tabGroupColors` option, or the built-in defaults when unset.
473
- * Useful for custom chip renderers that want to roll their own
474
- * picker UI.
475
- */
476
- get tabGroupColors() {
477
- return this.component.tabGroupColorPalette.entries();
478
- }
479
- /**
480
- * Total number of panels.
481
- */
482
- get totalPanels() {
483
- return this.component.totalPanels;
484
- }
485
- /**
486
- * Invoked when the active group changes. May be undefined if no group is active.
487
- */
488
- get onDidActiveGroupChange() {
489
- return this.component.onDidActiveGroupChange;
490
- }
491
- /**
492
- * Invoked when a group is added. May be called multiple times when moving groups.
493
- */
494
- get onDidAddGroup() {
495
- return this.component.onDidAddGroup;
496
- }
497
- /**
498
- * Invoked when a group is removed. May be called multiple times when moving groups.
499
- */
500
- get onDidRemoveGroup() {
501
- return this.component.onDidRemoveGroup;
502
- }
503
- /**
504
- * Invoked when the active panel changes. The event carries the active
505
- * `panel` (may be undefined if no panel is active) and the
506
- * {@link DockviewOrigin} (`'user'` vs `'api'`) of the change.
507
- */
508
- get onDidActivePanelChange() {
509
- return this.component.onDidActivePanelChange;
510
- }
511
- /**
512
- * Invoked when a panel is added. May be called multiple times when moving panels.
513
- */
514
- get onDidAddPanel() {
515
- return this.component.onDidAddPanel;
516
- }
517
- /**
518
- * Invoked when a panel is removed. May be called multiple times when moving panels.
519
- */
520
- get onDidRemovePanel() {
521
- return this.component.onDidRemovePanel;
522
- }
523
- get onDidMovePanel() {
524
- return this.component.onDidMovePanel;
525
- }
526
- /**
527
- * Invoked after a layout is deserialzied using the `fromJSON` method.
528
- */
529
- get onDidLayoutFromJSON() {
530
- return this.component.onDidLayoutFromJSON;
531
- }
532
- /**
533
- * Invoked when any layout change occures, an aggregation of many events.
534
- */
535
- get onDidLayoutChange() {
536
- return this.component.onDidLayoutChange;
537
- }
538
- /**
539
- * Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality.
540
- */
541
- get onDidDrop() {
542
- return this.component.onDidDrop;
543
- }
544
- /**
545
- * Invoked when a Drag'n'Drop event occurs but before dockview handles it giving the user an opportunity to intecept and
546
- * prevent the event from occuring using the standard `preventDefault()` syntax.
547
- *
548
- * Preventing certain events may causes unexpected behaviours, use carefully.
549
- */
550
- get onWillDrop() {
551
- return this.component.onWillDrop;
552
- }
553
- /**
554
- * Fires before each top-level structural layout mutation (add / remove /
555
- * move / float / popout / maximize / load / clear). Compound operations
556
- * (e.g. a drag) fire once. Pair with `onDidMutateLayout` to bracket a
557
- * change — useful for undo/redo, autosave and dirty-tracking.
558
- */
559
- get onWillMutateLayout() {
560
- return this.component.onWillMutateLayout;
561
- }
562
- /** Fires after each top-level structural layout mutation. See `onWillMutateLayout`. */
563
- get onDidMutateLayout() {
564
- return this.component.onDidMutateLayout;
565
- }
566
- /**
567
- * Invoked before an overlay is shown indicating a drop target.
568
- *
569
- * Calling `event.preventDefault()` will prevent the overlay being shown and prevent
570
- * the any subsequent drop event.
571
- */
572
- get onWillShowOverlay() {
573
- return this.component.onWillShowOverlay;
574
- }
575
- /**
576
- * Invoked before a group is dragged.
577
- *
578
- * Calling `event.nativeEvent.preventDefault()` will prevent the group drag starting.
579
- *
580
- */
581
- get onWillDragGroup() {
582
- return this.component.onWillDragGroup;
583
- }
584
- /**
585
- * Invoked before a panel is dragged.
586
- *
587
- * Calling `event.nativeEvent.preventDefault()` will prevent the panel drag starting.
588
- */
589
- get onWillDragPanel() {
590
- return this.component.onWillDragPanel;
591
- }
592
- get onUnhandledDragOver() {
593
- return this.component.onUnhandledDragOver;
594
- }
595
- get onDidPopoutGroupSizeChange() {
596
- return this.component.onDidPopoutGroupSizeChange;
597
- }
598
- get onDidPopoutGroupPositionChange() {
599
- return this.component.onDidPopoutGroupPositionChange;
600
- }
601
- /**
602
- * Fires when a popout group successfully opens in its own window, carrying
603
- * the live `Window` handle. Use it to route focus or attach per-document
604
- * listeners. Enumerate the current popouts at any time with `getPopouts()`.
605
- */
606
- get onDidAddPopoutGroup() {
607
- return this.component.onDidAddPopoutGroup;
608
- }
609
- /**
610
- * Fires when a popout group is removed — whether the user closed its window
611
- * or it was docked back programmatically. Symmetric with
612
- * {@link onDidAddPopoutGroup}; not fired during component disposal.
613
- */
614
- get onDidRemovePopoutGroup() {
615
- return this.component.onDidRemovePopoutGroup;
616
- }
617
- get onDidOpenPopoutWindowFail() {
618
- return this.component.onDidOpenPopoutWindowFail;
619
- }
620
- /** Enumerate the popout groups currently open in their own windows. */
621
- getPopouts() {
622
- return this.component.getPopouts();
623
- }
624
- /**
625
- * Invoked when a tab group is created in any group.
626
- */
627
- get onDidCreateTabGroup() {
628
- return this.component.onDidCreateTabGroup;
629
- }
630
- /**
631
- * Invoked when a tab group is destroyed in any group.
632
- */
633
- get onDidDestroyTabGroup() {
634
- return this.component.onDidDestroyTabGroup;
635
- }
636
- /**
637
- * Invoked when a panel is added to a tab group.
638
- */
639
- get onDidAddPanelToTabGroup() {
640
- return this.component.onDidAddPanelToTabGroup;
641
- }
642
- /**
643
- * Invoked when a panel is removed from a tab group.
644
- */
645
- get onDidRemovePanelFromTabGroup() {
646
- return this.component.onDidRemovePanelFromTabGroup;
647
- }
648
- /**
649
- * Invoked when a tab group's properties (label, color) change.
650
- */
651
- get onDidTabGroupChange() {
652
- return this.component.onDidTabGroupChange;
653
- }
654
- /**
655
- * Invoked when a tab group is collapsed or expanded.
656
- */
657
- get onDidTabGroupCollapsedChange() {
658
- return this.component.onDidTabGroupCollapsedChange;
659
- }
660
- /**
661
- * All panel objects.
662
- */
663
- get panels() {
664
- return this.component.panels;
665
- }
666
- /**
667
- * All group objects.
668
- */
669
- get groups() {
670
- return this.component.groups;
671
- }
672
- /**
673
- * The nearest grid group in a spatial direction from `group`, comparing
674
- * group centre points — e.g. the group visually to the left. Floating and
675
- * popout groups are ignored. Returns `undefined` when there is no group in
676
- * that direction. Pair with `group.api.boundingBox` to build your own
677
- * spatial navigation.
678
- */
679
- adjacentGroupInDirection(group, direction) {
680
- return this.component.adjacentGroupInDirection(group, direction);
681
- }
682
- /**
683
- * Active panel object.
684
- */
685
- get activePanel() {
686
- return this.component.activePanel;
687
- }
688
- /**
689
- * Active group object.
690
- */
691
- get activeGroup() {
692
- return this.component.activeGroup;
693
- }
694
- constructor(component) {
695
- this.component = component;
696
- }
697
- /**
698
- * Focus the component. Will try to focus an active panel if one exists.
699
- */
700
- focus() {
701
- this.component.focus();
702
- }
703
- /**
704
- * Get a panel object given a `string` id. May return `undefined`.
705
- */
706
- getPanel(id) {
707
- return this.component.getGroupPanel(id);
708
- }
709
- /**
710
- * Force resize the component to an exact width and height. Read about auto-resizing before using.
711
- */
712
- layout(width, height, force = false) {
713
- this.component.layout(width, height, force);
714
- }
715
- /**
716
- * Add a panel and return the created object.
717
- */
718
- addPanel(options) {
719
- return this.component.withOrigin('api', () => this.component.addPanel(options));
720
- }
721
- /**
722
- * Remove a panel given the panel object.
723
- */
724
- removePanel(panel) {
725
- this.component.withOrigin('api', () => this.component.removePanel(panel));
726
- }
727
- /**
728
- * Add a group and return the created object.
729
- */
730
- addGroup(options) {
731
- return this.component.addGroup(options);
732
- }
733
- /**
734
- * Close all groups and panels.
735
- */
736
- closeAllGroups() {
737
- return this.component.withOrigin('api', () => this.component.closeAllGroups());
738
- }
739
- /**
740
- * Remove a group and any panels within the group.
741
- */
742
- removeGroup(group) {
743
- this.component.withOrigin('api', () => this.component.removeGroup(group));
744
- }
745
- /**
746
- * Get a group object given a `string` id. May return undefined.
747
- */
748
- getGroup(id) {
749
- return this.component.getPanel(id);
750
- }
751
- /**
752
- * Add a floating group
753
- */
754
- addFloatingGroup(item, options) {
755
- return this.component.withOrigin('api', () => this.component.addFloatingGroup(item, options));
756
- }
757
- /**
758
- * Create a component from a serialized object.
759
- */
760
- fromJSON(data, options) {
761
- this.component.withOrigin('api', () => this.component.fromJSON(data, options));
762
- }
763
- /**
764
- * Create a serialized object of the current component.
765
- */
766
- toJSON() {
767
- return this.component.toJSON();
768
- }
769
- /**
770
- * Reset the component back to an empty and default state.
771
- */
772
- clear() {
773
- this.component.withOrigin('api', () => this.component.clear());
774
- }
775
- /**
776
- * Move the focus progmatically to the next panel or group.
777
- */
778
- moveToNext(options) {
779
- this.component.moveToNext(options);
780
- }
781
- /**
782
- * Move the focus progmatically to the previous panel or group.
783
- */
784
- moveToPrevious(options) {
785
- this.component.moveToPrevious(options);
786
- }
787
- maximizeGroup(panel) {
788
- this.component.maximizeGroup(panel.group);
789
- }
790
- hasMaximizedGroup() {
791
- return this.component.hasMaximizedGroup();
792
- }
793
- exitMaximizedGroup() {
794
- this.component.exitMaximizedGroup();
795
- }
796
- get onDidMaximizedGroupChange() {
797
- return this.component.onDidMaximizedGroupChange;
798
- }
799
- /**
800
- * Add a popout group in a new Window
801
- */
802
- addPopoutGroup(item, options) {
803
- return this.component.withOrigin('api', () => this.component.addPopoutGroup(item, options));
804
- }
805
- /**
806
- * Add an edge group at the given position. Returns the group panel API
807
- * for the newly created group. Throws if a group already exists there.
808
- */
809
- addEdgeGroup(position, options) {
810
- return this.component.addEdgeGroup(position, options);
811
- }
812
- /**
813
- * Get the group panel API for an edge group at the given position.
814
- * Returns `undefined` if no edge group is configured at that position.
815
- */
816
- getEdgeGroup(position) {
817
- return this.component.getEdgeGroup(position);
818
- }
819
- /**
820
- * Set the visibility of an edge group.
821
- */
822
- setEdgeGroupVisible(position, visible) {
823
- this.component.setEdgeGroupVisible(position, visible);
824
- }
825
- /**
826
- * Check whether an edge group is currently visible.
827
- */
828
- isEdgeGroupVisible(position) {
829
- return this.component.isEdgeGroupVisible(position);
830
- }
831
- /**
832
- * Remove an edge group and reclaim its slot in the layout.
833
- * All panels inside the group are disposed. Throws if no group exists at position.
834
- */
835
- removeEdgeGroup(position) {
836
- this.component.removeEdgeGroup(position);
837
- }
838
- updateOptions(options) {
839
- this.component.updateOptions(options);
840
- }
841
- // === Tab Group API ===
842
- _getGroupModel(groupId) {
843
- const group = this.component.getPanel(groupId);
844
- if (!group) {
845
- throw new Error(`dockview: group '${groupId}' not found`);
846
- }
847
- return group.model;
848
- }
849
- createTabGroup(options) {
850
- const model = this._getGroupModel(options.groupId);
851
- return this.component.withOrigin('api', () => model.createTabGroup({
852
- label: options.label,
853
- color: options.color,
854
- componentParams: options.componentParams,
855
- }));
856
- }
857
- dissolveTabGroup(options) {
858
- const model = this._getGroupModel(options.groupId);
859
- this.component.withOrigin('api', () => model.dissolveTabGroup(options.tabGroupId));
860
- }
861
- addPanelToTabGroup(options) {
862
- const model = this._getGroupModel(options.groupId);
863
- this.component.withOrigin('api', () => model.addPanelToTabGroup(options.tabGroupId, options.panelId, options.index));
864
- }
865
- removePanelFromTabGroup(options) {
866
- const model = this._getGroupModel(options.groupId);
867
- this.component.withOrigin('api', () => model.removePanelFromTabGroup(options.panelId));
868
- }
869
- getTabGroups(options) {
870
- const model = this._getGroupModel(options.groupId);
871
- return model.getTabGroups();
872
- }
873
- getTabGroupForPanel(options) {
874
- const model = this._getGroupModel(options.groupId);
875
- return model.getTabGroupForPanel(options.panelId);
876
- }
877
- moveTabGroup(options) {
878
- const model = this._getGroupModel(options.groupId);
879
- model.moveTabGroup(options.tabGroupId, options.index);
880
- }
881
- /**
882
- * Release resources and teardown component. Do not call when using framework versions of dockview.
883
- */
884
- dispose() {
885
- this.component.dispose();
886
- }
887
- }