@bino-bi/bn-template-engine 1.0.0-next.27 → 1.0.0-next.29

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 (569) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-12c8c444.entry.js +1 -0
  3. package/dist/bn-template-engine/p-2cbccbe7.entry.js +1 -0
  4. package/dist/bn-template-engine/p-5e66d1d0.entry.js +1 -0
  5. package/dist/bn-template-engine/p-69dfa165.entry.js +1 -0
  6. package/dist/bn-template-engine/p-Bo7_IopT.js +1 -0
  7. package/dist/bn-template-engine/p-ByoAF_Qe.js +1 -0
  8. package/dist/bn-template-engine/p-CCZcKl0Q.js +2 -0
  9. package/dist/bn-template-engine/p-ClruFZD_.js +1 -0
  10. package/dist/bn-template-engine/{p-CtEA0ZQc.js → p-CsupHyLQ.js} +1 -1
  11. package/dist/bn-template-engine/p-D0qTf1_a.js +1 -0
  12. package/dist/bn-template-engine/p-b09430b6.entry.js +1 -0
  13. package/dist/bn-template-engine/p-f10950e8.entry.js +1 -0
  14. package/dist/bn-template-engine/p-qcLonXCz.js +1 -0
  15. package/dist/cjs/bn-asset_28.cjs.entry.js +32167 -0
  16. package/dist/cjs/bn-grid.cjs.entry.js +11 -65
  17. package/dist/cjs/bn-image.cjs.entry.js +5 -8
  18. package/dist/cjs/bn-internationalization.cjs.entry.js +23 -8
  19. package/dist/cjs/bn-ruleset.cjs.entry.js +8 -9
  20. package/dist/cjs/bn-template-engine.cjs.js +2 -2
  21. package/dist/cjs/bn-text.cjs.entry.js +122 -50
  22. package/dist/cjs/{diagnostics-CRfecdNZ.js → diagnostics-DMmUPOsm.js} +2 -2
  23. package/dist/cjs/{index-C1Z9vO7z.js → index-DGis1BzT.js} +0 -1
  24. package/dist/cjs/loader.cjs.js +2 -2
  25. package/dist/cjs/queryError-BZjnIW_w.js +16 -0
  26. package/dist/cjs/{scaling-BGTK5H0H.js → sanitizeHtml-Cr0jVSJ_.js} +516 -317
  27. package/dist/cjs/{withBodyObserver-DJO98AJ-.js → withBodyObserver-CrSp_FfF.js} +2 -2
  28. package/dist/cjs/{context-protocol-G4pi217i.js → withHasError-DpogV-4f.js} +553 -25
  29. package/dist/cjs/{withStyled-CZCnmfPw.js → withStyled-TQ67jCAV.js} +560 -73
  30. package/dist/collection/collection-manifest.json +9 -11
  31. package/dist/collection/components/bn-body/bn-body.js +24 -1
  32. package/dist/collection/components/bn-card/bn-card.js +24 -1
  33. package/dist/collection/components/bn-chart-bubble/{ibcs-chart-bubble.js → bn-chart-bubble-renderer/bn-chart-bubble-renderer.js} +163 -61
  34. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +119 -39
  35. package/dist/collection/components/bn-chart-bubble/utils/BubbleChart.js +67 -30
  36. package/dist/collection/components/bn-chart-bullet/{ibcs-chart-bullet.js → bn-chart-bullet-renderer/bn-chart-bullet-renderer.js} +138 -55
  37. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +129 -48
  38. package/dist/collection/components/bn-chart-bullet/utils/BulletChart.js +42 -26
  39. package/dist/collection/components/bn-chart-bullet/utils/model/BulletChartStyle.js +6 -4
  40. package/dist/collection/components/bn-chart-bullet/utils/model/BulletConfig.js +1 -1
  41. package/dist/collection/components/bn-chart-scatter/{ibcs-chart-scatter.js → bn-chart-scatter-renderer/bn-chart-scatter-renderer.js} +142 -55
  42. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +117 -37
  43. package/dist/collection/components/bn-chart-scatter/utils/ScatterChart.js +57 -19
  44. package/dist/collection/components/bn-chart-structure/{ibcs-chart-structure.js → bn-chart-structure-renderer/bn-chart-structure-renderer.js} +210 -76
  45. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +170 -134
  46. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +236 -268
  47. package/dist/collection/components/bn-chart-structure/utils/elements/Axis.js +1 -1
  48. package/dist/collection/components/bn-chart-structure/utils/elements/Bar.js +1 -1
  49. package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +1 -1
  50. package/dist/collection/components/bn-chart-structure/utils/elements/Needle.js +11 -4
  51. package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +16 -25
  52. package/dist/collection/components/bn-chart-structure/utils/model/StructureChartComponentConfig.js +3 -2
  53. package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +2 -0
  54. package/dist/collection/components/bn-chart-time/{ibcs-chart-time.js → bn-chart-time-renderer/bn-chart-time-renderer.js} +230 -151
  55. package/dist/collection/components/bn-chart-time/bn-chart-time.js +224 -441
  56. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +272 -263
  57. package/dist/collection/components/bn-chart-time/utils/elements/AreaFill.js +1 -1
  58. package/dist/collection/components/bn-chart-time/utils/elements/Label.js +1 -1
  59. package/dist/collection/components/bn-chart-time/utils/elements/LineSeries.js +7 -4
  60. package/dist/collection/components/bn-chart-time/utils/elements/Needle.js +11 -4
  61. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +22 -34
  62. package/dist/collection/components/bn-chart-time/utils/factories/ScenarioFactory.js +2 -2
  63. package/dist/collection/components/bn-chart-time/utils/helper/LabelCollisionManager.js +3 -3
  64. package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +5 -20
  65. package/dist/collection/components/bn-chart-time/utils/model/TimeChartDataRow.js +2 -2
  66. package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +2 -0
  67. package/dist/collection/components/bn-component-style/bn-component-style.js +16 -4
  68. package/dist/collection/components/bn-context/bn-context.js +112 -23
  69. package/dist/collection/components/bn-dataset/bn-dataset.js +252 -96
  70. package/dist/collection/components/bn-datasource/bn-datasource.js +175 -83
  71. package/dist/collection/components/bn-footer/bn-footer.css +1 -15
  72. package/dist/collection/components/bn-footer/bn-footer.js +20 -37
  73. package/dist/collection/components/bn-grid/bn-grid.js +38 -71
  74. package/dist/collection/components/bn-image/bn-image.js +21 -2
  75. package/dist/collection/components/bn-internationalization/bn-internationalization.js +20 -3
  76. package/dist/collection/components/bn-layout-card/bn-layout-card.js +24 -102
  77. package/dist/collection/components/bn-layout-page/bn-layout-page.js +55 -96
  78. package/dist/collection/components/bn-message/bn-message.js +21 -3
  79. package/dist/collection/components/bn-page/bn-page.css +0 -240
  80. package/dist/collection/components/bn-page/bn-page.js +35 -6
  81. package/dist/collection/components/bn-page/pageFormats.js +69 -0
  82. package/dist/collection/components/bn-ruleset/bn-ruleset.js +4 -4
  83. package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +15 -15
  84. package/dist/collection/components/bn-table/{ibcs-table.css → bn-table-renderer/bn-table-renderer.css} +2 -1
  85. package/dist/collection/components/bn-table/{ibcs-table.js → bn-table-renderer/bn-table-renderer.js} +293 -102
  86. package/dist/collection/components/bn-table/bn-table.js +224 -212
  87. package/dist/collection/components/bn-table/utils/Table.js +15 -16
  88. package/dist/collection/components/bn-table/utils/elements/Cell.js +9 -3
  89. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +38 -34
  90. package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -2
  91. package/dist/collection/components/bn-table/utils/elements/WaterfallBar.js +4 -4
  92. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +29 -7
  93. package/dist/collection/components/bn-table/utils/helper/DataQuery.js +128 -98
  94. package/dist/collection/components/bn-table/utils/helper/IntervalColumns.js +6 -20
  95. package/dist/collection/components/bn-table/utils/helper/QueryGroup.js +9 -2
  96. package/dist/collection/components/bn-table/utils/helper/barColumnGeometry.js +4 -4
  97. package/dist/collection/components/bn-table/utils/model/TableAttribute.js +2 -2
  98. package/dist/collection/components/bn-table/utils/model/TableComponentConfig.js +3 -2
  99. package/dist/collection/components/bn-text/bn-text.js +100 -45
  100. package/dist/collection/components/bn-text/utils/template.js +79 -0
  101. package/dist/collection/components/bn-title/{ibcs-title/ibcs-title.js → bn-title-renderer/bn-title-renderer.js} +61 -83
  102. package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/Title.js +2 -2
  103. package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/TitleDataSetFactory.js +1 -1
  104. package/dist/collection/components/bn-title/bn-title.js +67 -17
  105. package/dist/collection/components/bn-tree/bn-tree.js +149 -51
  106. package/dist/collection/components/bn-tree/utils/EdgeRenderer.js +59 -51
  107. package/dist/collection/components/bn-tree/utils/TreeLayout.js +30 -5
  108. package/dist/collection/components/bn-tree/utils/TreeParser.js +35 -0
  109. package/dist/collection/context/context-protocol.js +1 -1
  110. package/dist/collection/context/scopedDb.js +47 -4
  111. package/dist/collection/index.js +0 -1
  112. package/dist/collection/schemas.js +1 -0
  113. package/dist/collection/stores/componentStyles.js +45 -6
  114. package/dist/collection/stores/internationalization.js +15 -9
  115. package/dist/collection/utils/DateStringFactory.js +17 -15
  116. package/dist/collection/utils/autoFit.js +4 -4
  117. package/dist/collection/utils/componentRegister.js +60 -16
  118. package/dist/collection/utils/constants.js +2 -2
  119. package/dist/collection/utils/dataAnalyzer.js +9 -12
  120. package/dist/collection/utils/emptyState.js +1 -1
  121. package/dist/collection/utils/formatter.js +29 -20
  122. package/dist/collection/utils/ibcsRuleSet.js +42 -0
  123. package/dist/collection/utils/layoutObserver.js +1 -1
  124. package/dist/collection/utils/layoutState/generic.js +1 -1
  125. package/dist/collection/utils/layoutState/svgChartElements.js +2 -2
  126. package/dist/collection/utils/layoutTemplate.js +79 -0
  127. package/dist/collection/utils/measurementHost.js +2 -2
  128. package/dist/collection/utils/model/Order.js +1 -1
  129. package/dist/collection/utils/model/styles/SVGStyle.js +12 -4
  130. package/dist/collection/utils/parentDimensions.js +35 -3
  131. package/dist/collection/utils/queryError.js +11 -0
  132. package/dist/collection/utils/relativeVariance.js +14 -0
  133. package/dist/collection/utils/sanitizeHtml.js +30 -16
  134. package/dist/collection/utils/scaling.js +11 -2
  135. package/dist/collection/utils/stackColors.js +27 -5
  136. package/dist/collection/utils/stackLayout.js +71 -0
  137. package/dist/collection/utils/styled/attributes.js +16 -3
  138. package/dist/collection/utils/styled/style-sheet.js +1 -1
  139. package/dist/collection/utils/styled/withStyled.js +1 -1
  140. package/dist/collection/utils/validate.js +1 -8
  141. package/dist/collection/utils/withComponentStatus.js +137 -12
  142. package/dist/collection/utils/withComponentStyle.js +12 -17
  143. package/dist/collection/utils/withDataset.js +22 -11
  144. package/dist/collection/utils/withHasError.js +17 -2
  145. package/dist/collection/utils/withInheritedProps.js +113 -64
  146. package/dist/collection/utils/withRuleSet.js +17 -14
  147. package/dist/collection/utils/withTranslation.js +17 -17
  148. package/dist/collection/utils/xy/FacetGrid.js +1 -1
  149. package/dist/collection/utils/xy/IsoCurves.js +1 -1
  150. package/dist/collection/utils/xy/NumericScale.js +46 -15
  151. package/dist/collection/utils/xy/PointLabeler.js +2 -2
  152. package/dist/collection/utils/xy/RadiusScale.js +2 -2
  153. package/dist/collection/utils/xy/SeriesPalette.js +3 -3
  154. package/dist/collection/utils/xy/VarianceMeasure.js +22 -4
  155. package/dist/collection/utils/xy/XYFrame.js +17 -7
  156. package/dist/collection/utils/xy/XYLegend.js +5 -7
  157. package/dist/collection/utils/xy/checkXYOverflow.js +32 -0
  158. package/dist/collection/utils/xy/formatXYValue.js +13 -0
  159. package/dist/collection/utils/xy/model/ScaleFactorsXYChart.js +8 -9
  160. package/dist/collection/utils/xy/model/XYChartDataRow.js +0 -0
  161. package/dist/collection/utils/xy/model/XYChartStyle.js +2 -0
  162. package/dist/components/bn-asset.js +1 -1
  163. package/dist/components/bn-body.js +1 -1
  164. package/dist/components/bn-card.js +1 -1
  165. package/dist/components/bn-chart-bubble-renderer.d.ts +11 -0
  166. package/dist/components/bn-chart-bubble-renderer.js +1 -0
  167. package/dist/components/bn-chart-bubble.js +1 -1
  168. package/dist/components/bn-chart-bullet-renderer.d.ts +11 -0
  169. package/dist/components/bn-chart-bullet-renderer.js +1 -0
  170. package/dist/components/bn-chart-bullet.js +1 -1
  171. package/dist/components/bn-chart-scatter-renderer.d.ts +11 -0
  172. package/dist/components/bn-chart-scatter-renderer.js +1 -0
  173. package/dist/components/bn-chart-scatter.js +1 -1
  174. package/dist/components/bn-chart-structure-renderer.d.ts +11 -0
  175. package/dist/components/bn-chart-structure-renderer.js +1 -0
  176. package/dist/components/bn-chart-structure.js +1 -1
  177. package/dist/components/{ibcs-chart-bullet.d.ts → bn-chart-time-renderer.d.ts} +4 -4
  178. package/dist/components/bn-chart-time-renderer.js +1 -0
  179. package/dist/components/bn-chart-time.js +1 -1
  180. package/dist/components/bn-component-style.js +1 -1
  181. package/dist/components/bn-context.js +1 -1
  182. package/dist/components/bn-dataset.js +1 -1
  183. package/dist/components/bn-datasource.js +1 -1
  184. package/dist/components/bn-footer.js +1 -1
  185. package/dist/components/bn-grid.js +1 -1
  186. package/dist/components/bn-image.js +1 -1
  187. package/dist/components/bn-internationalization.js +1 -1
  188. package/dist/components/bn-layout-card.js +1 -1
  189. package/dist/components/bn-layout-page.js +1 -1
  190. package/dist/components/bn-message.js +1 -1
  191. package/dist/components/bn-page.js +1 -1
  192. package/dist/components/bn-ruleset.js +1 -1
  193. package/dist/components/bn-scaling-group.js +1 -1
  194. package/dist/components/{ibcs-chart-bubble.d.ts → bn-table-renderer.d.ts} +4 -4
  195. package/dist/components/bn-table-renderer.js +1 -0
  196. package/dist/components/bn-table.js +1 -1
  197. package/dist/components/bn-text.js +1 -1
  198. package/dist/components/{editor-companion.d.ts → bn-title-renderer.d.ts} +4 -4
  199. package/dist/components/bn-title-renderer.js +1 -0
  200. package/dist/components/bn-title.js +1 -1
  201. package/dist/components/bn-tree.js +1 -1
  202. package/dist/components/index.js +1 -1
  203. package/dist/{bn-template-engine/p-Z-mcXias.js → components/p--cxUP_so.js} +1 -1
  204. package/dist/components/p-4q8nRcWC.js +1 -0
  205. package/dist/components/p-B6kka9sT.js +1 -0
  206. package/dist/components/p-B7GzUuM1.js +1 -0
  207. package/dist/components/p-BFUNrRAN.js +1 -0
  208. package/dist/components/p-BI5orga2.js +1 -0
  209. package/dist/components/p-BJmwHV0a.js +1 -0
  210. package/dist/components/p-BN7PtJVV.js +1 -0
  211. package/dist/components/p-BN8vBcMD.js +1 -0
  212. package/dist/components/p-BTnRaHPb.js +1 -0
  213. package/dist/components/p-BZe4T2ta.js +1 -0
  214. package/dist/components/p-BbS6qL8Z.js +1 -0
  215. package/dist/components/p-BcQv74MZ.js +1 -0
  216. package/dist/{bn-template-engine/p-BeLWoM0Q.js → components/p-BgWfMdDE.js} +1 -1
  217. package/dist/components/p-BhOssNAI.js +1 -0
  218. package/dist/components/p-BvuJFY7b.js +1 -0
  219. package/dist/components/p-C3Lz_w4H.js +1 -0
  220. package/dist/components/p-CD39zcHF.js +1 -0
  221. package/dist/components/p-CYurh604.js +1 -0
  222. package/dist/components/p-CYwd_ZNM.js +1 -0
  223. package/dist/components/p-CfBqQljd.js +1 -0
  224. package/dist/components/p-Ci4wYt6s.js +1 -0
  225. package/dist/components/p-ClruFZD_.js +1 -0
  226. package/dist/components/p-ClvHVwGH.js +1 -0
  227. package/dist/components/p-Co1dDaxy.js +1 -0
  228. package/dist/components/p-Cq5MNEMN.js +1 -0
  229. package/dist/components/p-CtiP8VJ_.js +1 -0
  230. package/dist/components/p-CwzAQJSz.js +1 -0
  231. package/dist/components/p-CyUmrWfW.js +1 -0
  232. package/dist/components/p-D2Epww9R.js +1 -0
  233. package/dist/components/p-D413xjVu.js +1 -0
  234. package/dist/components/p-D4lSYFwX.js +1 -0
  235. package/dist/components/p-D6YGOYV1.js +2 -0
  236. package/dist/components/p-DCPLGEs_.js +1 -0
  237. package/dist/components/p-DCja-Yov.js +1 -0
  238. package/dist/components/p-DD1zlev_.js +1 -0
  239. package/dist/components/p-DJijh10F.js +1 -0
  240. package/dist/components/p-DM7fwmH4.js +1 -0
  241. package/dist/components/p-DZ3ub5DV.js +1 -0
  242. package/dist/components/p-DakXa7Dp.js +1 -0
  243. package/dist/components/p-DcfgLtdU.js +1 -0
  244. package/dist/components/p-Dd6b8E_1.js +1 -0
  245. package/dist/components/p-Di57x1j-.js +1 -0
  246. package/dist/components/p-Dq4KMCDU.js +1 -0
  247. package/dist/components/p-DrN6R99a.js +1 -0
  248. package/dist/components/p-DtBFwIVs.js +1 -0
  249. package/dist/components/p-DynTmVfI.js +1 -0
  250. package/dist/components/p-Igh8PJUo.js +1 -0
  251. package/dist/components/p-Xb6Ilq8u.js +1 -0
  252. package/dist/components/p-e6lZYVYf.js +1 -0
  253. package/dist/components/p-fCjsrD7I.js +1 -0
  254. package/dist/components/p-g4dh_F-M.js +1 -0
  255. package/dist/components/p-iJCxRAmO.js +1 -0
  256. package/dist/components/p-kGB4WKet.js +1 -0
  257. package/dist/components/p-pH6_06qq.js +1 -0
  258. package/dist/components/p-xJ1DeaDY.js +1 -0
  259. package/dist/esm/{bn-asset_21.entry.js → bn-asset_28.entry.js} +29882 -15271
  260. package/dist/esm/bn-grid.entry.js +11 -65
  261. package/dist/esm/bn-image.entry.js +4 -7
  262. package/dist/esm/bn-internationalization.entry.js +22 -7
  263. package/dist/esm/bn-ruleset.entry.js +7 -8
  264. package/dist/esm/bn-template-engine.js +3 -3
  265. package/dist/esm/bn-text.entry.js +117 -45
  266. package/dist/esm/{diagnostics-BjZRZraG.js → diagnostics-BaXhpaAg.js} +1 -1
  267. package/dist/esm/{index-C5UYpZUU.js → index-CCZcKl0Q.js} +1 -1
  268. package/dist/esm/loader.js +3 -3
  269. package/dist/esm/queryError-ClruFZD_.js +13 -0
  270. package/dist/esm/{scaling-YbP727FC.js → sanitizeHtml-BpBu47OE.js} +508 -313
  271. package/dist/esm/{withBodyObserver-Cb9ZC5_J.js → withBodyObserver-1IBghfa8.js} +2 -2
  272. package/dist/esm/{context-protocol-D_ysqCp8.js → withHasError-C8f_AGmT.js} +546 -24
  273. package/dist/esm/{withStyled-3yRswBcf.js → withStyled-DS6G7yrL.js} +525 -52
  274. package/dist/schemas/axis.schema.json +52 -0
  275. package/dist/schemas/i18n.schema.json +31 -0
  276. package/dist/schemas/partof.schema.json +33 -0
  277. package/dist/schemas/ruleset.schema.json +59 -0
  278. package/dist/schemas/stack.schema.json +51 -0
  279. package/dist/schemas/theme.schema.json +583 -0
  280. package/dist/schemas/thereof.schema.json +34 -0
  281. package/dist/types/components/bn-body/bn-body.d.ts +5 -0
  282. package/dist/types/components/bn-card/bn-card.d.ts +5 -0
  283. package/dist/types/components/bn-chart-bubble/bn-chart-bubble-renderer/bn-chart-bubble-renderer.d.ts +97 -0
  284. package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +28 -6
  285. package/dist/types/components/bn-chart-bubble/utils/BubbleChart.d.ts +14 -2
  286. package/dist/types/components/bn-chart-bullet/bn-chart-bullet-renderer/bn-chart-bullet-renderer.d.ts +81 -0
  287. package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +33 -14
  288. package/dist/types/components/bn-chart-bullet/utils/BulletChart.d.ts +8 -5
  289. package/dist/types/components/bn-chart-bullet/utils/model/BulletChartStyle.d.ts +4 -2
  290. package/dist/types/components/bn-chart-bullet/utils/model/BulletConfig.d.ts +1 -1
  291. package/dist/types/components/bn-chart-scatter/bn-chart-scatter-renderer/bn-chart-scatter-renderer.d.ts +85 -0
  292. package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +28 -6
  293. package/dist/types/components/bn-chart-scatter/utils/ScatterChart.d.ts +11 -1
  294. package/dist/types/components/bn-chart-structure/{ibcs-chart-structure.d.ts → bn-chart-structure-renderer/bn-chart-structure-renderer.d.ts} +49 -12
  295. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +42 -29
  296. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +34 -6
  297. package/dist/types/components/bn-chart-structure/utils/elements/StackedBar.d.ts +4 -3
  298. package/dist/types/components/bn-chart-structure/utils/model/DataPoint.d.ts +3 -2
  299. package/dist/types/components/bn-chart-structure/utils/model/StructureChartComponentConfig.d.ts +2 -1
  300. package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +2 -0
  301. package/dist/types/components/bn-chart-time/{ibcs-chart-time.d.ts → bn-chart-time-renderer/bn-chart-time-renderer.d.ts} +56 -16
  302. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +53 -79
  303. package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +68 -5
  304. package/dist/types/components/bn-chart-time/utils/elements/AreaFill.d.ts +1 -1
  305. package/dist/types/components/bn-chart-time/utils/elements/LineSeries.d.ts +5 -1
  306. package/dist/types/components/bn-chart-time/utils/elements/StackedColumn.d.ts +9 -8
  307. package/dist/types/components/bn-chart-time/utils/factories/ScenarioFactory.d.ts +1 -1
  308. package/dist/types/components/bn-chart-time/utils/model/DataPoint.d.ts +3 -2
  309. package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +4 -9
  310. package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +2 -0
  311. package/dist/types/components/bn-context/bn-context.d.ts +21 -3
  312. package/dist/types/components/bn-dataset/bn-dataset.d.ts +42 -21
  313. package/dist/types/components/bn-datasource/bn-datasource.d.ts +35 -19
  314. package/dist/types/components/bn-footer/bn-footer.d.ts +7 -9
  315. package/dist/types/components/bn-grid/bn-grid.d.ts +8 -6
  316. package/dist/types/components/bn-image/bn-image.d.ts +4 -0
  317. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +3 -11
  318. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +13 -7
  319. package/dist/types/components/bn-message/bn-message.d.ts +7 -1
  320. package/dist/types/components/bn-page/bn-page.d.ts +7 -1
  321. package/dist/types/components/bn-page/pageFormats.d.ts +40 -0
  322. package/dist/types/components/bn-scaling-group/bn-scaling-group.d.ts +2 -2
  323. package/dist/types/components/bn-table/{ibcs-table.d.ts → bn-table-renderer/bn-table-renderer.d.ts} +55 -15
  324. package/dist/types/components/bn-table/bn-table.d.ts +59 -59
  325. package/dist/types/components/bn-table/utils/Table.d.ts +3 -1
  326. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +2 -2
  327. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +8 -5
  328. package/dist/types/components/bn-table/utils/elements/WaterfallBar.d.ts +1 -1
  329. package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +7 -2
  330. package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +14 -5
  331. package/dist/types/components/bn-table/utils/helper/IntervalColumns.d.ts +2 -2
  332. package/dist/types/components/bn-table/utils/helper/QueryGroup.d.ts +6 -1
  333. package/dist/types/components/bn-table/utils/helper/barColumnGeometry.d.ts +2 -2
  334. package/dist/types/components/bn-table/utils/model/TableAttribute.d.ts +2 -0
  335. package/dist/types/components/bn-table/utils/model/TableComponentConfig.d.ts +2 -1
  336. package/dist/types/components/bn-text/bn-text.d.ts +39 -14
  337. package/dist/types/components/bn-text/utils/template.d.ts +10 -0
  338. package/dist/types/components/bn-title/{ibcs-title/ibcs-title.d.ts → bn-title-renderer/bn-title-renderer.d.ts} +16 -4
  339. package/dist/types/components/bn-title/bn-title.d.ts +15 -3
  340. package/dist/types/components/bn-tree/bn-tree.d.ts +14 -3
  341. package/dist/types/components/bn-tree/utils/EdgeRenderer.d.ts +18 -5
  342. package/dist/types/components/bn-tree/utils/TreeLayout.d.ts +5 -0
  343. package/dist/types/components.d.ts +2024 -2492
  344. package/dist/types/context/scopedDb.d.ts +29 -12
  345. package/dist/types/index.d.ts +0 -1
  346. package/dist/types/schemas.d.ts +50 -0
  347. package/dist/types/stores/componentStyles.d.ts +6 -0
  348. package/dist/types/stores/internationalization.d.ts +3 -2
  349. package/dist/types/stores/ruleSets.d.ts +15 -3
  350. package/dist/types/utils/DateStringFactory.d.ts +3 -2
  351. package/dist/types/utils/autoFit.d.ts +4 -4
  352. package/dist/types/utils/componentRegister.d.ts +21 -5
  353. package/dist/types/utils/constants.d.ts +2 -2
  354. package/dist/types/utils/dataAnalyzer.d.ts +1 -1
  355. package/dist/types/utils/emptyState.d.ts +1 -1
  356. package/dist/types/utils/formatter.d.ts +7 -9
  357. package/dist/types/utils/ibcsRuleSet.d.ts +16 -0
  358. package/dist/types/utils/layoutState/generic.d.ts +1 -1
  359. package/dist/types/utils/layoutState/svgChartElements.d.ts +2 -2
  360. package/dist/types/utils/layoutTemplate.d.ts +16 -0
  361. package/dist/types/utils/model/ChartStyles.d.ts +3 -2
  362. package/dist/types/utils/model/DataQueryResultRow.d.ts +2 -2
  363. package/dist/types/utils/model/Order.d.ts +1 -1
  364. package/dist/types/utils/model/styles/SVGStyle.d.ts +5 -1
  365. package/dist/types/utils/parentDimensions.d.ts +9 -0
  366. package/dist/types/utils/queryError.d.ts +5 -0
  367. package/dist/types/utils/relativeVariance.d.ts +9 -0
  368. package/dist/types/utils/sanitizeHtml.d.ts +2 -2
  369. package/dist/types/utils/scaling.d.ts +3 -1
  370. package/dist/types/utils/stackColors.d.ts +3 -2
  371. package/dist/types/utils/stackLayout.d.ts +49 -0
  372. package/dist/types/utils/validate.d.ts +1 -2
  373. package/dist/types/utils/withComponentStatus.d.ts +11 -3
  374. package/dist/types/utils/withComponentStyle.d.ts +4 -4
  375. package/dist/types/utils/withDataset.d.ts +3 -3
  376. package/dist/types/utils/withHasError.d.ts +22 -1
  377. package/dist/types/utils/withInheritedProps.d.ts +42 -15
  378. package/dist/types/utils/withRuleSet.d.ts +5 -3
  379. package/dist/types/utils/withTranslation.d.ts +3 -4
  380. package/dist/types/utils/xy/FacetGrid.d.ts +1 -1
  381. package/dist/types/utils/xy/IsoCurves.d.ts +1 -1
  382. package/dist/types/utils/xy/NumericScale.d.ts +9 -4
  383. package/dist/types/utils/xy/PointLabeler.d.ts +2 -2
  384. package/dist/types/utils/xy/RadiusScale.d.ts +2 -2
  385. package/dist/types/utils/xy/SeriesPalette.d.ts +3 -3
  386. package/dist/types/utils/xy/VarianceMeasure.d.ts +10 -2
  387. package/dist/types/utils/xy/XYFrame.d.ts +4 -1
  388. package/dist/types/utils/xy/XYLegend.d.ts +3 -1
  389. package/dist/types/utils/xy/checkXYOverflow.d.ts +8 -0
  390. package/dist/types/utils/xy/formatXYValue.d.ts +7 -0
  391. package/dist/types/utils/xy/model/AxisConfig.d.ts +1 -1
  392. package/dist/types/utils/xy/model/ScaleFactorsXYChart.d.ts +6 -7
  393. package/dist/types/utils/xy/model/XYChartStyle.d.ts +2 -0
  394. package/package.json +25 -7
  395. package/readme.md +23 -19
  396. package/dist/bn-template-engine/assets/bar.png +0 -0
  397. package/dist/bn-template-engine/assets/matrix.png +0 -0
  398. package/dist/bn-template-engine/p-0a19e8af.entry.js +0 -1
  399. package/dist/bn-template-engine/p-0f6ece5a.entry.js +0 -1
  400. package/dist/bn-template-engine/p-13db2986.entry.js +0 -1
  401. package/dist/bn-template-engine/p-1b35c4ac.entry.js +0 -1
  402. package/dist/bn-template-engine/p-4602d613.entry.js +0 -1
  403. package/dist/bn-template-engine/p-489438ed.entry.js +0 -1
  404. package/dist/bn-template-engine/p-686d8e44.entry.js +0 -1
  405. package/dist/bn-template-engine/p-6f86159c.entry.js +0 -1
  406. package/dist/bn-template-engine/p-7401e3f3.entry.js +0 -1
  407. package/dist/bn-template-engine/p-83d50a14.entry.js +0 -1
  408. package/dist/bn-template-engine/p-BA48JiHe.js +0 -1
  409. package/dist/bn-template-engine/p-BCr2-Ka-.js +0 -1
  410. package/dist/bn-template-engine/p-BEkgk7Ij.js +0 -1
  411. package/dist/bn-template-engine/p-BVYKc5cH.js +0 -1
  412. package/dist/bn-template-engine/p-C5UYpZUU.js +0 -2
  413. package/dist/bn-template-engine/p-CHZZqoB7.js +0 -1
  414. package/dist/bn-template-engine/p-CTrNbSXN.js +0 -1
  415. package/dist/bn-template-engine/p-CURM2Nrr.js +0 -1
  416. package/dist/bn-template-engine/p-Ckhir6Ux.js +0 -1
  417. package/dist/bn-template-engine/p-Ct0wEGrw.js +0 -1
  418. package/dist/bn-template-engine/p-DJ5KJ6GF.js +0 -1
  419. package/dist/bn-template-engine/p-DoIuKI09.js +0 -1
  420. package/dist/bn-template-engine/p-DsTzlzxQ.js +0 -1
  421. package/dist/bn-template-engine/p-DtLI_CzV.js +0 -1
  422. package/dist/bn-template-engine/p-DwGg2_vO.js +0 -1
  423. package/dist/bn-template-engine/p-aeba74a4.entry.js +0 -1
  424. package/dist/bn-template-engine/p-b4dabaf9.entry.js +0 -1
  425. package/dist/bn-template-engine/p-d083f0e6.entry.js +0 -1
  426. package/dist/bn-template-engine/p-ee09f216.entry.js +0 -1
  427. package/dist/bn-template-engine/p-f00b189f.entry.js +0 -1
  428. package/dist/cjs/AxisConfig-CbNnsmGC.js +0 -233
  429. package/dist/cjs/LabelCollisionManager-tOT40-pH.js +0 -415
  430. package/dist/cjs/NumericScale-BAyYXpKL.js +0 -107
  431. package/dist/cjs/Order-C5XgrPzr.js +0 -87
  432. package/dist/cjs/SVGStyle-C1LhLgbT.js +0 -6513
  433. package/dist/cjs/SVGVariancesStyleGroup-C2Ys_Iz6.js +0 -50
  434. package/dist/cjs/VarianceMeasure-uph4FBRa.js +0 -372
  435. package/dist/cjs/XYChartDataRow-BNqTnXnX.js +0 -829
  436. package/dist/cjs/bn-asset_21.cjs.entry.js +0 -17549
  437. package/dist/cjs/bn-chart-bubble.cjs.entry.js +0 -793
  438. package/dist/cjs/bn-chart-bullet.cjs.entry.js +0 -806
  439. package/dist/cjs/bn-chart-scatter.cjs.entry.js +0 -679
  440. package/dist/cjs/bn-template.cjs.entry.js +0 -18
  441. package/dist/cjs/bn-tree.cjs.entry.js +0 -1042
  442. package/dist/cjs/editor-companion.cjs.entry.js +0 -56
  443. package/dist/cjs/emptyState-B3kPjSFO.js +0 -423
  444. package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +0 -625
  445. package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +0 -674
  446. package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +0 -668
  447. package/dist/cjs/sanitizeHtml-LuZr1IMd.js +0 -85
  448. package/dist/cjs/withHasError-BdDmiOXM.js +0 -258
  449. package/dist/cjs/withScalingGroup-DrFV_zsQ.js +0 -73
  450. package/dist/collection/components/bn-footer/assets/bar.png +0 -0
  451. package/dist/collection/components/bn-footer/assets/matrix.png +0 -0
  452. package/dist/collection/components/bn-message/assets/bar.png +0 -0
  453. package/dist/collection/components/bn-message/assets/matrix.png +0 -0
  454. package/dist/collection/components/bn-template/bn-template.js +0 -38
  455. package/dist/collection/components/editor-companion/editor-companion.css +0 -3
  456. package/dist/collection/components/editor-companion/editor-companion.js +0 -137
  457. package/dist/collection/utils/templateId.js +0 -12
  458. package/dist/collection/utils/testing/hostFont.js +0 -20
  459. package/dist/components/AxisConfig.js +0 -1
  460. package/dist/components/CompareUtil.js +0 -1
  461. package/dist/components/DataFormatDigits.js +0 -1
  462. package/dist/components/DateStringFactory.js +0 -1
  463. package/dist/components/LabelCollisionManager.js +0 -1
  464. package/dist/components/NumericScale.js +0 -1
  465. package/dist/components/Order.js +0 -1
  466. package/dist/components/SVGVariancesStyleGroup.js +0 -1
  467. package/dist/components/StringAdapter.js +0 -1
  468. package/dist/components/VarianceMeasure.js +0 -1
  469. package/dist/components/XYChartDataRow.js +0 -1
  470. package/dist/components/autoFit.js +0 -1
  471. package/dist/components/bn-body2.js +0 -1
  472. package/dist/components/bn-card2.js +0 -1
  473. package/dist/components/bn-footer2.js +0 -1
  474. package/dist/components/bn-message2.js +0 -1
  475. package/dist/components/bn-page2.js +0 -1
  476. package/dist/components/bn-template.d.ts +0 -11
  477. package/dist/components/bn-template.js +0 -1
  478. package/dist/components/bn-title2.js +0 -1
  479. package/dist/components/contentDecoder.js +0 -1
  480. package/dist/components/context-protocol.js +0 -1
  481. package/dist/components/editor-companion.js +0 -1
  482. package/dist/components/emptyState.js +0 -1
  483. package/dist/components/formatter.js +0 -1
  484. package/dist/components/geometry.js +0 -1
  485. package/dist/components/ibcs-chart-bubble.js +0 -1
  486. package/dist/components/ibcs-chart-bubble2.js +0 -1
  487. package/dist/components/ibcs-chart-bullet.js +0 -1
  488. package/dist/components/ibcs-chart-bullet2.js +0 -1
  489. package/dist/components/ibcs-chart-scatter.d.ts +0 -11
  490. package/dist/components/ibcs-chart-scatter.js +0 -1
  491. package/dist/components/ibcs-chart-scatter2.js +0 -1
  492. package/dist/components/ibcs-chart-structure.d.ts +0 -11
  493. package/dist/components/ibcs-chart-structure.js +0 -1
  494. package/dist/components/ibcs-chart-structure2.js +0 -1
  495. package/dist/components/ibcs-chart-time.d.ts +0 -11
  496. package/dist/components/ibcs-chart-time.js +0 -1
  497. package/dist/components/ibcs-chart-time2.js +0 -1
  498. package/dist/components/ibcs-table.d.ts +0 -11
  499. package/dist/components/ibcs-table.js +0 -1
  500. package/dist/components/ibcs-table2.js +0 -1
  501. package/dist/components/ibcs-title.d.ts +0 -11
  502. package/dist/components/ibcs-title.js +0 -1
  503. package/dist/components/ibcs-title2.js +0 -1
  504. package/dist/components/luxon.js +0 -1
  505. package/dist/components/sanitizeHtml.js +0 -1
  506. package/dist/components/scaling.js +0 -1
  507. package/dist/components/stackColors.js +0 -1
  508. package/dist/components/svg.esm.js +0 -1
  509. package/dist/components/svgChartElements.js +0 -1
  510. package/dist/components/types.js +0 -1
  511. package/dist/components/utils.js +0 -1
  512. package/dist/components/validate.js +0 -1
  513. package/dist/components/withBodyObserver.js +0 -1
  514. package/dist/components/withComponentStyle.js +0 -1
  515. package/dist/components/withDataset.js +0 -1
  516. package/dist/components/withHasError.js +0 -1
  517. package/dist/components/withRuleSet.js +0 -1
  518. package/dist/components/withScalingGroup.js +0 -1
  519. package/dist/components/withStyled.js +0 -1
  520. package/dist/components/withTranslation.js +0 -1
  521. package/dist/esm/AxisConfig-CEFoGHUN.js +0 -224
  522. package/dist/esm/LabelCollisionManager-Dou5LvUs.js +0 -407
  523. package/dist/esm/NumericScale-DsTzlzxQ.js +0 -105
  524. package/dist/esm/Order-Tn0j255j.js +0 -83
  525. package/dist/esm/SVGStyle-BSuFK9YW.js +0 -6503
  526. package/dist/esm/SVGVariancesStyleGroup-D52LMGw8.js +0 -48
  527. package/dist/esm/VarianceMeasure-BXWH7oAW.js +0 -364
  528. package/dist/esm/XYChartDataRow-D272UFel.js +0 -820
  529. package/dist/esm/bn-chart-bubble.entry.js +0 -791
  530. package/dist/esm/bn-chart-bullet.entry.js +0 -804
  531. package/dist/esm/bn-chart-scatter.entry.js +0 -677
  532. package/dist/esm/bn-template.entry.js +0 -16
  533. package/dist/esm/bn-tree.entry.js +0 -1040
  534. package/dist/esm/editor-companion.entry.js +0 -54
  535. package/dist/esm/emptyState-DqkM4Yc5.js +0 -417
  536. package/dist/esm/ibcs-chart-bubble.entry.js +0 -623
  537. package/dist/esm/ibcs-chart-bullet.entry.js +0 -672
  538. package/dist/esm/ibcs-chart-scatter.entry.js +0 -666
  539. package/dist/esm/sanitizeHtml-BA48JiHe.js +0 -83
  540. package/dist/esm/withHasError-Bh1Viz52.js +0 -254
  541. package/dist/esm/withScalingGroup-Byn-W6z8.js +0 -71
  542. package/dist/types/components/bn-chart-bubble/ibcs-chart-bubble.d.ts +0 -58
  543. package/dist/types/components/bn-chart-bullet/ibcs-chart-bullet.d.ts +0 -52
  544. package/dist/types/components/bn-chart-scatter/ibcs-chart-scatter.d.ts +0 -53
  545. package/dist/types/components/bn-template/bn-template.d.ts +0 -10
  546. package/dist/types/components/editor-companion/editor-companion.d.ts +0 -20
  547. package/dist/types/utils/templateId.d.ts +0 -9
  548. package/dist/types/utils/testing/hostFont.d.ts +0 -16
  549. /package/dist/collection/components/bn-chart-bubble/{ibcs-chart-bubble.css → bn-chart-bubble-renderer/bn-chart-bubble-renderer.css} +0 -0
  550. /package/dist/collection/components/bn-chart-bullet/{ibcs-chart-bullet.css → bn-chart-bullet-renderer/bn-chart-bullet-renderer.css} +0 -0
  551. /package/dist/collection/components/bn-chart-scatter/{ibcs-chart-scatter.css → bn-chart-scatter-renderer/bn-chart-scatter-renderer.css} +0 -0
  552. /package/dist/collection/components/bn-chart-time/{ibcs-chart-time.css → bn-chart-time-renderer/bn-chart-time-renderer.css} +0 -0
  553. /package/dist/collection/components/bn-title/{ibcs-title/ibcs-title.css → bn-title-renderer/bn-title-renderer.css} +0 -0
  554. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/index.js +0 -0
  555. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/MeasureEntriy.js +0 -0
  556. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TimePeriod.js +0 -0
  557. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TitleConfig.js +0 -0
  558. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/index.js +0 -0
  559. /package/dist/components/{merge.js → p-B2NXsfMz.js} +0 -0
  560. /package/dist/components/{emotion-hash.esm.js → p-BYBpC0EO.js} +0 -0
  561. /package/dist/components/{diagnostics.js → p-CckAR27O.js} +0 -0
  562. /package/dist/components/{SiPrefix.js → p-CeE4_3wQ.js} +0 -0
  563. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/Title.d.ts +0 -0
  564. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/TitleDataSetFactory.d.ts +0 -0
  565. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/index.d.ts +0 -0
  566. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/MeasureEntriy.d.ts +0 -0
  567. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TimePeriod.d.ts +0 -0
  568. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TitleConfig.d.ts +0 -0
  569. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/index.d.ts +0 -0
@@ -18,6 +18,8 @@ export function getNodeRect(element, containerRect) {
18
18
  centerY: top + rect.height / 2,
19
19
  };
20
20
  }
21
+ /** An orthogonal edge turns towards its child at this share of the way. */
22
+ const BEND_RATIO = 0.7;
21
23
  /**
22
24
  * Get the connection point on a node based on layout direction
23
25
  */
@@ -66,9 +68,11 @@ export function getMultiParentConnectionPoint(rect, direction, parentIndex, tota
66
68
  }
67
69
  }
68
70
  /**
69
- * Generate an SVG path connecting two points with the specified style
71
+ * Generate an SVG path connecting two points with the specified style.
72
+ * `bend` is the place where an orthogonal edge turns towards its child, see `calculateBend`.
73
+ * Without it the edge turns 70% of the way to its own child.
70
74
  */
71
- export function generateEdgePath(start, end, style, direction) {
75
+ export function generateEdgePath(start, end, style, direction, bend) {
72
76
  switch (style) {
73
77
  case "straight":
74
78
  return generateStraightPath(start, end);
@@ -76,7 +80,7 @@ export function generateEdgePath(start, end, style, direction) {
76
80
  return generateCurvedPath(start, end, direction);
77
81
  case "orthogonal":
78
82
  default:
79
- return generateOrthogonalPath(start, end, direction);
83
+ return generateOrthogonalPath(start, end, direction, bend);
80
84
  }
81
85
  }
82
86
  /**
@@ -119,73 +123,77 @@ function generateCurvedPath(start, end, direction) {
119
123
  * Generate an orthogonal (right-angle) path
120
124
  * The bend point is positioned closer to the children (70% of the way) for better visual balance
121
125
  */
122
- function generateOrthogonalPath(start, end, direction) {
126
+ function generateOrthogonalPath(start, end, direction, bend) {
123
127
  const isHorizontal = direction === "ltr" || direction === "rtl";
124
128
  let path;
125
129
  let midpoint;
126
- const bendRatio = 0.7; // Position bend point 70% towards the end
127
130
  if (isHorizontal) {
128
131
  // For horizontal layouts, go horizontally first, then vertically
129
- const midX = start.x + (end.x - start.x) * bendRatio;
132
+ const midX = bend !== null && bend !== void 0 ? bend : start.x + (end.x - start.x) * BEND_RATIO;
130
133
  path = `M ${start.x} ${start.y} L ${midX} ${start.y} L ${midX} ${end.y} L ${end.x} ${end.y}`;
131
134
  midpoint = { x: midX, y: (start.y + end.y) / 2 };
132
135
  }
133
136
  else {
134
137
  // For vertical layouts, go vertically first, then horizontally
135
- const midY = start.y + (end.y - start.y) * bendRatio;
138
+ const midY = bend !== null && bend !== void 0 ? bend : start.y + (end.y - start.y) * BEND_RATIO;
136
139
  path = `M ${start.x} ${start.y} L ${start.x} ${midY} L ${end.x} ${midY} L ${end.x} ${end.y}`;
137
140
  midpoint = { x: (start.x + end.x) / 2, y: midY };
138
141
  }
139
142
  return { path, midpoint };
140
143
  }
141
144
  /**
142
- * Calculate the position for an operator label between sibling nodes.
143
- * The operator is placed at the T-junction where the parent's line meets the vertical/horizontal split.
145
+ * The place where the edges of one parent turn towards the children: 70% of the way from
146
+ * the parent to its nearest child. It is an x for ltr and rtl and a y for ttb and btt.
147
+ * All edges of the parent share it, so they meet in one bus also when the children have
148
+ * different sizes.
149
+ *
150
+ * Only children ahead of the parent count. A child with a second parent can sit beside
151
+ * this parent, in its own level. Without a child ahead there is no bend.
144
152
  */
145
- export function calculateOperatorPosition(parentRect, sibling1Rect, sibling2Rect, direction) {
146
- const bendRatio = 0.7; // Must match the bendRatio in generateOrthogonalPath
153
+ export function calculateBend(parentRect, childRects, direction) {
154
+ // the edge of the parent the edges leave from, and the edges of the children they arrive at
155
+ let parentEdge;
156
+ let childEdges;
157
+ // +1 when the children are at larger coordinates than the parent
158
+ let ahead;
147
159
  switch (direction) {
148
- case "ltr": {
149
- // T-junction: where parent's horizontal line meets the vertical split
150
- const parentRight = parentRect.left + parentRect.width;
151
- const childrenLeft = Math.min(sibling1Rect.left, sibling2Rect.left);
152
- const midX = parentRight + (childrenLeft - parentRight) * bendRatio;
153
- return {
154
- x: midX,
155
- y: parentRect.centerY, // At parent's Y level (the T-junction)
156
- };
157
- }
158
- case "rtl": {
159
- // T-junction for RTL
160
- const parentLeft = parentRect.left;
161
- const childrenRight = Math.max(sibling1Rect.left + sibling1Rect.width, sibling2Rect.left + sibling2Rect.width);
162
- const midX = childrenRight + (parentLeft - childrenRight) * bendRatio;
163
- return {
164
- x: midX,
165
- y: parentRect.centerY,
166
- };
167
- }
168
- case "ttb": {
169
- // T-junction for top-to-bottom
170
- const parentBottom = parentRect.top + parentRect.height;
171
- const childrenTop = Math.min(sibling1Rect.top, sibling2Rect.top);
172
- const midY = parentBottom + (childrenTop - parentBottom) * bendRatio;
173
- return {
174
- x: parentRect.centerX, // At parent's X level (the T-junction)
175
- y: midY,
176
- };
177
- }
178
- case "btt": {
179
- // T-junction for bottom-to-top
180
- const parentTop = parentRect.top;
181
- const childrenBottom = Math.max(sibling1Rect.top + sibling1Rect.height, sibling2Rect.top + sibling2Rect.height);
182
- const midY = childrenBottom + (parentTop - childrenBottom) * bendRatio;
183
- return {
184
- x: parentRect.centerX,
185
- y: midY,
186
- };
187
- }
160
+ case "ltr":
161
+ parentEdge = parentRect.left + parentRect.width;
162
+ childEdges = childRects.map((rect) => rect.left);
163
+ ahead = 1;
164
+ break;
165
+ case "rtl":
166
+ parentEdge = parentRect.left;
167
+ childEdges = childRects.map((rect) => rect.left + rect.width);
168
+ ahead = -1;
169
+ break;
170
+ case "ttb":
171
+ parentEdge = parentRect.top + parentRect.height;
172
+ childEdges = childRects.map((rect) => rect.top);
173
+ ahead = 1;
174
+ break;
175
+ case "btt":
176
+ parentEdge = parentRect.top;
177
+ childEdges = childRects.map((rect) => rect.top + rect.height);
178
+ ahead = -1;
179
+ break;
180
+ }
181
+ const distances = childEdges.map((edge) => (edge - parentEdge) * ahead).filter((distance) => distance >= 0);
182
+ if (distances.length === 0) {
183
+ return undefined;
184
+ }
185
+ return parentEdge + Math.min(...distances) * ahead * BEND_RATIO;
186
+ }
187
+ /**
188
+ * Calculate the position for an operator label between two sibling nodes.
189
+ * The operator sits on the bus that joins the children (at `bend`, see `calculateBend`),
190
+ * halfway between the two siblings. For two children that is where the parent meets the bus.
191
+ */
192
+ export function calculateOperatorPosition(bend, sibling1Rect, sibling2Rect, direction) {
193
+ if (direction === "ltr" || direction === "rtl") {
194
+ return { x: bend, y: (sibling1Rect.centerY + sibling2Rect.centerY) / 2 };
188
195
  }
196
+ return { x: (sibling1Rect.centerX + sibling2Rect.centerX) / 2, y: bend };
189
197
  }
190
198
  /**
191
199
  * Get SVG style attributes for an edge
@@ -77,6 +77,9 @@ function calculateNodeIndices(config) {
77
77
  return existing;
78
78
  }
79
79
  const children = config.adjacencyList.get(node) || [];
80
+ // Marked before the children are visited, so an edge back to this node ends here.
81
+ // validateEdges rejects cycles, this only keeps the layout from running forever.
82
+ indices.set(node, { startIndex: currentIndex, endIndex: currentIndex });
80
83
  if (children.length === 0) {
81
84
  // Leaf node
82
85
  const info = { startIndex: currentIndex, endIndex: currentIndex };
@@ -111,31 +114,46 @@ function calculateGridPositions(config, levels, indices, direction) {
111
114
  const indexInfo = (_b = indices.get(nodeId)) !== null && _b !== void 0 ? _b : { startIndex: 0, endIndex: 0 };
112
115
  let gridColumn;
113
116
  let gridRow;
114
- let gridRowSpan;
117
+ let gridRowSpan = 1;
118
+ let gridColumnSpan = 1;
119
+ // a parent spans its children, so it sits centred next to them or over them
120
+ const span = indexInfo.endIndex - indexInfo.startIndex + 1;
121
+ // Two parents that share a child have ranges that overlap. As columns their spans
122
+ // would put the two boxes on top of each other: such a parent keeps the column of its first child.
123
+ const sharesColumns = Array.from(config.allNodes).some((other) => {
124
+ var _a;
125
+ const otherInfo = indices.get(other);
126
+ return (other !== nodeId &&
127
+ otherInfo !== undefined &&
128
+ ((_a = levels.get(other)) !== null && _a !== void 0 ? _a : 0) === level &&
129
+ otherInfo.startIndex <= indexInfo.endIndex &&
130
+ indexInfo.startIndex <= otherInfo.endIndex);
131
+ });
132
+ const columnSpan = sharesColumns ? 1 : span;
115
133
  switch (direction) {
116
134
  case "ltr":
117
135
  // Left to right: levels are columns, indices are rows
118
136
  gridColumn = level + 1; // CSS grid is 1-indexed
119
137
  gridRow = indexInfo.startIndex + 1;
120
- gridRowSpan = indexInfo.endIndex - indexInfo.startIndex + 1;
138
+ gridRowSpan = span;
121
139
  break;
122
140
  case "rtl":
123
141
  // Right to left: levels are reversed columns
124
142
  gridColumn = maxLevel - level + 1;
125
143
  gridRow = indexInfo.startIndex + 1;
126
- gridRowSpan = indexInfo.endIndex - indexInfo.startIndex + 1;
144
+ gridRowSpan = span;
127
145
  break;
128
146
  case "ttb":
129
147
  // Top to bottom: levels are rows, indices are columns
130
148
  gridRow = level + 1;
131
149
  gridColumn = indexInfo.startIndex + 1;
132
- gridRowSpan = 1;
150
+ gridColumnSpan = columnSpan;
133
151
  break;
134
152
  case "btt":
135
153
  // Bottom to top: levels are reversed rows
136
154
  gridRow = maxLevel - level + 1;
137
155
  gridColumn = indexInfo.startIndex + 1;
138
- gridRowSpan = 1;
156
+ gridColumnSpan = columnSpan;
139
157
  break;
140
158
  }
141
159
  positions.set(nodeId, {
@@ -145,6 +163,7 @@ function calculateGridPositions(config, levels, indices, direction) {
145
163
  gridColumn,
146
164
  gridRow,
147
165
  gridRowSpan,
166
+ gridColumnSpan,
148
167
  });
149
168
  }
150
169
  return positions;
@@ -223,3 +242,9 @@ export function getActualGridRowSpan(baseRowSpan) {
223
242
  // Span includes the spacer rows between nodes
224
243
  return (baseRowSpan - 1) * 2 + 1;
225
244
  }
245
+ /**
246
+ * Get the actual grid column span accounting for spacer columns
247
+ */
248
+ export function getActualGridColumnSpan(baseColumnSpan) {
249
+ return getActualGridRowSpan(baseColumnSpan);
250
+ }
@@ -62,6 +62,7 @@ export function validateEdges(json) {
62
62
  }
63
63
  const allNodes = new Set();
64
64
  const targetNodes = new Set();
65
+ const children = new Map();
65
66
  parsed.forEach((edge, index) => {
66
67
  if (typeof edge !== "object" || edge === null) {
67
68
  errors.push(`edges[${index}]: must be an object`);
@@ -80,6 +81,9 @@ export function validateEdges(json) {
80
81
  else {
81
82
  allNodes.add(typedEdge.to);
82
83
  targetNodes.add(typedEdge.to);
84
+ if (typeof typedEdge.from === "string") {
85
+ children.set(typedEdge.from, [...(children.get(typedEdge.from) || []), typedEdge.to]);
86
+ }
83
87
  }
84
88
  if (typedEdge.operator !== undefined) {
85
89
  if (typeof typedEdge.operator !== "string" || !VALID_OPERATORS.includes(typedEdge.operator)) {
@@ -115,6 +119,37 @@ export function validateEdges(json) {
115
119
  else if (rootNodes.length > 1) {
116
120
  errors.push(`edges: tree has multiple root nodes: ${rootNodes.join(", ")}`);
117
121
  }
122
+ else {
123
+ errors.push(...findCycleErrors(rootNodes[0], children, allNodes));
124
+ }
125
+ return errors;
126
+ }
127
+ /**
128
+ * Walks the tree from its root. An edge that leads back to a node on the way from the
129
+ * root is a cycle. A node the walk never reaches hangs in a cycle of its own.
130
+ */
131
+ function findCycleErrors(root, children, allNodes) {
132
+ const errors = [];
133
+ const onPath = new Set();
134
+ const visited = new Set();
135
+ const visit = (node) => {
136
+ visited.add(node);
137
+ onPath.add(node);
138
+ for (const child of children.get(node) || []) {
139
+ if (onPath.has(child)) {
140
+ errors.push(`edges: circular reference, the edge from '${node}' to '${child}' leads back`);
141
+ }
142
+ else if (!visited.has(child)) {
143
+ visit(child);
144
+ }
145
+ }
146
+ onPath.delete(node);
147
+ };
148
+ visit(root);
149
+ const unreachable = Array.from(allNodes).filter((node) => !visited.has(node));
150
+ if (unreachable.length > 0) {
151
+ errors.push(`edges: nodes not connected to the root '${root}': ${unreachable.join(", ")}`);
152
+ }
118
153
  return errors;
119
154
  }
120
155
  /**
@@ -13,7 +13,7 @@
13
13
  import { createScopedStores } from "../stores/createScopedStores";
14
14
  /**
15
15
  * Module-level registry mapping `<bn-context>` DOM elements to their stores.
16
- * Stores are created lazily by `getOrCreateStores()` — whichever component
16
+ * Stores are created lazily by `getOrCreateStores()` - whichever component
17
17
  * initializes first triggers creation for its ancestor `<bn-context>`.
18
18
  */
19
19
  const contextRegistry = new WeakMap();
@@ -20,20 +20,48 @@ import { DateTime } from "luxon";
20
20
  */
21
21
  export function buildFromExpr(tableName, filter) {
22
22
  if (filter != null && filter.length > 0) {
23
- return `(SELECT * FROM \`${tableName}\` WHERE ${filter}) AS __src`;
23
+ // a rejected filter (the wrappers report ERR_filter) selects nothing instead of reaching alasql
24
+ return `(SELECT * FROM \`${tableName}\` WHERE ${hasInlineJs(filter) ? "1 = 0" : filter}) AS __src`;
24
25
  }
25
26
  return `\`${tableName}\``;
26
27
  }
28
+ /**
29
+ * True when `name` is registered as a table or a view. A query on a name that
30
+ * is not registered yet means "no data so far". A failing query on a
31
+ * registered name is an error.
32
+ */
33
+ export function isRegistered(db, name) {
34
+ var _a;
35
+ // alasql keeps a view in db.tables as well
36
+ return ((_a = db.tables) === null || _a === void 0 ? void 0 : _a[name]) != null;
37
+ }
38
+ /** {@link buildFromExpr} for a registered source, `""` otherwise. The query helpers read `""` as "no data". */
39
+ export function sourceExpr(db, tableName, filter) {
40
+ return tableName && isRegistered(db, tableName) ? buildFromExpr(tableName, filter) : "";
41
+ }
42
+ /**
43
+ * True when alasql would find a double backtick in `sql`: it runs the text
44
+ * between double backticks as JavaScript. alasql strips comments before it
45
+ * reads the text, so two backticks with only a comment between them count too.
46
+ */
47
+ export function hasInlineJs(sql) {
48
+ var _a, _b, _c;
49
+ if (!sql)
50
+ return false;
51
+ // @ts-ignore - utils is not in the public typings
52
+ const uncommented = (_c = (_b = (_a = alasql.utils) === null || _a === void 0 ? void 0 : _a.uncomment) === null || _b === void 0 ? void 0 : _b.call(_a, sql)) !== null && _c !== void 0 ? _c : "";
53
+ return sql.includes("``") || uncommented.includes("``");
54
+ }
27
55
  /** Coerces an unknown value into a Luxon `DateTime`, or `undefined` if it can't be parsed. */
28
56
  function toDateTime(value) {
29
57
  if (value == null)
30
58
  return undefined;
31
59
  if (typeof value === "string") {
32
- const dt = DateTime.fromISO(value);
60
+ const dt = DateTime.fromISO(value, { zone: "utc" });
33
61
  return dt.isValid ? dt : undefined;
34
62
  }
35
63
  if (typeof value === "number") {
36
- const dt = DateTime.fromMillis(value);
64
+ const dt = DateTime.fromMillis(value, { zone: "utc" });
37
65
  return dt.isValid ? dt : undefined;
38
66
  }
39
67
  // Already a DateTime-shaped object.
@@ -45,7 +73,7 @@ function toDateTime(value) {
45
73
  }
46
74
  /**
47
75
  * AlaSQL custom functions (UDFs) live on the `alasql.fn` global, not per-DB.
48
- * Register them once at module load — multiple contexts share the registrations.
76
+ * Register them once at module load - multiple contexts share the registrations.
49
77
  *
50
78
  * Signatures are widened to `(...x: unknown[]) => unknown` to satisfy alasql's
51
79
  * `userDefinedFunction` type; argument validation happens inside each UDF.
@@ -82,6 +110,7 @@ export function createScopedDb() {
82
110
  registerUdfs();
83
111
  const db = new alasql.Database();
84
112
  const subscribers = new Map();
113
+ const claims = new Map();
85
114
  return {
86
115
  db,
87
116
  subscribe(name, cb) {
@@ -123,5 +152,19 @@ export function createScopedDb() {
123
152
  // @ts-ignore - views is not in the public typings
124
153
  return ((_a = db.views) === null || _a === void 0 ? void 0 : _a[name]) != null;
125
154
  },
155
+ claim(name, onShared) {
156
+ var _a;
157
+ const producers = (_a = claims.get(name)) !== null && _a !== void 0 ? _a : new Set();
158
+ claims.set(name, producers);
159
+ producers.add(onShared);
160
+ const tell = () => producers.forEach((cb) => cb(producers.size > 1));
161
+ tell();
162
+ return () => {
163
+ producers.delete(onShared);
164
+ if (producers.size === 0)
165
+ claims.delete(name);
166
+ tell();
167
+ };
168
+ },
126
169
  };
127
170
  }
@@ -1,3 +1,2 @@
1
- import "./global.css";
2
1
  export * from "./components";
3
2
  export * from "./utils/layoutState/types";
@@ -0,0 +1 @@
1
+ export {};
@@ -8,8 +8,8 @@ const xyChartStyleDefaults = () => ({
8
8
  labelToMark: 0.3,
9
9
  legendSwatch: 0.9,
10
10
  panelGap: 1.6,
11
- refLineWidth: 1,
12
- gridLineWidth: 1,
11
+ refLineWidth: 0.075,
12
+ gridLineWidth: 0.075,
13
13
  },
14
14
  axisStyles: {
15
15
  ac: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 1 },
@@ -59,7 +59,7 @@ export const SYSTEM_STYLE_DEFAULTS = {
59
59
  },
60
60
  barStyles: {
61
61
  ac: { stroke: "#404040", fill: "#404040", width: 0.1 },
62
- fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "fc" },
62
+ fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "hatched" },
63
63
  pp: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 0.1 },
64
64
  pl: { stroke: "#404040", fill: "#ffffff", width: 0.1 },
65
65
  },
@@ -102,7 +102,7 @@ export const SYSTEM_STYLE_DEFAULTS = {
102
102
  },
103
103
  barStyles: {
104
104
  ac: { stroke: "#404040", fill: "#404040", width: 0.1 },
105
- fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "fc" },
105
+ fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "hatched" },
106
106
  pp: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 0.1 },
107
107
  pl: { stroke: "#404040", fill: "#ffffff", width: 0.1 },
108
108
  },
@@ -127,8 +127,8 @@ export const SYSTEM_STYLE_DEFAULTS = {
127
127
  barHeight: 0.66,
128
128
  varianceHeight: 0.4,
129
129
  targetTickHeight: 1.1,
130
- targetLineWidth: 2,
131
- axisLineWidth: 1,
130
+ targetLineWidth: 0.15,
131
+ axisLineWidth: 0.075,
132
132
  labelToBar: 0.3,
133
133
  labelToAxis: 0.3,
134
134
  axisTickLength: 0.35,
@@ -173,3 +173,42 @@ export const SYSTEM_STYLE_DEFAULTS = {
173
173
  cellPadding: 4,
174
174
  },
175
175
  };
176
+ /** `bn-text` keys. All are optional, so the defaults do not list them. */
177
+ const TEXT_STYLE_KEYS = ["fontFamily", "fontSizePx", "fontColor", "fontBackgroundColor", "leading"];
178
+ // The keys of these groups are checked too. The style groups (`axisStyles.ac`, ...) are not: their keys differ per scenario.
179
+ const CHECKED_GROUPS = ["scaleFactors", "padding"];
180
+ const isPlainObject = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
181
+ /**
182
+ * The keys of a style body that no component reads, as paths
183
+ * (e.g. `bn-chart-time.scaleFactors.labelToColum`). Such a key is ignored
184
+ * when the style is applied, so a typo would otherwise go unnoticed.
185
+ */
186
+ export function unknownStyleKeys(style) {
187
+ const unknown = [];
188
+ if (!isPlainObject(style)) {
189
+ return unknown;
190
+ }
191
+ const defaults = SYSTEM_STYLE_DEFAULTS;
192
+ for (const [section, value] of Object.entries(style)) {
193
+ if (!(section in defaults)) {
194
+ unknown.push(section);
195
+ continue;
196
+ }
197
+ if (!isPlainObject(value)) {
198
+ continue;
199
+ }
200
+ const sectionKeys = section === "bn-text" ? TEXT_STYLE_KEYS : Object.keys(defaults[section]);
201
+ for (const [key, group] of Object.entries(value)) {
202
+ if (!sectionKeys.includes(key)) {
203
+ unknown.push(`${section}.${key}`);
204
+ }
205
+ else if (CHECKED_GROUPS.includes(key) && isPlainObject(group)) {
206
+ const groupKeys = Object.keys(defaults[section][key]);
207
+ unknown.push(...Object.keys(group)
208
+ .filter((name) => !groupKeys.includes(name))
209
+ .map((name) => `${section}.${key}.${name}`));
210
+ }
211
+ }
212
+ }
213
+ return unknown;
214
+ }
@@ -8,7 +8,7 @@
8
8
  * **Token pattern**: Variance symbols use `{%}` as a placeholder for the
9
9
  * scenario abbreviation. For example, `"Δ{%}"` becomes `"ΔPY"` when the
10
10
  * comparison scenario is "PY". The `{%}` replacement is performed at render
11
- * time by `Formatter.translateScenarioLabel` — not by `withTranslation`,
11
+ * time by `Formatter.translateScenarioLabel` - not by `withTranslation`,
12
12
  * which only interpolates `{{mustache}}` placeholders.
13
13
  *
14
14
  * @module stores/internationalization
@@ -105,7 +105,7 @@ const de = flattenObject({
105
105
  ibcssymbol_delta_generic_relative: "Δ({%})%",
106
106
  },
107
107
  "bn-title": {
108
- SEPERATOR_WS: ", ",
108
+ SEPARATOR_WS: ", ",
109
109
  CONNECTOR_WS: " und ",
110
110
  in: "in",
111
111
  },
@@ -123,7 +123,8 @@ const de = flattenObject({
123
123
  "bullet-target-none": "Kein Ziel-Szenario gefunden (pl1/pp1/fc1); nur Ist-Balken werden gezeichnet.",
124
124
  "bullet-target-missing": "{{count}} Zeile(n) ohne Zielwert; Varianz und Marker entfallen.",
125
125
  "bullet-target-invalid": "{{count}} Zeile(n) mit Ziel ≤ 0 können nicht normalisiert werden; Balken entfällt.",
126
- "bullet-mixed-operation": "{{count}} KPI-Gruppe(n) mischen '+'- und '-'-Zeilen; Sentiment fällt auf '+' zurück.",
126
+ "bullet-actual-negative": "{{count}} Zeile(n) mit negativem Ist-Wert; der Balken kann nicht gezeichnet werden, der Wert steht als Text.",
127
+ "bullet-mixed-operation": "{{count}} KPI-Gruppe(n) mischen '+'- und '-'-Zeilen; '-'-Zeilen werden abgezogen, das Sentiment ist '+'.",
127
128
  "bullet-ranges-ignored": 'ranges: im normalisierten (IBCS-)Modus ignoriert; normalize="none" setzen.',
128
129
  "bullet-ranges-invalid": "ranges: erwartet bis zu 2 aufsteigende positive Zielanteile ({{detail}}).",
129
130
  },
@@ -131,7 +132,7 @@ const de = flattenObject({
131
132
  in: "in",
132
133
  category: " ",
133
134
  operation: " ",
134
- there_of: "davon",
135
+ thereof: "davon",
135
136
  part_of: "in % von",
136
137
  SUM_TOTAL: "❖",
137
138
  REST: "REST",
@@ -164,7 +165,7 @@ const en = flattenObject({
164
165
  ibcssymbol_delta_generic_relative: "Δ({%})%",
165
166
  },
166
167
  "bn-title": {
167
- SEPERATOR_WS: ", ",
168
+ SEPARATOR_WS: ", ",
168
169
  CONNECTOR_WS: " and ",
169
170
  in: "in",
170
171
  },
@@ -182,7 +183,8 @@ const en = flattenObject({
182
183
  "bullet-target-none": "No target scenario found (pl1/pp1/fc1); rendering actual bars only.",
183
184
  "bullet-target-missing": "{{count}} row(s) without a target value; variance and marker omitted.",
184
185
  "bullet-target-invalid": "{{count}} row(s) with target ≤ 0 cannot be normalized; bar omitted.",
185
- "bullet-mixed-operation": "{{count}} KPI group(s) mix '+' and '-' rows; sentiment defaults to '+'.",
186
+ "bullet-actual-negative": "{{count}} row(s) with a negative actual value; the bar cannot be drawn, the value is shown as text.",
187
+ "bullet-mixed-operation": "{{count}} KPI group(s) mix '+' and '-' rows; '-' rows are subtracted and the sentiment is '+'.",
186
188
  "bullet-ranges-ignored": 'ranges: ignored in normalized (IBCS) mode; set normalize="none".',
187
189
  "bullet-ranges-invalid": "ranges: expected up to 2 ascending positive fractions of the target ({{detail}}).",
188
190
  },
@@ -190,13 +192,17 @@ const en = flattenObject({
190
192
  in: "in",
191
193
  category: " ",
192
194
  operation: " ",
193
- there_of: "there of",
195
+ thereof: "there of",
194
196
  part_of: "in % of",
195
197
  SUM_TOTAL: "❖",
196
198
  REST: "REST",
197
199
  "no-data": "No Data",
198
200
  },
199
201
  });
200
- const BN_INTERNATIONALIZATION_KEYS = Object.keys(de || {});
202
+ /** Old key names (deprecated) and what they are called now. A text is still found and still read under the old name. */
203
+ export const RENAMED_I18N_KEYS = {
204
+ "bn-title.SEPERATOR_WS": "bn-title.SEPARATOR_WS",
205
+ "bn-table.there_of": "bn-table.thereof",
206
+ };
201
207
  export const SYSTEM_I18N_DEFAULTS = { _system: { de, en } };
202
- export { globalLabelKeys, BN_INTERNATIONALIZATION_KEYS };
208
+ export { globalLabelKeys };
@@ -42,7 +42,8 @@ export class DateStringFactory {
42
42
  year: "yyyy",
43
43
  quarter: "q'Q' yyyy",
44
44
  month: "LLL yyyy",
45
- week: "'KW'WW yyyy",
45
+ // kkkk is the ISO week year: week 1 of 2025 starts on Monday 2024-12-30
46
+ week: "'KW'WW kkkk",
46
47
  day: "dd.MM.yyyy",
47
48
  hour: "TT",
48
49
  minute: "TT",
@@ -205,24 +206,24 @@ export class DateStringFactory {
205
206
  * @param {string|Date} from start date
206
207
  * @param {string|Date} to end date
207
208
  * @param dateInterval
208
- * @param spanLimit
209
209
  */
210
- datesBetween(from, to, dateInterval, spanLimit) {
210
+ datesBetween(from, to, dateInterval) {
211
211
  const unit = this.convertDateDistanceToMomentunitOfTime(dateInterval);
212
212
  const fromDate = from.startOf(unit);
213
213
  const toDate = to.endOf(unit);
214
- let span = toDate.diff(fromDate).as(unit);
215
214
  const days = [];
216
- if (span >= spanLimit) {
217
- span = spanLimit;
218
- }
219
215
  let currentDate = fromDate;
220
216
  do {
221
217
  days.push(currentDate);
222
218
  currentDate = currentDate.plus(this.createDiratonLike(unit, 1));
223
- } while (currentDate <= toDate && days.length < span);
219
+ } while (currentDate <= toDate);
224
220
  return days;
225
221
  }
222
+ /** Number of `dateInterval` periods from `from` to `to`, both included. */
223
+ countBetween(from, to, dateInterval) {
224
+ const unit = this.convertDateDistanceToMomentunitOfTime(dateInterval);
225
+ return Math.floor(to.startOf(unit).diff(from.startOf(unit), unit).as(unit)) + 1;
226
+ }
226
227
  /**
227
228
  * Produces an IBCS date-link string combining date formatting with link notation.
228
229
  *
@@ -280,7 +281,7 @@ export class DateStringFactory {
280
281
  dateString1 = dateString2;
281
282
  }
282
283
  // clean up dateString1 if same year
283
- if (mode === DateLink.INTERVAL || mode === DateLink.CUM || DateLink.AVG) {
284
+ if (mode === DateLink.INTERVAL || mode === DateLink.CUM || mode === DateLink.AVG) {
284
285
  if (type === DateDistance.QUARTER) {
285
286
  if (date1.quarter === date2.quarter && date1.year === date2.year) {
286
287
  dateString2 = dateString2.replace(" " + date2.year, "");
@@ -298,11 +299,11 @@ export class DateStringFactory {
298
299
  }
299
300
  }
300
301
  else if (type === DateDistance.WEEK) {
301
- if (date1.weekNumber === date2.weekNumber && date1.year === date2.year) {
302
- dateString2 = dateString2.replace(" " + date2.year, "");
302
+ if (date1.weekNumber === date2.weekNumber && date1.weekYear === date2.weekYear) {
303
+ dateString2 = dateString2.replace(" " + date2.weekYear, "");
303
304
  }
304
- else if (date1.year === date2.year) {
305
- dateString1 = dateString1.replace(" " + date1.year, "");
305
+ else if (date1.weekYear === date2.weekYear) {
306
+ dateString1 = dateString1.replace(" " + date1.weekYear, "");
306
307
  }
307
308
  }
308
309
  }
@@ -345,7 +346,8 @@ export class DateStringFactory {
345
346
  getFormatedWeekDate(date) {
346
347
  let format = this.dateFormatShort["week"];
347
348
  if (this.isFirstWeek(date)) {
348
- format += " " + this.dateFormatShort["year"];
349
+ // the short ISO week year, see the week format
350
+ format += " kk";
349
351
  }
350
352
  return date.setLocale(this.locale).toFormat(format);
351
353
  }
@@ -471,7 +473,7 @@ export class DateStringFactory {
471
473
  * locale-aware through `setLocale`, so they need no override.
472
474
  */
473
475
  DateStringFactory.LOCALE_DATE_FORMAT = {
474
- en: { week: "'W'WW yyyy", day: "MM/dd/yyyy", fallback: "MM/dd/yyyy" },
476
+ en: { week: "'W'WW kkkk", day: "MM/dd/yyyy", fallback: "MM/dd/yyyy" },
475
477
  };
476
478
  DateStringFactory.LOCALE_DATE_FORMAT_SHORT = {
477
479
  en: { week: "'W'WW", fallback: "MM/dd/yyyy" },