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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (449) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-132ad556.entry.js +1 -0
  3. package/dist/bn-template-engine/p-17d71782.entry.js +1 -0
  4. package/dist/bn-template-engine/p-40ba7f43.entry.js +1 -0
  5. package/dist/bn-template-engine/p-467871f3.entry.js +1 -0
  6. package/dist/bn-template-engine/p-64803a42.entry.js +1 -0
  7. package/dist/bn-template-engine/p-B8AjeKja.js +1 -0
  8. package/dist/bn-template-engine/p-CCZcKl0Q.js +2 -0
  9. package/dist/bn-template-engine/p-CrT83eO4.js +1 -0
  10. package/dist/bn-template-engine/p-D_DzKxRV.js +1 -0
  11. package/dist/bn-template-engine/p-Z2rUaSh_.js +1 -0
  12. package/dist/bn-template-engine/p-c41c0a1b.entry.js +1 -0
  13. package/dist/bn-template-engine/p-yc69rwuH.js +1 -0
  14. package/dist/cjs/{bn-asset_28.cjs.entry.js → bn-annotation-layer_30.cjs.entry.js} +27566 -26774
  15. package/dist/cjs/bn-grid.cjs.entry.js +11 -63
  16. package/dist/cjs/bn-image.cjs.entry.js +5 -6
  17. package/dist/cjs/bn-internationalization.cjs.entry.js +11 -7
  18. package/dist/cjs/bn-ruleset.cjs.entry.js +7 -8
  19. package/dist/cjs/bn-template-engine.cjs.js +2 -2
  20. package/dist/cjs/bn-text.cjs.entry.js +18 -18
  21. package/dist/cjs/{diagnostics-Cq-qDtXq.js → diagnostics-C4Ggts3w.js} +50 -2
  22. package/dist/cjs/{index-C1Z9vO7z.js → index-DGis1BzT.js} +0 -1
  23. package/dist/cjs/loader.cjs.js +2 -2
  24. package/dist/cjs/{withBodyObserver-CaPUjuC5.js → withBodyObserver-BK4idxqG.js} +2 -2
  25. package/dist/cjs/{context-protocol-C0rKepqu.js → withHasError-CqvcS23z.js} +462 -14
  26. package/dist/cjs/{withStyled-vSfogp9J.js → withStyled-70D4Isgt.js} +22 -35
  27. package/dist/cjs/{sanitizeHtml-Yx1xn6i_.js → withTranslation-C6Pye2CM.js} +148 -129
  28. package/dist/collection/collection-manifest.json +11 -11
  29. package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.css +24 -0
  30. package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.js +430 -0
  31. package/dist/collection/components/bn-annotation-layer/utils/marks.js +161 -0
  32. package/dist/collection/components/bn-annotation-layer/utils/matchPoint.js +25 -0
  33. package/dist/collection/components/bn-annotation-list/bn-annotation-list.css +46 -0
  34. package/dist/collection/components/bn-annotation-list/bn-annotation-list.js +112 -0
  35. package/dist/collection/components/bn-asset/bn-asset.js +1 -1
  36. package/dist/collection/components/bn-body/bn-body.js +24 -1
  37. package/dist/collection/components/bn-card/bn-card.js +24 -1
  38. package/dist/collection/components/bn-chart-bubble/{ibcs-chart-bubble.js → bn-chart-bubble-renderer/bn-chart-bubble-renderer.js} +153 -59
  39. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +70 -13
  40. package/dist/collection/components/bn-chart-bubble/utils/BubbleChart.js +29 -21
  41. package/dist/collection/components/bn-chart-bullet/{ibcs-chart-bullet.js → bn-chart-bullet-renderer/bn-chart-bullet-renderer.js} +127 -53
  42. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +83 -20
  43. package/dist/collection/components/bn-chart-bullet/utils/BulletChart.js +26 -17
  44. package/dist/collection/components/bn-chart-bullet/utils/model/BulletChartStyle.js +4 -4
  45. package/dist/collection/components/bn-chart-scatter/{ibcs-chart-scatter.js → bn-chart-scatter-renderer/bn-chart-scatter-renderer.js} +132 -53
  46. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +69 -12
  47. package/dist/collection/components/bn-chart-scatter/utils/ScatterChart.js +26 -14
  48. package/dist/collection/components/bn-chart-structure/{ibcs-chart-structure.js → bn-chart-structure-renderer/bn-chart-structure-renderer.js} +159 -66
  49. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +115 -95
  50. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +44 -15
  51. package/dist/collection/components/bn-chart-structure/utils/elements/Axis.js +1 -1
  52. package/dist/collection/components/bn-chart-structure/utils/elements/Bar.js +6 -2
  53. package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +11 -0
  54. package/dist/collection/components/bn-chart-structure/utils/elements/Marker.js +5 -1
  55. package/dist/collection/components/bn-chart-structure/utils/elements/Needle.js +4 -1
  56. package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +6 -2
  57. package/dist/collection/components/bn-chart-time/{ibcs-chart-time.js → bn-chart-time-renderer/bn-chart-time-renderer.js} +188 -150
  58. package/dist/collection/components/bn-chart-time/bn-chart-time.js +140 -405
  59. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +55 -15
  60. package/dist/collection/components/bn-chart-time/utils/elements/Column.js +5 -1
  61. package/dist/collection/components/bn-chart-time/utils/elements/Label.js +14 -0
  62. package/dist/collection/components/bn-chart-time/utils/elements/LineSeries.js +18 -12
  63. package/dist/collection/components/bn-chart-time/utils/elements/Marker.js +5 -1
  64. package/dist/collection/components/bn-chart-time/utils/elements/Needle.js +4 -1
  65. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +6 -2
  66. package/dist/collection/components/bn-chart-time/utils/factories/ScenarioFactory.js +2 -2
  67. package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +2 -18
  68. package/dist/collection/components/bn-component-style/bn-component-style.js +3 -3
  69. package/dist/collection/components/bn-context/bn-context.js +24 -5
  70. package/dist/collection/components/bn-dataset/bn-dataset.js +8 -8
  71. package/dist/collection/components/bn-datasource/bn-datasource.js +8 -8
  72. package/dist/collection/components/bn-footer/bn-footer.css +1 -15
  73. package/dist/collection/components/bn-footer/bn-footer.js +17 -34
  74. package/dist/collection/components/bn-grid/bn-grid.js +38 -71
  75. package/dist/collection/components/bn-image/bn-image.js +21 -2
  76. package/dist/collection/components/bn-internationalization/bn-internationalization.js +7 -1
  77. package/dist/collection/components/bn-layout-card/bn-layout-card.js +3 -32
  78. package/dist/collection/components/bn-layout-page/bn-layout-page.js +3 -32
  79. package/dist/collection/components/bn-message/bn-message.js +20 -2
  80. package/dist/collection/components/bn-page/bn-page.js +22 -3
  81. package/dist/collection/components/bn-ruleset/bn-ruleset.js +3 -3
  82. package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +9 -9
  83. package/dist/collection/components/bn-table/{ibcs-table.js → bn-table-renderer/bn-table-renderer.js} +230 -83
  84. package/dist/collection/components/bn-table/bn-table.js +134 -157
  85. package/dist/collection/components/bn-table/utils/Table.js +3 -3
  86. package/dist/collection/components/bn-table/utils/elements/TableRow.js +1 -1
  87. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +38 -4
  88. package/dist/collection/components/bn-table/utils/helper/DataQuery.js +3 -1
  89. package/dist/collection/components/bn-table/utils/helper/barColumnGeometry.js +2 -2
  90. package/dist/collection/components/bn-text/bn-text.js +66 -8
  91. package/dist/collection/components/bn-title/{ibcs-title/ibcs-title.js → bn-title-renderer/bn-title-renderer.js} +59 -83
  92. package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/Title.js +2 -2
  93. package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/TitleDataSetFactory.js +1 -1
  94. package/dist/collection/components/bn-title/bn-title.js +58 -14
  95. package/dist/collection/components/bn-tree/bn-tree.js +30 -28
  96. package/dist/collection/index.js +0 -1
  97. package/dist/collection/schemas.js +1 -0
  98. package/dist/collection/stores/componentStyles.js +10 -6
  99. package/dist/collection/stores/createScopedStores.js +3 -1
  100. package/dist/collection/stores/internationalization.js +10 -6
  101. package/dist/collection/utils/annotations.js +66 -0
  102. package/dist/collection/utils/autoFit.js +2 -2
  103. package/dist/collection/utils/emptyState.js +1 -1
  104. package/dist/collection/utils/ibcsRuleSet.js +42 -0
  105. package/dist/collection/utils/layoutState/dataPoint.js +59 -0
  106. package/dist/collection/utils/layoutState/geometry.js +46 -0
  107. package/dist/collection/utils/layoutState/index.js +1 -0
  108. package/dist/collection/utils/layoutState/svgChartElements.js +113 -11
  109. package/dist/collection/utils/layoutTemplate.js +0 -2
  110. package/dist/collection/utils/scaling.js +9 -0
  111. package/dist/collection/utils/validate.js +0 -7
  112. package/dist/collection/utils/withComponentStyle.js +14 -18
  113. package/dist/collection/utils/withDataset.js +22 -11
  114. package/dist/collection/utils/withHasError.js +17 -2
  115. package/dist/collection/utils/withRuleSet.js +7 -7
  116. package/dist/collection/utils/withTranslation.js +14 -14
  117. package/dist/collection/utils/xy/XYFrame.js +13 -3
  118. package/dist/collection/utils/xy/model/ScaleFactorsXYChart.js +8 -9
  119. package/dist/collection/utils/xy/pointKey.js +10 -0
  120. package/dist/components/{ibcs-chart-bullet.d.ts → bn-annotation-layer.d.ts} +4 -4
  121. package/dist/components/bn-annotation-layer.js +1 -0
  122. package/dist/components/{ibcs-chart-scatter.d.ts → bn-annotation-list.d.ts} +4 -4
  123. package/dist/components/bn-annotation-list.js +1 -0
  124. package/dist/components/bn-asset.js +1 -1
  125. package/dist/components/bn-body.js +1 -1
  126. package/dist/components/bn-card.js +1 -1
  127. package/dist/components/bn-chart-bubble-renderer.d.ts +11 -0
  128. package/dist/components/bn-chart-bubble-renderer.js +1 -0
  129. package/dist/components/bn-chart-bubble.js +1 -1
  130. package/dist/components/bn-chart-bullet-renderer.d.ts +11 -0
  131. package/dist/components/bn-chart-bullet-renderer.js +1 -0
  132. package/dist/components/bn-chart-bullet.js +1 -1
  133. package/dist/components/bn-chart-scatter-renderer.d.ts +11 -0
  134. package/dist/components/bn-chart-scatter-renderer.js +1 -0
  135. package/dist/components/bn-chart-scatter.js +1 -1
  136. package/dist/components/bn-chart-structure-renderer.d.ts +11 -0
  137. package/dist/components/bn-chart-structure-renderer.js +1 -0
  138. package/dist/components/bn-chart-structure.js +1 -1
  139. package/dist/components/{bn-template.d.ts → bn-chart-time-renderer.d.ts} +4 -4
  140. package/dist/components/bn-chart-time-renderer.js +1 -0
  141. package/dist/components/bn-chart-time.js +1 -1
  142. package/dist/components/bn-component-style.js +1 -1
  143. package/dist/components/bn-context.js +1 -1
  144. package/dist/components/bn-dataset.js +1 -1
  145. package/dist/components/bn-datasource.js +1 -1
  146. package/dist/components/bn-footer.js +1 -1
  147. package/dist/components/bn-grid.js +1 -1
  148. package/dist/components/bn-image.js +1 -1
  149. package/dist/components/bn-internationalization.js +1 -1
  150. package/dist/components/bn-layout-card.js +1 -1
  151. package/dist/components/bn-layout-page.js +1 -1
  152. package/dist/components/bn-message.js +1 -1
  153. package/dist/components/bn-page.js +1 -1
  154. package/dist/components/bn-ruleset.js +1 -1
  155. package/dist/components/bn-scaling-group.js +1 -1
  156. package/dist/components/{ibcs-chart-bubble.d.ts → bn-table-renderer.d.ts} +4 -4
  157. package/dist/components/bn-table-renderer.js +1 -0
  158. package/dist/components/bn-table.js +1 -1
  159. package/dist/components/bn-text.js +1 -1
  160. package/dist/components/{editor-companion.d.ts → bn-title-renderer.d.ts} +4 -4
  161. package/dist/components/bn-title-renderer.js +1 -0
  162. package/dist/components/bn-title.js +1 -1
  163. package/dist/components/bn-tree.js +1 -1
  164. package/dist/components/index.js +1 -1
  165. package/dist/components/p-B1nL0yOa.js +1 -0
  166. package/dist/components/p-B7uwck1J.js +1 -0
  167. package/dist/components/p-BDS_jiow.js +1 -0
  168. package/dist/components/p-BIIDTtcR.js +1 -0
  169. package/dist/components/p-BQMKgvEC.js +1 -0
  170. package/dist/components/p-BSV_vyqs.js +1 -0
  171. package/dist/components/p-BVKLCz2k.js +1 -0
  172. package/dist/components/p-BWBHlztH.js +1 -0
  173. package/dist/components/p-BXrPfAvP.js +1 -0
  174. package/dist/components/p-Ba9PUiBp.js +1 -0
  175. package/dist/components/p-BpCL2bfw.js +1 -0
  176. package/dist/components/p-BpsXOtoW.js +1 -0
  177. package/dist/components/p-Bs-YxJEt.js +1 -0
  178. package/dist/components/p-CGI6XIaK.js +1 -0
  179. package/dist/components/p-CMM8vtHW.js +1 -0
  180. package/dist/components/p-COqIkH1M.js +1 -0
  181. package/dist/components/p-CYwd_ZNM.js +1 -0
  182. package/dist/components/p-CkW23yp2.js +1 -0
  183. package/dist/components/p-CtBM3KFY.js +1 -0
  184. package/dist/{bn-template-engine/p-DFmSrSnf.js → components/p-CurWSJkH.js} +1 -1
  185. package/dist/components/p-CxPSvrcF.js +1 -0
  186. package/dist/components/p-D2Epww9R.js +1 -0
  187. package/dist/components/p-D5-dYgK_.js +1 -0
  188. package/dist/components/p-D6YGOYV1.js +2 -0
  189. package/dist/components/p-DEHnizot.js +1 -0
  190. package/dist/components/p-DIyUaSBg.js +1 -0
  191. package/dist/components/p-DPLcGhVt.js +1 -0
  192. package/dist/components/p-DUHp_9X-.js +1 -0
  193. package/dist/components/p-DYG9FH_u.js +1 -0
  194. package/dist/components/p-DdGnuNtc.js +1 -0
  195. package/dist/components/p-Dlb4ncGF.js +1 -0
  196. package/dist/components/p-Dm55bMs2.js +1 -0
  197. package/dist/components/p-Dq1AzGKX.js +1 -0
  198. package/dist/components/p-Dq4KMCDU.js +1 -0
  199. package/dist/components/p-DsOaqeTN.js +1 -0
  200. package/dist/components/p-Ds_BSK8v.js +1 -0
  201. package/dist/components/p-LZ9lAY8T.js +1 -0
  202. package/dist/components/p-U3zkcEJZ.js +1 -0
  203. package/dist/components/p-WzaayhTX.js +1 -0
  204. package/dist/components/p-X9hpquOX.js +1 -0
  205. package/dist/components/p-Xb6Ilq8u.js +1 -0
  206. package/dist/components/p-ey23VlID.js +1 -0
  207. package/dist/components/p-jbp6YiHf.js +1 -0
  208. package/dist/components/p-oJjMz8JF.js +1 -0
  209. package/dist/components/p-xhiPDAZa.js +1 -0
  210. package/dist/components/p-xpguaboj.js +1 -0
  211. package/dist/esm/{bn-asset_28.entry.js → bn-annotation-layer_30.entry.js} +24689 -23899
  212. package/dist/esm/bn-grid.entry.js +11 -63
  213. package/dist/esm/bn-image.entry.js +4 -5
  214. package/dist/esm/bn-internationalization.entry.js +9 -5
  215. package/dist/esm/bn-ruleset.entry.js +6 -7
  216. package/dist/esm/bn-template-engine.js +3 -3
  217. package/dist/esm/bn-text.entry.js +12 -12
  218. package/dist/esm/{diagnostics-vw6TKMiT.js → diagnostics-Cyqy1zDT.js} +48 -2
  219. package/dist/esm/{index-C5UYpZUU.js → index-CCZcKl0Q.js} +1 -1
  220. package/dist/esm/loader.js +3 -3
  221. package/dist/esm/{withBodyObserver-DD_-r04o.js → withBodyObserver-JcRB9OPQ.js} +2 -2
  222. package/dist/esm/{context-protocol-CdTp19uA.js → withHasError-l3cMN-oP.js} +458 -14
  223. package/dist/esm/{withStyled-BDEyKd_H.js → withStyled-DGOiR00Q.js} +17 -29
  224. package/dist/esm/{sanitizeHtml-C5bFtARM.js → withTranslation-BpO8BC5B.js} +144 -126
  225. package/dist/schemas/axis.schema.json +52 -0
  226. package/dist/schemas/i18n.schema.json +31 -0
  227. package/dist/schemas/partof.schema.json +33 -0
  228. package/dist/schemas/ruleset.schema.json +59 -0
  229. package/dist/schemas/stack.schema.json +51 -0
  230. package/dist/schemas/theme.schema.json +604 -0
  231. package/dist/schemas/thereof.schema.json +34 -0
  232. package/dist/types/components/bn-annotation-layer/bn-annotation-layer.d.ts +81 -0
  233. package/dist/types/components/bn-annotation-layer/utils/marks.d.ts +69 -0
  234. package/dist/types/components/bn-annotation-layer/utils/matchPoint.d.ts +17 -0
  235. package/dist/types/components/bn-annotation-list/bn-annotation-list.d.ts +35 -0
  236. package/dist/types/components/bn-body/bn-body.d.ts +5 -0
  237. package/dist/types/components/bn-card/bn-card.d.ts +5 -0
  238. package/dist/types/components/bn-chart-bubble/bn-chart-bubble-renderer/bn-chart-bubble-renderer.d.ts +97 -0
  239. package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +20 -2
  240. package/dist/types/components/bn-chart-bullet/bn-chart-bullet-renderer/bn-chart-bullet-renderer.d.ts +81 -0
  241. package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +21 -3
  242. package/dist/types/components/bn-chart-bullet/utils/BulletChart.d.ts +2 -0
  243. package/dist/types/components/bn-chart-bullet/utils/model/BulletChartStyle.d.ts +2 -2
  244. package/dist/types/components/bn-chart-scatter/bn-chart-scatter-renderer/bn-chart-scatter-renderer.d.ts +85 -0
  245. package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +20 -2
  246. package/dist/types/components/bn-chart-structure/{ibcs-chart-structure.d.ts → bn-chart-structure-renderer/bn-chart-structure-renderer.d.ts} +43 -13
  247. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +29 -17
  248. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
  249. package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +5 -0
  250. package/dist/types/components/bn-chart-structure/utils/elements/Marker.d.ts +1 -0
  251. package/dist/types/components/bn-chart-structure/utils/elements/StackedBar.d.ts +2 -1
  252. package/dist/types/components/bn-chart-structure/utils/model/DataPoint.d.ts +3 -0
  253. package/dist/types/components/bn-chart-time/{ibcs-chart-time.d.ts → bn-chart-time-renderer/bn-chart-time-renderer.d.ts} +50 -17
  254. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +36 -66
  255. package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +7 -0
  256. package/dist/types/components/bn-chart-time/utils/elements/Label.d.ts +5 -0
  257. package/dist/types/components/bn-chart-time/utils/elements/LineSeries.d.ts +5 -1
  258. package/dist/types/components/bn-chart-time/utils/elements/Marker.d.ts +1 -0
  259. package/dist/types/components/bn-chart-time/utils/elements/StackedColumn.d.ts +2 -1
  260. package/dist/types/components/bn-chart-time/utils/factories/ScenarioFactory.d.ts +1 -1
  261. package/dist/types/components/bn-chart-time/utils/model/DataPoint.d.ts +3 -0
  262. package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +2 -8
  263. package/dist/types/components/bn-context/bn-context.d.ts +7 -1
  264. package/dist/types/components/bn-dataset/bn-dataset.d.ts +2 -2
  265. package/dist/types/components/bn-datasource/bn-datasource.d.ts +2 -2
  266. package/dist/types/components/bn-footer/bn-footer.d.ts +5 -7
  267. package/dist/types/components/bn-grid/bn-grid.d.ts +8 -6
  268. package/dist/types/components/bn-image/bn-image.d.ts +4 -0
  269. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +0 -1
  270. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +0 -1
  271. package/dist/types/components/bn-message/bn-message.d.ts +5 -0
  272. package/dist/types/components/bn-page/bn-page.d.ts +5 -0
  273. package/dist/types/components/bn-table/{ibcs-table.d.ts → bn-table-renderer/bn-table-renderer.d.ts} +49 -12
  274. package/dist/types/components/bn-table/bn-table.d.ts +48 -49
  275. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +2 -0
  276. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +2 -1
  277. package/dist/types/components/bn-table/utils/elements/TableRow.d.ts +3 -0
  278. package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +9 -2
  279. package/dist/types/components/bn-text/bn-text.d.ts +19 -1
  280. package/dist/types/components/bn-title/{ibcs-title/ibcs-title.d.ts → bn-title-renderer/bn-title-renderer.d.ts} +15 -4
  281. package/dist/types/components/bn-title/bn-title.d.ts +15 -3
  282. package/dist/types/components/bn-tree/bn-tree.d.ts +6 -2
  283. package/dist/types/components.d.ts +2070 -2406
  284. package/dist/types/context/context-protocol.d.ts +2 -0
  285. package/dist/types/context/scopedDb.d.ts +9 -12
  286. package/dist/types/index.d.ts +0 -1
  287. package/dist/types/schemas.d.ts +50 -0
  288. package/dist/types/stores/componentStyles.d.ts +8 -0
  289. package/dist/types/stores/createScopedStores.d.ts +1 -0
  290. package/dist/types/stores/internationalization.d.ts +3 -2
  291. package/dist/types/stores/ruleSets.d.ts +15 -3
  292. package/dist/types/utils/annotations.d.ts +45 -0
  293. package/dist/types/utils/autoFit.d.ts +2 -2
  294. package/dist/types/utils/emptyState.d.ts +1 -1
  295. package/dist/types/utils/ibcsRuleSet.d.ts +16 -0
  296. package/dist/types/utils/layoutState/dataPoint.d.ts +13 -0
  297. package/dist/types/utils/layoutState/geometry.d.ts +12 -0
  298. package/dist/types/utils/layoutState/index.d.ts +1 -0
  299. package/dist/types/utils/layoutState/svgChartElements.d.ts +9 -6
  300. package/dist/types/utils/layoutState/types.d.ts +29 -0
  301. package/dist/types/utils/model/ChartStyles.d.ts +2 -1
  302. package/dist/types/utils/scaling.d.ts +2 -0
  303. package/dist/types/utils/validate.d.ts +0 -1
  304. package/dist/types/utils/withComponentStyle.d.ts +4 -4
  305. package/dist/types/utils/withDataset.d.ts +3 -3
  306. package/dist/types/utils/withHasError.d.ts +22 -1
  307. package/dist/types/utils/withRuleSet.d.ts +3 -2
  308. package/dist/types/utils/withTranslation.d.ts +1 -2
  309. package/dist/types/utils/xy/model/ScaleFactorsXYChart.d.ts +6 -7
  310. package/dist/types/utils/xy/pointKey.d.ts +9 -0
  311. package/package.json +24 -8
  312. package/readme.md +14 -8
  313. package/dist/bn-template-engine/assets/bar.png +0 -0
  314. package/dist/bn-template-engine/assets/matrix.png +0 -0
  315. package/dist/bn-template-engine/p-5075771a.entry.js +0 -1
  316. package/dist/bn-template-engine/p-5d516435.entry.js +0 -1
  317. package/dist/bn-template-engine/p-5e90e728.entry.js +0 -1
  318. package/dist/bn-template-engine/p-9ef7e132.entry.js +0 -1
  319. package/dist/bn-template-engine/p-9f7a1980.entry.js +0 -1
  320. package/dist/bn-template-engine/p-BeXgxHkW.js +0 -1
  321. package/dist/bn-template-engine/p-C5UYpZUU.js +0 -2
  322. package/dist/bn-template-engine/p-CH0bpt_k.js +0 -1
  323. package/dist/bn-template-engine/p-DI3efDSV.js +0 -1
  324. package/dist/bn-template-engine/p-DXLTTILG.js +0 -1
  325. package/dist/bn-template-engine/p-DtP4jqG5.js +0 -1
  326. package/dist/bn-template-engine/p-a8281b71.entry.js +0 -1
  327. package/dist/bn-template-engine/p-b31277e7.entry.js +0 -1
  328. package/dist/bn-template-engine/p-b396ac84.entry.js +0 -1
  329. package/dist/cjs/bn-template.cjs.entry.js +0 -18
  330. package/dist/cjs/editor-companion.cjs.entry.js +0 -56
  331. package/dist/cjs/withHasError-qGW_yqIv.js +0 -426
  332. package/dist/collection/components/bn-footer/assets/bar.png +0 -0
  333. package/dist/collection/components/bn-footer/assets/matrix.png +0 -0
  334. package/dist/collection/components/bn-message/assets/bar.png +0 -0
  335. package/dist/collection/components/bn-message/assets/matrix.png +0 -0
  336. package/dist/collection/components/bn-template/bn-template.js +0 -38
  337. package/dist/collection/components/editor-companion/editor-companion.css +0 -3
  338. package/dist/collection/components/editor-companion/editor-companion.js +0 -137
  339. package/dist/collection/utils/templateId.js +0 -12
  340. package/dist/collection/utils/testing/fakeGroup.js +0 -21
  341. package/dist/collection/utils/testing/hostFont.js +0 -20
  342. package/dist/collection/utils/testing/mutationObserver.js +0 -44
  343. package/dist/collection/utils/testing/structureChart.js +0 -26
  344. package/dist/collection/utils/testing/timeChart.js +0 -28
  345. package/dist/components/AxisConfig.js +0 -1
  346. package/dist/components/CompareUtil.js +0 -1
  347. package/dist/components/DataFormatDigits.js +0 -1
  348. package/dist/components/DateStringFactory.js +0 -1
  349. package/dist/components/LabelCollisionManager.js +0 -1
  350. package/dist/components/Order.js +0 -1
  351. package/dist/components/SVGStyle.js +0 -1
  352. package/dist/components/SVGVariancesStyleGroup.js +0 -1
  353. package/dist/components/StringAdapter.js +0 -1
  354. package/dist/components/VarianceMeasure.js +0 -1
  355. package/dist/components/XYChartDataRow.js +0 -1
  356. package/dist/components/bn-body2.js +0 -1
  357. package/dist/components/bn-card2.js +0 -1
  358. package/dist/components/bn-footer2.js +0 -1
  359. package/dist/components/bn-message2.js +0 -1
  360. package/dist/components/bn-page2.js +0 -1
  361. package/dist/components/bn-template.js +0 -1
  362. package/dist/components/bn-title2.js +0 -1
  363. package/dist/components/checkXYOverflow.js +0 -1
  364. package/dist/components/contentDecoder.js +0 -1
  365. package/dist/components/context-protocol.js +0 -1
  366. package/dist/components/editor-companion.js +0 -1
  367. package/dist/components/formatter.js +0 -1
  368. package/dist/components/geometry.js +0 -1
  369. package/dist/components/ibcs-chart-bubble.js +0 -1
  370. package/dist/components/ibcs-chart-bubble2.js +0 -1
  371. package/dist/components/ibcs-chart-bullet.js +0 -1
  372. package/dist/components/ibcs-chart-bullet2.js +0 -1
  373. package/dist/components/ibcs-chart-scatter.js +0 -1
  374. package/dist/components/ibcs-chart-scatter2.js +0 -1
  375. package/dist/components/ibcs-chart-structure.d.ts +0 -11
  376. package/dist/components/ibcs-chart-structure.js +0 -1
  377. package/dist/components/ibcs-chart-structure2.js +0 -1
  378. package/dist/components/ibcs-chart-time.d.ts +0 -11
  379. package/dist/components/ibcs-chart-time.js +0 -1
  380. package/dist/components/ibcs-chart-time2.js +0 -1
  381. package/dist/components/ibcs-table.d.ts +0 -11
  382. package/dist/components/ibcs-table.js +0 -1
  383. package/dist/components/ibcs-table2.js +0 -1
  384. package/dist/components/ibcs-title.d.ts +0 -11
  385. package/dist/components/ibcs-title.js +0 -1
  386. package/dist/components/ibcs-title2.js +0 -1
  387. package/dist/components/layoutTemplate.js +0 -1
  388. package/dist/components/luxon.js +0 -1
  389. package/dist/components/scaling.js +0 -1
  390. package/dist/components/svg.esm.js +0 -1
  391. package/dist/components/svgChartElements.js +0 -1
  392. package/dist/components/types.js +0 -1
  393. package/dist/components/validate.js +0 -1
  394. package/dist/components/withBodyObserver.js +0 -1
  395. package/dist/components/withComponentStatus.js +0 -1
  396. package/dist/components/withComponentStyle.js +0 -1
  397. package/dist/components/withDataset.js +0 -1
  398. package/dist/components/withHasError.js +0 -1
  399. package/dist/components/withRuleSet.js +0 -1
  400. package/dist/components/withScalingGroup.js +0 -1
  401. package/dist/components/withStyled.js +0 -1
  402. package/dist/components/withTranslation.js +0 -1
  403. package/dist/esm/bn-template.entry.js +0 -16
  404. package/dist/esm/editor-companion.entry.js +0 -54
  405. package/dist/esm/withHasError-73WV2SP5.js +0 -422
  406. package/dist/types/components/bn-chart-bubble/ibcs-chart-bubble.d.ts +0 -59
  407. package/dist/types/components/bn-chart-bullet/ibcs-chart-bullet.d.ts +0 -53
  408. package/dist/types/components/bn-chart-scatter/ibcs-chart-scatter.d.ts +0 -54
  409. package/dist/types/components/bn-template/bn-template.d.ts +0 -10
  410. package/dist/types/components/editor-companion/editor-companion.d.ts +0 -20
  411. package/dist/types/utils/templateId.d.ts +0 -9
  412. package/dist/types/utils/testing/fakeGroup.d.ts +0 -8
  413. package/dist/types/utils/testing/hostFont.d.ts +0 -16
  414. package/dist/types/utils/testing/mutationObserver.d.ts +0 -5
  415. package/dist/types/utils/testing/structureChart.d.ts +0 -5
  416. package/dist/types/utils/testing/timeChart.d.ts +0 -5
  417. /package/dist/collection/components/bn-chart-bubble/{ibcs-chart-bubble.css → bn-chart-bubble-renderer/bn-chart-bubble-renderer.css} +0 -0
  418. /package/dist/collection/components/bn-chart-bullet/{ibcs-chart-bullet.css → bn-chart-bullet-renderer/bn-chart-bullet-renderer.css} +0 -0
  419. /package/dist/collection/components/bn-chart-scatter/{ibcs-chart-scatter.css → bn-chart-scatter-renderer/bn-chart-scatter-renderer.css} +0 -0
  420. /package/dist/collection/components/bn-chart-time/{ibcs-chart-time.css → bn-chart-time-renderer/bn-chart-time-renderer.css} +0 -0
  421. /package/dist/collection/components/bn-table/{ibcs-table.css → bn-table-renderer/bn-table-renderer.css} +0 -0
  422. /package/dist/collection/components/bn-title/{ibcs-title/ibcs-title.css → bn-title-renderer/bn-title-renderer.css} +0 -0
  423. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/index.js +0 -0
  424. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/MeasureEntriy.js +0 -0
  425. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TimePeriod.js +0 -0
  426. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TitleConfig.js +0 -0
  427. /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/index.js +0 -0
  428. /package/dist/components/{stackColors.js → p-4q8nRcWC.js} +0 -0
  429. /package/dist/components/{merge.js → p-B2NXsfMz.js} +0 -0
  430. /package/dist/components/{layoutObserver.js → p-B6kka9sT.js} +0 -0
  431. /package/dist/components/{NumericScale.js → p-BJmwHV0a.js} +0 -0
  432. /package/dist/components/{stackLayout.js → p-BTnRaHPb.js} +0 -0
  433. /package/dist/components/{emotion-hash.esm.js → p-BYBpC0EO.js} +0 -0
  434. /package/dist/components/{diagnostics.js → p-CckAR27O.js} +0 -0
  435. /package/dist/components/{SiPrefix.js → p-CeE4_3wQ.js} +0 -0
  436. /package/dist/components/{queryError.js → p-ClruFZD_.js} +0 -0
  437. /package/dist/components/{sanitizeHtml.js → p-CyUmrWfW.js} +0 -0
  438. /package/dist/components/{TableAttribute.js → p-DCPLGEs_.js} +0 -0
  439. /package/dist/components/{parentDimensions.js → p-DD1zlev_.js} +0 -0
  440. /package/dist/components/{pageFormats.js → p-DM7fwmH4.js} +0 -0
  441. /package/dist/components/{emptyState.js → p-DakXa7Dp.js} +0 -0
  442. /package/dist/components/{relativeVariance.js → p-fCjsrD7I.js} +0 -0
  443. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/Title.d.ts +0 -0
  444. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/TitleDataSetFactory.d.ts +0 -0
  445. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/index.d.ts +0 -0
  446. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/MeasureEntriy.d.ts +0 -0
  447. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TimePeriod.d.ts +0 -0
  448. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TitleConfig.d.ts +0 -0
  449. /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/index.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { S as StencilCore } from './index-C5UYpZUU.js';
1
+ import { S as StencilCore, g as getElement } from './index-CCZcKl0Q.js';
2
2
 
3
3
  const appendToMap = (map, propName, value) => {
4
4
  let refs = map.get(propName);
@@ -365,8 +365,8 @@ const xyChartStyleDefaults = () => ({
365
365
  labelToMark: 0.3,
366
366
  legendSwatch: 0.9,
367
367
  panelGap: 1.6,
368
- refLineWidth: 1,
369
- gridLineWidth: 1,
368
+ refLineWidth: 0.075,
369
+ gridLineWidth: 0.075,
370
370
  },
371
371
  axisStyles: {
372
372
  ac: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 1 },
@@ -416,7 +416,7 @@ const SYSTEM_STYLE_DEFAULTS = {
416
416
  },
417
417
  barStyles: {
418
418
  ac: { stroke: "#404040", fill: "#404040", width: 0.1 },
419
- fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "fc" },
419
+ fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "hatched" },
420
420
  pp: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 0.1 },
421
421
  pl: { stroke: "#404040", fill: "#ffffff", width: 0.1 },
422
422
  },
@@ -459,7 +459,7 @@ const SYSTEM_STYLE_DEFAULTS = {
459
459
  },
460
460
  barStyles: {
461
461
  ac: { stroke: "#404040", fill: "#404040", width: 0.1 },
462
- fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "fc" },
462
+ fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "hatched" },
463
463
  pp: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 0.1 },
464
464
  pl: { stroke: "#404040", fill: "#ffffff", width: 0.1 },
465
465
  },
@@ -484,8 +484,8 @@ const SYSTEM_STYLE_DEFAULTS = {
484
484
  barHeight: 0.66,
485
485
  varianceHeight: 0.4,
486
486
  targetTickHeight: 1.1,
487
- targetLineWidth: 2,
488
- axisLineWidth: 1,
487
+ targetLineWidth: 0.15,
488
+ axisLineWidth: 0.075,
489
489
  labelToBar: 0.3,
490
490
  labelToAxis: 0.3,
491
491
  axisTickLength: 0.35,
@@ -529,6 +529,10 @@ const SYSTEM_STYLE_DEFAULTS = {
529
529
  borderWidth: 1,
530
530
  cellPadding: 4,
531
531
  },
532
+ "bn-annotation": {
533
+ color: "#0070c0",
534
+ colors: { negative: "#ff0000", positive: "#008f96" },
535
+ },
532
536
  };
533
537
  /** `bn-text` keys. All are optional, so the defaults do not list them. */
534
538
  const TEXT_STYLE_KEYS = ["fontFamily", "fontSizePx", "fontColor", "fontBackgroundColor", "leading"];
@@ -705,7 +709,7 @@ const de = flattenObject({
705
709
  ibcssymbol_delta_generic_relative: "Δ({%})%",
706
710
  },
707
711
  "bn-title": {
708
- SEPERATOR_WS: ", ",
712
+ SEPARATOR_WS: ", ",
709
713
  CONNECTOR_WS: " und ",
710
714
  in: "in",
711
715
  },
@@ -732,7 +736,7 @@ const de = flattenObject({
732
736
  in: "in",
733
737
  category: " ",
734
738
  operation: " ",
735
- there_of: "davon",
739
+ thereof: "davon",
736
740
  part_of: "in % von",
737
741
  SUM_TOTAL: "❖",
738
742
  REST: "REST",
@@ -765,7 +769,7 @@ const en = flattenObject({
765
769
  ibcssymbol_delta_generic_relative: "Δ({%})%",
766
770
  },
767
771
  "bn-title": {
768
- SEPERATOR_WS: ", ",
772
+ SEPARATOR_WS: ", ",
769
773
  CONNECTOR_WS: " and ",
770
774
  in: "in",
771
775
  },
@@ -792,14 +796,18 @@ const en = flattenObject({
792
796
  in: "in",
793
797
  category: " ",
794
798
  operation: " ",
795
- there_of: "there of",
799
+ thereof: "there of",
796
800
  part_of: "in % of",
797
801
  SUM_TOTAL: "❖",
798
802
  REST: "REST",
799
803
  "no-data": "No Data",
800
804
  },
801
805
  });
802
- const BN_INTERNATIONALIZATION_KEYS = Object.keys(de || {});
806
+ /** Old key names (deprecated) and what they are called now. A text is still found and still read under the old name. */
807
+ const RENAMED_I18N_KEYS = {
808
+ "bn-title.SEPERATOR_WS": "bn-title.SEPARATOR_WS",
809
+ "bn-table.there_of": "bn-table.thereof",
810
+ };
803
811
  const SYSTEM_I18N_DEFAULTS = { _system: { de, en } };
804
812
 
805
813
  /**
@@ -9455,7 +9463,7 @@ function createScopedDb() {
9455
9463
  }
9456
9464
 
9457
9465
  /**
9458
- * Factory that creates a fresh set of all 9 `@stencil/store` instances.
9466
+ * Factory that creates a fresh set of all 8 `@stencil/store` instances.
9459
9467
  *
9460
9468
  * Called once per `<bn-context>` element so that each context owns isolated
9461
9469
  * reactive state. The returned object satisfies the {@link ScopedStores} interface.
@@ -9475,6 +9483,7 @@ function createScopedStores() {
9475
9483
  const ruleSets = createStore({
9476
9484
  _system: SYSTEM_RULESET_DEFAULTS,
9477
9485
  });
9486
+ const annotationsUnplaced = createStore({});
9478
9487
  return {
9479
9488
  db,
9480
9489
  datasetsMeta,
@@ -9484,6 +9493,7 @@ function createScopedStores() {
9484
9493
  context,
9485
9494
  scalingGroups,
9486
9495
  ruleSets,
9496
+ annotationsUnplaced,
9487
9497
  };
9488
9498
  }
9489
9499
 
@@ -9571,4 +9581,438 @@ function clearStoresCache(element) {
9571
9581
  storesCache.delete(element);
9572
9582
  }
9573
9583
 
9574
- export { BN_INTERNATIONALIZATION_KEYS as B, DateTime as D, SYSTEM_STYLE_DEFAULTS as S, XY_SERIES_PALETTE as X, findContextElement as a, globalLabelKeys as b, clearStoresCache as c, getDefaultExportFromCjs as d, getOrCreateStores as e, flattenObject as f, getStores as g, hasInlineJs as h, SYSTEM_RULESET_DEFAULTS as i, sourceExpr as j, markTreatment as m, resolveSeriesColor as r, shade as s, unknownStyleKeys as u };
9584
+ /** Lifecycle state of a tracked component instance. */
9585
+ var ComponentStatus;
9586
+ (function (ComponentStatus) {
9587
+ ComponentStatus[ComponentStatus["RUNNING"] = 0] = "RUNNING";
9588
+ ComponentStatus[ComponentStatus["SUCCESSFUL"] = 1] = "SUCCESSFUL";
9589
+ ComponentStatus[ComponentStatus["ERROR"] = 2] = "ERROR";
9590
+ })(ComponentStatus || (ComponentStatus = {}));
9591
+ /**
9592
+ * Singleton registry that tracks the render status of all bn-* component instances.
9593
+ *
9594
+ * Each component registers itself via {@link withComponentStatus} and reports
9595
+ * `RUNNING` / `SUCCESSFUL` / `ERROR` transitions. After 500 ms of inactivity
9596
+ * (no status updates), the aggregate result is written to
9597
+ * `window.componentRegisterIsRenderedResult` as a boolean, and the failed
9598
+ * components to `window.componentRegisterFailures`. External tools
9599
+ * (e.g. headless screenshot renderers) poll these values to detect when
9600
+ * the entire page has finished rendering.
9601
+ *
9602
+ * A reader sees one of three states: the flag is `true` (all rendered), the
9603
+ * failures list is not empty (settled, but a component failed), or neither
9604
+ * (still working).
9605
+ *
9606
+ * The 500 ms debounce prevents premature "rendered" signals during rapid
9607
+ * successive re-renders.
9608
+ *
9609
+ * Status counts are maintained incrementally - `updateStatus` adjusts running
9610
+ * counters instead of iterating all entries, making it O(1) per update.
9611
+ */
9612
+ var ComponentRegister;
9613
+ (function (ComponentRegister) {
9614
+ let currentTimeOutId = undefined;
9615
+ const componentRegister = new Map();
9616
+ const failures = new Map();
9617
+ const statusCounts = { running: 0, successful: 0, error: 0 };
9618
+ const countKey = (status) => {
9619
+ switch (status) {
9620
+ case ComponentStatus.RUNNING:
9621
+ return "running";
9622
+ case ComponentStatus.SUCCESSFUL:
9623
+ return "successful";
9624
+ default:
9625
+ return "error";
9626
+ }
9627
+ };
9628
+ const publish = () => {
9629
+ // @ts-ignore
9630
+ window.componentRegisterFailures = ComponentRegister.componentRegisterFailures();
9631
+ // @ts-ignore
9632
+ window.componentRegisterIsRenderedResult = ComponentRegister.componentRegisterIsRendered();
9633
+ // @ts-ignore
9634
+ // eslint-disable-next-line no-console
9635
+ console.log("componentRegisterIsRendered:", window.componentRegisterIsRenderedResult);
9636
+ };
9637
+ /** Restarts the 500 ms quiet period that ends with the published result. */
9638
+ const schedule = () => {
9639
+ if (currentTimeOutId) {
9640
+ window.clearTimeout(currentTimeOutId);
9641
+ }
9642
+ // window.setTimeout, not the bare global: in spec tests this is the timer the test window clears when a test ends
9643
+ currentTimeOutId = window.setTimeout(() => {
9644
+ const fonts = document.fonts;
9645
+ if ((fonts === null || fonts === void 0 ? void 0 : fonts.status) === "loading") {
9646
+ // text is measured again once the fonts are there: wait for them, then for a new quiet period
9647
+ fonts.ready.then(schedule);
9648
+ return;
9649
+ }
9650
+ publish();
9651
+ }, 500);
9652
+ };
9653
+ /**
9654
+ * Records a status change for the component identified by `uuid` and
9655
+ * resets the 500 ms debounce timer. When the timer fires, the aggregate
9656
+ * "all rendered" boolean is published to `window.componentRegisterIsRenderedResult`.
9657
+ * `failure` describes an `ERROR` status.
9658
+ */
9659
+ ComponentRegister.updateStatus = (uuid, status, failure) => {
9660
+ const prev = componentRegister.get(uuid);
9661
+ if (prev !== undefined) {
9662
+ statusCounts[countKey(prev)]--;
9663
+ }
9664
+ statusCounts[countKey(status)]++;
9665
+ componentRegister.set(uuid, status);
9666
+ if (status === ComponentStatus.ERROR && failure) {
9667
+ failures.set(uuid, failure);
9668
+ }
9669
+ else {
9670
+ failures.delete(uuid);
9671
+ }
9672
+ schedule();
9673
+ };
9674
+ /** Forgets a component that left the document. */
9675
+ ComponentRegister.remove = (uuid) => {
9676
+ const prev = componentRegister.get(uuid);
9677
+ if (prev === undefined) {
9678
+ return;
9679
+ }
9680
+ statusCounts[countKey(prev)]--;
9681
+ componentRegister.delete(uuid);
9682
+ failures.delete(uuid);
9683
+ schedule();
9684
+ };
9685
+ /** Returns `true` when no component is in `RUNNING` or `ERROR` state. */
9686
+ ComponentRegister.componentRegisterIsRendered = () => {
9687
+ return statusCounts.running === 0 && statusCounts.error === 0;
9688
+ };
9689
+ /** The failed components. Empty while a component is still running: only a settled page has a final list. */
9690
+ ComponentRegister.componentRegisterFailures = () => {
9691
+ return statusCounts.running === 0 ? [...failures.values()] : [];
9692
+ };
9693
+ /** Returns a summary count of components in each status category. */
9694
+ ComponentRegister.componentRegisterStatus = () => {
9695
+ return Object.assign({}, statusCounts);
9696
+ };
9697
+ })(ComponentRegister || (ComponentRegister = {}));
9698
+
9699
+ /** Concatenates name parts with spaces, skipping falsy segments. */
9700
+ /**
9701
+ * Safely invokes `fn` if it is a function; otherwise does nothing.
9702
+ *
9703
+ * Used by every mixin to call the original lifecycle hook (e.g. `connectedCallback`)
9704
+ * that may or may not exist on the component before the mixin wrapped it.
9705
+ *
9706
+ * @param fn - The value to invoke (only called if `typeof fn === 'function'`)
9707
+ * @param context - Optional `this` context to bind before invocation
9708
+ */
9709
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9710
+ const runIfExisits = (fn, context = undefined) => {
9711
+ if (typeof fn === "function") {
9712
+ if (context) {
9713
+ fn.bind(context)();
9714
+ }
9715
+ else {
9716
+ fn();
9717
+ }
9718
+ }
9719
+ };
9720
+ /**
9721
+ * Generates a v4-style UUID using a combination of `Date.now()` and
9722
+ * `performance.now()` for entropy. Used by {@link withComponentStatus}
9723
+ * to assign a stable identifier to each component instance.
9724
+ */
9725
+ function generateUUID() {
9726
+ let d = new Date().getTime(), d2 = (performance && performance.now && performance.now() * 1000) || 0;
9727
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
9728
+ let r = Math.random() * 16;
9729
+ if (d > 0) {
9730
+ r = ((d + r) % 16) | 0;
9731
+ d = Math.floor(d / 16);
9732
+ }
9733
+ else {
9734
+ r = ((d2 + r) % 16) | 0;
9735
+ d2 = Math.floor(d2 / 16);
9736
+ }
9737
+ return (c === "x" ? r : (r & 0x7) | 0x8).toString(16);
9738
+ });
9739
+ }
9740
+ /**
9741
+ * Creates a reactive reference -- a lightweight value holder that fires an
9742
+ * `onChange` callback whenever the stored value changes (by reference equality).
9743
+ *
9744
+ * Provides `get`, `set`, `modify` (read-modify-write), and `getAndSet` (swap)
9745
+ * accessors. Used by {@link withHasError} to keep the host element's `has-error`
9746
+ * attribute in sync with the internal error list.
9747
+ *
9748
+ * @param value - The initial value
9749
+ * @param onChange - Callback fired after each change with the new value
9750
+ */
9751
+ const ref = (value, onChange) => {
9752
+ let current = value;
9753
+ const get = () => current;
9754
+ const set = (value) => {
9755
+ const old = current;
9756
+ current = value;
9757
+ if (old !== value)
9758
+ onChange(current);
9759
+ };
9760
+ const setAndGet = (value) => {
9761
+ set(value);
9762
+ };
9763
+ const getAndSet = (value) => {
9764
+ const old = get();
9765
+ set(value);
9766
+ return old;
9767
+ };
9768
+ const modify = (handler) => {
9769
+ set(handler(get()));
9770
+ };
9771
+ return {
9772
+ get,
9773
+ set,
9774
+ setAndGet,
9775
+ getAndSet,
9776
+ modify,
9777
+ };
9778
+ };
9779
+
9780
+ // Stencil calls these once per instance, so a failure in them is never repaired by a later render.
9781
+ const LOAD_HOOKS = ["componentWillLoad", "componentDidLoad"];
9782
+ // The hooks of every render cycle. componentWillUpdate is the first one of an update.
9783
+ const CYCLE_HOOKS = [
9784
+ "componentWillUpdate",
9785
+ "componentWillRender",
9786
+ "render",
9787
+ "componentDidRender",
9788
+ "componentDidUpdate",
9789
+ ];
9790
+ // The hooks a cycle starts with: the component is rendering from here on.
9791
+ const START_HOOKS = ["componentWillLoad", "componentWillUpdate", "componentWillRender"];
9792
+ const describeFailure = (element, message) => {
9793
+ var _a, _b, _c, _d;
9794
+ return ({
9795
+ tag: (_a = element === null || element === void 0 ? void 0 : element.localName) !== null && _a !== void 0 ? _a : "",
9796
+ // an inner renderer has no id of its own: name the component it is drawn for
9797
+ id: (element === null || element === void 0 ? void 0 : element.id) || ((_d = (_c = (_b = element === null || element === void 0 ? void 0 : element.getRootNode) === null || _b === void 0 ? void 0 : _b.call(element)) === null || _c === void 0 ? void 0 : _c.host) === null || _d === void 0 ? void 0 : _d.id) || "",
9798
+ message,
9799
+ });
9800
+ };
9801
+ /**
9802
+ * Mixin that tracks a component's render lifecycle in the global {@link ComponentRegister}.
9803
+ *
9804
+ * Assigns a stable UUID to the component instance and reports status transitions:
9805
+ * - `RUNNING` from `connectedCallback` (only before the first render: a re-attach does not render again)
9806
+ * or from the first hook of a render cycle, until `componentDidRender`
9807
+ * - `ERROR` when `render`, a lifecycle hook or `connectedCallback` threw. Stencil catches such
9808
+ * an exception and goes on, so without this the component would count as rendered.
9809
+ * - `SUCCESSFUL` otherwise
9810
+ *
9811
+ * A component that leaves the document is removed from the register.
9812
+ *
9813
+ * Returns a hold function: the component stays `RUNNING` until the promise
9814
+ * passed to it has settled, whatever the outcome.
9815
+ *
9816
+ * External tools (e.g. screenshot/PDF renderers) poll
9817
+ * `window.componentRegisterIsRenderedResult` to determine when all components
9818
+ * have finished rendering.
9819
+ *
9820
+ * @param component - The Stencil component instance
9821
+ */
9822
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9823
+ const withComponentStatus = (component) => {
9824
+ const uuid = generateUUID();
9825
+ let pending = 0;
9826
+ let rendered = false;
9827
+ let rendering = false;
9828
+ let loadFailure;
9829
+ let cycleFailure;
9830
+ let connectFailure;
9831
+ const publish = () => {
9832
+ var _a;
9833
+ // read here, not tracked in connectedCallback: not every build calls that wrapper
9834
+ const element = getElement(component);
9835
+ if (element && !element.isConnected)
9836
+ return;
9837
+ const message = (_a = connectFailure !== null && connectFailure !== void 0 ? connectFailure : loadFailure) !== null && _a !== void 0 ? _a : cycleFailure;
9838
+ if (rendering || pending > 0) {
9839
+ ComponentRegister.updateStatus(uuid, ComponentStatus.RUNNING);
9840
+ }
9841
+ else if (message !== undefined) {
9842
+ ComponentRegister.updateStatus(uuid, ComponentStatus.ERROR, describeFailure(element, message));
9843
+ }
9844
+ else {
9845
+ ComponentRegister.updateStatus(uuid, ComponentStatus.SUCCESSFUL);
9846
+ }
9847
+ };
9848
+ const fail = (hook, e) => {
9849
+ const message = e instanceof Error ? e.message : String(e);
9850
+ if (LOAD_HOOKS.includes(hook)) {
9851
+ loadFailure = message;
9852
+ }
9853
+ else {
9854
+ cycleFailure = message;
9855
+ }
9856
+ publish();
9857
+ };
9858
+ const connectedCallback = component["connectedCallback"];
9859
+ let connect = () => {
9860
+ if (!rendered)
9861
+ rendering = true;
9862
+ publish();
9863
+ runIfExisits(connectedCallback, component);
9864
+ };
9865
+ // The mixins that are applied after this one wrap connectedCallback again, outside of the wrapper above.
9866
+ // The accessor keeps a guard around whatever they assign, so a throw in any of them is seen here too.
9867
+ const guarded = (fn) => () => {
9868
+ connectFailure = undefined;
9869
+ try {
9870
+ fn();
9871
+ }
9872
+ catch (e) {
9873
+ connectFailure = e instanceof Error ? e.message : String(e);
9874
+ publish();
9875
+ // Stencil logs it and goes on with the first render
9876
+ throw e;
9877
+ }
9878
+ };
9879
+ Object.defineProperty(component, "connectedCallback", {
9880
+ configurable: true,
9881
+ enumerable: true,
9882
+ get: () => guarded(connect),
9883
+ set: (fn) => {
9884
+ connect = fn;
9885
+ },
9886
+ });
9887
+ const disconnectedCallback = component["disconnectedCallback"];
9888
+ component["disconnectedCallback"] = () => {
9889
+ ComponentRegister.remove(uuid);
9890
+ runIfExisits(disconnectedCallback, component);
9891
+ };
9892
+ for (const hook of [...LOAD_HOOKS, ...CYCLE_HOOKS]) {
9893
+ const original = component[hook];
9894
+ component[hook] = (...args) => {
9895
+ if (hook === "componentWillUpdate")
9896
+ cycleFailure = undefined;
9897
+ if (START_HOOKS.includes(hook)) {
9898
+ rendering = true;
9899
+ publish();
9900
+ }
9901
+ try {
9902
+ const result = typeof original === "function" ? original.apply(component, args) : undefined;
9903
+ if (typeof (result === null || result === void 0 ? void 0 : result.then) === "function") {
9904
+ // an async hook: Stencil waits for the returned promise, so the failure must stay in it
9905
+ return result.then((value) => value, (e) => {
9906
+ fail(hook, e);
9907
+ throw e;
9908
+ });
9909
+ }
9910
+ return result;
9911
+ }
9912
+ catch (e) {
9913
+ fail(hook, e);
9914
+ // Stencil logs it and goes on with the next hook
9915
+ throw e;
9916
+ }
9917
+ finally {
9918
+ if (hook === "componentDidRender") {
9919
+ rendered = true;
9920
+ rendering = false;
9921
+ publish();
9922
+ }
9923
+ }
9924
+ };
9925
+ }
9926
+ return (work) => {
9927
+ pending++;
9928
+ publish();
9929
+ const done = () => {
9930
+ pending--;
9931
+ publish();
9932
+ };
9933
+ work.then(done, done);
9934
+ };
9935
+ };
9936
+
9937
+ const urlAlphabet =
9938
+ 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
9939
+
9940
+ /* @ts-self-types="./index.d.ts" */
9941
+ let nanoid = (size = 21) => {
9942
+ let id = '';
9943
+ let bytes = crypto.getRandomValues(new Uint8Array((size |= 0)));
9944
+ while (size--) {
9945
+ id += urlAlphabet[bytes[size] & 63];
9946
+ }
9947
+ return id
9948
+ };
9949
+
9950
+ /**
9951
+ * Reports content that does not fit: `ERR_overflow` when the author fixed the
9952
+ * size, `WARN_overflow` otherwise. The id carries the type, so the other id is
9953
+ * cleared. `message` null clears both.
9954
+ */
9955
+ function reportOverflow(errors, message, fixedSize = false) {
9956
+ errors.remove(message !== null && fixedSize ? "WARN_overflow" : "ERR_overflow");
9957
+ if (message === null) {
9958
+ errors.remove("WARN_overflow");
9959
+ }
9960
+ else if (fixedSize) {
9961
+ errors.addOrReplace({ id: "ERR_overflow", type: "error", message });
9962
+ }
9963
+ else {
9964
+ errors.addOrReplace({ id: "WARN_overflow", type: "warning", message });
9965
+ }
9966
+ }
9967
+ /**
9968
+ * Mixin that provides an {@link ErrorDispatcher} for managing validation
9969
+ * errors and warnings on a component.
9970
+ *
9971
+ * Errors are stored internally via a reactive {@link ref}. On every change,
9972
+ * the host element's `has-error` attribute is updated with a JSON-serialized
9973
+ * array of {@link ErrorItem}s (or removed when empty). This allows external
9974
+ * CSS selectors and parent components to detect error states declaratively.
9975
+ *
9976
+ * @param component - The Stencil component instance
9977
+ * @returns An {@link ErrorDispatcher} for adding, replacing, and removing errors
9978
+ */
9979
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9980
+ const withHasError = (component) => {
9981
+ const { set, modify } = ref([], (items) => {
9982
+ const elm = getElement(component);
9983
+ if (items.length === 0) {
9984
+ elm.removeAttribute("has-error");
9985
+ }
9986
+ else {
9987
+ elm.setAttribute("has-error", JSON.stringify(items));
9988
+ }
9989
+ });
9990
+ return {
9991
+ clear: () => {
9992
+ set([]);
9993
+ },
9994
+ replace: (errors) => {
9995
+ set(errors.map((item) => {
9996
+ if (!item.id) {
9997
+ item.id = nanoid();
9998
+ }
9999
+ return item;
10000
+ }));
10001
+ },
10002
+ add: (error) => {
10003
+ if (!error.id)
10004
+ error.id = nanoid();
10005
+ modify((current) => [...current, error]);
10006
+ return error.id;
10007
+ },
10008
+ addOrReplace: (error) => {
10009
+ modify((current) => [...current.filter((item) => item.id !== error.id), error]);
10010
+ return error.id;
10011
+ },
10012
+ remove: (id) => {
10013
+ modify((current) => current.filter((item) => item.id !== id));
10014
+ },
10015
+ };
10016
+ };
10017
+
10018
+ export { ComponentRegister as C, DateTime as D, RENAMED_I18N_KEYS as R, SYSTEM_STYLE_DEFAULTS as S, XY_SERIES_PALETTE as X, withHasError as a, findContextElement as b, clearStoresCache as c, globalLabelKeys as d, SYSTEM_RULESET_DEFAULTS as e, flattenObject as f, getStores as g, hasInlineJs as h, getDefaultExportFromCjs as i, resolveSeriesColor as j, sourceExpr as k, reportOverflow as l, markTreatment as m, getOrCreateStores as n, runIfExisits as r, shade as s, unknownStyleKeys as u, withComponentStatus as w };
@@ -1,6 +1,5 @@
1
- import { g as getElement, f as forceUpdate } from './index-C5UYpZUU.js';
2
- import { g as getStores, c as clearStoresCache, D as DateTime } from './context-protocol-CdTp19uA.js';
3
- import { r as runIfExisits } from './withHasError-73WV2SP5.js';
1
+ import { g as getElement, f as forceUpdate } from './index-CCZcKl0Q.js';
2
+ import { g as getStores, r as runIfExisits, c as clearStoresCache, D as DateTime } from './withHasError-l3cMN-oP.js';
4
3
 
5
4
  const isObject = (obj) => {
6
5
  if (typeof obj === 'object' && obj !== null) {
@@ -60,11 +59,11 @@ const merge = (objects, options) => {
60
59
  * The effective style is computed by deep-merging three layers in order:
61
60
  * 1. `_system` -- built-in defaults (lowest priority)
62
61
  * 2. `_default` -- user-defined global overrides
63
- * 3. The value of the host element's `selected-style` attribute (highest priority)
62
+ * 3. The style named by the `selectedStyle` prop of the component (highest priority)
64
63
  *
65
- * A MutationObserver watches `selected-style` and the store subscription
66
- * reacts to updates in the componentStyles store, triggering a re-merge
67
- * and forced re-render on changes.
64
+ * The prop is read again each time the style is used, and the store
65
+ * subscription reacts to updates in the componentStyles store, triggering a
66
+ * re-merge and forced re-render on changes.
68
67
  *
69
68
  * @param component - The Stencil component instance
70
69
  * @returns A query function `componentStyle(<selector>)` that provides type-safe
@@ -82,26 +81,17 @@ const withComponentStyle = (component) => {
82
81
  // seriesColors/stackColors must be replaced wholesale by an override.
83
82
  style = merge([state["_system"] || {}, state["_default"] || {}, state[selectedStyle] || {}], { arrayMergeType: "overwrite" });
84
83
  };
85
- const observer = new MutationObserver((mutations) => {
86
- mutations.forEach((mutation) => {
87
- if (mutation.attributeName === "selected-style") {
88
- selectedStyle = getElement(component).getAttribute("selected-style");
89
- updateStyle();
90
- forceUpdate(component);
91
- }
92
- });
93
- });
94
84
  const connectedCallback = component["connectedCallback"];
95
85
  component["connectedCallback"] = () => {
96
86
  const element = getElement(component);
97
87
  stores = getStores(element);
98
88
  style = stores.componentStyles.state["_system"];
99
- observer.observe(element, { attributes: true, attributeFilter: ["selected-style"] });
100
- selectedStyle = getElement(component).getAttribute("selected-style");
89
+ selectedStyle = component.selectedStyle;
101
90
  updateStyle();
102
91
  subscription = stores.componentStyles.on("set", (key) => {
103
- if (key === selectedStyle) {
104
- selectedStyle = getElement(component).getAttribute("selected-style");
92
+ // `_default` is a layer of every style, and it can be registered after this component
93
+ if (key === selectedStyle || key === "_default") {
94
+ selectedStyle = component.selectedStyle;
105
95
  updateStyle();
106
96
  forceUpdate(getElement(component));
107
97
  }
@@ -110,12 +100,17 @@ const withComponentStyle = (component) => {
110
100
  };
111
101
  const disconnectedCallback = component["disconnectedCallback"];
112
102
  component["disconnectedCallback"] = () => {
113
- observer.disconnect();
114
103
  runIfExisits(subscription);
115
104
  clearStoresCache(getElement(component));
116
105
  runIfExisits(disconnectedCallback, component);
117
106
  };
118
107
  const componentStyle = (q) => {
108
+ // A change of the prop renders the component, and the style is read while it renders.
109
+ // So the prop is compared here: no observer, and a property write counts like an attribute.
110
+ if (stores !== undefined && component.selectedStyle !== selectedStyle) {
111
+ selectedStyle = component.selectedStyle;
112
+ updateStyle();
113
+ }
119
114
  return q(style);
120
115
  };
121
116
  return componentStyle;
@@ -1206,13 +1201,6 @@ function isValidDataFormat(value) {
1206
1201
  }
1207
1202
  return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in DataFormat;
1208
1203
  }
1209
- function isValidBoolean(value) {
1210
- if (isBlankInput(value)) {
1211
- return false;
1212
- }
1213
- const validValues = ["true", "false", true, false];
1214
- return validValues.some((elem) => elem === value);
1215
- }
1216
1204
  function isValidTableType(value) {
1217
1205
  if (isBlankInput(value)) {
1218
1206
  return false;
@@ -1618,4 +1606,4 @@ const withStyled = (component) => {
1618
1606
  };
1619
1607
  };
1620
1608
 
1621
- export { scenarioSlotNumber as $, AggregationLevel as A, DateStringFactory as B, CompareUtil as C, DateDistance as D, validateBarColumnsList as E, isTableBarColumnWidth as F, isValidDataFormat as G, isValidTableType as H, validateThereOfJsonStr as I, validatePartOfJsonStr as J, isValidMeasureType as K, isTableCategoryWidth as L, validateColumnThereOfJsonStr as M, validateAttributesJsonStr as N, OrderDirection as O, DataFormat as P, I18nMode as Q, MeasureType as R, StackBy as S, TableCategoryWidth as T, parseTableAttributeExpression as U, BAR_COLUMN_WIDTH_EM as V, TableBarColumnWidth as W, validateMeasureList as X, isValidDate as Y, isValidDateLink as Z, DateLink as _, withComponentStyle as a, axisInValueUnits as a0, isRelativeMeasure as a1, AdapterUtils as a2, OrderAdapter as a3, NOT_AVAILABLE as a4, relativeVariance as a5, RELATIVE_STACK_UNITS as a6, FIELD_IDENTIFIER_REGEX as a7, Scenarios as a8, isBlankInput as b, isValidInteger as c, isValidMeasureToken as d, isValidDirection as e, Order as f, OrderColumn as g, validateScenarioList as h, isValidBoolean as i, validateVariancesList as j, isValidLevel as k, isValidMeasureScale as l, merge as m, validateStackConfig as n, StackOrder as o, StackMode as p, isValidNumber as q, resolveMeasure as r, scenarioFamily as s, isValidDateFormat as t, isValidAxisLabelsMode as u, validateOrderList as v, withStyled as w, AxisLabelsMode as x, ChartMode as y, murmur2 as z };
1609
+ export { parseTableAttributeExpression as $, AggregationLevel as A, isValidDateFormat as B, CompareUtil as C, isValidAxisLabelsMode as D, DateDistance as E, AxisLabelsMode as F, ChartMode as G, DateStringFactory as H, murmur2 as I, validateBarColumnsList as J, isTableBarColumnWidth as K, isValidDataFormat as L, isValidTableType as M, NOT_AVAILABLE as N, OrderDirection as O, validateThereOfJsonStr as P, validatePartOfJsonStr as Q, RELATIVE_STACK_UNITS as R, StackBy as S, isValidMeasureType as T, isTableCategoryWidth as U, validateColumnThereOfJsonStr as V, validateAttributesJsonStr as W, DataFormat as X, I18nMode as Y, TableCategoryWidth as Z, MeasureType as _, withComponentStyle as a, BAR_COLUMN_WIDTH_EM as a0, TableBarColumnWidth as a1, FIELD_IDENTIFIER_REGEX as a2, Scenarios as a3, validateMeasureList as a4, isValidDate as a5, isValidDateLink as a6, DateLink as a7, isValidInteger as b, isValidMeasureToken as c, scenarioSlotNumber as d, axisInValueUnits as e, isRelativeMeasure as f, isValidDirection as g, Order as h, isBlankInput as i, OrderColumn as j, validateScenarioList as k, validateVariancesList as l, merge as m, isValidLevel as n, isValidMeasureScale as o, validateStackConfig as p, StackOrder as q, resolveMeasure as r, scenarioFamily as s, StackMode as t, AdapterUtils as u, validateOrderList as v, withStyled as w, OrderAdapter as x, relativeVariance as y, isValidNumber as z };