dockview-core 1.8.4 → 1.8.5

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 (334) hide show
  1. package/README.md +51 -51
  2. package/dist/cjs/api/component.api.d.ts +455 -152
  3. package/dist/cjs/api/component.api.d.ts.map +1 -1
  4. package/dist/cjs/api/component.api.js +895 -592
  5. package/dist/cjs/api/component.api.js.map +1 -1
  6. package/dist/cjs/api/dockviewGroupPanelApi.d.ts +29 -29
  7. package/dist/cjs/api/dockviewGroupPanelApi.js +53 -53
  8. package/dist/cjs/api/dockviewPanelApi.d.ts +47 -47
  9. package/dist/cjs/api/dockviewPanelApi.js +88 -88
  10. package/dist/cjs/api/gridviewPanelApi.d.ts +37 -37
  11. package/dist/cjs/api/gridviewPanelApi.js +47 -47
  12. package/dist/cjs/api/panelApi.d.ts +88 -88
  13. package/dist/cjs/api/panelApi.js +135 -135
  14. package/dist/cjs/api/paneviewPanelApi.d.ts +26 -26
  15. package/dist/cjs/api/paneviewPanelApi.js +57 -57
  16. package/dist/cjs/api/splitviewPanelApi.d.ts +32 -32
  17. package/dist/cjs/api/splitviewPanelApi.js +47 -47
  18. package/dist/cjs/array.d.ts +13 -13
  19. package/dist/cjs/array.js +67 -67
  20. package/dist/cjs/dnd/abstractDragHandler.d.ts +12 -12
  21. package/dist/cjs/dnd/abstractDragHandler.js +141 -141
  22. package/dist/cjs/dnd/dataTransfer.d.ts +30 -31
  23. package/dist/cjs/dnd/dataTransfer.d.ts.map +1 -1
  24. package/dist/cjs/dnd/dataTransfer.js +99 -100
  25. package/dist/cjs/dnd/dataTransfer.js.map +1 -1
  26. package/dist/cjs/dnd/dnd.d.ts +27 -27
  27. package/dist/cjs/dnd/dnd.js +59 -59
  28. package/dist/cjs/dnd/droptarget.d.ts +53 -53
  29. package/dist/cjs/dnd/droptarget.js +304 -304
  30. package/dist/cjs/dnd/droptarget.js.map +1 -1
  31. package/dist/cjs/dnd/ghost.d.ts +1 -1
  32. package/dist/cjs/dnd/ghost.js +15 -15
  33. package/dist/cjs/dnd/groupDragHandler.d.ts +12 -12
  34. package/dist/cjs/dnd/groupDragHandler.js +77 -77
  35. package/dist/cjs/dnd/overlay.d.ts +43 -43
  36. package/dist/cjs/dnd/overlay.d.ts.map +1 -1
  37. package/dist/cjs/dnd/overlay.js +412 -412
  38. package/dist/cjs/dnd/overlay.js.map +1 -1
  39. package/dist/cjs/dockview/components/panel/content.d.ts +30 -30
  40. package/dist/cjs/dockview/components/panel/content.js +100 -100
  41. package/dist/cjs/dockview/components/tab/defaultTab.d.ts +21 -21
  42. package/dist/cjs/dockview/components/tab/defaultTab.js +105 -105
  43. package/dist/cjs/dockview/components/tab/tab.d.ts +34 -34
  44. package/dist/cjs/dockview/components/tab/tab.js +120 -120
  45. package/dist/cjs/dockview/components/titlebar/tabsContainer.d.ts +81 -81
  46. package/dist/cjs/dockview/components/titlebar/tabsContainer.js +325 -325
  47. package/dist/cjs/dockview/components/titlebar/voidContainer.d.ts +17 -17
  48. package/dist/cjs/dockview/components/titlebar/voidContainer.js +77 -77
  49. package/dist/cjs/dockview/components/watermark/watermark.d.ts +18 -18
  50. package/dist/cjs/dockview/components/watermark/watermark.js +87 -87
  51. package/dist/cjs/dockview/deserializer.d.ts +12 -12
  52. package/dist/cjs/dockview/deserializer.js +33 -33
  53. package/dist/cjs/dockview/deserializer.js.map +1 -1
  54. package/dist/cjs/dockview/dockviewComponent.d.ts +159 -159
  55. package/dist/cjs/dockview/dockviewComponent.d.ts.map +1 -1
  56. package/dist/cjs/dockview/dockviewComponent.js +1170 -1156
  57. package/dist/cjs/dockview/dockviewComponent.js.map +1 -1
  58. package/dist/cjs/dockview/dockviewFloatingGroupPanel.d.ts +23 -23
  59. package/dist/cjs/dockview/dockviewFloatingGroupPanel.js +34 -34
  60. package/dist/cjs/dockview/dockviewGroupPanel.d.ts +30 -30
  61. package/dist/cjs/dockview/dockviewGroupPanel.js +97 -97
  62. package/dist/cjs/dockview/dockviewGroupPanelModel.d.ts +185 -185
  63. package/dist/cjs/dockview/dockviewGroupPanelModel.js +632 -631
  64. package/dist/cjs/dockview/dockviewGroupPanelModel.js.map +1 -1
  65. package/dist/cjs/dockview/dockviewPanel.d.ts +41 -41
  66. package/dist/cjs/dockview/dockviewPanel.js +172 -171
  67. package/dist/cjs/dockview/dockviewPanel.js.map +1 -1
  68. package/dist/cjs/dockview/dockviewPanelModel.d.ts +35 -35
  69. package/dist/cjs/dockview/dockviewPanelModel.js +98 -98
  70. package/dist/cjs/dockview/dockviewPanelModel.js.map +1 -1
  71. package/dist/cjs/dockview/options.d.ts +133 -136
  72. package/dist/cjs/dockview/options.d.ts.map +1 -1
  73. package/dist/cjs/dockview/options.js +31 -31
  74. package/dist/cjs/dockview/types.d.ts +63 -63
  75. package/dist/cjs/dockview/types.js +10 -10
  76. package/dist/cjs/dockview/types.js.map +1 -1
  77. package/dist/cjs/dom.d.ts +16 -16
  78. package/dist/cjs/dom.js +197 -197
  79. package/dist/cjs/events.d.ts +47 -47
  80. package/dist/cjs/events.js +216 -216
  81. package/dist/cjs/events.js.map +1 -1
  82. package/dist/cjs/gridview/baseComponentGridview.d.ts +88 -87
  83. package/dist/cjs/gridview/baseComponentGridview.d.ts.map +1 -1
  84. package/dist/cjs/gridview/baseComponentGridview.js +270 -270
  85. package/dist/cjs/gridview/baseComponentGridview.js.map +1 -1
  86. package/dist/cjs/gridview/basePanelView.d.ts +40 -40
  87. package/dist/cjs/gridview/basePanelView.js +156 -156
  88. package/dist/cjs/gridview/branchNode.d.ts +49 -49
  89. package/dist/cjs/gridview/branchNode.js +343 -343
  90. package/dist/cjs/gridview/gridview.d.ts +133 -133
  91. package/dist/cjs/gridview/gridview.js +547 -547
  92. package/dist/cjs/gridview/gridviewComponent.d.ts +80 -80
  93. package/dist/cjs/gridview/gridviewComponent.d.ts.map +1 -1
  94. package/dist/cjs/gridview/gridviewComponent.js +362 -360
  95. package/dist/cjs/gridview/gridviewComponent.js.map +1 -1
  96. package/dist/cjs/gridview/gridviewPanel.d.ts +65 -65
  97. package/dist/cjs/gridview/gridviewPanel.js +214 -214
  98. package/dist/cjs/gridview/leafNode.d.ts +34 -34
  99. package/dist/cjs/gridview/leafNode.js +170 -170
  100. package/dist/cjs/gridview/leafNode.js.map +1 -1
  101. package/dist/cjs/gridview/options.d.ts +17 -18
  102. package/dist/cjs/gridview/options.d.ts.map +1 -1
  103. package/dist/cjs/gridview/options.js +2 -2
  104. package/dist/cjs/gridview/types.d.ts +3 -3
  105. package/dist/cjs/gridview/types.js +2 -2
  106. package/dist/cjs/index.d.ts +42 -42
  107. package/dist/cjs/index.js +61 -61
  108. package/dist/cjs/lifecycle.d.ts +23 -23
  109. package/dist/cjs/lifecycle.js +65 -65
  110. package/dist/cjs/lifecycle.js.map +1 -1
  111. package/dist/cjs/math.d.ts +5 -5
  112. package/dist/cjs/math.js +34 -34
  113. package/dist/cjs/panel/componentFactory.d.ts +11 -10
  114. package/dist/cjs/panel/componentFactory.d.ts.map +1 -1
  115. package/dist/cjs/panel/componentFactory.js +30 -30
  116. package/dist/cjs/panel/componentFactory.js.map +1 -1
  117. package/dist/cjs/panel/types.d.ts +33 -33
  118. package/dist/cjs/panel/types.js +2 -2
  119. package/dist/cjs/paneview/defaultPaneviewHeader.d.ts +21 -21
  120. package/dist/cjs/paneview/defaultPaneviewHeader.js +90 -90
  121. package/dist/cjs/paneview/draggablePaneviewPanel.d.ts +21 -21
  122. package/dist/cjs/paneview/draggablePaneviewPanel.js +131 -131
  123. package/dist/cjs/paneview/options.d.ts +25 -28
  124. package/dist/cjs/paneview/options.d.ts.map +1 -1
  125. package/dist/cjs/paneview/options.js +2 -2
  126. package/dist/cjs/paneview/paneview.d.ts +40 -40
  127. package/dist/cjs/paneview/paneview.d.ts.map +1 -1
  128. package/dist/cjs/paneview/paneview.js +200 -201
  129. package/dist/cjs/paneview/paneview.js.map +1 -1
  130. package/dist/cjs/paneview/paneviewComponent.d.ts +128 -128
  131. package/dist/cjs/paneview/paneviewComponent.js +400 -397
  132. package/dist/cjs/paneview/paneviewComponent.js.map +1 -1
  133. package/dist/cjs/paneview/paneviewPanel.d.ts +92 -92
  134. package/dist/cjs/paneview/paneviewPanel.d.ts.map +1 -1
  135. package/dist/cjs/paneview/paneviewPanel.js +275 -275
  136. package/dist/cjs/resizable.d.ts +10 -7
  137. package/dist/cjs/resizable.d.ts.map +1 -1
  138. package/dist/cjs/resizable.js +79 -64
  139. package/dist/cjs/resizable.js.map +1 -1
  140. package/dist/cjs/splitview/options.d.ts +26 -27
  141. package/dist/cjs/splitview/options.d.ts.map +1 -1
  142. package/dist/cjs/splitview/options.js +2 -2
  143. package/dist/cjs/splitview/splitview.d.ts +128 -128
  144. package/dist/cjs/splitview/splitview.js +936 -936
  145. package/dist/cjs/splitview/splitview.js.map +1 -1
  146. package/dist/cjs/splitview/splitviewComponent.d.ts +101 -101
  147. package/dist/cjs/splitview/splitviewComponent.js +395 -392
  148. package/dist/cjs/splitview/splitviewComponent.js.map +1 -1
  149. package/dist/cjs/splitview/splitviewPanel.d.ts +45 -45
  150. package/dist/cjs/splitview/splitviewPanel.d.ts.map +1 -1
  151. package/dist/cjs/splitview/splitviewPanel.js +179 -179
  152. package/dist/cjs/splitview/splitviewPanel.js.map +1 -1
  153. package/dist/cjs/splitview/viewItem.d.ts +25 -25
  154. package/dist/cjs/splitview/viewItem.js +119 -119
  155. package/dist/cjs/svg.d.ts +3 -3
  156. package/dist/cjs/svg.js +43 -43
  157. package/dist/cjs/types.d.ts +2 -2
  158. package/dist/cjs/types.js +2 -2
  159. package/dist/dockview-core.amd.js +7650 -7316
  160. package/dist/dockview-core.amd.js.map +1 -1
  161. package/dist/dockview-core.amd.min.js +2 -2
  162. package/dist/dockview-core.amd.min.js.map +1 -1
  163. package/dist/dockview-core.amd.min.noStyle.js +2 -2
  164. package/dist/dockview-core.amd.min.noStyle.js.map +1 -1
  165. package/dist/dockview-core.amd.noStyle.js +7601 -7267
  166. package/dist/dockview-core.amd.noStyle.js.map +1 -1
  167. package/dist/dockview-core.cjs.js +7650 -7316
  168. package/dist/dockview-core.cjs.js.map +1 -1
  169. package/dist/dockview-core.esm.js +7650 -7316
  170. package/dist/dockview-core.esm.js.map +1 -1
  171. package/dist/dockview-core.esm.min.js +2 -2
  172. package/dist/dockview-core.esm.min.js.map +1 -1
  173. package/dist/dockview-core.js +7650 -7316
  174. package/dist/dockview-core.js.map +1 -1
  175. package/dist/dockview-core.min.js +2 -2
  176. package/dist/dockview-core.min.js.map +1 -1
  177. package/dist/dockview-core.min.noStyle.js +2 -2
  178. package/dist/dockview-core.min.noStyle.js.map +1 -1
  179. package/dist/dockview-core.noStyle.js +7601 -7267
  180. package/dist/dockview-core.noStyle.js.map +1 -1
  181. package/dist/esm/api/component.api.d.ts +455 -152
  182. package/dist/esm/api/component.api.d.ts.map +1 -1
  183. package/dist/esm/api/component.api.js +638 -335
  184. package/dist/esm/api/component.api.js.map +1 -1
  185. package/dist/esm/api/dockviewGroupPanelApi.d.ts +29 -29
  186. package/dist/esm/api/dockviewGroupPanelApi.js +27 -27
  187. package/dist/esm/api/dockviewPanelApi.d.ts +47 -47
  188. package/dist/esm/api/dockviewPanelApi.js +53 -53
  189. package/dist/esm/api/gridviewPanelApi.d.ts +37 -37
  190. package/dist/esm/api/gridviewPanelApi.js +25 -25
  191. package/dist/esm/api/panelApi.d.ts +88 -88
  192. package/dist/esm/api/panelApi.js +93 -93
  193. package/dist/esm/api/paneviewPanelApi.d.ts +26 -26
  194. package/dist/esm/api/paneviewPanelApi.js +27 -27
  195. package/dist/esm/api/splitviewPanelApi.d.ts +32 -32
  196. package/dist/esm/api/splitviewPanelApi.js +25 -25
  197. package/dist/esm/array.d.ts +13 -13
  198. package/dist/esm/array.js +57 -57
  199. package/dist/esm/dnd/abstractDragHandler.d.ts +12 -12
  200. package/dist/esm/dnd/abstractDragHandler.js +63 -63
  201. package/dist/esm/dnd/dataTransfer.d.ts +30 -31
  202. package/dist/esm/dnd/dataTransfer.d.ts.map +1 -1
  203. package/dist/esm/dnd/dataTransfer.js +66 -69
  204. package/dist/esm/dnd/dataTransfer.js.map +1 -1
  205. package/dist/esm/dnd/dnd.d.ts +27 -27
  206. package/dist/esm/dnd/dnd.js +36 -36
  207. package/dist/esm/dnd/droptarget.d.ts +53 -53
  208. package/dist/esm/dnd/droptarget.js +274 -274
  209. package/dist/esm/dnd/droptarget.js.map +1 -1
  210. package/dist/esm/dnd/ghost.d.ts +1 -1
  211. package/dist/esm/dnd/ghost.js +11 -11
  212. package/dist/esm/dnd/groupDragHandler.d.ts +12 -12
  213. package/dist/esm/dnd/groupDragHandler.js +54 -54
  214. package/dist/esm/dnd/overlay.d.ts +43 -43
  215. package/dist/esm/dnd/overlay.d.ts.map +1 -1
  216. package/dist/esm/dnd/overlay.js +304 -304
  217. package/dist/esm/dnd/overlay.js.map +1 -1
  218. package/dist/esm/dockview/components/panel/content.d.ts +30 -30
  219. package/dist/esm/dockview/components/panel/content.js +73 -73
  220. package/dist/esm/dockview/components/tab/defaultTab.d.ts +21 -21
  221. package/dist/esm/dockview/components/tab/defaultTab.js +67 -67
  222. package/dist/esm/dockview/components/tab/tab.d.ts +34 -34
  223. package/dist/esm/dockview/components/tab/tab.js +90 -90
  224. package/dist/esm/dockview/components/titlebar/tabsContainer.d.ts +81 -81
  225. package/dist/esm/dockview/components/titlebar/tabsContainer.js +239 -239
  226. package/dist/esm/dockview/components/titlebar/voidContainer.d.ts +17 -17
  227. package/dist/esm/dockview/components/titlebar/voidContainer.js +51 -51
  228. package/dist/esm/dockview/components/watermark/watermark.d.ts +18 -18
  229. package/dist/esm/dockview/components/watermark/watermark.js +61 -61
  230. package/dist/esm/dockview/deserializer.d.ts +12 -12
  231. package/dist/esm/dockview/deserializer.js +28 -28
  232. package/dist/esm/dockview/deserializer.js.map +1 -1
  233. package/dist/esm/dockview/dockviewComponent.d.ts +159 -159
  234. package/dist/esm/dockview/dockviewComponent.d.ts.map +1 -1
  235. package/dist/esm/dockview/dockviewComponent.js +932 -918
  236. package/dist/esm/dockview/dockviewComponent.js.map +1 -1
  237. package/dist/esm/dockview/dockviewFloatingGroupPanel.d.ts +23 -23
  238. package/dist/esm/dockview/dockviewFloatingGroupPanel.js +12 -12
  239. package/dist/esm/dockview/dockviewGroupPanel.d.ts +30 -30
  240. package/dist/esm/dockview/dockviewGroupPanel.js +51 -51
  241. package/dist/esm/dockview/dockviewGroupPanelModel.d.ts +185 -185
  242. package/dist/esm/dockview/dockviewGroupPanelModel.js +499 -498
  243. package/dist/esm/dockview/dockviewGroupPanelModel.js.map +1 -1
  244. package/dist/esm/dockview/dockviewPanel.d.ts +41 -41
  245. package/dist/esm/dockview/dockviewPanel.js +105 -104
  246. package/dist/esm/dockview/dockviewPanel.js.map +1 -1
  247. package/dist/esm/dockview/dockviewPanelModel.d.ts +35 -35
  248. package/dist/esm/dockview/dockviewPanelModel.js +74 -74
  249. package/dist/esm/dockview/dockviewPanelModel.js.map +1 -1
  250. package/dist/esm/dockview/options.d.ts +133 -136
  251. package/dist/esm/dockview/options.d.ts.map +1 -1
  252. package/dist/esm/dockview/options.js +24 -24
  253. package/dist/esm/dockview/types.d.ts +63 -63
  254. package/dist/esm/dockview/types.js +7 -7
  255. package/dist/esm/dom.d.ts +16 -16
  256. package/dist/esm/dom.js +126 -126
  257. package/dist/esm/events.d.ts +47 -47
  258. package/dist/esm/events.js +156 -156
  259. package/dist/esm/events.js.map +1 -1
  260. package/dist/esm/gridview/baseComponentGridview.d.ts +88 -87
  261. package/dist/esm/gridview/baseComponentGridview.d.ts.map +1 -1
  262. package/dist/esm/gridview/baseComponentGridview.js +184 -184
  263. package/dist/esm/gridview/baseComponentGridview.js.map +1 -1
  264. package/dist/esm/gridview/basePanelView.d.ts +40 -40
  265. package/dist/esm/gridview/basePanelView.js +85 -85
  266. package/dist/esm/gridview/branchNode.d.ts +49 -49
  267. package/dist/esm/gridview/branchNode.js +219 -219
  268. package/dist/esm/gridview/gridview.d.ts +133 -133
  269. package/dist/esm/gridview/gridview.js +461 -461
  270. package/dist/esm/gridview/gridviewComponent.d.ts +80 -80
  271. package/dist/esm/gridview/gridviewComponent.d.ts.map +1 -1
  272. package/dist/esm/gridview/gridviewComponent.js +264 -262
  273. package/dist/esm/gridview/gridviewComponent.js.map +1 -1
  274. package/dist/esm/gridview/gridviewPanel.d.ts +65 -65
  275. package/dist/esm/gridview/gridviewPanel.js +151 -151
  276. package/dist/esm/gridview/leafNode.d.ts +34 -34
  277. package/dist/esm/gridview/leafNode.js +103 -103
  278. package/dist/esm/gridview/options.d.ts +17 -18
  279. package/dist/esm/gridview/options.d.ts.map +1 -1
  280. package/dist/esm/gridview/options.js +1 -1
  281. package/dist/esm/gridview/types.d.ts +3 -3
  282. package/dist/esm/gridview/types.js +1 -1
  283. package/dist/esm/index.d.ts +42 -42
  284. package/dist/esm/index.js +34 -34
  285. package/dist/esm/lifecycle.d.ts +23 -23
  286. package/dist/esm/lifecycle.js +41 -41
  287. package/dist/esm/math.d.ts +5 -5
  288. package/dist/esm/math.js +28 -28
  289. package/dist/esm/panel/componentFactory.d.ts +11 -10
  290. package/dist/esm/panel/componentFactory.d.ts.map +1 -1
  291. package/dist/esm/panel/componentFactory.js +24 -24
  292. package/dist/esm/panel/componentFactory.js.map +1 -1
  293. package/dist/esm/panel/types.d.ts +33 -33
  294. package/dist/esm/panel/types.js +1 -1
  295. package/dist/esm/paneview/defaultPaneviewHeader.d.ts +21 -21
  296. package/dist/esm/paneview/defaultPaneviewHeader.js +63 -63
  297. package/dist/esm/paneview/draggablePaneviewPanel.d.ts +21 -21
  298. package/dist/esm/paneview/draggablePaneviewPanel.js +92 -92
  299. package/dist/esm/paneview/options.d.ts +25 -28
  300. package/dist/esm/paneview/options.d.ts.map +1 -1
  301. package/dist/esm/paneview/options.js +1 -1
  302. package/dist/esm/paneview/paneview.d.ts +40 -40
  303. package/dist/esm/paneview/paneview.d.ts.map +1 -1
  304. package/dist/esm/paneview/paneview.js +145 -145
  305. package/dist/esm/paneview/paneviewComponent.d.ts +128 -128
  306. package/dist/esm/paneview/paneviewComponent.js +276 -273
  307. package/dist/esm/paneview/paneviewComponent.js.map +1 -1
  308. package/dist/esm/paneview/paneviewPanel.d.ts +92 -92
  309. package/dist/esm/paneview/paneviewPanel.d.ts.map +1 -1
  310. package/dist/esm/paneview/paneviewPanel.js +192 -192
  311. package/dist/esm/resizable.d.ts +10 -7
  312. package/dist/esm/resizable.d.ts.map +1 -1
  313. package/dist/esm/resizable.js +48 -38
  314. package/dist/esm/resizable.js.map +1 -1
  315. package/dist/esm/splitview/options.d.ts +26 -27
  316. package/dist/esm/splitview/options.d.ts.map +1 -1
  317. package/dist/esm/splitview/options.js +1 -1
  318. package/dist/esm/splitview/splitview.d.ts +128 -128
  319. package/dist/esm/splitview/splitview.js +704 -704
  320. package/dist/esm/splitview/splitviewComponent.d.ts +101 -101
  321. package/dist/esm/splitview/splitviewComponent.js +261 -258
  322. package/dist/esm/splitview/splitviewComponent.js.map +1 -1
  323. package/dist/esm/splitview/splitviewPanel.d.ts +45 -45
  324. package/dist/esm/splitview/splitviewPanel.d.ts.map +1 -1
  325. package/dist/esm/splitview/splitviewPanel.js +108 -108
  326. package/dist/esm/splitview/splitviewPanel.js.map +1 -1
  327. package/dist/esm/splitview/viewItem.d.ts +25 -25
  328. package/dist/esm/splitview/viewItem.js +74 -74
  329. package/dist/esm/svg.d.ts +3 -3
  330. package/dist/esm/svg.js +31 -31
  331. package/dist/esm/types.d.ts +2 -2
  332. package/dist/esm/types.js +1 -1
  333. package/package.json +30 -42
  334. package/LICENSE +0 -21
@@ -1,593 +1,896 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.DockviewApi = exports.GridviewApi = exports.PaneviewApi = exports.SplitviewApi = void 0;
15
- var events_1 = require("../events");
16
- var SplitviewApi = /** @class */ (function () {
17
- function SplitviewApi(component) {
18
- this.component = component;
19
- }
20
- Object.defineProperty(SplitviewApi.prototype, "minimumSize", {
21
- get: function () {
22
- return this.component.minimumSize;
23
- },
24
- enumerable: false,
25
- configurable: true
26
- });
27
- Object.defineProperty(SplitviewApi.prototype, "maximumSize", {
28
- get: function () {
29
- return this.component.maximumSize;
30
- },
31
- enumerable: false,
32
- configurable: true
33
- });
34
- Object.defineProperty(SplitviewApi.prototype, "height", {
35
- get: function () {
36
- return this.component.height;
37
- },
38
- enumerable: false,
39
- configurable: true
40
- });
41
- Object.defineProperty(SplitviewApi.prototype, "width", {
42
- get: function () {
43
- return this.component.width;
44
- },
45
- enumerable: false,
46
- configurable: true
47
- });
48
- Object.defineProperty(SplitviewApi.prototype, "length", {
49
- get: function () {
50
- return this.component.length;
51
- },
52
- enumerable: false,
53
- configurable: true
54
- });
55
- Object.defineProperty(SplitviewApi.prototype, "orientation", {
56
- get: function () {
57
- return this.component.orientation;
58
- },
59
- enumerable: false,
60
- configurable: true
61
- });
62
- Object.defineProperty(SplitviewApi.prototype, "panels", {
63
- get: function () {
64
- return this.component.panels;
65
- },
66
- enumerable: false,
67
- configurable: true
68
- });
69
- Object.defineProperty(SplitviewApi.prototype, "onDidLayoutFromJSON", {
70
- get: function () {
71
- return this.component.onDidLayoutFromJSON;
72
- },
73
- enumerable: false,
74
- configurable: true
75
- });
76
- Object.defineProperty(SplitviewApi.prototype, "onDidLayoutChange", {
77
- get: function () {
78
- return this.component.onDidLayoutChange;
79
- },
80
- enumerable: false,
81
- configurable: true
82
- });
83
- Object.defineProperty(SplitviewApi.prototype, "onDidAddView", {
84
- get: function () {
85
- return this.component.onDidAddView;
86
- },
87
- enumerable: false,
88
- configurable: true
89
- });
90
- Object.defineProperty(SplitviewApi.prototype, "onDidRemoveView", {
91
- get: function () {
92
- return this.component.onDidRemoveView;
93
- },
94
- enumerable: false,
95
- configurable: true
96
- });
97
- SplitviewApi.prototype.updateOptions = function (options) {
98
- this.component.updateOptions(options);
99
- };
100
- SplitviewApi.prototype.removePanel = function (panel, sizing) {
101
- this.component.removePanel(panel, sizing);
102
- };
103
- SplitviewApi.prototype.focus = function () {
104
- this.component.focus();
105
- };
106
- SplitviewApi.prototype.getPanel = function (id) {
107
- return this.component.getPanel(id);
108
- };
109
- SplitviewApi.prototype.layout = function (width, height) {
110
- return this.component.layout(width, height);
111
- };
112
- SplitviewApi.prototype.addPanel = function (options) {
113
- return this.component.addPanel(options);
114
- };
115
- SplitviewApi.prototype.movePanel = function (from, to) {
116
- this.component.movePanel(from, to);
117
- };
118
- SplitviewApi.prototype.fromJSON = function (data) {
119
- this.component.fromJSON(data);
120
- };
121
- SplitviewApi.prototype.toJSON = function () {
122
- return this.component.toJSON();
123
- };
124
- SplitviewApi.prototype.clear = function () {
125
- this.component.clear();
126
- };
127
- return SplitviewApi;
128
- }());
129
- exports.SplitviewApi = SplitviewApi;
130
- var PaneviewApi = /** @class */ (function () {
131
- function PaneviewApi(component) {
132
- this.component = component;
133
- }
134
- Object.defineProperty(PaneviewApi.prototype, "minimumSize", {
135
- get: function () {
136
- return this.component.minimumSize;
137
- },
138
- enumerable: false,
139
- configurable: true
140
- });
141
- Object.defineProperty(PaneviewApi.prototype, "maximumSize", {
142
- get: function () {
143
- return this.component.maximumSize;
144
- },
145
- enumerable: false,
146
- configurable: true
147
- });
148
- Object.defineProperty(PaneviewApi.prototype, "height", {
149
- get: function () {
150
- return this.component.height;
151
- },
152
- enumerable: false,
153
- configurable: true
154
- });
155
- Object.defineProperty(PaneviewApi.prototype, "width", {
156
- get: function () {
157
- return this.component.width;
158
- },
159
- enumerable: false,
160
- configurable: true
161
- });
162
- Object.defineProperty(PaneviewApi.prototype, "panels", {
163
- get: function () {
164
- return this.component.panels;
165
- },
166
- enumerable: false,
167
- configurable: true
168
- });
169
- Object.defineProperty(PaneviewApi.prototype, "onDidLayoutChange", {
170
- get: function () {
171
- return this.component.onDidLayoutChange;
172
- },
173
- enumerable: false,
174
- configurable: true
175
- });
176
- Object.defineProperty(PaneviewApi.prototype, "onDidLayoutFromJSON", {
177
- get: function () {
178
- return this.component.onDidLayoutFromJSON;
179
- },
180
- enumerable: false,
181
- configurable: true
182
- });
183
- Object.defineProperty(PaneviewApi.prototype, "onDidAddView", {
184
- get: function () {
185
- return this.component.onDidAddView;
186
- },
187
- enumerable: false,
188
- configurable: true
189
- });
190
- Object.defineProperty(PaneviewApi.prototype, "onDidRemoveView", {
191
- get: function () {
192
- return this.component.onDidRemoveView;
193
- },
194
- enumerable: false,
195
- configurable: true
196
- });
197
- Object.defineProperty(PaneviewApi.prototype, "onDidDrop", {
198
- get: function () {
199
- var _this = this;
200
- var emitter = new events_1.Emitter();
201
- var disposable = this.component.onDidDrop(function (e) {
202
- emitter.fire(__assign(__assign({}, e), { api: _this }));
203
- });
204
- emitter.dispose = function () {
205
- disposable.dispose();
206
- emitter.dispose();
207
- };
208
- return emitter.event;
209
- },
210
- enumerable: false,
211
- configurable: true
212
- });
213
- PaneviewApi.prototype.removePanel = function (panel) {
214
- this.component.removePanel(panel);
215
- };
216
- PaneviewApi.prototype.getPanel = function (id) {
217
- return this.component.getPanel(id);
218
- };
219
- PaneviewApi.prototype.movePanel = function (from, to) {
220
- this.component.movePanel(from, to);
221
- };
222
- PaneviewApi.prototype.focus = function () {
223
- this.component.focus();
224
- };
225
- PaneviewApi.prototype.layout = function (width, height) {
226
- this.component.layout(width, height);
227
- };
228
- PaneviewApi.prototype.addPanel = function (options) {
229
- return this.component.addPanel(options);
230
- };
231
- PaneviewApi.prototype.fromJSON = function (data) {
232
- this.component.fromJSON(data);
233
- };
234
- PaneviewApi.prototype.toJSON = function () {
235
- return this.component.toJSON();
236
- };
237
- PaneviewApi.prototype.clear = function () {
238
- this.component.clear();
239
- };
240
- return PaneviewApi;
241
- }());
242
- exports.PaneviewApi = PaneviewApi;
243
- var GridviewApi = /** @class */ (function () {
244
- function GridviewApi(component) {
245
- this.component = component;
246
- }
247
- Object.defineProperty(GridviewApi.prototype, "minimumHeight", {
248
- get: function () {
249
- return this.component.minimumHeight;
250
- },
251
- enumerable: false,
252
- configurable: true
253
- });
254
- Object.defineProperty(GridviewApi.prototype, "maximumHeight", {
255
- get: function () {
256
- return this.component.maximumHeight;
257
- },
258
- enumerable: false,
259
- configurable: true
260
- });
261
- Object.defineProperty(GridviewApi.prototype, "minimumWidth", {
262
- get: function () {
263
- return this.component.minimumWidth;
264
- },
265
- enumerable: false,
266
- configurable: true
267
- });
268
- Object.defineProperty(GridviewApi.prototype, "maximumWidth", {
269
- get: function () {
270
- return this.component.maximumWidth;
271
- },
272
- enumerable: false,
273
- configurable: true
274
- });
275
- Object.defineProperty(GridviewApi.prototype, "width", {
276
- get: function () {
277
- return this.component.width;
278
- },
279
- enumerable: false,
280
- configurable: true
281
- });
282
- Object.defineProperty(GridviewApi.prototype, "height", {
283
- get: function () {
284
- return this.component.height;
285
- },
286
- enumerable: false,
287
- configurable: true
288
- });
289
- Object.defineProperty(GridviewApi.prototype, "onDidLayoutChange", {
290
- get: function () {
291
- return this.component.onDidLayoutChange;
292
- },
293
- enumerable: false,
294
- configurable: true
295
- });
296
- Object.defineProperty(GridviewApi.prototype, "onDidAddPanel", {
297
- get: function () {
298
- return this.component.onDidAddGroup;
299
- },
300
- enumerable: false,
301
- configurable: true
302
- });
303
- Object.defineProperty(GridviewApi.prototype, "onDidRemovePanel", {
304
- get: function () {
305
- return this.component.onDidRemoveGroup;
306
- },
307
- enumerable: false,
308
- configurable: true
309
- });
310
- Object.defineProperty(GridviewApi.prototype, "onDidActivePanelChange", {
311
- get: function () {
312
- return this.component.onDidActiveGroupChange;
313
- },
314
- enumerable: false,
315
- configurable: true
316
- });
317
- Object.defineProperty(GridviewApi.prototype, "onDidLayoutFromJSON", {
318
- get: function () {
319
- return this.component.onDidLayoutFromJSON;
320
- },
321
- enumerable: false,
322
- configurable: true
323
- });
324
- Object.defineProperty(GridviewApi.prototype, "panels", {
325
- get: function () {
326
- return this.component.groups;
327
- },
328
- enumerable: false,
329
- configurable: true
330
- });
331
- Object.defineProperty(GridviewApi.prototype, "orientation", {
332
- get: function () {
333
- return this.component.orientation;
334
- },
335
- set: function (value) {
336
- this.component.updateOptions({ orientation: value });
337
- },
338
- enumerable: false,
339
- configurable: true
340
- });
341
- GridviewApi.prototype.focus = function () {
342
- this.component.focus();
343
- };
344
- GridviewApi.prototype.layout = function (width, height, force) {
345
- if (force === void 0) { force = false; }
346
- this.component.layout(width, height, force);
347
- };
348
- GridviewApi.prototype.addPanel = function (options) {
349
- return this.component.addPanel(options);
350
- };
351
- GridviewApi.prototype.removePanel = function (panel, sizing) {
352
- this.component.removePanel(panel, sizing);
353
- };
354
- GridviewApi.prototype.movePanel = function (panel, options) {
355
- this.component.movePanel(panel, options);
356
- };
357
- GridviewApi.prototype.getPanel = function (id) {
358
- return this.component.getPanel(id);
359
- };
360
- GridviewApi.prototype.fromJSON = function (data) {
361
- return this.component.fromJSON(data);
362
- };
363
- GridviewApi.prototype.toJSON = function () {
364
- return this.component.toJSON();
365
- };
366
- GridviewApi.prototype.clear = function () {
367
- this.component.clear();
368
- };
369
- return GridviewApi;
370
- }());
371
- exports.GridviewApi = GridviewApi;
372
- var DockviewApi = /** @class */ (function () {
373
- function DockviewApi(component) {
374
- this.component = component;
375
- }
376
- Object.defineProperty(DockviewApi.prototype, "id", {
377
- get: function () {
378
- return this.component.id;
379
- },
380
- enumerable: false,
381
- configurable: true
382
- });
383
- Object.defineProperty(DockviewApi.prototype, "width", {
384
- get: function () {
385
- return this.component.width;
386
- },
387
- enumerable: false,
388
- configurable: true
389
- });
390
- Object.defineProperty(DockviewApi.prototype, "height", {
391
- get: function () {
392
- return this.component.height;
393
- },
394
- enumerable: false,
395
- configurable: true
396
- });
397
- Object.defineProperty(DockviewApi.prototype, "minimumHeight", {
398
- get: function () {
399
- return this.component.minimumHeight;
400
- },
401
- enumerable: false,
402
- configurable: true
403
- });
404
- Object.defineProperty(DockviewApi.prototype, "maximumHeight", {
405
- get: function () {
406
- return this.component.maximumHeight;
407
- },
408
- enumerable: false,
409
- configurable: true
410
- });
411
- Object.defineProperty(DockviewApi.prototype, "minimumWidth", {
412
- get: function () {
413
- return this.component.minimumWidth;
414
- },
415
- enumerable: false,
416
- configurable: true
417
- });
418
- Object.defineProperty(DockviewApi.prototype, "maximumWidth", {
419
- get: function () {
420
- return this.component.maximumWidth;
421
- },
422
- enumerable: false,
423
- configurable: true
424
- });
425
- Object.defineProperty(DockviewApi.prototype, "size", {
426
- get: function () {
427
- return this.component.size;
428
- },
429
- enumerable: false,
430
- configurable: true
431
- });
432
- Object.defineProperty(DockviewApi.prototype, "totalPanels", {
433
- get: function () {
434
- return this.component.totalPanels;
435
- },
436
- enumerable: false,
437
- configurable: true
438
- });
439
- Object.defineProperty(DockviewApi.prototype, "onDidActiveGroupChange", {
440
- get: function () {
441
- return this.component.onDidActiveGroupChange;
442
- },
443
- enumerable: false,
444
- configurable: true
445
- });
446
- Object.defineProperty(DockviewApi.prototype, "onDidAddGroup", {
447
- get: function () {
448
- return this.component.onDidAddGroup;
449
- },
450
- enumerable: false,
451
- configurable: true
452
- });
453
- Object.defineProperty(DockviewApi.prototype, "onDidRemoveGroup", {
454
- get: function () {
455
- return this.component.onDidRemoveGroup;
456
- },
457
- enumerable: false,
458
- configurable: true
459
- });
460
- Object.defineProperty(DockviewApi.prototype, "onDidActivePanelChange", {
461
- get: function () {
462
- return this.component.onDidActivePanelChange;
463
- },
464
- enumerable: false,
465
- configurable: true
466
- });
467
- Object.defineProperty(DockviewApi.prototype, "onDidAddPanel", {
468
- get: function () {
469
- return this.component.onDidAddPanel;
470
- },
471
- enumerable: false,
472
- configurable: true
473
- });
474
- Object.defineProperty(DockviewApi.prototype, "onDidRemovePanel", {
475
- get: function () {
476
- return this.component.onDidRemovePanel;
477
- },
478
- enumerable: false,
479
- configurable: true
480
- });
481
- Object.defineProperty(DockviewApi.prototype, "onDidLayoutFromJSON", {
482
- get: function () {
483
- return this.component.onDidLayoutFromJSON;
484
- },
485
- enumerable: false,
486
- configurable: true
487
- });
488
- Object.defineProperty(DockviewApi.prototype, "onDidLayoutChange", {
489
- get: function () {
490
- return this.component.onDidLayoutChange;
491
- },
492
- enumerable: false,
493
- configurable: true
494
- });
495
- Object.defineProperty(DockviewApi.prototype, "onDidDrop", {
496
- get: function () {
497
- return this.component.onDidDrop;
498
- },
499
- enumerable: false,
500
- configurable: true
501
- });
502
- Object.defineProperty(DockviewApi.prototype, "onWillDragGroup", {
503
- get: function () {
504
- return this.component.onWillDragGroup;
505
- },
506
- enumerable: false,
507
- configurable: true
508
- });
509
- Object.defineProperty(DockviewApi.prototype, "onWillDragPanel", {
510
- get: function () {
511
- return this.component.onWillDragPanel;
512
- },
513
- enumerable: false,
514
- configurable: true
515
- });
516
- Object.defineProperty(DockviewApi.prototype, "panels", {
517
- get: function () {
518
- return this.component.panels;
519
- },
520
- enumerable: false,
521
- configurable: true
522
- });
523
- Object.defineProperty(DockviewApi.prototype, "groups", {
524
- get: function () {
525
- return this.component.groups;
526
- },
527
- enumerable: false,
528
- configurable: true
529
- });
530
- Object.defineProperty(DockviewApi.prototype, "activePanel", {
531
- get: function () {
532
- return this.component.activePanel;
533
- },
534
- enumerable: false,
535
- configurable: true
536
- });
537
- Object.defineProperty(DockviewApi.prototype, "activeGroup", {
538
- get: function () {
539
- return this.component.activeGroup;
540
- },
541
- enumerable: false,
542
- configurable: true
543
- });
544
- DockviewApi.prototype.focus = function () {
545
- this.component.focus();
546
- };
547
- DockviewApi.prototype.getPanel = function (id) {
548
- return this.component.getGroupPanel(id);
549
- };
550
- DockviewApi.prototype.layout = function (width, height, force) {
551
- if (force === void 0) { force = false; }
552
- this.component.layout(width, height, force);
553
- };
554
- DockviewApi.prototype.addPanel = function (options) {
555
- return this.component.addPanel(options);
556
- };
557
- DockviewApi.prototype.removePanel = function (panel) {
558
- this.component.removePanel(panel);
559
- };
560
- DockviewApi.prototype.addGroup = function (options) {
561
- return this.component.addGroup(options);
562
- };
563
- DockviewApi.prototype.moveToNext = function (options) {
564
- this.component.moveToNext(options);
565
- };
566
- DockviewApi.prototype.moveToPrevious = function (options) {
567
- this.component.moveToPrevious(options);
568
- };
569
- DockviewApi.prototype.closeAllGroups = function () {
570
- return this.component.closeAllGroups();
571
- };
572
- DockviewApi.prototype.removeGroup = function (group) {
573
- this.component.removeGroup(group);
574
- };
575
- DockviewApi.prototype.getGroup = function (id) {
576
- return this.component.getPanel(id);
577
- };
578
- DockviewApi.prototype.addFloatingGroup = function (item, coord) {
579
- return this.component.addFloatingGroup(item, coord);
580
- };
581
- DockviewApi.prototype.fromJSON = function (data) {
582
- this.component.fromJSON(data);
583
- };
584
- DockviewApi.prototype.toJSON = function () {
585
- return this.component.toJSON();
586
- };
587
- DockviewApi.prototype.clear = function () {
588
- this.component.clear();
589
- };
590
- return DockviewApi;
591
- }());
592
- exports.DockviewApi = DockviewApi;
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.DockviewApi = exports.GridviewApi = exports.PaneviewApi = exports.SplitviewApi = void 0;
15
+ var events_1 = require("../events");
16
+ var SplitviewApi = /** @class */ (function () {
17
+ function SplitviewApi(component) {
18
+ this.component = component;
19
+ }
20
+ Object.defineProperty(SplitviewApi.prototype, "minimumSize", {
21
+ /**
22
+ * The minimum size the component can reach where size is measured in the direction of orientation provided.
23
+ */
24
+ get: function () {
25
+ return this.component.minimumSize;
26
+ },
27
+ enumerable: false,
28
+ configurable: true
29
+ });
30
+ Object.defineProperty(SplitviewApi.prototype, "maximumSize", {
31
+ /**
32
+ * The maximum size the component can reach where size is measured in the direction of orientation provided.
33
+ */
34
+ get: function () {
35
+ return this.component.maximumSize;
36
+ },
37
+ enumerable: false,
38
+ configurable: true
39
+ });
40
+ Object.defineProperty(SplitviewApi.prototype, "width", {
41
+ /**
42
+ * Width of the component.
43
+ */
44
+ get: function () {
45
+ return this.component.width;
46
+ },
47
+ enumerable: false,
48
+ configurable: true
49
+ });
50
+ Object.defineProperty(SplitviewApi.prototype, "height", {
51
+ /**
52
+ * Height of the component.
53
+ */
54
+ get: function () {
55
+ return this.component.height;
56
+ },
57
+ enumerable: false,
58
+ configurable: true
59
+ });
60
+ Object.defineProperty(SplitviewApi.prototype, "length", {
61
+ /**
62
+ * The current number of panels.
63
+ */
64
+ get: function () {
65
+ return this.component.length;
66
+ },
67
+ enumerable: false,
68
+ configurable: true
69
+ });
70
+ Object.defineProperty(SplitviewApi.prototype, "orientation", {
71
+ /**
72
+ * The current orientation of the component.
73
+ */
74
+ get: function () {
75
+ return this.component.orientation;
76
+ },
77
+ enumerable: false,
78
+ configurable: true
79
+ });
80
+ Object.defineProperty(SplitviewApi.prototype, "panels", {
81
+ /**
82
+ * The list of current panels.
83
+ */
84
+ get: function () {
85
+ return this.component.panels;
86
+ },
87
+ enumerable: false,
88
+ configurable: true
89
+ });
90
+ Object.defineProperty(SplitviewApi.prototype, "onDidLayoutFromJSON", {
91
+ /**
92
+ * Invoked after a layout is loaded through the `fromJSON` method.
93
+ */
94
+ get: function () {
95
+ return this.component.onDidLayoutFromJSON;
96
+ },
97
+ enumerable: false,
98
+ configurable: true
99
+ });
100
+ Object.defineProperty(SplitviewApi.prototype, "onDidLayoutChange", {
101
+ /**
102
+ * Invoked whenever any aspect of the layout changes.
103
+ * If listening to this event it may be worth debouncing ouputs.
104
+ */
105
+ get: function () {
106
+ return this.component.onDidLayoutChange;
107
+ },
108
+ enumerable: false,
109
+ configurable: true
110
+ });
111
+ Object.defineProperty(SplitviewApi.prototype, "onDidAddView", {
112
+ /**
113
+ * Invoked when a view is added.
114
+ */
115
+ get: function () {
116
+ return this.component.onDidAddView;
117
+ },
118
+ enumerable: false,
119
+ configurable: true
120
+ });
121
+ Object.defineProperty(SplitviewApi.prototype, "onDidRemoveView", {
122
+ /**
123
+ * Invoked when a view is removed.
124
+ */
125
+ get: function () {
126
+ return this.component.onDidRemoveView;
127
+ },
128
+ enumerable: false,
129
+ configurable: true
130
+ });
131
+ /**
132
+ * Update configuratable options.
133
+ */
134
+ SplitviewApi.prototype.updateOptions = function (options) {
135
+ this.component.updateOptions(options);
136
+ };
137
+ /**
138
+ * Removes an existing panel and optionally provide a `Sizing` method
139
+ * for the subsequent resize.
140
+ */
141
+ SplitviewApi.prototype.removePanel = function (panel, sizing) {
142
+ this.component.removePanel(panel, sizing);
143
+ };
144
+ /**
145
+ * Focus the component.
146
+ */
147
+ SplitviewApi.prototype.focus = function () {
148
+ this.component.focus();
149
+ };
150
+ /**
151
+ * Get the reference to a panel given it's `string` id.
152
+ */
153
+ SplitviewApi.prototype.getPanel = function (id) {
154
+ return this.component.getPanel(id);
155
+ };
156
+ /**
157
+ * Layout the panel with a width and height.
158
+ */
159
+ SplitviewApi.prototype.layout = function (width, height) {
160
+ return this.component.layout(width, height);
161
+ };
162
+ /**
163
+ * Add a new panel and return the created instance.
164
+ */
165
+ SplitviewApi.prototype.addPanel = function (options) {
166
+ return this.component.addPanel(options);
167
+ };
168
+ /**
169
+ * Move a panel given it's current and desired index.
170
+ */
171
+ SplitviewApi.prototype.movePanel = function (from, to) {
172
+ this.component.movePanel(from, to);
173
+ };
174
+ /**
175
+ * Deserialize a layout to built a splitivew.
176
+ */
177
+ SplitviewApi.prototype.fromJSON = function (data) {
178
+ this.component.fromJSON(data);
179
+ };
180
+ /** Serialize a layout */
181
+ SplitviewApi.prototype.toJSON = function () {
182
+ return this.component.toJSON();
183
+ };
184
+ /**
185
+ * Remove all panels and clear the component.
186
+ */
187
+ SplitviewApi.prototype.clear = function () {
188
+ this.component.clear();
189
+ };
190
+ return SplitviewApi;
191
+ }());
192
+ exports.SplitviewApi = SplitviewApi;
193
+ var PaneviewApi = /** @class */ (function () {
194
+ function PaneviewApi(component) {
195
+ this.component = component;
196
+ }
197
+ Object.defineProperty(PaneviewApi.prototype, "minimumSize", {
198
+ /**
199
+ * The minimum size the component can reach where size is measured in the direction of orientation provided.
200
+ */
201
+ get: function () {
202
+ return this.component.minimumSize;
203
+ },
204
+ enumerable: false,
205
+ configurable: true
206
+ });
207
+ Object.defineProperty(PaneviewApi.prototype, "maximumSize", {
208
+ /**
209
+ * The maximum size the component can reach where size is measured in the direction of orientation provided.
210
+ */
211
+ get: function () {
212
+ return this.component.maximumSize;
213
+ },
214
+ enumerable: false,
215
+ configurable: true
216
+ });
217
+ Object.defineProperty(PaneviewApi.prototype, "width", {
218
+ /**
219
+ * Width of the component.
220
+ */
221
+ get: function () {
222
+ return this.component.width;
223
+ },
224
+ enumerable: false,
225
+ configurable: true
226
+ });
227
+ Object.defineProperty(PaneviewApi.prototype, "height", {
228
+ /**
229
+ * Height of the component.
230
+ */
231
+ get: function () {
232
+ return this.component.height;
233
+ },
234
+ enumerable: false,
235
+ configurable: true
236
+ });
237
+ Object.defineProperty(PaneviewApi.prototype, "panels", {
238
+ /**
239
+ * All panel objects.
240
+ */
241
+ get: function () {
242
+ return this.component.panels;
243
+ },
244
+ enumerable: false,
245
+ configurable: true
246
+ });
247
+ Object.defineProperty(PaneviewApi.prototype, "onDidLayoutChange", {
248
+ /**
249
+ * Invoked when any layout change occures, an aggregation of many events.
250
+ */
251
+ get: function () {
252
+ return this.component.onDidLayoutChange;
253
+ },
254
+ enumerable: false,
255
+ configurable: true
256
+ });
257
+ Object.defineProperty(PaneviewApi.prototype, "onDidLayoutFromJSON", {
258
+ /**
259
+ * Invoked after a layout is deserialzied using the `fromJSON` method.
260
+ */
261
+ get: function () {
262
+ return this.component.onDidLayoutFromJSON;
263
+ },
264
+ enumerable: false,
265
+ configurable: true
266
+ });
267
+ Object.defineProperty(PaneviewApi.prototype, "onDidAddView", {
268
+ /**
269
+ * Invoked when a panel is added. May be called multiple times when moving panels.
270
+ */
271
+ get: function () {
272
+ return this.component.onDidAddView;
273
+ },
274
+ enumerable: false,
275
+ configurable: true
276
+ });
277
+ Object.defineProperty(PaneviewApi.prototype, "onDidRemoveView", {
278
+ /**
279
+ * Invoked when a panel is removed. May be called multiple times when moving panels.
280
+ */
281
+ get: function () {
282
+ return this.component.onDidRemoveView;
283
+ },
284
+ enumerable: false,
285
+ configurable: true
286
+ });
287
+ Object.defineProperty(PaneviewApi.prototype, "onDidDrop", {
288
+ /**
289
+ * Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality.
290
+ */
291
+ get: function () {
292
+ var _this = this;
293
+ var emitter = new events_1.Emitter();
294
+ var disposable = this.component.onDidDrop(function (e) {
295
+ emitter.fire(__assign(__assign({}, e), { api: _this }));
296
+ });
297
+ emitter.dispose = function () {
298
+ disposable.dispose();
299
+ emitter.dispose();
300
+ };
301
+ return emitter.event;
302
+ },
303
+ enumerable: false,
304
+ configurable: true
305
+ });
306
+ /**
307
+ * Remove a panel given the panel object.
308
+ */
309
+ PaneviewApi.prototype.removePanel = function (panel) {
310
+ this.component.removePanel(panel);
311
+ };
312
+ /**
313
+ * Get a panel object given a `string` id. May return `undefined`.
314
+ */
315
+ PaneviewApi.prototype.getPanel = function (id) {
316
+ return this.component.getPanel(id);
317
+ };
318
+ /**
319
+ * Move a panel given it's current and desired index.
320
+ */
321
+ PaneviewApi.prototype.movePanel = function (from, to) {
322
+ this.component.movePanel(from, to);
323
+ };
324
+ /**
325
+ * Focus the component. Will try to focus an active panel if one exists.
326
+ */
327
+ PaneviewApi.prototype.focus = function () {
328
+ this.component.focus();
329
+ };
330
+ /**
331
+ * Force resize the component to an exact width and height. Read about auto-resizing before using.
332
+ */
333
+ PaneviewApi.prototype.layout = function (width, height) {
334
+ this.component.layout(width, height);
335
+ };
336
+ /**
337
+ * Add a panel and return the created object.
338
+ */
339
+ PaneviewApi.prototype.addPanel = function (options) {
340
+ return this.component.addPanel(options);
341
+ };
342
+ /**
343
+ * Create a component from a serialized object.
344
+ */
345
+ PaneviewApi.prototype.fromJSON = function (data) {
346
+ this.component.fromJSON(data);
347
+ };
348
+ /**
349
+ * Create a serialized object of the current component.
350
+ */
351
+ PaneviewApi.prototype.toJSON = function () {
352
+ return this.component.toJSON();
353
+ };
354
+ /**
355
+ * Reset the component back to an empty and default state.
356
+ */
357
+ PaneviewApi.prototype.clear = function () {
358
+ this.component.clear();
359
+ };
360
+ return PaneviewApi;
361
+ }());
362
+ exports.PaneviewApi = PaneviewApi;
363
+ var GridviewApi = /** @class */ (function () {
364
+ function GridviewApi(component) {
365
+ this.component = component;
366
+ }
367
+ Object.defineProperty(GridviewApi.prototype, "width", {
368
+ /**
369
+ * Width of the component.
370
+ */
371
+ get: function () {
372
+ return this.component.width;
373
+ },
374
+ enumerable: false,
375
+ configurable: true
376
+ });
377
+ Object.defineProperty(GridviewApi.prototype, "height", {
378
+ /**
379
+ * Height of the component.
380
+ */
381
+ get: function () {
382
+ return this.component.height;
383
+ },
384
+ enumerable: false,
385
+ configurable: true
386
+ });
387
+ Object.defineProperty(GridviewApi.prototype, "minimumHeight", {
388
+ /**
389
+ * Minimum height of the component.
390
+ */
391
+ get: function () {
392
+ return this.component.minimumHeight;
393
+ },
394
+ enumerable: false,
395
+ configurable: true
396
+ });
397
+ Object.defineProperty(GridviewApi.prototype, "maximumHeight", {
398
+ /**
399
+ * Maximum height of the component.
400
+ */
401
+ get: function () {
402
+ return this.component.maximumHeight;
403
+ },
404
+ enumerable: false,
405
+ configurable: true
406
+ });
407
+ Object.defineProperty(GridviewApi.prototype, "minimumWidth", {
408
+ /**
409
+ * Minimum width of the component.
410
+ */
411
+ get: function () {
412
+ return this.component.minimumWidth;
413
+ },
414
+ enumerable: false,
415
+ configurable: true
416
+ });
417
+ Object.defineProperty(GridviewApi.prototype, "maximumWidth", {
418
+ /**
419
+ * Maximum width of the component.
420
+ */
421
+ get: function () {
422
+ return this.component.maximumWidth;
423
+ },
424
+ enumerable: false,
425
+ configurable: true
426
+ });
427
+ Object.defineProperty(GridviewApi.prototype, "onDidLayoutChange", {
428
+ /**
429
+ * Invoked when any layout change occures, an aggregation of many events.
430
+ */
431
+ get: function () {
432
+ return this.component.onDidLayoutChange;
433
+ },
434
+ enumerable: false,
435
+ configurable: true
436
+ });
437
+ Object.defineProperty(GridviewApi.prototype, "onDidAddPanel", {
438
+ /**
439
+ * Invoked when a panel is added. May be called multiple times when moving panels.
440
+ */
441
+ get: function () {
442
+ return this.component.onDidAddGroup;
443
+ },
444
+ enumerable: false,
445
+ configurable: true
446
+ });
447
+ Object.defineProperty(GridviewApi.prototype, "onDidRemovePanel", {
448
+ /**
449
+ * Invoked when a panel is removed. May be called multiple times when moving panels.
450
+ */
451
+ get: function () {
452
+ return this.component.onDidRemoveGroup;
453
+ },
454
+ enumerable: false,
455
+ configurable: true
456
+ });
457
+ Object.defineProperty(GridviewApi.prototype, "onDidActivePanelChange", {
458
+ /**
459
+ * Invoked when the active panel changes. May be undefined if no panel is active.
460
+ */
461
+ get: function () {
462
+ return this.component.onDidActiveGroupChange;
463
+ },
464
+ enumerable: false,
465
+ configurable: true
466
+ });
467
+ Object.defineProperty(GridviewApi.prototype, "onDidLayoutFromJSON", {
468
+ /**
469
+ * Invoked after a layout is deserialzied using the `fromJSON` method.
470
+ */
471
+ get: function () {
472
+ return this.component.onDidLayoutFromJSON;
473
+ },
474
+ enumerable: false,
475
+ configurable: true
476
+ });
477
+ Object.defineProperty(GridviewApi.prototype, "panels", {
478
+ /**
479
+ * All panel objects.
480
+ */
481
+ get: function () {
482
+ return this.component.groups;
483
+ },
484
+ enumerable: false,
485
+ configurable: true
486
+ });
487
+ Object.defineProperty(GridviewApi.prototype, "orientation", {
488
+ /**
489
+ * Current orientation. Can be changed after initialization.
490
+ */
491
+ get: function () {
492
+ return this.component.orientation;
493
+ },
494
+ set: function (value) {
495
+ this.component.updateOptions({ orientation: value });
496
+ },
497
+ enumerable: false,
498
+ configurable: true
499
+ });
500
+ /**
501
+ * Focus the component. Will try to focus an active panel if one exists.
502
+ */
503
+ GridviewApi.prototype.focus = function () {
504
+ this.component.focus();
505
+ };
506
+ /**
507
+ * Force resize the component to an exact width and height. Read about auto-resizing before using.
508
+ */
509
+ GridviewApi.prototype.layout = function (width, height, force) {
510
+ if (force === void 0) { force = false; }
511
+ this.component.layout(width, height, force);
512
+ };
513
+ /**
514
+ * Add a panel and return the created object.
515
+ */
516
+ GridviewApi.prototype.addPanel = function (options) {
517
+ return this.component.addPanel(options);
518
+ };
519
+ /**
520
+ * Remove a panel given the panel object.
521
+ */
522
+ GridviewApi.prototype.removePanel = function (panel, sizing) {
523
+ this.component.removePanel(panel, sizing);
524
+ };
525
+ /**
526
+ * Move a panel in a particular direction relative to another panel.
527
+ */
528
+ GridviewApi.prototype.movePanel = function (panel, options) {
529
+ this.component.movePanel(panel, options);
530
+ };
531
+ /**
532
+ * Get a panel object given a `string` id. May return `undefined`.
533
+ */
534
+ GridviewApi.prototype.getPanel = function (id) {
535
+ return this.component.getPanel(id);
536
+ };
537
+ /**
538
+ * Create a component from a serialized object.
539
+ */
540
+ GridviewApi.prototype.fromJSON = function (data) {
541
+ return this.component.fromJSON(data);
542
+ };
543
+ /**
544
+ * Create a serialized object of the current component.
545
+ */
546
+ GridviewApi.prototype.toJSON = function () {
547
+ return this.component.toJSON();
548
+ };
549
+ /**
550
+ * Reset the component back to an empty and default state.
551
+ */
552
+ GridviewApi.prototype.clear = function () {
553
+ this.component.clear();
554
+ };
555
+ return GridviewApi;
556
+ }());
557
+ exports.GridviewApi = GridviewApi;
558
+ var DockviewApi = /** @class */ (function () {
559
+ function DockviewApi(component) {
560
+ this.component = component;
561
+ }
562
+ Object.defineProperty(DockviewApi.prototype, "id", {
563
+ /**
564
+ * The unique identifier for this instance. Used to manage scope of Drag'n'Drop events.
565
+ */
566
+ get: function () {
567
+ return this.component.id;
568
+ },
569
+ enumerable: false,
570
+ configurable: true
571
+ });
572
+ Object.defineProperty(DockviewApi.prototype, "width", {
573
+ /**
574
+ * Width of the component.
575
+ */
576
+ get: function () {
577
+ return this.component.width;
578
+ },
579
+ enumerable: false,
580
+ configurable: true
581
+ });
582
+ Object.defineProperty(DockviewApi.prototype, "height", {
583
+ /**
584
+ * Height of the component.
585
+ */
586
+ get: function () {
587
+ return this.component.height;
588
+ },
589
+ enumerable: false,
590
+ configurable: true
591
+ });
592
+ Object.defineProperty(DockviewApi.prototype, "minimumHeight", {
593
+ /**
594
+ * Minimum height of the component.
595
+ */
596
+ get: function () {
597
+ return this.component.minimumHeight;
598
+ },
599
+ enumerable: false,
600
+ configurable: true
601
+ });
602
+ Object.defineProperty(DockviewApi.prototype, "maximumHeight", {
603
+ /**
604
+ * Maximum height of the component.
605
+ */
606
+ get: function () {
607
+ return this.component.maximumHeight;
608
+ },
609
+ enumerable: false,
610
+ configurable: true
611
+ });
612
+ Object.defineProperty(DockviewApi.prototype, "minimumWidth", {
613
+ /**
614
+ * Minimum width of the component.
615
+ */
616
+ get: function () {
617
+ return this.component.minimumWidth;
618
+ },
619
+ enumerable: false,
620
+ configurable: true
621
+ });
622
+ Object.defineProperty(DockviewApi.prototype, "maximumWidth", {
623
+ /**
624
+ * Maximum width of the component.
625
+ */
626
+ get: function () {
627
+ return this.component.maximumWidth;
628
+ },
629
+ enumerable: false,
630
+ configurable: true
631
+ });
632
+ Object.defineProperty(DockviewApi.prototype, "size", {
633
+ /**
634
+ * Total number of groups.
635
+ */
636
+ get: function () {
637
+ return this.component.size;
638
+ },
639
+ enumerable: false,
640
+ configurable: true
641
+ });
642
+ Object.defineProperty(DockviewApi.prototype, "totalPanels", {
643
+ /**
644
+ * Total number of panels.
645
+ */
646
+ get: function () {
647
+ return this.component.totalPanels;
648
+ },
649
+ enumerable: false,
650
+ configurable: true
651
+ });
652
+ Object.defineProperty(DockviewApi.prototype, "onDidActiveGroupChange", {
653
+ /**
654
+ * Invoked when the active group changes. May be undefined if no group is active.
655
+ */
656
+ get: function () {
657
+ return this.component.onDidActiveGroupChange;
658
+ },
659
+ enumerable: false,
660
+ configurable: true
661
+ });
662
+ Object.defineProperty(DockviewApi.prototype, "onDidAddGroup", {
663
+ /**
664
+ * Invoked when a group is added. May be called multiple times when moving groups.
665
+ */
666
+ get: function () {
667
+ return this.component.onDidAddGroup;
668
+ },
669
+ enumerable: false,
670
+ configurable: true
671
+ });
672
+ Object.defineProperty(DockviewApi.prototype, "onDidRemoveGroup", {
673
+ /**
674
+ * Invoked when a group is removed. May be called multiple times when moving groups.
675
+ */
676
+ get: function () {
677
+ return this.component.onDidRemoveGroup;
678
+ },
679
+ enumerable: false,
680
+ configurable: true
681
+ });
682
+ Object.defineProperty(DockviewApi.prototype, "onDidActivePanelChange", {
683
+ /**
684
+ * Invoked when the active panel changes. May be undefined if no panel is active.
685
+ */
686
+ get: function () {
687
+ return this.component.onDidActivePanelChange;
688
+ },
689
+ enumerable: false,
690
+ configurable: true
691
+ });
692
+ Object.defineProperty(DockviewApi.prototype, "onDidAddPanel", {
693
+ /**
694
+ * Invoked when a panel is added. May be called multiple times when moving panels.
695
+ */
696
+ get: function () {
697
+ return this.component.onDidAddPanel;
698
+ },
699
+ enumerable: false,
700
+ configurable: true
701
+ });
702
+ Object.defineProperty(DockviewApi.prototype, "onDidRemovePanel", {
703
+ /**
704
+ * Invoked when a panel is removed. May be called multiple times when moving panels.
705
+ */
706
+ get: function () {
707
+ return this.component.onDidRemovePanel;
708
+ },
709
+ enumerable: false,
710
+ configurable: true
711
+ });
712
+ Object.defineProperty(DockviewApi.prototype, "onDidLayoutFromJSON", {
713
+ /**
714
+ * Invoked after a layout is deserialzied using the `fromJSON` method.
715
+ */
716
+ get: function () {
717
+ return this.component.onDidLayoutFromJSON;
718
+ },
719
+ enumerable: false,
720
+ configurable: true
721
+ });
722
+ Object.defineProperty(DockviewApi.prototype, "onDidLayoutChange", {
723
+ /**
724
+ * Invoked when any layout change occures, an aggregation of many events.
725
+ */
726
+ get: function () {
727
+ return this.component.onDidLayoutChange;
728
+ },
729
+ enumerable: false,
730
+ configurable: true
731
+ });
732
+ Object.defineProperty(DockviewApi.prototype, "onDidDrop", {
733
+ /**
734
+ * Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality.
735
+ */
736
+ get: function () {
737
+ return this.component.onDidDrop;
738
+ },
739
+ enumerable: false,
740
+ configurable: true
741
+ });
742
+ Object.defineProperty(DockviewApi.prototype, "onWillDragGroup", {
743
+ /**
744
+ * Invoked before a group is dragged. Exposed for custom Drag'n'Drop functionality.
745
+ */
746
+ get: function () {
747
+ return this.component.onWillDragGroup;
748
+ },
749
+ enumerable: false,
750
+ configurable: true
751
+ });
752
+ Object.defineProperty(DockviewApi.prototype, "onWillDragPanel", {
753
+ /**
754
+ * Invoked before a panel is dragged. Exposed for custom Drag'n'Drop functionality.
755
+ */
756
+ get: function () {
757
+ return this.component.onWillDragPanel;
758
+ },
759
+ enumerable: false,
760
+ configurable: true
761
+ });
762
+ Object.defineProperty(DockviewApi.prototype, "panels", {
763
+ /**
764
+ * All panel objects.
765
+ */
766
+ get: function () {
767
+ return this.component.panels;
768
+ },
769
+ enumerable: false,
770
+ configurable: true
771
+ });
772
+ Object.defineProperty(DockviewApi.prototype, "groups", {
773
+ /**
774
+ * All group objects.
775
+ */
776
+ get: function () {
777
+ return this.component.groups;
778
+ },
779
+ enumerable: false,
780
+ configurable: true
781
+ });
782
+ Object.defineProperty(DockviewApi.prototype, "activePanel", {
783
+ /**
784
+ * Active panel object.
785
+ */
786
+ get: function () {
787
+ return this.component.activePanel;
788
+ },
789
+ enumerable: false,
790
+ configurable: true
791
+ });
792
+ Object.defineProperty(DockviewApi.prototype, "activeGroup", {
793
+ /**
794
+ * Active group object.
795
+ */
796
+ get: function () {
797
+ return this.component.activeGroup;
798
+ },
799
+ enumerable: false,
800
+ configurable: true
801
+ });
802
+ /**
803
+ * Focus the component. Will try to focus an active panel if one exists.
804
+ */
805
+ DockviewApi.prototype.focus = function () {
806
+ this.component.focus();
807
+ };
808
+ /**
809
+ * Get a panel object given a `string` id. May return `undefined`.
810
+ */
811
+ DockviewApi.prototype.getPanel = function (id) {
812
+ return this.component.getGroupPanel(id);
813
+ };
814
+ /**
815
+ * Force resize the component to an exact width and height. Read about auto-resizing before using.
816
+ */
817
+ DockviewApi.prototype.layout = function (width, height, force) {
818
+ if (force === void 0) { force = false; }
819
+ this.component.layout(width, height, force);
820
+ };
821
+ /**
822
+ * Add a panel and return the created object.
823
+ */
824
+ DockviewApi.prototype.addPanel = function (options) {
825
+ return this.component.addPanel(options);
826
+ };
827
+ /**
828
+ * Remove a panel given the panel object.
829
+ */
830
+ DockviewApi.prototype.removePanel = function (panel) {
831
+ this.component.removePanel(panel);
832
+ };
833
+ /**
834
+ * Add a group and return the created object.
835
+ */
836
+ DockviewApi.prototype.addGroup = function (options) {
837
+ return this.component.addGroup(options);
838
+ };
839
+ /**
840
+ * Close all groups and panels.
841
+ */
842
+ DockviewApi.prototype.closeAllGroups = function () {
843
+ return this.component.closeAllGroups();
844
+ };
845
+ /**
846
+ * Remove a group and any panels within the group.
847
+ */
848
+ DockviewApi.prototype.removeGroup = function (group) {
849
+ this.component.removeGroup(group);
850
+ };
851
+ /**
852
+ * Get a group object given a `string` id. May return undefined.
853
+ */
854
+ DockviewApi.prototype.getGroup = function (id) {
855
+ return this.component.getPanel(id);
856
+ };
857
+ /**
858
+ * Add a floating group
859
+ */
860
+ DockviewApi.prototype.addFloatingGroup = function (item, coord) {
861
+ return this.component.addFloatingGroup(item, coord);
862
+ };
863
+ /**
864
+ * Create a component from a serialized object.
865
+ */
866
+ DockviewApi.prototype.fromJSON = function (data) {
867
+ this.component.fromJSON(data);
868
+ };
869
+ /**
870
+ * Create a serialized object of the current component.
871
+ */
872
+ DockviewApi.prototype.toJSON = function () {
873
+ return this.component.toJSON();
874
+ };
875
+ /**
876
+ * Reset the component back to an empty and default state.
877
+ */
878
+ DockviewApi.prototype.clear = function () {
879
+ this.component.clear();
880
+ };
881
+ /**
882
+ * Move the focus progmatically to the next panel or group.
883
+ */
884
+ DockviewApi.prototype.moveToNext = function (options) {
885
+ this.component.moveToNext(options);
886
+ };
887
+ /**
888
+ * Move the focus progmatically to the previous panel or group.
889
+ */
890
+ DockviewApi.prototype.moveToPrevious = function (options) {
891
+ this.component.moveToPrevious(options);
892
+ };
893
+ return DockviewApi;
894
+ }());
895
+ exports.DockviewApi = DockviewApi;
593
896
  //# sourceMappingURL=component.api.js.map