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,1242 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DockviewApi = exports.GridviewApi = exports.PaneviewApi = exports.SplitviewApi = void 0;
4
- var SplitviewApi = /** @class */ (function () {
5
- function SplitviewApi(component) {
6
- this.component = component;
7
- }
8
- Object.defineProperty(SplitviewApi.prototype, "minimumSize", {
9
- /**
10
- * The minimum size the component can reach where size is measured in the direction of orientation provided.
11
- */
12
- get: function () {
13
- return this.component.minimumSize;
14
- },
15
- enumerable: false,
16
- configurable: true
17
- });
18
- Object.defineProperty(SplitviewApi.prototype, "maximumSize", {
19
- /**
20
- * The maximum size the component can reach where size is measured in the direction of orientation provided.
21
- */
22
- get: function () {
23
- return this.component.maximumSize;
24
- },
25
- enumerable: false,
26
- configurable: true
27
- });
28
- Object.defineProperty(SplitviewApi.prototype, "width", {
29
- /**
30
- * Width of the component.
31
- */
32
- get: function () {
33
- return this.component.width;
34
- },
35
- enumerable: false,
36
- configurable: true
37
- });
38
- Object.defineProperty(SplitviewApi.prototype, "height", {
39
- /**
40
- * Height of the component.
41
- */
42
- get: function () {
43
- return this.component.height;
44
- },
45
- enumerable: false,
46
- configurable: true
47
- });
48
- Object.defineProperty(SplitviewApi.prototype, "length", {
49
- /**
50
- * The current number of panels.
51
- */
52
- get: function () {
53
- return this.component.length;
54
- },
55
- enumerable: false,
56
- configurable: true
57
- });
58
- Object.defineProperty(SplitviewApi.prototype, "orientation", {
59
- /**
60
- * The current orientation of the component.
61
- */
62
- get: function () {
63
- return this.component.orientation;
64
- },
65
- enumerable: false,
66
- configurable: true
67
- });
68
- Object.defineProperty(SplitviewApi.prototype, "panels", {
69
- /**
70
- * The list of current panels.
71
- */
72
- get: function () {
73
- return this.component.panels;
74
- },
75
- enumerable: false,
76
- configurable: true
77
- });
78
- Object.defineProperty(SplitviewApi.prototype, "onDidLayoutFromJSON", {
79
- /**
80
- * Invoked after a layout is loaded through the `fromJSON` method.
81
- */
82
- get: function () {
83
- return this.component.onDidLayoutFromJSON;
84
- },
85
- enumerable: false,
86
- configurable: true
87
- });
88
- Object.defineProperty(SplitviewApi.prototype, "onDidLayoutChange", {
89
- /**
90
- * Invoked whenever any aspect of the layout changes.
91
- * If listening to this event it may be worth debouncing ouputs.
92
- */
93
- get: function () {
94
- return this.component.onDidLayoutChange;
95
- },
96
- enumerable: false,
97
- configurable: true
98
- });
99
- Object.defineProperty(SplitviewApi.prototype, "onDidAddView", {
100
- /**
101
- * Invoked when a view is added.
102
- */
103
- get: function () {
104
- return this.component.onDidAddView;
105
- },
106
- enumerable: false,
107
- configurable: true
108
- });
109
- Object.defineProperty(SplitviewApi.prototype, "onDidRemoveView", {
110
- /**
111
- * Invoked when a view is removed.
112
- */
113
- get: function () {
114
- return this.component.onDidRemoveView;
115
- },
116
- enumerable: false,
117
- configurable: true
118
- });
119
- /**
120
- * Removes an existing panel and optionally provide a `Sizing` method
121
- * for the subsequent resize.
122
- */
123
- SplitviewApi.prototype.removePanel = function (panel, sizing) {
124
- this.component.removePanel(panel, sizing);
125
- };
126
- /**
127
- * Focus the component.
128
- */
129
- SplitviewApi.prototype.focus = function () {
130
- this.component.focus();
131
- };
132
- /**
133
- * Get the reference to a panel given it's `string` id.
134
- */
135
- SplitviewApi.prototype.getPanel = function (id) {
136
- return this.component.getPanel(id);
137
- };
138
- /**
139
- * Layout the panel with a width and height.
140
- */
141
- SplitviewApi.prototype.layout = function (width, height) {
142
- return this.component.layout(width, height);
143
- };
144
- /**
145
- * Add a new panel and return the created instance.
146
- */
147
- SplitviewApi.prototype.addPanel = function (options) {
148
- return this.component.addPanel(options);
149
- };
150
- /**
151
- * Move a panel given it's current and desired index.
152
- */
153
- SplitviewApi.prototype.movePanel = function (from, to) {
154
- this.component.movePanel(from, to);
155
- };
156
- /**
157
- * Deserialize a layout to built a splitivew.
158
- */
159
- SplitviewApi.prototype.fromJSON = function (data) {
160
- this.component.fromJSON(data);
161
- };
162
- /** Serialize a layout */
163
- SplitviewApi.prototype.toJSON = function () {
164
- return this.component.toJSON();
165
- };
166
- /**
167
- * Remove all panels and clear the component.
168
- */
169
- SplitviewApi.prototype.clear = function () {
170
- this.component.clear();
171
- };
172
- /**
173
- * Update configuratable options.
174
- */
175
- SplitviewApi.prototype.updateOptions = function (options) {
176
- this.component.updateOptions(options);
177
- };
178
- /**
179
- * Release resources and teardown component. Do not call when using framework versions of dockview.
180
- */
181
- SplitviewApi.prototype.dispose = function () {
182
- this.component.dispose();
183
- };
184
- return SplitviewApi;
185
- }());
186
- exports.SplitviewApi = SplitviewApi;
187
- var PaneviewApi = /** @class */ (function () {
188
- function PaneviewApi(component) {
189
- this.component = component;
190
- }
191
- Object.defineProperty(PaneviewApi.prototype, "minimumSize", {
192
- /**
193
- * The minimum size the component can reach where size is measured in the direction of orientation provided.
194
- */
195
- get: function () {
196
- return this.component.minimumSize;
197
- },
198
- enumerable: false,
199
- configurable: true
200
- });
201
- Object.defineProperty(PaneviewApi.prototype, "maximumSize", {
202
- /**
203
- * The maximum size the component can reach where size is measured in the direction of orientation provided.
204
- */
205
- get: function () {
206
- return this.component.maximumSize;
207
- },
208
- enumerable: false,
209
- configurable: true
210
- });
211
- Object.defineProperty(PaneviewApi.prototype, "width", {
212
- /**
213
- * Width of the component.
214
- */
215
- get: function () {
216
- return this.component.width;
217
- },
218
- enumerable: false,
219
- configurable: true
220
- });
221
- Object.defineProperty(PaneviewApi.prototype, "height", {
222
- /**
223
- * Height of the component.
224
- */
225
- get: function () {
226
- return this.component.height;
227
- },
228
- enumerable: false,
229
- configurable: true
230
- });
231
- Object.defineProperty(PaneviewApi.prototype, "panels", {
232
- /**
233
- * All panel objects.
234
- */
235
- get: function () {
236
- return this.component.panels;
237
- },
238
- enumerable: false,
239
- configurable: true
240
- });
241
- Object.defineProperty(PaneviewApi.prototype, "onDidLayoutChange", {
242
- /**
243
- * Invoked when any layout change occures, an aggregation of many events.
244
- */
245
- get: function () {
246
- return this.component.onDidLayoutChange;
247
- },
248
- enumerable: false,
249
- configurable: true
250
- });
251
- Object.defineProperty(PaneviewApi.prototype, "onDidLayoutFromJSON", {
252
- /**
253
- * Invoked after a layout is deserialzied using the `fromJSON` method.
254
- */
255
- get: function () {
256
- return this.component.onDidLayoutFromJSON;
257
- },
258
- enumerable: false,
259
- configurable: true
260
- });
261
- Object.defineProperty(PaneviewApi.prototype, "onDidAddView", {
262
- /**
263
- * Invoked when a panel is added. May be called multiple times when moving panels.
264
- */
265
- get: function () {
266
- return this.component.onDidAddView;
267
- },
268
- enumerable: false,
269
- configurable: true
270
- });
271
- Object.defineProperty(PaneviewApi.prototype, "onDidRemoveView", {
272
- /**
273
- * Invoked when a panel is removed. May be called multiple times when moving panels.
274
- */
275
- get: function () {
276
- return this.component.onDidRemoveView;
277
- },
278
- enumerable: false,
279
- configurable: true
280
- });
281
- Object.defineProperty(PaneviewApi.prototype, "onDidDrop", {
282
- /**
283
- * Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality.
284
- */
285
- get: function () {
286
- return this.component.onDidDrop;
287
- },
288
- enumerable: false,
289
- configurable: true
290
- });
291
- Object.defineProperty(PaneviewApi.prototype, "onUnhandledDragOver", {
292
- get: function () {
293
- return this.component.onUnhandledDragOver;
294
- },
295
- enumerable: false,
296
- configurable: true
297
- });
298
- /**
299
- * Remove a panel given the panel object.
300
- */
301
- PaneviewApi.prototype.removePanel = function (panel) {
302
- this.component.removePanel(panel);
303
- };
304
- /**
305
- * Get a panel object given a `string` id. May return `undefined`.
306
- */
307
- PaneviewApi.prototype.getPanel = function (id) {
308
- return this.component.getPanel(id);
309
- };
310
- /**
311
- * Move a panel given it's current and desired index.
312
- */
313
- PaneviewApi.prototype.movePanel = function (from, to) {
314
- this.component.movePanel(from, to);
315
- };
316
- /**
317
- * Focus the component. Will try to focus an active panel if one exists.
318
- */
319
- PaneviewApi.prototype.focus = function () {
320
- this.component.focus();
321
- };
322
- /**
323
- * Force resize the component to an exact width and height. Read about auto-resizing before using.
324
- */
325
- PaneviewApi.prototype.layout = function (width, height) {
326
- this.component.layout(width, height);
327
- };
328
- /**
329
- * Add a panel and return the created object.
330
- */
331
- PaneviewApi.prototype.addPanel = function (options) {
332
- return this.component.addPanel(options);
333
- };
334
- /**
335
- * Create a component from a serialized object.
336
- */
337
- PaneviewApi.prototype.fromJSON = function (data) {
338
- this.component.fromJSON(data);
339
- };
340
- /**
341
- * Create a serialized object of the current component.
342
- */
343
- PaneviewApi.prototype.toJSON = function () {
344
- return this.component.toJSON();
345
- };
346
- /**
347
- * Reset the component back to an empty and default state.
348
- */
349
- PaneviewApi.prototype.clear = function () {
350
- this.component.clear();
351
- };
352
- /**
353
- * Update configuratable options.
354
- */
355
- PaneviewApi.prototype.updateOptions = function (options) {
356
- this.component.updateOptions(options);
357
- };
358
- /**
359
- * Release resources and teardown component. Do not call when using framework versions of dockview.
360
- */
361
- PaneviewApi.prototype.dispose = function () {
362
- this.component.dispose();
363
- };
364
- return PaneviewApi;
365
- }());
366
- exports.PaneviewApi = PaneviewApi;
367
- var GridviewApi = /** @class */ (function () {
368
- function GridviewApi(component) {
369
- this.component = component;
370
- }
371
- Object.defineProperty(GridviewApi.prototype, "width", {
372
- /**
373
- * Width of the component.
374
- */
375
- get: function () {
376
- return this.component.width;
377
- },
378
- enumerable: false,
379
- configurable: true
380
- });
381
- Object.defineProperty(GridviewApi.prototype, "height", {
382
- /**
383
- * Height of the component.
384
- */
385
- get: function () {
386
- return this.component.height;
387
- },
388
- enumerable: false,
389
- configurable: true
390
- });
391
- Object.defineProperty(GridviewApi.prototype, "minimumHeight", {
392
- /**
393
- * Minimum height of the component.
394
- */
395
- get: function () {
396
- return this.component.minimumHeight;
397
- },
398
- enumerable: false,
399
- configurable: true
400
- });
401
- Object.defineProperty(GridviewApi.prototype, "maximumHeight", {
402
- /**
403
- * Maximum height of the component.
404
- */
405
- get: function () {
406
- return this.component.maximumHeight;
407
- },
408
- enumerable: false,
409
- configurable: true
410
- });
411
- Object.defineProperty(GridviewApi.prototype, "minimumWidth", {
412
- /**
413
- * Minimum width of the component.
414
- */
415
- get: function () {
416
- return this.component.minimumWidth;
417
- },
418
- enumerable: false,
419
- configurable: true
420
- });
421
- Object.defineProperty(GridviewApi.prototype, "maximumWidth", {
422
- /**
423
- * Maximum width of the component.
424
- */
425
- get: function () {
426
- return this.component.maximumWidth;
427
- },
428
- enumerable: false,
429
- configurable: true
430
- });
431
- Object.defineProperty(GridviewApi.prototype, "onDidLayoutChange", {
432
- /**
433
- * Invoked when any layout change occures, an aggregation of many events.
434
- */
435
- get: function () {
436
- return this.component.onDidLayoutChange;
437
- },
438
- enumerable: false,
439
- configurable: true
440
- });
441
- Object.defineProperty(GridviewApi.prototype, "onDidAddPanel", {
442
- /**
443
- * Invoked when a panel is added. May be called multiple times when moving panels.
444
- */
445
- get: function () {
446
- return this.component.onDidAddGroup;
447
- },
448
- enumerable: false,
449
- configurable: true
450
- });
451
- Object.defineProperty(GridviewApi.prototype, "onDidRemovePanel", {
452
- /**
453
- * Invoked when a panel is removed. May be called multiple times when moving panels.
454
- */
455
- get: function () {
456
- return this.component.onDidRemoveGroup;
457
- },
458
- enumerable: false,
459
- configurable: true
460
- });
461
- Object.defineProperty(GridviewApi.prototype, "onDidActivePanelChange", {
462
- /**
463
- * Invoked when the active panel changes. May be undefined if no panel is active.
464
- */
465
- get: function () {
466
- return this.component.onDidActiveGroupChange;
467
- },
468
- enumerable: false,
469
- configurable: true
470
- });
471
- Object.defineProperty(GridviewApi.prototype, "onDidLayoutFromJSON", {
472
- /**
473
- * Invoked after a layout is deserialzied using the `fromJSON` method.
474
- */
475
- get: function () {
476
- return this.component.onDidLayoutFromJSON;
477
- },
478
- enumerable: false,
479
- configurable: true
480
- });
481
- Object.defineProperty(GridviewApi.prototype, "panels", {
482
- /**
483
- * All panel objects.
484
- */
485
- get: function () {
486
- return this.component.groups;
487
- },
488
- enumerable: false,
489
- configurable: true
490
- });
491
- Object.defineProperty(GridviewApi.prototype, "orientation", {
492
- /**
493
- * Current orientation. Can be changed after initialization.
494
- */
495
- get: function () {
496
- return this.component.orientation;
497
- },
498
- set: function (value) {
499
- this.component.updateOptions({ orientation: value });
500
- },
501
- enumerable: false,
502
- configurable: true
503
- });
504
- /**
505
- * Focus the component. Will try to focus an active panel if one exists.
506
- */
507
- GridviewApi.prototype.focus = function () {
508
- this.component.focus();
509
- };
510
- /**
511
- * Force resize the component to an exact width and height. Read about auto-resizing before using.
512
- */
513
- GridviewApi.prototype.layout = function (width, height, force) {
514
- if (force === void 0) { force = false; }
515
- this.component.layout(width, height, force);
516
- };
517
- /**
518
- * Add a panel and return the created object.
519
- */
520
- GridviewApi.prototype.addPanel = function (options) {
521
- return this.component.addPanel(options);
522
- };
523
- /**
524
- * Remove a panel given the panel object.
525
- */
526
- GridviewApi.prototype.removePanel = function (panel, sizing) {
527
- this.component.removePanel(panel, sizing);
528
- };
529
- /**
530
- * Move a panel in a particular direction relative to another panel.
531
- */
532
- GridviewApi.prototype.movePanel = function (panel, options) {
533
- this.component.movePanel(panel, options);
534
- };
535
- /**
536
- * Get a panel object given a `string` id. May return `undefined`.
537
- */
538
- GridviewApi.prototype.getPanel = function (id) {
539
- return this.component.getPanel(id);
540
- };
541
- /**
542
- * Create a component from a serialized object.
543
- */
544
- GridviewApi.prototype.fromJSON = function (data) {
545
- return this.component.fromJSON(data);
546
- };
547
- /**
548
- * Create a serialized object of the current component.
549
- */
550
- GridviewApi.prototype.toJSON = function () {
551
- return this.component.toJSON();
552
- };
553
- /**
554
- * Reset the component back to an empty and default state.
555
- */
556
- GridviewApi.prototype.clear = function () {
557
- this.component.clear();
558
- };
559
- GridviewApi.prototype.updateOptions = function (options) {
560
- this.component.updateOptions(options);
561
- };
562
- /**
563
- * Release resources and teardown component. Do not call when using framework versions of dockview.
564
- */
565
- GridviewApi.prototype.dispose = function () {
566
- this.component.dispose();
567
- };
568
- return GridviewApi;
569
- }());
570
- exports.GridviewApi = GridviewApi;
571
- var DockviewApi = /** @class */ (function () {
572
- function DockviewApi(component) {
573
- this.component = component;
574
- }
575
- Object.defineProperty(DockviewApi.prototype, "id", {
576
- /**
577
- * The unique identifier for this instance. Used to manage scope of Drag'n'Drop events.
578
- */
579
- get: function () {
580
- return this.component.id;
581
- },
582
- enumerable: false,
583
- configurable: true
584
- });
585
- Object.defineProperty(DockviewApi.prototype, "width", {
586
- /**
587
- * Width of the component.
588
- */
589
- get: function () {
590
- return this.component.width;
591
- },
592
- enumerable: false,
593
- configurable: true
594
- });
595
- Object.defineProperty(DockviewApi.prototype, "height", {
596
- /**
597
- * Height of the component.
598
- */
599
- get: function () {
600
- return this.component.height;
601
- },
602
- enumerable: false,
603
- configurable: true
604
- });
605
- Object.defineProperty(DockviewApi.prototype, "minimumHeight", {
606
- /**
607
- * Minimum height of the component.
608
- */
609
- get: function () {
610
- return this.component.minimumHeight;
611
- },
612
- enumerable: false,
613
- configurable: true
614
- });
615
- Object.defineProperty(DockviewApi.prototype, "maximumHeight", {
616
- /**
617
- * Maximum height of the component.
618
- */
619
- get: function () {
620
- return this.component.maximumHeight;
621
- },
622
- enumerable: false,
623
- configurable: true
624
- });
625
- Object.defineProperty(DockviewApi.prototype, "minimumWidth", {
626
- /**
627
- * Minimum width of the component.
628
- */
629
- get: function () {
630
- return this.component.minimumWidth;
631
- },
632
- enumerable: false,
633
- configurable: true
634
- });
635
- Object.defineProperty(DockviewApi.prototype, "maximumWidth", {
636
- /**
637
- * Maximum width of the component.
638
- */
639
- get: function () {
640
- return this.component.maximumWidth;
641
- },
642
- enumerable: false,
643
- configurable: true
644
- });
645
- Object.defineProperty(DockviewApi.prototype, "size", {
646
- /**
647
- * Total number of groups.
648
- */
649
- get: function () {
650
- return this.component.size;
651
- },
652
- enumerable: false,
653
- configurable: true
654
- });
655
- Object.defineProperty(DockviewApi.prototype, "tabGroupColors", {
656
- /**
657
- * The active tab-group color palette. Reflects the configured
658
- * `tabGroupColors` option, or the built-in defaults when unset.
659
- * Useful for custom chip renderers that want to roll their own
660
- * picker UI.
661
- */
662
- get: function () {
663
- return this.component.tabGroupColorPalette.entries();
664
- },
665
- enumerable: false,
666
- configurable: true
667
- });
668
- Object.defineProperty(DockviewApi.prototype, "totalPanels", {
669
- /**
670
- * Total number of panels.
671
- */
672
- get: function () {
673
- return this.component.totalPanels;
674
- },
675
- enumerable: false,
676
- configurable: true
677
- });
678
- Object.defineProperty(DockviewApi.prototype, "onDidActiveGroupChange", {
679
- /**
680
- * Invoked when the active group changes. May be undefined if no group is active.
681
- */
682
- get: function () {
683
- return this.component.onDidActiveGroupChange;
684
- },
685
- enumerable: false,
686
- configurable: true
687
- });
688
- Object.defineProperty(DockviewApi.prototype, "onDidAddGroup", {
689
- /**
690
- * Invoked when a group is added. May be called multiple times when moving groups.
691
- */
692
- get: function () {
693
- return this.component.onDidAddGroup;
694
- },
695
- enumerable: false,
696
- configurable: true
697
- });
698
- Object.defineProperty(DockviewApi.prototype, "onDidRemoveGroup", {
699
- /**
700
- * Invoked when a group is removed. May be called multiple times when moving groups.
701
- */
702
- get: function () {
703
- return this.component.onDidRemoveGroup;
704
- },
705
- enumerable: false,
706
- configurable: true
707
- });
708
- Object.defineProperty(DockviewApi.prototype, "onDidActivePanelChange", {
709
- /**
710
- * Invoked when the active panel changes. The event carries the active
711
- * `panel` (may be undefined if no panel is active) and the
712
- * {@link DockviewOrigin} (`'user'` vs `'api'`) of the change.
713
- */
714
- get: function () {
715
- return this.component.onDidActivePanelChange;
716
- },
717
- enumerable: false,
718
- configurable: true
719
- });
720
- Object.defineProperty(DockviewApi.prototype, "onDidAddPanel", {
721
- /**
722
- * Invoked when a panel is added. May be called multiple times when moving panels.
723
- */
724
- get: function () {
725
- return this.component.onDidAddPanel;
726
- },
727
- enumerable: false,
728
- configurable: true
729
- });
730
- Object.defineProperty(DockviewApi.prototype, "onDidRemovePanel", {
731
- /**
732
- * Invoked when a panel is removed. May be called multiple times when moving panels.
733
- */
734
- get: function () {
735
- return this.component.onDidRemovePanel;
736
- },
737
- enumerable: false,
738
- configurable: true
739
- });
740
- Object.defineProperty(DockviewApi.prototype, "onDidMovePanel", {
741
- get: function () {
742
- return this.component.onDidMovePanel;
743
- },
744
- enumerable: false,
745
- configurable: true
746
- });
747
- Object.defineProperty(DockviewApi.prototype, "onDidLayoutFromJSON", {
748
- /**
749
- * Invoked after a layout is deserialzied using the `fromJSON` method.
750
- */
751
- get: function () {
752
- return this.component.onDidLayoutFromJSON;
753
- },
754
- enumerable: false,
755
- configurable: true
756
- });
757
- Object.defineProperty(DockviewApi.prototype, "onDidLayoutChange", {
758
- /**
759
- * Invoked when any layout change occures, an aggregation of many events.
760
- */
761
- get: function () {
762
- return this.component.onDidLayoutChange;
763
- },
764
- enumerable: false,
765
- configurable: true
766
- });
767
- Object.defineProperty(DockviewApi.prototype, "onDidDrop", {
768
- /**
769
- * Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality.
770
- */
771
- get: function () {
772
- return this.component.onDidDrop;
773
- },
774
- enumerable: false,
775
- configurable: true
776
- });
777
- Object.defineProperty(DockviewApi.prototype, "onWillDrop", {
778
- /**
779
- * Invoked when a Drag'n'Drop event occurs but before dockview handles it giving the user an opportunity to intecept and
780
- * prevent the event from occuring using the standard `preventDefault()` syntax.
781
- *
782
- * Preventing certain events may causes unexpected behaviours, use carefully.
783
- */
784
- get: function () {
785
- return this.component.onWillDrop;
786
- },
787
- enumerable: false,
788
- configurable: true
789
- });
790
- Object.defineProperty(DockviewApi.prototype, "onWillMutateLayout", {
791
- /**
792
- * Fires before each top-level structural layout mutation (add / remove /
793
- * move / float / popout / maximize / load / clear). Compound operations
794
- * (e.g. a drag) fire once. Pair with `onDidMutateLayout` to bracket a
795
- * change — useful for undo/redo, autosave and dirty-tracking.
796
- */
797
- get: function () {
798
- return this.component.onWillMutateLayout;
799
- },
800
- enumerable: false,
801
- configurable: true
802
- });
803
- Object.defineProperty(DockviewApi.prototype, "onDidMutateLayout", {
804
- /** Fires after each top-level structural layout mutation. See `onWillMutateLayout`. */
805
- get: function () {
806
- return this.component.onDidMutateLayout;
807
- },
808
- enumerable: false,
809
- configurable: true
810
- });
811
- Object.defineProperty(DockviewApi.prototype, "onWillShowOverlay", {
812
- /**
813
- * Invoked before an overlay is shown indicating a drop target.
814
- *
815
- * Calling `event.preventDefault()` will prevent the overlay being shown and prevent
816
- * the any subsequent drop event.
817
- */
818
- get: function () {
819
- return this.component.onWillShowOverlay;
820
- },
821
- enumerable: false,
822
- configurable: true
823
- });
824
- Object.defineProperty(DockviewApi.prototype, "onWillDragGroup", {
825
- /**
826
- * Invoked before a group is dragged.
827
- *
828
- * Calling `event.nativeEvent.preventDefault()` will prevent the group drag starting.
829
- *
830
- */
831
- get: function () {
832
- return this.component.onWillDragGroup;
833
- },
834
- enumerable: false,
835
- configurable: true
836
- });
837
- Object.defineProperty(DockviewApi.prototype, "onWillDragPanel", {
838
- /**
839
- * Invoked before a panel is dragged.
840
- *
841
- * Calling `event.nativeEvent.preventDefault()` will prevent the panel drag starting.
842
- */
843
- get: function () {
844
- return this.component.onWillDragPanel;
845
- },
846
- enumerable: false,
847
- configurable: true
848
- });
849
- Object.defineProperty(DockviewApi.prototype, "onUnhandledDragOver", {
850
- get: function () {
851
- return this.component.onUnhandledDragOver;
852
- },
853
- enumerable: false,
854
- configurable: true
855
- });
856
- Object.defineProperty(DockviewApi.prototype, "onDidPopoutGroupSizeChange", {
857
- get: function () {
858
- return this.component.onDidPopoutGroupSizeChange;
859
- },
860
- enumerable: false,
861
- configurable: true
862
- });
863
- Object.defineProperty(DockviewApi.prototype, "onDidPopoutGroupPositionChange", {
864
- get: function () {
865
- return this.component.onDidPopoutGroupPositionChange;
866
- },
867
- enumerable: false,
868
- configurable: true
869
- });
870
- Object.defineProperty(DockviewApi.prototype, "onDidAddPopoutGroup", {
871
- /**
872
- * Fires when a popout group successfully opens in its own window, carrying
873
- * the live `Window` handle. Use it to route focus or attach per-document
874
- * listeners. Enumerate the current popouts at any time with `getPopouts()`.
875
- */
876
- get: function () {
877
- return this.component.onDidAddPopoutGroup;
878
- },
879
- enumerable: false,
880
- configurable: true
881
- });
882
- Object.defineProperty(DockviewApi.prototype, "onDidRemovePopoutGroup", {
883
- /**
884
- * Fires when a popout group is removed — whether the user closed its window
885
- * or it was docked back programmatically. Symmetric with
886
- * {@link onDidAddPopoutGroup}; not fired during component disposal.
887
- */
888
- get: function () {
889
- return this.component.onDidRemovePopoutGroup;
890
- },
891
- enumerable: false,
892
- configurable: true
893
- });
894
- Object.defineProperty(DockviewApi.prototype, "onDidOpenPopoutWindowFail", {
895
- get: function () {
896
- return this.component.onDidOpenPopoutWindowFail;
897
- },
898
- enumerable: false,
899
- configurable: true
900
- });
901
- /** Enumerate the popout groups currently open in their own windows. */
902
- DockviewApi.prototype.getPopouts = function () {
903
- return this.component.getPopouts();
904
- };
905
- Object.defineProperty(DockviewApi.prototype, "onDidCreateTabGroup", {
906
- /**
907
- * Invoked when a tab group is created in any group.
908
- */
909
- get: function () {
910
- return this.component.onDidCreateTabGroup;
911
- },
912
- enumerable: false,
913
- configurable: true
914
- });
915
- Object.defineProperty(DockviewApi.prototype, "onDidDestroyTabGroup", {
916
- /**
917
- * Invoked when a tab group is destroyed in any group.
918
- */
919
- get: function () {
920
- return this.component.onDidDestroyTabGroup;
921
- },
922
- enumerable: false,
923
- configurable: true
924
- });
925
- Object.defineProperty(DockviewApi.prototype, "onDidAddPanelToTabGroup", {
926
- /**
927
- * Invoked when a panel is added to a tab group.
928
- */
929
- get: function () {
930
- return this.component.onDidAddPanelToTabGroup;
931
- },
932
- enumerable: false,
933
- configurable: true
934
- });
935
- Object.defineProperty(DockviewApi.prototype, "onDidRemovePanelFromTabGroup", {
936
- /**
937
- * Invoked when a panel is removed from a tab group.
938
- */
939
- get: function () {
940
- return this.component.onDidRemovePanelFromTabGroup;
941
- },
942
- enumerable: false,
943
- configurable: true
944
- });
945
- Object.defineProperty(DockviewApi.prototype, "onDidTabGroupChange", {
946
- /**
947
- * Invoked when a tab group's properties (label, color) change.
948
- */
949
- get: function () {
950
- return this.component.onDidTabGroupChange;
951
- },
952
- enumerable: false,
953
- configurable: true
954
- });
955
- Object.defineProperty(DockviewApi.prototype, "onDidTabGroupCollapsedChange", {
956
- /**
957
- * Invoked when a tab group is collapsed or expanded.
958
- */
959
- get: function () {
960
- return this.component.onDidTabGroupCollapsedChange;
961
- },
962
- enumerable: false,
963
- configurable: true
964
- });
965
- Object.defineProperty(DockviewApi.prototype, "panels", {
966
- /**
967
- * All panel objects.
968
- */
969
- get: function () {
970
- return this.component.panels;
971
- },
972
- enumerable: false,
973
- configurable: true
974
- });
975
- Object.defineProperty(DockviewApi.prototype, "groups", {
976
- /**
977
- * All group objects.
978
- */
979
- get: function () {
980
- return this.component.groups;
981
- },
982
- enumerable: false,
983
- configurable: true
984
- });
985
- /**
986
- * The nearest grid group in a spatial direction from `group`, comparing
987
- * group centre points — e.g. the group visually to the left. Floating and
988
- * popout groups are ignored. Returns `undefined` when there is no group in
989
- * that direction. Pair with `group.api.boundingBox` to build your own
990
- * spatial navigation.
991
- */
992
- DockviewApi.prototype.adjacentGroupInDirection = function (group, direction) {
993
- return this.component.adjacentGroupInDirection(group, direction);
994
- };
995
- Object.defineProperty(DockviewApi.prototype, "activePanel", {
996
- /**
997
- * Active panel object.
998
- */
999
- get: function () {
1000
- return this.component.activePanel;
1001
- },
1002
- enumerable: false,
1003
- configurable: true
1004
- });
1005
- Object.defineProperty(DockviewApi.prototype, "activeGroup", {
1006
- /**
1007
- * Active group object.
1008
- */
1009
- get: function () {
1010
- return this.component.activeGroup;
1011
- },
1012
- enumerable: false,
1013
- configurable: true
1014
- });
1015
- /**
1016
- * Focus the component. Will try to focus an active panel if one exists.
1017
- */
1018
- DockviewApi.prototype.focus = function () {
1019
- this.component.focus();
1020
- };
1021
- /**
1022
- * Get a panel object given a `string` id. May return `undefined`.
1023
- */
1024
- DockviewApi.prototype.getPanel = function (id) {
1025
- return this.component.getGroupPanel(id);
1026
- };
1027
- /**
1028
- * Force resize the component to an exact width and height. Read about auto-resizing before using.
1029
- */
1030
- DockviewApi.prototype.layout = function (width, height, force) {
1031
- if (force === void 0) { force = false; }
1032
- this.component.layout(width, height, force);
1033
- };
1034
- /**
1035
- * Add a panel and return the created object.
1036
- */
1037
- DockviewApi.prototype.addPanel = function (options) {
1038
- var _this = this;
1039
- return this.component.withOrigin('api', function () {
1040
- return _this.component.addPanel(options);
1041
- });
1042
- };
1043
- /**
1044
- * Remove a panel given the panel object.
1045
- */
1046
- DockviewApi.prototype.removePanel = function (panel) {
1047
- var _this = this;
1048
- this.component.withOrigin('api', function () {
1049
- return _this.component.removePanel(panel);
1050
- });
1051
- };
1052
- /**
1053
- * Add a group and return the created object.
1054
- */
1055
- DockviewApi.prototype.addGroup = function (options) {
1056
- return this.component.addGroup(options);
1057
- };
1058
- /**
1059
- * Close all groups and panels.
1060
- */
1061
- DockviewApi.prototype.closeAllGroups = function () {
1062
- var _this = this;
1063
- return this.component.withOrigin('api', function () {
1064
- return _this.component.closeAllGroups();
1065
- });
1066
- };
1067
- /**
1068
- * Remove a group and any panels within the group.
1069
- */
1070
- DockviewApi.prototype.removeGroup = function (group) {
1071
- var _this = this;
1072
- this.component.withOrigin('api', function () {
1073
- return _this.component.removeGroup(group);
1074
- });
1075
- };
1076
- /**
1077
- * Get a group object given a `string` id. May return undefined.
1078
- */
1079
- DockviewApi.prototype.getGroup = function (id) {
1080
- return this.component.getPanel(id);
1081
- };
1082
- /**
1083
- * Add a floating group
1084
- */
1085
- DockviewApi.prototype.addFloatingGroup = function (item, options) {
1086
- var _this = this;
1087
- return this.component.withOrigin('api', function () {
1088
- return _this.component.addFloatingGroup(item, options);
1089
- });
1090
- };
1091
- /**
1092
- * Create a component from a serialized object.
1093
- */
1094
- DockviewApi.prototype.fromJSON = function (data, options) {
1095
- var _this = this;
1096
- this.component.withOrigin('api', function () {
1097
- return _this.component.fromJSON(data, options);
1098
- });
1099
- };
1100
- /**
1101
- * Create a serialized object of the current component.
1102
- */
1103
- DockviewApi.prototype.toJSON = function () {
1104
- return this.component.toJSON();
1105
- };
1106
- /**
1107
- * Reset the component back to an empty and default state.
1108
- */
1109
- DockviewApi.prototype.clear = function () {
1110
- var _this = this;
1111
- this.component.withOrigin('api', function () { return _this.component.clear(); });
1112
- };
1113
- /**
1114
- * Move the focus progmatically to the next panel or group.
1115
- */
1116
- DockviewApi.prototype.moveToNext = function (options) {
1117
- this.component.moveToNext(options);
1118
- };
1119
- /**
1120
- * Move the focus progmatically to the previous panel or group.
1121
- */
1122
- DockviewApi.prototype.moveToPrevious = function (options) {
1123
- this.component.moveToPrevious(options);
1124
- };
1125
- DockviewApi.prototype.maximizeGroup = function (panel) {
1126
- this.component.maximizeGroup(panel.group);
1127
- };
1128
- DockviewApi.prototype.hasMaximizedGroup = function () {
1129
- return this.component.hasMaximizedGroup();
1130
- };
1131
- DockviewApi.prototype.exitMaximizedGroup = function () {
1132
- this.component.exitMaximizedGroup();
1133
- };
1134
- Object.defineProperty(DockviewApi.prototype, "onDidMaximizedGroupChange", {
1135
- get: function () {
1136
- return this.component.onDidMaximizedGroupChange;
1137
- },
1138
- enumerable: false,
1139
- configurable: true
1140
- });
1141
- /**
1142
- * Add a popout group in a new Window
1143
- */
1144
- DockviewApi.prototype.addPopoutGroup = function (item, options) {
1145
- var _this = this;
1146
- return this.component.withOrigin('api', function () {
1147
- return _this.component.addPopoutGroup(item, options);
1148
- });
1149
- };
1150
- /**
1151
- * Add an edge group at the given position. Returns the group panel API
1152
- * for the newly created group. Throws if a group already exists there.
1153
- */
1154
- DockviewApi.prototype.addEdgeGroup = function (position, options) {
1155
- return this.component.addEdgeGroup(position, options);
1156
- };
1157
- /**
1158
- * Get the group panel API for an edge group at the given position.
1159
- * Returns `undefined` if no edge group is configured at that position.
1160
- */
1161
- DockviewApi.prototype.getEdgeGroup = function (position) {
1162
- return this.component.getEdgeGroup(position);
1163
- };
1164
- /**
1165
- * Set the visibility of an edge group.
1166
- */
1167
- DockviewApi.prototype.setEdgeGroupVisible = function (position, visible) {
1168
- this.component.setEdgeGroupVisible(position, visible);
1169
- };
1170
- /**
1171
- * Check whether an edge group is currently visible.
1172
- */
1173
- DockviewApi.prototype.isEdgeGroupVisible = function (position) {
1174
- return this.component.isEdgeGroupVisible(position);
1175
- };
1176
- /**
1177
- * Remove an edge group and reclaim its slot in the layout.
1178
- * All panels inside the group are disposed. Throws if no group exists at position.
1179
- */
1180
- DockviewApi.prototype.removeEdgeGroup = function (position) {
1181
- this.component.removeEdgeGroup(position);
1182
- };
1183
- DockviewApi.prototype.updateOptions = function (options) {
1184
- this.component.updateOptions(options);
1185
- };
1186
- // === Tab Group API ===
1187
- DockviewApi.prototype._getGroupModel = function (groupId) {
1188
- var group = this.component.getPanel(groupId);
1189
- if (!group) {
1190
- throw new Error("dockview: group '".concat(groupId, "' not found"));
1191
- }
1192
- return group.model;
1193
- };
1194
- DockviewApi.prototype.createTabGroup = function (options) {
1195
- var model = this._getGroupModel(options.groupId);
1196
- return this.component.withOrigin('api', function () {
1197
- return model.createTabGroup({
1198
- label: options.label,
1199
- color: options.color,
1200
- componentParams: options.componentParams,
1201
- });
1202
- });
1203
- };
1204
- DockviewApi.prototype.dissolveTabGroup = function (options) {
1205
- var model = this._getGroupModel(options.groupId);
1206
- this.component.withOrigin('api', function () {
1207
- return model.dissolveTabGroup(options.tabGroupId);
1208
- });
1209
- };
1210
- DockviewApi.prototype.addPanelToTabGroup = function (options) {
1211
- var model = this._getGroupModel(options.groupId);
1212
- this.component.withOrigin('api', function () {
1213
- return model.addPanelToTabGroup(options.tabGroupId, options.panelId, options.index);
1214
- });
1215
- };
1216
- DockviewApi.prototype.removePanelFromTabGroup = function (options) {
1217
- var model = this._getGroupModel(options.groupId);
1218
- this.component.withOrigin('api', function () {
1219
- return model.removePanelFromTabGroup(options.panelId);
1220
- });
1221
- };
1222
- DockviewApi.prototype.getTabGroups = function (options) {
1223
- var model = this._getGroupModel(options.groupId);
1224
- return model.getTabGroups();
1225
- };
1226
- DockviewApi.prototype.getTabGroupForPanel = function (options) {
1227
- var model = this._getGroupModel(options.groupId);
1228
- return model.getTabGroupForPanel(options.panelId);
1229
- };
1230
- DockviewApi.prototype.moveTabGroup = function (options) {
1231
- var model = this._getGroupModel(options.groupId);
1232
- model.moveTabGroup(options.tabGroupId, options.index);
1233
- };
1234
- /**
1235
- * Release resources and teardown component. Do not call when using framework versions of dockview.
1236
- */
1237
- DockviewApi.prototype.dispose = function () {
1238
- this.component.dispose();
1239
- };
1240
- return DockviewApi;
1241
- }());
1242
- exports.DockviewApi = DockviewApi;