@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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-C1Z9vO7z.js');
3
+ var index = require('./index-DGis1BzT.js');
4
4
 
5
5
  const appendToMap = (map, propName, value) => {
6
6
  let refs = map.get(propName);
@@ -367,8 +367,8 @@ const xyChartStyleDefaults = () => ({
367
367
  labelToMark: 0.3,
368
368
  legendSwatch: 0.9,
369
369
  panelGap: 1.6,
370
- refLineWidth: 1,
371
- gridLineWidth: 1,
370
+ refLineWidth: 0.075,
371
+ gridLineWidth: 0.075,
372
372
  },
373
373
  axisStyles: {
374
374
  ac: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 1 },
@@ -418,7 +418,7 @@ const SYSTEM_STYLE_DEFAULTS = {
418
418
  },
419
419
  barStyles: {
420
420
  ac: { stroke: "#404040", fill: "#404040", width: 0.1 },
421
- fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "fc" },
421
+ fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "hatched" },
422
422
  pp: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 0.1 },
423
423
  pl: { stroke: "#404040", fill: "#ffffff", width: 0.1 },
424
424
  },
@@ -461,7 +461,7 @@ const SYSTEM_STYLE_DEFAULTS = {
461
461
  },
462
462
  barStyles: {
463
463
  ac: { stroke: "#404040", fill: "#404040", width: 0.1 },
464
- fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "fc" },
464
+ fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "hatched" },
465
465
  pp: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 0.1 },
466
466
  pl: { stroke: "#404040", fill: "#ffffff", width: 0.1 },
467
467
  },
@@ -486,8 +486,8 @@ const SYSTEM_STYLE_DEFAULTS = {
486
486
  barHeight: 0.66,
487
487
  varianceHeight: 0.4,
488
488
  targetTickHeight: 1.1,
489
- targetLineWidth: 2,
490
- axisLineWidth: 1,
489
+ targetLineWidth: 0.15,
490
+ axisLineWidth: 0.075,
491
491
  labelToBar: 0.3,
492
492
  labelToAxis: 0.3,
493
493
  axisTickLength: 0.35,
@@ -531,6 +531,10 @@ const SYSTEM_STYLE_DEFAULTS = {
531
531
  borderWidth: 1,
532
532
  cellPadding: 4,
533
533
  },
534
+ "bn-annotation": {
535
+ color: "#0070c0",
536
+ colors: { negative: "#ff0000", positive: "#008f96" },
537
+ },
534
538
  };
535
539
  /** `bn-text` keys. All are optional, so the defaults do not list them. */
536
540
  const TEXT_STYLE_KEYS = ["fontFamily", "fontSizePx", "fontColor", "fontBackgroundColor", "leading"];
@@ -707,7 +711,7 @@ const de = flattenObject({
707
711
  ibcssymbol_delta_generic_relative: "Δ({%})%",
708
712
  },
709
713
  "bn-title": {
710
- SEPERATOR_WS: ", ",
714
+ SEPARATOR_WS: ", ",
711
715
  CONNECTOR_WS: " und ",
712
716
  in: "in",
713
717
  },
@@ -734,7 +738,7 @@ const de = flattenObject({
734
738
  in: "in",
735
739
  category: " ",
736
740
  operation: " ",
737
- there_of: "davon",
741
+ thereof: "davon",
738
742
  part_of: "in % von",
739
743
  SUM_TOTAL: "❖",
740
744
  REST: "REST",
@@ -767,7 +771,7 @@ const en = flattenObject({
767
771
  ibcssymbol_delta_generic_relative: "Δ({%})%",
768
772
  },
769
773
  "bn-title": {
770
- SEPERATOR_WS: ", ",
774
+ SEPARATOR_WS: ", ",
771
775
  CONNECTOR_WS: " and ",
772
776
  in: "in",
773
777
  },
@@ -794,14 +798,18 @@ const en = flattenObject({
794
798
  in: "in",
795
799
  category: " ",
796
800
  operation: " ",
797
- there_of: "there of",
801
+ thereof: "there of",
798
802
  part_of: "in % of",
799
803
  SUM_TOTAL: "❖",
800
804
  REST: "REST",
801
805
  "no-data": "No Data",
802
806
  },
803
807
  });
804
- const BN_INTERNATIONALIZATION_KEYS = Object.keys(de || {});
808
+ /** Old key names (deprecated) and what they are called now. A text is still found and still read under the old name. */
809
+ const RENAMED_I18N_KEYS = {
810
+ "bn-title.SEPERATOR_WS": "bn-title.SEPARATOR_WS",
811
+ "bn-table.there_of": "bn-table.thereof",
812
+ };
805
813
  const SYSTEM_I18N_DEFAULTS = { _system: { de, en } };
806
814
 
807
815
  /**
@@ -9457,7 +9465,7 @@ function createScopedDb() {
9457
9465
  }
9458
9466
 
9459
9467
  /**
9460
- * Factory that creates a fresh set of all 9 `@stencil/store` instances.
9468
+ * Factory that creates a fresh set of all 8 `@stencil/store` instances.
9461
9469
  *
9462
9470
  * Called once per `<bn-context>` element so that each context owns isolated
9463
9471
  * reactive state. The returned object satisfies the {@link ScopedStores} interface.
@@ -9477,6 +9485,7 @@ function createScopedStores() {
9477
9485
  const ruleSets = createStore({
9478
9486
  _system: SYSTEM_RULESET_DEFAULTS,
9479
9487
  });
9488
+ const annotationsUnplaced = createStore({});
9480
9489
  return {
9481
9490
  db,
9482
9491
  datasetsMeta,
@@ -9486,6 +9495,7 @@ function createScopedStores() {
9486
9495
  context,
9487
9496
  scalingGroups,
9488
9497
  ruleSets,
9498
+ annotationsUnplaced,
9489
9499
  };
9490
9500
  }
9491
9501
 
@@ -9573,8 +9583,442 @@ function clearStoresCache(element) {
9573
9583
  storesCache.delete(element);
9574
9584
  }
9575
9585
 
9576
- exports.BN_INTERNATIONALIZATION_KEYS = BN_INTERNATIONALIZATION_KEYS;
9586
+ /** Lifecycle state of a tracked component instance. */
9587
+ var ComponentStatus;
9588
+ (function (ComponentStatus) {
9589
+ ComponentStatus[ComponentStatus["RUNNING"] = 0] = "RUNNING";
9590
+ ComponentStatus[ComponentStatus["SUCCESSFUL"] = 1] = "SUCCESSFUL";
9591
+ ComponentStatus[ComponentStatus["ERROR"] = 2] = "ERROR";
9592
+ })(ComponentStatus || (ComponentStatus = {}));
9593
+ /**
9594
+ * Singleton registry that tracks the render status of all bn-* component instances.
9595
+ *
9596
+ * Each component registers itself via {@link withComponentStatus} and reports
9597
+ * `RUNNING` / `SUCCESSFUL` / `ERROR` transitions. After 500 ms of inactivity
9598
+ * (no status updates), the aggregate result is written to
9599
+ * `window.componentRegisterIsRenderedResult` as a boolean, and the failed
9600
+ * components to `window.componentRegisterFailures`. External tools
9601
+ * (e.g. headless screenshot renderers) poll these values to detect when
9602
+ * the entire page has finished rendering.
9603
+ *
9604
+ * A reader sees one of three states: the flag is `true` (all rendered), the
9605
+ * failures list is not empty (settled, but a component failed), or neither
9606
+ * (still working).
9607
+ *
9608
+ * The 500 ms debounce prevents premature "rendered" signals during rapid
9609
+ * successive re-renders.
9610
+ *
9611
+ * Status counts are maintained incrementally - `updateStatus` adjusts running
9612
+ * counters instead of iterating all entries, making it O(1) per update.
9613
+ */
9614
+ exports.ComponentRegister = void 0;
9615
+ (function (ComponentRegister) {
9616
+ let currentTimeOutId = undefined;
9617
+ const componentRegister = new Map();
9618
+ const failures = new Map();
9619
+ const statusCounts = { running: 0, successful: 0, error: 0 };
9620
+ const countKey = (status) => {
9621
+ switch (status) {
9622
+ case ComponentStatus.RUNNING:
9623
+ return "running";
9624
+ case ComponentStatus.SUCCESSFUL:
9625
+ return "successful";
9626
+ default:
9627
+ return "error";
9628
+ }
9629
+ };
9630
+ const publish = () => {
9631
+ // @ts-ignore
9632
+ window.componentRegisterFailures = ComponentRegister.componentRegisterFailures();
9633
+ // @ts-ignore
9634
+ window.componentRegisterIsRenderedResult = ComponentRegister.componentRegisterIsRendered();
9635
+ // @ts-ignore
9636
+ // eslint-disable-next-line no-console
9637
+ console.log("componentRegisterIsRendered:", window.componentRegisterIsRenderedResult);
9638
+ };
9639
+ /** Restarts the 500 ms quiet period that ends with the published result. */
9640
+ const schedule = () => {
9641
+ if (currentTimeOutId) {
9642
+ window.clearTimeout(currentTimeOutId);
9643
+ }
9644
+ // window.setTimeout, not the bare global: in spec tests this is the timer the test window clears when a test ends
9645
+ currentTimeOutId = window.setTimeout(() => {
9646
+ const fonts = document.fonts;
9647
+ if ((fonts === null || fonts === void 0 ? void 0 : fonts.status) === "loading") {
9648
+ // text is measured again once the fonts are there: wait for them, then for a new quiet period
9649
+ fonts.ready.then(schedule);
9650
+ return;
9651
+ }
9652
+ publish();
9653
+ }, 500);
9654
+ };
9655
+ /**
9656
+ * Records a status change for the component identified by `uuid` and
9657
+ * resets the 500 ms debounce timer. When the timer fires, the aggregate
9658
+ * "all rendered" boolean is published to `window.componentRegisterIsRenderedResult`.
9659
+ * `failure` describes an `ERROR` status.
9660
+ */
9661
+ ComponentRegister.updateStatus = (uuid, status, failure) => {
9662
+ const prev = componentRegister.get(uuid);
9663
+ if (prev !== undefined) {
9664
+ statusCounts[countKey(prev)]--;
9665
+ }
9666
+ statusCounts[countKey(status)]++;
9667
+ componentRegister.set(uuid, status);
9668
+ if (status === ComponentStatus.ERROR && failure) {
9669
+ failures.set(uuid, failure);
9670
+ }
9671
+ else {
9672
+ failures.delete(uuid);
9673
+ }
9674
+ schedule();
9675
+ };
9676
+ /** Forgets a component that left the document. */
9677
+ ComponentRegister.remove = (uuid) => {
9678
+ const prev = componentRegister.get(uuid);
9679
+ if (prev === undefined) {
9680
+ return;
9681
+ }
9682
+ statusCounts[countKey(prev)]--;
9683
+ componentRegister.delete(uuid);
9684
+ failures.delete(uuid);
9685
+ schedule();
9686
+ };
9687
+ /** Returns `true` when no component is in `RUNNING` or `ERROR` state. */
9688
+ ComponentRegister.componentRegisterIsRendered = () => {
9689
+ return statusCounts.running === 0 && statusCounts.error === 0;
9690
+ };
9691
+ /** The failed components. Empty while a component is still running: only a settled page has a final list. */
9692
+ ComponentRegister.componentRegisterFailures = () => {
9693
+ return statusCounts.running === 0 ? [...failures.values()] : [];
9694
+ };
9695
+ /** Returns a summary count of components in each status category. */
9696
+ ComponentRegister.componentRegisterStatus = () => {
9697
+ return Object.assign({}, statusCounts);
9698
+ };
9699
+ })(exports.ComponentRegister || (exports.ComponentRegister = {}));
9700
+
9701
+ /** Concatenates name parts with spaces, skipping falsy segments. */
9702
+ /**
9703
+ * Safely invokes `fn` if it is a function; otherwise does nothing.
9704
+ *
9705
+ * Used by every mixin to call the original lifecycle hook (e.g. `connectedCallback`)
9706
+ * that may or may not exist on the component before the mixin wrapped it.
9707
+ *
9708
+ * @param fn - The value to invoke (only called if `typeof fn === 'function'`)
9709
+ * @param context - Optional `this` context to bind before invocation
9710
+ */
9711
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9712
+ const runIfExisits = (fn, context = undefined) => {
9713
+ if (typeof fn === "function") {
9714
+ if (context) {
9715
+ fn.bind(context)();
9716
+ }
9717
+ else {
9718
+ fn();
9719
+ }
9720
+ }
9721
+ };
9722
+ /**
9723
+ * Generates a v4-style UUID using a combination of `Date.now()` and
9724
+ * `performance.now()` for entropy. Used by {@link withComponentStatus}
9725
+ * to assign a stable identifier to each component instance.
9726
+ */
9727
+ function generateUUID() {
9728
+ let d = new Date().getTime(), d2 = (performance && performance.now && performance.now() * 1000) || 0;
9729
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
9730
+ let r = Math.random() * 16;
9731
+ if (d > 0) {
9732
+ r = ((d + r) % 16) | 0;
9733
+ d = Math.floor(d / 16);
9734
+ }
9735
+ else {
9736
+ r = ((d2 + r) % 16) | 0;
9737
+ d2 = Math.floor(d2 / 16);
9738
+ }
9739
+ return (c === "x" ? r : (r & 0x7) | 0x8).toString(16);
9740
+ });
9741
+ }
9742
+ /**
9743
+ * Creates a reactive reference -- a lightweight value holder that fires an
9744
+ * `onChange` callback whenever the stored value changes (by reference equality).
9745
+ *
9746
+ * Provides `get`, `set`, `modify` (read-modify-write), and `getAndSet` (swap)
9747
+ * accessors. Used by {@link withHasError} to keep the host element's `has-error`
9748
+ * attribute in sync with the internal error list.
9749
+ *
9750
+ * @param value - The initial value
9751
+ * @param onChange - Callback fired after each change with the new value
9752
+ */
9753
+ const ref = (value, onChange) => {
9754
+ let current = value;
9755
+ const get = () => current;
9756
+ const set = (value) => {
9757
+ const old = current;
9758
+ current = value;
9759
+ if (old !== value)
9760
+ onChange(current);
9761
+ };
9762
+ const setAndGet = (value) => {
9763
+ set(value);
9764
+ };
9765
+ const getAndSet = (value) => {
9766
+ const old = get();
9767
+ set(value);
9768
+ return old;
9769
+ };
9770
+ const modify = (handler) => {
9771
+ set(handler(get()));
9772
+ };
9773
+ return {
9774
+ get,
9775
+ set,
9776
+ setAndGet,
9777
+ getAndSet,
9778
+ modify,
9779
+ };
9780
+ };
9781
+
9782
+ // Stencil calls these once per instance, so a failure in them is never repaired by a later render.
9783
+ const LOAD_HOOKS = ["componentWillLoad", "componentDidLoad"];
9784
+ // The hooks of every render cycle. componentWillUpdate is the first one of an update.
9785
+ const CYCLE_HOOKS = [
9786
+ "componentWillUpdate",
9787
+ "componentWillRender",
9788
+ "render",
9789
+ "componentDidRender",
9790
+ "componentDidUpdate",
9791
+ ];
9792
+ // The hooks a cycle starts with: the component is rendering from here on.
9793
+ const START_HOOKS = ["componentWillLoad", "componentWillUpdate", "componentWillRender"];
9794
+ const describeFailure = (element, message) => {
9795
+ var _a, _b, _c, _d;
9796
+ return ({
9797
+ tag: (_a = element === null || element === void 0 ? void 0 : element.localName) !== null && _a !== void 0 ? _a : "",
9798
+ // an inner renderer has no id of its own: name the component it is drawn for
9799
+ 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) || "",
9800
+ message,
9801
+ });
9802
+ };
9803
+ /**
9804
+ * Mixin that tracks a component's render lifecycle in the global {@link ComponentRegister}.
9805
+ *
9806
+ * Assigns a stable UUID to the component instance and reports status transitions:
9807
+ * - `RUNNING` from `connectedCallback` (only before the first render: a re-attach does not render again)
9808
+ * or from the first hook of a render cycle, until `componentDidRender`
9809
+ * - `ERROR` when `render`, a lifecycle hook or `connectedCallback` threw. Stencil catches such
9810
+ * an exception and goes on, so without this the component would count as rendered.
9811
+ * - `SUCCESSFUL` otherwise
9812
+ *
9813
+ * A component that leaves the document is removed from the register.
9814
+ *
9815
+ * Returns a hold function: the component stays `RUNNING` until the promise
9816
+ * passed to it has settled, whatever the outcome.
9817
+ *
9818
+ * External tools (e.g. screenshot/PDF renderers) poll
9819
+ * `window.componentRegisterIsRenderedResult` to determine when all components
9820
+ * have finished rendering.
9821
+ *
9822
+ * @param component - The Stencil component instance
9823
+ */
9824
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9825
+ const withComponentStatus = (component) => {
9826
+ const uuid = generateUUID();
9827
+ let pending = 0;
9828
+ let rendered = false;
9829
+ let rendering = false;
9830
+ let loadFailure;
9831
+ let cycleFailure;
9832
+ let connectFailure;
9833
+ const publish = () => {
9834
+ var _a;
9835
+ // read here, not tracked in connectedCallback: not every build calls that wrapper
9836
+ const element = index.getElement(component);
9837
+ if (element && !element.isConnected)
9838
+ return;
9839
+ const message = (_a = connectFailure !== null && connectFailure !== void 0 ? connectFailure : loadFailure) !== null && _a !== void 0 ? _a : cycleFailure;
9840
+ if (rendering || pending > 0) {
9841
+ exports.ComponentRegister.updateStatus(uuid, ComponentStatus.RUNNING);
9842
+ }
9843
+ else if (message !== undefined) {
9844
+ exports.ComponentRegister.updateStatus(uuid, ComponentStatus.ERROR, describeFailure(element, message));
9845
+ }
9846
+ else {
9847
+ exports.ComponentRegister.updateStatus(uuid, ComponentStatus.SUCCESSFUL);
9848
+ }
9849
+ };
9850
+ const fail = (hook, e) => {
9851
+ const message = e instanceof Error ? e.message : String(e);
9852
+ if (LOAD_HOOKS.includes(hook)) {
9853
+ loadFailure = message;
9854
+ }
9855
+ else {
9856
+ cycleFailure = message;
9857
+ }
9858
+ publish();
9859
+ };
9860
+ const connectedCallback = component["connectedCallback"];
9861
+ let connect = () => {
9862
+ if (!rendered)
9863
+ rendering = true;
9864
+ publish();
9865
+ runIfExisits(connectedCallback, component);
9866
+ };
9867
+ // The mixins that are applied after this one wrap connectedCallback again, outside of the wrapper above.
9868
+ // The accessor keeps a guard around whatever they assign, so a throw in any of them is seen here too.
9869
+ const guarded = (fn) => () => {
9870
+ connectFailure = undefined;
9871
+ try {
9872
+ fn();
9873
+ }
9874
+ catch (e) {
9875
+ connectFailure = e instanceof Error ? e.message : String(e);
9876
+ publish();
9877
+ // Stencil logs it and goes on with the first render
9878
+ throw e;
9879
+ }
9880
+ };
9881
+ Object.defineProperty(component, "connectedCallback", {
9882
+ configurable: true,
9883
+ enumerable: true,
9884
+ get: () => guarded(connect),
9885
+ set: (fn) => {
9886
+ connect = fn;
9887
+ },
9888
+ });
9889
+ const disconnectedCallback = component["disconnectedCallback"];
9890
+ component["disconnectedCallback"] = () => {
9891
+ exports.ComponentRegister.remove(uuid);
9892
+ runIfExisits(disconnectedCallback, component);
9893
+ };
9894
+ for (const hook of [...LOAD_HOOKS, ...CYCLE_HOOKS]) {
9895
+ const original = component[hook];
9896
+ component[hook] = (...args) => {
9897
+ if (hook === "componentWillUpdate")
9898
+ cycleFailure = undefined;
9899
+ if (START_HOOKS.includes(hook)) {
9900
+ rendering = true;
9901
+ publish();
9902
+ }
9903
+ try {
9904
+ const result = typeof original === "function" ? original.apply(component, args) : undefined;
9905
+ if (typeof (result === null || result === void 0 ? void 0 : result.then) === "function") {
9906
+ // an async hook: Stencil waits for the returned promise, so the failure must stay in it
9907
+ return result.then((value) => value, (e) => {
9908
+ fail(hook, e);
9909
+ throw e;
9910
+ });
9911
+ }
9912
+ return result;
9913
+ }
9914
+ catch (e) {
9915
+ fail(hook, e);
9916
+ // Stencil logs it and goes on with the next hook
9917
+ throw e;
9918
+ }
9919
+ finally {
9920
+ if (hook === "componentDidRender") {
9921
+ rendered = true;
9922
+ rendering = false;
9923
+ publish();
9924
+ }
9925
+ }
9926
+ };
9927
+ }
9928
+ return (work) => {
9929
+ pending++;
9930
+ publish();
9931
+ const done = () => {
9932
+ pending--;
9933
+ publish();
9934
+ };
9935
+ work.then(done, done);
9936
+ };
9937
+ };
9938
+
9939
+ const urlAlphabet =
9940
+ 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
9941
+
9942
+ /* @ts-self-types="./index.d.ts" */
9943
+ let nanoid = (size = 21) => {
9944
+ let id = '';
9945
+ let bytes = crypto.getRandomValues(new Uint8Array((size |= 0)));
9946
+ while (size--) {
9947
+ id += urlAlphabet[bytes[size] & 63];
9948
+ }
9949
+ return id
9950
+ };
9951
+
9952
+ /**
9953
+ * Reports content that does not fit: `ERR_overflow` when the author fixed the
9954
+ * size, `WARN_overflow` otherwise. The id carries the type, so the other id is
9955
+ * cleared. `message` null clears both.
9956
+ */
9957
+ function reportOverflow(errors, message, fixedSize = false) {
9958
+ errors.remove(message !== null && fixedSize ? "WARN_overflow" : "ERR_overflow");
9959
+ if (message === null) {
9960
+ errors.remove("WARN_overflow");
9961
+ }
9962
+ else if (fixedSize) {
9963
+ errors.addOrReplace({ id: "ERR_overflow", type: "error", message });
9964
+ }
9965
+ else {
9966
+ errors.addOrReplace({ id: "WARN_overflow", type: "warning", message });
9967
+ }
9968
+ }
9969
+ /**
9970
+ * Mixin that provides an {@link ErrorDispatcher} for managing validation
9971
+ * errors and warnings on a component.
9972
+ *
9973
+ * Errors are stored internally via a reactive {@link ref}. On every change,
9974
+ * the host element's `has-error` attribute is updated with a JSON-serialized
9975
+ * array of {@link ErrorItem}s (or removed when empty). This allows external
9976
+ * CSS selectors and parent components to detect error states declaratively.
9977
+ *
9978
+ * @param component - The Stencil component instance
9979
+ * @returns An {@link ErrorDispatcher} for adding, replacing, and removing errors
9980
+ */
9981
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9982
+ const withHasError = (component) => {
9983
+ const { set, modify } = ref([], (items) => {
9984
+ const elm = index.getElement(component);
9985
+ if (items.length === 0) {
9986
+ elm.removeAttribute("has-error");
9987
+ }
9988
+ else {
9989
+ elm.setAttribute("has-error", JSON.stringify(items));
9990
+ }
9991
+ });
9992
+ return {
9993
+ clear: () => {
9994
+ set([]);
9995
+ },
9996
+ replace: (errors) => {
9997
+ set(errors.map((item) => {
9998
+ if (!item.id) {
9999
+ item.id = nanoid();
10000
+ }
10001
+ return item;
10002
+ }));
10003
+ },
10004
+ add: (error) => {
10005
+ if (!error.id)
10006
+ error.id = nanoid();
10007
+ modify((current) => [...current, error]);
10008
+ return error.id;
10009
+ },
10010
+ addOrReplace: (error) => {
10011
+ modify((current) => [...current.filter((item) => item.id !== error.id), error]);
10012
+ return error.id;
10013
+ },
10014
+ remove: (id) => {
10015
+ modify((current) => current.filter((item) => item.id !== id));
10016
+ },
10017
+ };
10018
+ };
10019
+
9577
10020
  exports.DateTime = DateTime;
10021
+ exports.RENAMED_I18N_KEYS = RENAMED_I18N_KEYS;
9578
10022
  exports.SYSTEM_RULESET_DEFAULTS = SYSTEM_RULESET_DEFAULTS;
9579
10023
  exports.SYSTEM_STYLE_DEFAULTS = SYSTEM_STYLE_DEFAULTS;
9580
10024
  exports.XY_SERIES_PALETTE = XY_SERIES_PALETTE;
@@ -9587,7 +10031,11 @@ exports.getStores = getStores;
9587
10031
  exports.globalLabelKeys = globalLabelKeys;
9588
10032
  exports.hasInlineJs = hasInlineJs;
9589
10033
  exports.markTreatment = markTreatment;
10034
+ exports.reportOverflow = reportOverflow;
9590
10035
  exports.resolveSeriesColor = resolveSeriesColor;
10036
+ exports.runIfExisits = runIfExisits;
9591
10037
  exports.shade = shade;
9592
10038
  exports.sourceExpr = sourceExpr;
9593
10039
  exports.unknownStyleKeys = unknownStyleKeys;
10040
+ exports.withComponentStatus = withComponentStatus;
10041
+ exports.withHasError = withHasError;