@deephaven/dashboard-core-plugins 0.5.2-matplotlib.2 → 0.6.1-fixed-deps.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist/ChartPlugin.js +25 -22
  2. package/dist/ChartPlugin.js.map +1 -1
  3. package/dist/ConsolePlugin.d.ts.map +1 -1
  4. package/dist/ConsolePlugin.js +130 -134
  5. package/dist/ConsolePlugin.js.map +1 -1
  6. package/dist/FilterPlugin.d.ts.map +1 -1
  7. package/dist/FilterPlugin.js +114 -116
  8. package/dist/FilterPlugin.js.map +1 -1
  9. package/dist/GridPlugin.js +29 -26
  10. package/dist/GridPlugin.js.map +1 -1
  11. package/dist/LinkerPlugin.js +7 -5
  12. package/dist/LinkerPlugin.js.map +1 -1
  13. package/dist/MarkdownPlugin.js +44 -45
  14. package/dist/MarkdownPlugin.js.map +1 -1
  15. package/dist/PandasPlugin.d.ts +5 -2
  16. package/dist/PandasPlugin.d.ts.map +1 -1
  17. package/dist/PandasPlugin.js +12 -12
  18. package/dist/PandasPlugin.js.map +1 -1
  19. package/dist/controls/ControlType.d.ts +1 -0
  20. package/dist/controls/ControlType.d.ts.map +1 -1
  21. package/dist/controls/ControlType.js +3 -5
  22. package/dist/controls/ControlType.js.map +1 -1
  23. package/dist/controls/dropdown-filter/DropdownFilter.d.ts +6 -0
  24. package/dist/controls/dropdown-filter/DropdownFilter.d.ts.map +1 -1
  25. package/dist/controls/dropdown-filter/DropdownFilter.js +356 -394
  26. package/dist/controls/dropdown-filter/DropdownFilter.js.map +1 -1
  27. package/dist/controls/input-filter/InputFilter.d.ts +6 -0
  28. package/dist/controls/input-filter/InputFilter.d.ts.map +1 -1
  29. package/dist/controls/input-filter/InputFilter.js +256 -270
  30. package/dist/controls/input-filter/InputFilter.js.map +1 -1
  31. package/dist/controls/markdown/MarkdownContainer.js +18 -56
  32. package/dist/controls/markdown/MarkdownContainer.js.map +1 -1
  33. package/dist/controls/markdown/MarkdownEditor.js +36 -75
  34. package/dist/controls/markdown/MarkdownEditor.js.map +1 -1
  35. package/dist/controls/markdown/MarkdownStartPage.js +93 -133
  36. package/dist/controls/markdown/MarkdownStartPage.js.map +1 -1
  37. package/dist/controls/markdown/MarkdownUtils.js +17 -32
  38. package/dist/controls/markdown/MarkdownUtils.js.map +1 -1
  39. package/dist/events/ChartEvent.js +1 -5
  40. package/dist/events/ChartEvent.js.map +1 -1
  41. package/dist/events/ConsoleEvent.js +1 -5
  42. package/dist/events/ConsoleEvent.js.map +1 -1
  43. package/dist/events/ControlEvent.js +1 -5
  44. package/dist/events/ControlEvent.js.map +1 -1
  45. package/dist/events/InputFilterEvent.d.ts +2 -0
  46. package/dist/events/InputFilterEvent.d.ts.map +1 -1
  47. package/dist/events/InputFilterEvent.js +3 -5
  48. package/dist/events/InputFilterEvent.js.map +1 -1
  49. package/dist/events/IrisGridEvent.js +1 -5
  50. package/dist/events/IrisGridEvent.js.map +1 -1
  51. package/dist/events/NotebookEvent.js +1 -5
  52. package/dist/events/NotebookEvent.js.map +1 -1
  53. package/dist/events/PQEvent.js +1 -5
  54. package/dist/events/PQEvent.js.map +1 -1
  55. package/dist/events/PandasEvent.js +1 -5
  56. package/dist/events/PandasEvent.js.map +1 -1
  57. package/dist/events/TabEvent.js +1 -5
  58. package/dist/events/TabEvent.js.map +1 -1
  59. package/dist/events/index.d.ts +0 -1
  60. package/dist/events/index.js +9 -10
  61. package/dist/events/index.js.map +1 -1
  62. package/dist/index.d.ts +0 -1
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/index.js +10 -11
  65. package/dist/index.js.map +1 -1
  66. package/dist/linker/Linker.d.ts +1 -1
  67. package/dist/linker/Linker.js +594 -606
  68. package/dist/linker/Linker.js.map +1 -1
  69. package/dist/linker/LinkerLink.js +92 -126
  70. package/dist/linker/LinkerLink.js.map +1 -1
  71. package/dist/linker/LinkerOverlayContent.js +162 -220
  72. package/dist/linker/LinkerOverlayContent.js.map +1 -1
  73. package/dist/linker/LinkerUtils.js +105 -114
  74. package/dist/linker/LinkerUtils.js.map +1 -1
  75. package/dist/panels/ChartColumnSelectorOverlay.js +19 -25
  76. package/dist/panels/ChartColumnSelectorOverlay.js.map +1 -1
  77. package/dist/panels/ChartFilterOverlay.js +18 -24
  78. package/dist/panels/ChartFilterOverlay.js.map +1 -1
  79. package/dist/panels/ChartPanel.d.ts +3 -0
  80. package/dist/panels/ChartPanel.d.ts.map +1 -1
  81. package/dist/panels/ChartPanel.js +839 -873
  82. package/dist/panels/ChartPanel.js.map +1 -1
  83. package/dist/panels/CommandHistoryPanel.d.ts.map +1 -1
  84. package/dist/panels/CommandHistoryPanel.js +160 -186
  85. package/dist/panels/CommandHistoryPanel.js.map +1 -1
  86. package/dist/panels/ConsolePanel.d.ts +1 -1
  87. package/dist/panels/ConsolePanel.d.ts.map +1 -1
  88. package/dist/panels/ConsolePanel.js +327 -374
  89. package/dist/panels/ConsolePanel.js.map +1 -1
  90. package/dist/panels/DropdownFilterPanel.d.ts +6 -0
  91. package/dist/panels/DropdownFilterPanel.d.ts.map +1 -1
  92. package/dist/panels/DropdownFilterPanel.js +537 -566
  93. package/dist/panels/DropdownFilterPanel.js.map +1 -1
  94. package/dist/panels/FileExplorerPanel.d.ts +6 -1
  95. package/dist/panels/FileExplorerPanel.d.ts.map +1 -1
  96. package/dist/panels/FileExplorerPanel.js +208 -210
  97. package/dist/panels/FileExplorerPanel.js.map +1 -1
  98. package/dist/panels/FilterSetManager.css +111 -0
  99. package/dist/panels/FilterSetManager.css.map +1 -0
  100. package/dist/panels/FilterSetManager.d.ts +66 -0
  101. package/dist/panels/FilterSetManager.d.ts.map +1 -0
  102. package/dist/panels/FilterSetManager.js +732 -0
  103. package/dist/panels/FilterSetManager.js.map +1 -0
  104. package/dist/panels/FilterSetManagerPanel.css +33 -0
  105. package/dist/panels/FilterSetManagerPanel.css.map +1 -0
  106. package/dist/panels/FilterSetManagerPanel.d.ts +69 -0
  107. package/dist/panels/FilterSetManagerPanel.d.ts.map +1 -0
  108. package/dist/panels/FilterSetManagerPanel.js +383 -0
  109. package/dist/panels/FilterSetManagerPanel.js.map +1 -0
  110. package/dist/panels/InputFilterPanel.d.ts +7 -0
  111. package/dist/panels/InputFilterPanel.d.ts.map +1 -1
  112. package/dist/panels/InputFilterPanel.js +198 -206
  113. package/dist/panels/InputFilterPanel.js.map +1 -1
  114. package/dist/panels/IrisGridPanel.d.ts +11 -3
  115. package/dist/panels/IrisGridPanel.d.ts.map +1 -1
  116. package/dist/panels/IrisGridPanel.js +779 -771
  117. package/dist/panels/IrisGridPanel.js.map +1 -1
  118. package/dist/panels/LogPanel.js +80 -116
  119. package/dist/panels/LogPanel.js.map +1 -1
  120. package/dist/panels/MarkdownPanel.js +165 -199
  121. package/dist/panels/MarkdownPanel.js.map +1 -1
  122. package/dist/panels/NotebookPanel.d.ts +3 -1
  123. package/dist/panels/NotebookPanel.d.ts.map +1 -1
  124. package/dist/panels/NotebookPanel.js +870 -862
  125. package/dist/panels/NotebookPanel.js.map +1 -1
  126. package/dist/panels/PandasPanel.js +56 -90
  127. package/dist/panels/PandasPanel.js.map +1 -1
  128. package/dist/panels/Panel.js +282 -313
  129. package/dist/panels/Panel.js.map +1 -1
  130. package/dist/panels/PanelContextMenu.js +107 -158
  131. package/dist/panels/PanelContextMenu.js.map +1 -1
  132. package/dist/panels/RenameDialog.js +144 -172
  133. package/dist/panels/RenameDialog.js.map +1 -1
  134. package/dist/panels/Shortcuts.js +1 -1
  135. package/dist/panels/Shortcuts.js.map +1 -1
  136. package/dist/panels/WidgetPanel.js +133 -163
  137. package/dist/panels/WidgetPanel.js.map +1 -1
  138. package/dist/panels/WidgetPanelTooltip.js +7 -5
  139. package/dist/panels/WidgetPanelTooltip.js.map +1 -1
  140. package/dist/panels/index.d.ts +1 -1
  141. package/dist/panels/index.js +16 -16
  142. package/dist/panels/index.js.map +1 -1
  143. package/dist/prop-types/CommonPropTypes.js +4 -8
  144. package/dist/prop-types/CommonPropTypes.js.map +1 -1
  145. package/dist/prop-types/UIPropTypes.js +6 -6
  146. package/dist/prop-types/UIPropTypes.js.map +1 -1
  147. package/dist/prop-types/index.js +2 -2
  148. package/dist/prop-types/index.js.map +1 -1
  149. package/dist/redux/actions.d.ts +1 -0
  150. package/dist/redux/actions.d.ts.map +1 -1
  151. package/dist/redux/actions.js +33 -54
  152. package/dist/redux/actions.js.map +1 -1
  153. package/dist/redux/index.js +6 -21
  154. package/dist/redux/index.js.map +1 -1
  155. package/dist/redux/reducers/index.js +2 -2
  156. package/dist/redux/reducers/index.js.map +1 -1
  157. package/dist/redux/reducers/sessionWrapper.js +1 -1
  158. package/dist/redux/reducers/sessionWrapper.js.map +1 -1
  159. package/dist/redux/selectors.d.ts +1 -0
  160. package/dist/redux/selectors.d.ts.map +1 -1
  161. package/dist/redux/selectors.js +22 -18
  162. package/dist/redux/selectors.js.map +1 -1
  163. package/dist/tsconfig.tsbuildinfo +1 -1
  164. package/package.json +27 -54
  165. package/dist/MatPlotLibPlugin.d.ts +0 -5
  166. package/dist/MatPlotLibPlugin.d.ts.map +0 -1
  167. package/dist/MatPlotLibPlugin.js +0 -45
  168. package/dist/MatPlotLibPlugin.js.map +0 -1
  169. package/dist/events/MatPlotLibEvent.d.ts +0 -5
  170. package/dist/events/MatPlotLibEvent.d.ts.map +0 -1
  171. package/dist/events/MatPlotLibEvent.js +0 -12
  172. package/dist/events/MatPlotLibEvent.js.map +0 -1
  173. package/dist/panels/MatPlotLibPanel.d.ts +0 -22
  174. package/dist/panels/MatPlotLibPanel.d.ts.map +0 -1
  175. package/dist/panels/MatPlotLibPanel.js +0 -123
  176. package/dist/panels/MatPlotLibPanel.js.map +0 -1
@@ -1,48 +1,34 @@
1
1
  import deepEqual from 'deep-equal';
2
2
  import { updateDashboardData } from '@deephaven/dashboard';
3
- import { getLinksForDashboard } from './selectors';
3
+ import { getLinksForDashboard } from "./selectors.js";
4
4
  /**
5
5
  * Set the session wrapper for the dashboard specified
6
6
  * @param {string} id The ID of the dashboard to set the session for
7
7
  * @param {SessionWrapper} sessionWrapper The session wrapper object to set for the dashboard
8
8
  */
9
9
 
10
- export var setDashboardSessionWrapper = function setDashboardSessionWrapper(id, sessionWrapper) {
11
- return function (dispatch) {
12
- return dispatch(updateDashboardData(id, {
13
- sessionWrapper: sessionWrapper
14
- }));
15
- };
16
- };
10
+ export var setDashboardSessionWrapper = (id, sessionWrapper) => dispatch => dispatch(updateDashboardData(id, {
11
+ sessionWrapper
12
+ }));
17
13
  /**
18
14
  * Set the links for a given dashboard
19
15
  * @param {string} id The ID of the dashboard to set the links for
20
16
  * @param {Link[]} links The links to set
21
17
  */
22
18
 
23
- export var setDashboardLinks = function setDashboardLinks(id, links) {
24
- return function (dispatch) {
25
- return dispatch(updateDashboardData(id, {
26
- links: links
27
- }));
28
- };
29
- };
19
+ export var setDashboardLinks = (id, links) => dispatch => dispatch(updateDashboardData(id, {
20
+ links
21
+ }));
30
22
  /**
31
23
  * Add links to the existing links in a dashboard. Filters out any duplicate links.
32
24
  * @param {string} id The ID of the dashboard to add links to
33
25
  * @param {Link[]} newLinks The new links to add
34
26
  */
35
27
 
36
- export var addDashboardLinks = function addDashboardLinks(id, newLinks) {
37
- return function (dispatch, getState) {
38
- var links = getLinksForDashboard(getState(), id);
39
- var filtered = newLinks.filter(function (newLink) {
40
- return links.findIndex(function (link) {
41
- return deepEqual(link.start, newLink.start) && deepEqual(link.end, newLink.end);
42
- }) < 0;
43
- });
44
- return dispatch(setDashboardLinks(id, links.concat(filtered)));
45
- };
28
+ export var addDashboardLinks = (id, newLinks) => (dispatch, getState) => {
29
+ var links = getLinksForDashboard(getState(), id);
30
+ var filtered = newLinks.filter(newLink => links.findIndex(link => deepEqual(link.start, newLink.start) && deepEqual(link.end, newLink.end)) < 0);
31
+ return dispatch(setDashboardLinks(id, links.concat(filtered)));
46
32
  };
47
33
  /**
48
34
  * Delete links from a dashboard
@@ -50,14 +36,10 @@ export var addDashboardLinks = function addDashboardLinks(id, newLinks) {
50
36
  * @param {string[]} linkIds The link IDs to delete
51
37
  */
52
38
 
53
- export var deleteDashboardLinks = function deleteDashboardLinks(id, linkIds) {
54
- return function (dispatch, getState) {
55
- var links = getLinksForDashboard(getState(), id);
56
- var newLinks = links.filter(function (link) {
57
- return !linkIds.includes(link.id);
58
- });
59
- return dispatch(setDashboardLinks(id, newLinks));
60
- };
39
+ export var deleteDashboardLinks = (id, linkIds) => (dispatch, getState) => {
40
+ var links = getLinksForDashboard(getState(), id);
41
+ var newLinks = links.filter(link => !linkIds.includes(link.id));
42
+ return dispatch(setDashboardLinks(id, newLinks));
61
43
  };
62
44
  /**
63
45
  * Set the isolated linker panel ID for a dashboard
@@ -65,37 +47,34 @@ export var deleteDashboardLinks = function deleteDashboardLinks(id, linkIds) {
65
47
  * @param {string|undefined} isolatedLinkerPanelId The isolated panel ID, or undefined to unset
66
48
  */
67
49
 
68
- export var setDashboardIsolatedLinkerPanelId = function setDashboardIsolatedLinkerPanelId(id, isolatedLinkerPanelId) {
69
- return function (dispatch) {
70
- return dispatch(updateDashboardData(id, {
71
- isolatedLinkerPanelId: isolatedLinkerPanelId
72
- }));
73
- };
74
- };
50
+ export var setDashboardIsolatedLinkerPanelId = (id, isolatedLinkerPanelId) => dispatch => dispatch(updateDashboardData(id, {
51
+ isolatedLinkerPanelId
52
+ }));
75
53
  /**
76
54
  * Set the column selection validator for a dashboard
77
55
  * @param {string} id The ID of the dashboard to set the column selection validator on
78
56
  * @param {ColumnSelectionValidator|undefined} columnSelectionValidator The column selection validator to set
79
57
  */
80
58
 
81
- export var setDashboardColumnSelectionValidator = function setDashboardColumnSelectionValidator(id, columnSelectionValidator) {
82
- return function (dispatch) {
83
- return dispatch(updateDashboardData(id, {
84
- columnSelectionValidator: columnSelectionValidator
85
- }));
86
- };
87
- };
59
+ export var setDashboardColumnSelectionValidator = (id, columnSelectionValidator) => dispatch => dispatch(updateDashboardData(id, {
60
+ columnSelectionValidator
61
+ }));
88
62
  /**
89
63
  * Set the console settings for a dashboard
90
64
  * @param {string} id The ID of the dashboard to set the console settings on
91
65
  * @param {ConsoleSettings} consoleSettings The console settings to set for the dashboard
92
66
  */
93
67
 
94
- export var setDashboardConsoleSettings = function setDashboardConsoleSettings(id, consoleSettings) {
95
- return function (dispatch) {
96
- return dispatch(updateDashboardData(id, {
97
- consoleSettings: consoleSettings
98
- }));
99
- };
100
- };
68
+ export var setDashboardConsoleSettings = (id, consoleSettings) => dispatch => dispatch(updateDashboardData(id, {
69
+ consoleSettings
70
+ }));
71
+ /**
72
+ * Set the filter sets for a specific dashboard
73
+ * @param {string} id The ID of the dashboard to set the filter sets for
74
+ * @param {FilterSet[]} filterSets The filter sets to set
75
+ */
76
+
77
+ export var setDashboardFilterSets = (id, filterSets) => dispatch => dispatch(updateDashboardData(id, {
78
+ filterSets
79
+ }));
101
80
  //# sourceMappingURL=actions.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/redux/actions.js"],"names":["deepEqual","updateDashboardData","getLinksForDashboard","setDashboardSessionWrapper","id","sessionWrapper","dispatch","setDashboardLinks","links","addDashboardLinks","newLinks","getState","filtered","filter","newLink","findIndex","link","start","end","concat","deleteDashboardLinks","linkIds","includes","setDashboardIsolatedLinkerPanelId","isolatedLinkerPanelId","setDashboardColumnSelectionValidator","columnSelectionValidator","setDashboardConsoleSettings","consoleSettings"],"mappings":"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","sourcesContent":["import deepEqual from 'deep-equal';\nimport { updateDashboardData } from '@deephaven/dashboard';\nimport { getLinksForDashboard } from './selectors';\n\n/**\n * Set the session wrapper for the dashboard specified\n * @param {string} id The ID of the dashboard to set the session for\n * @param {SessionWrapper} sessionWrapper The session wrapper object to set for the dashboard\n */\nexport const setDashboardSessionWrapper = (id, sessionWrapper) => dispatch =>\n dispatch(updateDashboardData(id, { sessionWrapper }));\n\n/**\n * Set the links for a given dashboard\n * @param {string} id The ID of the dashboard to set the links for\n * @param {Link[]} links The links to set\n */\nexport const setDashboardLinks = (id, links) => 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 {string} id The ID of the dashboard to add links to\n * @param {Link[]} newLinks The new links to add\n */\nexport const addDashboardLinks = (id, newLinks) => (dispatch, getState) => {\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 {string} id The ID of the dashboard to delete links from\n * @param {string[]} linkIds The link IDs to delete\n */\nexport const deleteDashboardLinks = (id, linkIds) => (dispatch, getState) => {\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 {string} id The ID of the dashboard to set the isolated linker panel ID in\n * @param {string|undefined} isolatedLinkerPanelId The isolated panel ID, or undefined to unset\n */\nexport const setDashboardIsolatedLinkerPanelId = (\n id,\n isolatedLinkerPanelId\n) => dispatch => dispatch(updateDashboardData(id, { isolatedLinkerPanelId }));\n\n/**\n * Set the column selection validator for a dashboard\n * @param {string} id The ID of the dashboard to set the column selection validator on\n * @param {ColumnSelectionValidator|undefined} columnSelectionValidator The column selection validator to set\n */\nexport const setDashboardColumnSelectionValidator = (\n id,\n columnSelectionValidator\n) => dispatch =>\n dispatch(updateDashboardData(id, { columnSelectionValidator }));\n\n/**\n * Set the console settings for a dashboard\n * @param {string} id The ID of the dashboard to set the console settings on\n * @param {ConsoleSettings} consoleSettings The console settings to set for the dashboard\n */\nexport const setDashboardConsoleSettings = (id, consoleSettings) => dispatch =>\n dispatch(updateDashboardData(id, { consoleSettings }));\n"],"file":"actions.js"}
1
+ {"version":3,"sources":["../../src/redux/actions.js"],"names":["deepEqual","updateDashboardData","getLinksForDashboard","setDashboardSessionWrapper","id","sessionWrapper","dispatch","setDashboardLinks","links","addDashboardLinks","newLinks","getState","filtered","filter","newLink","findIndex","link","start","end","concat","deleteDashboardLinks","linkIds","includes","setDashboardIsolatedLinkerPanelId","isolatedLinkerPanelId","setDashboardColumnSelectionValidator","columnSelectionValidator","setDashboardConsoleSettings","consoleSettings","setDashboardFilterSets","filterSets"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,SAASC,mBAAT,QAAoC,sBAApC;SACSC,oB;AAET;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,0BAA0B,GAAG,CAACC,EAAD,EAAKC,cAAL,KAAwBC,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;AAAEC,EAAAA;AAAF,CAAL,CAApB,CADH;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAME,iBAAiB,GAAG,CAACH,EAAD,EAAKI,KAAL,KAAeF,QAAQ,IACtDA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;AAAEI,EAAAA;AAAF,CAAL,CAApB,CADH;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,iBAAiB,GAAG,CAACL,EAAD,EAAKM,QAAL,KAAkB,CAACJ,QAAD,EAAWK,QAAX,KAAwB;AACzE,MAAMH,KAAK,GAAGN,oBAAoB,CAACS,QAAQ,EAAT,EAAaP,EAAb,CAAlC;AACA,MAAMQ,QAAQ,GAAGF,QAAQ,CAACG,MAAT,CACfC,OAAO,IACLN,KAAK,CAACO,SAAN,CACEC,IAAI,IACFhB,SAAS,CAACgB,IAAI,CAACC,KAAN,EAAaH,OAAO,CAACG,KAArB,CAAT,IACAjB,SAAS,CAACgB,IAAI,CAACE,GAAN,EAAWJ,OAAO,CAACI,GAAnB,CAHb,IAII,CANS,CAAjB;AAQA,SAAOZ,QAAQ,CAACC,iBAAiB,CAACH,EAAD,EAAKI,KAAK,CAACW,MAAN,CAAaP,QAAb,CAAL,CAAlB,CAAf;AACD,CAXM;AAaP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMQ,oBAAoB,GAAG,CAAChB,EAAD,EAAKiB,OAAL,KAAiB,CAACf,QAAD,EAAWK,QAAX,KAAwB;AAC3E,MAAMH,KAAK,GAAGN,oBAAoB,CAACS,QAAQ,EAAT,EAAaP,EAAb,CAAlC;AACA,MAAMM,QAAQ,GAAGF,KAAK,CAACK,MAAN,CAAaG,IAAI,IAAI,CAACK,OAAO,CAACC,QAAR,CAAiBN,IAAI,CAACZ,EAAtB,CAAtB,CAAjB;AACA,SAAOE,QAAQ,CAACC,iBAAiB,CAACH,EAAD,EAAKM,QAAL,CAAlB,CAAf;AACD,CAJM;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMa,iCAAiC,GAAG,CAC/CnB,EAD+C,EAE/CoB,qBAF+C,KAG5ClB,QAAQ,IAAIA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;AAAEoB,EAAAA;AAAF,CAAL,CAApB,CAHlB;AAKP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,oCAAoC,GAAG,CAClDrB,EADkD,EAElDsB,wBAFkD,KAG/CpB,QAAQ,IACXA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;AAAEsB,EAAAA;AAAF,CAAL,CAApB,CAJH;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,2BAA2B,GAAG,CAACvB,EAAD,EAAKwB,eAAL,KAAyBtB,QAAQ,IAC1EA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;AAAEwB,EAAAA;AAAF,CAAL,CAApB,CADH;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,sBAAsB,GAAG,CAACzB,EAAD,EAAK0B,UAAL,KAAoBxB,QAAQ,IAChEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;AAAE0B,EAAAA;AAAF,CAAL,CAApB,CADH","sourcesContent":["import deepEqual from 'deep-equal';\nimport { updateDashboardData } from '@deephaven/dashboard';\nimport { getLinksForDashboard } from './selectors';\n\n/**\n * Set the session wrapper for the dashboard specified\n * @param {string} id The ID of the dashboard to set the session for\n * @param {SessionWrapper} sessionWrapper The session wrapper object to set for the dashboard\n */\nexport const setDashboardSessionWrapper = (id, sessionWrapper) => dispatch =>\n dispatch(updateDashboardData(id, { sessionWrapper }));\n\n/**\n * Set the links for a given dashboard\n * @param {string} id The ID of the dashboard to set the links for\n * @param {Link[]} links The links to set\n */\nexport const setDashboardLinks = (id, links) => 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 {string} id The ID of the dashboard to add links to\n * @param {Link[]} newLinks The new links to add\n */\nexport const addDashboardLinks = (id, newLinks) => (dispatch, getState) => {\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 {string} id The ID of the dashboard to delete links from\n * @param {string[]} linkIds The link IDs to delete\n */\nexport const deleteDashboardLinks = (id, linkIds) => (dispatch, getState) => {\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 {string} id The ID of the dashboard to set the isolated linker panel ID in\n * @param {string|undefined} isolatedLinkerPanelId The isolated panel ID, or undefined to unset\n */\nexport const setDashboardIsolatedLinkerPanelId = (\n id,\n isolatedLinkerPanelId\n) => dispatch => dispatch(updateDashboardData(id, { isolatedLinkerPanelId }));\n\n/**\n * Set the column selection validator for a dashboard\n * @param {string} id The ID of the dashboard to set the column selection validator on\n * @param {ColumnSelectionValidator|undefined} columnSelectionValidator The column selection validator to set\n */\nexport const setDashboardColumnSelectionValidator = (\n id,\n columnSelectionValidator\n) => dispatch =>\n dispatch(updateDashboardData(id, { columnSelectionValidator }));\n\n/**\n * Set the console settings for a dashboard\n * @param {string} id The ID of the dashboard to set the console settings on\n * @param {ConsoleSettings} consoleSettings The console settings to set for the dashboard\n */\nexport const setDashboardConsoleSettings = (id, consoleSettings) => dispatch =>\n dispatch(updateDashboardData(id, { consoleSettings }));\n\n/**\n * Set the filter sets for a specific dashboard\n * @param {string} id The ID of the dashboard to set the filter sets for\n * @param {FilterSet[]} filterSets The filter sets to set\n */\nexport const setDashboardFilterSets = (id, filterSets) => dispatch =>\n dispatch(updateDashboardData(id, { filterSets }));\n"],"file":"actions.js"}
@@ -1,25 +1,10 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
-
3
- 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."); }
4
-
5
- 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); }
6
-
7
- 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; }
8
-
9
- 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; }
10
-
11
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
-
13
1
  import { reducerRegistry } from '@deephaven/redux';
14
- import reducers from './reducers';
15
- Object.entries(reducers).map(function (_ref) {
16
- var _ref2 = _slicedToArray(_ref, 2),
17
- name = _ref2[0],
18
- reducer = _ref2[1];
19
-
2
+ import reducers from "./reducers/index.js";
3
+ Object.entries(reducers).map((_ref) => {
4
+ var [name, reducer] = _ref;
20
5
  return reducerRegistry.register(name, reducer);
21
6
  });
22
- export * from './actions';
23
- export * from './actionTypes';
24
- export * from './selectors';
7
+ export * from "./actions.js";
8
+ export * from "./actionTypes.js";
9
+ export * from "./selectors.js";
25
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/redux/index.ts"],"names":["reducerRegistry","reducers","Object","entries","map","name","reducer","register"],"mappings":";;;;;;;;;;;;AAAA,SAASA,eAAT,QAAgC,kBAAhC;AACA,OAAOC,QAAP,MAAqB,YAArB;AAEAC,MAAM,CAACC,OAAP,CAAeF,QAAf,EAAyBG,GAAzB,CAA6B;AAAA;AAAA,MAAEC,IAAF;AAAA,MAAQC,OAAR;;AAAA,SAC3BN,eAAe,CAACO,QAAhB,CAAyBF,IAAzB,EAA+BC,OAA/B,CAD2B;AAAA,CAA7B;AAIA,cAAc,WAAd;AACA,cAAc,eAAd;AACA,cAAc,aAAd","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"],"file":"index.js"}
1
+ {"version":3,"sources":["../../src/redux/index.ts"],"names":["reducerRegistry","reducers","Object","entries","map","name","reducer","register"],"mappings":"AAAA,SAASA,eAAT,QAAgC,kBAAhC;OACOC,Q;AAEPC,MAAM,CAACC,OAAP,CAAeF,QAAf,EAAyBG,GAAzB,CAA6B;AAAA,MAAC,CAACC,IAAD,EAAOC,OAAP,CAAD;AAAA,SAC3BN,eAAe,CAACO,QAAhB,CAAyBF,IAAzB,EAA+BC,OAA/B,CAD2B;AAAA,CAA7B","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"],"file":"index.js"}
@@ -1,5 +1,5 @@
1
- import sessionWrapper from './sessionWrapper';
1
+ import sessionWrapper from "./sessionWrapper.js";
2
2
  export default {
3
- sessionWrapper: sessionWrapper
3
+ sessionWrapper
4
4
  };
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/index.js"],"names":["sessionWrapper"],"mappings":"AAAA,OAAOA,cAAP,MAA2B,kBAA3B;AAEA,eAAe;AAAEA,EAAAA,cAAc,EAAdA;AAAF,CAAf","sourcesContent":["import sessionWrapper from './sessionWrapper';\n\nexport default { sessionWrapper };\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/redux/reducers/index.js"],"names":["sessionWrapper"],"mappings":"OAAOA,c;AAEP,eAAe;AAAEA,EAAAA;AAAF,CAAf","sourcesContent":["import sessionWrapper from './sessionWrapper';\n\nexport default { sessionWrapper };\n"],"file":"index.js"}
@@ -2,6 +2,6 @@
2
2
  * Set the active session being used to communicate with the server.
3
3
  */
4
4
  import { replaceReducer } from '@deephaven/redux';
5
- import { SET_SESSION_WRAPPER } from '../actionTypes';
5
+ import { SET_SESSION_WRAPPER } from "../actionTypes.js";
6
6
  export default replaceReducer(SET_SESSION_WRAPPER, null);
7
7
  //# sourceMappingURL=sessionWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/sessionWrapper.js"],"names":["replaceReducer","SET_SESSION_WRAPPER"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,cAAT,QAA+B,kBAA/B;AACA,SAASC,mBAAT,QAAoC,gBAApC;AAEA,eAAeD,cAAc,CAACC,mBAAD,EAAsB,IAAtB,CAA7B","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"],"file":"sessionWrapper.js"}
1
+ {"version":3,"sources":["../../../src/redux/reducers/sessionWrapper.js"],"names":["replaceReducer","SET_SESSION_WRAPPER"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,cAAT,QAA+B,kBAA/B;SACSC,mB;AAET,eAAeD,cAAc,CAACC,mBAAD,EAAsB,IAAtB,CAA7B","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"],"file":"sessionWrapper.js"}
@@ -1,4 +1,5 @@
1
1
  export function getColumnsForDashboard(store: any, dashboardId: string): any[];
2
+ export function getFilterSetsForDashboard(store: any, dashboardId: string): any[];
2
3
  export function getInputFiltersForDashboard(store: any, dashboardId: string): any[];
3
4
  export function getTableMapForDashboard(store: any, dashboardId: string): Map<string, any>;
4
5
  export function getIsolatedLinkerPanelIdForDashboard(store: any, dashboardId: string): string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/redux/selectors.js"],"names":[],"mappings":"AAWO,gEAHI,MAAM,GACJ,KAAQ,CAGwC;AAOtD,qEAHI,MAAM,GACJ,KAAmB,CAG6B;AAOtD,iEAHI,MAAM,GACJ,IAAI,MAAM,MAAQ,CAG6B;AAOrD,8EAHI,MAAM,GACJ,MAAM,GAAC,SAAS,CAG+B;AAOrD,8DAHI,MAAM,GACJ,KAAM,CAGwC;AAOpD,iFAHI,MAAM,GACJ,MAAyB,SAAS,CAGgB;AAOxD,qEAHI,MAAM,GACJ,MAAgB,SAAS,CAGgB;AAQ/C,oEAHI,MAAM,GACJ,MAAe,SAAS,CAGgB"}
1
+ {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/redux/selectors.js"],"names":[],"mappings":"AAWO,gEAHI,MAAM,GACJ,KAAQ,CAGwC;AAQtD,mEAHI,MAAM,GACJ,KAAW,CAGwC;AAOzD,qEAHI,MAAM,GACJ,KAAmB,CAG6B;AAOtD,iEAHI,MAAM,GACJ,IAAI,MAAM,MAAQ,CAG6B;AAOrD,8EAHI,MAAM,GACJ,MAAM,GAAC,SAAS,CAG+B;AAOrD,8DAHI,MAAM,GACJ,KAAM,CAGwC;AAOpD,iFAHI,MAAM,GACJ,MAAyB,SAAS,CAGgB;AAOxD,qEAHI,MAAM,GACJ,MAAgB,SAAS,CAGgB;AAQ/C,oEAHI,MAAM,GACJ,MAAe,SAAS,CAGgB"}
@@ -7,21 +7,33 @@ var EMPTY_ARRAY = Object.freeze([]);
7
7
  * @returns {Column[]} All column objects found in all panels in this dashboard
8
8
  */
9
9
 
10
- export var getColumnsForDashboard = function getColumnsForDashboard(store, dashboardId) {
10
+ export var getColumnsForDashboard = (store, dashboardId) => {
11
11
  var _getDashboardData$col;
12
12
 
13
13
  return (_getDashboardData$col = getDashboardData(store, dashboardId).columns) !== null && _getDashboardData$col !== void 0 ? _getDashboardData$col : EMPTY_ARRAY;
14
14
  };
15
15
  /**
16
+ * Get the known filter sets for the dashboard.
16
17
  * @param {Store} store The redux store
17
18
  * @param {string} dashboardId The dashboard ID to get data for
18
- * @returns {FilterChangeEvent[]} The filters set on this dashboard
19
+ * @returns {FilterSet[]} The filter sets set on this dashboard
19
20
  */
20
21
 
21
- export var getInputFiltersForDashboard = function getInputFiltersForDashboard(store, dashboardId) {
22
+ export var getFilterSetsForDashboard = (store, dashboardId) => {
22
23
  var _getDashboardData$fil;
23
24
 
24
- return (_getDashboardData$fil = getDashboardData(store, dashboardId).filters) !== null && _getDashboardData$fil !== void 0 ? _getDashboardData$fil : EMPTY_ARRAY;
25
+ return (_getDashboardData$fil = getDashboardData(store, dashboardId).filterSets) !== null && _getDashboardData$fil !== void 0 ? _getDashboardData$fil : EMPTY_ARRAY;
26
+ };
27
+ /**
28
+ * @param {Store} store The redux store
29
+ * @param {string} dashboardId The dashboard ID to get data for
30
+ * @returns {FilterChangeEvent[]} The filters set on this dashboard
31
+ */
32
+
33
+ export var getInputFiltersForDashboard = (store, dashboardId) => {
34
+ var _getDashboardData$fil2;
35
+
36
+ return (_getDashboardData$fil2 = getDashboardData(store, dashboardId).filters) !== null && _getDashboardData$fil2 !== void 0 ? _getDashboardData$fil2 : EMPTY_ARRAY;
25
37
  };
26
38
  /**
27
39
  * @param {Store} store The redux store
@@ -29,7 +41,7 @@ export var getInputFiltersForDashboard = function getInputFiltersForDashboard(st
29
41
  * @returns {Map<string, Table>} Map from panel ID to the table used in that panel
30
42
  */
31
43
 
32
- export var getTableMapForDashboard = function getTableMapForDashboard(store, dashboardId) {
44
+ export var getTableMapForDashboard = (store, dashboardId) => {
33
45
  var _getDashboardData$tab;
34
46
 
35
47
  return (_getDashboardData$tab = getDashboardData(store, dashboardId).tableMap) !== null && _getDashboardData$tab !== void 0 ? _getDashboardData$tab : EMPTY_MAP;
@@ -40,16 +52,14 @@ export var getTableMapForDashboard = function getTableMapForDashboard(store, das
40
52
  * @returns {string|undefined} The panel ID that is isolated, undefined if none is isolated
41
53
  */
42
54
 
43
- export var getIsolatedLinkerPanelIdForDashboard = function getIsolatedLinkerPanelIdForDashboard(store, dashboardId) {
44
- return getDashboardData(store, dashboardId).isolatedLinkerPanelId;
45
- };
55
+ export var getIsolatedLinkerPanelIdForDashboard = (store, dashboardId) => getDashboardData(store, dashboardId).isolatedLinkerPanelId;
46
56
  /**
47
57
  * @param {Store} store The redux store
48
58
  * @param {string} dashboardId The dashboard ID to get the data from
49
59
  * @returns {Link[]} The links for the dashboard
50
60
  */
51
61
 
52
- export var getLinksForDashboard = function getLinksForDashboard(store, dashboardId) {
62
+ export var getLinksForDashboard = (store, dashboardId) => {
53
63
  var _getDashboardData$lin;
54
64
 
55
65
  return (_getDashboardData$lin = getDashboardData(store, dashboardId).links) !== null && _getDashboardData$lin !== void 0 ? _getDashboardData$lin : EMPTY_ARRAY;
@@ -60,18 +70,14 @@ export var getLinksForDashboard = function getLinksForDashboard(store, dashboard
60
70
  * @returns {ColumnSelectionValidator|undefined} Column selection validator active on a dashboard
61
71
  */
62
72
 
63
- export var getColumnSelectionValidatorForDashboard = function getColumnSelectionValidatorForDashboard(store, dashboardId) {
64
- return getDashboardData(store, dashboardId).columnSelectionValidator;
65
- };
73
+ export var getColumnSelectionValidatorForDashboard = (store, dashboardId) => getDashboardData(store, dashboardId).columnSelectionValidator;
66
74
  /**
67
75
  * @param {Store} store The redux store
68
76
  * @param {string} dashboardId The dashboard ID to get the console settings for
69
77
  * @returns {ConsoleSettings|undefined} Console settings for this dashboard
70
78
  */
71
79
 
72
- export var getDashboardConsoleSettings = function getDashboardConsoleSettings(store, dashboardId) {
73
- return getDashboardData(store, dashboardId).consoleSettings;
74
- };
80
+ export var getDashboardConsoleSettings = (store, dashboardId) => getDashboardData(store, dashboardId).consoleSettings;
75
81
  /**
76
82
  *
77
83
  * @param {Store} store The redux store
@@ -79,7 +85,5 @@ export var getDashboardConsoleSettings = function getDashboardConsoleSettings(st
79
85
  * @returns {SessionWrapper|undefined} The session wrapper for the dashboard
80
86
  */
81
87
 
82
- export var getDashboardSessionWrapper = function getDashboardSessionWrapper(store, dashboardId) {
83
- return getDashboardData(store, dashboardId).sessionWrapper;
84
- };
88
+ export var getDashboardSessionWrapper = (store, dashboardId) => getDashboardData(store, dashboardId).sessionWrapper;
85
89
  //# sourceMappingURL=selectors.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/redux/selectors.js"],"names":["getDashboardData","EMPTY_MAP","Map","EMPTY_ARRAY","Object","freeze","getColumnsForDashboard","store","dashboardId","columns","getInputFiltersForDashboard","filters","getTableMapForDashboard","tableMap","getIsolatedLinkerPanelIdForDashboard","isolatedLinkerPanelId","getLinksForDashboard","links","getColumnSelectionValidatorForDashboard","columnSelectionValidator","getDashboardConsoleSettings","consoleSettings","getDashboardSessionWrapper","sessionWrapper"],"mappings":"AAAA,SAASA,gBAAT,QAAiC,sBAAjC;AAEA,IAAMC,SAAS,GAAG,IAAIC,GAAJ,EAAlB;AAEA,IAAMC,WAAW,GAAGC,MAAM,CAACC,MAAP,CAAc,EAAd,CAApB;AAEA;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACC,KAAD,EAAQC,WAAR;AAAA;;AAAA,kCACpCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCC,OADD,yEACYN,WADZ;AAAA,CAA/B;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMO,2BAA2B,GAAG,SAA9BA,2BAA8B,CAACH,KAAD,EAAQC,WAAR;AAAA;;AAAA,kCACzCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCG,OADI,yEACOR,WADP;AAAA,CAApC;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMS,uBAAuB,GAAG,SAA1BA,uBAA0B,CAACL,KAAD,EAAQC,WAAR;AAAA;;AAAA,kCACrCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCK,QADA,yEACYZ,SADZ;AAAA,CAAhC;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMa,oCAAoC,GAAG,SAAvCA,oCAAuC,CAACP,KAAD,EAAQC,WAAR;AAAA,SAClDR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCO,qBADa;AAAA,CAA7C;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAuB,CAACT,KAAD,EAAQC,WAAR;AAAA;;AAAA,kCAClCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCS,KADH,yEACYd,WADZ;AAAA,CAA7B;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMe,uCAAuC,GAAG,SAA1CA,uCAA0C,CAACX,KAAD,EAAQC,WAAR;AAAA,SACrDR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCW,wBADgB;AAAA,CAAhD;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,2BAA2B,GAAG,SAA9BA,2BAA8B,CAACb,KAAD,EAAQC,WAAR;AAAA,SACzCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCa,eADI;AAAA,CAApC;AAGP;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,0BAA0B,GAAG,SAA7BA,0BAA6B,CAACf,KAAD,EAAQC,WAAR;AAAA,SACxCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCe,cADG;AAAA,CAAnC","sourcesContent":["import { getDashboardData } from '@deephaven/dashboard';\n\nconst EMPTY_MAP = new Map();\n\nconst EMPTY_ARRAY = Object.freeze([]);\n\n/**\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get data for\n * @returns {Column[]} All column objects found in all panels in this dashboard\n */\nexport const getColumnsForDashboard = (store, dashboardId) =>\n getDashboardData(store, dashboardId).columns ?? EMPTY_ARRAY;\n\n/**\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get data for\n * @returns {FilterChangeEvent[]} The filters set on this dashboard\n */\nexport const getInputFiltersForDashboard = (store, dashboardId) =>\n getDashboardData(store, dashboardId).filters ?? EMPTY_ARRAY;\n\n/**\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get data for\n * @returns {Map<string, Table>} Map from panel ID to the table used in that panel\n */\nexport const getTableMapForDashboard = (store, dashboardId) =>\n getDashboardData(store, dashboardId).tableMap ?? EMPTY_MAP;\n\n/**\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get the data for\n * @returns {string|undefined} The panel ID that is isolated, undefined if none is isolated\n */\nexport const getIsolatedLinkerPanelIdForDashboard = (store, dashboardId) =>\n getDashboardData(store, dashboardId).isolatedLinkerPanelId;\n\n/**\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get the data from\n * @returns {Link[]} The links for the dashboard\n */\nexport const getLinksForDashboard = (store, dashboardId) =>\n getDashboardData(store, dashboardId).links ?? EMPTY_ARRAY;\n\n/**\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get the column selection validators for\n * @returns {ColumnSelectionValidator|undefined} Column selection validator active on a dashboard\n */\nexport const getColumnSelectionValidatorForDashboard = (store, dashboardId) =>\n getDashboardData(store, dashboardId).columnSelectionValidator;\n\n/**\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get the console settings for\n * @returns {ConsoleSettings|undefined} Console settings for this dashboard\n */\nexport const getDashboardConsoleSettings = (store, dashboardId) =>\n getDashboardData(store, dashboardId).consoleSettings;\n\n/**\n *\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get the SessionWrapper for\n * @returns {SessionWrapper|undefined} The session wrapper for the dashboard\n */\nexport const getDashboardSessionWrapper = (store, dashboardId) =>\n getDashboardData(store, dashboardId).sessionWrapper;\n"],"file":"selectors.js"}
1
+ {"version":3,"sources":["../../src/redux/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","getDashboardSessionWrapper","sessionWrapper"],"mappings":"AAAA,SAASA,gBAAT,QAAiC,sBAAjC;AAEA,IAAMC,SAAS,GAAG,IAAIC,GAAJ,EAAlB;AAEA,IAAMC,WAAW,GAAGC,MAAM,CAACC,MAAP,CAAc,EAAd,CAApB;AAEA;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,sBAAsB,GAAG,CAACC,KAAD,EAAQC,WAAR;AAAA;;AAAA,kCACpCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCC,OADD,yEACYN,WADZ;AAAA,CAA/B;AAGP;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMO,yBAAyB,GAAG,CAACH,KAAD,EAAQC,WAAR;AAAA;;AAAA,kCACvCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCG,UADE,yEACYR,WADZ;AAAA,CAAlC;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMS,2BAA2B,GAAG,CAACL,KAAD,EAAQC,WAAR;AAAA;;AAAA,mCACzCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCK,OADI,2EACOV,WADP;AAAA,CAApC;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMW,uBAAuB,GAAG,CAACP,KAAD,EAAQC,WAAR;AAAA;;AAAA,kCACrCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCO,QADA,yEACYd,SADZ;AAAA,CAAhC;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMe,oCAAoC,GAAG,CAACT,KAAD,EAAQC,WAAR,KAClDR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCS,qBADhC;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,oBAAoB,GAAG,CAACX,KAAD,EAAQC,WAAR;AAAA;;AAAA,kCAClCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCW,KADH,yEACYhB,WADZ;AAAA,CAA7B;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMiB,uCAAuC,GAAG,CAACb,KAAD,EAAQC,WAAR,KACrDR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCa,wBADhC;AAGP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,2BAA2B,GAAG,CAACf,KAAD,EAAQC,WAAR,KACzCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCe,eADhC;AAGP;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,0BAA0B,GAAG,CAACjB,KAAD,EAAQC,WAAR,KACxCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCiB,cADhC","sourcesContent":["import { getDashboardData } from '@deephaven/dashboard';\n\nconst EMPTY_MAP = new Map();\n\nconst EMPTY_ARRAY = Object.freeze([]);\n\n/**\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get data for\n * @returns {Column[]} All column objects found in all panels in this dashboard\n */\nexport const getColumnsForDashboard = (store, dashboardId) =>\n getDashboardData(store, dashboardId).columns ?? EMPTY_ARRAY;\n\n/**\n * Get the known filter sets for the dashboard.\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get data for\n * @returns {FilterSet[]} The filter sets set on this dashboard\n */\nexport const getFilterSetsForDashboard = (store, dashboardId) =>\n getDashboardData(store, dashboardId).filterSets ?? EMPTY_ARRAY;\n\n/**\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get data for\n * @returns {FilterChangeEvent[]} The filters set on this dashboard\n */\nexport const getInputFiltersForDashboard = (store, dashboardId) =>\n getDashboardData(store, dashboardId).filters ?? EMPTY_ARRAY;\n\n/**\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get data for\n * @returns {Map<string, Table>} Map from panel ID to the table used in that panel\n */\nexport const getTableMapForDashboard = (store, dashboardId) =>\n getDashboardData(store, dashboardId).tableMap ?? EMPTY_MAP;\n\n/**\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get the data for\n * @returns {string|undefined} The panel ID that is isolated, undefined if none is isolated\n */\nexport const getIsolatedLinkerPanelIdForDashboard = (store, dashboardId) =>\n getDashboardData(store, dashboardId).isolatedLinkerPanelId;\n\n/**\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get the data from\n * @returns {Link[]} The links for the dashboard\n */\nexport const getLinksForDashboard = (store, dashboardId) =>\n getDashboardData(store, dashboardId).links ?? EMPTY_ARRAY;\n\n/**\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get the column selection validators for\n * @returns {ColumnSelectionValidator|undefined} Column selection validator active on a dashboard\n */\nexport const getColumnSelectionValidatorForDashboard = (store, dashboardId) =>\n getDashboardData(store, dashboardId).columnSelectionValidator;\n\n/**\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get the console settings for\n * @returns {ConsoleSettings|undefined} Console settings for this dashboard\n */\nexport const getDashboardConsoleSettings = (store, dashboardId) =>\n getDashboardData(store, dashboardId).consoleSettings;\n\n/**\n *\n * @param {Store} store The redux store\n * @param {string} dashboardId The dashboard ID to get the SessionWrapper for\n * @returns {SessionWrapper|undefined} The session wrapper for the dashboard\n */\nexport const getDashboardSessionWrapper = (store, dashboardId) =>\n getDashboardData(store, dashboardId).sessionWrapper;\n"],"file":"selectors.js"}