@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
@@ -33,6 +33,8 @@ export interface ScopedStores {
33
33
  context: StoreInstance<ContextStore>;
34
34
  scalingGroups: StoreInstance<Record<string, number>>;
35
35
  ruleSets: StoreInstance<Record<string, RuleSetConfig>>;
36
+ /** Per page: the labels of the annotation marks `bn-annotation-layer` could not place. */
37
+ annotationsUnplaced: StoreInstance<Record<string, string[] | undefined>>;
36
38
  }
37
39
  /**
38
40
  * Returns the stores for a `<bn-context>` element, creating them if needed.
@@ -1,17 +1,14 @@
1
1
  /**
2
- * Per-context isolated AlaSQL database with a tiny pub/sub for table/view
3
- * data changes.
4
- *
5
- * Each `<bn-context>` owns one `ScopedDb`. `<bn-datasource>` and the static/
6
- * URL branches of `<bn-dataset>` register tables; the SQL branch of
7
- * `<bn-dataset>` registers views. Consumer components subscribe by name and
8
- * re-render when the producer calls `notify(name)`.
9
- *
10
- * @module context/scopedDb
2
+ * The part of an alasql database the engine uses. A local type on purpose:
3
+ * the typings of alasql import a package it does not install, and this type
4
+ * is part of the published type declarations.
11
5
  */
12
- import alasql from "alasql";
13
- /** Concrete type of an alasql database instance (the `alasql` module exports it as a value, not a named type). */
14
- export type AlaSQLDatabase = InstanceType<typeof alasql.Database>;
6
+ export interface AlaSQLDatabase {
7
+ exec<T = any>(sql: string, params?: unknown[]): T;
8
+ tables: Record<string, any>;
9
+ views?: Record<string, any>;
10
+ resetSqlCache(): void;
11
+ }
15
12
  /**
16
13
  * Builds a SQL FROM-clause expression for a dataset, optionally filtered.
17
14
  *
@@ -1,3 +1,2 @@
1
- import "./global.css";
2
1
  export * from "./components";
3
2
  export * from "./utils/layoutState/types";
@@ -0,0 +1,50 @@
1
+ /**
2
+ * The JSON documents the components read from an attribute or from the
3
+ * content of an element. `scripts/generate-schemas.js` turns each exported
4
+ * type into a JSON Schema that ships in the package under `schemas/`.
5
+ */
6
+ import { RuleSetConfig } from "./stores/ruleSets";
7
+ import { Style } from "./stores/componentStyles";
8
+ import { StackBy, StackMode, StackOrder } from "./utils/constants";
9
+ import { AxisConfig } from "./utils/xy/model/AxisConfig";
10
+ /** Content of `<bn-component-style>`. Every key is optional, the content is merged over the default style. */
11
+ export type Theme = Style;
12
+ /** Content of `<bn-ruleset>`. */
13
+ export type RuleSet = RuleSetConfig;
14
+ /** Content of `<bn-internationalization>`: texts by key. Nested objects are joined with dots (`global.ac1`). */
15
+ export interface I18n {
16
+ [key: string]: string | I18n;
17
+ }
18
+ /** One entry of the `thereof` attribute of `bn-table`. */
19
+ export interface ThereofEntry {
20
+ /** Row group of the row the drilldown belongs to. */
21
+ rowGroup: string;
22
+ /** Category of the row the drilldown belongs to. */
23
+ category: string;
24
+ /** Sub category that is shown below the row. */
25
+ subCategory: string;
26
+ }
27
+ /** The `thereof` attribute of `bn-table`. */
28
+ export type Thereof = ThereofEntry[];
29
+ /** One entry of the `partof` attribute of `bn-table`. */
30
+ export interface PartofEntry {
31
+ /** Row group the share is taken of. */
32
+ rowGroup: string;
33
+ /** Category whose share of the row group is shown. */
34
+ category: string;
35
+ /** Accepted, not used. */
36
+ subCategory?: string;
37
+ }
38
+ /** The `partof` attribute of `bn-table`. */
39
+ export type Partof = PartofEntry[];
40
+ /** The `stack` attribute of `bn-chart-time` and `bn-chart-structure`. */
41
+ export interface Stack {
42
+ /** What a stack is made of: the scenarios, or the level below `level`. */
43
+ by: StackBy;
44
+ /** Default: `absolute`. */
45
+ mode?: StackMode;
46
+ /** Order of the segments in a stack. Default: `dataset`. */
47
+ order?: StackOrder;
48
+ }
49
+ /** The `x` and `y` attribute of `bn-chart-scatter` and `bn-chart-bubble`, in its JSON form. */
50
+ export type Axis = AxisConfig;
@@ -42,6 +42,14 @@ export interface Style {
42
42
  "bn-chart-bullet": BulletChartStyle;
43
43
  "bn-tree": TreeStyle;
44
44
  "bn-grid": GridStyle;
45
+ "bn-annotation": AnnotationStyle;
46
+ }
47
+ /** Colours of the marks of `bn-annotation-layer` and the circles of `bn-annotation-list`. */
48
+ export interface AnnotationStyle {
49
+ /** The colour of a mark without a `color`, and of the circles of the list. */
50
+ color: string;
51
+ /** The colours a mark can name in its `color`. */
52
+ colors: Record<string, string>;
45
53
  }
46
54
  /** Baseline typography inherited by all components unless overridden. */
47
55
  export interface GlobalStyle {
@@ -11,4 +11,5 @@ export declare function createScopedStores(): {
11
11
  context: import("@stencil/store").ObservableMap<ContextStore>;
12
12
  scalingGroups: import("@stencil/store").ObservableMap<Record<string, number>>;
13
13
  ruleSets: import("@stencil/store").ObservableMap<Record<string, RuleSetConfig>>;
14
+ annotationsUnplaced: import("@stencil/store").ObservableMap<Record<string, string[]>>;
14
15
  };
@@ -4,6 +4,7 @@
4
4
  * variance symbols with the `{%}` token for scenario substitution.
5
5
  */
6
6
  declare const globalLabelKeys: string[];
7
- declare const BN_INTERNATIONALIZATION_KEYS: string[];
7
+ /** Old key names (deprecated) and what they are called now. A text is still found and still read under the old name. */
8
+ export declare const RENAMED_I18N_KEYS: Record<string, string>;
8
9
  export declare const SYSTEM_I18N_DEFAULTS: Record<string, unknown>;
9
- export { globalLabelKeys, BN_INTERNATIONALIZATION_KEYS };
10
+ export { globalLabelKeys };
@@ -13,16 +13,28 @@
13
13
  */
14
14
  /** Per-scenario-prefix rule overrides. Variants 1-4 are derived from the base values. */
15
15
  export interface ScenarioRuleConfig {
16
- /** Display base name; variants get "1".."4" appended (e.g. "AC" -> "AC1"). */
16
+ /**
17
+ * Display name. Slot 1 shows it as is, the slots 2 to 4 with their number
18
+ * ("Budget", "Budget2"). A name that a `<bn-ruleset>` sets replaces the
19
+ * i18n labels `global.<prefix>1` to `global.<prefix>4`. The built-in names
20
+ * do not.
21
+ */
17
22
  name?: string;
18
- /** IBCS color encoding: 10 = solid dark, 20 = light gray, 30 = hatched, 50 = outlined. */
23
+ /**
24
+ * Selects the theme style slot the scenario is drawn in: 10 = `ac` (solid),
25
+ * 20 = `pp` (light), 30 = `fc` (hatched), 50 = `pl` (outlined). Any other
26
+ * value counts as 10.
27
+ */
19
28
  colorIndex?: number;
20
29
  /** Base sort index for column ordering; variant n adds n*10. */
21
30
  sortIndex?: number;
22
31
  }
23
32
  /** Serializable rule-set configuration written by `<bn-ruleset>` and consumed by `IBCSRuleSet`. */
24
33
  export interface RuleSetConfig {
25
- /** Keyed by scenario prefix: ac, fc, pl, bu, pp, py, dac..dpy, drac..drpy, or user-defined. */
34
+ /**
35
+ * Keyed by scenario prefix. Data columns exist for `ac`, `pp`, `fc` and `pl`.
36
+ * Of the variance prefixes (`dac`, `drac`, ...) only `sortIndex` is read.
37
+ */
26
38
  scenarios?: Record<string, ScenarioRuleConfig>;
27
39
  /** Style returned for scenario names not present in `scenarios`. */
28
40
  fallback?: {
@@ -0,0 +1,45 @@
1
+ import { AnnotationStyle } from "../stores/componentStyles";
2
+ import { DataPointPart } from "./layoutState/types";
3
+ /** What an annotation points at. Values are raw dataset values, a field left out is a wildcard. */
4
+ export interface AnnotationPoint {
5
+ rowGroup?: string;
6
+ category?: string;
7
+ subCategory?: string;
8
+ date?: string;
9
+ scenario?: string;
10
+ row?: "subtotal" | "total";
11
+ part?: DataPointPart;
12
+ }
13
+ /** One entry of the `items` attribute of `bn-annotation-layer`. */
14
+ export interface AnnotationLayerItem {
15
+ /** Number on the mark. Absent when the annotation has none. */
16
+ label?: string;
17
+ mark?: "marker" | "frame" | "arrow";
18
+ /** Named colour, see {@link annotationColor}. */
19
+ color?: string;
20
+ /** `data-bino-annotation-target` of the slot that holds the component. */
21
+ target: string;
22
+ point?: AnnotationPoint;
23
+ to?: string;
24
+ toPoint?: AnnotationPoint;
25
+ }
26
+ /** One entry of the `items` attribute of `bn-annotation-list`. */
27
+ export interface AnnotationListItem {
28
+ label?: string;
29
+ title?: string;
30
+ /** Inline HTML of the text. */
31
+ html?: string;
32
+ }
33
+ /**
34
+ * CSS value of a named colour: `--bn-annotation-color-<name>` when the page
35
+ * sets it, else the colour of that name in the style, else the main colour
36
+ * (`--bn-annotation-color`, else `color` of the style). The name ends up in a
37
+ * style, so only a plain name counts.
38
+ */
39
+ export declare function annotationColor(name: string | undefined, style: AnnotationStyle | null | undefined): string;
40
+ /** The `items` of a layer. `undefined` when it is not a JSON array of objects. */
41
+ export declare function parseLayerItems(json: string | undefined): AnnotationLayerItem[] | undefined;
42
+ /** The `items` of a list. `undefined` when it is not a JSON array of objects. */
43
+ export declare function parseListItems(json: string | undefined): AnnotationListItem[] | undefined;
44
+ /** Key of the page an annotation element sits on: a label is unique only within one page. */
45
+ export declare function annotationPageKey(element: Element): string;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Pure math for the chart auto-fit loops (ibcs-chart-structure fits width,
3
- * ibcs-chart-time fits height). Kept free of chart/svg.js imports so it can
2
+ * Pure math for the chart auto-fit loops (bn-chart-structure-renderer fits width,
3
+ * bn-chart-time-renderer fits height). Kept free of chart/svg.js imports so it can
4
4
  * be unit-tested under mock-doc (which lacks getBBox).
5
5
  *
6
6
  * Model: a chart's size along its fit axis is affine in the pixel scales,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Mirrors the inner no-data state on the outer component's host.
3
3
  *
4
- * Only the inner `ibcs-*` element knows it has no rows; it sets `no-data` on
4
+ * Only the inner `bn-*-renderer` element knows it has no rows; it sets `no-data` on
5
5
  * its own host. The outer host sits in a layout slot wrapper as an
6
6
  * inline-block, so it must fill that wrapper too before the empty-state box
7
7
  * can fill the cell (see styles/_empty-state.scss). Call from the outer
@@ -1,5 +1,21 @@
1
1
  import { ScenarioStyle, VisualisationRuleSet } from "../components/bn-table/utils/model";
2
2
  import { RuleSetConfig } from "../stores/ruleSets";
3
+ /** The slots of a theme style group. A scenario is drawn with the style of one slot. */
4
+ export type StyleSlot = "ac" | "pp" | "fc" | "pl";
5
+ /** The theme style slot a colorIndex selects. An unknown value counts as 10. */
6
+ export declare function styleSlot(colorIndex: number): StyleSlot;
7
+ /**
8
+ * A style group (ac, pp, fc, pl) with each scenario on the slot its colorIndex
9
+ * selects. Returns `styles` itself when no scenario moves, which is the case
10
+ * for the built-in rule set.
11
+ */
12
+ export declare function stylesBySlot<T extends Record<StyleSlot, unknown>>(styles: T, ruleSet: VisualisationRuleSet): T;
13
+ /**
14
+ * The labels a rule set gives the scenarios, keyed like the i18n map (ac1 ...
15
+ * pl4): the name as is for slot 1, with the number for slots 2 to 4. Pass the
16
+ * user layers only, the built-in names are not labels.
17
+ */
18
+ export declare function ruleSetLabels(config: RuleSetConfig | undefined): Map<string, string>;
3
19
  /**
4
20
  * IBCS rule set defining scenario→style mappings per IBCS notation standard v1.2.
5
21
  *
@@ -0,0 +1,13 @@
1
+ import { DataPointKey, DataPointPart, LayoutPoint } from "./types";
2
+ /**
3
+ * The `data-bn-*` attributes of a data-point element. Unknown fields stay out.
4
+ * Without `part` the element only carries the keys and cannot be addressed:
5
+ * the group around a bar, or a second shape of one data point.
6
+ */
7
+ export declare function dataPointAttributes(key: DataPointKey | undefined, part?: DataPointPart): Record<string, string>;
8
+ /** The key of a rendered element, read back from its attributes. Only an element with a part has one. */
9
+ export declare function readLayoutPoint(element: Element): LayoutPoint | undefined;
10
+ /** The start of a bucket as `YYYY-MM-DD`, with the time when it is not midnight: a bucket can be shorter than a day. */
11
+ export declare function pointDate(iso: string | null | undefined): string | undefined;
12
+ /** The dimension a chart's `level` shows, with the value of its row: `category` for `categoryIndex` too. */
13
+ export declare function levelKey(level: string, value: string | null | undefined): DataPointKey;
@@ -26,6 +26,18 @@ export declare function toDualRect(rect: {
26
26
  }, origins: Origins): DualRect;
27
27
  /** Measures an element and expresses its box in both coordinate spaces. */
28
28
  export declare function measure(el: Element, origins: Origins): DualRect;
29
+ /**
30
+ * Width in layout px of a sign that a `::before` draws in front of the content
31
+ * of an element. 0 without one. A range does not see it, and a screen box has no
32
+ * "in front" on a rotated page, so it is reported next to the box.
33
+ */
34
+ export declare function measureSign(el: Element): number;
35
+ /**
36
+ * The box of what a table cell shows, without its free space: the text, or the
37
+ * number of an in-cell bar chart. Cut to the cell, which clips a long text.
38
+ * `undefined` when it shows nothing.
39
+ */
40
+ export declare function measureContent(el: Element, origins: Origins): DualRect | undefined;
29
41
  /**
30
42
  * Resolves the coordinate origins for a component host: the nearest
31
43
  * `bn-context` ancestor's top-left and the host's own top-left. Without a
@@ -4,3 +4,4 @@ export * from "./identity";
4
4
  export * from "./diagnostics";
5
5
  export * from "./generic";
6
6
  export * from "./svgChartElements";
7
+ export * from "./dataPoint";
@@ -3,12 +3,14 @@ import { ComponentLayoutState, EmContext, LayoutElement, LayoutRegion } from "./
3
3
  /**
4
4
  * Walks one time/structure chart segment SVG (`svg#drawCanvas`) and classifies
5
5
  * its rendered elements by the chart's stable group-id conventions:
6
- * `<index>_RECT` bar groups inside `#Scenario1..4`, `<index>_DATA_Label` /
7
- * `<index>_SCENARIO_Label` label groups, the `#axis` group's `.axis-*` line,
8
- * and the category/title texts of the axis-labels group.
6
+ * `<index>_RECT` bar groups inside `#Scenario1..4`, `stacked_col_<index>_seg_<n>`
7
+ * stack segments, `<index>_DATA_Label` / `<index>_SCENARIO_Label` label groups,
8
+ * the `#axis` group's `.axis-*` line, and the category/title texts of the
9
+ * axis-labels group. Every other element with a `data-bn-part` attribute is a
10
+ * data point too: a value label, a stack total, a line or scenario marker.
9
11
  */
10
12
  export declare function collectChartSegmentElements(svgRoot: Element, segment: string, origins: Origins): LayoutElement[];
11
- /** Number of data-point groups in the primary scenario layer (= category/bar count). */
13
+ /** Number of data-point groups in the primary scenario layer, or of stacks in a stacked chart (= category/bar count). */
12
14
  export declare function countPrimaryDataPoints(svgRoot: Element): number;
13
15
  export interface ChartFacadeLayout {
14
16
  regions: LayoutRegion[];
@@ -25,8 +27,9 @@ export interface ChartFacadeLayout {
25
27
  export declare function collectChartFacadeLayout(host: HTMLElement, innerTag: string, segments: string[], origins: Origins, detail: "summary" | "full"): ChartFacadeLayout;
26
28
  /**
27
29
  * Walks an XY/bullet chart SVG. Its marks carry no ids or classes, so
28
- * classification is by tag: circles/ellipses become points, texts become
29
- * data labels. Gridlines and frame geometry are deliberately skipped.
30
+ * classification is by tag: circles/ellipses become points, keyed rects
31
+ * (the bullet bars) become bars, texts become data labels. Gridlines and
32
+ * frame geometry are deliberately skipped.
30
33
  */
31
34
  export declare function collectXYElements(svgRoot: Element, origins: Origins): LayoutElement[];
32
35
  /**
@@ -59,6 +59,26 @@ export interface ScalingInfo {
59
59
  unitMode?: "fixed" | "auto";
60
60
  percentageMode?: "fixed" | "auto";
61
61
  }
62
+ /**
63
+ * Which data row a rendered element shows. Values are the raw dataset values
64
+ * (not formatted labels), dates are `YYYY-MM-DD`. Only the known fields are set.
65
+ */
66
+ export interface DataPointKey {
67
+ rowGroup?: string;
68
+ category?: string;
69
+ subCategory?: string;
70
+ date?: string;
71
+ /** A slot like `ac1`, a variance like `dac1_pl1_pos`, a table column key. */
72
+ scenario?: string;
73
+ /** Set on the subtotal and total rows of a table. */
74
+ row?: "subtotal" | "total";
75
+ }
76
+ /** `element`: the bar, mark or cell. `label`: its value label. `total`: the total label of a stack. */
77
+ export type DataPointPart = "element" | "label" | "total";
78
+ /** The key of a data-point element, read from its `data-bn-*` attributes. */
79
+ export interface LayoutPoint extends DataPointKey {
80
+ part: DataPointPart;
81
+ }
62
82
  /** Named sub-area of a component, e.g. "canvas:base", "header", "grid". */
63
83
  export interface LayoutRegion {
64
84
  id: string;
@@ -77,6 +97,7 @@ export interface BarElement extends LayoutElementBase {
77
97
  scenario?: string;
78
98
  /** Ordinal of the bar's category within the segment. */
79
99
  index: number;
100
+ point?: LayoutPoint;
80
101
  }
81
102
  export interface LabelElement extends LayoutElementBase {
82
103
  kind: "label";
@@ -84,6 +105,7 @@ export interface LabelElement extends LayoutElementBase {
84
105
  text: string;
85
106
  segment?: string;
86
107
  index?: number;
108
+ point?: LayoutPoint;
87
109
  }
88
110
  export interface AxisElement extends LayoutElementBase {
89
111
  kind: "axis";
@@ -98,6 +120,7 @@ export interface PointElement extends LayoutElementBase {
98
120
  series?: string;
99
121
  index: number;
100
122
  text?: string;
123
+ point?: LayoutPoint;
101
124
  }
102
125
  export interface CellBarInfo {
103
126
  variant: "absolute" | "relative" | "waterfall";
@@ -121,6 +144,11 @@ export interface CellElement extends LayoutElementBase {
121
144
  type?: string;
122
145
  /** Present when the cell hosts a bar/waterfall SVG. */
123
146
  bar?: CellBarInfo;
147
+ point?: LayoutPoint;
148
+ /** Box of what the cell shows, without its free space. Set on cells with a `point`. */
149
+ content?: DualRect;
150
+ /** Width in layout px of a sign drawn in front of `content` (the "+" of a variance), which the box leaves out. */
151
+ contentSign?: number;
124
152
  }
125
153
  export interface NodeElement extends LayoutElementBase {
126
154
  kind: "node";
@@ -151,6 +179,7 @@ export interface TableRowInfo {
151
179
  /** TableRowType name (e.g. "HEADER", "SUM", "STANDARD"). */
152
180
  type: string;
153
181
  rect: DualRect;
182
+ point?: LayoutPoint;
154
183
  }
155
184
  export interface TableColumnInfo {
156
185
  index: number;
@@ -2,6 +2,7 @@ import { Pattern } from "@svgdotjs/svg.js";
2
2
  import { ScaleFactorsStructureChart } from "../../components/bn-chart-structure/utils/model";
3
3
  import { ScaleFactorsTimeChart } from "../../components/bn-chart-time/utils/model";
4
4
  import { ScaleFactorsXYChart } from "../xy/model/ScaleFactorsXYChart";
5
+ import { FillPattern } from "./styles/SVGStyle";
5
6
  /** Resolved chart styling configuration combining scale factors, fonts, scenario colors, and SVG patterns. */
6
7
  export interface BinoChartSyles {
7
8
  scaleFactors: ScaleFactorsTimeChart | ScaleFactorsStructureChart | ScaleFactorsXYChart | null;
@@ -55,5 +56,5 @@ export interface SVGStyle {
55
56
  fill: string;
56
57
  width: number;
57
58
  dasharray?: string;
58
- fillpattern?: string;
59
+ fillpattern?: FillPattern;
59
60
  }
@@ -5,6 +5,8 @@
5
5
  * - `"auto"`: auto-detect SI prefix from data magnitude
6
6
  * - `"factor"`: explicit numeric divisor (e.g. `"1000"` to show values in thousands)
7
7
  */
8
+ /** A stroke width given as a multiple of the font size, in px. Rounded: 0.075 at 13.3333 px is 1, not 0.9999975. */
9
+ export declare const strokeWidthPx: (factor: number, fontSizePx: number) => number;
8
10
  export type ScalingMode = "empty" | "none" | "auto" | "factor";
9
11
  /**
10
12
  * Parsed result of a component's `scale` attribute.
@@ -37,7 +37,6 @@ export declare function isValidDateLink(value: string): boolean;
37
37
  export declare function isValidDateFormat(value: string): boolean;
38
38
  export declare function isValidAxisLabelsMode(value: string): boolean;
39
39
  export declare function isValidDataFormat(value: string): boolean;
40
- export declare function isValidBoolean(value: unknown): boolean;
41
40
  export declare function isValidTableType(value: string): boolean;
42
41
  export declare function validateThereOfJsonStr(value: string): string[];
43
42
  /**
@@ -6,11 +6,11 @@ import { Style } from "../stores/componentStyles";
6
6
  * The effective style is computed by deep-merging three layers in order:
7
7
  * 1. `_system` -- built-in defaults (lowest priority)
8
8
  * 2. `_default` -- user-defined global overrides
9
- * 3. The value of the host element's `selected-style` attribute (highest priority)
9
+ * 3. The style named by the `selectedStyle` prop of the component (highest priority)
10
10
  *
11
- * A MutationObserver watches `selected-style` and the store subscription
12
- * reacts to updates in the componentStyles store, triggering a re-merge
13
- * and forced re-render on changes.
11
+ * The prop is read again each time the style is used, and the store
12
+ * subscription reacts to updates in the componentStyles store, triggering a
13
+ * re-merge and forced re-render on changes.
14
14
  *
15
15
  * @param component - The Stencil component instance
16
16
  * @returns A query function `componentStyle(<selector>)` that provides type-safe
@@ -2,7 +2,7 @@ import { DatasetMeta } from "./model/DatasetMeta";
2
2
  /**
3
3
  * Mixin that subscribes a Stencil component to one or more datasets/datasources.
4
4
  *
5
- * **Naming convention:** The `datasets` HTML attribute accepts a comma-separated list of names.
5
+ * **Naming convention:** The `datasets` prop of the component accepts a comma-separated list of names.
6
6
  * Names prefixed with `$` (e.g. `$revenue`) read directly from the raw datasource tables;
7
7
  * unprefixed names read from datasets (registered as tables/views by `<bn-dataset>`).
8
8
  *
@@ -10,8 +10,8 @@ import { DatasetMeta } from "./model/DatasetMeta";
10
10
  * name is registered with `stores.db.subscribe(...)` and the rows are materialized
11
11
  * via `db.exec("SELECT * FROM <name>")` whenever the producer fires `notify(name)`.
12
12
  *
13
- * The mixin installs a MutationObserver on the host element's `datasets` attribute so
14
- * bindings update automatically when the attribute is changed at runtime.
13
+ * The prop reflects to the `datasets` attribute. The mixin watches that attribute with a
14
+ * MutationObserver, so bindings follow a change of the attribute or the property.
15
15
  *
16
16
  * @param component - The Stencil component instance (must expose a host element via `@Element()`)
17
17
  * @param onUpdate - Callback invoked with `(name, data)` whenever a subscribed dataset or datasource changes
@@ -8,6 +8,21 @@ export interface ErrorItem {
8
8
  message: string;
9
9
  description?: string;
10
10
  }
11
+ /**
12
+ * What a component reports. The id prefix fixes the type: `ERR_` is an error,
13
+ * `WARN_` and `AUTO_` are warnings. A mismatch does not compile.
14
+ */
15
+ export type ErrorReport = {
16
+ id: `ERR_${string}`;
17
+ type: "error";
18
+ message: string;
19
+ description?: string;
20
+ } | {
21
+ id: `WARN_${string}` | `AUTO_${string}`;
22
+ type: "warning";
23
+ message: string;
24
+ description?: string;
25
+ };
11
26
  /**
12
27
  * API returned by {@link withHasError} for managing a component's error/warning list.
13
28
  * Mutations automatically sync to the host element's `has-error` attribute as JSON.
@@ -16,9 +31,15 @@ export interface ErrorDispatcher {
16
31
  clear: () => void;
17
32
  replace: (errors: ErrorItem[]) => void;
18
33
  add: (error: ErrorItem) => string;
19
- addOrReplace: (error: ErrorItem) => string;
34
+ addOrReplace: (error: ErrorReport) => string;
20
35
  remove: (id: string) => void;
21
36
  }
37
+ /**
38
+ * Reports content that does not fit: `ERR_overflow` when the author fixed the
39
+ * size, `WARN_overflow` otherwise. The id carries the type, so the other id is
40
+ * cleared. `message` null clears both.
41
+ */
42
+ export declare function reportOverflow(errors: ErrorDispatcher, message: string | null, fixedSize?: boolean): void;
22
43
  /**
23
44
  * Mixin that provides an {@link ErrorDispatcher} for managing validation
24
45
  * errors and warnings on a component.
@@ -19,7 +19,8 @@ import { RuleSetConfig } from "../stores/ruleSets";
19
19
  * path is observed for changes.
20
20
  *
21
21
  * @param component - The Stencil component instance
22
- * @returns A function returning the merged {@link RuleSetConfig}
22
+ * @returns A function returning the merged {@link RuleSetConfig}. With `"user"` it returns the
23
+ * `_default` and the selected layer only.
23
24
  */
24
- declare const withRuleSet: (component: any) => () => RuleSetConfig;
25
+ declare const withRuleSet: (component: any) => (layers?: "all" | "user") => RuleSetConfig;
25
26
  export default withRuleSet;
@@ -5,8 +5,7 @@
5
5
  *
6
6
  * **Namespace resolution** (mirrors the ancestor inheritance of `withRuleSet`,
7
7
  * but on by default):
8
- * 1. The host element's own `i18n-namespace` attribute (the deprecated
9
- * `namespace` attribute is honored as a fallback).
8
+ * 1. The component's own `i18nNamespace` prop (attribute `i18n-namespace`).
10
9
  * 2. Otherwise the `i18n-namespace` attribute of the nearest ancestor that
11
10
  * carries one - a layout card, layout page, tree, grid, or the
12
11
  * `bn-context` itself - crossing shadow boundaries. The resolved ancestor
@@ -2,11 +2,10 @@ import { IAdapter } from "../../helper/IAdapter";
2
2
  /**
3
3
  * Proportional scale factors for XY chart elements (scatter and bubble).
4
4
  *
5
- * All values except the `*LineWidth` entries are expressed in **font-size
6
- * multiples** (em-like units), so the chart scales uniformly when the base
7
- * font size changes. The chart renderer multiplies each factor by the
8
- * computed font size to get pixel dimensions. Line widths are absolute
9
- * pixel values (hairlines must not scale with the font).
5
+ * All values are expressed in **font-size multiples** (em-like units), so
6
+ * the chart scales uniformly when the base font size changes. The chart
7
+ * renderer multiplies each factor by the computed font size to get pixel
8
+ * dimensions. The line widths give 1 px at the default font size.
10
9
  */
11
10
  export declare class ScaleFactorsXYChart {
12
11
  /** Radius of a scatter point. */
@@ -23,9 +22,9 @@ export declare class ScaleFactorsXYChart {
23
22
  legendSwatch: number;
24
23
  /** Gap between facet panels. */
25
24
  panelGap: number;
26
- /** Stroke width of reference lines, in pixels. */
25
+ /** Stroke width of reference lines. */
27
26
  refLineWidth: number;
28
- /** Stroke width of gridlines and the plot frame, in pixels. */
27
+ /** Stroke width of gridlines and the plot frame. */
29
28
  gridLineWidth: number;
30
29
  constructor();
31
30
  }
@@ -0,0 +1,9 @@
1
+ import { DataPointKey } from "../layoutState/types";
2
+ import { FacetConfig } from "./model/AxisConfig";
3
+ import { GroupLevel, PointLevel, XYPoint } from "./model/XYChartDataRow";
4
+ /** The dimensions of one XY mark: its name, and its series and panel when the chart has them. */
5
+ export declare function xyPointKey(point: XYPoint, facetKey: string, config: {
6
+ pointLevel: PointLevel;
7
+ seriesLevel: GroupLevel | null;
8
+ facet: FacetConfig | null;
9
+ }): DataPointKey;