dockview 1.5.1 → 1.5.2

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 (329) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +52 -52
  3. package/dist/cjs/actionbar/actionsContainer.d.ts +7 -7
  4. package/dist/cjs/actionbar/actionsContainer.js +26 -26
  5. package/dist/cjs/api/component.api.d.ts +144 -144
  6. package/dist/cjs/api/component.api.js +571 -571
  7. package/dist/cjs/api/gridviewPanelApi.d.ts +36 -36
  8. package/dist/cjs/api/gridviewPanelApi.js +47 -47
  9. package/dist/cjs/api/groupPanelApi.d.ts +34 -34
  10. package/dist/cjs/api/groupPanelApi.js +85 -85
  11. package/dist/cjs/api/panelApi.d.ts +81 -81
  12. package/dist/cjs/api/panelApi.js +121 -121
  13. package/dist/cjs/api/paneviewPanelApi.d.ts +26 -26
  14. package/dist/cjs/api/paneviewPanelApi.js +57 -57
  15. package/dist/cjs/api/splitviewPanelApi.d.ts +32 -32
  16. package/dist/cjs/api/splitviewPanelApi.js +47 -47
  17. package/dist/cjs/array.d.ts +13 -13
  18. package/dist/cjs/array.js +77 -77
  19. package/dist/cjs/dnd/abstractDragHandler.d.ts +11 -11
  20. package/dist/cjs/dnd/abstractDragHandler.js +115 -115
  21. package/dist/cjs/dnd/dataTransfer.d.ts +31 -31
  22. package/dist/cjs/dnd/dataTransfer.js +100 -100
  23. package/dist/cjs/dnd/dnd.d.ts +27 -27
  24. package/dist/cjs/dnd/dnd.js +64 -64
  25. package/dist/cjs/dnd/droptarget.d.ts +37 -37
  26. package/dist/cjs/dnd/droptarget.js +201 -201
  27. package/dist/cjs/dockview/components/tab/defaultTab.d.ts +27 -27
  28. package/dist/cjs/dockview/components/tab/defaultTab.js +121 -121
  29. package/dist/cjs/dockview/components/watermark/watermark.d.ts +20 -20
  30. package/dist/cjs/dockview/components/watermark/watermark.js +101 -101
  31. package/dist/cjs/dockview/defaultGroupPanelView.d.ts +29 -29
  32. package/dist/cjs/dockview/defaultGroupPanelView.js +68 -68
  33. package/dist/cjs/dockview/deserializer.d.ts +5 -5
  34. package/dist/cjs/dockview/deserializer.js +2 -2
  35. package/dist/cjs/dockview/dockviewComponent.d.ts +125 -125
  36. package/dist/cjs/dockview/dockviewComponent.js +614 -614
  37. package/dist/cjs/dockview/dockviewComponent.js.map +1 -1
  38. package/dist/cjs/dockview/dockviewGroupPanel.d.ts +31 -31
  39. package/dist/cjs/dockview/dockviewGroupPanel.js +156 -156
  40. package/dist/cjs/dockview/options.d.ts +88 -88
  41. package/dist/cjs/dockview/options.js +2 -2
  42. package/dist/cjs/dom.d.ts +14 -14
  43. package/dist/cjs/dom.js +182 -182
  44. package/dist/cjs/events.d.ts +30 -30
  45. package/dist/cjs/events.js +129 -129
  46. package/dist/cjs/gridview/baseComponentGridview.d.ts +87 -87
  47. package/dist/cjs/gridview/baseComponentGridview.js +279 -279
  48. package/dist/cjs/gridview/basePanelView.d.ts +43 -43
  49. package/dist/cjs/gridview/basePanelView.js +123 -123
  50. package/dist/cjs/gridview/branchNode.d.ts +49 -46
  51. package/dist/cjs/gridview/branchNode.js +342 -342
  52. package/dist/cjs/gridview/branchNode.js.map +1 -1
  53. package/dist/cjs/gridview/gridview.d.ts +126 -123
  54. package/dist/cjs/gridview/gridview.js +479 -479
  55. package/dist/cjs/gridview/gridview.js.map +1 -1
  56. package/dist/cjs/gridview/gridviewComponent.d.ts +85 -85
  57. package/dist/cjs/gridview/gridviewComponent.js +325 -325
  58. package/dist/cjs/gridview/gridviewPanel.d.ts +60 -60
  59. package/dist/cjs/gridview/gridviewPanel.js +202 -202
  60. package/dist/cjs/gridview/leafNode.d.ts +34 -31
  61. package/dist/cjs/gridview/leafNode.js +170 -165
  62. package/dist/cjs/gridview/leafNode.js.map +1 -1
  63. package/dist/cjs/gridview/options.d.ts +18 -18
  64. package/dist/cjs/gridview/options.js +2 -2
  65. package/dist/cjs/gridview/types.d.ts +3 -3
  66. package/dist/cjs/gridview/types.js +2 -2
  67. package/dist/cjs/groupview/dnd.d.ts +5 -5
  68. package/dist/cjs/groupview/dnd.js +9 -9
  69. package/dist/cjs/groupview/groupPanel.d.ts +32 -32
  70. package/dist/cjs/groupview/groupPanel.js +2 -2
  71. package/dist/cjs/groupview/groupview.d.ts +177 -177
  72. package/dist/cjs/groupview/groupview.js +589 -589
  73. package/dist/cjs/groupview/groupviewPanel.d.ts +35 -35
  74. package/dist/cjs/groupview/groupviewPanel.js +128 -128
  75. package/dist/cjs/groupview/panel/content.d.ts +30 -30
  76. package/dist/cjs/groupview/panel/content.js +100 -100
  77. package/dist/cjs/groupview/tab.d.ts +41 -41
  78. package/dist/cjs/groupview/tab.js +120 -120
  79. package/dist/cjs/groupview/titlebar/tabsContainer.d.ts +68 -68
  80. package/dist/cjs/groupview/titlebar/tabsContainer.js +258 -258
  81. package/dist/cjs/groupview/types.d.ts +52 -52
  82. package/dist/cjs/groupview/types.js +2 -2
  83. package/dist/cjs/hostedContainer.d.ts +23 -23
  84. package/dist/cjs/hostedContainer.js +73 -73
  85. package/dist/cjs/index.d.ts +30 -30
  86. package/dist/cjs/index.js +46 -46
  87. package/dist/cjs/lifecycle.d.ts +22 -22
  88. package/dist/cjs/lifecycle.js +88 -88
  89. package/dist/cjs/math.d.ts +4 -4
  90. package/dist/cjs/math.js +15 -15
  91. package/dist/cjs/panel/componentFactory.d.ts +8 -8
  92. package/dist/cjs/panel/componentFactory.js +30 -30
  93. package/dist/cjs/panel/types.d.ts +33 -33
  94. package/dist/cjs/panel/types.js +2 -2
  95. package/dist/cjs/paneview/defaultPaneviewHeader.d.ts +21 -21
  96. package/dist/cjs/paneview/defaultPaneviewHeader.js +90 -90
  97. package/dist/cjs/paneview/draggablePaneviewPanel.d.ts +19 -19
  98. package/dist/cjs/paneview/draggablePaneviewPanel.js +129 -129
  99. package/dist/cjs/paneview/options.d.ts +27 -27
  100. package/dist/cjs/paneview/options.js +2 -2
  101. package/dist/cjs/paneview/paneview.d.ts +40 -40
  102. package/dist/cjs/paneview/paneview.js +201 -201
  103. package/dist/cjs/paneview/paneviewComponent.d.ts +129 -129
  104. package/dist/cjs/paneview/paneviewComponent.js +394 -394
  105. package/dist/cjs/paneview/paneviewPanel.d.ts +92 -89
  106. package/dist/cjs/paneview/paneviewPanel.js +274 -274
  107. package/dist/cjs/paneview/paneviewPanel.js.map +1 -1
  108. package/dist/cjs/react/deserializer.d.ts +9 -9
  109. package/dist/cjs/react/deserializer.js +43 -43
  110. package/dist/cjs/react/dockview/defaultTab.d.ts +4 -4
  111. package/dist/cjs/react/dockview/defaultTab.js +72 -72
  112. package/dist/cjs/react/dockview/dockview.d.ts +34 -34
  113. package/dist/cjs/react/dockview/dockview.js +212 -212
  114. package/dist/cjs/react/dockview/groupControlsRenderer.d.ts +43 -43
  115. package/dist/cjs/react/dockview/groupControlsRenderer.js +86 -86
  116. package/dist/cjs/react/dockview/reactContentPart.d.ts +30 -30
  117. package/dist/cjs/react/dockview/reactContentPart.js +58 -58
  118. package/dist/cjs/react/dockview/reactHeaderPart.d.ts +26 -26
  119. package/dist/cjs/react/dockview/reactHeaderPart.js +55 -55
  120. package/dist/cjs/react/dockview/reactWatermarkPart.d.ts +29 -29
  121. package/dist/cjs/react/dockview/reactWatermarkPart.js +65 -65
  122. package/dist/cjs/react/dockview/v2/reactContentRenderer.d.ts +29 -29
  123. package/dist/cjs/react/dockview/v2/reactContentRenderer.js +87 -87
  124. package/dist/cjs/react/dockview/v2/reactGroupPanelView.d.ts +7 -7
  125. package/dist/cjs/react/dockview/v2/reactGroupPanelView.js +34 -34
  126. package/dist/cjs/react/dockview/v2/webviewContentRenderer.d.ts +18 -18
  127. package/dist/cjs/react/dockview/v2/webviewContentRenderer.js +45 -45
  128. package/dist/cjs/react/gridview/gridview.d.ts +24 -24
  129. package/dist/cjs/react/gridview/gridview.js +112 -112
  130. package/dist/cjs/react/gridview/view.d.ts +11 -11
  131. package/dist/cjs/react/gridview/view.js +40 -40
  132. package/dist/cjs/react/index.d.ts +9 -9
  133. package/dist/cjs/react/index.js +23 -23
  134. package/dist/cjs/react/paneview/paneview.d.ts +30 -30
  135. package/dist/cjs/react/paneview/paneview.js +155 -155
  136. package/dist/cjs/react/paneview/view.d.ts +20 -20
  137. package/dist/cjs/react/paneview/view.js +44 -44
  138. package/dist/cjs/react/react.d.ts +36 -36
  139. package/dist/cjs/react/react.js +194 -194
  140. package/dist/cjs/react/splitview/splitview.d.ts +24 -24
  141. package/dist/cjs/react/splitview/splitview.js +108 -108
  142. package/dist/cjs/react/splitview/view.d.ts +10 -10
  143. package/dist/cjs/react/splitview/view.js +40 -40
  144. package/dist/cjs/react/svg.d.ts +3 -3
  145. package/dist/cjs/react/svg.js +35 -35
  146. package/dist/cjs/react/types.d.ts +7 -7
  147. package/dist/cjs/react/types.js +2 -2
  148. package/dist/cjs/splitview/core/options.d.ts +26 -26
  149. package/dist/cjs/splitview/core/options.js +2 -2
  150. package/dist/cjs/splitview/core/splitview.d.ts +127 -124
  151. package/dist/cjs/splitview/core/splitview.js +908 -908
  152. package/dist/cjs/splitview/core/splitview.js.map +1 -1
  153. package/dist/cjs/splitview/core/viewItem.d.ts +25 -25
  154. package/dist/cjs/splitview/core/viewItem.js +124 -124
  155. package/dist/cjs/splitview/splitviewComponent.d.ts +101 -101
  156. package/dist/cjs/splitview/splitviewComponent.js +373 -373
  157. package/dist/cjs/splitview/splitviewPanel.d.ts +45 -42
  158. package/dist/cjs/splitview/splitviewPanel.js +178 -178
  159. package/dist/cjs/splitview/splitviewPanel.js.map +1 -1
  160. package/dist/cjs/svg.d.ts +3 -3
  161. package/dist/cjs/svg.js +43 -43
  162. package/dist/cjs/types.d.ts +7 -7
  163. package/dist/cjs/types.js +2 -2
  164. package/dist/dockview.amd.js +6737 -6732
  165. package/dist/dockview.amd.min.js +2 -2
  166. package/dist/dockview.amd.min.noStyle.js +2 -2
  167. package/dist/dockview.amd.noStyle.js +6743 -6738
  168. package/dist/dockview.cjs.js +6736 -6731
  169. package/dist/dockview.esm.js +6731 -6726
  170. package/dist/dockview.esm.min.js +2 -2
  171. package/dist/dockview.js +6737 -6732
  172. package/dist/dockview.min.js +2 -2
  173. package/dist/dockview.min.noStyle.js +2 -2
  174. package/dist/dockview.noStyle.js +6743 -6738
  175. package/dist/esm/actionbar/actionsContainer.d.ts +7 -7
  176. package/dist/esm/actionbar/actionsContainer.js +17 -17
  177. package/dist/esm/api/component.api.d.ts +144 -144
  178. package/dist/esm/api/component.api.js +326 -326
  179. package/dist/esm/api/gridviewPanelApi.d.ts +36 -36
  180. package/dist/esm/api/gridviewPanelApi.js +25 -25
  181. package/dist/esm/api/groupPanelApi.d.ts +34 -34
  182. package/dist/esm/api/groupPanelApi.js +50 -50
  183. package/dist/esm/api/panelApi.d.ts +81 -81
  184. package/dist/esm/api/panelApi.js +79 -79
  185. package/dist/esm/api/paneviewPanelApi.d.ts +26 -26
  186. package/dist/esm/api/paneviewPanelApi.js +27 -27
  187. package/dist/esm/api/splitviewPanelApi.d.ts +32 -32
  188. package/dist/esm/api/splitviewPanelApi.js +25 -25
  189. package/dist/esm/array.d.ts +13 -13
  190. package/dist/esm/array.js +67 -67
  191. package/dist/esm/dnd/abstractDragHandler.d.ts +11 -11
  192. package/dist/esm/dnd/abstractDragHandler.js +37 -37
  193. package/dist/esm/dnd/dataTransfer.d.ts +31 -31
  194. package/dist/esm/dnd/dataTransfer.js +69 -69
  195. package/dist/esm/dnd/dnd.d.ts +27 -27
  196. package/dist/esm/dnd/dnd.js +41 -41
  197. package/dist/esm/dnd/droptarget.d.ts +37 -37
  198. package/dist/esm/dnd/droptarget.js +167 -167
  199. package/dist/esm/dockview/components/tab/defaultTab.d.ts +27 -27
  200. package/dist/esm/dockview/components/tab/defaultTab.js +79 -79
  201. package/dist/esm/dockview/components/watermark/watermark.d.ts +20 -20
  202. package/dist/esm/dockview/components/watermark/watermark.js +70 -70
  203. package/dist/esm/dockview/defaultGroupPanelView.d.ts +29 -29
  204. package/dist/esm/dockview/defaultGroupPanelView.js +44 -44
  205. package/dist/esm/dockview/deserializer.d.ts +5 -5
  206. package/dist/esm/dockview/deserializer.js +1 -1
  207. package/dist/esm/dockview/dockviewComponent.d.ts +125 -125
  208. package/dist/esm/dockview/dockviewComponent.js +468 -468
  209. package/dist/esm/dockview/dockviewGroupPanel.d.ts +31 -31
  210. package/dist/esm/dockview/dockviewGroupPanel.js +107 -107
  211. package/dist/esm/dockview/options.d.ts +88 -88
  212. package/dist/esm/dockview/options.js +1 -1
  213. package/dist/esm/dom.d.ts +14 -14
  214. package/dist/esm/dom.js +113 -113
  215. package/dist/esm/events.d.ts +30 -30
  216. package/dist/esm/events.js +88 -88
  217. package/dist/esm/gridview/baseComponentGridview.d.ts +87 -87
  218. package/dist/esm/gridview/baseComponentGridview.js +189 -189
  219. package/dist/esm/gridview/basePanelView.d.ts +43 -43
  220. package/dist/esm/gridview/basePanelView.js +74 -74
  221. package/dist/esm/gridview/branchNode.d.ts +49 -46
  222. package/dist/esm/gridview/branchNode.js +218 -218
  223. package/dist/esm/gridview/gridview.d.ts +126 -123
  224. package/dist/esm/gridview/gridview.js +397 -397
  225. package/dist/esm/gridview/gridviewComponent.d.ts +85 -85
  226. package/dist/esm/gridview/gridviewComponent.js +238 -238
  227. package/dist/esm/gridview/gridviewPanel.d.ts +60 -60
  228. package/dist/esm/gridview/gridviewPanel.js +138 -138
  229. package/dist/esm/gridview/leafNode.d.ts +34 -31
  230. package/dist/esm/gridview/leafNode.js +103 -98
  231. package/dist/esm/gridview/options.d.ts +18 -18
  232. package/dist/esm/gridview/options.js +1 -1
  233. package/dist/esm/gridview/types.d.ts +3 -3
  234. package/dist/esm/gridview/types.js +1 -1
  235. package/dist/esm/groupview/dnd.d.ts +5 -5
  236. package/dist/esm/groupview/dnd.js +6 -6
  237. package/dist/esm/groupview/groupPanel.d.ts +32 -32
  238. package/dist/esm/groupview/groupPanel.js +1 -1
  239. package/dist/esm/groupview/groupview.d.ts +177 -177
  240. package/dist/esm/groupview/groupview.js +444 -444
  241. package/dist/esm/groupview/groupviewPanel.d.ts +35 -35
  242. package/dist/esm/groupview/groupviewPanel.js +61 -61
  243. package/dist/esm/groupview/panel/content.d.ts +30 -30
  244. package/dist/esm/groupview/panel/content.js +73 -73
  245. package/dist/esm/groupview/tab.d.ts +41 -41
  246. package/dist/esm/groupview/tab.js +90 -90
  247. package/dist/esm/groupview/titlebar/tabsContainer.d.ts +68 -68
  248. package/dist/esm/groupview/titlebar/tabsContainer.js +190 -190
  249. package/dist/esm/groupview/types.d.ts +52 -52
  250. package/dist/esm/groupview/types.js +1 -1
  251. package/dist/esm/hostedContainer.d.ts +23 -23
  252. package/dist/esm/hostedContainer.js +63 -63
  253. package/dist/esm/index.d.ts +30 -30
  254. package/dist/esm/index.js +23 -23
  255. package/dist/esm/lifecycle.d.ts +22 -22
  256. package/dist/esm/lifecycle.js +39 -39
  257. package/dist/esm/math.d.ts +4 -4
  258. package/dist/esm/math.js +10 -10
  259. package/dist/esm/panel/componentFactory.d.ts +8 -8
  260. package/dist/esm/panel/componentFactory.js +24 -24
  261. package/dist/esm/panel/types.d.ts +33 -33
  262. package/dist/esm/panel/types.js +1 -1
  263. package/dist/esm/paneview/defaultPaneviewHeader.d.ts +21 -21
  264. package/dist/esm/paneview/defaultPaneviewHeader.js +63 -63
  265. package/dist/esm/paneview/draggablePaneviewPanel.d.ts +19 -19
  266. package/dist/esm/paneview/draggablePaneviewPanel.js +90 -90
  267. package/dist/esm/paneview/options.d.ts +27 -27
  268. package/dist/esm/paneview/options.js +1 -1
  269. package/dist/esm/paneview/paneview.d.ts +40 -40
  270. package/dist/esm/paneview/paneview.js +145 -145
  271. package/dist/esm/paneview/paneviewComponent.d.ts +129 -129
  272. package/dist/esm/paneview/paneviewComponent.js +270 -270
  273. package/dist/esm/paneview/paneviewPanel.d.ts +92 -89
  274. package/dist/esm/paneview/paneviewPanel.js +191 -191
  275. package/dist/esm/react/deserializer.d.ts +9 -9
  276. package/dist/esm/react/deserializer.js +38 -38
  277. package/dist/esm/react/dockview/defaultTab.d.ts +4 -4
  278. package/dist/esm/react/dockview/defaultTab.js +34 -34
  279. package/dist/esm/react/dockview/dockview.d.ts +34 -34
  280. package/dist/esm/react/dockview/dockview.js +157 -157
  281. package/dist/esm/react/dockview/groupControlsRenderer.d.ts +43 -43
  282. package/dist/esm/react/dockview/groupControlsRenderer.js +68 -68
  283. package/dist/esm/react/dockview/reactContentPart.d.ts +30 -30
  284. package/dist/esm/react/dockview/reactContentPart.js +49 -49
  285. package/dist/esm/react/dockview/reactHeaderPart.d.ts +26 -26
  286. package/dist/esm/react/dockview/reactHeaderPart.js +46 -46
  287. package/dist/esm/react/dockview/reactWatermarkPart.d.ts +29 -29
  288. package/dist/esm/react/dockview/reactWatermarkPart.js +55 -55
  289. package/dist/esm/react/dockview/v2/reactContentRenderer.d.ts +29 -29
  290. package/dist/esm/react/dockview/v2/reactContentRenderer.js +69 -69
  291. package/dist/esm/react/dockview/v2/reactGroupPanelView.d.ts +7 -7
  292. package/dist/esm/react/dockview/v2/reactGroupPanelView.js +12 -12
  293. package/dist/esm/react/dockview/v2/webviewContentRenderer.d.ts +18 -18
  294. package/dist/esm/react/dockview/v2/webviewContentRenderer.js +36 -36
  295. package/dist/esm/react/gridview/gridview.d.ts +24 -24
  296. package/dist/esm/react/gridview/gridview.js +70 -70
  297. package/dist/esm/react/gridview/view.d.ts +11 -11
  298. package/dist/esm/react/gridview/view.js +18 -18
  299. package/dist/esm/react/index.d.ts +9 -9
  300. package/dist/esm/react/index.js +7 -7
  301. package/dist/esm/react/paneview/paneview.d.ts +30 -30
  302. package/dist/esm/react/paneview/paneview.js +100 -100
  303. package/dist/esm/react/paneview/view.d.ts +20 -20
  304. package/dist/esm/react/paneview/view.js +35 -35
  305. package/dist/esm/react/react.d.ts +36 -36
  306. package/dist/esm/react/react.js +125 -125
  307. package/dist/esm/react/splitview/splitview.d.ts +24 -24
  308. package/dist/esm/react/splitview/splitview.js +66 -66
  309. package/dist/esm/react/splitview/view.d.ts +10 -10
  310. package/dist/esm/react/splitview/view.js +18 -18
  311. package/dist/esm/react/svg.d.ts +3 -3
  312. package/dist/esm/react/svg.js +7 -7
  313. package/dist/esm/react/types.d.ts +7 -7
  314. package/dist/esm/react/types.js +1 -1
  315. package/dist/esm/splitview/core/options.d.ts +26 -26
  316. package/dist/esm/splitview/core/options.js +1 -1
  317. package/dist/esm/splitview/core/splitview.d.ts +127 -124
  318. package/dist/esm/splitview/core/splitview.js +689 -689
  319. package/dist/esm/splitview/core/viewItem.d.ts +25 -25
  320. package/dist/esm/splitview/core/viewItem.js +79 -79
  321. package/dist/esm/splitview/splitviewComponent.d.ts +101 -101
  322. package/dist/esm/splitview/splitviewComponent.js +249 -249
  323. package/dist/esm/splitview/splitviewPanel.d.ts +45 -42
  324. package/dist/esm/splitview/splitviewPanel.js +107 -107
  325. package/dist/esm/svg.d.ts +3 -3
  326. package/dist/esm/svg.js +31 -31
  327. package/dist/esm/types.d.ts +7 -7
  328. package/dist/esm/types.js +1 -1
  329. package/package.json +2 -2
@@ -1,66 +1,66 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReactWatermarkPart = void 0;
4
- var react_1 = require("../react");
5
- var ReactWatermarkPart = /** @class */ (function () {
6
- function ReactWatermarkPart(id, component, reactPortalStore) {
7
- this.id = id;
8
- this.component = component;
9
- this.reactPortalStore = reactPortalStore;
10
- this._groupRef = {
11
- value: undefined,
12
- };
13
- this._element = document.createElement('div');
14
- this._element.className = 'dockview-react-part';
15
- }
16
- Object.defineProperty(ReactWatermarkPart.prototype, "element", {
17
- get: function () {
18
- return this._element;
19
- },
20
- enumerable: false,
21
- configurable: true
22
- });
23
- ReactWatermarkPart.prototype.init = function (parameters) {
24
- var _this = this;
25
- this.parameters = parameters;
26
- this.part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
27
- params: parameters.params,
28
- api: parameters.api,
29
- containerApi: parameters.containerApi,
30
- close: function () {
31
- if (_this._groupRef.value) {
32
- parameters.containerApi.removeGroup(_this._groupRef.value);
33
- }
34
- },
35
- });
36
- };
37
- ReactWatermarkPart.prototype.focus = function () {
38
- // noop
39
- };
40
- ReactWatermarkPart.prototype.update = function (params) {
41
- var _a, _b;
42
- if (this.parameters) {
43
- this.parameters.params = params.params;
44
- }
45
- (_a = this.part) === null || _a === void 0 ? void 0 : _a.update({ params: ((_b = this.parameters) === null || _b === void 0 ? void 0 : _b.params) || {} });
46
- };
47
- ReactWatermarkPart.prototype.toJSON = function () {
48
- return {
49
- id: this.id,
50
- };
51
- };
52
- ReactWatermarkPart.prototype.layout = function (_width, _height) {
53
- // noop - retrieval from api
54
- };
55
- ReactWatermarkPart.prototype.updateParentGroup = function (group, _isPanelVisible) {
56
- // noop - retrieval from api
57
- this._groupRef.value = group;
58
- };
59
- ReactWatermarkPart.prototype.dispose = function () {
60
- var _a;
61
- (_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
62
- };
63
- return ReactWatermarkPart;
64
- }());
65
- exports.ReactWatermarkPart = ReactWatermarkPart;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReactWatermarkPart = void 0;
4
+ var react_1 = require("../react");
5
+ var ReactWatermarkPart = /** @class */ (function () {
6
+ function ReactWatermarkPart(id, component, reactPortalStore) {
7
+ this.id = id;
8
+ this.component = component;
9
+ this.reactPortalStore = reactPortalStore;
10
+ this._groupRef = {
11
+ value: undefined,
12
+ };
13
+ this._element = document.createElement('div');
14
+ this._element.className = 'dockview-react-part';
15
+ }
16
+ Object.defineProperty(ReactWatermarkPart.prototype, "element", {
17
+ get: function () {
18
+ return this._element;
19
+ },
20
+ enumerable: false,
21
+ configurable: true
22
+ });
23
+ ReactWatermarkPart.prototype.init = function (parameters) {
24
+ var _this = this;
25
+ this.parameters = parameters;
26
+ this.part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
27
+ params: parameters.params,
28
+ api: parameters.api,
29
+ containerApi: parameters.containerApi,
30
+ close: function () {
31
+ if (_this._groupRef.value) {
32
+ parameters.containerApi.removeGroup(_this._groupRef.value);
33
+ }
34
+ },
35
+ });
36
+ };
37
+ ReactWatermarkPart.prototype.focus = function () {
38
+ // noop
39
+ };
40
+ ReactWatermarkPart.prototype.update = function (params) {
41
+ var _a, _b;
42
+ if (this.parameters) {
43
+ this.parameters.params = params.params;
44
+ }
45
+ (_a = this.part) === null || _a === void 0 ? void 0 : _a.update({ params: ((_b = this.parameters) === null || _b === void 0 ? void 0 : _b.params) || {} });
46
+ };
47
+ ReactWatermarkPart.prototype.toJSON = function () {
48
+ return {
49
+ id: this.id,
50
+ };
51
+ };
52
+ ReactWatermarkPart.prototype.layout = function (_width, _height) {
53
+ // noop - retrieval from api
54
+ };
55
+ ReactWatermarkPart.prototype.updateParentGroup = function (group, _isPanelVisible) {
56
+ // noop - retrieval from api
57
+ this._groupRef.value = group;
58
+ };
59
+ ReactWatermarkPart.prototype.dispose = function () {
60
+ var _a;
61
+ (_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
62
+ };
63
+ return ReactWatermarkPart;
64
+ }());
65
+ exports.ReactWatermarkPart = ReactWatermarkPart;
66
66
  //# sourceMappingURL=reactWatermarkPart.js.map
@@ -1,29 +1,29 @@
1
- /// <reference types="react" />
2
- import { GroupPanelPartInitParameters, IContentRenderer } from '../../../groupview/types';
3
- import { GroupPanel } from '../../../groupview/groupviewPanel';
4
- import { PanelUpdateEvent } from '../../../panel/types';
5
- import { ReactPortalStore } from '../../react';
6
- import { IDockviewPanelProps } from '../dockview';
7
- export declare class ReactContentRenderer implements IContentRenderer {
8
- readonly id: string;
9
- private readonly component;
10
- private readonly reactPortalStore;
11
- private _hostedContainer;
12
- private _element;
13
- private part?;
14
- private _group;
15
- private parameters;
16
- get element(): HTMLElement;
17
- get onDidBlur(): import("../../..").Event<void>;
18
- get onDidFocus(): import("../../..").Event<void>;
19
- constructor(id: string, component: React.FunctionComponent<IDockviewPanelProps>, reactPortalStore: ReactPortalStore);
20
- focus(): void;
21
- init(parameters: GroupPanelPartInitParameters): void;
22
- toJSON(): {
23
- id: string;
24
- };
25
- update(params: PanelUpdateEvent): void;
26
- updateParentGroup(group: GroupPanel, _isPanelVisible: boolean): void;
27
- layout(_width: number, _height: number): void;
28
- dispose(): void;
29
- }
1
+ /// <reference types="react" />
2
+ import { GroupPanelPartInitParameters, IContentRenderer } from '../../../groupview/types';
3
+ import { GroupPanel } from '../../../groupview/groupviewPanel';
4
+ import { PanelUpdateEvent } from '../../../panel/types';
5
+ import { ReactPortalStore } from '../../react';
6
+ import { IDockviewPanelProps } from '../dockview';
7
+ export declare class ReactContentRenderer implements IContentRenderer {
8
+ readonly id: string;
9
+ private readonly component;
10
+ private readonly reactPortalStore;
11
+ private _hostedContainer;
12
+ private _element;
13
+ private part?;
14
+ private _group;
15
+ private parameters;
16
+ get element(): HTMLElement;
17
+ get onDidBlur(): import("../../..").Event<void>;
18
+ get onDidFocus(): import("../../..").Event<void>;
19
+ constructor(id: string, component: React.FunctionComponent<IDockviewPanelProps>, reactPortalStore: ReactPortalStore);
20
+ focus(): void;
21
+ init(parameters: GroupPanelPartInitParameters): void;
22
+ toJSON(): {
23
+ id: string;
24
+ };
25
+ update(params: PanelUpdateEvent): void;
26
+ updateParentGroup(group: GroupPanel, _isPanelVisible: boolean): void;
27
+ layout(_width: number, _height: number): void;
28
+ dispose(): void;
29
+ }
@@ -1,88 +1,88 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReactContentRenderer = void 0;
4
- var hostedContainer_1 = require("../../../hostedContainer");
5
- var react_1 = require("../../react");
6
- var ReactContentRenderer = /** @class */ (function () {
7
- function ReactContentRenderer(id, component, reactPortalStore) {
8
- this.id = id;
9
- this.component = component;
10
- this.reactPortalStore = reactPortalStore;
11
- this._hostedContainer = new hostedContainer_1.HostedContainer({
12
- id: id,
13
- parent: document
14
- .getElementsByClassName('dockview')
15
- .item(0),
16
- });
17
- this._element = document.createElement('div');
18
- this._element.style.height = '100%';
19
- this._element.style.width = '100%';
20
- }
21
- Object.defineProperty(ReactContentRenderer.prototype, "element", {
22
- get: function () {
23
- return this._element;
24
- },
25
- enumerable: false,
26
- configurable: true
27
- });
28
- Object.defineProperty(ReactContentRenderer.prototype, "onDidBlur", {
29
- get: function () {
30
- return this._hostedContainer.onDidBlur;
31
- },
32
- enumerable: false,
33
- configurable: true
34
- });
35
- Object.defineProperty(ReactContentRenderer.prototype, "onDidFocus", {
36
- get: function () {
37
- return this._hostedContainer.onDidFocus;
38
- },
39
- enumerable: false,
40
- configurable: true
41
- });
42
- ReactContentRenderer.prototype.focus = function () {
43
- // noop
44
- };
45
- ReactContentRenderer.prototype.init = function (parameters) {
46
- var _this = this;
47
- this.parameters = parameters;
48
- parameters.api.onDidVisibilityChange(function (event) {
49
- if (event.isVisible) {
50
- _this._hostedContainer.show();
51
- _this._hostedContainer.layout(_this.element);
52
- }
53
- else {
54
- _this._hostedContainer.hide();
55
- }
56
- });
57
- this.part = new react_1.ReactPart(this._hostedContainer.element, this.reactPortalStore, this.component, {
58
- params: parameters.params,
59
- api: parameters.api,
60
- containerApi: parameters.containerApi,
61
- });
62
- };
63
- ReactContentRenderer.prototype.toJSON = function () {
64
- return {
65
- id: this.id,
66
- };
67
- };
68
- ReactContentRenderer.prototype.update = function (params) {
69
- var _a;
70
- if (this.parameters) {
71
- this.parameters.params = params.params;
72
- }
73
- (_a = this.part) === null || _a === void 0 ? void 0 : _a.update(params.params);
74
- };
75
- ReactContentRenderer.prototype.updateParentGroup = function (group, _isPanelVisible) {
76
- this._group = group;
77
- };
78
- ReactContentRenderer.prototype.layout = function (_width, _height) {
79
- this._hostedContainer.layout(this.element);
80
- };
81
- ReactContentRenderer.prototype.dispose = function () {
82
- var _a;
83
- (_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
84
- };
85
- return ReactContentRenderer;
86
- }());
87
- exports.ReactContentRenderer = ReactContentRenderer;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReactContentRenderer = void 0;
4
+ var hostedContainer_1 = require("../../../hostedContainer");
5
+ var react_1 = require("../../react");
6
+ var ReactContentRenderer = /** @class */ (function () {
7
+ function ReactContentRenderer(id, component, reactPortalStore) {
8
+ this.id = id;
9
+ this.component = component;
10
+ this.reactPortalStore = reactPortalStore;
11
+ this._hostedContainer = new hostedContainer_1.HostedContainer({
12
+ id: id,
13
+ parent: document
14
+ .getElementsByClassName('dockview')
15
+ .item(0),
16
+ });
17
+ this._element = document.createElement('div');
18
+ this._element.style.height = '100%';
19
+ this._element.style.width = '100%';
20
+ }
21
+ Object.defineProperty(ReactContentRenderer.prototype, "element", {
22
+ get: function () {
23
+ return this._element;
24
+ },
25
+ enumerable: false,
26
+ configurable: true
27
+ });
28
+ Object.defineProperty(ReactContentRenderer.prototype, "onDidBlur", {
29
+ get: function () {
30
+ return this._hostedContainer.onDidBlur;
31
+ },
32
+ enumerable: false,
33
+ configurable: true
34
+ });
35
+ Object.defineProperty(ReactContentRenderer.prototype, "onDidFocus", {
36
+ get: function () {
37
+ return this._hostedContainer.onDidFocus;
38
+ },
39
+ enumerable: false,
40
+ configurable: true
41
+ });
42
+ ReactContentRenderer.prototype.focus = function () {
43
+ // noop
44
+ };
45
+ ReactContentRenderer.prototype.init = function (parameters) {
46
+ var _this = this;
47
+ this.parameters = parameters;
48
+ parameters.api.onDidVisibilityChange(function (event) {
49
+ if (event.isVisible) {
50
+ _this._hostedContainer.show();
51
+ _this._hostedContainer.layout(_this.element);
52
+ }
53
+ else {
54
+ _this._hostedContainer.hide();
55
+ }
56
+ });
57
+ this.part = new react_1.ReactPart(this._hostedContainer.element, this.reactPortalStore, this.component, {
58
+ params: parameters.params,
59
+ api: parameters.api,
60
+ containerApi: parameters.containerApi,
61
+ });
62
+ };
63
+ ReactContentRenderer.prototype.toJSON = function () {
64
+ return {
65
+ id: this.id,
66
+ };
67
+ };
68
+ ReactContentRenderer.prototype.update = function (params) {
69
+ var _a;
70
+ if (this.parameters) {
71
+ this.parameters.params = params.params;
72
+ }
73
+ (_a = this.part) === null || _a === void 0 ? void 0 : _a.update(params.params);
74
+ };
75
+ ReactContentRenderer.prototype.updateParentGroup = function (group, _isPanelVisible) {
76
+ this._group = group;
77
+ };
78
+ ReactContentRenderer.prototype.layout = function (_width, _height) {
79
+ this._hostedContainer.layout(this.element);
80
+ };
81
+ ReactContentRenderer.prototype.dispose = function () {
82
+ var _a;
83
+ (_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
84
+ };
85
+ return ReactContentRenderer;
86
+ }());
87
+ exports.ReactContentRenderer = ReactContentRenderer;
88
88
  //# sourceMappingURL=reactContentRenderer.js.map
@@ -1,7 +1,7 @@
1
- import { DockviewRenderFunctions, ViewFactoryData } from '../../../dockview/options';
2
- import { ReactPortalStore } from '../../react';
3
- import { DefaultGroupPanelView } from '../../../dockview/defaultGroupPanelView';
4
- export declare class ReactGroupPanelView extends DefaultGroupPanelView {
5
- private readonly data;
6
- constructor(id: string, options: DockviewRenderFunctions, data: ViewFactoryData, reactPortalStore: ReactPortalStore);
7
- }
1
+ import { DockviewRenderFunctions, ViewFactoryData } from '../../../dockview/options';
2
+ import { ReactPortalStore } from '../../react';
3
+ import { DefaultGroupPanelView } from '../../../dockview/defaultGroupPanelView';
4
+ export declare class ReactGroupPanelView extends DefaultGroupPanelView {
5
+ private readonly data;
6
+ constructor(id: string, options: DockviewRenderFunctions, data: ViewFactoryData, reactPortalStore: ReactPortalStore);
7
+ }
@@ -1,35 +1,35 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.ReactGroupPanelView = void 0;
19
- var defaultTab_1 = require("../../../dockview/components/tab/defaultTab");
20
- var defaultGroupPanelView_1 = require("../../../dockview/defaultGroupPanelView");
21
- var reactContentRenderer_1 = require("./reactContentRenderer");
22
- var ReactGroupPanelView = /** @class */ (function (_super) {
23
- __extends(ReactGroupPanelView, _super);
24
- function ReactGroupPanelView(id, options, data, reactPortalStore) {
25
- var _this = _super.call(this, {
26
- content: new reactContentRenderer_1.ReactContentRenderer(id, options.frameworkComponents[data.content], reactPortalStore),
27
- tab: new defaultTab_1.DefaultTab(),
28
- }) || this;
29
- _this.data = data;
30
- return _this;
31
- }
32
- return ReactGroupPanelView;
33
- }(defaultGroupPanelView_1.DefaultGroupPanelView));
34
- exports.ReactGroupPanelView = ReactGroupPanelView;
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ReactGroupPanelView = void 0;
19
+ var defaultTab_1 = require("../../../dockview/components/tab/defaultTab");
20
+ var defaultGroupPanelView_1 = require("../../../dockview/defaultGroupPanelView");
21
+ var reactContentRenderer_1 = require("./reactContentRenderer");
22
+ var ReactGroupPanelView = /** @class */ (function (_super) {
23
+ __extends(ReactGroupPanelView, _super);
24
+ function ReactGroupPanelView(id, options, data, reactPortalStore) {
25
+ var _this = _super.call(this, {
26
+ content: new reactContentRenderer_1.ReactContentRenderer(id, options.frameworkComponents[data.content], reactPortalStore),
27
+ tab: new defaultTab_1.DefaultTab(),
28
+ }) || this;
29
+ _this.data = data;
30
+ return _this;
31
+ }
32
+ return ReactGroupPanelView;
33
+ }(defaultGroupPanelView_1.DefaultGroupPanelView));
34
+ exports.ReactGroupPanelView = ReactGroupPanelView;
35
35
  //# sourceMappingURL=reactGroupPanelView.js.map
@@ -1,18 +1,18 @@
1
- import { GroupPanelPartInitParameters, IContentRenderer } from '../../../groupview/types';
2
- import { GroupPanel } from '../../../groupview/groupviewPanel';
3
- import { PanelUpdateEvent } from '../../../panel/types';
4
- export declare class WebviewContentRenderer implements IContentRenderer {
5
- readonly id: string;
6
- private _hostedContainer;
7
- private _element;
8
- private parameters;
9
- get element(): HTMLElement;
10
- constructor(id: string);
11
- focus(): void;
12
- init(parameters: GroupPanelPartInitParameters): void;
13
- toJSON(): {};
14
- update(params: PanelUpdateEvent): void;
15
- updateParentGroup(_group: GroupPanel, _isPanelVisible: boolean): void;
16
- layout(_width: number, _height: number): void;
17
- dispose(): void;
18
- }
1
+ import { GroupPanelPartInitParameters, IContentRenderer } from '../../../groupview/types';
2
+ import { GroupPanel } from '../../../groupview/groupviewPanel';
3
+ import { PanelUpdateEvent } from '../../../panel/types';
4
+ export declare class WebviewContentRenderer implements IContentRenderer {
5
+ readonly id: string;
6
+ private _hostedContainer;
7
+ private _element;
8
+ private parameters;
9
+ get element(): HTMLElement;
10
+ constructor(id: string);
11
+ focus(): void;
12
+ init(parameters: GroupPanelPartInitParameters): void;
13
+ toJSON(): {};
14
+ update(params: PanelUpdateEvent): void;
15
+ updateParentGroup(_group: GroupPanel, _isPanelVisible: boolean): void;
16
+ layout(_width: number, _height: number): void;
17
+ dispose(): void;
18
+ }
@@ -1,46 +1,46 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebviewContentRenderer = void 0;
4
- var hostedContainer_1 = require("../../../hostedContainer");
5
- var WebviewContentRenderer = /** @class */ (function () {
6
- function WebviewContentRenderer(id) {
7
- this.id = id;
8
- this._hostedContainer = new hostedContainer_1.HostedContainer({ id: id });
9
- this._element = document.createElement('div');
10
- this._element.style.height = '100%';
11
- this._element.style.width = '100%';
12
- }
13
- Object.defineProperty(WebviewContentRenderer.prototype, "element", {
14
- get: function () {
15
- return this._element;
16
- },
17
- enumerable: false,
18
- configurable: true
19
- });
20
- WebviewContentRenderer.prototype.focus = function () {
21
- // noop
22
- };
23
- WebviewContentRenderer.prototype.init = function (parameters) {
24
- this.parameters = parameters;
25
- };
26
- WebviewContentRenderer.prototype.toJSON = function () {
27
- return {};
28
- };
29
- WebviewContentRenderer.prototype.update = function (params) {
30
- if (this.parameters) {
31
- this.parameters.params = params.params;
32
- }
33
- };
34
- WebviewContentRenderer.prototype.updateParentGroup = function (_group, _isPanelVisible) {
35
- //
36
- };
37
- WebviewContentRenderer.prototype.layout = function (_width, _height) {
38
- this._hostedContainer.layout(this._element);
39
- };
40
- WebviewContentRenderer.prototype.dispose = function () {
41
- //
42
- };
43
- return WebviewContentRenderer;
44
- }());
45
- exports.WebviewContentRenderer = WebviewContentRenderer;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebviewContentRenderer = void 0;
4
+ var hostedContainer_1 = require("../../../hostedContainer");
5
+ var WebviewContentRenderer = /** @class */ (function () {
6
+ function WebviewContentRenderer(id) {
7
+ this.id = id;
8
+ this._hostedContainer = new hostedContainer_1.HostedContainer({ id: id });
9
+ this._element = document.createElement('div');
10
+ this._element.style.height = '100%';
11
+ this._element.style.width = '100%';
12
+ }
13
+ Object.defineProperty(WebviewContentRenderer.prototype, "element", {
14
+ get: function () {
15
+ return this._element;
16
+ },
17
+ enumerable: false,
18
+ configurable: true
19
+ });
20
+ WebviewContentRenderer.prototype.focus = function () {
21
+ // noop
22
+ };
23
+ WebviewContentRenderer.prototype.init = function (parameters) {
24
+ this.parameters = parameters;
25
+ };
26
+ WebviewContentRenderer.prototype.toJSON = function () {
27
+ return {};
28
+ };
29
+ WebviewContentRenderer.prototype.update = function (params) {
30
+ if (this.parameters) {
31
+ this.parameters.params = params.params;
32
+ }
33
+ };
34
+ WebviewContentRenderer.prototype.updateParentGroup = function (_group, _isPanelVisible) {
35
+ //
36
+ };
37
+ WebviewContentRenderer.prototype.layout = function (_width, _height) {
38
+ this._hostedContainer.layout(this._element);
39
+ };
40
+ WebviewContentRenderer.prototype.dispose = function () {
41
+ //
42
+ };
43
+ return WebviewContentRenderer;
44
+ }());
45
+ exports.WebviewContentRenderer = WebviewContentRenderer;
46
46
  //# sourceMappingURL=webviewContentRenderer.js.map
@@ -1,24 +1,24 @@
1
- import * as React from 'react';
2
- import { GridviewPanelApi } from '../../api/gridviewPanelApi';
3
- import { Orientation } from '../../splitview/core/splitview';
4
- import { GridviewApi } from '../../api/component.api';
5
- import { PanelCollection, PanelParameters } from '../types';
6
- export interface GridviewReadyEvent {
7
- api: GridviewApi;
8
- }
9
- export interface IGridviewPanelProps<T extends {
10
- [index: string]: any;
11
- } = any> extends PanelParameters<T> {
12
- api: GridviewPanelApi;
13
- containerApi: GridviewApi;
14
- }
15
- export interface IGridviewReactProps {
16
- orientation?: Orientation;
17
- onReady: (event: GridviewReadyEvent) => void;
18
- components: PanelCollection<IGridviewPanelProps>;
19
- hideBorders?: boolean;
20
- className?: string;
21
- proportionalLayout?: boolean;
22
- disableAutoResizing?: boolean;
23
- }
24
- export declare const GridviewReact: React.ForwardRefExoticComponent<IGridviewReactProps & React.RefAttributes<HTMLDivElement>>;
1
+ import * as React from 'react';
2
+ import { GridviewPanelApi } from '../../api/gridviewPanelApi';
3
+ import { Orientation } from '../../splitview/core/splitview';
4
+ import { GridviewApi } from '../../api/component.api';
5
+ import { PanelCollection, PanelParameters } from '../types';
6
+ export interface GridviewReadyEvent {
7
+ api: GridviewApi;
8
+ }
9
+ export interface IGridviewPanelProps<T extends {
10
+ [index: string]: any;
11
+ } = any> extends PanelParameters<T> {
12
+ api: GridviewPanelApi;
13
+ containerApi: GridviewApi;
14
+ }
15
+ export interface IGridviewReactProps {
16
+ orientation?: Orientation;
17
+ onReady: (event: GridviewReadyEvent) => void;
18
+ components: PanelCollection<IGridviewPanelProps>;
19
+ hideBorders?: boolean;
20
+ className?: string;
21
+ proportionalLayout?: boolean;
22
+ disableAutoResizing?: boolean;
23
+ }
24
+ export declare const GridviewReact: React.ForwardRefExoticComponent<IGridviewReactProps & React.RefAttributes<HTMLDivElement>>;