dockview-core 1.8.4 → 1.9.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 (464) hide show
  1. package/README.md +58 -51
  2. package/dist/cjs/api/component.api.d.ts +467 -152
  3. package/dist/cjs/api/component.api.d.ts.map +1 -1
  4. package/dist/cjs/api/component.api.js +917 -592
  5. package/dist/cjs/api/component.api.js.map +1 -1
  6. package/dist/cjs/api/dockviewGroupPanelApi.d.ts +36 -29
  7. package/dist/cjs/api/dockviewGroupPanelApi.d.ts.map +1 -1
  8. package/dist/cjs/api/dockviewGroupPanelApi.js +83 -53
  9. package/dist/cjs/api/dockviewGroupPanelApi.js.map +1 -1
  10. package/dist/cjs/api/dockviewPanelApi.d.ts +64 -47
  11. package/dist/cjs/api/dockviewPanelApi.d.ts.map +1 -1
  12. package/dist/cjs/api/dockviewPanelApi.js +108 -88
  13. package/dist/cjs/api/dockviewPanelApi.js.map +1 -1
  14. package/dist/cjs/api/gridviewPanelApi.d.ts +37 -37
  15. package/dist/cjs/api/gridviewPanelApi.js +47 -47
  16. package/dist/cjs/api/gridviewPanelApi.js.map +1 -1
  17. package/dist/cjs/api/panelApi.d.ts +88 -88
  18. package/dist/cjs/api/panelApi.js +135 -135
  19. package/dist/cjs/api/panelApi.js.map +1 -1
  20. package/dist/cjs/api/paneviewPanelApi.d.ts +26 -26
  21. package/dist/cjs/api/paneviewPanelApi.js +57 -57
  22. package/dist/cjs/api/paneviewPanelApi.js.map +1 -1
  23. package/dist/cjs/api/splitviewPanelApi.d.ts +32 -32
  24. package/dist/cjs/api/splitviewPanelApi.js +47 -47
  25. package/dist/cjs/api/splitviewPanelApi.js.map +1 -1
  26. package/dist/cjs/array.d.ts +13 -13
  27. package/dist/cjs/array.js +67 -67
  28. package/dist/cjs/array.js.map +1 -1
  29. package/dist/cjs/constants.d.ts +6 -0
  30. package/dist/cjs/constants.d.ts.map +1 -0
  31. package/dist/cjs/constants.js +6 -0
  32. package/dist/cjs/constants.js.map +1 -0
  33. package/dist/cjs/dnd/abstractDragHandler.d.ts +12 -12
  34. package/dist/cjs/dnd/abstractDragHandler.js +141 -141
  35. package/dist/cjs/dnd/abstractDragHandler.js.map +1 -1
  36. package/dist/cjs/dnd/dataTransfer.d.ts +30 -31
  37. package/dist/cjs/dnd/dataTransfer.d.ts.map +1 -1
  38. package/dist/cjs/dnd/dataTransfer.js +99 -100
  39. package/dist/cjs/dnd/dataTransfer.js.map +1 -1
  40. package/dist/cjs/dnd/dnd.d.ts +32 -27
  41. package/dist/cjs/dnd/dnd.d.ts.map +1 -1
  42. package/dist/cjs/dnd/dnd.js +74 -59
  43. package/dist/cjs/dnd/dnd.js.map +1 -1
  44. package/dist/cjs/dnd/droptarget.d.ts +55 -53
  45. package/dist/cjs/dnd/droptarget.d.ts.map +1 -1
  46. package/dist/cjs/dnd/droptarget.js +305 -304
  47. package/dist/cjs/dnd/droptarget.js.map +1 -1
  48. package/dist/cjs/dnd/ghost.d.ts +1 -1
  49. package/dist/cjs/dnd/ghost.js +15 -15
  50. package/dist/cjs/dnd/groupDragHandler.d.ts +12 -12
  51. package/dist/cjs/dnd/groupDragHandler.js +77 -77
  52. package/dist/cjs/dnd/groupDragHandler.js.map +1 -1
  53. package/dist/cjs/dnd/overlay.d.ts +30 -43
  54. package/dist/cjs/dnd/overlay.d.ts.map +1 -1
  55. package/dist/cjs/dnd/overlay.js +412 -412
  56. package/dist/cjs/dnd/overlay.js.map +1 -1
  57. package/dist/cjs/dockview/components/panel/content.d.ts +43 -30
  58. package/dist/cjs/dockview/components/panel/content.d.ts.map +1 -1
  59. package/dist/cjs/dockview/components/panel/content.js +159 -100
  60. package/dist/cjs/dockview/components/panel/content.js.map +1 -1
  61. package/dist/cjs/dockview/components/tab/defaultTab.d.ts +21 -21
  62. package/dist/cjs/dockview/components/tab/defaultTab.js +105 -105
  63. package/dist/cjs/dockview/components/tab/defaultTab.js.map +1 -1
  64. package/dist/cjs/dockview/components/tab/tab.d.ts +34 -34
  65. package/dist/cjs/dockview/components/tab/tab.js +120 -120
  66. package/dist/cjs/dockview/components/tab/tab.js.map +1 -1
  67. package/dist/cjs/dockview/components/titlebar/tabsContainer.d.ts +81 -81
  68. package/dist/cjs/dockview/components/titlebar/tabsContainer.js +325 -325
  69. package/dist/cjs/dockview/components/titlebar/tabsContainer.js.map +1 -1
  70. package/dist/cjs/dockview/components/titlebar/voidContainer.d.ts +17 -17
  71. package/dist/cjs/dockview/components/titlebar/voidContainer.js +77 -77
  72. package/dist/cjs/dockview/components/titlebar/voidContainer.js.map +1 -1
  73. package/dist/cjs/dockview/components/watermark/watermark.d.ts +18 -18
  74. package/dist/cjs/dockview/components/watermark/watermark.js +87 -87
  75. package/dist/cjs/dockview/components/watermark/watermark.js.map +1 -1
  76. package/dist/cjs/dockview/deserializer.d.ts +12 -12
  77. package/dist/cjs/dockview/deserializer.d.ts.map +1 -1
  78. package/dist/cjs/dockview/deserializer.js +35 -33
  79. package/dist/cjs/dockview/deserializer.js.map +1 -1
  80. package/dist/cjs/dockview/dockviewComponent.d.ts +171 -159
  81. package/dist/cjs/dockview/dockviewComponent.d.ts.map +1 -1
  82. package/dist/cjs/dockview/dockviewComponent.js +1354 -1156
  83. package/dist/cjs/dockview/dockviewComponent.js.map +1 -1
  84. package/dist/cjs/dockview/dockviewFloatingGroupPanel.d.ts +23 -23
  85. package/dist/cjs/dockview/dockviewFloatingGroupPanel.js +34 -34
  86. package/dist/cjs/dockview/dockviewFloatingGroupPanel.js.map +1 -1
  87. package/dist/cjs/dockview/dockviewGroupPanel.d.ts +30 -30
  88. package/dist/cjs/dockview/dockviewGroupPanel.d.ts.map +1 -1
  89. package/dist/cjs/dockview/dockviewGroupPanel.js +99 -97
  90. package/dist/cjs/dockview/dockviewGroupPanel.js.map +1 -1
  91. package/dist/cjs/dockview/dockviewGroupPanelModel.d.ts +186 -185
  92. package/dist/cjs/dockview/dockviewGroupPanelModel.d.ts.map +1 -1
  93. package/dist/cjs/dockview/dockviewGroupPanelModel.js +626 -631
  94. package/dist/cjs/dockview/dockviewGroupPanelModel.js.map +1 -1
  95. package/dist/cjs/dockview/dockviewPanel.d.ts +48 -41
  96. package/dist/cjs/dockview/dockviewPanel.d.ts.map +1 -1
  97. package/dist/cjs/dockview/dockviewPanel.js +194 -171
  98. package/dist/cjs/dockview/dockviewPanel.js.map +1 -1
  99. package/dist/cjs/dockview/dockviewPanelModel.d.ts +35 -35
  100. package/dist/cjs/dockview/dockviewPanelModel.js +98 -98
  101. package/dist/cjs/dockview/dockviewPanelModel.js.map +1 -1
  102. package/dist/cjs/dockview/dockviewPopoutGroupPanel.d.ts +16 -0
  103. package/dist/cjs/dockview/dockviewPopoutGroupPanel.d.ts.map +1 -0
  104. package/dist/cjs/dockview/dockviewPopoutGroupPanel.js +50 -0
  105. package/dist/cjs/dockview/dockviewPopoutGroupPanel.js.map +1 -0
  106. package/dist/cjs/dockview/options.d.ts +138 -136
  107. package/dist/cjs/dockview/options.d.ts.map +1 -1
  108. package/dist/cjs/dockview/options.js +31 -31
  109. package/dist/cjs/dockview/options.js.map +1 -1
  110. package/dist/cjs/dockview/types.d.ts +65 -63
  111. package/dist/cjs/dockview/types.d.ts.map +1 -1
  112. package/dist/cjs/dockview/types.js +10 -10
  113. package/dist/cjs/dockview/types.js.map +1 -1
  114. package/dist/cjs/dom.d.ts +28 -16
  115. package/dist/cjs/dom.d.ts.map +1 -1
  116. package/dist/cjs/dom.js +276 -197
  117. package/dist/cjs/dom.js.map +1 -1
  118. package/dist/cjs/events.d.ts +47 -47
  119. package/dist/cjs/events.js +216 -216
  120. package/dist/cjs/events.js.map +1 -1
  121. package/dist/cjs/gridview/baseComponentGridview.d.ts +98 -87
  122. package/dist/cjs/gridview/baseComponentGridview.d.ts.map +1 -1
  123. package/dist/cjs/gridview/baseComponentGridview.js +289 -270
  124. package/dist/cjs/gridview/baseComponentGridview.js.map +1 -1
  125. package/dist/cjs/gridview/basePanelView.d.ts +40 -40
  126. package/dist/cjs/gridview/basePanelView.js +156 -156
  127. package/dist/cjs/gridview/basePanelView.js.map +1 -1
  128. package/dist/cjs/gridview/branchNode.d.ts +51 -49
  129. package/dist/cjs/gridview/branchNode.d.ts.map +1 -1
  130. package/dist/cjs/gridview/branchNode.js +370 -343
  131. package/dist/cjs/gridview/branchNode.js.map +1 -1
  132. package/dist/cjs/gridview/gridview.d.ts +140 -133
  133. package/dist/cjs/gridview/gridview.d.ts.map +1 -1
  134. package/dist/cjs/gridview/gridview.js +627 -547
  135. package/dist/cjs/gridview/gridview.js.map +1 -1
  136. package/dist/cjs/gridview/gridviewComponent.d.ts +80 -80
  137. package/dist/cjs/gridview/gridviewComponent.d.ts.map +1 -1
  138. package/dist/cjs/gridview/gridviewComponent.js +362 -360
  139. package/dist/cjs/gridview/gridviewComponent.js.map +1 -1
  140. package/dist/cjs/gridview/gridviewPanel.d.ts +65 -65
  141. package/dist/cjs/gridview/gridviewPanel.js +214 -214
  142. package/dist/cjs/gridview/gridviewPanel.js.map +1 -1
  143. package/dist/cjs/gridview/leafNode.d.ts +34 -34
  144. package/dist/cjs/gridview/leafNode.d.ts.map +1 -1
  145. package/dist/cjs/gridview/leafNode.js +169 -170
  146. package/dist/cjs/gridview/leafNode.js.map +1 -1
  147. package/dist/cjs/gridview/options.d.ts +17 -18
  148. package/dist/cjs/gridview/options.d.ts.map +1 -1
  149. package/dist/cjs/gridview/options.js +2 -2
  150. package/dist/cjs/gridview/types.d.ts +3 -3
  151. package/dist/cjs/gridview/types.js +2 -2
  152. package/dist/cjs/index.d.ts +43 -42
  153. package/dist/cjs/index.d.ts.map +1 -1
  154. package/dist/cjs/index.js +61 -61
  155. package/dist/cjs/index.js.map +1 -1
  156. package/dist/cjs/lifecycle.d.ts +24 -23
  157. package/dist/cjs/lifecycle.d.ts.map +1 -1
  158. package/dist/cjs/lifecycle.js +73 -65
  159. package/dist/cjs/lifecycle.js.map +1 -1
  160. package/dist/cjs/math.d.ts +5 -5
  161. package/dist/cjs/math.js +34 -34
  162. package/dist/cjs/math.js.map +1 -1
  163. package/dist/cjs/overlayRenderContainer.d.ts +19 -0
  164. package/dist/cjs/overlayRenderContainer.d.ts.map +1 -0
  165. package/dist/cjs/overlayRenderContainer.js +170 -0
  166. package/dist/cjs/overlayRenderContainer.js.map +1 -0
  167. package/dist/cjs/panel/componentFactory.d.ts +11 -10
  168. package/dist/cjs/panel/componentFactory.d.ts.map +1 -1
  169. package/dist/cjs/panel/componentFactory.js +30 -30
  170. package/dist/cjs/panel/componentFactory.js.map +1 -1
  171. package/dist/cjs/panel/types.d.ts +33 -33
  172. package/dist/cjs/panel/types.js +2 -2
  173. package/dist/cjs/paneview/defaultPaneviewHeader.d.ts +21 -21
  174. package/dist/cjs/paneview/defaultPaneviewHeader.js +90 -90
  175. package/dist/cjs/paneview/defaultPaneviewHeader.js.map +1 -1
  176. package/dist/cjs/paneview/draggablePaneviewPanel.d.ts +21 -21
  177. package/dist/cjs/paneview/draggablePaneviewPanel.js +131 -131
  178. package/dist/cjs/paneview/draggablePaneviewPanel.js.map +1 -1
  179. package/dist/cjs/paneview/options.d.ts +25 -28
  180. package/dist/cjs/paneview/options.d.ts.map +1 -1
  181. package/dist/cjs/paneview/options.js +2 -2
  182. package/dist/cjs/paneview/paneview.d.ts +40 -40
  183. package/dist/cjs/paneview/paneview.d.ts.map +1 -1
  184. package/dist/cjs/paneview/paneview.js +200 -201
  185. package/dist/cjs/paneview/paneview.js.map +1 -1
  186. package/dist/cjs/paneview/paneviewComponent.d.ts +128 -128
  187. package/dist/cjs/paneview/paneviewComponent.js +400 -397
  188. package/dist/cjs/paneview/paneviewComponent.js.map +1 -1
  189. package/dist/cjs/paneview/paneviewPanel.d.ts +92 -92
  190. package/dist/cjs/paneview/paneviewPanel.d.ts.map +1 -1
  191. package/dist/cjs/paneview/paneviewPanel.js +275 -275
  192. package/dist/cjs/paneview/paneviewPanel.js.map +1 -1
  193. package/dist/cjs/popoutWindow.d.ts +18 -0
  194. package/dist/cjs/popoutWindow.d.ts.map +1 -0
  195. package/dist/cjs/popoutWindow.js +130 -0
  196. package/dist/cjs/popoutWindow.js.map +1 -0
  197. package/dist/cjs/resizable.d.ts +10 -7
  198. package/dist/cjs/resizable.d.ts.map +1 -1
  199. package/dist/cjs/resizable.js +79 -64
  200. package/dist/cjs/resizable.js.map +1 -1
  201. package/dist/cjs/splitview/options.d.ts +26 -27
  202. package/dist/cjs/splitview/options.d.ts.map +1 -1
  203. package/dist/cjs/splitview/options.js +2 -2
  204. package/dist/cjs/splitview/splitview.d.ts +129 -128
  205. package/dist/cjs/splitview/splitview.d.ts.map +1 -1
  206. package/dist/cjs/splitview/splitview.js +959 -936
  207. package/dist/cjs/splitview/splitview.js.map +1 -1
  208. package/dist/cjs/splitview/splitviewComponent.d.ts +101 -101
  209. package/dist/cjs/splitview/splitviewComponent.js +395 -392
  210. package/dist/cjs/splitview/splitviewComponent.js.map +1 -1
  211. package/dist/cjs/splitview/splitviewPanel.d.ts +45 -45
  212. package/dist/cjs/splitview/splitviewPanel.d.ts.map +1 -1
  213. package/dist/cjs/splitview/splitviewPanel.js +179 -179
  214. package/dist/cjs/splitview/splitviewPanel.js.map +1 -1
  215. package/dist/cjs/splitview/viewItem.d.ts +25 -25
  216. package/dist/cjs/splitview/viewItem.js +119 -119
  217. package/dist/cjs/splitview/viewItem.js.map +1 -1
  218. package/dist/cjs/svg.d.ts +3 -3
  219. package/dist/cjs/svg.js +43 -43
  220. package/dist/cjs/types.d.ts +8 -2
  221. package/dist/cjs/types.d.ts.map +1 -1
  222. package/dist/cjs/types.js +2 -2
  223. package/dist/dockview-core.amd.js +8374 -7314
  224. package/dist/dockview-core.amd.js.map +1 -1
  225. package/dist/dockview-core.amd.min.js +2 -2
  226. package/dist/dockview-core.amd.min.js.map +1 -1
  227. package/dist/dockview-core.amd.min.noStyle.js +2 -2
  228. package/dist/dockview-core.amd.min.noStyle.js.map +1 -1
  229. package/dist/dockview-core.amd.noStyle.js +8328 -7268
  230. package/dist/dockview-core.amd.noStyle.js.map +1 -1
  231. package/dist/dockview-core.cjs.js +8374 -7314
  232. package/dist/dockview-core.cjs.js.map +1 -1
  233. package/dist/dockview-core.esm.js +8374 -7314
  234. package/dist/dockview-core.esm.js.map +1 -1
  235. package/dist/dockview-core.esm.min.js +2 -2
  236. package/dist/dockview-core.esm.min.js.map +1 -1
  237. package/dist/dockview-core.js +8374 -7314
  238. package/dist/dockview-core.js.map +1 -1
  239. package/dist/dockview-core.min.js +2 -2
  240. package/dist/dockview-core.min.js.map +1 -1
  241. package/dist/dockview-core.min.noStyle.js +2 -2
  242. package/dist/dockview-core.min.noStyle.js.map +1 -1
  243. package/dist/dockview-core.noStyle.js +8328 -7268
  244. package/dist/dockview-core.noStyle.js.map +1 -1
  245. package/dist/esm/api/component.api.d.ts +467 -152
  246. package/dist/esm/api/component.api.d.ts.map +1 -1
  247. package/dist/esm/api/component.api.js +656 -335
  248. package/dist/esm/api/component.api.js.map +1 -1
  249. package/dist/esm/api/dockviewGroupPanelApi.d.ts +36 -29
  250. package/dist/esm/api/dockviewGroupPanelApi.d.ts.map +1 -1
  251. package/dist/esm/api/dockviewGroupPanelApi.js +57 -27
  252. package/dist/esm/api/dockviewGroupPanelApi.js.map +1 -1
  253. package/dist/esm/api/dockviewPanelApi.d.ts +64 -47
  254. package/dist/esm/api/dockviewPanelApi.d.ts.map +1 -1
  255. package/dist/esm/api/dockviewPanelApi.js +69 -53
  256. package/dist/esm/api/dockviewPanelApi.js.map +1 -1
  257. package/dist/esm/api/gridviewPanelApi.d.ts +37 -37
  258. package/dist/esm/api/gridviewPanelApi.js +25 -25
  259. package/dist/esm/api/gridviewPanelApi.js.map +1 -1
  260. package/dist/esm/api/panelApi.d.ts +88 -88
  261. package/dist/esm/api/panelApi.js +93 -93
  262. package/dist/esm/api/paneviewPanelApi.d.ts +26 -26
  263. package/dist/esm/api/paneviewPanelApi.js +27 -27
  264. package/dist/esm/api/splitviewPanelApi.d.ts +32 -32
  265. package/dist/esm/api/splitviewPanelApi.js +25 -25
  266. package/dist/esm/array.d.ts +13 -13
  267. package/dist/esm/array.js +57 -57
  268. package/dist/esm/array.js.map +1 -1
  269. package/dist/esm/constants.d.ts +6 -0
  270. package/dist/esm/constants.d.ts.map +1 -0
  271. package/dist/esm/constants.js +3 -0
  272. package/dist/esm/constants.js.map +1 -0
  273. package/dist/esm/dnd/abstractDragHandler.d.ts +12 -12
  274. package/dist/esm/dnd/abstractDragHandler.js +63 -63
  275. package/dist/esm/dnd/abstractDragHandler.js.map +1 -1
  276. package/dist/esm/dnd/dataTransfer.d.ts +30 -31
  277. package/dist/esm/dnd/dataTransfer.d.ts.map +1 -1
  278. package/dist/esm/dnd/dataTransfer.js +66 -69
  279. package/dist/esm/dnd/dataTransfer.js.map +1 -1
  280. package/dist/esm/dnd/dnd.d.ts +32 -27
  281. package/dist/esm/dnd/dnd.d.ts.map +1 -1
  282. package/dist/esm/dnd/dnd.js +51 -36
  283. package/dist/esm/dnd/dnd.js.map +1 -1
  284. package/dist/esm/dnd/droptarget.d.ts +55 -53
  285. package/dist/esm/dnd/droptarget.d.ts.map +1 -1
  286. package/dist/esm/dnd/droptarget.js +275 -274
  287. package/dist/esm/dnd/droptarget.js.map +1 -1
  288. package/dist/esm/dnd/ghost.d.ts +1 -1
  289. package/dist/esm/dnd/ghost.js +11 -11
  290. package/dist/esm/dnd/groupDragHandler.d.ts +12 -12
  291. package/dist/esm/dnd/groupDragHandler.js +54 -54
  292. package/dist/esm/dnd/groupDragHandler.js.map +1 -1
  293. package/dist/esm/dnd/overlay.d.ts +30 -43
  294. package/dist/esm/dnd/overlay.d.ts.map +1 -1
  295. package/dist/esm/dnd/overlay.js +304 -304
  296. package/dist/esm/dnd/overlay.js.map +1 -1
  297. package/dist/esm/dockview/components/panel/content.d.ts +43 -30
  298. package/dist/esm/dockview/components/panel/content.d.ts.map +1 -1
  299. package/dist/esm/dockview/components/panel/content.js +131 -73
  300. package/dist/esm/dockview/components/panel/content.js.map +1 -1
  301. package/dist/esm/dockview/components/tab/defaultTab.d.ts +21 -21
  302. package/dist/esm/dockview/components/tab/defaultTab.js +67 -67
  303. package/dist/esm/dockview/components/tab/defaultTab.js.map +1 -1
  304. package/dist/esm/dockview/components/tab/tab.d.ts +34 -34
  305. package/dist/esm/dockview/components/tab/tab.js +90 -90
  306. package/dist/esm/dockview/components/tab/tab.js.map +1 -1
  307. package/dist/esm/dockview/components/titlebar/tabsContainer.d.ts +81 -81
  308. package/dist/esm/dockview/components/titlebar/tabsContainer.js +239 -239
  309. package/dist/esm/dockview/components/titlebar/tabsContainer.js.map +1 -1
  310. package/dist/esm/dockview/components/titlebar/voidContainer.d.ts +17 -17
  311. package/dist/esm/dockview/components/titlebar/voidContainer.js +51 -51
  312. package/dist/esm/dockview/components/titlebar/voidContainer.js.map +1 -1
  313. package/dist/esm/dockview/components/watermark/watermark.d.ts +18 -18
  314. package/dist/esm/dockview/components/watermark/watermark.js +61 -61
  315. package/dist/esm/dockview/components/watermark/watermark.js.map +1 -1
  316. package/dist/esm/dockview/deserializer.d.ts +12 -12
  317. package/dist/esm/dockview/deserializer.d.ts.map +1 -1
  318. package/dist/esm/dockview/deserializer.js +30 -28
  319. package/dist/esm/dockview/deserializer.js.map +1 -1
  320. package/dist/esm/dockview/dockviewComponent.d.ts +171 -159
  321. package/dist/esm/dockview/dockviewComponent.d.ts.map +1 -1
  322. package/dist/esm/dockview/dockviewComponent.js +1078 -918
  323. package/dist/esm/dockview/dockviewComponent.js.map +1 -1
  324. package/dist/esm/dockview/dockviewFloatingGroupPanel.d.ts +23 -23
  325. package/dist/esm/dockview/dockviewFloatingGroupPanel.js +12 -12
  326. package/dist/esm/dockview/dockviewGroupPanel.d.ts +30 -30
  327. package/dist/esm/dockview/dockviewGroupPanel.d.ts.map +1 -1
  328. package/dist/esm/dockview/dockviewGroupPanel.js +53 -51
  329. package/dist/esm/dockview/dockviewGroupPanel.js.map +1 -1
  330. package/dist/esm/dockview/dockviewGroupPanelModel.d.ts +186 -185
  331. package/dist/esm/dockview/dockviewGroupPanelModel.d.ts.map +1 -1
  332. package/dist/esm/dockview/dockviewGroupPanelModel.js +493 -498
  333. package/dist/esm/dockview/dockviewGroupPanelModel.js.map +1 -1
  334. package/dist/esm/dockview/dockviewPanel.d.ts +48 -41
  335. package/dist/esm/dockview/dockviewPanel.d.ts.map +1 -1
  336. package/dist/esm/dockview/dockviewPanel.js +123 -104
  337. package/dist/esm/dockview/dockviewPanel.js.map +1 -1
  338. package/dist/esm/dockview/dockviewPanelModel.d.ts +35 -35
  339. package/dist/esm/dockview/dockviewPanelModel.js +74 -74
  340. package/dist/esm/dockview/dockviewPanelModel.js.map +1 -1
  341. package/dist/esm/dockview/dockviewPopoutGroupPanel.d.ts +16 -0
  342. package/dist/esm/dockview/dockviewPopoutGroupPanel.d.ts.map +1 -0
  343. package/dist/esm/dockview/dockviewPopoutGroupPanel.js +28 -0
  344. package/dist/esm/dockview/dockviewPopoutGroupPanel.js.map +1 -0
  345. package/dist/esm/dockview/options.d.ts +138 -136
  346. package/dist/esm/dockview/options.d.ts.map +1 -1
  347. package/dist/esm/dockview/options.js +24 -24
  348. package/dist/esm/dockview/options.js.map +1 -1
  349. package/dist/esm/dockview/types.d.ts +65 -63
  350. package/dist/esm/dockview/types.d.ts.map +1 -1
  351. package/dist/esm/dockview/types.js +7 -7
  352. package/dist/esm/dockview/types.js.map +1 -1
  353. package/dist/esm/dom.d.ts +28 -16
  354. package/dist/esm/dom.d.ts.map +1 -1
  355. package/dist/esm/dom.js +181 -126
  356. package/dist/esm/dom.js.map +1 -1
  357. package/dist/esm/events.d.ts +47 -47
  358. package/dist/esm/events.js +156 -156
  359. package/dist/esm/events.js.map +1 -1
  360. package/dist/esm/gridview/baseComponentGridview.d.ts +98 -87
  361. package/dist/esm/gridview/baseComponentGridview.d.ts.map +1 -1
  362. package/dist/esm/gridview/baseComponentGridview.js +199 -184
  363. package/dist/esm/gridview/baseComponentGridview.js.map +1 -1
  364. package/dist/esm/gridview/basePanelView.d.ts +40 -40
  365. package/dist/esm/gridview/basePanelView.js +85 -85
  366. package/dist/esm/gridview/basePanelView.js.map +1 -1
  367. package/dist/esm/gridview/branchNode.d.ts +51 -49
  368. package/dist/esm/gridview/branchNode.d.ts.map +1 -1
  369. package/dist/esm/gridview/branchNode.js +240 -219
  370. package/dist/esm/gridview/branchNode.js.map +1 -1
  371. package/dist/esm/gridview/gridview.d.ts +140 -133
  372. package/dist/esm/gridview/gridview.d.ts.map +1 -1
  373. package/dist/esm/gridview/gridview.js +541 -461
  374. package/dist/esm/gridview/gridview.js.map +1 -1
  375. package/dist/esm/gridview/gridviewComponent.d.ts +80 -80
  376. package/dist/esm/gridview/gridviewComponent.d.ts.map +1 -1
  377. package/dist/esm/gridview/gridviewComponent.js +264 -262
  378. package/dist/esm/gridview/gridviewComponent.js.map +1 -1
  379. package/dist/esm/gridview/gridviewPanel.d.ts +65 -65
  380. package/dist/esm/gridview/gridviewPanel.js +151 -151
  381. package/dist/esm/gridview/gridviewPanel.js.map +1 -1
  382. package/dist/esm/gridview/leafNode.d.ts +34 -34
  383. package/dist/esm/gridview/leafNode.d.ts.map +1 -1
  384. package/dist/esm/gridview/leafNode.js +102 -103
  385. package/dist/esm/gridview/leafNode.js.map +1 -1
  386. package/dist/esm/gridview/options.d.ts +17 -18
  387. package/dist/esm/gridview/options.d.ts.map +1 -1
  388. package/dist/esm/gridview/options.js +1 -1
  389. package/dist/esm/gridview/types.d.ts +3 -3
  390. package/dist/esm/gridview/types.js +1 -1
  391. package/dist/esm/index.d.ts +43 -42
  392. package/dist/esm/index.d.ts.map +1 -1
  393. package/dist/esm/index.js +34 -34
  394. package/dist/esm/index.js.map +1 -1
  395. package/dist/esm/lifecycle.d.ts +24 -23
  396. package/dist/esm/lifecycle.d.ts.map +1 -1
  397. package/dist/esm/lifecycle.js +49 -41
  398. package/dist/esm/lifecycle.js.map +1 -1
  399. package/dist/esm/math.d.ts +5 -5
  400. package/dist/esm/math.js +28 -28
  401. package/dist/esm/math.js.map +1 -1
  402. package/dist/esm/overlayRenderContainer.d.ts +19 -0
  403. package/dist/esm/overlayRenderContainer.d.ts.map +1 -0
  404. package/dist/esm/overlayRenderContainer.js +125 -0
  405. package/dist/esm/overlayRenderContainer.js.map +1 -0
  406. package/dist/esm/panel/componentFactory.d.ts +11 -10
  407. package/dist/esm/panel/componentFactory.d.ts.map +1 -1
  408. package/dist/esm/panel/componentFactory.js +24 -24
  409. package/dist/esm/panel/componentFactory.js.map +1 -1
  410. package/dist/esm/panel/types.d.ts +33 -33
  411. package/dist/esm/panel/types.js +1 -1
  412. package/dist/esm/paneview/defaultPaneviewHeader.d.ts +21 -21
  413. package/dist/esm/paneview/defaultPaneviewHeader.js +63 -63
  414. package/dist/esm/paneview/defaultPaneviewHeader.js.map +1 -1
  415. package/dist/esm/paneview/draggablePaneviewPanel.d.ts +21 -21
  416. package/dist/esm/paneview/draggablePaneviewPanel.js +92 -92
  417. package/dist/esm/paneview/draggablePaneviewPanel.js.map +1 -1
  418. package/dist/esm/paneview/options.d.ts +25 -28
  419. package/dist/esm/paneview/options.d.ts.map +1 -1
  420. package/dist/esm/paneview/options.js +1 -1
  421. package/dist/esm/paneview/paneview.d.ts +40 -40
  422. package/dist/esm/paneview/paneview.d.ts.map +1 -1
  423. package/dist/esm/paneview/paneview.js +145 -145
  424. package/dist/esm/paneview/paneview.js.map +1 -1
  425. package/dist/esm/paneview/paneviewComponent.d.ts +128 -128
  426. package/dist/esm/paneview/paneviewComponent.js +276 -273
  427. package/dist/esm/paneview/paneviewComponent.js.map +1 -1
  428. package/dist/esm/paneview/paneviewPanel.d.ts +92 -92
  429. package/dist/esm/paneview/paneviewPanel.d.ts.map +1 -1
  430. package/dist/esm/paneview/paneviewPanel.js +192 -192
  431. package/dist/esm/paneview/paneviewPanel.js.map +1 -1
  432. package/dist/esm/popoutWindow.d.ts +18 -0
  433. package/dist/esm/popoutWindow.d.ts.map +1 -0
  434. package/dist/esm/popoutWindow.js +88 -0
  435. package/dist/esm/popoutWindow.js.map +1 -0
  436. package/dist/esm/resizable.d.ts +10 -7
  437. package/dist/esm/resizable.d.ts.map +1 -1
  438. package/dist/esm/resizable.js +48 -38
  439. package/dist/esm/resizable.js.map +1 -1
  440. package/dist/esm/splitview/options.d.ts +26 -27
  441. package/dist/esm/splitview/options.d.ts.map +1 -1
  442. package/dist/esm/splitview/options.js +1 -1
  443. package/dist/esm/splitview/splitview.d.ts +129 -128
  444. package/dist/esm/splitview/splitview.d.ts.map +1 -1
  445. package/dist/esm/splitview/splitview.js +721 -704
  446. package/dist/esm/splitview/splitview.js.map +1 -1
  447. package/dist/esm/splitview/splitviewComponent.d.ts +101 -101
  448. package/dist/esm/splitview/splitviewComponent.js +261 -258
  449. package/dist/esm/splitview/splitviewComponent.js.map +1 -1
  450. package/dist/esm/splitview/splitviewPanel.d.ts +45 -45
  451. package/dist/esm/splitview/splitviewPanel.d.ts.map +1 -1
  452. package/dist/esm/splitview/splitviewPanel.js +108 -108
  453. package/dist/esm/splitview/splitviewPanel.js.map +1 -1
  454. package/dist/esm/splitview/viewItem.d.ts +25 -25
  455. package/dist/esm/splitview/viewItem.js +74 -74
  456. package/dist/esm/splitview/viewItem.js.map +1 -1
  457. package/dist/esm/svg.d.ts +3 -3
  458. package/dist/esm/svg.js +31 -31
  459. package/dist/esm/types.d.ts +8 -2
  460. package/dist/esm/types.d.ts.map +1 -1
  461. package/dist/esm/types.js +1 -1
  462. package/dist/styles/dockview.css +33 -2
  463. package/package.json +30 -42
  464. package/LICENSE +0 -21
@@ -1,336 +1,657 @@
1
- import { Emitter } from '../events';
2
- export class SplitviewApi {
3
- get minimumSize() {
4
- return this.component.minimumSize;
5
- }
6
- get maximumSize() {
7
- return this.component.maximumSize;
8
- }
9
- get height() {
10
- return this.component.height;
11
- }
12
- get width() {
13
- return this.component.width;
14
- }
15
- get length() {
16
- return this.component.length;
17
- }
18
- get orientation() {
19
- return this.component.orientation;
20
- }
21
- get panels() {
22
- return this.component.panels;
23
- }
24
- get onDidLayoutFromJSON() {
25
- return this.component.onDidLayoutFromJSON;
26
- }
27
- get onDidLayoutChange() {
28
- return this.component.onDidLayoutChange;
29
- }
30
- get onDidAddView() {
31
- return this.component.onDidAddView;
32
- }
33
- get onDidRemoveView() {
34
- return this.component.onDidRemoveView;
35
- }
36
- constructor(component) {
37
- this.component = component;
38
- }
39
- updateOptions(options) {
40
- this.component.updateOptions(options);
41
- }
42
- removePanel(panel, sizing) {
43
- this.component.removePanel(panel, sizing);
44
- }
45
- focus() {
46
- this.component.focus();
47
- }
48
- getPanel(id) {
49
- return this.component.getPanel(id);
50
- }
51
- layout(width, height) {
52
- return this.component.layout(width, height);
53
- }
54
- addPanel(options) {
55
- return this.component.addPanel(options);
56
- }
57
- movePanel(from, to) {
58
- this.component.movePanel(from, to);
59
- }
60
- fromJSON(data) {
61
- this.component.fromJSON(data);
62
- }
63
- toJSON() {
64
- return this.component.toJSON();
65
- }
66
- clear() {
67
- this.component.clear();
68
- }
69
- }
70
- export class PaneviewApi {
71
- get minimumSize() {
72
- return this.component.minimumSize;
73
- }
74
- get maximumSize() {
75
- return this.component.maximumSize;
76
- }
77
- get height() {
78
- return this.component.height;
79
- }
80
- get width() {
81
- return this.component.width;
82
- }
83
- get panels() {
84
- return this.component.panels;
85
- }
86
- get onDidLayoutChange() {
87
- return this.component.onDidLayoutChange;
88
- }
89
- get onDidLayoutFromJSON() {
90
- return this.component.onDidLayoutFromJSON;
91
- }
92
- get onDidAddView() {
93
- return this.component.onDidAddView;
94
- }
95
- get onDidRemoveView() {
96
- return this.component.onDidRemoveView;
97
- }
98
- get onDidDrop() {
99
- const emitter = new Emitter();
100
- const disposable = this.component.onDidDrop((e) => {
101
- emitter.fire(Object.assign(Object.assign({}, e), { api: this }));
102
- });
103
- emitter.dispose = () => {
104
- disposable.dispose();
105
- emitter.dispose();
106
- };
107
- return emitter.event;
108
- }
109
- constructor(component) {
110
- this.component = component;
111
- }
112
- removePanel(panel) {
113
- this.component.removePanel(panel);
114
- }
115
- getPanel(id) {
116
- return this.component.getPanel(id);
117
- }
118
- movePanel(from, to) {
119
- this.component.movePanel(from, to);
120
- }
121
- focus() {
122
- this.component.focus();
123
- }
124
- layout(width, height) {
125
- this.component.layout(width, height);
126
- }
127
- addPanel(options) {
128
- return this.component.addPanel(options);
129
- }
130
- fromJSON(data) {
131
- this.component.fromJSON(data);
132
- }
133
- toJSON() {
134
- return this.component.toJSON();
135
- }
136
- clear() {
137
- this.component.clear();
138
- }
139
- }
140
- export class GridviewApi {
141
- get minimumHeight() {
142
- return this.component.minimumHeight;
143
- }
144
- get maximumHeight() {
145
- return this.component.maximumHeight;
146
- }
147
- get minimumWidth() {
148
- return this.component.minimumWidth;
149
- }
150
- get maximumWidth() {
151
- return this.component.maximumWidth;
152
- }
153
- get width() {
154
- return this.component.width;
155
- }
156
- get height() {
157
- return this.component.height;
158
- }
159
- get onDidLayoutChange() {
160
- return this.component.onDidLayoutChange;
161
- }
162
- get onDidAddPanel() {
163
- return this.component.onDidAddGroup;
164
- }
165
- get onDidRemovePanel() {
166
- return this.component.onDidRemoveGroup;
167
- }
168
- get onDidActivePanelChange() {
169
- return this.component.onDidActiveGroupChange;
170
- }
171
- get onDidLayoutFromJSON() {
172
- return this.component.onDidLayoutFromJSON;
173
- }
174
- get panels() {
175
- return this.component.groups;
176
- }
177
- get orientation() {
178
- return this.component.orientation;
179
- }
180
- set orientation(value) {
181
- this.component.updateOptions({ orientation: value });
182
- }
183
- constructor(component) {
184
- this.component = component;
185
- }
186
- focus() {
187
- this.component.focus();
188
- }
189
- layout(width, height, force = false) {
190
- this.component.layout(width, height, force);
191
- }
192
- addPanel(options) {
193
- return this.component.addPanel(options);
194
- }
195
- removePanel(panel, sizing) {
196
- this.component.removePanel(panel, sizing);
197
- }
198
- movePanel(panel, options) {
199
- this.component.movePanel(panel, options);
200
- }
201
- getPanel(id) {
202
- return this.component.getPanel(id);
203
- }
204
- fromJSON(data) {
205
- return this.component.fromJSON(data);
206
- }
207
- toJSON() {
208
- return this.component.toJSON();
209
- }
210
- clear() {
211
- this.component.clear();
212
- }
213
- }
214
- export class DockviewApi {
215
- get id() {
216
- return this.component.id;
217
- }
218
- get width() {
219
- return this.component.width;
220
- }
221
- get height() {
222
- return this.component.height;
223
- }
224
- get minimumHeight() {
225
- return this.component.minimumHeight;
226
- }
227
- get maximumHeight() {
228
- return this.component.maximumHeight;
229
- }
230
- get minimumWidth() {
231
- return this.component.minimumWidth;
232
- }
233
- get maximumWidth() {
234
- return this.component.maximumWidth;
235
- }
236
- get size() {
237
- return this.component.size;
238
- }
239
- get totalPanels() {
240
- return this.component.totalPanels;
241
- }
242
- get onDidActiveGroupChange() {
243
- return this.component.onDidActiveGroupChange;
244
- }
245
- get onDidAddGroup() {
246
- return this.component.onDidAddGroup;
247
- }
248
- get onDidRemoveGroup() {
249
- return this.component.onDidRemoveGroup;
250
- }
251
- get onDidActivePanelChange() {
252
- return this.component.onDidActivePanelChange;
253
- }
254
- get onDidAddPanel() {
255
- return this.component.onDidAddPanel;
256
- }
257
- get onDidRemovePanel() {
258
- return this.component.onDidRemovePanel;
259
- }
260
- get onDidLayoutFromJSON() {
261
- return this.component.onDidLayoutFromJSON;
262
- }
263
- get onDidLayoutChange() {
264
- return this.component.onDidLayoutChange;
265
- }
266
- get onDidDrop() {
267
- return this.component.onDidDrop;
268
- }
269
- get onWillDragGroup() {
270
- return this.component.onWillDragGroup;
271
- }
272
- get onWillDragPanel() {
273
- return this.component.onWillDragPanel;
274
- }
275
- get panels() {
276
- return this.component.panels;
277
- }
278
- get groups() {
279
- return this.component.groups;
280
- }
281
- get activePanel() {
282
- return this.component.activePanel;
283
- }
284
- get activeGroup() {
285
- return this.component.activeGroup;
286
- }
287
- constructor(component) {
288
- this.component = component;
289
- }
290
- focus() {
291
- this.component.focus();
292
- }
293
- getPanel(id) {
294
- return this.component.getGroupPanel(id);
295
- }
296
- layout(width, height, force = false) {
297
- this.component.layout(width, height, force);
298
- }
299
- addPanel(options) {
300
- return this.component.addPanel(options);
301
- }
302
- removePanel(panel) {
303
- this.component.removePanel(panel);
304
- }
305
- addGroup(options) {
306
- return this.component.addGroup(options);
307
- }
308
- moveToNext(options) {
309
- this.component.moveToNext(options);
310
- }
311
- moveToPrevious(options) {
312
- this.component.moveToPrevious(options);
313
- }
314
- closeAllGroups() {
315
- return this.component.closeAllGroups();
316
- }
317
- removeGroup(group) {
318
- this.component.removeGroup(group);
319
- }
320
- getGroup(id) {
321
- return this.component.getPanel(id);
322
- }
323
- addFloatingGroup(item, coord) {
324
- return this.component.addFloatingGroup(item, coord);
325
- }
326
- fromJSON(data) {
327
- this.component.fromJSON(data);
328
- }
329
- toJSON() {
330
- return this.component.toJSON();
331
- }
332
- clear() {
333
- this.component.clear();
334
- }
335
- }
1
+ import { Emitter } from '../events';
2
+ export class SplitviewApi {
3
+ /**
4
+ * The minimum size the component can reach where size is measured in the direction of orientation provided.
5
+ */
6
+ get minimumSize() {
7
+ return this.component.minimumSize;
8
+ }
9
+ /**
10
+ * The maximum size the component can reach where size is measured in the direction of orientation provided.
11
+ */
12
+ get maximumSize() {
13
+ return this.component.maximumSize;
14
+ }
15
+ /**
16
+ * Width of the component.
17
+ */
18
+ get width() {
19
+ return this.component.width;
20
+ }
21
+ /**
22
+ * Height of the component.
23
+ */
24
+ get height() {
25
+ return this.component.height;
26
+ }
27
+ /**
28
+ * The current number of panels.
29
+ */
30
+ get length() {
31
+ return this.component.length;
32
+ }
33
+ /**
34
+ * The current orientation of the component.
35
+ */
36
+ get orientation() {
37
+ return this.component.orientation;
38
+ }
39
+ /**
40
+ * The list of current panels.
41
+ */
42
+ get panels() {
43
+ return this.component.panels;
44
+ }
45
+ /**
46
+ * Invoked after a layout is loaded through the `fromJSON` method.
47
+ */
48
+ get onDidLayoutFromJSON() {
49
+ return this.component.onDidLayoutFromJSON;
50
+ }
51
+ /**
52
+ * Invoked whenever any aspect of the layout changes.
53
+ * If listening to this event it may be worth debouncing ouputs.
54
+ */
55
+ get onDidLayoutChange() {
56
+ return this.component.onDidLayoutChange;
57
+ }
58
+ /**
59
+ * Invoked when a view is added.
60
+ */
61
+ get onDidAddView() {
62
+ return this.component.onDidAddView;
63
+ }
64
+ /**
65
+ * Invoked when a view is removed.
66
+ */
67
+ get onDidRemoveView() {
68
+ return this.component.onDidRemoveView;
69
+ }
70
+ constructor(component) {
71
+ this.component = component;
72
+ }
73
+ /**
74
+ * Update configuratable options.
75
+ */
76
+ updateOptions(options) {
77
+ this.component.updateOptions(options);
78
+ }
79
+ /**
80
+ * Removes an existing panel and optionally provide a `Sizing` method
81
+ * for the subsequent resize.
82
+ */
83
+ removePanel(panel, sizing) {
84
+ this.component.removePanel(panel, sizing);
85
+ }
86
+ /**
87
+ * Focus the component.
88
+ */
89
+ focus() {
90
+ this.component.focus();
91
+ }
92
+ /**
93
+ * Get the reference to a panel given it's `string` id.
94
+ */
95
+ getPanel(id) {
96
+ return this.component.getPanel(id);
97
+ }
98
+ /**
99
+ * Layout the panel with a width and height.
100
+ */
101
+ layout(width, height) {
102
+ return this.component.layout(width, height);
103
+ }
104
+ /**
105
+ * Add a new panel and return the created instance.
106
+ */
107
+ addPanel(options) {
108
+ return this.component.addPanel(options);
109
+ }
110
+ /**
111
+ * Move a panel given it's current and desired index.
112
+ */
113
+ movePanel(from, to) {
114
+ this.component.movePanel(from, to);
115
+ }
116
+ /**
117
+ * Deserialize a layout to built a splitivew.
118
+ */
119
+ fromJSON(data) {
120
+ this.component.fromJSON(data);
121
+ }
122
+ /** Serialize a layout */
123
+ toJSON() {
124
+ return this.component.toJSON();
125
+ }
126
+ /**
127
+ * Remove all panels and clear the component.
128
+ */
129
+ clear() {
130
+ this.component.clear();
131
+ }
132
+ }
133
+ export class PaneviewApi {
134
+ /**
135
+ * The minimum size the component can reach where size is measured in the direction of orientation provided.
136
+ */
137
+ get minimumSize() {
138
+ return this.component.minimumSize;
139
+ }
140
+ /**
141
+ * The maximum size the component can reach where size is measured in the direction of orientation provided.
142
+ */
143
+ get maximumSize() {
144
+ return this.component.maximumSize;
145
+ }
146
+ /**
147
+ * Width of the component.
148
+ */
149
+ get width() {
150
+ return this.component.width;
151
+ }
152
+ /**
153
+ * Height of the component.
154
+ */
155
+ get height() {
156
+ return this.component.height;
157
+ }
158
+ /**
159
+ * All panel objects.
160
+ */
161
+ get panels() {
162
+ return this.component.panels;
163
+ }
164
+ /**
165
+ * Invoked when any layout change occures, an aggregation of many events.
166
+ */
167
+ get onDidLayoutChange() {
168
+ return this.component.onDidLayoutChange;
169
+ }
170
+ /**
171
+ * Invoked after a layout is deserialzied using the `fromJSON` method.
172
+ */
173
+ get onDidLayoutFromJSON() {
174
+ return this.component.onDidLayoutFromJSON;
175
+ }
176
+ /**
177
+ * Invoked when a panel is added. May be called multiple times when moving panels.
178
+ */
179
+ get onDidAddView() {
180
+ return this.component.onDidAddView;
181
+ }
182
+ /**
183
+ * Invoked when a panel is removed. May be called multiple times when moving panels.
184
+ */
185
+ get onDidRemoveView() {
186
+ return this.component.onDidRemoveView;
187
+ }
188
+ /**
189
+ * Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality.
190
+ */
191
+ get onDidDrop() {
192
+ const emitter = new Emitter();
193
+ const disposable = this.component.onDidDrop((e) => {
194
+ emitter.fire(Object.assign(Object.assign({}, e), { api: this }));
195
+ });
196
+ emitter.dispose = () => {
197
+ disposable.dispose();
198
+ emitter.dispose();
199
+ };
200
+ return emitter.event;
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
+ export class GridviewApi {
261
+ /**
262
+ * Width of the component.
263
+ */
264
+ get width() {
265
+ return this.component.width;
266
+ }
267
+ /**
268
+ * Height of the component.
269
+ */
270
+ get height() {
271
+ return this.component.height;
272
+ }
273
+ /**
274
+ * Minimum height of the component.
275
+ */
276
+ get minimumHeight() {
277
+ return this.component.minimumHeight;
278
+ }
279
+ /**
280
+ * Maximum height of the component.
281
+ */
282
+ get maximumHeight() {
283
+ return this.component.maximumHeight;
284
+ }
285
+ /**
286
+ * Minimum width of the component.
287
+ */
288
+ get minimumWidth() {
289
+ return this.component.minimumWidth;
290
+ }
291
+ /**
292
+ * Maximum width of the component.
293
+ */
294
+ get maximumWidth() {
295
+ return this.component.maximumWidth;
296
+ }
297
+ /**
298
+ * Invoked when any layout change occures, an aggregation of many events.
299
+ */
300
+ get onDidLayoutChange() {
301
+ return this.component.onDidLayoutChange;
302
+ }
303
+ /**
304
+ * Invoked when a panel is added. May be called multiple times when moving panels.
305
+ */
306
+ get onDidAddPanel() {
307
+ return this.component.onDidAddGroup;
308
+ }
309
+ /**
310
+ * Invoked when a panel is removed. May be called multiple times when moving panels.
311
+ */
312
+ get onDidRemovePanel() {
313
+ return this.component.onDidRemoveGroup;
314
+ }
315
+ /**
316
+ * Invoked when the active panel changes. May be undefined if no panel is active.
317
+ */
318
+ get onDidActivePanelChange() {
319
+ return this.component.onDidActiveGroupChange;
320
+ }
321
+ /**
322
+ * Invoked after a layout is deserialzied using the `fromJSON` method.
323
+ */
324
+ get onDidLayoutFromJSON() {
325
+ return this.component.onDidLayoutFromJSON;
326
+ }
327
+ /**
328
+ * All panel objects.
329
+ */
330
+ get panels() {
331
+ return this.component.groups;
332
+ }
333
+ /**
334
+ * Current orientation. Can be changed after initialization.
335
+ */
336
+ get orientation() {
337
+ return this.component.orientation;
338
+ }
339
+ set orientation(value) {
340
+ this.component.updateOptions({ orientation: value });
341
+ }
342
+ constructor(component) {
343
+ this.component = component;
344
+ }
345
+ /**
346
+ * Focus the component. Will try to focus an active panel if one exists.
347
+ */
348
+ focus() {
349
+ this.component.focus();
350
+ }
351
+ /**
352
+ * Force resize the component to an exact width and height. Read about auto-resizing before using.
353
+ */
354
+ layout(width, height, force = false) {
355
+ this.component.layout(width, height, force);
356
+ }
357
+ /**
358
+ * Add a panel and return the created object.
359
+ */
360
+ addPanel(options) {
361
+ return this.component.addPanel(options);
362
+ }
363
+ /**
364
+ * Remove a panel given the panel object.
365
+ */
366
+ removePanel(panel, sizing) {
367
+ this.component.removePanel(panel, sizing);
368
+ }
369
+ /**
370
+ * Move a panel in a particular direction relative to another panel.
371
+ */
372
+ movePanel(panel, options) {
373
+ this.component.movePanel(panel, options);
374
+ }
375
+ /**
376
+ * Get a panel object given a `string` id. May return `undefined`.
377
+ */
378
+ getPanel(id) {
379
+ return this.component.getPanel(id);
380
+ }
381
+ /**
382
+ * Create a component from a serialized object.
383
+ */
384
+ fromJSON(data) {
385
+ return this.component.fromJSON(data);
386
+ }
387
+ /**
388
+ * Create a serialized object of the current component.
389
+ */
390
+ toJSON() {
391
+ return this.component.toJSON();
392
+ }
393
+ /**
394
+ * Reset the component back to an empty and default state.
395
+ */
396
+ clear() {
397
+ this.component.clear();
398
+ }
399
+ }
400
+ export class DockviewApi {
401
+ /**
402
+ * The unique identifier for this instance. Used to manage scope of Drag'n'Drop events.
403
+ */
404
+ get id() {
405
+ return this.component.id;
406
+ }
407
+ /**
408
+ * Width of the component.
409
+ */
410
+ get width() {
411
+ return this.component.width;
412
+ }
413
+ /**
414
+ * Height of the component.
415
+ */
416
+ get height() {
417
+ return this.component.height;
418
+ }
419
+ /**
420
+ * Minimum height of the component.
421
+ */
422
+ get minimumHeight() {
423
+ return this.component.minimumHeight;
424
+ }
425
+ /**
426
+ * Maximum height of the component.
427
+ */
428
+ get maximumHeight() {
429
+ return this.component.maximumHeight;
430
+ }
431
+ /**
432
+ * Minimum width of the component.
433
+ */
434
+ get minimumWidth() {
435
+ return this.component.minimumWidth;
436
+ }
437
+ /**
438
+ * Maximum width of the component.
439
+ */
440
+ get maximumWidth() {
441
+ return this.component.maximumWidth;
442
+ }
443
+ /**
444
+ * Total number of groups.
445
+ */
446
+ get size() {
447
+ return this.component.size;
448
+ }
449
+ /**
450
+ * Total number of panels.
451
+ */
452
+ get totalPanels() {
453
+ return this.component.totalPanels;
454
+ }
455
+ /**
456
+ * Invoked when the active group changes. May be undefined if no group is active.
457
+ */
458
+ get onDidActiveGroupChange() {
459
+ return this.component.onDidActiveGroupChange;
460
+ }
461
+ /**
462
+ * Invoked when a group is added. May be called multiple times when moving groups.
463
+ */
464
+ get onDidAddGroup() {
465
+ return this.component.onDidAddGroup;
466
+ }
467
+ /**
468
+ * Invoked when a group is removed. May be called multiple times when moving groups.
469
+ */
470
+ get onDidRemoveGroup() {
471
+ return this.component.onDidRemoveGroup;
472
+ }
473
+ /**
474
+ * Invoked when the active panel changes. May be undefined if no panel is active.
475
+ */
476
+ get onDidActivePanelChange() {
477
+ return this.component.onDidActivePanelChange;
478
+ }
479
+ /**
480
+ * Invoked when a panel is added. May be called multiple times when moving panels.
481
+ */
482
+ get onDidAddPanel() {
483
+ return this.component.onDidAddPanel;
484
+ }
485
+ /**
486
+ * Invoked when a panel is removed. May be called multiple times when moving panels.
487
+ */
488
+ get onDidRemovePanel() {
489
+ return this.component.onDidRemovePanel;
490
+ }
491
+ /**
492
+ * Invoked after a layout is deserialzied using the `fromJSON` method.
493
+ */
494
+ get onDidLayoutFromJSON() {
495
+ return this.component.onDidLayoutFromJSON;
496
+ }
497
+ /**
498
+ * Invoked when any layout change occures, an aggregation of many events.
499
+ */
500
+ get onDidLayoutChange() {
501
+ return this.component.onDidLayoutChange;
502
+ }
503
+ /**
504
+ * Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality.
505
+ */
506
+ get onDidDrop() {
507
+ return this.component.onDidDrop;
508
+ }
509
+ /**
510
+ * Invoked before a group is dragged. Exposed for custom Drag'n'Drop functionality.
511
+ */
512
+ get onWillDragGroup() {
513
+ return this.component.onWillDragGroup;
514
+ }
515
+ /**
516
+ * Invoked before a panel is dragged. Exposed for custom Drag'n'Drop functionality.
517
+ */
518
+ get onWillDragPanel() {
519
+ return this.component.onWillDragPanel;
520
+ }
521
+ /**
522
+ * All panel objects.
523
+ */
524
+ get panels() {
525
+ return this.component.panels;
526
+ }
527
+ /**
528
+ * All group objects.
529
+ */
530
+ get groups() {
531
+ return this.component.groups;
532
+ }
533
+ /**
534
+ * Active panel object.
535
+ */
536
+ get activePanel() {
537
+ return this.component.activePanel;
538
+ }
539
+ /**
540
+ * Active group object.
541
+ */
542
+ get activeGroup() {
543
+ return this.component.activeGroup;
544
+ }
545
+ constructor(component) {
546
+ this.component = component;
547
+ }
548
+ /**
549
+ * Focus the component. Will try to focus an active panel if one exists.
550
+ */
551
+ focus() {
552
+ this.component.focus();
553
+ }
554
+ /**
555
+ * Get a panel object given a `string` id. May return `undefined`.
556
+ */
557
+ getPanel(id) {
558
+ return this.component.getGroupPanel(id);
559
+ }
560
+ /**
561
+ * Force resize the component to an exact width and height. Read about auto-resizing before using.
562
+ */
563
+ layout(width, height, force = false) {
564
+ this.component.layout(width, height, force);
565
+ }
566
+ /**
567
+ * Add a panel and return the created object.
568
+ */
569
+ addPanel(options) {
570
+ return this.component.addPanel(options);
571
+ }
572
+ /**
573
+ * Remove a panel given the panel object.
574
+ */
575
+ removePanel(panel) {
576
+ this.component.removePanel(panel);
577
+ }
578
+ /**
579
+ * Add a group and return the created object.
580
+ */
581
+ addGroup(options) {
582
+ return this.component.addGroup(options);
583
+ }
584
+ /**
585
+ * Close all groups and panels.
586
+ */
587
+ closeAllGroups() {
588
+ return this.component.closeAllGroups();
589
+ }
590
+ /**
591
+ * Remove a group and any panels within the group.
592
+ */
593
+ removeGroup(group) {
594
+ this.component.removeGroup(group);
595
+ }
596
+ /**
597
+ * Get a group object given a `string` id. May return undefined.
598
+ */
599
+ getGroup(id) {
600
+ return this.component.getPanel(id);
601
+ }
602
+ /**
603
+ * Add a floating group
604
+ */
605
+ addFloatingGroup(item, coord) {
606
+ return this.component.addFloatingGroup(item, coord);
607
+ }
608
+ /**
609
+ * Create a component from a serialized object.
610
+ */
611
+ fromJSON(data) {
612
+ this.component.fromJSON(data);
613
+ }
614
+ /**
615
+ * Create a serialized object of the current component.
616
+ */
617
+ toJSON() {
618
+ return this.component.toJSON();
619
+ }
620
+ /**
621
+ * Reset the component back to an empty and default state.
622
+ */
623
+ clear() {
624
+ this.component.clear();
625
+ }
626
+ /**
627
+ * Move the focus progmatically to the next panel or group.
628
+ */
629
+ moveToNext(options) {
630
+ this.component.moveToNext(options);
631
+ }
632
+ /**
633
+ * Move the focus progmatically to the previous panel or group.
634
+ */
635
+ moveToPrevious(options) {
636
+ this.component.moveToPrevious(options);
637
+ }
638
+ maximizeGroup(panel) {
639
+ this.component.maximizeGroup(panel.group);
640
+ }
641
+ hasMaximizedGroup() {
642
+ return this.component.hasMaximizedGroup();
643
+ }
644
+ exitMaxmizedGroup() {
645
+ this.component.exitMaximizedGroup();
646
+ }
647
+ get onDidMaxmizedGroupChange() {
648
+ return this.component.onDidMaxmizedGroupChange;
649
+ }
650
+ /**
651
+ * Add a popout group in a new Window
652
+ */
653
+ addPopoutGroup(item, options) {
654
+ this.component.addPopoutGroup(item, options);
655
+ }
656
+ }
336
657
  //# sourceMappingURL=component.api.js.map