@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
@@ -1,45 +1,75 @@
1
- import { StackConfigParsed } from "./utils/model/StructureChartComponentConfig";
2
- import { StructureChartStyle } from "./utils/model/styles/StructureChartStyle";
3
- import { Order } from "../../utils/model/Order";
4
- import { AggregationLevel } from "../../utils/constants";
5
- import { ParentDimensions } from "../../utils/parentDimensions";
6
- import { AutoScalingReport } from "../../utils/scaling";
7
- import { DataFormatDigits } from "../../utils/model/DataFormatDigits";
8
- import { ErrorDispatcher } from "../../utils/withHasError";
9
- import { RuleSetConfig } from "../../stores/ruleSets";
10
- export declare class IbcsChartStructure {
1
+ import { StackConfigParsed } from "../utils/model/StructureChartComponentConfig";
2
+ import { StructureChartStyle } from "../utils/model/styles/StructureChartStyle";
3
+ import { Order } from "../../../utils/model/Order";
4
+ import { AggregationLevel } from "../../../utils/constants";
5
+ import { ParentDimensions } from "../../../utils/parentDimensions";
6
+ import { AutoScalingReport } from "../../../utils/scaling";
7
+ import { DataFormatDigits } from "../../../utils/model/DataFormatDigits";
8
+ import { ErrorDispatcher } from "../../../utils/withHasError";
9
+ import { RuleSetConfig } from "../../../stores/ruleSets";
10
+ /** @internal */
11
+ export declare class BnChartStructureRenderer {
11
12
  element: HTMLElement;
12
- /** Name of the dataset (table or view in the shared alasql database). */
13
+ /**
14
+ * Name of the dataset (table or view in the shared alasql database).
15
+ * @internal
16
+ */
13
17
  tableName: string;
14
- /** Bumped by `bn-chart-structure` when the dataset changes; triggers re-render. */
18
+ /**
19
+ * Bumped by `bn-chart-structure` when the dataset changes; triggers re-render.
20
+ * @internal
21
+ */
15
22
  dataVersion: number;
23
+ /** @internal */
16
24
  chartTitle: string;
25
+ /** @internal */
17
26
  scenarios: string[];
27
+ /** @internal */
18
28
  variances: string[];
29
+ /** @internal */
19
30
  hideCategories: boolean;
31
+ /** @internal */
20
32
  pixelPerUnit: number;
33
+ /** @internal */
21
34
  pixelPerPercentage: number;
22
35
  /**
23
36
  * Internal wrapper channel: called with the auto-fitted values (px for one
24
37
  * data unit / px per 1.0 fraction) whenever one of them was auto-resolved, so
25
38
  * the outer `bn-chart-structure` can surface them in its AUTO_* warnings.
26
39
  * Not for end users.
40
+ * @internal
27
41
  */
28
42
  reportAutoScaling?: (report: AutoScalingReport) => void;
29
- /** The wrapper's error dispatcher: a failed query is reported through it as `ERR_sql`. Not for end users. */
43
+ /**
44
+ * The wrapper's error dispatcher: a failed query is reported through it as `ERR_sql`. Not for end users.
45
+ * @internal
46
+ */
30
47
  errors?: ErrorDispatcher;
48
+ /** @internal */
31
49
  limit: number;
50
+ /** @internal */
32
51
  styles: StructureChartStyle | undefined;
52
+ /** @internal */
33
53
  i18n: Map<string, string>;
54
+ /** @internal */
34
55
  order: Order;
56
+ /** @internal */
35
57
  level: AggregationLevel;
58
+ /** @internal */
36
59
  filter: string;
60
+ /** @internal */
37
61
  measureScale: string;
62
+ /** @internal */
38
63
  measureUnit: string;
64
+ /** @internal */
39
65
  showMeasureScale: boolean;
66
+ /** @internal */
40
67
  dataFormatDigits: DataFormatDigits;
68
+ /** @internal */
41
69
  stackConfig: StackConfigParsed | null;
70
+ /** @internal */
42
71
  parentDimensions: ParentDimensions;
72
+ /** @internal */
43
73
  ruleSetConfig?: RuleSetConfig;
44
74
  private chart;
45
75
  private pattern;
@@ -7,7 +7,7 @@ import { ComponentLayoutState, LayoutStateOptions } from "../../utils/layoutStat
7
7
  * charts grouped by category, with up to four scenario layers, optional
8
8
  * variance sub-charts, stacking, and proportional auto-scaling (height-
9
9
  * based). The heavy SVG rendering is performed by the inner
10
- * `ibcs-chart-structure` element; this outer component validates props,
10
+ * `bn-chart-structure-renderer` element; this outer component validates props,
11
11
  * resolves auto-detected metadata, and computes styles.
12
12
  */
13
13
  export declare class Chart {
@@ -26,6 +26,24 @@ export declare class Chart {
26
26
  private layoutObserver;
27
27
  /** Last parent height seen, used to suppress ResizeObserver noise. */
28
28
  private _lastScaledParentHeight;
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
+ * Name of the component style to use (the `name` of a
37
+ * `<bn-component-style>`). Its values go on top of the default style.
38
+ */
39
+ selectedStyle?: string;
40
+ /**
41
+ * Namespace of the translations to use (the `namespace` of a
42
+ * `<bn-internationalization>`). Without it the component takes the
43
+ * `i18n-namespace` of the nearest ancestor that has one, then the built-in
44
+ * texts.
45
+ */
46
+ i18nNamespace?: string;
29
47
  /**
30
48
  * Title displayed above the chart. When empty, the title is derived
31
49
  * from the variance scenario labels (if variances are configured).
@@ -35,8 +53,8 @@ export declare class Chart {
35
53
  chartTitle: string;
36
54
  /**
37
55
  * Name of a registered IBCS rule set (see `bn-ruleset`) used for scenario
38
- * ordering. Supports `"inherited-closest"` / `"inherited-page"` to take
39
- * over the value from an ancestor `bn-layout-card` / `bn-layout-page`.
56
+ * ordering, look and names. Supports `"inherited-closest"` / `"inherited-page"` to
57
+ * take over the value from an ancestor `bn-layout-card` / `bn-layout-page`.
40
58
  */
41
59
  ruleset?: string;
42
60
  /**
@@ -92,7 +110,7 @@ export declare class Chart {
92
110
  * | group name | References a `<bn-scaling-group>` for synchronized scaling |
93
111
  *
94
112
  * When using a custom value that causes the chart to exceed its container,
95
- * a `WARN_overflow` error is emitted.
113
+ * an `ERR_overflow` error is emitted.
96
114
  *
97
115
  * @example unit-scaling="auto"
98
116
  * @example unit-scaling="1M"
@@ -178,13 +196,10 @@ export declare class Chart {
178
196
  /**
179
197
  * Whether to display category labels on the left side of the chart.
180
198
  *
181
- * Values: `"true"` | `"false"`.
182
- *
183
- * @default "true"
199
+ * @default true
184
200
  * @example show-categories="false"
185
201
  */
186
- showCategories: string;
187
- validateShowCategories(newValue: string): void;
202
+ showCategories: boolean;
188
203
  /**
189
204
  * SI prefix applied to data values, dividing them for display
190
205
  * (e.g. `"k"` divides by 1 000, showing 14 000 as "14").
@@ -208,16 +223,13 @@ export declare class Chart {
208
223
  * Toggles display of the SI prefix and unit label in the chart footer
209
224
  * (e.g. "k EUR").
210
225
  *
211
- * Values: `"true"` | `"false"`.
212
- *
213
- * @default "false"
226
+ * @default false
214
227
  * @example show-measure-scale="true"
215
228
  */
216
- showMeasureScale: string;
217
- validateShowMeasureScale(newValue: string): void;
229
+ showMeasureScale: boolean;
218
230
  /**
219
231
  * Unit label displayed alongside the SI prefix in the chart footer
220
- * (e.g. "EUR", "USD", "pcs"). Only visible when `show-measure-scale` is `"true"`.
232
+ * (e.g. "EUR", "USD", "pcs"). Only visible when `show-measure-scale` is on.
221
233
  *
222
234
  * @default ""
223
235
  * @example measure-unit="EUR"
@@ -279,7 +291,7 @@ export declare class Chart {
279
291
  */
280
292
  private measureContentWidth;
281
293
  /**
282
- * Reports a WARN_overflow item when the rendered chart exceeds its
294
+ * Reports an overflow item when the rendered chart exceeds its
283
295
  * container. Overflow attributable to a fixed scaling attribute is an
284
296
  * error (width: unit-scaling / percentage-scaling, height: scale);
285
297
  * overflow in fully-auto mode is a warning - auto-fit prevents it by
@@ -302,7 +314,7 @@ export declare class Chart {
302
314
  private preparePixelPerUnit;
303
315
  private preparePixelPerPercentage;
304
316
  /**
305
- * Receives the auto-fitted values from the inner ibcs-chart-structure (px
317
+ * Receives the auto-fitted values from the inner bn-chart-structure-renderer (px
306
318
  * per unit / px per 1.0 fraction) and surfaces them in the AUTO_* warnings,
307
319
  * converted back to the attribute's units-per-em form so users can copy
308
320
  * them into a bn-scaling-group.
@@ -39,6 +39,8 @@ export declare class StructureChart {
39
39
  private highestVarianceDataPointValue;
40
40
  private pixelPerUnit;
41
41
  private pixelPerPercentage;
42
+ /** The dimension a bar stands for: names the `data-bn-*` key of its value. */
43
+ private level;
42
44
  private hideCategories;
43
45
  private axisScenario;
44
46
  readonly CSS_CATEGORIES: string;
@@ -145,6 +147,11 @@ export declare class StructureChart {
145
147
  setPattern(fc: string, fcPolygonPattern: SVGPolgonPattern): void;
146
148
  private calculateTitleLength;
147
149
  getFooter(): string;
150
+ /**
151
+ * The styles with each scenario on the bar style slot its colorIndex selects.
152
+ * `this.styles` stays the theme: the hatch pattern is built from its `fc` slot.
153
+ */
154
+ private scenarioStyles;
148
155
  private setAxisScenario;
149
156
  private populateModel;
150
157
  private detectNaNCells;
@@ -2,6 +2,7 @@ import { G } from "@svgdotjs/svg.js";
2
2
  import { StructureChartStyle } from "../model";
3
3
  import { DataFormatDigits } from "../../../../utils/model/DataFormatDigits";
4
4
  import { SiPrefix } from "../../../../utils/model/SiPrefix";
5
+ import { DataPointKey, DataPointPart } from "../../../../utils/layoutState/types";
5
6
  /**
6
7
  * Anchor point for label positioning relative to its coordinates (structure chart variant).
7
8
  * Vertical hooks shift the label up/down; horizontal hooks set SVG text-anchor alignment.
@@ -36,11 +37,15 @@ export declare class Label {
36
37
  private isRelativeLabel;
37
38
  private readonly verticalHookLocation;
38
39
  private readonly horizontalHookLocation;
40
+ private pointKey?;
41
+ private pointPart;
39
42
  constructor(parent: G | null, xPosition: number, yPosition: number, groupPrefix: string, value: number | string | null, styles: StructureChartStyle, verticalHookLocation: HookLocation, horizontalHookLocation: HookLocation);
40
43
  setToVarianceLabel(): Label;
41
44
  setToRelativeVarianceLabel(): Label;
42
45
  setSegmentFill(color: string): Label;
43
46
  setMaxWidth(width: number): Label;
47
+ /** The data row this label belongs to. Written on the label group when the label is drawn. */
48
+ setPoint(key: DataPointKey | undefined, part?: DataPointPart): Label;
44
49
  updateGroup(newGroup: G): Label;
45
50
  private createElementID;
46
51
  draw(dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix): Label;
@@ -23,6 +23,7 @@ export declare class Marker {
23
23
  private position;
24
24
  private dimensions;
25
25
  private hasData;
26
+ private pointKey?;
26
27
  constructor(position: ElementPositions, markerGroup: G, markerPattern: SVGPolgonPattern, scenario: string, styles: StructureChartStyle, dataPoint: DataPoint, index: number, labelText: string | null, isPrimaryMarker: boolean);
27
28
  createMarkerDimensions(dataPoint: DataPoint, index: number, isPrimaryMarker: boolean): StructureChartDimension;
28
29
  private getScenarioLabel;
@@ -5,6 +5,7 @@ import { DataFormatDigits } from "../../../../utils/model/DataFormatDigits";
5
5
  import { SiPrefix } from "../../../../utils/model/SiPrefix";
6
6
  import { StackMode } from "../../../../utils/constants";
7
7
  import { StackLayout, StackSegment } from "../../../../utils/stackLayout";
8
+ import { DataPointKey } from "../../../../utils/layoutState/types";
8
9
  /**
9
10
  * Renders a single horizontal stacked bar segment for the structure chart.
10
11
  */
@@ -22,5 +23,5 @@ export declare class StackedBar {
22
23
  private hasData;
23
24
  constructor(position: ElementPositions, styles: StructureChartStyle, dataPoint: DataPoint, index: number, segment: StackSegment, _segmentLabel: string | null, segmentIndex: number, stackMode: StackMode, stack: StackLayout, _isScenarioStack: boolean, parentGroup: G);
24
25
  draw(dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix): void;
25
- drawTotalLabel(dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix): void;
26
+ drawTotalLabel(dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix, key?: DataPointKey): void;
26
27
  }
@@ -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 structural (categorical) bar 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 length for absolute (non-percentage) bars. */
@@ -1,56 +1,89 @@
1
- import { StackConfigParsed } from "./utils/model/TimeChartComponentConfig";
2
- import { TimeChartStyle } from "./utils/model/styles/TimeChartStyle";
3
- import { DateDistance } from "../../utils/DateStringFactory";
4
- import { AggregationLevel, AxisLabelsMode, ChartMode } from "../../utils/constants";
5
- import { ParentDimensions } from "../../utils/parentDimensions";
6
- import { AutoScalingReport } from "../../utils/scaling";
7
- import { ErrorDispatcher } from "../../utils/withHasError";
8
- import { RuleSetConfig } from "../../stores/ruleSets";
9
- import { DataFormatDigits } from "../../utils/model/DataFormatDigits";
10
- import { Order } from "../../utils/model/Order";
11
- export declare class IbcsChartTime {
1
+ import { StackConfigParsed } from "../utils/model/TimeChartComponentConfig";
2
+ import { TimeChartStyle } from "../utils/model/styles/TimeChartStyle";
3
+ import { DateDistance } from "../../../utils/DateStringFactory";
4
+ import { AxisLabelsMode, ChartMode } from "../../../utils/constants";
5
+ import { ParentDimensions } from "../../../utils/parentDimensions";
6
+ import { AutoScalingReport } from "../../../utils/scaling";
7
+ import { ErrorDispatcher } from "../../../utils/withHasError";
8
+ import { RuleSetConfig } from "../../../stores/ruleSets";
9
+ import { DataFormatDigits } from "../../../utils/model/DataFormatDigits";
10
+ /** @internal */
11
+ export declare class BnChartTimeRenderer {
12
12
  element: HTMLElement;
13
- /** Name of the dataset (table or view in the shared alasql database). */
13
+ /**
14
+ * Name of the dataset (table or view in the shared alasql database).
15
+ * @internal
16
+ */
14
17
  tableName: string;
15
- /** Bumped by `bn-chart-time` when the dataset changes; triggers re-render. */
18
+ /**
19
+ * Bumped by `bn-chart-time` when the dataset changes; triggers re-render.
20
+ * @internal
21
+ */
16
22
  dataVersion: number;
23
+ /** @internal */
17
24
  chartTitle?: string;
25
+ /** @internal */
18
26
  scenarios: string[];
27
+ /** @internal */
19
28
  variances: string[];
29
+ /** @internal */
20
30
  hideAxisLabels: boolean;
31
+ /** @internal */
21
32
  pixelPerUnit: number;
33
+ /** @internal */
22
34
  pixelPerPercentage: number;
23
35
  /**
24
36
  * Internal wrapper channel: called with the auto-fitted values (px for one
25
37
  * data unit / px per 1.0 fraction) whenever one of them was auto-resolved, so
26
38
  * the outer `bn-chart-time` can surface them in its AUTO_* warnings.
27
39
  * Not for end users.
40
+ * @internal
28
41
  */
29
42
  reportAutoScaling?: (report: AutoScalingReport) => void;
30
- /** The wrapper's error dispatcher: a failed query is reported through it as `ERR_sql`. Not for end users. */
43
+ /**
44
+ * The wrapper's error dispatcher: a failed query is reported through it as `ERR_sql`. Not for end users.
45
+ * @internal
46
+ */
31
47
  errors?: ErrorDispatcher;
32
- limit: number;
48
+ /** @internal */
33
49
  leftSideOffsetForHorizontalSync: number;
50
+ /** @internal */
34
51
  styles: TimeChartStyle | undefined;
52
+ /** @internal */
35
53
  i18n: Map<string, string>;
36
- order: Order;
37
- level: AggregationLevel;
54
+ /** @internal */
38
55
  dateInterval: DateDistance;
56
+ /** @internal */
39
57
  intervalSpanLimit: number;
58
+ /** @internal */
40
59
  axisLabelsMode: AxisLabelsMode;
60
+ /** @internal */
41
61
  filter: string;
62
+ /** @internal */
42
63
  measureScale: string;
64
+ /** @internal */
43
65
  measureUnit: string;
66
+ /** @internal */
44
67
  showMeasureScale: boolean;
68
+ /** @internal */
45
69
  showOverlayMedian: boolean;
70
+ /** @internal */
46
71
  showOverlayAvg: boolean;
72
+ /** @internal */
47
73
  chartMode: ChartMode;
74
+ /** @internal */
48
75
  maxBars: number;
76
+ /** @internal */
49
77
  stackConfig: StackConfigParsed | null;
78
+ /** @internal */
50
79
  lineFullWidth: boolean;
80
+ /** @internal */
51
81
  containerWidth: number;
82
+ /** @internal */
52
83
  dataFormatDigits: DataFormatDigits;
84
+ /** @internal */
53
85
  parentDimensions: ParentDimensions;
86
+ /** @internal */
54
87
  ruleSetConfig?: RuleSetConfig;
55
88
  drawElement: SVGElement | undefined;
56
89
  patternElement: HTMLSpanElement | undefined;
@@ -7,7 +7,7 @@ import { ComponentLayoutState, LayoutStateOptions } from "../../utils/layoutStat
7
7
  * line charts with up to four scenario layers, optional variance sub-charts,
8
8
  * stacking, and proportional auto-scaling. Date normalization and interval
9
9
  * detection are delegated to `DateStringFactory`. The heavy SVG rendering
10
- * is performed by the inner `ibcs-chart-time` element; this outer component
10
+ * is performed by the inner `bn-chart-time-renderer` element; this outer component
11
11
  * validates props, resolves auto-detected metadata, and computes styles.
12
12
  */
13
13
  export declare class Chart {
@@ -24,10 +24,28 @@ export declare class Chart {
24
24
  private readonly errors;
25
25
  private readonly resolveInherited;
26
26
  private layoutObserver;
27
+ /**
28
+ * Name of the dataset to render (the `name` of a `<bn-dataset>`). A name
29
+ * that starts with `$` reads a `<bn-datasource>` directly, which gives a
30
+ * warning.
31
+ */
32
+ datasets?: string;
33
+ /**
34
+ * Name of the component style to use (the `name` of a
35
+ * `<bn-component-style>`). Its values go on top of the default style.
36
+ */
37
+ selectedStyle?: string;
38
+ /**
39
+ * Namespace of the translations to use (the `namespace` of a
40
+ * `<bn-internationalization>`). Without it the component takes the
41
+ * `i18n-namespace` of the nearest ancestor that has one, then the built-in
42
+ * texts.
43
+ */
44
+ i18nNamespace?: string;
27
45
  /**
28
46
  * Name of a registered IBCS rule set (see `bn-ruleset`) used for scenario
29
- * ordering. Supports `"inherited-closest"` / `"inherited-page"` to take
30
- * over the value from an ancestor `bn-layout-card` / `bn-layout-page`.
47
+ * ordering, look and names. Supports `"inherited-closest"` / `"inherited-page"` to
48
+ * take over the value from an ancestor `bn-layout-card` / `bn-layout-page`.
31
49
  */
32
50
  ruleset?: string;
33
51
  /**
@@ -82,15 +100,6 @@ export declare class Chart {
82
100
  validateVariances(newValue: string): void;
83
101
  syncSpaceLeft: number;
84
102
  validateLeftSync(newValue: string | number): void;
85
- /**
86
- * Set the maximum number of columns stacks The value 0 means *no limit*
87
- * <br /><br />
88
- *
89
- * columns stacks wich where cut by the limit are cumulated as REST
90
- *
91
- */
92
- limit: number;
93
- validateLimit(newValue: number): void;
94
103
  /**
95
104
  * Data units displayed per 1 em of bar length (vertical bars) - map-scale
96
105
  * semantics: a larger value means smaller bars.
@@ -124,37 +133,6 @@ export declare class Chart {
124
133
  */
125
134
  percentageScaling: string | number;
126
135
  validatePercentageScaling(newValue: string | number): void;
127
- /**
128
- * Determines level on which the chart is aggregated on.
129
- * <br /> <br />
130
- *
131
- * values:<br/>
132
- * ``` rowcategory // category // subcategory // auto```
133
- * <br /> <br />
134
- * When set to ```auto```, level is detected from the dataset silently.
135
- * When left blank, level is detected from the dataset with a warning.
136
- *
137
- */
138
- level: string;
139
- validateLevel(newValue: string): void;
140
- /** List of the primary scenarios on which the order direction are applied valid scenarios are
141
- * If order is set to a scenario it has also exists in scenariolist
142
- * <br /><br />
143
- * values:<br />
144
- * ``` category // categoryindex // rowgroup // rowgroup // rowgroupindex // ac[1-4] // fc[1-4] // py[1-4] // pl[1-4] // auto```
145
- * <br /><br />
146
- * When set to ```auto```, order is detected from the dataset silently.
147
- * When left blank, order is detected from the dataset with a warning.
148
- */
149
- order: string;
150
- validateOrderList(newValue: string): void;
151
- /** set sorting order direction
152
- * <br /><br />
153
- * values:<br />
154
- * ```asc // desc```
155
- */
156
- orderDirection: string;
157
- validateOrderDirection(newValue: string): void;
158
136
  /** Axis Date Interval
159
137
  * <br /><br />
160
138
  * values:<br />
@@ -192,16 +170,16 @@ export declare class Chart {
192
170
  * **JSON schema:**
193
171
  * ```json
194
172
  * {
195
- * "by": "scenario" | "category" | "subcategory" | "rowgroup",
173
+ * "by": "scenarios" | "dimensions",
196
174
  * "mode": "absolute" | "relative" | "absolute-relative",
197
175
  * "order": "asc" | "desc" | "dataset"
198
176
  * }
199
177
  * ```
200
178
  *
201
- * - `by` (required): The dimension to stack.
202
- * - `"scenario"` - stack the scenarios from the `scenarios` prop as layers.
203
- * - `"category"` / `"subcategory"` / `"rowgroup"` - decompose a single
204
- * scenario by this data dimension. Must be finer than `level`.
179
+ * - `by` (required): What a stack is made of.
180
+ * - `"scenarios"` - stack the scenarios from the `scenarios` prop as layers.
181
+ * - `"dimensions"` - only the first scenario is drawn. A time chart has one
182
+ * value per period, so each stack has one segment.
205
183
  * - `mode` (optional, default `"absolute"`):
206
184
  * - `"absolute"` - additive stacking, axis shows absolute units.
207
185
  * - `"relative"` - 100% stacking, axis shows 0%-100%. `unit-scaling` is
@@ -217,11 +195,11 @@ export declare class Chart {
217
195
  *
218
196
  * @example
219
197
  * // Stack scenarios
220
- * stack='{"by":"scenario"}'
198
+ * stack='{"by":"scenarios"}'
221
199
  *
222
200
  * @example
223
- * // Stack by category, relative mode
224
- * stack='{"by":"category","mode":"relative"}'
201
+ * // Stack scenarios, relative mode
202
+ * stack='{"by":"scenarios","mode":"relative"}'
225
203
  */
226
204
  stack: string;
227
205
  validateStack(newValue: string): void;
@@ -259,10 +237,8 @@ export declare class Chart {
259
237
  * values:<br />
260
238
  * ```true // false```
261
239
  */
262
- lineFullWidth: string;
263
- validateLineFullWidth(newValue: string): void;
264
- showCategories: string;
265
- validateShowCategories(newValue: string): void;
240
+ lineFullWidth: boolean;
241
+ showCategories: boolean;
266
242
  /**
267
243
  * Sets the SiPrefix of the Mesaurements and converts the
268
244
  * original value.
@@ -305,12 +281,9 @@ export declare class Chart {
305
281
  * values: <br />
306
282
  * ```true // false```
307
283
  */
308
- showMeasureScale: string;
309
- validateShowMeasureScale(newValue: string): void;
310
- showOverlayAvg: string;
311
- validateShowOverlayAvg(newValue: string): void;
312
- showOverlayMedian: string;
313
- validateShowOverlayMedian(newValue: string): void;
284
+ showMeasureScale: boolean;
285
+ showOverlayAvg: boolean;
286
+ showOverlayMedian: boolean;
314
287
  /**
315
288
  * measureUnit displayed in table.
316
289
  */
@@ -331,7 +304,7 @@ export declare class Chart {
331
304
  /** Content height as the sum of the vertically stacked segment SVGs. */
332
305
  private measureContentHeight;
333
306
  /**
334
- * Reports a WARN_overflow item when the rendered chart exceeds its
307
+ * Reports an overflow item when the rendered chart exceeds its
335
308
  * container. Overflow attributable to a fixed scaling attribute is an
336
309
  * error (height: unit-scaling / percentage-scaling, width: scale);
337
310
  * overflow in fully-auto mode is a warning - auto-fit prevents it by
@@ -374,18 +347,15 @@ export declare class Chart {
374
347
  private preparePixelPerUnit;
375
348
  private preparePixelPerPercentage;
376
349
  /**
377
- * Receives the auto-fitted values from the inner ibcs-chart-time (px per
350
+ * Receives the auto-fitted values from the inner bn-chart-time-renderer (px per
378
351
  * unit / px per 1.0 fraction) and surfaces them in the AUTO_* warnings,
379
352
  * converted back to the attribute's units-per-em form so users can copy
380
353
  * them into a bn-scaling-group.
381
354
  */
382
355
  private handleAutoScalingReport;
383
- private prepareLevel;
384
- private prepareOrder;
385
356
  private prepareStyle;
386
357
  private prepareLeftSideOffset;
387
358
  private prepareChartTitle;
388
- private prepareLimit;
389
359
  private prepareDateInterval;
390
360
  private prepareIntervalSpanLimit;
391
361
  private prepareAxisLabelsMode;
@@ -175,6 +175,11 @@ export declare class TimeChart {
175
175
  private createI18n;
176
176
  private createElementPosition;
177
177
  private calculateTitleLength;
178
+ /**
179
+ * The styles with each scenario on the bar style slot its colorIndex selects.
180
+ * `this.styles` stays the theme: the hatch pattern is built from its `fc` slot.
181
+ */
182
+ private scenarioStyles;
178
183
  private setAxisScenario;
179
184
  private populateModel;
180
185
  private detectNaNCells;
@@ -184,6 +189,8 @@ export declare class TimeChart {
184
189
  private static coerceDateTime;
185
190
  private queryDataSet;
186
191
  private createDataRows;
192
+ /** The bucket a point belongs to. */
193
+ private static pointDate;
187
194
  private findSmallestDataPointValue;
188
195
  private findHighestDataPointValue;
189
196
  private populateVarianceModel;
@@ -2,6 +2,7 @@ import { G } from "@svgdotjs/svg.js";
2
2
  import { TimeChartStyle } from "../model/styles/TimeChartStyle";
3
3
  import { DataFormatDigits } from "../../../../components";
4
4
  import { SiPrefix } from "../../../../utils/model/SiPrefix";
5
+ import { DataPointKey, DataPointPart } from "../../../../utils/layoutState/types";
5
6
  /**
6
7
  * Anchor point for label positioning relative to its coordinates.
7
8
  * Vertical hooks control how the label is offset from its Y coordinate;
@@ -41,10 +42,14 @@ export declare class Label {
41
42
  private segmentFillColor;
42
43
  private verticalHookLocation;
43
44
  private horizontalHookLocation;
45
+ private pointKey?;
46
+ private pointPart;
44
47
  constructor(parent: G, xPosition: number, yPosition: number, groupPrefix: string, value: number | string | null, styles: TimeChartStyle, verticalHookLocation: HookLocation, horizontalHookLocation: HookLocation);
45
48
  setToVarianceLabel(): Label;
46
49
  setToRelativeVarianceLabel(): Label;
47
50
  setSegmentFill(color: string): Label;
51
+ /** The data row this label belongs to. Written on the label group when the label is visible. */
52
+ setPoint(key: DataPointKey | undefined, part?: DataPointPart): Label;
48
53
  updateGroup(newGroup: G): Label;
49
54
  draw(displayLabel?: boolean, dataFormatDigits?: DataFormatDigits, measureScale?: SiPrefix): Label;
50
55
  isEmpty(): boolean;
@@ -9,6 +9,8 @@ export interface LineSeriesDataPoint {
9
9
  index: number;
10
10
  }
11
11
  export declare class LineSeries {
12
+ /** Style slot (ac, pp, fc, pl) of the line. Without it the scenario name decides. */
13
+ private readonly lineSlot?;
12
14
  private readonly MARKER_SIZE;
13
15
  private readonly LINE_WIDTH;
14
16
  private readonly ID_LINE_PREFIX;
@@ -24,7 +26,9 @@ export declare class LineSeries {
24
26
  private readonly scenarioName;
25
27
  private readonly scenarioLabel;
26
28
  private readonly collisionManager;
27
- constructor(position: ElementPositions, styles: TimeChartStyle, dataPoints: LineSeriesDataPoint[], scenarioGroup: G, labelGroup: G, scenarioName: string, scenarioLabel: string | null, _i18n: Map<string | number, string>, collisionManager?: LabelCollisionManager | null);
29
+ constructor(position: ElementPositions, styles: TimeChartStyle, dataPoints: LineSeriesDataPoint[], scenarioGroup: G, labelGroup: G, scenarioName: string, scenarioLabel: string | null, _i18n: Map<string | number, string>, collisionManager?: LabelCollisionManager | null,
30
+ /** Style slot (ac, pp, fc, pl) of the line. Without it the scenario name decides. */
31
+ lineSlot?: string);
28
32
  /**
29
33
  * Backward-compatible: draws everything (geometry + labels) in one call.
30
34
  */
@@ -27,6 +27,7 @@ export declare class Marker {
27
27
  private position;
28
28
  private dimensions;
29
29
  private hasData;
30
+ private pointKey?;
30
31
  constructor(position: ElementPositions, markerGroup: G, markerPattern: SVGPolgonPattern, scenario: string | null, styles: TimeChartStyle, dataPoint: DataPoint, index: number, labelText: string | null, isPrimaryMarker: boolean);
31
32
  draw(): Marker;
32
33
  createMarkerDimensions(dataPoint: DataPoint, index: number, isPrimaryMarker: boolean): TimeChartDimension;