@bino-bi/bn-template-engine 1.0.0-alpha.16 → 1.0.0-alpha.18

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 (326) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-0107f0cc.entry.js +1 -0
  3. package/dist/bn-template-engine/p-209351c9.entry.js +1 -0
  4. package/dist/bn-template-engine/p-22d0fb7a.entry.js +1 -0
  5. package/dist/bn-template-engine/p-2e6dc267.entry.js +1 -0
  6. package/dist/bn-template-engine/p-485d23d7.entry.js +1 -0
  7. package/dist/bn-template-engine/p-5651417d.entry.js +1 -0
  8. package/dist/bn-template-engine/p-5bfdc1e5.entry.js +1 -0
  9. package/dist/bn-template-engine/p-6b75762d.entry.js +1 -0
  10. package/dist/bn-template-engine/{p-ff659485.entry.js → p-7bdc0e28.entry.js} +1 -1
  11. package/dist/bn-template-engine/p-9879c9b2.entry.js +1 -0
  12. package/dist/bn-template-engine/p-BA48JiHe.js +1 -0
  13. package/dist/bn-template-engine/p-BWKdb9ym.js +1 -0
  14. package/dist/bn-template-engine/p-BZV1b5VH.js +1 -0
  15. package/dist/bn-template-engine/p-Bdfxd_Ke.js +1 -0
  16. package/dist/bn-template-engine/p-BqhIhYr1.js +1 -0
  17. package/dist/bn-template-engine/p-C0Pwqx-O.js +1 -0
  18. package/dist/bn-template-engine/p-CBqUr7I8.js +1 -0
  19. package/dist/bn-template-engine/{p-BPDZcex5.js → p-CPzF3Q2m.js} +1 -1
  20. package/dist/bn-template-engine/p-CiudZRQr.js +1 -0
  21. package/dist/bn-template-engine/p-Dg9OcXAO.js +1 -0
  22. package/dist/bn-template-engine/p-DsTzlzxQ.js +1 -0
  23. package/dist/bn-template-engine/p-X6CxL6W-.js +1 -0
  24. package/dist/bn-template-engine/p-a130cb43.entry.js +1 -0
  25. package/dist/bn-template-engine/p-aakBGfzL.js +1 -0
  26. package/dist/bn-template-engine/p-dc745c32.entry.js +1 -0
  27. package/dist/bn-template-engine/p-e96da91f.entry.js +1 -0
  28. package/dist/bn-template-engine/p-f3d1fa06.entry.js +1 -0
  29. package/dist/bn-template-engine/p-fcb43f2c.entry.js +1 -0
  30. package/dist/bn-template-engine/p-rdqTC0_5.js +1 -0
  31. package/dist/cjs/AxisConfig-VnVelfSV.js +233 -0
  32. package/dist/cjs/LabelCollisionManager-nfD5P__k.js +412 -0
  33. package/dist/cjs/NumericScale-BAyYXpKL.js +107 -0
  34. package/dist/cjs/Order-DobBozQC.js +87 -0
  35. package/dist/cjs/SVGStyle-BQOmGWLX.js +8209 -0
  36. package/dist/cjs/SVGVariancesStyleGroup-DCGfHrqh.js +50 -0
  37. package/dist/cjs/VarianceMeasure-NY9yhiNV.js +372 -0
  38. package/dist/cjs/XYChartDataRow-B7OKrAcC.js +829 -0
  39. package/dist/cjs/bn-asset_21.cjs.entry.js +1614 -9670
  40. package/dist/cjs/bn-chart-bubble.cjs.entry.js +762 -0
  41. package/dist/cjs/bn-chart-bullet.cjs.entry.js +785 -0
  42. package/dist/cjs/bn-chart-scatter.cjs.entry.js +658 -0
  43. package/dist/cjs/bn-grid.cjs.entry.js +5 -3
  44. package/dist/cjs/bn-image.cjs.entry.js +5 -3
  45. package/dist/cjs/bn-internationalization.cjs.entry.js +2 -2
  46. package/dist/cjs/bn-ruleset.cjs.entry.js +41 -0
  47. package/dist/cjs/bn-template-engine.cjs.js +1 -1
  48. package/dist/cjs/bn-template.cjs.entry.js +1 -1
  49. package/dist/cjs/bn-text.cjs.entry.js +8 -79
  50. package/dist/cjs/bn-tree.cjs.entry.js +4 -2
  51. package/dist/cjs/{context-protocol-Cn5PL928.js → context-protocol-BDrMkhc4.js} +272 -1
  52. package/dist/cjs/editor-companion.cjs.entry.js +2 -2
  53. package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +624 -0
  54. package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +673 -0
  55. package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +667 -0
  56. package/dist/cjs/layoutObserver-p0wXIWFg.js +350 -0
  57. package/dist/cjs/loader.cjs.js +1 -1
  58. package/dist/cjs/sanitizeHtml-LuZr1IMd.js +85 -0
  59. package/dist/cjs/{scaling-DM2UILdF.js → scaling-BmqxcNOf.js} +1 -1
  60. package/dist/cjs/withScalingGroup-BmcRlWBs.js +73 -0
  61. package/dist/cjs/{withStyled-Dx3uRw9g.js → withStyled-CRiC9fzc.js} +44 -383
  62. package/dist/collection/collection-manifest.json +7 -0
  63. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.css +10 -0
  64. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +1110 -0
  65. package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.css +9 -0
  66. package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.js +653 -0
  67. package/dist/collection/components/bn-chart-bubble/utils/BubbleChart.js +472 -0
  68. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.css +10 -0
  69. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +1014 -0
  70. package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.css +9 -0
  71. package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.js +538 -0
  72. package/dist/collection/components/bn-chart-bullet/utils/BulletChart.js +440 -0
  73. package/dist/collection/components/bn-chart-bullet/utils/model/BulletChartStyle.js +132 -0
  74. package/dist/collection/components/bn-chart-bullet/utils/model/BulletConfig.js +89 -0
  75. package/dist/collection/components/bn-chart-bullet/utils/model/index.js +2 -0
  76. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.css +10 -0
  77. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +965 -0
  78. package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.css +9 -0
  79. package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.js +580 -0
  80. package/dist/collection/components/bn-chart-scatter/utils/ScatterChart.js +409 -0
  81. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +23 -2
  82. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +29 -4
  83. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +3 -0
  84. package/dist/collection/components/bn-chart-time/bn-chart-time.js +27 -4
  85. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +29 -4
  86. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +16 -4
  87. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -3
  88. package/dist/collection/components/bn-component-style/bn-component-style.js +1 -1
  89. package/dist/collection/components/bn-context/bn-context.js +1 -1
  90. package/dist/collection/components/bn-dataset/bn-dataset.js +1 -1
  91. package/dist/collection/components/bn-datasource/bn-datasource.js +1 -1
  92. package/dist/collection/components/bn-footer/bn-footer.js +1 -1
  93. package/dist/collection/components/bn-grid/bn-grid.js +1 -1
  94. package/dist/collection/components/bn-image/bn-image.js +1 -1
  95. package/dist/collection/components/bn-internationalization/bn-internationalization.js +1 -1
  96. package/dist/collection/components/bn-layout-card/bn-layout-card.js +26 -3
  97. package/dist/collection/components/bn-layout-page/bn-layout-page.js +33 -4
  98. package/dist/collection/components/bn-message/bn-message.css +6 -2
  99. package/dist/collection/components/bn-message/bn-message.js +3 -2
  100. package/dist/collection/components/bn-page/bn-page.js +1 -1
  101. package/dist/collection/components/bn-ruleset/bn-ruleset.css +3 -0
  102. package/dist/collection/components/bn-ruleset/bn-ruleset.js +68 -0
  103. package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +1 -1
  104. package/dist/collection/components/bn-table/bn-table.js +146 -14
  105. package/dist/collection/components/bn-table/ibcs-table.css +8 -0
  106. package/dist/collection/components/bn-table/ibcs-table.js +64 -8
  107. package/dist/collection/components/bn-table/utils/Table.js +43 -5
  108. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +13 -8
  109. package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -2
  110. package/dist/collection/components/bn-table/utils/elements/WaterfallBar.js +47 -0
  111. package/dist/collection/components/bn-table/utils/elements/index.js +1 -0
  112. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +87 -15
  113. package/dist/collection/components/bn-table/utils/helper/DataQuery.js +284 -3
  114. package/dist/collection/components/bn-table/utils/helper/IntervalColumns.js +140 -0
  115. package/dist/collection/components/bn-table/utils/helper/WaterfallCalculator.js +166 -0
  116. package/dist/collection/components/bn-table/utils/helper/index.js +2 -0
  117. package/dist/collection/components/bn-table/utils/model/TableComponentConfig.js +10 -0
  118. package/dist/collection/components/bn-template/bn-template.js +1 -1
  119. package/dist/collection/components/bn-text/bn-text.js +2 -75
  120. package/dist/collection/components/bn-title/bn-title.js +27 -3
  121. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.css +4 -0
  122. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +29 -3
  123. package/dist/collection/components/bn-title/ibcs-title/utils/Title.js +3 -0
  124. package/dist/collection/components/editor-companion/editor-companion.js +1 -1
  125. package/dist/collection/stores/componentStyles.js +67 -0
  126. package/dist/collection/stores/createScopedStores.js +6 -1
  127. package/dist/collection/stores/internationalization.js +68 -0
  128. package/dist/collection/stores/ruleSets.js +46 -0
  129. package/dist/collection/utils/constants.js +5 -0
  130. package/dist/collection/utils/ibcsRuleSet.js +14 -26
  131. package/dist/collection/utils/sanitizeHtml.js +81 -0
  132. package/dist/collection/utils/validate.js +24 -0
  133. package/dist/collection/utils/withComponentStyle.js +3 -5
  134. package/dist/collection/utils/withInheritedProps.js +1 -1
  135. package/dist/collection/utils/withRuleSet.js +105 -0
  136. package/dist/collection/utils/withScalingGroup.js +3 -0
  137. package/dist/collection/utils/xy/FacetGrid.js +36 -0
  138. package/dist/collection/utils/xy/IsoCurves.js +156 -0
  139. package/dist/collection/utils/xy/NumericScale.js +103 -0
  140. package/dist/collection/utils/xy/PointLabeler.js +96 -0
  141. package/dist/collection/utils/xy/RadiusScale.js +42 -0
  142. package/dist/collection/utils/xy/SeriesPalette.js +80 -0
  143. package/dist/collection/utils/xy/VarianceMeasure.js +76 -0
  144. package/dist/collection/utils/xy/XYFrame.js +120 -0
  145. package/dist/collection/utils/xy/XYLegend.js +107 -0
  146. package/dist/collection/utils/xy/model/AxisConfig.js +221 -0
  147. package/dist/collection/utils/xy/model/ScaleFactorsXYChart.js +69 -0
  148. package/dist/collection/utils/xy/model/XYChartDataRow.js +0 -0
  149. package/dist/collection/utils/xy/model/XYChartStyle.js +52 -0
  150. package/dist/components/AxisConfig.js +1 -0
  151. package/dist/components/CompareUtil.js +1 -0
  152. package/dist/components/DataFormatDigits.js +1 -1
  153. package/dist/components/LabelCollisionManager.js +1 -0
  154. package/dist/components/NumericScale.js +1 -0
  155. package/dist/components/Order.js +1 -1
  156. package/dist/components/SVGVariancesStyleGroup.js +1 -1
  157. package/dist/components/SiPrefix.js +1 -0
  158. package/dist/components/StringAdapter.js +1 -0
  159. package/dist/components/VarianceMeasure.js +1 -0
  160. package/dist/components/XYChartDataRow.js +1 -0
  161. package/dist/components/bn-chart-bubble.d.ts +11 -0
  162. package/dist/components/bn-chart-bubble.js +1 -0
  163. package/dist/components/bn-chart-bullet.d.ts +11 -0
  164. package/dist/components/bn-chart-bullet.js +1 -0
  165. package/dist/components/bn-chart-scatter.d.ts +11 -0
  166. package/dist/components/bn-chart-scatter.js +1 -0
  167. package/dist/components/bn-chart-structure.js +1 -1
  168. package/dist/components/bn-chart-time.js +1 -1
  169. package/dist/components/bn-component-style.js +1 -1
  170. package/dist/components/bn-context.js +1 -1
  171. package/dist/components/bn-dataset.js +1 -1
  172. package/dist/components/bn-datasource.js +1 -1
  173. package/dist/components/bn-footer2.js +1 -1
  174. package/dist/components/bn-grid.js +1 -1
  175. package/dist/components/bn-image.js +1 -1
  176. package/dist/components/bn-internationalization.js +1 -1
  177. package/dist/components/bn-layout-card.js +1 -1
  178. package/dist/components/bn-layout-page.js +1 -1
  179. package/dist/components/bn-message2.js +1 -1
  180. package/dist/components/bn-page2.js +1 -1
  181. package/dist/components/bn-ruleset.d.ts +11 -0
  182. package/dist/components/bn-ruleset.js +1 -0
  183. package/dist/components/bn-scaling-group.js +1 -1
  184. package/dist/components/bn-table.js +1 -1
  185. package/dist/components/bn-template.js +1 -1
  186. package/dist/components/bn-text.js +1 -1
  187. package/dist/components/bn-title2.js +1 -1
  188. package/dist/components/bn-tree.js +1 -1
  189. package/dist/components/context-protocol.js +1 -1
  190. package/dist/components/editor-companion.js +1 -1
  191. package/dist/components/formatter.js +1 -0
  192. package/dist/components/ibcs-chart-bubble.d.ts +11 -0
  193. package/dist/components/ibcs-chart-bubble.js +1 -0
  194. package/dist/components/ibcs-chart-bubble2.js +1 -0
  195. package/dist/components/ibcs-chart-bullet.d.ts +11 -0
  196. package/dist/components/ibcs-chart-bullet.js +1 -0
  197. package/dist/components/ibcs-chart-bullet2.js +1 -0
  198. package/dist/components/ibcs-chart-scatter.d.ts +11 -0
  199. package/dist/components/ibcs-chart-scatter.js +1 -0
  200. package/dist/components/ibcs-chart-scatter2.js +1 -0
  201. package/dist/components/ibcs-chart-structure2.js +1 -1
  202. package/dist/components/ibcs-chart-time2.js +1 -1
  203. package/dist/components/ibcs-table2.js +1 -1
  204. package/dist/components/ibcs-title2.js +1 -1
  205. package/dist/components/layoutObserver.js +1 -1
  206. package/dist/components/luxon.js +1 -1
  207. package/dist/components/main.js +1 -0
  208. package/dist/components/merge.js +1 -0
  209. package/dist/components/sanitizeHtml.js +1 -0
  210. package/dist/components/stackColors.js +1 -0
  211. package/dist/components/validate.js +1 -1
  212. package/dist/components/withComponentStyle.js +1 -1
  213. package/dist/components/withDataset.js +1 -0
  214. package/dist/components/withRuleSet.js +1 -0
  215. package/dist/components/withScalingGroup.js +1 -0
  216. package/dist/components/withStyled.js +1 -1
  217. package/dist/esm/AxisConfig-C_zWCKlL.js +224 -0
  218. package/dist/esm/LabelCollisionManager-8swVQHKA.js +404 -0
  219. package/dist/esm/NumericScale-DsTzlzxQ.js +105 -0
  220. package/dist/esm/Order-BPeWfygb.js +83 -0
  221. package/dist/esm/SVGStyle-BxEDw9zh.js +8199 -0
  222. package/dist/esm/SVGVariancesStyleGroup-DRQYvSDD.js +48 -0
  223. package/dist/esm/VarianceMeasure-DnwNKspZ.js +364 -0
  224. package/dist/esm/XYChartDataRow-DeV4r-Wm.js +820 -0
  225. package/dist/esm/bn-asset_21.entry.js +1127 -9183
  226. package/dist/esm/bn-chart-bubble.entry.js +760 -0
  227. package/dist/esm/bn-chart-bullet.entry.js +783 -0
  228. package/dist/esm/bn-chart-scatter.entry.js +656 -0
  229. package/dist/esm/bn-grid.entry.js +5 -3
  230. package/dist/esm/bn-image.entry.js +5 -3
  231. package/dist/esm/bn-internationalization.entry.js +2 -2
  232. package/dist/esm/bn-ruleset.entry.js +39 -0
  233. package/dist/esm/bn-template-engine.js +1 -1
  234. package/dist/esm/bn-template.entry.js +1 -1
  235. package/dist/esm/bn-text.entry.js +7 -78
  236. package/dist/esm/bn-tree.entry.js +4 -2
  237. package/dist/esm/{context-protocol-BB-4Onmw.js → context-protocol-1Yj1uKvh.js} +268 -2
  238. package/dist/esm/editor-companion.entry.js +2 -2
  239. package/dist/esm/ibcs-chart-bubble.entry.js +622 -0
  240. package/dist/esm/ibcs-chart-bullet.entry.js +671 -0
  241. package/dist/esm/ibcs-chart-scatter.entry.js +665 -0
  242. package/dist/esm/layoutObserver-DCbmpGrz.js +345 -0
  243. package/dist/esm/loader.js +1 -1
  244. package/dist/esm/sanitizeHtml-BA48JiHe.js +83 -0
  245. package/dist/esm/{scaling-h4KcBet3.js → scaling-B_k50v9z.js} +2 -2
  246. package/dist/esm/withScalingGroup-Br70pAv9.js +71 -0
  247. package/dist/esm/{withStyled-BBvU2f-A.js → withStyled-Br2DGTPs.js} +30 -367
  248. package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +193 -0
  249. package/dist/types/components/bn-chart-bubble/ibcs-chart-bubble.d.ts +58 -0
  250. package/dist/types/components/bn-chart-bubble/utils/BubbleChart.d.ts +91 -0
  251. package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +172 -0
  252. package/dist/types/components/bn-chart-bullet/ibcs-chart-bullet.d.ts +52 -0
  253. package/dist/types/components/bn-chart-bullet/utils/BulletChart.d.ts +91 -0
  254. package/dist/types/components/bn-chart-bullet/utils/model/BulletChartStyle.d.ts +70 -0
  255. package/dist/types/components/bn-chart-bullet/utils/model/BulletConfig.d.ts +43 -0
  256. package/dist/types/components/bn-chart-bullet/utils/model/index.d.ts +2 -0
  257. package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +172 -0
  258. package/dist/types/components/bn-chart-scatter/ibcs-chart-scatter.d.ts +53 -0
  259. package/dist/types/components/bn-chart-scatter/utils/ScatterChart.d.ts +66 -0
  260. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +7 -0
  261. package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +2 -0
  262. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +1 -0
  263. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +10 -1
  264. package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +2 -0
  265. package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +1 -0
  266. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +10 -0
  267. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +14 -0
  268. package/dist/types/components/bn-message/bn-message.d.ts +5 -2
  269. package/dist/types/components/bn-ruleset/bn-ruleset.d.ts +8 -0
  270. package/dist/types/components/bn-table/bn-table.d.ts +38 -5
  271. package/dist/types/components/bn-table/ibcs-table.d.ts +8 -1
  272. package/dist/types/components/bn-table/utils/Table.d.ts +8 -0
  273. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +2 -0
  274. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +33 -0
  275. package/dist/types/components/bn-table/utils/elements/TableRow.d.ts +2 -1
  276. package/dist/types/components/bn-table/utils/elements/WaterfallBar.d.ts +21 -0
  277. package/dist/types/components/bn-table/utils/elements/index.d.ts +1 -0
  278. package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +13 -7
  279. package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +17 -0
  280. package/dist/types/components/bn-table/utils/helper/IntervalColumns.d.ts +37 -0
  281. package/dist/types/components/bn-table/utils/helper/WaterfallCalculator.d.ts +55 -0
  282. package/dist/types/components/bn-table/utils/helper/index.d.ts +2 -0
  283. package/dist/types/components/bn-table/utils/model/TableComponentConfig.d.ts +4 -0
  284. package/dist/types/components/bn-table/utils/model/index.d.ts +21 -0
  285. package/dist/types/components/bn-title/bn-title.d.ts +11 -1
  286. package/dist/types/components/bn-title/ibcs-title/ibcs-title.d.ts +2 -0
  287. package/dist/types/components/bn-title/ibcs-title/utils/Title.d.ts +1 -0
  288. package/dist/types/components.d.ts +1383 -82
  289. package/dist/types/context/context-protocol.d.ts +2 -0
  290. package/dist/types/stores/componentStyles.d.ts +41 -0
  291. package/dist/types/stores/createScopedStores.d.ts +2 -0
  292. package/dist/types/stores/ruleSets.d.ts +40 -0
  293. package/dist/types/utils/constants.d.ts +5 -0
  294. package/dist/types/utils/ibcsRuleSet.d.ts +6 -1
  295. package/dist/types/utils/model/ChartStyles.d.ts +2 -1
  296. package/dist/types/utils/sanitizeHtml.d.ts +6 -0
  297. package/dist/types/utils/validate.d.ts +12 -0
  298. package/dist/types/utils/withInheritedProps.d.ts +11 -0
  299. package/dist/types/utils/withRuleSet.d.ts +24 -0
  300. package/dist/types/utils/xy/FacetGrid.d.ts +27 -0
  301. package/dist/types/utils/xy/IsoCurves.d.ts +46 -0
  302. package/dist/types/utils/xy/NumericScale.d.ts +41 -0
  303. package/dist/types/utils/xy/PointLabeler.d.ts +58 -0
  304. package/dist/types/utils/xy/RadiusScale.d.ts +26 -0
  305. package/dist/types/utils/xy/SeriesPalette.d.ts +59 -0
  306. package/dist/types/utils/xy/VarianceMeasure.d.ts +37 -0
  307. package/dist/types/utils/xy/XYFrame.d.ts +44 -0
  308. package/dist/types/utils/xy/XYLegend.d.ts +43 -0
  309. package/dist/types/utils/xy/model/AxisConfig.d.ts +96 -0
  310. package/dist/types/utils/xy/model/ScaleFactorsXYChart.d.ts +36 -0
  311. package/dist/types/utils/xy/model/XYChartDataRow.d.ts +157 -0
  312. package/dist/types/utils/xy/model/XYChartStyle.d.ts +31 -0
  313. package/package.json +1 -1
  314. package/readme.md +7 -3
  315. package/dist/bn-template-engine/p-19f49fbc.entry.js +0 -1
  316. package/dist/bn-template-engine/p-3465fcdc.entry.js +0 -1
  317. package/dist/bn-template-engine/p-67746414.entry.js +0 -1
  318. package/dist/bn-template-engine/p-6b469808.entry.js +0 -1
  319. package/dist/bn-template-engine/p-86ca2d5e.entry.js +0 -1
  320. package/dist/bn-template-engine/p-Tx6omDWp.js +0 -1
  321. package/dist/bn-template-engine/p-d724ab88.entry.js +0 -1
  322. package/dist/bn-template-engine/p-efd3b67a.entry.js +0 -1
  323. package/dist/bn-template-engine/p-z9bPNFYF.js +0 -1
  324. package/dist/components/ibcsRuleSet.js +0 -1
  325. package/dist/components/scaling.js +0 -1
  326. package/dist/components/withInheritedProps.js +0 -1
@@ -75,7 +75,7 @@ export class IbcsChartTime {
75
75
  const config = this.prepareConfig();
76
76
  const styles = this.prepareStyle();
77
77
  const availableWidth = this.containerWidth || 0;
78
- this.chart = new TimeChart(new IBCSRuleSet(), this.getDb(), this.tableName, config, styles, availableWidth);
78
+ this.chart = new TimeChart(new IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
79
79
  this.chart.setI18n(this.i18n);
80
80
  this.autoFitScaling(config, styles);
81
81
  this.chart.setAvailableHeight(((_a = this.parentDimensions) === null || _a === void 0 ? void 0 : _a.height) || 0);
@@ -92,6 +92,7 @@ export class IbcsChartTime {
92
92
  this.chart.setI18n(this.i18n);
93
93
  this.chart.setStyles(styles);
94
94
  this.chart.setAvailableWidth(this.containerWidth || 0);
95
+ this.chart.setRuleSet(new IBCSRuleSet(this.ruleSetConfig));
95
96
  this.chart.setConfig(config);
96
97
  this.autoFitScaling(config, styles);
97
98
  this.chart.setAvailableHeight(((_a = this.parentDimensions) === null || _a === void 0 ? void 0 : _a.height) || 0);
@@ -118,7 +119,7 @@ export class IbcsChartTime {
118
119
  config.pixelPerUnit = 1;
119
120
  if (autoPercent)
120
121
  config.pixelPerPercentage = 50;
121
- this.chart = new TimeChart(new IBCSRuleSet(), this.getDb(), this.tableName, config, styles, availableWidth);
122
+ this.chart = new TimeChart(new IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
122
123
  this.chart.setI18n(this.i18n);
123
124
  return;
124
125
  }
@@ -127,7 +128,7 @@ export class IbcsChartTime {
127
128
  config.pixelPerUnit = 1;
128
129
  if (autoPercent)
129
130
  config.pixelPerPercentage = 1;
130
- this.chart = new TimeChart(new IBCSRuleSet(), this.getDb(), this.tableName, config, styles, availableWidth);
131
+ this.chart = new TimeChart(new IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
131
132
  this.chart.setI18n(this.i18n);
132
133
  this.chart.toString();
133
134
  const svgHeight = this.chart.getAllocatedCanvasHeight();
@@ -141,7 +142,7 @@ export class IbcsChartTime {
141
142
  if (autoPercent)
142
143
  config.pixelPerPercentage = ratio;
143
144
  // Second pass with the corrected scaling
144
- this.chart = new TimeChart(new IBCSRuleSet(), this.getDb(), this.tableName, config, styles, availableWidth);
145
+ this.chart = new TimeChart(new IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
145
146
  this.chart.setI18n(this.i18n);
146
147
  }
147
148
  async componentWillRender() {
@@ -860,6 +861,30 @@ export class IbcsChartTime {
860
861
  "getter": false,
861
862
  "setter": false,
862
863
  "defaultValue": "{ width: 0, height: 0 }"
864
+ },
865
+ "ruleSetConfig": {
866
+ "type": "unknown",
867
+ "mutable": false,
868
+ "complexType": {
869
+ "original": "RuleSetConfig",
870
+ "resolved": "RuleSetConfig",
871
+ "references": {
872
+ "RuleSetConfig": {
873
+ "location": "import",
874
+ "path": "../../stores/ruleSets",
875
+ "id": "src/stores/ruleSets.ts::RuleSetConfig",
876
+ "referenceLocation": "RuleSetConfig"
877
+ }
878
+ }
879
+ },
880
+ "required": false,
881
+ "optional": true,
882
+ "docs": {
883
+ "tags": [],
884
+ "text": ""
885
+ },
886
+ "getter": false,
887
+ "setter": false
863
888
  }
864
889
  };
865
890
  }
@@ -9,7 +9,7 @@ import { ScaleFactorsTimeChart } from "./model/styles/ScaleFactorsTimeChart";
9
9
  import { DateTime } from "luxon";
10
10
  import { buildFromExpr } from "../../../context/scopedDb";
11
11
  import { DateDistance, DateStringFactory } from "../../../utils/DateStringFactory";
12
- import { AxisLabelsMode, ChartMode, StackBy, StackMode } from "../../../utils/constants";
12
+ import { AxisLabelsMode, ChartMode, RELATIVE_STACK_UNITS, StackBy, StackMode, } from "../../../utils/constants";
13
13
  import { getScenarioPrefix, IBCS_LAYER_ORDER } from "../../../utils/stackColors";
14
14
  import { Formatter } from "../../../utils";
15
15
  import { IBCSRuleSet } from "../../../utils/ibcsRuleSet";
@@ -102,6 +102,9 @@ export class TimeChart {
102
102
  setStyles(newStyle) {
103
103
  this.styles = newStyle;
104
104
  }
105
+ setRuleSet(ruleSet) {
106
+ this.ruleSet = ruleSet || new IBCSRuleSet();
107
+ }
105
108
  setAvailableWidth(w) {
106
109
  this.availableWidth = w;
107
110
  }
@@ -401,6 +404,7 @@ export class TimeChart {
401
404
  return new Map([...defaultI18n, ...i18n]);
402
405
  }
403
406
  createElementPosition(scenarios) {
407
+ var _a;
404
408
  let maxLabelLengthLeft;
405
409
  // only need scenarios written on the leftside of bar/ marker
406
410
  const scenarioLabelLeft = CalculateSize(scenarios
@@ -436,6 +440,12 @@ export class TimeChart {
436
440
  min = this.smallestDataPointValue;
437
441
  max = this.highestDataPointValue;
438
442
  }
443
+ // In relative (100%) stacking the vertical domain is 0..RELATIVE_STACK_UNITS percent,
444
+ // not the raw data values — use a virtual max so axis position, canvas height and
445
+ // auto-fit all agree on the percent domain.
446
+ if (((_a = this.stackConfig) === null || _a === void 0 ? void 0 : _a.mode) === StackMode.RELATIVE) {
447
+ max = new DataPoint(RELATIVE_STACK_UNITS, max.scenario, this.pixelPerUnit, max.variance);
448
+ }
439
449
  // When overflow config is active, create a virtual max so the coordinate system
440
450
  // allocates exactly cutHeight + breakGap + overdriveZoneHeight instead of the
441
451
  // full (clipped) bar height.
@@ -1167,7 +1177,9 @@ export class TimeChart {
1167
1177
  groups.forEach((group, groupIdx) => {
1168
1178
  const groupTotal = group.segments.reduce((sum, s) => sum + Math.abs(s.value), 0);
1169
1179
  const pixelPerUnit = group.segments[0].dataPoint.pixelPerUnit;
1170
- const groupPixelHeight = this.stackConfig.mode === StackMode.RELATIVE ? pixelPerUnit : groupTotal * pixelPerUnit;
1180
+ const groupPixelHeight = this.stackConfig.mode === StackMode.RELATIVE
1181
+ ? RELATIVE_STACK_UNITS * pixelPerUnit
1182
+ : groupTotal * pixelPerUnit;
1171
1183
  // The front-most group (drawn last, e.g. AC) is fully visible, so its
1172
1184
  // label is centered on the bar. Back groups are mostly hidden behind it
1173
1185
  // and only peek out at the top, so their labels align with the bar's top edge.
@@ -1190,7 +1202,7 @@ export class TimeChart {
1190
1202
  let segmentHeight;
1191
1203
  if (this.stackConfig.mode === StackMode.RELATIVE) {
1192
1204
  const proportion = total !== 0 ? Math.abs(seg.value) / total : 0;
1193
- segmentHeight = proportion * pixelPerUnit;
1205
+ segmentHeight = proportion * RELATIVE_STACK_UNITS * pixelPerUnit;
1194
1206
  }
1195
1207
  else {
1196
1208
  segmentHeight = Math.abs(seg.value * pixelPerUnit);
@@ -1273,7 +1285,7 @@ export class TimeChart {
1273
1285
  x: this.position.getColumnCenterPositionX(idx),
1274
1286
  y: axisY -
1275
1287
  (stackMode === StackMode.RELATIVE
1276
- ? val * pixelPerUnit // pixelPerUnit acts as "height for 100%"
1288
+ ? val * RELATIVE_STACK_UNITS * pixelPerUnit // val is a 0..1 cumulative proportion
1277
1289
  : val * pixelPerUnit),
1278
1290
  }));
1279
1291
  };
@@ -1,6 +1,6 @@
1
1
  import { HookLocation, Label } from "./Label";
2
2
  import { SiPrefix } from "../../../../utils/model/SiPrefix";
3
- import { StackMode } from "../../../../utils/constants";
3
+ import { RELATIVE_STACK_UNITS, StackMode } from "../../../../utils/constants";
4
4
  /**
5
5
  * Renders a single segment within a stacked bar column in a time chart.
6
6
  *
@@ -44,8 +44,8 @@ export class StackedColumn {
44
44
  if (this.stackMode === StackMode.RELATIVE) {
45
45
  // 100% stacked: segment height is proportion of total
46
46
  const proportion = this.totalValue !== 0 ? Math.abs(value) / Math.abs(this.totalValue) : 0;
47
- // Use a fixed total height based on pixelPerUnit (total=1.0 for 100%)
48
- const totalPixelHeight = pixelPerUnit; // pixelPerUnit represents the height for 100%
47
+ // Full stack spans RELATIVE_STACK_UNITS percent; pixelPerUnit = pixels per percentage point
48
+ const totalPixelHeight = RELATIVE_STACK_UNITS * pixelPerUnit;
49
49
  segmentHeight = proportion * totalPixelHeight;
50
50
  const baselinePixels = (this.baselineValue / Math.abs(this.totalValue)) * totalPixelHeight;
51
51
  yPos = axisY - baselinePixels - segmentHeight;
@@ -28,7 +28,7 @@ export class ComponentStyle {
28
28
  });
29
29
  }
30
30
  render() {
31
- return h(Host, { key: 'e9298c6ce5b0b51260165e78dcf19efdef0646f9' });
31
+ return h(Host, { key: '9138ba4914f990823213f637bdc65274669bfe86' });
32
32
  }
33
33
  static get is() { return "bn-component-style"; }
34
34
  static get originalStyleUrls() {
@@ -49,7 +49,7 @@ export class Context {
49
49
  componentWillUpdate() { }
50
50
  componentDidUpdate() { }
51
51
  render() {
52
- return (h(Host, { key: 'b92019b909e271225baca2cf740c8301e324164e' }, h("slot", { key: '87bac4bb29bca32d961afe31355dc1bd48fff0f8' })));
52
+ return (h(Host, { key: 'f4f3a64c06e0cd8fa4863007ba25cacc74194e45' }, h("slot", { key: 'ee5dd7d7065107f657f1d92cdf91eedbd94f8f81' })));
53
53
  }
54
54
  static get is() { return "bn-context"; }
55
55
  static get encapsulation() { return "shadow"; }
@@ -280,7 +280,7 @@ export class Dataset {
280
280
  }
281
281
  }
282
282
  render() {
283
- return h(Host, { key: 'a02f22a7f78c3bd2512e013ff729487c471ba9bf' });
283
+ return h(Host, { key: 'bfa62b924abb8097cd9bad75eb71ab38caf02267' });
284
284
  }
285
285
  static get is() { return "bn-dataset"; }
286
286
  static get originalStyleUrls() {
@@ -178,7 +178,7 @@ export class Datasource {
178
178
  }
179
179
  }
180
180
  render() {
181
- return h(Host, { key: '2af6ade861fa900974deeb1b6bcc4520997a4180' });
181
+ return h(Host, { key: '4beaa62937dea949255669bfd5008a2928e460fc' });
182
182
  }
183
183
  static get is() { return "bn-datasource"; }
184
184
  static get originalStyleUrls() {
@@ -45,7 +45,7 @@ export class Footer {
45
45
  return `./assets/${imgUrl}.png`;
46
46
  }
47
47
  render() {
48
- return (h(Host, { key: 'c445ca8c8abde56b46564932a6fcd079aa1e640d', id: this.displayPageNumber || this.text || this.code ? "container-page-footer" : "container", style: this.getFontStyles() }, h("div", { key: '2e5829597d228c78acbbbf130bfc440092456cb4', id: "footer-text" }, this.text != null ? h("span", { class: "note" }, this.text) : ""), h("div", { key: 'a2c98bf85fc41fa0aebc35fded0528cd8ba4948f', id: "code" }, this.code != null ? h("img", { class: "image", src: getAssetPath(`${this.prepareAssetUrl(this.code)}`) }) : ""), h("div", { key: 'e879c6ed16996d8b505d64426e2253f3057863f5', id: "page-number" }, this.displayPageNumber ? h("span", { class: "page" }, this.pageNumber) : "")));
48
+ return (h(Host, { key: '666fa787056f32825c15427f2a6c15b971fbc25e', id: this.displayPageNumber || this.text || this.code ? "container-page-footer" : "container", style: this.getFontStyles() }, h("div", { key: '691752d51748c4e1eb7ec25d380c00ddf0095c83', id: "footer-text" }, this.text != null ? h("span", { class: "note" }, this.text) : ""), h("div", { key: '561a81e063e110ef6386fb0056a05f1b6a0e0f44', id: "code" }, this.code != null ? h("img", { class: "image", src: getAssetPath(`${this.prepareAssetUrl(this.code)}`) }) : ""), h("div", { key: '963658fcff1a6dd07b448f85e8d170000422e3cc', id: "page-number" }, this.displayPageNumber ? h("span", { class: "page" }, this.pageNumber) : "")));
49
49
  }
50
50
  static get is() { return "bn-footer"; }
51
51
  static get encapsulation() { return "shadow"; }
@@ -262,7 +262,7 @@ export class Grid {
262
262
  "grid-template-rows": this.getGridTemplateRows(),
263
263
  gap: this.cellGap,
264
264
  };
265
- return (h(Host, { key: 'e84402bafd778e7069cd17bd86687a6648dbafe0', style: this.getFontStyles() }, h("div", { key: '91941a42bc41fbbaf53c66551035bf97765a9f88', class: "grid-container", style: gridContainerStyle }, this.renderTitle(), this.renderColumnHeaders(), this.renderDataCells()), h("slot", { key: '349958090f4bf35b9ec768c8994bdf5a96636a36' })));
265
+ return (h(Host, { key: '05d4b729414b87446a98ea2f98552e8c17e3f4e1', style: this.getFontStyles() }, h("div", { key: 'dd2325babb734553c8661e2e18c0ab12f59e0c9f', class: "grid-container", style: gridContainerStyle }, this.renderTitle(), this.renderColumnHeaders(), this.renderDataCells()), h("slot", { key: '30cab0c8effc88704e781ff48e9295aa3cc9c954' })));
266
266
  }
267
267
  static get is() { return "bn-grid"; }
268
268
  static get encapsulation() { return "shadow"; }
@@ -37,7 +37,7 @@ export class Image {
37
37
  return assetsState[value] || value;
38
38
  }
39
39
  render() {
40
- return (h(Host, { key: '656f301d5fb1a7650f4c7d0cbb3fe1ef15b8ae92', style: this.getFontStyles() }, this.source != null && this.source !== "" ? h("img", { src: this.prepareAssetUrl(this.source) }) : ""));
40
+ return (h(Host, { key: 'cfa7e1b2978773f449f6596174edf51e4a61d4d7', style: this.getFontStyles() }, this.source != null && this.source !== "" ? h("img", { src: this.prepareAssetUrl(this.source) }) : ""));
41
41
  }
42
42
  static get is() { return "bn-image"; }
43
43
  static get encapsulation() { return "shadow"; }
@@ -25,7 +25,7 @@ export class Internationalization {
25
25
  });
26
26
  }
27
27
  render() {
28
- return h(Host, { key: 'dd384ecf77e4fd5d46ed04b04c4395fba8bac4e1' });
28
+ return h(Host, { key: 'be9f6b1dc6c60ef5559ad47228e612ee74b0c80c' });
29
29
  }
30
30
  static get is() { return "bn-internationalization"; }
31
31
  static get originalStyleUrls() {
@@ -21,6 +21,8 @@ export class LayoutCard {
21
21
  * Name of the business unit displayed in the title header row.
22
22
  * If empty, the business unit row is omitted.
23
23
  *
24
+ * Rendered as sanitized HTML, so inline markup is supported.
25
+ *
24
26
  * @example
25
27
  * <bn-layout-card title-business-unit="Sales"></bn-layout-card>
26
28
  */
@@ -136,6 +138,7 @@ export class LayoutCard {
136
138
  { propName: "titleVariances", ancestorAttr: "title-variances" },
137
139
  { propName: "titleOrder", ancestorAttr: "title-order" },
138
140
  { propName: "titleOrderDirection", ancestorAttr: "title-order-direction" },
141
+ { propName: "ruleset", ancestorAttr: "ruleset" },
139
142
  ]);
140
143
  }
141
144
  connectedCallback() {
@@ -251,6 +254,7 @@ export class LayoutCard {
251
254
  { prop: "titleVariances", attr: "title-variances" },
252
255
  { prop: "titleOrder", attr: "title-order" },
253
256
  { prop: "titleOrderDirection", attr: "title-order-direction" },
257
+ { prop: "ruleset", attr: "ruleset" },
254
258
  ];
255
259
  for (const { prop, attr } of mappings) {
256
260
  const resolved = this.resolveInherited(prop, this[prop]);
@@ -271,10 +275,10 @@ export class LayoutCard {
271
275
  return assetsState[value] || value;
272
276
  }
273
277
  render() {
274
- var _a, _b, _c, _d;
278
+ var _a, _b, _c, _d, _e;
275
279
  const style = this.getLayoutStyle();
276
280
  const arrOfSlots = this.extractSlotNames(style["grid-template-areas"]);
277
- return (h("bn-card", { key: 'f94b210638d26436a03daba89d7da43ec4dc6973', styles: this.styles, "selected-style": this.selectedStyle, class: this.setCardClass() }, h("div", { key: 'b29e3e8a32672278508e13daeb215529d6c4e0fd', class: "cardtitle" }, h("bn-title", { key: '988a77ef985bf45326af5fbdd2dd2940e0bd3e2b', namespace: this.titleNamespace, "business-unit": this.titleBusinessUnit, scenarios: (_a = this.resolveInherited("titleScenarios", this.titleScenarios)) !== null && _a !== void 0 ? _a : this.titleScenarios, variances: (_b = this.resolveInherited("titleVariances", this.titleVariances)) !== null && _b !== void 0 ? _b : this.titleVariances, order: (_c = this.resolveInherited("titleOrder", this.titleOrder)) !== null && _c !== void 0 ? _c : this.titleOrder, "order-direction": (_d = this.resolveInherited("titleOrderDirection", this.titleOrderDirection)) !== null && _d !== void 0 ? _d : this.titleOrderDirection, measures: this.titleMeasures, "date-start": this.titleDateStart, "date-end": this.titleDateEnd, "date-format": this.titleDateFormat, "date-link": this.titleDateLink }), this.titleImage != null && this.titleImage !== "" ? (h("img", { class: "image", src: this.prepareTitleImage(this.titleImage) })) : ("")), h("bn-body", { key: '2391406ed78728ac6d343ee1ee20500be6f4aef3' }, h("div", { key: '97fa4d0c73a0d0b7bc4a9fda83133291d7f875e7', style: style, "data-bn-fit-content": this.cardFitToContent ? String(this.getRowCount(this.cardLayout)) : null }, this.getSlots(arrOfSlots))), h("bn-footer", { key: '2162b61945c8e7c20602ef7e7a50dbb33ee5a6d2', text: this.footerText, "page-number": 0, "display-page-number": "false" })));
281
+ return (h("bn-card", { key: '463870e184f942e7f9cefa3624884c888c301bab', styles: this.styles, "selected-style": this.selectedStyle, class: this.setCardClass() }, h("div", { key: '97488f38c561c22d774836f2081e44f852084280', class: "cardtitle" }, h("bn-title", { key: '8f5f8bb49aa5f24c4e683822e6f263ac69ed3284', namespace: this.titleNamespace, ruleset: (_a = this.resolveInherited("ruleset", this.ruleset)) !== null && _a !== void 0 ? _a : this.ruleset, "business-unit": this.titleBusinessUnit, scenarios: (_b = this.resolveInherited("titleScenarios", this.titleScenarios)) !== null && _b !== void 0 ? _b : this.titleScenarios, variances: (_c = this.resolveInherited("titleVariances", this.titleVariances)) !== null && _c !== void 0 ? _c : this.titleVariances, order: (_d = this.resolveInherited("titleOrder", this.titleOrder)) !== null && _d !== void 0 ? _d : this.titleOrder, "order-direction": (_e = this.resolveInherited("titleOrderDirection", this.titleOrderDirection)) !== null && _e !== void 0 ? _e : this.titleOrderDirection, measures: this.titleMeasures, "date-start": this.titleDateStart, "date-end": this.titleDateEnd, "date-format": this.titleDateFormat, "date-link": this.titleDateLink }), this.titleImage != null && this.titleImage !== "" ? (h("img", { class: "image", src: this.prepareTitleImage(this.titleImage) })) : ("")), h("bn-body", { key: '1976084cef975f9aa6c857dc690d5ac4b180a88e' }, h("div", { key: '5c4290635821b1896135f35fcf3e045d504803bb', style: style, "data-bn-fit-content": this.cardFitToContent ? String(this.getRowCount(this.cardLayout)) : null }, this.getSlots(arrOfSlots))), h("bn-footer", { key: '7338dd8bfdc3a43cfc6f8ad7b99f007d44496fc8', text: this.footerText, "page-number": 0, "display-page-number": "false" })));
278
282
  }
279
283
  static get is() { return "bn-layout-card"; }
280
284
  static get encapsulation() { return "shadow"; }
@@ -328,6 +332,25 @@ export class LayoutCard {
328
332
  "reflect": false,
329
333
  "attribute": "selected-style"
330
334
  },
335
+ "ruleset": {
336
+ "type": "string",
337
+ "mutable": false,
338
+ "complexType": {
339
+ "original": "string",
340
+ "resolved": "string",
341
+ "references": {}
342
+ },
343
+ "required": false,
344
+ "optional": true,
345
+ "docs": {
346
+ "tags": [],
347
+ "text": "Name of a registered IBCS rule set (see `bn-ruleset`) passed through to\nthe inner `<bn-title>` element as its `ruleset` attribute. Supports\n`\"inherited-page\"` to take over the value from an ancestor\n`bn-layout-page`. Nested visualization components can reference it via\n`ruleset=\"inherited-closest\"`."
348
+ },
349
+ "getter": false,
350
+ "setter": false,
351
+ "reflect": false,
352
+ "attribute": "ruleset"
353
+ },
331
354
  "titleImage": {
332
355
  "type": "string",
333
356
  "mutable": false,
@@ -366,7 +389,7 @@ export class LayoutCard {
366
389
  "name": "example",
367
390
  "text": "<bn-layout-card title-business-unit=\"Sales\"></bn-layout-card>"
368
391
  }],
369
- "text": "Name of the business unit displayed in the title header row.\nIf empty, the business unit row is omitted."
392
+ "text": "Name of the business unit displayed in the title header row.\nIf empty, the business unit row is omitted.\n\nRendered as sanitized HTML, so inline markup is supported."
370
393
  },
371
394
  "getter": false,
372
395
  "setter": false,
@@ -5,6 +5,11 @@ export class LayoutPage {
5
5
  /**
6
6
  * Message text displayed in the message row above the title.
7
7
  * If empty, the message row is omitted.
8
+ *
9
+ * Rendered as sanitized HTML, so inline markup is supported.
10
+ *
11
+ * @example
12
+ * <bn-layout-page message-text="Revenue <b>above plan</b><br />Q3 2026"></bn-layout-page>
8
13
  */
9
14
  this.messageText = "";
10
15
  /**
@@ -20,6 +25,8 @@ export class LayoutPage {
20
25
  * Name of the business unit displayed in the title header row.
21
26
  * If empty, the business unit row is omitted.
22
27
  *
28
+ * Rendered as sanitized HTML, so inline markup is supported.
29
+ *
23
30
  * @example
24
31
  * <bn-layout-page title-business-unit="Group Controlling"></bn-layout-page>
25
32
  */
@@ -242,7 +249,7 @@ export class LayoutPage {
242
249
  render() {
243
250
  const style = this.getLayoutStyle();
244
251
  const arrOfSlots = this.extractSlotNames(style["grid-template-areas"]);
245
- return (h("bn-page", { key: 'ed0804f3f1daf9327903fd61ff633f2857119a31', styles: this.styles, "selected-style": this.selectedStyle, format: this.pageFormat, orientation: this.pageOrientation }, h("bn-message", { key: 'ccfb6dfa63b001e6fe96612ed3f8635970b6481c', text: this.messageText, image: this.messageImage }), h("bn-title", { key: '223bd6ba689c17796eb165839223164f8bb174e5', namespace: this.titleNamespace, "business-unit": this.titleBusinessUnit, scenarios: this.titleScenarios, variances: this.titleVariances, order: this.titleOrder, "order-direction": this.titleOrderDirection, measures: this.titleMeasures, "date-start": this.titleDateStart, "date-end": this.titleDateEnd, "date-format": this.titleDateFormat, "date-link": this.titleDateLink }), h("bn-body", { key: '606f637fb9a48a83062193e7e88733c6b2f092b1' }, h("div", { key: '94aebd1b35061ec6e7ccfb4203ea4bc07ea90cbd', style: style, "data-bn-fit-content": this.pageFitToContent ? String(this.getRowCount(this.pageLayout)) : null }, this.getSlots(arrOfSlots))), h("bn-footer", { key: 'aa64d4f789c3016289b400a3ea796b1d37f9bcfc', text: this.footerText, "page-number": this.pageNumber, "display-page-number": this.footerDisplayPageNumber })));
252
+ return (h("bn-page", { key: 'd38690fd46d6ed0319cee6be00a9af439425f4f2', styles: this.styles, "selected-style": this.selectedStyle, format: this.pageFormat, orientation: this.pageOrientation }, h("bn-message", { key: '860994ef08afa528be6a609cf24459ecfcfd42ae', text: this.messageText, image: this.messageImage }), h("bn-title", { key: '10ede4a5387ca6d1182d4204934d9ec0851dd380', namespace: this.titleNamespace, ruleset: this.ruleset, "business-unit": this.titleBusinessUnit, scenarios: this.titleScenarios, variances: this.titleVariances, order: this.titleOrder, "order-direction": this.titleOrderDirection, measures: this.titleMeasures, "date-start": this.titleDateStart, "date-end": this.titleDateEnd, "date-format": this.titleDateFormat, "date-link": this.titleDateLink }), h("bn-body", { key: '6de8a070c887717ed6d46edcbe240661763bb2e6' }, h("div", { key: 'd25c50b3b5122ff193c75ca93af36b8a1debb0e9', style: style, "data-bn-fit-content": this.pageFitToContent ? String(this.getRowCount(this.pageLayout)) : null }, this.getSlots(arrOfSlots))), h("bn-footer", { key: '725a98e64a36859b546011b5339303f455bb0744', text: this.footerText, "page-number": this.pageNumber, "display-page-number": this.footerDisplayPageNumber })));
246
253
  }
247
254
  static get is() { return "bn-layout-page"; }
248
255
  static get encapsulation() { return "shadow"; }
@@ -296,6 +303,25 @@ export class LayoutPage {
296
303
  "reflect": false,
297
304
  "attribute": "selected-style"
298
305
  },
306
+ "ruleset": {
307
+ "type": "string",
308
+ "mutable": false,
309
+ "complexType": {
310
+ "original": "string",
311
+ "resolved": "string",
312
+ "references": {}
313
+ },
314
+ "required": false,
315
+ "optional": true,
316
+ "docs": {
317
+ "tags": [],
318
+ "text": "Name of a registered IBCS rule set (see `bn-ruleset`) passed through to\nthe inner `<bn-title>` element as its `ruleset` attribute. Nested\nvisualization components can reference it via\n`ruleset=\"inherited-page\"` / `ruleset=\"inherited-closest\"`."
319
+ },
320
+ "getter": false,
321
+ "setter": false,
322
+ "reflect": false,
323
+ "attribute": "ruleset"
324
+ },
299
325
  "messageText": {
300
326
  "type": "string",
301
327
  "mutable": false,
@@ -307,8 +333,11 @@ export class LayoutPage {
307
333
  "required": false,
308
334
  "optional": false,
309
335
  "docs": {
310
- "tags": [],
311
- "text": "Message text displayed in the message row above the title.\nIf empty, the message row is omitted."
336
+ "tags": [{
337
+ "name": "example",
338
+ "text": "<bn-layout-page message-text=\"Revenue <b>above plan</b><br />Q3 2026\"></bn-layout-page>"
339
+ }],
340
+ "text": "Message text displayed in the message row above the title.\nIf empty, the message row is omitted.\n\nRendered as sanitized HTML, so inline markup is supported."
312
341
  },
313
342
  "getter": false,
314
343
  "setter": false,
@@ -354,7 +383,7 @@ export class LayoutPage {
354
383
  "name": "example",
355
384
  "text": "<bn-layout-page title-business-unit=\"Group Controlling\"></bn-layout-page>"
356
385
  }],
357
- "text": "Name of the business unit displayed in the title header row.\nIf empty, the business unit row is omitted."
386
+ "text": "Name of the business unit displayed in the title header row.\nIf empty, the business unit row is omitted.\n\nRendered as sanitized HTML, so inline markup is supported."
358
387
  },
359
388
  "getter": false,
360
389
  "setter": false,
@@ -9,7 +9,7 @@
9
9
  }
10
10
 
11
11
  :host(#container-page-message) {
12
- height: 4.55em;
12
+ min-height: 4.55em;
13
13
  box-sizing: border-box;
14
14
  -webkit-box-sizing: border-box;
15
15
  border-bottom: 0.1em solid #ddd;
@@ -21,11 +21,15 @@ div#message-text {
21
21
  display: inline;
22
22
  }
23
23
 
24
+ span.note p {
25
+ margin: 0;
26
+ }
27
+
24
28
  .image {
25
29
  z-index: 2;
26
30
  background-color: transparent;
27
31
  border: transparent;
28
32
  height: 4em;
29
33
  width: auto;
30
- display: inline;
34
+ display: block;
31
35
  }
@@ -3,6 +3,7 @@ import withComponentStatus from "../../utils/withComponentStatus";
3
3
  import withComponentStyle from "../../utils/withComponentStyle";
4
4
  import { getStores } from "../../context/context-protocol";
5
5
  import withHasError from "../../utils/withHasError";
6
+ import { sanitizeHtml } from "../../utils/sanitizeHtml";
6
7
  export class Footer {
7
8
  constructor() {
8
9
  withComponentStatus(this);
@@ -35,7 +36,7 @@ export class Footer {
35
36
  return assetsState[value] || value;
36
37
  }
37
38
  render() {
38
- return (h(Host, { key: 'bbe7f6098aa6f3a5495b36557b218a82ec2ccbca', id: this.text || this.image ? "container-page-message" : "container", style: this.getFontStyles() }, h("div", { key: 'd89297da5605b0ee1cc757b1771b6a48525a24e5', id: "message-text" }, this.text != null && this.text !== "" ? h("span", { class: "note" }, this.text) : ""), h("div", { key: '70bc74b0a8a5a39fdd2931cf86faada294142a26', id: "page-image" }, this.image != null && this.image !== "" ? h("img", { class: "image", src: this.prepareAssetUrl(this.image) }) : "")));
39
+ return (h(Host, { key: '2865cf0252e528ecb1cb1c60694ea129e53d92e5', id: this.text || this.image ? "container-page-message" : "container", style: this.getFontStyles() }, h("div", { key: 'df47160da185163b2e5eaeb845321734614ef107', id: "message-text" }, this.text != null && this.text !== "" ? h("span", { class: "note", innerHTML: sanitizeHtml(this.text) }) : ""), h("div", { key: '59c2eb3ac2e439d4f6f5fdd4d68b42a220c2122f', id: "page-image" }, this.image != null && this.image !== "" ? h("img", { class: "image", src: this.prepareAssetUrl(this.image) }) : "")));
39
40
  }
40
41
  static get is() { return "bn-message"; }
41
42
  static get encapsulation() { return "shadow"; }
@@ -64,7 +65,7 @@ export class Footer {
64
65
  "optional": false,
65
66
  "docs": {
66
67
  "tags": [],
67
- "text": "Message text.\n<br />If empty string (`''` or `null`) the footer row is omitted"
68
+ "text": "Message text. Rendered as HTML, sanitized against XSS\n(only safe tags such as `br`, `b`, `i`, `strong`, `em`, `a` and their\nattributes are kept; event handlers and `javascript:` URLs are stripped).\n<br />Use `<br />` for an explicit line break.\n<br />If empty string (`''` or `null`) the message row is omitted"
68
69
  },
69
70
  "getter": false,
70
71
  "setter": false,
@@ -38,7 +38,7 @@ export class Page {
38
38
  }
39
39
  }
40
40
  render() {
41
- return (h(Host, { key: 'b4d682a8f6e83f77c58236265eaf9d1327809c6f', format: this.format, orientation: this.orientation, style: this.prepareStyle() }, h("slot", { key: 'ef49c43c1f8926c4c968b752608627adbe330d6c' })));
41
+ return (h(Host, { key: '8ca8dd9381a7d4cd5dc3e85b7f1de1fdfbc07d54', format: this.format, orientation: this.orientation, style: this.prepareStyle() }, h("slot", { key: '2fffa1f8dd81286f63dea8be433559a9569b94de' })));
42
42
  }
43
43
  prepareStyle() {
44
44
  const pageStyle = {
@@ -0,0 +1,3 @@
1
+ bn-ruleset {
2
+ display: none;
3
+ }
@@ -0,0 +1,68 @@
1
+ import { h, Host } from "@stencil/core";
2
+ import withBodyObserver from "../../utils/withBodyObserver";
3
+ import { getStores } from "../../context/context-protocol";
4
+ import withComponentStatus from "../../utils/withComponentStatus";
5
+ import withHasError from "../../utils/withHasError";
6
+ export class Ruleset {
7
+ constructor() {
8
+ this.name = "_default";
9
+ withComponentStatus(this);
10
+ this.errors = withHasError(this);
11
+ withBodyObserver(this, (data) => {
12
+ if (!this.stores)
13
+ this.stores = getStores(this.element);
14
+ try {
15
+ const parsedData = JSON.parse(data);
16
+ this.stores.ruleSets.set(this.name, parsedData);
17
+ this.errors.remove("JSON_PARSE");
18
+ }
19
+ catch (e) {
20
+ this.errors.addOrReplace({
21
+ id: "JSON_PARSE",
22
+ type: "error",
23
+ message: `bn-ruleset: Failed to parse JSON body — ${e.message}`,
24
+ });
25
+ console.error(e);
26
+ }
27
+ });
28
+ }
29
+ render() {
30
+ return h(Host, { key: '9049a4abd1e2b4ae4d28f56c4fe51919a89c0773' });
31
+ }
32
+ static get is() { return "bn-ruleset"; }
33
+ static get originalStyleUrls() {
34
+ return {
35
+ "$": ["bn-ruleset.scss"]
36
+ };
37
+ }
38
+ static get styleUrls() {
39
+ return {
40
+ "$": ["bn-ruleset.css"]
41
+ };
42
+ }
43
+ static get properties() {
44
+ return {
45
+ "name": {
46
+ "type": "string",
47
+ "mutable": false,
48
+ "complexType": {
49
+ "original": "string",
50
+ "resolved": "string",
51
+ "references": {}
52
+ },
53
+ "required": false,
54
+ "optional": false,
55
+ "docs": {
56
+ "tags": [],
57
+ "text": ""
58
+ },
59
+ "getter": false,
60
+ "setter": false,
61
+ "reflect": false,
62
+ "attribute": "name",
63
+ "defaultValue": "\"_default\""
64
+ }
65
+ };
66
+ }
67
+ static get elementRef() { return "element"; }
68
+ }
@@ -68,7 +68,7 @@ export class ScalingGroup {
68
68
  this.stores.scalingGroups.set(trimmedName, this.value);
69
69
  }
70
70
  render() {
71
- return h(Host, { key: '5f38a91595cb1494b275d48345bf821fddb9b904' });
71
+ return h(Host, { key: '954d0817ee263278c7922e10b9a0da3d85e6bbd8' });
72
72
  }
73
73
  static get is() { return "bn-scaling-group"; }
74
74
  static get originalStyleUrls() {