@ic3/reporting-api 9.0.1 → 9.1.1

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 (292) hide show
  1. package/README.md +1 -1
  2. package/dist/index.cjs +1906 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.ts +11284 -81
  5. package/dist/index.js +1782 -96
  6. package/dist/index.js.map +1 -1
  7. package/package.json +51 -19
  8. package/dist/ApiUtils.d.ts +0 -57
  9. package/dist/ApiUtils.js +0 -79
  10. package/dist/ApiUtils.js.map +0 -1
  11. package/dist/ILocalizationManager.d.ts +0 -3
  12. package/dist/ILocalizationManager.js +0 -3
  13. package/dist/ILocalizationManager.js.map +0 -1
  14. package/dist/IMigrationManager.d.ts +0 -4
  15. package/dist/IMigrationManager.js +0 -3
  16. package/dist/IMigrationManager.js.map +0 -1
  17. package/dist/INotification.d.ts +0 -84
  18. package/dist/INotification.js +0 -3
  19. package/dist/INotification.js.map +0 -1
  20. package/dist/IOnNewEventJsContext.d.ts +0 -85
  21. package/dist/IOnNewEventJsContext.js +0 -3
  22. package/dist/IOnNewEventJsContext.js.map +0 -1
  23. package/dist/IPluginDefinition.d.ts +0 -41
  24. package/dist/IPluginDefinition.js +0 -3
  25. package/dist/IPluginDefinition.js.map +0 -1
  26. package/dist/IRemotePluginName.d.ts +0 -5
  27. package/dist/IRemotePluginName.js +0 -3
  28. package/dist/IRemotePluginName.js.map +0 -1
  29. package/dist/IThemeManager.d.ts +0 -87
  30. package/dist/IThemeManager.js +0 -8
  31. package/dist/IThemeManager.js.map +0 -1
  32. package/dist/ITidyTableTransformation.d.ts +0 -44
  33. package/dist/ITidyTableTransformation.js +0 -3
  34. package/dist/ITidyTableTransformation.js.map +0 -1
  35. package/dist/ITidyTableTransformationManager.d.ts +0 -4
  36. package/dist/ITidyTableTransformationManager.js +0 -3
  37. package/dist/ITidyTableTransformationManager.js.map +0 -1
  38. package/dist/ITypes.d.ts +0 -43
  39. package/dist/ITypes.js +0 -38
  40. package/dist/ITypes.js.map +0 -1
  41. package/dist/IUserMenuOptionManager.d.ts +0 -13
  42. package/dist/IUserMenuOptionManager.js +0 -3
  43. package/dist/IUserMenuOptionManager.js.map +0 -1
  44. package/dist/IVersionedPluginDefinition.d.ts +0 -8
  45. package/dist/IVersionedPluginDefinition.js +0 -3
  46. package/dist/IVersionedPluginDefinition.js.map +0 -1
  47. package/dist/IWidgetDefaultsManager.d.ts +0 -4
  48. package/dist/IWidgetDefaultsManager.js +0 -3
  49. package/dist/IWidgetDefaultsManager.js.map +0 -1
  50. package/dist/IWidgetManager.d.ts +0 -7
  51. package/dist/IWidgetManager.js +0 -3
  52. package/dist/IWidgetManager.js.map +0 -1
  53. package/dist/IWidgetVariantManager.d.ts +0 -22
  54. package/dist/IWidgetVariantManager.js +0 -3
  55. package/dist/IWidgetVariantManager.js.map +0 -1
  56. package/dist/IcEvent.d.ts +0 -59
  57. package/dist/IcEvent.js +0 -27
  58. package/dist/IcEvent.js.map +0 -1
  59. package/dist/LazyTreeView.d.ts +0 -130
  60. package/dist/LazyTreeView.js +0 -3
  61. package/dist/LazyTreeView.js.map +0 -1
  62. package/dist/Logger.d.ts +0 -13
  63. package/dist/Logger.js +0 -3
  64. package/dist/Logger.js.map +0 -1
  65. package/dist/PublicAmCharts4Base.d.ts +0 -91
  66. package/dist/PublicAmCharts4Base.js +0 -3
  67. package/dist/PublicAmCharts4Base.js.map +0 -1
  68. package/dist/PublicAmchartsData.d.ts +0 -116
  69. package/dist/PublicAmchartsData.js +0 -170
  70. package/dist/PublicAmchartsData.js.map +0 -1
  71. package/dist/PublicCommon.d.ts +0 -1
  72. package/dist/PublicCommon.js +0 -3
  73. package/dist/PublicCommon.js.map +0 -1
  74. package/dist/PublicContext.d.ts +0 -389
  75. package/dist/PublicContext.js +0 -19
  76. package/dist/PublicContext.js.map +0 -1
  77. package/dist/PublicDateShortcutUtils.d.ts +0 -41
  78. package/dist/PublicDateShortcutUtils.js +0 -3
  79. package/dist/PublicDateShortcutUtils.js.map +0 -1
  80. package/dist/PublicI18n.d.ts +0 -8
  81. package/dist/PublicI18n.js +0 -3
  82. package/dist/PublicI18n.js.map +0 -1
  83. package/dist/PublicLayout.d.ts +0 -247
  84. package/dist/PublicLayout.js +0 -3
  85. package/dist/PublicLayout.js.map +0 -1
  86. package/dist/PublicTemplate.d.ts +0 -630
  87. package/dist/PublicTemplate.js +0 -33
  88. package/dist/PublicTemplate.js.map +0 -1
  89. package/dist/PublicTemplateExprForm.d.ts +0 -30
  90. package/dist/PublicTemplateExprForm.js +0 -3
  91. package/dist/PublicTemplateExprForm.js.map +0 -1
  92. package/dist/PublicTemplateForm.d.ts +0 -866
  93. package/dist/PublicTemplateForm.js +0 -122
  94. package/dist/PublicTemplateForm.js.map +0 -1
  95. package/dist/PublicTemplates.d.ts +0 -70
  96. package/dist/PublicTemplates.js +0 -3
  97. package/dist/PublicTemplates.js.map +0 -1
  98. package/dist/PublicTheme.d.ts +0 -1013
  99. package/dist/PublicTheme.js +0 -14
  100. package/dist/PublicTheme.js.map +0 -1
  101. package/dist/PublicTidyColumn.d.ts +0 -755
  102. package/dist/PublicTidyColumn.js +0 -100
  103. package/dist/PublicTidyColumn.js.map +0 -1
  104. package/dist/PublicTidyHistogram.d.ts +0 -81
  105. package/dist/PublicTidyHistogram.js +0 -105
  106. package/dist/PublicTidyHistogram.js.map +0 -1
  107. package/dist/PublicTidyMath.d.ts +0 -175
  108. package/dist/PublicTidyMath.js +0 -3
  109. package/dist/PublicTidyMath.js.map +0 -1
  110. package/dist/PublicTidyTable.d.ts +0 -534
  111. package/dist/PublicTidyTable.js +0 -3
  112. package/dist/PublicTidyTable.js.map +0 -1
  113. package/dist/PublicTidyTableInteractions.d.ts +0 -317
  114. package/dist/PublicTidyTableInteractions.js +0 -31
  115. package/dist/PublicTidyTableInteractions.js.map +0 -1
  116. package/dist/PublicTidyTableTypeGuards.d.ts +0 -6
  117. package/dist/PublicTidyTableTypeGuards.js +0 -36
  118. package/dist/PublicTidyTableTypeGuards.js.map +0 -1
  119. package/dist/PublicTidyTableTypes.d.ts +0 -480
  120. package/dist/PublicTidyTableTypes.js +0 -154
  121. package/dist/PublicTidyTableTypes.js.map +0 -1
  122. package/dist/PublicTidyTree.d.ts +0 -71
  123. package/dist/PublicTidyTree.js +0 -89
  124. package/dist/PublicTidyTree.js.map +0 -1
  125. package/dist/RemoteContainerUtils.d.ts +0 -9
  126. package/dist/RemoteContainerUtils.js +0 -49
  127. package/dist/RemoteContainerUtils.js.map +0 -1
  128. package/dist/ReportingVersion.d.ts +0 -9
  129. package/dist/ReportingVersion.js +0 -13
  130. package/dist/ReportingVersion.js.map +0 -1
  131. package/dist/ThemeAugmentation.d.ts +0 -35
  132. package/dist/ThemeAugmentation.js +0 -3
  133. package/dist/ThemeAugmentation.js.map +0 -1
  134. package/dist/theme/ThemeAIWidgetChatBot.d.ts +0 -49
  135. package/dist/theme/ThemeAIWidgetChatBot.js +0 -19
  136. package/dist/theme/ThemeAIWidgetChatBot.js.map +0 -1
  137. package/dist/theme/ThemeAlertDialog.d.ts +0 -13
  138. package/dist/theme/ThemeAlertDialog.js +0 -17
  139. package/dist/theme/ThemeAlertDialog.js.map +0 -1
  140. package/dist/theme/ThemeAmCharts4.d.ts +0 -1634
  141. package/dist/theme/ThemeAmCharts4.js +0 -84
  142. package/dist/theme/ThemeAmCharts4.js.map +0 -1
  143. package/dist/theme/ThemeApp.d.ts +0 -66
  144. package/dist/theme/ThemeApp.js +0 -64
  145. package/dist/theme/ThemeApp.js.map +0 -1
  146. package/dist/theme/ThemeAppMenuIcon.d.ts +0 -7
  147. package/dist/theme/ThemeAppMenuIcon.js +0 -8
  148. package/dist/theme/ThemeAppMenuIcon.js.map +0 -1
  149. package/dist/theme/ThemeBaseTable.d.ts +0 -122
  150. package/dist/theme/ThemeBaseTable.js +0 -10
  151. package/dist/theme/ThemeBaseTable.js.map +0 -1
  152. package/dist/theme/ThemeCodeMirror.d.ts +0 -4
  153. package/dist/theme/ThemeCodeMirror.js +0 -8
  154. package/dist/theme/ThemeCodeMirror.js.map +0 -1
  155. package/dist/theme/ThemeDatePicker.d.ts +0 -214
  156. package/dist/theme/ThemeDatePicker.js +0 -37
  157. package/dist/theme/ThemeDatePicker.js.map +0 -1
  158. package/dist/theme/ThemeEditorTopBar.d.ts +0 -39
  159. package/dist/theme/ThemeEditorTopBar.js +0 -43
  160. package/dist/theme/ThemeEditorTopBar.js.map +0 -1
  161. package/dist/theme/ThemeEmbeddedReport.d.ts +0 -37
  162. package/dist/theme/ThemeEmbeddedReport.js +0 -9
  163. package/dist/theme/ThemeEmbeddedReport.js.map +0 -1
  164. package/dist/theme/ThemeErrorRenderer.d.ts +0 -51
  165. package/dist/theme/ThemeErrorRenderer.js +0 -55
  166. package/dist/theme/ThemeErrorRenderer.js.map +0 -1
  167. package/dist/theme/ThemeFilter.d.ts +0 -28
  168. package/dist/theme/ThemeFilter.js +0 -3
  169. package/dist/theme/ThemeFilter.js.map +0 -1
  170. package/dist/theme/ThemeFilterAutocomplete.d.ts +0 -58
  171. package/dist/theme/ThemeFilterAutocomplete.js +0 -15
  172. package/dist/theme/ThemeFilterAutocomplete.js.map +0 -1
  173. package/dist/theme/ThemeFilterButtons.d.ts +0 -74
  174. package/dist/theme/ThemeFilterButtons.js +0 -23
  175. package/dist/theme/ThemeFilterButtons.js.map +0 -1
  176. package/dist/theme/ThemeFilterCheckboxRadio.d.ts +0 -52
  177. package/dist/theme/ThemeFilterCheckboxRadio.js +0 -23
  178. package/dist/theme/ThemeFilterCheckboxRadio.js.map +0 -1
  179. package/dist/theme/ThemeFilterPanel.d.ts +0 -243
  180. package/dist/theme/ThemeFilterPanel.js +0 -127
  181. package/dist/theme/ThemeFilterPanel.js.map +0 -1
  182. package/dist/theme/ThemeFilterPanelViewsMenu.d.ts +0 -8
  183. package/dist/theme/ThemeFilterPanelViewsMenu.js +0 -12
  184. package/dist/theme/ThemeFilterPanelViewsMenu.js.map +0 -1
  185. package/dist/theme/ThemeFilterSlider.d.ts +0 -92
  186. package/dist/theme/ThemeFilterSlider.js +0 -41
  187. package/dist/theme/ThemeFilterSlider.js.map +0 -1
  188. package/dist/theme/ThemeFilterSwitch.d.ts +0 -41
  189. package/dist/theme/ThemeFilterSwitch.js +0 -15
  190. package/dist/theme/ThemeFilterSwitch.js.map +0 -1
  191. package/dist/theme/ThemeFilterTree.d.ts +0 -112
  192. package/dist/theme/ThemeFilterTree.js +0 -23
  193. package/dist/theme/ThemeFilterTree.js.map +0 -1
  194. package/dist/theme/ThemeGlobal.d.ts +0 -4
  195. package/dist/theme/ThemeGlobal.js +0 -9
  196. package/dist/theme/ThemeGlobal.js.map +0 -1
  197. package/dist/theme/ThemeGoogle.d.ts +0 -132
  198. package/dist/theme/ThemeGoogle.js +0 -64
  199. package/dist/theme/ThemeGoogle.js.map +0 -1
  200. package/dist/theme/ThemeGoogleHeatMap.d.ts +0 -58
  201. package/dist/theme/ThemeGoogleHeatMap.js +0 -3
  202. package/dist/theme/ThemeGoogleHeatMap.js.map +0 -1
  203. package/dist/theme/ThemeGoogleKmlLayer.d.ts +0 -40
  204. package/dist/theme/ThemeGoogleKmlLayer.js +0 -3
  205. package/dist/theme/ThemeGoogleKmlLayer.js.map +0 -1
  206. package/dist/theme/ThemeGoogleMarker.d.ts +0 -147
  207. package/dist/theme/ThemeGoogleMarker.js +0 -3
  208. package/dist/theme/ThemeGoogleMarker.js.map +0 -1
  209. package/dist/theme/ThemeHomeCard.d.ts +0 -9
  210. package/dist/theme/ThemeHomeCard.js +0 -10
  211. package/dist/theme/ThemeHomeCard.js.map +0 -1
  212. package/dist/theme/ThemeHomeConsole.d.ts +0 -16
  213. package/dist/theme/ThemeHomeConsole.js +0 -20
  214. package/dist/theme/ThemeHomeConsole.js.map +0 -1
  215. package/dist/theme/ThemeHtmlBox.d.ts +0 -33
  216. package/dist/theme/ThemeHtmlBox.js +0 -11
  217. package/dist/theme/ThemeHtmlBox.js.map +0 -1
  218. package/dist/theme/ThemeIc3CustomDrilldownMenu.d.ts +0 -7
  219. package/dist/theme/ThemeIc3CustomDrilldownMenu.js +0 -11
  220. package/dist/theme/ThemeIc3CustomDrilldownMenu.js.map +0 -1
  221. package/dist/theme/ThemeIc3TableCell.d.ts +0 -10
  222. package/dist/theme/ThemeIc3TableCell.js +0 -7
  223. package/dist/theme/ThemeIc3TableCell.js.map +0 -1
  224. package/dist/theme/ThemeIc3TableCellDrilldown.d.ts +0 -12
  225. package/dist/theme/ThemeIc3TableCellDrilldown.js +0 -11
  226. package/dist/theme/ThemeIc3TableCellDrilldown.js.map +0 -1
  227. package/dist/theme/ThemeIc3WidgetBoxSpinner.d.ts +0 -15
  228. package/dist/theme/ThemeIc3WidgetBoxSpinner.js +0 -13
  229. package/dist/theme/ThemeIc3WidgetBoxSpinner.js.map +0 -1
  230. package/dist/theme/ThemeImage.d.ts +0 -30
  231. package/dist/theme/ThemeImage.js +0 -12
  232. package/dist/theme/ThemeImage.js.map +0 -1
  233. package/dist/theme/ThemeKpiBox.d.ts +0 -33
  234. package/dist/theme/ThemeKpiBox.js +0 -3
  235. package/dist/theme/ThemeKpiBox.js.map +0 -1
  236. package/dist/theme/ThemeKpiCard.d.ts +0 -133
  237. package/dist/theme/ThemeKpiCard.js +0 -19
  238. package/dist/theme/ThemeKpiCard.js.map +0 -1
  239. package/dist/theme/ThemeLayout.d.ts +0 -10
  240. package/dist/theme/ThemeLayout.js +0 -14
  241. package/dist/theme/ThemeLayout.js.map +0 -1
  242. package/dist/theme/ThemeLayoutPage.d.ts +0 -24
  243. package/dist/theme/ThemeLayoutPage.js +0 -28
  244. package/dist/theme/ThemeLayoutPage.js.map +0 -1
  245. package/dist/theme/ThemeLazyTreeClasses.d.ts +0 -29
  246. package/dist/theme/ThemeLazyTreeClasses.js +0 -31
  247. package/dist/theme/ThemeLazyTreeClasses.js.map +0 -1
  248. package/dist/theme/ThemeListCounter.d.ts +0 -15
  249. package/dist/theme/ThemeListCounter.js +0 -17
  250. package/dist/theme/ThemeListCounter.js.map +0 -1
  251. package/dist/theme/ThemeMarkdownText.d.ts +0 -27
  252. package/dist/theme/ThemeMarkdownText.js +0 -3
  253. package/dist/theme/ThemeMarkdownText.js.map +0 -1
  254. package/dist/theme/ThemePivotTable.d.ts +0 -93
  255. package/dist/theme/ThemePivotTable.js +0 -31
  256. package/dist/theme/ThemePivotTable.js.map +0 -1
  257. package/dist/theme/ThemePrintButton.d.ts +0 -29
  258. package/dist/theme/ThemePrintButton.js +0 -10
  259. package/dist/theme/ThemePrintButton.js.map +0 -1
  260. package/dist/theme/ThemeQueryBuilderNode.d.ts +0 -13
  261. package/dist/theme/ThemeQueryBuilderNode.js +0 -13
  262. package/dist/theme/ThemeQueryBuilderNode.js.map +0 -1
  263. package/dist/theme/ThemeRegexFilter.d.ts +0 -24
  264. package/dist/theme/ThemeRegexFilter.js +0 -26
  265. package/dist/theme/ThemeRegexFilter.js.map +0 -1
  266. package/dist/theme/ThemeRepetitionWidget.d.ts +0 -57
  267. package/dist/theme/ThemeRepetitionWidget.js +0 -3
  268. package/dist/theme/ThemeRepetitionWidget.js.map +0 -1
  269. package/dist/theme/ThemeReportAppBar.d.ts +0 -17
  270. package/dist/theme/ThemeReportAppBar.js +0 -21
  271. package/dist/theme/ThemeReportAppBar.js.map +0 -1
  272. package/dist/theme/ThemeReportAppLeftPanel.d.ts +0 -8
  273. package/dist/theme/ThemeReportAppLeftPanel.js +0 -12
  274. package/dist/theme/ThemeReportAppLeftPanel.js.map +0 -1
  275. package/dist/theme/ThemeSeparator.d.ts +0 -13
  276. package/dist/theme/ThemeSeparator.js +0 -3
  277. package/dist/theme/ThemeSeparator.js.map +0 -1
  278. package/dist/theme/ThemeSinglePanelFilter.d.ts +0 -18
  279. package/dist/theme/ThemeSinglePanelFilter.js +0 -3
  280. package/dist/theme/ThemeSinglePanelFilter.js.map +0 -1
  281. package/dist/theme/ThemeTable.d.ts +0 -160
  282. package/dist/theme/ThemeTable.js +0 -157
  283. package/dist/theme/ThemeTable.js.map +0 -1
  284. package/dist/theme/ThemeWidgetBox.d.ts +0 -164
  285. package/dist/theme/ThemeWidgetBox.js +0 -124
  286. package/dist/theme/ThemeWidgetBox.js.map +0 -1
  287. package/dist/theme/ThemeWidgetBoxContentMessage.d.ts +0 -11
  288. package/dist/theme/ThemeWidgetBoxContentMessage.js +0 -15
  289. package/dist/theme/ThemeWidgetBoxContentMessage.js.map +0 -1
  290. package/dist/theme/ThemeWidgetFilteredBy.d.ts +0 -5
  291. package/dist/theme/ThemeWidgetFilteredBy.js +0 -9
  292. package/dist/theme/ThemeWidgetFilteredBy.js.map +0 -1
@@ -1,317 +0,0 @@
1
- import { EntityItem, ITidyTableSelection, SelectionBehaviour, TidyRowFilter, WidgetTidySelectionOptions } from "./PublicTidyTableTypes";
2
- import { ITidyBaseColumn, ITidyColumn } from "./PublicTidyColumn";
3
- import { ILazyTreeViewLoader } from "./LazyTreeView";
4
- import { PublicIcEvent } from "./IcEvent";
5
- import { Theme } from "@mui/material/styles";
6
- import { MdxNodeIdentifier } from "./PublicTidyTable";
7
- import { AppNotification } from "./INotification";
8
- export declare enum SelectionMode {
9
- /**
10
- * User can only select one item.
11
- */
12
- SINGLE = "SINGLE",
13
- /**
14
- * User can select multiple items.
15
- */
16
- MULTIPLE = "MULTIPLE"
17
- }
18
- export declare enum TreeFireEventMode {
19
- ALL_SELECTED = "ALL_SELECTED",
20
- /**
21
- * if all children are selected, fire only the parent
22
- */
23
- COMPACT_ON_PARENT = "COMPACT_ON_PARENT"
24
- }
25
- export declare enum TidyPivotTableLikeNodeStatus {
26
- COLLAPSED = 0,
27
- EXPANDED = 1,
28
- NO_CHILDREN_OR_DRILLDOWN = 2,
29
- WITH_DRILLDOWN = 3,
30
- LOADING = 4
31
- }
32
- export type TidyEvent = MouseEvent | TouchEvent;
33
- export type IWidgetInteractionMode = "drilldown" | "selection";
34
- export interface ITidyTableInteractionSelection {
35
- /**
36
- * Sets the selection at the creation of the widget.
37
- */
38
- initializeSelection(isRangeSelection?: boolean): void;
39
- /**
40
- * Sets the selection at the creation of the widget: autocomplete-lazy.
41
- */
42
- initializeLazySelection(items?: EntityItem[]): void;
43
- /**
44
- * Returns true if the selection if empty. Returns false otherwise.
45
- */
46
- isSelectionEmpty(): boolean;
47
- firstIdxSelected(): number | undefined;
48
- /**
49
- * A row is selected if all cells in the row are selected
50
- * @param rowIdx the index of the row
51
- */
52
- isSelected(rowIdx: number): boolean;
53
- /**
54
- * Returns true if and only if the column is selected.
55
- * @param colIdx index of the column in the tidy table.
56
- * @param hierIdx optional. Use to check if the hierarchy index is selected. Leave undefined to check the column.
57
- */
58
- isColumnSelected(colIdx: number, hierIdx?: number): boolean;
59
- /**
60
- * Returns true if and only if the cell is selected.
61
- * @param rowIdx
62
- */
63
- isCellSelected(rowIdx: number, colIdx: number): boolean;
64
- /**
65
- * For the sankey diagram, a row is selected if connecting nodes are in the selection.
66
- * @param rowIdx the index of the row
67
- * @param column selection should be in this column
68
- */
69
- isSelectedSankey(rowIdx: number, column: ITidyColumn): boolean;
70
- /**
71
- * map function on selected rows
72
- */
73
- mapSelectedRows<T>(callback: (rowIdx: number) => T | null | undefined): T[];
74
- /**
75
- * Creates a new Column of size Table row count with the following values
76
- *
77
- * @param selectedItemValue if the row is selected
78
- * @param notSelectedItemValue if the row is not selected
79
- * @param noSelectionValue if defined an the selection is empty, all row values have this value
80
- */
81
- applySelectionToNewColumn<T>(selectedItemValue: T, notSelectedItemValue: T, noSelectionValue?: T): ITidyBaseColumn<T>;
82
- /**
83
- * Handles the row click event for the selection
84
- * @param rowIdx index of row clicked
85
- * @param event the mouse event of the click
86
- */
87
- handleClickSelection(rowIdx: number, event?: TidyEvent): void;
88
- /**
89
- * Handles the click event for the selection on a given column.
90
- *
91
- * If the column is not part of the selection columns of the widget nothing will happen
92
- *
93
- * @param column column index of the tidy table
94
- * @param event the mouse event of the click
95
- */
96
- handleColumnSelection(colIdx: number, event?: TidyEvent): void;
97
- /**
98
- * Handles the click event for the selection of a given cell
99
- *
100
- * If the columns is not part of the selection columns of the widget nothing will happen
101
- *
102
- * @param rowIdx row index of clicked cell in the tidy table
103
- * @param colIdx column index of clicked cell in the tidy table
104
- * @param event the mouse event of the click
105
- */
106
- handleCellSelection(rowIdx: number, colIdx: number, event?: TidyEvent): void;
107
- /**
108
- * Get the interaction mode:
109
- * undefined = no interactions in the widget,
110
- * selection = perform selection interaction,
111
- * drilldown = perform drilldown interaction.
112
- */
113
- getInteractionMode(): IWidgetInteractionMode | undefined;
114
- getColorOnSelection(theme: Theme, color: string | undefined, rowIdx: number): string | undefined;
115
- /**
116
- * Select multiple rows at once
117
- */
118
- handleMultipleRowSelection(rowIds: number[]): void;
119
- /**
120
- * Perform a row-selection click on multiple rows at the same time. Has similair CTRL functionality as
121
- * handleClickSelection(...). SHIFT is not supported.
122
- */
123
- handleMultipleRowSelectionClick(rowIds: number[], event?: TidyEvent): void;
124
- /**
125
- * Clear the selection and fire an empty event value. Note, this resets the
126
- * selection to the initial selection.
127
- */
128
- handleClearSelection(): void;
129
- /**
130
- * Resets the selection to his default/initial state.
131
- */
132
- handleToInitialSelection(): void;
133
- /**
134
- * Get the selection mode (single or multiple) of the interaction object.
135
- */
136
- getSelectionMode(): SelectionMode;
137
- /**
138
- * Set the selection mode of the interaction.
139
- * @param mode
140
- */
141
- setSelectionMode(mode: SelectionMode): void;
142
- /**
143
- * Set the selection behaviour for when the selection is empty.
144
- * @param behaviour
145
- */
146
- setSelectionEmptyBehaviour(behaviour: SelectionBehaviour): void;
147
- setSelectionAllBehaviour(behaviour: SelectionBehaviour): void;
148
- /**
149
- * If the selection is on a tree, this determines how the fired event is optimized for the
150
- * tree structure. Collapsed means that if all children are selected, we only use the parent. Children means
151
- * that we use leaves only. All means that we fire both parent and child nodes.
152
- * @param mode
153
- */
154
- setTreeFireEventMode(mode: TreeFireEventMode): void;
155
- setTreeCascade(value: boolean): void;
156
- /**
157
- * the selection will treat a click without ctr or shift as with a ctr key pressed (e.g. check boxes)
158
- */
159
- setNoKeyModifierAsCtrl(value?: boolean): void;
160
- /**
161
- * Set to true to enable selection on the interaction object.
162
- * @param enabled if true, the selection is enabled. If false, the interaction object does not respond to
163
- * methods setting the selection (e.g. click).
164
- */
165
- setSelectionActive(enabled?: boolean): void;
166
- /**
167
- * Returns true if the selection is activated, e.g. the interaction object responds to click and other selection
168
- * events.
169
- */
170
- isSelectionActive(): boolean;
171
- }
172
- export interface ITidyTableDrilldown {
173
- handleDrilldown(rowIdx: number, event: TidyEvent | undefined, stopDrillDownDepth?: number): void;
174
- hasDrilldown(): boolean;
175
- hasNodeDrilldown(nodeInfo: MdxNodeIdentifier, stopDrillDownDepth?: number): boolean;
176
- hasPivotLikeDrilldown(): boolean;
177
- }
178
- export interface ITidyTableInteractionEvent {
179
- /**
180
- * actionName if the action is bound to a channel, sends the events ( e.g. 'onClick' to the channel 'year' )
181
- *
182
- * If rowIdx is an empty array, [], fires a mdx empty set event -> ∅
183
- */
184
- fireEvent(actionName: string, column: ITidyColumn | ITidyColumn[] | undefined, rowIdx: number | number[]): void;
185
- fireClearEvent(actionName: string): void;
186
- /**
187
- * actionName if the action is bound to a channel, sends the emptySet event, ∅
188
- */
189
- fireEmptySetEvent(actionName: string): void;
190
- /**
191
- * actionName if the action is bound to a channel, send an Mdx Event (value,mdx)
192
- */
193
- fireMdxEvent(actionName: string, value: string, mdx: string): void;
194
- /**
195
- * returns the value of the event
196
- */
197
- getEventValue(actionName: string): PublicIcEvent | undefined;
198
- /**
199
- * returns true if the actionName in bound to a channel
200
- */
201
- firesEvent(actionName: string): boolean;
202
- /**
203
- * Returns a function that evaluates to true if and only if that row is selected.
204
- * Returns undefined if there is no selection.
205
- */
206
- getIsRowSelectedFilter(): TidyRowFilter | undefined;
207
- }
208
- export interface ITidyTableInteraction extends ITidyTableInteractionSelection, ITidyTableInteractionEvent, ITidyTableDrilldown {
209
- /**
210
- * Handles a row hit/click, doing a selection or a drilldown depending on the widget status
211
- *
212
- * The column(s) for the selection or the drilldown are based on the widget options/settings
213
- *
214
- * This does not fire any event. To fire an event, use fireEvent.
215
- *
216
- * @see fireEvent
217
- */
218
- handleRowHit(rowIdx: number, event: TidyEvent | undefined): void;
219
- /**
220
- * Handles a cell click in the tidy table.
221
- * @param rowIdx row index of the cell
222
- * @param colIdx column index of the cell
223
- * @param event mouse/touch event
224
- *
225
- * @see handleRowHit
226
- */
227
- handleCellHit(rowIdx: number, colIdx: number, event: TidyEvent | undefined): void;
228
- /**
229
- * Handles a column click in the tidy table.
230
- * @param colIdx index of clicked column in the tidy table
231
- * @param event mouse/touch event
232
- *
233
- * @see handleRowHit
234
- */
235
- handleColumnHit(colIdx: number, event: TidyEvent | undefined): void;
236
- /**
237
- * Handles a row hit for the sankey diagram. The sankey differs from normal selection because it makes a tuple,
238
- * not a set.
239
- */
240
- handleRowHitSankey(rowIdx: number, column: ITidyColumn, event: TidyEvent | undefined): void;
241
- /**
242
- * Collapsed / Expand on a column row (i.e. it's a tree)
243
- */
244
- toggleCollapse(column: ITidyColumn, rowIdx: number): void;
245
- /**
246
- * returns the collapse/expand state that has not yet been set by the end user (i.e. first time, on drilldowns..)
247
- */
248
- setCollapseUnsetFunction(collapseUnsetFunction?: (nodeInfo: MdxNodeIdentifier) => boolean): void;
249
- /**
250
- * Map a function to the visible rows only. Used in tree structures with expanded or collapsed items.
251
- * @param column column to map the values of
252
- * @param mapper function
253
- * @param inverse per default, all items are expanded. If inverse is true, all items are collapsed per default.
254
- */
255
- mapVisibleRows<T>(column: ITidyColumn, mapper: (index: number) => T, inverse?: boolean): T[];
256
- isCollapsed(column: ITidyColumn, rowIdx: number): boolean;
257
- /**
258
- * Is the node loading
259
- */
260
- isLoading(column: ITidyColumn, rowIdx: number): boolean;
261
- setSelectionColumns(columns: ITidyColumn[] | ((oldColumns: ITidyColumn[]) => ITidyColumn[])): void;
262
- /**
263
- * Change the default drilldown column.
264
- * @param column column to use for the drill-downs. Use undefined to reset to default.
265
- */
266
- setDrilldownColumn(column: ITidyColumn | undefined): void;
267
- /**
268
- * Pivot Type behavior ( nodes can collapse/expand + drilldown might return some values)
269
- *
270
- * pay attention that the query needs to set the flag, pivot table like (to insert data)
271
- */
272
- pivotTableLikeDrilldown(event: TidyEvent, column: ITidyColumn, rowIdx: number, stopDrillDownDepth?: number): void;
273
- pivotTableLikeDrilldownOnNode(event: TidyEvent, nodeInfo: MdxNodeIdentifier, stopDrillDownDepth?: number): void;
274
- pivotTableLikeNodeStatus(column: ITidyColumn, rowIdx: number, stopDrillDownDepth?: number): TidyPivotTableLikeNodeStatus;
275
- asLazyTreeViewLoader(column: ITidyColumn): ILazyTreeViewLoader;
276
- getCompactedSelectionNames(): string[] | undefined;
277
- /**
278
- * Returns true if the column is used for the row selection.
279
- */
280
- isSelectable(col: ITidyColumn): boolean;
281
- isHierarchyIdxSelectable(hierIndex: number): boolean;
282
- /**
283
- * Returns the rows of the items currently in the selection. Note, the item must be present in the current tidy
284
- * table.
285
- */
286
- getSelectedRows(): number[];
287
- setSortSelectionToColumnOrder(value: boolean): void;
288
- /**
289
- * Returns compacted selection if TreeFireEventMode === COMPACT_ON_PARENT. Else returns undefined.
290
- */
291
- getCompactedSelectionItems(): ITidyTableSelection[] | undefined;
292
- /**
293
- * Returns the widgets selection options.
294
- */
295
- getWidgetSelectionOptions(): WidgetTidySelectionOptions;
296
- /**
297
- * Returns the selection in the interaction object.
298
- */
299
- getSelectedItems(): ITidyTableSelection[];
300
- /**
301
- * Add an item to the interactions selection.
302
- */
303
- setSelection(items: ITidyTableSelection | ITidyTableSelection[]): void;
304
- /**
305
- * Use for publishing app notifications, e.g., print the report.
306
- */
307
- publishAppNotification(notification: AppNotification): void;
308
- /**
309
- * Get a column from the underlying tidy table.
310
- * @param columnIdx
311
- */
312
- getDrilldownColumn(columnIdx: number): ITidyColumn;
313
- /**
314
- * Return the selection behaviour when the selection is empty.
315
- */
316
- getEmptyMode(): SelectionBehaviour | undefined;
317
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TidyPivotTableLikeNodeStatus = exports.TreeFireEventMode = exports.SelectionMode = void 0;
4
- var SelectionMode;
5
- (function (SelectionMode) {
6
- /**
7
- * User can only select one item.
8
- */
9
- SelectionMode["SINGLE"] = "SINGLE";
10
- /**
11
- * User can select multiple items.
12
- */
13
- SelectionMode["MULTIPLE"] = "MULTIPLE";
14
- })(SelectionMode || (exports.SelectionMode = SelectionMode = {}));
15
- var TreeFireEventMode;
16
- (function (TreeFireEventMode) {
17
- TreeFireEventMode["ALL_SELECTED"] = "ALL_SELECTED";
18
- /**
19
- * if all children are selected, fire only the parent
20
- */
21
- TreeFireEventMode["COMPACT_ON_PARENT"] = "COMPACT_ON_PARENT";
22
- })(TreeFireEventMode || (exports.TreeFireEventMode = TreeFireEventMode = {}));
23
- var TidyPivotTableLikeNodeStatus;
24
- (function (TidyPivotTableLikeNodeStatus) {
25
- TidyPivotTableLikeNodeStatus[TidyPivotTableLikeNodeStatus["COLLAPSED"] = 0] = "COLLAPSED";
26
- TidyPivotTableLikeNodeStatus[TidyPivotTableLikeNodeStatus["EXPANDED"] = 1] = "EXPANDED";
27
- TidyPivotTableLikeNodeStatus[TidyPivotTableLikeNodeStatus["NO_CHILDREN_OR_DRILLDOWN"] = 2] = "NO_CHILDREN_OR_DRILLDOWN";
28
- TidyPivotTableLikeNodeStatus[TidyPivotTableLikeNodeStatus["WITH_DRILLDOWN"] = 3] = "WITH_DRILLDOWN";
29
- TidyPivotTableLikeNodeStatus[TidyPivotTableLikeNodeStatus["LOADING"] = 4] = "LOADING";
30
- })(TidyPivotTableLikeNodeStatus || (exports.TidyPivotTableLikeNodeStatus = TidyPivotTableLikeNodeStatus = {}));
31
- //# sourceMappingURL=PublicTidyTableInteractions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublicTidyTableInteractions.js","sourceRoot":"","sources":["../src/PublicTidyTableInteractions.ts"],"names":[],"mappings":";;;AAcA,IAAY,aAUX;AAVD,WAAY,aAAa;IACrB;;OAEG;IACH,kCAAiB,CAAA;IAEjB;;OAEG;IACH,sCAAqB,CAAA;AACzB,CAAC,EAVW,aAAa,6BAAb,aAAa,QAUxB;AAED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IACzB,kDAA6B,CAAA;IAC7B;;OAEG;IACH,4DAAuC,CAAA;AAC3C,CAAC,EANW,iBAAiB,iCAAjB,iBAAiB,QAM5B;AAGD,IAAY,4BAMX;AAND,WAAY,4BAA4B;IACpC,yFAAS,CAAA;IACT,uFAAQ,CAAA;IACR,uHAAwB,CAAA;IACxB,mGAAc,CAAA;IACd,qFAAO,CAAA;AACX,CAAC,EANW,4BAA4B,4CAA5B,4BAA4B,QAMvC"}
@@ -1,6 +0,0 @@
1
- import { TidyTableColumnIdentifier, TidyTableColumnSelector, TidyTableMappingColumnSelectorOptions, TidyTableRoleSelector } from "./PublicTidyTableTypes";
2
- export declare function isTidyTableMappingColumnSelectorOptions(v: unknown): v is TidyTableMappingColumnSelectorOptions;
3
- export declare function isTidyTableColumnIdentifier(v: any): v is TidyTableColumnIdentifier;
4
- export declare function isTidyTableRoleSelector(v: any): v is TidyTableRoleSelector;
5
- export declare function isTidyTableColumnSelector(v: unknown): v is TidyTableColumnSelector;
6
- export declare function isTidyTableColumnsChooser(columnChooserValue: unknown): columnChooserValue is (TidyTableColumnSelector | TidyTableColumnSelector[]);
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isTidyTableMappingColumnSelectorOptions = isTidyTableMappingColumnSelectorOptions;
4
- exports.isTidyTableColumnIdentifier = isTidyTableColumnIdentifier;
5
- exports.isTidyTableRoleSelector = isTidyTableRoleSelector;
6
- exports.isTidyTableColumnSelector = isTidyTableColumnSelector;
7
- exports.isTidyTableColumnsChooser = isTidyTableColumnsChooser;
8
- function isTidyTableMappingColumnSelectorOptions(v) {
9
- return typeof v === "string" && v.startsWith('@IC3_');
10
- }
11
- function isTidyTableColumnIdentifier(v) {
12
- return typeof v === "object" && v != null && typeof v["name"] === "string";
13
- }
14
- function isTidyTableRoleSelector(v) {
15
- return typeof v === "object" && v != null && typeof v["role"] === "string";
16
- }
17
- function isTidyTableColumnSelector(v) {
18
- return isTidyTableMappingColumnSelectorOptions(v)
19
- || isTidyTableColumnIdentifier(v)
20
- || isTidyTableRoleSelector(v);
21
- }
22
- function isTidyTableColumnsChooser(columnChooserValue) {
23
- // Type guarding
24
- if (Array.isArray(columnChooserValue)) {
25
- if (columnChooserValue.every(v => isTidyTableColumnSelector(v))) {
26
- return true;
27
- }
28
- }
29
- else {
30
- if (isTidyTableColumnSelector(columnChooserValue)) {
31
- return true;
32
- }
33
- }
34
- return false;
35
- }
36
- //# sourceMappingURL=PublicTidyTableTypeGuards.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublicTidyTableTypeGuards.js","sourceRoot":"","sources":["../src/PublicTidyTableTypeGuards.ts"],"names":[],"mappings":";;AAQA,0FAEC;AAED,kEAEC;AAED,0DAEC;AAED,8DAKC;AAED,8DAYC;AA/BD,SAAgB,uCAAuC,CAAC,CAAU;IAC9D,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,2BAA2B,CAAC,CAAM;IAC9C,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,IAAI,IAAI,IAAI,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,QAAQ,CAAC;AAC/E,CAAC;AAED,SAAgB,uBAAuB,CAAC,CAAM;IAC1C,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,IAAI,IAAI,IAAI,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,QAAQ,CAAC;AAC/E,CAAC;AAED,SAAgB,yBAAyB,CAAC,CAAU;IAChD,OAAO,uCAAuC,CAAC,CAAC,CAAC;WAC1C,2BAA2B,CAAC,CAAC,CAAC;WAC9B,uBAAuB,CAAC,CAAC,CAAC,CAC5B;AACT,CAAC;AAED,SAAgB,yBAAyB,CAAC,kBAA2B;IACjE,gBAAgB;IAChB,IAAI,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACpC,IAAI,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9D,OAAO,IAAI,CAAC;QAChB,CAAC;IACL,CAAC;SAAM,CAAC;QACJ,IAAI,yBAAyB,CAAC,kBAAkB,CAAC,EAAE,CAAC;YAChD,OAAO,IAAI,CAAC;QAChB,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC"}