@deephaven/dashboard-core-plugins 0.5.2-matplotlib.3 → 0.6.1-demo.8

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 (354) hide show
  1. package/dist/{src/ChartPlugin.d.ts → ChartPlugin.d.ts} +0 -0
  2. package/dist/ChartPlugin.d.ts.map +1 -0
  3. package/dist/ChartPlugin.js +25 -22
  4. package/dist/ChartPlugin.js.map +1 -1
  5. package/dist/{src/ConsolePlugin.d.ts → ConsolePlugin.d.ts} +0 -0
  6. package/dist/ConsolePlugin.d.ts.map +1 -0
  7. package/dist/ConsolePlugin.js +141 -139
  8. package/dist/ConsolePlugin.js.map +1 -1
  9. package/dist/{src/FilterPlugin.d.ts → FilterPlugin.d.ts} +0 -0
  10. package/dist/FilterPlugin.d.ts.map +1 -0
  11. package/dist/FilterPlugin.js +114 -116
  12. package/dist/FilterPlugin.js.map +1 -1
  13. package/dist/{src/GridPlugin.d.ts → GridPlugin.d.ts} +0 -0
  14. package/dist/GridPlugin.d.ts.map +1 -0
  15. package/dist/GridPlugin.js +29 -26
  16. package/dist/GridPlugin.js.map +1 -1
  17. package/dist/{src/LinkerPlugin.d.ts → LinkerPlugin.d.ts} +0 -0
  18. package/dist/LinkerPlugin.d.ts.map +1 -0
  19. package/dist/LinkerPlugin.js +7 -5
  20. package/dist/LinkerPlugin.js.map +1 -1
  21. package/dist/{src/MarkdownPlugin.d.ts → MarkdownPlugin.d.ts} +0 -0
  22. package/dist/MarkdownPlugin.d.ts.map +1 -0
  23. package/dist/MarkdownPlugin.js +44 -45
  24. package/dist/MarkdownPlugin.js.map +1 -1
  25. package/dist/PandasPlugin.d.ts +8 -0
  26. package/dist/PandasPlugin.d.ts.map +1 -0
  27. package/dist/PandasPlugin.js +12 -12
  28. package/dist/PandasPlugin.js.map +1 -1
  29. package/dist/{src/controls → controls}/ControlType.d.ts +2 -0
  30. package/dist/controls/ControlType.d.ts.map +1 -0
  31. package/dist/controls/ControlType.js +5 -5
  32. package/dist/controls/ControlType.js.map +1 -1
  33. package/dist/{src/controls → controls}/dropdown-filter/DropdownFilter.d.ts +6 -0
  34. package/dist/controls/dropdown-filter/DropdownFilter.d.ts.map +1 -0
  35. package/dist/controls/dropdown-filter/DropdownFilter.js +356 -394
  36. package/dist/controls/dropdown-filter/DropdownFilter.js.map +1 -1
  37. package/dist/{src/controls → controls}/input-filter/InputFilter.d.ts +6 -0
  38. package/dist/controls/input-filter/InputFilter.d.ts.map +1 -0
  39. package/dist/controls/input-filter/InputFilter.js +256 -270
  40. package/dist/controls/input-filter/InputFilter.js.map +1 -1
  41. package/dist/{src/controls → controls}/markdown/MarkdownContainer.d.ts +0 -0
  42. package/dist/controls/markdown/MarkdownContainer.d.ts.map +1 -0
  43. package/dist/controls/markdown/MarkdownContainer.js +18 -56
  44. package/dist/controls/markdown/MarkdownContainer.js.map +1 -1
  45. package/dist/{src/controls → controls}/markdown/MarkdownEditor.d.ts +0 -0
  46. package/dist/controls/markdown/MarkdownEditor.d.ts.map +1 -0
  47. package/dist/controls/markdown/MarkdownEditor.js +36 -75
  48. package/dist/controls/markdown/MarkdownEditor.js.map +1 -1
  49. package/dist/{src/controls → controls}/markdown/MarkdownStartPage.d.ts +0 -0
  50. package/dist/controls/markdown/MarkdownStartPage.d.ts.map +1 -0
  51. package/dist/controls/markdown/MarkdownStartPage.js +93 -133
  52. package/dist/controls/markdown/MarkdownStartPage.js.map +1 -1
  53. package/dist/{src/controls → controls}/markdown/MarkdownUtils.d.ts +0 -0
  54. package/dist/controls/markdown/MarkdownUtils.d.ts.map +1 -0
  55. package/dist/controls/markdown/MarkdownUtils.js +17 -32
  56. package/dist/controls/markdown/MarkdownUtils.js.map +1 -1
  57. package/dist/{src/events → events}/ChartEvent.d.ts +0 -0
  58. package/dist/events/ChartEvent.d.ts.map +1 -0
  59. package/dist/events/ChartEvent.js +1 -5
  60. package/dist/events/ChartEvent.js.map +1 -1
  61. package/dist/{src/events → events}/ConsoleEvent.d.ts +0 -0
  62. package/dist/events/ConsoleEvent.d.ts.map +1 -0
  63. package/dist/events/ConsoleEvent.js +1 -5
  64. package/dist/events/ConsoleEvent.js.map +1 -1
  65. package/dist/{src/events → events}/ControlEvent.d.ts +0 -0
  66. package/dist/events/ControlEvent.d.ts.map +1 -0
  67. package/dist/events/ControlEvent.js +1 -5
  68. package/dist/events/ControlEvent.js.map +1 -1
  69. package/dist/{src/events → events}/InputFilterEvent.d.ts +2 -0
  70. package/dist/events/InputFilterEvent.d.ts.map +1 -0
  71. package/dist/events/InputFilterEvent.js +3 -5
  72. package/dist/events/InputFilterEvent.js.map +1 -1
  73. package/dist/{src/events → events}/IrisGridEvent.d.ts +0 -0
  74. package/dist/events/IrisGridEvent.d.ts.map +1 -0
  75. package/dist/events/IrisGridEvent.js +1 -5
  76. package/dist/events/IrisGridEvent.js.map +1 -1
  77. package/dist/{src/events → events}/MarkdownEvent.d.ts +0 -0
  78. package/dist/events/MarkdownEvent.d.ts.map +1 -0
  79. package/dist/{src/events → events}/NotebookEvent.d.ts +0 -0
  80. package/dist/events/NotebookEvent.d.ts.map +1 -0
  81. package/dist/events/NotebookEvent.js +1 -5
  82. package/dist/events/NotebookEvent.js.map +1 -1
  83. package/dist/{src/events → events}/PQEvent.d.ts +0 -0
  84. package/dist/events/PQEvent.d.ts.map +1 -0
  85. package/dist/events/PQEvent.js +1 -5
  86. package/dist/events/PQEvent.js.map +1 -1
  87. package/dist/{src/events → events}/PandasEvent.d.ts +0 -0
  88. package/dist/events/PandasEvent.d.ts.map +1 -0
  89. package/dist/events/PandasEvent.js +1 -5
  90. package/dist/events/PandasEvent.js.map +1 -1
  91. package/dist/{src/events → events}/TabEvent.d.ts +0 -0
  92. package/dist/events/TabEvent.d.ts.map +1 -0
  93. package/dist/events/TabEvent.js +1 -5
  94. package/dist/events/TabEvent.js.map +1 -1
  95. package/dist/{dist/events → events}/index.d.ts +0 -1
  96. package/dist/{dist/events → events}/index.d.ts.map +1 -1
  97. package/dist/events/index.js +9 -10
  98. package/dist/events/index.js.map +1 -1
  99. package/dist/{src/index.d.ts → index.d.ts} +0 -1
  100. package/dist/index.d.ts.map +1 -0
  101. package/dist/index.js +10 -11
  102. package/dist/index.js.map +1 -1
  103. package/dist/{src/linker → linker}/Linker.d.ts +1 -1
  104. package/dist/linker/Linker.d.ts.map +1 -0
  105. package/dist/linker/Linker.js +594 -606
  106. package/dist/linker/Linker.js.map +1 -1
  107. package/dist/{src/linker → linker}/LinkerLink.d.ts +0 -0
  108. package/dist/linker/LinkerLink.d.ts.map +1 -0
  109. package/dist/linker/LinkerLink.js +92 -126
  110. package/dist/linker/LinkerLink.js.map +1 -1
  111. package/dist/{src/linker → linker}/LinkerOverlayContent.d.ts +0 -0
  112. package/dist/linker/LinkerOverlayContent.d.ts.map +1 -0
  113. package/dist/linker/LinkerOverlayContent.js +162 -220
  114. package/dist/linker/LinkerOverlayContent.js.map +1 -1
  115. package/dist/{src/linker → linker}/LinkerUtils.d.ts +0 -0
  116. package/dist/linker/LinkerUtils.d.ts.map +1 -0
  117. package/dist/linker/LinkerUtils.js +105 -114
  118. package/dist/linker/LinkerUtils.js.map +1 -1
  119. package/dist/{src/linker → linker}/ToolType.d.ts +0 -0
  120. package/dist/{src/linker → linker}/ToolType.d.ts.map +1 -1
  121. package/dist/{src/panels → panels}/ChartColumnSelectorOverlay.d.ts +0 -0
  122. package/dist/panels/ChartColumnSelectorOverlay.d.ts.map +1 -0
  123. package/dist/panels/ChartColumnSelectorOverlay.js +19 -25
  124. package/dist/panels/ChartColumnSelectorOverlay.js.map +1 -1
  125. package/dist/{src/panels → panels}/ChartFilterOverlay.d.ts +0 -0
  126. package/dist/panels/ChartFilterOverlay.d.ts.map +1 -0
  127. package/dist/panels/ChartFilterOverlay.js +18 -24
  128. package/dist/panels/ChartFilterOverlay.js.map +1 -1
  129. package/dist/{src/panels → panels}/ChartPanel.d.ts +3 -0
  130. package/dist/panels/ChartPanel.d.ts.map +1 -0
  131. package/dist/panels/ChartPanel.js +839 -873
  132. package/dist/panels/ChartPanel.js.map +1 -1
  133. package/dist/{src/panels → panels}/CommandHistoryPanel.d.ts +0 -0
  134. package/dist/panels/CommandHistoryPanel.d.ts.map +1 -0
  135. package/dist/panels/CommandHistoryPanel.js +160 -186
  136. package/dist/panels/CommandHistoryPanel.js.map +1 -1
  137. package/dist/{src/panels → panels}/ConsolePanel.d.ts +1 -1
  138. package/dist/panels/ConsolePanel.d.ts.map +1 -0
  139. package/dist/panels/ConsolePanel.js +327 -374
  140. package/dist/panels/ConsolePanel.js.map +1 -1
  141. package/dist/{src/panels → panels}/DropdownFilterPanel.d.ts +6 -0
  142. package/dist/panels/DropdownFilterPanel.d.ts.map +1 -0
  143. package/dist/panels/DropdownFilterPanel.js +537 -566
  144. package/dist/panels/DropdownFilterPanel.js.map +1 -1
  145. package/dist/{src/panels → panels}/FileExplorerPanel.d.ts +6 -1
  146. package/dist/panels/FileExplorerPanel.d.ts.map +1 -0
  147. package/dist/panels/FileExplorerPanel.js +208 -210
  148. package/dist/panels/FileExplorerPanel.js.map +1 -1
  149. package/dist/panels/FilterSetManager.css +111 -0
  150. package/dist/panels/FilterSetManager.css.map +1 -0
  151. package/dist/panels/FilterSetManager.d.ts +66 -0
  152. package/dist/panels/FilterSetManager.d.ts.map +1 -0
  153. package/dist/panels/FilterSetManager.js +732 -0
  154. package/dist/panels/FilterSetManager.js.map +1 -0
  155. package/dist/panels/FilterSetManagerPanel.css +33 -0
  156. package/dist/panels/FilterSetManagerPanel.css.map +1 -0
  157. package/dist/panels/FilterSetManagerPanel.d.ts +69 -0
  158. package/dist/panels/FilterSetManagerPanel.d.ts.map +1 -0
  159. package/dist/panels/FilterSetManagerPanel.js +383 -0
  160. package/dist/panels/FilterSetManagerPanel.js.map +1 -0
  161. package/dist/{src/panels → panels}/InputFilterPanel.d.ts +7 -0
  162. package/dist/panels/InputFilterPanel.d.ts.map +1 -0
  163. package/dist/panels/InputFilterPanel.js +198 -206
  164. package/dist/panels/InputFilterPanel.js.map +1 -1
  165. package/dist/{src/panels → panels}/IrisGridPanel.d.ts +11 -3
  166. package/dist/panels/IrisGridPanel.d.ts.map +1 -0
  167. package/dist/panels/IrisGridPanel.js +779 -771
  168. package/dist/panels/IrisGridPanel.js.map +1 -1
  169. package/dist/{src/panels → panels}/LogPanel.d.ts +0 -0
  170. package/dist/panels/LogPanel.d.ts.map +1 -0
  171. package/dist/panels/LogPanel.js +80 -116
  172. package/dist/panels/LogPanel.js.map +1 -1
  173. package/dist/panels/MarkdownNotebookContainer.d.ts +21 -0
  174. package/dist/panels/MarkdownNotebookContainer.d.ts.map +1 -0
  175. package/dist/panels/MarkdownNotebookContainer.js +35 -0
  176. package/dist/panels/MarkdownNotebookContainer.js.map +1 -0
  177. package/dist/panels/MarkdownNotebookEditor.d.ts +46 -0
  178. package/dist/panels/MarkdownNotebookEditor.d.ts.map +1 -0
  179. package/dist/panels/MarkdownNotebookEditor.js +257 -0
  180. package/dist/panels/MarkdownNotebookEditor.js.map +1 -0
  181. package/dist/panels/MarkdownNotebookPanel.css +127 -0
  182. package/dist/panels/MarkdownNotebookPanel.css.map +1 -0
  183. package/dist/panels/MarkdownNotebookPanel.d.ts +91 -0
  184. package/dist/panels/MarkdownNotebookPanel.d.ts.map +1 -0
  185. package/dist/panels/MarkdownNotebookPanel.js +446 -0
  186. package/dist/panels/MarkdownNotebookPanel.js.map +1 -0
  187. package/dist/{src/panels → panels}/MarkdownPanel.d.ts +0 -0
  188. package/dist/panels/MarkdownPanel.d.ts.map +1 -0
  189. package/dist/panels/MarkdownPanel.js +165 -199
  190. package/dist/panels/MarkdownPanel.js.map +1 -1
  191. package/dist/{src/panels → panels}/NotebookPanel.d.ts +3 -1
  192. package/dist/panels/NotebookPanel.d.ts.map +1 -0
  193. package/dist/panels/NotebookPanel.js +870 -862
  194. package/dist/panels/NotebookPanel.js.map +1 -1
  195. package/dist/{src/panels → panels}/PandasPanel.d.ts +0 -0
  196. package/dist/panels/PandasPanel.d.ts.map +1 -0
  197. package/dist/panels/PandasPanel.js +56 -90
  198. package/dist/panels/PandasPanel.js.map +1 -1
  199. package/dist/{src/panels → panels}/Panel.d.ts +0 -0
  200. package/dist/panels/Panel.d.ts.map +1 -0
  201. package/dist/panels/Panel.js +282 -313
  202. package/dist/panels/Panel.js.map +1 -1
  203. package/dist/{src/panels → panels}/PanelContextMenu.d.ts +0 -0
  204. package/dist/panels/PanelContextMenu.d.ts.map +1 -0
  205. package/dist/panels/PanelContextMenu.js +107 -158
  206. package/dist/panels/PanelContextMenu.js.map +1 -1
  207. package/dist/{src/panels → panels}/RenameDialog.d.ts +0 -0
  208. package/dist/panels/RenameDialog.d.ts.map +1 -0
  209. package/dist/panels/RenameDialog.js +144 -172
  210. package/dist/panels/RenameDialog.js.map +1 -1
  211. package/dist/{src/panels → panels}/Shortcuts.d.ts +0 -0
  212. package/dist/panels/Shortcuts.d.ts.map +1 -0
  213. package/dist/panels/Shortcuts.js +1 -1
  214. package/dist/panels/Shortcuts.js.map +1 -1
  215. package/dist/{src/panels → panels}/WidgetPanel.d.ts +0 -0
  216. package/dist/panels/WidgetPanel.d.ts.map +1 -0
  217. package/dist/panels/WidgetPanel.js +133 -163
  218. package/dist/panels/WidgetPanel.js.map +1 -1
  219. package/dist/{src/panels → panels}/WidgetPanelTooltip.d.ts +0 -0
  220. package/dist/panels/WidgetPanelTooltip.d.ts.map +1 -0
  221. package/dist/panels/WidgetPanelTooltip.js +7 -5
  222. package/dist/panels/WidgetPanelTooltip.js.map +1 -1
  223. package/dist/{src/panels → panels}/index.d.ts +1 -1
  224. package/dist/{src/events → panels}/index.d.ts.map +1 -1
  225. package/dist/panels/index.js +16 -16
  226. package/dist/panels/index.js.map +1 -1
  227. package/dist/{src/prop-types → prop-types}/CommonPropTypes.d.ts +0 -0
  228. package/dist/prop-types/CommonPropTypes.d.ts.map +1 -0
  229. package/dist/prop-types/CommonPropTypes.js +4 -8
  230. package/dist/prop-types/CommonPropTypes.js.map +1 -1
  231. package/dist/{src/prop-types → prop-types}/UIPropTypes.d.ts +0 -0
  232. package/dist/prop-types/UIPropTypes.d.ts.map +1 -0
  233. package/dist/prop-types/UIPropTypes.js +6 -6
  234. package/dist/prop-types/UIPropTypes.js.map +1 -1
  235. package/dist/{src/prop-types → prop-types}/index.d.ts +0 -0
  236. package/dist/{src/panels → prop-types}/index.d.ts.map +1 -1
  237. package/dist/prop-types/index.js +2 -2
  238. package/dist/prop-types/index.js.map +1 -1
  239. package/dist/{src/redux → redux}/actionTypes.d.ts +0 -0
  240. package/dist/redux/actionTypes.d.ts.map +1 -0
  241. package/dist/{src/redux → redux}/actions.d.ts +1 -0
  242. package/dist/redux/actions.d.ts.map +1 -0
  243. package/dist/redux/actions.js +33 -54
  244. package/dist/redux/actions.js.map +1 -1
  245. package/dist/{src/redux → redux}/index.d.ts +0 -0
  246. package/dist/redux/index.d.ts.map +1 -0
  247. package/dist/redux/index.js +6 -21
  248. package/dist/redux/index.js.map +1 -1
  249. package/dist/{src/redux → redux}/reducers/index.d.ts +0 -0
  250. package/dist/{src/prop-types → redux/reducers}/index.d.ts.map +1 -1
  251. package/dist/redux/reducers/index.js +2 -2
  252. package/dist/redux/reducers/index.js.map +1 -1
  253. package/dist/{src/redux → redux}/reducers/sessionWrapper.d.ts +0 -0
  254. package/dist/redux/reducers/sessionWrapper.d.ts.map +1 -0
  255. package/dist/redux/reducers/sessionWrapper.js +1 -1
  256. package/dist/redux/reducers/sessionWrapper.js.map +1 -1
  257. package/dist/{src/redux → redux}/selectors.d.ts +1 -0
  258. package/dist/redux/selectors.d.ts.map +1 -0
  259. package/dist/redux/selectors.js +22 -18
  260. package/dist/redux/selectors.js.map +1 -1
  261. package/dist/tsconfig.tsbuildinfo +1 -1
  262. package/package.json +27 -54
  263. package/dist/MatPlotLibPlugin.js +0 -45
  264. package/dist/MatPlotLibPlugin.js.map +0 -1
  265. package/dist/dist/events/ChartEvent.d.ts +0 -3
  266. package/dist/dist/events/ChartEvent.d.ts.map +0 -1
  267. package/dist/dist/events/ConsoleEvent.d.ts +0 -3
  268. package/dist/dist/events/ConsoleEvent.d.ts.map +0 -1
  269. package/dist/dist/events/ControlEvent.d.ts +0 -3
  270. package/dist/dist/events/ControlEvent.d.ts.map +0 -1
  271. package/dist/dist/events/InputFilterEvent.d.ts +0 -3
  272. package/dist/dist/events/InputFilterEvent.d.ts.map +0 -1
  273. package/dist/dist/events/IrisGridEvent.d.ts +0 -3
  274. package/dist/dist/events/IrisGridEvent.d.ts.map +0 -1
  275. package/dist/dist/events/MarkdownEvent.d.ts +0 -5
  276. package/dist/dist/events/MarkdownEvent.d.ts.map +0 -1
  277. package/dist/dist/events/MatPlotLibEvent.d.ts +0 -3
  278. package/dist/dist/events/MatPlotLibEvent.d.ts.map +0 -1
  279. package/dist/dist/events/NotebookEvent.d.ts +0 -3
  280. package/dist/dist/events/NotebookEvent.d.ts.map +0 -1
  281. package/dist/dist/events/PandasEvent.d.ts +0 -3
  282. package/dist/dist/events/PandasEvent.d.ts.map +0 -1
  283. package/dist/dist/events/TabEvent.d.ts +0 -3
  284. package/dist/dist/events/TabEvent.d.ts.map +0 -1
  285. package/dist/events/MatPlotLibEvent.js +0 -12
  286. package/dist/events/MatPlotLibEvent.js.map +0 -1
  287. package/dist/panels/MatPlotLibPanel.css +0 -11
  288. package/dist/panels/MatPlotLibPanel.css.map +0 -1
  289. package/dist/panels/MatPlotLibPanel.js +0 -124
  290. package/dist/panels/MatPlotLibPanel.js.map +0 -1
  291. package/dist/src/ChartPlugin.d.ts.map +0 -1
  292. package/dist/src/ConsolePlugin.d.ts.map +0 -1
  293. package/dist/src/FilterPlugin.d.ts.map +0 -1
  294. package/dist/src/GridPlugin.d.ts.map +0 -1
  295. package/dist/src/LinkerPlugin.d.ts.map +0 -1
  296. package/dist/src/MarkdownPlugin.d.ts.map +0 -1
  297. package/dist/src/MatPlotLibPlugin.d.ts +0 -5
  298. package/dist/src/MatPlotLibPlugin.d.ts.map +0 -1
  299. package/dist/src/PandasPlugin.d.ts +0 -5
  300. package/dist/src/PandasPlugin.d.ts.map +0 -1
  301. package/dist/src/controls/ControlType.d.ts.map +0 -1
  302. package/dist/src/controls/dropdown-filter/DropdownFilter.d.ts.map +0 -1
  303. package/dist/src/controls/input-filter/InputFilter.d.ts.map +0 -1
  304. package/dist/src/controls/markdown/MarkdownContainer.d.ts.map +0 -1
  305. package/dist/src/controls/markdown/MarkdownEditor.d.ts.map +0 -1
  306. package/dist/src/controls/markdown/MarkdownStartPage.d.ts.map +0 -1
  307. package/dist/src/controls/markdown/MarkdownUtils.d.ts.map +0 -1
  308. package/dist/src/events/ChartEvent.d.ts.map +0 -1
  309. package/dist/src/events/ConsoleEvent.d.ts.map +0 -1
  310. package/dist/src/events/ControlEvent.d.ts.map +0 -1
  311. package/dist/src/events/InputFilterEvent.d.ts.map +0 -1
  312. package/dist/src/events/IrisGridEvent.d.ts.map +0 -1
  313. package/dist/src/events/MarkdownEvent.d.ts.map +0 -1
  314. package/dist/src/events/MatPlotLibEvent.d.ts +0 -5
  315. package/dist/src/events/MatPlotLibEvent.d.ts.map +0 -1
  316. package/dist/src/events/NotebookEvent.d.ts.map +0 -1
  317. package/dist/src/events/PQEvent.d.ts.map +0 -1
  318. package/dist/src/events/PandasEvent.d.ts.map +0 -1
  319. package/dist/src/events/TabEvent.d.ts.map +0 -1
  320. package/dist/src/events/index.d.ts +0 -11
  321. package/dist/src/index.d.ts.map +0 -1
  322. package/dist/src/linker/Linker.d.ts.map +0 -1
  323. package/dist/src/linker/LinkerLink.d.ts.map +0 -1
  324. package/dist/src/linker/LinkerOverlayContent.d.ts.map +0 -1
  325. package/dist/src/linker/LinkerUtils.d.ts.map +0 -1
  326. package/dist/src/panels/ChartColumnSelectorOverlay.d.ts.map +0 -1
  327. package/dist/src/panels/ChartFilterOverlay.d.ts.map +0 -1
  328. package/dist/src/panels/ChartPanel.d.ts.map +0 -1
  329. package/dist/src/panels/CommandHistoryPanel.d.ts.map +0 -1
  330. package/dist/src/panels/ConsolePanel.d.ts.map +0 -1
  331. package/dist/src/panels/DropdownFilterPanel.d.ts.map +0 -1
  332. package/dist/src/panels/FileExplorerPanel.d.ts.map +0 -1
  333. package/dist/src/panels/InputFilterPanel.d.ts.map +0 -1
  334. package/dist/src/panels/IrisGridPanel.d.ts.map +0 -1
  335. package/dist/src/panels/LogPanel.d.ts.map +0 -1
  336. package/dist/src/panels/MarkdownPanel.d.ts.map +0 -1
  337. package/dist/src/panels/MatPlotLibPanel.d.ts +0 -22
  338. package/dist/src/panels/MatPlotLibPanel.d.ts.map +0 -1
  339. package/dist/src/panels/NotebookPanel.d.ts.map +0 -1
  340. package/dist/src/panels/PandasPanel.d.ts.map +0 -1
  341. package/dist/src/panels/Panel.d.ts.map +0 -1
  342. package/dist/src/panels/PanelContextMenu.d.ts.map +0 -1
  343. package/dist/src/panels/RenameDialog.d.ts.map +0 -1
  344. package/dist/src/panels/Shortcuts.d.ts.map +0 -1
  345. package/dist/src/panels/WidgetPanel.d.ts.map +0 -1
  346. package/dist/src/panels/WidgetPanelTooltip.d.ts.map +0 -1
  347. package/dist/src/prop-types/CommonPropTypes.d.ts.map +0 -1
  348. package/dist/src/prop-types/UIPropTypes.d.ts.map +0 -1
  349. package/dist/src/redux/actionTypes.d.ts.map +0 -1
  350. package/dist/src/redux/actions.d.ts.map +0 -1
  351. package/dist/src/redux/index.d.ts.map +0 -1
  352. package/dist/src/redux/reducers/index.d.ts.map +0 -1
  353. package/dist/src/redux/reducers/sessionWrapper.d.ts.map +0 -1
  354. package/dist/src/redux/selectors.d.ts.map +0 -1
@@ -1,45 +1,3 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
2
-
3
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4
-
5
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
-
7
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
8
-
9
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
10
-
11
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12
-
13
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14
-
15
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
16
-
17
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
18
-
19
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
20
-
21
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
-
23
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
24
-
25
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
26
-
27
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
28
-
29
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
-
31
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
32
-
33
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
34
-
35
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
36
-
37
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
38
-
39
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
40
-
41
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
42
-
43
1
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
44
2
 
45
3
  import React, { Component } from 'react';
@@ -55,64 +13,51 @@ import dh from '@deephaven/jsapi-shim';
55
13
  import Log from '@deephaven/log';
56
14
  import { getActiveTool, getSettings } from '@deephaven/redux';
57
15
  import { Pending, PromiseUtils } from '@deephaven/utils';
58
- import DropdownFilter from '../controls/dropdown-filter/DropdownFilter';
59
- import { InputFilterEvent } from '../events';
60
- import { getColumnsForDashboard, getColumnSelectionValidatorForDashboard, getIsolatedLinkerPanelIdForDashboard, getLinksForDashboard, getTableMapForDashboard } from '../redux';
16
+ import DropdownFilter from "../controls/dropdown-filter/DropdownFilter.js";
17
+ import { InputFilterEvent } from "../events/index.js";
18
+ import { getColumnsForDashboard, getColumnSelectionValidatorForDashboard, getIsolatedLinkerPanelIdForDashboard, getLinksForDashboard, getTableMapForDashboard } from "../redux/index.js";
61
19
  import "./DropdownFilterPanel.css";
62
- import { UIPropTypes } from '../prop-types';
63
- import ToolType from '../linker/ToolType';
64
- import WidgetPanel from './WidgetPanel';
20
+ import { UIPropTypes } from "../prop-types/index.js";
21
+ import ToolType from "../linker/ToolType.js";
22
+ import WidgetPanel from "./WidgetPanel.js";
65
23
  var log = Log.module('DropdownFilterPanel');
66
24
  var DROPDOWN_FILTER_DEBOUNCE = 250;
67
25
 
68
- var DropdownFilterPanel = /*#__PURE__*/function (_Component) {
69
- _inherits(DropdownFilterPanel, _Component);
70
-
71
- var _super = _createSuper(DropdownFilterPanel);
72
-
26
+ class DropdownFilterPanel extends Component {
73
27
  // Filter dropdown needs to show and send full timestamp format with nanoseconds
74
- function DropdownFilterPanel(props) {
75
- var _this;
76
-
77
- _classCallCheck(this, DropdownFilterPanel);
78
-
79
- _this = _super.call(this, props);
28
+ constructor(props) {
29
+ super(props);
80
30
 
81
- _defineProperty(_assertThisInitialized(_this), "getCachedValues", memoize(function (rawValues, _ref, formatter) {
82
- var type = _ref.type,
83
- name = _ref.name;
31
+ _defineProperty(this, "getCachedValues", memoize((rawValues, _ref, formatter) => {
32
+ var {
33
+ type,
34
+ name
35
+ } = _ref;
84
36
 
85
37
  if (TableUtils.isDateType(type)) {
86
- return rawValues.map(function (value) {
87
- return DropdownFilterPanel.DATETIME_FORMATTER.format(value);
88
- });
38
+ return rawValues.map(value => DropdownFilterPanel.DATETIME_FORMATTER.format(value));
89
39
  }
90
40
 
91
- return rawValues.map(function (value) {
92
- return (// Skip formatting for nulls so they don't get converted to ''
93
- value != null ? formatter.getFormattedString(value, type, name) : null
94
- );
95
- });
41
+ return rawValues.map(value => // Skip formatting for nulls so they don't get converted to ''
42
+ value != null ? formatter.getFormattedString(value, type, name) : null);
96
43
  }));
97
44
 
98
- _defineProperty(_assertThisInitialized(_this), "getCachedPanelLinks", memoize(function (dashboardLinks, panel) {
45
+ _defineProperty(this, "getCachedPanelLinks", memoize((dashboardLinks, panel) => {
99
46
  var panelId = LayoutUtils.getIdFromPanel(panel);
100
47
  log.debug('getCachedPanelLinks', dashboardLinks, panelId);
101
- return dashboardLinks.filter(function (link) {
48
+ return dashboardLinks.filter(link => {
102
49
  var _link$end;
103
50
 
104
51
  return ((_link$end = link.end) === null || _link$end === void 0 ? void 0 : _link$end.panelId) === panelId;
105
52
  });
106
53
  }));
107
54
 
108
- _defineProperty(_assertThisInitialized(_this), "getCachedSource", memoize(function (links) {
55
+ _defineProperty(this, "getCachedSource", memoize(links => {
109
56
  log.debug('getCachedSource', links);
110
57
  var source = null;
111
58
 
112
59
  if (links.length > 0) {
113
- var _links = _slicedToArray(links, 1),
114
- link = _links[0];
115
-
60
+ var [link] = links;
116
61
  source = link.start;
117
62
 
118
63
  if (links.length > 1) {
@@ -123,7 +68,7 @@ var DropdownFilterPanel = /*#__PURE__*/function (_Component) {
123
68
  return source;
124
69
  }));
125
70
 
126
- _defineProperty(_assertThisInitialized(_this), "getCachedSourceTable", memoize(function (panelTableMap, source) {
71
+ _defineProperty(this, "getCachedSourceTable", memoize((panelTableMap, source) => {
127
72
  var _panelTableMap$get;
128
73
 
129
74
  log.debug('getCachedSourceTable', panelTableMap, source);
@@ -132,11 +77,13 @@ var DropdownFilterPanel = /*#__PURE__*/function (_Component) {
132
77
  return null;
133
78
  }
134
79
 
135
- var panelId = source.panelId;
80
+ var {
81
+ panelId
82
+ } = source;
136
83
  return (_panelTableMap$get = panelTableMap.get(panelId)) !== null && _panelTableMap$get !== void 0 ? _panelTableMap$get : null;
137
84
  }));
138
85
 
139
- _defineProperty(_assertThisInitialized(_this), "getCachedSourceColumn", memoize(function (table, source) {
86
+ _defineProperty(this, "getCachedSourceColumn", memoize((table, source) => {
140
87
  var _table$columns$find;
141
88
 
142
89
  log.debug('getCachedSourceColumn', table, source);
@@ -145,570 +92,592 @@ var DropdownFilterPanel = /*#__PURE__*/function (_Component) {
145
92
  return null;
146
93
  }
147
94
 
148
- return (_table$columns$find = table.columns.find(function (_ref2) {
149
- var name = _ref2.name,
150
- type = _ref2.type;
95
+ return (_table$columns$find = table.columns.find((_ref2) => {
96
+ var {
97
+ name,
98
+ type
99
+ } = _ref2;
151
100
  return name === source.columnName && type === source.columnType;
152
101
  })) !== null && _table$columns$find !== void 0 ? _table$columns$find : null;
153
102
  }));
154
103
 
155
- _this.handleChange = debounce(_this.handleChange.bind(_assertThisInitialized(_this)), DROPDOWN_FILTER_DEBOUNCE);
156
- _this.handleClearAllFilters = _this.handleClearAllFilters.bind(_assertThisInitialized(_this));
157
- _this.handleDisconnect = _this.handleDisconnect.bind(_assertThisInitialized(_this));
158
- _this.handleReconnect = _this.handleReconnect.bind(_assertThisInitialized(_this));
159
- _this.handleColumnSelected = _this.handleColumnSelected.bind(_assertThisInitialized(_this));
160
- _this.handleSourceFilterChange = _this.handleSourceFilterChange.bind(_assertThisInitialized(_this));
161
- _this.handleSourceSortChange = _this.handleSourceSortChange.bind(_assertThisInitialized(_this));
162
- _this.handleSourceSizeChange = _this.handleSourceSizeChange.bind(_assertThisInitialized(_this));
163
- _this.handleSourceMouseEnter = _this.handleSourceMouseEnter.bind(_assertThisInitialized(_this));
164
- _this.handleSourceMouseLeave = _this.handleSourceMouseLeave.bind(_assertThisInitialized(_this));
165
- _this.handleValuesTableUpdate = _this.handleValuesTableUpdate.bind(_assertThisInitialized(_this));
166
- _this.dropdownFilterRef = /*#__PURE__*/React.createRef();
167
- _this.panelContainer = /*#__PURE__*/React.createRef();
168
- _this.pending = new Pending();
169
- _this.cleanup = null;
170
- var panelState = props.panelState,
171
- settings = props.settings;
172
- _this.columnFormats = settings.columnFormats;
173
-
174
- var _ref3 = panelState !== null && panelState !== void 0 ? panelState : {},
175
- _ref3$value = _ref3.value,
176
- _value = _ref3$value === void 0 ? '' : _ref3$value,
177
- _ref3$isValueShown = _ref3.isValueShown,
178
- isValueShown = _ref3$isValueShown === void 0 ? false : _ref3$isValueShown,
179
- _name = _ref3.name,
180
- _type = _ref3.type,
181
- _ref3$timestamp = _ref3.timestamp,
182
- timestamp = _ref3$timestamp === void 0 ? null : _ref3$timestamp;
183
-
104
+ this.handleChange = debounce(this.handleChange.bind(this), DROPDOWN_FILTER_DEBOUNCE);
105
+ this.handleClearAllFilters = this.handleClearAllFilters.bind(this);
106
+ this.handleDisconnect = this.handleDisconnect.bind(this);
107
+ this.handleReconnect = this.handleReconnect.bind(this);
108
+ this.handleColumnSelected = this.handleColumnSelected.bind(this);
109
+ this.handleSourceFilterChange = this.handleSourceFilterChange.bind(this);
110
+ this.handleSourceSortChange = this.handleSourceSortChange.bind(this);
111
+ this.handleSourceSizeChange = this.handleSourceSizeChange.bind(this);
112
+ this.handleSourceMouseEnter = this.handleSourceMouseEnter.bind(this);
113
+ this.handleSourceMouseLeave = this.handleSourceMouseLeave.bind(this);
114
+ this.handleValuesTableUpdate = this.handleValuesTableUpdate.bind(this);
115
+ this.dropdownFilterRef = /*#__PURE__*/React.createRef();
116
+ this.panelContainer = /*#__PURE__*/React.createRef();
117
+ this.pending = new Pending();
118
+ this.cleanup = null;
119
+ var {
120
+ panelState,
121
+ settings
122
+ } = props;
123
+ this.columnFormats = settings.columnFormats;
124
+ var {
125
+ value: _value = '',
126
+ isValueShown = false,
127
+ name: _name,
128
+ type: _type,
129
+ timestamp = null
130
+ } = panelState !== null && panelState !== void 0 ? panelState : {};
184
131
  var column = _name != null && _type != null ? {
185
132
  name: _name,
186
133
  type: _type
187
134
  } : null;
188
- _this.state = {
189
- column: column,
190
- formatter: new Formatter(_this.columnFormats),
135
+ this.state = {
136
+ column,
137
+ formatter: new Formatter(this.columnFormats),
191
138
  valuesTable: null,
192
139
  valuesColumn: null,
193
140
  sourceSize: 0,
194
141
  value: _value,
195
- timestamp: timestamp,
142
+ timestamp,
196
143
  values: [],
197
- isValueShown: isValueShown,
144
+ isValueShown,
198
145
  wasFlipped: false,
146
+ skipUpdate: false,
199
147
  // eslint-disable-next-line react/no-unused-state
200
- panelState: panelState,
148
+ panelState,
201
149
  // Dehydrated panel state that can load this panel
202
150
  isDisconnected: false,
203
151
  isLoading: false,
204
152
  isLoaded: false,
205
153
  error: null
206
154
  };
207
- return _this;
208
155
  }
209
156
 
210
- _createClass(DropdownFilterPanel, [{
211
- key: "componentDidMount",
212
- value: function componentDidMount() {
213
- this.updateValuesTable();
214
- var _this$state = this.state,
215
- column = _this$state.column,
216
- value = _this$state.value,
217
- timestamp = _this$state.timestamp;
218
- var sourceTable = this.getSourceTable();
219
-
220
- if (sourceTable !== null) {
221
- this.startListeningToSource(sourceTable);
222
- }
157
+ componentDidMount() {
158
+ this.updateValuesTable();
159
+ var {
160
+ column,
161
+ value,
162
+ timestamp
163
+ } = this.state;
164
+ var sourceTable = this.getSourceTable();
165
+
166
+ if (sourceTable !== null) {
167
+ this.startListeningToSource(sourceTable);
168
+ }
223
169
 
224
- if (column != null) {
225
- var name = column.name,
226
- type = column.type;
227
- this.sendUpdate(name, type, value, timestamp);
228
- }
170
+ if (column != null) {
171
+ var {
172
+ name,
173
+ type
174
+ } = column;
175
+ this.sendUpdate(name, type, value, timestamp);
229
176
  }
230
- }, {
231
- key: "componentDidUpdate",
232
- value: function componentDidUpdate(prevProps, prevState) {
233
- var valuesTable = this.state.valuesTable;
234
- var settings = this.props.settings;
235
- var source = this.getSource();
236
- var sourceTable = this.getSourceTable();
237
- var prevSource = this.getSource(prevProps);
238
- var prevSourceTable = this.getSourceTable(prevProps);
239
-
240
- if (settings !== prevProps.settings) {
241
- this.updateFormatterSettings(settings);
242
- }
177
+ }
243
178
 
244
- if (valuesTable !== prevState.valuesTable && prevState.valuesTable !== null) {
245
- log.debug('Table in state modified, closing the old table.');
246
- prevState.valuesTable.close();
247
- } // Checking source change in addition to table change
248
- // in case a different column is selected in the same table
179
+ componentDidUpdate(prevProps, prevState) {
180
+ var {
181
+ valuesTable
182
+ } = this.state;
183
+ var {
184
+ settings
185
+ } = this.props;
186
+ var source = this.getSource();
187
+ var sourceTable = this.getSourceTable();
188
+ var prevSource = this.getSource(prevProps);
189
+ var prevSourceTable = this.getSourceTable(prevProps);
190
+
191
+ if (settings !== prevProps.settings) {
192
+ this.updateFormatterSettings(settings);
193
+ }
249
194
 
195
+ if (valuesTable !== prevState.valuesTable && prevState.valuesTable !== null) {
196
+ log.debug('Table in state modified, closing the old table.');
197
+ prevState.valuesTable.close();
198
+ } // Checking source change in addition to table change
199
+ // in case a different column is selected in the same table
250
200
 
251
- if (sourceTable !== prevSourceTable || source !== prevSource) {
252
- this.updateValuesTable();
253
- }
254
201
 
255
- if (sourceTable !== prevSourceTable) {
256
- if (prevSourceTable !== null) {
257
- this.stopListeningToSource(prevSourceTable);
258
- }
202
+ if (sourceTable !== prevSourceTable || source !== prevSource) {
203
+ this.updateValuesTable();
204
+ }
259
205
 
260
- if (sourceTable !== null) {
261
- this.startListeningToSource(sourceTable);
262
- }
206
+ if (sourceTable !== prevSourceTable) {
207
+ if (prevSourceTable !== null) {
208
+ this.stopListeningToSource(prevSourceTable);
263
209
  }
264
- }
265
- }, {
266
- key: "componentWillUnmount",
267
- value: function componentWillUnmount() {
268
- var valuesTable = this.state.valuesTable;
269
- var sourceTable = this.getSourceTable();
270
- this.pending.cancel();
271
210
 
272
211
  if (sourceTable !== null) {
273
- this.stopListeningToSource(sourceTable);
212
+ this.startListeningToSource(sourceTable);
274
213
  }
214
+ }
215
+ }
275
216
 
276
- if (this.cleanup) {
277
- this.cleanup();
278
- }
217
+ componentWillUnmount() {
218
+ var {
219
+ valuesTable
220
+ } = this.state;
221
+ var sourceTable = this.getSourceTable();
222
+ this.pending.cancel();
279
223
 
280
- if (valuesTable !== null) {
281
- valuesTable.close();
282
- }
224
+ if (sourceTable !== null) {
225
+ this.stopListeningToSource(sourceTable);
283
226
  }
284
- }, {
285
- key: "getCoordinateForColumn",
286
- value: function getCoordinateForColumn() {
287
- var _element$getBoundingC;
288
227
 
289
- if (!this.panelContainer.current) {
290
- return null;
291
- }
228
+ if (this.cleanup) {
229
+ this.cleanup();
230
+ }
292
231
 
293
- var element = this.panelContainer.current.querySelector(".".concat(DropdownFilter.SOURCE_BUTTON_CLASS_NAME));
294
- var rect = (_element$getBoundingC = element === null || element === void 0 ? void 0 : element.getBoundingClientRect()) !== null && _element$getBoundingC !== void 0 ? _element$getBoundingC : null;
232
+ if (valuesTable !== null) {
233
+ valuesTable.close();
234
+ }
235
+ }
295
236
 
296
- if (rect == null || rect.width <= 0 || rect.height <= 0) {
297
- return null;
298
- }
237
+ getCoordinateForColumn() {
238
+ var _element$getBoundingC;
299
239
 
300
- var x = rect.left + rect.width / 2;
301
- var y = rect.bottom;
302
- return [x, y];
240
+ if (!this.panelContainer.current) {
241
+ return null;
303
242
  }
304
- }, {
305
- key: "getSettingsErrorMessage",
306
- value: function getSettingsErrorMessage() {
307
- var sourceSize = this.state.sourceSize;
308
243
 
309
- if (sourceSize > DropdownFilterPanel.MAX_TABLE_SIZE) {
310
- return "Table too large, must have fewer than ".concat(DropdownFilterPanel.MAX_TABLE_SIZE, " options.");
311
- }
244
+ var element = this.panelContainer.current.querySelector(".".concat(DropdownFilter.SOURCE_BUTTON_CLASS_NAME));
245
+ var rect = (_element$getBoundingC = element === null || element === void 0 ? void 0 : element.getBoundingClientRect()) !== null && _element$getBoundingC !== void 0 ? _element$getBoundingC : null;
312
246
 
247
+ if (rect == null || rect.width <= 0 || rect.height <= 0) {
313
248
  return null;
314
249
  }
315
- }, {
316
- key: "getPanelErrorMessage",
317
- value: function getPanelErrorMessage() {
318
- var error = this.state.error;
319
- return error ? "".concat(error) : null;
320
- }
321
- }, {
322
- key: "getSource",
323
- value: function getSource() {
324
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props;
325
- var dashboardLinks = props.dashboardLinks;
326
- var panelLinks = this.getCachedPanelLinks(dashboardLinks, this);
327
- return this.getCachedSource(panelLinks);
328
- }
329
- }, {
330
- key: "getSourceTable",
331
- value: function getSourceTable() {
332
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props;
333
- var panelTableMap = props.panelTableMap;
334
- var source = this.getSource(props);
335
- return this.getCachedSourceTable(panelTableMap, source);
336
- }
337
- }, {
338
- key: "getValuesColumn",
339
- value: function getValuesColumn(valuesTable) {
340
- var source = this.getSource();
341
- return this.getCachedSourceColumn(valuesTable, source);
342
- }
343
- }, {
344
- key: "startListeningToSource",
345
- value: function startListeningToSource(sourceTable) {
346
- log.debug('startListeningToSource');
347
- sourceTable.addEventListener(dh.Table.EVENT_FILTERCHANGED, this.handleSourceFilterChange);
348
- sourceTable.addEventListener(dh.Table.EVENT_SORTCHANGED, this.handleSourceSortChange);
349
- sourceTable.addEventListener(dh.Table.EVENT_SIZECHANGED, this.handleSourceSizeChange);
350
- sourceTable.addEventListener(dh.Table.EVENT_DISCONNECT, this.handleDisconnect);
351
- sourceTable.addEventListener(dh.Table.EVENT_RECONNECT, this.handleReconnect);
352
- }
353
- }, {
354
- key: "stopListeningToSource",
355
- value: function stopListeningToSource(sourceTable) {
356
- log.debug('stopListeningToSource');
357
- sourceTable.removeEventListener(dh.Table.EVENT_FILTERCHANGED, this.handleSourceFilterChange);
358
- sourceTable.removeEventListener(dh.Table.EVENT_SORTCHANGED, this.handleSourceSortChange);
359
- sourceTable.removeEventListener(dh.Table.EVENT_SIZECHANGED, this.handleSourceSizeChange);
360
- sourceTable.removeEventListener(dh.Table.EVENT_DISCONNECT, this.handleDisconnect);
361
- sourceTable.removeEventListener(dh.Table.EVENT_RECONNECT, this.handleReconnect);
362
- }
363
- }, {
364
- key: "handleChange",
365
- value: function handleChange(_ref4) {
366
- var _this2 = this;
367
-
368
- var column = _ref4.column,
369
- isValueShown = _ref4.isValueShown,
370
- value = _ref4.value;
371
-
372
- var _ref5 = column !== null && column !== void 0 ? column : {},
373
- _ref5$name = _ref5.name,
374
- name = _ref5$name === void 0 ? null : _ref5$name,
375
- _ref5$type = _ref5.type,
376
- type = _ref5$type === void 0 ? null : _ref5$type;
377
-
378
- var sendUpdate = true;
379
- var timestamp = Date.now();
380
- this.setState(function (_ref6) {
381
- var panelState = _ref6.panelState,
382
- prevTimestamp = _ref6.timestamp,
383
- wasFlipped = _ref6.wasFlipped;
384
- // If the user had a value set, and they flip the card over and flip it back without changing any settings, ignore it
385
- var isFlip = panelState != null && isValueShown !== panelState.isValueShown && name === panelState.name && type === panelState.type && value === panelState.value;
386
- sendUpdate = isValueShown && (!isFlip || !wasFlipped);
387
-
388
- if (!sendUpdate) {
389
- timestamp = prevTimestamp;
390
- }
391
250
 
392
- return {
393
- panelState: {
394
- isValueShown: isValueShown,
395
- name: name,
396
- type: type,
397
- value: value,
398
- timestamp: timestamp
399
- },
400
- timestamp: timestamp,
401
- wasFlipped: isFlip
402
- };
403
- }, function () {
404
- if (sendUpdate) {
405
- _this2.sendUpdate(name, type, value, timestamp);
406
- }
407
- });
408
- }
409
- }, {
410
- key: "handleDisconnect",
411
- value: function handleDisconnect() {
412
- this.setState({
413
- error: new Error('Table disconnected'),
414
- isDisconnected: true,
415
- isLoading: false
416
- });
417
- }
418
- }, {
419
- key: "handleReconnect",
420
- value: function handleReconnect() {
421
- this.setState({
422
- isDisconnected: false,
423
- error: null
424
- });
425
- }
426
- }, {
427
- key: "handleSourceFilterChange",
428
- value: function handleSourceFilterChange() {
429
- this.applySourceFilters();
430
- }
431
- }, {
432
- key: "handleSourceSortChange",
433
- value: function handleSourceSortChange() {
434
- this.applySourceSorts();
251
+ var x = rect.left + rect.width / 2;
252
+ var y = rect.bottom;
253
+ return [x, y];
254
+ }
255
+
256
+ getSettingsErrorMessage() {
257
+ var {
258
+ sourceSize
259
+ } = this.state;
260
+
261
+ if (sourceSize > DropdownFilterPanel.MAX_TABLE_SIZE) {
262
+ return "Table too large, must have fewer than ".concat(DropdownFilterPanel.MAX_TABLE_SIZE, " options.");
435
263
  }
436
- }, {
437
- key: "handleSourceSizeChange",
438
- value: function handleSourceSizeChange(_ref7) {
439
- var detail = _ref7.detail;
264
+
265
+ return null;
266
+ }
267
+
268
+ getPanelErrorMessage() {
269
+ var {
270
+ error
271
+ } = this.state;
272
+ return error ? "".concat(error) : null;
273
+ }
274
+
275
+ getSource() {
276
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props;
277
+ var {
278
+ dashboardLinks
279
+ } = props;
280
+ var panelLinks = this.getCachedPanelLinks(dashboardLinks, this);
281
+ return this.getCachedSource(panelLinks);
282
+ }
283
+
284
+ getSourceTable() {
285
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props;
286
+ var {
287
+ panelTableMap
288
+ } = props;
289
+ var source = this.getSource(props);
290
+ return this.getCachedSourceTable(panelTableMap, source);
291
+ }
292
+
293
+ getValuesColumn(valuesTable) {
294
+ var source = this.getSource();
295
+ return this.getCachedSourceColumn(valuesTable, source);
296
+ }
297
+
298
+ startListeningToSource(sourceTable) {
299
+ log.debug('startListeningToSource');
300
+ sourceTable.addEventListener(dh.Table.EVENT_FILTERCHANGED, this.handleSourceFilterChange);
301
+ sourceTable.addEventListener(dh.Table.EVENT_SORTCHANGED, this.handleSourceSortChange);
302
+ sourceTable.addEventListener(dh.Table.EVENT_SIZECHANGED, this.handleSourceSizeChange);
303
+ sourceTable.addEventListener(dh.Table.EVENT_DISCONNECT, this.handleDisconnect);
304
+ sourceTable.addEventListener(dh.Table.EVENT_RECONNECT, this.handleReconnect);
305
+ }
306
+
307
+ stopListeningToSource(sourceTable) {
308
+ log.debug('stopListeningToSource');
309
+ sourceTable.removeEventListener(dh.Table.EVENT_FILTERCHANGED, this.handleSourceFilterChange);
310
+ sourceTable.removeEventListener(dh.Table.EVENT_SORTCHANGED, this.handleSourceSortChange);
311
+ sourceTable.removeEventListener(dh.Table.EVENT_SIZECHANGED, this.handleSourceSizeChange);
312
+ sourceTable.removeEventListener(dh.Table.EVENT_DISCONNECT, this.handleDisconnect);
313
+ sourceTable.removeEventListener(dh.Table.EVENT_RECONNECT, this.handleReconnect);
314
+ }
315
+
316
+ handleChange(_ref3) {
317
+ var {
318
+ column,
319
+ isValueShown,
320
+ value
321
+ } = _ref3;
322
+ var {
323
+ name = null,
324
+ type = null
325
+ } = column !== null && column !== void 0 ? column : {};
326
+ var sendUpdate = true;
327
+ var timestamp = Date.now();
328
+ this.setState((_ref4) => {
329
+ var {
330
+ panelState,
331
+ timestamp: prevTimestamp,
332
+ wasFlipped,
333
+ skipUpdate
334
+ } = _ref4;
335
+ // If the user had a value set, and they flip the card over and flip it back without changing any settings, ignore it
336
+ var isFlip = panelState != null && isValueShown !== panelState.isValueShown && name === panelState.name && type === panelState.type && value === panelState.value;
337
+ sendUpdate = !skipUpdate && isValueShown && (!isFlip || !wasFlipped);
338
+
339
+ if (!sendUpdate) {
340
+ timestamp = prevTimestamp;
341
+ }
342
+
343
+ return {
344
+ panelState: {
345
+ isValueShown,
346
+ name,
347
+ type,
348
+ value,
349
+ timestamp
350
+ },
351
+ timestamp,
352
+ wasFlipped: isFlip,
353
+ skipUpdate: false
354
+ };
355
+ }, () => {
356
+ if (sendUpdate) {
357
+ this.sendUpdate(name, type, value, timestamp);
358
+ }
359
+ });
360
+ }
361
+
362
+ handleDisconnect() {
363
+ this.setState({
364
+ error: new Error('Table disconnected'),
365
+ isDisconnected: true,
366
+ isLoading: false
367
+ });
368
+ }
369
+
370
+ handleReconnect() {
371
+ this.setState({
372
+ isDisconnected: false,
373
+ error: null
374
+ });
375
+ }
376
+
377
+ handleSourceFilterChange() {
378
+ this.applySourceFilters();
379
+ }
380
+
381
+ handleSourceSortChange() {
382
+ this.applySourceSorts();
383
+ }
384
+
385
+ handleSourceSizeChange(_ref5) {
386
+ var {
387
+ detail
388
+ } = _ref5;
389
+ this.setState({
390
+ sourceSize: detail
391
+ });
392
+ }
393
+
394
+ handleColumnSelected() {
395
+ log.debug('handleColumnSelected');
396
+ var {
397
+ glEventHub
398
+ } = this.props;
399
+ glEventHub.emit(InputFilterEvent.COLUMN_SELECTED, this, DropdownFilterPanel.SOURCE_COLUMN);
400
+ }
401
+
402
+ handleClearAllFilters() {
403
+ this.dropdownFilterRef.current.clearFilter();
404
+ }
405
+ /**
406
+ * Set the filter value, card side, selected column
407
+ * @param {Object} state Filter state to set
408
+ * @param {boolean} sendUpdate Emit filters changed event if true
409
+ */
410
+
411
+
412
+ setPanelState(state) {
413
+ var _this$dropdownFilterR;
414
+
415
+ var sendUpdate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
416
+
417
+ if (this.getSource() == null) {
418
+ log.debug('Ignore state update for unlinked filter', state);
419
+ return;
420
+ } // Set the skipUpdate flag so the next onChange handler call doesn't emit the FILTERS_CHANGED event
421
+
422
+
423
+ this.setState({
424
+ skipUpdate: !sendUpdate
425
+ }); // Changing the inputFilter state via props doesn't quite work because of the delays on manual input changes
426
+ // Setting the ref state directly triggers the onChange handler and updates the panelState
427
+
428
+ (_this$dropdownFilterR = this.dropdownFilterRef.current) === null || _this$dropdownFilterR === void 0 ? void 0 : _this$dropdownFilterR.setFilterState(state);
429
+ }
430
+
431
+ sendUpdate(name, type, value, timestamp) {
432
+ var _this$getSource;
433
+
434
+ var {
435
+ glEventHub
436
+ } = this.props;
437
+ var sourcePanelId = (_this$getSource = this.getSource()) === null || _this$getSource === void 0 ? void 0 : _this$getSource.panelId;
438
+ var excludePanelIds = sourcePanelId === null ? [] : [sourcePanelId];
439
+ log.debug('sendUpdate', {
440
+ name,
441
+ type,
442
+ value,
443
+ timestamp,
444
+ excludePanelIds
445
+ });
446
+ glEventHub.emit(InputFilterEvent.FILTERS_CHANGED, this, {
447
+ name,
448
+ type,
449
+ value: value != null ? value : '=null',
450
+ timestamp,
451
+ excludePanelIds
452
+ });
453
+ }
454
+
455
+ updateValuesTable() {
456
+ var source = this.getSource();
457
+ var sourceTable = this.getSourceTable();
458
+ log.debug('updateValuesTable', source, sourceTable);
459
+ this.setState({
460
+ values: [],
461
+ valuesTable: null,
462
+ error: null
463
+ });
464
+
465
+ if (source == null) {
466
+ log.debug('Filter unlinked.');
440
467
  this.setState({
441
- sourceSize: detail
442
- });
443
- }
444
- }, {
445
- key: "handleColumnSelected",
446
- value: function handleColumnSelected() {
447
- log.debug('handleColumnSelected');
448
- var glEventHub = this.props.glEventHub;
449
- glEventHub.emit(InputFilterEvent.COLUMN_SELECTED, this, DropdownFilterPanel.SOURCE_COLUMN);
450
- }
451
- }, {
452
- key: "handleClearAllFilters",
453
- value: function handleClearAllFilters() {
454
- this.dropdownFilterRef.current.clearFilter();
455
- }
456
- }, {
457
- key: "sendUpdate",
458
- value: function sendUpdate(name, type, value, timestamp) {
459
- var _this$getSource;
460
-
461
- var glEventHub = this.props.glEventHub;
462
- var sourcePanelId = (_this$getSource = this.getSource()) === null || _this$getSource === void 0 ? void 0 : _this$getSource.panelId;
463
- var excludePanelIds = sourcePanelId === null ? [] : [sourcePanelId];
464
- log.debug('sendUpdate', {
465
- name: name,
466
- type: type,
467
- value: value,
468
- timestamp: timestamp,
469
- excludePanelIds: excludePanelIds
470
- });
471
- glEventHub.emit(InputFilterEvent.FILTERS_CHANGED, this, {
472
- name: name,
473
- type: type,
474
- value: value != null ? value : '=null',
475
- timestamp: timestamp,
476
- excludePanelIds: excludePanelIds
468
+ isLoading: false,
469
+ isLoaded: true,
470
+ isValueShown: false,
471
+ sourceSize: 0
477
472
  });
473
+ return;
478
474
  }
479
- }, {
480
- key: "updateValuesTable",
481
- value: function updateValuesTable() {
482
- var _this3 = this;
483
-
484
- var source = this.getSource();
485
- var sourceTable = this.getSourceTable();
486
- log.debug('updateValuesTable', source, sourceTable);
487
- this.setState({
488
- values: [],
489
- valuesTable: null,
490
- error: null
491
- });
492
475
 
493
- if (source == null) {
494
- log.debug('Filter unlinked.');
495
- this.setState({
496
- isLoading: false,
497
- isLoaded: true,
498
- isValueShown: false,
499
- sourceSize: 0
500
- });
501
- return;
502
- }
476
+ this.setState({
477
+ isLoading: true
478
+ });
479
+
480
+ if (sourceTable == null) {
481
+ return;
482
+ }
503
483
 
484
+ this.setState({
485
+ isLoaded: false,
486
+ sourceSize: sourceTable.size
487
+ });
488
+ this.pending.add(sourceTable.copy(), resolved => resolved.close()).then(valuesTable => {
489
+ // Loading/loaded will be set when values array is actually populated
490
+ this.updateViewportListener(valuesTable);
504
491
  this.setState({
505
- isLoading: true
492
+ valuesTable
506
493
  });
507
-
508
- if (sourceTable == null) {
494
+ }).catch(error => {
495
+ if (PromiseUtils.isCancelled(error)) {
509
496
  return;
510
497
  }
511
498
 
499
+ log.error(error);
512
500
  this.setState({
513
- isLoaded: false,
514
- sourceSize: sourceTable.size
501
+ isLoading: false,
502
+ error
515
503
  });
516
- this.pending.add(sourceTable.copy(), function (resolved) {
517
- return resolved.close();
518
- }).then(function (valuesTable) {
519
- // Loading/loaded will be set when values array is actually populated
520
- _this3.updateViewportListener(valuesTable);
521
-
522
- _this3.setState({
523
- valuesTable: valuesTable
524
- });
525
- })["catch"](function (error) {
526
- if (PromiseUtils.isCancelled(error)) {
527
- return;
528
- }
504
+ });
505
+ }
529
506
 
530
- log.error(error);
507
+ applySourceSorts() {
508
+ var {
509
+ valuesTable
510
+ } = this.state;
511
+ var sourceTable = this.getSourceTable();
512
+ log.debug('applySourceSorts', sourceTable.sort);
531
513
 
532
- _this3.setState({
533
- isLoading: false,
534
- error: error
535
- });
536
- });
514
+ if (valuesTable == null) {
515
+ log.debug('Table not initialized');
516
+ return;
537
517
  }
538
- }, {
539
- key: "applySourceSorts",
540
- value: function applySourceSorts() {
541
- var valuesTable = this.state.valuesTable;
542
- var sourceTable = this.getSourceTable();
543
- log.debug('applySourceSorts', sourceTable.sort);
544
-
545
- if (valuesTable == null) {
546
- log.debug('Table not initialized');
547
- return;
548
- }
549
-
550
- var sorts = _toConsumableArray(sourceTable.sort);
551
518
 
552
- valuesTable.applySort(sorts);
553
- this.setViewport(valuesTable);
554
- }
555
- }, {
556
- key: "applySourceFilters",
557
- value: function applySourceFilters() {
558
- var valuesTable = this.state.valuesTable;
559
- var sourceTable = this.getSourceTable();
560
- log.debug('applySourceFilters', sourceTable.filter);
561
-
562
- if (valuesTable == null) {
563
- log.debug('Table not initialized');
564
- return;
565
- }
519
+ var sorts = [...sourceTable.sort];
520
+ valuesTable.applySort(sorts);
521
+ this.setViewport(valuesTable);
522
+ }
566
523
 
567
- var filters = _toConsumableArray(sourceTable.filter);
524
+ applySourceFilters() {
525
+ var {
526
+ valuesTable
527
+ } = this.state;
528
+ var sourceTable = this.getSourceTable();
529
+ log.debug('applySourceFilters', sourceTable.filter);
568
530
 
569
- valuesTable.applyFilter(filters);
570
- this.setViewport(valuesTable);
531
+ if (valuesTable == null) {
532
+ log.debug('Table not initialized');
533
+ return;
571
534
  }
572
- }, {
573
- key: "updateViewportListener",
574
- value: function updateViewportListener(valuesTable) {
575
- log.debug('updateViewportListener', valuesTable === null || valuesTable === void 0 ? void 0 : valuesTable.size);
576
535
 
577
- if (this.cleanup) {
578
- this.cleanup();
579
- }
536
+ var filters = [...sourceTable.filter];
537
+ valuesTable.applyFilter(filters);
538
+ this.setViewport(valuesTable);
539
+ }
580
540
 
581
- if (valuesTable == null) {
582
- this.cleanup = null;
583
- return;
584
- }
541
+ updateViewportListener(valuesTable) {
542
+ log.debug('updateViewportListener', valuesTable === null || valuesTable === void 0 ? void 0 : valuesTable.size);
585
543
 
586
- this.cleanup = valuesTable.addEventListener(dh.Table.EVENT_UPDATED, this.handleValuesTableUpdate);
587
- this.setViewport(valuesTable);
588
- }
589
- }, {
590
- key: "setViewport",
591
- value: function setViewport(valuesTable) {
592
- var valuesColumn = this.getValuesColumn(valuesTable);
593
- valuesTable.setViewport(0, DropdownFilterPanel.MAX_TABLE_SIZE - 1, [valuesColumn]);
544
+ if (this.cleanup) {
545
+ this.cleanup();
594
546
  }
595
- }, {
596
- key: "updateFormatterSettings",
597
- value: function updateFormatterSettings(settings) {
598
- var columnFormats = FormatterUtils.getColumnFormats(settings);
599
-
600
- if (!deepEqual(this.columnFormats, columnFormats)) {
601
- this.columnFormats = columnFormats;
602
- this.setState({
603
- formatter: new Formatter(columnFormats)
604
- });
605
- }
547
+
548
+ if (valuesTable == null) {
549
+ this.cleanup = null;
550
+ return;
606
551
  }
607
- }, {
608
- key: "handleValuesTableUpdate",
609
- value: function handleValuesTableUpdate(_ref8) {
610
- var detail = _ref8.detail;
611
- var rows = detail.rows;
612
- var valuesTable = this.state.valuesTable;
613
- var valuesColumn = this.getValuesColumn(valuesTable);
614
-
615
- if (!valuesColumn) {
616
- log.error('Values column not found');
617
- return;
618
- }
619
552
 
620
- var values = rows.map(function (row) {
621
- return row.get(valuesColumn);
622
- });
553
+ this.cleanup = valuesTable.addEventListener(dh.Table.EVENT_UPDATED, this.handleValuesTableUpdate);
554
+ this.setViewport(valuesTable);
555
+ }
556
+
557
+ setViewport(valuesTable) {
558
+ var valuesColumn = this.getValuesColumn(valuesTable);
559
+ valuesTable.setViewport(0, DropdownFilterPanel.MAX_TABLE_SIZE - 1, [valuesColumn]);
560
+ }
561
+
562
+ updateFormatterSettings(settings) {
563
+ var columnFormats = FormatterUtils.getColumnFormats(settings);
564
+
565
+ if (!deepEqual(this.columnFormats, columnFormats)) {
566
+ this.columnFormats = columnFormats;
623
567
  this.setState({
624
- values: values,
625
- isLoading: false,
626
- isLoaded: true,
627
- valuesColumn: valuesColumn
568
+ formatter: new Formatter(columnFormats)
628
569
  });
629
570
  }
630
- }, {
631
- key: "handleSourceMouseEnter",
632
- value: function handleSourceMouseEnter() {
633
- var columnSelectionValidator = this.props.columnSelectionValidator;
634
-
635
- if (!columnSelectionValidator) {
636
- return;
637
- }
571
+ }
638
572
 
639
- columnSelectionValidator(this, DropdownFilterPanel.SOURCE_COLUMN);
573
+ handleValuesTableUpdate(_ref6) {
574
+ var {
575
+ detail
576
+ } = _ref6;
577
+ var {
578
+ rows
579
+ } = detail;
580
+ var {
581
+ valuesTable
582
+ } = this.state;
583
+ var valuesColumn = this.getValuesColumn(valuesTable);
584
+
585
+ if (!valuesColumn) {
586
+ log.error('Values column not found');
587
+ return;
640
588
  }
641
- }, {
642
- key: "handleSourceMouseLeave",
643
- value: function handleSourceMouseLeave() {
644
- var columnSelectionValidator = this.props.columnSelectionValidator;
645
589
 
646
- if (!columnSelectionValidator) {
647
- return;
648
- }
590
+ var values = rows.map(row => row.get(valuesColumn));
591
+ this.setState({
592
+ values,
593
+ isLoading: false,
594
+ isLoaded: true,
595
+ valuesColumn
596
+ });
597
+ }
598
+
599
+ handleSourceMouseEnter() {
600
+ var {
601
+ columnSelectionValidator
602
+ } = this.props;
649
603
 
650
- columnSelectionValidator(this, null);
604
+ if (!columnSelectionValidator) {
605
+ return;
651
606
  }
652
- }, {
653
- key: "render",
654
- value: function render() {
655
- var _this$props = this.props,
656
- columns = _this$props.columns,
657
- disableLinking = _this$props.disableLinking,
658
- glContainer = _this$props.glContainer,
659
- glEventHub = _this$props.glEventHub,
660
- isLinkerActive = _this$props.isLinkerActive;
661
- var _this$state2 = this.state,
662
- column = _this$state2.column,
663
- formatter = _this$state2.formatter,
664
- isDisconnected = _this$state2.isDisconnected,
665
- isValueShown = _this$state2.isValueShown,
666
- value = _this$state2.value,
667
- values = _this$state2.values,
668
- valuesColumn = _this$state2.valuesColumn,
669
- isLoading = _this$state2.isLoading,
670
- isLoaded = _this$state2.isLoaded;
671
- var source = this.getSource();
672
- var settingsErrorMessage = this.getSettingsErrorMessage();
673
- var panelErrorMessage = this.getPanelErrorMessage();
674
- var formattedValues = isLoaded && valuesColumn != null ? this.getCachedValues(values, valuesColumn, formatter) : [];
675
- return /*#__PURE__*/React.createElement(WidgetPanel, {
676
- errorMessage: panelErrorMessage,
677
- isLoading: isLoading,
678
- isLoaded: isLoaded,
679
- isDisconnected: isDisconnected,
680
- className: "iris-dropdown-filter-panel",
681
- componentPanel: this,
682
- glContainer: glContainer,
683
- glEventHub: glEventHub,
684
- onClearAllFilters: this.handleClearAllFilters,
685
- widgetName: "Dropdown Filter",
686
- widgetType: "DropdownFilter"
687
- }, /*#__PURE__*/React.createElement("div", {
688
- ref: this.panelContainer,
689
- className: "dropdown-filter-container h-100 w-100 container"
690
- }, /*#__PURE__*/React.createElement(DropdownFilter, {
691
- ref: this.dropdownFilterRef,
692
- column: column,
693
- columns: columns,
694
- isValueShown: isValueShown,
695
- isLinkerActive: isLinkerActive,
696
- disableLinking: disableLinking,
697
- isLoaded: isLoaded,
698
- settingsError: settingsErrorMessage,
699
- source: source,
700
- value: value,
701
- values: formattedValues,
702
- onChange: this.handleChange,
703
- onColumnSelected: this.handleColumnSelected,
704
- onSourceMouseEnter: this.handleSourceMouseEnter,
705
- onSourceMouseLeave: this.handleSourceMouseLeave
706
- })));
607
+
608
+ columnSelectionValidator(this, DropdownFilterPanel.SOURCE_COLUMN);
609
+ }
610
+
611
+ handleSourceMouseLeave() {
612
+ var {
613
+ columnSelectionValidator
614
+ } = this.props;
615
+
616
+ if (!columnSelectionValidator) {
617
+ return;
707
618
  }
708
- }]);
709
619
 
710
- return DropdownFilterPanel;
711
- }(Component);
620
+ columnSelectionValidator(this, null);
621
+ }
622
+
623
+ render() {
624
+ var {
625
+ columns,
626
+ disableLinking,
627
+ glContainer,
628
+ glEventHub,
629
+ isLinkerActive
630
+ } = this.props;
631
+ var {
632
+ column,
633
+ formatter,
634
+ isDisconnected,
635
+ isValueShown,
636
+ value,
637
+ values,
638
+ valuesColumn,
639
+ isLoading,
640
+ isLoaded
641
+ } = this.state;
642
+ var source = this.getSource();
643
+ var settingsErrorMessage = this.getSettingsErrorMessage();
644
+ var panelErrorMessage = this.getPanelErrorMessage();
645
+ var formattedValues = isLoaded && valuesColumn != null ? this.getCachedValues(values, valuesColumn, formatter) : [];
646
+ return /*#__PURE__*/React.createElement(WidgetPanel, {
647
+ errorMessage: panelErrorMessage,
648
+ isLoading: isLoading,
649
+ isLoaded: isLoaded,
650
+ isDisconnected: isDisconnected,
651
+ className: "iris-dropdown-filter-panel",
652
+ componentPanel: this,
653
+ glContainer: glContainer,
654
+ glEventHub: glEventHub,
655
+ onClearAllFilters: this.handleClearAllFilters,
656
+ widgetName: "Dropdown Filter",
657
+ widgetType: "DropdownFilter"
658
+ }, /*#__PURE__*/React.createElement("div", {
659
+ ref: this.panelContainer,
660
+ className: "dropdown-filter-container h-100 w-100 container"
661
+ }, /*#__PURE__*/React.createElement(DropdownFilter, {
662
+ ref: this.dropdownFilterRef,
663
+ column: column,
664
+ columns: columns,
665
+ isValueShown: isValueShown,
666
+ isLinkerActive: isLinkerActive,
667
+ disableLinking: disableLinking,
668
+ isLoaded: isLoaded,
669
+ settingsError: settingsErrorMessage,
670
+ source: source,
671
+ value: value,
672
+ values: formattedValues,
673
+ onChange: this.handleChange,
674
+ onColumnSelected: this.handleColumnSelected,
675
+ onSourceMouseEnter: this.handleSourceMouseEnter,
676
+ onSourceMouseLeave: this.handleSourceMouseLeave
677
+ })));
678
+ }
679
+
680
+ }
712
681
 
713
682
  _defineProperty(DropdownFilterPanel, "COMPONENT", 'DropdownFilterPanel');
714
683
 
@@ -752,8 +721,10 @@ DropdownFilterPanel.defaultProps = {
752
721
  };
753
722
  DropdownFilterPanel.displayName = 'DropdownFilterPanel';
754
723
 
755
- var mapStateToProps = function mapStateToProps(state, ownProps) {
756
- var localDashboardId = ownProps.localDashboardId;
724
+ var mapStateToProps = (state, ownProps) => {
725
+ var {
726
+ localDashboardId
727
+ } = ownProps;
757
728
  var panelId = LayoutUtils.getIdFromPanel({
758
729
  props: ownProps
759
730
  });
@@ -767,11 +738,11 @@ var mapStateToProps = function mapStateToProps(state, ownProps) {
767
738
  return {
768
739
  columns: getColumnsForDashboard(state, localDashboardId),
769
740
  columnSelectionValidator: getColumnSelectionValidatorForDashboard(state, localDashboardId),
770
- isLinkerActive: isLinkerActive,
771
- disableLinking: disableLinking,
741
+ isLinkerActive,
742
+ disableLinking,
772
743
  settings: getSettings(state),
773
- panelTableMap: panelTableMap,
774
- dashboardLinks: dashboardLinks
744
+ panelTableMap,
745
+ dashboardLinks
775
746
  };
776
747
  };
777
748