@ic3/reporting-api 9.0.0 → 9.1.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 (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 +11280 -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,534 +0,0 @@
1
- import { AxisCoordinate, ChartTemplateDataMapping, GroupRowIndices, IAmCharts4Data, IAmCharts4DataTreeMap, ITotalRowValues, SortingType, TidyColumnIndex, TidyColumnsType, TidyTableColumnIdentifier, TidyTableColumnSelector } from "./PublicTidyTableTypes";
2
- import { AllowedColumnType, ITidyBaseColumn, ITidyBaseColumnReadonly, ITidyCharacterColumn, ITidyColumn, ITidyNumericColumn, ITidyUnknownColumn } from "./PublicTidyColumn";
3
- import { TidyTree } from "./PublicTidyTree";
4
- import { TidyHistogramOptions } from "./PublicTidyHistogram";
5
- import { IPublicContext } from "./PublicContext";
6
- import { ITidyMath } from "./PublicTidyMath";
7
- /**
8
- * Identifies a Mdx node in a query.
9
- *
10
- * For queries with more than 2 axis multiple rows might point to the same NodeIdentifier
11
- */
12
- export interface MdxNodeIdentifier {
13
- readonly uid: string;
14
- readonly axis: number;
15
- readonly hierarchyIdx: number;
16
- readonly tupleUNs: ReadonlyArray<string>;
17
- readonly captions?: ReadonlyArray<string>;
18
- readonly tupleIdx: number;
19
- readonly levelDepthR?: number;
20
- }
21
- /**
22
- * Result of a MDX, SQL, ... query with additional transformations (e.g., colors, sizes, changing MDX names,...).
23
- * A tidy table has axes and measures. The axes describe the coordinates for each measure.
24
- * The columns of a tidy table are thus structured as follows: columns = axes + measures.
25
- *
26
- * For example:
27
- * axes | measures
28
- * Brand | Year | Size (m)
29
- * Volvo | 2018 | 234
30
- * MBW | 2019 | 456
31
- *
32
- * In this chart the Brand and Year columns are axes and Size (m) is the measure.
33
- * The columns of this table are Brand, Year, Size (m).
34
- */
35
- export interface ITidyTable {
36
- /**
37
- * Get the query uid
38
- */
39
- getQueryUid(): number;
40
- isSameDimensionality(other: ITidyTable): boolean;
41
- asPivotTableForExcel(nullValue: any, rows: number[] | undefined): ITidyColumn[];
42
- /**
43
- * Return all columns in the table
44
- */
45
- getColumns(): ITidyColumn[];
46
- /**
47
- * Get the number of rows.
48
- */
49
- getRowCount(): number;
50
- /**
51
- * Get the number of columns.
52
- */
53
- getColumnCount(): number;
54
- /**
55
- * Get the nth character column in the table
56
- * @param axisPosition
57
- */
58
- getAxisN(axisPosition: number): ITidyCharacterColumn;
59
- /**
60
- * @see {getAxisN}
61
- */
62
- getOptionalAxisN(axisPosition: number): ITidyCharacterColumn | undefined;
63
- /**
64
- * Get the nth numeric column in the table
65
- * @param axisPosition
66
- */
67
- getMeasureN(axisPosition: number): ITidyNumericColumn;
68
- /**
69
- * @see {getMeasureN}
70
- * @param axisPosition
71
- */
72
- getOptionalMeasureN(axisPosition: number): ITidyNumericColumn | undefined;
73
- /**
74
- * Get a column by name (case insensitive) or index. If no column is found, it gives an error.
75
- * @param identifier name or index of the column
76
- */
77
- getColumn(identifier: string | number): ITidyColumn;
78
- /**
79
- * @see {getColumn}
80
- */
81
- getOptionalColumn(identifier: string | number): ITidyColumn | undefined;
82
- /**
83
- * Column getters with mapping defined, throws an error if the column is not found.
84
- *
85
- * The idea is then to have a function: getColumnByAlias that requests mapping name.
86
- * The widget can check for if the mapping is undefined or not. If it is defined,
87
- * it will result in a column (which can be empty). If it is undefined it will try to
88
- * fallback to another column that has the mapping specification.
89
- *
90
- * @param alias mapping name
91
- */
92
- getColumnByAlias(alias: string): ITidyColumn;
93
- /**
94
- * Returns multiple columns. For example, in the line chart, this function returns all the columns mapped in the
95
- * values option.
96
- * @see getColumnByAlias
97
- * @param alias
98
- */
99
- getColumnsByAlias(alias: string): ITidyColumn[];
100
- /**
101
- * @see {getOptionalColumnByRole}
102
- * @param role mapping name
103
- * @returns list of columns with the role 'role'.
104
- */
105
- getColumnsByRole(role: string): ITidyColumn[];
106
- /**
107
- * @see {getColumnByAlias}
108
- */
109
- getOptionalColumnByAlias(alias: string): ITidyColumn | undefined;
110
- /**
111
- * @see {getColumnByAlias}
112
- */
113
- getOptionalColumnsByAlias(alias: string): ITidyColumn[] | undefined;
114
- /**
115
- * Get the coordinate of the column using the alias for the mapping
116
- * @param alias the name of the mapping
117
- */
118
- getOptionalColumnCoordinateByAlias(alias: string): TidyTableColumnIdentifier | undefined;
119
- /**
120
- * Get columns using a selector
121
- * @param selector selector object
122
- */
123
- getColumnsBySelector(selector: TidyTableColumnSelector | TidyTableColumnSelector[]): ITidyColumn[];
124
- /**
125
- * Get a column using the coordinate of an axis.
126
- * @param coordinate
127
- * @see {AxisCoordinate}
128
- */
129
- getColumnByMdxAxis(coordinate: AxisCoordinate): ITidyColumn | undefined;
130
- /**
131
- * Get all columns on an axis.
132
- * @param axisIdx index of the axis. ON 0, ON 1, etc..
133
- */
134
- getColumnsByMdxAxis(axisIdx: number): ITidyColumn[];
135
- /**
136
- * Get the number of MDX axis.
137
- */
138
- getMdxAxisCount(): number;
139
- /**
140
- * Get the column for the text formatter
141
- * @param nameOrAlias the name or the mapping alias for the column
142
- */
143
- getColumnForTextFormatter(nameOrAlias: string): ITidyColumn | undefined;
144
- /**
145
- * Convert the tidy table to an array of arrays.
146
- * @param major the major-ordering of the arrays. If 'column', the result is an array of columns. If 'row', the
147
- * result is an array of rows. The default is 'row'.
148
- */
149
- toArray(major?: 'row' | 'column'): any[][];
150
- /**
151
- * Get the column names of the tidy table. Each column in the table has a unique name.
152
- */
153
- getColumnNames(): string[];
154
- /**
155
- * Get the column captions of the tidy table
156
- */
157
- getColumnCaptions(): string[];
158
- /**
159
- * Get a column by its type
160
- * @param type columns of this type are in the result set
161
- * @param position get the nth column of the result set, default = 0
162
- */
163
- getColumnByType(type: TidyColumnsType, position?: number): ITidyColumn;
164
- /**
165
- * @see {getColumnByType}
166
- */
167
- getOptionalColumnByType(type: TidyColumnsType, position?: number): ITidyColumn | undefined;
168
- /**
169
- * Search through the columns in the table returning the n-th column that is found.
170
- * @param predicate function that returns true if and only if the column is in the result set.
171
- * @param position the position in the result set. Defaults to 0.
172
- */
173
- searchColumn(predicate: (column: ITidyColumn) => boolean, position?: number): ITidyColumn | undefined;
174
- /**
175
- * Return a list of the types of the column in the table
176
- */
177
- getColumnTypes(): TidyColumnsType[];
178
- /**
179
- * Get the index of the column in the table
180
- * @param col
181
- */
182
- lookupColumnIdx(col?: ITidyColumn): number;
183
- /**
184
- * Returns the value of the cell. Does not search properties.
185
- * @param columnName name of the column in the table
186
- * @param row row of the table
187
- */
188
- getValue(columnName: string, row: number): any;
189
- /**
190
- * Apply a mapper function to each row. Returns a list with length equal to the number of rows in the table.
191
- * @param mapper the function to use.
192
- */
193
- mapRows<T>(mapper: (rowIdx: number, rowData: (colIdx: number) => any, colCount: number) => T): T[];
194
- /**
195
- * Map the columns of the table, resulting in a list with length equal to the number of columns.
196
- * @param mapper
197
- */
198
- mapColumns<T>(mapper: (colIdx: ITidyColumn, colData: (rowIdx: number) => any, rowCount: number) => T): T[];
199
- /**
200
- * Take the sum of the column, but if it is a hierarchical column only the sum at the root level will be
201
- * calculated
202
- * @param axisColIdx the (hierarchical) axis
203
- * @param measureColIdx measures to take the sum of
204
- */
205
- sumRoot(axisColIdx: number, measureColIdx: number): number;
206
- /**
207
- * build a tidy tree where the levels are defined by the treeLevels parameter, using
208
- * the column values for creating unique tree nodes.
209
- *
210
- * ColA | ColB | Value
211
- * Europe Bike 1
212
- * Europe Car 2
213
- * America Foot 4
214
- *
215
- * is transformed into :
216
- *
217
- * root
218
- * |
219
- * --- Europe
220
- * | |
221
- * | --- Bike 1
222
- * | |
223
- * | --- Car 2
224
- * |
225
- * --- America
226
- * |
227
- * --- Foot 4
228
- *
229
- * The values of the measures are added to the leafs unless expandHierarchicalColumn is true.
230
- *
231
- *
232
- * @param treeColumns columns to build the levels
233
- * @param rootLabel the label of the root
234
- * @param expandHierarchicalColumn if true, hierarchical columns will be expanded as a tree (all nodes except the root one will have measures values)
235
- */
236
- buildTidyTree(treeColumns: ITidyColumn[], rootLabel?: string, expandHierarchicalColumn?: boolean): TidyTree;
237
- /**
238
- * Group the table by some of its columns. Rows are in the same group, if their values are equal.
239
- * @param columns groupIdx and groupRows for each unique value in this(ese) column(s)
240
- * @param useMdx If true, use MDX values. Default = use column values.
241
- * @returns an array with indexes for each group. The ith item represents the rows of the group, where i is the
242
- * index of the ith unique value in the group column.
243
- */
244
- groupBy(columns: ITidyColumn[], useMdx?: boolean): GroupRowIndices[];
245
- /**
246
- * Pivot a tidy table from wide to long format. See pivot longer in the documentation.
247
- * @param columns columns to melt.
248
- * @param variableName name of the column to which the variable name are melted.
249
- * @param valuesName name of the column to which the values are melted.
250
- */
251
- melt(columns: ITidyColumn[], variableName?: string, valuesName?: string): void;
252
- /**
253
- * Pivot a tidy table from long to wide format
254
- * Duplicated rows are discarded.
255
- * @param toColumns Pivot the row-values of this column to the columns of the table.
256
- * @param valueCols transpose the values in these column.
257
- * @param toRows Each unique combination in these columns is a row in the transformed table. Leave undefined to take all remaining columns.
258
- */
259
- cast(toColumns: ITidyColumn[], valueCols: ITidyColumn[], toRows?: ITidyColumn[]): void;
260
- /**
261
- * Cast to create a new table
262
- * @see cast
263
- */
264
- castN(toColumns: ITidyColumn[], valueCols: ITidyColumn[], toRows?: ITidyColumn[]): ITidyTable;
265
- /**
266
- * Sort the table based on the certain columns. Default sorting is descending.
267
- * @param columns column(s) used for sorting. Columns earlier in the list take priority over columns with
268
- * higher indexes in determining the order.
269
- * @param order sorting order. Default = descending.
270
- */
271
- sort(columns: ITidyColumn[], order?: SortingType[]): void;
272
- /**
273
- * Sort the table while keeping the parent/child structure in treeColumns intact.
274
- * @param treeColumns one or more columns with a tree like structure
275
- * @param sortingColumns columns to sort on
276
- * @param order sorting order. Default = descending.
277
- */
278
- sortInTree(treeColumns: ITidyColumn[], sortingColumns: ITidyColumn[], order?: SortingType[]): void;
279
- /**
280
- * Get the ranking of one or more columns. Smallest value gets rank 0,
281
- * second smallest rank 1, etc. until rank n-1. Sort ascending by default.
282
- * @param columns columns used for finding the order. Columns earlier in the list take priority over columns with
283
- * higher indexes in determining the order.
284
- * @param order sorting order. Default = ascending.
285
- */
286
- getRank(columns: ITidyColumn[], order?: SortingType[]): number[];
287
- /**
288
- * Add a new column to the table. If the column name already exits, a new name is generated.
289
- * If the column is already in the table, nothing is done.
290
- */
291
- addColumn(column: ITidyColumn): void;
292
- /**
293
- * Convert the tidy table to a data object that can be used by amCharts V5.
294
- */
295
- toAmcharts5Data(axis: ITidyColumn, group: ITidyColumn | undefined, value: Record<string, ITidyColumn | undefined>): any;
296
- /**
297
- * Convert the tidy table to a data object that can be used by amCharts.
298
- * Note, duplicated rows in 'group' are skipped.
299
- *
300
- * See the tests for examples.
301
- *
302
- * @param category the column with labels for the category axis.
303
- * @param value this is an object with columns. Each column is converted to <group>.<key> = <column-value>.
304
- * @param group column indicating the groups. Each unique value in this column forms a new group. Groups in
305
- * the resulting data object are given by '<group_id>.' preceding the values.
306
- * @param level this column expands the axis so that widgets can plot level-like charts using guides. This expansion
307
- * follows the patters axis-label[level-label].
308
- * @param hideNulls column, do not include records where all rows in group evaluate to NULL.
309
- * @param disableGroupRecords if true, all the rows become a single object. Else all data per group becomes a single object. Default = false.
310
- */
311
- toAmcharts4Data<F extends string>(category: ITidyColumn, value: Record<F, ITidyColumn | undefined>, group?: ITidyColumn | ITidyColumn[], level?: ITidyColumn, hideNulls?: ITidyColumn, disableGroupRecords?: boolean): IAmCharts4Data[];
312
- /**
313
- * Creates a data object for the Amcharts treemap
314
- * @param level0 names for the parent nodes
315
- * @param level1 names for the child nodes
316
- * @param value values to use in the node data
317
- */
318
- toAmcharts4DataTreeMap(level0: ITidyColumn, level1: ITidyColumn, value: Record<string, ITidyColumn | undefined>): IAmCharts4DataTreeMap[];
319
- /**
320
- * Convert the tidy table to json.
321
- *
322
- * For example, let table =
323
- * col1 | col2 | value1 | value2
324
- * a b 1 2
325
- * a bar 5 3
326
- *
327
- * then, table.toJson('r', {c1: col1, c2: col2, v2: value2}) results in
328
- * [
329
- * {row: 0, c1: a, c2: b, v2: 2},
330
- * {row: 1, c1: a, c2: bar, v2: 3}
331
- * ]
332
- *
333
- * Note that 'row' represents the index of the row in the tidy table.
334
- *
335
- * Another example, now without arguments:
336
- * table.toJson() results in
337
- * [
338
- * {
339
- * row: 0,
340
- * col1: a,
341
- * col2: b,
342
- * value1: 1,
343
- * value2: 2
344
- * },
345
- * {
346
- * row: 1,
347
- * col1: a,
348
- * col2: bar,
349
- * value1: 5,
350
- * value2: 3
351
- * }
352
- * ]
353
- *
354
- * @param rowIdxTag if defined, include the row number of the tidy table in the result. Use rowIdxTag as the key in the object.
355
- * @param colTags if defined, this is how the columns in the tidy table are mapped. If not defined, the captions of the
356
- * tidy table are used as keys in the row objects.
357
- */
358
- toJson(rowIdxTag?: string, colTags?: Record<string, ITidyColumn | undefined>): Record<string, any>[];
359
- /**
360
- * Get a row as an object.
361
- * @param rowIdx index of the row to query.
362
- */
363
- getRowJson(rowIdx: number): Record<string, any>;
364
- /**
365
- * Convert the table to html table string
366
- */
367
- toHtml(): string;
368
- /**
369
- * throws an exception if the column does not belong to the table
370
- */
371
- assertColumnExists(column: ITidyColumn): void;
372
- hasEmptyDrilldown(nodeInfo: MdxNodeIdentifier): boolean;
373
- /**
374
- * Apply a new index to the table. Used for sorting, filtering and duplication of rows.
375
- *
376
- * Examples:
377
- *
378
- * table.toString() -->
379
- * Country |Amount |Count |
380
- * ----------------------------------------
381
- * 0 France |10 |5 |
382
- * 1 Holland |20 |4 |
383
- * 2 China |25 |3 |
384
- * 3 Germany |20 |2 |
385
- * 4 Belgium |25 |1 |
386
- *
387
- * column.reIndex([0,0,2,4,1,-1,-1,999]) -->
388
- * Country |Amount |Count |
389
- * ----------------------------------------
390
- * 0 France |10 |5 |
391
- * 1 France |10 |5 |
392
- * 2 China |25 |3 |
393
- * 3 Belgium |25 |1 |
394
- * 4 Holland |20 |4 |
395
- * 5 undefined |undefined |undefined |
396
- * 6 undefined |undefined |undefined |
397
- * 7 undefined |undefined |undefined |
398
- *
399
- * @param index list of integers.
400
- */
401
- reIndex(index: number[]): void;
402
- /**
403
- * Delete a column from the table (if it exists).
404
- * @param column
405
- */
406
- deleteColumn(column: ITidyColumn | string): boolean;
407
- /**
408
- * Keep a subset of columns from the table.
409
- * @param columns list of columns, note that the length of each column must be the same as the number of rows
410
- * in the table. Duplicates will be ignored. Columns with the same name get an index added to the name.
411
- */
412
- setColumns(columns: ITidyColumn[]): void;
413
- /**
414
- * Create a new column. The column is not added to the table.
415
- * @param name name of the column.
416
- * @param values cell values for the column.
417
- * @param type if undefined, the type is inferred. Note that the provided type is not checked against the values
418
- * for speed. Be sure that the type you set is correct to prevent unexpected behaviour.
419
- */
420
- createColumn<T>(name: string, values: T[], type?: AllowedColumnType<T>): ITidyBaseColumn<T>;
421
- createTable(): ITidyTable;
422
- /**
423
- * Returns a new table with the original columns and rows filtered and in a new order.
424
- * It leaves the original table intact.
425
- *
426
- * cols : [2,1,4] -> 3 columns in a new order
427
- * rowIdx:[55,2,3,5] -> 4 rows in a new order
428
- */
429
- createFilteredTable(colIdx: number[] | undefined, rowIdx: number[] | undefined): ITidyTable;
430
- /**
431
- * Print the table as a markdown table (e.g., used for internal documentation).
432
- */
433
- toMarkdown(): string;
434
- /**
435
- * Return the values of the tidy table (debugging purpose).
436
- *
437
- * @param order how to structure the array, default = column-major.
438
- * Say the table has n rows and m columns, then
439
- * > row-major - returns an array of row-values
440
- * [
441
- * [val11, val12, ..., val1m],
442
- * [val21, val22, ..., val2m],
443
- * ...,
444
- * [valn1, valn2, ..., valnm]
445
- * ]
446
- *
447
- * > column-major - returns an array of column-values
448
- * [
449
- * [val11, val21, ..., valn1],
450
- * [val21, val22, ..., valn2],
451
- * ...,
452
- * [valm1, valm2, ..., valnm]
453
- * ]
454
- */
455
- getValues(order?: "row-major" | "column-major"): ReadonlyArray<ReadonlyArray<any>>;
456
- /**
457
- * Add a tag, name combination to the mapping
458
- * @param tag name, mapping, role, etc..
459
- * @param identifier name of the column in the table. Not exist = error.
460
- */
461
- addToColumnIndex(tag: string, identifier: string | number): void;
462
- /**
463
- * Add a new index to the existing index, overwriting what already exists.
464
- */
465
- addColumnIndex(index: TidyColumnIndex): void;
466
- /**
467
- * The limit used when lazy search is enabled.
468
- */
469
- getLazySearchLimit(): number | undefined;
470
- isTotalRow(rowIdx: number): boolean;
471
- /**
472
- * Transform the table to a table where each row is a bucket in the histogram for that group.
473
- * Returns a new tidy table. Function does not mutate old tidy table and its columns.
474
- *
475
- * @see TidyHistogramBucketColName
476
- * @see TidyHistogramCountColName
477
- */
478
- toHistogram(context: IPublicContext, valueCol: ITidyBaseColumnReadonly<number | null>, groupCol: ITidyColumn | undefined, options: TidyHistogramOptions): ITidyTable;
479
- /**
480
- * Create a histogram bucket column from the value column.
481
- */
482
- toHistogramBucketColumn(context: IPublicContext, valueCol: ITidyBaseColumnReadonly<number | null>, options: TidyHistogramOptions): ITidyColumn;
483
- addTotalRows(totals: Map<number, ITotalRowValues[]>): void;
484
- /**
485
- * Mark these rows as total rows in the table.
486
- * @param totalRows
487
- */
488
- setTotalRows(totalRows: (rowIdx: number) => boolean): void;
489
- /**
490
- * Get a column by its role as defined in the mdxBuilderSettings.
491
- * @param role name of the axis-role
492
- */
493
- getOptionalColumnByRole(role: string): ITidyUnknownColumn | undefined;
494
- /**
495
- * Pivot Table
496
- * @param nodeInfo
497
- */
498
- getLevelDepthR(nodeInfo: MdxNodeIdentifier): any;
499
- hasMdxChildren(nodeInfo: MdxNodeIdentifier): boolean;
500
- isLeaf(nodeInfo: MdxNodeIdentifier): boolean;
501
- /**
502
- * Sort the tidy table pivot style
503
- */
504
- sortLikePivotTable(sortingColumn: ITidyColumn, type: SortingType, rowIds: number[]): void;
505
- /**
506
- * The tidy table internally keeps track how columns are mapped to roles. If you apply a transformation
507
- * in the widget template, you can update the mapping after whith this function.
508
- * @param mapping new mapping = {old mapping , ...mapping}
509
- */
510
- updateMapping(mapping: ChartTemplateDataMapping): void;
511
- /**
512
- * Utility class for doing maths on columns
513
- */
514
- getMath(): ITidyMath;
515
- /**
516
- * Returns true if and only if the table is truncated by the server (too many rows otherwise).
517
- */
518
- reachedMaxTidyRowCount(): boolean;
519
- /**
520
- * Some MDX queries return headers that have a hierarchy. This function returns the number of header rows.
521
- * For example, the table below has two headers.
522
- *
523
- * 2020 | | 2021 |
524
- * car | bike | car | bike
525
- * -------------------------------------
526
- * 40 | 50 | 55 | 35
527
- *
528
- */
529
- getTopHeaderHierarchyCount(): number;
530
- /**
531
- * Clear the index. Use for resetting sorting / filtering.
532
- */
533
- resetIndex(): void;
534
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=PublicTidyTable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublicTidyTable.js","sourceRoot":"","sources":["../src/PublicTidyTable.ts"],"names":[],"mappings":""}