@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,71 +0,0 @@
1
- import { ITidyColumn, ITidyNumericColumn } from "./PublicTidyColumn";
2
- import { GroupRowIndices } from "./PublicTidyTableTypes";
3
- /**
4
- * A tree node that with origin in a TidyColumn
5
- */
6
- export interface TidyTreeNode {
7
- /**
8
- * The column the tree node was generated from
9
- */
10
- originalColumn?: ITidyColumn;
11
- /**
12
- * The rows that the node is created from. Undefined if and only if the node is the root node.
13
- */
14
- rowIds?: GroupRowIndices;
15
- /**
16
- * The label/value of this node
17
- */
18
- nodeLabel: string;
19
- /**
20
- * Children of this tree
21
- */
22
- children: TidyTreeNode[];
23
- }
24
- /**
25
- * A tree structure that was generated from a TidyTable.
26
- *
27
- * Table:
28
- * budget type | cc
29
- * Monthly Budget | Savings
30
- * Monthly Budget | Mortgage/Rent
31
- * Yearly Budget | Car Payment
32
- *
33
- * converts to <nodeLabel> <rowIds>:
34
- * root (undefined)
35
- * |
36
- * --- Monthly Budget [0,1]
37
- * | |
38
- * | --- Savings [0]
39
- * | |
40
- * | --- Mortgage/Rent [1]
41
- * |
42
- * --- Yearly Budget [3]
43
- * |
44
- * --- Car Payment [3]
45
- *
46
- */
47
- export declare class TidyTree {
48
- root: TidyTreeNode;
49
- constructor(root?: TidyTreeNode);
50
- /**
51
- * A unique id for each node of the tree
52
- * returns levelDepth + "--" + node.nodeLabel, or "root" for the root node.
53
- */
54
- static getUniqueId(node: TidyTreeNode, levelDepth: number): string;
55
- /**
56
- * Performs the specified action on each node of the tree.
57
- * If callbackfn return false, it will not perform a foreach on it's children.
58
- * The callback function does not run for the root node.
59
- * Leveldepth = number of nodes between node and the root node.
60
- */
61
- forEach<T>(callbackfn: ForEachNodeCallbackFn<T>, getTopParentStat?: (topParentNode: TidyTreeNode) => T): void;
62
- /**
63
- * aggregates all children measures values on parents using aggregation function recursively
64
- * aggrfn is sum by default
65
- */
66
- getNodeValue(node: TidyTreeNode, measure: ITidyNumericColumn): number | null;
67
- }
68
- /**
69
- * Top parent node = the node that is a direct child of root and of which node is a descendant.
70
- */
71
- export type ForEachNodeCallbackFn<T> = (node: TidyTreeNode, levelDepth: number, parent: TidyTreeNode, nodeChildrenIdx: number, parentSummary?: T) => boolean | void;
@@ -1,89 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TidyTree = void 0;
4
- /**
5
- * A tree structure that was generated from a TidyTable.
6
- *
7
- * Table:
8
- * budget type | cc
9
- * Monthly Budget | Savings
10
- * Monthly Budget | Mortgage/Rent
11
- * Yearly Budget | Car Payment
12
- *
13
- * converts to <nodeLabel> <rowIds>:
14
- * root (undefined)
15
- * |
16
- * --- Monthly Budget [0,1]
17
- * | |
18
- * | --- Savings [0]
19
- * | |
20
- * | --- Mortgage/Rent [1]
21
- * |
22
- * --- Yearly Budget [3]
23
- * |
24
- * --- Car Payment [3]
25
- *
26
- */
27
- class TidyTree {
28
- constructor(root) {
29
- this.root = {
30
- nodeLabel: 'root',
31
- children: [],
32
- ...root
33
- };
34
- }
35
- /**
36
- * A unique id for each node of the tree
37
- * returns levelDepth + "--" + node.nodeLabel, or "root" for the root node.
38
- */
39
- static getUniqueId(node, levelDepth) {
40
- if (node.rowIds == null) {
41
- return "root";
42
- }
43
- return levelDepth + "--" + node.nodeLabel + "--" + (node.rowIds[0]);
44
- }
45
- /**
46
- * Performs the specified action on each node of the tree.
47
- * If callbackfn return false, it will not perform a foreach on it's children.
48
- * The callback function does not run for the root node.
49
- * Leveldepth = number of nodes between node and the root node.
50
- */
51
- forEach(callbackfn, getTopParentStat) {
52
- function forEachNested(children, levelDepth, parent, callbackfn, topParentStat) {
53
- children.forEach((node, idx) => {
54
- if (callbackfn(node, levelDepth, parent, idx, topParentStat) !== false) {
55
- forEachNested(node.children, levelDepth + 1, node, callbackfn, topParentStat);
56
- }
57
- });
58
- }
59
- this.root.children.forEach((topParentNode, idx) => {
60
- const topParentSummary = getTopParentStat != null ? getTopParentStat(topParentNode) : undefined;
61
- if (callbackfn(topParentNode, 0, this.root, idx, topParentSummary) !== false) {
62
- forEachNested(topParentNode.children, 1, topParentNode, callbackfn, topParentSummary);
63
- }
64
- });
65
- }
66
- /**
67
- * aggregates all children measures values on parents using aggregation function recursively
68
- * aggrfn is sum by default
69
- */
70
- getNodeValue(node, measure) {
71
- if (node.rowIds == null) {
72
- return [...measure.getValues()].reduce(sumAggregation);
73
- }
74
- if (node.originalColumn?.isHierarchy()) {
75
- return measure.getValue(node.rowIds[0]);
76
- }
77
- const values = node.rowIds.map(i => measure.getValue(i));
78
- return values.reduce(sumAggregation);
79
- }
80
- }
81
- exports.TidyTree = TidyTree;
82
- function sumAggregation(a, b) {
83
- if (a == null)
84
- return b;
85
- if (b == null)
86
- return a;
87
- return a + b;
88
- }
89
- //# sourceMappingURL=PublicTidyTree.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublicTidyTree.js","sourceRoot":"","sources":["../src/PublicTidyTree.ts"],"names":[],"mappings":";;;AA6BA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,QAAQ;IAIjB,YAAY,IAAmB;QAC3B,IAAI,CAAC,IAAI,GAAG;YACR,SAAS,EAAE,MAAM;YACjB,QAAQ,EAAE,EAAE;YACZ,GAAG,IAAI;SACV,CAAC;IACN,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,IAAkB,EAAE,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,EAAE,OAA2B;QACxD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE,CAAC;YACtB,OAAO,CAAC,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAC3D,CAAC;QACD,IAAI,IAAI,CAAC,cAAc,EAAE,WAAW,EAAE,EAAE,CAAC;YACrC,OAAO,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5C,CAAC;QACD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QACzD,OAAO,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IACzC,CAAC;CACJ;AA9DD,4BA8DC;AAED,SAAS,cAAc,CAAC,CAAgB,EAAE,CAAgB;IACtD,IAAI,CAAC,IAAI,IAAI;QACT,OAAO,CAAC,CAAC;IACb,IAAI,CAAC,IAAI,IAAI;QACT,OAAO,CAAC,CAAC;IACb,OAAO,CAAC,GAAG,CAAC,CAAC;AACjB,CAAC"}
@@ -1,9 +0,0 @@
1
-
2
- export interface IScriptCallback {
3
- onSuccess: () => void;
4
- onError: (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error) => void;
5
- }
6
- export declare class RemoteContainerUtils {
7
- static loadScript(tenant: string | null, url: string, callback: IScriptCallback): void;
8
- static loadModule(scope: string, module: string): () => Promise<any>;
9
- }
@@ -1,49 +0,0 @@
1
- "use strict";
2
- /* eslint @typescript-eslint/ban-ts-comment: 0 */ // --> OFF
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.RemoteContainerUtils = void 0;
5
- class RemoteContainerUtils {
6
- static loadScript(tenant, url, callback) {
7
- if (tenant) {
8
- tenant = encodeURIComponent(tenant) + "_";
9
- }
10
- else {
11
- tenant = "";
12
- }
13
- url = url + (url.indexOf("?") === -1 ? "?" : "&") + "t=" + tenant + new Date().getTime() /* cache busting */;
14
- console.log("[Plugin] setup remote plugin (load-script) [" + url + "]");
15
- const element = document.createElement("script");
16
- element.src = url;
17
- element.type = "text/javascript";
18
- element.async = true;
19
- element.onload = () => {
20
- callback.onSuccess();
21
- };
22
- element.onerror = (event, source, lineno, colno, error) => {
23
- callback.onError(event, source, lineno, colno, error);
24
- };
25
- document.head.appendChild(element);
26
- }
27
- static loadModule(scope, module) {
28
- // An async function is a function that knows how to expect the possibility
29
- // of the await keyword being used to invoke asynchronous code.
30
- // So the async keyword is added to functions to tell them to return a promise
31
- // rather than directly returning the value.
32
- return async () => {
33
- // Initializes the share scope. This fills it with known provided modules
34
- // from this build and all remotes.
35
- // @ts-ignore
36
- await __webpack_init_sharing__("default");
37
- // or get the container somewhere else
38
- const container = window[scope];
39
- // Initialize the container, it may provide shared modules
40
- // @ts-ignore
41
- await container.init(__webpack_share_scopes__.default);
42
- const factory = await window[scope].get(module);
43
- const Module = factory();
44
- return Module;
45
- };
46
- }
47
- }
48
- exports.RemoteContainerUtils = RemoteContainerUtils;
49
- //# sourceMappingURL=RemoteContainerUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RemoteContainerUtils.js","sourceRoot":"","sources":["../src/RemoteContainerUtils.ts"],"names":[],"mappings":";AAAA,iDAAiD,CAAE,UAAU;;;AAS7D,MAAa,oBAAoB;IAEtB,MAAM,CAAC,UAAU,CAAC,MAAqB,EAAE,GAAW,EAAE,QAAyB;QAElF,IAAI,MAAM,EAAE,CAAC;YACT,MAAM,GAAG,kBAAkB,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;QAC9C,CAAC;aAAM,CAAC;YACJ,MAAM,GAAG,EAAE,CAAC;QAChB,CAAC;QAED,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,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AAM,CAAC,CAAC;YAEzD,MAAM,MAAM,GAAG,OAAO,EAAE,CAAC;YACzB,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC;IACN,CAAC;CAGJ;AA9DD,oDA8DC"}
@@ -1,9 +0,0 @@
1
- export default class ReportingVersion {
2
- /**
3
- * e.g., 8.0.0-alpha.1
4
- */
5
- readonly version: string;
6
- readonly timestamp: string;
7
- constructor(version: string | undefined, timestamp: string | undefined);
8
- getInfo(): string;
9
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class ReportingVersion {
4
- constructor(version, timestamp) {
5
- this.version = version ?? "-";
6
- this.timestamp = timestamp ?? "-";
7
- }
8
- getInfo() {
9
- return this.version + " (" + this.timestamp + ")";
10
- }
11
- }
12
- exports.default = ReportingVersion;
13
- //# sourceMappingURL=ReportingVersion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReportingVersion.js","sourceRoot":"","sources":["../src/ReportingVersion.ts"],"names":[],"mappings":";;AAAA,MAAqB,gBAAgB;IASjC,YAAY,OAA2B,EAAE,SAA6B;QAElE,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,GAAG,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,IAAI,GAAG,CAAC;IACtC,CAAC;IAEM,OAAO;QACV,OAAO,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC;IACtD,CAAC;CAEJ;AAnBD,mCAmBC"}
@@ -1,35 +0,0 @@
1
- import { ic3BaseComponents, ic3ComponentNameToClassKey, ic3ComponentsPropsList, ic3Palette, ic3PaletteOptions, ic3Theme, ic3ThemeOptions, ic3Typography, ic3TypographyOptions } from "./PublicTheme";
2
- /**
3
- *
4
- * MUI Module augmentation
5
- *
6
- */
7
- declare module "@mui/material/styles" {
8
- interface Palette {
9
- ic3: ic3Palette;
10
- }
11
- interface PaletteOptions {
12
- ic3?: ic3PaletteOptions;
13
- }
14
- interface TypographyVariants {
15
- ic3: ic3Typography;
16
- }
17
- interface TypographyVariantsOptions {
18
- ic3?: ic3TypographyOptions;
19
- }
20
- interface Theme {
21
- ic3: ic3Theme;
22
- }
23
- /**
24
- * Input of createTheme( {...} )
25
- */
26
- interface ThemeOptions {
27
- ic3: ic3ThemeOptions;
28
- }
29
- interface Components extends ic3BaseComponents {
30
- }
31
- interface ComponentNameToClassKey extends ic3ComponentNameToClassKey {
32
- }
33
- interface ComponentsPropsList extends ic3ComponentsPropsList {
34
- }
35
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ThemeAugmentation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThemeAugmentation.js","sourceRoot":"","sources":["../src/ThemeAugmentation.ts"],"names":[],"mappings":""}
@@ -1,49 +0,0 @@
1
- import { FormFieldObject } from "../PublicTemplateForm";
2
- export declare class AIWidgetChatBotClasses {
3
- static root: string;
4
- static messages: string;
5
- static message: string;
6
- static messageIcon: string;
7
- static messageContent: string;
8
- static messageOngoing: string;
9
- static input: string;
10
- static inputText: string;
11
- static inputClick: string;
12
- static footer: string;
13
- static warning: string;
14
- static reset: string;
15
- }
16
- export declare type AIWidgetChatBotClassKey = keyof AIWidgetChatBotClasses;
17
- /**
18
- * AI ChatBox Options (fields of the "Chart" tab in the widget editor).
19
- *
20
- * <pre>
21
- * Plugin ID : ic3
22
- * Widget/Template ID: AIWidgetChatBot
23
- * </pre>
24
- *
25
- * @see WidgetTemplateChartOptions
26
- */
27
- export interface AIWidgetChatBotOptions extends FormFieldObject {
28
- variant: AIWidgetChatBotVariant;
29
- /**
30
- * The widget this chatbot is talking about.
31
- */
32
- targetWidgetId: string;
33
- initialQuestion?: string;
34
- /**
35
- * In this mode, only the initial question is being sent.
36
- */
37
- frozen?: true;
38
- resetOnDataChanged?: true;
39
- tableDataMaxRow?: number;
40
- tableDataCaptionPage0?: string;
41
- model?: string;
42
- systemPrompt?: string;
43
- initialPrompt?: string;
44
- initialPromptPage0?: string;
45
- }
46
- export type AIWidgetChatBotVariant = "plain";
47
- export interface AIWidgetChatBotStyleProps {
48
- variant: AIWidgetChatBotVariant;
49
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AIWidgetChatBotClasses = void 0;
4
- class AIWidgetChatBotClasses {
5
- }
6
- exports.AIWidgetChatBotClasses = AIWidgetChatBotClasses;
7
- AIWidgetChatBotClasses.root = "ic3AIWidgetChatBot-root";
8
- AIWidgetChatBotClasses.messages = "ic3AIWidgetChatBot-messages";
9
- AIWidgetChatBotClasses.message = "ic3AIWidgetChatBot-message";
10
- AIWidgetChatBotClasses.messageIcon = "ic3AIWidgetChatBot-messageIcon";
11
- AIWidgetChatBotClasses.messageContent = "ic3AIWidgetChatBot-messageContent";
12
- AIWidgetChatBotClasses.messageOngoing = "ic3AIWidgetChatBot-messageOngoing";
13
- AIWidgetChatBotClasses.input = "ic3AIWidgetChatBot-input";
14
- AIWidgetChatBotClasses.inputText = "ic3AIWidgetChatBot-inputText";
15
- AIWidgetChatBotClasses.inputClick = "ic3AIWidgetChatBot-inputClick";
16
- AIWidgetChatBotClasses.footer = "ic3AIWidgetChatBot-footer";
17
- AIWidgetChatBotClasses.warning = "ic3AIWidgetChatBot-warning";
18
- AIWidgetChatBotClasses.reset = "ic3AIWidgetChatBot-reset";
19
- //# sourceMappingURL=ThemeAIWidgetChatBot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThemeAIWidgetChatBot.js","sourceRoot":"","sources":["../../src/theme/ThemeAIWidgetChatBot.ts"],"names":[],"mappings":";;;AAEA,MAAa,sBAAsB;;AAAnC,wDA0BC;AAxBiB,2BAAI,GAAG,yBAAyB,CAAC;AAEjC,+BAAQ,GAAG,6BAA6B,CAAC;AAEzC,8BAAO,GAAG,4BAA4B,CAAC;AAEvC,kCAAW,GAAG,gCAAgC,CAAC;AAE/C,qCAAc,GAAG,mCAAmC,CAAC;AAErD,qCAAc,GAAG,mCAAmC,CAAC;AAErD,4BAAK,GAAG,0BAA0B,CAAC;AAEnC,gCAAS,GAAG,8BAA8B,CAAC;AAE3C,iCAAU,GAAG,+BAA+B,CAAC;AAE7C,6BAAM,GAAG,2BAA2B,CAAC;AAErC,8BAAO,GAAG,4BAA4B,CAAC;AAEvC,4BAAK,GAAG,0BAA0B,CAAC"}
@@ -1,13 +0,0 @@
1
- export declare class AlertDialogClasses {
2
- /**
3
- * Style applied to
4
- */
5
- static root: string;
6
- /**
7
- * Style applied to
8
- */
9
- static formRoot: string;
10
- static message: string;
11
- static warning: string;
12
- }
13
- export declare type AlertDialogClassKey = keyof AlertDialogClasses;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AlertDialogClasses = void 0;
4
- class AlertDialogClasses {
5
- }
6
- exports.AlertDialogClasses = AlertDialogClasses;
7
- /**
8
- * Style applied to
9
- */
10
- AlertDialogClasses.root = "ic3AlertDialog-root";
11
- /**
12
- * Style applied to
13
- */
14
- AlertDialogClasses.formRoot = "ic3AlertDialog-formRoot";
15
- AlertDialogClasses.message = "ic3AlertDialog-message";
16
- AlertDialogClasses.warning = "ic3AlertDialog-warning";
17
- //# sourceMappingURL=ThemeAlertDialog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThemeAlertDialog.js","sourceRoot":"","sources":["../../src/theme/ThemeAlertDialog.ts"],"names":[],"mappings":";;;AAAA,MAAa,kBAAkB;;AAA/B,gDAgBC;AAdG;;GAEG;AACI,uBAAI,GAAG,qBAAqB,CAAC;AAEpC;;GAEG;AACI,2BAAQ,GAAG,yBAAyB,CAAC;AAErC,0BAAO,GAAG,wBAAwB,CAAC;AAEnC,0BAAO,GAAG,wBAAwB,CAAC"}