@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
@@ -0,0 +1,140 @@
1
+ import { DateTime } from "luxon";
2
+ import { DateDistance, DateStringFactory } from "../../../../utils/DateStringFactory";
3
+ /** `interval` value deactivating the feature. */
4
+ export const INTERVAL_NONE = "none";
5
+ /** `interval` value grouping by the dataset's `setname` column. */
6
+ export const INTERVAL_SETNAME = "setname";
7
+ /** Label rendered for the bucket collecting rows with a blank setname. */
8
+ export const BLANK_BUCKET_LABEL = "—";
9
+ /** True for all date-based interval values (everything except none/setname). */
10
+ export function isDateInterval(interval) {
11
+ return interval !== INTERVAL_NONE && interval !== INTERVAL_SETNAME;
12
+ }
13
+ /**
14
+ * SQL expression computing the bucket value of a source row.
15
+ * Dates are normalized to the start of their bucket via the `normalizeDate`
16
+ * alasql UDF (same mechanism as bn-chart-time); setname tolerates both the
17
+ * documented lowercase `setname` and the `setName` casing used in fixtures.
18
+ */
19
+ export function intervalBucketSQL(interval) {
20
+ if (interval === INTERVAL_SETNAME) {
21
+ return "COALESCE([setname],[setName])";
22
+ }
23
+ return `normalizeDate([date], '${interval}')`;
24
+ }
25
+ /** Coerces a raw bucket value (luxon DateTime, string, millis) to a stable string key. */
26
+ export function coerceBucketKey(value) {
27
+ if (value == null) {
28
+ return "";
29
+ }
30
+ if (typeof value === "string") {
31
+ return value.trim();
32
+ }
33
+ const dt = toDateTime(value);
34
+ if (dt) {
35
+ return dt.toISO();
36
+ }
37
+ return String(value);
38
+ }
39
+ /**
40
+ * Resolves `auto` to a concrete date granularity from the dataset's date span
41
+ * (mirrors TimeChart.findDateInterval). Non-auto values pass through.
42
+ * The min/max is computed in JS because alasql's MIN/MAX only aggregates numbers,
43
+ * while `date` values are usually ISO strings.
44
+ */
45
+ export function resolveIntervalGranularity(db, fromExpr, interval) {
46
+ var _a;
47
+ if (interval !== DateDistance.AUTO) {
48
+ return interval;
49
+ }
50
+ let rows;
51
+ try {
52
+ rows = db.exec(`SELECT [date] as d FROM ${fromExpr}`);
53
+ }
54
+ catch (e) {
55
+ console.error("IntervalColumns: date query failed", e);
56
+ return DateDistance.DAY;
57
+ }
58
+ let min;
59
+ let max;
60
+ for (const row of rows) {
61
+ const millis = (_a = toDateTime(row.d)) === null || _a === void 0 ? void 0 : _a.toMillis();
62
+ if (millis === undefined) {
63
+ continue;
64
+ }
65
+ min = min === undefined ? millis : Math.min(min, millis);
66
+ max = max === undefined ? millis : Math.max(max, millis);
67
+ }
68
+ if (min === undefined || max === undefined) {
69
+ return DateDistance.DAY;
70
+ }
71
+ return new DateStringFactory().calculateDistanceType(DateTime.fromMillis(min), DateTime.fromMillis(max));
72
+ }
73
+ /**
74
+ * Queries the distinct interval buckets of the source data.
75
+ * Date buckets are sorted chronologically ascending and labeled locale-aware;
76
+ * setname buckets keep their order of first appearance in the data, blank
77
+ * setnames are collected in a trailing-position "—" bucket where they occur.
78
+ */
79
+ export function queryIntervalBuckets(db, fromExpr, interval, locale) {
80
+ let rows;
81
+ try {
82
+ rows = db.exec(`SELECT ${intervalBucketSQL(interval)} as __interval FROM ${fromExpr}`);
83
+ }
84
+ catch (e) {
85
+ console.error("IntervalColumns: bucket query failed", e);
86
+ return [];
87
+ }
88
+ if (interval === INTERVAL_SETNAME) {
89
+ const seen = new Set();
90
+ const buckets = [];
91
+ for (const row of rows) {
92
+ const key = coerceBucketKey(row.__interval);
93
+ if (seen.has(key)) {
94
+ continue;
95
+ }
96
+ seen.add(key);
97
+ buckets.push({ key, label: key.length === 0 ? BLANK_BUCKET_LABEL : key });
98
+ }
99
+ return buckets;
100
+ }
101
+ const seen = new Set();
102
+ const dates = [];
103
+ for (const row of rows) {
104
+ const dt = toDateTime(row.__interval);
105
+ if (!dt) {
106
+ continue;
107
+ }
108
+ const key = dt.toISO();
109
+ if (seen.has(key)) {
110
+ continue;
111
+ }
112
+ seen.add(key);
113
+ dates.push(dt);
114
+ }
115
+ dates.sort((a, b) => a.toMillis() - b.toMillis());
116
+ const dateStringFactory = new DateStringFactory();
117
+ dateStringFactory.setLocale(locale);
118
+ return dates.map((dt) => ({
119
+ key: dt.toISO(),
120
+ label: dateStringFactory.getDateString(dt, interval),
121
+ }));
122
+ }
123
+ function toDateTime(value) {
124
+ if (value == null) {
125
+ return undefined;
126
+ }
127
+ if (typeof value === "string") {
128
+ const dt = DateTime.fromISO(value);
129
+ return dt.isValid ? dt : undefined;
130
+ }
131
+ if (typeof value === "number") {
132
+ const dt = DateTime.fromMillis(value);
133
+ return dt.isValid ? dt : undefined;
134
+ }
135
+ if (typeof value.isValid === "boolean") {
136
+ const dt = value;
137
+ return dt.isValid ? dt : undefined;
138
+ }
139
+ return undefined;
140
+ }
@@ -0,0 +1,166 @@
1
+ import { TableRowType, TableType } from "../model";
2
+ import { QueryColumnNames } from "../../../../utils/model";
3
+ /**
4
+ * Waterfall geometry per raw result row and column, keyed by row identity
5
+ * (the factory iterates the same row objects the calculator walked).
6
+ */
7
+ export class WaterfallResult {
8
+ constructor() {
9
+ this.geometry = new Map();
10
+ }
11
+ set(row, column, data) {
12
+ let columns = this.geometry.get(row);
13
+ if (!columns) {
14
+ columns = new Map();
15
+ this.geometry.set(row, columns);
16
+ }
17
+ columns.set(column, data);
18
+ }
19
+ get(row, column) {
20
+ var _a;
21
+ return (_a = this.geometry.get(row)) === null || _a === void 0 ? void 0 : _a.get(column);
22
+ }
23
+ }
24
+ /** True when the result contains grouping structure (sum, subtotal, or drill rows). */
25
+ export function hasGroupingStructure(queryData) {
26
+ for (const groupData of queryData) {
27
+ for (const row of groupData) {
28
+ const type = row[QueryColumnNames.TYPE];
29
+ if (type === TableRowType.SUM ||
30
+ type === TableRowType.GROUPSUM ||
31
+ type === TableRowType.DRILLELEMENT ||
32
+ type === TableRowType.PARTELEMENT) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+ /**
40
+ * Signed waterfall contribution of a row for one column.
41
+ *
42
+ * Non-OPT table types aggregate `SUM(scn * transformOperator(operation))`, so ENTRY
43
+ * values arrive already signed. OPT types aggregate plain `SUM(scn)` with the sign
44
+ * carried in the visible operation column, so the sign is applied here. Sum rows are
45
+ * fully signed in both modes.
46
+ */
47
+ function signedValue(row, column, tableType) {
48
+ const raw = row[column];
49
+ if (raw === null || raw === undefined) {
50
+ return null;
51
+ }
52
+ const value = Number(raw);
53
+ if (isNaN(value)) {
54
+ return null;
55
+ }
56
+ const isOpt = tableType === TableType.OPT || tableType === TableType.OPTNOTOTAL;
57
+ if (isOpt && row[QueryColumnNames.TYPE] === TableRowType.ENTRY && row[QueryColumnNames.OPERATION] === "-") {
58
+ return -value;
59
+ }
60
+ return value;
61
+ }
62
+ /**
63
+ * Computes waterfall bar geometry for the given scenario columns by walking the
64
+ * segmented query result once per column in display order.
65
+ *
66
+ * - ENTRY rows (incl. REST) cascade from the running total by their signed value.
67
+ * - SUM / GROUP_SUM rows anchor at zero and reset the running total to their value.
68
+ * - DRILLELEMENT (thereof) rows form a sub-cascade from their parent bar's start in
69
+ * the parent's direction; the running total is untouched.
70
+ * - PARTELEMENT (partof) rows cascade a `share * parent width` segment the same way.
71
+ * Note: the share denominator is the group sum (or SUM_TOTAL when ungrouped) per
72
+ * `createPartOfDrillRows`, not literally the parent row's value.
73
+ * - GROUPHEAD and NaN rows get no bar; a NaN parent orphans its drill children.
74
+ *
75
+ * @param queryData - Segmented result rows from DataQuery.execute().
76
+ * @param columns - Plain scenario column keys (ac1..pl4); no `##` composite keys.
77
+ * @param tableType - Table aggregation mode, needed for OPT sign handling.
78
+ */
79
+ export function computeWaterfall(queryData, columns, tableType) {
80
+ const result = new WaterfallResult();
81
+ for (const column of columns) {
82
+ let running = 0;
83
+ let lastParent;
84
+ let subCursor = 0;
85
+ const emitted = [];
86
+ const emit = (row, data) => {
87
+ emitted.push(data);
88
+ result.set(row, column, data);
89
+ };
90
+ for (const groupData of queryData) {
91
+ for (const row of groupData) {
92
+ const type = row[QueryColumnNames.TYPE];
93
+ if (type === TableRowType.GROUPHEAD) {
94
+ lastParent = undefined;
95
+ continue;
96
+ }
97
+ const value = signedValue(row, column, tableType);
98
+ if (type === TableRowType.ENTRY) {
99
+ if (value === null) {
100
+ lastParent = undefined;
101
+ continue;
102
+ }
103
+ emit(row, { start: running, end: running + value, min: 0, max: 0, kind: "cascade" });
104
+ lastParent = { start: running, end: running + value };
105
+ subCursor = lastParent.start;
106
+ running += value;
107
+ }
108
+ else if (type === TableRowType.SUM || type === TableRowType.GROUPSUM) {
109
+ if (value === null) {
110
+ lastParent = undefined;
111
+ continue;
112
+ }
113
+ emit(row, { start: 0, end: value, min: 0, max: 0, kind: "anchor" });
114
+ lastParent = { start: 0, end: value };
115
+ subCursor = 0;
116
+ running = value;
117
+ }
118
+ else if (type === TableRowType.DRILLELEMENT) {
119
+ if (value === null || lastParent === undefined) {
120
+ continue;
121
+ }
122
+ const direction = Math.sign(lastParent.end - lastParent.start) || 1;
123
+ const end = subCursor + direction * Math.abs(value);
124
+ emit(row, {
125
+ start: subCursor,
126
+ end,
127
+ min: 0,
128
+ max: 0,
129
+ kind: "thereof",
130
+ parentStart: lastParent.start,
131
+ parentEnd: lastParent.end,
132
+ });
133
+ subCursor = end;
134
+ }
135
+ else if (type === TableRowType.PARTELEMENT) {
136
+ if (value === null || lastParent === undefined) {
137
+ continue;
138
+ }
139
+ const end = subCursor + value * (lastParent.end - lastParent.start);
140
+ emit(row, {
141
+ start: subCursor,
142
+ end,
143
+ min: 0,
144
+ max: 0,
145
+ kind: "partof",
146
+ parentStart: lastParent.start,
147
+ parentEnd: lastParent.end,
148
+ });
149
+ subCursor = end;
150
+ }
151
+ }
152
+ }
153
+ // All rows of a column share one coordinate system including zero
154
+ let min = 0;
155
+ let max = 0;
156
+ for (const data of emitted) {
157
+ min = Math.min(min, data.start, data.end);
158
+ max = Math.max(max, data.start, data.end);
159
+ }
160
+ for (const data of emitted) {
161
+ data.min = min;
162
+ data.max = max;
163
+ }
164
+ }
165
+ return result;
166
+ }
@@ -1 +1,3 @@
1
1
  export * from "./DataQuery";
2
+ export * from "./IntervalColumns";
3
+ export * from "./WaterfallCalculator";
@@ -57,6 +57,10 @@ export class TableComponentConfig {
57
57
  this.filter = "";
58
58
  /** Scenario columns to render as inline bar charts instead of numbers. */
59
59
  this.barColumns = [];
60
+ /** Interval column grouping: "none", "setname" or a DateDistance value (see bn-table `interval` prop). */
61
+ this.interval = "none";
62
+ /** Locale used for interval bucket labels. */
63
+ this.locale = "de";
60
64
  }
61
65
  }
62
66
  /**
@@ -134,6 +138,12 @@ export class TableComponentConfigAdapter {
134
138
  if (CompareUtil.isArray(data.barColumns)) {
135
139
  config.barColumns = data.barColumns;
136
140
  }
141
+ if (CompareUtil.isString(data.interval)) {
142
+ config.interval = data.interval;
143
+ }
144
+ if (CompareUtil.isString(data.locale)) {
145
+ config.locale = data.locale;
146
+ }
137
147
  return config;
138
148
  }
139
149
  default() {
@@ -7,7 +7,7 @@ export class Template {
7
7
  this.errors = withHasError(this);
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: 'cd6a2945603feda3610bc9f2678e03b26f54d6dd' }, h("slot", { key: '0e2ba3942a4ef74ab334572656383e85be7e1654' })));
10
+ return (h(Host, { key: '8bcf1eda4139c76c5e9ea6891e7a54c9c607a4ae' }, h("slot", { key: 'e11b18a72a93b6de23c99b02de788c73482af071' })));
11
11
  }
12
12
  static get is() { return "bn-template"; }
13
13
  static get encapsulation() { return "shadow"; }
@@ -7,81 +7,8 @@ import withComponentStyle from "../../utils/withComponentStyle";
7
7
  import withHasError from "../../utils/withHasError";
8
8
  import { getParentDimensions } from "../../utils/parentDimensions";
9
9
  import { parseScaling } from "../../utils/scaling";
10
- const ALLOWED_TAGS = new Set([
11
- "br",
12
- "b",
13
- "i",
14
- "strong",
15
- "em",
16
- "span",
17
- "p",
18
- "div",
19
- "table",
20
- "tr",
21
- "td",
22
- "th",
23
- "thead",
24
- "tbody",
25
- "tfoot",
26
- "ul",
27
- "ol",
28
- "li",
29
- "h1",
30
- "h2",
31
- "h3",
32
- "h4",
33
- "h5",
34
- "h6",
35
- "sub",
36
- "sup",
37
- "small",
38
- "hr",
39
- "a",
40
- "img",
41
- ]);
42
- const ALLOWED_ATTRS = new Set([
43
- "class",
44
- "style",
45
- "colspan",
46
- "rowspan",
47
- "href",
48
- "title",
49
- "src",
50
- "alt",
51
- "width",
52
- "height",
53
- ]);
10
+ import { sanitizeHtml } from "../../utils/sanitizeHtml";
54
11
  const DANGEROUS_PATTERN = /\b(__proto__|globalThis)\b|\.constructor\b/;
55
- function sanitizeHtml(html) {
56
- const container = document.createElement("div");
57
- container.innerHTML = html;
58
- sanitizeNode(container);
59
- return container.innerHTML;
60
- }
61
- function sanitizeNode(node) {
62
- for (const child of Array.from(node.childNodes)) {
63
- if (child.nodeType !== Node.ELEMENT_NODE)
64
- continue;
65
- const el = child;
66
- if (!ALLOWED_TAGS.has(el.tagName.toLowerCase())) {
67
- node.replaceChild(document.createTextNode(el.textContent || ""), el);
68
- continue;
69
- }
70
- for (const attr of Array.from(el.attributes)) {
71
- const name = attr.name.toLowerCase();
72
- if (name.startsWith("on") || !ALLOWED_ATTRS.has(name)) {
73
- el.removeAttribute(attr.name);
74
- }
75
- else if ((name === "href" || name === "src") && /^\s*javascript:/i.test(attr.value)) {
76
- el.removeAttribute(attr.name);
77
- }
78
- else if (name === "style" && /expression|javascript/i.test(attr.value)) {
79
- el.removeAttribute(attr.name);
80
- }
81
- }
82
- sanitizeNode(el);
83
- }
84
- }
85
12
  /**
86
13
  * Renders a template-driven text block with dataset interpolation.
87
14
  *
@@ -264,7 +191,7 @@ export class Text {
264
191
  "--bn-font-color": fontStyles.color,
265
192
  "--bn-font-background": fontStyles.background,
266
193
  };
267
- return (h(Host, { key: '086c3caad1f7c502e26ebbd1bf7d9044782333ab', style: cssVars }, h("div", { key: '584938536bedd3de7a6390ce9d57fb568a69191b' }, h("span", { key: 'b545bd809b32d2d0cac2310bd1003dab39bebc8a', class: "container", ref: (el) => {
194
+ return (h(Host, { key: 'ad7a7d348a04b9de6b2bf6c41deab93208125dab', style: cssVars }, h("div", { key: 'e499179166458f02cf603b22fe8fccad03b2b716' }, h("span", { key: '6a7894feacdb9274a79cee391dd7e416c5aa87e6', class: "container", ref: (el) => {
268
195
  this.container = el;
269
196
  } }))));
270
197
  }
@@ -6,6 +6,7 @@ import withTranslation from "../../utils/withTranslation";
6
6
  import { globalLabelKeys } from "../../stores/internationalization";
7
7
  import { withStyled } from "../../utils/styled/withStyled";
8
8
  import withComponentStyle from "../../utils/withComponentStyle";
9
+ import withRuleSet from "../../utils/withRuleSet";
9
10
  import withHasError from "../../utils/withHasError";
10
11
  import { I18nMode } from "../../utils/constants";
11
12
  import { OrderDirection } from "../../utils/model/Order";
@@ -19,7 +20,10 @@ import { DateDistance, DateLink } from "../../utils/DateStringFactory";
19
20
  */
20
21
  export class Title {
21
22
  constructor() {
22
- /** Name of the business unit displayed in card header. If empty string (`''` or `null`) the business unit row is omitted */
23
+ /** Name of the business unit displayed in card header. If empty string (`''` or `null`) the business unit row is omitted
24
+ * <br /><br />
25
+ * Rendered as sanitized HTML, so inline markup such as ```<b>```, ```<i>``` and ```<br />``` is supported.
26
+ */
23
27
  this.businessUnit = "";
24
28
  /** List of the primary scenarios on which the order direction are applied.
25
29
  * <br /><br />
@@ -75,6 +79,7 @@ export class Title {
75
79
  this.t = withTranslation(this).t;
76
80
  this.errors = withHasError(this);
77
81
  this.componentStyle = withComponentStyle(this);
82
+ this.ruleSetConfig = withRuleSet(this);
78
83
  }
79
84
  validateScenario(newValue) {
80
85
  const errId = "ERR_scenarios";
@@ -286,7 +291,7 @@ export class Title {
286
291
  }
287
292
  render() {
288
293
  const fontStyles = this.getFontStyles();
289
- return (h(Host, { key: 'e84349bd356bc6ac3a3f3dccad01b0ef7d818077', style: fontStyles }, h("ibcs-title", { key: 'cde3f65fff090e3ade3909a4d3c0b103e5b91ba5', businessUnit: this.prepareBusinessUnit(), scenarios: this.prepareScenarios(), measures: this.prepareMeasures(), timeperiod: this.prepareTitleTimePeriod(), order: this.prepareTitleOrder(), i18n: this.prepareI18n(), "i18n-mode": this.prepareI18nMode() })));
294
+ return (h(Host, { key: 'de097e2e8afe7fcf3268487b45b380e42448feab', style: fontStyles }, h("ibcs-title", { key: 'af0cb1c88c434e92d3fea1a71bf4d0687158353f', businessUnit: this.prepareBusinessUnit(), scenarios: this.prepareScenarios(), measures: this.prepareMeasures(), timeperiod: this.prepareTitleTimePeriod(), order: this.prepareTitleOrder(), i18n: this.prepareI18n(), "i18n-mode": this.prepareI18nMode(), ruleSetConfig: this.ruleSetConfig() })));
290
295
  }
291
296
  static get is() { return "bn-title"; }
292
297
  static get encapsulation() { return "shadow"; }
@@ -302,6 +307,25 @@ export class Title {
302
307
  }
303
308
  static get properties() {
304
309
  return {
310
+ "ruleset": {
311
+ "type": "string",
312
+ "mutable": false,
313
+ "complexType": {
314
+ "original": "string",
315
+ "resolved": "string",
316
+ "references": {}
317
+ },
318
+ "required": false,
319
+ "optional": true,
320
+ "docs": {
321
+ "tags": [],
322
+ "text": "Name of a registered IBCS rule set (see `bn-ruleset`) used for scenario\nordering. Supports `\"inherited-closest\"` / `\"inherited-page\"` to take\nover the value from an ancestor `bn-layout-card` / `bn-layout-page`."
323
+ },
324
+ "getter": false,
325
+ "setter": false,
326
+ "reflect": true,
327
+ "attribute": "ruleset"
328
+ },
305
329
  "businessUnit": {
306
330
  "type": "string",
307
331
  "mutable": false,
@@ -314,7 +338,7 @@ export class Title {
314
338
  "optional": false,
315
339
  "docs": {
316
340
  "tags": [],
317
- "text": "Name of the business unit displayed in card header. If empty string (`''` or `null`) the business unit row is omitted"
341
+ "text": "Name of the business unit displayed in card header. If empty string (`''` or `null`) the business unit row is omitted\n<br /><br />\nRendered as sanitized HTML, so inline markup such as ```<b>```, ```<i>``` and ```<br />``` is supported."
318
342
  },
319
343
  "getter": false,
320
344
  "setter": false,
@@ -12,4 +12,8 @@
12
12
  div {
13
13
  background-color: var(--bn-font-background, white);
14
14
  color: var(--bn-font-color, black);
15
+ }
16
+
17
+ p {
18
+ margin: 0;
15
19
  }
@@ -7,6 +7,7 @@ import { OrderAdapter, OrderDirection } from "../../../utils/model/Order";
7
7
  import { I18nMode } from "../../../utils/constants";
8
8
  import { IBCSRuleSet } from "../../../utils/ibcsRuleSet";
9
9
  import { StringAdapter } from "../../../utils/helper/StringAdapter";
10
+ import { sanitizeHtml } from "../../../utils/sanitizeHtml";
10
11
  export class IbcsTitle {
11
12
  constructor() {
12
13
  this.businessUnit = "";
@@ -33,17 +34,18 @@ export class IbcsTitle {
33
34
  });
34
35
  }
35
36
  render() {
36
- return (h("div", { key: '314cf7dad025643a6cdc190312eb100a310f076b' }, h("div", { key: 'b2e5c89f5d9d08987d09d0ee46e63b5889ede87c' }, this.title.unit), h("div", { key: 'd9cb4aa0cc02d8b354eb61609d4e22f4641e10a1' }, this.title.measures.map((measure, index) => (h("span", null, this.isFirstElement(index) ? this.title.i18n.get("SEPERATOR_WS") : "", h("span", { class: "measure" }, measure.name), " ", measure.unit ? this.title.i18n.get("in") : "", " ", measure.unit)))), h("div", { key: 'ccbfb094dd5fa097fe339b03958ea3854e87083e' }, this.title.dimension)));
37
+ return (h("div", { key: '7a95748a4576c654c9066efb2bfd7531238d2ed0' }, h("div", { key: '6a34ba1043660dc75b57cd029f6438d1178c34e4', innerHTML: sanitizeHtml(this.title.unit) }), h("div", { key: '6ec241e7cd6ac8a2061aab1b822973e77e2fb7cd' }, this.title.measures.map((measure, index) => (h("span", null, this.isFirstElement(index) ? this.title.i18n.get("SEPERATOR_WS") : "", h("span", { class: "measure" }, measure.name), " ", measure.unit ? this.title.i18n.get("in") : "", " ", measure.unit)))), h("div", { key: 'd6bc97cd78ec8734d4d42b2537cf61dfcac28ae4' }, this.title.dimension)));
37
38
  }
38
39
  componentWillLoad() {
39
40
  const config = this.prepareConfig();
40
- this.title = new Title(new IBCSRuleSet());
41
+ this.title = new Title(new IBCSRuleSet(this.ruleSetConfig));
41
42
  this.title.setI18n(this.i18n);
42
43
  this.title.setConfig(config);
43
44
  }
44
45
  componentWillUpdate() {
45
46
  const config = this.prepareConfig();
46
47
  this.title.setI18n(this.i18n);
48
+ this.title.setRuleSet(new IBCSRuleSet(this.ruleSetConfig));
47
49
  this.title.setConfig(config);
48
50
  }
49
51
  componentWillRender() {
@@ -258,6 +260,30 @@ export class IbcsTitle {
258
260
  "reflect": false,
259
261
  "attribute": "i18n-mode",
260
262
  "defaultValue": "I18nMode.ALL"
263
+ },
264
+ "ruleSetConfig": {
265
+ "type": "unknown",
266
+ "mutable": false,
267
+ "complexType": {
268
+ "original": "RuleSetConfig",
269
+ "resolved": "RuleSetConfig",
270
+ "references": {
271
+ "RuleSetConfig": {
272
+ "location": "import",
273
+ "path": "../../../stores/ruleSets",
274
+ "id": "src/stores/ruleSets.ts::RuleSetConfig",
275
+ "referenceLocation": "RuleSetConfig"
276
+ }
277
+ }
278
+ },
279
+ "required": false,
280
+ "optional": true,
281
+ "docs": {
282
+ "tags": [],
283
+ "text": ""
284
+ },
285
+ "getter": false,
286
+ "setter": false
261
287
  }
262
288
  };
263
289
  }
@@ -289,7 +315,7 @@ export class IbcsTitle {
289
315
  "signature": "(data: Partial<IbcsTitle>) => Promise<void>",
290
316
  "parameters": [{
291
317
  "name": "data",
292
- "type": "{ businessUnit?: string; setBusinessUnit?: (businessUnit: string) => Promise<void>; setProps?: (data: Partial<IbcsTitle>) => Promise<void>; scenarios?: string[]; measures?: MeasureEntry[]; timeperiod?: TimePeriod; intervalSpanLimit?: number; order?: Order; i18n?: Map<string, string>; i18nMode?: I18nMode; render?: () => any; componentWillLoad?: () => void; componentWillUpdate?: () => void; componentWillRender?: () => void; }",
318
+ "type": "{ businessUnit?: string; setBusinessUnit?: (businessUnit: string) => Promise<void>; setProps?: (data: Partial<IbcsTitle>) => Promise<void>; scenarios?: string[]; measures?: MeasureEntry[]; timeperiod?: TimePeriod; intervalSpanLimit?: number; order?: Order; i18n?: Map<string, string>; i18nMode?: I18nMode; ruleSetConfig?: RuleSetConfig; render?: () => any; componentWillLoad?: () => void; componentWillUpdate?: () => void; componentWillRender?: () => void; }",
293
319
  "docs": ""
294
320
  }],
295
321
  "references": {
@@ -19,6 +19,9 @@ export class Title {
19
19
  this.state = FactoryState.DIRTY;
20
20
  this.setI18n(new Map());
21
21
  }
22
+ setRuleSet(ruleSet) {
23
+ this.ruleSet = ruleSet || new IBCSRuleSet();
24
+ }
22
25
  /**
23
26
  * Set Localisation Map
24
27
  * @param i18n
@@ -37,7 +37,7 @@ export class EditorCompanion {
37
37
  return Promise.resolve(result);
38
38
  }
39
39
  render() {
40
- return h(Fragment, { key: 'd6eb8ea68a4d507142547f4014f1dd3db58dcfd4' });
40
+ return h(Fragment, { key: '35a8fdaa36fb5f9b042d1fad904f9b54a58ba79c' });
41
41
  }
42
42
  /** Materialize a table or view from the shared db, returning [] when it doesn't exist yet. */
43
43
  queryRows(name) {