@deephaven/dashboard-core-plugins 0.22.3-embed-pandas.11 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/dist/ChartBuilderPlugin.d.ts +2 -2
  2. package/dist/ChartBuilderPlugin.d.ts.map +1 -1
  3. package/dist/ChartBuilderPlugin.js +6 -8
  4. package/dist/ChartBuilderPlugin.js.map +1 -1
  5. package/dist/ChartPlugin.d.ts +2 -2
  6. package/dist/ChartPlugin.d.ts.map +1 -1
  7. package/dist/ChartPlugin.js +4 -8
  8. package/dist/ChartPlugin.js.map +1 -1
  9. package/dist/ConsolePlugin.d.ts +2 -2
  10. package/dist/ConsolePlugin.d.ts.map +1 -1
  11. package/dist/ConsolePlugin.js +16 -62
  12. package/dist/ConsolePlugin.js.map +1 -1
  13. package/dist/FilterPlugin.d.ts +4 -4
  14. package/dist/FilterPlugin.d.ts.map +1 -1
  15. package/dist/FilterPlugin.js +6 -13
  16. package/dist/FilterPlugin.js.map +1 -1
  17. package/dist/GridPlugin.d.ts +2 -2
  18. package/dist/GridPlugin.d.ts.map +1 -1
  19. package/dist/GridPlugin.js +4 -8
  20. package/dist/GridPlugin.js.map +1 -1
  21. package/dist/LinkerPlugin.d.ts +2 -2
  22. package/dist/LinkerPlugin.d.ts.map +1 -1
  23. package/dist/LinkerPlugin.js +2 -2
  24. package/dist/LinkerPlugin.js.map +1 -1
  25. package/dist/MarkdownPlugin.d.ts +3 -3
  26. package/dist/MarkdownPlugin.d.ts.map +1 -1
  27. package/dist/MarkdownPlugin.js +4 -8
  28. package/dist/MarkdownPlugin.js.map +1 -1
  29. package/dist/PandasPlugin.d.ts +2 -2
  30. package/dist/PandasPlugin.d.ts.map +1 -1
  31. package/dist/PandasPlugin.js +4 -8
  32. package/dist/PandasPlugin.js.map +1 -1
  33. package/dist/controls/ControlType.js +0 -6
  34. package/dist/controls/ControlType.js.map +1 -1
  35. package/dist/controls/dropdown-filter/DropdownFilter.d.ts +2 -2
  36. package/dist/controls/dropdown-filter/DropdownFilter.d.ts.map +1 -1
  37. package/dist/controls/dropdown-filter/DropdownFilter.js +7 -51
  38. package/dist/controls/dropdown-filter/DropdownFilter.js.map +1 -1
  39. package/dist/controls/input-filter/InputFilter.d.ts +2 -2
  40. package/dist/controls/input-filter/InputFilter.d.ts.map +1 -1
  41. package/dist/controls/input-filter/InputFilter.js +1 -31
  42. package/dist/controls/input-filter/InputFilter.js.map +1 -1
  43. package/dist/controls/markdown/MarkdownContainer.js +0 -3
  44. package/dist/controls/markdown/MarkdownContainer.js.map +1 -1
  45. package/dist/controls/markdown/MarkdownEditor.d.ts +0 -2
  46. package/dist/controls/markdown/MarkdownEditor.d.ts.map +1 -1
  47. package/dist/controls/markdown/MarkdownEditor.js +13 -20
  48. package/dist/controls/markdown/MarkdownEditor.js.map +1 -1
  49. package/dist/controls/markdown/MarkdownStartPage.js +0 -11
  50. package/dist/controls/markdown/MarkdownStartPage.js.map +1 -1
  51. package/dist/controls/markdown/MarkdownUtils.js +0 -7
  52. package/dist/controls/markdown/MarkdownUtils.js.map +1 -1
  53. package/dist/events/ChartEvent.js +0 -5
  54. package/dist/events/ChartEvent.js.map +1 -1
  55. package/dist/events/ConsoleEvent.js +0 -7
  56. package/dist/events/ConsoleEvent.js.map +1 -1
  57. package/dist/events/InputFilterEvent.js +0 -10
  58. package/dist/events/InputFilterEvent.js.map +1 -1
  59. package/dist/events/IrisGridEvent.js +0 -8
  60. package/dist/events/IrisGridEvent.js.map +1 -1
  61. package/dist/events/MarkdownEvent.d.ts +1 -1
  62. package/dist/events/MarkdownEvent.js.map +1 -1
  63. package/dist/events/NotebookEvent.js +0 -10
  64. package/dist/events/NotebookEvent.js.map +1 -1
  65. package/dist/events/PQEvent.js +0 -5
  66. package/dist/events/PQEvent.js.map +1 -1
  67. package/dist/events/PandasEvent.js +0 -4
  68. package/dist/events/PandasEvent.js.map +1 -1
  69. package/dist/events/TabEvent.js +0 -8
  70. package/dist/events/TabEvent.js.map +1 -1
  71. package/dist/events/index.js.map +1 -1
  72. package/dist/index.js.map +1 -1
  73. package/dist/linker/ColumnSelectionValidator.d.ts +1 -1
  74. package/dist/linker/ColumnSelectionValidator.d.ts.map +1 -1
  75. package/dist/linker/Linker.d.ts +5 -2
  76. package/dist/linker/Linker.d.ts.map +1 -1
  77. package/dist/linker/Linker.js +70 -119
  78. package/dist/linker/Linker.js.map +1 -1
  79. package/dist/linker/LinkerLink.css +90 -25
  80. package/dist/linker/LinkerLink.css.map +1 -1
  81. package/dist/linker/LinkerLink.d.ts +21 -3
  82. package/dist/linker/LinkerLink.d.ts.map +1 -1
  83. package/dist/linker/LinkerLink.js +214 -23
  84. package/dist/linker/LinkerLink.js.map +1 -1
  85. package/dist/linker/LinkerOverlayContent.css +0 -4
  86. package/dist/linker/LinkerOverlayContent.css.map +1 -1
  87. package/dist/linker/LinkerOverlayContent.d.ts +14 -3
  88. package/dist/linker/LinkerOverlayContent.d.ts.map +1 -1
  89. package/dist/linker/LinkerOverlayContent.js +78 -33
  90. package/dist/linker/LinkerOverlayContent.js.map +1 -1
  91. package/dist/linker/LinkerUtils.d.ts +17 -10
  92. package/dist/linker/LinkerUtils.d.ts.map +1 -1
  93. package/dist/linker/LinkerUtils.js +9 -25
  94. package/dist/linker/LinkerUtils.js.map +1 -1
  95. package/dist/linker/ToolType.d.ts +2 -2
  96. package/dist/linker/ToolType.js.map +1 -1
  97. package/dist/panels/ChartColumnSelectorOverlay.d.ts +5 -5
  98. package/dist/panels/ChartColumnSelectorOverlay.d.ts.map +1 -1
  99. package/dist/panels/ChartColumnSelectorOverlay.js +4 -7
  100. package/dist/panels/ChartColumnSelectorOverlay.js.map +1 -1
  101. package/dist/panels/ChartFilterOverlay.d.ts +5 -5
  102. package/dist/panels/ChartFilterOverlay.d.ts.map +1 -1
  103. package/dist/panels/ChartFilterOverlay.js +2 -7
  104. package/dist/panels/ChartFilterOverlay.js.map +1 -1
  105. package/dist/panels/ChartPanel.d.ts +8 -8
  106. package/dist/panels/ChartPanel.d.ts.map +1 -1
  107. package/dist/panels/ChartPanel.js +11 -150
  108. package/dist/panels/ChartPanel.js.map +1 -1
  109. package/dist/panels/CommandHistoryPanel.d.ts.map +1 -1
  110. package/dist/panels/CommandHistoryPanel.js +1 -26
  111. package/dist/panels/CommandHistoryPanel.js.map +1 -1
  112. package/dist/panels/ConsolePanel.d.ts +1 -1
  113. package/dist/panels/ConsolePanel.d.ts.map +1 -1
  114. package/dist/panels/ConsolePanel.js +12 -57
  115. package/dist/panels/ConsolePanel.js.map +1 -1
  116. package/dist/panels/DropdownFilterPanel.d.ts +9 -9
  117. package/dist/panels/DropdownFilterPanel.d.ts.map +1 -1
  118. package/dist/panels/DropdownFilterPanel.js +21 -127
  119. package/dist/panels/DropdownFilterPanel.js.map +1 -1
  120. package/dist/panels/FileExplorerPanel.d.ts +4 -4
  121. package/dist/panels/FileExplorerPanel.d.ts.map +1 -1
  122. package/dist/panels/FileExplorerPanel.js +4 -33
  123. package/dist/panels/FileExplorerPanel.js.map +1 -1
  124. package/dist/panels/FilterSetManager.d.ts +1 -1
  125. package/dist/panels/FilterSetManager.d.ts.map +1 -1
  126. package/dist/panels/FilterSetManager.js +13 -86
  127. package/dist/panels/FilterSetManager.js.map +1 -1
  128. package/dist/panels/FilterSetManagerPanel.js +10 -64
  129. package/dist/panels/FilterSetManagerPanel.js.map +1 -1
  130. package/dist/panels/InputFilterPanel.d.ts.map +1 -1
  131. package/dist/panels/InputFilterPanel.js +8 -38
  132. package/dist/panels/InputFilterPanel.js.map +1 -1
  133. package/dist/panels/IrisGridPanel.d.ts +13 -13
  134. package/dist/panels/IrisGridPanel.d.ts.map +1 -1
  135. package/dist/panels/IrisGridPanel.js +24 -133
  136. package/dist/panels/IrisGridPanel.js.map +1 -1
  137. package/dist/panels/IrisGridPanelTooltip.d.ts +7 -7
  138. package/dist/panels/IrisGridPanelTooltip.d.ts.map +1 -1
  139. package/dist/panels/IrisGridPanelTooltip.js +2 -5
  140. package/dist/panels/IrisGridPanelTooltip.js.map +1 -1
  141. package/dist/panels/LogPanel.js +4 -22
  142. package/dist/panels/LogPanel.js.map +1 -1
  143. package/dist/panels/MarkdownNotebook.js +3 -30
  144. package/dist/panels/MarkdownNotebook.js.map +1 -1
  145. package/dist/panels/MarkdownPanel.js +2 -30
  146. package/dist/panels/MarkdownPanel.js.map +1 -1
  147. package/dist/panels/MockFileStorage.js +1 -14
  148. package/dist/panels/MockFileStorage.js.map +1 -1
  149. package/dist/panels/MockFileStorageTable.js +11 -30
  150. package/dist/panels/MockFileStorageTable.js.map +1 -1
  151. package/dist/panels/NotebookPanel.js +24 -182
  152. package/dist/panels/NotebookPanel.js.map +1 -1
  153. package/dist/panels/PandasPanel.js +1 -20
  154. package/dist/panels/PandasPanel.js.map +1 -1
  155. package/dist/panels/Panel.d.ts +1 -1
  156. package/dist/panels/Panel.d.ts.map +1 -1
  157. package/dist/panels/Panel.js +2 -38
  158. package/dist/panels/Panel.js.map +1 -1
  159. package/dist/panels/PanelContextMenu.js +7 -29
  160. package/dist/panels/PanelContextMenu.js.map +1 -1
  161. package/dist/panels/RenameDialog.js +2 -17
  162. package/dist/panels/RenameDialog.js.map +1 -1
  163. package/dist/panels/WidgetPanel.d.ts.map +1 -1
  164. package/dist/panels/WidgetPanel.js +5 -22
  165. package/dist/panels/WidgetPanel.js.map +1 -1
  166. package/dist/panels/WidgetPanelTooltip.d.ts +7 -7
  167. package/dist/panels/WidgetPanelTooltip.d.ts.map +1 -1
  168. package/dist/panels/WidgetPanelTooltip.js +7 -17
  169. package/dist/panels/WidgetPanelTooltip.js.map +1 -1
  170. package/dist/panels/index.js.map +1 -1
  171. package/dist/prop-types/CommonPropTypes.js +0 -3
  172. package/dist/prop-types/CommonPropTypes.js.map +1 -1
  173. package/dist/prop-types/UIPropTypes.d.ts +2 -2
  174. package/dist/prop-types/UIPropTypes.js.map +1 -1
  175. package/dist/prop-types/index.js.map +1 -1
  176. package/dist/redux/actionTypes.js.map +1 -1
  177. package/dist/redux/actions.js +8 -9
  178. package/dist/redux/actions.js.map +1 -1
  179. package/dist/redux/index.js.map +1 -1
  180. package/dist/redux/reducers/connection.js.map +1 -1
  181. package/dist/redux/reducers/index.js.map +1 -1
  182. package/dist/redux/reducers/sessionWrapper.js.map +1 -1
  183. package/dist/redux/selectors.js +10 -15
  184. package/dist/redux/selectors.js.map +1 -1
  185. package/package.json +21 -19
@@ -1 +1 @@
1
- {"version":3,"file":"actions.js","names":["deepEqual","updateDashboardData","getLinksForDashboard","setDashboardConnection","id","connection","dispatch","setDashboardSessionWrapper","sessionWrapper","setDashboardLinks","links","addDashboardLinks","newLinks","getState","filtered","filter","newLink","findIndex","link","start","end","concat","deleteDashboardLinks","linkIds","includes","setDashboardIsolatedLinkerPanelId","isolatedLinkerPanelId","setDashboardColumnSelectionValidator","columnSelectionValidator","setDashboardConsoleSettings","consoleSettings","setDashboardFilterSets","filterSets"],"sources":["../../src/redux/actions.ts"],"sourcesContent":["import deepEqual from 'deep-equal';\nimport { updateDashboardData } from '@deephaven/dashboard';\nimport { ThunkAction } from 'redux-thunk';\nimport { RootState } from '@deephaven/redux';\nimport { Action } from 'redux';\nimport { IdeConnection, IdeSession } from '@deephaven/jsapi-shim';\nimport { getLinksForDashboard } from './selectors';\nimport { FilterSet } from '../panels';\nimport { Link } from '../linker/LinkerUtils';\nimport { ColumnSelectionValidator } from '../linker/ColumnSelectionValidator';\n\nexport interface SessionConfig {\n type: string;\n id: string;\n}\n\nexport interface SessionWrapper {\n session: IdeSession;\n connection: IdeConnection;\n config: SessionConfig;\n}\n\n/**\n * Set the connection for the dashboard specified\n * @param id The ID of the dashboard to set the connection for\n * @param connection The connection object to set for the dashboard\n */\nexport const setDashboardConnection = (\n id: string,\n connection: IdeConnection\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { connection }));\n\n/**\n * Set the session wrapper for the dashboard specified\n * @param id The ID of the dashboard to set the session for\n * @param sessionWrapper The session wrapper object to set for the dashboard\n */\nexport const setDashboardSessionWrapper = (\n id: string,\n sessionWrapper: SessionWrapper\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { sessionWrapper }));\n\n/**\n * Set the links for a given dashboard\n * @param id The ID of the dashboard to set the links for\n * @param links The links to set\n */\nexport const setDashboardLinks = (\n id: string,\n links: Link[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { links }));\n\n/**\n * Add links to the existing links in a dashboard. Filters out any duplicate links.\n * @param id The ID of the dashboard to add links to\n * @param newLinks The new links to add\n */\nexport const addDashboardLinks = (\n id: string,\n newLinks: Link[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => (\n dispatch,\n getState\n) => {\n const links = getLinksForDashboard(getState(), id);\n const filtered = newLinks.filter(\n newLink =>\n links.findIndex(\n link =>\n deepEqual(link.start, newLink.start) &&\n deepEqual(link.end, newLink.end)\n ) < 0\n );\n return dispatch(setDashboardLinks(id, links.concat(filtered)));\n};\n\n/**\n * Delete links from a dashboard\n * @param id The ID of the dashboard to delete links from\n * @param linkIds The link IDs to delete\n */\nexport const deleteDashboardLinks = (\n id: string,\n linkIds: string[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => (\n dispatch,\n getState\n) => {\n const links = getLinksForDashboard(getState(), id);\n const newLinks = links.filter(link => !linkIds.includes(link.id));\n return dispatch(setDashboardLinks(id, newLinks));\n};\n\n/**\n * Set the isolated linker panel ID for a dashboard\n * @param id The ID of the dashboard to set the isolated linker panel ID in\n * @param isolatedLinkerPanelId The isolated panel ID, or undefined to unset\n */\nexport const setDashboardIsolatedLinkerPanelId = (\n id: string,\n isolatedLinkerPanelId: string | string[] | undefined\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { isolatedLinkerPanelId }));\n\n/**\n * Set the column selection validator for a dashboard\n * @param id The ID of the dashboard to set the column selection validator on\n * @param columnSelectionValidator The column selection validator to set\n */\nexport const setDashboardColumnSelectionValidator = (\n id: string,\n columnSelectionValidator: ColumnSelectionValidator | undefined\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { columnSelectionValidator }));\n\n/**\n * Set the console settings for a dashboard\n * @param id The ID of the dashboard to set the console settings on\n * @param consoleSettings The console settings to set for the dashboard\n */\nexport const setDashboardConsoleSettings = (\n id: string,\n consoleSettings: Record<string, unknown>\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { consoleSettings }));\n\n/**\n * Set the filter sets for a specific dashboard\n * @param id The ID of the dashboard to set the filter sets for\n * @param filterSets The filter sets to set\n */\nexport const setDashboardFilterSets = (\n id: string,\n filterSets: FilterSet[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { filterSets }));\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,SAASC,mBAAT,QAAoC,sBAApC;SAKSC,oB;;AAgBT;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,sBAAsB,GAAG,CACpCC,EADoC,EAEpCC,UAFoC,KAG4BC,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAEC;AAAF,CAAL,CAApB,CAJH;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAME,0BAA0B,GAAG,CACxCH,EADwC,EAExCI,cAFwC,KAGwBF,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAEI;AAAF,CAAL,CAApB,CAJH;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,iBAAiB,GAAG,CAC/BL,EAD+B,EAE/BM,KAF+B,KAGiCJ,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAEM;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ACA;AACA;;AACA,OAAO,IAAMC,oCAAoC,GAAG,CAClDvB,EADkD,EAElDwB,wBAFkD,KAGctB,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAEwB;AAAF,CAAL,CAApB,CAJH;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,2BAA2B,GAAG,CACzCzB,EADyC,EAEzC0B,eAFyC,KAGuBxB,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAE0B;AAAF,CAAL,CAApB,CAJH;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,sBAAsB,GAAG,CACpC3B,EADoC,EAEpC4B,UAFoC,KAG4B1B,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAE4B;AAAF,CAAL,CAApB,CAJH"}
1
+ {"version":3,"file":"actions.js","names":["deepEqual","updateDashboardData","getLinksForDashboard","setDashboardConnection","id","connection","dispatch","setDashboardSessionWrapper","sessionWrapper","setDashboardLinks","links","addDashboardLinks","newLinks","getState","filtered","filter","newLink","findIndex","link","start","end","concat","deleteDashboardLinks","linkIds","includes","setDashboardIsolatedLinkerPanelId","isolatedLinkerPanelId","setDashboardColumnSelectionValidator","columnSelectionValidator","setDashboardConsoleSettings","consoleSettings","setDashboardFilterSets","filterSets"],"sources":["../../src/redux/actions.ts"],"sourcesContent":["import deepEqual from 'deep-equal';\nimport { updateDashboardData } from '@deephaven/dashboard';\nimport { ThunkAction } from 'redux-thunk';\nimport { RootState } from '@deephaven/redux';\nimport { Action } from 'redux';\nimport { IdeConnection, IdeSession } from '@deephaven/jsapi-shim';\nimport { getLinksForDashboard } from './selectors';\nimport { FilterSet } from '../panels';\nimport { Link } from '../linker/LinkerUtils';\nimport { ColumnSelectionValidator } from '../linker/ColumnSelectionValidator';\n\nexport interface SessionConfig {\n type: string;\n id: string;\n}\n\nexport interface SessionWrapper {\n session: IdeSession;\n connection: IdeConnection;\n config: SessionConfig;\n}\n\n/**\n * Set the connection for the dashboard specified\n * @param id The ID of the dashboard to set the connection for\n * @param connection The connection object to set for the dashboard\n */\nexport const setDashboardConnection = (\n id: string,\n connection: IdeConnection\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { connection }));\n\n/**\n * Set the session wrapper for the dashboard specified\n * @param id The ID of the dashboard to set the session for\n * @param sessionWrapper The session wrapper object to set for the dashboard\n */\nexport const setDashboardSessionWrapper = (\n id: string,\n sessionWrapper: SessionWrapper\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { sessionWrapper }));\n\n/**\n * Set the links for a given dashboard\n * @param id The ID of the dashboard to set the links for\n * @param links The links to set\n */\nexport const setDashboardLinks = (\n id: string,\n links: Link[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { links }));\n\n/**\n * Add links to the existing links in a dashboard. Filters out any duplicate links.\n * @param id The ID of the dashboard to add links to\n * @param newLinks The new links to add\n */\nexport const addDashboardLinks = (\n id: string,\n newLinks: Link[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => (\n dispatch,\n getState\n) => {\n const links = getLinksForDashboard(getState(), id);\n const filtered = newLinks.filter(\n newLink =>\n links.findIndex(\n link =>\n deepEqual(link.start, newLink.start) &&\n deepEqual(link.end, newLink.end)\n ) < 0\n );\n return dispatch(setDashboardLinks(id, links.concat(filtered)));\n};\n\n/**\n * Delete links from a dashboard\n * @param id The ID of the dashboard to delete links from\n * @param linkIds The link IDs to delete\n */\nexport const deleteDashboardLinks = (\n id: string,\n linkIds: string[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => (\n dispatch,\n getState\n) => {\n const links = getLinksForDashboard(getState(), id);\n const newLinks = links.filter(link => !linkIds.includes(link.id));\n return dispatch(setDashboardLinks(id, newLinks));\n};\n\n/**\n * Set the isolated linker panel ID for a dashboard\n * @param id The ID of the dashboard to set the isolated linker panel ID in\n * @param isolatedLinkerPanelId The isolated panel ID, or undefined to unset\n */\nexport const setDashboardIsolatedLinkerPanelId = (\n id: string,\n isolatedLinkerPanelId: string | string[] | undefined\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { isolatedLinkerPanelId }));\n\n/**\n * Set the column selection validator for a dashboard\n * @param id The ID of the dashboard to set the column selection validator on\n * @param columnSelectionValidator The column selection validator to set\n */\nexport const setDashboardColumnSelectionValidator = (\n id: string,\n columnSelectionValidator: ColumnSelectionValidator | undefined\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { columnSelectionValidator }));\n\n/**\n * Set the console settings for a dashboard\n * @param id The ID of the dashboard to set the console settings on\n * @param consoleSettings The console settings to set for the dashboard\n */\nexport const setDashboardConsoleSettings = (\n id: string,\n consoleSettings: Record<string, unknown>\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { consoleSettings }));\n\n/**\n * Set the filter sets for a specific dashboard\n * @param id The ID of the dashboard to set the filter sets for\n * @param filterSets The filter sets to set\n */\nexport const setDashboardFilterSets = (\n id: string,\n filterSets: FilterSet[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { filterSets }));\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,SAASC,mBAAmB,QAAQ,sBAAsB;AAAC,SAKlDC,oBAAoB;AAgB7B;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,sBAAsB,GAAG,CACpCC,EAAU,EACVC,UAAyB,KACuCC,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAE,EAAE;EAAEC;AAAW,CAAC,CAAC,CAAC;;AAEnD;AACA;AACA;AACA;AACA;AACA,OAAO,IAAME,0BAA0B,GAAG,CACxCH,EAAU,EACVI,cAA8B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AQ,CAAC,CAAC;AAClD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMa,iCAAiC,GAAG,CAC/CrB,EAAU,EACVsB,qBAAoD,KACYpB,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAE,EAAE;EAAEsB;AAAsB,CAAC,CAAC,CAAC;;AAE9D;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,oCAAoC,GAAG,CAClDvB,EAAU,EACVwB,wBAA8D,KACEtB,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAE,EAAE;EAAEwB;AAAyB,CAAC,CAAC,CAAC;;AAEjE;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,2BAA2B,GAAG,CACzCzB,EAAU,EACV0B,eAAwC,KACwBxB,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAE,EAAE;EAAE0B;AAAgB,CAAC,CAAC,CAAC;;AAExD;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,sBAAsB,GAAG,CACpC3B,EAAU,EACV4B,UAAuB,KACyC1B,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAE,EAAE;EAAE4B;AAAW,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["reducerRegistry","reducers","Object","entries","map","name","reducer","register"],"sources":["../../src/redux/index.ts"],"sourcesContent":["import { reducerRegistry } from '@deephaven/redux';\nimport reducers from './reducers';\n\nObject.entries(reducers).map(([name, reducer]) =>\n reducerRegistry.register(name, reducer)\n);\n\nexport * from './actions';\nexport * from './actionTypes';\nexport * from './selectors';\n"],"mappings":"AAAA,SAASA,eAAT,QAAgC,kBAAhC;OACOC,Q;AAEPC,MAAM,CAACC,OAAP,CAAeF,QAAf,EAAyBG,GAAzB,CAA6B;EAAA,IAAC,CAACC,IAAD,EAAOC,OAAP,CAAD;EAAA,OAC3BN,eAAe,CAACO,QAAhB,CAAyBF,IAAzB,EAA+BC,OAA/B,CAD2B;AAAA,CAA7B"}
1
+ {"version":3,"file":"index.js","names":["reducerRegistry","reducers","Object","entries","map","name","reducer","register"],"sources":["../../src/redux/index.ts"],"sourcesContent":["import { reducerRegistry } from '@deephaven/redux';\nimport reducers from './reducers';\n\nObject.entries(reducers).map(([name, reducer]) =>\n reducerRegistry.register(name, reducer)\n);\n\nexport * from './actions';\nexport * from './actionTypes';\nexport * from './selectors';\n"],"mappings":"AAAA,SAASA,eAAe,QAAQ,kBAAkB;AAAC,OAC5CC,QAAQ;AAEfC,MAAM,CAACC,OAAO,CAACF,QAAQ,CAAC,CAACG,GAAG,CAAC;EAAA,IAAC,CAACC,IAAI,EAAEC,OAAO,CAAC;EAAA,OAC3CN,eAAe,CAACO,QAAQ,CAACF,IAAI,EAAEC,OAAO,CAAC;AAAA,EACxC;AAAC;AAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"connection.js","names":["replaceReducer","SET_CONNECTION"],"sources":["../../../src/redux/reducers/connection.ts"],"sourcesContent":["/**\n * Set the active session being used to communicate with the server.\n */\nimport { replaceReducer } from '@deephaven/redux';\nimport { SET_CONNECTION } from '../actionTypes';\n\nexport default replaceReducer(SET_CONNECTION, null);\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,cAAT,QAA+B,kBAA/B;SACSC,c;AAET,eAAeD,cAAc,CAACC,cAAD,EAAiB,IAAjB,CAA7B"}
1
+ {"version":3,"file":"connection.js","names":["replaceReducer","SET_CONNECTION"],"sources":["../../../src/redux/reducers/connection.ts"],"sourcesContent":["/**\n * Set the active session being used to communicate with the server.\n */\nimport { replaceReducer } from '@deephaven/redux';\nimport { SET_CONNECTION } from '../actionTypes';\n\nexport default replaceReducer(SET_CONNECTION, null);\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,cAAc,QAAQ,kBAAkB;AAAC,SACzCC,cAAc;AAEvB,eAAeD,cAAc,CAACC,cAAc,EAAE,IAAI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["sessionWrapper"],"sources":["../../../src/redux/reducers/index.ts"],"sourcesContent":["import sessionWrapper from './sessionWrapper';\n\nexport default { sessionWrapper };\n"],"mappings":"OAAOA,c;AAEP,eAAe;EAAEA;AAAF,CAAf"}
1
+ {"version":3,"file":"index.js","names":["sessionWrapper"],"sources":["../../../src/redux/reducers/index.ts"],"sourcesContent":["import sessionWrapper from './sessionWrapper';\n\nexport default { sessionWrapper };\n"],"mappings":"OAAOA,cAAc;AAErB,eAAe;EAAEA;AAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sessionWrapper.js","names":["replaceReducer","SET_SESSION_WRAPPER"],"sources":["../../../src/redux/reducers/sessionWrapper.ts"],"sourcesContent":["/**\n * Set the active session being used to communicate with the server.\n */\nimport { replaceReducer } from '@deephaven/redux';\nimport { SET_SESSION_WRAPPER } from '../actionTypes';\n\nexport default replaceReducer(SET_SESSION_WRAPPER, null);\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,cAAT,QAA+B,kBAA/B;SACSC,mB;AAET,eAAeD,cAAc,CAACC,mBAAD,EAAsB,IAAtB,CAA7B"}
1
+ {"version":3,"file":"sessionWrapper.js","names":["replaceReducer","SET_SESSION_WRAPPER"],"sources":["../../../src/redux/reducers/sessionWrapper.ts"],"sourcesContent":["/**\n * Set the active session being used to communicate with the server.\n */\nimport { replaceReducer } from '@deephaven/redux';\nimport { SET_SESSION_WRAPPER } from '../actionTypes';\n\nexport default replaceReducer(SET_SESSION_WRAPPER, null);\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,cAAc,QAAQ,kBAAkB;AAAC,SACzCC,mBAAmB;AAE5B,eAAeD,cAAc,CAACC,mBAAmB,EAAE,IAAI,CAAC"}
@@ -1,97 +1,92 @@
1
1
  import { getDashboardData } from '@deephaven/dashboard';
2
2
  var EMPTY_MAP = new Map();
3
3
  var EMPTY_ARRAY = Object.freeze([]);
4
+
4
5
  /**
5
6
  * @param store The redux store
6
7
  * @param dashboardId The dashboard ID to get data for
7
8
  * @returns All column objects found in all panels in this dashboard
8
9
  */
9
-
10
10
  export var getColumnsForDashboard = (store, dashboardId) => {
11
11
  var _getDashboardData$col;
12
-
13
12
  return (_getDashboardData$col = getDashboardData(store, dashboardId).columns) !== null && _getDashboardData$col !== void 0 ? _getDashboardData$col : EMPTY_ARRAY;
14
13
  };
14
+
15
15
  /**
16
16
  * Get the known filter sets for the dashboard.
17
17
  * @param store The redux store
18
18
  * @param dashboardId The dashboard ID to get data for
19
19
  * @returns The filter sets set on this dashboard
20
20
  */
21
-
22
21
  export var getFilterSetsForDashboard = (store, dashboardId) => {
23
22
  var _getDashboardData$fil;
24
-
25
23
  return (_getDashboardData$fil = getDashboardData(store, dashboardId).filterSets) !== null && _getDashboardData$fil !== void 0 ? _getDashboardData$fil : EMPTY_ARRAY;
26
24
  };
25
+
27
26
  /**
28
27
  * @param store The redux store
29
28
  * @param dashboardId The dashboard ID to get data for
30
29
  * @returns The filters set on this dashboard
31
30
  */
32
-
33
31
  export var getInputFiltersForDashboard = (store, dashboardId) => {
34
32
  var _getDashboardData$fil2;
35
-
36
33
  return (_getDashboardData$fil2 = getDashboardData(store, dashboardId).filters) !== null && _getDashboardData$fil2 !== void 0 ? _getDashboardData$fil2 : EMPTY_ARRAY;
37
34
  };
35
+
38
36
  /**
39
37
  * @param store The redux store
40
38
  * @param dashboardId The dashboard ID to get data for
41
39
  * @returns Map from panel ID to the table used in that panel
42
40
  */
43
-
44
41
  export var getTableMapForDashboard = (store, dashboardId) => {
45
42
  var _getDashboardData$tab;
46
-
47
43
  return (_getDashboardData$tab = getDashboardData(store, dashboardId).tableMap) !== null && _getDashboardData$tab !== void 0 ? _getDashboardData$tab : EMPTY_MAP;
48
44
  };
45
+
49
46
  /**
50
47
  * @param store The redux store
51
48
  * @param dashboardId The dashboard ID to get the data for
52
49
  * @returns The panel ID that is isolated, undefined if none is isolated
53
50
  */
54
-
55
51
  export var getIsolatedLinkerPanelIdForDashboard = (store, dashboardId) => getDashboardData(store, dashboardId).isolatedLinkerPanelId;
52
+
56
53
  /**
57
54
  * @param store The redux store
58
55
  * @param dashboardId The dashboard ID to get the data from
59
56
  * @returns The links for the dashboard
60
57
  */
61
-
62
58
  export var getLinksForDashboard = (store, dashboardId) => {
63
59
  var _getDashboardData$lin;
64
-
65
60
  return (_getDashboardData$lin = getDashboardData(store, dashboardId).links) !== null && _getDashboardData$lin !== void 0 ? _getDashboardData$lin : EMPTY_ARRAY;
66
61
  };
62
+
67
63
  /**
68
64
  * @param store The redux store
69
65
  * @param dashboardId The dashboard ID to get the column selection validators for
70
66
  * @returns Column selection validator active on a dashboard
71
67
  */
72
-
73
68
  export var getColumnSelectionValidatorForDashboard = (store, dashboardId) => getDashboardData(store, dashboardId).columnSelectionValidator;
69
+
74
70
  /**
75
71
  * @param store The redux store
76
72
  * @param dashboardId The dashboard ID to get the console settings for
77
73
  * @returns Console settings for this dashboard
78
74
  */
79
-
80
75
  export var getDashboardConsoleSettings = (store, dashboardId) => getDashboardData(store, dashboardId).consoleSettings;
76
+
81
77
  /**
82
78
  *
83
79
  * @param store The redux store
84
80
  * @param dashboardId The dashboard ID to get the IdeConnection for
85
81
  * @returns The connection for the dashboard
86
82
  */
87
-
88
83
  export var getDashboardConnection = (store, dashboardId) => getDashboardData(store, dashboardId).connection;
84
+
89
85
  /**
90
86
  *
91
87
  * @param store The redux store
92
88
  * @param dashboardId The dashboard ID to get the SessionWrapper for
93
89
  * @returns The session wrapper for the dashboard
94
90
  */
95
-
96
91
  export var getDashboardSessionWrapper = (store, dashboardId) => getDashboardData(store, dashboardId).sessionWrapper;
97
92
  //# sourceMappingURL=selectors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.js","names":["getDashboardData","EMPTY_MAP","Map","EMPTY_ARRAY","Object","freeze","getColumnsForDashboard","store","dashboardId","columns","getFilterSetsForDashboard","filterSets","getInputFiltersForDashboard","filters","getTableMapForDashboard","tableMap","getIsolatedLinkerPanelIdForDashboard","isolatedLinkerPanelId","getLinksForDashboard","links","getColumnSelectionValidatorForDashboard","columnSelectionValidator","getDashboardConsoleSettings","consoleSettings","getDashboardConnection","connection","getDashboardSessionWrapper","sessionWrapper"],"sources":["../../src/redux/selectors.ts"],"sourcesContent":["import { getDashboardData } from '@deephaven/dashboard';\nimport { Column, IdeConnection, Table } from '@deephaven/jsapi-shim';\nimport { RootState } from '@deephaven/redux';\nimport { FilterChangeEvent } from '../FilterPlugin';\nimport { Link } from '../linker/LinkerUtils';\nimport { FilterSet } from '../panels';\nimport { ColumnSelectionValidator } from '../linker/ColumnSelectionValidator';\nimport { SessionWrapper } from './actions';\n\nconst EMPTY_MAP = new Map();\n\nconst EMPTY_ARRAY = Object.freeze([]);\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns All column objects found in all panels in this dashboard\n */\nexport const getColumnsForDashboard = (\n store: RootState,\n dashboardId: string\n): Column[] =>\n (getDashboardData(store, dashboardId).columns ?? EMPTY_ARRAY) as Column[];\n\n/**\n * Get the known filter sets for the dashboard.\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns The filter sets set on this dashboard\n */\nexport const getFilterSetsForDashboard = (\n store: RootState,\n dashboardId: string\n): FilterSet[] =>\n (getDashboardData(store, dashboardId).filterSets ??\n EMPTY_ARRAY) as FilterSet[];\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns The filters set on this dashboard\n */\nexport const getInputFiltersForDashboard = (\n store: RootState,\n dashboardId: string\n): FilterChangeEvent[] =>\n (getDashboardData(store, dashboardId).filters ??\n EMPTY_ARRAY) as FilterChangeEvent[];\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns Map from panel ID to the table used in that panel\n */\nexport const getTableMapForDashboard = (\n store: RootState,\n dashboardId: string\n): Map<string, Table> =>\n (getDashboardData(store, dashboardId).tableMap ?? EMPTY_MAP) as Map<\n string,\n Table\n >;\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the data for\n * @returns The panel ID that is isolated, undefined if none is isolated\n */\nexport const getIsolatedLinkerPanelIdForDashboard = (\n store: RootState,\n dashboardId: string\n): string | undefined =>\n getDashboardData(store, dashboardId).isolatedLinkerPanelId as\n | string\n | undefined;\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the data from\n * @returns The links for the dashboard\n */\nexport const getLinksForDashboard = (\n store: RootState,\n dashboardId: string\n): Link[] =>\n (getDashboardData(store, dashboardId).links ?? EMPTY_ARRAY) as Link[];\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the column selection validators for\n * @returns Column selection validator active on a dashboard\n */\nexport const getColumnSelectionValidatorForDashboard = (\n store: RootState,\n dashboardId: string\n): ColumnSelectionValidator | undefined =>\n getDashboardData(store, dashboardId).columnSelectionValidator as\n | ColumnSelectionValidator\n | undefined;\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the console settings for\n * @returns Console settings for this dashboard\n */\nexport const getDashboardConsoleSettings = (\n store: RootState,\n dashboardId: string\n): Record<string, unknown> =>\n getDashboardData(store, dashboardId).consoleSettings as Record<\n string,\n unknown\n >;\n\n/**\n *\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the IdeConnection for\n * @returns The connection for the dashboard\n */\nexport const getDashboardConnection = (\n store: RootState,\n dashboardId: string\n): IdeConnection =>\n getDashboardData(store, dashboardId).connection as IdeConnection;\n\n/**\n *\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the SessionWrapper for\n * @returns The session wrapper for the dashboard\n */\nexport const getDashboardSessionWrapper = (\n store: RootState,\n dashboardId: string\n): SessionWrapper =>\n getDashboardData(store, dashboardId).sessionWrapper as SessionWrapper;\n"],"mappings":"AAAA,SAASA,gBAAT,QAAiC,sBAAjC;AASA,IAAMC,SAAS,GAAG,IAAIC,GAAJ,EAAlB;AAEA,IAAMC,WAAW,GAAGC,MAAM,CAACC,MAAP,CAAc,EAAd,CAApB;AAEA;AAC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AQC,WAAR,CAAhB,CAAqCa,wBAJhC;AAQP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,2BAA2B,GAAG,CACzCf,KADyC,EAEzCC,WAFyC,KAIzCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCe,eAJhC;AASP;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,sBAAsB,GAAG,CACpCjB,KADoC,EAEpCC,WAFoC,KAIpCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCiB,UAJhC;AAMP;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,0BAA0B,GAAG,CACxCnB,KADwC,EAExCC,WAFwC,KAIxCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCmB,cAJhC"}
1
+ {"version":3,"file":"selectors.js","names":["getDashboardData","EMPTY_MAP","Map","EMPTY_ARRAY","Object","freeze","getColumnsForDashboard","store","dashboardId","columns","getFilterSetsForDashboard","filterSets","getInputFiltersForDashboard","filters","getTableMapForDashboard","tableMap","getIsolatedLinkerPanelIdForDashboard","isolatedLinkerPanelId","getLinksForDashboard","links","getColumnSelectionValidatorForDashboard","columnSelectionValidator","getDashboardConsoleSettings","consoleSettings","getDashboardConnection","connection","getDashboardSessionWrapper","sessionWrapper"],"sources":["../../src/redux/selectors.ts"],"sourcesContent":["import { getDashboardData } from '@deephaven/dashboard';\nimport { Column, IdeConnection, Table } from '@deephaven/jsapi-shim';\nimport { RootState } from '@deephaven/redux';\nimport { FilterChangeEvent } from '../FilterPlugin';\nimport { Link } from '../linker/LinkerUtils';\nimport { FilterSet } from '../panels';\nimport { ColumnSelectionValidator } from '../linker/ColumnSelectionValidator';\nimport { SessionWrapper } from './actions';\n\nconst EMPTY_MAP = new Map();\n\nconst EMPTY_ARRAY = Object.freeze([]);\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns All column objects found in all panels in this dashboard\n */\nexport const getColumnsForDashboard = (\n store: RootState,\n dashboardId: string\n): Column[] =>\n (getDashboardData(store, dashboardId).columns ?? EMPTY_ARRAY) as Column[];\n\n/**\n * Get the known filter sets for the dashboard.\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns The filter sets set on this dashboard\n */\nexport const getFilterSetsForDashboard = (\n store: RootState,\n dashboardId: string\n): FilterSet[] =>\n (getDashboardData(store, dashboardId).filterSets ??\n EMPTY_ARRAY) as FilterSet[];\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns The filters set on this dashboard\n */\nexport const getInputFiltersForDashboard = (\n store: RootState,\n dashboardId: string\n): FilterChangeEvent[] =>\n (getDashboardData(store, dashboardId).filters ??\n EMPTY_ARRAY) as FilterChangeEvent[];\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns Map from panel ID to the table used in that panel\n */\nexport const getTableMapForDashboard = (\n store: RootState,\n dashboardId: string\n): Map<string, Table> =>\n (getDashboardData(store, dashboardId).tableMap ?? EMPTY_MAP) as Map<\n string,\n Table\n >;\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the data for\n * @returns The panel ID that is isolated, undefined if none is isolated\n */\nexport const getIsolatedLinkerPanelIdForDashboard = (\n store: RootState,\n dashboardId: string\n): string | undefined =>\n getDashboardData(store, dashboardId).isolatedLinkerPanelId as\n | string\n | undefined;\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the data from\n * @returns The links for the dashboard\n */\nexport const getLinksForDashboard = (\n store: RootState,\n dashboardId: string\n): Link[] =>\n (getDashboardData(store, dashboardId).links ?? EMPTY_ARRAY) as Link[];\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the column selection validators for\n * @returns Column selection validator active on a dashboard\n */\nexport const getColumnSelectionValidatorForDashboard = (\n store: RootState,\n dashboardId: string\n): ColumnSelectionValidator | undefined =>\n getDashboardData(store, dashboardId).columnSelectionValidator as\n | ColumnSelectionValidator\n | undefined;\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the console settings for\n * @returns Console settings for this dashboard\n */\nexport const getDashboardConsoleSettings = (\n store: RootState,\n dashboardId: string\n): Record<string, unknown> =>\n getDashboardData(store, dashboardId).consoleSettings as Record<\n string,\n unknown\n >;\n\n/**\n *\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the IdeConnection for\n * @returns The connection for the dashboard\n */\nexport const getDashboardConnection = (\n store: RootState,\n dashboardId: string\n): IdeConnection =>\n getDashboardData(store, dashboardId).connection as IdeConnection;\n\n/**\n *\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the SessionWrapper for\n * @returns The session wrapper for the dashboard\n */\nexport const getDashboardSessionWrapper = (\n store: RootState,\n dashboardId: string\n): SessionWrapper =>\n getDashboardData(store, dashboardId).sessionWrapper as SessionWrapper;\n"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,sBAAsB;AASvD,IAAMC,SAAS,GAAG,IAAIC,GAAG,EAAE;AAE3B,IAAMC,WAAW,GAAGC,MAAM,CAACC,MAAM,CAAC,EAAE,CAAC;;AAErC;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,sBAAsB,GAAG,CACpCC,KAAgB,EAChBC,WAAmB;EAAA;EAAA,gCAElBR,gBAAgB,CAACO,KAAK,EAAEC,WAAW,CAAC,CAACC,OAAO,yEAAIN,WAAW;AAAA,CAAa;;AAE3E;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMO,yBAAyB,GAAG,CACvCH,KAAgB,EAChBC,WAAmB;EAAA;EAAA,gCAElBR,gBAAgB,CAACO,KAAK,EAAEC,WAAW,CAAC,CAACG,UAAU,yEAC9CR,WAAW;AAAA,CAAgB;;AAE/B;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMS,2BAA2B,GAAG,CACzCL,KAAgB,EAChBC,WAAmB;EAAA;EAAA,iCAElBR,gBAAgB,CAACO,KAAK,EAAEC,WAAW,CAAC,CAACK,OAAO,2EAC3CV,WAAW;AAAA,CAAwB;;AAEvC;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMW,uBAAuB,GAAG,CACrCP,KAAgB,EAChBC,WAAmB;EAAA;EAAA,gCAElBR,gBAAgB,CAACO,KAAK,EAAEC,WAAW,CAAC,CAACO,QAAQ,yEAAId,SAAS;AAAA,CAG1D;;AAEH;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMe,oCAAoC,GAAG,CAClDT,KAAgB,EAChBC,WAAmB,KAEnBR,gBAAgB,CAACO,KAAK,EAAEC,WAAW,CAAC,CAACS,qBAExB;;AAEf;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,oBAAoB,GAAG,CAClCX,KAAgB,EAChBC,WAAmB;EAAA;EAAA,gCAElBR,gBAAgB,CAACO,KAAK,EAAEC,WAAW,CAAC,CAACW,KAAK,yEAAIhB,WAAW;AAAA,CAAW;;AAEvE;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMiB,uCAAuC,GAAG,CACrDb,KAAgB,EAChBC,WAAmB,KAEnBR,gBAAgB,CAACO,KAAK,EAAEC,WAAW,CAAC,CAACa,wBAExB;;AAEf;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,2BAA2B,GAAG,CACzCf,KAAgB,EAChBC,WAAmB,KAEnBR,gBAAgB,CAACO,KAAK,EAAEC,WAAW,CAAC,CAACe,eAGpC;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,sBAAsB,GAAG,CACpCjB,KAAgB,EAChBC,WAAmB,KAEnBR,gBAAgB,CAACO,KAAK,EAAEC,WAAW,CAAC,CAACiB,UAA2B;;AAElE;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,0BAA0B,GAAG,CACxCnB,KAAgB,EAChBC,WAAmB,KAEnBR,gBAAgB,CAACO,KAAK,EAAEC,WAAW,CAAC,CAACmB,cAAgC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/dashboard-core-plugins",
3
- "version": "0.22.3-embed-pandas.11+52f2c19",
3
+ "version": "0.23.0",
4
4
  "description": "Deephaven Dashboard Core Plugins",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -22,21 +22,23 @@
22
22
  "build:sass": "sass --embed-sources --load-path=../../node_modules ./src:./dist"
23
23
  },
24
24
  "dependencies": {
25
- "@deephaven/chart": "^0.22.3-embed-pandas.11+52f2c19",
26
- "@deephaven/components": "^0.22.3-embed-pandas.11+52f2c19",
27
- "@deephaven/console": "^0.22.3-embed-pandas.11+52f2c19",
28
- "@deephaven/dashboard": "^0.22.3-embed-pandas.11+52f2c19",
29
- "@deephaven/file-explorer": "^0.22.3-embed-pandas.11+52f2c19",
30
- "@deephaven/golden-layout": "^0.22.3-embed-pandas.11+52f2c19",
31
- "@deephaven/grid": "^0.22.3-embed-pandas.11+52f2c19",
32
- "@deephaven/icons": "^0.22.3-embed-pandas.11+52f2c19",
33
- "@deephaven/iris-grid": "^0.22.3-embed-pandas.11+52f2c19",
34
- "@deephaven/jsapi-shim": "^0.22.3-embed-pandas.11+52f2c19",
35
- "@deephaven/jsapi-utils": "^0.22.3-embed-pandas.11+52f2c19",
36
- "@deephaven/log": "^0.22.3-embed-pandas.11+52f2c19",
37
- "@deephaven/redux": "^0.22.3-embed-pandas.11+52f2c19",
38
- "@deephaven/storage": "^0.22.3-embed-pandas.11+52f2c19",
39
- "@deephaven/utils": "^0.22.3-embed-pandas.11+52f2c19",
25
+ "@deephaven/chart": "^0.23.0",
26
+ "@deephaven/components": "^0.23.0",
27
+ "@deephaven/console": "^0.23.0",
28
+ "@deephaven/dashboard": "^0.23.0",
29
+ "@deephaven/file-explorer": "^0.23.0",
30
+ "@deephaven/filters": "^0.23.0",
31
+ "@deephaven/golden-layout": "^0.23.0",
32
+ "@deephaven/grid": "^0.23.0",
33
+ "@deephaven/icons": "^0.23.0",
34
+ "@deephaven/iris-grid": "^0.23.0",
35
+ "@deephaven/jsapi-shim": "^0.23.0",
36
+ "@deephaven/jsapi-utils": "^0.23.0",
37
+ "@deephaven/log": "^0.23.0",
38
+ "@deephaven/react-hooks": "^0.23.0",
39
+ "@deephaven/redux": "^0.23.0",
40
+ "@deephaven/storage": "^0.23.0",
41
+ "@deephaven/utils": "^0.23.0",
40
42
  "@fortawesome/react-fontawesome": "^0.1.18",
41
43
  "classnames": "^2.3.1",
42
44
  "deep-equal": "^2.0.5",
@@ -58,8 +60,8 @@
58
60
  "react-redux": "^7.2.4"
59
61
  },
60
62
  "devDependencies": {
61
- "@deephaven/mocks": "^0.22.3-embed-pandas.11+52f2c19",
62
- "@deephaven/tsconfig": "^0.22.3-embed-pandas.11+52f2c19"
63
+ "@deephaven/mocks": "^0.23.0",
64
+ "@deephaven/tsconfig": "^0.23.0"
63
65
  },
64
66
  "files": [
65
67
  "dist"
@@ -67,5 +69,5 @@
67
69
  "publishConfig": {
68
70
  "access": "public"
69
71
  },
70
- "gitHead": "52f2c1902051cdeab9086d6331e223e29e0c6d27"
72
+ "gitHead": "94defbc26a5e0e2e3da3d71b5ae770c5bc8155e3"
71
73
  }