@bino-bi/bn-template-engine 1.0.0-next.28 → 1.0.0-next.30

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 (449) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-132ad556.entry.js +1 -0
  3. package/dist/bn-template-engine/p-17d71782.entry.js +1 -0
  4. package/dist/bn-template-engine/p-40ba7f43.entry.js +1 -0
  5. package/dist/bn-template-engine/p-467871f3.entry.js +1 -0
  6. package/dist/bn-template-engine/p-64803a42.entry.js +1 -0
  7. package/dist/bn-template-engine/p-B8AjeKja.js +1 -0
  8. package/dist/bn-template-engine/p-CCZcKl0Q.js +2 -0
  9. package/dist/bn-template-engine/p-CrT83eO4.js +1 -0
  10. package/dist/bn-template-engine/p-D_DzKxRV.js +1 -0
  11. package/dist/bn-template-engine/p-Z2rUaSh_.js +1 -0
  12. package/dist/bn-template-engine/p-c41c0a1b.entry.js +1 -0
  13. package/dist/bn-template-engine/p-yc69rwuH.js +1 -0
  14. package/dist/cjs/{bn-asset_28.cjs.entry.js → bn-annotation-layer_30.cjs.entry.js} +27566 -26774
  15. package/dist/cjs/bn-grid.cjs.entry.js +11 -63
  16. package/dist/cjs/bn-image.cjs.entry.js +5 -6
  17. package/dist/cjs/bn-internationalization.cjs.entry.js +11 -7
  18. package/dist/cjs/bn-ruleset.cjs.entry.js +7 -8
  19. package/dist/cjs/bn-template-engine.cjs.js +2 -2
  20. package/dist/cjs/bn-text.cjs.entry.js +18 -18
  21. package/dist/cjs/{diagnostics-Cq-qDtXq.js → diagnostics-C4Ggts3w.js} +50 -2
  22. package/dist/cjs/{index-C1Z9vO7z.js → index-DGis1BzT.js} +0 -1
  23. package/dist/cjs/loader.cjs.js +2 -2
  24. package/dist/cjs/{withBodyObserver-CaPUjuC5.js → withBodyObserver-BK4idxqG.js} +2 -2
  25. package/dist/cjs/{context-protocol-C0rKepqu.js → withHasError-CqvcS23z.js} +462 -14
  26. package/dist/cjs/{withStyled-vSfogp9J.js → withStyled-70D4Isgt.js} +22 -35
  27. package/dist/cjs/{sanitizeHtml-Yx1xn6i_.js → withTranslation-C6Pye2CM.js} +148 -129
  28. package/dist/collection/collection-manifest.json +11 -11
  29. package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.css +24 -0
  30. package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.js +430 -0
  31. package/dist/collection/components/bn-annotation-layer/utils/marks.js +161 -0
  32. package/dist/collection/components/bn-annotation-layer/utils/matchPoint.js +25 -0
  33. package/dist/collection/components/bn-annotation-list/bn-annotation-list.css +46 -0
  34. package/dist/collection/components/bn-annotation-list/bn-annotation-list.js +112 -0
  35. package/dist/collection/components/bn-asset/bn-asset.js +1 -1
  36. package/dist/collection/components/bn-body/bn-body.js +24 -1
  37. package/dist/collection/components/bn-card/bn-card.js +24 -1
  38. package/dist/collection/components/bn-chart-bubble/{ibcs-chart-bubble.js → bn-chart-bubble-renderer/bn-chart-bubble-renderer.js} +153 -59
  39. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +70 -13
  40. package/dist/collection/components/bn-chart-bubble/utils/BubbleChart.js +29 -21
  41. package/dist/collection/components/bn-chart-bullet/{ibcs-chart-bullet.js → bn-chart-bullet-renderer/bn-chart-bullet-renderer.js} +127 -53
  42. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +83 -20
  43. package/dist/collection/components/bn-chart-bullet/utils/BulletChart.js +26 -17
  44. package/dist/collection/components/bn-chart-bullet/utils/model/BulletChartStyle.js +4 -4
  45. package/dist/collection/components/bn-chart-scatter/{ibcs-chart-scatter.js → bn-chart-scatter-renderer/bn-chart-scatter-renderer.js} +132 -53
  46. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +69 -12
  47. package/dist/collection/components/bn-chart-scatter/utils/ScatterChart.js +26 -14
  48. package/dist/collection/components/bn-chart-structure/{ibcs-chart-structure.js → bn-chart-structure-renderer/bn-chart-structure-renderer.js} +159 -66
  49. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +115 -95
  50. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +44 -15
  51. package/dist/collection/components/bn-chart-structure/utils/elements/Axis.js +1 -1
  52. package/dist/collection/components/bn-chart-structure/utils/elements/Bar.js +6 -2
  53. package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +11 -0
  54. package/dist/collection/components/bn-chart-structure/utils/elements/Marker.js +5 -1
  55. package/dist/collection/components/bn-chart-structure/utils/elements/Needle.js +4 -1
  56. package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +6 -2
  57. package/dist/collection/components/bn-chart-time/{ibcs-chart-time.js → bn-chart-time-renderer/bn-chart-time-renderer.js} +188 -150
  58. package/dist/collection/components/bn-chart-time/bn-chart-time.js +140 -405
  59. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +55 -15
  60. package/dist/collection/components/bn-chart-time/utils/elements/Column.js +5 -1
  61. package/dist/collection/components/bn-chart-time/utils/elements/Label.js +14 -0
  62. package/dist/collection/components/bn-chart-time/utils/elements/LineSeries.js +18 -12
  63. package/dist/collection/components/bn-chart-time/utils/elements/Marker.js +5 -1
  64. package/dist/collection/components/bn-chart-time/utils/elements/Needle.js +4 -1
  65. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +6 -2
  66. package/dist/collection/components/bn-chart-time/utils/factories/ScenarioFactory.js +2 -2
  67. package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +2 -18
  68. package/dist/collection/components/bn-component-style/bn-component-style.js +3 -3
  69. package/dist/collection/components/bn-context/bn-context.js +24 -5
  70. package/dist/collection/components/bn-dataset/bn-dataset.js +8 -8
  71. package/dist/collection/components/bn-datasource/bn-datasource.js +8 -8
  72. package/dist/collection/components/bn-footer/bn-footer.css +1 -15
  73. package/dist/collection/components/bn-footer/bn-footer.js +17 -34
  74. package/dist/collection/components/bn-grid/bn-grid.js +38 -71
  75. package/dist/collection/components/bn-image/bn-image.js +21 -2
  76. package/dist/collection/components/bn-internationalization/bn-internationalization.js +7 -1
  77. package/dist/collection/components/bn-layout-card/bn-layout-card.js +3 -32
  78. package/dist/collection/components/bn-layout-page/bn-layout-page.js +3 -32
  79. package/dist/collection/components/bn-message/bn-message.js +20 -2
  80. package/dist/collection/components/bn-page/bn-page.js +22 -3
  81. package/dist/collection/components/bn-ruleset/bn-ruleset.js +3 -3
  82. package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +9 -9
  83. package/dist/collection/components/bn-table/{ibcs-table.js → bn-table-renderer/bn-table-renderer.js} +230 -83
  84. package/dist/collection/components/bn-table/bn-table.js +134 -157
  85. package/dist/collection/components/bn-table/utils/Table.js +3 -3
  86. package/dist/collection/components/bn-table/utils/elements/TableRow.js +1 -1
  87. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +38 -4
  88. package/dist/collection/components/bn-table/utils/helper/DataQuery.js +3 -1
  89. package/dist/collection/components/bn-table/utils/helper/barColumnGeometry.js +2 -2
  90. package/dist/collection/components/bn-text/bn-text.js +66 -8
  91. package/dist/collection/components/bn-title/{ibcs-title/ibcs-title.js → bn-title-renderer/bn-title-renderer.js} +59 -83
  92. package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/Title.js +2 -2
  93. package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/TitleDataSetFactory.js +1 -1
  94. package/dist/collection/components/bn-title/bn-title.js +58 -14
  95. package/dist/collection/components/bn-tree/bn-tree.js +30 -28
  96. package/dist/collection/index.js +0 -1
  97. package/dist/collection/schemas.js +1 -0
  98. package/dist/collection/stores/componentStyles.js +10 -6
  99. package/dist/collection/stores/createScopedStores.js +3 -1
  100. package/dist/collection/stores/internationalization.js +10 -6
  101. package/dist/collection/utils/annotations.js +66 -0
  102. package/dist/collection/utils/autoFit.js +2 -2
  103. package/dist/collection/utils/emptyState.js +1 -1
  104. package/dist/collection/utils/ibcsRuleSet.js +42 -0
  105. package/dist/collection/utils/layoutState/dataPoint.js +59 -0
  106. package/dist/collection/utils/layoutState/geometry.js +46 -0
  107. package/dist/collection/utils/layoutState/index.js +1 -0
  108. package/dist/collection/utils/layoutState/svgChartElements.js +113 -11
  109. package/dist/collection/utils/layoutTemplate.js +0 -2
  110. package/dist/collection/utils/scaling.js +9 -0
  111. package/dist/collection/utils/validate.js +0 -7
  112. package/dist/collection/utils/withComponentStyle.js +14 -18
  113. package/dist/collection/utils/withDataset.js +22 -11
  114. package/dist/collection/utils/withHasError.js +17 -2
  115. package/dist/collection/utils/withRuleSet.js +7 -7
  116. package/dist/collection/utils/withTranslation.js +14 -14
  117. package/dist/collection/utils/xy/XYFrame.js +13 -3
  118. package/dist/collection/utils/xy/model/ScaleFactorsXYChart.js +8 -9
  119. package/dist/collection/utils/xy/pointKey.js +10 -0
  120. package/dist/components/{ibcs-chart-bullet.d.ts → bn-annotation-layer.d.ts} +4 -4
  121. package/dist/components/bn-annotation-layer.js +1 -0
  122. package/dist/components/{ibcs-chart-scatter.d.ts → bn-annotation-list.d.ts} +4 -4
  123. package/dist/components/bn-annotation-list.js +1 -0
  124. package/dist/components/bn-asset.js +1 -1
  125. package/dist/components/bn-body.js +1 -1
  126. package/dist/components/bn-card.js +1 -1
  127. package/dist/components/bn-chart-bubble-renderer.d.ts +11 -0
  128. package/dist/components/bn-chart-bubble-renderer.js +1 -0
  129. package/dist/components/bn-chart-bubble.js +1 -1
  130. package/dist/components/bn-chart-bullet-renderer.d.ts +11 -0
  131. package/dist/components/bn-chart-bullet-renderer.js +1 -0
  132. package/dist/components/bn-chart-bullet.js +1 -1
  133. package/dist/components/bn-chart-scatter-renderer.d.ts +11 -0
  134. package/dist/components/bn-chart-scatter-renderer.js +1 -0
  135. package/dist/components/bn-chart-scatter.js +1 -1
  136. package/dist/components/bn-chart-structure-renderer.d.ts +11 -0
  137. package/dist/components/bn-chart-structure-renderer.js +1 -0
  138. package/dist/components/bn-chart-structure.js +1 -1
  139. package/dist/components/{bn-template.d.ts → bn-chart-time-renderer.d.ts} +4 -4
  140. package/dist/components/bn-chart-time-renderer.js +1 -0
  141. package/dist/components/bn-chart-time.js +1 -1
  142. package/dist/components/bn-component-style.js +1 -1
  143. package/dist/components/bn-context.js +1 -1
  144. package/dist/components/bn-dataset.js +1 -1
  145. package/dist/components/bn-datasource.js +1 -1
  146. package/dist/components/bn-footer.js +1 -1
  147. package/dist/components/bn-grid.js +1 -1
  148. package/dist/components/bn-image.js +1 -1
  149. package/dist/components/bn-internationalization.js +1 -1
  150. package/dist/components/bn-layout-card.js +1 -1
  151. package/dist/components/bn-layout-page.js +1 -1
  152. package/dist/components/bn-message.js +1 -1
  153. package/dist/components/bn-page.js +1 -1
  154. package/dist/components/bn-ruleset.js +1 -1
  155. package/dist/components/bn-scaling-group.js +1 -1
  156. package/dist/components/{ibcs-chart-bubble.d.ts → bn-table-renderer.d.ts} +4 -4
  157. package/dist/components/bn-table-renderer.js +1 -0
  158. package/dist/components/bn-table.js +1 -1
  159. package/dist/components/bn-text.js +1 -1
  160. package/dist/components/{editor-companion.d.ts → bn-title-renderer.d.ts} +4 -4
  161. package/dist/components/bn-title-renderer.js +1 -0
  162. package/dist/components/bn-title.js +1 -1
  163. package/dist/components/bn-tree.js +1 -1
  164. package/dist/components/index.js +1 -1
  165. package/dist/components/p-B1nL0yOa.js +1 -0
  166. package/dist/components/p-B7uwck1J.js +1 -0
  167. package/dist/components/p-BDS_jiow.js +1 -0
  168. package/dist/components/p-BIIDTtcR.js +1 -0
  169. package/dist/components/p-BQMKgvEC.js +1 -0
  170. package/dist/components/p-BSV_vyqs.js +1 -0
  171. package/dist/components/p-BVKLCz2k.js +1 -0
  172. package/dist/components/p-BWBHlztH.js +1 -0
  173. package/dist/components/p-BXrPfAvP.js +1 -0
  174. package/dist/components/p-Ba9PUiBp.js +1 -0
  175. package/dist/components/p-BpCL2bfw.js +1 -0
  176. package/dist/components/p-BpsXOtoW.js +1 -0
  177. package/dist/components/p-Bs-YxJEt.js +1 -0
  178. package/dist/components/p-CGI6XIaK.js +1 -0
  179. package/dist/components/p-CMM8vtHW.js +1 -0
  180. package/dist/components/p-COqIkH1M.js +1 -0
  181. package/dist/components/p-CYwd_ZNM.js +1 -0
  182. package/dist/components/p-CkW23yp2.js +1 -0
  183. package/dist/components/p-CtBM3KFY.js +1 -0
  184. package/dist/{bn-template-engine/p-DFmSrSnf.js → components/p-CurWSJkH.js} +1 -1
  185. package/dist/components/p-CxPSvrcF.js +1 -0
  186. package/dist/components/p-D2Epww9R.js +1 -0
  187. package/dist/components/p-D5-dYgK_.js +1 -0
  188. package/dist/components/p-D6YGOYV1.js +2 -0
  189. package/dist/components/p-DEHnizot.js +1 -0
  190. package/dist/components/p-DIyUaSBg.js +1 -0
  191. package/dist/components/p-DPLcGhVt.js +1 -0
  192. package/dist/components/p-DUHp_9X-.js +1 -0
  193. package/dist/components/p-DYG9FH_u.js +1 -0
  194. package/dist/components/p-DdGnuNtc.js +1 -0
  195. package/dist/components/p-Dlb4ncGF.js +1 -0
  196. package/dist/components/p-Dm55bMs2.js +1 -0
  197. package/dist/components/p-Dq1AzGKX.js +1 -0
  198. package/dist/components/p-Dq4KMCDU.js +1 -0
  199. package/dist/components/p-DsOaqeTN.js +1 -0
  200. package/dist/components/p-Ds_BSK8v.js +1 -0
  201. package/dist/components/p-LZ9lAY8T.js +1 -0
  202. package/dist/components/p-U3zkcEJZ.js +1 -0
  203. package/dist/components/p-WzaayhTX.js +1 -0
  204. package/dist/components/p-X9hpquOX.js +1 -0
  205. package/dist/components/p-Xb6Ilq8u.js +1 -0
  206. package/dist/components/p-ey23VlID.js +1 -0
  207. package/dist/components/p-jbp6YiHf.js +1 -0
  208. package/dist/components/p-oJjMz8JF.js +1 -0
  209. package/dist/components/p-xhiPDAZa.js +1 -0
  210. package/dist/components/p-xpguaboj.js +1 -0
  211. package/dist/esm/{bn-asset_28.entry.js → bn-annotation-layer_30.entry.js} +24689 -23899
  212. package/dist/esm/bn-grid.entry.js +11 -63
  213. package/dist/esm/bn-image.entry.js +4 -5
  214. package/dist/esm/bn-internationalization.entry.js +9 -5
  215. package/dist/esm/bn-ruleset.entry.js +6 -7
  216. package/dist/esm/bn-template-engine.js +3 -3
  217. package/dist/esm/bn-text.entry.js +12 -12
  218. package/dist/esm/{diagnostics-vw6TKMiT.js → diagnostics-Cyqy1zDT.js} +48 -2
  219. package/dist/esm/{index-C5UYpZUU.js → index-CCZcKl0Q.js} +1 -1
  220. package/dist/esm/loader.js +3 -3
  221. package/dist/esm/{withBodyObserver-DD_-r04o.js → withBodyObserver-JcRB9OPQ.js} +2 -2
  222. package/dist/esm/{context-protocol-CdTp19uA.js → withHasError-l3cMN-oP.js} +458 -14
  223. package/dist/esm/{withStyled-BDEyKd_H.js → withStyled-DGOiR00Q.js} +17 -29
  224. package/dist/esm/{sanitizeHtml-C5bFtARM.js → withTranslation-BpO8BC5B.js} +144 -126
  225. package/dist/schemas/axis.schema.json +52 -0
  226. package/dist/schemas/i18n.schema.json +31 -0
  227. package/dist/schemas/partof.schema.json +33 -0
  228. package/dist/schemas/ruleset.schema.json +59 -0
  229. package/dist/schemas/stack.schema.json +51 -0
  230. package/dist/schemas/theme.schema.json +604 -0
  231. package/dist/schemas/thereof.schema.json +34 -0
  232. package/dist/types/components/bn-annotation-layer/bn-annotation-layer.d.ts +81 -0
  233. package/dist/types/components/bn-annotation-layer/utils/marks.d.ts +69 -0
  234. package/dist/types/components/bn-annotation-layer/utils/matchPoint.d.ts +17 -0
  235. package/dist/types/components/bn-annotation-list/bn-annotation-list.d.ts +35 -0
  236. package/dist/types/components/bn-body/bn-body.d.ts +5 -0
  237. package/dist/types/components/bn-card/bn-card.d.ts +5 -0
  238. package/dist/types/components/bn-chart-bubble/bn-chart-bubble-renderer/bn-chart-bubble-renderer.d.ts +97 -0
  239. package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +20 -2
  240. package/dist/types/components/bn-chart-bullet/bn-chart-bullet-renderer/bn-chart-bullet-renderer.d.ts +81 -0
  241. package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +21 -3
  242. package/dist/types/components/bn-chart-bullet/utils/BulletChart.d.ts +2 -0
  243. package/dist/types/components/bn-chart-bullet/utils/model/BulletChartStyle.d.ts +2 -2
  244. package/dist/types/components/bn-chart-scatter/bn-chart-scatter-renderer/bn-chart-scatter-renderer.d.ts +85 -0
  245. package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +20 -2
  246. package/dist/types/components/bn-chart-structure/{ibcs-chart-structure.d.ts → bn-chart-structure-renderer/bn-chart-structure-renderer.d.ts} +43 -13
  247. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +29 -17
  248. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
  249. package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +5 -0
  250. package/dist/types/components/bn-chart-structure/utils/elements/Marker.d.ts +1 -0
  251. package/dist/types/components/bn-chart-structure/utils/elements/StackedBar.d.ts +2 -1
  252. package/dist/types/components/bn-chart-structure/utils/model/DataPoint.d.ts +3 -0
  253. package/dist/types/components/bn-chart-time/{ibcs-chart-time.d.ts → bn-chart-time-renderer/bn-chart-time-renderer.d.ts} +50 -17
  254. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +36 -66
  255. package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +7 -0
  256. package/dist/types/components/bn-chart-time/utils/elements/Label.d.ts +5 -0
  257. package/dist/types/components/bn-chart-time/utils/elements/LineSeries.d.ts +5 -1
  258. package/dist/types/components/bn-chart-time/utils/elements/Marker.d.ts +1 -0
  259. package/dist/types/components/bn-chart-time/utils/elements/StackedColumn.d.ts +2 -1
  260. package/dist/types/components/bn-chart-time/utils/factories/ScenarioFactory.d.ts +1 -1
  261. package/dist/types/components/bn-chart-time/utils/model/DataPoint.d.ts +3 -0
  262. package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +2 -8
  263. package/dist/types/components/bn-context/bn-context.d.ts +7 -1
  264. package/dist/types/components/bn-dataset/bn-dataset.d.ts +2 -2
  265. package/dist/types/components/bn-datasource/bn-datasource.d.ts +2 -2
  266. package/dist/types/components/bn-footer/bn-footer.d.ts +5 -7
  267. package/dist/types/components/bn-grid/bn-grid.d.ts +8 -6
  268. package/dist/types/components/bn-image/bn-image.d.ts +4 -0
  269. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +0 -1
  270. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +0 -1
  271. package/dist/types/components/bn-message/bn-message.d.ts +5 -0
  272. package/dist/types/components/bn-page/bn-page.d.ts +5 -0
  273. package/dist/types/components/bn-table/{ibcs-table.d.ts → bn-table-renderer/bn-table-renderer.d.ts} +49 -12
  274. package/dist/types/components/bn-table/bn-table.d.ts +48 -49
  275. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +2 -0
  276. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +2 -1
  277. package/dist/types/components/bn-table/utils/elements/TableRow.d.ts +3 -0
  278. package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +9 -2
  279. package/dist/types/components/bn-text/bn-text.d.ts +19 -1
  280. package/dist/types/components/bn-title/{ibcs-title/ibcs-title.d.ts → bn-title-renderer/bn-title-renderer.d.ts} +15 -4
  281. package/dist/types/components/bn-title/bn-title.d.ts +15 -3
  282. package/dist/types/components/bn-tree/bn-tree.d.ts +6 -2
  283. package/dist/types/components.d.ts +2070 -2406
  284. package/dist/types/context/context-protocol.d.ts +2 -0
  285. package/dist/types/context/scopedDb.d.ts +9 -12
  286. package/dist/types/index.d.ts +0 -1
  287. package/dist/types/schemas.d.ts +50 -0
  288. package/dist/types/stores/componentStyles.d.ts +8 -0
  289. package/dist/types/stores/createScopedStores.d.ts +1 -0
  290. package/dist/types/stores/internationalization.d.ts +3 -2
  291. package/dist/types/stores/ruleSets.d.ts +15 -3
  292. package/dist/types/utils/annotations.d.ts +45 -0
  293. package/dist/types/utils/autoFit.d.ts +2 -2
  294. package/dist/types/utils/emptyState.d.ts +1 -1
  295. package/dist/types/utils/ibcsRuleSet.d.ts +16 -0
  296. package/dist/types/utils/layoutState/dataPoint.d.ts +13 -0
  297. package/dist/types/utils/layoutState/geometry.d.ts +12 -0
  298. package/dist/types/utils/layoutState/index.d.ts +1 -0
  299. package/dist/types/utils/layoutState/svgChartElements.d.ts +9 -6
  300. package/dist/types/utils/layoutState/types.d.ts +29 -0
  301. package/dist/types/utils/model/ChartStyles.d.ts +2 -1
  302. package/dist/types/utils/scaling.d.ts +2 -0
  303. package/dist/types/utils/validate.d.ts +0 -1
  304. package/dist/types/utils/withComponentStyle.d.ts +4 -4
  305. package/dist/types/utils/withDataset.d.ts +3 -3
  306. package/dist/types/utils/withHasError.d.ts +22 -1
  307. package/dist/types/utils/withRuleSet.d.ts +3 -2
  308. package/dist/types/utils/withTranslation.d.ts +1 -2
  309. package/dist/types/utils/xy/model/ScaleFactorsXYChart.d.ts +6 -7
  310. package/dist/types/utils/xy/pointKey.d.ts +9 -0
  311. package/package.json +24 -8
  312. package/readme.md +14 -8
  313. package/dist/bn-template-engine/assets/bar.png +0 -0
  314. package/dist/bn-template-engine/assets/matrix.png +0 -0
  315. package/dist/bn-template-engine/p-5075771a.entry.js +0 -1
  316. package/dist/bn-template-engine/p-5d516435.entry.js +0 -1
  317. package/dist/bn-template-engine/p-5e90e728.entry.js +0 -1
  318. package/dist/bn-template-engine/p-9ef7e132.entry.js +0 -1
  319. package/dist/bn-template-engine/p-9f7a1980.entry.js +0 -1
  320. package/dist/bn-template-engine/p-BeXgxHkW.js +0 -1
  321. package/dist/bn-template-engine/p-C5UYpZUU.js +0 -2
  322. package/dist/bn-template-engine/p-CH0bpt_k.js +0 -1
  323. package/dist/bn-template-engine/p-DI3efDSV.js +0 -1
  324. package/dist/bn-template-engine/p-DXLTTILG.js +0 -1
  325. package/dist/bn-template-engine/p-DtP4jqG5.js +0 -1
  326. package/dist/bn-template-engine/p-a8281b71.entry.js +0 -1
  327. package/dist/bn-template-engine/p-b31277e7.entry.js +0 -1
  328. package/dist/bn-template-engine/p-b396ac84.entry.js +0 -1
  329. package/dist/cjs/bn-template.cjs.entry.js +0 -18
  330. package/dist/cjs/editor-companion.cjs.entry.js +0 -56
  331. package/dist/cjs/withHasError-qGW_yqIv.js +0 -426
  332. package/dist/collection/components/bn-footer/assets/bar.png +0 -0
  333. package/dist/collection/components/bn-footer/assets/matrix.png +0 -0
  334. package/dist/collection/components/bn-message/assets/bar.png +0 -0
  335. package/dist/collection/components/bn-message/assets/matrix.png +0 -0
  336. package/dist/collection/components/bn-template/bn-template.js +0 -38
  337. package/dist/collection/components/editor-companion/editor-companion.css +0 -3
  338. package/dist/collection/components/editor-companion/editor-companion.js +0 -137
  339. package/dist/collection/utils/templateId.js +0 -12
  340. package/dist/collection/utils/testing/fakeGroup.js +0 -21
  341. package/dist/collection/utils/testing/hostFont.js +0 -20
  342. package/dist/collection/utils/testing/mutationObserver.js +0 -44
  343. package/dist/collection/utils/testing/structureChart.js +0 -26
  344. package/dist/collection/utils/testing/timeChart.js +0 -28
  345. package/dist/components/AxisConfig.js +0 -1
  346. package/dist/components/CompareUtil.js +0 -1
  347. package/dist/components/DataFormatDigits.js +0 -1
  348. package/dist/components/DateStringFactory.js +0 -1
  349. package/dist/components/LabelCollisionManager.js +0 -1
  350. package/dist/components/Order.js +0 -1
  351. package/dist/components/SVGStyle.js +0 -1
  352. package/dist/components/SVGVariancesStyleGroup.js +0 -1
  353. package/dist/components/StringAdapter.js +0 -1
  354. package/dist/components/VarianceMeasure.js +0 -1
  355. package/dist/components/XYChartDataRow.js +0 -1
  356. package/dist/components/bn-body2.js +0 -1
  357. package/dist/components/bn-card2.js +0 -1
  358. package/dist/components/bn-footer2.js +0 -1
  359. package/dist/components/bn-message2.js +0 -1
  360. package/dist/components/bn-page2.js +0 -1
  361. package/dist/components/bn-template.js +0 -1
  362. package/dist/components/bn-title2.js +0 -1
  363. package/dist/components/checkXYOverflow.js +0 -1
  364. package/dist/components/contentDecoder.js +0 -1
  365. package/dist/components/context-protocol.js +0 -1
  366. package/dist/components/editor-companion.js +0 -1
  367. package/dist/components/formatter.js +0 -1
  368. package/dist/components/geometry.js +0 -1
  369. package/dist/components/ibcs-chart-bubble.js +0 -1
  370. package/dist/components/ibcs-chart-bubble2.js +0 -1
  371. package/dist/components/ibcs-chart-bullet.js +0 -1
  372. package/dist/components/ibcs-chart-bullet2.js +0 -1
  373. package/dist/components/ibcs-chart-scatter.js +0 -1
  374. package/dist/components/ibcs-chart-scatter2.js +0 -1
  375. package/dist/components/ibcs-chart-structure.d.ts +0 -11
  376. package/dist/components/ibcs-chart-structure.js +0 -1
  377. package/dist/components/ibcs-chart-structure2.js +0 -1
  378. package/dist/components/ibcs-chart-time.d.ts +0 -11
  379. package/dist/components/ibcs-chart-time.js +0 -1
  380. package/dist/components/ibcs-chart-time2.js +0 -1
  381. package/dist/components/ibcs-table.d.ts +0 -11
  382. package/dist/components/ibcs-table.js +0 -1
  383. package/dist/components/ibcs-table2.js +0 -1
  384. package/dist/components/ibcs-title.d.ts +0 -11
  385. package/dist/components/ibcs-title.js +0 -1
  386. package/dist/components/ibcs-title2.js +0 -1
  387. package/dist/components/layoutTemplate.js +0 -1
  388. package/dist/components/luxon.js +0 -1
  389. package/dist/components/scaling.js +0 -1
  390. package/dist/components/svg.esm.js +0 -1
  391. package/dist/components/svgChartElements.js +0 -1
  392. package/dist/components/types.js +0 -1
  393. package/dist/components/validate.js +0 -1
  394. package/dist/components/withBodyObserver.js +0 -1
  395. package/dist/components/withComponentStatus.js +0 -1
  396. package/dist/components/withComponentStyle.js +0 -1
  397. package/dist/components/withDataset.js +0 -1
  398. package/dist/components/withHasError.js +0 -1
  399. package/dist/components/withRuleSet.js +0 -1
  400. package/dist/components/withScalingGroup.js +0 -1
  401. package/dist/components/withStyled.js +0 -1
  402. package/dist/components/withTranslation.js +0 -1
  403. package/dist/esm/bn-template.entry.js +0 -16
  404. package/dist/esm/editor-companion.entry.js +0 -54
  405. package/dist/esm/withHasError-73WV2SP5.js +0 -422
  406. package/dist/types/components/bn-chart-bubble/ibcs-chart-bubble.d.ts +0 -59
  407. package/dist/types/components/bn-chart-bullet/ibcs-chart-bullet.d.ts +0 -53
  408. package/dist/types/components/bn-chart-scatter/ibcs-chart-scatter.d.ts +0 -54
  409. package/dist/types/components/bn-template/bn-template.d.ts +0 -10
  410. package/dist/types/components/editor-companion/editor-companion.d.ts +0 -20
  411. package/dist/types/utils/templateId.d.ts +0 -9
  412. package/dist/types/utils/testing/fakeGroup.d.ts +0 -8
  413. package/dist/types/utils/testing/hostFont.d.ts +0 -16
  414. package/dist/types/utils/testing/mutationObserver.d.ts +0 -5
  415. package/dist/types/utils/testing/structureChart.d.ts +0 -5
  416. package/dist/types/utils/testing/timeChart.d.ts +0 -5
  417. /package/dist/collection/components/bn-chart-bubble/{ibcs-chart-bubble.css → bn-chart-bubble-renderer/bn-chart-bubble-renderer.css} +0 -0
  418. /package/dist/collection/components/bn-chart-bullet/{ibcs-chart-bullet.css → bn-chart-bullet-renderer/bn-chart-bullet-renderer.css} +0 -0
  419. /package/dist/collection/components/bn-chart-scatter/{ibcs-chart-scatter.css → bn-chart-scatter-renderer/bn-chart-scatter-renderer.css} +0 -0
  420. /package/dist/collection/components/bn-chart-time/{ibcs-chart-time.css → bn-chart-time-renderer/bn-chart-time-renderer.css} +0 -0
  421. /package/dist/collection/components/bn-table/{ibcs-table.css → bn-table-renderer/bn-table-renderer.css} +0 -0
  422. /package/dist/collection/components/bn-title/{ibcs-title/ibcs-title.css → bn-title-renderer/bn-title-renderer.css} +0 -0
  423. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/index.js +0 -0
  424. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/MeasureEntriy.js +0 -0
  425. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TimePeriod.js +0 -0
  426. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TitleConfig.js +0 -0
  427. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/index.js +0 -0
  428. /package/dist/components/{stackColors.js → p-4q8nRcWC.js} +0 -0
  429. /package/dist/components/{merge.js → p-B2NXsfMz.js} +0 -0
  430. /package/dist/components/{layoutObserver.js → p-B6kka9sT.js} +0 -0
  431. /package/dist/components/{NumericScale.js → p-BJmwHV0a.js} +0 -0
  432. /package/dist/components/{stackLayout.js → p-BTnRaHPb.js} +0 -0
  433. /package/dist/components/{emotion-hash.esm.js → p-BYBpC0EO.js} +0 -0
  434. /package/dist/components/{diagnostics.js → p-CckAR27O.js} +0 -0
  435. /package/dist/components/{SiPrefix.js → p-CeE4_3wQ.js} +0 -0
  436. /package/dist/components/{queryError.js → p-ClruFZD_.js} +0 -0
  437. /package/dist/components/{sanitizeHtml.js → p-CyUmrWfW.js} +0 -0
  438. /package/dist/components/{TableAttribute.js → p-DCPLGEs_.js} +0 -0
  439. /package/dist/components/{parentDimensions.js → p-DD1zlev_.js} +0 -0
  440. /package/dist/components/{pageFormats.js → p-DM7fwmH4.js} +0 -0
  441. /package/dist/components/{emptyState.js → p-DakXa7Dp.js} +0 -0
  442. /package/dist/components/{relativeVariance.js → p-fCjsrD7I.js} +0 -0
  443. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/Title.d.ts +0 -0
  444. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/TitleDataSetFactory.d.ts +0 -0
  445. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/index.d.ts +0 -0
  446. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/MeasureEntriy.d.ts +0 -0
  447. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TimePeriod.d.ts +0 -0
  448. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TitleConfig.d.ts +0 -0
  449. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/index.d.ts +0 -0
@@ -6,6 +6,7 @@ import { DataFormatDigits } from "../../../../components";
6
6
  import { SiPrefix } from "../../../../utils/model/SiPrefix";
7
7
  import { StackMode } from "../../../../utils/constants";
8
8
  import { StackLayout, StackSegment } from "../../../../utils/stackLayout";
9
+ import { DataPointKey } from "../../../../utils/layoutState/types";
9
10
  /**
10
11
  * Renders a single segment within a stacked bar column in a time chart.
11
12
  *
@@ -37,5 +38,5 @@ export declare class StackedColumn {
37
38
  /**
38
39
  * Draw the signed total of the stack: above the positive side, or below the negative side for a negative total.
39
40
  */
40
- drawTotalLabel(dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix): void;
41
+ drawTotalLabel(dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix, key?: DataPointKey): void;
41
42
  }
@@ -61,5 +61,5 @@ export declare class ScenarioFactory {
61
61
  * Moves the label group to the front of the SVG tree so labels render on top of all geometry.
62
62
  */
63
63
  moveLabelsToFront(): void;
64
- createLineSeries(dataPoints: LineSeriesDataPoint[], scenarioName: string): LineSeries;
64
+ createLineSeries(dataPoints: LineSeriesDataPoint[], scenarioName: string, lineSlot?: string): LineSeries;
65
65
  }
@@ -1,4 +1,5 @@
1
1
  import { Scenario } from "./index";
2
+ import { DataPointKey } from "../../../../utils/layoutState/types";
2
3
  /**
3
4
  * A single renderable data point in a time-series chart.
4
5
  *
@@ -18,6 +19,8 @@ export declare class DataPoint {
18
19
  pixelPerUnit: number;
19
20
  /** Variance direction for IBCS color coding (POS=green, NEG=red, NEU=grey). */
20
21
  variance: Scenario | string;
22
+ /** The data row this point shows. Written as `data-bn-*` attributes on what is drawn for it. */
23
+ key?: DataPointKey;
21
24
  constructor(value: number | null | undefined, scenario: Scenario | string | null, pixelPerUnit: number | null, variance: Scenario | string | null);
22
25
  isEmpty(): boolean;
23
26
  /** Returns the value scaled to pixel height for absolute (non-percentage) bars. */
@@ -1,9 +1,8 @@
1
- import { AggregationLevel, AxisLabelsMode, ChartMode, StackBy, StackMode, StackOrder } from "../../../../utils/constants";
1
+ import { AxisLabelsMode, ChartMode, StackBy, StackMode, StackOrder } from "../../../../utils/constants";
2
2
  import { DateDistance } from "../../../../utils/DateStringFactory";
3
3
  import { IAdapter } from "../../../../utils/helper/IAdapter";
4
4
  import { StringAdapter } from "../../../../utils/helper/StringAdapter";
5
5
  import { DataFormatDigits, DataFormatDigitsAdapter } from "../../../../utils/model/DataFormatDigits";
6
- import { Order, OrderAdapter } from "../../../../utils/model/Order";
7
6
  import { SiPrefix } from "../../../../utils/model/SiPrefix";
8
7
  import { TimeChartDataRow, TimeChartDataRowAdapter } from "./TimeChartDataRow";
9
8
  import { AlaSQLDatabase } from "../../../../context/scopedDb";
@@ -30,10 +29,6 @@ export declare class TimeChartComponentConfig {
30
29
  pixelPerUnit: number;
31
30
  /** Vertical scale factor for percentage variances: pixels per 1.0 (=100%). */
32
31
  pixelPerPercentage: number;
33
- /** Maximum data points to display; 0 means unlimited. */
34
- limit: number;
35
- sortOrder: Order;
36
- level: AggregationLevel;
37
32
  /** Pixel offset from left edge for horizontal alignment across multiple charts. -1 disables sync. */
38
33
  leftSideOffsetForHorizontalSync: number;
39
34
  /** Date granularity (year, quarter, month, etc.). AUTO auto-detects from data. */
@@ -66,13 +61,12 @@ export declare class TimeChartComponentConfig {
66
61
  */
67
62
  export declare class TimeChartComponentConfigAdapter implements IAdapter<TimeChartComponentConfig> {
68
63
  private dataRowAdapter;
69
- private orderAdapter;
70
64
  private stringAdapter;
71
65
  private dataFormatDigitsAdapter;
72
66
  private db;
73
67
  private fromExpr;
74
68
  private onQueryError?;
75
- constructor(dataRowAdapter: TimeChartDataRowAdapter, orderAdapter: OrderAdapter, stringAdapter: StringAdapter, dataFormatDigitsAdapter: DataFormatDigitsAdapter, db: AlaSQLDatabase, fromExpr: string, onQueryError?: (e: unknown) => void);
69
+ constructor(dataRowAdapter: TimeChartDataRowAdapter, stringAdapter: StringAdapter, dataFormatDigitsAdapter: DataFormatDigitsAdapter, db: AlaSQLDatabase, fromExpr: string, onQueryError?: (e: unknown) => void);
76
70
  adapt(data: Record<string, unknown>): TimeChartComponentConfig;
77
71
  default(): TimeChartComponentConfig;
78
72
  }
@@ -13,12 +13,18 @@ export declare class Context {
13
13
  * part of the typed public API rather than a bare DOM attribute.
14
14
  */
15
15
  i18nNamespace: string;
16
+ /**
17
+ * Orientation of the sheets the document is printed on: `landscape` or
18
+ * `portrait`. A `<bn-layout-page>` with the other orientation is turned
19
+ * onto the sheet. Without it no page is turned.
20
+ */
21
+ renderOrientation?: "landscape" | "portrait";
16
22
  setLocale(newValue: string): void;
17
23
  /** The page numbers this context wrote. A number that is not in here was set by the author and is left alone. */
18
24
  private readonly assignedPageNumbers;
19
25
  private pageObserver;
20
26
  private pageSizeStyle;
21
- private renderOrientation;
27
+ private lastRenderOrientation;
22
28
  connectedCallback(): void;
23
29
  disconnectedCallback(): void;
24
30
  /** Numbers the pages and writes the paper size of the document. */
@@ -8,7 +8,7 @@
8
8
  * parsed body directly to the `datasets` store.
9
9
  *
10
10
  * Set the `src` attribute to fetch JSON from an HTTP endpoint instead and
11
- * write it to the `datasets` store. Set the `interval` prop (in seconds)
11
+ * write it to the `datasets` store. Set the `refresh-interval` attribute (in seconds)
12
12
  * to enable periodic re-fetching.
13
13
  */
14
14
  export declare class Dataset {
@@ -45,7 +45,7 @@ export declare class Dataset {
45
45
  * interval. Has no effect for SQL, inline JSON or compressed content.
46
46
  * Set to `0` or leave unset to disable polling.
47
47
  */
48
- interval: number;
48
+ refreshInterval: number;
49
49
  /**
50
50
  * URL to fetch the dataset JSON from. When set, the body is ignored and
51
51
  * the fetched payload is written directly to the `datasets` store
@@ -5,7 +5,7 @@
5
5
  * 1. **Inline JSON** - Place JSON text inside the element body (default).
6
6
  * 2. **Compressed payload** - Set `raw="false"` and provide `<hash>:<base64_gzip>` format.
7
7
  * 3. **URL** - Set the `src` attribute to fetch JSON from an HTTP endpoint.
8
- * Set the `interval` prop (in seconds) to enable periodic re-fetching
8
+ * Set the `refresh-interval` attribute (in seconds) to enable periodic re-fetching
9
9
  * (polling).
10
10
  *
11
11
  * The body is always inline data and is ignored while `src` is set.
@@ -31,7 +31,7 @@ export declare class Datasource {
31
31
  * interval. Has no effect for inline JSON or compressed content.
32
32
  * Set to `0` or leave unset to disable polling.
33
33
  */
34
- interval: number;
34
+ refreshInterval: number;
35
35
  /**
36
36
  * URL to fetch the JSON from. When set, the body is ignored.
37
37
  */
@@ -4,6 +4,11 @@ export declare class Footer {
4
4
  private readonly errors;
5
5
  constructor();
6
6
  private getFontStyles;
7
+ /**
8
+ * Name of the component style to use (the `name` of a
9
+ * `<bn-component-style>`). Its values go on top of the default style.
10
+ */
11
+ selectedStyle?: string;
7
12
  /**
8
13
  * Page label: a number or any text, e.g. `3` or `A-1`.
9
14
  * Is displayed if displayPageNumber == true
@@ -14,16 +19,9 @@ export declare class Footer {
14
19
  * <br />If empty string (`''` or `null`) the footer row is omitted
15
20
  */
16
21
  text: string;
17
- /**
18
- * code .
19
- * <br />If empty string (`''` or `null`) the footer row is omitted
20
- */
21
- code: string;
22
22
  /**
23
23
  * Toggle if pagenumer label is displayed
24
24
  */
25
25
  displayPageNumber: boolean;
26
- isValidHttpUrl(string: any): boolean;
27
- prepareAssetUrl(imgUrl: string): string;
28
26
  render(): any;
29
27
  }
@@ -10,6 +10,11 @@ export declare class Grid {
10
10
  private gridConfig;
11
11
  private readonly errors;
12
12
  private readonly componentStyle;
13
+ /**
14
+ * Name of the component style to use (the `name` of a
15
+ * `<bn-component-style>`). Its values go on top of the default style.
16
+ */
17
+ selectedStyle?: string;
13
18
  /**
14
19
  * Title displayed at top-left of the grid.
15
20
  */
@@ -31,12 +36,11 @@ export declare class Grid {
31
36
  /**
32
37
  * Whether to display row headers.
33
38
  */
34
- showRowHeaders: string;
35
- validateShowRowHeaders(newValue: string): void;
39
+ showRowHeaders: boolean;
36
40
  /**
37
41
  * Whether to display column headers.
38
42
  */
39
- showColumnHeaders: string;
43
+ showColumnHeaders: boolean;
40
44
  /**
41
45
  * I18n namespace inherited by this grid's children (their own namespace
42
46
  * wins). Resolved at runtime from the `i18n-namespace` attribute by the
@@ -45,12 +49,10 @@ export declare class Grid {
45
49
  * public API rather than a bare DOM attribute.
46
50
  */
47
51
  i18nNamespace: string;
48
- validateShowColumnHeaders(newValue: string): void;
49
52
  /**
50
53
  * Whether to display divider lines between cells.
51
54
  */
52
- showBorders: string;
53
- validateShowBorders(newValue: string): void;
55
+ showBorders: boolean;
54
56
  /**
55
57
  * Width of row header column. Accepts CSS values (e.g., 'auto', '100px', '20%').
56
58
  */
@@ -7,6 +7,10 @@ export declare class Image {
7
7
  connectedCallback(): void;
8
8
  private getFontStyles;
9
9
  /**
10
+ * Name of the component style to use (the `name` of a
11
+ * `<bn-component-style>`). Its values go on top of the default style.
12
+ */
13
+ selectedStyle?: string;
10
14
  /**
11
15
  * Url of the image.
12
16
  * <br />
@@ -205,7 +205,6 @@ export declare class LayoutCard {
205
205
  private getSlots;
206
206
  private extractSlotNames;
207
207
  private getTemplatePattern;
208
- getNumberOfSlot(name: string): Promise<number>;
209
208
  componentWillRender(): void;
210
209
  setCardClass(): string;
211
210
  /** The value of a prop for the inner title. An unresolved keyword reaches it as blank. */
@@ -227,7 +227,6 @@ export declare class LayoutPage {
227
227
  private extractSlotNames;
228
228
  private getTemplateAreas;
229
229
  private getGridTemplateColumns;
230
- getNumberOfSlot(name: string): Promise<number>;
231
230
  private mirror;
232
231
  componentWillRender(): void;
233
232
  /**
@@ -6,6 +6,11 @@ export declare class Footer {
6
6
  constructor();
7
7
  connectedCallback(): void;
8
8
  private getFontStyles;
9
+ /**
10
+ * Name of the component style to use (the `name` of a
11
+ * `<bn-component-style>`). Its values go on top of the default style.
12
+ */
13
+ selectedStyle?: string;
9
14
  /**
10
15
  * Message text. Rendered as HTML, sanitized against XSS
11
16
  * (only safe tags such as `br`, `b`, `i`, `strong`, `em`, `a` and their
@@ -3,6 +3,11 @@ export declare class Page {
3
3
  private readonly componentStyle;
4
4
  private readonly errors;
5
5
  constructor();
6
+ /**
7
+ * Name of the component style to use (the `name` of a
8
+ * `<bn-component-style>`). Its values go on top of the default style.
9
+ */
10
+ selectedStyle?: string;
6
11
  /**
7
12
  * Defines the size of the page
8
13
  * <br /><br />
@@ -1,13 +1,13 @@
1
- import { TableType } from "./utils/model";
2
- import { ComponentMetadata, LayoutDiagnosticItem, LayoutElement, LayoutRegion, Origins, TableDetail } from "../../utils/layoutState";
3
- import { TableDrillGroup } from "./utils/model/TableDrillGroup";
4
- import { TableAttribute } from "./utils/model/TableAttribute";
5
- import { DataFormat, I18nMode, MeasureType, TableCategoryWidth } from "../../utils/constants";
6
- import { RuleSetConfig } from "../../stores/ruleSets";
7
- import { DataFormatDigits } from "../../utils/model/DataFormatDigits";
8
- import { Order } from "../../utils/model/Order";
9
- import { AutoScalingReport } from "../../utils/scaling";
10
- import { ErrorDispatcher } from "../../utils/withHasError";
1
+ import { TableType } from "../utils/model";
2
+ import { ComponentMetadata, LayoutDiagnosticItem, LayoutElement, LayoutRegion, Origins, TableDetail } from "../../../utils/layoutState";
3
+ import { TableDrillGroup } from "../utils/model/TableDrillGroup";
4
+ import { TableAttribute } from "../utils/model/TableAttribute";
5
+ import { DataFormat, I18nMode, MeasureType, TableCategoryWidth } from "../../../utils/constants";
6
+ import { RuleSetConfig } from "../../../stores/ruleSets";
7
+ import { DataFormatDigits } from "../../../utils/model/DataFormatDigits";
8
+ import { Order } from "../../../utils/model/Order";
9
+ import { AutoScalingReport } from "../../../utils/scaling";
10
+ import { ErrorDispatcher } from "../../../utils/withHasError";
11
11
  /** Layout-state contribution of the inner table, merged by `bn-table.getLayoutState()`. */
12
12
  export interface TableLayoutDetail {
13
13
  regions: LayoutRegion[];
@@ -24,70 +24,106 @@ export interface TableLayoutDetail {
24
24
  * columns, variance columns (with optional inline bar/pin charts), thereof/
25
25
  * partof drill-down rows, and grouped row sections. This component should
26
26
  * not be used directly; use `bn-table` instead.
27
+ * @internal
27
28
  */
28
- export declare class IbcsTable {
29
+ export declare class BnTableRenderer {
29
30
  private element;
30
31
  private readonly componentStyle;
31
32
  /**
32
33
  * Name of the dataset (a table or view in the shared alasql database). The
33
34
  * inner `Table` helper queries it directly - no array copy.
35
+ * @internal
34
36
  */
35
37
  tableName: string;
36
38
  /**
37
39
  * Bumped by the outer `bn-table` whenever the dataset's data changes. Triggers
38
40
  * a re-render via Stencil's prop-change detection.
41
+ * @internal
39
42
  */
40
43
  dataVersion: number;
41
44
  /**
42
45
  * Name of a registered component style, forwarded by the outer `bn-table`.
43
46
  * Reflected so the `withComponentStyle` mixin can read the `selected-style`
44
47
  * attribute from the host element.
48
+ * @internal
45
49
  */
46
50
  selectedStyle?: string;
47
51
  /**
48
52
  * Label of the grand-total row (`sum` / `opt` types only). The default
49
53
  * `SUM_TOTAL` is an i18n key that resolves to the IBCS total symbol (❖).
54
+ * @internal
50
55
  */
51
56
  sumTitle: string;
57
+ /** @internal */
52
58
  scenarios: string[];
59
+ /** @internal */
53
60
  scenariosDataFormat: DataFormat;
61
+ /** @internal */
54
62
  grouped?: boolean;
63
+ /** @internal */
55
64
  limit: number;
65
+ /** @internal */
56
66
  showGroupTitle: boolean;
67
+ /** @internal */
57
68
  thereof: TableDrillGroup[];
69
+ /** @internal */
58
70
  partof: TableDrillGroup[];
71
+ /** @internal */
59
72
  order: Order;
73
+ /** @internal */
60
74
  categorythereof: Map<string, Record<string, unknown>[]>;
75
+ /** @internal */
61
76
  attributeColumns: TableAttribute[];
77
+ /** @internal */
62
78
  type: TableType;
79
+ /** @internal */
63
80
  categoryWidth: TableCategoryWidth;
81
+ /** @internal */
64
82
  dataFormatDigits: DataFormatDigits;
83
+ /** @internal */
65
84
  ruleSetConfig?: RuleSetConfig;
85
+ /** @internal */
66
86
  i18n: Map<string, string>;
87
+ /** @internal */
67
88
  i18nMode: I18nMode;
89
+ /** @internal */
68
90
  measureScale: string;
91
+ /** @internal */
69
92
  measureUnit: string;
93
+ /** @internal */
70
94
  showMeasureScale: boolean;
95
+ /** @internal */
71
96
  measureType: MeasureType;
97
+ /** @internal */
72
98
  filter: string;
99
+ /** @internal */
73
100
  barColumns: string[];
101
+ /** @internal */
74
102
  interval: string;
75
103
  /**
76
104
  * Total width of a bar chart column, in em of the table font - the same unit
77
105
  * `categoryWidth` uses, so the two render at the same width for the same value.
106
+ * @internal
78
107
  */
79
108
  barColumnMaxWidth: number;
109
+ /** @internal */
80
110
  unitScaling: number;
111
+ /** @internal */
81
112
  percentageScaling: number;
82
113
  /**
83
114
  * Internal wrapper channel: called with the auto-fitted scaling values
84
115
  * (em per unit / em per percentage point) whenever one of them was
85
116
  * auto-resolved, so the outer `bn-table` can surface them in its AUTO_*
86
117
  * warnings. Not for end users.
118
+ * @internal
87
119
  */
88
120
  reportAutoScaling?: (report: AutoScalingReport) => void;
89
- /** The wrapper's error dispatcher: a failed query is reported through it as `ERR_sql`. Not for end users. */
121
+ /**
122
+ * The wrapper's error dispatcher: a failed query is reported through it as `ERR_sql`. Not for end users.
123
+ * @internal
124
+ */
90
125
  errors?: ErrorDispatcher;
126
+ /** @internal */
91
127
  scaleFactor: number;
92
128
  private table;
93
129
  private componentDataFormatDigits;
@@ -99,6 +135,7 @@ export declare class IbcsTable {
99
135
  * counts, and - with `detail: "full"` - per-cell geometry paired with the
100
136
  * table model (values, column keys, in-cell bar charts). Called by the
101
137
  * outer `bn-table`; not for end users.
138
+ * @internal
102
139
  */
103
140
  getLayoutDetail(origins: Origins, detail: "summary" | "full"): Promise<TableLayoutDetail>;
104
141
  render(): any;
@@ -3,10 +3,10 @@ import { ComponentLayoutState, LayoutStateOptions } from "../../utils/layoutStat
3
3
  * Public-facing wrapper for the IBCS table component.
4
4
  *
5
5
  * Accepts user-facing string/number props, validates them, and converts
6
- * them into the typed internal format expected by `ibcs-table`. Handles
6
+ * them into the typed internal format expected by `bn-table-renderer`. Handles
7
7
  * auto-scaling, dataset subscription (via `withDataset`), and i18n setup.
8
8
  * The actual table rendering (header, body, drill-down rows) is delegated
9
- * to the inner `ibcs-table` element.
9
+ * to the inner `bn-table-renderer` element.
10
10
  */
11
11
  export declare class Table {
12
12
  private element;
@@ -26,6 +26,19 @@ export declare class Table {
26
26
  private appliedScaleFactor;
27
27
  /** True when the active dataset contains rows with a blank `setname` (relevant for `interval='setname'`). */
28
28
  private hasBlankSetnames;
29
+ /**
30
+ * Name of the dataset to render (the `name` of a `<bn-dataset>`). A name
31
+ * that starts with `$` reads a `<bn-datasource>` directly, which gives a
32
+ * warning.
33
+ */
34
+ datasets?: string;
35
+ /**
36
+ * Namespace of the translations to use (the `namespace` of a
37
+ * `<bn-internationalization>`). Without it the component takes the
38
+ * `i18n-namespace` of the nearest ancestor that has one, then the built-in
39
+ * texts.
40
+ */
41
+ i18nNamespace?: string;
29
42
  /**
30
43
  * Controls proportional scaling of the entire table relative to the
31
44
  * available parent width. All visual dimensions scale together: font size,
@@ -37,7 +50,7 @@ export declare class Table {
37
50
  * Because the table's SCSS uses `em` units for padding, borders, and
38
51
  * column widths, changing the font size cascades to all layout dimensions.
39
52
  * SVG elements (bars, pins, patterns) receive the factor via the
40
- * `scaleFactor` prop on `ibcs-table` and multiply every pixel constant
53
+ * `scaleFactor` prop on `bn-table-renderer` and multiply every pixel constant
41
54
  * by it, so they stay proportional to the surrounding text.
42
55
  *
43
56
  * | Value | Behavior |
@@ -63,14 +76,14 @@ export declare class Table {
63
76
  *
64
77
  * Invalid values (negative numbers, non-numeric strings that are not
65
78
  * `"none"` or `"auto"`) fall back to the default behaviour (auto + warning)
66
- * and emit an `ERR_scale` warning.
79
+ * and emit an `WARN_scale` warning.
67
80
  *
68
81
  * **Only the width is fitted.** A table that renders taller than its
69
82
  * constrained parent is clipped by the layout cell - bottom rows and the
70
83
  * grand total simply disappear - so every render reports the measured
71
- * overflow as a `WARN_overflow` item in `has-error`: an `error` when the
72
- * size is pinned by `scale` (`"none"` or a factor), a `warning` in auto
73
- * mode. The same item reports a width overflow, which only a fixed `scale`
84
+ * overflow in `has-error`: as the error `ERR_overflow` when the size is
85
+ * pinned by `scale` (`"none"` or a factor), as the warning `WARN_overflow`
86
+ * in auto mode. The same item reports a width overflow, which only a fixed `scale`
74
87
  * can produce. Setting `scale="auto"` does not fix a height overflow: give
75
88
  * the component more space, reduce rows (`limit`), or set a smaller fixed
76
89
  * `scale`.
@@ -93,13 +106,13 @@ export declare class Table {
93
106
  constructor();
94
107
  /**
95
108
  * Name of a registered IBCS rule set (see `bn-ruleset`) used for scenario
96
- * ordering. Supports `"inherited-closest"` / `"inherited-page"` to take
97
- * over the value from an ancestor `bn-layout-card` / `bn-layout-page`.
109
+ * ordering, look and names. Supports `"inherited-closest"` / `"inherited-page"` to
110
+ * take over the value from an ancestor `bn-layout-card` / `bn-layout-page`.
98
111
  */
99
112
  ruleset?: string;
100
113
  /**
101
114
  * Name of a registered component style (see `bn-component-style`). Forwarded
102
- * to the inner `ibcs-table` so bar-chart colors and fonts follow the selected
115
+ * to the inner `bn-table-renderer` so bar-chart colors and fonts follow the selected
103
116
  * style as well.
104
117
  */
105
118
  selectedStyle?: string;
@@ -233,16 +246,14 @@ export declare class Table {
233
246
  * values: <br />
234
247
  * ```true // false```
235
248
  */
236
- grouped: string;
237
- validateGrouped(newValue: string): void;
249
+ grouped: boolean;
238
250
  /**
239
251
  * Toggles display of measure units in table header
240
252
  * <br /><br />
241
253
  * values: <br />
242
254
  * ```true // false```
243
255
  */
244
- showMeasureScale: string;
245
- validateShowMeasureScale(newValue: string): void;
256
+ showMeasureScale: boolean;
246
257
  /**
247
258
  * Toggles a title header for each (row-)group
248
259
  * the title header value is found set by 'rowgroup'
@@ -251,8 +262,7 @@ export declare class Table {
251
262
  * ```true // false```
252
263
  *
253
264
  */
254
- showGroupTitle: string;
255
- validateShowGroupTitle(newValue: string): void;
265
+ showGroupTitle: boolean;
256
266
  /**
257
267
  * Set the table type
258
268
  * <br /><br />
@@ -272,36 +282,26 @@ export declare class Table {
272
282
  limit: number;
273
283
  validateLimit(newValue: number): void;
274
284
  /**
275
- * Stringified Array of drilldown Objects {
276
- "rowGroup": string,<br />
277
- "category": string,<br />
278
- "subCategory": string,<br />
279
- },<br /><br />
280
- * rowgroup, categroy defines the location of the drill
281
- * subcategory is the displayed label of the data row
282
- *<br /><br />
285
+ * JSON array of drilldown objects with the keys `rowGroup`, `category` and
286
+ * `subCategory` (all strings, all required).
287
+ * <br /><br />
288
+ * `rowGroup` and `category` name the row the drilldown belongs to,
289
+ * `subCategory` is the label of the data row that is shown below it.
290
+ * <br /><br />
283
291
  * example:<br />
284
- * ```[{
285
- "rowGroup":"Umsatz",
286
- "category": "Applications",
287
- "subCategory": "Applications-A",
288
- },]```
292
+ * ```[{"rowGroup": "Umsatz", "category": "Applications", "subCategory": "Applications-A"}]```
289
293
  */
290
294
  thereof: string;
291
295
  validateThereOf(newValue: string): void;
292
296
  /**
293
- * Stringified Array of Partof Objects <br />{<br />
294
- "rowGroup": string,<br />
295
- "category": string<br />
296
- },<br /><br />
297
- * rowgroup, categroy defines the location of the drill
298
- * percentage of category in rowgorup
299
- *<br /><br />
297
+ * JSON array of part-of objects with the keys `rowGroup` and `category`
298
+ * (both strings, both required).
299
+ * <br /><br />
300
+ * Each object names a category. The table shows its share of the row group
301
+ * in percent.
302
+ * <br /><br />
300
303
  * example:<br />
301
- * ```[{
302
- "rowGroups":"Umsatz",
303
- "category": "Applications",
304
- },]```
304
+ * ```[{"rowGroup": "Umsatz", "category": "Applications"}]```
305
305
  */
306
306
  partof: string;
307
307
  validatePartOf(newValue: string): void;
@@ -392,15 +392,14 @@ export declare class Table {
392
392
  categoryWidth: string;
393
393
  validateCategoryWidth(newValue: string): void;
394
394
  /**
395
- * Defines which drill-column is displayed. <br />
395
+ * JSON array that defines which drill columns are shown. Each object has
396
+ * the keys `scenario`, `name` and `subGroups` (all required).
396
397
  * <br /><br />
397
- * ```scenario``` the scenaro to drill <br/>
398
- * ```group``` is a list of child columns of the parent <br/><br/>
399
- * ```subGroups``` is a list of child columns of the parent <br/><br/>
398
+ * ```scenario``` the scenario to drill <br/>
399
+ * ```name``` the label of the parent column <br/>
400
+ * ```subGroups``` the list of child columns of the parent <br/><br/>
400
401
  * example:<br />
401
- * ```[{"scenario": "ac1", "name": "DE", "subGroups": ["Berlin"]},
402
- * {"scenario": "ac2", "name": "UK", "subGroups": []}],
403
- * ```
402
+ * ```[{"scenario": "ac1", "name": "DE", "subGroups": ["Berlin"]}, {"scenario": "ac2", "name": "UK", "subGroups": []}]```
404
403
  */
405
404
  columnthereof: string | null;
406
405
  validateColumnThereOf(newValue: string | null): void;
@@ -437,7 +436,7 @@ export declare class Table {
437
436
  private _autoScaleGuard;
438
437
  componentDidRender(): void;
439
438
  /**
440
- * Reports a WARN_overflow item when the rendered table exceeds its
439
+ * Reports an overflow item when the rendered table exceeds its
441
440
  * container. The table only auto-fits its WIDTH, so nothing prevents it
442
441
  * from growing taller than the layout cell, which clips the bottom rows
443
442
  * (grand total included) without a trace - this item is the only signal.
@@ -478,7 +477,7 @@ export declare class Table {
478
477
  private prepareUnitScaling;
479
478
  private preparePercentageScaling;
480
479
  /**
481
- * Receives the auto-fitted scaling values from the inner ibcs-table
480
+ * Receives the auto-fitted scaling values from the inner bn-table-renderer
482
481
  * (em per unit / em per percentage point) and surfaces them in the AUTO_*
483
482
  * warnings, converted back to the attribute's units-per-em form so users
484
483
  * can copy them into a bn-scaling-group.
@@ -32,6 +32,8 @@ export declare class Cell {
32
32
  columnStats?: ColumnStats;
33
33
  waterfall?: WaterfallBarData;
34
34
  measureScale: number;
35
+ /** The first day of the bucket of an interval column. */
36
+ date?: string;
35
37
  constructor(scenario: string, index: number, value: number | string | null, cssStyle: string | null, type: string | null, prefix: string | null, prefixStyle: string | null, colSpan: number | null, measureScale: number | null | undefined);
36
38
  getAsHeaderList(): Array<string | number>;
37
39
  draw(dataFormatDigits: DataFormatDigits, locale?: string): string | number;
@@ -1,9 +1,10 @@
1
1
  import { FunctionalComponent } from "../../../../stencil-public-runtime";
2
2
  import { ColumnStats } from "./Cell";
3
+ import { FillPattern } from "../../../../utils/model/styles/SVGStyle";
3
4
  export interface VarianceStyle {
4
5
  stroke: string;
5
6
  fill: string;
6
- fillpattern?: string;
7
+ fillpattern?: FillPattern;
7
8
  }
8
9
  export interface ScenarioStyles {
9
10
  ac: VarianceStyle;
@@ -2,6 +2,7 @@ import { TableCategoryWidth } from "../../../../utils/constants";
2
2
  import { TableRowType } from "../model";
3
3
  import { Cell, ColumnStats } from "./Cell";
4
4
  import { WaterfallBarData } from "../helper/WaterfallCalculator";
5
+ import { DataPointKey } from "../../../../utils/layoutState/types";
5
6
  /**
6
7
  * Represents a single row in an IBCS table, containing an ordered list of Cells.
7
8
  *
@@ -24,6 +25,8 @@ export declare class TableRow {
24
25
  type: TableRowType;
25
26
  cssStyle: string;
26
27
  elements: Cell[];
28
+ /** The data this row shows. Header, group header and part-of rows have none: they cannot be addressed. */
29
+ key?: DataPointKey;
27
30
  constructor(index: number, groupIndex: number, type: TableRowType);
28
31
  private initCssStyle;
29
32
  getCells(): Cell[];