@bino-bi/bn-template-engine 1.0.0-next.26 → 1.0.0-next.28

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 (420) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-5075771a.entry.js +1 -0
  3. package/dist/bn-template-engine/p-5d516435.entry.js +1 -0
  4. package/dist/bn-template-engine/p-5e90e728.entry.js +1 -0
  5. package/dist/bn-template-engine/p-9ef7e132.entry.js +1 -0
  6. package/dist/bn-template-engine/{p-f06c3703.entry.js → p-9f7a1980.entry.js} +1 -1
  7. package/dist/bn-template-engine/p-BeXgxHkW.js +1 -0
  8. package/dist/bn-template-engine/p-CH0bpt_k.js +1 -0
  9. package/dist/bn-template-engine/p-ClruFZD_.js +1 -0
  10. package/dist/bn-template-engine/{p-CTrNbSXN.js → p-DFmSrSnf.js} +1 -1
  11. package/dist/bn-template-engine/{p-BcLsoDrW.js → p-DI3efDSV.js} +1 -1
  12. package/dist/bn-template-engine/p-DXLTTILG.js +1 -0
  13. package/dist/bn-template-engine/p-DtP4jqG5.js +1 -0
  14. package/dist/bn-template-engine/p-a8281b71.entry.js +1 -0
  15. package/dist/bn-template-engine/p-b31277e7.entry.js +1 -0
  16. package/dist/bn-template-engine/p-b396ac84.entry.js +1 -0
  17. package/dist/cjs/{bn-asset_21.cjs.entry.js → bn-asset_28.cjs.entry.js} +21358 -6528
  18. package/dist/cjs/bn-grid.cjs.entry.js +4 -6
  19. package/dist/cjs/bn-image.cjs.entry.js +3 -5
  20. package/dist/cjs/bn-internationalization.cjs.entry.js +17 -6
  21. package/dist/cjs/bn-ruleset.cjs.entry.js +5 -5
  22. package/dist/cjs/bn-template-engine.cjs.js +1 -1
  23. package/dist/cjs/bn-template.cjs.entry.js +2 -2
  24. package/dist/cjs/bn-text.cjs.entry.js +115 -43
  25. package/dist/cjs/{context-protocol-DcTEh1rq.js → context-protocol-C0rKepqu.js} +108 -22
  26. package/dist/cjs/{diagnostics-CTgbq_Gc.js → diagnostics-Cq-qDtXq.js} +1 -1
  27. package/dist/cjs/editor-companion.cjs.entry.js +2 -2
  28. package/dist/cjs/loader.cjs.js +1 -1
  29. package/dist/cjs/queryError-BZjnIW_w.js +16 -0
  30. package/dist/cjs/{scaling-Dsb5_NXy.js → sanitizeHtml-Yx1xn6i_.js} +467 -287
  31. package/dist/cjs/{withBodyObserver-DJO98AJ-.js → withBodyObserver-CaPUjuC5.js} +1 -1
  32. package/dist/cjs/withHasError-qGW_yqIv.js +426 -0
  33. package/dist/cjs/{withStyled-D0jLwCib.js → withStyled-vSfogp9J.js} +543 -42
  34. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.css +37 -0
  35. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +53 -28
  36. package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.css +37 -5
  37. package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.js +16 -7
  38. package/dist/collection/components/bn-chart-bubble/utils/BubbleChart.js +67 -30
  39. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.css +37 -0
  40. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +49 -29
  41. package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.css +37 -5
  42. package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.js +17 -7
  43. package/dist/collection/components/bn-chart-bullet/utils/BulletChart.js +34 -18
  44. package/dist/collection/components/bn-chart-bullet/utils/model/BulletChartStyle.js +2 -0
  45. package/dist/collection/components/bn-chart-bullet/utils/model/BulletConfig.js +1 -1
  46. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.css +37 -0
  47. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +52 -27
  48. package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.css +37 -5
  49. package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.js +16 -7
  50. package/dist/collection/components/bn-chart-scatter/utils/ScatterChart.js +52 -18
  51. package/dist/collection/components/bn-chart-structure/bn-chart-structure.css +37 -5
  52. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +74 -44
  53. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +60 -19
  54. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +218 -262
  55. package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +1 -1
  56. package/dist/collection/components/bn-chart-structure/utils/elements/Needle.js +11 -4
  57. package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +16 -25
  58. package/dist/collection/components/bn-chart-structure/utils/model/StructureChartComponentConfig.js +3 -2
  59. package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +2 -0
  60. package/dist/collection/components/bn-chart-time/bn-chart-time.css +37 -0
  61. package/dist/collection/components/bn-chart-time/bn-chart-time.js +122 -52
  62. package/dist/collection/components/bn-chart-time/ibcs-chart-time.css +37 -0
  63. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +60 -19
  64. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +245 -250
  65. package/dist/collection/components/bn-chart-time/utils/elements/AreaFill.js +1 -1
  66. package/dist/collection/components/bn-chart-time/utils/elements/Label.js +1 -1
  67. package/dist/collection/components/bn-chart-time/utils/elements/LineSeries.js +1 -1
  68. package/dist/collection/components/bn-chart-time/utils/elements/Needle.js +11 -4
  69. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +22 -34
  70. package/dist/collection/components/bn-chart-time/utils/helper/LabelCollisionManager.js +3 -3
  71. package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +4 -3
  72. package/dist/collection/components/bn-chart-time/utils/model/TimeChartDataRow.js +2 -2
  73. package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +2 -0
  74. package/dist/collection/components/bn-component-style/bn-component-style.js +14 -2
  75. package/dist/collection/components/bn-context/bn-context.js +92 -22
  76. package/dist/collection/components/bn-dataset/bn-dataset.js +246 -90
  77. package/dist/collection/components/bn-datasource/bn-datasource.js +169 -77
  78. package/dist/collection/components/bn-footer/bn-footer.js +6 -6
  79. package/dist/collection/components/bn-internationalization/bn-internationalization.js +14 -3
  80. package/dist/collection/components/bn-layout-card/bn-layout-card.js +25 -74
  81. package/dist/collection/components/bn-layout-page/bn-layout-page.js +59 -71
  82. package/dist/collection/components/bn-message/bn-message.js +2 -2
  83. package/dist/collection/components/bn-page/bn-page.css +0 -240
  84. package/dist/collection/components/bn-page/bn-page.js +14 -4
  85. package/dist/collection/components/bn-page/pageFormats.js +69 -0
  86. package/dist/collection/components/bn-ruleset/bn-ruleset.js +2 -2
  87. package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +7 -7
  88. package/dist/collection/components/bn-table/bn-table.css +38 -1
  89. package/dist/collection/components/bn-table/bn-table.js +96 -59
  90. package/dist/collection/components/bn-table/ibcs-table.css +39 -1
  91. package/dist/collection/components/bn-table/ibcs-table.js +89 -30
  92. package/dist/collection/components/bn-table/utils/Table.js +12 -13
  93. package/dist/collection/components/bn-table/utils/elements/Cell.js +9 -3
  94. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +38 -34
  95. package/dist/collection/components/bn-table/utils/elements/TableRow.js +2 -1
  96. package/dist/collection/components/bn-table/utils/elements/WaterfallBar.js +4 -4
  97. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +17 -4
  98. package/dist/collection/components/bn-table/utils/helper/DataQuery.js +128 -98
  99. package/dist/collection/components/bn-table/utils/helper/IntervalColumns.js +6 -20
  100. package/dist/collection/components/bn-table/utils/helper/QueryGroup.js +9 -2
  101. package/dist/collection/components/bn-table/utils/helper/barColumnGeometry.js +2 -2
  102. package/dist/collection/components/bn-table/utils/model/TableAttribute.js +2 -2
  103. package/dist/collection/components/bn-table/utils/model/TableComponentConfig.js +3 -2
  104. package/dist/collection/components/bn-template/bn-template.js +1 -1
  105. package/dist/collection/components/bn-text/bn-text.js +36 -39
  106. package/dist/collection/components/bn-text/utils/template.js +79 -0
  107. package/dist/collection/components/bn-title/bn-title.js +10 -4
  108. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +3 -1
  109. package/dist/collection/components/bn-tree/bn-tree.js +119 -23
  110. package/dist/collection/components/bn-tree/utils/EdgeRenderer.js +59 -51
  111. package/dist/collection/components/bn-tree/utils/TreeLayout.js +30 -5
  112. package/dist/collection/components/bn-tree/utils/TreeParser.js +35 -0
  113. package/dist/collection/components/editor-companion/editor-companion.js +1 -1
  114. package/dist/collection/context/context-protocol.js +1 -1
  115. package/dist/collection/context/scopedDb.js +47 -4
  116. package/dist/collection/stores/componentStyles.js +39 -0
  117. package/dist/collection/stores/internationalization.js +15 -13
  118. package/dist/collection/utils/DateStringFactory.js +17 -15
  119. package/dist/collection/utils/autoFit.js +2 -2
  120. package/dist/collection/utils/componentRegister.js +60 -16
  121. package/dist/collection/utils/constants.js +2 -2
  122. package/dist/collection/utils/dataAnalyzer.js +9 -12
  123. package/dist/collection/utils/emptyState.js +21 -0
  124. package/dist/collection/utils/formatter.js +29 -20
  125. package/dist/collection/utils/layoutObserver.js +1 -1
  126. package/dist/collection/utils/layoutState/generic.js +1 -1
  127. package/dist/collection/utils/layoutState/svgChartElements.js +2 -2
  128. package/dist/collection/utils/layoutTemplate.js +81 -0
  129. package/dist/collection/utils/measurementHost.js +2 -2
  130. package/dist/collection/utils/model/Order.js +1 -1
  131. package/dist/collection/utils/model/styles/SVGStyle.js +12 -4
  132. package/dist/collection/utils/parentDimensions.js +35 -3
  133. package/dist/collection/utils/queryError.js +11 -0
  134. package/dist/collection/utils/relativeVariance.js +14 -0
  135. package/dist/collection/utils/sanitizeHtml.js +30 -16
  136. package/dist/collection/utils/scaling.js +2 -2
  137. package/dist/collection/utils/stackColors.js +27 -5
  138. package/dist/collection/utils/stackLayout.js +71 -0
  139. package/dist/collection/utils/styled/attributes.js +16 -3
  140. package/dist/collection/utils/styled/style-sheet.js +1 -1
  141. package/dist/collection/utils/styled/withStyled.js +1 -1
  142. package/dist/collection/utils/testing/fakeGroup.js +21 -0
  143. package/dist/collection/utils/testing/mutationObserver.js +44 -0
  144. package/dist/collection/utils/testing/structureChart.js +26 -0
  145. package/dist/collection/utils/testing/timeChart.js +28 -0
  146. package/dist/collection/utils/validate.js +1 -1
  147. package/dist/collection/utils/withComponentStatus.js +137 -12
  148. package/dist/collection/utils/withInheritedProps.js +113 -64
  149. package/dist/collection/utils/withRuleSet.js +10 -7
  150. package/dist/collection/utils/withTranslation.js +3 -3
  151. package/dist/collection/utils/xy/FacetGrid.js +1 -1
  152. package/dist/collection/utils/xy/IsoCurves.js +1 -1
  153. package/dist/collection/utils/xy/NumericScale.js +46 -15
  154. package/dist/collection/utils/xy/PointLabeler.js +2 -2
  155. package/dist/collection/utils/xy/RadiusScale.js +2 -2
  156. package/dist/collection/utils/xy/SeriesPalette.js +3 -3
  157. package/dist/collection/utils/xy/VarianceMeasure.js +22 -4
  158. package/dist/collection/utils/xy/XYFrame.js +4 -4
  159. package/dist/collection/utils/xy/XYLegend.js +5 -7
  160. package/dist/collection/utils/xy/checkXYOverflow.js +32 -0
  161. package/dist/collection/utils/xy/formatXYValue.js +13 -0
  162. package/dist/collection/utils/xy/model/XYChartDataRow.js +0 -0
  163. package/dist/collection/utils/xy/model/XYChartStyle.js +2 -0
  164. package/dist/components/DataFormatDigits.js +1 -1
  165. package/dist/components/DateStringFactory.js +1 -1
  166. package/dist/components/LabelCollisionManager.js +1 -1
  167. package/dist/components/NumericScale.js +1 -1
  168. package/dist/components/Order.js +1 -1
  169. package/dist/components/SVGStyle.js +1 -0
  170. package/dist/components/TableAttribute.js +1 -0
  171. package/dist/components/VarianceMeasure.js +1 -1
  172. package/dist/components/XYChartDataRow.js +1 -1
  173. package/dist/components/bn-asset.js +1 -1
  174. package/dist/components/bn-body2.js +1 -1
  175. package/dist/components/bn-card2.js +1 -1
  176. package/dist/components/bn-chart-bubble.js +1 -1
  177. package/dist/components/bn-chart-bullet.js +1 -1
  178. package/dist/components/bn-chart-scatter.js +1 -1
  179. package/dist/components/bn-chart-structure.js +1 -1
  180. package/dist/components/bn-chart-time.js +1 -1
  181. package/dist/components/bn-component-style.js +1 -1
  182. package/dist/components/bn-context.js +1 -1
  183. package/dist/components/bn-dataset.js +1 -1
  184. package/dist/components/bn-datasource.js +1 -1
  185. package/dist/components/bn-footer2.js +1 -1
  186. package/dist/components/bn-grid.js +1 -1
  187. package/dist/components/bn-image.js +1 -1
  188. package/dist/components/bn-internationalization.js +1 -1
  189. package/dist/components/bn-layout-card.js +1 -1
  190. package/dist/components/bn-layout-page.js +1 -1
  191. package/dist/components/bn-message2.js +1 -1
  192. package/dist/components/bn-page2.js +1 -1
  193. package/dist/components/bn-ruleset.js +1 -1
  194. package/dist/components/bn-scaling-group.js +1 -1
  195. package/dist/components/bn-table.js +1 -1
  196. package/dist/components/bn-template.js +1 -1
  197. package/dist/components/bn-text.js +1 -1
  198. package/dist/components/bn-title2.js +1 -1
  199. package/dist/components/bn-tree.js +1 -1
  200. package/dist/components/checkXYOverflow.js +1 -0
  201. package/dist/components/context-protocol.js +1 -1
  202. package/dist/components/editor-companion.js +1 -1
  203. package/dist/components/emptyState.js +1 -0
  204. package/dist/components/formatter.js +1 -1
  205. package/dist/components/ibcs-chart-bubble2.js +1 -1
  206. package/dist/components/ibcs-chart-bullet2.js +1 -1
  207. package/dist/components/ibcs-chart-scatter2.js +1 -1
  208. package/dist/components/ibcs-chart-structure2.js +1 -1
  209. package/dist/components/ibcs-chart-time2.js +1 -1
  210. package/dist/components/ibcs-table2.js +1 -1
  211. package/dist/components/ibcs-title2.js +1 -1
  212. package/dist/components/layoutTemplate.js +1 -0
  213. package/dist/components/pageFormats.js +1 -0
  214. package/dist/components/parentDimensions.js +1 -0
  215. package/dist/components/queryError.js +1 -0
  216. package/dist/components/relativeVariance.js +1 -0
  217. package/dist/components/sanitizeHtml.js +1 -1
  218. package/dist/components/stackColors.js +1 -1
  219. package/dist/components/stackLayout.js +1 -0
  220. package/dist/components/svg.esm.js +1 -0
  221. package/dist/components/validate.js +1 -1
  222. package/dist/components/withBodyObserver.js +1 -1
  223. package/dist/components/withComponentStatus.js +1 -0
  224. package/dist/components/withComponentStyle.js +1 -1
  225. package/dist/components/withDataset.js +1 -1
  226. package/dist/components/withHasError.js +1 -1
  227. package/dist/components/withRuleSet.js +1 -1
  228. package/dist/components/withScalingGroup.js +1 -1
  229. package/dist/components/withStyled.js +1 -1
  230. package/dist/components/withTranslation.js +1 -1
  231. package/dist/esm/{bn-asset_21.entry.js → bn-asset_28.entry.js} +20948 -6125
  232. package/dist/esm/bn-grid.entry.js +4 -6
  233. package/dist/esm/bn-image.entry.js +3 -5
  234. package/dist/esm/bn-internationalization.entry.js +17 -6
  235. package/dist/esm/bn-ruleset.entry.js +5 -5
  236. package/dist/esm/bn-template-engine.js +1 -1
  237. package/dist/esm/bn-template.entry.js +2 -2
  238. package/dist/esm/bn-text.entry.js +111 -39
  239. package/dist/esm/{context-protocol-B-vdGKeG.js → context-protocol-CdTp19uA.js} +106 -22
  240. package/dist/esm/{diagnostics-CiquIw8B.js → diagnostics-vw6TKMiT.js} +1 -1
  241. package/dist/esm/editor-companion.entry.js +2 -2
  242. package/dist/esm/loader.js +1 -1
  243. package/dist/esm/queryError-ClruFZD_.js +13 -0
  244. package/dist/esm/{scaling-Dggyeqts.js → sanitizeHtml-C5bFtARM.js} +464 -287
  245. package/dist/esm/{withBodyObserver-Cb9ZC5_J.js → withBodyObserver-DD_-r04o.js} +1 -1
  246. package/dist/esm/withHasError-73WV2SP5.js +422 -0
  247. package/dist/esm/{withStyled-DoNsbwS3.js → withStyled-BDEyKd_H.js} +513 -27
  248. package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +8 -4
  249. package/dist/types/components/bn-chart-bubble/ibcs-chart-bubble.d.ts +2 -1
  250. package/dist/types/components/bn-chart-bubble/utils/BubbleChart.d.ts +14 -2
  251. package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +12 -11
  252. package/dist/types/components/bn-chart-bullet/ibcs-chart-bullet.d.ts +2 -1
  253. package/dist/types/components/bn-chart-bullet/utils/BulletChart.d.ts +8 -5
  254. package/dist/types/components/bn-chart-bullet/utils/model/BulletChartStyle.d.ts +2 -0
  255. package/dist/types/components/bn-chart-bullet/utils/model/BulletConfig.d.ts +1 -1
  256. package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +8 -4
  257. package/dist/types/components/bn-chart-scatter/ibcs-chart-scatter.d.ts +2 -1
  258. package/dist/types/components/bn-chart-scatter/utils/ScatterChart.d.ts +11 -1
  259. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +13 -12
  260. package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +8 -1
  261. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +29 -6
  262. package/dist/types/components/bn-chart-structure/utils/elements/StackedBar.d.ts +4 -3
  263. package/dist/types/components/bn-chart-structure/utils/model/DataPoint.d.ts +3 -2
  264. package/dist/types/components/bn-chart-structure/utils/model/StructureChartComponentConfig.d.ts +2 -1
  265. package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +2 -0
  266. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +19 -15
  267. package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +8 -1
  268. package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +63 -5
  269. package/dist/types/components/bn-chart-time/utils/elements/AreaFill.d.ts +1 -1
  270. package/dist/types/components/bn-chart-time/utils/elements/StackedColumn.d.ts +9 -8
  271. package/dist/types/components/bn-chart-time/utils/model/DataPoint.d.ts +3 -2
  272. package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +3 -2
  273. package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +2 -0
  274. package/dist/types/components/bn-context/bn-context.d.ts +15 -3
  275. package/dist/types/components/bn-dataset/bn-dataset.d.ts +41 -20
  276. package/dist/types/components/bn-datasource/bn-datasource.d.ts +34 -18
  277. package/dist/types/components/bn-footer/bn-footer.d.ts +2 -2
  278. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +3 -10
  279. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +13 -6
  280. package/dist/types/components/bn-message/bn-message.d.ts +2 -1
  281. package/dist/types/components/bn-page/bn-page.d.ts +2 -1
  282. package/dist/types/components/bn-page/pageFormats.d.ts +40 -0
  283. package/dist/types/components/bn-scaling-group/bn-scaling-group.d.ts +2 -2
  284. package/dist/types/components/bn-table/bn-table.d.ts +11 -10
  285. package/dist/types/components/bn-table/ibcs-table.d.ts +8 -5
  286. package/dist/types/components/bn-table/utils/Table.d.ts +3 -1
  287. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +2 -2
  288. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +6 -4
  289. package/dist/types/components/bn-table/utils/elements/WaterfallBar.d.ts +1 -1
  290. package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +2 -0
  291. package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +14 -5
  292. package/dist/types/components/bn-table/utils/helper/IntervalColumns.d.ts +2 -2
  293. package/dist/types/components/bn-table/utils/helper/QueryGroup.d.ts +6 -1
  294. package/dist/types/components/bn-table/utils/helper/barColumnGeometry.d.ts +2 -2
  295. package/dist/types/components/bn-table/utils/model/TableAttribute.d.ts +2 -0
  296. package/dist/types/components/bn-table/utils/model/TableComponentConfig.d.ts +2 -1
  297. package/dist/types/components/bn-text/bn-text.d.ts +20 -13
  298. package/dist/types/components/bn-text/utils/template.d.ts +10 -0
  299. package/dist/types/components/bn-title/ibcs-title/ibcs-title.d.ts +1 -0
  300. package/dist/types/components/bn-tree/bn-tree.d.ts +8 -1
  301. package/dist/types/components/bn-tree/utils/EdgeRenderer.d.ts +18 -5
  302. package/dist/types/components/bn-tree/utils/TreeLayout.d.ts +5 -0
  303. package/dist/types/components.d.ts +226 -184
  304. package/dist/types/context/scopedDb.d.ts +20 -0
  305. package/dist/types/stores/componentStyles.d.ts +6 -0
  306. package/dist/types/utils/DateStringFactory.d.ts +3 -2
  307. package/dist/types/utils/autoFit.d.ts +2 -2
  308. package/dist/types/utils/componentRegister.d.ts +21 -5
  309. package/dist/types/utils/constants.d.ts +2 -2
  310. package/dist/types/utils/dataAnalyzer.d.ts +1 -1
  311. package/dist/types/utils/emptyState.d.ts +10 -0
  312. package/dist/types/utils/formatter.d.ts +7 -9
  313. package/dist/types/utils/layoutState/generic.d.ts +1 -1
  314. package/dist/types/utils/layoutState/svgChartElements.d.ts +2 -2
  315. package/dist/types/utils/layoutTemplate.d.ts +16 -0
  316. package/dist/types/utils/model/ChartStyles.d.ts +1 -1
  317. package/dist/types/utils/model/DataQueryResultRow.d.ts +2 -2
  318. package/dist/types/utils/model/Order.d.ts +1 -1
  319. package/dist/types/utils/model/styles/SVGStyle.d.ts +5 -1
  320. package/dist/types/utils/parentDimensions.d.ts +9 -0
  321. package/dist/types/utils/queryError.d.ts +5 -0
  322. package/dist/types/utils/relativeVariance.d.ts +9 -0
  323. package/dist/types/utils/sanitizeHtml.d.ts +2 -2
  324. package/dist/types/utils/scaling.d.ts +1 -1
  325. package/dist/types/utils/stackColors.d.ts +3 -2
  326. package/dist/types/utils/stackLayout.d.ts +49 -0
  327. package/dist/types/utils/testing/fakeGroup.d.ts +8 -0
  328. package/dist/types/utils/testing/mutationObserver.d.ts +5 -0
  329. package/dist/types/utils/testing/structureChart.d.ts +5 -0
  330. package/dist/types/utils/testing/timeChart.d.ts +5 -0
  331. package/dist/types/utils/validate.d.ts +1 -1
  332. package/dist/types/utils/withComponentStatus.d.ts +11 -3
  333. package/dist/types/utils/withInheritedProps.d.ts +42 -15
  334. package/dist/types/utils/withRuleSet.d.ts +2 -1
  335. package/dist/types/utils/withTranslation.d.ts +2 -2
  336. package/dist/types/utils/xy/FacetGrid.d.ts +1 -1
  337. package/dist/types/utils/xy/IsoCurves.d.ts +1 -1
  338. package/dist/types/utils/xy/NumericScale.d.ts +9 -4
  339. package/dist/types/utils/xy/PointLabeler.d.ts +2 -2
  340. package/dist/types/utils/xy/RadiusScale.d.ts +2 -2
  341. package/dist/types/utils/xy/SeriesPalette.d.ts +3 -3
  342. package/dist/types/utils/xy/VarianceMeasure.d.ts +10 -2
  343. package/dist/types/utils/xy/XYFrame.d.ts +4 -1
  344. package/dist/types/utils/xy/XYLegend.d.ts +3 -1
  345. package/dist/types/utils/xy/checkXYOverflow.d.ts +8 -0
  346. package/dist/types/utils/xy/formatXYValue.d.ts +7 -0
  347. package/dist/types/utils/xy/model/AxisConfig.d.ts +1 -1
  348. package/dist/types/utils/xy/model/XYChartStyle.d.ts +2 -0
  349. package/package.json +4 -2
  350. package/readme.md +11 -11
  351. package/dist/bn-template-engine/p-03304284.entry.js +0 -1
  352. package/dist/bn-template-engine/p-0fb02c57.entry.js +0 -1
  353. package/dist/bn-template-engine/p-4419db8f.entry.js +0 -1
  354. package/dist/bn-template-engine/p-45508f1b.entry.js +0 -1
  355. package/dist/bn-template-engine/p-461fdffa.entry.js +0 -1
  356. package/dist/bn-template-engine/p-5d7a3a77.entry.js +0 -1
  357. package/dist/bn-template-engine/p-62cc95b7.entry.js +0 -1
  358. package/dist/bn-template-engine/p-686d8e44.entry.js +0 -1
  359. package/dist/bn-template-engine/p-829212c3.entry.js +0 -1
  360. package/dist/bn-template-engine/p-B5Jd_eCX.js +0 -1
  361. package/dist/bn-template-engine/p-BA48JiHe.js +0 -1
  362. package/dist/bn-template-engine/p-BbmobTg0.js +0 -1
  363. package/dist/bn-template-engine/p-BcaI745G.js +0 -1
  364. package/dist/bn-template-engine/p-CG_Bcm6V.js +0 -1
  365. package/dist/bn-template-engine/p-CWWWM-XC.js +0 -1
  366. package/dist/bn-template-engine/p-CsJ84YRk.js +0 -1
  367. package/dist/bn-template-engine/p-D5e8I9Qe.js +0 -1
  368. package/dist/bn-template-engine/p-DVrDYxlh.js +0 -1
  369. package/dist/bn-template-engine/p-DjPXefnq.js +0 -1
  370. package/dist/bn-template-engine/p-DsTzlzxQ.js +0 -1
  371. package/dist/bn-template-engine/p-DtLI_CzV.js +0 -1
  372. package/dist/bn-template-engine/p-EtT29btN.js +0 -1
  373. package/dist/bn-template-engine/p-TuLpbB5O.js +0 -1
  374. package/dist/bn-template-engine/p-a5867a4c.entry.js +0 -1
  375. package/dist/bn-template-engine/p-b27009eb.entry.js +0 -1
  376. package/dist/bn-template-engine/p-bfa87b07.entry.js +0 -1
  377. package/dist/bn-template-engine/p-ceb80db3.entry.js +0 -1
  378. package/dist/bn-template-engine/p-fcfbb329.entry.js +0 -1
  379. package/dist/bn-template-engine/p-qRZrT-U3.js +0 -1
  380. package/dist/cjs/AxisConfig-DwiNUyYG.js +0 -233
  381. package/dist/cjs/LabelCollisionManager-Bv-xkeXw.js +0 -415
  382. package/dist/cjs/NumericScale-BAyYXpKL.js +0 -107
  383. package/dist/cjs/Order-2wRydarc.js +0 -87
  384. package/dist/cjs/SVGStyle-DoxylrEQ.js +0 -8219
  385. package/dist/cjs/SVGVariancesStyleGroup-CiI4GeWe.js +0 -50
  386. package/dist/cjs/VarianceMeasure-CQlSRzlp.js +0 -372
  387. package/dist/cjs/XYChartDataRow-C2FdL58s.js +0 -829
  388. package/dist/cjs/bn-chart-bubble.cjs.entry.js +0 -792
  389. package/dist/cjs/bn-chart-bullet.cjs.entry.js +0 -805
  390. package/dist/cjs/bn-chart-scatter.cjs.entry.js +0 -678
  391. package/dist/cjs/bn-tree.cjs.entry.js +0 -1042
  392. package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +0 -624
  393. package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +0 -673
  394. package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +0 -667
  395. package/dist/cjs/sanitizeHtml-LuZr1IMd.js +0 -85
  396. package/dist/cjs/svgChartElements-tDA43aYj.js +0 -400
  397. package/dist/cjs/withHasError-BdDmiOXM.js +0 -258
  398. package/dist/cjs/withScalingGroup-CFIc5-6s.js +0 -73
  399. package/dist/components/autoFit.js +0 -1
  400. package/dist/components/main.js +0 -1
  401. package/dist/components/utils.js +0 -1
  402. package/dist/esm/AxisConfig-KqzWQbML.js +0 -224
  403. package/dist/esm/LabelCollisionManager-585bQMtP.js +0 -407
  404. package/dist/esm/NumericScale-DsTzlzxQ.js +0 -105
  405. package/dist/esm/Order-DZVWjEL_.js +0 -83
  406. package/dist/esm/SVGStyle-OrPkzjcb.js +0 -8209
  407. package/dist/esm/SVGVariancesStyleGroup-DO5QJfRQ.js +0 -48
  408. package/dist/esm/VarianceMeasure-DDjChp8C.js +0 -364
  409. package/dist/esm/XYChartDataRow-Dn83Tqh9.js +0 -820
  410. package/dist/esm/bn-chart-bubble.entry.js +0 -790
  411. package/dist/esm/bn-chart-bullet.entry.js +0 -803
  412. package/dist/esm/bn-chart-scatter.entry.js +0 -676
  413. package/dist/esm/bn-tree.entry.js +0 -1040
  414. package/dist/esm/ibcs-chart-bubble.entry.js +0 -622
  415. package/dist/esm/ibcs-chart-bullet.entry.js +0 -671
  416. package/dist/esm/ibcs-chart-scatter.entry.js +0 -665
  417. package/dist/esm/sanitizeHtml-BA48JiHe.js +0 -83
  418. package/dist/esm/svgChartElements-B3YClivG.js +0 -395
  419. package/dist/esm/withHasError-Bh1Viz52.js +0 -254
  420. package/dist/esm/withScalingGroup-DNBSqRC0.js +0 -71
@@ -20,6 +20,20 @@ export type AlaSQLDatabase = InstanceType<typeof alasql.Database>;
20
20
  * alasql doesn't have to ingest a fresh table on every call.
21
21
  */
22
22
  export declare function buildFromExpr(tableName: string, filter?: string | null): string;
23
+ /**
24
+ * True when `name` is registered as a table or a view. A query on a name that
25
+ * is not registered yet means "no data so far". A failing query on a
26
+ * registered name is an error.
27
+ */
28
+ export declare function isRegistered(db: AlaSQLDatabase, name: string): boolean;
29
+ /** {@link buildFromExpr} for a registered source, `""` otherwise. The query helpers read `""` as "no data". */
30
+ export declare function sourceExpr(db: AlaSQLDatabase, tableName: string, filter?: string | null): string;
31
+ /**
32
+ * True when alasql would find a double backtick in `sql`: it runs the text
33
+ * between double backticks as JavaScript. alasql strips comments before it
34
+ * reads the text, so two backticks with only a comment between them count too.
35
+ */
36
+ export declare function hasInlineJs(sql?: string | null): boolean;
23
37
  /** Pub/sub-enabled wrapper around an isolated alasql database. */
24
38
  export interface ScopedDb {
25
39
  /** The underlying alasql database. Use it directly for `db.exec(...)` queries. */
@@ -32,6 +46,12 @@ export interface ScopedDb {
32
46
  hasTable(name: string): boolean;
33
47
  /** True if a view with this name exists in the database. */
34
48
  hasView(name: string): boolean;
49
+ /**
50
+ * Announces a producer of `name` (a dataset or a datasource element). `onShared`
51
+ * tells every producer of the name whether another one holds it too: they would
52
+ * overwrite each other's data. Returns the release function.
53
+ */
54
+ claim(name: string, onShared: (shared: boolean) => void): () => void;
35
55
  }
36
56
  /** Creates a fresh isolated database with its own subscriber map. */
37
57
  export declare function createScopedDb(): ScopedDb;
@@ -123,3 +123,9 @@ export interface XYChartStyle {
123
123
  };
124
124
  }
125
125
  export declare const SYSTEM_STYLE_DEFAULTS: Style;
126
+ /**
127
+ * The keys of a style body that no component reads, as paths
128
+ * (e.g. `bn-chart-time.scaleFactors.labelToColum`). Such a key is ignored
129
+ * when the style is applied, so a typo would otherwise go unnoticed.
130
+ */
131
+ export declare function unknownStyleKeys(style: unknown): string[];
@@ -98,9 +98,10 @@ export declare class DateStringFactory {
98
98
  * @param {string|Date} from start date
99
99
  * @param {string|Date} to end date
100
100
  * @param dateInterval
101
- * @param spanLimit
102
101
  */
103
- datesBetween(from: DateTime, to: DateTime, dateInterval: DateDistance, spanLimit: number): DateTime[];
102
+ datesBetween(from: DateTime, to: DateTime, dateInterval: DateDistance): DateTime[];
103
+ /** Number of `dateInterval` periods from `from` to `to`, both included. */
104
+ countBetween(from: DateTime, to: DateTime, dateInterval: DateDistance): number;
104
105
  /**
105
106
  * Produces an IBCS date-link string combining date formatting with link notation.
106
107
  *
@@ -30,7 +30,7 @@ export interface UnitExtentInputs {
30
30
  }
31
31
  /**
32
32
  * Total bar extent (in data units) that scales linearly with pixelPerUnit.
33
- * Counts BOTH sides of the axis — a chart with values -13..+12 spans 25
33
+ * Counts BOTH sides of the axis - a chart with values -13..+12 spans 25
34
34
  * units, not 12 (fitting only the positive side is how charts used to
35
35
  * overshoot their container).
36
36
  */
@@ -70,7 +70,7 @@ export interface AutoFitStepInputs {
70
70
  /**
71
71
  * Solves the affine size model for the target and returns corrected scale
72
72
  * values (floored at {@link MIN_PIXEL_SCALE}). Returns an empty object when
73
- * nothing scales with the solved values (both extents 0) — callers fall back
73
+ * nothing scales with the solved values (both extents 0) - callers fall back
74
74
  * to a ratio heuristic. Only the quantities whose extent is > 0 are returned.
75
75
  */
76
76
  export declare function solveAutoFitStep(inputs: AutoFitStepInputs): {
@@ -4,20 +4,31 @@ export declare enum ComponentStatus {
4
4
  SUCCESSFUL = 1,
5
5
  ERROR = 2
6
6
  }
7
+ /** A component that threw in `render` or in a lifecycle hook. */
8
+ export interface ComponentFailure {
9
+ tag: string;
10
+ id: string;
11
+ message: string;
12
+ }
7
13
  /**
8
14
  * Singleton registry that tracks the render status of all bn-* component instances.
9
15
  *
10
16
  * Each component registers itself via {@link withComponentStatus} and reports
11
17
  * `RUNNING` / `SUCCESSFUL` / `ERROR` transitions. After 500 ms of inactivity
12
18
  * (no status updates), the aggregate result is written to
13
- * `window.componentRegisterIsRenderedResult` as a boolean. External tools
14
- * (e.g. headless screenshot renderers) poll this value to detect when
19
+ * `window.componentRegisterIsRenderedResult` as a boolean, and the failed
20
+ * components to `window.componentRegisterFailures`. External tools
21
+ * (e.g. headless screenshot renderers) poll these values to detect when
15
22
  * the entire page has finished rendering.
16
23
  *
24
+ * A reader sees one of three states: the flag is `true` (all rendered), the
25
+ * failures list is not empty (settled, but a component failed), or neither
26
+ * (still working).
27
+ *
17
28
  * The 500 ms debounce prevents premature "rendered" signals during rapid
18
29
  * successive re-renders.
19
30
  *
20
- * Status counts are maintained incrementally — `updateStatus` adjusts running
31
+ * Status counts are maintained incrementally - `updateStatus` adjusts running
21
32
  * counters instead of iterating all entries, making it O(1) per update.
22
33
  */
23
34
  export declare namespace ComponentRegister {
@@ -25,10 +36,15 @@ export declare namespace ComponentRegister {
25
36
  * Records a status change for the component identified by `uuid` and
26
37
  * resets the 500 ms debounce timer. When the timer fires, the aggregate
27
38
  * "all rendered" boolean is published to `window.componentRegisterIsRenderedResult`.
39
+ * `failure` describes an `ERROR` status.
28
40
  */
29
- const updateStatus: (uuid: string, status: ComponentStatus) => void;
30
- /** Returns `true` when no components are currently in `RUNNING` state. */
41
+ const updateStatus: (uuid: string, status: ComponentStatus, failure?: ComponentFailure) => void;
42
+ /** Forgets a component that left the document. */
43
+ const remove: (uuid: string) => void;
44
+ /** Returns `true` when no component is in `RUNNING` or `ERROR` state. */
31
45
  const componentRegisterIsRendered: () => boolean;
46
+ /** The failed components. Empty while a component is still running: only a settled page has a final list. */
47
+ const componentRegisterFailures: () => ComponentFailure[];
32
48
  /** Returns a summary count of components in each status category. */
33
49
  const componentRegisterStatus: () => {
34
50
  running: number;
@@ -3,7 +3,7 @@ export declare enum I18nMode {
3
3
  ALL = "all",
4
4
  META = "meta"
5
5
  }
6
- /** Unit type of the measured values — affects default formatting and SI prefix behavior. */
6
+ /** Unit type of the measured values - affects default formatting and SI prefix behavior. */
7
7
  export declare enum MeasureType {
8
8
  CURRENCY = "currency",
9
9
  VOLUME = "volume"
@@ -54,7 +54,7 @@ export declare enum DataFormat {
54
54
  * - LIST: no aggregation, rows displayed as-is
55
55
  * - SUM: simple sum per group with a grand total row
56
56
  * - SUMNOTOTAL: sum per group without a grand total
57
- * - OPT: operation-aware aggregation — rows with operation="-" subtract from the group sum
57
+ * - OPT: operation-aware aggregation - rows with operation="-" subtract from the group sum
58
58
  * - OPTNOTOTAL: operation-aware aggregation without a grand total
59
59
  */
60
60
  export declare enum TableType {
@@ -49,7 +49,7 @@ export declare class DataAnalyzer {
49
49
  * are considered; variance columns are excluded.
50
50
  * - `null` with data: defaults to GREATEST auto-detection
51
51
  */
52
- static calculateMeasureScale(db: AlaSQLDatabase, fromExpr: string, scenarios: string[], mode: string | null): SiPrefix;
52
+ static calculateMeasureScale(db: AlaSQLDatabase, fromExpr: string, scenarios: string[], mode: string | null, onError?: (e: unknown) => void): SiPrefix;
53
53
  /**
54
54
  * Maps an absolute numeric value to the best-fitting SI prefix based on
55
55
  * its decimal magnitude. Values in (0.001, 1000) keep the identity prefix.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Mirrors the inner no-data state on the outer component's host.
3
+ *
4
+ * Only the inner `ibcs-*` element knows it has no rows; it sets `no-data` on
5
+ * its own host. The outer host sits in a layout slot wrapper as an
6
+ * inline-block, so it must fill that wrapper too before the empty-state box
7
+ * can fill the cell (see styles/_empty-state.scss). Call from the outer
8
+ * component's componentDidRender, which runs after the inners have rendered.
9
+ */
10
+ export declare function syncEmptyState(host: HTMLElement, innerTag: string): void;
@@ -3,20 +3,18 @@ import { BinoChartSyles } from "./model";
3
3
  * Number and label formatting utilities following ISO 80000-1 conventions.
4
4
  */
5
5
  export declare class Formatter {
6
- /** Replacement character for the thousands group separator (default de-DE uses period). */
7
- private static tsdDelimiter;
8
- /** Replacement character for the decimal separator (default de-DE uses comma). */
9
- private static postfixSeperator;
6
+ /** One formatter per locale, style and digits: building one per cell is slow. */
7
+ private static formats;
10
8
  /**
11
- * Formats a number for display following ISO 80000-1 conventions.
9
+ * Formats a number for display in the given locale.
12
10
  *
13
- * Pipeline: divide by scale factor -> format via de-DE locale -> strip whitespace
14
- * before `%` -> replace group separator with `postfixSeperator` -> replace decimal
15
- * separator with `tsdDelimiter`.
11
+ * Pipeline: divide by scale factor -> format via `Intl.NumberFormat` for the locale ->
12
+ * strip whitespace before `%`. A value that rounds to zero is never printed with a minus sign.
16
13
  *
17
14
  * @param scale Divisor applied before formatting (e.g. 1000 for "k" SI prefix).
15
+ * @param locale BCP 47 tag (e.g. `de`, `en`, `de-CH`). An unknown or malformed tag falls back to `de-DE`.
18
16
  */
19
- static number(value: number, type?: string, digits?: number, digitsMin?: number, scale?: number): string;
17
+ static number(value: number, type?: string, digits?: number, digitsMin?: number, scale?: number, locale?: string): string;
20
18
  /**
21
19
  * Translates a technical scenario identifier into a human-readable IBCS label.
22
20
  *
@@ -8,7 +8,7 @@ import { ComponentLayoutState } from "./types";
8
8
  export declare function readFontSizePx(el: HTMLElement): number;
9
9
  /**
10
10
  * Layout state for a visual component without its own `getLayoutState()`:
11
- * host box, identity, em context and diagnostics — no regions or elements.
11
+ * host box, identity, em context and diagnostics - no regions or elements.
12
12
  * The caller (`bn-context`) overwrites `id` with its document-order identity.
13
13
  */
14
14
  export declare function buildGenericState(el: HTMLElement, origins: Origins): ComponentLayoutState;
@@ -18,7 +18,7 @@ export interface ChartFacadeLayout {
18
18
  }
19
19
  /**
20
20
  * Walks a chart facade's inner segment components (one per base/variance
21
- * segment, paired by DOM order — CSS only reverses the visual order):
21
+ * segment, paired by DOM order - CSS only reverses the visual order):
22
22
  * one `canvas:<segment>` region per inner `svg#drawCanvas`, plus the
23
23
  * per-element breakdown and the measure-scale footer at full detail.
24
24
  */
@@ -31,7 +31,7 @@ export declare function collectChartFacadeLayout(host: HTMLElement, innerTag: st
31
31
  export declare function collectXYElements(svgRoot: Element, origins: Origins): LayoutElement[];
32
32
  /**
33
33
  * Complete layout state of a single-inner XY/bullet chart facade: host box,
34
- * one `canvas` region, point count, diagnostics — and the tag-classified
34
+ * one `canvas` region, point count, diagnostics - and the tag-classified
35
35
  * element list at full detail.
36
36
  */
37
37
  export declare function collectXYFacadeState(host: HTMLElement, innerTag: string, title: string | undefined, em: EmContext, origins: Origins, detail: "summary" | "full"): ComponentLayoutState;
@@ -0,0 +1,16 @@
1
+ export declare const CUSTOM_TEMPLATE = "custom-template";
2
+ /** The rows of a template, each as the list of its cell names. Empty for text that holds no quoted row. */
3
+ export declare function templateRows(areas: string | null | undefined): string[][];
4
+ /** True for a built-in template name and for `custom-template`. Any other layout, such as `full`, is a single cell. */
5
+ export declare function isTemplateLayout(layout: string): boolean;
6
+ /**
7
+ * The `grid-template-areas` of a layout. A custom template without a quoted
8
+ * row cannot be laid out and is drawn as a single cell.
9
+ */
10
+ export declare function templateAreas(layout: string, customTemplate: string | null | undefined): string;
11
+ /** One equal column track per cell of the first row. */
12
+ export declare function templateColumns(areas: string): string;
13
+ /** The area names of a template, in order of first appearance. */
14
+ export declare function templateSlotNames(areas: string | null | undefined): string[];
15
+ /** Why a custom template cannot be used as it is written, or `undefined` when it is fine. */
16
+ export declare function templateProblem(customTemplate: string | null | undefined): string | undefined;
@@ -42,7 +42,7 @@ export interface SVGVariancesStyleGroup {
42
42
  neu: SVGStyle;
43
43
  [index: string]: SVGStyle;
44
44
  }
45
- /** SVG polygon fill pattern definition — used for forecast (FC) hatching with foreground/background layers. */
45
+ /** SVG polygon fill pattern definition - used for forecast (FC) hatching with foreground/background layers. */
46
46
  export interface SVGPolgonPattern {
47
47
  foreground: string;
48
48
  background: string;
@@ -17,11 +17,11 @@ export interface DataQueryResultRow {
17
17
  subCategory?: string;
18
18
  rowNr?: number;
19
19
  rowGroupIndex?: number;
20
- /** `"+"` or `"-"` — determines if values add to or subtract from group aggregations. */
20
+ /** `"+"` or `"-"` - determines if values add to or subtract from group aggregations. */
21
21
  operation?: string;
22
22
  [key: string]: string | number | null | undefined;
23
23
  }
24
- /** Category count per row group — used for pagination and rendering row group headers. */
24
+ /** Category count per row group - used for pagination and rendering row group headers. */
25
25
  export interface DataQueryMetaRow {
26
26
  totalRowCnt: number;
27
27
  rowGroup?: string;
@@ -4,7 +4,7 @@ export declare enum OrderDirection {
4
4
  ASC = "asc",
5
5
  DESC = "desc"
6
6
  }
7
- /** Valid columns for ORDER BY in AlaSQL queries — includes hierarchy dimensions and all 16 scenario slots. */
7
+ /** Valid columns for ORDER BY in AlaSQL queries - includes hierarchy dimensions and all 16 scenario slots. */
8
8
  export declare enum OrderColumn {
9
9
  ROWGROUP = "rowGroup",
10
10
  ROWGROUPINDEX = "rowGroupIndex",
@@ -1,9 +1,13 @@
1
1
  import { IAdapter } from "../../helper/IAdapter";
2
+ /** The accepted `fillpattern` values. */
3
+ export type FillPattern = "solid" | "hatched" | "outlined";
4
+ /** Maps a `fillpattern` of the style JSON to an accepted value: `fc` is the old name of `hatched`, anything else counts as not set. */
5
+ export declare function normalizeFillPattern(value: unknown): FillPattern | undefined;
2
6
  export declare class SVGStyle {
3
7
  stroke: string;
4
8
  fill: string;
5
9
  width: number;
6
- fillpattern: string | undefined;
10
+ fillpattern: FillPattern | undefined;
7
11
  dasharray: string | undefined;
8
12
  constructor(stroke?: string, fill?: string, width?: number);
9
13
  }
@@ -16,3 +16,12 @@ export interface ParentDimensions {
16
16
  * find the actual slot wrapper that determines layout.
17
17
  */
18
18
  export declare function getParentDimensions(element: HTMLElement, debug?: boolean): ParentDimensions;
19
+ /**
20
+ * How many px of an element are cut off at the bottom, given the height of its content
21
+ * (both in layout px). Only an element that hides its overflow cuts something off: the
22
+ * element itself or one of its visual ancestors. 0 when there is none, the page then
23
+ * grows or scrolls and nothing is lost. Unlike the height of getParentDimensions this is
24
+ * no estimate, so it suits a warning for content that does not adapt its height to the
25
+ * space it has.
26
+ */
27
+ export declare function getClippedHeight(element: HTMLElement, contentHeight: number): number;
@@ -0,0 +1,5 @@
1
+ import { ErrorDispatcher } from "./withHasError";
2
+ /** The text of a caught exception. */
3
+ export declare const errorText: (e: unknown) => string;
4
+ /** Sets the `ERR_sql` item of a visual from the text of a failed query, or removes it when there is none. */
5
+ export declare const reportQueryError: (errors: ErrorDispatcher | undefined, message: string | undefined) => void;
@@ -0,0 +1,9 @@
1
+ /** Text shown for a relative variance whose reference is 0. */
2
+ export declare const NOT_AVAILABLE = "n/a";
3
+ /**
4
+ * Relative variance (a - b) / |b|, from the difference a - b and the reference b.
5
+ * undefined: the reference is 0, callers show NOT_AVAILABLE and no bar.
6
+ * The reference counts as 0 also when it is 0 up to float rounding: a ratio above 1e9.
7
+ * NaN: an input is NaN, missing data stays missing.
8
+ */
9
+ export declare function relativeVariance(difference: number, reference: number): number | undefined;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Strips everything but the allowed tags and attributes from an HTML string.
3
- * Disallowed elements are replaced by their text content; event handlers,
4
- * unknown attributes and `javascript:` URLs are removed.
3
+ * The string is parsed into a separate inert document, so nothing in it loads
4
+ * or runs. Disallowed elements are removed together with their content.
5
5
  */
6
6
  export declare function sanitizeHtml(html: string): string;
@@ -68,7 +68,7 @@ export declare function resolveScalingValue(raw: string | number | null | undefi
68
68
  /**
69
69
  * Formats a positive value with the same SI suffixes the parser accepts,
70
70
  * rounded to 3 significant digits (`250000` -> `"250k"`). Values just below
71
- * a suffix boundary may round up across it (`999999` -> `"1000k"`) — fine
71
+ * a suffix boundary may round up across it (`999999` -> `"1000k"`) - fine
72
72
  * for warning messages, which is all this is used for.
73
73
  */
74
74
  export declare function formatScalingValue(value: number): string;
@@ -15,6 +15,7 @@ export declare function getStackFill(index: number): string;
15
15
  export declare function getStackStroke(index: number): string;
16
16
  /**
17
17
  * Returns black or white text color for readable contrast against the given
18
- * hex background, using the W3C relative luminance formula.
18
+ * background, using the W3C relative luminance formula. A color that cannot
19
+ * be read (a name, a pattern) gets black text.
19
20
  */
20
- export declare function getContrastTextColor(hexFill: string): string;
21
+ export declare function getContrastTextColor(fill: string): string;
@@ -0,0 +1,49 @@
1
+ /** One segment of a laid-out stack, as signed distance from the axis. */
2
+ export interface StackSegment {
3
+ /** Edge nearer the axis. */
4
+ start: number;
5
+ /** Outer edge: above `start` for a positive value, below it for a negative one. */
6
+ end: number;
7
+ /** Signed share of the sum of absolute values of the stack. */
8
+ share: number;
9
+ }
10
+ /** A stack laid out on both sides of the axis. */
11
+ export interface StackLayout {
12
+ /** In the order of the input values. */
13
+ segments: StackSegment[];
14
+ /** Extent of the positive side, >= 0. */
15
+ positive: number;
16
+ /** Extent of the negative side, >= 0. */
17
+ negative: number;
18
+ /** Signed sum of the values. */
19
+ total: number;
20
+ }
21
+ /**
22
+ * Stacks positive values outward on the positive side of the axis and negative values
23
+ * outward on the other side. A value that is not finite takes no room. A zero has no
24
+ * length and sits on the positive side; pass -0 to put it on the negative side.
25
+ *
26
+ * With `relativeSpan` > 0 the stack is a 100 % stack: lengths are scaled so that both
27
+ * sides together are `relativeSpan` long. `total` is always the sum of the raw values.
28
+ */
29
+ export declare function layoutStack(values: number[], relativeSpan?: number): StackLayout;
30
+ /** Largest positive and negative side and the highest and lowest total of several stacks. */
31
+ export declare function stackExtent(layouts: StackLayout[]): {
32
+ positive: number;
33
+ negative: number;
34
+ maxTotal: number;
35
+ minTotal: number;
36
+ };
37
+ /**
38
+ * Where the category label of one row goes. `layouts` are the stacks of the row, the
39
+ * front one last. The label sits opposite the total of the front stack (as for a plain
40
+ * bar: opposite its value), `clearance` away from the axis, behind the segments there.
41
+ *
42
+ * A stack behind the front one can have its total on the other side than the front
43
+ * stack, which is the side of the category label. `totalLabelRoom` gives the room the
44
+ * total label of a stack takes behind its segments, in the units of the layout.
45
+ */
46
+ export declare function stackLabelSide(layouts: StackLayout[], totalLabelRoom?: (layout: StackLayout) => number): {
47
+ flipped: boolean;
48
+ clearance: number;
49
+ };
@@ -0,0 +1,8 @@
1
+ /** Stand-in for a svg.js group: records the calls on itself, every group() gives a new stand-in. */
2
+ export interface FakeGroup {
3
+ calls: [string, unknown[]][];
4
+ groups: FakeGroup[];
5
+ node: unknown;
6
+ }
7
+ export declare const fakeGroup: () => FakeGroup;
8
+ export declare const callNames: (group: FakeGroup) => string[];
@@ -0,0 +1,5 @@
1
+ export declare const installMutationObserverFake: () => void;
2
+ /** Calls every observer that watches `attributeName` on `target`. */
3
+ export declare const notifyAttributeChange: (target: Node, attributeName: string) => void;
4
+ /** Calls every observer that watches the child list of `target`, or of an ancestor with its subtree. */
5
+ export declare const notifyChildListChange: (target: Node) => void;
@@ -0,0 +1,5 @@
1
+ import { StructureChart } from "../../components/bn-chart-structure/utils/StructureChart";
2
+ /** One data row of a structure chart spec. */
3
+ export declare function structureRow(category: string, index: number, values: Record<string, unknown>): Record<string, unknown>;
4
+ /** Builds a StructureChart over `rows` in a scoped database of its own, for specs. */
5
+ export declare function buildStructureChart(rows: Record<string, unknown>[], config: Record<string, unknown>): StructureChart;
@@ -0,0 +1,5 @@
1
+ import { TimeChart } from "../../components/bn-chart-time/utils/TimeChart";
2
+ /** One data row of a time chart spec; `date` is an ISO string or epoch millis. */
3
+ export declare function timeRow(date: string | number, values: Record<string, unknown>): Record<string, unknown>;
4
+ /** Builds a TimeChart over `rows` in a scoped database of its own, for specs. */
5
+ export declare function buildTimeChart(rows: Record<string, unknown>[], config: Record<string, unknown>): TimeChart;
@@ -69,6 +69,6 @@ export declare function validateTreeEdgesJson(value: string): string[];
69
69
  /**
70
70
  * Checks whether a value is a valid XY chart measure token: a scenario
71
71
  * column (`ac1`…`pl4`) or a variance token (`d…`/`dr…`, sentiment suffix
72
- * optional — spec §4.4 of the scatter/bubble charts).
72
+ * optional - spec §4.4 of the scatter/bubble charts).
73
73
  */
74
74
  export declare function isValidMeasureToken(value: string): boolean;
@@ -2,8 +2,16 @@
2
2
  * Mixin that tracks a component's render lifecycle in the global {@link ComponentRegister}.
3
3
  *
4
4
  * Assigns a stable UUID to the component instance and reports status transitions:
5
- * - `RUNNING` on `connectedCallback` and `componentWillRender`
6
- * - `SUCCESSFUL` on `componentDidRender`
5
+ * - `RUNNING` from `connectedCallback` (only before the first render: a re-attach does not render again)
6
+ * or from the first hook of a render cycle, until `componentDidRender`
7
+ * - `ERROR` when `render`, a lifecycle hook or `connectedCallback` threw. Stencil catches such
8
+ * an exception and goes on, so without this the component would count as rendered.
9
+ * - `SUCCESSFUL` otherwise
10
+ *
11
+ * A component that leaves the document is removed from the register.
12
+ *
13
+ * Returns a hold function: the component stays `RUNNING` until the promise
14
+ * passed to it has settled, whatever the outcome.
7
15
  *
8
16
  * External tools (e.g. screenshot/PDF renderers) poll
9
17
  * `window.componentRegisterIsRenderedResult` to determine when all components
@@ -11,5 +19,5 @@
11
19
  *
12
20
  * @param component - The Stencil component instance
13
21
  */
14
- declare const withComponentStatus: (component: any) => void;
22
+ declare const withComponentStatus: (component: any) => (work: Promise<unknown>) => void;
15
23
  export default withComponentStatus;
@@ -1,3 +1,4 @@
1
+ import { ErrorDispatcher } from "./withHasError";
1
2
  /**
2
3
  * Reserved prop values that activate inheritance from ancestor layout
3
4
  * components (`bn-layout-card` or `bn-layout-page`).
@@ -9,49 +10,75 @@ export interface PropMapping {
9
10
  propName: string;
10
11
  ancestorAttr: string;
11
12
  }
13
+ /** What a prop resolves to. */
14
+ export interface InheritedProp {
15
+ /** The ancestor's value, the prop's own value, or the fallback of an unresolved keyword. */
16
+ value: string;
17
+ /** `value` was taken from an ancestor. */
18
+ inherited: boolean;
19
+ /** The prop is an inheritance keyword and no ancestor sets the field. */
20
+ unresolved: boolean;
21
+ }
12
22
  /**
13
23
  * Resolver function returned by the mixin.
14
- * Returns the resolved ancestor value, or `undefined` when the prop is not
15
- * an inheritance keyword (meaning the caller should use its normal logic).
24
+ * `fallback` is what an unresolved keyword stands for. Without it the value is
25
+ * `undefined`, as if the prop was not set.
16
26
  */
17
- export type InheritedResolver = (propName: string, currentValue: string) => string | undefined;
27
+ export type InheritedResolver = (propName: string, currentValue: string, fallback?: string) => InheritedProp;
18
28
  /**
19
29
  * Returns `true` when `value` is one of the recognised inheritance keywords.
20
30
  */
21
31
  export declare function isInheritedValue(value: string): boolean;
22
32
  /**
23
- * Walks up the DOM tree (crossing shadow boundaries) to find the nearest
24
- * ancestor layout component.
33
+ * Walks up the DOM tree (crossing shadow boundaries) and collects the layout
34
+ * ancestors an inheritance keyword can take its value from, nearest first.
25
35
  *
26
- * - `"inherited-closest"` matches the first `bn-layout-card` or `bn-layout-page`.
27
- * - `"inherited-page"` skips cards and matches only `bn-layout-page`.
36
+ * - `"inherited-closest"`: every `bn-layout-card` up to and including the
37
+ * first `bn-layout-page`.
38
+ * - `"inherited-page"`: that `bn-layout-page` only.
28
39
  *
29
40
  * Uses the same traversal pattern as `findContextElement` in
30
41
  * `context-protocol.ts`.
31
42
  */
32
- export declare function findAncestor(element: HTMLElement, mode: string): HTMLElement | undefined;
43
+ export declare function findLayoutAncestors(element: HTMLElement, mode: string): HTMLElement[];
44
+ /**
45
+ * Reads `attr` from the nearest of `ancestors` that sets it.
46
+ *
47
+ * An ancestor whose attribute is missing, blank or an inheritance keyword it
48
+ * cannot resolve does not set it and is skipped, so a keyword is never handed
49
+ * down as a value. A card with `inherited-page` stands for the value of the
50
+ * page when the page has one: the cards between the two are not asked.
51
+ */
52
+ export declare function readInherited(ancestors: HTMLElement[], attr: string): string | undefined;
33
53
  /**
34
54
  * Walks up the DOM tree (crossing shadow boundaries) to find the nearest
35
55
  * ancestor element that carries the given attribute, whatever its tag.
36
56
  * Used for attributes that inherit by default (e.g. `i18n-namespace`), where
37
- * any container — layout card, layout page, tree, grid, or the `bn-context`
38
- * itself — can act as the provider.
57
+ * any container - layout card, layout page, tree, grid, or the `bn-context`
58
+ * itself - can act as the provider.
39
59
  */
40
60
  export declare function findAncestorWithAttr(element: HTMLElement, attr: string): HTMLElement | undefined;
41
61
  /**
42
62
  * Mixin that enables property inheritance from ancestor layout components.
43
63
  *
44
64
  * When a component sets a prop to `"inherited-closest"` or `"inherited-page"`,
45
- * this mixin resolves the actual value by walking up the DOM to find the
46
- * nearest `bn-layout-card` / `bn-layout-page` and reading the corresponding
47
- * HTML attribute. A `MutationObserver` watches the ancestor for attribute
48
- * changes, triggering a re-render when inherited values update.
65
+ * this mixin resolves the actual value by walking up the DOM and reading the
66
+ * corresponding HTML attribute from the nearest `bn-layout-card` /
67
+ * `bn-layout-page` that sets it. A `MutationObserver` watches every ancestor
68
+ * on that path for attribute changes, triggering a re-render when inherited
69
+ * values update.
49
70
  *
50
71
  * Follows the same decorator-style pattern as `withComponentStyle`.
51
72
  *
73
+ * A keyword that no ancestor satisfies is never used as a value: the resolver
74
+ * returns the fallback instead and, when `errors` is given, keeps a
75
+ * `WARN_inherited_<prop>` warning in it for as long as the keyword is
76
+ * unresolved.
77
+ *
52
78
  * @param component The Stencil component instance
53
79
  * @param mappings Array of prop-to-attribute mappings
80
+ * @param errors The component's error list, to report unresolved keywords
54
81
  * @returns A resolver function used inside `prepare*()` methods
55
82
  */
56
- declare const withInheritedProps: (component: any, mappings: PropMapping[]) => InheritedResolver;
83
+ declare const withInheritedProps: (component: any, mappings: PropMapping[], errors?: ErrorDispatcher) => InheritedResolver;
57
84
  export default withInheritedProps;
@@ -15,7 +15,8 @@ import { RuleSetConfig } from "../stores/ruleSets";
15
15
  * The `ruleset` attribute supports the `"inherited-closest"` /
16
16
  * `"inherited-page"` keywords from `withInheritedProps`: the actual name is
17
17
  * then read from the `ruleset` attribute of the nearest ancestor
18
- * `bn-layout-card` / `bn-layout-page`, which is observed for changes.
18
+ * `bn-layout-card` / `bn-layout-page` that sets one. Every ancestor on that
19
+ * path is observed for changes.
19
20
  *
20
21
  * @param component - The Stencil component instance
21
22
  * @returns A function returning the merged {@link RuleSetConfig}
@@ -8,8 +8,8 @@
8
8
  * 1. The host element's own `i18n-namespace` attribute (the deprecated
9
9
  * `namespace` attribute is honored as a fallback).
10
10
  * 2. Otherwise the `i18n-namespace` attribute of the nearest ancestor that
11
- * carries one — a layout card, layout page, tree, grid, or the
12
- * `bn-context` itself — crossing shadow boundaries. The resolved ancestor
11
+ * carries one - a layout card, layout page, tree, grid, or the
12
+ * `bn-context` itself - crossing shadow boundaries. The resolved ancestor
13
13
  * is observed so attribute changes re-render the component.
14
14
  * 3. Otherwise the built-in `_system` namespace.
15
15
  *
@@ -8,7 +8,7 @@ export interface Rect {
8
8
  /**
9
9
  * Small-multiple panel layout: divides a drawing area into equal panels,
10
10
  * wrapping row-major at `columns`. Axis tick labels render on the outer
11
- * edges only (IBCS 10F/10G style) — the `isOuterLeft`/`isOuterBottom`
11
+ * edges only (IBCS 10F/10G style) - the `isOuterLeft`/`isOuterBottom`
12
12
  * flags tell the renderer which panels carry them.
13
13
  */
14
14
  export declare class FacetGrid {
@@ -19,7 +19,7 @@ export declare class IsoCurves {
19
19
  /** Iso-curves are only defined on strictly positive domains. */
20
20
  isPositiveDomain(): boolean;
21
21
  /**
22
- * Picks 2–4 nice k values from the 1-2-5 ladder spanning the central
22
+ * Picks 2-4 nice k values from the 1-2-5 ladder spanning the central
23
23
  * product range of the data (products = `x·y` per point).
24
24
  */
25
25
  static autoK(products: number[]): number[];